PageSourceSearch

https://repobird.ai/_next/static/chunks/1655-416cbca9afa55c6c.js

js repobird.ai collected 2026-10-05 13:47:43 UTC 12,566 bytes, 6 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1655],{38559:(t,e,s)=>{s.d(e,{$:()=>a,s:()=>o});var i=s(74268),r=s(69781),n=s(93049),o=class extends r.k{#t;#e;#s;#i;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#s=t.mutationCache,this.#e=[],this.state=t.state||a(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#r({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=(0,n.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#r({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#r({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});let i="pending"===this.state.status,r=!this.#i.canStart();try{if(i)e();else{this.#r({type:"pending",variables:t,isPaused:r}),this.#s.config.onMutate&&await this.#s.config.onMutate(t,this,s);let e=await this.options.onMutate?.(t,s);e!==this.state.context&&this.#r({type:"pending",context:e,variables:t,isPaused:r})}let n=await this.#i.start();return await this.#s.config.onSuccess?.(n,t,this.state.context,this,s),await this.options.onSuccess?.(n,t,this.state.context,s),await this.#s.config.onSettled?.(n,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(n,null,t,this.state.context,s),this.#r({type:"success",data:n}),n}catch(e){try{await this.#s.config.onError?.(e,t,this.state.context,this,s)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,s)}catch(t){Promise.reject(t)}try{await this.#s.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,s)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,s)}catch(t){Promise.reject(t)}throw this.#r({type:"error",error:e}),e}finally{this.#s.runNext(this)}}#r(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),i.jG.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#s.notify({mutation:this,type:"updated",action:t})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},72251:(t,e,s)=>{s.d(e,{A:()=>i});let i=(0,s(14294).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},80549:(t,e,s)=>{s.d(e,{n:()=>c});var i=s(12115),r=s(38559),n=s(74268),o=s(38445),a=s(34049),u=class extends o.Q{#t;#n=void 0;#o;#a;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#u()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,a.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#o,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,a.EN)(e.mutationKey)!==(0,a.EN)(this.options.mutationKey)?this.reset():this.#o?.state.status==="pending"&&this.#o.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#o?.removeObserver(this)}onMutationUpdate(t){this.#u(),this.#l(t)}getCurrentResult(){return this.#n}reset(){this.#o?.removeObserver(this),this.#o=void 0,this.#u(),this.#l()}mutate(t,e){return this.#a=e,this.#o?.removeObserver(this),this.#o=this.#t.getMutationCache().build(this.#t,this.options),this.#o.addObserver(this),this.#o.execute(t)}#u(){let t=this.#o?.state??(0,r.$)();this.#n={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#l(t){n.jG.batch(()=>
1{if(this.#a&&this.hasListeners()){let e=this.#n.variables,s=this.#n.context,i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#a.onSuccess?.(t.data,e,s,i)}catch(t){Promise.reject(t)}try{this.#a.onSettled?.(t.data,null,e,s,i)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#a.onError?.(t.error,e,s,i)}catch(t){Promise.reject(t)}try{this.#a.onSettled?.(void 0,t.error,e,s,i)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#n)})})}},l=s(99776);function c(t,e){let s=(0,l.jE)(e),[r]=i.useState(()=>new u(s,t));i.useEffect(()=>{r.setOptions(t)},[r,t]);let o=i.useSyncExternalStore(i.useCallback(t=>r.subscribe(n.jG.batchCalls(t)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),c=i.useCallback((t,e)=>{r.mutate(t,e).catch(a.lQ)},[r]);if(o.error&&(0,a.GU)(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}},92033:(t,e,s)=>{s.d(e,{A:()=>i});let i=(0,s(14294).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},93409:(t,e,s)=>{s.d(e,{bm:()=>to,UC:()=>ti,VY:()=>tn,hJ:()=>ts,ZL:()=>te,bL:()=>X,hE:()=>tr,l9:()=>tt,G$:()=>Q,Hs:()=>x});var i=s(12115),r=s(92556),n=s(94446),o=s(3468),a=s(68946),u=s(23558),l=s(44831),c=s(69666),h=s(75433),d=s(76842),p=s(88142),f=s(19526),m=s(13655),y=s(97745),g=s(95155),v=Symbol("radix.slottable");function b(t){return i.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===v}var C="Dialog",[R,x]=(0,o.A)(C),[w,O]=R(C),j=t=>{let{__scopeDialog:e,children:s,open:r,defaultOpen:n,onOpenChange:o,modal:l=!0}=t,c=i.useRef(null),h=i.useRef(null),[d,p]=(0,u.i)({prop:r,defaultProp:n??!1,onChange:o,caller:C});return(0,g.jsx)(w,{scope:e,triggerRef:c,contentRef:h,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:d,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(t=>!t),[p]),modal:l,children:s})};j.displayName=C;var D="DialogTrigger",E=i.forwardRef((t,e)=>{let{__scopeDialog:s,...i}=t,o=O(D,s),a=(0,n.s)(e,o.triggerRef);return(0,g.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Z(o.open),...i,ref:a,onClick:(0,r.mK)(t.onClick,o.onOpenToggle)})});E.displayName=D;var M="DialogPortal",[P,I]=R(M,{forceMount:void 0}),N=t=>{let{__scopeDialog:e,forceMount:s,children:r,container:n}=t,o=O(M,e);return(0,g.jsx)(P,{scope:e,forceMount:s,children:i.Children.map(r,t=>(0,g.jsx)(d.C,{present:s||o.open,children:(0,g.jsx)(h.Z,{asChild:!0,container:n,children:t})}))})};N.displayName=M;var S="DialogOverlay",_=i.forwardRef((t,e)=>{let s=I(S,t.__scopeDialog),{forceMount:i=s.forceMount,...r}=t,n=O(S,t.__scopeDialog);return n.modal?(0,g.jsx)(d.C,{present:i||n.open,children:(0,g.jsx)(F,{...r,ref:e})}):null});_.displayName=S;var A=function(t){let e=function(t){let e=i.forwardRef((t,e)=>{let{children:s,...r}=t;if(i.isValidElement(s)){var o;let t,a,u=(o=s,(a=(t=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?o.ref:(a=(t=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(t,e){let s={...e};for(let i in e){let r=t[i],n=e[i];/^on[A-Z]/.test(i)?r&&n?s[i]=(...t)=>{let e=n(...t);return r(...t),e}:r&&(s[i]=r):"style"===i?s[i]={...r,...n}:"className"===i&&(s[i]=[r,n].filter(Boolean).join(" "))}return{...t,...s}}(r,s.props);return s.type!==i.Fragment&&(l.ref=e?(0,n.t)(e,u):u),i.cloneElement(s,l)}return i.Children.count(s)>1?i.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}(t),s=i.forwardRef((t,s)=>{let{children:r,...n}=t,o=i.Children.toArray(r),a=o.find(b);if(a){let t=a.props.children,r=o.map(e=>e!==a?e:i.Children.count(t)>1?i.Children.only(null):i.isValidElement(t)?t.props.children:null);return(0,g.jsx)(e,{...n,ref:s,children:i.isValidElement(t)?i.cloneElement(t,void 0,r):null})}return(0,g.jsx)(e,{...n,ref:s,children:r})});return s.displayName=`${t}.Slot`,s}("DialogOverlay.RemoveScroll"),F=i.forwardRef((t,e)=>{let{__scopeDialog:s,...i}=t,r=O(S,s);return(0,g.jsx)(m.A,{as:A,allowPinchZoom:!0,shards:[r.contentRef],children:(0,g.jsx)(p.sG.div,{"data-state":Z(r.open),...i,ref:e,style:{pointerEvents:"auto",...i.style}})})}),k="DialogContent",G=i.forwardRef((t,e)=>{let s=I(k,t.__scopeDialog),{forceMount:i=s.forceMount,...r}=t,n=O(k,t.__scopeDialog);
1return(0,g.jsx)(d.C,{present:i||n.open,children:n.modal?(0,g.jsx)(K,{...r,ref:e}):(0,g.jsx)($,{...r,ref:e})})});G.displayName=k;var K=i.forwardRef((t,e)=>{let s=O(k,t.__scopeDialog),o=i.useRef(null),a=(0,n.s)(e,s.contentRef,o);return i.useEffect(()=>{let t=o.current;if(t)return(0,y.Eq)(t)},[]),(0,g.jsx)(T,{...t,ref:a,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r.mK)(t.onCloseAutoFocus,t=>{t.preventDefault(),s.triggerRef.current?.focus()}),onPointerDownOutside:(0,r.mK)(t.onPointerDownOutside,t=>{let e=t.detail.originalEvent,s=0===e.button&&!0===e.ctrlKey;(2===e.button||s)&&t.preventDefault()}),onFocusOutside:(0,r.mK)(t.onFocusOutside,t=>t.preventDefault())})}),$=i.forwardRef((t,e)=>{let s=O(k,t.__scopeDialog),r=i.useRef(!1),n=i.useRef(!1);return(0,g.jsx)(T,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(r.current||s.triggerRef.current?.focus(),e.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(r.current=!0,"pointerdown"===e.detail.originalEvent.type&&(n.current=!0));let i=e.target;s.triggerRef.current?.contains(i)&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&n.current&&e.preventDefault()}})}),T=i.forwardRef((t,e)=>{let{__scopeDialog:s,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...u}=t,h=O(k,s),d=i.useRef(null),p=(0,n.s)(e,d);return(0,f.Oh)(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(c.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,g.jsx)(l.qW,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Z(h.open),...u,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(J,{titleId:h.titleId}),(0,g.jsx)(Y,{contentRef:d,descriptionId:h.descriptionId})]})]})}),W="DialogTitle",U=i.forwardRef((t,e)=>{let{__scopeDialog:s,...i}=t,r=O(W,s);return(0,g.jsx)(p.sG.h2,{id:r.titleId,...i,ref:e})});U.displayName=W;var B="DialogDescription",V=i.forwardRef((t,e)=>{let{__scopeDialog:s,...i}=t,r=O(B,s);return(0,g.jsx)(p.sG.p,{id:r.descriptionId,...i,ref:e})});V.displayName=B;var L="DialogClose",q=i.forwardRef((t,e)=>{let{__scopeDialog:s,...i}=t,n=O(L,s);return(0,g.jsx)(p.sG.button,{type:"button",...i,ref:e,onClick:(0,r.mK)(t.onClick,()=>n.onOpenChange(!1))})});function Z(t){return t?"open":"closed"}q.displayName=L;var H="DialogTitleWarning",[Q,z]=(0,o.q)(H,{contentName:k,titleName:W,docsSlug:"dialog"}),J=t=>{let{titleId:e}=t,s=z(H),r=`\`${s.contentName}\` requires a \`${s.titleName}\` for the component to be accessible for screen reader users.
2
3If you want to hide the \`${s.titleName}\`, you can wrap it with our VisuallyHidden component.
4
5For more information, see https://radix-ui.com/primitives/docs/components/${s.docsSlug}`;return i.useEffect(()=>{e&&document.getElementById(e)},[r,e]),null},Y=t=>{let{contentRef:e,descriptionId:s}=t,r=z("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return i.useEffect(()=>{let t=e.current?.getAttribute("aria-describedby");s&&t&&document.getElementById(s)},[n,e,s]),null},X=j,tt=E,te=N,ts=_,ti=G,tr=U,tn=V,to=q}}]);
6//# sourceMappingURL=1655-416cbca9afa55c6c.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.