AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.94
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/lemans/components/com_community/assets/app/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

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

Anon7 - 2022
AnonSec Team