1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8862],{28488:function(e,r,t){"use strict";t.d(r,{I:function(){return b}});var n=t(92809),i=t(10219),s=t(105),c=t(68527),o=t(25112),a=t(67294),l=t(85893),u=["isLarge","flush","rowSpacing","isDense","children","defaultPadding"];function d(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?d(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var b=(0,s.Gp)((function(e,r){var t=e.isLarge,n=e.flush,s=e.rowSpacing,d=(e.isDense,e.children),b=e.defaultPadding,f=void 0===b||b,h=(0,i.Z)(e,u),j={templateColumns:"repeat(8, minmax(0, 1fr))",columnGap:4,rowGap:a.useMemo((function(){return"equal"==s?4:"flush"==s?0:t?{base:20,sm:12,md:24}:8}),[t,s]),mb:t?[4,12,24]:0},m=a.useMemo((function(){return f?"vertical"==n?{px:o.o3}:"horizontal"==n?{py:o.o3}:"both"==n||n?{p:o.o3}:{}:{}}),[n]);return(0,l.jsx)(c.rj,p(p(p(p({className:"grid-8"},m),j),{},{ref:r},h),{},{children:d}))}));b.defaultProps={flush:!0}},60781:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSG:function(){return w},default:function(){return P}});var n=t(92809),i=t(30266),s=t(80318),c=t(809),o=t.n(c),a=t(28488),l=t(68527),u=t(79762),d=t(4612),p=t(11391),b=t(33441),f=t(86460),h=t(87536),j=t(67294),m=t(11323),v=t(36936),x=t(85893);function y(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function g(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?y(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var O=function(){var e,r,t,n,c,m=j.useState(!1),v=(0,s.Z)(m,2),y=v[0],O=v[1],w=j.useState(!1),P=(0,s.Z)(w,2),k=P[0],I=P[1],S=(0,h.cI)({defaultValues:{}}),_=S.handleSubmit,N=S.register,D=S.formState.errors,E=function(){var e=(0,i.Z)(o().mark((function e(r){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,O(!0),e.next=4,fetch("./api/feedback",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});case 4:t=e.sent,O(!1),200===t.status?(I(!0),window.scrollTo({top:0})):I(!1),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(r){return e.apply(this,arguments)}}();return(0,x.jsxs)(a.I,{isLarge:!0,children:[(0,x.jsx)(l.P4,{colSpan:{base:8,sm:3},colStart:{base:1,sm:3},mb:12,children:"Feedback"}),(0,x.jsx)(l.P4,{colSpan:{base:8,sm:2},colStart:{base:1,sm:3},mb:12,display:{base:"none",sm:"unset"},children:k?"Thanks for your feedback!":"Form"}),(0,x.jsx)(l.P4,{colStart:{base:1,sm:5},colEnd:-1,children:!k&&(0,x.jsxs)(l.Kq,{as:"form",spacing:12,onSubmit:_(E),children:[(0,x.jsxs)(u.NI,{id:"name",isInvalid:!!D.name,children:[(0,x.jsx)(u.lX,{children:"Name"}),(0,x.jsx)(d.II,g({type:"text",placeholder:"Your name"},N("name",{required:!0}))),(0,x.jsx)(u.J1,{children:null===(e=D.name)||void 0===e?void 0:e.message})]}),(0,x.jsxs)(u.NI,{id:"email",isInvalid:!!D.email,children:[(0,x.jsx)(u.lX,{children:"Email"}),(0,x.jsx)(d.II,g({type:"email",placeholder:"Your email"},N("email",{required:!0,pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"invalid email address"}}))),(0,x.jsx)(u.J1,{children:null===(r=D.email)||void 0===r?void 0:r.message})]}),(0,x.jsxs)(u.NI,{id:"url",isInvalid:!!D.url,children:[(0,x.jsx)(u.lX,{children:"URL"}),(0,x.jsx)(d.II,g({type:"text",placeholder:"buck.co/about"},N("url",{required:!0}))),(0,x.jsx)(u.Q6,{children:"A relevant buck.co URL"}),(0,x.jsx)(u.J1,{children:null===(t=D.url)||void 0===t?void 0:t.message})]}),(0,x.jsxs)(u.NI,{id:"url",isInvalid:!!D.type,children:[(0,x.jsx)(u.lX,{children:"Type"}),(0,x.jsxs)(p.Ph,g(g({},N("type",{required:!0})),{},{borderRadius:0,children:[(0,x.jsx)("option",{value:"Feedback",children:"Feedback"}),(0,x.jsx)("option",{value:"Content Issue",children:"Content Issue"}),(0,x.jsx)("option",{value:"Bug",children:"Bug"})]})),(0,x.jsx)(u.Q6,{children:"What type of feedback are you giving?"}),(0,x.jsx)(u.J1,{children:null===(n=D.type)||void 0===n?void 0:n.message})]}),(0,x.jsxs)(u.NI,{id:"url",isInvalid:!!D.description,children:[(0,x.jsx)(u.lX,{mb:4,children:"Description"}),(0,x.jsx)(b.g,g(g({rows:10},N("description",{required:!0})),{},{borderRadius:0})),(0,x.jsx)(u.Q6,{children:"Write your feedback here."}),(0,x.jsx)(u.J1,{children:null===(c=D.description)||void 0===c?void 0:c.message})]}),(0,x.jsx)(f.zx,{type:"submit",disabled:y,bg:"black",color:"white",borderRadius:"full",children:y?"Submitting...":"Submit"})]})})]})},w=!0;function P(e){return(0,x.jsxs)(v.Z,{title:"Feedback",siteMeta:e.siteMeta,isPreview:e.preview,children:[(0,x.jsx)(m.Z,{title:"Feedback | BUCK",url:"".concat("https://buck.co","/feedback")}),(0,x.jsx)(O,{})]})}},81535:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/feedback",function(){return t(60781)}])}},function(e){e.O(0,[9774,1895,7520,2651,6936,2888,179],(function(){return r=81535,e(e.s=r);var r}));var r=e.O();_N_E=r}]); 2//# sourceMappingURL=feedback-64f8048a52cd30d68973.js.map
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.