1"use strict";(self.rspackChunkryfma=self.rspackChunkryfma||[]).push([[28518],{215(e,r,t){t.r(r),t.d(r,{default:()=>M});var s=t(74848),a=t(70111),n=t(93621),o=t(75494),i=t(18987),l=t(54953),d=t(21540),c=t(90537),m=t(92368),u=t(38036),p=t(38784);let x=(0,p.J1)` 2 mutation login($username: String, $email: String, $password: HashedPassword!) { 3 loginWithPassword(username: $username, email: $email, password: $password) { 4 id 5 token 6 tokenExpires 7 } 8 } 9`;var f=t(35649),g=t(12487),h=t(62301),v=t(77898),b=t(95723),y=t(68093),j=t(7358),w=t(48972),N=t(54553),k=t(31613),$=t(92027),S=t(92412),A=t(85137),T=t(59302),_=t(8450),C=t(43119),I=t(12625),z=t(52636);let U="https://ryfma.com/login",R=e=>{window.ReactGA?.event({category:"User",action:e,label:e,value:1})},M=function({referer:e="/",isMinimal:r=!1}){let[t]=(0,d.Bd)(["login","form","notif_public"]),p=(0,c.Zp)(),[M]=(0,m.ok)(),{isMobile:P,staticContext:W}=(0,A.t0)(),E=(0,a.m)(),{token:F,signin:G}=(0,A.As)(),[J,L]=(0,l.useState)(""),[B,D]=(0,l.useState)(""),[q,K]=(0,l.useState)(!1),[O,V]=(0,l.useState)(!1),H=M.get("referer")||e,Y=`${U}?referer=${encodeURIComponent(H)}`,Z=`${U}?provider=yandex&referer=${encodeURIComponent(H)}`,X=async({token:e,tokenExpires:r})=>{T.A.setItem(S.h0,e),T.A.setItem(S.k6,r);let s={secure:!0,expires:new Date(parseInt(r,10))};i.A.set("rfm_token",e,s),i.A.set("rfm_token_expires",r,s);try{let{error:r,data:s}=await E.query({query:h.A,fetchPolicy:"network-only"});if(r)return void j.Notification.error(r.message);if(!s?.me)throw T.A.removeItem(S.h0),T.A.removeItem(S.k6),i.A.remove("rfm_token"),i.A.remove("rfm_token_expires"),Error("Ðе ÑдалоÑÑ Ð¿Ð¾Ð»ÑÑиÑÑ Ð´Ð°Ð½Ð½Ñе полÑзоваÑелÑ, попÑобÑйÑе еÑÑ Ñаз");j.Notification.success(t("notif_public:logged")),G({currUser:s.me,token:e}),(0,y.E7)()&&(0,o.Ay)("31738176","firstPartyParams",{email:s.me.email,first_name:s.me.profile?.name,last_name:s.me.profile?.lastname||""}),p(H)}catch(e){j.Notification.error(e)}finally{V(!1)}},[Q]=(0,n.n)(x,{onCompleted:e=>X({token:e.loginWithPassword.token,tokenExpires:e.loginWithPassword.tokenExpires})}),[ee]=(0,n.n)(f.A,{onCompleted:e=>X({token:e.loginWithVK.token,tokenExpires:e.loginWithVK.tokenExpires})}),[er]=(0,n.n)(g.A,{onCompleted:e=>X({token:e.loginWithYandex.token,tokenExpires:e.loginWithYandex.tokenExpires})});if(F)return W?(W.status=301,W.redirectTo=H,null):(0,s.jsx)(u.C5,{to:H});let et=async e=>{if(e.preventDefault(),/[а-ÑÐ-Я]/gi.test(J)){j.Notification.error("ÐÐ¼Ñ Ð¿Ð¾Ð»ÑзоваÑÐµÐ»Ñ Ð¸Ð»Ð¸ email Ð´Ð¾Ð»Ð¶Ð½Ñ ÑодеÑжаÑÑ ÑолÑко английÑкие ÑимволÑ"),K(!0);return}let r=J.trim().toLowerCase().replace(/\s/gi,"");if(!B||!r)return void j.Notification.error("ÐведиÑе Ð¸Ð¼Ñ Ð¸ паÑолÑ");let t=r.includes("@"),s={username:t?null:r,email:t?r:null,password:(0,_.A)(B)};V(!0);try{await Q({variables:s}),R(`LoginWithEmail: ${r}`)}catch(e){j.Notification.error(e),V(!1)}},es=async e=>{if(e.error)return void j.Notification.error(e.error_description||e.error);let r=T.A.getItem("Meteor.referralToken")||"";try{await ee({variables:{...e,invitedByUserId:r}}),R("LoginWithVK")}catch(e){j.Notification.error(e)}},ea=async e=>{if(e.error)return void j.Notification.error(e.error_description||e.error);let r=T.A.getItem("Meteor.referralToken")||"";try{await er({variables:{code:e.code,invitedByUserId:r}}),R("LoginWithYandex")}catch(e){j.Notification.error(e)}},en="flex items-center justify-center space-x-1 text-sm font-semibold w-full rounded-lg p-2 border hover:opacity-90";return(0,s.jsxs)("div",{className:`flex ${r||P?"h-full":"h-screen"}`,children:[(0,s.jsx)(b.default,{schema:"Webpage",title:t("seoTitle"),description:t("seoDesc"),path:"login",contentType:"website",noIndex:!0,noFollow:!0}),(0,s.jsx)(z.A,{isMinimal:r}),(0,s.jsxs)("div",{className:"mx-auto flex max-w-md flex-1 flex-col justify-center",children:[(0,s.jsx)("div",{className:"mt-6 mb-8 flex justify-center md:hidden",children:(0,s.jsx)(v.A,{})}),(0,s.jsx)("h1",{className:"mb-4 text-2xl font-bold",children:t("header")}),(0,s.jsxs)("div",{className:"flex flex-col items-center space-y-2 md:flex-row md:justify-between md:space-y-0 md:space-x-2",children:[(0,s.jsx)(w.A,{clientId:"4957795",fields:"name,email,picture",scope:"public_profile,email,wall",callback:es,cssClass:"w-full",text:(0,s.jsxs)("span",{className:`${en} border-none bg-[#07f] py-2 text-white`,children:[(0,s.jsx)(C.A,{}),(0,s.jsx)("span",{className:"md:hidden xl:inline-block",children:"ÐойÑи ÑеÑез"}),(0,s.jsx)("span",{children:"ÐÐ"})]}),redirectUri:Y}),(0,s.jsx)(w.A,{provider:"yandex",storageKey:"yandexReactLogin",clientId:S.Ot,scope:"login:email login:info login:avatar",callback:ea,cssClass:"w-full",text:(0,s.jsxs)("span",{className:`${en} border-none bg-[#FC3F1D] py-2 text-white`,children:[(0,s.jsx)(I.A,{}),(0,s.jsx)("span",{className:"md:hidden xl:inline-block",children:"ÐойÑи ÑеÑез"}),(0,s.jsx)("span",{children:"ЯндекÑ"})]}),redirectUri:Z})]}),(0,s.jsx)("hr",{"data-after":t("common:or"),className:"mt-6 mb-4 overflow-visible border-t border-gray-200 text-center after:relative after:-top-[14px] after:inline-block after:bg-white after:px-4 after:content-[attr(data-after)]"}),(0,s.jsxs)("form",{onSubmit:et,children:[(0,s.jsxs)("div",{className:"relative mb-4 grid w-full items-center gap-2",children:[(0,s.jsx)($.J,{htmlFor:"emailUsername",children:t("form:emailUsername")}),(0,s.jsx)(k.p,{placeholder:t("form:emailUsername"),value:J,name:"emailUsername",type:"text",autoComplete:"username",required:!0,onChange:e=>{L(e.target.value),K(!1)}})]}),(0,s.jsxs)("div",{className:"relative mb-4 grid w-full items-center gap-2",children:[(0,s.jsx)($.J,{htmlFor:"password",children:t("form:password")}),(0,s.jsx)(k.p,{placeholder:t("form:password"),value:B,name:"password",type:"password",autoComplete:"current-password",required:!0,onChange:e=>D(e.target.value)})]}),(0,s.jsx)(N.$,{className:"mt-4 w-full",type:"submit",variant:"default",size:"lg",disabled:O||q,children:O?t("common:loading"):t("form:signIn")}),(0,s.jsxs)("div",{className:"mt-6 flex items-center justify-between text-center",children:[(0,s.jsx)(m.N_,{to:"/recover-password",className:"font-bold",children:t("form:forgotPassword")}),(0,s.jsxs)("div",{children:[t("form:noAccount")," ",(0,s.jsx)(m.N_,{to:H?`/register?referer=${H}`:"/register",rel:"noopener nofollow",className:"font-bold",children:t("form:signUp")})]})]})]})]})]})}},80925(e,r,t){t.r(r),t.d(r,{default:()=>j});var s=t(74848),a=t(93621),n=t(59798),o=t(54953),i=t(21540),l=t(92368),d=t(215),c=t(38784);let m=(0,c.J1)` 10 mutation addSponsorCard( 11 $amount: Int 12 $currency: String 13 $paymentToken: String 14 $paymentType: String 15 $description: String 16 $ownerId: String 17 $objectType: String 18 $orderType: String 19 $msgSponsor: String 20 $isMsgPrivate: Boolean 21 $isRecurrent: Boolean 22 $returnUrl: String 23 ) { 24 addSponsorCard( 25 amount: $amount
26 currency: $currency 27 paymentToken: $paymentToken 28 paymentType: $paymentType 29 description: $description 30 ownerId: $ownerId 31 objectType: $objectType 32 orderType: $orderType 33 isRecurrent: $isRecurrent 34 msgSponsor: $msgSponsor 35 isMsgPrivate: $isMsgPrivate 36 returnUrl: $returnUrl 37 ) 38 } 39`,u=(0,c.J1)` 40 mutation sponsorUser( 41 $amount: Int 42 $currency: String 43 $paymentMethod: String 44 $phone: String 45 $orderType: String 46 $objectType: String 47 $objectId: String 48 $objectAmount: Int 49 $ownerId: String 50 $description: String 51 $isRecurrent: Boolean 52 $returnUrl: String 53 ) { 54 sponsorUser( 55 amount: $amount 56 currency: $currency 57 paymentMethod: $paymentMethod 58 phone: $phone 59 orderType: $orderType 60 objectType: $objectType 61 objectId: $objectId 62 objectAmount: $objectAmount 63 ownerId: $ownerId 64 description: $description 65 isRecurrent: $isRecurrent 66 returnUrl: $returnUrl 67 ) 68 } 69`;var p=t(72407),x=t(7358),f=t(25522),g=t(48561),h=t(31613),v=t(92027),b=t(44467),y=t(85137);let j=function({user:e,size:r="small",handleCloseDonationModal:t}){let c,[j]=(0,i.Bd)(["user","footer","form"]),{currUser:w,currUserId:N,setCurrUser:k}=(0,y.As)(),[$,S]=(0,o.useState)(!1),[A]=(0,o.useState)(!!e&&e.isSponsorPaused),[T,_]=(0,o.useState)(""),[C]=(0,o.useState)(1),[I,z]=(0,o.useState)(e.tariffs?.[0]??0),[U,R]=(0,o.useState)(e.tariffs?.[0]??0),[M,P]=(0,o.useState)(!1),[W,E]=(0,o.useState)(!1),[F]=(0,o.useState)(!1),[G,J]=(0,o.useState)(""),[L]=(0,a.n)(m),[B]=(0,a.n)(u),D=async r=>{if(S(!0),w)if(window.ReactGA&&window.ReactGA.event({category:"_Sponsor",action:"WantToSponsor",label:`WantToSponsor: to-${e._id}, from-${w._id}, donate: ${U}`,value:U}),w.hasCard){let r={paymentMethod:"token",amount:w?.roles.includes("admin")?1:parseInt(String(U),10),currency:"RUB",description:`ÐоддеÑжка авÑоÑа ${e.profile?.name??""}`,orderType:"sponsor",objectType:"user",objectAmount:1,ownerId:e._id,isRecurrent:!0,msgSponsor:T,isMsgPrivate:M};try{let s=await B({variables:r});console.log("Result from server"),S(!1),t(),s&&(w&&(w.sponsorOf=[...w.sponsorOf??[],e._id]),k(w),x.Notification.success(j("notif:sponsorSuccess")))}catch(e){S(!1),x.Notification.error(e)}}else{let s={paymentMethod:"bank_card",amount:w?.roles.includes("admin")?1:parseInt(String(U),10)||r.amount,description:`ÐоддеÑжка авÑоÑа ${e.profile?.name??""}`,ownerId:e._id,isRecurrent:!0,msgSponsor:T,isMsgPrivate:M,objectType:"user",orderType:"sponsor",returnUrl:`https://ryfma.com/u/${e.username}`};try{let e=await L({variables:s});console.log("result",e),S(!1),t(),e&&e.data?.addSponsorCard?.confirmation&&"redirect"===e.data.addSponsorCard.confirmation.type&&window.location.assign(e.data.addSponsorCard.confirmation.confirmation_url)}catch(e){S(!1),x.Notification.error(e)}}else window.ReactGA&&window.ReactGA.event({category:"_Sponsor",action:"WantToSponsor",label:`WantToSponsor Anon: to-${e._id}`,value:1})},q=(e,r=!1)=>()=>{r?(J(""),E(!0),z(e)):(J(""),E(!1),z(e),R(e))},K=e.tariffs||[],O=(0,s.jsx)(d.default,{referer:`/u/${e.username}?showDonation=true`,isMinimal:!0});return N&&!A&&(e.currency,e.currency,c=2*K[0],K[1]&&K[1]>K[0]&&(c=K[1]),O=(0,s.jsxs)(o.Fragment,{children:[!F&&(0,s.jsxs)("div",{className:"mb-4 flex w-full items-stretch justify-center gap-4",children:[K[0]&&(0,s.jsxs)("div",{className:`relative flex w-[30%] cursor-pointer flex-col items-center rounded-lg border border-gray-200 p-2 text-center font-bold transition-colors hover:bg-blue-100 ${I===K[0]?"bg-blue-100":"bg-white"}`,onClick:q(K[0]),children:[(0,s.jsx)("div",{className:"mb-2 flex h-12 w-12 justify-center",children:(0,s.jsx)("img",{src:"https://cdn.ryfma.com/defaults/icons/Monetki1.png",alt:"Tier 1",className:"max-w-full"})}),(0,s.jsx)("div",{className:"text-2xl leading-snug",children:K[0]}),(0,s.jsxs)("div",{className:"text-sm",children:[(0,s.jsx)("span",{className:"ml-[0.3rem] font-bold",children:"â½"}),"/",j("user:mo")]})]}),c&&(0,s.jsxs)("div",{className:`relative flex w-[30%] cursor-pointer flex-col items-center rounded-lg border border-gray-200 p-2 text-center font-bold transition-colors hover:bg-blue-100 ${I===c?"bg-blue-100":"bg-white"}`,onClick:q(c),children:[(0,s.jsx)("div",{className:"mb-2 flex h-12 w-12 justify-center",children:(0,s.jsx)("img",{src:"https://cdn.ryfma.com/defaults/icons/Monetki2.png",alt:"Tier 2",className:"max-w-full"})}),(0,s.jsx)("div",{className:"text-2xl leading-snug",children:c}),(0,s.jsxs)("div",{className:"text-sm",children:[(0,s.jsx)("span",{className:"ml-[0.3rem] font-bold",children:"â½"}),"/",j("mo")]})]}),(0,s.jsxs)("div",{className:`relative flex w-[30%] cursor-pointer flex-col items-center rounded-lg border border-gray-200 p-2 text-center font-bold transition-colors hover:bg-blue-100 ${W?"bg-blue-100":"bg-white"}`,onClick:q(K[0]+1,!0),children:[(0,s.jsx)("div",{className:"mb-2 flex h-12 w-12 justify-center",children:(0,s.jsx)("img",{src:"https://cdn.ryfma.com/defaults/icons/Sunduk2.png",alt:"Custom",className:"max-w-full"})}),(0,s.jsx)("div",{className:"text-lg font-bold",children:j("customTier")})]})]}),!F&&W&&(0,s.jsxs)("div",{className:"my-4",children:[(0,s.jsx)(v.J,{htmlFor:"customTier",children:j("customTier")}),(0,s.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,s.jsx)(h.p,{value:
69I,onChange:({target:r})=>{var t;1>(parseInt(t=r.value,10)||50)?J("СÑмма не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¼ÐµÐ½ÑÑе 1"):t<(e.tariffs?.[0]??0)?J("СÑмма не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¼ÐµÐ½ÑÑе, Ñказанной авÑоÑом"):(J(""),R(t))},id:"customTier",placeholder:j("customTier"),type:"text",className:"max-w-32 text-lg font-bold"}),(0,s.jsxs)("div",{className:"text-sm",children:[(0,s.jsx)("span",{className:"ml-[0.3rem] font-bold",children:"â½"}),"/",j("mo")]})]})]}),""!==G&&(0,s.jsx)("div",{className:"error text-red-500",children:G}),!F&&(0,s.jsxs)("div",{className:"mb-4 grid w-full items-center gap-2",children:[(0,s.jsx)(v.J,{htmlFor:"msgSponsor",children:j("messageSupport")}),(0,s.jsx)(b.T,{value:T||"",onChange:({target:e})=>_(e.value),id:"msgSponsor",placeholder:j("messageSupport"),rows:3})]}),!F&&(0,s.jsxs)("div",{className:"mb-4 flex items-center gap-2",children:[(0,s.jsx)(f.S,{id:"messagePrivate",checked:M,onCheckedChange:()=>P(!M)}),(0,s.jsx)(v.J,{htmlFor:"messagePrivate",children:j("messagePrivate")})]}),(0,s.jsxs)("div",{className:"donate-actions",children:[C>0&&(0,s.jsx)("button",{onClick:D,disabled:$,className:"flex w-full cursor-pointer items-center justify-center space-x-2 rounded-lg bg-gradient-to-r from-purple-500 to-pink-500 px-4 py-2 text-lg font-semibold text-white hover:text-white hover:opacity-80",children:$?j("sponsorWaiting"):j("sponsor")}),(0,s.jsxs)("p",{className:"my-4 flex items-center justify-center space-x-2",children:[(0,s.jsx)("span",{children:j("signedInAs")}),(0,s.jsx)("img",{src:w?.profile?.image?.replace("_full_","_small_")??"",className:"rounded-full"}),(0,s.jsx)("span",{className:"font-semibold",children:w?.profile?.name??""})]}),!F&&(0,s.jsxs)("p",{className:"text-left text-xs text-gray-500",children:[j("acceptTerms"),(0,s.jsx)(l.N_,{to:"/terms-readers",className:"text-blue-600",children:j("footer:termsOfUse")}),"\xa0и\xa0",(0,s.jsx)(l.N_,{to:"/privacy",className:"text-blue-600",children:j("footer:privacy")}),j("understandPaying"),e.profile?.name,j("directPayment"),j("regularPayment")]})]})]})),(0,s.jsx)(g.lG,{open:!0,onOpenChange:e=>!e&&t(),children:(0,s.jsxs)(g.Cf,{className:"p-0",children:[(0,s.jsxs)("div",{className:"flex space-x-4 rounded-t-lg bg-violet-500 px-4 py-8 leading-4 text-white",children:[(0,s.jsx)(p.A,{image:e.profile?.image??"",username:e.username,name:e.profile?.name??"",type:"full",addLazy:!0}),(0,s.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,s.jsx)("h3",{className:"text-2xl font-bold",children:e.profile?.name??""}),(0,s.jsx)("div",{children:j("directSupport")}),(0,s.jsx)("div",{className:"text-sm",children:j("exclusiveContent")})]})]}),(0,s.jsxs)("div",{className:"no-scrollbar max-h-[60vh] overflow-y-auto px-4 pb-4",children:[A&&(0,s.jsx)("p",{className:"py-4",children:j("membershipIsResume")}),A?(0,s.jsxs)(l.N_,{to:"/me/memberships",className:`flex w-full cursor-pointer items-center justify-center space-x-2 rounded-lg bg-gradient-to-r from-purple-500 to-pink-500 leading-4 font-semibold text-white hover:text-white hover:opacity-80 ${"small"===r?"px-2 py-1 text-xs":"px-3 py-2 text-sm"}`,children:[(0,s.jsx)(n.A,{size:"small"===r?12:14}),"small"!==r&&(0,s.jsx)("span",{children:j("resumeMembership")})]}):O]})]})})}},54553(e,r,t){var s=t(74848),a=t(6142),n=t(86036),o=t(26073);let i=(0,n.F)("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function l({className:e,variant:r="default",size:t="default",render:n,...d}){return(0,s.jsx)(a.$,{"data-slot":"button","data-variant":r,"data-size":t,className:(0,o.cn)(i({variant:r,size:t,className:e})),render:n,...d})}t.d(r,{$:()=>l},{r:i})},25522(e,r,t){var s=t(74848),a=t(67358),n=t(70481),o=t(53729),i=t(26073);function l({className:e,...r}){return(0,s.jsx)(a.y,{"data-slot":"checkbox",className:(0,i.cn)("peer border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-checked:bg-primary size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...r,children:(0,s.jsx)(n.P,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:(0,s.jsx)(o.A,{className:"size-3.5"})})})}t.d(r,{S:()=>l})},48561(e,r,t){var s=t(74848),a=t(10189),n=t(64817),o=t(93877),i=t(65545),l=t(59295),d=t(34435),c=t(25043),m=t(69237),u=t(54553),p=t(26073);function x({...e}){return(0,s.jsx)(a.D,{"data-slot":"dialog",...e})}function f({...e}){return(0,s.jsx)(n.Z,{"data-slot":"dialog-portal",...e})}function g({className:e,...r}){return(0,s.jsx)(o.X,{"data-slot":"dialog-overlay",className:(0,p.cn)("data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50 bg-black/50",e),...r})}function h({className:e,children:r,showCloseButton:t=!0,...a}){return(0,s.jsxs)(f,{children:[(0,s.jsx)(g,{}),(0,s.jsxs)(i.h,{"data-slot":"dialog-content",className:(0,p.cn)("bg-background data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 roun
69ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...a,children:[r,t&&(0,s.jsxs)(l.H,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-open:bg-accent data-open:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,s.jsx)(m.A,{}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function v({className:e,...r}){return(0,s.jsx)("div",{"data-slot":"dialog-header",className:(0,p.cn)("flex flex-col gap-2 text-center sm:text-left",e),...r})}function b({className:e,showCloseButton:r=!1,children:t,...a}){return(0,s.jsxs)("div",{"data-slot":"dialog-footer",className:(0,p.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...a,children:[t,r&&(0,s.jsx)(l.H,{nativeButton:!0,render:(0,s.jsx)(u.$,{variant:"outline"}),children:"Close"})]})}function y({className:e,...r}){return(0,s.jsx)(d.L,{"data-slot":"dialog-title",className:(0,p.cn)("text-lg leading-none font-semibold",e),...r})}function j({className:e,...r}){return(0,s.jsx)(c.r,{"data-slot":"dialog-description",className:(0,p.cn)("text-muted-foreground text-sm",e),...r})}t.d(r,{Cf:()=>h,Es:()=>b,L3:()=>y,c7:()=>v,lG:()=>x,rr:()=>j})},44467(e,r,t){var s=t(74848),a=t(26073);function n({className:e,...r}){return(0,s.jsx)("textarea",{"data-slot":"textarea",className:(0,a.cn)("aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...r})}t.d(r,{T:()=>n})},10189(e,r,t){var s=t(35841),a=t(82151);let n=(0,s.G1)(function(e){return(0,a.G)("dialog",e)});t.d(r,{},{D:n})},44838(e,r,t){var s=t(54953),a=t(7456),n=t(74618);function o(e,r){let t=s.useRef(e),o=(0,n.K)(r);(0,a.g)(()=>{t.current!==e&&o(t.current),t.current=e},[e,o])}t.d(r,{x:()=>o})},25472(e,r,t){var s=t(54953);function a({controlled:e,default:r,name:t,state:n="value"}){let{current:o}=s.useRef(void 0!==e),[i,l]=s.useState(r),d=s.useCallback(e=>{o||l(e)},[]);return[o&&void 0!==e?e:i,d]}t.d(r,{q:()=>a})},65262(e,r,t){var s=t(52316);let a={name:"eye-off",size:24,node:[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};a.node;let n=(0,s.A)(a);t.d(r,{},{A:n})},15426(e,r,t){var s=t(52316);let a={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};a.node;let n=(0,s.A)(a);t.d(r,{},{A:n})},69237(e,r,t){var s=t(52316);let a={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};a.node;let n=(0,s.A)(a);t.d(r,{},{A:n})}}]);
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.