-
Notifications
You must be signed in to change notification settings - Fork 40
/
matrix-element.26.min.js
2 lines (2 loc) · 3.25 KB
/
matrix-element.26.min.js
1
2
(window["matrixElement_jsonp"]=window["matrixElement_jsonp"]||[]).push([[26],{"059f":function(a,e,t){"use strict";t.r(e);var r=t("09f9");for(var o in r)["default"].indexOf(o)<0&&function(a){t.d(e,a,(function(){return r[a]}))}(o)},"09f9":function(a,e,t){var r=t("490e");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals);var o=t("35d6").default;a.exports.__inject__=function(a){o("210e559e",r,a)}},"490e":function(a,e,t){var r=t("24fb");e=r(!1),e.push([a.i,"#complain .preloaderwrapperCpm[data-v-a16702aa]{padding:1em;text-align:center}#complain .caption[data-v-a16702aa],#complain .sendWrapper[data-v-a16702aa]{padding:1em}#complain .formWrapper input[data-v-a16702aa],#complain .formWrapper textarea[data-v-a16702aa]{width:100%;padding:1em;background:rgb(var(--background-secondary-theme))}#complain .formWrapper textarea[data-v-a16702aa]{min-height:200px}",""]),a.exports=e},c27d:function(a,e,t){"use strict";t.r(e);var r=function(){var a=this,e=a._self._c;a._self._setupProxy;return e("div",{attrs:{id:"complain"}},[a.loading?e("div",[e("div",{staticClass:"preloaderwrapperCpm"},[e("linepreloader")],1)]):e("div",{staticClass:"wrapper"},[a._m(0),e("div",{staticClass:"formWrapper"},[e("input",{ref:"youremail",attrs:{type:"email"},domProps:{value:a.youremail},on:{change:a.setyouremail}})]),a._m(1),e("div",{staticClass:"formWrapper"},[e("textarea",{ref:"reason",domProps:{value:a.reason},on:{change:a.setvalue}})]),e("div",{staticClass:"sendWrapper"},[e("button",{staticClass:"button orange small rounded",on:{click:a.send}},[a._v("Send")])])])])},o=[function(){var a=this,e=a._self._c;a._self._setupProxy;return e("div",{staticClass:"caption"},[e("span",[a._v("Your e-mail address")])])},function(){var a=this,e=a._self._c;a._self._setupProxy;return e("div",{staticClass:"caption"},[e("span",[a._v("State the reason for your complaint")])])}],i=t("2f62"),s={name:"complain",props:{p:Object},data:function(){return{loading:!1,reason:"",youremail:""}},created:()=>{},watch:{},computed:Object(i["d"])({auth:a=>a.auth}),methods:{send:function(){if(!this.loading){if(!this.reason)return this.$refs["reason"].focus(),void this.$store.commit("icon",{icon:"error",message:"State the reason for your complaint"});if(!this.youremail)return this.$refs["youremail"].focus(),void this.$store.commit("icon",{icon:"error",message:"Please enter your email for feedback"});if(window.POCKETNETINSTANCE){var a={};_.each(this.p,(function(e,t){a[t]=e})),a.reason=this.reason,a.email=this.youremail;var e="common";a.address2&&(e="user"),a.roomid&&(e="room"),this.loading=!0,window.POCKETNETINSTANCE.complainletters[e](a,a=>{this.loading=!1,a?(this.$store.commit("icon",{icon:"success",message:"The complaint was successfully sent"}),this.core.store.commit("setmodal",null)):this.$store.commit("icon",{icon:"error",message:"Something went wrong, please try again later"})})}else this.$store.commit("icon",{icon:"error",message:"Something went wrong, please try again later"})}},setvalue:function(a){this.reason=a.target.value||""},setyouremail:function(a){this.youremail=a.target.value||""}}},n=s,c=t("2877");function l(a){var e=t("059f");e.__inject__&&e.__inject__(a)}var m=Object(c["a"])(n,r,o,!1,l,"a16702aa",null,!0);e["default"]=m.exports}}]);
//# sourceMappingURL=matrix-element.26.min.js.map