1import{C as e,D as t,E as a,Gt as o,Lt as s,N as r,Tt as l,ct as n,fn as i,hn as p,it as u,w as c}from"./B8XHxhss.js";import{F as g,L as m,_}from"#entry";import{t as d}from"./C8hUe6ah.js";import{t as f}from"./BZCC4tpL.js";var O={class:"d-citizen-proposal-page"},V={key:0,class:"contents"},b=["value","max"],v={key:0,for:"vote-progress",class:"text-medium text-caption-lg-regular"},y={key:1,for:"vote-progress",class:"text-medium text-caption-lg-regular"},E=Object.assign({inheritAttrs:!1},{__name:"CitizenProposalPage",props:{showLongRead:Boolean,contentElements:Array,enableVoting:Boolean,voteCount:{type:Number,default:void 0},targetNumberOfVotes:{type:Number,default:void 0}},setup(E){d();const h={X_VOTE:_("X_VOTE",{capitalize:!0}),X_VOTES:_("X_VOTES",{capitalize:!0}),X_VOTE_OF_Y:_("X_VOTE_OF_Y",{capitalize:!0}),X_VOTES_OF_Y:_("X_VOTES_OF_Y",{capitalize:!0})},T=E,X=f("floatingSidebar"),x=s(T.voteCount??0),z=e(()=>T.enableVoting&&"number"==typeof T.voteCount&&"number"==typeof T.targetNumberOfVotes&&T.targetNumberOfVotes),N=e(()=>z.value?h[1===x.value?"X_VOTE_OF_Y":"X_VOTES_OF_Y"].replace("{0}",x.value).replace("{1}",T.targetNumberOfVotes):T.enableVoting?1===x.value?h.X_VOTE.replace("{0}",x.value):h.X_VOTES.replace("{0}",x.value):null);return m().on("citizenProposalPageVoteAction:submit",()=>{x.value++}),(e,s)=>{const m=g;return u(),t("article",O,[r(m,{name:"content-page-layout","show-long-read":E.showLongRead,"block-list":E.contentElements},{headerActions:l(()=>[n(e.$slots,"headerActions")]),afterHeader:l(()=>[E.enableVoting?(u(),t("div",V,[o(z)?(u(),t("progress",{key:0,id:"vote-progress",class:"d-citizen-proposal-page__progress-bar top-[--dynamic-site-header-height] w-full h-24 z-1",value:Math.min(o(x),E.targetNumberOfVotes),max:E.targetNumberOfVotes},null,8,b)):a("",!0),c("div",{class:i(["flex justify-center >=656:justify-end pt-xs px-xs",{">=656:!pr-100 transition-padding duration-300":o(X)}])},[o(z)?(u(),t("label",v,p(o(N)),1)):(u(),t("p",y,p(o(N)),1))],2)])):a("",!0),n(e.$slots,"afterHeader")]),default:l(()=>[n(e.$slots,"error")]),_:3},8,["show-long-read","block-list"]),n(e.$slots,"afterLayout")])}}});export{E as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.