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/816.js
(self.webpackChunk=self.webpackChunk||[]).push([[816],{6399:(t,e,i)=>{"use strict";i.d(e,{v:()=>n});var n={methods:{errorHandler_:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.errorSeparator_(t,e),n=i.a,s=i.b;return Object.keys(s).length>0&&this.alertErrorMessages_(this.computeErrorMessages_(s)),n},errorSeparator_:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i="Something Is Not Right. Please Try Again Later.",n={},s={};if(null==t)this.defaultNotify_(i);else if(t.status&&t.data){var o=t.status,r=t.data;if(422==o){var a=r.errors||r.message;Object.keys(a).forEach((function(t){e.includes(t)?n[t]=a[t]:s[t]=a[t]}))}else i=400==o?r.message:i,this.defaultNotify_(i)}else console.error(t);return{a:n,b:s}},defaultNotify_:function(t){return this.$toast.warning(t),null},computeErrorMessages_:function(t){var e=Object.keys(t);if(e.length>0){var i=[];return e.forEach((function(e){i.push(t[e][0])})),i}return[]},alertErrorMessages_:function(t){this.$toast.warning(t.join("<br>"))}}}},6816:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});const n={components:{},mixins:[i(6399).v],data:function(){return{form:{content:null},errors:{},isEditMode:!1,submit_loading:!1,fetch_loading:!1,title:null,type:null}},watch:{$route:function(){this.init()}},created:function(){this.init()},methods:{init:function(){this.setSupportiveType(),this.isEditMode=!1,this.getSupportive()},setSupportiveType:function(){var t=this.$route.meta.params;this.type=(null==t?void 0:t.type)||"N/A","about-us"==this.type?this.title="About Us":"tnc"==this.type?this.title="Terms & Conditions":"refund-policy"==this.type?this.title="Refund Policy":this.title="N/A"},getSupportive:function(){var t=this;this.fetch_loading=!0,this.$api.getSupportive(this.type).then((function(e){var i=e.data.result[0];t.form.id=(null==i?void 0:i.id)||"0",t.form.content=(null==i?void 0:i.content)||""})).catch((function(e){t.errorHandler_(e)})).finally((function(){t.fetch_loading=!1}))},submitForm:function(){this.errors={},this.updateSupportive()},updateSupportive:function(){var t=this;this.submit_loading=!0;var e={id:this.form.id,type:this.type,content:this.form.content};this.$api.updateSupportive(e).then((function(){t.init()})).catch((function(e){t.errors=t.errorHandler_(e,["content"])})).finally((function(){t.submit_loading=!1}))}}};const s=(0,i(1900).Z)(n,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-container",[i("v-card",{staticClass:"pa-4"},[i("v-row",{attrs:{align:"end"}},[i("v-col",[i("div",{staticClass:"headline font-weight-bold"},[t._v(t._s(t.title))])]),t._v(" "),i("v-col",{attrs:{cols:"auto"}},[t.isEditMode?t._e():i("v-btn",{staticClass:"text-capitalize",attrs:{outlined:"",color:"info",small:"",disabled:"N/A"==t.type},on:{click:function(e){t.isEditMode=!0}}},[i("v-icon",{attrs:{left:"",small:""}},[t._v("mdi-pen")]),t._v("Edit\n\t\t\t\t")],1)],1)],1),t._v(" "),i("v-divider",{staticClass:"my-2"}),t._v(" "),i("v-row",[i("v-col",[t.fetch_loading?i("div",[i("v-skeleton-loader",{attrs:{type:"article,article"}})],1):t.isEditMode?i("v-row",{attrs:{dense:""}},[i("v-col",{staticClass:"pb-2 pt-4",attrs:{cols:"12"}},[i("v-textarea",{attrs:{outlined:"",dense:"",rows:"10","error-messages":t.errors.content},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content",e)},expression:"form.content"}})],1),t._v(" "),i("v-col",{staticClass:"text-right",attrs:{cols:"12"}},[i("v-btn",{staticClass:"text-capitalize",attrs:{text:"",color:"error"},on:{click:function(e){t.isEditMode=!1}}},[t._v("\n\t\t\t\t\t\t\tCancel\n\t\t\t\t\t\t")]),t._v(" "),i("v-btn",{staticClass:"text-capitalize",attrs:{loading:t.submit_loading,color:"info"},on:{click:function(e){return t.submitForm()}}},[t._v("\n\t\t\t\t\t\t\tUpdate\n\t\t\t\t\t\t")])],1)],1):i("v-row",{attrs:{dense:""}},[i("v-col",[i("div",{staticClass:"display-paragraph px-4 py-2 overflow-auto radius-05",staticStyle:{"max-height":"60vh",border:"1px solid #AAA","border-left-width":"5px"}},[i("div",[t._v(t._s(t.form.content))]),t._v(" "),""==t.form.content?i("div",{staticClass:"pa-6 font-italic grey--text text-center"},[t._v("~ Empty Content ~")]):t._e()])])],1)],1)],1)],1)],1)}),[],!1,null,null,null).exports}}]);

Youez - 2016 - github.com/yon3zu
LinuXploit