import{r as a,ae as Q,Y as z,bf as ye,a5 as We,ao as J,bg as ee,af as Fe,bh as ke,bi as Xe,bj as qe,bk as Ve,ag as h,bl as Ge,ah as Ue,ak as we,al as ce,bm as Ye,bn as xe,am as ue,aj as Be,an as me,bo as Ze,bp as Oe,Q as Te,as as je,bq as Ke,br as Qe,bs as pe,bt as Je,bu as et,ab as tt,ar as ot,ac as nt,bv as it,bw as rt,bx as at,by as lt,S as st,B as ge,u as ct,q as Pe,g as dt,N as ut,j as E,F as mt,a as G,_ as V,l as Ee,A as ze,bz as pt,y as be,bA as gt}from"./main-tangy-colts-beg.js";import{D as bt,M as $t,u as ht,S as ft,E as vt,R as Me,a as Ct,b as It}from"./index-tangy-colts-beg-4.js";import{i as $e,g as St,S as le,M as yt}from"./index-tangy-colts-beg-596.js";import{a as Y,s as wt,b as xt,c as Bt,d as Ot,R as Tt,C as he,e as jt,P as Pt,f as Et}from"./index-tangy-colts-beg-131.js";import{a as zt}from"./index.es-tangy-colts-beg-4.js";import{g as Mt,P as Ht}from"./exporthe-tangy-colts-beg-840.js";const Nt=e=>typeof e!="object"&&typeof e!="function"||e===null,Z=a.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var At=function(e,o){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)o.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const He=e=>{const{prefixCls:o,className:t,dashed:i}=e,n=At(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=a.useContext(Q),r=l("menu",o),c=z({[`${r}-item-divider-dashed`]:!!i},t);return a.createElement(bt,Object.assign({className:c},n))},Ne=e=>{var o;const{className:t,children:i,icon:n,title:l,danger:r,extra:c}=e,{prefixCls:s,firstLevel:p,direction:g,disableMenuItemTitleTooltip:$,inlineCollapsed:u}=a.useContext(Z),m=P=>{const I=i==null?void 0:i[0],x=a.createElement("span",{className:z(`${s}-title-content`,{[`${s}-title-content-with-extra`]:!!c||c===0})},i);return(!n||a.isValidElement(i)&&i.type==="span")&&i&&P&&p&&typeof I=="string"?a.createElement("div",{className:`${s}-inline-collapsed-noicon`},I.charAt(0)):x},{siderCollapsed:d}=a.useContext(ye);let b=l;typeof l>"u"?b=p?i:"":l===!1&&(b="");const v={title:b};!d&&!u&&(v.title=null,v.open=!1);const C=We(i).length;let w=a.createElement($t,Object.assign({},J(e,["title","icon","danger"]),{className:z({[`${s}-item-danger`]:r,[`${s}-item-only-child`]:(n?C+1:C)===1},t),title:typeof l=="string"?l:void 0}),ee(n,{className:z(a.isValidElement(n)?(o=n.props)===null||o===void 0?void 0:o.className:"",`${s}-item-icon`)}),m(u));return $||(w=a.createElement(Fe,Object.assign({},v,{placement:g==="rtl"?"left":"right",classNames:{root:`${s}-inline-collapsed-tooltip`}}),w)),w};var Dt=function(e,o){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)o.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const K=a.createContext(null),Rt=a.forwardRef((e,o)=>{const{children:t}=e,i=Dt(e,["children"]),n=a.useContext(K),l=a.useMemo(()=>Object.assign(Object.assign({},n),i),[n,i.prefixCls,i.mode,i.selectable,i.rootClassName]),r=ke(t),c=Xe(o,r?qe(t):null);return a.createElement(K.Provider,{value:l},a.createElement(Ve,{space:!0},r?a.cloneElement(t,{ref:c}):t))}),Lt=e=>{const{componentCls:o,motionDurationSlow:t,horizontalLineHeight:i,colorSplit:n,lineWidth:l,lineType:r,itemPaddingInline:c}=e;return{[`${o}-horizontal`]:{lineHeight:i,border:0,borderBottom:`${h(l)} ${r} ${n}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${o}-item, ${o}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:c},[`> ${o}-item:hover,
        > ${o}-item-active,
        > ${o}-submenu ${o}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${o}-item, ${o}-submenu-title`]:{transition:[`border-color ${t}`,`background ${t}`].join(",")},[`${o}-submenu-arrow`]:{display:"none"}}}},_t=e=>{let{componentCls:o,menuArrowOffset:t,calc:i}=e;return{[`${o}-rtl`]:{direction:"rtl"},[`${o}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${o}-rtl${o}-vertical,
    ${o}-submenu-rtl ${o}-vertical`]:{[`${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${h(i(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${h(t)})`}}}}},fe=e=>Object.assign({},Ge(e)),ve=(e,o)=>{const{componentCls:t,itemColor:i,itemSelectedColor:n,subMenuItemSelectedColor:l,groupTitleColor:r,itemBg:c,subMenuItemBg:s,itemSelectedBg:p,activeBarHeight:g,activeBarWidth:$,activeBarBorderWidth:u,motionDurationSlow:m,motionEaseInOut:d,motionEaseOut:b,itemPaddingInline:v,motionDurationMid:C,itemHoverColor:w,lineType:P,colorSplit:I,itemDisabledColor:x,dangerItemColor:T,dangerItemHoverColor:H,dangerItemSelectedColor:j,dangerItemActiveBg:f,dangerItemSelectedBg:B,popupBg:N,itemHoverBg:M,itemActiveBg:y,menuSubMenuBg:S,horizontalItemSelectedColor:D,horizontalItemSelectedBg:_,horizontalItemBorderRadius:W,horizontalItemHoverBg:R}=e;return{[`${t}-${o}, ${t}-${o} > ${t}`]:{color:i,background:c,[`&${t}-root:focus-visible`]:Object.assign({},fe(e)),[`${t}-item`]:{"&-group-title, &-extra":{color:r}},[`${t}-submenu-selected > ${t}-submenu-title`]:{color:l},[`${t}-item, ${t}-submenu-title`]:{color:i,[`&:not(${t}-item-disabled):focus-visible`]:Object.assign({},fe(e))},[`${t}-item-disabled, ${t}-submenu-disabled`]:{color:`${x} !important`},[`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]:{[`&:hover, > ${t}-submenu-title:hover`]:{color:w}},[`&:not(${t}-horizontal)`]:{[`${t}-item:not(${t}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:y}},[`${t}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:y}}},[`${t}-item-danger`]:{color:T,[`&${t}-item:hover`]:{[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]:{color:H}},[`&${t}-item:active`]:{background:f}},[`${t}-item a`]:{"&, &:hover":{color:"inherit"}},[`${t}-item-selected`]:{color:n,[`&${t}-item-danger`]:{color:j},"a, a:hover":{color:"inherit"}},[`& ${t}-item-selected`]:{backgroundColor:p,[`&${t}-item-danger`]:{backgroundColor:B}},[`&${t}-submenu > ${t}`]:{backgroundColor:S},[`&${t}-popup > ${t}`]:{backgroundColor:N},[`&${t}-submenu-popup > ${t}`]:{backgroundColor:N},[`&${t}-horizontal`]:Object.assign(Object.assign({},o==="dark"?{borderBottom:0}:{}),{[`> ${t}-item, > ${t}-submenu`]:{top:u,marginTop:e.calc(u).mul(-1).equal(),marginBottom:0,borderRadius:W,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${h(g)} solid transparent`,transition:`border-color ${m} ${d}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:g,borderBottomColor:D}},"&-selected":{color:D,backgroundColor:_,"&:hover":{backgroundColor:_},"&::after":{borderBottomWidth:g,borderBottomColor:D}}}}),[`&${t}-root`]:{[`&${t}-inline, &${t}-vertical`]:{borderInlineEnd:`${h(u)} ${P} ${I}`}},[`&${t}-inline`]:{[`${t}-sub${t}-inline`]:{background:s},[`${t}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${h($)} solid ${n}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${C} ${b}`,`opacity ${C} ${b}`].join(","),content:'""'},[`&${t}-item-danger`]:{"&::after":{borderInlineEndColor:j}}},[`${t}-selected, ${t}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${C} ${d}`,`opacity ${C} ${d}`].join(",")}}}}}},Ce=e=>{const{componentCls:o,itemHeight:t,itemMarginInline:i,padding:n,menuArrowSize:l,marginXS:r,itemMarginBlock:c,itemWidth:s,itemPaddingInline:p}=e,g=e.calc(l).add(n).add(r).equal();return{[`${o}-item`]:{position:"relative",overflow:"hidden"},[`${o}-item, ${o}-submenu-title`]:{height:t,lineHeight:h(t),paddingInline:p,overflow:"hidden",textOverflow:"ellipsis",marginInline:i,marginBlock:c,width:s},[`> ${o}-item,
            > ${o}-submenu > ${o}-submenu-title`]:{height:t,lineHeight:h(t)},[`${o}-item-group-list ${o}-submenu-title,
            ${o}-submenu-title`]:{paddingInlineEnd:g}}},Wt=e=>{const{componentCls:o,iconCls:t,itemHeight:i,colorTextLightSolid:n,dropdownWidth:l,controlHeightLG:r,motionEaseOut:c,paddingXL:s,itemMarginInline:p,fontSizeLG:g,motionDurationFast:$,motionDurationSlow:u,paddingXS:m,boxShadowSecondary:d,collapsedWidth:b,collapsedIconSize:v}=e,C={height:i,lineHeight:h(i),listStylePosition:"inside",listStyleType:"disc"};return[{[o]:{"&-inline, &-vertical":Object.assign({[`&${o}-root`]:{boxShadow:"none"}},Ce(e))},[`${o}-submenu-popup`]:{[`${o}-vertical`]:Object.assign(Object.assign({},Ce(e)),{boxShadow:d})}},{[`${o}-submenu-popup ${o}-vertical${o}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${h(e.calc(r).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${o}-inline`]:{width:"100%",[`&${o}-root`]:{[`${o}-item, ${o}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${u}`,`background ${u}`,`padding ${$} ${c}`].join(","),[`> ${o}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${o}-sub${o}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${o}-submenu > ${o}-submenu-title`]:C,[`& ${o}-item-group-title`]:{paddingInlineStart:s}},[`${o}-item`]:C}},{[`${o}-inline-collapsed`]:{width:b,[`&${o}-root`]:{[`${o}-item, ${o}-submenu ${o}-submenu-title`]:{[`> ${o}-inline-collapsed-noicon`]:{fontSize:g,textAlign:"center"}}},[`> ${o}-item,
          > ${o}-item-group > ${o}-item-group-list > ${o}-item,
          > ${o}-item-group > ${o}-item-group-list > ${o}-submenu > ${o}-submenu-title,
          > ${o}-submenu > ${o}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${h(e.calc(v).div(2).equal())} - ${h(p)})`,textOverflow:"clip",[`
            ${o}-submenu-arrow,
            ${o}-submenu-expand-icon
          `]:{opacity:0},[`${o}-item-icon, ${t}`]:{margin:0,fontSize:v,lineHeight:h(i),"+ span":{display:"inline-block",opacity:0}}},[`${o}-item-icon, ${t}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${o}-item-icon, ${t}`]:{display:"none"},"a, a:hover":{color:n}},[`${o}-item-group-title`]:Object.assign(Object.assign({},Ue),{paddingInline:m})}}]},Ie=e=>{const{componentCls:o,motionDurationSlow:t,motionDurationMid:i,motionEaseInOut:n,motionEaseOut:l,iconCls:r,iconSize:c,iconMarginInlineEnd:s}=e;return{[`${o}-item, ${o}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${t}`,`background ${t}`,`padding calc(${t} + 0.1s) ${n}`].join(","),[`${o}-item-icon, ${r}`]:{minWidth:c,fontSize:c,transition:[`font-size ${i} ${l}`,`margin ${t} ${n}`,`color ${t}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${t} ${n}`,`margin ${t}`,`color ${t}`].join(",")}},[`${o}-item-icon`]:Object.assign({},Ze()),[`&${o}-item-only-child`]:{[`> ${r}, > ${o}-item-icon`]:{marginInlineEnd:0}}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${o}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Se=e=>{const{componentCls:o,motionDurationSlow:t,motionEaseInOut:i,borderRadius:n,menuArrowSize:l,menuArrowOffset:r}=e;return{[`${o}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${t} ${i}, opacity ${t}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:n,transition:[`background ${t} ${i}`,`transform ${t} ${i}`,`top ${t} ${i}`,`color ${t} ${i}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${h(e.calc(r).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${h(r)})`}}}}},Ft=e=>{const{antCls:o,componentCls:t,fontSize:i,motionDurationSlow:n,motionDurationMid:l,motionEaseInOut:r,paddingXS:c,padding:s,colorSplit:p,lineWidth:g,zIndexPopup:$,borderRadiusLG:u,subMenuItemBorderRadius:m,menuArrowSize:d,menuArrowOffset:b,lineType:v,groupTitleLineHeight:C,groupTitleFontSize:w}=e;return[{"":{[t]:Object.assign(Object.assign({},ue()),{"&-hidden":{display:"none"}})},[`${t}-submenu-hidden`]:{display:"none"}},{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Be(e)),ue()),{marginBottom:0,paddingInlineStart:0,fontSize:i,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${n} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${t}-item`]:{flex:"none"}},[`${t}-item, ${t}-submenu, ${t}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${t}-item-group-title`]:{padding:`${h(c)} ${h(s)}`,fontSize:w,lineHeight:C,transition:`all ${n}`},[`&-horizontal ${t}-submenu`]:{transition:[`border-color ${n} ${r}`,`background ${n} ${r}`].join(",")},[`${t}-submenu, ${t}-submenu-inline`]:{transition:[`border-color ${n} ${r}`,`background ${n} ${r}`,`padding ${l} ${r}`].join(",")},[`${t}-submenu ${t}-sub`]:{cursor:"initial",transition:[`background ${n} ${r}`,`padding ${n} ${r}`].join(",")},[`${t}-title-content`]:{transition:`color ${n}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${o}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${t}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${t}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${t}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:p,borderStyle:v,borderWidth:0,borderTopWidth:g,marginBlock:g,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ie(e)),{[`${t}-item-group`]:{[`${t}-item-group-list`]:{margin:0,padding:0,[`${t}-item, ${t}-submenu-title`]:{paddingInline:`${h(e.calc(i).mul(2).equal())} ${h(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:$,borderRadius:u,boxShadow:"none",transformOrigin:"0 0",[`&${t}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${t}`]:Object.assign(Object.assign(Object.assign({borderRadius:u},Ie(e)),Se(e)),{[`${t}-item, ${t}-submenu > ${t}-submenu-title`]:{borderRadius:m},[`${t}-submenu-title::after`]:{transition:`transform ${n} ${r}`}})},"\n          &-placement-leftTop,\n          &-placement-bottomRight,\n          ":{transformOrigin:"100% 0"},"\n          &-placement-leftBottom,\n          &-placement-topRight,\n          ":{transformOrigin:"100% 100%"},"\n          &-placement-rightBottom,\n          &-placement-topLeft,\n          ":{transformOrigin:"0 100%"},"\n          &-placement-bottomLeft,\n          &-placement-rightTop,\n          ":{transformOrigin:"0 0"},"\n          &-placement-leftTop,\n          &-placement-leftBottom\n          ":{paddingInlineEnd:e.paddingXS},"\n          &-placement-rightTop,\n          &-placement-rightBottom\n          ":{paddingInlineStart:e.paddingXS},"\n          &-placement-topRight,\n          &-placement-topLeft\n          ":{paddingBottom:e.paddingXS},"\n          &-placement-bottomRight,\n          &-placement-bottomLeft\n          ":{paddingTop:e.paddingXS}}}),Se(e)),{[`&-inline-collapsed ${t}-submenu-arrow,
        &-inline ${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${h(b)})`},"&::after":{transform:`rotate(45deg) translateX(${h(e.calc(b).mul(-1).equal())})`}},[`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]:{transform:`translateY(${h(e.calc(d).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${h(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${h(b)})`}}})},{[`${o}-layout-header`]:{[t]:{lineHeight:"inherit"}}}]},kt=e=>{var o,t,i;const{colorPrimary:n,colorError:l,colorTextDisabled:r,colorErrorBg:c,colorText:s,colorTextDescription:p,colorBgContainer:g,colorFillAlter:$,colorFillContent:u,lineWidth:m,lineWidthBold:d,controlItemBgActive:b,colorBgTextHover:v,controlHeightLG:C,lineHeight:w,colorBgElevated:P,marginXXS:I,padding:x,fontSize:T,controlHeightSM:H,fontSizeLG:j,colorTextLightSolid:f,colorErrorHover:B}=e,N=(o=e.activeBarWidth)!==null&&o!==void 0?o:0,M=(t=e.activeBarBorderWidth)!==null&&t!==void 0?t:m,y=(i=e.itemMarginInline)!==null&&i!==void 0?i:e.marginXXS,S=new me(f).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:n,horizontalItemHoverColor:n,colorGroupTitle:p,groupTitleColor:p,colorItemTextSelected:n,itemSelectedColor:n,subMenuItemSelectedColor:n,colorItemTextSelectedHorizontal:n,horizontalItemSelectedColor:n,colorItemBg:g,itemBg:g,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:u,itemActiveBg:b,colorSubItemBg:$,subMenuItemBg:$,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:N,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:m,activeBarBorderWidth:M,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:c,dangerItemActiveBg:c,colorDangerItemBgSelected:c,dangerItemSelectedBg:c,itemMarginInline:y,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:C,groupTitleLineHeight:w,collapsedWidth:C*2,popupBg:P,itemMarginBlock:I,itemPaddingInline:x,horizontalLineHeight:`${C*1.15}px`,iconSize:T,iconMarginInlineEnd:H-T,collapsedIconSize:j,groupTitleFontSize:T,darkItemDisabledColor:new me(f).setA(.25).toRgbString(),darkItemColor:S,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:f,darkItemSelectedBg:n,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:S,darkItemHoverColor:f,darkDangerItemHoverColor:B,darkDangerItemSelectedColor:f,darkDangerItemActiveBg:l,itemWidth:N?`calc(100% + ${M}px)`:`calc(100% - ${y*2}px)`}},Xt=(function(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return we("Menu",n=>{const{colorBgElevated:l,controlHeightLG:r,fontSize:c,darkItemColor:s,darkDangerItemColor:p,darkItemBg:g,darkSubMenuItemBg:$,darkItemSelectedColor:u,darkItemSelectedBg:m,darkDangerItemSelectedBg:d,darkItemHoverBg:b,darkGroupTitleColor:v,darkItemHoverColor:C,darkItemDisabledColor:w,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:x,popupBg:T,darkPopupBg:H}=n,j=n.calc(c).div(7).mul(5).equal(),f=ce(n,{menuArrowSize:j,menuHorizontalHeight:n.calc(r).mul(1.15).equal(),menuArrowOffset:n.calc(j).mul(.25).equal(),menuSubMenuBg:l,calc:n.calc,popupBg:T}),B=ce(f,{itemColor:s,itemHoverColor:C,groupTitleColor:v,itemSelectedColor:u,itemBg:g,popupBg:H,subMenuItemBg:$,itemActiveBg:"transparent",itemSelectedBg:m,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:w,dangerItemColor:p,dangerItemHoverColor:P,dangerItemSelectedColor:I,dangerItemActiveBg:x,dangerItemSelectedBg:d,menuSubMenuBg:$,horizontalItemSelectedColor:u,horizontalItemSelectedBg:m});return[Ft(f),Lt(f),Wt(f),ve(f,"light"),ve(B,"dark"),_t(f),Ye(f),Y(f,"slide-up"),Y(f,"slide-down"),xe(f,"zoom-big")]},kt,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:t,unitless:{groupTitleLineHeight:!0}})(e,o)}),Ae=e=>{var o;const{popupClassName:t,icon:i,title:n,theme:l}=e,r=a.useContext(Z),{prefixCls:c,inlineCollapsed:s,theme:p}=r,g=ht();let $;if(!i)$=s&&!g.length&&n&&typeof n=="string"?a.createElement("div",{className:`${c}-inline-collapsed-noicon`},n.charAt(0)):a.createElement("span",{className:`${c}-title-content`},n);else{const d=a.isValidElement(n)&&n.type==="span";$=a.createElement(a.Fragment,null,ee(i,{className:z(a.isValidElement(i)?(o=i.props)===null||o===void 0?void 0:o.className:"",`${c}-item-icon`)}),d?n:a.createElement("span",{className:`${c}-title-content`},n))}const u=a.useMemo(()=>Object.assign(Object.assign({},r),{firstLevel:!1}),[r]),[m]=Oe("Menu");return a.createElement(Z.Provider,{value:u},a.createElement(ft,Object.assign({},J(e,["icon"]),{title:$,popupClassName:z(c,t,`${c}-${l||p}`),popupStyle:Object.assign({zIndex:m},e.popupStyle)})))};var qt=function(e,o){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)o.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};function se(e){return e===null||e===!1}const Vt={item:Ne,submenu:Ae,divider:He},Gt=a.forwardRef((e,o)=>{var t;const i=a.useContext(K),n=i||{},{getPrefixCls:l,getPopupContainer:r,direction:c,menu:s}=a.useContext(Q),p=l(),{prefixCls:g,className:$,style:u,theme:m="light",expandIcon:d,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:v,siderCollapsed:C,rootClassName:w,mode:P,selectable:I,onClick:x,overflowedIndicatorPopupClassName:T}=e,H=qt(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),j=J(H,["collapsedWidth"]);(t=n.validator)===null||t===void 0||t.call(n,{mode:P});const f=Te(function(){var A;x==null||x.apply(void 0,arguments),(A=n.onClick)===null||A===void 0||A.call(n)}),B=n.mode||P,N=I??n.selectable,M=v??C,y={horizontal:{motionName:`${p}-slide-up`},inline:Ke(p),other:{motionName:`${p}-zoom-big`}},S=l("menu",g||n.prefixCls),D=je(S),[_,W,R]=Xt(S,D,!i),X=z(`${S}-${m}`,s==null?void 0:s.className,$),L=a.useMemo(()=>{var A,q;if(typeof d=="function"||se(d))return d||null;if(typeof n.expandIcon=="function"||se(n.expandIcon))return n.expandIcon||null;if(typeof(s==null?void 0:s.expandIcon)=="function"||se(s==null?void 0:s.expandIcon))return(s==null?void 0:s.expandIcon)||null;const k=(A=d??(n==null?void 0:n.expandIcon))!==null&&A!==void 0?A:s==null?void 0:s.expandIcon;return ee(k,{className:z(`${S}-submenu-expand-icon`,a.isValidElement(k)?(q=k.props)===null||q===void 0?void 0:q.className:void 0)})},[d,n==null?void 0:n.expandIcon,s==null?void 0:s.expandIcon,S]),F=a.useMemo(()=>({prefixCls:S,inlineCollapsed:M||!1,direction:c,firstLevel:!0,theme:m,mode:B,disableMenuItemTitleTooltip:b}),[S,M,c,b,m]);return _(a.createElement(K.Provider,{value:null},a.createElement(Z.Provider,{value:F},a.createElement(vt,Object.assign({getPopupContainer:r,overflowedIndicator:a.createElement(Me,null),overflowedIndicatorPopupClassName:z(S,`${S}-${m}`,T),mode:B,selectable:N,onClick:f},j,{inlineCollapsed:M,style:Object.assign(Object.assign({},s==null?void 0:s.style),u),className:X,prefixCls:S,direction:c,defaultMotions:y,expandIcon:L,ref:o,rootClassName:z(w,W,n.rootClassName,R,D),_internalComponents:Vt})))))}),U=a.forwardRef((e,o)=>{const t=a.useRef(null),i=a.useContext(ye);return a.useImperativeHandle(o,()=>({menu:t.current,focus:n=>{var l;(l=t.current)===null||l===void 0||l.focus(n)}})),a.createElement(Gt,Object.assign({ref:t},e,i))});U.Item=Ne;U.SubMenu=Ae;U.Divider=He;U.ItemGroup=Ct;const Ut=e=>{const{componentCls:o,menuCls:t,colorError:i,colorTextLightSolid:n}=e,l=`${t}-item`;return{[`${o}, ${o}-menu-submenu`]:{[`${t} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:i,"&:hover":{color:n,backgroundColor:i}}}}}},Yt=e=>{const{componentCls:o,menuCls:t,zIndexPopup:i,dropdownArrowDistance:n,sizePopupArrow:l,antCls:r,iconCls:c,motionDurationMid:s,paddingBlock:p,fontSize:g,dropdownEdgeChildPadding:$,colorTextDisabled:u,fontSizeIcon:m,controlPaddingHorizontal:d,colorBgElevated:b}=e;return[{[o]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:i,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(n).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${r}-btn`]:{[`& > ${c}-down, & > ${r}-btn-icon > ${c}-down`]:{fontSize:m}},[`${o}-wrap`]:{position:"relative",[`${r}-btn > ${c}-down`]:{fontSize:m},[`${c}-down::before`]:{transition:`transform ${s}`}},[`${o}-wrap-open`]:{[`${c}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${r}-slide-down-enter${r}-slide-down-enter-active${o}-placement-bottomLeft,
          &${r}-slide-down-appear${r}-slide-down-appear-active${o}-placement-bottomLeft,
          &${r}-slide-down-enter${r}-slide-down-enter-active${o}-placement-bottom,
          &${r}-slide-down-appear${r}-slide-down-appear-active${o}-placement-bottom,
          &${r}-slide-down-enter${r}-slide-down-enter-active${o}-placement-bottomRight,
          &${r}-slide-down-appear${r}-slide-down-appear-active${o}-placement-bottomRight`]:{animationName:Ot},[`&${r}-slide-up-enter${r}-slide-up-enter-active${o}-placement-topLeft,
          &${r}-slide-up-appear${r}-slide-up-appear-active${o}-placement-topLeft,
          &${r}-slide-up-enter${r}-slide-up-enter-active${o}-placement-top,
          &${r}-slide-up-appear${r}-slide-up-appear-active${o}-placement-top,
          &${r}-slide-up-enter${r}-slide-up-enter-active${o}-placement-topRight,
          &${r}-slide-up-appear${r}-slide-up-appear-active${o}-placement-topRight`]:{animationName:Bt},[`&${r}-slide-down-leave${r}-slide-down-leave-active${o}-placement-bottomLeft,
          &${r}-slide-down-leave${r}-slide-down-leave-active${o}-placement-bottom,
          &${r}-slide-down-leave${r}-slide-down-leave-active${o}-placement-bottomRight`]:{animationName:xt},[`&${r}-slide-up-leave${r}-slide-up-leave-active${o}-placement-topLeft,
          &${r}-slide-up-leave${r}-slide-up-leave-active${o}-placement-top,
          &${r}-slide-up-leave${r}-slide-up-leave-active${o}-placement-topRight`]:{animationName:wt}}},Qe(e,b,{arrowPlacement:{top:!0,bottom:!0}}),{[`${o} ${t}`]:{position:"relative",margin:0},[`${t}-submenu-popup`]:{position:"absolute",zIndex:i,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${o}, ${o}-menu-submenu`]:Object.assign(Object.assign({},Be(e)),{[t]:Object.assign(Object.assign({padding:$,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},pe(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${t}-item-group-title`]:{padding:`${h(p)} ${h(d)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${t}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${t}-item-icon`]:{minWidth:g,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${t}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${t}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${t}-item, ${t}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${h(p)} ${h(d)}`,color:e.colorText,fontWeight:"normal",fontSize:g,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},pe(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:u,cursor:"not-allowed","&:hover":{color:u,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${h(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${o}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${o}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:m,fontStyle:"normal"}}}),[`${t}-item-group-list`]:{margin:`0 ${h(e.marginXS)}`,padding:0,listStyle:"none"},[`${t}-submenu-title`]:{paddingInlineEnd:e.calc(d).add(e.fontSizeSM).equal()},[`${t}-submenu-vertical`]:{position:"relative"},[`${t}-submenu${t}-submenu-disabled ${o}-menu-submenu-title`]:{[`&, ${o}-menu-submenu-arrow-icon`]:{color:u,backgroundColor:b,cursor:"not-allowed"}},[`${t}-submenu-selected ${o}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Y(e,"slide-up"),Y(e,"slide-down"),$e(e,"move-up"),$e(e,"move-down"),xe(e,"zoom-big")]]},Zt=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Je({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),et(e)),Kt=we("Dropdown",e=>{const{marginXXS:o,sizePopupArrow:t,paddingXXS:i,componentCls:n}=e,l=ce(e,{menuCls:`${n}-menu`,dropdownArrowDistance:e.calc(t).div(2).add(o).equal(),dropdownEdgeChildPadding:i});return[Yt(l),Ut(l)]},Zt,{resetStyle:!1}),te=e=>{var o;const{menu:t,arrow:i,prefixCls:n,children:l,trigger:r,disabled:c,dropdownRender:s,getPopupContainer:p,overlayClassName:g,rootClassName:$,overlayStyle:u,open:m,onOpenChange:d,visible:b,onVisibleChange:v,mouseEnterDelay:C=.15,mouseLeaveDelay:w=.1,autoAdjustOverflow:P=!0,placement:I="",overlay:x,transitionName:T}=e,{getPopupContainer:H,getPrefixCls:j,direction:f,dropdown:B}=a.useContext(Q);tt();const N=a.useMemo(()=>{const O=j();return T!==void 0?T:I.includes("top")?`${O}-slide-down`:`${O}-slide-up`},[j,I,T]),M=a.useMemo(()=>I?I.includes("Center")?I.slice(0,I.indexOf("Center")):I:f==="rtl"?"bottomRight":"bottomLeft",[I,f]),y=j("dropdown",n),S=je(y),[D,_,W]=Kt(y,S),[,R]=ot(),X=a.Children.only(Nt(l)?a.createElement("span",null,l):l),L=ee(X,{className:z(`${y}-trigger`,{[`${y}-rtl`]:f==="rtl"},X.props.className),disabled:(o=X.props.disabled)!==null&&o!==void 0?o:c}),F=c?[]:r,A=!!(F!=null&&F.includes("contextMenu")),[q,k]=nt(!1,{value:m??b}),oe=Te(O=>{d==null||d(O,{source:"trigger"}),v==null||v(O),k(O)}),ne=z(g,$,_,W,S,B==null?void 0:B.className,{[`${y}-rtl`]:f==="rtl"}),ie=it({arrowPointAtCenter:typeof i=="object"&&i.pointAtCenter,autoAdjustOverflow:P,offset:R.marginXXS,arrowWidth:i?R.sizePopupArrow:0,borderRadius:R.borderRadius}),re=a.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(d==null||d(!1,{source:"menu"}),k(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),Re=()=>{let O;return t!=null&&t.items?O=a.createElement(U,Object.assign({},t)):typeof x=="function"?O=x():O=x,s&&(O=s(O)),O=a.Children.only(typeof O=="string"?a.createElement("span",null,O):O),a.createElement(Rt,{prefixCls:`${y}-menu`,rootClassName:z(W,S),expandIcon:a.createElement("span",{className:`${y}-menu-submenu-arrow`},a.createElement(at,{className:`${y}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:re,validator:_e=>{let{mode:ro}=_e}},O)},[de,Le]=Oe("Dropdown",u==null?void 0:u.zIndex);let ae=a.createElement(It,Object.assign({alignPoint:A},J(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:w,visible:q,builtinPlacements:ie,arrow:!!i,overlayClassName:ne,prefixCls:y,getPopupContainer:p||H,transitionName:N,trigger:F,overlay:Re,placement:M,onVisibleChange:oe,overlayStyle:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.style),u),{zIndex:de})}),L);return de&&(ae=a.createElement(rt.Provider,{value:Le},ae)),D(ae)},Qt=St(te,"align",void 0,"dropdown",e=>e),Jt=e=>a.createElement(Qt,Object.assign({},e),a.createElement("span",null));te._InternalPanelDoNotUseOrYouWillBeFired=Jt;var eo=function(e,o){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)o.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const De=e=>{const{getPopupContainer:o,getPrefixCls:t,direction:i}=a.useContext(Q),{prefixCls:n,type:l="default",danger:r,disabled:c,loading:s,onClick:p,htmlType:g,children:$,className:u,menu:m,arrow:d,autoFocus:b,overlay:v,trigger:C,align:w,open:P,onOpenChange:I,placement:x,getPopupContainer:T,href:H,icon:j=a.createElement(Me,null),title:f,buttonsRender:B=re=>re,mouseEnterDelay:N,mouseLeaveDelay:M,overlayClassName:y,overlayStyle:S,destroyPopupOnHide:D,dropdownRender:_}=e,W=eo(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),R=t("dropdown",n),X=`${R}-button`,L={menu:m,arrow:d,autoFocus:b,align:w,disabled:c,trigger:c?[]:C,onOpenChange:I,getPopupContainer:T||o,mouseEnterDelay:N,mouseLeaveDelay:M,overlayClassName:y,overlayStyle:S,destroyPopupOnHide:D,dropdownRender:_},{compactSize:F,compactItemClassnames:A}=lt(R,i),q=z(X,A,u);"overlay"in e&&(L.overlay=v),"open"in e&&(L.open=P),"placement"in e?L.placement=x:L.placement=i==="rtl"?"bottomLeft":"bottomRight";const k=a.createElement(ge,{type:l,danger:r,disabled:c,loading:s,onClick:p,htmlType:g,href:H,title:f},$),oe=a.createElement(ge,{type:l,danger:r,icon:j}),[ne,ie]=B([k,oe]);return a.createElement(st.Compact,Object.assign({className:q,size:F,block:!0},W),ne,a.createElement(te,Object.assign({},L),ie))};De.__ANT_BUTTON=!0;const to=te;to.Button=De;globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};function po(e,o){const[t,i]=a.useState(e);return a.useEffect(()=>{const n=setTimeout(()=>i(e),o);return()=>{clearTimeout(n)}},[e,o]),t}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};const go=e=>Array.isArray(e)?e.map(({actions:o,color:t,description:i,logo:n,name:l,slug:r,triggers:c})=>({actions:o||[],appSlug:r,color:t,description:i||"",isCustom:!0,logoUrl:n||"",name:l,slug:r,tags:[l],triggers:c||[],type:"node"})):[];globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};function oo(e){return ct({enabled:!!e,queryFn:()=>Pe(`flow-settings/${e}`,void 0,void 0,"GET"),queryKey:["flow-settings",e],select:o=>o.data})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};function no(e){return dt({mutationFn:o=>Pe("flow-settings/update",{flow_id:e,settings:o}),mutationKey:["update-flow-settings",e]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};function io({flowId:e}){var s,p,g;const{data:o}=oo(e),{error:t,mutateAsync:i}=no(e),[n,l]=zt(o),{messageApi:r}=a.useContext(ut),c=async($,u)=>{l(m=>{m&&(m[$]=u)}),await i({[$]:u}),r==null||r.success("Flow settings updated")};return a.useEffect(()=>{o&&l(o)},[o,l]),E(mt,{children:G(Tt,{className:"mt-4",gutter:20,justify:"space-between",children:[G(he,{span:16,children:[E(jt,{level:5,style:{marginBottom:0},children:V("If Any Node Fail")}),E(Pt,{type:"secondary",children:V("When a node fails in the flow execution process")})]}),G(he,{span:8,children:[G(le,{onChange:$=>c("onNodeFail",$),status:((s=t==null?void 0:t.data)==null?void 0:s["settings.onNodeFail"])&&"error",style:{width:"100%"},value:n==null?void 0:n.onNodeFail,children:[E(le.Option,{value:"block",children:V("Block execution")}),E(le.Option,{value:"continue",children:V("Continue execution")})]}),((p=t==null?void 0:t.data)==null?void 0:p["settings.onNodeFail"])&&E(Et,{type:"danger",children:(g=t==null?void 0:t.data)==null?void 0:g["settings.onNodeFail"][0]})]})]})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};function bo({flowId:e,isOpen:o,setIsOpen:t}){return E(yt,{destroyOnClose:!0,footer:!1,onCancel:()=>{t(!1)},open:o,title:V("Flow Settings"),width:600,children:E(io,{flowId:e})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};function $o({className:e,flowId:o}){return E("a",{className:Ee(["link-reset",!be.IS_PRO&&"cursor-not-allowed",e]),href:be.IS_PRO?Mt(`pro_flow-export/${o}`):void 0,rel:"noreferrer",children:G("div",{className:"flex items-center gap-1.5",children:[E(ze,{children:E(pt,{})}),V("Export Flow"),E(Ht,{})]})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};function ho({className:e}){return G("div",{className:Ee(["flex items-center gap-1.5",e]),children:[E(ze,{children:E(gt,{})}),V("Flow Settings")]})}export{to as D,bo as F,U as M,Rt as O,ho as a,$o as b,te as c,go as m,po as u};
