@assemblyvoting/ui-library 3.3.8-beta.1 → 3.3.8-beta.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs CHANGED
@@ -583,4 +583,4 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
583
583
  `:""),i=c.computed(()=>l.hasNextStep?`
584
584
  height: ${s.value+4}px;
585
585
  margin-top: -${s.value-4}px;
586
- `:""),r=()=>{l.linkMode||setTimeout(()=>n.value=a.value.clientHeight,l.collapsed?0:250)},f=()=>{if(!l.linkMode&&!l.stepNumber)throw new Error("stepNumber prop is required when linkMode is disabled")};return c.onMounted(()=>{f(),r(),window.addEventListener("resize",r)}),c.onUnmounted(()=>window.removeEventListener("resize",r)),(u,d)=>{const m=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("div",BX,[e.hasPrevStep?(c.openBlock(),c.createElementBlock("div",{key:0,class:"AVVerticalStep--line",style:c.normalizeStyle(o.value),"data-test":"step-line-pre"},null,4)):c.createCommentVNode("",!0),c.createElementVNode("div",{class:c.normalizeClass(["AVVerticalStep--container",{"AVVerticalStep--link-container":e.linkMode,"AVVerticalStep--link-active":e.linkMode&&e.status==="active"}]),ref_key:"verticalStepItem",ref:a,"data-index":e.stepNumber},[c.createVNode(c.Transition,null,{default:c.withCtx(()=>[e.inProgress?(c.openBlock(),c.createElementBlock("div",HX)):c.createCommentVNode("",!0)]),_:1}),c.createElementVNode("div",{class:c.normalizeClass(`AVVerticalStep--step AVVerticalStep--step-${e.status}`),"data-test":"step-circle"},[e.summary&&e.status==="active"?(c.openBlock(),c.createElementBlock("div",IX,[c.createVNode(m,{icon:"grip-vertical"})])):e.summary?(c.openBlock(),c.createElementBlock("div",OX,[c.createElementVNode("div",DX,[c.createVNode(m,{icon:"grip-vertical"})]),c.createElementVNode("div",PX,[c.createVNode(m,{icon:"arrow-left"})])])):e.linkMode&&e.status==="active"?(c.openBlock(),c.createElementBlock("div",RX,[c.createElementVNode("span",FX,c.toDisplayString(t.value),1)])):e.linkMode?(c.openBlock(),c.createElementBlock("div",$X,[c.createElementVNode("div",qX,[c.createElementVNode("span",jX,c.toDisplayString(t.value),1)]),c.createElementVNode("div",UX,[c.createVNode(m,{icon:"arrow-right"})])])):(c.openBlock(),c.createElementBlock("div",WX,[c.createVNode(m,{icon:e.status==="done"?"check":`${e.stepNumber}`,class:"AVVerticalStep--icon","data-test":"step-icon"},null,8,["icon"])]))],2),c.createVNode(c.Transition,{onAfterEnter:r,onAfterLeave:r},{default:c.withCtx(()=>[e.collapsed?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["AVVerticalStep--text",{"AVVerticalStep--text-link-active":e.linkMode&&e.status==="active"}])},[c.createElementVNode("span",{class:c.normalizeClass(`AVVerticalStep--title AVVerticalStep--text-${e.status}`),"data-test":"step-title"},c.toDisplayString(e.title),3),e.subtitle?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(`AVVerticalStep--subtitle AVVerticalStep--text-${e.status}`),"data-test":"step-subtitle"},c.toDisplayString(e.subtitle),3)):c.createCommentVNode("",!0)],2))]),_:1})],10,TX),e.hasNextStep?(c.openBlock(),c.createElementBlock("div",{key:1,class:"AVVerticalStep--line",style:c.normalizeStyle(i.value),"data-test":"step-line-post"},null,4)):c.createCommentVNode("",!0)])}}}),GX=O(JX,[["__scopeId","data-v-1d5e5b5f"]]),ZX=c.defineComponent({__name:"AVAnimatedMenuButton",props:{isOpened:{type:Boolean,default:!1}},emits:["update:isOpened"],setup(e,{emit:l}){const t=l;return(a,n)=>(c.openBlock(),c.createElementBlock("button",{class:c.normalizeClass(["AVAnimatedMenuButton",{"AVAnimatedMenuButton--opened":e.isOpened}]),onClick:n[0]||(n[0]=s=>t("update:isOpened",!e.isOpened))},[c.createElementVNode("span",{class:c.normalizeClass(["AVAnimatedMenuButton--icon",{"AVAnimatedMenuButton--icon-opened":e.isOpened}])},n[1]||(n[1]=[c.createElementVNode("span",{class:"AVAnimatedMenuButton--line"},null,-1),c.createElementVNode("span",{class:"AVAnimatedMenuButton--line"},null,-1),c.createElementVNode("span",{class:"AVAnimatedMenuButton--line"},null,-1)]),2)],2))}}),QX=O(ZX,[["__scopeId","data-v-90e59491"]]),YX={class:"AVProgressBar"},KX={class:"AVProgressBar--container"},XX=c.defineComponent({__name:"AVProgressBar",props:{value:{type:Number,required:!0,validate:e=>e>=0&&e<=100},hidePercentage:{type:Boolean,default:!1}},setup(e){return(l,t)=>(c.openBlock(),c.createElementBlock("div",YX,[e.hidePercentage?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["AVProgressBar--percentage",{"AVProgressBar--success":e.value===100}])},c.toDisplayString(`${Math.round(e.value)}%`),3)),c.createElementVNode("div",KX,[c.createElementVNode("div",{class:c.normalizeClass(["AVProgressBar--filling",{"AVProgressBar--success":e.value===100}]),style:c.normalizeStyle(`width: ${e.value}%;`)},null,6)])]))}}),_j=O(XX,[["__scopeId","data-v-9c071d60"]]);var e11={},c11={class:"AVWaitingDots--container"};function l11(e,l){return c.openBlock(),c.createElementBlock("div",c11,l[0]||(l[0]=[c.createElementVNode("div",{class:"AVWaitingDots"},null,-1)]))}const Nj=O(e11,[["render",l11],["__scopeId","data-v-f13d66c0"]]),t11={class:"AVRadioGroup--input-set"},a11=["for"],n11={key:1,class:"AVRadioGroup--error","data-test":"error-msg"},s11=c.defineComponent({__name:"AVRadioGroup",props:{id:{type:String,required:!0},options:{type:Array,required:!0},initialValue:{type:String,default:null},disabled:{type:Array,default:null},error:{type:Boolean,default:!1},errorMessage:{type:String,default:null},inputLabel:{type:String,default:"Input label"},disableLabel:{type:Boolean,default:!1},orientation:{type:String,validate:e=>["vertical","horizontal"].includes(e),default:"horizontal"}},emits:["update"],setup(e,{emit:l}){const t=e,a=l,n=c.ref(""),s=c.ref([]),o=u=>{s.value.map(d=>{d.value===u?(d.checked=!0,n.value=d.value):d.checked=!1})},i=()=>{if(s.value.map(u=>u.disabled=!1),t.disabled)s.value.map(u=>{t.disabled.map(d=>d===u.value?u.disabled=!0:u)});else return};c.onMounted(()=>{t.options.map(u=>s.value.push({value:u,checked:!1})),t.initialValue&&o(t.initialValue),t.disabled&&i()});const r=u=>{o(u),f()},f=()=>{a("update",n.value,s.value)};return c.watch(()=>t.initialValue,()=>{n.value=t.initialValue,o(t.initialValue)}),c.watch(()=>t.disabled,()=>{i()}),(u,d)=>{const m=c.resolveComponent("AVRadio");return c.openBlock(),c.createElementBlock("div",t11,[e.disableLabel?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVRadioGroup--label","data-test":"input-label"},c.toDisplayString(e.inputLabel),9,a11)),c.createElementVNode("div",{class:c.normalizeClass(`AVRadioGroup--${e.orientation}`),"data-test":"input-group"},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.value,(p,L)=>(c.openBlock(),c.createBlock(m,{class:"AVRadioGroup--child",id:`radio-${e.id}-${L}`,key:L,value:p.value,checked:p.checked,disabled:p.disabled,onUpdate:M=>r(p.value)},null,8,["id","value","checked","disabled","onUpdate"]))),128))],2),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",n11,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),kj=O(s11,[["__scopeId","data-v-74ff59b8"]]),o11=c.defineComponent({__name:"AVNavigationItemList",props:{type:{type:String,validate:e=>["navbar","sidebar"].includes(e),default:"navbar"}},setup(e){return(l,t)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(`AVNavigationItemList AVNavigationItemList--${e.type}`)},[c.renderSlot(l.$slots,"default",{},void 0,!0)],2))}}),xj=O(o11,[["__scopeId","data-v-9fd5c53d"]]),i11={class:"AVBreadcrumb"},r11=["href"],f11=["href"],m11=c.defineComponent({__name:"AVBreadcrumb",props:{items:{type:Array,required:!0},disableButton:{type:Boolean,default:!1},buttonHref:{type:String,default:null}},setup(e){return(l,t)=>{const a=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("div",i11,[c.createElementVNode("a",{href:e.buttonHref},[e.disableButton?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(a,{key:0,icon:"fa-solid fa-circle-chevron-left",class:"AVBreadcrumb--icon"}))],8,r11),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.items,(n,s)=>(c.openBlock(),c.createElementBlock("span",{key:s,class:"AVBreadcrumb--group","data-test":"item-group"},[c.createElementVNode("a",{href:n.active?null:n.href,class:c.normalizeClass(["AVBreadcrumb--link",{"AVBreadcrumb--link-active":n.active}])},c.toDisplayString(n.text),11,f11),c.createVNode(a,{icon:"fa-solid fa-angle-right",class:"AVBreadcrumb--separator"})]))),128))])}}}),yj=O(m11,[["__scopeId","data-v-479a161a"]]),u11=["href"],d11={class:"AVElectionCard--inner"},p11={class:"AVElectionCard--id","data-test":"id"},z11={class:"AVElectionCard--title-group"},h11={class:"AVElectionCard--title","data-test":"title"},L11={class:"AVElectionCard--items"},g11={class:"AVElectionCard--item","data-test":"item"},C11={class:"AVElectionCard--item-icon"},M11={class:"AVElectionCard--item-text"},v11={class:"AVElectionCard--item","data-test":"item"},b11={class:"AVElectionCard--item-icon"},A11={class:"AVElectionCard--item-text"},_11={class:"AVElectionCard--item","data-test":"item"},N11={class:"AVElectionCard--item-icon"},k11={class:"AVElectionCard--item-text"},x11={class:"AVElectionCard--button"},y11=c.defineComponent({__name:"AVElectionCard",props:{id:{type:String,required:!0},name:{type:String,required:!0},status:{type:String,required:!0},countyName:{type:String,required:!0},createdAt:{type:String,required:!0},lastUpdated:{type:String,required:!0},countyNameLabel:{type:String,required:!0},createdAtLabel:{type:String,required:!0},lastUpdatedLabel:{type:String,required:!0},href:{type:String,required:!0}},setup(e){const l=e,t={draft:"info",open:"success",closed:"danger",archived:"default"},a=c.computed(()=>t[l.status]);return(n,s)=>{const o=c.resolveComponent("AVLabel"),i=c.resolveComponent("AVIcon"),r=c.resolveComponent("AVCard");return c.openBlock(),c.createElementBlock("a",{href:e.href,class:"AVElectionCard","data-test":"link"},[c.createVNode(r,{variant:"rounded",role:"button"},{default:c.withCtx(()=>[c.createElementVNode("div",d11,[c.createElementVNode("span",p11,c.toDisplayString(e.id),1),c.createElementVNode("div",z11,[c.createElementVNode("span",h11,c.toDisplayString(e.name),1),c.createVNode(o,{type:a.value,value:e.status},null,8,["type","value"])]),c.createElementVNode("div",L11,[c.createElementVNode("div",g11,[c.createElementVNode("div",C11,[c.createVNode(i,{icon:"fa-solid fa-location-pin"})]),c.createElementVNode("span",M11,[c.createTextVNode(c.toDisplayString(e.countyNameLabel),1),c.createElementVNode("strong",null,c.toDisplayString(e.countyName),1)])]),c.createElementVNode("div",v11,[c.createElementVNode("div",b11,[c.createVNode(i,{icon:"fa-solid fa-file-circle-plus"})]),c.createElementVNode("span",A11,[c.createTextVNode(c.toDisplayString(e.createdAtLabel),1),c.createElementVNode("strong",null,c.toDisplayString(e.createdAt),1)])]),c.createElementVNode("div",_11,[c.createElementVNode("div",N11,[c.createVNode(i,{icon:"fa-solid fa-pen-to-square"})]),c.createElementVNode("span",k11,[c.createTextVNode(c.toDisplayString(e.lastUpdatedLabel),1),c.createElementVNode("strong",null,c.toDisplayString(e.lastUpdated),1)])])])]),c.createElementVNode("div",x11,[c.createVNode(i,{icon:"fa-solid fa-circle-chevron-right",class:"AVElectionCard--CTA-icon"})])]),_:1})],8,u11)}}}),Vj=O(y11,[["__scopeId","data-v-dd72671e"]]),V11=["href"],S11={class:"AVBallotStyleCard--content"},w11={key:0,class:"AVBallotStyleCard--completion-icon","data-test":"success-icon"},E11={class:"AVBallotStyleCard--text-container"},B11={class:"AVBallotStyleCard--title","data-test":"title"},T11={class:"AVBallotStyleCard--text","data-test":"text"},H11={class:"AVBallotStyleCard--CTA-icon"},I11=c.defineComponent({__name:"AVBallotStyleCard",props:{href:{type:String,required:!0},name:{type:String,required:!0},contestQty:{type:Number,required:!0},contestLabel:{type:String,required:!0},reviewed:{type:Boolean,default:!1}},setup(e){return(l,t)=>{const a=c.resolveComponent("AVIcon"),n=c.resolveComponent("AVCard");return c.openBlock(),c.createElementBlock("a",{href:e.href,class:"AVBallotStyleCard",role:"button","data-test":"link"},[c.createVNode(n,{variant:"rounded"},{default:c.withCtx(()=>[c.createElementVNode("div",S11,[e.reviewed?(c.openBlock(),c.createElementBlock("div",w11,[c.createVNode(a,{icon:"fa-solid fa-check"})])):c.createCommentVNode("",!0),c.createElementVNode("div",E11,[c.createElementVNode("div",B11,c.toDisplayString(e.name),1),c.createElementVNode("div",T11,c.toDisplayString(`${e.contestQty} ${e.contestLabel}`),1)])]),c.createElementVNode("div",H11,[c.createVNode(a,{icon:"fa-solid fa-chevron-right"})])]),_:1}),c.createElementVNode("div",{class:c.normalizeClass(`AVBallotStyleCard--progress AVBallotStyleCard--progress-${e.reviewed?"success":"default"}`),"data-test":"progress"},null,2)],8,V11)}}}),Sj=O(I11,[["__scopeId","data-v-c682a2cf"]]),O11=["aria-label"],D11={key:0,class:"AVSummaryOption--ancestry"},P11={class:"AVSummaryOption--breadcrumb","data-test":"summary-option-ancestry"},R11=["src","alt"],F11={class:"AVSummaryOption--body"},$11={class:"AVSummaryOption--title"},q11={key:1,class:"AVSummaryOption--summary"},j11={key:1,class:"AVSummaryOption--footer"},wj=c.defineComponent({__name:"AVSummaryOption",props:{option:{type:Object,default:null},multipleVotesAllowed:{type:Boolean,default:!1},locale:{type:String,default:null},blank:{type:Boolean,default:!1},parents:{type:Array,default:()=>[]},imageOption:{type:String,default:"square"}},setup(e){const l=e,t=c.computed(()=>{var u,d;return((u=l.option)==null?void 0:u.crosses)&&((d=l.option)==null?void 0:d.crosses)>1&&l.multipleVotesAllowed&&!l.blank}),a=c.computed(()=>l.parents.length<1?null:l.parents.map(u=>u.title[f.value]).reverse()),n=c.computed(()=>{var u;return l.blank?r("js.components.AVSummaryOption.blank"):(u=l.option)==null?void 0:u.title[f.value]}),s=c.computed(()=>{var L,M;const u=Array.from(Array((L=l.option)==null?void 0:L.crosses).keys());u.forEach(v=>u[v]=v+1);const d=u.indexOf(Math.ceil(((M=l.option)==null?void 0:M.crosses)/2))+1,m=u.slice(0,d),p=u.slice(d);return p.length?[m,p]:[m]}),o=c.computed(()=>l.option.image.includes("square")?l.option.image:`${l.option.image}/${l.imageOption}`),i=c.inject("i18n"),{t:r}=i.global,f=c.computed(()=>i.global.locale.value||i.global.locale);return c.onMounted(()=>{l.locale&&W(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&W(l.locale)},{deep:!0}),(u,d)=>{var p,L;const m=c.resolveComponent("AVOptionCheckbox");return c.openBlock(),c.createElementBlock("div",{class:"AVSummaryOption","aria-label":c.unref(r)("js.components.AVSummaryOption.aria_label.option"),"data-test":"summary-option"},[a.value?(c.openBlock(),c.createElementBlock("div",D11,[c.createElementVNode("ul",P11,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,(M,v)=>(c.openBlock(),c.createElementBlock("li",{key:M+v,class:"AVSummaryOption--breadcrumb-item","data-test":"breadcrumb-item"},c.toDisplayString(M),1))),128))])])):c.createCommentVNode("",!0),c.createElementVNode("div",{class:c.normalizeClass({"AVSummaryOption--header":!0,"AVSummaryOption--header-multiple":t.value})},[(p=e.option)!=null&&p.image?(c.openBlock(),c.createElementBlock("img",{key:0,src:o.value,class:"AVSummaryOption--img",alt:c.unref(r)("js.components.AVSummaryOption.aria_label.option_image"),"data-test":"summary-option-image"},null,8,R11)):c.createCommentVNode("",!0),c.createElementVNode("div",F11,[c.createElementVNode("div",$11,c.toDisplayString(n.value),1)]),t.value?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",q11,[c.createVNode(m,{checked:!0,rank:(L=e.option)==null?void 0:L.rank,disabled:!0,"data-test":"summary-cross"},null,8,["rank"])]))],2),t.value?(c.openBlock(),c.createElementBlock("div",j11,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.value,M=>(c.openBlock(),c.createElementBlock("div",{key:M.toString(),class:"AVSummaryOption--group"},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(M,v=>{var b;return c.openBlock(),c.createBlock(m,{key:v,checked:!0,rank:(b=e.option)==null?void 0:b.rank,disabled:!0,"data-test":"summary-cross"},null,8,["rank"])}),128))]))),128))])):c.createCommentVNode("",!0)],8,O11)}}}),pn=c.ref(new Map);function Ej(){function e(l,...t){pn.value.set(l,t)}return{eventBusEmit:e,eventBus:pn}}const U11=["id","href","aria-labelledby"],W11=["aria-label"],J11={class:"AVOption--header-container","data-test":"option-content"},G11={class:"AVOption--header"},Z11=["src","alt"],Q11=["textContent"],Y11={key:0,class:"AVOption--body","data-test":"option-summary"},K11={key:0,class:"AVOption--description","data-test":"option-description"},X11=["innerHTML"],e21={key:1,class:"AVOption--links-container"},c21=["href"],l21={key:2,class:"AVOption--children-container","data-test":"option-children"},t21=["id"],a21=["innerHTML"],n21={key:1,class:"AVOption--realtime-results AVOption--realtime-results-internal","data-test":"option-partialresults"},s21={class:"AVOption--realtime-results","data-test":"option-realtimeresults"},o21={key:0,class:"AVOption--children","data-test":"option-children"},i21=c.defineComponent({__name:"AVOption",props:{option:{type:Object,required:!0},selections:{type:Array,required:!0},contest:{type:Object,required:!0},invalid:{type:Boolean,required:!0},exclusiveError:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},observerMode:{type:Boolean,default:!1},partialResults:{type:Object,default:null},locale:{type:String,default:null},imageOption:{type:String,default:"square"}},emits:["accordion-open","checked","view-candidate"],setup(e,{emit:l}){const{eventBus:t}=Ej(),a=c.ref(!1),n=c.ref(null),s=e,o=l,i=c.computed(()=>document.getElementsByTagName("html")[0].dir==="rtl"),r=c.computed(()=>s.contest.markingType.voteVariation==="ranked"),f=c.computed(()=>s.selections.filter(S=>S.reference===s.option.reference).length),u=c.computed(()=>s.option.title[R.value]??""),d=c.computed(()=>{var S;return((S=s.option.description)==null?void 0:S[R.value])??""}),m=c.computed(()=>{var S;return((S=s.option.url)==null?void 0:S[R.value])??""}),p=c.computed(()=>{var S;return((S=s.option.videoUrl)==null?void 0:S[R.value])??""}),L=c.computed(()=>s.option.image.includes("square")?s.option.image:`${s.option.image}/${s.imageOption}`),M=c.computed(()=>{let S=[];return m.value&&S.push({url:m.value,text:E("js.components.AVOption.info_link_text_html")}),p.value&&S.push({url:p.value,text:E("js.components.AVOption.video_link_text_html")}),S}),v=c.computed(()=>s.option.children&&s.option.children.length>0),b=c.computed(()=>s.option.selectable!==void 0&&!s.option.selectable?0:g.value?1:s.option.voteLimit||s.contest.markingType.votesAllowedPerOption||1),C=c.computed(()=>s.selections.length>0?V(s.option.children):0),g=c.computed(()=>s.option.exclusive),A=c.computed(()=>{const S=Array.from(Array(b.value).keys());S.forEach(P=>S[P]=P+1);const $=S.indexOf(Math.ceil(b.value/2))+1,J=S.slice(0,$),I=S.slice($);return I.length?[J,I]:[J]}),k=c.computed(()=>s.partialResults?s.partialResults[s.option.reference]:null),_=(S,$=1)=>{o("checked",{reference:S,amount:$})},V=S=>{if(!S)return 0;let $=S.filter(J=>s.selections.map(I=>I.reference).includes(J.reference)).length;return S.reduce((J,I)=>J+V(I.children),$)},x=S=>{a.value=!1,S===s.option.reference&&(o("accordion-open"),c.nextTick(()=>{a.value=!0,n.value.scrollIntoView&&n.value.scrollIntoView({behavior:"smooth",block:"center"})}))};c.watch(()=>t.value.get("highlight-option"),S=>{const[$]=S??[];x($)});const N=c.inject("i18n"),{t:E}=N.global,R=c.computed(()=>N.global.locale.value||N.global.locale);return c.onMounted(()=>{s.locale&&W(s.locale)}),c.watch(()=>s.locale,()=>{s.locale&&W(s.locale)},{deep:!0}),(S,$)=>{const J=c.resolveComponent("AVIcon"),I=c.resolveComponent("AVOptionCheckbox"),P=c.resolveComponent("AVOption",!0),o1=c.resolveComponent("AVCollapser");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass({"AVOption--background":!0,"AVOption--disabled":e.disabled}),"data-test":"option"},[c.createElementVNode("a",{id:e.option.reference,class:"AVOption--scroll-anchor",href:`option_${e.option.reference}_checkbox`,"aria-labelledby":`option_${e.option.reference}_title`},null,8,U11),c.createVNode(o1,{collapsable:e.contest.collapsable&&v.value,"start-collapsed":e.contest.collapseDefault&&!e.observerMode,onAccordionOpen:$[2]||($[2]=p1=>o("accordion-open"))},c.createSlots({toggle:c.withCtx(({isOpen:p1,collapsable:v1})=>[c.createElementVNode("section",{ref_key:"el",ref:n,class:c.normalizeClass({AVOption:!0,"AVOption--highlight":a.value,"AVOption--accent":e.option.accentColor}),style:c.normalizeStyle(e.option.accentColor?`border-left-color: ${e.option.accentColor}`:""),"aria-label":c.unref(E)("js.components.AVOption.aria_labels.option"),"data-test":"option-section"},[c.createElementVNode("div",{class:c.normalizeClass(["AVOption--container",{"AVOption--container-column":b.value>1,"AVOption--container-row":b.value<=5}]),"data-test":"option-container"},[c.createElementVNode("div",J11,[c.createElementVNode("header",G11,[e.option.image?(c.openBlock(),c.createElementBlock("img",{key:0,src:L.value,alt:c.unref(E)("js.components.AVOption.aria_labels.option_image"),class:"AVOption-image","data-test":"option-image"},null,8,Z11)):c.createCommentVNode("",!0),c.createElementVNode("h5",{class:"AVOption--title",textContent:c.toDisplayString(u.value)},null,8,Q11)]),d.value||M.value.length||v.value||e.option.candidateId?(c.openBlock(),c.createElementBlock("div",Y11,[d.value?(c.openBlock(),c.createElementBlock("div",K11,[c.createElementVNode("p",{innerHTML:d.value},null,8,X11)])):c.createCommentVNode("",!0),M.value.length>0||e.option.candidateId?(c.openBlock(),c.createElementBlock("div",e21,[e.option.candidateId?(c.openBlock(),c.createElementBlock("button",{key:0,class:"AVOption--link",onClick:$[0]||($[0]=z1=>o("view-candidate",e.option.candidateId)),"data-test":"option-candidacy"},c.toDisplayString(c.unref(E)("js.components.AVOption.view_candidate")),1)):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(M.value,z1=>(c.openBlock(),c.createElementBlock("a",{key:z1.toString(),href:z1.url,class:"AVOption--link",target:"_blank","data-test":"option-link"},c.toDisplayString(z1.text),9,c21))),128))])):c.createCommentVNode("",!0),v1&&v.value?(c.openBlock(),c.createElementBlock("div",l21,[c.createElementVNode("div",{id:`option_${e.option.reference}_dropdown`,class:"AVOption--expander-container","aria-hidden":"true","data-test":"option-expander"},[c.createVNode(J,{icon:p1?"chevron-down":i.value?"chevron-left":"chevron-right",class:"AVOption--expander-icon"},null,8,["icon"]),c.createElementVNode("span",{class:"AVOption--expander-help-text",innerHTML:p1?c.unref(E)("js.components.AVOption.collapse_text"):c.unref(E)("js.components.AVOption.expand_text")},null,8,a21)],8,t21),C.value&&!p1?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(["AVOption--suboption-badge",{"AVOption--suboption-badge-danger":e.invalid,"AVOption--suboption-badge-normal":!e.invalid}]),"data-test":"option-child-selected"},c.toDisplayString(i.value?`${c.unref(E)("js.components.AVOption.sub_options_select")} ${C.value}`:`${C.value} ${c.unref(E)("js.components.AVOption.sub_options_select")}`),3)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]),b.value>=1?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass({"AVOption--multivote-aside":b.value<=5,"AVOption--multivote-footer":b.value>5,"AVOption--singlevote":b.value===1}),style:c.normalizeStyle(`background-color: ${b.value===1?"#FFFFFF":"#f7f7f7"}`),"data-test":"option-multivote"},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(A.value,z1=>(c.openBlock(),c.createElementBlock("div",{key:z1.toString(),class:"AVOption--group"},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(z1,_1=>(c.openBlock(),c.createBlock(I,{key:_1,checked:f.value>=_1,rank:r.value?e.selections.map(u1=>u1.reference).indexOf(e.option.reference)+1:null,"exclusive-error":e.exclusiveError,invalid:e.invalid,"option-reference":e.option.reference,"check-box-index":_1,disabled:e.disabled||e.observerMode,onToggled:u1=>_(e.option.reference,_1)},null,8,["checked","rank","exclusive-error","invalid","option-reference","check-box-index","disabled","onToggled"]))),128))]))),128))],6)):c.createCommentVNode("",!0),k.value&&(e.observerMode||e.disabled)?(c.openBlock(),c.createElementBlock("div",n21,[c.createVNode(J,{icon:"user",class:"AVOption--realtime-results-icon"}),c.createElementVNode("span",null,c.toDisplayString(i.value?`${k.value.results.count===1?c.unref(E)("js.components.AVOption.vote_count_singular"):c.unref(E)("js.components.AVOption.vote_count_plural")} ${k.value.results.count}`:`${k.value.results.count} ${k.value.results.count===1?c.unref(E)("js.components.AVOption.vote_count_singular"):c.unref(E)("js.components.AVOption.vote_count_plural")}`),1),k.value.showPercentage?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[$[3]||($[3]=c.createElementVNode("span",null,"-",-1)),c.createElementVNode("span",null,c.toDisplayString(`${k.value.results.percentage}%`),1)],64)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)],2)],14,W11)]),pane:c.withCtx(({toggleCollapse:p1})=>[v.value?(c.openBlock(),c.createElementBlock("div",o21,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.option.children,v1=>(c.openBlock(),c.createBlock(P,{key:v1.reference,option:v1,selections:e.selections,contest:e.contest,invalid:e.invalid,disabled:e.disabled,"observer-mode":e.observerMode,"partial-results":e.partialResults,"exclusive-error":v1.exclusive&&e.exclusiveError,"image-option":e.imageOption,onChecked:$[1]||($[1]=z1=>o("checked",z1)),onAccordionOpen:()=>p1(!0,!1)},null,8,["option","selections","contest","invalid","disabled","observer-mode","partial-results","exclusive-error","image-option","onAccordionOpen"]))),128))])):c.createCommentVNode("",!0)]),_:2},[!e.disabled&&k.value&&!e.observerMode?{name:"results",fn:c.withCtx(()=>[c.createElementVNode("div",s21,[c.createVNode(J,{icon:"user",class:"AVOption--realtime-results-icon"}),c.createElementVNode("span",null,c.toDisplayString(i.value?`${k.value.results.count===1?c.unref(E)("js.components.AVOption.vote_count_singular"):c.unref(E)("js.components.AVOption.vote_count_plural")} ${k.value.results.count}`:`${k.value.results.count} ${k.value.results.count===1?c.unref(E)("js.components.AVOption.vote_count_singular"):c.unref(E)("js.components.AVOption.vote_count_plural")}`),1),k.value.showPercentage?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[$[4]||($[4]=c.createElementVNode("span",null,"-",-1)),c.createElementVNode("span",null,c.toDisplayString(`${k.value.results.percentage}%`),1)],64)):c.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["collapsable","start-collapsed"])],2)}}}),Bj=O(i21,[["__scopeId","data-v-e98bd97f"]]),r21=["aria-label"],f21={class:"AVBlankOption--header","aria-hidden":"true","data-test":"option-content"},m21={class:"AVBlankOption--title"},u21={class:"AVBlankOption--checkbox"},d21={key:0,class:"AVBlankOption--realtime-results AVOption--realtime-results-internal","data-test":"partial-results"},p21={key:0,class:"AVBlankOption--realtime-results","data-test":"realtime-results"},z21=c.defineComponent({__name:"AVBlankOption",props:{checked:{type:Boolean,required:!0},error:{type:Boolean,required:!0},disabled:{type:Boolean,default:!1},partialResults:{type:Object,default:null},accentColor:{type:String,default:null},observerMode:{type:Boolean,default:!1},locale:{type:String,default:null},invalid:{type:Boolean,default:!1}},emits:["toggleBlank"],setup(e){const l=c.inject("i18n"),{t}=l.global,a=e;c.onMounted(()=>{a.locale&&W(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&W(a.locale)},{deep:!0});const n=c.computed(()=>document.getElementsByTagName("html")[0].dir==="rtl");return(s,o)=>{const i=c.resolveComponent("AVOptionCheckbox"),r=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass({"AVBlankOption--disabled":e.disabled}),"data-test":"blank-option"},[c.createElementVNode("div",{class:c.normalizeClass({AVBlankOption:!0,"AVBlankOption--accent":e.accentColor}),style:c.normalizeStyle(e.accentColor?`border-left-color: ${e.accentColor}`:""),"aria-label":c.unref(t)("js.components.AVBlankOption.aria_labels.option"),"data-test":"option-container"},[c.createElementVNode("div",f21,[c.createElementVNode("h5",m21,c.toDisplayString(c.unref(t)("js.components.AVBlankOption.title")),1),c.createElementVNode("div",u21,[c.createVNode(i,{"option-reference":"blank",rank:null,checked:e.checked,"exclusive-error":e.error,invalid:e.invalid,disabled:e.disabled||e.observerMode,onToggled:o[0]||(o[0]=f=>s.$emit("toggleBlank")),"data-test":"blank-checkbox"},null,8,["checked","exclusive-error","invalid","disabled"])]),e.partialResults&&(e.observerMode||e.disabled)?(c.openBlock(),c.createElementBlock("div",d21,[c.createVNode(r,{icon:"user",class:"AVBlankOption--realtime-results-icon"}),c.createElementVNode("span",null,c.toDisplayString(n.value?`${e.partialResults.results.count===1?c.unref(t)("js.components.AVBlankOption.vote_count_singular"):c.unref(t)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}`:`${e.partialResults.results.count} ${e.partialResults.results.count===1?c.unref(t)("js.components.AVBlankOption.vote_count_singular"):c.unref(t)("js.components.AVBlankOption.vote_count_plural")}`),1),e.partialResults.showPercentage?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[o[1]||(o[1]=c.createElementVNode("span",null,"-",-1)),c.createElementVNode("span",null,c.toDisplayString(`${e.partialResults.results.percentage}%`),1)],64)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)])],14,r21),!e.disabled&&e.partialResults&&!e.observerMode?(c.openBlock(),c.createElementBlock("div",p21,[c.createVNode(r,{icon:"user",class:"AVBlankOption--realtime-results-icon"}),c.createElementVNode("span",null,c.toDisplayString(n.value?`${e.partialResults.results.count===1?c.unref(t)("js.components.AVBlankOption.vote_count_singular"):c.unref(t)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}`:`${e.partialResults.results.count} ${e.partialResults.results.count===1?c.unref(t)("js.components.AVBlankOption.vote_count_singular"):c.unref(t)("js.components.AVBlankOption.vote_count_plural")}`),1),e.partialResults.showPercentage?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[o[2]||(o[2]=c.createElementVNode("span",null,"-",-1)),c.createElementVNode("span",null,c.toDisplayString(`${e.partialResults.results.percentage}%`),1)],64)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)],2)}}}),Tj=O(z21,[["__scopeId","data-v-d585dd76"]]),h21=["aria-label"],L21={class:"AVWriteInOption--header"},g21={class:"AVWriteInOption--container"},C21={id:"option_writeIn",class:"AVWriteInOption--title"},M21={class:"AVWriteInOption--form-group"},v21=["aria-label","disabled"],b21={value:""},A21=["value","selected"],_21=["value","placeholder","aria-label","disabled"],N21=c.defineComponent({__name:"AVWriteInOption",props:{parties:{type:Array,required:!0},candidateValue:{type:String,required:!0},partyValue:{type:String,required:!0},checkedValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},observerMode:{type:Boolean,defaul:!1},locale:{type:String,default:null}},emits:["update:candidateValue","update:partyValue","update:checkedValue"],setup(e,{emit:l}){const t=c.inject("i18n"),{t:a}=t.global,n=e,s=l;c.onMounted(()=>{n.locale&&W(n.locale)}),c.watch(()=>n.locale,()=>{n.locale&&W(n.locale)},{deep:!0});const o=f=>{s("update:candidateValue",f),r()},i=f=>{s("update:partyValue",f),r()},r=()=>{const f=n.partyValue!==""||n.candidateValue!=="";f!==n.checkedValue&&s("update:checkedValue",f)};return(f,u)=>{const d=c.resolveComponent("AVOptionCheckbox");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass({AVWriteInOption:!0,"AVWriteInOption--disabled":e.disabled}),"aria-label":c.unref(a)("js.components.AVWriteInOption.aria_labels.option")},[c.createElementVNode("div",L21,[c.createElementVNode("div",g21,[c.createElementVNode("div",C21,c.toDisplayString(c.unref(a)("js.components.AVWriteInOption.title")),1),c.createElementVNode("div",M21,[c.createElementVNode("select",{class:"AVWriteInOption--form-control","aria-label":c.unref(a)("js.components.AVWriteInOption.aria_labels.party"),disabled:e.disabled,onInput:u[0]||(u[0]=m=>i(m.target.value))},[c.createElementVNode("option",b21,c.toDisplayString(c.unref(a)("js.components.AVWriteInOption.choose_party")),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.parties,m=>(c.openBlock(),c.createElementBlock("option",{key:m.letter,value:m.letter,selected:m.letter===e.partyValue},c.toDisplayString(m.letter)+" - "+c.toDisplayString(m.name),9,A21))),128))],40,v21),c.createElementVNode("input",{value:e.candidateValue,class:"AVWriteInOption--form-control",placeholder:c.unref(a)("js.components.AVWriteInOption.placeholder"),"aria-label":c.unref(a)("js.components.AVWriteInOption.aria_labels.candidate"),disabled:e.disabled,onInput:u[1]||(u[1]=m=>o(m.target.value))},null,40,_21)])]),c.createVNode(d,{class:"AVWriteInOption--checkbox",checked:e.checkedValue,"option-id":0,disabled:e.disabled||e.observerMode},null,8,["checked","disabled"])])],10,h21)}}}),Hj=O(N21,[["__scopeId","data-v-f2bba574"]]),k21={class:"AVSubmissionHelper"},x21={key:1},y21=["textContent"],V21={key:2},S21={class:"AVSubmissionHelper--help"},w21={key:0},E21={key:1},B21=["innerHTML"],T21={key:3},H21=c.defineComponent({__name:"AVSubmissionHelper",props:{minMarks:{type:Number,required:!0},maxMarks:{type:Number,required:!0},errors:{type:Array,required:!0},chosenCount:{type:Number,required:!0},hasExclusiveOptions:{type:Boolean,default:!1},weight:{type:Number,default:null},locale:{type:String,default:null}},setup(e){const l=e,t=c.computed(()=>l.errors.map(o=>o.keys?(Object.keys(o.keys).forEach(i=>{typeof o.keys[i]=="object"&&(o.keys[i]=o.keys[i][s.value])}),n(`js.components.AVSubmissionHelper.errors.${o.message}`,o.keys)):n(`js.components.AVSubmissionHelper.errors.${o.message}`))),a=c.inject("i18n"),{t:n}=a.global,s=c.computed(()=>a.global.locale.value||a.global.locale);return c.onMounted(()=>{l.locale&&W(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&W(l.locale)},{deep:!0}),(o,i)=>(c.openBlock(),c.createElementBlock("div",k21,[c.createElementVNode("div",{class:c.normalizeClass(["AVSubmissionHelper--container",{"AVSubmissionHelper--danger":e.errors.length>0}]),"data-test":"submission-helper"},[e.weight?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass({"AVSubmissionHelper--weight":!0,"AVSubmissionHelper--weight-danger":e.errors.length>0}),"data-test":"submission-helper-weight"},c.toDisplayString(c.unref(n)("js.components.AVSubmissionHelper.your_vote_weight",{weight:e.weight})),3)):c.createCommentVNode("",!0),e.errors.length>0?(c.openBlock(),c.createElementBlock("div",x21,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.value,r=>(c.openBlock(),c.createElementBlock("div",{key:r,role:"alert",textContent:c.toDisplayString(r),"data-test":"submission-helper-error"},null,8,y21))),128)),i[0]||(i[0]=c.createElementVNode("hr",{class:"AVSubmissionHelper--separator"},null,-1))])):c.createCommentVNode("",!0),e.maxMarks>1?(c.openBlock(),c.createElementBlock("div",V21,[c.createElementVNode("div",S21,[e.minMarks===e.maxMarks?(c.openBlock(),c.createElementBlock("div",w21,c.toDisplayString(`${c.unref(n)("js.components.AVSubmissionHelper.select_exactly",{min_marks:e.minMarks})}`),1)):(c.openBlock(),c.createElementBlock("div",E21,c.toDisplayString(`${e.hasExclusiveOptions?c.unref(n)("js.components.AVSubmissionHelper.select_multiple_with_exclusives",{min_marks:e.minMarks,max_marks:e.maxMarks}):c.unref(n)("js.components.AVSubmissionHelper.select_multiple",{min_marks:e.minMarks,max_marks:e.maxMarks})}`),1)),e.chosenCount>0?(c.openBlock(),c.createElementBlock("div",{key:2,innerHTML:c.unref(n)("js.components.AVSubmissionHelper.selected",{selected:e.chosenCount}),class:"AVSubmissionHelper--count","data-test":"submission-helper-count"},null,8,B21)):c.createCommentVNode("",!0)])])):(c.openBlock(),c.createElementBlock("div",T21,[c.createElementVNode("div",null,c.toDisplayString(c.unref(n)("js.components.AVSubmissionHelper.select_single")),1)]))],2)]))}}),Ij=O(H21,[["__scopeId","data-v-db1640de"]]);function I21(e,l,t){if(typeof t!="function")throw new Error("search_by must be a function that returns a string");const a=l.toLowerCase().trim().split(/\s+/);return e.filter(n=>{const s=t(n).toLowerCase().trim().split(/\s+/);return a.every(o=>s.some(i=>i.includes(o)))})}const O21=["aria-label"],D21={class:"AVSearchBallot--form-group"},P21=["textContent"],R21={class:"AVSearchBallot--input-group"},F21=["placeholder"],$21={id:"ballot_searcher_results",class:"AVSearchBallot--results","aria-live":"polite","aria-label":"search-results","data-test":"search-results"},q21=["aria-label"],j21={key:0,class:"AVSeachOptionBallot--ancestry"},U21={class:"AVSeachOptionBallot--breadcrumb"},W21=["id","aria-label","onClick"],J21=["textContent"],G21=["textContent"],Z21=c.defineComponent({__name:"AVSearchBallot",props:{options:{type:Array,required:!0},locale:{type:String,default:null}},setup(e){const{eventBusEmit:l}=Ej(),t=e,a=c.ref(""),n=c.computed(()=>a.value.trim()===""?[]:I21(t.options,a.value,m=>m.title[d.value])),s=m=>o(m,[]).reverse(),o=(m,p)=>m.parentContent?(p.push(m.parentContent),o(m.parentContent,p)):p,i=()=>{a.value=""},r=m=>{l("highlight-option",m.reference),i()},f=c.inject("i18n"),{t:u}=f.global,d=c.computed(()=>f.global.locale.value||f.global.locale);return c.onMounted(()=>{t.locale&&W(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&W(t.locale)},{deep:!0}),(m,p)=>(c.openBlock(),c.createElementBlock("form",{role:"search",class:"AVSearchBallot","aria-label":c.unref(u)("js.components.AVSearchBallot.aria_labels.ballot_options"),"data-test":"search-ballot",onSubmit:p[1]||(p[1]=c.withModifiers(()=>{},["prevent"]))},[c.createElementVNode("div",D21,[c.createElementVNode("label",{for:"ballot_search",class:"AVSearchBallot--label",textContent:c.toDisplayString(c.unref(u)("js.components.AVSearchBallot.search_the_ballot"))},null,8,P21),c.createElementVNode("div",R21,[c.withDirectives(c.createElementVNode("input",{id:"ballot_search","onUpdate:modelValue":p[0]||(p[0]=L=>a.value=L),type:"search",class:"AVSearchBallot--form-control",placeholder:c.unref(u)("js.components.AVSearchBallot.enter_option_name"),"data-test":"search-ballot-input"},null,8,F21),[[c.vModelText,a.value]])])]),c.createElementVNode("div",$21,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.value,L=>(c.openBlock(),c.createElementBlock("div",{key:L,"aria-label":L.title[d.value]},[s(L).length>0?(c.openBlock(),c.createElementBlock("div",j21,[c.createElementVNode("ul",U21,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s(L),M=>(c.openBlock(),c.createElementBlock("li",{key:M.reference,class:"AVSeachOptionBallot--breadcrumb-item"},c.toDisplayString(M.title[d.value]),1))),128))])])):c.createCommentVNode("",!0),c.createElementVNode("div",{id:`search_result_${L.reference}`,class:"AVSearchBallot--option",role:"button","aria-label":c.unref(u)("js.components.AVSearchBallot.aria_labels.go_to_option"),"data-test":"search-result",onClick:c.withModifiers(M=>r(L),["prevent"])},[c.createElementVNode("span",{class:"AVSearchBallot--link",textContent:c.toDisplayString(L.title[d.value])},null,8,J21)],8,W21)],8,q21))),128)),a.value&&n.value.length===0?(c.openBlock(),c.createElementBlock("div",{key:0,class:"AVSearchBallot--alert",textContent:c.toDisplayString(c.unref(u)("js.components.AVSearchBallot.no_results"))},null,8,G21)):c.createCommentVNode("",!0)])],40,O21))}}),Oj=O(Z21,[["__scopeId","data-v-0b2b5c97"]]),Q21={class:"AVSplitWeightHelper"},Y21={class:"AVSplitWeightHelper--box","data-test":"weight-helper-total"},K21={class:"AVSplitWeightHelper--box","data-test":"weight-helper-assigned"},X21={class:"AVSplitWeightHelper--box","data-test":"weight-helper-unused"},e31=c.defineComponent({__name:"AVSplitWeightHelper",props:{assignedWeight:{type:Number,required:!0},unusedWeight:{type:Number,required:!0},activeAssigned:{type:Number,default:null},locale:{type:String,default:null}},setup(e){const l=c.inject("i18n"),{t}=l.global,a=e;return c.onMounted(()=>{a.locale&&W(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&W(a.locale)},{deep:!0}),(n,s)=>(c.openBlock(),c.createElementBlock("div",Q21,[c.createElementVNode("div",Y21,[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(c.unref(t)("js.components.AVSplitWeightHelper.total"))+" ",1),c.createElementVNode("strong",null,c.toDisplayString(e.assignedWeight+e.unusedWeight),1)])]),c.createElementVNode("div",K21,[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(c.unref(t)("js.components.AVSplitWeightHelper.assigned"))+" ",1),c.createElementVNode("strong",null,c.toDisplayString(e.assignedWeight),1)])]),c.createElementVNode("div",X21,[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(c.unref(t)("js.components.AVSplitWeightHelper.unused"))+" ",1),c.createElementVNode("strong",null,c.toDisplayString(e.unusedWeight),1)])])]))}}),Dj=O(e31,[["__scopeId","data-v-3a80cb22"]]),c31={class:"AVSplitWizardHeader","data-test":"split-wizard-header"},l31={key:0,class:"AVSplitWizardHeader--text",style:{"font-weight":"400"}},t31={key:1,class:"AVSplitWizardHeader--text",style:{"font-weight":"400"}},a31={key:2,class:"AVSplitWizardHeader--text",style:{"font-weight":"400"}},n31=c.defineComponent({__name:"AVSplitWizardHeader",props:{activeSelectionPileIndex:{type:Number},activeState:{type:String,required:!0},selectionPiles:{type:Array,required:!0},totalWeight:{type:Number,required:!0},isEditing:{type:Boolean,required:!0},locale:{type:String,default:null}},emits:["cancel"],setup(e){const l=c.inject("i18n"),{t}=l.global,a=e;return c.onMounted(()=>{a.locale&&W(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&W(a.locale)},{deep:!0}),(n,s)=>{const o=c.resolveComponent("AVTooltip");return c.openBlock(),c.createElementBlock("header",c31,[e.activeState==="ballot"?(c.openBlock(),c.createElementBlock("p",l31,c.toDisplayString(e.isEditing?`${c.unref(t)("js.components.AVSplitWizardHeader.ballot.editing")} ${e.activeSelectionPileIndex+1}`:`${c.unref(t)("js.components.AVSplitWizardHeader.ballot.adding")} ${e.selectionPiles.length+1}`),1)):e.activeState==="assign"?(c.openBlock(),c.createElementBlock("p",t31,c.toDisplayString(e.isEditing?`${c.unref(t)("js.components.AVSplitWizardHeader.assign.header")} ${(e.isEditing?e.activeSelectionPileIndex:e.selectionPiles.length)+1}`:`${c.unref(t)("js.components.AVSplitWizardHeader.assign.header_edit_mode")} ${(e.isEditing?e.activeSelectionPileIndex:e.selectionPiles.length)+1}`),1)):(c.openBlock(),c.createElementBlock("p",a31,c.toDisplayString(c.unref(t)("js.components.AVSplitWizardHeader.overview.header")),1)),e.activeState==="ballot"?(c.openBlock(),c.createBlock(o,{key:3,content:`${c.unref(t)("js.components.AVSplitWizardHeader.ballot.can_assign_description_pre")} ${e.totalWeight} ${c.unref(t)("js.components.AVSplitWizardHeader.ballot.can_assign_description_pos")}`,text:`${c.unref(t)("js.components.AVSplitWizardHeader.ballot.can_assign_ballots_pre")} ${e.totalWeight} ${c.unref(t)("js.components.AVSplitWizardHeader.ballot.can_assign_ballots_pos")}`,class:"AVSplitWizardHeader--tooltip-text",icon:"circle-info",id:"split-helper-tooltip",position:"top","data-test":"split-wizard-tooltip"},null,8,["content","text"])):c.createCommentVNode("",!0)])}}}),Pj=O(n31,[["__scopeId","data-v-13834427"]]),s31={class:"AVElectaContestCard--title"},o31={class:"AVElectaContestCard--subtitle"},i31=c.defineComponent({__name:"AVElectaContestCard",props:{contestTitle:{type:String,required:!0},votingRoundTitle:{type:String,required:!0}},setup(e){return(l,t)=>{const a=c.resolveComponent("AVCard");return c.openBlock(),c.createBlock(a,{variant:"rounded-electa"},{default:c.withCtx(()=>[c.createElementVNode("h3",s31,c.toDisplayString(e.contestTitle),1),c.createElementVNode("p",o31,c.toDisplayString(e.votingRoundTitle),1),t[0]||(t[0]=c.createElementVNode("div",{class:"AVElectaContestCard--line"},null,-1)),c.renderSlot(l.$slots,"card-content",{},void 0,!0)]),_:3})}}}),Rj=O(i31,[["__scopeId","data-v-8a538d47"]]),r31={class:"AVResultOption--content"},f31={class:"AVResultOption--inner-content"},m31=["src"],u31={class:"AVResultOption--title","data-test":"result-title"},d31={class:"AVResultOption--result-container","data-test":"result-results"},p31={class:"AVResultOption--result-count"},z31={key:0,class:"AVResultOption--result-percentage"},h31=c.defineComponent({__name:"AVResultOption",props:{optionTitle:{type:Object,required:!0},optionImage:{type:String,default:null},votes:{type:Number,required:!0},total:{type:Number,required:!0},elected:{type:Boolean,default:!1},tied:{type:Boolean,default:!1},hidePercentage:{type:Boolean,default:!1},locale:{type:String,default:null}},setup(e){const l=e,t=c.computed(()=>l.total>0?Math.round(l.votes/l.total*1e4)/100:0),a=c.computed(()=>Math.round(l.votes*100)/100),n=c.inject("i18n"),s=c.computed(()=>n.global.locale.value||n.global.locale);return c.onMounted(()=>{l.locale&&W(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&W(l.locale)},{deep:!0}),(o,i)=>{const r=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["AVResultOption",{"AVResultOption--bg-default":!e.tied&&!e.elected,"AVResultOption--bg-elected":e.elected,"AVResultOption--bg-tied":e.tied}]),"data-test":"result-option"},[c.withDirectives((c.openBlock(),c.createElementBlock("div",r31,[c.createElementVNode("div",f31,[e.optionImage?(c.openBlock(),c.createElementBlock("img",{key:0,src:e.optionImage,class:"AVResultOption--image","data-test":"result-image"},null,8,m31)):c.createCommentVNode("",!0),c.createElementVNode("header",u31,c.toDisplayString(e.optionTitle[s.value]),1)]),c.createElementVNode("div",d31,[c.createElementVNode("div",p31,c.toDisplayString(a.value),1),e.hidePercentage?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",z31,c.toDisplayString(t.value)+"% ",1))])])),[[r,e.optionTitle[s.value]]])],2)}}}),Fj=O(h31,[["__scopeId","data-v-35bf20c6"]]),L31="data:image/svg+xml,%3csvg%20width='789'%20height='134'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:undefined='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xml:space='preserve'%20version='1.1'%3e%3cdefs%20id='defs6'%3e%3cclipPath%20id='clipPath16'%20clipPathUnits='userSpaceOnUse'%3e%3cpath%20id='path14'%20d='m-93.50311,780.92563l841.89,0l0,-595.276l-841.89,0l0,595.276z'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%3e%3ctitle%3eLayer%201%3c/title%3e%3cg%20id='svg_1'%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g18'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path20'%20d='m40.003,545.04105l-30.05,-30.016c-6.258,8.368%20-9.953,18.756%20-9.953,29.998c0,27.75%2022.485,50.253%2050.235,50.253c11.277,0%2021.684,-3.713%2030.067,-9.988l-29.858,-29.824l-8.524,8.524l-20.847,0l18.93,-18.947z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g22'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path24'%20d='m100.46931,545.02348c0,-27.731%20-22.485,-50.234%20-50.234,-50.234c-11.174,0%20-21.493,3.642%20-29.842,9.813l30.051,29.998l8.523,-8.523l20.847,0l-18.929,18.946l29.806,29.771c6.153,-8.331%209.778,-18.633%209.778,-29.771'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g26'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path28'%20d='m149.3263,542.50977c-2.465,7.926%20-3.851,12.409%20-4.161,13.45c-0.31,1.037%20-0.533,1.859%20-0.666,2.463c-0.554,-2.146%20-2.137,-7.451%20-4.752,-15.913l9.579,0zm4.525,-15.284l-2.666,8.748l-13.398,0l-2.665,-8.748l-8.397,0l12.972,36.904l9.528,0l13.021,-36.904l-8.395,0z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g30'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path32'%20d='m188.56751,537.43067c0,-3.318%20-1.194,-5.933%20-3.583,-7.844c-2.388,-1.91%20-5.71,-2.864%20-9.967,-2.864c-3.922,0%20-7.391,0.737%20-10.408,2.212l0,7.24c2.48,-1.106%204.58,-1.886%206.297,-2.338c1.719,-0.453%203.289,-0.678%204.714,-0.678c1.71,0%203.021,0.326%203.934,0.98c0.914,0.653%201.371,1.625%201.371,2.916c0,0.72%20-0.201,1.361%20-0.604,1.922c-0.401,0.561%20-0.993,1.101%20-1.773,1.623c-0.778,0.518%20-2.367,1.347%20-4.762,2.489c-2.247,1.054%20-3.931,2.069%20-5.054,3.041c-1.123,0.972%20-2.02,2.103%20-2.689,3.394c-0.672,1.29%20-1.006,2.798%20-1.006,4.526c0,3.249%201.102,5.805%203.305,7.666c2.204,1.86%205.25,2.791%209.139,2.791c1.91,0%203.732,-0.228%205.467,-0.679c1.734,-0.454%203.549,-1.09%205.443,-1.911l-2.514,-6.058c-1.961,0.805%20-3.582,1.366%20-4.865,1.683c-1.281,0.32%20-2.543,0.478%20-3.783,0.478c-1.475,0%20-2.607,-0.344%20-3.394,-1.03c-0.788,-0.688%20-1.181,-1.584%20-1.181,-2.69c0,-0.688%200.158,-1.287%200.477,-1.797c0.318,-0.511%200.826,-1.006%201.521,-1.484c0.695,-0.478%202.342,-1.336%204.94,-2.576c3.436,-1.642%205.79,-3.289%207.065,-4.941c1.272,-1.651%201.91,-3.674%201.91,-6.071'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g34'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path36'%20d='m216.92442,537.43067c0,-3.318%20-1.194,-5.933%20-3.583,-7.844c-2.388,-1.91%20-5.71,-2.864%20-9.967,-2.864c-3.922,0%20-7.391,0.737%20-10.408,2.212l0,7.24c2.48,-1.106%204.58,-1.886%206.297,-2.338c1.719,-0.453%203.289,-0.678%204.714,-0.678c1.709,0%203.021,0.326%203.934,0.98c0.914,0.653%201.371,1.625%201.371,2.916c0,0.72%20-0.201,1.361%20-0.604,1.922c-0.402,0.561%20-0.993,1.101%20-1.773,1.623c-0.778,0.518%20-2.367,1.347%20-4.763,2.489c-2.246,1.054%20-3.93,2.069%20-5.053,3.041c-1.123,0.972%20-2.02,2.103%20-2.689,3.394c-0.672,1.29%20-1.006,2.798%20-1.006,4.526c0,3.249%201.102,5.805%203.305,7.666c2.204,1.86%205.25,2.791%209.138,2.791c1.911,0%203.733,-0.228%205.468,-0.679c1.734,-0.454%203.549,-1.09%205.442,-1.911l-2.513,-6.058c-1.961,0.805%20-3.582,1.366%20-4.865,1.683c-1.281,0.32%20-2.543,0.478%20-3.783,0.478c-1.475,0%20-2.607,-0.344%20-3.394,-1.03c-0.788,-0.688%20-1.182,-1.584%20-1.182,-2.69c0,-0.688%200.159,-1.287%200.477,-1.797c0.319,-0.511%200.826,-1.006%201.522,-1.484c0.695,-0.478%202.342,-1.336%204.94,-2.576c3.435,-1.642%205.789,-3.289%207.064,-4.941c1.273,-1.651%201.911,-3.674%201.911,-6.071'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g38'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path40'%20d='m244.75251,527.22566l-21.167,0l0,36.752l21.167,0l0,-6.384l-13.374,0l0,-8.07l12.443,0l0,-6.386l-12.443,0l0,-9.476l13.374,0l0,-6.436z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g42'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path44'%20d='m267.982,527.22566l-8.849,28.834l-0.227,0c0.319,-5.867%200.477,-9.78%200.477,-11.74l0,-17.094l-6.963,0l0,36.752l10.609,0l8.698,-28.105l0.151,0l9.226,28.105l10.609,0l0,-36.752l-7.265,0l0,17.396c0,0.82%200.012,1.768%200.037,2.84c0.025,1.073%200.138,3.922%200.339,8.547l-0.226,0l-9.476,-28.783l-7.14,0z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g46'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path48'%20d='m307.17591,543.23835l0,-9.577l5.076,0c2.146,0%203.73,0.408%204.751,1.231c1.024,0.82%201.533,2.078%201.533,3.772c0,3.048%20-2.178,4.574%20-6.534,4.574l-4.826,0zm0,6.185l4.522,0c2.115,0%203.643,0.327%204.59,0.979c0.946,0.655%201.419,1.736%201.419,3.245c0,1.407%20-0.513,2.415%20-1.547,3.028c-1.029,0.612%20-2.659,0.918%20-4.888,0.918l-4.096,0l0,-8.17zm-7.795,14.554l11.44,0c5.21,0%208.994,-0.742%2011.348,-2.223c2.356,-1.484%203.533,-3.844%203.533,-7.077c0,-2.197%20-0.516,-3.998%20-1.546,-5.406c-1.03,-1.408%20-2.402,-2.254%20-4.109,-2.538l0,-0.253c2.328,-0.518%204.009,-1.49%205.039,-2.916c1.029,-1.424%201.546,-3.318%201.546,-5.68c0,-3.352%20-1.211,-5.966%20-3.634,-7.843c-2.42,-1.877%20-5.709,-2.816%20-9.865,-2.816l-13.752,0l0,36.752z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g50'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path52'%20d='m333.97279,527.22566l0,36.752l7.794,0l0,-30.316l14.907,0l0,-6.436l-22.701,0z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g54'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path56'%20d='m367.63191,548.84477l7.667,15.133l8.397,0l-12.194,-22.449l0,-14.303l-7.743,0l0,14.053l-12.191,22.699l8.446,0l7.618,-15.133z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g58'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path60'%20d='m429.52549,563.97755l7.87,0l-12.496,-36.752l-8.496,0l-12.469,36.752l7.868,0l6.913,-21.87c0.385,-1.291%200.786,-2.795%201.194,-4.514c0.411,-1.716%200.669,-2.912%200.766,-3.582c0.186,1.542%200.814,4.241%201.886,8.096l6.964,21.87z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g62'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path64'%20d='m447.04399,545.65138c0,-4.107%200.779,-7.197%202.337,-9.275c1.559,-2.079%203.889,-3.118%206.99,-3.118c6.216,0%209.324,4.129%209.324,12.393c0,8.279%20-3.089,12.42%20-9.275,12.42c-3.1,0%20-5.438,-1.044%20-7.015,-3.13c-1.575,-2.088%20-2.361,-5.185%20-2.361,-9.29m26.823,0c0,-6.082%20-1.508,-10.759%20-4.524,-14.026c-3.017,-3.269%20-7.341,-4.903%20-12.972,-4.903c-5.632,0%20-9.955,1.634%20-12.972,4.903c-3.016,3.267%20-4.525,7.96%20-4.525,14.078c0,6.115%201.513,10.788%204.536,14.012c3.026,3.228%207.363,4.841%2013.01,4.841c5.649,0%209.969,-1.627%2012.961,-4.876c2.989,-3.254%204.486,-7.928%204.486,-14.029'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g66'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path68'%20d='m493.37309,527.22566l-7.792,0l0,30.267l-9.981,0l0,6.485l27.752,0l0,-6.485l-9.979,0l0,-30.267z'/%3e%3c/g%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path70'%20d='m677.88556,41.73118l10.392,0l0,49.00266l-10.392,0l0,-49.00266z'/%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g72'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path74'%20d='m556.16221,527.22566l-9.903,0l-15.989,27.802l-0.228,0c0.319,-4.909%200.478,-8.413%200.478,-10.507l0,-17.295l-6.962,0l0,36.752l9.83,0l15.961,-27.525l0.176,0c-0.25,4.775%20-0.378,8.151%20-0.378,10.128l0,17.397l7.015,0l0,-36.752z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g76'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path78'%20d='m577.07823,547.86375l14.58,0l0,-19.054c-2.364,-0.774%20-4.588,-1.312%20-6.675,-1.622c-2.087,-0.311%20-4.218,-0.465%20-6.397,-0.465c-5.549,0%20-9.783,1.629%20-12.708,4.889c-2.925,3.26%20-4.387,7.939%20-4.387,14.04c0,5.933%201.696,10.558%205.091,13.877c3.394,3.318%208.098,4.978%2014.115,4.978c3.771,0%207.408,-0.755%2010.909,-2.264l-2.587,-6.234c-2.683,1.341%20-5.472,2.011%20-8.373,2.011c-3.368,0%20-6.067,-1.131%20-8.093,-3.394c-2.03,-2.262%20-3.041,-5.303%20-3.041,-9.124c0,-3.991%200.815,-7.037%202.449,-9.139c1.636,-2.103%204.011,-3.156%207.128,-3.156c1.624,0%203.275,0.168%204.952,0.503l0,7.669l-6.963,0l0,6.485z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",g31=["src"],C31=c.defineComponent({__name:"AVFooter",props:{enableSteps:{type:Boolean,default:!1},steps:{type:Array,default:null},active:{type:String,default:null},done:{type:Array,default:null},disableBanner:{type:Boolean,default:!1}},setup(e){return(l,t)=>{const a=c.resolveComponent("AVSteps");return c.openBlock(),c.createElementBlock("footer",{class:c.normalizeClass(["AVFooter",{"AVFooter--stacked":e.enableSteps}])},[e.enableSteps?(c.openBlock(),c.createBlock(a,{key:0,steps:e.steps,done:e.done,active:e.active,class:"AVFooter--child"},null,8,["steps","done","active"])):c.createCommentVNode("",!0),e.disableBanner?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(["AVFooter--base AVFooter--child",{"AVFooter--child-stacked":e.enableSteps}])},[t[0]||(t[0]=c.createElementVNode("span",{class:"AVFooter--text"},"Technology by",-1)),c.createElementVNode("img",{src:c.unref(L31),alt:"Assembly Voting",class:"AVFooter--img"},null,8,g31)],2))],2)}}}),$j=O(C31,[["__scopeId","data-v-1a82d440"]]);var M31={},v31={class:"AVSidebar"};function b31(e,l){return c.openBlock(),c.createElementBlock("nav",v31,[c.renderSlot(e.$slots,"default",{},void 0,!0)])}const qj=O(M31,[["render",b31],["__scopeId","data-v-65e0965f"]]);var A31={},_31={class:"AVNavbar"};function N31(e,l){return c.openBlock(),c.createElementBlock("nav",_31,[c.renderSlot(e.$slots,"default",{},void 0,!0)])}const jj=O(A31,[["render",N31],["__scopeId","data-v-3ea1799f"]]);var k31={},x31={class:"AVContent"},y31={class:"AVContent--sidebar","data-test":"sidebar"},V31={class:"AVContent--container","data-test":"container"};function S31(e,l){return c.openBlock(),c.createElementBlock("main",x31,[c.createElementVNode("div",y31,[c.renderSlot(e.$slots,"sidebar",{},void 0,!0)]),c.createElementVNode("div",V31,[c.renderSlot(e.$slots,"content",{},void 0,!0)])])}const Uj=O(k31,[["render",S31],["__scopeId","data-v-1923eca8"]]),w31=["aria-labelledby"],E31=c.defineComponent({__name:"AVModal",props:{modalActive:{type:Boolean,required:!0},ariaLabelledBy:{type:String,required:!0},removePadding:{type:Boolean,default:!1}},emits:["clickOutside"],setup(e,{emit:l}){const t=l,a=e;return c.watch(()=>a.modalActive,()=>{a.modalActive&&(document.body.style.overflowY="hidden"),a.modalActive||(document.body.style.overflowY="scroll")}),(n,s)=>(c.openBlock(),c.createBlock(c.Transition,{name:"modal-animation"},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{class:"AVModal",role:"dialog","aria-labelledby":e.ariaLabelledBy,"aria-modal":"true","aria-live":"assertive",onClick:s[1]||(s[1]=c.withModifiers(o=>t("clickOutside"),["stop"]))},[c.createVNode(c.Transition,{name:"modal-animation-inner"},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{class:c.normalizeClass(["AVModal--inner",{"AVModal--padding":!e.removePadding}]),onClick:s[0]||(s[0]=c.withModifiers(()=>{},["stop"]))},[c.renderSlot(n.$slots,"default",{},void 0,!0)],2),[[c.vShow,e.modalActive]])]),_:3})],8,w31),[[c.vShow,e.modalActive]])]),_:3}))}}),Wj=O(E31,[["__scopeId","data-v-ef5af7c2"]]),i4=(e,l)=>e.flatMap(t=>(l&&(t.parentContent={reference:l.reference,code:l.code,title:{...l.title}}),t.children?[t,...i4(t.children,t)]:[t]));var r4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ot={},B31=r4&&r4.__spreadArray||function(e,l,t){if(t||arguments.length===2)for(var a=0,n=l.length,s;a<n;a++)(s||!(a in l))&&(s||(s=Array.prototype.slice.call(l,0,a)),s[a]=l[a]);return e.concat(s||Array.prototype.slice.call(l))};Object.defineProperty(Ot,"__esModule",{value:!0});var T31=function(){function e(l){this.contest=l}return e.prototype.validate=function(l,t){t===void 0&&(t=!1);var a=[];return this.referenceMissing(l.optionSelections)&&a.push({message:"invalid_reference"}),this.tooManySelections(l.optionSelections)&&a.push({message:"too_many"}),this.blankNotAlone(l.optionSelections,l.explicitBlank)&&a.push({message:"blank"}),this.exclusiveNotAlone(l.optionSelections)&&a.push({message:"exclusive"}),a.push.apply(a,this.exceededListVotes(l.optionSelections)),l.explicitBlank||this.implicitlyBlank(l.optionSelections)||t&&a.push.apply(a,this.belowMinListVotes(l.optionSelections)),a},e.prototype.isComplete=function(l){var t=l.explicitBlank||this.optionIsExclusive(l)||this.implicitlyBlank(l.optionSelections)||!this.tooFewSelections(l.optionSelections);return t&&this.validate(l).length==0},Object.defineProperty(e.prototype,"optionReferences",{get:function(){return this.recursiveFlattener(this.contest.options).map(function(l){return l.reference})},enumerable:!1,configurable:!0}),e.prototype.recursiveFlattener=function(l){var t=this;if(!l)return[];var a=l.flatMap(function(n){return n.children?B31([n],t.recursiveFlattener(n.children),!0):[n]});return a},e.prototype.selectedReferences=function(l){return l.map(function(t){return t.reference})},e.prototype.referenceMissing=function(l){var t=this;return!this.selectedReferences(l).every(function(a){return a==="blank"||t.optionReferences.includes(a)})},e.prototype.implicitlyBlank=function(l){return this.contest.markingType.blankSubmission==="implicit"&&l.length===0},e.prototype.tooFewSelections=function(l){return l.length<this.contest.markingType.minMarks},e.prototype.tooManySelections=function(l){return l.length>this.contest.markingType.maxMarks},e.prototype.belowMinListVotes=function(l){var t=this,a=this.recursiveFlattener(this.contest.options),n=a.map(function(o){return o!=null&&o.minChooseableSuboptions?o:null}),s=[];return n.forEach(function(o){o!=null&&o.minChooseableSuboptions&&t.selectedChildren(l,[o])<o.minChooseableSuboptions&&s.push({message:"below_list_limit",keys:{list_name:o.title,min_list_marks:o.minChooseableSuboptions}})}),s},e.prototype.exceededListVotes=function(l){var t=this,a=this.recursiveFlattener(this.contest.options),n=a.map(function(o){return o!=null&&o.maxChooseableSuboptions?o:null}),s=[];return n.forEach(function(o){o!=null&&o.maxChooseableSuboptions&&t.selectedChildren(l,[o])>o.maxChooseableSuboptions&&s.push({message:"exceeded_list_limit",keys:{list_name:o.title,max_list_marks:o.maxChooseableSuboptions}})}),s},e.prototype.selectedChildren=function(l,t,a){var n=this;return a===void 0&&(a=0),t&&t.forEach(function(s){var o,i=(o=s==null?void 0:s.children)===null||o===void 0?void 0:o.filter(function(r){return n.selectedReferences(l).includes(r.reference)});a+=(i==null?void 0:i.length)||0,s.children&&(a=n.selectedChildren(l,s.children,a))}),a},e.prototype.exclusiveNotAlone=function(l){if(this.selectedReferences(l).length<2)return!1;var t=this.recursiveFlattener(this.contest.options);return this.selectedReferences(l).map(function(a){return t.find(function(n){return n.reference===a})}).some(function(a){return(a==null?void 0:a.exclusive)===!0})},e.prototype.blankNotAlone=function(l,t){return l.length>0&&t},e.prototype.optionIsExclusive=function(l){var t,a;return((t=l.optionSelections)===null||t===void 0?void 0:t.length)===1&&((a=this.contest.options.find(function(n){return n.reference===l.optionSelections[0].reference}))===null||a===void 0?void 0:a.exclusive)},e}(),Jj=Ot.default=T31,Gj={};Object.defineProperty(Gj,"__esModule",{value:!0});var H31=function(){function e(l){this.contest=l}return e.prototype.validate=function(l){var t=[];return this.partyExclusive(l.optionSelections)&&t.push({message:"cross_party_voting"}),t},e.prototype.selectedReferences=function(l){return l.map(function(t){return t.reference})},e.prototype.partyExclusive=function(l){var t=this.selectedReferences(l),a=this.contest.options.filter(function(s){return t.includes(s.reference)}).length>1,n=!1;return this.contest.options.forEach(function(s){var o,i;if(t.includes(s.reference)){var r=t.filter(function(d){return d!==s.reference}),f=(o=s.children)===null||o===void 0?void 0:o.map(function(d){return d.reference});a=r.some(function(d){return!(f!=null&&f.includes(d))})}var u=(i=s.children)===null||i===void 0?void 0:i.some(function(d){return t.includes(d.reference)});n&&u?a=!0:u&&(n=!0)}),a},e}(),I31=Gj.default=H31;const O31=["aria-label","aria-describedby"],D31=["id"],P31=["aria-label"],R31=c.defineComponent({__name:"AVBallot",props:{contest:{type:Object,required:!0},selectionPile:{type:Object,required:!0},locale:{type:String,default:null},showSubmissionHelper:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},observerMode:{type:Boolean,default:!1},partialResults:{type:Object,default:null},weight:{type:Number,default:null},includeLazyErrors:{type:Boolean,default:!1},imageOption:{type:String,default:"square"}},emits:["update:selectionPile","update:errors","view-candidate"],setup(e,{emit:l}){const t=e,a=l,n=c.ref(!1),s=c.ref(""),o=c.ref(""),i=c.ref(null),r=c.computed(()=>t.selectionPile.optionSelections),f=c.computed(()=>new Jj(t.contest)),u=c.computed(()=>t.contest.disregardVoterWeight?null:t.weight),d=c.computed(()=>{var N;let x=[];return(N=t.contest.customRulesets)!=null&&N.includes("belgian_ballot_rules")&&x.push(new I31(t.contest)),x}),m=c.computed(()=>{let x=[];d.value.forEach(E=>{x.push(...E.validate(t.selectionPile))});const N=[...f.value.validate(t.selectionPile,t.includeLazyErrors),...x];if(M.value&&N.some(E=>E.message==="cross_party_voting")){let E;N.some(R=>R.message==="exclusive")&&(E=N.findIndex(R=>R.message==="exclusive"),N.splice(E,1)),N.some(R=>R.message==="blank")&&(E=N.findIndex(R=>R.message==="cross_party_voting"),N.splice(E,1))}return a("update:errors",N),N}),p=c.computed(()=>m.value.length===0),L=c.computed(()=>{var x;return(x=t.contest.question)==null?void 0:x[V.value]}),M=c.computed(()=>{var x;return(x=t.contest.customRulesets)==null?void 0:x.includes("belgian_ballot_rules")}),v=c.computed(()=>i4(t.contest.options).some(x=>x.exclusive)),b=c.computed(()=>t.contest);c.watch(b,(x,N)=>{var E;N&&x&&x.reference!==N.reference&&((E=document.getElementById("content"))==null||E.focus(),N.searchForm&&(i.value.value=""))});const C=()=>{a("update:selectionPile",{...t.selectionPile,explicitBlank:!t.selectionPile.explicitBlank})},g=({reference:x,amount:N})=>{const E=r.value.filter(S=>S.reference===x).length;N===E&&(N=N-1);const R=r.value.filter(S=>S.reference!==x);for(let S=0;S<N;S++)R.push({reference:x});a("update:selectionPile",{...t.selectionPile,optionSelections:R})},A=x=>a("view-candidate",x),k=c.inject("i18n"),{t:_}=k.global,V=c.computed(()=>k.global.locale.value||k.global.locale);return c.onMounted(()=>{t.locale&&W(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&W(t.locale)},{deep:!0}),(x,N)=>{const E=c.resolveComponent("AVSearchBallot"),R=c.resolveComponent("AVWriteInOption"),S=c.resolveComponent("AVOption"),$=c.resolveComponent("AVBlankOption"),J=c.resolveComponent("AVSubmissionHelper");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass({AVBallot:!0,"AVBallot--error":!p.value}),"aria-label":c.unref(_)("js.components.AVBallot.aria_labels.ballot"),"aria-describedby":`ballot_${e.contest.reference}`,"data-test":"ballot"},[L.value?(c.openBlock(),c.createElementBlock("h5",{key:0,id:`ballot_${e.contest.reference}_question`,class:"AVBallot--question","aria-live":"polite","data-test":"ballot-question"},c.toDisplayString(L.value),9,D31)):c.createCommentVNode("",!0),e.contest.searchForm&&!e.disabled&&!e.observerMode?(c.openBlock(),c.createBlock(E,{key:1,ref_key:"search",ref:i,options:c.unref(i4)(e.contest.options),"options-container-id":"ballot_options"},null,8,["options"])):c.createCommentVNode("",!0),N[3]||(N[3]=c.createElementVNode("hr",{class:"AVBallot--separator"},null,-1)),c.createElementVNode("div",{id:"ballot_options",class:c.normalizeClass({"AVBallot--options":!0,"AVBallot--options-with-list":e.contest.options.some(I=>I.children)}),"aria-label":c.unref(_)("js.components.AVBallot.aria_labels.ballot_options")},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.contest.options,I=>(c.openBlock(),c.createElementBlock(c.Fragment,{key:I.reference},[I.writeIn?(c.openBlock(),c.createBlock(R,{key:0,"candidate-value":o.value,"onUpdate:candidateValue":N[0]||(N[0]=P=>o.value=P),"party-value":s.value,"onUpdate:partyValue":N[1]||(N[1]=P=>s.value=P),"checked-value":n.value,"onUpdate:checkedValue":N[2]||(N[2]=P=>n.value=P),parties:[],disabled:e.disabled,observerMode:e.observerMode},null,8,["candidate-value","party-value","checked-value","disabled","observerMode"])):(c.openBlock(),c.createBlock(S,{key:1,selections:r.value,option:I,invalid:!p.value,"exclusive-error":!M.value&&I.exclusive&&m.value.some(P=>P.message.includes("exclusive")),contest:e.contest,disabled:e.disabled,observerMode:e.observerMode,"partial-results":e.partialResults,"image-option":e.imageOption,onChecked:g,onViewCandidate:A},null,8,["selections","option","invalid","exclusive-error","contest","disabled","observerMode","partial-results","image-option"]))],64))),128)),e.contest.markingType.blankSubmission==="active_choice"?(c.openBlock(),c.createBlock($,{key:0,checked:e.selectionPile.explicitBlank,error:!M.value&&m.value.some(I=>I.message.includes("blank")),disabled:e.disabled,invalid:!p.value,observerMode:e.observerMode,accentColor:e.contest.blankOptionColor,"partial-results":e.partialResults?e.partialResults.blank:null,onToggleBlank:C},null,8,["checked","error","disabled","invalid","observerMode","accentColor","partial-results"])):c.createCommentVNode("",!0)],10,P31),e.showSubmissionHelper&&!e.disabled&&!e.observerMode?(c.openBlock(),c.createBlock(J,{key:2,id:`ballot_${e.contest.reference}`,"chosen-count":r.value.length,errors:m.value,weight:u.value,"min-marks":e.contest.markingType.minMarks,"max-marks":e.contest.markingType.maxMarks,"has-exclusive-options":v.value,class:"AVBallot--helper","data-test":"ballot-submission-helper"},null,8,["id","chosen-count","errors","weight","min-marks","max-marks","has-exclusive-options"])):c.createCommentVNode("",!0)],10,O31)}}}),Zj=O(R31,[["__scopeId","data-v-217fba3a"]]),F31={key:0,class:"AVPileSummary--summary"},$31={key:0,class:"AVPileSummary--summary-header","data-test":"pile-summary-header"},q31={class:"AVPileSummary--summary-header-text"},j31={key:1,class:"AVPileSummary--summary-header"},U31={class:"AVPileSummary--summary-body"},W31={key:1,class:"AVPileSummary--assign"},J31={class:"AVPileSummary--assign-card"},G31=["aria-label"],Z31={class:"AVPileSummary--edit"},Q31={key:0,"data-test":"pile-summary-assigned"},Y31={class:"AVPileSummary--assign-body","data-test":"pile-summary-body"},K31={key:0,class:"AVPileSummary--assign-text"},X31=["aria-label"],e41=c.defineComponent({__name:"AVPileSummary",props:{selectionPile:{type:Object,required:!0},contest:{type:Object,required:!0},maximumOptionsShown:{type:Number,default:null},activeState:{type:String,required:!0},pileIndex:{type:Number,default:null},isEditing:{type:Boolean,default:!1},totalPiles:{type:Number,required:!0},locale:{type:String,default:null},imageOption:{type:String,default:"square"}},emits:["editCurrentSelection","deleteSelection"],setup(e,{emit:l}){const t=l,a=e,n=c.ref(!1),s=c.computed(()=>a.selectionPile.optionSelections.length===0),o=c.computed(()=>!a.maximumOptionsShown||n.value?u.value.options:u.value.options.slice(0,a.maximumOptionsShown)),i=c.computed(()=>u.value.options.length-o.value.length),r=c.computed(()=>i4(a.contest.options).filter(v=>v.selectable)),f=(L,M)=>L&&L.parentContent?(M.push(L.parentContent),f(L.parentContent,M)):M,u=c.computed(()=>{const L={options:[],writeIns:[]};return a.selectionPile.optionSelections.forEach(M=>{if(M.text)L.writeIns.push({partyLetter:"?",partyName:"?",candidateName:M.text});else{const v=L.options.find(C=>C.handle===M.reference),b=r.value.find(C=>C.reference===M.reference);if(!b)return;v?v.crosses+=1:L.options.push({title:b.title,handle:M.reference,image:b.image,crosses:1,parent:b.parentContent,rank:a.contest.markingType.voteVariation==="ranked"?L.options.length+1:null})}}),L}),d=c.inject("i18n"),{t:m}=d.global,p=c.computed(()=>d.global.locale.value||d.global.locale);return c.onMounted(()=>{a.locale&&W(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&W(a.locale)},{deep:!0}),(L,M)=>{const v=c.resolveComponent("AVSummaryOption"),b=c.resolveComponent("AVIcon");return e.activeState==="summary"?(c.openBlock(),c.createElementBlock("div",F31,[e.contest.markingType.maxPiles!==1?(c.openBlock(),c.createElementBlock("header",$31,[c.createElementVNode("span",null,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.selection"))+" "+c.toDisplayString(e.pileIndex+1)+" / "+c.toDisplayString(e.totalPiles),1),c.createElementVNode("span",q31,c.toDisplayString(e.selectionPile.multiplier)+" "+c.toDisplayString(c.unref(m)("js.components.AVPileSummary.ballots")),1)])):(c.openBlock(),c.createElementBlock("header",j31,[c.createElementVNode("span",null,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.selection")),1)])),c.createElementVNode("div",U31,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(u.value.options,(C,g)=>(c.openBlock(),c.createBlock(v,{key:g,option:C,"multiple-votes-allowed":e.contest.markingType.votesAllowedPerOption>1,parents:f(C.parent,C.parent?[C.parent]:[]),"image-option":e.imageOption},null,8,["option","multiple-votes-allowed","parents","image-option"]))),128)),s.value?(c.openBlock(),c.createBlock(v,{key:0,blank:s.value},null,8,["blank"])):c.createCommentVNode("",!0)])])):(c.openBlock(),c.createElementBlock("div",W31,[c.createElementVNode("div",J31,[c.createElementVNode("div",{class:"AVPileSummary--assign-header","aria-label":c.unref(m)("js.components.AVPileSummary.aria_labels.edit_selection"),role:"button","data-test":"pile-summary-edit",onClick:M[0]||(M[0]=C=>t("editCurrentSelection"))},[c.createElementVNode("div",Z31,[c.createVNode(b,{icon:"pen-to-square"}),c.createElementVNode("span",null,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.ballot_selection"))+" "+c.toDisplayString(e.pileIndex+1),1)]),e.activeState==="overview"||e.isEditing?(c.openBlock(),c.createElementBlock("span",Q31,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.assigned"))+" "+c.toDisplayString(e.selectionPile.multiplier),1)):c.createCommentVNode("",!0)],8,G31),c.createElementVNode("div",Y31,[s.value?(c.openBlock(),c.createElementBlock("p",K31,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.blank")),1)):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value,(C,g)=>(c.openBlock(),c.createElementBlock("p",{key:g,class:"AVPileSummary--assign-text"},c.toDisplayString(C.rank?`${C.rank}: `:"")+" "+c.toDisplayString(C.title[p.value]),1))),128)),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(u.value.writeIns,(C,g)=>(c.openBlock(),c.createElementBlock("p",{key:g,class:"AVPileSummary--assign-text"},[c.createElementVNode("b",null,c.toDisplayString(C.partyLetter)+" - "+c.toDisplayString(C.partyName),1),M[4]||(M[4]=c.createElementVNode("br",null,null,-1)),c.createElementVNode("span",null,c.toDisplayString(C.candidateName),1)]))),128)),i.value>0?(c.openBlock(),c.createElementBlock("p",{key:1,role:"button",class:"AVPileSummary--show-more-button","data-test":"pile-summary-more",onClick:M[1]||(M[1]=c.withModifiers(C=>n.value=!0,["stop","prevent"]))},[c.createElementVNode("u",null,[c.createElementVNode("em",null,c.toDisplayString(`${c.unref(m)("js.components.AVPileSummary.and_n_more_pre")} ${i.value} ${c.unref(m)("js.components.AVPileSummary.and_n_more_pos")}`),1)])])):c.createCommentVNode("",!0),n.value?(c.openBlock(),c.createElementBlock("p",{key:2,role:"button",class:"AVPileSummary--show-more-button","data-test":"pile-summary-more",onClick:M[2]||(M[2]=c.withModifiers(C=>n.value=!1,["stop","prevent"]))},[c.createElementVNode("u",null,[c.createElementVNode("em",null,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.show_less")),1)])])):c.createCommentVNode("",!0)])]),e.activeState==="overview"?(c.openBlock(),c.createElementBlock("div",{key:0,class:"AVPileSummary--assign-delete-button",role:"button","aria-label":c.unref(m)("js.components.AVPileSummary.aria_labels.delete_selection"),"data-test":"pile-summary-delete",onClick:M[3]||(M[3]=c.withModifiers(C=>t("deleteSelection"),["stop","prevent"]))},[c.createVNode(b,{icon:"trash-can"})],8,X31)):c.createCommentVNode("",!0)]))}}}),Qj=O(e41,[["__scopeId","data-v-ffed1a38"]]);var Yj={},zn=r4&&r4.__spreadArray||function(e,l,t){if(t||arguments.length===2)for(var a=0,n=l.length,s;a<n;a++)(s||!(a in l))&&(s||(s=Array.prototype.slice.call(l,0,a)),s[a]=l[a]);return e.concat(s||Array.prototype.slice.call(l))};Object.defineProperty(Yj,"__esModule",{value:!0});var c41=Ot,l41=function(){function e(l){var t=l.contest,a=l.voterWeight;this.contest=t,this.voterWeight=a}return e.prototype.isComplete=function(l){return this.allWeightUsed(l)&&this.validate(l).length==0},e.prototype.validate=function(l){var t=[],a=new c41.default(this.contest);return l.piles.forEach(function(n){t=zn(zn([],t,!0),a.validate(n),!0)}),l.piles.forEach(function(n){a.isComplete(n)||t.push({message:"A selection is not complete"})}),t},e.prototype.allWeightUsed=function(l){return this.voterWeight===l.piles.reduce(function(t,a){return a.multiplier+t},0)},e}(),t41=Yj.default=l41;const a41={class:"AVSplitHelper--title","aria-live":"polite","data-test":"split-helper-contest-title"},n41=["innerHTML"],s41={class:"AVSplitHelper--footer"},o41={class:"AVSplitHelper--btn-secondary-container"},i41={class:"AVSplitHelper--btn-primary-container"},r41=["disabled"],f41={key:1},m41={class:"AVSplitHelper--assign-card"},u41={class:"AVSplitHelper--assign-question","data-test":"split-helper-contest-question"},d41=["for"],p41=["id","max"],z41={class:"AVSplitHelper--footer"},h41={class:"AVSplitHelper--btn-secondary-container"},L41={class:"AVSplitHelper--btn-primary-container"},g41=["disabled"],C41={key:2,"data-test":"split-helper-overview"},M41={key:0,class:"AVSplitHelper--overview-success"},v41={key:1,class:"AVSplitHelper--overview-default"},b41={class:"AVSplitHelper--overview--text"},A41=["disabled"],_41=["onClick"],N41=c.defineComponent({__name:"AVSplitHelper",props:{contest:{type:Object,required:!0},contestSelection:{type:Object,required:!0},weight:{type:Number,required:!0},showSubmissionHelper:{type:Boolean,default:!0},partialResults:{type:Object,default:null},locale:{type:String,default:null},includeLazyErrors:{type:Boolean,default:!1},imageOption:{type:String,default:"square"}},emits:["update:complete","update:contestSelection","update:activeState","update:activePile","view-candidate"],setup(e,{emit:l}){var J;const t=e,a=l,n=c.ref(null),s=c.ref(t.contestSelection.piles[0]||{multiplier:t.weight,optionSelections:[],explicitBlank:!1}),o=c.ref(((J=t.contestSelection.piles)==null?void 0:J.length)===0||t.contest.markingType.maxPiles===1?"ballot":"overview"),i=c.ref([]),r=c.computed(()=>t.contestSelection.piles),f=c.computed(()=>{var I;return(I=r.value)==null?void 0:I.reduce((P,o1)=>P-o1.multiplier,t.weight)}),u=c.computed(()=>new Jj(t.contest)),d=c.computed(()=>new t41({contest:t.contest,voterWeight:t.weight})),m=c.computed(()=>f.value===0&&i.value.length==0&&r.value.every(I=>u.value.isComplete(I))),p=c.computed(()=>{var I;return(I=r.value)==null?void 0:I.reduce((P,o1)=>P+o1.multiplier,0)}),L=c.computed(()=>{var I;return(I=s.value)==null?void 0:I.multiplier}),M=c.computed(()=>r.value.filter((I,P)=>P!==n.value).reduce((I,P)=>I-P.multiplier,t.weight)),v=c.computed(()=>t.contest.markingType.maxPiles!==1&&t.weight>1),b=c.computed(()=>n.value!==null),C=I=>u.value.isComplete(I),g=I=>u.value.validate(I,t.includeLazyErrors).length>0,A=()=>{if(v.value){const I=[...r.value];n.value===null?I.push({...s.value}):I.splice(n.value,1,{...s.value}),a("update:contestSelection",{...t.contestSelection,piles:I}),n.value=null,o.value="overview"}else s.value.multiplier=t.weight,a("update:contestSelection",{...t.contestSelection,piles:[s.value]})},k=I=>{s.value=I,v.value||A()},_=()=>{s.value={optionSelections:[],multiplier:M.value,explicitBlank:!1},n.value=null,o.value="ballot"},V=I=>{r.value.splice(I,1)},x=I=>{s.value={...r.value[I]},n.value=I,o.value="ballot"},N=I=>{i.value=I},E=I=>a("view-candidate",I);c.watch(m,I=>a("update:complete",I)),c.watch(L,()=>{s.value&&(s.value.multiplier=Math.max(0,Math.min(L.value,M.value)))}),c.watch(s,I=>{a("update:activePile",I)}),c.watch(o,I=>a("update:activeState",I)),c.onMounted(()=>{t.locale&&W(t.locale),a("update:activePile",s.value),a("update:activeState",o.value),a("update:complete",m.value),v.value||A()});const R=c.inject("i18n"),{t:S}=R.global,$=c.computed(()=>R.global.locale.value||R.global.locale);return c.onMounted(()=>{t.locale&&W(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&W(t.locale)},{deep:!0}),(I,P)=>{var u1;const o1=c.resolveComponent("AVSplitWizardHeader"),p1=c.resolveComponent("AVBallot"),v1=c.resolveComponent("AVPileSummary"),z1=c.resolveComponent("AVSplitWeightHelper"),_1=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createElementVNode("h3",a41,c.toDisplayString(e.contest.title[$.value]),1),c.createElementVNode("div",{class:"AVSplitHelper--description","data-test":"split-helper-contest-description",innerHTML:(u1=e.contest.description)==null?void 0:u1[$.value]},null,8,n41),v.value?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[["ballot","assign","overview"].includes(o.value)?(c.openBlock(),c.createBlock(o1,{key:0,"active-selection-pile-index":n.value,"active-state":o.value,"selection-piles":r.value,"total-weight":p.value+f.value,"is-editing":b.value},null,8,["active-selection-pile-index","active-state","selection-piles","total-weight","is-editing"])):c.createCommentVNode("",!0),c.createVNode(c.Transition,{name:"fade",mode:"out-in"},{default:c.withCtx(()=>{var w1,W1,X1;return[s.value&&o.value==="ballot"?(c.openBlock(),c.createElementBlock("div",{key:n.value},[c.createVNode(p1,{class:"AVSplitHelper--ballot","selection-pile":s.value,"partial-results":e.partialResults,contest:e.contest,weight:e.weight,includeLazyErrors:e.includeLazyErrors,"show-submission-helper":e.showSubmissionHelper,"image-option":e.imageOption,"onUpdate:selectionPile":k,"onUpdate:errors":P[0]||(P[0]=L1=>N(L1))},null,8,["selection-pile","partial-results","contest","weight","includeLazyErrors","show-submission-helper","image-option"]),c.createElementVNode("div",s41,[c.createElementVNode("div",o41,[r.value.length>0?(c.openBlock(),c.createElementBlock("button",{key:"back",class:"AVSplitHelper--btn-secondary",onClick:P[1]||(P[1]=L1=>o.value="overview")},c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.ballot.back_button")),1)):c.createCommentVNode("",!0)]),c.createElementVNode("div",i41,[c.createElementVNode("button",{key:"assign",class:"AVSplitHelper--btn-primary",disabled:!C(s.value)||g(s.value),"data-test":"split-helper-confirm",onClick:P[2]||(P[2]=L1=>o.value="assign")},c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.ballot.confirm_button")),9,r41)])])])):o.value==="assign"?(c.openBlock(),c.createElementBlock("div",f41,[c.createElementVNode("div",m41,[c.createElementVNode("h4",u41,c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.assign.split_question")),1),c.createVNode(v1,{"selection-pile":s.value,contest:e.contest,"maximum-options-shown":3,"pile-index":b.value?n.value:r.value.length,"active-state":o.value,"is-editing":b.value,"total-piles":e.contestSelection.piles.length,"image-option":e.imageOption,onEditCurrentSelection:P[3]||(P[3]=L1=>o.value="ballot")},null,8,["selection-pile","contest","pile-index","active-state","is-editing","total-piles","image-option"]),c.createElementVNode("label",{for:`${e.contest.reference}-ballot-selector`,class:"AVSplitHelper--assign-label","data-test":"split-helper-assign-label"},c.toDisplayString(b.value?c.unref(S)("js.components.AVSplitHelper.assign.ballots_to_assign_edit_mode"):c.unref(S)("js.components.AVSplitHelper.assign.ballots_to_assign")),9,d41),c.withDirectives(c.createElementVNode("input",{id:`${e.contest.reference}-ballot-selector`,"onUpdate:modelValue":P[4]||(P[4]=L1=>s.value.multiplier=L1),class:"AVSplitHelper--assign-input",type:"number",max:M.value,"data-test":"split-helper-assign-input"},null,8,p41),[[c.vModelText,s.value.multiplier]])]),c.createVNode(z1,{"assigned-weight":p.value,"unused-weight":f.value,"active-assigned":(w1=r.value[n.value])==null?void 0:w1.multiplier},null,8,["assigned-weight","unused-weight","active-assigned"]),c.createElementVNode("div",z41,[c.createElementVNode("div",h41,[c.createElementVNode("button",{key:"ballot",class:"AVSplitHelper--btn-secondary","data-test":"split-helper-assign-back",onClick:P[5]||(P[5]=L1=>o.value="ballot")},c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.assign.back_button")),1)]),c.createElementVNode("div",L41,[c.createElementVNode("button",{key:"confirm",class:"AVSplitHelper--btn-primary",disabled:((W1=s.value)==null?void 0:W1.multiplier)<1||((X1=s.value)==null?void 0:X1.multiplier)>M.value,"data-test":"split-helper-assign-confirm",onClick:P[6]||(P[6]=L1=>A())},c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.assign.confirm_button")),9,g41)])])])):o.value==="overview"?(c.openBlock(),c.createElementBlock("div",C41,[f.value===0&&d.value.isComplete(e.contestSelection)?(c.openBlock(),c.createElementBlock("div",M41,[c.createVNode(_1,{icon:"circle-check",class:"AVSplitHelper--overview-success-icon"}),c.createTextVNode(" "+c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.overview.all_ballots_assigned")),1)])):(c.openBlock(),c.createElementBlock("div",v41,[c.createElementVNode("p",b41,[c.createElementVNode("strong",null,c.toDisplayString(f.value),1),c.createTextVNode(" "+c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.overview.ballots_left")),1)]),c.createElementVNode("button",{key:"newSelection",class:"AVSplitHelper--overview-new-ballot-btn",disabled:f.value===0,"data-test":"split-helper-new-selection",onClick:_},[c.createVNode(_1,{icon:"file-circle-plus"}),c.createTextVNode(" "+c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.overview.new_ballot_selection")),1)],8,A41)])),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(r.value,(L1,O1)=>(c.openBlock(),c.createElementBlock("article",{key:`preview-${O1}`,onClick:w2=>x(O1)},[c.createVNode(v1,{"selection-pile":L1,contest:e.contest,"maximum-options-shown":3,"active-state":o.value,"pile-index":O1,"total-piles":e.contestSelection.piles.length,"image-option":e.imageOption,onDeleteSelection:w2=>V(O1)},null,8,["selection-pile","contest","active-state","pile-index","total-piles","image-option","onDeleteSelection"])],8,_41))),128))])):c.createCommentVNode("",!0)]}),_:1})],64)):(c.openBlock(),c.createBlock(p1,{key:1,class:"AVSplitHelper--no-split","selection-pile":s.value,"partial-results":e.partialResults,includeLazyErrors:e.includeLazyErrors,contest:e.contest,weight:e.weight,"image-option":e.imageOption,"show-submission-helper":e.showSubmissionHelper,"onUpdate:selectionPile":k,"onUpdate:errors":P[7]||(P[7]=w1=>N(w1)),onViewCandidate:E},null,8,["selection-pile","partial-results","includeLazyErrors","contest","weight","image-option","show-submission-helper"]))],64)}}}),Kj=O(N41,[["__scopeId","data-v-b9617a26"]]),k41="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4gKwSUNDX1BST0ZJTEUAAQEAAAKgbGNtcwRAAABtbnRyUkdCIFhZWiAH6AAEAAMACAAzABRhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1kZXNjAAABIAAAAEBjcHJ0AAABYAAAADZ3dHB0AAABmAAAABRjaGFkAAABrAAAACxyWFlaAAAB2AAAABRiWFlaAAAB7AAAABRnWFlaAAACAAAAABRyVFJDAAACFAAAACBnVFJDAAACFAAAACBiVFJDAAACFAAAACBjaHJtAAACNAAAACRkbW5kAAACWAAAACRkbWRkAAACfAAAACRtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACQAAAAcAEcASQBNAFAAIABiAHUAaQBsAHQALQBpAG4AIABzAFI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Kb7159tuUl7pX8hs8pp9P/9k=",x41={key:0,class:"AVResourceSection--image-container"},y41=["src","alt"],V41={class:"AVResourceFields"},S41={key:0,class:"AVResourceFields--title","data-test":"heading-title"},w41={key:1,class:"AVResourceFields--subtitle","data-test":"heading-subtitle"},E41={key:2,class:"AVResourceFields--group-container","data-test":"heading-group"},B41={class:"AVResourceFields--group"},T41={key:1,class:"AVResourceFields--divisor"},H41={key:2,class:"AVResourceFields--link-list","data-test":"resource-link-list"},I41={key:0},O41={key:3,"data-test":"resource-checkbox-summary"},D41={key:4,"data-test":"resource-selection"},P41={key:0},R41={key:5,"data-test":"resource-video"},F41=["src"],$41=["innerHTML"],q41={key:7,class:"AVResourceFields--regular-content","data-test":"resource-regular-content"},j41={key:0},U41=c.defineComponent({__name:"AVResourceSection",props:{candidate:{type:Object,required:!0},currentCandidateGroup:{type:Number,default:null},summary:{type:Boolean,default:!1},locale:{type:String,default:null},card:{type:Boolean,default:!1}},setup(e){const l=c.computed(()=>{var p,L,M,v,b,C;return(L=(p=i.candidate.title)==null?void 0:p[0])!=null&&L.localised?((v=(M=i.candidate.title)==null?void 0:M[0])==null?void 0:v.form_content)[m.value]:(C=(b=i.candidate.title)==null?void 0:b[0])==null?void 0:C.form_content}),t=c.computed(()=>{var p,L,M,v,b,C;return(L=(p=i.candidate.subtitle)==null?void 0:p[0])!=null&&L.localised?((v=(M=i.candidate.title)==null?void 0:M[0])==null?void 0:v.form_content)[m.value]:(C=(b=i.candidate.subtitle)==null?void 0:b[0])==null?void 0:C.form_content}),a=c.computed(()=>{var v;if(!i.candidate.groups)return null;let p=[],L=[],M="";return i.currentCandidateGroup?i.candidate.groups.forEach(b=>{b.id===i.currentCandidateGroup?p.push(b):L.push(b)}):(L=[...i.candidate.groups],p=L.splice(0,1)),L.forEach((b,C)=>{C===0||i.candidate.groups.length===1?M=b.title[m.value]:C===L.length-1?M+=` & ${b.title[m.value]}`:M+=`, ${b.title[m.value]}`}),{title:(v=p[0])==null?void 0:v.title[m.value],surplus:L.length||null,remaining:M}}),n=c.computed(()=>i.summary?i.candidate.summary:i.candidate.generic.filter(p=>p.item_type!=="image")),s=c.computed(()=>i.summary?!!i.candidate.summary.length:!!i.candidate.generic.length),o=p=>p.item_type==="check_box"?!0:p.form_content?p.item_type==="link_list"?!!p.form_content.length:p.localised?!!p.form_content[m.value]:!!p.form_content:!1,i=e,r=c.computed(()=>{var p;return((p=i.candidate.generic.find(L=>L.item_type==="image"))==null?void 0:p.form_content)||k41}),f=c.inject("i18n"),{t:u,d}=f.global,m=c.computed(()=>f.global.locale.value||f.global.locale);return c.onMounted(()=>{i.locale&&W(i.locale)}),c.watch(()=>i.locale,()=>{i.locale&&W(i.locale)},{deep:!0}),(p,L)=>{const M=c.resolveComponent("AVTooltip"),v=c.resolveComponent("AVIcon"),b=c.resolveComponent("AVLinkVisualizer");return c.openBlock(),c.createElementBlock("section",{class:c.normalizeClass(["AVResourceSection",{"AVResourceSection--themed":e.summary}])},[c.createElementVNode("div",{class:c.normalizeClass(["AVResourceSection--container",{"AVResourceSection--card":e.card}]),"data-test":"resource-section"},[e.summary&&r.value?(c.openBlock(),c.createElementBlock("div",x41,[c.createElementVNode("img",{src:r.value,alt:c.unref(u)("js.components.AVResourceSection.alt_candidate"),class:"AVResourceSection--image","data-test":"resource-image"},null,8,y41)])):c.createCommentVNode("",!0),c.createElementVNode("div",{class:c.normalizeClass(e.summary?"AVResourceSection--fields-container":"AVResourceSection--generic-container")},[c.createElementVNode("div",V41,[e.summary&&l.value?(c.openBlock(),c.createElementBlock("h4",S41,c.toDisplayString(l.value),1)):c.createCommentVNode("",!0),e.summary&&t.value?(c.openBlock(),c.createElementBlock("h5",w41,c.toDisplayString(t.value),1)):c.createCommentVNode("",!0),e.summary&&e.candidate.groups&&!e.card?(c.openBlock(),c.createElementBlock("div",E41,[c.createElementVNode("h4",B41,c.toDisplayString(a.value.title),1),a.value.surplus?(c.openBlock(),c.createBlock(M,{key:0,text:c.unref(u)("js.components.AVResourceSection.and_more",{amount:a.value.surplus}),content:a.value.remaining,position:"top",class:"AVResourceFields--tooltip"},null,8,["text","content"])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),e.card?c.createCommentVNode("",!0):(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:3},c.renderList(n.value,C=>(c.openBlock(),c.createElementBlock(c.Fragment,{key:`attribute_${C.attribute_name}`},[s.value&&o(C)?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(e.summary?"AVResourceFields--container-summary":"AVResourceFields--container-generic"),"data-test":"resource-content"},[e.summary?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("h4",{key:0,class:c.normalizeClass({"AVResourceFields--divisor":C.item_type==="check_box"}),"data-test":"resource-title"},[c.createTextVNode(c.toDisplayString(C.label[m.value])+" ",1),C.item_type==="check_box"?(c.openBlock(),c.createBlock(v,{key:0,icon:C.form_content?"square-check":"square-xmark",class:c.normalizeClass(C.form_content?"AVResourceFields--checkbox-true":"AVResourceFields--checkbox-false"),"aria-label":C.form_content?c.unref(u)("js.components.AVResourceSection.true"):c.unref(u)("js.components.AVResourceSection.false"),"data-test":"resource-checkbox-icon"},null,8,["icon","class","aria-label"])):c.createCommentVNode("",!0)],2)),!e.summary&&C.item_type!=="check_box"?(c.openBlock(),c.createElementBlock("hr",T41)):c.createCommentVNode("",!0),C.item_type==="link_list"&&o(C)?(c.openBlock(),c.createElementBlock("div",H41,[e.summary?(c.openBlock(),c.createElementBlock("span",I41,c.toDisplayString(`${C.label[m.value]}:`),1)):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(C.form_content,g=>(c.openBlock(),c.createBlock(b,{key:g.attributes.name,link:g,large:!e.summary},null,8,["link","large"]))),128))])):C.item_type==="check_box"&&e.summary?(c.openBlock(),c.createElementBlock("div",O41,[c.createElementVNode("span",null,c.toDisplayString(`${C.label[m.value]}`),1),c.createVNode(v,{icon:C.form_content?"square-check":"square-xmark",class:c.normalizeClass(C.form_content?"AVResourceFields--checkbox-true":"AVResourceFields--checkbox-false"),"aria-label":C.form_content?c.unref(u)("js.components.AVResourceSection.true"):c.unref(u)("js.components.AVResourceSection.false")},null,8,["icon","class","aria-label"])])):C.item_type==="select"&&o(C)?(c.openBlock(),c.createElementBlock("div",D41,[e.summary?(c.openBlock(),c.createElementBlock("span",P41,c.toDisplayString(`${C.label[m.value]}:`),1)):c.createCommentVNode("",!0),c.createTextVNode(" "+c.toDisplayString(C.form_content[m.value]),1)])):C.item_type==="video"&&o(C)?(c.openBlock(),c.createElementBlock("div",R41,[c.createElementVNode("iframe",{style:{width:"100%",height:"100%","min-height":"400px"},src:C.form_content.toString()},null,8,F41)])):C.item_type==="rich_text_area"&&!e.summary&&o(C)?(c.openBlock(),c.createElementBlock("div",{key:6,class:"AVResourceFields--rich-text",innerHTML:C.localised?C.form_content[m.value]:C.form_content,"data-test":"resource-rich-text"},null,8,$41)):C.item_type!=="rich_text_area"&&C.item_type!=="check_box"?(c.openBlock(),c.createElementBlock("p",q41,[e.summary?(c.openBlock(),c.createElementBlock("span",j41,c.toDisplayString(`${C.label[m.value]}: `),1)):c.createCommentVNode("",!0),C.item_type==="date"||C.item_type==="date_time"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode(c.toDisplayString(c.unref(d)(C.form_content,C.item_type==="date"?null:"long")),1)],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:2},[c.createTextVNode(c.toDisplayString(C.localised?C.form_content[m.value]:C.form_content),1)],64))])):c.createCommentVNode("",!0)],2)):c.createCommentVNode("",!0)],64))),128))])],2)],2)],2)}}}),Xj=O(U41,[["__scopeId","data-v-9f104b97"]]),W41={class:"AVCalculateResultContent--container"},J41={class:"AVCalculateResultContent--information"},G41={class:"AVCalculateResultContent--information-set AVCalculateResultContent--role","data-test":"role"},Z41={class:"AVCalculateResultContent--label"},Q41={class:"AVCalculateResultContent--information-set AVCalculateResultContent--status","data-test":"status"},Y41={class:"AVCalculateResultContent--label"},K41={class:"AVCalculateResultContent--status-information"},X41={class:"AVCalculateResultContent--information-set","data-test":"mixes"},e01={class:"AVCalculateResultContent--label"},c01={class:"AVCalculateResultContent--information-set","data-test":"decryptions"},l01={class:"AVCalculateResultContent--label"},t01={class:"AVCalculateResultContent--information-set","data-test":"time"},a01={class:"AVCalculateResultContent--label"},n01={class:"AVCalculateResultContent--elapsed"},s01=c.defineComponent({__name:"AVCalculateResultContent",props:{progress:{type:Number,default:0,validate:e=>e>=0&&e<=100},role:{type:String,default:"decrypter"},status:{type:String,default:"initial"},mixes:{type:Array,required:!0,validate:e=>e.length===2},decryptions:{type:Array,required:!0,validate:e=>e.length===2},elapsed:{type:String,required:!0},locale:{type:String,default:null}},setup(e){const l=c.inject("i18n"),{t}=l.global,a=e,n=c.computed(()=>t(`js.components.AVCalculateResultContent.roles.${a.role}`)),s=c.computed(()=>t(`js.components.AVCalculateResultContent.status.${a.status}`)),o=c.computed(()=>{switch(a.status){case"initial":return"hourglass-half";case"mixing":return"shuffle";case"decrypting":return"key";case"aggregating":return"calculator";case"finished":return"circle-check";default:return"xmark"}});return c.onMounted(()=>{a.locale&&W(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&W(a.locale)},{deep:!0}),(i,r)=>{const f=c.resolveComponent("AVProgressBar"),u=c.resolveComponent("AVIcon"),d=c.resolveComponent("AVWaitingDots");return c.openBlock(),c.createElementBlock("div",W41,[c.createVNode(f,{value:e.progress,"data-test":"progress"},null,8,["value"]),c.createElementVNode("div",J41,[c.createElementVNode("div",G41,[c.createElementVNode("span",Z41,c.toDisplayString(c.unref(t)("js.components.AVCalculateResultContent.roles.label")),1),c.createElementVNode("span",null,[c.createVNode(u,{icon:"user-shield"}),c.createTextVNode(" "+c.toDisplayString(n.value),1)])]),c.createElementVNode("div",Q41,[c.createElementVNode("span",Y41,c.toDisplayString(c.unref(t)("js.components.AVCalculateResultContent.status.label")),1),c.createElementVNode("span",K41,[c.createVNode(u,{icon:o.value,class:c.normalizeClass(["AVCalculateResultContent--status-icon",{"AVCalculateResultContent--success":e.status==="finished"}]),"data-test":"status-icon"},null,8,["icon","class"]),c.createTextVNode(" "+c.toDisplayString(s.value)+" ",1),e.status!=="finished"?(c.openBlock(),c.createBlock(d,{key:0})):c.createCommentVNode("",!0)])]),c.createElementVNode("div",X41,[c.createElementVNode("span",e01,c.toDisplayString(c.unref(t)("js.components.AVCalculateResultContent.mixes.label")),1),c.createElementVNode("span",null,c.toDisplayString(`${e.mixes[0]}/${e.mixes[1]}`),1)]),c.createElementVNode("div",c01,[c.createElementVNode("span",l01,c.toDisplayString(c.unref(t)("js.components.AVCalculateResultContent.decryptions.label")),1),c.createElementVNode("span",null,c.toDisplayString(`${e.decryptions[0]}/${e.decryptions[1]}`),1)]),c.createElementVNode("div",t01,[c.createElementVNode("span",a01,c.toDisplayString(c.unref(t)("js.components.AVCalculateResultContent.elapsed.label")),1),c.createElementVNode("time",n01,c.toDisplayString(e.elapsed),1)])])])}}}),eU=O(s01,[["__scopeId","data-v-ad18a2ae"]]),o01={class:"AVNormalSummary--container"},i01={class:"AVNormalSummary"},r01=c.defineComponent({__name:"AVNormalSummary",props:{sortedResult:{type:Array,required:!0},hidePercentage:{type:Boolean,default:!1},totalCount:{type:Number,required:!0},theme:{type:String,default:"light"}},setup(e){return(l,t)=>{const a=c.resolveComponent("AVResultOption");return c.openBlock(),c.createElementBlock("div",o01,[c.createElementVNode("div",i01,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.sortedResult,n=>(c.openBlock(),c.createBlock(a,{key:`result_for_${n.reference}`,optionTitle:n.title,optionImage:n.image,votes:n.count,total:e.totalCount,elected:n.elected,tied:n.tied,"hide-percentage":e.hidePercentage,theme:e.theme,"data-test":"result-option"},null,8,["optionTitle","optionImage","votes","total","elected","tied","hide-percentage","theme"]))),128))])])}}}),cU=O(r01,[["__scopeId","data-v-fcf6e6a8"]]),f01={class:"AVRankedSummary--container"},m01={class:"AVRankedSummary--table",id:"ranked_summary_table","data-test":"table"},u01={class:"AVRankedSummary--heading"},d01={class:"AVRankedSummary--summary","data-test":"summary"},p01={key:0},z01={key:1},h01={key:2},L01=c.defineComponent({__name:"AVRankedSummary",props:{result:{},distributionNumber:{},seats:{},locale:{},theme:{}},setup(e){const l=e,t=c.computed(()=>{var r,f;return((f=(r=l.result[0])==null?void 0:r.rounds)==null?void 0:f.length)??0}),a=c.computed(()=>l.result.filter(r=>r.elected).map(r=>r.title[i.value]??Object.values(r.title)[0])),n=c.computed(()=>l.result.filter(r=>r.tied).map(r=>r.title[i.value]??Object.values(r.title)[0])),s=c.inject("i18n"),{t:o}=s.global,i=c.computed(()=>s.global.locale.value||s.global.locale);return c.onMounted(()=>{l.locale&&W(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&W(l.locale)},{deep:!0}),(r,f)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createElementVNode("div",f01,[c.createElementVNode("table",m01,[c.createElementVNode("thead",u01,[c.createElementVNode("tr",null,[c.createElementVNode("th",null,c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.header.position")),1),c.createElementVNode("th",null,c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.header.candidate")),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.value,u=>(c.openBlock(),c.createElementBlock("th",{key:`header_for_round_${u}`,class:"AVRankedSummary--text"},c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.header.round_n",{n:u})),1))),128))])]),c.createElementVNode("tbody",null,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(r.result,(u,d)=>(c.openBlock(),c.createElementBlock("tr",{key:`option_${u.reference}`,class:c.normalizeClass({"AVRankedSummary--elected":u.elected,"AVRankedSummary--tied":u.tied})},[c.createElementVNode("td",null,c.toDisplayString(u.elected&&d+1||""),1),c.createElementVNode("td",{class:c.normalizeClass({"AVRankedSummary--title-color-white":r.theme==="dark","AVRankedSummary--title-color-black":r.theme==="light"})},c.toDisplayString(u.title[i.value]),3),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(u.rounds,(m,p)=>(c.openBlock(),c.createElementBlock("td",{key:`round_nr_${p}`,class:c.normalizeClass(["AVRankedSummary--text",{"AVRankedSummary--text-bold":p+1===t.value,"AVRankedSummary--title-color-white":r.theme==="dark","AVRankedSummary--title-color-black":r.theme==="light"}])},c.toDisplayString(m.count),3))),128))],2))),128))])])]),c.createElementVNode("div",d01,[c.createElementVNode("p",null,c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.summary.seats"))+": "+c.toDisplayString(r.seats),1),r.distributionNumber>0?(c.openBlock(),c.createElementBlock("p",p01,c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.summary.distribution"))+": "+c.toDisplayString(r.distributionNumber),1)):c.createCommentVNode("",!0),a.value.length>0?(c.openBlock(),c.createElementBlock("p",z01,[c.createTextVNode(c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.summary.elected"))+": ",1),c.createElementVNode("span",null,c.toDisplayString(a.value.join(", ")),1)])):c.createCommentVNode("",!0),n.value.length>0?(c.openBlock(),c.createElementBlock("p",h01,[c.createTextVNode(c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.summary.tied"))+": ",1),c.createElementVNode("span",null,c.toDisplayString(n.value.join(", ")),1)])):c.createCommentVNode("",!0)])],64))}}),lU=O(L01,[["__scopeId","data-v-1e6d07c5"]]),g01={class:"AVInstantRunoffSummary"},C01={class:"AVInstantRunoffSummary--title","data-test":"seat-title"},M01={class:"AVInstantRunoffSummary--container"},v01={class:"AVInstantRunoffSummary--table-container"},b01={class:"AVInstantRunoffSummary--table",id:"ranked_summary_table","data-test":"table"},A01={class:"AVInstantRunoffSummary--heading"},_01={key:0,class:"AVInstantRunoffSummary--summary","data-test":"not-included"},N01={class:"AVInstantRunoffSummary--summary","data-test":"abstain"},k01={class:"AVInstantRunoffSummary--summary","data-test":"total"},x01={class:"AVInstantRunoffSummary--summary","data-test":"quota"},y01=c.defineComponent({__name:"AVInstantRunoffSummary",props:{rounds:{type:Array,required:!0},sortedResult:{type:Array,required:!0},seatNumber:{type:Number,required:!0},quota:{type:Number,required:!0},totalVotes:{type:Number,required:!0},blankVotes:{type:Number,required:!0},votesNotIncluded:{type:Number,default:null},locale:{type:String,default:null},theme:{type:String,default:"light"}},setup(e){const l=e,t=(r,f)=>l.rounds[f].counts[r]||0,a=(r,f)=>l.rounds[f].eliminated===r&&"AVInstantRunoffSummary--eliminated",n=(r,f)=>l.rounds[f].elected===r&&"AVInstantRunoffSummary--elected",s=c.inject("i18n"),{t:o}=s.global,i=c.computed(()=>s.global.locale.value||s.global.locale);return c.onMounted(()=>{l.locale&&W(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&W(l.locale)},{deep:!0}),(r,f)=>{const u=c.resolveComponent("AVIcon"),d=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",g01,[c.createElementVNode("h5",C01,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.seat_n",{n:e.seatNumber})),1),c.createElementVNode("div",M01,[c.createElementVNode("div",v01,[c.createElementVNode("table",b01,[c.createElementVNode("thead",A01,[c.createElementVNode("tr",null,[c.createElementVNode("th",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.header.candidate")),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.rounds,(m,p)=>c.withDirectives((c.openBlock(),c.createElementBlock("th",{key:`instant_runoff_seat_${e.seatNumber}_round_${p}`,class:"AVInstantRunoffSummary--text AVInstantRunoffSummary--help"},[c.createTextVNode(c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.header.round_n",{n:p+1}))+" ",1),c.createVNode(u,{icon:"info-circle",class:"AVInstantRunoffSummary--help"})])),[[d,e.rounds[p].event]])),128))])]),c.createElementVNode("tbody",null,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.sortedResult,(m,p)=>(c.openBlock(),c.createElementBlock("tr",{key:p},[m.title?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("td",null,c.toDisplayString(m.title[i.value]),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.rounds.length,L=>(c.openBlock(),c.createElementBlock("td",{key:`instant_runoff_seat_${e.seatNumber}_number_${L}`,class:c.normalizeClass(["AVInstantRunoffSummary--text",{"AVInstantRunoffSummary--elected":n(m.reference,L-1),"AVInstantRunoffSummary--eliminated":a(m.reference,L-1),"AVInstantRunoffSummary--title-color-white":e.theme==="dark","AVInstantRunoffSummary--title-color-black":e.theme==="light"}])},c.toDisplayString(t(m.reference,L-1)),3))),128))],64)):c.createCommentVNode("",!0)]))),128)),c.createElementVNode("tr",null,[c.createElementVNode("td",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.transfered_votes")),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.rounds.length,m=>(c.openBlock(),c.createElementBlock("td",{key:`instant_runoff_seat_${e.seatNumber}_transferred_${m}`,class:"AVInstantRunoffSummary--text"},c.toDisplayString(e.rounds[m-1].transferred),1))),128))]),c.createElementVNode("tr",null,[c.createElementVNode("td",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.exhausted")),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.rounds.length,m=>(c.openBlock(),c.createElementBlock("td",{key:`instant_runoff_seat_${e.seatNumber}_exhausted_${m}`,class:"AVInstantRunoffSummary--text AVInstantRunoffSummary--cell-text"},c.toDisplayString(e.rounds[m-1].exhausted),1))),128))])])])]),e.votesNotIncluded?(c.openBlock(),c.createElementBlock("p",_01,[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.not_included_count")),1),c.createTextVNode(" "+c.toDisplayString(e.votesNotIncluded),1)])):c.createCommentVNode("",!0),c.createElementVNode("p",N01,[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.abstain")),1),c.createTextVNode(" "+c.toDisplayString(e.blankVotes),1)]),c.createElementVNode("p",k01,[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.total_votes")),1),c.createTextVNode(" "+c.toDisplayString(e.totalVotes),1)]),c.createElementVNode("p",x01,[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.quota")),1),c.createTextVNode(" "+c.toDisplayString(e.quota),1)])])])}}}),tU=O(y01,[["__scopeId","data-v-cb5cf40d"]]);var V01={},S01={class:"flex items-center"},w01={class:"flex flex-col items-center justify-center p-3 w-full"};function E01(e,l){var t=c.resolveComponent("AVNavbarItem"),a=c.resolveComponent("AVNavigationItemList"),n=c.resolveComponent("AVMenuDropdown"),s=c.resolveComponent("AVNavbar"),o=c.resolveComponent("AVLabel"),i=c.resolveComponent("AVTabSwitcher"),r=c.resolveComponent("AVSidebarItem"),f=c.resolveComponent("AVButton"),u=c.resolveComponent("AVSidebar"),d=c.resolveComponent("AVContent"),m=c.resolveComponent("AVFooter");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(s,null,{default:c.withCtx(function(){return[l[0]||(l[0]=c.createElementVNode("a",{href:"#"},"LOGO",-1)),c.createElementVNode("div",S01,[c.createVNode(a,{type:"navbar"},{default:c.withCtx(function(){return[c.createVNode(t,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(t,{label:"Admins",icon:"user-shield",href:"#"})]}),_:1}),c.createVNode(n,{ariaLabel:"user profile",id:"user-profile-menu",icon:"user",options:[{label:"Settings",href:"#",icon:"gear"},{label:"Log out",href:"#",destructive:!0,icon:"right-from-bracket"}]})])]}),_:1}),c.createVNode(d,null,{sidebar:c.withCtx(function(){return[c.createVNode(u,null,{default:c.withCtx(function(){return[c.createElementVNode("div",w01,[l[1]||(l[1]=c.createElementVNode("h2",{class:"mb-4"},"Election Name",-1)),c.createVNode(o,{value:"draft",type:"info"})]),c.createVNode(i,{options:["Pre-election","election"]}),c.createVNode(a,{type:"sidebar"},{default:c.withCtx(function(){return[c.createVNode(r,{label:"Election Overview",icon:"grip",active:""}),c.createVNode(r,{label:"Election details",type:"step",stepIndex:"1"}),c.createVNode(r,{label:"Digital Absentee Voting Requirements",type:"step",stepIndex:"2"}),c.createVNode(r,{label:"Voting App Set Up",type:"step",stepIndex:"3"}),c.createVNode(r,{label:"Ballot Data",type:"step",stepIndex:"4"}),c.createVNode(r,{label:"Ballot Styles",type:"step",stepIndex:"5"}),c.createVNode(r,{label:"Configure Ballot Extraction",type:"step",stepIndex:"6"}),c.createVNode(r,{label:"Start Ballot Box Set Up",icon:"download"}),c.createVNode(r,{label:"Finish Ballot Box Set Up",icon:"handshake-simple",disabled:""})]}),_:1}),c.createVNode(f,{type:"primary",label:"Create election",fullWidth:""})]}),_:1})]}),content:c.withCtx(function(){return l[2]||(l[2]=[c.createElementVNode("div",null,[c.createElementVNode("p",null," Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. "),c.createElementVNode("br"),c.createElementVNode("p",null," In tellus nibh, elementum in massa vel, aliquet feugiat ex. Vestibulum auctor pharetra tellus id ultrices. Fusce dignissim interdum laoreet. Suspendisse sagittis risus lorem, in iaculis lacus sollicitudin in. Etiam porta dapibus venenatis. Praesent convallis rhoncus laoreet. In sed placerat metus, eget pellentesque velit. Mauris scelerisque magna id porttitor feugiat. Praesent aliquam sagittis diam, nec vestibulum diam pretium et. Cras vel velit accumsan elit luctus porttitor. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer maximus lorem eget viverra pellentesque. Nunc ut ultrices ligula. Donec elit mauris, feugiat at imperdiet feugiat, posuere ut turpis. Donec elementum mauris feugiat, cursus justo non, varius nisi. Fusce dapibus libero id tincidunt tempor. Nam pretium, tellus a hendrerit vehicula, velit metus blandit lorem, a semper neque enim eget massa. Aenean congue orci at posuere aliquet. Morbi ornare mi a nibh euismod, nec aliquam massa scelerisque. Pellentesque sodales ligula urna, non facilisis erat pulvinar in. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vestibulum neque metus, lobortis eu urna nec, mollis consequat dolor. Nulla risus est, consectetur et eleifend eget, eleifend in tortor. Nam quis libero eget ligula hendrerit facilisis. Sed sed libero sapien. Aenean laoreet condimentum arcu, in dictum nibh pharetra sed. Curabitur aliquam at dui eget pharetra. Vestibulum blandit mi vel velit accumsan feugiat eget nec nibh. Pellentesque venenatis, est quis faucibus ornare, orci nisl mollis leo, eu euismod neque lectus id libero. Fusce eu tempor leo. Integer vulputate, nulla eget congue porttitor, erat quam rhoncus est, sit amet efficitur sem metus ut augue. Vestibulum dapibus lacus ut magna condimentum, nec luctus orci consequat. Pellentesque congue metus et finibus euismod. In hac habitasse platea dictumst. In ipsum felis, elementum quis neque nec, pulvinar lacinia orci. Donec venenatis, nunc in elementum posuere, mauris nulla pharetra velit, molestie congue quam tortor eu elit. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vivamus et semper odio, eget dignissim leo. Suspendisse quis ex ut ipsum luctus tincidunt. Curabitur rhoncus nibh quis libero aliquet, sit amet pellentesque ipsum pretium. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur est orci, tempor non hendrerit luctus, feugiat eu eros. Vivamus sed ipsum ornare, euismod purus quis, bibendum ex. Praesent euismod lobortis arcu et efficitur. Curabitur quis sapien dui. Vestibulum in ante et est molestie laoreet ut ac orci. Etiam erat neque, finibus nec mi vitae, mattis euismod ex. "),c.createElementVNode("br"),c.createElementVNode("p",null," Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. "),c.createElementVNode("br"),c.createElementVNode("p",null," In tellus nibh, elementum in massa vel, aliquet feugiat ex. Vestibulum auctor pharetra tellus id ultrices. Fusce dignissim interdum laoreet. Suspendisse sagittis risus lorem, in iaculis lacus sollicitudin in. Etiam porta dapibus venenatis. Praesent convallis rhoncus laoreet. In sed placerat metus, eget pellentesque velit. Mauris scelerisque magna id porttitor feugiat. Praesent aliquam sagittis diam, nec vestibulum diam pretium et. Cras vel velit accumsan elit luctus porttitor. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer maximus lorem eget viverra pellentesque. Nunc ut ultrices ligula. Donec elit mauris, feugiat at imperdiet feugiat, posuere ut turpis. Donec elementum mauris feugiat, cursus justo non, varius nisi. Fusce dapibus libero id tincidunt tempor. Nam pretium, tellus a hendrerit vehicula, velit metus blandit lorem, a semper neque enim eget massa. Aenean congue orci at posuere aliquet. Morbi ornare mi a nibh euismod, nec aliquam massa scelerisque. Pellentesque sodales ligula urna, non facilisis erat pulvinar in. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vestibulum neque metus, lobortis eu urna nec, mollis consequat dolor. Nulla risus est, consectetur et eleifend eget, eleifend in tortor. Nam quis libero eget ligula hendrerit facilisis. Sed sed libero sapien. Aenean laoreet condimentum arcu, in dictum nibh pharetra sed. Curabitur aliquam at dui eget pharetra. Vestibulum blandit mi vel velit accumsan feugiat eget nec nibh. Pellentesque venenatis, est quis faucibus ornare, orci nisl mollis leo, eu euismod neque lectus id libero. Fusce eu tempor leo. Integer vulputate, nulla eget congue porttitor, erat quam rhoncus est, sit amet efficitur sem metus ut augue. Vestibulum dapibus lacus ut magna condimentum, nec luctus orci consequat. Pellentesque congue metus et finibus euismod. In hac habitasse platea dictumst. In ipsum felis, elementum quis neque nec, pulvinar lacinia orci. Donec venenatis, nunc in elementum posuere, mauris nulla pharetra velit, molestie congue quam tortor eu elit. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vivamus et semper odio, eget dignissim leo. Suspendisse quis ex ut ipsum luctus tincidunt. Curabitur rhoncus nibh quis libero aliquet, sit amet pellentesque ipsum pretium. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur est orci, tempor non hendrerit luctus, feugiat eu eros. Vivamus sed ipsum ornare, euismod purus quis, bibendum ex. Praesent euismod lobortis arcu et efficitur. Curabitur quis sapien dui. Vestibulum in ante et est molestie laoreet ut ac orci. Etiam erat neque, finibus nec mi vitae, mattis euismod ex. "),c.createElementVNode("br"),c.createElementVNode("p",null," Pellentesque accumsan viverra odio at dignissim. Sed tortor turpis, porta sit amet venenatis ut, mollis sed sapien. Donec sapien dolor, consectetur a arcu vitae, gravida dapibus justo. Nulla mattis urna vel urna posuere blandit id auctor neque. Suspendisse tincidunt elit eu lacinia mattis. Nullam semper pellentesque augue sit amet accumsan. Ut feugiat nulla ut sapien pellentesque, at finibus velit dapibus. Morbi tristique pharetra rhoncus. Sed bibendum efficitur justo sed pellentesque. Etiam porta vitae magna semper elementum. Fusce eu tincidunt diam, at varius purus. Proin gravida velit arcu, eget volutpat magna pretium a. ")],-1)])}),_:1}),c.createVNode(m)],64)}const aU=O(V01,[["render",E01]]);var B01={},T01={class:"flex items-center"},H01={class:"flex flex-col items-center justify-center p-3 w-full"};function I01(e,l){var t=c.resolveComponent("AVNavbarItem"),a=c.resolveComponent("AVNavigationItemList"),n=c.resolveComponent("AVMenuDropdown"),s=c.resolveComponent("AVNavbar"),o=c.resolveComponent("AVLabel"),i=c.resolveComponent("AVTabSwitcher"),r=c.resolveComponent("AVSidebarItem"),f=c.resolveComponent("AVButton"),u=c.resolveComponent("AVSidebar"),d=c.resolveComponent("AVContent"),m=c.resolveComponent("AVFooter");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(s,null,{default:c.withCtx(function(){return[l[0]||(l[0]=c.createElementVNode("a",{href:"#"},"LOGO",-1)),c.createElementVNode("div",T01,[c.createVNode(a,{type:"navbar"},{default:c.withCtx(function(){return[c.createVNode(t,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(t,{label:"Admins",icon:"user-shield",href:"#"})]}),_:1}),c.createVNode(n,{ariaLabel:"user profile",id:"user-profile-menu",icon:"user",options:[{label:"Settings",href:"#",icon:"gear"},{label:"Log out",href:"#",destructive:!0,icon:"right-from-bracket"}]})])]}),_:1}),c.createVNode(d,null,{sidebar:c.withCtx(function(){return[c.createVNode(u,null,{default:c.withCtx(function(){return[c.createElementVNode("div",H01,[l[1]||(l[1]=c.createElementVNode("h2",{class:"mb-4"},"Election Name",-1)),c.createVNode(o,{value:"draft",type:"info"})]),c.createVNode(i,{options:["Pre-election","election"]}),c.createVNode(a,{type:"sidebar"},{default:c.withCtx(function(){return[c.createVNode(r,{label:"Election Overview",icon:"grip",active:""}),c.createVNode(r,{label:"Election details",type:"step",stepIndex:"1"}),c.createVNode(r,{label:"Digital Absentee Voting Requirements",type:"step",stepIndex:"2"}),c.createVNode(r,{label:"Voting App Set Up",type:"step",stepIndex:"3"}),c.createVNode(r,{label:"Ballot Data",type:"step",stepIndex:"4"}),c.createVNode(r,{label:"Ballot Styles",type:"step",stepIndex:"5"}),c.createVNode(r,{label:"Configure Ballot Extraction",type:"step",stepIndex:"6"}),c.createVNode(r,{label:"Start Ballot Box Set Up",icon:"download"}),c.createVNode(r,{label:"Finish Ballot Box Set Up",icon:"handshake-simple",disabled:""})]}),_:1}),c.createVNode(f,{type:"primary",label:"Create election",fullWidth:""})]}),_:1})]}),content:c.withCtx(function(){return l[2]||(l[2]=[c.createElementVNode("div",null,[c.createElementVNode("p",null," Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. "),c.createElementVNode("br"),c.createElementVNode("p",null," In tellus nibh, elementum in massa vel, aliquet feugiat ex. Vestibulum auctor pharetra tellus id ultrices. Fusce dignissim interdum laoreet. Suspendisse sagittis risus lorem, in iaculis lacus sollicitudin in. Etiam porta dapibus venenatis. Praesent convallis rhoncus laoreet. In sed placerat metus, eget pellentesque velit. Mauris scelerisque magna id porttitor feugiat. Praesent aliquam sagittis diam, nec vestibulum diam pretium et. Cras vel velit accumsan elit luctus porttitor. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer maximus lorem eget viverra pellentesque. Nunc ut ultrices ligula. Donec elit mauris, feugiat at imperdiet feugiat, posuere ut turpis. Donec elementum mauris feugiat, cursus justo non, varius nisi. Fusce dapibus libero id tincidunt tempor. Nam pretium, tellus a hendrerit vehicula, velit metus blandit lorem, a semper neque enim eget massa. Aenean congue orci at posuere aliquet. Morbi ornare mi a nibh euismod, nec aliquam massa scelerisque. Pellentesque sodales ligula urna, non facilisis erat pulvinar in. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vestibulum neque metus, lobortis eu urna nec, mollis consequat dolor. Nulla risus est, consectetur et eleifend eget, eleifend in tortor. Nam quis libero eget ligula hendrerit facilisis. Sed sed libero sapien. Aenean laoreet condimentum arcu, in dictum nibh pharetra sed. Curabitur aliquam at dui eget pharetra. Vestibulum blandit mi vel velit accumsan feugiat eget nec nibh. Pellentesque venenatis, est quis faucibus ornare, orci nisl mollis leo, eu euismod neque lectus id libero. Fusce eu tempor leo. Integer vulputate, nulla eget congue porttitor, erat quam rhoncus est, sit amet efficitur sem metus ut augue. Vestibulum dapibus lacus ut magna condimentum, nec luctus orci consequat. Pellentesque congue metus et finibus euismod. In hac habitasse platea dictumst. In ipsum felis, elementum quis neque nec, pulvinar lacinia orci. Donec venenatis, nunc in elementum posuere, mauris nulla pharetra velit, molestie congue quam tortor eu elit. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vivamus et semper odio, eget dignissim leo. Suspendisse quis ex ut ipsum luctus tincidunt. Curabitur rhoncus nibh quis libero aliquet, sit amet pellentesque ipsum pretium. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur est orci, tempor non hendrerit luctus, feugiat eu eros. Vivamus sed ipsum ornare, euismod purus quis, bibendum ex. Praesent euismod lobortis arcu et efficitur. Curabitur quis sapien dui. Vestibulum in ante et est molestie laoreet ut ac orci. Etiam erat neque, finibus nec mi vitae, mattis euismod ex. "),c.createElementVNode("br"),c.createElementVNode("p",null," Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. "),c.createElementVNode("br"),c.createElementVNode("p",null," In tellus nibh, elementum in massa vel, aliquet feugiat ex. Vestibulum auctor pharetra tellus id ultrices. Fusce dignissim interdum laoreet. Suspendisse sagittis risus lorem, in iaculis lacus sollicitudin in. Etiam porta dapibus venenatis. Praesent convallis rhoncus laoreet. In sed placerat metus, eget pellentesque velit. Mauris scelerisque magna id porttitor feugiat. Praesent aliquam sagittis diam, nec vestibulum diam pretium et. Cras vel velit accumsan elit luctus porttitor. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer maximus lorem eget viverra pellentesque. Nunc ut ultrices ligula. Donec elit mauris, feugiat at imperdiet feugiat, posuere ut turpis. Donec elementum mauris feugiat, cursus justo non, varius nisi. Fusce dapibus libero id tincidunt tempor. Nam pretium, tellus a hendrerit vehicula, velit metus blandit lorem, a semper neque enim eget massa. Aenean congue orci at posuere aliquet. Morbi ornare mi a nibh euismod, nec aliquam massa scelerisque. Pellentesque sodales ligula urna, non facilisis erat pulvinar in. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vestibulum neque metus, lobortis eu urna nec, mollis consequat dolor. Nulla risus est, consectetur et eleifend eget, eleifend in tortor. Nam quis libero eget ligula hendrerit facilisis. Sed sed libero sapien. Aenean laoreet condimentum arcu, in dictum nibh pharetra sed. Curabitur aliquam at dui eget pharetra. Vestibulum blandit mi vel velit accumsan feugiat eget nec nibh. Pellentesque venenatis, est quis faucibus ornare, orci nisl mollis leo, eu euismod neque lectus id libero. Fusce eu tempor leo. Integer vulputate, nulla eget congue porttitor, erat quam rhoncus est, sit amet efficitur sem metus ut augue. Vestibulum dapibus lacus ut magna condimentum, nec luctus orci consequat. Pellentesque congue metus et finibus euismod. In hac habitasse platea dictumst. In ipsum felis, elementum quis neque nec, pulvinar lacinia orci. Donec venenatis, nunc in elementum posuere, mauris nulla pharetra velit, molestie congue quam tortor eu elit. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vivamus et semper odio, eget dignissim leo. Suspendisse quis ex ut ipsum luctus tincidunt. Curabitur rhoncus nibh quis libero aliquet, sit amet pellentesque ipsum pretium. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur est orci, tempor non hendrerit luctus, feugiat eu eros. Vivamus sed ipsum ornare, euismod purus quis, bibendum ex. Praesent euismod lobortis arcu et efficitur. Curabitur quis sapien dui. Vestibulum in ante et est molestie laoreet ut ac orci. Etiam erat neque, finibus nec mi vitae, mattis euismod ex. "),c.createElementVNode("br"),c.createElementVNode("p",null," Pellentesque accumsan viverra odio at dignissim. Sed tortor turpis, porta sit amet venenatis ut, mollis sed sapien. Donec sapien dolor, consectetur a arcu vitae, gravida dapibus justo. Nulla mattis urna vel urna posuere blandit id auctor neque. Suspendisse tincidunt elit eu lacinia mattis. Nullam semper pellentesque augue sit amet accumsan. Ut feugiat nulla ut sapien pellentesque, at finibus velit dapibus. Morbi tristique pharetra rhoncus. Sed bibendum efficitur justo sed pellentesque. Etiam porta vitae magna semper elementum. Fusce eu tincidunt diam, at varius purus. Proin gravida velit arcu, eget volutpat magna pretium a. ")],-1),c.createElementVNode("div",null,[c.createElementVNode("p",null," Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. "),c.createElementVNode("br"),c.createElementVNode("p",null," In tellus nibh, elementum in massa vel, aliquet feugiat ex. Vestibulum auctor pharetra tellus id ultrices. Fusce dignissim interdum laoreet. Suspendisse sagittis risus lorem, in iaculis lacus sollicitudin in. Etiam porta dapibus venenatis. Praesent convallis rhoncus laoreet. In sed placerat metus, eget pellentesque velit. Mauris scelerisque magna id porttitor feugiat. Praesent aliquam sagittis diam, nec vestibulum diam pretium et. Cras vel velit accumsan elit luctus porttitor. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer maximus lorem eget viverra pellentesque. Nunc ut ultrices ligula. Donec elit mauris, feugiat at imperdiet feugiat, posuere ut turpis. Donec elementum mauris feugiat, cursus justo non, varius nisi. Fusce dapibus libero id tincidunt tempor. Nam pretium, tellus a hendrerit vehicula, velit metus blandit lorem, a semper neque enim eget massa. Aenean congue orci at posuere aliquet. Morbi ornare mi a nibh euismod, nec aliquam massa scelerisque. Pellentesque sodales ligula urna, non facilisis erat pulvinar in. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vestibulum neque metus, lobortis eu urna nec, mollis consequat dolor. Nulla risus est, consectetur et eleifend eget, eleifend in tortor. Nam quis libero eget ligula hendrerit facilisis. Sed sed libero sapien. Aenean laoreet condimentum arcu, in dictum nibh pharetra sed. Curabitur aliquam at dui eget pharetra. Vestibulum blandit mi vel velit accumsan feugiat eget nec nibh. Pellentesque venenatis, est quis faucibus ornare, orci nisl mollis leo, eu euismod neque lectus id libero. Fusce eu tempor leo. Integer vulputate, nulla eget congue porttitor, erat quam rhoncus est, sit amet efficitur sem metus ut augue. Vestibulum dapibus lacus ut magna condimentum, nec luctus orci consequat. Pellentesque congue metus et finibus euismod. In hac habitasse platea dictumst. In ipsum felis, elementum quis neque nec, pulvinar lacinia orci. Donec venenatis, nunc in elementum posuere, mauris nulla pharetra velit, molestie congue quam tortor eu elit. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vivamus et semper odio, eget dignissim leo. Suspendisse quis ex ut ipsum luctus tincidunt. Curabitur rhoncus nibh quis libero aliquet, sit amet pellentesque ipsum pretium. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur est orci, tempor non hendrerit luctus, feugiat eu eros. Vivamus sed ipsum ornare, euismod purus quis, bibendum ex. Praesent euismod lobortis arcu et efficitur. Curabitur quis sapien dui. Vestibulum in ante et est molestie laoreet ut ac orci. Etiam erat neque, finibus nec mi vitae, mattis euismod ex. "),c.createElementVNode("br"),c.createElementVNode("p",null," Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. "),c.createElementVNode("br"),c.createElementVNode("p",null," In tellus nibh, elementum in massa vel, aliquet feugiat ex. Vestibulum auctor pharetra tellus id ultrices. Fusce dignissim interdum laoreet. Suspendisse sagittis risus lorem, in iaculis lacus sollicitudin in. Etiam porta dapibus venenatis. Praesent convallis rhoncus laoreet. In sed placerat metus, eget pellentesque velit. Mauris scelerisque magna id porttitor feugiat. Praesent aliquam sagittis diam, nec vestibulum diam pretium et. Cras vel velit accumsan elit luctus porttitor. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer maximus lorem eget viverra pellentesque. Nunc ut ultrices ligula. Donec elit mauris, feugiat at imperdiet feugiat, posuere ut turpis. Donec elementum mauris feugiat, cursus justo non, varius nisi. Fusce dapibus libero id tincidunt tempor. Nam pretium, tellus a hendrerit vehicula, velit metus blandit lorem, a semper neque enim eget massa. Aenean congue orci at posuere aliquet. Morbi ornare mi a nibh euismod, nec aliquam massa scelerisque. Pellentesque sodales ligula urna, non facilisis erat pulvinar in. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vestibulum neque metus, lobortis eu urna nec, mollis consequat dolor. Nulla risus est, consectetur et eleifend eget, eleifend in tortor. Nam quis libero eget ligula hendrerit facilisis. Sed sed libero sapien. Aenean laoreet condimentum arcu, in dictum nibh pharetra sed. Curabitur aliquam at dui eget pharetra. Vestibulum blandit mi vel velit accumsan feugiat eget nec nibh. Pellentesque venenatis, est quis faucibus ornare, orci nisl mollis leo, eu euismod neque lectus id libero. Fusce eu tempor leo. Integer vulputate, nulla eget congue porttitor, erat quam rhoncus est, sit amet efficitur sem metus ut augue. Vestibulum dapibus lacus ut magna condimentum, nec luctus orci consequat. Pellentesque congue metus et finibus euismod. In hac habitasse platea dictumst. In ipsum felis, elementum quis neque nec, pulvinar lacinia orci. Donec venenatis, nunc in elementum posuere, mauris nulla pharetra velit, molestie congue quam tortor eu elit. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vivamus et semper odio, eget dignissim leo. Suspendisse quis ex ut ipsum luctus tincidunt. Curabitur rhoncus nibh quis libero aliquet, sit amet pellentesque ipsum pretium. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur est orci, tempor non hendrerit luctus, feugiat eu eros. Vivamus sed ipsum ornare, euismod purus quis, bibendum ex. Praesent euismod lobortis arcu et efficitur. Curabitur quis sapien dui. Vestibulum in ante et est molestie laoreet ut ac orci. Etiam erat neque, finibus nec mi vitae, mattis euismod ex. "),c.createElementVNode("br"),c.createElementVNode("p",null," Pellentesque accumsan viverra odio at dignissim. Sed tortor turpis, porta sit amet venenatis ut, mollis sed sapien. Donec sapien dolor, consectetur a arcu vitae, gravida dapibus justo. Nulla mattis urna vel urna posuere blandit id auctor neque. Suspendisse tincidunt elit eu lacinia mattis. Nullam semper pellentesque augue sit amet accumsan. Ut feugiat nulla ut sapien pellentesque, at finibus velit dapibus. Morbi tristique pharetra rhoncus. Sed bibendum efficitur justo sed pellentesque. Etiam porta vitae magna semper elementum. Fusce eu tincidunt diam, at varius purus. Proin gravida velit arcu, eget volutpat magna pretium a. ")],-1)])}),_:1}),c.createVNode(m)],64)}const nU=O(B01,[["render",I01]]);var O01={},D01={class:"flex items-center"};function P01(e,l){var t=c.resolveComponent("AVNavbarItem"),a=c.resolveComponent("AVNavigationItemList"),n=c.resolveComponent("AVMenuDropdown"),s=c.resolveComponent("AVNavbar"),o=c.resolveComponent("AVContent"),i=c.resolveComponent("AVFooter");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(s,null,{default:c.withCtx(function(){return[l[0]||(l[0]=c.createElementVNode("a",{href:"#"},"LOGO",-1)),c.createElementVNode("div",D01,[c.createVNode(a,{type:"navbar"},{default:c.withCtx(function(){return[c.createVNode(t,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(t,{label:"Admins",icon:"user-shield",href:"#"})]}),_:1}),c.createVNode(n,{ariaLabel:"user profile",id:"user-profile-menu",icon:"user",options:[{label:"Settings",href:"#",icon:"gear"},{label:"Log out",href:"#",destructive:!0,icon:"right-from-bracket"}]})])]}),_:1}),c.createVNode(o,null,{content:c.withCtx(function(){return l[1]||(l[1]=[c.createElementVNode("div",null,[c.createElementVNode("h1",null,"Content goes here"),c.createElementVNode("br"),c.createElementVNode("p",null," Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. ")],-1)])}),_:1}),c.createVNode(i,{enableSteps:"",steps:["Check my ballot","Ballot Found","Verify Passkey","Review Unsealed Ballot","Finish"],done:["Check my ballot","Ballot Found"],active:"Verify Passkey"})],64)}const sU=O(O01,[["render",P01]]),R01={class:"flex items-center"},F01={href:"/new"},$01={class:"new-election-button"},q01={key:0,class:"no-elections-container"},j01=c.defineComponent({__name:"ElectionDashboardLayout",setup(e){const l=[{id:"DV-1",name:"General Election 1",status:"draft",countyNameLabel:"Jurisdiction:",countyName:"Burlington",createdAtLabel:"Created at:",createdAt:"March 01, 2023 at 10:00 AM",lastUpdatedLabel:"Last updated:",lastUpdated:"March 01, 2023 at 10:00 AM",href:"#"},{id:"DV-2",name:"General Election 2",status:"open",countyNameLabel:"Jurisdiction:",countyName:"Burlington",createdAtLabel:"Created at:",createdAt:"March 01, 2023 at 10:00 AM",lastUpdatedLabel:"Last updated:",lastUpdated:"March 01, 2023 at 10:00 AM",href:"#"},{id:"DV-3",name:"General Election 3",status:"closed",countyNameLabel:"Jurisdiction:",countyName:"Burlington",createdAtLabel:"Created at:",createdAt:"March 01, 2023 at 10:00 AM",lastUpdatedLabel:"Last updated:",lastUpdated:"March 01, 2023 at 10:00 AM",href:"#"},{id:"DV-4",name:"General Election 4",status:"archived",countyNameLabel:"Jurisdiction:",countyName:"Burlington",createdAtLabel:"Created at:",createdAt:"March 01, 2023 at 10:00 AM",lastUpdatedLabel:"Last updated:",lastUpdated:"March 01, 2023 at 10:00 AM",href:"#"}];return(t,a)=>{const n=c.resolveComponent("AVNavbarItem"),s=c.resolveComponent("AVNavigationItemList"),o=c.resolveComponent("AVMenuDropdown"),i=c.resolveComponent("AVNavbar"),r=c.resolveComponent("AVIcon"),f=c.resolveComponent("AVCard"),u=c.resolveComponent("AVElectionCard"),d=c.resolveComponent("AVContent"),m=c.resolveComponent("AVFooter");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(i,null,{default:c.withCtx(()=>[a[0]||(a[0]=c.createElementVNode("a",{href:"#"},"LOGO",-1)),c.createElementVNode("div",R01,[c.createVNode(s,{type:"navbar"},{default:c.withCtx(()=>[c.createVNode(n,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(n,{label:"Admins",icon:"user-shield",href:"#"})]),_:1}),c.createVNode(o,{ariaLabel:"user profile",id:"user-profile-menu",icon:"user",options:[{label:"Settings",href:"#",icon:"gear"},{label:"Log out",href:"#",destructive:!0,icon:"right-from-bracket"}]})])]),_:1}),c.createVNode(d,null,{content:c.withCtx(()=>[c.createVNode(f,{variant:"jumbotron",class:"dashboard-container"},{default:c.withCtx(()=>[c.createElementVNode("a",F01,[c.createVNode(f,{variant:"rounded",role:"button"},{default:c.withCtx(()=>[a[1]||(a[1]=c.createElementVNode("div",{class:"new-election-title-container"},[c.createElementVNode("span",{class:"new-election-title","data-test":"title"},"Create new election")],-1)),c.createElementVNode("div",$01,[c.createVNode(r,{icon:"fa-solid fa-circle-plus",class:"new-election-icon"})])]),_:1})]),l.length===0?(c.openBlock(),c.createElementBlock("div",q01,[c.createVNode(r,{icon:"fa-solid fa-folder-open",class:"no-elections-icon"}),a[2]||(a[2]=c.createElementVNode("span",{class:"no-elections-title","data-test":"title"},"Your dashboard is empty",-1)),a[3]||(a[3]=c.createElementVNode("span",{class:"no-elections-text","data-test":"title"},"Once you create new elections you will see them displayed in this dashboard.",-1))])):c.createCommentVNode("",!0),(c.openBlock(),c.createElementBlock(c.Fragment,null,c.renderList(l,p=>c.createVNode(u,{key:p.id,id:p.id,name:p.name,status:p.status,countyNameLabel:p.countyNameLabel,countyName:p.countyName,createdAtLabel:p.createdAtLabel,createdAt:p.createdAt,lastUpdatedLabel:p.lastUpdatedLabel,lastUpdated:p.lastUpdated,href:p.href},null,8,["id","name","status","countyNameLabel","countyName","createdAtLabel","createdAt","lastUpdatedLabel","lastUpdated","href"])),64))]),_:1})]),_:1}),c.createVNode(m)],64)}}}),oU=O(j01,[["__scopeId","data-v-20fc858f"]]),U01={install:function(e,l){l===void 0&&(l=null),e.use(nZ),e.component("AVIcon",qq),e.component("AVButton",jq),e.component("AVSpinner",Uq),e.component("AVBullet",o4),e.component("AVTextInput",Wq),e.component("AVNumberInput",Jq),e.component("AVPasswordInput",Gq),e.component("AVDatetimeInput",Zq),e.component("AVTextArea",Qq),e.component("AVCard",Kq),e.component("AVRoundButton",Xq),e.component("AVLabel",Yq),e.component("AVDropdown",ej),e.component("AVDropdownContent",cj),e.component("AVDropdownItem",lj),e.component("AVAlert",tj),e.component("AVFileInput",aj),e.component("AVRadio",nj),e.component("AVLink",sj),e.component("AVNavbarItem",oj),e.component("AVSidebarItem",ij),e.component("AVTooltip",rj),e.component("AVMenuDropdown",fj),e.component("AVMenuDropdownContent",mj),e.component("AVMenuDropdownItem",uj),e.component("AVAsyncButton",dj),e.component("AVTabSwitcher",pj),e.component("AVBallotSummary",zj),e.component("AVTimedCard",hj),e.component("AVBasicSteps",Lj),e.component("AVSteps",gj),e.component("AVOptionSelect",Cj),e.component("AVOptionCheckbox",Mj),e.component("AVTransitionSlide",vj),e.component("AVCollapser",bj),e.component("AVLinkVisualizer",Aj),e.component("AVVerticalStep",GX),e.component("AVAnimatedMenuButton",QX),e.component("AVProgressBar",_j),e.component("AVWaitingDots",Nj),e.component("AVRadioGroup",kj),e.component("AVNavigationItemList",xj),e.component("AVBreadcrumb",yj),e.component("AVElectionCard",Vj),e.component("AVBallotStyleCard",Sj),e.component("AVSummaryOption",wj),e.component("AVOption",Bj),e.component("AVBlankOption",Tj),e.component("AVWriteInOption",Hj),e.component("AVSubmissionHelper",Ij),e.component("AVSearchBallot",Oj),e.component("AVSplitWeightHelper",Dj),e.component("AVSplitWizardHeader",Pj),e.component("AVElectaContestCard",Rj),e.component("AVResultOption",Fj),e.component("AVFooter",$j),e.component("AVSidebar",qj),e.component("AVNavbar",jj),e.component("AVContent",Uj),e.component("AVModal",Wj),e.component("AVBallot",Zj),e.component("AVPileSummary",Qj),e.component("AVSplitHelper",Kj),e.component("AVResourceSection",Xj),e.component("AVCalculateResultContent",eU),e.component("AVNormalSummary",cU),e.component("AVRankedSummary",lU),e.component("AVInstantRunoffSummary",tU),e.component("OneColumnLayout",aU),e.component("TwoColumnsLayout",nU),e.component("NoSidebarLayout",sU),e.component("ElectionDashboardLayout",oU),e.provide("i18n",l||Xn),e.provide("iconNames",R$)}};exports.AVAlert=tj;exports.AVAsyncButton=dj;exports.AVBallot=Zj;exports.AVBallotStyleCard=Sj;exports.AVBallotSummary=zj;exports.AVBasicSteps=Lj;exports.AVBlankOption=Tj;exports.AVBreadcrumb=yj;exports.AVBullet=o4;exports.AVButton=jq;exports.AVCalculateResultContent=eU;exports.AVCard=Kq;exports.AVCollapser=bj;exports.AVContent=Uj;exports.AVDatetimeInput=Zq;exports.AVDropdown=ej;exports.AVDropdownContent=cj;exports.AVDropdownItem=lj;exports.AVElectaContestCard=Rj;exports.AVElectionCard=Vj;exports.AVFileInput=aj;exports.AVFooter=$j;exports.AVIcon=qq;exports.AVInstantRunoffSummary=tU;exports.AVLabel=Yq;exports.AVLink=sj;exports.AVLinkVisualizer=Aj;exports.AVMenuDropdown=fj;exports.AVMenuDropdownContent=mj;exports.AVMenuDropdownItem=uj;exports.AVModal=Wj;exports.AVNavbar=jj;exports.AVNavbarItem=oj;exports.AVNavigationItemList=xj;exports.AVNormalSummary=cU;exports.AVNumberInput=Jq;exports.AVOption=Bj;exports.AVOptionCheckbox=Mj;exports.AVOptionSelect=Cj;exports.AVPasswordInput=Gq;exports.AVPileSummary=Qj;exports.AVProgressBar=_j;exports.AVRadio=nj;exports.AVRadioGroup=kj;exports.AVRankedSummary=lU;exports.AVResourceSection=Xj;exports.AVResultOption=Fj;exports.AVRoundButton=Xq;exports.AVSearchBallot=Oj;exports.AVSidebar=qj;exports.AVSidebarItem=ij;exports.AVSpinner=Uq;exports.AVSplitHelper=Kj;exports.AVSplitWeightHelper=Dj;exports.AVSplitWizardHeader=Pj;exports.AVSteps=gj;exports.AVSubmissionHelper=Ij;exports.AVSummaryOption=wj;exports.AVTabSwitcher=pj;exports.AVTextArea=Qq;exports.AVTextInput=Wq;exports.AVTimedCard=hj;exports.AVTooltip=rj;exports.AVTransitionSlide=vj;exports.AVWaitingDots=Nj;exports.AVWriteInOption=Hj;exports.ElectionDashboardLayout=oU;exports.NoSidebarLayout=sU;exports.OneColumnLayout=aU;exports.TwoColumnsLayout=nU;exports.default=U01;exports.iconNames=R$;
586
+ `:""),r=()=>{l.linkMode||setTimeout(()=>n.value=a.value.clientHeight,l.collapsed?0:250)},f=()=>{if(!l.linkMode&&!l.stepNumber)throw new Error("stepNumber prop is required when linkMode is disabled")};return c.onMounted(()=>{f(),r(),window.addEventListener("resize",r)}),c.onUnmounted(()=>window.removeEventListener("resize",r)),(u,d)=>{const m=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("div",BX,[e.hasPrevStep?(c.openBlock(),c.createElementBlock("div",{key:0,class:"AVVerticalStep--line",style:c.normalizeStyle(o.value),"data-test":"step-line-pre"},null,4)):c.createCommentVNode("",!0),c.createElementVNode("div",{class:c.normalizeClass(["AVVerticalStep--container",{"AVVerticalStep--link-container":e.linkMode,"AVVerticalStep--link-active":e.linkMode&&e.status==="active"}]),ref_key:"verticalStepItem",ref:a,"data-index":e.stepNumber},[c.createVNode(c.Transition,null,{default:c.withCtx(()=>[e.inProgress?(c.openBlock(),c.createElementBlock("div",HX)):c.createCommentVNode("",!0)]),_:1}),c.createElementVNode("div",{class:c.normalizeClass(`AVVerticalStep--step AVVerticalStep--step-${e.status}`),"data-test":"step-circle"},[e.summary&&e.status==="active"?(c.openBlock(),c.createElementBlock("div",IX,[c.createVNode(m,{icon:"grip-vertical"})])):e.summary?(c.openBlock(),c.createElementBlock("div",OX,[c.createElementVNode("div",DX,[c.createVNode(m,{icon:"grip-vertical"})]),c.createElementVNode("div",PX,[c.createVNode(m,{icon:"arrow-left"})])])):e.linkMode&&e.status==="active"?(c.openBlock(),c.createElementBlock("div",RX,[c.createElementVNode("span",FX,c.toDisplayString(t.value),1)])):e.linkMode?(c.openBlock(),c.createElementBlock("div",$X,[c.createElementVNode("div",qX,[c.createElementVNode("span",jX,c.toDisplayString(t.value),1)]),c.createElementVNode("div",UX,[c.createVNode(m,{icon:"arrow-right"})])])):(c.openBlock(),c.createElementBlock("div",WX,[c.createVNode(m,{icon:e.status==="done"?"check":`${e.stepNumber}`,class:"AVVerticalStep--icon","data-test":"step-icon"},null,8,["icon"])]))],2),c.createVNode(c.Transition,{onAfterEnter:r,onAfterLeave:r},{default:c.withCtx(()=>[e.collapsed?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["AVVerticalStep--text",{"AVVerticalStep--text-link-active":e.linkMode&&e.status==="active"}])},[c.createElementVNode("span",{class:c.normalizeClass(`AVVerticalStep--title AVVerticalStep--text-${e.status}`),"data-test":"step-title"},c.toDisplayString(e.title),3),e.subtitle?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(`AVVerticalStep--subtitle AVVerticalStep--text-${e.status}`),"data-test":"step-subtitle"},c.toDisplayString(e.subtitle),3)):c.createCommentVNode("",!0)],2))]),_:1})],10,TX),e.hasNextStep?(c.openBlock(),c.createElementBlock("div",{key:1,class:"AVVerticalStep--line",style:c.normalizeStyle(i.value),"data-test":"step-line-post"},null,4)):c.createCommentVNode("",!0)])}}}),GX=O(JX,[["__scopeId","data-v-1d5e5b5f"]]),ZX=c.defineComponent({__name:"AVAnimatedMenuButton",props:{isOpened:{type:Boolean,default:!1}},emits:["update:isOpened"],setup(e,{emit:l}){const t=l;return(a,n)=>(c.openBlock(),c.createElementBlock("button",{class:c.normalizeClass(["AVAnimatedMenuButton",{"AVAnimatedMenuButton--opened":e.isOpened}]),onClick:n[0]||(n[0]=s=>t("update:isOpened",!e.isOpened))},[c.createElementVNode("span",{class:c.normalizeClass(["AVAnimatedMenuButton--icon",{"AVAnimatedMenuButton--icon-opened":e.isOpened}])},n[1]||(n[1]=[c.createElementVNode("span",{class:"AVAnimatedMenuButton--line"},null,-1),c.createElementVNode("span",{class:"AVAnimatedMenuButton--line"},null,-1),c.createElementVNode("span",{class:"AVAnimatedMenuButton--line"},null,-1)]),2)],2))}}),QX=O(ZX,[["__scopeId","data-v-90e59491"]]),YX={class:"AVProgressBar"},KX={class:"AVProgressBar--container"},XX=c.defineComponent({__name:"AVProgressBar",props:{value:{type:Number,required:!0,validate:e=>e>=0&&e<=100},hidePercentage:{type:Boolean,default:!1}},setup(e){return(l,t)=>(c.openBlock(),c.createElementBlock("div",YX,[e.hidePercentage?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["AVProgressBar--percentage",{"AVProgressBar--success":e.value===100}])},c.toDisplayString(`${Math.round(e.value)}%`),3)),c.createElementVNode("div",KX,[c.createElementVNode("div",{class:c.normalizeClass(["AVProgressBar--filling",{"AVProgressBar--success":e.value===100}]),style:c.normalizeStyle(`width: ${e.value}%;`)},null,6)])]))}}),_j=O(XX,[["__scopeId","data-v-9c071d60"]]);var e11={},c11={class:"AVWaitingDots--container"};function l11(e,l){return c.openBlock(),c.createElementBlock("div",c11,l[0]||(l[0]=[c.createElementVNode("div",{class:"AVWaitingDots"},null,-1)]))}const Nj=O(e11,[["render",l11],["__scopeId","data-v-f13d66c0"]]),t11={class:"AVRadioGroup--input-set"},a11=["for"],n11={key:1,class:"AVRadioGroup--error","data-test":"error-msg"},s11=c.defineComponent({__name:"AVRadioGroup",props:{id:{type:String,required:!0},options:{type:Array,required:!0},initialValue:{type:String,default:null},disabled:{type:Array,default:null},error:{type:Boolean,default:!1},errorMessage:{type:String,default:null},inputLabel:{type:String,default:"Input label"},disableLabel:{type:Boolean,default:!1},orientation:{type:String,validate:e=>["vertical","horizontal"].includes(e),default:"horizontal"}},emits:["update"],setup(e,{emit:l}){const t=e,a=l,n=c.ref(""),s=c.ref([]),o=u=>{s.value.map(d=>{d.value===u?(d.checked=!0,n.value=d.value):d.checked=!1})},i=()=>{if(s.value.map(u=>u.disabled=!1),t.disabled)s.value.map(u=>{t.disabled.map(d=>d===u.value?u.disabled=!0:u)});else return};c.onMounted(()=>{t.options.map(u=>s.value.push({value:u,checked:!1})),t.initialValue&&o(t.initialValue),t.disabled&&i()});const r=u=>{o(u),f()},f=()=>{a("update",n.value,s.value)};return c.watch(()=>t.initialValue,()=>{n.value=t.initialValue,o(t.initialValue)}),c.watch(()=>t.disabled,()=>{i()}),(u,d)=>{const m=c.resolveComponent("AVRadio");return c.openBlock(),c.createElementBlock("div",t11,[e.disableLabel?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVRadioGroup--label","data-test":"input-label"},c.toDisplayString(e.inputLabel),9,a11)),c.createElementVNode("div",{class:c.normalizeClass(`AVRadioGroup--${e.orientation}`),"data-test":"input-group"},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.value,(p,L)=>(c.openBlock(),c.createBlock(m,{class:"AVRadioGroup--child",id:`radio-${e.id}-${L}`,key:L,value:p.value,checked:p.checked,disabled:p.disabled,onUpdate:M=>r(p.value)},null,8,["id","value","checked","disabled","onUpdate"]))),128))],2),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",n11,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),kj=O(s11,[["__scopeId","data-v-74ff59b8"]]),o11=c.defineComponent({__name:"AVNavigationItemList",props:{type:{type:String,validate:e=>["navbar","sidebar"].includes(e),default:"navbar"}},setup(e){return(l,t)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(`AVNavigationItemList AVNavigationItemList--${e.type}`)},[c.renderSlot(l.$slots,"default",{},void 0,!0)],2))}}),xj=O(o11,[["__scopeId","data-v-9fd5c53d"]]),i11={class:"AVBreadcrumb"},r11=["href"],f11=["href"],m11=c.defineComponent({__name:"AVBreadcrumb",props:{items:{type:Array,required:!0},disableButton:{type:Boolean,default:!1},buttonHref:{type:String,default:null}},setup(e){return(l,t)=>{const a=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("div",i11,[c.createElementVNode("a",{href:e.buttonHref},[e.disableButton?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(a,{key:0,icon:"fa-solid fa-circle-chevron-left",class:"AVBreadcrumb--icon"}))],8,r11),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.items,(n,s)=>(c.openBlock(),c.createElementBlock("span",{key:s,class:"AVBreadcrumb--group","data-test":"item-group"},[c.createElementVNode("a",{href:n.active?null:n.href,class:c.normalizeClass(["AVBreadcrumb--link",{"AVBreadcrumb--link-active":n.active}])},c.toDisplayString(n.text),11,f11),c.createVNode(a,{icon:"fa-solid fa-angle-right",class:"AVBreadcrumb--separator"})]))),128))])}}}),yj=O(m11,[["__scopeId","data-v-479a161a"]]),u11=["href"],d11={class:"AVElectionCard--inner"},p11={class:"AVElectionCard--id","data-test":"id"},z11={class:"AVElectionCard--title-group"},h11={class:"AVElectionCard--title","data-test":"title"},L11={class:"AVElectionCard--items"},g11={class:"AVElectionCard--item","data-test":"item"},C11={class:"AVElectionCard--item-icon"},M11={class:"AVElectionCard--item-text"},v11={class:"AVElectionCard--item","data-test":"item"},b11={class:"AVElectionCard--item-icon"},A11={class:"AVElectionCard--item-text"},_11={class:"AVElectionCard--item","data-test":"item"},N11={class:"AVElectionCard--item-icon"},k11={class:"AVElectionCard--item-text"},x11={class:"AVElectionCard--button"},y11=c.defineComponent({__name:"AVElectionCard",props:{id:{type:String,required:!0},name:{type:String,required:!0},status:{type:String,required:!0},countyName:{type:String,required:!0},createdAt:{type:String,required:!0},lastUpdated:{type:String,required:!0},countyNameLabel:{type:String,required:!0},createdAtLabel:{type:String,required:!0},lastUpdatedLabel:{type:String,required:!0},href:{type:String,required:!0}},setup(e){const l=e,t={draft:"info",open:"success",closed:"danger",archived:"default"},a=c.computed(()=>t[l.status]);return(n,s)=>{const o=c.resolveComponent("AVLabel"),i=c.resolveComponent("AVIcon"),r=c.resolveComponent("AVCard");return c.openBlock(),c.createElementBlock("a",{href:e.href,class:"AVElectionCard","data-test":"link"},[c.createVNode(r,{variant:"rounded",role:"button"},{default:c.withCtx(()=>[c.createElementVNode("div",d11,[c.createElementVNode("span",p11,c.toDisplayString(e.id),1),c.createElementVNode("div",z11,[c.createElementVNode("span",h11,c.toDisplayString(e.name),1),c.createVNode(o,{type:a.value,value:e.status},null,8,["type","value"])]),c.createElementVNode("div",L11,[c.createElementVNode("div",g11,[c.createElementVNode("div",C11,[c.createVNode(i,{icon:"fa-solid fa-location-pin"})]),c.createElementVNode("span",M11,[c.createTextVNode(c.toDisplayString(e.countyNameLabel),1),c.createElementVNode("strong",null,c.toDisplayString(e.countyName),1)])]),c.createElementVNode("div",v11,[c.createElementVNode("div",b11,[c.createVNode(i,{icon:"fa-solid fa-file-circle-plus"})]),c.createElementVNode("span",A11,[c.createTextVNode(c.toDisplayString(e.createdAtLabel),1),c.createElementVNode("strong",null,c.toDisplayString(e.createdAt),1)])]),c.createElementVNode("div",_11,[c.createElementVNode("div",N11,[c.createVNode(i,{icon:"fa-solid fa-pen-to-square"})]),c.createElementVNode("span",k11,[c.createTextVNode(c.toDisplayString(e.lastUpdatedLabel),1),c.createElementVNode("strong",null,c.toDisplayString(e.lastUpdated),1)])])])]),c.createElementVNode("div",x11,[c.createVNode(i,{icon:"fa-solid fa-circle-chevron-right",class:"AVElectionCard--CTA-icon"})])]),_:1})],8,u11)}}}),Vj=O(y11,[["__scopeId","data-v-dd72671e"]]),V11=["href"],S11={class:"AVBallotStyleCard--content"},w11={key:0,class:"AVBallotStyleCard--completion-icon","data-test":"success-icon"},E11={class:"AVBallotStyleCard--text-container"},B11={class:"AVBallotStyleCard--title","data-test":"title"},T11={class:"AVBallotStyleCard--text","data-test":"text"},H11={class:"AVBallotStyleCard--CTA-icon"},I11=c.defineComponent({__name:"AVBallotStyleCard",props:{href:{type:String,required:!0},name:{type:String,required:!0},contestQty:{type:Number,required:!0},contestLabel:{type:String,required:!0},reviewed:{type:Boolean,default:!1}},setup(e){return(l,t)=>{const a=c.resolveComponent("AVIcon"),n=c.resolveComponent("AVCard");return c.openBlock(),c.createElementBlock("a",{href:e.href,class:"AVBallotStyleCard",role:"button","data-test":"link"},[c.createVNode(n,{variant:"rounded"},{default:c.withCtx(()=>[c.createElementVNode("div",S11,[e.reviewed?(c.openBlock(),c.createElementBlock("div",w11,[c.createVNode(a,{icon:"fa-solid fa-check"})])):c.createCommentVNode("",!0),c.createElementVNode("div",E11,[c.createElementVNode("div",B11,c.toDisplayString(e.name),1),c.createElementVNode("div",T11,c.toDisplayString(`${e.contestQty} ${e.contestLabel}`),1)])]),c.createElementVNode("div",H11,[c.createVNode(a,{icon:"fa-solid fa-chevron-right"})])]),_:1}),c.createElementVNode("div",{class:c.normalizeClass(`AVBallotStyleCard--progress AVBallotStyleCard--progress-${e.reviewed?"success":"default"}`),"data-test":"progress"},null,2)],8,V11)}}}),Sj=O(I11,[["__scopeId","data-v-c682a2cf"]]),O11=["aria-label"],D11={key:0,class:"AVSummaryOption--ancestry"},P11={class:"AVSummaryOption--breadcrumb","data-test":"summary-option-ancestry"},R11=["src","alt"],F11={class:"AVSummaryOption--body"},$11={class:"AVSummaryOption--title"},q11={key:1,class:"AVSummaryOption--summary"},j11={key:1,class:"AVSummaryOption--footer"},wj=c.defineComponent({__name:"AVSummaryOption",props:{option:{type:Object,default:null},multipleVotesAllowed:{type:Boolean,default:!1},locale:{type:String,default:null},blank:{type:Boolean,default:!1},parents:{type:Array,default:()=>[]},imageOption:{type:String,default:"square"}},setup(e){const l=e,t=c.computed(()=>{var u,d;return((u=l.option)==null?void 0:u.crosses)&&((d=l.option)==null?void 0:d.crosses)>1&&l.multipleVotesAllowed&&!l.blank}),a=c.computed(()=>l.parents.length<1?null:l.parents.map(u=>u.title[f.value]).reverse()),n=c.computed(()=>{var u;return l.blank?r("js.components.AVSummaryOption.blank"):(u=l.option)==null?void 0:u.title[f.value]}),s=c.computed(()=>{var L,M;const u=Array.from(Array((L=l.option)==null?void 0:L.crosses).keys());u.forEach(v=>u[v]=v+1);const d=u.indexOf(Math.ceil(((M=l.option)==null?void 0:M.crosses)/2))+1,m=u.slice(0,d),p=u.slice(d);return p.length?[m,p]:[m]}),o=c.computed(()=>l.option.image.includes("square")?l.option.image:`${l.option.image}/${l.imageOption}`),i=c.inject("i18n"),{t:r}=i.global,f=c.computed(()=>i.global.locale.value||i.global.locale);return c.onMounted(()=>{l.locale&&W(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&W(l.locale)},{deep:!0}),(u,d)=>{var p,L;const m=c.resolveComponent("AVOptionCheckbox");return c.openBlock(),c.createElementBlock("div",{class:"AVSummaryOption","aria-label":c.unref(r)("js.components.AVSummaryOption.aria_label.option"),"data-test":"summary-option"},[a.value?(c.openBlock(),c.createElementBlock("div",D11,[c.createElementVNode("ul",P11,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,(M,v)=>(c.openBlock(),c.createElementBlock("li",{key:M+v,class:"AVSummaryOption--breadcrumb-item","data-test":"breadcrumb-item"},c.toDisplayString(M),1))),128))])])):c.createCommentVNode("",!0),c.createElementVNode("div",{class:c.normalizeClass({"AVSummaryOption--header":!0,"AVSummaryOption--header-multiple":t.value})},[(p=e.option)!=null&&p.image?(c.openBlock(),c.createElementBlock("img",{key:0,src:o.value,class:"AVSummaryOption--img",alt:c.unref(r)("js.components.AVSummaryOption.aria_label.option_image"),"data-test":"summary-option-image"},null,8,R11)):c.createCommentVNode("",!0),c.createElementVNode("div",F11,[c.createElementVNode("div",$11,c.toDisplayString(n.value),1)]),t.value?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",q11,[c.createVNode(m,{checked:!0,rank:(L=e.option)==null?void 0:L.rank,disabled:!0,"data-test":"summary-cross"},null,8,["rank"])]))],2),t.value?(c.openBlock(),c.createElementBlock("div",j11,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.value,M=>(c.openBlock(),c.createElementBlock("div",{key:M.toString(),class:"AVSummaryOption--group"},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(M,v=>{var b;return c.openBlock(),c.createBlock(m,{key:v,checked:!0,rank:(b=e.option)==null?void 0:b.rank,disabled:!0,"data-test":"summary-cross"},null,8,["rank"])}),128))]))),128))])):c.createCommentVNode("",!0)],8,O11)}}}),pn=c.ref(new Map);function Ej(){function e(l,...t){pn.value.set(l,t)}return{eventBusEmit:e,eventBus:pn}}const U11=["id","href","aria-labelledby"],W11=["aria-label"],J11={class:"AVOption--header-container","data-test":"option-content"},G11={class:"AVOption--header"},Z11=["src","alt"],Q11=["textContent"],Y11={key:0,class:"AVOption--body","data-test":"option-summary"},K11={key:0,class:"AVOption--description","data-test":"option-description"},X11=["innerHTML"],e21={key:1,class:"AVOption--links-container"},c21=["href"],l21={key:2,class:"AVOption--children-container","data-test":"option-children"},t21=["id"],a21=["innerHTML"],n21={key:1,class:"AVOption--realtime-results AVOption--realtime-results-internal","data-test":"option-partialresults"},s21={class:"AVOption--realtime-results","data-test":"option-realtimeresults"},o21={key:0,class:"AVOption--children","data-test":"option-children"},i21=c.defineComponent({__name:"AVOption",props:{option:{type:Object,required:!0},selections:{type:Array,required:!0},contest:{type:Object,required:!0},invalid:{type:Boolean,required:!0},exclusiveError:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},observerMode:{type:Boolean,default:!1},partialResults:{type:Object,default:null},locale:{type:String,default:null},imageOption:{type:String,default:"square"}},emits:["accordion-open","checked","view-candidate"],setup(e,{emit:l}){const{eventBus:t}=Ej(),a=c.ref(!1),n=c.ref(null),s=e,o=l,i=c.computed(()=>document.getElementsByTagName("html")[0].dir==="rtl"),r=c.computed(()=>s.contest.markingType.voteVariation==="ranked"),f=c.computed(()=>s.selections.filter(S=>S.reference===s.option.reference).length),u=c.computed(()=>s.option.title[R.value]??""),d=c.computed(()=>{var S;return((S=s.option.description)==null?void 0:S[R.value])??""}),m=c.computed(()=>{var S;return((S=s.option.url)==null?void 0:S[R.value])??""}),p=c.computed(()=>{var S;return((S=s.option.videoUrl)==null?void 0:S[R.value])??""}),L=c.computed(()=>s.option.image.includes("square")?s.option.image:`${s.option.image}/${s.imageOption}`),M=c.computed(()=>{let S=[];return m.value&&S.push({url:m.value,text:E("js.components.AVOption.info_link_text_html")}),p.value&&S.push({url:p.value,text:E("js.components.AVOption.video_link_text_html")}),S}),v=c.computed(()=>s.option.children&&s.option.children.length>0),b=c.computed(()=>s.option.selectable!==void 0&&!s.option.selectable?0:g.value?1:s.option.voteLimit||s.contest.markingType.votesAllowedPerOption||1),C=c.computed(()=>s.selections.length>0?V(s.option.children):0),g=c.computed(()=>s.option.exclusive),A=c.computed(()=>{const S=Array.from(Array(b.value).keys());S.forEach(P=>S[P]=P+1);const $=S.indexOf(Math.ceil(b.value/2))+1,J=S.slice(0,$),I=S.slice($);return I.length?[J,I]:[J]}),k=c.computed(()=>s.partialResults?s.partialResults[s.option.reference]:null),_=(S,$=1)=>{o("checked",{reference:S,amount:$})},V=S=>{if(!S)return 0;let $=S.filter(J=>s.selections.map(I=>I.reference).includes(J.reference)).length;return S.reduce((J,I)=>J+V(I.children),$)},x=S=>{a.value=!1,S===s.option.reference&&(o("accordion-open"),c.nextTick(()=>{a.value=!0,n.value.scrollIntoView&&n.value.scrollIntoView({behavior:"smooth",block:"center"})}))};c.watch(()=>t.value.get("highlight-option"),S=>{const[$]=S??[];x($)});const N=c.inject("i18n"),{t:E}=N.global,R=c.computed(()=>N.global.locale.value||N.global.locale);return c.onMounted(()=>{s.locale&&W(s.locale)}),c.watch(()=>s.locale,()=>{s.locale&&W(s.locale)},{deep:!0}),(S,$)=>{const J=c.resolveComponent("AVIcon"),I=c.resolveComponent("AVOptionCheckbox"),P=c.resolveComponent("AVOption",!0),o1=c.resolveComponent("AVCollapser");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass({"AVOption--background":!0,"AVOption--disabled":e.disabled}),"data-test":"option"},[c.createElementVNode("a",{id:e.option.reference,class:"AVOption--scroll-anchor",href:`option_${e.option.reference}_checkbox`,"aria-labelledby":`option_${e.option.reference}_title`},null,8,U11),c.createVNode(o1,{collapsable:e.contest.collapsable&&v.value,"start-collapsed":e.contest.collapseDefault&&!e.observerMode,onAccordionOpen:$[2]||($[2]=p1=>o("accordion-open"))},c.createSlots({toggle:c.withCtx(({isOpen:p1,collapsable:v1})=>[c.createElementVNode("section",{ref_key:"el",ref:n,class:c.normalizeClass({AVOption:!0,"AVOption--highlight":a.value,"AVOption--accent":e.option.accentColor}),style:c.normalizeStyle(e.option.accentColor?`border-left-color: ${e.option.accentColor}`:""),"aria-label":c.unref(E)("js.components.AVOption.aria_labels.option"),"data-test":"option-section"},[c.createElementVNode("div",{class:c.normalizeClass(["AVOption--container",{"AVOption--container-column":b.value>1,"AVOption--container-row":b.value<=5}]),"data-test":"option-container"},[c.createElementVNode("div",J11,[c.createElementVNode("header",G11,[e.option.image?(c.openBlock(),c.createElementBlock("img",{key:0,src:L.value,alt:c.unref(E)("js.components.AVOption.aria_labels.option_image"),class:"AVOption-image","data-test":"option-image"},null,8,Z11)):c.createCommentVNode("",!0),c.createElementVNode("h5",{class:"AVOption--title",textContent:c.toDisplayString(u.value)},null,8,Q11)]),d.value||M.value.length||v.value||e.option.candidateId?(c.openBlock(),c.createElementBlock("div",Y11,[d.value?(c.openBlock(),c.createElementBlock("div",K11,[c.createElementVNode("p",{innerHTML:d.value},null,8,X11)])):c.createCommentVNode("",!0),M.value.length>0||e.option.candidateId?(c.openBlock(),c.createElementBlock("div",e21,[e.option.candidateId?(c.openBlock(),c.createElementBlock("button",{key:0,class:"AVOption--link",onClick:$[0]||($[0]=z1=>o("view-candidate",e.option.candidateId)),"data-test":"option-candidacy"},c.toDisplayString(c.unref(E)("js.components.AVOption.view_candidate")),1)):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(M.value,z1=>(c.openBlock(),c.createElementBlock("a",{key:z1.toString(),href:z1.url,class:"AVOption--link",target:"_blank","data-test":"option-link"},c.toDisplayString(z1.text),9,c21))),128))])):c.createCommentVNode("",!0),v1&&v.value?(c.openBlock(),c.createElementBlock("div",l21,[c.createElementVNode("div",{id:`option_${e.option.reference}_dropdown`,class:"AVOption--expander-container","aria-hidden":"true","data-test":"option-expander"},[c.createVNode(J,{icon:p1?"chevron-down":i.value?"chevron-left":"chevron-right",class:"AVOption--expander-icon"},null,8,["icon"]),c.createElementVNode("span",{class:"AVOption--expander-help-text",innerHTML:p1?c.unref(E)("js.components.AVOption.collapse_text"):c.unref(E)("js.components.AVOption.expand_text")},null,8,a21)],8,t21),C.value&&!p1?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(["AVOption--suboption-badge",{"AVOption--suboption-badge-danger":e.invalid,"AVOption--suboption-badge-normal":!e.invalid}]),"data-test":"option-child-selected"},c.toDisplayString(i.value?`${c.unref(E)("js.components.AVOption.sub_options_select")} ${C.value}`:`${C.value} ${c.unref(E)("js.components.AVOption.sub_options_select")}`),3)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]),b.value>=1?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass({"AVOption--multivote-aside":b.value<=5,"AVOption--multivote-footer":b.value>5,"AVOption--singlevote":b.value===1}),style:c.normalizeStyle(`background-color: ${b.value===1?"#FFFFFF":"#f7f7f7"}`),"data-test":"option-multivote"},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(A.value,z1=>(c.openBlock(),c.createElementBlock("div",{key:z1.toString(),class:"AVOption--group"},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(z1,_1=>(c.openBlock(),c.createBlock(I,{key:_1,checked:f.value>=_1,rank:r.value?e.selections.map(u1=>u1.reference).indexOf(e.option.reference)+1:null,"exclusive-error":e.exclusiveError,invalid:e.invalid,"option-reference":e.option.reference,"check-box-index":_1,disabled:e.disabled||e.observerMode,onToggled:u1=>_(e.option.reference,_1)},null,8,["checked","rank","exclusive-error","invalid","option-reference","check-box-index","disabled","onToggled"]))),128))]))),128))],6)):c.createCommentVNode("",!0),k.value&&(e.observerMode||e.disabled)?(c.openBlock(),c.createElementBlock("div",n21,[c.createVNode(J,{icon:"user",class:"AVOption--realtime-results-icon"}),c.createElementVNode("span",null,c.toDisplayString(i.value?`${k.value.results.count===1?c.unref(E)("js.components.AVOption.vote_count_singular"):c.unref(E)("js.components.AVOption.vote_count_plural")} ${k.value.results.count}`:`${k.value.results.count} ${k.value.results.count===1?c.unref(E)("js.components.AVOption.vote_count_singular"):c.unref(E)("js.components.AVOption.vote_count_plural")}`),1),k.value.showPercentage?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[$[3]||($[3]=c.createElementVNode("span",null,"-",-1)),c.createElementVNode("span",null,c.toDisplayString(`${k.value.results.percentage}%`),1)],64)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)],2)],14,W11)]),pane:c.withCtx(({toggleCollapse:p1})=>[v.value?(c.openBlock(),c.createElementBlock("div",o21,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.option.children,v1=>(c.openBlock(),c.createBlock(P,{key:v1.reference,option:v1,selections:e.selections,contest:e.contest,invalid:e.invalid,disabled:e.disabled,"observer-mode":e.observerMode,"partial-results":e.partialResults,"exclusive-error":v1.exclusive&&e.exclusiveError,"image-option":e.imageOption,onChecked:$[1]||($[1]=z1=>o("checked",z1)),onAccordionOpen:()=>p1(!0,!1)},null,8,["option","selections","contest","invalid","disabled","observer-mode","partial-results","exclusive-error","image-option","onAccordionOpen"]))),128))])):c.createCommentVNode("",!0)]),_:2},[!e.disabled&&k.value&&!e.observerMode?{name:"results",fn:c.withCtx(()=>[c.createElementVNode("div",s21,[c.createVNode(J,{icon:"user",class:"AVOption--realtime-results-icon"}),c.createElementVNode("span",null,c.toDisplayString(i.value?`${k.value.results.count===1?c.unref(E)("js.components.AVOption.vote_count_singular"):c.unref(E)("js.components.AVOption.vote_count_plural")} ${k.value.results.count}`:`${k.value.results.count} ${k.value.results.count===1?c.unref(E)("js.components.AVOption.vote_count_singular"):c.unref(E)("js.components.AVOption.vote_count_plural")}`),1),k.value.showPercentage?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[$[4]||($[4]=c.createElementVNode("span",null,"-",-1)),c.createElementVNode("span",null,c.toDisplayString(`${k.value.results.percentage}%`),1)],64)):c.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["collapsable","start-collapsed"])],2)}}}),Bj=O(i21,[["__scopeId","data-v-e98bd97f"]]),r21=["aria-label"],f21={class:"AVBlankOption--header","aria-hidden":"true","data-test":"option-content"},m21={class:"AVBlankOption--title"},u21={class:"AVBlankOption--checkbox"},d21={key:0,class:"AVBlankOption--realtime-results AVOption--realtime-results-internal","data-test":"partial-results"},p21={key:0,class:"AVBlankOption--realtime-results","data-test":"realtime-results"},z21=c.defineComponent({__name:"AVBlankOption",props:{checked:{type:Boolean,required:!0},error:{type:Boolean,required:!0},disabled:{type:Boolean,default:!1},partialResults:{type:Object,default:null},accentColor:{type:String,default:null},observerMode:{type:Boolean,default:!1},locale:{type:String,default:null},invalid:{type:Boolean,default:!1}},emits:["toggleBlank"],setup(e){const l=c.inject("i18n"),{t}=l.global,a=e;c.onMounted(()=>{a.locale&&W(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&W(a.locale)},{deep:!0});const n=c.computed(()=>document.getElementsByTagName("html")[0].dir==="rtl");return(s,o)=>{const i=c.resolveComponent("AVOptionCheckbox"),r=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass({"AVBlankOption--disabled":e.disabled}),"data-test":"blank-option"},[c.createElementVNode("div",{class:c.normalizeClass({AVBlankOption:!0,"AVBlankOption--accent":e.accentColor}),style:c.normalizeStyle(e.accentColor?`border-left-color: ${e.accentColor}`:""),"aria-label":c.unref(t)("js.components.AVBlankOption.aria_labels.option"),"data-test":"option-container"},[c.createElementVNode("div",f21,[c.createElementVNode("h5",m21,c.toDisplayString(c.unref(t)("js.components.AVBlankOption.title")),1),c.createElementVNode("div",u21,[c.createVNode(i,{"option-reference":"blank",rank:null,checked:e.checked,"exclusive-error":e.error,invalid:e.invalid,disabled:e.disabled||e.observerMode,onToggled:o[0]||(o[0]=f=>s.$emit("toggleBlank")),"data-test":"blank-checkbox"},null,8,["checked","exclusive-error","invalid","disabled"])]),e.partialResults&&(e.observerMode||e.disabled)?(c.openBlock(),c.createElementBlock("div",d21,[c.createVNode(r,{icon:"user",class:"AVBlankOption--realtime-results-icon"}),c.createElementVNode("span",null,c.toDisplayString(n.value?`${e.partialResults.results.count===1?c.unref(t)("js.components.AVBlankOption.vote_count_singular"):c.unref(t)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}`:`${e.partialResults.results.count} ${e.partialResults.results.count===1?c.unref(t)("js.components.AVBlankOption.vote_count_singular"):c.unref(t)("js.components.AVBlankOption.vote_count_plural")}`),1),e.partialResults.showPercentage?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[o[1]||(o[1]=c.createElementVNode("span",null,"-",-1)),c.createElementVNode("span",null,c.toDisplayString(`${e.partialResults.results.percentage}%`),1)],64)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)])],14,r21),!e.disabled&&e.partialResults&&!e.observerMode?(c.openBlock(),c.createElementBlock("div",p21,[c.createVNode(r,{icon:"user",class:"AVBlankOption--realtime-results-icon"}),c.createElementVNode("span",null,c.toDisplayString(n.value?`${e.partialResults.results.count===1?c.unref(t)("js.components.AVBlankOption.vote_count_singular"):c.unref(t)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}`:`${e.partialResults.results.count} ${e.partialResults.results.count===1?c.unref(t)("js.components.AVBlankOption.vote_count_singular"):c.unref(t)("js.components.AVBlankOption.vote_count_plural")}`),1),e.partialResults.showPercentage?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[o[2]||(o[2]=c.createElementVNode("span",null,"-",-1)),c.createElementVNode("span",null,c.toDisplayString(`${e.partialResults.results.percentage}%`),1)],64)):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)],2)}}}),Tj=O(z21,[["__scopeId","data-v-d585dd76"]]),h21=["aria-label"],L21={class:"AVWriteInOption--header"},g21={class:"AVWriteInOption--container"},C21={id:"option_writeIn",class:"AVWriteInOption--title"},M21={class:"AVWriteInOption--form-group"},v21=["aria-label","disabled"],b21={value:""},A21=["value","selected"],_21=["value","placeholder","aria-label","disabled"],N21=c.defineComponent({__name:"AVWriteInOption",props:{parties:{type:Array,required:!0},candidateValue:{type:String,required:!0},partyValue:{type:String,required:!0},checkedValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},observerMode:{type:Boolean,defaul:!1},locale:{type:String,default:null}},emits:["update:candidateValue","update:partyValue","update:checkedValue"],setup(e,{emit:l}){const t=c.inject("i18n"),{t:a}=t.global,n=e,s=l;c.onMounted(()=>{n.locale&&W(n.locale)}),c.watch(()=>n.locale,()=>{n.locale&&W(n.locale)},{deep:!0});const o=f=>{s("update:candidateValue",f),r()},i=f=>{s("update:partyValue",f),r()},r=()=>{const f=n.partyValue!==""||n.candidateValue!=="";f!==n.checkedValue&&s("update:checkedValue",f)};return(f,u)=>{const d=c.resolveComponent("AVOptionCheckbox");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass({AVWriteInOption:!0,"AVWriteInOption--disabled":e.disabled}),"aria-label":c.unref(a)("js.components.AVWriteInOption.aria_labels.option")},[c.createElementVNode("div",L21,[c.createElementVNode("div",g21,[c.createElementVNode("div",C21,c.toDisplayString(c.unref(a)("js.components.AVWriteInOption.title")),1),c.createElementVNode("div",M21,[c.createElementVNode("select",{class:"AVWriteInOption--form-control","aria-label":c.unref(a)("js.components.AVWriteInOption.aria_labels.party"),disabled:e.disabled,onInput:u[0]||(u[0]=m=>i(m.target.value))},[c.createElementVNode("option",b21,c.toDisplayString(c.unref(a)("js.components.AVWriteInOption.choose_party")),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.parties,m=>(c.openBlock(),c.createElementBlock("option",{key:m.letter,value:m.letter,selected:m.letter===e.partyValue},c.toDisplayString(m.letter)+" - "+c.toDisplayString(m.name),9,A21))),128))],40,v21),c.createElementVNode("input",{value:e.candidateValue,class:"AVWriteInOption--form-control",placeholder:c.unref(a)("js.components.AVWriteInOption.placeholder"),"aria-label":c.unref(a)("js.components.AVWriteInOption.aria_labels.candidate"),disabled:e.disabled,onInput:u[1]||(u[1]=m=>o(m.target.value))},null,40,_21)])]),c.createVNode(d,{class:"AVWriteInOption--checkbox",checked:e.checkedValue,"option-id":0,disabled:e.disabled||e.observerMode},null,8,["checked","disabled"])])],10,h21)}}}),Hj=O(N21,[["__scopeId","data-v-f2bba574"]]),k21={class:"AVSubmissionHelper"},x21={key:1},y21=["textContent"],V21={key:2},S21={class:"AVSubmissionHelper--help"},w21={key:0},E21={key:1},B21=["innerHTML"],T21={key:3},H21=c.defineComponent({__name:"AVSubmissionHelper",props:{minMarks:{type:Number,required:!0},maxMarks:{type:Number,required:!0},errors:{type:Array,required:!0},chosenCount:{type:Number,required:!0},hasExclusiveOptions:{type:Boolean,default:!1},weight:{type:Number,default:null},locale:{type:String,default:null}},setup(e){const l=e,t=c.computed(()=>l.errors.map(o=>o.keys?(Object.keys(o.keys).forEach(i=>{typeof o.keys[i]=="object"&&(o.keys[i]=o.keys[i][s.value])}),n(`js.components.AVSubmissionHelper.errors.${o.message}`,o.keys)):n(`js.components.AVSubmissionHelper.errors.${o.message}`))),a=c.inject("i18n"),{t:n}=a.global,s=c.computed(()=>a.global.locale.value||a.global.locale);return c.onMounted(()=>{l.locale&&W(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&W(l.locale)},{deep:!0}),(o,i)=>(c.openBlock(),c.createElementBlock("div",k21,[c.createElementVNode("div",{class:c.normalizeClass(["AVSubmissionHelper--container",{"AVSubmissionHelper--danger":e.errors.length>0}]),"data-test":"submission-helper"},[e.weight?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass({"AVSubmissionHelper--weight":!0,"AVSubmissionHelper--weight-danger":e.errors.length>0}),"data-test":"submission-helper-weight"},c.toDisplayString(c.unref(n)("js.components.AVSubmissionHelper.your_vote_weight",{weight:e.weight})),3)):c.createCommentVNode("",!0),e.errors.length>0?(c.openBlock(),c.createElementBlock("div",x21,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.value,r=>(c.openBlock(),c.createElementBlock("div",{key:r,role:"alert",textContent:c.toDisplayString(r),"data-test":"submission-helper-error"},null,8,y21))),128)),i[0]||(i[0]=c.createElementVNode("hr",{class:"AVSubmissionHelper--separator"},null,-1))])):c.createCommentVNode("",!0),e.maxMarks>1?(c.openBlock(),c.createElementBlock("div",V21,[c.createElementVNode("div",S21,[e.minMarks===e.maxMarks?(c.openBlock(),c.createElementBlock("div",w21,c.toDisplayString(`${c.unref(n)("js.components.AVSubmissionHelper.select_exactly",{min_marks:e.minMarks})}`),1)):(c.openBlock(),c.createElementBlock("div",E21,c.toDisplayString(`${e.hasExclusiveOptions?c.unref(n)("js.components.AVSubmissionHelper.select_multiple_with_exclusives",{min_marks:e.minMarks,max_marks:e.maxMarks}):c.unref(n)("js.components.AVSubmissionHelper.select_multiple",{min_marks:e.minMarks,max_marks:e.maxMarks})}`),1)),e.chosenCount>0?(c.openBlock(),c.createElementBlock("div",{key:2,innerHTML:c.unref(n)("js.components.AVSubmissionHelper.selected",{selected:e.chosenCount}),class:"AVSubmissionHelper--count","data-test":"submission-helper-count"},null,8,B21)):c.createCommentVNode("",!0)])])):(c.openBlock(),c.createElementBlock("div",T21,[c.createElementVNode("div",null,c.toDisplayString(c.unref(n)("js.components.AVSubmissionHelper.select_single")),1)]))],2)]))}}),Ij=O(H21,[["__scopeId","data-v-db1640de"]]);function I21(e,l,t){if(typeof t!="function")throw new Error("search_by must be a function that returns a string");const a=l.toLowerCase().trim().split(/\s+/);return e.filter(n=>{const s=t(n).toLowerCase().trim().split(/\s+/);return a.every(o=>s.some(i=>i.includes(o)))})}const O21=["aria-label"],D21={class:"AVSearchBallot--form-group"},P21=["textContent"],R21={class:"AVSearchBallot--input-group"},F21=["placeholder"],$21={id:"ballot_searcher_results",class:"AVSearchBallot--results","aria-live":"polite","aria-label":"search-results","data-test":"search-results"},q21=["aria-label"],j21={key:0,class:"AVSeachOptionBallot--ancestry"},U21={class:"AVSeachOptionBallot--breadcrumb"},W21=["id","aria-label","onClick"],J21=["textContent"],G21=["textContent"],Z21=c.defineComponent({__name:"AVSearchBallot",props:{options:{type:Array,required:!0},locale:{type:String,default:null}},setup(e){const{eventBusEmit:l}=Ej(),t=e,a=c.ref(""),n=c.computed(()=>a.value.trim()===""?[]:I21(t.options,a.value,m=>m.title[d.value])),s=m=>o(m,[]).reverse(),o=(m,p)=>m.parentContent?(p.push(m.parentContent),o(m.parentContent,p)):p,i=()=>{a.value=""},r=m=>{l("highlight-option",m.reference),i()},f=c.inject("i18n"),{t:u}=f.global,d=c.computed(()=>f.global.locale.value||f.global.locale);return c.onMounted(()=>{t.locale&&W(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&W(t.locale)},{deep:!0}),(m,p)=>(c.openBlock(),c.createElementBlock("form",{role:"search",class:"AVSearchBallot","aria-label":c.unref(u)("js.components.AVSearchBallot.aria_labels.ballot_options"),"data-test":"search-ballot",onSubmit:p[1]||(p[1]=c.withModifiers(()=>{},["prevent"]))},[c.createElementVNode("div",D21,[c.createElementVNode("label",{for:"ballot_search",class:"AVSearchBallot--label",textContent:c.toDisplayString(c.unref(u)("js.components.AVSearchBallot.search_the_ballot"))},null,8,P21),c.createElementVNode("div",R21,[c.withDirectives(c.createElementVNode("input",{id:"ballot_search","onUpdate:modelValue":p[0]||(p[0]=L=>a.value=L),type:"search",class:"AVSearchBallot--form-control",placeholder:c.unref(u)("js.components.AVSearchBallot.enter_option_name"),"data-test":"search-ballot-input"},null,8,F21),[[c.vModelText,a.value]])])]),c.createElementVNode("div",$21,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.value,L=>(c.openBlock(),c.createElementBlock("div",{key:L,"aria-label":L.title[d.value]},[s(L).length>0?(c.openBlock(),c.createElementBlock("div",j21,[c.createElementVNode("ul",U21,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s(L),M=>(c.openBlock(),c.createElementBlock("li",{key:M.reference,class:"AVSeachOptionBallot--breadcrumb-item"},c.toDisplayString(M.title[d.value]),1))),128))])])):c.createCommentVNode("",!0),c.createElementVNode("div",{id:`search_result_${L.reference}`,class:"AVSearchBallot--option",role:"button","aria-label":c.unref(u)("js.components.AVSearchBallot.aria_labels.go_to_option"),"data-test":"search-result",onClick:c.withModifiers(M=>r(L),["prevent"])},[c.createElementVNode("span",{class:"AVSearchBallot--link",textContent:c.toDisplayString(L.title[d.value])},null,8,J21)],8,W21)],8,q21))),128)),a.value&&n.value.length===0?(c.openBlock(),c.createElementBlock("div",{key:0,class:"AVSearchBallot--alert",textContent:c.toDisplayString(c.unref(u)("js.components.AVSearchBallot.no_results"))},null,8,G21)):c.createCommentVNode("",!0)])],40,O21))}}),Oj=O(Z21,[["__scopeId","data-v-0b2b5c97"]]),Q21={class:"AVSplitWeightHelper"},Y21={class:"AVSplitWeightHelper--box","data-test":"weight-helper-total"},K21={class:"AVSplitWeightHelper--box","data-test":"weight-helper-assigned"},X21={class:"AVSplitWeightHelper--box","data-test":"weight-helper-unused"},e31=c.defineComponent({__name:"AVSplitWeightHelper",props:{assignedWeight:{type:Number,required:!0},unusedWeight:{type:Number,required:!0},activeAssigned:{type:Number,default:null},locale:{type:String,default:null}},setup(e){const l=c.inject("i18n"),{t}=l.global,a=e;return c.onMounted(()=>{a.locale&&W(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&W(a.locale)},{deep:!0}),(n,s)=>(c.openBlock(),c.createElementBlock("div",Q21,[c.createElementVNode("div",Y21,[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(c.unref(t)("js.components.AVSplitWeightHelper.total"))+" ",1),c.createElementVNode("strong",null,c.toDisplayString(e.assignedWeight+e.unusedWeight),1)])]),c.createElementVNode("div",K21,[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(c.unref(t)("js.components.AVSplitWeightHelper.assigned"))+" ",1),c.createElementVNode("strong",null,c.toDisplayString(e.assignedWeight),1)])]),c.createElementVNode("div",X21,[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(c.unref(t)("js.components.AVSplitWeightHelper.unused"))+" ",1),c.createElementVNode("strong",null,c.toDisplayString(e.unusedWeight),1)])])]))}}),Dj=O(e31,[["__scopeId","data-v-3a80cb22"]]),c31={class:"AVSplitWizardHeader","data-test":"split-wizard-header"},l31={key:0,class:"AVSplitWizardHeader--text",style:{"font-weight":"400"}},t31={key:1,class:"AVSplitWizardHeader--text",style:{"font-weight":"400"}},a31={key:2,class:"AVSplitWizardHeader--text",style:{"font-weight":"400"}},n31=c.defineComponent({__name:"AVSplitWizardHeader",props:{activeSelectionPileIndex:{type:Number},activeState:{type:String,required:!0},selectionPiles:{type:Array,required:!0},totalWeight:{type:Number,required:!0},isEditing:{type:Boolean,required:!0},locale:{type:String,default:null}},emits:["cancel"],setup(e){const l=c.inject("i18n"),{t}=l.global,a=e;return c.onMounted(()=>{a.locale&&W(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&W(a.locale)},{deep:!0}),(n,s)=>{const o=c.resolveComponent("AVTooltip");return c.openBlock(),c.createElementBlock("header",c31,[e.activeState==="ballot"?(c.openBlock(),c.createElementBlock("p",l31,c.toDisplayString(e.isEditing?`${c.unref(t)("js.components.AVSplitWizardHeader.ballot.editing")} ${e.activeSelectionPileIndex+1}`:`${c.unref(t)("js.components.AVSplitWizardHeader.ballot.adding")} ${e.selectionPiles.length+1}`),1)):e.activeState==="assign"?(c.openBlock(),c.createElementBlock("p",t31,c.toDisplayString(e.isEditing?`${c.unref(t)("js.components.AVSplitWizardHeader.assign.header")} ${(e.isEditing?e.activeSelectionPileIndex:e.selectionPiles.length)+1}`:`${c.unref(t)("js.components.AVSplitWizardHeader.assign.header_edit_mode")} ${(e.isEditing?e.activeSelectionPileIndex:e.selectionPiles.length)+1}`),1)):(c.openBlock(),c.createElementBlock("p",a31,c.toDisplayString(c.unref(t)("js.components.AVSplitWizardHeader.overview.header")),1)),e.activeState==="ballot"?(c.openBlock(),c.createBlock(o,{key:3,content:`${c.unref(t)("js.components.AVSplitWizardHeader.ballot.can_assign_description_pre")} ${e.totalWeight} ${c.unref(t)("js.components.AVSplitWizardHeader.ballot.can_assign_description_pos")}`,text:`${c.unref(t)("js.components.AVSplitWizardHeader.ballot.can_assign_ballots_pre")} ${e.totalWeight} ${c.unref(t)("js.components.AVSplitWizardHeader.ballot.can_assign_ballots_pos")}`,class:"AVSplitWizardHeader--tooltip-text",icon:"circle-info",id:"split-helper-tooltip",position:"top","data-test":"split-wizard-tooltip"},null,8,["content","text"])):c.createCommentVNode("",!0)])}}}),Pj=O(n31,[["__scopeId","data-v-13834427"]]),s31={class:"AVElectaContestCard--title"},o31={class:"AVElectaContestCard--subtitle"},i31=c.defineComponent({__name:"AVElectaContestCard",props:{contestTitle:{type:String,required:!0},votingRoundTitle:{type:String,required:!0}},setup(e){return(l,t)=>{const a=c.resolveComponent("AVCard");return c.openBlock(),c.createBlock(a,{variant:"rounded-electa"},{default:c.withCtx(()=>[c.createElementVNode("h3",s31,c.toDisplayString(e.contestTitle),1),c.createElementVNode("p",o31,c.toDisplayString(e.votingRoundTitle),1),t[0]||(t[0]=c.createElementVNode("div",{class:"AVElectaContestCard--line"},null,-1)),c.renderSlot(l.$slots,"card-content",{},void 0,!0)]),_:3})}}}),Rj=O(i31,[["__scopeId","data-v-8a538d47"]]),r31={class:"AVResultOption--content"},f31={class:"AVResultOption--inner-content"},m31=["src"],u31={class:"AVResultOption--title","data-test":"result-title"},d31={class:"AVResultOption--result-container","data-test":"result-results"},p31={class:"AVResultOption--result-count"},z31={key:0,class:"AVResultOption--result-percentage"},h31=c.defineComponent({__name:"AVResultOption",props:{optionTitle:{type:Object,required:!0},optionImage:{type:String,default:null},votes:{type:Number,required:!0},total:{type:Number,required:!0},elected:{type:Boolean,default:!1},tied:{type:Boolean,default:!1},hidePercentage:{type:Boolean,default:!1},locale:{type:String,default:null}},setup(e){const l=e,t=c.computed(()=>l.total>0?Math.round(l.votes/l.total*1e4)/100:0),a=c.computed(()=>Math.round(l.votes*100)/100),n=c.inject("i18n"),s=c.computed(()=>n.global.locale.value||n.global.locale);return c.onMounted(()=>{l.locale&&W(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&W(l.locale)},{deep:!0}),(o,i)=>{const r=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["AVResultOption",{"AVResultOption--bg-default":!e.tied&&!e.elected,"AVResultOption--bg-elected":e.elected,"AVResultOption--bg-tied":e.tied}]),"data-test":"result-option"},[c.withDirectives((c.openBlock(),c.createElementBlock("div",r31,[c.createElementVNode("div",f31,[e.optionImage?(c.openBlock(),c.createElementBlock("img",{key:0,src:e.optionImage,class:"AVResultOption--image","data-test":"result-image"},null,8,m31)):c.createCommentVNode("",!0),c.createElementVNode("header",u31,c.toDisplayString(e.optionTitle[s.value]),1)]),c.createElementVNode("div",d31,[c.createElementVNode("div",p31,c.toDisplayString(a.value),1),e.hidePercentage?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",z31,c.toDisplayString(t.value)+"% ",1))])])),[[r,e.optionTitle[s.value]]])],2)}}}),Fj=O(h31,[["__scopeId","data-v-35bf20c6"]]),L31="data:image/svg+xml,%3csvg%20width='789'%20height='134'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:undefined='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xml:space='preserve'%20version='1.1'%3e%3cdefs%20id='defs6'%3e%3cclipPath%20id='clipPath16'%20clipPathUnits='userSpaceOnUse'%3e%3cpath%20id='path14'%20d='m-93.50311,780.92563l841.89,0l0,-595.276l-841.89,0l0,595.276z'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%3e%3ctitle%3eLayer%201%3c/title%3e%3cg%20id='svg_1'%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g18'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path20'%20d='m40.003,545.04105l-30.05,-30.016c-6.258,8.368%20-9.953,18.756%20-9.953,29.998c0,27.75%2022.485,50.253%2050.235,50.253c11.277,0%2021.684,-3.713%2030.067,-9.988l-29.858,-29.824l-8.524,8.524l-20.847,0l18.93,-18.947z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g22'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path24'%20d='m100.46931,545.02348c0,-27.731%20-22.485,-50.234%20-50.234,-50.234c-11.174,0%20-21.493,3.642%20-29.842,9.813l30.051,29.998l8.523,-8.523l20.847,0l-18.929,18.946l29.806,29.771c6.153,-8.331%209.778,-18.633%209.778,-29.771'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g26'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path28'%20d='m149.3263,542.50977c-2.465,7.926%20-3.851,12.409%20-4.161,13.45c-0.31,1.037%20-0.533,1.859%20-0.666,2.463c-0.554,-2.146%20-2.137,-7.451%20-4.752,-15.913l9.579,0zm4.525,-15.284l-2.666,8.748l-13.398,0l-2.665,-8.748l-8.397,0l12.972,36.904l9.528,0l13.021,-36.904l-8.395,0z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g30'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path32'%20d='m188.56751,537.43067c0,-3.318%20-1.194,-5.933%20-3.583,-7.844c-2.388,-1.91%20-5.71,-2.864%20-9.967,-2.864c-3.922,0%20-7.391,0.737%20-10.408,2.212l0,7.24c2.48,-1.106%204.58,-1.886%206.297,-2.338c1.719,-0.453%203.289,-0.678%204.714,-0.678c1.71,0%203.021,0.326%203.934,0.98c0.914,0.653%201.371,1.625%201.371,2.916c0,0.72%20-0.201,1.361%20-0.604,1.922c-0.401,0.561%20-0.993,1.101%20-1.773,1.623c-0.778,0.518%20-2.367,1.347%20-4.762,2.489c-2.247,1.054%20-3.931,2.069%20-5.054,3.041c-1.123,0.972%20-2.02,2.103%20-2.689,3.394c-0.672,1.29%20-1.006,2.798%20-1.006,4.526c0,3.249%201.102,5.805%203.305,7.666c2.204,1.86%205.25,2.791%209.139,2.791c1.91,0%203.732,-0.228%205.467,-0.679c1.734,-0.454%203.549,-1.09%205.443,-1.911l-2.514,-6.058c-1.961,0.805%20-3.582,1.366%20-4.865,1.683c-1.281,0.32%20-2.543,0.478%20-3.783,0.478c-1.475,0%20-2.607,-0.344%20-3.394,-1.03c-0.788,-0.688%20-1.181,-1.584%20-1.181,-2.69c0,-0.688%200.158,-1.287%200.477,-1.797c0.318,-0.511%200.826,-1.006%201.521,-1.484c0.695,-0.478%202.342,-1.336%204.94,-2.576c3.436,-1.642%205.79,-3.289%207.065,-4.941c1.272,-1.651%201.91,-3.674%201.91,-6.071'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g34'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path36'%20d='m216.92442,537.43067c0,-3.318%20-1.194,-5.933%20-3.583,-7.844c-2.388,-1.91%20-5.71,-2.864%20-9.967,-2.864c-3.922,0%20-7.391,0.737%20-10.408,2.212l0,7.24c2.48,-1.106%204.58,-1.886%206.297,-2.338c1.719,-0.453%203.289,-0.678%204.714,-0.678c1.709,0%203.021,0.326%203.934,0.98c0.914,0.653%201.371,1.625%201.371,2.916c0,0.72%20-0.201,1.361%20-0.604,1.922c-0.402,0.561%20-0.993,1.101%20-1.773,1.623c-0.778,0.518%20-2.367,1.347%20-4.763,2.489c-2.246,1.054%20-3.93,2.069%20-5.053,3.041c-1.123,0.972%20-2.02,2.103%20-2.689,3.394c-0.672,1.29%20-1.006,2.798%20-1.006,4.526c0,3.249%201.102,5.805%203.305,7.666c2.204,1.86%205.25,2.791%209.138,2.791c1.911,0%203.733,-0.228%205.468,-0.679c1.734,-0.454%203.549,-1.09%205.442,-1.911l-2.513,-6.058c-1.961,0.805%20-3.582,1.366%20-4.865,1.683c-1.281,0.32%20-2.543,0.478%20-3.783,0.478c-1.475,0%20-2.607,-0.344%20-3.394,-1.03c-0.788,-0.688%20-1.182,-1.584%20-1.182,-2.69c0,-0.688%200.159,-1.287%200.477,-1.797c0.319,-0.511%200.826,-1.006%201.522,-1.484c0.695,-0.478%202.342,-1.336%204.94,-2.576c3.435,-1.642%205.789,-3.289%207.064,-4.941c1.273,-1.651%201.911,-3.674%201.911,-6.071'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g38'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path40'%20d='m244.75251,527.22566l-21.167,0l0,36.752l21.167,0l0,-6.384l-13.374,0l0,-8.07l12.443,0l0,-6.386l-12.443,0l0,-9.476l13.374,0l0,-6.436z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g42'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path44'%20d='m267.982,527.22566l-8.849,28.834l-0.227,0c0.319,-5.867%200.477,-9.78%200.477,-11.74l0,-17.094l-6.963,0l0,36.752l10.609,0l8.698,-28.105l0.151,0l9.226,28.105l10.609,0l0,-36.752l-7.265,0l0,17.396c0,0.82%200.012,1.768%200.037,2.84c0.025,1.073%200.138,3.922%200.339,8.547l-0.226,0l-9.476,-28.783l-7.14,0z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g46'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path48'%20d='m307.17591,543.23835l0,-9.577l5.076,0c2.146,0%203.73,0.408%204.751,1.231c1.024,0.82%201.533,2.078%201.533,3.772c0,3.048%20-2.178,4.574%20-6.534,4.574l-4.826,0zm0,6.185l4.522,0c2.115,0%203.643,0.327%204.59,0.979c0.946,0.655%201.419,1.736%201.419,3.245c0,1.407%20-0.513,2.415%20-1.547,3.028c-1.029,0.612%20-2.659,0.918%20-4.888,0.918l-4.096,0l0,-8.17zm-7.795,14.554l11.44,0c5.21,0%208.994,-0.742%2011.348,-2.223c2.356,-1.484%203.533,-3.844%203.533,-7.077c0,-2.197%20-0.516,-3.998%20-1.546,-5.406c-1.03,-1.408%20-2.402,-2.254%20-4.109,-2.538l0,-0.253c2.328,-0.518%204.009,-1.49%205.039,-2.916c1.029,-1.424%201.546,-3.318%201.546,-5.68c0,-3.352%20-1.211,-5.966%20-3.634,-7.843c-2.42,-1.877%20-5.709,-2.816%20-9.865,-2.816l-13.752,0l0,36.752z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g50'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path52'%20d='m333.97279,527.22566l0,36.752l7.794,0l0,-30.316l14.907,0l0,-6.436l-22.701,0z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g54'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path56'%20d='m367.63191,548.84477l7.667,15.133l8.397,0l-12.194,-22.449l0,-14.303l-7.743,0l0,14.053l-12.191,22.699l8.446,0l7.618,-15.133z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g58'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path60'%20d='m429.52549,563.97755l7.87,0l-12.496,-36.752l-8.496,0l-12.469,36.752l7.868,0l6.913,-21.87c0.385,-1.291%200.786,-2.795%201.194,-4.514c0.411,-1.716%200.669,-2.912%200.766,-3.582c0.186,1.542%200.814,4.241%201.886,8.096l6.964,21.87z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g62'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path64'%20d='m447.04399,545.65138c0,-4.107%200.779,-7.197%202.337,-9.275c1.559,-2.079%203.889,-3.118%206.99,-3.118c6.216,0%209.324,4.129%209.324,12.393c0,8.279%20-3.089,12.42%20-9.275,12.42c-3.1,0%20-5.438,-1.044%20-7.015,-3.13c-1.575,-2.088%20-2.361,-5.185%20-2.361,-9.29m26.823,0c0,-6.082%20-1.508,-10.759%20-4.524,-14.026c-3.017,-3.269%20-7.341,-4.903%20-12.972,-4.903c-5.632,0%20-9.955,1.634%20-12.972,4.903c-3.016,3.267%20-4.525,7.96%20-4.525,14.078c0,6.115%201.513,10.788%204.536,14.012c3.026,3.228%207.363,4.841%2013.01,4.841c5.649,0%209.969,-1.627%2012.961,-4.876c2.989,-3.254%204.486,-7.928%204.486,-14.029'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g66'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path68'%20d='m493.37309,527.22566l-7.792,0l0,30.267l-9.981,0l0,6.485l27.752,0l0,-6.485l-9.979,0l0,-30.267z'/%3e%3c/g%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path70'%20d='m677.88556,41.73118l10.392,0l0,49.00266l-10.392,0l0,-49.00266z'/%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g72'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path74'%20d='m556.16221,527.22566l-9.903,0l-15.989,27.802l-0.228,0c0.319,-4.909%200.478,-8.413%200.478,-10.507l0,-17.295l-6.962,0l0,36.752l9.83,0l15.961,-27.525l0.176,0c-0.25,4.775%20-0.378,8.151%20-0.378,10.128l0,17.397l7.015,0l0,-36.752z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g76'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path78'%20d='m577.07823,547.86375l14.58,0l0,-19.054c-2.364,-0.774%20-4.588,-1.312%20-6.675,-1.622c-2.087,-0.311%20-4.218,-0.465%20-6.397,-0.465c-5.549,0%20-9.783,1.629%20-12.708,4.889c-2.925,3.26%20-4.387,7.939%20-4.387,14.04c0,5.933%201.696,10.558%205.091,13.877c3.394,3.318%208.098,4.978%2014.115,4.978c3.771,0%207.408,-0.755%2010.909,-2.264l-2.587,-6.234c-2.683,1.341%20-5.472,2.011%20-8.373,2.011c-3.368,0%20-6.067,-1.131%20-8.093,-3.394c-2.03,-2.262%20-3.041,-5.303%20-3.041,-9.124c0,-3.991%200.815,-7.037%202.449,-9.139c1.636,-2.103%204.011,-3.156%207.128,-3.156c1.624,0%203.275,0.168%204.952,0.503l0,7.669l-6.963,0l0,6.485z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",g31=["src"],C31=c.defineComponent({__name:"AVFooter",props:{enableSteps:{type:Boolean,default:!1},steps:{type:Array,default:null},active:{type:String,default:null},done:{type:Array,default:null},disableBanner:{type:Boolean,default:!1}},setup(e){return(l,t)=>{const a=c.resolveComponent("AVSteps");return c.openBlock(),c.createElementBlock("footer",{class:c.normalizeClass(["AVFooter",{"AVFooter--stacked":e.enableSteps}])},[e.enableSteps?(c.openBlock(),c.createBlock(a,{key:0,steps:e.steps,done:e.done,active:e.active,class:"AVFooter--child"},null,8,["steps","done","active"])):c.createCommentVNode("",!0),e.disableBanner?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(["AVFooter--base AVFooter--child",{"AVFooter--child-stacked":e.enableSteps}])},[t[0]||(t[0]=c.createElementVNode("span",{class:"AVFooter--text"},"Technology by",-1)),c.createElementVNode("img",{src:c.unref(L31),alt:"Assembly Voting",class:"AVFooter--img"},null,8,g31)],2))],2)}}}),$j=O(C31,[["__scopeId","data-v-1a82d440"]]);var M31={},v31={class:"AVSidebar"};function b31(e,l){return c.openBlock(),c.createElementBlock("nav",v31,[c.renderSlot(e.$slots,"default",{},void 0,!0)])}const qj=O(M31,[["render",b31],["__scopeId","data-v-65e0965f"]]);var A31={},_31={class:"AVNavbar"};function N31(e,l){return c.openBlock(),c.createElementBlock("nav",_31,[c.renderSlot(e.$slots,"default",{},void 0,!0)])}const jj=O(A31,[["render",N31],["__scopeId","data-v-3ea1799f"]]);var k31={},x31={class:"AVContent"},y31={class:"AVContent--sidebar","data-test":"sidebar"},V31={class:"AVContent--container","data-test":"container"};function S31(e,l){return c.openBlock(),c.createElementBlock("main",x31,[c.createElementVNode("div",y31,[c.renderSlot(e.$slots,"sidebar",{},void 0,!0)]),c.createElementVNode("div",V31,[c.renderSlot(e.$slots,"content",{},void 0,!0)])])}const Uj=O(k31,[["render",S31],["__scopeId","data-v-1923eca8"]]),w31=["aria-labelledby"],E31=c.defineComponent({__name:"AVModal",props:{modalActive:{type:Boolean,required:!0},ariaLabelledBy:{type:String,required:!0},removePadding:{type:Boolean,default:!1}},emits:["clickOutside"],setup(e,{emit:l}){const t=l,a=e;return c.watch(()=>a.modalActive,()=>{a.modalActive&&(document.body.style.overflowY="hidden"),a.modalActive||(document.body.style.overflowY="scroll")}),(n,s)=>(c.openBlock(),c.createBlock(c.Transition,{name:"modal-animation"},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{class:"AVModal",role:"dialog","aria-labelledby":e.ariaLabelledBy,"aria-modal":"true","aria-live":"assertive",onClick:s[1]||(s[1]=c.withModifiers(o=>t("clickOutside"),["stop"]))},[c.createVNode(c.Transition,{name:"modal-animation-inner"},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{class:c.normalizeClass(["AVModal--inner",{"AVModal--padding":!e.removePadding}]),onClick:s[0]||(s[0]=c.withModifiers(()=>{},["stop"]))},[c.renderSlot(n.$slots,"default",{},void 0,!0)],2),[[c.vShow,e.modalActive]])]),_:3})],8,w31),[[c.vShow,e.modalActive]])]),_:3}))}}),Wj=O(E31,[["__scopeId","data-v-ef5af7c2"]]),i4=(e,l)=>e.flatMap(t=>(l&&(t.parentContent={reference:l.reference,code:l.code,title:{...l.title}}),t.children?[t,...i4(t.children,t)]:[t]));var r4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ot={},B31=r4&&r4.__spreadArray||function(e,l,t){if(t||arguments.length===2)for(var a=0,n=l.length,s;a<n;a++)(s||!(a in l))&&(s||(s=Array.prototype.slice.call(l,0,a)),s[a]=l[a]);return e.concat(s||Array.prototype.slice.call(l))};Object.defineProperty(Ot,"__esModule",{value:!0});var T31=function(){function e(l){this.contest=l}return e.prototype.validate=function(l,t){t===void 0&&(t=!1);var a=[];return this.referenceMissing(l.optionSelections)&&a.push({message:"invalid_reference"}),this.tooManySelections(l.optionSelections)&&a.push({message:"too_many"}),this.blankNotAlone(l.optionSelections,l.explicitBlank)&&a.push({message:"blank"}),this.exclusiveNotAlone(l.optionSelections)&&a.push({message:"exclusive"}),a.push.apply(a,this.exceededListVotes(l.optionSelections)),l.explicitBlank||this.implicitlyBlank(l.optionSelections)||t&&a.push.apply(a,this.belowMinListVotes(l.optionSelections)),a},e.prototype.isComplete=function(l){var t=l.explicitBlank||this.optionIsExclusive(l)||this.implicitlyBlank(l.optionSelections)||!this.tooFewSelections(l.optionSelections);return t&&this.validate(l).length==0},Object.defineProperty(e.prototype,"optionReferences",{get:function(){return this.recursiveFlattener(this.contest.options).map(function(l){return l.reference})},enumerable:!1,configurable:!0}),e.prototype.recursiveFlattener=function(l){var t=this;if(!l)return[];var a=l.flatMap(function(n){return n.children?B31([n],t.recursiveFlattener(n.children),!0):[n]});return a},e.prototype.selectedReferences=function(l){return l.map(function(t){return t.reference})},e.prototype.referenceMissing=function(l){var t=this;return!this.selectedReferences(l).every(function(a){return a==="blank"||t.optionReferences.includes(a)})},e.prototype.implicitlyBlank=function(l){return this.contest.markingType.blankSubmission==="implicit"&&l.length===0},e.prototype.tooFewSelections=function(l){return l.length<this.contest.markingType.minMarks},e.prototype.tooManySelections=function(l){return l.length>this.contest.markingType.maxMarks},e.prototype.belowMinListVotes=function(l){var t=this,a=this.recursiveFlattener(this.contest.options),n=a.map(function(o){return o!=null&&o.minChooseableSuboptions?o:null}),s=[];return n.forEach(function(o){o!=null&&o.minChooseableSuboptions&&t.selectedChildren(l,[o])<o.minChooseableSuboptions&&s.push({message:"below_list_limit",keys:{list_name:o.title,min_list_marks:o.minChooseableSuboptions}})}),s},e.prototype.exceededListVotes=function(l){var t=this,a=this.recursiveFlattener(this.contest.options),n=a.map(function(o){return o!=null&&o.maxChooseableSuboptions?o:null}),s=[];return n.forEach(function(o){o!=null&&o.maxChooseableSuboptions&&t.selectedChildren(l,[o])>o.maxChooseableSuboptions&&s.push({message:"exceeded_list_limit",keys:{list_name:o.title,max_list_marks:o.maxChooseableSuboptions}})}),s},e.prototype.selectedChildren=function(l,t,a){var n=this;return a===void 0&&(a=0),t&&t.forEach(function(s){var o,i=(o=s==null?void 0:s.children)===null||o===void 0?void 0:o.filter(function(r){return n.selectedReferences(l).includes(r.reference)});a+=(i==null?void 0:i.length)||0,s.children&&(a=n.selectedChildren(l,s.children,a))}),a},e.prototype.exclusiveNotAlone=function(l){if(this.selectedReferences(l).length<2)return!1;var t=this.recursiveFlattener(this.contest.options);return this.selectedReferences(l).map(function(a){return t.find(function(n){return n.reference===a})}).some(function(a){return(a==null?void 0:a.exclusive)===!0})},e.prototype.blankNotAlone=function(l,t){return l.length>0&&t},e.prototype.optionIsExclusive=function(l){var t,a;return((t=l.optionSelections)===null||t===void 0?void 0:t.length)===1&&((a=this.contest.options.find(function(n){return n.reference===l.optionSelections[0].reference}))===null||a===void 0?void 0:a.exclusive)},e}(),Jj=Ot.default=T31,Gj={};Object.defineProperty(Gj,"__esModule",{value:!0});var H31=function(){function e(l){this.contest=l}return e.prototype.validate=function(l){var t=[];return this.partyExclusive(l.optionSelections)&&t.push({message:"cross_party_voting"}),t},e.prototype.selectedReferences=function(l){return l.map(function(t){return t.reference})},e.prototype.partyExclusive=function(l){var t=this.selectedReferences(l),a=this.contest.options.filter(function(s){return t.includes(s.reference)}).length>1,n=!1;return this.contest.options.forEach(function(s){var o,i;if(t.includes(s.reference)){var r=t.filter(function(d){return d!==s.reference}),f=(o=s.children)===null||o===void 0?void 0:o.map(function(d){return d.reference});a=r.some(function(d){return!(f!=null&&f.includes(d))})}var u=(i=s.children)===null||i===void 0?void 0:i.some(function(d){return t.includes(d.reference)});n&&u?a=!0:u&&(n=!0)}),a},e}(),I31=Gj.default=H31;const O31=["aria-label","aria-describedby"],D31=["id"],P31=["aria-label"],R31=c.defineComponent({__name:"AVBallot",props:{contest:{type:Object,required:!0},selectionPile:{type:Object,required:!0},locale:{type:String,default:null},showSubmissionHelper:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},observerMode:{type:Boolean,default:!1},partialResults:{type:Object,default:null},weight:{type:Number,default:null},includeLazyErrors:{type:Boolean,default:!1},imageOption:{type:String,default:"square"}},emits:["update:selectionPile","update:errors","view-candidate"],setup(e,{emit:l}){const t=e,a=l,n=c.ref(!1),s=c.ref(""),o=c.ref(""),i=c.ref(null),r=c.computed(()=>t.selectionPile.optionSelections),f=c.computed(()=>new Jj(t.contest)),u=c.computed(()=>t.contest.disregardVoterWeight?null:t.weight),d=c.computed(()=>{var N;let x=[];return(N=t.contest.customRulesets)!=null&&N.includes("belgian_ballot_rules")&&x.push(new I31(t.contest)),x}),m=c.computed(()=>{let x=[];d.value.forEach(E=>{x.push(...E.validate(t.selectionPile))});const N=[...f.value.validate(t.selectionPile,t.includeLazyErrors),...x];if(M.value&&N.some(E=>E.message==="cross_party_voting")){let E;N.some(R=>R.message==="exclusive")&&(E=N.findIndex(R=>R.message==="exclusive"),N.splice(E,1)),N.some(R=>R.message==="blank")&&(E=N.findIndex(R=>R.message==="cross_party_voting"),N.splice(E,1))}return a("update:errors",N),N}),p=c.computed(()=>m.value.length===0),L=c.computed(()=>{var x;return(x=t.contest.question)==null?void 0:x[V.value]}),M=c.computed(()=>{var x;return(x=t.contest.customRulesets)==null?void 0:x.includes("belgian_ballot_rules")}),v=c.computed(()=>i4(t.contest.options).some(x=>x.exclusive)),b=c.computed(()=>t.contest);c.watch(b,(x,N)=>{var E;N&&x&&x.reference!==N.reference&&((E=document.getElementById("content"))==null||E.focus(),N.searchForm&&(i.value.value=""))});const C=()=>{a("update:selectionPile",{...t.selectionPile,explicitBlank:!t.selectionPile.explicitBlank})},g=({reference:x,amount:N})=>{const E=r.value.filter(S=>S.reference===x).length;N===E&&(N=N-1);const R=r.value.filter(S=>S.reference!==x);for(let S=0;S<N;S++)R.push({reference:x});a("update:selectionPile",{...t.selectionPile,optionSelections:R})},A=x=>a("view-candidate",x),k=c.inject("i18n"),{t:_}=k.global,V=c.computed(()=>k.global.locale.value||k.global.locale);return c.onMounted(()=>{t.locale&&W(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&W(t.locale)},{deep:!0}),(x,N)=>{const E=c.resolveComponent("AVSearchBallot"),R=c.resolveComponent("AVWriteInOption"),S=c.resolveComponent("AVOption"),$=c.resolveComponent("AVBlankOption"),J=c.resolveComponent("AVSubmissionHelper");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass({AVBallot:!0,"AVBallot--error":!p.value}),"aria-label":c.unref(_)("js.components.AVBallot.aria_labels.ballot"),"aria-describedby":`ballot_${e.contest.reference}`,"data-test":"ballot"},[L.value?(c.openBlock(),c.createElementBlock("h5",{key:0,id:`ballot_${e.contest.reference}_question`,class:"AVBallot--question","aria-live":"polite","data-test":"ballot-question"},c.toDisplayString(L.value),9,D31)):c.createCommentVNode("",!0),e.contest.searchForm&&!e.disabled&&!e.observerMode?(c.openBlock(),c.createBlock(E,{key:1,ref_key:"search",ref:i,options:c.unref(i4)(e.contest.options),"options-container-id":"ballot_options"},null,8,["options"])):c.createCommentVNode("",!0),N[3]||(N[3]=c.createElementVNode("hr",{class:"AVBallot--separator"},null,-1)),c.createElementVNode("div",{id:"ballot_options",class:c.normalizeClass({"AVBallot--options":!0,"AVBallot--options-with-list":e.contest.options.some(I=>I.children)}),"aria-label":c.unref(_)("js.components.AVBallot.aria_labels.ballot_options")},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.contest.options,I=>(c.openBlock(),c.createElementBlock(c.Fragment,{key:I.reference},[I.writeIn?(c.openBlock(),c.createBlock(R,{key:0,"candidate-value":o.value,"onUpdate:candidateValue":N[0]||(N[0]=P=>o.value=P),"party-value":s.value,"onUpdate:partyValue":N[1]||(N[1]=P=>s.value=P),"checked-value":n.value,"onUpdate:checkedValue":N[2]||(N[2]=P=>n.value=P),parties:[],disabled:e.disabled,observerMode:e.observerMode},null,8,["candidate-value","party-value","checked-value","disabled","observerMode"])):(c.openBlock(),c.createBlock(S,{key:1,selections:r.value,option:I,invalid:!p.value,"exclusive-error":!M.value&&I.exclusive&&m.value.some(P=>P.message.includes("exclusive")),contest:e.contest,disabled:e.disabled,observerMode:e.observerMode,"partial-results":e.partialResults,"image-option":e.imageOption,onChecked:g,onViewCandidate:A},null,8,["selections","option","invalid","exclusive-error","contest","disabled","observerMode","partial-results","image-option"]))],64))),128)),e.contest.markingType.blankSubmission==="active_choice"?(c.openBlock(),c.createBlock($,{key:0,checked:e.selectionPile.explicitBlank,error:!M.value&&m.value.some(I=>I.message.includes("blank")),disabled:e.disabled,invalid:!p.value,observerMode:e.observerMode,accentColor:e.contest.blankOptionColor,"partial-results":e.partialResults?e.partialResults.blank:null,onToggleBlank:C},null,8,["checked","error","disabled","invalid","observerMode","accentColor","partial-results"])):c.createCommentVNode("",!0)],10,P31),e.showSubmissionHelper&&!e.disabled&&!e.observerMode?(c.openBlock(),c.createBlock(J,{key:2,id:`ballot_${e.contest.reference}`,"chosen-count":r.value.length,errors:m.value,weight:u.value,"min-marks":e.contest.markingType.minMarks,"max-marks":e.contest.markingType.maxMarks,"has-exclusive-options":v.value,class:"AVBallot--helper","data-test":"ballot-submission-helper"},null,8,["id","chosen-count","errors","weight","min-marks","max-marks","has-exclusive-options"])):c.createCommentVNode("",!0)],10,O31)}}}),Zj=O(R31,[["__scopeId","data-v-217fba3a"]]),F31={key:0,class:"AVPileSummary--summary"},$31={key:0,class:"AVPileSummary--summary-header","data-test":"pile-summary-header"},q31={class:"AVPileSummary--summary-header-text"},j31={key:1,class:"AVPileSummary--summary-header"},U31={class:"AVPileSummary--summary-body"},W31={key:1,class:"AVPileSummary--assign"},J31={class:"AVPileSummary--assign-card"},G31=["aria-label"],Z31={class:"AVPileSummary--edit"},Q31={key:0,"data-test":"pile-summary-assigned"},Y31={class:"AVPileSummary--assign-body","data-test":"pile-summary-body"},K31={key:0,class:"AVPileSummary--assign-text"},X31=["aria-label"],e41=c.defineComponent({__name:"AVPileSummary",props:{selectionPile:{type:Object,required:!0},contest:{type:Object,required:!0},maximumOptionsShown:{type:Number,default:null},activeState:{type:String,required:!0},pileIndex:{type:Number,default:null},isEditing:{type:Boolean,default:!1},totalPiles:{type:Number,required:!0},locale:{type:String,default:null},imageOption:{type:String,default:"square"}},emits:["editCurrentSelection","deleteSelection"],setup(e,{emit:l}){const t=l,a=e,n=c.ref(!1),s=c.computed(()=>a.selectionPile.optionSelections.length===0),o=c.computed(()=>!a.maximumOptionsShown||n.value?u.value.options:u.value.options.slice(0,a.maximumOptionsShown)),i=c.computed(()=>u.value.options.length-o.value.length),r=c.computed(()=>i4(a.contest.options).filter(v=>v.selectable)),f=(L,M)=>L&&L.parentContent?(M.push(L.parentContent),f(L.parentContent,M)):M,u=c.computed(()=>{const L={options:[],writeIns:[]};return a.selectionPile.optionSelections.forEach(M=>{if(M.text)L.writeIns.push({partyLetter:"?",partyName:"?",candidateName:M.text});else{const v=L.options.find(C=>C.handle===M.reference),b=r.value.find(C=>C.reference===M.reference);if(!b)return;v?v.crosses+=1:L.options.push({title:b.title,handle:M.reference,image:b.image,crosses:1,parent:b.parentContent,rank:a.contest.markingType.voteVariation==="ranked"?L.options.length+1:null})}}),L}),d=c.inject("i18n"),{t:m}=d.global,p=c.computed(()=>d.global.locale.value||d.global.locale);return c.onMounted(()=>{a.locale&&W(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&W(a.locale)},{deep:!0}),(L,M)=>{const v=c.resolveComponent("AVSummaryOption"),b=c.resolveComponent("AVIcon");return e.activeState==="summary"?(c.openBlock(),c.createElementBlock("div",F31,[e.contest.markingType.maxPiles!==1?(c.openBlock(),c.createElementBlock("header",$31,[c.createElementVNode("span",null,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.selection"))+" "+c.toDisplayString(e.pileIndex+1)+" / "+c.toDisplayString(e.totalPiles),1),c.createElementVNode("span",q31,c.toDisplayString(e.selectionPile.multiplier)+" "+c.toDisplayString(c.unref(m)("js.components.AVPileSummary.ballots")),1)])):(c.openBlock(),c.createElementBlock("header",j31,[c.createElementVNode("span",null,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.selection")),1)])),c.createElementVNode("div",U31,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(u.value.options,(C,g)=>(c.openBlock(),c.createBlock(v,{key:g,option:C,"multiple-votes-allowed":e.contest.markingType.votesAllowedPerOption>1,parents:f(C.parent,C.parent?[C.parent]:[]),"image-option":e.imageOption},null,8,["option","multiple-votes-allowed","parents","image-option"]))),128)),s.value?(c.openBlock(),c.createBlock(v,{key:0,blank:s.value},null,8,["blank"])):c.createCommentVNode("",!0)])])):(c.openBlock(),c.createElementBlock("div",W31,[c.createElementVNode("div",J31,[c.createElementVNode("div",{class:"AVPileSummary--assign-header","aria-label":c.unref(m)("js.components.AVPileSummary.aria_labels.edit_selection"),role:"button","data-test":"pile-summary-edit",onClick:M[0]||(M[0]=C=>t("editCurrentSelection"))},[c.createElementVNode("div",Z31,[c.createVNode(b,{icon:"pen-to-square"}),c.createElementVNode("span",null,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.ballot_selection"))+" "+c.toDisplayString(e.pileIndex+1),1)]),e.activeState==="overview"||e.isEditing?(c.openBlock(),c.createElementBlock("span",Q31,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.assigned"))+" "+c.toDisplayString(e.selectionPile.multiplier),1)):c.createCommentVNode("",!0)],8,G31),c.createElementVNode("div",Y31,[s.value?(c.openBlock(),c.createElementBlock("p",K31,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.blank")),1)):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value,(C,g)=>(c.openBlock(),c.createElementBlock("p",{key:g,class:"AVPileSummary--assign-text"},c.toDisplayString(C.rank?`${C.rank}: `:"")+" "+c.toDisplayString(C.title[p.value]),1))),128)),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(u.value.writeIns,(C,g)=>(c.openBlock(),c.createElementBlock("p",{key:g,class:"AVPileSummary--assign-text"},[c.createElementVNode("b",null,c.toDisplayString(C.partyLetter)+" - "+c.toDisplayString(C.partyName),1),M[4]||(M[4]=c.createElementVNode("br",null,null,-1)),c.createElementVNode("span",null,c.toDisplayString(C.candidateName),1)]))),128)),i.value>0?(c.openBlock(),c.createElementBlock("p",{key:1,role:"button",class:"AVPileSummary--show-more-button","data-test":"pile-summary-more",onClick:M[1]||(M[1]=c.withModifiers(C=>n.value=!0,["stop","prevent"]))},[c.createElementVNode("u",null,[c.createElementVNode("em",null,c.toDisplayString(`${c.unref(m)("js.components.AVPileSummary.and_n_more_pre")} ${i.value} ${c.unref(m)("js.components.AVPileSummary.and_n_more_pos")}`),1)])])):c.createCommentVNode("",!0),n.value?(c.openBlock(),c.createElementBlock("p",{key:2,role:"button",class:"AVPileSummary--show-more-button","data-test":"pile-summary-more",onClick:M[2]||(M[2]=c.withModifiers(C=>n.value=!1,["stop","prevent"]))},[c.createElementVNode("u",null,[c.createElementVNode("em",null,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.show_less")),1)])])):c.createCommentVNode("",!0)])]),e.activeState==="overview"?(c.openBlock(),c.createElementBlock("div",{key:0,class:"AVPileSummary--assign-delete-button",role:"button","aria-label":c.unref(m)("js.components.AVPileSummary.aria_labels.delete_selection"),"data-test":"pile-summary-delete",onClick:M[3]||(M[3]=c.withModifiers(C=>t("deleteSelection"),["stop","prevent"]))},[c.createVNode(b,{icon:"trash-can"})],8,X31)):c.createCommentVNode("",!0)]))}}}),Qj=O(e41,[["__scopeId","data-v-ffed1a38"]]);var Yj={},zn=r4&&r4.__spreadArray||function(e,l,t){if(t||arguments.length===2)for(var a=0,n=l.length,s;a<n;a++)(s||!(a in l))&&(s||(s=Array.prototype.slice.call(l,0,a)),s[a]=l[a]);return e.concat(s||Array.prototype.slice.call(l))};Object.defineProperty(Yj,"__esModule",{value:!0});var c41=Ot,l41=function(){function e(l){var t=l.contest,a=l.voterWeight;this.contest=t,this.voterWeight=a}return e.prototype.isComplete=function(l){return this.allWeightUsed(l)&&this.validate(l).length==0},e.prototype.validate=function(l){var t=[],a=new c41.default(this.contest);return l.piles.forEach(function(n){t=zn(zn([],t,!0),a.validate(n),!0)}),l.piles.forEach(function(n){a.isComplete(n)||t.push({message:"A selection is not complete"})}),t},e.prototype.allWeightUsed=function(l){return this.voterWeight===l.piles.reduce(function(t,a){return a.multiplier+t},0)},e}(),t41=Yj.default=l41;const a41={class:"AVSplitHelper--title","aria-live":"polite","data-test":"split-helper-contest-title"},n41=["innerHTML"],s41={class:"AVSplitHelper--footer"},o41={class:"AVSplitHelper--btn-secondary-container"},i41={class:"AVSplitHelper--btn-primary-container"},r41=["disabled"],f41={key:1},m41={class:"AVSplitHelper--assign-card"},u41={class:"AVSplitHelper--assign-question","data-test":"split-helper-contest-question"},d41=["for"],p41=["id","max"],z41={class:"AVSplitHelper--footer"},h41={class:"AVSplitHelper--btn-secondary-container"},L41={class:"AVSplitHelper--btn-primary-container"},g41=["disabled"],C41={key:2,"data-test":"split-helper-overview"},M41={key:0,class:"AVSplitHelper--overview-success"},v41={key:1,class:"AVSplitHelper--overview-default"},b41={class:"AVSplitHelper--overview--text"},A41=["disabled"],_41=["onClick"],N41=c.defineComponent({__name:"AVSplitHelper",props:{contest:{type:Object,required:!0},contestSelection:{type:Object,required:!0},weight:{type:Number,required:!0},showSubmissionHelper:{type:Boolean,default:!0},partialResults:{type:Object,default:null},locale:{type:String,default:null},includeLazyErrors:{type:Boolean,default:!1},imageOption:{type:String,default:"square"}},emits:["update:complete","update:contestSelection","update:activeState","update:activePile","view-candidate"],setup(e,{emit:l}){var J;const t=e,a=l,n=c.ref(null),s=c.ref(t.contestSelection.piles[0]||{multiplier:t.weight,optionSelections:[],explicitBlank:!1}),o=c.ref(((J=t.contestSelection.piles)==null?void 0:J.length)===0||t.contest.markingType.maxPiles===1?"ballot":"overview"),i=c.ref([]),r=c.computed(()=>t.contestSelection.piles),f=c.computed(()=>{var I;return(I=r.value)==null?void 0:I.reduce((P,o1)=>P-o1.multiplier,t.weight)}),u=c.computed(()=>new Jj(t.contest)),d=c.computed(()=>new t41({contest:t.contest,voterWeight:t.weight})),m=c.computed(()=>f.value===0&&i.value.length==0&&r.value.every(I=>u.value.isComplete(I))),p=c.computed(()=>{var I;return(I=r.value)==null?void 0:I.reduce((P,o1)=>P+o1.multiplier,0)}),L=c.computed(()=>{var I;return(I=s.value)==null?void 0:I.multiplier}),M=c.computed(()=>r.value.filter((I,P)=>P!==n.value).reduce((I,P)=>I-P.multiplier,t.weight)),v=c.computed(()=>t.contest.markingType.maxPiles!==1&&t.weight>1),b=c.computed(()=>n.value!==null),C=I=>u.value.isComplete(I),g=I=>u.value.validate(I,t.includeLazyErrors).length>0,A=()=>{if(v.value){const I=[...r.value];n.value===null?I.push({...s.value}):I.splice(n.value,1,{...s.value}),a("update:contestSelection",{...t.contestSelection,piles:I}),n.value=null,o.value="overview"}else s.value.multiplier=t.weight,a("update:contestSelection",{...t.contestSelection,piles:[s.value]})},k=I=>{s.value=I,v.value||A()},_=()=>{s.value={optionSelections:[],multiplier:M.value,explicitBlank:!1},n.value=null,o.value="ballot"},V=I=>{r.value.splice(I,1)},x=I=>{s.value={...r.value[I]},n.value=I,o.value="ballot"},N=I=>{i.value=I},E=I=>a("view-candidate",I);c.watch(m,I=>a("update:complete",I)),c.watch(L,()=>{s.value&&(s.value.multiplier=Math.max(0,Math.min(L.value,M.value)))}),c.watch(s,I=>{a("update:activePile",I)}),c.watch(o,I=>a("update:activeState",I)),c.onMounted(()=>{t.locale&&W(t.locale),a("update:activePile",s.value),a("update:activeState",o.value),a("update:complete",m.value),v.value||A()});const R=c.inject("i18n"),{t:S}=R.global,$=c.computed(()=>R.global.locale.value||R.global.locale);return c.onMounted(()=>{t.locale&&W(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&W(t.locale)},{deep:!0}),(I,P)=>{var u1;const o1=c.resolveComponent("AVSplitWizardHeader"),p1=c.resolveComponent("AVBallot"),v1=c.resolveComponent("AVPileSummary"),z1=c.resolveComponent("AVSplitWeightHelper"),_1=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createElementVNode("h3",a41,c.toDisplayString(e.contest.title[$.value]),1),c.createElementVNode("div",{class:"AVSplitHelper--description","data-test":"split-helper-contest-description",innerHTML:(u1=e.contest.description)==null?void 0:u1[$.value]},null,8,n41),v.value?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[["ballot","assign","overview"].includes(o.value)?(c.openBlock(),c.createBlock(o1,{key:0,"active-selection-pile-index":n.value,"active-state":o.value,"selection-piles":r.value,"total-weight":p.value+f.value,"is-editing":b.value},null,8,["active-selection-pile-index","active-state","selection-piles","total-weight","is-editing"])):c.createCommentVNode("",!0),c.createVNode(c.Transition,{name:"fade",mode:"out-in"},{default:c.withCtx(()=>{var w1,W1,X1;return[s.value&&o.value==="ballot"?(c.openBlock(),c.createElementBlock("div",{key:n.value},[c.createVNode(p1,{class:"AVSplitHelper--ballot","selection-pile":s.value,"partial-results":e.partialResults,contest:e.contest,weight:e.weight,includeLazyErrors:e.includeLazyErrors,"show-submission-helper":e.showSubmissionHelper,"image-option":e.imageOption,"onUpdate:selectionPile":k,"onUpdate:errors":P[0]||(P[0]=L1=>N(L1))},null,8,["selection-pile","partial-results","contest","weight","includeLazyErrors","show-submission-helper","image-option"]),c.createElementVNode("div",s41,[c.createElementVNode("div",o41,[r.value.length>0?(c.openBlock(),c.createElementBlock("button",{key:"back",class:"AVSplitHelper--btn-secondary",onClick:P[1]||(P[1]=L1=>o.value="overview")},c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.ballot.back_button")),1)):c.createCommentVNode("",!0)]),c.createElementVNode("div",i41,[c.createElementVNode("button",{key:"assign",class:"AVSplitHelper--btn-primary",disabled:!C(s.value)||g(s.value),"data-test":"split-helper-confirm",onClick:P[2]||(P[2]=L1=>o.value="assign")},c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.ballot.confirm_button")),9,r41)])])])):o.value==="assign"?(c.openBlock(),c.createElementBlock("div",f41,[c.createElementVNode("div",m41,[c.createElementVNode("h4",u41,c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.assign.split_question")),1),c.createVNode(v1,{"selection-pile":s.value,contest:e.contest,"maximum-options-shown":3,"pile-index":b.value?n.value:r.value.length,"active-state":o.value,"is-editing":b.value,"total-piles":e.contestSelection.piles.length,"image-option":e.imageOption,onEditCurrentSelection:P[3]||(P[3]=L1=>o.value="ballot")},null,8,["selection-pile","contest","pile-index","active-state","is-editing","total-piles","image-option"]),c.createElementVNode("label",{for:`${e.contest.reference}-ballot-selector`,class:"AVSplitHelper--assign-label","data-test":"split-helper-assign-label"},c.toDisplayString(b.value?c.unref(S)("js.components.AVSplitHelper.assign.ballots_to_assign_edit_mode"):c.unref(S)("js.components.AVSplitHelper.assign.ballots_to_assign")),9,d41),c.withDirectives(c.createElementVNode("input",{id:`${e.contest.reference}-ballot-selector`,"onUpdate:modelValue":P[4]||(P[4]=L1=>s.value.multiplier=L1),class:"AVSplitHelper--assign-input",type:"number",max:M.value,"data-test":"split-helper-assign-input"},null,8,p41),[[c.vModelText,s.value.multiplier]])]),c.createVNode(z1,{"assigned-weight":p.value,"unused-weight":f.value,"active-assigned":(w1=r.value[n.value])==null?void 0:w1.multiplier},null,8,["assigned-weight","unused-weight","active-assigned"]),c.createElementVNode("div",z41,[c.createElementVNode("div",h41,[c.createElementVNode("button",{key:"ballot",class:"AVSplitHelper--btn-secondary","data-test":"split-helper-assign-back",onClick:P[5]||(P[5]=L1=>o.value="ballot")},c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.assign.back_button")),1)]),c.createElementVNode("div",L41,[c.createElementVNode("button",{key:"confirm",class:"AVSplitHelper--btn-primary",disabled:((W1=s.value)==null?void 0:W1.multiplier)<1||((X1=s.value)==null?void 0:X1.multiplier)>M.value,"data-test":"split-helper-assign-confirm",onClick:P[6]||(P[6]=L1=>A())},c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.assign.confirm_button")),9,g41)])])])):o.value==="overview"?(c.openBlock(),c.createElementBlock("div",C41,[f.value===0&&d.value.isComplete(e.contestSelection)?(c.openBlock(),c.createElementBlock("div",M41,[c.createVNode(_1,{icon:"circle-check",class:"AVSplitHelper--overview-success-icon"}),c.createTextVNode(" "+c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.overview.all_ballots_assigned")),1)])):(c.openBlock(),c.createElementBlock("div",v41,[c.createElementVNode("p",b41,[c.createElementVNode("strong",null,c.toDisplayString(f.value),1),c.createTextVNode(" "+c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.overview.ballots_left")),1)]),c.createElementVNode("button",{key:"newSelection",class:"AVSplitHelper--overview-new-ballot-btn",disabled:f.value===0,"data-test":"split-helper-new-selection",onClick:_},[c.createVNode(_1,{icon:"file-circle-plus"}),c.createTextVNode(" "+c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.overview.new_ballot_selection")),1)],8,A41)])),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(r.value,(L1,O1)=>(c.openBlock(),c.createElementBlock("article",{key:`preview-${O1}`,onClick:w2=>x(O1)},[c.createVNode(v1,{"selection-pile":L1,contest:e.contest,"maximum-options-shown":3,"active-state":o.value,"pile-index":O1,"total-piles":e.contestSelection.piles.length,"image-option":e.imageOption,onDeleteSelection:w2=>V(O1)},null,8,["selection-pile","contest","active-state","pile-index","total-piles","image-option","onDeleteSelection"])],8,_41))),128))])):c.createCommentVNode("",!0)]}),_:1})],64)):(c.openBlock(),c.createBlock(p1,{key:1,class:"AVSplitHelper--no-split","selection-pile":s.value,"partial-results":e.partialResults,includeLazyErrors:e.includeLazyErrors,contest:e.contest,weight:e.weight,"image-option":e.imageOption,"show-submission-helper":e.showSubmissionHelper,"onUpdate:selectionPile":k,"onUpdate:errors":P[7]||(P[7]=w1=>N(w1)),onViewCandidate:E},null,8,["selection-pile","partial-results","includeLazyErrors","contest","weight","image-option","show-submission-helper"]))],64)}}}),Kj=O(N41,[["__scopeId","data-v-b9617a26"]]),k41="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4gKwSUNDX1BST0ZJTEUAAQEAAAKgbGNtcwRAAABtbnRyUkdCIFhZWiAH6AAEAAMACAAzABRhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1kZXNjAAABIAAAAEBjcHJ0AAABYAAAADZ3dHB0AAABmAAAABRjaGFkAAABrAAAACxyWFlaAAAB2AAAABRiWFlaAAAB7AAAABRnWFlaAAACAAAAABRyVFJDAAACFAAAACBnVFJDAAACFAAAACBiVFJDAAACFAAAACBjaHJtAAACNAAAACRkbW5kAAACWAAAACRkbWRkAAACfAAAACRtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACQAAAAcAEcASQBNAFAAIABiAHUAaQBsAHQALQBpAG4AIABzAFIARwBCbWx1YwAAAAAAAAABAAAADGVuVVMAAAAaAAAAHABQAHUAYgBsAGkAYwAgAEQAbwBtAGEAaQBuAABYWVogAAAAAAAA9tYAAQAAAADTLXNmMzIAAAAAAAEMQgAABd7///MlAAAHkwAA/ZD///uh///9ogAAA9wAAMBuWFlaIAAAAAAAAG+gAAA49QAAA5BYWVogAAAAAAAAJJ8AAA+EAAC2xFhZWiAAAAAAAABilwAAt4cAABjZcGFyYQAAAAAAAwAAAAJmZgAA8qcAAA1ZAAAT0AAACltjaHJtAAAAAAADAAAAAKPXAABUfAAATM0AAJmaAAAmZwAAD1xtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAEcASQBNAFBtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEL/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYID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T6xC6aHyJZQh3KObtZbrIfS/wHUzJwXIuFa9gy/IAgO++D5LgeLVVZwCnEUtrmLcYsj8/juoo5g1mqBNAyPcghtJClgApFLaaLttTe7geuuwu58XBuX6rhuGyRVTAFbYLjLbsbt72eNYI2gkRTovGRoAOkd6iAcl+p1H8g0+g1AEQBJ+UMGJQItSnnPmnaETA4ZshdbdushcH03hVXl/JLAZVj9LkQRpZ86uDoCM2W1HVUNXHRbhwOTff883ACOlqH+eNBpAR7kwZ3VXAU46hDyHLCZtCtlgMBOT0dpkArcOUnWs9ouq0Tqi2IfxAStC5/8AeYrX883B0GHrK7wWLVWcQQynMjbuOpjkunMo+snSZRku+HYpmDf3OoxYvczjH5R2FeJU9U1FtTta12PsMeyi1YsJm+K+cOrspzDx1rBiIFpRpppLM/cqFdQu2bHIT4Ye5KmMHTt7SCy1bLAMBiDPNX0w9X7lB5NMAtWNkEDm7+p5ly7I79o0jBMTOks7LHmAXGHpCxPH2hm53lsw6IpCuG+LqOvadIbazn00v+x8sZ2U83f7ItCuAnJQT2Zt8r8e2JAmG+GphGWZUqfYWwbpqFdWkSAKb7159tuUl7pX8hs8pp9P/9k=",x41={key:0,class:"AVResourceSection--image-container"},y41=["src","alt"],V41={class:"AVResourceFields"},S41={key:0,class:"AVResourceFields--title","data-test":"heading-title"},w41={key:1,class:"AVResourceFields--subtitle","data-test":"heading-subtitle"},E41={key:2,class:"AVResourceFields--group-container","data-test":"heading-group"},B41={class:"AVResourceFields--group"},T41={key:1,class:"AVResourceFields--divisor"},H41={key:2,class:"AVResourceFields--link-list","data-test":"resource-link-list"},I41={key:0},O41={key:3,"data-test":"resource-checkbox-summary"},D41={key:4,"data-test":"resource-selection"},P41={key:0},R41={key:5,"data-test":"resource-video"},F41=["src"],$41=["innerHTML"],q41={key:7,class:"AVResourceFields--regular-content","data-test":"resource-regular-content"},j41={key:0},U41=c.defineComponent({__name:"AVResourceSection",props:{candidate:{type:Object,required:!0},currentCandidateGroup:{type:Number,default:null},summary:{type:Boolean,default:!1},locale:{type:String,default:null},card:{type:Boolean,default:!1}},setup(e){const l=c.computed(()=>{var p,L,M,v,b,C;return(L=(p=i.candidate.title)==null?void 0:p[0])!=null&&L.localised?((v=(M=i.candidate.title)==null?void 0:M[0])==null?void 0:v.form_content)[m.value]:(C=(b=i.candidate.title)==null?void 0:b[0])==null?void 0:C.form_content}),t=c.computed(()=>{var p,L,M,v,b,C;return(L=(p=i.candidate.subtitle)==null?void 0:p[0])!=null&&L.localised?((v=(M=i.candidate.title)==null?void 0:M[0])==null?void 0:v.form_content)[m.value]:(C=(b=i.candidate.subtitle)==null?void 0:b[0])==null?void 0:C.form_content}),a=c.computed(()=>{var v;if(!i.candidate.groups)return null;let p=[],L=[],M="";return i.currentCandidateGroup?i.candidate.groups.forEach(b=>{b.id===i.currentCandidateGroup?p.push(b):L.push(b)}):(L=[...i.candidate.groups],p=L.splice(0,1)),L.forEach((b,C)=>{C===0||i.candidate.groups.length===1?M=b.title[m.value]:C===L.length-1?M+=` & ${b.title[m.value]}`:M+=`, ${b.title[m.value]}`}),{title:(v=p[0])==null?void 0:v.title[m.value],surplus:L.length||null,remaining:M}}),n=c.computed(()=>i.summary?i.candidate.summary:i.candidate.generic.filter(p=>p.item_type!=="image")),s=c.computed(()=>i.summary?!!i.candidate.summary.length:!!i.candidate.generic.length),o=p=>p.item_type==="check_box"?!0:p.form_content?p.item_type==="link_list"?!!p.form_content.length:p.localised?!!p.form_content[m.value]:!!p.form_content:!1,i=e,r=c.computed(()=>{var p;return((p=i.candidate.generic.find(L=>L.item_type==="image"))==null?void 0:p.form_content)||k41}),f=c.inject("i18n"),{t:u,d}=f.global,m=c.computed(()=>f.global.locale.value||f.global.locale);return c.onMounted(()=>{i.locale&&W(i.locale)}),c.watch(()=>i.locale,()=>{i.locale&&W(i.locale)},{deep:!0}),(p,L)=>{const M=c.resolveComponent("AVTooltip"),v=c.resolveComponent("AVIcon"),b=c.resolveComponent("AVLinkVisualizer");return c.openBlock(),c.createElementBlock("section",{class:c.normalizeClass(["AVResourceSection",{"AVResourceSection--themed":e.summary}])},[c.createElementVNode("div",{class:c.normalizeClass(["AVResourceSection--container",{"AVResourceSection--card":e.card}]),"data-test":"resource-section"},[e.summary&&r.value?(c.openBlock(),c.createElementBlock("div",x41,[c.createElementVNode("img",{src:r.value,alt:c.unref(u)("js.components.AVResourceSection.alt_candidate"),class:"AVResourceSection--image","data-test":"resource-image"},null,8,y41)])):c.createCommentVNode("",!0),c.createElementVNode("div",{class:c.normalizeClass(e.summary?"AVResourceSection--fields-container":"AVResourceSection--generic-container")},[c.createElementVNode("div",V41,[e.summary&&l.value?(c.openBlock(),c.createElementBlock("h4",S41,c.toDisplayString(l.value),1)):c.createCommentVNode("",!0),e.summary&&t.value?(c.openBlock(),c.createElementBlock("h5",w41,c.toDisplayString(t.value),1)):c.createCommentVNode("",!0),e.summary&&e.candidate.groups&&!e.card?(c.openBlock(),c.createElementBlock("div",E41,[c.createElementVNode("h4",B41,c.toDisplayString(a.value.title),1),a.value.surplus?(c.openBlock(),c.createBlock(M,{key:0,text:c.unref(u)("js.components.AVResourceSection.and_more",{amount:a.value.surplus}),content:a.value.remaining,position:"top",class:"AVResourceFields--tooltip"},null,8,["text","content"])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0),e.card?c.createCommentVNode("",!0):(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:3},c.renderList(n.value,C=>(c.openBlock(),c.createElementBlock(c.Fragment,{key:`attribute_${C.attribute_name}`},[s.value&&o(C)?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(e.summary?"AVResourceFields--container-summary":"AVResourceFields--container-generic"),"data-test":"resource-content"},[e.summary?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("h4",{key:0,class:c.normalizeClass({"AVResourceFields--divisor":C.item_type==="check_box"}),"data-test":"resource-title"},[c.createTextVNode(c.toDisplayString(C.label[m.value])+" ",1),C.item_type==="check_box"?(c.openBlock(),c.createBlock(v,{key:0,icon:C.form_content?"square-check":"square-xmark",class:c.normalizeClass(C.form_content?"AVResourceFields--checkbox-true":"AVResourceFields--checkbox-false"),"aria-label":C.form_content?c.unref(u)("js.components.AVResourceSection.true"):c.unref(u)("js.components.AVResourceSection.false"),"data-test":"resource-checkbox-icon"},null,8,["icon","class","aria-label"])):c.createCommentVNode("",!0)],2)),!e.summary&&C.item_type!=="check_box"?(c.openBlock(),c.createElementBlock("hr",T41)):c.createCommentVNode("",!0),C.item_type==="link_list"&&o(C)?(c.openBlock(),c.createElementBlock("div",H41,[e.summary?(c.openBlock(),c.createElementBlock("span",I41,c.toDisplayString(`${C.label[m.value]}:`),1)):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(C.form_content,g=>(c.openBlock(),c.createBlock(b,{key:g.attributes.name,link:g,large:!e.summary},null,8,["link","large"]))),128))])):C.item_type==="check_box"&&e.summary?(c.openBlock(),c.createElementBlock("div",O41,[c.createElementVNode("span",null,c.toDisplayString(`${C.label[m.value]}`),1),c.createVNode(v,{icon:C.form_content?"square-check":"square-xmark",class:c.normalizeClass(C.form_content?"AVResourceFields--checkbox-true":"AVResourceFields--checkbox-false"),"aria-label":C.form_content?c.unref(u)("js.components.AVResourceSection.true"):c.unref(u)("js.components.AVResourceSection.false")},null,8,["icon","class","aria-label"])])):C.item_type==="select"&&o(C)?(c.openBlock(),c.createElementBlock("div",D41,[e.summary?(c.openBlock(),c.createElementBlock("span",P41,c.toDisplayString(`${C.label[m.value]}:`),1)):c.createCommentVNode("",!0),c.createTextVNode(" "+c.toDisplayString(C.form_content[m.value]),1)])):C.item_type==="video"&&o(C)?(c.openBlock(),c.createElementBlock("div",R41,[c.createElementVNode("iframe",{style:{width:"100%",height:"100%","min-height":"400px"},src:C.form_content.toString()},null,8,F41)])):C.item_type==="rich_text_area"&&!e.summary&&o(C)?(c.openBlock(),c.createElementBlock("div",{key:6,class:"AVResourceFields--rich-text",innerHTML:C.localised?C.form_content[m.value]:C.form_content,"data-test":"resource-rich-text"},null,8,$41)):C.item_type!=="rich_text_area"&&C.item_type!=="check_box"?(c.openBlock(),c.createElementBlock("p",q41,[e.summary?(c.openBlock(),c.createElementBlock("span",j41,c.toDisplayString(`${C.label[m.value]}: `),1)):c.createCommentVNode("",!0),C.item_type==="date"||C.item_type==="date_time"?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createTextVNode(c.toDisplayString(c.unref(d)(C.form_content,C.item_type==="date"?null:"long")),1)],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:2},[c.createTextVNode(c.toDisplayString(C.localised?C.form_content[m.value]:C.form_content),1)],64))])):c.createCommentVNode("",!0)],2)):c.createCommentVNode("",!0)],64))),128))])],2)],2)],2)}}}),Xj=O(U41,[["__scopeId","data-v-9f104b97"]]),W41={class:"AVCalculateResultContent--container"},J41={class:"AVCalculateResultContent--information"},G41={class:"AVCalculateResultContent--information-set AVCalculateResultContent--role","data-test":"role"},Z41={class:"AVCalculateResultContent--label"},Q41={class:"AVCalculateResultContent--information-set AVCalculateResultContent--status","data-test":"status"},Y41={class:"AVCalculateResultContent--label"},K41={class:"AVCalculateResultContent--status-information"},X41={class:"AVCalculateResultContent--information-set","data-test":"mixes"},e01={class:"AVCalculateResultContent--label"},c01={class:"AVCalculateResultContent--information-set","data-test":"decryptions"},l01={class:"AVCalculateResultContent--label"},t01={class:"AVCalculateResultContent--information-set","data-test":"time"},a01={class:"AVCalculateResultContent--label"},n01={class:"AVCalculateResultContent--elapsed"},s01=c.defineComponent({__name:"AVCalculateResultContent",props:{progress:{type:Number,default:0,validate:e=>e>=0&&e<=100},role:{type:String,default:"decrypter"},status:{type:String,default:"initial"},mixes:{type:Array,required:!0,validate:e=>e.length===2},decryptions:{type:Array,required:!0,validate:e=>e.length===2},elapsed:{type:String,required:!0},locale:{type:String,default:null}},setup(e){const l=c.inject("i18n"),{t}=l.global,a=e,n=c.computed(()=>t(`js.components.AVCalculateResultContent.roles.${a.role}`)),s=c.computed(()=>t(`js.components.AVCalculateResultContent.status.${a.status}`)),o=c.computed(()=>{switch(a.status){case"initial":return"hourglass-half";case"mixing":return"shuffle";case"decrypting":return"key";case"aggregating":return"calculator";case"finished":return"circle-check";default:return"xmark"}});return c.onMounted(()=>{a.locale&&W(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&W(a.locale)},{deep:!0}),(i,r)=>{const f=c.resolveComponent("AVProgressBar"),u=c.resolveComponent("AVIcon"),d=c.resolveComponent("AVWaitingDots");return c.openBlock(),c.createElementBlock("div",W41,[c.createVNode(f,{value:e.progress,"data-test":"progress"},null,8,["value"]),c.createElementVNode("div",J41,[c.createElementVNode("div",G41,[c.createElementVNode("span",Z41,c.toDisplayString(c.unref(t)("js.components.AVCalculateResultContent.roles.label")),1),c.createElementVNode("span",null,[c.createVNode(u,{icon:"user-shield"}),c.createTextVNode(" "+c.toDisplayString(n.value),1)])]),c.createElementVNode("div",Q41,[c.createElementVNode("span",Y41,c.toDisplayString(c.unref(t)("js.components.AVCalculateResultContent.status.label")),1),c.createElementVNode("span",K41,[c.createVNode(u,{icon:o.value,class:c.normalizeClass(["AVCalculateResultContent--status-icon",{"AVCalculateResultContent--success":e.status==="finished"}]),"data-test":"status-icon"},null,8,["icon","class"]),c.createTextVNode(" "+c.toDisplayString(s.value)+" ",1),e.status!=="finished"?(c.openBlock(),c.createBlock(d,{key:0})):c.createCommentVNode("",!0)])]),c.createElementVNode("div",X41,[c.createElementVNode("span",e01,c.toDisplayString(c.unref(t)("js.components.AVCalculateResultContent.mixes.label")),1),c.createElementVNode("span",null,c.toDisplayString(`${e.mixes[0]}/${e.mixes[1]}`),1)]),c.createElementVNode("div",c01,[c.createElementVNode("span",l01,c.toDisplayString(c.unref(t)("js.components.AVCalculateResultContent.decryptions.label")),1),c.createElementVNode("span",null,c.toDisplayString(`${e.decryptions[0]}/${e.decryptions[1]}`),1)]),c.createElementVNode("div",t01,[c.createElementVNode("span",a01,c.toDisplayString(c.unref(t)("js.components.AVCalculateResultContent.elapsed.label")),1),c.createElementVNode("time",n01,c.toDisplayString(e.elapsed),1)])])])}}}),eU=O(s01,[["__scopeId","data-v-ad18a2ae"]]),o01={class:"AVNormalSummary--container"},i01={class:"AVNormalSummary"},r01=c.defineComponent({__name:"AVNormalSummary",props:{sortedResult:{type:Array,required:!0},hidePercentage:{type:Boolean,default:!1},totalCount:{type:Number,required:!0},theme:{type:String,default:"light"}},setup(e){return(l,t)=>{const a=c.resolveComponent("AVResultOption");return c.openBlock(),c.createElementBlock("div",o01,[c.createElementVNode("div",i01,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.sortedResult,n=>(c.openBlock(),c.createBlock(a,{key:`result_for_${n.reference}`,optionTitle:n.title,optionImage:n.image,votes:n.count,total:e.totalCount,elected:n.elected,tied:n.tied,"hide-percentage":e.hidePercentage,theme:e.theme,"data-test":"result-option"},null,8,["optionTitle","optionImage","votes","total","elected","tied","hide-percentage","theme"]))),128))])])}}}),cU=O(r01,[["__scopeId","data-v-fcf6e6a8"]]),f01={class:"AVRankedSummary--container"},m01={class:"AVRankedSummary--table",id:"ranked_summary_table","data-test":"table"},u01={class:"AVRankedSummary--heading"},d01={key:0},p01={key:1},z01={key:2},h01=c.defineComponent({__name:"AVRankedSummary",props:{result:{},distributionNumber:{},seats:{},locale:{},theme:{}},setup(e){const l=e,t=c.computed(()=>{var r,f;return((f=(r=l.result[0])==null?void 0:r.rounds)==null?void 0:f.length)??0}),a=c.computed(()=>l.result.filter(r=>r.elected).map(r=>r.title[i.value]??Object.values(r.title)[0])),n=c.computed(()=>l.result.filter(r=>r.tied).map(r=>r.title[i.value]??Object.values(r.title)[0])),s=c.inject("i18n"),{t:o}=s.global,i=c.computed(()=>s.global.locale.value||s.global.locale);return c.onMounted(()=>{l.locale&&W(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&W(l.locale)},{deep:!0}),(r,f)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createElementVNode("div",f01,[c.createElementVNode("table",m01,[c.createElementVNode("thead",u01,[c.createElementVNode("tr",null,[c.createElementVNode("th",null,c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.header.position")),1),c.createElementVNode("th",null,c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.header.candidate")),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.value,u=>(c.openBlock(),c.createElementBlock("th",{key:`header_for_round_${u}`,class:"AVRankedSummary--text"},c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.header.round_n",{n:u})),1))),128))])]),c.createElementVNode("tbody",null,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(r.result,(u,d)=>(c.openBlock(),c.createElementBlock("tr",{key:`option_${u.reference}`,class:c.normalizeClass({"AVRankedSummary--elected":u.elected,"AVRankedSummary--tied":u.tied})},[c.createElementVNode("td",null,c.toDisplayString(u.elected&&d+1||""),1),c.createElementVNode("td",{class:c.normalizeClass({"AVRankedSummary--title-color-white":r.theme==="dark"&&!u.elected&&!u.tied,"AVRankedSummary--title-color-black":r.theme==="light"||u.elected||u.tied})},c.toDisplayString(u.title[i.value]),3),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(u.rounds,(m,p)=>(c.openBlock(),c.createElementBlock("td",{key:`round_nr_${p}`,class:c.normalizeClass(["AVRankedSummary--text",{"AVRankedSummary--text-bold":p+1===t.value,"AVRankedSummary--title-color-white":r.theme==="dark"&&!u.elected&&!u.tied,"AVRankedSummary--title-color-black":r.theme==="light"||u.elected||u.tied}])},c.toDisplayString(m.count),3))),128))],2))),128))])])]),c.createElementVNode("div",{class:c.normalizeClass(["AVRankedSummary--summary",{"AVRankedSummary--title-color-white":r.theme==="dark","AVRankedSummary--title-color-black":r.theme==="light"}]),"data-test":"summary"},[c.createElementVNode("p",null,c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.summary.seats"))+": "+c.toDisplayString(r.seats),1),r.distributionNumber>0?(c.openBlock(),c.createElementBlock("p",d01,c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.summary.distribution"))+": "+c.toDisplayString(r.distributionNumber),1)):c.createCommentVNode("",!0),a.value.length>0?(c.openBlock(),c.createElementBlock("p",p01,[c.createTextVNode(c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.summary.elected"))+": ",1),c.createElementVNode("span",null,c.toDisplayString(a.value.join(", ")),1)])):c.createCommentVNode("",!0),n.value.length>0?(c.openBlock(),c.createElementBlock("p",z01,[c.createTextVNode(c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.summary.tied"))+": ",1),c.createElementVNode("span",null,c.toDisplayString(n.value.join(", ")),1)])):c.createCommentVNode("",!0)],2)],64))}}),lU=O(h01,[["__scopeId","data-v-8c98c441"]]),L01={class:"AVInstantRunoffSummary"},g01={class:"AVInstantRunoffSummary--title","data-test":"seat-title"},C01={class:"AVInstantRunoffSummary--container"},M01={class:"AVInstantRunoffSummary--table-container"},v01={class:"AVInstantRunoffSummary--table",id:"ranked_summary_table","data-test":"table"},b01={class:"AVInstantRunoffSummary--heading"},A01={key:0,class:"AVInstantRunoffSummary--summary","data-test":"not-included"},_01={class:"AVInstantRunoffSummary--summary","data-test":"abstain"},N01={class:"AVInstantRunoffSummary--summary","data-test":"total"},k01={class:"AVInstantRunoffSummary--summary","data-test":"quota"},x01=c.defineComponent({__name:"AVInstantRunoffSummary",props:{rounds:{type:Array,required:!0},sortedResult:{type:Array,required:!0},seatNumber:{type:Number,required:!0},quota:{type:Number,required:!0},totalVotes:{type:Number,required:!0},blankVotes:{type:Number,required:!0},votesNotIncluded:{type:Number,default:null},locale:{type:String,default:null},theme:{type:String,default:"light"}},setup(e){const l=e,t=(r,f)=>l.rounds[f].counts[r]||0,a=(r,f)=>l.rounds[f].eliminated===r&&"AVInstantRunoffSummary--eliminated",n=(r,f)=>l.rounds[f].elected===r&&"AVInstantRunoffSummary--elected",s=c.inject("i18n"),{t:o}=s.global,i=c.computed(()=>s.global.locale.value||s.global.locale);return c.onMounted(()=>{l.locale&&W(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&W(l.locale)},{deep:!0}),(r,f)=>{const u=c.resolveComponent("AVIcon"),d=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",L01,[c.createElementVNode("h5",g01,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.seat_n",{n:e.seatNumber})),1),c.createElementVNode("div",C01,[c.createElementVNode("div",M01,[c.createElementVNode("table",v01,[c.createElementVNode("thead",b01,[c.createElementVNode("tr",null,[c.createElementVNode("th",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.header.candidate")),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.rounds,(m,p)=>c.withDirectives((c.openBlock(),c.createElementBlock("th",{key:`instant_runoff_seat_${e.seatNumber}_round_${p}`,class:"AVInstantRunoffSummary--text AVInstantRunoffSummary--help"},[c.createTextVNode(c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.header.round_n",{n:p+1}))+" ",1),c.createVNode(u,{icon:"info-circle",class:"AVInstantRunoffSummary--help"})])),[[d,e.rounds[p].event]])),128))])]),c.createElementVNode("tbody",null,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.sortedResult,(m,p)=>(c.openBlock(),c.createElementBlock("tr",{key:p},[m.title?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("td",null,c.toDisplayString(m.title[i.value]),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.rounds.length,L=>(c.openBlock(),c.createElementBlock("td",{key:`instant_runoff_seat_${e.seatNumber}_number_${L}`,class:c.normalizeClass(["AVInstantRunoffSummary--text",{"AVInstantRunoffSummary--elected":n(m.reference,L-1),"AVInstantRunoffSummary--eliminated":a(m.reference,L-1),"AVInstantRunoffSummary--title-color-white":e.theme==="dark","AVInstantRunoffSummary--title-color-black":e.theme==="light"}])},c.toDisplayString(t(m.reference,L-1)),3))),128))],64)):c.createCommentVNode("",!0)]))),128)),c.createElementVNode("tr",null,[c.createElementVNode("td",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.transfered_votes")),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.rounds.length,m=>(c.openBlock(),c.createElementBlock("td",{key:`instant_runoff_seat_${e.seatNumber}_transferred_${m}`,class:"AVInstantRunoffSummary--text"},c.toDisplayString(e.rounds[m-1].transferred),1))),128))]),c.createElementVNode("tr",null,[c.createElementVNode("td",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.exhausted")),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.rounds.length,m=>(c.openBlock(),c.createElementBlock("td",{key:`instant_runoff_seat_${e.seatNumber}_exhausted_${m}`,class:"AVInstantRunoffSummary--text AVInstantRunoffSummary--cell-text"},c.toDisplayString(e.rounds[m-1].exhausted),1))),128))])])])]),e.votesNotIncluded?(c.openBlock(),c.createElementBlock("p",A01,[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.not_included_count")),1),c.createTextVNode(" "+c.toDisplayString(e.votesNotIncluded),1)])):c.createCommentVNode("",!0),c.createElementVNode("p",_01,[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.abstain")),1),c.createTextVNode(" "+c.toDisplayString(e.blankVotes),1)]),c.createElementVNode("p",N01,[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.total_votes")),1),c.createTextVNode(" "+c.toDisplayString(e.totalVotes),1)]),c.createElementVNode("p",k01,[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.quota")),1),c.createTextVNode(" "+c.toDisplayString(e.quota),1)])])])}}}),tU=O(x01,[["__scopeId","data-v-cb5cf40d"]]);var y01={},V01={class:"flex items-center"},S01={class:"flex flex-col items-center justify-center p-3 w-full"};function w01(e,l){var t=c.resolveComponent("AVNavbarItem"),a=c.resolveComponent("AVNavigationItemList"),n=c.resolveComponent("AVMenuDropdown"),s=c.resolveComponent("AVNavbar"),o=c.resolveComponent("AVLabel"),i=c.resolveComponent("AVTabSwitcher"),r=c.resolveComponent("AVSidebarItem"),f=c.resolveComponent("AVButton"),u=c.resolveComponent("AVSidebar"),d=c.resolveComponent("AVContent"),m=c.resolveComponent("AVFooter");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(s,null,{default:c.withCtx(function(){return[l[0]||(l[0]=c.createElementVNode("a",{href:"#"},"LOGO",-1)),c.createElementVNode("div",V01,[c.createVNode(a,{type:"navbar"},{default:c.withCtx(function(){return[c.createVNode(t,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(t,{label:"Admins",icon:"user-shield",href:"#"})]}),_:1}),c.createVNode(n,{ariaLabel:"user profile",id:"user-profile-menu",icon:"user",options:[{label:"Settings",href:"#",icon:"gear"},{label:"Log out",href:"#",destructive:!0,icon:"right-from-bracket"}]})])]}),_:1}),c.createVNode(d,null,{sidebar:c.withCtx(function(){return[c.createVNode(u,null,{default:c.withCtx(function(){return[c.createElementVNode("div",S01,[l[1]||(l[1]=c.createElementVNode("h2",{class:"mb-4"},"Election Name",-1)),c.createVNode(o,{value:"draft",type:"info"})]),c.createVNode(i,{options:["Pre-election","election"]}),c.createVNode(a,{type:"sidebar"},{default:c.withCtx(function(){return[c.createVNode(r,{label:"Election Overview",icon:"grip",active:""}),c.createVNode(r,{label:"Election details",type:"step",stepIndex:"1"}),c.createVNode(r,{label:"Digital Absentee Voting Requirements",type:"step",stepIndex:"2"}),c.createVNode(r,{label:"Voting App Set Up",type:"step",stepIndex:"3"}),c.createVNode(r,{label:"Ballot Data",type:"step",stepIndex:"4"}),c.createVNode(r,{label:"Ballot Styles",type:"step",stepIndex:"5"}),c.createVNode(r,{label:"Configure Ballot Extraction",type:"step",stepIndex:"6"}),c.createVNode(r,{label:"Start Ballot Box Set Up",icon:"download"}),c.createVNode(r,{label:"Finish Ballot Box Set Up",icon:"handshake-simple",disabled:""})]}),_:1}),c.createVNode(f,{type:"primary",label:"Create election",fullWidth:""})]}),_:1})]}),content:c.withCtx(function(){return l[2]||(l[2]=[c.createElementVNode("div",null,[c.createElementVNode("p",null," Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. "),c.createElementVNode("br"),c.createElementVNode("p",null," In tellus nibh, elementum in massa vel, aliquet feugiat ex. Vestibulum auctor pharetra tellus id ultrices. Fusce dignissim interdum laoreet. Suspendisse sagittis risus lorem, in iaculis lacus sollicitudin in. Etiam porta dapibus venenatis. Praesent convallis rhoncus laoreet. In sed placerat metus, eget pellentesque velit. Mauris scelerisque magna id porttitor feugiat. Praesent aliquam sagittis diam, nec vestibulum diam pretium et. Cras vel velit accumsan elit luctus porttitor. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer maximus lorem eget viverra pellentesque. Nunc ut ultrices ligula. Donec elit mauris, feugiat at imperdiet feugiat, posuere ut turpis. Donec elementum mauris feugiat, cursus justo non, varius nisi. Fusce dapibus libero id tincidunt tempor. Nam pretium, tellus a hendrerit vehicula, velit metus blandit lorem, a semper neque enim eget massa. Aenean congue orci at posuere aliquet. Morbi ornare mi a nibh euismod, nec aliquam massa scelerisque. Pellentesque sodales ligula urna, non facilisis erat pulvinar in. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vestibulum neque metus, lobortis eu urna nec, mollis consequat dolor. Nulla risus est, consectetur et eleifend eget, eleifend in tortor. Nam quis libero eget ligula hendrerit facilisis. Sed sed libero sapien. Aenean laoreet condimentum arcu, in dictum nibh pharetra sed. Curabitur aliquam at dui eget pharetra. Vestibulum blandit mi vel velit accumsan feugiat eget nec nibh. Pellentesque venenatis, est quis faucibus ornare, orci nisl mollis leo, eu euismod neque lectus id libero. Fusce eu tempor leo. Integer vulputate, nulla eget congue porttitor, erat quam rhoncus est, sit amet efficitur sem metus ut augue. Vestibulum dapibus lacus ut magna condimentum, nec luctus orci consequat. Pellentesque congue metus et finibus euismod. In hac habitasse platea dictumst. In ipsum felis, elementum quis neque nec, pulvinar lacinia orci. Donec venenatis, nunc in elementum posuere, mauris nulla pharetra velit, molestie congue quam tortor eu elit. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vivamus et semper odio, eget dignissim leo. Suspendisse quis ex ut ipsum luctus tincidunt. Curabitur rhoncus nibh quis libero aliquet, sit amet pellentesque ipsum pretium. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur est orci, tempor non hendrerit luctus, feugiat eu eros. Vivamus sed ipsum ornare, euismod purus quis, bibendum ex. Praesent euismod lobortis arcu et efficitur. Curabitur quis sapien dui. Vestibulum in ante et est molestie laoreet ut ac orci. Etiam erat neque, finibus nec mi vitae, mattis euismod ex. "),c.createElementVNode("br"),c.createElementVNode("p",null," Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. "),c.createElementVNode("br"),c.createElementVNode("p",null," In tellus nibh, elementum in massa vel, aliquet feugiat ex. Vestibulum auctor pharetra tellus id ultrices. Fusce dignissim interdum laoreet. Suspendisse sagittis risus lorem, in iaculis lacus sollicitudin in. Etiam porta dapibus venenatis. Praesent convallis rhoncus laoreet. In sed placerat metus, eget pellentesque velit. Mauris scelerisque magna id porttitor feugiat. Praesent aliquam sagittis diam, nec vestibulum diam pretium et. Cras vel velit accumsan elit luctus porttitor. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer maximus lorem eget viverra pellentesque. Nunc ut ultrices ligula. Donec elit mauris, feugiat at imperdiet feugiat, posuere ut turpis. Donec elementum mauris feugiat, cursus justo non, varius nisi. Fusce dapibus libero id tincidunt tempor. Nam pretium, tellus a hendrerit vehicula, velit metus blandit lorem, a semper neque enim eget massa. Aenean congue orci at posuere aliquet. Morbi ornare mi a nibh euismod, nec aliquam massa scelerisque. Pellentesque sodales ligula urna, non facilisis erat pulvinar in. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vestibulum neque metus, lobortis eu urna nec, mollis consequat dolor. Nulla risus est, consectetur et eleifend eget, eleifend in tortor. Nam quis libero eget ligula hendrerit facilisis. Sed sed libero sapien. Aenean laoreet condimentum arcu, in dictum nibh pharetra sed. Curabitur aliquam at dui eget pharetra. Vestibulum blandit mi vel velit accumsan feugiat eget nec nibh. Pellentesque venenatis, est quis faucibus ornare, orci nisl mollis leo, eu euismod neque lectus id libero. Fusce eu tempor leo. Integer vulputate, nulla eget congue porttitor, erat quam rhoncus est, sit amet efficitur sem metus ut augue. Vestibulum dapibus lacus ut magna condimentum, nec luctus orci consequat. Pellentesque congue metus et finibus euismod. In hac habitasse platea dictumst. In ipsum felis, elementum quis neque nec, pulvinar lacinia orci. Donec venenatis, nunc in elementum posuere, mauris nulla pharetra velit, molestie congue quam tortor eu elit. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vivamus et semper odio, eget dignissim leo. Suspendisse quis ex ut ipsum luctus tincidunt. Curabitur rhoncus nibh quis libero aliquet, sit amet pellentesque ipsum pretium. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur est orci, tempor non hendrerit luctus, feugiat eu eros. Vivamus sed ipsum ornare, euismod purus quis, bibendum ex. Praesent euismod lobortis arcu et efficitur. Curabitur quis sapien dui. Vestibulum in ante et est molestie laoreet ut ac orci. Etiam erat neque, finibus nec mi vitae, mattis euismod ex. "),c.createElementVNode("br"),c.createElementVNode("p",null," Pellentesque accumsan viverra odio at dignissim. Sed tortor turpis, porta sit amet venenatis ut, mollis sed sapien. Donec sapien dolor, consectetur a arcu vitae, gravida dapibus justo. Nulla mattis urna vel urna posuere blandit id auctor neque. Suspendisse tincidunt elit eu lacinia mattis. Nullam semper pellentesque augue sit amet accumsan. Ut feugiat nulla ut sapien pellentesque, at finibus velit dapibus. Morbi tristique pharetra rhoncus. Sed bibendum efficitur justo sed pellentesque. Etiam porta vitae magna semper elementum. Fusce eu tincidunt diam, at varius purus. Proin gravida velit arcu, eget volutpat magna pretium a. ")],-1)])}),_:1}),c.createVNode(m)],64)}const aU=O(y01,[["render",w01]]);var E01={},B01={class:"flex items-center"},T01={class:"flex flex-col items-center justify-center p-3 w-full"};function H01(e,l){var t=c.resolveComponent("AVNavbarItem"),a=c.resolveComponent("AVNavigationItemList"),n=c.resolveComponent("AVMenuDropdown"),s=c.resolveComponent("AVNavbar"),o=c.resolveComponent("AVLabel"),i=c.resolveComponent("AVTabSwitcher"),r=c.resolveComponent("AVSidebarItem"),f=c.resolveComponent("AVButton"),u=c.resolveComponent("AVSidebar"),d=c.resolveComponent("AVContent"),m=c.resolveComponent("AVFooter");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(s,null,{default:c.withCtx(function(){return[l[0]||(l[0]=c.createElementVNode("a",{href:"#"},"LOGO",-1)),c.createElementVNode("div",B01,[c.createVNode(a,{type:"navbar"},{default:c.withCtx(function(){return[c.createVNode(t,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(t,{label:"Admins",icon:"user-shield",href:"#"})]}),_:1}),c.createVNode(n,{ariaLabel:"user profile",id:"user-profile-menu",icon:"user",options:[{label:"Settings",href:"#",icon:"gear"},{label:"Log out",href:"#",destructive:!0,icon:"right-from-bracket"}]})])]}),_:1}),c.createVNode(d,null,{sidebar:c.withCtx(function(){return[c.createVNode(u,null,{default:c.withCtx(function(){return[c.createElementVNode("div",T01,[l[1]||(l[1]=c.createElementVNode("h2",{class:"mb-4"},"Election Name",-1)),c.createVNode(o,{value:"draft",type:"info"})]),c.createVNode(i,{options:["Pre-election","election"]}),c.createVNode(a,{type:"sidebar"},{default:c.withCtx(function(){return[c.createVNode(r,{label:"Election Overview",icon:"grip",active:""}),c.createVNode(r,{label:"Election details",type:"step",stepIndex:"1"}),c.createVNode(r,{label:"Digital Absentee Voting Requirements",type:"step",stepIndex:"2"}),c.createVNode(r,{label:"Voting App Set Up",type:"step",stepIndex:"3"}),c.createVNode(r,{label:"Ballot Data",type:"step",stepIndex:"4"}),c.createVNode(r,{label:"Ballot Styles",type:"step",stepIndex:"5"}),c.createVNode(r,{label:"Configure Ballot Extraction",type:"step",stepIndex:"6"}),c.createVNode(r,{label:"Start Ballot Box Set Up",icon:"download"}),c.createVNode(r,{label:"Finish Ballot Box Set Up",icon:"handshake-simple",disabled:""})]}),_:1}),c.createVNode(f,{type:"primary",label:"Create election",fullWidth:""})]}),_:1})]}),content:c.withCtx(function(){return l[2]||(l[2]=[c.createElementVNode("div",null,[c.createElementVNode("p",null," Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. "),c.createElementVNode("br"),c.createElementVNode("p",null," In tellus nibh, elementum in massa vel, aliquet feugiat ex. Vestibulum auctor pharetra tellus id ultrices. Fusce dignissim interdum laoreet. Suspendisse sagittis risus lorem, in iaculis lacus sollicitudin in. Etiam porta dapibus venenatis. Praesent convallis rhoncus laoreet. In sed placerat metus, eget pellentesque velit. Mauris scelerisque magna id porttitor feugiat. Praesent aliquam sagittis diam, nec vestibulum diam pretium et. Cras vel velit accumsan elit luctus porttitor. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer maximus lorem eget viverra pellentesque. Nunc ut ultrices ligula. Donec elit mauris, feugiat at imperdiet feugiat, posuere ut turpis. Donec elementum mauris feugiat, cursus justo non, varius nisi. Fusce dapibus libero id tincidunt tempor. Nam pretium, tellus a hendrerit vehicula, velit metus blandit lorem, a semper neque enim eget massa. Aenean congue orci at posuere aliquet. Morbi ornare mi a nibh euismod, nec aliquam massa scelerisque. Pellentesque sodales ligula urna, non facilisis erat pulvinar in. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vestibulum neque metus, lobortis eu urna nec, mollis consequat dolor. Nulla risus est, consectetur et eleifend eget, eleifend in tortor. Nam quis libero eget ligula hendrerit facilisis. Sed sed libero sapien. Aenean laoreet condimentum arcu, in dictum nibh pharetra sed. Curabitur aliquam at dui eget pharetra. Vestibulum blandit mi vel velit accumsan feugiat eget nec nibh. Pellentesque venenatis, est quis faucibus ornare, orci nisl mollis leo, eu euismod neque lectus id libero. Fusce eu tempor leo. Integer vulputate, nulla eget congue porttitor, erat quam rhoncus est, sit amet efficitur sem metus ut augue. Vestibulum dapibus lacus ut magna condimentum, nec luctus orci consequat. Pellentesque congue metus et finibus euismod. In hac habitasse platea dictumst. In ipsum felis, elementum quis neque nec, pulvinar lacinia orci. Donec venenatis, nunc in elementum posuere, mauris nulla pharetra velit, molestie congue quam tortor eu elit. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vivamus et semper odio, eget dignissim leo. Suspendisse quis ex ut ipsum luctus tincidunt. Curabitur rhoncus nibh quis libero aliquet, sit amet pellentesque ipsum pretium. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur est orci, tempor non hendrerit luctus, feugiat eu eros. Vivamus sed ipsum ornare, euismod purus quis, bibendum ex. Praesent euismod lobortis arcu et efficitur. Curabitur quis sapien dui. Vestibulum in ante et est molestie laoreet ut ac orci. Etiam erat neque, finibus nec mi vitae, mattis euismod ex. "),c.createElementVNode("br"),c.createElementVNode("p",null," Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. "),c.createElementVNode("br"),c.createElementVNode("p",null," In tellus nibh, elementum in massa vel, aliquet feugiat ex. Vestibulum auctor pharetra tellus id ultrices. Fusce dignissim interdum laoreet. Suspendisse sagittis risus lorem, in iaculis lacus sollicitudin in. Etiam porta dapibus venenatis. Praesent convallis rhoncus laoreet. In sed placerat metus, eget pellentesque velit. Mauris scelerisque magna id porttitor feugiat. Praesent aliquam sagittis diam, nec vestibulum diam pretium et. Cras vel velit accumsan elit luctus porttitor. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer maximus lorem eget viverra pellentesque. Nunc ut ultrices ligula. Donec elit mauris, feugiat at imperdiet feugiat, posuere ut turpis. Donec elementum mauris feugiat, cursus justo non, varius nisi. Fusce dapibus libero id tincidunt tempor. Nam pretium, tellus a hendrerit vehicula, velit metus blandit lorem, a semper neque enim eget massa. Aenean congue orci at posuere aliquet. Morbi ornare mi a nibh euismod, nec aliquam massa scelerisque. Pellentesque sodales ligula urna, non facilisis erat pulvinar in. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vestibulum neque metus, lobortis eu urna nec, mollis consequat dolor. Nulla risus est, consectetur et eleifend eget, eleifend in tortor. Nam quis libero eget ligula hendrerit facilisis. Sed sed libero sapien. Aenean laoreet condimentum arcu, in dictum nibh pharetra sed. Curabitur aliquam at dui eget pharetra. Vestibulum blandit mi vel velit accumsan feugiat eget nec nibh. Pellentesque venenatis, est quis faucibus ornare, orci nisl mollis leo, eu euismod neque lectus id libero. Fusce eu tempor leo. Integer vulputate, nulla eget congue porttitor, erat quam rhoncus est, sit amet efficitur sem metus ut augue. Vestibulum dapibus lacus ut magna condimentum, nec luctus orci consequat. Pellentesque congue metus et finibus euismod. In hac habitasse platea dictumst. In ipsum felis, elementum quis neque nec, pulvinar lacinia orci. Donec venenatis, nunc in elementum posuere, mauris nulla pharetra velit, molestie congue quam tortor eu elit. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vivamus et semper odio, eget dignissim leo. Suspendisse quis ex ut ipsum luctus tincidunt. Curabitur rhoncus nibh quis libero aliquet, sit amet pellentesque ipsum pretium. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur est orci, tempor non hendrerit luctus, feugiat eu eros. Vivamus sed ipsum ornare, euismod purus quis, bibendum ex. Praesent euismod lobortis arcu et efficitur. Curabitur quis sapien dui. Vestibulum in ante et est molestie laoreet ut ac orci. Etiam erat neque, finibus nec mi vitae, mattis euismod ex. "),c.createElementVNode("br"),c.createElementVNode("p",null," Pellentesque accumsan viverra odio at dignissim. Sed tortor turpis, porta sit amet venenatis ut, mollis sed sapien. Donec sapien dolor, consectetur a arcu vitae, gravida dapibus justo. Nulla mattis urna vel urna posuere blandit id auctor neque. Suspendisse tincidunt elit eu lacinia mattis. Nullam semper pellentesque augue sit amet accumsan. Ut feugiat nulla ut sapien pellentesque, at finibus velit dapibus. Morbi tristique pharetra rhoncus. Sed bibendum efficitur justo sed pellentesque. Etiam porta vitae magna semper elementum. Fusce eu tincidunt diam, at varius purus. Proin gravida velit arcu, eget volutpat magna pretium a. ")],-1),c.createElementVNode("div",null,[c.createElementVNode("p",null," Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. "),c.createElementVNode("br"),c.createElementVNode("p",null," In tellus nibh, elementum in massa vel, aliquet feugiat ex. Vestibulum auctor pharetra tellus id ultrices. Fusce dignissim interdum laoreet. Suspendisse sagittis risus lorem, in iaculis lacus sollicitudin in. Etiam porta dapibus venenatis. Praesent convallis rhoncus laoreet. In sed placerat metus, eget pellentesque velit. Mauris scelerisque magna id porttitor feugiat. Praesent aliquam sagittis diam, nec vestibulum diam pretium et. Cras vel velit accumsan elit luctus porttitor. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer maximus lorem eget viverra pellentesque. Nunc ut ultrices ligula. Donec elit mauris, feugiat at imperdiet feugiat, posuere ut turpis. Donec elementum mauris feugiat, cursus justo non, varius nisi. Fusce dapibus libero id tincidunt tempor. Nam pretium, tellus a hendrerit vehicula, velit metus blandit lorem, a semper neque enim eget massa. Aenean congue orci at posuere aliquet. Morbi ornare mi a nibh euismod, nec aliquam massa scelerisque. Pellentesque sodales ligula urna, non facilisis erat pulvinar in. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vestibulum neque metus, lobortis eu urna nec, mollis consequat dolor. Nulla risus est, consectetur et eleifend eget, eleifend in tortor. Nam quis libero eget ligula hendrerit facilisis. Sed sed libero sapien. Aenean laoreet condimentum arcu, in dictum nibh pharetra sed. Curabitur aliquam at dui eget pharetra. Vestibulum blandit mi vel velit accumsan feugiat eget nec nibh. Pellentesque venenatis, est quis faucibus ornare, orci nisl mollis leo, eu euismod neque lectus id libero. Fusce eu tempor leo. Integer vulputate, nulla eget congue porttitor, erat quam rhoncus est, sit amet efficitur sem metus ut augue. Vestibulum dapibus lacus ut magna condimentum, nec luctus orci consequat. Pellentesque congue metus et finibus euismod. In hac habitasse platea dictumst. In ipsum felis, elementum quis neque nec, pulvinar lacinia orci. Donec venenatis, nunc in elementum posuere, mauris nulla pharetra velit, molestie congue quam tortor eu elit. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vivamus et semper odio, eget dignissim leo. Suspendisse quis ex ut ipsum luctus tincidunt. Curabitur rhoncus nibh quis libero aliquet, sit amet pellentesque ipsum pretium. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur est orci, tempor non hendrerit luctus, feugiat eu eros. Vivamus sed ipsum ornare, euismod purus quis, bibendum ex. Praesent euismod lobortis arcu et efficitur. Curabitur quis sapien dui. Vestibulum in ante et est molestie laoreet ut ac orci. Etiam erat neque, finibus nec mi vitae, mattis euismod ex. "),c.createElementVNode("br"),c.createElementVNode("p",null," Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. "),c.createElementVNode("br"),c.createElementVNode("p",null," In tellus nibh, elementum in massa vel, aliquet feugiat ex. Vestibulum auctor pharetra tellus id ultrices. Fusce dignissim interdum laoreet. Suspendisse sagittis risus lorem, in iaculis lacus sollicitudin in. Etiam porta dapibus venenatis. Praesent convallis rhoncus laoreet. In sed placerat metus, eget pellentesque velit. Mauris scelerisque magna id porttitor feugiat. Praesent aliquam sagittis diam, nec vestibulum diam pretium et. Cras vel velit accumsan elit luctus porttitor. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Duis posuere sodales diam, nec pulvinar neque aliquet fringilla. Donec ac porta tellus, a ullamcorper lacus. Curabitur diam libero, dignissim sit amet finibus ac, ultricies a ex. Aliquam ultrices egestas accumsan. Aenean vitae rhoncus massa. Praesent nec quam id enim dignissim pretium. Fusce ut erat sed nunc interdum dictum ut ac eros. Donec eget blandit leo. In consectetur mauris in faucibus euismod. Pellentesque magna mauris, semper in nisl eu, tincidunt ultrices tortor. Sed a nisi risus. Nullam venenatis id sem vel eleifend. Donec eu pharetra augue. Donec semper lacus id mauris suscipit, id ultricies eros porta. Cras at suscipit nunc, sed lacinia erat. "),c.createElementVNode("br"),c.createElementVNode("p",null," Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer maximus lorem eget viverra pellentesque. Nunc ut ultrices ligula. Donec elit mauris, feugiat at imperdiet feugiat, posuere ut turpis. Donec elementum mauris feugiat, cursus justo non, varius nisi. Fusce dapibus libero id tincidunt tempor. Nam pretium, tellus a hendrerit vehicula, velit metus blandit lorem, a semper neque enim eget massa. Aenean congue orci at posuere aliquet. Morbi ornare mi a nibh euismod, nec aliquam massa scelerisque. Pellentesque sodales ligula urna, non facilisis erat pulvinar in. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vestibulum neque metus, lobortis eu urna nec, mollis consequat dolor. Nulla risus est, consectetur et eleifend eget, eleifend in tortor. Nam quis libero eget ligula hendrerit facilisis. Sed sed libero sapien. Aenean laoreet condimentum arcu, in dictum nibh pharetra sed. Curabitur aliquam at dui eget pharetra. Vestibulum blandit mi vel velit accumsan feugiat eget nec nibh. Pellentesque venenatis, est quis faucibus ornare, orci nisl mollis leo, eu euismod neque lectus id libero. Fusce eu tempor leo. Integer vulputate, nulla eget congue porttitor, erat quam rhoncus est, sit amet efficitur sem metus ut augue. Vestibulum dapibus lacus ut magna condimentum, nec luctus orci consequat. Pellentesque congue metus et finibus euismod. In hac habitasse platea dictumst. In ipsum felis, elementum quis neque nec, pulvinar lacinia orci. Donec venenatis, nunc in elementum posuere, mauris nulla pharetra velit, molestie congue quam tortor eu elit. "),c.createElementVNode("br"),c.createElementVNode("p",null," Vivamus et semper odio, eget dignissim leo. Suspendisse quis ex ut ipsum luctus tincidunt. Curabitur rhoncus nibh quis libero aliquet, sit amet pellentesque ipsum pretium. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur est orci, tempor non hendrerit luctus, feugiat eu eros. Vivamus sed ipsum ornare, euismod purus quis, bibendum ex. Praesent euismod lobortis arcu et efficitur. Curabitur quis sapien dui. Vestibulum in ante et est molestie laoreet ut ac orci. Etiam erat neque, finibus nec mi vitae, mattis euismod ex. "),c.createElementVNode("br"),c.createElementVNode("p",null," Pellentesque accumsan viverra odio at dignissim. Sed tortor turpis, porta sit amet venenatis ut, mollis sed sapien. Donec sapien dolor, consectetur a arcu vitae, gravida dapibus justo. Nulla mattis urna vel urna posuere blandit id auctor neque. Suspendisse tincidunt elit eu lacinia mattis. Nullam semper pellentesque augue sit amet accumsan. Ut feugiat nulla ut sapien pellentesque, at finibus velit dapibus. Morbi tristique pharetra rhoncus. Sed bibendum efficitur justo sed pellentesque. Etiam porta vitae magna semper elementum. Fusce eu tincidunt diam, at varius purus. Proin gravida velit arcu, eget volutpat magna pretium a. ")],-1)])}),_:1}),c.createVNode(m)],64)}const nU=O(E01,[["render",H01]]);var I01={},O01={class:"flex items-center"};function D01(e,l){var t=c.resolveComponent("AVNavbarItem"),a=c.resolveComponent("AVNavigationItemList"),n=c.resolveComponent("AVMenuDropdown"),s=c.resolveComponent("AVNavbar"),o=c.resolveComponent("AVContent"),i=c.resolveComponent("AVFooter");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(s,null,{default:c.withCtx(function(){return[l[0]||(l[0]=c.createElementVNode("a",{href:"#"},"LOGO",-1)),c.createElementVNode("div",O01,[c.createVNode(a,{type:"navbar"},{default:c.withCtx(function(){return[c.createVNode(t,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(t,{label:"Admins",icon:"user-shield",href:"#"})]}),_:1}),c.createVNode(n,{ariaLabel:"user profile",id:"user-profile-menu",icon:"user",options:[{label:"Settings",href:"#",icon:"gear"},{label:"Log out",href:"#",destructive:!0,icon:"right-from-bracket"}]})])]}),_:1}),c.createVNode(o,null,{content:c.withCtx(function(){return l[1]||(l[1]=[c.createElementVNode("div",null,[c.createElementVNode("h1",null,"Content goes here"),c.createElementVNode("br"),c.createElementVNode("p",null," Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. ")],-1)])}),_:1}),c.createVNode(i,{enableSteps:"",steps:["Check my ballot","Ballot Found","Verify Passkey","Review Unsealed Ballot","Finish"],done:["Check my ballot","Ballot Found"],active:"Verify Passkey"})],64)}const sU=O(I01,[["render",D01]]),P01={class:"flex items-center"},R01={href:"/new"},F01={class:"new-election-button"},$01={key:0,class:"no-elections-container"},q01=c.defineComponent({__name:"ElectionDashboardLayout",setup(e){const l=[{id:"DV-1",name:"General Election 1",status:"draft",countyNameLabel:"Jurisdiction:",countyName:"Burlington",createdAtLabel:"Created at:",createdAt:"March 01, 2023 at 10:00 AM",lastUpdatedLabel:"Last updated:",lastUpdated:"March 01, 2023 at 10:00 AM",href:"#"},{id:"DV-2",name:"General Election 2",status:"open",countyNameLabel:"Jurisdiction:",countyName:"Burlington",createdAtLabel:"Created at:",createdAt:"March 01, 2023 at 10:00 AM",lastUpdatedLabel:"Last updated:",lastUpdated:"March 01, 2023 at 10:00 AM",href:"#"},{id:"DV-3",name:"General Election 3",status:"closed",countyNameLabel:"Jurisdiction:",countyName:"Burlington",createdAtLabel:"Created at:",createdAt:"March 01, 2023 at 10:00 AM",lastUpdatedLabel:"Last updated:",lastUpdated:"March 01, 2023 at 10:00 AM",href:"#"},{id:"DV-4",name:"General Election 4",status:"archived",countyNameLabel:"Jurisdiction:",countyName:"Burlington",createdAtLabel:"Created at:",createdAt:"March 01, 2023 at 10:00 AM",lastUpdatedLabel:"Last updated:",lastUpdated:"March 01, 2023 at 10:00 AM",href:"#"}];return(t,a)=>{const n=c.resolveComponent("AVNavbarItem"),s=c.resolveComponent("AVNavigationItemList"),o=c.resolveComponent("AVMenuDropdown"),i=c.resolveComponent("AVNavbar"),r=c.resolveComponent("AVIcon"),f=c.resolveComponent("AVCard"),u=c.resolveComponent("AVElectionCard"),d=c.resolveComponent("AVContent"),m=c.resolveComponent("AVFooter");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(i,null,{default:c.withCtx(()=>[a[0]||(a[0]=c.createElementVNode("a",{href:"#"},"LOGO",-1)),c.createElementVNode("div",P01,[c.createVNode(s,{type:"navbar"},{default:c.withCtx(()=>[c.createVNode(n,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(n,{label:"Admins",icon:"user-shield",href:"#"})]),_:1}),c.createVNode(o,{ariaLabel:"user profile",id:"user-profile-menu",icon:"user",options:[{label:"Settings",href:"#",icon:"gear"},{label:"Log out",href:"#",destructive:!0,icon:"right-from-bracket"}]})])]),_:1}),c.createVNode(d,null,{content:c.withCtx(()=>[c.createVNode(f,{variant:"jumbotron",class:"dashboard-container"},{default:c.withCtx(()=>[c.createElementVNode("a",R01,[c.createVNode(f,{variant:"rounded",role:"button"},{default:c.withCtx(()=>[a[1]||(a[1]=c.createElementVNode("div",{class:"new-election-title-container"},[c.createElementVNode("span",{class:"new-election-title","data-test":"title"},"Create new election")],-1)),c.createElementVNode("div",F01,[c.createVNode(r,{icon:"fa-solid fa-circle-plus",class:"new-election-icon"})])]),_:1})]),l.length===0?(c.openBlock(),c.createElementBlock("div",$01,[c.createVNode(r,{icon:"fa-solid fa-folder-open",class:"no-elections-icon"}),a[2]||(a[2]=c.createElementVNode("span",{class:"no-elections-title","data-test":"title"},"Your dashboard is empty",-1)),a[3]||(a[3]=c.createElementVNode("span",{class:"no-elections-text","data-test":"title"},"Once you create new elections you will see them displayed in this dashboard.",-1))])):c.createCommentVNode("",!0),(c.openBlock(),c.createElementBlock(c.Fragment,null,c.renderList(l,p=>c.createVNode(u,{key:p.id,id:p.id,name:p.name,status:p.status,countyNameLabel:p.countyNameLabel,countyName:p.countyName,createdAtLabel:p.createdAtLabel,createdAt:p.createdAt,lastUpdatedLabel:p.lastUpdatedLabel,lastUpdated:p.lastUpdated,href:p.href},null,8,["id","name","status","countyNameLabel","countyName","createdAtLabel","createdAt","lastUpdatedLabel","lastUpdated","href"])),64))]),_:1})]),_:1}),c.createVNode(m)],64)}}}),oU=O(q01,[["__scopeId","data-v-20fc858f"]]),j01={install:function(e,l){l===void 0&&(l=null),e.use(nZ),e.component("AVIcon",qq),e.component("AVButton",jq),e.component("AVSpinner",Uq),e.component("AVBullet",o4),e.component("AVTextInput",Wq),e.component("AVNumberInput",Jq),e.component("AVPasswordInput",Gq),e.component("AVDatetimeInput",Zq),e.component("AVTextArea",Qq),e.component("AVCard",Kq),e.component("AVRoundButton",Xq),e.component("AVLabel",Yq),e.component("AVDropdown",ej),e.component("AVDropdownContent",cj),e.component("AVDropdownItem",lj),e.component("AVAlert",tj),e.component("AVFileInput",aj),e.component("AVRadio",nj),e.component("AVLink",sj),e.component("AVNavbarItem",oj),e.component("AVSidebarItem",ij),e.component("AVTooltip",rj),e.component("AVMenuDropdown",fj),e.component("AVMenuDropdownContent",mj),e.component("AVMenuDropdownItem",uj),e.component("AVAsyncButton",dj),e.component("AVTabSwitcher",pj),e.component("AVBallotSummary",zj),e.component("AVTimedCard",hj),e.component("AVBasicSteps",Lj),e.component("AVSteps",gj),e.component("AVOptionSelect",Cj),e.component("AVOptionCheckbox",Mj),e.component("AVTransitionSlide",vj),e.component("AVCollapser",bj),e.component("AVLinkVisualizer",Aj),e.component("AVVerticalStep",GX),e.component("AVAnimatedMenuButton",QX),e.component("AVProgressBar",_j),e.component("AVWaitingDots",Nj),e.component("AVRadioGroup",kj),e.component("AVNavigationItemList",xj),e.component("AVBreadcrumb",yj),e.component("AVElectionCard",Vj),e.component("AVBallotStyleCard",Sj),e.component("AVSummaryOption",wj),e.component("AVOption",Bj),e.component("AVBlankOption",Tj),e.component("AVWriteInOption",Hj),e.component("AVSubmissionHelper",Ij),e.component("AVSearchBallot",Oj),e.component("AVSplitWeightHelper",Dj),e.component("AVSplitWizardHeader",Pj),e.component("AVElectaContestCard",Rj),e.component("AVResultOption",Fj),e.component("AVFooter",$j),e.component("AVSidebar",qj),e.component("AVNavbar",jj),e.component("AVContent",Uj),e.component("AVModal",Wj),e.component("AVBallot",Zj),e.component("AVPileSummary",Qj),e.component("AVSplitHelper",Kj),e.component("AVResourceSection",Xj),e.component("AVCalculateResultContent",eU),e.component("AVNormalSummary",cU),e.component("AVRankedSummary",lU),e.component("AVInstantRunoffSummary",tU),e.component("OneColumnLayout",aU),e.component("TwoColumnsLayout",nU),e.component("NoSidebarLayout",sU),e.component("ElectionDashboardLayout",oU),e.provide("i18n",l||Xn),e.provide("iconNames",R$)}};exports.AVAlert=tj;exports.AVAsyncButton=dj;exports.AVBallot=Zj;exports.AVBallotStyleCard=Sj;exports.AVBallotSummary=zj;exports.AVBasicSteps=Lj;exports.AVBlankOption=Tj;exports.AVBreadcrumb=yj;exports.AVBullet=o4;exports.AVButton=jq;exports.AVCalculateResultContent=eU;exports.AVCard=Kq;exports.AVCollapser=bj;exports.AVContent=Uj;exports.AVDatetimeInput=Zq;exports.AVDropdown=ej;exports.AVDropdownContent=cj;exports.AVDropdownItem=lj;exports.AVElectaContestCard=Rj;exports.AVElectionCard=Vj;exports.AVFileInput=aj;exports.AVFooter=$j;exports.AVIcon=qq;exports.AVInstantRunoffSummary=tU;exports.AVLabel=Yq;exports.AVLink=sj;exports.AVLinkVisualizer=Aj;exports.AVMenuDropdown=fj;exports.AVMenuDropdownContent=mj;exports.AVMenuDropdownItem=uj;exports.AVModal=Wj;exports.AVNavbar=jj;exports.AVNavbarItem=oj;exports.AVNavigationItemList=xj;exports.AVNormalSummary=cU;exports.AVNumberInput=Jq;exports.AVOption=Bj;exports.AVOptionCheckbox=Mj;exports.AVOptionSelect=Cj;exports.AVPasswordInput=Gq;exports.AVPileSummary=Qj;exports.AVProgressBar=_j;exports.AVRadio=nj;exports.AVRadioGroup=kj;exports.AVRankedSummary=lU;exports.AVResourceSection=Xj;exports.AVResultOption=Fj;exports.AVRoundButton=Xq;exports.AVSearchBallot=Oj;exports.AVSidebar=qj;exports.AVSidebarItem=ij;exports.AVSpinner=Uq;exports.AVSplitHelper=Kj;exports.AVSplitWeightHelper=Dj;exports.AVSplitWizardHeader=Pj;exports.AVSteps=gj;exports.AVSubmissionHelper=Ij;exports.AVSummaryOption=wj;exports.AVTabSwitcher=pj;exports.AVTextArea=Qq;exports.AVTextInput=Wq;exports.AVTimedCard=hj;exports.AVTooltip=rj;exports.AVTransitionSlide=vj;exports.AVWaitingDots=Nj;exports.AVWriteInOption=Hj;exports.ElectionDashboardLayout=oU;exports.NoSidebarLayout=sU;exports.OneColumnLayout=aU;exports.TwoColumnsLayout=nU;exports.default=j01;exports.iconNames=R$;