PageSourceSearch

https://trychannel3.com/assets/index-DBQOFX1f.js

js trychannel3.com collected 2026-09-24 22:55:53 UTC 5,104 bytes, 1 lines download raw bytes

1import{r as l}from"./chunk-62JRHF6Z-CzwNv35r.js";import{c as p,a as S}from"./index-YQfNLjTc.js";import{u as P,c as w}from"./index-Cxcsvkau.js";import{u as x}from"./index-DIGQJINs.js";import{u as N}from"./index-C_3Nr3E1.js";import{u as L,P as k,D as G}from"./index-6-mG_Iy3.js";import{R as H,h as K,u as U,F as V}from"./index-BRZAN8pF.js";import{P as _}from"./index-DBNNMq21.js";import{P as v}from"./index-C-_DIE70.js";import{u as h}from"./index-C_PiomxH.js";import{j as s}from"./jsx-runtime-D_zvdyIk.js";var Y=Object.defineProperty,f=(c,o)=>Y(c,"name",{value:o,configurable:!0}),O="Dialog",[E,ge]=S(O),[Z,g]=E(O),de=f(c=>{const{__scopeDialog:o,children:a,open:n,defaultOpen:r,onOpenChange:t,modal:e=!0}=c,i=l.useRef(null),u=l.useRef(null),[D,d]=N({prop:n,defaultProp:r??!1,onChange:t,caller:O}),[T,M]=l.useState(0),[b,A]=l.useState(0);return s.jsx(Z,{scope:o,triggerRef:i,contentRef:u,contentId:x(),titleId:x(),descriptionId:x(),titlePresent:T>0,descriptionPresent:b>0,setTitleCount:M,setDescriptionCount:A,open:D,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(F=>!F),[d]),modal:e,children:a})},"Dialog"),q="DialogTrigger",De=l.forwardRef(f(function(o,a){const{__scopeDialog:n,...r}=o,t=g(q,n),e=P(a,t.triggerRef);return s.jsx(v.button,{type:"button","aria-haspopup":"dialog","aria-expanded":t.open,"aria-controls":t.open?t.contentId:void 0,"data-state":m(t.open),...r,ref:e,onClick:p(o.onClick,t.onOpenToggle)})},"DialogTrigger")),I="DialogPortal",[z,j]=E(I,{forceMount:void 0}),pe=f(c=>{const{__scopeDialog:o,forceMount:a,children:n,container:r}=c,t=g(I,o);return s.jsx(z,{scope:o,forceMount:a,children:l.Children.map(n,e=>s.jsx(_,{present:a||t.open,children:s.jsx(k,{asChild:!0,container:r,children:e})}))})},"DialogPortal"),R="DialogOverlay",Ce=l.forwardRef(f(function(o,a){const n=j(R,o.__scopeDialog),{forceMount:r=n.forceMount,...t}=o,e=g(R,o.__scopeDialog);return e.modal?s.jsx(_,{present:r||e.open,children:s.jsx(J,{...t,ref:a})}):null},"DialogOverlay")),B=w("DialogOverlay.RemoveScroll"),J=l.forwardRef(f(function(o,a){const{__scopeDialog:n,...r}=o,t=g(R,n),e=L(),i=P(a,e);return s.jsx(H,{as:B,allowPinchZoom:!0,shards:[t.contentRef],children:s.jsx(v.div,{"data-state":m(t.open),...r,ref:i,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),C="DialogContent",ve=l.forwardRef(f(function(o,a){const n=j(C,o.__scopeDialog),{forceMount:r=n.forceMount,...t}=o,e=g(C,o.__scopeDialog);return s.jsx(_,{present:r||e.open,children:e.modal?s.jsx(Q,{...t,ref:a}):s.jsx(W,{...t,ref:a})})},"DialogContent")),Q=l.forwardRef(f(function(o,a){const n=g(C,o.__scopeDialog),r=l.useRef(null),t=P(a,n.contentRef,r);return l.useEffect(()=>{const e=r.current;if(e)return K(e)},[]),s.jsx(y,{...o,ref:t,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:p(o.onCloseAutoFocus,e=>{var i;e.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:p(o.onPointerDownOutside,e=>{const i=e.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0;(i.button===2||u)&&e.preventDefault()}),onFocusOutside:p(o.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),W=l.forwardRef(f(function(o,a){const n=g(C,o.__scopeDialog),r=l.useRef(!1),t=l.useRef(!1);return s.jsx(y,{...o,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var i,u;(i=o.onCloseAutoFocus)==null||i.call(o,e),e.defaultPrevented||(r.current||(u=n.triggerRef.current)==null||u.focus(),e.preventDefault()),r.current=!1,t.current=!1},onInteractOutside:e=>{var D,d;(D=o.onInteractOutside)==null||D.call(o,e),e.defaultPrevented||(r.current=!0,e.detail.originalEvent.type==="pointerdown"&&(t.current=!0));const i=e.target;((d=n.triggerRef.current)==null?void 0:d.contains(i))&&e.preventDefault(),e.detail.originalEvent.type==="focusin"&&t.current&&e.preventDefault()}})},"DialogContentNonModal")),y=l.forwardRef(f(function(o,a){const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:t,onCloseAutoFocus:e,...i}=o,u=g(C,n);return U(),s.jsx(s.Fragment,{children:s.jsx(V,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:t,onUnmountAutoFocus:e,children:s.jsx(G,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionPresent?u.descriptionId:void 0,"aria-labelledby":u.titlePresent?u.titleId:void 0,"data-state":m(u.open),...i,ref:a,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1)})})})},"DialogContentImpl")),X="DialogTitle",me=l.forwardRef(f(function(o,a){const{__scopeDialog:n,...r}=o,t=g(X,n),{setTitleCount:e}=t;return h(()=>(e(i=>i+1),()=>e(i=>i-1)),[e]),s.jsx(v.h2,{id:t.titleId,...r,ref:a})},"DialogTitle")),$="DialogDescription",xe=l.forwardRef(f(function(o,a){const{__scopeDialog:n,...r}=o,t=g($,n),{setDescriptionCount:e}=t;return h(()=>(e(i=>i+1),()=>e(i=>i-1)),[e]),s.jsx(v.p,{id:t.descriptionId,...r,ref:a})},"DialogDescription")),ee="DialogClose",Re=l.forwardRef(f(function(o,a){const{__scopeDialog:n,...r}=o,t=g(ee,n);return s.jsx(v.button,{type:"button",...r,ref:a,onClick:p(o.onClick,()=>t.onOpenChange(!1))})},"DialogClose"));function m(c){return c?"open":"closed"}f(m,"getState");export{ve as D,me as a,xe as b,de as c,pe as d,De as e,Re as f,Ce as g,ge as h};

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.