PageSourceSearch

https://guild.host/assets/b2d03cee0b9fcfcea48e.js

js guild.host collected 2026-10-03 20:14:08 UTC 14,324 bytes, 3 lines download raw bytes

1/*! For license information please see b2d03cee0b9fcfcea48e.js.LICENSE.txt */
2"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[47475],{47475:(e,n,t)=>{t.d(n,{Vq:()=>De}),t(76613);var o=t(60697),r=t(92995),i=t(37890),s=t(21746),u=t(42180),a=t(91052),c=t(92657),l=t(82427),d=t(98857),f=t(7645),p=t(28957),v=t(56344),h=t(14516),b=t(40660),g=t(80100),O=t(78019),y=t(91528),m=t(98518);var x=t(33313),E=t(62039),D=t(16834);function j(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w,C="dismissable.update",S=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),F=m.forwardRef((function(e,n){var t=e.disableOutsidePointerEvents,r=void 0!==t&&t,s=e.forceUnmount,u=e.onEscapeKeyDown,c=e.onPointerDownOutside,l=e.onFocusOutside,d=e.onInteractOutside,f=e.onDismiss,p=(0,i.Z)(e,["disableOutsidePointerEvents","forceUnmount","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),v=m.useContext(S),h=m.useState(null),b=(0,o.Z)(h,2),g=b[0],E=b[1],j=m.useState({}),F=(0,o.Z)(j,2)[1],I=(0,a.ex)(n,(function(e){return E(e)})),T=Array.from(v.layers),Z=(0,O.Z)(v.layersWithOutsidePointerEventsDisabled).slice(-1),z=(0,o.Z)(Z,1)[0],A=T.indexOf(z),M=g?T.indexOf(g):-1,_=v.layersWithOutsidePointerEventsDisabled.size>0,k=M>=A,B=function(e){var n=(0,x.z)(e),t=m.useRef(!1),o=m.useRef((function(){}));return m.useEffect((function(){var e=function(e){if(e.target&&!t.current){var r=function(){R("dismissable.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(document.removeEventListener("click",o.current),o.current=r,document.addEventListener("click",o.current,{once:!0})):r()}t.current=!1},r=setTimeout((function(){document.addEventListener("pointerdown",e)}),0);return function(){window.clearTimeout(r),document.removeEventListener("pointerdown",e),document.removeEventListener("click",o.current)}}),[n]),{onPointerDownCapture:function(){t.current=!0}}}((function(e){var n=e.target,t=(0,O.Z)(v.branches).some((function(e){return e.contains(n)}));!k||t||(null!==c&&void 0!==c&&c(e),null!==d&&void 0!==d&&d(e),e.defaultPrevented||null===f||void 0===f||f())})),N=function(e){var n=(0,x.z)(e),t=m.useRef(!1);return m.useEffect((function(){var e=function(e){e.target&&!t.current&&R("dismissable.focusOutside",n,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),function(){return document.removeEventListener("focusin",e)}}),[n]),{onFocusCapture:function(){t.current=!0},onBlurCapture:function(){t.current=!1}}}((function(e){var n=e.target;(0,O.Z)(v.branches).some((function(e){return e.contains(n)}))||(null!==l&&void 0!==l&&l(e),null!==d&&void 0!==d&&d(e),e.defaultPrevented||null===f||void 0===f||f())}));return function(e){var n,t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document,r=(n=e,t=m.useRef(n),m.useEffect((function(){t.current=n})),m.useMemo((function(){return function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}}),[]));m.useEffect((function(){var e=function(e){"Escape"===e.key&&r(e)};return o.addEventListener("keydown",e),function(){o.removeEventListener("keydown",e)}}),[r,o])}((function(e){M===v.layers.size-1&&(null!==u&&void 0!==u&&u(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))})),m.useEffect((function(){if(g)return r&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(w=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(g)),v.layers.add(g),L(),function(){r&&1===v.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=w)}}),[g,r,v]),m.useEffect((function(){if(!s)return function(){g&&(v.layers.delete(g),v.layersWithOutsidePointerEventsDisabled.delete(g),L())}}),[g,v,s]),m.useEffect((function(){var e=function(){F({})};return document.addEventListener(C,e),function(){return document.removeEventListener(C,e)}}),[]),(0,D.jsx)("div",P(P({},p),{},{ref:I,style:P({display:"contents",pointerEvents:_?k?"auto":"none":void 0},e.style),onFocusCapture:(0,y.M)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,y.M)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,y.M)(e.onPointerDownCapture,B.onPointerDownCapture)}))}
2));function L(){var e=new CustomEvent(C);document.dispatchEvent(e)}function R(e,n,t,o){var r=o.discrete,i=t.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});n&&i.addEventListener(e,n,{once:!0}),r?function(e,n){e&&E.flushSync((function(){return e.dispatchEvent(n)}))}(i,s):i.dispatchEvent(s)}F.displayName="Dismissable",m.forwardRef((function(e,n){var t=m.useContext(S),o=m.useRef(null),r=(0,a.ex)(n,o);return m.useEffect((function(){var e=o.current;if(e)return t.branches.add(e),function(){t.branches.delete(e)}}),[t.branches]),(0,D.jsx)("div",P(P({style:{display:"contents"}},e),{},{ref:r}))})).displayName="DismissableBranch";var I=t(59038),T=t(62825),Z=t(89913),z=t(34222),A=t(54662),M=t(14455),_=t(78610),k=t(36923),B=t(19903),N=m.createContext(!1),W=t(86914),K=t(27489),$=t(880),H=t(14969),U=t(38609),V=t(38268);function q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function G(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?q(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Q=(0,l.i)({},"Dialog__"),Y=Q.useStyledContext,J=Q.Provider,X=(0,d.z)(f.G7,{name:"DialogTrigger"}),ee=X.styleable((function(e,n){var t=e.scope,o=(0,i.Z)(e,["scope"]),r=m.useContext(N),s=Y(t),u=(0,a.ex)(n,s.triggerRef);return(0,D.jsx)(N.Provider,{value:!0,children:(0,D.jsx)(X,G(G({tag:r?"span":"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":me(s.open)},o),{},{ref:u,onPress:(0,y.M)(e.onPress,s.onOpenToggle)}))})})),ne=(0,d.z)(W.FA,{pointerEvents:"none",tag:"dialog",variants:{unstyled:{false:{alignItems:"center",justifyContent:"center",fullscreen:!0,"$platform-web":{borderWidth:0,backgroundColor:"transparent",color:"inherit",maxInlineSize:"none",margin:0,width:"auto",height:"auto",maxHeight:"100vh",position:"fixed",zIndex:1}}}},defaultVariants:{unstyled:!1}}),te=c.Dt||c.s&&!Z.gL,oe=function(e){var n=e.context,t=e.children,o=(0,p.C)(),r=(0,s.yB)(n.adaptScope),i=(0,s._F)(n.adaptScope),u=(0,D.jsx)(v.Q,{name:o,children:t});return te&&(u=(0,D.jsx)(s.cY,G(G({},i),{},{children:(0,D.jsx)(J,G(G({},n),{},{children:u}))}))),r?(0,D.jsx)(s.sw,{scope:n.adaptScope,children:u}):n.modal?(0,D.jsx)(z.q,{hostName:n.modal?"root":n.adaptScope,children:u}):u},re=m.forwardRef((function(e,n){var t=e.scope,r=e.forceMount,l=e.children,d=(0,i.Z)(e,["scope","forceMount","children"]),f=m.useRef(null),p=(0,a.FE)(f,n),v=Y(t),g=r||v.open,O=m.useState(!g),y=(0,o.Z)(O,2),x=y[0],E=y[1],j=(0,s.yB)(v.adaptScope),P=!!g||!x;g&&x&&E(!1),c.$L&&(0,c.LI)((function(){var e,n,t=f.current;t instanceof HTMLDialogElement&&(P?null===(e=t.show)||void 0===e||e.call(t):null===(n=t.close)||void 0===n||n.call(t))}),[P]);var w=m.useCallback((function(){E(!0)}),[]),C=function(e,n){var t,o=(0,h.iE)().inverseShorthands;return null!=(t=n[e])?t:n[o[e]]}("zIndex",e),S=(0,D.jsx)(V.i,{zIndex:(0,A.K)(C),children:(0,D.jsx)(u.M,{passThrough:j,onExitComplete:w,children:g||j?l:null})}),F=x&&!j?null:(0,D.jsx)(b.xc,{disable:!g,children:(0,D.jsx)(ne,G(G(G({ref:p},c.$L&&g&&{"aria-modal":!0}),{},{pointerEvents:g?"auto":"none"},d),{},{className:"_no_backdrop "+(d.className||""),children:S}))});return c.$L?(0,D.jsx)(M.h,{zIndex:C,stackZIndex:1e3,passThrough:j,children:(0,D.jsx)(ie,{passThrough:j,children:F})}):j?F:(0,D.jsx)(oe,{context:v,children:F})})),ie=function(e){var n=e.children,t=e.passThrough,o=(0,p.C)();return(0,D.jsx)(v.Q,{passThrough:t,name:o,forceClassName:!0,children:n})},se=(0,d.z)(k.aV,{name:"DialogOverlay"}),ue=se.styleable((function(e,n){var t=e.scope,o=(0,i.Z)(e,["scope"]),r=Y(t),u=o.forceMount,a=void 0===u?r.forceMount:u,c=(0,i.Z)(o,["forceMount"]),l=(0,s.yB)(r.adaptScope);return a||r.modal&&!l?(0,D.jsx)(se,G(G({"data-state":me(r.open),pointerEvents:r.open?"auto":"none"},c),{},{ref:n})):null})),ae="DialogContent",ce=(0,d.z)(K.K,{name:ae,variants:{size:{"...size":function(){return{}}},unstyled:{false:{position:"relative",backgrounded:!0,padded:!0,radiused:!0,elevate:!0,zIndex:1e5}}},defaultVariants:{size:"$true",unstyled:!1}}),le=ce.styleable((function(e,n){var t=e.scope,o=(0,i.Z)(e,["scope"]),r=Y(t),s=(void 0===o.forceMount&&r.forceMount,(0,i.Z)(o,["forceMount"])),u=(0,D.jsx)(D.Fragment,{children:r.modal?(0,D.jsx)(de,G(G({context:r},s),{},{ref:n})):(0,D.jsx)(fe,G(G({context:r},s),{},{ref:n}))});return!c.$L||r.disableRemoveScroll?u:(0,D.jsx)(_.f,{enabled:r.open,children:(0,D.jsx)("div",{"data-remove-scroll-container":!0,className:"_dsp_contents",children:u})})})),de=m.forwardRef((function(e,n){var t=e.children,o=e.context,r=(0,i.Z)(e,["children","context"]),s=m.useRef(null),u=(0,a.ex)(n,o.contentRef,s);return(0,D.jsx)(pe,G(G(G({},r),{},{context:o,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,y.M)(r.onCloseAutoFocus,(function(e){var n;e.preventDefault(),null===(n=o.triggerRef.current)||void 0===n||n.focus()})),onPointerDownOutside:(0,y.M)(r.onPointerDownOutside,(function(e){var n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey;(2===n.button||t)&&e.preventDefault()})),onFocusOutside:(0,y.M)(r.onFocusOutside,(function(e){return e.preventDefault()}))},!r.unstyled&&{outlineStyle:"none"}),{},{children:t}))})),fe=m.forwardRef((function(e,n){var t=m.useRef(!1);return(0,D.jsx)(pe,G(G({},e),{},{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:function(n){var o,r;null!==(o=e.onCloseAutoFocus)&&void 0!==o&&o.call(e,n),n.defaultPrevented||(t.current||null!==(r=e.context.triggerRef.current)&&void 0!==r&&r.focus(),n.preventDefault()),t.current=!1},onInteractOutside:function(n){var o;null!==(o=e.onInteractOutside)&&void 0!==o&&o.call(e,n),n.defaultPrevented||(t.current=!0);var r=n.target,i=e.context.triggerRef.current;i instanceof HTMLElement&&i.contains(r)&&n.preventDefault()}}))})),pe=m.forwardRef((function(e,n){var t=e.trapFocus,o=e.onOpenAutoFocus,r=e.onCloseAutoFocus,u=e.disableOutsidePointerEvents,l=e.onEscapeKeyDown,d=e.onPointerDownOutside,f=e.onFocusOutside,p=e.onInteractOutside,v=e.context,h=(0,i.Z)(e,["trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","context"]),b=m.useRef(void 0),g=(0,a.ex)(n,b);
2if((0,s.yB)(v.adaptScope))return c.$L||v.open?(0,D.jsx)(oe,{context:v,children:h.children}):null;var O=(0,D.jsx)(ce,G({ref:g,id:v.contentId,"aria-describedby":v.descriptionId,"aria-labelledby":v.titleId,"data-state":me(v.open)},h));return c.$L?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(F,{disableOutsidePointerEvents:v.open&&u,forceUnmount:!v.open,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:function(){var e;return null===v||void 0===v||null===(e=v.onOpenChange)||void 0===e?void 0:e.call(v,!1)},children:(0,D.jsx)(I.MT,{loop:!0,enabled:v.open,trapped:t,onMountAutoFocus:o,forceUnmount:!v.open,onUnmountAutoFocus:r,children:O})}),!1]}):O})),ve=(0,d.z)($.H2,{name:"DialogTitle"}),he=ve.styleable((function(e,n){var t=e.scope,o=(0,i.Z)(e,["scope"]),r=Y(t);return(0,D.jsx)(ve,G(G({id:r.titleId},o),{},{ref:n}))})),be=(0,d.z)(H.n,{name:"DialogDescription"}),ge=be.styleable((function(e,n){var t=e.scope,o=(0,i.Z)(e,["scope"]),r=Y(t);return(0,D.jsx)(be,G(G({id:r.descriptionId},o),{},{ref:n}))})),Oe=(0,d.z)(f.G7,{name:"DialogClose",tag:"button"}),ye=Oe.styleable((function(e,n){var t=e.scope,o=e.displayWhenAdapted,r=(0,i.Z)(e,["scope","displayWhenAdapted"]),u=Y(t),a=(0,s.yB)(u.adaptScope),c=m.useContext(N);return a&&!o?null:(0,D.jsx)(Oe,G(G({accessibilityLabel:"Dialog Close",tag:c?"span":"button"},r),{},{ref:n,onPress:(0,y.M)(e.onPress,(function(){u.onOpenChange(!1)}))}))}));function me(e){return e?"open":"closed"}var xe=(0,g.k)("DialogTitleWarning",{contentName:ae,titleName:"DialogTitle",docsSlug:"dialog"}),Ee=(0,o.Z)(xe,2),De=(Ee[0],Ee[1],(0,T.$)(m.forwardRef((function(e,n){var t=e.scope,r=void 0===t?"":t,i=e.children,u=e.open,a=e.defaultOpen,c=void 0!==a&&a,l=e.onOpenChange,d=e.modal,f=void 0===d||d,p=e.disableRemoveScroll,v=void 0!==p&&p,h="Dialog-"+r+"-"+m.useId(),b=h+"-content",g=h+"-title",O=h+"-description",y=m.useRef(null),x=m.useRef(null),E=(0,U.T)({prop:u,defaultProp:c,onChange:l}),j=(0,o.Z)(E,2),P=j[0],w=j[1],C=m.useCallback((function(){w((function(e){return!e}))}),[w]),S="DialogAdapt"+r,F={dialogScope:r,adaptScope:S,triggerRef:y,contentRef:x,contentId:b,titleId:g,descriptionId:O,open:P,onOpenChange:w,onOpenToggle:C,modal:f,disableRemoveScroll:v};return m.useImperativeHandle(n,(function(){return{open:w}}),[w]),(0,D.jsx)(s.z6,{scope:S,portal:{forwardProps:e},children:(0,D.jsx)(J,G(G({scope:r},F),{},{children:(0,D.jsx)(je,{onOpenChange:w,scope:r,children:i})}))})})),{Trigger:ee,Portal:re,Overlay:ue,Content:le,Title:he,Description:ge,Close:ye,Sheet:k.yo.Controlled,FocusScope:I.DY,Adapt:s.Tr})),je=function(e){var n=Y(e.scope),t=(0,s.yB)(n.adaptScope);return(0,D.jsx)(B.f,{onOpenChange:function(n){var o;t&&(null===(o=e.onOpenChange)||void 0===o||o.call(e,n))},open:n.open,hidden:!t,children:e.children})}}}]);
3//# sourceMappingURL=b2d03cee0b9fcfcea48e.js.map

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.