The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
import"./DsnmJJEf.js";import{u as d,g as e,l as i,j as h,ar as M,p as T,c as b,f as P,d as c,a as j,s as C,e as z,h as U,x as W,r as q}from"./BKFspo1J.js";import{i as x}from"./COK9M2N0.js";import{d as F}from"./DwMHXN8q.js";import{p as g,r as G}from"./CARHnQ8P.js";import{a as w,e as B,b as l,d as rt,g as ot,c as H,m as R}from"./BoImjCaE.js";import{C as it,S as X,E as Y,w as J,a as V,o as nt}from"./R7BU62x2.js";const at=rt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),f=new it("Dialog.Root | AlertDialog.Root");class Z{static create(t){const s=f.getOr(null);return f.set(new Z(t,s))}opts;#t=h(null);get triggerNode(){return e(this.#t)}set triggerNode(t){i(this.#t,t,!0)}#e=h(null);get contentNode(){return e(this.#e)}set contentNode(t){i(this.#e,t,!0)}#s=h(null);get overlayNode(){return e(this.#s)}set overlayNode(t){i(this.#s,t,!0)}#r=h(null);get descriptionNode(){return e(this.#r)}set descriptionNode(t){i(this.#r,t,!0)}#o=h(void 0);get contentId(){return e(this.#o)}set contentId(t){i(this.#o,t,!0)}#i=h(void 0);get titleId(){return e(this.#i)}set titleId(t){i(this.#i,t,!0)}#n=h(void 0);get triggerId(){return e(this.#n)}set triggerId(t){i(this.#n,t,!0)}#a=h(void 0);get descriptionId(){return e(this.#a)}set descriptionId(t){i(this.#a,t,!0)}#d=h(null);get cancelNode(){return e(this.#d)}set cancelNode(t){i(this.#d,t,!0)}#h=h(0);get nestedOpenCount(){return e(this.#h)}set nestedOpenCount(t){i(this.#h,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,s){this.opts=t,this.parent=s,this.depth=s?s.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new V({ref:l(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new V({ref:l(()=>this.overlayNode),open:this.opts.open,enabled:!0}),J(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),nt(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=t=>at.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#c=d(()=>({"data-state":ot(this.opts.open.current)}));get sharedProps(){return e(this.#c)}set sharedProps(t){i(this.#c,t)}}class ${static create(t){return new $(t,f.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.attachment=w(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===X||t.key===Y)&&(t.preventDefault(),this.root.handleClose())}#t=d(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return e(this.#t)}set props(t){i(this.#t,t)}}class K{static create(t){return new K(t,f.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.root.titleId=this.opts.id.current,this.attachment=w(this.opts.ref),J.pre(()=>this.opts.id.current,r=>{this.root.titleId=r})}#t=d(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return e(this.#t)}set props(t){i(this.#t,t)}}class L{static create(t){return new L(t,f.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.root.descriptionId=this.opts.id.current,this.attachment=w(this.opts.ref,r=>{this.root.descriptionNode=r}),J.pre(()=>this.opts.id.current,r=>{this.root.descriptionId=r})}#t=d(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return e(this.#t)}set props(t){i(this.#t,t)}}class tt{static create(t){return new tt(t,f.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.attachment=w(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r?.id})}#t=d(()=>({open:this.root.opts.open.current}));get snippetProps(){return e(this.#t)}set snippetProps(t){i(this.#t,t)}#e=d(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":B(this.root.nestedOpenCount>0),"data-nested":B(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return e(this.#e)}set props(t){i(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class Q{static create(t){return new Q(t,f.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.attachment=w(this.opts.ref,r=>this.root.overlayNode=r)}#t=d(()=>({open:this.root.opts.open.current}));get snippetProps(){return e(this.#t)}set snippetProps(t){i(this.#t,t)}#e=d(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":B(this.root.nestedOpenCount>0),"data-nested":B(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return e(this.#e)}set props(t){i(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class et{static create(t){return new et(t,f.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.attachment=w(this.opts.ref,r=>this.root.cancelNode=r),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===X||t.key===Y)&&(t.preventDefault(),this.root.handleClose())}#t=d(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return e(this.#t)}set props(t){i(this.#t,t)}}var dt=z("<div><!></div>");function yt(I,t){const s=M();T(t,!0);let r=g(t,"id",19,()=>H(s)),v=g(t,"ref",15,null),N=g(t,"level",3,2),O=G(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const p=K.create({id:l(()=>r()),level:l(()=>N()),ref:l(()=>v(),o=>v(o))}),u=d(()=>R(O,p.props));var m=b(),_=P(m);{var A=o=>{var a=b(),D=P(a);C(D,()=>t.child,()=>({props:e(u)})),c(o,a)},n=o=>{var a=dt();F(a,()=>({...e(u)}));var D=U(a);C(D,()=>t.children??W),q(a),c(o,a)};x(_,o=>{t.child?o(A):o(n,!1)})}c(I,m),j()}var ht=z("<div><!></div>");function bt(I,t){const s=M();T(t,!0);let r=g(t,"id",19,()=>H(s)),v=g(t,"forceMount",3,!1),N=g(t,"ref",15,null),O=G(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const p=Q.create({id:l(()=>r()),ref:l(()=>N(),n=>N(n))}),u=d(()=>R(O,p.props));var m=b(),_=P(m);{var A=n=>{var o=b(),a=P(o);{var D=k=>{var y=b(),E=P(y);{let S=d(()=>({props:R(e(u)),...p.snippetProps}));C(E,()=>t.child,()=>e(S))}c(k,y)},st=k=>{var y=ht();F(y,S=>({...S}),[()=>R(e(u))]);var E=U(y);C(E,()=>t.children??W,()=>p.snippetProps),q(y),c(k,y)};x(a,k=>{t.child?k(D):k(st,!1)})}c(n,o)};x(_,n=>{(p.shouldRender||v())&&n(A)})}c(I,m),j()}var ct=z("<div><!></div>");function Pt(I,t){const s=M();T(t,!0);let r=g(t,"id",19,()=>H(s)),v=g(t,"ref",15,null),N=G(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const O=L.create({id:l(()=>r()),ref:l(()=>v(),n=>v(n))}),p=d(()=>R(N,O.props));var u=b(),m=P(u);{var _=n=>{var o=b(),a=P(o);C(a,()=>t.child,()=>({props:e(p)})),c(n,o)},A=n=>{var o=ct();F(o,()=>({...e(p)}));var a=U(o);C(a,()=>t.children??W),q(o),c(n,o)};x(m,n=>{t.child?n(_):n(A,!1)})}c(I,u),j()}export{et as A,Pt as D,Z as a,$ as b,tt as c,bt as d,yt as e};