@llmops/app 0.1.9 → 0.2.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/.vite/manifest.json +277 -230
  2. package/dist/assets/DialogTitle-UCL-cueg.js +1 -0
  3. package/dist/assets/Form-DCtoTR-p.js +1 -0
  4. package/dist/assets/{_environment-CkxirjzW.js → _environment-DK0RuLfe.js} +1 -1
  5. package/dist/assets/{_observability-MwEhol2I.js → _observability-BsCcZkih.js} +1 -1
  6. package/dist/assets/_settings-BBP4PpLX.js +1 -0
  7. package/dist/assets/{_tabs-DZJXVme1.js → _tabs-DhgOS8ht.js} +1 -1
  8. package/dist/assets/{_tabs-Cp28dL45.js → _tabs-DrzB5Z0A.js} +1 -1
  9. package/dist/assets/_variant-CnHZzp0Z.js +30 -0
  10. package/dist/assets/{_variants-uLlxRCRH.js → _variants-B1QyPFs9.js} +1 -1
  11. package/dist/assets/{area.css-BdbuGMXe.js → area.css-CLOfP5iE.js} +1 -1
  12. package/dist/assets/arrow-left-lxisLR8v.js +1 -0
  13. package/dist/assets/{auth.css-CAG7InQ9.js → auth.css-B5Lrnlbx.js} +1 -1
  14. package/dist/assets/{button-COPA9w9B.js → button-BOiGz4Ne.js} +1 -1
  15. package/dist/assets/check-CPNSKHk4.js +1 -0
  16. package/dist/assets/{chevron-right-DA_nZMZg.js → chevron-right-BtD8s6fj.js} +1 -1
  17. package/dist/assets/combobox-JWj_3Y0m.js +1 -0
  18. package/dist/assets/configs-CWaFij7a.js +1 -0
  19. package/dist/assets/{configs.css-BkC3WDBK.js → configs.css-C0mqmoVB.js} +1 -1
  20. package/dist/assets/{copy-bD0jehJd.js → copy-Dyj2k1Sq.js} +1 -1
  21. package/dist/assets/{costs-CeuqsnyH.js → costs-5Vkkcitr.js} +1 -1
  22. package/dist/assets/{environments-C0I0H3Bc.js → environments-BHZ_35T8.js} +1 -1
  23. package/dist/assets/{index-B96Witsg.js → index-Ba7KtRo4.js} +1 -1
  24. package/dist/assets/{index-m7RYyw0j.js → index-Bx54WVNn.js} +1 -1
  25. package/dist/assets/{index-BANa43YQ.js → index-CKUiONR1.js} +1 -1
  26. package/dist/assets/{index-Wp8mmf89.js → index-CmwqDWtN.js} +1 -1
  27. package/dist/assets/{index-aoCUQVuo.js → index-D7CjbFS0.js} +1 -1
  28. package/dist/assets/index-DWCIocaw.js +27 -0
  29. package/dist/assets/{index-DN0dE2ya.js → index-DdbFK5pg.js} +1 -1
  30. package/dist/assets/{index.esm-D5G8uBCj.js → index.esm-Cx4qB0Tk.js} +1 -1
  31. package/dist/assets/info-box.css-qBxEQPo-.js +1 -0
  32. package/dist/assets/{logo.css-BwVVLk2k.js → logo.css-CYdOI33_.js} +1 -1
  33. package/dist/assets/new-config-state.css-BQLyMmey.js +1 -0
  34. package/dist/assets/{observability.css-OC873IXi.js → observability.css-ScdW-rjk.js} +1 -1
  35. package/dist/assets/{overview-CrOGvUUg.js → overview-BhnAFrza.js} +1 -1
  36. package/dist/assets/plus-BwJa6tsj.js +1 -0
  37. package/dist/assets/popover-CWoAmEjp.js +1 -0
  38. package/dist/assets/{requests-BWGtoou4.js → requests-jUGszjv8.js} +1 -1
  39. package/dist/assets/{route-BNHdrEIb.js → route-BlPm4saZ.js} +1 -1
  40. package/dist/assets/{route-BMiMYu4K.js → route-D4DCefa9.js} +1 -1
  41. package/dist/assets/{route-Db2EO45K.js → route-DHkrULGT.js} +1 -1
  42. package/dist/assets/{route-BatOQCEh.js → route-mr2mV0Yu.js} +1 -1
  43. package/dist/assets/{route-DrCnwbdS.js → route-v7PO6657.js} +1 -1
  44. package/dist/assets/{secrets-lkl_o4qp.js → secrets-Bn-e_u13.js} +1 -1
  45. package/dist/assets/settings-DmnvYt0Y.js +1 -0
  46. package/dist/assets/settings-IRh_XlY0.js +1 -0
  47. package/dist/assets/{setup-VnNJ5WBN.js → setup-CIRVKcq-.js} +1 -1
  48. package/dist/assets/{signin-D6eE9EKy.js → signin-B_kUyGAp.js} +1 -1
  49. package/dist/assets/{table-y83GuIs7.js → table-49TSZbdr.js} +1 -1
  50. package/dist/assets/{tabs.css-h_BhSAAm.js → tabs.css-BIuQQZaU.js} +1 -1
  51. package/dist/assets/{targeting-2zYQqKgu.js → targeting-CbWcgm3w.js} +1 -1
  52. package/dist/assets/tooltip-CkWL0dMr.js +1 -0
  53. package/dist/assets/{update-or-create-name-Dg92lUPs.js → update-or-create-name-BGp6o60I.js} +1 -1
  54. package/dist/assets/{useAnalytics-DkioCGGz.js → useAnalytics-DiWjBhLw.js} +1 -1
  55. package/dist/assets/{useConfigList-BBoHxA9-.js → useConfigList-DuUKjCrF.js} +1 -1
  56. package/dist/assets/{useConfigVariants-Dj1ocpPl.js → useConfigVariants-ChEQ-YUl.js} +1 -1
  57. package/dist/assets/{useEnvironments-CWkT3iz3.js → useEnvironments-WGqvCy8N.js} +1 -1
  58. package/dist/assets/{useMutation-2HB4FMNG.js → useMutation-DflbfH1f.js} +1 -1
  59. package/dist/assets/usePopupAutoResize-RFCDgOFp.js +1 -0
  60. package/dist/assets/useProvidersList-DtWn_MJs.js +1 -0
  61. package/dist/assets/{useSetTargeting-D0k1ZIZX.js → useSetTargeting-DCF7D6n-.js} +1 -1
  62. package/dist/assets/{useTargetingRules-fCLrGf4R.js → useTargetingRules-1RFyDPYx.js} +1 -1
  63. package/dist/assets/useValueChanged-CIhVK-Fa.js +1 -0
  64. package/dist/assets/{user-profile-DkT8rbS_.js → user-profile-CbijLYlM.js} +1 -1
  65. package/dist/assets/{variants-DI8qsdBn.js → variants-Bgidd8eE.js} +1 -1
  66. package/dist/assets/variants.css-BI8mTlOx.js +1 -0
  67. package/dist/assets/{workspace-general-DCv9RpFL.js → workspace-general-CRDqD2_R.js} +1 -1
  68. package/dist/assets/workspace-providers-B6qtGU0q.css +1 -0
  69. package/dist/assets/workspace-providers-CBKGYtAx.js +2 -0
  70. package/dist/index.cjs +1726 -1143
  71. package/dist/index.d.cts +0 -6
  72. package/dist/index.d.mts +0 -6
  73. package/dist/index.mjs +1726 -1143
  74. package/package.json +3 -3
  75. package/dist/assets/Form-B1xsgHE8.js +0 -1
  76. package/dist/assets/_settings-Bj2dw2WK.js +0 -1
  77. package/dist/assets/_variant-CFqBIak5.js +0 -30
  78. package/dist/assets/check-DaVQvAJ5.js +0 -1
  79. package/dist/assets/combobox-DdxjaP6v.js +0 -1
  80. package/dist/assets/configs-CYxobqBL.js +0 -1
  81. package/dist/assets/index-CguUxiuR.js +0 -27
  82. package/dist/assets/info-box.css-mXAdqlKJ.js +0 -1
  83. package/dist/assets/new-config-state.css-jmWYQVi6.js +0 -1
  84. package/dist/assets/plus-CumUy3yH.js +0 -1
  85. package/dist/assets/popover--uFq8vB4.js +0 -1
  86. package/dist/assets/settings-COuGIYaK.js +0 -1
  87. package/dist/assets/settings-CzNdzDom.js +0 -1
  88. package/dist/assets/tooltip-BRQBPWhS.js +0 -1
  89. package/dist/assets/usePopupAutoResize-4I7LK-xA.js +0 -1
  90. package/dist/assets/useValueChanged-BKygARsi.js +0 -1
  91. package/dist/assets/variants.css-Bi8SGKtd.js +0 -1
