PageSourceSearch

https://hillharbor-chi.vercel.app/_next/static/chunks/9104.bd6b7724060d15d8.js

js hillharbor-chi.vercel.app collected 2026-10-03 07:06:40 UTC 3,858 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="c8c35f07-cbf8-4043-bc95-4cac9fe8baa7",e._sentryDebugIdIdentifier="sentry-dbid-c8c35f07-cbf8-4043-bc95-4cac9fe8baa7")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9104],{68411:function(e,s,n){n.d(s,{Z:function(){return HelpIssue_FormHelp}});var i=n(57437),r=n(61865),a=n(38110),l=n(87280),d=n(49170),t=n(16806),c=n(66556),o=n(59310),u=n(93134),m=n(4380);let f=["image/jpeg","image/jpg","image/png","image/webp"],g=u.Ry({summary:u.Z_().trim().min(1,{message:"Required"}),description:u.Z_().trim().min(1,{message:"Required"}),files:u.Yj().optional().nullable()}).superRefine((e,s)=>{var n,i,r,a;e.files.length>1&&s.addIssue({code:m.NL.custom,message:"Limit 1 image",path:["files"]}),(null===(i=e.files)||void 0===i?void 0:null===(n=i[0])||void 0===n?void 0:n.size)>5e6&&s.addIssue({code:m.NL.custom,message:"Max file size is 5MB",path:["files"]}),e.files>0&&!f.includes(null===(a=e.files)||void 0===a?void 0:null===(r=a[0])||void 0===r?void 0:r.type)&&s.addIssue({code:m.NL.custom,message:".jpg, .jpeg, .png and .webp files are accepted.",path:["files"]})});var HelpIssue_FormHelp=e=>{let{onSubmit:s,btnClass:n=""}=e,u=(0,r.cI)({resolver:(0,a.F)(g),defaultValues:{summary:"",description:""}}),{register:m,formState:{isSubmitting:f}}=u;return(0,i.jsx)(c.l0,{...u,children:(0,i.jsxs)("form",{onSubmit:u.handleSubmit(s),className:"space-y-8",children:[(0,i.jsx)(c.Wi,{control:u.control,name:"summary",render:e=>{let{field:s}=e;return(0,i.jsxs)(c.xJ,{children:[(0,i.jsx)(c.zG,{})," ",(0,i.jsx)(c.lX,{children:"Issue Summary"}),(0,i.jsx)(c.NI,{children:(0,i.jsx)(o.I,{...m("summary"),type:"text",className:"bg-background-light dark:bg-background-dark",...s})})]})}}),(0,i.jsx)(c.Wi,{control:u.control,name:"description",render:e=>{let{field:s}=e;return(0,i.jsxs)(c.xJ,{children:[(0,i.jsx)(c.zG,{})," ",(0,i.jsx)(c.lX,{children:"Issue Details"}),(0,i.jsx)(c.NI,{children:(0,i.jsx)(d.g,{...m("description"),className:"bg-background-light dark:bg-background-dark",...s})})]})}}),(0,i.jsx)(c.Wi,{control:u.control,name:"files",render:()=>(0,i.jsxs)(c.xJ,{children:[(0,i.jsx)(c.zG,{})," ",(0,i.jsx)(c.lX,{children:"Add Screenshot"}),(0,i.jsx)(c.NI,{children:(0,i.jsx)("div",{className:"w-full",children:(0,i.jsx)(o.I,{...m("files"),type:"file",accept:".jpg, .jpeg, .png",className:"bg-background-light dark:bg-background-dark"})})})]})}),(0,i.jsxs)(t.z,{disabled:f,className:"mt-4 ".concat(n),children:[f&&(0,i.jsx)(l.PJ.Spinner,{className:"mr-2 h-4 w-4 animate-spin"}),"Send"]})]})})}},99104:function(e,s,n){n.r(s);var i=n(57437),r=n(37402),a=n(63014),l=n(68411);s.default=e=>{let{open:s,setOpen:n}=e,handleSubmit=async e=>{let s=new FormData;s.append("summary",e.summary),s.append("description",e.description),e.files.length&&s.append("image",e.files[0]);let i=await fetch("/api/help-issue",{method:"POST",body:s}),r=await i.json();r.success?(a.toast.success(r.message),n(!1)):a.toast.error(r.message)};return(0,i.jsx)(r.Vq,{open:s,onOpenChange:n,children:(0,i.jsxs)(r.cZ,{children:[(0,i.jsx)(r.fK,{children:(0,i.jsx)(r.$N,{children:"Help"})}),(0,i.jsx)(l.Z,{onSubmit:handleSubmit,btnClass:"w-full"})]})})}},49170:function(e,s,n){n.d(s,{g:function(){return l}});var i=n(57437),r=n(2265),a=n(86691);let l=r.forwardRef((e,s)=>{let{className:n,...r}=e;return(0,i.jsx)("textarea",{className:(0,a.cn)("flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),ref:s,...r})});l.displayName="Textarea"}}]);

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.