PageSourceSearch

https://zerodeficitccrnprep.com/static/js/4810.9baf07df.chunk.js

js zerodeficitccrnprep.com collected 2026-09-24 13:41:08 UTC 24,924 bytes, 2 lines download raw bytes

1/*! For license information please see 4810.9baf07df.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[4810],{1641(e,t,a){a.d(t,{A:()=>s});const s=(0,a(6230).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},4810(e,t,a){a.r(t),a.d(t,{default:()=>v});var s=a(9950),n=a(325),r=a(4245),l=a(1111),o=a(9630),i=a(9636);const c=(0,a(6230).A)("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);var d=a(6987),p=a(7637),m=a(446),u=a(9126),x=a(5924),h=a(9201),f=a(1641),g=a(4814),b=a(2033),y=a(4414);function v(){const[e,t]=(0,s.useState)({count:0,deployed_count:0,sitemap_url_count:0,articles:[]}),[a,v]=(0,s.useState)(!0),[j,N]=(0,s.useState)(!1),[A,w]=(0,s.useState)(null),[z,k]=(0,s.useState)(!1),[_,C]=(0,s.useState)(!1),[D,R]=(0,s.useState)(null),M=(0,s.useCallback)(()=>{const e=localStorage.getItem("auth_token");return{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}},[]),E=(0,s.useCallback)(async()=>{v(!0);try{const e=await fetch("".concat(n.nC,"/admin/blog/articles"),{headers:M()});if(!e.ok)throw new Error("HTTP ".concat(e.status));const a=await e.json();t(a)}catch(e){b.oR.error("Failed to load blog articles",{description:e.message})}finally{v(!1)}},[M]);(0,s.useEffect)(()=>{E()},[E]);const O=(0,s.useCallback)(async e=>{const t=await fetch("".concat(n.nC,"/admin/blog/trial-copy-sweep?apply=").concat(e),{method:"POST",headers:M()});if(!t.ok)throw new Error("HTTP ".concat(t.status));return t.json()},[M]),S=e=>{if(!e)return"\u2014";try{return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch(t){return e.slice(0,10)}};return(0,y.jsxs)("div",{className:"space-y-6","data-testid":"admin-blog",children:[(0,y.jsxs)("div",{className:"flex items-start justify-between flex-wrap gap-4",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("h1",{className:"text-2xl font-bold text-zinc-100",children:"Blog Articles"}),(0,y.jsx)("p",{className:"text-sm text-zinc-400 mt-1",children:"All articles published via Baby Love Growth webhook + their deployment status."})]}),(0,y.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,y.jsxs)(l.$,{onClick:async()=>{k(!0);try{const e=await O(!1);R(e)}catch(e){b.oR.error("Trial-copy sweep failed",{description:e.message})}finally{k(!1)}},disabled:z||a,variant:"outline",className:"border-amber-500/40 text-amber-300 hover:bg-amber-500/10 hover:text-amber-200","data-testid":"admin-blog-sweep-btn",children:[(0,y.jsx)(c,{className:"mr-2 h-4 w-4 ".concat(z?"animate-pulse":"")}),z?"Scanning\u2026":"Trial-Copy Sweep"]}),(0,y.jsxs)(l.$,{onClick:async()=>{N(!0);try{const e=await fetch("".concat(n.nC,"/admin/blog/regenerate"),{method:"POST",headers:M()});if(!e.ok)throw new Error("HTTP ".concat(e.status));const t=await e.json();b.oR.success("Regenerated ".concat(t.written||0," articles")),await E()}catch(e){b.oR.error("Regeneration failed",{description:e.message})}finally{N(!1)}},disabled:j||a,className:"bg-cyan-500 hover:bg-cyan-600 text-black","data-testid":"admin-blog-regenerate-btn",children:[(0,y.jsx)(d.A,{className:"mr-2 h-4 w-4 ".concat(j?"animate-spin":"")}),j?"Regenerating\u2026":"Regenerate Static HTML"]})]})]}),(0,y.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[(0,y.jsx)(r.Zp,{className:"bg-zinc-900/60 border-zinc-800",children:(0,y.jsx)(r.Wu,{className:"pt-6",children:(0,y.jsxs)("div",{className:"flex items-center gap-3",children:[(0,y.jsx)("div",{className:"w-10 h-10 rounded-lg bg-cyan-500/15 border border-cyan-500/30 flex items-center justify-center",children:(0,y.jsx)(p.A,{className:"text-cyan-400",size:18})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-2xl font-bold text-zinc-100",children:e.count}),(0,y.jsx)("div",{className:"text-xs text-zinc-500",children:"Total in MongoDB"})]})]})})}),(0,y.jsx)(r.Zp,{className:"bg-zinc-900/60 border-zinc-800",children:(0,y.jsx)(r.Wu,{className:"pt-6",children:(0,y.jsxs)("div",{className:"flex items-center gap-3",children:[(0,y.jsx)("div",{className:"w-10 h-10 rounded-lg bg-emerald-500/15 border border-emerald-500/30 flex items-center justify-center",children:(0,y.jsx)(m.A,{className:"text-emerald-400",size:18})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-2xl font-bold text-zinc-100",children:e.deployed_count}),(0,y.jsx)("div",{className:"text-xs text-zinc-500",children:"Deployed (HTML files exist)"})]})]})})}),(0,y.jsx)(r.Zp,{className:"bg-zinc-900/60 border-zinc-800",children:(0,y.jsx)(r.Wu,{className:"pt-6",children:(0,y.jsxs)("div",{className:"flex items-center gap-3",children:[(0,y.jsx)("div",{className:"w-10 h-10 rounded-lg bg-violet-500/15 border border-violet-500/30 flex items-center justify-center",children:(0,y.jsx)(u.A,{className:"text-violet-400",size:18})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-2xl font-bold text-zinc-100",children:e.sitemap_url_count}),(0,y.jsx)("div",{className:"text-xs text-zinc-500",children:"URLs in sitemap-blog.xml"})]})]})})}),(0,y.jsx)(r.Zp,{className:"bg-zinc-900/60 border-zinc-800",children:(0,y.jsx)(r.Wu,{className:"pt-6",children:(0,y.jsxs)("div",{className:"flex items-center gap-3",children:[(0,y.jsx)("div",{className:"w-10 h-10 rounded-lg bg-amber-500/15 border border-amber-500/30 flex items-center justify-center",children:e.count===e.deployed_count?(0,y.jsx)(m.A,{className:"text-amber-400",size:18}):(0,y.jsx)(x.A,{className:"text-amber-400",size:18})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"text-2xl font-bold text-zinc-100",children:e.count===e.deployed_count?"In Sync":"".concat(e.count-e.deployed_count," drift")}),(0,y.jsx)("div",{className:"text-xs text-zinc-500",children:"Mongo \u2194 Static HTML"})]})]})})})]}),(0,y.jsxs)(r.Zp,{className:"bg-zinc-900/60 border-zinc-800",children:[(0,y.jsx)(r.aR,{children:(0,y.jsx)(r.ZB,{className:"text-zinc-100",children:"Articles"})}),(0,y.jsx)(r.Wu,{children:a?(0,y.jsx)("div",{className:"py-12 text-center text-zinc-500","data-testid":"admin-blog-loading",children:"Loading\u2026"}):0===e.articles.length?(0,y.jsx)("div",{className:"py-12 text-center text-zinc-500",children:"No articles yet. Publish one via the Baby Love Growth webhook."}):(0,y.jsx)("div",{className:"overflow-x-auto",children:(0,y.jsxs)("table",{className:"w-full text-sm",children:[(0,y.jsx)("thead",{className:"text-xs uppercase tracking-wider text-zinc-500 border-b border-zinc-800",children:(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{className:"text-left px-3 py-3",children:"Article"}),(0,y.jsx)("th",{className:"text-left px-3 py-3 hidden md:table-cell",children:"Published"}),(0,y.jsx)("th",{className:"text-left px-3 py-3 hidden lg:table-cell",children:"Length"}),(0,y.jsx)("th",{className:"text-left px-3 py-3",children:"Deployed"}),(0,y.jsx)("th",{className:"text-right px-3 py-3",children:"Actions"})]})}),(0,y.jsx)("tbody",{className:"divide-y divide-zinc-800",children:e.articles.map(e=>(0,y.jsxs)("tr",{className:"hover:bg-zinc-800/40 transition-colors",children:[(0,y.jsxs)("td",{className:"px-3 py-3",children:[(0,y.jsx)("div",{className:"font-medium text-zinc-100 line-clamp-1",children:e.title}),(0,y.jsxs)("div",{className:"text-xs text-zinc-500 line-clamp-1 mt-0.5",children:["/blog/",e.slug]})]}),(0,y.jsx)("td",{className:"px-3 py-3 hidden md:table-cell whitespace-nowrap text-zinc-400",children:(0,y.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,y.jsx)(h.A,{size:12,className:"text-zinc-600"}),S(e.published_at)]})}),(0,y.jsxs)("td",{className:"px-3 py-3 hidden lg:table-cell text-zinc-400",children:[e.content_length.toLocaleStr
2ing()," chars"]}),(0,y.jsx)("td",{className:"px-3 py-3",children:e.is_deployed?(0,y.jsxs)(o.E,{className:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30 hover:bg-emerald-500/20",children:[(0,y.jsx)(m.A,{size:12,className:"mr-1"}),"Live"]}):(0,y.jsxs)(o.E,{className:"bg-amber-500/15 text-amber-400 border-amber-500/30 hover:bg-amber-500/20",children:[(0,y.jsx)(x.A,{size:12,className:"mr-1"}),"Mongo only"]})}),(0,y.jsxs)("td",{className:"px-3 py-3 text-right whitespace-nowrap",children:[(0,y.jsxs)("a",{href:e.public_url,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 px-2.5 py-1.5 rounded-md text-xs text-zinc-300 hover:bg-zinc-800 mr-1","data-testid":"admin-blog-view-".concat(e.slug),children:[(0,y.jsx)(f.A,{size:12}),"View"]}),(0,y.jsx)(l.$,{variant:"ghost",size:"sm",onClick:()=>w(e),className:"text-rose-400 hover:text-rose-300 hover:bg-rose-500/10 h-7 px-2","data-testid":"admin-blog-delete-".concat(e.slug),children:(0,y.jsx)(g.A,{size:14})})]})]},e.slug))})]})})})]}),(0,y.jsx)(i.lG,{open:!!A,onOpenChange:e=>!e&&w(null),children:(0,y.jsxs)(i.Cf,{className:"bg-zinc-900 border-zinc-800",children:[(0,y.jsx)(i.c7,{children:(0,y.jsx)(i.L3,{className:"text-zinc-100",children:"Delete this article?"})}),(0,y.jsxs)("p",{className:"text-sm text-zinc-400",children:["This permanently removes ",(0,y.jsx)("span",{className:"font-mono text-zinc-300",children:null===A||void 0===A?void 0:A.slug})," from MongoDB and deletes its static HTML files from ","https://zerodeficitccrnprep.com","/blog/",null===A||void 0===A?void 0:A.slug,". The sitemap will be regenerated."]}),(0,y.jsxs)(i.Es,{children:[(0,y.jsx)(l.$,{variant:"ghost",onClick:()=>w(null),children:"Cancel"}),(0,y.jsxs)(l.$,{onClick:async()=>{if(A)try{const e=await fetch("".concat(n.nC,"/admin/blog/article/").concat(A.slug),{method:"DELETE",headers:M()});if(!e.ok)throw new Error("HTTP ".concat(e.status));b.oR.success("Article deleted"),w(null),await E()}catch(e){b.oR.error("Delete failed",{description:e.message})}},className:"bg-rose-500 hover:bg-rose-600 text-white","data-testid":"admin-blog-delete-confirm-btn",children:[(0,y.jsx)(g.A,{size:14,className:"mr-2"}),"Delete permanently"]})]})]})}),(0,y.jsx)(i.lG,{open:!!D,onOpenChange:e=>!e&&R(null),children:(0,y.jsxs)(i.Cf,{className:"bg-zinc-900 border-zinc-800 max-w-lg",children:[(0,y.jsx)(i.c7,{children:(0,y.jsxs)(i.L3,{className:"text-zinc-100 flex items-center gap-2",children:[(0,y.jsx)(c,{size:18,className:"text-amber-400"}),"Trial-Copy Sweep \u2014 Dry Run"]})}),D&&(0,y.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,y.jsxs)("p",{className:"text-zinc-400",children:["Scanned ",(0,y.jsx)("span",{className:"text-zinc-200 font-semibold",children:D.total_articles})," articles."," ",(0,y.jsx)("span",{className:"text-amber-300 font-semibold",children:D.articles_affected})," contain stale"," ","\u201crisk-free trial / no credit card\u201d claims that would be rewritten to the accurate free-tier framing."]}),D.articles_affected>0?(0,y.jsx)("div",{className:"max-h-64 overflow-y-auto rounded-lg border border-zinc-800 divide-y divide-zinc-800","data-testid":"admin-blog-sweep-preview",children:(D.handled_phrasings||[]).slice(0,15).map((e,t)=>(0,y.jsxs)("div",{className:"p-2.5",children:[(0,y.jsx)("div",{className:"text-rose-400/90 line-through text-xs",children:e.before}),(0,y.jsxs)("div",{className:"text-emerald-400/90 text-xs mt-0.5",children:["\u2192 ",e.after]})]},t))}):(0,y.jsx)("p",{className:"text-emerald-400","data-testid":"admin-blog-sweep-clean",children:"No false claims found \u2014 nothing to change. \u2705"})]}),(0,y.jsxs)(i.Es,{children:[(0,y.jsx)(l.$,{variant:"ghost",onClick:()=>R(null),children:"Close"}),(null===D||void 0===D?void 0:D.articles_affected)>0&&(0,y.jsx)(l.$,{onClick:async()=>{C(!0);try{const e=await O(!0);b.oR.success("Sweep applied \u2014 ".concat(e.articles_modified," article(s) updated")),R(null),await E()}catch(e){b.oR.error("Apply failed",{description:e.message})}finally{C(!1)}},disabled:_,className:"bg-amber-500 hover:bg-amber-600 text-black","data-testid":"admin-blog-sweep-apply-btn",children:_?"Applying\u2026":"Apply to ".concat(D.articles_affected," article
2(s)")})]})]})})]})}},4814(e,t,a){a.d(t,{A:()=>s});const s=(0,a(6230).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},5924(e,t,a){a.d(t,{A:()=>s});const s=(0,a(6230).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},6987(e,t,a){a.d(t,{A:()=>s});const s=(0,a(6230).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},7637(e,t,a){a.d(t,{A:()=>s});const s=(0,a(6230).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},9126(e,t,a){a.d(t,{A:()=>s});const s=(0,a(6230).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9630(e,t,a){a.d(t,{E:()=>d});var s=a(9379),n=a(3986),r=(a(9950),a(4364)),l=a(90),o=a(4414);const i=["className","variant"],c=(0,r.F)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function d(e){let{className:t,variant:a}=e,r=(0,n.A)(e,i);return(0,o.jsx)("div",(0,s.A)({className:(0,l.cn)(c({variant:a}),t)},r))}},9636(e,t,a){a.d(t,{Cf:()=>y,Es:()=>j,L3:()=>N,c7:()=>v,lG:()=>f,rr:()=>A});var s=a(9379),n=a(3986),r=a(9950),l=a(9710),o=a(6479),i=a(90),c=a(4414);const d=["className"],p=["className","children"],m=["className"],u=["className"],x=["className"],h=["className"],f=l.bL,g=(l.l9,l.ZL),b=(l.bm,r.forwardRef((e,t)=>{let{className:a}=e,r=(0,n.A)(e,d);return(0,c.jsx)(l.hJ,(0,s.A)({ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a)},r))}));b.displayName=l.hJ.displayName;const y=r.forwardRef((e,t)=>{let{className:a,children:r}=e,d=(0,n.A)(e,p);return(0,c.jsxs)(g,{children:[(0,c.jsx)(b,{}),(0,c.jsxs)(l.UC,(0,s.A)((0,s.A)({ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a)},d),{},{children:[r,(0,c.jsxs)(l.bm,{className:"absolute right-4 top-4 roun
2ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,c.jsx)(o.A,{className:"h-4 w-4"}),(0,c.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})});y.displayName=l.UC.displayName;const v=e=>{let{className:t}=e,a=(0,n.A)(e,m);return(0,c.jsx)("div",(0,s.A)({className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t)},a))};v.displayName="DialogHeader";const j=e=>{let{className:t}=e,a=(0,n.A)(e,u);return(0,c.jsx)("div",(0,s.A)({className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},a))};j.displayName="DialogFooter";const N=r.forwardRef((e,t)=>{let{className:a}=e,r=(0,n.A)(e,x);return(0,c.jsx)(l.hE,(0,s.A)({ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",a)},r))});N.displayName=l.hE.displayName;const A=r.forwardRef((e,t)=>{let{className:a}=e,r=(0,n.A)(e,h);return(0,c.jsx)(l.VY,(0,s.A)({ref:t,className:(0,i.cn)("text-sm text-muted-foreground",a)},r))});A.displayName=l.VY.displayName},9710(e,t,a){a.d(t,{bm:()=>ve,UC:()=>ge,VY:()=>ye,hJ:()=>fe,ZL:()=>he,bL:()=>ue,hE:()=>be,l9:()=>xe,G$:()=>ce,Hs:()=>I});var s=a(9379),n=a(3986),r=a(9950),l=a(3330),o=a(1167),i=a(5797),c=a(8947),d=a(5191),p=a(4396),m=a(1315),u=a(9720),x=a(1539),h=a(5489),f=a(5847),g=a(6325),b=a(8159),y=a(4414);const v=["children"],j=["children"];function N(e){const t=A(e),a=r.forwardRef((e,a)=>{const{children:l}=e,o=(0,n.A)(e,v),i=r.Children.toArray(l),c=i.find(z);if(c){const e=c.props.children,n=i.map(t=>t===c?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:t);return(0,y.jsx)(t,(0,s.A)((0,s.A)({},o),{},{ref:a,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null}))}return(0,y.jsx)(t,(0,s.A)((0,s.A)({},o),{},{ref:a,children:l}))});return a.displayName="".concat(e,".Slot"),a}function A(e){const t=r.forwardRef((e,t)=>{const{children:a}=e,l=(0,n.A)(e,j);if(r.isValidElement(a)){const e=function(e){var t,a;let s=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,n=s&&"isReactWarning"in s&&s.isReactWarning;if(n)return e.ref;if(s=null===(a=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===a?void 0:a.get,n=s&&"isReactWarning"in s&&s.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(a),n=function(e,t){const a=(0,s.A)({},t);for(const n in t){const r=e[n],l=t[n];/^on[A-Z]/.test(n)?r&&l?a[n]=function(){const e=l(...arguments);return r(...arguments),e}:r&&(a[n]=r):"style"===n?a[n]=(0,s.A)((0,s.A)({},r),l):"className"===n&&(a[n]=[r,l].filter(Boolean).join(" "))}return(0,s.A)((0,s.A)({},e),a)}(l,a.props);return a.type!==r.Fragment&&(n.ref=t?(0,o.t)(t,e):e),r.cloneElement(a,n)}return r.Children.count(a)>1?r.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}var w=Symbol("radix.slottable");function z(e){return r.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===w}const k=["__scopeDialog"],_=["forceMount"],C=["__scopeDialog"],D=["forceMount"],R=["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"],M=["__scopeDialog"],E=["__scopeDialog"],O=["__scopeDialog"];var S="Dialog",[T,I]=(0,i.A)(S),[L,F]=T(S),H=e=>{const{__scopeDialog:t,children:a,open:s,defaultOpen:n,onOpenChange:l,modal:o=!0}=e,i=r.useRef(null),p=r.useRef(null),[m,u]=(0,d.i)({prop:s,defaultProp:null!==n&&void 0!==n&&n,onChange:l,caller:S});return(0,y.jsx)(L,{scope:t,triggerRef:i,contentRef:p,contentId:(0,c.B)(),titleId:(0,c.B)(),descriptionId:(0,c.B)(),open:m,onOpenChange:u,onOpenToggle:r.useCallback(()=>u(e=>!e),[u]),modal:o,children:a})};H.displayName=S;var P="DialogTrigger",V=r.forwardRef((e,t)=>{const{__scopeDialog:a}=e,r=(0,n.A)(e,k),i=F(P,a),c=(0,o.s)(t,i.triggerRef);return(0,y.jsx)(h.sG.button,(0,s.A)((0,s.A)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":oe(i.open
2)},r),{},{ref:c,onClick:(0,l.mK)(e.onClick,i.onOpenToggle)}))});V.displayName=P;var B="DialogPortal",[W,q]=T(B,{forceMount:void 0}),Z=e=>{const{__scopeDialog:t,forceMount:a,children:s,container:n}=e,l=F(B,t);return(0,y.jsx)(W,{scope:t,forceMount:a,children:r.Children.map(s,e=>(0,y.jsx)(x.C,{present:a||l.open,children:(0,y.jsx)(u.Z,{asChild:!0,container:n,children:e})}))})};Z.displayName=B;var G="DialogOverlay",$=r.forwardRef((e,t)=>{const a=q(G,e.__scopeDialog),{forceMount:r=a.forceMount}=e,l=(0,n.A)(e,_),o=F(G,e.__scopeDialog);return o.modal?(0,y.jsx)(x.C,{present:r||o.open,children:(0,y.jsx)(U,(0,s.A)((0,s.A)({},l),{},{ref:t}))}):null});$.displayName=G;var K=N("DialogOverlay.RemoveScroll"),U=r.forwardRef((e,t)=>{const{__scopeDialog:a}=e,r=(0,n.A)(e,C),l=F(G,a);return(0,y.jsx)(g.A,{as:K,allowPinchZoom:!0,shards:[l.contentRef],children:(0,y.jsx)(h.sG.div,(0,s.A)((0,s.A)({"data-state":oe(l.open)},r),{},{ref:t,style:(0,s.A)({pointerEvents:"auto"},r.style)}))})}),J="DialogContent",Y=r.forwardRef((e,t)=>{const a=q(J,e.__scopeDialog),{forceMount:r=a.forceMount}=e,l=(0,n.A)(e,D),o=F(J,e.__scopeDialog);return(0,y.jsx)(x.C,{present:r||o.open,children:o.modal?(0,y.jsx)(Q,(0,s.A)((0,s.A)({},l),{},{ref:t})):(0,y.jsx)(X,(0,s.A)((0,s.A)({},l),{},{ref:t}))})});Y.displayName=J;var Q=r.forwardRef((e,t)=>{const a=F(J,e.__scopeDialog),n=r.useRef(null),i=(0,o.s)(t,a.contentRef,n);return r.useEffect(()=>{const e=n.current;if(e)return(0,b.Eq)(e)},[]),(0,y.jsx)(ee,(0,s.A)((0,s.A)({},e),{},{ref:i,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=a.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,l.mK)(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,a=0===t.button&&!0===t.ctrlKey;(2===t.button||a)&&e.preventDefault()}),onFocusOutside:(0,l.mK)(e.onFocusOutside,e=>e.preventDefault())}))}),X=r.forwardRef((e,t)=>{const a=F(J,e.__scopeDialog),n=r.useRef(!1),l=r.useRef(!1);return(0,y.jsx)(ee,(0,s.A)((0,s.A)({},e),{},{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var s,r;(null===(s=e.onCloseAutoFocus)||void 0===s||s.call(e,t),t.defaultPrevented)||(n.current||null===(r=a.triggerRef.current)||void 0===r||r.focus(),t.preventDefault());n.current=!1,l.current=!1},onInteractOutside:t=>{var s,r;null===(s=e.onInteractOutside)||void 0===s||s.call(e,t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));const o=t.target;(null===(r=a.triggerRef.current)||void 0===r?void 0:r.contains(o))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}}))}),ee=r.forwardRef((e,t)=>{const{__scopeDialog:a,trapFocus:l,onOpenAutoFocus:i,onCloseAutoFocus:c}=e,d=(0,n.A)(e,R),u=F(J,a),x=r.useRef(null),h=(0,o.s)(t,x);return(0,f.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(m.n,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:i,onUnmountAutoFocus:c,children:(0,y.jsx)(p.qW,(0,s.A)((0,s.A)({role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":oe(u.open)},d),{},{ref:h,onDismiss:()=>u.onOpenChange(!1)}))}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(pe,{titleId:u.titleId}),(0,y.jsx)(me,{contentRef:x,descriptionId:u.descriptionId})]})]})}),te="DialogTitle",ae=r.forwardRef((e,t)=>{const{__scopeDialog:a}=e,r=(0,n.A)(e,M),l=F(te,a);return(0,y.jsx)(h.sG.h2,(0,s.A)((0,s.A)({id:l.titleId},r),{},{ref:t}))});ae.displayName=te;var se="DialogDescription",ne=r.forwardRef((e,t)=>{const{__scopeDialog:a}=e,r=(0,n.A)(e,E),l=F(se,a);return(0,y.jsx)(h.sG.p,(0,s.A)((0,s.A)({id:l.descriptionId},r),{},{ref:t}))});ne.displayName=se;var re="DialogClose",le=r.forwardRef((e,t)=>{const{__scopeDialog:a}=e,r=(0,n.A)(e,O),o=F(re,a);return(0,y.jsx)(h.sG.button,(0,s.A)((0,s.A)({type:"button"},r),{},{ref:t,onClick:(0,l.mK)(e.onClick,()=>o.onOpenChange(!1))}))});function oe(e){return e?"open":"closed"}le.displayName=re;var ie="DialogTitleWarning",[ce,de]=(0,i.q)(ie,{contentName:J,titleName:te,docsSlug:"dialog"}),pe=e=>{let{titleId:t}=e;const a=de(ie),s="`".concat(a.contentName,"` requires a `").concat(a.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(a.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(a.docsSlug);return r.useEffect(()=>{if(t){document.getElementById(t)||console.error(s)}},[s,t]),null},me=e=>{let{contentRef:t,descriptionId:a}=e;const s=de("DialogDescriptionWarning"),n="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(s.contentName,"}.");return r.useEffect(()=>{var e;const s=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");if(a&&s){document.getElementById(a)||console.warn(n)}},[n,t,a]),null},ue=H,xe=V,he=Z,fe=$,ge=Y,be=ae,ye=ne,ve=le}}]);

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.