1import{o as S}from"../chunks/chunk-7RrFr7xF.js";import{d as v,u as e,a as h,y as b}from"../chunks/chunk-BDdcB8h7.js";import{C as L}from"../chunks/chunk-Dn59njFs.js";import{C as f,P as V,a as z,b as A}from"../chunks/chunk-DN4pUlt7.js";import{c as P,A as T}from"../chunks/chunk-BhCa1cNq.js";import{g as C}from"../chunks/chunk-BM4oNHX2.js";import{L as w}from"../chunks/chunk-DIrgY6z4.js";import{s as g}from"../chunks/chunk-dzR5X_Cg.js";import{s as p}from"../chunks/chunk-nm0u722b.js";import{u as N}from"../chunks/chunk-DA9OOZ4w.js";import{F as H}from"../chunks/chunk-B34qGBce.js";import{c as M}from"../chunks/chunk-Btc7DROK.js";import{c as y}from"../chunks/chunk-BaEq5_gF.js";import"../chunks/chunk-bFjQlsqE.js";import"../chunks/chunk-0wmAPz5s.js";import"../chunks/chunk-Drnad01z.js";import"../chunks/chunk-BaZ54qtF.js";import"../chunks/chunk-p4Og2yNf.js";/* empty css *//* empty css */import"../chunks/chunk-BYTWRd1m.js";import"../chunks/chunk-Cxg7rcZE.js";import"../chunks/chunk-DPtJajya.js";import"../chunks/chunk-BaOBW4BE.js";import"../chunks/chunk-DHtCj5GT.js";import"../chunks/chunk-B9t0Zqsu.js";import"../chunks/chunk-Cpj98o6Y.js";import"../chunks/chunk-CsZAdqZL.js";import"../chunks/chunk-Dy3qwWxk.js";import"../chunks/chunk-CGr0Ibp4.js";import"../chunks/chunk-CtbMSyIo.js";import"../chunks/chunk-BXlke3r5.js";/* empty css */import"../chunks/chunk-5isDyh7s.js";/* empty css */import"../chunks/chunk-Bv7Yt5bZ.js";import"../chunks/chunk-CAJO32L7.js";import"../chunks/chunk-x31yGuiN.js";import"../chunks/chunk-DPmqJkrZ.js";import"../chunks/chunk-Dph2GNf5.js";import"../chunks/chunk-BP0LDepV.js";import"../chunks/chunk-DmLvlCXJ.js";import"../chunks/chunk-dGoIjVCw.js";import"../chunks/chunk-DPU45FgU.js";import"../chunks/chunk-CHjBQRM1.js";const D=({ideaId:t})=>{const[l,i]=v(!1),r=C(),{isSubscribed:o,loading:a,toggleSubscription:n}=P({resourceType:"idea",resourceId:Number(t)}),s=()=>{if(r.type==="guest"){i(!0);return}n()};return r.type==="guest"?null:e(h,{children:[e("button",{"aria-label":"Follow Idea",disabled:a,className:g["follow-button"],onClick:s,children:e("span",{className:g["follow-text"],children:a?"Loading":o?"Following":"Follow"})}),e(w,{isOpen:l,onClose:()=>{i(!1)},message:"Please login to follow this idea"})]})},F=({ideaId:t})=>{const[l,i]=v(!1),r=C(),{hasVoted:o,votesCount:a,loading:n,vote:s}=N(t);return e(h,{children:[e("button",{onClick:async()=>{if(r.type==="guest"){i(!0);return}await s()},disabled:n,"aria-label":"Vote for Idea",className:p["vote-button"],children:[o?e("svg",{strokeWidth:"0",viewBox:"0 0 24 24",className:p["icon-wrapper"],height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:e("path",{className:p["icon-path"],d:"M4 21h1V8H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2zM20 8h-7l1.122-3.368A2 2 0 0 0 12.225 2H12L7 7.438V21h11l3.912-8.596L22 12v-2a2 2 0 0 0-2-2z"})}):e("svg",{strokeWidth:"0",viewBox:"0 0 24 24",className:p["icon-wrapper"],height:"1em",width:"1em",children:e("path",{className:p["icon-path"],d:"M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z"})}),e("span",{children:[a," ",a===1?"Vote":"Votes"]})]}),e(w,{isOpen:l,onClose:()=>{i(!1)},message:"Please login to vote for this idea"})]})};function I({idea:t,messages:l,error:i}){if(b(()=>{t?.id&&fetch(`/api/schemas/ideas/${t.id}`).then(c=>c.text()).then(c=>{const u=document.createElement("script");u.type="application/ld+json",u.textContent=c,document.head.appendChild(u)})}
1,[t?.id]),i||!t)return e("div",{style:{textAlign:"center",padding:"2rem"},children:[e("h1",{children:"Roadmap item not found"}),e("a",{href:"/roadmap",style:{textDecoration:"underline"},children:"Return to roadmap"})]});const{Title:r,id:o,Username:a,Created:n,Description:s,IdeaType:d,Status:m,Attachments:x}=t;return e(h,{children:[e(f,{children:e(H,{})}),e(L,{children:[e(V,{title:r,createdBy:a??"User",createdAt:n,resourceType:"idea",children:[(m==="Complete"||m==="In Progress")&&e("div",{style:{backgroundColor:"#00e629",color:"#333",marginRight:"auto",marginBottom:"auto",fontSize:"11px",padding:"1px 10px",borderRadius:"10px"},children:m}),e("div",{style:{width:"auto",display:"inline-flex",flexDirection:"column",gap:"4px",marginLeft:"auto"},children:e("div",{className:`${y.chip} ${d==="Fix"?y.red:""}`,children:d==="Fix"?"Bug":d==="New"?"Feature":d})})]}),e(z,{content:s}),e(f,{children:[e(D,{ideaId:o}),e(F,{ideaId:Number(o)}),e(T,{attachments:x,galleryId:o,showImageAttachments:!1})]}),e(A,{resourceType:"idea",channelName:M("idea",o),initialMessages:l??null})]})]})}const R=Object.freeze(Object.defineProperty({__proto__:null,Page:I},Symbol.toStringTag,{value:"Module"})),Pe={hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"/renderer/onRenderClient.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:S}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/roadmap/@slug/+Page.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:R}}};export{Pe as configValuesSerialized};
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.