@assemblyvoting/ui-library 3.4.7 → 3.4.8

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs CHANGED
@@ -574,13 +574,13 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
574
574
  color: var(--fa-inverse, #fff);
575
575
  }`;function xq(){const e=Cq,t=Mq,l=O.cssPrefix,a=O.replacementClass;let s=$Z;if(l!==e||a!==t){const n=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),i=new RegExp("\\.".concat(t),"g");s=s.replace(n,".".concat(l,"-")).replace(o,"--".concat(l,"-")).replace(i,".".concat(a))}return s}let Ga=!1;function k0(){O.autoAddCss&&!Ga&&(DZ(xq()),Ga=!0)}var qZ={mixout(){return{dom:{css:xq,insertCss:k0}}},hooks(){return{beforeDOMElementCreation(){k0()},beforeI2svg(){k0()}}}};const Y1=m2||{};Y1[Q1]||(Y1[Q1]={});Y1[Q1].styles||(Y1[Q1].styles={});Y1[Q1].hooks||(Y1[Q1].hooks={});Y1[Q1].shims||(Y1[Q1].shims=[]);var R1=Y1[Q1];const yq=[],Vq=function(){l1.removeEventListener("DOMContentLoaded",Vq),n4=1,yq.map(e=>e())};let n4=!1;K1&&(n4=(l1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(l1.readyState),n4||l1.addEventListener("DOMContentLoaded",Vq));function jZ(e){K1&&(n4?setTimeout(e,0):yq.push(e))}function F3(e){const{tag:t,attributes:l={},children:a=[]}=e;return typeof e=="string"?kq(e):"<".concat(t," ").concat(PZ(l),">").concat(a.map(F3).join(""),"</").concat(t,">")}function Za(e,t,l){if(e&&e[t]&&e[t][l])return{prefix:t,iconName:l,icon:e[t][l]}}var x0=function(t,l,a,s){var n=Object.keys(t),o=n.length,i=l,r,f,u;for(a===void 0?(r=1,u=t[n[0]]):(r=0,u=a);r<o;r++)f=n[r],u=i(u,t[f],f,t);return u};function UZ(e){const t=[];let l=0;const a=e.length;for(;l<a;){const s=e.charCodeAt(l++);if(s>=55296&&s<=56319&&l<a){const n=e.charCodeAt(l++);(n&64512)==56320?t.push(((s&1023)<<10)+(n&1023)+65536):(t.push(s),l--)}else t.push(s)}return t}function Y0(e){const t=UZ(e);return t.length===1?t[0].toString(16):null}function WZ(e,t){const l=e.length;let a=e.charCodeAt(t),s;return a>=55296&&a<=56319&&l>t+1&&(s=e.charCodeAt(t+1),s>=56320&&s<=57343)?(a-55296)*1024+s-56320+65536:a}function Qa(e){return Object.keys(e).reduce((t,l)=>{const a=e[l];return!!a.icon?t[a.iconName]=a.icon:t[l]=a,t},{})}function K0(e,t){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:a=!1}=l,s=Qa(t);typeof R1.hooks.addPack=="function"&&!a?R1.hooks.addPack(e,Qa(t)):R1.styles[e]={...R1.styles[e]||{},...s},e==="fas"&&K0("fa",t)}const{styles:v2,shims:JZ}=R1,GZ={[s1]:Object.values(_2[s1]),[k1]:Object.values(_2[k1]),[x1]:Object.values(_2[x1])};let wl=null,Sq={},wq={},Eq={},Bq={},Tq={};const ZZ={[s1]:Object.keys(A2[s1]),[k1]:Object.keys(A2[k1]),[x1]:Object.keys(A2[x1])};function QZ(e){return~BZ.indexOf(e)}function YZ(e,t){const l=t.split("-"),a=l[0],s=l.slice(1).join("-");return a===e&&s!==""&&!QZ(s)?s:null}const Hq=()=>{const e=a=>x0(v2,(s,n,o)=>(s[o]=x0(n,a,{}),s),{});Sq=e((a,s,n)=>(s[3]&&(a[s[3]]=n),s[2]&&s[2].filter(i=>typeof i=="number").forEach(i=>{a[i.toString(16)]=n}),a)),wq=e((a,s,n)=>(a[n]=n,s[2]&&s[2].filter(i=>typeof i=="string").forEach(i=>{a[i]=n}),a)),Tq=e((a,s,n)=>{const o=s[2];return a[n]=n,o.forEach(i=>{a[i]=n}),a});const t="far"in v2||O.autoFetchSvg,l=x0(JZ,(a,s)=>{const n=s[0];let o=s[1];const i=s[2];return o==="far"&&!t&&(o="fas"),typeof n=="string"&&(a.names[n]={prefix:o,iconName:i}),typeof n=="number"&&(a.unicodes[n.toString(16)]={prefix:o,iconName:i}),a},{names:{},unicodes:{}});Eq=l.names,Bq=l.unicodes,wl=p0(O.styleDefault,{family:O.familyDefault})};IZ(e=>{wl=p0(e.styleDefault,{family:O.familyDefault})});Hq();function El(e,t){return(Sq[e]||{})[t]}function KZ(e,t){return(wq[e]||{})[t]}function n2(e,t){return(Tq[e]||{})[t]}function Iq(e){return Eq[e]||{prefix:null,iconName:null}}function XZ(e){const t=Bq[e],l=El("fas",e);return t||(l?{prefix:"fas",iconName:l}:null)||{prefix:null,iconName:null}}function u2(){return wl}const Bl=()=>({prefix:null,iconName:null,rest:[]});function p0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:l=s1}=t,a=A2[l][e],s=v3[l][e]||v3[l][a],n=e in R1.styles?e:null;return s||n||null}const eQ={[s1]:Object.keys(_2[s1]),[k1]:Object.keys(_2[k1]),[x1]:Object.keys(_2[x1])};function z0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:l=!1}=t,a={[s1]:"".concat(O.cssPrefix,"-").concat(s1),[k1]:"".concat(O.cssPrefix,"-").concat(k1),[x1]:"".concat(O.cssPrefix,"-").concat(x1)};let s=null,n=s1;const o=iZ.filter(r=>r!==hq);o.forEach(r=>{(e.includes(a[r])||e.some(f=>eQ[r].includes(f)))&&(n=r)});const i=e.reduce((r,f)=>{const u=YZ(O.cssPrefix,f);if(v2[f]?(f=GZ[n].includes(f)?yZ[n][f]:f,s=f,r.prefix=f):ZZ[n].indexOf(f)>-1?(s=f,r.prefix=p0(f,{family:n})):u?r.iconName=u:f!==O.replacementClass&&!o.some(d=>f===a[d])&&r.rest.push(f),!l&&r.prefix&&r.iconName){const d=s==="fa"?Iq(r.iconName):{},m=n2(r.prefix,r.iconName);d.prefix&&(s=null),r.iconName=d.iconName||m||r.iconName,r.prefix=d.prefix||r.prefix,r.prefix==="far"&&!v2.far&&v2.fas&&!O.autoFetchSvg&&(r.prefix="fas")}return r},Bl());return(e.includes("fa-brands")||e.includes("fab"))&&(i.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(i.prefix="fad"),!i.prefix&&n===k1&&(v2.fass||O.autoFetchSvg)&&(i.prefix="fass",i.iconName=n2(i.prefix,i.iconName)||i.iconName),!i.prefix&&n===x1&&(v2.fasds||O.autoFetchSvg)&&(i.prefix="fasds",i.iconName=n2(i.prefix,i.iconName)||i.iconName),(i.prefix==="fa"||s==="fa")&&(i.prefix=u2()||"fas"),i}class cQ{constructor(){this.definitions={}}add(){for(var t=arguments.length,l=new Array(t),a=0;a<t;a++)l[a]=arguments[a];const s=l.reduce(this._pullDefinitions,{});Object.keys(s).forEach(n=>{this.definitions[n]={...this.definitions[n]||{},...s[n]},K0(n,s[n]);const o=_2[s1][n];o&&K0(o,s[n]),Hq()})}reset(){this.definitions={}}_pullDefinitions(t,l){const a=l.prefix&&l.iconName&&l.icon?{0:l}:l;return Object.keys(a).map(s=>{const{prefix:n,iconName:o,icon:i}=a[s],r=i[2];t[n]||(t[n]={}),r.length>0&&r.forEach(f=>{typeof f=="string"&&(t[n][f]=i)}),t[n][o]=i}),t}}let Ya=[],D2={};const P2={},tQ=Object.keys(P2);function lQ(e,t){let{mixoutsTo:l}=t;return Ya=e,D2={},Object.keys(P2).forEach(a=>{tQ.indexOf(a)===-1&&delete P2[a]}),Ya.forEach(a=>{const s=a.mixout?a.mixout():{};if(Object.keys(s).forEach(n=>{typeof s[n]=="function"&&(l[n]=s[n]),typeof s[n]=="object"&&Object.keys(s[n]).forEach(o=>{l[n]||(l[n]={}),l[n][o]=s[n][o]})}),a.hooks){const n=a.hooks();Object.keys(n).forEach(o=>{D2[o]||(D2[o]=[]),D2[o].push(n[o])})}a.provides&&a.provides(P2)}),l}function X0(e,t){for(var l=arguments.length,a=new Array(l>2?l-2:0),s=2;s<l;s++)a[s-2]=arguments[s];return(D2[e]||[]).forEach(o=>{t=o.apply(null,[t,...a])}),t}function V2(e){for(var t=arguments.length,l=new Array(t>1?t-1:0),a=1;a<t;a++)l[a-1]=arguments[a];(D2[e]||[]).forEach(n=>{n.apply(null,l)})}function d2(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return P2[e]?P2[e].apply(null,t):void 0}function e6(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const l=e.prefix||u2();if(t)return t=n2(l,t)||t,Za(Dq.definitions,l,t)||Za(R1.styles,l,t)}const Dq=new cQ,aQ=()=>{O.autoReplaceSvg=!1,O.observeMutations=!1,V2("noAuto")},nQ={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return K1?(V2("beforeI2svg",e),d2("pseudoElements2svg",e),d2("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;O.autoReplaceSvg===!1&&(O.autoReplaceSvg=!0),O.observeMutations=!0,jZ(()=>{oQ({autoReplaceSvgRoot:t}),V2("watch",e)})}},sQ={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:n2(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],l=p0(e[0]);return{prefix:l,iconName:n2(l,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(O.cssPrefix,"-"))>-1||e.match(VZ))){const t=z0(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||u2(),iconName:n2(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=u2();return{prefix:t,iconName:n2(t,e)||e}}}},y1={noAuto:aQ,config:O,dom:nQ,parse:sQ,library:Dq,findIconDefinition:e6,toHtml:F3},oQ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=l1}=e;(Object.keys(R1.styles).length>0||O.autoFetchSvg)&&K1&&O.autoReplaceSvg&&y1.dom.i2svg({node:t})};function h0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(l=>F3(l))}}),Object.defineProperty(e,"node",{get:function(){if(!K1)return;const l=l1.createElement("div");return l.innerHTML=e.html,l.children}}),e}function iQ(e){let{children:t,main:l,mask:a,attributes:s,styles:n,transform:o}=e;if(Sl(o)&&l.found&&!a.found){const{width:i,height:r}=l,f={x:i/r/2,y:.5};s.style=d0({...n,"transform-origin":"".concat(f.x+o.x/16,"em ").concat(f.y+o.y/16,"em")})}return[{tag:"svg",attributes:s,children:t}]}function rQ(e){let{prefix:t,iconName:l,children:a,attributes:s,symbol:n}=e;const o=n===!0?"".concat(t,"-").concat(O.cssPrefix,"-").concat(l):n;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...s,id:o},children:a}]}]}function Tl(e){const{icons:{main:t,mask:l},prefix:a,iconName:s,transform:n,symbol:o,title:i,maskId:r,titleId:f,extra:u,watchable:d=!1}=e,{width:m,height:p}=l.found?l:t,h=a==="fak",M=[O.replacementClass,s?"".concat(O.cssPrefix,"-").concat(s):""].filter(k=>u.classes.indexOf(k)===-1).filter(k=>k!==""||!!k).concat(u.classes).join(" ");let v={children:[],attributes:{...u.attributes,"data-prefix":a,"data-icon":s,class:M,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(p)}};const b=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(m/p*16*.0625,"em")}:{};d&&(v.attributes[y2]=""),i&&(v.children.push({tag:"title",attributes:{id:v.attributes["aria-labelledby"]||"title-".concat(f||b3())},children:[i]}),delete v.attributes.title);const C={...v,prefix:a,iconName:s,main:t,mask:l,maskId:r,transform:n,symbol:o,styles:{...b,...u.styles}},{children:g,attributes:A}=l.found&&t.found?d2("generateAbstractMask",C)||{children:[],attributes:{}}:d2("generateAbstractIcon",C)||{children:[],attributes:{}};return C.children=g,C.attributes=A,o?rQ(C):iQ(C)}function Ka(e){const{content:t,width:l,height:a,transform:s,title:n,extra:o,watchable:i=!1}=e,r={...o.attributes,...n?{title:n}:{},class:o.classes.join(" ")};i&&(r[y2]="");const f={...o.styles};Sl(s)&&(f.transform=FZ({transform:s,startCentered:!0,width:l,height:a}),f["-webkit-transform"]=f.transform);const u=d0(f);u.length>0&&(r.style=u);const d=[];return d.push({tag:"span",attributes:r,children:[t]}),n&&d.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),d}function fQ(e){const{content:t,title:l,extra:a}=e,s={...a.attributes,...l?{title:l}:{},class:a.classes.join(" ")},n=d0(a.styles);n.length>0&&(s.style=n);const o=[];return o.push({tag:"span",attributes:s,children:[t]}),l&&o.push({tag:"span",attributes:{class:"sr-only"},children:[l]}),o}const{styles:y0}=R1;function c6(e){const t=e[0],l=e[1],[a]=e.slice(4);let s=null;return Array.isArray(a)?s={tag:"g",attributes:{class:"".concat(O.cssPrefix,"-").concat(N0.GROUP)},children:[{tag:"path",attributes:{class:"".concat(O.cssPrefix,"-").concat(N0.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(O.cssPrefix,"-").concat(N0.PRIMARY),fill:"currentColor",d:a[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:l,icon:s}}const mQ={found:!1,width:512,height:512};function uQ(e,t){!vq&&!O.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function t6(e,t){let l=t;return t==="fa"&&O.styleDefault!==null&&(t=u2()),new Promise((a,s)=>{if(l==="fa"){const n=Iq(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&y0[t]&&y0[t][e]){const n=y0[t][e];return a(c6(n))}uQ(e,t),a({...mQ,icon:O.showMissingIcons&&e?d2("missingIconAbstract")||{}:{}})})}const Xa=()=>{},l6=O.measurePerformance&&W3&&W3.mark&&W3.measure?W3:{mark:Xa,measure:Xa},s3='FA "6.6.0"',dQ=e=>(l6.mark("".concat(s3," ").concat(e," begins")),()=>Oq(e)),Oq=e=>{l6.mark("".concat(s3," ").concat(e," ends")),l6.measure("".concat(s3," ").concat(e),"".concat(s3," ").concat(e," begins"),"".concat(s3," ").concat(e," ends"))};var Hl={begin:dQ,end:Oq};const Z3=()=>{};function en(e){return typeof(e.getAttribute?e.getAttribute(y2):null)=="string"}function pQ(e){const t=e.getAttribute?e.getAttribute(xl):null,l=e.getAttribute?e.getAttribute(yl):null;return t&&l}function zQ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(O.replacementClass)}function hQ(){return O.autoReplaceSvg===!0?Q3.replace:Q3[O.autoReplaceSvg]||Q3.replace}function LQ(e){return l1.createElementNS("http://www.w3.org/2000/svg",e)}function gQ(e){return l1.createElement(e)}function Pq(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:l=e.tag==="svg"?LQ:gQ}=t;if(typeof e=="string")return l1.createTextNode(e);const a=l(e.tag);return Object.keys(e.attributes||[]).forEach(function(n){a.setAttribute(n,e.attributes[n])}),(e.children||[]).forEach(function(n){a.appendChild(Pq(n,{ceFn:l}))}),a}function CQ(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Q3={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(l=>{t.parentNode.insertBefore(Pq(l),t)}),t.getAttribute(y2)===null&&O.keepOriginalSource){let l=l1.createComment(CQ(t));t.parentNode.replaceChild(l,t)}else t.remove()},nest:function(e){const t=e[0],l=e[1];if(~Vl(t).indexOf(O.replacementClass))return Q3.replace(e);const a=new RegExp("".concat(O.cssPrefix,"-.*"));if(delete l[0].attributes.id,l[0].attributes.class){const n=l[0].attributes.class.split(" ").reduce((o,i)=>(i===O.replacementClass||i.match(a)?o.toSvg.push(i):o.toNode.push(i),o),{toNode:[],toSvg:[]});l[0].attributes.class=n.toSvg.join(" "),n.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",n.toNode.join(" "))}const s=l.map(n=>F3(n)).join(`
576
576
  `);t.setAttribute(y2,""),t.innerHTML=s}};function cn(e){e()}function Rq(e,t){const l=typeof t=="function"?t:Z3;if(e.length===0)l();else{let a=cn;O.mutateApproach===kZ&&(a=m2.requestAnimationFrame||cn),a(()=>{const s=hQ(),n=Hl.begin("mutate");e.map(s),n(),l()})}}let Il=!1;function Fq(){Il=!0}function a6(){Il=!1}let s4=null;function tn(e){if(!ja||!O.observeMutations)return;const{treeCallback:t=Z3,nodeCallback:l=Z3,pseudoElementsCallback:a=Z3,observeMutationsRoot:s=l1}=e;s4=new ja(n=>{if(Il)return;const o=u2();Y2(n).forEach(i=>{if(i.type==="childList"&&i.addedNodes.length>0&&!en(i.addedNodes[0])&&(O.searchPseudoElements&&a(i.target),t(i.target)),i.type==="attributes"&&i.target.parentNode&&O.searchPseudoElements&&a(i.target.parentNode),i.type==="attributes"&&en(i.target)&&~EZ.indexOf(i.attributeName))if(i.attributeName==="class"&&pQ(i.target)){const{prefix:r,iconName:f}=z0(Vl(i.target));i.target.setAttribute(xl,r||o),f&&i.target.setAttribute(yl,f)}else zQ(i.target)&&l(i.target)})}),K1&&s4.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function MQ(){s4&&s4.disconnect()}function vQ(e){const t=e.getAttribute("style");let l=[];return t&&(l=t.split(";").reduce((a,s)=>{const n=s.split(":"),o=n[0],i=n.slice(1);return o&&i.length>0&&(a[o]=i.join(":").trim()),a},{})),l}function bQ(e){const t=e.getAttribute("data-prefix"),l=e.getAttribute("data-icon"),a=e.innerText!==void 0?e.innerText.trim():"";let s=z0(Vl(e));return s.prefix||(s.prefix=u2()),t&&l&&(s.prefix=t,s.iconName=l),s.iconName&&s.prefix||(s.prefix&&a.length>0&&(s.iconName=KZ(s.prefix,e.innerText)||El(s.prefix,Y0(e.innerText))),!s.iconName&&O.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s}function AQ(e){const t=Y2(e.attributes).reduce((s,n)=>(s.name!=="class"&&s.name!=="style"&&(s[n.name]=n.value),s),{}),l=e.getAttribute("title"),a=e.getAttribute("data-fa-title-id");return O.autoA11y&&(l?t["aria-labelledby"]="".concat(O.replacementClass,"-title-").concat(a||b3()):(t["aria-hidden"]="true",t.focusable="false")),t}function _Q(){return{iconName:null,title:null,titleId:null,prefix:null,transform:P1,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function ln(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:l,prefix:a,rest:s}=bQ(e),n=AQ(e),o=X0("parseNodeAttributes",{},e);let i=t.styleParser?vQ(e):[];return{iconName:l,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:P1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:i,attributes:n},...o}}const{styles:NQ}=R1;function $q(e){const t=O.autoReplaceSvg==="nest"?ln(e,{styleParser:!1}):ln(e);return~t.extra.classes.indexOf(_q)?d2("generateLayersText",e,t):d2("generateSvgReplacementMutation",e,t)}let j1=new Set;bq.map(e=>{j1.add("fa-".concat(e))});Object.keys(A2[s1]).map(j1.add.bind(j1));Object.keys(A2[k1]).map(j1.add.bind(j1));Object.keys(A2[x1]).map(j1.add.bind(j1));j1=[...j1];function an(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!K1)return Promise.resolve();const l=l1.documentElement.classList,a=u=>l.add("".concat(Ja,"-").concat(u)),s=u=>l.remove("".concat(Ja,"-").concat(u)),n=O.autoFetchSvg?j1:bq.map(u=>"fa-".concat(u)).concat(Object.keys(NQ));n.includes("fa")||n.push("fa");const o=[".".concat(_q,":not([").concat(y2,"])")].concat(n.map(u=>".".concat(u,":not([").concat(y2,"])"))).join(", ");if(o.length===0)return Promise.resolve();let i=[];try{i=Y2(e.querySelectorAll(o))}catch{}if(i.length>0)a("pending"),s("complete");else return Promise.resolve();const r=Hl.begin("onTree"),f=i.reduce((u,d)=>{try{const m=$q(d);m&&u.push(m)}catch(m){vq||m.name==="MissingIcon"&&console.error(m)}return u},[]);return new Promise((u,d)=>{Promise.all(f).then(m=>{Rq(m,()=>{a("active"),a("complete"),s("pending"),typeof t=="function"&&t(),r(),u()})}).catch(m=>{r(),d(m)})})}function kQ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;$q(e).then(l=>{l&&Rq([l],t)})}function xQ(e){return function(t){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=(t||{}).icon?t:e6(t||{});let{mask:s}=l;return s&&(s=(s||{}).icon?s:e6(s||{})),e(a,{...l,mask:s})}}const yQ=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:l=P1,symbol:a=!1,mask:s=null,maskId:n=null,title:o=null,titleId:i=null,classes:r=[],attributes:f={},styles:u={}}=t;if(!e)return;const{prefix:d,iconName:m,icon:p}=e;return h0({type:"icon",...e},()=>(V2("beforeDOMElementCreation",{iconDefinition:e,params:t}),O.autoA11y&&(o?f["aria-labelledby"]="".concat(O.replacementClass,"-title-").concat(i||b3()):(f["aria-hidden"]="true",f.focusable="false")),Tl({icons:{main:c6(p),mask:s?c6(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:m,transform:{...P1,...l},symbol:a,title:o,maskId:n,titleId:i,extra:{attributes:f,styles:u,classes:r}})))};var VQ={mixout(){return{icon:xQ(yQ)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=an,e.nodeCallback=kQ,e}}},provides(e){e.i2svg=function(t){const{node:l=l1,callback:a=()=>{}}=t;return an(l,a)},e.generateSvgReplacementMutation=function(t,l){const{iconName:a,title:s,titleId:n,prefix:o,transform:i,symbol:r,mask:f,maskId:u,extra:d}=l;return new Promise((m,p)=>{Promise.all([t6(a,o),f.iconName?t6(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(h=>{let[M,v]=h;m([t,Tl({icons:{main:M,mask:v},prefix:o,iconName:a,transform:i,symbol:r,maskId:u,title:s,titleId:n,extra:d,watchable:!0})])}).catch(p)})},e.generateAbstractIcon=function(t){let{children:l,attributes:a,main:s,transform:n,styles:o}=t;const i=d0(o);i.length>0&&(a.style=i);let r;return Sl(n)&&(r=d2("generateAbstractTransformGrouping",{main:s,transform:n,containerWidth:s.width,iconWidth:s.width})),l.push(r||s.icon),{children:l,attributes:a}}}},SQ={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:l=[]}=t;return h0({type:"layer"},()=>{V2("beforeDOMElementCreation",{assembler:e,params:t});let a=[];return e(s=>{Array.isArray(s)?s.map(n=>{a=a.concat(n.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(O.cssPrefix,"-layers"),...l].join(" ")},children:a}]})}}}},wQ={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:l=null,classes:a=[],attributes:s={},styles:n={}}=t;return h0({type:"counter",content:e},()=>(V2("beforeDOMElementCreation",{content:e,params:t}),fQ({content:e.toString(),title:l,extra:{attributes:s,styles:n,classes:["".concat(O.cssPrefix,"-layers-counter"),...a]}})))}}}},EQ={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:l=P1,title:a=null,classes:s=[],attributes:n={},styles:o={}}=t;return h0({type:"text",content:e},()=>(V2("beforeDOMElementCreation",{content:e,params:t}),Ka({content:e,transform:{...P1,...l},title:a,extra:{attributes:n,styles:o,classes:["".concat(O.cssPrefix,"-layers-text"),...s]}})))}}},provides(e){e.generateLayersText=function(t,l){const{title:a,transform:s,extra:n}=l;let o=null,i=null;if(zq){const r=parseInt(getComputedStyle(t).fontSize,10),f=t.getBoundingClientRect();o=f.width/r,i=f.height/r}return O.autoA11y&&!a&&(n.attributes["aria-hidden"]="true"),Promise.resolve([t,Ka({content:t.innerHTML,width:o,height:i,transform:s,title:a,extra:n,watchable:!0})])}}};const BQ=new RegExp('"',"ug"),nn=[1105920,1112319],sn={FontAwesome:{normal:"fas",400:"fas"},...pZ,...dZ,...bZ},n6=Object.keys(sn).reduce((e,t)=>(e[t.toLowerCase()]=sn[t],e),{}),TQ=Object.keys(n6).reduce((e,t)=>{const l=n6[t];return e[t]=l[900]||[...Object.entries(l)][0][1],e},{});function HQ(e){const t=e.replace(BQ,""),l=WZ(t,0),a=l>=nn[0]&&l<=nn[1],s=t.length===2?t[0]===t[1]:!1;return{value:Y0(s?t[0]:t),isSecondary:a||s}}function IQ(e,t){const l=e.replace(/^['"]|['"]$/g,"").toLowerCase(),a=parseInt(t),s=isNaN(a)?"normal":a;return(n6[l]||{})[s]||TQ[l]}function on(e,t){const l="".concat(NZ).concat(t.replace(":","-"));return new Promise((a,s)=>{if(e.getAttribute(l)!==null)return a();const o=Y2(e.children).filter(m=>m.getAttribute(J0)===t)[0],i=m2.getComputedStyle(e,t),r=i.getPropertyValue("font-family"),f=r.match(SZ),u=i.getPropertyValue("font-weight"),d=i.getPropertyValue("content");if(o&&!f)return e.removeChild(o),a();if(f&&d!=="none"&&d!==""){const m=i.getPropertyValue("content");let p=IQ(r,u);const{value:h,isSecondary:M}=HQ(m),v=f[0].startsWith("FontAwesome");let b=El(p,h),C=b;if(v){const g=XZ(h);g.iconName&&g.prefix&&(b=g.iconName,p=g.prefix)}if(b&&!M&&(!o||o.getAttribute(xl)!==p||o.getAttribute(yl)!==C)){e.setAttribute(l,C),o&&e.removeChild(o);const g=_Q(),{extra:A}=g;A.attributes[J0]=t,t6(b,p).then(k=>{const _=Tl({...g,icons:{main:k,mask:Bl()},prefix:p,iconName:C,extra:A,watchable:!0}),V=l1.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(V,e.firstChild):e.appendChild(V),V.outerHTML=_.map(x=>F3(x)).join(`
577
- `),e.removeAttribute(l),a()}).catch(s)}else a()}else a()})}function DQ(e){return Promise.all([on(e,"::before"),on(e,"::after")])}function OQ(e){return e.parentNode!==document.head&&!~xZ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(J0)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function rn(e){if(K1)return new Promise((t,l)=>{const a=Y2(e.querySelectorAll("*")).filter(OQ).map(DQ),s=Hl.begin("searchPseudoElements");Fq(),Promise.all(a).then(()=>{s(),a6(),t()}).catch(()=>{s(),a6(),l()})})}var PQ={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=rn,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:l=l1}=t;O.searchPseudoElements&&rn(l)}}};let fn=!1;var RQ={mixout(){return{dom:{unwatch(){Fq(),fn=!0}}}},hooks(){return{bootstrap(){tn(X0("mutationObserverCallbacks",{}))},noAuto(){MQ()},watch(e){const{observeMutationsRoot:t}=e;fn?a6():tn(X0("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const mn=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((l,a)=>{const s=a.toLowerCase().split("-"),n=s[0];let o=s.slice(1).join("-");if(n&&o==="h")return l.flipX=!0,l;if(n&&o==="v")return l.flipY=!0,l;if(o=parseFloat(o),isNaN(o))return l;switch(n){case"grow":l.size=l.size+o;break;case"shrink":l.size=l.size-o;break;case"left":l.x=l.x-o;break;case"right":l.x=l.x+o;break;case"up":l.y=l.y-o;break;case"down":l.y=l.y+o;break;case"rotate":l.rotate=l.rotate+o;break}return l},t)};var FQ={mixout(){return{parse:{transform:e=>mn(e)}}},hooks(){return{parseNodeAttributes(e,t){const l=t.getAttribute("data-fa-transform");return l&&(e.transform=mn(l)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:l,transform:a,containerWidth:s,iconWidth:n}=t;const o={transform:"translate(".concat(s/2," 256)")},i="translate(".concat(a.x*32,", ").concat(a.y*32,") "),r="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),f="rotate(".concat(a.rotate," 0 0)"),u={transform:"".concat(i," ").concat(r," ").concat(f)},d={transform:"translate(".concat(n/2*-1," -256)")},m={outer:o,inner:u,path:d};return{tag:"g",attributes:{...m.outer},children:[{tag:"g",attributes:{...m.inner},children:[{tag:l.icon.tag,children:l.icon.children,attributes:{...l.icon.attributes,...m.path}}]}]}}}};const V0={x:0,y:0,width:"100%",height:"100%"};function un(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function $Q(e){return e.tag==="g"?e.children:[e]}var qQ={hooks(){return{parseNodeAttributes(e,t){const l=t.getAttribute("data-fa-mask"),a=l?z0(l.split(" ").map(s=>s.trim())):Bl();return a.prefix||(a.prefix=u2()),e.mask=a,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:l,attributes:a,main:s,mask:n,maskId:o,transform:i}=t;const{width:r,icon:f}=s,{width:u,icon:d}=n,m=RZ({transform:i,containerWidth:u,iconWidth:r}),p={tag:"rect",attributes:{...V0,fill:"white"}},h=f.children?{children:f.children.map(un)}:{},M={tag:"g",attributes:{...m.inner},children:[un({tag:f.tag,attributes:{...f.attributes,...m.path},...h})]},v={tag:"g",attributes:{...m.outer},children:[M]},b="mask-".concat(o||b3()),C="clip-".concat(o||b3()),g={tag:"mask",attributes:{...V0,id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[p,v]},A={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:$Q(d)},g]};return l.push(A,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(b,")"),...V0}}),{children:l,attributes:a}}}},jQ={provides(e){let t=!1;m2.matchMedia&&(t=m2.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const l=[],a={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};l.push({tag:"path",attributes:{...a,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const n={...s,attributeName:"opacity"},o={tag:"circle",attributes:{...a,cx:"256",cy:"364",r:"28"},children:[]};return t||o.children.push({tag:"animate",attributes:{...s,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...n,values:"1;0;1;1;0;1;"}}),l.push(o),l.push({tag:"path",attributes:{...a,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...n,values:"1;0;0;0;0;1;"}}]}),t||l.push({tag:"path",attributes:{...a,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...n,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:l}}}},UQ={hooks(){return{parseNodeAttributes(e,t){const l=t.getAttribute("data-fa-symbol"),a=l===null?!1:l===""?!0:l;return e.symbol=a,e}}}},WQ=[qZ,VQ,SQ,wQ,EQ,PQ,RQ,FQ,qQ,jQ,UQ];lQ(WQ,{mixoutsTo:y1});y1.noAuto;y1.config;y1.library;y1.dom;const dn=y1.parse;y1.findIconDefinition;y1.toHtml;const JQ=y1.icon;y1.layer;y1.text;y1.counter;const qq=c.defineComponent({name:"AVIcon",props:{icon:{type:String,required:!0}},setup(e){const t=f=>dn.icon?dn.icon(f):null,l={...wB,...P$},a=(f,u={})=>{const d=(f.children||[]).map(h=>a(h));if(f.prefix)return;const m=Object.keys(f.attributes||{}).reduce((h,M)=>{const v=f.attributes[M];return h.attrs[M]=v,h},{attrs:{}}),{...p}=u;return c.h(f.tag,{...m.attrs,...p},d)};function s(f){let p=`fa-${f}`.split("-").map(M=>M.charAt(0).toUpperCase()+M.slice(1).toLowerCase()).join("");return p.charAt(0).toLowerCase()+p.slice(1)}const n=c.computed(()=>s(t(e.icon).iconName)),o=c.computed(()=>l[n.value]),i=c.computed(()=>JQ(o.value,{symbol:!1,title:o.value}));c.watch(i,f=>{if(!f)return console.log("Could not find one or more icon(s)",o)},{immediate:!0});const r=c.computed(()=>i.value?a(i.value.abstract[0]):null);return()=>r.value}}),GQ=["disabled"],ZQ=c.defineComponent({__name:"AVButton",props:{label:{type:String,default:""},size:{type:String,validate:e=>["small","regular","large"].includes(e),default:"regular"},type:{type:String,validate:e=>["primary","secondary","destructive","neutral"].includes(e),default:"secondary"},iconLeft:{type:Boolean,default:!1},iconRight:{type:Boolean,default:!1},icon:{type:String,default:"bolt"},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},emits:["onClick"],setup(e,{emit:t}){const l=t,a=()=>{l("onClick")};return(s,n)=>{const o=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("button",{type:"button",class:c.normalizeClass(`AVButton AVButton--${e.size} AVButton--${e.type} ${e.fullWidth?"AVButton--full":""}`),"data-test":"btn",onClick:a,disabled:e.disabled},[e.iconLeft?(c.openBlock(),c.createBlock(o,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVButton--icon-left","data-test":"btn-icon"},null,8,["icon"])):c.createCommentVNode("",!0),c.renderSlot(s.$slots,"default",{},()=>[c.createTextVNode(c.toDisplayString(e.label),1)],!0),e.iconRight?(c.openBlock(),c.createBlock(o,{key:1,icon:`fa-solid fa-${e.icon}`,class:"AVButton--icon-right","data-test":"btn-icon"},null,8,["icon"])):c.createCommentVNode("",!0)],10,GQ)}}}),D=(e,t)=>{const l=e.__vccOpts||e;for(const[a,s]of t)l[a]=s;return l},jq=D(ZQ,[["__scopeId","data-v-d69f84e2"]]),QQ=c.defineComponent({__name:"AVSpinner",props:{size:{type:String,validate:e=>["small","regular","large","xlarge"].includes(e),default:""},color:{type:String,validate:e=>["dark","light","neutral"].includes(e),default:"dark"}},setup(e){return(t,l)=>{const a=c.resolveComponent("AVIcon");return c.openBlock(),c.createBlock(a,{icon:"fa-solid fa-spinner",class:c.normalizeClass(`AVSpinner AVSpinner--${e.size} AVSpinner--${e.color}`)},null,8,["class"])}}}),Uq=D(QQ,[["__scopeId","data-v-70d9cfd4"]]),YQ=c.defineComponent({__name:"AVBullet",props:{type:{type:String,validate:e=>["solid","number","icon"].includes(e),default:"solid"},hover:{type:Boolean,default:!1},active:{type:Boolean,default:!1},value:{type:String,default:""}},setup(e){return(t,l)=>{const a=c.resolveComponent("AVIcon");return e.type==="icon"?(c.openBlock(),c.createBlock(a,{key:0,icon:`fa-solid fa-${e.value||"bolt"}`,class:c.normalizeClass(["AVBullet--icon",{"AVBullet--active":e.active,"AVBullet--hover":e.hover}]),"data-test":"icon-bullet"},null,8,["icon","class"])):e.type==="number"?(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(["AVBullet--container AVBullet--outer-circle",{"AVBullet--active":e.active,"AVBullet--hover":e.hover}]),"data-test":"number-bullet"},[c.createElementVNode("div",{class:c.normalizeClass(["AVBullet--number",{"AVBullet--active":e.active,"AVBullet--hover":e.hover}])},c.toDisplayString(e.value||"0"),3)],2)):(c.openBlock(),c.createBlock(a,{key:2,icon:"fa-solid fa-circle",class:c.normalizeClass(["AVBullet--icon",{"AVBullet--active":e.active,"AVBullet--hover":e.hover}]),"data-test":"solid-bullet"},null,8,["class"]))}}}),o4=D(YQ,[["__scopeId","data-v-5b7d0fcb"]]),KQ={class:"AVTextInput--input-set"},XQ=["for"],eY={class:"AVTextInput--input-field"},cY={class:"AVTextInput--icon-container"},tY=["id","placeholder","disabled","value"],lY={key:0,class:"AVTextInput--icon-container"},aY={key:1,class:"AVTextInput--error","data-test":"error-msg"},nY=c.defineComponent({__name:"AVTextInput",props:{id:{type:String,required:!0},placeholder:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},inputLabel:{type:String,default:null},modelValue:{type:String,default:""},tooltipText:{type:String,default:null},errorMessage:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const l=e,a=t,s=o=>{a("update:modelValue",o.target.value)},n=c.computed(()=>({AVTextInput:!0,error:!!l.error,icon:!!l.icon,disabled:l.disabled}));return(o,i)=>{const r=c.resolveComponent("AVIcon"),f=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",KQ,[e.inputLabel?(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVTextInput--label","data-test":"input-label"},[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(e.inputLabel)+" ",1),e.tooltipText?c.withDirectives((c.openBlock(),c.createBlock(r,{key:0,icon:"circle-question",class:"AVTextInput--tooltip-icon"},null,512)),[[f,e.tooltipText]]):c.createCommentVNode("",!0)])],8,XQ)):c.createCommentVNode("",!0),c.createElementVNode("div",eY,[c.createElementVNode("div",cY,[e.icon?(c.openBlock(),c.createBlock(r,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVTextInput--input-icon","data-test":"input-icon"},null,8,["icon"])):c.createCommentVNode("",!0)]),c.createElementVNode("input",{id:e.id,placeholder:e.placeholder,disabled:e.disabled,type:"text",class:c.normalizeClass(n.value),ref:"textInput",value:e.modelValue,onInput:s,"data-1p-ignore":""},null,42,tY),e.error?(c.openBlock(),c.createElementBlock("div",lY,[c.createVNode(r,{icon:"fa-solid fa-circle-exclamation",class:"AVTextInput--error-icon","data-test":"input-error-icon"})])):c.createCommentVNode("",!0)]),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",aY,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),Wq=D(nY,[["__scopeId","data-v-6c6cbec3"]]),sY={class:"AVNumberInput--input-set"},oY=["for"],iY={class:"AVNumberInput--icon-container"},rY=["value","id","disabled","name","min","max","step"],fY={key:0,class:"AVNumberInput--icon-container"},mY={key:1,class:"AVNumberInput--error","data-test":"error-msg"},uY=c.defineComponent({__name:"AVNumberInput",props:{id:{type:String,required:!0},min:{type:Number,default:null},max:{type:Number,default:null},step:{type:Number,default:1},icon:{type:String,default:null},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:null},inputLabel:{type:String,default:null},disableControllers:{type:Boolean,default:!1},modelValue:{type:Number,default:0},tooltipText:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const l=e,a=t,s=c.ref(null),n=d=>{a("update:modelValue",parseInt(d.target.value))},o=d=>{d.target.value===""&&a("update:modelValue",0)},i=()=>{s.value.classList.remove("hidden"),s.value.classList.add("AVNumberInput--shown")},r=()=>{l.error||(s.value.classList.remove("AVNumberInput--shown"),s.value.classList.add("hidden"))},f=()=>{const d=l.modelValue+l.step;(l.max===null||d<=l.max)&&a("update:modelValue",d)},u=()=>{const d=l.modelValue-l.step;(l.min===null||d>=l.min)&&a("update:modelValue",d)};return(d,m)=>{const p=c.resolveComponent("AVIcon"),h=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",sY,[e.inputLabel?(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVNumberInput--label","data-test":"input-label"},[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(e.inputLabel)+" ",1),e.tooltipText?c.withDirectives((c.openBlock(),c.createBlock(p,{key:0,icon:"circle-question",class:"AVNumberInput--tooltip-icon"},null,512)),[[h,e.tooltipText]]):c.createCommentVNode("",!0)])],8,oY)):c.createCommentVNode("",!0),c.createElementVNode("div",{class:"AVNumberInput--input-field",onMouseenter:i,onMouseleave:r},[c.createElementVNode("div",iY,[e.icon?(c.openBlock(),c.createBlock(p,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVNumberInput--input-icon","data-test":"input-icon"},null,8,["icon"])):c.createCommentVNode("",!0)]),c.createElementVNode("input",{value:e.modelValue,onInput:n,onBlur:o,type:"number",class:c.normalizeClass(["AVNumberInput",{error:e.error,"no-icon":!e.icon,disabled:e.disabled}]),style:c.normalizeStyle(`margin-right: -${e.error?"3.75":"1.4"}rem`),id:e.id,disabled:e.disabled,ref:"numberInput",name:e.id,min:e.min,max:e.max,step:e.step},null,46,rY),c.createElementVNode("div",{class:c.normalizeClass(["AVNumberInput--controllers-container",{hidden:!e.error,error:e.error,disabled:e.disabled||e.disableControllers}]),ref_key:"inputControllers",ref:s,"data-test":"input-controllers"},[c.createElementVNode("button",{onClick:f,class:"AVNumberInput--button","data-test":"input-controller-plus"},[c.createVNode(p,{icon:"fa-solid fa-circle-plus",class:"AVNumberInput--controller-icon"})]),c.createElementVNode("button",{onClick:u,class:"AVNumberInput--button","data-test":"input-controller-minus"},[c.createVNode(p,{icon:"fa-solid fa-circle-minus",class:"AVNumberInput--controller-icon"})])],2),e.error?(c.openBlock(),c.createElementBlock("div",fY,[c.createVNode(p,{icon:"fa-solid fa-circle-exclamation",class:"AVNumberInput--error-icon","data-test":"input-error-icon"})])):c.createCommentVNode("",!0)],32),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",mY,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),Jq=D(uY,[["__scopeId","data-v-c69bbc44"]]),dY={class:"AVPasswordInput--input-set"},pY=["for"],zY={class:"AVPasswordInput--input-field"},hY={class:"AVPasswordInput--icon-container"},LY=["value","type","id","disabled","placeholder","name"],gY={class:"AVPasswordInput--icon-container"},CY={key:1,class:"AVPasswordInput--error","data-test":"error-msg"},MY=c.defineComponent({__name:"AVPasswordInput",props:{id:{type:String,required:!0},modelValue:{type:String,default:""},placeholder:{type:String,default:"placeholder"},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:null},inputLabel:{type:String,default:null},disableIcon:{type:Boolean,default:!1},tooltipText:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const l=t,a=c.ref(!1),s=()=>{a.value=!a.value},n=o=>{l("update:modelValue",o.target.value)};return(o,i)=>{const r=c.resolveComponent("AVIcon"),f=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",dY,[e.inputLabel?(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVPasswordInput--label","data-test":"input-label"},[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(e.inputLabel)+" ",1),e.tooltipText?c.withDirectives((c.openBlock(),c.createBlock(r,{key:0,icon:"circle-question",class:"AVPasswordInput--tooltip-icon"},null,512)),[[f,e.tooltipText]]):c.createCommentVNode("",!0)])],8,pY)):c.createCommentVNode("",!0),c.createElementVNode("div",zY,[c.createElementVNode("div",hY,[e.disableIcon?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(r,{key:0,icon:"fa-solid fa-key",class:"AVPasswordInput--input-icon","data-test":"input-icon"}))]),c.createElementVNode("input",{value:e.modelValue,onInput:n,type:`${a.value?"text":"password"}`,class:c.normalizeClass(["AVPasswordInput",{error:e.error,"no-icon":e.disableIcon,disabled:e.disabled}]),id:e.id,disabled:e.disabled,placeholder:e.placeholder,ref:"textInput",name:e.id},null,42,LY),c.createElementVNode("div",gY,[c.createElementVNode("button",{onClick:s},[c.createVNode(r,{icon:`fa-solid fa-${a.value?"eye-slash":"eye"}`,class:"AVPasswordInput--input-icon","data-test":"show-pass-icon"},null,8,["icon"])])])]),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",CY,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),Gq=D(MY,[["__scopeId","data-v-b1c76306"]]),vY={class:"AVDatetimeInput--input-set"},bY=["for"],AY={class:"AVDatetimeInput--input-field"},_Y={class:"AVDatetimeInput--icon-container"},NY=["value","id","disabled","name","min","max"],kY={key:1,class:"AVDatetimeInput--error","data-test":"error-msg"},xY=c.defineComponent({__name:"AVDatetimeInput",props:{id:{type:String,required:!0},modelValue:{type:String,default:null},min:{type:String,default:null},max:{type:String,default:null},icon:{type:String,default:null},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:null},inputLabel:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const l=t,a=s=>{l("update:modelValue",s.target.value)};return(s,n)=>{const o=c.resolveComponent("AVIcon"),i=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",vY,[e.inputLabel?(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVDatetimeInput--label","data-test":"input-label"},[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(e.inputLabel)+" ",1),e.tooltipText?c.withDirectives((c.openBlock(),c.createBlock(o,{key:0,icon:"circle-question",class:"AVDatetimeInput--tooltip-icon"},null,512)),[[i,e.tooltipText]]):c.createCommentVNode("",!0)])],8,bY)):c.createCommentVNode("",!0),c.createElementVNode("div",AY,[c.createElementVNode("div",_Y,[e.icon?(c.openBlock(),c.createBlock(o,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVDatetimeInput--input-icon","data-test":"input-icon"},null,8,["icon"])):c.createCommentVNode("",!0)]),c.createElementVNode("input",{value:e.modelValue,onInput:a,type:"datetime-local",class:c.normalizeClass(["AVDatetimeInput",{error:e.error,"no-icon":!e.icon,disabled:e.disabled}]),style:c.normalizeStyle(`margin-right: -${e.error?"3.75":"1.4"}rem`),id:e.id,disabled:e.disabled,ref:"datetimeInput",name:e.id,min:e.min,max:e.max},null,46,NY)]),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",kY,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),Zq=D(xY,[["__scopeId","data-v-d438432a"]]),yY={class:"AVTextArea--input-set"},VY=["for"],SY={class:"AVTextArea--input-field"},wY=["value","id","disabled","placeholder","name","rows"],EY={key:0,class:"AVTextArea--icon-container"},BY={key:1,class:"AVTextArea--error","data-test":"error-msg"},TY=c.defineComponent({__name:"AVTextArea",props:{id:{type:String,required:!0},modelValue:{type:String,default:""},placeholder:{type:String,default:"placeholder"},icon:{type:String,default:null},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:null},inputLabel:{type:String,default:null},rows:{type:Number,default:4},tooltipText:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const l=t,a=s=>{l("update:modelValue",s.target.value)};return(s,n)=>{const o=c.resolveComponent("AVIcon"),i=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",yY,[e.inputLabel?(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVTextArea--label","data-test":"input-label"},[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(e.inputLabel)+" ",1),e.tooltipText?c.withDirectives((c.openBlock(),c.createBlock(o,{key:0,icon:"circle-question",class:"AVTextArea--tooltip-icon"},null,512)),[[i,e.tooltipText]]):c.createCommentVNode("",!0)])],8,VY)):c.createCommentVNode("",!0),c.createElementVNode("div",SY,[c.createElementVNode("div",{class:"AVTextArea--icon-container",style:c.normalizeStyle(`height: ${1.5625*e.rows+1}rem;`)},[e.icon?(c.openBlock(),c.createBlock(o,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVTextArea--input-icon","data-test":"input-icon"},null,8,["icon"])):c.createCommentVNode("",!0)],4),c.createElementVNode("textarea",{value:e.modelValue,onInput:a,class:c.normalizeClass(["AVTextArea",{error:e.error,"no-icon":!e.icon,disabled:e.disabled}]),id:e.id,disabled:e.disabled,placeholder:e.placeholder,ref:"textArea",name:e.id,rows:e.rows},null,42,wY),e.error?(c.openBlock(),c.createElementBlock("div",EY,[c.createVNode(o,{icon:"fa-solid fa-circle-exclamation",class:"AVTextArea--error-icon","data-test":"input-error-icon"})])):c.createCommentVNode("",!0)]),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",BY,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),Qq=D(TY,[["__scopeId","data-v-c9875ea2"]]),HY=c.defineComponent({__name:"AVLabel",props:{value:{type:String,required:!0},type:{type:String,default:"default",validate:e=>["default","info","success","danger","warning"].indexOf(e)>=0}},setup(e){const l=`
577
+ `),e.removeAttribute(l),a()}).catch(s)}else a()}else a()})}function DQ(e){return Promise.all([on(e,"::before"),on(e,"::after")])}function OQ(e){return e.parentNode!==document.head&&!~xZ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(J0)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function rn(e){if(K1)return new Promise((t,l)=>{const a=Y2(e.querySelectorAll("*")).filter(OQ).map(DQ),s=Hl.begin("searchPseudoElements");Fq(),Promise.all(a).then(()=>{s(),a6(),t()}).catch(()=>{s(),a6(),l()})})}var PQ={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=rn,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:l=l1}=t;O.searchPseudoElements&&rn(l)}}};let fn=!1;var RQ={mixout(){return{dom:{unwatch(){Fq(),fn=!0}}}},hooks(){return{bootstrap(){tn(X0("mutationObserverCallbacks",{}))},noAuto(){MQ()},watch(e){const{observeMutationsRoot:t}=e;fn?a6():tn(X0("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const mn=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((l,a)=>{const s=a.toLowerCase().split("-"),n=s[0];let o=s.slice(1).join("-");if(n&&o==="h")return l.flipX=!0,l;if(n&&o==="v")return l.flipY=!0,l;if(o=parseFloat(o),isNaN(o))return l;switch(n){case"grow":l.size=l.size+o;break;case"shrink":l.size=l.size-o;break;case"left":l.x=l.x-o;break;case"right":l.x=l.x+o;break;case"up":l.y=l.y-o;break;case"down":l.y=l.y+o;break;case"rotate":l.rotate=l.rotate+o;break}return l},t)};var FQ={mixout(){return{parse:{transform:e=>mn(e)}}},hooks(){return{parseNodeAttributes(e,t){const l=t.getAttribute("data-fa-transform");return l&&(e.transform=mn(l)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:l,transform:a,containerWidth:s,iconWidth:n}=t;const o={transform:"translate(".concat(s/2," 256)")},i="translate(".concat(a.x*32,", ").concat(a.y*32,") "),r="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),f="rotate(".concat(a.rotate," 0 0)"),u={transform:"".concat(i," ").concat(r," ").concat(f)},d={transform:"translate(".concat(n/2*-1," -256)")},m={outer:o,inner:u,path:d};return{tag:"g",attributes:{...m.outer},children:[{tag:"g",attributes:{...m.inner},children:[{tag:l.icon.tag,children:l.icon.children,attributes:{...l.icon.attributes,...m.path}}]}]}}}};const V0={x:0,y:0,width:"100%",height:"100%"};function un(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function $Q(e){return e.tag==="g"?e.children:[e]}var qQ={hooks(){return{parseNodeAttributes(e,t){const l=t.getAttribute("data-fa-mask"),a=l?z0(l.split(" ").map(s=>s.trim())):Bl();return a.prefix||(a.prefix=u2()),e.mask=a,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:l,attributes:a,main:s,mask:n,maskId:o,transform:i}=t;const{width:r,icon:f}=s,{width:u,icon:d}=n,m=RZ({transform:i,containerWidth:u,iconWidth:r}),p={tag:"rect",attributes:{...V0,fill:"white"}},h=f.children?{children:f.children.map(un)}:{},M={tag:"g",attributes:{...m.inner},children:[un({tag:f.tag,attributes:{...f.attributes,...m.path},...h})]},v={tag:"g",attributes:{...m.outer},children:[M]},b="mask-".concat(o||b3()),C="clip-".concat(o||b3()),g={tag:"mask",attributes:{...V0,id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[p,v]},A={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:$Q(d)},g]};return l.push(A,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(b,")"),...V0}}),{children:l,attributes:a}}}},jQ={provides(e){let t=!1;m2.matchMedia&&(t=m2.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const l=[],a={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};l.push({tag:"path",attributes:{...a,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const n={...s,attributeName:"opacity"},o={tag:"circle",attributes:{...a,cx:"256",cy:"364",r:"28"},children:[]};return t||o.children.push({tag:"animate",attributes:{...s,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...n,values:"1;0;1;1;0;1;"}}),l.push(o),l.push({tag:"path",attributes:{...a,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...n,values:"1;0;0;0;0;1;"}}]}),t||l.push({tag:"path",attributes:{...a,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...n,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:l}}}},UQ={hooks(){return{parseNodeAttributes(e,t){const l=t.getAttribute("data-fa-symbol"),a=l===null?!1:l===""?!0:l;return e.symbol=a,e}}}},WQ=[qZ,VQ,SQ,wQ,EQ,PQ,RQ,FQ,qQ,jQ,UQ];lQ(WQ,{mixoutsTo:y1});y1.noAuto;y1.config;y1.library;y1.dom;const dn=y1.parse;y1.findIconDefinition;y1.toHtml;const JQ=y1.icon;y1.layer;y1.text;y1.counter;const qq=c.defineComponent({name:"AVIcon",props:{icon:{type:String,required:!0}},setup(e){const t=f=>dn.icon?dn.icon(f):null,l={...wB,...P$},a=(f,u={})=>{const d=(f.children||[]).map(h=>a(h));if(f.prefix)return;const m=Object.keys(f.attributes||{}).reduce((h,M)=>{const v=f.attributes[M];return h.attrs[M]=v,h},{attrs:{}}),{...p}=u;return c.h(f.tag,{...m.attrs,...p},d)};function s(f){const p=`fa-${f}`.split("-").map(M=>M.charAt(0).toUpperCase()+M.slice(1).toLowerCase()).join("");return p.charAt(0).toLowerCase()+p.slice(1)}const n=c.computed(()=>s(t(e.icon).iconName)),o=c.computed(()=>l[n.value]),i=c.computed(()=>JQ(o.value,{symbol:!1,title:o.value}));c.watch(i,f=>{if(!f)return console.log("Could not find one or more icon(s)",o)},{immediate:!0});const r=c.computed(()=>i.value?a(i.value.abstract[0]):null);return()=>r.value}}),GQ=["disabled"],ZQ=c.defineComponent({__name:"AVButton",props:{label:{type:String,default:""},size:{type:String,validate:e=>["small","regular","large"].includes(e),default:"regular"},type:{type:String,validate:e=>["primary","secondary","destructive","neutral"].includes(e),default:"secondary"},iconLeft:{type:Boolean,default:!1},iconRight:{type:Boolean,default:!1},icon:{type:String,default:"bolt"},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},emits:["onClick"],setup(e,{emit:t}){const l=t,a=()=>{l("onClick")};return(s,n)=>{const o=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("button",{type:"button",class:c.normalizeClass(`AVButton AVButton--${e.size} AVButton--${e.type} ${e.fullWidth?"AVButton--full":""}`),"data-test":"btn",onClick:a,disabled:e.disabled},[e.iconLeft?(c.openBlock(),c.createBlock(o,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVButton--icon-left","data-test":"btn-icon"},null,8,["icon"])):c.createCommentVNode("",!0),c.renderSlot(s.$slots,"default",{},()=>[c.createTextVNode(c.toDisplayString(e.label),1)],!0),e.iconRight?(c.openBlock(),c.createBlock(o,{key:1,icon:`fa-solid fa-${e.icon}`,class:"AVButton--icon-right","data-test":"btn-icon"},null,8,["icon"])):c.createCommentVNode("",!0)],10,GQ)}}}),D=(e,t)=>{const l=e.__vccOpts||e;for(const[a,s]of t)l[a]=s;return l},jq=D(ZQ,[["__scopeId","data-v-d69f84e2"]]),QQ=c.defineComponent({__name:"AVSpinner",props:{size:{type:String,validate:e=>["small","regular","large","xlarge"].includes(e),default:""},color:{type:String,validate:e=>["dark","light","neutral"].includes(e),default:"dark"}},setup(e){return(t,l)=>{const a=c.resolveComponent("AVIcon");return c.openBlock(),c.createBlock(a,{icon:"fa-solid fa-spinner",class:c.normalizeClass(`AVSpinner AVSpinner--${e.size} AVSpinner--${e.color}`)},null,8,["class"])}}}),Uq=D(QQ,[["__scopeId","data-v-70d9cfd4"]]),YQ=c.defineComponent({__name:"AVBullet",props:{type:{type:String,validate:e=>["solid","number","icon"].includes(e),default:"solid"},hover:{type:Boolean,default:!1},active:{type:Boolean,default:!1},value:{type:String,default:""}},setup(e){return(t,l)=>{const a=c.resolveComponent("AVIcon");return e.type==="icon"?(c.openBlock(),c.createBlock(a,{key:0,icon:`fa-solid fa-${e.value||"bolt"}`,class:c.normalizeClass(["AVBullet--icon",{"AVBullet--active":e.active,"AVBullet--hover":e.hover}]),"data-test":"icon-bullet"},null,8,["icon","class"])):e.type==="number"?(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(["AVBullet--container AVBullet--outer-circle",{"AVBullet--active":e.active,"AVBullet--hover":e.hover}]),"data-test":"number-bullet"},[c.createElementVNode("div",{class:c.normalizeClass(["AVBullet--number",{"AVBullet--active":e.active,"AVBullet--hover":e.hover}])},c.toDisplayString(e.value||"0"),3)],2)):(c.openBlock(),c.createBlock(a,{key:2,icon:"fa-solid fa-circle",class:c.normalizeClass(["AVBullet--icon",{"AVBullet--active":e.active,"AVBullet--hover":e.hover}]),"data-test":"solid-bullet"},null,8,["class"]))}}}),o4=D(YQ,[["__scopeId","data-v-5b7d0fcb"]]),KQ={class:"AVTextInput--input-set"},XQ=["for"],eY={class:"AVTextInput--input-field"},cY={class:"AVTextInput--icon-container"},tY=["id","placeholder","disabled","value"],lY={key:0,class:"AVTextInput--icon-container"},aY={key:1,class:"AVTextInput--error","data-test":"error-msg"},nY=c.defineComponent({__name:"AVTextInput",props:{id:{type:String,required:!0},placeholder:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},inputLabel:{type:String,default:null},modelValue:{type:String,default:""},tooltipText:{type:String,default:null},errorMessage:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const l=e,a=t,s=o=>{a("update:modelValue",o.target.value)},n=c.computed(()=>({AVTextInput:!0,error:!!l.error,icon:!!l.icon,disabled:l.disabled}));return(o,i)=>{const r=c.resolveComponent("AVIcon"),f=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",KQ,[e.inputLabel?(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVTextInput--label","data-test":"input-label"},[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(e.inputLabel)+" ",1),e.tooltipText?c.withDirectives((c.openBlock(),c.createBlock(r,{key:0,icon:"circle-question",class:"AVTextInput--tooltip-icon"},null,512)),[[f,e.tooltipText]]):c.createCommentVNode("",!0)])],8,XQ)):c.createCommentVNode("",!0),c.createElementVNode("div",eY,[c.createElementVNode("div",cY,[e.icon?(c.openBlock(),c.createBlock(r,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVTextInput--input-icon","data-test":"input-icon"},null,8,["icon"])):c.createCommentVNode("",!0)]),c.createElementVNode("input",{id:e.id,placeholder:e.placeholder,disabled:e.disabled,type:"text",class:c.normalizeClass(n.value),ref:"textInput",value:e.modelValue,onInput:s,"data-1p-ignore":""},null,42,tY),e.error?(c.openBlock(),c.createElementBlock("div",lY,[c.createVNode(r,{icon:"fa-solid fa-circle-exclamation",class:"AVTextInput--error-icon","data-test":"input-error-icon"})])):c.createCommentVNode("",!0)]),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",aY,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),Wq=D(nY,[["__scopeId","data-v-6c6cbec3"]]),sY={class:"AVNumberInput--input-set"},oY=["for"],iY={class:"AVNumberInput--icon-container"},rY=["value","id","disabled","name","min","max","step"],fY={key:0,class:"AVNumberInput--icon-container"},mY={key:1,class:"AVNumberInput--error","data-test":"error-msg"},uY=c.defineComponent({__name:"AVNumberInput",props:{id:{type:String,required:!0},min:{type:Number,default:null},max:{type:Number,default:null},step:{type:Number,default:1},icon:{type:String,default:null},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:null},inputLabel:{type:String,default:null},disableControllers:{type:Boolean,default:!1},modelValue:{type:Number,default:0},tooltipText:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const l=e,a=t,s=c.ref(null),n=d=>{a("update:modelValue",parseInt(d.target.value))},o=d=>{d.target.value===""&&a("update:modelValue",0)},i=()=>{s.value.classList.remove("hidden"),s.value.classList.add("AVNumberInput--shown")},r=()=>{l.error||(s.value.classList.remove("AVNumberInput--shown"),s.value.classList.add("hidden"))},f=()=>{const d=l.modelValue+l.step;(l.max===null||d<=l.max)&&a("update:modelValue",d)},u=()=>{const d=l.modelValue-l.step;(l.min===null||d>=l.min)&&a("update:modelValue",d)};return(d,m)=>{const p=c.resolveComponent("AVIcon"),h=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",sY,[e.inputLabel?(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVNumberInput--label","data-test":"input-label"},[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(e.inputLabel)+" ",1),e.tooltipText?c.withDirectives((c.openBlock(),c.createBlock(p,{key:0,icon:"circle-question",class:"AVNumberInput--tooltip-icon"},null,512)),[[h,e.tooltipText]]):c.createCommentVNode("",!0)])],8,oY)):c.createCommentVNode("",!0),c.createElementVNode("div",{class:"AVNumberInput--input-field",onMouseenter:i,onMouseleave:r},[c.createElementVNode("div",iY,[e.icon?(c.openBlock(),c.createBlock(p,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVNumberInput--input-icon","data-test":"input-icon"},null,8,["icon"])):c.createCommentVNode("",!0)]),c.createElementVNode("input",{value:e.modelValue,onInput:n,onBlur:o,type:"number",class:c.normalizeClass(["AVNumberInput",{error:e.error,"no-icon":!e.icon,disabled:e.disabled}]),style:c.normalizeStyle(`margin-right: -${e.error?"3.75":"1.4"}rem`),id:e.id,disabled:e.disabled,ref:"numberInput",name:e.id,min:e.min,max:e.max,step:e.step},null,46,rY),c.createElementVNode("div",{class:c.normalizeClass(["AVNumberInput--controllers-container",{hidden:!e.error,error:e.error,disabled:e.disabled||e.disableControllers}]),ref_key:"inputControllers",ref:s,"data-test":"input-controllers"},[c.createElementVNode("button",{onClick:f,class:"AVNumberInput--button","data-test":"input-controller-plus"},[c.createVNode(p,{icon:"fa-solid fa-circle-plus",class:"AVNumberInput--controller-icon"})]),c.createElementVNode("button",{onClick:u,class:"AVNumberInput--button","data-test":"input-controller-minus"},[c.createVNode(p,{icon:"fa-solid fa-circle-minus",class:"AVNumberInput--controller-icon"})])],2),e.error?(c.openBlock(),c.createElementBlock("div",fY,[c.createVNode(p,{icon:"fa-solid fa-circle-exclamation",class:"AVNumberInput--error-icon","data-test":"input-error-icon"})])):c.createCommentVNode("",!0)],32),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",mY,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),Jq=D(uY,[["__scopeId","data-v-c69bbc44"]]),dY={class:"AVPasswordInput--input-set"},pY=["for"],zY={class:"AVPasswordInput--input-field"},hY={class:"AVPasswordInput--icon-container"},LY=["value","type","id","disabled","placeholder","name"],gY={class:"AVPasswordInput--icon-container"},CY={key:1,class:"AVPasswordInput--error","data-test":"error-msg"},MY=c.defineComponent({__name:"AVPasswordInput",props:{id:{type:String,required:!0},modelValue:{type:String,default:""},placeholder:{type:String,default:"placeholder"},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:null},inputLabel:{type:String,default:null},disableIcon:{type:Boolean,default:!1},tooltipText:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const l=t,a=c.ref(!1),s=()=>{a.value=!a.value},n=o=>{l("update:modelValue",o.target.value)};return(o,i)=>{const r=c.resolveComponent("AVIcon"),f=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",dY,[e.inputLabel?(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVPasswordInput--label","data-test":"input-label"},[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(e.inputLabel)+" ",1),e.tooltipText?c.withDirectives((c.openBlock(),c.createBlock(r,{key:0,icon:"circle-question",class:"AVPasswordInput--tooltip-icon"},null,512)),[[f,e.tooltipText]]):c.createCommentVNode("",!0)])],8,pY)):c.createCommentVNode("",!0),c.createElementVNode("div",zY,[c.createElementVNode("div",hY,[e.disableIcon?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(r,{key:0,icon:"fa-solid fa-key",class:"AVPasswordInput--input-icon","data-test":"input-icon"}))]),c.createElementVNode("input",{value:e.modelValue,onInput:n,type:`${a.value?"text":"password"}`,class:c.normalizeClass(["AVPasswordInput",{error:e.error,"no-icon":e.disableIcon,disabled:e.disabled}]),id:e.id,disabled:e.disabled,placeholder:e.placeholder,ref:"textInput",name:e.id},null,42,LY),c.createElementVNode("div",gY,[c.createElementVNode("button",{onClick:s},[c.createVNode(r,{icon:`fa-solid fa-${a.value?"eye-slash":"eye"}`,class:"AVPasswordInput--input-icon","data-test":"show-pass-icon"},null,8,["icon"])])])]),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",CY,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),Gq=D(MY,[["__scopeId","data-v-b1c76306"]]),vY={class:"AVDatetimeInput--input-set"},bY=["for"],AY={class:"AVDatetimeInput--input-field"},_Y={class:"AVDatetimeInput--icon-container"},NY=["value","id","disabled","name","min","max"],kY={key:1,class:"AVDatetimeInput--error","data-test":"error-msg"},xY=c.defineComponent({__name:"AVDatetimeInput",props:{id:{type:String,required:!0},modelValue:{type:String,default:null},min:{type:String,default:null},max:{type:String,default:null},icon:{type:String,default:null},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:null},inputLabel:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const l=t,a=s=>{l("update:modelValue",s.target.value)};return(s,n)=>{const o=c.resolveComponent("AVIcon"),i=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",vY,[e.inputLabel?(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVDatetimeInput--label","data-test":"input-label"},[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(e.inputLabel)+" ",1),e.tooltipText?c.withDirectives((c.openBlock(),c.createBlock(o,{key:0,icon:"circle-question",class:"AVDatetimeInput--tooltip-icon"},null,512)),[[i,e.tooltipText]]):c.createCommentVNode("",!0)])],8,bY)):c.createCommentVNode("",!0),c.createElementVNode("div",AY,[c.createElementVNode("div",_Y,[e.icon?(c.openBlock(),c.createBlock(o,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVDatetimeInput--input-icon","data-test":"input-icon"},null,8,["icon"])):c.createCommentVNode("",!0)]),c.createElementVNode("input",{value:e.modelValue,onInput:a,type:"datetime-local",class:c.normalizeClass(["AVDatetimeInput",{error:e.error,"no-icon":!e.icon,disabled:e.disabled}]),style:c.normalizeStyle(`margin-right: -${e.error?"3.75":"1.4"}rem`),id:e.id,disabled:e.disabled,ref:"datetimeInput",name:e.id,min:e.min,max:e.max},null,46,NY)]),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",kY,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),Zq=D(xY,[["__scopeId","data-v-d438432a"]]),yY={class:"AVTextArea--input-set"},VY=["for"],SY={class:"AVTextArea--input-field"},wY=["value","id","disabled","placeholder","name","rows"],EY={key:0,class:"AVTextArea--icon-container"},BY={key:1,class:"AVTextArea--error","data-test":"error-msg"},TY=c.defineComponent({__name:"AVTextArea",props:{id:{type:String,required:!0},modelValue:{type:String,default:""},placeholder:{type:String,default:"placeholder"},icon:{type:String,default:null},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:null},inputLabel:{type:String,default:null},rows:{type:Number,default:4},tooltipText:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const l=t,a=s=>{l("update:modelValue",s.target.value)};return(s,n)=>{const o=c.resolveComponent("AVIcon"),i=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",yY,[e.inputLabel?(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVTextArea--label","data-test":"input-label"},[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(e.inputLabel)+" ",1),e.tooltipText?c.withDirectives((c.openBlock(),c.createBlock(o,{key:0,icon:"circle-question",class:"AVTextArea--tooltip-icon"},null,512)),[[i,e.tooltipText]]):c.createCommentVNode("",!0)])],8,VY)):c.createCommentVNode("",!0),c.createElementVNode("div",SY,[c.createElementVNode("div",{class:"AVTextArea--icon-container",style:c.normalizeStyle(`height: ${1.5625*e.rows+1}rem;`)},[e.icon?(c.openBlock(),c.createBlock(o,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVTextArea--input-icon","data-test":"input-icon"},null,8,["icon"])):c.createCommentVNode("",!0)],4),c.createElementVNode("textarea",{value:e.modelValue,onInput:a,class:c.normalizeClass(["AVTextArea",{error:e.error,"no-icon":!e.icon,disabled:e.disabled}]),id:e.id,disabled:e.disabled,placeholder:e.placeholder,ref:"textArea",name:e.id,rows:e.rows},null,42,wY),e.error?(c.openBlock(),c.createElementBlock("div",EY,[c.createVNode(o,{icon:"fa-solid fa-circle-exclamation",class:"AVTextArea--error-icon","data-test":"input-error-icon"})])):c.createCommentVNode("",!0)]),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",BY,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),Qq=D(TY,[["__scopeId","data-v-c9875ea2"]]),HY=c.defineComponent({__name:"AVLabel",props:{value:{type:String,required:!0},type:{type:String,default:"default",validate:e=>["default","info","success","danger","warning"].indexOf(e)>=0}},setup(e){const l=`
578
578
  AVLabel
579
579
  AVLabel--${e.type}
580
- `;return(a,s)=>(c.openBlock(),c.createElementBlock("span",{class:c.normalizeClass(l)},c.toDisplayString(e.value),1))}}),Yq=D(HY,[["__scopeId","data-v-ee7ab830"]]),IY=c.defineComponent({__name:"AVCard",props:{variant:{type:String,default:"default",validate:e=>["rounded","default","jumbotron","jumbotron-electa","rounded-electa"].includes(e)}},setup(e){return(t,l)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(`AVCard--${e.variant}`)},[c.renderSlot(t.$slots,"default",{},void 0,!0)],2))}}),Kq=D(IY,[["__scopeId","data-v-79187531"]]),DY=c.defineComponent({__name:"AVRoundButton",props:{icon:{type:String,default:"bolt",required:!0}},emits:["onClick"],setup(e,{emit:t}){const l=t,a=()=>{l("onClick")};return(s,n)=>{const o=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("button",{type:"button",class:"AVRoundButton","data-test":"round-btn",onClick:a},[c.createVNode(o,{icon:`fa-solid fa-${e.icon}`,class:"icon-left","data-test":"btn-icon"},null,8,["icon"])])}}}),Xq=D(DY,[["__scopeId","data-v-6caf6a51"]]),OY={class:"AVDropdown--input-set"},PY=["for"],RY=["id","disabled","aria-expanded","aria-label"],FY={key:0,class:"AVDropdown--icon-container"},$Y={key:1,class:"AVDropdown--placeholder"},qY=["textContent"],jY={class:"AVDropdown--icon-container"},UY={key:1,class:"AVDropdown--error","data-test":"error-msg"},WY=c.defineComponent({__name:"AVDropdown",props:{id:{type:String,required:!0},modelValue:{type:String,default:""},options:{type:Array,required:!0},placeholder:{type:String,default:"placeholder"},icon:{type:String,default:null},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:null},inputLabel:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const l=e,a=t,s=c.reactive({active:!1,customWidth:null,id:null}),n=c.computed(()=>l.options.map(f=>typeof f=="string"?{label:f,value:f}:f)),o=c.computed(()=>n.value.find(f=>f.value===l.modelValue));c.onMounted(()=>{s.id=l.id});const i=f=>{a("update:modelValue",f)};c.provide("sharedState",s);const r=()=>{l.disabled||(s.active=!s.active)};return(f,u)=>{const d=c.resolveComponent("AVIcon"),m=c.resolveComponent("AVDropdownItem"),p=c.resolveComponent("AVDropdownContent"),h=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",OY,[e.inputLabel?(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVDropdown--label","data-test":"input-label"},[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(e.inputLabel)+" ",1),e.tooltipText?c.withDirectives((c.openBlock(),c.createBlock(d,{key:0,icon:"circle-question",class:"AVDropdown--tooltip-icon"},null,512)),[[h,e.tooltipText]]):c.createCommentVNode("",!0)])],8,PY)):c.createCommentVNode("",!0),c.createElementVNode("div",{onClick:r,class:"AVDropdown"},[c.createElementVNode("button",{id:e.id,class:c.normalizeClass(["AVDropdown--button",{error:e.error,"no-icon":!e.icon,disabled:e.disabled}]),disabled:e.disabled,"aria-haspopup":"true","aria-expanded":s.active||null,"data-toggle":"dropdown",type:"button","aria-label":e.inputLabel},[e.icon?(c.openBlock(),c.createElementBlock("span",FY,[c.createVNode(d,{icon:`fa-solid fa-${e.icon}`,class:"AVDropdown--input-icon","data-test":"input-icon"},null,8,["icon"])])):c.createCommentVNode("",!0),o.value===void 0?(c.openBlock(),c.createElementBlock("span",$Y,c.toDisplayString(e.placeholder),1)):(c.openBlock(),c.createElementBlock("span",{key:2,class:"AVDropdown--selected-option",textContent:c.toDisplayString(o.value.label)},null,8,qY)),c.createElementVNode("span",jY,[c.createVNode(d,{icon:`fa-solid fa-${s.active?"caret-down":"caret-right"}`,class:"AVDropdown--selector-icon","data-test":"selector-icon"},null,8,["icon"])])],10,RY),c.createVNode(p,null,{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.value,M=>(c.openBlock(),c.createBlock(m,{key:M,optionLabel:M.label,onOnSelected:v=>i(M.value),"data-test":"option"},null,8,["optionLabel","onOnSelected"]))),128))]),_:1})]),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",UY,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),ej=D(WY,[["__scopeId","data-v-09756cc6"]]),JY=["aria-labelledby"],GY=c.defineComponent({__name:"AVDropdownContent",setup(e){const t=c.inject("sharedState"),l=c.computed(()=>t.active),a=c.computed(()=>t.id);return(s,n)=>(c.openBlock(),c.createBlock(c.Transition,{name:"dropdown-content"},{default:c.withCtx(()=>[l.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:"AVDropdownContent","aria-labelledby":a.value},[c.renderSlot(s.$slots,"default",{},void 0,!0)],8,JY)):c.createCommentVNode("",!0)]),_:3}))}}),cj=D(GY,[["__scopeId","data-v-e2058f66"]]),ZY=c.defineComponent({__name:"AVDropdownItem",props:{optionLabel:{type:String,required:!0}},emits:["onSelected"],setup(e,{emit:t}){const l=t,a=()=>{l("onSelected")};return(s,n)=>(c.openBlock(),c.createElementBlock("a",{class:"AVDropdownItem",onClick:a},c.toDisplayString(e.optionLabel),1))}}),tj=D(ZY,[["__scopeId","data-v-2ca0bff3"]]),QY={key:0,class:"AVAlert--header","data-test":"alert-header"},YY={class:"AVAlert--title-container"},KY={key:0,class:"AVAlert--icon-container"},XY={class:"AVAlert--title"},eK=c.defineComponent({__name:"AVAlert",props:{type:{type:String,validate:e=>["info","success","danger","warning"].includes(e),default:"info"},title:{type:String,default:""},icon:{type:String,default:""},disableIcon:{type:Boolean,default:!1},disableHeader:{type:Boolean,default:!1},disableDismiss:{type:Boolean,default:!1},customWidth:{type:Number,default:null},timeout:{type:String,default:null}},emits:["dismiss"],setup(e,{emit:t}){const l=e,a=t,s=()=>{a("dismiss")};c.onMounted(()=>{l.timeout&&setTimeout(()=>{s()},Number.parseInt(l.timeout))});const n={info:"Information",success:"Success",danger:"Danger",warning:"Warning"},o={info:"circle-info",success:"circle-check",danger:"circle-xmark",warning:"circle-exclamation"};return(i,r)=>{const f=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(`AVAlert AVAlert--${e.type}`),style:c.normalizeStyle(e.customWidth&&`width: ${e.customWidth}px`),"data-test":"alert"},[e.disableHeader?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",QY,[c.createElementVNode("div",YY,[e.disableIcon?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",KY,[c.createVNode(f,{icon:`fa-solid fa-${e.icon!==""?e.icon:o[e.type]}`,"data-test":"alert-icon"},null,8,["icon"])])),c.createElementVNode("span",XY,c.toDisplayString(e.title!==""?e.title:n[e.type]),1)]),e.disableDismiss?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("button",{key:0,class:"AVAlert--icon-container",onClick:s},[c.createVNode(f,{icon:"fa-solid fa-xmark",class:"AVAlert--icon-dismiss","data-test":"alert-icon-dismiss"})]))])),c.renderSlot(i.$slots,"default",{},void 0,!0)],6)}}}),lj=D(eK,[["__scopeId","data-v-0cc3f6d1"]]),cK={class:"AVFileInput--input-set"},tK=["for"],lK=["for"],aK=["multiple","name","id","accept","disabled"],nK={class:"AVFileInput--icon-container"},sK={class:"AVFileInput--dragdroptext"},oK={key:0},iK={class:"AVFileInput--dragdroptext-primary"},rK={key:1},fK={class:"AVFileInput--dragdroptext-primary"},mK={class:"AVFileInput--dragdroptext-secondary"},uK={key:1,class:"AVFileInput--accepted"},dK={class:"AVFileInput--accepted-muted"},pK={key:2,class:"AVFileInput--preview-container"},zK={class:"AVFileInput--label mt-3"},hK={class:"AVFileInput--header"},LK={class:"AVTextInput--preview"},gK=["src"],CK={class:"AVFileInput--preview-text"},MK=["onClick"],vK={key:3,class:"AVFileInput--preview-container"},bK={class:"AVFileInput--label mt-3"},AK=["src","alt"],_K={key:1,class:"AVFileInput--preview-card"},NK={class:"AVFileInput--header"},kK={class:"AVTextInput--preview"},xK={class:"AVFileInput--preview-text"},yK=["onClick"],VK={key:4,class:"AVFileInput--error","data-test":"error-msg"},SK=c.defineComponent({__name:"AVFileInput",props:{id:{type:String,required:!0},value:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},inputLabel:{type:String,default:"Input label"},disableLabel:{type:Boolean,default:!1},accept:{type:String,required:!0},error:{type:Boolean,default:!1},errorMessage:{type:String,default:null},showPreview:{type:Boolean,default:!1},tooltipText:{type:String,default:null},locale:{type:String,default:null},disableAcceptedFormats:{type:Boolean,default:!1},currentValue:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},customOpenMethod:{type:Array,default:null}},emits:["update","fileFormatNotAccepted","download"],setup(e,{emit:t}){const l=c.inject("i18n"),{t:a}=l.global,s=e,n=c.ref(!1),o=c.ref(null),i=c.ref([]);c.onMounted(()=>{if(s.locale&&U(s.locale),s.value&&(i.value=s.value),s.customOpenMethod!==null){const[_,V]=s.customOpenMethod;o.value.onclick=async x=>{x.preventDefault();const N=await _({multiple:!1,directory:!1,filters:[{name:"Trustee key",extensions:["trustee-key"]}]});if(N!==null){const E=N.split("/").pop(),R=JSON.stringify(await V("read_local_file_content",{filePath:N})),S=new Blob([R],{type:"plain/text"}),$=new File([S],E);i.value.push($),r("update",i.value)}}}}),c.watch(()=>s.locale,()=>{s.locale&&U(s.locale)},{deep:!0});const r=t,f=()=>{i.value=[...o.value.files],r("update",i.value)},u=_=>{_.preventDefault(),!s.disabled&&(n.value=!0)},d=()=>{n.value=!1},m=_=>{const V=Array.from(_),x=new DataTransfer;for(let N of V){const E=N.name.split(".").pop();if(M.value.includes(`.${E.toLowerCase()}`)){const S=new File([N],N.name,{type:N.type,lastModified:N.lastModified});x.items.add(S)}else r("fileFormatNotAccepted",N.name)}return x.files},p=c.computed(()=>s.accept.split(",")),h=c.computed(()=>s.accept.split(",").join(", ")),M=c.computed(()=>p.value.map(_=>_.toLocaleLowerCase())),v=_=>{const V=Math.round(_/1024),x=Math.round(V/1024),N=Math.round(x/1024);switch(!0){case!!N:return`${N}Gb`;case!!x:return`${x}Mb`;case!!V:return`${V}Kb`;default:return`${_}b`}},b=_=>_.split("/").pop(),C=_=>{if(_.preventDefault(),!s.disabled){if(o.value.files=m(Array.from(_.dataTransfer.files)),!o.value.files.length){n.value=!1;return}i.value=s.multiple?[...o.value.files]:[o.value.files[0]],r("update",i.value),n.value=!1}},g=_=>{i.value.splice(_,1),r("update",i.value)},A=_=>{const V=URL.createObjectURL(_);return setTimeout(()=>{URL.revokeObjectURL(V)},1e3),V},k=_=>{r("download",_)};return(_,V)=>{const x=c.resolveComponent("AVIcon"),N=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",cK,[e.disableLabel?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVFileInput--label","data-test":"input-label"},[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(e.inputLabel)+" ",1),e.tooltipText?c.withDirectives((c.openBlock(),c.createBlock(x,{key:0,icon:"circle-question",class:"AVFileInput--tooltip-icon"},null,512)),[[N,e.tooltipText]]):c.createCommentVNode("",!0)])],8,tK)),c.createElementVNode("label",{for:e.id,class:c.normalizeClass(["AVFileInput--dropzone-container",{error:e.error,disabled:e.disabled}]),onDragover:u,onDragleave:d,onDrop:C},[c.createElementVNode("input",{type:"file",multiple:e.multiple,name:e.id,id:e.id,class:"AVFileInput-hidden-input",onChange:f,ref_key:"fileInput",ref:o,accept:e.accept,disabled:e.disabled},null,40,aK),c.createElementVNode("div",nK,[c.createVNode(x,{icon:"fa-solid fa-cloud-arrow-up",class:"AVFileInput--input-icon","data-test":"input-icon"})]),c.createElementVNode("div",sK,[n.value?(c.openBlock(),c.createElementBlock("div",oK,[c.createElementVNode("div",iK,c.toDisplayString(c.unref(a)("js.components.AVFileInput.release")),1)])):(c.openBlock(),c.createElementBlock("div",rK,[c.createElementVNode("div",fK,c.toDisplayString(c.unref(a)("js.components.AVFileInput.primary")),1),c.createElementVNode("div",mK,[c.createTextVNode(c.toDisplayString(c.unref(a)("js.components.AVFileInput.secondary.start"))+" ",1),c.createElementVNode("strong",null,c.toDisplayString(c.unref(a)("js.components.AVFileInput.secondary.strong")),1),c.createTextVNode(" "+c.toDisplayString(c.unref(a)("js.components.AVFileInput.secondary.end")),1)])]))])],42,lK),e.disableAcceptedFormats?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("p",uK,[c.createTextVNode(c.toDisplayString(c.unref(a)("js.components.AVFileInput.acceptedFormats"))+" ",1),c.createElementVNode("em",dK,c.toDisplayString(h.value),1)])),i.value.length?(c.openBlock(),c.createElementBlock("div",pK,[c.createElementVNode("p",zK,c.toDisplayString(c.unref(a)("js.components.AVFileInput.uploading")),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.value,E=>(c.openBlock(),c.createElementBlock("div",{key:E.name,class:c.normalizeClass(["AVFileInput--preview-card",{error:e.error}])},[c.createElementVNode("div",hK,[c.createElementVNode("div",LK,[e.showPreview?(c.openBlock(),c.createElementBlock("img",{key:0,class:"AVFileInput--preview-img",src:A(E)},null,8,gK)):(c.openBlock(),c.createBlock(x,{key:1,icon:"fa-solid fa-file",class:"AVTextInput--preview-icon","data-test":"file-preview-icon"}))]),c.createElementVNode("p",CK,[c.createTextVNode(c.toDisplayString(E.name)+" ",1),c.createElementVNode("em",null,c.toDisplayString(v(E.size)),1)])]),e.disabled?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("button",{key:0,class:"AVTextInput--delete-btn",type:"button",onClick:R=>g(i.value.indexOf(E)),title:"Remove file"},[c.createVNode(x,{icon:"fa-solid fa-trash",class:"AVTextInput--delete-icon","data-test":"file-preview-icon"})],8,MK))],2))),128))])):c.createCommentVNode("",!0),e.currentValue.length?(c.openBlock(),c.createElementBlock("div",vK,[c.createElementVNode("p",bK,c.toDisplayString(c.unref(a)("js.components.AVFileInput.current")),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.currentValue,E=>(c.openBlock(),c.createElementBlock("div",{key:`image-${E}`},[e.showPreview?(c.openBlock(),c.createElementBlock("img",{key:0,class:"AVFileInput--current-img",src:E,alt:c.unref(a)("js.components.AVFileInput.alt_preview")},null,8,AK)):(c.openBlock(),c.createElementBlock("div",_K,[c.createElementVNode("div",NK,[c.createElementVNode("div",kK,[c.createVNode(x,{icon:"fa-solid fa-file",class:"AVTextInput--preview-icon","data-test":"file-preview-icon"})]),c.createElementVNode("p",xK,c.toDisplayString(b(E)),1)]),c.createElementVNode("button",{class:"AVTextInput--delete-btn",type:"button",title:"Download file",onClick:R=>k(E)},[c.createVNode(x,{icon:"fa-solid fa-download",class:"AVTextInput--download-icon","data-test":"file-download-icon"})],8,yK)]))]))),128))])):c.createCommentVNode("",!0),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",VK,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),aj=D(SK,[["__scopeId","data-v-d0e51bd2"]]),wK=["for"],EK=["id","checked","disabled"],BK=c.defineComponent({__name:"AVRadio",props:{id:{type:String,required:!0},disabled:{type:Boolean,default:!1},value:{type:String,required:!0},checked:{type:Boolean,default:!1}},emits:["update"],setup(e,{emit:t}){const l=e,a=t,s=c.ref(!1);c.onMounted(()=>{l.checked&&(s.value=l.checked)});const n=()=>{s.value=!s.value,o()},o=()=>{a("update",l.value,s.value)};return c.watch(()=>l.checked,()=>{s.value=l.checked}),(i,r)=>(c.openBlock(),c.createElementBlock("label",{for:e.id,class:c.normalizeClass(["AVRadio",{disabled:e.disabled}])},[c.createElementVNode("input",{type:"radio",id:e.id,checked:s.value,onChange:n,disabled:e.disabled},null,40,EK),r[0]||(r[0]=c.createElementVNode("span",{class:"AVRadio--mark"},null,-1)),c.createTextVNode(" "+c.toDisplayString(e.value),1)],10,wK))}}),nj=D(BK,[["__scopeId","data-v-065c2914"]]),TK=["href","referrerpolicy","rel","target"],HK=c.defineComponent({__name:"AVLink",props:{label:{type:String,default:"Link"},disableIcon:{type:Boolean,default:!1},href:{type:String,required:!0},referrerpolicy:{type:String,validate:e=>["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin-when-cross-origin","unsafe-url"].includes(e),default:"no-referrer"},rel:{type:String,validate:e=>["alternate","author","bookmark","external","help","license","next","nofollow","noreferrer","noopener","prev","search","tag"].includes(e),default:"external"},target:{type:String,validate:e=>["_blank","_parent","_self","_top"].includes(e),default:"_blank"},variant:{type:String,validate:e=>["default","dbas"].includes(e),default:"default"}},setup(e){return(t,l)=>{const a=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("a",{href:e.href,referrerpolicy:e.referrerpolicy,rel:e.rel,target:e.target,class:c.normalizeClass(`AVLink AVLink--${e.variant}`)},[c.createElementVNode("span",null,c.toDisplayString(e.label),1),e.disableIcon?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(a,{key:0,icon:"fa-solid fa-arrow-up-right-from-square",class:"AVLink--icon","data-test":"link-icon"}))],10,TK)}}}),sj=D(HK,[["__scopeId","data-v-999075bc"]]),IK=["href","target"],DK={class:"AVNavbarItem--text"},OK=["disabled"],PK={class:"AVNavbarItem--text"},RK=c.defineComponent({__name:"AVNavbarItem",props:{label:{type:String,default:"Item"},reference:{type:String,default:null},icon:{type:String,default:"bolt"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},href:{type:String,default:null},disableIcon:{type:Boolean,default:!1},customWidth:{type:Number,default:180},target:{type:String,validate:e=>["_blank"].includes(e),default:"_self"}},emits:["onClick"],setup(e,{emit:t}){const l=e,a=t,s=c.computed(()=>l.href?"link":"button"),n=c.computed(()=>l.disabled?null:l.href),o=()=>{a("onClick",l.reference)};return(i,r)=>{const f=c.resolveComponent("AVIcon");return s.value==="link"?(c.openBlock(),c.createElementBlock("a",{key:0,href:n.value,class:c.normalizeClass(["AVNavbarItem",{"AVNavbarItem--active":e.active,disabled:e.disabled}]),target:e.target,style:c.normalizeStyle(`width: ${e.customWidth}px`)},[e.disableIcon?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(f,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVNavbarItem--icon"},null,8,["icon"])),c.createElementVNode("span",DK,c.toDisplayString(e.label),1)],14,IK)):(c.openBlock(),c.createElementBlock("button",{key:1,class:c.normalizeClass(["AVNavbarItem",{"AVNavbarItem--active":e.active,disabled:e.disabled}]),style:c.normalizeStyle(`width: ${e.customWidth}px`),disabled:e.disabled,onClick:o},[e.disableIcon?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(f,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVNavbarItem--icon"},null,8,["icon"])),c.createElementVNode("span",PK,c.toDisplayString(e.label),1)],14,OK))}}}),oj=D(RK,[["__scopeId","data-v-00ff3c9d"]]),FK=["href","target","aria-label"],$K={class:"AVSidebarItem--text","aria-hidden":"true"},qK=["disabled","aria-label"],jK={class:"AVSidebarItem--text","aria-hidden":"true"},UK=c.defineComponent({__name:"AVSidebarItem",props:{label:{type:String,default:"Item"},type:{type:String,validate:e=>["step","item"].includes(e),default:"item"},stepIndex:{type:String,validate:e=>e.length===1,default:"1"},reference:{type:String,default:null},icon:{type:String,default:"bolt"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},href:{type:String,default:null},target:{type:String,validate:e=>["_blank"].includes(e),default:"_self"}},emits:["onClick"],setup(e,{emit:t}){const l=e,a=t,s=c.ref(!1),n=c.computed(()=>l.href?"link":"button"),o=c.computed(()=>l.disabled?null:l.href),i=c.computed(()=>l.type==="step"?"number":"icon"),r=c.computed(()=>l.type==="step"?l.stepIndex:l.icon),f=()=>{l.disabled||(s.value=!s.value)},u=()=>{a("onClick",l.reference)};return(d,m)=>n.value==="link"?(c.openBlock(),c.createElementBlock("a",{key:0,href:o.value,class:c.normalizeClass(["AVSidebarItem",{"AVSidebarItem--active":e.active,disabled:e.disabled}]),target:e.target,onMouseenter:f,onMouseleave:f,"aria-label":e.label,role:"button"},[c.createVNode(c.unref(o4),{type:i.value,active:e.active,value:r.value,hover:s.value,"aria-hidden":"true"},null,8,["type","active","value","hover"]),c.createElementVNode("span",$K,c.toDisplayString(e.label),1)],42,FK)):(c.openBlock(),c.createElementBlock("button",{key:1,class:c.normalizeClass(["AVSidebarItem",{"AVSidebarItem--active":e.active,disabled:e.disabled}]),disabled:e.disabled,onClick:u,onMouseenter:f,onMouseleave:f,"aria-label":e.label},[c.createVNode(c.unref(o4),{type:i.value,active:e.active,value:r.value,hover:s.value,"aria-hidden":"true"},null,8,["type","active","value","hover"]),c.createElementVNode("span",jK,c.toDisplayString(e.label),1)],42,qK))}}),ij=D(UK,[["__scopeId","data-v-3e891e66"]]),WK={class:"AVTooltip--wrapper"},JK={key:0,class:"AVTooltip--text"},GK=c.defineComponent({__name:"AVTooltip",props:{text:{type:String,default:()=>null},content:{type:String,required:!0},position:{type:String,validate:e=>["auto","auto-start","auto-end","top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].includes(e),default:"auto"},icon:{type:String,default:()=>null},disabled:{type:Boolean,default:()=>!1},options:{type:Object,default:()=>{}}},setup(e){return(t,l)=>{const a=c.resolveComponent("AVIcon"),s=c.resolveDirective("tooltip");return c.withDirectives((c.openBlock(),c.createElementBlock("span",WK,[e.text?(c.openBlock(),c.createElementBlock("span",JK,c.toDisplayString(e.text),1)):c.renderSlot(t.$slots,"text",{key:1},void 0,!0),e.icon?(c.openBlock(),c.createBlock(a,{key:2,icon:e.icon,class:"AVTooltip--icon","aria-hidden":"true"},null,8,["icon"])):c.createCommentVNode("",!0)])),[[s,{content:e.content,placement:e.position,disabled:e.disabled,...e.options}]])}}}),rj=D(GK,[["__scopeId","data-v-3d675f68"]]),ZK={class:"AVMenuDropdown"},QK=["id","aria-expanded","aria-label"],YK=c.defineComponent({__name:"AVMenuDropdown",props:{icon:{type:String,default:"bolt"},options:{type:Array,required:!0},ariaLabel:{type:String,required:!0},id:{type:String,required:!0}},setup(e){const t=e,l=c.reactive({active:!1,id:null});c.onMounted(()=>{l.id=t.id});const a=()=>{l.active=!l.active};return c.provide("sharedState",l),(s,n)=>{const o=c.resolveComponent("AVIcon"),i=c.resolveComponent("AVMenuDropdownItem"),r=c.resolveComponent("AVMenuDropdownContent");return c.openBlock(),c.createElementBlock("div",ZK,[c.createElementVNode("button",{class:"AVMenuDropdown--button",onClick:a,id:e.id,"aria-haspopup":"true","aria-expanded":l.active||"false","data-toggle":"dropdown",type:"button","aria-label":e.ariaLabel},[l.active?(c.openBlock(),c.createBlock(o,{key:1,icon:"fa-solid fa-xmark",class:"AVMenuDropdown--icon","data-test":"main-icon"})):(c.openBlock(),c.createBlock(o,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVMenuDropdown--icon","data-test":"main-icon"},null,8,["icon"]))],8,QK),c.createVNode(r,null,{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.options,(f,u)=>(c.openBlock(),c.createBlock(i,{key:u,optionLabel:f.label,href:f.href,destructive:f.destructive,icon:f.icon,"data-test":"option"},null,8,["optionLabel","href","destructive","icon"]))),128))]),_:1})])}}}),fj=D(YK,[["__scopeId","data-v-6c23aaa1"]]),KK=["aria-labelledby"],XK=c.defineComponent({__name:"AVMenuDropdownContent",setup(e){const t=c.inject("sharedState"),l=c.computed(()=>t.active),a=c.computed(()=>t.id);return(s,n)=>(c.openBlock(),c.createBlock(c.Transition,{name:"dropdown-content"},{default:c.withCtx(()=>[l.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:"AVMenuDropdownContent","aria-labelledby":a.value},[c.renderSlot(s.$slots,"default",{},void 0,!0)],8,KK)):c.createCommentVNode("",!0)]),_:3}))}}),mj=D(XK,[["__scopeId","data-v-e8fb623b"]]),eX=["href"],cX=c.defineComponent({__name:"AVMenuDropdownItem",props:{optionLabel:{type:String,required:!0},href:{type:String,required:!0},destructive:{type:Boolean,default:!1},icon:{type:String,default:null}},setup(e){return(t,l)=>{const a=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("a",{class:c.normalizeClass(["AVMenuDropdownItem",{"AVMenuDropdownItem--destructive":e.destructive}]),href:e.href},[e.icon?(c.openBlock(),c.createBlock(a,{key:0,class:"AVMenuDropdownItem--icon",icon:`fa-solid fa-${e.icon}`,"data-test":"option-icon"},null,8,["icon"])):c.createCommentVNode("",!0),c.createTextVNode(" "+c.toDisplayString(e.optionLabel),1)],10,eX)}}}),uj=D(cX,[["__scopeId","data-v-8513fa9b"]]),tX=["disabled"],lX={class:"AVAsyncButton--label"},aX=c.defineComponent({__name:"AVAsyncButton",props:{label:{type:String,default:""},size:{type:String,validate:e=>["small","regular","large"].includes(e),default:"regular"},variant:{type:String,validate:e=>["default","success","error"].includes(e),default:"default"},defaultIcon:{type:String,default:null},successIcon:{type:String,default:null},errorIcon:{type:String,default:null},disabled:{type:Boolean,default:!1},onClick:{type:Function,default:()=>new Promise(e=>setTimeout(e,500))}},emits:["update:waiting"],setup(e,{emit:t}){const l=t,a=e,s=c.ref(!1);c.watch(s,r=>l("update:waiting",r));const n=c.computed(()=>{if(!s.value)switch(a.variant){case"default":return a.defaultIcon;case"error":return a.errorIcon;case"success":return a.successIcon;default:return null}}),o=c.computed(()=>a.disabled||s.value);async function i(r){s.value=!0;try{await Promise.resolve(a.onClick(r))}finally{s.value=!1}}return(r,f)=>{const u=c.resolveComponent("AVIcon"),d=c.resolveComponent("AVSpinner");return c.openBlock(),c.createElementBlock("button",{disabled:o.value,onClick:i,class:c.normalizeClass(["AVAsyncButton",{[`AVAsyncButton--${e.variant}`]:e.variant,[`AVAsyncButton--${e.size}`]:e.size,"AVAsyncButton--waiting":s.value,"AVAsyncButton--disabled":!s.value&&o.value}])},[s.value?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.renderSlot(r.$slots,"waitingIcon",{},()=>[c.createVNode(d,{style:{color:"inherit",height:"1em",width:"1em"},class:"AVAsyncButton--icon","data-test":"btn-spinner"})],!0),c.renderSlot(r.$slots,"waitingLabel",{},()=>[f[0]||(f[0]=c.createTextVNode("Working..."))],!0)],64)):c.renderSlot(r.$slots,"default",{key:0},()=>[n.value?(c.openBlock(),c.createBlock(u,{key:0,icon:n.value,class:"AVAsyncButton--icon","data-test":"btn-icon"},null,8,["icon"])):c.createCommentVNode("",!0),c.createElementVNode("span",lX,c.toDisplayString(e.label),1)],!0)],10,tX)}}}),dj=D(aX,[["__scopeId","data-v-7439a7ec"]]),nX={class:"AVTabSwitcher"},sX=["disabled","onClick"],oX=c.defineComponent({__name:"AVTabSwitcher",props:{options:{type:Array,required:!0,validate:e=>e.length>2&&e.length<3},selected:{type:String,default:null},disabled:{type:Array,default:null,validate:e=>e.length>1&&e.length<2}},emits:["update"],setup(e,{emit:t}){const l=e,a=c.ref([]),s=c.ref(""),n=c.computed(()=>l.options.length===2?"AVTabSwitcher--double":"AVTabSwitcher--triple");c.onMounted(()=>o());const o=()=>{a.value=[],l.options.map(m=>a.value.push({value:m,selected:!1})),l.selected?i(l.selected):a.value[0].selected=!0,l.disabled&&r()},i=m=>{a.value.map(p=>{p.value===m?(p.selected=!0,s.value=p.value):p.selected=!1})},r=()=>{if(a.value.map(m=>m.disabled=!1),l.disabled)a.value.map(m=>{l.disabled.map(p=>p===m.value?m.disabled=!0:m)});else return},f=t,u=m=>{i(m),d()},d=()=>{f("update",s.value,a.value)};return c.watch(()=>l.options,()=>o()),c.watch(()=>l.selected,()=>{s.value=l.selected,i(l.selected)}),c.watch(()=>l.disabled,()=>r()),(m,p)=>(c.openBlock(),c.createElementBlock("div",nX,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,h=>(c.openBlock(),c.createElementBlock("button",{key:h.value,class:c.normalizeClass(`AVTabSwitcher--button ${n.value} ${h.selected?"AVTabSwitcher--button-active":""} ${h.disabled?"disabled":""}`),disabled:h.disabled,onClick:M=>u(h.value)},c.toDisplayString(h.value),11,sX))),128))]))}}),pj=D(oX,[["__scopeId","data-v-3c4a2127"]]),iX={class:"AVBallotSummary"},rX={class:"AVBallotSummary--name-column"},fX={class:"AVBallotSummary--status-column"},mX=c.defineComponent({__name:"AVBallotSummary",props:{ballotStyleName:{type:String,required:!0},readyLabel:{type:String,required:!0},waitingLabel:{type:String,required:!0},currentBallots:{type:Number,required:!0},minimumBallots:{type:Number,required:!0}},setup(e){const t=e,l=c.computed(()=>t.currentBallots>=t.minimumBallots),a=c.computed(()=>t.minimumBallots-t.currentBallots);return(s,n)=>{const o=c.resolveComponent("AVIcon"),i=c.resolveComponent("AVSpinner");return c.openBlock(),c.createElementBlock("div",iX,[c.createElementVNode("div",rX,[c.createVNode(o,{icon:`fa-solid fa-${l.value?"file-circle-check":"file-circle-minus"}`,class:c.normalizeClass(["AVBallotSummary--icon",{"AVBallotSummary--icon-ready":l.value}]),"data-test":"ballot-icon"},null,8,["icon","class"]),c.createElementVNode("span",{class:c.normalizeClass(["AVBallotSummary--ballot-name",{"AVBallotSummary--name-ready":l.value}])},c.toDisplayString(e.ballotStyleName),3)]),c.createElementVNode("div",fX,[l.value?(c.openBlock(),c.createBlock(o,{key:0,icon:"fa-solid fa-circle-check",class:"AVBallotSummary--icon AVBallotSummary--icon-ready","data-test":"ballot-status-icon"})):(c.openBlock(),c.createBlock(i,{key:1,color:"neutral","data-test":"ballot-spinner"})),c.createElementVNode("span",{class:c.normalizeClass(["AVBallotSummary--ballot-status",{"AVBallotSummary--status-ready":l.value}])},c.toDisplayString(l.value?`${e.currentBallots} ${e.readyLabel}`:`${a.value} ${e.waitingLabel}`),3)])])}}}),zj=D(mX,[["__scopeId","data-v-2d7c011c"]]),uX={class:"AVTimedCard--content","data-test":"content"},dX={class:"AVTimedCard--progress","data-test":"progress-container"},pX=c.defineComponent({__name:"AVTimedCard",props:{timeout:{type:Number,required:!0},customWidth:{type:Number,default:600},expirationMessage:{type:String,default:"The passkey will expire in "},customWarningTime:{type:Number,default:15}},emits:["expired"],setup(e,{emit:t}){const l=e;c.onMounted(()=>{s()});const a=c.ref(0),s=()=>{const d=setInterval(()=>{a.value=a.value+1,a.value>=l.timeout&&(clearInterval(d),n("expired",!0,l.timeout))},1e3)},n=t,o=c.computed(()=>100-a.value/l.timeout*100),i=c.computed(()=>Math.floor((l.timeout-a.value)/60)),r=c.computed(()=>(l.timeout-a.value)%60),f=c.computed(()=>i.value%60),u=c.computed(()=>r.value<10?`${f.value}:0${r.value}`:`${f.value}:${r.value}`);return(d,m)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createElementVNode("div",{class:"AVTimedCard",style:c.normalizeStyle(`width: ${e.customWidth}px`)},[c.createElementVNode("div",uX,[c.renderSlot(d.$slots,"default",{},void 0,!0)]),c.createElementVNode("div",dX,[c.createElementVNode("div",{class:c.normalizeClass(["AVTimedCard--progress-bar",{"AVTimedCard--progress-bar-warning":e.timeout-a.value<=e.customWarningTime}]),style:c.normalizeStyle(`width: ${o.value}%`),"data-test":"progress-bar"},null,6)])],4),c.createElementVNode("span",{class:c.normalizeClass(["AVTimedCard--help-text",{"AVTimedCard--help-text-warning":e.timeout-a.value<=e.customWarningTime}]),"data-test":"help-text"},[c.createTextVNode(c.toDisplayString(e.expirationMessage),1),c.createElementVNode("strong",null,c.toDisplayString(u.value),1)],2)],64))}}),hj=D(pX,[["__scopeId","data-v-7d0d595b"]]),zX={class:"AVBasicSteps"},hX={key:0,class:"AVBasicSteps--line","data-test":"separator"},LX=c.defineComponent({__name:"AVBasicSteps",props:{steps:{type:Array,required:!0,validate:e=>e.length>2&&e.length<3},active:{type:String,required:!0}},setup(e){const t=e,l=a=>a===t.active;return(a,s)=>(c.openBlock(),c.createElementBlock("div",zX,[c.createElementVNode("span",{class:c.normalizeClass(["AVBasicSteps--step",{"AVBasicSteps--step-active":l(e.steps[0])}]),"data-test":"step"},c.toDisplayString(e.steps[0]),3),s[0]||(s[0]=c.createElementVNode("span",{class:"AVBasicSteps--line","data-test":"separator"},null,-1)),c.createElementVNode("span",{class:c.normalizeClass(["AVBasicSteps--step",{"AVBasicSteps--step-active":l(e.steps[1])}]),"data-test":"step"},c.toDisplayString(e.steps[1]),3),e.steps.length===3?(c.openBlock(),c.createElementBlock("span",hX)):c.createCommentVNode("",!0),e.steps.length===3?(c.openBlock(),c.createElementBlock("span",{key:1,class:c.normalizeClass(["AVBasicSteps--step",{"AVBasicSteps--step-active":l(e.steps[2])}]),"data-test":"step"},c.toDisplayString(e.steps[2]),3)):c.createCommentVNode("",!0)]))}}),Lj=D(LX,[["__scopeId","data-v-dbd25d5c"]]),gX={class:"AVSteps"},CX={key:0,class:"AVSteps--step--icon-container AVSteps--step-circle"},MX=c.defineComponent({__name:"AVSteps",props:{steps:{type:Array,required:!0},active:{type:String,default:null},done:{type:Array,default:null}},setup(e){c.useCssVars(o=>({"3e5060db":n.value}));const t=e,l=c.ref([]),a=()=>{l.value=[],t.steps.map(o=>{l.value.push({value:o,active:o===t.active,done:s(o)})})},s=o=>t.done?t.done.includes(o):!1;c.onMounted(()=>{a()}),c.watch(()=>t.steps,()=>a()),c.watch(()=>t.active,()=>a()),c.watch(()=>t.done,()=>a());const n=c.computed(()=>`${100/t.steps.length}%`);return(o,i)=>{const r=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("div",gX,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(l.value,(f,u)=>(c.openBlock(),c.createElementBlock("div",{key:u,class:c.normalizeClass(`${l.value.length!==u+1?"AVSteps--step":"AVSteps--step-last"} ${f.active?"AVSteps--step-active":""}`),"data-test":"step"},[f.done?(c.openBlock(),c.createElementBlock("div",CX,[c.createVNode(r,{icon:"fa-solid fa-check",class:"AVSteps--step-icon"})])):(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(["AVSteps--step--number-container",{"AVSteps--step-circle":l.value.length!==u+1,"AVSteps--step--number-container-active":f.active}])},c.toDisplayString(u+1),3)),c.createElementVNode("span",{class:c.normalizeClass(["AVSteps--step-label",{"AVSteps--step-label-active":f.active}])},c.toDisplayString(f.value),3)],2))),128))])}}}),gj=D(MX,[["__scopeId","data-v-89e22cbe"]]),vX=["aria-label"],bX={key:0,"aria-hidden":"true","data-test":"rank"},AX={key:1,width:"26",height:"26",stroke:"white","stroke-width":"0.25rem","data-test":"check"},_X=c.defineComponent({__name:"AVOptionSelect",props:{checked:{type:Boolean,default:!1},rank:{type:[Number,null],default:null},locale:{type:String,default:null}},setup(e){const t=e,l=c.computed(()=>t.rank?document.getElementsByTagName("html")[0].dir==="rtl"?`${t.rank} ${a.global.messages.value?a.global.messages.value[s.value].js.components.AVOptionSelect.aria_label:a.global.messages[s.value].js.components.AVOptionSelect.aria_label}`:`${a.global.messages.value?a.global.messages.value[s.value].js.components.AVOptionSelect.aria_label:a.global.messages[s.value].js.components.AVOptionSelect.aria_label} ${t.rank}`:""),a=c.inject("i18n"),s=c.computed(()=>a.global.locale.value||a.global.locale);return c.onMounted(()=>{t.locale&&U(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&U(t.locale)},{deep:!0}),(n,o)=>c.withDirectives((c.openBlock(),c.createElementBlock("div",{class:"AVOptionSelect","aria-label":l.value,"data-test":"option-select"},[e.rank?(c.openBlock(),c.createElementBlock("span",bX,c.toDisplayString(e.rank),1)):(c.openBlock(),c.createElementBlock("svg",AX,o[0]||(o[0]=[c.createElementVNode("line",{x1:"25%",y1:"25%",x2:"75%",y2:"75%"},null,-1),c.createElementVNode("line",{x1:"75%",y1:"25%",x2:"25%",y2:"75%"},null,-1)])))],8,vX)),[[c.vShow,e.checked]])}}),Cj=D(_X,[["__scopeId","data-v-a31774ee"]]),NX={class:"AVOptionCheckbox--container"},kX={key:0,class:"AVOptionCheckbox--exclusive-container","data-test":"exclusive-error"},xX={class:"AVOptionCheckbox--exclusive"},yX=["aria-checked","tabindex","aria-disabled","disabled","onKeydown"],VX=c.defineComponent({__name:"AVOptionCheckbox",props:{checked:{type:Boolean,required:!0},optionReference:{type:String,default:""},checkBoxIndex:{type:Number,default:1},rank:{type:[Number,null],default:null},disabled:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},exclusiveError:{type:Boolean,default:!1},locale:{type:String,default:null}},emits:["toggled"],setup(e,{emit:t}){const l=c.inject("i18n"),{t:a}=l.global,s=e,n=t;c.onMounted(()=>{s.locale&&U(s.locale)}),c.watch(()=>s.locale,()=>{s.locale&&U(s.locale)},{deep:!0});const o=()=>n("toggled"),i=c.computed(()=>s.optionReference?{id:`option_${s.optionReference}_checkbox_${s.checkBoxIndex}`,role:"checkbox","aria-labelledby":`option_${s.optionReference}_title option_${s.optionReference}_tick option_${s.optionReference}_subtitle`,"aria-describedby":`option_${s.optionReference}_description option_${s.optionReference}_handle`,tabindex:0}:{});return(r,f)=>{const u=c.resolveComponent("AVOptionSelect");return c.openBlock(),c.createElementBlock("div",NX,[e.exclusiveError&&e.checked?(c.openBlock(),c.createElementBlock("div",kX,[c.createElementVNode("div",xX,c.toDisplayString(c.unref(a)("js.components.AVOptionCheckbox.exclusive_option")),1)])):c.createCommentVNode("",!0),c.createElementVNode("button",c.mergeProps({class:{AVOptionCheckbox:!0,"AVOptionCheckbox--checked":e.checked,"AVOptionCheckbox--disabled":e.disabled,"AVOptionCheckbox--error":(e.exclusiveError||e.invalid)&&e.checked},"aria-checked":e.checked?!0:null,tabindex:e.disabled?null:0,"aria-disabled":e.disabled||null,disabled:e.disabled},i.value,{onClick:c.withModifiers(o,["stop"]),onKeydown:c.withKeys(c.withModifiers(o,["prevent"]),["space","enter"]),"data-test":"option-checkbox"}),[e.checked?(c.openBlock(),c.createBlock(u,{key:0,id:`option_${e.optionReference}_tick`,rank:e.rank,checked:e.checked,"data-test":"select"},null,8,["id","rank","checked"])):c.createCommentVNode("",!0)],16,yX)])}}}),Mj=D(VX,[["__scopeId","data-v-96e67fd1"]]),SX=c.defineComponent({__name:"AVAnimatedTransition",props:{skipTransition:{type:Boolean,default:!1}},setup(e){const t=e,l=n=>{if(t.skipTransition)return;n.style.height="auto";const o=getComputedStyle(n).height;n.style.height="0",getComputedStyle(n).height,setTimeout(()=>{n.style.height=o})},a=n=>{n.style.height="auto"},s=n=>{if(t.skipTransition)return;const o=getComputedStyle(n).height;n.style.height=o,getComputedStyle(n).height,setTimeout(()=>{n.style.height="0"})};return(n,o)=>(c.openBlock(),c.createBlock(c.Transition,{name:"transition-fade",onEnter:l,onLeave:s,onAfterEnter:a},{default:c.withCtx(()=>[c.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3}))}}),vj=D(SX,[["__scopeId","data-v-42d3bef5"]]),wX=["aria-controls","aria-expanded"],EX=["id","aria-hidden"],BX=c.defineComponent({__name:"AVCollapser",props:{collapsable:{type:Boolean,default:!1},startCollapsed:{type:Boolean,default:!1},paneId:{type:String,default:"option_reference_children"}},emits:["accordionOpen"],setup(e,{emit:t}){const l=e,a=t,s=c.ref(!1),n=c.ref(!0),o=c.computed(()=>({collapsable:l.collapsable,startCollapsed:l.startCollapsed}));c.onMounted(()=>{const{collapsable:r,startCollapsed:f}=o.value;s.value=r&&!f});const i=(r=null,f=!0)=>{l.collapsable&&(n.value=f,r===null?s.value=!s.value:s.value=!!r,s.value&&a("accordionOpen"))};return(r,f)=>{const u=c.resolveComponent("AVAnimatedTransition");return e.collapsable?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("div",{role:"button","aria-controls":e.paneId,tabindex:"0","aria-expanded":s.value||null,class:"AVCollapser",onClick:f[0]||(f[0]=d=>i()),onKeypress:f[1]||(f[1]=c.withKeys(c.withModifiers(d=>i(),["prevent"]),["space","enter"])),"data-test":"collapser-button"},[c.renderSlot(r.$slots,"toggle",{isOpen:s.value,collapsable:e.collapsable},void 0,!0)],40,wX),c.renderSlot(r.$slots,"results",{},void 0,!0),c.createVNode(u,{"skip-transition":!n.value},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{id:e.paneId,"aria-hidden":!s.value||null},[c.renderSlot(r.$slots,"pane",{isOpen:s.value,toggleCollapse:i},void 0,!0)],8,EX),[[c.vShow,s.value]])]),_:3},8,["skip-transition"])],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.renderSlot(r.$slots,"toggle",{isOpen:!0,collapsable:!1},void 0,!0),c.renderSlot(r.$slots,"results",{},void 0,!0),c.renderSlot(r.$slots,"pane",{isOpen:!0,toggleCollapse:i},void 0,!0)],64))}}}),bj=D(BX,[["__scopeId","data-v-ff92781e"]]),TX={"data-test":"name"},HX=c.defineComponent({__name:"AVLinkVisualizer",props:{link:{type:Object,required:!0},large:{type:Boolean,default:!1}},setup(e){const t=e,l={github:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?github\.com\//gm),instagram:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?instagram\.com\//gm),linkedin:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?linkedin\.com\/(in|profile|pub)\//gm),twitter:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?(twitter\.|x\.)com\//gm),envelope:new RegExp(/mailto:([^]*)/gm),facebook:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?facebook.com\//gm),vimeo:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?vimeo\.com\//gm),youtube:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?((?:youtube(-nocookie)?\.com|youtu.be))\//gm),tiktok:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?tiktok\.com\//gm)},a=c.computed(()=>{let n="link";return Object.keys(l).map(o=>{l[o].test(t.link.attributes.url)&&(n=o)}),n}),s=n=>window.open(n,"_blank").focus();return(n,o)=>{const i=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("button",{class:c.normalizeClass(["AVLinkVisualizer AVLinkVisualizer--themed-btn",{"AVLinkVisualizer--large":e.large}]),"data-test":"button",onClick:o[0]||(o[0]=r=>s(e.link.attributes.url))},[c.createVNode(i,{icon:a.value,class:"AVLinkVisualizer--icon","data-test":"icon"},null,8,["icon"]),c.createElementVNode("span",TX,c.toDisplayString(e.link.attributes.name),1)],2)}}}),Aj=D(HX,[["__scopeId","data-v-29792015"]]),IX={class:"AVVerticalStep"},DX=["data-index"],OX={key:0,class:"AVVerticalStep--in-progress"},PX={key:0,class:"AVVerticalStep--bullet-wrapper"},RX={key:1,class:"AVVerticalStep--transition-icon","data-test":"back-icon"},FX={class:"AVVerticalStep--bullet-wrapper"},$X={class:"AVVerticalStep--bullet-wrapper"},qX={key:2,class:"AVVerticalStep--bullet-wrapper"},jX={class:"AVVerticalStep--acronym"},UX={key:3,class:"AVVerticalStep--transition-icon","data-test":"acronym-text"},WX={class:"AVVerticalStep--bullet-wrapper"},JX={class:"AVVerticalStep--acronym"},GX={class:"AVVerticalStep--bullet-wrapper"},ZX={key:4,class:"AVVerticalStep--bullet-wrapper"},QX=c.defineComponent({__name:"AVVerticalStep",props:{stepNumber:{type:Number,validate:e=>e>=1&&e<=9},status:{type:String,validate:e=>["default","active","done"].includes(e),default:"default"},title:{type:String,required:!0},subtitle:{type:String,default:null},collapsed:{type:Boolean,default:!1},hasNextStep:{type:Boolean,default:!1},hasPrevStep:{type:Boolean,default:!1},linkMode:{type:Boolean,default:!1},summary:{type:Boolean,default:!1},inProgress:{type:Boolean,default:!1}},setup(e){const t=e,l=c.computed(()=>{const u=t.title.split(" ");return u.length<2?`${u[0][0].toUpperCase()}${u[0][1].toUpperCase()}`:`${u[0][0].toUpperCase()}${u[1][0].toUpperCase()}`}),a=c.ref(null),s=c.ref(0),n=c.computed(()=>Math.ceil((s.value-32)/2)),o=c.computed(()=>t.hasPrevStep?`
580
+ `;return(a,s)=>(c.openBlock(),c.createElementBlock("span",{class:c.normalizeClass(l)},c.toDisplayString(e.value),1))}}),Yq=D(HY,[["__scopeId","data-v-ee7ab830"]]),IY=c.defineComponent({__name:"AVCard",props:{variant:{type:String,default:"default",validate:e=>["rounded","default","jumbotron","jumbotron-electa","rounded-electa"].includes(e)}},setup(e){return(t,l)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(`AVCard--${e.variant}`)},[c.renderSlot(t.$slots,"default",{},void 0,!0)],2))}}),Kq=D(IY,[["__scopeId","data-v-79187531"]]),DY=c.defineComponent({__name:"AVRoundButton",props:{icon:{type:String,default:"bolt",required:!0}},emits:["onClick"],setup(e,{emit:t}){const l=t,a=()=>{l("onClick")};return(s,n)=>{const o=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("button",{type:"button",class:"AVRoundButton","data-test":"round-btn",onClick:a},[c.createVNode(o,{icon:`fa-solid fa-${e.icon}`,class:"icon-left","data-test":"btn-icon"},null,8,["icon"])])}}}),Xq=D(DY,[["__scopeId","data-v-6caf6a51"]]),OY={class:"AVDropdown--input-set"},PY=["for"],RY=["id","disabled","aria-expanded","aria-label"],FY={key:0,class:"AVDropdown--icon-container"},$Y={key:1,class:"AVDropdown--placeholder"},qY=["textContent"],jY={class:"AVDropdown--icon-container"},UY={key:1,class:"AVDropdown--error","data-test":"error-msg"},WY=c.defineComponent({__name:"AVDropdown",props:{id:{type:String,required:!0},modelValue:{type:String,default:""},options:{type:Array,required:!0},placeholder:{type:String,default:"placeholder"},icon:{type:String,default:null},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},errorMessage:{type:String,default:null},inputLabel:{type:String,default:null},tooltipText:{type:String,default:null}},emits:["update:modelValue"],setup(e,{emit:t}){const l=e,a=t,s=c.reactive({active:!1,customWidth:null,id:null}),n=c.computed(()=>l.options.map(f=>typeof f=="string"?{label:f,value:f}:f)),o=c.computed(()=>n.value.find(f=>f.value===l.modelValue));c.onMounted(()=>{s.id=l.id});const i=f=>{a("update:modelValue",f)};c.provide("sharedState",s);const r=()=>{l.disabled||(s.active=!s.active)};return(f,u)=>{const d=c.resolveComponent("AVIcon"),m=c.resolveComponent("AVDropdownItem"),p=c.resolveComponent("AVDropdownContent"),h=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",OY,[e.inputLabel?(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVDropdown--label","data-test":"input-label"},[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(e.inputLabel)+" ",1),e.tooltipText?c.withDirectives((c.openBlock(),c.createBlock(d,{key:0,icon:"circle-question",class:"AVDropdown--tooltip-icon"},null,512)),[[h,e.tooltipText]]):c.createCommentVNode("",!0)])],8,PY)):c.createCommentVNode("",!0),c.createElementVNode("div",{onClick:r,class:"AVDropdown"},[c.createElementVNode("button",{id:e.id,class:c.normalizeClass(["AVDropdown--button",{error:e.error,"no-icon":!e.icon,disabled:e.disabled}]),disabled:e.disabled,"aria-haspopup":"true","aria-expanded":s.active||null,"data-toggle":"dropdown",type:"button","aria-label":e.inputLabel},[e.icon?(c.openBlock(),c.createElementBlock("span",FY,[c.createVNode(d,{icon:`fa-solid fa-${e.icon}`,class:"AVDropdown--input-icon","data-test":"input-icon"},null,8,["icon"])])):c.createCommentVNode("",!0),o.value===void 0?(c.openBlock(),c.createElementBlock("span",$Y,c.toDisplayString(e.placeholder),1)):(c.openBlock(),c.createElementBlock("span",{key:2,class:"AVDropdown--selected-option",textContent:c.toDisplayString(o.value.label)},null,8,qY)),c.createElementVNode("span",jY,[c.createVNode(d,{icon:`fa-solid fa-${s.active?"caret-down":"caret-right"}`,class:"AVDropdown--selector-icon","data-test":"selector-icon"},null,8,["icon"])])],10,RY),c.createVNode(p,null,{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.value,M=>(c.openBlock(),c.createBlock(m,{key:M,optionLabel:M.label,onOnSelected:v=>i(M.value),"data-test":"option"},null,8,["optionLabel","onOnSelected"]))),128))]),_:1})]),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",UY,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),ej=D(WY,[["__scopeId","data-v-09756cc6"]]),JY=["aria-labelledby"],GY=c.defineComponent({__name:"AVDropdownContent",setup(e){const t=c.inject("sharedState"),l=c.computed(()=>t.active),a=c.computed(()=>t.id);return(s,n)=>(c.openBlock(),c.createBlock(c.Transition,{name:"dropdown-content"},{default:c.withCtx(()=>[l.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:"AVDropdownContent","aria-labelledby":a.value},[c.renderSlot(s.$slots,"default",{},void 0,!0)],8,JY)):c.createCommentVNode("",!0)]),_:3}))}}),cj=D(GY,[["__scopeId","data-v-e2058f66"]]),ZY=c.defineComponent({__name:"AVDropdownItem",props:{optionLabel:{type:String,required:!0}},emits:["onSelected"],setup(e,{emit:t}){const l=t,a=()=>{l("onSelected")};return(s,n)=>(c.openBlock(),c.createElementBlock("a",{class:"AVDropdownItem",onClick:a},c.toDisplayString(e.optionLabel),1))}}),tj=D(ZY,[["__scopeId","data-v-2ca0bff3"]]),QY={key:0,class:"AVAlert--header","data-test":"alert-header"},YY={class:"AVAlert--title-container"},KY={key:0,class:"AVAlert--icon-container"},XY={class:"AVAlert--title"},eK=c.defineComponent({__name:"AVAlert",props:{type:{type:String,validate:e=>["info","success","danger","warning"].includes(e),default:"info"},title:{type:String,default:""},icon:{type:String,default:""},disableIcon:{type:Boolean,default:!1},disableHeader:{type:Boolean,default:!1},disableDismiss:{type:Boolean,default:!1},customWidth:{type:Number,default:null},timeout:{type:String,default:null}},emits:["dismiss"],setup(e,{emit:t}){const l=e,a=t,s=()=>{a("dismiss")};c.onMounted(()=>{l.timeout&&setTimeout(()=>{s()},Number.parseInt(l.timeout))});const n={info:"Information",success:"Success",danger:"Danger",warning:"Warning"},o={info:"circle-info",success:"circle-check",danger:"circle-xmark",warning:"circle-exclamation"};return(i,r)=>{const f=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(`AVAlert AVAlert--${e.type}`),style:c.normalizeStyle(e.customWidth&&`width: ${e.customWidth}px`),"data-test":"alert"},[e.disableHeader?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",QY,[c.createElementVNode("div",YY,[e.disableIcon?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",KY,[c.createVNode(f,{icon:`fa-solid fa-${e.icon!==""?e.icon:o[e.type]}`,"data-test":"alert-icon"},null,8,["icon"])])),c.createElementVNode("span",XY,c.toDisplayString(e.title!==""?e.title:n[e.type]),1)]),e.disableDismiss?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("button",{key:0,class:"AVAlert--icon-container",onClick:s},[c.createVNode(f,{icon:"fa-solid fa-xmark",class:"AVAlert--icon-dismiss","data-test":"alert-icon-dismiss"})]))])),c.renderSlot(i.$slots,"default",{},void 0,!0)],6)}}}),lj=D(eK,[["__scopeId","data-v-0cc3f6d1"]]),cK={class:"AVFileInput--input-set"},tK=["for"],lK=["for"],aK=["multiple","name","id","accept","disabled"],nK={class:"AVFileInput--icon-container"},sK={class:"AVFileInput--dragdroptext"},oK={key:0},iK={class:"AVFileInput--dragdroptext-primary"},rK={key:1},fK={class:"AVFileInput--dragdroptext-primary"},mK={class:"AVFileInput--dragdroptext-secondary"},uK={key:1,class:"AVFileInput--accepted"},dK={class:"AVFileInput--accepted-muted"},pK={key:2,class:"AVFileInput--preview-container"},zK={class:"AVFileInput--label mt-3"},hK={class:"AVFileInput--header"},LK={class:"AVTextInput--preview"},gK=["src"],CK={class:"AVFileInput--preview-text"},MK=["onClick"],vK={key:3,class:"AVFileInput--preview-container"},bK={class:"AVFileInput--label mt-3"},AK=["src","alt"],_K={key:1,class:"AVFileInput--preview-card"},NK={class:"AVFileInput--header"},kK={class:"AVTextInput--preview"},xK={class:"AVFileInput--preview-text"},yK=["onClick"],VK={key:4,class:"AVFileInput--error","data-test":"error-msg"},SK=c.defineComponent({__name:"AVFileInput",props:{id:{type:String,required:!0},value:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},inputLabel:{type:String,default:"Input label"},disableLabel:{type:Boolean,default:!1},accept:{type:String,required:!0},error:{type:Boolean,default:!1},errorMessage:{type:String,default:null},showPreview:{type:Boolean,default:!1},tooltipText:{type:String,default:null},locale:{type:String,default:null},disableAcceptedFormats:{type:Boolean,default:!1},currentValue:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},customOpenMethod:{type:Array,default:null}},emits:["update","fileFormatNotAccepted","download"],setup(e,{emit:t}){const l=c.inject("i18n"),{t:a}=l.global,s=e,n=c.ref(!1),o=c.ref(null),i=c.ref([]);c.onMounted(()=>{if(s.locale&&U(s.locale),s.value&&(i.value=s.value),s.customOpenMethod!==null){const[_,V]=s.customOpenMethod;o.value.onclick=async x=>{x.preventDefault();const N=await _({multiple:!1,directory:!1,filters:[{name:"Trustee key",extensions:["trustee-key"]}]});if(N!==null){const E=N.split("/").pop(),R=JSON.stringify(await V("read_local_file_content",{filePath:N})),S=new Blob([R],{type:"plain/text"}),$=new File([S],E);i.value.push($),r("update",i.value)}}}}),c.watch(()=>s.locale,()=>{s.locale&&U(s.locale)},{deep:!0});const r=t,f=()=>{i.value=[...o.value.files],r("update",i.value)},u=_=>{_.preventDefault(),!s.disabled&&(n.value=!0)},d=()=>{n.value=!1},m=_=>{const V=Array.from(_),x=new DataTransfer;for(const N of V){const E=N.name.split(".").pop();if(M.value.includes(`.${E.toLowerCase()}`)){const S=new File([N],N.name,{type:N.type,lastModified:N.lastModified});x.items.add(S)}else r("fileFormatNotAccepted",N.name)}return x.files},p=c.computed(()=>s.accept.split(",")),h=c.computed(()=>s.accept.split(",").join(", ")),M=c.computed(()=>p.value.map(_=>_.toLocaleLowerCase())),v=_=>{const V=Math.round(_/1024),x=Math.round(V/1024),N=Math.round(x/1024);switch(!0){case!!N:return`${N}Gb`;case!!x:return`${x}Mb`;case!!V:return`${V}Kb`;default:return`${_}b`}},b=_=>_.split("/").pop(),C=_=>{if(_.preventDefault(),!s.disabled){if(o.value.files=m(Array.from(_.dataTransfer.files)),!o.value.files.length){n.value=!1;return}i.value=s.multiple?[...o.value.files]:[o.value.files[0]],r("update",i.value),n.value=!1}},g=_=>{i.value.splice(_,1),r("update",i.value)},A=_=>{const V=URL.createObjectURL(_);return setTimeout(()=>{URL.revokeObjectURL(V)},1e3),V},k=_=>{r("download",_)};return(_,V)=>{const x=c.resolveComponent("AVIcon"),N=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",cK,[e.disableLabel?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("label",{key:0,for:e.id,class:"AVFileInput--label","data-test":"input-label"},[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(e.inputLabel)+" ",1),e.tooltipText?c.withDirectives((c.openBlock(),c.createBlock(x,{key:0,icon:"circle-question",class:"AVFileInput--tooltip-icon"},null,512)),[[N,e.tooltipText]]):c.createCommentVNode("",!0)])],8,tK)),c.createElementVNode("label",{for:e.id,class:c.normalizeClass(["AVFileInput--dropzone-container",{error:e.error,disabled:e.disabled}]),onDragover:u,onDragleave:d,onDrop:C},[c.createElementVNode("input",{type:"file",multiple:e.multiple,name:e.id,id:e.id,class:"AVFileInput-hidden-input",onChange:f,ref_key:"fileInput",ref:o,accept:e.accept,disabled:e.disabled},null,40,aK),c.createElementVNode("div",nK,[c.createVNode(x,{icon:"fa-solid fa-cloud-arrow-up",class:"AVFileInput--input-icon","data-test":"input-icon"})]),c.createElementVNode("div",sK,[n.value?(c.openBlock(),c.createElementBlock("div",oK,[c.createElementVNode("div",iK,c.toDisplayString(c.unref(a)("js.components.AVFileInput.release")),1)])):(c.openBlock(),c.createElementBlock("div",rK,[c.createElementVNode("div",fK,c.toDisplayString(c.unref(a)("js.components.AVFileInput.primary")),1),c.createElementVNode("div",mK,[c.createTextVNode(c.toDisplayString(c.unref(a)("js.components.AVFileInput.secondary.start"))+" ",1),c.createElementVNode("strong",null,c.toDisplayString(c.unref(a)("js.components.AVFileInput.secondary.strong")),1),c.createTextVNode(" "+c.toDisplayString(c.unref(a)("js.components.AVFileInput.secondary.end")),1)])]))])],42,lK),e.disableAcceptedFormats?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("p",uK,[c.createTextVNode(c.toDisplayString(c.unref(a)("js.components.AVFileInput.acceptedFormats"))+" ",1),c.createElementVNode("em",dK,c.toDisplayString(h.value),1)])),i.value.length?(c.openBlock(),c.createElementBlock("div",pK,[c.createElementVNode("p",zK,c.toDisplayString(c.unref(a)("js.components.AVFileInput.uploading")),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.value,E=>(c.openBlock(),c.createElementBlock("div",{key:E.name,class:c.normalizeClass(["AVFileInput--preview-card",{error:e.error}])},[c.createElementVNode("div",hK,[c.createElementVNode("div",LK,[e.showPreview?(c.openBlock(),c.createElementBlock("img",{key:0,class:"AVFileInput--preview-img",src:A(E)},null,8,gK)):(c.openBlock(),c.createBlock(x,{key:1,icon:"fa-solid fa-file",class:"AVTextInput--preview-icon","data-test":"file-preview-icon"}))]),c.createElementVNode("p",CK,[c.createTextVNode(c.toDisplayString(E.name)+" ",1),c.createElementVNode("em",null,c.toDisplayString(v(E.size)),1)])]),e.disabled?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("button",{key:0,class:"AVTextInput--delete-btn",type:"button",onClick:R=>g(i.value.indexOf(E)),title:"Remove file"},[c.createVNode(x,{icon:"fa-solid fa-trash",class:"AVTextInput--delete-icon","data-test":"file-preview-icon"})],8,MK))],2))),128))])):c.createCommentVNode("",!0),e.currentValue.length?(c.openBlock(),c.createElementBlock("div",vK,[c.createElementVNode("p",bK,c.toDisplayString(c.unref(a)("js.components.AVFileInput.current")),1),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.currentValue,E=>(c.openBlock(),c.createElementBlock("div",{key:`image-${E}`},[e.showPreview?(c.openBlock(),c.createElementBlock("img",{key:0,class:"AVFileInput--current-img",src:E,alt:c.unref(a)("js.components.AVFileInput.alt_preview")},null,8,AK)):(c.openBlock(),c.createElementBlock("div",_K,[c.createElementVNode("div",NK,[c.createElementVNode("div",kK,[c.createVNode(x,{icon:"fa-solid fa-file",class:"AVTextInput--preview-icon","data-test":"file-preview-icon"})]),c.createElementVNode("p",xK,c.toDisplayString(b(E)),1)]),c.createElementVNode("button",{class:"AVTextInput--delete-btn",type:"button",title:"Download file",onClick:R=>k(E)},[c.createVNode(x,{icon:"fa-solid fa-download",class:"AVTextInput--download-icon","data-test":"file-download-icon"})],8,yK)]))]))),128))])):c.createCommentVNode("",!0),e.error&&e.errorMessage?(c.openBlock(),c.createElementBlock("p",VK,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),aj=D(SK,[["__scopeId","data-v-5160eb52"]]),wK=["for"],EK=["id","checked","disabled"],BK=c.defineComponent({__name:"AVRadio",props:{id:{type:String,required:!0},disabled:{type:Boolean,default:!1},value:{type:String,required:!0},checked:{type:Boolean,default:!1}},emits:["update"],setup(e,{emit:t}){const l=e,a=t,s=c.ref(!1);c.onMounted(()=>{l.checked&&(s.value=l.checked)});const n=()=>{s.value=!s.value,o()},o=()=>{a("update",l.value,s.value)};return c.watch(()=>l.checked,()=>{s.value=l.checked}),(i,r)=>(c.openBlock(),c.createElementBlock("label",{for:e.id,class:c.normalizeClass(["AVRadio",{disabled:e.disabled}])},[c.createElementVNode("input",{type:"radio",id:e.id,checked:s.value,onChange:n,disabled:e.disabled},null,40,EK),r[0]||(r[0]=c.createElementVNode("span",{class:"AVRadio--mark"},null,-1)),c.createTextVNode(" "+c.toDisplayString(e.value),1)],10,wK))}}),nj=D(BK,[["__scopeId","data-v-065c2914"]]),TK=["href","referrerpolicy","rel","target"],HK=c.defineComponent({__name:"AVLink",props:{label:{type:String,default:"Link"},disableIcon:{type:Boolean,default:!1},href:{type:String,required:!0},referrerpolicy:{type:String,validate:e=>["no-referrer","no-referrer-when-downgrade","origin","origin-when-cross-origin","same-origin","strict-origin-when-cross-origin","unsafe-url"].includes(e),default:"no-referrer"},rel:{type:String,validate:e=>["alternate","author","bookmark","external","help","license","next","nofollow","noreferrer","noopener","prev","search","tag"].includes(e),default:"external"},target:{type:String,validate:e=>["_blank","_parent","_self","_top"].includes(e),default:"_blank"},variant:{type:String,validate:e=>["default","dbas"].includes(e),default:"default"}},setup(e){return(t,l)=>{const a=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("a",{href:e.href,referrerpolicy:e.referrerpolicy,rel:e.rel,target:e.target,class:c.normalizeClass(`AVLink AVLink--${e.variant}`)},[c.createElementVNode("span",null,c.toDisplayString(e.label),1),e.disableIcon?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(a,{key:0,icon:"fa-solid fa-arrow-up-right-from-square",class:"AVLink--icon","data-test":"link-icon"}))],10,TK)}}}),sj=D(HK,[["__scopeId","data-v-999075bc"]]),IK=["href","target"],DK={class:"AVNavbarItem--text"},OK=["disabled"],PK={class:"AVNavbarItem--text"},RK=c.defineComponent({__name:"AVNavbarItem",props:{label:{type:String,default:"Item"},reference:{type:String,default:null},icon:{type:String,default:"bolt"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},href:{type:String,default:null},disableIcon:{type:Boolean,default:!1},customWidth:{type:Number,default:180},target:{type:String,validate:e=>["_blank"].includes(e),default:"_self"}},emits:["onClick"],setup(e,{emit:t}){const l=e,a=t,s=c.computed(()=>l.href?"link":"button"),n=c.computed(()=>l.disabled?null:l.href),o=()=>{a("onClick",l.reference)};return(i,r)=>{const f=c.resolveComponent("AVIcon");return s.value==="link"?(c.openBlock(),c.createElementBlock("a",{key:0,href:n.value,class:c.normalizeClass(["AVNavbarItem",{"AVNavbarItem--active":e.active,disabled:e.disabled}]),target:e.target,style:c.normalizeStyle(`width: ${e.customWidth}px`)},[e.disableIcon?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(f,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVNavbarItem--icon"},null,8,["icon"])),c.createElementVNode("span",DK,c.toDisplayString(e.label),1)],14,IK)):(c.openBlock(),c.createElementBlock("button",{key:1,class:c.normalizeClass(["AVNavbarItem",{"AVNavbarItem--active":e.active,disabled:e.disabled}]),style:c.normalizeStyle(`width: ${e.customWidth}px`),disabled:e.disabled,onClick:o},[e.disableIcon?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(f,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVNavbarItem--icon"},null,8,["icon"])),c.createElementVNode("span",PK,c.toDisplayString(e.label),1)],14,OK))}}}),oj=D(RK,[["__scopeId","data-v-00ff3c9d"]]),FK=["href","target","aria-label"],$K={class:"AVSidebarItem--text","aria-hidden":"true"},qK=["disabled","aria-label"],jK={class:"AVSidebarItem--text","aria-hidden":"true"},UK=c.defineComponent({__name:"AVSidebarItem",props:{label:{type:String,default:"Item"},type:{type:String,validate:e=>["step","item"].includes(e),default:"item"},stepIndex:{type:String,validate:e=>e.length===1,default:"1"},reference:{type:String,default:null},icon:{type:String,default:"bolt"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},href:{type:String,default:null},target:{type:String,validate:e=>["_blank"].includes(e),default:"_self"}},emits:["onClick"],setup(e,{emit:t}){const l=e,a=t,s=c.ref(!1),n=c.computed(()=>l.href?"link":"button"),o=c.computed(()=>l.disabled?null:l.href),i=c.computed(()=>l.type==="step"?"number":"icon"),r=c.computed(()=>l.type==="step"?l.stepIndex:l.icon),f=()=>{l.disabled||(s.value=!s.value)},u=()=>{a("onClick",l.reference)};return(d,m)=>n.value==="link"?(c.openBlock(),c.createElementBlock("a",{key:0,href:o.value,class:c.normalizeClass(["AVSidebarItem",{"AVSidebarItem--active":e.active,disabled:e.disabled}]),target:e.target,onMouseenter:f,onMouseleave:f,"aria-label":e.label,role:"button"},[c.createVNode(c.unref(o4),{type:i.value,active:e.active,value:r.value,hover:s.value,"aria-hidden":"true"},null,8,["type","active","value","hover"]),c.createElementVNode("span",$K,c.toDisplayString(e.label),1)],42,FK)):(c.openBlock(),c.createElementBlock("button",{key:1,class:c.normalizeClass(["AVSidebarItem",{"AVSidebarItem--active":e.active,disabled:e.disabled}]),disabled:e.disabled,onClick:u,onMouseenter:f,onMouseleave:f,"aria-label":e.label},[c.createVNode(c.unref(o4),{type:i.value,active:e.active,value:r.value,hover:s.value,"aria-hidden":"true"},null,8,["type","active","value","hover"]),c.createElementVNode("span",jK,c.toDisplayString(e.label),1)],42,qK))}}),ij=D(UK,[["__scopeId","data-v-3e891e66"]]),WK={class:"AVTooltip--wrapper"},JK={key:0,class:"AVTooltip--text"},GK=c.defineComponent({__name:"AVTooltip",props:{text:{type:String,default:()=>null},content:{type:String,required:!0},position:{type:String,validate:e=>["auto","auto-start","auto-end","top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].includes(e),default:"auto"},icon:{type:String,default:()=>null},disabled:{type:Boolean,default:()=>!1},options:{type:Object,default:()=>{}}},setup(e){return(t,l)=>{const a=c.resolveComponent("AVIcon"),s=c.resolveDirective("tooltip");return c.withDirectives((c.openBlock(),c.createElementBlock("span",WK,[e.text?(c.openBlock(),c.createElementBlock("span",JK,c.toDisplayString(e.text),1)):c.renderSlot(t.$slots,"text",{key:1},void 0,!0),e.icon?(c.openBlock(),c.createBlock(a,{key:2,icon:e.icon,class:"AVTooltip--icon","aria-hidden":"true"},null,8,["icon"])):c.createCommentVNode("",!0)])),[[s,{content:e.content,placement:e.position,disabled:e.disabled,...e.options}]])}}}),rj=D(GK,[["__scopeId","data-v-3d675f68"]]),ZK={class:"AVMenuDropdown"},QK=["id","aria-expanded","aria-label"],YK=c.defineComponent({__name:"AVMenuDropdown",props:{icon:{type:String,default:"bolt"},options:{type:Array,required:!0},ariaLabel:{type:String,required:!0},id:{type:String,required:!0}},setup(e){const t=e,l=c.reactive({active:!1,id:null});c.onMounted(()=>{l.id=t.id});const a=()=>{l.active=!l.active};return c.provide("sharedState",l),(s,n)=>{const o=c.resolveComponent("AVIcon"),i=c.resolveComponent("AVMenuDropdownItem"),r=c.resolveComponent("AVMenuDropdownContent");return c.openBlock(),c.createElementBlock("div",ZK,[c.createElementVNode("button",{class:"AVMenuDropdown--button",onClick:a,id:e.id,"aria-haspopup":"true","aria-expanded":l.active||"false","data-toggle":"dropdown",type:"button","aria-label":e.ariaLabel},[l.active?(c.openBlock(),c.createBlock(o,{key:1,icon:"fa-solid fa-xmark",class:"AVMenuDropdown--icon","data-test":"main-icon"})):(c.openBlock(),c.createBlock(o,{key:0,icon:`fa-solid fa-${e.icon}`,class:"AVMenuDropdown--icon","data-test":"main-icon"},null,8,["icon"]))],8,QK),c.createVNode(r,null,{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.options,(f,u)=>(c.openBlock(),c.createBlock(i,{key:u,optionLabel:f.label,href:f.href,destructive:f.destructive,icon:f.icon,"data-test":"option"},null,8,["optionLabel","href","destructive","icon"]))),128))]),_:1})])}}}),fj=D(YK,[["__scopeId","data-v-6c23aaa1"]]),KK=["aria-labelledby"],XK=c.defineComponent({__name:"AVMenuDropdownContent",setup(e){const t=c.inject("sharedState"),l=c.computed(()=>t.active),a=c.computed(()=>t.id);return(s,n)=>(c.openBlock(),c.createBlock(c.Transition,{name:"dropdown-content"},{default:c.withCtx(()=>[l.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:"AVMenuDropdownContent","aria-labelledby":a.value},[c.renderSlot(s.$slots,"default",{},void 0,!0)],8,KK)):c.createCommentVNode("",!0)]),_:3}))}}),mj=D(XK,[["__scopeId","data-v-e8fb623b"]]),eX=["href"],cX=c.defineComponent({__name:"AVMenuDropdownItem",props:{optionLabel:{type:String,required:!0},href:{type:String,required:!0},destructive:{type:Boolean,default:!1},icon:{type:String,default:null}},setup(e){return(t,l)=>{const a=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("a",{class:c.normalizeClass(["AVMenuDropdownItem",{"AVMenuDropdownItem--destructive":e.destructive}]),href:e.href},[e.icon?(c.openBlock(),c.createBlock(a,{key:0,class:"AVMenuDropdownItem--icon",icon:`fa-solid fa-${e.icon}`,"data-test":"option-icon"},null,8,["icon"])):c.createCommentVNode("",!0),c.createTextVNode(" "+c.toDisplayString(e.optionLabel),1)],10,eX)}}}),uj=D(cX,[["__scopeId","data-v-8513fa9b"]]),tX=["disabled"],lX={class:"AVAsyncButton--label"},aX=c.defineComponent({__name:"AVAsyncButton",props:{label:{type:String,default:""},size:{type:String,validate:e=>["small","regular","large"].includes(e),default:"regular"},variant:{type:String,validate:e=>["default","success","error"].includes(e),default:"default"},defaultIcon:{type:String,default:null},successIcon:{type:String,default:null},errorIcon:{type:String,default:null},disabled:{type:Boolean,default:!1},onClick:{type:Function,default:()=>new Promise(e=>setTimeout(e,500))}},emits:["update:waiting"],setup(e,{emit:t}){const l=t,a=e,s=c.ref(!1);c.watch(s,r=>l("update:waiting",r));const n=c.computed(()=>{if(!s.value)switch(a.variant){case"default":return a.defaultIcon;case"error":return a.errorIcon;case"success":return a.successIcon;default:return null}}),o=c.computed(()=>a.disabled||s.value);async function i(r){s.value=!0;try{await Promise.resolve(a.onClick(r))}finally{s.value=!1}}return(r,f)=>{const u=c.resolveComponent("AVIcon"),d=c.resolveComponent("AVSpinner");return c.openBlock(),c.createElementBlock("button",{disabled:o.value,onClick:i,class:c.normalizeClass(["AVAsyncButton",{[`AVAsyncButton--${e.variant}`]:e.variant,[`AVAsyncButton--${e.size}`]:e.size,"AVAsyncButton--waiting":s.value,"AVAsyncButton--disabled":!s.value&&o.value}])},[s.value?(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.renderSlot(r.$slots,"waitingIcon",{},()=>[c.createVNode(d,{style:{color:"inherit",height:"1em",width:"1em"},class:"AVAsyncButton--icon","data-test":"btn-spinner"})],!0),c.renderSlot(r.$slots,"waitingLabel",{},()=>[f[0]||(f[0]=c.createTextVNode("Working..."))],!0)],64)):c.renderSlot(r.$slots,"default",{key:0},()=>[n.value?(c.openBlock(),c.createBlock(u,{key:0,icon:n.value,class:"AVAsyncButton--icon","data-test":"btn-icon"},null,8,["icon"])):c.createCommentVNode("",!0),c.createElementVNode("span",lX,c.toDisplayString(e.label),1)],!0)],10,tX)}}}),dj=D(aX,[["__scopeId","data-v-7439a7ec"]]),nX={class:"AVTabSwitcher"},sX=["disabled","onClick"],oX=c.defineComponent({__name:"AVTabSwitcher",props:{options:{type:Array,required:!0,validate:e=>e.length>2&&e.length<3},selected:{type:String,default:null},disabled:{type:Array,default:null,validate:e=>e.length>1&&e.length<2}},emits:["update"],setup(e,{emit:t}){const l=e,a=c.ref([]),s=c.ref(""),n=c.computed(()=>l.options.length===2?"AVTabSwitcher--double":"AVTabSwitcher--triple");c.onMounted(()=>o());const o=()=>{a.value=[],l.options.map(m=>a.value.push({value:m,selected:!1})),l.selected?i(l.selected):a.value[0].selected=!0,l.disabled&&r()},i=m=>{a.value.map(p=>{p.value===m?(p.selected=!0,s.value=p.value):p.selected=!1})},r=()=>{if(a.value.map(m=>m.disabled=!1),l.disabled)a.value.map(m=>{l.disabled.map(p=>p===m.value?m.disabled=!0:m)});else return},f=t,u=m=>{i(m),d()},d=()=>{f("update",s.value,a.value)};return c.watch(()=>l.options,()=>o()),c.watch(()=>l.selected,()=>{s.value=l.selected,i(l.selected)}),c.watch(()=>l.disabled,()=>r()),(m,p)=>(c.openBlock(),c.createElementBlock("div",nX,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,h=>(c.openBlock(),c.createElementBlock("button",{key:h.value,class:c.normalizeClass(`AVTabSwitcher--button ${n.value} ${h.selected?"AVTabSwitcher--button-active":""} ${h.disabled?"disabled":""}`),disabled:h.disabled,onClick:M=>u(h.value)},c.toDisplayString(h.value),11,sX))),128))]))}}),pj=D(oX,[["__scopeId","data-v-3c4a2127"]]),iX={class:"AVBallotSummary"},rX={class:"AVBallotSummary--name-column"},fX={class:"AVBallotSummary--status-column"},mX=c.defineComponent({__name:"AVBallotSummary",props:{ballotStyleName:{type:String,required:!0},readyLabel:{type:String,required:!0},waitingLabel:{type:String,required:!0},currentBallots:{type:Number,required:!0},minimumBallots:{type:Number,required:!0}},setup(e){const t=e,l=c.computed(()=>t.currentBallots>=t.minimumBallots),a=c.computed(()=>t.minimumBallots-t.currentBallots);return(s,n)=>{const o=c.resolveComponent("AVIcon"),i=c.resolveComponent("AVSpinner");return c.openBlock(),c.createElementBlock("div",iX,[c.createElementVNode("div",rX,[c.createVNode(o,{icon:`fa-solid fa-${l.value?"file-circle-check":"file-circle-minus"}`,class:c.normalizeClass(["AVBallotSummary--icon",{"AVBallotSummary--icon-ready":l.value}]),"data-test":"ballot-icon"},null,8,["icon","class"]),c.createElementVNode("span",{class:c.normalizeClass(["AVBallotSummary--ballot-name",{"AVBallotSummary--name-ready":l.value}])},c.toDisplayString(e.ballotStyleName),3)]),c.createElementVNode("div",fX,[l.value?(c.openBlock(),c.createBlock(o,{key:0,icon:"fa-solid fa-circle-check",class:"AVBallotSummary--icon AVBallotSummary--icon-ready","data-test":"ballot-status-icon"})):(c.openBlock(),c.createBlock(i,{key:1,color:"neutral","data-test":"ballot-spinner"})),c.createElementVNode("span",{class:c.normalizeClass(["AVBallotSummary--ballot-status",{"AVBallotSummary--status-ready":l.value}])},c.toDisplayString(l.value?`${e.currentBallots} ${e.readyLabel}`:`${a.value} ${e.waitingLabel}`),3)])])}}}),zj=D(mX,[["__scopeId","data-v-2d7c011c"]]),uX={class:"AVTimedCard--content","data-test":"content"},dX={class:"AVTimedCard--progress","data-test":"progress-container"},pX=c.defineComponent({__name:"AVTimedCard",props:{timeout:{type:Number,required:!0},customWidth:{type:Number,default:600},expirationMessage:{type:String,default:"The passkey will expire in "},customWarningTime:{type:Number,default:15}},emits:["expired"],setup(e,{emit:t}){const l=e;c.onMounted(()=>{s()});const a=c.ref(0),s=()=>{const d=setInterval(()=>{a.value=a.value+1,a.value>=l.timeout&&(clearInterval(d),n("expired",!0,l.timeout))},1e3)},n=t,o=c.computed(()=>100-a.value/l.timeout*100),i=c.computed(()=>Math.floor((l.timeout-a.value)/60)),r=c.computed(()=>(l.timeout-a.value)%60),f=c.computed(()=>i.value%60),u=c.computed(()=>r.value<10?`${f.value}:0${r.value}`:`${f.value}:${r.value}`);return(d,m)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createElementVNode("div",{class:"AVTimedCard",style:c.normalizeStyle(`width: ${e.customWidth}px`)},[c.createElementVNode("div",uX,[c.renderSlot(d.$slots,"default",{},void 0,!0)]),c.createElementVNode("div",dX,[c.createElementVNode("div",{class:c.normalizeClass(["AVTimedCard--progress-bar",{"AVTimedCard--progress-bar-warning":e.timeout-a.value<=e.customWarningTime}]),style:c.normalizeStyle(`width: ${o.value}%`),"data-test":"progress-bar"},null,6)])],4),c.createElementVNode("span",{class:c.normalizeClass(["AVTimedCard--help-text",{"AVTimedCard--help-text-warning":e.timeout-a.value<=e.customWarningTime}]),"data-test":"help-text"},[c.createTextVNode(c.toDisplayString(e.expirationMessage),1),c.createElementVNode("strong",null,c.toDisplayString(u.value),1)],2)],64))}}),hj=D(pX,[["__scopeId","data-v-7d0d595b"]]),zX={class:"AVBasicSteps"},hX={key:0,class:"AVBasicSteps--line","data-test":"separator"},LX=c.defineComponent({__name:"AVBasicSteps",props:{steps:{type:Array,required:!0,validate:e=>e.length>2&&e.length<3},active:{type:String,required:!0}},setup(e){const t=e,l=a=>a===t.active;return(a,s)=>(c.openBlock(),c.createElementBlock("div",zX,[c.createElementVNode("span",{class:c.normalizeClass(["AVBasicSteps--step",{"AVBasicSteps--step-active":l(e.steps[0])}]),"data-test":"step"},c.toDisplayString(e.steps[0]),3),s[0]||(s[0]=c.createElementVNode("span",{class:"AVBasicSteps--line","data-test":"separator"},null,-1)),c.createElementVNode("span",{class:c.normalizeClass(["AVBasicSteps--step",{"AVBasicSteps--step-active":l(e.steps[1])}]),"data-test":"step"},c.toDisplayString(e.steps[1]),3),e.steps.length===3?(c.openBlock(),c.createElementBlock("span",hX)):c.createCommentVNode("",!0),e.steps.length===3?(c.openBlock(),c.createElementBlock("span",{key:1,class:c.normalizeClass(["AVBasicSteps--step",{"AVBasicSteps--step-active":l(e.steps[2])}]),"data-test":"step"},c.toDisplayString(e.steps[2]),3)):c.createCommentVNode("",!0)]))}}),Lj=D(LX,[["__scopeId","data-v-dbd25d5c"]]),gX={class:"AVSteps"},CX={key:0,class:"AVSteps--step--icon-container AVSteps--step-circle"},MX=c.defineComponent({__name:"AVSteps",props:{steps:{type:Array,required:!0},active:{type:String,default:null},done:{type:Array,default:null}},setup(e){c.useCssVars(o=>({"3e5060db":n.value}));const t=e,l=c.ref([]),a=()=>{l.value=[],t.steps.map(o=>{l.value.push({value:o,active:o===t.active,done:s(o)})})},s=o=>t.done?t.done.includes(o):!1;c.onMounted(()=>{a()}),c.watch(()=>t.steps,()=>a()),c.watch(()=>t.active,()=>a()),c.watch(()=>t.done,()=>a());const n=c.computed(()=>`${100/t.steps.length}%`);return(o,i)=>{const r=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("div",gX,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(l.value,(f,u)=>(c.openBlock(),c.createElementBlock("div",{key:u,class:c.normalizeClass(`${l.value.length!==u+1?"AVSteps--step":"AVSteps--step-last"} ${f.active?"AVSteps--step-active":""}`),"data-test":"step"},[f.done?(c.openBlock(),c.createElementBlock("div",CX,[c.createVNode(r,{icon:"fa-solid fa-check",class:"AVSteps--step-icon"})])):(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(["AVSteps--step--number-container",{"AVSteps--step-circle":l.value.length!==u+1,"AVSteps--step--number-container-active":f.active}])},c.toDisplayString(u+1),3)),c.createElementVNode("span",{class:c.normalizeClass(["AVSteps--step-label",{"AVSteps--step-label-active":f.active}])},c.toDisplayString(f.value),3)],2))),128))])}}}),gj=D(MX,[["__scopeId","data-v-89e22cbe"]]),vX=["aria-label"],bX={key:0,"aria-hidden":"true","data-test":"rank"},AX={key:1,width:"26",height:"26",stroke:"white","stroke-width":"0.25rem","data-test":"check"},_X=c.defineComponent({__name:"AVOptionSelect",props:{checked:{type:Boolean,default:!1},rank:{type:[Number,null],default:null},locale:{type:String,default:null}},setup(e){const t=e,l=c.computed(()=>t.rank?document.getElementsByTagName("html")[0].dir==="rtl"?`${t.rank} ${a.global.messages.value?a.global.messages.value[s.value].js.components.AVOptionSelect.aria_label:a.global.messages[s.value].js.components.AVOptionSelect.aria_label}`:`${a.global.messages.value?a.global.messages.value[s.value].js.components.AVOptionSelect.aria_label:a.global.messages[s.value].js.components.AVOptionSelect.aria_label} ${t.rank}`:""),a=c.inject("i18n"),s=c.computed(()=>a.global.locale.value||a.global.locale);return c.onMounted(()=>{t.locale&&U(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&U(t.locale)},{deep:!0}),(n,o)=>c.withDirectives((c.openBlock(),c.createElementBlock("div",{class:"AVOptionSelect","aria-label":l.value,"data-test":"option-select"},[e.rank?(c.openBlock(),c.createElementBlock("span",bX,c.toDisplayString(e.rank),1)):(c.openBlock(),c.createElementBlock("svg",AX,o[0]||(o[0]=[c.createElementVNode("line",{x1:"25%",y1:"25%",x2:"75%",y2:"75%"},null,-1),c.createElementVNode("line",{x1:"75%",y1:"25%",x2:"25%",y2:"75%"},null,-1)])))],8,vX)),[[c.vShow,e.checked]])}}),Cj=D(_X,[["__scopeId","data-v-a31774ee"]]),NX={class:"AVOptionCheckbox--container"},kX={key:0,class:"AVOptionCheckbox--exclusive-container","data-test":"exclusive-error"},xX={class:"AVOptionCheckbox--exclusive"},yX=["aria-checked","tabindex","aria-disabled","disabled","onKeydown"],VX=c.defineComponent({__name:"AVOptionCheckbox",props:{checked:{type:Boolean,required:!0},optionReference:{type:String,default:""},checkBoxIndex:{type:Number,default:1},rank:{type:[Number,null],default:null},disabled:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},exclusiveError:{type:Boolean,default:!1},locale:{type:String,default:null}},emits:["toggled"],setup(e,{emit:t}){const l=c.inject("i18n"),{t:a}=l.global,s=e,n=t;c.onMounted(()=>{s.locale&&U(s.locale)}),c.watch(()=>s.locale,()=>{s.locale&&U(s.locale)},{deep:!0});const o=()=>n("toggled"),i=c.computed(()=>s.optionReference?{id:`option_${s.optionReference}_checkbox_${s.checkBoxIndex}`,role:"checkbox","aria-labelledby":`option_${s.optionReference}_title option_${s.optionReference}_tick option_${s.optionReference}_subtitle`,"aria-describedby":`option_${s.optionReference}_description option_${s.optionReference}_handle`,tabindex:0}:{});return(r,f)=>{const u=c.resolveComponent("AVOptionSelect");return c.openBlock(),c.createElementBlock("div",NX,[e.exclusiveError&&e.checked?(c.openBlock(),c.createElementBlock("div",kX,[c.createElementVNode("div",xX,c.toDisplayString(c.unref(a)("js.components.AVOptionCheckbox.exclusive_option")),1)])):c.createCommentVNode("",!0),c.createElementVNode("button",c.mergeProps({class:{AVOptionCheckbox:!0,"AVOptionCheckbox--checked":e.checked,"AVOptionCheckbox--disabled":e.disabled,"AVOptionCheckbox--error":(e.exclusiveError||e.invalid)&&e.checked},"aria-checked":e.checked?!0:null,tabindex:e.disabled?null:0,"aria-disabled":e.disabled||null,disabled:e.disabled},i.value,{onClick:c.withModifiers(o,["stop"]),onKeydown:c.withKeys(c.withModifiers(o,["prevent"]),["space","enter"]),"data-test":"option-checkbox"}),[e.checked?(c.openBlock(),c.createBlock(u,{key:0,id:`option_${e.optionReference}_tick`,rank:e.rank,checked:e.checked,"data-test":"select"},null,8,["id","rank","checked"])):c.createCommentVNode("",!0)],16,yX)])}}}),Mj=D(VX,[["__scopeId","data-v-96e67fd1"]]),SX=c.defineComponent({__name:"AVAnimatedTransition",props:{skipTransition:{type:Boolean,default:!1}},setup(e){const t=e,l=n=>{if(t.skipTransition)return;n.style.height="auto";const o=getComputedStyle(n).height;n.style.height="0",getComputedStyle(n).height,setTimeout(()=>{n.style.height=o})},a=n=>{n.style.height="auto"},s=n=>{if(t.skipTransition)return;const o=getComputedStyle(n).height;n.style.height=o,getComputedStyle(n).height,setTimeout(()=>{n.style.height="0"})};return(n,o)=>(c.openBlock(),c.createBlock(c.Transition,{name:"transition-fade",onEnter:l,onLeave:s,onAfterEnter:a},{default:c.withCtx(()=>[c.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3}))}}),vj=D(SX,[["__scopeId","data-v-42d3bef5"]]),wX=["aria-controls","aria-expanded"],EX=["id","aria-hidden"],BX=c.defineComponent({__name:"AVCollapser",props:{collapsable:{type:Boolean,default:!1},startCollapsed:{type:Boolean,default:!1},paneId:{type:String,default:"option_reference_children"}},emits:["accordionOpen"],setup(e,{emit:t}){const l=e,a=t,s=c.ref(!1),n=c.ref(!0),o=c.computed(()=>({collapsable:l.collapsable,startCollapsed:l.startCollapsed}));c.onMounted(()=>{const{collapsable:r,startCollapsed:f}=o.value;s.value=r&&!f});const i=(r=null,f=!0)=>{l.collapsable&&(n.value=f,r===null?s.value=!s.value:s.value=!!r,s.value&&a("accordionOpen"))};return(r,f)=>{const u=c.resolveComponent("AVAnimatedTransition");return e.collapsable?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.createElementVNode("div",{role:"button","aria-controls":e.paneId,tabindex:"0","aria-expanded":s.value||null,class:"AVCollapser",onClick:f[0]||(f[0]=d=>i()),onKeypress:f[1]||(f[1]=c.withKeys(c.withModifiers(d=>i(),["prevent"]),["space","enter"])),"data-test":"collapser-button"},[c.renderSlot(r.$slots,"toggle",{isOpen:s.value,collapsable:e.collapsable},void 0,!0)],40,wX),c.renderSlot(r.$slots,"results",{},void 0,!0),c.createVNode(u,{"skip-transition":!n.value},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{id:e.paneId,"aria-hidden":!s.value||null},[c.renderSlot(r.$slots,"pane",{isOpen:s.value,toggleCollapse:i},void 0,!0)],8,EX),[[c.vShow,s.value]])]),_:3},8,["skip-transition"])],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.renderSlot(r.$slots,"toggle",{isOpen:!0,collapsable:!1},void 0,!0),c.renderSlot(r.$slots,"results",{},void 0,!0),c.renderSlot(r.$slots,"pane",{isOpen:!0,toggleCollapse:i},void 0,!0)],64))}}}),bj=D(BX,[["__scopeId","data-v-ff92781e"]]),TX={"data-test":"name"},HX=c.defineComponent({__name:"AVLinkVisualizer",props:{link:{type:Object,required:!0},large:{type:Boolean,default:!1}},setup(e){const t=e,l={github:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?github\.com\//gm),instagram:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?instagram\.com\//gm),linkedin:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?linkedin\.com\/(in|profile|pub)\//gm),twitter:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?(twitter\.|x\.)com\//gm),envelope:new RegExp(/mailto:([^]*)/gm),facebook:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?facebook.com\//gm),vimeo:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?vimeo\.com\//gm),youtube:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?((?:youtube(-nocookie)?\.com|youtu.be))\//gm),tiktok:new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?tiktok\.com\//gm)},a=c.computed(()=>{let n="link";return Object.keys(l).map(o=>{l[o].test(t.link.attributes.url)&&(n=o)}),n}),s=n=>window.open(n,"_blank").focus();return(n,o)=>{const i=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("button",{class:c.normalizeClass(["AVLinkVisualizer AVLinkVisualizer--themed-btn",{"AVLinkVisualizer--large":e.large}]),"data-test":"button",onClick:o[0]||(o[0]=r=>s(e.link.attributes.url))},[c.createVNode(i,{icon:a.value,class:"AVLinkVisualizer--icon","data-test":"icon"},null,8,["icon"]),c.createElementVNode("span",TX,c.toDisplayString(e.link.attributes.name),1)],2)}}}),Aj=D(HX,[["__scopeId","data-v-29792015"]]),IX={class:"AVVerticalStep"},DX=["data-index"],OX={key:0,class:"AVVerticalStep--in-progress"},PX={key:0,class:"AVVerticalStep--bullet-wrapper"},RX={key:1,class:"AVVerticalStep--transition-icon","data-test":"back-icon"},FX={class:"AVVerticalStep--bullet-wrapper"},$X={class:"AVVerticalStep--bullet-wrapper"},qX={key:2,class:"AVVerticalStep--bullet-wrapper"},jX={class:"AVVerticalStep--acronym"},UX={key:3,class:"AVVerticalStep--transition-icon","data-test":"acronym-text"},WX={class:"AVVerticalStep--bullet-wrapper"},JX={class:"AVVerticalStep--acronym"},GX={class:"AVVerticalStep--bullet-wrapper"},ZX={key:4,class:"AVVerticalStep--bullet-wrapper"},QX=c.defineComponent({__name:"AVVerticalStep",props:{stepNumber:{type:Number,validate:e=>e>=1&&e<=9},status:{type:String,validate:e=>["default","active","done"].includes(e),default:"default"},title:{type:String,required:!0},subtitle:{type:String,default:null},collapsed:{type:Boolean,default:!1},hasNextStep:{type:Boolean,default:!1},hasPrevStep:{type:Boolean,default:!1},linkMode:{type:Boolean,default:!1},summary:{type:Boolean,default:!1},inProgress:{type:Boolean,default:!1}},setup(e){const t=e,l=c.computed(()=>{const u=t.title.split(" ");return u.length<2?`${u[0][0].toUpperCase()}${u[0][1].toUpperCase()}`:`${u[0][0].toUpperCase()}${u[1][0].toUpperCase()}`}),a=c.ref(null),s=c.ref(0),n=c.computed(()=>Math.ceil((s.value-32)/2)),o=c.computed(()=>t.hasPrevStep?`
581
581
  height: ${n.value+4}px;
582
582
  margin-bottom: -${n.value-4}px;
583
583
  `:""),i=c.computed(()=>t.hasNextStep?`
584
584
  height: ${n.value+4}px;
585
585
  margin-top: -${n.value-4}px;
586
- `:""),r=()=>{t.linkMode||setTimeout(()=>s.value=a.value.clientHeight,t.collapsed?0:250)},f=()=>{if(!t.linkMode&&!t.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",IX,[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",OX)):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",PX,[c.createVNode(m,{icon:"grip-vertical"})])):e.summary?(c.openBlock(),c.createElementBlock("div",RX,[c.createElementVNode("div",FX,[c.createVNode(m,{icon:"grip-vertical"})]),c.createElementVNode("div",$X,[c.createVNode(m,{icon:"arrow-left"})])])):e.linkMode&&e.status==="active"?(c.openBlock(),c.createElementBlock("div",qX,[c.createElementVNode("span",jX,c.toDisplayString(l.value),1)])):e.linkMode?(c.openBlock(),c.createElementBlock("div",UX,[c.createElementVNode("div",WX,[c.createElementVNode("span",JX,c.toDisplayString(l.value),1)]),c.createElementVNode("div",GX,[c.createVNode(m,{icon:"arrow-right"})])])):(c.openBlock(),c.createElementBlock("div",ZX,[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,DX),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)])}}}),YX=D(QX,[["__scopeId","data-v-1d5e5b5f"]]),KX=c.defineComponent({__name:"AVAnimatedMenuButton",props:{isOpened:{type:Boolean,default:!1}},emits:["update:isOpened"],setup(e,{emit:t}){const l=t;return(a,s)=>(c.openBlock(),c.createElementBlock("button",{class:c.normalizeClass(["AVAnimatedMenuButton",{"AVAnimatedMenuButton--opened":e.isOpened}]),onClick:s[0]||(s[0]=n=>l("update:isOpened",!e.isOpened))},[c.createElementVNode("span",{class:c.normalizeClass(["AVAnimatedMenuButton--icon",{"AVAnimatedMenuButton--icon-opened":e.isOpened}])},s[1]||(s[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))}}),XX=D(KX,[["__scopeId","data-v-90e59491"]]),e11={class:"AVProgressBar"},c11={class:"AVProgressBar--container"},t11=c.defineComponent({__name:"AVProgressBar",props:{value:{type:Number,required:!0,validate:e=>e>=0&&e<=100},hidePercentage:{type:Boolean,default:!1}},setup(e){return(t,l)=>(c.openBlock(),c.createElementBlock("div",e11,[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",c11,[c.createElementVNode("div",{class:c.normalizeClass(["AVProgressBar--filling",{"AVProgressBar--success":e.value===100}]),style:c.normalizeStyle(`width: ${e.value}%;`)},null,6)])]))}}),_j=D(t11,[["__scopeId","data-v-9c071d60"]]);var l11={},a11={class:"AVWaitingDots--container"};function n11(e,t){return c.openBlock(),c.createElementBlock("div",a11,t[0]||(t[0]=[c.createElementVNode("div",{class:"AVWaitingDots"},null,-1)]))}const Nj=D(l11,[["render",n11],["__scopeId","data-v-f13d66c0"]]),s11={class:"AVRadioGroup--input-set"},o11=["for"],i11={key:1,class:"AVRadioGroup--error","data-test":"error-msg"},r11=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:t}){const l=e,a=t,s=c.ref(""),n=c.ref([]),o=u=>{n.value.map(d=>{d.value===u?(d.checked=!0,s.value=d.value):d.checked=!1})},i=()=>{if(n.value.map(u=>u.disabled=!1),l.disabled)n.value.map(u=>{l.disabled.map(d=>d===u.value?u.disabled=!0:u)});else return};c.onMounted(()=>{l.options.map(u=>n.value.push({value:u,checked:!1})),l.initialValue&&o(l.initialValue),l.disabled&&i()});const r=u=>{o(u),f()},f=()=>{a("update",s.value,n.value)};return c.watch(()=>l.initialValue,()=>{s.value=l.initialValue,o(l.initialValue)}),c.watch(()=>l.disabled,()=>{i()}),(u,d)=>{const m=c.resolveComponent("AVRadio");return c.openBlock(),c.createElementBlock("div",s11,[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,o11)),c.createElementVNode("div",{class:c.normalizeClass(`AVRadioGroup--${e.orientation}`),"data-test":"input-group"},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.value,(p,h)=>(c.openBlock(),c.createBlock(m,{class:"AVRadioGroup--child",id:`radio-${e.id}-${h}`,key:h,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",i11,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),kj=D(r11,[["__scopeId","data-v-74ff59b8"]]),f11=c.defineComponent({__name:"AVNavigationItemList",props:{type:{type:String,validate:e=>["navbar","sidebar"].includes(e),default:"navbar"}},setup(e){return(t,l)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(`AVNavigationItemList AVNavigationItemList--${e.type}`)},[c.renderSlot(t.$slots,"default",{},void 0,!0)],2))}}),xj=D(f11,[["__scopeId","data-v-9fd5c53d"]]),m11={class:"AVBreadcrumb"},u11=["href"],d11=["href"],p11=c.defineComponent({__name:"AVBreadcrumb",props:{items:{type:Array,required:!0},disableButton:{type:Boolean,default:!1},buttonHref:{type:String,default:null}},setup(e){return(t,l)=>{const a=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("div",m11,[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,u11),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.items,(s,n)=>(c.openBlock(),c.createElementBlock("span",{key:n,class:"AVBreadcrumb--group","data-test":"item-group"},[c.createElementVNode("a",{href:s.active?null:s.href,class:c.normalizeClass(["AVBreadcrumb--link",{"AVBreadcrumb--link-active":s.active}])},c.toDisplayString(s.text),11,d11),c.createVNode(a,{icon:"fa-solid fa-angle-right",class:"AVBreadcrumb--separator"})]))),128))])}}}),yj=D(p11,[["__scopeId","data-v-479a161a"]]),z11=["href"],h11={class:"AVElectionCard--inner"},L11={class:"AVElectionCard--id","data-test":"id"},g11={class:"AVElectionCard--title-group"},C11={class:"AVElectionCard--title","data-test":"title"},M11={class:"AVElectionCard--items"},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--item","data-test":"item"},y11={class:"AVElectionCard--item-icon"},V11={class:"AVElectionCard--item-text"},S11={class:"AVElectionCard--button"},w11=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 t=e,l={draft:"info",open:"success",closed:"danger",archived:"default"},a=c.computed(()=>l[t.status]);return(s,n)=>{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",h11,[c.createElementVNode("span",L11,c.toDisplayString(e.id),1),c.createElementVNode("div",g11,[c.createElementVNode("span",C11,c.toDisplayString(e.name),1),c.createVNode(o,{type:a.value,value:e.status},null,8,["type","value"])]),c.createElementVNode("div",M11,[c.createElementVNode("div",v11,[c.createElementVNode("div",b11,[c.createVNode(i,{icon:"fa-solid fa-location-pin"})]),c.createElementVNode("span",A11,[c.createTextVNode(c.toDisplayString(e.countyNameLabel),1),c.createElementVNode("strong",null,c.toDisplayString(e.countyName),1)])]),c.createElementVNode("div",_11,[c.createElementVNode("div",N11,[c.createVNode(i,{icon:"fa-solid fa-file-circle-plus"})]),c.createElementVNode("span",k11,[c.createTextVNode(c.toDisplayString(e.createdAtLabel),1),c.createElementVNode("strong",null,c.toDisplayString(e.createdAt),1)])]),c.createElementVNode("div",x11,[c.createElementVNode("div",y11,[c.createVNode(i,{icon:"fa-solid fa-pen-to-square"})]),c.createElementVNode("span",V11,[c.createTextVNode(c.toDisplayString(e.lastUpdatedLabel),1),c.createElementVNode("strong",null,c.toDisplayString(e.lastUpdated),1)])])])]),c.createElementVNode("div",S11,[c.createVNode(i,{icon:"fa-solid fa-circle-chevron-right",class:"AVElectionCard--CTA-icon"})])]),_:1})],8,z11)}}}),Vj=D(w11,[["__scopeId","data-v-dd72671e"]]),E11=["href"],B11={class:"AVBallotStyleCard--content"},T11={key:0,class:"AVBallotStyleCard--completion-icon","data-test":"success-icon"},H11={class:"AVBallotStyleCard--text-container"},I11={class:"AVBallotStyleCard--title","data-test":"title"},D11={class:"AVBallotStyleCard--text","data-test":"text"},O11={class:"AVBallotStyleCard--CTA-icon"},P11=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(t,l)=>{const a=c.resolveComponent("AVIcon"),s=c.resolveComponent("AVCard");return c.openBlock(),c.createElementBlock("a",{href:e.href,class:"AVBallotStyleCard",role:"button","data-test":"link"},[c.createVNode(s,{variant:"rounded"},{default:c.withCtx(()=>[c.createElementVNode("div",B11,[e.reviewed?(c.openBlock(),c.createElementBlock("div",T11,[c.createVNode(a,{icon:"fa-solid fa-check"})])):c.createCommentVNode("",!0),c.createElementVNode("div",H11,[c.createElementVNode("div",I11,c.toDisplayString(e.name),1),c.createElementVNode("div",D11,c.toDisplayString(`${e.contestQty} ${e.contestLabel}`),1)])]),c.createElementVNode("div",O11,[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,E11)}}}),Sj=D(P11,[["__scopeId","data-v-c682a2cf"]]),R11=["aria-label"],F11={key:0,class:"AVSummaryOption--ancestry"},$11={class:"AVSummaryOption--breadcrumb","data-test":"summary-option-ancestry"},q11=["src","alt"],j11={class:"AVSummaryOption--body"},U11={class:"AVSummaryOption--title"},W11={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 t=e,l=c.computed(()=>{var u,d;return((u=t.option)==null?void 0:u.crosses)&&((d=t.option)==null?void 0:d.crosses)>1&&t.multipleVotesAllowed&&!t.blank}),a=c.computed(()=>t.parents.length<1?null:t.parents.map(u=>u.title[f.value]).reverse()),s=c.computed(()=>{var u;return t.blank?r("js.components.AVSummaryOption.blank"):(u=t.option)==null?void 0:u.title[f.value]}),n=c.computed(()=>{var h,M;const u=Array.from(Array((h=t.option)==null?void 0:h.crosses).keys());u.forEach(v=>u[v]=v+1);const d=u.indexOf(Math.ceil(((M=t.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(()=>t.option.image.includes("square")?t.option.image:`${t.option.image}/${t.imageOption}`),i=c.inject("i18n"),{t:r}=i.global,f=c.computed(()=>i.global.locale.value||i.global.locale);return c.onMounted(()=>{t.locale&&U(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&U(t.locale)},{deep:!0}),(u,d)=>{var p,h;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",F11,[c.createElementVNode("ul",$11,[(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":l.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,q11)):c.createCommentVNode("",!0),c.createElementVNode("div",j11,[c.createElementVNode("div",U11,c.toDisplayString(s.value),1)]),l.value?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",W11,[c.createVNode(m,{checked:!0,rank:(h=e.option)==null?void 0:h.rank,disabled:!0,"data-test":"summary-cross"},null,8,["rank"])]))],2),l.value?(c.openBlock(),c.createElementBlock("div",J11,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.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,R11)}}}),pn=c.ref(new Map);function Ej(){function e(t,...l){pn.value.set(t,l)}return{eventBusEmit:e,eventBus:pn}}const G11=["id","href","aria-labelledby"],Z11=["aria-label"],Q11={class:"AVOption--header-container","data-test":"option-content"},Y11={class:"AVOption--header"},K11=["src","alt"],X11=["textContent"],e21={key:0,class:"AVOption--body","data-test":"option-summary"},c21={key:0,class:"AVOption--description","data-test":"option-description"},t21=["innerHTML"],l21={key:1,class:"AVOption--links-container"},a21=["href"],n21={key:2,class:"AVOption--children-container","data-test":"option-children"},s21=["id"],o21=["innerHTML"],i21={key:1,class:"AVOption--realtime-results AVOption--realtime-results-internal","data-test":"option-partialresults"},r21={class:"AVOption--realtime-results","data-test":"option-realtimeresults"},f21={key:0,class:"AVOption--children","data-test":"option-children"},m21=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:t}){const{eventBus:l}=Ej(),a=c.ref(!1),s=c.ref(null),n=e,o=t,i=c.computed(()=>document.getElementsByTagName("html")[0].dir==="rtl"),r=c.computed(()=>n.contest.markingType.voteVariation==="ranked"),f=c.computed(()=>n.selections.filter(S=>S.reference===n.option.reference).length),u=c.computed(()=>n.option.title[R.value]??""),d=c.computed(()=>{var S;return((S=n.option.description)==null?void 0:S[R.value])??""}),m=c.computed(()=>{var S;return((S=n.option.url)==null?void 0:S[R.value])??""}),p=c.computed(()=>{var S;return((S=n.option.videoUrl)==null?void 0:S[R.value])??""}),h=c.computed(()=>n.option.image.includes("square")?n.option.image:`${n.option.image}/${n.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(()=>n.option.children&&n.option.children.length>0),b=c.computed(()=>n.option.selectable!==void 0&&!n.option.selectable?0:g.value?1:n.option.voteLimit||n.contest.markingType.votesAllowedPerOption||1),C=c.computed(()=>n.selections.length>0?V(n.option.children):0),g=c.computed(()=>n.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(()=>n.partialResults?n.partialResults[n.option.reference]:null),_=(S,$=1)=>{o("checked",{reference:S,amount:$})},V=S=>{if(!S)return 0;let $=S.filter(J=>n.selections.map(I=>I.reference).includes(J.reference)).length;return S.reduce((J,I)=>J+V(I.children),$)},x=S=>{a.value=!1,S===n.option.reference&&(o("accordion-open"),c.nextTick(()=>{a.value=!0,s.value.scrollIntoView&&s.value.scrollIntoView({behavior:"smooth",block:"center"})}))};c.watch(()=>l.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(()=>{n.locale&&U(n.locale)}),c.watch(()=>n.locale,()=>{n.locale&&U(n.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,G11),c.createVNode(o1,{collapsable:e.contest.collapsable&&v.value,"start-collapsed":e.contest.collapseDefault&&!e.observerMode,onAccordionOpen:$[2]||($[2]=u1=>o("accordion-open"))},c.createSlots({toggle:c.withCtx(({isOpen:u1,collapsable:v1})=>[c.createElementVNode("section",{ref_key:"el",ref:s,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",Q11,[c.createElementVNode("header",Y11,[e.option.image?(c.openBlock(),c.createElementBlock("img",{key:0,src:h.value,alt:c.unref(E)("js.components.AVOption.aria_labels.option_image"),class:"AVOption-image","data-test":"option-image"},null,8,K11)):c.createCommentVNode("",!0),c.createElementVNode("h5",{class:"AVOption--title",textContent:c.toDisplayString(u.value)},null,8,X11)]),d.value||M.value.length||v.value||e.option.candidateId?(c.openBlock(),c.createElementBlock("div",e21,[d.value?(c.openBlock(),c.createElementBlock("div",c21,[c.createElementVNode("p",{innerHTML:d.value},null,8,t21)])):c.createCommentVNode("",!0),M.value.length>0||e.option.candidateId?(c.openBlock(),c.createElementBlock("div",l21,[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,a21))),128))])):c.createCommentVNode("",!0),v1&&v.value?(c.openBlock(),c.createElementBlock("div",n21,[c.createElementVNode("div",{id:`option_${e.option.reference}_dropdown`,class:"AVOption--expander-container","aria-hidden":"true","data-test":"option-expander"},[c.createVNode(J,{icon:"chevron-down",class:c.normalizeClass(["AVOption--expander-icon",{"AVOption--expander-icon-opened-ltr":u1&&!i.value,"AVOption--expander-icon-opened-rtl":u1&&i.value}])},null,8,["class"]),c.createElementVNode("span",{class:"AVOption--expander-help-text",innerHTML:u1?c.unref(E)("js.components.AVOption.collapse_text"):c.unref(E)("js.components.AVOption.expand_text")},null,8,o21)],8,s21),C.value&&!u1?(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(d1=>d1.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:d1=>_(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",i21,[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,Z11)]),pane:c.withCtx(({toggleCollapse:u1})=>[v.value?(c.openBlock(),c.createElementBlock("div",f21,[(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:()=>u1(!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",r21,[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=D(m21,[["__scopeId","data-v-1877d82c"]]),u21=["aria-label"],d21={class:"AVBlankOption--header","aria-hidden":"true","data-test":"option-content"},p21={class:"AVBlankOption--title"},z21={class:"AVBlankOption--checkbox"},h21={key:0,class:"AVBlankOption--realtime-results AVOption--realtime-results-internal","data-test":"partial-results"},L21={key:0,class:"AVBlankOption--realtime-results","data-test":"realtime-results"},g21=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 t=c.inject("i18n"),{t:l}=t.global,a=e;c.onMounted(()=>{a.locale&&U(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&U(a.locale)},{deep:!0});const s=c.computed(()=>document.getElementsByTagName("html")[0].dir==="rtl");return(n,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(l)("js.components.AVBlankOption.aria_labels.option"),"data-test":"option-container"},[c.createElementVNode("div",d21,[c.createElementVNode("h5",p21,c.toDisplayString(c.unref(l)("js.components.AVBlankOption.title")),1),c.createElementVNode("div",z21,[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=>n.$emit("toggleBlank")),"data-test":"blank-checkbox"},null,8,["checked","exclusive-error","invalid","disabled"])]),e.partialResults&&(e.observerMode||e.disabled)?(c.openBlock(),c.createElementBlock("div",h21,[c.createVNode(r,{icon:"user",class:"AVBlankOption--realtime-results-icon"}),c.createElementVNode("span",null,c.toDisplayString(s.value?`${e.partialResults.results.count===1?c.unref(l)("js.components.AVBlankOption.vote_count_singular"):c.unref(l)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}`:`${e.partialResults.results.count} ${e.partialResults.results.count===1?c.unref(l)("js.components.AVBlankOption.vote_count_singular"):c.unref(l)("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,u21),!e.disabled&&e.partialResults&&!e.observerMode?(c.openBlock(),c.createElementBlock("div",L21,[c.createVNode(r,{icon:"user",class:"AVBlankOption--realtime-results-icon"}),c.createElementVNode("span",null,c.toDisplayString(s.value?`${e.partialResults.results.count===1?c.unref(l)("js.components.AVBlankOption.vote_count_singular"):c.unref(l)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}`:`${e.partialResults.results.count} ${e.partialResults.results.count===1?c.unref(l)("js.components.AVBlankOption.vote_count_singular"):c.unref(l)("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=D(g21,[["__scopeId","data-v-d585dd76"]]),C21=["aria-label"],M21={class:"AVWriteInOption--header"},v21={class:"AVWriteInOption--container"},b21={id:"option_writeIn",class:"AVWriteInOption--title"},A21={class:"AVWriteInOption--form-group"},_21=["aria-label","disabled"],N21={value:""},k21=["value","selected"],x21=["value","placeholder","aria-label","disabled"],y21=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:t}){const l=c.inject("i18n"),{t:a}=l.global,s=e,n=t;c.onMounted(()=>{s.locale&&U(s.locale)}),c.watch(()=>s.locale,()=>{s.locale&&U(s.locale)},{deep:!0});const o=f=>{n("update:candidateValue",f),r()},i=f=>{n("update:partyValue",f),r()},r=()=>{const f=s.partyValue!==""||s.candidateValue!=="";f!==s.checkedValue&&n("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",M21,[c.createElementVNode("div",v21,[c.createElementVNode("div",b21,c.toDisplayString(c.unref(a)("js.components.AVWriteInOption.title")),1),c.createElementVNode("div",A21,[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",N21,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,k21))),128))],40,_21),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,x21)])]),c.createVNode(d,{class:"AVWriteInOption--checkbox",checked:e.checkedValue,"option-id":0,disabled:e.disabled||e.observerMode},null,8,["checked","disabled"])])],10,C21)}}}),Hj=D(y21,[["__scopeId","data-v-f2bba574"]]),V21={class:"AVSubmissionHelper"},S21={key:1},w21=["textContent"],E21={key:2},B21={class:"AVSubmissionHelper--help"},T21={key:0},H21={key:1},I21=["innerHTML"],D21={key:3},O21=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 t=e,l=c.computed(()=>t.errors.map(o=>o.keys?(Object.keys(o.keys).forEach(i=>{typeof o.keys[i]=="object"&&(o.keys[i]=o.keys[i][n.value])}),s(`js.components.AVSubmissionHelper.errors.${o.message}`,o.keys)):s(`js.components.AVSubmissionHelper.errors.${o.message}`))),a=c.inject("i18n"),{t:s}=a.global,n=c.computed(()=>a.global.locale.value||a.global.locale);return c.onMounted(()=>{t.locale&&U(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&U(t.locale)},{deep:!0}),(o,i)=>(c.openBlock(),c.createElementBlock("div",V21,[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(s)("js.components.AVSubmissionHelper.your_vote_weight",{weight:e.weight})),3)):c.createCommentVNode("",!0),e.errors.length>0?(c.openBlock(),c.createElementBlock("div",S21,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(l.value,r=>(c.openBlock(),c.createElementBlock("div",{key:r,role:"alert",textContent:c.toDisplayString(r),"data-test":"submission-helper-error"},null,8,w21))),128)),i[0]||(i[0]=c.createElementVNode("hr",{class:"AVSubmissionHelper--separator"},null,-1))])):c.createCommentVNode("",!0),e.maxMarks>1?(c.openBlock(),c.createElementBlock("div",E21,[c.createElementVNode("div",B21,[e.minMarks===e.maxMarks?(c.openBlock(),c.createElementBlock("div",T21,c.toDisplayString(`${c.unref(s)("js.components.AVSubmissionHelper.select_exactly",{min_marks:e.minMarks})}`),1)):(c.openBlock(),c.createElementBlock("div",H21,c.toDisplayString(`${e.hasExclusiveOptions?c.unref(s)("js.components.AVSubmissionHelper.select_multiple_with_exclusives",{min_marks:e.minMarks,max_marks:e.maxMarks}):c.unref(s)("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(s)("js.components.AVSubmissionHelper.selected",{selected:e.chosenCount}),class:"AVSubmissionHelper--count","data-test":"submission-helper-count"},null,8,I21)):c.createCommentVNode("",!0)])])):(c.openBlock(),c.createElementBlock("div",D21,[c.createElementVNode("div",null,c.toDisplayString(c.unref(s)("js.components.AVSubmissionHelper.select_single")),1)]))],2)]))}}),Ij=D(O21,[["__scopeId","data-v-db1640de"]]);function P21(e,t,l){if(typeof l!="function")throw new Error("search_by must be a function that returns a string");const a=t.toLowerCase().trim().split(/\s+/);return e.filter(s=>{const n=l(s).toLowerCase().trim().split(/\s+/);return a.every(o=>n.some(i=>i.includes(o)))})}const R21=["aria-label"],F21={class:"AVSearchBallot--form-group"},$21=["textContent"],q21={class:"AVSearchBallot--input-group"},j21=["placeholder"],U21={id:"ballot_searcher_results",class:"AVSearchBallot--results","aria-live":"polite","aria-label":"search-results","data-test":"search-results"},W21=["aria-label"],J21={key:0,class:"AVSeachOptionBallot--ancestry"},G21={class:"AVSeachOptionBallot--breadcrumb"},Z21=["id","aria-label","onClick"],Q21=["textContent"],Y21=["textContent"],K21=c.defineComponent({__name:"AVSearchBallot",props:{options:{type:Array,required:!0},locale:{type:String,default:null}},setup(e){const{eventBusEmit:t}=Ej(),l=e,a=c.ref(""),s=c.computed(()=>a.value.trim()===""?[]:P21(l.options,a.value,m=>m.title[d.value])),n=m=>o(m,[]).reverse(),o=(m,p)=>m.parentContent?(p.push(m.parentContent),o(m.parentContent,p)):p,i=()=>{a.value=""},r=m=>{t("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(()=>{l.locale&&U(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&U(l.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",F21,[c.createElementVNode("label",{for:"ballot_search",class:"AVSearchBallot--label",textContent:c.toDisplayString(c.unref(u)("js.components.AVSearchBallot.search_the_ballot"))},null,8,$21),c.createElementVNode("div",q21,[c.withDirectives(c.createElementVNode("input",{id:"ballot_search","onUpdate:modelValue":p[0]||(p[0]=h=>a.value=h),type:"search",class:"AVSearchBallot--form-control",placeholder:c.unref(u)("js.components.AVSearchBallot.enter_option_name"),"data-test":"search-ballot-input"},null,8,j21),[[c.vModelText,a.value]])])]),c.createElementVNode("div",U21,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.value,h=>(c.openBlock(),c.createElementBlock("div",{key:h,"aria-label":h.title[d.value]},[n(h).length>0?(c.openBlock(),c.createElementBlock("div",J21,[c.createElementVNode("ul",G21,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n(h),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_${h.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(h),["prevent"])},[c.createElementVNode("span",{class:"AVSearchBallot--link",textContent:c.toDisplayString(h.title[d.value])},null,8,Q21)],8,Z21)],8,W21))),128)),a.value&&s.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,Y21)):c.createCommentVNode("",!0)])],40,R21))}}),Dj=D(K21,[["__scopeId","data-v-0b2b5c97"]]),X21={class:"AVSplitWeightHelper"},e31={class:"AVSplitWeightHelper--box","data-test":"weight-helper-total"},c31={class:"AVSplitWeightHelper--box","data-test":"weight-helper-assigned"},t31={class:"AVSplitWeightHelper--box","data-test":"weight-helper-unused"},l31=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 t=c.inject("i18n"),{t:l}=t.global,a=e;return c.onMounted(()=>{a.locale&&U(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&U(a.locale)},{deep:!0}),(s,n)=>(c.openBlock(),c.createElementBlock("div",X21,[c.createElementVNode("div",e31,[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(c.unref(l)("js.components.AVSplitWeightHelper.total"))+" ",1),c.createElementVNode("strong",null,c.toDisplayString(e.assignedWeight+e.unusedWeight),1)])]),c.createElementVNode("div",c31,[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(c.unref(l)("js.components.AVSplitWeightHelper.assigned"))+" ",1),c.createElementVNode("strong",null,c.toDisplayString(e.assignedWeight),1)])]),c.createElementVNode("div",t31,[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(c.unref(l)("js.components.AVSplitWeightHelper.unused"))+" ",1),c.createElementVNode("strong",null,c.toDisplayString(e.unusedWeight),1)])])]))}}),Oj=D(l31,[["__scopeId","data-v-3a80cb22"]]),a31={class:"AVSplitWizardHeader","data-test":"split-wizard-header"},n31={key:0,class:"AVSplitWizardHeader--text",style:{"font-weight":"400"}},s31={key:1,class:"AVSplitWizardHeader--text",style:{"font-weight":"400"}},o31={key:2,class:"AVSplitWizardHeader--text",style:{"font-weight":"400"}},i31=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 t=c.inject("i18n"),{t:l}=t.global,a=e;return c.onMounted(()=>{a.locale&&U(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&U(a.locale)},{deep:!0}),(s,n)=>{const o=c.resolveComponent("AVTooltip");return c.openBlock(),c.createElementBlock("header",a31,[e.activeState==="ballot"?(c.openBlock(),c.createElementBlock("p",n31,c.toDisplayString(e.isEditing?`${c.unref(l)("js.components.AVSplitWizardHeader.ballot.editing")} ${e.activeSelectionPileIndex+1}`:`${c.unref(l)("js.components.AVSplitWizardHeader.ballot.adding")} ${e.selectionPiles.length+1}`),1)):e.activeState==="assign"?(c.openBlock(),c.createElementBlock("p",s31,c.toDisplayString(e.isEditing?`${c.unref(l)("js.components.AVSplitWizardHeader.assign.header")} ${(e.isEditing?e.activeSelectionPileIndex:e.selectionPiles.length)+1}`:`${c.unref(l)("js.components.AVSplitWizardHeader.assign.header_edit_mode")} ${(e.isEditing?e.activeSelectionPileIndex:e.selectionPiles.length)+1}`),1)):(c.openBlock(),c.createElementBlock("p",o31,c.toDisplayString(c.unref(l)("js.components.AVSplitWizardHeader.overview.header")),1)),e.activeState==="ballot"?(c.openBlock(),c.createBlock(o,{key:3,content:`${c.unref(l)("js.components.AVSplitWizardHeader.ballot.can_assign_description_pre")} ${e.totalWeight} ${c.unref(l)("js.components.AVSplitWizardHeader.ballot.can_assign_description_pos")}`,text:`${c.unref(l)("js.components.AVSplitWizardHeader.ballot.can_assign_ballots_pre")} ${e.totalWeight} ${c.unref(l)("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=D(i31,[["__scopeId","data-v-13834427"]]),r31={class:"AVElectaContestCard--title"},f31={class:"AVElectaContestCard--subtitle"},m31=c.defineComponent({__name:"AVElectaContestCard",props:{contestTitle:{type:String,required:!0},votingRoundTitle:{type:String,required:!0}},setup(e){return(t,l)=>{const a=c.resolveComponent("AVCard");return c.openBlock(),c.createBlock(a,{variant:"rounded-electa"},{default:c.withCtx(()=>[c.createElementVNode("h3",r31,c.toDisplayString(e.contestTitle),1),c.createElementVNode("p",f31,c.toDisplayString(e.votingRoundTitle),1),l[0]||(l[0]=c.createElementVNode("div",{class:"AVElectaContestCard--line"},null,-1)),c.renderSlot(t.$slots,"card-content",{},void 0,!0)]),_:3})}}}),Rj=D(m31,[["__scopeId","data-v-8a538d47"]]),u31={class:"AVResultOption--content"},d31={class:"AVResultOption--inner-content"},p31=["src"],z31={class:"AVResultOption--title","data-test":"result-title"},h31={class:"AVResultOption--result-container","data-test":"result-results"},L31={class:"AVResultOption--result-count"},g31={key:0,class:"AVResultOption--result-percentage"},C31=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 t=e,l=c.computed(()=>t.total>0?Math.round(t.votes/t.total*1e4)/100:0),a=c.computed(()=>Math.round(t.votes*100)/100),s=c.inject("i18n"),n=c.computed(()=>s.global.locale.value||s.global.locale);return c.onMounted(()=>{t.locale&&U(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&U(t.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&&!e.elected}]),"data-test":"result-option"},[c.withDirectives((c.openBlock(),c.createElementBlock("div",u31,[c.createElementVNode("div",d31,[e.optionImage?(c.openBlock(),c.createElementBlock("img",{key:0,src:e.optionImage,class:"AVResultOption--image","data-test":"result-image"},null,8,p31)):c.createCommentVNode("",!0),c.createElementVNode("header",z31,c.toDisplayString(e.optionTitle[n.value]),1)]),c.createElementVNode("div",h31,[c.createElementVNode("div",L31,c.toDisplayString(a.value),1),e.hidePercentage?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",g31,c.toDisplayString(l.value)+"% ",1))])])),[[r,e.optionTitle[n.value]]])],2)}}}),Fj=D(C31,[["__scopeId","data-v-9cfedaf1"]]),M31={class:"AVRecommendationList--header"},v31={class:"AVRecommendationList--header-content"},b31={class:"AVRecommendationList--title"},A31={key:0,class:"AVRecommendationList--recommendation","data-test":"recommendation-summary"},_31={class:"AVRecommendationList--collapse","data-test":"list-collapse"},N31={class:"AVRecommendationList--collapse-text"},k31={class:"AVRecommendationList--icon-container"},x31={class:"AVRecommendationList--content"},y31={class:"AVRecommendationList--name"},V31={key:1,class:"AVRecommendationList--header"},S31={class:"AVRecommendationList--header-content"},w31={class:"AVRecommendationList--title"},E31={class:"AVRecommendationList--recommendation","data-test":"recommendation-summary"},B31={key:2},$j=c.defineComponent({__name:"AVRecommendationList",props:{recommendations:{type:Array,required:!0},summaryRecommenders:{type:Number,default:3},recommendationsPublic:{type:String,default:"public"},locale:{type:String,default:null}},setup(e){const t=e,l=c.ref(!1),a=c.computed(()=>Array.from(t.recommendations).sort((u,d)=>u.position-d.position)),s=c.computed(()=>document.getElementsByTagName("html")[0].dir==="rtl"),n=c.computed(()=>{const f=o(a.value);return{short:o(a.value,!0),long:f}}),o=(f,u)=>{const d=Array.from(f);let m="";return d.forEach((p,h)=>{u?h<=t.summaryRecommenders-1&&(m+=`${p.label}, `):h!==d.length-1?m+=`${p.label}, `:(m=m.substring(0,m.length-2),m+=` & ${p.label}.`)}),u&&f.length-t.summaryRecommenders>=1?m+=r("js.components.AVRecommendationList.and_more",{n:f.length-t.summaryRecommenders}):u&&(m=m.substring(0,m.length-2)),m},i=c.inject("i18n"),{t:r}=i.global;return c.onMounted(()=>{t.locale&&U(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&U(t.locale)},{deep:!0}),(f,u)=>{const d=c.resolveComponent("AVIcon"),m=c.resolveComponent("AVCollapser"),p=c.resolveDirective("tooltip");return e.recommendations.length&&e.recommendations.length>e.summaryRecommenders&&e.recommendationsPublic=="public"?(c.openBlock(),c.createBlock(m,{key:0,ref:"recommendationList",collapsable:"","start-collapsed":"","pane-id":"recommendation-list",onAccordionOpen:u[0]||(u[0]=h=>l.value=!0)},{toggle:c.withCtx(({isOpen:h})=>[c.createElementVNode("div",M31,[c.createElementVNode("div",v31,[c.createElementVNode("h4",b31,c.toDisplayString(c.unref(r)("js.components.AVRecommendationList.header_title",{n:e.recommendations.length})),1),a.value.length>=e.summaryRecommenders&&!h?c.withDirectives((c.openBlock(),c.createElementBlock("p",A31,[c.createVNode(d,{icon:"user-check"}),c.createTextVNode(" "+c.toDisplayString(n.value.short),1)])),[[p,n.value.long]]):c.createCommentVNode("",!0)]),c.createElementVNode("div",_31,[c.createElementVNode("span",N31,c.toDisplayString(h?c.unref(r)("js.components.AVRecommendationList.collapse"):c.unref(r)("js.components.AVRecommendationList.uncollapse")),1),c.createElementVNode("span",k31,[c.createVNode(d,{icon:"chevron-down",class:c.normalizeClass(["AVRecommendationList--collapser-icon",{"AVRecommendationList--opened-ltr":h&&!s.value,"AVRecommendationList--opened-rtl":h&&s.value}])},null,8,["class"])])])])]),pane:c.withCtx(()=>[c.createElementVNode("div",x31,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,h=>c.withDirectives((c.openBlock(),c.createElementBlock("p",{key:`recommendation_${h.id}`,class:"AVRecommendationList--recommendation","data-test":"recommendation"},[c.createVNode(d,{icon:"user-check",class:"AVRecommendationList--icon"}),c.createElementVNode("span",y31,c.toDisplayString(h.label),1)])),[[p,h.label]])),128))])]),_:1},512)):e.recommendations.length&&e.recommendationsPublic=="public"?(c.openBlock(),c.createElementBlock("div",V31,[c.createElementVNode("div",S31,[c.createElementVNode("h4",w31,c.toDisplayString(c.unref(r)("js.components.AVRecommendationList.header_title",{n:e.recommendations.length})),1),c.withDirectives((c.openBlock(),c.createElementBlock("p",E31,[c.createVNode(d,{icon:"user-check"}),c.createTextVNode(" "+c.toDisplayString(n.value.short),1)])),[[p,n.value.long]])])])):(c.openBlock(),c.createElementBlock("div",B31,[c.createElementVNode("p",null,[c.createVNode(d,{icon:"user-check"}),c.createTextVNode(" "+c.toDisplayString(c.unref(r)("js.components.AVRecommendationList.public_count_text",{n:e.recommendations.length})),1)])]))}}}),T31="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",H31=["src"],I31=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(t,l)=>{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}])},[l[0]||(l[0]=c.createElementVNode("span",{class:"AVFooter--text"},"Technology by",-1)),c.createElementVNode("img",{src:c.unref(T31),alt:"Assembly Voting",class:"AVFooter--img"},null,8,H31)],2))],2)}}}),qj=D(I31,[["__scopeId","data-v-1a82d440"]]);var D31={},O31={class:"AVSidebar"};function P31(e,t){return c.openBlock(),c.createElementBlock("nav",O31,[c.renderSlot(e.$slots,"default",{},void 0,!0)])}const jj=D(D31,[["render",P31],["__scopeId","data-v-65e0965f"]]);var R31={},F31={class:"AVNavbar"};function $31(e,t){return c.openBlock(),c.createElementBlock("nav",F31,[c.renderSlot(e.$slots,"default",{},void 0,!0)])}const Uj=D(R31,[["render",$31],["__scopeId","data-v-3ea1799f"]]);var q31={},j31={class:"AVContent"},U31={class:"AVContent--sidebar","data-test":"sidebar"},W31={class:"AVContent--container","data-test":"container"};function J31(e,t){return c.openBlock(),c.createElementBlock("main",j31,[c.createElementVNode("div",U31,[c.renderSlot(e.$slots,"sidebar",{},void 0,!0)]),c.createElementVNode("div",W31,[c.renderSlot(e.$slots,"content",{},void 0,!0)])])}const Wj=D(q31,[["render",J31],["__scopeId","data-v-1923eca8"]]),G31=["aria-labelledby"],Z31=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:t}){const l=t,a=e;return c.watch(()=>a.modalActive,()=>{a.modalActive&&(document.body.style.overflowY="hidden"),a.modalActive||(document.body.style.overflowY="scroll")}),(s,n)=>(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:n[1]||(n[1]=c.withModifiers(o=>l("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:n[0]||(n[0]=c.withModifiers(()=>{},["stop"]))},[c.renderSlot(s.$slots,"default",{},void 0,!0)],2),[[c.vShow,e.modalActive]])]),_:3})],8,G31),[[c.vShow,e.modalActive]])]),_:3}))}}),Jj=D(Z31,[["__scopeId","data-v-ef5af7c2"]]),i4=(e,t)=>e.flatMap(l=>(t&&(l.parentContent={reference:t.reference,code:t.code,title:{...t.title}}),l.children?[l,...i4(l.children,l)]:[l]));var r4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Dl={},Q31=r4&&r4.__spreadArray||function(e,t,l){if(l||arguments.length===2)for(var a=0,s=t.length,n;a<s;a++)(n||!(a in t))&&(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(Dl,"__esModule",{value:!0});var Y31=function(){function e(t){this.contest=t}return e.prototype.validate=function(t,l){l===void 0&&(l=!1);var a=[];return this.referenceMissing(t.optionSelections)&&a.push({message:"invalid_reference"}),this.tooManySelections(t.optionSelections)&&a.push({message:"too_many"}),this.blankNotAlone(t.optionSelections,t.explicitBlank)&&a.push({message:"blank"}),this.exclusiveNotAlone(t.optionSelections)&&a.push({message:"exclusive"}),a.push.apply(a,this.exceededListVotes(t.optionSelections)),t.explicitBlank||this.implicitlyBlank(t.optionSelections)||l&&a.push.apply(a,this.belowMinListVotes(t.optionSelections)),a},e.prototype.isComplete=function(t){var l=t.explicitBlank||this.optionIsExclusive(t)||this.implicitlyBlank(t.optionSelections)||!this.tooFewSelections(t.optionSelections);return l&&this.validate(t).length==0},Object.defineProperty(e.prototype,"optionReferences",{get:function(){return this.recursiveFlattener(this.contest.options).map(function(t){return t.reference})},enumerable:!1,configurable:!0}),e.prototype.recursiveFlattener=function(t){var l=this;if(!t)return[];var a=t.flatMap(function(s){return s.children?Q31([s],l.recursiveFlattener(s.children),!0):[s]});return a},e.prototype.selectedReferences=function(t){return t.map(function(l){return l.reference})},e.prototype.referenceMissing=function(t){var l=this;return!this.selectedReferences(t).every(function(a){return a==="blank"||l.optionReferences.includes(a)})},e.prototype.implicitlyBlank=function(t){return this.contest.markingType.blankSubmission==="implicit"&&t.length===0},e.prototype.tooFewSelections=function(t){return t.length<this.contest.markingType.minMarks},e.prototype.tooManySelections=function(t){return t.length>this.contest.markingType.maxMarks},e.prototype.belowMinListVotes=function(t){var l=this,a=this.recursiveFlattener(this.contest.options),s=a.map(function(o){return o!=null&&o.minChooseableSuboptions?o:null}),n=[];return s.forEach(function(o){o!=null&&o.minChooseableSuboptions&&l.selectedChildren(t,[o])<o.minChooseableSuboptions&&n.push({message:"below_list_limit",keys:{list_name:o.title,min_list_marks:o.minChooseableSuboptions}})}),n},e.prototype.exceededListVotes=function(t){var l=this,a=this.recursiveFlattener(this.contest.options),s=a.map(function(o){return o!=null&&o.maxChooseableSuboptions?o:null}),n=[];return s.forEach(function(o){o!=null&&o.maxChooseableSuboptions&&l.selectedChildren(t,[o])>o.maxChooseableSuboptions&&n.push({message:"exceeded_list_limit",keys:{list_name:o.title,max_list_marks:o.maxChooseableSuboptions}})}),n},e.prototype.selectedChildren=function(t,l,a){var s=this;return a===void 0&&(a=0),l&&l.forEach(function(n){var o,i=(o=n==null?void 0:n.children)===null||o===void 0?void 0:o.filter(function(r){return s.selectedReferences(t).includes(r.reference)});a+=(i==null?void 0:i.length)||0,n.children&&(a=s.selectedChildren(t,n.children,a))}),a},e.prototype.exclusiveNotAlone=function(t){if(this.selectedReferences(t).length<2)return!1;var l=this.recursiveFlattener(this.contest.options);return this.selectedReferences(t).map(function(a){return l.find(function(s){return s.reference===a})}).some(function(a){return(a==null?void 0:a.exclusive)===!0})},e.prototype.blankNotAlone=function(t,l){return t.length>0&&l},e.prototype.optionIsExclusive=function(t){var l,a;return((l=t.optionSelections)===null||l===void 0?void 0:l.length)===1&&((a=this.contest.options.find(function(s){return s.reference===t.optionSelections[0].reference}))===null||a===void 0?void 0:a.exclusive)},e}(),Gj=Dl.default=Y31,Zj={};Object.defineProperty(Zj,"__esModule",{value:!0});var K31=function(){function e(t){this.contest=t}return e.prototype.validate=function(t){var l=[];return this.partyExclusive(t.optionSelections)&&l.push({message:"cross_party_voting"}),l},e.prototype.selectedReferences=function(t){return t.map(function(l){return l.reference})},e.prototype.partyExclusive=function(t){var l=this.selectedReferences(t),a=this.contest.options.filter(function(n){return l.includes(n.reference)}).length>1,s=!1;return this.contest.options.forEach(function(n){var o,i;if(l.includes(n.reference)){var r=l.filter(function(d){return d!==n.reference}),f=(o=n.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=n.children)===null||i===void 0?void 0:i.some(function(d){return l.includes(d.reference)});s&&u?a=!0:u&&(s=!0)}),a},e}(),X31=Zj.default=K31;const e41=["aria-label","aria-describedby"],c41=["id"],t41=["aria-label"],l41=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:t}){const l=e,a=t,s=c.ref(!1),n=c.ref(""),o=c.ref(""),i=c.ref(null),r=c.computed(()=>l.selectionPile.optionSelections),f=c.computed(()=>new Gj(l.contest)),u=c.computed(()=>l.contest.disregardVoterWeight?null:l.weight),d=c.computed(()=>{var N;let x=[];return(N=l.contest.customRulesets)!=null&&N.includes("belgian_ballot_rules")&&x.push(new X31(l.contest)),x}),m=c.computed(()=>{let x=[];d.value.forEach(E=>{x.push(...E.validate(l.selectionPile))});const N=[...f.value.validate(l.selectionPile,l.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),h=c.computed(()=>{var x;return(x=l.contest.question)==null?void 0:x[V.value]}),M=c.computed(()=>{var x;return(x=l.contest.customRulesets)==null?void 0:x.includes("belgian_ballot_rules")}),v=c.computed(()=>i4(l.contest.options).some(x=>x.exclusive)),b=c.computed(()=>l.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",{...l.selectionPile,explicitBlank:!l.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",{...l.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(()=>{l.locale&&U(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&U(l.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"},[h.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(h.value),9,c41)):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":n.value,"onUpdate:partyValue":N[1]||(N[1]=P=>n.value=P),"checked-value":s.value,"onUpdate:checkedValue":N[2]||(N[2]=P=>s.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,t41),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,e41)}}}),Qj=D(l41,[["__scopeId","data-v-217fba3a"]]),a41={key:0,class:"AVPileSummary--summary"},n41={key:0,class:"AVPileSummary--summary-header","data-test":"pile-summary-header"},s41={class:"AVPileSummary--summary-header-text"},o41={key:1,class:"AVPileSummary--summary-header"},i41={class:"AVPileSummary--summary-body"},r41={key:1,class:"AVPileSummary--assign"},f41={class:"AVPileSummary--assign-card"},m41=["aria-label"],u41={class:"AVPileSummary--edit"},d41={key:0,"data-test":"pile-summary-assigned"},p41={class:"AVPileSummary--assign-body","data-test":"pile-summary-body"},z41={key:0,class:"AVPileSummary--assign-text"},h41=["aria-label"],L41=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:t}){const l=t,a=e,s=c.ref(!1),n=c.computed(()=>a.selectionPile.optionSelections.length===0),o=c.computed(()=>!a.maximumOptionsShown||s.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=(h,M)=>h&&h.parentContent?(M.push(h.parentContent),f(h.parentContent,M)):M,u=c.computed(()=>{const h={options:[],writeIns:[]};return a.selectionPile.optionSelections.forEach(M=>{if(M.text)h.writeIns.push({partyLetter:"?",partyName:"?",candidateName:M.text});else{const v=h.options.find(C=>C.handle===M.reference),b=r.value.find(C=>C.reference===M.reference);if(!b)return;v?v.crosses+=1:h.options.push({title:b.title,handle:M.reference,image:b.image,crosses:1,parent:b.parentContent,rank:a.contest.markingType.voteVariation==="ranked"?h.options.length+1:null})}}),h}),d=c.inject("i18n"),{t:m}=d.global,p=c.computed(()=>d.global.locale.value||d.global.locale);return c.onMounted(()=>{a.locale&&U(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&U(a.locale)},{deep:!0}),(h,M)=>{const v=c.resolveComponent("AVSummaryOption"),b=c.resolveComponent("AVIcon");return e.activeState==="summary"?(c.openBlock(),c.createElementBlock("div",a41,[e.contest.markingType.maxPiles!==1?(c.openBlock(),c.createElementBlock("header",n41,[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",s41,c.toDisplayString(e.selectionPile.multiplier)+" "+c.toDisplayString(c.unref(m)("js.components.AVPileSummary.ballots")),1)])):(c.openBlock(),c.createElementBlock("header",o41,[c.createElementVNode("span",null,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.selection")),1)])),c.createElementVNode("div",i41,[(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)),n.value?(c.openBlock(),c.createBlock(v,{key:0,blank:n.value},null,8,["blank"])):c.createCommentVNode("",!0)])])):(c.openBlock(),c.createElementBlock("div",r41,[c.createElementVNode("div",f41,[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=>l("editCurrentSelection"))},[c.createElementVNode("div",u41,[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",d41,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.assigned"))+" "+c.toDisplayString(e.selectionPile.multiplier),1)):c.createCommentVNode("",!0)],8,m41),c.createElementVNode("div",p41,[n.value?(c.openBlock(),c.createElementBlock("p",z41,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=>s.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),s.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=>s.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=>l("deleteSelection"),["stop","prevent"]))},[c.createVNode(b,{icon:"trash-can"})],8,h41)):c.createCommentVNode("",!0)]))}}}),Yj=D(L41,[["__scopeId","data-v-ffed1a38"]]);var Kj={},zn=r4&&r4.__spreadArray||function(e,t,l){if(l||arguments.length===2)for(var a=0,s=t.length,n;a<s;a++)(n||!(a in t))&&(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(Kj,"__esModule",{value:!0});var g41=Dl,C41=function(){function e(t){var l=t.contest,a=t.voterWeight;this.contest=l,this.voterWeight=a}return e.prototype.isComplete=function(t){return this.allWeightUsed(t)&&this.validate(t).length==0},e.prototype.validate=function(t){var l=[],a=new g41.default(this.contest);return t.piles.forEach(function(s){l=zn(zn([],l,!0),a.validate(s),!0)}),t.piles.forEach(function(s){a.isComplete(s)||l.push({message:"A selection is not complete"})}),l},e.prototype.allWeightUsed=function(t){return this.voterWeight===t.piles.reduce(function(l,a){return a.multiplier+l},0)},e}(),M41=Kj.default=C41;const v41={class:"AVSplitHelper--title","aria-live":"polite","data-test":"split-helper-contest-title"},b41=["innerHTML"],A41={class:"AVSplitHelper--footer"},_41={class:"AVSplitHelper--btn-secondary-container"},N41={class:"AVSplitHelper--btn-primary-container"},k41=["disabled"],x41={key:1},y41={class:"AVSplitHelper--assign-card"},V41={class:"AVSplitHelper--assign-question","data-test":"split-helper-contest-question"},S41=["for"],w41=["id","max"],E41={class:"AVSplitHelper--footer"},B41={class:"AVSplitHelper--btn-secondary-container"},T41={class:"AVSplitHelper--btn-primary-container"},H41=["disabled"],I41={key:2,"data-test":"split-helper-overview"},D41={key:0,class:"AVSplitHelper--overview-success"},O41={key:1,class:"AVSplitHelper--overview-default"},P41={class:"AVSplitHelper--overview--text"},R41=["disabled"],F41=["onClick"],$41=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:t}){var J;const l=e,a=t,s=c.ref(null),n=c.ref(l.contestSelection.piles[0]||{multiplier:l.weight,optionSelections:[],explicitBlank:!1}),o=c.ref(((J=l.contestSelection.piles)==null?void 0:J.length)===0||l.contest.markingType.maxPiles===1?"ballot":"overview"),i=c.ref([]),r=c.computed(()=>l.contestSelection.piles),f=c.computed(()=>{var I;return(I=r.value)==null?void 0:I.reduce((P,o1)=>P-o1.multiplier,l.weight)}),u=c.computed(()=>new Gj(l.contest)),d=c.computed(()=>new M41({contest:l.contest,voterWeight:l.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)}),h=c.computed(()=>{var I;return(I=n.value)==null?void 0:I.multiplier}),M=c.computed(()=>r.value.filter((I,P)=>P!==s.value).reduce((I,P)=>I-P.multiplier,l.weight)),v=c.computed(()=>l.contest.markingType.maxPiles!==1&&l.weight>1),b=c.computed(()=>s.value!==null),C=I=>u.value.isComplete(I),g=I=>u.value.validate(I,l.includeLazyErrors).length>0,A=()=>{if(v.value){const I=[...r.value];s.value===null?I.push({...n.value}):I.splice(s.value,1,{...n.value}),a("update:contestSelection",{...l.contestSelection,piles:I}),s.value=null,o.value="overview"}else n.value.multiplier=l.weight,a("update:contestSelection",{...l.contestSelection,piles:[n.value]})},k=I=>{n.value=I,v.value||A()},_=()=>{n.value={optionSelections:[],multiplier:M.value,explicitBlank:!1},s.value=null,o.value="ballot"},V=I=>{r.value.splice(I,1)},x=I=>{n.value={...r.value[I]},s.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(h,()=>{n.value&&(n.value.multiplier=Math.max(0,Math.min(h.value,M.value)))}),c.watch(n,I=>{a("update:activePile",I)}),c.watch(o,I=>a("update:activeState",I)),c.onMounted(()=>{l.locale&&U(l.locale),a("update:activePile",n.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(()=>{l.locale&&U(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&U(l.locale)},{deep:!0}),(I,P)=>{var d1;const o1=c.resolveComponent("AVSplitWizardHeader"),u1=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",v41,c.toDisplayString(e.contest.title[$.value]),1),c.createElementVNode("div",{class:"AVSplitHelper--description","data-test":"split-helper-contest-description",innerHTML:(d1=e.contest.description)==null?void 0:d1[$.value]},null,8,b41),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":s.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:"transition-fade",mode:"out-in"},{default:c.withCtx(()=>{var w1,W1,X1;return[n.value&&o.value==="ballot"?(c.openBlock(),c.createElementBlock("div",{key:s.value},[c.createVNode(u1,{class:"AVSplitHelper--ballot","selection-pile":n.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",A41,[c.createElementVNode("div",_41,[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",N41,[c.createElementVNode("button",{key:"assign",class:"AVSplitHelper--btn-primary",disabled:!C(n.value)||g(n.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,k41)])])])):o.value==="assign"?(c.openBlock(),c.createElementBlock("div",x41,[c.createElementVNode("div",y41,[c.createElementVNode("h4",V41,c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.assign.split_question")),1),c.createVNode(v1,{"selection-pile":n.value,contest:e.contest,"maximum-options-shown":3,"pile-index":b.value?s.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,S41),c.withDirectives(c.createElementVNode("input",{id:`${e.contest.reference}-ballot-selector`,"onUpdate:modelValue":P[4]||(P[4]=L1=>n.value.multiplier=L1),class:"AVSplitHelper--assign-input",type:"number",max:M.value,"data-test":"split-helper-assign-input"},null,8,w41),[[c.vModelText,n.value.multiplier]])]),c.createVNode(z1,{"assigned-weight":p.value,"unused-weight":f.value,"active-assigned":(w1=r.value[s.value])==null?void 0:w1.multiplier},null,8,["assigned-weight","unused-weight","active-assigned"]),c.createElementVNode("div",E41,[c.createElementVNode("div",B41,[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",T41,[c.createElementVNode("button",{key:"confirm",class:"AVSplitHelper--btn-primary",disabled:((W1=n.value)==null?void 0:W1.multiplier)<1||((X1=n.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,H41)])])])):o.value==="overview"?(c.openBlock(),c.createElementBlock("div",I41,[f.value===0&&d.value.isComplete(e.contestSelection)?(c.openBlock(),c.createElementBlock("div",D41,[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",O41,[c.createElementVNode("p",P41,[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,R41)])),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(r.value,(L1,D1)=>(c.openBlock(),c.createElementBlock("article",{key:`preview-${D1}`,onClick:w2=>x(D1)},[c.createVNode(v1,{"selection-pile":L1,contest:e.contest,"maximum-options-shown":3,"active-state":o.value,"pile-index":D1,"total-piles":e.contestSelection.piles.length,"image-option":e.imageOption,onDeleteSelection:w2=>V(D1)},null,8,["selection-pile","contest","active-state","pile-index","total-piles","image-option","onDeleteSelection"])],8,F41))),128))])):c.createCommentVNode("",!0)]}),_:1})],64)):(c.openBlock(),c.createBlock(u1,{key:1,class:"AVSplitHelper--no-split","selection-pile":n.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)}}}),Xj=D($41,[["__scopeId","data-v-e48e9480"]]),q41="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4gKwSUNDX1BST0ZJTEUAAQEAAAKgbGNtcwRAAABtbnRyUkdCIFhZWiAH6AAEAAMACAAzABRhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1kZXNjAAABIAAAAEBjcHJ0AAABYAAAADZ3dHB0AAABmAAAABRjaGFkAAABrAAAACxyWFlaAAAB2AAAABRiWFlaAAAB7AAAABRnWFlaAAACAAAAABRyVFJDAAACFAAAACBnVFJDAAACFAAAACBiVFJDAAACFAAAACBjaHJtAAACNAAAACRkbW5kAAACWAAAACRkbWRkAAACfAAAACRtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACQAAAAcAEcASQBNAFAAIABiAHUAaQBsAHQALQBpAG4AIABzAFIARwBCbWx1YwAAAAAAAAABAAAADGVuVVMAAAAaAAAAHABQAHUAYgBsAGkAYwAgAEQAbwBtAGEAaQBuAABYWVogAAAAAAAA9tYAAQAAAADTLXNmMzIAAAAAAAEMQgAABd7///MlAAAHkwAA/ZD///uh///9ogAAA9wAAMBuWFlaIAAAAAAAAG+gAAA49QAAA5BYWVogAAAAAAAAJJ8AAA+EAAC2xFhZWiAAAAAAAABilwAAt4cAABjZcGFyYQAAAAAAAwAAAAJmZgAA8qcAAA1ZAAAT0AAACltjaHJtAAAAAAADAAAAAKPXAABUfAAATM0AAJmaAAAmZwAAD1xtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAEcASQBNAFBtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEL/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wgARCAGQAZADAREAAhEBAxEB/8QAHQABAAEEAwEAAAAAAAAAAAAAAAECBQcIAwYJBP/EABkBAQEBAQEBAAAAAAAAAAAAAAABAgMEBf/aAAwDAQACEAMQAAAB2pAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACJVhQAAAAAAAAAAAAAAAAAAAAABaY6O11aTtFt1zntun20AAAAAAAAAAAAAAAAAAAAOpmBJcCnTkgmq5btLsdc7OV9kV0AAAAAAAAAAAAAAAAAAjCkum9thsSUgmmSpW7y7CrtjcclAAAAAAAAAAAAAAAAADFmdaGV8VyCFAACOddmJdrLn6KAAAAAAAAAAAAAAAAHVM3z6muuaysAAAAEnJLt5LsjczQAAAAAAAAAAAAAAA440mz0wZc0ayAAAAAJi/S+j6XWlAAAAAAAAAAAAAAAWWXzbxu2axTqAAAAACY5Jrd5M4WRcypQAAAAAAAAAAAAALbL5m46fDvnFgAAAAAEy7CTW51woAAAAAAAAAAAAAACxS+auN/JrnN1TcgAAAAAudeet3emJAAAAAAAAAAAAAAAOl5vndjXxdJM1TeagAAAAJmsv41vnrm0AAAAAAAAAAAAAAAx1m6B89/Du02U3moAAAAIlrKfO7/bxOgAAAAAAAAAAAAAAHRs3z95dfi1eDfPj1gAAAAJKmubPTMec70bwpQAAAAAAAAAAAAAA6xi+e3Prb9LbvlFigAAABVH18+uZmd4OmFAAAAAAAAAAAAAADhMe46aUY11zWbdvCwAAAACT7+XTM8bQdJ3zWAAAAAAAAAAAAAABjXHbQbl7fr6eL5Et++awAAAACS58unz23+e30m6fNqoAAAAAAAAAAAAACx535s8fq3TXz7dqWzfGLAAAAAJLpz6U3rkaenfnfzZoAAAAAAAAAAAAABHnvy93V2ObXPq++UXIAAAAEnYeXT456tl989pteVQAAAAAAAAAAAAACNbcenVPN7ncY46cosBAAAAB3Xl1627+guvP33fMAAAAAAAAAAAAAAC25vn1j1/TOfQd8uPeaEAAAAEy9t49sw27h9fPNAAAAAAAAAAAAAAADDPPrimNddPk3ypAAAABVnWasb2y3jutyoAAAAAAAAAAAAAAAIxnm6DOnx65U0AAAAK863okzPqTQAAAAAAAAAAAAAAAA6nm+emelk3ziwAAACUu+N+k1zddAAAAAAAAAAAAAAAAAOv5vnnz69b6cqNQAAACY2Zl25RoAAAAAAAAAAAAAAAAB8EvmbnpLFssUsAAEy3jOtyrnOFigAAAAAAAAAAAAAAAAPml8wZeCyiKaWAAI++OM3lXMWpIAAAAAAAAAAAAAAAABrFLqnNfNcRQAAFYKY2pl2nsqoAAAAAAAAAAAAAAAAY4PP8AXgyospoAACSSC5ruaZyQAAAAAAAAAAAAAAAQdNXRteiMwAAAAADkL66bzrktyAAAAAAAAAAAAAAGPU1QnTE86cV4cdQAAAAAAc8dxnbdC8slWSAAAAAAAAAAAAQY5NajCBwTUXMkAAAAAAAqBUZiNpzIwAAAAAAAAAALUYXb10ZxugoAAAAAAAABJIBzGajaAyCEKAAAAAAALCur7pr4zbmSQkrAAAAAAAAAAABUcpsk3s0nYGQAAAAABxGuM3qtLariuqEpQSsAAAAAAAAAAAEkg+qby5Om1t5d+uQAAAALUuijrjBzpSZKYilAAAAAAAAAAAAAASVnKuzi7Us8oAAAINMmte0CZmItiwoAAAAAAAAAAAAAEkkJLWWDddOxAAAHXTzjW1IBJAAAAAAAAAAAAAAAAAAXsq+hDPZgAAaqLq2caAAAAAAAAAAAAAAAAAAACo2LjcaFKApPNs6oQQAAAAAAAAAAAAAAAAAAASX09MisAGPTzwBSAAAAAAAAAAAAAAAAAAACTlPRo7mADVk1SAAAAAAAAAAAAAAAAAAAAAJN3jOgBB5+mLwAAAAAAAAAAAAAAAAAAAAAbKG34P/EAC8QAAAGAQMBBwMEAwAAAAAAAAECAwQFBgcAMFASERMVICExQBAUMxYiIzI0NoD/2gAIAQEAAQUC/wC2JKUbxSB8j18qQ5hhu1lkeBemPcYxLSDxFyXip2eJCoy2ZgFOVtsrL+TrN2M5h4w1TMqHOcHiIkKYDl4a6ZGb18Jaadzbjz+2kph4iSl5SWKYhwOXhL1bSVyNdulXi+0koKR6LkMU3CK5HCfBWKwN68xmpFWVe7hDdA4stArteBMcCFyNZ/F5Qw9o7sK9FhIRbgHTHgJhZRvFrmMouO8T0Ni6WK+iOAkTdDJ3+bfxAcSTvAThuiGc/l38Sue6snAXI4p1dx/bfxqoVK18BkEO2pOA9ezfx+Qylr4C7k7yqrB+3p0bdENYvTE1s4CzJd9X1S9Qm/aI++2HuQOrWMiD+rPnrLEQTSu0DL6dFKR049B3WwdWscvGcfPQ12iJ5187IqaqlQUDTAOozr++6x/Mt29/ArKNZj5042+8hlNRQfyOij1brAO1V4Xsd48jfErUHz73D+CWWNN0vZRDuw3YknUq5HqWwxGD1/PzFCC4aF7W7uRTBWOHdhi9JCkOtqkQngNc+fIMEZJna4zwiaSU79moXpPthpA/dMcU15OUchwNxxwjZnNuqCdYZOfy7Ye9Op5ra1qlXQqsdwWQmX3dbdfk2y+psVx32dc4O1/67KI90524tod68i2JIyO4OwJ97BHH71sPpt4jrgOHfCPy9bHvDN3DghThstkSpkxL2ngOEc/47v0cEUEmh9dhIhSFWXMubFBOiocJkW9mJIufVfYKPSIiJh1ja3pMDBwd2tadZiQWMdyYe022sqJNY/uoSqPAzNsjYVC0zy8453TG6tRz1RuSkW9O0R3zrHeYus6sWTZaaU742jG6t9MdVexKVyYg8gw87rt+XO3+GgNWfKb6a0sqZQ/wQ99dQhqsZNkYIK1eoyzD8aQlGkWlM5gjGYWDIMxYNdug0Pv8VJU6R4DKspE6rV4jLQX4UtOMYNC15bWd6dvl3yn1D5KShkT1nLyrRGGnWU813lFCpEt+WEWupCTdSjjQ+3zkHKrU8HlKXij1m5x1oS25OTbxDK23p7ZVxH6BwIaRWOgpTssmA6apFibOVbIaQlfIPB0m/OqstCzrOfZ+efmEoGJfvFHzriIOdeQL2uTSdgh/NmWd/kHiQ1h6eFrMeUwgUtplhmp/ioKRGJmSGAxfJfZbwerD78Un6npr7xKr+TNcp+3jMQvvua99R9skSfiVw4zCskCcl9P/xAAlEQABBAAHAAIDAQAAAAAAAAABAAIRUAMQEiEwMUAyUSNBgGD/2gAIAQMBAT8B/tnTlH+nlSu6YI2AsgjYDwmhHadziiHacgjXjKEbGEa8ZnkGRoQhkeY0OkjwDLT78Hd4WLhR14GodotGj3s+QWI6U4ZHlatMbpzvxUDXagsTI8oTOlidRQYX0n5HlCasQ70A2K+WR5QidIomvhTKdyzCcZowjyBGkHKKUZGwHKaUI2ITrI14GpO2252x+05kb0AQdt4dUiKCdq3T918SoDe04+7ZER4I+1P1Q6oUtd+k5vL8aXUu/wCZf//EACIRAQABBAIBBQEAAAAAAAAAAAFQAAIQMDFAESFBYHCAkP/aAAgBAgEBPwH9s+c+fr9o+RMk0SLVvQOYF4q2RaOg8wLkj3okC4NzRAXcVbg3XV7Ud9ybmScEA4NzggXFu15o9YJMEi0bGrYR2sKz5CtH9P8A/8QAQRAAAQIDAwgGBggGAwAAAAAAAQIDAAQREiExBRMiMEFQUXEUQEJhgbEgMnKh0eEQIyQzQ2KCwVJTY5GSshWA8f/aAAgBAQAGPwL/ALsZ6ZWG2+Ji2MoIV+Whr5R92+R3JvgJE8ltRwDiSmNOaQL76mhHfygKbcS4DgUmu684rNq2lBdsq8IsyEoQ5/G7DgmJxxTa8W66P9vQpU0EfUTLjY4BUdFysqtoiw+Bhzi3nE2Ma1gEGoO3c65aV+vnfciC9NvF1Xfs1NlEw4lNKUCroaksooCmsA6nEeEBQvB3KsNqQZtYohFq/nC3XllxxRqVKNSdWFDEGsJlp98JZIoFK4wlxtQWhV4UNu4y+9ersIHaMOzUwu044a44a2oxjoEy7aI+7KvLcRJwEFlu5pmoHfr2XRsUO1SGXUkG0kG413DNuNXuJaUU3VvpDi1mqjieoZkJ0mridwvq4Nqx5Qvn1BwCtFN333bhnlcGF+UHqCWrznEHbuHKRSqycyb+oyNokVJApy3DPX7B5xXqGTbOIcruHKQ/pV6jKU2BVf8AHcOUE8WFeXUZel1AfLcCnHFBCEipUdkOyqMotpKgU/WaHnEw0lQWELIBF9deYdmZyablm2WiauKpWDLSc1aexCVJKbXKvX5/NGhCQo+zW+KwrlrxChwMSLrBIdDyKU59fnmAKlxhaR/b6Hh+TqDvtGMnpIqhtReV+n503BNMD7pRzjfsqvhI2KSRCDr3D+cxOz5FwAZT5n9twSuUkC9o5pw9xw9/nACsUGLW0X64k84qBtiVl1CjpGcc9o7gdlphNtl1NlSYflLVss6NvjAGxSYOteO2zSFTb4BRJqCko4qOG4ultP8ARZk3LqmqVRIZlRWmzZWs9pUHWCJtsP8AR83ZNqzaqY6MyouLUbS3Fdo7jeVS9khwRfjrBGePrTDhPgLvjuTKHANEwrhjrGmW02nFrCU84l5Vv1WkBO5MoJ4y6/8AWP6jflrF5SeF0vc2D/Edu5ZhPFtQ90FQxEZxGB2cNVnnfVGzjD7x7b/7DcrvsmF847tTbX/jxi/DYOENd7qjuVOR5FdlIUBMuJ/0+ML56q/6JXJEyQlt5Nptw7F1w3I6sGs2tNGkd/GA6slSiq0SdsE6yXIuKUY+MNSU0v7RZq0s9viOY3E6p6aaLiBXMpXVZ8ILzytNw2iBgngnwGuT3CkJzayhxtecQodkxpaE41c6j9x1+zMOFx8/gtXqh1DLpkpQ3Jbbxp3mD349QUOIhidRVaRc42DS0ICUP9Hf/lP6Pv64pD0znnx+CxpK+UZiStSEr+VWmrmfhFVEqPE9VaZdPS5RPYXiB3GM2ysszH8l24nlx6vnJuYbl0cXFUhSZFpc85sV6iIKHJjMMH8FjRHz6yChRSRtEJRNH/kWODp0x+r4xSXczcxtYduV8+p56dmEMI2WsTyEKYyQFSzWBfV655cILkw6t1fFZr10KQopULwUmlIal8qNGZSkUz6PX8eMCYkng6jaNqeY16lLUEpSKlRwEKlsjEPPYGZI0U+zxgvzT633TipZruG2y4ptQ2pNISHl9OY2oex8DH2ddh8esw56w+OsdmplebabFT8IWm2WZOujLpN3jx3KFtrUhQvBSaEQ3KZaNU4JmxiPa+MJWhQWhV4UnA6pUg2r7NK7BtXt3Rml2pjJ6jpM1vT3phMzJOhxBxG1J4EaiZnXcG03Didgh1902luKKjulEzJulCxiNihwMS883o5waSK1sq2j05XJba7kjPOjv7P77reyYtX1U0m2j2x8vL0iTcBE7N1qHHDZ9nZuuSnAfuXUqPKt8Ai8ejPPWrK1pzSOart2Acboya+TVRZCVcxcfL0cn5PB4vqHuH77tfZrXNPkjkq/zr6M8QaoZIZT+n513bPSKvxWw4nw/wDfp//EACsQAQABAgQFBAMAAwEAAAAAAAERACExQVFhMFBxgZEQQKGxIMHwgNHx4f/aAAgBAQABPyH/ADYRBFDpFDENbUFZLwwQ3icO9ako2NG0UusAAwB0N3cUIu5DDyvBxkAi1kQ/FOZmiwh2G9SDRZj+ExJWALhU/Nryo8UBFhQaEH7rL8Qwk1owwpBg8mbFQgQREXtV12p+fw0tCsPyihVJWcrW2ZkUbbQfAYBqpuYUicly0JszoL2q8V0gbvDYWAB0rNTwM1LREAyUa8jd9ic1/opZD8bjQG3FQLQwaGDkq4jrW+1DJbkLJwErQGpCiR1LUzxSlhicyjjqYUPlnIeGufISD8MAtTppambWLilO5pUmBiO09PU99gtceSkm8mm/GGKfCSBI8MGjkBsRcXJz016vpHGaMg9oRBPejkBzCuir2zNFPFMavEOsyqztyFsCCfxqNBkfS8Uxo4jm+EAz8TQycgtosKzGyNTCMPQwtnxAqwUlmZN2UuQknRTLlhFQoUp4jiknarvwa3ynyBGBnYAYrWYVVhEiyQaeBUcAKTNLjEgZ1jVsgW0GvQqGxinAYsF/fyHQ1zBR4qRhjSHixJaMcYyBztQSiFCpfB3MxI70e+eOMW64qyDC2dTZhf2UaTxoR0amIz/urwMArijB75qAcJ6wjwydqFf9hKYTBXCnHivJlJWgdnzVmJK1l/VyDObVpGl/IpocLFPII+6sXFDER9KuARjbVpLTsOJcTth25BMth2Y/uscOFDTZd4is9nD1/ioBhxBKFRLoXdt+6TgkCxrnpE+KEHIQqxCQUwYtDH1RjOgsYssZY4bUIoeH86oOuMopGySVYpS0MEYZBkcjC5HDaYfhqQsizxDAib4Uy5oew+eSISJKboXaU+dg7cRZQS1TBUY0djOC755IwZKGO6t4G++X+6UJPCCWKnMxFfwCfPJf5qFS0YTztUS4xNbhZ4uzcelCCZaI0Cip5Jf/AFWox91TEXWJSlPAxV6DGhliYAwFIh/5XJZZ5+us3Dl/xrSn76jgXyJcpqcJXf0VDqySYuzFt+tKTkU0XtzRKw9j5ipgJWlUyrW9yvDaYbGIMmV6P/OY4T6Z6nIWrW17IyIVP2yNEWtk8rxnIf8AopEFa0OSj2qZRhmwX6n49+QYNIS63t3qY0acfOva1LSVnE1poK8eKgOprHDsn09SozGMhPTA0S91hSQP/s7LuakZHZudNwNvKkWbCStTb0047gNTFDLKUud8L/dCPFWQjNjqOH229ujL8vPprR/vImJ1bvigntcuaLj3NKasSlPtjLckWEdRpmA9J0M3lRB5GGHpkOns5G1gV/TEe1Er/I+m++PSmqrOr5qfwOPt5mlm7chajWqrh5khYXikc3YbTEHjy5GDAbtG55hdJm3w61nK/d02Nii9ZFPrke4PU6npHr4oS0l1YeU+aErmvg3zRucQD8vZugM1yKfm3pfZ8UjdqZrF0ptyC9pdjyZGolGxeCPBzNneiLRKSGo58FoKOA9wfrtvSyzWNRQ1c8gmD0LXoEN1Fz8Dtg1bwtheMngXWpWv27zFT60ZmrflLccL/TOZRUmCDCxen5NM4clzUg7XdynPKXHSr4CAuA/uXh+SgAJVypAyZtFj4DlRUHLroWPE0iEhI6n4xZ/FptL2pTyoUJSx9lXXBn911+McKXllcxqVJLwwA/A4lZ0gLIQ8tHIjuBwnj40en//aAAwDAQACAAMAAAAQkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkhxkkkkkkkkkkkkkkkkkkkkkkkcwTAkkkkkkkkkkkkkkkkkkkgKDxC90kkkkkkkkkkkkkkkkkkC0eg3HSkkkkkkkkkkkkkkkkkgwsskkmn4kkkkkkkkkkkkkkkknmsskkkC2kkkkkkkkkkkkkkkkp0kkkkkmrkkkkkkkkkkkkkkkkickkkkkm3BMkkkkkkkkkkkkkkqAkkkkkkgUkkkkkkkkkkkkkkklfkkkkkkmkkkkkkkkkkkkkkkk3M0kkkkkCUkkkkkkkkkkkkkkkXd0kkkkn90kkkkkkkkkkkkkkkAWkkkkkoFGkkkkkkkkkkkkkkkf8AtJJJJJ69JJJJJJJJJJJJJJIVFpJJJJIPsJJJJJJJJJJJJJJASNpJJJJICrJJJJJJJJJJJJJJIuwZJJJJILBJJJJJJJJJJJJJJIFbZJJJJIPoJJJJJJJJJJJJJJIhvJZJJJJf1JJJJJJJJJJJJJJJK9zZJJJJt9JJJJJJJJJJJJJJJBlzJJJJIsNJJJJJJJJJJJJJJJIJ1JJJJJKpJJJJJJJJJJJJJJJJG7JJJJHvJJJJJJJJJJJJJJJJJC3JJJJDHJJJJJJJJJJJJJJJJJAX5JJIklJJJJJJJJJJJJJJJJJBb5JJNmDJJJJJJJJJJJJJJJJIFpJJJJIvJJJJJJJJJJJJJJJJBQjJJJABCJJJJJJJJJJJJJJJJLZZJJJJJCBJJJJJJJJJJJJJIKkpJJJJJJH1BJJJJJJJJJJJALBoJJJJJJJBAIJJJJJJJJJJBRCJJJJJJJJJAAJJDJJJJJJJBSSbBJJJJJJJJJJICYBJJJJJJa+LIJJJJJJJJJJJJBS2JJJJJAKDvJJJJJJJJJJJJJJAQQJJJJAR/wCSSSSSSSSSSSSSSQSiUSSQUSQSSSSSSSSSSSSSSSSSSySSQASSSSSSSSSSSSSSSSSSSSXbSSCCSSSSSSSSSSSSSSSSSSSSCSQQSSSSSSSSSSSSSSSSSSSSQSSASSSSSSSSSSSSSSSSSSSSSQCSQSSSSSSSSSSSSSSSSSSSSSSQT//EACQRAAIBBQEBAAICAwAAAAAAAAABERAhMDFQQEFRYSBwcYCB/9oACAEDAQE/EP8AameelNhwQlJCkcuKMl0liPlIZrjxFJJ/jIoEUNbcZCyjeFG0Rw0kdhjxoa4SUiD53wjsPMt0Oi92osJznfg6BpNhcqHrg7DciuFyo+cFCQg8ZEJD1wdhIiB8bLyDTg7UNm2RbJlGnASbcIWwQMeW5D/A2V/eiQY64tQNfR5dBZiLu/e0M/ZES/RAyJXgPP70wRDZsfM1bD3pjwvAPLf/AGXM+UrGhLGsEnAu0NFklDUC0eJCyoLRwmrApxIHjSFvJc8O1l6yt+JsO6HiZoPiloW+KDXF2Jgd8KFxmxbjmj4myzXw4FseWRkib8KdBc8COsa97EhSXS8CFfRr2RV8wSb0QV2g/wAE81NYJ/8AIlZMjJ9SibkPZeBJN2QlRdtTGL1pwKaT7YMgeRKXBKSFsdHwZg2GtscVYj5wYFR9FMfSn+zf/8QAIREBAAEFAQADAAMAAAAAAAAAAQAQETAxUCFAQXBRYID/2gAIAQIBAT8Q/wBUX6F5ZS/OtLVsUKX4zQpaNPqhGJQ4qwxtDhryJhkYQ4LFgZXiBhleHozXOwtqHA0YvKHPN0cYQyM0w4GtN4QyXoHAfloeQmmNpf1m2HBO4Q1DGkfKDgWfzUZfNA/P3xoWajMAIUPnrWZegy7zy1obh85iew1CGXeMH3D55t7DU8ewcq9j5D5wEuzxLeTTI6igX3gW4NxieZbqBdgWhwUg8nnJ4JpxBBtjKQtxX3DEzcOIy0MLH2aS3E0mkTA0tDiuRof1S/RaGdofljQ4DQ+A0Oe0PwlofpX/xAApEAEAAgIBAwMFAQEBAQEAAAABABEhMUFRYYEwUHEQIECRocGx8IDR/9oACAEBAAE/EP8A6nv6We3pzSlqL6HfeO0POEFUXo4NlW0d5q/LOFFzAbYxbtHLyDFbkaG8bh8PAoSsbJMTvIU1TaNwatpOQbrdNwRLNS79ocQoi3Opcg1PRexXEDx0hqb0gth86GC2vsQ2IBKKS+uWKqq2rf0NkQ8lTiC7x0yRMLljr2ImgiFJT+2MOhFHTQqVsFBaJUchqAhbVB1WdwMyFRBLETZ7MrHoQ/AppYjSjIa0e8cJzdYZujg7THCPP1NxL+g0iJyQEaIFh3RagbRlmnTqYSCsqoK7aCCrCewiCP8AfZFqPjZgNLiOQ4Gt8Rl9nvUE36dcCh2hET9QIVDdu1jQJdryGoFk6Fs0Howb9iTeKrZNHayW8XF+5CgqtpWhQDxweoaiW276EcUIC796WcAeS+IVmnsN0PKi0G9QUiSENAvGtYO1sZS3fq6QdN1AgF3m+RMuBjyxr/t7CEULugrdVbrmo1E9rVV+M3jFVqC279XSV902shClQxf9FXXR5zAofpp+cx284VQjlwecdmETVCUVeWKAb9WxcqqZNAZFpZdVkTOG5p7A+4NBDsRjavZ6vfvDZEU+tRS5uO4c1ywjqypp7ADVouboSuqKeeItYcY0XNj1miJi7ZcKA5V0/I8QKPYKVTGilmlrha3iGAIwkOUNY9UYfMGmgd0SRsGmlOrKJHD7AK6Rx1YDxjPaCQVwqKxRd8xHDDfb1LUqC3bOYA7I1EquPI+GBRR7ATdlE7iT+hEpcGkXfANxGG1bv1K7F3iFS8gfM3/X0LQJ3s9gC/089aHQAviKs7mxhO8a1fiD5R2JhGEauzGZenKeqbIhWqIdSAsckuwnt5WhaIaQ4TK6JiFpuuIP5rqUT+qr+XRfEuuBb3hypQG+xMb0PVNwIqj0jfOolAznWPRPkKKVzcsVf5wRljNk/wBJC2hWCCs8xDdkfJ/kxgVCsSn1DcQHYY6zGRUGq5RjNYJoW3s0+YKI/nZDHuU3d2QeSelMQ27yf9qUlUFf9Td6huMAWDfLCC4nwvKC13G0tPwfsgV+c5GVS0AzZDoGV1BzLblW9p0/+7TO6OgYZ5vmCl6u4QV2At/yHuMuFtlADa9IxhxQUbFcivYANPCwWzoGkeEEjtDCSa27479xmVsg+jf6p+oz5gpXmOn08mVaFzPoLE1X/wCNfqWUXlIQfJeO/ZKA6ewJcp9n2iDBQgLFEFnMMib6AUIWiEBoLe58/V/eZy9P+RLgesxMGSqFsdhAJNHccAFpYsdqqr7FVw/0QNg/Ty+ICxSPgajz6biWILcw7qC03rc6ovMN+xnAQvrR/AgzLRS2tPkp8y7H0jmExVvBB+045zD8CtakBk62fPshBSpcumOKhQLncu9OPhhxPpIQyrRDBMoBSf0/eHSBXsgIFlJ8l/sIkvY6CZXUTEAs498p6IKgbY4GtSOkf9eCF1SaKAQDoWnsoU+p/wBzLd0V65ZQ8DS6e/zDfRePv/sRYRuU3bodXjvAKEAddof7NpgWNFj/ACG/Y1oXpEgZITCmcASxlXiByzd5euWNPQGqeuNEcNfKuBkZgVHFQFbqkW4FdlA1Xb2JoQilRpUVbixuuVNChEQtFbg7VtXqywN/tGOvQN/QZiT9/YFB8P8AyE8bCB067RDmlqxsbLPYFQ9sxijuAmKKK1lqi3iCcu84bsQOqlysux9VwFxr4LP+ylq2/wCnhM0fmHzOTAqwLrDjljVXf5q0LuDdBadHJQHHK+1ZjcfBm0xZE3Y4VUsRKKOfm8wa6ahp9YSmFAe8bQath21E6CjQMMFNlQ5Lt+MN9oRs11l3+QxoK4DMOLbYAPRCeKmC4V5kapbqxXpRGg3Zo6qxsD6LYOhXr/oyF7HTjaocQPyLvpU90tDfCoBDdefKCicg05EG/wAYf8WAu0La7AwNF8IWGhI7Z9TcTW6L9CJ8SHaMtq3tcszR1uIi7v8ACMJ9hpCuztAbE4TMrhisT6xC6aHyJZQh3KObtZbrIfS/wHUzJwXIuFa9gy/IAgO++D5LgeLVVZwCnEUtrmLcYsj8/juoo5g1mqBNAyPcghtJClgApFLaaLttTe7geuuwu58XBuX6rhuGyRVTAFbYLjLbsbt72eNYI2gkRTovGRoAOkd6iAcl+p1H8g0+g1AEQBJ+UMGJQItSnnPmnaETA4ZshdbdushcH03hVXl/JLAZVj9LkQRpZ86uDoCM2W1HVUNXHRbhwOTff883ACOlqH+eNBpAR7kwZ3VXAU46hDyHLCZtCtlgMBOT0dpkArcOUnWs9ouq0Tqi2IfxAStC5/8AeYrX883B0GHrK7wWLVWcQQynMjbuOpjkunMo+snSZRku+HYpmDf3OoxYvczjH5R2FeJU9U1FtTta12PsMeyi1YsJm+K+cOrspzDx1rBiIFpRpppLM/cqFdQu2bHIT4Ye5KmMHTt7SCy1bLAMBiDPNX0w9X7lB5NMAtWNkEDm7+p5ly7I79o0jBMTOks7LHmAXGHpCxPH2hm53lsw6IpCuG+LqOvadIbazn00v+x8sZ2U83f7ItCuAnJQT2Zt8r8e2JAmG+GphGWZUqfYWwbpqFdWkSAKb7159tuUl7pX8hs8pp9P/9k=",j41={key:0,class:"AVResourceSection--image-container"},U41=["src","alt"],W41={class:"AVResourceFields"},J41={key:0,class:"AVResourceFields--title","data-test":"heading-title"},G41={key:1,class:"AVResourceFields--subtitle","data-test":"heading-subtitle"},Z41={key:2,class:"AVResourceFields--group-container","data-test":"heading-group"},Q41={class:"AVResourceFields--group"},Y41={key:1,class:"AVResourceFields--divisor"},K41={key:2,class:"AVResourceFields--link-list","data-test":"resource-link-list"},X41={key:0},e01={key:3,"data-test":"resource-checkbox-summary"},c01={key:4,"data-test":"resource-selection"},t01={key:0},l01={key:5,"data-test":"resource-video"},a01=["src"],n01=["innerHTML"],s01={key:7,class:"AVResourceFields--regular-content","data-test":"resource-regular-content"},o01={key:0},i01=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 t=c.computed(()=>{var p,h,M,v,b,C;return(h=(p=i.candidate.title)==null?void 0:p[0])!=null&&h.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}),l=c.computed(()=>{var p,h,M,v,b,C;return(h=(p=i.candidate.subtitle)==null?void 0:p[0])!=null&&h.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=[],h=[],M="";return i.currentCandidateGroup?i.candidate.groups.forEach(b=>{b.id===i.currentCandidateGroup?p.push(b):h.push(b)}):(h=[...i.candidate.groups],p=h.splice(0,1)),h.forEach((b,C)=>{C===0||i.candidate.groups.length===1?M=b.title[m.value]:C===h.length-1?M+=` & ${b.title[m.value]}`:M+=`, ${b.title[m.value]}`}),{title:(v=p[0])==null?void 0:v.title[m.value],surplus:h.length||null,remaining:M}}),s=c.computed(()=>i.summary?i.candidate.summary:i.candidate.generic.filter(p=>p.item_type!=="image")),n=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(h=>h.item_type==="image"))==null?void 0:p.form_content)||q41}),f=c.inject("i18n"),{t:u,d}=f.global,m=c.computed(()=>f.global.locale.value||f.global.locale);return c.onMounted(()=>{i.locale&&U(i.locale)}),c.watch(()=>i.locale,()=>{i.locale&&U(i.locale)},{deep:!0}),(p,h)=>{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",j41,[c.createElementVNode("img",{src:r.value,alt:c.unref(u)("js.components.AVResourceSection.alt_candidate"),class:"AVResourceSection--image","data-test":"resource-image"},null,8,U41)])):c.createCommentVNode("",!0),c.createElementVNode("div",{class:c.normalizeClass(e.summary?"AVResourceSection--fields-container":"AVResourceSection--generic-container")},[c.createElementVNode("div",W41,[e.summary&&t.value?(c.openBlock(),c.createElementBlock("h4",J41,c.toDisplayString(t.value),1)):c.createCommentVNode("",!0),e.summary&&l.value?(c.openBlock(),c.createElementBlock("h5",G41,c.toDisplayString(l.value),1)):c.createCommentVNode("",!0),e.summary&&e.candidate.groups&&!e.card?(c.openBlock(),c.createElementBlock("div",Z41,[c.createElementVNode("h4",Q41,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(s.value,C=>(c.openBlock(),c.createElementBlock(c.Fragment,{key:`attribute_${C.attribute_name}`},[n.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",Y41)):c.createCommentVNode("",!0),C.item_type==="link_list"&&o(C)?(c.openBlock(),c.createElementBlock("div",K41,[e.summary?(c.openBlock(),c.createElementBlock("span",X41,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",e01,[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",c01,[e.summary?(c.openBlock(),c.createElementBlock("span",t01,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",l01,[c.createElementVNode("iframe",{style:{width:"100%",height:"100%","min-height":"400px"},src:C.form_content.toString()},null,8,a01)])):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,n01)):C.item_type!=="rich_text_area"&&C.item_type!=="check_box"?(c.openBlock(),c.createElementBlock("p",s01,[e.summary?(c.openBlock(),c.createElementBlock("span",o01,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)}}}),eU=D(i01,[["__scopeId","data-v-9f104b97"]]),r01={class:"AVCalculateResultContent--container"},f01={class:"AVCalculateResultContent--information"},m01={class:"AVCalculateResultContent--information-set AVCalculateResultContent--role","data-test":"role"},u01={class:"AVCalculateResultContent--label"},d01={class:"AVCalculateResultContent--information-set AVCalculateResultContent--status","data-test":"status"},p01={class:"AVCalculateResultContent--label"},z01={class:"AVCalculateResultContent--status-information"},h01={class:"AVCalculateResultContent--information-set","data-test":"mixes"},L01={class:"AVCalculateResultContent--label"},g01={class:"AVCalculateResultContent--information-set","data-test":"decryptions"},C01={class:"AVCalculateResultContent--label"},M01={class:"AVCalculateResultContent--information-set","data-test":"time"},v01={class:"AVCalculateResultContent--label"},b01={class:"AVCalculateResultContent--elapsed"},A01=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 t=c.inject("i18n"),{t:l}=t.global,a=e,s=c.computed(()=>l(`js.components.AVCalculateResultContent.roles.${a.role}`)),n=c.computed(()=>l(`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&&U(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&U(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",r01,[c.createVNode(f,{value:e.progress,"data-test":"progress"},null,8,["value"]),c.createElementVNode("div",f01,[c.createElementVNode("div",m01,[c.createElementVNode("span",u01,c.toDisplayString(c.unref(l)("js.components.AVCalculateResultContent.roles.label")),1),c.createElementVNode("span",null,[c.createVNode(u,{icon:"user-shield"}),c.createTextVNode(" "+c.toDisplayString(s.value),1)])]),c.createElementVNode("div",d01,[c.createElementVNode("span",p01,c.toDisplayString(c.unref(l)("js.components.AVCalculateResultContent.status.label")),1),c.createElementVNode("span",z01,[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(n.value)+" ",1),e.status!=="finished"?(c.openBlock(),c.createBlock(d,{key:0})):c.createCommentVNode("",!0)])]),c.createElementVNode("div",h01,[c.createElementVNode("span",L01,c.toDisplayString(c.unref(l)("js.components.AVCalculateResultContent.mixes.label")),1),c.createElementVNode("span",null,c.toDisplayString(`${e.mixes[0]}/${e.mixes[1]}`),1)]),c.createElementVNode("div",g01,[c.createElementVNode("span",C01,c.toDisplayString(c.unref(l)("js.components.AVCalculateResultContent.decryptions.label")),1),c.createElementVNode("span",null,c.toDisplayString(`${e.decryptions[0]}/${e.decryptions[1]}`),1)]),c.createElementVNode("div",M01,[c.createElementVNode("span",v01,c.toDisplayString(c.unref(l)("js.components.AVCalculateResultContent.elapsed.label")),1),c.createElementVNode("time",b01,c.toDisplayString(e.elapsed),1)])])])}}}),cU=D(A01,[["__scopeId","data-v-ad18a2ae"]]),_01={class:"AVNormalSummary--container"},N01={class:"AVNormalSummary"},k01=c.defineComponent({__name:"AVNormalSummary",props:{sortedResult:{type:Array,required:!0},hidePercentage:{type:Boolean,default:!1},disregardBlank:{type:Boolean,default:!1},totalCount:{type:Number,required:!0}},setup(e){const t=e,l=a=>a==="blank"&&t.disregardBlank?!0:t.hidePercentage;return(a,s)=>{const n=c.resolveComponent("AVResultOption");return c.openBlock(),c.createElementBlock("div",_01,[c.createElementVNode("div",N01,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.sortedResult,o=>(c.openBlock(),c.createBlock(n,{key:`result_for_${o.reference}`,optionTitle:o.title,optionImage:o.image,votes:o.count,total:e.totalCount,elected:o.elected,tied:o.tied,"hide-percentage":l(o.reference),"data-test":"result-option"},null,8,["optionTitle","optionImage","votes","total","elected","tied","hide-percentage"]))),128))])])}}}),tU=D(k01,[["__scopeId","data-v-9ef35b76"]]),x01={class:"AVRankedSummary--container"},y01={class:"AVRankedSummary--table",id:"ranked_summary_table","data-test":"table"},V01={class:"AVRankedSummary--heading"},S01={key:0},w01={key:1},E01={key:2},B01=c.defineComponent({__name:"AVRankedSummary",props:{result:{type:Array,required:!0},distributionNumber:{type:Number,required:!0},seats:{typ:Number,required:!0},locale:{type:String,default:"en"},theme:{type:String,default:"light"}},setup(e){const t=e,l=c.computed(()=>{var r,f;return((f=(r=t.result[0])==null?void 0:r.rounds)==null?void 0:f.length)??0}),a=c.computed(()=>t.result.filter(r=>r.elected).map(r=>r.title[i.value]??Object.values(r.title)[0])),s=c.computed(()=>t.result.filter(r=>r.tied).map(r=>r.title[i.value]??Object.values(r.title)[0])),n=c.inject("i18n"),{t:o}=n.global,i=c.computed(()=>n.global.locale.value||n.global.locale);return c.onMounted(()=>{t.locale&&U(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&U(t.locale)},{deep:!0}),(r,f)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createElementVNode("div",x01,[c.createElementVNode("table",y01,[c.createElementVNode("thead",V01,[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(l.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(e.result,(u,d)=>(c.openBlock(),c.createElementBlock("tr",{key:`option_${u.reference}`,class:c.normalizeClass({"AVRankedSummary--elected":u.elected,"AVRankedSummary--tied":u.tied}),"data-test":"candidate-ranked-result"},[c.createElementVNode("td",null,c.toDisplayString(u.elected&&d+1||""),1),c.createElementVNode("td",{class:c.normalizeClass({[`AVRankedSummary--text-${e.theme}`]:!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===l.value,[`AVRankedSummary--text-${e.theme}`]:!u.elected&&!u.tied}])},c.toDisplayString(m.count),3))),128))],2))),128))])])]),c.createElementVNode("div",{class:c.normalizeClass(`AVRankedSummary--summary AVRankedSummary--text-${e.theme}`),"data-test":"summary"},[c.createElementVNode("p",null,c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.summary.seats"))+": "+c.toDisplayString(e.seats),1),e.distributionNumber>0?(c.openBlock(),c.createElementBlock("p",S01,c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.summary.distribution"))+": "+c.toDisplayString(e.distributionNumber),1)):c.createCommentVNode("",!0),a.value.length>0?(c.openBlock(),c.createElementBlock("p",w01,[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),s.value.length>0?(c.openBlock(),c.createElementBlock("p",E01,[c.createTextVNode(c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.summary.tied"))+": ",1),c.createElementVNode("span",null,c.toDisplayString(s.value.join(", ")),1)])):c.createCommentVNode("",!0)],2)],64))}}),lU=D(B01,[["__scopeId","data-v-32323466"]]),T01={class:"AVInstantRunoffSummary"},H01={class:"AVInstantRunoffSummary--container"},I01={class:"AVInstantRunoffSummary--table-container"},D01={class:"AVInstantRunoffSummary--table",id:"ranked_summary_table","data-test":"table"},O01={class:"AVInstantRunoffSummary--heading"},P01=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 t=e,l=(r,f)=>t.rounds[f].counts[r]||0,a=(r,f)=>t.rounds[f].eliminated===r&&"AVInstantRunoffSummary--eliminated",s=(r,f)=>t.rounds[f].elected===r&&"AVInstantRunoffSummary--elected",n=c.inject("i18n"),{t:o}=n.global,i=c.computed(()=>n.global.locale.value||n.global.locale);return c.onMounted(()=>{t.locale&&U(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&U(t.locale)},{deep:!0}),(r,f)=>{const u=c.resolveComponent("AVIcon"),d=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",T01,[c.createElementVNode("h5",{class:c.normalizeClass(["AVInstantRunoffSummary--title",`AVInstantRunoffSummary--text-${e.theme}`]),"data-test":"seat-title"},c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.seat_n",{n:e.seatNumber})),3),c.createElementVNode("div",H01,[c.createElementVNode("div",I01,[c.createElementVNode("table",D01,[c.createElementVNode("thead",O01,[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"},[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",{class:c.normalizeClass(`AVInstantRunoffSummary--text-${e.theme}`)},c.toDisplayString(m.title[i.value]),3),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.rounds.length,h=>(c.openBlock(),c.createElementBlock("td",{key:`instant_runoff_seat_${e.seatNumber}_number_${h}`,class:c.normalizeClass(["AVInstantRunoffSummary--text",{"AVInstantRunoffSummary--elected":s(m.reference,h-1),"AVInstantRunoffSummary--eliminated":a(m.reference,h-1),[`AVInstantRunoffSummary--text-${e.theme}`]:!0}])},c.toDisplayString(l(m.reference,h-1)),3))),128))],64)):c.createCommentVNode("",!0)]))),128)),c.createElementVNode("tr",null,[c.createElementVNode("td",{class:c.normalizeClass(`AVInstantRunoffSummary--text-${e.theme}`)},c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.transfered_votes")),3),(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:c.normalizeClass(["AVInstantRunoffSummary--text",`AVInstantRunoffSummary--text-${e.theme}`])},c.toDisplayString(e.rounds[m-1].transferred),3))),128))]),c.createElementVNode("tr",null,[c.createElementVNode("td",{class:c.normalizeClass(`AVInstantRunoffSummary--text-${e.theme}`)},c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.exhausted")),3),(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:c.normalizeClass(["AVInstantRunoffSummary--text AVInstantRunoffSummary--cell-text",`AVInstantRunoffSummary--text-${e.theme}`])},c.toDisplayString(e.rounds[m-1].exhausted),3))),128))])])])]),e.votesNotIncluded?(c.openBlock(),c.createElementBlock("p",{key:0,class:c.normalizeClass(["AVInstantRunoffSummary--summary",`AVInstantRunoffSummary--text-${e.theme}`]),"data-test":"not-included"},[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.not_included_count")),1),c.createTextVNode(" "+c.toDisplayString(e.votesNotIncluded),1)],2)):c.createCommentVNode("",!0),c.createElementVNode("p",{class:c.normalizeClass(["AVInstantRunoffSummary--summary",`AVInstantRunoffSummary--text-${e.theme}`]),"data-test":"abstain"},[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.abstain")),1),c.createTextVNode(" "+c.toDisplayString(e.blankVotes),1)],2),c.createElementVNode("p",{class:c.normalizeClass(["AVInstantRunoffSummary--summary",`AVInstantRunoffSummary--text-${e.theme}`]),"data-test":"total"},[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.total_votes")),1),c.createTextVNode(" "+c.toDisplayString(e.totalVotes),1)],2),c.createElementVNode("p",{class:c.normalizeClass(["AVInstantRunoffSummary--summary",`AVInstantRunoffSummary--text-${e.theme}`]),"data-test":"quota"},[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.quota")),1),c.createTextVNode(" "+c.toDisplayString(e.quota),1)],2)])])}}}),aU=D(P01,[["__scopeId","data-v-28f67e70"]]);var R01={},F01={class:"flex items-center"},$01={class:"flex flex-col items-center justify-center p-3 w-full"};function q01(e,t){var l=c.resolveComponent("AVNavbarItem"),a=c.resolveComponent("AVNavigationItemList"),s=c.resolveComponent("AVMenuDropdown"),n=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(n,null,{default:c.withCtx(function(){return[t[0]||(t[0]=c.createElementVNode("a",{href:"#"},"LOGO",-1)),c.createElementVNode("div",F01,[c.createVNode(a,{type:"navbar"},{default:c.withCtx(function(){return[c.createVNode(l,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(l,{label:"Admins",icon:"user-shield",href:"#"})]}),_:1}),c.createVNode(s,{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",$01,[t[1]||(t[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 t[2]||(t[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 nU=D(R01,[["render",q01]]);var j01={},U01={class:"flex items-center"},W01={class:"flex flex-col items-center justify-center p-3 w-full"};function J01(e,t){var l=c.resolveComponent("AVNavbarItem"),a=c.resolveComponent("AVNavigationItemList"),s=c.resolveComponent("AVMenuDropdown"),n=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(n,null,{default:c.withCtx(function(){return[t[0]||(t[0]=c.createElementVNode("a",{href:"#"},"LOGO",-1)),c.createElementVNode("div",U01,[c.createVNode(a,{type:"navbar"},{default:c.withCtx(function(){return[c.createVNode(l,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(l,{label:"Admins",icon:"user-shield",href:"#"})]}),_:1}),c.createVNode(s,{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,[t[1]||(t[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 t[2]||(t[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 sU=D(j01,[["render",J01]]);var G01={},Z01={class:"flex items-center"};function Q01(e,t){var l=c.resolveComponent("AVNavbarItem"),a=c.resolveComponent("AVNavigationItemList"),s=c.resolveComponent("AVMenuDropdown"),n=c.resolveComponent("AVNavbar"),o=c.resolveComponent("AVContent"),i=c.resolveComponent("AVFooter");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(n,null,{default:c.withCtx(function(){return[t[0]||(t[0]=c.createElementVNode("a",{href:"#"},"LOGO",-1)),c.createElementVNode("div",Z01,[c.createVNode(a,{type:"navbar"},{default:c.withCtx(function(){return[c.createVNode(l,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(l,{label:"Admins",icon:"user-shield",href:"#"})]}),_:1}),c.createVNode(s,{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 t[1]||(t[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 oU=D(G01,[["render",Q01]]),Y01={class:"flex items-center"},K01={href:"/new"},X01={class:"new-election-button"},e61={key:0,class:"no-elections-container"},c61=c.defineComponent({__name:"ElectionDashboardLayout",setup(e){const t=[{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(l,a)=>{const s=c.resolveComponent("AVNavbarItem"),n=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",Y01,[c.createVNode(n,{type:"navbar"},{default:c.withCtx(()=>[c.createVNode(s,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(s,{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",K01,[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",X01,[c.createVNode(r,{icon:"fa-solid fa-circle-plus",class:"new-election-icon"})])]),_:1})]),t.length===0?(c.openBlock(),c.createElementBlock("div",e61,[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(t,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)}}}),iU=D(c61,[["__scopeId","data-v-20fc858f"]]),t61={install:function(e,t){t===void 0&&(t=null),e.use(oZ),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",tj),e.component("AVAlert",lj),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("AVAnimatedTransition",vj),e.component("AVCollapser",bj),e.component("AVLinkVisualizer",Aj),e.component("AVVerticalStep",YX),e.component("AVAnimatedMenuButton",XX),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",Dj),e.component("AVSplitWeightHelper",Oj),e.component("AVSplitWizardHeader",Pj),e.component("AVElectaContestCard",Rj),e.component("AVResultOption",Fj),e.component("AVRecommendationList",$j),e.component("AVFooter",qj),e.component("AVSidebar",jj),e.component("AVNavbar",Uj),e.component("AVContent",Wj),e.component("AVModal",Jj),e.component("AVBallot",Qj),e.component("AVPileSummary",Yj),e.component("AVSplitHelper",Xj),e.component("AVResourceSection",eU),e.component("AVCalculateResultContent",cU),e.component("AVNormalSummary",tU),e.component("AVRankedSummary",lU),e.component("AVInstantRunoffSummary",aU),e.component("OneColumnLayout",nU),e.component("TwoColumnsLayout",sU),e.component("NoSidebarLayout",oU),e.component("ElectionDashboardLayout",iU),e.provide("i18n",t||Xn),e.provide("iconNames",R$)}};exports.AVAlert=lj;exports.AVAnimatedTransition=vj;exports.AVAsyncButton=dj;exports.AVBallot=Qj;exports.AVBallotStyleCard=Sj;exports.AVBallotSummary=zj;exports.AVBasicSteps=Lj;exports.AVBlankOption=Tj;exports.AVBreadcrumb=yj;exports.AVBullet=o4;exports.AVButton=jq;exports.AVCalculateResultContent=cU;exports.AVCard=Kq;exports.AVCollapser=bj;exports.AVContent=Wj;exports.AVDatetimeInput=Zq;exports.AVDropdown=ej;exports.AVDropdownContent=cj;exports.AVDropdownItem=tj;exports.AVElectaContestCard=Rj;exports.AVElectionCard=Vj;exports.AVFileInput=aj;exports.AVFooter=qj;exports.AVIcon=qq;exports.AVInstantRunoffSummary=aU;exports.AVLabel=Yq;exports.AVLink=sj;exports.AVLinkVisualizer=Aj;exports.AVMenuDropdown=fj;exports.AVMenuDropdownContent=mj;exports.AVMenuDropdownItem=uj;exports.AVModal=Jj;exports.AVNavbar=Uj;exports.AVNavbarItem=oj;exports.AVNavigationItemList=xj;exports.AVNormalSummary=tU;exports.AVNumberInput=Jq;exports.AVOption=Bj;exports.AVOptionCheckbox=Mj;exports.AVOptionSelect=Cj;exports.AVPasswordInput=Gq;exports.AVPileSummary=Yj;exports.AVProgressBar=_j;exports.AVRadio=nj;exports.AVRadioGroup=kj;exports.AVRankedSummary=lU;exports.AVRecommendationList=$j;exports.AVResourceSection=eU;exports.AVResultOption=Fj;exports.AVRoundButton=Xq;exports.AVSearchBallot=Dj;exports.AVSidebar=jj;exports.AVSidebarItem=ij;exports.AVSpinner=Uq;exports.AVSplitHelper=Xj;exports.AVSplitWeightHelper=Oj;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.AVWaitingDots=Nj;exports.AVWriteInOption=Hj;exports.ElectionDashboardLayout=iU;exports.NoSidebarLayout=oU;exports.OneColumnLayout=nU;exports.TwoColumnsLayout=sU;exports.default=t61;exports.iconNames=R$;
586
+ `:""),r=()=>{t.linkMode||setTimeout(()=>s.value=a.value.clientHeight,t.collapsed?0:250)},f=()=>{if(!t.linkMode&&!t.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",IX,[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",OX)):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",PX,[c.createVNode(m,{icon:"grip-vertical"})])):e.summary?(c.openBlock(),c.createElementBlock("div",RX,[c.createElementVNode("div",FX,[c.createVNode(m,{icon:"grip-vertical"})]),c.createElementVNode("div",$X,[c.createVNode(m,{icon:"arrow-left"})])])):e.linkMode&&e.status==="active"?(c.openBlock(),c.createElementBlock("div",qX,[c.createElementVNode("span",jX,c.toDisplayString(l.value),1)])):e.linkMode?(c.openBlock(),c.createElementBlock("div",UX,[c.createElementVNode("div",WX,[c.createElementVNode("span",JX,c.toDisplayString(l.value),1)]),c.createElementVNode("div",GX,[c.createVNode(m,{icon:"arrow-right"})])])):(c.openBlock(),c.createElementBlock("div",ZX,[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,DX),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)])}}}),YX=D(QX,[["__scopeId","data-v-1d5e5b5f"]]),KX=c.defineComponent({__name:"AVAnimatedMenuButton",props:{isOpened:{type:Boolean,default:!1}},emits:["update:isOpened"],setup(e,{emit:t}){const l=t;return(a,s)=>(c.openBlock(),c.createElementBlock("button",{class:c.normalizeClass(["AVAnimatedMenuButton",{"AVAnimatedMenuButton--opened":e.isOpened}]),onClick:s[0]||(s[0]=n=>l("update:isOpened",!e.isOpened))},[c.createElementVNode("span",{class:c.normalizeClass(["AVAnimatedMenuButton--icon",{"AVAnimatedMenuButton--icon-opened":e.isOpened}])},s[1]||(s[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))}}),XX=D(KX,[["__scopeId","data-v-90e59491"]]),e11={class:"AVProgressBar"},c11={class:"AVProgressBar--container"},t11=c.defineComponent({__name:"AVProgressBar",props:{value:{type:Number,required:!0,validate:e=>e>=0&&e<=100},hidePercentage:{type:Boolean,default:!1}},setup(e){return(t,l)=>(c.openBlock(),c.createElementBlock("div",e11,[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",c11,[c.createElementVNode("div",{class:c.normalizeClass(["AVProgressBar--filling",{"AVProgressBar--success":e.value===100}]),style:c.normalizeStyle(`width: ${e.value}%;`)},null,6)])]))}}),_j=D(t11,[["__scopeId","data-v-9c071d60"]]);var l11={},a11={class:"AVWaitingDots--container"};function n11(e,t){return c.openBlock(),c.createElementBlock("div",a11,t[0]||(t[0]=[c.createElementVNode("div",{class:"AVWaitingDots"},null,-1)]))}const Nj=D(l11,[["render",n11],["__scopeId","data-v-f13d66c0"]]),s11={class:"AVRadioGroup--input-set"},o11=["for"],i11={key:1,class:"AVRadioGroup--error","data-test":"error-msg"},r11=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:t}){const l=e,a=t,s=c.ref(""),n=c.ref([]),o=u=>{n.value.map(d=>{d.value===u?(d.checked=!0,s.value=d.value):d.checked=!1})},i=()=>{if(n.value.map(u=>u.disabled=!1),l.disabled)n.value.map(u=>{l.disabled.map(d=>d===u.value?u.disabled=!0:u)});else return};c.onMounted(()=>{l.options.map(u=>n.value.push({value:u,checked:!1})),l.initialValue&&o(l.initialValue),l.disabled&&i()});const r=u=>{o(u),f()},f=()=>{a("update",s.value,n.value)};return c.watch(()=>l.initialValue,()=>{s.value=l.initialValue,o(l.initialValue)}),c.watch(()=>l.disabled,()=>{i()}),(u,d)=>{const m=c.resolveComponent("AVRadio");return c.openBlock(),c.createElementBlock("div",s11,[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,o11)),c.createElementVNode("div",{class:c.normalizeClass(`AVRadioGroup--${e.orientation}`),"data-test":"input-group"},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.value,(p,h)=>(c.openBlock(),c.createBlock(m,{class:"AVRadioGroup--child",id:`radio-${e.id}-${h}`,key:h,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",i11,c.toDisplayString(e.errorMessage),1)):c.createCommentVNode("",!0)])}}}),kj=D(r11,[["__scopeId","data-v-74ff59b8"]]),f11=c.defineComponent({__name:"AVNavigationItemList",props:{type:{type:String,validate:e=>["navbar","sidebar"].includes(e),default:"navbar"}},setup(e){return(t,l)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(`AVNavigationItemList AVNavigationItemList--${e.type}`)},[c.renderSlot(t.$slots,"default",{},void 0,!0)],2))}}),xj=D(f11,[["__scopeId","data-v-9fd5c53d"]]),m11={class:"AVBreadcrumb"},u11=["href"],d11=["href"],p11=c.defineComponent({__name:"AVBreadcrumb",props:{items:{type:Array,required:!0},disableButton:{type:Boolean,default:!1},buttonHref:{type:String,default:null}},setup(e){return(t,l)=>{const a=c.resolveComponent("AVIcon");return c.openBlock(),c.createElementBlock("div",m11,[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,u11),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.items,(s,n)=>(c.openBlock(),c.createElementBlock("span",{key:n,class:"AVBreadcrumb--group","data-test":"item-group"},[c.createElementVNode("a",{href:s.active?null:s.href,class:c.normalizeClass(["AVBreadcrumb--link",{"AVBreadcrumb--link-active":s.active}])},c.toDisplayString(s.text),11,d11),c.createVNode(a,{icon:"fa-solid fa-angle-right",class:"AVBreadcrumb--separator"})]))),128))])}}}),yj=D(p11,[["__scopeId","data-v-479a161a"]]),z11=["href"],h11={class:"AVElectionCard--inner"},L11={class:"AVElectionCard--id","data-test":"id"},g11={class:"AVElectionCard--title-group"},C11={class:"AVElectionCard--title","data-test":"title"},M11={class:"AVElectionCard--items"},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--item","data-test":"item"},y11={class:"AVElectionCard--item-icon"},V11={class:"AVElectionCard--item-text"},S11={class:"AVElectionCard--button"},w11=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 t=e,l={draft:"info",open:"success",closed:"danger",archived:"default"},a=c.computed(()=>l[t.status]);return(s,n)=>{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",h11,[c.createElementVNode("span",L11,c.toDisplayString(e.id),1),c.createElementVNode("div",g11,[c.createElementVNode("span",C11,c.toDisplayString(e.name),1),c.createVNode(o,{type:a.value,value:e.status},null,8,["type","value"])]),c.createElementVNode("div",M11,[c.createElementVNode("div",v11,[c.createElementVNode("div",b11,[c.createVNode(i,{icon:"fa-solid fa-location-pin"})]),c.createElementVNode("span",A11,[c.createTextVNode(c.toDisplayString(e.countyNameLabel),1),c.createElementVNode("strong",null,c.toDisplayString(e.countyName),1)])]),c.createElementVNode("div",_11,[c.createElementVNode("div",N11,[c.createVNode(i,{icon:"fa-solid fa-file-circle-plus"})]),c.createElementVNode("span",k11,[c.createTextVNode(c.toDisplayString(e.createdAtLabel),1),c.createElementVNode("strong",null,c.toDisplayString(e.createdAt),1)])]),c.createElementVNode("div",x11,[c.createElementVNode("div",y11,[c.createVNode(i,{icon:"fa-solid fa-pen-to-square"})]),c.createElementVNode("span",V11,[c.createTextVNode(c.toDisplayString(e.lastUpdatedLabel),1),c.createElementVNode("strong",null,c.toDisplayString(e.lastUpdated),1)])])])]),c.createElementVNode("div",S11,[c.createVNode(i,{icon:"fa-solid fa-circle-chevron-right",class:"AVElectionCard--CTA-icon"})])]),_:1})],8,z11)}}}),Vj=D(w11,[["__scopeId","data-v-dd72671e"]]),E11=["href"],B11={class:"AVBallotStyleCard--content"},T11={key:0,class:"AVBallotStyleCard--completion-icon","data-test":"success-icon"},H11={class:"AVBallotStyleCard--text-container"},I11={class:"AVBallotStyleCard--title","data-test":"title"},D11={class:"AVBallotStyleCard--text","data-test":"text"},O11={class:"AVBallotStyleCard--CTA-icon"},P11=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(t,l)=>{const a=c.resolveComponent("AVIcon"),s=c.resolveComponent("AVCard");return c.openBlock(),c.createElementBlock("a",{href:e.href,class:"AVBallotStyleCard",role:"button","data-test":"link"},[c.createVNode(s,{variant:"rounded"},{default:c.withCtx(()=>[c.createElementVNode("div",B11,[e.reviewed?(c.openBlock(),c.createElementBlock("div",T11,[c.createVNode(a,{icon:"fa-solid fa-check"})])):c.createCommentVNode("",!0),c.createElementVNode("div",H11,[c.createElementVNode("div",I11,c.toDisplayString(e.name),1),c.createElementVNode("div",D11,c.toDisplayString(`${e.contestQty} ${e.contestLabel}`),1)])]),c.createElementVNode("div",O11,[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,E11)}}}),Sj=D(P11,[["__scopeId","data-v-c682a2cf"]]),R11=["aria-label"],F11={key:0,class:"AVSummaryOption--ancestry"},$11={class:"AVSummaryOption--breadcrumb","data-test":"summary-option-ancestry"},q11=["src","alt"],j11={class:"AVSummaryOption--body"},U11={class:"AVSummaryOption--title"},W11={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 t=e,l=c.computed(()=>{var u,d;return((u=t.option)==null?void 0:u.crosses)&&((d=t.option)==null?void 0:d.crosses)>1&&t.multipleVotesAllowed&&!t.blank}),a=c.computed(()=>t.parents.length<1?null:t.parents.map(u=>u.title[f.value]).reverse()),s=c.computed(()=>{var u;return t.blank?r("js.components.AVSummaryOption.blank"):(u=t.option)==null?void 0:u.title[f.value]}),n=c.computed(()=>{var h,M;const u=Array.from(Array((h=t.option)==null?void 0:h.crosses).keys());u.forEach(v=>u[v]=v+1);const d=u.indexOf(Math.ceil(((M=t.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(()=>t.option.image.includes("square")?t.option.image:`${t.option.image}/${t.imageOption}`),i=c.inject("i18n"),{t:r}=i.global,f=c.computed(()=>i.global.locale.value||i.global.locale);return c.onMounted(()=>{t.locale&&U(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&U(t.locale)},{deep:!0}),(u,d)=>{var p,h;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",F11,[c.createElementVNode("ul",$11,[(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":l.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,q11)):c.createCommentVNode("",!0),c.createElementVNode("div",j11,[c.createElementVNode("div",U11,c.toDisplayString(s.value),1)]),l.value?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",W11,[c.createVNode(m,{checked:!0,rank:(h=e.option)==null?void 0:h.rank,disabled:!0,"data-test":"summary-cross"},null,8,["rank"])]))],2),l.value?(c.openBlock(),c.createElementBlock("div",J11,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.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,R11)}}}),pn=c.ref(new Map);function Ej(){function e(t,...l){pn.value.set(t,l)}return{eventBusEmit:e,eventBus:pn}}const G11=["id","href","aria-labelledby"],Z11=["aria-label"],Q11={class:"AVOption--header-container","data-test":"option-content"},Y11={class:"AVOption--header"},K11=["src","alt"],X11=["textContent"],e21={key:0,class:"AVOption--body","data-test":"option-summary"},c21={key:0,class:"AVOption--description","data-test":"option-description"},t21=["innerHTML"],l21={key:1,class:"AVOption--links-container"},a21=["href"],n21={key:2,class:"AVOption--children-container","data-test":"option-children"},s21=["id"],o21=["innerHTML"],i21={key:1,class:"AVOption--realtime-results AVOption--realtime-results-internal","data-test":"option-partialresults"},r21={class:"AVOption--realtime-results","data-test":"option-realtimeresults"},f21={key:0,class:"AVOption--children","data-test":"option-children"},m21=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:t}){const{eventBus:l}=Ej(),a=c.ref(!1),s=c.ref(null),n=e,o=t,i=c.computed(()=>document.getElementsByTagName("html")[0].dir==="rtl"),r=c.computed(()=>n.contest.markingType.voteVariation==="ranked"),f=c.computed(()=>n.selections.filter(S=>S.reference===n.option.reference).length),u=c.computed(()=>n.option.title[R.value]??""),d=c.computed(()=>{var S;return((S=n.option.description)==null?void 0:S[R.value])??""}),m=c.computed(()=>{var S;return((S=n.option.url)==null?void 0:S[R.value])??""}),p=c.computed(()=>{var S;return((S=n.option.videoUrl)==null?void 0:S[R.value])??""}),h=c.computed(()=>n.option.image.includes("square")?n.option.image:`${n.option.image}/${n.imageOption}`),M=c.computed(()=>{const 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(()=>n.option.children&&n.option.children.length>0),b=c.computed(()=>n.option.selectable!==void 0&&!n.option.selectable?0:g.value?1:n.option.voteLimit||n.contest.markingType.votesAllowedPerOption||1),C=c.computed(()=>n.selections.length>0?V(n.option.children):0),g=c.computed(()=>n.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(()=>n.partialResults?n.partialResults[n.option.reference]:null),_=(S,$=1)=>{o("checked",{reference:S,amount:$})},V=S=>{if(!S)return 0;const $=S.filter(J=>n.selections.map(I=>I.reference).includes(J.reference)).length;return S.reduce((J,I)=>J+V(I.children),$)},x=S=>{a.value=!1,S===n.option.reference&&(o("accordion-open"),c.nextTick(()=>{a.value=!0,s.value.scrollIntoView&&s.value.scrollIntoView({behavior:"smooth",block:"center"})}))};c.watch(()=>l.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(()=>{n.locale&&U(n.locale)}),c.watch(()=>n.locale,()=>{n.locale&&U(n.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,G11),c.createVNode(o1,{collapsable:e.contest.collapsable&&v.value,"start-collapsed":e.contest.collapseDefault&&!e.observerMode,onAccordionOpen:$[2]||($[2]=u1=>o("accordion-open"))},c.createSlots({toggle:c.withCtx(({isOpen:u1,collapsable:v1})=>[c.createElementVNode("section",{ref_key:"el",ref:s,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",Q11,[c.createElementVNode("header",Y11,[e.option.image?(c.openBlock(),c.createElementBlock("img",{key:0,src:h.value,alt:c.unref(E)("js.components.AVOption.aria_labels.option_image"),class:"AVOption-image","data-test":"option-image"},null,8,K11)):c.createCommentVNode("",!0),c.createElementVNode("h5",{class:"AVOption--title",textContent:c.toDisplayString(u.value)},null,8,X11)]),d.value||M.value.length||v.value||e.option.candidateId?(c.openBlock(),c.createElementBlock("div",e21,[d.value?(c.openBlock(),c.createElementBlock("div",c21,[c.createElementVNode("p",{innerHTML:d.value},null,8,t21)])):c.createCommentVNode("",!0),M.value.length>0||e.option.candidateId?(c.openBlock(),c.createElementBlock("div",l21,[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,a21))),128))])):c.createCommentVNode("",!0),v1&&v.value?(c.openBlock(),c.createElementBlock("div",n21,[c.createElementVNode("div",{id:`option_${e.option.reference}_dropdown`,class:"AVOption--expander-container","aria-hidden":"true","data-test":"option-expander"},[c.createVNode(J,{icon:"chevron-down",class:c.normalizeClass(["AVOption--expander-icon",{"AVOption--expander-icon-opened-ltr":u1&&!i.value,"AVOption--expander-icon-opened-rtl":u1&&i.value}])},null,8,["class"]),c.createElementVNode("span",{class:"AVOption--expander-help-text",innerHTML:u1?c.unref(E)("js.components.AVOption.collapse_text"):c.unref(E)("js.components.AVOption.expand_text")},null,8,o21)],8,s21),C.value&&!u1?(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(d1=>d1.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:d1=>_(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",i21,[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,Z11)]),pane:c.withCtx(({toggleCollapse:u1})=>[v.value?(c.openBlock(),c.createElementBlock("div",f21,[(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:()=>u1(!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",r21,[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=D(m21,[["__scopeId","data-v-78af5c6a"]]),u21=["aria-label"],d21={class:"AVBlankOption--header","aria-hidden":"true","data-test":"option-content"},p21={class:"AVBlankOption--title"},z21={class:"AVBlankOption--checkbox"},h21={key:0,class:"AVBlankOption--realtime-results AVOption--realtime-results-internal","data-test":"partial-results"},L21={key:0,class:"AVBlankOption--realtime-results","data-test":"realtime-results"},g21=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 t=c.inject("i18n"),{t:l}=t.global,a=e;c.onMounted(()=>{a.locale&&U(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&U(a.locale)},{deep:!0});const s=c.computed(()=>document.getElementsByTagName("html")[0].dir==="rtl");return(n,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(l)("js.components.AVBlankOption.aria_labels.option"),"data-test":"option-container"},[c.createElementVNode("div",d21,[c.createElementVNode("h5",p21,c.toDisplayString(c.unref(l)("js.components.AVBlankOption.title")),1),c.createElementVNode("div",z21,[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=>n.$emit("toggleBlank")),"data-test":"blank-checkbox"},null,8,["checked","exclusive-error","invalid","disabled"])]),e.partialResults&&(e.observerMode||e.disabled)?(c.openBlock(),c.createElementBlock("div",h21,[c.createVNode(r,{icon:"user",class:"AVBlankOption--realtime-results-icon"}),c.createElementVNode("span",null,c.toDisplayString(s.value?`${e.partialResults.results.count===1?c.unref(l)("js.components.AVBlankOption.vote_count_singular"):c.unref(l)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}`:`${e.partialResults.results.count} ${e.partialResults.results.count===1?c.unref(l)("js.components.AVBlankOption.vote_count_singular"):c.unref(l)("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,u21),!e.disabled&&e.partialResults&&!e.observerMode?(c.openBlock(),c.createElementBlock("div",L21,[c.createVNode(r,{icon:"user",class:"AVBlankOption--realtime-results-icon"}),c.createElementVNode("span",null,c.toDisplayString(s.value?`${e.partialResults.results.count===1?c.unref(l)("js.components.AVBlankOption.vote_count_singular"):c.unref(l)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}`:`${e.partialResults.results.count} ${e.partialResults.results.count===1?c.unref(l)("js.components.AVBlankOption.vote_count_singular"):c.unref(l)("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=D(g21,[["__scopeId","data-v-d585dd76"]]),C21=["aria-label"],M21={class:"AVWriteInOption--header"},v21={class:"AVWriteInOption--container"},b21={id:"option_writeIn",class:"AVWriteInOption--title"},A21={class:"AVWriteInOption--form-group"},_21=["aria-label","disabled"],N21={value:""},k21=["value","selected"],x21=["value","placeholder","aria-label","disabled"],y21=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:t}){const l=c.inject("i18n"),{t:a}=l.global,s=e,n=t;c.onMounted(()=>{s.locale&&U(s.locale)}),c.watch(()=>s.locale,()=>{s.locale&&U(s.locale)},{deep:!0});const o=f=>{n("update:candidateValue",f),r()},i=f=>{n("update:partyValue",f),r()},r=()=>{const f=s.partyValue!==""||s.candidateValue!=="";f!==s.checkedValue&&n("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",M21,[c.createElementVNode("div",v21,[c.createElementVNode("div",b21,c.toDisplayString(c.unref(a)("js.components.AVWriteInOption.title")),1),c.createElementVNode("div",A21,[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",N21,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,k21))),128))],40,_21),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,x21)])]),c.createVNode(d,{class:"AVWriteInOption--checkbox",checked:e.checkedValue,"option-id":0,disabled:e.disabled||e.observerMode},null,8,["checked","disabled"])])],10,C21)}}}),Hj=D(y21,[["__scopeId","data-v-f2bba574"]]),V21={class:"AVSubmissionHelper"},S21={key:1},w21=["textContent"],E21={key:2},B21={class:"AVSubmissionHelper--help"},T21={key:0},H21={key:1},I21=["innerHTML"],D21={key:3},O21=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 t=e,l=c.computed(()=>t.errors.map(o=>o.keys?(Object.keys(o.keys).forEach(i=>{typeof o.keys[i]=="object"&&(o.keys[i]=o.keys[i][n.value])}),s(`js.components.AVSubmissionHelper.errors.${o.message}`,o.keys)):s(`js.components.AVSubmissionHelper.errors.${o.message}`))),a=c.inject("i18n"),{t:s}=a.global,n=c.computed(()=>a.global.locale.value||a.global.locale);return c.onMounted(()=>{t.locale&&U(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&U(t.locale)},{deep:!0}),(o,i)=>(c.openBlock(),c.createElementBlock("div",V21,[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(s)("js.components.AVSubmissionHelper.your_vote_weight",{weight:e.weight})),3)):c.createCommentVNode("",!0),e.errors.length>0?(c.openBlock(),c.createElementBlock("div",S21,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(l.value,r=>(c.openBlock(),c.createElementBlock("div",{key:r,role:"alert",textContent:c.toDisplayString(r),"data-test":"submission-helper-error"},null,8,w21))),128)),i[0]||(i[0]=c.createElementVNode("hr",{class:"AVSubmissionHelper--separator"},null,-1))])):c.createCommentVNode("",!0),e.maxMarks>1?(c.openBlock(),c.createElementBlock("div",E21,[c.createElementVNode("div",B21,[e.minMarks===e.maxMarks?(c.openBlock(),c.createElementBlock("div",T21,c.toDisplayString(`${c.unref(s)("js.components.AVSubmissionHelper.select_exactly",{min_marks:e.minMarks})}`),1)):(c.openBlock(),c.createElementBlock("div",H21,c.toDisplayString(`${e.hasExclusiveOptions?c.unref(s)("js.components.AVSubmissionHelper.select_multiple_with_exclusives",{min_marks:e.minMarks,max_marks:e.maxMarks}):c.unref(s)("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(s)("js.components.AVSubmissionHelper.selected",{selected:e.chosenCount}),class:"AVSubmissionHelper--count","data-test":"submission-helper-count"},null,8,I21)):c.createCommentVNode("",!0)])])):(c.openBlock(),c.createElementBlock("div",D21,[c.createElementVNode("div",null,c.toDisplayString(c.unref(s)("js.components.AVSubmissionHelper.select_single")),1)]))],2)]))}}),Ij=D(O21,[["__scopeId","data-v-db1640de"]]);function P21(e,t,l){if(typeof l!="function")throw new Error("search_by must be a function that returns a string");const a=t.toLowerCase().trim().split(/\s+/);return e.filter(s=>{const n=l(s).toLowerCase().trim().split(/\s+/);return a.every(o=>n.some(i=>i.includes(o)))})}const R21=["aria-label"],F21={class:"AVSearchBallot--form-group"},$21=["textContent"],q21={class:"AVSearchBallot--input-group"},j21=["placeholder"],U21={id:"ballot_searcher_results",class:"AVSearchBallot--results","aria-live":"polite","aria-label":"search-results","data-test":"search-results"},W21=["aria-label"],J21={key:0,class:"AVSeachOptionBallot--ancestry"},G21={class:"AVSeachOptionBallot--breadcrumb"},Z21=["id","aria-label","onClick"],Q21=["textContent"],Y21=["textContent"],K21=c.defineComponent({__name:"AVSearchBallot",props:{options:{type:Array,required:!0},locale:{type:String,default:null}},setup(e){const{eventBusEmit:t}=Ej(),l=e,a=c.ref(""),s=c.computed(()=>a.value.trim()===""?[]:P21(l.options,a.value,m=>m.title[d.value])),n=m=>o(m,[]).reverse(),o=(m,p)=>m.parentContent?(p.push(m.parentContent),o(m.parentContent,p)):p,i=()=>{a.value=""},r=m=>{t("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(()=>{l.locale&&U(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&U(l.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",F21,[c.createElementVNode("label",{for:"ballot_search",class:"AVSearchBallot--label",textContent:c.toDisplayString(c.unref(u)("js.components.AVSearchBallot.search_the_ballot"))},null,8,$21),c.createElementVNode("div",q21,[c.withDirectives(c.createElementVNode("input",{id:"ballot_search","onUpdate:modelValue":p[0]||(p[0]=h=>a.value=h),type:"search",class:"AVSearchBallot--form-control",placeholder:c.unref(u)("js.components.AVSearchBallot.enter_option_name"),"data-test":"search-ballot-input"},null,8,j21),[[c.vModelText,a.value]])])]),c.createElementVNode("div",U21,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.value,h=>(c.openBlock(),c.createElementBlock("div",{key:h,"aria-label":h.title[d.value]},[n(h).length>0?(c.openBlock(),c.createElementBlock("div",J21,[c.createElementVNode("ul",G21,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n(h),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_${h.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(h),["prevent"])},[c.createElementVNode("span",{class:"AVSearchBallot--link",textContent:c.toDisplayString(h.title[d.value])},null,8,Q21)],8,Z21)],8,W21))),128)),a.value&&s.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,Y21)):c.createCommentVNode("",!0)])],40,R21))}}),Dj=D(K21,[["__scopeId","data-v-0b2b5c97"]]),X21={class:"AVSplitWeightHelper"},e31={class:"AVSplitWeightHelper--box","data-test":"weight-helper-total"},c31={class:"AVSplitWeightHelper--box","data-test":"weight-helper-assigned"},t31={class:"AVSplitWeightHelper--box","data-test":"weight-helper-unused"},l31=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 t=c.inject("i18n"),{t:l}=t.global,a=e;return c.onMounted(()=>{a.locale&&U(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&U(a.locale)},{deep:!0}),(s,n)=>(c.openBlock(),c.createElementBlock("div",X21,[c.createElementVNode("div",e31,[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(c.unref(l)("js.components.AVSplitWeightHelper.total"))+" ",1),c.createElementVNode("strong",null,c.toDisplayString(e.assignedWeight+e.unusedWeight),1)])]),c.createElementVNode("div",c31,[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(c.unref(l)("js.components.AVSplitWeightHelper.assigned"))+" ",1),c.createElementVNode("strong",null,c.toDisplayString(e.assignedWeight),1)])]),c.createElementVNode("div",t31,[c.createElementVNode("span",null,[c.createTextVNode(c.toDisplayString(c.unref(l)("js.components.AVSplitWeightHelper.unused"))+" ",1),c.createElementVNode("strong",null,c.toDisplayString(e.unusedWeight),1)])])]))}}),Oj=D(l31,[["__scopeId","data-v-3a80cb22"]]),a31={class:"AVSplitWizardHeader","data-test":"split-wizard-header"},n31={key:0,class:"AVSplitWizardHeader--text",style:{"font-weight":"400"}},s31={key:1,class:"AVSplitWizardHeader--text",style:{"font-weight":"400"}},o31={key:2,class:"AVSplitWizardHeader--text",style:{"font-weight":"400"}},i31=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 t=c.inject("i18n"),{t:l}=t.global,a=e;return c.onMounted(()=>{a.locale&&U(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&U(a.locale)},{deep:!0}),(s,n)=>{const o=c.resolveComponent("AVTooltip");return c.openBlock(),c.createElementBlock("header",a31,[e.activeState==="ballot"?(c.openBlock(),c.createElementBlock("p",n31,c.toDisplayString(e.isEditing?`${c.unref(l)("js.components.AVSplitWizardHeader.ballot.editing")} ${e.activeSelectionPileIndex+1}`:`${c.unref(l)("js.components.AVSplitWizardHeader.ballot.adding")} ${e.selectionPiles.length+1}`),1)):e.activeState==="assign"?(c.openBlock(),c.createElementBlock("p",s31,c.toDisplayString(e.isEditing?`${c.unref(l)("js.components.AVSplitWizardHeader.assign.header")} ${(e.isEditing?e.activeSelectionPileIndex:e.selectionPiles.length)+1}`:`${c.unref(l)("js.components.AVSplitWizardHeader.assign.header_edit_mode")} ${(e.isEditing?e.activeSelectionPileIndex:e.selectionPiles.length)+1}`),1)):(c.openBlock(),c.createElementBlock("p",o31,c.toDisplayString(c.unref(l)("js.components.AVSplitWizardHeader.overview.header")),1)),e.activeState==="ballot"?(c.openBlock(),c.createBlock(o,{key:3,content:`${c.unref(l)("js.components.AVSplitWizardHeader.ballot.can_assign_description_pre")} ${e.totalWeight} ${c.unref(l)("js.components.AVSplitWizardHeader.ballot.can_assign_description_pos")}`,text:`${c.unref(l)("js.components.AVSplitWizardHeader.ballot.can_assign_ballots_pre")} ${e.totalWeight} ${c.unref(l)("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=D(i31,[["__scopeId","data-v-13834427"]]),r31={class:"AVElectaContestCard--title"},f31={class:"AVElectaContestCard--subtitle"},m31=c.defineComponent({__name:"AVElectaContestCard",props:{contestTitle:{type:String,required:!0},votingRoundTitle:{type:String,required:!0}},setup(e){return(t,l)=>{const a=c.resolveComponent("AVCard");return c.openBlock(),c.createBlock(a,{variant:"rounded-electa"},{default:c.withCtx(()=>[c.createElementVNode("h3",r31,c.toDisplayString(e.contestTitle),1),c.createElementVNode("p",f31,c.toDisplayString(e.votingRoundTitle),1),l[0]||(l[0]=c.createElementVNode("div",{class:"AVElectaContestCard--line"},null,-1)),c.renderSlot(t.$slots,"card-content",{},void 0,!0)]),_:3})}}}),Rj=D(m31,[["__scopeId","data-v-8a538d47"]]),u31={class:"AVResultOption--content"},d31={class:"AVResultOption--inner-content"},p31=["src"],z31={class:"AVResultOption--title","data-test":"result-title"},h31={class:"AVResultOption--result-container","data-test":"result-results"},L31={class:"AVResultOption--result-count"},g31={key:0,class:"AVResultOption--result-percentage"},C31=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 t=e,l=c.computed(()=>t.total>0?Math.round(t.votes/t.total*1e4)/100:0),a=c.computed(()=>Math.round(t.votes*100)/100),s=c.inject("i18n"),n=c.computed(()=>s.global.locale.value||s.global.locale);return c.onMounted(()=>{t.locale&&U(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&U(t.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&&!e.elected}]),"data-test":"result-option"},[c.withDirectives((c.openBlock(),c.createElementBlock("div",u31,[c.createElementVNode("div",d31,[e.optionImage?(c.openBlock(),c.createElementBlock("img",{key:0,src:e.optionImage,class:"AVResultOption--image","data-test":"result-image"},null,8,p31)):c.createCommentVNode("",!0),c.createElementVNode("header",z31,c.toDisplayString(e.optionTitle[n.value]),1)]),c.createElementVNode("div",h31,[c.createElementVNode("div",L31,c.toDisplayString(a.value),1),e.hidePercentage?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",g31,c.toDisplayString(l.value)+"% ",1))])])),[[r,e.optionTitle[n.value]]])],2)}}}),Fj=D(C31,[["__scopeId","data-v-9cfedaf1"]]),M31={class:"AVRecommendationList--header"},v31={class:"AVRecommendationList--header-content"},b31={class:"AVRecommendationList--title"},A31={key:0,class:"AVRecommendationList--recommendation","data-test":"recommendation-summary"},_31={class:"AVRecommendationList--collapse","data-test":"list-collapse"},N31={class:"AVRecommendationList--collapse-text"},k31={class:"AVRecommendationList--icon-container"},x31={class:"AVRecommendationList--content"},y31={class:"AVRecommendationList--name"},V31={key:1,class:"AVRecommendationList--header"},S31={class:"AVRecommendationList--header-content"},w31={class:"AVRecommendationList--title"},E31={class:"AVRecommendationList--recommendation","data-test":"recommendation-summary"},B31={key:2},$j=c.defineComponent({__name:"AVRecommendationList",props:{recommendations:{type:Array,required:!0},summaryRecommenders:{type:Number,default:3},recommendationsPublic:{type:String,default:"public"},locale:{type:String,default:null}},setup(e){const t=e,l=c.ref(!1),a=c.computed(()=>Array.from(t.recommendations).sort((u,d)=>u.position-d.position)),s=c.computed(()=>document.getElementsByTagName("html")[0].dir==="rtl"),n=c.computed(()=>{const f=o(a.value);return{short:o(a.value,!0),long:f}}),o=(f,u)=>{const d=Array.from(f);let m="";return d.forEach((p,h)=>{u?h<=t.summaryRecommenders-1&&(m+=`${p.label}, `):h!==d.length-1?m+=`${p.label}, `:(m=m.substring(0,m.length-2),m+=` & ${p.label}.`)}),u&&f.length-t.summaryRecommenders>=1?m+=r("js.components.AVRecommendationList.and_more",{n:f.length-t.summaryRecommenders}):u&&(m=m.substring(0,m.length-2)),m},i=c.inject("i18n"),{t:r}=i.global;return c.onMounted(()=>{t.locale&&U(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&U(t.locale)},{deep:!0}),(f,u)=>{const d=c.resolveComponent("AVIcon"),m=c.resolveComponent("AVCollapser"),p=c.resolveDirective("tooltip");return e.recommendations.length&&e.recommendations.length>e.summaryRecommenders&&e.recommendationsPublic=="public"?(c.openBlock(),c.createBlock(m,{key:0,ref:"recommendationList",collapsable:"","start-collapsed":"","pane-id":"recommendation-list",onAccordionOpen:u[0]||(u[0]=h=>l.value=!0)},{toggle:c.withCtx(({isOpen:h})=>[c.createElementVNode("div",M31,[c.createElementVNode("div",v31,[c.createElementVNode("h4",b31,c.toDisplayString(c.unref(r)("js.components.AVRecommendationList.header_title",{n:e.recommendations.length})),1),a.value.length>=e.summaryRecommenders&&!h?c.withDirectives((c.openBlock(),c.createElementBlock("p",A31,[c.createVNode(d,{icon:"user-check"}),c.createTextVNode(" "+c.toDisplayString(n.value.short),1)])),[[p,n.value.long]]):c.createCommentVNode("",!0)]),c.createElementVNode("div",_31,[c.createElementVNode("span",N31,c.toDisplayString(h?c.unref(r)("js.components.AVRecommendationList.collapse"):c.unref(r)("js.components.AVRecommendationList.uncollapse")),1),c.createElementVNode("span",k31,[c.createVNode(d,{icon:"chevron-down",class:c.normalizeClass(["AVRecommendationList--collapser-icon",{"AVRecommendationList--opened-ltr":h&&!s.value,"AVRecommendationList--opened-rtl":h&&s.value}])},null,8,["class"])])])])]),pane:c.withCtx(()=>[c.createElementVNode("div",x31,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,h=>c.withDirectives((c.openBlock(),c.createElementBlock("p",{key:`recommendation_${h.id}`,class:"AVRecommendationList--recommendation","data-test":"recommendation"},[c.createVNode(d,{icon:"user-check",class:"AVRecommendationList--icon"}),c.createElementVNode("span",y31,c.toDisplayString(h.label),1)])),[[p,h.label]])),128))])]),_:1},512)):e.recommendations.length&&e.recommendationsPublic=="public"?(c.openBlock(),c.createElementBlock("div",V31,[c.createElementVNode("div",S31,[c.createElementVNode("h4",w31,c.toDisplayString(c.unref(r)("js.components.AVRecommendationList.header_title",{n:e.recommendations.length})),1),c.withDirectives((c.openBlock(),c.createElementBlock("p",E31,[c.createVNode(d,{icon:"user-check"}),c.createTextVNode(" "+c.toDisplayString(n.value.short),1)])),[[p,n.value.long]])])])):(c.openBlock(),c.createElementBlock("div",B31,[c.createElementVNode("p",null,[c.createVNode(d,{icon:"user-check"}),c.createTextVNode(" "+c.toDisplayString(c.unref(r)("js.components.AVRecommendationList.public_count_text",{n:e.recommendations.length})),1)])]))}}}),T31="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",H31=["src"],I31=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(t,l)=>{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}])},[l[0]||(l[0]=c.createElementVNode("span",{class:"AVFooter--text"},"Technology by",-1)),c.createElementVNode("img",{src:c.unref(T31),alt:"Assembly Voting",class:"AVFooter--img"},null,8,H31)],2))],2)}}}),qj=D(I31,[["__scopeId","data-v-1a82d440"]]);var D31={},O31={class:"AVSidebar"};function P31(e,t){return c.openBlock(),c.createElementBlock("nav",O31,[c.renderSlot(e.$slots,"default",{},void 0,!0)])}const jj=D(D31,[["render",P31],["__scopeId","data-v-65e0965f"]]);var R31={},F31={class:"AVNavbar"};function $31(e,t){return c.openBlock(),c.createElementBlock("nav",F31,[c.renderSlot(e.$slots,"default",{},void 0,!0)])}const Uj=D(R31,[["render",$31],["__scopeId","data-v-3ea1799f"]]);var q31={},j31={class:"AVContent"},U31={class:"AVContent--sidebar","data-test":"sidebar"},W31={class:"AVContent--container","data-test":"container"};function J31(e,t){return c.openBlock(),c.createElementBlock("main",j31,[c.createElementVNode("div",U31,[c.renderSlot(e.$slots,"sidebar",{},void 0,!0)]),c.createElementVNode("div",W31,[c.renderSlot(e.$slots,"content",{},void 0,!0)])])}const Wj=D(q31,[["render",J31],["__scopeId","data-v-1923eca8"]]),G31=["aria-labelledby"],Z31=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:t}){const l=t,a=e;return c.watch(()=>a.modalActive,()=>{a.modalActive&&(document.body.style.overflowY="hidden"),a.modalActive||(document.body.style.overflowY="scroll")}),(s,n)=>(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:n[1]||(n[1]=c.withModifiers(o=>l("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:n[0]||(n[0]=c.withModifiers(()=>{},["stop"]))},[c.renderSlot(s.$slots,"default",{},void 0,!0)],2),[[c.vShow,e.modalActive]])]),_:3})],8,G31),[[c.vShow,e.modalActive]])]),_:3}))}}),Jj=D(Z31,[["__scopeId","data-v-ef5af7c2"]]),i4=(e,t)=>e.flatMap(l=>(t&&(l.parentContent={reference:t.reference,code:t.code,title:{...t.title}}),l.children?[l,...i4(l.children,l)]:[l]));var r4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Dl={},Q31=r4&&r4.__spreadArray||function(e,t,l){if(l||arguments.length===2)for(var a=0,s=t.length,n;a<s;a++)(n||!(a in t))&&(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(Dl,"__esModule",{value:!0});var Y31=function(){function e(t){this.contest=t}return e.prototype.validate=function(t,l){l===void 0&&(l=!1);var a=[];return this.referenceMissing(t.optionSelections)&&a.push({message:"invalid_reference"}),this.tooManySelections(t.optionSelections)&&a.push({message:"too_many"}),this.blankNotAlone(t.optionSelections,t.explicitBlank)&&a.push({message:"blank"}),this.exclusiveNotAlone(t.optionSelections)&&a.push({message:"exclusive"}),a.push.apply(a,this.exceededListVotes(t.optionSelections)),t.explicitBlank||this.implicitlyBlank(t.optionSelections)||l&&a.push.apply(a,this.belowMinListVotes(t.optionSelections)),a},e.prototype.isComplete=function(t){var l=t.explicitBlank||this.optionIsExclusive(t)||this.implicitlyBlank(t.optionSelections)||!this.tooFewSelections(t.optionSelections);return l&&this.validate(t).length==0},Object.defineProperty(e.prototype,"optionReferences",{get:function(){return this.recursiveFlattener(this.contest.options).map(function(t){return t.reference})},enumerable:!1,configurable:!0}),e.prototype.recursiveFlattener=function(t){var l=this;if(!t)return[];var a=t.flatMap(function(s){return s.children?Q31([s],l.recursiveFlattener(s.children),!0):[s]});return a},e.prototype.selectedReferences=function(t){return t.map(function(l){return l.reference})},e.prototype.referenceMissing=function(t){var l=this;return!this.selectedReferences(t).every(function(a){return a==="blank"||l.optionReferences.includes(a)})},e.prototype.implicitlyBlank=function(t){return this.contest.markingType.blankSubmission==="implicit"&&t.length===0},e.prototype.tooFewSelections=function(t){return t.length<this.contest.markingType.minMarks},e.prototype.tooManySelections=function(t){return t.length>this.contest.markingType.maxMarks},e.prototype.belowMinListVotes=function(t){var l=this,a=this.recursiveFlattener(this.contest.options),s=a.map(function(o){return o!=null&&o.minChooseableSuboptions?o:null}),n=[];return s.forEach(function(o){o!=null&&o.minChooseableSuboptions&&l.selectedChildren(t,[o])<o.minChooseableSuboptions&&n.push({message:"below_list_limit",keys:{list_name:o.title,min_list_marks:o.minChooseableSuboptions}})}),n},e.prototype.exceededListVotes=function(t){var l=this,a=this.recursiveFlattener(this.contest.options),s=a.map(function(o){return o!=null&&o.maxChooseableSuboptions?o:null}),n=[];return s.forEach(function(o){o!=null&&o.maxChooseableSuboptions&&l.selectedChildren(t,[o])>o.maxChooseableSuboptions&&n.push({message:"exceeded_list_limit",keys:{list_name:o.title,max_list_marks:o.maxChooseableSuboptions}})}),n},e.prototype.selectedChildren=function(t,l,a){var s=this;return a===void 0&&(a=0),l&&l.forEach(function(n){var o,i=(o=n==null?void 0:n.children)===null||o===void 0?void 0:o.filter(function(r){return s.selectedReferences(t).includes(r.reference)});a+=(i==null?void 0:i.length)||0,n.children&&(a=s.selectedChildren(t,n.children,a))}),a},e.prototype.exclusiveNotAlone=function(t){if(this.selectedReferences(t).length<2)return!1;var l=this.recursiveFlattener(this.contest.options);return this.selectedReferences(t).map(function(a){return l.find(function(s){return s.reference===a})}).some(function(a){return(a==null?void 0:a.exclusive)===!0})},e.prototype.blankNotAlone=function(t,l){return t.length>0&&l},e.prototype.optionIsExclusive=function(t){var l,a;return((l=t.optionSelections)===null||l===void 0?void 0:l.length)===1&&((a=this.contest.options.find(function(s){return s.reference===t.optionSelections[0].reference}))===null||a===void 0?void 0:a.exclusive)},e}(),Gj=Dl.default=Y31,Zj={};Object.defineProperty(Zj,"__esModule",{value:!0});var K31=function(){function e(t){this.contest=t}return e.prototype.validate=function(t){var l=[];return this.partyExclusive(t.optionSelections)&&l.push({message:"cross_party_voting"}),l},e.prototype.selectedReferences=function(t){return t.map(function(l){return l.reference})},e.prototype.partyExclusive=function(t){var l=this.selectedReferences(t),a=this.contest.options.filter(function(n){return l.includes(n.reference)}).length>1,s=!1;return this.contest.options.forEach(function(n){var o,i;if(l.includes(n.reference)){var r=l.filter(function(d){return d!==n.reference}),f=(o=n.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=n.children)===null||i===void 0?void 0:i.some(function(d){return l.includes(d.reference)});s&&u?a=!0:u&&(s=!0)}),a},e}(),X31=Zj.default=K31;const e41=["aria-label","aria-describedby"],c41=["id"],t41=["aria-label"],l41=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:t}){const l=e,a=t,s=c.ref(!1),n=c.ref(""),o=c.ref(""),i=c.ref(null),r=c.computed(()=>l.selectionPile.optionSelections),f=c.computed(()=>new Gj(l.contest)),u=c.computed(()=>l.contest.disregardVoterWeight?null:l.weight),d=c.computed(()=>{var N;const x=[];return(N=l.contest.customRulesets)!=null&&N.includes("belgian_ballot_rules")&&x.push(new X31(l.contest)),x}),m=c.computed(()=>{const x=[];d.value.forEach(E=>{x.push(...E.validate(l.selectionPile))});const N=[...f.value.validate(l.selectionPile,l.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),h=c.computed(()=>{var x;return(x=l.contest.question)==null?void 0:x[V.value]}),M=c.computed(()=>{var x;return(x=l.contest.customRulesets)==null?void 0:x.includes("belgian_ballot_rules")}),v=c.computed(()=>i4(l.contest.options).some(x=>x.exclusive)),b=c.computed(()=>l.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",{...l.selectionPile,explicitBlank:!l.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",{...l.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(()=>{l.locale&&U(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&U(l.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"},[h.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(h.value),9,c41)):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":n.value,"onUpdate:partyValue":N[1]||(N[1]=P=>n.value=P),"checked-value":s.value,"onUpdate:checkedValue":N[2]||(N[2]=P=>s.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,t41),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,e41)}}}),Qj=D(l41,[["__scopeId","data-v-f9c23eac"]]),a41={key:0,class:"AVPileSummary--summary"},n41={key:0,class:"AVPileSummary--summary-header","data-test":"pile-summary-header"},s41={class:"AVPileSummary--summary-header-text"},o41={key:1,class:"AVPileSummary--summary-header"},i41={class:"AVPileSummary--summary-body"},r41={key:1,class:"AVPileSummary--assign"},f41={class:"AVPileSummary--assign-card"},m41=["aria-label"],u41={class:"AVPileSummary--edit"},d41={key:0,"data-test":"pile-summary-assigned"},p41={class:"AVPileSummary--assign-body","data-test":"pile-summary-body"},z41={key:0,class:"AVPileSummary--assign-text"},h41=["aria-label"],L41=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:t}){const l=t,a=e,s=c.ref(!1),n=c.computed(()=>a.selectionPile.optionSelections.length===0),o=c.computed(()=>!a.maximumOptionsShown||s.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=(h,M)=>h&&h.parentContent?(M.push(h.parentContent),f(h.parentContent,M)):M,u=c.computed(()=>{const h={options:[],writeIns:[]};return a.selectionPile.optionSelections.forEach(M=>{if(M.text)h.writeIns.push({partyLetter:"?",partyName:"?",candidateName:M.text});else{const v=h.options.find(C=>C.handle===M.reference),b=r.value.find(C=>C.reference===M.reference);if(!b)return;v?v.crosses+=1:h.options.push({title:b.title,handle:M.reference,image:b.image,crosses:1,parent:b.parentContent,rank:a.contest.markingType.voteVariation==="ranked"?h.options.length+1:null})}}),h}),d=c.inject("i18n"),{t:m}=d.global,p=c.computed(()=>d.global.locale.value||d.global.locale);return c.onMounted(()=>{a.locale&&U(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&U(a.locale)},{deep:!0}),(h,M)=>{const v=c.resolveComponent("AVSummaryOption"),b=c.resolveComponent("AVIcon");return e.activeState==="summary"?(c.openBlock(),c.createElementBlock("div",a41,[e.contest.markingType.maxPiles!==1?(c.openBlock(),c.createElementBlock("header",n41,[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",s41,c.toDisplayString(e.selectionPile.multiplier)+" "+c.toDisplayString(c.unref(m)("js.components.AVPileSummary.ballots")),1)])):(c.openBlock(),c.createElementBlock("header",o41,[c.createElementVNode("span",null,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.selection")),1)])),c.createElementVNode("div",i41,[(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)),n.value?(c.openBlock(),c.createBlock(v,{key:0,blank:n.value},null,8,["blank"])):c.createCommentVNode("",!0)])])):(c.openBlock(),c.createElementBlock("div",r41,[c.createElementVNode("div",f41,[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=>l("editCurrentSelection"))},[c.createElementVNode("div",u41,[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",d41,c.toDisplayString(c.unref(m)("js.components.AVPileSummary.assigned"))+" "+c.toDisplayString(e.selectionPile.multiplier),1)):c.createCommentVNode("",!0)],8,m41),c.createElementVNode("div",p41,[n.value?(c.openBlock(),c.createElementBlock("p",z41,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=>s.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),s.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=>s.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=>l("deleteSelection"),["stop","prevent"]))},[c.createVNode(b,{icon:"trash-can"})],8,h41)):c.createCommentVNode("",!0)]))}}}),Yj=D(L41,[["__scopeId","data-v-ffed1a38"]]);var Kj={},zn=r4&&r4.__spreadArray||function(e,t,l){if(l||arguments.length===2)for(var a=0,s=t.length,n;a<s;a++)(n||!(a in t))&&(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(Kj,"__esModule",{value:!0});var g41=Dl,C41=function(){function e(t){var l=t.contest,a=t.voterWeight;this.contest=l,this.voterWeight=a}return e.prototype.isComplete=function(t){return this.allWeightUsed(t)&&this.validate(t).length==0},e.prototype.validate=function(t){var l=[],a=new g41.default(this.contest);return t.piles.forEach(function(s){l=zn(zn([],l,!0),a.validate(s),!0)}),t.piles.forEach(function(s){a.isComplete(s)||l.push({message:"A selection is not complete"})}),l},e.prototype.allWeightUsed=function(t){return this.voterWeight===t.piles.reduce(function(l,a){return a.multiplier+l},0)},e}(),M41=Kj.default=C41;const v41={class:"AVSplitHelper--title","aria-live":"polite","data-test":"split-helper-contest-title"},b41=["innerHTML"],A41={class:"AVSplitHelper--footer"},_41={class:"AVSplitHelper--btn-secondary-container"},N41={class:"AVSplitHelper--btn-primary-container"},k41=["disabled"],x41={key:1},y41={class:"AVSplitHelper--assign-card"},V41={class:"AVSplitHelper--assign-question","data-test":"split-helper-contest-question"},S41=["for"],w41=["id","max"],E41={class:"AVSplitHelper--footer"},B41={class:"AVSplitHelper--btn-secondary-container"},T41={class:"AVSplitHelper--btn-primary-container"},H41=["disabled"],I41={key:2,"data-test":"split-helper-overview"},D41={key:0,class:"AVSplitHelper--overview-success"},O41={key:1,class:"AVSplitHelper--overview-default"},P41={class:"AVSplitHelper--overview--text"},R41=["disabled"],F41=["onClick"],$41=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:t}){var J;const l=e,a=t,s=c.ref(null),n=c.ref(l.contestSelection.piles[0]||{multiplier:l.weight,optionSelections:[],explicitBlank:!1}),o=c.ref(((J=l.contestSelection.piles)==null?void 0:J.length)===0||l.contest.markingType.maxPiles===1?"ballot":"overview"),i=c.ref([]),r=c.computed(()=>l.contestSelection.piles),f=c.computed(()=>{var I;return(I=r.value)==null?void 0:I.reduce((P,o1)=>P-o1.multiplier,l.weight)}),u=c.computed(()=>new Gj(l.contest)),d=c.computed(()=>new M41({contest:l.contest,voterWeight:l.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)}),h=c.computed(()=>{var I;return(I=n.value)==null?void 0:I.multiplier}),M=c.computed(()=>r.value.filter((I,P)=>P!==s.value).reduce((I,P)=>I-P.multiplier,l.weight)),v=c.computed(()=>l.contest.markingType.maxPiles!==1&&l.weight>1),b=c.computed(()=>s.value!==null),C=I=>u.value.isComplete(I),g=I=>u.value.validate(I,l.includeLazyErrors).length>0,A=()=>{if(v.value){const I=[...r.value];s.value===null?I.push({...n.value}):I.splice(s.value,1,{...n.value}),a("update:contestSelection",{...l.contestSelection,piles:I}),s.value=null,o.value="overview"}else n.value.multiplier=l.weight,a("update:contestSelection",{...l.contestSelection,piles:[n.value]})},k=I=>{n.value=I,v.value||A()},_=()=>{n.value={optionSelections:[],multiplier:M.value,explicitBlank:!1},s.value=null,o.value="ballot"},V=I=>{r.value.splice(I,1)},x=I=>{n.value={...r.value[I]},s.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(h,()=>{n.value&&(n.value.multiplier=Math.max(0,Math.min(h.value,M.value)))}),c.watch(n,I=>{a("update:activePile",I)}),c.watch(o,I=>a("update:activeState",I)),c.onMounted(()=>{l.locale&&U(l.locale),a("update:activePile",n.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(()=>{l.locale&&U(l.locale)}),c.watch(()=>l.locale,()=>{l.locale&&U(l.locale)},{deep:!0}),(I,P)=>{var d1;const o1=c.resolveComponent("AVSplitWizardHeader"),u1=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",v41,c.toDisplayString(e.contest.title[$.value]),1),c.createElementVNode("div",{class:"AVSplitHelper--description","data-test":"split-helper-contest-description",innerHTML:(d1=e.contest.description)==null?void 0:d1[$.value]},null,8,b41),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":s.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:"transition-fade",mode:"out-in"},{default:c.withCtx(()=>{var w1,W1,X1;return[n.value&&o.value==="ballot"?(c.openBlock(),c.createElementBlock("div",{key:s.value},[c.createVNode(u1,{class:"AVSplitHelper--ballot","selection-pile":n.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",A41,[c.createElementVNode("div",_41,[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",N41,[c.createElementVNode("button",{key:"assign",class:"AVSplitHelper--btn-primary",disabled:!C(n.value)||g(n.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,k41)])])])):o.value==="assign"?(c.openBlock(),c.createElementBlock("div",x41,[c.createElementVNode("div",y41,[c.createElementVNode("h4",V41,c.toDisplayString(c.unref(S)("js.components.AVSplitHelper.assign.split_question")),1),c.createVNode(v1,{"selection-pile":n.value,contest:e.contest,"maximum-options-shown":3,"pile-index":b.value?s.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,S41),c.withDirectives(c.createElementVNode("input",{id:`${e.contest.reference}-ballot-selector`,"onUpdate:modelValue":P[4]||(P[4]=L1=>n.value.multiplier=L1),class:"AVSplitHelper--assign-input",type:"number",max:M.value,"data-test":"split-helper-assign-input"},null,8,w41),[[c.vModelText,n.value.multiplier]])]),c.createVNode(z1,{"assigned-weight":p.value,"unused-weight":f.value,"active-assigned":(w1=r.value[s.value])==null?void 0:w1.multiplier},null,8,["assigned-weight","unused-weight","active-assigned"]),c.createElementVNode("div",E41,[c.createElementVNode("div",B41,[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",T41,[c.createElementVNode("button",{key:"confirm",class:"AVSplitHelper--btn-primary",disabled:((W1=n.value)==null?void 0:W1.multiplier)<1||((X1=n.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,H41)])])])):o.value==="overview"?(c.openBlock(),c.createElementBlock("div",I41,[f.value===0&&d.value.isComplete(e.contestSelection)?(c.openBlock(),c.createElementBlock("div",D41,[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",O41,[c.createElementVNode("p",P41,[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,R41)])),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(r.value,(L1,D1)=>(c.openBlock(),c.createElementBlock("article",{key:`preview-${D1}`,onClick:w2=>x(D1)},[c.createVNode(v1,{"selection-pile":L1,contest:e.contest,"maximum-options-shown":3,"active-state":o.value,"pile-index":D1,"total-piles":e.contestSelection.piles.length,"image-option":e.imageOption,onDeleteSelection:w2=>V(D1)},null,8,["selection-pile","contest","active-state","pile-index","total-piles","image-option","onDeleteSelection"])],8,F41))),128))])):c.createCommentVNode("",!0)]}),_:1})],64)):(c.openBlock(),c.createBlock(u1,{key:1,class:"AVSplitHelper--no-split","selection-pile":n.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)}}}),Xj=D($41,[["__scopeId","data-v-e48e9480"]]),q41="data:image/jpeg;base64,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",j41={key:0,class:"AVResourceSection--image-container"},U41=["src","alt"],W41={class:"AVResourceFields"},J41={key:0,class:"AVResourceFields--title","data-test":"heading-title"},G41={key:1,class:"AVResourceFields--subtitle","data-test":"heading-subtitle"},Z41={key:2,class:"AVResourceFields--group-container","data-test":"heading-group"},Q41={class:"AVResourceFields--group"},Y41={key:1,class:"AVResourceFields--divisor"},K41={key:2,class:"AVResourceFields--link-list","data-test":"resource-link-list"},X41={key:0},e01={key:3,"data-test":"resource-checkbox-summary"},c01={key:4,"data-test":"resource-selection"},t01={key:0},l01={key:5,"data-test":"resource-video"},a01=["src"],n01=["innerHTML"],s01={key:7,class:"AVResourceFields--regular-content","data-test":"resource-regular-content"},o01={key:0},i01=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 t=c.computed(()=>{var p,h,M,v,b,C;return(h=(p=i.candidate.title)==null?void 0:p[0])!=null&&h.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}),l=c.computed(()=>{var p,h,M,v,b,C;return(h=(p=i.candidate.subtitle)==null?void 0:p[0])!=null&&h.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=[],h=[],M="";return i.currentCandidateGroup?i.candidate.groups.forEach(b=>{b.id===i.currentCandidateGroup?p.push(b):h.push(b)}):(h=[...i.candidate.groups],p=h.splice(0,1)),h.forEach((b,C)=>{C===0||i.candidate.groups.length===1?M=b.title[m.value]:C===h.length-1?M+=` & ${b.title[m.value]}`:M+=`, ${b.title[m.value]}`}),{title:(v=p[0])==null?void 0:v.title[m.value],surplus:h.length||null,remaining:M}}),s=c.computed(()=>i.summary?i.candidate.summary:i.candidate.generic.filter(p=>p.item_type!=="image")),n=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(h=>h.item_type==="image"))==null?void 0:p.form_content)||q41}),f=c.inject("i18n"),{t:u,d}=f.global,m=c.computed(()=>f.global.locale.value||f.global.locale);return c.onMounted(()=>{i.locale&&U(i.locale)}),c.watch(()=>i.locale,()=>{i.locale&&U(i.locale)},{deep:!0}),(p,h)=>{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",j41,[c.createElementVNode("img",{src:r.value,alt:c.unref(u)("js.components.AVResourceSection.alt_candidate"),class:"AVResourceSection--image","data-test":"resource-image"},null,8,U41)])):c.createCommentVNode("",!0),c.createElementVNode("div",{class:c.normalizeClass(e.summary?"AVResourceSection--fields-container":"AVResourceSection--generic-container")},[c.createElementVNode("div",W41,[e.summary&&t.value?(c.openBlock(),c.createElementBlock("h4",J41,c.toDisplayString(t.value),1)):c.createCommentVNode("",!0),e.summary&&l.value?(c.openBlock(),c.createElementBlock("h5",G41,c.toDisplayString(l.value),1)):c.createCommentVNode("",!0),e.summary&&e.candidate.groups&&!e.card?(c.openBlock(),c.createElementBlock("div",Z41,[c.createElementVNode("h4",Q41,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(s.value,C=>(c.openBlock(),c.createElementBlock(c.Fragment,{key:`attribute_${C.attribute_name}`},[n.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",Y41)):c.createCommentVNode("",!0),C.item_type==="link_list"&&o(C)?(c.openBlock(),c.createElementBlock("div",K41,[e.summary?(c.openBlock(),c.createElementBlock("span",X41,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",e01,[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",c01,[e.summary?(c.openBlock(),c.createElementBlock("span",t01,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",l01,[c.createElementVNode("iframe",{style:{width:"100%",height:"100%","min-height":"400px"},src:C.form_content.toString()},null,8,a01)])):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,n01)):C.item_type!=="rich_text_area"&&C.item_type!=="check_box"?(c.openBlock(),c.createElementBlock("p",s01,[e.summary?(c.openBlock(),c.createElementBlock("span",o01,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)}}}),eU=D(i01,[["__scopeId","data-v-9f104b97"]]),r01={class:"AVCalculateResultContent--container"},f01={class:"AVCalculateResultContent--information"},m01={class:"AVCalculateResultContent--information-set AVCalculateResultContent--role","data-test":"role"},u01={class:"AVCalculateResultContent--label"},d01={class:"AVCalculateResultContent--information-set AVCalculateResultContent--status","data-test":"status"},p01={class:"AVCalculateResultContent--label"},z01={class:"AVCalculateResultContent--status-information"},h01={class:"AVCalculateResultContent--information-set","data-test":"mixes"},L01={class:"AVCalculateResultContent--label"},g01={class:"AVCalculateResultContent--information-set","data-test":"decryptions"},C01={class:"AVCalculateResultContent--label"},M01={class:"AVCalculateResultContent--information-set","data-test":"time"},v01={class:"AVCalculateResultContent--label"},b01={class:"AVCalculateResultContent--elapsed"},A01=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 t=c.inject("i18n"),{t:l}=t.global,a=e,s=c.computed(()=>l(`js.components.AVCalculateResultContent.roles.${a.role}`)),n=c.computed(()=>l(`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&&U(a.locale)}),c.watch(()=>a.locale,()=>{a.locale&&U(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",r01,[c.createVNode(f,{value:e.progress,"data-test":"progress"},null,8,["value"]),c.createElementVNode("div",f01,[c.createElementVNode("div",m01,[c.createElementVNode("span",u01,c.toDisplayString(c.unref(l)("js.components.AVCalculateResultContent.roles.label")),1),c.createElementVNode("span",null,[c.createVNode(u,{icon:"user-shield"}),c.createTextVNode(" "+c.toDisplayString(s.value),1)])]),c.createElementVNode("div",d01,[c.createElementVNode("span",p01,c.toDisplayString(c.unref(l)("js.components.AVCalculateResultContent.status.label")),1),c.createElementVNode("span",z01,[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(n.value)+" ",1),e.status!=="finished"?(c.openBlock(),c.createBlock(d,{key:0})):c.createCommentVNode("",!0)])]),c.createElementVNode("div",h01,[c.createElementVNode("span",L01,c.toDisplayString(c.unref(l)("js.components.AVCalculateResultContent.mixes.label")),1),c.createElementVNode("span",null,c.toDisplayString(`${e.mixes[0]}/${e.mixes[1]}`),1)]),c.createElementVNode("div",g01,[c.createElementVNode("span",C01,c.toDisplayString(c.unref(l)("js.components.AVCalculateResultContent.decryptions.label")),1),c.createElementVNode("span",null,c.toDisplayString(`${e.decryptions[0]}/${e.decryptions[1]}`),1)]),c.createElementVNode("div",M01,[c.createElementVNode("span",v01,c.toDisplayString(c.unref(l)("js.components.AVCalculateResultContent.elapsed.label")),1),c.createElementVNode("time",b01,c.toDisplayString(e.elapsed),1)])])])}}}),cU=D(A01,[["__scopeId","data-v-ad18a2ae"]]),_01={class:"AVNormalSummary--container"},N01={class:"AVNormalSummary"},k01=c.defineComponent({__name:"AVNormalSummary",props:{sortedResult:{type:Array,required:!0},hidePercentage:{type:Boolean,default:!1},disregardBlank:{type:Boolean,default:!1},totalCount:{type:Number,required:!0}},setup(e){const t=e,l=a=>a==="blank"&&t.disregardBlank?!0:t.hidePercentage;return(a,s)=>{const n=c.resolveComponent("AVResultOption");return c.openBlock(),c.createElementBlock("div",_01,[c.createElementVNode("div",N01,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.sortedResult,o=>(c.openBlock(),c.createBlock(n,{key:`result_for_${o.reference}`,optionTitle:o.title,optionImage:o.image,votes:o.count,total:e.totalCount,elected:o.elected,tied:o.tied,"hide-percentage":l(o.reference),"data-test":"result-option"},null,8,["optionTitle","optionImage","votes","total","elected","tied","hide-percentage"]))),128))])])}}}),tU=D(k01,[["__scopeId","data-v-9ef35b76"]]),x01={class:"AVRankedSummary--container"},y01={class:"AVRankedSummary--table",id:"ranked_summary_table","data-test":"table"},V01={class:"AVRankedSummary--heading"},S01={key:0},w01={key:1},E01={key:2},B01=c.defineComponent({__name:"AVRankedSummary",props:{result:{type:Array,required:!0},distributionNumber:{type:Number,required:!0},seats:{typ:Number,required:!0},locale:{type:String,default:"en"},theme:{type:String,default:"light"}},setup(e){const t=e,l=c.computed(()=>{var r,f;return((f=(r=t.result[0])==null?void 0:r.rounds)==null?void 0:f.length)??0}),a=c.computed(()=>t.result.filter(r=>r.elected).map(r=>r.title[i.value]??Object.values(r.title)[0])),s=c.computed(()=>t.result.filter(r=>r.tied).map(r=>r.title[i.value]??Object.values(r.title)[0])),n=c.inject("i18n"),{t:o}=n.global,i=c.computed(()=>n.global.locale.value||n.global.locale);return c.onMounted(()=>{t.locale&&U(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&U(t.locale)},{deep:!0}),(r,f)=>(c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createElementVNode("div",x01,[c.createElementVNode("table",y01,[c.createElementVNode("thead",V01,[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(l.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(e.result,(u,d)=>(c.openBlock(),c.createElementBlock("tr",{key:`option_${u.reference}`,class:c.normalizeClass({"AVRankedSummary--elected":u.elected,"AVRankedSummary--tied":u.tied}),"data-test":"candidate-ranked-result"},[c.createElementVNode("td",null,c.toDisplayString(u.elected&&d+1||""),1),c.createElementVNode("td",{class:c.normalizeClass({[`AVRankedSummary--text-${e.theme}`]:!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===l.value,[`AVRankedSummary--text-${e.theme}`]:!u.elected&&!u.tied}])},c.toDisplayString(m.count),3))),128))],2))),128))])])]),c.createElementVNode("div",{class:c.normalizeClass(`AVRankedSummary--summary AVRankedSummary--text-${e.theme}`),"data-test":"summary"},[c.createElementVNode("p",null,c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.summary.seats"))+": "+c.toDisplayString(e.seats),1),e.distributionNumber>0?(c.openBlock(),c.createElementBlock("p",S01,c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.summary.distribution"))+": "+c.toDisplayString(e.distributionNumber),1)):c.createCommentVNode("",!0),a.value.length>0?(c.openBlock(),c.createElementBlock("p",w01,[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),s.value.length>0?(c.openBlock(),c.createElementBlock("p",E01,[c.createTextVNode(c.toDisplayString(c.unref(o)("js.components.AVRankedSummary.summary.tied"))+": ",1),c.createElementVNode("span",null,c.toDisplayString(s.value.join(", ")),1)])):c.createCommentVNode("",!0)],2)],64))}}),lU=D(B01,[["__scopeId","data-v-32323466"]]),T01={class:"AVInstantRunoffSummary"},H01={class:"AVInstantRunoffSummary--container"},I01={class:"AVInstantRunoffSummary--table-container"},D01={class:"AVInstantRunoffSummary--table",id:"ranked_summary_table","data-test":"table"},O01={class:"AVInstantRunoffSummary--heading"},P01=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 t=e,l=(r,f)=>t.rounds[f].counts[r]||0,a=(r,f)=>t.rounds[f].eliminated===r&&"AVInstantRunoffSummary--eliminated",s=(r,f)=>t.rounds[f].elected===r&&"AVInstantRunoffSummary--elected",n=c.inject("i18n"),{t:o}=n.global,i=c.computed(()=>n.global.locale.value||n.global.locale);return c.onMounted(()=>{t.locale&&U(t.locale)}),c.watch(()=>t.locale,()=>{t.locale&&U(t.locale)},{deep:!0}),(r,f)=>{const u=c.resolveComponent("AVIcon"),d=c.resolveDirective("tooltip");return c.openBlock(),c.createElementBlock("div",T01,[c.createElementVNode("h5",{class:c.normalizeClass(["AVInstantRunoffSummary--title",`AVInstantRunoffSummary--text-${e.theme}`]),"data-test":"seat-title"},c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.seat_n",{n:e.seatNumber})),3),c.createElementVNode("div",H01,[c.createElementVNode("div",I01,[c.createElementVNode("table",D01,[c.createElementVNode("thead",O01,[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"},[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",{class:c.normalizeClass(`AVInstantRunoffSummary--text-${e.theme}`)},c.toDisplayString(m.title[i.value]),3),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.rounds.length,h=>(c.openBlock(),c.createElementBlock("td",{key:`instant_runoff_seat_${e.seatNumber}_number_${h}`,class:c.normalizeClass(["AVInstantRunoffSummary--text",{"AVInstantRunoffSummary--elected":s(m.reference,h-1),"AVInstantRunoffSummary--eliminated":a(m.reference,h-1),[`AVInstantRunoffSummary--text-${e.theme}`]:!0}])},c.toDisplayString(l(m.reference,h-1)),3))),128))],64)):c.createCommentVNode("",!0)]))),128)),c.createElementVNode("tr",null,[c.createElementVNode("td",{class:c.normalizeClass(`AVInstantRunoffSummary--text-${e.theme}`)},c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.transfered_votes")),3),(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:c.normalizeClass(["AVInstantRunoffSummary--text",`AVInstantRunoffSummary--text-${e.theme}`])},c.toDisplayString(e.rounds[m-1].transferred),3))),128))]),c.createElementVNode("tr",null,[c.createElementVNode("td",{class:c.normalizeClass(`AVInstantRunoffSummary--text-${e.theme}`)},c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.exhausted")),3),(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:c.normalizeClass(["AVInstantRunoffSummary--text AVInstantRunoffSummary--cell-text",`AVInstantRunoffSummary--text-${e.theme}`])},c.toDisplayString(e.rounds[m-1].exhausted),3))),128))])])])]),e.votesNotIncluded?(c.openBlock(),c.createElementBlock("p",{key:0,class:c.normalizeClass(["AVInstantRunoffSummary--summary",`AVInstantRunoffSummary--text-${e.theme}`]),"data-test":"not-included"},[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.not_included_count")),1),c.createTextVNode(" "+c.toDisplayString(e.votesNotIncluded),1)],2)):c.createCommentVNode("",!0),c.createElementVNode("p",{class:c.normalizeClass(["AVInstantRunoffSummary--summary",`AVInstantRunoffSummary--text-${e.theme}`]),"data-test":"abstain"},[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.abstain")),1),c.createTextVNode(" "+c.toDisplayString(e.blankVotes),1)],2),c.createElementVNode("p",{class:c.normalizeClass(["AVInstantRunoffSummary--summary",`AVInstantRunoffSummary--text-${e.theme}`]),"data-test":"total"},[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.total_votes")),1),c.createTextVNode(" "+c.toDisplayString(e.totalVotes),1)],2),c.createElementVNode("p",{class:c.normalizeClass(["AVInstantRunoffSummary--summary",`AVInstantRunoffSummary--text-${e.theme}`]),"data-test":"quota"},[c.createElementVNode("strong",null,c.toDisplayString(c.unref(o)("js.components.AVInstantRunoffSummary.summary.quota")),1),c.createTextVNode(" "+c.toDisplayString(e.quota),1)],2)])])}}}),aU=D(P01,[["__scopeId","data-v-28f67e70"]]);var R01={},F01={class:"flex items-center"},$01={class:"flex flex-col items-center justify-center p-3 w-full"};function q01(e,t){var l=c.resolveComponent("AVNavbarItem"),a=c.resolveComponent("AVNavigationItemList"),s=c.resolveComponent("AVMenuDropdown"),n=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(n,null,{default:c.withCtx(function(){return[t[0]||(t[0]=c.createElementVNode("a",{href:"#"},"LOGO",-1)),c.createElementVNode("div",F01,[c.createVNode(a,{type:"navbar"},{default:c.withCtx(function(){return[c.createVNode(l,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(l,{label:"Admins",icon:"user-shield",href:"#"})]}),_:1}),c.createVNode(s,{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",$01,[t[1]||(t[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 t[2]||(t[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 nU=D(R01,[["render",q01]]);var j01={},U01={class:"flex items-center"},W01={class:"flex flex-col items-center justify-center p-3 w-full"};function J01(e,t){var l=c.resolveComponent("AVNavbarItem"),a=c.resolveComponent("AVNavigationItemList"),s=c.resolveComponent("AVMenuDropdown"),n=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(n,null,{default:c.withCtx(function(){return[t[0]||(t[0]=c.createElementVNode("a",{href:"#"},"LOGO",-1)),c.createElementVNode("div",U01,[c.createVNode(a,{type:"navbar"},{default:c.withCtx(function(){return[c.createVNode(l,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(l,{label:"Admins",icon:"user-shield",href:"#"})]}),_:1}),c.createVNode(s,{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,[t[1]||(t[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 t[2]||(t[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 sU=D(j01,[["render",J01]]);var G01={},Z01={class:"flex items-center"};function Q01(e,t){var l=c.resolveComponent("AVNavbarItem"),a=c.resolveComponent("AVNavigationItemList"),s=c.resolveComponent("AVMenuDropdown"),n=c.resolveComponent("AVNavbar"),o=c.resolveComponent("AVContent"),i=c.resolveComponent("AVFooter");return c.openBlock(),c.createElementBlock(c.Fragment,null,[c.createVNode(n,null,{default:c.withCtx(function(){return[t[0]||(t[0]=c.createElementVNode("a",{href:"#"},"LOGO",-1)),c.createElementVNode("div",Z01,[c.createVNode(a,{type:"navbar"},{default:c.withCtx(function(){return[c.createVNode(l,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(l,{label:"Admins",icon:"user-shield",href:"#"})]}),_:1}),c.createVNode(s,{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 t[1]||(t[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 oU=D(G01,[["render",Q01]]),Y01={class:"flex items-center"},K01={href:"/new"},X01={class:"new-election-button"},e61={key:0,class:"no-elections-container"},c61=c.defineComponent({__name:"ElectionDashboardLayout",setup(e){const t=[{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(l,a)=>{const s=c.resolveComponent("AVNavbarItem"),n=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",Y01,[c.createVNode(n,{type:"navbar"},{default:c.withCtx(()=>[c.createVNode(s,{label:"Dashboard",icon:"check-to-slot",href:"#"}),c.createVNode(s,{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",K01,[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",X01,[c.createVNode(r,{icon:"fa-solid fa-circle-plus",class:"new-election-icon"})])]),_:1})]),t.length===0?(c.openBlock(),c.createElementBlock("div",e61,[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(t,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)}}}),iU=D(c61,[["__scopeId","data-v-20fc858f"]]),t61={install:function(e,t){t===void 0&&(t=null),e.use(oZ),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",tj),e.component("AVAlert",lj),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("AVAnimatedTransition",vj),e.component("AVCollapser",bj),e.component("AVLinkVisualizer",Aj),e.component("AVVerticalStep",YX),e.component("AVAnimatedMenuButton",XX),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",Dj),e.component("AVSplitWeightHelper",Oj),e.component("AVSplitWizardHeader",Pj),e.component("AVElectaContestCard",Rj),e.component("AVResultOption",Fj),e.component("AVRecommendationList",$j),e.component("AVFooter",qj),e.component("AVSidebar",jj),e.component("AVNavbar",Uj),e.component("AVContent",Wj),e.component("AVModal",Jj),e.component("AVBallot",Qj),e.component("AVPileSummary",Yj),e.component("AVSplitHelper",Xj),e.component("AVResourceSection",eU),e.component("AVCalculateResultContent",cU),e.component("AVNormalSummary",tU),e.component("AVRankedSummary",lU),e.component("AVInstantRunoffSummary",aU),e.component("OneColumnLayout",nU),e.component("TwoColumnsLayout",sU),e.component("NoSidebarLayout",oU),e.component("ElectionDashboardLayout",iU),e.provide("i18n",t||Xn),e.provide("iconNames",R$)}};exports.AVAlert=lj;exports.AVAnimatedTransition=vj;exports.AVAsyncButton=dj;exports.AVBallot=Qj;exports.AVBallotStyleCard=Sj;exports.AVBallotSummary=zj;exports.AVBasicSteps=Lj;exports.AVBlankOption=Tj;exports.AVBreadcrumb=yj;exports.AVBullet=o4;exports.AVButton=jq;exports.AVCalculateResultContent=cU;exports.AVCard=Kq;exports.AVCollapser=bj;exports.AVContent=Wj;exports.AVDatetimeInput=Zq;exports.AVDropdown=ej;exports.AVDropdownContent=cj;exports.AVDropdownItem=tj;exports.AVElectaContestCard=Rj;exports.AVElectionCard=Vj;exports.AVFileInput=aj;exports.AVFooter=qj;exports.AVIcon=qq;exports.AVInstantRunoffSummary=aU;exports.AVLabel=Yq;exports.AVLink=sj;exports.AVLinkVisualizer=Aj;exports.AVMenuDropdown=fj;exports.AVMenuDropdownContent=mj;exports.AVMenuDropdownItem=uj;exports.AVModal=Jj;exports.AVNavbar=Uj;exports.AVNavbarItem=oj;exports.AVNavigationItemList=xj;exports.AVNormalSummary=tU;exports.AVNumberInput=Jq;exports.AVOption=Bj;exports.AVOptionCheckbox=Mj;exports.AVOptionSelect=Cj;exports.AVPasswordInput=Gq;exports.AVPileSummary=Yj;exports.AVProgressBar=_j;exports.AVRadio=nj;exports.AVRadioGroup=kj;exports.AVRankedSummary=lU;exports.AVRecommendationList=$j;exports.AVResourceSection=eU;exports.AVResultOption=Fj;exports.AVRoundButton=Xq;exports.AVSearchBallot=Dj;exports.AVSidebar=jj;exports.AVSidebarItem=ij;exports.AVSpinner=Uq;exports.AVSplitHelper=Xj;exports.AVSplitWeightHelper=Oj;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.AVWaitingDots=Nj;exports.AVWriteInOption=Hj;exports.ElectionDashboardLayout=iU;exports.NoSidebarLayout=oU;exports.OneColumnLayout=nU;exports.TwoColumnsLayout=sU;exports.default=t61;exports.iconNames=R$;