(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d667678c"],{"0e5a":function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("send-message-controller",e._g({attrs:{"recipient-ids":e.recipientIds,"thread-ids":e.threadIds,"allow-do-not-show-again":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.sending,a=t.sendMessage,o=t.attachedFiles,i=t.uploadingAttachment,c=t.uploadAttachment,s=t.removeAttachment,u=t.priceAmount,l=t.priceAmountText;return[n("message-send-with-attachment-view",{attrs:{recipientIds:e.recipientIds,threadIds:e.threadIds,sending:r,"price-amount":u>0&&l||void 0,files:o,"uploading-attachment":i,"can-send-attachment":e.canSendAttachment},on:{uploadAttachment:c,removeAttachment:s,send:a,addCover:function(t){return c(e.COVER_ATTACHMENT_PUBLIC_ACCESS)}}})]}}])},e.$listeners))},a=[],o=n("a6f4"),i=n("a5de"),c=n("ccda"),s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"message-send"},[e.hasAttachment?n("div",{ref:"attachmentWrapper",staticClass:"d-flex __column px-4 pt-5 pb-4"},[n("attachment-files-preview",{attrs:{files:e.files},on:{addCover:function(t){return e.$emit("addCover")},removePreview:function(t){return e.$emit("removeAttachment",t)}}})],1):e._e(),n("tip-controller",{attrs:{threadId:e.threadId},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.enable,a=(t.show,t.openerIcon),o=t.activator;return[n("div",{staticClass:"message-send__input-wrapper"},[n("base-send-message",{staticClass:"message-send__input pa-2",attrs:{sending:e.sending,files:e.files,keepFocus:!0,prependIcon:e.prependIcon,"allow-send":e.allowSend,"price-amount":e.priceAmount},on:{"click:prependIcon":function(t){return e.$emit("uploadAttachment")},send:function(t,n){return e.$emit("send",t,n)}}}),r?n("base-icon-button",{staticClass:"message-send__button-tip ml-2",on:{click:o}},[e._v(e._s(a))]):e._e()],1)]}}])})],1)},u=[],l=n("fd4d"),p=n("bc3d"),d=n("4580"),f=n("883b"),v=n("75d7"),b=n("7eed"),m=n("4bfb"),h=Object(o["c"])({name:"MessageSendWithAttachmentView",components:{BaseSendMessage:v["a"],BaseIconButton:d["a"],BaseSelect:f["a"],BaseInputFile:p["a"],MediaPreview:b["a"],TipController:m["a"],AttachmentFilesPreview:l["a"]},props:{sending:{type:Boolean,required:!0},files:{type:Array,default:function(){return[]}},recipientIds:{type:Array,required:!0},threadIds:{type:Array},uploadingAttachment:{type:Boolean,required:!0},priceAmount:{type:String},canSendAttachment:{type:Boolean,required:!0}},setup:function(e){var t=Object(o["a"])((function(){var t;return 1===(null===(t=e.threadIds)||void 0===t?void 0:t.length)?e.threadIds[0]:"0"})),n=Object(o["a"])((function(){return e.files&&e.files.length>0})),r=function(t){return!e.sending&&!e.uploadingAttachment&&(n.value||t.length>0)},a=Object(o["a"])((function(){return e.canSendAttachment?"sci-paperclip":""}));return{allowSend:r,hasAttachment:n,threadId:t,prependIcon:a}}}),g=h,_=(n("e24e"),n("2877")),y=Object(_["a"])(g,s,u,!1,null,"32c37fad",null),w=y.exports,O=Object(o["c"])({name:"MessageSendWithAttachment",components:{MessageSendWithAttachmentView:w,SendMessageController:c["a"]},props:{recipientIds:{type:Array},threadIds:{type:Array},canSendAttachment:{type:Boolean,default:!0}},setup:function(){return{COVER_ATTACHMENT_PUBLIC_ACCESS:i["a"]}}}),S=O,j=Object(_["a"])(S,r,a,!1,null,null,null),C=j.exports},3622:function(e,t,n){},4580:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",e._g({staticClass:"base-icon-button",on:{click:function(e){return e.currentTarget.blur()}}},e.$listeners),[n("base-icon",{attrs:{"font-size":e.fontSize,color:e.color}},[e._t("default",(function(){return[e._v("sci-dots-vertical")]}))],2)],1)},a=[],o=(n("a9e3"),n("a6f4")),i=n("9058"),c=Object(o["c"])({name:"BaseIconButton",components:{BaseIcon:i["a"]},props:{fontSize:{type:[String,Number]},color:{type:String}}}),s=c,u=(n("ccf0"),n("2877")),l=Object(u["a"])(s,r,a,!1,null,null,null),p=l.exports},"4bfb":function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.show,expression:"!show"}]},[e._t("default",null,{openerIcon:e.openerIcon,show:e.show,enable:e.activateTip,activator:e.toggleShow})],2),e.activateTip&&e.show?n("div",{staticClass:"tip-controller",class:{__transparent:e.transparent}},[n("base-input",{staticClass:" tip-controller__input message-input",class:{__send:e.allowSend,__transparent:e.transparent},attrs:{fieldClass:"tip-controller__input-field",autofocus:"",placeholder:"15",name:"amount",value:e.tipValue,disabled:e.processing,autocomplete:"off",type:"tel",maxlength:"8","append-icon":"sci-send","mask-opts":{showMaskOnFocus:!1,showMaskOnHover:!1,regex:"\\d*"}},on:{input:e.tipValueInput,submit:e.submit,"click:appendIcon":e.submit},scopedSlots:e._u([{key:"prependIcon",fn:function(){return[n("div",{staticClass:"tip-controller__symbol caption"},[e._v(e._s(e.currencySymbol))])]},proxy:!0},{key:"appendIcon",fn:function(){return[e.processing?n("base-spinner",{staticClass:"message-input__progress-bar",attrs:{size:"24px"}}):e._e()]},proxy:!0}],null,!1,32039615)}),n("base-icon-button",{staticClass:"tip-controller__closer ml-2",attrs:{"font-size":"24px"},on:{click:e.toggleShow}},[e._v("sci-keyboard")])],1):e._e(),n("paid-action-error",{model:{value:e.showPaidError,callback:function(t){e.showPaidError=t},expression:"showPaidError"}})],1)},a=[],o=(n("d3b7"),n("25f0"),n("96cf"),n("1da1")),i=n("a34a"),c=n.n(i),s=n("a6f4"),u=n("9b43"),l=n("4afc"),p=n("ff07"),d=n("a32c"),f=n("556c"),v=n("d70b"),b=n("9310"),m=n("75d7"),h=n("efd0"),g=n("9058"),_=n("4580"),y=n("6073"),w="{com.scrile.money.validation.SpendingBalanceValidator.message}",O=Object(s["c"])({name:"TipController",components:{BaseSendMessage:m["a"],BaseInput:h["a"],BaseButton:b["a"],BaseIcon:g["a"],BaseIconButton:_["a"],PaidActionError:y["a"]},props:{threadId:{type:String},transparent:{type:Boolean,default:!1}},setup:function(e){var t=Object(s["f"])("messageData",{user:null}),n=Object(s["a"])((function(){var e,n;return null!==(e=null===(n=t.user)||void 0===n?void 0:n.id)&&void 0!==e?e:""})),r=Object(s["o"])(""),a=Object(s["o"])(!1),i=Object(d["c"])(Object(d["d"])()),b=Object(s["a"])((function(){return 0!==r.value.length&&+r.value>0})),m=Object(s["o"])(!1),h=function(){return m.value=!m.value};Object(s["s"])(m,(function(){r.value=""}));var g=Object(s["o"])(!1),_=function(e){var t=+e;isNaN(t)||0===t?r.value="":r.value=t.toString()},y=function(){var t=Object(o["a"])(c.a.mark((function t(){var o;return c.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n.value&&b.value){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,a.value=!0,o=r.value,p["a"].TipProvider.setReceiveErrors(!1),t.next=8,p["a"].TipProvider.create({data:{recipientId:n.value,amount:+o,threadId:e.threadId}});case 8:r.value="",m.value=!1,t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](2),Object(f["a"])(t.t0,(function(e){var t;return(null===(t=e.details)||void 0===t?void 0:t.messageTemplate)===w}),(function(){return g.value=!0}));case 15:return t.prev=15,a.value=!1,t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])})));return function(){return t.apply(this,arguments)}}(),O=Object(l["a"])(),S=O.authUser,j=Object(s["a"])((function(){var e,n;return Object(u["checkRole"])((null===(e=S.value)||void 0===e?void 0:e.role)||"",v["a"].userRegistrationRole)&&v["a"].featureTipping&&Object(u["checkRole"])((null===(n=t.user)||void 0===n?void 0:n.role)||"","creator")})),C=Object(s["a"])((function(){return m.value?"sci-close":"sci-tip"}));return{currencySymbol:i,tipValue:r,tipValueInput:_,allowSend:b,processing:a,submit:y,activateTip:j,openerIcon:C,show:m,toggleShow:h,showPaidError:g}}}),S=O,j=(n("5b13"),n("2877")),C=Object(j["a"])(S,r,a,!1,null,"4f04fcd7",null),A=C.exports},"4d63":function(e,t,n){var r=n("83ab"),a=n("da84"),o=n("94ca"),i=n("7156"),c=n("9112"),s=n("9bf2").f,u=n("241c").f,l=n("44e7"),p=n("577e"),d=n("ad6d"),f=n("9f7f"),v=n("6eeb"),b=n("d039"),m=n("5135"),h=n("69f3").enforce,g=n("2626"),_=n("b622"),y=n("fce3"),w=n("107c"),O=_("match"),S=a.RegExp,j=S.prototype,C=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,A=/a/g,I=/a/g,k=new S(A)!==A,x=f.UNSUPPORTED_Y,B=r&&(!k||x||y||w||b((function(){return I[O]=!1,S(A)!=A||S(I)==I||"/a/i"!=S(A,"i")}))),E=function(e){for(var t,n=e.length,r=0,a="",o=!1;r<=n;r++)t=e.charAt(r),"\\"!==t?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),a+=t):a+="[\\s\\S]":a+=t+e.charAt(++r);return a},T=function(e){for(var t,n=e.length,r=0,a="",o=[],i={},c=!1,s=!1,u=0,l="";r<=n;r++){if(t=e.charAt(r),"\\"===t)t+=e.charAt(++r);else if("]"===t)c=!1;else if(!c)switch(!0){case"["===t:c=!0;break;case"("===t:C.test(e.slice(r+1))&&(r+=2,s=!0),a+=t,u++;continue;case">"===t&&s:if(""===l||m(i,l))throw new SyntaxError("Invalid capture group name");i[l]=!0,o.push([l,u]),s=!1,l="";continue}s?l+=t:a+=t}return[a,o]};if(o("RegExp",B)){for(var P=function(e,t){var n,r,a,o,s,u,f=this instanceof P,v=l(e),b=void 0===t,m=[],g=e;if(!f&&v&&b&&e.constructor===P)return e;if((v||e instanceof P)&&(e=e.source,b&&(t="flags"in g?g.flags:d.call(g))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),g=e,y&&"dotAll"in A&&(r=!!t&&t.indexOf("s")>-1,r&&(t=t.replace(/s/g,""))),n=t,x&&"sticky"in A&&(a=!!t&&t.indexOf("y")>-1,a&&(t=t.replace(/y/g,""))),w&&(o=T(e),e=o[0],m=o[1]),s=i(S(e,t),f?this:j,P),(r||a||m.length)&&(u=h(s),r&&(u.dotAll=!0,u.raw=P(E(e),n)),a&&(u.sticky=!0),m.length&&(u.groups=m)),e!==g)try{c(s,"source",""===g?"(?:)":g)}catch(_){}return s},$=function(e){e in P||s(P,e,{configurable:!0,get:function(){return S[e]},set:function(t){S[e]=t}})},z=u(S),M=0;z.length>M;)$(z[M++]);j.constructor=P,P.prototype=j,v(a,"RegExp",P)}g("RegExp")},5131:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("5530"),a=n("15fd"),o=n("2b0e"),i=n("0fb2"),c=n("9058"),s=o["default"].extend({functional:!0,name:"ImagePreview",props:{size:{type:String,default:"122px"},src:{required:!0,type:String},alt:{type:String},loading:{type:Boolean,default:!1},remove:{type:Boolean,default:!1}},render:function(e,t){var n=t.props,o=n.remove,s=n.size,u=Object(a["a"])(n,["remove","size"]);return e(i["a"],{style:{width:s,height:s},staticClass:"image-preview "+t.data.staticClass,class:t.data.class,props:Object(r["a"])({topRightIcon:o,bottomLeftIcon:!!t.scopedSlots.bottomLeftIcon},u),directives:t.data.directives,on:{click:t.listeners.click,"click:top-right":t.listeners.remove},scopedSlots:{"top-right":function(){return e(c["a"],{staticClass:"image-preview__remove-icon ma-1"},["sci-cross"])},"bottom-left":function(){return t.scopedSlots.bottomLeftIcon({})}}},[])}})},"556c":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("4de4");var r=n("fe95"),a=n("8613");function o(e,t,n){if(!Array.isArray(e))throw e;var o=e.filter((function(e){return t(e)?(n&&n(e),!1):(r["a"].emit(a["EVENT_NAMES"].REQUEST_STATUS,e),!0)}));if(o.length>0)throw e}},"5b13":function(e,t,n){"use strict";n("3622")},"5e0c":function(e,t,n){},"7eed":function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));n("caad"),n("2532");var r=n("5530"),a=n("2b0e"),o=n("5131"),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"video-preview",style:{width:e.size,height:e.size},on:{click:function(t){return e.$emit("click")}}},[e.notSupported?n("div",[n("content-cover",{attrs:{caption:e.$t("Video"),grid:e.grid}})],1):n("video",{staticClass:"video-preview__video",attrs:{muted:"",preload:"metadata",playsinline:"",src:e.src},domProps:{muted:!0},on:{error:e.onPrintError}}),e.remove?n("div",{staticClass:"video-preview__icon-wrapper d-center",on:{click:function(t){return e.$emit("remove")}}},[n("base-icon",{staticClass:"video-preview__remove-icon"},[e._v("sci-cross")])],1):e._e(),e.loading?n("div",{staticClass:"loading-box d-center",staticStyle:{position:"absolute"}},[n("base-spinner")],1):e._e()])},c=[],s=n("d4ec"),u=n("bee2"),l=n("262e"),p=n("2caf"),d=n("9ab4"),f=n("9058"),v=n("ab58"),b=n("b06d"),m=n("2fe1"),h=n("60a3"),g=function(e){Object(l["a"])(n,e);var t=Object(p["a"])(n);function n(){var e;return Object(s["a"])(this,n),e=t.apply(this,arguments),e.notSupported=!1,e}return Object(u["a"])(n,[{key:"onPrintError",value:function(){this.notSupported=!0}}]),n}(a["default"]);Object(d["__decorate"])([Object(h["e"])({type:String,default:""})],g.prototype,"size",void 0),Object(d["__decorate"])([Object(h["e"])({required:!0,type:String})],g.prototype,"src",void 0),Object(d["__decorate"])([Object(h["e"])({type:Boolean,default:!1})],g.prototype,"loading",void 0),Object(d["__decorate"])([Object(h["e"])({type:Boolean,default:!1})],g.prototype,"grid",void 0),Object(d["__decorate"])([Object(h["e"])({type:Boolean,default:!1})],g.prototype,"remove",void 0),Object(d["__decorate"])([Object(h["e"])({default:"video/video",type:String})],g.prototype,"fileType",void 0),g=Object(d["__decorate"])([Object(m["b"])({name:"VideoPreview",components:{BaseIcon:f["a"],BaseSpinner:v["a"],ContentCover:b["a"]}})],g);var _=g,y=_,w=n("2877"),O=Object(w["a"])(y,i,c,!1,null,null,null),S=O.exports,j=a["default"].extend({functional:!0,name:"MediaPreview",props:{size:{type:String,default:""},fileType:{type:String,default:"image/image"},publicAccess:{type:Boolean,default:!0}},render:function(e,t){return t.props.fileType.includes("video")?e(S,Object(r["a"])(Object(r["a"])({},t.data),{},{props:t.props}),[]):e(o["a"],Object(r["a"])(Object(r["a"])({},t.data),{},{props:t.props,scopedSlots:{bottomLeftIcon:function(){if(t.props.publicAccess)return e(f["a"],{staticClass:"image-preview__cover-icon ma-1 pa-1",props:{fontSize:13}},["sci-lock-open-variant-outline"])}}}),[])}})},9802:function(e,t,n){"use strict";n("b586")},b06d:function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-image",{staticClass:"document-cover",style:{width:e.size,height:e.size},attrs:{src:"/img/content-preview"+(e.type&&"-"+e.type)+".svg","bottom-right-icon":!!e.$scopedSlots["bottom-right"],"bottom-left-icon":!!e.$scopedSlots["bottom-left"],"top-right-icon":!!e.$scopedSlots["top-right"],"center-icon":!!e.$scopedSlots["center"],alt:"preview"},scopedSlots:e._u([{key:"center-icon",fn:function(){return[e._t("center")]},proxy:!0},{key:"bottom-left",fn:function(){return[e._t("bottom-left")]},proxy:!0},{key:"bottom-right",fn:function(){return[e._t("bottom-right")]},proxy:!0},{key:"top-right",fn:function(){return[e._t("top-right")]},proxy:!0}],null,!0)})},a=[],o=(n("caad"),n("2532"),n("d4ec")),i=n("262e"),c=n("2caf"),s=n("9ab4"),u=n("2fe1"),l=n("2b0e"),p=n("0fb2"),d=n("60a3"),f=n("1675");l["default"].component("BaseImage",p["a"]);var v=function(e){Object(i["a"])(n,e);var t=Object(c["a"])(n);function n(){return Object(o["a"])(this,n),t.apply(this,arguments)}return n}(l["default"]);Object(s["__decorate"])([Object(d["e"])({type:String,default:"100%"})],v.prototype,"size",void 0),Object(s["__decorate"])([Object(d["e"])({type:String,default:"",validator:function(e){return["",f["ContentFeedTypeEnum"].EVENT,f["ContentFeedTypeEnum"].MEDIA].includes(e)}})],v.prototype,"type",void 0),v=Object(s["__decorate"])([Object(u["b"])({name:"ContentCover",components:{BaseImage:p["a"]}})],v);var b=v,m=b,h=n("2877"),g=Object(h["a"])(m,r,a,!1,null,null,null),_=g.exports},b586:function(e,t,n){},c051:function(e,t,n){},c585:function(e,t,n){"use strict";n("5e0c")},ca83:function(e,t,n){},ccf0:function(e,t,n){"use strict";n("ca83")},e24e:function(e,t,n){"use strict";n("c051")},fd4d:function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r,a,o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"attachment-files-preview"},[e.isShowCover?n("div",{staticClass:"attachment-files-preview__cover-btn-wrapper"},[n("base-thumbnail-button",{attrs:{title:e.$t("Teaser")},on:{click:function(t){return e.$emit("addCover")}}})],1):e._e(),e._l(e.files,(function(t,r){return n("media-preview",{key:r,staticClass:"attachment-files-preview__item",class:{__cover:t.publicAccess&&e.isCover},attrs:{size:"72px",src:t.src,"file-type":t.type,loading:t.uploadProgress<100,publicAccess:t.publicAccess&&e.isCover,remove:""},on:{click:function(n){return e.$emit("removePreview",t)}}})}))],2)},i=[],c=(n("4de4"),n("a6f4")),s=n("a5de"),u=n("7eed"),l=(n("a9e3"),n("9058")),p=Object(c["c"])({name:"BaseThumbnailButton",functional:!0,props:{title:{type:String},iconSize:{type:Number,default:32},mobileHideText:{type:Boolean,default:!1}},render:function(e,t){return e("button",{class:["base-thumbnail-button","body-2"],on:{click:t.listeners.click}},[e(l["a"],{props:{fontSize:t.props.iconSize}},[t.scopedSlots.default?t.scopedSlots.default({}):"sci-round-plus"]),t.props.title?e("span",{staticClass:"base-thumbnail-button__title link",class:{__hide:t.props.mobileHideText}},[t.props.title]):null])}}),d=p,f=(n("9802"),n("2877")),v=Object(f["a"])(d,r,a,!1,null,"9086ec72",null),b=v.exports,m=Object(c["c"])({name:"AttachmentFilesPreview",components:{BaseThumbnailButton:b,MediaPreview:u["a"]},props:{files:{type:Array,default:function(){return[]}},isCover:{type:Boolean,default:!1}},setup:function(e){var t=Object(c["a"])((function(){var t=e.files.filter((function(e){return e.publicAccess}));return e.isCover&&t.length<s["c"]}));return{isShowCover:t}}}),h=m,g=(n("c585"),Object(f["a"])(h,o,i,!1,null,"03354e80",null)),_=g.exports}}]);