(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d225435"],{e43c:function(a,t,e){"use strict";e.r(t),e.d(t,"default",(function(){return y}));var n=function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("page-complaints-view",{attrs:{values:a.values,"mail-to-link":a.mailToLink,"has-support-email":!!a.supportEmail},on:{update:function(t){return a.values=Object.assign({},a.values,t)}}})},l=[],i=(e("99af"),e("b0c0"),e("d3b7"),e("ddb0"),e("a6f4")),o=e("d70b"),c=function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("base-page",{staticClass:"pa-4"},[e("page-title",{attrs:{"hide-back":""}},[a._v(a._s(a.$t("Complaints Policy")))]),e("div",{staticClass:"bold mb-4"},[a._v(a._s(a.$t("page_complaints_annotation-1")))]),e("div",{staticClass:"bold mb-4"},[a._v(a._s(a.$t("page_complaints_annotation-2")))]),a.hasSupportEmail?[e("base-form",{attrs:{fields:a.fields,values:a.values},on:{input:a.update,validation:function(t){a.isValid=t},setManualValidate:function(t){a.manualValidation=t}}}),e("base-button",{staticClass:"mt-8 mx-auto",attrs:{href:a.mailToLink},on:{click:a.checkValidation}},[a._v(" "+a._s(a.$t("Send"))+" ")])]:[e("base-button",{staticClass:"mt-8 mx-auto",attrs:{to:a.supportChatLocation}},[a._v(" "+a._s(a.$t("Write to Support"))+" ")])]],2)},r=[],s=(e("96cf"),e("1da1")),u=e("a34a"),p=e.n(u),m=e("78f9"),d=e("855c"),b=e("1031"),f=e("93c4"),v=e("9310"),h=Object(i["c"])({name:"PageComplaintsView",components:{BasePage:d["a"],PageTitle:b["a"],BaseForm:f["a"],BaseButton:v["a"]},props:{mailToLink:{type:String,required:!0},hasSupportEmail:{type:Boolean,required:!0},values:{type:Object}},data:function(){return{isValid:!0,manualValidation:function(){}}},computed:{supportChatLocation:function(){return{name:"messages",params:{userId:"1"}}},fields:function(){return[{name:"name",placeholder:Object(m["a"])("Name"),label:Object(m["a"])("Name"),rules:"required"},{name:"email",placeholder:Object(m["a"])("Email"),label:Object(m["a"])("Email"),autocomplete:"email",type:"email",rules:"required"},{name:"contentUrl",placeholder:Object(m["a"])("Url"),label:Object(m["a"])("Url")},{name:"complaint",placeholder:Object(m["a"])("Complaint"),label:Object(m["a"])("Complaint"),type:"textarea",rules:"required"}]}},methods:{update:function(a){var t=a.name,e=a.email,n=a.contentUrl,l=a.complaint;this.$emit("update",{name:t,email:e,contentUrl:n,complaint:l})},checkValidation:function(a){var t=this;return Object(s["a"])(p.a.mark((function e(){return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.manualValidation();case 2:t.isValid||a.preventDefault();case 3:case"end":return e.stop()}}),e)})))()}}}),_=h,j=e("2877"),O=Object(j["a"])(_,c,r,!1,null,null,null),C=O.exports,g=Object(i["c"])({name:"PageComplaints",components:{PageComplaintsView:C},data:function(){var a,t=this.$route.query.contentUrl||"";return t&&Array.isArray(t)&&(t=t[0]||""),{values:{contentUrl:null!==(a=this.$route.query.contentUrl)&&void 0!==a?a:""}}},computed:{supportEmail:function(){return o["a"].supportEmail},mailToLink:function(){var a=this.values,t=a.name,e=a.email,n=a.contentUrl,l=a.complaint,i="Name: ".concat(t,"\nEmail: ").concat(e).concat(n?"\nUrl: "+n:"","\nComplaint: ").concat(l);return"mailto:".concat(this.supportEmail,"?subject=Report&body=").concat(encodeURI(i))}}}),k=g,w=Object(j["a"])(k,n,l,!1,null,null,null),y=w.exports}}]);