@@ -1 +0,0 @@
1
- import"./index-CguUxiuR.js";var o="i5n19u0",a="i5n19u1";export{a,o as i};
@@ -1 +0,0 @@
1
- import"./index-CguUxiuR.js";var t="_1rf6rl0",a="_1rf6rl1",n="_1rf6rl2";export{a,n as b,t as n};
@@ -1 +0,0 @@
1
- import{s}from"./index-CguUxiuR.js";const e=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],t=s("plus",e);export{t as P};
@@ -1 +0,0 @@
1
- import{r,a5 as z,a6 as pe,a7 as de,_ as ge,a8 as F,a9 as fe,ac as Y,af as D,ag as me,bF as he,H as Q,bG as W,aa as Ce,bm as be,ad as ve,j as f,bH as Pe,aQ as Te,ai as Ee,aj as xe,aS as Re,X,an as Se,ab as Oe,al as ye,aR as Ie,am as re,bI as Me,ao as Fe,ap as ke,aq as je,ar as we,a$ as Ae,aT as He,bJ as Ne,at as Le,as as J,b0 as Be,$ as te,bK as Ge,bL as _e,bM as Ke,a3 as Ue,bN as $e,bO as oe,aY as qe,au as Ve,bP as ze,bQ as Ye,av as De,aw as Qe,V as We,ax as ae,ay as ie,aZ as Xe,a_ as Je,bR as Ze,bS as et,az as tt,aA as ot,aB as nt,aC as st,aW as rt,aX as at,bT as it,c as Z,h as ct}from"./index-CguUxiuR.js";import{u as lt}from"./usePopupAutoResize-4I7LK-xA.js";const ce=r.createContext(void 0);function q(n){const e=r.useContext(ce);if(e===void 0&&!n)throw new Error(z(47));return e}function ut(){return{...ve(),disabled:!1,modal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0}}const pt={...fe,disabled:F(n=>n.disabled),instantType:F(n=>n.instantType),openMethod:F(n=>n.openMethod),openChangeReason:F(n=>n.openChangeReason),modal:F(n=>n.modal),stickIfOpen:F(n=>n.stickIfOpen),titleElementId:F(n=>n.titleElementId),descriptionElementId:F(n=>n.descriptionElementId),openOnHover:F(n=>n.openOnHover),closeDelay:F(n=>n.closeDelay)};class ee extends pe{constructor(e){const t={...ut(),...e};t.open&&e?.mounted===void 0&&(t.mounted=!0),super(t,{popupRef:r.createRef(),backdropRef:r.createRef(),internalBackdropRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:r.createRef(),beforeContentFocusGuardRef:r.createRef(),stickIfOpenTimeout:new ge,triggerElements:new de},pt)}setOpen=(e,t)=>{const a=t.reason===Y,h=t.reason===D&&t.event.detail===0,i=!e&&(t.reason===me||t.reason==null);if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;const p={open:e,nativeEvent:t.event,reason:t.reason,nested:this.state.nested,triggerElement:t.trigger};this.state.floatingRootContext.context.events?.emit("openchange",p);const o=()=>{const l={open:e,openChangeReason:t.reason},s=t.trigger?.id??null;(s||e)&&(l.activeTriggerId=s,l.activeTriggerElement=t.trigger??null),this.update(l)};a?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(he,()=>{this.set("stickIfOpen",!1)}),Q.flushSync(o)):o(),h||i?this.set("instantType",h?"click":"dismiss"):t.reason===W?this.set("instantType","focus"):this.set("instantType",void 0)};static useStore(e,t){const a=Ce(()=>e??new ee(t)).current;return be(a.disposeEffect),a}disposeEffect=()=>this.context.stickIfOpenTimeout.disposeEffect()}function ne({props:n}){const{children:e,open:t,defaultOpen:a=!1,onOpenChange:h,onOpenChangeComplete:i,modal:p=!1,handle:P,triggerId:o,defaultTriggerId:l=null}=n,s=ee.useStore(P?.store,{open:t??a,modal:p,activeTriggerId:o!==void 0?o:l});s.useControlledProp("open",t,a),s.useControlledProp("activeTriggerId",o,l);const m=s.useState("open"),d=s.useState("positionerElement"),b=s.useState("payload"),C=s.useState("openChangeReason");s.useContextCallback("onOpenChange",h),s.useContextCallback("onOpenChangeComplete",i);const{openMethod:c,triggerProps:T,reset:w}=Te(m);Ee(s);const{forceUnmount:u}=xe(m,s,()=>{s.update({stickIfOpen:!0,openChangeReason:null}),w()});Re(m&&p===!0&&C!==Y&&c!=="touch",d),r.useEffect(()=>{m||s.context.stickIfOpenTimeout.clear()},[s,m]);const k=r.useCallback(L=>{const O=X(L);return O.preventUnmountOnClose=()=>{s.set("preventUnmountingOnClose",!0)},O},[s]),E=r.useCallback(()=>{s.setOpen(!1,k(Se))},[s,k]);r.useImperativeHandle(n.actionsRef,()=>({unmount:u,close:E}),[u,E]);const I=Oe({popupStore:s,onOpenChange:s.setOpen}),M=ye(I,{outsidePressEvent:{mouse:p==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),x=Ie(I),{getReferenceProps:A,getFloatingProps:j,getTriggerProps:S}=re([M,x]),B=r.useMemo(()=>A(T),[A,T]),H=r.useMemo(()=>S(T),[S,T]),G=r.useMemo(()=>j(),[j]);s.useSyncedValues({modal:p,openMethod:c,activeTriggerProps:B,inactiveTriggerProps:H,popupProps:G,floatingRootContext:I,nested:Me()!=null});const N=r.useMemo(()=>({store:s}),[s]);return f.jsx(ce.Provider,{value:N,children:typeof e=="function"?e({payload:b}):e})}function dt(n){return q(!0)?f.jsx(ne,{props:n}):f.jsx(Pe,{children:f.jsx(ne,{props:n})})}const gt=300,se=r.forwardRef(function(e,t){const{render:a,className:h,disabled:i=!1,nativeButton:p=!0,handle:P,payload:o,openOnHover:l=!1,delay:s=gt,closeDelay:m=0,id:d,...b}=e,C=q(!0),c=P?.store??C?.store;if(!c)throw new Error(z(74));const T=Fe(d),w=c.useState("isTriggerActive",T),u=c.useState("floatingRootContext"),k=c.useState("isOpenedByTrigger",T),E=r.useRef(null),{registerTrigger:I,isMountedByThisTrigger:M}=ke(T,E,c,{payload:o,disabled:i,openOnHover:l,closeDelay:m}),x=c.useState("openChangeReason"),A=c.useState("stickIfOpen"),j=c.useState("openMethod"),S=je(u,{enabled:u!=null&&l&&(j!=="touch"||x!==D),mouseOnly:!0,move:!1,handleClose:we(),restMs:s,delay:{close:m},triggerElementRef:E,isActiveTrigger:w}),B=Ae(u,{enabled:u!=null,stickIfOpen:A}),H=re([B]),G=c.useState("triggerProps",M),N=r.useMemo(()=>({disabled:i,open:k}),[i,k]),{getButtonProps:L,buttonRef:O}=He({disabled:i,native:p}),K=r.useMemo(()=>({open(g){return g&&x===D?Ne.open(g):Le.open(g)}}),[x]),R=J("button",e,{state:N,ref:[O,t,I,E],props:[H.getReferenceProps(),S,G,{[Be]:"",id:T},b,L],stateAttributesMapping:K}),_=r.useRef(null),U=te(g=>{Q.flushSync(()=>{c.setOpen(!1,X(W,g.nativeEvent,g.currentTarget))}),Ge(_.current)?.focus()}),$=te(g=>{const v=c.select("positionerElement");if(v&&_e(g,v))c.context.beforeContentFocusGuardRef.current?.focus();else{Q.flushSync(()=>{c.setOpen(!1,X(W,g.nativeEvent,g.currentTarget))});let y=Ke(E.current);for(;y!==null&&Ue(v,y)||y?.hasAttribute("aria-hidden");){const V=y;if(y=$e(y),y===V)break}y?.focus()}});return w?f.jsxs(r.Fragment,{children:[f.jsx(oe,{ref:_,onFocus:U}),f.jsx(r.Fragment,{children:R},T),f.jsx(oe,{ref:c.context.triggerFocusTargetRef,onFocus:$})]}):f.jsx(r.Fragment,{children:R},T)}),le=r.createContext(void 0);function ft(){const n=r.useContext(le);if(n===void 0)throw new Error(z(45));return n}const mt=r.forwardRef(function(e,t){const{keepMounted:a=!1,...h}=e,{store:i}=q();return i.useState("mounted")||a?f.jsx(le.Provider,{value:a,children:f.jsx(qe,{ref:t,...h,renderGuards:!1})}):null}),ue=r.createContext(void 0);function ht(){const n=r.useContext(ue);if(!n)throw new Error(z(46));return n}const Ct=r.forwardRef(function(e,t){const{render:a,className:h,anchor:i,positionMethod:p="absolute",side:P="bottom",align:o="center",sideOffset:l=0,alignOffset:s=0,collisionBoundary:m="clipping-ancestors",collisionPadding:d=5,arrowPadding:b=5,sticky:C=!1,disableAnchorTracking:c=!1,collisionAvoidance:T=Ve,...w}=e,{store:u}=q(),k=ft(),E=ze(),I=u.useState("floatingRootContext"),M=u.useState("mounted"),x=u.useState("open"),A=u.useState("openChangeReason"),j=u.useState("activeTriggerElement"),S=u.useState("modal"),B=u.useState("positionerElement"),H=u.useState("instantType"),G=u.useState("transitionStatus"),N=r.useRef(null),L=Ye(B,!1,!1),O=De({anchor:i,floatingRootContext:I,positionMethod:p,mounted:M,side:P,sideOffset:l,align:o,alignOffset:s,arrowPadding:b,collisionBoundary:m,collisionPadding:d,sticky:C,disableAnchorTracking:c,keepMounted:k,nodeId:E,collisionAvoidance:T,adaptiveOrigin:Qe}),K=r.useMemo(()=>{const v={};return x||(v.pointerEvents="none"),{role:"presentation",hidden:!M,style:{...O.positionerStyles,...v}}},[x,M,O.positionerStyles]),R=r.useMemo(()=>({props:K,...O}),[K,O]),_=I?.select("domReferenceElement");We(()=>{const v=_,y=N.current;if(v&&(N.current=v),y&&v&&v!==y){u.set("instantType",void 0);const V=new AbortController;return L(()=>{u.set("instantType","trigger-change")},V.signal),()=>{V.abort()}}},[_,L,u]);const U=r.useMemo(()=>({open:x,side:R.side,align:R.align,anchorHidden:R.anchorHidden,instant:H}),[x,R.side,R.align,R.anchorHidden,H]),$=r.useCallback(v=>{u.set("positionerElement",v)},[u]),g=J("div",e,{state:U,props:[R.props,ae(G),w],ref:[t,$],stateAttributesMapping:ie});return f.jsxs(ue.Provider,{value:R,children:[M&&S===!0&&A!==Y&&f.jsx(Xe,{ref:u.context.internalBackdropRef,inert:Je(!x),cutout:j}),f.jsx(Ze,{id:E,children:g})]})}),bt={...ie,...st},vt=r.forwardRef(function(e,t){const{className:a,render:h,initialFocus:i,finalFocus:p,...P}=e,{store:o}=q(),l=ht(),s=et()!=null,m=tt(),d=o.useState("open"),b=o.useState("openMethod"),C=o.useState("instantType"),c=o.useState("transitionStatus"),T=o.useState("popupProps"),w=o.useState("titleElementId"),u=o.useState("descriptionElementId"),k=o.useState("modal"),E=o.useState("mounted"),I=o.useState("openChangeReason"),M=o.useState("popupElement"),x=o.useState("payload"),A=o.useState("positionerElement"),j=o.useState("activeTriggerElement"),S=o.useState("floatingRootContext");ot({open:d,ref:o.context.popupRef,onComplete(){d&&o.context.onOpenChangeComplete?.(!0)}});const B=o.useState("disabled"),H=o.useState("openOnHover"),G=o.useState("closeDelay");nt(S,{enabled:H&&!B,closeDelay:G});function N(g){return g==="touch"?o.context.popupRef.current:!0}const L=i===void 0?N:i,O=r.useMemo(()=>({open:d,side:l.side,align:l.align,instant:C,transitionStatus:c}),[d,l.side,l.align,C,c]),K=r.useCallback(g=>{o.set("popupElement",g)},[o]);function R(){S.context.events.emit("measure-layout")}function _(g,v){S.context.events.emit("measure-layout-complete",{previousDimensions:g,nextDimensions:v})}const U=r.useCallback(()=>o.context.triggerElements.size>1,[o]);lt({popupElement:M,positionerElement:A,mounted:E,content:x,enabled:U,onMeasureLayout:R,onMeasureLayoutComplete:_,side:l.side,direction:m});const $=J("div",e,{state:O,ref:[t,o.context.popupRef,K],props:[T,{"aria-labelledby":w,"aria-describedby":u,onKeyDown(g){s&&rt.has(g.key)&&g.stopPropagation()}},ae(c),P],stateAttributesMapping:bt});return f.jsx(at,{context:S,openInteractionType:b,modal:k==="trap-focus",disabled:!E||I===Y,initialFocus:L,returnFocus:p,restoreFocus:"popup",previousFocusableElement:it(j)?j:void 0,nextFocusableElement:o.context.triggerFocusTargetRef,beforeContentFocusGuardRef:o.context.beforeContentFocusGuardRef,children:$})});var Pt="_1ffqjcq4",Tt="_1ffqjcq5";function Rt(n){const e=Z.c(9),{children:t,open:a,defaultOpen:h,onOpenChange:i,modal:p,preventCloseOnNestedPortals:P}=n,o=p===void 0?!1:p,l=P===void 0?!0:P;let s;e[0]!==i||e[1]!==l?(s=(b,C)=>{if(!b&&l&&C.reason==="outside-press"&&C.event){const c=C.event.target;if(c?.closest("[data-open]")||c?.closest('[role="listbox"]')||c?.closest('[role="option"]')){C.cancel?.();return}}i?.(b)},e[0]=i,e[1]=l,e[2]=s):s=e[2];const m=s;let d;return e[3]!==t||e[4]!==h||e[5]!==m||e[6]!==o||e[7]!==a?(d=f.jsx(dt,{open:a,defaultOpen:h,onOpenChange:m,modal:o,children:t}),e[3]=t,e[4]=h,e[5]=m,e[6]=o,e[7]=a,e[8]=d):d=e[8],d}function St(n){const e=Z.c(6),{children:t,className:a,asChild:h}=n;if(h&&r.isValidElement(t)){let p;return e[0]!==t||e[1]!==a?(p=f.jsx(se,{render:t,className:a,children:t}),e[0]=t,e[1]=a,e[2]=p):p=e[2],p}let i;return e[3]!==t||e[4]!==a?(i=f.jsx(se,{className:a,children:t}),e[3]=t,e[4]=a,e[5]=i):i=e[5],i}function Ot(n){const e=Z.c(11),{children:t,className:a,sideOffset:h,align:i,side:p,positionMethod:P}=n,o=h===void 0?8:h,l=i===void 0?"center":i,s=p===void 0?"bottom":p,m=P===void 0?"absolute":P;let d;e[0]!==a?(d=ct(Tt,a),e[0]=a,e[1]=d):d=e[1];let b;e[2]!==t||e[3]!==d?(b=f.jsx(vt,{className:d,children:t}),e[2]=t,e[3]=d,e[4]=b):b=e[4];let C;return e[5]!==l||e[6]!==m||e[7]!==s||e[8]!==o||e[9]!==b?(C=f.jsx(mt,{children:f.jsx(Ct,{className:Pt,sideOffset:o,align:l,side:s,positionMethod:m,children:b})}),e[5]=l,e[6]=m,e[7]=s,e[8]=o,e[9]=b,e[10]=C):C=e[10],C}export{Rt as P,St as a,Ot as b};
@@ -1 +0,0 @@
1
- import{c as p,m as j,o as D,T as f,p as k,g as w,r as N,j as t}from"./index-CguUxiuR.js";import{u as y}from"./useMutation-2HB4FMNG.js";import{g as b}from"./useEnvironments-CWkT3iz3.js";import{T}from"./tooltip-BRQBPWhS.js";import{F as E,A as I,D as C,a as P,b as S,c as B,d as F,e as R,f as u}from"./Form-B1xsgHE8.js";/* empty css */import"./usePopupAutoResize-4I7LK-xA.js";import"./useValueChanged-BKygARsi.js";const _=()=>{const e=p.c(2),n=j();let s;return e[0]!==n?(s={mutationFn:A,onSuccess:()=>{n.invalidateQueries({queryKey:b()})}},e[0]=n,e[1]=s):s=e[1],y(s)};async function A(e){const s=await(await D.v1.environments[":id"].$delete({param:{id:e}})).json();return"data"in s?s.data:void 0}var Q="xvtkwc0",$="xvtkwc1",q="xvtkwc2",K="xvtkwc3",M="xvtkwc4",Z="xvtkwc5",O="xvtkwc6",Y="xvtkwc7",z="xvtkwc8",g="xvtkwc9",G="xvtkwca",H="xvtkwcb",J="xvtkwcc",L="xvtkwcd",U="xvtkwce",V="xvtkwcf",W="xvtkwcg";function ce(){const e=p.c(11),{environment:n}=f.useParams(),{data:s}=k(n),m=w(),d=_(),[r,x]=N.useState(!1),a=s?.isProd??!1;let i;e[0]!==d||e[1]!==n||e[2]!==a||e[3]!==m?(i=async()=>{if(!a){x(!0);try{await d.mutateAsync(n),m({to:"/environments"})}catch(h){console.error("Failed to delete environment:",h),x(!1)}}},e[0]=d,e[1]=n,e[2]=a,e[3]=m,e[4]=i):i=e[4];const v=i;let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("h3",{className:K,children:"Danger Zone"}),e[5]=o):o=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsxs("div",{className:O,children:[t.jsx("span",{className:Y,children:"Delete this environment"}),t.jsx("span",{className:z,children:"Once you delete an environment, there is no going back. Please be certain."})]}),e[6]=c):c=e[6];let l;return e[7]!==v||e[8]!==r||e[9]!==a?(l=t.jsx("div",{className:Q,children:t.jsx(E,{className:$,children:t.jsxs("div",{className:q,children:[o,t.jsx("div",{className:M,children:t.jsxs("div",{className:Z,children:[c,a?t.jsx(T,{content:"You can't delete the Production environment.",children:t.jsx("span",{children:t.jsx("button",{className:g,disabled:!0,children:"Delete Environment"})})}):t.jsxs(I,{children:[t.jsx(C,{className:g,children:"Delete Environment"}),t.jsxs(P,{children:[t.jsx(S,{className:G}),t.jsxs(B,{className:H,children:[t.jsx(F,{className:J,children:"Delete environment?"}),t.jsx(R,{className:L,children:"This action cannot be undone. This will permanently delete the environment and all associated secrets."}),t.jsxs("div",{className:U,children:[t.jsx(u,{className:V,children:"Cancel"}),t.jsx(u,{className:W,onClick:v,disabled:r,children:r?"Deleting...":"Delete"})]})]})]})]})]})})]})})}),e[7]=v,e[8]=r,e[9]=a,e[10]=l):l=e[10],l}export{ce as component};
@@ -1 +0,0 @@
1
- import{c as v,m as j,o as N,aP as y,g as _,r as C,j as s}from"./index-CguUxiuR.js";import{u as S}from"./useMutation-2HB4FMNG.js";import{q as I}from"./useConfigList-BBoHxA9-.js";import{D as T,b as F,d as P,e as R,f as p,F as k,A as w,a as A,c as B}from"./Form-B1xsgHE8.js";/* empty css */import"./useValueChanged-BKygARsi.js";const q=()=>{const e=v.c(2),t=j();let a;return e[0]!==t?(a={mutationFn:E,onSuccess:()=>{t.invalidateQueries({queryKey:I})}},e[0]=t,e[1]=a):a=e[1],S(a)};async function E(e){const a=await(await N.v1.configs[":id"].$delete({param:{id:e}})).json();return"data"in a?a.data:void 0}var $="b432xx0",M="b432xx1",Q="b432xx2",Z="b432xx3",K="b432xx4",O="b432xx5",z="b432xx6",G="b432xx7",H="b432xx8",J="b432xx9",L="b432xxa",U="b432xxb",V="b432xxc",W="b432xxd",X="b432xxe",Y="b432xxf",ee="b432xxg";function re(){const e=v.c(15),{id:t}=y.useParams(),a=_(),f=q(),[n,b]=C.useState(!1);let i;e[0]!==t||e[1]!==f||e[2]!==a?(i=async()=>{b(!0);try{await f.mutateAsync(t),a({to:"/configs"})}catch(D){console.error("Failed to delete config:",D),b(!1)}},e[0]=t,e[1]=f,e[2]=a,e[3]=i):i=e[3];const u=i;let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("h3",{className:Z,children:"Danger Zone"}),e[4]=o):o=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs("div",{className:z,children:[s.jsx("span",{className:G,children:"Delete this config"}),s.jsx("span",{className:H,children:"Once you delete a config, there is no going back. Please be certain."})]}),e[5]=l):l=e[5];let r;e[6]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(T,{className:J,children:"Delete Config"}),e[6]=r):r=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(F,{className:L}),e[7]=c):c=e[7];let m,x;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(P,{className:V,children:"Delete config?"}),x=s.jsx(R,{className:W,children:"This action cannot be undone. This will permanently delete the config and all associated variants and targeting rules."}),e[8]=m,e[9]=x):(m=e[8],x=e[9]);let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(p,{className:Y,children:"Cancel"}),e[10]=d):d=e[10];const h=n?"Deleting...":"Delete";let g;return e[11]!==u||e[12]!==n||e[13]!==h?(g=s.jsx("div",{className:$,children:s.jsx(k,{className:M,children:s.jsxs("div",{className:Q,children:[o,s.jsx("div",{className:K,children:s.jsxs("div",{className:O,children:[l,s.jsxs(w,{children:[r,s.jsxs(A,{children:[c,s.jsxs(B,{className:U,children:[m,x,s.jsxs("div",{className:X,children:[d,s.jsx(p,{className:ee,onClick:u,disabled:n,children:h})]})]})]})]})]})})]})})}),e[11]=u,e[12]=n,e[13]=h,e[14]=g):g=e[14],g}export{re as component};
@@ -1 +0,0 @@
1
- import{r,V as D,W as ie,X as Y,Y as K,Z as le,j as w,_ as ue,$ as G,a0 as ce,a1 as pe,a2 as de,a3 as fe,a4 as ge,H as J,a5 as V,a6 as me,a7 as he,a8 as A,a9 as ye,aa as ve,ab as xe,ac as Z,ad as Ce,ae as Se,af as Pe,ag as Re,ah as Te,ai as be,aj as Ie,ak as we,al as Me,am as Ee,an as Oe,ao as Ae,ap as De,aq as ke,ar as je,as as U,at as He,au as Le,av as Ne,aw as Fe,ax as Q,ay as W,az as Ve,aA as Ue,aB as _e,aC as Be,c as ee,h as Xe}from"./index-CguUxiuR.js";import{u as Ye}from"./usePopupAutoResize-4I7LK-xA.js";const te=r.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new ue,currentIdRef:{current:null},currentContextRef:{current:null}});function We(s){const{children:e,delay:t,timeoutMs:o=0}=s,d=r.useRef(t),l=r.useRef(t),a=r.useRef(null),i=r.useRef(null),c=le();return w.jsx(te.Provider,{value:r.useMemo(()=>({hasProvider:!0,delayRef:d,initialDelayRef:l,currentIdRef:a,timeoutMs:o,currentContextRef:i,timeout:c}),[o,c]),children:e})}function ze(s,e={open:!1}){const t="rootStore"in s?s.rootStore:s,o=t.useState("floatingId"),{enabled:d=!0,open:l}=e,a=r.useContext(te),{currentIdRef:i,delayRef:c,timeoutMs:u,initialDelayRef:f,currentContextRef:p,hasProvider:g,timeout:n}=a,[x,y]=r.useState(!1);return D(()=>{function v(){y(!1),p.current?.setIsInstantPhase(!1),i.current=null,p.current=null,c.current=f.current}if(d&&i.current&&!l&&i.current===o){if(y(!1),u){const m=o;return n.start(u,()=>{t.select("open")||i.current&&i.current!==m||v()}),()=>{n.clear()}}v()}},[d,l,o,i,c,u,f,p,n,t]),D(()=>{if(!d||!l)return;const v=p.current,m=i.current;n.clear(),p.current={onOpenChange:t.setOpen,setIsInstantPhase:y},i.current=o,c.current={open:0,close:ie(f.current,"close")},m!==null&&m!==o?(y(!0),v?.setIsInstantPhase(!0),v?.onOpenChange(!1,Y(K))):(y(!1),v?.setIsInstantPhase(!1))},[d,l,o,t,i,c,u,f,p,n]),D(()=>()=>{p.current=null},[p]),r.useMemo(()=>({hasProvider:g,delayRef:c,isInstantPhase:x}),[g,c,x])}function $e(s,e){let t=null,o=null,d=!1;return{contextElement:s||void 0,getBoundingClientRect(){const l=s?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},a=e.axis==="x"||e.axis==="both",i=e.axis==="y"||e.axis==="both",c=["mouseenter","mousemove"].includes(e.dataRef.current.openEvent?.type||"")&&e.pointerType!=="touch";let u=l.width,f=l.height,p=l.x,g=l.y;return t==null&&e.x&&a&&(t=l.x-e.x),o==null&&e.y&&i&&(o=l.y-e.y),p-=t||0,g-=o||0,u=0,f=0,!d||c?(u=e.axis==="y"?l.width:0,f=e.axis==="x"?l.height:0,p=a&&e.x!=null?e.x:p,g=i&&e.y!=null?e.y:g):d&&!c&&(f=e.axis==="x"?l.height:f,u=e.axis==="y"?l.width:u),d=!0,{width:u,height:f,x:p,y:g,top:g,right:p+u,bottom:g+f,left:p}}}}function q(s){return s!=null&&s.clientX!=null}function Ge(s,e={}){const t="rootStore"in s?s.rootStore:s,o=t.useState("open"),d=t.useState("floatingElement"),l=t.useState("domReferenceElement"),a=t.context.dataRef,{enabled:i=!0,axis:c="both",x:u=null,y:f=null}=e,p=r.useRef(!1),g=r.useRef(null),[n,x]=r.useState(),[y,v]=r.useState([]),m=G((C,b)=>{p.current||a.current.openEvent&&!q(a.current.openEvent)||t.set("positionReference",$e(l,{x:C,y:b,axis:c,dataRef:a,pointerType:n}))}),h=G(C=>{u!=null||f!=null||(o?g.current||v([]):m(C.clientX,C.clientY))}),P=ce(n)?d:o,S=r.useCallback(()=>{if(!P||!i||u!=null||f!=null)return;const C=pe(d);function b(I){const M=de(I);fe(d,M)?(C.removeEventListener("mousemove",b),g.current=null):m(I.clientX,I.clientY)}if(!a.current.openEvent||q(a.current.openEvent)){C.addEventListener("mousemove",b);const I=()=>{C.removeEventListener("mousemove",b),g.current=null};return g.current=I,I}t.set("positionReference",l)},[P,i,u,f,d,a,l,t,m]);r.useEffect(()=>S(),[S,y]),r.useEffect(()=>{i&&!d&&(p.current=!1)},[i,d]),r.useEffect(()=>{!i&&o&&(p.current=!0)},[i,o]),D(()=>{i&&(u!=null||f!=null)&&(p.current=!1,m(u,f))},[i,u,f,m]);const T=r.useMemo(()=>{function C(b){x(b.pointerType)}return{onPointerDown:C,onPointerEnter:C,onMouseMove:h,onMouseEnter:h}},[h]);return r.useMemo(()=>i?{reference:T}:{},[i,T])}const Ze=r.forwardRef(function(e,t){const{children:o,container:d,className:l,render:a,...i}=e,{portalNode:c,portalSubtree:u}=ge({container:d,ref:t,componentProps:e,elementProps:i});return!u&&!c?null:w.jsxs(r.Fragment,{children:[u,c&&J.createPortal(o,c)]})}),ne=r.createContext(void 0);function N(s){const e=r.useContext(ne);if(e===void 0&&!s)throw new Error(V(72));return e}const qe={...ye,disabled:A(s=>s.disabled),instantType:A(s=>s.instantType),isInstantPhase:A(s=>s.isInstantPhase),trackCursorAxis:A(s=>s.trackCursorAxis),disableHoverablePopup:A(s=>s.disableHoverablePopup),lastOpenChangeReason:A(s=>s.openChangeReason),closeDelay:A(s=>s.closeDelay)};class z extends me{constructor(e){super({...Ke(),...e},{popupRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new he},qe)}setOpen=(e,t)=>{const o=t.reason,d=o===Z,l=e&&o===Se,a=!e&&(o===Pe||o===Re);if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;const i=()=>{const c={open:e,openChangeReason:o};l?c.instantType="focus":a?c.instantType="dismiss":o===Z&&(c.instantType=void 0);const u=t.trigger?.id??null;(u||e)&&(c.activeTriggerId=u,c.activeTriggerElement=t.trigger??null),this.update(c)};d?J.flushSync(i):i()};static useStore(e,t){const o=ve(()=>e??new z(t)).current,d=xe({popupStore:o,onOpenChange:o.setOpen});return o.state.floatingRootContext=d,o}}function Ke(){return{...Ce(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0}}function Je(s){const{disabled:e=!1,defaultOpen:t=!1,open:o,disableHoverablePopup:d=!1,trackCursorAxis:l="none",actionsRef:a,onOpenChange:i,onOpenChangeComplete:c,handle:u,triggerId:f,defaultTriggerId:p=null,children:g}=s,n=z.useStore(u?.store,{open:o??t,activeTriggerId:f!==void 0?f:p});n.useControlledProp("open",o,t),n.useControlledProp("activeTriggerId",f,p),n.useContextCallback("onOpenChange",i),n.useContextCallback("onOpenChangeComplete",c);const x=n.useState("open"),y=n.useState("activeTriggerId"),v=n.useState("payload");n.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:d});const m=!e&&x;D(()=>{x&&e&&n.setOpen(!1,Y(Te))},[x,e,n]),n.useSyncedValue("disabled",e),be(n);const{forceUnmount:h,transitionStatus:P}=Ie(m,n),S=n.useState("isInstantPhase"),T=n.useState("instantType"),C=n.useState("lastOpenChangeReason"),b=r.useRef(null);D(()=>{P==="ending"&&C===K||P!=="ending"&&S?(T!=="delay"&&(b.current=T),n.set("instantType","delay")):b.current!==null&&(n.set("instantType",b.current),b.current=null)},[P,S,C,T,n]),D(()=>{m&&y==null&&n.set("payload",void 0)},[n,y,m]);const I=r.useCallback(()=>{n.setOpen(!1,Qe(n,Oe))},[n]);r.useImperativeHandle(a,()=>({unmount:h,close:I}),[h,I]);const M=n.useState("floatingRootContext"),E=we(M,{enabled:!e}),R=Me(M,{enabled:!e,referencePress:!0}),L=Ge(M,{enabled:!e&&l!=="none",axis:l==="none"?void 0:l}),{getReferenceProps:O,getFloatingProps:k,getTriggerProps:j}=Ee([E,R,L]),H=r.useMemo(()=>O(),[O]),_=r.useMemo(()=>j(),[j]),$=r.useMemo(()=>k(),[k]);return n.useSyncedValues({floatingRootContext:M,activeTriggerProps:H,inactiveTriggerProps:_,popupProps:$}),w.jsx(ne.Provider,{value:n,children:typeof g=="function"?g({payload:v}):g})}function Qe(s,e){const t=Y(e);return t.preventUnmountOnClose=()=>{s.set("preventUnmountingOnClose",!0)},t}const oe=r.createContext(void 0);function et(){return r.useContext(oe)}const tt=600,nt=r.forwardRef(function(e,t){const{className:o,render:d,handle:l,payload:a,disabled:i,delay:c,closeDelay:u,id:f,...p}=e,g=N(!0),n=l?.store??g;if(!n)throw new Error(V(82));const x=Ae(f),y=n.useState("isTriggerActive",x),v=n.useState("floatingRootContext"),m=n.useState("isOpenedByTrigger",x),h=r.useRef(null),P=c??tt,S=u??0,{registerTrigger:T,isMountedByThisTrigger:C}=De(x,h,n,{payload:a,closeDelay:S}),b=et(),{delayRef:I,isInstantPhase:M,hasProvider:E}=ze(v,{open:m});n.useSyncedValue("isInstantPhase",M);const R=n.useState("disabled"),L=i??R,O=n.useState("trackCursorAxis"),k=n.useState("disableHoverablePopup"),j=ke(v,{enabled:!L,mouseOnly:!0,move:!1,handleClose:!k&&O!=="both"?je():null,restMs(){const B=b?.delay,F=typeof I.current=="object"?I.current.open:void 0;let X=P;return E&&(F!==0?X=c??B??P:X=0),X},delay(){const B=typeof I.current=="object"?I.current.close:void 0;let F=S;return u==null&&E&&(F=B),{close:F}},triggerElementRef:h,isActiveTrigger:y}),H=r.useMemo(()=>({open:m}),[m]),_=n.useState("triggerProps",C);return U("button",e,{state:H,ref:[t,T,h],props:[j,_,{id:x},p],stateAttributesMapping:He})}),se=r.createContext(void 0);function ot(){const s=r.useContext(se);if(s===void 0)throw new Error(V(70));return s}const st=r.forwardRef(function(e,t){const{keepMounted:o=!1,...d}=e;return N().useState("mounted")||o?w.jsx(se.Provider,{value:o,children:w.jsx(Ze,{ref:t,...d})}):null}),re=r.createContext(void 0);function ae(){const s=r.useContext(re);if(s===void 0)throw new Error(V(71));return s}const rt=r.forwardRef(function(e,t){const{render:o,className:d,anchor:l,positionMethod:a="absolute",side:i="top",align:c="center",sideOffset:u=0,alignOffset:f=0,collisionBoundary:p="clipping-ancestors",collisionPadding:g=5,arrowPadding:n=5,sticky:x=!1,disableAnchorTracking:y=!1,collisionAvoidance:v=Le,...m}=e,h=N(),P=ot(),S=h.useState("open"),T=h.useState("mounted"),C=h.useState("trackCursorAxis"),b=h.useState("disableHoverablePopup"),I=h.useState("floatingRootContext"),M=h.useState("instantType"),E=h.useState("transitionStatus"),R=Ne({anchor:l,positionMethod:a,floatingRootContext:I,mounted:T,side:i,sideOffset:u,align:c,alignOffset:f,collisionBoundary:p,collisionPadding:g,sticky:x,arrowPadding:n,disableAnchorTracking:y,keepMounted:P,collisionAvoidance:v,adaptiveOrigin:Fe}),L=r.useMemo(()=>{const H={};return(!S||C==="both"||b)&&(H.pointerEvents="none"),{role:"presentation",hidden:!T,style:{...R.positionerStyles,...H}}},[S,C,b,T,R.positionerStyles]),O=r.useMemo(()=>({open:S,side:R.side,align:R.align,anchorHidden:R.anchorHidden,instant:C!=="none"?"tracking-cursor":M}),[S,R.side,R.align,R.anchorHidden,C,M]),k=r.useMemo(()=>({...O,arrowRef:R.arrowRef,arrowStyles:R.arrowStyles,arrowUncentered:R.arrowUncentered}),[O,R.arrowRef,R.arrowStyles,R.arrowUncentered]),j=U("div",e,{state:O,props:[L,Q(E),m],ref:[t,h.useStateSetter("positionerElement")],stateAttributesMapping:W});return w.jsx(re.Provider,{value:k,children:j})}),at={...W,...Be},it=r.forwardRef(function(e,t){const{className:o,render:d,...l}=e,a=N(),{side:i,align:c}=ae(),u=a.useState("open"),f=a.useState("mounted"),p=a.useState("instantType"),g=a.useState("transitionStatus"),n=a.useState("popupProps"),x=a.useState("payload"),y=a.useState("popupElement"),v=a.useState("positionerElement"),m=a.useState("floatingRootContext"),h=Ve();Ue({open:u,ref:a.context.popupRef,onComplete(){u&&a.context.onOpenChangeComplete?.(!0)}});function P(){m.context.events.emit("measure-layout")}function S(E,R){m.context.events.emit("measure-layout-complete",{previousDimensions:E,nextDimensions:R})}const T=r.useCallback(()=>a.context.triggerElements.size>1,[a]);Ye({popupElement:y,positionerElement:v,mounted:f,content:x,enabled:T,onMeasureLayout:P,onMeasureLayoutComplete:S,side:i,direction:h});const C=a.useState("disabled"),b=a.useState("closeDelay");_e(m,{enabled:!C,closeDelay:b});const I=r.useMemo(()=>({open:u,side:i,align:c,instant:p,transitionStatus:g}),[u,i,c,p,g]);return U("div",e,{state:I,ref:[t,a.context.popupRef,a.useStateSetter("popupElement")],props:[n,Q(g),l],stateAttributesMapping:at})}),lt=r.forwardRef(function(e,t){const{className:o,render:d,...l}=e,i=N().useState("instantType"),{open:c,arrowRef:u,side:f,align:p,arrowUncentered:g,arrowStyles:n}=ae(),x=r.useMemo(()=>({open:c,side:f,align:p,uncentered:g,instant:i}),[c,f,p,g,i]);return U("div",e,{state:x,ref:[t,u],props:[{style:n,"aria-hidden":!0},l],stateAttributesMapping:W})}),ut=function(e){const{delay:t,closeDelay:o,timeout:d=400}=e,l=r.useMemo(()=>({delay:t,closeDelay:o}),[t,o]),a=r.useMemo(()=>({open:t,close:o}),[t,o]);return w.jsx(oe.Provider,{value:l,children:w.jsx(We,{delay:a,timeoutMs:d,children:e.children})})};var ct="_1v73km82",pt="_1v73km83",dt="_1v73km84",ft="_1v73km85";function gt(s){const e=ee.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=w.jsx("path",{d:"M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",className:ft}),e[0]=t):t=e[0];let o;return e[1]!==s?(o=w.jsx("svg",{width:"20",height:"10",viewBox:"0 0 20 10",fill:"none",...s,children:t}),e[1]=s,e[2]=o):o=e[2],o}function yt(s){const e=ee.c(20),{content:t,children:o,side:d,align:l,sideOffset:a,delay:i,closeDelay:c,className:u}=s,f=d===void 0?"top":d,p=l===void 0?"center":l,g=a===void 0?8:a,n=i===void 0?400:i,x=c===void 0?0:c;let y;e[0]!==o?(y=w.jsx(nt,{render:o}),e[0]=o,e[1]=y):y=e[1];let v;e[2]!==u?(v=Xe(pt,u),e[2]=u,e[3]=v):v=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=w.jsx(lt,{className:dt,children:w.jsx(gt,{})}),e[4]=m):m=e[4];let h;e[5]!==t||e[6]!==v?(h=w.jsxs(it,{className:v,children:[m,t]}),e[5]=t,e[6]=v,e[7]=h):h=e[7];let P;e[8]!==p||e[9]!==f||e[10]!==g||e[11]!==h?(P=w.jsx(st,{children:w.jsx(rt,{className:ct,side:f,align:p,sideOffset:g,children:h})}),e[8]=p,e[9]=f,e[10]=g,e[11]=h,e[12]=P):P=e[12];let S;e[13]!==P||e[14]!==y?(S=w.jsxs(Je,{children:[y,P]}),e[13]=P,e[14]=y,e[15]=S):S=e[15];let T;return e[16]!==x||e[17]!==n||e[18]!==S?(T=w.jsx(ut,{delay:n,closeDelay:x,children:S}),e[16]=x,e[17]=n,e[18]=S,e[19]=T):T=e[19],T}export{yt as T};
@@ -1 +0,0 @@
1
- import{bU as O,bT as R,bV as A,r as g,bQ as B,bl as T,$ as C,b1 as k,V as D}from"./index-CguUxiuR.js";function F(o){const e=O(o);let t=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const u=R(o),c=u?o.offsetWidth:t,d=u?o.offsetHeight:i;return(A(t)!==c||A(i)!==d)&&(t=c,i=d),{width:t,height:i}}const H=typeof ResizeObserver<"u",V=()=>!0;function I(o){const{popupElement:e,positionerElement:t,content:i,mounted:u,enabled:c=V,onMeasureLayout:d,onMeasureLayoutComplete:m,side:n,direction:w}=o,f=g.useRef(!0),x=B(e,!0,!1),b=T(),s=g.useRef(null),S=C(d),P=C(m),M=g.useMemo(()=>{let r=n==="top",a=n==="left";return w==="rtl"?(r=r||n==="inline-end",a=a||n==="inline-end"):(r=r||n==="inline-start",a=a||n==="inline-start"),r?{position:"absolute",[n==="top"?"bottom":"top"]:"0",[a?"right":"left"]:"0"}:k},[n,w]);D(()=>{if(!u||!c()||!H){f.current=!0,s.current=null;return}if(!e||!t)return;Object.entries(M).forEach(([l,p])=>{e.style.setProperty(l,p)});const r=new ResizeObserver(l=>{const p=l[0];p&&(s.current===null?s.current={width:Math.ceil(p.borderBoxSize[0].inlineSize),height:Math.ceil(p.borderBoxSize[0].blockSize)}:(s.current.width=Math.ceil(p.borderBoxSize[0].inlineSize),s.current.height=Math.ceil(p.borderBoxSize[0].blockSize)))});r.observe(e),e.style.setProperty("--popup-width","auto"),e.style.setProperty("--popup-height","auto");const a=y(e,"position","static"),z=y(e,"transform","none"),$=y(e,"scale","1"),E=y(t,"--available-width","max-content"),v=y(t,"--available-height","max-content");if(S?.(),f.current||s.current===null){t.style.setProperty("--positioner-width","max-content"),t.style.setProperty("--positioner-height","max-content");const l=F(e);return t.style.setProperty("--positioner-width",`${l.width}px`),t.style.setProperty("--positioner-height",`${l.height}px`),a(),z(),$(),E(),v(),P?.(null,l),f.current=!1,()=>{r.disconnect()}}e.style.setProperty("--popup-width","auto"),e.style.setProperty("--popup-height","auto"),t.style.setProperty("--positioner-width","max-content"),t.style.setProperty("--positioner-height","max-content");const h=F(e);e.style.setProperty("--popup-width",`${s.current.width}px`),e.style.setProperty("--popup-height",`${s.current.height}px`),a(),z(),E(),v(),P?.(s.current,h),t.style.setProperty("--positioner-width",`${h.width}px`),t.style.setProperty("--positioner-height",`${h.height}px`);const L=new AbortController;return b.request(()=>{e.style.setProperty("--popup-width",`${h.width}px`),e.style.setProperty("--popup-height",`${h.height}px`),x(()=>{e.style.setProperty("--popup-width","auto"),e.style.setProperty("--popup-height","auto")},L.signal)}),()=>{r.disconnect(),L.abort(),b.cancel()}},[i,e,t,x,b,c,u,S,P,M])}function y(o,e,t){const i=o.style.getPropertyValue(e);return o.style.setProperty(e,t),()=>{o.style.setProperty(e,i)}}export{I as u};
@@ -1 +0,0 @@
1
- import{r,c2 as a,$ as c,V as o}from"./index-CguUxiuR.js";const u=r.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:a,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function i(){return r.useContext(u)}function m(e,s){const t=r.useRef(e),n=c(s);o(()=>{t.current!==e&&n(t.current)},[e,n]),o(()=>{t.current=e},[e])}export{u as F,i as a,m as u};
@@ -1 +0,0 @@
1
- import"./index-CguUxiuR.js";var r="tye0o0",t="tye0o1";export{r as a,t as v};