1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7495],{18430:(e,t,r)=>{"use strict";r.d(t,{B:()=>m});var n=r(76),i=r(5618),s=r(80616),a=r(37544),o=r(43016),l=r(60481),d={root:"m_6d731127"},u=r(6029);let c={gap:"md",align:"stretch",justify:"flex-start"},h=(0,i.V)((e,{gap:t,align:r,justify:i})=>({root:{"--stack-gap":(0,n.GY)(t),"--stack-align":r,"--stack-justify":i}})),m=(0,o.P9)(e=>{let t=(0,s.Y)("Stack",c,e),{classNames:r,className:n,style:i,styles:o,unstyled:m,vars:g,align:p,justify:f,gap:x,variant:v,attributes:b,...y}=t;return(0,u.jsx)(l.a,{...(0,a.I)({name:"Stack",props:t,classes:d,className:n,style:i,classNames:r,styles:o,unstyled:m,attributes:b,vars:g,varsResolver:h})("root"),variant:v,...y})});m.classes=d,m.varsResolver=h,m.displayName="@mantine/core/Stack"},45490:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(33601);function i(){return void 0!==n&&n.env,"development"}},58798:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(6029),i=r(17594),s=r(48340),a=r.n(s);function o({children:e,title:t,active:r,hideHeader:s,pageTitle:l}){return(0,n.jsxs)(i.A,{active:r,title:l??t,children:[!s&&(0,n.jsxs)("div",{className:a().header,children:[(0,n.jsx)("div",{className:a().title,children:(0,n.jsx)("h2",{children:t})}),(0,n.jsx)("div",{className:a().line})]}),(0,n.jsx)("div",{className:"container",children:e})]})}},60231:(e,t,r)=>{"use strict";r.d(t,{T:()=>p});var n=r(45490),i=r(80616),s=r(43016),a=r(94613),o=r(55729),l=r(56655),d=r(6029);let u=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],c={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"};function h(e){Object.keys(c).forEach(t=>{e.style.setProperty(t,c[t],"important")})}let m=null;function g({maxRows:e,minRows:t,onChange:r,ref:n,...i}){let s=void 0!==i.value,a=(0,o.useRef)(null),c=(0,l.pc)(a,n),p=(0,o.useRef)(0),f=()=>{let r=a.current;if(!r)return;let n=function(e){let t=window.getComputedStyle(e);if(null===t)return null;let r={};for(let e of u)r[e]=t[e];return""===r.boxSizing?null:{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)}}(r);if(!n)return;let[i]=function(e,t,r=1,n=1/0){m||((m=document.createElement("textarea")).setAttribute("tabindex","-1"),m.setAttribute("aria-hidden","true"),m.setAttribute("aria-label","autosize measurement"),h(m)),null===m.parentNode&&document.body.appendChild(m);let{paddingSize:i,borderSize:s,sizingStyle:a}=e,{boxSizing:o}=a;Object.keys(a).forEach(e=>{m.style[e]=a[e]}),h(m),m.value=t;let l="border-box"===o?m.scrollHeight+s:m.scrollHeight-i;m.value=t,l="border-box"===o?m.scrollHeight+s:m.scrollHeight-i,m.value="x";let d=m.scrollHeight-i,u=d*r;"border-box"===o&&(u=u+i+s),l=Math.max(u,l);let c=d*n;return"border-box"===o&&(c=c+i+s),[l=Math.min(c,l),d]}(n,r.value||r.placeholder||"x",t,e);p.current!==i&&(p.current=i,r.style.setProperty("height",`${i}px`,"important"))};return(0,o.useLayoutEffect)(f),(0,o.useEffect)(()=>{let e=()=>f();return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,o.useEffect)(()=>{let e=()=>f();return document.fonts.addEventListener("loadingdone",e),()=>document.fonts.removeEventListener("loadingdone",e)},[]),(0,o.useEffect)(()=>{let e=e=>{if(a.current?.form===e.target&&!s){let e=a.current.value;requestAnimationFrame(()=>{a.current&&e!==a.current.value&&f()})}};return document.body.addEventListener("reset",e),()=>document.body.removeEventListener("reset",e)},[s]),(0,d.jsx)("textarea",{...i,onChange:e=>{s||f(),r?.(e)},ref:c})}let p=(0,s.P9)(e=>{let{autosize:t,maxRows:r,minRows:s,__staticSelector:o,resize:l,...u}=(0,i.Y)(["Input","InputWrapper","Textarea"],null,e),c=t&&"test"!==(0,n._)();return(0,d.jsx)(a.O,{component:c?g:"textarea",...u,__staticSelector:o||"Textarea",multiline:!0,"data-no-overflow":t&&void 0===r||void 0,__vars:{"--input-resize":l},...c?{maxRows:r,minRows:s}:{}})});p.classes=a.O.classes,p.displayName="@mantine/core/Textarea"},64147:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9409).A)("outline","arrow-left","ArrowLeft",[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]])},67645:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/suggestions/add",function(){return r(91638)}])},91231:(e,t,r)=>{"use strict";r.d(t,{Z:()=>v});var n=r(76),i=r(5618),s=r(80616),a=r(37544),o=r(63863),l=r(10128);let[d,u]=(0,r(36254).F)("Card component was not found in tree");var c={root:"m_e615b15f",section:"m_599a2148"}
1,h=r(60481),m=r(6029);let g=(0,o.v)(e=>{let{classNames:t,className:r,style:n,styles:i,vars:a,withBorder:o,inheritPadding:l,mod:d,...c}=(0,s.Y)("CardSection",null,e),g=u();return(0,m.jsx)(h.a,{mod:[{"with-border":o,"inherit-padding":l},d],...g.getStyles("section",{className:r,style:n,styles:i,classNames:t}),...c})});g.classes=c,g.displayName="@mantine/core/CardSection";var p=r(55729);let f=(0,i.V)((e,{padding:t})=>({root:{"--card-padding":(0,n.GY)(t)}})),x={orientation:"vertical"},v=(0,o.v)(e=>{let t=(0,s.Y)("Card",x,e),{classNames:r,className:n,style:i,styles:o,unstyled:u,vars:h,children:v,padding:b,attributes:y,orientation:w,...j}=t,S=(0,a.I)({name:"Card",props:t,classes:c,className:n,style:i,classNames:r,styles:o,unstyled:u,attributes:y,vars:h,varsResolver:f}),k=p.Children.toArray(v),E=k.map((e,t)=>"object"==typeof e&&e&&"type"in e&&(e.type===g||e.type?.displayName==="@mantine/core/CardSection")?(0,p.cloneElement)(e,{"data-orientation":w,"data-first-section":0===t||void 0,"data-last-section":t===k.length-1||void 0}):e);return(0,m.jsx)(d,{value:{getStyles:S},children:(0,m.jsx)(l.t,{unstyled:u,"data-orientation":w,...S("root"),...j,children:E})})});v.classes=c,v.varsResolver=f,v.displayName="@mantine/core/Card",v.Section=g},91638:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(6029),i=r(8511),s=r(91231),a=r(60154),o=r(96804),l=r(18430),d=r(59029),u=r(60231),c=r(99803),h=r(30682),m=r(70770),g=r(57124),p=r(64147),f=r(81278),x=r(55729),v=r(58798),b=r(7873),y=r(92184),w=r(26789);function j(){let e=y.i.misc.suggestionAdd.useMutation(),t=(0,f.useRouter)(),r=(0,b.Jd)(),[j,S]=(0,x.useState)(!1);(0,x.useEffect)(()=>{r.loading||r.data||t.replace("/signin")},[r]);let k=(0,g.m)({initialValues:{title:"",description:"",showName:!1}});async function E(r){S(!0);let n=await e.mutateAsync(r);n.success?t.replace(`/suggestions/${n.id}`):(alert("There was a problem submitting your idea. Please try again later or contact us."),S(!1))}return(0,n.jsxs)(v.A,{title:"Add Suggestion",hideHeader:!0,children:[(0,n.jsxs)(i.M,{component:w.A,href:"/suggestions",children:[(0,n.jsx)(p.A,{size:12})," Back to all suggestions"]}),(0,n.jsxs)(s.Z,{p:"xl",fz:"md",lh:"sm",mt:"md",children:[(0,n.jsx)(a.h,{order:3,children:"Add Suggestion"}),(0,n.jsx)(o.E,{mt:"md",children:"Enter a meaningful suggestion below. Your suggestion will be published after you click on the Create button."}),(0,n.jsxs)("form",{onSubmit:k.onSubmit(E),children:[(0,n.jsxs)(l.B,{mt:"lg",gap:"xs",children:[(0,n.jsx)(d.k,{label:"Title",required:!0,maxLength:200,withAsterisk:!1,placeholder:"Your suggestion",disabled:e.isPending||j,...k.getInputProps("title")}),(0,n.jsx)(u.T,{label:"Description",withAsterisk:!1,disabled:e.isPending||j,resize:"vertical",placeholder:"Description of your suggestion (optional)",maxLength:5e3,rows:4,...k.getInputProps("description")}),(0,n.jsx)(c.S,{label:"Show my name in the suggestion",description:"Check if you want your name to appear at the bottom of the suggestion. Otherwise your name will be hidden.",...k.getInputProps("showName")})]}),(0,n.jsxs)(h.Y,{mt:"md",children:[(0,n.jsx)(m.$,{type:"submit",variant:"filled",loading:e.isPending||j,children:"Create Suggestion"}),(0,n.jsx)(i.M,{c:"dimmed",mr:"xs",fz:"sm",component:w.A,href:"/suggestions",children:"Cancel"})]})]})]})]})}let S=()=>(0,n.jsx)(j,{})}},e=>{e.O(0,[1869,636,6593,8792],()=>e(e.s=67645)),_N_E=e.O()}]);
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.