1var gn=Object.defineProperty;var vn=(o,e,t)=>e in o?gn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var l=(o,e,t)=>(vn(o,typeof e!="symbol"?e+"":e,t),t);import{V as T,m as b,k as J,o as yn,s as ke,c as E,a as Ot,d as co,p as N,b as Do,f as k,e as ie,g as Ee,h as Ve,j as H,l as Jt,n as Et,q as uo,u as W,r as pt,t as No,v as fs,w as gs,x as j,y as Dt,z as Nt,A as te,B as Ce,C as po,D as ae,E as dt,F as K,G as V,H as De,I as mt,J as bn,K as vs,L as wn,M as xe,N as Ne,O as ys,P as Mt,Q as kn,R as mo,S as _o,T as Re,U as bs,W as ht,X as ho,Y as xn,Z as Qt,_ as In,$ as Le,a0 as ws,a1 as Cn,a2 as An,a3 as Se,a4 as kt,a5 as Tn,a6 as Lo,a7 as $n,a8 as Vo,a9 as ks,aa as Pn,ab as Rn,ac as ne,ad as xs,ae as Sn,af as On,ag as En,ah as Dn,ai as Nn,aj as Ln,ak as Vn,al as Fn,am as Mn,an as qn,ao as jn,ap as Un,aq as zn,ar as Bn,as as Hn,at as Wn,au as Gn,av as fo,aw as Is,ax as Yn,ay as Kn,az as Zn,aA as Jn,aB as Qn,aC as Xn,aD as ei,aE as ti,aF as oi,aG as si,aH as ni,aI as ii,aJ as go,aK as ri,aL as ai,aM as li,aN as ci,aO as di,aP as ui,aQ as pi,aR as mi,aS as _i,aT as hi,aU as fi,aV as gi,aW as vi,aX as yi,aY as bi,aZ as wi,a_ as ki,a$ as xi,b0 as Ii,b1 as Ci,b2 as Ai,b3 as Ti,b4 as $i,b5 as Pi,b6 as Ri,b7 as Si,b8 as Oi,b9 as Ei,ba as Di,bb as Cs,bc as Ni,bd as Li,be as Vi,bf as Fi,bg as Mi,bh as qi,bi as ji,bj as Ui,bk as zi,bl as Bi,bm as Hi,bn as Wi,bo as Gi,bp as Yi,bq as Ki,br as Zi,bs as Ji,bt as Qi,bu as Xi,bv as er,bw as tr,bx as or,by as sr,bz as nr,bA as ir,bB as rr,bC as ar,bD as lr,bE as cr,bF as dr,bG as ur,bH as pr,bI as mr,bJ as _r,bK as hr,bL as fr,bM as gr,bN as vr,bO as yr,bP as br,bQ as wr,bR as kr,bS as xr,bT as Ir,bU as Cr,bV as Ar,bW as Tr,bX as $r,bY as Pr,bZ as Rr,b_ as Sr,b$ as Or,c0 as Er,c1 as Dr,c2 as Nr,c3 as Lr,c4 as Vr,c5 as Fr,c6 as Mr,c7 as qr,c8 as jr,c9 as Ur,ca as zr,cb as Br,cc as Hr,cd as Wr,ce as Gr,cf as Yr,cg as Kr,ch as Zr,ci as Jr,cj as Qr,ck as Xr,cl as ea,cm as ta,cn as oa,co as sa,cp as na,cq as ia,cr as ft,cs as g,ct as ge,cu as w,cv as O,cw as v,cx as ra,cy as ce,cz as As,cA as Fe,cB as U,cC as M,cD as fe,cE as R,cF as q,cG as de,cH as aa,cI as la,cJ as ca,cK as Ts,cL as $s,cM as ve,cN as we,cO as Ps,cP as qt,cQ as jt,cR as z,cS as da,cT as Lt,cU as F,cV as Fo,cW as ua,cX as pa,cY as B,cZ as xt,c_ as he,c$ as Rs,d0 as Xt,d1 as ma,d2 as Ss,d3 as vo,d4 as _a,d5 as ha,d6 as fa,d7 as ga,d8 as va,d9 as ya,da as ba,db as ut,dc as wa,dd as ka,de as Os,df as We,dg as Es,dh as xa,di as Ia,dj as Ds,dk as Ca,dl as Gt,dm as Pe,dn as Me,dp as Aa,dq as Ta,dr as Mo,ds as qo,dt as $a,du as Pa,dv as Ns,dw as Ls,dx as Ra,dy as Sa,dz as jo,dA as Oa,dB as Ut,dC as Ea,dD as Da,dE as Na,dF as La,dG as Va,dH as Fa,dI as Uo,dJ as Ma,dK as qa,dL as ja,dM as Ua,dN as zo,dO as za,dP as Ba,dQ as yo,dR as Ha,dS as Wa,dT as Ga,dU as Ya,dV as Ka,dW as Vs,dX as Za}from"./vendor-_6dBehLn.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function t(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function s(n){if(n.ep)return;n.ep=!0;const a=t(n);fetch(n.href,a)}})();window.Loomio=T.prototype.$loomio=T.observable({});const p=window.Loomio,Ja="modulepreload",Qa=function(o,e){return o[0]==="."?new URL(o,e).href:o},Bo={},r=function(e,t,s){let n=Promise.resolve();if(t&&t.length>0){const a=document.getElementsByTagName("link");n=Promise.all(t.map(u=>{if(u=Qa(u,s),u in Bo)return;Bo[u]=!0;const I=u.endsWith(".css"),A=I?'[rel="stylesheet"]':"";if(!!s)for(let G=a.length-1;G>=0;G--){const D=a[G];if(D.href===u&&(!I||D.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${A}`))return;const X=document.createElement("link");if(X.rel=I?"stylesheet":Ja,I||(X.as="script",X.crossOrigin=""),X.href=u,document.head.appendChild(X),I)return new Promise((G,D)=>{X.addEventListener("load",G),X.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${u}`)))})}))}return n.then(()=>e()).catch(a=>{const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=a,window.dispatchEvent(u),!u.defaultPrevented)throw a})};class Xa{constructor({name:e,recordStore:t,collections:s,query:n}){this.collectionNames=[],this.name="unnamedView",this.collectionNames=s,this.name=e,this.recordStore=t,this.query=n,this.query(this.recordStore)}}var el=o=>b(J(o),e=>encodeURIComponent(e)+"="+encodeURIComponent(o[e])).join("&");function tl(o,e){return typeof o<"u"&&o!==null?e(o):void 0}const Ho=()=>decodeURIComponent(tl(document.cookie.match("(^|;)\\s*csrftoken\\s*=\\s*([^;]+)"),o=>o.pop())||"");class bo{constructor(e=null){this.defaultParams={},this.currentUpload=null,this.apiPrefix="/api/v1",this.onResponse=this.onResponse.bind(this),this.defaultParams.unsubscribe_token=new URLSearchParams(location.search).get("unsubscribe_token"),this.defaultParams.membership_token=new URLSearchParams(location.search).get("membership_token"),this.defaultParams.stance_token=new URLSearchParams(location.search).get("stance_token"),this.defaultParams.discussion_reader_token=new URLSearchParams(location.search).get("discussion_reader_token"),this.defaultParams=yn(this.defaultParams,Do),this.processing=[],e&&(this.resourcePlural=ke(e))}onPrepare(e){return e}onCleanup(e){return e}onResponse(e){return e.ok?e.json().then(this.onSuccess):this.onFailure(e)}onSuccess(e){return e}onFailure(e){if(e.json)return e.json().then(function(t){throw t.status=e.status,t.statusText=e.statusText,t.ok=e.ok,t});throw e}onUploadSuccess(e){return e}buildUrl(e,t){return e=E([this.apiPrefix,this.resourcePlural,e]).join("/"),t==null?e:e+"?"+el(t)}memberPath(e,t){return E([e,t]).join("/")}fetchById(e,t){return t==null&&(t={}),this.getMember(e,"",t)}fetch({params:e,path:t}){return this.get(t||"",e)}post(e,t){return this.request(this.buildUrl(e),"POST",this.paramsFor(t))}patch(e,t){return this.request(this.buildUrl(e),"PATCH",this.paramsFor(t))}delete(e,t){return this.request(this.buildUrl(e),"DELETE",this.paramsFor(t))}get(e,t){return this.request(this.buildUrl(e,this.paramsFor(t)),"GET")}request(e,t,s){s==null&&(s={});const n={method:t,credentials:"same-origin",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":Ho()},body:JSON.stringify(s)};
1return t==="GET"&&delete n.body,this.onPrepare(),fetch(e,n).then(this.onResponse,this.onFailure).finally(this.onCleanup)}postMember(e,t,s){return this.post(this.memberPath(e,t),s)}patchMember(e,t,s){return this.patch(this.memberPath(e,t),s)}getMember(e,t,s){return t==null&&(t=""),this.get(this.memberPath(e,t),s)}create(e){return this.post("",e)}update(e,t){return this.patch(e,t)}destroy(e,t){return this.delete(e,t)}discard(e,t){return this.delete(e+"/discard",t)}undiscard(e,t){return this.post(e+"/undiscard",t)}upload(e,t,s,n){if(s==null&&(s={}),!!t)return new Promise((a,u)=>{const I=new FormData;return I.append(s.fileField||"file",t),I.append(s.filenameField||"filename",t.name.replace(/[^a-z0-9_\-\.]/gi,"_")),this.currentUpload=new XMLHttpRequest,this.currentUpload.open("POST",this.buildUrl(e),!0),this.currentUpload.setRequestHeader("X-CSRF-TOKEN",Ho()),this.currentUpload.responseType="json",this.currentUpload.addEventListener("load",()=>{if(this.currentUpload.status>=200&&this.currentUpload.status<300)return Ot(this.currentUpload.response)&&(this.currentUpload.response=JSON.parse(this.currentUpload.response)),this.onUploadSuccess(this.currentUpload.response),a(this.currentUpload.response),this.currentUpload=null}),n&&this.currentUpload.upload.addEventListener("progress",n),this.currentUpload.addEventListener("error",u),this.currentUpload.addEventListener("abort",u),this.currentUpload.send(I)})}abort(){if(this.currentUpload)return this.currentUpload.abort()}paramsFor(e){return co({},this.defaultParams,N(e,t=>!Do(t)))}}const Wo=function(o,e){const t={};return k(J(o),function(s){return t[e(s)]=o[s],!0}),t},Go=o=>/At$/.test(o),eo=new class{deserialize(e){const t={},s=Wo(e,ie);return k(J(s),n=>Ee(s[n])?t[n]=b(s[n],this.parseJSON):t[n]=s[n]),t}parseJSON(e){const t=Wo(e,ie);return k(J(t),function(s){return t[s]!=null&&(Go(s)?t[s]=Ve(t[s]):t[s]=t[s]),!0}),t}isTimeAttribute(e){return Go(e)}};class ol{constructor(e){this.db=e,this.collectionNames=[],this.views={},this.remote=new bo,this.remote.onSuccess=t=>(this.importJSON(t),t)}fetch(e){return this.remote.fetch(e)}post({path:e,params:t}){return this.remote.post(e,t)}addRecordsInterface(e){const t=new e(this),s=ie(t.model.plural);return this[s]=t,this.collectionNames.push(s)}importJSON(e){const t=H(e,b(this.collectionNames,ke).concat(["parent_groups","parent_events"]));return this.importREADY(eo.deserialize(t))}importREADY(e){return Jt(e)?[]:(e.parentGroups!=null&&k(e.parentGroups,t=>(this.groups.importRecord(t),!0)),e.parentEvents!=null&&k(e.parentEvents,t=>(this.events.importRecord(t),!0)),k(this.collectionNames,t=>{if(e[t]!=null)return k(e[t],s=>(this[t].importRecord(s),!0))}),k(this.views,t=>(Et(b(t.collectionNames,ie),b(J(e),ie))&&t.query(this),!0)),e)}view({name:e,collections:t,query:s}){return this.views[e]?console.warn(`Records.view exists: ${e}`):this.views[e]=new Xa({name:e,recordStore:this,collections:t,query:s}),this.views[e].query(this),this.views[e]}}class ${constructor(e){this.model="undefinedModel",this.apiEndPoint=null}baseConstructor(e){this.views=[],this.missingIds=[],this.fetchedIds=[],this.fetchMissing=uo(function(){const t=pt(this.missingIds,this.fetchedIds).join("x");if(t.length!==0)return this.fetch({path:"",params:{xids:t}}),this.fetchedIds=W(this.fetchedIds.concat(this.missingIds)),this.missingIds=[]},500),this.recordStore=e,this.collection=this.recordStore.db.addCollection(this.collectionName||this.model.plural,{indices:this.model.indices}),k(this.model.uniqueIndices,t=>this.collection.ensureUniqueIndex(t)),this.remote=new bo(this.apiEndPoint||this.model.plural),this.remote.onSuccess=t=>(this.recordStore.importJSON(t),t),this.remote.onUploadSuccess=t=>(this.recordStore.importJSON(t),t)}addMissing(e){return this.missingIds.push(e),this.fetchMissing()}fetchAnyMissingById(e){const t=this.collection.chain().find({id:{$in:e}}).data().map(s=>s.id);this.missingIds=W(this.missingIds.concat(pt(e,t))),this.fetchMissing()}nullModel(){return null}all(){return this.collection.data}build(e){e==null&&(e={});const t=new this.model(this,e);return T.observable(t)}create(e){e==null&&(e={});const t=this.build(e);return this.collection.insert(t),t}fetch(e){return this.remote.fetch(e)}importRecord(e){let t;return e.key!=null&&(t=this.find(e.key)),e.id!=null&&t==null&&(t=this.find(e.id)),t?t.update(e):t=this.create(e),t}
1findOrFetchById(e,t){t==null&&(t={});const s=this.find(e);return s?(this.remote.fetchById(e,t),Promise.resolve(s)):this.remote.fetchById(e,t).then(n=>this.find(e))}find(e){if(e!=null){if(No(e))return this.findById(e);if(Ot(e))return this.findByKey(e);if(Ee(e)){if(e.length===0)return[];if(Ot(e[0]))return this.findByKeys(e);if(No(e[0]))return this.findByIds(e)}else{const t=this.collection.chain();return k(J(e),function(s){return t.find({[s]:e[s]}),!0}),t.data()}}}findOrNull(e){const t=this.find(e);return Ee(t)&&t.length===0?null:t}findById(e){return this.collection.by("id",e)}findByKey(e){return this.collection.constraints.unique.key!=null?this.collection.by("key",e):this.collection.findOne({key:e})}findByIds(e){return this.collection.find({id:{$in:e}})}findByKeys(e){return this.collection.find({key:{$in:e}})}}const ee=class ee{constructor(e,t){this.inCollection=this.inCollection.bind(this),this.remove=this.remove.bind(this),this.destroy=this.destroy.bind(this),this.beforeDestroy=this.beforeDestroy.bind(this),this.beforeRemove=this.beforeRemove.bind(this),this.discard=this.discard.bind(this),this.undiscard=this.undiscard.bind(this),this.save=this.save.bind(this),this.saveSuccess=this.saveSuccess.bind(this),this.saveError=this.saveError.bind(this),t==null&&(t={}),this.processing=!1,this._version=0,this.attributeNames=[],this.unmodified={},this.afterUpdateFns=[],this.saveDisabled=!1,this.saveFailed=!1,this.beforeSaves=[],this.setErrors(),Object.defineProperty(this,"recordsInterface",{value:e,enumerable:!1}),Object.defineProperty(this,"recordStore",{value:e.recordStore,enumerable:!1}),Object.defineProperty(this,"remote",{value:e.remote,enumerable:!1}),this.relationships!=null&&this.buildRelationships(),this.update(this.defaultValues()),this.update(t),this.afterConstruction()}bumpVersion(){return this._version=this._version+1}afterConstruction(){}defaultValues(){return{}}clone(){const e={};return k(this.attributeNames,t=>(Ee(this[t])?e[t]=this[t].slice(0):e[t]=this[t],!0)),new this.constructor(this.recordsInterface,e)}inCollection(){return this.$loki}update(e){return this.baseUpdate(e)}afterUpdate(e){return this.afterUpdateFns.push(e)}baseUpdate(e){return this.bumpVersion(),this.attributeNames=fs(this.attributeNames,J(e)),k(e,(t,s)=>(this.unmodified[s]=t,T.set(this,s,t),!0)),this.inCollection()&&this.recordsInterface.collection.update(this),this.afterUpdateFns.forEach(t=>t(this))}attributeIsModified(e){const t=function(a){const I=(new DOMParser().parseFromString(a,"text/html").body.textContent||"").trim();return["null","undefined"].includes(I)?"":I},s=this.unmodified[e],n=this[e];return eo.isTimeAttribute(e)?!(s===n||gs(s,n)):t(s)===t(n)?!1:s!==n}modifiedAttributes(){return j(this.attributeNames,e=>this.attributeIsModified(e))}isModified(){return this.modifiedAttributes().length>0}serialize(){return this.baseSerialize()}baseSerialize(){const e={},t={},s=ke(this.constructor.serializationRoot||this.constructor.singular);return this._destroy&&(t._destroy=this._destroy),k(this.constructor.serializableAttributes||this.attributeNames,n=>{const a=ke(n),u=ie(n);return eo.isTimeAttribute(u)&&this[u]?t[a]=this[u].toISOString():t[a]=this[u],!0}),e[s]=t,e}relationships(){}buildRelationships(){return this.views={},this.relationships()}hasMany(e,t){t==null&&(t={});const s=co(t,{from:e,with:this.constructor.singular+"Id",of:"id",find:{}});return this[e]=()=>{const n=Object.assign({},{[s.with]:this[s.of]},s.find);return t.orderBy?Dt(this.recordStore[s.from].find(n),t.orderBy):this.recordStore[s.from].find(n)}}belongsTo(e,t){const s={from:e+"s",by:e+"Id"},n=Nt(s,t);this[e]=()=>{if(this[n.by]){let a;if(a=this.recordStore[n.from].find(this[n.by]))return a;if(this.constructor.lazyLoad)return a=this.recordStore[n.from].create({id:this[n.by]}),this.recordStore[n.from].addMissing(this[n.by]),a}return this.recordStore[n.from].nullModel()},this[e+"Is"]=a=>this.recordStore[n.from].find(this[n.by])===a}belongsToPolymorphic(e){this[e]=()=>{const t=`${e}Type`,s=`${e}Id`;return this.recordStore[ee.eventTypeMap[this[t]]].find(this[s])}}translationOptions(){}isA(...e){return te(e,this.constructor.singular)}namedId(){return{[`${this.constructor.singular}_id`]:this.id}}bestNamedId(){return this.namedId()}isNew(){return this.id==null}keyOrId(){return this.key!=null?this.key:this.id}remove(){if(this.beforeRemove(),this.inCollection())return this.recordsInterface.collection.remove(this)}destroy(){return this.processing=!0,this.beforeDestroy(),this.remove(),this.remote.destroy(this.keyOrId()).finally(()=>this.processing=!1)}beforeDestroy(){}beforeRemove(){}discard(){return this.processing=!0,this.remote.discard(this.keyOrId()).finally(()=>this.processing=!1)}undiscard(){return this.processing=!0,this.remote.undiscard(this.keyOrId()).finally(()=>this.processing=!1)}beforeSave(){return!0}save(){return this.processing=!0,this.beforeSave(),this.beforeSaves.forEac
1h(e=>e()),this.isNew()?this.remote.create(this.serialize()).then(this.saveSuccess,this.saveError).finally(()=>this.processing=!1):this.remote.update(this.keyOrId(),this.serialize()).then(this.saveSuccess,this.saveError).finally(()=>this.processing=!1)}saveSuccess(e){return this.saveFailed=!1,this.unmodified=H(this,this.attributeNames),e}saveError(e){throw this.saveFailed=!0,this.setErrors(e.errors),e}discardChanges(){return this.attributeNames.forEach(e=>T.set(this,e,this.unmodified[e]))}setErrors(e){return e==null&&(e=[]),T.set(this,"errors",{}),k(e,(t,s)=>T.set(this.errors,ie(s),t))}isValid(){return this.errors.length>0}edited(){return this.versionsCount>1}};l(ee,"singular","undefinedSingular"),l(ee,"plural","undefinedPlural"),l(ee,"eventTypeMap",{Group:"groups",Discussion:"discussions",Poll:"polls",Outcome:"outcomes",Stance:"stances",Comment:"comments",CommentVote:"comments",Membership:"memberships",MembershipRequest:"membershipRequests",DiscussionTemplate:"discussionTemplates",PollTemplate:"pollTemplates"}),l(ee,"uniqueIndices",["id"]),l(ee,"indices",[]),l(ee,"searchableFields",[]),l(ee,"serializableAttributes",null),l(ee,"serializationRoot",null);let x=ee;const gt=new class{apply(e,t){return t==null&&(t={}),e.newDocumentIds=e.newDocumentIds||[],e.removedDocumentIds=e.removedDocumentIds||[],e.documents=()=>e.recordStore.documents.find({modelId:e.id,modelType:Ce(e.constructor.singular)}),e.newDocuments=()=>e.recordStore.documents.find(e.newDocumentIds),e.newAndPersistedDocuments=()=>W(j(fs(e.documents(),e.newDocuments()),s=>!te(e.removedDocumentIds,s.id))),e.hasDocuments=()=>e.newAndPersistedDocuments().length>0,e.serialize=function(){const s=this.baseSerialize(),n=e.constructor.serializationRoot||e.constructor.singular;return s[n].document_ids=b(e.newAndPersistedDocuments(),"id"),s},e.showDocumentTitle=t.showTitle,e.documentsApplied=!0}},qe=new class{apply(e){return e.translate=t=>e.recordStore.translations.fetchTranslation(e,t).then(s=>e.translation=s.translations[0].fields),e.translation={}}};class Ge extends x{afterConstruction(){gt.apply(this),qe.apply(this)}defaultValues(){return{discussionId:null,files:[],imageFiles:[],attachments:[],linkPreviews:[],body:"",bodyFormat:"html",mentionedUsernames:[]}}relationships(){this.belongsTo("author",{from:"users"}),this.belongsTo("discussion")}createdEvent(){return this.recordStore.events.find({kind:"new_comment",eventableId:this.id})[0]}reactions(){return this.recordStore.reactions.find({reactableId:this.id,reactableType:Ce(this.constructor.singular)})}group(){return this.discussion().group()}memberIds(){return this.discussion().memberIds()}participantIds(){return this.discussion().participantIds()}isReply(){return this.parentId!=null}isBlank(){return this.body===""||this.body===null||this.body==="<p></p>"}parent(){return this.recordStore[x.eventTypeMap[this.parentType]].find(this.parentId)}reactors(){return this.recordStore.users.find(b(this.reactions(),"userId"))}authorName(){if(this.author())return this.author().nameWithTitle(this.discussion().group())}authorUsername(){return this.author().username}authorAvatar(){return this.author().avatarOrInitials()}beforeDestroy(){return po(this.recordStore.events.find({kind:"new_comment",eventableId:this.id}),"remove")}}l(Ge,"singular","comment"),l(Ge,"plural","comments"),l(Ge,"indices",["discussionId","authorId"]),l(Ge,"uniqueIndices",["id"]);class sl extends ${constructor(e){super(e),this.model=Ge,this.baseConstructor(e)}}class to extends x{defaultValues(){return{groupId:null,name:null,server:null,accessToken:null,eventKinds:[],kind:null,webhookKind:null,errors:{},notificationOnly:!1}}relationships(){this.belongsTo("group")}}l(to,"singular","chatbot"),l(to,"plural","chatbots");class nl extends ${constructor(e){super(e),this.model=to,this.baseConstructor(e)}}const Y=new class{parse(e){return b(e.split(","),t=>b(t.split("-"),s=>parseInt(s)))}serialize(e){return b(e,t=>t.join("-")).join(",")}reduce(e){e=ae(e,s=>s[0]);const t=E([e.shift()]);return k(e,function(s){const n=De(t);return n[1]>=s[0]-1?(t.pop(),t.push([n[0],mt([s[1],n[1]])])):t.push(s)}),t}length(e){return dt(b(e,t=>t[1]-t[0]+1))}arrayToRanges(e){return this.reduce(e.map(t=>[t,t]))}intersectRanges(e,t){return this.arrayToRanges(this.rangesToArray(e).filter(s=>this.includesValue(t,s)))}rangesToArray(e){let t=[];return e.forEach(s=>t=t.concat(this.rangeToArray(s[0],s[1],1))),t}rangeToArray(e,t,s){return Array.from({length:(t-e)/s+1},(n,a)=>e+a*s)}overlaps(e,t){const s=ae([e,t],n=>n[0]);return s[0][1]>=s[1][0]}includesValue(e,t){return K(e,s=>bn(t,s[0],s[1]+1))}subtractRange(e,t){if(t.length===0||t[0]>e[1]||t[1]<e[0])return[e];if(t[0]<=e[0]&&t[1]>=e[1])return[];if(t[0]>e[0]&&t[1]<e[1])return[[e[0],t[0]-1],[t[1]+1,e[1]]];if(t[0]===e[0]&&t[1]<e[1])return[[t[1]+1,e[1]]];if(t[0]>e[0]&&t[1]===e[1])return[[e[0],t[0]-1]]}subtractRanges(e,t){return e=this.reduce(e),t=this.reduce(t),t.forEach(s=>{let n=[];return e.forEach(a=>n=n.concat(this.subtractRange(a,s))),e=this.reduce(n)}),e}selfTest(){return{length1:this.length([[1,1]])===1,length2:this.length([[1,2]])===2,serialize:this.serialize([[1,2],[4,5]])==="1-2,4-5",parse:V(this.parse("1-2,4-5"),[[1,2],[4,5]]),reduceSimple:V(this.reduce([[1,1]]),[[1,1]]),reduceMerge:V(this.reduce([[1,2],[3,4]]),[[1,4]]),reduceEmpty:V(this.reduce([]),[]),subtractWhole:V(this.subtractRange([1,1],[1,1]),[]),subtractNone:V(this.subtractRange([1,1],[2,2]),[[1,1]]),subtractLeft:V(this.subtractRange([1,2],[1,1]),[[2,2]]),subtractRight:V(this.subtractRange([1,2],[2,2]),[[1,1]]),subtractMiddle:V(this.subtractRange([1,3],[2,2]),[[1,1],[3,3]]),overlapsNone:this.overlaps([1,2],[3,4])===!1,overlapsPart:this.overlaps([1,2],[2,3])===!0,overlapsWhole:this.overlaps([1,2],[1,2])===!0,subtractRanges1:V(this.subtractRanges([[1,1]],[[1,1]]),[]),subtractRanges2:V(this.subtractRanges([[1,2]],[[1,1]]),[[2,2]]),subtractRanges3:V(this.subtractRanges([[1,2],[4,6]],[[1,1],[5,5]]),[[2,2],[4,4],[6,6]]),subtractRanges4:V(this.subtractRanges([[1,2],[4,8]],[[5,6],[7,8]]),[[1,2],[4,4]])}}hardTest(){return{subtractRanges5:V(this.subtractRanges)}}},Fs={en:{tasks:{tasks:"Tasks",your_tasks:"Your tasks",permission_denied:"You don't have permission to update this task",due_date:"Due date",send_reminder:"Send reminder (if not done)",no_reminder:"No reminder",on_due_date:"On due date","1_day_before":"1 day before","2_day_before":"2 days before","3_day_before":"3 days before","7_day_before":"7 days before",task_placeholder:"Enter a task and @mention someone to assign it",add_due_date:"Add due date",task_updated_done:"Task marked as done!",task_updated_not_done:"Task marked as
1not done",no_tasks_assigned:"There are no tasks assigned to you"},templates:{template_gallery:"Template gallery",title_template:"%{title} Template",title_templates:"%{title} Templates",title_copy:"%{title} Copy",copy_of_title:"Copy of %{title}",loomio_default_templates:"Loomio default templates",which_templates_would_you_like_to_use:"Which templates would you like to use?",login_to_start_demo:`This a demo of Loomio in action. You're welcome to take a look around. 2`,sign_in_to_try_features:`If you'd like to try voting in a demo decision, or to start a free trial for your organization, click "sign in". 3`,click_button_to_start_demo:`Welcome! To try voting and other features, click start demo. 4`,welcome_to_your_demo:"This is your very own demo group!",try_voting_to_see_it_work:"Try voting in a proposal to get a sense of how Loomio works.",delete_will_be_deleted_in_x_days:"This demo will be deleted in %{x} days.",to_use_loomio_with_your_org_start_trial:"When you're ready to try Loomio with your organization, start a free trial.",templates:"Templates",make_a_copy:"Make a copy",this_thread_is_a_template:"This thread is a template. Make a copy if you want to use it.",this_is_a_poll_template:"This a poll template. Make a copy if you want to start voting.",try_loomio:"Try Loomio",start_a_demo_group:"Start a demo group",start_a_demo:"Start a demo",demo_group:"Demo group",play_with_an_example_group:"Play with an example group",look_and_feel:"See what Loomio looks like for a small organization. Learn the app by trying it out.",watch_then_start:'Please watch the video, then click "Start Demo" to try Loomio',generating_demo:"Ok, wait right there! Generating a demo takes around 20 seconds.",start_a_x_day_free_trial:"Start a %{day} day free trial",ready_to_trial:"Ready to try Loomio with your organization?",start_a_no_obligation_x_day_trial:"Start a Loomio group for your orgnization with a free %{day} day trial.",you_can_test_it_out:`You can invite other people to join, integrate it with your other tools, and try making some decisions. 5`,demo_created:"Demo group created, just for you!",start_demo:"Start demo",view_demo:"View demo",start_trial:"Start trial",start_free_trial:"Start free trial",demo_needs_user:"To start a demo, you need to sign up (or sign in) as a Loomio user. This is free and only takes a minute.",trial_needs_user:"Welcome! Please sign in to start your free trial",this_is_a_template_for_new_threads:"This is a template for new threads",share_a_custom_configuration:"Share a custom configuration with others in your group"},doctypes:{youtube_video:"YouTube Video",image:"Image",pdf:"PDF",excel:"Excel Spreadsheet",document:"Document",csv:"CSV File",video:"Video",text:"Text File",google_doc:"Google Doc",google_sheet:"Google Spreadsheet",google_drive:"Google Drive",pull_request:"Pull Request",trello_board:"Trello Board",trello_card:"Trello Card"},plan_names:{free:"Free",starter:"Starter",trial:"Trial",pro:"Pro",pro_nonprofit:"Pro Nonprofit",community:"Community",small:"Small",medium:"Medium",large:"Large",monthly:"Monthly",yearly:"Annually"},current_plan_button:{upgrade:"Upgrade",buy_now:"Buy now",is_old_plan:"Loomio has new simple pricing plans",change_plan:"Change plan",view_plans:"View plans",free_trial:"Free trial. %{days} days remaining.",trial_expired:"Your trial has expired. Upgrade to continue using Loomio.",tooltip:"Our prices are fantastic! Upgrade today and enjoy what Loomio can offer your group.",was_gift_trial:"Your group has been using Loomio for free since %{createdDate}. We are unable to continue providing a free service. Please upgrade to continue using Loomio. <a href='https://help.loomio.org/en/plan-changes/' target='_blank' style='text-decoration: underline;'>Read more.</a>",was_gift_remaining:"%{days} days remaining.",was_gift_expired:"Your free plan has now expired."},subscription_status:{plan:"Plan",state:"Status",members:"Members",active_members:"Active members",max_threads:"Max threads",max_members:"Max members",expires_at:"Expires",renews_at:"Renews",referral_code:"Referral code",chargify_link:"Billing portal",referral_code_help:"Give a friend a discount, get yourself some credit!",manage_payment_details:"Manage payment details",manage_subscription:"Manage Subscription",amount:"Amount"},loomio_tags:{all_tags:"All tags",tags:"Tags",apply_tags:"Apply tags",new_tag:"New tag",name_label:"Name",color_label:"Color",card_title:"Category tags",modal_title:"Create a new tag",modal_edit_title:"Edit tag",modal_destroy_title:"Remove tag",destroy_tag:"Delete tag",destroy_helptext:"This will delete this tag and remove it from all threads in the group. Are you sure?",helptext:"Tags allow you to categorize conversations and easily find them later",discussions_count_singular:"(%{count} thread)",discussions_count_plural:"(%{count} threads)",tag_created:"Tag saved",tag_destroyed:"Tag deleted",tags_marked:"Threads marked '%{name}' in %{groupName}",no_tags_present:"No threads were found with that tag! Try selecting another one",no_tags_in_group:"This group has no category tags yet",only_admins_can_edit_tags:"Sorry, only admins of %{group} can create, rename or delete tags"},poll_types:{proposal:"proposal",count:"opt-in",check:"sense check",poll:"poll",dot_vote:"dot vote",meeting:"time poll",ranked_choice:"ranked choice",score:"score poll",question:"question round"},timezones:{local:"Local time (%{value})"},common:{value:"%{value}",admin_menu:"Admin menu",api_docs:"API docs",prefix_eg:"e.g. %{val}",are_you_sure:"Are you sure?",loomio_help:"Loomio help",visit_loomio_help:"Visit Loomio help",help_and_guides:"Help & guides",please_wait:"Please wait",optional:"(Optional)",version:"Version",none:"None",empty:"Empty",no_results_found:"No results found",view:"View",or:"or",history:"History",option:"Option",add:"Add",you:"You",off:"Off",expand:"Expand",all_day:"All day",ok_got_it:"Ok, got it",learn_more:"Learn more",not_found:"Not found",time_zone:"Time zone",local_time:"Local time",attachments:"Attachments",template:"Template",links:"Links",active_time_ago:"Last active %{time_ago}",confirm_discard_changes:"Discard your changes?",something_went_wrong:"Uh oh! Something went wrong",check_for_errors_and_try_again:"Please check the form for errors and try again",please_try_again:"Please try again",time:{am:"am",pm:"pm"},closing_in:"Closing %{time}",closed_ago:"Closed %{time}",volume:"Volume",notification_volume:"Notification Volume",group:"Group",groups:"Groups",organization:"Organization",organizations:"Organizations",threads:"Threads",decisions:"Decisions",settings:"Settings",help:"Help",anonymous:"Anonymous",required:"Required",email_address:"Email address",minutes:"Minutes",privacy:{privacy:"Privacy",public:"Public",open:"Open",closed:"Closed",private:"Private",secret:"Secret"},selected:"Selected",today:"today",in_x_days:"in %{x} days",date_range:{today:"Today",yesterday:"Yesterday",thisweek:"This Week",thismonth:"This Month",older:"Older"},more_help:"More help",copy:"Copy",reset:"Reset",copy_text:"Copy text",copied:"Copied to clipboard",points_abbrev:"Each vote worth %{score} points",total:"Total",action:{print:"Print",preview:"Preview",pin:"Pin",unpin:"Unpin",search:"Search",filter:"Filter",back:"Back",next:"Next",close:"Close",reopen:"Reopen",save:"Save",move:"Move",save_changes:"Save changes",update_settings:"Update settings",reply:"Reply",edit:"Edit",remove:"Remove",undo_remove:"Undo remove",like:"Like",unlike:"Unlike",update:"Update",cancel:"Cancel",confirm:"Confirm",hide:"Hide",unhide:"Unhide",show_more:"Show more",show_fewer:"Show fewer",view_count_more:"View %{count} more",view_count_responses:"View %{count} responses",count_more:"%{count} more",count_responses:"%{count} responses",view_all:"View All",new_thread:"New thread",add_subgroup:"New subgroup",loading:"Loading",translate:"Translate",upload:"Upload",uploading:"Uploading",load_more:"Load More",share:"Share",ok:"Ok",retry:"Retry",clear:"Clear",done:"Done",start:"Start",delete:"Delete",discard:"Discard",restore:"Restore",unsubscribe:"Unsubscribe",subscribe:"Subscribe",unignore:"Unignore",remind:"Remind",resend:"Resend",send:"Send",joined:"Joined",last_seen:"Last seen",invite:"Invite",resent:"Invitation resent",export:"Export",fork:"Fork",apply:"Apply",add_people:"Add People",zoom:"Zoom",align:"Align"},formatting_help:{label:"Formatting",title:"Learn how to use Markdown to format your text"}},merge_accounts:{modal:{title:"Merge accounts",helptext:"You can merge the account under <strong>%{sourceEmail}</strong> into that of <strong>%{targetEmail}</strong>. Click Verify and a verification email will be sent to %{targetEmail} to begin the process.",submit:"Verify",flash:"Verification email sent!"},email_taken:"Sorry, that email is already associated with another user. Does that email belong to you?",find_out_more:"Find out more.",placeholder_modal_text:`<p>If you would like to merge two accounts together, simply enter the respective email address (belonging to the other account) into your Profile page email field, and follow the instructions that appear.</p> 6<p>Need help? <a href="/contact" target="_blank">Contact us</a>. 7`},emoji_picker:{search:"Search",common:"Frequently used",expressions:"Faces",hands:"Hands",people:"People",nature:"Nature",objects:"Things",places:"Places"},ordinal:{_1:"1st",_2:"2nd",_3:"3rd",_4:"4th",_5:"5th",_6:"6th",_7:"7th",_8:"8th",_9:"9th",_10:"10th"},devise:{sessions:{signed_up:"Signed up successfully!"},failure:{inactive:"There is a deactivated account associated with this email address. If you want to reactivate your account, contact us."}},error_page:{forbidden:"You do not have permission to do this.",forbidden_view:"You do not have permission to view this.",page_not_found:"We were unable to find that. It may have been deleted or moved.",internal_server_error:"We're sorry, but something went wrong. Please try again."},verify_email_notice:{please_verify:"Thanks for participating! Please check your email for a link to verify your vote."},previous_polls_page:{heading:"Activities in %{name}",polls_count:"Showing %{loaded} of %{total} decisions",search_activities:"Search decisions"},email_to_group:{email_released:"Email released and alias created",
7not_available_to_trial_or_demo:"This feature is not available for trial or demo groups",review_email:"Review email",add_alias:"Add alias",who_is_the_owner_of_email:"Who is the owner of %{email}?",is_name_the_owner_of_email:"Is %{name} the owner of %{email}?",all_email_will_belong_to_name:"All messages from %{email} will be attributed to %{name}",email_aliases:"Aliases and ignored addresses",belongs_to_name:"Belongs to %{name}",block_email:"Block address",no_emails_to_release:"No emails waiting for release",release_rules:"Release rules",confirm_block:"Block this email address?",confirm_block_body:"This email, and any further emails from %{sender} will be ignored.",confirm_delete:"Delete this email?",confirm_delete_body:"This email will be deleted. Any future emails from %{sender} will be unaffected.",unreleased_emails:"Unreleased emails",start_a_thread_by_email:"Start a thread by email",send_email_to_start_thread:"Send an email to this address to start a thread in your group.",subject_body_attachments:"The email subject becomes the thread title, the body of the email becomes the description, and any attached files will be attached to the thread.",copy_address:"Copy address",email_me_this_address:"Email me this address",email_address_copied_to_clipboard:"Email address copied to clipboard",forward_email_to_move_conversation:"Tip: Forward an email conversation to Loomio when you need to make a decision or keep a record."},email_to_group_mailer:{your_email_address_to_start_threads_in_group:"Your email address to start threads in %{group}"},volume_levels:{loud:"Loud",normal:"Normal",quiet:"Quiet",mute:"Mute",unmute:"Unmute"},pin_event_form:{title:"Pin to timeline",title_label:"Title",hint:'Hint for next time: Try highlighting some text before you click "Pin".'},change_volume_form:{explain_scope:{thread:"This changes when you'll be notified about this thread",group:"This changes when you'll be notified about all threads in the group"},simple:{label:"Notifications",loud:"Subscribed",normal:"Normal",quiet:"Ignore",question:"When do you want to be notified?",loud_explain:"whenever there is activity",normal_explain:"when someone asks for your attention",quiet_explain:"no notifications"},aria_label:"Change email settings form",loud_label:"All activity",normal_label:"Announcements",quiet_label:"No emails",mute_label:"Mute",saved:"Notification settings updated",discussion:{title:"Thread notifications",loud_description:"You will be emailed all activity in this thread.",normal_description:"You will only be emailed important activity in this thread.",quiet_description:"You won't be emailed any activity in this thread.",apply_to_all:"Apply these settings to all threads in this group.",only_this_thread:"Applies to this thread only",group:"Change notifications for group",user:"Change user notification settings",messages:{loud:"You will be emailed activity in this thread.",normal:"You will be emailed about proposals in this thread.",quiet:"You won't be emailed about this thread."}},membership:{title:"Notifications for %{title}",loud_description:"You will be emailed whenever there is activity in this group.",normal_description:"You will be emailed whenever there is activity in this group.",quiet_description:"You won't be emailed about activity in this group.",apply_to_all:"Apply these settings to all my groups.",apply_to_organization:"Apply to all groups in %{organization}",messages:{loud:"You will be emailed all activity in this group.",normal:"You will only be emailed announcements in this group.",quiet:"You won't be emailed about this group."}},all_groups:{title:"Notification preferences for all groups",loud_description:"You will be emailed all activity in all your groups.",normal_description:"You will only be emailed important activity in all your groups.",quiet_description:"You won't be emailed any activity in any of your groups.",messages:{loud:"You will be emailed all activity in all your groups.",normal:"You will only be emailed announcements in all your groups.",quiet:"You won't be emailed about any of your groups."}},user:{title:"Email settings for new groups",loud_description:"You will be emailed whenever there is activity in any new groups you join.",normal_description:"You will be emailed about announcements in any new groups you join.",quiet_description:"You won't be emailed about activity in any new groups you join.",apply_to_all:"Apply these settings to all my groups.",messages:{loud:"You will be emailed all activity in new groups.",normal:"You will be emailed about announcements in new groups.",quiet:"You won't be emailed about new groups."}}},close_explanation_modal:{aria_label:"Close thread",close_thread:"Close thread",body:`<p>Close old or irrelevant threads to remove them from view and indicate the discussion has closed.</p> 8<p>Anyone may still comment or start a poll in a closed thread, but it will not appear in the group's thread list or on the dashboard.</p> 9`,image_alt:"Closing threads all"},inbox:{clear:"Clear",latest:"Latest",unread:"Unread",closing_in:"Closing "},sign_up_form:{password_label:"Password:",password_confirmation_label:"That password again:"},signed_out_modal:{aria_label:"Session ended",title:"Your session has ended",message:"You have been logged out from another window. Please sign back in to continue.",ok:"Ok"},comment_reply_form:{aria_label:"Add a reply"},comment_form:{aria_label:"Add a comment",attachments:{add_attachment:"Attach file",remove_attachment:"Remove attachment"}
9,messages:{created:"Comment added",replied:"%{name} notified of reply",updated:"Comment updated",destroyed:"Comment deleted",removed:"Comment removed"},say_something:"Say something...",edit_comment:"Edit comment",delete_comment:"Delete comment",cancel_reply:"Cancel Reply",confirm_delete_message:"Are you sure you want to delete this comment?",confirm_delete:"Delete comment",in_reply_to:"Reply to %{name}",write_a_comment:"Write a comment...",post_comment:"Post comment",submit_button:{label:"Post"},private_privacy_notice:"Your comment will only be visible to members of %{groupName}.",public_privacy_notice:"Your comment will be visible to anyone on the web.",sign_in:"Log in to join the conversation"},thread_nav:{participants:"Participants"},sidebar:{new_thread_removed:"New thread removed",new_thread_removed_body:'The new thread button is being removed from the sidebar. To start a new thread, first navigate to your group, then click "New thread". Sorry for the change, but it is required because you need to select a template when starting a thread.',threads:"Threads",my_groups:"My groups",other_groups:"Other groups",all_groups:"All groups",recent_threads:"Recent threads",invite_only_threads:"Invite-only threads",direct_threads:"Direct threads",unread_threads:"Unread threads (%{count})",muted_threads:"Muted threads",start_group:"New organization",start_subgroup:"New subgroup",explore:"Public groups",explore_groups:"Explore groups",start_thread:"New thread",start_decision:"New decision",more_groups:"More groups",template_gallery:"Template gallery",examples_and_templates:"Examples & templates",help_docs:"Help docs",a_detailed_guide_to_loomio:"A detailed guide to Loomio",talk_to_the_loomio_team:"Talk to the Loomio team",aria_labels:{heading:"Sidebar",threads_list:"Threads actions",groups_list:"Groups",user_list:"User actions"}},strand_nav:{newest:"Newest",oldest:"Oldest",newest_first:"Newest first",oldest_first:"Oldest first",all_pinned:"All pinned items",whole_thread:"The whole thread",from_comment:"From a comment url",from_sequence_id:"From a thread item url",unread:"New to you"},search_modal:{all_content:"All content",best_match:"Best match",any_tag:"Any tag",all_subgroups:"All subgroups",parent_only:"Parent only"},navbar:{search_all_threads:"Search all threads",search_threads:"Search threads in %{name}",search_polls:"Search polls in %{name}",search_members:"Search members in %{name}",search_subgroups:"Search members in %{name}",search_files:"Search files in %{name}",recent_title:"Go to dashboard",unread_title:"View unread activity",start_thread:"New thread",notifications:"Notifications panel",search:{label:"Search field; search for groups and threads",results_aria_label:"Search results",no_results:"No threads found",close:"Close search panel",placeholder:"Search",loading:"Loading results...",discussions:"Threads",proposals:"Proposals",comments:"Comments"},sign_in:"Log In",toggle_sidebar:"Toggle sidebar",open_sidebar:"Open sidebar",close_sidebar:"Close sidebar",logo_title:"Home page",group_and_subgroups:"%{group} & subgroups"},user_dropdown:{pin_sidebar:"Pin sidebar",unpin_sidebar:"Unpin sidebar",enable_beta_features:"Enable beta features",disable_beta_features:"Disable beta features",enable_dark_mode:"Enable dark mode",disable_dark_mode:"Disable dark mode",button_label:"User menu",edit_profile:"Edit profile",email_settings:"Notification settings",help:"Help",contact_site_name:"Contact
9%{site_name}",contact_support:"Contact support",sign_out:"Sign out",beta_collab:"𧪠Beta features enabled!",outcomes:"Outcomes"},membership_card:{group_members:"Group members",discussion_members:"Thread members",poll_members:"%{pollType} members",voters:"Voters",invite_to_group:"Invite to group",invite_to_discussion:"Invite to thread",invite_to_poll:"Invite to vote",invite_to_wip_poll:"Invite to give feedback",invitations:"Invitations"},membership_dropdown:{set_name_and_username:"Set name and username",set_title:"Set title",resend:"Resend invitation",invitation_resent:"Invitation resent",make_coordinator:"Make admin",demote_coordinator:"Demote admin",remove_from:{discussion:"Remove from thread",group:"Remove from group",poll:"Remove from %{pollType}"},cancel_invitation:"Cancel invitation"},notification_models:{discussion:"thread: ",comment:"comment in ",poll:"poll: ",outcome:"outcome: ",stance:"vote: "},notifications:{header:"Notifications",no_notifications:"You don't have any notifications",with_title:{unknown_sender:"Please review email from unrecognised sender",comment_replied_to:"%{actor} replied to you in: %{title}",discussion_announced:"%{actor} invited you to the thread: %{title}",discussion_edited:"%{actor} edited the thread context: %{title}",discussion_closed:"%{actor} closed the thread: %{title}",invitation_accepted:"%{actor} accepted your invitation to join %{title}",membership_created:"%{actor} invited you to join %{title} on %{site_name}",membership_resent:"%{actor} invited you to join %{title} on %{site_name}",membership_requested:"%{actor} requested to join %{title}",membership_request_approved:"%{actor} approved your request to join %{title}",new_comment:"%{actor} commented in: %{title}",new_coordinator:"%{actor} made you an admin of %{title}",new_discussion:"%{actor} started a thread: %{title}",outcome_announced:"%{actor} shared a %{poll_type} outcome: %{title}",outcome_created:"%{actor} shared a %{poll_type} outcome: %{title}",outcome_updated:"%{actor} updated the %{poll_type} outcome: %{title}",outcome_review_due:"It's time to review the outcome of: %{title}",poll_announced:"%{actor} invited you to vote: %{title}",poll_closed_by_user:"%{actor} closed the %{poll_type}: %{title}",poll_closing_soon:"%{poll_type} closing in 24 hours: %{title}",poll_closing_soon_author:"Your %{poll_type} is closing in 24 hours: %{title}",poll_created:"%{actor} started a %{poll_type}: %{title}",poll_edited:"%{actor} updated the %{poll_type}: %{title}",poll_expired:"%{poll_type} has closed: %{title}",poll_expired_author:"Share the outcome of your %{poll_type}: %{title}",poll_option_added:"%{actor} added options to %{title}",poll_reopened:"%{actor} reopened the %{poll_type}: %{title}",poll_reminder:"%{actor} is reminding you to vote on %{title}",poll_reminder_wip:"%{actor} is reminding you to give feedback: %{title}",reaction_created:"%{actor} reacted %{reaction} to your %{model} in %{title}",stance_created:"%{actor} voted in: %{title}",stance_updated:"%{actor} voted in: %{title}",stance_created_option:"%{actor} voted %{option} in %{title}",user_added_to_group:"%{actor} added you to the group: %{title}",user_mentioned:"%{actor} mentioned you in: %{title}",user_reminded:"%{actor} is reminding you to vote in: %{title}"},without_title:{unknown_sender:"Please review email from unrecognised sender",discussion_announced:"%{actor} invited you to a thread",discussion_edited:"%{actor} edited the thread context",discussion_closed:"%{actor} closed the thread",group_announced:"%{actor} invited you to a group",comment_replied_to:"%{actor} replied to you",new_discussion:"%{actor} started a thread",new_comment:"%{actor} commented in a thread",membership_created:"%{actor} invited you to join a group",membership_resent:"%{actor} invited you to join a group",membership_requested:"%{actor} requested to join your group",membership_request_approved:"%{actor} approved your request to join %{title}",outcome_announced:"%{actor} shared a %{poll_type} outcome",outcome_created:"%{actor} shared a %{poll_type} outcome",outcome_updated:"%{actor} updated the outcome",outcome_review_due:"It's time to review the %{poll_type} outcome",poll_announced:"%{actor} invited you to vote on a %{poll_type}",poll_announced_wip:"%{actor} wants your feedback on a %{poll_type}",poll_closed_by_user:"%{actor} closed the %{poll_type}",poll_closing_soon:"%{poll_type} closing in 24 hours",poll_closing_soon_author:"Your %{poll_type} is closing in 24 hours",poll_created:"%{actor} started a %{poll_type}",poll_edited:"%{actor} updated the %{poll_type}",poll_expired:"%{poll_type} has closed",poll_expired_author:"Share the outcome of your %{poll_type}",poll_option_added:"%{actor} added options to the %{poll_type}",poll_reopened:"%{actor} reopened the %{poll_type}",poll_reminder:"%{actor} is reminding you to vote",poll_reminder_wip:"%{actor} is reminding you to give feedback",reaction_created:"%{actor} reacted %{reaction} to your %{model}",stance_created:"%{actor} voted",stance_updated:"%{actor} voted",stance_created_option:"%{actor} voted %{option}
9",user_mentioned:"%{actor} mentioned you",user_reminded:"%{actor} is reminding you to vote"},hints:{poll_closing_soon:"Now is a good time to vote, change your mind or encourage others to participate.",poll_closing_soon_author:"You may wish to remind people to vote or extend the deadline.",outcome_review_due:"Consider starting a feedback poll or a new thread inviting reflections on how the decision has been implemented."}},discussion_fork_actions:{helptext:"Select items you'd like to move to another thread",move:"Move",search_placeholder:"Find thread by title",moved:"Moving comments, this might take a moment",move_to_existing_thread:"Move to existing thread",start_new_thread:"Or, start new thread"},thread_template:{browse_public_templates:"Browse template gallery",thread_template_settings:"Thread template settings",start_a_new_thread:"Start a new thread",thread_template_saved:"Thread template saved",these_are_public_templates:`These templates are available for you to copy or modify to suit your group 10`,these_are_templates:`These are the thread templates in your group. Templates guide you through common decision-making processes. 11`,default_title_label:"Default title",default_title_hint:"Prefill the title field with editable text. This is optional - leave blank if unsure.",title_placeholder_label:"Example title",title_placeholder_hint:"An example to display in the background of the title field",title_placeholder_placeholder:"e.g. This is what background text looks like",example_description_label:"Example description",example_description_placeholder:"Provide a template that people can use to start a thread with",hidden_templates:"Hidden templates",confirm_delete:"Are you sure you want to permanently delete this thread template? No threads will be deleted as a result of this.",add_proposal_or_poll_template:"Add proposal or poll template",recommended_proposal_or_poll_templates:"Recommended proposal or poll templates",decision_templates:"Decision templates",decision_templates_help:"Select any proposal or poll templates that help to complete this process.",share_in_template_gallery:"Share this template in the public template gallery"},discussion_form:{thread_templates:"Thread templates",new_thread_template:"New thread template",edit_thread_template:"Edit thread template",blank:"Blank",blank_subtitle:"Start a discussion and see where it takes you",new_template:"New template",new_template_subtitle:"Create an example that others can copy",to:"To",direct_thread:"Direct thread",invite_only_thread:"Invite-only thread",none_direct_thread:"Direct thread (no group)",none_invite_only_thread:"Invite-only thread (no group)",change_log_placeholder:"Optionally, describe your changes. This message will be added to the thread.",change_log_label:"What's changed?",invite:"Invite",aria_label:"Thread form",start_thread:"Start thread",messages:{created:"Thread started",updated:"Thread updated",forked:"Thread fork created"},new_discussion_title:"Start new thread",new_thread_from_template:"New thread: %{process_name}",moving_items_title:"Move items to new thread",edit_discussion_title:"Edit thread",group_label:"Group",group_placeholder:"Select a group",title_label:"Title",title_placeholder:"What is the topic you want to discuss?",context_label:"Context",context_placeholder:"Provide some context for this discussion, so people know how to participate",privacy_label:"Privacy",privacy_public:"Anyone can view this thread if they have the link",privacy_private:"Only members of the group can view this thread",privacy_organisation:"The thread will be visible to members of %{parent} and members of %{group}.",fork_notice:"A new thread will be created with %{count} items from %{title}",notify_group:"Notify group"},announcement:{send_discussion:"Send thread",send_group:"Invite people to %{name}",send_group_explain:"",send_poll:"Send %{type}",send_outcome:"Send outcome",cannot_reveal_when_anonymous:"Sorry, we cannot reveal who has or has not voted on an anonymous poll.",discussion_notification_history:"Thread notification history",group_notification_history:"Group invitation history",poll_notification_history:"Poll notification history",outcome_notification_history:"Outcome notification history",comment_notification_history:"Comment notification history",notification_history_explanation:"â indicates that the notification has been read or the email has been opened",quick_add:"Quick add:",any_other_groups:"Any other groups?",notified_people:"%{name} notified %{length} people:",preview:"Preview Email",no_notifications_sent:"No notifications have been sent",history_error:"Something went wrong! Could not load history.",inviting_guests_to_thread:"Guests do not belong to your group, and have access to this thread only",select_groups:"Select groups",search_by_name_or_email:"Search by name, or enter emails to invite",search_by_name:"Search for people by name",only_admins_can_announce:"Only admins can notify the whole group",only_admins_can_invite:"Only admins can invite guests",only_admins_can_announce_or_invite:"Only admins can notify the whole group or invite guests",user_mentioned:"
11%{name} mentioned %{length} people:",comment_replied_to:"%{name} replied to %{length} people:",new_discussion:"%{name} invited %{length} people to the thread:",discussion_announced:"%{name} invited %{length} people to the thread:",poll_created:"%{name} invited %{length} people to vote:",poll_announced:"%{name} invited %{length} people to vote:",outcome_created:"%{name} shared an outcome with %{length} people:",outcome_announced:"%{name} shared an outcome with %{length} people:",announcement_created:"%{name} invited %{length} people to the thread:",discussion_edited:"%{name} edited the thread, notifying %{length} people:",poll_edited:"%{name} edited a poll, notifying %{length} people:",outcome_edited:"%{name} edited an outcome, notifying %{length} people:",outcome_updated:"%{name} edited an outcome, notifying %{length} people:",poll_closing_soon:"%{name}'s poll closing reminder notified %{length} people:",poll_reminder:"%{name} reminded %{length} people to vote:",audiences:{group:"%{name}",everyone_in_the_group:"Everyone in the group",discussion_group:"Everyone in the thread",voters:"Everyone invited to vote",decided_voters:"Everyone who voted",undecided_voters:"Undecided voters",non_voters:"Members of %{name} not yet invited"},form:{group_has_no_members_yet:"You are the only member of your group. You may want to invite some people to your group before starting a thread or decision.",invite_people_to_evaluate_loomio:`Invite some people to your Loomio group to make a decision together 12`,too_many_invitations:`Invitation limit exceeded. <a href="%{upgradeUrl}" target="_blank">Upgrade</a> 13`,no_invitations_remaining:`<p>You have used all %{maxMembers} invitations available to this group.</p> 14<p>Next step, <a href="%{upgradeUrl}" target="_blank">choose a plan</a> to continue collaborating on Loomio.</p> 15`,invitations_remaining:'%{count} invitations remaining. <a href="%{upgradeUrl}" target="_blank">Upgrade</a>',who_to_invite:"Who would you like to invite?",invitation_message_placeholder:"A message to include in the invitation email. (optional)",invitation_message_label:"Message",invitation_message_default:`I have set up this Loomio group to help us make decisions together. Please accept my invitation. It only takes a minute to join. Thank you. 16`,group_announced:{title:"Invite to group",helptext:"Who would you like to invite to the group?"},discussion_announced:{title:"Invite to thread",helptext:"Who would you like to invite to the thread?",notify_helptext:"Who would you like to notify about the thread?"},discussion_edited:{title:"Notify of edits",helptext:"Who would you like to notify about this update? (optional)"},poll_announced:{title:"Invite to vote",helptext:"Who would you like to invite to vote?"},wip_poll_announced:{title:"Invite to give feedback",helptext:"Who would you like to invite to give feedback?"},poll_reminder:{title:"Remind to vote",helptext:"Who would you like to remind to vote?",message_label:"Message",message_placeholder:"Optional message to tell people why they should vote"},wip_poll_reminder:{title:"Remind to give feedback",helptext:"Who would you like to remind to give feedback?",message_label:"Message",message_placeholder:"Optional message to include in notification email"},poll_edited:{title:"Notify of edits",helptext:"Who would you like to notify about this update?"},outcome_announced:{title:"Share outcome",helptext:"Summarise the results of the process, including any understandings found or issues brought to light."},anyone_can_participate:"Anyone with link can participate",placeholder:"You can enter names or email addresses",type_or_paste_email_addresses_to_invite:"Type or paste email addresses to invite",notified_empty:"Nobody selected yet",single_notification:"1 notification will be sent.",multiple_notifications:"%{notified} notifications will be sent.",notified:"%{notified} people will be notified.",notified_singular:"1 person will be notified.",notified_none:"Nobody will be notified.",added:"%{count} people will be added.",added_singular:"1 person will be added.",added_none:"Nobody will be added.",group_title:"%{name} (%{count} people)",visible_to_group:"Anyone in %{group} will be able to see this thread.",visible_to_guests:"Only invited people can see this thread.",click_group_to_see_individuals:"Click group to see individuals"}
16,members_list:{title:"Shared with",last_notified:"Notified",not_notified:"Not notified yet",no_members:"This hasn't been shared with anyone yet!",group_admin:"Group admin",thread_admin:"Thread admin",last_read_at:"Last viewed %{time}",has_not_read_thread:"Has not viewed thread"},group_form:{search_placeholder:"Search for people...",modal_title:"Select group members"},flash:{success:"%{count} notifications sent"}},action_dock:{actions_menu:"Actions menu",more_actions:"More actions",react:"React",notify:"Notify",add_resource:"Add an attachment",edit_group:"Edit group context",add_comment:"Comment",copy_url:"Copy link",edit_thread:"Edit context",announce_thread:"Send thread",invite_guests:"Invite guests",translate_thread:"Translate context",edit_poll:"Edit poll",edit_poll_type:"Edit %{pollType}",new_poll_type:"New %{pollType}",move_items:"Move items",announce_poll:"Invite people to vote",announce_poll_active:"(No one has been invited yet)",translate_poll:"Translate poll",edit_stance:"Change position",translate_stance:"Translate vote",edit_comment:"Edit comment",delete_comment:"Delete comment",reply_to_comment:"Reply",fork_comment:"Fork thread",translate_comment:"Translate comment",edit_outcome:"Edit outcome",announce_outcome:"Notify people about this outcome",announce_outcome_active:"(No one has been notified of this outcome yet)",translate_outcome:"Translate outcome",show_history:"Show edit history",edited:"Edited",show_edits:"Show edits",show_notifications:"Show notifications",history:"History",pin_thread:"Pin thread",unpin_thread:"Un-pin thread",pin_event:"Pin to timeline",unpin_event:"Unpin from timeline",comment_copied:"Comment URL copied to clipboard",move_thread:"Move to group",poll_copied:"Decision URL copied to clipboard",discussion_copied:"Thread URL copied to clipboard",url_copied:"Link copied to clipboard",tag_thread:"Manage tags",close_thread:"Close thread",reopen_thread:"Re-open thread",delete_thread:"Delete thread",notification_history:"Notification history",move_item:"Move item",add_poll_to_thread:"Add to thread",count_members:"%{count} members",count_voters:"%{count} voters"},formatting:{formatting_tools:"Text formatting tools",colors:"Colors",highlight:"Highlight",alignment:"Alignment",lists:"Lists",expand:"Show more formatting tools",collapse:"Show fewer formatting tools",bold:"Bold",italicize:"Italicize",blockquote:"Quote",strikethrough:"Strikethrough",underline:"Underline",link:"Insert link",code_block:"Code block",insert_image:"Insert image",insert_emoji:"Insert emoji",attach:"Attach file",heading_size:"Heading size",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",left_align:"Left align",center_align:"Center align",right_align:"Right align",justify_align:"Justify align",paragraph:"Paragraph",bullet_list:"List",number_list:"Numbered list",check_list:"Checklist",task_list:"Task list",reset:"Reset",text_color:"Text color",background_color:"Background color",quote:"Quote",embed:"Embed video",divider:"Divider",add_table:"Add table",remove_table:"Remove table",add_column_before:"Add column before",add_column_after:"Add column after",remove_column:"Remove column",add_row_before:"Add row before",add_row_after:"Add row after",remove_row:"Remove row",merge_selected:"Merge selected cells",wysiwyg:"wysiwyg",edit_markdown:"Edit Markdown",markdown_confirm:"Some formatting may be lost converting wysiwyg content to markdown.",upload_failed:"Upload failed"},cover_photo_form:{heading:"New cover photo",upload_link:"Upload new cover photo",image_size_helptext:"Ideal image size is 1400Ã320px",upload_success:"Cover photo successfully updated"},logo_photo_form:{heading:"New group logo",upload_link:"Upload new group logo",image_size_helptext:"Ideal image size is 100Ã100px",upload_success:"Logo successfully updated"},join_group_button:{not_a_member:"You're not currently a member of this group.",join_group:"Join group",membership_requested:"Membership requested",messages:{joined_group:"You are now a member of %{group}"}},membership_request_form:{aria_label:"Membership request form",heading:"Ask to join group",name_label:"Name",email_label:"Email",introduction_label:"Why do you want to join?",submit_button:"Ask to
16join",introduction_over_limit:"Response too long",messages:{membership_requested:"You have requested to join %{group}"}},revision_history_modal:{aria_label:"Revision history",discussion_header:"Discussion edits",comment_header:"Comment edits",poll_header:"Poll edits",outcome_header:"Outcome edits",stance_header:"Vote edits",started_by:"Started by <strong>%{name}</strong>",edited_by:"Edited by <strong>%{name}</strong>",edit_by:"Edit by %{name} · %{date}",posted:"Posted",field:"Field",before:"Before",after:"After",original_text:"Original",current_revision:"Latest",closing_at_changed:"closing time set to %{time}",private_changed:"privacy set to %{private}",group_id_changed:"moved to %{name}"},reactions_input:{add_your_reaction:"Add your reaction"},reactions_display:{more_reactions:"%{count} more",you:"You",you_and_name:"You and %{name}",you_and_name_and_count_more:"You, %{name} and %{count} more",name_and_count_more:"%{name} and %{count} more"},context_panel:{thread_status:{pinned:"This thread has been pinned. It will remain at the top of the group's list of threads for all users.",closed:"This thread has been closed. It will no longer appear on the dashboard, and will be listed under 'closed' on the group page"}},delete_group_modal:{title:"Delete group",subgroup_title:"Delete subgroup",parent_body:`<h2>This is your parent group - not a subgroup!</h2> 17<br> 18If you delete this, any subgroups will also be permanently deleted. 19 20Your Loomio subscription will also be cancelled. 21 22It is highly recommended to export your group data and manually download any important files before doing this. 23Are you sure you want to continue? 24`,body:`Are you sure you want to delete this subgroup? 25All threads, polls, files and other group content will be permanently deleted. 26It is recommended that you export the group data and manually download any important files before you continue. 27`,confirm:"Type '%{name}' to confirm you want to delete this group.",success:"This group has been archived and is scheduled for permanent deletion in 2 weeks."},group_page:{stats:"Group stats",threads:"Threads",polls:"Polls",decisions:"Decisions",members:"Members",files:"Files",settings:"Settings",subgroups:"Subgroups",show_opened:"%{count} Open",show_closed:"%{count} Closed",no_threads_here:"No threads to see here!",search_threads:"Search for threads...",private_threads:"You'll need to be a member to view private threads in this group",no_more_threads:"No more threads to load",view_closed_threads:"View closed threads",messages:{privacy:{members:"This group is now visible only to members",parent_members:"This group is now visible only to members of your organization",public:"This group is now visible to the public"},leave_group_success:"You have left this group",archive_group_success:"This group has been deactivated"},group_logo:"Group logo",new_photo:"new photo",new_cover_photo:"Upload new cover photo",new_group_logo:"Upload new group logo",open_discussions:"Open threads",closed_discussions:"Closed threads",discussions_placeholder:"A thread is where everyone can discuss a topic and make decisions together.",members_placeholder:"You're the only one here: invite some people to join you!",member_options:"Member options",see_all_members:"See all %{count} members",pending_invitations:"+ %{count} pending",subgroups_placeholder:"Subgroups give teams their own space and keep notifications focused to the right people.",invite_people:"Invite",visibility_label:"Visibility",options_label:"Options",options:{label:"Options",edit_group:"Edit group settings",become_coordinator:"Become admin",export_data:"Export group data",export_data_as_json:"Export group data as JSON",export_data_as_csv:"Export group data as CSV",export_data_as_html:"Export group data as HTML",manage_members:"Manage Members",add_subgroup:"Add Subgroup",manage_subscription:"Manage group subscription",email_settings:"Email preferences",leave_group:"Leave group",deactivate_group:"Deactivate group",subscription_status:"Subscription status"},volume:{loud:"Email whenever there is activity.",loud_aria_description:"Your notification volume for this group is set to Loud. You will be emailed whenever there is activity.",loud_message:'You will be emailed about all activity in "%{name}."',normal:"Just email important activity: New threads and proposals, outcomes etc.",normal_aria_description:"Your notification volume for this group is set to Normal. You will just be emailed important activity, such as when someone starts a new thread, raises a proposal, or sets an outcome.",normal_message:'You will only be emailed about important events in "%{name}".',quiet:"Don't email about this group. Activity will be displayed on the dashboard.",quiet_aria_description:"Your notification volume for this group is set to Quiet. You won't be emailed about activity in this group. Group activity will be displayed on your Dashboard.",quiet_message:`You won't be emailed about activity in "%{name}".`,mute:"Hide this group from the dashboard and do not notify unless @mentioned.",mute_aria_description:"Your notification volume for this group is set to Mute. You won't be emailed unless someone mentions you, and group activity will not be displayed on your Dashboard.",mute_message:'"%{name}" has been removed from your dashboard.'},privacy:{private:"Privacy: This group is only visible to members",parent_members:"Privacy: This group is visible to members of %{parentGroupName} and members of %{groupName}",public:"Privacy: This group is visible on the web",aria_label:"Group privacy: %{privacy}"}},export_data_modal:{title:"How do you want to use your data?",as_csv:"Open it in a spreadsheet",as_html:"Open it in a browser",as_json:"Host this group on my own server"},description_card:{title:"Group description",placeholder:"Group admins can use this area to describe the groupâs purpose, so everyone knows why they are here.",messages:{description_updated:"Description updated"}},leave_group_form:{aria_label:"Leave group",title:"Leave group",question:"Are you sure you want to leave this group?",submit:"Yes, leave this group"},archive_group_form:{aria_label:"Deactivate group",title:"Deactivate group",question:"Are you sure you want to deactivate this group?",submit:"Yes, Deactivate this group"},group_form:{thread_defaults_help:"Default settings for new threads",click_to_change_image:"Click to change the cover image (4x1) or logo (1x1)",change_cover_image:"change cover image",change_logo:"change logo",permissions_explaination:`There are two levels of membership a person can have to a group: admin and member. 28Admins can edit group settings, make other people admins, and perform all the actions listed below. 29`,aria_label:"Group form",parent_group:"Parent group",new_organisation:"New organization",new_group:"New group",new_subgroup:"New subgroup",new_group_explainer:"Start a new Loomio group for your organization",new_subgroup_explainer:"Start a subgroup within an existing group - a private space for a team of people from the organization",start_group_heading:"Start a group",start_subgroup_heading:"Start a subgroup",edit_group_heading:"Edit group settings",edit_subgroup_heading:"Edit subgroup settings",group_settings:"Group settings",subgroup_settings:"Subgroup settings",group_name:"Group name",subgroup_name:"Subgroup name",organization_name:"Organization name",handle:"Handle",group_handle_placeholder:"For your group URL and email: %{host}/%{handle}, %{handle}@%{host}",start_organization_heading:"New organization",edit_organization_heading:"Edit organization settings",group_name_placeholder:"What is the name of your group?",subgroup_name_placeholder:"What is the name of your subgroup?",organization_name_placeholder:"What is the name of your organization?",description:"Description",description_placeholder:"Describe the purpose of your group so your group members know why they are here.",new_description_placeholder:"Why are you trialing Loomio? What decisions do you need to make together?",new_description_html:`<h3 id="how-do-you-intend-to-use-loomio">How do you intend to use Loomio?</h3><p></p><h3 id="why-is-this-important-for-your-group">Why is this important for your group?</h3><p></p><h3 id="what-decisions-do-you-need-to-make">What decisions do you need to make?</h3><p></p> 30`,secret_by_default:"Your group will only be accessible by those who are invited to join. You can change this later.",privacy_statement:{public_on_web:"Name, description, and attachments to the group context will be visible to the public",private_to_group:"Name and description will only be visible to members.",private_to_parent_members:"Name and description will be visible to members of %{parent}"},privacy:"Privacy",group_privacy_is_open_description:"Publicly listed. All threads are public.",group_privacy_is_closed_description:"Unlisted. Anyone with the link can ask to join. All threads are private.",group_privacy_is_closed_public_threads_description:"Unlisted. Anyone with the link can ask to join. Threads can be public or private.",group_privacy_is_secret_description:"Only invited people can find the group. All threads are private.",confirm_change_to_secret:"If you proceed, all threads in this group and its subgroups will be made private.",confirm_change_to_secret_subgroup:"If you proceed, all threads will be made private.",confirm_change_to_public:"If you proceed, all threads in this group will be made public on the web.",confirm_change_to_private_discussions_only:"If you proceed, any public threads in this group will be made private.",profile:"Profile",subgroup_privacy_is_open_description:"Anyone can find this subgroup and ask to join. Only members can see who is in the group. All threads are public.",subgroup_privacy_is_closed_description:"Anyone can find this subgroup and ask to join. Only members can see who is in the group. All threads are private.",subgroup_privacy_is_closed_public_threads_description:"Anyone can find this subgroup and ask to join. Only members can see who is in the group. Threads can be public or private.",subgroup_privacy_is_closed_
30secret_parent_description:"Members of %{parent} can find this subgroup and ask to join. All threads are private. Only members can see who is in the group.",subgroup_privacy_is_secret_description:"Only invited members can find this subgroup, see who is in it and see threads.",advanced_settings:"Advanced settings",how_do_people_join:"How do people join?",membership_granted_upon_request:"Anyone can join the group.",membership_granted_upon_approval:"Anyone can request to join but must be approved.",membership_granted_upon_invitation:"Invitation only.",membership_granted_upon_approval_secret_parent:"<strong>By request</strong> anyone from %{parent} can ask to join the group.",permissions:"Permissions",thread_privacy:"Thread privacy",public_threads:"Public threads only",public_discussions_subgroup:"Anyone in %{parentGroupName} can see discussions",public_or_private_threads:"Allow public and private threads",private_threads:"Only members can see discussions",allow_public_threads:"Allow public threads in this group.",parent_members_can_see_discussions:"Members of %{parent} can see private threads",parent_members_can_see_discussions_help:"Allow members of the parent group to see, but not participate in, threads and polls within this group",members_can_announce:"Members can notify everyone in the group",members_can_announce_help:"Allow members to notify everyone in the group about a thread or poll",members_can_add_members:"Members can invite members",members_can_add_members_help:"Allow members to invite people to join this group",members_can_add_guests:"Members can invite guests",members_can_add_guests_help:"Allow members to invite guests into threads or polls in this group",members_can_create_subgroups:"Members can create subgroups",members_can_create_subgroups_help:"Allow members to create and become admins of new subgroups",members_can_edit_discussions:"Members can manage threads and comments",members_can_edit_discussions_help:"Allow members to edit, move, pin, tag or close threads",members_can_edit_comments:"Members can edit their own comments",members_can_edit_comments_help:"Allow members to edit their own comments at any time",members_can_delete_comments:"Members can delete their own comments",members_can_delete_comments_help:"Allow members to delete their own comments from threads",members_can_start_discussions:"Members can start new threads",members_can_start_discussions_help:"Allow members to
30start new threads within the group",members_can_raise_motions:"Members can start polls",members_can_raise_motions_help:"Allow members to start polls and proposals within discussions or the group",admins_can_edit_user_content:"Admins can edit members' comments",admins_can_edit_user_content_help:"Allow admins to edit content written by members",submit_start_group:"Start group",submit_start_subgroup:"Start subgroup",submit_update:"Update settings",messages:{group_created:"Group started",group_updated:"Group updated"},upload_logo:"Upload logo",upload_cover_photo:"Upload cover photo"},group_export_modal:{title:"Export group data",body:`<p> 31 You may download a copy of your group's data at any time. 32 <a href="https://help.loomio.org/en/user_manual/groups/data_export/">Find out more.</a> 33</p> 34<p> 35 It takes a few minutes to complete, depending on the size of your group. 36 When it's ready you'll receive an email with a link to download the file. 37</p> 38`,submit:"Start export",flash:"Group data export started"},membership_requests_card:{heading:"Membership Requests",manage_requests:"Manage requests",manage_requests_with_count:"Manage requests (%{count})"},membership_requests_page:{heading:"Membership Requests",approve:"Approve",ignore:"Ignore",no_pending_requests:"There are currently no pending membership requests for this group.",no_previous_requests:"There are currently no previous membership requests for this group.",previous_requests:"Previous Requests",previous_request_response:"%{response} by %{responder} ",messages:{request_approved_success:"Membership request approved",request_ignored_success:"Membership request ignored"}},invitation_form:{group_url:"Group URL",reusable_invitation_link:"Reusable invitation link",error:"Error when trying to copy to clipboard",aria_label:"Invitation form",invite_people:"Invite people",invite_guests:"Invite guests",notify_people:"Notify people",invite_people_to_group:"Invite to %{name}",group:"Group",group_placeholder:"Select a group",shareable_link:"Shareable link",share_group:"Share your group",copy_link:"Copy",email_addresses:"Email addresses",email_addresses_placeholder:"e.g. [email protected], [email protected]",secret_group_url_explanation:"This is the address for your group. Only invited members will be able to see the group.",shareable_group_url_explanation:"You can share this link publicly. People can request to join and you can approve or ignore requests.",shareable_invitation_explanation:"Do not share this link publicly. Anyone with it can join your group without your approval. Share this only within private communications to allow people in your organization to join.",shareable_link_reset:"Shareable link reset. The previous link will no longer work.",email_explanation:"Alternatively, enter email addresses below to send invitations by email.",add_custom_message:"Make your invite personal, ",add_custom_message_link:"add a custom message.",custom_message:"Custom message",custom_message_placeholder:"Enter a personal message to include with the invitation.",add_members:"Add members",from_parent_group:"from %{name}.",send:"Send",done:"Done",messages:{invitation_sent:"Invitation sent.",invitations_sent:"%{count} invitations sent.",no_invitations:"Uhoh! Please verify the email address is correct and try again.",max_invitations:"If you want to send more than 100 invitations, use a team link."}},memberships_page:{members:"Members",name_label:"Name",coordinator_label:"Admin",remove_member_label:"Remove",fragment_placeholder:"Filter users by name or username...",only_one_admin:"There is only one admin in this group. It's recommended that you appoint at least one more member as an admin.",messages:{remove_member_success:"Removed %{name}",make_admin_success:"%{name} is now an admin",remove_admin_success:"%{name} is no longer an admin"},remove_admin_from_self:{question:"Are you sure you no longer want to be an admin?"}},membership_remove_modal:{invitation:{title:"Cancel invitation",message:"Are you sure you want to cancel the invitation to %{name}?",flash:"Invitation cancelled",submit:"Cancel invitation"},membership:{title:"Remove member",message:"Are you sure you want to remove %{name}?",impact_for_subgroup:"This will remove their access to the subgroup (including threads and polls), but they will remain a member of the parent group.",impact_for_group:"This will remove their access to the group (including threads and polls) and any subgroups.",flash:"Member removed",submit:"Remove member"}},memberships_panel:{add_coordinator:"Make Admin",remove_coordinator:"Demote admin"},membership_form:{modal_title:{group:"Set title"},title_helptext:{group:"This title will appear beside %{name}'s name within this group. Use it to let people know their role."},title_label:"title",title_placeholder:"E.g. 'Coordinator', or 'Facilitator'",updated:"Membership title updated"},user_name_modal:{user_name_updated:"User name updated",set_user_name:"Set user name"}
38,user_page:{contact_user:"Contact %{name}",location_field:"Location: %{value}",locale_field:"Language: %{value}",online_field:"Online: %{value}",invited:"Invited %{value}",message_user:"Message %{name}"},contact_request_form:{modal_title:"Email %{name}",message_placeholder:"Introduce yourself and share why you'd like to make contact.",helptext:"%{name} will be emailed your name, email address, and message",email_sent:"Email sent to %{name}"},profile_page:{autodetect_time_zone:"Autodetect time zone",account_is_bot:"This is a bot account",bot_account_warning:"Bot accounts will not be invited to vote in polls or participate in discussions",incomplete_profile:"Incomplete profile!",set_your_profile_picture:"Set your profile picture",messages:{updated:"Profile updated",picture_changed:"Profile picture updated",password_changed:"Password updated",deactivated:"Account deactivated"},deactivated_user:"Deactivated user",date_time_pref_label:"Date and time format",merge_accounts:"Merge accounts",change_picture_link:"Change picture",change_password_link:"Reset password",delete_account:"Permanently Delete account",delete_user_link:"Delete account",profile:"Profile",edit_profile:"Edit Profile",picture_label:"Picture",name_label:"Name",username_label:"Username",username_helptext:"All lowercase letters and numbers, maximum 30 characters",email_label:"Email",short_bio_label:"Introduction",locale_label:"Language",short_bio_placeholder:"Please introduce yourself, include areas of expertise, topics of interest, and any affiliated organizations",locale_placeholder:"Select your preferred language",location_label:"Location",location_placeholder:"Where are you based?",update_profile:"Update profile",deactivate_account:"Deactivate user account",updated_on_sign_in:"Provided by your browser and updated when you sign in"},text_editor:{x_of_y_characters:"%{x} / %{y} characters",select_text_to_link:"Select text to link and try again",insert_link:"Insert link",insert_embedded_url:"Embed video"},change_picture_form:{aria_label:"Profile photo form",title:"Set profile photo",helptext:'You can upload your own profile picture, or if you have a <a href="https://en.gravatar.com/support/whatisgravatar/">Gravatar</a> account, you can use that.',use_initials:"Use initials",use_gravatar:"Use Gravatar",use_uploaded:"Upload new photo",existing_upload:"Existing upload",use_provider:"Use %{provider} photo"},change_password_form:{set_password_title:"Set your password",set_password_helptext:"Please enter a password - minimum 8 characters",set_password:"Set password",password_changed:"Your password has been updated"},deactivation_modal:{introduction:"When you delete your account:",you_will_be_deleted:"Your user account including your name, email address and other personally identifying data will be deleted from our systems.",name_removed:"Comments, proposals and discussions youâve made will remain but your name will be removed from them",no_longer_group_member:"You will no longer be listed as a member of any groups",no_emails:"You will no longer receive notification emails",submit_delete:"Delete my account now"},email_settings_page:{monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday",every_day:"Every day",every_second_day:"Every second day",never:"Off",header:"Notification settings",account_deactivated:"Your account has been deactivated. You will not receive any emails, ever.",deactivate_header:"Stop all emails forever",deactivate_description:"If you never want to get another email from us ever again, you can deactivate your user account.",email_newsletter:"Loomio Newsletter",email_newsletter_description:"Get updates about new features, training, events in your city and the future of Loomio. Usually 2 or 3 emails per year.",email_catch_up_day:"Catch-up summary email",daily_summary_description:`Choose when to receive the catch-up summary email. This email contains any new activity that you have not seen. A good way to stay up-to-date if you're not a regular user. 39`,on_participation_label:"Subscribe on participation",on_participation_description:"When you participate in a thread, all further activity will be emailed to you immediately.",announcement_label:"Announcements",announcement_description:"You will receive an email about all content that has been announced by people in your groups",mentioned_label:"Mentions & Replies",mentioned_description:"When someone @mentions you in a comment or replies to you, you'll get a notification email",update_settings:"Save changes",specific_groups:"Settings for specific groups",default_settings:{loud_description:"When you join a new group, you will be emailed <strong>whenever there is activity</strong>.",normal_description:"When you join a new group, you will be emailed about <strong>new threads and proposals</strong>.",quiet_description:"When you join a new group, you <strong>won't be emailed about activity</strong>."},edit:"Edit",messages:{updated:"Email settings updated"},learn_more:"Learn more about email settings..."},thread_preview:{replies_count:"%{count} replies",unread_count:"%{count} unread"},dashboard_page:{aria_label:"Dashboard",polls_to_vote_on:"Polls to vote on",no_polls_to_vote_on:"There are no polls you need to vote on",re
39cent_polls:"Recent polls",current_polls:"Current polls",recent_threads:"Recent threads",no_groups:{show_all:'Welcome! You are not a member of any groups yet. <a href="/explore">Browse public groups</a> or <a href="/g/new">Start a group</a>.',show_muted:"You don't have any muted threads because you are not a member of any groups."},no_threads:{show_all:"You don't have any recent threads.",show_proposals:"There are no proposals currently active.",show_muted:"You don't have any muted threads."},view_recent:"View all recent threads?",load_more:"Load more threads",mark_as_read:"Mark as read",dismiss:"Dismiss",thread_dismissed:"Thread marked as read",thread_recalled:"Thread recalled",explain_mute:{title:"You haven't muted any threads yet.",explanation_html:`Muting is a way to hide or silence threads you're not interested in. 40Muting means you won't see it in <strong>Recent</strong> or <strong>Unread</strong>, and you won't be notified about activity in that thread, like proposals. 41You'll only be alerted if someone <strong>@mentions</strong> your name. 42`,instructions:"To mute a thread, hover over it and click the mute icon.",see_muted_html:'To see your muted threads, click <strong>"Muted"</strong>. You can unmute by hovering and clicking the same icon.'},filtering:{filter_threads:"Filter Threads",filter_threads_aria_label:"Filter Threads",dropdown_heading:"Filter dashboard",all:"Recent Threads",all_aria_label:"Currently showing recent threads",all_description:"View recent threads",proposals:"Proposals",proposals_aria_label:"Currently showing threads with active proposals",proposals_description:"View only threads with active proposals",muted:"Muted Threads",muted_aria_label:"Current showing muted threads",muted_description:"View only threads which have been muted"},thread_preview:{you_voted:"You voted %{position}",undecided:"You are undecided"},threads_from:{group:"Threads from",pinned:"Pinned threads",proposals:"Threads with active decisions",starred:"Starred threads",today:"Today",yesterday:"Yesterday",thisweek:"This week",thismonth:"This month",older:"Older than a month"}},threads_page:{no_direct_threads:"You have no direct threads",no_invite_only_threads:"You have no invite-only threads"},inbox_page:{no_threads:"Woohoo! You've read all the threads in your inbox.",unread_threads:"Unread Threads",view_more:"View More",no_groups:{explanation:"You have no unread threads because you are not a member of any groups.",start:"Start",or:"or",join_group:'<a href="/explore">join</a> a group to see threads.'}},discussion:{invite_only:"Invite-only",private_thread:"Private thread",max_threads_reached:`<p>You have used all %{maxThreads} threads available to this group.</p> 43<p>Next step, <a href="%{upgradeUrl}" target="_blank">choose a plan</a> to continue collaborating on Loomio.</p> 44`,subscription_canceled:`<p>Your subscription is not active.</p> 45<p>Please <a href="%{upgradeUrl}" target="_blank">upgrade</a> to continue using Loomio.</p> 46`,activity:"Activity",activity_placeholder:"No activity yet!",load_previous:"Load earlier activity",started_by:"Started by <strong>%{name}</strong>",pin:{pinned:"Thread pinned",unpinned:"Thread unpinned"},volume:{mute_message:"Thread muted",unmute_message:"Thread unmuted"},closed:{reopened:"Thread reopened",closed:"Thread closed"}},discussion_last_seen_by:{title:"Seen by",no_one:"No one has seen this yet",disabled_anonymous_polls:"Viewer history is disabled because thread contains anonymous polls"},activity_card:{count_responses:"%{count} responses",event_pinned:"Pinned to timeline",event_unpinned:"Unpinned from timeline",beginning:"Beginning",end:"End",unread:"Unread (%{count})",latest:"Latest",context:"Context",chronological:"Chronological",nested:"Nested",attachment_display:{aria_label:"File attached:",image_alt:"Attached image"},n_previous:"Load %{count} previous responses",n_more:"Load %{count} responses",add_comment:"Add comment",add_poll:"Add poll",add_outcome:"Add outcome",comment:"Comment",facilitate:"Facilitate",start_decision:"Start decision",start_vote:"Start vote"},thread_group:{aria_label:"Group name"},thread_context:{current_poll_type_banner:"Current %{pollType}",item_maybe_deleted:"Cannot find the requested location within the thread. It may have been deleted.",aria_label:"Thread context",thread_options:"Thread options",email_settings:"Notification settings",edit:"Edit",edit_thread:"Edit",close_thread:"Close",reopen_thread:"Reopen",pin_thread:"Pin",unpin_thread:"Unpin",mute_thread:"Mute",move_thread:"Move",print_thread:"Print",delete_thread:"Delete",add_comment:"Comment",seen_by_count:"Seen by %{count}",count_notified:"Notified %{count}",forked_from:"Forked from"},pin_thread_modal:{title:"Pin thread",helptext:"Pinned threads always appear at the top of their group's list of threads. They can be used to inform members of important announcements, or to promote common material like a code of conduct or community guidelines.",helptext_two:"You may remove pins at any time by selecting 'Unpin' from the thread dropdown",pin_thread:"Pin thread"},thread_arrangement_form:{edit:"Edit layout",title:"Thread layout",for_everyone:"This changes the layout for everyone, not just you.",sorting:"Oldest or Newest first?",latest:"Newest",latest_description:"Read the newest items first",earliest:"Oldest",earliest_description:"Catch up on older comments before seeing newer ones",replies:"How to display replies?",linear:"Flat list",linear_description:"Items listed as they happened, one after the other.",nested_once:"Nest replies - first reply only",nested_once_description:"Indent replies under original comment",nested_twice:"Two levels of nested replies",nested_twice_description:"Indent replies at most two times.",changing_nesting_is_slow:"Changes to nesting can take a couple of minutes to process."},delete_thread_form:{aria_label:"Delete thread",title:"Delete thread",body:"Are you sure you want to delete this thread?",confirm:"Delete thread",messages:{success:"Thread deleted"}},move_thread_form:{aria_label:"Move thread",title:"Move thread",body:"Destination group",confirm:"Move thread",confirm_change_to_private_thread:"%{groupName} is an open group. If you proceed, this thread will be made public.",messages:{success:"Thread has been moved to %{name}"}},delete_comment_dialog:{title:"Delete comment",question:"This will permanently delete this comment. If you proceed, it cannot be restored."},contact_message_form:{alt_title:"Contact Loomio Support",need_message:"Please enter a message so we can help you :-)",respond_asap:"Send a message to the Loomio team and we'll respond as soon as we can.",happy_to_help_with:"We're happy to help with sales enquiries, support requests, feature requests, reporting bugs or issues you're experiencing.",title:"Hi there! How can we help?",contact_us_email:'You can also email us: <a href="mailto:%{email}">%{email}</a>',contact_us:"Contact Us",name_label:"Your name",name_placeholder:"Enter your name...",subject_label:"Subject",subject_placeholder:`Eg: Trouble signing in, or Feature suggestion 47`,email_label:"Your email address",email_placeholder:"Enter your email address...",message_label:"Your message",message_placeholder:"If requesting support please try to provide as much information as you can.",send_message:"Send Message",new_contact_message:"Thanks for getting in touch; we'll get back to you soon!",consent_message:`By contacting us you consent to our staff accessing your account as necessary. <br /> 48Our support team speak English and will translate your message with Google Translate if required. <br /> 49We aim to respond to all messages within 24 hours. 50`,success:"Thanks for your message, %{name}. You'll hear back from us soon.",success_via_email:"Thanks for your message, %{name}. We'll respond via email within 24 hours."},explore_page:{header:"Explore groups",search_placeholder:"Search for public groups",single_search_result:"1 public group matching <strong>%{searchTerm}:</strong>",multiple_search_results:"%{resultCount} public groups matching <strong>%{searchTerm}:</strong>",no_results_found:"<strong>Can't find the group you're looking for?</strong> If a group's privacy is set to 'secret', it won't appear here.",newest_first:"Newest first",biggest_first:"Biggest first",order_by:"Order groups by"},global:{messages:{app_update:"A new version of Loomio has been released. Please save your work and reload.",reload:"Reload"}},decision_tools_card:{choose_type:"Choose poll type",title:"Facilitate",recommended:"Recommended",question_title:"Question round",advice_title:"Advice",consent_title:"Consent",consensus_title:"Consensus",proposal_title:"Proposal",count_title:"Opt-in",check_title:"Sense check",poll_title:"Poll",meeting:"Meeting",score_title:"Score poll",dot_vote_title:"Dot vote",meeting_title:"Time poll",ranked_choice_title:"Ranked choice",gradients_of_agreement_title:"Gradients of agreement"},poll_option_form:{edit_option:"Edit option",option_name:"Option name",option_name_hint:"A short name for this option",option_name_val
50idation:"It's best to keep the name short and put detail in the 'Meaning' field",icon:"Icon",meaning:"Meaning",meaning_hint:"A sentence or two explaining what choosing this option means. Optional",prompt:"Reason prompt",prompt_hint:"A question to prompt voters to share their reasoning or reconsider their position. Optional"},poll_common:{superseded:"Superseded",outdated:"Outdated",need_help_with_templates:"Need help creating your own decision templates?",categorize_poll_templates:"Categorize poll templates",show_all_templates_in_one_list:"Show all templates in one list",advice_process:"Advice process",consent_process:"Consent process",consensus_process:"Consensus process",question_round:"Question round",edit_template:"Edit template",proposal:"Proposal",run_process:"Run process",proposal_templates:"Proposal templates",custom:"Custom",custom_process:"Custom process",custom_poll:"Custom poll",delete_poll:"Delete poll",select_count_options:"Select %{count} options",select_minimum_to_maximum_options:"Select %{minimum} to %{maximum} options",custom_poll_types:"Custom poll types",hidden_poll_templates:"Hidden poll templates",poll_template:"Poll template",poll_template_saved:"Poll template saved",poll_templates:"Poll templates",poll_types:"Poll types",new_proposal_template:"New proposal template",edit_proposal_template:"Edit proposal template",new_poll_template:"New poll template",edit_poll_template:"Edit poll template",new_poll_type:"New poll type",edit_poll_type:"Edit poll type",new_custom_poll:"New custom poll",edit_custom_poll:"Edit custom poll",create_a_custom_poll_type:"Create a new poll type with custom terminology and settings",create_a_custom_process:"Create a new process with your own terminology and options",create_a_custom_poll:"Create a poll with custom terminology and settings",decision:"Decision",decision_templates:"Decision templates",remove_your_vote:"Remove your vote",remove_your_response:"Remove your response",vote_now:"Vote now",review_due:"Review due",have_your_say:"Have your say",your_response:"Your response",change_your_response:"Edit response",please_vote:"Please vote",reason:"Reason",response:"Response",reason_placeholder:"Briefly explain why you voted this way, then click 'Submit Vote'",message:"Message",results:"Results",current_results:"Current results",responses:"Responses",close_poll_type:"Close %{pollType}",close_early:"Close early",totals:"Totals",participate:"Participate",vote:"Vote",votes:"Votes",update_outcome:"Update outcome",outcome:"Outcome",outcomes:"Outcomes",statement:"Statement",change_your_stance:"Edit response",load_more:"Load more",details:"Details",participant_name:"Your name",participant_email:"Email address",submit_vote:"Submit vote",submit_response:"Submit response",update_vote:"Update vote",update_response:"Update response",share_poll:"Share poll",share_proposal:"Share proposal",share_count:"Share check",start_poll:"Start a decision",publish_poll:"Share poll",share_outcome:"Share outcome",view_all:"View all",save_changes:"Save",change_vote:"Change your vote",change_response:"Change your response",max_score:"Maximum score",min_score:"Minimum score",too_long:"Too long",edit_warning:"Editing is only recommended for minor changes or fixing spelling errors. For significant changes, close this %{pollType} and start a new one.",no_voting:"For discussion only, voting disabled"},poll_common_attachment_form:{label:"Attachments"},poll_common_add_option:{button:{add_option:"Add another option"},modal:{title:"Add an option"},form:{add_options:"Add options",options_added:"New options added"}},poll_common_card:{show_results:"Show results",hide_results:"Hide results",until_vote:"Until vote is cast",until_you_vote:"Until you vote",until_poll_type_closed:"Until %{pollType} is closed",until_voting_is_closed:"Until voting is closed",deleted:"This poll has been deleted"},discussions_panel:{open:"Open",all:"All",unread:"Unread (%{count})",closed:"Closed",include_subgroups_mine:"%{name} and my subgroups",include_subgroups_all:"%{name} and all subgroups",no_results_found:'No results for "%{search}"',welcome_to_your_new_group:"Welcome to your new Loomio group!",lets_start_a_thread:`Let's start a thread. Click "New thread" to continue.`},members_panel:{bot:"Bot",no_results:"No members found",everyone:"Everyone",all:"All",sort:"Sort",order_label:"Order",order_by_name:"Name",order_by_created:"Oldest",show_users_in_subgroups:"Show users in subgroups as well",order_by_created_desc:"Newest",order_by_admin_desc:"Admins",loaded_of_total:"%{loaded} of %{total}",view_requests:"View requests",header_name:"Name",header_username:"Username",header_role:"Role",header_invited_by:"Invited by",header_invited:"Invited",header_actions:"Actions",directory:"Directory",invitations:"Invitations",requests:"Requests",admin:"Admin",guest:"Guest",sharable_link:"Shareable Link",last_seen:"Last seen %{date}",invited_by_name:"Invited by %{name}",accepted:"Members"},polls_panel:{new_poll:"New poll",any_type:"All types",any_status:"Any status",all:"All",open:"Open",closed:"Closed",need_vote:"Need Vote",no_polls:"No polls found"},group_files_panel:{no_files:"No files found",filename:"Filename",uploaded_by:"Uploaded by",uploaded_at:"Uploaded at",delete_confirmation:`Are you sure you want to delete this attachment? It will be removed from any associated comment or thread. This cannot be undone. 51`},subgroups_panel:{search_subgroups_of_name:"Search subgroups of %{
51name}",group_without_subgroups:"%{name} without subgroups"},poll_common_action_panel:{from_the_thread:"From the thread template",from_the_group:"From the group",default_templates:"Default templates",default_template:"Default template",custom_template:"Custom template",default_poll_types:"Default poll types",suggested_templates:"Suggested templates",group_templates:"Group templates",basic_templates:"Basic templates",anonymous:"Votes are anonymous",results_hidden_until_closed:"Results will be shown after voting has closed",results_hidden_until_vote:"Results will be shown after you vote",unable_to_vote:"You have not been invited to vote in this %{poll_type}",draft_mode:"Voting disabled. This is not open for voting yet.",voting_disabled_poll_is_template:"Voting disabled. This is a template."},poll_common_collapsed:{by_who:"by %{name}"},poll_common_calendar_invite:{calendar_invite:"Include a calendar invitation with this outcome",poll_option_id:"Meeting time",helptext_on:"Users will be able to add this meeting to their calendar",helptext_off:"No meeting invite will be sent",event_duration:"Duration",event_summary:"Meeting name",event_summary_placeholder:"What would you like to call this meeting?",event_description:"Meeting description",event_description_placeholder:"What is the agenda for this meeting?",location:"Location",location_placeholder:"Where will this meeting take place?"},poll_common_settings:{who_can_vote:"Who can vote?",short_reason_can_be_helpful:"Keeping vote reasons short makes them easier to understand. A collection of concise reasons is a great resource for making a decision.",specified_voters_only_true:"Invited people only",specified_voters_only_false_group:"Anyone in the group",specified_voters_only_false_discussion:"Anyone in the thread",invite_people_next:"You can choose who is invited to vote after you start the %{poll_type}",shuffle_options:{shuffle_options:"Shuffle options",title:"Show options in random order",helptext:"An option being first on the list can give it a bias. Use this setting to counter that effect."},multiple_choice:{title:"Multiple choice",helptext_on:"When selected, participants will be able to select multiple options."},anyone_can_participate:{title:"Anyone with link can participate",helptext_on:"When selected, anyone with the link to the poll can participate."}
51,notify_on_closing_soon:{voting_closes_too_soon:"Because voting closes within 24 hours, no closing soon reminders will be sent.",closes_too_soon:"Because this %{pollType} closes within 24 hours, no closing soon reminders will be sent.",title:"24 hours before %{pollType} closes, send a reminder to",voting_title:"24 hours before voting closes, send a reminder to",nobody:"Nobody",author:"Author (me)",undecided_voters:"Undecided voters",voters:"All voters"},notify_on_participate:{title:"Notify me when people participate",helptext_on:"When selected, you will be notified whenever someone participates."},anonymous:{title:"Anonymous voters",helptext_on:"When selected, participant info will not be shown with each response."},voter_can_add_options:{title:"Voters can add alternative options"},can_respond_maybe:{title:'Voters can respond "if need be"'},allow_long_reason:{title:"Allow vote 'reason' to be longer than 500 characters"},hide_results_until_closed:{title:"Hide results until closed",helptext_on:"Don't show the how people have voted until the poll is closed"}},poll_common_close_form:{title:"Close %{poll_type} now?",helptext:"Are you sure you want to close this %{poll_type} early and share an outcome?",close_poll_type:"Close %{poll_type}",poll_type_closed:"%{poll_type} closed"},poll_common_reopen_form:{title:"Reopen %{poll_type}",helptext:"Reopen the %{poll_type} if people need more time to participate",success:"%{poll_type} reopened"},poll_common_move_form:{title:"Move %{poll_type}",success:"%{poll_type} moved to %{group}"},poll_common_wip_field:{voting_enabled:"Voting enabled",enable_voting:"Enable voting",title:"Disable voting",past_tense:"Voting disabled",draft_mode:"Draft mode",disable_voting_during_development:"This %{poll_type} is not ready to be voted on",helptext:"This %{poll_type} is a work in progress. You can enable voting later.",voting_open:"Voting open",this_is_ready_for_voting:"this %{poll_type} is ready for voting"},poll_common_closing_at_field:{closing:"Closing",no_closing_date:"No closing date",closing_date:"Closing date",closing_hour:"Closing time",invalid_date:"Invalid date"},poll_card:{poll_type_by_name:"%{poll_type} by %{name}",started_by:"Started by %{name}"},poll_common_votes_panel:{vote_removed:"Vote removed",undecided:"Undecided",newest_first:"Newest first",oldest_first:"Oldest first",priority_first:"Agree first",priority_last:"Block first",undecided_first:"Undecided first",no_votes_
51yet:"No votes have been placed yet.",change_results_order:"Change results order",none_of_the_above:"(None of the above)",name_or_username:"Name or username"},poll_common_undecided_panel:{show_undecided:"Show %{count} undecided",show_invitations:"Show Pending Invitations",undecided_users:"Undecided (%{count})",invitation_count_singular:"1 additional person has been invited to participate via email",invitation_count_plural:"%{count} additional people have been invited to participate via email"},poll_common_undecided_user:{reminded:"Reminder sent!",reminder_sent:"Reminder notification sent"},poll_common_set_outcome_panel:{enter_outcome:"Enter outcome",poll_type:"This %{poll_type} has closed. Take time to consider the results then share an outcome so people know what will happen next."},poll_common_outcome_form:{review_due_in_days:"Review the decision after how many days?",review_due_in_days_hint:"A period of time (in days) to wait before reviewing the decision. (optional)",review_date:"Review date",review_date_hint:"Set a date to review the decision (optional)",who_to_notify:"Who do you want to notify about this outcome? (optional)",outcome_statement_template:"Outcome statement template",new_title:"State outcome",update_title:"Update outcome",outcome_created:"Outcome created",outcome_updated:"Outcome updated",statement_placeholder:"Summarise the responses and explain what will happen next.",statement_template_placeholder:"Provide a template for writing an outcome of the decision. (optional)",you_will_be_notified:"You will be notified on the review date.",submit:"Share outcome"},poll_common_outcome_panel:{authored_by:"By %{name}"},poll_common_delete_modal:{question:"Are you sure you want to delete this?",title:"Delete %{pollType}",success:"Successfully deleted"},poll_common_form:{notify_everyone_when_poll_starts:"Notify everyone when %{poll_type} starts",option_has_votes_confirm_delete:"Some people have voted for this option, are you sure you want to delete it?",example_title:"Example title",example_title_hint:"Give an example of a good proposal title",example_details_placeholder:"Provide a starting point for a proposal or poll. Questions can be useful prompts to get people writing. Include any rules or reminders that participants will need to know.",confirm_delete:"Are you sure you want to delete this poll template? This cannot be undone.",show_advanced_settings:"Show advanced settings",hide_advanced_settings:"Hide advanced settings",choose_at_least:"Choose at least",choose_at_most:"Choose at most",please_review_the_form:"Please review the form",option_added_please_add_details:"Option added! Please add some details so people know what it means.",default_duration_in_days:"Default duration in days",default_duration_in_days_hint:"How many days should be given for people to vote?",how_many_options_can_a_voter_choose:"How many of these options may a voter choose?",minimum_choices:"Minimum choices",maximum_choices:"Maximum choices",content:"Content",reminder:"Reminder",your_in_zone:"Current time zone: %{zone}",show_other_zones:"Show other time zones",hide_other_zones:"Hide other time zones",this_is_a_template_for_new_polls:"This is a template for new polls",voting_method:"Voting method",voting_methods:{question:"Question round",question_hint:"Invite questions and comments on your proposal",show_thumbs:"Show of thumbs",show_thumbs_hint:"Voters choose thumb up, down, sideways, or hand up",choose:"Choose",simple_poll:"Simple poll",choose_hint:"Voters choose the best option (or options)",score:"Score",score_hint:"Voters assign a score to each option",allocate:"Allocate",allocate_hint:"Voters allocate a budget of points between the options",ranked_choice:"Ranked choice",ranked_choice_hint:"Voters arrange options in order from most to least preferred",time_poll:"Time poll",time_poll_hint:"Voters indicate when they are available to meet"},process:"Process",process_name:"Template title",process_name_hint:"What do you call this template? E.g. Role advice, Temperature check, Minutes approval",process_subtitle:"Template subtitle",process_subtitle_hint:"A one-line description of when or why to use this template",process_introduction:"Template help",process_introduction_hint:"A few paragraphs that explain how to use the template. Include links to resources that might be helpful.",you_can_set_a_prompt_per_option:"Edit the prompt for each option from the details tab",chart_type:"Chart type",title:"Title",title_hint:"What is the decision you need to make?",no_options_add_some:"This poll has no options, add some below.",details:"Details",example_details:"Example details",details_placeholder:"This is your opportunity to explain what people are voting on",options:"Options",options_placeholder:"List the options available",no_options:"You haven't added any options yet.",closing:"Closing",closed:"Closed",start:"Start",start_poll:"Start poll",stance_reason_required_label:"Providing a reason when voting is ...",stance_reason_required:"Required",stance_reason_optional:"Optional",stance_reason_disabled:"Disabled",stance_reason_is_required:"Please provide a reason with your vote",limit_reason_length:"Limit reason to maximum 500 characters",save_poll:"Save poll",start_poll_type:"Start %{poll_type}",share_poll_type:"Share %{poll_type}",who_may_vote:"Who may vote in this %{poll_type}?",update:"Update",add_voters:"Add voters",notify_invitees:"Send notifications",no_notifications_warning:"Voters will not be notified. This is useful if you're running a lot of polls and plan to
51notify everyone later on.",count_voters_added:"%{count} voters added",poll_type_created:"%{poll_type} created",poll_type_started:"%{poll_type} started",poll_type_updated:"%{poll_type} updated",reason_prompt:"Reason prompt",anonymous_voting:"Anonymous voting",anonymous_voting_description:"If enabled, the identity of voters will not be associated to their votes. This cannot be undone.",votes_are_anonymous:"Votes are anonymous",vote_reason:"Vote reason",vote_reason_description:"It can be helpful to understand why people voted the way they did. With this setting, you can prompt people to share their thoughts when they vote.",hide_results_description:"If you want people to vote without knowing how others have voted, you can hide the results of the poll.",process_helptext:`Name and describe the process that is being used to run this poll. 52`,reminder_helptext:`Send a 'Closing soon' notification before the poll closes. 53This can be an opportunity for people to see how others have voted and reconsider their own vote, or just a way to increase participation in the poll. 54`},poll_proposal_form:{start_header:"Start proposal",edit_header:"Edit proposal",title_placeholder:"E.g. Let's go to the moon!",details_placeholder:"What are the details of your proposal?",proposal_created:"Proposal started",proposal_updated:"Proposal updated"},record_modal:{record_video:"Record video",record_audio:"Record audio",record:"Record",stop:"Stop",no_mic:"Could not find a microphone",no_camera:"Could not find a camera",listen_to_audio:"Listen to audio",watch_video:"Watch video",audio_transcript:"Audio transcript: %{text}",why_type_when_you_can_talk:"Why type when you can talk? Send a voice recording",transcript_included:"A transcript of the recording will be appended to your message"},poll_poll_form:{multiple_choice_subtitle:"A simple way to assess the popularity of options",start_header:"Start poll",edit_header:"Edit poll",tip:"Offer a choice between options",title_placeholder:"E.g. Where do you want to go on holiday?",details_placeholder:"Provide any clarifying details people might need to answer the question.",add_option_placeholder:"Add option",new_option:"New option",add_option_hint:"Enter a short name for the option",remove_option:"Remove option",poll_created:"Poll created",poll_updated:"Poll updated",option_added:"Option added",option_already_added:"Option already added to poll"},poll_dot_vote_form:{dots_per_person:"Points per person",dots_per_person_helptext:"The total number of points each person is asked to allocate."},poll_meeting_form:{timeslots:"Time slots",no_options:"Enter times in your current time zone (%{zone}). Participants see times translated to their local time zone.",meeting_duration:"Meeting duration",add_option_placeholder:"Add new time",time_slot_added:"Time slot added",time_slot_already_added:"Time slot already added",participants_see_local_times:"Pariticpants will see times localized to their time zone",use_24_hour_format:"Error! Use 24 hour format e.g. %{time}"},poll_ranked_choice_form:{no_options:"You haven't added any options yet.",add_option_placeholder:"Enter a new choice",minimum_stance_choices:"Options to rank",minimum_stance_choices_helptext:"How many choices does the voter get?",minimum_stance_choices_hint:"i.e. Rank your top 3 flavours of ice cream",ranked_choice_created:"Ranked choice created",ranked_choice_updated:"Ranked choice updated",rank:"Rank",points:"Points",average:"Average",mean:"Mean",pct_of_points:"% of points",pct_of_voters:"% of voters",percent:"Percent"},poll_meeting_time_field:{add_time_slot:"Add time slot",new_time_slot:"New time slot",closing_hour:"Closing hour"},poll_proposal_vote_form:{default_reason_placeholder:"Please explain your reasoning",abstain_reason_placeholder:"Let people know why youâre opting out of this decision",agree_reason_placeholder:"What do you like about the proposal and how will it benefit the group?",disagree_reason_placeholder:"How could this proposal be improved so that you can support it?",block_reason_placeholder:"Explain your objection to this proposal and why it should not go ahead",stance_created:"Vote created",stance_updated:"Vote updated",vote:"Vote"},poll_proposal_options:{select_an_option:"Select an option",yes:"Yes",no:"No",agree:"Agree",consent:"Consent",abstain:"Abstain",unsure:"Unsure",disagree:"Disagree",objection:"Ob
54jection",object:"Object",block:"Block",no_voting:"No voting"},poll_count_form:{pct_of_target:"% of target",agree_target_helptext:"What is the target number of volunteers you'd like to have?",agree_target_label:"Target number"},poll_count_options:{accept:"Accept",decline:"Decline",yes:"Yes",no:"No"},poll_common_percent_voted:{sentence:"%{numerator} of %{denominator} people have participated (%{percent}%)",target_progress:"%{percent}% of target reached. (%{num} / %{target})"},poll_meeting_chart_panel:{total:"Total"},poll_remove_vote:{title:"Remove your vote?",helptext:"Are you sure you want to remove your vote? You will be listed as undecided and can vote again later if you wish.",confirm:"Remove vote",success:"Vote removed"},poll_poll_vote_form:{stance_created:"Vote created",stance_updated:"Vote updated"},poll_score_vote_form:{stance_created:"Vote created",stance_updated:"Vote updated"},poll_meeting_vote_form:{local_time_zone:"Local time - %{zone}",can_attend:"Can attend",unable:"Unable",if_need_be:"If need be",your_response:"When can you attend?",stance_created:"Availability saved",stance_updated:"Availability updated",reason_placeholder:"Explain when you're free (or busy), in case the author wants to add options."},poll_dot_vote_vote_form:{dots_remaining:"%{count} dots remaining",too_many_dots:"You have used too many dots",stance_created:"Vote created",stance_updated:"Vote updated"},poll_ranked_choice_vote_form:{helptext:"Drag and drop options in order of preference (1 being your most preferred option). Your top %{count} choices will be recorded.",stance_created:"Choice recorded",stance_updated:"Choice updated"},poll_templates:{proposal:{process_subtitle:"Raise a proposal to make a decision",process_introduction:'<p>The classic Loomio proposal helps you make a decision, converting a discussion into a clear outcome.</p><p>Suggest a course of action and invite people to respond by voting agree, abstain or disagree.</p><p>As people vote, they can give a reason why they have voted this way. You can see where everyone else stands on the matter, and why.</p><p>In this way you can use a proposal to prompt people for a response, uncover new information, and build shared understanding - to help your group make a better, more informed decision.</p><p>A proposal and associated discussion creates its own record of how the decision came about.</p><p><a target="_blank" href="https://help.loomio.com/en/user_manual/polls/decisions/index.html"><u>Read more about using the classic Loomio proposal in the Simple decision process</u></a>.</p>',title:"Approve the new Brand concept",details:'<h3 id="what-is-the-decision-you-need-to-make"><strong>What is the decision you need to make?</strong></h3><p></p><h3 id="why-is-this-important"><strong>Why is this important?</strong></h3><p></p><h3 id="what-are-you-asking-people-to-do"><strong>What are you asking people to do?</strong></h3><p></p> <p>For this proposal to pass, we need the majority of members to vote Agree.</p><p>If you Disagree, say why and what needs to change for you to Agree.</p>',agree:"Agree",agree_meaning:"I support the proposal",agree_prompt:"What do you like about the proposal and how will it benefit the group?",abstain:"Abstain",abstain_meaning:"Choosing not to, or unable to vote in this decision.",abstain_prompt:"Why are you abstaining, or do not feel able to vote in this decision?",disagree:"Disagree",disagree_meaning:"Something in this proposal needs to be changed before I can support it.",disagree_prompt:"How could this proposal be improved so that you can support it?"},advice:{process_subtitle:"Seek advice on a decision you need to make",process_introduction:'<p>Seek advice on a decision you need to make, with the advice of people impacted or who have expertise, so you can make a better decision for your organization.</p><ul><li><p>Advice helps you make a better decision for your organization.</p></li><li><p>Foster relationships, learning opportunities and diverse input. </p></li><li><p>Stimulate initiative and creativity, and more enjoyable work.</p></li></ul><p><a target="_blank" href="https://help.loomio.com/en/guides/advice_process/index.html"><u>Read more about the Advice process</u></a>.</p>',title:"Help Takashi buy a new computer",details:'<h3 id="what-is-the-decision-you-need-to-make"><strong>What is the decision you need to make?</strong></h3><p></p><h3 id="why-is-this-important"><strong>Why is this important?</strong></h3><p></p><h3 id="what-advice-are-you-asking-from-people-to-help-you-make-a-go"><strong>What advice are you asking from people to help you make a good decision?</strong></h3><p></p><p>I am seeking your input to help me make a good decision for our organization.</p>',agree:"Agree",agree_meaning:"I have offered my advice about this decision",agree_prompt:"Summarize your advice or make a helpful comment",abstain:"Abstain",abstain_meaning:"I don't have any advice to offer",abstain_prompt:"Do you have any comments that may be helpful?"},consent:{process_subtitle:"Make a decision that is âsafe to tryâ, without objections",process_introduction:`<p>Seek consent on a decision you need to make, where there are no meaningful objections to your proposal, so you can make a fast decision for your organization that is 'safe to try'.</p><ul><li><p>Aim for a âgood enoughâ decision</p></li><li><p>Involve many voices to develop a workable proposal</p></li><li><p>Ask if anyone has a valid objection</p></li><li><p>Amend the proposal to resolve objections</p></li></ul> <p><a target="_blank" href="https://help.loomio.com/en/guides/consent_process/index.html">Read more about the Consent process</a>.</p>`,title:"Hire Chloe for design role",details:`<h3 id="what-is-the-decision-you-need-to-make"><strong>What is the decision you need to make?</strong></h3><p></p><h3 id="why-is-this-important"><strong>Why is this important?</strong></h3><p></p><h3 id="what-are-you-asking-of-people-in-this-proposal"><strong>What are you asking of people in this proposal?</strong></h3><p></p><p>If you have an Objection, please say why and propose a change to the proposal that makes it safe.</p><p>Remember we are seeking consent for a âgood enoughâ decision that is 'safe to try', so we can make a good decision for our organization.</p>`,consent:"Consent",consent_meaning:"The proposal is safe to try",consent_prompt:"What do you like about the proposal and how will it benef
54it the organization?",objection:"Objection",objection_meaning:"I have a valid objection and think the proposal will cause harm",objection_prompt:"What change to this proposal is needed to make it 'safe to try', so that you can support it?"},consensus:{process_subtitle:"Reach collective agreement with everyone involved",process_introduction:'<p>Build consensus for a decision you need to make, to reach an agreement that satisfies the needs and concerns of all participants.</p><ul><li><p>Discuss and develop a proposal together</p></li><li><p>Include and respect everyone involved</p></li><li><p>Seek agreement from most people </p></li></ul><p><a target="_blank" href="https://help.loomio.com/en/guides/consensus_process/index.html">Read more about the Consensus process</a>.</p>',title:"Approve the new Brand concept",details:'<h3 id="what-is-the-decision-you-need-to-make"><strong>What is the decision you need to make?</strong></h3><p></p><h3 id="why-is-this-important"><strong>Why is this important?</strong></h3><p></p><h3 id="what-are-you-asking-people-to-do"><strong>What are you asking people to do?</strong></h3><p></p><p>For this proposal to pass, we need the majority of members to vote Agree. </p><p>If you Disagree, say why and what needs to change for you to Agree.</p>',agree:"Agree",agree_meaning:"I support the proposal",agree_prompt:"What do you like about the proposal and how will it benefit the organization?",abstain:"Abstain",abstain_meaning:"This decision does not affect me and I am happy with whatever the group decides",abstain_prompt:"Why are you abstaining, or do not feel able to vote in this decision?",disagree:"Disagree",disagree_meaning:"Something in this proposal needs to be changed before I can support it",disagree_prompt:"How could this proposal be improved so that you can support it?",block:"Block",block_meaning:"I block this proposal and think it should not proceed",block_prompt:"Explain your objection to this proposal and why it should not go ahead"},question_round:{process_subtitle:"Invite clarifying questions to help people understand a proposal",process_introduction:'<p>A Question round is an opportunity for people to ask clarifying questions about the proposal, so that everyone understands the proposal before they say what they think about it.</p><p>The Loomio Question round is a special proposal with no voting options. It enables participants to ask questions within a duration you set for the round.</p><p>A Question round is commonly used as a step in the Consent process.</p><p><a target="_blank" href="https://help.loomio.com/en/guides/consent_process/index.html">Read more about the Consent process</a>.</p>',title:"What questions to you have about the Health and Safety policy?",details:'<h3 id="what-are-you-proposing"><strong>What are you proposing?</strong></h3><p></p><h3 id="why-is-this-important"><strong>Why is this important?</strong></h3><p></p><h3 id="what-are-you-asking-people-to-do"><strong>What are you asking people to do?</strong></h3><p></p><p>This is a question round, where you are invited to ask clarifying questions.</p> <p>What do you need to know so you understand the proposal?</p> <p>Please respond before the Question round closes.</p>',reason_prompt:"What do you need to know so you understand the proposal?"},sense_check:{process_subtitle:"Ask for feedback, questions and concerns",process_introduction:'<p>The Sense check proposal is a good way to get feedback, invite questions and uncover concerns. It helps to clarify and improve a proposal before moving to a decision.</p><p>Sense check lets people know a proposal is forming and encourages them to engage. It is an opportunity to listen to people, sense how they feel and respond appropriately - opening the potential to incorporate their contributions to make a better decision.</p> <p>Use the Sense check proposal in the Consent process to invite reactions and comments to improve the proposal, and in a Consensus process to test for consensus.</p><p><a target="_blank" rel="noopener noreferrer nofollow" href="https://help.loomio.com/en/user_manual/polls/decisions/index.html"><u>Read more about using Sense check in the Simple decision process</u></a><span>.</span></p>',title:"How do you feel about the new brand concepts?",details:'<h3 id="what-are-you-proposing"><strong>What are you proposing?</strong></h3><p></p><h3 id="why-is-this-important"><strong>Why is this important?</strong></h3><p></p><h3 id="what-are-you-asking-people-to-do"><strong>What are you asking people to do?</strong></h3><p></p><p>How do you feel about the proposal? Leave a comment or make a suggestion for improvement.</p><p>This Sense check is an opportunity for your input and contribution, to help us make a better decision.</p>',not_sure:"Not sure",not_sure_meaning:"I have a question or need more time",not_sure_prompt:"What parts are unclear to you? How could this be solved?",looks_good:"Looks good",looks_good_meaning:"I'm happy with where this is going",looks_good_prompt:"Do you have any comments or suggestions to make the proposal better?",abstain:"Abstain",abstain_meaning:"I donât have anything to add, nor any objection to this work.",abstain_prompt:"Abstaining implies consent with the direction of this proposal. Is there a reason you are voting to abstain?",concerned:"Concerned",concerned_meaning:"Something about this may need to change for me to consent or agree",concerned_prompt:"What is your concern and how might it be addressed?"},gradients_of_agreement:{process_subtitle:"Express support for a proposal on an 8-point scale",process_introduction:"<p>The Gradients of agreement proposal enables members of a group to express their support for a proposal in degrees on a scale, offering more ways of expressing support than
54in terms of âagreeâ and âdisagreeâ.</p> <p>Use Gradients of agreement as a preliminary round, to test support for a proposal before moving to a formal agreement.</p><p>Gradients of agreement lets people know a proposal is forming and encourages them to engage. It is an opportunity to listen to people, sense how they feel and respond appropriately - opening the potential to incorporate their contributions to make a better decision.</p>",title:"How do you like the new statement of values?",details:'<h3 id="what-are-you-proposing"><strong>What are you proposing?</strong></h3><p></p><h3 id="why-is-this-important"><strong>Why is this important?</strong></h3><p></p><h3 id="what-are-you-asking-people-to-do"><strong>What are you asking people to do?</strong></h3><p></p><p>How do you like the proposal? Express your support on the scale below and leave a comment or suggestion for improvement.</p><p>This Gradients of agreement proposal is to test support for the proposal, and an opportunity for your input before moving to a formal agreement.</p>',whole_hearted_endorsement:"Whole-hearted Endorsement",whole_hearted_endorsement_meaning:"I really like it!",whole_hearted_endorsement_prompt:"What do you like about it?",agreement_with_minor_contention:"Agreement with minor contention",agreement_with_minor_contention_meaning:"Not perfect, but it's good enough",agreement_with_minor_contention_prompt:"What is your concern?",support_with_reservations:"Support with reservations",support_with_reservations_meaning:"I can live with it",support_with_reservations_prompt:"What are your reservations?",abstain_meaning:"This issue does not affect me",abstain_prompt:"Do you have anything you would like to add?",more_discussion_needed:"More discussion needed",more_discussion_needed_meaning:"I don't understand the issues well enough yet",more_discussion_needed_prompt:"What do you not understand?",don_t_like_but_will_support:"Don't like but will support",don_t_like_but_will_support_meaning:"It's not great but I don't want to hold up the group",don_t_like_but_will_support_prompt:"What would you like to see improved?",serious_disagreement:"Serious disagreement",serious_disagreement_meaning:"I am not on board with this - don't count on me",serious_disagreement_prompt:"What do you disagree with?",veto:"Veto",veto_meaning:"I block this proposal",veto_prompt:"Why do you block the proposal? What needs to change for you to support it?"},simple_poll:{process_subtitle:"Find the most popular option",process_introduction:'<p>Before making a decision, find which option(s) people care most about.</p><p>Simple poll helps you find the most popular option or options with single or multiple choice.</p><p>Write any details about the options in the details field, then enter the name of the option and click + to add.</p><p>Set the <strong>Minimum choices</strong> and <strong>Maximum choices</strong> a voter may choose. Leave the maximum choice as 1 for a single choice poll.</p><p>You can use the pencil icon alongside each option to add a <strong>meaning</strong> of the option, a further elaborate on the option to help people when voting.</p><p><a target="_blank" href="https://help.loomio.com/en/user_manual/polls/proposal_types/index.html#simple-poll">Read more about Simple poll</a>.</p>',title:"Where should the focus of our strategic direction be?",details:'<h3 id="what-is-this-poll-about"><strong>What is this poll about?</strong></h3><p></p><h3 id="why-is-this-important"><strong>Why is this important?</strong></h3><p></p><h3 id="what-are-you-asking-people-to-do"><strong>What are you asking people to do?</strong></h3><p></p><p>Choose the option(s) you favor.</p>'},score_poll:{process_subtitle:"Measure the degree of support for each option",process_introduction:`<p>Use Score poll when you want to survey people for their desire, preference or interest in each option.</p><p><span>Participants are asked to evaluate each option and assign a score by moving a slider along a scale.</span></p><p><span>Results are displayed graphically along with a table for each option showing total points, mean points and the number of voters.</span></p><p>Advanced Settings include 'Votes are anonymous' and 'Show options in random order' - commonly used for Score poll to reduce any voting bias.</p><p><a target="_blank" href="https://help.loomio.com/en/user_manual/polls/proposal_types/index.html#score-poll">Read more about Score poll</a>.</p>`,title:"Assessing how decisions are made in our organization",details:'<h3 id="what-is-this-poll-about"><strong>What is this poll about?</strong></h3><p></p><h3 id="why-is-this-important"><strong>Why is this important?</strong></h3><p></p><h3 id="what-are-you-asking-people-to-do"><strong>What are you asking people to do?</strong></h3><p></p><p>Choose the option(s) you favor.</p>'},dot_vote:{process_subtitle:"Allocate a budget of points to reveal priorities",process_introduction:'<p>Dot vote is useful for groups trying to allocate a limited resource to a number of options. It goes beyond a simple poll by helping participants appreciate there is a constraint when selecting options.
54</p><p>Participants are each given a set number of dots. You decide how many.</p><p>They place dots next to options presented that they like. Participants can place all their dots on a single option or spread over multiple options.</p><p>As participants allocate dots, they may exceed the dot budget limit and so are encouraged to consider how they spend their dots carefully.</p><p>Options with the most dots âwinâ. The results table provides additional data to help you analyse results.</p><ul><li><p>% of points</p></li><li><p>Points</p></li><li><p>Mean</p></li><li><p>Voters</p></li></ul><p><a target="_blank" href="https://help.loomio.com/en/user_manual/polls/proposal_types/index.html#dot-vote">Read more about Dot vote</a>.</p>',title:"Choosing themes for our conference",details:'<h3 id="what-is-this-poll-about"><strong>What is this poll about?</strong></h3><p></p><h3 id="why-is-this-important"><strong>Why is this important?</strong></h3><p></p><h3 id="what-are-you-asking-people-to-do"><strong>What are you asking people to do?</strong></h3><p></p><p>In this poll you have a budget of 8 dots to allocate to the options you prefer. You can place all dots on one option or spread them out.</p>'},ranked_choice:{process_subtitle:"Understand the ordered preference of options",process_introduction:`<p>Ranked choice is useful when you have a large number of options, or are holding an election.</p><p>This poll template offers a series of options for people to vote in their preferred order.</p> <p>You can set the number of choices the voter gets.</p> <p><span>Voters drag and drop options in order of preference (#1 being your most preferred option).</span></p><p><span>Advanced Settings include 'Votes are anonymous' and 'Show options in random order' - commonly used for R</span>anked choice to reduce any voting bias.</p><p>Results are showed in ranked order. The results table provides additional data to help you analyse results.</p><ul><li><p>Rank</p></li><li><p>% of points</p></li><li><p>Points</p></li><li><p>Mean</p></li></ul><p><a target="_blank" href="https://help.loomio.com/en/user_manual/polls/proposal_types/index.html#ranked-choice">Read more about Ranked choice</a>.</p>`,title:"Elect directors to governance board",details:'<h3 id="what-is-this-poll-about"><strong>What is this poll about?</strong></h3><p></p><h3 id="why-is-this-important"><strong>Why is this important?</strong></h3><p></p><h3 id="what-are-you-asking-people-to-do"><strong>What are you asking people to do?</strong></h3><p></p><p>Vote by ranking the options in order of your preference. The option that ranks first in the results wins.</p>'},time_poll:{process_subtitle:"Find when people are available to meet",process_introduction:`<p><span>Save time arranging a date for your meeting or event.</span></p><p>Time poll makes it easy to see everyone's availability and find the best time.</p> <p>Give your Time poll a title and details. Enter a list of date and time options in your time zone.</p><p>When setting timeslots, consider people in different time zones. Participants will see times localized in their time zone.</p><p>Set a meeting duration.</p><p>When the Time poll closes, set an outcome with the best time and any instructions for the meeting.</p><p><span>Loomio will include a calendar invitation with the outcome notification email, so participants can add to their calendar.</span></p> <p><a target="_blank" href="https://help.loomio.com/en/user_manual/polls/meeting_polls/index.html#time-poll">Read more about Time poll</a>.</p>`,title:"Let's find a date for our next meeting",details:"<p><strong>What is the meeting or event?</strong></p><p></p><p><strong>Why is this important?</strong></p><p></p><p><strong>What are you asking people to do?</strong></p><p></p><p><span>Mark the timeslots you are available with the green 'thumbs up' icon or leave the red 'thumbs down' in place when unavailable. </span></p><p><span>Use the 'thumbs sideways' icon to say you are available 'if need be'.</span></p>",reason_prompt:"Is there anything you can say to help the organizer find a suitable time?"},opt_in:{process_subtitle:"Find volunteers or ask for participants",process_introduction:'<p>Use Opt-in to invite people to a join a team, committee or working group, or to participate in an event. </p><p>âOpt-inâ has two voting options: Accept or Decline. </p><p>You can define a target number of people you are looking for, say 3 people to join your working group.</p> <p><a target="_blank" href="https://help.loomio.com/en/user_manual/polls/meeting_polls/index.html#opt-in">Read more about Opt-in</a>.</p> ',title:"Working group to draft our new sustainability policy",details:"<p><strong>What is the team, working group or event you are inviting people to?</strong></p><p></p><p><strong>Why is this important?</strong></p><p></p><p><strong>What are you asking people to do?</strong></p><p></p><p>Select 'Accept' to participate!</p>",accept_meaning:"I'm willing to participate",accept_prompt:"Why are you volunteering for this?",decline_meaning:"I'm unable to participate",decline_prompt:"Is there anything you'd like to say?"}},thread_item:{removed:"Item removed",deleted_group:"Deleted group",invite_only_thread:"Invite only thread",comment_replied_to:"<
54a class='actor-link' href='/u/%{username}'>%{author}</a> in reply to <strong>%{title}</strong>",discussion_title_edited:"<a class='actor-link' href='/u/%{username}'>%{author}</a> edited the thread title",discussion_context_edited:"<a class='actor-link' href='/u/%{username}'>%{author}</a> edited the thread context",discussion_privacy_edited:"<a class='actor-link' href='/u/%{username}'>%{author}</a> changed the thread privacy",discussion_edited:"<a class='actor-link' href='/u/%{username}'>%{author}</a> edited the thread context",discussion_moved:"<a class='actor-link' href='/u/%{username}'>%{author}</a> moved the thread from <strong>%{title}</strong>",discussion_closed:"<a class='actor-link' href='/u/%{username}'>%{author}</a> closed the thread",discussion_reopened:"<a class='actor-link' href='/u/%{username}'>%{author}</a> reopened the thread",discussion_forked:"<a class='actor-link' href='/u/%{username}'>%{author}</a> created a fork of this thread: <strong><a href='d/%{key}'>%{title}</a></strong>",new_comment:"<a class='actor-link' href='/u/%{username}'>%{author}</a>",outcome_created:"<a class='actor-link' href='/u/%{username}'>%{author}</a> shared an outcome",poll_reopened:"<a class='actor-link' href='/u/%{username}'>%{author}</a> reopened the %{polltype}",poll_closed_by_user:"<a class='actor-link' href='/u/%{username}'>%{author}</a> closed the %{polltype}",poll_created:"<a class='actor-link' href='/u/%{username}'>%{author}</a> started a %{polltype}",poll_edited:"<a class='actor-link' href='/u/%{username}'>%{author}</a> edited the %{polltype}",poll_option_added:"<a class='actor-link' href='/u/%{username}'>%{author}</a> added options to the %{polltype}",poll_expired:"%{polltype} closed",stance_created:"<a class='actor-link' href='/u/%{username}'>%{author}</a> voted on: <strong>%{title}</strong>",stance_updated:"<a class='actor-link' href='/u/%{username}'>%{author}</a> updated their vote on: <strong>%{title}</strong>",event_removed:"Removed from thread"},add_poll_to_thread_modal:{success:"Success, %{pollType} added to thread!"},auth_form:{code:"000000",youre_invited:"You have been invited to join %{group_name}.",youre_invited_discussion:"You have been invited to join the discussion.",youre_invited_poll:"You have been invited to vote.",existing_account_can_sign_in:"If you are already a %{site_name} user, sign in with your existing account",sign_up_or_log_in:"Create account or sign in to %{site_name}",sign_in_to_loomio:"Sign in to %{site_name}",sign_in_help:"Trouble signing in?",sign_in:"Sign in",continue:"Continue",create_account:"Create account",sign_up_as:"Create account as %{email}",sign_in_as:"Sign in as %{name}",continue_with_provider:"Continue with %{provider}",continue_with_email:"Continue with email",or_enter_your_email:"Or, enter your email address",enter_your_name:"Enter your name",invitation_required:"You need an invitation to create an account. Follow the link from your invitation email to continue.",more_providers:"More",email_not_present:"An email address is required",invalid_email:"Sorry, that doesn't look like a valid email address",invalid_password:"Sorry, that password doesn't match the one we have on file",invalid_token:"Sorry, we weren't able to use that token to log you in. Click below to send another one.",account_locked:"Your account has been locked after too many failed login attempts. Check your email for an unlock link",email_not_found:"Sorry, we couldn't find an account with that email address",email_taken:"Email address is already registered",email_placeholder:"[email protected]",login_with_token:"You're all set! Click the link below to continue.",login_link_helptext:"Click the button below and we'll send you a link to sign in.",enter_your_password:"Enter your password to continue",check_spam_folder:"If the email does not arrive soon, check your spam folder.",sign_up_helptext:"Please complete this form to create a user account",i_accept_all:"I accept the %{termsLink} and %{privacyLink}",newsletter_label:"I want to receive the %{link}",name_placeholder:"Your name",name_required:"Please enter a name",terms_required:"You must agree to the Terms of Service",account_inactive:"Uh-oh, it looks like the account for %{email} has been deactivated!",privacy_notice:"We will never sell your data. <br><a href='%{privacyUrl}' target='_blank'>Privacy policy</a>",welcome:"New to %{siteName}?",welcome_back:"Welcome back, %{name}!",forgot_password:"Forgot password",login_link:"Send sign in email",sign_in_via_email:"Sign in via email",set_password:"Set password",set_password_helptext:"Want to use a password next time?",hello:"Hello, %{name}!",new_to_loomio:"First time on %{site_name}?",already_a_user:"Already have an account?",email_address_of_existing_account:"Enter email address of your existing account",link_accounts:"Link accounts",check_your_email:"Check your email!",login_link_sent:"We've sent an email to %{email}.",instructions:"Click the link to sign in, or enter the code below:",instructions_code:"Enter the code from that email:",too_many_attempts:"Too many attempts; try clicking the link in the email to sign in.",invalid_code:"Sorry, that code didn't match. Check the email and try again.",password_link_sent:"We've sent an email to %{email} with instructions on how to set your password.",reactivate_link_sent:"We've sent you an email with instructions to reactivate your account",signed_in:"Signed in successfully",email_verified:"Email verified successfully",name:"Name",email:"Email",password:"Password",reactivate:"Reactivate account"},chatbot:{configure_chatbot:"Configure chatbot",test_connection:"Test connection",test_connection_ok:"Looks good! You should see a message in the channel",test_connection_bad:"Something is wrong with the settings",name:"Chatbot name",connection_test_successful:"Loomio bot connection test successful!",chatbot:"Chatbot",chatbots:"Chatbots",saved:"Chatbot saved!",webhook_url:"Webhook URL",homeserver_url:"Homeserver URL",channel:"Channel",username:"Username",password:"Password",access_token:"Access Token",add_chatbot:"Add chatbot",matrix:"Matrix",slack:"Slack",discord:"Discord",mattermost:"Mattermost",microsoft_teams:"Microsoft Teams",event_kind_helptext:"Select events the bot will always be notified about. If you're not sure, just leave them all off.",notification_only_label:"Send notification headline only",check_for_test_message:"Check your chatroom for a message from the bot!"},webhook:{integrations:"Integrations",api_keys:"API keys",webhooks:"Webhooks",webhook:"Webhook",add_api_key:"Add API key",edit_api_key:"Edit API key",api:"API",format:"Format",formats:{markdown:"Markdown (for Mattermost, Zapier and others)",microsoft:"Microsoft Teams",slack:"Slack",discord:"Discord"},subtitle:"Connect to Loomio to the rest of your tools with our API",deprecated:"This API is deprecated. Please move to APIv2 (see API docs in your group settings menu)",we_have_guides:`See our <a href="%{url}" target="_blank">webhook setup guides</a> for help connecting your service. 55`,add_webhook:"Add webhook",show_docs:"See API usage",save_to_show_docs:"After you save, return here to find your API key",edit_integration:"Edit integration",add_integration:"Add integration",success:"Integration added!",remove:"Remove integration",confirm_remove:"Are you sure you want to remove the integration: %{name}?",removed:"Integration removed",url_label:"Webhook URL",url_placeholder:"https://hooks.example.com/...",name_label:"Name",name_placeholder:"Give this integration a name so you can identify it",event_kind_helptext:"Which events do you want the webhook to be notified of?",event_kinds:{new_discussion:"A thread is started",discu
55ssion_edited:"A thread is edited",poll_edited:"A poll is edited",new_comment:"A comment is made",poll_created:"A poll is started",stance_created:"A vote is cast",stance_updated:"A vote is changed",poll_closing_soon:"A poll is closing soon",poll_expired:"A poll expires",poll_closed_by_user:"A poll is closed manually",poll_reopened:"A poll is re-opened for voting",outcome_created:"An outcome is shared",outcome_updated:"An outcome is updated",outcome_review_due:"An outcome review is due"},permissions_explaination:"Select which actions can be performed by this integration",permissions:{show_discussion:"show discussion",create_discussion:"create discussion",create_poll:"create poll",show_poll:"show poll",read_memberships:"read memberships",manage_memberships:"manage memberships (add or remove group members)"},include_body_label:"Include message body with notification"},powered_by:{this_is_loomio_md:"Loomio is an app for making decisions together. [Try for free](https://www.loomio.com)",slogan:"Better decisions together",powered_by_loomio:"Powered by Loomio",privacy_policy:"Privacy policy",terms_of_service:"Terms of service",front_page:"Front page"},group_survey:{describe_other:"Select the category that best describes your group",categories:{party:"Political party",coop:"Cooperative",union:"Union",board:"Governance & boards",nonprofit:"Nonprofit",membership:"Membership organization",professional:"Professional service company",self_managing:"Self-managing organization",community:"Community group",government:"Government/Local Government",other:"Other"}}}},il=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),rl=Fs.en;T.use(vs);const C=new vs({locale:"en",fallbackLocale:"en",messages:{en:rl},silentTranslationWarn:!0});class Ye extends x{constructor(...e){super(...e),this.privateDefaultValue=this.privateDefaultValue.bind(this),this.saveVolume=this.saveVolume.bind(this),this.move=this.move.bind(this),this.savePin=this.savePin.bind(this),this.saveUnpin=this.saveUnpin.bind(this),this.close=this.close.bind(this),this.reopen=this.reopen.bind(this),this.moveComments=this.moveComments.bind(this),this.discussion=this.discussion.bind(this),this.updateReadRanges=wn(function(){return this.remote.patchMember(this.keyOrId(),"mark_as_read",{ranges:Y.serialize(this.readRanges)})},2e3)}afterConstruction(){return this.isNew()&&(this.private=this.privateDefaultValue()),gt.apply(this,{showTitle:!0}),qe.apply(this)}defaultValues(){return{id:null,key:null,private:!0,lastItemAt:null,title:"",description:"",descriptionFormat:"html",forkedEventIds:[],ranges:[],readRanges:[],newestFirst:!1,files:[],imageFiles:[],attachments:[],linkPreviews:[],tags:[],recipientMessage:null,recipientAudience:null,recipientUserIds:[],recipientChatbotIds:[],recipientEmails:[],notifyRecipients:!0,groupId:null,usersNotifiedCount:null,discussionReaderUserId:null,pinnedAt:null,poll_template_keys_or_ids:[]}}buildCopy(){const e=this.clone();return e.id=null,e.key=null,e.title=C.t("templates.copy_of_title",{title:e.title}),e.authorId=i.user().id,e.pinnedAt=null,e.forkedEventIds=[],e.groupId=null,e.closedAt=null,e.closerId=null,e.createdAt=null,e.updatedAt=null,e}pollTemplates(){return E(this.pollTemplateKeysOrIds.map(e=>this.recordStore.pollTemplates.find(e)))}audienceValues(){return{name:this.group().name}}privateDefaultValue(){return this.group().discussionPrivacyOptions!=="public_only"}relationships(){return this.hasMany("polls",{sortBy:"createdAt",sortDesc:!0,find:{discardedAt:null}}),this.belongsTo("group"),this.belongsTo("author",{from:"users"}),this.belongsTo("closer",{from:"users"}),this.hasMany("discussionReaders")}discussion(){return this}template(){return this.recordStore.discussionTemplates.find(this.discussionTemplateId)}tags(){return this.recordStore.tags.collection.chain().find({id:{$in:this.tagIds}}).simplesort("priority").data()}members(){return this.recordStore.users.find(this.group().memberIds().concat(b(this.discussionReaders(),"userId")))}membersInclude(e){return this.inviterId&&!this.revokedAt&&i.user().id===e.id||this.group().membersInclude(e)}adminsInclude(e){return this.authorId===e.id||this.inviterId&&this.admin&&!this.revokedAt&&p.currentUserId===e.id||this.group().adminsInclude(e)}participantIds(){return E(xe(b(this.recordStore.comments.find({discussionId:this.id}),"authorId"),b(this.recordStore.polls.find({discussionId:this.id}),e=>
55e.participantIds()),[this.authorId]))}bestNamedId(){return(this.id&&this||this.groupId&&this.group()||{namedId(){}}).namedId()}createdEvent(){const e=this.recordStore.events.find({kind:"new_discussion",eventableId:this.id});if(!Jt(e))return e[0]}forkedEvent(){const e=this.recordStore.events.find({kind:"discussion_forked",eventableId:this.id});if(!Jt(e))return e[0]}reactions(){return this.recordStore.reactions.find({reactableId:this.id,reactableType:"Discussion"})}translationOptions(){return{title:this.title,groupName:this.groupName()}}authorName(){return this.author().nameWithTitle(this.group())}isBlank(){return this.description===""||this.description===null||this.description==="<p></p>"}groupName(){return(this.group()||{}).name}activePolls(){return j(this.polls(),e=>e.isVotable())}hasActivePoll(){return K(this.activePolls())}hasDecision(){return this.hasActivePoll()}closedPolls(){return j(this.polls(),e=>!e.isVotable())}activePoll(){return Ne(this.activePolls())}isUnread(){return!this.isDismissed()&&(this.lastReadAt==null||this.unreadItemsCount()>0)}isDismissed(){return this.discussionReaderId!=null&&this.dismissedAt!=null&&(gs(this.dismissedAt,this.lastActivityAt)||ys(this.dismissedAt,this.lastActivityAt))}hasUnreadActivity(){return this.isUnread()&&this.unreadItemsCount()>0}membership(){return this.recordStore.memberships.find({userId:p.currentUserId,groupId:this.groupId})[0]}volume(){return this.discussionReaderVolume}saveVolume(e,t){return t==null&&(t=!1),this.processing=!0,t?this.membership().saveVolume(e).finally(()=>this.processing=!1):(e!=null&&(this.discussionReaderVolume=e),this.remote.patchMember(this.keyOrId(),"set_volume",{volume:this.discussionReaderVolume}).finally(()=>this.processing=!1))}isMuted(){return this.volume()==="mute"}markAsSeen(){if(!this.lastReadAt)return this.remote.patchMember(this.keyOrId(),"mark_as_seen"),this.update({lastReadAt:new Date})}markAsRead(e){if(!this.hasRead(e))return this.readRanges.push([e,e]),this.readRanges=Y.reduce(this.readRanges),this.updateReadRanges()}update(e){return Ee(this.readRanges)&&Ee(e.readRanges)&&!V(e.readRanges,this.readRanges)&&(e.readRanges=Y.reduce(this.readRanges.concat(e.readRanges))),this.baseUpdate(e),this.readRanges=Y.intersectRanges(this.readRanges,this.ranges)}hasRead(e){return Y.includesValue(this.readRanges,e)}unreadItemsCount(){return this.itemsCount-this.readItemsCount()}readItemsCount(){return Y.length(this.readRanges)}firstSequenceId(){return(Ne(this.ranges)||[])[0]}lastSequenceId(){return(De(this.ranges)||[])[1]}lastReadSequenceId(){return(De(this.readRanges)||[])[1]}firstUnreadSequenceId(){return(this.unreadRanges()[0]||[])[0]}readSequenceIds(){return Y.rangesToArray(this.readRanges)}unreadRanges(){return Y.subtractRanges(this.ranges,this.readRanges)}unreadSequenceIds(){return Y.rangesToArray(this.unreadRanges())}dismiss(){return this.update({dismissedAt:new Date}),this.processing=!0,this.remote.patchMember(this.keyOrId(),"dismiss").finally(()=>this.processing=!1)}recall(){return this.update({dismissedAt:null}),this.processing=!0,this.remote.patchMember(this.keyOrId(),"recall").finally(()=>this.processing=!1)}move(){return this.processing=!0,this.remote.patchMember(this.keyOrId(),"move",{group_id:this.groupId}).finally(()=>this.processing=!1)}savePin(){return this.processing=!0,this.remote.patchMember(this.keyOrId(),"pin").finally(()=>this.processing=!1)}saveUnpin(){return this.processing=!0,this.remote.patchMember(this.keyOrId(),"unpin").finally(()=>this.processing=!1)}close(){return this.processing=!0,this.remote.patchMember(this.keyOrId(),"close").finally(()=>this.processing=!1)}reopen(){return this.processing=!0,this.remote.patchMember(this.keyOrId(),"reopen").finally(()=>this.processing=!1)}moveComments(){return this.processing=!0,this.remote.patchMember(this.keyOrId(),"move_comments",{forked_event_ids:this.forkedEventIds}).finally(()=>this.processing=!1)}fetchUsersNotifiedCount(){return this.recordStore.fetch({path:"announcements/users_notified_count",params:{discussion_id:this.id}}).then(e=>this.usersNotifiedCount=e.count)}forkedEvents(){return ae(this.recordStore.events.find(this.forkedEventIds),"sequenceId")}
55forkTarget(){if(K(this.forkedEvents()))return this.forkedEvents()[0].model()}}l(Ye,"singular","discussion"),l(Ye,"plural","discussions"),l(Ye,"uniqueIndices",["id","key"]),l(Ye,"indices",["groupId","authorId"]);const m=new T;class Oe{constructor(){const e={parentId:null,name:C.t("discussion.invite_only"),description:"",descriptionFormat:"html",groupPrivacy:"closed",handle:null,discussionPrivacyOptions:"public_or_private",membershipGrantedUpon:"approval",membersCanAnnounce:!0,membersCanAddMembers:!0,membersCanEditDiscussions:!0,membersCanEditComments:!0,membersCanDeleteComments:!0,membersCanRaiseMotions:!0,membersCanStartDiscussions:!0,membersCanCreateSubgroups:!1,motionsCanBeEdited:!1,files:[],imageFiles:[],attachments:[],linkPreviews:[],subscription:{active:!0},specifiedVotersOnly:!1,isNullGroup:!0,categorizePollTemplates:!0};k(e,(t,s)=>(T.set(this,s,t),!0))}chatbots(){return[]}poll(){return[]}discussions(){return[]}memberships(){return[]}membershipRequests(){return[]}subgroups(){return[]}parent(){return null}parentOrSelf(){return this}parentsAndSelf(){return[this]}selfAndSubgroups(){return[this]}group(){return this}hasSubgroups(){return!1}tags(){return[]}organisationIds(){return[]}membershipFor(){return null}members(){return[]}membersInclude(){return!1}adminsInclude(){return!1}adminMemberships(){return[]}admins(){return[]}memberIds(){return[]}adminIds(){return[]}parentName(){return null}privacyIsOpen(){return!1}privacyIsClosed(){return!1}privacyIsSecret(){return!0}isArchived(){return!1}isParent(){return!0}hasSubscription(){return!1}isSubgroupOfSecretParent(){return!1}hasPendingMembershipRequestFrom(){return!1}}l(Oe,"singular","group"),l(Oe,"plural","groups"),l(Oe,"subscription",{});class oo{constructor(){k({id:null,title:"No thread",description:"",descriptionFormat:"html",key:null,private:!0,lastItemAt:null,forkedEventIds:[],ranges:[],readRanges:[],isForking:!1,newestFirst:!1,files:[],imageFiles:[],attachments:[],linkPreviews:[],recipientMessage:null,recipientAudience:null,recipientUserIds:[],recipientChatbotIds:[],recipientEmails:[],notifyRecipients:!0,groupId:null},(t,s)=>(T.set(this,s,t),!0))}polls(){return[]}discussion(){return this}group(){return new Oe}markAsRead(){return!1}}l(oo,"singular","discussion"),l(oo,"plural","discussions");class al extends ${constructor(e){super(e),this.model=Ye,this.baseConstructor(e)}nullModel(){return new oo}search(e,t,s){return s==null&&(s={}),s.group_id=e,s.q=t,this.fetch({path:"search",params:s})}fetchInbox(e){return this.fetch({path:"dashboard",params:{exclude_types:"group",per:50}})}}class Ke extends x{defaultValues(){return{description:null,descriptionFormat:"html",processIntroduction:null,processIntroductionFormat:"html",title:null,tags:[],files:[],imageFiles:[],attachments:[],linkPreviews:[],maxDepth:3,newestFirst:!1,pollTemplateKeysOrIds:[],recipientAudience:null}}relationships(){return this.belongsTo("author",{from:"users"}),this.belongsTo("group")}buildDiscussion(){const e=this.recordStore.discussions.build(),t=H(this,Object.keys(this.defaultValues()));return t.discussionTemplateId=this.id,t.discussionTemplateKey=this.key,t.authorId=i.user().id,e.update(t),e}pollTemplates(){return E(this.pollTemplateKeysOrIds.map(e=>this.recordStore.pollTemplates.find(e)))}pollTemplateIds(){return this.pollTemplateKeysOrIds.filter(e=>typeof e=="number")}pollTemplateKeys(){return this.pollTemplateKeysOrIds.filter(e=>typeof e=="string")}}l(Ke,"singular","discussionTemplate"),l(Ke,"plural","discussionTemplates"),l(Ke,"uniqueIndices",["id","key"]),l(Ke,"indices",["groupId"]);class ll extends ${constructor(e){super(e),this.model=Ke,this.baseConstructor(e)}}class Ze extends x{defaultValues(){return{discussionId:null,userId:null,guest:!1}}relationships(){this.belongsTo("user",{from:"users"}),this.belongsTo("discussion")}}l(Ze,"singular","discussionReader"),l(Ze,"plural","discussionReaders"),l(Ze,"indices",["discussionId","userId"]),l(Ze,"uniqueIndices",["id"]);class cl extends ${constructor(e){super(e),this.model=Ze,this.baseConstructor(e)}}class Je extends x{constructor(...e){super(...e),this.removeFromThread=this.removeFromThread.bind(this)}relationships(){this.belongsTo("parent",{from:"events"}),this.belongsTo("actor",{from:"users"}),this.belongsTo("discussion"),this.hasMany("notifications")}defaultValues(){return{pinned:!1,eventableId:null,eventableType:null,discu
55ssionId:null,sequenceId:null,positition:0,showReplyForm:!0}}parentOrSelf(){return this.parentId?this.parent():this}isNested(){return this.depth>1}isSurface(){return this.depth===1}surfaceOrSelf(){return this.isNested()?this.parent():this}children(){return this.recordStore.events.find({parentId:this.id})}delete(){return this.deleted=!0}actorName(){return this.actor()?this.actor().nameWithTitle(this.discussion().group()):C.t("common.anonymous")}actorUsername(){if(this.actor())return this.actor().username}model(){return this.recordStore[x.eventTypeMap[this.eventableType]].find(this.eventableId)}isUnread(){return!this.discussion().hasRead(this.sequenceId)}markAsRead(){return this.discussion().markAsRead(this.sequenceId)}beforeRemove(){return po(this.notifications(),"remove")}removeFromThread(){return this.remote.patchMember(this.id,"remove_from_thread").then(()=>this.remove())}pin(e){return this.remote.patchMember(this.id,"pin",{pinned_title:e})}fillPinnedTitle(){return this.pinnedTitle=this.suggestedTitle()}suggestedTitle(){const e=this.model();if(!e)return"";if(e.title)return e.title.replace(new RegExp("<[^>]*>?","gm"),"");{let t;return(t=new DOMParser().parseFromString(e.statement||e.body,"text/html").querySelector("h1,h2,h3"))?t.textContent:this.actor().name}}unpin(){return this.remote.patchMember(this.id,"unpin")}isForking(){return this.discussion()&&(this.discussion().forkedEventIds.includes(this.id)||this.parentIsForking())}parentIsForking(){return this.parent()&&this.parent().isForking()}forkingDisabled(){return this.parentIsForking()||this.parent()&&this.parent().kind==="poll_created"}toggleForking(){return this.isForking()?this.discussion().update({forkedEventIds:Mt(this.discussion().forkedEventIds,this.id)}):this.discussion().forkedEventIds.push(this.id)}next(){return this.recordStore.events.find({parentId:this.parentId,position:this.position+1})[0]}previous(){return this.recordStore.events.find({parentId:this.parentId,position:this.position-1})[0]}}l(Je,"singular","event"),l(Je,"plural","events"),l(Je,"indices",["discussionId","sequenceId","position","depth","parentId","positionKey"]),l(Je,"uniqueIndices",["id"]);class dl extends ${constructor(e){super(e),this.model=Je,this.baseConstructor(e)}fetchByDiscussion(e,t){return t==null&&(t={}),t.discussion_key=e,this.fetch({params:t})}findByDiscussionAndSequenceId(e,t){return this.collection.chain().find({discussionId:e.id}).find({sequenceId:t}).data()[0]}}class Qe extends x{constructor(...e){super(...e),this.archive=this.archive.bind(this),this.export=this.export.bind(this),this.exportCSV=this.exportCSV.bind(this),this.uploadLogo=this.uploadLogo.bind(this),this.uploadCover=this.uploadCover.bind(this)}defaultValues(){return{parentId:null,name:"",description:"",descriptionFormat:"html",groupPrivacy:"secret",handle:null,discussionPrivacyOptions:"private_only",membershipGrantedUpon:"approval",membersCanAnnounce:!0,membersCanAddMembers:!0,membersCanEditDiscussions:!0,membersCanEditComments:!0,membersCanDeleteComments:!0,membersCanRaiseMotions:!0,membersCanStartDiscussions:!0,membersCanCreateSubgroups:!1,motionsCanBeEdited:!1,parentMembersCanSeeDiscussions:!1,category:null,files:[],imageFiles:[],attachments:[],linkPreviews:[],subscription:{},specifiedVotersOnly:!1,recipientMessage:null,recipientAudience:null,recipientUserIds:[],recipientChatbotIds:[],recipientEmails:[],notifyRecipients:!0,isMember:!1,isAdmin:!1}}afterConstruction(){return this.privacyIsClosed()&&(this.allowPublicThreads=this.discussionPrivacyOptions==="public_or_private"),gt.apply(this,{showTitle:!0}),qe.apply(this)}relationships(){return this.hasMany("discussions",{find:{discardedAt:null}}),this.hasMany("polls",{find:{discardedAt:null}}),this.hasMany("membershipRequests"),this.hasMany("memberships"),this.hasMany("chatbots"),this.hasMany("allDocuments",{from:"documents",with:"groupId",of:"id"}),this.hasMany("subgroups",{from:"groups",with:"parentId",of:"id",orderBy:"name"}),this.belongsTo("parent",{from:"groups"}),this.belongsTo("creator",{from:"users"})}author(){return this.creator()}isBlank(){return this.description===""||this.description===null||this.description==="<p></p>"}tags(){return this.recordStore.tags.collection.chain().find({groupId:this.id}).simplesort("priority").data()}tagsByName(){return this.recordStore.tags.collection.chain().find({groupId:this.id}).simplesort("name").data()}tagNames(){return this.recordStore.tags.collection.chain().find({groupId:this.id}).simplesort("name").data().map(e=>e.name)}
55parentOrSelf(){return this.parentId?this.parent():this}group(){return this}fetchToken(){return this.remote.getMember(this.id,"token").then(()=>this.token)}resetToken(){return this.remote.postMember(this.id,"reset_token").then(()=>this.token)}pendingMembershipRequests(){return j(this.membershipRequests(),e=>e.isPending())}hasPendingMembershipRequests(){return K(this.pendingMembershipRequests())}hasPendingMembershipRequestFrom(e){return K(this.pendingMembershipRequests(),t=>t.requestorId===e.id)}previousMembershipRequests(){return j(this.membershipRequests(),e=>!e.isPending())}hasPreviousMembershipRequests(){return K(this.previousMembershipRequests())}pendingInvitations(){return j(this.invitations(),e=>e.isPending()&&e.singleUse)}hasPendingInvitations(){return K(this.pendingInvitations())}hasSubgroups(){return this.isParent()&&this.subgroups().length}publicOrganisationIds(){return b(j(this.subgroups().concat(this),e=>e.groupPrivacy==="open"),"id")}organisationIds(){return b(this.subgroups(),"id").concat(this.id)}selfAndSubgroups(){return this.recordStore.groups.find(this.selfAndSubgroupIds())}selfAndSubgroupIds(){return[this.id].concat(this.recordStore.groups.find({parentId:this.id}).map(e=>e.id))}membershipFor(e){return this.recordStore.memberships.find({groupId:this.id,userId:e.id})[0]}members(){return this.recordStore.users.collection.find({id:{$in:this.memberIds()}})}parentsAndSelf(){return this.selfAndParents().reverse()}selfAndParents(){return E([this].concat(this.parentId&&this.parent().parentsAndSelf()))}parentAndSelfMemberships(){return this.recordStore.memberships.collection.find({groupId:{$in:this.parentOrSelf().selfAndSubgroupIds()}})}parentAndSelfMembershipIds(){return this.parentAndSelfMemberships().map(e=>e.id)}parentAndSelfMembers(){return this.recordStore.users.collection.find({id:{$in:this.parentAndSelfMemberships().map(e=>e.userId)}})}parentAndSelfMemberIds(){return this.parentAndSelfMembers().map(e=>e.id)}membersInclude(e){return this.membershipFor(e)||!1}adminsInclude(e){return this.recordStore.memberships.find({groupId:this.id,userId:e.id,admin:!0})[0]||!1}adminMemberships(){return this.recordStore.memberships.find({groupId:this.id,admin:!0})}admins(){return this.recordStore.users.find({id:{$in:this.adminIds()}})}memberIds(){return b(this.memberships(),"userId")}participantIds(){return this.memberIds()}adminIds(){return b(this.adminMemberships(),"userId")}parentName(){if(this.parent()!=null)return this.parent().name}privacyIsOpen(){return this.groupPrivacy==="open"}privacyIsClosed(){return this.groupPrivacy==="closed"}privacyIsSecret(){return this.groupPrivacy==="secret"}isArchived(){return this.archivedAt!=null}isParent(){return this.parentId==null}archive(){return this.remote.patchMember(this.key,"archive").then(()=>(this.remove(),k(this.memberships(),e=>e.remove())))}export(){return this.remote.postMember(this.id,"export")}exportCSV(){return this.remote.postMember(this.id,"export_csv")}uploadLogo(e){return this.remote.upload(`${this.key}/upload_photo/logo`,e,{},function(){})}uploadCover(e){return this.remote.upload(`${this.key}/upload_photo/cover_photo`,e,{},function(){})}hasSubscription(){return this.subscriptionKind!=null}isSubgroupOfSecretParent(){return this.parent()&&this.parent().privacyIsSecret()}isTrialOrDemo(){return["trial","demo"].includes(this.parentOrSelf().subscription.plan)}}l(Qe,"singular","group"),l(Qe,"plural","groups"),l(Qe,"uniqueIndices",["id","key"]),l(Qe,"indices",["parentId"]);class ul extends ${constructor(e){super(e),this.model=Qe,this.baseConstructor(e)}nullModel(){return new Oe}fuzzyFind(e){return this.find(e)||Ne(this.find({handle:`${e}`.toLowerCase()}))}findOrFetch(e,t){t==null&&(t={});const s=this.fuzzyFind(e);return s?(this.remote.fetchById(e,t),Promise.resolve(s)):this.remote.fetchById(e,t).then(()=>this.fuzzyFind(e))}fetchByParent(e){return this.fetch({path:`${e.id}/subgroups`})}fetchExploreGroups(e,t){return t==null&&(t={}),t.q=e,this.fetch({params:t})}getExploreResultsCount(e,t){return t==null&&(t={}),t.q=e,this.fetch({path:"count_explore_results",params:t})}getHandle({name:e,parentHandle:t}){return this.fetch({path:"suggest_handle",params:{name:e,parent_handle:t}})}}class Ae extends x{defaultValues(){return{userId:null,groupId:null,archivedAt:null,inviterId:null,volume:null}}relationships(){this.belongsTo("group"),this.belongsTo("user"),this.belongsTo("inviter",{from:"users"})}userName(){return this.user().nameWithTitle(this.group())}userUsername(){return this.user().username}groupName(){return this.group().name}saveVolume(e,t){return t==null&&(t=!1),this.processing=!0,this.remote.patchMember(this.keyOrId(),"set_volume",{volume:e,apply_to_all:t,unsubscribe_token:this.user().unsubscribeToken}).then(()=>t?(this.recordStore.discussions.collection.find({groupId:{$in:this.group().organisationIds()}}
55).forEach(s=>s.update({discussionReaderVolume:null})),k(this.user().memberships(),s=>s.update({volume:e}))):k(this.group().discussions(),s=>s.update({discussionReaderVolume:null}))).finally(()=>this.processing=!1)}resend(){return this.remote.postMember(this.keyOrId(),"resend").then(()=>this.resent=!0)}isMuted(){return this.volume==="mute"}beforeRemove(){return po(this.recordStore.events.find({eventableType:"membership",eventableId:this.id}),"remove")}}l(Ae,"singular","membership"),l(Ae,"plural","memberships"),l(Ae,"indices",["userId","groupId"]),l(Ae,"uniqueIndices",["id"]),l(Ae,"searchableFields",["userName","userUsername"]);class pl extends ${constructor(e){super(e),this.model=Ae,this.baseConstructor(e)}forUser(e){return this.collection.find({userId:e.id})}forModel(e){return this.collection.find({groupId:{$in:e.groupIds()}})}forGroup(e){return this.collection.find({groupId:e.id})}joinGroup(e){return this.remote.post("join_group",{group_id:e.id})}fetchMyMemberships(){return this.fetch({path:"my_memberships"})}fetchByNameFragment(e,t,s=5){return this.fetch({path:"autocomplete",params:{q:e,group_key:t,per:s}})}fetchByUser(e,t={}){return this.fetch({path:"for_user",params:{user_id:e.id,per:t.per||30}})}makeAdmin(e){return this.remote.postMember(e.id,"make_admin")}removeAdmin(e){return this.remote.postMember(e.id,"remove_admin")}saveExperience(e,t){return this.remote.postMember(t.id,"save_experience",{experience:e})}}class It extends x{constructor(...e){super(...e),this.isPending=this.isPending.bind(this)}defaultValues(){return{introduction:null,groupId:null}}relationships(){this.belongsTo("group"),this.belongsTo("requestor",{from:"users"}),this.belongsTo("responder",{from:"users"})}afterConstruction(){const e=this.name||this.email||"";return this.fakeUser={name:e,email:this.email,avatarKind:"initials",constructor:{singular:"user"},avatarInitials:e.split(" ").map(t=>t[0]).join("")}}nameAndEmail(){return this.actor().email?`${this.actor().name} <${this.actor().email}>`:this.actor().name}actor(){return this.byExistingUser()?this.requestor():this.fakeUser}byExistingUser(){return this.requestorId!=null}isPending(){return this.respondedAt==null}formattedResponse(){return Ce(this.response)}}l(It,"singular","membershipRequest"),l(It,"plural","membershipRequests"),l(It,"indices",["id","groupId"]);class ml extends ${constructor(e){super(e),this.model=It,this.baseConstructor(e)}fetchMyPendingByGroup(e,t){return t==null&&(t={}),t.group_key=e,this.remote.get("my_pending",t)}fetchPendingByGroup(e,t){return t==null&&(t={}),t.group_key=e,this.remote.get("pending",t)}fetchPreviousByGroup(e,t){return t==null&&(t={}),t.group_key=e,this.remote.get("previous",t)}approve(e){return this.remote.postMember(e.id,"approve",{group_key:e.group().key})}ignore(e){return this.remote.postMember(e.id,"ignore",{group_key:e.group().key})}}const so={common:{slight_smile:"ð",heart:"â¤ï¸",tada:"ð",thumbsup:"ð"},hands:{raised_hands:"ð",pray:"ð",fingers_crossed:"ð¤",clap:"ð",v:"âï¸",metal:"ð¤",ok_hand:"ð",wave:"ð",call_me:"ð¤",thumbs_up:"ð",thumbsdown:"ð",ok_hand:"ð",punch:"ð",fist:"â",wave:"ð",hand:"â",open_hands:"ð",muscle:"ðª",ok_hand:"ð"},expressions:{simple_smile:"ð",grinning:"ð",laughing:"ð",hugging:"ð¤",sunglasses:"ð",wink:"ð",nerd:"ð¤",relieved:"ð",worried:"ð",confused:"ð",confounded:"ð",neutral_face:"ð",slight_frown:"â¹ï¸",disappointed:"ð",angry:"ð¡",weary:"ð©",astonished:"ð²",rolling_eyes:"ð",cry:"ð¢",scream:"ð±",thinking:"ð¤",neutral_face:"ð",slight_frown:"â¹ï¸",disappointed:"ð",scream:"ð±",sleeping:"ð´",smile:"ð",smiley:"ð",grinning:"ð",blush:"ð",heart_eyes:"ð",kissing_heart:"ð",kissing_closed_eyes:"ð",kissing:"ð",kissing_smiling_eyes:"ð",stuck_out_tongue_winking_eye:"ð",stuck_out_tongue_closed_eyes:"ð",stuck_out_tongue:"ð",flushed:"ð³",grin:"ð",pensive:"ð",relieved:"ð",unamused:"ð",disappointed:"ð",persevere:"ð£",cry:"ð¢",joy:"ð",sob:"ð",sleepy:"ðª",disappointed_relieved:"ð¥",cold_sweat:"ð°",sweat_smile:"ð
",sweat:"ð",weary:"ð©",tired_face:"ð«",fearful:"ð¨",scream:"ð±",angry:"ð ",rage:"ð¡",triumph:"ð¤",confounded:"ð",yum:"ð",mask:"ð·",sunglasses:"ð",sleeping:"ð´",dizzy_face:"ðµ",frowning:"ð¦",anguished:"ð§",imp:"ð¿",open_mouth:"ð®",grimacing:"ð¬",neutral_face:"ð",hushed:"ð¯",smirk:"ð",expressionless:"ð"},people:{man_with_gua_pi_mao:"ð²",man_with_turban:"ð³",cop:"ð®",construction_worker:"ð·",guardsman:"ð",baby:"ð¶",boy:"ð¦",girl:"ð§",man:"ð¨",woman:"ð©",older_man:"ð´",older_woman:"ðµ",person_with_blond_hair:"ð±",angel:"ð¼",princess:"ð¸",smiley_cat:"ðº",smile_cat:"ð¸",heart_eyes_cat:"ð»",kissing_c
55at:"ð½",smirk_cat:"ð¼",scream_cat:"ð",crying_cat_face:"ð¿",joy_cat:"ð¹",pouting_cat:"ð¾",japanese_ogre:"ð¹",japanese_goblin:"ðº",see_no_evil:"ð",hear_no_evil:"ð",speak_no_evil:"ð",skull:"ð",alien:"ð½",hankey:"ð©",ear:"ð",eyes:"ð",nose:"ð",tongue:"ð
",lips:"ð",walking:"ð¶",runner:"ð",dancer:"ð",couple:"ð«",family:"ðª",couplekiss:"ð",couple_with_heart:"ð",dancers:"ð¯",ok_woman:"ð",no_good:"ð
",information_desk_person:"ð",raising_hand:"ð",massage:"ð",haircut:"ð",nail_care:"ð
",bride_with_veil:"ð°",person_with_pouting_face:"ð",person_frowning:"ð",bow:"ð"},nature:{dog:"ð¶",wolf:"ðº",cat:"ð±",mouse:"ð",hamster:"ð¹",rabbit:"ð°",frog:"ð¸",tiger:"ð¯",koala:"ð¨",bear:"ð»",pig:"ð·",pig_nose:"ð½",cow:"ð®",boar:"ð",monkey_face:"ðµ",monkey:"ð",horse:"ð´",sheep:"ð",elephant:"ð",panda_face:"ð¼",penguin:"ð§",bird:"ð¦",baby_chick:"ð¤",hatched_chick:"ð¥",hatching_chick:"ð£",chicken:"ð",snake:"ð",turtle:"ð¢",bug:"ð",bee:"ð",ant:"ð",beetle:"ð",snail:"ð",octopus:"ð",shell:"ð",tropical_fish:"ð ",fish:"ð",dolphin:"ð¬",whale:"ð³",racehorse:"ð",dragon_face:"ð²",blowfish:"ð¡",camel:"ð«",poodle:"ð©",feet:"ð¾",bouquet:"ð",cherry_blossom:"ð¸",tulip:"ð·",four_leaf_clover:"ð",rose:"ð¹",sunflower:"ð»",hibiscus:"ðº",maple_leaf:"ð",leaves:"ð",fallen_leaf:"ð",herb:"ð¿",ear_of_rice:"ð¾",mushroom:"ð",cactus:"ðµ",palm_tree:"ð´",chestnut:"ð°",seedling:"ð±",blossom:"ð¼",new_moon:"ð",first_quarter_moon:"ð",moon:"ð",full_moon:"ð",first_quarter_moon_with_face:"ð",crescent_moon:"ð",earth_asia:"ð",volcano:"ð",milky_way:"ð",stars:"ð ",partly_sunny:"â
",snowman:"â",cyclone:"ð",foggy:"ð",rainbow:"ð",ocean:"ð"},objects:{tophat:"ð©",crown:"ð",womans_hat:"ð",athletic_shoe:"ð",mans_shoe:"ð",sandal:"ð¡",high_heel:"ð ",boot:"ð¢",shirt:"ð",necktie:"ð",womans_clothes:"ð",dress:"ð",running_shirt_with_sash:"ð½",jeans:"ð",kimono:"ð",bikini:"ð",briefcase:"ð¼",handbag:"ð",pouch:"ð",purse:"ð",eyeglasses:"ð",ribbon:"ð",closed_umbrella:"ð",fire:"ð¥",sparkles:"â¨",star:"â",star2:"ð",dizzy:"ð«",boom:"ð¥",anger:"ð¢",sweat_drops:"ð¦",droplet:"ð§",zzz:"ð¤",dash:"ð¨",lipstick:"ð",yellow_heart:"ð",blue_heart:"ð",purple_heart:"ð",green_heart:"ð",broken_heart:"ð",heartpulse:"ð",heartbeat:"ð",two_hearts:"ð",sparkling_heart:"ð",revolving_hearts:"ð",cupid:"ð",love_letter:"ð",kiss:"ð",ring:"ð",gem:"ð",speech_balloon:"ð¬",footprints:"ð£",bamboo:"ð",gift_heart:"ð",dolls:"ð",school_satchel:"ð",mortar_board:"ð",flags:"ð",fireworks:"ð",sparkler:"ð",wind_chime:"ð",rice_scene:"ð",jack_o_lantern:"ð",ghost:"ð»",santa:"ð
",christmas_tree:"ð",gift:"ð",tanabata_tree:"ð",confetti_ball:"ð",balloon:"ð",crossed_flags:"ð",crystal_ball:"ð®",movie_camera:"ð¥",camera:"ð·",video_camera:"ð¹",vhs:"ð¼",cd:"ð¿",dvd:"ð",minidisc:"ð½",floppy_disk:"ð¾",computer:"ð»",iphone:"ð±",telephone_receiver:"ð",pager:"ð",fax:"ð ",satellite:"ð¡",tv:"ðº",radio:"ð»",loud_sound:"ð",bell:"ð",loudspeaker:"ð¢",mega:"ð£",hourglass_flowing_sand:"â³",hourglass:"â",alarm_clock:"â°",watch:"â",unlock:"ð",lock:"ð",lock_with_ink_pen:"ð",closed_lock_with_key:"ð",key:"ð",mag_right:"ð",bulb:"ð¡",flashlight:"ð¦",electric_plug:"ð",battery:"ð",mag:"ð",bath:"ð",toilet:"ð½",wrench:"ð§",nut_and_bolt:"ð©",hammer:"ð¨",door:"ðª",smoking:"ð¬",bomb:"ð£",gun:"ð«",hocho:"ðª",pill:"ð",syringe:"ð",moneybag:"ð°",yen:"ð´",dollar:"ðµ",credit_card:"ð³",money_with_wings:"ð¸",calling:"ð²","e-mail":"ð§",inbox_tray:"ð¥",outbox_tray:"ð¤",envelope_with_arrow:"ð©",incoming_envelope:"ð¨",mailbox:"ð«",mailbox_closed:"ðª",postbox:"ð®",package:"ð¦",memo:"ð",page_facing_up:"ð",page_with_curl:"ð",bookmark_tabs:"ð",bar_chart:"ð",chart_with_upwards_trend:"ð",chart_with_downwards_trend:"ð",scroll:"ð",clipboard:"ð",date:"ð
",calendar:"ð",card_index:"ð",file_folder:"ð",open_file_folder:"ð",pushpin:"ð",paperclip:"ð",straight_ruler:"ð",triangular_ruler:"ð",closed_book:"ð",green_book:"ð",blue_book:"ð",orange_book:"ð",notebook:"ð",notebook_with_decorative_cover:"ð",ledger:"ð",books:"ð",book:"ð",bookmark:"ð",name_badge:"ð",newspaper:"ð°",art:"ð¨",clapper:"ð¬",microphone:"ð¤",headphones:"ð§",musical_score:"ð¼",musical_note:"ðµ",notes:"ð¶",musical_keyboard:"ð¹",violin:"ð»",trumpet:"ðº",saxophone:"ð·",guitar:"ð¸",space_invader:"ð¾",video_game:"ð®",black_joker:"ð",flower_playing_cards:"ð´",mahjong:"ð",game_die:"ð²",dart:"ð¯",football:"ð",basketball:"ð",soccer:"â½",baseball:"â¾",tennis:"ð¾","8ball":"ð±",bowling:"ð³",golf:"â³",checkered_flag:"ð",trophy:"ð",ski:"ð¿",snowboarder:"ð
55",swimmer:"ð",surfer:"ð",fishing_pole_and_fish:"ð£",tea:"ðµ",sake:"ð¶",beer:"ðº",beers:"ð»",cocktail:"ð¸",tropical_drink:"ð¹",wine_glass:"ð·",fork_and_knife:"ð´",pizza:"ð",hamburger:"ð",fries:"ð",poultry_leg:"ð",meat_on_bone:"ð",spaghetti:"ð",curry:"ð",fried_shrimp:"ð¤",bento:"ð±",sushi:"ð£",fish_cake:"ð¥",rice_ball:"ð",rice_cracker:"ð",rice:"ð",ramen:"ð",stew:"ð²",oden:"ð¢",dango:"ð¡",egg:"ð³",bread:"ð",doughnut:"ð©",custard:"ð®",icecream:"ð¦",ice_cream:"ð¨",shaved_ice:"ð§",birthday:"ð",cake:"ð°",cookie:"ðª",chocolate_bar:"ð«",candy:"ð¬",lollipop:"ð",honey_pot:"ð¯",apple:"ð",green_apple:"ð",tangerine:"ð",cherries:"ð",grapes:"ð",watermelon:"ð",strawberry:"ð",peach:"ð",melon:"ð",banana:"ð",pineapple:"ð",sweet_potato:"ð ",eggplant:"ð",tomato:"ð
",corn:"ð½",arrow_right:"â¡ï¸",arrow_left:"â¬
ï¸",arrow_up:"â¬ï¸",arrow_down:"â¬ï¸"},places:{house:"ð ",house_with_garden:"ð¡",school:"ð«",office:"ð¢",post_office:"ð£",hospital:"ð¥",bank:"ð¦",convenience_store:"ðª",love_hotel:"ð©",hotel:"ð¨",wedding:"ð",church:"âª",department_store:"ð¬",city_sunrise:"ð",city_sunset:"ð",japanese_castle:"ð¯",european_castle:"ð°",tent:"âº",factory:"ð",tokyo_tower:"ð¼",japan:"ð¾",mount_fuji:"ð»",sunrise_over_mountains:"ð",sunrise:"ð
",night_with_stars:"ð",statue_of_liberty:"ð½",bridge_at_night:"ð",carousel_horse:"ð ",ferris_wheel:"ð¡",fountain:"â²",roller_coaster:"ð¢",ship:"ð¢",boat:"âµ",speedboat:"ð¤",rocket:"ð",seat:"ðº",station:"ð",bullettrain_side:"ð",bullettrain_front:"ð
",metro:"ð",railway_car:"ð",bus:"ð",blue_car:"ð",car:"ð",taxi:"ð",truck:"ð",rotating_light:"ð¨",police_car:"ð",fire_engine:"ð",ambulance:"ð",bike:"ð²",barber:"ð",busstop:"ð",ticket:"ð«",traffic_light:"ð¥",construction:"ð§",beginner:"ð°",fuelpump:"â½",izakaya_lantern:"ð®",slot_machine:"ð°",moyai:"ð¿",circus_tent:"ðª",performing_arts:"ð",round_pushpin:"ð",triangular_flag_on_post:"ð©",no_smoking:"ð",100:"ð¯",no_entry_sign:"ð«",white_check_mark:"â
"}},Ms=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32-\ude3a]|[\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935)/g,qs={};k(so,(o,e)=>k(o,(t,s)=>qs[s]=t));const _l=/\:[a-zA-Z0-9-_+]+\:/g;var js=function(o){return o&&o[0]===":"&&o[o.length-1]===":"?o.substring(1,o.length-1):o},wo=o=>hl(js(o)),hl=o=>qs[Yo(o)]||`:${Yo(o)}:`,Yo=function(o){const e={"+1":"thumbsup","-1":"thumbsdown",thinking_face:"thinking",crossed_fingers:"fingers_crossed",nerd_face:"nerd",hugging_face:"hugging",slightly_frowning_face:"slight_frown"};return e[o]!=null?e[o]:o},wt=o=>o.replace(_l,wo),ko=function(o,e){o=o.match(Ms)[0];const t="/img/emojis/",s=".png";return t+kn(o).toLowerCase().replace(" ","-")+s},fl=o=>'<img class="emoji" src="'+ko(o)+'">',Us=function(){const o=document.createElement("canvas");if(!o.getContext||!o.getContext("2d")||typeof o.getContext("2d").fillText!="function")return!1;const e=o.getContext("2d");return e.textBaseline="top",e.font="32px Arial",e.fillText("ð",0,0),e.getImageData(16,16,1,1).data[0]!==0}(),zs=function(o){return Us?o:o.replace(Ms,e=>fl(e))};class no{constructor(){this.name=C.t("common.anonymous"),this.username=null}nameWithTitle(){return this.name}}l(no,"singular","group"),l(no,"plural","groups");class Xe extends x{constructor(...e){super(...e),this.href=this.href.bind(this)}defaultValues(){return{title:null,model:null,pollType:null,name:null,reaction:null}}relationships(){this.belongsTo("event"),this.belongsTo("user"),this.belongsTo("actor",{from:"users"})}actionPath(){switch(this.kind()){case"invitation_accepted":return this.actor().username}}href(){return this.url?this.kind==="membership_requested"?"/"+this.url.split("/")[1]+"/members/requests":this.url.startsWith(p.baseUrl)?"/"+this.url.replace(p.baseUrl,""):"/"+this.url:"/"}args(){return{actor:this.name,reaction:this.kind==="reaction_created"?wo(this.reaction):void 0,title:this.title,poll_type:this.pollType,model:this.model}}actor(){return this.actor()||this.membershipRequestActor()}membershipRequestActor(){const e=(this.name||"").toString();return Records.users.build({name:e,avatarInitials:e.split(" ").map(t=>t[0]).join(""),avatarKind:"initials"})}isRouterLink(){return!this.url.includes("/invitations/")}}l(Xe,"singular","notification"),l(Xe,"plural","notifications"),l(Xe,"uniqueIndices",["id"]),l(Xe,"indices",["eventId","userId"]);class gl extends ${constructor(e){super(e),this.model=Xe,this.baseConstructor(e)}fetchNotifications(e,t){return t==null&&(t={}),this.fetch({params:t})}viewed(){let e=!1;if(this.collection.find({viewed:{$ne:!0}}
55).forEach(t=>(e=!0,t.update({viewed:!0}))),e)return this.remote.post("viewed")}}class et extends x{relationships(){return this.hasMany("memberships")}defaultValues(){return{autodetectTimeZone:!1,shortBio:"",shortBioFormat:"html",files:[],imageFiles:[],attachments:[],linkPreviews:[],locale:p.defaultLocale,experiences:[],dateTimePref:"day_iso"}}nameOrEmail(){return this.name||this.email||this.username||this.placeholderName}nameOrUsername(){return this.name||this.username}simpleBio(){return mo((this.shortBio||"").replace(/<\/?[^>]+(>|$)/g,""),{length:70})}localeName(){return(_o(p.locales,e=>e.key===this.locale)||{}).name}adminMemberships(){return this.recordStore.memberships.find({userId:this.id,admin:!0})}groupIds(){return b(this.memberships(),"groupId")}groups(){return this.recordStore.groups.collection.chain().find({id:{$in:this.groupIds()},archivedAt:null}).simplesort("fullName").data()}participantIds(){return[]}parentGroups(){return j(this.groups(),e=>!e.parentId)}inboxGroups(){return xe([this.parentGroups(),this.orphanSubgroups()])}allThreads(){return xe(this.groups().map(e=>e.discussions()))}orphanSubgroups(){return j(this.groups(),e=>e.parentId&&!e.parent().membersInclude(this))}orphanParents(){return W(E(this.orphanSubgroups().map(e=>e.parentId&&e.parent())))}membershipFor(e){if(e)return this.recordStore.memberships.find({groupId:e.id,userId:this.id})[0]}firstName(){if(this.name)return Ne(this.name.split(" "))}saveVolume(e,t){return this.processing=!0,this.remote.post("set_volume",{volume:e,apply_to_all:t,unsubscribe_token:this.unsubscribeToken}).then(()=>{if(t)return this.allThreads().forEach(s=>s.update({discussionReaderVolume:null})),this.memberships().forEach(s=>s.update({volume:e}))}).finally(()=>this.processing=!1)}hasExperienced(e,t){return t&&this.isMemberOf(t)?this.membershipFor(t).experiences[e]:this.experiences[e]}title(e){return this.titles[e.id]||this.titles[e.parentId]}nameWithTitle(e){const t=this.nameOrEmail();if(!e)return t;const s=this.titles||{};return E([t,s[e.id]||s[e.parentId]]).join(" · ")}}l(et,"singular","user"),l(et,"plural","users"),l(et,"lazyLoad",!0),l(et,"uniqueIndices",["id"]);let Ko=!1;class vl extends ${constructor(e){super(e),this.fetchMentionable=this.fetchMentionable.bind(this),this.updateProfile=this.updateProfile.bind(this),this.uploadAvatar=this.uploadAvatar.bind(this),this.changePassword=this.changePassword.bind(this),this.destroy=this.destroy.bind(this),this.saveExperience=this.saveExperience.bind(this),this.model=et,this.apiEndPoint="profile",this.baseConstructor(e)}nullModel(){return new no}fetchTimeZones(){return this.remote.fetch({path:"time_zones"})}findOrFetchGroups(){return Ko?(this.fetchGroups(),Promise.resolve(!0)):this.fetchGroups().then(()=>Ko=!0)}fetchGroups(){return this.fetch({path:"groups",params:{exclude_types:"user"}})}fetchMentionable(e,t){return t.id==null&&t.discussionId&&(t=t.discussion()),t.id==null&&!t.discussionId&&(t=t.group()),this.fetch({path:"mentionable_users",params:{q:e,[`${t.constructor.singular}_id`]:t.id}})}updateProfile(e){return e.processing=!0,e.beforeSave(),this.remote.post("update_profile",Re(e.serialize(),{unsubscribe_token:e.unsubscribeToken})).catch(t=>{throw t.errors&&e.setErrors(t.errors),t}).finally(()=>e.processing=!1)}uploadAvatar(e){return this.remote.upload("upload_avatar",e)}changePassword(e){return e.processing=!0,this.remote.post("change_password",e.serialize()).finally(()=>e.processing=!1)}destroy(){return this.remote.delete("/")}saveExperience(e,t){return t==null&&(t=!0),this.remote.post("save_experience",{experience:e,value:t})}emailStatus(e,t){return this.fetch({path:"email_status",params:N({email:e,token:t},bs)})}checkEmailExistence(e){return this.fetch({path:"email_exists",params:{email:e}})}sendMergeVerificationEmail(e){return this.fetch({path:"send_merge_verification_email",params:{target_email:e}})}}class Ct extends x{relationships(){return this.belongsTo("discussion"),this.belongsTo("comment"),this.belongsTo("poll"),this.belongsTo("author",{from:"users",by:"whodunnit"})}editedAttributeNames(){return j(J(this.changes).sort(),e=>te(["title","name","description","closing_at","private","document_ids"],e))}attributeEdited(e){return te(J(this.changes),e)}authorName(){if(this.author())return this.author().nameWithTitle(this.model().group())}model(){return this.recordStore[`${this.itemType.toLowerCase()}s`].find(this.itemId)}isCurrent(){return this.index===this.model().versionsCount-1}isOriginal(){return this.index===0}authorOrEditorName(){return this.isOriginal()?this.model().authorName():this.authorName()}}l(Ct,"singular","version"),l(Ct,"plural","versions"),l(Ct,"indices",["discu
55ssionId"]);class yl extends ${constructor(e){super(e),this.model=Ct,this.baseConstructor(e)}fetchVersion(e,t,s){const n=e.constructor.singular;return this.fetch({params:{[`${n}_id`]:e.id,index:t}})}}class At extends x{}l(At,"singular","translation"),l(At,"plural","translations"),l(At,"indices",["id"]);class bl extends ${constructor(e){super(e),this.model=At,this.baseConstructor(e)}fetchTranslation(e,t){return this.fetch({path:"inline",params:{model:e.constructor.singular,id:e.id,to:t}})}}class tt extends x{}l(tt,"singular","session"),l(tt,"plural","sessions"),l(tt,"serializableAttributes",["type","code","email","password","rememberMe"]),l(tt,"serializationRoot","user");class wl extends ${constructor(e){super(e),this.model=tt,this.baseConstructor(e)}}class ot extends x{}l(ot,"singular","registration"),l(ot,"plural","registrations"),l(ot,"serializableAttributes",["name","email","password","passwordConfirmation","recaptcha","legalAccepted","emailNewsletter"]),l(ot,"serializationRoot","user");class kl extends ${constructor(e){super(e),this.model=ot,this.baseConstructor(e)}}class st extends x{constructor(...e){super(...e),this.close=this.close.bind(this),this.reopen=this.reopen.bind(this),this.addToThread=this.addToThread.bind(this),this.addOption=this.addOption.bind(this),this.poll=this.poll.bind(this)}afterConstruction(){return gt.apply(this,{showTitle:!0}),qe.apply(this)}config(){return p.pollTypes[this.pollType]}i18n(){return p.pollTypes[this.pollType].i18n}pollTypeKey(){return`poll_types.${this.pollType}`}poll(){return this}defaultValues(){return{discussionId:null,title:"",titlePlaceholder:null,closingAt:null,customize:!1,details:"",detailsFormat:"html",decidedVoter
55sCount:0,defaultDurationInDays:null,specifiedVotersOnly:!1,pollOptionNames:[],pollType:"proposal",chartColumn:null,chartType:null,minScore:null,maxScore:null,minimumStanceChoices:null,maximumStanceChoices:null,dotsPerPerson:null,canRespondMaybe:!0,meetingDuration:null,limitReasonLength:!0,stanceReasonRequired:"optional",reasonPrompt:null,files:[],imageFiles:[],attachments:[],linkPreviews:[],notifyOnClosingSoon:"undecided_voters",results:[],pollTemplateId:null,pollTempalteKey:null,pollOptionIds:[],pollOptionNameFormat:null,recipientMessage:null,recipientAudience:null,recipientUserIds:[],recipientChatbotIds:[],recipientEmails:[],notifyRecipients:!0,shuffleOptions:!1,tags:[],hideResults:"off",stanceCounts:[]}}pollTemplateKeyOrId(){return this.pollTemplateId||this.pollTemplateKey}clonePoll(){const e=this.clone();return e.id=null,e.key=null,e.sourceTemplateId=this.id,e.authorId=i.user().id,e.groupId=null,e.discussionId=null,e.template=!1,e.closingAt=ht(ho(new Date,this.defaultDurationInDays||7)),this.pollOptionsAttributes?e.pollOptionsAttributes=this.pollOptionsAttributes:e.pollOptionsAttributes=this.pollOptions().map(t=>({name:t.name,meaning:t.meaning,prompt:t.prompt,icon:t.icon})),e.closedAt=null,e.createdAt=null,e.updatedAt=null,e.decidedVoter
55sCount=null,e.undecidedVotersCount=null,e}clonePollOptions(){return this.pollOptions().map(e=>({id:e.id,name:e.name,meaning:e.meaning,prompt:e.prompt,icon:e.icon}))}defaulted(e){return this[e]===null?p.pollTypes[this.pollType].defaults[ke(e)]:this[e]}audienceValues(){return{name:this.group().name}}relationships(){return this.belongsTo("author",{from:"users"}),this.belongsTo("discussion"),this.belongsTo("group"),this.hasMany("stances"),this.hasMany("versions")}pieSlices(){let e=[];if(this.pollType==="count"&&this.results.find(t=>t.icon==="agree")){const t=this.results.find(s=>s.icon==="agree");if(t.score<this.agreeTarget){const s=parseFloat(t.score)/parseFloat(this.agreeTarget)*100;e.push({value:s,color:t.color}),e.push({value:100-s,color:"#ddd"})}else e.push({value:100,color:t.color})}else e=this.results.filter(t=>t[this.chartColumn]).map(t=>({value:t[this.chartColumn],color:t.color}));return e}pollOptions(){const e=this.recordStore.pollOptions.collection.chain().find({pollId:this.id,id:{$in:this.pollOptionIds}}).data();return Dt(e,"priority")}pollOptionsForVoting(){return this.shuffleOptions?xn(this.pollOptions()):this.pollOptions()}bestNamedId(){return(this.id&&this||this.discusionId&&this.discussion()||this.groupId&&this.group()||{namedId(){}}).namedId()}voters(){return this.latestStances().map(e=>e.participant())}members(){return(this.group()&&this.group().members()||[]).concat(this.voters())}participantIds(){return E(xe([this.authorId],b(this.stances(),"participantId")))}adminsInclude(e){const t=this.stanceFor(e);return this.authorId===e.id&&!this.groupId||this.authorId===e.id&&this.groupId&&this.group().membersInclude(e)||this.authorId===e.id&&this.discussionId&&this.discussion().membersInclude(e)||t&&t.admin||this.discussionId&&this.discussion().adminsInclude(e)||this.group().adminsInclude(e)}votersInclude(e){return specifiedVotersOnly?this.stanceFor(e):this.membersInclude(e)}membersInclude(e){return this.stanceFor(e)||this.discussionId&&this.discussion().membersInclude(e)||this.group().membersInclude(e)}stanceFor(e){return e.id===p.currentUserId?this.myStance():Ne(Dt(this.recordStore.stances.find({pollId:this.id,participantId:e.id,latest:!0,revokedAt:null}),"createdAt","desc"))}myStance(){return this.recordStore.stances.find({id:this.myStanceId,revokedAt:null})[0]}iHaveVoted(){return this.myStanceId&&this.myStance()&&this.myStance().castAt}showResults(){return!!this.closingAt&&(()=>{switch(this.hideResults){case"until_closed":return this.closedAt;case"until_vote":return this.closedAt||this.iHaveVoted();default:return!0}})()}optionsDiffer(e){return!V(ae(this.pollOptionNames),ae(b(e,"name")))}iCanVote(){return this.isVotable()&&(this.myStance()||!this.specifiedVotersOnly&&this.membersInclude(i.user()))}isBlank(){return this.details===""||this.details===null||this.details==="<p></p>"}authorName(){return this.author().nameWithTitle(this.group())}reactions(){return this.recordStore.reactions.find({reactableId:this.id,reactableType:"Poll"})}decidedVoterIds(){return W(xe(this.results.map(e=>e.voter_ids)))}decidedVoters(){return this.recordStore.users.find(this.decidedVoterIds())}outcome(){return this.recordStore.outcomes.find({pollId:this.id,latest:!0})[0]}createdEvent(){return this.recordStore.events.find({eventableId:this.id,kind:"poll_created"})[0]}latestStances(e,t){return e==null&&(e="-createdAt"),Qt(ae(this.recordStore.stances.find({pollId:this.id,latest:!0,revokedAt:null}),e),0,t)}latestCastStances(){return this.recordStore.stances.collection.chain().find({pollId:this.id,latest:!0,revokedAt:null,castAt:{$ne:null}}).data()}isVotable(){return!this.discardedAt&&this.closingAt&&this.closedAt==null}isClosed(){return this.closedAt!=null}close(){return this.processing=!0,this.remote.postMember(this.key,"close").finally(()=>this.processing=!1)}reopen(){return this.processing=!0,this.remote.postMember(this.key,"reopen",{poll:{closing_at:this.closingAt}}).finally(()=>this.processing=!1)}addToThread(e){return this.processing=!0,this.remote.patchMember(this.keyOrId(),"add_to_thread",{discussion_id:e}).finally(()=>this.processing=!1)}notifyAction(){return this.isNew()?"publish":"edit"}translatedPollType(){return C.t(`poll_types.${this.pollType}`)}translatedPollTypeCaps(){return C.t(`decision_tools_card.${this.pollType}_title`)}addOption(e){return this.pollOptionNames.includes(e)||!e?!1:(this.pollOptionNames.push(e),this.pollType==="meeting"&&this.pollOptionNames.sort(),e)}hasVariableScore(){return this.defaulted("minScore")!==this.defaulted("maxScore")}singleChoice(){let e;return this.defaulted("minimumStanceChoices")===(e=this.defaulted("maximumStanceChoices"))&&e===1}hasOptionIcon(){return this.config().has_option_icon}datesAsOptions(){return this.pollOptionNameFormat==="iso8601"}
55removeOrphanOptions(){return this.pollOptions().forEach(e=>{if(!this.pollOptionNames.includes(e.name))return e.remove()})}}l(st,"singular","poll"),l(st,"plural","polls"),l(st,"uniqueIndices",["id","key"]),l(st,"indices",["discussionId","authorId","groupId"]);class xl extends ${constructor(e){super(e),this.model=st,this.baseConstructor(e)}fetchFor(e,t){return t==null&&(t={}),t[`${e.constructor.singular}_key`]=e.key,this.search(t)}search(e){return e==null&&(e={}),this.fetch({path:"search",params:e})}searchResultsCount(e){return e==null&&(e={}),this.fetch({path:"search_results_count",params:e})}}class nt extends x{config(){return p.pollTypes[this.pollType]}defaultValues(){return{anonymous:!1,groupId:null,title:"",details:"",detailsFormat:"html",defaultDurationInDays:7,specifiedVotersOnly:!1,pollType:null,chartType:null,minScore:null,maxScore:null,minimumStanceChoices:null,maximumStanceChoices:null,dotsPerPerson:null,canRespondMaybe:!0,meetingDuration:null,limitReasonLength:!0,stanceReasonRequired:"optional",tags:[],files:[],imageFiles:[],attachments:[],linkPreviews:[],notifyOnClosingSoon:"undecided_voters",reasonPrompt:null,processName:null,processSubtitle:null,processIntroduction:null,processIntroductionFormat:"html",processUrl:null,pollOptions:[],pollOptionNameFormat:"plain",shuffleOptions:!1,hideResults:"off",position:0,outcomeStatement:null,outcomeStatementFormat:"html",outcomeReviewDueInDays:null}}relationships(){return this.belongsTo("author",{from:"users"}),this.belongsTo("group")}buildPoll(){const e=this.recordStore.polls.build(),t=H(this,Object.keys(this.defaultValues()));return t.pollTemplateId=this.id,t.pollTemplateKey=this.key,t.authorId=i.user().id,t.closingAt=ht(ho(new Date,this.defaultDurationInDays)),t.pollOptionsAttributes=this.pollOptionsAttributes(),e.update(t),e}pollOptionsAttributes(){return this.pollOptions.map(e=>({name:e.name,meaning:e.meaning,prompt:e.prompt,icon:e.icon}))}}l(nt,"singular","pollTemplate"),l(nt,"plural","pollTemplates"),l(nt,"uniqueIndices",["id","key"]),l(nt,"indices",["groupId"]);class Il extends ${constructor(e){super(e),this.model=nt,this.baseConstructor(e)}fetchByGroupId(e){return this.remote.fetch({params:{group_id:e},exclude_types:"group"})}findOrFetchByKeyOrId(e){const t=this.find(e);return t?Promise.resolve(t):this.remote.fetch({params:{key_or_id:e}}).then(()=>this.find(e))}}C.dateLocale=In;var xo=function(o,e,t){if(e==null&&(e=p.timeZone),t==null&&({dateTimePref:t}=i.user()),!Le(o))throw{"invalid date":"invalid date",date:o};const s=a=>Se(kt(o,e),a,{timeZone:e,locale:C.dateLocale}),n=new Date;if(ws(n,o)<24)return Cn(o,new Date,{addSuffix:!0,locale:C.dateLocale});if(An(o,n))return Se(o,"MMMM d",{locale:C.dateLocale});switch(t){case"day_iso":case"iso":return s("yyyy-MM-dd");case"abbr":case"day_abbr":return s("d LLL yyyy");default:return console.error("unknown date pref")}},Ie=function(o,e,t){if(e==null&&(e=p.timeZone),t==null&&({dateTimePref:t}=i.user()),!Le(o))throw{"invalid date":"invalid date",date:o};const s=function(){return parseInt(Se(kt(o,e),"h",{timeZone:e,locale:C.dateLocale}))<10?" ":""},n=function(){return parseInt(Se(kt(o,e),"d",{timeZone:e,locale:C.dateLocale}))<10?" ":""},a=u=>Se(kt(o,e),u,{timeZone:e,locale:C.dateLocale});switch(t){case"day_iso":return a("E yyyy-MM-dd HH:mm");case"abbr":return a(`${n()}d LLL yyyy ${s()}h:mma`);case"day_abbr":return a(`E ${n()}d LLL yyyy ${s()}h:mma`);case"iso":return a("yyyy-MM-dd HH:mm");default:return console.error("unknown date pref")}},Bs=()=>["00:00","01:00","02:00","03:00","04:00","05:00","06:00","07:00","08:00","09:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00","23:59"],Cl=o=>Se(o,"yyyy-MM-dd"),Vt=function(){return i.user().dateTimePref.includes("abbr")?"h:mm a":"HH:mm"};class Te extends x{defaultValues(){return{voterScores:{},name:null,icon:null,meaning:null,prompt:null,priority:null,_destroy:null}}relationships(){return this.belongsTo("poll")}stances(){return this.poll().latestStances().filter(e=>e.pollOptionIds().includes(this.id))}
55beforeRemove(){return this.stances().forEach(e=>e.remove())}optionName(){const e=this.poll();switch(e.pollOptionNameFormat){case"plain":return this.name;case"i18n":return C.t("poll_"+e.pollType+"_options."+this.name);case"iso8601":return Ie(Ve(this.name));default:return console.error("unsupported option format",e.pollOptionNameFormat)}}}l(Te,"singular","pollOption"),l(Te,"plural","pollOptions"),l(Te,"indices",["pollId"]),l(Te,"uniqueIndices",["id"]),l(Te,"serializableAttributes",["id","name","icon","priority","meaning","prompt"]);class Al extends ${constructor(e){super(e),this.model=Te,this.baseConstructor(e)}}const Tl=new Date("2020-08-11");class it extends x{afterConstruction(){return qe.apply(this)}defaultValues(){return{reason:"",reasonFormat:"html",files:[],imageFiles:[],attachments:[],linkPreviews:[],revokedAt:null,participantId:null,pollId:null,optionScores:{},castAt:null,guest:!1}}relationships(){return this.belongsTo("poll"),this.belongsTo("participant",{from:"users"})}edited(){return this.createdAt>Tl?this.versionsCount>2:this.versionsCount>1}discussion(){return this.poll().discussion()}participantName(){return this.participant()?this.participant().nameWithTitle(this.poll().group()):C.t("common.anonymous")}reactions(){return this.recordStore.reactions.find({reactableId:this.id,reactableType:"Stance"})}singleChoice(){return this.poll().singleChoice()}hasOptionIcon(){return this.poll().config().has_option_icon}participantIds(){return this.poll().participantIds()}memberIds(){return this.poll().memberIds()}group(){return this.poll().group()}isBlank(){return this.reason===""||this.reason===null||this.reason==="<p></p>"}author(){return this.participant()}stanceChoice(){return Ne(this.sortedChoices())}pollOption(){if(this.pollOptionId())return this.recordStore.pollOptions.find(this.pollOptionId())}pollOptionId(){return this.pollOptionIds()[0]}pollOptionIds(){return Object.keys(this.optionScores).map(e=>parseInt(e))}pollOptions(){return this.recordStore.pollOptions.find(this.pollOptionIds())}choose(e){return this.optionScores={},E(xe([e])).forEach(function(t){return this.optionScores[t]=1}),this}sortedChoices(){const e={};this.poll().pollOptions().forEach(n=>e[n.id]=n);const t=this.poll();let s=b(this.optionScores,(n,a)=>({score:n,rank:t.pollType==="ranked_choice"&&t.minimumStanceChoices-n+1,show:n>0||t.pollType==="score",pollOption:e[a]}));return s=s.filter(n=>n.pollOption),t.pollType==="meeting"?ae(s,n=>n.pollOption.priority):ae(s,"-score")}votedFor(e){return te(b(this.pollOptions(),"id"),e.id)}scoreFor(e){return this.optionScores[e.id]||0}totalScore(){return Tn(this.sortedChoices(),"score")}}l(it,"singular","stance"),l(it,"plural","stances"),l(it,"indices",["pollId","latest","participantId"]),l(it,"uniqueIndices",["id"]);class $l extends ${constructor(e){super(e),this.model=it,this.baseConstructor(e)}}class rt extends x{defaultValues(){return{statement:"",statementFormat:"html",eventSummary:null,eventDescription:null,includeActor:!1,files:[],imageFiles:[],attachments:[],linkPreviews:[],recipientUserIds:[],recipientChatbotIds:[],recipientEmails:[],recipientAudience:null,notifyRecipients:!0,groupId:null,reviewOn:null}}afterConstruction(){return gt.apply(this),qe.apply(this)}relationships(){return this.belongsTo("author",{from:"users"}),this.belongsTo("poll"),this.belongsTo("group"),this.belongsTo("pollOption")}reactions(){return this.recordStore.reactions.find({reactableId:this.id,reactableType:Ce(this.constructor.singular)})}authorName(){return this.author().nameWithTitle(this.poll().group())}isBlank(){return this.statement===""||this.statement===null||this.statement==="<p></p>"}members(){return this.poll().members()}membersInclude(e){return this.poll().membersInclude(e)}adminsInclude(e){return this.poll().adminsInclude(e)}participantIds(){return this.poll().participantIds()}memberIds(){return this.poll().memberIds()}announcementSize(){return this.poll().announcementSize(this.notifyAction())}discussion(){return this.poll().discussion()}notifyAction(){return"publish"}bestNamedId(){return(this.id&&this||this.pollId&&this.poll()||this.groupId&&this.group()||{namedId(){}}).namedId()}}l(rt,"singular","outcome"),l(rt,"plural","outcomes"),l(rt,"indices",["pollId","authorId"]),l(rt,"uniqueIndices",["id"]);class Pl extends ${constructor(e){super(e),this.model=rt,this.baseConstructor(e)}}class Tt extends x{}l(Tt,"singular","contactMessage"),l(Tt,"plural","contactMessages"),l(Tt,"serializableAttributes",["email","subject","user_id","message","name"]);class Rl extends ${constructor(e){super(e),this.model=Tt,this.baseConstructor(e)}}class at extends x{relationships(){this.belongsTo("user")}model(){return this.recordStore[`${this.reactableType.toLowerCase()}s`].find(this.reactableId)}}l(at,"singular","reaction"),l(at,"plural","reactions"),l(at,"indices",["userId","reactableId","reactableType"]),l(at,"lazyLoad",!0);class Sl extends ${constructor(e){super(e),this.model=at,this.baseConstructor(e)}}class io extends x{defaultValues(){return{message:""}}}l(io,"singular","contactRequest"),l(io,"plural","contactRequests");class Ol extends ${constructor(e){super(e),this.model=io,this.baseConstructor(e)}}class $t extends x{relationships(){return this.belongsTo("author",{from:"users",by:"authorId"}),this.belongsTo("group")}model(){return this.recordStore[`${this.modelType.toLowerCase()}s`].find(this.modelId)}modelTitle(){switch(this.modelType){case"Group":return this.model().name;case"Discussion":return this.model().title;case"Outcome":return this.model().poll().title;case"Comment":return this.model().discussion().title;case"Poll":return this.model().title}}authorName(){if(this.author())return this.author().nameWithTitle(this.model().group())}isAnImage(){return this.icon==="image"}}l($t,"singular","document"),l($t,"plural","documents"),l($t,"indices",["modelId","authorId"]);class El extends ${constructor(e){super(e),this.model=$t,this.baseConstructor(e)}fetchByModel(e){return this.fetch({params:{[`${e.constructor.singular}_id`]:e.id}})}fetchByDiscussion(e){return this.fetch({path:"for_discussion",params:{discussion_key:e.key}})}}class Pt extends x{model(){return this.recordStore[x.eventTypeMap[this.recordType]].find(this.recordId)}group(){return this.model().group()}relationships(){return this.belongsTo("author",{from:"users"})}isAnImage(){return this.icon==="image"}}l(Pt,"singular","attachment"),l(Pt,"plural","attachments"),l(Pt,"indices",["re
55cordType","recordId"]);class Dl extends ${constructor(e){super(e),this.model=Pt,this.baseConstructor(e)}}class Nl extends ${constructor(e){super(e),this.model={singular:"login_token",plural:"login_tokens"},this.baseConstructor(e)}fetchToken(e){return this.remote.post("",{email:e})}}class Ll extends ${constructor(e){super(e),this.apiEndpoint="message_channel",this.model={singular:"message_channel",plural:"message_channel"},this.baseConstructor(e)}}const Yt=Object.keys(Lo).filter(o=>o!=="shades").map(o=>Lo[o].base);class $e extends x{defaultValues(){return{color:Yt[Math.floor(Math.random()*Yt.length)]}}relationships(){this.belongsTo("group")}}l($e,"singular","tag"),l($e,"plural","tags"),l($e,"uniqueIndices",["id"]),l($e,"indices",["groupId"]),l($e,"colors",Yt);class Vl extends ${constructor(e){super(e),this.model=$e,this.baseConstructor(e)}}class Rt extends x{relationships(){this.belongsToPolymorphic("record")}toggleDone(){return this.done?this.remote.postMember(this.id,"mark_as_not_done"):this.remote.postMember(this.id,"mark_as_done")}}l(Rt,"singular","task"),l(Rt,"plural","tasks"),l(Rt,"indices",["authorId"]);class Fl extends ${constructor(e){super(e),this.model=Rt,this.baseConstructor(e)}}class ro extends x{defaultValues(){return{name:null,url:null,format:"markdown",eventKinds:[],permissions:[],includeBody:!0,errors:{}}}relationships(){this.belongsTo("group")}}l(ro,"singular","webhook"),l(ro,"plural","webhooks");class Ml extends ${constructor(e){super(e),this.model=ro,this.baseConstructor(e)}}class lt extends x{defaultValues(){return{groupId:null}}}l(lt,"singular","receivedEmail"),l(lt,"plural","receivedEmails"),l(lt,"indices",["groupId"]),l(lt,"uniqueIndices",["id"]);class ql extends ${constructor(e){super(e),this.model=lt,this.baseConstructor(e)}}const jl=new $n("default.db"),c=new ol(jl);c.addRecordsInterface(sl);c.addRecordsInterface(nl);c.addRecordsInterface(al);c.addRecordsInterface(ll);c.addRecordsInterface(cl);c.addRecordsInterface(dl);c.addRecordsInterface(ul);c.addRecordsInterface(pl);c.addRecordsInterface(ml);c.addRecordsInterface(gl);c.addRecordsInterface(vl);c.addRecordsInterface(yl);c.addRecordsInterface(bl);c.addRecordsInterface(wl);c.addRecordsInterface(kl);c.addRecordsInterface(xl);c.addRecordsInterface(Il);c.addRecordsInterface(Al);c.addRecordsInterface($l);c.addRecordsInterface(Pl);c.addRecordsInterface(Rl);c.addRecordsInterface(Sl);c.addRecordsInterface(Ol);c.addRecordsInterface(El);c.addRecordsInterface(Dl);c.addRecordsInterface(Nl);c.addRecordsInterface(Ll);c.addRecordsInterface(Vl);c.addRecordsInterface(Fl);c.addRecordsInterface(Ml);c.addRecordsInterface(ql);p.records=c;class ue{static shareableLink(e){return e.isA("group")?this.buildModelRoute("",e.token,"",{},{namespace:"join/group",absolute:!0}):this.route({model:e,options:{absolute:!0}})}static route({model:e,action:t,params:s,options:n}){return e!=null&&t!=null?this[e.constructor.singular](e,{},{noStub:!0})+this.routePath(t):e!=null?this[e.constructor.singular](e,s,n):this.routePath(t)}static routePath(e){return"/".concat(e).replace("//","/")}static group(e,t,s){return t==null&&(t={}),s==null&&(s={}),e.handle!=null&&!s.noStub?this.buildModelRoute("",e.handle,"",t,s):this.buildModelRoute("g",e.key,e.fullName,t,s)}static discussion(e,t,s){t==null&&(t={}),s==null&&(s={});const n=s.print?null:s.action||e.title;return this.buildModelRoute("d",e.key,n,t,s)}static discussionPoll(e,t,s){return t==null&&(t={}),s==null&&(s={}),e.discussionId?this.event(e.createdEvent()):this.buildModelRoute("p",e.key,s.action||e.title,t,s)}static poll(e,t,s){return t==null&&(t={}),s==null&&(s={}),this.buildModelRoute("p",e.key,s.action||e.title,t,s)}static outcome(e,t,s){return t==null&&(t={}),s==null&&(s={}),this.poll(e.poll(),t,s)}static pollSearch(e,t){return e==null&&(e={}),t==null&&(t={}),this.buildModelRoute("polls","",t.action,e,t)}static searchResult(e,t,s){return t==null&&(t={}),s==null&&(s={}),this.discussion(e,t,s)}static user(e,t,s){return t==null&&(t={}),s==null&&(s={}),this.buildModelRoute("u",e[s.key||"username"],null,t,s)}static comment(e,t){return t==null&&(t={}),this.route({model:e.discussion(),action:`comment/${e.id}`,params:t})}static membership(e,t,s){return t==null&&(t={}),this.route({model:e.group(),action:"memberships",params:t})}static membershipRequest(e,t,s){return t==null&&(t={}),this.route({model:e.group(),action:"membership_requests",params:t})}static event(e,t,s){return t==null&&(t={}),s==null&&(s={}),this.discussion(e.discussion(),t,s)+`/${e.sequenceId}`}static buildModelRoute(e,t,s,n,a){let u=a.absolute?p.baseUrl:"/";return(a.namespace||e||"").length>0&&(u+=`${a.namespace||e}/`),u+=`${t}`,s!=null&&a.noStub==null&&(u+="/"+this.stub(s)),a.ext!=null&&(u+="."+a.ext),J(n).length&&(u+="?"+this.queryStringFor(n)),u}static stub(e){return e.replace(/[^a-z0-9\-_]+/gi,"-").replace(/-+/g,"-").toLowerCase()}static queryStringFor(e){return e==null&&(e={}),b(e,(t,s)=>`${s}=${t}`).join("&")}}var _t=function(o){return o?window.location.href=o:window.location.reload()};const Zo=["en"],Jo=Object.assign({
55"../config/locales/client.an.yml":()=>r(()=>import("./client.an-pGYOng06.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.ar.yml":()=>r(()=>import("./client.ar-e1w_s4za.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.be_BY.yml":()=>r(()=>import("./client.be_BY-rYD1K_7f.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.bg_BG.yml":()=>r(()=>import("./client.bg_BG-if9oR3AE.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.br.yml":()=>r(()=>import("./client.br-qO5wel12.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.ca.yml":()=>r(()=>import("./client.ca-uFeVi8e4.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.cmn.yml":()=>r(()=>import("./client.cmn-Y_TT-K8I.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.cs.yml":()=>r(()=>import("./client.cs-EDDEylHf.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.da.yml":()=>r(()=>import("./client.da-1xGQxmA-.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.de.yml":()=>r(()=>import("./client.de-xbIoBTmT.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.el.yml":()=>r(()=>import("./client.el-6gG3lMNR.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.en.yml":()=>r(()=>Promise.resolve().then(()=>il),void 0,import.meta.url),
55"../config/locales/client.eo.yml":()=>r(()=>import("./client.eo-9nnbCep0.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.es.yml":()=>r(()=>import("./client.es-2Oo2ysHV.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.fa_IR.yml":()=>r(()=>import("./client.fa_IR-bTSI--3l.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.fi.yml":()=>r(()=>import("./client.fi-WNo1VyKA.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.fr.yml":()=>r(()=>import("./client.fr-wVmcOn6S.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.ga_IE.yml":()=>r(()=>import("./client.ga_IE-erQfyBEO.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.gl.yml":()=>r(()=>import("./client.gl-Mi6FLQ9v.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.he.yml":()=>r(()=>import("./client.he-luF7uCaM.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.hr.yml":()=>r(()=>import("./client.hr-sWh0CTzb.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.hu.yml":()=>r(()=>import("./client.hu-Gr6X9yFs.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.id.yml":()=>r(()=>import("./client.id-rgPtoG_f.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.it.yml":()=>r(()=>import("./client.it-oVnV5u7C.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.ja.yml":()=>r(()=>import("./client.ja--tlvt8Ml.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.km.yml":()=>r(()=>import("./client.km-ZFgc4q_F.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.ko.yml":()=>r(()=>import("./client.ko-qjEdy6xR.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.lt.yml":()=>r(()=>import("./client.lt-MneHzE-N.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.mi.yml":()=>r(()=>import("./client.mi-z0c7BRoI.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.mk.yml":()=>r(()=>import("./client.mk-ScqGdeJf.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.nb_NO.yml":()=>r(()=>import("./client.nb_NO-lIZRUHr0.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.nl_NL.yml":()=>r(()=>import("./client.nl_NL-3DONigUq.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.pl.yml":()=>r(()=>import("./client.pl-3PPcsJy_.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.pt_BR.yml":()=>r(()=>import("./client.pt_BR-1j64u-_e.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.pt_PT.yml":()=>r(()=>import("./client.pt_PT-xz1pP2be.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.ro.yml":()=>r(()=>import("./client.ro-szQk8x-r.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.ru.yml":()=>r(()=>import("./client.ru-9369e4y2.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.sk.yml":()=>r(()=>import("./client.sk-9_1es6xG.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.sl.yml":()=>r(()=>import("./client.sl-PiDspuqB.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.sr.yml":()=>r(()=>import("./client.sr-awhVqBgG.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.sv.yml":()=>r(()=>import("./client.sv-Chu_iZ-i.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.te.yml":()=>r(()=>import("./client.te-2fB-ww7L.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.tr.yml":()=>r(()=>import("./client.tr-I_11iQRq.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.uk.yml":()=>r(()=>import("./client.uk-DAy1uG_Q.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.ur_PK.yml":()=>r(()=>import("./client.ur_PK-FueH9oNO.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.vi.yml":()=>r(()=>import("./client.vi-kANkQc2x.js"),__vite__mapDeps([]),import.meta.url),
55"../config/locales/client.zh_TW.yml":()=>r(()=>import("./client.zh_TW-6Dd_B0sg.js"),__vite__mapDeps([]),import.meta.url)}),Qo=Object.assign({
vendor: 139 bytes, line 55
55"/node_modules/date-fns/locale/af/index.js":()=>r(()=>import("./index-pazaOA6R.js").then(o=>o.i),__vite__mapDeps([0,1,2]),import.meta.url),
vendor: 142 bytes, line 55
55"/node_modules/date-fns/locale/ar-DZ/index.js":()=>r(()=>import("./index-KQdmZqo2.js").then(o=>o.i),__vite__mapDeps([3,1,2]),import.meta.url),
vendor: 142 bytes, line 55
55"/node_modules/date-fns/locale/ar-EG/index.js":()=>r(()=>import("./index-spjA6S_X.js").then(o=>o.i),__vite__mapDeps([4,1,2]),import.meta.url),
vendor: 142 bytes, line 55
55"/node_modules/date-fns/locale/ar-MA/index.js":()=>r(()=>import("./index-fqQ02EkE.js").then(o=>o.i),__vite__mapDeps([5,1,2]),import.meta.url),
vendor: 142 bytes, line 55
55"/node_modules/date-fns/locale/ar-SA/index.js":()=>r(()=>import("./index-CfsNgpAg.js").then(o=>o.i),__vite__mapDeps([6,1,2]),import.meta.url),
vendor: 142 bytes, line 55
55"/node_modules/date-fns/locale/ar-TN/index.js":()=>r(()=>import("./index-AbQOE-RD.js").then(o=>o.i),__vite__mapDeps([7,1,2]),import.meta.url),
vendor: 139 bytes, line 55
55"/node_modules/date-fns/locale/ar/index.js":()=>r(()=>import("./index-_YZsT1XV.js").then(o=>o.i),__vite__mapDeps([8,1,2]),import.meta.url),
vendor: 139 bytes, line 55
55"/node_modules/date-fns/locale/az/index.js":()=>r(()=>import("./index-4XFNHM17.js").then(o=>o.i),__vite__mapDeps([9,1,2]),import.meta.url),
vendor: 153 bytes, line 55
55"/node_modules/date-fns/locale/be-tarask/index.js":()=>r(()=>import("./index-lnLFdleT.js").then(o=>o.i),__vite__mapDeps([10,1,2,11,12]),import.meta.url),
vendor: 146 bytes, line 55
55"/node_modules/date-fns/locale/be/index.js":()=>r(()=>import("./index-DqAKh7Gn.js").then(o=>o.i),__vite__mapDeps([13,1,2,11,12]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/bg/index.js":()=>r(()=>import("./index-qw0DV_Dp.js").then(o=>o.i),__vite__mapDeps([14,1,2,12]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/bn/index.js":()=>r(()=>import("./index-u7LF4rq7.js").then(o=>o.i),__vite__mapDeps([15,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/bs/index.js":()=>r(()=>import("./index-SKUeIV-5.js").then(o=>o.i),__vite__mapDeps([16,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/ca/index.js":()=>r(()=>import("./index-Nftu9zi1.js").then(o=>o.i),__vite__mapDeps([17,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/cs/index.js":()=>r(()=>import("./index-Gg7CidRY.js").then(o=>o.i),__vite__mapDeps([18,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/cy/index.js":()=>r(()=>import("./index-Gs97CC6z.js").then(o=>o.i),__vite__mapDeps([19,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/da/index.js":()=>r(()=>import("./index-vubcbZUh.js").then(o=>o.i),__vite__mapDeps([20,1,2]),import.meta.url),
vendor: 146 bytes, line 55
55"/node_modules/date-fns/locale/de-AT/index.js":()=>r(()=>import("./index-OJdLt3Nm.js").then(o=>o.i),__vite__mapDeps([21,1,2,22]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/de/index.js":()=>r(()=>import("./index---Gn21sj.js").then(o=>o.i),__vite__mapDeps([23,1,2,22]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/el/index.js":()=>r(()=>import("./index-Jj4DkDiJ.js").then(o=>o.i),__vite__mapDeps([24,1,2]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/en-AU/index.js":()=>r(()=>import("./index-x4QZM1D1.js").then(o=>o.i),__vite__mapDeps([25,1,2]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/en-CA/index.js":()=>r(()=>import("./index-ZiMioz1-.js").then(o=>o.i),__vite__mapDeps([26,1,2]),import.meta.url),
vendor: 146 bytes, line 55
55"/node_modules/date-fns/locale/en-GB/index.js":()=>r(()=>import("./index-4PJUkzjC.js").then(o=>o.i),__vite__mapDeps([27,1,2,28]),import.meta.url),
vendor: 146 bytes, line 55
55"/node_modules/date-fns/locale/en-IE/index.js":()=>r(()=>import("./index-lMfUXCsg.js").then(o=>o.i),__vite__mapDeps([29,1,2,28]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/en-IN/index.js":()=>r(()=>import("./index-C1Dxmh2B.js").then(o=>o.i),__vite__mapDeps([30,1,2]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/en-NZ/index.js":()=>r(()=>import("./index-LBB-7eFM.js").then(o=>o.i),__vite__mapDeps([31,1,2]),import.meta.url),
vendor: 141 bytes, line 55
55"/node_modules/date-fns/locale/en-US/index.js":()=>r(()=>import("./vendor-_6dBehLn.js").then(o=>o.i),__vite__mapDeps([1,2]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/en-ZA/index.js":()=>r(()=>import("./index-v6ornF3M.js").then(o=>o.i),__vite__mapDeps([32,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/eo/index.js":()=>r(()=>import("./index-dX8O0ffA.js").then(o=>o.i),__vite__mapDeps([33,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/es/index.js":()=>r(()=>import("./index-o3OXqOVe.js").then(o=>o.i),__vite__mapDeps([34,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/et/index.js":()=>r(()=>import("./index-KcORLhu_.js").then(o=>o.i),__vite__mapDeps([35,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/eu/index.js":()=>r(()=>import("./index-dI2m-FWr.js").then(o=>o.i),__vite__mapDeps([36,1,2]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/fa-IR/index.js":()=>r(()=>import("./index-SjgN7kB0.js").then(o=>o.i),__vite__mapDeps([37,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/fi/index.js":()=>r(()=>import("./index-HHqFHQ8D.js").then(o=>o.i),__vite__mapDeps([38,1,2]),import.meta.url),
vendor: 149 bytes, line 55
55"/node_modules/date-fns/locale/fr-CA/index.js":()=>r(()=>import("./index-kSuA56Io.js").then(o=>o.i),__vite__mapDeps([39,1,2,40,41]),import.meta.url),
vendor: 146 bytes, line 55
55"/node_modules/date-fns/locale/fr-CH/index.js":()=>r(()=>import("./index-VD6dSyfc.js").then(o=>o.i),__vite__mapDeps([42,1,2,40]),import.meta.url),
vendor: 146 bytes, line 55
55"/node_modules/date-fns/locale/fr/index.js":()=>r(()=>import("./index-P3b302u1.js").then(o=>o.i),__vite__mapDeps([43,1,2,40,41]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/fy/index.js":()=>r(()=>import("./index-iM7QMNdq.js").then(o=>o.i),__vite__mapDeps([44,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/gd/index.js":()=>r(()=>import("./index-QGQd8uEW.js").then(o=>o.i),__vite__mapDeps([45,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/gl/index.js":()=>r(()=>import("./index-o5OO_CV4.js").then(o=>o.i),__vite__mapDeps([46,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/gu/index.js":()=>r(()=>import("./index-Txq_JBJH.js").then(o=>o.i),__vite__mapDeps([47,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/he/index.js":()=>r(()=>import("./index-VSjtnE2x.js").then(o=>o.i),__vite__mapDeps([48,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/hi/index.js":()=>r(()=>import("./index-WcqEy14R.js").then(o=>o.i),__vite__mapDeps([49,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/hr/index.js":()=>r(()=>import("./index-W5OW7xyq.js").then(o=>o.i),__vite__mapDeps([50,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/ht/index.js":()=>r(()=>import("./index-aewkCLKA.js").then(o=>o.i),__vite__mapDeps([51,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/hu/index.js":()=>r(()=>import("./index-ci-5pIeF.js").then(o=>o.i),__vite__mapDeps([52,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/hy/index.js":()=>r(()=>import("./index-gXXXT5D9.js").then(o=>o.i),__vite__mapDeps([53,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/id/index.js":()=>r(()=>import("./index-c5Z5NgUW.js").then(o=>o.i),__vite__mapDeps([54,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/is/index.js":()=>r(()=>import("./index-viSHkoqY.js").then(o=>o.i),__vite__mapDeps([55,1,2]),import.meta.url),
vendor: 149 bytes, line 55
55"/node_modules/date-fns/locale/it-CH/index.js":()=>r(()=>import("./index-egUIPZgF.js").then(o=>o.i),__vite__mapDeps([56,1,2,57,12]),import.meta.url),
vendor: 146 bytes, line 55
55"/node_modules/date-fns/locale/it/index.js":()=>r(()=>import("./index-NUqgx_M3.js").then(o=>o.i),__vite__mapDeps([58,1,2,57,12]),import.meta.url),
vendor: 145 bytes, line 55
55"/node_modules/date-fns/locale/ja-Hira/index.js":()=>r(()=>import("./index-wDoFWqxK.js").then(o=>o.i),__vite__mapDeps([59,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/ja/index.js":()=>r(()=>import("./index-T87npP1u.js").then(o=>o.i),__vite__mapDeps([60,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/ka/index.js":()=>r(()=>import("./index-1YqbRtaL.js").then(o=>o.i),__vite__mapDeps([61,1,2]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/kk/index.js":()=>r(()=>import("./index-L92-3elC.js").then(o=>o.i),__vite__mapDeps([62,1,2,12]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/km/index.js":()=>r(()=>import("./index-_5BE1Tef.js").then(o=>o.i),__vite__mapDeps([63,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/kn/index.js":()=>r(()=>import("./index-fNZZm717.js").then(o=>o.i),__vite__mapDeps([64,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/ko/index.js":()=>r(()=>import("./index-Qdl2j5sD.js").then(o=>o.i),__vite__mapDeps([65,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/lb/index.js":()=>r(()=>import("./index-ndstvx86.js").then(o=>o.i),__vite__mapDeps([66,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/lt/index.js":()=>r(()=>import("./index-B4Z4pXxS.js").then(o=>o.i),__vite__mapDeps([67,1,2]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/lv/index.js":()=>r(()=>import("./index-96EFUUiu.js").then(o=>o.i),__vite__mapDeps([68,1,2,12]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/mk/index.js":()=>r(()=>import("./index-5CtGnxgf.js").then(o=>o.i),__vite__mapDeps([69,1,2,12]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/mn/index.js":()=>r(()=>import("./index-muV8Z3rI.js").then(o=>o.i),__vite__mapDeps([70,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/ms/index.js":()=>r(()=>import("./index-Fcj3r-z_.js").then(o=>o.i),__vite__mapDeps([71,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/mt/index.js":()=>r(()=>import("./index-Vid4-10P.js").then(o=>o.i),__vite__mapDeps([72,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/nb/index.js":()=>r(()=>import("./index-8eXNJ8Oc.js").then(o=>o.i),__vite__mapDeps([73,1,2]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/nl-BE/index.js":()=>r(()=>import("./index-lQKjnb7r.js").then(o=>o.i),__vite__mapDeps([74,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/nl/index.js":()=>r(()=>import("./index-YQW2IdlP.js").then(o=>o.i),__vite__mapDeps([75,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/nn/index.js":()=>r(()=>import("./index-vvsWaKpN.js").then(o=>o.i),__vite__mapDeps([76,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/oc/index.js":()=>r(()=>import("./index-4ndjpDiZ.js").then(o=>o.i),__vite__mapDeps([77,1,2]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/pl/index.js":()=>r(()=>import("./index-GuAteUOD.js").then(o=>o.i),__vite__mapDeps([78,1,2,12]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/pt-BR/index.js":()=>r(()=>import("./index-akzlILxf.js").then(o=>o.i),__vite__mapDeps([79,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/pt/index.js":()=>r(()=>import("./index-4R98xwDV.js").then(o=>o.i),__vite__mapDeps([80,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/ro/index.js":()=>r(()=>import("./index-2J8ppFMO.js").then(o=>o.i),__vite__mapDeps([81,1,2]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/ru/index.js":()=>r(()=>import("./index-ivPOv4ht.js").then(o=>o.i),__vite__mapDeps([82,1,2,12]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/sk/index.js":()=>r(()=>import("./index-8HSwv7v1.js").then(o=>o.i),__vite__mapDeps([83,1,2,12]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/sl/index.js":()=>r(()=>import("./index-DmpFK1NZ.js").then(o=>o.i),__vite__mapDeps([84,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/sq/index.js":()=>r(()=>import("./index-ZGXneQdb.js").then(o=>o.i),__vite__mapDeps([85,1,2]),import.meta.url),
vendor: 145 bytes, line 55
55"/node_modules/date-fns/locale/sr-Latn/index.js":()=>r(()=>import("./index-r_9KzG7u.js").then(o=>o.i),__vite__mapDeps([86,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/sr/index.js":()=>r(()=>import("./index-WWNKtPTQ.js").then(o=>o.i),__vite__mapDeps([87,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/sv/index.js":()=>r(()=>import("./index-AIXX-oqQ.js").then(o=>o.i),__vite__mapDeps([88,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/ta/index.js":()=>r(()=>import("./index-k68tLW17.js").then(o=>o.i),__vite__mapDeps([89,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/te/index.js":()=>r(()=>import("./index-MwleKy63.js").then(o=>o.i),__vite__mapDeps([90,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/th/index.js":()=>r(()=>import("./index-zfp7LEfC.js").then(o=>o.i),__vite__mapDeps([91,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/tr/index.js":()=>r(()=>import("./index-FvA-AOSp.js").then(o=>o.i),__vite__mapDeps([92,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/ug/index.js":()=>r(()=>import("./index-Cgd-fKy5.js").then(o=>o.i),__vite__mapDeps([93,1,2]),import.meta.url),
vendor: 146 bytes, line 55
55"/node_modules/date-fns/locale/uk/index.js":()=>r(()=>import("./index-dqlJHrjn.js").then(o=>o.i),__vite__mapDeps([94,1,2,11,12]),import.meta.url),
vendor: 145 bytes, line 55
55"/node_modules/date-fns/locale/uz-Cyrl/index.js":()=>r(()=>import("./index-0jNL9HZt.js").then(o=>o.i),__vite__mapDeps([95,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/uz/index.js":()=>r(()=>import("./index-oWt486zF.js").then(o=>o.i),__vite__mapDeps([96,1,2]),import.meta.url),
vendor: 140 bytes, line 55
55"/node_modules/date-fns/locale/vi/index.js":()=>r(()=>import("./index-RGViQXju.js").then(o=>o.i),__vite__mapDeps([97,1,2]),import.meta.url),
vendor: 146 bytes, line 55
55"/node_modules/date-fns/locale/zh-CN/index.js":()=>r(()=>import("./index-56I5Frr1.js").then(o=>o.i),__vite__mapDeps([98,1,2,12]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/zh-HK/index.js":()=>r(()=>import("./index-0Dq8-0Nb.js").then(o=>o.i),__vite__mapDeps([99,1,2]),import.meta.url),
vendor: 143 bytes, line 55
55"/node_modules/date-fns/locale/zh-TW/index.js":()=>r(()=>import("./index-0UWbQsc1.js").then(o=>o.i),__vite__mapDeps([100,1,2]),import.meta.url)
55}),Xo=function(o){return C.locale=o,document.querySelector("html").setAttribute("lang",o)},Ul=o=>o.replace("-","_"),zl=function(o){return o.startsWith("nl")?"nl":o.replace("_","-")},Bl=function(o){if(C.locale!==o){if(Zo.includes(o))return Xo(o);{const e=`/node_modules/date-fns/locale/${zl(o)}/index.js`,t=`../config/locales/client.${Ul(o)}.yml`;if(!Qo[e])return Vo(`missing dateLocale: ${e}`),!1;if(!Jo[t])return Vo(`missing clientLocale: ${t}`),!1;Qo[e]().then(s=>C.dateLocale=s.default),Jo[t]().then(function(s){const n=s.default[o];return Zo.push(o),C.setLocaleMessage(o,n),Xo(o),m.$emit("VueForceUpdate")})}}},i=new class{returnTo(){const e=new URL(window.location.href);return e.pathname+e.search}defaultFormat(){return this.user().experiences["html-editor.uses-markdown"]?"md":"html"}apply(e){T.set(p,"currentUserId",e.current_user_id),T.set(p,"pendingIdentity",e.pending_identity),c.importJSON(e),this.userId=e.current_user_id;const t=this.user();return this.updateLocale(t.locale),this.isSignedIn()&&(t.autodetectTimeZone&&t.timeZone!==p.timeZone&&(t.timeZone=p.timeZone,c.users.updateProfile(t)),m.$emit("signedIn",t)),t}signOut(){return p.currentUserId=null,c.sessions.remote.destroy("").then(()=>_t("/"))}isSignedIn(){return p.currentUserId&&this.user().restricted==null}user(){return c.users.find(p.currentUserId)||c.users.build()}currentGroupId(){return this.currentGroup!=null&&this.currentGroup.id}updateLocale(e){return Bl(e)}providerIdentity(){if(!p.pendingIdentity)return;if(p.identityProviders.map(t=>t.name).includes(p.pendingIdentity.identity_type))return p.pendingIdentity}};T.use(ks);window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;const Hl=new ks({icons:{iconfont:"mdiSvg"},theme:{dark:!1,options:{customProperties:!0}}});let ye=()=>i.user();const _=new class{isNotEmailVerified(){return i.isSignedIn()&&!i.user().emailVerified}isEmailVerified(){return i.isSignedIn()&&i.user().emailVerified}isUser(){return p.currentUserId!=null}canContactUser(e){return i.isSignedIn()&&i.user().id!==e.id&&Et(i.user().groupIds(),e.groupIds()).length}canAddComment(e){return!e.closedAt&&e.membersInclude(i.user())}canRespondToComment(e){return!e.discussion().closedAt&&!e.discardedAt&&e.discussion().membersInclude(i.user())}canEdit(e){return e.isA("discussion")&&this.canEditThread(e)||e.isA("comment")&&this.canEditComment(e)||e.isA("poll")&&this.canEditPoll(e)||e.isA("stance")&&this.canEditStance(e)}canEditStance(e){return i.user()===e.author()}canEditThread(e){return e.adminsInclude(i.user())||!e.closedAt&&e.membersInclude(i.user())&&(e.group().membersCanEditDiscussions||e.author()===i.user())}canCloseThread(e){return!e.closedAt&&(e.adminsInclude(i.user())||e.membersInclude(i.user())&&(e.group().membersCanEditDiscussions||e.author()===i.user()))}canReopenThread(e){return e.closedAt&&(e.adminsInclude(i.user())||e.membersInclude(i.user())&&(e.group().membersCanEditDiscussions||e.author()===i.user()))}canPinThread(e){return!e.closedAt&&!e.pinnedAt&&this.canEditThread(e)}canUnpinThread(e){return!e.closedAt&&e.pinnedAt&&this.canEditThread(e)}canExportThread(e){return!e.discardedAt&&e.membersInclude(i.user())}canPinEvent(e){return e.depth===1&&!e.model().discardedAt&&!e.pinned&&!e.discussion().closedAt&&this.canEditThread(e.discussion())}canUnpinEvent(e){return!e.discussion().closedAt&&e.pinned&&this.canEditThread(e.discussion())}canMoveThread(e){return e.adminsInclude(i.user())||e.membersInclude(i.user())&&(e.group().membersCanEditDiscussions||e.author()===i.user())}canDeleteThread(e){return e.adminsInclude(i.user())||e.author()===i.user()}canChangeGroupVolume(e){return e.membersInclude(i.user())}canAdminister(e){switch(e.constructor.singular){case"group":return e.adminsInclude(i.user());case"discussion":case"comment":return e.discussion().adminsInclude(i.user());case"outcome":case"stance":case"poll":return e.poll().adminsInclude(i.user())}}canChangeVolume(e){return e.membersInclude(i.user())}canStartThread(e){return e.adminsInclude(i.user())||e.membersInclude(i.user())&&e.membersCanStartDiscussions}canAnnounceDiscussion(e){return e.discardedAt||e.closedAt?!1:e.groupId?e.group().adminsInclude(i.user())||e.group().membersCanAnnounce&&e.group().membersInclude(i.user()):!e.id||e.adminsInclude(i.user())}canNotifyGroup(e){return e.adminsInclude(i.user())||e.membersCanAnnounce&&e.membersInclude(i.user())}canAnnounce(e){return typeof e.isA=="function"&&e.isA("poll")?this.canAnnouncePoll(e):this.canAnnounceDiscussion(e)}canAddGuests(e){return typeof e.isA=="function"&&e.isA("poll")?this.canAddGuestsPoll(e):this.canAddGuestsDiscussion(e)}canAddGuestsDiscussion(e){return e.groupId?e.group().adminsInclude(i.user())||e.group().membersCanAddGuests&&e.group().membersInclude(i.user()):!e.id||e.adminsInclude(i.user())}canAnnouncePoll(e){return ye=i.user(),e.discardedAt?!1:e.groupId?e.group().adminsInclude(ye)||e.group().membersCanAnnounce&&e.adminsInclude(ye)||e.group().membersCanAnnounce&&!e.specifiedVoter
55sOnly&&e.membersInclude(ye):e.adminsInclude(ye)||!e.specifiedVotersOnly&&e.membersInclude(ye)}canAddMembersPoll(e){return e.adminsInclude(ye())}canAddGuestsPoll(e){return e.groupId?e.group().adminsInclude(i.user())||e.group().membersCanAddGuests&&e.group(i.user()):e.adminsInclude(i.user())}canAddMembersToGroup(e){return e.adminsInclude(i.user())||e.membersInclude(i.user())&&e.membersCanAddMembers}canCreateSubgroups(e){return e.isParent()&&(e.adminsInclude(i.user())||e.membersInclude(i.user())&&e.membersCanCreateSubgroups)}canEditGroup(e){return e.adminsInclude(i.user())}canLeaveGroup(e){return i.user().membershipFor(e)!=null}canArchiveGroup(e){return e.adminsInclude(i.user())}canEditOwnComment(e){return e.authorIs(i.user())&&this.canEditComment(e)}canEditComment(e){return!e.discussion().closedAt&&(e.discussion().adminsInclude(i.user())&&e.group().adminsCanEditUserContent||e.authorIs(i.user())&&e.group().membersCanEditComments&&e.discussion().membersInclude(i.user()))}canDeleteComment(e){return c.comments.find({parentId:e.id,parentType:"Comment"}).length===0&&e.discardedAt&&(e.discussion().adminsInclude(i.user())||e.group().membersCanDeleteComments&&e.authorIs(i.user()))}canDiscardComment(e){return!e.discussion().closedAt&&!e.discardedAt&&(e.authorIs(i.user())||e.discussion().adminsInclude(i.user()))}canUndiscardComment(e){return!e.discussion().closedAt&&e.discardedAt&&(e.authorIs(i.user())||e.discussion().adminsInclude(i.user()))}canRemoveMembership(e){return e&&(e.user()===i.user()||this.canAdminister(e.group()))}canSetMembershipTitle(e){return i.user()===e.user()||this.canAdminister(e.group())}canResendMembership(e){return e&&!e.acceptedAt&&this.canAdminister(e.group())}canManageMembershipRequests(e){return e.membersCanAddMembers&&e.membersInclude(i.user())||e.adminsInclude(i.user())}canViewPublicGroups(){return p.features.app.public_groups}canStartGroups(){return this.isEmailVerified()&&(p.features.app.create_group||i.user().isAdmin)}canViewGroup(e){return!e.privacyIsSecret()||e.membersInclude(i.user())}canViewPrivateContent(e){return e.membersInclude(i.user())}canJoinGroup(e){return e.subscription.plan==="demo"||!this.canViewGroup(e)||e.membersInclude(i.user())?!1:e.membershipGrantedUpon==="request"||e.parentOrSelf().adminsInclude(i.user())}canRequestMembership(e){return e.membershipGrantedUpon==="approval"&&this.canViewGroup(e)&&!e.membersInclude(i.user())&&!this.canJoinGroup(e)}canTranslate(e){return e.discardedAt?!1:p.inlineTranslation.isAvailable&&Object.keys(e.translation).length===0&&!e.isBlank()&&e.contentLocale&&e.contentLocale!==i.user().locale||!e.contentLocale&&e.author().locale!==i.user().locale}canStartPoll(e){return e.adminsInclude(i.user())||e.membersInclude(i.user())&&e.group().membersCanRaiseMotions}canParticipateInPoll(e){return!e||e.closedAt?!1:e.myStance()||!e.specifiedVotersOnly&&e.membersInclude(i.user())}canMovePoll(e){return(!e.discussionId||!e.discussion().closedAt)&&!e.discussionId&&e.adminsInclude(i.user())}canEditPoll(e){return(!e.discussionId||!e.discussion().closedAt)&&e.adminsInclude(i.user())&&!e.closedAt}canDeletePoll(e){return(!e.discussionId||!e.discussion().closedAt)&&!e.discardedAt&&e.adminsInclude(i.user())}canExportPoll(e){return!e.discardedAt&&e.membersInclude(i.user())&&(e.closedAt||e.hideResults!=="until_closed")}canAddPollToThread(e){return!e.discardedAt&&!e.discussionId&&e.adminsInclude(i.user())}canSetPollOutcome(e){return(!e.discussionId||!e.discussion().closedAt)&&!e.discardedAt&&e.closedAt&&e.adminsInclude(i.user())}canClosePoll(e){return!!e.closingAt&&!e.discardedAt&&!e.closedAt&&this.canEditPoll(e)}canReopenPoll(e){return!e.discardedAt&&e.closedAt&&!e.anonymous&&e.adminsInclude(i.user())}};class Hs{constructor(e){e==null&&(e={}),this.exhausted=!1,this.loading=!1,this.collection=e.collection,this.params=Re({from:0,per:25,order:"id"},e.params),this.path=e.path,this.total=0,this.err=null,this.status=null}reset(){return this.params.from=0}fetchRecords(e){return e==null&&(e={}),this.loading=!0,this.params=co({},e,this.params),c[ie(this.collection)].fetch({path:this.path,params:this.params}).then(t=>(this.total=t.meta.total,this.params.from=this.params.from+this.params.per,this.exh
55austed=this.params.from>=this.total,t)).finally(()=>this.loading=!1).catch(t=>(this.err=t,this.status=t.status))}}function Wl(o){let e=c.discussions.collection.chain();return e=e.find({discardedAt:null}),o.group&&(e=e.find({groupId:{$in:o.group.organisationIds()}})),o.from&&(e=e.find({lastActivityAt:{$gt:o.from}})),o.to&&(e=e.find({lastActivityAt:{$lt:o.to}})),o.ids?e=e.find({id:{$in:o.ids}}):k(E([].concat(o.filters)),t=>e=(()=>{switch(t){case"show_recent":return e.find({lastActivityAt:{$gt:Pn(new Date,6)}});case"show_unread":return e.where(n=>n.isUnread());case"hide_unread":return e.where(n=>!n.isUnread());case"show_dismissed":return e.where(n=>n.isDismissed());case"hide_dismissed":return e.where(n=>!n.isDismissed());case"show_closed":return e.where(n=>n.closedAt!=null);case"show_opened":return e.find({closedAt:null});case"show_pinned":return e.find({pinned:!0});case"hide_pinned":return e.find({pinned:!1});case"show_muted":return e.where(n=>n.volume()==="mute");case"hide_muted":return e.where(n=>n.volume()!=="mute");case"show_proposals":return e.where(n=>n.hasDecision());case"hide_proposals":return e.where(n=>!n.hasDecision());case"only_threads_in_my_groups":var s=i.user().groupIds();return e.find({$or:[{$and:[{inviterId:{$ne:null}},{revokedAt:null}]},{groupId:{$in:s}}]})}})()),e.simplesort("lastActivityAt",!0).data()}const Gl={data(){return{dashboardLoaded:c.discussions.collection.data.length>0,filter:this.$route.params.filter||"hide_muted",discussions:[],loader:null}},created(){this.init(),m.$on("signedIn",this.init)},beforeDestroy(){m.$off("signedIn",this.init)},mounted(){m.$emit("content-title-visible",!1),m.$emit("currentComponent",{titleKey:"dashboard_page.aria_label",page:"dashboardPage"})},methods:{init(){this.loader=new Hs({collection:"discussions",path:"dashboard",params:{exclude_types:"poll",filter:this.filter,per:60}}),this.watchRecords({key:"dashboard",collections:["discussions","memberships"],query:this.query}),this.refresh()},refresh(){i.isSignedIn()&&(this.fetch(),this.query())},fetch(){this.loader&&this.loader.fetchRecords().then(()=>this.dashboardLoaded=!0)},query(){const o=c.memberships.collection.find({userId:i.user().id}).map(t=>t.groupId);let e=c.discussions.collection.chain();e=e.find({$or:[{groupId:{$in:o}},{discussionReaderUserId:i.user().id,revokedAt:null,inviterId:{$ne:null}}]}),e=e.find({discardedAt:null}),e=e.find({closedAt:null}),e=e.find({lastActivityAt:{$gt:Rn(new Date,6)}}),this.discussions=e.simplesort("lastActivityAt",!0).data()}},computed:{noGroups(){return i.user().groups().length===0},promptStart(){return this.noGroups&&_.canStartGroups()},userHasMuted(){return i.user().hasExperienced("mutingThread")},showLargeImage(){return!0}}},Yl={props:{until:null,diameter:{type:Number,default:30}}};var Kl=function(){var e=this,t=e._self._c;return t("div",[e.until?e._e():t(ne,{staticClass:"my-4 page-loading",attrs:{"justify-center":""}},[t(xs,{attrs:{indeterminate:"",color:"primary"}})],1),e.until?e._t("default"):e._e()],2)},Zl=[];function d(o,e,t,s,n,a,u,I){var A=typeof o=="function"?o.options:o;e&&(A.render=e,A.staticRenderFns=t,A._compiled=!0),s&&(A.functional=!0),a&&(A._scopeId="data-v-"+a);var L;if(u?(L=function(D){D=D||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!D&&typeof __VUE_SSR_CONTEXT__<"u"&&(D=__VUE_SSR_CONTEXT__),n&&n.call(this,D),D&&D._registeredComponents&&D._registeredComponents.add(u)},A._ssrRegister=L):n&&(L=I?function(){n.call(this,(A.functional?this.parent:this).$root.$options.shadowRoot)}:n),L)if(A.functional){A._injectStyles=L;var X=A.render;A.render=function(bt,Eo){return L.call(Eo),X(bt,Eo)}}else{var G=A.beforeCreate;A.beforeCreate=G?[].concat(G,L):[L]}return{exports:o,options:A}}var Jl=d(Yl,Kl,Zl,!1,null,null,null,null);const Ws=Jl.exports,Be=(o,e)=>function(t,s,n,a){if(t)return m.$emit("flashMessage",{level:o,duration:e||4e3,message:t,options:s,action:n,actionFn:a})};class y{static custom(e,t,s){return t==null&&(t="error"),s==null&&(s=4e3),m.$emit("flashMessage",{text:e,level:t,duration:s})}}l(y,"success",Be("success")),l(y,"info",Be("info")),l(y,"warning",Be("warning")),l(y,"error",Be("error")),l(y,"wait",Be("wait",3e4));window.Loomio.flash=y;const f=o=>
55m.$emit("openModal",o),Ft=new class{actions(e,t){return{make_a_copy:{icon:"mdi-content-copy",name:"templates.make_a_copy",menu:!0,canPerform(){return i.user()},to(){return`/d/new?discussion_id=${e.id}`}},translate_thread:{icon:"mdi-translate",name:"common.action.translate",dock:2,canPerform(){return _.canTranslate(e)},perform(){return i.user()&&e.translate(i.user().locale)}},subscribe:{name:"common.action.subscribe",icon:"mdi-bell",dock:2,canPerform(){return!e.closedAt&&e.volume()==="normal"&&_.canChangeVolume(e)},perform(){return f({component:"ChangeVolumeForm",props:{model:e}})}},unsubscribe:{name:"common.action.unsubscribe",icon:"mdi-bell-off",dock:2,canPerform(){return e.volume()==="loud"&&_.canChangeVolume(e)},perform(){return f({component:"ChangeVolumeForm",props:{model:e}})}},unignore:{name:"common.action.unignore",icon:"mdi-bell-outline",dock:2,canPerform(){return e.volume()==="quiet"&&_.canChangeVolume(e)},perform(){return f({component:"ChangeVolumeForm",props:{model:e}})}},announce_thread:{name:"common.action.invite",icon:"mdi-send",dock:2,canPerform(){return e.group().adminsInclude(i.user())||(e.group().membersCanAnnounce||e.group().membersCanAddGuests)&&e.membersInclude(i.user())},perform(){return m.$emit("openModal",{component:"StrandMembersList",props:{discussion:e}})}},react:{dock:1,canPerform(){return _.canAddComment(e)}},add_comment:{icon:"mdi-reply",dockDisplay:"icon",dock:1,canPerform(){return _.canAddComment(e)},perform(){return t.$vuetify.goTo("#add-comment")}},edit_thread:{name:"common.action.edit",icon:"mdi-pencil",dock:1,canPerform(){return _.canEditThread(e)},to(){return`/d/${e.key}/edit`}},show_history:{icon:"mdi-history",name:"action_dock.show_edits",dock:1,canPerform(){return e.edited()},perform(){return f({component:"RevisionHistoryModal",props:{model:e}})}},notification_history:{name:"action_dock.notification_history",icon:"mdi-bell-ring-outline",menu:!0,perform(){return f({component:"AnnouncementHistory",props:{model:e}})},canPerform(){return!0}},export_thread:{name:"common.action.print",icon:"mdi-printer-outline",dock:0,menu:!0,canPerform(){return _.canExportThread(e)},perform(){return _t(ue.discussion(e,{export:1},{absolute:!0,print:!0}))}},pin_thread:{icon:"mdi-pin-outline",name:"action_dock.pin_thread",menu:!0,canPerform(){return _.canPinThread(e)},perform:()=>this.pin(e)},unpin_thread:{icon:"mdi-pin-off",name:"action_dock.unpin_thread",menu:!0,canPerform(){return _.canUnpinThread(e)},perform:()=>this.unpin(e)},dismiss_thread:{name:"dashboard_page.mark_as_read",icon:"mdi-check",dock:1,canPerform(){return e.isUnread()},perform:()=>this.dismiss(e)},edit_arrangement:{icon:e.newestFirst&&"mdi-arrow-up"||"mdi-arrow-down",name:e.newestFirst&&"strand_nav.newest_first"||"strand_nav.oldest_first",dock:3,dockLeft:!0,canPerform(){return _.canEditThread(e)},perform(){return f({component:"ArrangementForm",props:{discussion:e.clone()}})}},close_thread:{menu:!0,icon:"mdi-archive-outline",canPerform(){return _.canCloseThread(e)},perform:()=>this.close(e)},reopen_thread:{menu:!0,icon:"mdi-refresh",dock:2,canPerform(){return _.canReopenThread(e)},perform:()=>this.reopen(e)},move_thread:{menu:!0,icon:"mdi-arrow-right",canPerform(){return _.canMoveThread(e)},perform(){return f({component:"MoveThreadForm",props:{discussion:e.clone()}})}},discard_thread:{name:"action_dock.delete_thread",icon:"mdi-delete-outline",menu:!0,canPerform(){return _.canDeleteThread(e)},perform(){return f({component:"ConfirmModal",props:{confirm:{submit:e.discard,text:{title:"delete_thread_form.title",helptext:"delete_thread_form.body",submit:"delete_thread_form.confirm",flash:"delete_thread_form.messages.success"},redirect:ue.group(e.group())}}})}}}}mute(e,t){if(t==null&&(t=!1),!i.user().hasExperienced("mutingThread")&&!t)return c.users.saveExperience("mutingThread"),c.users.updateProfile(i.user()).then(()=>f({component:"ConfirmModal",props:{confirm:{submit(){return e.saveVolume("mute",!0)},text:{title:"mute_explanation_modal.mute_thread",flash:"discussion.volume.mute_message",fragment:"mute_thread"}}}}));{const s=e.volume();return e.saveVolume("mute").then(()=>y.success("discussion.volume.mute_message",{name:e.title},"undo",()=>this.unmute(e,s)))}}unmute(e,t){return t==null&&(t="normal"),e.saveVolume(t).then(()=>y.success("discussion.volume.unmute_message",{name:e.title},"undo",()=>this.mute(e)))}close(e){return i.user().hasExperienced("closingThread")?e.close().then(()=>y.success("discussion.closed.closed",{},"undo",()=>this.reopen(e))):(c.users.saveExperience("closingThread"),c.users.updateProfile(i.user()).then(()=>f({component:"ConfirmModal",props:{confirm:{submit:e.close,text:{t
55itle:"close_explanation_modal.close_thread",helptext:"close_explanation_modal.body",flash:"discussion.closed.closed"}}}})))}reopen(e){return e.reopen().then(()=>y.success("discussion.closed.reopened",{},"undo",()=>this.close(e)))}dismiss(e){return e.dismiss().then(()=>y.success("dashboard_page.thread_dismissed",{},"undo",()=>this.recall(e)))}recall(e){return e.recall().then(()=>y.success("dashboard_page.thread_recalled",{},"undo",()=>this.dismiss(e)))}pin(e){return i.user().hasExperienced("pinningThread")?e.savePin().then(()=>y.success("discussion.pin.pinned","undo",()=>this.unpin(e))):c.users.saveExperience("pinningThread").then(()=>f({component:"ConfirmModal",props:{confirm:{submit:e.savePin,text:{title:"pin_thread_modal.title",flash:"discussion.pin.pinned",helptext:"pin_thread_modal.helptext"}}}}))}unpin(e){return e.saveUnpin().then(()=>y.success("discussion.pin.unpinned","undo",()=>this.pin(e)))}},Ql={props:{thread:Object,groupPage:{type:Boolean,default:!1},showGroupName:{type:Boolean,default:!0}},computed:{dockActions(){return H(Ft.actions(this.thread,this),["dismiss_thread"])},menuActions(){const o=this.groupPage?this.$vuetify.breakpoint.smAndDown?["dismiss_thread","pin_thread","unpin_thread","edit_thread","move_thread","close_thread","reopen_thread","discard_thread"]:["pin_thread","unpin_thread","edit_thread","move_thread","close_thread","reopen_thread","discard_thread"]:this.$vuetify.breakpoint.smAndDown?["dismiss_thread","close_thread","reopen_thread"]:["close_thread","reopen_thread"];return H(Ft.actions(this.thread,this),o)},canPerformAny(){return K(this.menuActions,o=>o.canPerform())}}},Xl={props:{actions:Object,small:Boolean,icon:Boolean,name:String,menuIcon:{type:String,default:"mdi-dots-horizontal"}},computed:{canPerformAny(){return K(this.actions,o=>o.canPerform())}}},ec={props:{color:{type:String,default:void 0},dense:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},large:{type:Boolean,default:!1},left:{type:Boolean,default:!1},light:{type:Boolean,default:!1},right:{type:Boolean,default:!1},size:{type:[Number,String],default:void 0},small:{type:Boolean,default:!1},tag:String,XLarge:{type:Boolean,default:!1},XSmall:{type:Boolean,default:!1},name:String},data(){return{mdiAccount:Sn,mdiAccountGroup:On,mdiAccountMultiple:En,mdiAccountMultiplePlus:Dn,mdiAccountSearch:Nn,mdiAlarmCheck:Ln,mdiArchiveOutline:Vn,mdiArrowDown:Fn,mdiArrowLeft:Mn,mdiArrowRight:qn,mdiArrowUp:jn,mdiArrowUpDown:Un,mdiBell:zn,mdiBellOff:Bn,mdiBellOutline:Hn,mdiBellRingOutline:Wn,mdiBookOpenPageVariant:Gn,mdiCalendar:fo,mdiCallSplit:Is,mdiCamera:Yn,mdiCancel:Kn,mdiCarConvertible:Zn,mdiChartBar:Jn,mdiChatProcessing:Qn,mdiCheck:Xn,mdiCheckCircle:ei,mdiCheckboxBlankOutline:ti,mdiCheckboxMarked:oi,mdiCheckboxMarkedOutline:si,mdiChevronLeft:ni,mdiChevronRight:ii,mdiClockOutline:go,mdiClose:ri,mdiCloseCircleOutline:ai,mdiCodeBraces:li,mdiCog:ci,mdiCogOutline:di,mdiCommentMultiple:ui,mdiCommentPlusOutline:pi,mdiCommentTextOutline:mi,mdiContentCopy:_i,mdiCreditCardOutline:hi,mdiDatabaseArrowRightOutline:fi,mdiDatabaseExport:gi,mdiDiscord:vi,mdiDelete:yi,mdiDeleteOutline:bi,mdiDeleteRestore:wi,mdiDotsHorizontal:ki,mdiDotsVertical:xi,mdiDrag:Ii,mdiDragVertical:Ci,mdiEarth:Ai,mdiEmail:Ti,mdiEmailOutline:$i,mdiEmoticonOutline:Pi,mdiExitRun:Ri,mdiExitToApp:Si,mdiEye:Oi,mdiEyeOff:Ei,mdiFaceAgent:Di,mdiFlagCheckered:Cs,mdiFolderSwapOutline:Ni,mdiFormatAlignCenter:Li,mdiFormatAlignLeft:Vi,mdiFormatAlignRight:Fi,mdiFormatHeader1:Mi,mdiFormatHeader2:qi,mdiFormatHeader3:ji,mdiFormatBold:Ui,mdiFormatItalic:zi,mdiFormatListBulleted:Bi,mdiFormatListNumbered:Hi,mdiFormatPilcrow:Wi,mdiFormatQuoteClose:Gi,mdiFormatStrikethrough:Yi,mdiFormatUnderline:Ki,mdiFormatVerticalAlignCenter:Zi,mdiFormatVerticalAlignTop:Ji,mdiForum:Qi,mdiHelp:Xi,mdiHelpCircleOutline:er,mdiHistory:tr,mdiImage:or,mdiInformationOutline:sr,mdiKeyVariant:nr,mdiLanguageMarkdownOutline:ir,mdiLink:rr,mdiLinkVariant:ar,mdiLockOutline:lr,mdiLockReset:cr,mdiMagnify:dr,mdiMagnifyMinusOutline:ur,mdiMagnifyPlusOutline:pr,mdiMapSearch:mr,mdiMatrix:_r,mdiMenu:hr,mdiMenuDown:fr,mdiMicrophone:gr,mdiMicrosoftTeams:vr,mdiMinus:yr,mdiOpenInNew:br,mdiPalette:wr,mdiPaperclip:kr,mdiPencil:xr,mdiPin:Ir,mdiPinOff:Cr,mdiPinOutline:Ar,mdiPlus:Tr,mdiPoll:$r,mdiPrinterOutline:Pr,mdiRadioboxBlank:Rr,mdiRadioboxMarked:Sr,mdiRefresh:Or,mdiReply:Er,mdiRobot:Dr,mdiRocket:Nr,mdiSend:Lr,mdiShieldStar:Vr,mdiSlack:Fr,mdiStar:Mr,mdiTable:qr,mdiTableColumnPlusAfter:jr,mdiTableColumnPlusBefore:Ur,mdiTableColumnRemove:zr,mdiTableMergeCells:Br,mdiTableRemove:Hr,mdiTableRowPlusAfter:Wr,mdiTableRowPlusBefore:Gr,mdiTableRowRemove:Yr,mdiTagOutline:Kr,mdiThumbsUpDown:Zr,mdiTranslate:Jr,mdiUnfoldMoreHorizontal:Qr,mdiVideo:Xr,mdiWeatherNight:ea,mdiWebhook:ta,mdiWhiteBalanceSunny:oa,mdiWindowClose:sa,mdiYoutube:na}},methods:{iconSVG(){return this[ie(this.name)]}}};var tc=function(){var e=this,t=e._self._c;return t(ia,{attrs:{color:"color",dense:e.dense,large:e.large,left:e.left,light:e.light,right:e.right,small:e.small,tag:e.tag,"x-large":e.XLarge,"x-small":e.XSmall,size:e.size}},[e._v(e._s(e.iconSVG()))])},oc=[],sc=d(ec,tc,oc,!1,null,null,null,null);const h=sc.exports;var nc=function(){var e=this,t=e._self._c;return e.canPerformAny?t("div",{staticClass:"action-menu lmo-no-print"},[t(ft,{attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(g,e._g(e._b({staticClass:"action-menu--btn",attrs:{title:e.name,icon:e.icon,small:e.small},on:{click:function(a){a.preventDefault()}}},"v-btn",n,!1),s),[e.icon?t(h,{attrs:{small:e.small,name:e.menuIcon}}
55):e._e(),e.icon?e._e():t("span",[e._v(e._s(e.name))])],1)]}}],null,!1,845011461)},[t(ge,[e._l(e.actions,function(s,n){return s.canPerform()?[s.to?e._e():t(w,{key:n,class:"action-dock__button--"+n,attrs:{dense:""},on:{click:function(a){return s.perform()}}},[t(O,[t(h,{attrs:{name:s.icon}})],1),t(v,{directives:[{name:"t",rawName:"v-t",value:{path:s.name||"action_dock."+n,args:s.nameArgs&&s.nameArgs()},expression:"{path: (action.name || 'action_dock.'+name), args: (action.nameArgs && action.nameArgs()) }"}]})],1),s.to?t(w,{key:n,class:"action-dock__button--"+n,attrs:{dense:"",to:s.to()}},[t(O,[t(h,{attrs:{name:s.icon}})],1),t(v,{directives:[{name:"t",rawName:"v-t",value:{path:s.name||"action_dock."+n,args:s.nameArgs&&s.nameArgs()},expression:"{path: (action.name || 'action_dock.'+name), args: (action.nameArgs && action.nameArgs()) }"}]})],1):e._e()]:e._e()})],2)],1)],1):e._e()},ic=[],rc=d(Xl,nc,ic,!1,null,null,null,null);const Io=rc.exports,ac={props:{model:Object,actions:{type:Object,default(){return{}}},menuActions:{type:Object,default(){return{}}},small:Boolean,left:Boolean,menuIcon:{type:String,default:"mdi-dots-horizontal"}},computed:{leftActions(){return N(this.actions,o=>o.dockLeft)},rightActions(){return N(this.actions,o=>!o.dockLeft)}}};let _e={};const Gs=()=>_e={comment_ids:[],discussion_ids:[],poll_ids:[],outcome_ids:[],stance_ids:[]};Gs();const es=function(o){const e={};return k(o,function(t,s){return e[s]=t.join("x")||null,!0}),e},lc=uo(function(){if(Object.keys(es(_e)).length!==0)return c.reactions.fetch({params:es(_e)}),Gs()},500),cc=new class{enqueueFetch(e){return typeof e.isA=="function"&&e.isA("stance")&&_e.stance_ids.push(e.id),typeof e.isA=="function"&&e.isA("comment")&&_e.comment_ids.push(e.id),typeof e.isA=="function"&&e.isA("discussion")&&_e.discussion_ids.push(e.id),typeof e.isA=="function"&&e.isA("poll")&&_e.poll_ids.push(e.id),typeof e.isA=="function"&&e.isA("outcome")&&_e.outcome_ids.push(e.id),lc()}},dc={props:{model:Object,small:Boolean},data(){return{diameter:this.small&&20||24,maxNamesCount:10,reactionHash:{all:[]},emojiSupported:Us}},created(){cc.enqueueFetch(this.model)},mounted(){this.watchRecords({collections:["reactions"],query:o=>{this.reactionHash={all:[]},k(c.reactions.find(this.reactionParams),e=>{let t;return this.reactionHash[e.reaction]==null&&(this.reactionHash[e.reaction]=[]),(t=c.users.find(e.userId))&&(this.reactionHash[e.reaction].push(t),this.reactionHash.all.push(t)),!0})}})},computed:{reactionParams(){return{reactableType:Ce(this.model.constructor.singular),reactableId:this.model.id}},reactionTypes(){return E(pt(J(this.reactionHash),["all"]))},myReaction(){if(i.isSignedIn())return c.reactions.find(Re({},this.reactionParams,{userId:i.userId}))[0]},otherReaction(){return c.reactions.find(Re({},this.reactionParams,{userId:{$ne:i.userId}}))[0]},reactionTypes(){return pt(J(this.reactionHash),["all"])}},methods:{srcForEmoji:ko,stripColons:js,colonToUnicode:wo,removeMine(o){const e=c.reactions.find(Re({},this.reactionParams,{userId:i.user().id,reaction:o}))[0];e&&e.destroy()},translate(o){const e=emojiTitle(o);return ra(e,"reactions.")?o:e},countFor(o){return this.reactionHash[o]!=null?this.reactionHash[o].length-this.maxNamesCount:0}}},uc={props:{user:{type:Object,default(){return c.users.build()}},coordinator:Boolean,size:{type:Number,default:32},noLink:Boolean,colors:Object},computed:{fontSize(){return this.size<19?"6px":this.size<21?"8px":this.size<25?"10px":this.size<33?"12px":this.size<48?"14px":this.size<64?"18px":this.size<128?"32px":"50px"},imageUrl(){return this.size>64?this.user.avatarUrl:this.user.thumbUrl},color(){const o=Object.values(H(p.theme.brand_colors,["gold","sky","wellington","sunset"]));return o[(this.user.id||0)%o.length]},componentType(){return this.noLink||!this.user.id?"div":"router-link"}}};var pc=function(){var e=this,t=e._self._c;return t(e.componentType,{tag:"component",staticClass:"user-avatar",style:{width:e.size+"px",margin:"0"},attrs:{"aria-hidden":"true",to:!e.noLink&&e.user.id&&e.urlFor(e.user)}},[e.imageUrl?t(ce,{attrs:{title:e.user.name,size:e.size}},[t("img",{attrs:{alt:e.user.avatarInitials,src:e.imageUrl}})]):t(ce,{attrs:{title:e.user.name,size:e.size,color:e.color}},[e.user.avatarKind=="initials"?t("span",{staticClass:"user-avatar--initials",style:{"font-size":e.fontSize,width:e.size+"px",height:e.size+"px"}}
55,[e._v(e._s(e.user.avatarInitials))]):t(h,{attrs:{name:e.user.avatarKind}})],1)],1)},mc=[],_c=d(uc,pc,mc,!1,null,null,null,null);const Q=_c.exports;var hc=function(){var e=this,t=e._self._c;return e.reactionTypes.length?t("div",{staticClass:"reactions-display mr-2"},[t("div",{staticClass:"reactions-display__emojis"},e._l(e.reactionTypes,function(s){return t("div",{key:s,staticClass:"reaction lmo-pointer",on:{click:function(n){return e.removeMine(s)}}},[t(As,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:a}){return[t("div",e._g(e._b({staticClass:"reactions-display__group"},"div",a,!1),n),[e.emojiSupported?t("span",{class:e.small&&"small"||void 0},[e._v(e._s(e.colonToUnicode(s)))]):t("img",{staticClass:"emoji",attrs:{src:e.srcForEmoji(e.colonToUnicode(s))}}),e._l(e.reactionHash[s],function(u){return t(Q,{key:u.id,staticClass:"reactions-display__author",attrs:{"no-link":"",user:u,size:e.diameter}})})],2)]}}],null,!0)},e._l(e.reactionHash[s],function(n){return t("div",{key:n.id,staticClass:"reactions-display__name"},[t("span",[e._v(e._s(n.name))])])}),0)],1)}),0)]):e._e()},fc=[],gc=d(dc,hc,fc,!1,null,null,null,null);const ts=gc.exports,vc={props:{action:Object,name:String,nameArgs:Object,small:Boolean},computed:{text(){return this.$t(this.action.name||"action_dock."+this.name,this.nameArgs||{})},cssClass(){return`action-dock__button--${this.name}`}}};var yc=function(){var e=this,t=e._self._c;return t("span",[e.action.to?t(g,{staticClass:"action-button",class:e.cssClass,attrs:{small:e.small,to:e.action.to(),text:"",icon:e.action.dock==1,title:e.text}},[e.action.dock==1||e.action.dock==3?t(h,{attrs:{small:e.small,name:e.action.icon}}):e._e(),e.action.dock==3?t("span",{staticClass:"ml-1"}):e._e(),e.action.dock>1?t("span",[e._v(e._s(e.text))]):e._e()],1):t(g,{staticClass:"action-button",class:e.cssClass,attrs:{small:e.small,text:"",icon:e.action.dock==1,title:e.text},on:{click:function(s){return s.preventDefault(),e.action.perform()}}},[e.action.dock==1||e.action.dock==3?t(h,{attrs:{small:e.small,name:e.action.icon}}):e._e(),e.action.dock==3?t("span",{staticClass:"ml-1"}):e._e(),e.action.dock>1?t("span",[e._v(e._s(e.text))]):e._e()],1)],1)},bc=[],wc=d(vc,yc,bc,!1,null,null,null,null);const os=wc.exports,kc={props:{model:Object,small:Boolean},data(){return{search:null,closeEmojiMenu:!1}},methods:{insert(o){const e={reactableType:Ce(this.model.constructor.singular),reactableId:this.model.id,userId:i.user().id},t=c.reactions.find(e)[0]||c.reactions.build(e);t.reaction=`:${o}:`,t.save(),this.closeEmojiMenu=!0}}},xc={props:{isPoll:Boolean,insert:{type:Function,required:!0}},data(){return{search:"",showMore:!1}},methods:{srcForEmoji:ko},computed:{emojis(){return this.showMore?so:H(so,["common","hands","expressions"])}}};var Ic=function(){var e=this,t=e._self._c;return t(Fe,{staticClass:"emoji-picker pa-2"},[e._l(e.emojis,function(s,n){return t("div",{key:n},[t("h5",{directives:[{name:"t",rawName:"v-t",value:"emoji_picker."+n,expression:"'emoji_picker.'+category"}]}),t("div",{staticClass:"emoji-picker__emojis"},e._l(s,function(a,u){return t("span",{key:u,attrs:{title:u},on:{click:function(I){return e.insert(u,a)}}},[e._v(e._s(a))])}),0)])}),t("div",{staticClass:"d-flex justify-center pb-2"},[e.showMore?e._e():t(g,{directives:[{name:"t",rawName:"v-t",value:"common.action.show_more",expression:"'common.action.show_more'"}],attrs:{"x-small":""},on:{click:function(s){s.stopPropagation(),e.showMore=!0}}}),e.showMore?t(g,{directives:[{name:"t",rawName:"v-t",value:"common.action.show_fewer",expression:"'common.action.show_fewer'"}],attrs:{"x-small":""},on:{click:function(s){s.stopPropagation(),e.showMore=!1}}}):e._e()],1)],2)},Cc=[],Ac=d(xc,Ic,Cc,!1,null,null,null,null);const Tc=Ac.exports;var $c=function(){var e=this,t=e._self._c;return t(ft,{staticClass:"reactions-input",attrs:{"close-on-content-click":!0},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(g,e._g(e._b({staticClass:"emoji-picker__toggle action-button",attrs:{icon:"",small:e.small}},"v-btn",n,!1),s),[t(h,{attrs:{small:e.small,name:"mdi-emoticon-outline"}})],1)]}}]),model:{value:e.closeEmojiMenu,callback:function(s){e.closeEmojiMenu=s},expression:"closeEmojiMenu"}},[t(Tc,{attrs:{insert:e.insert,"is-poll":e.model.isA("poll")||e.model.isA("stance")||e.model.isA("outcome")}})],1)},Pc=[],Rc=d(kc,$c,Pc,!1,null,null,null,null);const Sc=Rc.exports;var Oc=function(){var e=this,t=e._self._c;return t("section",{staticClass:"d-flex flex-wrap align-center action-dock pb-1",staticStyle:{"margin-left":"-6px"},attrs:{"aria-label":e.$t("action_dock.actions_menu")}},[e._l(e.leftActions,function(s,n){return s.canPerform()?t("div",{key:n,staticClass:"action-dock__action"},[n!="react"?t(os,{attrs:{action:s,name:n,small:e.small,nameArgs:s.nameArgs&&s.nameArgs()}}
55):e._e()],1):e._e()}),e.left?e._e():t(U),!e.left&&e.actions.react&&e.actions.react.canPerform()?t(ts,{attrs:{model:e.model,small:e.small}}):e._e(),e._l(e.rightActions,function(s,n){return s.canPerform()?t("div",{key:n,staticClass:"action-dock__action"},[n=="react"?t(Sc,{staticClass:"action-dock__button--react",attrs:{model:e.model,small:e.small}}):e._e(),n!="react"?t(os,{attrs:{action:s,name:n,small:e.small,nameArgs:s.nameArgs&&s.nameArgs()}}):e._e()],1):e._e()}),e.menuActions?t(Io,{attrs:{actions:e.menuActions,menuIcon:e.menuIcon,small:e.small,icon:"",name:e.$t("action_dock.more_actions")}}):e._e(),e.left?t(U):e._e(),e.left&&e.actions.react&&e.actions.react.canPerform()?t(ts,{attrs:{model:e.model,small:e.small}}):e._e()],2)},Ec=[],Dc=d(ac,Oc,Ec,!1,null,null,null,null);const re=Dc.exports,Nc={props:{date:Date},methods:{approximate:xo}};var Lc=function(){var e=this,t=e._self._c;return t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"common.active_time_ago",args:{time_ago:e.approximate(e.date)}},expression:"{path: 'common.active_time_ago', args: {time_ago: approximate(date)}}"}]})},Vc=[],Fc=d(Nc,Lc,Vc,!1,null,null,null,null);const Mc=Fc.exports,qc={};var jc=function(){var e=this,t=e._self._c;return t("span",[t("span",{attrs:{"aria-hidden":"true"}},[e._v(" · ")]),e._t("default")],2)},Uc=[],zc=d(qc,jc,Uc,!1,null,null,null,null);const S=zc.exports;var Bc=function(){var e=this,t=e._self._c;return t("span",[e._v(" ")])},Hc=[];const Wc={};var Gc=d(Wc,Bc,Hc,!1,null,null,null,null);const P=Gc.exports,Yc={props:{tags:Array,group:Object,showCounts:Boolean,showOrgCounts:Boolean,selected:String,smaller:Boolean,selected:String},computed:{groupKey(){return this.group.key},byName(){const o={};
55return this.group.tags().forEach(e=>o[e.name]=e),o},tagObjects(){return this.tags.map((o,e)=>({id:e,name:o,color:(this.byName[o]||{}).color,taggingsCount:(this.byName[o]||{}).taggingsCount}))}}};var Kc=function(){var e=this,t=e._self._c;return t("span",{staticClass:"tags-display"},e._l(e.tagObjects,function(s){return t(M,{key:s.id,staticClass:"mr-1",class:{"mb-1":e.showCounts},attrs:{outlined:s.name!=e.selected,small:!e.smaller,xSmall:e.smaller,color:s.color,to:"/g/"+e.groupKey+"/tags/"+s.name}},[t("span",[e._v(e._s(s.name))]),e.showCounts?t("span",[t(P),t("span",[e._v(e._s(s.taggingsCount))])],1):e._e(),e.showOrgCounts?t("span",[t(P),t("span",[e._v(e._s(s.orgTaggingsCount))])],1):e._e()])}),1)},Zc=[],Jc=d(Yc,Kc,Zc,!1,null,null,null,null);const zt=Jc.exports;var Qc=function(){var e=this,t=e._self._c;return t(w,{staticClass:"thread-preview thread-preview__link",class:{"thread-preview--unread-border":e.thread.isUnread()},attrs:{to:e.urlFor(e.thread)}},[t(fe,[t(Q,{attrs:{user:e.thread.author(),size:40,"no-link":""}})],1),t(R,[t(v,{staticStyle:{"align-items":"center"}},[e.thread.pinnedAt?t("span",{attrs:{title:e.$t("context_panel.thread_status.pinned")}},[t(h,{attrs:{small:"",name:"mdi-pin-outline"}})],1):e._e(),t("span",{staticClass:"thread-preview__title",class:{"thread-preview--unread":e.thread.isUnread()}},[e._v(e._s(e.thread.title))]),e.thread.closedAt?t(M,{directives:[{name:"t",rawName:"v-t",value:"common.privacy.closed",expression:"'common.privacy.closed'"}],staticClass:"ml-1",attrs:{"x-small":"",label:"",outlined:"",color:"warning"}}):e._e(),t(zt,{staticClass:"ml-1",attrs:{tags:e.thread.tags,group:e.thread.group(),smaller:""}})],1),t(q,[e.showGroupName?t("span",{staticClass:"thread-preview__group-name"},[e._v(e._s(e.thread.group().name))]):e._e(),e.showGroupName?t(S):e._e(),t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"thread_preview.replies_count",args:{count:e.thread.itemsCount}},expression:"{path: 'thread_preview.replies_count', args: {count: thread.itemsCount}}"}],staticClass:"thread-preview__items-count"}),t(P),e.thread.hasUnreadActivity()?t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"thread_preview.unread_count",args:{count:e.thread.unreadItemsCount()}},expression:"{path: 'thread_preview.unread_count', args: {count: thread.unreadItemsCount()}}"}],staticClass:"thread-preview__unread-count"}):e._e(),t(S),t(Mc,{attrs:{date:e.thread.lastActivityAt}})],1)],1),e.$vuetify.breakpoint.mdAndUp?t(de,[t(re,{attrs:{actions:e.dockActions}})],1):e._e(),e.canPerformAny?t(de,[t(Io,{attrs:{actions:e.menuActions,icon:""}})],1):e._e()],1)},Xc=[],ed=d(Ql,Qc,Xc,!1,null,null,null,null);const td=ed.exports,od={props:{blockCount:Number,lineCount:Number},computed:{blocks(){return new Array(this.blockCount||1)},lines(){return new Array(this.lineCount||3)}}};var sd=function(){var e=this,t=e._self._c;return t("div",{staticClass:"loading-content"},e._l(e.blocks,function(s,n){return t("div",{key:n,staticClass:"loading-content__background-wrapper"},e._l(e.lines,function(a,u){return t("div",{key:u,staticClass:"loading-content__background"})}),0)}),0)},nd=[],id=d(od,sd,nd,!1,null,null,null,null);const Ys=id.exports,rd={data(){return{votePolls:[],otherPolls:[],loader:null}},created(){this.loader=new Hs({collection:"polls",params:{exclude_types:"group",status:"recent"}}),this.loader.fetchRecords(),this.watchRecords({collections:["polls","groups","memberships","stances"],query:()=>this.findRecords()})},methods:{findRecords(){const o=i.user().groupIds(),e=c.stances.find({myStance:!0}).map(n=>n.pollId);let t=c.polls.collection.chain();if(t=t.find({discardedAt:null,closingAt:{$ne:null}}),t=t.find({$or:[{groupId:{$in:o}},{id:{$in:e}},{authorId:i.user().id}]}),t=t.find({$or:[{closedAt:null},{closedAt:{$gt:aa(new Date,3)}}]}),this.$route.query.q){const n=new RegExp(la(this.$route.query.q),"i");t=t.find({$or:[{title:{$regex:n}},{description:{$regex:n}}]})}const s=n=>n.iCanVote()&&!n.iHaveVoted();this.votePolls=j(t.simplesort("closingAt",!0).data(),s),this.otherPolls=ca(t.simplesort("closingAt",!0).data(),s)}}},ad={props:{poll:Object,smaller:Boolean}};var ld=function(){var e=this,t=e._self._c;return e.poll.template?t(M,{attrs:{"x-small":e.smaller,small:!e.smaller,outlined:"",title:e.$t("templates.this_is_a_template_for_new_poll")}},[t("i",{staticClass:"mdi mdi-content-copy mr-1"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"common.template",expression:"'common.template'"}]}
55)]):e._e()},cd=[],dd=d(ad,ld,cd,!1,null,null,null,null);const ud=dd.exports,pd={components:{TemplateBadge:ud},props:{poll:Object,displayGroupName:Boolean},methods:{showGroupName(){return this.displayGroupName&&this.poll.groupId}},computed:{link(){return ue.discussionPoll(this.poll)}}},md={props:{poll:Object,approximate:Boolean},methods:{exact:Ie,timeMethod(){return this.approximate?xo(this.time):Ie(this.time)}},computed:{time(){const o=this.poll.isVotable()?"closingAt":"closedAt";return this.poll[o]},translationKey(){return this.poll.isVotable()?"common.closing_in":"common.closed_ago"},color(){return this.poll.isVotable()?ws(this.poll.closingAt,new Date)<48?"warning":"":"error"},styles(){return this.color?{color:"var(--v-"+this.color+"-base)"}:{}}}};var _d=function(){var e=this,t=e._self._c;return t("span",{style:e.styles},[e.poll.closingAt?t("abbr",{staticClass:"closing-in timeago--inline"},[t("span",{directives:[{name:"t",rawName:"v-t",value:{path:e.translationKey,args:{time:e.timeMethod(e.time)}},expression:"{ path: translationKey, args: { time: timeMethod(time) } }"}],attrs:{title:e.exact(e.time)}})]):t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_common_wip_field.past_tense",expression:"'poll_common_wip_field.past_tense'"}]})])},hd=[],fd=d(md,_d,hd,!1,null,null,null,null);const Ks=fd.exports,gd={props:{size:Number,poll:Object},data(){return{svgEl:null,shapes:[]}},computed:{stanceCounts(){return this.poll.stanceCounts},scoreData(){return Ts(b(this.stanceCounts,(o,e)=>({color:p.pollColors.poll[e],index:e,score:o})),5)},scoreMaxValue(){return mt(b(this.scoreData,o=>o.score))}},methods:{draw(){this.scoreData.length>0&&this.scoreMaxValue>0?this.drawChart():this.drawPlaceholder()},drawPlaceholder(){k(this.shapes,t=>t.remove());const o=this.size/3,e={0:this.size,1:2*this.size/3,2:this.size/3};k(e,(t,s)=>{this.svgEl.rect(t,o-2).fill("#ebebeb").x(0).y(s*o)})},drawChart(){k(this.shapes,e=>e.remove());const o=this.size/this.scoreData.length;b(this.scoreData,e=>{const t=mt([this.size*e.score/this.scoreMaxValue,2]);return this.svgEl.rect(t,o-2).fill(e.color).x(0).y(e.index*o)})}},watch:{stanceCounts(){this.draw()}},mounted(){this.svgEl=$s(this.$refs.svg).size("100%","100%"),this.draw()}};var vd=function(){var e=this,t=e._self._c;return t("div",{ref:"svg",staticClass:"bar-chart",style:{height:e.size+"px",width:e.size+"px"}})},yd=[],bd=d(gd,vd,yd,!1,null,null,null,null);const Zs=bd.exports,wd={props:{slices:Array,size:Number},data(){return{svgEl:null,shapes:[]}},computed:{radius(){return this.size/2}},methods:{arcPath(o,e){const t=Math.PI/180,s=this.radius+this.radius*Math.cos(-o*t),n=this.radius+this.radius*Math.cos(-e*t),a=this.radius+this.radius*Math.sin(-o*t),u=this.radius+this.radius*Math.sin(-e*t);return["M",this.radius,this.radius,"L",s,a,"A",this.radius,this.radius,0,+(e-o>180),0,n,u,"z"].join(" ")},draw(){this.shapes.forEach(e=>e.remove());let o=90;switch(this.slices.length){case 0:return this.shapes.push(this.svgEl.circle(this.size).attr({"stroke-width":0,fill:"#BBBBBB"}));case 1:return k(this.slices,e=>this.shapes.push(this.svgEl.circle(this.size).attr({"stroke-width":0,fill:e.color})));default:return k(this.slices,e=>{const t=360*e.value/100;return this.shapes.push(this.svgEl.path(this.arcPath(o,o+t)).attr({"stroke-width":0,fill:e.color})),o+=t})}}},watch:{slices(){this.draw()}},mounted(){this.svgEl=$s(this.$el).size("100%","100%"),this.draw()},beforeDestroy(){this.svgEl.clear(),delete this.shapes}};var kd=function(){var e=this,t=e._self._c;return t("div",{staticClass:"poll-proposal-chart",style:{width:e.size+"px",height:e.size+"px"}})},xd=[],Id=d(wd,kd,xd,!1,null,null,null,null);const Js=Id.exports,Cd={props:{poll:Object,size:Number},created(){this.watchRecords({collections:["pollOptions"],query:o=>{this.results=Qt(this.poll.results,0,10),this.voterIds=Qt(this.poll.decidedVoterIds(),0,10)}})},computed:{cellHeight(){return this.size/this.results.length},cellWidth(){return this.size/this.voterIds.length},cellSize(){return this.cellHeight>this.cellWidth?this.cellWidth:this.cellHeight}},methods:{classForScore(o){switch(o){case 2:return"poll-meeting-chart__cell--yes";case 1:return"poll-meeting-chart__cell--maybe";case 0:return"poll-meeting-chart__cell--no";default:return"poll-meeting-chart__cell--empty"}}}};var Ad=function(){var e=this,t=e._self._c;return t("div",{staticClass:"poll-common-icon-grid d-flex align-center justify-center"},[e.voterIds.length?t("table",e._l(e.results,function(s){return t("tr",{key:s.id},e._l(e.voterIds,function(n){return t("td",{key:n},[t("div",{staticClass:"poll-meeting-icon__cell",class:e.classForScore(s.voter_scores[n]),style:{height:e.cellSize+"px",width:e.cellSize+"px"}},[e._v("Â ")])])}),0)}
55),0):e._e(),e.voterIds.length==0?t("table",e._l(e.results,function(s){return t("tr",{key:s.id},e._l(e.results,function(n){return t("td",{key:n.id},[t("div",{staticClass:"poll-meeting-icon__cell poll-meeting-chart__cell--empty",style:{height:e.cellSize+"px",width:e.cellSize+"px"}},[e._v(" ")])])}),0)}),0):e._e()])},Td=[],$d=d(Cd,Ad,Td,!1,null,null,null,null);const Qs=$d.exports,Pd={components:{BarIcon:Zs,PieIcon:Js,GridIcon:Qs},props:{poll:Object,showMyStance:Boolean,stanceSize:Number({default:20}),size:{type:Number,default:40}},data(){return{slices:this.poll.pieSlices()}},watch:{"poll.stanceCounts"(){this.slices=this.poll.pieSlices()}},computed:{myStance(){return this.poll.myStance()},showPosition(){return"proposal count".split(" ").includes(this.poll.pollType)}}},Rd={props:{stance:Object,poll:Object,size:{type:Number,default:20}},computed:{hasOptionIcon(){return this.poll.config().has_option_icon},pollOption(){return this.stance.pollOption()}}};var Sd=function(){var e=this,t=e._self._c;return t("div",{staticClass:"poll-common-stance-icon",style:{width:e.size+"px",height:e.size+"px"},attrs:{"aria-hidden":"true"}},[e.stance&&e.stance.castAt&&e.pollOption?[e.hasOptionIcon?t("div",{staticClass:"poll-common-chart-preview__stance",class:"poll-proposal-chart-preview__stance--"+e.pollOption.icon}):e._e(),e.hasOptionIcon?e._e():[t("div",{staticClass:"poll-common-chart-preview__stance"},[e.poll.pollType!="meeting"?t(h,{attrs:{small:"",color:e.pollOption.color,name:"mdi-check"}}):t(h,{attrs:{small:"",name:"mdi-check"}})],1)]]:t("div",{staticClass:"poll-common-chart-preview__stance poll-proposal-chart-preview__stance--undecided"},[t(h,{attrs:{size:e.size-e.size/4,color:"primary",name:"mdi-help"}})],1)],2)},Od=[],Ed=d(Rd,Sd,Od,!1,null,null,null,null);const Dd=Ed.exports;var Nd=function(){var e=this,t=e._self._c;return t("div",{staticClass:"poll-common-chart-preview",style:{width:e.size+"px",height:e.size+"px"},attrs:{"aria-hidden":"true"}},[e.poll.chartType=="bar"?t("bar-icon",{attrs:{poll:e.poll,size:e.size}}):e._e(),e.poll.chartType=="pie"?t("pie-icon",{attrs:{slices:e.slices,size:e.size}}):e._e(),e.poll.chartType=="grid"?t("grid-icon",{attrs:{poll:e.poll,size:e.size}}):e._e(),e.showMyStance&&(e.myStance||e.poll.iCanVote())?t("div",{staticClass:"poll-common-chart-preview__stance-container"},[t(Dd,{attrs:{poll:e.poll,stance:e.myStance,size:e.stanceSize}})],1):e._e()],1)},Ld=[],Vd=d(Pd,Nd,Ld,!1,null,null,null,null);const Co=Vd.exports;var Fd=function(){var e=this,t=e._self._c;return t(w,{staticClass:"poll-common-preview",attrs:{to:e.link}},[t(fe,[t(Co,{attrs:{poll:e.poll,"show-my-stance":""}})],1),t(R,[t(v,[t("span",[e._v(e._s(e.poll.title))]),t(zt,{staticClass:"ml-1",attrs:{tags:e.poll.tags,group:e.poll.group(),smaller:""}})],1),t(q,[t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_common_collapsed.by_who",args:{name:e.poll.authorName()}},expression:"{ path: 'poll_common_collapsed.by_who', args: { name: poll.authorName() } }"}]}),t(P),t("span",[e._v("·")]),t(P),e.displayGroupName&&e.poll.groupId?t("span",[t("span",[e._v(e._s(e.poll.group().name))]),t(P),t("span",[e._v("·")]),t(P)],1):e._e(),t(Ks,{attrs:{poll:e.poll,approximate:""}})],1)],1)],1)},Md=[],qd=d(pd,Fd,Md,!1,null,null,null,null);const ss=qd.exports;var jd=function(){var e=this,t=e._self._c;return e.otherPolls.length||e.votePolls.length||e.loader.loading?t("div",{staticClass:"polls-panel"},[t(ve,{staticClass:"mb-2"},[t(ge,{attrs:{"two-line":"",avatar:""}},[[t(we,{directives:[{name:"t",rawName:"v-t",value:"dashboard_page.polls_to_vote_on",expression:"'dashboard_page.polls_to_vote_on'"}]}),e._l(e.votePolls,function(s){return e.votePolls.length?t(ss,{key:s.id,attrs:{poll:s}}):e._e()}),e.votePolls.length==0?t(Ps,{directives:[{name:"t",rawName:"v-t",value:"dashboard_page.no_polls_to_vote_on",expression:"'dashboard_page.no_polls_to_vote_on'"}]}):e._e()],e.otherPolls.length?[t(we,{directives:[{name:"t",rawName:"v-t",value:"dashboard_page.recent_polls",expression:"'dashboard_page.recent_polls'"}]}),e._l(e.otherPolls,function(s){return t(ss,{key:s.id,attrs:{poll:s}})})]:e._e(),!e.votePolls.length&&!e.otherPolls.length&&e.loader.loading?[t(we,{directives:[{name:"t",rawName:"v-t",value:"group_page.polls",expression:"'group_page.polls'"}]}),e._l([1],function(s,n){return t(Ys,{key:n,attrs:{lineCount:2}})}
55)]:e._e()],2)],1)],1):e._e()},Ud=[],zd=d(rd,jd,Ud,!1,null,null,null,null);const Bd=zd.exports;var Hd=function(){var e=this,t=e._self._c;return t(qt,[t(jt,{staticClass:"dashboard-page max-width-1024 px-0 px-sm-3"},[t("h1",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:e.titleVisible},expression:"{callback: titleVisible}"},{name:"t",rawName:"v-t",value:"dashboard_page.aria_label",expression:"'dashboard_page.aria_label'"}],staticClass:"text-h4 my-4",attrs:{tabindex:"-1"}}),t(Bd),e.dashboardLoaded?e._e():t(ve,{staticClass:"mb-3"},[t(ge,{attrs:{"two-line":""}},[t(we,{directives:[{name:"t",rawName:"v-t",value:"dashboard_page.recent_threads",expression:"'dashboard_page.recent_threads'"}]}),e._l([1,2,3],function(s,n){return t(Ys,{key:n,attrs:{lineCount:2}})})],2)],1),e.dashboardLoaded?t("div",[t("section",{staticClass:"dashboard-page__loaded"},[e.discussions.length==0?t("div",{staticClass:"dashboard-page__empty"},[e.noGroups?t("p",{domProps:{innerHTML:e._s(e.$t("dashboard_page.no_groups.show_all"))}}):e._e(),e.noGroups?e._e():t("div",{staticClass:"dashboard-page__no-threads"},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.filter=="show_all",expression:"filter == 'show_all'"},{name:"t",rawName:"v-t",value:"dashboard_page.no_threads.show_all",expression:"'dashboard_page.no_threads.show_all'"}]}),t("span",{directives:[{name:"show",rawName:"v-show",value:e.filter=="show_muted"&&e.userHasMuted,expression:"filter == 'show_muted' && userHasMuted"},{name:"t",rawName:"v-t",value:"dashboard_page.no_threads.show_muted",expression:"'dashboard_page.no_threads.show_muted'"}]}),t("router-link",{directives:[{name:"show",rawName:"v-show",value:e.filter!="show_all"&&e.userHasMuted,expression:"filter != 'show_all' && userHasMuted"}],attrs:{to:"/dashboard"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"dashboard_page.view_recent",expression:"'dashboard_page.view_recent'"}]})])],1)]):e._e(),e.discussions.length?t("div",{staticClass:"dashboard-page__collections"},[t(ve,{staticClass:"mb-3 thread-preview-collection__container thread-previews-container"},[t(ge,{staticClass:"thread-previews",attrs:{"two-line":""}},[t(we,{directives:[{name:"t",rawName:"v-t",value:"dashboard_page.recent_threads",expression:"'dashboard_page.recent_threads'"}]}),e._l(e.discussions,function(s){return t(td,{key:s.id,attrs:{thread:s}})})],2)],1),e.loader.exhausted?e._e():t("div",{staticClass:"dashboard-page__footer"}),t(Ws,{directives:[{name:"show",rawName:"v-show",value:e.loader.loading,expression:"loader.loading"}]})],1):e._e()])]):e._e()],1)],1)},Wd=[],Gd=d(Gl,Hd,Wd,!1,null,null,null,null);const ns=Gd.exports,is=new class{actions(e){const t=e.membershipFor(i.user());return{email_group:{name:"common.value",nameArgs:()=>({value:e.handle+"@"+p.theme.reply_hostname}),icon:"mdi-email",dock:2,canPerform(){return e.handle&&_.canStartThread(e)},perform(){m.$emit("openModal",{component:"EmailToGroupSettings",persistent:!1,props:{group:e}})}},translate_group:{name:"common.action.translate",icon:"mdi-translate",dock:2,canPerform(){return e.description&&_.canTranslate(e)},perform(){return i.user()&&e.translate(i.user().locale)}},edit_group:{name:"group_page.options.edit_group",icon:"mdi-cog",menu:!0,canPerform(){return _.canEditGroup(e)},perform(){return f({component:"GroupForm",props:{group:e.clone()}})}},change_volume:{name:"user_dropdown.email_settings",icon:"mdi-email",menu:!0,canPerform(){return _.canChangeGroupVolume(e)},perform(){return f({component:"ChangeVolumeForm",props:{model:t}})}},edit_tags:{icon:"mdi-tag-outline",name:"loomio_tags.card_title",menu:!0,canPerform(){return _.canAdminister(e)},perform(){m.$emit("openModal",{component:"TagsSelect",props:{group:e}})}},become_coordinator:{name:"group_page.options.become_coordinator",icon:"mdi-shield-star",menu:!0,canPerform(){return t&&t.admin===!1&&(e.adminMembershipsCount===0||e.parentOrSelf().adminsInclude(i.user()))},perform(){return c.memberships.makeAdmin(t).then(()=>y.success("memberships_page.messages.make_admin_success",{name:i.user().name}))}},chatbots:{name:"chatbot.chatbots",icon:"mdi-robot",menu:!0,canPerform(){return e.adminsInclude(i.user())},perform(){return f({component:"ChatbotList",props:{group:e}})}},webhooks:{name:"webhook.api_keys",icon:"mdi-key-variant",menu:!0,canPerform(){return e.adminsInclude(i.user())},perform(){return f({component:"WebhookList",props:{group:e}})}},api_docs:{name:"common.api_docs",icon:"mdi-webhook",menu:!0,canPerform(){return e.adminsInclude(i.user())},perform(){return _t(`/help/api2/?group_id=${e.id}`)}},group_stats:{name:"group_page.stats",icon:"mdi-chart-bar",menu:!0,canPerform(){return _.canAdminister(e)},perform(){return window.open(`${p.baseUrl}g/${e.key}/stats?export=1`,"_blank")}},export_data:{name:"group_page.options.export_data",icon:"mdi-database-export",menu:!0,canPerform(){return t&&e.adminsInclude(i.user())},perform(){return f({component:"ExportDataModal",props:{group:e}})}},manage_subscription:{name:"subscription_status.manage_subscription",icon:"mdi-credit-card-outline",menu:!0,perform(){return window.location=`/upgrade/${e.id}`},canPerform(){return p.features.app.subscriptions&&e.isParent()&&e.adminsInclude(i.user())}},leave_group:{name:"group_page.options.leave_group",icon:"mdi-exit-to-app",menu:!0,canPerform(){return _.canRemoveMembership(t)},perform(){return f({component:"ConfirmModal",props:{confirm:{submit(){return t.destroy().then(()=>c.discussions.find({groupId:t.groupId}
55).forEach(s=>s.update({discussionReaderUserId:null})))},text:{title:"leave_group_form.title",helptext:"leave_group_form.question",confirm:"leave_group_form.submit",flash:"group_page.messages.leave_group_success"},redirect:"/dashboard"}}})}},destroy_group:{name:"delete_group_modal.title",icon:"mdi-delete",menu:!0,canPerform(){return _.canArchiveGroup(e)},perform(){const s=e.handle||e.name.trim();return f({component:"ConfirmModal",props:{confirm:{submit:e.destroy,text:{title:e.isParent()&&"delete_group_modal.title"||"delete_group_modal.subgroup_title",helptext:e.isParent()&&"delete_group_modal.parent_body"||"delete_group_modal.body",raw_confirm_text_placeholder:C.t("delete_group_modal.confirm",{name:s}),confirm_text:s,flash:"delete_group_modal.success",submit:"delete_group_modal.title"},redirect:"/dashboard"}}})}}}}},Yd={props:{group:Object},data(){return{isHidden:i.user().hasExperienced("old-plan-banner")}},methods:{hideBanner(){c.users.saveExperience("old-plan-banner"),this.isHidden=!0}},computed:{isAdmin(){return this.group.adminsInclude(i.user())},isOldPlan(){return"pp-basic-monthly pp-pro-monthly ap-active-monthly npap-active-monthly pp-basic-annual pp-pro-annual pp-community-annual ap-active-annual ap-community-annual npap-active-annual small-monthly small-yearly".includes(this.group.subscription.plan)}}};var Kd=function(){var e=this,t=e._self._c;return e.isAdmin&&e.isOldPlan&&!e.isHidden?t(z,{attrs:{outlined:"",color:"secondary",dense:""}},[t(ne,{attrs:{"align-center":""}},[t("div",{staticClass:"pr-1"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"current_plan_button.is_old_plan",expression:"'current_plan_button.is_old_plan'"}]})]),t(U),t(g,{staticClass:"mr-2",attrs:{color:"primary",href:"/upgrade/"+e.group.id,target:"_blank",title:e.$t("current_plan_button.tooltip")}},[t(h,{attrs:{name:"mdi-rocket"}}),e.isOldPlan?t("span",{directives:[{name:"t",rawName:"v-t",value:"current_plan_button.view_plans",expression:"'current_plan_button.view_plans'"}]}):e._e()],1),t(g,{attrs:{icon:"",title:e.$t("common.action.close")},on:{click:e.hideBanner}},[t(h,{attrs:{name:"mdi-close"}})],1)],1)],1):e._e()},Zd=[],Jd=d(Yd,Kd,Zd,!1,null,null,null,null);const Qd=Jd.exports,Xd={components:{OldPlanBanner:Qd},data(){return{group:null,activeTab:"",groupFetchError:null}},created(){this.init(),m.$on("signedIn",this.init)},beforeDestroy(){m.$off("signedIn",this.init)},watch:{"$route.params.key":"init"},computed:{dockActions(){return N(is.actions(this.group),o=>o.dock)},menuActions(){return N(is.actions(this.group),o=>o.menu)},canEditGroup(){return _.canEditGroup(this.group)},tabs(){if(!this.group)return;let o="";return this.$route.query.subgroups&&(o="?subgroups="+this.$route.query.subgroups),[{id:0,name:"threads",route:this.urlFor(this.group,null)+o},{id:1,name:"decisions",route:this.urlFor(this.group,"polls")+o},{id:2,name:"members",route:this.urlFor(this.group,"members")+o},{id:4,name:"files",route:this.urlFor(this.group,"files")+o},{id:5,name:"subgroups",route:this.urlFor(this.group,"subgroups")+o}].filter(e=>!(e.name==="subgroups"&&this.group.parentId))}},methods:{init(){c.groups.findOrFetch(this.$route.params.key).then(o=>{this.group=o,this.group.newHost&&(window.location.host=this.group.newHost)}).catch(o=>{m.$emit("pageError",o),o.status===403&&!i.isSignedIn()&&m.$emit("openAuthModal")})},openGroupSettingsModal(){if(!this.canEditGroup)return null;m.$emit("openModal",{component:"GroupForm",props:{group:this.group}})}}},eu={props:{attachment:Object},data(){return{backgroundSize:"contain",backgroundPosition:"center"}},mounted(){},methods:{prettifyBytes(o){return da(o)},setBackgroundSize(){if(!this.attachment.preview_url)return;this.attachment.preview_url;const o=new Image,e=this;o.onload=function(){return Math.abs(this.width-this.height)<this.width/3?(e.backgroundSize="contain",e.backgroundPosition="center"):(e.backgroundSize="cover",e.backgroundPosition="0 5%")},o.src=this.attachment.preview_url}},watch:{"attachment.preview_url":"setBackgroundSize"}};var tu=function(){var e=this,t=e._self._c;return t(ve,{staticClass:"mt-3 attachment-list-item-link",attrs:{outlined:""}},[t("a",{attrs:{href:e.attachment.download_url,target:"_blank"}},[t(Lt,[t(h,{staticClass:"mr-2",attrs:{small:"",name:"mdi-"+e.attachment.icon}}),t("span",{staticClass:"text--secondary"},[e._v(e._s(e.attachment.filename)),t(P),t("span",{staticClass:"text-caption"}
55,[e._v(e._s(e.prettifyBytes(e.attachment.byte_size)))])],1)],1),e.attachment.preview_url?t("div",{staticClass:"attachment-list-item-image mb-2",style:{"background-image":"url("+e.attachment.preview_url+")","background-size":e.backgroundSize,"background-position":e.backgroundPosition}}):e._e()],1)])},ou=[],su=d(eu,tu,ou,!1,null,null,null,null);const nu=su.exports,iu={components:{AttachmentListItem:nu},props:{attachments:[Array,Object]}};var ru=function(){var e=this,t=e._self._c;return e.attachments&&e.attachments.length?t("div",{staticClass:"attachment-list mb-2"},e._l(e.attachments,function(s){return t("attachment-list-item",{key:s.id,attrs:{attachment:s}})}),1):e._e()},au=[],lu=d(iu,ru,au,!1,null,null,null,null);const je=lu.exports,cu={props:{model:Object,showEdit:Boolean,hidePreview:Boolean,hideDate:Boolean,fetch:Boolean,placeholder:String},data(){return{documents:[]}},created(){if(this.couldHaveDocuments)return this.model.isA("discussion")&&c.documents.fetchByDiscussion(this.model),(this.model.isA("poll")||this.model.isA("outcome")||this.model.isA("group"))&&c.documents.fetchByModel(this.model),this.watchRecords({collections:["documents"],query:o=>{this.documents=o.documents.collection.chain().find({modelId:{$in:xe([this.model.id,this.model.newDocumentIds])},modelType:Ce(this.model.constructor.singular)}).where(e=>!te(this.model.removedDocumentIds,e.id)).simplesort("createdAt",!0).data()}})},methods:{edit(o,e){m.$emit("initializeDocument",o,e)},deleteDocument(o){m.$emit("openModal",{component:"ConfirmModal",props:{confirm:{submit:o.destroy,text:{title:"comment_form.attachments.remove_attachment",helptext:"poll_common_delete_modal.question",submit:"common.action.delete",flash:"poll_common_delete_modal.success"}}}})}},computed:{couldHaveDocuments(){return this.model.createdAt<new Date("2020-08-01T00:00:00")},showTitle(){return(this.model.showDocumentTitle||this.showEdit)&&(this.model.hasDocuments()||this.placeholder)},canDelete(){return _.canEditGroup(this.model.group())}}};var du=function(){var e=this,t=e._self._c;return e.couldHaveDocuments?t("section",{staticClass:"document-list"},[!e.model.hasDocuments()&&e.placeholder?t("p",{directives:[{name:"t",rawName:"v-t",value:e.placeholder,expression:"placeholder"}],staticClass:"text-caption"}):e._e(),t("div",{staticClass:"document-list__documents"},e._l(e.documents,function(s){return t("div",{key:s.id,staticClass:"attachment-list__item",class:{"document-list__document--image":s.isAnImage()&&!e.hidePreview}},[s.isAnImage()&&!e.hidePreview?t("a",{staticClass:"attachment-list__preview",attrs:{href:s.url,target:"_blank"}},[t("img",{attrs:{src:s.webUrl,alt:s.title}})]):e._e(),t("div",{staticClass:"attachment-list__item-details"},[t("a",{staticClass:"document-list__title",attrs:{href:s.url,target:"_blank"}},[e._v(e._s(s.title))]),e.canDelete?t(g,{staticClass:"ml-2",attrs:{icon:"","aria-label":e.$t("common.action.delete")},on:{click:function(n){return e.deleteDocument(s)}}},[t(h,{attrs:{size:"medium",name:"mdi-delete"}})],1):e._e()],1)])}),0)]):e._e()},uu=[],pu=d(cu,du,uu,!1,null,null,null,null);const vt=pu.exports;let Xs=[];r(()=>import("./doctypes-sG8pRJNk.js"),__vite__mapDeps([]),import.meta.url).then(function(o){return Xs=Object.keys(o).filter(s=>parseInt(s).toString()===s).map(s=>o[s])});const mu={props:{model:Object,preview:Object,remove:{default:null,type:Function}},data(){return{editing:!1}},methods:{truncate:mo},computed:{imageUrl(){return this.preview.image?this.preview.image.startsWith("http")?this.preview.image:"https://"+this.hostname+this.preview.image:null},doctype(){return Xs.find(o=>new RegExp(o.regex).test(this.preview.url))||{name:"other"}},icon(){return this.doctype?"mdi-"+this.doctype.icon:"mdi-link-variant"},iconColor(){return this.doctype.icon},hostname(){return new URL(this.preview.url).host}}};var _u=function(){var e=this,t=e._self._c;return t("div",[e.editing?[t(ve,{staticClass:"link-preview mt-3",staticStyle:{position:"relative"},attrs:{outlined:""}},[e.preview.image?t("div",{staticClass:"link-preview__image",style:{"background-image":"url("+e.imageUrl+")","background-size":e.preview.fit||"contain","background-position":e.preview.align||"center"}}
55):e._e(),t(g,{staticClass:"link-preview__btn",staticStyle:{right:"8px"},attrs:{color:"primary",icon:"",outlined:"",title:e.$t("common.action.done")},on:{click:function(s){e.editing=!1}}},[t(h,{attrs:{name:"mdi-check"}})],1),t(Lt,[t(F,{attrs:{filled:""},model:{value:e.preview.title,callback:function(s){e.$set(e.preview,"title",s)},expression:"preview.title"}})],1),t(Fo,[t(ua,{attrs:{filled:""},model:{value:e.preview.description,callback:function(s){e.$set(e.preview,"description",s)},expression:"preview.description"}})],1)],1)]:[t(ve,{staticClass:"link-preview link-preview-link mt-3",staticStyle:{position:"relative"},attrs:{outlined:""}},[e.remove?[t("div",{staticStyle:{position:"relative",float:"right"}},[t(g,{staticClass:"link-preview__btn mr-1",staticStyle:{position:"relative"},attrs:{color:"primary",icon:"",outlined:"",title:e.$t("common.action.edit")},on:{click:function(s){e.editing=!0}}},[t(h,{attrs:{name:"mdi-pencil"}})],1),t(g,{staticClass:"link-preview__btn mr-1",staticStyle:{position:"relative"},attrs:{color:"primary",outlined:"",icon:"",title:e.$t("common.action.remove")},on:{click:function(s){return e.remove(e.preview.url)}}},[t(h,{attrs:{name:"mdi-close"}})],1)],1)]:e._e(),t("a",{staticClass:"link-preview-link",attrs:{href:e.preview.url,target:"_blank",rel:"nofollow ugc noreferrer noopener"}},[t("div",{staticClass:"d-sm-flex"},[e.preview.image?t("div",{staticClass:"link-preview__image ml-sm-4",staticStyle:{"min-width":"128px"},style:{"background-image":"url("+e.imageUrl+")","background-size":e.preview.fit||"contain","background-position":e.preview.align||"center"}}):e._e(),t("div",[t(Lt,{staticClass:"text--secondary"},[t(h,{staticClass:"mr-1",attrs:{name:"mdi-open-in-new"}}),t("span",{domProps:{innerHTML:e._s(e.preview.title)}})],1),t(Fo,[e.doctype.name!="other"?t("span",{directives:[{name:"t",rawName:"v-t",value:"doctypes."+e.doctype.name,expression:"'doctypes.'+doctype.name"}]}):t("span",{staticClass:"link-preview__hostname",domProps:{innerHTML:e._s(e.truncate(e.preview.hostname,{length:240}))}})]),e.preview.description?t(Ps,{staticClass:"text--secondary",domProps:{innerHTML:e._s(e.truncate(e.preview.description,{length:240}))}}):e._e()],1)])])],2)]],2)},hu=[],fu=d(mu,_u,hu,!1,null,null,null,null);const gu=fu.exports,vu={components:{LinkPreview:gu},props:{model:Object,remove:{default:null,type:Function}}};var yu=function(){var e=this,t=e._self._c;return e.model.linkPreviews&&e.model.linkPreviews.length?t("div",{staticClass:"link-previews mb-3"},e._l(e.model.linkPreviews,function(s){return t("link-preview",{key:s.url,attrs:{model:e.model,preview:s,remove:e.remove}})}),1):e._e()},bu=[],wu=d(vu,yu,bu,!1,null,null,null,null);const Ue=wu.exports,ku={props:{group:{required:!0,type:Object},block:Boolean},data(){return{membership:null,hasRequestedMembership:!1}},created(){i.user().membershipFor(this.group)||c.membershipRequests.fetchMyPendingByGroup(this.group.id),this.watchRecords({collections:["memberships","membershipRequests"],query:()=>(this.hasRequestedMembership=this.group.hasPendingMembershipRequestFrom(i.user()),this.membership=i.user().membershipFor(this.group))})},methods:{join(){if(i.isSignedIn()){if(this.canJoinGroup)return c.memberships.joinGroup(this.group).then(()=>{m.$emit("joinedGroup",{group:this.group}),y.success("join_group_button.messages.joined_group",{group:this.group.fullName})});m.$emit("openModal",{component:"MembershipRequestForm",props:{group:this.group}})}else m.$emit("openModal",{component:"AuthModal"})}},computed:{label(){return this.hasRequestedMembership?"join_group_button.membership_requested":"join_group_button.join_group"},canJoinGroup(){return this.group&&_.canJoinGroup(this.group)},canRequestMembership(){return _.canRequestMembership(this.group)}}};var xu=function(){var e=this,t=e._self._c;return e.membership?e._e():t(z,{staticClass:"my-4",attrs:{outlined:"",color:"primary",dense:""}},[t("p",{directives:[{name:"t",rawName:"v-t",value:"join_group_button.not_a_member",expression:"'join_group_button.not_a_member'"}],staticClass:"text-center"}),e.canJoinGroup||e.canRequestMembership||e.hasRequestedMembership?t(g,{directives:[{name:"t",rawName:"v-t",value:e.label,expression:"label"}],staticClass:"join-group-button",attrs:{block:"",color:"primary",disabled:e.hasRequestedMembership},on:{click:e.join}}
55):e._e()],1)},Iu=[],Cu=d(ku,xu,Iu,!1,null,null,null,null);const en=Cu.exports,Au={props:{model:{type:Object,required:!0},column:{type:String,required:!0}},mounted(){this.$el.addEventListener("click",this.onClick)},destroyed(){this.$el.removeEventListener("click",this.onClick)},methods:{onClick(o){if(o.target.getAttribute("data-type")==="taskItem"&&o.offsetX<o.target.offsetLeft&&!o.target.classList.contains("task-item-busy"))if(this.canEdit||o.target.querySelectorAll('span[data-mention-id="'+i.user().username+'"]').length){o.target.classList.add("task-item-busy");const e=o.target.getAttribute("data-uid"),t=o.target.getAttribute("data-checked")==="true",s=Re(this.model.namedId(),{uid:e,done:!t&&"true"||"false"});c.remote.post("tasks/update_done",s).finally(()=>{t?y.success("tasks.task_updated_not_done"):y.success("tasks.task_updated_done"),o.target.classList.remove("task-item-busy")})}else alert(this.$t("tasks.permission_denied"))}},computed:{canEdit(){return _.canEdit(this.model)},isMd(){return this.format==="md"},isHtml(){return this.format==="html"},format(){return this.model[this.column+"Format"]},text(){return zs(this.model[this.column])},hasTranslation(){if(this.model.translation)return this.model.translation[this.column]},cookedText(){if(!this.model.mentionedUsernames)return this.model[this.column];let o=this.model[this.column];return this.model.mentionedUsernames.forEach(e=>o=o.replace(new RegExp(`@${e}`,"g"),`[@${e}](/u/${e})`)),o.replace(/^> /,"> ").replace(/\n> /,` 56> `)}}},Tu={props:{model:Object,field:String},computed:{isMd(){return this.format==="md"},isHtml(){return this.format==="html"},translated(){return this.model.translation[this.field]},format(){return this.model[this.field+"Format"]?this.model[this.field+"Format"]:"html"}}};var $u=function(){var e=this,t=e._self._c;return t("div",{staticClass:"translation"},[e.isMd?t("div",{directives:[{name:"marked",rawName:"v-marked",value:e.translated,expression:"translated"}],staticClass:"translated-body"}):e._e(),e.isHtml?t("div",{staticClass:"translated-body",domProps:{innerHTML:e._s(e.translated)}}):e._e()])},Pu=[],Ru=d(Tu,$u,Pu,!1,null,null,null,null);const Ao=Ru.exports;var Su=function(){var e=this,t=e._self._c;return t("div",{staticClass:"lmo-markdown-wrapper"},[!e.hasTranslation&&e.isMd?t("div",{directives:[{name:"marked",rawName:"v-marked",value:e.cookedText,expression:"cookedText"}]}):e._e(),!e.hasTranslation&&e.isHtml?t("div",{domProps:{innerHTML:e._s(e.text)}}):e._e(),e.hasTranslation?t(Ao,{attrs:{model:e.model,field:e.column}}):e._e()],1)},Ou=[],Eu=d(Au,Su,Ou,!1,null,null,null,null);const pe=Eu.exports,Bt={methods:{openAuthModal(o){return o==null&&(o=!1),m.$emit("openModal",{component:"AuthModal",props:{preventClose:o}})}}},Du={mixins:[Bt],props:{group:Object},methods:{signIn(){this.openAuthModal()}},computed:{isLoggedIn(){return i.isSignedIn()},isWasGift(){return this.group.subscription.plan==="was-gift"},isTrialing(){return this.group.membersInclude(i.user())&&this.group.subscription.plan==="trial"},isExpired(){return this.isTrialing&&!this.group.subscription.active},daysRemaining(){return pa(Ve(this.group.subscription.expires_at),new Date)+1},createdDate(){return B(new Date(this.group.createdAt),"do LLLL yyyy")}}};var Nu=function(){var e=this,t=e._self._c;return e.isTrialing?t(z,{attrs:{outlined:"",color:"primary",dense:""}},[t("div",{staticClass:"d-flex align-center"},[e.isWasGift?t("div",{staticClass:"pr-1"},[e.isExpired?t("span",{domProps:{innerHTML:e._s(e.$t("current_plan_button.was_gift_expired"))}}):e._e(),e.isExpired?e._e():t("span",{domProps:{innerHTML:e._s(e.$t("current_plan_button.was_gift_remaining",{days:e.daysRemaining}))}}),t(P),t("span",{domProps:{innerHTML:e._s(e.$t("current_plan_button.was_gift_trial",{createdDate:e.createdDate}))}})],1):e._e(),e.isWasGift?e._e():t("div",{staticClass:"pr-1"},[e.isExpired?e._e():t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"current_plan_button.free_trial",args:{days:e.daysRemaining}},expression:"{ path: 'current_plan_button.free_trial', args: { days: daysRemaining }}"}]}),e.isExpired?t("span",{directives:[{name:"t",rawName:"v-t",value:"current_plan_button.trial_expired",expression:"'current_plan_button.trial_expired'"}]}
56):e._e()]),t(U),t(g,{attrs:{color:"primary",href:"/upgrade/"+e.group.id,target:"_blank",title:e.$t("current_plan_button.tooltip")}},[t(h,{attrs:{name:"mdi-rocket"}}),t("span",{directives:[{name:"t",rawName:"v-t",value:"current_plan_button.view_plans",expression:"'current_plan_button.view_plans'"}]})],1)],1)]):e._e()},Lu=[],Vu=d(Du,Nu,Lu,!1,null,null,null,null);const Fu=Vu.exports;var Mu=function(){var e=this,t=e._self._c;return t(qt,[e.group?e._e():t(Ws),e.group?t(jt,{staticClass:"group-page max-width-1024 px-2 px-sm-4"},[t("div",{staticStyle:{position:"relative"}},[t(xt,{staticStyle:{"border-radius":"8px"},attrs:{src:e.group.coverUrl,"max-height":"256",eager:""}}),e.group.logoUrl?t(xt,{staticClass:"ma-2 d-none d-sm-block rounded",staticStyle:{"border-radius":"8px",position:"absolute",bottom:"0"},attrs:{src:e.group.logoUrl,height:"96",width:"96",eager:""}}):e._e(),e.group.logoUrl?t(xt,{staticClass:"ma-2 d-sm-none rounded",staticStyle:{"border-radius":"8px",position:"absolute",bottom:"0"},attrs:{src:e.group.logoUrl,height:"48",width:"48",eager:""}}):e._e()],1),t("h1",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:e.titleVisible},expression:"{callback: titleVisible}"}],staticClass:"text-h4 my-4",attrs:{tabindex:"-1"}},[e.group&&e.group.parentId?t("span",[t("router-link",{attrs:{to:e.urlFor(e.group.parent())}},[e._v(e._s(e.group.parent().name))]),t(P),t("span",{staticClass:"text--secondary text--lighten-1"},[e._v(">")]),t(P)],1):e._e(),t("span",{staticClass:"group-page__name mr-4"},[e._v(e._s(e.group.name))])]),t("old-plan-banner",{attrs:{group:e.group}}),t(Fu,{attrs:{group:e.group}}),e.group?t(pe,{staticClass:"group-page__description",attrs:{model:e.group,column:"description"}}):e._e(),t(re,{attrs:{model:e.group,actions:e.dockActions,"menu-icon":"mdi-cog","menu-actions":e.menuActions}}),t(en,{attrs:{group:e.group}}),t(Ue,{attrs:{model:e.group}}),t(vt,{attrs:{model:e.group}}),t(je,{attrs:{attachments:e.group.attachments}}),t(he,{staticClass:"mt-4"}),t(Rs,{attrs:{"background-color":"transparent","center-active":"",grow:""},model:{value:e.activeTab,callback:function(s){e.activeTab=s},expression:"activeTab"}},e._l(e.tabs,function(s){return t(Xt,{key:s.id,class:"group-page-"+s.name+"-tab",attrs:{to:s.route}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"group_page."+s.name,expression:"'group_page.'+tab.name"}]})])}),1),t("router-view")],1):e._e()],1)},qu=[],ju=d(Xd,Mu,qu,!1,null,null,null,null);const rs=ju.exports;class Uu{constructor(e){this.discussion=e,this.reset()}reset(){this.collection=T.observable([]),this.rules=[],this.ruleStrings=[],this.fetchedRules=[],this.readRanges=ma(this.discussion.readRanges),this.focusAttrs={},this.visibleKeys={},this.collapsed=T.observable({}),this.loading=!1,this.firstLoad=!1,this.padding=50,this.maxAutoLoadMore=500}firstUnreadSequenceId(){return(Y.subtractRanges(this.discussion.ranges,this.readRanges)[0]||[])[0]}setVisible(e,t){return e&&t.markAsRead(),this.visibleKeys[t.positionKey]=e,m.$emit("visibleKeys",Object.keys(this.visibleKeys).filter(s=>this.visibleKeys[s]).sort())}collapse(e){return Object.keys(this.visibleKeys).forEach(t=>{if(t.startsWith(e.positionKey))return this.visibleKeys[t]=!1}),T.set(this.collapsed,e.id,!0)}isUnread(e){return e.kind==="new_discussion"?this.discussion.updatedAt>this.discussion.lastReadAt:!Y.includesValue(this.readRanges,e.sequenceId)}sequenceIdIsUnread(e){return e===0?this.discussion.updatedAt>this.discussion.lastReadAt:!Y.includesValue(this.readRanges,e)}expand(e){return T.set(this.collapsed,e.id,!1)}jumpToEarliest(){return this.addLoadOldestFirstRule(),this.fetch()}jumpToLatest(){return this.addLoadNewestFirstRule(),this.fetch()}jumpToUnread(){return this.addLoadUnreadRule(),this.fetch()}jumpToSequenceId(e){return this.addLoadSequenceIdRule(e),this.fetch()}loadEverything(){return this.loading=!0,this.addRuleAndFetch({local:{find:{discussionId:this.discussion.id}},remote:{discussion_id:this.discussion.id,per:1e3}})}autoLoadAfter(e){if(!this.discussion.newestFirst&&e.event.depth===1||e.missingAfterCount&&e.missingAfterCount<this.maxAutoLoadMore)return this.loadAfter(e.event)}loadChildren(e){return this.addLoadChildrenRule(e),this.fetch()}loadAfter(e){return this.addLoadAfterRule(e),this.fetch()}autoLoadBefore(e){if(this.discussion.newestFirst&&e.event.depth===1||e.missingEarlierCount&&e.missingEarlierCount<this.maxAutoLoadMore)return this.loadBefore(e.event)}loadBefore(e){return this.loading="before"+e.id,this.addLoadBeforeRule(e),this.fetch()}addLoadAfterRule(e){return this.addRule({name:`load after ${e.positionKey}`,local:{find:{discussionId:this.discussion.id,positionKey:{$jgt:e.positionKey}},sortByPositionKey:!0,limit:this.padding},remote:{discussion_id:this.discussion.id,position_key_gt:e.positionKey,order_by:"position_key",per:this.padding}})}addLoadBeforeRule(e){return this.addRule({name:`load before ${e.positionKey}`,local:{find:{discussionId:this.discussion.id,positionKey:{$jlt:e.positionKey}},sortByPositionKeyDesc:!0,limit:this.padding},remote:{discussion_id:this.discussion.id,position_key_lt:e.positionKey,order_by:"position_key",order_desc:1,per:this.padding}})}addLoadChildrenRule(e){return this.addRule({name:`load children ${e.positionKey}`,local:{find:{discussionId:this.discussion.id,parentId:e.id},sortByPositionKeyDesc:!0,limit:this.padding},remote:{discussion_id:this.discussion.id,parent_id:e.id,order_by:"position_key",order_desc:1,per:this.padding}})}addLoadCommentRule(e){return this.addRule({name:"comment from url",local:{find:{discussionId:this.discussion.id,eventableId:e,eventableType:"Comment"}},remote:{order:"sequence_id",discussion_id:this.discussion.id,comment_id:e}})}addLoadPositionRule(e){return this.addRule({name:"position from url",local:{find:{discussionId:this.discussion.id,depth:1,position:{$gte:e}},sortByPositionKey:!0,limit:this.padding},remote:{discussion_id:this.discussion.id,from_sequence_id_of_position:e,order:"position_key"}})}addLoadPositionKeyRule(e){return this.loading=e,this.addRule({name:"positionKey from url",local:{find:{discussionId:this.discussion.id,positionKey:{$jgte:e}},sortByPositionKey:!0,limit:parseInt(this.padding/2)},remote:{discussion_id:this.discussion.id,position_key_gte:e,order_by:"position_key",per:parseInt(this.padding/2)}}),this.addRule({name:"positionKey rollback",local:{find:{discussionId:this.discussion.id,positionKey:{$jlt:e}},sortByPositionKeyDesc:!0,limit:parseInt(this.padding/2)},remote:{discussion_id:this.discussion.id,position_key_lt:e,order_by:"position_key",order_desc:1,per:parseInt(this.padding/2)}})}addLoadSequenceIdRule(e){const t=mt([parseInt(e)-parseInt(this.padding/2),0]);return this.loading=t,this.addRule({name:"sequenceId from url",local:{find:{discussionId:this.discussion.id,sequenceId:{$gte:t}},simplesort:"sequenceId",limit:this.padding},remote:{sequence_id_gte:t,discussion_id:this.discussion.id,order:"sequence_id",per:this.padding}})}addLoadNewestRule(){return this.addRule({local:{find:{discussionId:this.discussion.id}
56,simplesort:"sequenceId",simplesortDesc:!0,limit:this.padding},remote:{discussion_id:this.discussion.id,order_by:"sequence_id",order_desc:!0,per:this.padding}})}addContextRule(){return this.addRule({name:"context",local:{find:{id:this.discussion.createdEvent().id}}})}addLoadOldestRule(){return this.addRule({name:"oldest",local:{find:{discussionId:this.discussion.id},simplesort:"sequenceId",limit:this.padding},remote:{discussion_id:this.discussion.id,order_by:"sequence_id",per:this.padding}})}addLoadUnreadRule(){this.discussion.updatedAt>this.discussion.lastReadAt&&this.addRule({name:"context updated",local:{find:{id:this.discussion.createdEvent().id}}});const e=mt([this.firstUnreadSequenceId()-parseInt(this.padding/2),this.discussion.firstSequenceId()]);return this.addRule({name:{path:"strand_nav.new_to_you"},local:{find:{discussionId:this.discussion.id,sequenceId:{$gte:e}},limit:this.padding,order:"sequenceId"},remote:{discussion_id:this.discussion.id,sequence_id_gte:e,order_by:"sequence_id",per:this.padding}})}addRule(e){const t=JSON.stringify(e);return this.ruleStrings.includes(t)?!1:(this.rules.push(e),this.ruleStrings.push(t),!0)}addRuleAndFetch(e){if(this.addRule(e))return this.fetch()}fetch(){const e=[],t=this.rules.filter(s=>s.remote).filter(s=>!this.fetchedRules.includes(JSON.stringify(s.remote))).map(s=>{e.push(JSON.stringify(s.remote));const n=Object.assign({},s.remote,{exclude_types:"group discussion"});return c.events.fetch({params:n})});return Promise.all(t).finally(()=>(this.fetchedRules=W(this.fetchedRules.concat(e)),this.firstLoad=!0,this.loading=!1))}
56updateCollection(){this.records=[],this.rules.forEach(a=>{let u=c.events.collection.chain();return u.find(a.local.find),a.local.simplesort?u=u.simplesort(a.local.simplesort,a.local.simplesortDesc):a.local.sortByPositionKey?u=u.sort((I,A)=>{if(I.positionKey==A.positionKey)return 0;if(I.positionKey>A.positionKey)return 1;if(I.positionKey<A.positionKey)return-1}):a.local.sortByPositionKeyDesc&&(u=u.sort((I,A)=>{if(I.positionKey==A.positionKey)return 0;if(I.positionKey>A.positionKey)return-1;if(I.positionKey<A.positionKey)return 1})),a.local.limit&&(u=u.limit(a.local.limit)),this.records=this.records.concat(u.data())}),this.records=W(this.records.concat(E(this.records.map(a=>a.parent())))),this.records=Dt(this.records,"positionKey");const e=this.records.map(a=>a.id),t=this.records.filter(a=>a.parentId===null||!e.includes(a.parentId)),s={};this.records.forEach(a=>s[a.parentId]=(s[a.parentId]||[]).concat([a]));var n=function(a){return a.map(u=>({event:u,children:s[u.id]&&n(s[u.id])||[],eventable:u.model()}))};return this.collection=n(t),this.addMetaData(this.collection),m.$emit("collectionUpdated",this.discussion.id),this.collection}addMetaData(e){const t=e.map(u=>u.event.position),s=Y.arrayToRanges(t),n=e[0]&&e[0].event&&e[0].event.parent(),a=n&&e[0].event.parent().childCount||0;e.forEach(u=>{u.isUnread=this.isUnread(u.event);const I=K(s,G=>G[0]===u.event.position),A=De(s)[1]===u.event.position,L=n&&u.event.position!==1&&I;if(u.missingEarlierCount=0,L){let G=1,D=0;s.forEach(function(bt){return bt[0]===u.event.position?D=u.event.position-G:G=bt[1]}),u.missingEarlierCount=D}const X=a!==0&&A&&u.event.position!==a;u.missingAfterCount=X&&a-De(s)[1]||0,u.missingChildCount=u.event.childCount-u.children.length,u.children.length&&this.addMetaData(u.children)})}}const zu={data(){return{discussion:null,loader:null,position:0,group:null,discussionFetchError:null,lastFocus:null}},mounted(){this.init()},watch:{"$route.params.key":"init","$route.params.comment_id":"init","$route.params.sequence_id":"respondToRoute","$route.params.comment_id":"respondToRoute","$route.query.p":"respondToRoute","$route.query.k":"respondToRoute"},methods:{init(){c.discussions.findOrFetchById(this.$route.params.key,{exclude_types:"poll outcome"}).then(o=>{o.group().newHost&&(window.location.host=o.group().newHost),this.discussion=o,this.loader=new Uu(this.discussion),this.respondToRoute(),m.$emit("currentComponent",{focusHeading:!1,page:"threadPage",discussion:this.discussion,group:this.discussion.group(),title:this.discussion.title}),this.watchRecords({key:"strand"+this.discussion.id,collections:["events"],query:()=>this.loader.updateCollection()})}).catch(function(o){m.$emit("pageError",o),o.status===403&&!i.isSignedIn()&&m.$emit("openAuthModal")})},focusSelector(){if(this.loader.focusAttrs.newest)return this.discussion.lastSequenceId()?`.sequenceId-${this.discussion.lastSequenceId()}`:"#add-comment";if(this.loader.focusAttrs.unread)return this.loader.firstUnreadSequenceId()?`.sequenceId-${this.loader.firstUnreadSequenceId()}`:".context-panel";if(this.loader.focusAttrs.oldest)return".context-panel";if(this.loader.focusAttrs.commentId)return`#comment-${this.loader.focusAttrs.commentId}`;if(this.loader.focusAttrs.sequenceId)return`.sequenceId-${this.loader.focusAttrs.sequenceId}`;if(this.loader.focusAttrs.position)return`.position-${this.loader.focusAttrs.position}`;if(this.loader.focusAttrs.positionKey)return`.positionKey-${this.loader.focusAttrs.positionKey}`},scrollToFocusIfPresent(){const o=this.focusSelector();document.querySelector(o)&&(this.scrollTo(o),this.lastFocus=o)},scrollToFocusUnlessFocused(){const o=this.focusSelector();this.lastFocus!==o&&(this.scrollTo(o),this.lastFocus=o)},elementInView(o){const e=o.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},refocusIfOffscreen(){let o;this.lastFocus&&(o=document.querySelector(this.lastFocus)&&!this.elementInView(o))&&(console.log(`refocusing ${this.lastFocus}`),this.scrollTo(this.lastFocus))},respondToRoute(){this.discussion&&this.discussion.key===this.$route.params.key&&this.discussion.createdEvent.childCount!==0&&(this.$route.query.k&&(this.loader.addLoadPositionKeyRule(this.$route.query.k),this.loader.focu
56sAttrs={positionKey:this.$route.query.k}),this.$route.query.p&&(this.loader.addLoadPositionRule(parseInt(this.$route.params.p)),this.loader.focusAttrs={position:this.$route.query.p}),this.$route.params.sequence_id&&(this.loader.addLoadSequenceIdRule(parseInt(this.$route.params.sequence_id)),this.loader.focusAttrs={sequenceId:parseInt(this.$route.params.sequence_id)}),this.$route.params.comment_id&&(this.loader.addLoadCommentRule(parseInt(this.$route.params.comment_id)),this.loader.addLoadNewestRule(),this.loader.focusAttrs={commentId:parseInt(this.$route.params.comment_id)}),this.loader.rules.length===0&&(this.discussion.newestFirst?(this.loader.addLoadNewestRule(),this.loader.focusAttrs={newest:1}):this.discussion.lastReadAt?this.discussion.unreadItemsCount()===0?(this.loader.addLoadNewestRule(),this.loader.focusAttrs={newest:1}):(this.loader.addLoadUnreadRule(),this.loader.focusAttrs={unread:1}):(this.loader.addLoadOldestRule(),this.loader.focusAttrs={oldest:1})),this.loader.addContextRule(),this.scrollToFocusIfPresent(),this.loader.fetch().finally(()=>{setTimeout(()=>this.scrollToFocusUnlessFocused())}).catch(o=>{console.log("promises failed",o)}))}}},Bu={props:{discussion:Object,loader:Object},data(){return{open:null,items:[],visibleKeys:[],baseUrl:""}},computed:{selectedSequenceId(){return parseInt(this.$route.params.sequence_id)},selectedCommentId(){return parseInt(this.$route.params.comment_id)}},methods:{buildItems(o){const e={};this.baseUrl=this.urlFor(this.discussion),o.forEach(n=>e[n[0]]={key:n[0],title:null,headings:[],sequenceId:n[1],createdAt:n[2],actorId:n[3],visible:!1,depth:n[4],descendantCount:n[5],unread:this.loader.sequenceIdIsUnread(n[1]),poll:null,stance:null,visible:this.visibleKeys.includes(n[0])}),c.events.collection.chain().find({discussionId:this.discussion.id}).simplesort("positionKey",this.discussion.newestFirst).data().forEach(n=>{let a;n.kind==="poll_created"&&(a=n.model().poll(),a.discardedAt)||(e[n.positionKey]={key:n.positionKey,commentId:n.eventableType==="Comment"?n.eventableId:null,sequenceId:n.sequenceId,createdAt:n.createdAt,actorId:n.actorId,title:n.pinned?n.pinnedTitle||n.fillPinnedTitle():null,visible:!1,unread:this.loader.sequenceIdIsUnread(n.sequenceId),headings:[],depth:n.depth,descendantCount:n.descendantCount,visible:this.visibleKeys.includes(n.positionKey),poll:a,stance:a&&a.myStance()||null})});const t=Object.values(e);if(this.discussion.newestFirst){const n=[],a=[];t.forEach((u,I)=>{if(u.depth===1)return a.push(I)}),a.reverse(),a.forEach(u=>{const I=t[u],A=t.slice(u,u+I.descendantCount+1);Array.prototype.push.apply(n,A)}),this.items=n}else this.items=t;const s=this.discussion.createdEvent();this.items.unshift({key:s.positionKey,title:this.$t("activity_card.context"),headings:[],sequenceId:0,visible:this.visibleKeys.includes(s.positionKey),unread:!1,event:s,poll:null,stance:null,depth:1,descendantCount:0})}},mounted(){m.$on("toggleThreadNav",()=>this.open=!this.open),c.events.fetch({params:{exclude_types:"group discussion",discu
56ssion_id:this.discussion.id,pinned:!0,per:200}});let o=[];c.events.remote.fetch({path:"timeline",params:{discussion_id:this.discussion.id}}).then(e=>(o=e,this.buildItems(o))),this.watchRecords({key:"thread-nav"+this.discussion.id,collections:["events","discussions"],query:()=>{o.length&&this.buildItems(o)}}),m.$on("visibleKeys",e=>{this.visibleKeys=e,this.items.forEach(t=>{t.visible=this.visibleKeys.includes(t.key)})})}};var Hu=function(){var e=this,t=e._self._c;return e.discussion?t(Ss,{staticClass:"lmo-no-print disable-select thread-sidebar",attrs:{permanent:e.$vuetify.breakpoint.mdAndUp,width:"230px",app:"",fixed:"",right:"",clipped:"",color:"background",floating:""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t("div",{staticClass:"mt-12"}),t("div",{staticClass:"strand-nav__toc"},e._l(e.items,function(s){return t("router-link",{key:s.key,staticClass:"strand-nav__entry text-caption",class:{"strand-nav__entry--visible":s.visible,"strand-nav__entry--selected":s.sequenceId==e.selectedSequenceId||s.commentId==e.selectedCommentId,"strand-nav__entry--unread":s.unread},style:{"border-width":s.depth*2+"px"},attrs:{to:e.baseUrl+"/"+s.sequenceId}},[s.poll&&s.poll.showResults()?t("div",{staticClass:"strand-nav__stance-icon-container"},[t(Co,{staticClass:"poll-proposal-chart-panel__chart mr-1",attrs:{poll:s.poll,"show-my-stance":"",size:18,stanceSize:12}})],1):e._e(),t("span",[e._v(e._s(s.title))])])}),1)]):e._e()},Wu=[],Gu=d(Bu,Hu,Wu,!1,null,null,null,null);const Yu=Gu.exports,Ku={props:{pollTemplate:Object}};var Zu=function(){var e=this,t=e._self._c;return e.pollTemplate?t("div",[e.pollTemplate.processIntroduction?t(z,{staticClass:"poll-template-info-panel",attrs:{type:"info",text:"",outlined:""}},[t(pe,{attrs:{model:e.pollTemplate,column:"processIntroduction"}})],1):t(z,{staticClass:"poll-template-info-panel",attrs:{type:"info",text:"",outlined:""}},[e._v(e._s(e.pollTemplate.processSubtitle))])],1):e._e()},Ju=[],Qu=d(Ku,Zu,Ju,!1,null,null,null,null);const Xu=Qu.exports,ep={components:{PollTemplateInfoPanel:Xu},directives:{handle:vo},props:{poll:Object,shouldReset:Boolean,redirectOnSave:Boolean},mounted(){c.users.findOrFetchGroups(),c.pollTemplates.findOrFetchByKeyOrId(this.poll.pollTemplateKeyOrId()).then(o=>{this.pollTemplate=o}),this.watchRecords({collections:["groups","memberships"],query:()=>this.groupItems=[{text:this.$t("discussion_form.none_invite_only_thread"),value:null}].concat(i.user().groups().filter(o=>_.canStartPoll(o)).map(o=>({text:o.fullName,value:o.id})))})},data(){return{newOption:null,lastPollType:this.poll.pollType,pollOptions:this.poll.pollOptionsAttributes||this.poll.clonePollOptions(),groupItems:[],showAdvanced:!1,pollTemplate:null,votingMethodsI18n:{proposal:{title:"poll_common_form.voting_methods.show_thumbs",hint:"poll_common_form.voting_methods.show_thumbs_hint"},poll:{title:"poll_common_form.voting_methods.simple_poll",hint:"poll_common_form.voting_methods.choose_hint"},dot_vote:{title:"decision_tools_card.dot_vote_title",hint:"poll_common_form.voting_methods.allocate_hint"},score:{title:"poll_common_form.voting_methods.score",hint:"poll_common_form.voting_methods.score_hint"},ranked_choice:{title:"poll_common_form.voting_methods.ranked_choice",hint:"poll_common_form.voting_methods.ranked_choice_hint"}},chartTypeItems:[{text:"bar",value:"bar"},{text:"pie",value:"pie"},{text:"grid",value:"grid"}],currentHideResults:this.poll.hideResults,hideResultsItems:[{text:this.$t("common.off"),value:"off"},{text:this.$t("poll_common_card.until_you_vote"),value:"until_vote"},{text:this.$t("poll_common_card.until_voting_is_closed"),value:"until_closed"}],newDateOption:ht(_a(new Date,12)),minDate:new Date,closingAtWas:null}},methods:{optionHasVotes(o){return(this.poll.results.find(e=>e.id===o.id)||{voter_count:0}).voter_count>0},setPollOptionPriority(){let o=0;this.pollOptions.forEach(e=>e.priority=0),this.visiblePollOptions.forEach(e=>e.priority=o++)},removeOption(o){this.optionHasVotes(o)&&!confirm(C.t("poll_common_form.option_has_votes_confirm_delete"))||(this.newOption=null,o.id?(o.name="",o.meaning="",o._destroy=1):this.pollOptions=Mt(this.pollOptions,o))},addDateOption(){const o=this.newDateOption.toJSON();K(this.pollOptions,e=>e.name===o)?y.error("poll_poll_form.option_already_added"):this.pollOptions.push({name:o})},addOption(){const o={name:"",meaning:"",prompt:"",icon:"agree"};
56m.$emit("openModal",{component:"PollOptionForm",props:{pollOption:o,poll:this.poll,submitFn:e=>{K(this.pollOptions,t=>t.name.toLowerCase()===e.name.toLowerCase())?y.error("poll_poll_form.option_already_added"):this.pollOptions.push(e)}}})},editOption(o){const e=H(o,"name","icon","meaning","prompt");m.$emit("openModal",{component:"PollOptionForm",props:{edit:!0,pollOption:e,poll:this.poll,submitFn:t=>{Object.assign(o,t)}}})},submit(){const o=this.poll.isNew()?"created":"updated";this.poll.setErrors({}),this.setPollOptionPriority(),this.poll.pollOptionsAttributes=this.pollOptions,this.poll.save().then(e=>{const t=c.polls.find(e.polls[0].id);this.redirectOnSave&&this.$router.replace(this.urlFor(t)),this.$emit("saveSuccess",t),o=="created"?y.success("poll_common_form.poll_type_started",{poll_type:t.translatedPollTypeCaps()}):y.success("poll_common_form.poll_type_updated",{poll_type:t.translatedPollTypeCaps()}),o=="created"&&t.specifiedVotersOnly&&m.$emit("openModal",{component:"PollMembers",props:{poll:t}})}).catch(e=>{y.warning("poll_common_form.please_review_the_form"),console.error(e)})}},computed:{titlePlaceholder(){return this.pollTemplate&&this.pollTemplate.titlePlaceholder?C.t("common.prefix_eg",{val:this.pollTemplate.titlePlaceholder}):C.t("poll_proposal_form.title_placeholder")},votingMethodsItems(){return Object.keys(this.votingMethodsI18n).map(o=>({text:this.$t(this.votingMethodsI18n[o].title),value:o}))},knownOptions(){return p.pollTypes[this.poll.pollType].common_poll_options||[]},formattedDuration(){if(!this.poll.meetingDuration)return"";const o=parseInt(this.poll.meetingDuration),e=ha({start:new Date,end:fa(new Date,o)});return ga(e,{format:["hours","minutes"]})},visiblePollOptions(){return this.pollOptions.filter(o=>!o._destroy)},hasOptions(){return this.poll.config().has_options},minOptions(){return this.poll.config().min_options},allowAnonymous(){return!this.poll.config().prevent_anonymous},stanceReasonRequiredItems(){return[{text:this.$t("poll_common_form.stance_reason_required"),value:"required"},{text:this.$t("poll_common_form.stance_reason_optional"),value:"optional"},{text:this.$t("poll_common_form.stance_reason_disabled"),value:"disabled"}]},titlePath(){return this.poll.isNew()&&"action_dock.new_poll_type"||"action_dock.edit_poll_type"},titleArgs(){return{pollType:this.poll.translatedPollType().toLowerCase()}},closesSoon(){return!(this.poll.closingAt&&ys(this.poll.closingAt,va(new Date,24)))},closingSoonItems(){return"nobody author undecided_voters voters".split(" ").map(o=>({text:this.$t(`poll_common_settings.notify_on_closing_soon.${o}`),value:o}))},optionFormat(){return this.poll.pollOptionNameFormat},hasOptionIcon(){return this.poll.config().has_option_icon},i18nItems(){return E("agree abstain disagree consent objection block yes no".split(" ").map(o=>this.poll.pollOptionNames.includes(o)?null:{text:this.$t("poll_proposal_options."+o),value:o}))}}},tp={props:{text:String,path:String}};var op=function(){var e=this,t=e._self._c;return t(g,{staticClass:"help-link text--secondary",attrs:{elevation:"0",href:"https://help.loomio.com/"+e.path,target:"_blank",title:e.$t(e.text)}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"common.help",expression:"'common.help'"}]}),t(h,{staticClass:"ml-1",attrs:{small:"",name:"mdi-open-in-new"}})],1)},sp=[],np=d(tp,op,sp,!1,null,null,null,null);const ip=np.exports,me=()=>i.user(),rp=new class{audiencesFor(e){const t=[];return e.discussion&&e.discussion().id&&e.discussion().membersCount&&(e.adminsInclude(me())||e.group().membersCanAnnounce&&e.membersInclude(me()),t.push("discussion_group")),e.poll&&e.poll().id&&e.poll().votersCount&&(e.adminsInclude(me())||e.group().membersCanAnnounce&&e.membersInclude(me()),t.push("voters")),e.poll&&e.poll().id&&e.poll().decidedVoter
56sCount&&e.poll().undecidedVotersCount&&(e.adminsInclude(me())||e.group().membersCanAnnounce&&e.membersInclude(me()),t.push("decided_voters")),e.poll&&e.poll().id&&e.poll().decidedVotersCount&&e.poll().undecidedVotersCount&&(e.adminsInclude(me())||e.group().membersCanAnnounce&&e.membersInclude(me()),t.push("undecided_voters")),t}},ap={props:{model:Object,excludeMembers:Boolean,includeActor:Boolean},data(){return{count:0}},methods:{updateCount(){const o=this.excludeMembers&&{exclude_members:1}||{};c.remote.fetch({path:"announcements/count",params:{recipient_emails_cmr:this.model.recipientEmails.join(","),recipient_user_xids:this.model.recipientUserIds.join("x"),recipient_chatbot_xids:this.model.recipientChatbotIds.join("x"),recipient_usernames_cmr:[],recipient_audience:this.model.recipientAudience,include_actor:this.includeActor&&1||null,...this.model.bestNamedId(),...o}}).then(e=>{this.count=e.count})}},watch:{"model.recipientEmails":"updateCount","model.recipientUserIds":"updateCount","model.recipientAudience":"updateCount","model.groupId":"updateCount"}};var lp=function(){var e=this,t=e._self._c;return t("p",{staticClass:"common-notifications-count text--secondary text-caption"},[e.model.groupId&&e.model.group().membershipsCount<2?t("span",{directives:[{name:"t",rawName:"v-t",value:"announcement.form.group_has_no_members_yet",expression:"'announcement.form.group_has_no_members_yet'"}]}):[e.model.notifyRecipients?[e.count==0?t("span",{directives:[{name:"t",rawName:"v-t",value:"announcement.form.notified_none",expression:"'announcement.form.notified_none'"}]}):e._e(),e.count==1?t("span",{directives:[{name:"t",rawName:"v-t",value:"announcement.form.single_notification",expression:"'announcement.form.single_notification'"}]}):e._e(),e.count>1?t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"announcement.form.multiple_notifications",args:{notified:e.count}},expression:"{path: 'announcement.form.multiple_notifications', args: {notified: count}}"}]}):e._e()]:[e.count==0?t("span",{directives:[{name:"t",rawName:"v-t",value:"announcement.form.added_none",expression:"'announcement.form.added_none'"}]}):e._e(),e.count==1?t("span",{directives:[{name:"t",rawName:"v-t",value:"announcement.form.added_singular",expression:"'announcement.form.added_singular'"}]}):e._e(),e.count>1?t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"announcement.form.added",args:{count:e.count}},expression:"{path: 'announcement.form.added', args: {count: count}}"}]}):e._e()],t(P),e.model.recipientAudience&&!e.model.anonymous?t("span",{directives:[{name:"t",rawName:"v-t",value:"announcement.form.click_group_to_see_individuals",expression:"'announcement.form.click_group_to_see_individuals'"}]}):e._e()]],2)},cp=[],dp=d(ap,lp,cp,!1,null,null,null,null);const up=dp.exports,pp={components:{NotificationsCount:up},props:{defaultGroup:!1,label:String,placeholder:String,hint:String,reset:Boolean,model:Object,existingOnly:Boolean,includeActor:Boolean,excludeMembers:Boolean,excludedAudiences:{type:Array,default(){return[]}},excludedUserIds:{type:Array,default(){return[]}},initialRecipients:{type:Array,default(){return[]}}},data(){return{query:"",suggestedUserIds:[],suggestions:[],recipients:[],loading:!1}},mounted(){this.recipients=this.initialRecipients,this.fetchChatbots(),this.fetchAndUpdateSuggestions()},watch:{"model.groupId"(o){this.suggestedUserIds=[],this.newRecipients(this.initialRecipients),this.fetchChatbots(),this.fetchAndUpdateSuggestions()},reset(){this.query="",this.recipients=this.initialRecipients,this.fetchAndUpdateSuggestions()},recipients(o){this.newRecipients(o),this.$emit("new-recipients",o),this.updateSuggestions()},query(o){this.$emit("new-query",o),this.fetchAndUpdateSuggestions()}},methods:{fetchChatbots(){this.model.groupId&&c.fetch({path:"chatbots",params:{group_id:this.model.groupId}}).then(o=>{this.updateSuggestions()})},fetchSuggestions:uo(function(){if(!this.query)return;const o=this.existingOnly&&{existing_only:1}||{};this.loading=!0,c.fetch({path:"announcements/search",params:{exclude_types:"group inviter",q:this.query,per:20,include_actor:this.includeActor&&1||null,...o,...this.model.bestNamedId()}}).then(e=>{this.suggestedUserIds=W(this.suggestedUserIds.concat(e.users.map(t=>
56t.id))),this.updateSuggestions()}).finally(()=>{this.loading=!1})},500),fetchAndUpdateSuggestions(){this.fetchSuggestions(),this.updateSuggestions()},newRecipients(o){this.model.recipientAudience=(_o(o,e=>e.type==="audience")||{}).id,this.model.recipientUserIds=b(j(o,e=>e.type==="user"),"id"),this.model.recipientEmails=b(j(o,e=>e.type==="email"),"name"),this.model.recipientChatbotIds=b(j(o,e=>e.type==="chatbot"),"id")},findUsers(){if(!this.query)return[];let o=c.users.collection.chain();return o=o.find({id:{$in:pt(this.suggestedUserIds,this.excludedUserIds)}}),o=o.find({emailVerified:!0}),o=o.find({$or:[{name:{$regex:[`^${this.query}`,"i"]}},{username:{$regex:[`^${this.query}`,"i"]}},{name:{$regex:[` ${this.query}`,"i"]}}]}),o.data()},expand(o){const e=this.excludeMembers&&{exclude_members:1}||{};if(this.model.anonymous&&["decided_voters","undecided_voters"].includes(o.id))return y.warning("announcement.cannot_reveal_when_anonymous"),!1;c.fetch({path:"announcements/audience",params:{recipient_audience:o.id,include_actor:this.includeActor&&1||null,...e,...this.model.bestNamedId()}}).then(t=>{this.remove(o);const s=(t.users||[]).map(n=>n.id);this.suggestedUserIds=W(this.suggestedUserIds.concat(s)),c.users.find(s).forEach(n=>{this.recipients.push({id:n.id,type:"user",name:n.nameOrEmail(),user:n})})})},remove(o){this.recipients=j(this.recipients,e=>!(e.id===o.id&&e.type===o.type))},emailToRecipient(o){return{id:o,type:"email",icon:"mdi-email-outline",name:o}},updateSuggestions(){if(this.query&&this.canAddGuests){const s=W(this.query.match(/[^\s:,;"`<>]+?@[^\s:,;"`<>]+\.[^\s:,;"`<>]+/g)||[]);if(s.length>1||s.length===1&&[","," "].includes(this.query.slice(-1))){const n=ya(this.recipients.concat(s.map(this.emailToRecipient)),"id");this.recipients=n,this.suggestions=n,this.query="";return}else if(s.length===1){this.suggestions=this.recipients.concat(s.map(this.emailToRecipient));return}}const o=this.findUsers().map(s=>({id:s.id,type:"user",name:s.nameOrEmail(),user:s})),e=this.audiences.map(s=>({id:s.id,type:"audience",icon:"mdi-account-group",name:s.name,size:s.size})),t=this.model.group().chatbots().map(s=>({id:s.id,type:"chatbot",icon:"mdi-robot",name:s.name}));this.suggestions=this.recipients.concat(t).concat(e).concat(o)}},computed:{canAddGuests(){return _.canAddGuests(this.model)},canNotifyGroup(){return _.canAnnounce(this.model)},modelName(){return this.model.constructor.singular},audiences(){let o=[];return this.recipients.length===0&&(rp.audiencesFor(this.model).forEach(e=>{switch(e){case"group":o.push({id:"group",name:this.$t("announcement.audiences.group",{name:this.model.group().name}),size:this.model.group().membershipsCount,icon:"mdi-account-group"});break;case"discussion_group":o.push({id:"discussion_group",name:this.$t("announcement.audiences.discussion_group"),size:this.model.discussion().membersCount,icon:"mdi-forum"});break;case"voters":o.push({id:"voters",name:this.$t("announcement.audiences.voters",{pollType:this.model.poll().translatedPollType()}),size:this.model.poll().votersCount,icon:"mdi-forum"});break;case"decided_voters":o.push({id:"decided_voters",name:this.$t("announcement.audiences.decided_voters"),size:this.model.poll().decidedVoter
56sCount,icon:"mdi-forum"});break;case"undecided_voters":o.push({id:"undecided_voters",name:this.$t("announcement.audiences.undecided_voters"),size:this.model.poll().undecidedVotersCount,icon:"mdi-forum"});break}}),this.excludedAudiences.includes("group")||(()=>{switch(this.model.constructor.singular){case"poll":case"discussion":case"outcome":return E([this.model.group(),this.model.group().parentId&&this.model.group().parent()].concat(Mt(this.model.group().parentOrSelf().subgroups(),this.model.group())));default:return[]}})().filter(_.canNotifyGroup).forEach(t=>{t.membershipsCount&&o.push({id:`group-${t.id}`,name:this.$t("announcement.audiences.group",{name:t.name}),size:t.membershipsCount,icon:"mdi-forum"})})),o.filter(e=>!this.excludedAudiences.includes(e.id)&&(this.query&&e.name.match(new RegExp(this.query,"i"))||!0))}}};var mp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"recipients-autocomplete"},[t(ba,{staticClass:"announcement-form__input",attrs:{multiple:"","return-object":"","auto-select-first":"","hide-selected":"","search-input":e.query,"item-text":"name","hide-no-data":"",loading:e.loading,label:e.label,placeholder:e.placeholder,items:e.suggestions},on:{change:function(s){e.query=null},"update:searchInput":function(s){e.query=s},"update:search-input":function(s){e.query=s}},scopedSlots:e._u([{key:"no-data",fn:function(){return[t(w,[t(O,[e.query?e._e():t(h,{attrs:{name:"mdi-account-search"}}),e.query?t(h,{attrs:{name:"mdi-information-outline"}}):e._e()],1),t(R,[t(v,[e.query?t("span",{directives:[{name:"t",rawName:"v-t",value:"common.no_results_found",expression:"'common.no_results_found'"}]}):t("span",[e.canAddGuests?t("span",{directives:[{name:"t",rawName:"v-t",value:"announcement.search_by_name_or_email",expression:"'announcement.search_by_name_or_email'"}]}):e._e(),e.canAddGuests?e._e():t("span",{directives:[{name:"t",rawName:"v-t",value:"announcement.search_by_name",expression:"'announcement.search_by_name'"}]})])]),t(q,[!e.canAddGuests&&!e.canNotifyGroup?t("span",{directives:[{name:"t",rawName:"v-t",value:"announcement.only_admins_can_announce_or_invite",expression:"'announcement.only_admins_can_announce_or_invite'"}]}):e._e(),!e.canAddGuests&&e.canNotifyGroup?t("span",{directives:[{name:"t",rawName:"v-t",value:"announcement.only_admins_can_invite",expression:"'announcement.only_admins_can_invite'"}]}):e._e(),e.canAddGuests&&!e.canNotifyGroup?t("span",{directives:[{name:"t",rawName:"v-t",value:"announcement.only_admins_can_announce",expression:"'announcement.only_admins_can_announce'"}]}):e._e()])],1)],1)]},proxy:!0},{key:"selection",fn:function(s){return[s.item.type=="audience"?t(M,{staticClass:"chip--select-multi",attrs:{value:s.selected,close:"",color:"primary"},on:{"click:close":function(n){return e.remove(s.item)},click:function(n){return e.expand(s.item)}}},[t("span",[t(h,{staticClass:"mr-1",attrs:{small:"",name:"data.item.icon"}})],1),t("span",[e._v(e._s(s.item.name))])]):t(M,{staticClass:"chip--select-multi",attrs:{value:s.selected,close:"",outlined:"",color:"primary"},on:{"click:close":function(n){return e.remove(s.item)}}},[t("span",[s.item.type=="user"?t(Q,{staticClass:"mr-1",attrs:{user:s.item.user,size:24,"no-link":""}}):t(h,{staticClass:"mr-1",attrs:{small:"",name:"data.item.icon"}})],1),t("span",[e._v(e._s(s.item.name))]),s.item.type=="user"&&e.currentUserId==s.item.id?t("span",[t(P),t("span",[e._v("("+e._s(e.$t("common.you"))+")")])],1):e._e()])]}},{key:"item",fn:function(s){return[t(fe,[s.item.type=="user"?t(Q,{attrs:{user:s.item.user,size:24,"no-link":""}}):t(h,{staticClass:"mr-1",attrs:{small:"",name:"data.item.icon"}})],1),t(R,{staticClass:"announcement-chip__content"},[t(v,[t("span",[e._v(e._s(s.item.name))]),s.item.type=="user"&&e.currentUserId==s.item.id?t("span",[t(P),t("span",[e._v("("+e._s(e.$t("common.you"))+")")])],1):e._e()])],1)]}}]),model:{value:e.recipients,callback:function(s){e.recipients=s},expression:"recipients"}}),t("notifications-count",{directives:[{name:"show",rawName:"v-show",value:e.recipients.length,expression:"recipients.length"}],attrs:{model:e.model,"exclude-members":e.excludeMembers,"include-actor":e.includeActor}})],1)},_p=[],hp=d(pp,mp,_p,!1,null,null,null,null);const fp=hp.exports,gp={components:{RecipientsAutocomplete:fp},props:{model:Object,includeActor:Boolean,initialRecipients:{type:Array,default(){return[]}}}};var vp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"common-notify-fields"},[t(he,{staticClass:"my-6"}),e.model.id?t(F,{attrs:{label:e.$t("discussion_form.change_log_label"),placeholder:e.$t("discussion_form.change_log_placeholder")},model:{value:e.model.recipientMessage,callback:function(s){e.$set(e.model,"re
56cipientMessage",s)},expression:"model.recipientMessage"}}):e._e(),t("recipients-autocomplete",{attrs:{label:e.$t(e.model.id?"action_dock.notify":"common.action.invite"),placeholder:e.$t("announcement.form."+e.model.constructor.singular+"_"+(e.model.id?"edited":"announced")+".helptext"),"initial-recipients":e.initialRecipients,"include-actor":e.includeActor,model:e.model}})],1)},yp=[],bp=d(gp,vp,yp,!1,null,null,null,null);const wp=bp.exports,kp={props:{poll:Object},data(){return{mdiCalendar:fo,mdiClockOutline:go,closingHour:B(this.poll.closingAt||ht(new Date),"HH:mm"),closingDate:B(this.poll.closingAt||new Date,"yyyy-MM-dd"),dateToday:B(new Date,"yyyy-MM-dd"),times:Bs(),timeZone:p.timeZone,isShowingDatePicker:!1,validDate:()=>Le(ut(`${this.closingDate} ${this.closingHour}`,"yyyy-MM-dd HH:mm",new Date))}},methods:{exact:Ie,updateClosingAt(){const o=ut(`${this.closingDate} ${this.closingHour}`,"yyyy-MM-dd HH:mm",new Date);Le(o)&&(this.poll.closingAt=o)}},computed:{twelvehour(){return Vt()!=="HH:mm"},closingAtHint(){return B(this.poll.closingAt,Vt())},label(){return this.poll.closingAt?wa(this.poll.closingAt,new Date,{addSuffix:!0}):!1}},watch:{"poll.closingAt"(o){o&&(this.closingHour=B(o,"HH:mm"),this.closingDate=B(o,"yyyy-MM-dd"))},closingDate(o){this.updateClosingAt()},closingHour(o){this.updateClosingAt()}}},xp={props:{subject:Object,field:String}};var Ip=function(){var e=this,t=e._self._c;return t("div",{staticClass:"lmo-validation-error"},[e.subject.errors[e.field]?t("div",{staticClass:"lmo-validation-error__message error--text text-caption",attrs:{for:"field + '-error'"}},[t("span",{attrs:{role:"status","aria-live":"polite"}},[e._v(e._s(e.subject.errors[e.field].join(", ")))])]):e._e()])},Cp=[],Ap=d(xp,Ip,Cp,!1,null,null,null,null);const le=Ap.exports;var Tp=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"poll-common-closing-at-field my-3"},[t("div",{staticClass:"poll-common-closing-at-field__inputs"},[t(ne,{attrs:{wrap:""}},[t(ka,[t(ft,{ref:"menu",attrs:{"close-on-content-click":!1,"offset-y":"","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(F,e._g(e._b({attrs:{disabled:!e.poll.closingAt,rules:[e.validDate],placeholder:"2000-12-30","prepend-icon":e.mdiCalendar},scopedSlots:e._u([{key:"label",fn:function(){return[e.poll.closingAt?t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"common.closing_in",args:{time:e.label}},expression:"{ path: 'common.closing_in', args: { time: label } }"}],attrs:{title:e.exact(e.poll.closingAt)}}):e._e(),e.poll.closingAt?e._e():t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_common_closing_at_field.no_closing_date",expression:"'poll_common_closing_at_field.no_closing_date'"}]})]},proxy:!0}],null,!0),model:{value:e.closingDate,callback:function(a){e.closingDate=a},expression:"closingDate"}},"v-text-field",n,!1),s))]}}]),model:{value:e.isShowingDatePicker,callback:function(s){e.isShowingDatePicker=s},expression:"isShowingDatePicker"}},[t(Os,{staticClass:"poll-common-closing-at-field__datepicker",attrs:{disabled:!e.poll.closingAt,min:e.dateToday,"no-title":""},on:{input:function(s){e.isShowingDatePicker=!1}},model:{value:e.closingDate,callback:function(s){e.closingDate=s},expression:"closingDate"}})],1)],1),t(U),t(We,{staticClass:"poll-common-closing-at-field__timepicker",attrs:{disabled:!e.poll.closingAt,"prepend-icon":e.mdiClockOutline,label:e.$t("poll_meeting_time_field.closing_hour"),items:e.times,hint:e.twelvehour?e.closingAtHint:null,"persistent-hint":e.twelvehour},model:{value:e.closingHour,callback:function(s){e.closingHour=s},expression:"closingHour"}})],1)],1),t(le,{attrs:{subject:e.poll,field:"closingAt"}})],1)])},$p=[],Pp=d(kp,Tp,$p,!1,null,null,null,null);const Rp=Pp.exports,Sp={props:{poll:Object,value:Date},data(){return{min:new Date,zoneCounts:[],showTimeZones:!1}},computed:{currentTimeZone(){return i.user().timeZone}},methods:{timeInZone(o){return Ie(this.value,o)}}};var Op=function(){var e=this,t=e._self._c;return t("div",{staticClass:"poll-meeting-add-option-menu"},[t("p",{staticClass:"text-caption text--secondary"},[t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_common_form.your_in_zone",args:{zone:e.currentTimeZone}},expression:"{path: 'poll_common_form.your_in_zone', args: {zone: currentTimeZone}}"}]}),t("br"),t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_meeting_form.participants_see_local_times",expression:"'poll_meeting_form.participants_see_local_times'"}]})])])},Ep=[],Dp=d(Sp,Op,Ep,!1,null,null,null,null);const Np=Dp.exports,Lp={props:{value:Date,min:Date,dateLabel:Object,t
56imeLabel:Object},created(){return this.newValue=this.value},data(){return{mdiCalendar:fo,mdiClockOutline:go,dateStr:this.value&&B(this.value,"yyyy-MM-dd")||"",timeStr:this.value&&B(this.value,"HH:mm")||"",minStr:this.value&&B(this.min,"yyyy-MM-dd")||"",dateMenu:!1,times:Bs(),placeholder:B(new Date,"yyyy-MM-dd"),validDate:o=>Le(ut(o,"yyyy-MM-dd",new Date))}},methods:{updateNewValue(){const o=ut(`${this.dateStr} ${this.timeStr}`,"yyyy-MM-dd HH:mm",new Date);Le(o)&&(this.newValue=o,this.$emit("input",this.newValue))}},watch:{dateStr(){this.updateNewValue()},timeStr(){this.updateNewValue()}},computed:{twelvehour(){return Vt()!=="HH:mm"},timeHint(){try{const o=ut(this.timeStr,"HH:mm",new Date);return B(o,Vt())}catch{return y.error("poll_meeting_form.use_24_hour_format",{time:B(new Date,"HH:mm")}),C.t("poll_meeting_form.use_24_hour_format",{time:B(new Date,"HH:mm")})}}}};var Vp=function(){var e=this,t=e._self._c;return t(ne,{staticClass:"date-time-picker"},[t(ft,{ref:"dateTimePicker",attrs:{"offset-y":"","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(F,e._g(e._b({staticClass:"date-time-picker__date-field",attrs:{placeholder:e.placeholder,rules:[e.validDate],"prepend-icon":e.mdiCalendar},model:{value:e.dateStr,callback:function(a){e.dateStr=a},expression:"dateStr"}},"v-text-field",n,!1),s))]}}]),model:{value:e.dateMenu,callback:function(s){e.dateMenu=s},expression:"dateMenu"}},[t(Os,{staticClass:"date-time-picker__date-picker",attrs:{"no-title":"",min:e.minStr},on:{input:function(s){e.dateMenu=!1}},model:{value:e.dateStr,callback:function(s){e.dateStr=s},expression:"dateStr"}})],1),t(U),t(Es,{staticClass:"date-time-picker__time-field",attrs:{hint:e.twelvehour?e.timeHint:null,"persistent-hint":e.twelvehour,items:e.times,"prepend-icon":e.mdiClockOutline},model:{value:e.timeStr,callback:function(s){e.timeStr=s},expression:"timeStr"}})],1)},Fp=[],Mp=d(Lp,Vp,Fp,!1,null,null,null,null);const qp=Mp.exports,jp={props:{name:String,zone:String},computed:{time(){return Ie(Ve(this.name),this.zone)}}};var Up=function(){var e=this,t=e._self._c;return t("pre",{staticClass:"poll-meeting-time"},[e._v(e._s(e.time))])},zp=[],Bp=d(jp,Up,zp,!1,null,null,null,null);const To=Bp.exports,Hp={mixins:[xa],directives:{handle:vo},props:{item:Object}};var Wp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sortable-list-item"},[e._t("default")],2)},Gp=[],Yp=d(Hp,Wp,Gp,!1,null,null,null,null);const $o=Yp.exports,Kp={mixins:[Ia]};var Zp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"list",attrs:{transitionDuration:250,lockAxis:"y"}},[e._t("default")],2)},Jp=[],Qp=d(Kp,Zp,Jp,!1,null,null,null,null);const Po=Qp.exports,Ht=new class{constructor(){this.models=[]}okToLeave(e){const t=["description","title","body","details","name","reason","statement","titlePlaceholder","processIntroduction","processName","processSubtitle"],s=W((e&&[e]||this.models).flat());return s.forEach(n=>n.beforeSaves.forEach(a=>a())),K(s,n=>Et(t,n.modifiedAttributes()).length>0)?(W(this.models.map(n=>n.constructor.singular)),W(this.models.map(n=>Et(t,n.modifiedAttributes())).flat().flat()),confirm(C.t("common.confirm_discard_changes"))?e&&e.discardChanges()||!0:!1):(this.models=[],!0)}add(e){return this.models.push(e)}clear(){return this.models=[]}},Xp={props:{focusId:String,model:Object,field:String,label:String,placeholder:String,maxLength:Number,autofocus:Boolean,shouldReset:Boolean},components:{"md-editor":()=>r(()=>import("./md_editor-arh89XCV.js"),__vite__mapDeps([101,102,1,2,103]),import.meta.url),"collab-editor":()=>r(()=>import("./collab_editor-5kr5wGF1.js"),__vite__mapDeps([104,102,1,2,103,105]),import.meta.url)},mounted(){Ht.add(this.model)},computed:{format(){return this.model[`${this.field}Format`]}}};var em=function(){var e=this,t=e._self._c;return t("div",[t("label",{staticClass:"text-caption v-label v-label--active",staticStyle:{color:"var(--text-secondary)"},attrs:{"aria-hidden":"true"}},[e._v(e._s(e.label))]),t("div",{staticClass:"lmo-textarea pb-1"}
56,[e.format=="html"?t("collab-editor",{attrs:{"focus-id":e.focusId,model:e.model,field:e.field,placeholder:e.placeholder,maxLength:e.maxLength,autofocus:e.autofocus,shouldReset:e.shouldReset},scopedSlots:e._u([e._l(e.$scopedSlots,function(s,n){return{key:n,fn:function(a){return[e._t(n,null,null,a)]}}})],null,!0)}):e._e(),e.format=="md"?t("md-editor",{attrs:{"focus-id":e.focusId,model:e.model,field:e.field,placeholder:e.placeholder,maxLength:e.maxLength,autofocus:e.autofocus,shouldReset:e.shouldReset},scopedSlots:e._u([e._l(e.$scopedSlots,function(s,n){return{key:n,fn:function(a){return[e._t(n,null,null,a)]}}})],null,!0)}):e._e()],1)])},tm=[],om=d(Xp,em,tm,!1,null,null,null,null);const Ro=om.exports,sm={props:{model:Object},data(){return{items:[]}},mounted(){return this.query()},methods:{query(){this.items=W(this.model.group().tags().map(o=>o.name).concat(this.model.group().parentOrSelf().tags().filter(o=>o.taggingsCount).map(o=>o.name)))},colorFor(o){return(this.model.group().tags().find(e=>e.name===o)||this.model.group().parentOrSelf().tags().find(e=>e.name===o)||{}).color},remove(o){this.model.tags.splice(this.model.tags.indexOf(o),1)}},watch:{"model.groupId":"query"},computed:{actor(){return i.user()}}};var nm=function(){var e=this,t=e._self._c;return t(Es,{staticClass:"tags-field__input",attrs:{multiple:"","hide-selected":"",label:e.$t("loomio_tags.tags"),items:e.items},scopedSlots:e._u([{key:"selection",fn:function(s){return[t(M,{key:JSON.stringify(s.item),staticClass:"chip--select-multi",attrs:{value:s.item,close:"",outlined:"",color:e.colorFor(s.item)},on:{"click:close":function(n){return e.remove(s)}}},[t("span",[e._v(e._s(s.item))])])]}},{key:"item",fn:function(s){return[t(M,{staticClass:"chip--select-multi",attrs:{outlined:"",color:e.colorFor(s.item)}},[t("span",[e._v(e._s(s.item))])])]}}]),model:{value:e.model.tags,callback:function(s){e.$set(e.model,"tags",s)},expression:"model.tags"}})},im=[],rm=d(sm,nm,im,!1,null,null,null,null);const am=rm.exports,lm={props:{value:Boolean}};var cm=function(){var e=this,t=e._self._c;return t(Ds,{staticClass:"submit-overlay",attrs:{value:e.value}},[t(xs,{attrs:{indeterminate:"",size:"64"}})],1)},dm=[],um=d(lm,cm,dm,!1,null,null,null,null);const So=um.exports;var pm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"poll-common-form"},[t(So,{attrs:{value:e.poll.processing}}),t(Lt,{staticClass:"px-0"},[t("h1",{directives:[{name:"t",rawName:"v-t",value:{path:e.titlePath,args:e.titleArgs},expression:"{path: titlePath, args: titleArgs}"}],staticClass:"text-h4",attrs:{tabindex:"-1"}}),t(U),e.poll.id?t(g,{attrs:{icon:"",to:e.urlFor(e.poll),"aria-hidden":"true"}},[t(h,{attrs:{name:"mdi-close"}})],1):e._e(),e.poll.id?e._e():t(g,{attrs:{icon:"","aria-hidden":"true"},on:{click:function(s){return e.$emit("setPoll",null)}}},[t(h,{attrs:{name:"mdi-close"}})],1)],1),e.pollTemplate?t("poll-template-info-panel",{attrs:{"poll-template":e.pollTemplate}}):e._e(),!e.poll.id&&!e.poll.discussionId?t(We,{attrs:{items:e.groupItems,label:e.$t("common.group")},model:{value:e.poll.groupId,callback:function(s){e.$set(e.poll,"groupId",s)},expression:"poll.groupId"}}):e._e(),t(F,{staticClass:"poll-common-form-fields__title",attrs:{type:"text",required:"true",hint:e.$t("poll_common_form.title_hint"),placeholder:e.titlePlaceholder,label:e.$t("poll_common_form.title"),maxlength:"250"},model:{value:e.poll.title,callback:function(s){e.$set(e.poll,"title",s)},expression:"poll.title"}}),t(le,{attrs:{subject:e.poll,field:"title"}}),t(am,{attrs:{model:e.poll}}),t(Ro,{staticClass:"poll-common-form-fields__details",attrs:{model:e.poll,field:"details",placeholder:e.$t("poll_common_form.details_placeholder"),label:e.$t("poll_common_form.details"),"should-reset":e.shouldReset}}),e.hasOptions?[t("div",{directives:[{name:"t",rawName:"v-t",value:"poll_common_form.options",expression:"'poll_common_form.options'"}],staticClass:"v-label v-label--active px-0 text-caption py-2"}),e.pollOptions.length?e._e():t(we,{directives:[{name:"t",rawName:"v-t",value:"poll_common_form.no_options_add_some",expression:"'poll_common_form.no_options_add_some'"}],staticClass:"px-0"}
56),e.pollOptions.length?t(Po,{attrs:{"append-to":".app-is-booted","use-drag-handle":"","lock-axis":"y"},model:{value:e.pollOptions,callback:function(s){e.pollOptions=s},expression:"pollOptions"}},e._l(e.visiblePollOptions,function(s,n){return s._destroy?e._e():t($o,{key:s.name,attrs:{index:n,item:s}},[t(Fe,{staticClass:"mb-2 rounded",attrs:{outlined:""}},[t(w,{staticStyle:{"user-select":"none"}},[e.hasOptionIcon?t(O,{directives:[{name:"handle",rawName:"v-handle"}]},[t(ce,{attrs:{size:"48"}},[t("img",{attrs:{src:"/img/"+s.icon+".svg","aria-hidden":"true"}})])],1):e._e(),t(R,{directives:[{name:"handle",rawName:"v-handle"}]},[t(v,[e.optionFormat=="i18n"?t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_proposal_options."+s.name,expression:"'poll_proposal_options.'+option.name"}]}):e._e(),e.optionFormat=="plain"?t("span",[e._v(e._s(s.name))]):e._e(),e.optionFormat=="iso8601"?t("span",[t(To,{attrs:{name:s.name}})],1):e._e()]),t(q,{staticClass:"poll-common-vote-form__allow-wrap"},[e._v(e._s(s.meaning))])],1),t(de,[t(g,{attrs:{icon:"",title:e.$t("common.action.delete")},on:{click:function(a){return e.removeOption(s)}}},[t(h,{staticClass:"text--secondary",attrs:{name:"mdi-delete"}})],1)],1),e.poll.pollType!="meeting"?t(de,{staticClass:"ml-0"},[t(g,{attrs:{icon:"",title:e.$t("common.action.edit")},on:{click:function(a){return e.editOption(s)}}},[t(h,{staticClass:"text--secondary",attrs:{name:"mdi-pencil"}})],1)],1):e._e(),e.poll.pollType!="meeting"?t(h,{directives:[{name:"handle",rawName:"v-handle"}],staticClass:"text--secondary",staticStyle:{cursor:"grab"},attrs:{name:"mdi-drag-vertical",title:e.$t("common.action.move")}}):e._e()],1)],1)],1)}),1):e._e(),e.optionFormat=="i18n"?[t("p",[e._v("This poll cannot have new options added. (contact support if you see this message)")])]:e._e(),e.optionFormat=="plain"?[t("div",{staticClass:"d-flex justify-center"},[t(g,{directives:[{name:"t",rawName:"v-t",value:"poll_common_add_option.modal.title",expression:"'poll_common_add_option.modal.title'"}],staticClass:"poll-common-form__add-option-btn my-2",on:{click:e.addOption}})],1)]:e._e(),e.optionFormat=="iso8601"?[t("div",{directives:[{name:"t",rawName:"v-t",value:"poll_poll_form.new_option",expression:"'poll_poll_form.new_option'"}],staticClass:"v-label v-label--active px-0 text-caption pt-2"}),t("div",{staticClass:"d-flex align-center"},[t(qp,{attrs:{min:e.minDate},model:{value:e.newDateOption,callback:function(s){e.newDateOption=s},expression:"newDateOption"}}),t(g,{directives:[{name:"t",rawName:"v-t",value:"poll_poll_form.add_option_placeholder",expression:"'poll_poll_form.add_option_placeholder'"}],staticClass:"poll-meeting-form__option-button ml-4",attrs:{title:e.$t("poll_meeting_time_field.add_time_slot"),outlined:"",color:"primary"},on:{click:function(s){return e.addDateOption()}}})],1),t(Np,{attrs:{poll:e.poll,value:e.newDateOption}})]:e._e()]:e._e(),e.optionFormat=="iso8601"?[t("div",{staticClass:"d-flex align-center"},[t(F,{staticClass:"text-right",staticStyle:{"max-width":"120px","text-align":"right"},attrs:{label:e.$t("poll_meeting_form.meeting_duration"),type:"number"},model:{value:e.poll.meetingDuration,callback:function(s){e.$set(e.poll,"meetingDuration",s)},expression:"poll.meetingDuration"}}),t("span",{directives:[{name:"t",rawName:"v-t",value:"common.minutes",expression:"'common.minutes'"}],staticClass:"pl-2 text--secondary"}),e.formattedDuration?t("span",{staticClass:"pl-1 text--secondary"},[e._v("("+e._s(e.formattedDuration)+")")]):e._e()],1)]:e._e(),e.poll.pollType=="count"?[t("p",{directives:[{name:"t",rawName:"v-t",value:"poll_count_form.agree_target_helptext",expression:"'poll_count_form.agree_target_helptext'"}],staticClass:"text--secondary"}),t("div",{staticClass:"d-flex"},[t(F,{staticClass:"poll-common-form__agree-target",attrs:{type:"number",step:1,label:e.$t("poll_count_form.agree_target_label")},model:{value:e.poll.agreeTarget,callback:function(s){e.$set(e.poll,"agreeTarget",s)},expression:"poll.agreeTarget"}})],1)]:e._e(),e.poll.pollType=="score"?t("div",{staticClass:"d-flex"},[t(F,{staticClass:"poll-score-form__min",attrs:{type:"number",step:1,label:e.$t("poll_common.min_score")},model:{value:e.poll.minScore,callback:function(s){e.$set(e.poll,"minScore",s)},expression:"poll.minScore"}}),t(U),t(F,{staticClass:"poll-score-form__max",attrs:{type:"number",step:1,label:e.$t("poll_common.max_score")},model:{value:e.poll.maxScore,callback:function(s){e.$set(e.poll,"maxScore",s)},expression:"poll.maxScore"}}
56)],1):e._e(),e.poll.pollType=="poll"?[t("p",{directives:[{name:"t",rawName:"v-t",value:"poll_common_form.how_many_options_can_a_voter_choose",expression:"'poll_common_form.how_many_options_can_a_voter_choose'"}],staticClass:"text--secondary"}),t("div",{staticClass:"d-flex"},[t(F,{staticClass:"poll-common-form__minimum-stance-choices",attrs:{type:"number",step:1,hint:e.$t("poll_common_form.choose_at_least"),label:e.$t("poll_common_form.minimum_choices")},model:{value:e.poll.minimumStanceChoices,callback:function(s){e.$set(e.poll,"minimumStanceChoices",s)},expression:"poll.minimumStanceChoices"}}),t(U),t(F,{staticClass:"poll-common-form__maximum-stance-choices",attrs:{type:"number",step:1,hint:e.$t("poll_common_form.choose_at_most"),label:e.$t("poll_common_form.maximum_choices")},model:{value:e.poll.maximumStanceChoices,callback:function(s){e.$set(e.poll,"maximumStanceChoices",s)},expression:"poll.maximumStanceChoices"}})],1)]:e._e(),e.poll.pollType=="ranked_choice"?t("div",{staticClass:"d-flex align-center"},[t(F,{staticClass:"lmo-number-input",attrs:{label:e.$t("poll_ranked_choice_form.minimum_stance_choices_helptext"),hint:e.$t("poll_ranked_choice_form.minimum_stance_choices_hint"),type:"number",min:1,max:e.poll.pollOptionNames.length},model:{value:e.poll.minimumStanceChoices,callback:function(s){e.$set(e.poll,"minimumStanceChoices",s)},expression:"poll.minimumStanceChoices"}}),t(le,{attrs:{subject:e.poll,field:"minimumStanceChoices"}})],1):e._e(),e.poll.pollType=="dot_vote"?[t(F,{attrs:{label:e.$t("poll_dot_vote_form.dots_per_person"),type:"number",min:"1"},model:{value:e.poll.dotsPerPerson,callback:function(s){e.$set(e.poll,"dotsPerPerson",s)},expression:"poll.dotsPerPerson"}}),t(le,{attrs:{subject:e.poll,field:"dotsPerPerson"}})]:e._e(),t(he,{staticClass:"my-4"}),t(Rp,{attrs:{poll:e.poll}}),e.poll.closingAt&&e.closesSoon?t("p",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_common_settings.notify_on_closing_soon.voting_closes_too_s
56oon",args:{pollType:e.poll.translatedPollType()}},expression:"{path: 'poll_common_settings.notify_on_closing_soon.voting_closes_too_soon', args: {pollType: poll.translatedPollType()}}"}]}):e._e(),t(Ca,{attrs:{disabled:!e.poll.closingAt,label:e.$t("poll_common_settings.who_can_vote")},model:{value:e.poll.specifiedVotersOnly,callback:function(s){e.$set(e.poll,"specifiedVotersOnly",s)},expression:"poll.specifiedVotersOnly"}},[e.poll.discussionId&&!e.poll.groupId?t(Gt,{attrs:{value:!1,label:e.$t("poll_common_settings.specified_voters_only_false_discussion")}}):e._e(),e.poll.groupId?t(Gt,{attrs:{value:!1,label:e.$t("poll_common_settings.specified_voters_only_false_group")}}):e._e(),t(Gt,{staticClass:"poll-common-settings__specified-voters-only",attrs:{value:!0,label:e.$t("poll_common_settings.specified_voters_only_true")}})],1),e.poll.specifiedVotersOnly?t("div",{directives:[{name:"t",rawName:"v-t",value:e.$t("poll_common_settings.invite_people_next",{poll_type:e.poll.translatedPollType()}),expression:"$t('poll_common_settings.invite_people_next', {poll_type: poll.translatedPollType()})"}],staticClass:"text-caption mt-n4 text--secondary text-caption"}):e._e(),!e.poll.id&&!e.poll.specifiedVotersOnly?t(Pe,{staticClass:"mt-0",attrs:{label:e.$t("poll_common_form.notify_everyone_when_poll_starts",{poll_type:e.poll.translatedPollType()})},model:{value:e.poll.notifyRecipients,callback:function(s){e.$set(e.poll,"notifyRecipients",s)},expression:"poll.notifyRecipients"}}):e._e(),t("div",{staticClass:"d-flex justify-center"},[t(g,{staticClass:"my-4 poll-common-form__advanced-btn",on:{click:function(s){e.showAdvanced=!e.showAdvanced}}},[e.showAdvanced?t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_common_form.hide_advanced_settings",expression:"'poll_common_form.hide_advanced_settings'"}]}):t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_common_form.show_advanced_settings",expression:"'poll_common_form.show_advanced_settings'"}]})])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showAdvanced,expression:"showAdvanced"}]},[t(We,{attrs:{disabled:!e.poll.closingAt,label:e.$t("poll_common_settings.notify_on_closing_soon.voting_title"),items:e.closingSoonItems},model:{value:e.poll.notifyOnClosingSoon,callback:function(s){e.$set(e.poll,"notifyOnClosingSoon",s)},expression:"poll.notifyOnClosingSoon"}}),e.allowAnonymous?[t(Pe,{staticClass:"poll-common-checkbox-option poll-settings-anonymous",attrs:{disabled:!e.poll.isNew(),label:e.$t("poll_common_form.votes_are_anonymous")},model:{value:e.poll.anonymous,callback:function(s){e.$set(e.poll,"anonymous",s)},expression:"poll.anonymous"}})]:e._e(),e.poll.config().can_shuffle_options?[t(Pe,{staticClass:"poll-common-checkbox-option poll-settings-shuffle-options mt-4 pt-2",attrs:{label:e.$t("poll_common_settings.shuffle_options.title")},model:{value:e.poll.shuffleOptions,callback:function(s){e.$set(e.poll,"shuffleOptions",s)},expression:"poll.shuffleOptions"}})]:e._e(),e.poll.config().hide_reason_required?e._e():[t(We,{attrs:{label:e.$t("poll_common_form.stance_reason_required_label"),items:e.stanceReasonRequiredItems},model:{value:e.poll.stanceReasonRequired,callback:function(s){e.$set(e.poll,"stanceReasonRequired",s)},expression:"poll.stanceReasonRequired"}})],e.poll.stanceReasonRequired!="disabled"&&!e.poll.config().per_option_reason_prompt?t(F,{attrs:{label:e.$t("poll_common_form.reason_prompt"),hint:e.$t("poll_option_form.prompt_hint"),placeholder:e.$t("poll_common.reason_placeholder")},model:{value:e.poll.reasonPrompt,callback:function(s){e.$set(e.poll,"reasonPrompt",s)},expression:"poll.reasonPrompt"}}):e._e(),e.poll.stanceReasonRequired!="disabled"?[t(Pe,{staticClass:"poll-common-checkbox-option",attrs:{label:e.$t("poll_common_form.limit_reason_length")},model:{value:e.poll.limitReasonLength,callback:function(s){e.$set(e.poll,"limitReasonLength",s)},expression:"poll.limitReasonLength"}})]:e._e(),e.allowAnonymous?[t(We,{staticClass:"poll-common-settings__hide-results mt-6 pt-2",attrs:{label:e.$t("poll_common_card.hide_results"),items:e.hideResultsItems,disabled:!e.poll.isNew()&&e.currentHideResults=="until_closed"},model:{value:e.poll.hideResults,callback:function(s){e.$set(e.poll,"hideResults",s)},expression:"poll.hideResults"}})]:e._e()],2),e.poll.id?t(wp,{attrs:{model:e.poll,includeActor:""}}
56):e._e(),t(Me,{staticClass:"poll-common-form-actions"},[t(ip,{attrs:{path:"en/user_manual/polls/intro_to_decisions"}}),t(U),t(g,{staticClass:"poll-common-form__submit",attrs:{color:"primary",loading:e.poll.processing,disabled:!e.poll.title||e.hasOptions&&e.pollOptions.length<e.minOptions},on:{click:function(s){return e.submit()}}},[e.poll.id?t("span",{directives:[{name:"t",rawName:"v-t",value:"common.action.save_changes",expression:"'common.action.save_changes'"}]}):e._e(),!e.poll.id&&e.poll.closingAt?t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_common_form.start_poll_type",args:{poll_type:e.poll.translatedPollType()}},expression:"{path: 'poll_common_form.start_poll_type', args: {poll_type: poll.translatedPollType()}}"}]}):e._e(),!e.poll.id&&!e.poll.closingAt?t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_common_form.save_poll",expression:"'poll_common_form.save_poll'"}]}):e._e()])],1)],2)},mm=[],_m=d(ep,pm,mm,!1,null,null,null,null);const tn=_m.exports,ct=new class{constructor(){l(this,"makeAdmin",{name:"membership_dropdown.make_coordinator",canPerform(e,t){return e.adminsInclude(i.user())&&!e.adminsInclude(t)},perform(e,t){return c.remote.post("stances/make_admin",{participant_id:t.id,poll_id:e.id,exclude_types:"discussion"})}});l(this,"removeAdmin",{name:"membership_dropdown.demote_coordinator",canPerform(e,t){return e.adminsInclude(i.user())&&e.adminsInclude(t)},perform(e,t){return c.remote.post("stances/remove_admin",{participant_id:t.id,poll_id:e.id,exclude_types:"discussion"})}});l(this,"revoke",{name:"membership_dropdown.remove_from.poll",canPerform(e,t){return e.adminsInclude(i.user())},perform(e,t){return c.remote.post("stances/revoke",{participant_id:t.id,poll_id:e.id}).then(()=>(t.id===i.user().id&&m.$emit("deleteMyStance",e.id),y.success("membership_remove_modal.invitation.flash")))}})}actions(e,t,s){return{react:{dock:1,canPerform(){return e.castAt&&!e.discardedAt&&!e.revokedAt&&e.poll().showResults()&&e.poll().membersInclude(i.user())&&(e.poll().discussionId===null||!e.poll().discussion().closedAt)}},edit_stance:{name:e.poll().config().has_options&&"poll_common.change_vote"||"poll_common.change_response",icon:"mdi-pencil",dock:1,canPerform:()=>this.canUpdateStance(e),perform:()=>this.updateStance(e)},add_comment:{name:"common.action.reply",icon:"mdi-reply",dock:1,canPerform(){return e.castAt&&!e.discardedAt&&!e.revokedAt&&!e.poll().anonymous&&e.poll().showResults()&&_.canAddComment(e.poll().discussion())},perform(){return s.depth===e.discussion().maxDepth?m.$emit("toggle-reply",e,s.parentId):m.$emit("toggle-reply",e,s.id)}},uncast_stance:{name:e.poll().config().has_options&&"poll_common.remove_your_vote"||"poll_common.remove_your_response",icon:"mdi-cancel",dock:1,canPerform:()=>this.canUpdateStance(e),perform:()=>this.uncastStance(e)},translate_stance:{icon:"mdi-translate",name:"common.action.translate",dock:2,canPerform(){return e.author()&&i.user()&&e.author().locale!==i.user().locale&&_.canTranslate(e)},perform(){return e.translate(i.user().locale)}},show_history:{name:"action_dock.edited",icon:"mdi-history",dock:3,canPerform(){return e.edited()&&!e.revokedAt},perform(){return f({component:"RevisionHistoryModal",props:{model:e}})}}}}updateStance(e){return f({component:"PollCommonEditVoteModal",props:{stance:e.clone()}})}uncastStance(e){return f({component:"ConfirmModal",props:{confirm:{submit(){return c.remote.patch(`stances/${e.id}/uncast`)},text:{title:"poll_remove_vote.title",helptext:"poll_remove_vote.helptext",submit:"poll_remove_vote.confirm",flash:"poll_remove_vote.success"}}}})}canUpdateStance(e){return e&&e.latest&&!e.revokedAt&&e.poll().myStanceId===e.id&&e.poll().isVotable()&&e.poll().iHaveVoted()}},hm=new class{actions(e,t){return{edit_default_template:{name:"poll_common.edit_template",icon:"mdi-pencil",menu:!0,canPerform(){return!e.id&&t.adminsInclude(i.user())},to(){return`/poll_templates/new?template_key=${e.key}&group_id=${t.id}&return_to=${i.returnTo()}`}},edit_template:{name:"poll_common.edit_template",icon:"mdi-pencil",menu:!0,canPerform(){return e.id&&t.adminsInclude(i.user())},to(){return`/poll_templates/${e.id}/edit?&return_to=${i.returnTo()}`}},move:{name:"common.action.move",icon:"mdi-arrow-up-down",menu:!0,canPerform(){return!e.discardedAt&&t.adminsInclude(i.user())},perform(){return m.$emit("sortPollTemplates")}
56},discard:{icon:"mdi-eye-off",name:"common.action.hide",menu:!0,canPerform(){return e.id&&!e.discardedAt&&t.adminsInclude(i.user())},perform(){return c.remote.post("poll_templates/discard",{group_id:t.id,id:e.id})}},undiscard:{icon:"mdi-eye",name:"common.action.unhide",menu:!0,canPerform(){return e.id&&e.discardedAt&&t.adminsInclude(i.user())},perform(){return c.remote.post("poll_templates/undiscard",{group_id:t.id,id:e.id})}},destroy:{icon:"mdi-delete",name:"common.action.delete",menu:!0,canPerform(){return e.id&&t.adminsInclude(i.user())},perform(){return f({component:"ConfirmModal",props:{confirm:{submit(){return e.destroy().then(()=>m.$emit("closeModal"))},text:{title:"common.are_you_sure",helptext:"poll_common_form.confirm_delete",submit:"common.action.delete"}}}})}},hide:{icon:"mdi-eye-off",name:"common.action.hide",menu:!0,canPerform(){return!e.id&&e.key&&!e.discardedAt&&t.adminsInclude(i.user())},perform(){return c.remote.post("poll_templates/hide",{group_id:t.id,key:e.key})}},unhide:{icon:"mdi-eye",name:"common.action.unhide",menu:!0,canPerform(){return!e.id&&e.key&&e.discardedAt&&t.adminsInclude(i.user())},perform(){return c.remote.post("poll_templates/unhide",{group_id:t.id,key:e.key})}}}}},fm={props:{discussionTemplate:Object}};var gm=function(){var e=this,t=e._self._c;return t("div",[e.discussionTemplate.processIntroduction?t(z,{staticClass:"poll-template-info-panel",attrs:{type:"info",text:"",outlined:""}},[t("p",[e._v(e._s(e.discussionTemplate.processName))]),t(pe,{attrs:{model:e.discussionTemplate,column:"processIntroduction"}})],1):e._e()],1)},vm=[],ym=d(fm,gm,vm,!1,null,null,null,null);const bm=ym.exports,wm={components:{ThreadTemplateHelpPanel:bm},directives:{handle:vo},props:{discussion:Object,group:Object},data(){return{isSorting:!1,returnTo:i.returnTo(),groups:[],pollTemplates:[],discussionTemplate:null,actions:{},filter:"proposal",singleList:!this.group.categorizePollTemplates,filterLabels:{recommended:"decision_tools_card.recommended",proposal:"decision_tools_card.proposal_title",poll:"decision_tools_card.poll_title",meeting:"decision_tools_card.meeting",admin:"group_page.settings",templates:"templates.templates"}}},created(){this.watchRecords({collections:["pollTemplates"],query:o=>this.query()}),this.discussion&&this.discussion.discussionTemplateId&&c.discussionTemplates.findOrFetchById(this.discussion.discussionTemplateId).then(o=>(this.discussionTemplate=o,o.pollTemplateKeysOrIds.length&&(this.filter="recommended"),this.query())),this.group&&c.pollTemplates.fetchByGroupId(this.group.id),m.$on("sortPollTemplates",()=>this.isSorting=!0)},methods:{query(){if(this.filter==="recommended")this.pollTemplates=this.discussionTemplate.pollTemplates();else{let o;this.group.categorizePollTemplates?o=(()=>{switch(this.filter){case"proposal":return{pollType:{$in:["proposal","question"]},discardedAt:null};case"poll":return{pollType:{$in:["score","poll","ranked_choice","dot_vote"]},discardedAt:null};case"meeting":return{pollType:{$in:["meeting","count"]},discardedAt:null};case"admin":return{discardedAt:{$ne:null}}}})():o=(()=>{switch(this.filter){case"admin":return{discardedAt:{$ne:null}};default:return{discardedAt:null}}})(),this.pollTemplates=c.pollTemplates.collection.chain().find({groupId:this.group.id||null}).find(o).simplesort("position").data()}this.actions={}
56,this.pollTemplates.forEach((o,e)=>{this.filter==="recommended"?this.actions[e]={}:this.actions[e]=hm.actions(o,this.group)})},cloneTemplate(o){const e=o.buildPoll();this.discussion?(e.discussionId=this.discussion.id,e.groupId=this.discussion.groupId):this.group&&(e.groupId=this.group.id),this.$emit("setPoll",e)},sortEnded(){this.isSorting=!1,setTimeout(()=>{const o=this.pollTemplates.map(e=>e.id||e.key);c.remote.post("poll_templates/positions",{group_id:this.group.id,ids:o})})}},watch:{filter:"query",discussionTemplate:"query",singleList(){setTimeout(()=>{this.group.categorizePollTemplates=!this.singleList,c.remote.post("poll_templates/settings",{group_id:this.group.id,categorize_poll_templates:this.group.categorizePollTemplates})})}},computed:{userIsAdmin(){return this.group.adminsInclude(i.user())},filters(){if(this.singleList)return{templates:"mdi-thumbs-up-down"};{const o=this.discussionTemplate&&this.discussionTemplate.pollTemplateKeysOrIds.length&&"mdi-star"||null;return N({recommended:o,proposal:"mdi-thumbs-up-down",poll:"mdi-poll",meeting:"mdi-calendar"},e=>!!e)}}}};var km=function(){var e=this,t=e._self._c;return t("div",{staticClass:"poll-common-templates-list"},[e.discussionTemplate?t("thread-template-help-panel",{attrs:{"discussion-template":e.discussionTemplate}}):e._e(),t("div",{staticClass:"d-flex",class:{"px-4":!e.discussion}},[e._l(e.filters,function(s,n){return t(M,{key:n,staticClass:"mr-1",class:"poll-common-choose-template__"+n,attrs:{label:"",outlined:e.filter!=n},on:{click:function(a){e.filter=n}}},[t(h,{staticClass:"mr-2",attrs:{small:"",name:s}}),t("span",{directives:[{name:"t",rawName:"v-t",value:e.filterLabels[n],expression:"filterLabels[name]"}],staticClass:"poll-type-chip-name"})],1)}),e.userIsAdmin?[t(U),t(M,{attrs:{outlined:e.filter!="admin"},on:{click:function(s){e.filter="admin"}}},[t(h,{staticClass:"mr-2",attrs:{small:"",name:"mdi-cog"}}),t("span",{directives:[{name:"t",rawName:"v-t",value:e.filterLabels.admin,expression:"filterLabels['admin']"}],staticClass:"poll-type-chip-name"})],1)]:e._e()],2),t(ge,{staticClass:"decision-tools-card__poll-types",attrs:{"two-line":"",dense:""}},[e.filter=="admin"?[t(w,{key:99999,staticClass:"decision-tools-card__new-template",class:"decision-tools-card__poll-type--new-template",attrs:{to:"/poll_templates/new?group_id="+e.group.id+"&return_to="+e.returnTo}},[t(R,[t(v,{directives:[{name:"t",rawName:"v-t",value:"discussion_form.new_template",expression:"'discussion_form.new_template'"}]}),t(q,{directives:[{name:"t",rawName:"v-t",value:"poll_common.create_a_custom_process",expression:"'poll_common.create_a_custom_process'"}]})],1)],1),t(Pe,{staticClass:"pl-4",attrs:{label:e.$t("poll_common.show_all_templates_in_one_list")},model:{value:e.singleList,callback:function(s){e.singleList=s},expression:"singleList"}}),e.pollTemplates.length?t(we,{directives:[{name:"t",rawName:"v-t",value:"poll_common.hidden_poll_templates",expression:"'poll_common.hidden_poll_templates'"}]}):e._e()]:e._e(),e.isSorting?[t(Po,{attrs:{"append-to":".decision-tools-card__poll-types","lock-axis":"y",axis:"y"},on:{"sort-end":e.sortEnded},model:{value:e.pollTemplates,callback:function(s){e.pollTemplates=s},expression:"pollTemplates"}},e._l(e.pollTemplates,function(s,n){return t($o,{key:s.id||s.key,attrs:{index:n}},[t(w,{key:s.id||s.key,staticClass:"decision-tools-card__poll-type",class:"decision-tools-card__poll-type--"+s.pollType},[t(R,[t(v,[t("span",[e._v(e._s(s.processName))]),e.filter=="admin"&&!s.id?t(M,{directives:[{name:"t",rawName:"v-t",value:"poll_common_action_panel.default_template",expression:"'poll_common_action_panel.default_template'"}],staticClass:"ml-2",attrs:{"x-small":"",outlined:""}}):e._e(),e.filter=="admin"&&s.id?t(M,{directives:[{name:"t",rawName:"v-t",value:"poll_common_action_panel.custom_template",expression:"'poll_common_action_panel.custom_template'"}],staticClass:"ml-2",attrs:{"x-small":"",outlined:""}}):e._e()],1),t(q,[e._v(e._s(s.processSubtitle))])],1),t(de,{directives:[{name:"handle",rawName:"v-handle"}],staticClass:"handle",staticStyle:{cursor:"grab"}},[t(h,{attrs:{name:"mdi-drag-vertical"}})],1)],1)],1)}),1)]:e._l(e.pollTemplates,function(s,n){return t(w,{key:s.id||s.key,staticClass:"decision-tools-card__poll-type",class:"decision-tools-card__poll-type--"+s.pollType,on:{click:function(a){return e.cloneTemplate(s)}}},[t(R,[t(v,[t("span",[e._v(e._s(s.processName))]),e.filter=="admin"&&!s.id?t(M,{directives:[{name:"t",rawName:"v-t",value:"poll_common_action_panel.default_template",expression:"'poll_common_action_panel.default_template'"}],staticClass:"ml-2",attrs:{"x-small":"",outlined:""}}
56):e._e(),e.filter=="admin"&&s.id?t(M,{directives:[{name:"t",rawName:"v-t",value:"poll_common_action_panel.custom_template",expression:"'poll_common_action_panel.custom_template'"}],staticClass:"ml-2",attrs:{"x-small":"",outlined:""}}):e._e()],1),t(q,[e._v(e._s(s.processSubtitle))])],1),t(de,[t(Io,{attrs:{actions:e.actions[n],small:"",icon:"",name:e.$t("action_dock.more_actions")}})],1)],1)})],2)],1)},xm=[],Im=d(wm,km,xm,!1,null,null,null,null);const Cm=Im.exports,Am={components:{PollCommonChooseTemplate:Cm},props:{discussion:Object,group:Object},data(){return{selectedGroup:this.group}},created(){this.watchRecords({collections:["groups"],query:o=>this.fillGroups()})},methods:{fillGroups(){const o=new Oe;o.isNullGroup=!1,o.name=C.t("templates.loomio_default_templates");const e=[o],t=i.user().groupIds();c.groups.collection.chain().find({id:{$in:t},archivedAt:null,parentId:null}).data().forEach(function(s){s.pollTemplatesCount&&e.push(s),c.groups.collection.chain().find({id:{$in:t},archivedAt:null,parentId:s.id}).data().forEach(function(n){n.pollTemplatesCount&&e.push(n)})}),this.groups=e},selectGroup(o){this.selectedGroup=o},setPoll(o){this.$emit("setPoll",o)}}},Tm={props:{elevation:{type:Number,default:0},group:Object,size:{type:Number,default:28}}};var $m=function(){var e=this,t=e._self._c;return t(ce,{class:"rounded elevation-"+e.elevation,attrs:{size:e.size,tile:""},on:{click:function(s){return e.$emit("click")}}},[e.group.logoUrl?t("img",{attrs:{alt:e.group.name,src:e.group.logoUrl}}):e._e(),e.group.logoUrl?e._e():t(h,{attrs:{name:"mdi-account-group"}})],1)},Pm=[],Rm=d(Tm,$m,Pm,!1,null,null,null,null);const ao=Rm.exports;var Sm=function(){var e=this,t=e._self._c;return t("div",[e.selectedGroup.isNullGroup?t("div",{staticClass:"poll-templates-select-group"},[t("p",{directives:[{name:"t",rawName:"v-t",value:"templates.which_templates_would_you_like_to_use",expression:"'templates.which_templates_would_you_like_to_use'"}]}),t(ge,e._l(e.groups,function(s){return t(w,{key:s.id,on:{click:function(n){return e.selectGroup(s)}}},[t(fe,{attrs:{"aria-hidden":"true"}},[s.parentId?e._e():t(ao,{attrs:{group:s}})],1),t(R,[t(v,[e._v(e._s(s.name))])],1)],1)}),1)],1):t("poll-common-choose-template",{attrs:{discussion:e.discussion,group:e.selectedGroup},on:{setPoll:e.setPoll}})],1)},Om=[],Em=d(Am,Sm,Om,!1,null,null,null,null);const Dm=Em.exports,Nm={components:{PollCommonForm:tn,PollCommonChooseTemplateWrapper:Dm},mixins:[Bt],props:{discussion:Object},data(){return{canAddComment:!1,currentAction:"add-comment",newComment:null,poll:null}},created(){this.watchRecords({key:this.discussion.id,collections:["groups","memberships","polls"],query:o=>this.canAddComment=_.canAddComment(this.discussion)}),this.resetComment()},methods:{resetComment(){this.newComment=c.comments.build({bodyFormat:i.defaultFormat(),discussionId:this.discussion.id,authorId:i.user().id})},setPoll(o){return this.poll=o},resetPoll(){this.poll=null,this.currentAction="add-comment"},signIn(){this.openAuthModal()},isLoggedIn(){return i.isSignedIn()}},watch:{"discussion.id"(){this.resetComment(),this.resetPoll()}},computed:{canStartPoll(){return _.canStartPoll(this.discussion)}}},Lm={props:{comment:Object,autofocus:Boolean},data(){return{actor:i.user(),canSubmit:!0,shouldReset:!1}},computed:{placeholder(){return this.comment.parentId?this.$t("comment_form.in_reply_to",{name:this.comment.parent().author().nameOrUsername()}):this.$t("comment_form.aria_label")}},methods:{handleIsUploading(o){return this.canSubmit=!o},submit(){this.comment.save().then(()=>{this.$emit("comment-submitted"),this.shouldReset=!this.shouldReset;const o=this.comment.isNew()?this.comment.isReply()?"comment_form.messages.replied":"comment_form.messages.created":"comment_form.messages.updated";y.success(o,{name:this.comment.isReply()?this.comment.parent().author().nameOrUsername():void 0})}).catch(o=>{y.error("common.something_went_wrong")})}}};var Vm=function(){var e=this,t=e._self._c;return t(ne,{staticClass:"comment-form"},[t("div",{staticClass:"thread-item__avatar mr-3"},[t(Q,{attrs:{user:e.comment.author()||e.actor,size:e.comment.parentId?28:32}})],1),t("form",{staticClass:"thread-item__body comment-form__body",on:{submit:function(s){return s.preventDefault(),e.submit()}
56,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||!s.ctrlKey?null:e.submit()},"!keydown":function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||!s.metaKey?null:(s.stopPropagation(),e.submit())}}},[t(So,{attrs:{value:e.comment.processing}}),t(Ro,{staticClass:"ml-n1",attrs:{model:e.comment,field:"body",placeholder:e.placeholder,autofocus:e.autofocus,shouldReset:e.shouldReset},on:{"is-uploading":e.handleIsUploading},scopedSlots:e._u([{key:"actions",fn:function(){return[t(g,{directives:[{name:"t",rawName:"v-t",value:e.comment.isNew()?"comment_form.post_comment":"common.action.save",expression:"comment.isNew() ? 'comment_form.post_comment' : 'common.action.save' "}],staticClass:"comment-form__submit-button",attrs:{disabled:!e.canSubmit,color:"primary",type:"submit"}})]},proxy:!0}])}),e.comment.saveFailed?t(z,{attrs:{color:"error"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"common.something_went_wrong",expression:"'common.something_went_wrong'"}]}),t(P),t("span",{directives:[{name:"t",rawName:"v-t",value:"common.please_try_again",expression:"'common.please_try_again'"}]})],1):e._e()],1)])},Fm=[],Mm=d(Lm,Vm,Fm,!1,null,null,null,null);const on=Mm.exports,qm={props:{date:[Date,String]},computed:{parsedDate(){return Ot(this.date)?Ve(this.date):this.date}}};var jm=function(){var e=this,t=e._self._c;return t("abbr",{staticClass:"time-ago",attrs:{title:e.exactDate(e.parsedDate)}},[e._v(e._s(e.approximateDate(e.parsedDate)))])},Um=[],zm=d(qm,jm,Um,!1,null,null,null,null);const oe=zm.exports;var Bm=function(){var e=this,t=e._self._c;return t("section",{key:e.discussion.id,staticClass:"actions-panel",class:{"mt-2 px-2 px-sm-4":!e.discussion.newestFirst},attrs:{id:"add-comment"}},[e.discussion.closedAt?[t(z,{attrs:{type:"info",text:"",outlined:""}},[t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"notifications.without_title.discussion_closed",args:{actor:e.discussion.closer().name}},expression:"{path: 'notifications.without_title.discussion_closed', args: {actor: discussion.closer().name} }"}]}),t(S),t(oe,{attrs:{date:e.discussion.closedAt}})],1)]:[t(he,{attrs:{"aria-hidden":"true"}}),t(Rs,{staticClass:"activity-panel__actions mb-3",attrs:{grow:"",text:""},model:{value:e.currentAction,callback:function(s){e.currentAction=s},expression:"currentAction"}},[t(Aa),t(Xt,{attrs:{href:"#add-comment"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"thread_context.add_comment",expression:"'thread_context.add_comment'"}]})]),e.canStartPoll?t(Xt,{staticClass:"activity-panel__add-poll",attrs:{href:"#add-poll"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_common.decision",expression:"'poll_common.decision'"}]})]):e._e()],1),t(Ta,{model:{value:e.currentAction,callback:function(s){e.currentAction=s},expression:"currentAction"}},[t(Mo,{attrs:{value:"add-comment"}},[t("div",{staticClass:"add-comment-panel"},[e.canAddComment?t(on,{attrs:{comment:e.newComment},on:{"comment-submitted":e.resetComment}}):e._e(),e.canAddComment?e._e():t("div",{staticClass:"add-comment-panel__join-actions"},[e.isLoggedIn()?t(en,{attrs:{group:e.discussion.group(),block:!0}}):e._e(),e.isLoggedIn()?e._e():t(g,{directives:[{name:"t",rawName:"v-t",value:"comment_form.sign_in",expression:"'comment_form.sign_in'"}],staticClass:"add-comment-panel__sign-in-btn",on:{click:function(s){return e.signIn()}}})],1)],1)]),e.canStartPoll?t(Mo,{attrs:{value:"add-poll"}},[t("div",{staticClass:"poll-common-start-form"},[e.poll?t(tn,{attrs:{poll:e.poll},on:{setPoll:e.setPoll,saveSuccess:e.resetPoll}}):e._e(),e.poll?e._e():t("poll-common-choose-template-wrapper",{attrs:{discussion:e.discussion,group:e.discussion.group()},on:{setPoll:e.setPoll}})],1)]):e._e()],1)]],2)},Hm=[],Wm=d(Nm,Bm,Hm,!1,null,null,null,null);const sn=Wm.exports,Gm={components:{StrandActionsPanel:sn},props:{loader:Object},computed:{discussion(){return this.loader.discussion},canStartPoll(){return _.canStartPoll(this.discussion)},canEditThread(){return _.canEditThread(this.discussion)}}},nn=new class{actions(e,t,s){return e.authorId,i.userId,{translate_comment:{name:"common.action.translate",icon:"mdi-translate",dock:2,canPerform(){return e.body&&_.canTranslate(e)},perform(){return i.user()&&e.translate(i.user().locale)}},notification_history:{name:"action_dock.notification_history",icon:"mdi-alarm-check",menu:!0,perform(){return f({component:"AnnouncementHistory",props:{model:e}})},canPerform(){return!e.discardedAt}},react:{dock:1,canPerform(){return!e.discardedAt&&_.canAddComment(e.discussion())}},reply_to_comment:{name:"common.action.reply",icon:"mdi-reply",dock:1,canPerform(){return _.canRespondToComment(e)},perform(){return s.depth===e.discussion().maxDepth?m.$emit("toggle-reply",e,s.parentId):m.$emit("toggle-reply",e,s.id)}},edit_comment:{name:"common.action.edit",icon:"mdi-pencil",dock:1,canPerform(){return!e.discardedAt&&e.authorIs(i.user())&&_.canEditComment(e)},perform(){return f({component:"EditCommentForm",maxWidth:800,props:{comment:e.clone()}})}},admin_edit_comment:{name:"common.action.edit",icon:"mdi-pencil",menu:!0,canPerform(){return!e.authorIs(i.user())&&_.canEditComment(e)},perform(){return f({component:"EditCommentForm",props:{comment:e.clone()}})}},show_history:{name:"action_dock.edited",icon:"mdi-history",dock:3,canPerform(){return e.edited()&&(!e.discardedAt||e.discussion().adminsInclude(i.user()))},perform(){return f({component:"RevisionHistoryModal",props:{model:e}})}},discard_comment:{name:"common.action.discard",icon:"mdi-delete-outline",menu:!0,canPerform(){return _.canDiscardComment(e)},perform(){return e.discard()}},undiscard_comment:{name:"common.action.restore",icon:"mdi-delete-restore",menu:!0,canPerform(){return _.canUndiscardComment(e)},perform(){return e.undiscard()}},delete_comment:{name:"common.action.delete",icon:"mdi-delete",menu:!0,canPerform(){return _.canDeleteComment(e)},perform(){return f({component:"ConfirmModal",props:{confirm:{submit(){return e.destroy().then(()=>window.location.reload())},text:{title:"delete_comment_dialog.title",helptext:"delete_comment_dialog.question",confirm:"delete_comment_dialog.title",flash:"c
56omment_form.messages.destroyed"}}}})}}}}},Oo=new class{actions(e,t){return{move_event:{name:"action_dock.move_item",menu:!0,icon:"mdi-call-split",kinds:["new_discussion","poll_created","new_comment"],perform(){return e.discussion().forkedEventIds.push(e.id)},canPerform(){return!e.model().discardedAt&&!e.discussion().closedAt&&_.canMoveThread(e.discussion())}},pin_event:{name:"action_dock.pin_event",icon:"mdi-pin-outline",menu:!0,kinds:["new_comment","poll_created"],canPerform(){return!e.model().discardedAt&&_.canPinEvent(e)},perform(){return f({component:"PinEventForm",props:{event:e}})}},unpin_event:{name:"action_dock.unpin_event",icon:"mdi-pin-off",menu:!0,kinds:["new_comment","poll_created"],canPerform(){return!e.model().discardedAt&&_.canUnpinEvent(e)},perform(){return e.unpin().then(()=>y.success("activity_card.event_unpinned"))}},copy_url:{icon:"mdi-link",menu:!0,kinds:["new_comment","poll_created","stance_created","stance_updated"],canPerform(){return!e.model().discardedAt},perform(){const s=ue.event(e,{},{absolute:!0});return navigator.clipboard.writeText(s).then(()=>y.success("action_dock.url_copied"))}}}}},Ym={props:{event:Object,eventable:Object},data(){return{confirmOpts:null,commentActions:nn.actions(this.eventable,this,this.event),eventActions:Oo.actions(this.event,this)}},computed:{dockActions(){return Nt(N(this.commentActions,o=>o.dock),H(this.eventActions,[]))},menuActions(){const o=Nt(H(this.eventActions,["pin_event","unpin_event","move_event","copy_url"]),N(this.commentActions,e=>e.menu));return H(o,["pin_event","unpin_event","reply_to_comment","admin_edit_comment","copy_url","notification_history","move_event","discard_comment","undiscard_comment"])}}};var rn=function(o,e){return e==null&&(e=!1),`thread_item.${(()=>{switch(o.kind){case"new_comment":return Km(o,e);case"stance_created":return Zm(o,e);case"discussion_edited":return Jm(o);case"poll_created":return"poll_created";default:return o.kind}})()}`},an=function(o){switch(o.eventableType){case"Comment":return o.model().parentAuthorName;case"Poll":case"Outcome":return o.model().poll().title;case"Group":case"Membership":return o.model().group().name;case"Stance":return o.model().poll().title;case"Discussion":return o.kind==="discussion_moved"?o.sourceGroupId?(c.groups.find(o.sourceGroupId)||{fullName:C.t("thread_item.deleted_group")}).fullName:C.t("thread_item.invite_only_thread"):o.model().title}},ln=function(o){return te(["Poll","Stance","Outcome"],o.eventableType)?`poll_types.${o.model().poll().pollType}`:""},iy=function(o,e){if(e=e||o.groupPrivacy,o.isParent())switch(e){case"open":return"group_form.group_privacy_is_open_description";case"secret":return"group_form.group_privacy_is_secret_description";case"closed":return o.allowPublicThreads?"group_form.group_privacy_is_closed_public_threads_description":"group_form.group_privacy_is_closed_description"}else switch(e){case"open":return"group_form.subgroup_privacy_is_open_description";case"secret":return"group_form.subgroup_privacy_is_secret_description";case"closed":return o.isSubgroupOfSecretParent()?"group_form.subgroup_privacy_is_closed_secret_parent_description":o.allowPublicThreads?"group_form.subgroup_privacy_is_closed_public_threads_description":"group_form.subgroup_privacy_is_closed_description"}},ry=function(o){if(o.parentId&&o.parent().privacyIsSecret())return o.privacyIsClosed()?"group_form.privacy_statement.private_to_parent_members":"group_form.privacy_statement.private_to_group";switch(o.groupPrivacy){case"open":return"group_form.privacy_statement.public_on_web";case"closed":return"group_form.privacy_statement.public_on_web";case"secret":return"group_form.privacy_statement.private_to_group"}},Km=function(o,e){return o.isNested()&&!e?"comment_replied_to":"new_comment"},Zm=function(o,e){return o.isNested()&&e?"new_comment":"stance_created"},Jm=function(o){const e=o.customFields.changed_keys;return te(e,"title")?"discussion_title_edited":te(e,"private")?"discussion_privacy_edited":te(e,"description")?"discussion_context_edited":te(e,"document_ids")?"discussion_attachments_edited":"discussion_edited"};const Qm={props:{event:Object,eventable:Object,collapsed:Boolean,dateTime:
56Date},computed:{datetime(){return this.dateTime||this.eventable.castAt||this.eventable.createdAt},headline(){const o=this.event.actor();return this.event.kind==="new_comment"&&this.collapsed&&this.event.descendantCount>0?this.$t("reactions_display.name_and_count_more",{name:o.nameWithTitle(this.eventable.group()),count:this.event.descendantCount}):this.$t(rn(this.event,!0),{author:o.nameWithTitle(this.eventable.group()),username:o.username,key:this.event.model().key,title:an(this.event),polltype:this.$t(ln(this.event)).toLowerCase()})},link(){return ue.event(this.event)}}};var Xm=function(){var e=this,t=e._self._c;return t("h3",{staticClass:"strand-item__headline thread-item__title text-body-2 pb-1",attrs:{tabindex:"-1"}},[t("div",{staticClass:"d-flex align-center"},[e._t("headline",function(){return[t("span",{staticClass:"strand-item__headline text--secondary",domProps:{innerHTML:e._s(e.headline)}})]}),t(S,{staticClass:"text--secondary"}),t("router-link",{staticClass:"text--secondary text-body-2",attrs:{to:e.link}},[t(oe,{attrs:{date:e.datetime}})],1),e.event.pinned?t(S):e._e(),e.event.pinned?t(h,{staticClass:"text--disabled",attrs:{name:"mdi-pin-outline"}}):e._e()],2)])},e_=[],t_=d(Qm,Xm,e_,!1,null,null,null,null);const ze=t_.exports;var o_=function(){var e=this,t=e._self._c;return t("section",{staticClass:"strand-item__new-comment new-comment",attrs:{id:"comment-"+e.eventable.id}},[t(ze,{attrs:{event:e.event,eventable:e.eventable}}),t(pe,{staticClass:"thread-item__body new-comment__body",attrs:{model:e.eventable,column:"body"}}),t(Ue,{attrs:{model:e.eventable}}),t(vt,{attrs:{model:e.eventable}}),t(je,{attrs:{attachments:e.eventable.attachments}}),t(re,{attrs:{model:e.eventable,actions:e.dockActions,"menu-actions":e.menuActions,small:"",left:""}})],1)},s_=[],n_=d(Ym,o_,s_,!1,null,null,null,null);const i_=n_.exports,r_={components:{StrandActionsPanel:sn},props:{event:Object,eventable:Object,collapsed:Boolean},watch:{"eventable.newestFirst"(){this.actions=qo(Ft.actions(this.eventable,this),["dismiss_thread"])}},data(){return{actions:qo(Ft.actions(this.eventable,this),["dismiss_thread"])}},mounted(){this.eventable.fetchUsersNotifiedCount()},computed:{author(){return this.discussion.author()},authorName(){return this.discussion.authorName()},discussion(){return this.eventable},group(){return this.discussion.group()},dockActions(){return N(this.actions,o=>o.dock)},menuActions(){return N(this.actions,o=>o.menu)},status(){if(this.discussion.pinned)return"pinned"},groups(){return this.discussion.group().parentsAndSelf().map(o=>({text:o.name,disabled:!1,to:this.urlFor(o)}))}},methods:{viewed(o){o&&i.isSignedIn()&&this.discussion.markAsSeen()},openSeenByModal(){f({component:"SeenByModal",props:{discussion:this.discussion}})}}},a_={props:{discussion:Object},computed:{status(){if(this.discussion.pinned)return"pinned"}}};var l_=function(){var e=this,t=e._self._c;return t("div",{staticClass:"thread-title"},[t("h1",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:e.titleVisible},expression:"{callback: titleVisible}"}],staticClass:"text-h4 context-panel__heading pt-2 mb-4",attrs:{id:"sequence-0",tabindex:"-1"}},[e.discussion.translation.title?e._e():t("span",[e._v(e._s(e.discussion.title))]),e.discussion.translation.title?t("span",[t(Ao,{attrs:{model:e.discussion,field:"title"}})],1):e._e(),e.status=="pinned"?t("i",{staticClass:"mdi mdi-pin-outline context-panel__heading-pin"}):e._e()])])},c_=[],d_=d(a_,l_,c_,!1,null,null,null,null);const u_=d_.exports;var p_=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:e.viewed,once:!0},expression:"{callback: viewed, once: true}"}],staticClass:"strand-new-discussion context-panel",attrs:{id:"context"}},[t(ne,{staticClass:"ml-n2",attrs:{"align-center":"",wrap:""}},[t($a,{staticClass:"context-panel__breadcrumbs",attrs:{items:e.groups},scopedSlots:e._u([{key:"divider",fn:function(){return[t(h,{attrs:{name:"mdi-chevron-right"}})]},proxy:!0}])}),t(U),t(zt,{attrs:{tags:e.discussion.tags,group:e.discussion.group()}}),e.discussion.private?t(M,{attrs:{small:"",outlined:"",title:e.$t("discussion_form.privacy_private")}},[t("i",{staticClass:"mdi mdi-lock-outline mr-1"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"common.privacy.private",expression:"'common.privacy.private'"}]}
56)]):e._e(),e.discussion.private?e._e():t(M,{attrs:{small:"",outlined:"",title:e.$t("discussion_form.privacy_public")}},[t("i",{staticClass:"mdi mdi-earth mr-1"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"common.privacy.public",expression:"'common.privacy.public'"}]})])],1),t(u_,{attrs:{discussion:e.discussion}}),t("div",{staticClass:"mb-4 text-body-2"},[t(Q,{staticClass:"mr-2",attrs:{user:e.author}}),t("router-link",{staticClass:"text--secondary",attrs:{to:e.urlFor(e.author)}},[e._v(e._s(e.authorName))]),t(S),t("router-link",{staticClass:"text--secondary",attrs:{to:e.urlFor(e.discussion)}},[t(oe,{attrs:{date:e.discussion.createdAt}})],1),t("span",{directives:[{name:"show",rawName:"v-show",value:e.discussion.seenByCount>0,expression:"discussion.seenByCount > 0"}]},[t(S),t("a",{directives:[{name:"t",rawName:"v-t",value:{path:"thread_context.seen_by_count",args:{count:e.discussion.seenByCount}},expression:"{ path: 'thread_context.seen_by_count', args: { count: discussion.seenByCount } }"}],staticClass:"context-panel__seen_by_count",on:{click:function(s){return e.openSeenByModal()}}})],1),t("span",{directives:[{name:"show",rawName:"v-show",value:e.discussion.usersNotifiedCount!=null,expression:"discussion.usersNotifiedCount != null"}]},[t(S),t("a",{directives:[{name:"t",rawName:"v-t",value:{path:"thread_context.count_notified",args:{count:e.discussion.usersNotifiedCount}},expression:"{ path: 'thread_context.count_notified', args: { count: discussion.usersNotifiedCount} }"}],staticClass:"context-panel__users_notified_count",on:{click:e.actions.notification_history.perform}})],1)],1),e.collapsed?e._e():[t(pe,{staticClass:"context-panel__description",attrs:{model:e.discussion,column:"description"}}),t(Ue,{attrs:{model:e.discussion}}),t(vt,{attrs:{model:e.discussion}}),t(je,{attrs:{attachments:e.discussion.attachments}}),t(re,{staticClass:"py-2",attrs:{model:e.discussion,actions:e.dockActions,"menu-actions":e.menuActions}})],e.discussion.newestFirst?t("strand-actions-panel",{attrs:{discussion:e.discussion}}):e._e()],2)},m_=[],__=d(r_,p_,m_,!1,null,null,null,null);const h_=__.exports,f_={props:{event:Object,eventable:Object}};var g_=function(){var e=this,t=e._self._c;return t("section",{staticClass:"strand-item__discussion-edited"},[t(ze,{attrs:{event:e.event,eventable:e.eventable,dateTime:e.event.createdAt}}),t("p",[e._v(e._s(e.event.recipientMessage))])],1)},v_=[],y_=d(f_,g_,v_,!1,null,null,null,null);const b_=y_.exports,w_={props:{event:Object,eventable:Object}};var k_=function(){var e=this,t=e._self._c;return t("section",{staticClass:"strand-item__poll-edited"},[t(ze,{attrs:{event:e.event,eventable:e.eventable,dateTime:e.event.createdAt}}),t("p",[e._v(e._s(e.event.recipientMessage))])],1)},x_=[],I_=d(w_,k_,x_,!1,null,null,null,null);const C_=I_.exports;function as(o){c.pollTemplates.findOrFetchByKeyOrId(o.pollTemplateKeyOrId()).then(e=>{const t=e||{outcomeStatement:null,outcomeStatementFormat:i.defaultFormat(),outcomeReviewDueInDays:null};let s=null;t.outcomeReviewDueInDays&&(s=B(ht(ho(new Date,t.outcomeReviewDueInDays)),"yyyy-MM-dd")),f({component:"PollCommonOutcomeModal",props:{outcome:c.outcomes.build({groupId:o.groupId,pollId:o.id,statement:t.outcomeStatement,statementFormat:t.outcomeStatementFormat,reviewOn:s})}})})}const cn=new class{openSetOutcomeModal(e){as(e)}actions(e,t,s){return!e||!e.config()?{}:{translate_poll:{icon:"mdi-translate",name:"common.action.translate",dock:2,canPerform(){return _.canTranslate(e)},perform(){return i.user()&&e.translate(i.user().locale)}},edit_stance:{name:e.config().has_options&&"poll_common.change_vote"||"poll_common.change_response",icon:"mdi-pencil",dock:2,canPerform(){return ct.canUpdateStance(e.myStance())},perform(){return ct.updateStance(e.myStance())}},uncast_stance:{name:e.config().has_options&&"poll_common.remove_your_vote"||"poll_common.remove_your_response",icon:"mdi-cancel",menu:!0,canPerform(){return ct.canUpdateStance(e.myStance())},perform:()=>ct.uncastStance(e.myStance())},edit_poll:{name:"action_dock.edit_poll_type",menu:!0,nameArgs(){return{pollType:e.translatedPollType()}}
56,icon:"mdi-pencil",canPerform(){return _.canEditPoll(e)},to(){return`/p/${e.key}/edit`}},make_a_copy:{icon:"mdi-content-copy",name:"templates.make_a_copy",menu:!0,canPerform(){return i.user()},to(){return`/p/new?template_id=${e.id}`}},add_poll_to_thread:{menu:!0,name:"action_dock.add_poll_to_thread",icon:"mdi-comment-plus-outline",canPerform(){return _.canAddPollToThread(e)},perform(){return f({component:"AddPollToThreadModal",props:{poll:e}})}},announce_poll:{icon:"mdi-send",name:"common.action.invite",dock:2,canPerform(){return e.discardedAt||e.closedAt?!1:_.canAnnouncePoll(e)},perform(){return f({component:"PollMembers",props:{poll:e}})}},remind_poll:{icon:"mdi-send",name:"common.action.remind",dock:2,canPerform(){return e.discardedAt||e.closedAt||e.votersCount<2?!1:_.canAnnouncePoll(e)},perform(){return f({component:"PollReminderForm",props:{poll:e.clone()}})}},close_poll:{icon:"mdi-close-circle-outline",name:"poll_common.close_early",dock:2,canPerform(){return _.canClosePoll(e)},perform(){return f({component:"ConfirmModal",props:{confirm:{submit(){return e.close()},successCallback(){as(e)},text:{title:"poll_common_close_form.title",helptext:"poll_common_close_form.helptext",flash:"poll_common_close_form.poll_type_closed"},textArgs:{poll_type:e.translatedPollType()}}}})}},reopen_poll:{icon:"mdi-refresh",name:"common.action.reopen",dock:3,canPerform(){return _.canReopenPoll(e)},perform(){return f({component:"PollCommonReopenModal",props:{poll:e}})}},add_comment:{name:"activity_card.add_comment",icon:"mdi-reply",dock:1,canPerform(){return!e.discardedAt&&e.discussionId&&_.canAddComment(e.discussion())&&!e.closingAt},perform(){return m.$emit("toggle-reply",e,s.id)}},show_history:{icon:"mdi-history",name:"action_dock.show_edits",menu:!0,canPerform(){return!e.discardedAt&&e.edited()},perform(){return f({component:"RevisionHistoryModal",props:{model:e}})}},notification_history:{name:"action_dock.notification_history",icon:"mdi-alarm-check",menu:!0,perform(){return f({component:"AnnouncementHistory",props:{model:e}})},canPerform(){return!e.discardedAt}},move_poll:{name:"action_dock.move_thread",icon:"mdi-folder-swap-outline",menu:!0,canPerform(){return _.canMovePoll(e)},perform(){return f({component:"PollCommonMoveForm",props:{poll:e.clone()}})}},export_poll:{name:"common.action.export",icon:"mdi-database-arrow-right-outline",menu:!0,canPerform(){return _.canExportPoll(e)},perform(){return _t(ue.poll(e,{export:1},{action:"export",ext:"csv",absolute:!0}))}},print_poll:{name:"common.action.print",icon:"mdi-printer-outline",menu:!0,canPerform(){return _.canExportPoll(e)},perform(){return _t(ue.poll(e,{export:1},{action:"export",ext:"html",absolute:!0}))}},discard_poll:{name:"poll_common.delete_poll",menu:!0,icon:"mdi-delete",canPerform(){return _.canDeletePoll(e)},perform(){return f({component:"ConfirmModal",props:{confirm:{submit(){return e.discard()},text:{raw_title:C.t("poll_common_delete_modal.title",{pollType:C.t(e.pollTypeKey())}),helptext:"poll_common_delete_modal.question",flash:"poll_common_delete_modal.success"}}}})}}}}},A_={props:{event:Object,collapsed:Boolean,eventable:Object},created(){m.$on("stanceSaved",()=>m.$emit("refreshStance")),this.watchRecords({collections:["stances","polls"],query:o=>{this.pollActions=cn.actions(this.poll,this,this.event),this.eventActions=Oo.actions(this.event,this),this.myStance=this.poll.myStance()}})},beforeDestroy(){m.$off("stanceSaved")},data(){return{buttonPressed:!1,myStance:null,pollActions:null,eventActions:null}},computed:{poll(){return this.eventable},menuActions(){return Nt(N(this.pollActions,o=>o.menu),N(this.eventActions,o=>o.menu))},dockActions(){return N(this.pollActions,o=>o.dock)}}},T_={props:{poll:Object},data(){return{stance:null}},created(){parseInt(this.$route.query.set_outcome)===this.poll.id&&m.$emit("openModal",{component:"PollCommonOutcomeModal",props:{outcome:c.outcomes.build({pollId:this.poll.id})}}),parseInt(this.$route.query.change_vote)===this.poll.id&&m.$emit("openModal",{component:"PollCommonEditVoteModal",props:{stance:this.poll.myStance()}}),m.$on("deleteMyStance",o=>{if(o===this.poll.id)return this.stance=null}),this.watchRecords({collections:["stances"],query:o=>{this.stance&&!this.stance.castAt&&this.poll.myStance()&&this.poll.myStance().castAt&&(this.stance=this.lastStanceOrNew().clone()),this.stance&&this.stance.castAt&&this.poll.myStance()&&!this.poll.myStance().castAt&&(this.stance=this.lastStanceOrNew().clone()),!this.stance&&_.canParticipateInPoll(this.poll)&&(this.stance=this.lastStanceOrNew().clone())}})},methods:{lastStanceOrNew(){const o=this.poll.myStance()||c.stances.build({reasonFormat:i.defaultFormat(),pollId:this.poll.id,userId:p.currentUserId});return this.$route.params.poll_option_id&&o.choose(this.$route.params.poll_option_id),o}}},$_={props:{stance:Object},data(){return{selectedOptionIds:E(this.stance.pollOptionIds().length&&this.stance.pollOptionIds()||[parseInt(this.$route.query.poll_option_id)]),selectedOptionId:this.stance.pollOptionIds()[0]||parseInt(this.$route.query.poll_option_id),options:[]}},created(){this.watchRecords({collections:["pollOptions"],query:o=>{this.poll.optionsDiffer(this.options)&&this.poll&&(this.options=this.poll.pollOptionsForVoting())}})},computed:{singleChoice(){return this.poll.singleChoice()},hasOptionIcon(){return this.poll.config().has_option_icon},poll(){return this.stance.poll()},optionSelected(){return this.selectedOptionIds.length||this.selectedOptionId},optionPrompt(){return this.selectedOptionId&&c.pollOptions.find(this.selectedOptionId).prompt||""},submitText(){return this.stance.castAt?this.poll.config().has_options?"poll_common.update_vote":"poll_common.update_response":this.poll.config().has_options?"poll_common.submit_vote":"poll_common.submit_response"},optionCountAlertColor(){if(!this.singleChoice&&this.selectedOptionIds.length&&(this.selectedOptionIds.length<this.poll.minimumStanceChoices||this.selectedOptionIds.length>this.poll.maximumStanceChoices))return"warning"},optionCountValid(){return this.singleChoice&&this.selectedOptionId||this.selectedOptionIds.length>=this.poll.minimumStanceChoices&&this.selectedOptionIds.length<=this.poll.maximumStanceChoices}},watch:{selectedOptionId(){m.$emit("focusEditor","poll-"+this.poll.id)}},methods:{submit(){this.singleChoice?this.stance.stanceChoicesAttributes=[{poll_option_id:this.selectedOptionId}]:this.stance.stanceChoicesAttributes=this.selectedOptionIds.map(e=>({poll_option_id:e}));const o=this.stance.castAt?"updated":"created";this.stance.save().then(()=>{y.success(`poll_${this.stance.poll().pollType}_vote_form.stance_${o}`),m.$emit("closeModal")}).catch(()=>!0)},isSelected(o){return this.singleChoice?this.selectedOptionId===o.id:this.selectedOptionIds.includes(o.id)},classes(o){let e;return this.poll.isVotable()?e="voting-enabled":e="voting-disabled",this.optionSelected?this.isSelected(o)?["elevation-2",e]:["poll-common-vote-form__button--not-selected",e]:[e]}}},P_={props:{poll:Object,stance:Object,prompt:String},computed:{label(){return this.poll.config().has_options?"poll_common.reason":"poll_common.response"},maxLength(){if(this.poll.limitReasonLength)return 500}}};var R_=function(){var e=this,t=e._self._c;return t("div",{staticClass:"poll-common-stance-reason"},[e.poll.stanceReasonRequired!="disabled"?t(Ro,{staticClass:"poll-common-vote-form__reason",attrs:{"focus-id":"poll-"+e.poll.id,model:e.stance,field:"reason",label:e.$t(e.label),placeholder:e.prompt||e.poll.reasonPrompt||e.$t("poll_common.reason_placeholder"),"max-length":e.maxLength}}
56):e._e(),t(le,{attrs:{subject:e.stance,field:"reason"}})],1)},S_=[],O_=d(P_,R_,S_,!1,null,null,null,null);const yt=O_.exports;var E_=function(){var e=this,t=e._self._c;return t("form",{staticClass:"poll-common-vote-form",on:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||!s.ctrlKey?null:e.submit()},"!keydown":function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||!s.metaKey?null:(s.stopPropagation(),e.submit())}}},[t(So,{attrs:{value:e.stance.processing}}),e.poll.config().has_options&&!e.poll.singleChoice()?t(z,{attrs:{color:e.optionCountAlertColor}},[e.poll.minimumStanceChoices==e.poll.maximumStanceChoices?t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_common.select_count_options",args:{count:e.poll.minimumStanceChoices}},expression:"{path: 'poll_common.select_count_options', args: {count: poll.minimumStanceChoices}}"}]}):t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_common.select_minimum_to_maximum_options",args:{minimum:e.poll.minimumStanceChoices,maximum:e.poll.maximumStanceChoices}},expression:"{path: 'poll_common.select_minimum_to_maximum_options', args: {minimum: poll.minimumStanceChoices, maximum: poll.maximumStanceChoices}}"}]})]):e._e(),e._l(e.options,function(s){return t(Fe,{key:s.id,staticClass:"poll-common-vote-form__button mb-2 rounded",class:e.classes(s),style:e.isSelected(s)&&{"border-color":s.color}||{},attrs:{outlined:""}},[t("label",[e.singleChoice?t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedOptionId,expression:"selectedOptionId"}],attrs:{"aria-label":s.optionName(),type:"radio",name:"name"},domProps:{value:s.id,checked:e._q(e.selectedOptionId,s.id)},on:{change:function(n){e.selectedOptionId=s.id}}}):e._e(),e.singleChoice?e._e():t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedOptionIds,expression:"selectedOptionIds"}],attrs:{"aria-label":s.optionName(),type:"checkbox",name:"name"},domProps:{value:s.id,checked:Array.isArray(e.selectedOptionIds)?e._i(e.selectedOptionIds,s.id)>-1:e.selectedOptionIds},on:{change:function(n){var a=e.selectedOptionIds,u=n.target,I=!!u.checked;if(Array.isArray(a)){var A=s.id,L=e._i(a,A);
56u.checked?L<0&&(e.selectedOptionIds=a.concat([A])):L>-1&&(e.selectedOptionIds=a.slice(0,L).concat(a.slice(L+1)))}else e.selectedOptionIds=I}}}),t(w,[t(O,[e.hasOptionIcon?[t(ce,{attrs:{size:"48"}},[t("img",{attrs:{"aria-hidden":"true",src:"/img/"+s.icon+".svg"}})])]:[e.singleChoice&&!e.isSelected(s)?t(h,{attrs:{name:"mdi-radiobox-blank",color:s.color}}):e._e(),e.singleChoice&&e.isSelected(s)?t(h,{attrs:{name:"mdi-radiobox-marked",color:s.color}}):e._e(),!e.singleChoice&&!e.isSelected(s)?t(h,{attrs:{name:"mdi-checkbox-blank-outline",color:s.color}}):e._e(),!e.singleChoice&&e.isSelected(s)?t(h,{attrs:{name:"mdi-checkbox-marked",color:s.color}}):e._e()]],2),t(R,[t(v,{staticClass:"poll-common-vote-form__button-text"},[e._v(e._s(s.optionName()))]),t(q,{staticClass:"poll-common-vote-form__allow-wrap"},[e._v(e._s(s.meaning))])],1)],1)],1)])}),t(yt,{attrs:{stance:e.stance,poll:e.poll,selectedOptionId:e.selectedOptionId,prompt:e.optionPrompt}}),t(Me,{staticClass:"poll-common-form-actions"},[t(g,{staticClass:"poll-common-vote-form__submit",attrs:{disabled:!e.optionCountValid||!e.poll.isVotable(),loading:e.stance.processing,color:"primary",block:""},on:{click:function(s){return e.submit()}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.submitText,expression:"submitText"}]})])],1)],2)},D_=[],N_=d($_,E_,D_,!1,null,null,null,null);const L_=N_.exports,V_={props:{stance:Object},data(){return{pollOptions:[],stanceChoices:[]}},created(){this.watchRecords({collections:["pollOptions"],query:o=>{this.stance.poll().optionsDiffer(this.pollOptions)&&(this.pollOptions=this.stance.poll().pollOptionsForVoting(),this.stanceChoices=b(this.pollOptions,e=>({option:e,score:this.stance.scoreFor(e)})))}})},methods:{submit(){dt(b(this.stanceChoices,"score"))>0&&(this.stance.stanceChoicesAttributes=b(this.stanceChoices,e=>({poll_option_id:e.option.id,score:e.score})));const o=this.stance.castAt?"updated":"created";this.stance.save().then(()=>{y.success(`poll_${this.stance.poll().pollType}_vote_form.stance_${o}`),m.$emit("closeModal")}).catch(()=>!0)},rulesForChoice(o){return[e=>e<=this.maxForChoice(o)||this.$t("poll_dot_vote_vote_form.too_many_dots")]},percentageFor(o){const e=dotsPerPerson;if(e>0)return`${100*o.score/e}% 100%`},backgroundImageFor(o){return`url(/img/poll_backgrounds/${o.color.replace("#","")}.png)`},styleData(o){return{"border-color":o.option.color,"background-image":this.backgroundImageFor(o.option),"background-size":this.percentageFor(o)}},adjust(o,e){return o.score+=e},maxForChoice(o){return this.dotsPerPerson-dt(b(Mt(this.stanceChoices,o),"score"))}},computed:{poll(){return this.stance.poll()},dotsRemaining(){return this.dotsPerPerson-dt(b(this.stanceChoices,"score"))},dotsPerPerson(){return this.stance.poll().dotsPerPerson},alertColor(){if(this.dotsRemaining===0)return"success";if(this.dotsRemaining>0)return"primary";if(this.dotsRemaining<0)return"error"}}};var F_=function(){var e=this,t=e._self._c;return t("div",[t(Pa,{ref:"form",staticClass:"poll-dot-vote-vote-form"},[t(Ns,{staticClass:"poll-dot-vote-vote-form__dots-remaining",attrs:{sticky:"",rounded:"",dense:"",color:e.alertColor}},[t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_dot_vote_vote_form.dots_remaining",args:{count:e.dotsRemaining}},expression:"{ path: 'poll_dot_vote_vote_form.dots_remaining', args: { count: dotsRemaining } }"}]})]),t("div",{staticClass:"poll-dot-vote-vote-form__options"},[e._l(e.stanceChoices,function(s){return t(w,{key:s.option.id,staticClass:"poll-dot-vote-vote-form__option"},[t(R,[t(v,[e._v(e._s(s.option.name))]),t(q,{staticStyle:{"white-space":"inherit"}},[e._v(e._s(s.option.meaning))]),t(Ls,{staticClass:"poll-dot-vote-vote-form__slider mt-4",attrs:{disabled:!e.poll.isVotable(),color:s.option.color,"track-color":"grey",height:4,min:0,max:e.dotsPerPerson,readonly:!1},model:{value:s.score,callback:function(n){e.$set(s,"score",n)},expression:"choice.score"}})],1),t(de,{staticStyle:{"max-width":"128px"}},[t(F,{attrs:{type:"number","max-width":"20px",filled:"",rounded:"",dense:""},model:{value:s.score,callback:function(n){e.$set(s,"score",n)},expression:"choice.score"}})],1)],1)}),t(le,{attrs:{subject:e.stance,field:"stanceChoices"}})],2),t(yt,{attrs:{stance:e.stance,poll:e.poll}}),t(Me,{staticClass:"poll-common-form-actions"},[t(g,{staticClass:"poll-common-vote-form__submit",attrs:{block:"",disabled:e.dotsRemaining<0||!e.poll.isVotable(),loading:e.stance.processing,color:"primary"},on:{click:function(s){return e.submit()}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.stance.castAt?"poll_common.update_vote":"poll_common.submit_vote",expression:"stance.castAt? 'poll_common.update_vote' : 'poll_common.submit_vote'"}]}
56)])],1)],1)],1)},M_=[],q_=d(V_,F_,M_,!1,null,null,null,null);const j_=q_.exports,U_={props:{stance:Object},data(){return{pollOptions:[],stanceChoices:[]}},created(){this.watchRecords({collections:["pollOptions"],query:o=>{this.stance.poll().optionsDiffer(this.pollOptions)&&(this.pollOptions=this.poll.pollOptionsForVoting(),this.stanceChoices=b(this.pollOptions,e=>({score:this.stance.scoreFor(e),option:e})))}})},methods:{submit(){this.stance.stanceChoicesAttributes=b(this.stanceChoices,e=>({poll_option_id:e.option.id,score:e.score}));const o=this.stance.castAt?"updated":"created";this.stance.save().then(()=>{y.success(`poll_${this.stance.poll().pollType}_vote_form.stance_${o}`),m.$emit("closeModal")}).catch(()=>!0)}},computed:{poll(){return this.stance.poll()}}};var z_=function(){var e=this,t=e._self._c;return t("form",{staticClass:"poll-score-vote-form",on:{submit:function(s){return s.preventDefault(),e.submit()}}},[t("div",{staticClass:"poll-score-vote-form__options"},e._l(e.stanceChoices,function(s){return t(w,{key:s.option.id,staticClass:"poll-dot-vote-vote-form__option"},[t(R,[t(v,[e._v(e._s(s.option.name))]),t(q,{staticStyle:{"white-space":"inherit"}},[e._v(e._s(s.option.meaning))]),t(Ls,{staticClass:"poll-score-vote-form__score-slider mt-4",attrs:{disabled:!e.poll.isVotable(),color:s.option.color,height:4,min:e.poll.minScore,max:e.poll.maxScore},model:{value:s.score,callback:function(n){e.$set(s,"score",n)},expression:"choice.score"}})],1),t(de,{staticStyle:{"max-width":"128px"}},[t(F,{staticClass:"text-right",attrs:{type:"number","max-width":"20px",filled:"",rounded:"",dense:""},model:{value:s.score,callback:function(n){e.$set(s,"score",n)},expression:"choice.score"}})],1)],1)}),1),t(le,{attrs:{subject:e.stance,field:"stanceChoices"}}),t(yt,{attrs:{stance:e.stance,poll:e.poll}}),t(Me,{staticClass:"poll-common-form-actions"},[t(g,{staticClass:"poll-common-vote-form__submit",attrs:{block:"",disabled:!e.poll.isVotable(),loading:e.stance.processing,color:"primary",type:"submit"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_common.submit_vote",expression:"'poll_common.submit_vote'"}]})])],1)],1)},B_=[],H_=d(U_,z_,B_,!1,null,null,null,null);const W_=H_.exports,G_={props:{stance:Object},data(){return{pollOptions:[]}},created(){this.watchRecords({collections:["pollOptions"],query:o=>{this.stance.poll().optionsDiffer(this.pollOptions)&&(this.pollOptions=this.sortPollOptions())}})},methods:{submit(){const o=Ts(this.pollOptions,this.numChoices);this.stance.stanceChoicesAttributes=b(o,(t,s)=>({poll_option_id:t.id,score:this.numChoices-s}));const e=this.stance.castAt?"updated":"created";this.stance.save().then(()=>{y.success(`poll_${this.stance.poll().pollType}_vote_form.stance_${e}`),m.$emit("closeModal")}).catch(()=>!0)},sortPollOptions(){return this.stance&&this.stance.castAt?ae(this.stance.poll().pollOptions(),o=>-this.stance.scoreFor(o)):this.stance.poll().pollOptionsForVoting()}},computed:{poll(){return this.stance.poll()},numChoices(){return this.stance.poll().minimumStanceChoices}}};var Y_=function(){var e=this,t=e._self._c;return t("div",{staticClass:"poll-ranked-choice-vote-form lmo-relative"},[t("p",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_ranked_choice_vote_form.helptext",args:{count:e.numChoices}},expression:"{ path: 'poll_ranked_choice_vote_form.helptext', args: { count: numChoices } }"}],staticClass:"text--secondary"}),t(Po,{attrs:{"lock-axis":"y",axis:"y","append-to":".app-is-booted"},model:{value:e.pollOptions,callback:function(s){e.pollOptions=s},expression:"pollOptions"}},e._l(e.pollOptions,function(s,n){return t($o,{key:s.id,attrs:{index:n,item:s}},[t(Fe,{staticClass:"mb-2 rounded poll-ranked-choice-vote-form__option",style:{"border-color":s.color},attrs:{outlined:""}},[t(w,[t(O,[t(h,{staticStyle:{cursor:"pointer"},attrs:{color:s.color,name:"mdi-drag"}})],1),t(R,[t(v,[e._v(e._s(s.name))]),t(q,[e._v(e._s(s.meaning))])],1),t(de,[n+1<=e.numChoices?t("span",{staticStyle:{"font-size":"1.4rem"}},[e._v("# "+e._s(n+1))]):e._e()])],1)],1)],1)}),1),t(le,{attrs:{subject:e.stance,field:"stanceChoices"}}),t(yt,{attrs:{stance:e.stance,poll:e.poll}}),t(Me,{staticClass:"poll-common-form-actions"},[t(g,{staticClass:"poll-common-vote-form__submit",attrs:{block:"",disabled:!e.poll.isVotable(),loading:e.stance.processing,color:"primary"},on:{click:function(s){return e.submit()}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.stance.castAt?"poll_common.update_vote":"poll_common.submit_vote",expression:"stance.castAt? 'poll_common.update_vote' : 'poll_common.submit_vote'"}]}
56)])],1)],1)},K_=[],Z_=d(G_,Y_,K_,!1,null,null,null,null);const J_=Z_.exports,Q_={props:{stance:Object},data(){return{stanceChoices:[],pollOptions:[],zone:null,stanceValues:[]}},beforeDestroy(){m.$off("timeZoneSelected",this.setTimeZone)},created(){m.$on("timeZoneSelected",this.setTimeZone),this.watchRecords({collections:["pollOptions"],query:o=>{this.stanceValues=this.poll.canRespondMaybe?[2,1,0]:[2,0],this.stance.poll().optionsDiffer(this.pollOptions)&&(this.pollOptions=this.stance.poll().pollOptionsForVoting(),this.stanceChoices=this.pollOptions.map(e=>({pollOption:e,poll_option_id:e.id,score:this.stance.scoreFor(e)})))}})},methods:{setTimeZone(o,e){this.zone=e},submit(){this.stance.stanceChoicesAttributes=this.stanceChoices.map(e=>({poll_option_id:e.poll_option_id,score:e.score}));const o=this.stance.castAt?"updated":"created";this.stance.save().then(()=>{m.$emit("closeModal"),y.success(`poll_${this.stance.poll().pollType}_vote_form.stance_${o}`)}).catch(()=>!0)},buttonStyleFor(o,e){return o.score===e?{opacity:1}:{opacity:.3}},imgForScore(o){return`/img/${(()=>{switch(o){case 2:return"agree";case 1:return"abstain";case 0:return"disagree"}})()}.svg`},incrementScore(o){return this.poll.canRespondMaybe?o.score=(o.score+5)%3:o.score=o.score===2?0:2}},computed:{poll(){return this.stance.poll()},currentUserTimeZone(){return i.user().timeZone}}},X_={props:{poll:{type:Object,required:!0},stanceChoice:{type:Object,required:!0},size:{type:Number,default:24}},computed:{color(){return this.pollOption.color},pollOption(){return this.stanceChoice.pollOption},pollType(){return this.poll.pollType},optionName(){return p.pollTypes[this.poll.pollType].poll_option_name_format==="i18n"?this.$t("poll_"+this.pollType+"_options."+this.stanceChoice.pollOption.name):this.stanceChoice.pollOption.name}},methods:{emitClick(){this.$emit("click")},colorFor(o){switch(o){case 2:return p.pollColors.proposal[0];case 1:return p.pollColors.proposal[1];case 0:return p.pollColors.proposal[2]}}}};var eh=function(){var e=this,t=e._self._c;return t("span",{staticClass:"poll-common-stance-choice text-truncate",class:"poll-common-stance-choice--"+e.pollType,attrs:{row:""}},[e.poll.config().has_option_icon?t(ce,{attrs:{tile:"",size:e.size}},[t("img",{attrs:{src:"/img/"+e.pollOption.icon+".svg",alt:e.optionName}})]):e._e(),e.poll.pollOptionNameFormat=="iso8601"?t(M,{attrs:{outlined:"",color:e.colorFor(e.stanceChoice.score)},on:{click:e.emitClick}},[t(To,{attrs:{name:e.optionName}})],1):e._e(),!e.poll.config().has_option_icon&&e.poll.pollOptionNameFormat!="iso8601"?t("span",[t(h,{staticClass:"mr-2",attrs:{small:"",color:e.pollOption.color,name:"mdi-check-circle"}}),t("span",[e._v(e._s(e.optionName))])],1):e._e()],1)},th=[],oh=d(X_,eh,th,!1,null,null,null,null);const dn=oh.exports;var sh=function(){var e=this,t=e._self._c;return t("form",{staticClass:"poll-meeting-vote-form",on:{submit:function(s){return s.preventDefault(),e.submit()}}},[t("p",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_meeting_vote_form.local_time_zone",args:{zone:e.currentUserTimeZone}},expression:"{path: 'poll_meeting_vote_form.local_time_zone', args: {zone: currentUserTimeZone}}"}],staticClass:"text--secondary"}),t("div",{staticClass:"poll-common-vote-form__options"},e._l(e.stanceChoices,function(s){return t(ne,{key:s.id,staticClass:"poll-common-vote-form__option",attrs:{wrap:""}},[t(dn,{attrs:{poll:e.stance.poll(),"stance-choice":s,zone:e.zone},on:{click:function(n){return e.incrementScore(s)}}}),t(U),e._l(e.stanceValues,function(n){return t(g,{key:n,staticClass:"poll-meeting-vote-form--box",style:e.buttonStyleFor(s,n),attrs:{icon:""},on:{click:function(a){s.score=n}}},[t(ce,{attrs:{size:32}},[t("img",{staticClass:"poll-common-form__icon",attrs:{src:e.imgForScore(n)}})])],1)})],2)}),1),t(le,{attrs:{subject:e.stance,field:"stanceChoices"}}),t(yt,{attrs:{stance:e.stance,poll:e.poll}}),t(Me,{staticClass:"poll-common-form-actions"},[t(g,{staticClass:"poll-common-vote-form__submit",attrs:{block:"",disabled:!e.poll.isVotable(),loading:e.stance.processing,color:"primary",type:"submit"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.stance.castAt?"poll_common.update_vote":"poll_common.submit_vote",expression:"stance.castAt? 'poll_common.update_vote' : 'poll_common.submit_vote'"}]}
56)])],1)],1)},nh=[],ih=d(Q_,sh,nh,!1,null,null,null,null);const rh=ih.exports,ah={components:{"poll-common-vote-form":L_,"poll-dot_vote-vote-form":j_,"poll-score-vote-form":W_,"poll-ranked_choice-vote-form":J_,"poll-meeting-vote-form":rh},props:{poll:Object,stance:Object,outcome:Object,stanceChoice:Object,back:Object,name:String,size:Number,shouldReset:Boolean},computed:{componentName(){const{pollType:o}=(this.stance||this.outcome||this.stanceChoice||this.poll).poll();return this.name==="vote-form"&&["proposal","count","poll"].includes(o)?"poll-common-vote-form":this.$options.components[`poll-${o}-${this.name}`]?`poll-${o}-${this.name}`:`poll-common-${this.name}`}}};var lh=function(){var e=this,t=e._self._c;return t(e.componentName,{tag:"component",attrs:{poll:e.poll,stance:e.stance,"stance-choice":e.stanceChoice,outcome:e.outcome,back:e.back,size:e.size,"should-reset":e.shouldReset}})},ch=[],dh=d(ah,lh,ch,!1,null,null,null,null);const uh=dh.exports;var ph=function(){var e=this,t=e._self._c;return e.poll.closedAt?e._e():t("div",{staticClass:"poll-common-action-panel",staticStyle:{position:"relative"}},[e.poll.anonymous?t(z,{staticClass:"poll-common-action-panel__anonymous-message mt-6",attrs:{dense:"",outlined:"",type:"info"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_common_action_panel.anonymous",expression:"'poll_common_action_panel.anonymous'"}]})]):e._e(),e.poll.closingAt?[e.stance&&!e.stance.castAt?t("div",{staticClass:"poll-common-vote-form"},[t("h3",{directives:[{name:"t",rawName:"v-t",value:"poll_common.have_your_say",expression:"'poll_common.have_your_say'"}],staticClass:"text-h6 py-3"})]):e._e()]:t(Ds,{staticClass:"rounded elevation-1",attrs:{absolute:"",opacity:.33,"z-index":2}},[t(z,{staticClass:"poll-common-action-panel__results-hidden-until-vote my-2 elevation-5",attrs:{dense:"",type:"info"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_common_action_panel.draft_mode",args:{poll_type:e.poll.translatedPollType()}},expression:"{path: 'poll_common_action_panel.draft_mode', args: {poll_type: poll.translatedPollType()}}"}]})])],1),e.stance&&!e.stance.castAt?t(uh,{class:{"pa-2":!e.poll.closingAt},attrs:{stance:e.stance,name:"vote-form"}}):e._e(),e.stance?e._e():t("div",{staticClass:"poll-common-unable-to-vote"},[t(z,{directives:[{name:"t",rawName:"v-t",value:{path:"poll_common_action_panel.unable_to_vote",args:{poll_type:e.poll.translatedPollType()}},expression:"{path: 'poll_common_action_panel.unable_to_vote', args: {poll_type: poll.translatedPollType()}}"}],staticClass:"my-4",attrs:{type:"warning",outlined:"",dense:""}})],1)],2)},mh=[],_h=d(T_,ph,mh,!1,null,null,null,null);const hh=_h.exports,fh={props:{poll:Object,zone:Object}
56,data(){return{decidedVoters:[]}},created(){return this.watchRecords({collections:["users"],query:o=>{this.decidedVoters=this.poll.decidedVoters()}})},methods:{scoreColor(o){switch(o){case 2:return p.pollColors.proposal[0];case 1:return p.pollColors.proposal[1];case 0:return p.pollColors.proposal[2]}},bgColor(o){switch(o){case 2:return"rgba(0, 209, 119, 0.5)";case 1:return"rgba(246, 168, 43, 0.5)"}},classForScore(o){switch(o){case 2:return"poll-meeting-chart__cell--yes";case 1:return"poll-meeting-chart__cell--maybe";default:return"poll-meeting-chart__cell--no"}}},computed:{datesAsOptions(){return this.poll.datesAsOptions()},currentUserTimeZone(){return i.user().timeZone}}};var gh=function(){var e=this,t=e._self._c;return t("div",{staticClass:"poll-meeting-chart-panel"},[t("table",{staticClass:"poll-meeting-chart-table"},[t("thead",[t("tr",[e.datesAsOptions?t("td",{staticClass:"text--secondary text-body-2"},[e._v(e._s(e.currentUserTimeZone))]):e._e(),t("td",{directives:[{name:"t",rawName:"v-t",value:"poll_common.votes",expression:"'poll_common.votes'"}],staticClass:"pr-2 total text--secondary text-body-2"}
56),e._l(e.decidedVoters,function(s){return t("td",{key:s.id},[t(Q,{attrs:{user:s,size:24}})],1)})],2)]),t("tbody",e._l(e.poll.results,function(s){return t("tr",{key:s.id},[t("td",{staticClass:"poll-meeting-chart__meeting-time"},[e.datesAsOptions?t(To,{attrs:{name:s.name,zone:e.zone}}):e._e(),s.name_format=="i18n"?t("span",{directives:[{name:"t",rawName:"v-t",value:s.name,expression:"option.name"}]}):e._e(),s.name_format=="none"?t("span",[e._v(e._s(s.name)+" ")]):e._e()],1),t("td",{staticClass:"total text-right pr-2 text-body-2"},[e.poll.canRespondMaybe?t("span",[e._v(e._s(s.score/2))]):t("span",[e._v(e._s(s.score))])]),e._l(e.decidedVoters,function(n){return t("td",{key:n.id},[t("div",{staticClass:"poll-meeting-chart__cell",class:e.classForScore(s.voter_scores[n.id])},[e._v("Â ")])])})],2)}),0)])])},vh=[],yh=d(fh,gh,vh,!1,null,null,null,null);const un=yh.exports,bh={components:{BarIcon:Zs,PieIcon:Js,GridIcon:Qs},props:{poll:Object},data(){return{users:{},slices:[]}},watch:{"poll.stanceCounts"(){this.slices=this.poll.pieSlices()}},methods:{optionMeaning(o){return c.pollOptions.find(o).meaning},clampPercent(o){return Math.max(0,Math.min(o,100))}},created(){this.watchRecords({collections:["users","stances"],query:()=>{this.poll.results.forEach(o=>{o.voter_ids.forEach(e=>{let t;(t=c.users.find(e))?T.set(this.users,e,t):c.users.addMissing(e)})})}})}};var wh=function(){var e=this,t=e._self._c;return t("div",{staticClass:"poll-common-chart-table"},[t(Ra,{attrs:{dense:""}},[t("thead",[t("tr",[e._l(e.poll.resultColumns,function(s){return[s=="chart"?t("th",{directives:[{name:"t",rawName:"v-t",value:e.poll.closedAt?"poll_common.results":"poll_common.current_results",expression:"poll.closedAt ? 'poll_common.results' : 'poll_common.current_results'"}],staticClass:"text-left"}):e._e(),s=="name"?t("th",{directives:[{name:"t",rawName:"v-t",value:"common.option",expression:'"common.option"'}],staticClass:"text-left"}):e._e(),s=="target_percent"?t("th",{directives:[{name:"t",rawName:"v-t",value:"poll_count_form.pct_of_target",expression:'"poll_count_form.pct_of_target"'}],staticClass:"text-right"}):e._e(),s=="score_percent"?t("th",{directives:[{name:"t",rawName:"v-t",value:"poll_ranked_choice_form.pct_of_points",expression:'"poll_ranked_choice_form.pct_of_points"'}],staticClass:"text-right"}):e._e(),s=="voter_percent"?t("th",{directives:[{name:"t",rawName:"v-t",value:"poll_ranked_choice_form.pct_of_voters",expression:'"poll_ranked_choice_form.pct_of_voters"'}],staticClass:"text-right"}):e._e(),s=="score"?t("th",{directives:[{name:"t",rawName:"v-t",value:"poll_ranked_choice_form.points",expression:'"poll_ranked_choice_form.points"'}],staticClass:"text-right"}):e._e(),s=="rank"?t("th",{directives:[{name:"t",rawName:"v-t",value:"poll_ranked_choice_form.rank",expression:'"poll_ranked_choice_form.rank"'}],staticClass:"text-right"}):e._e(),s=="average"?t("th",{directives:[{name:"t",rawName:"v-t",value:"poll_ranked_choice_form.mean",expression:'"poll_ranked_choice_form.mean"'}],staticClass:"text-right"}):e._e(),s=="voter_count"?t("th",{directives:[{name:"t",rawName:"v-t",value:"membership_card.voters",expression:'"membership_card.voters"'}],staticClass:"text-right"}):e._e(),s=="voters"?t("th"):e._e()]})],2)]),t("tbody",e._l(e.poll.results,function(s,n){return t("tr",{key:s.id},[e._l(e.poll.resultColumns,function(a){return[a=="chart"&&e.poll.chartType=="pie"&&n==0?t("td",{staticClass:"pa-0",staticStyle:{"vertical-align":"top"},attrs:{rowspan:e.poll.results.length}},[t("pie-icon",{staticClass:"ma-2",attrs:{slices:e.slices,size:128}})],1):e._e(),a=="chart"&&e.poll.chartType=="bar"?t("td",{staticClass:"pr-2 py-2",staticStyle:{width:"128px","min-width":"128px",padding:"0 8px 0 0"}},[t("div",{staticClass:"rounded",style:{width:e.clampPercent(s[e.poll.chartColumn])+"%",height:"24px","background-color":s.color}})]):e._e(),a=="name"?t("td",{style:e.poll.chartType=="pie"?{"border-left":"4px solid "+s.color}:{}},[s.id&&e.optionMeaning(s.id)?[t(As,{attrs:{right:""},scopedSlots:e._u([{key:"activator",fn:function({on:u,attrs:I}){return[t("span",e._g(e._b({},"span",I,!1),u),[s.name_format=="plain"?t("span",[e._v(e._s(s.name))]):e._e(
56),s.name_format=="i18n"?t("span",{directives:[{name:"t",rawName:"v-t",value:s.name,expression:"option.name"}]}):e._e()])]}}],null,!0)},[t("span",[e._v(e._s(e.optionMeaning(s.id)))])])]:[s.name_format=="plain"?t("span",[e._v(e._s(s.name))]):e._e(),s.name_format=="i18n"?t("span",{directives:[{name:"t",rawName:"v-t",value:s.name,expression:"option.name"}]}):e._e()]],2):e._e(),a=="target_percent"&&s.icon=="agree"?t("td",{staticClass:"text-right"},[e._v(e._s(s.target_percent.toFixed(0))+"%")]):e._e(),a=="target_percent"&&s.icon!="agree"?t("td",{staticClass:"text-right"}):e._e(),a=="rank"?t("td",{staticClass:"text-right"},[e._v(e._s(s.rank))]):e._e(),a=="score"?t("td",{staticClass:"text-right"},[e._v(e._s(s.score))]):e._e(),a=="voter_count"?t("td",{staticClass:"text-right"},[e._v(e._s(s.voter_count))]):e._e(),a=="average"?t("td",{staticClass:"text-right"},[e._v(e._s(Math.round((s.average+Number.EPSILON)*100)/100))]):e._e(),a=="voter_percent"?t("td",{staticClass:"text-right"},[e._v(e._s(s.voter_percent.toFixed(0))+"%")]):e._e(),a=="score_percent"?t("td",{staticClass:"text-right"},[e._v(e._s(s.score_percent.toFixed(0))+"%")]):e._e(),a=="voters"?t("td",{staticClass:"text-right"},[t("div",{staticClass:"poll-common-chart-table__voter-avatars"},e._l(s.voter_ids,function(u){return t(Q,{key:u,staticClass:"float-left",attrs:{user:e.users[u],size:24,"no-link":""}})}),1)]):e._e()]})],2)}),0)])],1)}
56,kh=[],xh=d(bh,wh,kh,!1,null,null,null,null);const pn=xh.exports,Ih={props:{poll:Object}};var Ch=function(){var e=this,t=e._self._c;return e.poll.closingAt?t("p",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_common_percent_voted.sentence",args:{numerator:e.poll.decidedVotersCount,denominator:e.poll.votersCount,percent:e.poll.castStancesPct}},expression:"{ path: 'poll_common_percent_voted.sentence', args: { numerator: poll.decidedVotersCount, denominator: poll.votersCount, percent: poll.castStancesPct } }"}],staticClass:"text--secondary my-2"}):e._e()},Ah=[],Th=d(Ih,Ch,Ah,!1,null,null,null,null);const mn=Th.exports,$h={props:{poll:Object},computed:{agreeResult(){return this.poll.results.find(o=>o.icon==="agree")},agreeCount(){return this.agreeResult.voter_count},targetPercent(){return this.agreeResult.target_percent}}};var Ph=function(){var e=this,t=e._self._c;return e.poll.closingAt?t("p",{staticClass:"text--secondary my-2"},[t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_common_percent_voted.target_progress",args:{num:e.agreeCount,target:e.poll.agreeTarget,percent:e.targetPercent}},expression:"{path: 'poll_common_percent_voted.target_progress', args: { num: agreeCount, target: poll.agreeTarget, percent: targetPercent } }"}]})]):e._e()},Rh=[],Sh=d($h,Ph,Rh,!1,null,null,null,null);const Oh=Sh.exports,Eh={components:{PollCommonChartTable:pn,PollCommonChartMeeting:un,PollCommonPercentVoted:mn,PollCommonTargetProgress:Oh},props:{poll:Object},data(){return{votersByOptionId:{}}},created(){this.watchRecords({collections:["polls"],query:()=>{i.isSignedIn()&&c.users.fetchAnyMissingById(this.poll.decidedVoterIds())}})}};var Dh=function(){var e=this,t=e._self._c;return t("div",{staticClass:"poll-common-chart-panel mt-8"},[e.poll.showResults()?[e.poll.config().has_options?[e.poll.chartType!="grid"?t(pn,{attrs:{poll:e.poll}}):t(un,{attrs:{poll:e.poll}})]:e._e()]:[e.poll.closingAt&&e.poll.hideResults=="until_closed"?t(z,{staticClass:"poll-common-action-panel__results-hidden-until-closed my-2",attrs:{dense:"",outlined:"",type:"info"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_common_action_panel.results_hidden_until_closed",args:{poll_type:e.poll.pollType}},expression:"{path: 'poll_common_action_panel.results_hidden_until_closed', args: {poll_type: poll.pollType}}"}]})]):e._e(),e.poll.closingAt&&!e.poll.iHaveVoted()&&e.poll.hideResults=="until_vote"?t(z,{staticClass:"poll-common-action-panel__results-hidden-until-vote my-2",attrs:{dense:"",outlined:"",type:"info"}},[t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_common_action_panel.results_hidden_until_vote",expression:"'poll_common_action_panel.results_hidden_until_vote'"}]})]):e._e()],e.poll.pollType!="count"?t(mn,{staticClass:"text-body-2 pl-2",attrs:{poll:e.poll}}):e._e()],2)},Nh=[],Lh=d(Eh,Dh,Nh,!1,null,null,null,null);const Vh=Lh.exports,St=new class{actions(e){const t=e.poll(),s=i.user();return{translate_outcome:{name:"common.action.translate",icon:"mdi-translate",dock:2,canPerform(){return _.canTranslate(e)},perform(){return i.user()&&e.translate(s.locale)}},react:{dock:1,canPerform(){return t.membersInclude(s)}},edit_outcome:{name:"common.action.edit",icon:"mdi-pencil",dock:1,canPerform(){return _.canSetPollOutcome(t)},perform(){return f({component:"PollCommonOutcomeModal",props:{outcome:e.clone()}})}},show_history:{icon:"mdi-history",name:"action_dock.show_edits",dock:1,canPerform(){return e.edited()},perform(){return f({component:"RevisionHistoryModal",props:{model:e}})}},notification_history:{name:"action_dock.notification_history",icon:"mdi-alarm-check",menu:!0,perform(){return f({component:"AnnouncementHistory",props:{model:e}})},canPerform(){return!0}}}}},Fh={props:{outcome:Object},methods:{parseISO:Ve},data(){return{actions:St.actions(this.outcome,this)}},computed:{menuActions(){return N(St.actions(this.outcome,this),(o,e)=>o.menu)},dockActions(){return N(St.actions(this.outcome,this),(o,e)=>o.dock>0)}}};var Mh=function(){var e=this,t=e._self._c;return e.outcome?t(z,{staticClass:"my-4 poll-common-outcome-panel",attrs:{color:"primary",outlined:""}},[t("h2",{directives:[{name:"t",rawName:"v-t",value:"poll_common.outcome",expression:"'poll_common.outcome'"}],staticClass:"text-h6"}),t("div",{staticClass:"my-2 text-body-2"},[t(Q,{staticClass:"mr-2",attrs:{user:e.outcome.author(),size:24}}),t(P),t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_common_outcome_panel.authored_by",args:{name:e.outcome.authorName()}},expression:"{ path: 'poll_common_outcome_panel.authored_by', args: { name: outcome.authorName() } }"}]}),t(S),t(oe,{attrs:{date:e.outcome.createdAt}}),e.outcome.reviewOn?[t(S),t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_common.review_due",expression:"'poll_common.review_due'"}]}),t(P),t(oe,{attrs:{date:e.outcome.reviewOn}})]:e._e()],2),e.outcome.poll().datesAsOptions()&&e.outcome.pollOption()?t("div",{staticClass:"poll-common-outcome__event-info"},[t("div",{staticClass:"text-h6"},[e._v(e._s(e.outcome.eventSummary))]),t("span",[e._v(e._s(e.exactDate(e.parseISO(e.outcome.pollOption().name))))]),t("p",[e._v(e._s(e.outcome.eventLocation))])]):e._e(
56),t(pe,{attrs:{model:e.outcome,column:"statement"}}),t(Ue,{attrs:{model:e.outcome}}),t(vt,{attrs:{model:e.outcome}}),t(je,{attrs:{attachments:e.outcome.attachments}}),t(re,{attrs:{model:e.outcome,actions:e.dockActions,menuActions:e.menuActions}})],1):e._e()},qh=[],jh=d(Fh,Mh,qh,!1,null,null,null,null);const Uh=jh.exports,zh={props:{poll:Object},data(){return{mdiFlagCheckered:Cs}},methods:{showPanel(){return _.canSetPollOutcome(this.poll)},openOutcomeForm(){cn.openSetOutcomeModal(this.poll)}}};var Bh=function(){var e=this,t=e._self._c;return e.showPanel()?t(z,{staticClass:"my-4 poll-common-set-outcome-panel",attrs:{icon:e.mdiFlagCheckered,prominent:"",outlined:"",color:"primary",elevation:"3"}},[t(Sa,{attrs:{align:"center"}},[t(jo,{staticClass:"grow"},[t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_common_set_outcome_panel.poll_type",args:{poll_type:e.poll.translatedPollType()}},expression:"{path: 'poll_common_set_outcome_panel.poll_type', args: {poll_type: poll.translatedPollType()}}"}]})]),t(jo,{staticClass:"shrink"},[t(g,{directives:[{name:"t",rawName:"v-t",value:"poll_common_set_outcome_panel.enter_outcome",expression:"'poll_common_set_outcome_panel.enter_outcome'"}],staticClass:"poll-common-set-outcome-panel__submit",attrs:{color:"primary"},on:{click:function(s){return e.openOutcomeForm()}}})],1)],1)],1):e._e()},Hh=[],Wh=d(zh,Bh,Hh,!1,null,null,null,null);const Gh=Wh.exports;var Yh=function(){var e=this,t=e._self._c;return t("section",{staticClass:"strand-item poll-created"},[t(ne,{attrs:{"justify-space-between":""}},[t("div",{staticClass:"poll-common-card__title text-h6 pb-1",attrs:{tabindex:"-1"}},[e.poll.translation.title?e._e():t("router-link",{attrs:{to:e.urlFor(e.poll)}},[e._v(e._s(e.poll.title))]),e.poll.translation.title?t(Ao,{attrs:{model:e.poll,field:"title"}}):e._e()],1)]),e.collapsed?e._e():t("div",[e.poll.outcome()?e._e():t(Gh,{attrs:{poll:e.poll}}),e.poll.outcome()?t(Uh,{attrs:{outcome:e.poll.outcome()}}):e._e(),t("div",{staticClass:"poll-common-details-panel__started-by text--secondary text-body-2 mb-4"},[t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"poll_card.poll_type_by_name",args:{name:e.poll.authorName(),poll_type:e.poll.translatedPollTypeCaps()}},expression:"{ path: 'poll_card.poll_type_by_name', args: { name: poll.authorName(), poll_type: poll.translatedPollTypeCaps() } }"}]}),t(S),t(Ks,{staticClass:"ml-1",attrs:{poll:e.poll}}),t(zt,{staticClass:"ml-2",attrs:{tags:e.poll.tags,group:e.poll.group(),smaller:""}})],1),t(pe,{staticClass:"poll-common-details-panel__details",attrs:{model:e.poll,column:"details"}}),t(Ue,{attrs:{model:e.poll}}),t(je,{attrs:{attachments:e.poll.attachments}}),t(vt,{attrs:{model:e.poll}}),t(Vh,{attrs:{poll:e.poll}}),t(hh,{attrs:{poll:e.poll}}),t(re,{staticClass:"my-2",attrs:{actions:e.dockActions,"menu-actions":e.menuActions}})],1)],1)},Kh=[],Zh=d(A_,Yh,Kh,!1,null,null,null,null);const Jh=Zh.exports,Qh={props:{event:Object,eventable:Object,collapsed:Boolean},computed:{actor(){return this.event.actor()},actorName(){return this.event.actorName()},poll(){return this.eventable.poll()},actions(){return ct.actions(this.eventable,this,this.event)},componentType(){return this.actor?"router-link":"div"},link(){return ue.event(this.event)}}},Xh={props:{stance:Object},computed:{poll(){return this.stance.poll()},variableScore(){return this.poll.hasVariableScore()},pollType(){return this.poll.pollType},datesAsOptions(){return this.poll.datesAsOptions()},choices(){return this.stance.sortedChoices()}},methods:{emitClick(){this.$emit("click")},colorFor(o){switch(o){case 2:return p.pollColors.proposal[0];case 1:return p.pollColors.proposal[1];case 0:return p.pollColors.proposal[2]}}}};var ef=function(){var e=this,t=e._self._c;return!e.datesAsOptions&&e.poll.pollType!="question"&&!e.poll.hasOptionIcon()?t("div",{staticClass:"poll-common-stance-choices pb-2 pt-2"},[e.stance.castAt&&e.stance.totalScore()==0?t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_common_votes_panel.none_of_the_above",expression:"'poll_common_votes_panel.none_of_the_above'"}],staticClass:"text-caption"}):e._l(e.choices,function(s){return s.score>0||e.pollType=="score"?t("div",{key:s.id,staticClass:"poll-common-stance-choice text-truncate",class:"poll-common-stance-choice--"+e.pollType},[e.variableScore?e._e():t(h,{attrs:{small:"",color:s.pollOption.color,name:"mdi-check-circle"}}),e.variableScore?t("span",{style:{color:s.pollOption.color}}
56,[e._v(e._s(s.rank||s.score))]):e._e(),t("span",{staticClass:"ml-2 text--secondary"},[e._v(e._s(s.pollOption.optionName()))])],1):e._e()})],2):e._e()},tf=[],of=d(Xh,ef,tf,!1,null,null,null,null);const sf=of.exports;var nf=function(){var e=this,t=e._self._c;return t("section",{staticClass:"strand-item__stance-created stance-created",attrs:{id:"'comment-'+ eventable.id",event:e.event}},[e.eventable.castAt&&!e.eventable.revokedAt?[e.eventable.hasOptionIcon()?[t("div",{staticClass:"d-flex text-body-2"},[t(e.componentType,{tag:"component",staticClass:"text--secondary",attrs:{to:e.actor&&e.urlFor(e.actor)}},[e._v(e._s(e.actorName))]),t(P),t(P),e.poll.showResults()?t(dn,{attrs:{poll:e.poll,"stance-choice":e.eventable.stanceChoice()}}):e._e(),t(P),t("router-link",{staticClass:"text--secondary",attrs:{to:e.link}},[t(P),t(oe,{attrs:{date:e.eventable.updatedAt||e.eventable.castAt}})],1),e.eventable.latest?e._e():[t(S,{staticClass:"text--secondary"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_common.outdated",expression:"'poll_common.outdated'"}],staticClass:"text--secondary"})]],2)]:e._e(),e.poll.showResults()&&!e.collapsed?t("div",{staticClass:"poll-common-stance"},[e.eventable.hasOptionIcon()?e._e():t(ne,{attrs:{wrap:"","align-center":""}},[t(ze,{staticClass:"text--secondary",attrs:{event:e.event,eventable:e.eventable,dateTime:e.eventable.updatedAt||e.eventable.castAt}})],1),t(sf,{attrs:{stance:e.eventable}}),t(pe,{staticClass:"poll-common-stance-created__reason",attrs:{model:e.eventable,column:"reason"}}),t(Ue,{attrs:{model:e.eventable}}),t(je,{attrs:{attachments:e.eventable.attachments}})],1):e._e(),t(re,{attrs:{model:e.eventable,actions:e.actions,small:"",left:""}})]:e._e(),!e.eventable.castAt&&!e.eventable.revokedAt?[t("div",{staticClass:"d-flex"},[t(e.componentType,{tag:"component",staticClass:"text--secondary",attrs:{to:e.actor&&e.urlFor(e.actor)}},[e._v(e._s(e.actorName))]),t(S,{staticClass:"text--secondary"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_common_votes_panel.undecided",expression:"'poll_common_votes_panel.undecided'"}]}),t(S,{staticClass:"text--secondary"}),t("router-link",{staticClass:"text--secondary",attrs:{to:e.link}},[t(oe,{attrs:{date:e.eventable.updatedAt}})],1)],1),t(re,{attrs:{model:e.eventable,actions:e.actions,small:""}})]:e._e(),e.eventable.revokedAt?[t("div",{staticClass:"d-flex"},[t(e.componentType,{tag:"component",staticClass:"text--secondary",attrs:{to:e.actor&&e.urlFor(e.actor)}},[e._v(e._s(e.actorName))]),t(S,{staticClass:"text--secondary"}),t("span",{directives:[{name:"t",rawName:"v-t",value:"poll_common_votes_panel.vote_removed",expression:"'poll_common_votes_panel.vote_removed'"}],staticClass:"text--secondary"}),t(S,{staticClass:"text--secondary"}),t("router-link",{staticClass:"text--secondary",attrs:{to:e.link}},[t(oe,{attrs:{date:e.eventable.updatedAt}})],1)],1),t(re,{attrs:{model:e.eventable,actions:e.actions,small:""}})]:e._e()],2)},rf=[],af=d(Qh,nf,rf,!1,null,null,null,null);const _n=af.exports,lf={components:{StanceUpdated:_n},props:{event:Object,eventable:Object,collapsed:Boolean}};var cf=function(){var e=this,t=e._self._c;return t("stance-updated",{attrs:{event:e.event,eventable:e.eventable,collapsed:e.collapsed}})},df=[],uf=d(lf,cf,df,!1,null,null,null,null);const pf=uf.exports,mf={props:{event:Object,eventable:Object},computed:{dockActions(){return St.actions(this.eventable,this)},menuActions(){return H(Oo.actions(this.event,this),["pin_event","unpin_event","notification_history"])}}};var _f=function(){var e=this,t=e._self._c;return t("section",{staticClass:"outcome-created strand-item__outcome-created",attrs:{id:"'outcome-'+ eventable.id"}},[t(ze,{attrs:{event:e.event,eventable:e.eventable}})],1)},hf=[],ff=d(mf,_f,hf,!1,null,null,null,null);const gf=ff.exports,vf={props:{event:Object,eventable:Object},computed:{menuActions(){return this.event.kind==="new_comment"?H(nn.actions(this.eventable,this),"undiscard_comment","delete_comment"):{}}}};var yf=function(){var e=this,t=e._self._c;return t("section",{staticClass:"strand-item__removed"},[t("h3",{staticClass:"strand-item__headline text-body-2 pb-1 d-flex align-center text--secondary"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"thread_item.removed",expression:"'thread_item.removed'"}]}),t(S),t(oe,{attrs:{date:e.eventable.discardedAt}})],1),t(re,{attrs:{model:e.eventable,"menu-actions":e.menuActions,small:""}})],1)},bf=[],wf=d(vf,yf,bf,!1,null,null,null,null);const hn=wf.exports,kf={props:{label:Object,loading:Boolean}};var xf=function(){var e=this,t=e._self._c;return t("div",{staticClass:"strand-item__load-more"},[t(g,{staticClass:"action-button",attrs:{block:"",text:"",outlined:"",loading:e.loading},on:{click:function(s){return e.$emit("click")}}},[t("span",{directives:[{name:"t",rawName:"v-t",value:e.label,expression:"label"}]}
56)])],1)},If=[],Cf=d(kf,xf,If,!1,null,null,null,null);const Af=Cf.exports,Tf={props:{event:Object,eventable:Object},computed:{headline(){const o=this.event.actor();return this.$t(rn(this.event,!0),{author:o.nameWithTitle(this.eventable.group()),username:o.username,key:this.event.model().key,title:an(this.event),polltype:this.$t(ln(this.event)).toLowerCase()})}}};var $f=function(){var e=this,t=e._self._c;return t("div",{staticClass:"strand-other-kind text-body-2"},[t("span",{staticClass:"text--secondary",domProps:{innerHTML:e._s(e.headline)}}),t(S,{staticClass:"text--secondary"}),t(oe,{staticClass:"text--secondary",attrs:{date:e.event.createdAt}}),t(pe,{staticClass:"thread-item__body",attrs:{model:e.eventable,column:"statement"}})],1)},Pf=[],Rf=d(Tf,$f,Pf,!1,null,null,null,null);const Sf=Rf.exports,Of={props:{eventId:Number},data(){return{show:!1,newComment:null}},created(){m.$on("toggle-reply",(o,e)=>{if(e===this.eventId)if(this.show)Ht.okToLeave(this.newComment)&&(this.show=!1);else{let t="";const s=o.author();s.id!==i.user().id&&(i.defaultFormat()==="html"?t=`<p><span class="mention" data-mention-id="${s.username}" label="${s.name}">@${s.nameOrUsername()}</span></p>`:t=`@${s.username} `),this.newComment=c.comments.build({bodyFormat:i.defaultFormat(),body:t,discussionId:o.discussion().id,authorId:i.user().id,parentId:o.id,parentType:Oa(o.constructor.singular)}),this.show=!0}})},destroyed(){}};var Ef=function(){var e=this,t=e._self._c;return e.show?t("div",{staticClass:"reply-form"},[t(on,{attrs:{comment:e.newComment,"avatar-size":"32",autofocus:""},on:{"comment-submitted":function(s){e.show=!1},"cancel-reply":function(s){e.show=!1}}})],1):e._e()},Df=[],Nf=d(Of,Ef,Df,!1,null,null,null,null);const Lf=Nf.exports,Vf={name:"strand-list",props:{loader:Object,newestFirst:Boolean,collection:{type:Array,required:!0}},components:{NewDiscussion:h_,NewComment:i_,PollCreated:Jh,StanceCreated:_n,StanceUpdated:pf,OutcomeCreated:gf,OtherKind:Sf,StrandLoadMore:Af,DiscussionEdited:b_,PollEdited:C_,StrandItemRemoved:hn,ReplyForm:Lf},computed:{directedCollection(){return this.newestFirst?this.collection.reverse():this.collection}},methods:{isFocused(o){return o.depth===1&&o.position===this.loader.focusAttrs.position||o.positionKey===this.loader.focusAttrs.positionKey||o.sequenceId===this.loader.focusAttrs.sequenceId||o.eventableType==="Comment"&&o.eventableId===this.loader.focusAttrs.commentId},positionKeyPrefix(o){return o.depth<1?o.positionKey.split("-").slice(0,o.depth-1):null},componentForKind(o){return ie(["stance_created","stance_updated","discussion_edited","new_comment","outcome_created","poll_created","poll_edited","new_discussion"].includes(o)?o:"other_kind")},classes(o){return o?["lmo-action-dock-wrapper",`positionKey-${o.positionKey}`,`sequenceId-${o.sequenceId}`,`position-${o.position}`]:[]}}};var Ff=function(){var e=this,t=e._self._c;return t("div",{staticClass:"strand-list"},e._l(e.directedCollection,function(s){return t("div",{key:s.event.id,staticClass:"strand-item",class:{"strand-item--deep":s.event.depth>1}},[!e.newestFirst&&s.missingEarlierCount?t("div",{staticClass:"strand-item__row"},[e._m(0,!0),t("strand-load-more",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{once:!0,callback:(n,a)=>n&&e.loader.autoLoadBefore(s)},expression:"{once: true, callback: (isVisible, entry) => isVisible && loader.autoLoadBefore(obj)}"}],attrs:{label:{path:"common.action.count_more",args:{count:s.missingEarlierCount}},loading:e.loader.loading=="before"+s.event.id},on:{click:function(n){return e.loader.loadBefore(s.event)}}})],1):e._e(),e.newestFirst&&s.missingAfterCount?t("div",{staticClass:"strand-item__row"},[e._m(1,!0),t("strand-load-more",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{once:!0,callback:(n,a)=>n&&e.loader.autoLoadAfter(s)},expression:"{once: true, callback: (isVisible, entry) => isVisible && loader.autoLoadAfter(obj)}"}],attrs:{label:{path:"common.action.count_more",args:{count:s.missingAfterCount}},loading:e.loader.loading=="after"+s.event.id},on:{click:function(n){return e.loader.loadAfter(s.event)}}}
56)],1):e._e(),e.loader.collapsed[s.event.id]?e._e():t("div",{staticClass:"strand-item__row"},[s.event.depth>0?t("div",{staticClass:"strand-item__gutter"},[t("div",{staticClass:"d-flex justify-center"},[e.loader.discussion.forkedEventIds.length?t(Pe,{staticClass:"thread-item__is-forking",attrs:{disabled:s.event.forkingDisabled()},on:{change:function(n){return s.event.toggleForking()}},model:{value:s.event.isForking(),callback:function(n){e.$set(s.event,"isForking()",n)},expression:"obj.event.isForking()"}}):[t(Q,{attrs:{user:s.event.actor(),size:s.event.depth>1?28:32,"no-link":""}})]],2),t("div",{staticClass:"strand-item__stem-wrapper",on:{click:function(n){return n.stopPropagation(),e.loader.collapse(s.event)}}},[t("div",{staticClass:"strand-item__stem",class:{"strand-item__stem--unread":s.isUnread,"strand-item__stem--focused":e.isFocused(s.event)}})])]):e._e(),t("div",{staticClass:"strand-item__main",staticStyle:{overflow:"hidden"}},[t("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:(n,a)=>e.loader.setVisible(n,s.event)},expression:"{callback: (isVisible, entry) => loader.setVisible(isVisible, obj.event)}"}],class:e.classes(s.event)},[s.eventable&&s.eventable.discardedAt?t(hn,{attrs:{event:s.event,eventable:s.eventable}}):t(e.componentForKind(s.event.kind),{tag:"component",attrs:{event:s.event,eventable:s.eventable}})],1),s.event.childCount&&(!s.eventable.isA("stance")||s.eventable.poll().showResults())?t("div",{staticClass:"strand-list__children"},[s.children.length==0?t("strand-load-more",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{once:!0,callback:(n,a)=>n&&e.loader.loadAfter(s.event)},expression:"{once: true, callback: (isVisible, entry) => isVisible && loader.loadAfter(obj.event)}"}],attrs:{label:{path:"common.action.count_more",args:{count:s.missingChildCount}},loading:e.loader.loading=="children"+s.event.id},on:{click:function(n){return e.loader.loadAfter(s.event)}}}):e._e(),t(fn,{staticClass:"flex-grow-1",attrs:{loader:e.loader,collection:s.children,"newest-first":s.event.kind=="new_discussion"&&e.loader.discussion.newestFirst}})],1):e._e(),t("reply-form",{attrs:{eventId:s.event.id}})],1)]),e.loader.collapsed[s.event.id]?t("div",{staticClass:"strand-item__row"},[t("div",{staticClass:"d-flex align-center"},[e.loader.collapsed[s.event.id]?t("div",{staticClass:"strand-item__circle mr-2",on:{click:function(n){return n.stopPropagation(),e.loader.expand(s.event)}}},[t(h,{attrs:{name:"mdi-unfold-more-horizontal"}})],1):e._e(),t(ze,{staticClass:"text--secondary",attrs:{event:s.event,eventable:s.eventable,collapsed:""}})],1)]):e._e(),e.newestFirst&&s.missingEarlierCount?t("div",{staticClass:"strand-item__row"},[t("strand-load-more",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{once:!0,callback:(n,a)=>n&&e.loader.autoLoadBefore(s)},expression:"{once: true, callback: (isVisible, entry) => isVisible && loader.autoLoadBefore(obj)}"}],attrs:{label:{path:"common.action.count_more",args:{count:s.missingEarlierCount}},loading:e.loader.loading=="before"+s.event.id},on:{click:function(n){return e.loader.loadBefore(s.event)}}})],1):e._e(),!e.newestFirst&&s.missingAfterCount?t("div",{staticClass:"strand-item__row"},[t("strand-load-more",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{once:!0,callback:(n,a)=>n&&e.loader.autoLoadAfter(s)},expression:"{once: true, callback: (isVisible, entry) => isVisible && loader.autoLoadAfter(obj)}"}],attrs:{label:{path:"common.action.count_more",args:{count:s.missingAfterCount}},loading:e.loader.loading=="after"+s.event.id},on:{click:function(n){return e.loader.loadAfter(s.event)}}})],1):e._e()])}),0)},Mf=[function(){var o=this,e=o._self._c;return e("div",{staticClass:"strand-item__gutter"},[e("div",{staticClass:"strand-item__stem-wrapper"},[e("div",{staticClass:"strand-item__stem strand-item__stem--broken"})])])},function(){var o=this,e=o._self._c;return e("div",{staticClass:"strand-item__gutter"},[e("div",{staticClass:"strand-item__stem-wrapper"},[e("div",{staticClass:"strand-item__stem strand-item__stem--broken"})])])}],qf=d(Vf,Ff,Mf,!1,null,null,null,null);const fn=qf.exports;var jf=function(){var e=this,t=e._self._c;return t(Fe,{staticClass:"strand-card thread-card mb-8"},[t(fn,{staticClass:"pt-3 pr-1 pr-sm-3 px-sm-2",attrs:{loader:e.loader,collection:e.loader.collection}}),e.discussion.newestFirst?e._e():t("strand-actions-panel",{attrs:{discussion:e.discussion}})],1)},Uf=[],zf=d(Gm,jf,Uf,!1,null,null,null,null);const Bf=zf.exports,Hf={props:{discussion:Object},data(){return{mdiCallSplit:Is}},methods:{openMoveCommentsModal(){f({component:"MoveCommentsModal",props:{discussion:this.discussion}})}},computed:{styles(){const{bar:o,top:e}=this.$vuetify.application;return{display:"flex",position:"sticky",top:`${o+e}px`,zIndex:1}}}};var Wf=function(){var e=this,t=e._self._c;
56return e.discussion.forkedEventIds.length?t(Ns,{staticClass:"discussion-fork-actions",style:e.styles,attrs:{"single-line":"",sticky:"",elevation:4,icon:e.mdiCallSplit,color:"primary"},scopedSlots:e._u([{key:"actions",fn:function(){return[t(g,{directives:[{name:"t",rawName:"v-t",value:"discussion_fork_actions.move",expression:"'discussion_fork_actions.move'"}],attrs:{color:"primary"},on:{click:function(s){return e.openMoveCommentsModal()}}}),t(g,{attrs:{icon:""},on:{click:function(s){e.discussion.forkedEventIds=[]}}},[t(h,{attrs:{name:"mdi-close"}})],1)]},proxy:!0}],null,!1,467238101)},[t("span",{directives:[{name:"t",rawName:"v-t",value:"discussion_fork_actions.helptext",expression:"'discussion_fork_actions.helptext'"}]})]):e._e()},Gf=[],Yf=d(Hf,Wf,Gf,!1,null,null,null,null);const Kf=Yf.exports,Zf={props:{discussion:Object},data(){return{poll:null}},created(){this.watchRecords({collections:["polls","stances"],query:o=>{this.poll=_o(this.discussion.activePolls().filter(e=>e.pollOptionNames.length),e=>e.closingAt&&_.canParticipateInPoll(e)&&!e.iHaveVoted())}})},computed:{styles(){const{bar:o,top:e}=this.$vuetify.application;return{display:"flex",position:"sticky",top:`${o+e}px`,zIndex:1}},event(){return this.poll&&this.poll.createdEvent()}}};var Jf=function(){var e=this,t=e._self._c;return e.event&&e.$route.params.sequence_id!=e.event.sequenceId?t(ve,{staticClass:"current-poll-banner mb-4 py-2 px-4 lmo-no-print",style:e.styles,attrs:{elevation:3,"aria-label":e.$t("thread_context.current_poll_type_banner",{pollType:e.poll.translatedPollType()})}},[t(ce,{staticClass:"mr-4",attrs:{size:32,tile:""}},[t(Co,{attrs:{poll:e.poll,size:32}})],1),t("div",{staticClass:"current-poll-banner__title mr-4"},[t("span",[e._v(e._s(e.poll.title))])]),t(U),t(g,{directives:[{name:"t",rawName:"v-t",value:"common.view",expression:"'common.view'"}],attrs:{color:"primary",to:e.urlFor(e.event)}})],1):e._e()},Qf=[],Xf=d(Zf,Jf,Qf,!1,null,null,null,null);const eg=Xf.exports;var tg=function(){var e=this,t=e._self._c;return t("div",{staticClass:"strand-page"},[t(qt,[e.discussion?t(jt,{staticClass:"max-width-800 px-0 px-sm-3"},[t(eg,{attrs:{discussion:e.discussion}}),t(Kf,{key:"fork-actions"+e.discussion.id,attrs:{discussion:e.discussion}}),e.loader&&e.loader.firstLoad?t(Bf,{attrs:{loader:e.loader}}):e._e()],1):e._e()],1),e.loader?t(Yu,{key:e.discussion.id,attrs:{discussion:e.discussion,loader:e.loader}}):e._e()],1)},og=[],sg=d(zu,tg,og,!1,null,null,null,null);const ng=sg.exports,ls=Ut.prototype.push;Ut.prototype.push=function(e,t,s){return t||s?ls.call(this,e,t,s):ls.call(this,e).catch(n=>n)};const ig=()=>r(()=>import("./page-eoeb-zm9.js"),__vite__mapDeps([106,1,2]),import.meta.url),rg=()=>r(()=>import("./page-6-4LXmA5.js"),__vite__mapDeps([107,1,2]),import.meta.url),ag=()=>r(()=>import("./page-PIz4rA1f.js"),__vite__mapDeps([108,109,1,2,110]),import.meta.url),lg=()=>r(()=>import("./show_page-45Cxrc-D.js"),__vite__mapDeps([111,1,2,112,113]),import.meta.url),cs=()=>r(()=>import("./form_page-wZRCMy4_.js"),__vite__mapDeps([114,1,2]),import.meta.url),ds=()=>r(()=>import("./form_page-qI5WjfXx.js"),__vite__mapDeps([115,116,1,2,117]),import.meta.url),cg=()=>r(()=>import("./page-gahIKD_P.js"),__vite__mapDeps([118,1,2]),import.meta.url),dg=()=>r(()=>import("./discussions_panel-Q21LQ67j.js"),__vite__mapDeps([119,112,1,2,120]),import.meta.url),ug=()=>r(()=>import("./polls_panel-_6PZeptF.js"),__vite__mapDeps([121,112,1,2]),import.meta.url),pg=()=>r(()=>import("./emails_panel-1gM5hF8j.js"),__vite__mapDeps([122,1,2]),import.meta.url),mg=()=>r(()=>import("./members_panel-v9-VLjoh.js"),__vite__mapDeps([123,1,2]),import.meta.url),_g=()=>r(()=>import("./tags_panel-GobRJJya.js"),__vite__mapDeps([124,1,2]),import.meta.url),hg=()=>r(()=>import("./subgroups_panel--0-eZSJ5.js"),__vite__mapDeps([125,1,2]),import.meta.url),fg=()=>r(()=>import("./files_panel--IYhbozp.js"),__vite__mapDeps([126,1,2]),import.meta.url),gg=()=>r(()=>import("./requests_panel-pNYuKnhz.js"),__vite__mapDeps([127,1,2]),import.meta.url),vg=()=>r(()=>import("./page-gVD6tC4A.js"),__vite__mapDeps([128,129,1,2,117]),import.meta.url),yg=()=>r(()=>import("./page-jaCPMfyj.js"),__vite__mapDeps([130,1,2]),import.meta.url),bg=()=>r(()=>import("./page-kV_MfPEF.js"),__vite__mapDeps([131,132,117,1,2,109]),import.meta.url),us=()=>r(()=>import("./form_page-gWwTvP6-.js"),__vite__mapDeps([133,134,1,2,117]),import.meta.url),ps=()=>r(()=>import("./form_page-Zrs_Psuw.js"),__vite__mapDeps([135,1,2]),import.meta.url),wg=()=>r(()=>import("./index_page-M4KnDhcR.js"),__vite__mapDeps([136,1,2]),import.meta.url),kg=()=>r(()=>import("./browse_page-cNRY9ygo.js"),__vite__mapDeps([137,1,2]),import.meta.url),xg=()=>r(()=>import("./page-2OEtXe_-.js"),__vite__mapDeps([138,1,2]),import.meta.url),Ig=()=>r(()=>import("./page-GXjeSvqW.js"),__vite__mapDeps([139,1,2]),import.meta.url),Cg=()=>r(()=>import("./index-zhjq7QRv.js"),__vite__mapDeps([140,1,2]),import.meta.url);T.use(Ut);const ms=[{path:"tags/:tag?",component:_g,meta:{noScroll:!0}},{path:"emails",component:pg,meta:{noScroll:!0}},{path:"polls",component:ug,meta:{noScroll:!0}},{path:"members",component:mg,meta:{noScroll:!0}},{path:"membership_requests",component:gg,meta:{noScroll:!0}},{path:"members/requests",redirect:"membership_requests",meta:{noScroll:!0}},{path:"subgroups",component:hg,meta:{noScroll:!0}},{path:"files",component:fg,meta:{noScroll:!0}},{path:":stub?",component:dg,meta:{noScroll:!0}}
56],Wt=new Ut({mode:"history",scrollBehavior(o,e,t){return t||(o.meta.noScroll&&e.meta.noScroll?window.scrollHeight:{x:0,y:0})},routes:[{path:"/demo",component:Cg},{path:"/try",redirect:"/g/new"},{path:"/users/sign_in",redirect:"/dashboard"},{path:"/users/sign_up",redirect:"/dashboard"},{path:"/tasks",component:cg},{path:"/dashboard",component:ns},{path:"/dashboard/:filter",component:ns},{path:"/threads/direct",component:Ig},{path:"/inbox",component:ig},{path:"/explore",component:rg},{path:"/profile",component:ag},{path:"/contact",component:yg},{path:"/email_preferences",component:bg},{path:"/p/:key/edit",component:cs},{path:"/p/new",component:cs},{path:"/p/:key/:stub?",component:lg},{path:"/poll_templates/new",component:ds},{path:"/poll_templates/:id/edit",component:ds},{path:"/u/:key/:stub?",component:xg},{path:"/d/new",component:us},{path:"/d/:key/edit",component:us},{path:"/thread_templates/browse",component:kg},{path:"/thread_templates/new",component:ps},{path:"/thread_templates/:id",component:ps},{path:"/thread_templates",component:wg},{path:"/d/:key",component:ng,children:[{path:"comment/:comment_id"},{path:":stub?/:sequence_id?"},{path:""}]},{path:"/g/new",component:vg},{path:"/g/:key",component:rs,children:ms,name:"groupKey"},{path:"/:key",component:rs,children:ms},{path:"/",redirect:"/dashboard"}]});Wt.beforeEach(function(o,e,t){return Ht.okToLeave()?t():t(!1)});Wt.afterEach(()=>Ht.clear());const Kt={};let be=null;var Ag=function(){const o=[p.theme.channels_uri,"records"].join("/");return be=Ea(o,{query:{channel_token:p.channel_token}}),be.on("update",e=>{e.notice?m.$emit("systemNotice",e):(Kt[e.room]=e.score,c.importJSON(e.records))}),be.on("reconnect",e=>{console.log("socket.io reconnect",{roomScores:Kt}),be.emit("catchup",Kt,t=>{console.log("catchup reply",t),t.forEach(s=>c.importJSON(s))})}),be.on("disconnect",e=>{console.log("socket.io disconnect")}),be.on("connect",e=>{console.log("socket.io connect")})},Tg=()=>be.close();const $g={mixins:[Bt],data(){return{pageError:null}},created(){return this.$route.query.locale&&i.updateLocale(this.$route.query.locale),i.user().experiences.darkMode!=null?this.$vuetify.theme.dark=i.user().experiences.darkMode:this.$vuetify.theme.dark=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,k(p.theme.vuetify,(o,e)=>(o&&(this.$vuetify.theme.themes.light[e]=o),o&&(this.$vuetify.theme.themes.dark[e]=o),!0))},mounted(){Ag(),!i.isSignedIn()&&this.shouldForceSignIn()&&this.openAuthModal(!0),m.$on("currentComponent",this.setCurrentComponent),m.$on("openAuthModal",()=>this.openAuthModal()),m.$on("pageError",o=>this.pageError=o),m.$on("signedIn",()=>this.pageError=null),m.$on("VueForceUpdate",()=>{this.$nextTick(()=>{this.$forceUpdate()})}),p.flash.notice&&y.success(p.flash.notice)},destroyed(){return Tg()},watch:{$route(){return this.pageError=null}},methods:{setCurrentComponent(o){this.pageError=null;const e=mo(o.title||this.$t(o.titleKey),{length:300});return document.querySelector("title").text=E([e,p.theme.site_name]).join(" | "),p.currentGroup=o.group,p.currentDiscussion=o.discussion,p.currentPoll=o.poll},shouldForceSignIn(o={}){if(this.$route.query.sign_in||(p.pendingIdentity||{}).identity_type!=null)return!0;if(i.isSignedIn())return!1;switch(this.$route.path){case"/email_preferences":return i.user().restricted==null;case"/dashboard":case"/inbox":case"/profile":case"/polls":case"/p/new":case"/g/new":return!0}}}},Pg={data(){return{flash:{},isOpen:!1,message:"",seconds:0,timer:null}},created(){m.$on("flashMessage",o=>{this.flash=o,this.isOpen=!0,this.timer=window.setInterval(()=>{this.seconds+=3},1e3)})},destroyed(){clearInterval(timer)}};var Rg=function(){var e=this,t=e._self._c;return t(Da,{staticClass:"flash-root",attrs:{top:"",color:e.flash.level=="success"?"primary":e.flash.level,timeout:e.flash.duration},model:{value:e.isOpen,callback:function(s){e.isOpen=s},expression:"isOpen"}},[e.flash.message?t("span",{directives:[{name:"t",rawName:"v-t",value:{path:e.flash.message,args:e.flash.options},expression:"{path: flash.message, args: flash.options}"}],staticClass:"flash-root__message",attrs:{role:"status","aria-live":"assertive"}}
56):e._e(),e.flash.text?t("span",{staticClass:"flash-root__message",attrs:{role:"status","aria-live":"assertive"}}):e._e(),e.flash.level=="wait"?t(Na,{staticClass:"mt-2",attrs:{value:e.seconds}}):e._e(),e.flash.actionFn?t("div",{staticClass:"flash-root__action"},[t("a",{directives:[{name:"t",rawName:"v-t",value:e.flash.action,expression:"flash.action"}],on:{click:function(s){return e.flash.actionFn()}}})]):e._e()],1)},Sg=[],Og=d(Pg,Rg,Sg,!1,null,null,null,null);const Eg=Og.exports,Dg={components:{GroupForm:()=>r(()=>import("./form-eVO1C5QK.js"),__vite__mapDeps([141,1,2,117,142]),import.meta.url),DiscussionForm:()=>r(()=>import("./form-XQ6r6duB.js"),__vite__mapDeps([134,1,2,117]),import.meta.url),EditCommentForm:()=>r(()=>import("./edit_comment_form-oL671qJw.js"),__vite__mapDeps([143,117,1,2]),import.meta.url),ConfirmModal:()=>r(()=>import("./confirm_modal-lYKikQwC.js"),__vite__mapDeps([144,117,1,2]),import.meta.url),InfoModal:()=>r(()=>import("./info_modal-kVYn-gV7.js"),__vite__mapDeps([145,117,1,2]),import.meta.url),ArrangementForm:()=>r(()=>import("./arrangement_form-Do_WssbJ.js"),__vite__mapDeps([146,117,1,2]),import.meta.url),ChangeVolumeForm:()=>r(()=>import("./change_volume_form-qaZ0sMAO.js").then(o=>o.c),__vite__mapDeps([132,117,1,2]),import.meta.url),PollCommonModal:()=>r(()=>import("./modal-u4QtZLl1.js"),__vite__mapDeps([147,117,1,2]),import.meta.url),PollCommonEditVoteModal:()=>r(()=>import("./edit_vote_modal-GgrO6XE6.js"),__vite__mapDeps([148,117,1,2]),import.meta.url),ContactRequestForm:()=>r(()=>import("./request_form-rXv7Ltg7.js"),__vite__mapDeps([149,117,1,2]),import.meta.url),AuthModal:()=>r(()=>import("./modal-SmGzzeKQ.js"),__vite__mapDeps([150,1,2,117,151]),import.meta.url),MembershipRequestForm:()=>r(()=>import("./membership_request_form-LZL1Ar58.js"),__vite__mapDeps([152,117,1,2]),import.meta.url),MembershipModal:()=>r(()=>import("./membership_modal-6d5zSU5a.js"),__vite__mapDeps([153,117,1,2]),import.meta.url),EmailToGroupSettings:()=>r(()=>import("./email_to_group_settings-9tiZ7bLy.js"),__vite__mapDeps([154,1,2,117]),import.meta.url),MemberEmailAliasModal:()=>r(()=>import("./member_email_alias_modal-sFCropGV.js"),__vite__mapDeps([155,1,2,117]),import.meta.url),ChangePasswordForm:()=>r(()=>import("./change_password_form-9aEgoleJ.js"),__vite__mapDeps([156,117,1,2]),import.meta.url),ChatbotList:()=>r(()=>import("./list-WINnn4O9.js"),__vite__mapDeps([157,117,1,2]),import.meta.url),ChatbotMatrixForm:()=>r(()=>import("./matrix_form-odk4I1xP.js"),__vite__mapDeps([158,117,1,2]),import.meta.url),ChatbotWebhookForm:()=>r(()=>import("./webhook_form-Kv4BFHhV.js"),__vite__mapDeps([159,117,1,2]),import.meta.url),PollCommonOutcomeModal:()=>r(()=>import("./outcome_modal-_FYme6eu.js"),__vite__mapDeps([160,1,2,117]),import.meta.url),PollCommonReopenModal:()=>r(()=>import("./reopen_modal-SCQ69gzA.js"),__vite__mapDeps([161,1,2,117]),import.meta.url),PollOptionForm:()=>r(()=>import("./poll_option_form-CFYx262w.js"),__vite__mapDeps([162,117,1,2]),import.meta.url),PollTemplateForm:()=>r(()=>import("./form-xIQbHc5O.js"),__vite__mapDeps([116,1,2,117]),import.meta.url),MoveThreadForm:()=>r(()=>import("./move_thread_form-VaekqAWQ.js"),__vite__mapDeps([163,1,2,117]),import.meta.url),PollCommonMoveForm:()=>r(()=>import("./move_form-hdPXc1CZ.js"),__vite__mapDeps([164,117,1,2]),import.meta.url),RevisionHistoryModal:()=>r(()=>import("./modal-eZwjzEjD.js"),__vite__mapDeps([165,1,2,117,166]),import.meta.url),TagsSelect:()=>r(()=>import("./select-wmhlQGRq.js"),__vite__mapDeps([167,1,2,117]),import.meta.url),TagsModal:()=>r(()=>import("./modal-HR7Okfu3.js"),__vite__mapDeps([168,117,1,2,169]),import.meta.url),ChangePictureForm:()=>r(()=>import("./change_picture_form-EolwaubQ.js"),__vite__mapDeps([170,1,2,117]),import.meta.url),GroupNewForm:()=>r(()=>import("./new_form-W4Myd9Gd.js"),__vite__mapDeps([129,1,2,117]),import.meta.url),PinEventForm:()=>r(()=>import("./pin_event_form-jylrCaJr.js"),__vite__mapDeps([171,117,1,2]),import.meta.url),MoveCommentsModal:()=>r(()=>import("./move_comments_modal-9KivZ5uF.js"),__vite__mapDeps([172,1,2,117]),import.meta.url),ExportDataModal:()=>r(()=>
56import("./export_data_modal-UC0o8_FN.js"),__vite__mapDeps([173,117,1,2]),import.meta.url),AddPollToThreadModal:()=>r(()=>import("./add_to_thread_modal-9dIXvTGF.js"),__vite__mapDeps([174,1,2,117]),import.meta.url),StrandMembersList:()=>r(()=>import("./members_list-FUtt3EJa.js"),__vite__mapDeps([175,1,2,117]),import.meta.url),SeenByModal:()=>r(()=>import("./seen_by_modal-Q7BXRVQd.js"),__vite__mapDeps([176,1,2,117]),import.meta.url),PollMembers:()=>r(()=>import("./members--8p1zT8F.js"),__vite__mapDeps([177,1,2,117]),import.meta.url),PollReminderForm:()=>r(()=>import("./reminder_form-zNgxxCJc.js"),__vite__mapDeps([178,117,1,2]),import.meta.url),GroupInvitationForm:()=>r(()=>import("./invitation_form-1xwhiAmq.js"),__vite__mapDeps([179,1,2,117,180]),import.meta.url),AnnouncementHistory:()=>r(()=>import("./announcement_history-hljIGgXF.js"),__vite__mapDeps([181,117,1,2]),import.meta.url),SearchModal:()=>r(()=>import("./modal-TZL8kYRA.js"),__vite__mapDeps([182,1,2]),import.meta.url),UserNameModal:()=>r(()=>import("./user_name_modal-iexUuLHo.js"),__vite__mapDeps([183,117,1,2]),import.meta.url),RecordVideoModal:()=>r(()=>import("./record_video_modal-GWVU1vnh.js"),__vite__mapDeps([184,1,2]),import.meta.url),RecordAudioModal:()=>r(()=>import("./record_audio_modal-n_J7--pc.js"),__vite__mapDeps([185,1,2]),import.meta.url)},data(){return{isOpen:!1,componentName:"",componentProps:{},componentKey:"defaultKey",maxWidth:null,persistent:!0}},created(){m.$on("openModal",this.openModal),m.$on("closeModal",this.closeModal)},destroyed(){m.$off("openModal",this.openModal),m.$off("closeModal",this.closeModal)},methods:{openModal(o){return o.hasOwnProperty("persistent")&&(this.persistent=o.persistent),this.maxWidth=o.maxWidth||720,this.componentName=o.component,this.componentProps=o.props,this.componentKey=new Date().getTime(),this.isOpen=!0,setTimeout(()=>{this.$refs.modalLauncher&&document.querySelector(".modal-launcher h1")&&document.querySelector(".modal-launcher h1").focus()})},closeModal(){this.isOpen&&(this.componentProps||{}).close?this.componentProps.close():this.isOpen=!1}}};var Ng=function(){var e=this,t=e._self._c;return t(La,{ref:"modalLauncher",staticClass:"modal-launcher",attrs:{"max-width":e.maxWidth,persistent:e.persistent,fullscreen:e.$vuetify.breakpoint.xs},model:{value:e.isOpen,callback:function(s){e.isOpen=s},expression:"isOpen"}},[e.isOpen?t(ve,[t(e.componentName,e._b({key:e.componentKey,tag:"component",attrs:{close:e.closeModal}},"component",e.componentProps,!1))],1):e._e()],1)},Lg=[],Vg=d(Dg,Ng,Lg,!1,null,null,null,null);const Fg=Vg.exports,Mg={data(){return{privacyUrl:p.theme.privacy_url,helpUrl:p.theme.help_url,termsUrl:p.theme.terms_url,hostname:p.theme.canonical_host,poweredUrl:`https://www.loomio.com?utm_source=${p.theme.canonical_host}&utm_campaign=appfooter`}}};var qg=function(){var e=this,t=e._self._c;return t(Va,[t(ne,{attrs:{"justify-space-around":""}},[t("div",{staticClass:"powered-by text-caption"},[t("a",{directives:[{name:"t",rawName:"v-t",value:"powered_by.powered_by_loomio",expression:"'powered_by.powered_by_loomio'"}],attrs:{href:e.poweredUrl,target:"_blank"}}),e.privacyUrl?t("span",[e._v("Â "),t(S),e._v("Â "),t("a",{directives:[{name:"t",rawName:"v-t",value:"powered_by.privacy_policy",expression:"'powered_by.privacy_policy'"}],attrs:{href:e.privacyUrl,target:"_blank"}})],1):e._e(),e.termsUrl?t("span",[e._v("Â "),t(S),e._v("Â "),t("a",{directives:[{name:"t",rawName:"v-t",value:"powered_by.terms_of_service",expression:"'powered_by.terms_of_service'"}],attrs:{href:e.termsUrl,target:"_blank"}})],1):e._e(),e.helpUrl?t("span",[e._v("Â "),t(S),e._v("Â "),t("a",{directives:[{name:"t",rawName:"v-t",value:"common.help",expression:"'common.help'"}],attrs:{href:e.helpUrl,target:"_blank"}})],1):e._e()])])],1)},jg=[],Ug=d(Mg,qg,jg,!1,null,null,null,null);const zg=Ug.exports,Bg={props:["error"]};var Hg=function(){var e=this,t=e._self._c;return t(qt,{staticClass:"pb-12"},[t(jt,[t("div",{staticClass:"error-page text-center"},[e.error.status==403?t("div",{directives:[{name:"t",rawName:"v-t",value:"error_page.forbidden_view",expression:"'error_page.forbidden_view'"}],staticClass:"error-page__forbidden"}):e._e(),e.error.status==404?t("div",{directives:[{name:"t",rawName:"v-t",value:"error_page.page_not_found",expression:"'error_page.page_not_found'"}],staticClass:"error-page__page-not-found"}):e._e(),e.error.status==500?t("div",{directives:[{name:"t",rawName:"v-t",value:"error_page.internal_server_error",expression:"'error_page.internal_server_error'"}],staticClass:"error-page__internal-server-error"}
56):e._e()])])],1)},Wg=[],Gg=d(Bg,Hg,Wg,!1,null,null,null,null);const Yg=Gg.exports;var Zt;const _s=new(Zt=class{load(e){return e==null&&(e={}),c.discussions.fetchInbox(e).then(()=>this.loaded=!0)}unreadCount(){return this.loaded?this.query().length:"..."}query(){return Wl({filters:this.constructor.filters})}},l(Zt,"filters",["only_threads_in_my_groups","show_unread","show_recent","hide_muted","hide_dismissed"]),Zt);let He=null;const lo=new class{boot(){if(p.plausible_site){const e=new URL(p.plausible_src);return He=Fa({domain:p.plausible_site,apiHost:e.origin,trackLocalhost:!0})}}trackPageview(){if(He)return He.trackPageview()}trackEvent(e){if(He)return He.trackEvent(e)}},Kg={data(){return{organization:null,open:!1,group:null,version:p.version,tree:[],myGroups:[],otherGroups:[],organizations:[],unreadCounts:{},expandedGroupIds:[],openGroups:[],unreadDirectThreadsCount:0}},created(){if(m.$on("toggleSidebar",()=>this.open=!this.open),m.$on("currentComponent",o=>{this.group=o.group,this.group?(this.organization=o.group.parentOrSelf(),this.expandedGroupIds=[this.organization.id]):this.organization=null}),this.watchRecords({collections:["groups","memberships","discussions"],query:o=>{this.unreadDirectThreadsCount=c.discussions.collection.chain().find({groupId:null}).where(e=>e.isUnread()).data().length,this.updateGroups()}}),m.$on("signedIn",o=>{this.fetchData(),this.openIfPinned()}),i.isSignedIn())return this.fetchData()},mounted(){this.openIfPinned()},watch:{organization:"updateGroups",open(o){m.$emit("sidebarOpen",o)}},methods:{explainNewThreadRemoved(){m.$emit("openModal",{component:"InfoModal",persistent:!1,maxWidth:900,props:{bodyPath:"sidebar.new_thread_removed_body",titlePath:"sidebar.new_thread_removed"}})},memberGroups(o){return o.subgroups().filter(e=>!e.archivedAt&&e.membershipFor(i.user()))},openIfPinned(){this.open=!!i.isSignedIn()&&!!i.user().experiences.sidebar&&this.$vuetify.breakpoint.lgAndUp},fetchData(){c.users.findOrFetchGroups().then(()=>{this.$router.history.current.path==="/dashboard"&&i.user().groups().length===1&&this.$router.replace(`/g/${i.user().groups()[0].key}`),this.$router.history.current.path==="/dashboard"&&i.user().groups().length===0&&this.$router.replace("/g/new")}),_s.load()},goToGroup(o){this.$router.push(this.urlFor(o))},updateGroups(){this.organizations=E(i.user().parentGroups().concat(i.user().orphanParents()))||[],this.openCounts={},this.closedCounts={},this.openGroups=[],i.user().groups().forEach(o=>{this.openCounts[o.id]=o.discussions().filter(e=>e.isUnread()).length}),i.user().parentGroups().forEach(o=>{this.organization&&this.organization.id===o.parentOrSelf().id&&(this.openGroups[o.id]=!0),this.closedCounts[o.id]=this.openCounts[o.id]+dt(b(this.memberGroups(o),e=>this.openCounts[e.id]))})},unreadThreadCount(){return _s.unreadCount()},canViewPublicGroups(){return _.canViewPublicGroups()},setProfilePicture(){m.$emit("openModal",{component:"ChangePictureForm"})},startOrFindDemo(){let o;if(o=i.user().parentGroups().find(e=>e.subscription.plan=="demo")){y.success("templates.login_to_start_demo");let e=this.urlFor(o);this.$route.path!=e&&this.$router.replace(e)}else lo.trackEvent("start_demo"),y.wait("templates.generating_demo"),c.post({path:"demos/clone"}).then(e=>{y.success("templates.demo_created"),this.$router.push(this.urlFor(c.groups.find(e.groups[0].id)))})}},computed:{helpURL(){return`https://help.loomio.com/en/?utm_source=${new URL(p.baseUrl).host}`},isSignedIn(){return i.isSignedIn()},showHelp(){return p.features.app.help_link},user(){return i.user()},activeGroup(){return this.group?[this.group.id]:[]},logoUrl(){return p.theme.app_logo_src},showContact(){return p.features.app.show_contact},canStartGroups(){return _.canStartGroups()},canStartDemo(){return p.features.app.demos},showTemplateGallery(){return p.features.app.template_gallery},showExploreGroups(){return p.features.app.explore_public_groups},needProfilePicture(){return i.isSignedIn()&&this.user&&!this.user.avatarUrl&&!this.user.hasExperienced("changePicture")}}},Zg={methods:{togglePinned(){return this.user.experiences.sidebar?c.users.saveExperience("sidebar",!1):c.users.saveExperience("sidebar",!0)},toggleDark(){return this.isDark?(c.users.saveExperience("darkMode",!1),this.$vuetify.theme.dark=!1):(c.users.saveExperience("darkMode",!0),this.$vuetify.theme.dark=!0)}
56,defaultDark(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches},signOut(){return i.signOut()}},computed:{isDark(){return this.$vuetify.theme.dark},version(){return p.version},release(){return p.release},siteName(){return p.theme.site_name},user(){return i.user()}}};var Jg=function(){var e=this,t=e._self._c;return t("div",{staticClass:"user-dropdown"},[e.user.experiences.sidebar?e._e():t(w,{attrs:{dense:""},on:{click:e.togglePinned}},[t(v,{directives:[{name:"t",rawName:"v-t",value:"user_dropdown.pin_sidebar",expression:"'user_dropdown.pin_sidebar'"}]}),t(O,[t(h,{attrs:{name:"mdi-pin"}})],1)],1),e.user.experiences.sidebar?t(w,{attrs:{dense:""},on:{click:e.togglePinned}},[t(v,{directives:[{name:"t",rawName:"v-t",value:"user_dropdown.unpin_sidebar",expression:"'user_dropdown.unpin_sidebar'"}]}),t(O,[t(h,{attrs:{name:"mdi-pin-off"}})],1)],1):e._e(),t(w,{staticClass:"user-dropdown__list-item-button--profile",attrs:{to:"/profile",dense:""}},[t(v,{directives:[{name:"t",rawName:"v-t",value:"user_dropdown.edit_profile",expression:"'user_dropdown.edit_profile'"}]}),t(O,[t(h,{attrs:{name:"mdi-account"}})],1)],1),t(w,{staticClass:"user-dropdown__list-item-button--email-settings",attrs:{to:"/email_preferences",dense:""}},[t(v,{directives:[{name:"t",rawName:"v-t",value:"user_dropdown.email_settings",expression:"'user_dropdown.email_settings'"}]}),t(O,[t(h,{attrs:{name:"mdi-cog-outline"}})],1)],1),e.isDark?e._e():t(w,{attrs:{dense:""},on:{click:e.toggleDark}},[t(v,{directives:[{name:"t",rawName:"v-t",value:"user_dropdown.enable_dark_mode",expression:"'user_dropdown.enable_dark_mode'"}]}),t(O,[t(h,{attrs:{name:"mdi-weather-night"}})],1)],1),e.isDark?t(w,{attrs:{dense:""},on:{click:e.toggleDark}},[t(v,{directives:[{name:"t",rawName:"v-t",value:"user_dropdown.disable_dark_mode",expression:"'user_dropdown.disable_dark_mode'"}]}),t(O,[t(h,{attrs:{name:"mdi-white-balance-sunny"}})],1)],1):e._e(),t(w,{attrs:{dense:""},on:{click:function(s){return e.signOut()}}},[t(v,{directives:[{name:"t",rawName:"v-t",value:"user_dropdown.sign_out",expression:"'user_dropdown.sign_out'"}]}),t(O,[t(h,{attrs:{name:"mdi-exit-to-app"}})],1)],1),t(w,{attrs:{href:"https://github.com/loomio/loomio/releases",target:"_blank",dense:"",title:e.release}},[t(v,{staticClass:"text--secondary"},[t("span",{directives:[{name:"t",rawName:"v-t",value:"common.version",expression:"'common.version'"}]}),t(P),t("span",[e._v(e._s(e.version))])],1)],1)],1)},Qg=[],Xg=d(Zg,Jg,Qg,!1,null,null,null,null);const ev=Xg.exports;var tv=function(){var e=this,t=e._self._c;return t(Ss,{staticClass:"sidenav-left lmo-no-print",attrs:{app:""},scopedSlots:e._u([{key:"prepend",fn:function(){},proxy:!0},{key:"append",fn:function(){return[t(ne,{staticClass:"mx-10 my-2",staticStyle:{"max-height":"64px"},attrs:{column:"","align-center":""}},[t(xt,{attrs:{src:e.logoUrl}})],1)]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Uo,{staticClass:"sidebar__user-dropdown",scopedSlots:e._u([{key:"activator",fn:function(){return[t(O,{staticClass:"mr-2"},[t(Q,{attrs:{user:e.user}})],1),t(R,[t(v,[e._v(e._s(e.user.name))]),t(q,[e._v(e._s(e.user.email))])],1)]},proxy:!0}])},[t(ev)],1),e.needProfilePicture?[t(he),t(w,{staticClass:"sidebar__list-item-button--recent",attrs:{color:"warning"},on:{click:e.setProfilePicture}},[t(O,[t(h,{attrs:{name:"mdi-emoticon-outline"}})],1),t(R,[t(v,{directives:[{name:"t",rawName:"v-t",value:"profile_page.incomplete_profile",expression:"'profile_page.incomplete_profile'"}]}),t(q,{directives:[{name:"t",rawName:"v-t",value:"profile_page.set_your_profile_picture",expression:"'profile_page.set_your_profile_picture'"}]})],1)],1)]:e._e(),t(he),t(w,{staticClass:"sidebar__list-item-button--recent",attrs:{dense:"",to:"/dashboard"}},[t(v,{directives:[{name:"t",rawName:"v-t",value:"dashboard_page.aria_label",expression:"'dashboard_page.aria_label'"}]})],1),t(w,{attrs:{dense:"",to:"/inbox"}},[t(v,{directives:[{name:"t",rawName:"v-t",value:{path:"sidebar.unread_threads",args:{count:e.unreadThreadCount()}},expression:"{ path: 'sidebar.unread_threads', args: { count: unreadThreadCount() } }"}]})],1),t(w,{staticClass:"sidebar__list-item-button--private",attrs:{dense:"",to:"/threads/direct"}},[t(v,[t("span",{directives:[{name:"t",rawName:"v-t",value:"sidebar.invite_only_threads",expression:"'sidebar.invite_only_threads'"}]}),e.unreadDirectThreadsCount>0?t("span",[t(P),t("span",[e._v("("+e._s(e.unreadDirectThreadsCount)+")")])],1):e._e(
56)])],1),t(w,{staticClass:"sidebar__list-item-button--start-thread",attrs:{dense:""},on:{click:e.explainNewThreadRemoved}},[t(v,{directives:[{name:"t",rawName:"v-t",value:"sidebar.start_thread",expression:"'sidebar.start_thread'"}]}),t(O,[t(h,{attrs:{name:"mdi-help"}})],1)],1),t(w,{attrs:{dense:"",to:"/tasks",disabled:e.organizations.length==0}},[t(v,{directives:[{name:"t",rawName:"v-t",value:"tasks.tasks",expression:"'tasks.tasks'"}]})],1),t(he),t(ge,{staticClass:"sidebar__groups",attrs:{dense:""}},[e._l(e.organizations,function(s){return[e.memberGroups(s).length?[t(Uo,{on:{click:function(n){return e.goToGroup(s)}},scopedSlots:e._u([{key:"activator",fn:function(){return[t(fe,{attrs:{"aria-hidden":"true"}},[t(ao,{attrs:{group:s}})],1),t(R,[t(v,[t("span",[e._v(e._s(s.name))]),e.closedCounts[s.id]?[e._v("Â "),t("span",[e._v("("+e._s(e.closedCounts[s.id])+")")])]:e._e()],2)],1)]},proxy:!0}],null,!0),model:{value:e.openGroups[s.id],callback:function(n){e.$set(e.openGroups,s.id,n)},expression:"openGroups[parentGroup.id]"}},[t(w,{attrs:{to:e.urlFor(s)+"?subgroups=none"}},[t(R,[t(v,[t("span",[e._v(e._s(s.name))]),e.openCounts[s.id]?[e._v("Â "),t("span",[e._v("("+e._s(e.openCounts[s.id])+")")])]:e._e()],2)],1)],1),e._l(e.memberGroups(s),function(n){return t(w,{key:n.id,attrs:{to:e.urlFor(n)}},[t(R,[t(v,[t("span",[e._v(e._s(n.name))]),e.openCounts[n.id]?[e._v("Â "),t("span",[e._v("("+e._s(e.openCounts[n.id])+")")])]:e._e()],2)],1)],1)})],2)]:[t(w,{attrs:{to:e.urlFor(s)}},[t(fe,[t(ao,{attrs:{group:s}})],1),t(R,[t(v,[t("span",[e._v(e._s(s.name))]),e.openCounts[s.id]?[e._v("Â "),t("span",[e._v("("+e._s(e.openCounts[s.id])+")")])]:e._e()],2)],1)],1)]]}),e.canStartGroups?t(w,{staticClass:"sidebar__list-item-button--start-group",attrs:{to:"/g/new"}},[t(fe,[t(h,{attrs:{tile:"",name:"mdi-plus"}})],1),t(v,{directives:[{name:"t",rawName:"v-t",value:"group_form.new_group",expression:"'group_form.new_group'"}]})],1):e._e()],2),t(he),e.canStartDemo?t(w,{staticClass:"sidebar__list-item-button--start-group",attrs:{"two-line":"",dense:""},on:{click:e.startOrFindDemo}},[t(R,[t(v,{directives:[{name:"t",rawName:"v-t",value:"templates.start_a_demo",expression:"'templates.start_a_demo'"}]}),t(q,{directives:[{name:"t",rawName:"v-t",value:"templates.play_with_an_example_group",expression:"'templates.play_with_an_example_group'"}]})],1),t(O,[t(h,{attrs:{name:"mdi-car-convertible"}})],1)],1):e._e(),e.showHelp?t(w,{attrs:{href:e.helpURL,target:"_blank",dense:"","two-line":""}},[t(R,[t(v,{directives:[{name:"t",rawName:"v-t",value:"sidebar.help_docs",expression:"'sidebar.help_docs'"}]}),t(q,{directives:[{name:"t",rawName:"v-t",value:"sidebar.a_detailed_guide_to_loomio",expression:"'sidebar.a_detailed_guide_to_loomio'"}]})],1),t(O,[t(h,{attrs:{name:"mdi-book-open-page-variant"}})],1)],1):e._e(),e.showExploreGroups?t(w,{attrs:{dense:"",to:"/explore"}},[t(v,{directives:[{name:"t",rawName:"v-t",value:"sidebar.explore_groups",expression:"'sidebar.explore_groups'"}]}),t(O,[t(h,{attrs:{name:"mdi-map-search"}})],1)],1):e._e(),e.showContact?t(w,{attrs:{dense:"","two-line":""},on:{click:function(s){return e.$router.replace("/contact")}}},[t(R,[t(v,{directives:[{name:"t",rawName:"v-t",value:"user_dropdown.contact_support",expression:"'user_dropdown.contact_support'"}]}),t(q,{directives:[{name:"t",rawName:"v-t",value:"sidebar.talk_to_the_loomio_team",expression:"'sidebar.talk_to_the_loomio_team'"}]})],1),t(O,[t(h,{attrs:{name:"mdi-face-agent"}})],1)],1):e._e()],2)},ov=[],sv=d(Kg,tv,ov,!1,null,null,null,null);const nv=sv.exports,iv={mixins:[Bt],data(){return{title:p.theme.site_name,isLoggedIn:i.isSignedIn(),group:null,breadcrumbs:null,
56sidebarOpen:!1,activeTab:"",showTitle:!0,page:null}},methods:{toggleSidebar(){m.$emit("toggleSidebar")},toggleThreadNav(){m.$emit("toggleThreadNav")},signIn(){this.openAuthModal()},last:De,openSearchModal(){m.$emit("openModal",{component:"SearchModal",persistent:!1,maxWidth:900,props:{group:this.group,discussion:this.discussion}})}},mounted(){m.$on("sidebarOpen",o=>{this.sidebarOpen=o}),m.$on("signedIn",o=>{this.isLoggedIn=!0}),m.$on("content-title-visible",o=>{this.showTitle=!o}),m.$on("currentComponent",o=>{o=Object.assign({focusHeading:!0},o),o.title!=null?this.title=o.title:o.titleKey!=null&&(this.title=this.$t(o.titleKey)),this.group=o.group,this.discussion=o.discussion,this.page=o.page,o.focusHeading&&setTimeout(()=>{document.querySelector(".v-main h1")&&document.querySelector(".v-main h1").focus()})})},computed:{groupName(){if(this.group)return this.group.name},parentName(){if(this.group)return this.group.parentOrSelf().name},groupPage(){return this.page==="groupPage"},threadPage(){return this.page==="threadPage"},logo(){return p.theme.app_logo_src},icon(){return p.theme.icon_src}}},rv={data(){return{notifications:[],unread:[],unreadCount:0,unreadIds:[],open:!1}},methods:{clicked(){this.open=!this.open,this.open?(this.unread=c.notifications.find({viewed:{$ne:!0}}),this.unreadIds=this.unread.map(o=>o.id),c.notifications.viewed()):(this.unreadIds=[],this.unreadCount=0)}},created(){c.notifications.fetchNotifications(),this.watchRecords({collections:["notifications"],query:o=>{this.notifications=o.notifications.collection.chain().simplesort("id",!0).data(),this.unread=o.notifications.find({viewed:{$ne:!0}}),this.unreadCount=this.unreadCount}})}};var av=function(){var e=this,t=e._self._c;return t(ft,{staticClass:"notifications",attrs:{"offset-y":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({attrs:s}){return[t(g,e._b({staticClass:"notifications__button",attrs:{icon:"",title:e.$t("navbar.notifications")},on:{click:e.clicked}},"v-btn",s,!1),[t(Ma,{attrs:{color:"primary"},scopedSlots:e._u([{key:"badge",fn:function(){return[t("span",{staticClass:"notifications__activity"},[e._v(e._s(e.unread.length))])]},proxy:!0}],null,!0),model:{value:e.unread.length,callback:function(n){e.$set(e.unread,"length",n)},expression:"unread.length"}},[t(h,{attrs:{name:"mdi-bell"}})],1)],1)]}}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Fe,{staticClass:"notifications__dropdown"},[e.notifications.length>0?t(ge,{attrs:{dense:""}},e._l(e.notifications,function(s){return t(w,{key:s.id,staticClass:"notification",class:{"v-list-item--active":e.unreadIds.includes(s.id)},attrs:{to:s.href()}},[t(fe,[s.actor()?t(Q,{attrs:{user:s.actor()}}):e._e()],1),t(R,[t(v,{staticClass:"notification__content"},[t("span",{directives:[{name:"t",rawName:"v-t",value:{path:"notifications.with_title."+s.kind,args:s.args()},expression:"{path: 'notifications.with_title.'+n.kind, args: n.args()}"}]}),t(P),t(S),t(P),t(oe,{attrs:{date:s.createdAt}})],1)],1)],1)}),1):e._e(),e.notifications.length==0?[t(w,{directives:[{name:"t",rawName:"v-t",value:"notifications.no_notifications",expression:"'notifications.no_notifications'"}],staticClass:"notification"})]:e._e()],2)],1)},lv=[],cv=d(rv,av,lv,!1,null,null,null,null);const dv=cv.exports;var uv=function(){var e=this,t=e._self._c;return t(qa,{staticClass:"lmo-no-print",attrs:{app:"","clipped-right":"","elevate-on-scroll":"",color:"background"}},[t(g,{staticClass:"navbar__sidenav-toggle",attrs:{icon:"","aria-label":e.$t(e.sidebarOpen?"navbar.close_sidebar":"navbar.open_sidebar")},on:{click:function(s){return e.toggleSidebar()}}},[t(ce,{attrs:{tile:"",size:"32px"}},[t(h,{attrs:{name:"mdi-menu"}})],1)],1),e.showTitle?t(ja,{on:{click:function(s){return e.$vuetify.goTo("head",{duration:0})}}},[e._v(e._s(e.title))]):e._e(),t(U),t(g,{attrs:{icon:"",title:e.$t("common.action.search")},on:{click:e.openSearchModal}},[t(h,{attrs:{name:"mdi-magnify"}})],1),e.isLoggedIn?t(dv):e._e(),t(Ua),e.isLoggedIn?e._e():t(g,{directives:[{name:"t",rawName:"v-t",value:"auth_form.sign_in",expression:"'auth_form.sign_in'"}],staticClass:"navbar__sign-in",attrs:{text:""},on:{click:function(s){return e.signIn()}}}
56)],1)},pv=[],mv=d(iv,uv,pv,!1,null,null,null,null);const _v=mv.exports,hv={data(){return{notice:!1,showNotice:!1,showDismiss:!1,reload:!1}},mounted(){setInterval(()=>c.fetch({path:"boot/version",params:{version:p.version,release:p.release,now:Date.now()}}).then(this.eatData),1e3*60*5),m.$on("systemNotice",this.eatData),m.$on("signedIn",()=>this.showNotice=!1),this.eatData({version:p.version,notice:p.systemNotice})},methods:{eatData(o){this.reload=o.reload,this.notice=o.notice||p.features.app.trials&&this.$route.path.startsWith("/d/")&&!i.isSignedIn()&&C.t("powered_by.this_is_loomio_md"),this.showNotice=this.reload||this.notice&&!i.user().hasExperienced(zo(this.notice)),this.showDismiss=o.reload||o.notice},accept(){this.showNotice=!1,this.notice&&c.users.saveExperience(zo(this.notice)),this.reload&&setTimeout(()=>location.reload(),100)}}};var fv=function(){var e=this,t=e._self._c;return e.showNotice?t(za,{staticClass:"system-notice",attrs:{app:"",color:"primary",height:"40"}},[t("div",{staticClass:"d-flex justify-space-between",staticStyle:{width:"100%"}},[t("div",{staticClass:"system-notice__message text-subtitle-1"},[e.notice?t("span",{directives:[{name:"marked",rawName:"v-marked",value:e.notice,expression:"notice"}]}):t("span",{directives:[{name:"t",rawName:"v-t",value:"global.messages.app_update",expression:"'global.messages.app_update'"}]})]),e.showDismiss?t(g,{directives:[{name:"t",rawName:"v-t",value:e.reload&&"global.messages.reload"||"dashboard_page.dismiss",expression:"(reload && 'global.messages.reload') || 'dashboard_page.dismiss'"}],staticClass:"system-notice__hide",attrs:{small:"",outlined:""},on:{click:e.accept}}):e._e()],1)]):e._e()},gv=[],vv=d(hv,fv,gv,!1,null,null,null,null);const yv=vv.exports;var bv=function(){var e=this,t=e._self._c;return t(Ba,{staticClass:"app-is-booted"},[t(yv),t(_v),t(nv),e.pageError?e._e():t("router-view"),e.pageError?t(Yg,{attrs:{error:e.pageError}}):e._e(),t(U),t(zg),t(Fg),t(Eg)],1)},wv=[],kv=d($g,bv,wv,!1,null,null,null,null);const xv=kv.exports;var Iv={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",Ã:"AE",Ã:"C",Ã:"E",Ã:"E",Ã:"E",Ã:"E",Ã:"I",Ã:"I",Ã:"I",Ã:"I",Ã:"D",Ã:"N",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Å:"O",Ã:"O",Ã:"U",Ã:"U",Ã:"U",Ã:"U",Ű:"U",Ã:"Y",Ã:"TH",Ã:"ss",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",Ã:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",Å:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"u",ű:"u",ý:"y",þ:"th",ÿ:"y"},Cv={"©":"(c)"},Av={α:"a",β:"b",γ:"g",δ:"d",ε:"e",ζ:"z",η:"h",θ:"8",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"3",ο:"o",Ï:"p",Ï:"r",Ï:"s",Ï:"t",Ï
:"y",Ï:"f",Ï:"x",Ï:"ps",Ï:"w",ά:"a",Î:"e",ί:"i",Ï:"o",Ï:"y",ή:"h",Ï:"w",Ï:"s",Ï:"i",ΰ:"y",Ï:"y",Î:"i",Î:"A",Î:"B",Î:"G",Î:"D",Î:"E",Î:"Z",Î:"H",Î:"8",Î:"I",Î:"K",Î:"L",Î:"M",Î:"N",Î:"3",Î:"O",Î :"P",Ρ:"R",Σ:"S",Τ:"T",Î¥:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"W",Î:"A",Î:"E",Î:"I",Î:"O",Î:"Y",Î:"H",Î:"W",Ϊ:"I",Ϋ:"Y"},Tv={Å:"s",Å:"S",ı:"i",İ:"I",ç:"c",Ã:"C",ü:"u",Ã:"U",ö:"o",Ã:"O",Ä:"g",Ä:"G"},$v={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",Ñ:"yo",ж:"zh",з:"z",и:"i",й:"j",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",Ñ:"r",Ñ:"s",Ñ:"t",Ñ:"u",Ñ:"f",Ñ
:"h",Ñ:"c",Ñ:"ch",Ñ:"sh",Ñ:"sh",Ñ:"",Ñ:"y",Ñ:"",Ñ:"e",Ñ:"yu",Ñ:"ya",Ð:"A",Ð:"B",Ð:"V",Ð:"G",Ð:"D",Ð:"E",Ð:"Yo",Ð:"Zh",Ð:"Z",Ð:"I",Ð:"J",Ð:"K",Ð:"L",Ð:"M",Ð:"N",Ð:"O",Ð:"P",Ð :"R",С:"S",Т:"T",У:"U",Ф:"F",Ð¥:"H",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Ð:"E",Ю:"Yu",Я:"Ya"},Pv={Ð:"Ye",Ð:"I",Ð:"Yi",Ò:"G",Ñ:"ye",Ñ:"i",Ñ:"yi",Ò:"g"},Rv={Ä:"c",Ä:"d",Ä:"e",Å:"n",Å:"r",Å¡:"s",Å¥:"t",ů:"u",ž:"z",Ä:"C",Ä:"D",Ä:"E",Å:"N",Å:"R",Å :"S",Ť:"T",Å®:"U",Ž:"Z"},Sv={Ä
:"a",Ä:"c",Ä:"e",Å:"l",Å:"n",ó:"o",Å:"s",ź:"z",ż:"z",Ä:"A",Ä:"C",Ä:"e",Å:"L",Å:"N",Ã:"o",Å:"S",Ź:"Z",Å»:"Z"},Ov={Ä:"a",Ä:"c",Ä:"e",Ä£:"g",Ä«:"i",Ä·:"k",ļ:"l",Å:"n",Å¡:"s",Å«:"u",ž:"z",Ä:"A",Ä:"C",Ä:"E",Ä¢:"G",Ī:"i",Ķ:"k",Ä»:"L",Å
:"N",Š:"S",Ū:"u",Ž:"Z"},se=new Array;se[0]=Iv;se[1]=Cv;se[2]=Av;se[3]=Tv;se[4]=$v;se[5]=Pv;se[6]=Rv;se[7]=Sv;se[8]=Ov;var Z=new Object;Z.Initialize=function(){if(!Z.map){Z.map={},Z.chars="";for(var o in se){var e=se[o];for(var t in e)Z.map[t]=e[t],Z.chars+=t}Z.regex=new RegExp("["+Z.chars+"]|[^"+Z.chars+"]+","g")}};var Ev=function(o){Z.Initialize();var e="",t=o.match(Z.regex);if(t)for(var s=0;s<t.length;s++){if(t[s].length==1){var n=Z.map[t[s]];if(n!=null){e+=n;continue}}e+=t[s]}else e=o;return e};function Dv(o,e=60){return o=Ev(o),o=o.replace(/[^-\w\s]/g,""),o=o.replace(/^\s+|\s+$/g,""),o=o.replace(/[-\s]+/g,"-"),o.toLowerCase().substring(0,e)}var Nv=function(o){const e=new yo.Renderer(o),t=Ha(e);return t.paragraph=s=>e.paragraph(wt(s)),t.listitem=s=>e.listitem(wt(s)),t.tablecell=(s,n)=>e.tablecell(wt(s),n),t.heading=(s,n)=>e.heading(wt(s),n,s,{slug:Dv}),t.link=(s,n,a)=>e.link(s,n,a).replace("<a ",'<a rel="ugc noreferrer" target="_blank" '),t},Lv={gfm:!0,breaks:!0,smartypants:!1,tables:!0};yo.setOptions(Object.assign({renderer:Nv()},Lv));const hs=function(o,e,t){if(e.value)return o.innerHTML=zs(yo(e.value))};T.directive("marked",{update:hs,bind:hs});T.directive("observe-visibility",Wa);
56"serviceWorker"in navigator&&(navigator.serviceWorker.getRegistrations().then(function(o){for(let e of o)e.unregister()}),caches.keys().then(function(o){o.forEach(function(e){caches.delete(e)})}));const Vv={data(){return{watchedRecords:[]}},methods:{watchRecords(...o){const e=o[0],{collections:t,query:s}=e,n=e.key,a=n??"",u=`${t.join("_")}_${this._uid}_${a}`;this.watchedRecords.push(u),c.view({name:u,collections:t,query:s})}},beforeDestroy(){return this.watchedRecords.forEach(o=>delete c.views[o])}},Fv={methods:{closeModal(){return m.$emit("closeModal")}}},Mv={methods:{urlFor(o,e,t){return ue.route({model:o,action:e,params:t})},mergeQuery(o){return{query:N(Object.assign({},this.$route.query,o),bs)}}}},qv={computed:{$pollTypes(){return p.pollTypes},currentUser(){return i.user()},currentUserId(){return p.currentUserId}},methods:{titleVisible(o){return m.$emit("content-title-visible",o)},scrollTo(o,e){var t=function(s,n){document.querySelector(s)?n():setTimeout(()=>t(s,n),500)};t(o,()=>{this.$vuetify.goTo(o,{duration:0,offset:32}),k([1,2,3],s=>{const n=o+` h${s}[tabindex="-1"]`;return document.querySelector(n)?(document.querySelector(n).focus(),!1):!0}),e&&e()})},approximateDate(o){return xo(o)},exactDate(o){return Ie(o)},timelineDate(o){return Cl(o)}}};function jv(o){new bo("boot").get("site").then(function(t){return t.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,k(t,(s,n)=>T.set(p,n,s)),p.sentry_dsn&&(Ga({Vue:T,ignoreErrors:["Avoided redundant navigation to current location","NotFoundError: Node.removeChild","NotFoundError: Failed to execute 'removeChild' on 'Node'","NotFoundError: The object can not be found here","NotFoundError: Node was not found","null is not an object (evaluating 'r.addEventListener')","Cannot read property 'addEventListener' of null","evaluating 't.addEventListener'","ResizeObserver loop limit exceeded","MetaMask detected another web3","AbortError: The operation was aborted","ResizeObserver loop completed with undelivered notifications","TypeError: cancelled","UnhandledRejection: Non-Error promise rejection captured with value","ChunkLoadError: Loading chunk chunk-","TypeError: annulé",'Permission denied to access property "dispatchEvent" on cross-origin object',"TypeError: Failed to fetch","Object captured as promise rejection with keys: error, ok, status, statusText","Object captured as promise rejection with keys: exception, ok, status, statusText","Non-Error promise rejection captured with keys: exception, ok, status, statusText"],dsn:p.sentry_dsn,tunnel:"/bug_tunnel",integrations:[new Ya({routingInstrumentation:Ka(Wt)})],tracesSampleRate:p.features.app.sentry_sample_rate,tracePropagationTargets:["localhost",p.baseUrl,/^\//]}),Vs(s=>s.setTag("loomio_version",p.version))),["shortcut icon"].forEach(function(s){const n=document.createElement("link");return n.rel=s,n.href=p.theme.icon_src,document.getElementsByTagName("head")[0].appendChild(n)}),k(c,function(s,n){const a=s.model;a&&p.permittedParams[ke(a.singular)]&&(a.serializableAttributes=p.permittedParams[ke(a.singular)])}),o(t)})}T.use(Za);T.mixin(Fv);T.mixin(Vv);T.mixin(Mv);T.mixin(qv);T.config.productionTip=!1;jv(function(o){return i.apply(o),lo.boot(),lo.trackPageview(),p.sentry_dsn&&Vs(e=>e.setUser(H(i.user(),["id","name","email","username"]))),new T({render(e){return e(xv)},router:Wt,vuetify:Hl,i18n:C}).$mount("#app")});export{Po as $,p as A,Ao as B,Gh as C,Uh as D,m as E,y as F,Vh as G,hh as H,re as I,tn as J,Cm as K,_ as L,ss as M,eo as N,Hs as O,cn as P,xo as Q,bo as R,i as S,Wl as T,Mv as U,ue as V,Io as W,Bt as X,_t as Y,am as Z,td as _,Ys as a,$o as a0,lo as a1,To as a2,Ht as a3,iy as a4,ry as a5,is as a6,fp as a7,bm as a8,Ft as a9,wp as aa,on as ab,Rp as ac,Nv as ad,Lv as ae,ct as af,Co as ag,r as ah,Tc as ai,ao as b,Ws as c,h as d,Ie as e,So as f,le as g,P as h,Q as i,Ro as j,ip as k,uh as l,C as m,d as n,f as o,dn as p,S as q,c as r,oe as s,sf as t,pe as u,Ks as v,Ue as w,je as x,vt as y,zt as z}; 57function __vite__mapDeps(indexes) { 58 if (!__vite__mapDeps.viteFileDeps) { 59 __vite__mapDeps.viteFileDeps = ["/blient/assets/index-pazaOA6R.js","/blient/assets/vendor-_6dBehLn.js","/blient/assets/vendor-tHjgeyNI.css","/blient/assets/index-KQdmZqo2.js","/blient/assets/index-spjA6S_X.js","/blient/assets/index-fqQ02EkE.js","/blient/assets/index-CfsNgpAg.js","/blient/assets/index-AbQOE-RD.js","/blient/assets/index-_YZsT1XV.js","/blient/assets/index-4XFNHM17.js","/blient/assets/index-lnLFdleT.js","/blient/assets/index-2te0uUah.js","/blient/assets/index-0UwoNuep.js","/blient/assets/index-DqAKh7Gn.js","/blient/assets/index-qw0DV_Dp.js","/blient/assets/index-u7LF4rq7.js","/blient/assets/index-SKUeIV-5.js","/blient/assets/index-Nftu9zi1.js","/blient/assets/index-Gg7CidRY.js","/blient/assets/index-Gs97CC6z.js","/blient/assets/index-vubcbZUh.js","/blient/assets/index-OJdLt3Nm.js","/blient/assets/index-rY4rHCVF.js","/blient/assets/index---Gn21sj.js","/blient/assets/index-Jj4DkDiJ.js","/blient/assets/index-x4QZM1D1.js","/blient/assets/index-ZiMioz1-.js","/blient/assets/index-4PJUkzjC.js","/blient/assets/index-LyxfHdH9.js","/blient/assets/index-lMfUXCsg.js","/blient/assets/index-C1Dxmh2B.js","/blient/assets/index-LBB-7eFM.js","/blient/assets/index-v6ornF3M.js","/blient/assets/index-dX8O0ffA.js","/blient/assets/index-o3OXqOVe.js","/blient/assets/index-KcORLhu_.js","/blient/assets/index-dI2m-FWr.js","/blient/assets/index-SjgN7kB0.js","/blient/assets/index-HHqFHQ8D.js","/blient/assets/index-kSuA56Io.js","/blient/assets/index-NkWw9723.js","/blient/assets/index-vWY5RqbT.js","/blient/assets/index-VD6dSyfc.js","/blient/assets/index-P3b302u1.js","/blient/assets/index-iM7QMNdq.js","/blient/assets/index-QGQd8uEW.js","/blient/assets/index-o5OO_CV4.js","/blient/assets/index-Txq_JBJH.js","/blient/assets/index-VSjtnE2x.js","/blient/assets/index-WcqEy14R.js","/blient/assets/index-W5OW7xyq.js","/blient/assets/index-aewkCLKA.js","/blient/assets/index-ci-5pIeF.js","/blient/assets/index-gXXXT5D9.js","/blient/assets/index-c5Z5NgUW.js","/blient/assets/index-viSHkoqY.js","/blient/assets/index-egUIPZgF.js","/blient/assets/index-ODJQOYHA.js","/blient/assets/index-NUqgx_M3.js","/blient/assets/index-wDoFWqxK.js","/blient/assets/index-T87npP1u.js","/blient/assets/index-1YqbRtaL.js","/blient/assets/index-L92-3elC.js","/blient/assets/index-_5BE1Tef.js","/blient/assets/index-fNZZm717.js","/blient/assets/index-Qdl2
59j5sD.js","/blient/assets/index-ndstvx86.js","/blient/assets/index-B4Z4pXxS.js","/blient/assets/index-96EFUUiu.js","/blient/assets/index-5CtGnxgf.js","/blient/assets/index-muV8Z3rI.js","/blient/assets/index-Fcj3r-z_.js","/blient/assets/index-Vid4-10P.js","/blient/assets/index-8eXNJ8Oc.js","/blient/assets/index-lQKjnb7r.js","/blient/assets/index-YQW2IdlP.js","/blient/assets/index-vvsWaKpN.js","/blient/assets/index-4ndjpDiZ.js","/blient/assets/index-GuAteUOD.js","/blient/assets/index-akzlILxf.js","/blient/assets/index-4R98xwDV.js","/blient/assets/index-2J8ppFMO.js","/blient/assets/index-ivPOv4ht.js","/blient/assets/index-8HSwv7v1.js","/blient/assets/index-DmpFK1NZ.js","/blient/assets/index-ZGXneQdb.js","/blient/assets/index-r_9KzG7u.js","/blient/assets/index-WWNKtPTQ.js","/blient/assets/index-AIXX-oqQ.js","/blient/assets/index-k68tLW17.js","/blient/assets/index-MwleKy63.js","/blient/assets/index-zfp7LEfC.js","/blient/assets/index-FvA-AOSp.js","/blient/assets/index-Cgd-fKy5.js","/blient/assets/index-dqlJHrjn.js","/blient/assets/index-0jNL9HZt.js","/blient/assets/index-oWt486zF.js","/blient/assets/index-RGViQXju.js","/blient/assets/index-56I5Frr1.js","/blient/assets/index-0Dq8-0Nb.js","/blient/assets/index-0UWbQsc1.js","/blient/assets/md_editor-arh89XCV.js","/blient/assets/attaching-RXKEX1IZ.js","/blient/assets/attaching-9M6Ell8s.css","/blient/assets/collab_editor-5kr5wGF1.js","/blient/assets/collab_editor-K7P4HXeA.css","/blient/assets/page-eoeb-zm9.js","/blient/assets/page-6-4LXmA5.js","/blient/assets/page-PIz4rA1f.js","/blient/assets/user_service-a1TSCDka.js","/blient/assets/page-a_l3jrbW.css","/blient/assets/show_page-45Cxrc-D.js","/blient/assets/page_loader-lmm4XHyR.js","/blient/assets/show_page-UgCirvob.css","/blient/assets/form_page-wZRCMy4_.js","/blient/assets/form_page-qI5WjfXx.js","/blient/assets/form-xIQbHc5O.js","/blient/assets/dismiss_modal_button-oHqhON71.js","/blient/assets/page-gahIKD_P.js","/blient/assets/discussions_panel-Q21LQ67j.js","/blient/assets/discussions_panel-hqwG41ZD.css","/blient/assets/polls_panel-_6PZeptF.js","/blient/assets/emails_panel-1gM5hF8j.js","/blient/assets/members_panel-v9-VLjoh.js","/blient/assets/tags_panel-GobRJJya.js","/blient/assets/subgroups_panel--0-eZSJ5.js","/blient/assets/files_panel--IYhbozp.js","/blient/assets/requests_panel-pNYuKnhz.js","/blient/assets/page-gVD6tC4A.js","/blient/assets/new_form-W4Myd9Gd.js","/blient/assets/page-jaCPMfyj.js","/blient/assets/page-kV_MfPEF.js","/blient/assets/change_volume_form-qaZ0sMAO.js","/blient/assets/form_page-gWwTvP6-.js","/blient/assets/form-XQ6r6duB.js","/blient/assets/form_page-Zrs_Psuw.js","/blient/assets/index_page-M4KnDhcR.js","/blient/assets/browse_page-cNRY9ygo.js","/blient/assets/page-2O
59EtXe_-.js","/blient/assets/page-GXjeSvqW.js","/blient/assets/index-zhjq7QRv.js","/blient/assets/form-eVO1C5QK.js","/blient/assets/form-2dVEN1Kl.css","/blient/assets/edit_comment_form-oL671qJw.js","/blient/assets/confirm_modal-lYKikQwC.js","/blient/assets/info_modal-kVYn-gV7.js","/blient/assets/arrangement_form-Do_WssbJ.js","/blient/assets/modal-u4QtZLl1.js","/blient/assets/edit_vote_modal-GgrO6XE6.js","/blient/assets/request_form-rXv7Ltg7.js","/blient/assets/modal-SmGzzeKQ.js","/blient/assets/modal-gzT-zT1S.css","/blient/assets/membership_request_form-LZL1Ar58.js","/blient/assets/membership_modal-6d5zSU5a.js","/blient/assets/email_to_group_settings-9tiZ7bLy.js","/blient/assets/member_email_alias_modal-sFCropGV.js","/blient/assets/change_password_form-9aEgoleJ.js","/blient/assets/list-WINnn4O9.js","/blient/assets/matrix_form-odk4I1xP.js","/blient/assets/webhook_form-Kv4BFHhV.js","/blient/assets/outcome_modal-_FYme6eu.js","/blient/assets/reopen_modal-SCQ69gzA.js","/blient/assets/poll_option_form-CFYx262w.js","/blient/assets/move_thread_form-VaekqAWQ.js","/blient/assets/move_form-hdPXc1CZ.js","/blient/assets/modal-eZwjzEjD.js","/blient/assets/modal-zZoLK4ai.css","/blient/assets/select-wmhlQGRq.js","/blient/assets/modal-HR7Okfu3.js","/blient/assets/modal-b6CsCfS3.css","/blient/assets/change_picture_form-EolwaubQ.js","/blient/assets/pin_event_form-jylrCaJr.js","/blient/assets/move_comments_modal-9KivZ5uF.js","/blient/assets/export_data_modal-UC0o8_FN.js","/blient/assets/add_to_thread_modal-9dIXvTGF.js","/blient/assets/members_list-FUtt3EJa.js","/blient/assets/seen_by_modal-Q7BXRVQd.js","/blient/assets/members--8p1zT8F.js","/blient/assets/reminder_form-zNgxxCJc.js","/blient/assets/invitation_form-1xwhiAmq.js","/blient/assets/invitation_form-YVa28H4Y.css","/blient/assets/announcement_history-hljIGgXF.js","/blient/assets/modal-TZL8kYRA.js","/blient/assets/user_name_modal-iexUuLHo.js","/blient/assets/record_video_modal-GWVU1vnh.js","/blient/assets/record_audio_modal-n_J7--pc.js"] 60 } 61 return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) 62} 63//# sourceMappingURL=index-ZAddPZuc.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.