PageSourceSearch

https://sifa.lovable.app/assets/ReportPopup-dNdnovVJ.js

js sifa.lovable.app collected 2026-10-03 05:38:11 UTC 8,496 bytes, 5 lines download raw bytes

vendor: 4,213 bytes, line 1
1import{e as Z,r as i,g as R,j as a,P as x,h as m,s as y,D as J,G as Q,q as ee,l as N,o as te,p as oe,a as p,X as ae}from"./index-DzObRzrl.js";import{R as re,h as ne,u as se,F as ie}from"./Combination-BeTHGdC1.js";import{R as le}from"./ReportDownloadGate-DsauqyMD.js";import{F as ce}from"./file-text-BjVt9OgB.js";import"./tslib.es6-CJBI7cfw.js";import"./button-DpFQkoJZ.js";import"./client-C7wDRTxu.js";import"./check-DTdICMpZ.js";import"./types-3c7sL9OC.js";var v="Dialog",[b,Se]=Z(v),[de,d]=b(v),E=e=>{const{__scopeDialog:t,children:o,open:n,defaultOpen:s,onOpenChange:r,modal:l=!0}=e,c=i.useRef(null),u=i.useRef(null),[g,h]=ee({prop:n,defaultProp:s??!1,onChange:r,caller:v});return a.jsx(de,{scope:t,triggerRef:c,contentRef:u,contentId:N(),titleId:N(),descriptionId:N(),open:g,onOpenChange:h,onOpenToggle:i.useCallback(()=>h(Y=>!Y),[h]),modal:l,children:o})};E.displayName=v;var I="DialogTrigger",ue=i.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,s=d(I,o),r=R(t,s.triggerRef);return a.jsx(x.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":_(s.open),...n,ref:r,onClick:m(e.onClick,s.onOpenToggle)})});ue.displayName=I;var C="DialogPortal",[fe,O]=b(C,{forceMount:void 0}),P=e=>{const{__scopeDialog:t,forceMount:o,children:n,container:s}=e,r=d(C,t);return a.jsx(fe,{scope:t,forceMount:o,children:i.Children.map(n,l=>a.jsx(y,{present:o||r.open,children:a.jsx(te,{asChild:!0,container:s,children:l})}))})};P.displayName=C;var D="DialogOverlay",w=i.forwardRef((e,t)=>{const o=O(D,e.__scopeDialog),{forceMount:n=o.forceMount,...s}=e,r=d(D,e.__scopeDialog);return r.modal?a.jsx(y,{present:n||r.open,children:a.jsx(pe,{...s,ref:t})}):null});w.displayName=D;var ge=oe("DialogOverlay.RemoveScroll"),pe=i.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,s=d(D,o);return a.jsx(re,{as:ge,allowPinchZoom:!0,shards:[s.contentRef],children:a.jsx(x.div,{"data-state":_(s.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),f="DialogContent",T=i.forwardRef((e,t)=>{const o=O(f,e.__scopeDialog),{forceMount:n=o.forceMount,...s}=e,r=d(f,e.__scopeDialog);return a.jsx(y,{present:n||r.open,children:r.modal?a.jsx(me,{...s,ref:t}):a.jsx(xe,{...s,ref:t})})});T.displayName=f;var me=i.forwardRef((e,t)=>{const o=d(f,e.__scopeDialog),n=i.useRef(null),s=R(t,o.contentRef,n);return i.useEffect(()=>{const r=n.current;if(r)return ne(r)},[]),a.jsx(A,{...e,ref:s,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:m(e.onCloseAutoFocus,r=>{var l;r.preventDefault(),(l=o.triggerRef.current)==null||l.focus()}),onPointerDownOutside:m(e.onPointerDownOutside,r=>{const l=r.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&r.preventDefault()}),onFocusOutside:m(e.onFocusOutside,r=>r.preventDefault())})}),xe=i.forwardRef((e,t)=>{const o=d(f,e.__scopeDialog),n=i.useRef(!1),s=i.useRef(!1);return a.jsx(A,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,r),r.defaultPrevented||(n.current||(c=o.triggerRef.current)==null||c.focus(),r.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:r=>{var u,g;(u=e.onInteractOutside)==null||u.call(e,r),r.defaultPrevented||(n.current=!0,r.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const l=r.target;((g=o.triggerRef.current)==null?void 0:g.contains(l))&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&s.current&&r.preventDefault()}})}),A=i.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:r,...l}=e,c=d(f,o),u=i.useRef(null),g=R(t,u);return se(),a.jsxs(a.Fragment,{children:[a.jsx(ie,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:r,children:a.jsx(J,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":_(c.open),...l,ref:g,onDismiss:()=>c.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(De,{titleId:c.titleId}),a.jsx(he,{contentRef:u,descriptionId:c.descriptionId})]})]})}),j="DialogTitle",F=i.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,s=d(j,o);return a.jsx(x.h2,{id:s.titleId,...n,ref:t})});F.displayName=j;var S="DialogDescription",M=i.forwardRef((e,t)=>
1{const{__scopeDialog:o,...n}=e,s=d(S,o);return a.jsx(x.p,{id:s.descriptionId,...n,ref:t})});M.displayName=S;var k="DialogClose",W=i.forwardRef((e,t)=>{const{__scopeDialog:o,...n}=e,s=d(k,o);return a.jsx(x.button,{type:"button",...n,ref:t,onClick:m(e.onClick,()=>s.onOpenChange(!1))})});W.displayName=k;function _(e){return e?"open":"closed"}var $="DialogTitleWarning",[Me,G]=Q($,{contentName:f,titleName:j,docsSlug:"dialog"}),De=({titleId:e})=>{const t=G($),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},ve="DialogDescriptionWarning",he=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${G(ve).contentName}}.`;return i.useEffect(()=>{var r;const s=(r=e.current)==null?void 0:r.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Ne=E,Re=P,L=w,z=T,H=F,B=M,ye=W;const Ce=Ne,je=Re,q=i.forwardRef(({className:e,...t},o)=>a.jsx(L,{ref:o,className:p("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",e),...t}));q.displayName=L.displayName;const V=i.forwardRef(({className:e,children:t,...o},n)=>a.jsxs(je,{children:[a.jsx(q,{}),a.jsxs(z,{ref:n,className:p("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",e),...o,children:[t,a.jsxs(ye,{className:"absolute right-4 top-4 roun
5ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[a.jsx(ae,{className:"h-4 w-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));V.displayName=z.displayName;const K=i.forwardRef(({className:e,...t},o)=>a.jsx("div",{ref:o,className:p("flex flex-col space-y-1.5 text-center sm:text-left",e),...t}));K.displayName="DialogHeader";const _e=i.forwardRef(({className:e,...t},o)=>a.jsx("div",{ref:o,className:p("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));_e.displayName="DialogFooter";const U=i.forwardRef(({className:e,...t},o)=>a.jsx(H,{ref:o,className:p("text-lg font-semibold leading-none tracking-tight",e),...t}));U.displayName=H.displayName;const X=i.forwardRef(({className:e,...t},o)=>a.jsx(B,{ref:o,className:p("text-sm text-muted-foreground",e),...t}));X.displayName=B.displayName;const ke=()=>{const[e,t]=i.useState(!1);i.useEffect(()=>{const n=localStorage.getItem("sifprime_report_popup_mar26"),s=localStorage.getItem("sifprime_report_mar26")==="true";if(n||s)return;const r=setTimeout(()=>{t(!0)},1e4);return()=>clearTimeout(r)},[]);const o=()=>{t(!1),localStorage.setItem("sifprime_report_popup_mar26","seen")};return a.jsx(Ce,{open:e,onOpenChange:n=>{n?t(!0):o()},children:a.jsxs(V,{className:"sm:max-w-md p-5 bg-background border-border",children:[a.jsxs(K,{className:"text-center pb-0",children:[a.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mx-auto mb-3",children:a.jsx(ce,{className:"w-6 h-6 text-primary"})}),a.jsx(U,{className:"text-lg",children:"March 2026 SIF Performance Report"}),a.jsx(X,{className:"text-sm text-muted-foreground",children:"Free download — compare returns across all SIF strategies"})]}),a.jsx(le,{onSuccess:o}),a.jsx("p",{className:"text-[11px] text-muted-foreground text-center mt-1",children:"No spam — just this report"})]})})};export{ke 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.