Файловый менеджер - Редактировать - /var/www/html/components/com_community/assets/app/dist/postbox.app.js
Ðазад
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],[,,function(t,e,o){"use strict";e.a=function(t){if("string"==typeof t&&t.length){var e=joms.language;for(t=t.split(".");t.length;)e=e[t.shift()];return e}}},function(t,e,o){"use strict";o.d(e,"a",(function(){return i}));const s=jQuery.extend(!0,{},joms&&joms.constants),i={get(t){if("string"!=typeof t||!t.length)return;let e=s;for(t=t.split(".");t.length;)e=e[t.shift()];return e},set(t,e){if("string"!=typeof t||!t.length)return;let o,i=s,a=t.split(".");for(let t=0;t<a.length;t++)o=a[t],t!==a.length-1&&(i=i[o]);i[o]=e}}},,,function(t,e,o){"use strict";var s=function(){return(0,this._self._c)("nav",{staticClass:"joms-postbox-tab"},[this._t("default")],2)};s._withStripped=!0;var i={},a=(o(113),o(1)),r=Object(a.a)(i,s,[],!1,null,null,null);e.a=r.exports},function(t,e,o){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-action"},[e("button",{staticClass:"joms-postbox-cancel",on:{click:t.reset}},[t._v(t._s(t.cancel))]),t._v(" "),t.isPostable?e("button",{staticClass:"joms-postbox-save",on:{click:t.validate}},[t._v(t._s(t.save))]):t._e()])};s._withStripped=!0;var i=o(2),a={props:{isPostable:{type:Boolean,default:!1},cancel:{type:String,default:Object(i.a)("postbox.cancel_button")},save:{type:String,default:Object(i.a)("postbox.post_button")}},methods:{validate(){this.$emit("validate")},reset(){this.$emit("reset")}}},r=o(1),n=Object(r.a)(a,s,[],!1,null,null,null);e.a=n.exports},function(t,e,o){"use strict";var s=function(){var t=this._self._c;return t("div",{staticClass:"joms-postbox-loading"},[t("img",{attrs:{src:this.img,alt:"loader"}})])};s._withStripped=!0;var i={data:()=>({img:Joomla.getOptions("com_community").assets_url+"ajax-loader.gif"})},a=o(1),r=Object(a.a)(i,s,[],!1,null,null,null);e.a=r.exports},,,function(t,e,o){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"j-editor-touch-device"},[e("div",{staticClass:"j-textarea__beautifier",domProps:{innerHTML:t._s(t.beautiferValue)}}),t._v(" "),e("textarea-autosize",{staticClass:"j-textarea",attrs:{placeholder:t.placeholder,"min-height":t.isColorful?200:50},on:{input:t.onInputTextarea},nativeOn:{keydown:function(e){return t.onKeyDownTextarea.apply(null,arguments)},focus:function(e){return t.onFocus.apply(null,arguments)}},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}),t._v(" "),e("div",{domProps:{innerHTML:t._s(t.placeholderStyle)}}),t._v(" "),t.mentionListShow?e("div",{staticClass:"j-mention-list"},t._l(t.mentionList,(function(o){return e("div",{key:o.id,staticClass:"j-mention-item",on:{click:function(e){return t.addTag(o)}}},[e("img",{attrs:{src:o.avatar}}),t._v(" "),e("span",[t._v(t._s(o.name))])])})),0):t._e()],1)};s._withStripped=!0;var i=o(4),a=o(35),r=o(5),n=o.n(r);i.a.use(a.a);var c={props:{bg:{type:Object,default:()=>({})},isColorful:{type:Boolean,default:!1},placeholder:{type:String,default:"What's on your mind?"}},data:()=>({beautiferValue:"",value:"",tagsAdded:[],mentionList:[],mentionListShow:!1,mentionCharPos:0,cursorPos:0,afterTagging:!1}),computed:{placeholderStyle(){return this.bg.placeholdercolor?`\n <style>\n .joms-postbox__status-composer textarea.j-textarea::-webkit-input-placeholder {\n color: #${this.bg.placeholdercolor};\n }\n\n .joms-postbox__status-composer textarea.j-textarea:-moz-placeholder {\n color: #${this.bg.placeholdercolor}; \n }\n\n .joms-postbox__status-composer textarea.j-textarea::-moz-placeholder {\n color: #${this.bg.placeholdercolor}; \n }\n\n .joms-postbox__status-composer textarea.j-textarea:-ms-input-placeholder {\n color: #${this.bg.placeholdercolor}; \n }\n\n .joms-postbox__status-composer textarea.j-textarea::placeholder {\n color: #${this.bg.placeholdercolor}; \n }\n\n .joms-postbox__status-composer .colorful-editor .j-textarea__beautifier span {\n color: #${this.bg.textcolor};\n }\n </style>`:""}},methods:{addTag(t){this.tagsAdded.push({id:t.id,name:t.name,start:this.mentionCharPos,length:t.name.length});const e=this.value.slice(0,this.mentionCharPos),o=this.value.substring(this.cursorPos);this.value=e+t.name+o,this.afterTagging=!0,setTimeout(()=>{this.afterTagging=!1},300),this.updateBeautifier(this.value,this.tagsAdded),this.updateHiddenInput(this.value,this.tagsAdded),this.hideMentionList(),this.focus()},updateBeautifier:n()((function(t,e){let o,s,i,a,r;if(e.length){for(o="^",s="",i=0,r=0;r<e.length;r++)a=e[r],o+="([\\s\\S]{"+(a.start-i)+"})([\\s\\S]{"+a.length+"})",s+="$"+(2*r+1)+"[span]"+a.name+"[/span]",i=a.start+a.length;o=new RegExp(o),t=t.replace(o,s)}t=(t=(t=t.replace(/</g,"<").replace(/>/g,">")).replace(/\[(\/?span)\]/g,"<$1>")).replace(/\n/g,"<br>"),this.beautiferValue=t}),1),updateHiddenInput:n()((function(t,e){let o,s,i,a,r;if(e.length){for(o="^",s="",i=0,r=0;r<e.length;r++)a=e[r],o+="([\\s\\S]{"+(a.start-i)+"})([\\s\\S]{"+a.length+"})",s+="$"+(2*r+1)+"@[["+a.id+":contact:"+a.name+"]]",i=a.start+a.length;o=new RegExp(o),t=t.replace(o,s)}const n=t.replace(/@\[\[.*?\]\]/g,"0").length;this.$emit("change",{value:t,numchar:n})}),100),onKeyDownTextarea(){const t=this.$el.querySelector(".j-textarea");this.prevSelStart=t.selectionStart,this.prevSelEnd=t.selectionEnd},onInputTextarea(t){var e,o,s,i;const a=this.$el.querySelector(".j-textarea");if(this.tagsAdded.length&&!this.afterTagging){if(this.prevSelStart!==this.prevSelEnd)for(i=0;i<this.tagsAdded.length;i++)s=(o=this.tagsAdded[i]).start+o.length,(this.prevSelStart>o.start&&this.prevSelStart<s||this.prevSelEnd>o.start&&this.prevSelEnd<s||o.start>=this.prevSelStart&&s<=this.prevSelEnd)&&this.tagsAdded.splice(i--,1);for(e=a.selectionStart-this.prevSelStart-(this.prevSelEnd-this.prevSelStart),i=0;i<this.tagsAdded.length;i++){s=(o=this.tagsAdded[i]).start+o.length;const t=o.start>this.prevSelStart,a=o.start===this.prevSelStart,r=s<this.prevSelStart,n=s>this.prevSelStart,c=e<0;t||a?o.start+=e:r||!n&&!c||this.tagsAdded.splice(i--,1)}}this.updateBeautifier(this.value,this.tagsAdded),this.updateHiddenInput(this.value,this.tagsAdded),this.toggleMentionList(t)},onFocus(){this.$emit("focus")},toggleMentionList:n()((function(t){const e=this.$el.querySelector(".j-textarea");this.cursorPos=e.selectionStart;const o=t.slice(0,this.cursorPos),s=o.lastIndexOf("@");if(s<0)return void this.hideMentionList();if(0!==s&&!o[s-1].match(/\s/g))return void this.hideMentionList();this.mentionCharPos=this.cursorPos-(o.length-s);const a=o.substring(s+1);if(a.length){o[s];const t=joms_friends.filter(t=>{const e=t.name.toLowerCase().indexOf(a.toLowerCase())>-1,o=this.tagsAdded.find(e=>e.id===t.id);return e&&!o});if(t.length)return i.a.set(this,"mentionList",t),void this.showMentionList()}this.hideMentionList()}),300),hideMentionList(){this.mentionListShow=!1},showMentionList(){this.mentionListShow=!0},reset(){this.value="",i.a.set(this,"tagsAdded",[])},focus(){const t=this.$el.querySelector(".j-textarea");t&&t.focus()},insertEmoji(t){const e=this.$el.querySelector(".j-textarea"),o=e.value.slice(0,e.selectionStart),s=e.value.substring(e.selectionStart);this.value=o+t.native+s,setTimeout(()=>{e.selectionStart=o.length+t.native.length,this.focus()})}}},l=(o(119),o(1)),m=Object(l.a)(c,s,[],!1,null,null,null);e.a=m.exports},function(t,e,o){"use strict";var s=function(){var t=this._self._c;return t("div",{staticClass:"j-emoji"},[t("img",{staticClass:"j-emoji-icon",attrs:{src:this.assets_url+"mood_19.png"},on:{click:this.toggleBoard}}),this._v(" "),t("div",{staticClass:"j-emoji-content"},[t("keep-alive",[this.showBoard?t("JEmojiBoard",{directives:[{name:"click-outside",rawName:"v-click-outside",value:this.hideBoard,expression:"hideBoard"}],on:{selectEmoji:this.selectEmoji}}):this._e()],1)],1)])};s._withStripped=!0;var i=o(5),a={data:()=>({assets_url:Joomla.getOptions("com_community").assets_url,showBoard:!1}),components:{JEmojiBoard:()=>o.e(0).then(o.bind(null,167))},methods:{toggleBoard:o.n(i)()((function(){this.showBoard=!this.showBoard}),100),hideBoard(t){const e=t.target.getAttribute("class");(e?e.split(" "):[]).indexOf("j-emoji-icon")>-1||(this.showBoard=!1)},selectEmoji(t){this.$emit("selectEmoji",t)}}},r=(o(120),o(1)),n=Object(r.a)(a,s,[],!1,null,null,null);e.a=n.exports},function(t,e,o){"use strict";var s=function(){return(0,this._self._c)("div",{staticClass:"joms-postbox-charcount",class:this.overClass},[this._v(this._s(this.num))])};s._withStripped=!0;var i={props:{num:Number},computed:{overClass(){return{over:this.num<0}}}},a=(o(121),o(1)),r=Object(a.a)(i,s,[],!1,null,null,null);e.a=r.exports},,,,,,,function(module,__webpack_exports__,__webpack_require__){"use strict";var _JEventComposer_vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(160),_JEventMiniBar_vue__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(161),_JEventConfig_vue__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(162),_JEventPreview_vue__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(163),luxon__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(17),luxon__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(luxon__WEBPACK_IMPORTED_MODULE_4__),_utils_language__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2);__webpack_exports__.a={components:{JEventComposer:_JEventComposer_vue__WEBPACK_IMPORTED_MODULE_0__.a,JEventMiniBar:_JEventMiniBar_vue__WEBPACK_IMPORTED_MODULE_1__.a,JEventConfig:_JEventConfig_vue__WEBPACK_IMPORTED_MODULE_2__.a,JEventPreview:_JEventPreview_vue__WEBPACK_IMPORTED_MODULE_3__.a},data:()=>({config:!1,placeholderEventTitle:Object(_utils_language__WEBPACK_IMPORTED_MODULE_5__.a)("event.title_hint")}),computed:{title:{get(){return this.$store.state.event.attachment.title},set(t){this.$store.commit("event/setTitle",t)}}},methods:{validate(){this.post()},post(){const DATA=Joomla.getOptions("com_community"),filterParams=DATA.stream_filter_params?JSON.stringify(DATA.stream_filter_params):"",state=this.$store.state.event,content=state.content,attachments=JSON.stringify(state.attachment),rawData=[content,attachments,filterParams];this.$store.dispatch("post",rawData).then(res=>{if(res[0]&&"ajax_calls"===res[0][1]&&res[1]&&res[1][1]){if("__throwError"===res[1][1])return;eval(res[1][1])}this.reset()})},onEventInputFocus(){this.$store.commit("setFree",!1)},showEventConfig(){this.config=!0},hideEventConfig(){this.config=!1},saveEventConfig({inviteOnly:t,catid:e,location:o,startDate:s,endDate:i}){const a=luxon__WEBPACK_IMPORTED_MODULE_4__.DateTime.fromISO(s),r=luxon__WEBPACK_IMPORTED_MODULE_4__.DateTime.fromISO(i),n=[a.year,a.month<10?"0"+a.month:a.month,a.day<10?"0"+a.day:a.day].join("-"),c=[r.year,r.month<10?"0"+r.month:r.month,r.day<10?"0"+r.day:r.day].join("-"),l={allday:!1,event:{private:t},catid:e,location:o,startdate:n,"starttime-hour":String(a.hour<10?"0"+a.hour:a.hour),"starttime-min":String(a.minute<10?"0"+a.minute:a.minute),enddate:c,"endtime-hour":String(r.hour<10?"0"+r.hour:r.hour),"endtime-min":String(r.minute<10?"0"+r.minute:r.minute)};this.$store.commit("event/setAttachment",l),this.hideEventConfig()},reset(){this.$refs.composer.reset(),this.$store.commit("event/reset"),this.$store.commit("setFree",!0)}}}},,function(t,e,o){"use strict";var s=function(){var t=this,e=t._self._c;return t.mood&&t.mood.id?e("span",{staticClass:"j-mood-display"},[t._v("\n - "),e("img",{staticClass:"joms-emoticon",attrs:{title:t.mood.title,src:t.mood.image}}),t._v(" "),e("b",[t._v(t._s(t.mood.description))])]):t._e()};s._withStripped=!0;var i=o(3),a={props:{moodId:{type:String,default:"0"}},computed:{mood(){const{enablemood:t}=i.a.get("conf");if(!t)return;return JSON.parse(JSON.stringify(i.a.get("moods"))).find(t=>t.id===this.moodId)}}},r=o(1),n=Object(r.a)(a,s,[],!1,null,null,null);e.a=n.exports},,,,,,,,,,,,,,function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},,,function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},,,function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},function(t,e,o){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,o){"use strict";o(36)},,,,,,function(t,e,o){"use strict";o(37)},function(t,e,o){"use strict";o(38)},function(t,e,o){"use strict";o(39)},function(t,e,o){"use strict";o(40)},,function(t,e,o){"use strict";o(43)},function(t,e,o){"use strict";o(44)},function(t,e,o){"use strict";o(45)},function(t,e,o){"use strict";o(46)},function(t,e,o){"use strict";o(47)},function(t,e,o){"use strict";o(50)},function(t,e,o){"use strict";o(51)},function(t,e,o){"use strict";o(52)},function(t,e,o){"use strict";o(53)},function(t,e,o){"use strict";o(54)},function(t,e,o){"use strict";o(55)},,function(t,e,o){"use strict";o(56)},function(t,e,o){"use strict";o(57)},function(t,e,o){"use strict";o(58)},function(t,e,o){"use strict";o(59)},,,,function(t,e,o){"use strict";o(60)},function(t,e,o){"use strict";o(61)},function(t,e,o){"use strict";o(62)},function(t,e,o){"use strict";o(63)},function(t,e,o){"use strict";o(64)},,,,,,,,,,,,,function(t,e,o){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox__event-composer"},[e(t.currentEditor,{ref:"editor",tag:"component",staticClass:"normal-editor",attrs:{isColorful:!1,placeholder:t.placeholder},on:{focus:t.onEditorFocus,change:t.onEditorChange}}),t._v(" "),e("JCharCount",{attrs:{num:t.numCharLeft}}),t._v(" "),e("JMoodDisplay",{attrs:{moodId:t.moodId}}),t._v(" "),e("div",{staticClass:"j-event-composer-toolbar"},[e("div",{staticClass:"toolbar-bg-picker"}),t._v(" "),t.isTouch?t._e():e("div",{staticClass:"toolbar-emoji"},[e("JEmoji",{on:{selectEmoji:t.selectEmoji}})],1)])],1)};s._withStripped=!0;var i=o(11),a=o(12),r=o(22),n=o(13),c=o(3),l=o(2),m={components:{JEditorTouchDevice:i.a,JMoodDisplay:r.a,JCharCount:n.a,JEmoji:a.a},data:()=>({charLimit:+c.a.get("conf.statusmaxchar"),numchar:0,placeholder:Object(l.a)("status.event_hint")}),mounted(){this.$store.commit("setNumCharLeft",this.charLimit-this.numchar)},computed:{currentEditor:()=>"JEditorTouchDevice",isTouch(){return this.$store.state.isTouch},moodId(){return this.$store.state.event.attachment.mood},numCharLeft(){return this.$store.state.numCharLeft}},methods:{onEditorFocus(){this.$store.commit("setFree",!1)},onEditorChange({value:t,numchar:e}){this.numchar=e,this.$store.commit("event/setContent",t),this.$store.commit("setNumCharLeft",this.charLimit-this.numchar)},reset(){this.$refs.editor.reset()},selectEmoji(t){this.$refs.editor.insertEmoji(t)}}},d=(o(122),o(1)),u=Object(d.a)(m,s,[],!1,null,null,null);e.a=u.exports},function(t,e,o){"use strict";var s=function(){var t=this,e=t._self._c;return e("JMiniBar",[e("ul",{staticClass:"joms-list inline"},[e("li",{on:{click:function(e){return t.$emit("showEventConfig")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-cog"}})]),t._v(" "),e("span",{staticClass:"visible-desktop"},[t._v(t._s(t.eventDetailText))])])]),t._v(" "),t.isFree?t._e():e("JAction",{attrs:{isPostable:t.isPostable},on:{reset:function(e){return t.$emit("reset")},validate:function(e){return t.$emit("validate")}}}),t._v(" "),t.isLoading?e("JLoading"):t._e()],1)};s._withStripped=!0;var i=o(6),a=o(7),r=o(8),n=o(2),c={components:{JMiniBar:i.a,JAction:a.a,JLoading:r.a},data:()=>({currentUrl:Joomla.getOptions("com_community").current_url,eventDetailText:Object(n.a)("event.event_detail").toLowerCase()}),computed:{isPostable(){const t=this.$store.state.numCharLeft,e=!!this.$store.state.event.attachment.title,o=!!this.$store.state.event.attachment.catid;return e&&o&&t>-1},isFree(){return this.$store.state.free},isLoading(){return this.$store.state.loading}}},l=o(1),m=Object(l.a)(c,s,[],!1,null,null,null);e.a=m.exports},function(t,e,o){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-dropdown event-dropdown"},[e("div",{staticClass:"event-row"},[e("div",{staticClass:"event-time-column"},[e("label",{staticClass:"joms-checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.inviteOnly,expression:"inviteOnly"}],staticClass:"joms-checkbox private-event",attrs:{type:"checkbox",name:"permission"},domProps:{checked:Array.isArray(t.inviteOnly)?t._i(t.inviteOnly,null)>-1:t.inviteOnly},on:{change:function(e){var o=t.inviteOnly,s=e.target,i=!!s.checked;if(Array.isArray(o)){var a=t._i(o,null);s.checked?a<0&&(t.inviteOnly=o.concat([null])):a>-1&&(t.inviteOnly=o.slice(0,a).concat(o.slice(a+1)))}else t.inviteOnly=i}}}),t._v(" "),e("span",{attrs:{title:t.eventPrivateTipsText}},[t._v("\n "+t._s(t.eventPrivateText)+"\n ")])])])]),t._v(" "),e("div",{staticClass:"event-row"},[e("div",{staticClass:"event-time-column"},[e("span",[t._v(t._s(t.categoryText)),e("span",{staticStyle:{color:"red"}},[t._v("*")])]),t._v(" "),e("div",{staticClass:"joms-select--wrapper"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.catid,expression:"catid"}],staticClass:"joms-event-category joms-select",staticStyle:{width:"100%"},on:{change:function(e){var o=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.catid=e.target.multiple?o:o[0]}}},[e("option",{attrs:{disabled:"",value:""}},[t._v(t._s(t.selectCategoryText))]),t._v(" "),t._l(t.categories,(function(o){return e("option",{key:o.id,domProps:{value:o.id}},[t._v("\n "+t._s(o.name)+"\n ")])}))],2)])]),t._v(" "),e("div",{staticClass:"event-time-column"},[e("span",[t._v(t._s(t.locationLabel)),e("span",{staticStyle:{color:"red"}},[t._v("*")])]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.location,expression:"location"}],staticClass:"joms-input",attrs:{type:"text",placeholder:t.locationHint},domProps:{value:t.location},on:{input:function(e){e.target.composing||(t.location=e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"event-row"},[e("span",[t._v(t._s(t.startText)),e("span",{staticStyle:{color:"red"}},[t._v("*")])]),t._v(" "),e("VueDateTime",{attrs:{type:"datetime","input-id":"joms-postbox-event-start-date","input-class":"joms-input",format:t.timeFormat,"use12-hour":t.use12h,"min-datetime":t.now,placeholder:t.startDateText},model:{value:t.startDate,callback:function(e){t.startDate=e},expression:"startDate"}})],1),t._v(" "),e("div",{staticClass:"event-row"},[e("span",[t._v(t._s(t.endText)),e("span",{staticStyle:{color:"red"}},[t._v("*")])]),t._v(" "),e("VueDateTime",{attrs:{type:"datetime","input-id":"joms-postbox-event-end-date","input-class":"joms-input",format:t.timeFormat,"use12-hour":t.use12h,"min-datetime":t.now,placeholder:t.endDateText},model:{value:t.endDate,callback:function(e){t.endDate=e},expression:"endDate"}})],1),t._v(" "),e("div",{staticClass:"joms-postbox-action event-action"},[e("button",{staticClass:"joms-button--primary joms-button--smallest",on:{click:t.save}},[t._v(t._s(t.doneText))])])])};s._withStripped=!0;o(41);var i=o(42),a=o(3),r=o(2),n={components:{VueDateTime:i.Datetime},data(){const t=!!a.a.get("conf.eventshowampm"),e=t?"LLL d, yyyy, h:mm a":"LLL d, yyyy, HH:mm";return{categories:a.a.get("eventCategories"),catid:"",location:"",startDate:"",endDate:"",now:(new Date).toISOString(),inviteOnly:!1,categoryText:Object(r.a)("event.category"),selectCategoryText:Object(r.a)("select_category"),eventPrivateText:Object(r.a)("event.private"),eventPrivateTipsText:Object(r.a)("event.private_tips"),locationLabel:Object(r.a)("event.location"),locationHint:Object(r.a)("event.location_hint"),startText:Object(r.a)("event.start"),startDateText:Object(r.a)("event.start_date_hint"),endText:Object(r.a)("event.end"),endDateText:Object(r.a)("event.end_date_hint"),doneText:Object(r.a)("event.done_button"),timeFormat:e,use12h:t}},methods:{save(){if(!this.catid)return alert(Object(r.a)("event.category_not_selected"));if(!this.location)return alert(Object(r.a)("event.location_not_selected"));if(!this.startDate)return alert(Object(r.a)("event.start_date_not_selected"));if(!this.endDate)return alert(Object(r.a)("event.end_date_not_selected"));if(this.endDate<=this.startDate)return alert(Object(r.a)("event.end_date_too_early"));const{inviteOnly:t,catid:e,location:o,startDate:s,endDate:i}=this;this.$emit("save",{inviteOnly:t,catid:e,location:o,startDate:s,endDate:i})},reset(){}}},c=(o(124),o(1)),l=Object(c.a)(n,s,[],!1,null,null,null);e.a=l.exports},function(t,e,o){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-event-detail"},[e("div",{staticClass:"joms-postbox-event-panel joms-postbox-event-label-category"},[e("div",{staticClass:"joms-postbox-event-title"},[e("div",{staticClass:"joms-input-field-name"},[t._v(t._s(t.categoryText))]),t._v(" "),e("span",{staticClass:"joms-input-text"},[t._v(t._s(t.category.name))])])]),t._v(" "),e("div",{staticClass:"joms-postbox-event-panel joms-postbox-event-label-location"},[e("div",{staticClass:"joms-postbox-event-title"},[e("div",{staticClass:"joms-input-field-name"},[t._v(t._s(t.locationLabel))]),t._v(" "),e("span",{staticClass:"joms-input-text"},[t._v(t._s(t.location))])])]),t._v(" "),e("div",{staticClass:"joms-postbox-event-panel joms-postbox-event-label-date"},[e("div",{staticClass:"joms-postbox-event-title"},[e("div",{staticClass:"joms-input-field-name"},[t._v(t._s(t.dateAndTimeText))]),t._v(" "),e("span",{staticClass:"joms-input-text"},[t._v(t._s(t.startDate)+" — "+t._s(t.endDate))])])])])};s._withStripped=!0;var i=o(17),a=o(3),r=o(2),n={data(){const t=!!a.a.get("conf.eventshowampm")?"LLL d, yyyy, h:mm a":"LLL d, yyyy, HH:mm";return{categoryText:Object(r.a)("event.category"),locationLabel:Object(r.a)("event.location"),dateAndTimeText:Object(r.a)("event.date_and_time"),timeFormat:t}},computed:{category(){return a.a.get("eventCategories").find(t=>t.id===this.$store.state.event.attachment.catid)||{}},location(){return this.$store.state.event.attachment.location},startDate(){const{attachment:t}=this.$store.state.event,e=[t["starttime-hour"],t["starttime-min"],"00"].join(":"),o=t.startdate+" "+e;return i.DateTime.fromSQL(o).toFormat(this.timeFormat)},endDate(){const{attachment:t}=this.$store.state.event,e=[t["endtime-hour"],t["endtime-min"],"00"].join(":"),o=t.enddate+" "+e;return i.DateTime.fromSQL(o).toFormat(this.timeFormat)}}},c=(o(125),o(1)),l=Object(c.a)(n,s,[],!1,null,null,null);e.a=l.exports},,,function(t,e,o){"use strict";o.r(e);var s=o(4),i=o(111),a=o(3);const{target:r,element:n,filter:c}=a.a.get("postbox.attachment"),l={element:n,target:r,filter:c,type:"message",privacy:a.a.get("conf.profiledefaultprivacy"),mood:"",colorful:!1,bgid:"0",location:[],fetch:[]};var m={namespaced:!0,state:{content:"",attachment:JSON.parse(JSON.stringify(l))},mutations:{setPrivacy(t,e){t.attachment.privacy=e},setMood(t,e){t.attachment.mood=e},setContent(t,e){t.content=e},setBg(t,e){const o=t.attachment;o.colorful="0"!==e,o.bgid=e},setLocation({attachment:t},e){const o=e?[e.name,e.lat,e.lon]:[];s.a.set(t,"location",o)},setPreview({attachment:t},e){const o=e?[e.url,e.image,e.title,e.desc]:[];s.a.set(t,"fetch",o)},reset(t){t.savedBg="0",t.content="",s.a.set(t,"attachment",JSON.parse(JSON.stringify(l)))}}};const d={0:"public",10:"public",20:"site_members",30:"friends",40:"me"},u=a.a.get("album").map(t=>({value:t.id,text:t.name,sub:d[t.permissions]})),{target:p,element:h,filter:v}=a.a.get("postbox.attachment"),_={element:h,target:p,filter:v,type:"photo",id:[],album_id:u.length?u[0].value:"",mood:""};var f={namespaced:!0,state:{albums:u,content:"",attachment:JSON.parse(JSON.stringify(_))},mutations:{setContent(t,e){t.content=e},setAlbum({attachment:t},e){t.album_id=e},setPhoto({attachment:t},e){s.a.set(t,"id",e)},setMood(t,e){t.attachment.mood=e},reset(t){t.content="",s.a.set(t,"attachment",JSON.parse(JSON.stringify(_)))}}};const{target:g,element:y,filter:b}=a.a.get("postbox.attachment"),j={element:y,target:g,filter:b,type:"file",privacy:a.a.get("conf.profiledefaultprivacy"),mood:""};var w={namespaced:!0,state:{content:"",attachment:JSON.parse(JSON.stringify(j))},mutations:{setPrivacy(t,e){t.attachment.privacy=e},setMood(t,e){t.attachment.mood=e},setContent(t,e){t.content=e},setFile({attachment:t},e){s.a.set(t,"id",e)},reset(t){t.content="",s.a.set(t,"attachment",JSON.parse(JSON.stringify(j)))}}};const{target:x,element:C,filter:P}=a.a.get("postbox.attachment"),$={element:C,target:x,filter:P,type:"video",privacy:a.a.get("conf.profiledefaultprivacy"),mood:"",fetch:[],location:[]};var O={namespaced:!0,state:{catid:"0",content:"",attachment:JSON.parse(JSON.stringify($))},mutations:{setPrivacy(t,e){t.attachment.privacy=e},setMood(t,e){t.attachment.mood=e},setContent(t,e){t.content=e},setPreview({attachment:t},e){const o=e?[e.id,e.url,e.image,e.title,e.desc,e.catid]:[];s.a.set(t,"fetch",o)},setCategory(t,e){if(t.catid=e,t.attachment.fetch[5])return t.attachment.fetch[5]=e},setLocation({attachment:t},e){const o=e?[e.name,e.lat,e.lon]:[];s.a.set(t,"location",o)},reset(t){t.content="",t.catid="0",s.a.set(t,"attachment",JSON.parse(JSON.stringify($)))}}},k=o(77),J=o.n(k);const{target:S,element:L,filter:T}=a.a.get("postbox.attachment"),M={element:L,target:S,filter:T,type:"event",event:{private:!1},title:"",catid:"",location:"",startdate:"",enddate:"",allday:!1,"starttime-hour":"","starttime-min":"","endtime-hour":"","endtime-min":""};var E={namespaced:!0,state:{content:"",attachment:JSON.parse(JSON.stringify(M))},mutations:{setAttachment(t,e){const o=J()(JSON.parse(JSON.stringify(t.attachment)),e);s.a.set(t,"attachment",o)},setTitle({attachment:t},e){t.title=e},setContent(t,e){t.content=e},reset(t){t.content="",s.a.set(t,"attachment",JSON.parse(JSON.stringify(M)))}}};const{target:A,element:D,filter:B}=a.a.get("postbox.attachment"),N={element:D,target:A,filter:B,type:"poll",options:["",""],settings:{allow_multiple:!1},polltime:{enddate:[],endtime:[]},privacy:a.a.get("conf.profiledefaultprivacy"),catid:""};var F={namespaced:!0,state:{content:"",attachment:JSON.parse(JSON.stringify(N))},mutations:{setContent(t,e){t.content=e},updateOption({attachment:t},{index:e,value:o}){t.options[e]=o},addOption({attachment:t}){t.options.push("")},removeOption({attachment:t},e){t.options.splice(e,1)},setMultiple({attachment:t},e){t.settings.allow_multiple=e},setCategory({attachment:t},e){t.catid=e},setExpiryDate({attachment:t},e){s.a.set(t.polltime,"enddate",e)},setExpiryTime({attachment:t},e){s.a.set(t.polltime,"endtime",e)},setPrivacy({attachment:t},e){t.privacy=e},reset(t){t.content="",s.a.set(t,"attachment",JSON.parse(JSON.stringify(N)))}}},I={namespaced:!0,state:{type:"",content:"",privacy:"10"},mutations:{setType(t,e){t.type=e},setContent(t,e){t.content=e},setPrivacy(t,e){t.privacy=e},reset(t){t.type="",t.content="",t.privacy="10"}}},U=o(2);s.a.use(i.a);const z=jQuery,q=Joomla.getOptions("com_community").current_url,V=[{name:"public",title:Object(U.a)("privacy.public"),desc:Object(U.a)("privacy.public_desc"),icon:"earth",icon_url:q+"#joms-icon-earth",value:"10"},{name:"site_members",title:Object(U.a)("privacy.site_members"),desc:Object(U.a)("privacy.site_members_desc"),icon:"users",icon_url:q+"#joms-icon-users",value:"20"},{name:"friends",title:Object(U.a)("privacy.friends"),desc:Object(U.a)("privacy.friends_desc"),icon:"user",icon_url:q+"#joms-icon-user",value:"30"},{name:"me",title:Object(U.a)("privacy.me"),desc:Object(U.a)("privacy.me_desc"),icon:"lock",icon_url:q+"#joms-icon-lock",value:"40"}],R=a.a.get("conf.enablebackground")?a.a.get("backgrounds"):[],H=!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch);function K(){const t=z(".joms-comment__body,.joms-js--inbox").find(".joms-js--video").not(".joms-js--initialized").addClass(".joms-js--initialized".substr(1));t.length&&(joms.loadCSS(joms.ASSETS_URL+"vendors/mediaelement/mediaelementplayer.min.css"),t.on("click.joms-video",".joms-js--video-play",(function(){const t=z(this).closest(".joms-js--video");joms.util.video.play(t,t.data())})))}function W(t){var e=function(t){var e,o;if(t.html)return t.html;if(t&&t.length)for(var s=0;s<t.length;s++)"__throwError"!==t[s][1]&&"al"!==t[s][0]||(o=t[s][3],window.alert(z.isArray(o)?o.join(". "):o)),e||"activity-stream-container"!==t[s][1]||(e=t[s][3]);return e}(t);e&&(z(".joms-stream__wrapper").first().html(e),joms.parseEmoji(),window.joms&&joms.view&&joms.view.streams&&(joms.view.streams.start(),joms.view.misc.fixSVG()))}var G=new i.a.Store({strict:!0,state:{bgs:R,privacies:V,activeTab:"status",free:!0,loading:!1,isTouch:H,filter_config:{filter:"",value:"default_value",hashtag:!1},numCharLeft:0},actions:{post({commit:t},e){t("setLoading",!0);const o=e.map(t=>t?t.trim():"");return new Promise((e,s)=>{joms.ajax({func:"system,ajaxStreamAdd",data:o,callback:o=>{W(o),+window.joms_infinitescroll&&z(".joms-stream__loadmore").find("a").hide(),K(),t("setLoading",!1),e(o)}})})},postAdminAnnouncement({commit:t},e){t("setLoading",!0);const o=e.map(t=>t.trim());return new Promise((e,s)=>{joms.ajax({func:"activities,ajaxAddPredefined",no_html:1,data:o,callback:o=>{W(o),+window.joms_infinitescroll&&z(".joms-stream__loadmore").find("a").hide(),K(),t("setLoading",!1),e(o)}})})}},mutations:{setActiveTab(t,e){t.activeTab=e},setFree(t,e){t.free=e},setLoading(t,e){t.loading=!!e},setNumCharLeft(t,e){t.numCharLeft=e}},modules:{status:m,photo:f,file:w,video:O,event:E,poll:F,custom:I}}),Q=o(112),Y=o.n(Q),X=function(){var t=this._self._c;return t("div",{staticClass:"joms-postbox"},[t("div",{staticClass:"joms-postbox-content",attrs:{id:"joms-postbox-status"}},[t("div",{staticClass:"joms-postbox-tabs"},[t(this.currentComponent,{tag:"component"})],1)]),this._v(" "),t("JTabNav",{directives:[{name:"show",rawName:"v-show",value:this.tabShow,expression:"tabShow"}]})],1)};X._withStripped=!0;var Z=function(){var t=this,e=t._self._c;return e("nav",{staticClass:"joms-postbox-tab joms-postbox-tab-root"},[e("ul",{staticClass:"joms-list inline"},t._l(t.tabs,(function(o){return e("li",{key:o.name,class:{active:o.name===t.$store.state.activeTab},attrs:{title:o.title},on:{click:function(e){return t.setActive(o.name)}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:o.icon}})]),t._v(" "),e("span",{staticClass:"visible-desktop"},[t._v(t._s(o.title))])])})),0)])};Z._withStripped=!0;var tt={data(){const{enablephotos:t,enablephotosgif:e,enablevideos:o,enableevents:s,enablefiles:i,enablepolls:r,enablecustoms:n}=a.a.get("conf"),{isAdmin:c,isMyProfile:l,isProfile:m,isGroup:d,isEvent:u,isPage:p}=a.a.get("settings"),h=[{name:"status",title:Object(U.a)("postbox.status"),icon:window.joms_current_url+"#joms-icon-pencil"}];return(m||d||u||p)&&t&&(h.push({name:"photo",title:Object(U.a)("postbox.photo"),icon:window.joms_current_url+"#joms-icon-camera"}),e&&h.push({name:"gif",title:Object(U.a)("postbox.gif"),icon:window.joms_current_url+"#joms-icon-images"})),(m||d||u||p)&&o&&h.push({name:"video",title:Object(U.a)("postbox.video"),icon:window.joms_current_url+"#joms-icon-play"}),(m||d||p)&&s&&h.push({name:"event",title:Object(U.a)("postbox.event"),icon:window.joms_current_url+"#joms-icon-calendar"}),(m||d||u||p)&&i&&h.push({name:"file",title:Object(U.a)("postbox.file"),icon:window.joms_current_url+"#joms-icon-file-zip"}),(m||d||u||p)&&r&&h.push({name:"poll",title:Object(U.a)("postbox.poll"),icon:window.joms_current_url+"#joms-icon-list"}),c&&n&&h.push({name:"custom",title:Object(U.a)("postbox.custom"),icon:window.joms_current_url+"#joms-icon-bullhorn"}),{tabs:h}},methods:{setActive(t){t!==this.$store.state.activeTab&&this.$store.commit("setActiveTab",t)}}},et=o(1),ot=Object(et.a)(tt,Z,[],!1,null,null,null).exports,st=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-custom-wrapper"},[t.type?t._e():e("div",{staticClass:"joms-postbox-inner-panel"},[e("div",{staticClass:"joms-postbox-double-panel"},[e("ul",{staticClass:"joms-list clearfix"},[e("li",{staticClass:"joms-postbox-predefined-message",on:{click:function(e){return t.setType("predefined")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{staticClass:"joms-icon--svg-fixed joms-icon--svg-unmodified",attrs:{href:t.currentUrl+"#joms-icon-cog"}})]),t._v("\n "+t._s(t.predefinedButtonText)+"\n ")]),t._v(" "),e("li",{staticClass:"joms-postbox-custom-message",on:{click:function(e){return t.setType("custom")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{staticClass:"joms-icon--svg-fixed joms-icon--svg-unmodified joms-icon--svg-unmodified",attrs:{href:t.currentUrl+"#joms-icon-pencil"}})]),t._v("\n "+t._s(t.customButtonText)+"\n ")])])])]),t._v(" "),t.type?e("div",{staticClass:"joms-postbox-custom"},["predefined"===t.type?e("div",{staticClass:"joms-postbox-custom-state-predefined"},[e("div",{staticClass:"joms-postbox-inner-panel"},[e("span",[t._v(t._s(t.predefinedLabel))]),t._v(" "),e("br"),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.activity,expression:"activity"}],staticStyle:{width:"100%"},on:{change:[function(e){var o=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.activity=e.target.multiple?o:o[0]},t.setActivity]}},t._l(t.activities,(function(o){return e("option",{key:o.value,domProps:{value:o.value}},[t._v("\n "+t._s(o.text)+"\n ")])})),0)])]):t._e(),t._v(" "),"custom"===t.type?e("div",{staticClass:"joms-postbox-custom-state-custom"},[e("div",{staticClass:"joms-postbox-inner-panel"},[e("span",[t._v(t._s(t.customLabel))]),t._v(" "),e("br"),t._v(" "),e("textarea-autosize",{staticClass:"j-textarea",attrs:{"max-height":350},nativeOn:{input:function(e){return t.onInputCustom.apply(null,arguments)}},model:{value:t.customMessage,callback:function(e){t.customMessage=e},expression:"customMessage"}})],1)]):t._e()]):t._e(),t._v(" "),e("JCustomMiniBar",{directives:[{name:"show",rawName:"v-show",value:!t.$store.state.free,expression:"!$store.state.free"}],on:{showPrivacy:t.showPrivacy,reset:t.reset,validate:t.validate}}),t._v(" "),e("keep-alive",[t.privacy?e("JPrivacyPicker",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hidePrivacy,expression:"hidePrivacy"}],attrs:{privacies:t.privacies},on:{hidePrivacy:t.hidePrivacy,setPrivacy:t.setPrivacy}}):t._e()],1)],1)};st._withStripped=!0;var it=o(35),at=function(){var t=this,e=t._self._c;return e("JMiniBar",[e("ul",{staticClass:"joms-list inline"},[e("li",{on:{click:function(e){return t.$emit("showPrivacy")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-"+t.privacy.icon}})]),t._v(" "),e("span",{staticClass:"visible-desktop"},[t._v(t._s(t.privacy.title.toLowerCase()))])])]),t._v(" "),t.isFree?t._e():e("JAction",{ref:"action",attrs:{isPostable:t.isPostable},on:{validate:function(e){return t.$emit("validate")},reset:function(e){return t.$emit("reset")}}}),t._v(" "),t.isLoading?e("JLoading"):t._e()],1)};at._withStripped=!0;var rt=o(6),nt=o(7),ct=o(8),lt={components:{JMiniBar:rt.a,JAction:nt.a,JLoading:ct.a},data:()=>({currentUrl:Joomla.getOptions("com_community").current_url}),computed:{isPostable(){return!!this.$store.state.custom.content&&!!this.$store.state.custom.type},isFree(){return this.$store.state.free},isLoading(){return this.$store.state.loading},privacy(){const{custom:t,privacies:e}=this.$store.state;return e.find(e=>e.value===t.privacy)}}},mt=Object(et.a)(lt,at,[],!1,null,null,null).exports,dt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-dropdown privacy-dropdown"},[e("ul",{staticClass:"joms-list"},t._l(t.privacies,(function(o){return e("li",{key:o.name,on:{click:function(e){return t.setPrivacy(o.value)}}},[e("p",{staticClass:"reset-gap"},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:o.icon_url}})]),t._v("\n "+t._s(o.title)+"\n ")]),t._v(" "),e("span",[t._v(t._s(o.desc))])])})),0)])};dt._withStripped=!0;var ut={props:{privacies:{type:Array,default(){return JSON.parse(JSON.stringify(this.$store.state.privacies))}}},methods:{setPrivacy(t){this.$emit("setPrivacy",t),this.$emit("hidePrivacy")}}},pt=Object(et.a)(ut,dt,[],!1,null,null,null).exports;s.a.use(it.a);var ht={components:{JCustomMiniBar:mt,JPrivacyPicker:pt},data(){const t=Joomla.getOptions("com_community").current_url,e=[],o=a.a.get("customActivities");for(const t in o)e.push({text:o[t],value:t});return{type:"",currentUrl:t,activities:e,activity:"",customMessage:"",privacy:!1,predefinedButtonText:Object(U.a)("custom.predefined_button"),customButtonText:Object(U.a)("custom.custom_button"),predefinedLabel:Object(U.a)("custom.predefined_label"),customLabel:Object(U.a)("custom.custom_label")}},computed:{privacies(){return JSON.parse(JSON.stringify(this.$store.state.privacies)).filter(t=>"public"===t.name||"site_members"===t.name)}},methods:{validate(){this.post()},post(){const t=this.$store.state.custom,{type:e,content:o,privacy:s}=t,i=[e,o,s];this.$store.dispatch("postAdminAnnouncement",i).then(()=>{this.reset()})},setActivity(){const t=this.activities.find(t=>t.value===this.activity);t&&this.$store.commit("custom/setContent",t.text),this.$store.commit("custom/setType",this.activity)},onInputCustom(t){this.$store.commit("custom/setContent",t.target.value)},setType(t){this.type=t,"custom"===t?this.$store.commit("custom/setType","system.message"):this.activity&&this.$store.commit("custom/setType",this.activity),this.$store.commit("setFree",!1)},showPrivacy(){this.privacy=!0},hidePrivacy(){this.privacy=!1},setPrivacy(t){this.$store.commit("custom/setPrivacy",t)},reset(){this.type="",this.activity="",this.customMessage="",this.$store.commit("custom/reset"),this.$store.commit("setFree",!0)}}},vt=Object(et.a)(ht,st,[],!1,null,null,null).exports,_t=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-event"},[e("div",{staticClass:"event-title-input"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.title,expression:"title"}],attrs:{type:"text",placeholder:t.placeholderEventTitle},domProps:{value:t.title},on:{focus:t.onEventInputFocus,input:function(e){e.target.composing||(t.title=e.target.value)}}})]),t._v(" "),t.$store.state.event.attachment.catid?e("JEventPreview"):t._e(),t._v(" "),e("JEventComposer",{ref:"composer"}),t._v(" "),e("JEventMiniBar",{directives:[{name:"show",rawName:"v-show",value:!t.$store.state.free,expression:"!$store.state.free"}],on:{showEventConfig:t.showEventConfig,reset:t.reset,validate:t.validate}}),t._v(" "),e("keep-alive",[t.config?e("JEventConfig",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideEventConfig,expression:"hideEventConfig"}],on:{save:t.saveEventConfig}}):t._e()],1)],1)};_t._withStripped=!0;var ft=o(20).a,gt=(o(126),Object(et.a)(ft,_t,[],!1,null,null,null).exports),yt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-file-wrapper"},[e("j-uploader",{ref:"uploader",attrs:{config:t.config},on:{filesChange:t.onFilesChange},scopedSlots:t._u([{key:"composer",fn:function(){return[t.composer?e("keep-alive",[e("JFileComposer",{ref:"composer"})],1):t._e()]},proxy:!0}])}),t._v(" "),e("JFileMiniBar",{directives:[{name:"show",rawName:"v-show",value:!t.$store.state.free,expression:"!$store.state.free"}],on:{showMoodPicker:t.showMoodPicker,openUploader:t.openUploader,showPrivacy:t.showPrivacy,reset:t.reset,validate:t.validate}}),t._v(" "),e("keep-alive",[t.moodPicker?e("JMoodPicker",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideMoodPicker,expression:"hideMoodPicker"}],on:{hideMoodPicker:t.hideMoodPicker,setMood:t.setMood}}):t._e()],1),t._v(" "),e("keep-alive",[t.privacy?e("JPrivacyPicker",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hidePrivacy,expression:"hidePrivacy"}],on:{hidePrivacy:t.hidePrivacy,setPrivacy:t.setPrivacy}}):t._e()],1)],1)};yt._withStripped=!0;var bt=function(){var t=this,e=t._self._c;return e("JMiniBar",[e("ul",{staticClass:"joms-list inline"},[e("li",{on:{click:function(e){return t.$emit("openUploader")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-images"}})]),t._v(" "),e("span",{staticClass:"visible-desktop"},[t._v(t._s(t.addMoreFileText))])]),t._v(" "),t.enableMood?e("li",{on:{click:function(e){return t.$emit("showMoodPicker")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-happy"}})]),t._v(" "),e("span",{staticClass:"visible-desktop"},[t._v(t._s(t.moodText))])]):t._e(),t._v(" "),t.isMyProfile?e("li",{on:{click:function(e){return t.$emit("showPrivacy")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-"+t.privacy.icon}})]),t._v(" "),e("span",{staticClass:"visible-desktop"},[t._v(t._s(t.privacy.title.toLowerCase()))])]):t._e()]),t._v(" "),t.isFree?t._e():e("JAction",{attrs:{isPostable:!0},on:{reset:function(e){return t.$emit("reset")},validate:function(e){return t.$emit("validate")}}}),t._v(" "),t.isLoading?e("JLoading"):t._e()],1)};bt._withStripped=!0;var jt={components:{JMiniBar:rt.a,JAction:nt.a,JLoading:ct.a},data:()=>({currentUrl:window.joms_current_url,enableMood:a.a.get("conf.enablemood"),isMyProfile:a.a.get("settings.isMyProfile"),addMoreFileText:Object(U.a)("file.upload_button_more"),moodText:Object(U.a)("status.mood")}),computed:{isFree(){return this.$store.state.free},isLoading(){return this.$store.state.loading},privacy(){const{file:t,privacies:e}=this.$store.state;return e.find(e=>e.value===t.attachment.privacy)}}},wt=Object(et.a)(jt,bt,[],!1,null,null,null).exports,xt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox__file-composer"},[e(t.currentEditor,{ref:"editor",tag:"component",staticClass:"normal-editor",attrs:{isColorful:!1,placeholder:t.placeholder},on:{focus:t.onEditorFocus,change:t.onEditorChange}}),t._v(" "),e("JCharCount",{attrs:{num:t.numCharLeft}}),t._v(" "),t.moodId?e("JComposerAdditionInfo",{attrs:{moodId:t.moodId}}):t._e(),t._v(" "),e("div",{staticClass:"j-file-composer-toolbar"},[e("div",{staticClass:"toolbar-bg-picker"}),t._v(" "),t.isTouch?t._e():e("div",{staticClass:"toolbar-emoji"},[e("JEmoji",{on:{selectEmoji:t.selectEmoji}})],1)])],1)};xt._withStripped=!0;var Ct=o(12),Pt=o(11),$t=o(13),Ot=function(){var t=this._self._c;return t("div",{staticClass:"j-composer-addition-info"},[t("JMoodDisplay",{attrs:{moodId:this.moodId}}),this._v(" "),t("JLocationDisplay",{attrs:{location:this.location}})],1)};Ot._withStripped=!0;var kt=function(){var t=this._self._c;return this.location?t("span",{staticClass:"j-location-display"},[this._v("\n - "+this._s(this.language("at"))+"\n "),t("b",[this._v(this._s(this.location))])]):this._e()};kt._withStripped=!0;var Jt={props:{location:{type:String,default:""}},methods:{language:t=>Object(U.a)(t)}},St={components:{JLocationDisplay:Object(et.a)(Jt,kt,[],!1,null,null,null).exports,JMoodDisplay:o(22).a},props:{moodId:{type:String,default:""},location:{type:String,default:""}}},Lt=(o(127),Object(et.a)(St,Ot,[],!1,null,null,null).exports),Tt=o(5),Mt=o.n(Tt),Et={components:{JEditorTouchDevice:Pt.a,JComposerAdditionInfo:Lt,JCharCount:$t.a,JEmoji:Ct.a},data:()=>({charLimit:400,numchar:0,placeholder:Object(U.a)("status.file_hint")}),mounted(){this.$store.commit("setNumCharLeft",this.charLimit-this.numchar)},computed:{currentEditor:()=>"JEditorTouchDevice",isTouch(){return this.$store.state.isTouch},moodId(){return this.$store.state.file.attachment.mood},numCharLeft(){return this.$store.state.numCharLeft}},methods:{onEditorFocus(){this.$store.commit("setFree",!1)},onEditorChange({value:t,numchar:e}){this.numchar=e,this.$store.commit("file/setContent",t),this.$store.commit("setNumCharLeft",this.charLimit-this.numchar)},reset(){this.$refs.editor.reset()},selectEmoji(t){this.$refs.editor.insertEmoji(t)}}},At=(o(128),Object(et.a)(Et,xt,[],!1,null,null,null).exports),Dt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"j-uploader dropzone",staticStyle:{position:"relative"},on:{dragenter:t.showDropArea}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.preview,expression:"preview"}],staticClass:"joms-postbox-preview"},[e("div",{staticClass:"joms-postbox-preview-inner"}),t._v(" "),t._t("dropdown_select")],2),t._v(" "),t.dropArea?e("div",{staticClass:"joms-postbox--droparea",on:{dragleave:t.hideDropArea,drop:t.hideDropArea}},[e("div",{staticClass:"joms-postbox--droparea__inner"},[t._v("\n "+t._s(t.config.dropAreaText)+"\n ")])]):t._e(),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.preview,expression:"!preview"}],staticClass:"joms-postbox-inner-panel",staticStyle:{position:"relative"}},[e("div",{staticClass:"joms-postbox-file-upload"},[e("span",[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{staticClass:"joms-icon--svg-fixed joms-icon--svg-unmodified",attrs:{href:t.currentUrl+"#joms-icon-images"}})]),t._v("\n "+t._s(t.config.uploadAreaText)+"\n ")])])]),t._v(" "),t._t("preview_tpl"),t._v(" "),t._t("composer")],2)};Dt._withStripped=!0;o(48);var Bt=o(49),Nt=o.n(Bt);Nt.a.autoDiscover=!1;var Ft={props:{config:Object},data:()=>({currentUrl:Joomla.getOptions("com_community").current_url,files:[],preview:!1,dropArea:!1,dropzone:{}}),mounted(){const t=this.$el.querySelector(".joms-postbox-file-upload"),e=this.$el.querySelector(".joms-postbox-preview-inner"),o=this.config.fileTypes,{max_input_time:s}=a.a.get("conf"),i=new Nt.a(this.$el,{url:this.config.previewApi,timeout:1e3*s,createImageThumbnails:this.config.createImageThumbnails,clickable:t,addRemoveLinks:!0,maxFiles:this.config.maxFiles,maxFilesize:this.config.maxFilesize,parallelUploads:1,previewsContainer:e,acceptedFiles:o.map(t=>"."+t).join(","),dictRemoveFile:Object(U.a)("remove"),dictCancelUpload:Object(U.a)("cancel")});i.on("maxfilesexceeded",t=>{i.removeFile(t),this.showError(this.config.batch_notice||"Too many files to upload")}),i.on("addedfile",t=>{const e=t.name.split("."),s=e.pop().toLowerCase();if(e.length<1||-1===o.indexOf(s))return i.removeFile(t),alert(this.config.file_type_not_permitted||"Error! File type is not allow. ("+t.name+")");if(t.size>1024*this.config.maxFilesize*1024){const e=Math.round(t.size/1024/1024*100);return i.removeFile(t),alert(this.config.max_upload_size_error||t.name+" is too big ("+e/100+" MB). Maximum is "+this.config.maxFilesize+" MB")}}),i.on("queuecomplete",()=>{this.setFilesChange()}),i.on("sending",()=>{this.togglePreview()}),i.on("removedfile",t=>{if(this.togglePreview(),t.xhr){var e=JSON.parse(t.xhr.response);this.deleteTempUpload([e.id]),this.setFilesChange()}}),i.on("success",t=>{const e=JSON.parse(t.xhr.response);e.error&&(alert(e.msg),i.removeFile(t))}),i.on("canceled",()=>{this.togglePreview()}),this.dropzone=i},methods:{deleteTempUpload(t){joms.ajax({func:this.config.removeTempApi||"system,ajaxDeleteTempImage",data:[t.join(",")]})},togglePreview(){this.preview=!!this.dropzone.files.length},showDropArea(){this.dropArea=!0},hideDropArea(){this.dropArea=!1},showError:Mt()((function(t){alert(t)}),300),setFilesChange(){const t=this.dropzone.files.filter(t=>"success"===t.status).map(t=>JSON.parse(t.xhr.response).id);this.$emit("filesChange",t)},open(){this.$el.querySelector(".joms-postbox-file-upload").click()},reset(){this.dropzone.files.forEach(t=>{this.dropzone.removeFile(t)})}}},It=(o(129),Object(et.a)(Ft,Dt,[],!1,null,null,null).exports),Ut=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-dropdown mood-dropdown"},[e("ul",{staticClass:"joms-postbox-emoticon joms-list clearfix"},t._l(t.moods,(function(o){return e("li",{key:o.id,on:{click:function(e){return t.setMood(o.id)}}},[e("div",{attrs:{title:o.description}},[e("img",{staticClass:"joms-emoticon",attrs:{src:o.image}}),t._v(" "),e("span",[t._v(t._s(o.title))])])])})),0)])};Ut._withStripped=!0;var zt={data:()=>({moods:a.a.get("moods")}),methods:{setMood(t){this.$emit("setMood",t),this.$emit("hideMoodPicker")}}},qt=Object(et.a)(zt,Ut,[],!1,null,null,null).exports,Vt={components:{JFileMiniBar:wt,JPrivacyPicker:pt,JFileComposer:At,JUploader:It,JMoodPicker:qt},data(){const t=Joomla.getOptions("com_community").base_url,{isProfile:e,isGroup:o,isEvent:s,isPage:i}=a.a.get("settings"),r=a.a.get("conf");let n=[],c=1;return e&&(n=r.file_activity_ext.split(","),c=r.file_sharing_activity_max),o&&(n=r.file_group_ext.split(","),c=r.file_sharing_group_max),i&&(n=r.file_page_ext.split(","),c=r.file_sharing_page_max),s&&(n=r.file_event_ext.split(","),c=r.file_sharing_event_max),{config:{maxFiles:a.a.get("conf.num_file_per_upload"),maxFilesize:c,dropAreaText:Object(U.a)("file.drop_to_upload"),uploadAreaText:Object(U.a)("file.upload_button"),previewApi:t+"index.php?option=com_community&view=files&task=multiUpload&type=activities",fileTypes:n,createImageThumbnails:!1,removeTempApi:"system,ajaxDeleteTempFile",batch_notice:Object(U.a)("file.batch_notice"),max_upload_size_error:Object(U.a)("file.max_upload_size_error").replace("##maxsize##",c),file_type_not_permitted:Object(U.a)("file.file_type_not_permitted")},composer:!1,moodPicker:!1,privacy:!1}},methods:{validate(){const t=a.a.get("conf.limitfile"),e=a.a.get("conf.uploadedfile");if(this.$store.state.file.attachment.id.length>t-e)return alert(Object(U.a)("photo.upload_limit_exceeded"));this.post()},post(){const t=Joomla.getOptions("com_community"),e=t.stream_filter_params?JSON.stringify(t.stream_filter_params):"",o=this.$store.state.file,s=[o.content,JSON.stringify(o.attachment),e];this.$store.dispatch("post",s).then(()=>{this.reset()})},showMoodPicker(){this.moodPicker=!0},hideMoodPicker(){this.moodPicker=!1},openUploader(){this.$refs.uploader.open()},showPrivacy(){this.privacy=!0},hidePrivacy(){this.privacy=!1},setPrivacy(t){this.$store.commit("file/setPrivacy",t)},onFilesChange(t){this.composer=!!t.length,this.$store.commit("setFree",!t.length),this.$store.commit("file/setFile",t),t.length||this.$store.commit("file/reset")},setMood(t){this.$store.commit("file/setMood",t)},reset(){this.$refs.composer.reset(),this.$refs.uploader.reset(),this.$store.commit("file/reset"),this.$store.commit("setFree",!0)}}},Rt=Object(et.a)(Vt,yt,[],!1,null,null,null).exports,Ht=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-file-wrapper joms-postbox-gif-wrapper"},[e("j-uploader",{ref:"uploader",attrs:{config:t.config},on:{filesChange:t.onFilesChange},scopedSlots:t._u([{key:"composer",fn:function(){return[t.composer?e("keep-alive",[e("JPhotoComposer",{ref:"composer"})],1):t._e()]},proxy:!0}])}),t._v(" "),e("JPhotoMiniBar",{directives:[{name:"show",rawName:"v-show",value:!t.$store.state.free,expression:"!$store.state.free"}],attrs:{addmore:!1},on:{showMoodPicker:t.showMoodPicker,openUploader:t.openUploader,reset:t.reset,validate:t.validate}}),t._v(" "),e("keep-alive",[t.moodPicker?e("JMoodPicker",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideMoodPicker,expression:"hideMoodPicker"}],on:{hideMoodPicker:t.hideMoodPicker,setMood:t.setMood}}):t._e()],1)],1)};Ht._withStripped=!0;var Kt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-file-wrapper"},[e("j-uploader",{ref:"uploader",attrs:{config:t.config},on:{filesChange:t.onFilesChange},scopedSlots:t._u([{key:"dropdown_select",fn:function(){return[e("JDropdownSelect",{attrs:{options:t.albums},model:{value:t.albumId,callback:function(e){t.albumId=e},expression:"albumId"}})]},proxy:!0},{key:"composer",fn:function(){return[t.composer?e("keep-alive",[e("JPhotoComposer",{ref:"composer"})],1):t._e()]},proxy:!0}])}),t._v(" "),e("JPhotoMiniBar",{directives:[{name:"show",rawName:"v-show",value:!t.$store.state.free,expression:"!$store.state.free"}],on:{showMoodPicker:t.showMoodPicker,openUploader:t.openUploader,reset:t.reset,validate:t.validate}}),t._v(" "),e("keep-alive",[t.moodPicker?e("JMoodPicker",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideMoodPicker,expression:"hideMoodPicker"}],on:{hideMoodPicker:t.hideMoodPicker,setMood:t.setMood}}):t._e()],1)],1)};Kt._withStripped=!0;var Wt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox__photo-composer"},[e(t.currentEditor,{ref:"editor",tag:"component",staticClass:"normal-editor",attrs:{isColorful:!1,placeholder:t.placeholder},on:{focus:t.onEditorFocus,change:t.onEditorChange}}),t._v(" "),e("JCharCount",{attrs:{num:t.numCharLeft}}),t._v(" "),t.moodId?e("JComposerAdditionInfo",{attrs:{moodId:t.moodId}}):t._e(),t._v(" "),e("div",{staticClass:"j-photo-composer-toolbar"},[e("div",{staticClass:"toolbar-bg-picker"}),t._v(" "),t.isTouch?t._e():e("div",{staticClass:"toolbar-emoji"},[e("JEmoji",{on:{selectEmoji:t.selectEmoji}})],1)])],1)};Wt._withStripped=!0;var Gt={components:{JEmoji:Ct.a,JEditorTouchDevice:Pt.a,JCharCount:$t.a,JComposerAdditionInfo:Lt},data:()=>({charLimit:+a.a.get("conf.statusmaxchar"),numchar:0,placeholder:Object(U.a)("status.photo_hint")}),mounted(){this.$store.commit("setNumCharLeft",this.charLimit-this.numchar)},computed:{currentEditor:()=>"JEditorTouchDevice",isTouch(){return this.$store.state.isTouch},moodId(){return this.$store.state.photo.attachment.mood},numCharLeft(){return this.$store.state.numCharLeft}},methods:{onEditorFocus(){this.$store.commit("setFree",!1)},onEditorChange({value:t,numchar:e}){this.numchar=e,this.$store.commit("photo/setContent",t),this.$store.commit("setNumCharLeft",this.charLimit-this.numchar)},reset(){this.$refs.editor.reset()},selectEmoji(t){this.$refs.editor.insertEmoji(t)}}},Qt=(o(130),Object(et.a)(Gt,Wt,[],!1,null,null,null).exports),Yt=function(){var t=this,e=t._self._c;return e("JMiniBar",[e("ul",{staticClass:"joms-list inline"},[t.addmore?e("li",{on:{click:function(e){return t.$emit("openUploader")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-images"}})]),t._v(" "),e("span",{staticClass:"visible-desktop"},[t._v(t._s(t.addMoreText))])]):t._e(),t._v(" "),e("li",{on:{click:function(e){return t.$emit("showMoodPicker")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-happy"}})]),t._v(" "),e("span",{staticClass:"visible-desktop"},[t._v(t._s(t.moodText))])])]),t._v(" "),t.isFree?t._e():e("JAction",{attrs:{isPostable:t.isPostable},on:{reset:function(e){return t.$emit("reset")},validate:function(e){return t.$emit("validate")}}}),t._v(" "),t.isLoading?e("JLoading"):t._e()],1)};Yt._withStripped=!0;var Xt={components:{JMiniBar:rt.a,JAction:nt.a,JLoading:ct.a},props:{addmore:{type:Boolean,default:!0}},data:()=>({currentUrl:Joomla.getOptions("com_community").current_url,addMoreText:Object(U.a)("photo.upload_button_more"),moodText:Object(U.a)("status.mood")}),computed:{isPostable(){const t=this.$store.state.photo.attachment.id.length,e=this.$store.state.numCharLeft;return!!t&&e>-1},isFree(){return this.$store.state.free},isLoading(){return this.$store.state.loading}}},Zt=Object(et.a)(Xt,Yt,[],!1,null,null,null).exports,te=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-dropdown-select"},[t.current?e("span",{on:{click:t.toggleDropdown}},[t._v(t._s(t.current.text))]):e("span",{on:{click:t.toggleDropdown}},[t._v(t._s(t.placeholder))]),t._v(" "),e("ul",{directives:[{name:"show",rawName:"v-show",value:t.showDropdown,expression:"showDropdown"}],staticClass:"joms-list"},t._l(t.options,(function(o){return e("li",{key:o.value,on:{click:function(e){return t.setValue(o)}}},[e("p",{staticStyle:{margin:"0"}},[t._v(t._s(o.text))]),t._v(" "),e("small",[t._v(t._s(o.sub))])])})),0),t._v(" "),e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-arrow-down"}})])])};te._withStripped=!0;var ee={props:{options:Array,value:String,placeholder:String},data:()=>({currentUrl:Joomla.getOptions("com_community").current_url,showDropdown:!1}),computed:{current(){return this.options.find(t=>this.value===t.value)}},methods:{toggleDropdown(){this.showDropdown=!this.showDropdown},setValue(t){this.toggleDropdown(),this.current&&this.current.value===t.value||this.$emit("input",t.value)}}},oe=(o(131),Object(et.a)(ee,te,[],!1,null,null,null).exports),se={components:{JUploader:It,JDropdownSelect:oe,JPhotoComposer:Qt,JPhotoMiniBar:Zt,JMoodPicker:qt},data(){const t=Joomla.getOptions("com_community").base_url,{maxuploadsize:e,num_photo_per_upload:o}=a.a.get("conf"),{isGroup:s,isEvent:i,isPage:r}=a.a.get("settings");let n=t+"index.php?option=com_community&view=photos&task=ajaxPreview";return s&&(n+="&no_html=1&tmpl=component&groupid="+(a.a.get("groupid")||"")),i&&(n+="&no_html=1&tmpl=component&eventid="+(a.a.get("eventid")||"")),r&&(n+="&no_html=1&tmpl=component&pageid="+(a.a.get("pageid")||"")),{config:{maxFiles:o,maxFilesize:e,dropAreaText:Object(U.a)("photo.drop_to_upload"),uploadAreaText:Object(U.a)("photo.upload_button"),previewApi:n,fileTypes:["png","jpg","jpeg"],createImageThumbnails:!0,batch_notice:Object(U.a)("photo.batch_notice"),max_upload_size_error:Object(U.a)("photo.max_upload_size_error"),file_type_not_permitted:Object(U.a)("file.file_type_not_permitted")},composer:!1,moodPicker:!1}},computed:{albums(){return this.$store.state.photo.albums},albumId:{get(){return this.$store.state.photo.attachment.album_id},set(t){this.$store.commit("photo/setAlbum",t)}}},methods:{setMood(t){this.$store.commit("photo/setMood",t)},reset(){this.$refs.composer.reset(),this.$refs.uploader.reset(),this.$store.commit("photo/reset"),this.$store.commit("setFree",!0)},validate(){const t=a.a.get("conf.limitphoto"),e=a.a.get("conf.uploadedphoto");if(this.$store.state.photo.attachment.id.length>t-e)return alert(Object(U.a)("photo.upload_limit_exceeded"));this.post()},post(){const t=Joomla.getOptions("com_community"),e=t.stream_filter_params?JSON.stringify(t.stream_filter_params):"",o=this.$store.state.photo,s=[o.content,JSON.stringify(o.attachment),e];this.$store.dispatch("post",s).then(()=>{this.reset()})},showMoodPicker(){this.moodPicker=!0},openUploader(){this.$refs.uploader.open()},hideMoodPicker(){this.moodPicker=!1},onFilesChange(t){this.composer=!!t.length,this.$store.commit("setFree",!t.length),this.$store.commit("photo/setPhoto",t),t.length||this.$store.commit("photo/reset")},setAlbum(t){this.$store.commit("photo/setAlbum",t)}}},ie=Object(et.a)(se,Kt,[],!1,null,null,null).exports,ae={extends:ie,data(){const t=Joomla.getOptions("com_community").base_url;return{config:{maxFiles:1,dropAreaText:Object(U.a)("photo.drop_to_upload"),uploadAreaText:Object(U.a)("photo.gif_upload_button"),previewApi:t+"index.php?option=com_community&view=photos&task=ajaxPreview&gifanimation=1",fileTypes:["gif"],createImageThumbnails:!0},composer:!1,moodPicker:!1}}},re=(o(132),Object(et.a)(ae,Ht,[],!1,null,null,null).exports),ne=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-poll"},[e("div",{staticClass:"joms-postbox-poll-inner"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.title,expression:"title"}],staticClass:"poll-title",attrs:{type:"text",placeholder:t.pollTitleHint},domProps:{value:t.title},on:{focus:t.onFocus,input:function(e){e.target.composing||(t.title=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"joms-postbox-poll-inner"},[e("JPollOptions"),t._v(" "),e("JPollSettings"),t._v(" "),e("JDropdownSelect",{staticClass:"joms-postbox-poll-category",attrs:{options:t.categories,placeholder:t.selectCategoryTitle},model:{value:t.categoryId,callback:function(e){t.categoryId=e},expression:"categoryId"}}),t._v(" "),e("JPollTime",{ref:"timer"})],1),t._v(" "),e("JPollMiniBar",{directives:[{name:"show",rawName:"v-show",value:!t.$store.state.free,expression:"!$store.state.free"}],on:{showPrivacy:t.showPrivacy,reset:t.reset,validate:t.validate}}),t._v(" "),e("keep-alive",[t.privacy?e("JPrivacyPicker",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hidePrivacy,expression:"hidePrivacy"}],on:{hidePrivacy:t.hidePrivacy,setPrivacy:t.setPrivacy}}):t._e()],1)],1)};ne._withStripped=!0;var ce=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-poll-options"},[e("div",{staticClass:"joms-postbox__poll-option-list"},t._l(t.options,(function(o,s){return e("div",{key:s,staticClass:"joms-postbox__poll-option"},[e("input",{staticClass:"input-option poll_option",attrs:{type:"text",placeholder:t.pollOptionHint,maxlength:"100"},domProps:{value:o},on:{input:e=>t.updateOption(s,e.target.value)}}),t._v(" "),e("a",{staticClass:"joms-postbox-poll__remove-option",attrs:{href:"javascript:;"},on:{click:function(e){return t.removeOption(s)}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 16"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-close"}})])])])})),0),t._v(" "),e("a",{staticClass:"joms-postbox-poll__add-option",attrs:{href:"javascript:;"},on:{click:t.addOption}},[t._v(t._s(t.addOptionText))])])};ce._withStripped=!0;var le={data:()=>({currentUrl:Joomla.getOptions("com_community").current_url,pollOptionHint:Object(U.a)("poll.hint_add_option"),addOptionText:Object(U.a)("poll.add_option")}),computed:{options(){return this.$store.state.poll.attachment.options}},methods:{updateOption(t,e){this.$store.commit("poll/updateOption",{index:t,value:e})},addOption(){this.$store.commit("poll/addOption"),setTimeout(()=>{this.$el.querySelector(".joms-postbox__poll-option-list").lastChild.querySelector("input").focus()})},removeOption(t){this.$store.commit("poll/removeOption",t)}}},me=Object(et.a)(le,ce,[],!1,null,null,null).exports,de=function(){var t=this,e=t._self._c;return e("div",{staticClass:"settings-item"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.allowMultiple,expression:"allowMultiple"}],attrs:{id:"joms-allow-multiple-checkbox",type:"checkbox"},domProps:{checked:Array.isArray(t.allowMultiple)?t._i(t.allowMultiple,null)>-1:t.allowMultiple},on:{change:function(e){var o=t.allowMultiple,s=e.target,i=!!s.checked;if(Array.isArray(o)){var a=t._i(o,null);s.checked?a<0&&(t.allowMultiple=o.concat([null])):a>-1&&(t.allowMultiple=o.slice(0,a).concat(o.slice(a+1)))}else t.allowMultiple=i}}}),t._v(" "),e("label",{staticClass:"settings-item--label",staticStyle:{cursor:"pointer"},attrs:{for:"joms-allow-multiple-checkbox"}},[t._v("\n "+t._s(t.allowMultiChoicesText)+"\n ")])])};de._withStripped=!0;var ue={data:()=>({allowMultiChoicesText:Object(U.a)("poll.allow_multiple_choices")}),computed:{allowMultiple:{get(){return this.$store.state.poll.attachment.settings.allow_multiple},set(t){this.$store.commit("poll/setMultiple",t)}}}},pe=(o(133),Object(et.a)(ue,de,[],!1,null,null,null).exports),he=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox__poll-time"},[e("div",{staticClass:"joms-postbox__poll-time--inner"},[e("span",[t._v(t._s(t.expiryDateText)+" "),e("span",{staticStyle:{color:"red"}},[t._v("*")])]),t._v(" "),e("VueDateTime",{attrs:{type:"date","input-id":"joms-postbox-poll-expiry-date","input-class":"joms-input","min-datetime":t.now,placeholder:t.expiryDateHintText},on:{input:t.setExpiryDate},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}})],1),t._v(" "),e("div",{staticClass:"joms-postbox__poll-time--inner"},[e("span",[t._v(t._s(t.expiryTimeText)+" "),e("span",{staticStyle:{color:"red"}},[t._v("*")])]),t._v(" "),e("VueDateTime",{attrs:{type:"time","input-id":"joms-postbox-poll-expiry-time","input-class":"joms-input","use12-hour":t.use12h,placeholder:t.expiryTimeHintText},on:{input:t.setExpiryTime},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}})],1)])};he._withStripped=!0;o(41);var ve=o(42),_e=o(17),fe={components:{VueDateTime:ve.Datetime},data:()=>({now:(new Date).toISOString(),use12h:!!a.a.get("conf.pollshowampm"),date:"",time:"",expiryDateText:Object(U.a)("poll.expired_date"),expiryDateHintText:Object(U.a)("poll.expired_date_hint"),expiryTimeText:Object(U.a)("poll.expired_time"),expiryTimeHintText:Object(U.a)("poll.expired_time_hint")}),methods:{setExpiryDate(t){if(!t)return;const e=_e.DateTime.fromISO(t),o=e.toISODate(),s=e.toFormat("dd MMMM yyyy");this.$store.commit("poll/setExpiryDate",[o,s])},setExpiryTime(t){if(!t)return;const e=_e.DateTime.fromISO(t),o=e.toLocaleString(_e.DateTime.TIME_SIMPLE),s=e.toLocaleString(_e.DateTime.TIME_24_SIMPLE);this.$store.commit("poll/setExpiryTime",[s,o])},reset(){this.date="",this.time=""}}},ge=Object(et.a)(fe,he,[],!1,null,null,null).exports,ye=function(){var t=this,e=t._self._c;return e("JMiniBar",[e("ul",{staticClass:"joms-list inline"},[t.isMyProfile?e("li",{on:{click:function(e){return t.$emit("showPrivacy")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-"+t.privacy.icon}})]),t._v(" "),e("span",{staticClass:"visible-desktop"},[t._v(t._s(t.privacy.title.toLowerCase()))])]):t._e(),t._v(" "),e("li",{staticClass:"joms-minibar-spacer",staticStyle:{visibility:"hidden"}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-pencil"}})])])]),t._v(" "),t.isFree?t._e():e("JAction",{ref:"action",attrs:{isPostable:t.isPostable},on:{validate:function(e){return t.$emit("validate")},reset:function(e){return t.$emit("reset")}}}),t._v(" "),t.isLoading?e("JLoading"):t._e()],1)};ye._withStripped=!0;var be={components:{JMiniBar:rt.a,JAction:nt.a,JLoading:ct.a},data(){const t=Joomla.getOptions("com_community").current_url,{isMyProfile:e}=a.a.get("settings");return{currentUrl:t,isMyProfile:e}},computed:{isPostable(){return!!this.$store.state.poll.content},isFree(){return this.$store.state.free},isLoading(){return this.$store.state.loading},privacy(){const{poll:t,privacies:e}=this.$store.state;return e.find(e=>e.value===t.attachment.privacy)}}},je=Object(et.a)(be,ye,[],!1,null,null,null).exports,we=function(t,e,o){return function t(e,o,s){if(!e||!e.length)return[];o||(o="0"),s||(s="");let i=[];for(let a,r,n=0;n<e.length;n++)e[n].parent===o&&(a=e[n].id,r=s+e[n].name,i.push({id:a,name:r}),i=i.concat(t(e,a,r+" › ")));return i}(t,e,o)},xe={components:{JPollOptions:me,JPollSettings:pe,JDropdownSelect:oe,JPollTime:ge,JPollMiniBar:je,JPrivacyPicker:pt},data:()=>({categories:we(a.a.get("pollCategories")).map(t=>({value:t.id,text:"Category: "+t.name})),privacy:!1,pollTitleHint:Object(U.a)("poll.title_hint"),selectCategoryTitle:Object(U.a)("select_category")}),computed:{title:{get(){return this.$store.state.poll.content},set(t){this.$store.commit("poll/setContent",t)}},categoryId:{get(){return this.$store.state.poll.attachment.catid},set(t){this.$store.commit("poll/setCategory",t)}}},methods:{validate(){const{poll:t}=this.$store.state,{content:e,attachment:o}=t;if(o.options.length<2)return alert("must have at least 2 options");return o.options.some(t=>!t.trim().length)?alert("option must not empty"):o.catid?o.polltime.enddate.length?o.polltime.endtime.length?void this.post():alert("missing time"):alert("missing date"):alert("missing category")},post(){const t=Joomla.getOptions("com_community"),e=t.stream_filter_params?JSON.stringify(t.stream_filter_params):"",o=this.$store.state.poll,s=[o.content,JSON.stringify(o.attachment),e];this.$store.dispatch("post",s).then(t=>{t[0]&&"ajax_calls"===t[0][1]&&t[1]&&t[1][1]&&"__throwError"===t[1][1]||this.reset()})},onFocus(){this.$store.commit("setFree",!1)},showPrivacy(){this.privacy=!0},hidePrivacy(){this.privacy=!1},setPrivacy(t){this.$store.commit("poll/setPrivacy",t)},reset(){this.$refs.timer.reset(),this.$store.commit("poll/reset"),this.$store.commit("setFree",!0)}}},Ce=(o(134),Object(et.a)(xe,ne,[],!1,null,null,null).exports),Pe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-status"},[e("JUrlPreview",{attrs:{data:t.preview},on:{removePreview:t.removePreview}}),t._v(" "),e("JStatusComposer",{ref:"composer",on:{urlAppear:t.urlAppear}}),t._v(" "),e("JStatusMiniBar",{directives:[{name:"show",rawName:"v-show",value:!t.$store.state.free,expression:"!$store.state.free"}],on:{showMoodPicker:t.showMoodPicker,showLocation:t.showLocation,showPrivacy:t.showPrivacy,reset:t.reset,validate:t.validate}}),t._v(" "),e("keep-alive",[t.moodPicker?e("JMoodPicker",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideMoodPicker,expression:"hideMoodPicker"}],on:{hideMoodPicker:t.hideMoodPicker,setMood:t.setMood}}):t._e()],1),t._v(" "),e("keep-alive",[t.location?e("JLocationPicker",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideLocation,expression:"hideLocation"}],attrs:{locationName:t.locationName},on:{setLocation:t.setLocation,removeLocation:t.removeLocation}}):t._e()],1),t._v(" "),e("keep-alive",[t.privacy?e("JPrivacyPicker",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hidePrivacy,expression:"hidePrivacy"}],on:{hidePrivacy:t.hidePrivacy,setPrivacy:t.setPrivacy}}):t._e()],1)],1)};Pe._withStripped=!0;var $e=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox__status-composer",style:t.composerStyle},[e("JEditorTouchDevice",{ref:"editor",class:t.editorClass,attrs:{bg:t.bg,isColorful:t.isColorful,placeholder:t.placeholder},on:{focus:t.onEditorFocus,change:t.onEditorChange}}),t._v(" "),e("JCharCount",{attrs:{num:t.numCharLeft}}),t._v(" "),t.moodId||t.location?e("JComposerAdditionInfo",{attrs:{moodId:t.moodId,location:t.location}}):t._e(),t._v(" "),e("div",{staticClass:"j-status-composer-toolbar"},[e("div",{staticClass:"toolbar-bg-picker"},[t.bg.id?e("JStatusBackgroundPicker",{directives:[{name:"show",rawName:"v-show",value:!t.hideColorPicker,expression:"!hideColorPicker"}],on:{setBg:t.setBg}}):t._e()],1),t._v(" "),t.isTouch?t._e():e("div",{staticClass:"toolbar-emoji"},[e("JEmoji",{on:{selectEmoji:t.selectEmoji}})],1)])],1)};$e._withStripped=!0;var Oe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"j-status-background-picker colorful-status__color"},[e("span",{directives:[{name:"show",rawName:"v-show",value:t.showDirection,expression:"showDirection"}],staticClass:"joms-direction joms-left",on:{click:t.scrollLeft}},[e("i",{staticClass:"fa fa-chevron-left",attrs:{"aria-hidden":"true"}})]),t._v(" "),e("ul",{staticClass:"colorful-status__color-list"},t._l(t.bgs,(function(o){return e("li",{key:o.id,staticClass:"colorful-status__color-selector",class:o.class,style:o.style,attrs:{title:o.title},on:{click:function(e){return t.setBg(o.id)}}})})),0),t._v(" "),e("span",{directives:[{name:"show",rawName:"v-show",value:t.showDirection,expression:"showDirection"}],staticClass:"joms-direction joms-right",on:{click:t.scrollRight}},[e("i",{staticClass:"fa fa-chevron-right",attrs:{"aria-hidden":"true"}})])])};Oe._withStripped=!0;var ke=o(135),Je={data:()=>({showDirection:!1,range:200}),mounted(){const t=this.$el.querySelector(".colorful-status__color-list");t.offsetWidth<t.scrollWidth&&(this.showDirection=!0);this.$store.state.isTouch&&window.innerWidth<600&&(t.style.overflowX="auto",this.range=100)},computed:{bgs(){const t=JSON.parse(JSON.stringify(this.$store.state.bgs)),e=this.$store.state.status.attachment.bgid;return t.map(t=>(t.class={active:t.id===e},t.style={backgroundImage:t.thumbnail?"url("+t.thumbnail+")":""},t)),t}},methods:{setBg(t){this.$store.commit("status/setBg",t),this.$emit("setBg",t)},scrollLeft(){const t=this.$el.querySelector(".colorful-status__color-list");Object(ke.a)([t.scrollLeft-this.range,null],{elementToScroll:t})},scrollRight(){const t=this.$el.querySelector(".colorful-status__color-list");Object(ke.a)([t.scrollLeft+this.range,null],{elementToScroll:t})}}},Se=(o(136),{components:{JStatusBackgroundPicker:Object(et.a)(Je,Oe,[],!1,null,null,null).exports,JEditorTouchDevice:Pt.a,JCharCount:$t.a,JEmoji:Ct.a,JComposerAdditionInfo:Lt},data:()=>({charLimit:+a.a.get("conf.statusmaxchar"),numchar:0,savedBg:"0",bgPicker:!0,urlAppeared:!1,placeholder:Object(U.a)("status.status_hint")}),mounted(){this.$store.commit("setNumCharLeft",this.charLimit-this.numchar)},computed:{isTouch(){return this.$store.state.isTouch},isColorful(){return this.$store.state.status.attachment.colorful},hasUrlPreview(){return!!this.$store.state.status.attachment.fetch.length},hideColorPicker(){if(this.hasUrlPreview)return!0;return this.$store.state.status.content.split("\n").length>4||this.numchar>160},editorClass(){return{"colorful-editor":this.isColorful,"normal-editor":!this.isColorful}},bg(){const t=this.$store.state.bgs;if(!t.length)return{};const e=this.$store.state.status.attachment.bgid;return t.find(t=>t.id===e)},moodId(){return this.$store.state.status.attachment.mood},location(){const t=this.$store.state.status.attachment.location;return t.length?t[0]:""},composerStyle(){return this.bg?{backgroundImage:this.bg.image?"url("+this.bg.image+")":"",color:this.bg.textcolor?"#"+this.bg.textcolor:""}:{}},numCharLeft(){return this.$store.state.numCharLeft}},watch:{hideColorPicker(t){t&&"0"!==this.savedBg?this.$store.commit("status/setBg","0"):t||"0"===this.savedBg||this.$store.commit("status/setBg",this.savedBg)}},methods:{onEditorFocus(){this.$store.commit("setFree",!1)},onEditorChange({value:t,numchar:e}){this.numchar=e,this.$store.commit("status/setContent",t),this.$store.commit("setNumCharLeft",this.charLimit-this.numchar),this.urlAppeared||this.isColorful||this.fetchUrlPreview(t)},fetchUrlPreview:Mt()((function(t){const e=t.match(/\s?((http|https):\/\/[a-z0-9-]+\.[a-z0-9-]+\S+)/);e&&(this.urlAppeared=!0,this.$emit("urlAppear",e[1]))}),300),reset(){this.savedBg="0",this.urlAppeared=!1,this.$refs.editor.reset()},setBg(t){this.savedBg=t,this.isTouch||this.$refs.editor.focus()},selectEmoji(t){this.$refs.editor.insertEmoji(t)}}}),Le=(o(137),Object(et.a)(Se,$e,[],!1,null,null,null).exports),Te=function(){var t=this,e=t._self._c;return e("JMiniBar",[e("ul",{staticClass:"joms-list inline"},[t.enablemood?e("li",{on:{click:function(e){return t.$emit("showMoodPicker")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-happy"}})])]):t._e(),t._v(" "),t.enablelocation?e("li",{on:{click:function(e){return t.$emit("showLocation")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-location"}})])]):t._e(),t._v(" "),t.isMyProfile?e("li",{on:{click:function(e){return t.$emit("showPrivacy")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-"+t.privacyIcon}})])]):t._e(),t._v(" "),t._l(t.tabs,(function(o){return e("li",{key:o.name,attrs:{title:o.title},on:{click:function(e){return t.setActiveTab(o)}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:o.icon}})])])}))],2),t._v(" "),t.isFree?t._e():e("JAction",{attrs:{isPostable:t.isPostable},on:{reset:function(e){return t.$emit("reset")},validate:function(e){return t.$emit("validate")}}}),t._v(" "),t.isLoading?e("JLoading"):t._e()],1)};Te._withStripped=!0;var Me={components:{JMiniBar:rt.a,JAction:nt.a,JLoading:ct.a},data(){const t=window.joms_current_url,{enablemood:e,enablelocation:o,enablephotos:s,enablephotosgif:i,enablevideos:r,enableevents:n,enablefiles:c,enablepolls:l,enablecustoms:m}=a.a.get("conf"),{isAdmin:d,isMyProfile:u,isProfile:p,isGroup:h,isEvent:v,isPage:_}=a.a.get("settings"),f=[];return(p||h||v||_)&&s&&(f.push({name:"photo",title:Object(U.a)("postbox.photo"),icon:window.joms_current_url+"#joms-icon-camera"}),i&&f.push({name:"gif",title:Object(U.a)("postbox.gif"),icon:window.joms_current_url+"#joms-icon-images"})),(p||h||v||_)&&r&&f.push({name:"video",title:Object(U.a)("postbox.video"),icon:window.joms_current_url+"#joms-icon-play"}),(p||h||_)&&n&&f.push({name:"event",title:Object(U.a)("postbox.event"),icon:window.joms_current_url+"#joms-icon-calendar"}),(p||h||v||_)&&c&&f.push({name:"file",title:Object(U.a)("postbox.file"),icon:window.joms_current_url+"#joms-icon-file-zip"}),(p||h||v||_)&&l&&f.push({name:"poll",title:Object(U.a)("postbox.poll"),icon:window.joms_current_url+"#joms-icon-list"}),d&&m&&f.push({name:"custom",title:Object(U.a)("postbox.custom"),icon:window.joms_current_url+"#joms-icon-bullhorn"}),{currentUrl:t,enablemood:e,enablelocation:o,isMyProfile:u,tabs:f}},computed:{isPostable(){const t=this.$store.state.status.content.trim(),e=this.$store.state.numCharLeft;return!!t&&e>-1},isFree(){return this.$store.state.free},isLoading(){return this.$store.state.loading},privacyIcon(){const{status:t,privacies:e}=this.$store.state;return e.find(e=>e.value===t.attachment.privacy).icon}},methods:{setActiveTab(t){if(this.$store.state.status.content){if(!confirm(Joomla.Text._("COM_COMMUNITY_CHANGES_YOU_MADE_MAY_NOT_BE_SAVED")))return}this.$emit("reset"),this.$store.commit("setActiveTab",t.name),this.$store.commit("setFree",!0)}}},Ee=Object(et.a)(Me,Te,[],!1,null,null,null).exports,Ae=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-dropdown location-dropdown"},[e("div",{staticClass:"joms-postbox-map",staticStyle:{height:"110px"}},[e(t.map,{ref:"map",tag:"component",attrs:{latLon:t.latLon},on:{mapLoaded:t.setMapLoaded}})],1),t._v(" "),e("div",{staticClass:"joms-postbox-action joms-location-action",staticStyle:{"z-index":"999"}},[t.selectedLocation.name&&t.value?e("button",{staticClass:"joms-postbox-select joms-button--primary",on:{click:t.setLocation}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-location"}})]),t._v("\n "+t._s(t.language("geolocation.select_button"))+"\n ")]):t._e(),t._v(" "),t.locationName?e("button",{staticClass:"joms-postbox-remove joms-button--neutral",on:{click:t.removeLocation}},[t._v(t._s(t.language("remove")))]):t._e()]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"joms-postbox-keyword joms-input",attrs:{type:"text",placeholder:t.language("geolocation.loaded"),disabled:!t.mapLoaded},domProps:{value:t.value},on:{input:[function(e){e.target.composing||(t.value=e.target.value)},t.onInputLocationSearch]}}),t._v(" "),e("ul",{staticClass:"joms-postbox-locations",staticStyle:{height:"160px","overflow-y":"auto"}},[t.loading?e("li",[e("em",[t._v(t._s(t.language("geolocation.loading")))])]):t._e(),t._v(" "),t.locations.length||t.loading?t._e():e("li",[e("em",[t._v(t._s(t.language("geolocation.error")))])]),t._v(" "),t._l(t.locations,(function(o){return e("li",{key:o.id,on:{click:function(e){return t.selectLocation(o)}}},[e("p",[t._v(t._s(o.name))]),t._v(" "),e("span",[t._v(t._s(o.sub))])])}))],2)])};function De(t,e){return Array.isArray(t)?Be(t,e):function(t,e){if(Array.isArray(t))return Be(t,e);return new Promise((o,s)=>{var i={query:t};new google.maps.places.PlacesService(e).textSearch(i,(function(t,e){e!==google.maps.places.PlacesServiceStatus.OK&&o([]),o(t.map(t=>({id:t.place_id,name:t.name,sub:t.formatted_address,lat:t.geometry.location.lat(),lon:t.geometry.location.lng()})))}))})}(t,e)}function Be(t,e){const o={location:new google.maps.LatLng(t[0],t[1]),radius:100};return new Promise((t,s)=>{new google.maps.places.PlacesService(e).nearbySearch(o,(e,o)=>{o!==google.maps.places.PlacesServiceStatus.OK&&t([]),t(e.map(t=>({id:t.place_id,name:t.name,sub:t.vicinity,lat:t.geometry.location.lat(),lon:t.geometry.location.lng()})))})})}Ae._withStripped=!0;var Ne={searchNearby:(t,e)=>"undefined"!=typeof google?De(t,e):function(t,e){return new Promise((o,s)=>{const i=setInterval(()=>{"undefined"!=typeof google&&(clearInterval(i),De(t,e).then(t=>{o(t)}))},500)})}(t,e)},Fe={searchNearby(t){const e="https://nominatim.openstreetmap.org/search?q="+(Array.isArray(t)?t.join(","):t)+"&format=json";return new Promise((t,o)=>{jQuery.getJSON(e).done(e=>{const o=e.map(t=>({id:t.place_id,name:t.display_name,sub:t.display_name,lat:+t.lat,lon:+t.lon}));t(o)})})}};const Ie="openstreetmap"===window.joms_maps_api,Ue=Ie?Fe:Ne,{searchNearby:ze}=Ue;var qe={components:{JLocationOpenStreet:()=>Promise.all([o.e(6),o.e(3)]).then(o.bind(null,168)),JLocationGoogle:()=>o.e(1).then(o.bind(null,169))},props:{locationName:{type:String,default:""}},data(){const t=Ie?"JLocationOpenStreet":"JLocationGoogle";return{mapLoaded:!1,currentUrl:window.joms_current_url,map:t,value:"",yourLocation:[51.5,-.09],locations:[],loading:!1,selectedLocation:{name:"",lat:"",lon:""}}},computed:{latLon(){return[this.selectedLocation.lat?this.selectedLocation.lat:51.5,this.selectedLocation.lon?this.selectedLocation.lon:-.09]}},watch:{mapLoaded(){this.autoDetectLocation()}},methods:{language:t=>Object(U.a)(t),autoDetectLocation(){this.loading=!0,window.navigator.geolocation.getCurrentPosition(t=>{const e=[t.coords.latitude,t.coords.longitude];this.detectLocationSuccess(e)},()=>this.detectLocationFail(),{enableHighAccuracy:!0,timeout:1e4})},detectLocationSuccess(t){s.a.set(this,"yourLocation",t),s.a.set(this,"selectedLocation",{name:"",lat:t[0],lon:t[1]});const e=this.$refs.map.map;ze(t,e).then(t=>{s.a.set(this,"locations",t),this.loading=!1})},detectLocationFail(){this.lookUpLocationByIp().then(t=>this.detectLocationSuccess(t))},lookUpLocationByIp:()=>new Promise((t,e)=>{jQuery.getJSON("https://extreme-ip-lookup.com/json/").done(e=>{"success"!==e.status&&alert("Error when detect location, please turn on location on browser."),t([e.lat,e.lon])})}),onInputLocationSearch(){s.a.set(this,"locations",[]),this.loading=!0,this.debounceSearch()},debounceSearch:Mt()((function(){const t=this.value?this.value:this.yourLocation,e=this.$refs.map.map;ze(t,e).then(t=>{s.a.set(this,"locations",t),this.loading=!1})}),300),selectLocation(t){this.value=t.name,s.a.set(this,"selectedLocation",{name:t.name,lat:t.lat,lon:t.lon})},setLocation(){this.$emit("setLocation",this.selectedLocation)},removeLocation(){this.value="",this.$emit("removeLocation")},setMapLoaded(){this.mapLoaded=!0}}},Ve=(o(138),Object(et.a)(qe,Ae,[],!1,null,null,null).exports),Re=function(){var t=this,e=t._self._c;return t.data.title?e("div",{staticClass:"joms-postbox-fetched"},[e("div",{staticClass:"joms-postbox-inner-panel"},[e("div",{staticStyle:{position:"relative"}},[t.data.title?e("div",{staticClass:"joms-fetched-container"},[t.data.image?e("div",{staticClass:"joms-fetched-images"},[e("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.data.image}})]):t._e(),t._v(" "),e("div",{staticClass:"joms-fetched-field joms-fetched-title"},[e("span",{staticStyle:{"font-weight":"bold",display:"inline"}},[t._v(t._s(t.data.title))])]),t._v(" "),t.data.desc?e("div",{staticClass:"joms-fetched-field joms-fetched-description"},[e("span",{staticStyle:{display:"inline"}},[t._v(t._s(t.data.desc))])]):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"clearfix"}),t._v(" "),e("span",{staticClass:"joms-fetched-close",staticStyle:{top:"0"},on:{click:t.removePreview}},[e("i",{staticClass:"joms-icon-remove"}),t._v("cancel\n ")])])])]):t._e()};Re._withStripped=!0;var He={props:{data:{type:Object,default:()=>({url:"",title:"",desc:"",image:""})}},methods:{removePreview(){this.$emit("removePreview")}}},Ke=(o(139),Object(et.a)(He,Re,[],!1,null,null,null).exports),We=o(140),Ge=o.n(We),Qe={components:{JStatusComposer:Le,JStatusMiniBar:Ee,JMoodPicker:qt,JLocationPicker:Ve,JPrivacyPicker:pt,JUrlPreview:Ke},data:()=>({moodPicker:!1,location:!1,privacy:!1,preview:{url:"",title:"",desc:"",image:""}}),computed:{locationName(){const t=this.$store.state.status.attachment.location;return 3===t.length?t[0]:""}},methods:{validate(){this.post()},post(){const t=Joomla.getOptions("com_community"),e=this.$store.state.status,o=[e.content,JSON.stringify(e.attachment)];if(t.stream_filter_params){const e=JSON.stringify(t.stream_filter_params);o.push(e)}this.$store.dispatch("post",o).then(()=>{this.reset()})},showMoodPicker(){this.moodPicker=!0},hideMoodPicker(){this.moodPicker=!1},showLocation(){this.location=!0},hideLocation(){this.location=!1},showPrivacy(){this.privacy=!0},hidePrivacy(){this.privacy=!1},reset(){this.resetPreview(),this.$refs.composer.reset(),this.$store.commit("status/reset"),this.$store.commit("setFree",!0)},setPrivacy(t){this.$store.commit("status/setPrivacy",t)},setMood(t){this.$store.commit("status/setMood",t)},setLocation(t){this.$store.commit("status/setLocation",t),this.hideLocation()},removeLocation(){this.$store.commit("status/setLocation",""),this.hideLocation()},urlAppear(t){this.$store.commit("setLoading",!0),joms.ajax({func:"system,ajaxGetFetchUrl",data:[t],callback:e=>{const o=(e.image||[]).concat(e["og:image"]||[]);this.preview.image=o.length?o[0]:"",this.preview.url=t,this.preview.title=Ge()(e.title)||t,this.preview.desc=Ge()(e.description)||"",this.setPreview(this.preview),this.$store.commit("setLoading",!1)}})},setPreview(t){this.$store.commit("status/setPreview",t)},removePreview(){this.resetPreview(),this.$store.commit("status/setPreview",!1)},resetPreview(){this.preview.url="",this.preview.title="",this.preview.desc="",this.preview.image=""}}},Ye=Object(et.a)(Qe,Pe,[],!1,null,null,null).exports,Xe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox-video"},[e("div",{staticClass:"joms-postbox-video--inner",on:{dragenter:t.showDropArea}},[t.type&&"upload"!==t.type?t._e():e("JVideoUpload",{ref:"uploader",attrs:{dropArea:t.dropArea},on:{typeChange:t.setType,hideDropArea:t.hideDropArea,reset:t.reset}}),t._v(" "),t.type?t._e():e("div",{staticClass:"joms-postbox-video-spacer"},[t._v(t._s(t.orText))]),t._v(" "),t.type&&"fetch"!==t.type?t._e():e("JVideoFetcher",{ref:"fetcher",attrs:{videoType:t.type},on:{typeChange:t.setType,reset:t.reset}})],1),t._v(" "),e("JVideoMiniBar",{directives:[{name:"show",rawName:"v-show",value:!t.$store.state.free,expression:"!$store.state.free"}],attrs:{videoType:t.type},on:{showMoodPicker:t.showMoodPicker,showLocation:t.showLocation,showPrivacy:t.showPrivacy,reset:t.reset,validate:t.validate}}),t._v(" "),e("keep-alive",[t.moodPicker?e("JMoodPicker",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideMoodPicker,expression:"hideMoodPicker"}],on:{hideMoodPicker:t.hideMoodPicker,setMood:t.setMood}}):t._e()],1),t._v(" "),e("keep-alive",[t.location?e("JLocationPicker",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideLocation,expression:"hideLocation"}],attrs:{locationName:t.locationName},on:{setLocation:t.setLocation,removeLocation:t.removeLocation}}):t._e()],1),t._v(" "),e("keep-alive",[t.privacy?e("JPrivacyPicker",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hidePrivacy,expression:"hidePrivacy"}],on:{hidePrivacy:t.hidePrivacy,setPrivacy:t.setPrivacy}}):t._e()],1)],1)};Xe._withStripped=!0;var Ze=function(){var t=this,e=t._self._c;return e("div",{staticClass:"j-video-fetcher"},[e("div",{staticClass:"video-url video-input"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],class:{"on-fetcher":"fetch"===t.videoType},attrs:{type:"text",placeholder:t.placeholder},domProps:{value:t.value},on:{input:[function(e){e.target.composing||(t.value=e.target.value)},t.onInput],focus:t.onFocus}})]),t._v(" "),e("JUrlPreview",{attrs:{data:t.preview},on:{removePreview:t.removePreview}}),t._v(" "),t.hasVideo?e("div",{staticClass:"video-category"},[e("JDropdownSelect",{attrs:{options:t.categories},model:{value:t.categoryId,callback:function(e){t.categoryId=e},expression:"categoryId"}})],1):t._e(),t._v(" "),"fetch"===t.videoType?e("JVideoComposer",{ref:"composer"}):t._e()],1)};Ze._withStripped=!0;var to=function(){var t=this,e=t._self._c;return e("div",{staticClass:"joms-postbox__video-composer"},[e(t.currentEditor,{ref:"editor",tag:"component",staticClass:"normal-editor",attrs:{isColorful:!1,placeholder:t.placeholder},on:{focus:t.onEditorFocus,change:t.onEditorChange}}),t._v(" "),e("JCharCount",{attrs:{num:t.numCharLeft}}),t._v(" "),t.moodId||t.location?e("JComposerAdditionInfo",{attrs:{moodId:t.moodId,location:t.location}}):t._e(),t._v(" "),e("div",{staticClass:"j-video-composer-toolbar"},[e("div",{staticClass:"toolbar-bg-picker"}),t._v(" "),t.isTouch?t._e():e("div",{staticClass:"toolbar-emoji"},[e("JEmoji",{on:{selectEmoji:t.selectEmoji}})],1)])],1)};to._withStripped=!0;var eo={components:{JEditorTouchDevice:Pt.a,JComposerAdditionInfo:Lt,JCharCount:$t.a,JEmoji:Ct.a},data:()=>({charLimit:+a.a.get("conf.statusmaxchar"),numchar:0,placeholder:Object(U.a)("status.video_hint")}),mounted(){this.$store.commit("setNumCharLeft",this.charLimit-this.numchar)},computed:{currentEditor:()=>"JEditorTouchDevice",isTouch(){return this.$store.state.isTouch},moodId(){return this.$store.state.video.attachment.mood},numCharLeft(){return this.$store.state.numCharLeft},location(){const t=this.$store.state.video.attachment.location;return t.length?t[0]:""}},methods:{onEditorFocus(){this.$store.commit("setFree",!1)},onEditorChange({value:t,numchar:e}){this.numchar=e,this.$store.commit("video/setContent",t),this.$store.commit("setNumCharLeft",this.charLimit-this.numchar)},reset(){this.$refs.editor.reset()},selectEmoji(t){this.$refs.editor.insertEmoji(t)}}},oo=(o(143),Object(et.a)(eo,to,[],!1,null,null,null).exports),so={components:{JVideoComposer:oo,JUrlPreview:Ke,JDropdownSelect:oe},props:{videoType:{type:String,default:""}},data:()=>({categories:we(a.a.get("videoCategories")).map(t=>({value:t.id,text:"Category: "+t.name})),preview:{id:"",url:"",title:"",desc:"",image:""},urlAppeared:!1,value:"",placeholder:Object(U.a)("video.share_button")}),computed:{hasVideo(){return!!this.$store.state.video.attachment.fetch.length},categoryId:{get(){return this.$store.state.video.catid},set(t){this.$store.commit("video/setCategory",t)}}},methods:{validate(){this.post()},post(){const t=Joomla.getOptions("com_community"),e=t.stream_filter_params?JSON.stringify(t.stream_filter_params):"",o=this.$store.state.video,s=[o.content,JSON.stringify(o.attachment),e];this.$store.dispatch("post",s).then(()=>{this.$emit("reset")})},reset(){this.value="",this.urlAppeared=!1,this.resetPreview(),this.$refs.composer&&this.$refs.composer.reset()},onInput(){this.urlAppeared||this.fetchUrlPreview()},onFocus(){this.$store.commit("setFree",!1)},fetchUrlPreview:Mt()((function(){const t=this.value;t.match(/^(http|https):\/\/[a-z0-9-]+\.[a-z0-9-]+\S+$/)&&(this.urlAppeared=!0,this.$store.commit("setLoading",!0),joms.ajax({func:"videos,ajaxLinkVideoPreview",data:[t],callback:t=>{if("__throwError"===t[1][1])alert(t[1][3]);else{const e=t[1][3][0].video;this.preview.id=e.id,this.preview.image=e.thumb,this.preview.url=e.path,this.preview.title=e.title,this.preview.desc=e.description||"",this.preview.catid=e.category_id,this.$store.commit("video/setCategory",e.category_id),this.$store.commit("video/setPreview",this.preview),this.$emit("typeChange","fetch")}this.$store.commit("setLoading",!1)}}))}),300),removePreview(){this.resetPreview(),this.$store.commit("video/setPreview",!1),this.$emit("reset")},resetPreview(){this.preview.id="",this.preview.url="",this.preview.title="",this.preview.desc="",this.preview.image=""}}},io=(o(144),Object(et.a)(so,Ze,[],!1,null,null,null).exports),ao=function(){var t=this,e=t._self._c;return e("JMiniBar",[e("ul",{staticClass:"joms-list inline"},[t.videoType&&t.enableMood?e("li",{on:{click:function(e){return t.$emit("showMoodPicker")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-happy"}})]),t._v(" "),e("span",{staticClass:"visible-desktop"},[t._v(t._s(t.text("status.mood")))])]):t._e(),t._v(" "),t.videoType&&t.enableLocation?e("li",{on:{click:function(e){return t.$emit("showLocation")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-location"}})]),t._v(" "),e("span",{staticClass:"visible-desktop"},[t._v(t._s(t.text("status.location")))])]):t._e(),t._v(" "),t.isMyProfile?e("li",{on:{click:function(e){return t.$emit("showPrivacy")}}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-"+t.privacy.icon}})]),t._v(" "),e("span",{staticClass:"visible-desktop"},[t._v(t._s(t.privacy.title.toLowerCase()))])]):t._e(),t._v(" "),e("li",{staticClass:"joms-minibar-spacer",staticStyle:{visibility:"hidden"}},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{attrs:{href:t.currentUrl+"#joms-icon-pencil"}})])])]),t._v(" "),t.isFree?t._e():e("JAction",{attrs:{isPostable:t.isPostable,save:"upload"===t.videoType?t.text("postbox.upload_button"):t.text("postbox.post_button")},on:{reset:function(e){return t.$emit("reset")},validate:function(e){return t.$emit("validate")}}}),t._v(" "),t.isLoading?e("JLoading"):t._e()],1)};ao._withStripped=!0;var ro={props:{videoType:{type:String,default:""}},components:{JMiniBar:rt.a,JAction:nt.a,JLoading:ct.a},data(){const t=Joomla.getOptions("com_community").current_url,{isMyProfile:e}=a.a.get("settings"),{enablemood:o,enablelocation:s}=a.a.get("conf");return{currentUrl:t,enableMood:o,enableLocation:s,isMyProfile:e}},computed:{isPostable(){if("fetch"===this.videoType){const t=!!this.$store.state.video.attachment.fetch.length,e=this.$store.state.numCharLeft;return t&&e>-1}return"upload"===this.videoType},isFree(){return this.$store.state.free},isLoading(){return this.$store.state.loading},privacy(){const{video:t,privacies:e}=this.$store.state;return e.find(e=>e.value===t.attachment.privacy)}},methods:{text:t=>Object(U.a)(t)}},no=Object(et.a)(ro,ao,[],!1,null,null,null).exports,co=function(){var t=this,e=t._self._c;return e("div",{staticClass:"j-video-upload"},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.preview,expression:"!preview"}],staticClass:"joms-postbox-inner-panel",staticStyle:{position:"relative"}},[e("div",{staticClass:"joms-postbox-file-upload"},[e("svg",{staticClass:"joms-icon",attrs:{viewBox:"0 0 16 18"}},[e("use",{staticClass:"joms-icon--svg-fixed joms-icon--svg-unmodified",attrs:{href:t.currentUrl+"#joms-icon-play"}})]),t._v("\n "+t._s(t.uploadAreaText)+"\n ")])]),t._v(" "),e("div",{staticClass:"j-video-upload-area dropzone"},[t.dropArea?e("div",{staticClass:"joms-postbox--droparea",on:{dragleave:function(e){return t.$emit("hideDropArea")},drop:function(e){return t.$emit("hideDropArea")}}},[e("div",{staticClass:"joms-postbox--droparea__inner"},[t._v("\n "+t._s(t.dropAreaText)+"\n ")])]):t._e(),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.preview,expression:"preview"}],staticClass:"j-video-upload-preview"})]),t._v(" "),t.preview?e("div",{staticClass:"j-video-upload-info"},[e("div",{staticClass:"j-video-upload-category"},[e("JDropdownSelect",{attrs:{options:t.categories,placeholder:t.selectCategoryText},model:{value:t.categoryId,callback:function(e){t.categoryId=e},expression:"categoryId"}})],1),t._v(" "),e("div",{staticClass:"video-title"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.title,expression:"title"}],attrs:{type:"text",placeholder:t.videoTitlePlaceholder},domProps:{value:t.title},on:{input:function(e){e.target.composing||(t.title=e.target.value)}}})]),t._v(" "),e("JVideoComposer",{ref:"composer"})],1):t._e()])};co._withStripped=!0,Nt.a.autoDiscover=!1;var lo={components:{JDropdownSelect:oe,JVideoComposer:oo},props:{dropArea:{type:Boolean,default:!1}},data(){const t=Joomla.getOptions("com_community").current_url;return{categories:we(a.a.get("videoCategories")).map(t=>({value:t.id,text:"Category: "+t.name})),currentUrl:t,dropzone:{},preview:!1,title:"",uploadAreaText:Object(U.a)("video.upload_button"),dropAreaText:Object(U.a)("video.drop_to_upload"),videoTitlePlaceholder:Object(U.a)("video.upload_title"),selectCategoryText:Object(U.a)("select_category")}},mounted(){const t=this.$store.state.video,e=Joomla.getOptions("com_community").base_url,o=this.$el.querySelector(".j-video-upload-area"),s=this.$el.querySelector(".joms-postbox-file-upload"),i=this.$el.querySelector(".j-video-upload-preview"),{maxvideouploadsize:r,max_input_time:n,videoextensions:c}=a.a.get("conf"),l=c.split(",").filter(t=>t.trim()).map(t=>t.trim().toLowerCase()),m=l.length?l:["mp4"];let d;switch(t.attachment.element){case"groups":d=e+"index.php?option=com_community&view=videos&task=uploadvideo&creatortype=group&groupid="+t.attachment.target;break;case"events":d=e+"index.php?option=com_community&view=videos&task=uploadvideo&creatortype=event&eventid="+t.attachment.target;break;case"pages":d=e+"index.php?option=com_community&view=videos&task=uploadvideo&creatortype=page&pageid="+t.attachment.target;break;default:d=e+"index.php?option=com_community&view=videos&task=uploadvideo&creatortype=user"}const u=new Nt.a(o,{url:d,timeout:1e3*n,createImageThumbnails:!1,clickable:s,addRemoveLinks:!0,maxFiles:1,maxFilesize:r,previewsContainer:i,acceptedFiles:m.map(t=>"."+t).join(","),autoProcessQueue:!1,dictRemoveFile:Object(U.a)("remove"),dictCancelUpload:Object(U.a)("cancel")});u.on("sending",(e,o,s)=>{s.append("name",e.name),s.append("title",this.title),s.append("description",t.content.trim()),s.append("category_id",t.catid),s.append("mood",t.attachment.mood),s.append("permissions",t.attachment.privacy),t.attachment.location.length&&s.append("location",t.attachment.location.join(","))}),u.on("maxfilesexceeded",t=>{u.removeFile(t),this.showError("Too many files to upload")}),u.on("addedfile",t=>{const e=t.name.split("."),o=e.pop().toLowerCase();if((e.length<1||-1===m.indexOf(o))&&(u.removeFile(t),alert(Object(U.a)("file.file_type_not_permitted"))),t.size>1024*r*1024){const e=Math.round(t.size/1024/1024*100);return u.removeFile(t),alert(Object(U.a)("video.max_upload_size_error")||t.name+" is too big ("+e/100+" MB). Maximum is "+r+" MB")}this.togglePreview(),this.setFilesChange()}),u.on("removedfile",t=>{this.togglePreview(),this.setFilesChange()}),u.on("success",t=>{const e=JSON.parse(t.xhr.response);e.error&&(alert(e.msg),u.removeFile(t)),"error"===e.status&&(alert(e.message),u.removeFile(t)),"success"===e.status&&(alert(e.processing_str),this.reset(),this.$emit("reset")),this.$store.commit("setLoading",!1)}),u.on("canceled",()=>{this.togglePreview()}),this.dropzone=u},computed:{categoryId:{get(){return this.$store.state.video.catid},set(t){this.$store.commit("video/setCategory",t)}}},methods:{validate(){return+this.$store.state.video.catid?this.title?void this.upload():alert("Missing video title"):alert("Please choose category!")},upload(){this.$store.commit("setLoading",!0),this.dropzone.processQueue()},togglePreview(){this.preview=!!this.dropzone.files.length},setFilesChange(){this.dropzone.files.length?(this.$emit("typeChange","upload"),this.$store.commit("setFree",!1)):this.$emit("reset")},reset(){this.title="",this.dropzone.files.forEach(t=>{this.dropzone.removeFile(t)}),this.$refs.composer&&this.$refs.composer.reset()}}},mo=(o(145),{components:{JVideoMiniBar:no,JVideoUpload:Object(et.a)(lo,co,[],!1,null,null,null).exports,JMoodPicker:qt,JPrivacyPicker:pt,JLocationPicker:Ve,JVideoFetcher:io},data(){const{enablevideosupload:t}=a.a.get("conf"),e=t?"":"fetch";return{moodPicker:!1,privacy:!1,location:!1,type:e,defaultType:e,dropArea:!1,orText:Object(U.a)("video.or")}},computed:{categoryId:{get(){return this.$store.state.video.catid},set(t){this.$store.commit("video/setCategory",t)}},locationName(){const t=this.$store.state.video.attachment.location;return 3===t.length?t[0]:""}},methods:{showDropArea(){"fetch"!==this.type&&(this.dropArea=!0)},hideDropArea(){"fetch"!==this.type&&(this.dropArea=!1)},showLocation(){this.location=!0},hideLocation(){this.location=!1},setLocation(t){this.$store.commit("video/setLocation",t),this.hideLocation()},removeLocation(){this.$store.commit("video/setLocation",""),this.hideLocation()},setType(t){this.type=t},validate(){return"upload"===this.type?this.$refs.uploader.validate():"fetch"===this.type?this.$refs.fetcher.post():void 0},showMoodPicker(){this.moodPicker=!0},hideMoodPicker(){this.moodPicker=!1},showPrivacy(){this.privacy=!0},hidePrivacy(){this.privacy=!1},setMood(t){this.$store.commit("video/setMood",t)},setPrivacy(t){this.$store.commit("video/setPrivacy",t)},reset(){this.type=this.defaultType,this.$refs.fetcher&&this.$refs.fetcher.reset(),this.$refs.uploader&&this.$refs.uploader.reset(),this.$store.commit("video/reset"),this.$store.commit("setFree",!0)}}}),uo=(o(146),{components:{JTabNav:ot,JCustom:vt,JEvent:gt,JFile:Rt,JGif:re,JPhoto:ie,JPoll:Ce,JStatus:Ye,JVideo:Object(et.a)(mo,Xe,[],!1,null,null,null).exports},computed:{currentComponent(){const t=this.$store.state.activeTab;return"J"+this.ucfirst(t)},tabShow(){return this.$store.state.free}},watch:{tabShow(t){}},methods:{ucfirst:t=>t.charAt(0).toUpperCase()+t.slice(1)}}),po=(o(147),Object(et.a)(uo,X,[],!1,null,null,null).exports);s.a.use(Y.a);e.default=function(){new s.a({store:G,render:t=>t(po)}).$mount(".joms-postbox")}}]]);
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0.01 |
proxy
|
phpinfo
|
ÐаÑтройка