PageSourceSearch

https://help.uprio.ai/_next/static/chunks/3315-4446cd7f4627362f.js

js uprio.ai collected 2026-10-05 15:26:01 UTC 133,408 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d1f0b328-ef98-4460-96db-5d1b3a9fde76",e._sentryDebugIdIdentifier="sentry-dbid-d1f0b328-ef98-4460-96db-5d1b3a9fde76")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3315],{2669:(e,t,o)=>{o.d(t,{N5:()=>d,Ry:()=>c});var r=o(73365),l=o(75177),i=o(1521);let n={activePopoverIndex:null},a=(0,i.createContext)({context:n}),c=e=>{let{children:t}=e,[o,c]=(0,i.useState)(n),{activePopoverIndex:d}=o,s=(0,i.useCallback)(e=>c({...o,activePopoverIndex:d===e?null:e}),[d,o]),h=(0,i.useCallback)(e=>c({...o,activePopoverIndex:e}),[o]),p=(0,i.useCallback)(e=>{(0,l.Et)(e)&&e!==d||c({...o,activePopoverIndex:null})},[o,d]);return(0,r.jsx)(a.Provider,{value:{context:o,setContext:c,togglePopover:s,openPopover:h,closePopover:p},children:t})},d=()=>{let e=(0,i.useContext)(a);if(void 0===e)throw Error("useWhiteToolbarContext must be used within WhiteToolbarContextProvider");return e}},8310:(e,t,o)=>{let r;o.d(t,{A:()=>i_});var l,i,n,a,c,d,s,h,p={};o.r(p),o.d(p,{large:()=>tu,medium:()=>tp,small:()=>th});var u={};o.r(u),o.d(u,{large:()=>tx,medium:()=>tm,small:()=>tg});var g={};o.r(g),o.d(g,{large:()=>ty,medium:()=>tb,small:()=>tf});var m={};o.r(m),o.d(m,{ai:()=>t4,aiPrimary:()=>t6,aiSecondary:()=>t3,blueGhost:()=>t1,danger:()=>tB,dangerGhost:()=>t0,ghost:()=>tF,ghostDark:()=>tN,ghostIcon:()=>tq,ghostIconDark:()=>tX,green:()=>tD,popoverIconDark:()=>tZ,primary:()=>tR,primaryDark:()=>tS,secondary:()=>tO,secondaryDark:()=>tL,sideMenuSegment:()=>t2,solid:()=>tT,solidDark:()=>tM,split:()=>tK,white:()=>tU});var x={};o.r(x),o.d(x,{large:()=>oe,medium:()=>t9,small:()=>t7,xsmall:()=>t8});var f={};o.r(f),o.d(f,{blue:()=>oE,green:()=>oO,grey:()=>oR,lightBlue:()=>oT,lightGreen:()=>oD,lightGrey:()=>oM,lightRed:()=>oB,orange:()=>oL,red:()=>oS,solid:()=>oN,yellow:()=>oF});var b={};o.r(b),o.d(b,{COMPACT:()=>o2,L:()=>oq,M:()=>oX,S:()=>oZ,XL:()=>oK,XS:()=>o0,XXS:()=>o1});var y={};o.r(y),o.d(y,{lightBlue:()=>r2,lightGreen:()=>r4,lightGrey:()=>r6,lightRed:()=>r3,solid:()=>r5,yellow:()=>r8});
1var v=o(73365),w=o(1521),P=o(52959),k=o(71768),C=o(25427),j=o(72666);let A=C.Ay.div.withConfig({componentId:"sc-43026fd2-0"})(["width:100%;"]),I=e=>{switch(e){case"round":return 20;case"sharp":return 0;case"default":return 6;default:return 8}},_=(0,C.Ay)(j.fI).withConfig({componentId:"sc-43026fd2-1"})(["display:flex;width:100%;height:56px;align-items:center;"," gap:","px;padding:",";border-radius:",";border:1px solid ",";background-color:",";cursor:",";color:",";"," "," svg{&,& *{color:",";}}"],e=>e.theme.typography.p16_600,e=>{let{theme:t}=e;return t.spacing.double},e=>{let{theme:t}=e;return"".concat(t.spacing.triple,"px 0 ").concat(t.spacing.triple,"px ").concat(t.spacing.triple,"px")},e=>{let{isOpen:t,boxRoundness:o}=e;return t?"".concat(I(o),"px ").concat(I(o),"px 0 0"):"".concat(I(o),"px")},e=>{let{theme:t}=e;return t.colorPalette.grey400},e=>{let{theme:t}=e;return t.colorPalette.grey50},e=>{let{$notAllowedToCollapse:t}=e;return t?"default":"pointer"},e=>{let{theme:t}=e;return t.colorPalette.grey900},e=>"right"===e.iconPosition?"\n      flex-direction: row-reverse;\n      justify-content: space-between;\n      width: 100%;\n      padding: 12px;\n    ":"",e=>"large"===e.size?"\n      background-color: #ffffff;\n      height: 96px;\n      padding: 32px;\n      font-size: 20px;\n      font-style: normal;\n      font-weight: 600;\n      line-height: 28px;\n      color: #4C5C7C;\n      border: none;\n\n      @media (max-width: 768px) {\n        font-size: 14px;\n        font-style: normal;\n        font-weight: 600;\n        line-height: 24px;\n        height: 56px;\n        padding: 16px;\n      }\n    ":"medium"===e.size?"\n      background-color: #ffffff;\n      height: 64px;\n      border: none;\n      padding: 16px 32px;\n      font-size: 18px;\n      font-style: normal;\n      font-weight: 500;\n      line-height: 28px;\n      color: #2E4168;\n\n      @media (max-width: 768px) {\n        font-size: 14px;\n        font-style: normal;\n        font-weight: 600;\n        line-height: 24px;\n        height: 56px;\n        padding: 16px;\n      }\n    ":"",e=>{let{theme:t}=e;return t.colorPalette.grey700}),z=C.Ay.span.withConfig({componentId:"sc-43026fd2-2"})(["overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;"]),$=C.Ay.div.withConfig({componentId:"sc-43026fd2-3"})(["display:",";padding:",";max-height:",";visibility:",";border-style:solid;border-width:0 1px 1px 1px;border-color:",";border-radius:",";",""],e=>{let{isOpen:t}=e;return t?"block":"none"},e=>{let{isOpen:t,theme:o}=e;return t?"".concat(o.spacing.sextuple,"px"):"0"},e=>{let{isOpen:t}=e;return t?"auto":"0"},e=>{let{isOpen:t}=e;return t?"visible":"hidden"},e=>{let{theme:t}=e;return t.colorPalette.grey400},e=>{let{boxRoundness:t}=e;return"0 0 ".concat(I(t),"px ").concat(I(t),"px")},e=>"large"===e.size?"\n      border: none;\n      background-color: #ffffff;\n      padding: 0 32px 32px 32px;\n      font-size: 14px;\n      font-style: normal;\n      font-weight: 500;\n      line-height: 24px;\n\n      @media (max-width: 768px) {\n        font-size: 12px;\n        font-style: normal;\n        font-weight: 500;\n        line-height: 24px;\n        padding: 0 16px 16px 16px;\n      }\n    ":"medium"===e.size?"\n      border: none;\n      background-color: #ffffff;\n      padding: 4px 32px 32px 32px;\n      color: #4C5C7C;\n      font-size: 16px;\n      font-style: normal;\n      font-weight: 400;\n      line-height: 24px;\n\n       @media (max-width: 768px) {\n        font-size: 12px;\n        font-style: normal;\n        font-weight: 500;\n        line-height: 24px;\n        padding: 0 16px 16px 16px;\n      }\n    ":""),H=C.Ay.div.withConfig({componentId:"sc-43026fd2-4"})(["display:flex;align-items:center;justify-content:center;width:24px;height:24px;@media (max-width:768px){width:16px;height:16px;}"]),E=e=>{let{title:t,children:o,size:r="regular",iconPosition:l="left",boxRoundness:i,isOpen:n,isOpenInitially:a=!1,notAllowedToCollapse:c=!1,onToggle:d}=e,s=(0,C.DP)(),h=(0,k.U)("(max-width: 768px)"),p=void 0!==n,[u,g]=(0,w.useState)(!a),m=p?!n:u,x=(0,w.useMemo)(()=>("large"===r||"medium"===r)&&h?15:20,[r,h]),f=m?(0,v.jsx)(P.pte,{size:x,fill:s.colorPalette.grey900}):(0,v.jsx)(P.Ik,{size:x,fill:s.colorPalette.grey900});return(0,v.jsxs)(A,{children:[(0,v.jsxs)(_,{$notAllowedToCollapse:c,onClick:()=>
1{if(c)return;let e=!m;p||g(e),null==d||d(!e)},isOpen:!m,iconPosition:l,size:r,elementsMarginLeft:"right"===l?"none":"double",boxRoundness:i,children:[(0,v.jsx)(H,{children:f}),(0,v.jsx)(z,{children:t})]}),(0,v.jsx)($,{isOpen:!m,size:r,boxRoundness:i,children:o})]})};var R=o(76425),S=o(5849),O=o(16413),L=o(95480),T=o(46543),M=o(76100),B=o(29022),D=o(79651),F=o(31047),N=o(3439),U=o(33250),W=o(16982),J=o(40594),G=o(71976),Y=o(38560);let Q=new Set(["http:","https:","mailto:","sms:","tel:"]),V=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/),K=e=>"https://"===e||V.test(e),q=U.Db,X=[J.jL,W.v5,W.YW,q],Z=e=>{let{editorRef:t}=e,[o]=(0,Y.DF)(),r=(0,w.useCallback)(e=>{(0,F.jE)(o,e,X)},[o]),l=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let l=o.dispatchCommand(...t);return setTimeout(()=>o.focus(),0),l},i=(0,w.useCallback)(e=>{e?l(W.q7,void 0):l(W.uS,void 0)},[o]),n=(0,w.useCallback)(e=>{"h1"===e?o.update(()=>{let t=(0,N.vJ)();(0,N.I2)(t)&&((0,G.zI)(t,()=>(0,J.fi)(e)),setTimeout(()=>o.focus(),0))}):o.update(()=>{let e=(0,N.vJ)();(0,N.I2)(e)&&((0,G.zI)(e,()=>(0,N.lJ)()),setTimeout(()=>o.focus(),0))})},[o]),a=(0,w.useCallback)(e=>{let{url:t,openInNewTab:o}=e,r={url:(e=>{try{let t=new URL(e);if(!Q.has(t.protocol))return"about:blank"}catch(e){}return e})(t),target:o?"_blank":"_self"};if(!t)return void l(U.yW,null);l(U.yW,r)},[o]),c={editor:o,loadLexicalEditorContent:r,bold:()=>{l(N.mB,"bold"),setTimeout(()=>o.focus(),0)},italic:()=>l(N.mB,"italic"),underline:()=>l(N.mB,"underline"),bulletPoint:i,blockFormat:n,align:e=>l(N.fU,e),insertHyperlink:a,insertEmoji:e=>o.update(()=>{(0,N.H2)([(0,N.sT)(e)])})};return(0,w.useImperativeHandle)(t,()=>c,[]),null};var ee=o(75212),et=o(57130),eo=o(2669);let er=e=>{let t=e.anchor,o=e.focus,r=e.anchor.getNode(),l=e.focus.getNode();return r===l?r:e.isBackward()?(0,G.Nx)(o)?r:l:(0,G.Nx)(t)?r:l},el=()=>{let[e]=(0,Y.DF)(),{openPopover:t}=(0,eo.N5)(),o=(0,w.useCallback)(e=>{window.open(e,"_blank")},[]),r=(0,w.useCallback)(()=>{t(13)},[t]),l=(0,w.useCallback)(e=>{let t=(0,N.vJ)();if((0,N.I2)(t)){let l=er(t),i=(0,et.Bt)(l,U.FJ);return(0,U.FJ)(i)&&(e.metaKey||e.ctrlKey)?o(i.getURL()):(0,U.FJ)(i)&&r(),!0}return!1},[]);return(0,w.useEffect)(()=>{let t=(0,et.Sd)(e.registerCommand(N.d8,l,N.Ac));return()=>t()},[e]),(0,v.jsx)(ee.W,{validateUrl:K})},ei=e=>{let{onChange:t}=e,[o]=(0,Y.DF)();return(0,w.useEffect)(()=>{let e=o.registerUpdateListener(e=>{let{editorState:o}=e;return t(o)});return()=>e()},[o,t]),null},en=C.Ay.div.withConfig({componentId:"sc-8b04a26-0"})(["position:absolute;top:80px;left:0;overflow:hidden;user-select:none;white-space:nowrap;text-overflow:ellipsis;display:inline-block;pointer-events:none;"," color:",";"],e=>e.theme.typography.p16_500,e=>e.theme.colorPalette.grey700),ea=(0,w.memo)(e=>{let{value:t="Type here..."}=e;return(0,v.jsx)(en,{children:t})});var ec=o(69159),ed=o.n(ec);let es=C.Ay.div.withConfig({componentId:"sc-7b74fba5-0"})(["width:100%;border:0;display:flex;position:relative;outline:0;z-index:0;"]),eh=C.Ay.div.withConfig({componentId:"sc-7b74fba5-1"})(["flex:auto;position:relative;z-index:-1;display:block;"]),ep=C.Ay.div.withConfig({componentId:"sc-7b74fba5-2"})(["border-radius:4px;"]),eu={ltr:"ug_editor__ltr",rtl:"ug_editor__rtl",paragraph:"ug_editor__paragraph",heading:{h1:"ug_editor__h1",h2:"ug_editor__h2",h3:"ug_editor__h3"},text:{bold:"ug_editor__textBold",italic:"ug_editor__textItalic",underline:"ug_editor__textUnderline",strikethrough:"ug_editor__textStrikethrough",underlineStrikethrough:"ug_editor__textUnderlineStrikethrough"},link:"ug_editor__link",indent:"ug_editor__indent",list:{ul:"ug_editor__ul",listitem:"ug_editor__listItem",nested:{listitem:"ug_editor__nestedListItem"},olDepth:["ug_editor__ol1","ug_editor__ol2","ug_editor__ol3","ug_editor__ol4","ug_editor__ol5"]}},eg=C.Ay.div.withConfig({componentId:"sc-fcd8a531-0"})(["width:808px;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:",";border-radius:12px;border:1px solid ",";box-shadow:",";"],e=>e.theme.colorPalette.grey100,e=>e.theme.colorPalette.grey300,e=>e.theme.shadow.shadow100),em=(0,C.Ay)(eg).withConfig({componentId:"sc-fcd8a531-1"})(["min-width:525px;width:100%;flex-direction:column;align-items:flex-start;min-height:","px;height:fit-content;padding:0 24px 24px 24px;background-color:",";gap:16px;"],230,e=>e.theme.colorPalette.white900),ex=(0,C.Ay)(j.VP).withConfig({componentId:"sc-fcd8a531-2"})(["position:relative;width:100%;height:fit-content;gap:24px;"]),ef=(0,C.Ay)(j.fI).withConfig({componentId:"sc-fcd8a531-3"})(["position:sticky;z-index:",";top:-24px;width:calc(100% + 48px);margin:0 -24px 0 -24px;padding:8px 24px 8px 24px;border-top:1px solid ",";border-bottom:1px solid ",";background-color:",";border-radius:12px 12px 0 0;"],e=>e.theme.zIndex.toolbar,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.grey100),eb=(e,t)=>console.log("error",e,"editor",t),ey=(0,w.forwardRef)((e,t)=>{let{id:o,placeholder:r,content:l,setContent:i}=e,{state:n,setState:a}=(e=>{let{initialValue:t,onChange:o}=e,[r,l]=(0,w.useState)(t),i=(0,w.useMemo)(()=>ed()(e=>o(e),400),[o]);return(0,w.useEffect)(()=>(i(r),()=>{i.cancel()}),[r]),{state:r,setState:l}}
1)({initialValue:l,onChange:i}),c=(0,w.useCallback)(e=>{a(JSON.stringify(e.toJSON()))},[a]);(0,w.useEffect)(()=>{setTimeout(()=>{var e;return null==(e=t.current)?void 0:e.loadLexicalEditorContent(l)},0)},[o]);let d=(0,w.useMemo)(()=>(0,v.jsx)(es,{className:"editor-scroller",children:(0,v.jsx)(eh,{className:"editor",children:(0,v.jsx)(L.a,{style:{position:"relative",maxWidth:"100%",width:"100%",height:"100%",minHeight:"".concat(230,"px"),top:0,left:0,outline:"none"}})})}),[]);return(0,v.jsxs)(R.n,{initialConfig:{namespace:"Editor",editorState:e=>(0,F.jE)(e,n,X),theme:eu,nodes:X,onError:eb},children:[(0,v.jsx)(O.$,{contentEditable:d,placeholder:(0,v.jsx)(ea,{value:r}),ErrorBoundary:S.A}),(0,v.jsx)(ei,{onChange:c}),(0,v.jsx)(Z,{editorRef:t}),(0,v.jsx)(T.G,{}),(0,v.jsx)(el,{}),(0,v.jsx)(M.Q,{}),(0,v.jsx)(B.m,{}),(0,v.jsx)(D.x,{})]},o)});var ev=o(75177);let ew=C.Ay.div.withConfig({componentId:"sc-d67e22cd-0"})(["width:fit-content;height:fit-content;background-color:",";padding:4px;box-sizing:border-box;border:solid 1px ",";border-radius:8px;display:flex;flex-direction:row;align-items:center;gap:4px;"],e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.grey400),eP=C.Ay.button.withConfig({componentId:"sc-d67e22cd-1"})(["all:unset;width:28px;height:28px;display:flex;align-items:center;flex-direction:column;justify-content:center;box-sizing:border-box;border-radius:4px;background-color:",";color:",";"," &:focus,&:focus-within,&[data-focus='true']{background-color:",";border:solid 1px ",";svg{fill:",";}}&:hover{cursor:pointer;background-color:",";","}"],e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.grey900,e=>e.$active&&(0,C.AH)(["border:none;svg{fill:",";}"],"danger"===e.$type?e.theme.colorPalette.red500:e.theme.colorPalette.blue600),e=>e.theme.colorPalette.grey100,e=>"danger"===e.$type?e.theme.colorPalette.red300:e.theme.colorPalette.grey400,e=>"danger"===e.$type?e.theme.colorPalette.red500:e.$active?e.theme.colorPalette.blue600:e.theme.colorPalette.grey900,e=>e.theme.colorPalette.grey100,e=>"danger"===e.$type&&(0,C.AH)(["svg{fill:",";}"],e.theme.colorPalette.red500)),ek=C.Ay.div.withConfig({componentId:"sc-d67e22cd-2"})(["width:1px;height:28px;padding:2px 0;margin:0 2px;display:flex;align-items:center;flex-direction:column;justify-content:center;box-sizing:border-box;background-color:",";"],e=>e.theme.colorPalette.grey400),eC=C.Ay.div.withConfig({componentId:"sc-d67e22cd-3"})(["display:flex;position:relative;"]),ej=C.Ay.div.withConfig({componentId:"sc-d67e22cd-4"})(["display:flex;flex-shrink:0;position:absolute;width:4px;height:2px;top:0;right:-4px;"]);var eA=o(71194),eI=o(92942),e_=o(44348),ez=o(78866),e$=o(65816),eH=o.n(e$);let eE=C.Ay.div.attrs(e=>({style:{position:e.$position,opacity:e.$visible?"1":"0",top:e.$top?"".concat(e.$top,"px"):"",left:e.$left?"".concat(e.$left,"px"):""}})).withConfig({componentId:"sc-7ef0deb4-0"})(["z-index:",";display:flex;align-items:center;box-sizing:border-box;border-radius:6px;padding:4px 8px;color:",";background-color:",";box-shadow:",";pointer-events:none;",""],e=>e.theme.zIndex.tooltip,e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.grey900,e=>e.theme.shadow.shadow200,e=>e.isMultiline?"width: ".concat(e.$width,"px;"):""),eR=C.Ay.div.attrs(e=>({style:{top:e.$top?"".concat(e.$top,"px"):"",left:e.$left?"".concat(e.$left,"px"):"",right:e.$right?"".concat(e.$right,"px"):"",bottom:e.$bottom?"".concat(e.$bottom,"px"):"",transform:"rotate(45deg)"}})).withConfig({componentId:"sc-7ef0deb4-1"})(["position:absolute;border-radius:1px 0 0 0;background-color:",";width:6px;height:6px;"],e=>e.theme.colorPalette.grey900),eS=C.Ay.div.withConfig({componentId:"sc-7ef0deb4-2"})([""]),eO=(0,C.AH)(["white-space:normal !important;width:","px;padding:12px 8px;"],e=>e.$width),eL=C.Ay.span.withConfig({componentId:"sc-7ef0deb4-3"})([""," white-space:nowrap !important;user-select:none;",""],e=>e.theme.typography.p12_500,e=>e.isMultiline?eO:""),eT=e=>{let{hidden:t=!1,label:o,children:r=null,initialShow:l=!1,alwaysShow:i=!1,onHidden:n,onVisible:a,position:c=null,offsetProps:d,tooltipPlacement:s="bottom",TextWrapper:h=eL,componentWrapperStyle:p={},isMultiline:u=!1,width:g=null}=e,m=(0,w.useRef)(null),[x,f]=(0,w.useState)(!1),{x:b,y,reference:P,floating:k,strategy:C,update:j,refs:A,placement:I,middlewareData:_}=(0,eI.we)({strategy:c||"absolute",placement:s,middleware:[(0,e_.cY)({mainAxis:8,crossAxis:0,...d}),(0,e_.BN)(),(0,e_.UU)(),(0,eI.UE)({element:m})]}),z=null==_?void 0:_.arrow,$=(0,w.useMemo)(()=>eH()(j,100),[]),H={top:"$bottom",right:"$left",bottom:"$top",left:"$right"}[I.split("-")[0]],E={$left:null==z?void 0:z.x,$top:null==z?void 0:z.y,$right:void 0,$bottom:void 0,[H]:"-3"},R=()=>{j(),f(!0),null==a||a()},S=()=>{i||R()},O=()=>{i||(f(!1),null==n||n())};return(0,w.useEffect)(()=>{let e;return(l||i)&&(e=setTimeout(()=>R(),50)),()=>{clearTimeout(e)}},[]),(0,w.useEffect)(()=>
1{if(!A.reference.current||!A.floating.current)return;let e=[...(0,ez.Rd)(A.reference.current),...(0,ez.Rd)(A.floating.current)];return e.forEach(e=>{e.addEventListener("scroll",$),e.addEventListener("resize",$)}),()=>{e.forEach(e=>{e.removeEventListener("scroll",$),e.removeEventListener("resize",$)})}},[A.reference,A.floating,$]),(0,w.useEffect)(()=>{$()},[o]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(eS,{className:"tooltip-wrapper",ref:P,onMouseEnter:S,onFocus:S,onMouseLeave:O,onBlur:O,style:p,children:r}),!t&&(0,v.jsxs)(eE,{ref:k,$visible:x,$position:C,$top:y,$left:b,isMultiline:u,$width:g,children:[(0,v.jsx)(h,{$width:g,isMultiline:u,children:o}),(0,v.jsx)(eR,{ref:m,...E})]})]})};var eM=o(89385);let eB=e=>{if(!(null==e?void 0:e.getBoundingClientRect))return;let{top:t,height:o}=e.getBoundingClientRect(),r=t+o+32;if(r>window.innerHeight){let e=r-window.innerHeight;window.scrollBy({top:e,left:0,behavior:"smooth"})}},eD=C.Ay.div.attrs(e=>({style:{position:e.$position,visibility:e.$visible?"visible":"hidden",top:e.$top?"".concat(e.$top,"px"):"",left:e.$left?"".concat(e.$left,"px"):""}})).withConfig({componentId:"sc-31f6265c-0"})(["z-index:",";display:flex;flex-direction:column;align-items:flex-start;gap:16px;box-sizing:border-box;border-radius:6px;padding:","px;border:",";color:",";background-color:",";box-shadow:",";user-select:none;"],e=>e.theme.zIndex.popover,e=>e.$titled?16:8,e=>"extension"===e.app?"none":"1px solid ".concat(e.theme.colorPalette.grey300),e=>"extension"===e.app?e.theme.colorPalette.white900:e.theme.colorPalette.grey900,e=>"extension"===e.app?e.theme.colorPalette.black800:e.theme.colorPalette.white900,e=>e.theme.shadow.shadow200),eF=C.Ay.div.attrs(e=>({style:{top:e.$top?"".concat(e.$top,"px"):"",left:e.$left?"".concat(e.$left,"px"):"",right:e.$right?"".concat(e.$right,"px"):"",bottom:e.$bottom?"".concat(e.$bottom,"px"):"",transform:"rotate(45deg)"}})).withConfig({componentId:"sc-31f6265c-1"})(["position:absolute;background-color:",";width:11px;height:11px;z-index:-1;"],e=>"extension"===e.app?e.theme.colorPalette.black800:e.theme.colorPalette.white900),eN=C.Ay.div.withConfig({componentId:"sc-31f6265c-2"})(["width:fit-content;height:fit-content;"]),eU=C.Ay.div.withConfig({componentId:"sc-31f6265c-3"})(["width:100%;display:flex;justify-content:center;"]),eW=C.Ay.span.withConfig({componentId:"sc-31f6265c-4"})([""," color:",";white-space:nowrap;user-select:none;"],e=>e.theme.typography.p14_600,e=>"extension"===e.app?e.theme.colorPalette.white900:e.theme.colorPalette.grey900);C.Ay.div.withConfig({componentId:"sc-31f6265c-5"})([""," padding:8px;text-align:left;",""],e=>{let{$fontSize:t}=e;return"number"==typeof t?(0,C.AH)([""," font-size:","px;"],e=>e.theme.typography.p12_500,t):(0,C.AH)(["",""],e=>e.theme.typography.p12_600)},e=>e.$fontSize?"font-size: ".concat(e.$fontSize,"px;"):""),C.Ay.button.withConfig({componentId:"sc-31f6265c-6"})(["width:120px;border-radius:8px;outline:2px solid transparent;border:none;background:transparent;cursor:pointer;color:",";&:hover{background-color:",";}&:focus,&:focus-within{background-color:transparent;color:",";outline:2px solid ",";}"],e=>e.$active?e.theme.colorPalette.blue500:e.theme.colorPalette.yellow50,e=>e.theme.colorPalette.white100,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.blue400);let eJ="popover-content-wrapper",eG=e=>{let{app:t="panel",hidden:o=!1,title:r,content:l,children:i=null,onHidden:n,onVisible:a,popoverPlacement:c="bottom",popoverStyle:d={},scrollOnVisible:s=eB,activeComponentId:h,frameDocument:p}=e,u=(0,w.useRef)(null),[g,m]=(0,w.useState)(!1),[x,f]=(0,w.useState)(0),b=e=>{if(e){g||f(Date.now()),m(!0),null==a||a();return}g&&(Date.now()-x<250||(m(!1),f(0),null==n||n()))},y="extension"===t?[(0,e_.cY)({mainAxis:16,crossAxis:0}),(0,eI.UE)({element:u})]:[(0,e_.cY)({mainAxis:8,crossAxis:0}),(0,eI.UE)({element:u}),(0,e_.BN)()],{x:P,y:k,reference:C,floating:j,strategy:A,update:I,refs:_,placement:z,middlewareData:$}=(0,eI.we)({strategy:"absolute",placement:c,middleware:y}),H="extension"===t?((e,t,o)=>{let r=o.querySelector("[id*=editor-component-".concat(t,"]"));if(!(null==r?void 0:r.getBoundingClientRect))return e;let l=Math.max(r.getBoundingClientRect().left,0);return l+e<0?-l:e})(P,h,p):P,E=null==$?void 0:$.arrow,R=(0,w.useMemo)(()=>eH()(I,100),[]),S={top:"$bottom",right:"$left",bottom:"$top",left:"$right"}[z.split("-")[0]],O={$left:"number"==typeof(null==E?void 0:E.x)?E.x+P-H:0,$top:null==E?void 0:E.y,$right:void 0,$bottom:void 0,[S]:"-3"},L=()=>{I(),b(!0),setTimeout(()=>s(_.floating.current),100)},T=()=>{b(!1)};return(0,eM.A)({elementsToExcludeByRef:[_.floating,_.reference],elementsToExcludeByIdOrClassName:[eJ],callback:T}),(0,w.useEffect)(()=>{o&&g&&(m(!1),f(0))},[o,g]),(0,w.useEffect)(()=>
1{if(!_.reference.current||!_.floating.current)return;g&&setTimeout(()=>s(_.floating.current),100);let e=[...(0,ez.Rd)(_.reference.current),...(0,ez.Rd)(_.floating.current)];return e.forEach(e=>{e.addEventListener("scroll",R),e.addEventListener("resize",R)}),o||g||L(),()=>{e.forEach(e=>{e.removeEventListener("scroll",R),e.removeEventListener("resize",R)})}},[_.reference,_.floating,R,g,o]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(eN,{className:"popover-wrapper",ref:C,onClick:()=>{if(g)return void T();L()},children:i}),!o&&(0,v.jsxs)(eD,{id:eJ,app:t,ref:j,$visible:g,$position:A,$top:k,$left:H,$titled:!!r,style:d,children:[r&&(0,v.jsx)(eU,{children:(0,v.jsx)(eW,{app:t,children:r})}),l,"extension"===t&&(0,v.jsx)(eF,{ref:u,app:t,...O})]})]})};function eY(){return(eY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var eQ=function(e){return w.createElement("svg",eY({xmlns:"http://www.w3.org/2000/svg",width:4,height:2,fill:"none"},e),l||(l=w.createElement("path",{fill:"#2E4168",d:"M2 2 0 0h4z"})))},eV=o(47537),eK=o(13252);let eq={none:null,delete:eK.Ku6,bold:eK.L0M,italic:eK.Adp,underline:eK.UtK,bulletPoint:eK.wR2,heading:eK.Isf,heading1:eK.vmM,heading2:eK.Qkt,heading3:eK.JIf,paragraph:eK.KZ3,alignLeft:eK.eih,alignCenter:eK.svU,alignRight:eK.fzT,alignJustify:eK.J9e,textFormat:eK.Y4v,textColor:eK.y2Y,image:eK.t5g,video:eV.o0O,hyperlink:eK.Y$G,emojis:eK.TEC,code:eK.ze2,codeBlock:eK.CWz,callout:eK.XiU,table:eK.k6B},eX=e=>{let{item:t,first:o,last:r,popoverActive:l,togglePopover:i,openPopover:n,closePopover:a}=e,{icon:c,title:d,type:s,active:h,onClick:p,contentTitle:u,content:g}=t,m=eq[c],x={size:16,color:eA.w.colorPalette.grey900},f="danger"===s?(0,v.jsx)("div",{onClick:e=>{i(),null==p||p(e)},children:g}):g;return(0,v.jsx)(eG,{app:"panel",hidden:!l,title:u,content:f,onVisible:n,onHidden:a,popoverStyle:t.popoverStyle,children:(0,v.jsx)(eT,{hidden:l,label:d,children:(0,v.jsx)(eP,{$type:s,$active:h,$first:o,$last:r,"data-focus":l,children:(0,v.jsxs)(eC,{children:[(0,v.jsx)(m,{...x}),"dropdown"===s&&(0,v.jsx)(ej,{color:x.color,children:(0,v.jsx)(eQ,{})})]})})})})},eZ=e=>{let{item:t,first:o,last:r}=e,{icon:l,title:i,type:n,active:a,onClick:c}=t,d=eq[l],s={size:16,color:eA.w.colorPalette.grey900};return(0,v.jsx)(eT,{label:i,children:(0,v.jsx)(eP,{$type:n,$active:a,$first:o,$last:r,onMouseDown:c,children:(0,v.jsx)(eC,{children:(0,v.jsx)(d,{...s})})})})},e0=e=>{let{items:t}=e,{context:{activePopoverIndex:o},togglePopover:r,openPopover:l,closePopover:i}=(0,eo.N5)(),n=(0,w.useCallback)((e,t,n,a)=>{if("separator"===e.type)return(0,v.jsx)(ek,{$first:t,$last:n},"".concat(a,"-").concat(e.title));if(["dropdown","danger"].includes(e.type)){let c=(0,ev.Et)(o)&&o===a;return(0,v.jsx)(eX,{popoverActive:c,togglePopover:()=>r(a),openPopover:()=>l(a),closePopover:()=>i(a),item:e,first:t,last:n},"".concat(a,"-").concat(e.title))}return(0,v.jsx)(eZ,{item:e,first:t,last:n},"".concat(a,"-").concat(e.title))},[o,r]);return(0,v.jsx)(ew,{children:t.map((e,t,o)=>n(e,0===t,t+1===o.length,t))})},e1=(0,C.AH)(["::-webkit-scrollbar{visibility:hidden;display:inherit;width:7px;height:7px;}::-webkit-scrollbar-track{visibility:hidden;display:inherit;}::-webkit-scrollbar-thumb{visibility:hidden;display:inherit;background-color:",";border-radius:4px;}&:hover{::-webkit-scrollbar{visibility:visible;}::-webkit-scrollbar-track{visibility:visible;}::-webkit-scrollbar-thumb{visibility:visible;}}"],e=>e.theme.colorPalette.blackOverlay500),e2=C.Ay.div.withConfig({componentId:"sc-eecf62a8-0"})(["height:160px;border-radius:5px;display:flex;flex-direction:column;overflow-y:scroll;padding:0 8px;",""],e1),e4=C.Ay.div.withConfig({componentId:"sc-eecf62a8-1"})(["width:100%;display:flex;flex-direction:row;"]),e6=C.Ay.div.withConfig({componentId:"sc-eecf62a8-2"})(["width:32px;height:32px;line-height:32px;margin:0;padding:0;border:0;font-size:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;box-sizing:border-box;&:focus,&:focus-within,&:active{border:1px solid ",";}&:hover{cursor:pointer;background-color:",";}"],e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.blue50),e3=[["\uD83D\uDE00","\uD83D\uDE06","\uD83D\uDE05","\uD83D\uDE02","\uD83D\uDE09","\uD83D\uDE0A"],["\uD83D\uDE07","\uD83D\uDE0D","\uD83E\uDD29","\uD83D\uDE0A","\uD83D\uDE1D","\uD83E\uDD17"],["\uD83E\uDD14","\uD83D\uDE11","\uD83D\uDE0F","\uD83D\uDE44","\uD83D\uDE2C","\uD83D\uDE14"],["\uD83D\uDE37","\uD83D\uDE35","\uD83E\uDD2F","\uD83E\uDD73","\uD83D\uDE0E","\uD83E\uDD13"],["\uD83D\uDE41","\uD83D\uDE33","\uD83E\uDD7A","\uD83D\uDE13","\uD83D\uDE31","\uD83D\uDE2D"],["\uD83D\uDE24","\uD83D\uDE20","☠️","\uD83E\uDD21","\uD83D\uDC7B","\uD83D\uDC7D"],["\uD83E\uDD16","\uD83D\uDE38","\uD83D\uDE3B","\uD83D\uDE40","\uD83D\uDE48","\uD83D\uDE49"],["\uD83D\uDE4A","❤️","\uD83D\uDC99","\uD83D\uDCAF","\uD83D\uDCAC","\uD83D\uDC4B"],["\uD83D\uDC4C","✌","\uD83D\uDC4D","\uD83D\uDC4E","\uD83D\uDC48","\uD83D\uDC49"],["\uD83D\uDC46","\uD83D\uDC47","\uD83D\uDC4F","\uD83D\uDE4C","\uD83D\uDCAA","\uD83D\uDC40"],["\uD83D\uDE4B","\uD83E\uDDD1‍\uD83D\uDCBB","\uD83E\uDDD1‍\uD83D\uDE80","\uD83E\uDDDF","\uD83D\uDC83","\uD83C\uDFC2"],["\uD83C\uDFC4‍️","\uD83C\uDFCB","\uD83E\uDDD8","\uD83D\uDC36","\uD83E\uDD8A","\uD83D\uDC31"],["\uD83E\uDD81","\uD83E\uDD84","\uD83D\uDC3B","\uD83D\uDC3C","\uD83D\uDC23","\uD83D\uDC2C"],["\uD83D\uDC20","\uD83E\uDD8B","\uD83D\uDC90","\uD83C\uDF39","\uD83C\uDF3B","\uD83C\uDF32"],["\uD83C\uDF4E","\uD83E\uDD51","\uD83C\uDF57","\uD83C\uDF54","\uD83C\uDF55","\uD83C\uDF66"],["\uD83C\uDF82","\uD83C\uDF6A","\uD83C\uDF7E","\uD83C\uDF7B","\uD83C\uDF7D","\uD83C\uDF0D"],["\uD83C\uDFDD","\uD83C\uDFE1","\uD83C\uDF03","\uD83C\uDF05","\uD83D\uDE97","\uD83D\uDEF5"],["\uD83D\uDE8C","\uD83D\uDEA8","⛵","✈️","⏳","⏰"],["\uD83C\uDF19","\uD83C\uDF1E","⭐","\uD83C\uDF08","❄️","\uD83D\uDD25"],["⛄","\uD83C\uDF84","\uD83C\uDF88","\uD83C\uDF89","\uD83C\uDF81","\uD83C\uDFC6"],["⚽","\uD83C\uDFC0","\uD83D\uDECD","\uD83D\uDCE2","\uD83D\uDD0D","\uD83D\uDCF8"],["\uD83D\uDCA1","\uD83D\uDCDA","\uD83D\uDCB0","\uD83D\uDCB3","✉️","✏️"],["\uD83D\uDCCD","\uD83D\uDD12","\uD83D\uDD11","\uD83D\uDEE0","⚖️","\uD83E\uDE7A"],["⚠️","\uD83D\uDEAB","\uD83D\uDD1D","❓","❗","\uD83D\uDCB2"],["♻","✅","❌","\uD83C\uDFF3️‍\uD83C\uDF08","\uD83C\uDDFA\uD83C\uDDF8","\uD83C\uDDE7\uD83C\uDDF7"],["\uD83C\uDDF9\uD83C\uDDF7","\uD83C\uDDEF\uD83C\uDDF5","\uD83C\uDDEC\uD83C\uDDE7","\uD83C\uDDEA\uD83C\uDDF8","\uD83C\uDDEB\uD83C\uDDF7","\uD83C\uDDF2\uD83C\uDDFD"],["\uD83C\uDDE8\uD83C\uDDF3","\uD83C\uDDE9\uD83C\uDDEA","\uD83C\uDDEE\uD83C\uDDF9","\uD83C\uDDF7\uD83C\uDDFA"]],e5=e=>{let{insertEmoji:t}=e;return(0,v.jsx)(e2,{children:e3.map((e,o)=>(0,v.jsx)(e4,{children:e.map((e,r)=>(0,v.jsx)(e6,{onClick:()=>t(e3[o][r]),children:e},r))},o))})};var e8=o(67292);function e7(e){return null!=e}function e9(){return(e9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var te=function(e){return w.createElement("svg",e9({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 10"},e),i||(i=w.createElement("g",{clipPath:"url(#check-large_svg__a)"},w.createElement("path",{fill:"#fff",d:"M4.098 8.692 1.203 5.797a.445.445 0 0 1 0-.63l.63-.63a.445.445 0 0 1 .63 0l1.95 1.95L8.59 2.312a.445.445 0 0 1 .63 0l.63.63a.445.445 0 0 1 0 .63L4.728 8.691a.445.445 0 0 1-.63 0"}))),n||(n=w.createElement("defs",null,w.createElement("clipPath",{id:"check-large_svg__a"},w.createElement("path",{fill:"#fff",d:"M.98.657h9v9h-9z"})))))};function tt(){return(tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var to=function(e){return w.createElement("svg",tt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 8 8"},e),a||(a=w.createElement("path",{fill:"#fff",d:"M3.012 6.65.751 4.388a.35.35 0 0 1 0-.492l.492-.492a.35.35 0 0 1 .492 0l1.523 1.524 3.263-3.263a.35.35 0 0 1 .492 0l.492.492a.35.35 0 0 1 0 .492l-4.001 4a.35.35 0 0 1-.492 0"})))};function tr(){return(tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var tl=function(e){return w.createElement("svg",tr({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 7 7"},e),c||(c=w.createElement("path",{fill:"#fff",d:"M2.679 6.188.736 4.246a.3.3 0 0 1 0-.423l.423-.422a.3.3 0 0 1 .423 0L2.89 4.709l2.803-2.803a.3.3 0 0 1 .422 0l.423.423a.3.3 0 0 1 0 .423L3.101 6.188a.3.3 0 0 1-.422 0"})))};function ti(){return(ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var tn=function(e){return w.createElement("svg",ti({xmlns:"http://www.w3.org/2000/svg",width:16,height:4,fill:"none",viewBox:"0 0 14 2"}
1,e),d||(d=w.createElement("path",{fill:"#FFF",d:"M0 0h14v2H0z"})))};function ta(){return(ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var tc=function(e){return w.createElement("svg",ta({xmlns:"http://www.w3.org/2000/svg",width:14,height:3,fill:"none",viewBox:"0 0 14 2"},e),s||(s=w.createElement("path",{fill:"#FFF",d:"M0 0h14v2H0z"})))};function td(){return(td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}var ts=function(e){return w.createElement("svg",td({xmlns:"http://www.w3.org/2000/svg",width:12,height:2,fill:"none",viewBox:"0 0 14 2"},e),h||(h=w.createElement("path",{fill:"#FFF",d:"M0 0h14v2H0z"})))};let th=(0,C.AH)(["width:14px;height:14px;"]),tp=(0,C.AH)(["width:16px;height:16px;"]),tu=(0,C.AH)(["width:20px;height:20px;"]),tg=14,tm=16,tx=20,tf=(0,C.AH)(["width:18px;height:18px;"]),tb=(0,C.AH)(["width:20px;height:20px;"]),ty=(0,C.AH)(["width:24px;height:24px;"]),tv={checkbox:p,checkmark:u,focus:g},tw=e=>e===eA.A.colorPalette.grey900?{checked:eA.A.colorPalette.grey900,hover:eA.A.colorPalette.grey600,outline:eA.A.colorPalette.grey500,border:eA.A.colorPalette.grey700}:{},tP=C.Ay.input.attrs(()=>({type:"checkbox"})).withConfig({componentId:"sc-885a60e-0"})(["border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;"]),tk=C.Ay.div.withConfig({componentId:"sc-885a60e-1"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;flex-shrink:0;",";border-radius:",";box-sizing:border-box;background-color:unset;&:active,&:focus-within{"," "," ","}"],e=>tv.focus[e.size],e=>"small"===e.size?"6px":"8px",e=>!e.disabled&&(0,C.AH)(["background-color:",";"],"dark"===e.variant?e.theme.colorPalette.blue400:e.theme.colorPalette.blue200),e=>!e.disabled&&(0,C.AH)(["","{background-color:",";}"],tj,e.theme.colorPalette.blue500),e=>!e.outlined&&(e=>e7(e)&&0!==e.length)(e.label)&&(0,C.AH)(["","{background-color:",";border:1px solid ",";}"],tC,"dark"===e.variant?e.theme.colorPalette.black800:e.theme.colorPalette.white900,e.theme.colorPalette.blue500)),tC=C.Ay.div.withConfig({componentId:"sc-885a60e-2"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;",";border-radius:",";box-sizing:border-box;position:relative;background-color:",";border:1px solid ",";&&[disabled]{","}"],e=>tv.checkbox[e.size],e=>"small"===e.size?"5px":"6px",e=>"dark"===e.variant?e.theme.colorPalette.black800:e.theme.colorPalette.white900,e=>"dark"===e.variant?e.theme.colorPalette.grey600:e.theme.colorPalette.grey400,e=>!e.outlined&&(0,C.AH)(["background-color:",";"],"dark"===e.variant?e.theme.colorPalette.black800:e.theme.colorPalette.grey100)),tj=C.Ay.div.withConfig({componentId:"sc-885a60e-3"})(["",";display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:",";background-color:",";box-sizing:border-box;padding:",";g{clip-path:unset !important;}"," ",""],e=>tv.checkbox[e.size],e=>"small"===e.size?"5px":"6px",e=>e.customInputColor?tw(e.customInputColor).checked:e.theme.colorPalette.blue600,e=>"small"===e.size?"3px":"4px",e=>e.disabled&&e.outlined&&(0,C.AH)(["background-color:",";"],e.theme.colorPalette.blue400),e=>e.disabled&&!e.outlined&&(0,C.AH)(["background-color:",";"],"dark"===e.variant?e.theme.colorPalette.grey800:e.theme.colorPalette.grey400)),tA=C.Ay.div.withConfig({componentId:"sc-885a60e-4"})(["display:flex;width:calc(100% - ","px - 4px - ","px);"],e=>tv.checkmark[e.size],4),tI=C.Ay.span.withConfig({componentId:"sc-885a60e-5"})(["",";color:",";user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&&[disabled]{color:",";}"],e=>"small"===e.size?e.theme.typography.p12_500:e.boldLabel?e.theme.typography.p14_600:e.theme.typography.p14_500,e=>"dark"===e.variant?e.theme.colorPalette.grey400:e.theme.colorPalette.grey900,e=>"dark"===e.variant?e.theme.colorPalette.grey800:e.theme.colorPalette.grey600),t_=e=>e.hasInput?"small"===e.size?40:"medium"===e.size?44:48:"small"===e.size?32:"medium"===e.size?36:40,tz=e=>e.hasInput?"small"===e.size?"4px 4px 4px 12px":"6px 6px 6px 12px":"8px 16px 8px 12px",t$=C.Ay.label.withConfig({componentId:"sc-885a60e-6"})(["display:flex;flex-direction:row;align-items:center;gap:","px;width:",";cursor:pointer;&&[disabled]{cursor:not-allowed;}"," &:hover,&[data-hover='true']{","}&:active,&:focus-within{","}"],4,e=>e.$fullWidth?"100%":e.$width?"".concat(e.$width,"px"):"fit-content",e=>e.outlined&&(0,C.AH)(["padding:",";box-sizing:border-box;border-radius:12px;height:","px;background-color:",";border:1px solid ",";&&[disabled]{background-color:",";border:1px solid ",";}&:hover,&[data-hover='true']{background-color:",";border:1px solid ",";}&:active,&:focus-within{background-color:",";border:1px solid ",";}"],tz,t_,e.theme.colorPalette.white900,e.theme.colorPalette.grey300,e.theme.colorPalette.grey100,e.theme.colorPalette.grey300,e.theme.colorPalette.white900,e.theme.colorPalette.grey600,e.theme.colorPalette.grey50,e.theme.colorPalette.blue400),e=>!e.disabled&&(0,C.AH)(["","{background-color:",";border:1px solid ",";}","{background-color:",";}"],tC,"dark"===e.variant?e.theme.colorPalette.black800:e.theme.colorPalette.white900,e.customInputColor?tw(e.customInputColor).border:e.theme.colorPalette.blue500,tj,e.customInputColor?tw(e.customInputColor).hover:e.theme.colorPalette.blue500),e=>!e.disabled&&(0,C.AH)(["","{background-color:",";}"],tk,"dark"===e.variant?e.theme.colorPalette.blue400:e.customInputColor?tw(e.customInputColor).outline:e.theme.colorPalette.blue200));var tH=o(90752),tE=o(94375);let tR=(0,C.AH)(["background-color:",";color:",";border:solid 2px transparent;&:hover,&[data-hover='true']{background-color:",";}&:active,&[data-active='true']{background-color:",";outline:none;border:solid 2px transparent;}&:focus,&[data-focus='true']{border:solid 2px ",";background-color:",";}&&[disabled]{background-color:",";cursor:not-allowed;}"],e=>e.theme.colorPalette.blue600,e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.blue500,e=>e.theme.colorPalette.blue700,e=>e.theme.colorPalette.blue200,e=>e.theme.colorPalette.blue600,e=>e.theme.colorPalette.blue200),tS=(0,C.AH)(["background-color:",";color:",";border:solid 2px transparent;&:hover,&[data-hover='true']{background-color:",";}&:active,&[data-active='true']{background-color:",";}&:focus,&[data-focus='true']{border:solid 2px ",";background-color:",";}&&[disabled]{background-color:",";color:",";cursor:not-allowed;}"],e=>e.theme.colorPalette.blue700,e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.blue600,e=>e.theme.colorPalette.blue800,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.blue700,e=>e.theme.colorPalette.blue500,e=>e.theme.colorPalette.white700),tO=(0,C.AH)(["background-color:",";color:",";border:solid 2px transparent;&:hover,&[data-hover='true']{background-color:",";}&:active,&[data-active='true']{background-color:",";color:",";outline:none;border:solid 2px transparent;}&:focus,&[data-focus='true']{border:solid 2px ",";background-color:",";}&&[disabled]{background-color:",";color:",";cursor:not-allowed;}"],e=>e.theme.colorPalette.grey100,e=>e.theme.colorPalette.grey800,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.grey100,e=>e.theme.colorPalette.blue700,e=>e.theme.colorPalette.blue100,e=>e.theme.colorPalette.grey100,e=>e.theme.colorPalette.grey100,e=>e.theme.colorPalette.grey500),tL=(0,C.AH)(["background-color:",";color:",";border:solid 2px transparent;&:hover,&[data-hover='true']{background-color:",";}&:active,&[data-active='true']{background-color:",";}&:focus,&[data-focus='true']{border:solid 2px ",";}&&[disabled]{background-color:",";color:",";cursor:not-allowed;}"],e=>e.theme.colorPalette.grey800,e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.grey700,e=>e.theme.colorPalette.grey700,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.white200,e=>e.theme.colorPalette.white600),tT=(0,C.AH)(["background-color:",";color:",";border:solid 1px ",";&:hover,&[data-hover='true']{color:",";border:solid 1px ",";}&:active,&[data-active='true']{color:",";border:solid 1px ",";}&:focus,&[data-focus='true']{color:",";border:solid 1px ",";}&&[disabled]{color:",";border:solid 1px ",";cursor:not-allowed;}"],e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.grey900,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.blue700,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.blue700,e=>e.theme.colorPalette.blue600,e=>e.theme.colorPalette.blue700,e=>e.theme.colorPalette.blue100,e=>e.theme.colorPalette.grey500,e=>e.theme.colorPalette.grey300),tM=(0,C.AH)(["color:",";border:solid 1px ",";&:hover,&[data-hover='true']{color:",";border:solid 1px ",";background-color:",";}&:active,&[data-active='true']{color:",";border:solid 1px ",";background-color:",";}&:focus,&[data-focus='true']{color:",";border:solid 1px ",";outline:solid 1px ",";}&&[disabled]{color:",";background-color:transparent;border:solid 1px ",";cursor:not-allowed;}"],e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.blue300,e=>e.theme.colorPalette.blue300,e=>e.theme.colorPalette.white100,e=>e.theme.colorPalette.blue500,e=>e.theme.colorPalette.blue500,e=>e.theme.colorPalette.white100,e=>e.theme.colorPalette.blue300,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.white300,e=>e.theme.colorPalette.white300),tB=(0,C.AH)(["background-color:",";color:",";border:solid 2px transparent;&:hover,&[data-hover='true']{background-color:",";}&:active,&[data-active='true']{background-color:",";}&:focus,&[data-focus='true']{border:solid 2px ",";}&&[disabled]{background-color:",";cursor:not-allowed;}"],e=>e.theme.colorPalette.red600,e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.red500,e=>e.theme.colorPalette.red700,e=>e.theme.colorPalette.red200,e=>e.theme.colorPalette.red200),tD=(0,C.AH)(["background-color:",";color:",";border:solid 2px transparent;&:hover,&[data-hover='true']{background-color:",";}&:active,&[data-active='true']{background-color:",";}&:focus,&[data-focus='true']{border:solid 2px ",";background-color:",";}&&[disabled]{background-color:",";cursor:",";opacity:0.4;}"],e=>e.theme.colorPalette.green500,e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.green600,e=>e.theme.colorPalette.green600,e=>e.theme.colorPalette.green200,e=>e.theme.colorPalette.green500,e=>e.theme.colorPalette.green600,e=>e.enableDisabledClick?"pointer":"not-allowed"),tF=(0,C.AH)(["background-color:transparent;color:",";border:none;&:hover,&[data-hover='true']{color:",";}&:active,&[data-active='true']{color:",";}&:focus,&[data-focus='true']{color:",";}&&[disabled]{color:",";cursor:not-allowed;}"],e=>e.theme.colorPalette.grey900,e=>e.theme.colorPalette.blue600,e=>e.theme.colorPalette.blue900,e=>e.theme.colorPalette.blue600,e=>e.theme.colorPalette.grey500),tN=(0,C.AH)(["background-color:transparent;color:",";&:hover,&[data-hover='true']{color:",";}&:active,&[data-active='true']{color:",";}&:focus,&[data-focus='true']{color:",";outline:solid 1px ",";}&&[disabled]{color:",";background-color:transparent;cursor:not-allowed;}"],e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.blue300,e=>e.theme.colorPalette.blue500,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.white300),tU=(0,C.AH)(["background-color:",";color:",";box-shadow:",";border:solid 1px transparent;&:hover,&[data-hover='true']{box-shadow:",";}&:active,&[data-active='true']{outline:none;box-shadow:0px 8px 12px rgba(55,68,115,0.06),0px 2px 4px rgba(55,68,115,0.06);}&:focus,&[data-focus='true']{border:solid 1px ",";box-shadow:",";}&&[disabled]{color:",";cursor:not-allowed;box-shadow:",";}"],e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.grey900,e=>e.theme.shadow.shadow100,e=>e.theme.shadow.shadow200,e=>e.theme.colorPalette.blue100,e=>e.theme.shadow.shadow100,e=>e.theme.colorPalette.grey500,e=>e.theme.shadow.shadow100),tW=C.Ay.div.withConfig({componentId:"sc-70da3116-0"})(["display:flex;align-items:center;"]),tJ=C.Ay.span.withConfig({componentId:"sc-70da3116-1"})(["flex:1;"]),tG={xsmall:24,small:32,medium:36,large:40},tY=C.Ay.div.withConfig({componentId:"sc-70da3116-2"})(["width:","px;height:","px;display:flex;justify-content:center;align-items:center;border-left:1px solid ",";background-color:",";"],e=>tG[e.size],e=>tG[e.size],e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.white900),tQ=e=>e.white?(0,C.AH)(["background-color:",";"],e.theme.colorPalette.blue100):(0,C.AH)(["background-color:",";"],e.theme.colorPalette.grey100),tV=e=>e.white?(0,C.AH)(["background-color:",";"],e.theme.colorPalette.blue200):(0,C.AH)(["background-color:",";"],e.theme.colorPalette.grey200),tK=(0,C.AH)(["background-color:",";color:",";",";padding:0;&:hover,&:focus,&:active{}","{padding:8px 32px;display:inline-block;&:hover{",";color:",";}}","{&:hover{",";color:",";}}&:focus{","{",";color:",";}",":hover+ ","{background-color:transparent;color:currentColor;}",":hover{",";}}&[data-active='true']{",":hover{",";color:",";}",":hover{",";color:",";}}&&[disabled]{color:",";background-color:",";cursor:not-allowed;",",","{&,&:hover{background-color:transparent;color:currentColor;}}}"],e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.grey900,e=>!e.white&&(0,C.AH)(["border:solid 1px ",";"],e.theme.colorPalette.grey300),tJ,tQ,e=>e.theme.colorPalette.blue700,tY,tQ,e=>e.theme.colorPalette.blue600,tY,tV,e=>e.theme.colorPalette.blue700,tJ,tY,tJ,tV,tY,tQ,e=>e.theme.colorPalette.blue600,tJ,tQ,e=>e.theme.colorPalette.blue700,e=>e.theme.colorPalette.grey500,e=>e.theme.colorPalette.white900,tY,tJ),tq=(0,C.AH)(["background-color:transparent;color:",";border:none;&:hover,&[data-hover='true']{color:",";background-color:",";}&:active,&[data-active='true']{color:",";background-color:",";}&:focus,&[data-focus='true']{color:",";background-color:",";}&&[disabled]{color:",";cursor:not-allowed;background-color:transparent;}"],e=>e.theme.colorPalette.grey700,e=>e.theme.colorPalette.blue600,e=>e.theme.colorPalette.grey200,e=>e.theme.colorPalette.blue900,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.blue600,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.grey500),tX=(0,C.AH)(["background-color:transparent;color:",";border:solid 2px transparent;&:hover,&[data-hover='true']{color:",";background-color:",";}&:active,&[data-active='true']{color:",";background-color:",";}&:focus,&[data-focus='true']{color:",";background-color:",";border:solid 2px ",";}&&[disabled]{color:",";background-color:transparent;cursor:not-allowed;}"],e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.blue300,e=>e.theme.colorPalette.white100,e=>e.theme.colorPalette.blue500,e=>e.theme.colorPalette.white100,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.white100,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.white300),tZ=(0,C.AH)(["background-color:transparent;color:",";border:solid 2px transparent;&:hover,&[data-hover='true']{color:",";background-color:",";}&:active,&[data-active='true']{color:",";background-color:transparent;}&:focus,&[data-focus='true']{color:",";border:solid 2px ",";background-color:transparent;}&&[disabled]{color:",";background-color:transparent;cursor:not-allowed;}"],e=>e.theme.colorPalette.yellow50,e=>e.theme.colorPalette.yellow50,e=>e.theme.colorPalette.white100,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.grey800),t0=(0,C.AH)(["background-color:transparent;color:",";border:none;&:hover,&[data-hover='true']{color:",";}&:active,&[data-active='true']{color:",";}&:focus,&[data-focus='true']{color:",";}&&[disabled]{color:",";cursor:not-allowed;}"],e=>e.theme.colorPalette.grey900,e=>e.theme.colorPalette.red600,e=>e.theme.colorPalette.grey900,e=>e.theme.colorPalette.red600,e=>e.theme.colorPalette.grey500),t1=(0,C.AH)(["color:",";background-color:",";border:1px solid ",";&:hover,&[data-hover='true']{color:",";background-color:",";border:1px solid ",";}&:active,&[data-active='true']{color:",";background-color:",";border:1px soli
1d ",";}&:focus,&[data-focus='true']{color:",";background-color:",";border:1px solid ",";}&&[disabled]{color:",";background-color:",";border:1px solid ",";cursor:not-allowed;}"],e=>e.theme.colorPalette.blue600,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.blue600,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.blue800,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.blue800,e=>e.theme.colorPalette.blue600,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.blue600,e=>e.theme.colorPalette.grey600,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.grey300),t2=(0,C.AH)(["",";color:",";padding:4px 8px !important;justify-content:flex-start;gap:4px;flex-shrink:0;svg{flex-shrink:0;}&:hover,&[data-hover='true']{color:",";background-color:",";}&:active,&[data-active='true']{color:",";background-color:",";}&:focus,&[data-focus='true']{color:",";background-color:",";}&&[disabled]{color:",";cursor:not-allowed;}"],e=>e.theme.typography.p12_500,e=>e.theme.colorPalette.grey800,e=>e.theme.colorPalette.grey800,e=>e.theme.colorPalette.white300,e=>e.theme.colorPalette.blue600,e=>e.theme.colorPalette.white500,e=>e.theme.colorPalette.blue600,e=>e.theme.colorPalette.white500,e=>e.theme.colorPalette.grey600),t4=(0,C.AH)(["background-color:",";color:",";border:solid 1px ",";&:hover,&[data-hover='true']{color:",";border:solid 1px ",";}&:active,&[data-active='true']{color:",";border:solid 1px ",";}&:focus,&[data-focus='true']{color:",";border:solid 1px ",";}&&[disabled]{color:",";border:solid 1px ",";cursor:not-allowed;}"],e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.grey900,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.violet700,e=>e.theme.colorPalette.violet700,e=>e.theme.colorPalette.violet700,e=>e.theme.colorPalette.violet700,e=>e.theme.colorPalette.violet700,e=>e.theme.colorPalette.violet700,e=>e.theme.colorPalette.grey500,e=>e.theme.colorPalette.grey300),t6=(0,C.AH)(["background:linear-gradient( 120deg,"," 0%,"," 100% ) border-box;color:",";border:solid 2px transparent;transition:opacity 0.2s ease;&:hover,&[data-hover='true']{opacity:0.9;}&:active,&[data-active='true']{opacity:0.8;outline:none;border:solid 2px transparent;}&:focus,&[data-focus='true']{border:solid 2px ",";}&&[disabled]{background:",";cursor:not-allowed;}"],e=>e.theme.colorPalette.purple600,e=>e.theme.colorPalette.purple400,e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.purple200,e=>e.theme.colorPalette.purple200),t3=(0,C.AH)(["background-color:",";color:",";border:solid 1px ",";&:hover,&[data-hover='true']{background-color:",";}&:active,&[data-active='true']{background-color:",";outline:none;border:solid 1px ",";}&:focus,&[data-focus='true']{border:solid 1px ",";}&&[disabled]{color:",";border:solid 1px ",";cursor:not-allowed;}"],e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.purple700,e=>e.theme.colorPalette.purple200,e=>e.theme.colorPalette.purple100,e=>e.theme.colorPalette.purple100,e=>e.theme.colorPalette.purple200,e=>e.theme.colorPalette.purple600,e=>e.theme.colorPalette.grey500,e=>e.theme.colorPalette.grey300),t5=(e,t)=>o=>(0,C.AH)(["",";",""],e,"iconOnly"===o&&(0,C.AH)(["height:",";width:",";padding:0;"],t,t)),t8=t5((0,C.AH)(["max-height:24px;border-radius:6px;padding:4px 16px;",""],e=>e.theme.typography.p12_600),"24px"),t7=t5((0,C.AH)(["max-height:32px;border-radius:8px;",""],e=>e.theme.typography.p12_600),"32px"),t9=t5((0,C.AH)(["max-height:36px;",""],e=>e.theme.typography.p14_600),"36px"),oe=t5((0,C.AH)(["max-height:40px;",""],e=>e.theme.typography.p14_600),"40px"),ot={labeled:{xsmall:12,small:16,medium:17,large:18},iconOnly:{xsmall:16,small:20,medium:24,large:24}},oo=C.Ay.button.withConfig({componentId:"sc-91cd2f9b-0"})(["all:unset;box-sizing:border-box;cursor:pointer;border-radius:12px;display:flex;flex-direction:row;justify-content:",";align-items:center;padding:8px 32px;gap:6px;width:fit-content;height:fit-content;",";",";position:relative;overflow:",";white-space:nowrap;"," ",";"],e=>"left"===e.$contentAlignment?"flex-start":"center",e=>x[e.size](e.kind),e=>m[e.variant],e=>"iconOnly"===e.kind?"visible":"hidden",e=>(e=>{if(e){let t="number"==typeof e?"px":"";return(0,C.AH)(["padding:8px 0;max-width:","",";width:","",";"],e,t,e,t)}return""})(e.$width),e=>e.spinnerActive&&"cursor: progress;"),or=(e=>t=>{let{hideTooltip:o,forceToShowTooltip:r,tooltipText:l,tooltipPosition:i,tooltipPlacement:n,kind:a,disabled:c,...d}=t,s=!!l,h="iconOnly"===a&&s&&!c&&!o;return r||h?(0,v.jsx)(eT,{label:l,position:i,tooltipPlacement:n,children:(0,v.jsx)(e,{disabled:c,kind:a,...d})}):(0,v.jsx)(e,{disabled:c,kind:a,...d})})(e=>{let{disabled:t=!1,onClick:o=null,size:r="medium",variant:l="primary",children:i,width:n,contentAlignment:a,spinnerActive:c,...d}=e,{label:s,iconPosition:h,iconOnly:p,kind:u,iconType:g="add",Icon:m}="iconOnly"===d.kind?{...d,label:null,iconPosition:null,iconOnly:!0,kind:"iconOnly",iconType:(null==d?void 0:d.iconType)||"add"}:{...d,iconOnly:!1,kind:"withLabel",Icon:null},x=(0,w.useRef)(),f=p?ot.iconOnly[r]:ot.labeled[r],b=["primary","primaryDark","danger","green"].includes(l);return(0,v.jsx)(oo,{ref:x,...(0,tE.C)({options:[d.testId,s,g],suffix:"button"}),...d,$width:n,$contentAlignment:a,disabled:t,onClick:e=>{t||c||null==o||o(e)},spinnerActive:c,size:r,variant:l,hasIcon:!!h,onMouseUp:()=>{var e;return null==(e=x.current)?void 0:e.blur()},kind:u,children:c?(0,v.jsx)(tH.a,{size:"small",light:b}):(0,v.jsx)(i,{iconSize:f,iconOnly:p,iconPosition:h,label:s,size:r,iconType:g,Icon:m,...d})})});var ol=o(8858);function oi(){let e=(0,ol._)(["display: -webkit-box"]);return oi=function(){return e},e}function on(){let e=(0,ol._)(["-webkit-line-clamp: 5"]);return on=function(){return e},e}function oa(){let e=(0,ol._)(["-webkit-box-orient: vertical"]);return oa=function(){return e},e}let oc=C.AH,od=C.Ay.div.attrs(e=>({style:{position:e.$position,visibility:e.$visible?"visible":"hidden",top:e.$top?"".concat(e.$top,"px"):"",left:e.$left?"".concat(e.$left,"px"):"",width:e.$width?"".concat(e.$width,"px"):"220px"}})).withConfig({componentId:"sc-98a17e4-0"})(["z-index:",";display:flex;align-items:center;box-sizing:border-box;border-radius:6px;padding:16px;"," color:",";background-color:",";box-shadow:",";height:fit-content;user-select:none;"],e=>e.theme.zIndex.tooltip,e=>e.theme.typography.p12_500,e=>e.theme.colorPalette.grey800,e=>"dark"===e.variant?e.theme.colorPalette.grey900:e.theme.colorPalette.white900,e=>e.theme.shadow.shadow200),os=C.Ay.div.attrs(e=>
1({style:{top:e.$top?"".concat(e.$top,"px"):"",left:e.$left?"".concat(e.$left,"px"):"",right:e.$right?"".concat(e.$right,"px"):"",bottom:e.$bottom?"".concat(e.$bottom,"px"):"",transform:"rotate(45deg)"}})).withConfig({componentId:"sc-98a17e4-1"})(["position:absolute;border-radius:1px 0 0 0;background-color:",";width:12px;height:12px;"],e=>"dark"===e.variant?e.theme.colorPalette.grey900:e.theme.colorPalette.white900),oh=C.Ay.span.withConfig({componentId:"sc-98a17e4-2"})([""," color:",";white-space:break-spaces;margin:auto;overflow:hidden;overflow-wrap:anywhere;",";",";",";"],e=>e.theme.typography.p12_400,e=>"dark"===e.variant?e.theme.colorPalette.white900:e.theme.colorPalette.grey900,oc(oi()),oc(on()),oc(oa())),op=e=>{var t,o;let{variant:r="dark",message:l,triggerRef:i=null,sizeRef:n=null,sameWidth:a=!1,position:c=null,tooltipPlacement:d="top",offsetProps:s,initialShow:h=!1,alwaysShow:p=!1,forceToShowOnHover:u=!1,onHidden:g,onVisible:m}=e,x=(0,w.useRef)(null),[f,b]=(0,w.useState)(!1),y=a?null==i||null==(t=i.current)?void 0:t.clientWidth:n?null==n||null==(o=n.current)?void 0:o.clientWidth:220,{x:P,y:k,reference:C,floating:j,strategy:A,update:I,refs:_,placement:z,middlewareData:$}=(0,eI.we)({strategy:(null!=c?c:a)?"absolute":"fixed",placement:d,middleware:[(0,e_.cY)({mainAxis:12,crossAxis:0,...s}),(0,e_.UU)(),(0,e_.BN)(),(0,eI.UE)({element:x})]}),H=null==$?void 0:$.arrow,E={top:"$bottom",right:"$left",bottom:"$top",left:"$right"}[z.split("-")[0]],R={$left:null==H?void 0:H.x,$top:null==H?void 0:H.y,$right:void 0,$bottom:void 0,[E]:"-6"},S=()=>{I(),b(!0),null==m||m()},O=()=>{!p&&(u||(e=>!!e&&e.scrollWidth>e.clientWidth)(i.current))&&S()},L=()=>{p||(b(!1),null==g||g())};return(0,w.useLayoutEffect)(()=>{n?C(n.current):C(i.current)},[i,n]),(0,w.useEffect)(()=>{let e;return(h||p)&&(e=setTimeout(()=>S(),100)),i.current&&(i.current.addEventListener("mouseenter",O),i.current.addEventListener("mouseleave",L)),()=>{clearTimeout(e),i.current&&(i.current.removeEventListener("mouseenter",O),i.current.removeEventListener("mouseleave",L))}},[]),(0,w.useEffect)(()=>{if(!f||!_.reference.current||!_.floating.current)return;let e=[...(0,ez.Rd)(_.reference.current),...(0,ez.Rd)(_.floating.current)];return e.forEach(e=>{e.addEventListener("scroll",I)}),()=>{e.forEach(e=>{e.removeEventListener("scroll",I)})}},[_.reference,_.floating,I]),(0,v.jsxs)(od,{ref:j,variant:r,$width:y,$visible:f,$position:A,$top:k,$left:P,children:[(0,v.jsx)(oh,{variant:r,children:l}),(0,v.jsx)(os,{ref:x,variant:r,...R})]})},ou=(0,w.memo)(e=>{let{exist:t,triggerRef:o,offsetProps:r,tooltipPlacement:l,message:i}=e;return t?(0,v.jsx)(op,{triggerRef:o,offsetProps:r,tooltipPlacement:l,message:i}):null});var og=o(10676),om=o(74548),ox=o(68846),of=o(41424),ob=o(8626),oy=o(888),ov=o(61905),ow=o(40271);let oP={add:eK.G7L,aiGenerate:eK.Vax,alignCenter:eK.svU,alignJustify:eK.J9e,alignLeft:eK.eih,alignRight:eK.fzT,archive:eK.CYA,arrowDown:eK.V$X,arrowGuide:ov.YDf,arrowUp:eK.U__,arrowUpLine:eK.avw,book:eK.d$K,bookmark:eK.YSf,bubble:eK.trZ,chatSmile:eK.g6q,building:eK.IWF,calendar:eK._UP,check:eK.s0,checkout:eK.zrr,circle:eK.CFw,circleFill:eK.b$j,clone:eK.ZlU,close:eK.Qks,collection:eK.vzr,community:eK.v6x,configuration:eK.UH0,container:eK.CYA,copy:eK.NGz,delete:eK.Ku6,deleteColumn:eK.Jw3,deleteRow:eK.puA,done:oy.e8G,down:eK.eQr,download:eK.BVt,drag:oy.LUV,exitFullScreen:eK.oLO,external:eK.kyj,eyeLine:eK.tLq,eyeOffline:eK.sRK,file:eK.jW$,fileList2:eK.gY0,fileUser:eK.MkG,focus:eK.ldV,fullScreen:eK.LWW,google:ob.F4b,group:eK.pyk,headerColumn:eK.ga5,headerRow:eK.UzT,import:eK.z4K,inbox:eK.mT8,info:eK.CwO,infoFill:eK.Poj,insertColumnLeft:eK.mp_,insertColumnRight:eK.$ew,insertRowBottom:eK.s1E,insertRowTop:eK.ORg,left:eK.vMW,lighthouse:ow.U,link:eK.Tgk,lock:eK.XJr,mail:eK.R0Y,menu:eK.tOc,more:eK.QXe,pencil:eK.Jno,play:eK.qkT,playFill:eK.V$0,price:eK.k4G,question:eK.Kt4,questionFill:eK.zBP,refresh:eK.Ll9,removeFilters:eK.jJi,reselect:om.yzF,right:eK.ye6,ring:of.yv2,roadmap:eK._jY,send:eK.dYZ,settings:eK.ZkC,star:eK.WN7,status:eK.bwM,team:eK.TKI,theme:eK.SjE,time:eK.NTh,up:eK.F$e,upload:eK.ohs,upRight:ox.nnb},ok=C.Ay.span.withConfig({componentId:"sc-efcba49a-0"})(["text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;user-select:none;"]),oC={},oj={kind:"withLabel"},oA={split:e=>{let{iconSize:t,label:o,size:r}=e;return(0,v.jsxs)(tW,{children:[(0,v.jsx)(tJ,{children:o}),(0,v.jsx)(tY,{size:r,children:(0,v.jsx)(eK.eQr,{size:t})})]})},default:e=>{let{iconOnly:t,iconPosition:o,iconSize:r,label:l,iconType:i,Icon:n,fill:a,hasDefinitionTooltip:c,definitionTooltipPlacement:d,definitionTooltipOffsetProps:s,definitionTooltipText:h}=e,p=(0,w.useRef)(null),u=null!=n?n:oP[i],g=c&&(0,og.t)(h);return t?(0,v.jsx)(j.fI,{align:"center",children:(0,v.jsx)(u,{size:r,...a?{fill:a}:{}})}):(0,v.jsxs)(v.Fragment,{children:["left"===o&&(0,v.jsx)(u,{size:r}),(0,v.jsx)(ok,{ref:p,children:l}),"right"===o&&(0,v.jsx)(u,{size:r}),(0,v.jsx)(ou,{exist:g,triggerRef:p,offsetProps:s,tooltipPlacement:d,message:h})]})}},oI=e=>{let{key:t,props:o}=(e=>{let{variant:t,...o}=e;return"split"===t?{key:"split",props:{...o,variant:t,...oj}}:{key:"default",props:{...o,variant:t,...oC}}})(e),r=oA[t];return(0,v.jsx)(or,{...o,children:r})},o_=(0,C.Ay)(or).withConfig({componentId:"sc-3bb9e923-0"})(["",""],e=>e.variant.includes("Dark")?(0,C.AH)(["svg{color:",";}&:hover{svg{color:",";}}&:focus{border:2px solid ",";svg{color:",";}}&&[disabled]{svg{color:",";}}"],"popoverIconDark"===e.variant?e.theme.colorPalette.yellow50:e.theme.colorPalette.grey600,e.theme.colorPalette.red500,e.theme.colorPalette.red300,e.theme.colorPalette.red600,e.theme.colorPalette.grey800):(0,C.AH)(["svg{color:",";}&:hover{background-color:",";svg{color:",";}}&:focus{background-color:",";svg{color:",";}}&&[disabled]{background-color:transparent;svg{color:",";}cursor:not-allowed;}"],"ghost"===e.variant?e.theme.colorPalette.grey700:e.theme.colorPalette.grey900,e.theme.colorPalette.grey200,e.theme.colorPalette.red500,e.theme.colorPalette.grey300,e.theme.colorPalette.red600,e.theme.colorPalette.grey500)),oz=e=>{var t;return(0,v.jsx)(o_,{variant:"ghost",...e,iconType:null!=(t=e.iconType)?t:"delete",kind:"iconOnly",tooltipText:e.hideTooltip?null:(null==e?void 0:e.tooltipText)||"Delete",children:e=>{let{iconSize:t,iconType:o}=e,r=oP[o];return(0,v.jsx)(j.fI,{align:"center",children:(0,v.jsx)(r,{size:t})})}})};(0,C.Ay)(or).withConfig({componentId:"sc-d5ecc20d-0"})(["&:hover{background-color:",";cursor:",";}&:focus{background-color:transparent;}font-size:20px;"],e=>e.editMode?e.theme.colorPalette.grey200:"transparent",e=>e.editMode?"pointer":"default");var o$=o(98151);let oH=e=>{let{backgroundColor:t,borderColor:o,contentColor:r}=e;return{containerStyle:(0,C.AH)(["background-color:",";border-color:",";"],eA.A.colorPalette[t],eA.A.colorPalette[o]),contentColor:eA.A.colorPalette[r],hoverColor:eA.A.colorPalette[o]}},oE=oH({backgroundColor:"blue500",borderColor:"blue600",contentColor:"blue100"}),oR=oH({backgroundColor:"grey600",borderColor:"grey700",contentColor:"grey100"}),oS=oH({backgroundColor:"red500",borderColor:"red600",contentColor:"red100"}),oO=oH({backgroundColor:"green500",borderColor:"green600",contentColor:"green100"}),oL=oH({backgroundColor:"orange100",borderColor:"orange300",contentColor:"orange900"}),oT=oH({backgroundColor:"blue100",borderColor:"blue200",contentColor:"blue600"}),oM=oH({backgroundColor:"grey300",borderColor:"grey400",contentColor:"grey700"}),oB=oH({backgroundColor:"red100",borderColor:"red200",contentColor:"red700"}),oD=oH({backgroundColor:"green100",borderColor:"green300",contentColor:"green800"}),oF=oH({backgroundColor:"yellow100",borderColor:"yellow300",contentColor:"yellow900"}),oN=oH({backgroundColor:"white900",borderColor:"grey400",contentColor:"grey700"}
1),oU={large:(0,C.AH)(["height:24px;padding-block:","px;& *{","}"],e=>e.theme.spacing.mono,e=>e.theme.typography.p12_600),small:(0,C.AH)(["height:18px;padding-block:0;& *{","}"],e=>e.theme.typography.p12_500)},oW={regular:(0,C.AH)(["padding-inline:16px;"]),iconLeft:(0,C.AH)(["padding-inline-start:12px;padding-inline-end:14px;"]),iconRight:(0,C.AH)(["padding-inline-start:14px;padding-inline-end:12px;"]),iconOnly:(0,C.AH)(["padding-inline:12px;"])},oJ={add:eK.G7L,up:eK.SJ3,down:eK.ZdO,star:eK.xe7,flash:eK.bwM,arrowUp:eK.U__,folder:eK.iH0,eyeOff:eK.sRK,refresh:eK.Ll9,close:eK.qFd,upgrade:eK.Y4m,global:eK.bl6},oG=C.Ay.div.withConfig({componentId:"sc-fcfc7103-0"})(["box-sizing:border-box;border-radius:20px;display:flex;flex-direction:row;align-items:center;gap:4px;width:fit-content;max-width:",";white-space:nowrap;"," "," "," "," ",""],e=>e.$maxWidth?"".concat(e.$maxWidth,"px"):"100%",e=>f[e.color].containerStyle,e=>oU[e.$size],e=>oW[e.$type],e=>((e,t)=>"small"===t||"regular"===e?"":"iconLeft"===e?(0,C.AH)(["& svg{margin-inline-end:","px;}"],e=>e.theme.spacing.mono):"iconOnly"===e?(0,C.AH)([""]):(0,C.AH)(["& svg{margin-inline-start:","px;}"],e=>e.theme.spacing.mono))(e.$type,e.$size),e=>{var t,o;return t=e.$state,o=e.color,"selected"===t?(0,C.AH)(["border-width:1px;border-style:solid;"]):"solid"===o?(0,C.AH)(["border:1px solid ",";"],e=>e.theme.colorPalette.grey300):(0,C.AH)(["border:none;"])}),oY=C.Ay.span.withConfig({componentId:"sc-fcfc7103-1"})(["color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],e=>f[e.color].contentColor),oQ=C.Ay.div.withConfig({componentId:"sc-fcfc7103-2"})(["display:flex;align-items:center;justify-content:center;flex-shrink:0;"]),oV=e=>{let{color:t,title:o,size:r="small",state:l="default",type:i,maxWidth:n,...a}=e,c={size:"large"===r?16:14,color:f[t].contentColor},d="regular"!==i?oJ[a.icon]:void 0;return(0,v.jsxs)(oG,{color:t,$state:l,$size:r,$type:i,$maxWidth:n,children:[["iconLeft","iconOnly"].includes(i)&&d&&(0,v.jsx)(oQ,{children:(0,v.jsx)(d,{...c})}),!!o&&(0,v.jsx)(oY,{color:t,children:o}),"iconRight"===i&&d&&(0,v.jsx)(oQ,{children:(0,v.jsx)(d,{...c})})]})},oK=(0,C.AH)(["width:400px;"]),oq=(0,C.AH)(["width:356px;"]),oX=(0,C.AH)(["width:320px;"]),oZ=(0,C.AH)(["width:220px;"]),o0=(0,C.AH)(["width:140px;"]),o1=(0,C.AH)(["width:80px;"]),o2=(0,C.AH)(["width:80px;"]);function o4(){let e=(0,ol._)(["width: -webkit-fill-available"]);return o4=function(){return e},e}function o6(){let e=(0,ol._)(["width: -webkit-fill-available"]);return o6=function(){return e},e}function o3(){let e=(0,ol._)(["width: -webkit-fill-available"]);return o3=function(){return e},e}function o5(){let e=(0,ol._)(["width: -webkit-fill-available"]);return o5=function(){return e},e}let o8=C.Ay.div.withConfig({componentId:"sc-2e1c0271-0"})(["width:fit-content;"]),o7=C.Ay.div.withConfig({componentId:"sc-2e1c0271-1"})(["display:flex;",";"],e=>e.width?"width: ".concat(e.width,"px"):b[e.size]),o9=C.Ay.span.withConfig({componentId:"sc-2e1c0271-2"})(["",";margin-bottom:8px;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;user-select:none;"],e=>"dark"===e.variant?e.theme.typography.p12_500:e.theme.typography.p14_500,e=>"dark"===e.variant?e.theme.colorPalette.grey500:e.theme.colorPalette.grey900),re=C.Ay.div.withConfig({componentId:"sc-2e1c0271-3"})(["position:relative;"]),rt=C.Ay.div.withConfig({componentId:"sc-2e1c0271-4"})(["width:fit-content;"]),ro=e=>{let{size:t,$width:o}=e;return o?(0,C.AH)(["width:","px;"],o):(0,C.AH)(["",""],b[t])},rr=C.Ay.div.withConfig({componentId:"sc-2e1c0271-5"})(["all:unset;"," user-select:none;display:flex;flex-direction:column;"],ro),rl=C.Ay.button.withConfig({componentId:"sc-2e1c0271-6"})(["all:unset;"," "," cursor:",";box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:8px;"],e=>{let{variant:t,size:o}=e;return"dark"===t?(0,C.AH)(["padding:8px 16px;height:32px;border-radius:8px;",";"],e=>e.theme.typography.p12_500):"COMPACT"===o?(0,C.AH)(["padding:8px 12px;height:32px;border-radius:8px;",";"],e=>e.theme.typography.p12_500):(0,C.AH)(["padding:8px 16px;height:40px;border-radius:12px;",";"],e=>e.theme.typography.p14_500)},e=>{let{variant:t,disabled:o,active:r,selected:l}=e;return"dark"===t?(0,C.AH)(["border:",";color:",";background-color:",";&:hover{border:",";}&:focus-within{background-color:",";border:2px solid ",";}&[data-active='true']{background-color:",";border:1px solid ",";}&[data-danger='true']{background-color:",";border:1px solid ",";&[data-selected='true']{border:1px solid ",";}}"],e=>r?"1px solid ".concat(e.theme.colorPalette.blue300):"1px solid ".concat(e.theme.colorPalette.grey800),e=>o||!l?e.theme.colorPalette.grey800:e.theme.colorPalette.grey400,e=>o?e.theme.colorPalette.black800:e.theme.colorPalette.white100,e=>!o&&"1px solid ".concat(e.theme.colorPalette.grey700),e=>e.theme.colorPalette.white100,e=>e.theme.colorPalette.blue300,e=>e.theme.colorPalette.white100,e=>e.theme.colorPalette.blue300,e=>e.theme.colorPalette.white100,e=>e.theme.colorPalette.red400,e=>e.theme.colorPalette.red400):(0,C.AH)(["border:",";color:",";background-color:",";&:hover{border:",";}&:focus-within{background-color:",";border:1px solid ",";}&[data-active='true']{background-color:",";border:1px solid ",";}&[data-danger='true']{background-color:",";border:1px solid ",";&[data-selected='true']{border:1px solid ",";}}"],e=>r?"1px solid ".concat(e.theme.colorPalette.blue400):"1px solid ".concat(e.theme.colorPalette.grey300),e=>o||!l?e.theme.colorPalette.grey600:e.theme.colorPalette.grey900,e=>o?e.theme.colorPalette.grey100:e.theme.colorPalette.white900,e=>!o&&"1px solid ".concat(e.theme.colorPalette.grey500),e=>e.theme.colorPalette.grey50,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.blue400,e=>e.theme.colorPalette.white900,e=>e.theme.colorPalette.red300,e=>e.theme.colorPalette.red600)},e=>e.disabled?"not-allowed":"pointer"),ri=C.Ay.span.withConfig({componentId:"sc-2e1c0271-7"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),rn=C.Ay.div.withConfig({componentId:"sc-2e1c0271-8"})(["display:flex;transition:all 0.1s ease-in-out;transform:",";"],e=>e.active&&"scaleY(-1)"),ra=C.Ay.div.withConfig({componentId:"sc-2e1c0271-9"})(["display:flex;"]),rc=C.Ay.div.withConfig({componentId:"sc-2e1c0271-10"})([""]),rd=C.Ay.label.withConfig({componentId:"sc-2e1c0271-11"})(["cursor:pointer;display:flex;align-items:center;justify-content:space-between;flex-grow:1;gap:8px;min-width:0;width:100%;height:36px;padding:10px 16px;box-sizing:border-box;border:1px solid ",";border-radius:12px;&:focus-within{border:1px solid ",";}"],e=>"dark"===e.variant?e.theme.colorPalette.grey800:e.theme.colorPalette.grey300,e=>"dark"===e.variant?e.theme.colorPalette.blue300:e.theme.colorPalette.blue400),rs=C.Ay.input.withConfig({componentId:"sc-2e1c0271-12"})(["outline:unset;border:unset;padding:0;margin:0;width:100%;",";color:",";background-color:",";::placeholder{color:",";}"],e=>e.theme.typography.p12_500,e=>"dark"===e.variant?e.theme.colorPalette.grey400:e.theme.colorPalette.grey900,e=>"dark"===e.variant?e.theme.colorPalette.black700:e.theme.colorPalette.white900,e=>"dark"===e.variant?e.theme.colorPalette.grey500:e.theme.colorPalette.grey600),rh=C.Ay.div.withConfig({componentId:"sc-2e1c0271-13"})(["margin:",";border-bottom:1px solid ",";"],e=>"dark"===e.variant?"12px -8px 0 -8px":"12px -12px 0 -12px",e=>"dark"===e.variant?e.theme.colorPalette.grey800:e.theme.colorPalette.grey300),rp=C.Ay.div.withConfig({componentId:"sc-2e1c0271-14"})(["height:100%;display:flex;flex-direction:column;"," box-sizing:border-box;border:1px solid ",";border-radius:12px;padding:",";background-color:",";box-shadow:",";animation:dropdownTransition 0.1s forwards;@keyframes dropdownTransition{0%{height:0;}100%{height:100%;}}"],ro,e=>"dark"===e.variant?e.theme.colorPalette.grey800:e.theme.colorPalette.grey300,e=>e.footer?"12px 12px 0 12px":"dark"===e.variant?"8px":"12px",e=>"dark"===e.variant?e.theme.colorPalette.black700:e.theme.colorPalette.white900,e=>e.theme.shadow.shadow200),ru=C.Ay.div.withConfig({componentId:"sc-2e1c0271-15"})(["display:flex;flex-direction:column;width:100%;overflow-x:hidden;overflow-y:auto;padding-top:",";padding-bottom:",";::-webkit-scrollbar{visibility:hidden;display:inherit;width:7px;height:7px;}::-webkit-scrollbar-track{visibility:hidden;display:inherit;background-color:transparent;}::-webkit-scrollbar-thumb{visibility:hidden;display:inherit;background-color:",";border-radius:4px;}&:hover{::-webkit-scrollbar{visibility:visible;}::-webkit-scrollbar-track{visibility:visible;}::-webkit-scrollbar-thumb{visibility:visible;}}"],e=>e.search?"12px":"0",e=>e.footer?"12px":"0",e=>"dark"===e.variant?e.theme.colorPalette.grey800:e.theme.colorPalette.blackOverlay500),rg=(0,C.Ay)(ru).withConfig({componentId:"sc-2e1c0271-16"})(["padding:",";"],e=>e.applyPadding?"12px 0":"0"),rm=C.Ay.span.withConfig({componentId:"sc-2e1c0271-17"})([""," color:",";padding:8px 6px 4px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;user-select:none;flex-shrink:0;",""],e=>e.theme.typography.p12_500,e=>e.theme.colorPalette.grey600,e=>e.$collapsible&&(0,C.AH)(["display:flex;align-items:center;justify-content:space-between;gap:","px;
1cursor:pointer;svg{flex-shrink:0;transition:transform 0.15s ease;}&:hover{color:",";}"],e.theme.spacing.mono,e.theme.colorPalette.grey800)),rx=C.Ay.span.withConfig({componentId:"sc-2e1c0271-18"})(["display:inline-flex;transform:rotate(","deg);transition:transform 0.15s ease;"],e=>e.$collapsed?-90:0),rf=C.Ay.div.withConfig({componentId:"sc-2e1c0271-19"})(["display:flex;flex-direction:column;"]),rb=C.Ay.div.withConfig({componentId:"sc-2e1c0271-20"})([""," "," cursor:pointer;border-radius:6px;display:flex;align-items:center;"],e=>{let{variant:t,disabled:o,selected:r,danger:l,tagInput:i}=e;return"dark"===t?(0,C.AH)(["color:",";&:hover{color:",";background-color:",";"," svg{display:flex;flex-shrink:0;path{color:",";}}}&:focus-within{color:",";background-color:",";"," svg{display:flex;flex-shrink:0;path{color:",";}}}"," &&[disabled]{cursor:not-allowed;color:",";svg{display:flex;flex-shrink:0;path{color:",";}}}"],e=>e.theme.colorPalette.grey400,e=>l?e.theme.colorPalette.grey200:e.theme.colorPalette.grey400,e=>l?e.theme.colorPalette.red600:i?e.theme.colorPalette.black800:e.theme.colorPalette.blue600,e=>!o&&r&&(0,C.AH)(["background-color:",";"],i?e.theme.colorPalette.black800:e.theme.colorPalette.blue700),e=>e.theme.colorPalette.grey400,e=>l?e.theme.colorPalette.grey200:e.theme.colorPalette.grey400,e=>l?e.theme.colorPalette.red600:i?e.theme.colorPalette.black800:e.theme.colorPalette.blue600,e=>!o&&r&&(0,C.AH)(["background-color:",";"],i?e.theme.colorPalette.black800:e.theme.colorPalette.blue700),e=>e.theme.colorPalette.grey400,e=>!o&&r&&(0,C.AH)(["color:",";","{color:",";}"],e.theme.colorPalette.blue600,tI,e.theme.colorPalette.blue600),e=>e.theme.colorPalette.grey600,e=>e.theme.colorPalette.grey600):(0,C.AH)(["color:",";&:hover{background-color:",";}&:focus-within{color:",";background-color:",";}"," "," &&[disabled]{cursor:not-allowed;color:",";svg{display:flex;flex-shrink:0;path{color:",";}}}"],e=>e.theme.colorPalette.grey800,e=>e.theme.colorPalette.grey100,e=>e.theme.colorPalette.blue700,e=>e.theme.colorPalette.grey100,e=>!o&&r&&(0,C.AH)(["color:",";","{color:",";}"],e.theme.colorPalette.blue700,tI,e.theme.colorPalette.blue700),l&&(0,C.AH)(["color:",";&:hover,&:focus-within{color:",";background-color:",";}"],e=>e.theme.colorPalette.red800,e=>e.theme.colorPalette.red800,e=>e.theme.colorPalette.red100),e=>e.theme.colorPalette.grey600,e=>e.theme.colorPalette.grey600)},e=>{let{variant:t}=e;return"dark"===t?(0,C.AH)(["height:32px;",";","{","}"],e=>e.theme.typography.p12_500,tI,e=>e.theme.typography.p12_500):(0,C.AH)(["height:40px;",";","{","}"],e=>e.theme.typography.p14_500,tI,e=>e.theme.typography.p14_500)}),ry=C.Ay.div.withConfig({componentId:"sc-2e1c0271-21"})(["","{padding:12px 0;cursor:default;&:hover{cursor:default;background-color:unset;}}"],rb),rv=C.AH,rw=C.Ay.label.withConfig({componentId:"sc-2e1c0271-22"})(["cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 16px;",";height:100%;user-select:none;&:hover{","{border-color:",";}}"],rv(o4()),tC,e=>e.theme.colorPalette.blue500),rP=C.Ay.button.withConfig({componentId:"sc-2e1c0271-23"})(["all:unset;display:flex;align-items:center;justify-content:space-between;gap:8px;"," ",";height:100%;user-select:none;&:hover,&:focus-within{","{display:none;}","{display:flex;}}"],e=>{let{variant:t,size:o}=e;return"dark"===t?(0,C.AH)(["padding:0 8px;"]):"COMPACT"===o?(0,C.AH)(["padding:0 8px;justify-content:center;"]):"XXS"===o?(0,C.AH)(["padding:0 12px;"]):(0,C.AH)(["padding:0 16px;"])},rv(o6()),oG,oo),rk=C.Ay.div.withConfig({componentId:"sc-2e1c0271-24"})(["display:flex;align-items:center;justify-content:flex-start;gap:8px;",";height:100%;"],rv(o3())),rC=(0,C.Ay)(rP).withConfig({componentId:"sc-2e1c0271-25"})(["&:hover,&:focus-within{","{display:flex;}}"],oG),rj=C.Ay.div.withConfig({componentId:"sc-2e1c0271-26"})(["display:flex;align-items:center;","{display:flex;}","{display:none;}"],oG,oo),rA=C.Ay.div.withConfig({componentId:"sc-2e1c0271-27"})(["display:flex;align-items:center;visibility:hidden;"]),rI=C.Ay.div.withConfig({componentId:"sc-2e1c0271-28"})(["cursor:default;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0;",";height:100%;user-select:none;&:hover,&:focus-within{","{visibility:visible;}}"],rv(o5()),rA),r_=C.Ay.div.withConfig({componentId:"sc-2e1c0271-29"})(["display:flex;align-items:center;gap:8px;width:calc(100% - 40px);user-select:none;"]),rz=e=>(0,C.AH)(["outline:unset;border:unset;padding:0;margin:0;",";color:",";background-color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid transparent;::placeholder{color:",";}::selection{background:",";}&:hover{border-bottom:1px solid ",";}&:focus{border-bottom:1px solid ",";}"],t=>"dark"===e?t.theme.typography.p12_500:t.theme.typography.p14_500,t=>"dark"===e?t.theme.colorPalette.grey400:t.theme.colorPalette.grey800,t=>"dark"===e?t.theme.colorPalette.grey700:t.theme.colorPalette.grey600,t=>"dark"===e?t.theme.colorPalette.blue600:t.theme.colorPalette.blue100,e=>e.theme.colorPalette.grey300,e=>e.theme.colorPalette.grey500),r$=C.Ay.div.withConfig({componentId:"sc-2e1c0271-30"})(["visibility:hidden;position:absolute;",""],e=>rz(e.variant)),rH=C.Ay.input.withConfig({componentId:"sc-2e1c0271-31"})([""," width:",";",""],e=>rz(e.variant),e=>e.$width?"".concat(e.$width,"px"):"100%",e=>e.isReadOnly&&"\n      cursor: default;\n      border: none;\n    "),rE=C.Ay.span.withConfig({componentId:"sc-2e1c0271-32"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),rR=C.Ay.div.withConfig({componentId:"sc-2e1c0271-33"})(["display:flex;width:20px;height:20px;"]),rS=C.Ay.div.withConfig({componentId:"sc-2e1c0271-34"})([""]),rO=C.Ay.div.withConfig({componentId:"sc-2e1c0271-35"})(["margin:0 -12px;border-top:1px solid ",";"],e=>"dark"===e.variant?e.theme.colorPalette.grey800:e.theme.colorPalette.grey300),rL=C.Ay.div.withConfig({componentId:"sc-2e1c0271-36"})(["cursor:pointer;display:flex;align-items:center;justify-content:flex-start;width:calc(100% + 24px);margin-left:-12px;border-bottom-left-radius:12px;border-bottom-right-radius:12px;","{margin-left:12px;width:100%;max-height:unset;justify-content:flex-start;border-radius:0px;outline:none;padding:8px 16px;color:",";svg{flex-shrink:0;}}"," &:focus-within{background-color:",";","{color:",";}}"],oo,e=>"dark"===e.variant?e.theme.colorPalette.blue400:e.theme.colorPalette.blue600,e=>!e.disabled&&(0,C.AH)(["&:hover{","{color:",";}}"],oo,"dark"===e.variant?e.theme.colorPalette.blue300:e.theme.colorPalette.blue500),e=>"dark"===e.variant?e.theme.colorPalette.black700:e.theme.colorPalette.grey100,oo,e=>"dark"===e.variant?e.theme.colorPalette.blue300:e.theme.colorPalette.blue500),rT=(0,C.Ay)(j.fI).withConfig({componentId:"sc-2e1c0271-37"}
1)(["height:40px;cursor:progress;"]),rM=C.Ay.div.withConfig({componentId:"sc-2e1c0271-38"})(["padding-left:12px;"]),rB=(0,w.forwardRef)((e,t)=>{let{variant:o,disabled:r,active:l,selected:i,size:n,text:a,onClick:c,width:d,hasError:s=!1,hasSelectedItem:h,dataTestId:p}=e;return(0,v.jsx)(rr,{$width:d,size:n,children:(0,v.jsxs)(rl,{variant:o,"data-testid":p,"data-active":l,"data-danger":s,"data-selected":h,ref:t,disabled:r,selected:i,active:l,onClick:c,size:n,children:[(0,v.jsx)(ri,{size:n,children:a}),(0,v.jsx)(rn,{active:l,children:(0,v.jsx)(eK.eQr,{...((e,t,o,r)=>"dark"===e?{size:20,color:o||t&&!r?eA.A.colorPalette.grey700:eA.A.colorPalette.grey600}:{size:20,color:o?eA.A.colorPalette.grey500:t&&!r?eA.A.colorPalette.grey700:eA.A.colorPalette.grey600})(o,i,r,l)})})]})})});var rD=o(7807);function rF(e){if(!(0,rD.sb)(e))return!1;let t=window.getComputedStyle(e),o=/(auto|scroll)/.test(t.overflowY),r=e.scrollHeight>e.clientHeight+32,l=e.getBoundingClientRect();return!!(l.height>0&&l.width>0)&&(r||o)}let rN=function(e,t,o){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{alignment:"left",horizontalGutter:0},l=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,{alignment:n,horizontalGutter:a}=r,[c,d]=(0,w.useState)({[n]:0}),[s,h]=(0,w.useState)(),[p,u]=(0,w.useState)(0),[g,m]=(0,w.useState)(!1),x=i?"dark"===l?Math.min(32*i+16,200):Math.min(40*i+24,200):200,f=()=>{let o=e.current.offsetWidth,r=t.current.offsetHeight,l=document.body.clientWidth,i=t.current.getBoundingClientRect(),c=r+eA.A.spacing.double,s=Math.min(window.innerHeight-i.top-(r+16+8),window.innerHeight),p=s>x;if(!p){var g,f;let t="undefined"!=typeof chrome&&(null==(f=chrome)||null==(g=f.storage)?void 0:g.local)||null!==e.current.closest(".".concat("ug-drawer"))?function(e){let t=e;for(;;){let e=function(e){let t;if(!e)return document.documentElement;let o=window.getComputedStyle(e),r="absolute"===o.position;if("fixed"===o.position)return null;for(let o=e;(o=o.parentElement)&&o.parentElement!==document.documentElement;){let e=rF(o);if(!(r&&"static"===getComputedStyle(o).position)&&e&&(t=o),(0,rD.sb)(t)&&!e)break}return(e=>{let t=/hidden/;if(!e||!e.parentElement)return!1;let o=e;for(;(0,rD.sb)(o.parentElement);){let r=window.getComputedStyle(o);if(t.test(r.overflow+r.overflowY))return!1;if(!o.clientHeight)break;let l=o.scrollHeight<e.scrollHeight;if(!rF(o)||l)return!1;o=o.parentElement}return!0})(t)?null:t}(t);if(!e||e===t||e===document.documentElement)break;t=e}return t===e?e.ownerDocument.documentElement:t}(e.current):window;setTimeout(()=>{t.scrollBy(0,x-s)},50)}("right"===n?i.left-a<=o:i.left+o<=l)?(d({left:0,top:c}),h("left")):(d({right:0,top:c}),h("right")),u(p?s:x),m(!0)};return(0,w.useEffect)(()=>(window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)),[]),(0,w.useEffect)(()=>{f()},o),{positions:c,alignment:s,maxHeight:p,ready:g}},rU=C.Ay.div.withConfig({componentId:"sc-92dbaf2-0"})(["z-index:",";position:absolute;display:flex;",";top:","px;",""],e=>e.theme.zIndex.dropdown,e=>"".concat(e.$alignment,": ").concat(e.$positions[e.$alignment],"px"),e=>e.$positions.top,e=>e.$paddingBottom&&"padding-bottom: ".concat(e.$paddingBottom,"px;")),rW=C.Ay.div.withConfig({componentId:"sc-92dbaf2-1"})(["max-height:",";visibility:",";"],e=>(null==e?void 0:e.$maxHeight)?"".concat(e.$maxHeight,"px"):"none",e=>e.$ready?"visible":"hidden"),rJ=e=>{let t,o,r,{toggleRef:l,excludedElementIds:i,onOutsideClick:n,alignment:a="left",positions:c,positionsRef:d=l,minHeight:s=0,maxHeight:h=null,children:p,onClickListenerAdded:u=null,onClickListenerRemoved:g=null,variant:m,numberOfItems:x,countMouseDownAndUpAsClick:f=!1,$paddingBottom:b}=e,y=(0,w.useRef)(null);if(e7(c))t=c,r=!0;else{var P;let e=rN(y,d,[null==l||null==(P=l.current)?void 0:P.clientWidth],{alignment:a},m,x);t=e.positions,o=h||e.maxHeight+2,r=e.ready}return(0,eM.A)({elementsToExcludeByRef:[y,l],elementsToExcludeByIdOrClassName:i,callback:n,onClickListenerAdded:u,onClickListenerRemoved:g,countMouseDownAndUpAsClick:f}),(0,v.jsx)(rU,{$paddingBottom:b,ref:y,$positions:t,$alignment:e7(t.left)?"left":"right",children:(0,v.jsx)(rW,{$maxHeight:"unset"===o?null:Math.max(o,s),$ready:r,children:p})})},rG=(e,t)=>{if(!e)return t;let o=e.toLowerCase();return t.flatMap(t=>{let r=t.title.toLowerCase().includes(o),l=t.children?rG(e,t.children):[];return[...r?[t]:[],...l]})},rY={size:20,color:eA.A.colorPalette.grey600},rQ=e=>{let{variant:t,focus:o,searchQuery:r,placeholder:l,setSearchQuery:i}=e,n=(0,w.useRef)();return(0,w.useEffect)(()=>{let e;return o&&(e=setTimeout(()=>{var e;return null==n||null==(e=n.current)?void 0:e.focus()},1)),()=>{clearTimeout(e)}},[o]),(0,v.jsxs)(rc,{children:[(0,v.jsxs)(rd,{variant:t,children:[(0,v.jsx)(rs,{ref:n,variant:t,placeholder:l,value:r,onChange:e=>{i(e.target.value)}}),(0,v.jsx)(ra,{children:(0,v.jsx)(eK.Cap,{...rY})})]}),(0,v.jsx)(rh,{variant:t})]})},rV=(0,w.createContext)({}),rK=()=>{let e=(0,w.useContext)(rV);if(void 0===e)throw Error("useDropdownContext must be used within DropdownContext.Provider");return e},rq=e=>{var t;let{item:o,onClickItem:r,size:l,sameWidth:i,onClickDisabledItem:n}=e,a=(0,w.useRef)(null),{variant:c}=rK(),d=null==o?void 0:o.icon,s={size:20,color:o.danger?eA.A.colorPalette.red800:null!=(t=o.iconColor)?t:eA.A.colorPalette.grey400};return(0,v.jsx)(rP,{variant:c,size:l,disabled:o.disabled&&!n,onClick:r,children:(0,v.jsxs)(rk,{children:[(null==o?void 0:o.icon)&&(0,v.jsx)(ra,{children:(0,v.jsx)(d,{...s})}),(0,v.jsx)(rE,{ref:a,children:o.title}),(0,v.jsx)(op,{triggerRef:a,sameWidth:i,message:o.title})]})})},rX={size:20,color:eA.A.colorPalette.blue600},rZ=e=>{let{item:t,onClickItem:o}=e,r=(0,w.useRef)(null),{variant:l}=rK();return(0,v.jsxs)(rP,{variant:l,disabled:t.disabled,onClick:o,children:[(0,v.jsx)(rE,{ref:r,children:t.title}),(0,v.jsx)(op,{triggerRef:r,sameWidth:!0,message:t.title}),(0,v.jsx)(rR,{children:!!t.selected&&(0,v.jsx)(eK.s0,{...rX})})]})},r0=e=>{let{item:t,onClickItem:o}=e,{selectionLimitExceed:r,selectionLimitExceedMessage:l}=rK(),i=(0,w.useRef)(null),n=(0,w.useRef)(null),a=t.AdditionalContent,c=t.InitialContent;return(0,v.jsxs)(rw,{children:[(0,v.jsx)(ig,{fullWidth:!0,containerRef:i,labelRef:n,disabled:t.disabled,checked:t.selected,label:t.title,onClick:()=>{(!r||t.selected)&&o()},boldLabel:!1}),c&&(0,v.jsx)(c,{}),(0,v.jsx)(op,{triggerRef:n,sizeRef:i,position:"absolute",message:t.title}),r&&!t.selected&&(0,v.jsx)(op,{triggerRef:i,forceToShowOnHover:!0,message:l}),a&&(0,v.jsx)(a,{})]})},r1=e=>{let{contentColor:t,containerStyle:o,hoverContentColor:r}=e;return{containerStyle:o,contentColor:t,hoverContentColor:eA.A.colorPalette[r]}},r2=r1({...oT,hoverContentColor:"blue400"}),r4=r1({...oD,hoverContentColor:"green600"}),r6=r1({...oM,hoverContentColor:"grey500"}),r3=r1({...oB,hoverContentColor:"red500"}),r5=r1({containerStyle:(0,C.AH)([""," border-color:",";"],oN.containerStyle,e=>e.theme.colorPalette.grey300),contentColor:oN.contentColor,hoverContentColor:"grey500"}),r8=r1({...oF,hoverContentColor:"yellow600"}),r7=C.Ay.span.withConfig({componentId:"sc-70228a77-0"})(["color:",";&:hover{color:",";}",""],e=>y[e.color].contentColor,e=>y[e.color].hoverContentColor,e=>e.theme.typography.p12_600),r9=(0,C.Ay)(eK.Qks).attrs(()=>({size:12})).withConfig({componentId:"sc-70228a77-1"})(["&:hover{cursor:pointer;}"]),le=C.Ay.div.withConfig({componentId:"sc-70228a77-2"})(["position:relative;display:flex;flex-direction:row;align-items:center;border:1px solid;border-radius:20px;width:fit-content;height:24px;box-sizing:border-box;padding:","px ","px;",";&:hover ",",","{color:",";}"],e=>e.theme.spacing.mono,e=>e.theme.spacing.quadruple,e=>y[e.color].containerStyle,r7,r9,e=>y[e.color].hoverContentColor),lt=C.Ay.div.withConfig({componentId:"sc-70228a77-3"})(["background-color:inherit;position:absolute;visibility:hidden;right:","px;padding-left:","px;display:flex;flex-direction:row-reverse;align-items:center;height:70%;width:12px;",":hover &,&:hover{visibility:visible;}"],e=>e.theme.spacing.double,e=>e.theme.spacing.mono,le),lo=e=>{let{color:t,onQuit:o,title:r}=e;return(0,v.jsxs)(le,{color:t,onClick:o,children:[(0,v.jsx)(r7,{color:t,children:r}),(0,v.jsx)(lt,{children:(0,v.jsx)(eT,{label:"Remove",children:(0,v.jsx)(r9,{onClick:o})})})]})},lr=C.Ay.div.withConfig({componentId:"sc-1cb1aa16-0"})(["display:flex;flex-direction:row;align-items:center;padding:2px 8px;position:relative;border-radius:20px;box-sizing:border-box;width:fit-content;height:20px;"," background-color:",";"," & *{color:",";}"],e=>oU[e.$size],e=>e.color,e=>e.$hover&&"\n      &:hover {\n        opacity: 0.9;\n      }\n    ",e=>e.theme.colorPalette.white900),ll=C.Ay.span.withConfig({componentId:"sc-1cb1aa16-1"})(["",""],e=>e.theme.typography.p12_500),li=C.Ay.div.withConfig({componentId:"sc-1cb1aa16-2"})(["position:absolute;display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:16px;right:4px;background-color:inherit;visibility:hidden;",":hover &{visibility:visible;}"],lr),ln=(0,C.Ay)(eK.Qks).attrs(()=>({size:12})).withConfig({componentId:"sc-1cb1aa16-3"})(["&:hover{cursor:pointer;}"]),la=e=>{let{color:t,onQuit:o,title:r,size:l="small"}=e,i="function"==typeof o;return(0,v.jsxs)(lr,{$size:l,color:t,$hover:i,children:[(0,v.jsx)(ll,{children:r}),i&&(0,v.jsx)(li,{children:(0,v.jsx)(eT,{label:"Remove",children:(0,v.jsx)(ln,{onClick:o})})})]})},lc=(0,C.Ay)(eK.Qks).attrs(()=>({size:12})).withConfig({componentId:"sc-595876e5-0"})(["color:",";&:hover{cursor:pointer;}"],e=>"extension"===e.app?e.theme.colorPalette.grey400:e.theme.colorPalette.grey800),ld=C.Ay.span.withConfig({componentId:"sc-595876e5-1"})([""," color:",";white-space:nowrap;"],e=>e.theme.typography.p12_600,e=>"extension"===e.app?e.theme.colorPalette.grey400:e.theme.colorPalette.grey900),ls=C.Ay.span.withConfig({componentId:"sc-595876e5-2"})(["margin-left:4px;white-space:nowrap;",";"],e=>"extension"===e.app?(0,C.AH)(["",";color:",";"],e.theme.typography.p12_400,e.theme.colorPalette.grey400):(0,C.AH)(["",";color:",";"],e.theme.typography.p12_500,e.theme.colorPalette.grey800)),lh=C.Ay.span.withConfig({componentId:"sc-595876e5-3"})(["margin-left:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;",";"],e=>"extension"===e.app?(0,C.AH)(["",";color:",";"],e.theme.typography.p12_400,e.theme.colorPalette.grey400):(0,C.AH)(["",";color:",";"],e.theme.typography.p12_500,e.theme.colorPalette.grey800)),lp=e=>"dashed"===e?"dashed":"solid",lu=C.Ay.div.withConfig({componentId:"sc-595876e5-4"})(["display:flex;flex-direction:row;align-items:center;padding:8px 12px;border-radius:8px;position:relative;box-sizing:border-box;width:fit-content;height:32px;user-select:none;cursor:pointer;max-width:320px;",""],e=>"extension"===e.app?(0,C.AH)(["background-color:",";border:1px "," ",";&:hover{background-color:",";}"],e.theme.colorPalette.white100,lp(e.status),e.theme.colorPalette.grey600,e.theme.colorPalette.white200):(0,C.AH)(["background-color:",";border:1px "," ",";&:hover{border:1px "," ",";",""],e.theme.colorPalette.white900,lp(e.status),e.active?e.theme.colorPalette.blue300:"dashed"===e.status?e.theme.colorPalette.grey600:e.theme.colorPalette.white900,lp(e.status),e.disabled?e.theme.colorPalette.white900:e.theme.colorPalette.blue300,e.disabled?(0,C.AH)(["cursor:not-allowed;border:1px "," ",";"],lp(e.status),e.theme.colorPalette.white900):(0,C.AH)(["border:1px "," ",";"],lp(e.status),e.theme.colorPalette.blue300))),lg=C.Ay.div.withConfig({componentId:"sc-595876e5-5"})(["align-items:center;justify-content:center;box-sizing:border-box;right:8px;",";",":hover &,&:hover{display:flex;",";}"],e=>"extension"===e.app?(0,C.AH)(["display:none;"]):(0,C.AH)(["position:absolute;display:flex;visibility:hidden;background-color:inherit;"]),lu,e=>"extension"===e.app?(0,C.AH)(["display:flex;"]):(0,C.AH)(["visibility:visible;"])),lm=e=>{let{app:t="panel",disabled:o=!1,onQuit:r,title:l,condition:i,value:n,status:a,active:c}=e,d=(0,w.useRef)(null);return(0,v.jsxs)(lu,{app:t,status:a,disabled:o,active:c,children:[(0,v.jsx)(ld,{app:t,children:l}),(0,v.jsx)(ls,{app:t,children:i}),(0,v.jsx)(lh,{app:t,ref:d,children:n}),(0,v.jsx)(op,{triggerRef:d,message:n}),!o&&(0,v.jsx)(lg,{app:t,children:(0,v.jsx)(eT,{label:"Remove",children:(0,v.jsx)(lc,{app:t,onClick:r})})})]})}
1,lx=C.Ay.div.withConfig({componentId:"sc-c2dbc892-0"})(["position:relative;cursor:pointer;"]),lf=e=>{let{titles:t=[],size:o="small"}=e,r=(0,w.useRef)(null),l=t.join(", ");return(0,v.jsxs)(lx,{children:[(0,v.jsx)("div",{ref:r,children:(0,v.jsx)(oV,{color:"lightGrey",title:"+".concat(t.length),size:o,state:"default",type:"regular",icon:null})}),(0,v.jsx)(op,{triggerRef:r,message:l,forceToShowOnHover:!0})]})},lb=C.Ay.div.withConfig({componentId:"sc-489cae5-0"})(["box-sizing:border-box;border-radius:6px;display:flex;flex-direction:row;align-items:center;width:fit-content;height:","px;padding:0 8px;white-space:nowrap;background-color:",";"],e=>"small"===e.$size?"32":"40",e=>e.theme.colorPalette.grey100),ly=C.Ay.span.withConfig({componentId:"sc-489cae5-1"})(["",";color:",";"],e=>e.theme.typography.p14_500,e=>e.theme.colorPalette.grey900),lv=C.Ay.span.withConfig({componentId:"sc-489cae5-2"})(["",";color:",";"],e=>e.theme.typography.p14_600,e=>e.theme.colorPalette.grey900),lw=e=>{let{size:t="small",title:o,description:r}=e;return(0,v.jsx)(lb,{$size:t,children:(0,v.jsxs)(j.fI,{align:"baseline",elementsMarginRight:"mono",children:[(0,v.jsx)(ly,{children:o}),(0,v.jsx)(lv,{children:r})]})})},lP=e=>{if("basic"===e.variant){let{color:t,title:o,size:r,state:l,type:i,maxWidth:n,icon:a}=e;return(0,v.jsx)(oV,{color:t,title:o,size:r,state:l,type:i,icon:a,maxWidth:n})}if("excessive"===e.variant){let{titles:t,size:o}=e;return(0,v.jsx)(lf,{titles:t,size:o})}if("list"===e.variant){let{color:t,onQuit:o,title:r}=e;return(0,v.jsx)(lo,{color:t,onQuit:o,title:r})}if("rc"===e.variant){let{color:t,onQuit:o,title:r,size:l="small"}=e;return(0,v.jsx)(la,{size:l,color:t,onQuit:o,title:r})}if("filter"===e.variant){let{app:t,onQuit:o,title:r,disabled:l,condition:i,value:n,status:a,active:c}=e;return(0,v.jsx)(lm,{disabled:l,app:t,onQuit:o,title:r,condition:i,value:n,status:a,active:c})}if("static"===e.variant){let{title:t,description:o,size:r}=e;return(0,v.jsx)(lw,{title:t,description:o,size:r})}return null};(0,C.Ay)(oG).withConfig({componentId:"sc-3f28fd88-0"})(["cursor:pointer;justify-content:center;"," ",""],e=>e.$width&&"width: ".concat(e.$width,"px;"),e=>{var t,o;return t=e.$hoverColorChange,o=e.color,t?(0,C.AH)(["&:hover{background-color:",";}"],f[o].hoverColor):null});let lk=e=>{var t;let{item:o,onClickItem:r}=e,l=(0,w.useRef)(null),{variant:i}=rK();return(0,v.jsxs)(rP,{variant:i,disabled:o.disabled,onClick:r,children:[(0,v.jsx)(rE,{ref:l,children:o.title}),(0,v.jsx)(op,{triggerRef:l,sameWidth:!0,message:o.title}),(null==(t=o.data)?void 0:t.label)&&(0,v.jsxs)(rj,{children:[(0,v.jsx)(lP,{size:"large",variant:"basic",type:"regular",color:"lightGrey",state:"default",title:o.data.label}),(0,v.jsx)(oI,{label:"Inactive"===o.data.label?"Activate":"Deactivate",size:"small",variant:"solid",onClick:e=>{var t,r;e.stopPropagation(),null==o||null==(r=o.data)||null==(t=r.onClickButton)||t.call(r)}})]})]})},lC=e=>{var t,o,r,l,i;let{item:n,onClickItem:a}=e,c=(0,w.useRef)(null),{variant:d}=rK(),s=n.icon,h={size:16,color:(null==(t=n.data)?void 0:t.color)||eA.A.colorPalette.grey600};return(0,v.jsxs)(rC,{variant:d,disabled:n.disabled,onClick:a,children:[(0,v.jsx)(rE,{ref:c,children:n.title}),(0,v.jsx)(op,{triggerRef:c,sameWidth:!0,message:n.title}),s?(0,v.jsx)(eT,{label:null==(o=n.data)?void 0:o.label,children:(0,v.jsx)(ra,{children:(0,v.jsx)(s,{...h})})}):!!(null==(r=n.data)?void 0:r.label)&&(0,v.jsx)(rj,{children:(0,v.jsx)(lP,{size:"large",variant:"basic",type:"regular",color:(null==(l=n.data)?void 0:l.color)||"lightGrey",state:"default",title:null==(i=n.data)?void 0:i.label})})]})},lj=C.Ay.div.withConfig({componentId:"sc-dd4638a6-0"})(["position:relative;background-color:",";border:1px solid ",";box-sizing:border-box;border-radius:4px;width:16px;height:16px;&:hover{cursor:pointer;border-style:none;&::after{visibility:hidden;}}",""],e=>e.color,e=>e.theme.colorPalette.grey100,e=>{let t;return e.$selected&&(t=e.variant,(0,C.AH)(["border-color:",";&::after{background:none;border:1px solid ",";border-radius:3px;content:'';display:block;position:absolute;top:0px;left:0px;right:0px;bottom:0px;pointer-events:none;}"],e=>e.theme.colorPalette.blue700,e=>"dark"===t?e.theme.colorPalette.black700:e.theme.colorPalette.white900))}),lA=C.Ay.div.withConfig({componentId:"sc-dd4638a6-1"})(["padding:","px;width:fit-content;box-shadow:",";border:",";border-radius:5px;background-color:",";display:grid;grid-auto-flow:row;justify-items:start;grid-column-gap:","px;grid-row-gap:","px;grid-template-columns:",";z-index:99999;"],e=>e.theme.spacing.quadruple,e=>e.theme.shadow.box,e=>"dark"===e.variant?e.theme.colorPalette.grey800:"none",e=>"dark"===e.variant?e.theme.colorPalette.black800:e.theme.colorPalette.white900,e=>e.theme.spacing.mono,e=>e.theme.spacing.double,e=>"repeat(".concat(e.$columns,",auto)")),lI=e=>{let{variant:t="light",selectedColor:o,colors:r,columns:l=5,onColorSelected:i}=e;return(0,v.jsx)(lA,{variant:t,$columns:l,children:r.map((e,r)=>(0,v.jsx)(lj,{variant:t,color:e,$selected:e===o,onClick:t=>{t.stopPropagation(),i(e)}},r))})},{blue700:l_,blue300:lz,green700:l$,green300:lH,grey700:lE,grey300:lR,grey100:lS,red700:lO,red300:lL,yellow700:lT,yellow300:lM,white900:lB}=eA.A.colorPalette,lD=[l_,l$,lE,lO,lT,lB,lz,lH,lR,lL,lM,lS],lF=C.Ay.div.withConfig({componentId:"sc-a61ce96c-0"})(["display:flex;flex-shrink:0;position:relative;width:16px;height:16px;box-sizing:border-box;"]),lN=C.Ay.button.withConfig({componentId:"sc-a61ce96c-1"})(["background-color:",";width:100%;height:100%;border:1px solid ",";box-sizing:border-box;border-radius:4px;padding:0;margin:0;&:hover{cursor:",";border-color:",";}&:focus{border-color:",";}&&[disabled]{cursor:not-allowed;border-color:",";}"],e=>e.color,e=>"dark"===e.variant?e.theme.colorPalette.grey800:e.theme.colorPalette.grey100,e=>e.readOnly?"auto":"pointer",e=>e.readOnly?"":e.theme.colorPalette.grey500,e=>e.readOnly?"":e.theme.colorPalette.blue400,e=>e.theme.colorPalette.grey100),lU=e=>{let{variant:t="light",disabled:o=!1,color:r,readOnly:l=!1,swatch:{colors:i=lD,columns:n},onColorSelected:a,onClickListenerAdded:c=null,onClickListenerRemoved:d=null}=e,s=(0,w.useRef)(null),[h,p]=(0,w.useState)(!1),u=()=>{!l&&(o||p(!h))};return(0,v.jsxs)(lF,{ref:s,onClick:u,children:[(0,v.jsx)(lN,{variant:t,disabled:o,color:r,readOnly:l}),h&&(0,v.jsx)(rJ,{onOutsideClick:u,toggleRef:s,onClickListenerAdded:c,onClickListenerRemoved:d,children:(0,v.jsx)(lI,{variant:t,selectedColor:r,colors:i,onColorSelected:a,columns:n})})]})},lW=e=>{var t,o;let{item:r,onClickItem:l}=e,{variant:i,swatchColors:n,swatchColumns:a,selectionLimitExceed:c,selectionLimitExceedMessage:d,placeholderTagInput:s,maxLengthTagInput:h,spinnerActiveTagInputDeleteButton:p,onClickListenerAdded:u,onClickListenerRemoved:g}=rK(),m=(null==(t=r.data)?void 0:t.color)||(null==n?void 0:n[0])||lD[0],[x,f]=(0,w.useState)(r.title),b=s||"New Tag",[y,P]=(0,w.useState)(m),[k,C]=(0,w.useState)(250),j=(0,w.useRef)(),A=(0,w.useRef)(),I=r.readOnly,_=!!(null==r||null==(o=r.data)?void 0:o.onClickDeleteButton)&&!I;(0,w.useEffect)(()=>{(null==j?void 0:j.current)&&C(Math.max(j.current.getBoundingClientRect().width+4,80))},[x,j]);let z={...n?{colors:n}:{},columns:a};return(0,v.jsxs)(rI,{children:[(0,v.jsxs)(r_,{children:[(0,v.jsx)(ig,{variant:i,containerRef:A,disabled:r.disabled,checked:r.selected,onClick:()=>{(!c||r.selected)&&l()}}),c&&!r.selected&&(0,v.jsx)(op,{triggerRef:A,forceToShowOnHover:!0,message:d}),(0,v.jsx)(lU,{variant:i,disabled:r.disabled,color:y,swatch:z,onColorSelected:e=>{var t,o;P(e),null==r||null==(o=r.data)||null==(t=o.onColorSelected)||t.call(o,e)},onClickListenerAdded:u,onClickListenerRemoved:g,readOnly:I}),(0,v.jsx)(r$,{variant:i,ref:j,children:null!=x?x:b}),(0,v.jsx)(rH,{variant:i,$width:k,placeholder:b,value:x,onChange:e=>{var t,o;f(e.target.value),null==r||null==(o=r.data)||null==(t=o.onTextChange)||t.call(o,e.target.value)},maxLength:h,isReadOnly:I})]}),_&&(0,v.jsx)(rA,{children:(0,v.jsx)(oz,{variant:"dark"===i?"ghostIconDark":"ghost",size:"small",disabled:r.disabled,onClick:e=>{var t,o;e.stopPropagation(),null==r||null==(o=r.data)||null==(t=o.onClickDeleteButton)||t.call(o)},tooltipPosition:"fixed",spinnerActive:p})})]})},lJ=e=>{var t,o;let{item:r,onClickItem:l}=e,i=(0,w.useRef)(null),{variant:n}=rK();return(0,v.jsxs)(rP,{variant:n,onClick:()=>{r.disabled||l()},children:[(0,v.jsx)(rE,{ref:i,children:r.title}),(0,v.jsx)(op,{triggerRef:i,sameWidth:!0,message:r.title}),(null==(t=r.data)?void 0:t.showActionTooltip)&&(0,v.jsx)(is,{variant:"dark",message:null==(o=r.data)?void 0:o.message,children:(0,v.jsx)(eK.Poj,{size:20,color:"orange"})})]})},lG=e=>{var t;let{item:o,onClickItem:r,size:l}=e,i=(0,w.useRef)(null),{variant:n}=rK(),a=null==o?void 0:o.icon,c={size:20,color:o.danger?eA.A.colorPalette.red800:null!=(t=o.iconColor)?t:eA.A.colorPalette.grey400},{AdditionalContent:d,Renderer:s,title:h}=o,p=d?(0,v.jsx)(d,{}):s?s():h;return(0,v.jsx)(rP,{variant:n,size:l,disabled:o.disabled,onClick:r,children:(0,v.jsxs)(rk,{children:[(null==o?void 0:o.icon)&&(0,v.jsx)(ra,{children:(0,v.jsx)(a,{...c})}),(0,v.jsx)(rE,{ref:i,children:p}),(0,v.jsx)(op,{triggerRef:i,sameWidth:!0,message:o.title})]})})},lY=e=>{let{item:t,onClickItem:o,onClickTreeviewArrow:r}=e,{selectionLimitExceed:l,selectionLimitExceedMessage:i}=rK(),n=(0,w.useRef)(null),a=(0,w.useRef)(null);return(0,v.jsxs)(rw,{children:[(0,v.jsx)(eK.eQr,{size:16,onClick:e=>{e.preventDefault(),e.stopPropagation(),r()},overflow:"visible",style:{rotate:t.treeviewOpen?"0deg":"-90deg"}}),(0,v.jsx)(ig,{fullWidth:!0,containerRef:n,labelRef:a,disabled:t.disabled,checked:t.selected,label:t.title,onClick:()=>{(!l||t.selected)&&o()},indeterminate:null==t?void 0:t.indeterminate}),(0,v.jsx)(op,{triggerRef:a,sizeRef:n,position:"absolute",message:t.title}),l&&!t.selected&&(0,v.jsx)(op,{triggerRef:n,forceToShowOnHover:!0,message:i})]})},lQ=e=>{let{variant:t,item:o,itemStyle:r,onClickItem:l,size:i,sameWidth:n,onClickDisabledItem:a,onClickTreeviewArrow:c}=e,d=()=>
1{if(o.disabled){null==a||a(o);return}l(o)};return(0,v.jsx)(rb,{variant:t,disabled:o.disabled,selected:"default"!==r&&o.selected,danger:o.danger,tagInput:"tagInput"===r,children:(e=>{switch(e){case"checkmark":return(0,v.jsx)(rZ,{item:o,onClickItem:d});case"tagButton":return(0,v.jsx)(lk,{item:o,onClickItem:d});case"actionTooltip":return(0,v.jsx)(lJ,{item:o,onClickItem:d});case"tagInfo":return(0,v.jsx)(lC,{item:o,onClickItem:d});case"checkbox":return(0,v.jsx)(r0,{item:o,onClickItem:d});case"tagInput":return(0,v.jsx)(lW,{item:o,onClickItem:d});case"customRenderer":return(0,v.jsx)(lG,{size:i,item:o,onClickItem:d});case"treeview":return(0,v.jsx)(lY,{item:o,onClickItem:d,onClickTreeviewArrow:c});default:return(0,v.jsx)(rq,{size:i,item:o,onClickItem:d,sameWidth:n,onClickDisabledItem:a})}})(r)})},lV=e=>{let{variant:t,itemStyle:o,items:r,onClickItem:l,size:i,onClickDisabledItem:n}=e;return(0,v.jsx)(rf,{children:r.map(e=>(0,v.jsx)(lQ,{variant:t,size:i,itemStyle:o,item:e,onClickItem:l,sameWidth:(null==r?void 0:r.length)>2,onClickDisabledItem:n},"".concat(e.id,"-").concat(e.title)))})},lK=e=>{let{variant:t,itemStyle:o,searchQuery:r,groupedItems:l,onClickItem:i,size:n,search:a,footer:c,onClickDisabledItem:d}=e,s=r?l.map(e=>({...e,items:e.items.filter(e=>{try{return new RegExp(r.toLowerCase()).test(e.title.toLowerCase())}catch(e){return!0}})})):l,[h,p]=(0,w.useState)([]);if(s.every(e=>0===e.items.length)){let e={id:"no-result-found",title:"No Result Found",disabled:!0,selected:!1};return(0,v.jsx)(ry,{children:(0,v.jsx)(lQ,{variant:t,size:n,itemStyle:"default",item:e,onClickItem:()=>{}},e.id)})}return(0,v.jsx)(ru,{variant:t,footer:c,search:a,children:s.map(e=>{let l=!!e.collapsible&&!r&&h.includes(e.id);return(0,v.jsxs)(w.Fragment,{children:[e.title&&e.items.length>0&&s.length>0&&(0,v.jsxs)(rm,{$collapsible:e.collapsible,onClick:e.collapsible?()=>(e=>p(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]))(e.id):void 0,children:[e.title,e.collapsible&&(0,v.jsx)(rx,{$collapsed:l,children:(0,v.jsx)(eK.eQr,{size:14})})]}),!l&&(0,v.jsx)(lV,{variant:t,size:n,itemStyle:o,items:e.items,onClickItem:t=>i(e.id,t),onClickDisabledItem:d})]},e.id)})})},lq=e=>{let{variant:t,footerDisabled:o,footerSpinnerActive:r,footerIcon:l,footerText:i,onClickFooter:n}=e,{showFooterTooltip:a,footerTooltipMessage:c}=rK(),d=(0,w.useRef)();return(0,v.jsxs)(rS,{children:[(0,v.jsx)(rO,{variant:t}),(0,v.jsx)(rL,{variant:t,ref:d,disabled:o,children:r?(0,v.jsx)(rT,{fullWidth:!0,align:"center",justify:"center",children:(0,v.jsx)(tH.a,{size:"small",light:"dark"===t})}):(0,v.jsx)(oI,{width:"100%",disabled:o,variant:"dark"===t?"ghostDark":"ghost",iconType:l,iconPosition:"left",label:i,onClick:e=>{e.stopPropagation(),n()}})}),a&&(0,v.jsx)(op,{triggerRef:d,forceToShowOnHover:!0,message:c})]})},lX=e=>!!e.selected||!!e.children&&e.children.length>0&&e.children.some(lX),lZ=e=>{let t=e.find(lX);return t.selected?t.title:lZ(t.children)},l0=e=>e.reduce((e,t)=>t.children?e+l0(t.children):e+1,0),l1=e=>e.reduce((e,t)=>t.children?e+l1(t.children):e+1,0),l2=e=>e.reduce((e,t)=>t.children?t.children.length>0?l2(t.children):e:t,{}),l4=e=>e.every(e=>!!e.selected||!!e.children&&e.children.length>0&&l4(e.children)),l6=e=>e.some(e=>!!e.selected||!!e.children&&e.children.length>0&&l6(e.children))&&!l4(e),l3=e=>{let{variant:t,size:o,treeviewGroup:r,treeviewMenuOpen:l,onSelectItems:i,onDeselectItems:n,onClickTreeviewArrow:a}=e,{children:c,id:d,title:s}=r,h=l4(c),p=l6(c),u=h?n:i,g=e=>e.map(e=>e.children?g(e.children):e.id).flat();return(0,v.jsx)(lQ,{variant:t,size:o,itemStyle:"treeview",item:{id:d,title:s,selected:h,indeterminate:p,treeviewOpen:l},onClickItem:()=>{u(g(c))},onClickTreeviewArrow:()=>{a(d)}})},l5=e=>{let{variant:t,itemStyle:o,searchQuery:r,treeviewGroups:l,onSelectItems:i,onDeselectItems:n,onClickItem:a,size:c,search:d,onClickDisabledItem:s,isRecursive:h=!1}=e,[p,u]=(0,w.useState)(l.map(e=>e.id)),g=r?rG(r,l):l,m=!(l1(g)>0),x=e=>{p.includes(e)?u(p.filter(t=>t!==e)):u([...p,e])};if(m){let e={id:"no-result-found",title:"No Result Found",disabled:!0,selected:!1};return(0,v.jsx)(ry,{children:(0,v.jsx)(lQ,{variant:t,size:c,itemStyle:"default",item:e,onClickItem:()=>{}},e.id)})}return(0,v.jsx)(rg,{variant:t,applyPadding:h||d,children:g.map(e=>{if(!e.children||1===l1(e.children||[]))return(0,v.jsx)(rM,{children:(0,v.jsx)(lQ,{variant:t,size:c,itemStyle:"checkbox",item:e.children?l2(e.children):e,onClickItem:e=>a(e.id,e)})});let l=p.includes(e.id);return(0,v.jsxs)(j.VP,{children:[(null==e?void 0:e.title)&&(0,v.jsx)(l3,{variant:t,size:c,treeviewGroup:e,treeviewMenuOpen:l,onSelectItems:i,onDeselectItems:n,onClickTreeviewArrow:x}),l&&(0,v.jsx)(l5,{variant:t,itemStyle:o,searchQuery:r,treeviewGroups:e.children,onSelectItems:i,onDeselectItems:n,onClickItem:(e,t)=>
1a(e,t),size:c,search:d,onClickDisabledItem:s,isRecursive:!0})]})})})},l8=e=>{let{toggleRef:t,excludedOutsideClickElementIds:o=[],variant:r,alignment:l,close:i,size:n="XL",search:a=!1,searchPlaceholder:c="Search...",itemStyle:d="default",groupedItems:s,onClickItem:h,treeviewMenuActive:p=!1,treeviewGroups:u,onSelectItems:g,onDeselectItems:m,footer:x=!1,footerDisabled:f=!1,footerSpinnerActive:b=!1,footerIcon:y=null,footerText:P=null,onClickFooter:k=null,width:C,maxHeight:j,countMouseDownAndUpAsClick:A,onClickDisabledItem:I,menuPaddingBottom:_=0}=e,z=(0,w.useRef)(null),[$,H]=(0,w.useState)(""),{onClickListenerAdded:E,onClickListenerRemoved:R}=rK(),S=s.reduce((e,t)=>e+t.items.length,0),O=l0(u);return(0,w.useEffect)(()=>{(null==z?void 0:z.current)&&setTimeout(()=>{if(!z.current)return;let{top:e,height:t,bottom:o}=z.current.getBoundingClientRect();e>=0&&o<window.innerHeight&&t<window.innerHeight||z.current.scrollIntoView({block:"center"})},100)},[z]),(0,v.jsx)(rJ,{onOutsideClick:i,excludedElementIds:o,toggleRef:t,minHeight:186,maxHeight:j,alignment:l,onClickListenerAdded:E,onClickListenerRemoved:R,numberOfItems:p?O:S,variant:r,countMouseDownAndUpAsClick:A,$paddingBottom:_,children:(0,v.jsxs)(rp,{className:"dropdown-menu-container",variant:r,size:n,footer:x,$width:C,ref:z,onClick:e=>e.stopPropagation(),children:[a&&"XXS"!==n&&(0,v.jsx)(rQ,{variant:r,focus:!0,searchQuery:$,placeholder:c,setSearchQuery:H}),!p&&(0,v.jsx)(lK,{variant:r,search:a,size:n,footer:x,itemStyle:d,searchQuery:$,groupedItems:s,onClickItem:h,onClickDisabledItem:I}),p&&(0,v.jsx)(l5,{variant:r,search:a,size:n,itemStyle:d,searchQuery:$,onClickItem:h,onClickDisabledItem:I,treeviewGroups:u,onSelectItems:g,onDeselectItems:m}),x&&(0,v.jsx)(lq,{variant:r,footerDisabled:f,footerSpinnerActive:b,footerIcon:y,footerText:"XXS"!==n?P:"",onClickFooter:()=>{H(""),k()}})]})})},l7=e=>{var t;let{alignment:o="left",variant:r="light",disabled:l=!1,focus:i=!1,size:n="XL",menuSize:a,label:c=null,placeholder:d="Choose an item",search:s=!1,searchPlaceholder:h="Search...",itemStyle:p="default",groupedItems:u=[],onClickItem:g,treeviewMenuActive:m=!1,treeviewGroups:x=[],onSelectItems:f,onDeselectItems:b,footer:y=!1,footerDisabled:P=!1,footerSpinnerActive:k=!1,footerIcon:C=null,footerText:j=null,onClickFooter:A=null,closeOnClickFooter:I=!0,children:_,onOpened:z,onClosed:$,hasError:H,formRef:E,width:R,maxHeight:S=null,dataTestId:O,toggleTitle:L,excludedOutsideClickElementIds:T,countMouseDownAndUpAsClick:M,onClickDisabledItem:B,allowEventBubbling:D=!1,menuPaddingBottom:F,...N}=e,[U,W]=(0,w.useState)(!1),J=(0,w.useRef)(null),G=(e=>{let{variant:t,itemStyle:o,groupedItems:r,treeviewGroups:l,selectionLimit:i,selectionLimitExceedMessage:n,swatchColors:a,swatchColumns:c,placeholderTagInput:d,maxLengthTagInput:s,spinnerActiveTagInputDeleteButton:h,showFooterTooltip:p,footerTooltipMessage:u,onClickListenerAdded:g=null,onClickListenerRemoved:m=null}=e,x=["tagInput","checkbox"],f=!1;return x.includes(o)&&r&&(f=r.reduce((e,t)=>t.items.reduce((e,t)=>t.selected?e+1:e,0)+e,0)>=i),x.includes(o)&&l&&(f=l.reduce((e,t)=>t.children?t.children.reduce((e,t)=>t.selected?e+1:e,0)+e:t.selected?e+1:e,0)>=i),{variant:t,selectionLimitExceed:f,selectionLimitExceedMessage:n,swatchColors:a,swatchColumns:c,placeholderTagInput:d,maxLengthTagInput:s,spinnerActiveTagInputDeleteButton:h,showFooterTooltip:p,footerTooltipMessage:u,onClickListenerAdded:g,onClickListenerRemoved:m}})({variant:r,itemStyle:p,groupedItems:u,treeviewGroups:x,...N});(0,w.useEffect)(()=>{let e;return i&&!U?e=setTimeout(()=>{var e;return null==J||null==(e=J.current)?void 0:e.focus()},100):U||(e=setTimeout(()=>{var e;return null==J||null==(e=J.current)?void 0:e.blur()},100)),()=>{clearTimeout(e)}},[i,U]);let Y=e=>{D||e.stopPropagation(),l||(W(!U),U?null==$||$():null==z||z())},Q=()=>{W(!1),null==$||$()},V=null==u?void 0:u.some(e=>e.items.some(e=>e.selected)),K=x.some(lX),q=V||K,X=null==u?void 0:u.some(e=>e.items.some(e=>e.selected)),Z=V||X,ee="default"===p||"checkmark"===p||"tagButton"===p||"tagInfo"===p||"actionTooltip"===p||"checkbox"===p||"customRenderer"===p||"tagInput"===p;return _||ee?(0,v.jsx)(rV.Provider,{value:G,children:(0,v.jsxs)(o8,{ref:E,...(0,tE.C)({options:[O,null==(t=u[0])?void 0:t.id],suffix:"dropdown"}),className:"DropdownContainer","data-testid":O,children:[!_&&e7(c)&&0!==c.length&&ee?(0,v.jsx)(o7,{size:n,width:R,children:(0,v.jsx)(o9,{variant:r,size:n,children:c})}):null,(0,v.jsxs)(re,{className:"DropdownWrapper",children:[_?(0,v.jsx)(rt,{ref:J,onClick:e=>Y(e),id:"".concat(O,"-toggle"),children:_}):ee?(0,v.jsx)(rB,{variant:r,dataTestId:"".concat(O,"-toggle"),hasSelectedItem:Z,hasError:H,ref:J,disabled:l,active:U,selected:q,size:n,text:(()=>
1{if(L)return L;if(u.length>0)for(let t=0;t<u.length;t+=1){var e;let o=null==(e=u[t].items.find(e=>e.selected))?void 0:e.title;if(o)return o}if(x.length>0){let e=lZ(x);if(e)return e}return d})(),onClick:e=>Y(e),width:R}):null,U&&(0,v.jsx)(l8,{toggleRef:J,excludedOutsideClickElementIds:T,countMouseDownAndUpAsClick:M,variant:r,alignment:o,close:Q,size:a||n,search:s,searchPlaceholder:h,itemStyle:p,groupedItems:u,onClickItem:(e,t)=>{"checkbox"!==p&&"tagInput"!==p&&Q(),g(e,t)},footer:y,footerDisabled:P,footerSpinnerActive:k,footerIcon:C,footerText:j,onClickFooter:()=>{I&&W(!1),A()},width:R,maxHeight:S,onClickDisabledItem:B,treeviewMenuActive:m,treeviewGroups:x,onSelectItems:f,onDeselectItems:b,menuPaddingBottom:F})]})]})}):null};(0,o$.A)((0,w.forwardRef)((e,t)=>(0,v.jsx)(l7,{formRef:t,...e}))),C.Ay.div.withConfig({componentId:"sc-c417fad8-0"})(["display:flex;align-items:center;width:fit-content;height:fit-content;border-radius:12px;"]),(0,C.Ay)(oI).withConfig({componentId:"sc-c417fad8-1"})(["border-radius:12px 0 0 12px !important;border-right:unset !important;"]),(0,C.Ay)(oI).withConfig({componentId:"sc-c417fad8-2"})(["border-radius:0 12px 12px 0 !important;border-left:1px solid "," !important;"],e=>e.theme.colorPalette.grey300);var l9=o(58296);let ie={small:(0,C.AH)(["",""],e=>e.theme.typography.p12_500),medium:(0,C.AH)(["",""],e=>e.theme.typography.p14_500),large:(0,C.AH)(["",""],e=>e.theme.typography.p16_500)},it=(0,C.AH)([""," text-decoration:unset !important;",""],e=>ie[e.size],e=>"dark"===e.variant?(0,C.AH)(["color:",";&:hover{color:",";}&:focus,&:active{outline:none;color:",";}cursor:pointer;width:fit-content;"],e.theme.colorPalette.blue400,e.theme.colorPalette.blue300,e.theme.colorPalette.blue500):(0,C.AH)(["color:",";&:hover{color:",";}&:focus,&:active{outline:none;color:",";}cursor:pointer;width:fit-content;"],e.theme.colorPalette.blue600,e.theme.colorPalette.blue500,e.theme.colorPalette.blue700)),io=C.Ay.a.withConfig({componentId:"sc-a102e349-0"})(["",""],it),ir=(0,C.Ay)(l9.N_).withConfig({componentId:"sc-a102e349-1"})(["",""],it),il=e=>{let{variant:t="light",text:o,href:r,rel:l,to:i,target:n="_blank",size:a="medium",onClick:c,download:d=!1,...s}=e,h=c?{onClick:c}:{href:r,target:n,rel:l};return i?(0,v.jsx)(ir,{...s,...c?{onClick:c}:{},variant:t,size:a,to:i,children:o}):(0,v.jsx)(io,{...s,variant:t,size:a,...h,download:d,children:o})},ii=C.Ay.div.attrs(e=>({style:{position:e.$position,visibility:e.$visible?"visible":"hidden",top:e.$top?"".concat(e.$top,"px"):"",left:e.$left?"".concat(e.$left,"px"):""}})).withConfig({componentId:"sc-1775b3b3-0"})(["z-index:",";display:flex;align-items:center;box-sizing:border-box;border-radius:6px;padding:16px;"," color:",";background-color:",";box-shadow:",";width:220px;height:fit-content;user-select:none;"],e=>e.theme.zIndex.tooltip,e=>e.theme.typography.p12_500,e=>e.theme.colorPalette.grey800,e=>"dark"===e.variant?e.theme.colorPalette.grey900:e.theme.colorPalette.white900,e=>e.theme.shadow.shadow200),ia=C.Ay.div.attrs(e=>({style:{top:e.$top?"".concat(e.$top,"px"):"",left:e.$left?"".concat(e.$left,"px"):"",right:e.$right?"".concat(e.$right,"px"):"",bottom:e.$bottom?"".concat(e.$bottom,"px"):"",transform:"rotate(45deg)"}})).withConfig({componentId:"sc-1775b3b3-1"})(["position:absolute;border-radius:1px 0 0 0;background-color:",";width:12px;height:12px;"],e=>"dark"===e.variant?e.theme.colorPalette.grey900:e.theme.colorPalette.white900),ic=C.Ay.div.withConfig({componentId:"sc-1775b3b3-2"})(["cursor:pointer;"]),id=C.Ay.span.withConfig({componentId:"sc-1775b3b3-3"})([""," color:",";white-space:break-spaces;"],e=>e.theme.typography.p12_400,e=>"dark"===e.variant?e.theme.colorPalette.white900:e.theme.colorPalette.grey900),is=e=>{let{message:t,link:o=null,button:r=null,onButtonClick:l=null,children:i=null,initialShow:n=!1,alwaysShow:a=!1,variant:c="light",onHidden:d,onVisible:s,buttonLabel:h="Got It",linkText:p="Learn More",onTextLinkClick:u}=e,g=(0,w.useRef)(null),[m,x]=(0,w.useState)(!1),{x:f,y:b,reference:y,floating:P,strategy:k,update:C,refs:A,placement:I,middlewareData:_}=(0,eI.we)({strategy:"fixed",placement:"right",middleware:[(0,e_.cY)({mainAxis:12,crossAxis:0}),(0,eI.UE)({element:g})]}),z=null==_?void 0:_.arrow,$={top:"$bottom",right:"$left",bottom:"$top",left:"$right"}[I.split("-")[0]],H={$left:null==z?void 0:z.x,$top:null==z?void 0:z.y,$right:void 0,$bottom:void 0,[$]:"-6"},E=()=>{C(),setTimeout(()=>x(!0),50),null==s||s()},R=()=>{x(!1),null==d||d()};return(0,eM.A)({elementsToExcludeByRef:[A.floating,A.reference],elementsToExcludeByIdOrClassName:[],callback:R}),(0,w.useEffect)(()=>{let e;return(n||a)&&(e=setTimeout(()=>E(),100)),()=>{clearTimeout(e)}},[]),(0,w.useEffect)(()=>
1{if(!A.reference.current||!A.floating.current)return;let e=[...(0,ez.Rd)(A.reference.current),...(0,ez.Rd)(A.floating.current)];return e.forEach(e=>{e.addEventListener("scroll",C),e.addEventListener("resize",C)}),()=>{e.forEach(e=>{e.removeEventListener("scroll",C),e.removeEventListener("resize",C)})}},[A.reference,A.floating,C]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(ic,{className:"actionable-tooltip-wrapper",ref:y,onClick:e=>{e.stopPropagation(),e.preventDefault(),m?R():E()},children:i}),(0,v.jsxs)(ii,{ref:P,variant:c,$visible:m,$position:k,$top:b,$left:f,children:[(0,v.jsxs)(j.VP,{elementsMarginTop:"triple",children:[(0,v.jsxs)(j.VP,{elementsMarginTop:"mono",children:[(0,v.jsx)(id,{variant:c,children:t}),o&&(0,v.jsx)(il,{size:"small",href:o,target:"_blank",text:p,onClick:u})]}),r&&(0,v.jsx)(j.fI,{elementsMarginTop:"triple",justify:"center",children:(0,v.jsx)(oI,{width:96,size:"small",variant:"secondary",label:h,onClick:()=>{R(),null==l||l()}})})]}),(0,v.jsx)(ia,{ref:g,variant:c,...H})]})]})},ih=e=>{let{tooltipLabel:t,link:o,linkText:r,tooltipIconSize:l=16,boldLabel:i}=e,n=(0,C.DP)(),a=i?n.colorPalette.grey800:n.colorPalette.grey600;return(0,v.jsx)(is,{message:t,link:o,linkText:r,variant:"dark",children:(0,v.jsx)(j.fI,{align:"center",children:(0,v.jsx)(eK.CwO,{size:l,color:a})})})},ip=e=>{let{tooltipLabel:t,tooltipPlacement:o="right",tooltipIconSize:r=12,boldLabel:l}=e,i=(0,C.DP)(),n=l?i.colorPalette.grey800:i.colorPalette.grey600;return(0,v.jsx)(eT,{width:220,tooltipPlacement:o,label:t,isMultiline:!0,children:(0,v.jsx)(j.fI,{align:"center",children:(0,v.jsx)(eK.CwO,{size:r,color:n})})})},iu=(0,w.memo)(e=>{let{hasTooltip:t,tooltipLabel:o,tooltipPlacement:r,isTooltipActionable:l,tooltipLink:i,tooltipLinkText:n,tooltipIconSize:a,boldLabel:c}=e;return t?l?(0,v.jsx)(ih,{boldLabel:c,link:i,tooltipLabel:o,linkText:n,tooltipIconSize:a}):(0,v.jsx)(ip,{boldLabel:c,tooltipLabel:o,tooltipPlacement:r,tooltipIconSize:a}):null}),ig=e=>{let{variant:t="light",size:o="medium",checked:r,disabled:l=!1,label:i=null,boldLabel:n=!0,outlined:a=!1,onClick:c,width:d,fullWidth:s,containerRef:h,labelRef:p,customInputColor:u,hasInput:g=!1,inputProps:m,indeterminate:x=!1,children:f,hasTooltip:b=!1,tooltipLabel:y="",tooltipPlacement:P="right",tooltipType:k="default",tooltipLink:C,tooltipLinkText:A,tooltipIconSize:I,..._}=e,z=(0,w.useRef)(),$=(0,w.useRef)(),H=e7(i)&&0!==i.length&&a&&"dark"!==t,E=()=>{l||(setTimeout(()=>z.current.blur(),100),null==c||c(!r))},R=g&&r;return(0,v.jsxs)(t$,{variant:t,ref:h,size:o,hasInput:g&&r,disabled:l,outlined:H,customInputColor:u,label:i,$width:d,$fullWidth:s,onClick:e=>{e.preventDefault(),e.stopPropagation(),E()},onKeyUp:e=>{e.preventDefault(),e.stopPropagation(),"Space"!==e.code||g||E()},"data-testid":"checkbox-container-test-id","data-hover":_["data-hover"],children:[(0,v.jsxs)(tk,{variant:t,size:o,disabled:l,outlined:H,label:i,children:[(0,v.jsx)(tP,{ref:z,disabled:l,checked:r,onChange:()=>{},..._}),(0,v.jsx)(tC,{variant:t,size:o,disabled:l,outlined:H,children:(r||x)&&(0,v.jsx)(tj,{variant:t,size:o,disabled:l,outlined:H,customInputColor:u,children:((e,t)=>{switch(e){case"small":return t?(0,v.jsx)(ts,{}):(0,v.jsx)(tl,{});case"medium":return t?(0,v.jsx)(tc,{}):(0,v.jsx)(to,{});case"large":return t?(0,v.jsx)(tn,{}):(0,v.jsx)(te,{});default:return null}})(o,x)})})]}),R?(0,v.jsx)(e8.p,{...m,inputRef:$,onClick:e=>e.stopPropagation()}):(0,v.jsx)(tA,{size:o,children:(0,v.jsx)(tI,{ref:p,variant:t,size:o,disabled:l,boldLabel:n,children:f?(0,v.jsxs)(j.fI,{align:"center",justify:"space-between",gap:"mono",children:[i,f]}):i})}),(0,v.jsx)(iu,{boldLabel:n,hasTooltip:b,tooltipLabel:y,tooltipPlacement:P,isTooltipActionable:"actionable"===k,tooltipLink:C,tooltipLinkText:A,tooltipIconSize:I})]})},im=C.Ay.div.withConfig({componentId:"sc-63253b20-0"})(["color:",";",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;"],e=>e.theme.colorPalette.grey400,e=>e.theme.typography.p12_500);C.Ay.label.withConfig({componentId:"sc-63253b20-1"})(["width:100%;height:fit-content;display:flex;align-items:center;justify-content:space-between;gap:","px;
1cursor:pointer;user-select:none;&:focus-within,&:hover{border-radius:8px;background:",";}&&[disabled]{cursor:not-allowed;","{color:",";}}"],e=>e.theme.spacing.double,e=>e.disabled?"transparent":"linear-gradient(270deg, #29303D 0%, rgba(41, 48, 61, 0.1) 100%)",im,e=>e.theme.colorPalette.grey700),C.Ay.div.withConfig({componentId:"sc-63253b20-2"})(["display:flex;align-items:center;gap:","px;min-width:0;overflow:hidden;"],e=>e.theme.spacing.double),C.Ay.div.withConfig({componentId:"sc-63253b20-3"})(["display:flex;flex-shrink:0;"]);let ix=e=>{let{hyperlink:t,insertHyperlink:o}=e,{url:r,openInNewTab:l}=t,[i,n]=(0,w.useState)(r||"https://"),[a,c]=(0,w.useState)(l),{closePopover:d}=(0,eo.N5)(),s=()=>{o({url:i,openInNewTab:a}),d()};return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(e8.p,{width:"small",height:"large",value:i,onChange:e=>n(e),label:"Type the URL below",autoFocus:!0,onKeyUp:e=>{"Enter"===e.key&&s()}}),(0,v.jsx)(ig,{checked:a,onClick:()=>c(e=>!e),label:"Open in a new tab",size:"large"}),(0,v.jsx)(oI,{width:100,variant:"primary",label:"Confirm",size:"small",onClick:s})]})},ib={bullet:"Bullet Point",h1:"Heading 1",paragraph:"Normal"},iy=C.Ay.div.withConfig({componentId:"sc-9d7376ff-0"})([""]),iv=e=>{let{toolbarStyle:t={},editorActionHandlers:o}=e,{editor:r,bold:l,italic:i,underline:n,bulletPoint:a,blockFormat:c,align:d,insertHyperlink:s,insertEmoji:h}=o,{isBold:p,isItalic:u,isUnderline:g,blockType:m,alignment:x,isLink:f,hyperlink:b}=(e=>{let[t,o]=(0,w.useState)("paragraph"),[r,l]=(0,w.useState)(!1),[i,n]=(0,w.useState)(!1),[a,c]=(0,w.useState)({url:"",openInNewTab:!1}),[d,s]=(0,w.useState)(!1),[h,p]=(0,w.useState)(!1),[u,g]=(0,w.useState)(!1),[m,x]=(0,w.useState)("left"),[f,b]=(0,w.useState)(!1),y=(0,w.useCallback)(()=>{e&&e.getEditorState().read(()=>{let t;if(e.isComposing())return;let r=(0,N.vJ)(),i=window.getSelection(),a=e.getRootElement();if(null!==i&&(!(0,N.I2)(r)||null===a||!a.contains(i.anchorNode)))return void l(!1);if(!(0,N.I2)(r))return;let d=er(r),h=r.anchor.getNode();s(r.hasFormat("bold")),p(r.hasFormat("italic")),g(r.hasFormat("underline")),b((0,G.LP)(r));let u=(0,et.Bt)(d,U.FJ);c((0,U.FJ)(u)?{url:u.getURL(),openInNewTab:"_blank"===u.getTarget()}:{url:"",openInNewTab:!1}),n((0,U.FJ)(u));let m="root"===h.getKey()?h:(0,et.Bt)(h,e=>{let t=e.getParent();return null!==t&&(0,N.Iq)(t)});null===m&&(m=h.getTopLevelElementOrThrow());let f=m.getKey();if(null!==e.getElementByKey(f))if((0,W.HY)(m))o("bullet");else{let e=(0,J.Pi)(m)?m.getTag():m.getType();e in ib&&o(e)}let y=d.getParent();(0,U.FJ)(y)&&(t=(0,et.Bt)(d,e=>(0,N.ff)(e)&&!e.isInline())),x((0,N.ff)(t)?t.getFormatType():(0,N.ff)(d)?d.getFormatType():(null==y?void 0:y.getFormatType())||"left"),""!==r.getTextContent()?l((0,N.kF)(d)||(0,N.bS)(d)):l(!1)})},[e]),v=(0,w.useMemo)(()=>eH()(y,100,{leading:!0,trailing:!0}),[y]);return(0,w.useEffect)(()=>(document.addEventListener("selectionchange",v),()=>{v.cancel(),document.removeEventListener("selectionchange",v)}),[v]),(0,w.useEffect)(()=>{if(!e)return()=>{};let t=(0,et.Sd)(e.registerUpdateListener(()=>{y()}),e.registerRootListener(()=>{null===e.getRootElement()&&l(!1)}));return()=>t()},[e,y]),{isText:r,isRTL:f,isBold:d,isItalic:h,isUnderline:u,blockType:t,alignment:m,isLink:i,hyperlink:a}})(r);return(0,v.jsx)(iy,{style:t,children:(0,v.jsx)(e0,{items:[{title:"Bold",icon:"bold",active:p,onClick:l},{title:"Italic",icon:"italic",active:u,onClick:i},{title:"Underline",icon:"underline",active:g,onClick:n},{title:"Bullet Point",icon:"bulletPoint",active:"bullet"===m,onClick:()=>a("bullet"!==m)},{title:"Separator",icon:"none",type:"separator"},{title:"Heading",icon:"heading",active:"h1"===m,onClick:()=>"h1"!==m&&c("h1")},{title:"Normal",icon:"paragraph",active:"paragraph"===m,onClick:()=>"paragraph"!==m&&c("paragraph")},{title:"Separator",icon:"none",type:"separator"},{title:"Align Left",icon:"alignLeft",active:"left"===x,onClick:()=>d("left")},{title:"Align Center",icon:"alignCenter",active:"center"===x,onClick:()=>d("center")},{title:"Align Right",icon:"alignRight",active:"right"===x,onClick:()=>d("right")},{title:"Align Justify",icon:"alignJustify",active:"justify"===x,onClick:()=>d("justify")},{title:"Separator",icon:"none",type:"separator"},{title:"Hyperlink",icon:"hyperlink",active:f,type:"dropdown",contentTitle:"Hyperlink",popoverStyle:{userSelect:"none"},content:(0,v.jsx)(ix,{hyperlink:b,insertHyperlink:s})},{title:"Emojis",icon:"emojis",type:"dropdown",contentTitle:"Emojis",popoverStyle:{paddingLeft:8,paddingRight:8,userSelect:"none"}
1,content:(0,v.jsx)(e5,{insertEmoji:h})}]})})},iw="ug_editor_Theme_Styles",iP=(0,C.DU)([".","{.ug_editor__ltr{text-align:left;}.ug_editor__rtl{text-align:right;}.ug_editor__listItem::marker{color:#2E4168;}.ug_editor__paragraph{font-size:16px;font-style:normal;font-weight:400;line-height:24px;color:#2E4168;margin:0;position:relative;}.ug_editor__ul li span{color:#2E4168;}.ug_editor__h1{font-size:24px;font-style:normal;font-weight:500;line-height:28px;color:#2E4168;margin:0;padding:20px 0;}.ug_editor__textBold{font-weight:bold;}.ug_editor__textItalic{font-style:italic;}.ug_editor__textUnderline{text-decoration:underline !important;}.ug_editor__textStrikethrough{text-decoration:line-through;}.ug_editor__textUnderlineStrikethrough{text-decoration:underline line-through;}.ug_editor_textCode{background-color:#F4F7FD;padding:2px 0.2rem;font-family:'Roboto Mono',monospace;font-size:16px;font-weight:400;line-height:24px;color:#2E4168;}.ug_editor__link,.ug_editor__link.ug_editor__ltr,.ug_editor__link.ug_editor__rtl{color:#4169F0;text-decoration:none;span{color:#4169F0;text-decoration:none;}}.ug_editor__link:hover{color:#7794F4;text-decoration:underline;cursor:pointer;}.ug_editor__indent{--lexical-indent-base-value:40px;}.ug_editor__ul{padding:0;margin:0;list-style-position:outside;}.ug_editor__listItem{margin-top:8px;margin-left:24px;padding-left:8px;line-height:1.5;color:#2E4168;}.ug_editor__listItem.ug_editor__ltr{margin-left:24px;padding-left:8px;}.ug_editor__listItem.ug_editor__rtl{margin-right:24px;padding-right:8px;}.ug_editor__nestedListItem{list-style-type:none;}.ug_editor__nestedListItem:before,.ug_editor__nestedListItem:after{display:none;}.ug_editor__nestedListItem.ug_editor__ltr{margin:0 0 0 32px;}.ug_editor__nestedListItem.ug_editor__rtl{margin:0 32px 0 0;}.ug_editor__ol1{padding:0;margin:0;list-style-position:inside;}.ug_editor__ol2{padding:0;margin:0;list-style-type:upper-alpha;list-style-position:inside;}.ug_editor__ol3{padding:0;margin:0;list-style-type:lower-alpha;list-style-position:inside;}.ug_editor__ol4{padding:0;margin:0;list-style-type:upper-roman;list-style-position:inside;}.ug_editor__ol5{padding:0;margin:0;list-style-type:lower-roman;list-style-position:inside;}}"],iw);r=e=>{let{id:t,placeholder:o,content:r,setContent:l}=e,i=(0,w.useRef)(null),n={...i.current};return(0,v.jsx)(em,{children:(0,v.jsxs)(ex,{children:[(0,v.jsx)(ef,{children:(0,v.jsx)(iv,{editorActionHandlers:n})}),(0,v.jsx)("div",{className:"editor-shell",children:(0,v.jsx)(ey,{id:t,placeholder:o,content:r,setContent:l,ref:i},t)})]})})},e=>(0,v.jsxs)(eo.Ry,{children:[(0,v.jsx)(iP,{}),(0,v.jsx)("div",{className:iw,children:(0,v.jsx)(r,{...e})})]});let ik=e=>{let{content:t}=e,o=(0,w.useMemo)(()=>(0,v.jsx)(es,{className:"editor-scroller",children:(0,v.jsx)(eh,{className:"editor",children:(0,v.jsx)(L.a,{style:{position:"relative",maxWidth:"100%",width:"100%",height:"100%",top:0,left:0,outline:"none"}})})}),[]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(iP,{}),(0,v.jsx)(ep,{id:"editor-preview",className:iw,children:(0,v.jsx)(R.n,{initialConfig:{namespace:"EditorPreview",editable:!1,editorState:e=>(0,F.jE)(e,t,X),theme:eu,nodes:X,onError:()=>{}},children:(0,v.jsx)(O.$,{contentEditable:o,placeholder:null,ErrorBoundary:S.A})})})]})};var iC=o(9101),ij=o(15329),iA=o(40202);let iI=C.Ay.div.withConfig({componentId:"sc-30640ea4-0"})(["display:flex;flex-direction:column;gap:",";margin-top:","px;"],e=>{let{theme:t,isMobile:o}=e;return o?"".concat(t.spacing.double,"px"):"".concat(t.spacing.triple,"px")},e=>{let{theme:t}=e;return t.spacing.sextuple}),i_=e=>{let{langCode:t}=e,{state:o}=(0,ij.h)(),r=(0,iC.a)(),l=((0,iA.N2)(o.languages,o.faqItems,o.orders)[t]||[]).map(e=>o.faqItems.find(t=>t.id===e.id));return(0,v.jsx)(iI,{isMobile:r,children:l.map(e=>(0,v.jsx)(E,{title:e.question,size:"medium",iconPosition:"right",boxRoundness:o.page.boxRoundness,children:(0,v.jsx)(ik,{content:e.answer},e.id)},e.id))})}},10676:(e,t,o)=>{o.d(t,{t:()=>r});let r=e=>{try{return e.toString().trim().length>0}catch(e){return!1}}},31047:(e,t,o)=>{o.d(t,{jE:()=>a});var r=o(3439),l=o(10676),i=o(66574);o(79689);var n=o(75326);let a=(e,t,o)=>{if(!e||!t)return;let a=((e,t)=>{let o=(0,l.t)(e)?null==e?void 0:e.trim():JSON.stringify(i.$o);return"html"==((e=>{try{JSON.parse(e)}catch(e){return!1}return!0})(o)?"json":"html")&&(o=((e,t)=>{if(!(0,l.t)(e))return JSON.stringify(i.$o);let o=(0,r.ie)({nodes:t});return o.update(()=>{(0,r.Ni)().clear();let t=new DOMParser().parseFromString(e,"text/html"),l=(0,n.d)(o,t);(0,r.Ni)().select(),(0,r.H2)(l)},{discrete:!0}),JSON.stringify(o.getEditorState().toJSON())})(o,t)),o})(t,o),c=e.parseEditorState(a);e.setEditorState(c),e.dispatchCommand(r.t5,void 0)}},57418:(e,t,o)=>{o.d(t,{P:()=>i,U:()=>n});var r=o(6603),l=o(25427);let i=l.Ay.section.withConfig({componentId:"sc-f6d286dc-0"})(["width:100%;display:flex;justify-content:center;box-sizing:border-box;padding:0 ","px;"],e=>{let{theme:t}=e;return t.spacing.quintuple}),n=l.Ay.div.withConfig({componentId:"sc-f6d286dc-1"})(["flex:1;max-width:","px;width:100%;"],r.Sk)},75177:(e,t,o)=>{function r(e){return/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(e)}o.d(t,{Et:()=>l,Gz:()=>r});let l=e=>{let t=e;if("string"==typeof t&&""===(t=t.split(" ").join("")))return!1;return null!==e&&!Number.isNaN(Number(t))}},77815:(e,t,o)=>{o.d(t,{HD:()=>n,Zi:()=>c,_x:()=>a});var r=o(72666),l=o(6603),i=o(25427);let n=(0,i.Ay)(r.VP).withConfig({componentId:"sc-77a6c2d3-0"})(["width:100%;box-sizing:border-box;min-height:calc(100vh - 200px);> *{&:not(:first-child){margin-top:64px;}}@media (max-width:","px){> *{&:not(:first-child){margin-top:48px;}}
1padding-top:0px;}"],l.bm),a=i.Ay.div.withConfig({componentId:"sc-77a6c2d3-1"})([""," color:",";display:flex;align-items:center;gap:","px;@media (max-width:","px){"," margin-bottom:","px;}"],e=>{let{theme:t}=e;return t.typography.h5_500},e=>{let{theme:t}=e;return t.colorPalette.grey900},e=>{let{theme:t}=e;return t.spacing.triple},l.bm,e=>{let{theme:t}=e;return t.typography.p14_600},e=>{let{theme:t}=e;return t.spacing.quintuple}),c=i.Ay.span.withConfig({componentId:"sc-77a6c2d3-2"})(["width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"])},90752:(e,t,o)=>{o.d(t,{a:()=>f});var r,l,i=o(73365),n=o(25427),a=o(1521);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}let s=e=>{let{$light:t}=e;return t?(0,n.AH)(["",""],e=>e.theme.colorPalette.white900):(0,n.AH)(["",""],e=>e.theme.colorPalette.blue600)},h=(0,n.Ay)(function(e){return a.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 97 97"},e),r||(r=a.createElement("path",{fill:"#5478F0",d:"M94.764 48.5c1.235 0 2.241-1.002 2.185-2.235A48.5 48.5 0 0 0 50.735.052c-1.233-.057-2.235.95-2.235 2.184s1.002 2.23 2.235 2.293a44.03 44.03 0 0 1 41.736 41.736c.063 1.233 1.058 2.235 2.293 2.235"})))}).withConfig({componentId:"sc-2d06e420-0"})(["animation:loading-spin 1.5s linear infinite;@keyframes loading-spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}width:97px;height:97px;path{fill:",";}"],s),p=(0,n.AH)(["width:16px;height:16px;"]),u=(0,n.AH)(["width:24px;height:24px;"]),g=(0,n.Ay)(function(e){return a.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),l||(l=a.createElement("path",{fill:"#5478F0",d:"M23.036 12c.532 0 .968-.432.925-.963A12 12 0 0 0 12.963.04c-.53-.043-.963.393-.963.925s.432.959.962 1.01a10.07 10.07 0 0 1 9.064 9.064c.051.53.478.962 1.01.962"})))}).withConfig({componentId:"sc-2d06e420-1"})(["animation:loading-spin 1.5s linear infinite;@keyframes loading-spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"," "," path{fill:",";}"],e=>"xsmall"===e.size&&p,e=>"small"===e.size&&u,s),m=n.Ay.div.withConfig({componentId:"sc-2d06e420-2"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;"]),x=n.Ay.div.withConfig({componentId:"sc-2d06e420-3"})([""," color:",";margin-left:4px;"],e=>e.theme.typography.p14_400,s),f=e=>{let{size:t="large",light:o=!1,loaderText:r,...l}=e;return t.includes("small")?(0,i.jsx)(g,{size:t,$light:o,...l}):(0,i.jsxs)(m,{children:[(0,i.jsx)(h,{size:t,$light:o,...l}),r&&(0,i.jsx)(x,{$light:o,children:r})]})}},95043:(e,t,o)=>{o.d(t,{A:()=>l});var r=o(73365);let l=()=>(0,r.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("g",{clipPath:"url(#clip0_17474_48206)",children:(0,r.jsx)("path",{d:"M14.0007 25.6668C7.55715 25.6668 2.33398 20.4437 2.33398 14.0002C2.33398 7.55666 7.55715 2.3335 14.0007 2.3335C20.4442 2.3335 25.6673 7.55666 25.6673 14.0002C25.6673 20.4437 20.4442 25.6668 14.0007 25.6668ZM14.0007 23.3335C16.476 23.3335 18.85 22.3502 20.6003 20.5998C22.3507 18.8495 23.334 16.4755 23.334 14.0002C23.334 11.5248 22.3507 9.15084 20.6003 7.4005C18.85 5.65016 16.476 4.66683 14.0007 4.66683C11.5253 4.66683 9.15133 5.65016 7.40099 7.4005C5.65065 9.15084 4.66732 11.5248 4.66732 14.0002C4.66732 16.4755 5.65065 18.8495 7.40099 20.5998C9.15133 22.3502 11.5253 23.3335 14.0007 23.3335ZM12.834 17.5002H15.1673V19.8335H12.834V17.5002ZM15.1673 15.581V16.3335H12.834V14.5835C12.834 14.2741 12.9569 13.9773 13.1757 13.7585C13.3945 13.5397 13.6912 13.4168 14.0007 13.4168C14.3321 13.4168 14.6567 13.3227 14.9367 13.1454C15.2167 12.9681 15.4406 12.7149 15.5824 12.4153C15.7241 12.1158 15.7779 11.7821 15.7374 11.4531C15.697 11.1242 15.5639 10.8135 15.3538 10.5572C15.1436 10.3009 14.865 10.1096 14.5504 10.0055C14.2358 9.90132 13.898 9.88867 13.5765 9.96899C13.2549 10.0493 12.9628 10.2193 12.7341 10.4591C12.5054 10.699 12.3494 10.9988 12.2845 11.3238L9.99548 10.8653C10.1374 10.1561 10.4651 9.49726 10.9451 8.95618C11.425 8.4151 12.0401 8.01117 12.7273 7.7857C13.4146 7.56023 14.1494 7.5213 14.8566 7.67288C15.5638 7.82446 16.2181 8.16113 16.7526 8.64846C17.2871 9.13579 17.6826 9.7563 17.8986 10.4466C18.1147 11.1368 18.1436 11.8721 17.9823 12.5772C17.8211 13.2823 17.4755 13.9319 16.9809 14.4597C16.4863 14.9874 15.8605 15.3744 15.1673 15.581Z",fill:"#2E4168"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_17474_48206",children:(0,r.jsx)("rect",{width:"28",height:"28",fill:"white"})})})]})}}]);

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.