PageSourceSearch

https://viralt.ai/assets/index-CezfeW4t.js

js viralt.ai collected 2026-10-05 13:16:26 UTC 4,781 bytes, 1 lines download raw bytes

1import{r as f,j as e,h as m,a as g,i as h,R as x,M as v,A as C,B as b,n as w,t as o}from"./index-CRiAqE2d.js";const u=f.forwardRef(({className:i,...s},t)=>e.jsx("textarea",{className:m("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-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",i),ref:t,...s}));u.displayName="Textarea";const k=()=>{const i=g(),{userInfo:s}=h(),[t,n]=x.useState(""),[r,d]=x.useState(!1),p=async()=>{var l,c;if(!(!t.trim()||r||!(s!=null&&s.user_id)))try{d(!0);const a=await w.sendUserFeedback(s.user_id,t.trim());a.data.code===0?(o.success("Feedback submitted successfully"),n("")):o.error(a.data.message||"Failed to submit feedback")}catch(a){o.error(((c=(l=a==null?void 0:a.response)==null?void 0:l.data)==null?void 0:c.message)||"Failed to submit feedback")}finally{d(!1)}};return e.jsxs("div",{className:"w-full relative h-full flex justify-center items-center  ",children:[e.jsx("div",{className:"absolute inset-0 z-[-1]",children:e.jsx("div",{className:"absolute bg-[url('@/assets/images/start-mobile-bg.webp')] md:bg-[url('@/assets/images/start-bg.webp')] bg-no-repeat inset-0 h-full w-full bg-cover bg-center transition-opacity duration-700","aria-hidden":!1})}),e.jsxs("div",{className:"md:h-[90vh] md:max-h-[800px] max-md:h-[100dvh] md:rounded-[12px] w-full flex flex-col md:w-[410px] pb-[10px] bg-[#F0E8D9]",children:[e.jsx(v,{}),e.jsxs("div",{className:"px-[22px] mb-9 flex justify-between items-center pt-[18px] overflow-y-auto  relative scrollbar-simple",children:[e.jsx("span",{className:"w-[24px] h-[24px] btn-press-scale cursor-pointer",onClick:()=>{i("/portal")},children:e.jsx(C,{})}),e.jsxs(b,{disabled:!0,className:"rounded-[12px] border-[1px] border-[#000] flex gap-[6px] items-center px-[18px] py-[11px] bg-[#E2D9C8] text-[#000] text-[14px] font-[600] hover:bg-[#E2D9C8]/90 transition-colors",children:[e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[e.jsx("path",{d:"M7.00009 14.0003C9.50097 14.0003 11.8117 12.6661 13.0624 10.5C14.3125 8.33443 14.3125 5.66589 13.0624 3.50036C11.8117 1.33419 9.50097 0 7.00009 0C6.86798 0 6.74085 0.0523466 6.64738 0.145825C6.5539 0.239303 6.50155 0.36643 6.50155 0.498541C6.50155 0.50228 6.50342 0.505395 6.50342 0.508511C6.50405 0.51225 6.50155 0.515366 6.50155 0.519106V2.51329C6.50155 2.78875 6.72465 3.01184 7.0001 3.01184C7.27555 3.01184 7.49865 2.78875 7.49865 2.51329V1.02263C9.32644 1.17718 10.9835 2.16056 11.995 3.69117C13.0064 5.22178 13.2613 7.13107 12.6873 8.87351C12.1134 10.6159 10.7729 11.9994 9.04978 12.6288C7.32664 13.2582 5.41046 13.0644 3.84814 12.1022C2.28643 11.14 1.25075 9.51535 1.03761 7.69314C0.824468 5.87093 1.45763 4.05191 2.75516 2.75505C2.94585 2.55999 2.94399 2.24778 2.7508 2.0546C2.55824 1.86204 2.24601 1.85953 2.05034 2.05024C0.737913 3.36329 0 5.14378 0 7.00013C0 8.85648 0.737849 10.637 2.05034 11.95C3.3634 13.2625 5.14374 14.0003 7.00009 14.0003Z",fill:"black"}),e.jsx("path",{d:"M7.00025 7.99711C7.55114 7.99711 7.99734 7.55091 7.99734 7.00002C7.99734 6.44913 7.55114 6.00292 7.00025 6.00292C6.91425 6.00417 6.82826 6.01663 6.74536 6.04032L3.8632 3.15752C3.66752 2.96869 3.35655 2.9718 3.16399 3.16375C2.97206 3.35631 2.96893 3.66727 3.15776 3.86296L6.03992 6.74512H6.04054C6.01686 6.828 6.0044 6.914 6.00315 7.00001C6.00377 7.55028 6.44998 7.99649 7.00025 7.99711Z",fill:"black"})]}),"View History"]})]}),e.jsxs("div",{className:"flex-1 flex flex-col px-[22px] overflow-y-auto scrollbar-simple",children:[e.jsx("div",{className:"mb-[12px] text-black text-[16px] font-[700] leading-[24px]",children:"Submit Feedback"}),e.jsx(u,{value:t,onChange:l=>n(l.target.value),placeholder:"Say anything...",className:"w-full min-h-[270px] rounded-[12px] border-[1px] border-black bg-[#F0E8D9] text-black placeholder:text-[#7d7d7d] focus:border-black focus:outline-none focus:ring-0 focus:ring-offset-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 resize-none mb-[30px] px-[10px] py-3 text-[16px]"}),e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx(b,{onClick:p,disabled:!t.trim()||r,className:"w-full h-[55px] btn-press-scale bg-black text-[#f0e8d9] rounded-[12px] leading-[14px] px-8 py-5 text-[14px] font-[600] hover:bg-black/90 transition-colors disabled:bg-gray-400 disabled:cursor-not-allowed disabled:hover:bg-gray-400",children:r?"Submitting...":"Submit"}),e.jsx("p",{className:"text-[#ff3d3d] text-[12px] font-[500] leading-[12px] text-center",children:"We will get back to you within 1-2 business days."})]})]})]})]})};export{k 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.