PageSourceSearch

https://delsolprimehomes.com/assets/public-app-20260927/assets/ToastStack-6lXNdfdW.js

js delsolprimehomes.com collected 2026-10-09 00:15:32 UTC 14,680 bytes, 1 lines download raw bytes

1import{r as n,s as oe,j as s,p as Fe,n as A,X as Ie,v as Ae}from"./index-B_9vmN99.js";import{u as _e}from"./use-toast-v32nvJ1k.js";import{c as P}from"./index-DW48STyt.js";import{c as De}from"./index-C_Tmsuhi.js";import{c as Le}from"./index-BP5WqI6U.js";import{B as Oe,R as Me,P as ke}from"./index-DRxBj7QT.js";import{P as Ve}from"./index-c0mOym3P.js";import{P as _,d as Ke}from"./index-7r-ERwrC.js";import{u as W}from"./index-BKl62-Vz.js";import{u as $e}from"./index-DI52ul2z.js";import{u as He}from"./index-CwPhThLQ.js";import{a as re}from"./index-B3YGkjYm.js";import{$ as We}from"./index-Dp3haWah.js";var J="ToastProvider",[Q,Xe,Be]=De("Toast"),[se,Rt]=Le("Toast",[Be]),[Ue,X]=se(J),ne=e=>{const{__scopeToast:t,label:o="Notification",duration:r=5e3,swipeDirection:u="right",swipeThreshold:d=50,children:p}=e,[v,w]=n.useState(null),[a,b]=n.useState(0),g=n.useRef(!1),D=n.useRef(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${J}\`. Expected non-empty \`string\`.`),s.jsx(Q.Provider,{scope:t,children:s.jsx(Ue,{scope:t,label:o,duration:r,swipeDirection:u,swipeThreshold:d,toastCount:a,viewport:v,onViewportChange:w,onToastAdd:n.useCallback(()=>b(R=>R+1),[]),onToastRemove:n.useCallback(()=>b(R=>R-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:D,children:p})})};ne.displayName=J;var ae="ToastViewport",Ye=["F8"],q="toast.viewportPause",z="toast.viewportResume",ie=n.forwardRef((e,t)=>{const{__scopeToast:o,hotkey:r=Ye,label:u="Notifications ({hotkey})",...d}=e,p=X(ae,o),v=Xe(o),w=n.useRef(null),a=n.useRef(null),b=n.useRef(null),g=n.useRef(null),D=oe(t,g,p.onViewportChange),R=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=p.toastCount>0;n.useEffect(()=>{const c=E=>{var m;r.length!==0&&r.every(x=>E[x]||E.code===x)&&((m=g.current)==null||m.focus())};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[r]),n.useEffect(()=>{const c=w.current,E=g.current;if(N&&c&&E){const f=()=>{if(!p.isClosePausedRef.current){const y=new CustomEvent(q);E.dispatchEvent(y),p.isClosePausedRef.current=!0}},m=()=>{if(p.isClosePausedRef.current){const y=new CustomEvent(z);E.dispatchEvent(y),p.isClosePausedRef.current=!1}},x=y=>{!c.contains(y.relatedTarget)&&m()},T=()=>{c.contains(document.activeElement)||m()};return c.addEventListener("focusin",f),c.addEventListener("focusout",x),c.addEventListener("pointermove",f),c.addEventListener("pointerleave",T),window.addEventListener("blur",f),window.addEventListener("focus",m),()=>{c.removeEventListener("focusin",f),c.removeEventListener("focusout",x),c.removeEventListener("pointermove",f),c.removeEventListener("pointerleave",T),window.removeEventListener("blur",f),window.removeEventListener("focus",m)}}},[N,p.isClosePausedRef]);const l=n.useCallback(({tabbingDirection:c})=>{const f=v().map(m=>{const x=m.ref.current,T=[x,...at(x)];return c==="forwards"?T:T.reverse()});return(c==="forwards"?f.reverse():f).flat()},[v]);return n.useEffect(()=>{const c=g.current;if(c){const E=f=>{var T,y,S;const m=f.altKey||f.ctrlKey||f.metaKey;if(f.key==="Tab"&&!m){const L=document.activeElement,F=f.shiftKey;if(f.target===c&&F){(T=a.current)==null||T.focus();return}const j=l({tabbingDirection:F?"backwards":"forwards"}),V=j.findIndex(i=>i===L);Y(j.slice(V+1))?f.preventDefault():F?(y=a.current)==null||y.focus():(S=b.current)==null||S.focus()}};return c.addEventListener("keydown",E),()=>c.removeEventListener("keydown",E)}},[v,l]),s.jsxs(Oe,{ref:w,role:"region","aria-label":u.replace("{hotkey}",R),tabIndex:-1,style:{pointerEvents:N?void 0:"none"},children:[N&&s.jsx(G,{ref:a,onFocusFromOutsideViewport:()=>{const c=l({tabbingDirection:"forwards"});Y(c)}}),s.jsx(Q.Slot,{scope:o,children:s.jsx(_.ol,{tabIndex:-1,...d,ref:D})}),N&&s.jsx(G,{ref:b,onFocusFromOutsideViewport:()=>{const c=l({tabbingDirection:"backwards"});Y(c)}})]})});ie.displayName=ae;var ce="ToastFocusProxy",G=n.forwardRef((e,t)=>{const{__scopeToast:o,onFocusFromOutsideViewport:r,...u}=e,d=X(ce,o);return s.jsx(re,{"aria-hidden":!0,tabIndex:0,...u,ref:t,style:{position:"fixed"},onFocus:p=>{var a;const v=p.relatedTarget;!((a=d.viewport)!=null&&a.contains(v))&&r()}})});G.displayName=ce;var k="Toast",qe="toast.swipeStart",ze="toast.swipeMove",Ge="toast.swipeCancel",Je="toast.swipeEnd",ue=n.forwardRef((e,t)=>
1{const{forceMount:o,open:r,defaultOpen:u,onOpenChange:d,...p}=e,[v,w]=$e({prop:r,defaultProp:u??!0,onChange:d,caller:k});return s.jsx(Ve,{present:o||v,children:s.jsx(et,{open:v,...p,ref:t,onClose:()=>w(!1),onPause:W(e.onPause),onResume:W(e.onResume),onSwipeStart:P(e.onSwipeStart,a=>{a.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:P(e.onSwipeMove,a=>{const{x:b,y:g}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","move"),a.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${b}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:P(e.onSwipeCancel,a=>{a.currentTarget.setAttribute("data-swipe","cancel"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:P(e.onSwipeEnd,a=>{const{x:b,y:g}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","end"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${b}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),w(!1)})})})});ue.displayName=k;var[Qe,Ze]=se(k,{onClose(){}}),et=n.forwardRef((e,t)=>{const{__scopeToast:o,type:r="foreground",duration:u,open:d,onClose:p,onEscapeKeyDown:v,onPause:w,onResume:a,onSwipeStart:b,onSwipeMove:g,onSwipeCancel:D,onSwipeEnd:R,...N}=e,l=X(k,o),[c,E]=n.useState(null),f=oe(t,i=>E(i)),m=n.useRef(null),x=n.useRef(null),T=u||l.duration,y=n.useRef(0),S=n.useRef(T),L=n.useRef(0),{onToastAdd:F,onToastRemove:B}=l,I=W(()=>{var h;(c==null?void 0:c.contains(document.activeElement))&&((h=l.viewport)==null||h.focus()),p()}),j=n.useCallback(i=>{!i||i===1/0||(window.clearTimeout(L.current),y.current=new Date().getTime(),L.current=window.setTimeout(I,i))},[I]);n.useEffect(()=>{const i=l.viewport;if(i){const h=()=>{j(S.current),a==null||a()},C=()=>{const O=new Date().getTime()-y.current;S.current=S.current-O,window.clearTimeout(L.current),w==null||w()};return i.addEventListener(q,C),i.addEventListener(z,h),()=>{i.removeEventListener(q,C),i.removeEventListener(z,h)}}},[l.viewport,T,w,a,j]),n.useEffect(()=>{d&&!l.isClosePausedRef.current&&j(T)},[d,T,l.isClosePausedRef,j]),n.useEffect(()=>(F(),()=>B()),[F,B]);const V=n.useMemo(()=>c?we(c):null,[c]);return l.viewport?s.jsxs(s.Fragment,{children:[V&&s.jsx(tt,{__scopeToast:o,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:V}),s.jsx(Qe,{scope:o,onClose:I,children:Fe.createPortal(s.jsx(Q.ItemSlot,{scope:o,children:s.jsx(Me,{asChild:!0,onEscapeKeyDown:P(v,()=>{l.isFocusedToastEscapeKeyDownRef.current||I(),l.isFocusedToastEscapeKeyDownRef.current=!1}),children:s.jsx(_.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":l.swipeDirection,...N,ref:f,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:P(e.onKeyDown,i=>{i.key==="Escape"&&(v==null||v(i.nativeEvent),i.nativeEvent.defaultPrevented||(l.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:P(e.onPointerDown,i=>{i.button===0&&(m.current={x:i.clientX,y:i.clientY})}),onPointerMove:P(e.onPointerMove,i=>{if(!m.current)return;const h=i.clientX-m.current.x,C=i.clientY-m.current.y,O=!!x.current,M=["left","right"].includes(l.swipeDirection),K=["left","up"].includes(l.swipeDirection)?Math.min:Math.max,Se=M?K(0,h):0,je=M?0:K(0,C),U=i.pointerType==="touch"?10:2,$={x:Se,y:je},ee={originalEvent:i,delta:$};O?(x.current=$,H(ze,g,ee,{discrete:!1})):te($,l.swipeDirection,U)?(x.current=$,H(qe,b,ee,{discrete:!1}),i.target.setPointerCapture(i.pointerId)):(Math.abs(h)>U||Math.abs(C)>U)&&(m.current=null)}),onPointerUp:P(e.onPointerUp,i=>{const h=x.current,C=i.target;if(C.hasPointerCapture(i.pointerId)&&C.releasePointerCapture(i.pointerId),x.current=null,m.current=null,h){const O=i.currentTarget,M={originalEvent:i,delta:h};te(h,l.swipeDirection,l.swipeThreshold)?H(Je,R,M,{discrete:!0}):H(Ge,D,M,{discrete:!0}),O.addEventListener("click",K=>K.preventDefault(),{once:!0})}})})})}),l.viewport)})]}):null}),tt=e=>{const{__scopeToast:t,children:o,...r}=e,u=X(k,t),[d,p]=n.useState(!1),[v,w]=n.useState(!1);return st(()=>p(!0)),n.useEffect(()=>{const a=window.setTimeout(()=>w(!0),1e3);return()=>window.clearTimeout(a)},[]),v?null:s.jsx(ke,{asChild:!0,children:s.jsx(re,{...r,children:d&&s.jsxs(s.Fragment,{children:[u.label," ",o]})})})},ot="ToastTitle",de=n.forwardRef((e,t)=>
1{const{__scopeToast:o,...r}=e;return s.jsx(_.div,{...r,ref:t})});de.displayName=ot;var rt="ToastDescription",le=n.forwardRef((e,t)=>{const{__scopeToast:o,...r}=e;return s.jsx(_.div,{...r,ref:t})});le.displayName=rt;var pe="ToastAction",fe=n.forwardRef((e,t)=>{const{altText:o,...r}=e;return o.trim()?s.jsx(ve,{altText:o,asChild:!0,children:s.jsx(Z,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${pe}\`. Expected non-empty \`string\`.`),null)});fe.displayName=pe;var me="ToastClose",Z=n.forwardRef((e,t)=>{const{__scopeToast:o,...r}=e,u=Ze(me,o);return s.jsx(ve,{asChild:!0,children:s.jsx(_.button,{type:"button",...r,ref:t,onClick:P(e.onClick,u.onClose)})})});Z.displayName=me;var ve=n.forwardRef((e,t)=>{const{__scopeToast:o,altText:r,...u}=e;return s.jsx(_.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...u,ref:t})});function we(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),nt(r)){const u=r.ariaHidden||r.hidden||r.style.display==="none",d=r.dataset.radixToastAnnounceExclude==="";if(!u)if(d){const p=r.dataset.radixToastAnnounceAlt;p&&t.push(p)}else t.push(...we(r))}}),t}function H(e,t,o,{discrete:r}){const u=o.originalEvent.currentTarget,d=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:o});t&&u.addEventListener(e,t,{once:!0}),r?Ke(u,d):u.dispatchEvent(d)}var te=(e,t,o=0)=>{const r=Math.abs(e.x),u=Math.abs(e.y),d=r>u;return t==="left"||t==="right"?d&&r>o:!d&&u>o};function st(e=()=>{}){const t=W(e);He(()=>{let o=0,r=0;return o=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(r)}},[t])}function nt(e){return e.nodeType===e.ELEMENT_NODE}function at(e){const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const u=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||u?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t}function Y(e){const t=document.activeElement;return e.some(o=>o===t?!0:(o.focus(),document.activeElement!==t))}var it=ne,xe=ie,Te=ue,ge=de,Ee=le,ye=fe,he=Z;const ct=it,be=n.forwardRef(({className:e,...t},o)=>s.jsx(xe,{ref:o,className:A("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));be.displayName=xe.displayName;const ut=Ae("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Pe=n.forwardRef(({className:e,variant:t,...o},r)=>s.jsx(Te,{ref:r,className:A(ut({variant:t}),e),...o}));Pe.displayName=Te.displayName;const dt=n.forwardRef(({className:e,...t},o)=>s.jsx(ye,{ref:o,className:A("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));dt.displayName=ye.displayName;const Ce=n.forwardRef(({className:e,...t},o)=>s.jsx(he,{ref:o,className:A("absolute right-2 top-2 rounded-md p-1 text-foreground
1/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:s.jsx(Ie,{className:"h-4 w-4"})}));Ce.displayName=he.displayName;const Re=n.forwardRef(({className:e,...t},o)=>s.jsx(ge,{ref:o,className:A("text-sm font-semibold",e),...t}));Re.displayName=ge.displayName;const Ne=n.forwardRef(({className:e,...t},o)=>s.jsx(Ee,{ref:o,className:A("text-sm opacity-90",e),...t}));Ne.displayName=Ee.displayName;function lt(){const{toasts:e}=_e();return s.jsxs(ct,{children:[e.map(function({id:t,title:o,description:r,action:u,...d}){return s.jsxs(Pe,{...d,children:[s.jsxs("div",{className:"grid gap-1",children:[o&&s.jsx(Re,{children:o}),r&&s.jsx(Ne,{children:r})]}),u,s.jsx(Ce,{})]},t)}),s.jsx(be,{})]})}const pt=({...e})=>s.jsx(We,{theme:"light",className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e}),Nt=()=>s.jsxs(s.Fragment,{children:[s.jsx(lt,{}),s.jsx(pt,{})]});export{Nt as ToastStack};

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.