@launchdarkly/toolbar 2.5.1-beta.1 → 2.5.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/toolbar.min.js +3 -3
- package/dist/index.cjs +1 -1
- package/dist/js/index.js +1 -1
- package/package.json +1 -1
package/cdn/toolbar.min.js
CHANGED
|
@@ -318,7 +318,7 @@ To resolve the conflict:`,gR(l,e))),i=a)}}catch(e){r={error:e}}finally{try{s&&!s
|
|
|
318
318
|
0 0 4px 0 var(--lp-color-shadow-ui-secondary),
|
|
319
319
|
0 4px 8px 0 var(--lp-color-shadow-ui-secondary),
|
|
320
320
|
0 2px 12px 0 var(--lp-color-shadow-ui-secondary)
|
|
321
|
-
`,padding:"var(--lp-size-8)",border:"none",wordWrap:"break-word",zIndex:jY,position:"fixed !important",width:"90%"},".cm-tooltip-empty":{display:"none"},".cm-tooltip-arrow":{display:"none"}},jJ=[{tag:Zm.keyword,color:"var(--lp-color-brand-purple-dark)"},{tag:Zm.atom,color:"var(--lp-color-brand-orange-dark)"},{tag:Zm.url,textDecoration:"underline"},{tag:Zm.labelName,color:"var(--lp-color-brand-purple-dark)"},{tag:Zm.inserted,color:"var(--lp-color-text-success-primary)"},{tag:Zm.deleted,color:"var(--lp-color-text-danger-primary)"},{tag:Zm.literal,color:"var(--lp-color-brand-orange-dark)"},{tag:Zm.definition(Zm.variableName),color:"var(--lp-color-brand-blue-dark)"},{tag:Zm.local(Zm.variableName),color:"var(--lp-color-brand-blue-dark)"},{tag:[Zm.typeName,Zm.namespace],color:"var(--lp-color-brand-purple-dark)"},{tag:Zm.className,color:"var(--lp-color-brand-purple-dark)"},{tag:[Zm.special(Zm.variableName),Zm.macroName],color:"var(--lp-color-brand-blue-dark)"},{tag:Zm.comment,color:"var(--lp-color-text-ui-secondary)",fontStyle:"italic"},{tag:Zm.meta,color:"var(--lp-color-text-ui-secondary)"},{tag:Zm.invalid,color:"var(--lp-color-text-danger-primary)"},{tag:Zm.string,color:"var(--lp-color-brand-cyan-dark)"},{tag:Zm.number,color:"var(--lp-color-brand-purple-base)"},{tag:Zm.bool,color:"var(--lp-color-brand-pink-base)"},{tag:Zm.propertyName,color:"var(--lp-color-brand-cyan-dark)"}];function jQ(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,r=arguments[1];if(r&&"object"==typeof r&&null==r.nodeType&&!Array.isArray(r)){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var i=r[n];"string"==typeof i?e.setAttribute(n,i):null!=i&&(e[n]=i)}t++}for(;t<arguments.length;t++)!function e(t,r){if("string"==typeof r)t.appendChild(document.createTextNode(r));else if(null==r);else if(null!=r.nodeType)t.appendChild(r);else if(Array.isArray(r))for(var n=0;n<r.length;n++)e(t,r[n]);else throw RangeError("Unsupported child node: "+r)}(e,arguments[t]);return e}class jq{constructor(e,t,r){this.from=e,this.to=t,this.diagnostic=r}}class j${constructor(e,t,r){this.diagnostics=e,this.panel=t,this.selected=r}static init(e,t,r){let n=r.facet(Me).markerFilter;n&&(e=n(e,r));let i=e.slice().sort((e,t)=>e.from-t.from||e.to-t.to),o=new AA,s=[],a=0,l=r.doc.iter(),c=0,u=r.doc.length;for(let e=0;;){let t,r,n=e==i.length?null:i[e];if(!n&&!s.length)break;if(s.length)t=a,r=s.reduce((e,t)=>Math.min(e,t.to),n&&n.from>t?n.from:1e8);else{if((t=n.from)>u)break;r=n.to,s.push(n),e++}for(;e<i.length;){let n=i[e];if(n.from==t&&(n.to>n.from||n.to==t))s.push(n),e++,r=Math.min(n.to,r);else{r=Math.min(n.from,r);break}}r=Math.min(r,u);let d=!1;if(s.some(e=>e.from==t&&(e.to==r||r==u))&&!(d=t==r)&&r-t<10){let e=t-(c+l.value.length);e>0&&(l.next(e),c=t);for(let e=t;;){if(e>=r){d=!0;break}if(!l.lineBreak&&c+l.value.length>e)break;e=c+l.value.length,c+=l.value.length,l.next()}}let p=function(e){let t="hint",r=1;for(let i of e){var n;let e="error"==(n=i.severity)?4:"warning"==n?3:"info"==n?2:1;e>r&&(r=e,t=i.severity)}return t}(s);if(d)o.add(t,t,OP.widget({widget:new Mo(p),diagnostics:s.slice()}));else{let e=s.reduce((e,t)=>t.markClass?e+" "+t.markClass:e,"");o.add(t,r,OP.mark({class:"cm-lintRange cm-lintRange-"+p+e,diagnostics:s.slice(),inclusiveEnd:s.some(e=>e.to>r)}))}if((a=r)==u)break;for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1)}let d=o.finish();return new j$(d,t,j0(d))}}function j0(e,t=null,r=0){let n=null;return e.between(r,1e9,(e,r,{spec:i})=>{if(!(t&&0>i.diagnostics.indexOf(t)))if(n){if(0>i.diagnostics.indexOf(n.diagnostic))return!1;n=new jq(n.from,r,n.diagnostic)}else n=new jq(e,r,t||i.diagnostics[0])}),n}function j1(e,t){return e.field(j9,!1)?t:t.concat(Af.appendConfig.of(Mu))}let j2=Af.define(),j5=Af.define(),j3=Af.define(),j9=E9.define({create:()=>new j$(OP.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let r=e.diagnostics.map(t.changes),n=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);n=j0(r,e.selected.diagnostic,i)||j0(r,null,i)}!r.size&&i&&t.state.facet(Me).autoPanel&&(i=null),e=new j$(r,i,n)}for(let r of t.effects)if(r.is(j2)){let n=t.state.facet(Me).autoPanel?r.value.length?Ma.open:null:e.panel;e=j$.init(r.value,n,t.state)}else r.is(j5)?e=new j$(e.diagnostics,r.value?Ma.open:null,e.selected):r.is(j3)&&(e=new j$(e.diagnostics,e.panel,r.value));return e},provide:e=>[NS.from(e,e=>e.panel),R2.decorations.from(e,e=>e.diagnostics)]}),j4=OP.mark({class:"cm-lintRange cm-lintRange-active"}),j6=e=>{let t=e.state.field(j9,!1);return!!t&&!!t.panel&&(e.dispatch({effects:j5.of(!1)}),!0)},j7=[{key:"Mod-Shift-m",run:e=>{var t;let r,n,i=e.state.field(j9,!1);i&&i.panel||e.dispatch({effects:j1(e.state,[j5.of(!0)])});let o=(t=Ma.open,(n=(r=e.plugin(Nx))?r.specs.indexOf(t):-1)>-1?r.panels[n]:null);return o&&o.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(j9,!1);if(!t)return!1;let r=e.state.selection.main,n=t.diagnostics.iter(r.to+1);return(!!n.value||!!(n=t.diagnostics.iter(0)).value&&(n.from!=r.from||n.to!=r.to))&&(e.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),!0)}}],j8=Lw.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(Me);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){clearTimeout(this.timeout);let e=Date.now();if(e<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-e);else{this.set=!1;let{state:e}=this.view,{sources:t}=e.facet(Me);t.length&&function(e,t,r){let n=[],i=-1;for(let o of e)o.then(r=>{n.push(r),clearTimeout(i),n.length==e.length?t(n):i=setTimeout(()=>t(n),200)},r)}(t.map(e=>Promise.resolve(e(this.view))),t=>{var r,n;this.view.state.doc==e.doc&&this.view.dispatch((r=this.view.state,n=t.reduce((e,t)=>e.concat(t)),{effects:j1(r,[j2.of(n)])}))},e=>{Lb(this.view.state,e)})}}update(e){let t=e.state.facet(Me);(e.docChanged||t!=e.startState.facet(Me)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),Me=E$.define({combine:e=>({sources:e.map(e=>e.source).filter(e=>null!=e),...AS(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:Mt,tooltipFilter:Mt,needsRefresh:(e,t)=>e?t?r=>e(r)||t(r):e:t,hideOn:(e,t)=>e?t?(r,n,i)=>e(r,n,i)||t(r,n,i):e:t,autoPanel:(e,t)=>e||t})})});function Mt(e,t){return e?t?(r,n)=>t(e(r,n),n):e:t}function Mr(e,t={}){return[Me.of({source:e,config:t}),j8,Mu]}function Mn(e){let t=[];if(e)s:for(let{name:r}of e){for(let e=0;e<r.length;e++){let n=r[e];if(/[a-zA-Z]/.test(n)&&!t.some(e=>e.toLowerCase()==n.toLowerCase())){t.push(n);continue s}}t.push("")}return t}function Mi(e,t,r){var n;let i=r?Mn(t.actions):[];return jQ("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},jQ("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null==(n=t.actions)?void 0:n.map((r,n)=>{let o=!1,s=n=>{if(n.preventDefault(),o)return;o=!0;let i=j0(e.state.field(j9).diagnostics,t);i&&r.apply(e,i.from,i.to)},{name:a}=r,l=i[n]?a.indexOf(i[n]):-1,c=l<0?a:[a.slice(0,l),jQ("u",a.slice(l,l+1)),a.slice(l+1)];return jQ("button",{type:"button",class:"cm-diagnosticAction"+(r.markClass?" "+r.markClass:""),onclick:s,onmousedown:s,"aria-label":` Action: ${a}${l<0?"":` (access key "${i[n]})"`}.`},c)}),t.source&&jQ("div",{class:"cm-diagnosticSource"},t.source))}class Mo extends OV{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return jQ("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Ms{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(0xffffffff*Math.random()).toString(16),this.dom=Mi(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Ma{constructor(e){this.view=e,this.items=[];let t=t=>{if(27==t.keyCode)j6(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65)||!(t.keyCode<=90)||!(this.selectedIndex>=0))return;let{diagnostic:r}=this.items[this.selectedIndex],n=Mn(r.actions);for(let i=0;i<n.length;i++)if(n[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=j0(this.view.state.field(j9).diagnostics,r);t&&r.actions[i].apply(e,t.from,t.to)}}t.preventDefault()},r=e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)};this.list=jQ("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:r}),this.dom=jQ("div",{class:"cm-panel-lint"},this.list,jQ("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>j6(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(j9).selected;if(!e)return -1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return -1}update(){let{diagnostics:e,selected:t}=this.view.state.field(j9),r=0,n=!1,i=null,o=new Set;for(e.between(0,this.view.state.doc.length,(e,s,{spec:a})=>{for(let e of a.diagnostics){if(o.has(e))continue;o.add(e);let s=-1,a;for(let t=r;t<this.items.length;t++)if(this.items[t].diagnostic==e){s=t;break}s<0?(a=new Ms(this.view,e),this.items.splice(r,0,a),n=!0):(a=this.items[s],s>r&&(this.items.splice(r,s-r),n=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),i=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),r++}});r<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)n=!0,this.items.pop();0==this.items.length&&(this.items.push(new Ms(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),n=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let r=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/r:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/r)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),n&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;e!=r.dom;)t();e=r.dom.nextSibling}else this.list.insertBefore(r.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=j0(this.view.state.field(j9).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:j3.of(t)})}static open(e){return new Ma(e)}}function Ml(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}let Mc=R2.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Ml("#d11")},".cm-lintRange-warning":{backgroundImage:Ml("orange")},".cm-lintRange-info":{backgroundImage:Ml("#999")},".cm-lintRange-hint":{backgroundImage:Ml("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),Mu=[j9,R2.decorations.compute([j9],e=>{let{selected:t,panel:r}=e.field(j9);return t&&r&&t.from!=t.to?OP.set([j4.range(t.from,t.to)]):OP.none}),function(e,t={}){let r=Af.define(),n=E9.define({create:()=>[],update(e,n){if(e.length&&(t.hideOnChange&&(n.docChanged||n.selection)?e=[]:t.hideOn&&(e=e.filter(e=>!t.hideOn(n,e))),n.docChanged)){let t=[];for(let r of e){let e=n.changes.mapPos(r.pos,-1,EP.TrackDel);if(null!=e){let i=Object.assign(Object.create(null),r);i.pos=e,null!=i.end&&(i.end=n.changes.mapPos(i.end)),t.push(i)}}e=t}for(let t of n.effects)t.is(r)&&(e=t.value),t.is(Nv)&&(e=[]);return e},provide:e=>Nf.from(e)});return{active:n,extension:[n,Lw.define(i=>new Nb(i,e,n,r,t.hoverTime||300)),Ng]}}(function(e,t,r){let{diagnostics:n}=e.state.field(j9),i,o=-1,s=-1;n.between(t-(r<0),t+ +(r>0),(e,n,{spec:a})=>{if(t>=e&&t<=n&&(e==n||(t>e||r>0)&&(t<n||r<0)))return i=a.diagnostics,o=e,s=n,!1});let a=e.state.facet(Me).tooltipFilter;return(i&&a&&(i=a(i,e.state)),i)?{pos:o,end:s,above:e.state.doc.lineAt(o).to<s,create:()=>{var t;return{dom:(t=e,jQ("ul",{class:"cm-tooltip-lint"},i.map(e=>Mi(t,e,!1))))}}}:null},{hideOn:function(e,t){let r=t.pos,n=t.end||r,i=e.state.facet(Me).hideOn(e,r,n);if(null!=i)return i;let o=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(j2))||e.changes.touchesRange(o.from,Math.max(o.to,n)))}}),Mc],Md=Ad.define();function Mp(e){let{editorId:t,docString:r,onFocus:n,onBlur:i,onChange:o,onLintErrors:s,initialState:a,onEditorHeightChange:l,readOnly:c}=e,u=(0,A.useRef)(null),d=(0,A.useRef)(null),{current:p}=d,h=(0,A.useCallback)(e=>{e.docChanged&&"function"==typeof o&&!e.transactions.some(e=>e.annotation(Md))&&o(e.state.doc.toString(),e)},[o]),f=(0,A.useCallback)(e=>{if(s){let t=[];!function(e,t){let r=e.field(j9,!1);if(r&&r.diagnostics.size){let e=[],n=[],i=-1;for(let o=AE.iter([r.diagnostics]);;o.next()){for(let r=0;r<e.length;r++)(!o.value||0>o.value.spec.diagnostics.indexOf(e[r]))&&(t(e[r],n[r],i),e.splice(r,1),n.splice(r--,1));if(!o.value)break;for(let t of o.value.spec.diagnostics)0>e.indexOf(t)&&(e.push(t),n.push(o.from));i=o.to}}}(e.state,e=>{t.push(e)}),s(t)}},[s]);(0,A.useEffect)(()=>{if(u.current&&!d.current){let e=((e=[])=>{var t;let r,n,i=Z0.define([...jJ,...e]);return[R2.theme(jK),(t={fallback:!0},r=[Z3],i instanceof Z0&&(i.module&&r.push(R2.styleModule.of(i.module)),n=i.themeType),(null==t?void 0:t.fallback)?r.push(Z2.of(i)):n?r.push(Z1.computeN([R2.darkTheme],e=>e.facet(R2.darkTheme)==("dark"==n)?[i]:[])):r.push(Z1.of(i)),r)]})(),t=c?[]:[...jb,...j7,...GA,jv],n=[R2.updateListener.of(h),R2.updateListener.of(f),new ZL(jX),...c?[]:[[Mr(e=>{let t,r=e.state.doc.toString(),n=[],i=/,\s*([}\]])/g;for(;null!==(t=i.exec(r));)n.push({from:t.index,to:t.index+1,severity:"error",message:"Trailing commas are not allowed in JSON"});return n}),Mr(e=>{try{JSON.parse(e.state.doc.toString())}catch(i){var t;let r;if(!(i instanceof SyntaxError))throw i;let n=(t=e.state.doc,(r=i.message.match(/at position (\d+)/))?Math.min(+r[1],t.length):(r=i.message.match(/at line (\d+) column (\d+)/))?Math.min(t.line(+r[1]).from+ +r[2]-1,t.length):0);return[{from:n,message:i.message,severity:"error",to:n}]}return[]},{delay:300})]],...c?[]:[function(e={}){return[Gm,Gf.of(e),R2.domEventHandlers({beforeinput(e,t){let r="historyUndo"==e.inputType?Gb:"historyRedo"==e.inputType?Gv:null;return!!r&&(e.preventDefault(),r(t))}})]}()],...e,R2.lineWrapping,...c?[Ak.readOnly.of(!0)]:[],...t.length>0?[Ne.of(t)]:[]];d.current=new R2({state:Ak.create({doc:r,selection:a?.startCursorAtLine?{anchor:a.startCursorAtLine}:void 0,extensions:n}),parent:u.current})}},[r,a,h,f,s]),(0,A.useEffect)(()=>()=>{d.current?.destroy()},[]),(0,A.useEffect)(()=>{l(d.current?.contentDOM.clientHeight??0)},[l,d.current?.contentDOM.clientHeight]);let m=null!==d.current;return(0,A.useEffect)(()=>{m&&a?.autoFocus&&d.current?.focus()},[m,a?.autoFocus]),(0,E.jsx)("div",{className:"_1ndqidq0",role:"textbox","data-enable-grammarly":"false","data-testid":t,id:t,tabIndex:0,onFocus:n,onBlur:e=>{i?.(e,p?.contentDOM.textContent??"")},onKeyDown:e=>{e.stopPropagation()},ref:u})}var Mh=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/legacy/TabContent/FlagDevServerTabContent.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA61UwXKbMBC9+yt06Ux8kEe4TuzIH9NZxAIaC0kjCYPbyb93JCCG0qTJpCdgtfve26dddj8y5usL9Iz82hBSGh2olz+Rk+xg+/MU6lBWdeDkkbEYE0YZx8kV3AOlytL0TSsHN7pnbBtTCumtghsnpcKEA0pWmsqAjedEoA7oYrgCy8lpoGqkpp0sQs1JoomlnGTnzctmN+nMkk5zRVcq03FSy6JAHbMD9oHeD1Apab308airZUDqLQjkRJvOgV3zzUj2iWTVQnzSQjoUQRrNow1to1+7mAybVK8baqCfvgUo8ZAx9o1Q8sxsv10I+L66jf0A/o7zh9H5VFVCI9VtljiL0sZok8xI+f/Dy5n0Q5LegKukpgrLwEn2NIj//EzMcB8Tbj0O4oGxAfMuEtpgYsQLZ5TKwdF3zDoxtiXBgfYWHOqwLBzvKNRSLzXwOvIlJR+iOa5oFmicdphfZKCvYAl6pB+3IgdxqZxpdcE/BUVD3TZ5ApxDvOVGojKuQEcdFLL140Cv2/8a1/GjXH9jcSAuK5a3THmamxlXLdJa4+WwvQ4VBHnFRc0x1dyTIPdGtQHTUhg77vEw1ul1AT8Hmo3KXey/RjLRxHZG+j8rCdvtPUHwS9WnxW6stDwvf2e5MuJy3rz8BqohAoX8BQAA"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Mf={};Mf.styleTagTransform=kK(),Mf.setAttributes=kB(),Mf.insert=kX().bind(null,"head"),Mf.domAPI=kF(),Mf.insertStyleElement=kH(),kW()(Mh.A,Mf),Mh.A&&Mh.A.locals&&Mh.A.locals;var Mm="_10shkax7",Mg="_10shkax3",Mb="_10shkax1",Mv="_10shkax0",My="_10shkax5",Mx="_10shkax8",Mw="_10shkax4",Mk="_10shkax2",MS="_10shkax6",MC=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/legacy/LocalObjectFlagControlListItem.css.ts.vanilla.css","source":"Ll8xdGFiZzhkMCB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKfQouXzF0YWJnOGQxIHsKICBkaXNwbGF5OiBmbGV4OwogIGZsZXgtZGlyZWN0aW9uOiByb3c7CiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7Cn0KLl8xdGFiZzhkMiB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIGdhcDogNHB4OwogIGZsZXg6IDE7CiAgbWluLXdpZHRoOiAwOwogIG1heC13aWR0aDogY2FsYygxMDAlIC0gOTBweCk7Cn0KLl8xdGFiZzhkMyB7CiAgd2hpdGUtc3BhY2U6IG5vd3JhcDsKICBvdmVyZmxvdzogaGlkZGVuOwogIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzOwp9"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),M_={};M_.styleTagTransform=kK(),M_.setAttributes=kB(),M_.insert=kX().bind(null,"head"),M_.domAPI=kF(),M_.insertStyleElement=kH(),kW()(MC.A,M_),MC.A&&MC.A.locals&&MC.A.locals;var MT=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/CopyableText.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA5VU227bMAx9z1cQBQI02FTIbtKL8iN7GxSLjoXJkibJidOh/z5IclwnabL1zaAPD8nDIz78LF5F8XtHKfyZAVjjZZBGM3CoeJA7XM8AhPRW8QMDqZXUSGqFfYy3UpO9FKFhQNez99nDkaxIZNfSuJJbTWTA1jOoUAd0l2wAG1792jrTaUEqo4yLPA06GdJP4wQ6Btro1GLVOR8h1sgjn+VCSL0lTm6bwGBp+2lUYR0Y0NNgMPYCuDEhmHYM58LEcSE7P0aD4/qo3HnfQB9KD8h9ajRgH0hSgEHs4VQ3Vpuq80k904Wo2nHESxTZSS83Ck/Rpe3BGyUF7Li7J0TZ3AXxDRdmT5I8vIqrJYlmsf5IJ6auPQYGRRxrUrJMRWqjA/HyDRkUZR582MxZra3jB7KkNHGnrJq3Uh0mwEmUtEYbb3mFuZcdulqZPYNGCoF6VO3jByolrZc+/to3MiBJ6VGrveP2tjdZE4ngbLYbg5RpkAnF49lb4RtvVBcw+yPbpeKqui8oncM3eLF9mix7rljNR8vUxrUsfyoe8Md9luzS+p/19TwIfANSTHdwurkU2mN+HCtKJ55n8GT7EXjm+LHMSZy0KGTXLm5sZGP6wYQMZgAUaLQZ0CtG7STxWBktuDssvg8Jy68lRPjL11LKYfL/y5nFwd6I1AJ7BmWxfF5SWrxmMfMpIrhDHfwn7/iRMV4HdIP/dEAdGNzdra+aK92naKoPN63oDTeRFZ3nlUzuajPsnE6Wm7mextuROCx3qMPUAjnxX7DU5dO1OzSx7vtflH4xun4GAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),MI={};function ME({text:e,onCopy:t,ariaLabel:r,title:n,className:i,copiedMessage:o="Copied!",copiedDuration:s=2e3}){let[a,l]=(0,A.useState)(!1),c=(0,A.useRef)(null),u=(0,A.useCallback)(()=>{navigator.clipboard.writeText(e),l(!0),t?.(e),c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{l(!1),c.current=null},s)},[e,t,s]);(0,A.useEffect)(()=>()=>{c.current&&clearTimeout(c.current)},[]);let d=`Copy ${e} to clipboard`,p=`Copy ${e} to clipboard`;return(0,E.jsxs)("div",{className:"_19d1qv00",children:[(0,E.jsx)("button",{className:`_19d1qv01 ${i||""}`,onClick:u,title:n??d,"aria-label":r??p,children:(0,E.jsx)("span",{className:"_19d1qv02",children:e})}),(0,E.jsx)(oG,{children:a&&(0,E.jsx)(oI.div,{className:"_19d1qv03",initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0,y:5},transition:{duration:.2},role:"status","aria-live":"polite",children:o})})]})}function MA(e){let{handleClearOverride:t,handleOverride:r,handleHeightChange:n,onToggleStarred:i,flag:o,size:s,start:a}=e,{isStarred:l,toggleStarred:c}=kT(),u=JSON.stringify(o.currentValue,null,2),[d,p]=(0,A.useState)(!1),[h,f]=(0,A.useState)(u),[m,g]=(0,A.useState)(!1),b=wg();(0,A.useEffect)(()=>{n(80)},[]);let v=(0,A.useCallback)(e=>{b.trackFlagKeyCopy(e)},[b]);return(0,E.jsx)("div",{"data-testid":`flag-row-${o.key}`,className:Mm,style:{height:s,transform:`translateY(${a}px)`,borderBottom:"1px solid var(--lp-color-gray-600);"},children:(0,E.jsx)(CL,{className:"_10shkax9",children:(0,E.jsxs)("div",{className:"_1tabg8d0",children:[(0,E.jsxs)("div",{className:"_1tabg8d1",children:[(0,E.jsxs)("div",{className:Mk,children:[(0,E.jsxs)("span",{className:Mv,children:[(0,E.jsx)("span",{className:"_1tabg8d3","data-testid":`flag-name-${o.key}`,children:o.name}),o.isOverridden&&(0,E.jsx)(I1,{onClear:()=>t(o.key)})]}),(0,E.jsx)(ME,{text:o.key,className:Mg,onCopy:v})]}),(0,E.jsxs)("div",{className:Mw,children:[(0,E.jsx)(Ey,{flag:o,isEditing:d,handleEdit:()=>{f(u),p(!0)},handleConfirm:()=>{r(o.key,JSON.parse(h)),p(!1),n(80)},handleCancel:()=>{p(!1),n(80)},onOverride:()=>r(o.key,h),hasErrors:m}),(0,E.jsx)(I6,{flagKey:o.key,isStarred:l(o.key),onToggle:i||c})]})]}),(0,E.jsx)(oG,{"data-testid":`json-editor-${o.key}`,mode:"wait",children:d&&(0,E.jsx)(oI.div,{initial:{opacity:0,height:0,y:-10},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-10},transition:{duration:.25,ease:kI,height:{duration:.3,ease:kI}},style:{overflow:"hidden"},children:(0,E.jsx)(Mp,{docString:h,onChange:e=>{f(e)},onLintErrors:e=>{g(e.length>0)},"data-testid":`flag-input-${o.key}`,editorId:`json-editor-${o.key}`,initialState:{startCursorAtLine:0,autoFocus:!0},onEditorHeightChange:e=>{n(80+e+20)}})},`json-editor-${o.key}`)})]})})})}function MO(e){let{flagOverridePlugin:t,reloadOnFlagChangeIsEnabled:r}=e,{searchTerm:n}=wy(),i=wg(),{flags:o,isLoading:s}=CZ(),{isStarred:a,toggleStarred:l,clearAllStarred:c,starredCount:u}=kT(),[d,p]=(0,A.useState)(new Set(["all"])),h=(0,A.useRef)(null),f=(0,A.useCallback)(()=>h.current,[]),m=(0,A.useCallback)(e=>{p(t=>{if("all"===e)return i.trackFilterChange("all","selected"),new Set(["all"]);let r=new Set(t);return(r.delete("all"),r.has(e)?(r.delete(e),i.trackFilterChange(e,"deselected")):(r.add(e),i.trackFilterChange(e,"selected")),0===r.size)?(i.trackFilterChange("all","selected"),new Set(["all"])):r})},[i]),g=(0,A.useCallback)(e=>{t&&(t.removeOverride(e),i.trackFlagOverride(e,null,"remove"),r&&window.location.reload())},[t,i,r]),b=(0,A.useMemo)(()=>Object.values(o).filter(e=>e.isOverridden).length,[o]),v=Object.entries(o),y=(0,A.useMemo)(()=>v.filter(([e,t])=>{let r=t.name.toLowerCase().includes(n.toLowerCase())||e.toLowerCase().includes(n.trim().toLowerCase()),i=!0;return i=!!d.has("all")||d.has(Ij)&&t.isOverridden||d.has(IM)&&a(e),r&&i}),[v,n,d,a]),x=CI({count:y.length,getScrollElement:f,estimateSize:()=>80,overscan:5}),w=(0,A.useCallback)(e=>{let t=a(e);l(e),i.trackStarredFlag(e,t?"unstar":"star")},[a,l,i]),k=(0,A.useCallback)((e,t)=>{t>80?x.resizeItem(e,t):setTimeout(()=>{x.resizeItem(e,t)},125)},[x]),S=(0,A.useCallback)(e=>{i.trackFlagKeyCopy(e)},[i]);if(!t)return(0,E.jsx)(Iq,{title:"Flag override plugin is not available",subtitle:"To use local flag overrides, ensure the flag override plugin is added to your LaunchDarkly client configuration."});let C=t.getClient(),_=(e,n)=>{t.setOverride(e,n),i.trackFlagOverride(e,n,"set"),r&&window.location.reload()};if(!C)return(0,E.jsx)(Iq,{title:"LaunchDarkly client is not available",subtitle:"To use local flag overrides, ensure your LaunchDarkly client is properly initialized."});if(s)return(0,E.jsx)(Iq,{title:"Loading flags...",subtitle:"Please wait while we load your feature flags"});if(0===v.length)return(0,E.jsx)(Iq,{title:"No flags available",subtitle:"Make sure your LaunchDarkly client is properly initialized with flags"});let{title:T,subtitle:I}=d.has(Ij)&&!d.has(IM)&&0===b?{title:"No overridden flags found",subtitle:"You have not set any overrides yet"}:d.has(IM)&&!d.has(Ij)&&0===u?{title:"No starred flags found",subtitle:"Star flags to see them here"}:{title:"No flags found",subtitle:"Try adjusting your search"};return(0,E.jsx)(IV.Provider,{value:{activeFilters:d,onFilterToggle:m},children:(0,E.jsx)("div",{"data-testid":"flag-sdk-tab-content",children:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(IK,{totalFlags:v.length,filteredFlags:y.length,totalOverriddenFlags:b,starredCount:u,onClearOverrides:()=>{let e=Object.keys(t.getAllOverrides()).length;t.clearAllOverrides(),i.trackFlagOverride("*",{count:e},"clear_all"),i.trackFilterChange("all","selected"),p(new Set(["all"])),r&&window.location.reload()},onClearStarred:()=>{i.trackStarredFlag("*","clear_all"),c(),i.trackFilterChange("all","selected"),p(new Set(["all"]))},isLoading:s}),0===y.length&&(n.trim()||!d.has("all"))?(0,E.jsx)(Iq,{title:T,subtitle:I}):(0,E.jsx)("div",{ref:h,className:My,children:(0,E.jsx)(CO,{children:(0,E.jsx)("div",{className:MS,style:{height:x.getTotalSize()},children:x.getVirtualItems().map(e=>{let t=y[e.index];if(!t)return null;let[r,n]=t;return"object"===n.type?(0,E.jsx)(oI.div,{layout:!0,initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:kI,layout:{duration:.25,ease:kI}},children:(0,E.jsx)(MA,{handleHeightChange:t=>k(e.index,t),flag:n,start:e.start,size:e.size,handleClearOverride:g,handleOverride:_,onToggleStarred:w},e.key)},e.key):(0,E.jsx)("div",{className:Mm,style:{height:`${e.size}px`,transform:`translateY(${e.start}px)`,borderBottom:"1px solid var(--lp-color-gray-600);"},"data-testid":`flag-row-${r}`,children:(0,E.jsxs)(CL,{className:Mx,children:[(0,E.jsxs)("div",{className:Mk,children:[(0,E.jsxs)("span",{className:Mv,children:[(0,E.jsx)("span",{className:Mb,"data-testid":`flag-name-${r}`,children:n.name}),n.isOverridden&&(0,E.jsx)(I1,{onClear:()=>g(r)})]}),(0,E.jsx)(ME,{text:r,className:Mg,onCopy:S})]}),(0,E.jsxs)("div",{className:Mw,children:[(e=>{let t=t=>_(e.key,t);switch(e.type){case"boolean":return(0,E.jsx)(Eb,{flag:e,onOverride:t});case"string":case"number":return(0,E.jsx)(Ev,{flag:e,onOverride:t})}})(n),(0,E.jsx)(I6,{flagKey:n.key,isStarred:a(n.key),onToggle:w})]})]})},e.key)})})})})]})})})}function ML(e){let{flagOverridePlugin:t,reloadOnFlagChangeIsEnabled:r}=e;return t?(0,E.jsx)(CN,{flagOverridePlugin:t,children:(0,E.jsx)(MO,{flagOverridePlugin:t,reloadOnFlagChangeIsEnabled:r})}):(0,E.jsx)(Iq,{title:"Flag override plugin is not available",subtitle:"To use local flag overrides, ensure the flag override plugin is added to your LaunchDarkly client configuration."})}function MR(e,t){let[r,n]=(0,A.useState)([]);(0,A.useEffect)(()=>{if(!e)return void n([]);let t=()=>{n([...e.getEvents()].reverse())};return t(),e.subscribe(t)},[e]);let i=(0,A.useMemo)(()=>{if(!t)return r;let e=t.toLowerCase();return r.filter(t=>t.displayName.toLowerCase().includes(e)||t.kind.toLowerCase().includes(e)||t.category.toLowerCase().includes(e)||t.key&&t.key.toLowerCase().includes(e))},[r,t]),o=(0,A.useMemo)(()=>{let e={},t={};return i.forEach(r=>{e[r.kind]=(e[r.kind]||0)+1,r.key&&(t[r.key]=(t[r.key]||0)+1)}),{totalEvents:i.length,eventsByKind:e,eventsByFlag:t}},[i]);return{events:i,eventStats:o}}function MN(e=1e3){let[t,r]=(0,A.useState)(()=>new Date);return(0,A.useEffect)(()=>{let t=setInterval(()=>{r(new Date)},e);return()=>clearInterval(t)},[e]),t}MI.styleTagTransform=kK(),MI.setAttributes=kB(),MI.insert=kX().bind(null,"head"),MI.domAPI=kF(),MI.insertStyleElement=kH(),kW()(MT.A,MI),MT.A&&MT.A.locals&&MT.A.locals;var MZ=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/DoNotTrackWarning.css.ts.vanilla.css","source":"Ll8xMm9pM29mMCB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgbWluLWhlaWdodDogNDAwcHg7CiAgcGFkZGluZzogNDBweCAyMHB4OwogIHRleHQtYWxpZ246IGNlbnRlcjsKfQouXzEyb2kzb2YxIHsKICBiYWNrZ3JvdW5kOiB2YXIoLS1scC1jb2xvci1ncmF5LTgwMCk7CiAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tbHAtY29sb3ItZ3JheS03MDApOwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTMwMCk7CiAgcGFkZGluZzogMjRweDsKICBib3JkZXItcmFkaXVzOiA4cHg7CiAgZm9udC1zaXplOiAxNHB4OwogIG1heC13aWR0aDogNDAwcHg7Cn0KLl8xMm9pM29mMiB7CiAgZm9udC13ZWlnaHQ6IDYwMDsKICBtYXJnaW4tYm90dG9tOiAxNnB4OwogIGZvbnQtc2l6ZTogMTZweDsKICBjb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS0yMDApOwp9Ci5fMTJvaTNvZjMgewogIG1hcmdpbi1ib3R0b206IDE2cHg7CiAgY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktMzAwKTsKfQouXzEyb2kzb2Y0IHsKICBmb250LXNpemU6IDEzcHg7CiAgY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktNDAwKTsKICBmb250LXN0eWxlOiBpdGFsaWM7Cn0="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),MG={};function Mj(){return(0,E.jsx)("div",{className:"_12oi3of0",children:(0,E.jsxs)("div",{className:"_12oi3of1",children:[(0,E.jsx)("div",{className:"_12oi3of2",children:"Do Not Track is enabled"}),(0,E.jsx)("div",{className:"_12oi3of3",children:'No events will be captured due to your browser\'s "Do Not Track" setting. This affects both the toolbar and LaunchDarkly analytics.'}),(0,E.jsx)("div",{className:"_12oi3of4",children:'To enable event tracking, disable "Do Not Track" in your browser settings.'})]})})}function MM(e){let{icon:t,label:r,href:n,target:i="_blank",className:o,size:s="large",onClick:a}=e;return(0,E.jsx)("a",{className:`${(()=>{switch(s){case"small":return Ef;case"medium":return Eh;default:return Em}})()} ${o||""}`,target:i,href:n,"aria-label":r,onClick:a,children:t})}function MV({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M10 3.417a.75.75 0 0 1 .75.75V9.25h5.083a.75.75 0 0 1 0 1.5H10.75v5.083a.75.75 0 0 1-1.5 0V10.75H4.167a.75.75 0 0 1 0-1.5H9.25V4.167a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})})}MG.styleTagTransform=kK(),MG.setAttributes=kB(),MG.insert=kX().bind(null,"head"),MG.domAPI=kF(),MG.insertStyleElement=kH(),kW()(MZ.A,MG),MZ.A&&MZ.A.locals&&MZ.A.locals;var MW=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/legacy/ActionButtonsContainer.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA+1TzY7aMBC+8xRzXA6mjhfo1jxMNY6dxMLYlu2Q0KrvXsUglLDAUlppL71Fk5n5fubz4nuxXy/bb2sKP2cAHqXUtuZQUN8D3cwAhAtSBSJcSm7HofA9RGe0hD2GF0KMJ6UzLpA64IGsKZ1vhim3V6EyriM9B2yTG2pSR2/wwKEyqh8KNXoObz5/n5CJUVXiwOi0GnTdjMqxDM4YgeGIza9y+UrpHFJAGz0GZdN0sNMyNRxSo+1m9mu2OPvAOemU2OpEzs3ZmkYdOSyPFASW2zq41ko+BflgF0lNuxN543jFLQGjCwSUuo0c2EDgQ5SA5fYdyi2ixUN83iZ8HorCDODOhdip5Zy6te+hYCeDp6rXx2rlbCJR/1D83JhL3ek6K5pDW7YhDqjeaZtUGEpZu07aWQ5oDNAFi6AwquFn1+ikSPRYKg7WdQF9Xm1UT2ITtN3y4TWMLeNSRxRGyeyd81jqdOBAF6sxAesSQWNcp+TFeOXKNh5n22S0zcBWXesiex21MGrazW7ZHxuUriNZOZZJ7xXJa7LXp3HiqiqqxIFcxqngzfB4uXXp5axx/kxg71x+lTtHqOx/Av80gezvEsgeSiD7hASyT0ng6zuAUAt8qYLbXS4QAa0k5QEtERjVHALUIOAL0EVxBf6ZPa93kns5NpXxmHlPaVv9I3HLgfJvXWjM43oIAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),MP={};MP.styleTagTransform=kK(),MP.setAttributes=kB(),MP.insert=kX().bind(null,"head"),MP.domAPI=kF(),MP.insertStyleElement=kH(),kW()(MW.A,MP),MW.A&&MW.A.locals&&MW.A.locals;let MF=({children:e})=>(0,E.jsx)("div",{className:"_1v64u960",children:e});var MD=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/legacy/TabContent/EventsTabContent.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA6VW246bMBB936+wVFXaPjjiZpK4L/2TyuAheGNsaptN0qr/XmFoMAvspX1KYHzOmRnPhW9nuFWGNWDR98Slqf5xRr8eEIo++x+EdMtK4W4UxV/9szNM2UqbhiJbMgmP8Zfe8PsBIbIERbt0C7ZL7sA4+rjc74fd6HDkoS3jXKgTRYf2ipKovfbHCm04GFxo53RDUdxekdVScPTMzCPGssWlltrgk2E3vI8iz12w8nwyulN8sNLV0wd/evIi9l5UWjlsxU+gKE4GH17hyEZFj7qAONWOIhJFIW8y8Eq4jjnhwraS3ah/93W0YS4MlE5oRXvBrlG95cRairLBjUYofBHc1RRF/bN+BlNJfaGoFpyDP98wcxIKm8GROO+RkyfpIsKReuZ+FkVvRJ2MUa954ODq8GQAKUVrhe1Nl1o4wLZlJVCk9MWwdhnX5G32z/cxcZAFR7wSMRkivhdg0l5RPqs/w7jo7P0qfJBBYXdtC6ZkFnqjBOfA+Dg9W7Qj82vIvVPLIv0U5aTK8iDETzyuGJAQvPfg8Z4lVM73y2pZMSlOCgsHjaWoBOXAhEwHz3RHFVKX55md1v09UqXdI+XCskIC/+JB76iN9/Vg/uK+jlupiSFlBzZLTQGsghDMtsBZQUiehuAqrbIqD8HFFvh4jIu4mIGhZCULweUWmBzi8rAPwXDkpKpCMN9UZmkWJ3NlvmczZdgCp/ssJvFMmcAeihBceXA9dkFKxpk7dS/rnO7f2NJoKQtm3pqnw7RvmQHl5sCxw10t1MyFoci8I+9S2S9UQjKKL1CchcN3Ls88io+NMmWLfoQJu7prXpbJa6tlfXosYv8/qf07pdZEDCvPC5GNjJzCRPbr3k9MbcWwsgxI5sTzrB/rYa3fz7DCatk5PySdbsc1Nsww/3fGHvAENfKR1T5+e4zqL5Eo2iUWgR/ak5aYD8W3N/TqkEXoqbNOVDdcauVAudC06De/5P9huT2t+7rhUaAyUciV9vjr32F1A5Lh5tdGdFQcD37iMCUaNiTq/kka78iQbSwU1p1DQlVCCTfLfrNY1/n2un4lU+mLTKmtD59XOMjfGup3vc/p2hLVsxE6Vu4f+LrrfpMLAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),MX={};function Mz(e){let{eventInterceptionPlugin:t,baseUrl:r}=e,{searchTerm:n}=wy(),i=wg(),{events:o,eventStats:s}=MR(t,n),a=MN(),l=(0,A.useRef)(null),c=(0,A.useMemo)(()=>v7(),[]),u=CI({count:o.length,getScrollElement:()=>l.current,estimateSize:()=>80,overscan:5});return t?c?(0,E.jsx)(Mj,{}):0===o.length?(0,E.jsxs)(oI.div,{className:"_2t33oqi",initial:kA.eventList.liveTail.container.initial,animate:kA.eventList.liveTail.container.animate,transition:kA.eventList.liveTail.container.transition,children:[(0,E.jsxs)("div",{className:"_2t33oqj",children:[(0,E.jsx)(oI.div,{className:"_2t33oql",animate:{scale:kA.eventList.liveTail.dot.scale,opacity:kA.eventList.liveTail.dot.opacity},transition:kA.eventList.liveTail.dot.transition}),(0,E.jsx)("span",{className:"_2t33oqm",children:n?"No matching events - still listening...":"Listening for events..."})]}),(0,E.jsx)("div",{className:"_2t33oqn",children:"Events will appear here in real-time as they occur"})]}):(0,E.jsxs)("div",{"data-testid":"events-tab-content",children:[(0,E.jsx)(MF,{children:(0,E.jsxs)("button",{className:"_1v64u961",onClick:()=>{t&&t.clearEvents()},disabled:0===o.length,children:["Clear all events (",o.length,")"]})}),(0,E.jsx)("div",{className:"_2t33oq0",children:(0,E.jsxs)("span",{className:"_2t33oq1",children:[s.totalEvents," events captured"]})}),(0,E.jsx)("div",{ref:l,className:"_2t33oqf",children:(0,E.jsx)(CO,{children:(0,E.jsx)("div",{className:"_2t33oqg",style:{height:u.getTotalSize()},children:u.getVirtualItems().map(e=>{var t;let n,s,l,c,u=o[e.index];return u?(0,E.jsx)("div",{"data-testid":"event-item",className:"_2t33oqh",style:{height:`${e.size}px`,transform:`translateY(${e.start}px)`,borderBottom:"1px solid var(--lp-color-gray-600);",cursor:"pointer"},children:(0,E.jsxs)(CL,{className:"_2t33oqo",onClick:()=>{i.trackEventClick(u?.key??u.displayName),console.group(`📝 Event Details: [kind: ${u.kind}, displayName: ${u.displayName}]`),console.table(u),console.groupEnd()},children:[(0,E.jsxs)("div",{className:"_2t33oq2",children:[(0,E.jsx)("span",{className:"_2t33oq3",children:u.displayName}),(0,E.jsx)("span",{className:"_2t33oq4",children:(t=u.timestamp,(l=Math.floor((s=Math.floor((n=Math.floor(Math.floor((a.getTime()-t)/1e3)/60))/60))/24))>0?`${l}d ago`:s>0?`${s}h ago`:n>0?`${n}m ago`:"just now")})]}),(0,E.jsx)("div",{className:(e=>{switch(e){case"feature":return"_2t33oq6 _2t33oq5";case"identify":return"_2t33oq9 _2t33oq5";case"custom":return"_2t33oqa _2t33oq5";case"debug":return"_2t33oqb _2t33oq5";case"summary":return"_2t33oqc _2t33oq5";case"diagnostic":return"_2t33oqd _2t33oq5";default:return"_2t33oqe _2t33oq5"}})(u.kind),children:u.kind}),"feature"===u.kind&&(e=>{if(!e.reason)return!1;let{reason:t}=e;return"ERROR"===t.kind&&"FLAG_NOT_FOUND"===t.errorKind})(u.context)&&(0,E.jsx)("div",{className:"_2t33oq7",children:(0,E.jsx)(MM,{className:"_2t33oq8","data-testid":"add-flag-button",icon:(0,E.jsx)(MV,{}),label:"Add Feature Flag",href:(c=u.context.key||"",`${r}/flags/new?selectProject=1&flagKey=${c}`),size:"medium",onClick:()=>{var e;return e=u.context.key||"",void i.trackOpenFlagDeeplink(e,r)}},`add-flag-${u.context.key}`)})]})},e.key):null})})})})]}):(0,E.jsx)(Iq,{title:"Event interception not available",subtitle:"The event interception plugin is not configured"})}function MB(e,t){if(e===t)return!0;if(null==e||null==t||typeof e!=typeof t)return!1;if("object"==typeof e){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r)if(!n.includes(i)||!MB(e[i],t[i]))return!1;return!0}return e===t}MX.styleTagTransform=kK(),MX.setAttributes=kB(),MX.insert=kX().bind(null,"head"),MX.domAPI=kF(),MX.insertStyleElement=kH(),kW()(MD.A,MX),MD.A&&MD.A.locals&&MD.A.locals;var MU=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Select/Select.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA71W227bMAx971cQBQa0wBTITpqLij3tM4ZhkC3Z1qJIhiQ3SYf9+yDZymw3bZzuAuQhoXk5PDykM/uW7I/f2aLA8OMGoNZWOKEVAcMldeKJP94AMGFrSY8EhJJCcZRJnW/9g51QaC+YqwgkKa4PwUYP0ZbiYPt5M4tVklDllK+QPMRQKUqFhOM7SyDnynHjzd8b60RxRLlWjitHwNY05yjjbs+58h6xOMYf/M+Ki7JyBOZpi6WmjAlVEsCwbi0Zzbel0Y1iBJ6ouUNI1ijXUhtUGnpEmwd8H/y0YdwQSOoDWC0FO+u9wn1vZCgTjSWwbGsVWjlkxTMnkCxaU4g9XzntcuWNsd6n1iLy4AxVcS5USsCz1AKnNgynpDU5dacPvmBoucOU6dEESKWfuAlz6FzeALUMoAbhhc4bG8J147wcCCit+ON789Hcy2winodxfNoiqWku3JEAni37HCrtEJVS7zkLcmgpRfyJK2cj7l62ecjmVUkgCczzg88gSkVA8sJ5m6evkHpPoBKMtToMfr8fcClFbYUNEq2E4ygo11fcG1qPVgcPMCwChms4eAgRcRU68cVViL8LISXxxBiu3Gef7bFrFdnKCLUNOIZaC98LbXZ9xfUKL0PhkxcBox11/C5ZY8bLIchV8H1GQjHPbposVguME4z/91aGHako83PCsKgPkKT1AUyZ0Tv8EbrPbH4fj1lksrtm5wUwlhZtnB70vw7976gpheqoPl0nDyJYpLAOWXeUvaXqQ0g2yyEEdIylAGxutJQZNVFXrhJq+ODCZrajrKmXyBA8IWjPs61w6JSsL7rl6Myf80fO0Hzb7nlv3NeURK5qdtmLFK8fmhcamI+Abtq3XhzEulPDX73eIwiL+JrslBANL498cmblNv3zfeLgrcGux+eC/knwmP3LwRNo6+d/d39fGHUUuYrv+Kdb6ffl9iuM/ni8oZpwpq84MvPLzbVX6xKy1b9CNvHQJRMwbi69k6a1er14k0nDvUbR0zJOlHkmG95lfI2e4LJpi/4CkgGfXW0LAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),MH={};MH.styleTagTransform=kK(),MH.setAttributes=kB(),MH.insert=kX().bind(null,"head"),MH.domAPI=kF(),MH.insertStyleElement=kH(),kW()(MU.A,MH),MU.A&&MU.A.locals&&MU.A.locals;var MY=r("./src/core/context/ReactMountContext.tsx"),MK=r("./src/types/constants.ts");function MJ({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M4.47 6.97a.75.75 0 0 1 1.06 0L10 11.44l4.47-4.47a.75.75 0 1 1 1.06 1.06l-5 5a.75.75 0 0 1-1.06 0l-5-5a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})})}function MQ(e){let{selectedKey:t,onSelectionChange:r,"aria-label":n,placeholder:i,"data-theme":o="dark",className:s,isDisabled:a=!1,options:l}=e,[c,u]=(0,A.useState)(!1),[d,p]=(0,A.useState)(-1),[h,f]=(0,A.useState)({top:0,left:0,width:0}),m=(0,A.useRef)(null),g=(0,A.useRef)(null),b=(0,A.useRef)(null),v=(0,A.useRef)(null),y=(0,MY.K)(),x=l.find(e=>e.id===t),w=(0,A.useCallback)(()=>{!a&&(u(!c),c||p(-1))},[a,c]),k=(0,A.useCallback)(e=>{r?.(e),u(!1),p(-1),g.current?.focus()},[r]),S=(0,A.useCallback)(e=>{if(!a)switch(e.key){case"ArrowDown":e.preventDefault(),c?p(e=>(e+1)%l.length):(u(!0),p(0));break;case"ArrowUp":e.preventDefault(),c?p(e=>e<=0?l.length-1:e-1):(u(!0),p(l.length-1));break;case"Enter":case" ":e.preventDefault(),c?d>=0&&l[d]&&k(l[d].id):(u(!0),p(0));break;case"Escape":e.preventDefault(),u(!1),p(-1),g.current?.focus()}},[a,c,d,l,k]);(0,A.useEffect)(()=>{if(c&&g.current){let e=g.current.getBoundingClientRect();f({top:e.bottom+2,left:e.left,width:e.width})}},[c]),(0,A.useEffect)(()=>{if(c){let e=e=>{let t=e.composedPath();t.some(e=>e.id===b.current?.id)||t.some(e=>e.id===MK.D)&&(e.preventDefault(),e.stopPropagation())};return document.addEventListener("wheel",e,{passive:!1,capture:!0}),document.addEventListener("touchmove",e,{passive:!1,capture:!0}),()=>{document.removeEventListener("wheel",e,{capture:!0}),document.removeEventListener("touchmove",e,{capture:!0})}}},[c,y]),(0,A.useEffect)(()=>{if(!c)return;let e=e=>{let t=e.composedPath(),r=t.some(e=>e.id===v.current?.id),n=t.some(e=>e.id===m.current?.id);r||n||(u(!1),p(-1))};return document.addEventListener("mousedown",e,!0),()=>{document.removeEventListener("mousedown",e,!0)}},[c]);let C=x?.label||i||"Select option",_=x?.label&&n?`${x.label} ${n}`:n||C;return(0,E.jsxs)("div",{ref:m,id:"select-container",className:`_1wyjd4f0 ${s||""}`,"data-theme":o,children:[(0,E.jsxs)("button",{ref:g,type:"button",className:`_1wyjd4f1 ${a?"_1wyjd4f2":""}`,onClick:w,onKeyDown:S,"aria-label":_,"aria-haspopup":"listbox","aria-expanded":c,disabled:a,children:[(0,E.jsx)("span",{className:`_1wyjd4f3 ${!x?"_1wyjd4f4":""}`,children:C}),(0,E.jsx)(MJ,{className:`_1wyjd4f5 ${c?"_1wyjd4f6":""}`})]}),c&&(0,Cp.createPortal)((0,E.jsx)("div",{ref:v,id:"select-dropdown",className:"_1wyjd4f7",style:{position:"fixed",zIndex:jH,top:`${h.top}px`,left:`${h.left}px`,width:`${h.width}px`},"data-theme":o,children:(0,E.jsx)("ul",{ref:b,className:"_1wyjd4f8",id:"select-list",role:"listbox","aria-label":n,children:l.map((e,r)=>(0,E.jsx)("li",{className:`_1wyjd4f9 ${d===r?"_1wyjd4fa":""} ${t===e.id?"_1wyjd4fb":""}`,role:"option","aria-selected":t===e.id,onClick:()=>k(e.id),tabIndex:0,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),k(e.id))},onFocus:()=>p(r),onMouseEnter:()=>p(r),children:e.label},e.id))})}),y)]})}function Mq(e){let{flag:t,onOverride:r,disabled:n=!1}=e;return(0,E.jsx)("div",{className:Ei,children:(0,E.jsx)(II,{"data-theme":"dark",isSelected:t.currentValue,onChange:r,isDisabled:n,className:Ee})})}function M$(e){let{flag:t,onOverride:r,disabled:n=!1}=e,i=t.availableVariations.find(e=>MB(e.value,t.currentValue)),o=t.availableVariations.map(e=>({id:e._id,label:e.name,value:e.value}));return(0,E.jsx)(MQ,{selectedKey:i?._id||null,onSelectionChange:e=>{if(e){let n=t.availableVariations.find(t=>t._id===e);n&&r(n.value)}},"aria-label":"Select variant",placeholder:"Select variant","data-theme":"dark",className:"_1wslzo09",isDisabled:n,options:o})}function M0(e){let{flag:t,onOverride:r,disabled:n=!1}=e,[i,o]=(0,A.useState)(!1),s=String(t.currentValue),[a,l]=(0,A.useState)(s),c=(0,A.useRef)(null);return(0,A.useEffect)(()=>{i&&c.current&&(c.current?.focus(),c.current?.select())},[i]),(0,E.jsx)("div",{className:Eo,children:i?(0,E.jsx)(IN,{"aria-label":`Enter ${t.type} value`,className:En,"data-theme":"dark",children:(0,E.jsxs)(Iy,{className:Et,children:[(0,E.jsx)(Ig,{ref:c,placeholder:`Enter ${t.type} value`,value:a,onChange:e=>l(e.target.value),type:"number"===t.type?"number":"text",onKeyDown:e=>{e.stopPropagation()}}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(Eu,{}),label:"Confirm",onClick:()=>{r("number"===t.type?parseFloat(a):a),o(!1)}}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(ID,{}),label:"Cancel",onClick:()=>{o(!1)}})]})}):(0,E.jsxs)("div",{className:Es,children:[(0,E.jsx)("div",{className:Er,children:s}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(Ec,{}),label:"Edit",onClick:()=>{l(s),o(!0)},disabled:n})]})})}function M1(e){let{reloadOnFlagChangeIsEnabled:t}=e,{searchTerm:r}=wy(),n=wg(),{state:i,setOverride:o,clearOverride:s,clearAllOverrides:a}=kk(),{flags:l}=i,{isStarred:c,toggleStarred:u,clearAllStarred:d,starredCount:p}=kT(),[h,f]=(0,A.useState)(new Set(["all"])),m=(0,A.useRef)(null),g=(0,A.useCallback)(()=>m.current,[]),b=(0,A.useCallback)(e=>{f(t=>{if("all"===e)return n.trackFilterChange("all","selected"),new Set(["all"]);let r=new Set(t);return(r.delete("all"),r.has(e)?(r.delete(e),n.trackFilterChange(e,"deselected")):(r.add(e),n.trackFilterChange(e,"selected")),0===r.size)?(n.trackFilterChange("all","selected"),new Set(["all"])):r})},[n]),v=Object.entries(l),y=(0,A.useMemo)(()=>v.filter(([e,t])=>{let n=t.name.toLowerCase().includes(r.toLowerCase())||e.toLowerCase().includes(r.trim().toLowerCase()),i=!0;return i=!!h.has("all")||h.has(Ij)&&t.isOverridden||h.has(IM)&&c(e),n&&i}),[v,r,h,c]),x=CI({count:y.length,getScrollElement:g,estimateSize:()=>80,overscan:5}),w=(0,A.useMemo)(()=>Object.values(l).filter(e=>e.isOverridden).length,[l]),k=(e,r)=>{o(e,r),n.trackFlagOverride(e,r,"set"),t&&window.location.reload()},S=async()=>{await a(),n.trackFlagOverride("*",{count:w},"clear_all"),n.trackFilterChange("all","selected"),f(new Set(["all"])),t&&window.location.reload()},C=(0,A.useCallback)(e=>{w<=1&&h.has(Ij)&&!h.has(IM)&&f(new Set(["all"])),s(e).then(()=>{n.trackFlagOverride(e,null,"remove"),t&&window.location.reload()})},[w,h,s,n,t]),_=(0,A.useCallback)(e=>{let t=c(e);u(e),n.trackStarredFlag(e,t?"unstar":"star")},[c,u,n]),T=(0,A.useCallback)((e,t)=>{t>80?x.resizeItem(e,t):setTimeout(()=>{x.resizeItem(e,t)},125)},[x]),{title:I,subtitle:O}=h.has(Ij)&&!h.has(IM)&&0===w?{title:"No overridden flags found",subtitle:"You have not set any overrides yet"}:h.has(IM)&&!h.has(Ij)&&0===p?{title:"No starred flags found",subtitle:"Star flags to see them here"}:{title:"No flags found",subtitle:"Try adjusting your search"},L=(0,A.useCallback)(e=>{n.trackFlagKeyCopy(e)},[n]);return(0,E.jsx)(IV.Provider,{value:{activeFilters:h,onFilterToggle:b},children:(0,E.jsx)("div",{"data-testid":"flag-dev-server-tab-content",children:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(IK,{totalFlags:v.length,filteredFlags:y.length,totalOverriddenFlags:w,starredCount:p,onClearOverrides:S,onClearStarred:()=>{n.trackStarredFlag("*","clear_all"),d(),n.trackFilterChange("all","selected"),f(new Set(["all"]))},isLoading:i.isLoading}),0===y.length&&(r.trim()||!h.has("all"))?(0,E.jsx)(Iq,{title:I,subtitle:O}):(0,E.jsx)("div",{ref:m,className:My,children:(0,E.jsx)(CO,{children:(0,E.jsx)("div",{className:MS,style:{height:x.getTotalSize()},children:x.getVirtualItems().map(e=>{let t=y[e.index];if(!t)return null;let[r,n]=t;return"object"===n.type?(0,E.jsx)("div",{className:Mm,children:(0,E.jsx)(MA,{flag:n,size:e.size,start:e.start,handleOverride:k,handleClearOverride:C,handleHeightChange:t=>T(e.index,t),onToggleStarred:_})},e.key):(0,E.jsx)("div",{className:Mm,style:{height:`${e.size}px`,transform:`translateY(${e.start}px)`,borderBottom:"1px solid var(--lp-color-gray-600);"},children:(0,E.jsxs)(CL,{className:Mx,children:[(0,E.jsxs)("div",{className:Mk,children:[(0,E.jsxs)("span",{className:Mv,children:[(0,E.jsx)("span",{className:Mb,children:n.name}),n.isOverridden&&(0,E.jsx)(I1,{onClear:()=>C(n.key)})]}),(0,E.jsx)(ME,{text:n.key,className:Mg,onCopy:L})]}),(0,E.jsxs)("div",{className:Mw,children:[(e=>{let t=t=>k(e.key,t);switch(e.type){case"boolean":return(0,E.jsx)(Mq,{flag:e,onOverride:t,disabled:!e.enabled});case"multivariate":return(0,E.jsx)(M$,{flag:e,onOverride:t,disabled:!e.enabled});case"string":case"number":return(0,E.jsx)(M0,{flag:e,onOverride:t,disabled:!e.enabled});default:return(0,E.jsxs)("div",{children:["Unsupported flag type: ",e.type]})}})(n),(0,E.jsx)(I6,{flagKey:n.key,isStarred:c(n.key),onToggle:_})]})]})},e.key)})})})})]})})})}function M2({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e||""}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Thumb up",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M10.833 4.084A.916.916 0 0 0 9.917 5v.833a4.08 4.08 0 0 1-3.334 4.014v4.32a1.75 1.75 0 0 0 1.75 1.75h5.834l.063.002c.101.01.25-.024.425-.198.18-.18.35-.48.446-.88l.813-4.07A.917.917 0 0 0 15 9.916h-2.5a.75.75 0 0 1-.75-.75V5a.917.917 0 0 0-.917-.917m-4.517 12.63A1.58 1.58 0 0 1 5 17.418H3.333a1.583 1.583 0 0 1-1.583-1.584V10a1.583 1.583 0 0 1 1.583-1.583h2.5a2.583 2.583 0 0 0 2.584-2.583V5a2.417 2.417 0 1 1 4.833 0v3.417H15a2.417 2.417 0 0 1 2.417 2.417q0 .074-.015.147l-.833 4.166-.005.024c-.145.616-.428 1.19-.848 1.61-.419.419-.97.676-1.577.636H8.333a3.25 3.25 0 0 1-2.017-.702M5.083 9.918h-1.75A.083.083 0 0 0 3.25 10v5.834a.083.083 0 0 0 .083.083H5a.083.083 0 0 0 .083-.083z",clipRule:"evenodd"})})}function M5({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e||""}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Thumb down",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M14.139 2.583c.606-.04 1.158.217 1.577.636s.703.994.848 1.61l.005.024.833 4.166q.015.073.015.148A2.416 2.416 0 0 1 15 11.583h-1.75V15a2.417 2.417 0 0 1-4.833 0v-.834a2.583 2.583 0 0 0-2.584-2.583h-2.5A1.583 1.583 0 0 1 1.75 10V4.167a1.583 1.583 0 0 1 1.583-1.584H5a1.58 1.58 0 0 1 1.316.702 3.25 3.25 0 0 1 2.017-.702zM5.083 4.167A.083.083 0 0 0 5 4.083H3.333a.083.083 0 0 0-.083.084V10a.083.083 0 0 0 .083.083h1.75zm1.5 5.986v-4.32a1.75 1.75 0 0 1 1.75-1.75h5.834q.03 0 .063-.003c.101-.008.25.025.425.2.18.179.35.478.446.88l.813 4.07a.917.917 0 0 1-.914.853h-2.5a.75.75 0 0 0-.75.75V15a.917.917 0 0 1-1.833 0v-.834a4.08 4.08 0 0 0-3.334-4.013",clipRule:"evenodd"})})}var M3=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/Feedback/Feedback.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA61V7Y7bIBD8n6dYnVQpkUpqOx8XceqTVFWFzdqmIWDBOh+t7t2rEDt1HOcuzfWXxTIMOwMepj/ieOvrZB3B7xGAVL7S4sAh17h/GUH4MqkcZqSs4ZBZXW/McaYQFYc4qQKsElIqU3CIl9UekuhYfR1NW/I4kG+EK5ThEAVia4h59Qs5xPMTSSjtUBUlcVhGAZZZbR2HrXBjxnTFwpgVThxYEkWTlzMtSy2R3XBY9fZOhoWF9vvY2TBWaFUYpgg3nkOGhtAdyz9rTyo/sMwaQkPdqZ2SVHKYNfaUjah2nFon0TEnpKo9h3m3yiGu9uCtVnJQ9nMjOxXZunC2NpI1JpETxlfCoaF3rJs3HFnt/BFTWdV2HkjU6bD7W0A0TTyg8Pi5lXBV7xUu7eW5zWofTLY1aWWQg7Gmj5LKi1SjPAErkSk6cIimi27PxhITWtsdyt7y0m7RcWNpfGaaBKpry4bMWbUGdxQOI5etje9d0msP2FZ5lWq89CK5dfK+FNLuWDglkZHaIgs0YftmObN57pE4sKR/rb9JQYJ51JgRyq9P5Gp8+n7DE1ekYpw7u+k3kTpxRB2EYanwOAEHBaTwBaJpPODYIzyzN/zsL7tH4r/chYd0L/6T8PmlnPmH0rhJRLIDEbcIzE0+xVH06WJ2GWZPeedR56etGZrLf+w5wO7I5m7Kz240d3/g/s3szouzqvZn4Q/94B9I4Y4lqzctQTRs0XpydNSXTpl1eAtf/wCRDqQphAcAAA=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),M9={};M9.styleTagTransform=kK(),M9.setAttributes=kB(),M9.insert=kX().bind(null,"head"),M9.domAPI=kF(),M9.insertStyleElement=kH(),kW()(M3.A,M9),M3.A&&M3.A.locals&&M3.A.locals;var M4="_11vsu2k3";function M6(e){let{onSubmit:t,title:r="How's your experience?"}=e,[n,i]=(0,A.useState)(null),[o,s]=(0,A.useState)(""),[a,l]=(0,A.useState)(!1),c=(0,A.useRef)(null),u=(0,A.useRef)(null),d=e=>{a||i(e)};return(0,A.useEffect)(()=>()=>{c.current&&clearTimeout(c.current)},[]),(0,A.useEffect)(()=>{if(n&&!a&&u.current){let e=setTimeout(()=>{u.current&&"function"==typeof u.current.scrollIntoView&&u.current.scrollIntoView({behavior:"smooth",block:"center"})},100);return()=>clearTimeout(e)}},[n,a]),(0,E.jsxs)("div",{className:"_11vsu2k0",children:[(0,E.jsx)("div",{className:"_11vsu2k1",children:r}),(0,E.jsxs)("div",{className:"_11vsu2k2",role:"radiogroup","aria-label":"Feedback sentiment",children:[(0,E.jsx)("button",{className:M4,onClick:()=>d("positive"),"aria-label":"Positive",role:"radio","aria-checked":"positive"===n,disabled:a,"data-disabled":a,"data-selected":"positive"===n,type:"button",children:(0,E.jsx)(M2,{})}),(0,E.jsx)("button",{className:M4,onClick:()=>d("negative"),"aria-label":"Negative",role:"radio","aria-checked":"negative"===n,disabled:a,"data-disabled":a,"data-selected":"negative"===n,type:"button",children:(0,E.jsx)(M5,{})})]}),(0,E.jsx)(oG,{children:n&&!a&&(0,E.jsxs)(oI.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"_11vsu2k4",children:[(0,E.jsx)(IN,{"aria-label":"Feedback comment",className:"_11vsu2k5",children:(0,E.jsx)(IO,{placeholder:"Optional feedback...",value:o,onChange:e=>s(e.target.value),rows:3})}),(0,E.jsx)("div",{ref:u,children:(0,E.jsx)(Io,{className:"_11vsu2k6",onClick:()=>{n&&(t(o,n),l(!0),c.current=setTimeout(()=>{l(!1),i(null),s("")},3e3))},variant:"primary",children:"Send Feedback"})})]})}),(0,E.jsx)(oG,{children:a&&(0,E.jsxs)(oI.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"_11vsu2k7",role:"status","aria-live":"polite",children:[(0,E.jsx)("div",{className:"_11vsu2k8",children:(0,E.jsx)(Eu,{})}),(0,E.jsx)("span",{children:"Thanks! Your feedback is valuable and will help us improve."})]})})]})}var M7=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/StatusDot.css.ts.vanilla.css","source":"Ll8xZXkxNW1mMCB7CiAgd2lkdGg6IDhweDsKICBoZWlnaHQ6IDhweDsKICBib3JkZXItcmFkaXVzOiA1MCU7Cn0="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),M8={};function Ve(e){let{status:t}=e;return(0,E.jsx)("div",{className:"_1ey15mf0",style:{backgroundColor:(()=>{switch(t){case"connected":return"var(--lp-color-green-500)";case"disconnected":return"var(--lp-color-orange-500)";case"error":return"var(--lp-color-red-500)"}})()}})}M8.styleTagTransform=kK(),M8.setAttributes=kB(),M8.insert=kX().bind(null,"head"),M8.domAPI=kF(),M8.insertStyleElement=kH(),kW()(M7.A,M8),M7.A&&M7.A.locals&&M7.A.locals;var Vt=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/legacy/TabContent/SettingsTab.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA6VUTXPbIBC9+1fssTngwYrtJvjYH5LBsJK2QcAAjuR28t874A8ptdzMpCeNdpf3Hm/ZXb5subUqcfi9ANi7oDGwvUvJdQJWfoDoDGl4k+EbY8Yz5YwLrAnyyLacP+x2i/fF8oIhjIyJqZaMnoOzzuK0flWKOhkasgL4bgHgpdZkGwGrrR+g4n6AJz/kTO1sYpF+oYBVNQn1SE2bBGx5ASj6xKzedda7AEg4JJaCtLF2oRNw8B6DkhFz0mBKGFj0UhUdfLnJZKPoqoieUbOX6rUJ7mA1+4eI500WMcI9nuAMDgJWGUZT9EYeRYnlgDTUWEYJuyhAoU0YcvjnISaqj0w5m9AmAVkysj2mHtHmikb6i7qRb134bkjyl2kKqBI5K7KNh25E+Qtkc+PBeqYj6087UvGPZmzvefspxhz1iPv9C7jrKW4tOzLHSeEkyjpnXTH/w12e5o2+083i8vml33S2NAetnsI/f+FKj/95JVk4e9KpPQ1oBmvPll/+azJGgDqEgDb9yOTX9xXbQPa1TPoIuj9tiuvwCCij6WU+n492ZNmVk59IOjlcYhU/x+5TqELh3jDUxvUCWtL6NCJlFYwJNIZ8pJhTfUsJyx7AvLn6IP1uOqnvfwDpucrKOgUAAA=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Vr={};Vr.styleTagTransform=kK(),Vr.setAttributes=kB(),Vr.insert=kX().bind(null,"head"),Vr.domAPI=kF(),Vr.insertStyleElement=kH(),kW()(Vt.A,Vr),Vt.A&&Vt.A.locals&&Vt.A.locals;var Vn="_60nnctb",Vi="_60nnct2",Vo="_60nnct0",Vs="_60nnct6",Va="_60nnct5",Vl="_60nnct3",Vc="_60nnct4";function Vu(){let{projectKey:e,setProjectKey:t,projects:r,loading:n,getProjects:i}=ku(),o=wg();(0,A.useEffect)(()=>{0===r.length&&i()},[r]);let s=(0,A.useMemo)(()=>r.map(e=>({id:e.key,label:e.name})),[r]);return(0,E.jsx)(MQ,{selectedKey:e,onSelectionChange:r=>{r&&r!==e&&!n&&(o.trackProjectSwitch(e,r),t(r))},"aria-label":"Select project",placeholder:"Select project","data-theme":"dark",className:Vn,isDisabled:n,options:s})}function Vd(e){let{currentPosition:t,onPositionChange:r}=e,n=wS.map(e=>({id:e,label:e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}));return(0,E.jsx)(MQ,{selectedKey:t,onSelectionChange:e=>{e&&e!==t&&r(e)},"aria-label":"Select toolbar position",placeholder:"Select position","data-theme":"dark",className:Vn,options:n})}function Vp(e){let{isAutoCollapseEnabled:t,onToggleAutoCollapse:r}=e,n=wg();return(0,E.jsx)(II,{"data-testid":"auto-collapse-toggle",className:Vi,"data-theme":"dark",isSelected:t,onChange:e=>{n.trackAutoCollapseToggle(e?"enable":"disable"),r()},"aria-label":"Auto-collapse toolbar"})}function Vh(e){let{reloadOnFlagChangeIsEnabled:t,onToggleReloadOnFlagChange:r}=e,n=wg();return(0,E.jsx)(II,{"data-testid":"reload-on-flag-change-toggle",className:Vi,"data-theme":"dark",isSelected:t,onChange:e=>{n.trackReloadOnFlagChangeToggle(e),r()},"aria-label":"Reload on flag change"})}function Vf(e){let{status:t}=e;return(0,E.jsxs)("div",{className:"_60nnct8",children:[(0,E.jsx)("span",{className:"_60nnct9",children:(()=>{switch(t){case"connected":return"Connected";case"disconnected":return"Disconnected";case"error":return"Error"}})()}),(0,E.jsx)(Ve,{status:t})]})}function Vm(e){let{mode:t,reloadOnFlagChangeIsEnabled:r,onToggleReloadOnFlagChange:n,isAutoCollapseEnabled:i,onToggleAutoCollapse:o}=e,{state:s}=kk(),{position:a,handlePositionChange:l}=wP(),{searchTerm:c}=wy(),u=wg(),{logout:d}=w$(),p=e=>{u.trackPositionChange(a,e,"settings"),l(e)},h=()=>{u.trackLogout(),d()},f="dev-server"===t?[{title:"Dev Server Configuration",items:[{id:"project",name:"Project",icon:"folder",isProjectSelector:!0},{id:"environment",name:"Environment",icon:"globe",value:s.sourceEnvironmentKey||"Unknown"},{id:"connection",name:"Connection status",icon:"link",isConnectionStatus:!0}]},{title:"Toolbar Settings",items:[{id:"position",name:"Position",icon:"move",isPositionSelector:!0},{id:"auto-collapse",name:"Auto-collapse",description:"Automatically collapses the toolbar when clicking outside.",icon:"",isAutoCollapseToggle:!0},{id:"reload-on-flag-change",name:"Reload on flag change",icon:"refresh",isReloadOnFlagChangeToggle:!0}]},{title:"Account",items:[{id:"logout",name:"Log out",description:"Sign the Toolbar out of LaunchDarkly",icon:"logout",isLogoutButton:!0}]}]:[{title:"Toolbar Settings",items:[{id:"project",name:"Project",icon:"folder",isProjectSelector:!0},{id:"position",name:"Position",icon:"move",isPositionSelector:!0},{id:"auto-collapse",name:"Auto-collapse",description:"Automatically collapses the toolbar when clicking outside.",icon:"",isAutoCollapseToggle:!0},{id:"reload-on-flag-change",name:"Reload on flag change",icon:"refresh",isReloadOnFlagChangeToggle:!0}]},{title:"Account",items:[{id:"logout",name:"Log out",description:"Sign the Toolbar out of LaunchDarkly",icon:"logout",isLogoutButton:!0}]}];return!f.some(e=>e.items.some(e=>e.name.toLowerCase().includes(c.toLowerCase())||e.id.toLowerCase().includes(c.trim().toLowerCase())))&&c.trim()?(0,E.jsx)(Iq,{title:"No settings found",subtitle:"Try adjusting your search"}):(0,E.jsxs)("div",{"data-testid":"settings-tab-content",children:[f.map(e=>0===e.items.filter(e=>e.name.toLowerCase().includes(c.toLowerCase())||e.id.toLowerCase().includes(c.trim().toLowerCase())).length?null:(0,E.jsxs)("div",{className:Vo,children:[(0,E.jsx)("h4",{className:"_60nnct1",children:e.title}),(0,E.jsx)(CO,{children:e.items.filter(e=>e.name.toLowerCase().includes(c.toLowerCase())||e.id.toLowerCase().includes(c.trim().toLowerCase())).map(e=>e.isConnectionStatus?(0,E.jsx)(CL,{children:(0,E.jsxs)("div",{className:Vl,children:[(0,E.jsx)("div",{className:Vc,children:(0,E.jsx)("span",{className:Va,children:e.name})}),(0,E.jsx)(Vf,{status:s.connectionStatus})]})},e.id):e.isLogoutButton?(0,E.jsx)(CL,{children:(0,E.jsxs)("div",{className:Vl,children:[(0,E.jsxs)("div",{className:Vc,children:[(0,E.jsx)("span",{className:Va,children:e.name}),e.description&&(0,E.jsx)("span",{className:Vs,children:e.description})]}),(0,E.jsx)(Io,{"aria-label":"Log out","data-testid":"logout-button",onClick:h,children:"Log out"})]})},e.id):(0,E.jsx)(CL,{children:(0,E.jsxs)("div",{className:Vl,children:[(0,E.jsxs)("div",{className:Vc,children:[(0,E.jsx)("span",{className:Va,children:e.name}),e.description&&(0,E.jsx)("span",{className:Vs,children:e.description})]}),e.isProjectSelector?(0,E.jsx)(Vu,{}):e.isPositionSelector?(0,E.jsx)(Vd,{currentPosition:a,onPositionChange:p}):e.isAutoCollapseToggle?(0,E.jsx)(Vp,{isAutoCollapseEnabled:i,onToggleAutoCollapse:o}):e.isReloadOnFlagChangeToggle?(0,E.jsx)(Vh,{reloadOnFlagChangeIsEnabled:r,onToggleReloadOnFlagChange:n}):(0,E.jsx)("span",{className:"_60nnct7",children:e.value})]})},e.id))})]},e.title)),(0,E.jsx)("div",{className:Vo,children:(0,E.jsx)(M6,{onSubmit:(e,t)=>{u.trackFeedback(e,t)}})})]})}function Vg(e){let{activeTab:t,slideDirection:r,mode:n,flagOverridePlugin:i,eventInterceptionPlugin:o,baseUrl:s,reloadOnFlagChangeIsEnabled:a,onToggleReloadOnFlagChange:l,isAutoCollapseEnabled:c,onToggleAutoCollapse:u}=e,d=(()=>{switch(t){case"flag-sdk":return(0,E.jsx)(ML,{flagOverridePlugin:i,reloadOnFlagChangeIsEnabled:a});case"flag-dev-server":return(0,E.jsx)(M1,{reloadOnFlagChangeIsEnabled:a});case"events":return(0,E.jsx)(Mz,{baseUrl:s,eventInterceptionPlugin:o});case"settings":return(0,E.jsx)(Vm,{mode:n,reloadOnFlagChangeIsEnabled:a,onToggleReloadOnFlagChange:l,isAutoCollapseEnabled:c,onToggleAutoCollapse:u});default:return null}})();return d?(0,E.jsx)(oI.div,{className:"pf3m6r0",initial:{opacity:0,x:30*r,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:-(30*r),scale:.95},transition:kA.tabContent,children:d},t):null}var Vb=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/LoginScreen/LoginScreen.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA61Wy47rKBDd5ytqM1J6QYSdtpOmNyPNl2BTdrjXAQtwHjPqfx+B30k8Sd87K8t2QZ06derAnz/xWhh+RAv5lSdVSuGfFQD9IzwAnOHKFtocGRjtuMM1FVi+fa4AvlYAEf2PyG06if1abdoEUYgX0tYVvzIoKrz4CP8kQhrMndSKQa6r5qj8n4znP0ujGyVIrittGJy4WRNS1e07KQ2/ko+EhkyZNgINg6i+gNWVFA+jd3QaTQwXsrEMorgOYM5SuAML1fnXA8ry4BiklLb/9QlNUekzg4MUAtXnWF78uDxeyVIR6fBoGeSoHBr/+UdjnSyuJNfKoXIMbM1zJBm6M2KovuZCSFUyoLCvL0AhSlsMv0ILybRz+vgqO0epSF97EtIOZW5DmT1PyXuLqQ/mjdOBp+wH5o4U0vmGKsdlqKmQlfM9yowPV2jtmr6BVCc0bh29TdK8/x6b46+Bxtjgsdcbg2iSK/lGrmFROl8kVSUVkl/Hed/VMFc1N6jcVN9KK/TveWOsD6u1vKt13yllLvKuV2Ff2Q7bbVagm9gCctumWJbXe6eUTgjbdK6D7Vw0KRPS8qxCEVjroSvtCK8qfUYRRFPzXLorA7pJZosPfuyY0m497PPWbrQMMO4H/aVp2YfoScpC540NOXTjfGt74m9jyElamVU4j42XxsweuNBnElrGcydPSMI2AWu3nOiisOgYkHjG4u67BrqgQocXz7ss1fTrzPqGnPtnPEcdz4VWjlj5NzKINkk/a/7jeTTR4C3clFJ5W6NANzsfCuFHKL0XULSJpxr4eAZjew+Dbva7HsjN3sktkBYydAAvpJd1TGcd4AHGoqS6d2JQkA/65FiaBqdd8PJ2Pc3jqdBRF3UV3sw63Wx3sy7cc9LWP54M3eebIzDTF7825BzOkikn2f/l1CWvw+j3BX1jcAfmzgfp8E55Sau8BR7uKR0xvHSnSB/fKaYteGDWT2w4SkYfnh7H8QDuplEP2zl2ae7AE6vdfS458mTxogO/1qXd3F7z2R2iK2eYzhvuRyt9eCASp+tpUN4YH/CXT/6gKUlLFlfyyDu77G6/kQ0uwQ1IVUgVdDQgFs/85/2R/9yMGnvoc1Obw1fdNli4wFybror+VnCv+3HztovPUiQLGRol0Hjsn6uvfwEegWT/PQwAAA=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Vv={};function Vy({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M9.47 6.97a.75.75 0 0 1 1.06 0l5 5a.75.75 0 0 1-1.06 1.06L10 8.56l-4.47 4.47a.75.75 0 1 1-1.06-1.06z",clipRule:"evenodd"})})}function Vx(e){let{onClose:t,onLogin:r,onMouseDown:n}=e,{authenticating:i}=w$(),{position:o}=wP(),s=wg(),a=o.startsWith("top-");return(0,E.jsxs)(oI.div,{className:"cya5l61",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.2},"data-testid":"login-screen",children:[(0,E.jsxs)("div",{className:"cya5l62",children:[(0,E.jsx)(k2,{className:"cya5l63",onMouseDown:n}),(0,E.jsx)(oI.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.1},className:"cya5l65",tabIndex:-1,children:(0,E.jsx)(Eg,{icon:a?(0,E.jsx)(Vy,{}):(0,E.jsx)(MJ,{}),label:"Close toolbar",onClick:()=>{s.trackLoginCancelled(),t()},className:"cya5l66"})})]}),(0,E.jsx)("div",{className:"cya5l64",children:(0,E.jsxs)("div",{className:"cya5l67",children:[(0,E.jsx)("h2",{className:"cya5l68",children:"Connect to LaunchDarkly"}),(0,E.jsx)("p",{className:"cya5l69",children:"Authorize your account to activate the Developer Toolbar."}),(0,E.jsx)(oI.button,{className:"cya5l6b",onClick:r,disabled:i,whileHover:{scale:1.02},whileTap:{scale:.98},"data-testid":"login-button",children:i?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"cya5l6c"}),"Logging in..."]}):"Login"}),(0,E.jsxs)("p",{className:"cya5l6d",children:["Don't have a LaunchDarkly account?"," ",(0,E.jsx)("a",{href:"https://launchdarkly.com/start-trial",target:"_blank",rel:"noopener noreferrer",className:"cya5l6e",children:"Start your free trial!"})]})]})})]})}function Vw({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M2.6 5.934A5.75 5.75 0 0 1 6.668 4.25h6.666a5.75 5.75 0 1 1 0 11.5H6.667A5.75 5.75 0 0 1 2.6 5.934m2.358 2.357a2.417 2.417 0 1 1 3.418 3.418A2.417 2.417 0 0 1 4.958 8.29",clipRule:"evenodd"})})}function Vk({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M6.229 3.602a7.5 7.5 0 0 1 11.18 5.461.75.75 0 0 1-1.485.207A6 6 0 0 0 5 6.75h1.666a.75.75 0 1 1 0 1.5H3.333a.75.75 0 0 1-.75-.75V4.167a.75.75 0 1 1 1.5 0v1.295a7.5 7.5 0 0 1 2.146-1.86m-3 6.488a.75.75 0 0 1 .847.64 6 6 0 0 0 10.923 2.52h-1.666a.75.75 0 0 1 0-1.5h3.334a.75.75 0 0 1 .75.75v3.333a.75.75 0 0 1-1.5 0v-1.295a7.498 7.498 0 0 1-11.175.695 7.5 7.5 0 0 1-2.152-4.296.75.75 0 0 1 .64-.847",clipRule:"evenodd"})})}function VS({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M9.23 1.875c-.765 0-1.417.552-1.542 1.306l-.149.893c-.017.1-.095.218-.247.29a6 6 0 0 0-.822.476c-.138.095-.279.104-.374.068l-.85-.318a1.56 1.56 0 0 0-1.901.682l-.768 1.331a1.56 1.56 0 0 0 .36 1.988l.7.576c.079.065.14.191.128.359a6 6 0 0 0 0 .949c.013.167-.049.293-.128.358l-.7.577a1.56 1.56 0 0 0-.36 1.987l.768 1.331c.382.662 1.186.95 1.901.682l.85-.318c.096-.036.236-.027.375.069q.39.268.82.474c.153.074.231.19.248.291l.149.893a1.56 1.56 0 0 0 1.541 1.306h1.537c.764 0 1.415-.552 1.541-1.306l.149-.893c.017-.1.095-.217.247-.29q.43-.207.822-.476c.138-.095.278-.104.374-.069l.85.319a1.56 1.56 0 0 0 1.9-.682l.77-1.331a1.56 1.56 0 0 0-.36-1.988l-.701-.576c-.08-.065-.141-.191-.128-.359a6 6 0 0 0 0-.949c-.013-.167.049-.293.128-.358l.7-.577c.59-.485.742-1.326.36-1.987l-.768-1.331a1.56 1.56 0 0 0-1.901-.682l-.85.318c-.096.036-.236.027-.375-.068a6 6 0 0 0-.821-.475c-.152-.074-.23-.19-.247-.291l-.149-.893a1.56 1.56 0 0 0-1.541-1.306zm.768 11.25a3.125 3.125 0 1 0 0-6.25 3.125 3.125 0 0 0 0 6.25",clipRule:"evenodd"})})}Vv.styleTagTransform=kK(),Vv.setAttributes=kB(),Vv.insert=kX().bind(null,"head"),Vv.domAPI=kF(),Vv.insertStyleElement=kH(),kW()(Vb.A,Vv),Vb.A&&Vb.A.locals&&Vb.A.locals;var VC=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/ErrorMessage.css.ts.vanilla.css","source":"LmtzZmNpbTAgewogIGhlaWdodDogNDAwcHg7Cn0KLmtzZmNpbTEgewogIGJhY2tncm91bmQ6IHZhcigtLWxwLWNvbG9yLXJlZC05MDApOwogIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLWxwLWNvbG9yLXJlZC02MDApOwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1yZWQtMjAwKTsKICBwYWRkaW5nOiA4cHggMTJweDsKICBtYXJnaW46IDEycHggMjBweDsKICBib3JkZXItcmFkaXVzOiA2cHg7CiAgZm9udC1zaXplOiAxMnB4Owp9"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),V_={};function VT(e){let{error:t}=e;return(0,E.jsx)("div",{className:"ksfcim0",children:(0,E.jsx)("div",{className:"ksfcim1",children:t})})}V_.styleTagTransform=kK(),V_.setAttributes=kB(),V_.insert=kX().bind(null,"head"),V_.domAPI=kF(),V_.insertStyleElement=kH(),kW()(VC.A,V_),VC.A&&VC.A.locals&&VC.A.locals;var VI=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/legacy/Header/Header.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA71W247bOAx9n6/gFiiQAaqBnCZpqnnsT/RtIdu0oxlZEiQ5cbrovy8ky/UlmTSDLhYIHFsiRfKQPNTT31lbvTrdUvjnAaAUzkh+ZlBbUT4/QPwnHhsjuUdSaNk2yjHgrdeQVTa+XMpxi9wx+CB1raFA5dECL7zQyn0I0lyKWhHhsXEs7Ydlw8tSqJoBhb3pgEK2M13YyHnxWlvdqjK4oC2DI7crQqTpv0lt+Zl83dLHKK1tiZbk2nvdMMhMB05LUV5V+kJnSpaXonUMsrXp+gcFGvYbocgBRX3wDLbJrZqbXvL54efD04BkFpGMgAQcGAQUnqfgVhK7GzDEY/eLU9fx1JMo/YFBtt30HgweDWnQ+QsWnlTCMyi08lyosFwJ6dEyyG0QV+jcij6CUEe0fpU9zgx9joYqrTxx4gcyyJKtuHRKBnc0onIjG5sEbFSreCPkeSI4WSU5dxhFTwfhkTjDC2Sg9MlyM3Nts0R2xOwC25fWeVGdSUABlZ/KvgF7yHDCt88474bvjNKPM0+20ZP7ynJ/vcK2ParXFXPLw6FnrkZ0foWYS1283gdto5WOeI6pSEmlvXl9RFtJfWJwEGWJataGG9P1dQjgsfNkFEYphXHCvZm1K/ClQyL6I+4TUHfL9CbKeHfv0EXvfJlz22+OuFE5ixRuFnb2/5Odr4vqC7ArHBXH76K1LpSX0eKCZAdundtKq/9BEN5y5UTIIOurHOjT2gFyh58uWmfcm0fKDqHoYrw3Wmw9tNg7GnJihfeUJ6S8RWUThTwqDOT7ebfITxG3E9DE9lLUdPCXaIy2niv/x/OgnM2D1GC/pePJAXhX0KOJ3XziZMugq0uHJrv1NXevUMQ1Prqf2ycGDzODV50foi9aa1H5byH22Rmiz6Meqtii5F4cceaUUFIoJImUJ9ovC22eOy1bH7W9NmPMEqtwqUgcGbqm0rZh/Wu4T31fkS39+I4KH25CN0SylN5fdLBPF563OWE6PtaTpXdMoDdmxQ8iVIldhCTNXlsLRSJMm8GnjrgDL0Nt0Dia4vXM1jlf0U+Qfk/ZdjJs7738JXokeETl3UCfP/8F9Zai0x0LAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),VE={};VE.styleTagTransform=kK(),VE.setAttributes=kB(),VE.insert=kX().bind(null,"head"),VE.domAPI=kF(),VE.insertStyleElement=kH(),kW()(VI.A,VE),VI.A&&VI.A.locals&&VI.A.locals;var VA="_1ufksou4",VO="_1ufksou9";function VL(e){let{onMouseDown:t}=e;return(0,E.jsx)("div",{className:"_1ufksou1","aria-hidden":"true",children:(0,E.jsx)(k2,{className:"_1ufksou2",onMouseDown:t})})}function VR(e){let{label:t}=e,r=(0,A.useRef)(null),[n,i]=(0,A.useState)(!1),[o,s]=(0,A.useState)(!1);return(0,A.useEffect)(()=>{let e=()=>{if(r.current){let e=r.current;i(e.scrollWidth>e.clientWidth)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t]),(0,E.jsx)("div",{className:VA,children:(0,E.jsxs)("span",{ref:r,className:"_1ufksou5 _1ufksoui",onMouseEnter:()=>{n&&s(!0)},onMouseLeave:()=>{s(!1)},title:n?t:void 0,children:[t,o&&(0,E.jsx)("div",{className:"_1ufksouj",children:t})]})})}function VN({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M10 1.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5M6.97 6.97a.75.75 0 0 1 1.06 0L10 8.94l1.97-1.97a.75.75 0 1 1 1.06 1.06L11.062 10l1.97 1.97a.75.75 0 0 1-1.06 1.06L10 11.06l-1.97 1.97a.75.75 0 1 1-1.06-1.06L8.94 10 6.97 8.03a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})})}function VZ(e){let{searchTerm:t,onSearch:r,setSearchIsExpanded:n}=e;return(0,E.jsx)(oI.div,{className:"_1ufksoud",initial:{scale:.9,opacity:0,x:-20},animate:{scale:1,opacity:1,x:0},transition:{duration:.25,ease:[.25,.46,.45,.94],delay:.15},onBlur:()=>{t.trim()||n(!1)},children:(0,E.jsx)(IS,{"aria-label":"Search","data-theme":"dark",className:"_1ufksoub",children:(0,E.jsxs)(Iy,{className:"_1ufksouc",children:[(0,E.jsx)(Ig,{autoFocus:!0,placeholder:"Search",value:t,onChange:e=>{r(e.target.value)}}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(VN,{}),label:"Clear",onClick:()=>{t.trim()?r(""):n(!1)},size:"medium"})]})})})}function VG({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M5.814 2.251a6.583 6.583 0 0 1 7.675 10.177l4.542 4.542a.75.75 0 1 1-1.06 1.06l-4.543-4.542a6.58 6.58 0 0 1-8.75-.5A6.585 6.585 0 0 1 5.815 2.252m2.52.999a5.083 5.083 0 1 0 0 10.166 5.083 5.083 0 0 0 0-10.166",clipRule:"evenodd"})})}function Vj({className:e}){return(0,E.jsxs)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M4.167 13.417a.75.75 0 0 1 .75.75v.453l.581-.29a.75.75 0 1 1 .67 1.34l-.324.163.325.163a.75.75 0 0 1-.67 1.341l-.582-.29v.453a.75.75 0 0 1-1.5 0v-.453l-.581.29a.75.75 0 0 1-.671-1.341l.325-.163-.325-.162a.75.75 0 1 1 .67-1.342l.582.29v-.452a.75.75 0 0 1 .75-.75m5.833 0a.75.75 0 0 1 .75.75v.453l.581-.29a.75.75 0 1 1 .671 1.34l-.325.163.325.163a.75.75 0 0 1-.67 1.341l-.582-.29v.453a.75.75 0 0 1-1.5 0v-.453l-.581.29a.75.75 0 1 1-.67-1.341l.324-.163-.325-.162a.75.75 0 1 1 .67-1.342l.582.29v-.452a.75.75 0 0 1 .75-.75m5.834 0a.75.75 0 0 1 .75.75v.453l.58-.29a.75.75 0 1 1 .672 1.34l-.325.163.325.163a.75.75 0 0 1-.671 1.341l-.581-.29v.453a.75.75 0 0 1-1.5 0v-.453l-.582.29a.75.75 0 0 1-.67-1.341l.324-.163-.325-.162a.75.75 0 1 1 .671-1.342l.582.29v-.452a.75.75 0 0 1 .75-.75","clip-rule":"evenodd"}),(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M7.702 2.702a3.25 3.25 0 1 1 4.596 4.596 3.25 3.25 0 0 1-4.596-4.596M10 3.25a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5","clip-rule":"evenodd"}),(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M8.057 10.75a3.14 3.14 0 0 0-2.467 1.198.75.75 0 0 1-1.179-.927q.17-.217.366-.412a4.64 4.64 0 0 1 3.28-1.359h3.889a4.64 4.64 0 0 1 3.643 1.768.75.75 0 1 1-1.178.928 3.14 3.14 0 0 0-2.466-1.196z","clip-rule":"evenodd"})]})}function VM(e){let{searchIsExpanded:t,setSearchIsExpanded:r,onClose:n,onRefresh:i,onOpenConfig:o,showSearchButton:s,showRefreshButton:a}=e,[l,c]=(0,A.useState)(!1),[u,d]=(0,A.useState)(0),{position:p}=wP(),h=p.startsWith("top-"),f=wg(),{authenticated:m,loading:g}=w$(),b=(0,A.useCallback)(()=>{l||(c(!0),d(e=>e+360),setTimeout(()=>{c(!1)},1e3),f.trackRefresh(),i())},[i,l,f]);return(0,E.jsxs)("div",{className:"_1ufksou6",children:[s&&(0,E.jsx)(oG,{mode:"wait",children:!t&&(0,E.jsx)(oI.div,{className:"_1ufksou7",initial:{opacity:0,scale:.8,x:10},animate:{opacity:1,scale:1,x:0},exit:{opacity:0,scale:.8,x:10},transition:{duration:.15,ease:"easeOut"},children:(0,E.jsx)(Eg,{icon:(0,E.jsx)(VG,{}),label:"Search",onClick:()=>r(!0),className:VO})},"search-button")}),o&&!m&&!g&&(0,E.jsx)(Eg,{icon:(0,E.jsx)(Vj,{}),label:"Configuration",onClick:o,className:VO}),a&&(0,E.jsx)(Eg,{icon:(0,E.jsx)(oI.span,{animate:{rotate:u},transition:{duration:1,ease:"linear"},style:{display:"inline-flex",alignItems:"center"},children:(0,E.jsx)(Vk,{})}),label:"Refresh",onClick:b,className:VO}),(0,E.jsx)(oI.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.1},className:"_1ufksou8",tabIndex:-1,children:(0,E.jsx)(Eg,{icon:h?(0,E.jsx)(Vy,{}):(0,E.jsx)(MJ,{}),label:"Close toolbar",onClick:n,className:VO})})]})}var VV=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/ConnectionStatus.css.ts.vanilla.css","source":"LndseTRvODAgewogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgcGFkZGluZzogOHB4IDE2cHg7CiAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHZhcigtLWxwLWNvbG9yLWdyYXktNjAwKTs7Cn0KLndseTRvODEgewogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBnYXA6IDhweDsKICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtZW5kOwp9Ci53bHk0bzgyIHsKICBmb250LXNpemU6IDEycHg7CiAgY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktMzAwKTsKICBmb250LWZhbWlseTogdmFyKC0tbHAtZm9udC1mYW1pbHktbW9ub3NwYWNlKTsKfQoud2x5NG84MyB7CiAgZm9udC1zaXplOiAxMHB4OwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7CiAgZm9udC1mYW1pbHk6IHZhcigtLWxwLWZvbnQtZmFtaWx5LW1vbm9zcGFjZSk7Cn0="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),VW={};function VP(e){let{status:t,lastSyncTime:r}=e;return(0,E.jsxs)("div",{className:"wly4o80",children:[(0,E.jsxs)("div",{className:"wly4o81",children:[(0,E.jsx)(Ve,{status:t}),(0,E.jsx)("span",{className:"wly4o82",children:(()=>{switch(t){case"connected":return"Connected to dev server";case"disconnected":return"Disconnected from dev server";case"error":return"Error connecting to dev server"}})()})]}),r>0&&(0,E.jsxs)("span",{className:"wly4o83",children:["Last sync: ",new Date(r).toLocaleTimeString()]})]})}function VF(e){let{onClose:t,onSearch:r,searchTerm:n,searchIsExpanded:i,setSearchIsExpanded:o,mode:s,onMouseDown:a,onOpenConfig:l}=e,{state:c,refresh:u}=kk(),{connectionStatus:d}=c,p="dev-server"===s,h=!p||"connected"===d,{projectKey:f,loading:m}=ku();return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"_1ufksou0",children:[(0,E.jsx)(VL,{onMouseDown:a}),(0,E.jsx)("div",{className:VA,children:(f||h)&&(0,E.jsx)(oG,{mode:"wait",children:i?(0,E.jsx)(oI.div,{className:"_1ufksouf",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9,x:-20},transition:{duration:.15,ease:"easeIn"},children:(0,E.jsx)(VZ,{searchTerm:n,onSearch:r,setSearchIsExpanded:o})},"search"):f||m?(0,E.jsx)(oI.div,{className:"_1ufksoug",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.2},children:(0,E.jsx)(VR,{label:m?"Loading Project...":f})},"environment"):null})}),(0,E.jsx)(VM,{searchIsExpanded:i,setSearchIsExpanded:o,onClose:t,onRefresh:u,onOpenConfig:l,showSearchButton:h,showRefreshButton:p})]}),p&&(0,E.jsx)(VP,{status:d,lastSyncTime:c.lastSyncTime})]})}VW.styleTagTransform=kK(),VW.setAttributes=kB(),VW.insert=kX().bind(null,"head"),VW.domAPI=kF(),VW.insertStyleElement=kH(),kW()(VV.A,VW),VV.A&&VV.A.locals&&VV.A.locals;let VD=A.forwardRef((e,t)=>{let{activeTab:r,slideDirection:n,searchTerm:i,searchIsExpanded:o,onSearch:s,onClose:a,onToggleAutoCollapse:l,isAutoCollapseEnabled:c,onTabChange:u,setSearchIsExpanded:d,mode:p,flagOverridePlugin:h,eventInterceptionPlugin:f,baseUrl:m,defaultActiveTab:g,onHeaderMouseDown:b,reloadOnFlagChangeIsEnabled:v,onToggleReloadOnFlagChange:y,onOpenAuthModal:x}=e,{authenticated:w,authenticating:k}=w$(),{state:S}=kk(),{error:C}=S,_=function(e,t,r){if("dev-server"===e){let e=["flag-dev-server"];return r&&e.push("events"),e.push("settings"),e}let n=[];return t&&n.push("flag-sdk"),r&&n.push("events"),n.push("settings"),n}(p,!!h,!!f),T=C&&"dev-server"===p&&"error"===S.connectionStatus&&"settings"!==r;return!w||k?(0,E.jsx)(oI.div,{ref:t,className:kq,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:kA.container,tabIndex:-1,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,E.jsx)(Vx,{onClose:a,onLogin:x||a,onMouseDown:b})}):(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(S0,{restoreFocus:!0,children:(0,E.jsxs)(oI.div,{ref:t,className:kq,tabIndex:0,role:"group","aria-label":"LaunchDarkly developer toolbar content",initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},transition:kA.toolbarContent,children:[(0,E.jsx)(oI.div,{className:"f9csi0c",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:kA.tabsContainer,children:(0,E.jsx)(Cl,{defaultActiveTab:g,activeTab:r,onTabChange:u,children:wx.filter(e=>_.includes(e)).map(e=>{switch(e){case"flag-dev-server":case"flag-sdk":return(0,E.jsx)(Cc,{id:e,label:"Flags",icon:Vw},e);case"events":return(0,E.jsx)(Cc,{id:e,label:"Events",icon:Vk},e);case"settings":return(0,E.jsx)(Cc,{id:e,label:"Settings",icon:VS},e);default:return null}})})}),(0,E.jsxs)(oI.div,{className:"f9csi0a",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:kA.contentArea,children:[(0,E.jsx)(VF,{onSearch:s,searchTerm:i,onClose:a,searchIsExpanded:o,setSearchIsExpanded:d,mode:p,onMouseDown:b}),T&&(0,E.jsx)(VT,{error:C}),!T&&(0,E.jsx)(oI.div,{className:"f9csi0b",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.25,ease:kI,delay:.05},children:(0,E.jsx)(oG,{mode:"wait",children:r&&(0,E.jsx)(Vg,{activeTab:r,baseUrl:m,slideDirection:n,mode:p,flagOverridePlugin:h,eventInterceptionPlugin:f,reloadOnFlagChangeIsEnabled:v,onToggleReloadOnFlagChange:y,isAutoCollapseEnabled:c,onToggleAutoCollapse:l})})})]})]},"toolbar-content")})})});var VX=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Header/ToolbarHeader.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA51Ty3LDIAy85yt0bA9kHDfxtORjOhhkrJYCAziPdvrvHWO7rtPHTHqyEWJX2pXWj5vioXVVVcDbCkBR9EacOTQGT/sVgDCkLaOEL5GDRJsw9OGnLiZqzkw6m9AmDtELiazGdES0fYYXSpHVHO79CTalP0GRP/vV+2o9kW6uItXCZ7j+X3YhusBBB1H35y5iYBENysTBOouLGrbDoxcRNFlmsEkc2BisXVAYWBCKuviZmoKwkRI5y6EW8lkH11nFpDMuQLEuI6CIuGyGC5nogLmnr/XVZPUis8wpR1Kp5VCOjC2SbtN8zlQcDiLcMGb8QM10EGdWFsXtAvAuAzbOJhbpFTlsqgEkh44jclUU1wJvrzdoe+HxLkNcasgHhb0IaNNsw+zdH1Vuc5Wzxt7RVMGn49Vf5v57yuer0by7cmnedP46PsKYXyZmx1t3wPCLQD+1fj+1foWHO9442cXM4rpkyOIk8/csdqBItcFldr++0RlSl4yxFcodWdZ/mH6WYXKR43PmmiZiv3HD+n8A1tLI4HMEAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Vz={};function VB({onClose:e,onHeaderMouseDown:t}){let{position:r}=wP();return(0,E.jsxs)("div",{className:"_109ho660",children:[(0,E.jsxs)("div",{className:"_109ho661",onMouseDown:t,children:[(0,E.jsx)(kM,{className:"_109ho662"}),(0,E.jsx)("span",{className:"_109ho663",children:"LaunchDarkly"})]}),(0,E.jsx)("div",{className:"_109ho664",children:(0,E.jsx)("button",{className:"_109ho665",onClick:e,"aria-label":"Collapse toolbar",children:r.startsWith("top-")?(0,E.jsx)(Vy,{}):(0,E.jsx)(MJ,{})})})]})}function VU({className:e}){return(0,E.jsxs)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M10 1.75a.75.75 0 0 1 .75.75V5a.75.75 0 0 1-1.5 0V2.5a.75.75 0 0 1 .75-.75M4.138 4.136a.75.75 0 0 1 1.06 0L7.03 5.97a.75.75 0 1 1-1.06 1.06L4.137 5.197a.75.75 0 0 1 0-1.06m11.727 0a.75.75 0 0 1 0 1.061L14.031 7.03a.75.75 0 0 1-1.06-1.06l1.833-1.834a.75.75 0 0 1 1.06 0M1.75 10a.75.75 0 0 1 .75-.75H5a.75.75 0 1 1 0 1.5H2.5a.75.75 0 0 1-.75-.75m5.28 2.97a.75.75 0 0 1 0 1.06l-1.833 1.834a.75.75 0 1 1-1.06-1.061l1.833-1.834a.75.75 0 0 1 1.06 0","clip-rule":"evenodd"}),(0,E.jsx)("path",{d:"M10.238 9.288a.75.75 0 0 0-.949.949l2.5 7.5a.75.75 0 0 0 1.382.098l1.202-2.402 2.597 2.597a.75.75 0 1 0 1.06-1.06l-2.166-2.813 1.972-.986a.75.75 0 0 0-.098-1.383z"})]})}function VH({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M2.5 1.75a.75.75 0 0 1 .75.75v5.879c.736-.079 1.272-.273 1.688-.513.554-.32.952-.752 1.351-1.251l.218-.278c.324-.416.695-.893 1.138-1.262C8.24 4.578 8.982 4.25 10 4.25s1.76.328 2.355.825c.443.369.814.846 1.138 1.262q.112.146.218.278c.399.499.797.931 1.351 1.251.546.315 1.298.55 2.438.55a.75.75 0 0 1 0 1.5c-1.36 0-2.379-.284-3.187-.75-.8-.462-1.34-1.072-1.774-1.614l-.28-.355c-.312-.4-.558-.714-.864-.97-.342-.284-.747-.477-1.395-.477s-1.053.193-1.395.477c-.306.256-.552.57-.864.97l-.28.355c-.434.542-.974 1.152-1.774 1.613-.652.377-1.442.635-2.437.72v6.865h2.667v-3.417a.75.75 0 0 1 1.5 0v3.417H9.25v-5.917a.75.75 0 0 1 1.5 0v5.917h1.833v-3.417a.75.75 0 0 1 1.5 0v3.417h1.834V15a.75.75 0 0 1 1.5 0v1.75h.083a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75v-15a.75.75 0 0 1 .75-.75","clip-rule":"evenodd"})})}function VY({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{d:"M15.333 5.25a.083.083 0 0 0-.083-.083h-10a.08.08 0 0 0-.059.024.08.08 0 0 0-.024.059v10q0 .034.024.059a.08.08 0 0 0 .059.024h10a.083.083 0 0 0 .083-.083zM9.917 9.417a.92.92 0 0 0-.826-.912L9 8.5a.917.917 0 0 0-.917.917v.916h1.834zm2.5 3.333v-5a.75.75 0 0 1 1.5 0v5a.75.75 0 0 1-1.5 0m-1 0a.75.75 0 0 1-1.5 0v-.917H8.083v.917a.75.75 0 0 1-1.5 0V9.417A2.42 2.42 0 0 1 9 7l.24.012a2.42 2.42 0 0 1 2.177 2.405zm5.416-4.917h.917a.75.75 0 0 1 0 1.5h-.917v1.834h.917a.75.75 0 0 1 0 1.5h-.917v2.583a1.58 1.58 0 0 1-1.583 1.583h-2.583v.917a.75.75 0 0 1-1.5 0v-.917H9.333v.917a.75.75 0 0 1-1.5 0v-.917H5.25a1.58 1.58 0 0 1-1.583-1.583v-2.583H2.75a.75.75 0 0 1 0-1.5h.917V9.333H2.75a.75.75 0 0 1 0-1.5h.917V5.25A1.58 1.58 0 0 1 5.25 3.667h2.583V2.75a.75.75 0 0 1 1.5 0v.917h1.834V2.75a.75.75 0 0 1 1.5 0v.917h2.583a1.58 1.58 0 0 1 1.583 1.583z"})})}function VK({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M6.75 2.5a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-.083v4.118l3.277 9.01a1.334 1.334 0 0 1-.974 1.86 1 1 0 0 1-.136.012H5.417a1 1 0 0 1-.135-.012 1.334 1.334 0 0 1-.975-1.86l3.276-9.01V3.25H7.5a.75.75 0 0 1-.75-.75m2.334.75V7.5a.8.8 0 0 1-.046.256l-1.567 4.311c.655-.099 1.467-.291 2.194-.655a9 9 0 0 1 2.336-.795h.001l-1.04-2.86a.8.8 0 0 1-.045-.257V3.25z","clip-rule":"evenodd"})})}Vz.styleTagTransform=kK(),Vz.setAttributes=kB(),Vz.insert=kX().bind(null,"head"),Vz.domAPI=kF(),Vz.insertStyleElement=kH(),kW()(VX.A,Vz),VX.A&&VX.A.locals&&VX.A.locals;var VJ=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Tooltip.module.css.ts.vanilla.css","source":"Lmw1amQ5bTAgewogIHBvc2l0aW9uOiByZWxhdGl2ZTsKICBkaXNwbGF5OiBpbmxpbmUtZmxleDsKICBmbGV4LXNocmluazogMDsKfQoubDVqZDltMSB7CiAgcG9zaXRpb246IGZpeGVkOwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktNzAwKTsKICBjb2xvcjogd2hpdGU7CiAgcGFkZGluZzogNnB4IDEycHg7CiAgYm9yZGVyLXJhZGl1czogNnB4OwogIGZvbnQtc2l6ZTogMTJweDsKICBmb250LXdlaWdodDogNTAwOwogIHdoaXRlLXNwYWNlOiBub3dyYXA7CiAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgei1pbmRleDogMjE0NzQwMDE5MDsKICBib3gtc2hhZG93OiAwIDJweCA4cHggcmdiYSgwLCAwLCAwLCAwLjIpOwogIHRyYW5zZm9ybS1vcmlnaW46IGNlbnRlciBjZW50ZXI7Cn0KLmw1amQ5bTE6OmFmdGVyIHsKICBjb250ZW50OiAiIjsKICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgdG9wOiAxMDAlOwogIGxlZnQ6IDUwJTsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTUwJSk7CiAgd2lkdGg6IDA7CiAgaGVpZ2h0OiAwOwogIGJvcmRlci1sZWZ0OiA2cHggc29saWQgdHJhbnNwYXJlbnQ7CiAgYm9yZGVyLXJpZ2h0OiA2cHggc29saWQgdHJhbnNwYXJlbnQ7CiAgYm9yZGVyLXRvcDogNnB4IHNvbGlkIHZhcigtLWxwLWNvbG9yLWdyYXktNzAwKTsKfQ=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),VQ={};function Vq({content:e,children:t}){let[r,n]=A.useState(!1),[i,o]=A.useState(!1),[s,a]=A.useState({top:0,left:0}),l=A.useRef(null),c=A.useRef(null),u=A.useCallback(()=>{if(l.current&&c.current){let e=l.current.getBoundingClientRect(),t=c.current.getBoundingClientRect();a({top:e.top-e.height/2-16,left:e.left+e.width/2-t.width/2-4}),o(!0)}},[]);return(0,A.useEffect)(()=>{r&&!i&&requestAnimationFrame(()=>{u()})},[r,i,u]),(0,E.jsxs)("div",{ref:l,className:"l5jd9m0",onMouseEnter:()=>{n(!0),o(!1)},onMouseLeave:()=>{n(!1),o(!1)},children:[t,(0,E.jsx)(oG,{children:r&&(0,E.jsx)(oI.div,{ref:c,className:"l5jd9m1",style:{top:`${s.top}px`,left:`${s.left}px`,visibility:i?"visible":"hidden"},initial:{opacity:0,scale:.9},animate:{opacity:+!!i,scale:i?1:.9},exit:{opacity:0,scale:.9},transition:{duration:.15},children:e})})]})}VQ.styleTagTransform=kK(),VQ.setAttributes=kB(),VQ.insert=kX().bind(null,"head"),VQ.domAPI=kF(),VQ.insertStyleElement=kH(),kW()(VJ.A,VQ),VJ.A&&VJ.A.locals&&VJ.A.locals;var V$=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/IconBar/IconBar.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA7VSy5LTMBC85yvmCAelHK8XgviasTS2B7QaIcnOpij+nbKcd20IULVHST3d061eT5sf3PgKfq4ALKfgcK+hc/T6dQWAjnuvONNL0mDIZ4rz9bcxZe72yojP5LOGFNCQwiijtzMgoLXsew2fQuFpJVqKqpWc5UXDJrxCEscWJowflHJBGXESVR9xrz5X1cd5qMegYTsT/FqtlzU3Zc0Wzfe+aC1jGnJEnwJG8vksp8GLp/l8QL0l1hzEzBjTjAnCR5cnE9srExEtj+l0+9+ZnZ92bPOgoWkWxoG4H/L5XMxxZvEa0Dmo1nUCwlSsBTk+RXKYeaLLuPQgE8U7ob0Vx5djHPchdYFcaHRixlQ0ZMyOPR2Dv8WoiRO3jq6x9b0ypAGt7FT5DzSzNVVoyoKHcSVdlyhrUPVVUep39fy0OAhoOO81VOvmskJeskLnZEf2cuaPf3FT4IeFPdE2hfDQoPqmQcv5hH3+u1BaN9KDUArkZpPnfylbIdg+1nhaNH4DgeodNqYEAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),V0={};V0.styleTagTransform=kK(),V0.setAttributes=kB(),V0.insert=kX().bind(null,"head"),V0.domAPI=kF(),V0.insertStyleElement=kH(),kW()(V$.A,V0),V$.A&&V$.A.locals&&V$.A.locals;let V1=wu("enable-ai-icon",!1),V2=wu("enable-interactive-icon",!1),V5=wu("enable-optimize-icon",!1),V3=wu("toolbar-enable-session-replay",!1),V9=wu("use-new-toolbar-design",!1);function V4(e){if(!e)return!1;if(e.closest('[data-ld-selection-bar="true"]'))return!0;let t=document.getElementById(MK.D);if(t&&(e===t||t.contains(e)))return!0;let r=e;for(;r;){if(r.id===MK.D)return!0;let e=r.getRootNode();r=e instanceof ShadowRoot?e.host:r.parentElement}return!1}function V6(e){let t=e.tagName.toLowerCase();if(e.id)t+=`#${e.id}`;else if(e.classList.length>0){let r=Array.from(e.classList).slice(0,2);t+=`.${r.join(".")}`}return t}let V7=["aria-label","aria-describedby","aria-labelledby","role","type","name","href","src","alt","title","placeholder","value","for","action","method"];function V8(e){if(!e||!(e instanceof Element))throw Error("Invalid element provided to getElementRect. Element must be a valid DOM Element instance.");return e.getBoundingClientRect()}let We=(0,A.createContext)(void 0);function Wt({children:e,onSelectionStart:t,onSelectionEnd:r}){let[n,i]=(0,A.useState)(!1),[o,s]=(0,A.useState)(null),[a,l]=(0,A.useState)(null),[c,u]=(0,A.useState)(null),d=(0,A.useCallback)(()=>{i(!0),s(null),l(null),u(null),t?.()},[t]),p=(0,A.useCallback)(()=>{i(!1),u(null),r?.()},[r]),h=(0,A.useCallback)(e=>{s(e),l(function(e){let t,r,n;if(!e||!(e instanceof Element))throw Error("Invalid element provided to getElementInfo. Element must be a valid DOM Element instance.");let i=e.getBoundingClientRect(),o=null,s=e.textContent?.trim();return s&&s.length>0&&(o=(o=s.length>80?s.substring(0,80)+"...":s).replace(/\s+/g," ")),{tagName:e.tagName.toLowerCase(),id:e.id||null,classes:Array.from(e.classList),textContent:o,selector:function(e){let t=[],r=e;for(;r&&r!==document.body&&r!==document.documentElement;){let e=r.tagName.toLowerCase();if(r.id){e+=`#${r.id}`,t.unshift(e);break}let n=Array.from(r.classList).slice(0,2);n.length>0&&(e+=`.${n.join(".")}`);let i=r.parentElement;if(i){let t=Array.from(i.children).filter(e=>e.tagName===r.tagName);if(t.length>1){let n=t.indexOf(r)+1;e+=`:nth-of-type(${n})`}}if(t.unshift(e),r=r.parentElement,t.length>=4)break}return t.join(" > ")}(e),primaryIdentifier:(t=e.tagName.toLowerCase(),r=`<${t}>`,e.id&&(r+=`#${e.id}`),(n=Array.from(e.classList).slice(0,3)).length>0&&(r+=`.${n.join(".")}`),r),dataAttributes:function(e){let t=[];for(let r of Array.from(e.attributes))r.name.startsWith("data-")&&!r.name.startsWith("data-ld-")&&t.push({name:r.name,value:r.value});return t.sort((e,t)=>{let r=["data-testid","data-test-id","data-cy","data-component"],n=r.indexOf(e.name),i=r.indexOf(t.name);return -1!==n&&-1!==i?n-i:-1!==n?-1:-1!==i?1:e.name.localeCompare(t.name)})}(e),htmlAttributes:function(e){let t=[];for(let r of V7){let n=e.getAttribute(r);n&&t.push({name:r,value:n})}return t}(e),dimensions:{width:Math.round(i.width),height:Math.round(i.height)}}}(e)),i(!1),u(null),r?.()},[r]),f=(0,A.useCallback)(()=>{s(null),l(null),i(!1),u(null)},[]),m=(0,A.useMemo)(()=>({isSelecting:n,selectedElement:o,selectedElementInfo:a,hoveredElement:c,startSelection:d,exitSelection:p,selectElement:h,clearSelection:f,setHoveredElement:u}),[n,o,a,c,d,p,h,f]);return(0,E.jsx)(We.Provider,{value:m,children:e})}function Wr(){let e=(0,A.useContext)(We);if(void 0===e)throw Error("useElementSelection must be used within an ElementSelectionProvider");return e}function Wn({defaultActiveTab:e}){let t=V2(),r=V1(),n=V5(),{activeTab:i,setActiveTab:o}=wz(),{startSelection:s}=Wr(),[a,l]=(0,A.useState)(null);(0,A.useEffect)(()=>{i||o(e)},[e,i,o]);let c=[{id:"interactive",Icon:VU,label:"Interactive Mode",tooltip:t?"Interactive Mode":"Interactive Mode (Coming Soon)",disabled:!t},{id:"flags",Icon:Vw,label:" Flags",tooltip:"Feature Flags"},{id:"optimize",Icon:VK,label:"Optimize",tooltip:n?"Optimization":"Optimization (Coming Soon)",disabled:!n},{id:"ai",Icon:VY,label:"AI",tooltip:r?"AI":"AI (Coming Soon)",disabled:!r},{id:"monitoring",Icon:VH,label:"Analytics",tooltip:"Monitoring"},{id:"settings",Icon:VS,label:"Settings",tooltip:"Settings"}];return(0,E.jsx)("div",{className:"v1qi4n0",children:c.map(({id:e,Icon:t,label:r,tooltip:n,disabled:c})=>{let u=(0,A.useMemo)(()=>({id:e,Icon:t,label:r,tooltip:n,disabled:c}),[e,t,r,n,c]),d="interactive"===e&&"interactive"===i&&"interactive"===a;return(0,E.jsx)(Vq,{content:"interactive"!==u.id||"interactive"!==i||u.disabled?u.tooltip:"Select Element",children:(0,E.jsx)("button",{onClick:()=>{!c&&("interactive"===e?("interactive"===i||o(e),s()):o(e))},onMouseEnter:()=>l(e),onMouseLeave:()=>l(null),className:`v1qi4n1 ${e===i?"v1qi4n2":""} ${c?"v1qi4n3":""} ${d?"v1qi4n5":""}`,"aria-label":r,disabled:c,children:(0,E.jsx)(t,{className:"v1qi4n4"})})},e)})})}let Wi=(0,A.createContext)(void 0);function Wo({children:e}){let[t,r]=(0,A.useState)("flags"),n=(0,A.useMemo)(()=>({activeSubtab:t,setActiveSubtab:r}),[t]);return(0,E.jsx)(Wi.Provider,{value:n,children:e})}function Ws(){let e=(0,A.useContext)(Wi);if(!e)throw Error("useActiveSubtabContext must be used within ActiveSubtabProvider");return e}let Wa={flags:"",contexts:"",events:"",general:"",workflows:""},Wl=(0,A.createContext)({searchTerms:Wa,setSearchTerm:()=>{},clearSearchTerm:()=>{},clearAllSearchTerms:()=>{}});function Wc({children:e}){let[t,r]=(0,A.useState)(Wa),n=(0,A.useCallback)((e,t)=>{r(r=>({...r,[e]:t}))},[]),i=(0,A.useCallback)(e=>{r(t=>({...t,[e]:""}))},[]),o=(0,A.useCallback)(()=>{r(Wa)},[]);return(0,E.jsx)(Wl.Provider,{value:{searchTerms:t,setSearchTerm:n,clearSearchTerm:i,clearAllSearchTerms:o},children:e})}function Wu(){let e=(0,A.useContext)(Wl);if(!e)throw Error("useTabSearchContext must be used within TabSearchProvider");return e}function Wd({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M8.333 3.25a.083.083 0 0 0-.083.083v1.75h3.5v-1.75a.083.083 0 0 0-.084-.083zm4.917 1.833v-1.75a1.583 1.583 0 0 0-1.584-1.583H8.333A1.583 1.583 0 0 0 6.75 3.333v1.75H3.333a.75.75 0 1 0 0 1.5h.143l.774 9.284a2.417 2.417 0 0 0 2.416 2.383h6.667a2.417 2.417 0 0 0 2.416-2.383l.774-9.284h.143a.75.75 0 1 0 0-1.5zm-8.269 1.5.766 9.188q.003.03.003.062a.917.917 0 0 0 .916.917h6.667a.917.917 0 0 0 .917-.917l.002-.062.766-9.188zm3.352 1.834a.75.75 0 0 1 .75.75v5a.75.75 0 1 1-1.5 0v-5a.75.75 0 0 1 .75-.75m3.333 0a.75.75 0 0 1 .75.75v5a.75.75 0 1 1-1.5 0v-5a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})})}var Wp=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/SearchSection.module.css.ts.vanilla.css","source":"Ll8xZnFueTJqMCB7CiAgZmxleDogMTsKICBtaW4td2lkdGg6IDIwMHB4OwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7Cn0KLl8xZnFueTJqMSB7CiAgaGVpZ2h0OiAzMnB4Owp9Ci5fMWZxbnkyajIgewogIHBhZGRpbmctcmlnaHQ6IDBweCAhaW1wb3J0YW50OwogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBnYXA6IDRweDsKfQ=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Wh={};function Wf(e){let{searchTerm:t,onSearch:r,setSearchIsExpanded:n}=e;return(0,E.jsx)("div",{className:"_1fqny2j0",onBlur:()=>{t.trim()||n(!1)},children:(0,E.jsx)(IS,{"aria-label":"Search","data-theme":"dark",className:"_1fqny2j1",children:(0,E.jsxs)(Iy,{className:"_1fqny2j2",children:[(0,E.jsx)(Ig,{autoFocus:!0,placeholder:"Search",value:t,onChange:e=>{r(e.target.value)}}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(VN,{}),label:"Clear",onClick:()=>{t.trim()?r(""):n(!1)},size:"medium"})]})})})}Wh.styleTagTransform=kK(),Wh.setAttributes=kB(),Wh.insert=kX().bind(null,"head"),Wh.domAPI=kF(),Wh.insertStyleElement=kH(),kW()(Wp.A,Wh),Wp.A&&Wp.A.locals&&Wp.A.locals;let Wm={flags:{subtab:"flags",options:[{id:"all",label:"All",description:"Show all flags"},{id:"overrides",label:"Overrides",description:"Show overridden flags"},{id:"starred",label:"Starred",description:"Show starred flags"}],defaultSelected:["all"],allowMultiple:!0},events:{subtab:"events",options:[{id:"all",label:"All",description:"Show all events"},{id:"feature",label:"Feature",description:"Show feature flag evaluations"},{id:"custom",label:"Custom",description:"Show custom events"},{id:"identify",label:"Identify",description:"Show identify events"}],defaultSelected:["all"],allowMultiple:!0}},Wg=(0,A.createContext)(null);function Wb({children:e}){let[t,r]=(0,A.useState)(()=>{let e={};return Object.entries(Wm).forEach(([t,r])=>{e[t]={activeFilters:new Set(r.defaultSelected),config:r}}),e}),[n,i]=(0,A.useState)(!1),o=(0,A.useCallback)(e=>t[e]?.activeFilters||new Set(["all"]),[t]),s=(0,A.useCallback)(e=>Wm[e]||null,[]),a=(0,A.useCallback)((e,t)=>{r(r=>{let n=Wm[e];if(!n)return r;let i=r[e]||{activeFilters:new Set(n.defaultSelected),config:n},o=new Set(i.activeFilters);return"all"===t?{...r,[e]:{...i,activeFilters:new Set(["all"])}}:(o.has("all")&&o.delete("all"),o.has(t)?(o.delete(t),0===o.size&&o.add("all")):(n.allowMultiple||o.clear(),o.add(t)),{...r,[e]:{...i,activeFilters:o}})})},[]),l=(0,A.useCallback)((e,t)=>{let n=Wm[e];n&&r(r=>({...r,[e]:{config:n,activeFilters:new Set(t.length>0?t:n.defaultSelected)}}))},[]),c=(0,A.useCallback)(e=>{let t=Wm[e];t&&r(r=>({...r,[e]:{config:t,activeFilters:new Set(t.defaultSelected)}}))},[]),u=(0,A.useCallback)(e=>void 0!==Wm[e],[]),d=(0,A.useCallback)(e=>{let r=Wm[e];if(!r)return!1;let n=t[e]?.activeFilters||new Set(r.defaultSelected),i=new Set(r.defaultSelected);if(n.size!==i.size)return!0;for(let e of n)if(!i.has(e))return!0;return!1},[t]),p=(0,A.useCallback)(()=>i(!0),[]),h=(0,A.useCallback)(()=>i(!1),[]),f=(0,A.useCallback)(()=>i(e=>!e),[]),m=(0,A.useMemo)(()=>({getActiveFilters:o,getFilterConfig:s,toggleFilter:a,setFilters:l,resetFilters:c,hasFilters:u,hasActiveNonDefaultFilters:d,isFilterOverlayOpen:n,openFilterOverlay:p,closeFilterOverlay:h,toggleFilterOverlay:f}),[o,s,a,l,c,u,d,n,p,h,f]);return(0,E.jsx)(Wg.Provider,{value:m,children:e})}function Wv(){let e=(0,A.useContext)(Wg);if(!e)throw Error("useFilters must be used within a FiltersProvider");return e}function Wy(e){let{getActiveFilters:t,getFilterConfig:r,toggleFilter:n,resetFilters:i,hasFilters:o,hasActiveNonDefaultFilters:s}=Wv();return(0,A.useMemo)(()=>({activeFilters:t(e),config:r(e),toggle:t=>n(e,t),reset:()=>i(e),hasFilters:o(e),hasActiveNonDefaultFilters:s(e)}),[e,t,r,n,i,o,s])}function Wx({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M9.958 4.958a2.417 2.417 0 0 1 4.006.959h2.702a.75.75 0 1 1 0 1.5h-2.702a2.417 2.417 0 0 1-4.595 0H3.333a.75.75 0 1 1 0-1.5h6.036a2.4 2.4 0 0 1 .588-.96m1.708.792a.916.916 0 1 0 0 1.833.916.916 0 0 0 0-1.833m-6.303 5.874a2.417 2.417 0 0 1 4.006.96h7.297a.75.75 0 1 1 0 1.5H9.37a2.416 2.416 0 0 1-4.595 0H3.333a.75.75 0 0 1 0-1.5h1.441c.117-.359.317-.688.589-.96m1.709.793a.916.916 0 1 0 0 1.832.916.916 0 0 0 0-1.832","clip-rule":"evenodd"})})}var Ww=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/FilterOverlay/FilterOverlay.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA61W246bMBB9z1fMS6WtVEdAEjbxfkxl8EDcdWxkm4Tdqv9eYUwI5LJ0txIP+DLjOefMjL38GZ82eV5E8HsBUGkrnNCKAsuslrXDlwWA0xWFOIq+tQMjyr2jELX/B2ZKoYhf31aNnxKKnAR3ewpJEnVzGctfS6NrxUmupTYUjsw8ESKrbkxKw97ILoq++93acDQU4qoBq6XgN3c/j3YTw7io7TmKTDfE7hnXJwoRrKsG4rRqwJQZe4p+QPiWK+/inQjFsfEQ27E+oilka7oXnKN6WfxZLANNsaeJC1tJ9kahkOjPY1KUigiHB0shR+XQtNO/autE8UZyrRwqR8FWLEeSoTth6xegYpwLVVKIkxDkBahMO6cP85gYQkx8iIVWjljxjhTiVefVT52w0y/tsD7QIwkMdyJ7xYdDVleHJN0hMxwO6UBBaYWXovfjMy+tdkHUMNel2/OIqV7+dQiiNraNotKil8IZps65LSVEy3hjAZnFESy6b9X34OZl7XbC/opyYVkmkXsnDyw3gY4+WKUdYVLqE/JLh+uuMHs+PBfD6uaf8rFk1aDUkHpRm3rJTULTTxEKEFpA3zQuJfeGFTOo3C3lHTYtD6JUFCQWboT2y/JsaKHz2pKjsCKT6D3p2kmhkEJyr866VkI8dpY7cUTi3Xj9gjnRRWHRUSDJWKL0C+E+e9uezFAH+1DC8fZRDfS83gU1SsLr8CYyfbrlDUutJbF7I9RruD/mFeW2I7BD+YC89V0s93cPp+xGVKcTqtOxpux22XmEXBjMO0y5lvVBnStvkhjZrEa9mdmoB7/5ld/4w948ZYNPngOFaNq2BCCUT/JodHHudpe2OLE1KFlbM5d7io+eGyTEHJ4bZH31vLit0d0XwaykSEMKXZIXfer2jIOn/1A350Yd9bXt+80Z98viz1+3sLW9xgkAAA=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Wk={};Wk.styleTagTransform=kK(),Wk.setAttributes=kB(),Wk.insert=kX().bind(null,"head"),Wk.domAPI=kF(),Wk.insertStyleElement=kH(),kW()(Ww.A,Wk),Ww.A&&Ww.A.locals&&Ww.A.locals;let WS=(0,A.memo)(function({option:e,isActive:t,onToggle:r}){return(0,E.jsxs)("button",{className:`_1w5ccf5 ${t?"_1w5ccf6":""}`,onClick:r,role:"checkbox","aria-checked":t,"aria-label":e.description||e.label,children:[(0,E.jsx)("div",{className:`_1w5ccf7 ${t?"_1w5ccf8":""}`,children:t&&(0,E.jsx)(Eu,{className:"_1w5ccf9"})}),(0,E.jsxs)("div",{className:"_1w5ccfa",children:[(0,E.jsx)("span",{className:"_1w5ccfb",children:e.label}),e.description&&(0,E.jsx)("span",{className:"_1w5ccfc",children:e.description})]})]})}),WC=(0,A.memo)(function({subtab:e,onClose:t}){let r=(0,A.useRef)(null),{getActiveFilters:n,getFilterConfig:i,toggleFilter:o,resetFilters:s,hasActiveNonDefaultFilters:a}=Wv(),l=i(e),c=n(e),u=a(e),d=(0,A.useCallback)(t=>{o(e,t)},[e,o]),p=(0,A.useCallback)(()=>{s(e)},[e,s]);(0,A.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t]);let h=(0,A.useCallback)(()=>{if(r.current){let e=r.current.querySelector("button");e?.focus()}},[]);return l?(0,E.jsxs)(oI.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.04,ease:"easeOut"},onAnimationComplete:e=>{"animate"===e&&h()},style:{position:"absolute",top:0,right:0,left:0,bottom:0,pointerEvents:"none"},children:[(0,E.jsx)("div",{className:"_1w5ccfd",onClick:t,"aria-hidden":"true",style:{pointerEvents:"auto"}}),(0,E.jsxs)("div",{ref:r,className:"_1w5ccf0",role:"dialog","aria-label":"Filter options",style:{pointerEvents:"auto"},children:[(0,E.jsxs)("div",{className:"_1w5ccf1",children:[(0,E.jsx)("h3",{className:"_1w5ccf2",children:"Filters"}),(0,E.jsx)("button",{className:"_1w5ccf3",onClick:p,disabled:!u,"aria-label":"Reset filters to default",children:"Reset"})]}),(0,E.jsx)("div",{className:"_1w5ccf4",role:"group","aria-label":"Available filters",children:l.options.map(e=>(0,E.jsx)(WS,{option:e,isActive:c.has(e.id),onToggle:()=>d(e.id)},e.id))})]})]}):null});function W_({className:e}){let{activeSubtab:t}=Ws(),{hasFilters:r,hasActiveNonDefaultFilters:n,getActiveFilters:i,isFilterOverlayOpen:o,toggleFilterOverlay:s,closeFilterOverlay:a}=Wv();if(!r(t))return null;let l=n(t),c=i(t),u=c.has("all")?0:c.size;return(0,E.jsxs)("div",{className:"_1w5ccfe",children:[(0,E.jsx)(Eg,{icon:(0,E.jsx)(Wx,{}),label:"Filter",onClick:s,className:e,"aria-expanded":o,"aria-haspopup":"dialog"}),l&&u>0&&(0,E.jsx)("div",{className:"_1w5ccff","aria-label":`${u} filters active`,children:u}),(0,E.jsx)(oG,{children:o&&(0,E.jsx)(WC,{subtab:t,onClose:a},"filter-overlay")})]})}var WT=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/ContentActions.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA9WSwU7DMAyG73sKH+GQqZQxRHgY5DVuawhxlKQdFdq7o6UFOjZxADSJW63a3//H/pcPN264w76A1wWA4egtDhpqSy/3C4AGvYaVz99ouXGKEz1HDRW5ROF+sVssJ8LVacLJKYDHLiauB1WJS+TS/NeWTWo1XJejbEvctOmz9mgMu+bD1garpyZI54yqxErQkAK66DGQS7lBgqGgwYmjz1oFNNxFDesRU3Uh7oe98LuRCddjuFDK+hGvmoCDWhXF5b4lS3FicRrQWiiWZQTCSAeb0a30FLSTdKENR9xYMpd5XcfmT6ndTmrftJS5Za6JVeKefi66PiK+UzJEPFacBg3FcjXfn5Ok0FrZkjmcrqXqouo58sbSiOiSZUcaSv8CUSybr0Zii0a2Kl9kfI/KmLyNaVxJXUdKmTJXLM+dx/V/yWM55vHPAhjITAbmGuO9fhG48uyRuc4a073L4vDeY717A33ChlMxBQAA"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),WI={};WI.styleTagTransform=kK(),WI.setAttributes=kB(),WI.insert=kX().bind(null,"head"),WI.domAPI=kF(),WI.insertStyleElement=kH(),kW()(WT.A,WI),WT.A&&WT.A.locals&&WT.A.locals;var WE="_5ny9av3";function WA(){let{activeTab:e}=wz(),{activeSubtab:t}=Ws(),{eventInterceptionPlugin:r}=w4(),{searchTerms:n}=Wu(),i=(0,A.useMemo)(()=>n[t]||"",[n,t]),{events:o}=MR(r,i),{setSearchTerm:s}=Wu(),[a,l]=(0,A.useState)(!1);(0,A.useEffect)(()=>{i.trim()?l(!0):l(!1)},[t,i]);let{selectedElement:c,clearSelection:u}=Wr(),{mode:d}=w2(),{refresh:p,state:h}=kk(),{refreshFlags:f,loading:m}=kg(),g="flags"===e&&"flags"===t||"monitoring"===e&&"events"===t,b="monitoring"===e&&"events"===t,v="dev-server"===d&&"flags"===e&&"flags"===t,y="flags"===e&&"contexts"===t,{setIsAddFormOpen:x}=ks(),w="sdk"===d&&"flags"===e&&"flags"===t,k=(0,A.useCallback)(()=>{r&&r.clearEvents()},[r]),S=(0,A.useCallback)(()=>{p()},[p]),C=(0,A.useCallback)(()=>{f()},[f]),_=(0,A.useCallback)(e=>{t&&s(t,e)},[t,s]);return(0,E.jsxs)("div",{className:"_5ny9av0",children:["interactive"===e&&c&&(0,E.jsx)("button",{className:"_5ny9av2",onClick:u,"aria-label":"Clear selection",title:"Clear selection",children:(0,E.jsx)(VN,{className:WE})}),"interactive"!==e&&(0,E.jsxs)(E.Fragment,{children:[a&&(0,E.jsx)(Wf,{searchTerm:i,onSearch:_,setSearchIsExpanded:l},t),!a&&(0,E.jsx)(Eg,{icon:(0,E.jsx)(VG,{}),label:"Search",onClick:()=>l(!0)})]}),y&&x&&(0,E.jsx)(Eg,{icon:(0,E.jsx)(MV,{}),label:"Add context",onClick:()=>x(!0)}),g&&(0,E.jsx)(W_,{}),v&&(0,E.jsx)(Eg,{icon:(0,E.jsx)(Vk,{}),label:"Sync flags",onClick:S,disabled:h.isLoading}),w&&(0,E.jsx)(Eg,{icon:(0,E.jsx)(Vk,{}),label:"Refresh flags",onClick:C,disabled:m}),b&&(0,E.jsx)("button",{className:"_5ny9av1",onClick:k,disabled:0===o.length,"aria-label":"Clear all events",title:`Clear all events (${o.length})`,children:(0,E.jsx)(Wd,{className:WE})})]})}var WO=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/SubtabDropdown.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA71V227iMBB9z1fMS6WirZETQqHu15hkknhxbct2Au2q/76yEyDZAgWtdqW8xD5zOzNzPN+9dbTjFH4lAEY74YVWDCxK7kWHrwlAKZyR/J2BUFIoJBupi+1r8pnMe9s02h5RlcR9MONS1IoIj2+OQYHKow3HNTcM1iZCNrzY1la3qiSFltoy6Lh9JESa/p/Ulr+TlyWdRbS2JVoGqdmD01KUZ9ErOkYTy0vROgbPfcQrYbLBsNLKEyc+kEGa91bxaIeibjyDJaXhzPCyFKqOtUCaDe5b64J/o8WhXm+5OrDKpQQ6zxwgd5HaN6HITpS+YZBmNPg4scoa3aGN3N7G03pa+RXkc0SOQlW6aF0MpVsfmsxAaYVfMaQTTmwkTrHZpY64hpd6RyIZvAgDRaKbmOdgTnRVOfTRyyhg9j8qX8Qghw4MM9IMjT78h4EmrrFCbRnQkXUercM1gzT2GveexLlnILHy4WzXCI/EGV5EUneWm5GL5V2787N1XlTvpNDKo/Ljq4tJPn9f4hG7+kMF+MZp2fo4ql4bBgWXxWNK6QP8gNzsI+mh0BhyOs6UPty+4tMG/t2Kb/R+mDsGCQANiYY7IMGrrTf8kT7B8M0Xs6cICiOcXwJlsyR4/iBClaHZWZqvckrTXgnCmlYyhGtEWaKK6tALAMEOlXcMeOv1iOj1tO2Dop7aNJB31JiUjkTmK6VRYwy3qPyYxX6Fr4re4kbRy/tSzw34TZqXLk+id54bgNahJQ4lFv6L/KzvVsPV8GpcgaRTMVhflsH7go489qJ3T9rTnF7+RcXnHrTP39aSaGAJCAAA"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),WL={};function WR({subtabs:e,activeSubtab:t,onSelectSubtab:r}){let[n,i]=(0,A.useState)(!1),o=(0,A.useRef)(null),s=e.find(e=>e.id===t),a=s?.label||"Select";return(0,A.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&i(!1)};if(n)return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[n]),(0,E.jsxs)("div",{className:"wmv0va0",ref:o,children:[(0,E.jsxs)("button",{className:`wmv0va1 ${n?"wmv0va2":""}`,onClick:e=>{e.stopPropagation(),i(e=>!e)},onKeyDown:e=>{"Enter"===e.key||" "===e.key?(e.preventDefault(),i(!n)):"Escape"===e.key&&i(!1)},"aria-expanded":n,"aria-haspopup":"true",children:[(0,E.jsx)("span",{className:"wmv0va4",children:a}),(0,E.jsx)(oI.span,{className:"wmv0va5",animate:{rotate:180*!!n},transition:{duration:.2},children:(0,E.jsx)(MJ,{className:"wmv0va6"})})]}),(0,E.jsx)(oG,{children:n&&(0,E.jsx)(oI.div,{className:"wmv0va7",initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.15},onClick:e=>e.stopPropagation(),children:e.map(e=>(0,E.jsx)("button",{className:`wmv0va8 ${e.id===t?"wmv0va9":""}`,onClick:t=>{var n;n=e.id,t.stopPropagation(),r(n),i(!1)},role:"menuitem",type:"button",children:e.label},e.id))})})]})}WL.styleTagTransform=kK(),WL.setAttributes=kB(),WL.insert=kX().bind(null,"head"),WL.domAPI=kF(),WL.insertStyleElement=kH(),kW()(WO.A,WL),WO.A&&WO.A.locals&&WO.A.locals;let WN={flags:[{id:"flags",label:"Flags"},{id:"contexts",label:"Contexts"}],monitoring:[{id:"events",label:"Events"}],settings:[{id:"general",label:"General"}],interactive:[{id:"workflows",label:"Workflows"}]};var WZ=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/TabBar.module.css.ts.vanilla.css","source":"LnI2amZxZzAgewogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgcGFkZGluZzogOHB4IDEycHg7CiAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHZhcigtLWxwLWNvbG9yLWdyYXktNjAwKTs7CiAgbWluLWhlaWdodDogNDhweDsKICBnYXA6IDhweDsKfQoucjZqZnFnMSB7CiAgZGlzcGxheTogZmxleDsKICBnYXA6IDI0cHg7CiAgZmxleDogMTsKfQoucjZqZnFnMiB7CiAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7CiAgYm9yZGVyOiBub25lOwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7CiAgZm9udC1zaXplOiAxNHB4OwogIGZvbnQtd2VpZ2h0OiA1MDA7CiAgY3Vyc29yOiBwb2ludGVyOwogIHBhZGRpbmc6IDEycHggMDsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgdHJhbnNpdGlvbjogY29sb3IgMC4ycyBlYXNlOwp9Ci5yNmpmcWcyOmhvdmVyIHsKICBjb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS0yMDApOwp9Ci5yNmpmcWcyOmZvY3VzIHsKICBvdXRsaW5lOiBub25lOwp9Ci5yNmpmcWcyOmZvY3VzLXZpc2libGUgewogIG91dGxpbmU6IDJweCBzb2xpZCB2YXIoLS1scC1jb2xvci1zaGFkb3ctaW50ZXJhY3RpdmUtZm9jdXMpOwogIG91dGxpbmUtb2Zmc2V0OiAycHg7Cn0KLnI2amZxZzMgewogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTEwMCk7Cn0KLnI2amZxZzM6OmFmdGVyIHsKICBjb250ZW50OiAiIjsKICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgYm90dG9tOiAwOwogIGxlZnQ6IDA7CiAgcmlnaHQ6IDA7CiAgaGVpZ2h0OiAycHg7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS0xMDApOwp9"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),WG={};function Wj(){let{activeTab:e}=wz(),{activeSubtab:t,setActiveSubtab:r}=Ws(),n=e&&e in WN?WN[e]:[];return((0,A.useEffect)(()=>{if(e&&e in WN){let t;r((t=WN[e],t?.[0]?.id||"flags"))}},[e,r]),0===n.length)?null:(0,E.jsxs)("div",{className:"r6jfqg0",children:[(0,E.jsx)(WR,{subtabs:n,activeSubtab:t,onSelectSubtab:r}),(0,E.jsx)(WA,{})]})}WG.styleTagTransform=kK(),WG.setAttributes=kB(),WG.insert=kX().bind(null,"head"),WG.domAPI=kF(),WG.insertStyleElement=kH(),kW()(WZ.A,WG),WZ.A&&WZ.A.locals&&WZ.A.locals;var WM=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Settings/SettingsSection.module.css.ts.vanilla.css","source":"LmxjYTVmazAgewogIG1hcmdpbi1ib3R0b206IDI0cHg7Cn0KLmxjYTVmazEgewogIGZvbnQtc2l6ZTogMTJweDsKICBmb250LXdlaWdodDogNjAwOwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7CiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTsKICBsZXR0ZXItc3BhY2luZzogMC41cHg7CiAgbWFyZ2luLWJvdHRvbTogMTJweDsKICBwYWRkaW5nOiAwcHg7Cn0KLmxjYTVmazIgewogIGRpc3BsYXk6IGZsZXg7CiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICBnYXA6IDhweDsKfQ=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),WV={};function WW({title:e,children:t}){return(0,E.jsxs)("div",{className:"lca5fk0",children:[(0,E.jsx)("h3",{className:"lca5fk1",children:e}),(0,E.jsx)("div",{className:"lca5fk2",children:t})]})}WV.styleTagTransform=kK(),WV.setAttributes=kB(),WV.insert=kX().bind(null,"head"),WV.domAPI=kF(),WV.insertStyleElement=kH(),kW()(WM.A,WV),WM.A&&WM.A.locals&&WM.A.locals;var WP=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Settings/SettingsItem.module.css.ts.vanilla.css","source":"Ll8xOWhyanI2MCB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTg1MCk7CiAgdHJhbnNpdGlvbjogYWxsIDAuMnMgZWFzZTsKICBnYXA6IDE2cHg7Cn0KLl8xOWhyanI2MSB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIGdhcDogNHB4OwogIGZsZXg6IDE7CiAgbWluLXdpZHRoOiAwOwp9Ci5fMTlocmpyNjIgewogIGZvbnQtc2l6ZTogMTRweDsKICBmb250LXdlaWdodDogNTAwOwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTEwMCk7Cn0KLl8xOWhyanI2MyB7CiAgZm9udC1zaXplOiAxMnB4OwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7CiAgbGluZS1oZWlnaHQ6IDEuNDsKfQouXzE5aHJqcjY0IHsKICBkaXNwbGF5OiBmbGV4OwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgZmxleC1zaHJpbms6IDA7Cn0KLl8xOWhyanI2NSB7CiAgZm9udC1zaXplOiAxMnB4OwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktOTUwKTsKfQ=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),WF={};function WD({label:e,description:t,children:r}){return(0,E.jsxs)("div",{className:"_19hrjr60",children:[(0,E.jsxs)("div",{className:"_19hrjr61",children:[(0,E.jsx)("div",{className:"_19hrjr62",children:e}),t&&(0,E.jsx)("div",{className:"_19hrjr63",children:t})]}),(0,E.jsx)("div",{className:"_19hrjr64",children:r})]})}function WX(){let{projectKey:e,setProjectKey:t,projects:r,loading:n,getProjects:i}=ku(),o=wg();(0,A.useEffect)(()=>{0===r.length&&i()},[r,i]);let s=(0,A.useMemo)(()=>r.map(e=>({id:e.key,label:e.name})),[r]);return(0,E.jsx)(MQ,{selectedKey:e,onSelectionChange:r=>{r&&r!==e&&!n&&(o.trackProjectSwitch(e,r),t(r))},"aria-label":"Select project",placeholder:"Select project","data-theme":"dark",isDisabled:n,options:s})}function Wz({currentPosition:e}){let{handlePositionChange:t}=wP(),r=wg(),n=wS.map(e=>({id:e,label:e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}));return(0,E.jsx)(MQ,{selectedKey:e,onSelectionChange:n=>{n&&n!==e&&(r.trackPositionChange(e,n,"settings"),t(n))},"aria-label":"Select toolbar position",placeholder:"Select position","data-theme":"dark",options:n})}WF.styleTagTransform=kK(),WF.setAttributes=kB(),WF.insert=kX().bind(null,"head"),WF.domAPI=kF(),WF.insertStyleElement=kH(),kW()(WP.A,WF),WP.A&&WP.A.locals&&WP.A.locals;var WB=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Settings/ConnectionStatus.module.css.ts.vanilla.css","source":"LmtqNTl6ZjAgewogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBnYXA6IDhweDsKfQoua2o1OXpmMSB7CiAgZm9udC1zaXplOiAxNHB4OwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTMwMCk7Cn0KLmtqNTl6ZjIgewogIHdpZHRoOiA4cHg7CiAgaGVpZ2h0OiA4cHg7CiAgYm9yZGVyLXJhZGl1czogNTAlOwp9Ci5rajU5emYzIHsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmVlbi01MDApOwogIGJveC1zaGFkb3c6IDAgMCA4cHggdmFyKC0tbHAtY29sb3ItZ3JlZW4tNTAwKTsKfQoua2o1OXpmNCB7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS01MDApOwp9Ci5rajU5emY1IHsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1scC1jb2xvci1yZWQtNTAwKTsKICBib3gtc2hhZG93OiAwIDAgOHB4IHZhcigtLWxwLWNvbG9yLXJlZC01MDApOwp9"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),WU={};WU.styleTagTransform=kK(),WU.setAttributes=kB(),WU.insert=kX().bind(null,"head"),WU.domAPI=kF(),WU.insertStyleElement=kH(),kW()(WB.A,WU),WB.A&&WB.A.locals&&WB.A.locals;var WH="kj59zf3",WY="kj59zf5",WK="kj59zf2",WJ="kj59zf1",WQ="kj59zf0",Wq="kj59zf4";function W$({status:e}){return(0,E.jsxs)("div",{className:WQ,children:[(0,E.jsx)("span",{className:WJ,children:(()=>{switch(e){case"connected":return"Connected";case"disconnected":return"Disconnected";case"error":return"Error"}})()}),(0,E.jsx)("div",{className:`${WK} ${I[e]}`})]})}var W0=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Settings/LogoutButton.module.css.ts.vanilla.css","source":"Ll8xcTQ0czNmMCB7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS04MDApOwogIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLWxwLWNvbG9yLWdyYXktNjAwKTsKICBjb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS0yMDApOwogIHBhZGRpbmc6IDhweCAxNnB4OwogIGJvcmRlci1yYWRpdXM6IDZweDsKICBmb250LXNpemU6IDEzcHg7CiAgZm9udC13ZWlnaHQ6IDUwMDsKICBjdXJzb3I6IHBvaW50ZXI7CiAgdHJhbnNpdGlvbjogYWxsIDAuMnMgZWFzZTsKfQouXzFxNDRzM2YwOmhvdmVyIHsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTcwMCk7CiAgYm9yZGVyLWNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTUwMCk7Cn0KLl8xcTQ0czNmMDpmb2N1cyB7CiAgb3V0bGluZTogbm9uZTsKfQouXzFxNDRzM2YwOmZvY3VzLXZpc2libGUgewogIG91dGxpbmU6IDJweCBzb2xpZCB2YXIoLS1scC1jb2xvci1zaGFkb3ctaW50ZXJhY3RpdmUtZm9jdXMpOwogIG91dGxpbmUtb2Zmc2V0OiAycHg7Cn0="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),W1={};function W2(){let{logout:e}=w$(),t=wg();return(0,E.jsx)("button",{className:"_1q44s3f0",onClick:()=>{t.trackLogout(),e()},"aria-label":"Log out",children:"Log out"})}W1.styleTagTransform=kK(),W1.setAttributes=kB(),W1.insert=kX().bind(null,"head"),W1.domAPI=kF(),W1.insertStyleElement=kH(),kW()(W0.A,W1),W0.A&&W0.A.locals&&W0.A.locals;var W5=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Settings/SettingsContent.module.css.ts.vanilla.css","source":"Lm45M3Q1ODAgewogIHBhZGRpbmc6IDRweCAwOwogIG1hcmdpbjogMTJweDsKfQoubjkzdDU4MSB7CiAgZm9udC1zaXplOiAxNHB4OwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTMwMCk7CiAgZm9udC1mYW1pbHk6IHZhcigtLWxwLWZvbnQtZmFtaWx5LW1vbm9zcGFjZSk7Cn0KLm45M3Q1ODIgewogIHBhZGRpbmc6IDE2cHg7CiAgZm9udC1zaXplOiAxM3B4OwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7CiAgdGV4dC1hbGlnbjogY2VudGVyOwp9Ci5uOTN0NTgzIHsKICBtYXJnaW4tdG9wOiAxMHB4OwogIHBhZGRpbmctdG9wOiAxMHB4OwogIGJvcmRlci10b3A6IDFweCBzb2xpZCB2YXIoLS1scC1jb2xvci1ncmF5LTcwMCk7CiAgbWFyZ2luLWxlZnQ6IC0yMHB4OwogIG1hcmdpbi1yaWdodDogLTIwcHg7Cn0KLm45M3Q1ODQgewogIGZvbnQtc2l6ZTogMTJweDsKICBmb250LXdlaWdodDogNjAwOwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7CiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTsKICBsZXR0ZXItc3BhY2luZzogMC41cHg7CiAgbWFyZ2luLWxlZnQ6IDIwcHg7CiAgcGFkZGluZzogMHB4Owp9"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),W3={};function W9(){let{environment:e,setEnvironment:t}=function(){let e=(0,A.useContext)(kp);if(!e)throw Error("useEnvironmentContext must be used within an EnvironmentProvider");return e}(),{environments:r,loading:n}=ku(),i=(0,A.useMemo)(()=>r.map(e=>({id:e.key,label:e.name})),[r]);return(0,E.jsx)(MQ,{selectedKey:e,onSelectionChange:r=>{r&&r!==e&&!n&&t(r)},"aria-label":"Select environment",placeholder:"Select environment","data-theme":"dark",isDisabled:n||0===r.length,options:i})}function W4(){let{state:e}=kk(),{isAutoCollapseEnabled:t,reloadOnFlagChangeIsEnabled:r,mode:n,handleToggleAutoCollapse:i,handleToggleReloadOnFlagChange:o}=w2(),{position:s}=wP(),a=wg(),{searchTerms:l}=Wu(),c=(0,A.useMemo)(()=>l.general||"",[l]),u=()=>{a.trackAutoCollapseToggle(t?"disable":"enable"),i()},d=()=>{a.trackReloadOnFlagChangeToggle(!r),o()},p="dev-server"===n?[{title:"Dev Server Configuration",items:[{id:"project",label:"Project",type:"project"},{id:"environment",label:"Environment",type:"text"},{id:"connection",label:"Connection status",type:"status"}]},{title:"Toolbar Settings",items:[{id:"position",label:"Position",type:"position"},{id:"auto-collapse",label:"Auto-collapse",description:"Automatically collapses the toolbar when clicking outside.",type:"switch",switchValue:t,onSwitchChange:u},{id:"reload-on-flag-change",label:"Reload on flag change",type:"switch",switchValue:r,onSwitchChange:d}]},{title:"Account",items:[{id:"logout",label:"Log out",description:"Sign the Toolbar out of LaunchDarkly",type:"button"}]}]:[{title:"Toolbar Settings",items:[{id:"project",label:"Project",type:"project"},{id:"environment",label:"Environment",type:"environment"},{id:"position",label:"Position",type:"position"},{id:"auto-collapse",label:"Auto-collapse",description:"Automatically collapses the toolbar when clicking outside.",type:"switch",switchValue:t,onSwitchChange:u},{id:"reload-on-flag-change",label:"Reload on flag change",type:"switch",switchValue:r,onSwitchChange:d}]},{title:"Account",items:[{id:"logout",label:"Log out",description:"Sign the Toolbar out of LaunchDarkly",type:"button"}]}];return!p.some(e=>e.items.some(e=>e.label.toLowerCase().includes(c.toLowerCase())||e.id.toLowerCase().includes(c.trim().toLowerCase())))&&c.trim()?(0,E.jsx)(Iq,{title:"No settings found",subtitle:"Try adjusting your search"}):(0,E.jsxs)("div",{className:"n93t580",children:[p.map(t=>{let r=t.items.filter(e=>e.label.toLowerCase().includes(c.toLowerCase())||e.id.toLowerCase().includes(c.trim().toLowerCase()));return 0===r.length?null:(0,E.jsx)(WW,{title:t.title,children:r.map(t=>{let r;switch(t.type){case"project":r=(0,E.jsx)(WX,{});break;case"position":r=(0,E.jsx)(Wz,{currentPosition:s});break;case"status":r=(0,E.jsx)(W$,{status:e.connectionStatus});break;case"switch":r=(0,E.jsx)(II,{"data-theme":"dark",className:"_19hrjr65",isSelected:t.switchValue??!1,onChange:t.onSwitchChange,"aria-label":t.label});break;case"button":r=(0,E.jsx)(W2,{});break;case"text":r=(0,E.jsx)("span",{className:"n93t581",children:e.sourceEnvironmentKey||"Unknown"});break;case"environment":r=(0,E.jsx)(W9,{});break;default:r=null}return(0,E.jsx)(WD,{label:t.label,description:t.description,children:r},t.id)})},t.title)}),(0,E.jsxs)("div",{className:"n93t583",children:[(0,E.jsx)("h3",{className:"n93t584",children:"Feedback"}),(0,E.jsx)(M6,{onSubmit:(e,t)=>{a.trackFeedback(e,t)}})]})]})}function W6(){return(0,E.jsx)(W4,{})}W3.styleTagTransform=kK(),W3.setAttributes=kB(),W3.insert=kX().bind(null,"head"),W3.domAPI=kF(),W3.insertStyleElement=kH(),kW()(W5.A,W3),W5.A&&W5.A.locals&&W5.A.locals;var W7=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/FeatureFlags/FlagItem.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA9VX227bMAx971foZUD7oEx26jRVP2aQLdrWqkiGJOeyYf8+SHYS23GcOisG9KmIRJGHh+Shu/gRLX8WsHcE/X5AKGXZe2F0rTjOtNSGoi0zjxjLqvmNC8MOeJ2QpzdvrQ0HQ1FU7ZHVUvBR6xfSWG+YKYSiKIqr/fk1NoyL2lK0bk4rxrlQBUXRqneAJeTuZMWFrSQ7UJRLCAdMikJh4WBjKcpAOTD+uGAVRc/NG2eYssIJrShiUiKyiC0CZsFf/qytE/kBZ1o5UI4iW7EMcApuB6DeHv48LE5M0VJvwczhi3T5mrJcBctOsOhKGFOk7DE3ejN0kxrmrQ5M4ZRZeEIGFShF3xFZkPWVqt3jLB7gnCTlngBRPMLZPY6WfaTx1250/xdzYSBrOjnTst6oU68fnU00e5eL/9nKyy/Syssv08rPAeMsLTz2xwy9S+ZHaRXXm1IUhZkQCu8EdyVFpOd9Ne79RpvfCuCHcH/8HRPizTtBX+an1M7j1TzWwWWulcNW/AKKoiNGf7QDUZSOooQEcBNjE7cD5lswl3pHUSk4h5C6g73D5wuQUlRWWH+1K4UDHIpIkdI7w6oxVk6EdZC/9skQSgoFeEaZP5DNB3kJCXLItGFN2ZVWcI2NiYpHhHzr59iZ6Qm40VCzXmmus9qGd7p2npkjqEsrvBVWpBL61vG1nWFLxvUOC08py5zYAg5umvI3z7HOcwsueBlZJfGgr1kIfcFirTgY726E4ykJT9rqhScnJ0NMn9GpI6WaTmoKdjysYtrMppcUWxqh3tuO0RXLhDtQRBar4dJs77x6JyOb8wJlE+PksT9i2T0jdiHR56u2zVtNKtshWp9FsZ9nVhvryaq0aDx0oPEAbdLhzS+D4cYa6dTED2Sf4aHbK98oMEurh8l3HOX/tGk6AjacuuKWrDx3VfAoeauO5AVacm02FNVVBSZr/yvpRiUNEAnOgQnzE74eySIZwClvwVl24eRsI+SBoo1WOgzlMG70eVPe38pJs5X/AlattUSCDgAA"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),W8={};W8.styleTagTransform=kK(),W8.setAttributes=kB(),W8.insert=kX().bind(null,"head"),W8.domAPI=kF(),W8.insertStyleElement=kH(),kW()(W7.A,W8),W7.A&&W7.A.locals&&W7.A.locals;var Pe="_13jgext5",Pt="_13jgextb",Pr="_13jgext9",Pn="_13jgexte",Pi="_13jgext7",Po="_13jgext6",Ps="_13jgexta",Pa=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/FeatureFlags/FlagControls.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA5VTy27CMBC85yv2Uqk9GJlAAzVf48QmWWFs1zYktOLfqzxJUBSVo3dnZ2dG6xVuiuT7TOE3AhDoreI3Bkclq0MEwBXmmmCQZ88gkzpIV5dzbhnsbXWI7tGqJ1A8laqhSXl2yp25aEEyo4xjEBzX3nIndRjNxE/oJxzAGTUpUYSCwTqmtpF05tVQ29KJhs1LJuo2EehkFtBoBs6Ug7dtt+u1/duX9o99X7l7J0TZNi+SO34jX5R+NDjjhHQM1rYCbxSKWfRugiaOC7x4BkkrupCYF4HBJm7fqamIxx/UOesnUlP1qTBYD0l0A5YLgTonruWJ/5dPMs3ns8mno2q0tUcEcDQ61IJkHWpb6i5nzmvceR1pHSmh9dtcpTsqUzIoUAip61qQVSCPhlQKrUdft8oCgyTe8kwy0KZ03I50J43u3hSlb7ORLh/9SO3Au2t4F2KmC+czkTNQ7udP8PFhl7+DLxzqU7P4/gdxiRdRGgQAAA=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Pl={};function Pc(e){let{flag:t,onOverride:r,disabled:n=!1}=e;return(0,E.jsx)("div",{className:"i3h6qm0",children:(0,E.jsx)(II,{"data-theme":"dark",isSelected:t.currentValue,onChange:r,isDisabled:n,className:"i3h6qm1"})})}function Pu(e){let{flag:t,onOverride:r,disabled:n=!1}=e,i=t.availableVariations.find(e=>MB(e.value,t.currentValue)),o=t.availableVariations.map(e=>({id:e._id,label:e.value,value:e.value}));return(0,E.jsx)(MQ,{selectedKey:i?._id||null,onSelectionChange:e=>{if(e){let n=t.availableVariations.find(t=>t._id===e);n&&r(n.value)}},"aria-label":"Select variant",placeholder:"Select variant","data-theme":"dark",className:"i3h6qm2",isDisabled:n,options:o})}function Pd(e){let{flag:t,onOverride:r,disabled:n=!1}=e,[i,o]=(0,A.useState)(!1),s=String(t.currentValue),[a,l]=(0,A.useState)(s),c=(0,A.useRef)(null);(0,A.useEffect)(()=>{i&&c.current&&(c.current?.focus(),c.current?.select())},[i]);let u=()=>{let e;if("number"===t.type){if(isNaN(e=parseFloat(a)))return}else e=a;r(e),o(!1)},d=()=>{l(s),o(!1)};return(0,E.jsx)("div",{className:"i3h6qm3",children:i?(0,E.jsx)(IN,{"aria-label":`Enter ${t.type} value`,className:"i3h6qm6","data-theme":"dark",children:(0,E.jsxs)(Iy,{className:"i3h6qm7",children:[(0,E.jsx)(Ig,{ref:c,placeholder:`Enter ${t.type} value`,value:a,onChange:e=>l(e.target.value),type:"number"===t.type?"number":"text",onKeyDown:e=>{e.stopPropagation(),"Enter"===e.key&&u(),"Escape"===e.key&&d()}}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(Eu,{}),label:"Confirm",onClick:u}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(ID,{}),label:"Cancel",onClick:d})]})}):(0,E.jsxs)("div",{className:"i3h6qm4",children:[(0,E.jsx)("div",{className:"i3h6qm5","data-testid":`flag-value-${t.key}`,children:s}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(Ec,{}),label:"Edit",onClick:()=>{l(s),o(!0)},disabled:n})]})})}function Pp(e){let{isEditing:t,onEditStart:r,onConfirm:n,onCancel:i,hasErrors:o}=e;return(0,E.jsx)("div",{className:"i3h6qm8",children:t?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Io,{variant:"primary",onClick:n,isDisabled:o,"data-theme":"dark",children:"Save"}),(0,E.jsx)(Io,{onClick:i,"data-theme":"dark",children:"Cancel"})]}):(0,E.jsx)(Io,{onClick:r,"data-theme":"dark",children:"Edit JSON"})})}function Ph(e){let{flag:t,isEditing:r,tempValue:n,onValueChange:i,onLintErrors:o,handleHeightChange:s}=e;return(0,E.jsx)(oG,{mode:"wait",children:r&&(0,E.jsx)(oI.div,{"data-testid":`json-editor-${t.key}`,initial:{opacity:0,height:0,y:-10},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-10},transition:{duration:.25,ease:kI,height:{duration:.3,ease:kI}},style:{overflow:"hidden"},children:(0,E.jsx)(Mp,{docString:n,onChange:i,onLintErrors:e=>{o(e.length>0)},"data-testid":`flag-input-${t.key}`,editorId:`json-editor-${t.key}`,initialState:{startCursorAtLine:0,autoFocus:!0},onEditorHeightChange:e=>{s(80+e+36)}})},`json-editor-${t.key}`)})}function Pf({className:e,size:t="default"}){let r="small"===t?"_1mndevo1":IF;return(0,E.jsx)("svg",{className:`${r} ${e||""}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M12.5 4.083a.75.75 0 0 1 0-1.5h4.166a.75.75 0 0 1 .75.75V7.5a.75.75 0 1 1-1.5 0V5.144l-6.22 6.22a.75.75 0 1 1-1.06-1.061l6.22-6.22zm-9.21.875A2.42 2.42 0 0 1 5 4.25h5a.75.75 0 1 1 0 1.5H5a.917.917 0 0 0-.917.917V15a.917.917 0 0 0 .917.917h8.333A.917.917 0 0 0 14.25 15v-5a.75.75 0 0 1 1.5 0v5a2.417 2.417 0 0 1-2.417 2.417H5A2.417 2.417 0 0 1 2.583 15V6.667c0-.641.255-1.256.708-1.71","clip-rule":"evenodd"})})}function Pm({onClear:e}){let[t,r]=(0,A.useState)(!1);return(0,E.jsx)(oI.span,{className:"_13jgextc",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:e,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),e())},tabIndex:0,role:"button","aria-label":"Remove flag override",title:t?"Click to remove override":"Override active",whileHover:{scale:1.1},transition:{duration:.1},"data-testid":"override-dot",style:{cursor:"pointer"},children:(0,E.jsx)(oI.span,{className:"_13jgextd",animate:{backgroundColor:t?"var(--lp-color-red-500)":"var(--lp-color-brand-cyan-base)"},transition:{duration:.05}})})}function Pg({flag:e,onOverride:t,onClearOverride:r,handleHeightChange:n,disabled:i=!1,index:o}){let[s,a]=(0,A.useState)(!1),[l,c]=(0,A.useState)(""),[u,d]=(0,A.useState)(!1),{isStarred:p,toggleStarred:h}=kT(),f=wg(),{baseUrl:m}=w4(),{projectKey:g}=ku(),b=(0,A.useCallback)(e=>{let t=p(e);h(e),f.trackStarredFlag(e,t?"unstar":"star")},[p,h,f]),v=`${m}/projects/${g}/flags/${e.key}`,y=(0,A.useCallback)(()=>{f.trackOpenFlagDeeplink(e.key,m)},[f,e.key,m]),x=(0,A.useCallback)(e=>{f.trackFlagKeyCopy(e)},[f]);return"object"===e.type?(0,E.jsxs)("div",{className:`_13jgext2 ${e.isOverridden?"_13jgext3":""}`,children:[(0,E.jsxs)("div",{className:"_13jgext4",children:[(0,E.jsxs)("div",{className:Pe,children:[(0,E.jsx)(I6,{flagKey:e.key,isStarred:p(e.key),onToggle:b}),(0,E.jsxs)("div",{className:Po,children:[(0,E.jsxs)("div",{className:Pi,children:[e.isOverridden&&r&&(0,E.jsx)(Pm,{onClear:r}),(0,E.jsxs)("a",{className:Pr,href:v,target:"_blank",rel:"noopener noreferrer",onClick:y,title:`Open ${e.name} in LaunchDarkly`,children:[(0,E.jsx)("span",{className:Ps,children:e.name}),(0,E.jsx)(Pf,{size:"small",className:Pt})]})]}),(0,E.jsx)(ME,{text:e.key,onCopy:x})]})]}),(0,E.jsx)("div",{className:Pn,children:(0,E.jsx)(Pp,{isEditing:s,onEditStart:()=>{c(JSON.stringify(e.currentValue,null,2)),a(!0)},onConfirm:()=>{t(JSON.parse(l)),n(o,92),a(!1)},onCancel:()=>{n(o,92),a(!1)},hasErrors:u})})]}),(0,E.jsx)(Ph,{flag:e,isEditing:s,tempValue:l,onValueChange:c,onLintErrors:d,handleHeightChange:e=>n(o,e)})]}):(0,E.jsxs)("div",{className:`_13jgext0 ${e.isOverridden?"_13jgext1":""}`,children:[(0,E.jsxs)("div",{className:Pe,children:[(0,E.jsx)(I6,{flagKey:e.key,isStarred:p(e.key),onToggle:b}),(0,E.jsxs)("div",{className:Po,children:[(0,E.jsxs)("div",{className:Pi,children:[e.isOverridden&&r&&(0,E.jsx)(Pm,{onClear:r}),(0,E.jsxs)("a",{className:Pr,href:v,target:"_blank",rel:"noopener noreferrer",onClick:y,title:`Open ${e.name} in LaunchDarkly`,children:[(0,E.jsx)("span",{className:Ps,children:e.name}),(0,E.jsx)(Pf,{size:"small",className:Pt})]})]}),(0,E.jsx)(ME,{text:e.key,onCopy:x})]})]}),(0,E.jsx)("div",{className:Pn,children:"boolean"===e.type?(0,E.jsx)(Pc,{flag:e,onOverride:t,disabled:i}):"multivariate"===e.type&&"availableVariations"in e?(0,E.jsx)(Pu,{flag:e,onOverride:t,disabled:i}):"string"===e.type||"number"===e.type?(0,E.jsx)(Pd,{flag:e,onOverride:t,disabled:i}):null})]})}Pl.styleTagTransform=kK(),Pl.setAttributes=kB(),Pl.insert=kX().bind(null,"head"),Pl.domAPI=kF(),Pl.insertStyleElement=kH(),kW()(Pa.A,Pl),Pa.A&&Pa.A.locals&&Pa.A.locals;var Pb=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/FeatureFlags/FlagList.module.css.ts.vanilla.css","source":"Ll8xYm9oem04MCB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIGhlaWdodDogMTAwJTsKfQouXzFib2h6bTgxIHsKICBwYWRkaW5nOiA4cHggMjBweDsKICBib3JkZXItYm90dG9tOiAxcHggc29saWQgdmFyKC0tbHAtY29sb3ItZ3JheS03MDApOwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktOTAwKTsKICBmbGV4LXNocmluazogMDsKfQouXzFib2h6bTgyIHsKICBmb250LXNpemU6IDEycHg7CiAgY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktNDAwKTsKICBmb250LXdlaWdodDogNTAwOwp9Ci5fMWJvaHptODMgewogIHBhZGRpbmctdG9wOiA4cHg7CiAgcGFkZGluZy1ib3R0b206IDIwcHg7CiAgZmxleDogMTsKICB3aWR0aDogMTAwJTsKICBvdmVyZmxvdzogYXV0bzsKICBwb3NpdGlvbjogcmVsYXRpdmU7Cn0KLl8xYm9oem04NCB7CiAgd2lkdGg6IDEwMCU7CiAgcG9zaXRpb246IHJlbGF0aXZlOwp9"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Pv={};Pv.styleTagTransform=kK(),Pv.setAttributes=kB(),Pv.insert=kX().bind(null,"head"),Pv.domAPI=kF(),Pv.insertStyleElement=kH(),kW()(Pb.A,Pv),Pb.A&&Pb.A.locals&&Pb.A.locals;var Py="_1bohzm81",Px="_1bohzm83",Pw="_1bohzm80",Pk="_1bohzm82",PS="_1bohzm84";function PC(){let{state:e,setOverride:t,clearOverride:r}=kk(),{searchTerms:n}=Wu(),i=(0,A.useMemo)(()=>n.flags||"",[n]),{activeFilters:o}=Wy("flags"),{isStarred:s}=kT(),a=(0,A.useRef)(null),l=(0,A.useCallback)(()=>a.current,[]),c=(0,A.useMemo)(()=>Object.values(e.flags),[e.flags]),u=(0,A.useMemo)(()=>c.map(e=>({key:e.key,name:e.name,currentValue:e.currentValue,isOverridden:e.isOverridden,type:e.type,availableVariations:e.availableVariations})),[c]),d=(0,A.useMemo)(()=>{let e=i.toLowerCase(),t=o.has("all"),r=o.has("overrides"),n=o.has("starred");return u.map((e,t)=>({flag:e,index:t})).filter(({flag:o})=>{if(i&&!(o.name.toLowerCase().includes(e)||o.key.toLowerCase().includes(e)))return!1;if(t)return!0;let a=r&&o.isOverridden,l=n&&s(o.key);return a||l}).map(({index:e})=>e)},[u,i,o,s]),p=CI({count:d.length,getScrollElement:l,estimateSize:()=>92,overscan:5}),h=(0,A.useCallback)((e,t)=>{t>80?p.resizeItem(e,t):setTimeout(()=>{p.resizeItem(e,t)},125)},[p]),f=(0,A.useCallback)(async(e,r)=>{await t(e,r)},[t]),m=(0,A.useCallback)(async e=>{await r(e)},[r]),g=u.length,b=d.length,v=i||!o.has("all");return 0===d.length&&!i&&o.has("all")?(0,E.jsx)(Iq,{title:"No feature flags found",subtitle:"Make sure you have feature flags set up in your project"}):0===d.length&&(i||!o.has("all"))?(0,E.jsxs)("div",{className:Pw,children:[(0,E.jsx)("div",{className:Py,children:(0,E.jsxs)("span",{className:Pk,children:["0 of ",g," flags"]})}),(0,E.jsx)(Iq,{title:"No matching flags",subtitle:"Try adjusting your search or filters"})]}):(0,E.jsxs)("div",{className:Pw,children:[(0,E.jsx)("div",{className:Py,children:(0,E.jsx)("span",{className:Pk,children:v?`${b} of ${g} flags`:`${g} flags`})}),(0,E.jsx)("div",{ref:a,className:Px,children:(0,E.jsx)("div",{className:PS,style:{height:`${p.getTotalSize()}px`,position:"relative"},children:p.getVirtualItems().map(e=>{let t=d[e.index];if(void 0===t)return null;let r=u[t];return r?(0,E.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:`${e.size}px`,transform:`translateY(${e.start}px)`},children:(0,E.jsx)(Pg,{flag:r,onOverride:e=>f(r.key,e),onClearOverride:()=>m(r.key),handleHeightChange:h,index:e.index})},e.key):null})})})]})}function P_(){let{flags:e,setOverride:t,removeOverride:r}=CZ(),{searchTerms:n}=Wu(),i=(0,A.useMemo)(()=>n.flags||"",[n]),{activeFilters:o}=Wy("flags"),{isStarred:s}=kT(),a=(0,A.useRef)(null),l=(0,A.useCallback)(()=>a.current,[]),c=(0,A.useMemo)(()=>Object.values(e),[e]),u=(0,A.useMemo)(()=>c.map(e=>({key:e.key,name:e.name,currentValue:e.currentValue,isOverridden:e.isOverridden,type:e.type,availableVariations:e.availableVariations})),[c]),d=(0,A.useMemo)(()=>{let e=i.toLowerCase(),t=o.has("all"),r=o.has("overrides"),n=o.has("starred");return u.map((e,t)=>({flag:e,index:t})).filter(({flag:o})=>{if(i&&!(o.name.toLowerCase().includes(e)||o.key.toLowerCase().includes(e)))return!1;if(t)return!0;let a=r&&o.isOverridden,l=n&&s(o.key);return a||l}).map(({index:e})=>e)},[u,i,o,s]),p=CI({count:d.length,getScrollElement:l,estimateSize:()=>92,overscan:5}),h=(0,A.useCallback)((e,r)=>{t(e,r)},[t]),f=(0,A.useCallback)(e=>{r(e)},[r]),m=(0,A.useCallback)((e,t)=>{t>80?p.resizeItem(e,t):setTimeout(()=>{p.resizeItem(e,t)},125)},[p]),g=u.length,b=d.length,v=i||!o.has("all");return 0===d.length&&!i&&o.has("all")?(0,E.jsx)(Iq,{title:"No feature flags found",subtitle:"Make sure you have feature flags set up in your project"}):0===d.length&&(i||!o.has("all"))?(0,E.jsxs)("div",{className:Pw,children:[(0,E.jsx)("div",{className:Py,children:(0,E.jsxs)("span",{className:Pk,children:["0 of ",g," flags"]})}),(0,E.jsx)(Iq,{title:"No matching flags",subtitle:"Try adjusting your search or filters"})]}):(0,E.jsxs)("div",{className:Pw,children:[(0,E.jsx)("div",{className:Py,children:(0,E.jsx)("span",{className:Pk,children:v?`${b} of ${g} flags`:`${g} flags`})}),(0,E.jsx)("div",{ref:a,className:Px,children:(0,E.jsx)("div",{className:PS,style:{height:`${p.getTotalSize()}px`,position:"relative"},children:p.getVirtualItems().map(e=>{let t=d[e.index];if(void 0===t)return null;let r=u[t];return r?(0,E.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:`${e.size}px`,transform:`translateY(${e.start}px)`},children:(0,E.jsx)(Pg,{flag:r,onOverride:e=>h(r.key,e),onClearOverride:()=>f(r.key),handleHeightChange:m,index:e.index})},e.key):null})})})]})}let PT=()=>{let{mode:e}=w2(),t=w4();return"dev-server"===e?(0,E.jsx)(PC,{}):"sdk"===e?t.flagOverridePlugin?(0,E.jsx)(CN,{flagOverridePlugin:t.flagOverridePlugin,children:(0,E.jsx)(P_,{})}):(0,E.jsx)(Iq,{title:"Flag override plugin is not available",subtitle:"To use local flag overrides, ensure the flag override plugin is added to your LaunchDarkly client configuration."}):(0,E.jsx)(Iq,{title:"Mode not detected",subtitle:"The toolbar is not running in dev-server or SDK mode"})};function PI(){return(0,E.jsx)(PT,{})}var PE=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Contexts/ContextItem.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA+VX247jKBB976/gZaUeacnixE5n6C/ZpxUxZZsZAghwJ9nV/PsK7KSx4ziXnX0aKVJsKKrqnLrhxV/ZofXcvBH0zwtCW1Z+r61uFcelltpS9MHsK8bSdO+4tuyINwX58h6kteVgKcrMATktBZ+UfiOd9I7ZWiiKsqU5fJ7GlnHROoo23aphnAtVU5StuwUunJHsSFElIS6Ef8yFhdILrSgqtWx3KuzUzFBEwpO3TDnR7TMpEVksHQLm4P3lx8vijJk2+gPsI8hJinxOch0lE2NZNHOBhklRKyw87BxFJSgP9gzlxJTRJywWJPPiYwhjeQWArbfstbJ6N3Zwa1mQOjKFt8zBF2RRjbboD0QWZHMlss8oWw0ZWM7S/YyBbDkRjWcU5UNPV9HHsrUuKDRadGFJJf731OmTuNJ2R7tHyTz8+Yozc+gVHbBrGNd7ighamkMooQ49+R31v0VWjKBRVoYMip5PWyAT6kMi5FPqh9rz6SS/UbK5OUtRlMVeIRTeC+6bWM+JgeLxKuoby1WV66iy0spjJ/4GirKTP2FpD6JuPEUFiY1lJmzLPmwhLyoZaGsE5xBhejh4/LkBUgrjhAtb+0Z4wM6wEihSem+ZuXQ3ISfx/O1xMiK0RMXmAnzfc2aA5j3QeKpiOyGPFO200hHEz6IgcfLrEKdQUijAN+CeB0lfGe8jnGQiyOsuyNHVpDZaY8CWcXogJMF7sNHbqJ4sisl51ifRY81hRmR1Yj3UkmusUN/Hmcz+M0/r+3jqi+FexFc78hGk1HtcEDLo6sUMF/2R/DYb28hGX0N9AjQ9gM1kyAry210hGw+SG46UT/esGaX8IaXfWudFdcSlVh6UT7c+0YbaU5CO/9P7xSRM0iafy/47usjMVe0cvSUZhq97T9l47mphgT+UfEE+H1/sOK102Tr8IZzYym6w6taH2uuKavJqfDL9/imNdVU58PHQyAIXjm0l8MG9RGmPWagG4FFL6Ej+GDpSPkXOUMklSzEQhllQ/q7QJRYgLbVVPgzWajxzql8gdVO4T18Vb06DgZVnsnCqk93KxvpnhW8GXjHB8HkgR54f6Q7N+LJrtWceXrMN4VAPeRTT6NKufAXpuFmfvnix1+m3XJd8w8U+A7u1Oz6mf/wLCi/exrcPAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),PA={};PA.styleTagTransform=kK(),PA.setAttributes=kB(),PA.insert=kX().bind(null,"head"),PA.domAPI=kF(),PA.insertStyleElement=kH(),kW()(PE.A,PA),PE.A&&PE.A.locals&&PE.A.locals;var PO="_1xutdp70";function PL({context:e,isActiveContext:t,handleHeightChange:r,index:n}){let[i,o]=(0,A.useState)(!1),[s,a]=(0,A.useState)(""),[l,c]=(0,A.useState)(!1),[u,d]=(0,A.useState)(!1),p=(0,A.useRef)(!1),{removeContext:h,updateContext:f,setContext:m}=ks(),g=wg(),b=e.name||e.key,v=!t&&!u&&!i,y=t?`${PO} _1xutdp72`:v?`${PO} _1xutdp73`:PO,x=(0,A.useMemo)(()=>JSON.stringify(e,null,2),[e]),w=(0,A.useCallback)(()=>{a(x),o(!0),c(!1);let t="multi"===e.kind?e.name||"multi-kind":e.key||"";g.trackContextEditStarted(e.kind,t)},[x,e,g]),k=(0,A.useCallback)(()=>{if(!l)try{let t=JSON.parse(s);if(!t||"object"!=typeof t)return void console.error("Invalid JSON: must be an object");if(!t.kind||"string"!=typeof t.kind)return void console.error('Context must have a "kind" field');f(e.id,t),o(!1),r&&void 0!==n&&r(n,92)}catch(e){console.error("Failed to parse JSON:",e)}},[s,l,e,f,r,n]),S=(0,A.useCallback)(()=>{o(!1),a(""),c(!1);let t="multi"===e.kind?e.name||"multi-kind":e.key||"";g.trackContextEditCancelled(e.kind,t),r&&void 0!==n&&r(n,92)},[r,n,e,g]),C=(0,A.useCallback)(e=>{a(e)},[]),_=(0,A.useCallback)(e=>{c(e.length>0)},[]),T=(0,A.useCallback)(e=>{r&&void 0!==n&&i&&r(n,80+e+36)},[r,n,i]),I=(0,A.useCallback)(r=>{r.stopPropagation(),t||h(e.id)},[h,e.kind,e.key,e.name,t]),O=(0,A.useCallback)(async()=>{if(!t&&!u){d(!0);try{await m(e)}catch(e){console.error("Failed to set context:",e)}finally{d(!1)}}},[e,t,u,m]);return(0,A.useEffect)(()=>{!p.current&&r&&void 0!==n&&(r(n,92),p.current=!0)},[r,n]),(0,A.useEffect)(()=>()=>{r&&void 0!==n&&r(n,92)},[r,n]),(0,E.jsxs)("div",{className:y,onClick:v?O:void 0,style:{cursor:v?"pointer":"default"},role:v?"button":void 0,tabIndex:v?0:void 0,"aria-label":v?`Select context ${b}`:void 0,onKeyDown:e=>{v&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),O())},children:[(0,E.jsxs)("div",{className:"_1xutdp71",children:[t&&(0,E.jsx)("span",{className:"_1xutdp7b"}),(0,E.jsxs)("div",{className:"_1xutdp74",children:[(0,E.jsx)("div",{className:"_1xutdp75",children:(0,E.jsx)("span",{className:"_1xutdp76",title:b,children:b})}),(0,E.jsx)("div",{className:"_1xutdp77",onClick:e=>e.stopPropagation(),children:(0,E.jsx)(ME,{text:e.name||e.key||"",onCopy:()=>{let t=e.name||e.key||"";g.trackContextKeyCopy(t)}})})]}),(0,E.jsxs)("div",{className:"_1xutdp7c",onClick:e=>e.stopPropagation(),children:[(0,E.jsx)("span",{className:"_1xutdp79",children:e.kind}),i?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Eg,{icon:(0,E.jsx)(Eu,{}),onClick:k,disabled:l,label:"Save context",title:"Save context","data-testid":`save-context-${e.id}`}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(ID,{}),onClick:S,label:"Cancel editing",title:"Cancel editing","data-testid":`cancel-context-${e.id}`})]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Eg,{icon:(0,E.jsx)(Ec,{}),onClick:w,label:"Edit context",title:"Edit context"}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(Wd,{}),onClick:I,disabled:t,label:t?`Cannot delete active context ${e.key}`:`Delete context ${e.key}`,title:t?"Cannot delete active context":"Delete context"})]})]})]}),(0,E.jsx)(oG,{mode:"wait",children:i&&(0,E.jsx)(oI.div,{"data-testid":`json-editor-${e.id}`,onClick:e=>e.stopPropagation(),initial:{opacity:0,height:0,y:-10},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-10},transition:{duration:.25,ease:kI,height:{duration:.3,ease:kI}},style:{overflow:"hidden"},children:(0,E.jsx)(Mp,{docString:s,onChange:C,onLintErrors:_,"data-testid":`context-json-${e.id}`,editorId:`json-editor-${e.id}`,onEditorHeightChange:T,initialState:{startCursorAtLine:0,autoFocus:!0}})},`json-editor-${e.id}`)})]})}var PR=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Contexts/AddContextForm.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA+1UyZLaMBC98xV9nBxEZAMeR3xMSpZkW4mQVJLMktT8e8oLtjEGQiaTU4oDRdNq9dNbll+jEsd2X2L4uQDIKPteOFNpjphRxhHYU/eCkLLtb1Q4ekLpBn/a1t3GceEIRPYI3ijJZ7tfcdu9o66QmkAU2+NwGjnKZeUJpG3VUs6lLghESVswe+FyZQ4EaBVMO+iISiGLMhBI8L7cLt4WyzOOqMHBpbeKngjkSjRTqJKFRjKInSfAhA7C1eVvlQ8yPyFmdBA6EPCWMoEyEQ5C6GFrlJkQzI5AjOutRvfFzX250QF5+UMQiDogTenQr4nr2p03jSavhC9uWb0P1fDXQDABbbQY03j+zSrn6zWtkedjPSvrWe666h146w5ecFR7GaTRBKhSgJexB0G9uIRLypr2ZyTZzb/TsmpaRres5x+1/kZcOsHaNZlR1a7RQkHtWZejMZs/GpNOpiRXOlrP6GjzUEdXKF+bwfMnnOAdM6MDaXOgZzy1x96yM+t9ZGJMVJY8VFn0lMpSkhtW+QauqYKSWkxNcQNT5miN90Q1yqgX3bJH5EvK66TCzWdlj+CKjL7kzuwejQAHBWTwGfAymvBBiFWUidIo3nnizhNspnR+aV30Fx5+Joml7pM4xrhtG8fzGk/zkl7pPL5H66DQPoqDmbFP9r6AbMwqNB9cHp/B3L6TzRgluWmUOR8/l20fbJ7VOUKv4//3/MSeTu3Xi1i415lMZc2fInyI3P+Ejd7wnxJGuPQ0U6JlzljKZDgRwMvNGIQ2AVGlzEHw7eLtFz2aZfafCgAA"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),PN={};PN.styleTagTransform=kK(),PN.setAttributes=kB(),PN.insert=kX().bind(null,"head"),PN.domAPI=kF(),PN.insertStyleElement=kH(),kW()(PR.A,PN),PR.A&&PR.A.locals&&PR.A.locals;let PZ=`{
|
|
321
|
+
`,padding:"var(--lp-size-8)",border:"none",wordWrap:"break-word",zIndex:jY,position:"fixed !important",width:"90%"},".cm-tooltip-empty":{display:"none"},".cm-tooltip-arrow":{display:"none"}},jJ=[{tag:Zm.keyword,color:"var(--lp-color-brand-purple-dark)"},{tag:Zm.atom,color:"var(--lp-color-brand-orange-dark)"},{tag:Zm.url,textDecoration:"underline"},{tag:Zm.labelName,color:"var(--lp-color-brand-purple-dark)"},{tag:Zm.inserted,color:"var(--lp-color-text-success-primary)"},{tag:Zm.deleted,color:"var(--lp-color-text-danger-primary)"},{tag:Zm.literal,color:"var(--lp-color-brand-orange-dark)"},{tag:Zm.definition(Zm.variableName),color:"var(--lp-color-brand-blue-dark)"},{tag:Zm.local(Zm.variableName),color:"var(--lp-color-brand-blue-dark)"},{tag:[Zm.typeName,Zm.namespace],color:"var(--lp-color-brand-purple-dark)"},{tag:Zm.className,color:"var(--lp-color-brand-purple-dark)"},{tag:[Zm.special(Zm.variableName),Zm.macroName],color:"var(--lp-color-brand-blue-dark)"},{tag:Zm.comment,color:"var(--lp-color-text-ui-secondary)",fontStyle:"italic"},{tag:Zm.meta,color:"var(--lp-color-text-ui-secondary)"},{tag:Zm.invalid,color:"var(--lp-color-text-danger-primary)"},{tag:Zm.string,color:"var(--lp-color-brand-cyan-dark)"},{tag:Zm.number,color:"var(--lp-color-brand-purple-base)"},{tag:Zm.bool,color:"var(--lp-color-brand-pink-base)"},{tag:Zm.propertyName,color:"var(--lp-color-brand-cyan-dark)"}];function jQ(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,r=arguments[1];if(r&&"object"==typeof r&&null==r.nodeType&&!Array.isArray(r)){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var i=r[n];"string"==typeof i?e.setAttribute(n,i):null!=i&&(e[n]=i)}t++}for(;t<arguments.length;t++)!function e(t,r){if("string"==typeof r)t.appendChild(document.createTextNode(r));else if(null==r);else if(null!=r.nodeType)t.appendChild(r);else if(Array.isArray(r))for(var n=0;n<r.length;n++)e(t,r[n]);else throw RangeError("Unsupported child node: "+r)}(e,arguments[t]);return e}class jq{constructor(e,t,r){this.from=e,this.to=t,this.diagnostic=r}}class j${constructor(e,t,r){this.diagnostics=e,this.panel=t,this.selected=r}static init(e,t,r){let n=r.facet(Me).markerFilter;n&&(e=n(e,r));let i=e.slice().sort((e,t)=>e.from-t.from||e.to-t.to),o=new AA,s=[],a=0,l=r.doc.iter(),c=0,u=r.doc.length;for(let e=0;;){let t,r,n=e==i.length?null:i[e];if(!n&&!s.length)break;if(s.length)t=a,r=s.reduce((e,t)=>Math.min(e,t.to),n&&n.from>t?n.from:1e8);else{if((t=n.from)>u)break;r=n.to,s.push(n),e++}for(;e<i.length;){let n=i[e];if(n.from==t&&(n.to>n.from||n.to==t))s.push(n),e++,r=Math.min(n.to,r);else{r=Math.min(n.from,r);break}}r=Math.min(r,u);let d=!1;if(s.some(e=>e.from==t&&(e.to==r||r==u))&&!(d=t==r)&&r-t<10){let e=t-(c+l.value.length);e>0&&(l.next(e),c=t);for(let e=t;;){if(e>=r){d=!0;break}if(!l.lineBreak&&c+l.value.length>e)break;e=c+l.value.length,c+=l.value.length,l.next()}}let p=function(e){let t="hint",r=1;for(let i of e){var n;let e="error"==(n=i.severity)?4:"warning"==n?3:"info"==n?2:1;e>r&&(r=e,t=i.severity)}return t}(s);if(d)o.add(t,t,OP.widget({widget:new Mo(p),diagnostics:s.slice()}));else{let e=s.reduce((e,t)=>t.markClass?e+" "+t.markClass:e,"");o.add(t,r,OP.mark({class:"cm-lintRange cm-lintRange-"+p+e,diagnostics:s.slice(),inclusiveEnd:s.some(e=>e.to>r)}))}if((a=r)==u)break;for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1)}let d=o.finish();return new j$(d,t,j0(d))}}function j0(e,t=null,r=0){let n=null;return e.between(r,1e9,(e,r,{spec:i})=>{if(!(t&&0>i.diagnostics.indexOf(t)))if(n){if(0>i.diagnostics.indexOf(n.diagnostic))return!1;n=new jq(n.from,r,n.diagnostic)}else n=new jq(e,r,t||i.diagnostics[0])}),n}function j1(e,t){return e.field(j9,!1)?t:t.concat(Af.appendConfig.of(Mu))}let j2=Af.define(),j5=Af.define(),j3=Af.define(),j9=E9.define({create:()=>new j$(OP.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let r=e.diagnostics.map(t.changes),n=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);n=j0(r,e.selected.diagnostic,i)||j0(r,null,i)}!r.size&&i&&t.state.facet(Me).autoPanel&&(i=null),e=new j$(r,i,n)}for(let r of t.effects)if(r.is(j2)){let n=t.state.facet(Me).autoPanel?r.value.length?Ma.open:null:e.panel;e=j$.init(r.value,n,t.state)}else r.is(j5)?e=new j$(e.diagnostics,r.value?Ma.open:null,e.selected):r.is(j3)&&(e=new j$(e.diagnostics,e.panel,r.value));return e},provide:e=>[NS.from(e,e=>e.panel),R2.decorations.from(e,e=>e.diagnostics)]}),j4=OP.mark({class:"cm-lintRange cm-lintRange-active"}),j6=e=>{let t=e.state.field(j9,!1);return!!t&&!!t.panel&&(e.dispatch({effects:j5.of(!1)}),!0)},j7=[{key:"Mod-Shift-m",run:e=>{var t;let r,n,i=e.state.field(j9,!1);i&&i.panel||e.dispatch({effects:j1(e.state,[j5.of(!0)])});let o=(t=Ma.open,(n=(r=e.plugin(Nx))?r.specs.indexOf(t):-1)>-1?r.panels[n]:null);return o&&o.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(j9,!1);if(!t)return!1;let r=e.state.selection.main,n=t.diagnostics.iter(r.to+1);return(!!n.value||!!(n=t.diagnostics.iter(0)).value&&(n.from!=r.from||n.to!=r.to))&&(e.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),!0)}}],j8=Lw.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(Me);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){clearTimeout(this.timeout);let e=Date.now();if(e<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-e);else{this.set=!1;let{state:e}=this.view,{sources:t}=e.facet(Me);t.length&&function(e,t,r){let n=[],i=-1;for(let o of e)o.then(r=>{n.push(r),clearTimeout(i),n.length==e.length?t(n):i=setTimeout(()=>t(n),200)},r)}(t.map(e=>Promise.resolve(e(this.view))),t=>{var r,n;this.view.state.doc==e.doc&&this.view.dispatch((r=this.view.state,n=t.reduce((e,t)=>e.concat(t)),{effects:j1(r,[j2.of(n)])}))},e=>{Lb(this.view.state,e)})}}update(e){let t=e.state.facet(Me);(e.docChanged||t!=e.startState.facet(Me)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),Me=E$.define({combine:e=>({sources:e.map(e=>e.source).filter(e=>null!=e),...AS(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:Mt,tooltipFilter:Mt,needsRefresh:(e,t)=>e?t?r=>e(r)||t(r):e:t,hideOn:(e,t)=>e?t?(r,n,i)=>e(r,n,i)||t(r,n,i):e:t,autoPanel:(e,t)=>e||t})})});function Mt(e,t){return e?t?(r,n)=>t(e(r,n),n):e:t}function Mr(e,t={}){return[Me.of({source:e,config:t}),j8,Mu]}function Mn(e){let t=[];if(e)s:for(let{name:r}of e){for(let e=0;e<r.length;e++){let n=r[e];if(/[a-zA-Z]/.test(n)&&!t.some(e=>e.toLowerCase()==n.toLowerCase())){t.push(n);continue s}}t.push("")}return t}function Mi(e,t,r){var n;let i=r?Mn(t.actions):[];return jQ("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},jQ("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null==(n=t.actions)?void 0:n.map((r,n)=>{let o=!1,s=n=>{if(n.preventDefault(),o)return;o=!0;let i=j0(e.state.field(j9).diagnostics,t);i&&r.apply(e,i.from,i.to)},{name:a}=r,l=i[n]?a.indexOf(i[n]):-1,c=l<0?a:[a.slice(0,l),jQ("u",a.slice(l,l+1)),a.slice(l+1)];return jQ("button",{type:"button",class:"cm-diagnosticAction"+(r.markClass?" "+r.markClass:""),onclick:s,onmousedown:s,"aria-label":` Action: ${a}${l<0?"":` (access key "${i[n]})"`}.`},c)}),t.source&&jQ("div",{class:"cm-diagnosticSource"},t.source))}class Mo extends OV{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return jQ("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Ms{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(0xffffffff*Math.random()).toString(16),this.dom=Mi(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Ma{constructor(e){this.view=e,this.items=[];let t=t=>{if(27==t.keyCode)j6(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65)||!(t.keyCode<=90)||!(this.selectedIndex>=0))return;let{diagnostic:r}=this.items[this.selectedIndex],n=Mn(r.actions);for(let i=0;i<n.length;i++)if(n[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=j0(this.view.state.field(j9).diagnostics,r);t&&r.actions[i].apply(e,t.from,t.to)}}t.preventDefault()},r=e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)};this.list=jQ("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:r}),this.dom=jQ("div",{class:"cm-panel-lint"},this.list,jQ("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>j6(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(j9).selected;if(!e)return -1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return -1}update(){let{diagnostics:e,selected:t}=this.view.state.field(j9),r=0,n=!1,i=null,o=new Set;for(e.between(0,this.view.state.doc.length,(e,s,{spec:a})=>{for(let e of a.diagnostics){if(o.has(e))continue;o.add(e);let s=-1,a;for(let t=r;t<this.items.length;t++)if(this.items[t].diagnostic==e){s=t;break}s<0?(a=new Ms(this.view,e),this.items.splice(r,0,a),n=!0):(a=this.items[s],s>r&&(this.items.splice(r,s-r),n=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),i=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),r++}});r<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)n=!0,this.items.pop();0==this.items.length&&(this.items.push(new Ms(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),n=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let r=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/r:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/r)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),n&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;e!=r.dom;)t();e=r.dom.nextSibling}else this.list.insertBefore(r.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=j0(this.view.state.field(j9).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:j3.of(t)})}static open(e){return new Ma(e)}}function Ml(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}let Mc=R2.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Ml("#d11")},".cm-lintRange-warning":{backgroundImage:Ml("orange")},".cm-lintRange-info":{backgroundImage:Ml("#999")},".cm-lintRange-hint":{backgroundImage:Ml("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),Mu=[j9,R2.decorations.compute([j9],e=>{let{selected:t,panel:r}=e.field(j9);return t&&r&&t.from!=t.to?OP.set([j4.range(t.from,t.to)]):OP.none}),function(e,t={}){let r=Af.define(),n=E9.define({create:()=>[],update(e,n){if(e.length&&(t.hideOnChange&&(n.docChanged||n.selection)?e=[]:t.hideOn&&(e=e.filter(e=>!t.hideOn(n,e))),n.docChanged)){let t=[];for(let r of e){let e=n.changes.mapPos(r.pos,-1,EP.TrackDel);if(null!=e){let i=Object.assign(Object.create(null),r);i.pos=e,null!=i.end&&(i.end=n.changes.mapPos(i.end)),t.push(i)}}e=t}for(let t of n.effects)t.is(r)&&(e=t.value),t.is(Nv)&&(e=[]);return e},provide:e=>Nf.from(e)});return{active:n,extension:[n,Lw.define(i=>new Nb(i,e,n,r,t.hoverTime||300)),Ng]}}(function(e,t,r){let{diagnostics:n}=e.state.field(j9),i,o=-1,s=-1;n.between(t-(r<0),t+ +(r>0),(e,n,{spec:a})=>{if(t>=e&&t<=n&&(e==n||(t>e||r>0)&&(t<n||r<0)))return i=a.diagnostics,o=e,s=n,!1});let a=e.state.facet(Me).tooltipFilter;return(i&&a&&(i=a(i,e.state)),i)?{pos:o,end:s,above:e.state.doc.lineAt(o).to<s,create:()=>{var t;return{dom:(t=e,jQ("ul",{class:"cm-tooltip-lint"},i.map(e=>Mi(t,e,!1))))}}}:null},{hideOn:function(e,t){let r=t.pos,n=t.end||r,i=e.state.facet(Me).hideOn(e,r,n);if(null!=i)return i;let o=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(j2))||e.changes.touchesRange(o.from,Math.max(o.to,n)))}}),Mc],Md=Ad.define();function Mp(e){let{editorId:t,docString:r,onFocus:n,onBlur:i,onChange:o,onLintErrors:s,initialState:a,onEditorHeightChange:l,readOnly:c}=e,u=(0,A.useRef)(null),d=(0,A.useRef)(null),{current:p}=d,h=(0,A.useCallback)(e=>{e.docChanged&&"function"==typeof o&&!e.transactions.some(e=>e.annotation(Md))&&o(e.state.doc.toString(),e)},[o]),f=(0,A.useCallback)(e=>{if(s){let t=[];!function(e,t){let r=e.field(j9,!1);if(r&&r.diagnostics.size){let e=[],n=[],i=-1;for(let o=AE.iter([r.diagnostics]);;o.next()){for(let r=0;r<e.length;r++)(!o.value||0>o.value.spec.diagnostics.indexOf(e[r]))&&(t(e[r],n[r],i),e.splice(r,1),n.splice(r--,1));if(!o.value)break;for(let t of o.value.spec.diagnostics)0>e.indexOf(t)&&(e.push(t),n.push(o.from));i=o.to}}}(e.state,e=>{t.push(e)}),s(t)}},[s]);(0,A.useEffect)(()=>{if(u.current&&!d.current){let e=((e=[])=>{var t;let r,n,i=Z0.define([...jJ,...e]);return[R2.theme(jK),(t={fallback:!0},r=[Z3],i instanceof Z0&&(i.module&&r.push(R2.styleModule.of(i.module)),n=i.themeType),(null==t?void 0:t.fallback)?r.push(Z2.of(i)):n?r.push(Z1.computeN([R2.darkTheme],e=>e.facet(R2.darkTheme)==("dark"==n)?[i]:[])):r.push(Z1.of(i)),r)]})(),t=c?[]:[...jb,...j7,...GA,jv],n=[R2.updateListener.of(h),R2.updateListener.of(f),new ZL(jX),...c?[]:[[Mr(e=>{let t,r=e.state.doc.toString(),n=[],i=/,\s*([}\]])/g;for(;null!==(t=i.exec(r));)n.push({from:t.index,to:t.index+1,severity:"error",message:"Trailing commas are not allowed in JSON"});return n}),Mr(e=>{try{JSON.parse(e.state.doc.toString())}catch(i){var t;let r;if(!(i instanceof SyntaxError))throw i;let n=(t=e.state.doc,(r=i.message.match(/at position (\d+)/))?Math.min(+r[1],t.length):(r=i.message.match(/at line (\d+) column (\d+)/))?Math.min(t.line(+r[1]).from+ +r[2]-1,t.length):0);return[{from:n,message:i.message,severity:"error",to:n}]}return[]},{delay:300})]],...c?[]:[function(e={}){return[Gm,Gf.of(e),R2.domEventHandlers({beforeinput(e,t){let r="historyUndo"==e.inputType?Gb:"historyRedo"==e.inputType?Gv:null;return!!r&&(e.preventDefault(),r(t))}})]}()],...e,R2.lineWrapping,...c?[Ak.readOnly.of(!0)]:[],...t.length>0?[Ne.of(t)]:[]];d.current=new R2({state:Ak.create({doc:r,selection:a?.startCursorAtLine?{anchor:a.startCursorAtLine}:void 0,extensions:n}),parent:u.current})}},[r,a,h,f,s]),(0,A.useEffect)(()=>()=>{d.current?.destroy()},[]),(0,A.useEffect)(()=>{l(d.current?.contentDOM.clientHeight??0)},[l,d.current?.contentDOM.clientHeight]);let m=null!==d.current;return(0,A.useEffect)(()=>{m&&a?.autoFocus&&d.current?.focus()},[m,a?.autoFocus]),(0,E.jsx)("div",{className:"_1ndqidq0",role:"textbox","data-enable-grammarly":"false","data-testid":t,id:t,tabIndex:0,onFocus:n,onBlur:e=>{i?.(e,p?.contentDOM.textContent??"")},onKeyDown:e=>{e.stopPropagation()},ref:u})}var Mh=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/legacy/TabContent/FlagDevServerTabContent.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA61UwXKbMBC9+yt06Ux8kEe4TuzIH9NZxAIaC0kjCYPbyb93JCCG0qTJpCdgtfve26dddj8y5usL9Iz82hBSGh2olz+Rk+xg+/MU6lBWdeDkkbEYE0YZx8kV3AOlytL0TSsHN7pnbBtTCumtghsnpcKEA0pWmsqAjedEoA7oYrgCy8lpoGqkpp0sQs1JoomlnGTnzctmN+nMkk5zRVcq03FSy6JAHbMD9oHeD1Apab308airZUDqLQjkRJvOgV3zzUj2iWTVQnzSQjoUQRrNow1to1+7mAybVK8baqCfvgUo8ZAx9o1Q8sxsv10I+L66jf0A/o7zh9H5VFVCI9VtljiL0sZok8xI+f/Dy5n0Q5LegKukpgrLwEn2NIj//EzMcB8Tbj0O4oGxAfMuEtpgYsQLZ5TKwdF3zDoxtiXBgfYWHOqwLBzvKNRSLzXwOvIlJR+iOa5oFmicdphfZKCvYAl6pB+3IgdxqZxpdcE/BUVD3TZ5ApxDvOVGojKuQEcdFLL140Cv2/8a1/GjXH9jcSAuK5a3THmamxlXLdJa4+WwvQ4VBHnFRc0x1dyTIPdGtQHTUhg77vEw1ul1AT8Hmo3KXey/RjLRxHZG+j8rCdvtPUHwS9WnxW6stDwvf2e5MuJy3rz8BqohAoX8BQAA"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Mf={};Mf.styleTagTransform=kK(),Mf.setAttributes=kB(),Mf.insert=kX().bind(null,"head"),Mf.domAPI=kF(),Mf.insertStyleElement=kH(),kW()(Mh.A,Mf),Mh.A&&Mh.A.locals&&Mh.A.locals;var Mm="_10shkax7",Mg="_10shkax3",Mb="_10shkax1",Mv="_10shkax0",My="_10shkax5",Mx="_10shkax8",Mw="_10shkax4",Mk="_10shkax2",MS="_10shkax6",MC=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/legacy/LocalObjectFlagControlListItem.css.ts.vanilla.css","source":"Ll8xdGFiZzhkMCB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKfQouXzF0YWJnOGQxIHsKICBkaXNwbGF5OiBmbGV4OwogIGZsZXgtZGlyZWN0aW9uOiByb3c7CiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuOwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7Cn0KLl8xdGFiZzhkMiB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIGdhcDogNHB4OwogIGZsZXg6IDE7CiAgbWluLXdpZHRoOiAwOwogIG1heC13aWR0aDogY2FsYygxMDAlIC0gOTBweCk7Cn0KLl8xdGFiZzhkMyB7CiAgd2hpdGUtc3BhY2U6IG5vd3JhcDsKICBvdmVyZmxvdzogaGlkZGVuOwogIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzOwp9"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),M_={};M_.styleTagTransform=kK(),M_.setAttributes=kB(),M_.insert=kX().bind(null,"head"),M_.domAPI=kF(),M_.insertStyleElement=kH(),kW()(MC.A,M_),MC.A&&MC.A.locals&&MC.A.locals;var MT=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/CopyableText.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA5VU227bMAx9z1cQBQI02FTIbtKL8iN7GxSLjoXJkibJidOh/z5IclwnabL1zaAPD8nDIz78LF5F8XtHKfyZAVjjZZBGM3CoeJA7XM8AhPRW8QMDqZXUSGqFfYy3UpO9FKFhQNez99nDkaxIZNfSuJJbTWTA1jOoUAd0l2wAG1792jrTaUEqo4yLPA06GdJP4wQ6Btro1GLVOR8h1sgjn+VCSL0lTm6bwGBp+2lUYR0Y0NNgMPYCuDEhmHYM58LEcSE7P0aD4/qo3HnfQB9KD8h9ajRgH0hSgEHs4VQ3Vpuq80k904Wo2nHESxTZSS83Ck/Rpe3BGyUF7Li7J0TZ3AXxDRdmT5I8vIqrJYlmsf5IJ6auPQYGRRxrUrJMRWqjA/HyDRkUZR582MxZra3jB7KkNHGnrJq3Uh0mwEmUtEYbb3mFuZcdulqZPYNGCoF6VO3jByolrZc+/to3MiBJ6VGrveP2tjdZE4ngbLYbg5RpkAnF49lb4RtvVBcw+yPbpeKqui8oncM3eLF9mix7rljNR8vUxrUsfyoe8Md9luzS+p/19TwIfANSTHdwurkU2mN+HCtKJ55n8GT7EXjm+LHMSZy0KGTXLm5sZGP6wYQMZgAUaLQZ0CtG7STxWBktuDssvg8Jy68lRPjL11LKYfL/y5nFwd6I1AJ7BmWxfF5SWrxmMfMpIrhDHfwn7/iRMV4HdIP/dEAdGNzdra+aK92naKoPN63oDTeRFZ3nlUzuajPsnE6Wm7mextuROCx3qMPUAjnxX7DU5dO1OzSx7vtflH4xun4GAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),MI={};function ME({text:e,onCopy:t,ariaLabel:r,title:n,className:i,copiedMessage:o="Copied!",copiedDuration:s=2e3}){let[a,l]=(0,A.useState)(!1),c=(0,A.useRef)(null),u=(0,A.useCallback)(()=>{navigator.clipboard.writeText(e),l(!0),t?.(e),c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{l(!1),c.current=null},s)},[e,t,s]);(0,A.useEffect)(()=>()=>{c.current&&clearTimeout(c.current)},[]);let d=`Copy ${e} to clipboard`,p=`Copy ${e} to clipboard`;return(0,E.jsxs)("div",{className:"_19d1qv00",children:[(0,E.jsx)("button",{className:`_19d1qv01 ${i||""}`,onClick:u,title:n??d,"aria-label":r??p,children:(0,E.jsx)("span",{className:"_19d1qv02",children:e})}),(0,E.jsx)(oG,{children:a&&(0,E.jsx)(oI.div,{className:"_19d1qv03",initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0,y:5},transition:{duration:.2},role:"status","aria-live":"polite",children:o})})]})}function MA(e){let{handleClearOverride:t,handleOverride:r,handleHeightChange:n,onToggleStarred:i,flag:o,size:s,start:a}=e,{isStarred:l,toggleStarred:c}=kT(),u=JSON.stringify(o.currentValue,null,2),[d,p]=(0,A.useState)(!1),[h,f]=(0,A.useState)(u),[m,g]=(0,A.useState)(!1),b=wg();(0,A.useEffect)(()=>{n(80)},[]);let v=(0,A.useCallback)(e=>{b.trackFlagKeyCopy(e)},[b]);return(0,E.jsx)("div",{"data-testid":`flag-row-${o.key}`,className:Mm,style:{height:s,transform:`translateY(${a}px)`,borderBottom:"1px solid var(--lp-color-gray-600);"},children:(0,E.jsx)(CL,{className:"_10shkax9",children:(0,E.jsxs)("div",{className:"_1tabg8d0",children:[(0,E.jsxs)("div",{className:"_1tabg8d1",children:[(0,E.jsxs)("div",{className:Mk,children:[(0,E.jsxs)("span",{className:Mv,children:[(0,E.jsx)("span",{className:"_1tabg8d3","data-testid":`flag-name-${o.key}`,children:o.name}),o.isOverridden&&(0,E.jsx)(I1,{onClear:()=>t(o.key)})]}),(0,E.jsx)(ME,{text:o.key,className:Mg,onCopy:v})]}),(0,E.jsxs)("div",{className:Mw,children:[(0,E.jsx)(Ey,{flag:o,isEditing:d,handleEdit:()=>{f(u),p(!0)},handleConfirm:()=>{r(o.key,JSON.parse(h)),p(!1),n(80)},handleCancel:()=>{p(!1),n(80)},onOverride:()=>r(o.key,h),hasErrors:m}),(0,E.jsx)(I6,{flagKey:o.key,isStarred:l(o.key),onToggle:i||c})]})]}),(0,E.jsx)(oG,{"data-testid":`json-editor-${o.key}`,mode:"wait",children:d&&(0,E.jsx)(oI.div,{initial:{opacity:0,height:0,y:-10},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-10},transition:{duration:.25,ease:kI,height:{duration:.3,ease:kI}},style:{overflow:"hidden"},children:(0,E.jsx)(Mp,{docString:h,onChange:e=>{f(e)},onLintErrors:e=>{g(e.length>0)},"data-testid":`flag-input-${o.key}`,editorId:`json-editor-${o.key}`,initialState:{startCursorAtLine:0,autoFocus:!0},onEditorHeightChange:e=>{n(80+e+20)}})},`json-editor-${o.key}`)})]})})})}function MO(e){let{flagOverridePlugin:t,reloadOnFlagChangeIsEnabled:r}=e,{searchTerm:n}=wy(),i=wg(),{flags:o,isLoading:s}=CZ(),{isStarred:a,toggleStarred:l,clearAllStarred:c,starredCount:u}=kT(),[d,p]=(0,A.useState)(new Set(["all"])),h=(0,A.useRef)(null),f=(0,A.useCallback)(()=>h.current,[]),m=(0,A.useCallback)(e=>{p(t=>{if("all"===e)return i.trackFilterChange("all","selected"),new Set(["all"]);let r=new Set(t);return(r.delete("all"),r.has(e)?(r.delete(e),i.trackFilterChange(e,"deselected")):(r.add(e),i.trackFilterChange(e,"selected")),0===r.size)?(i.trackFilterChange("all","selected"),new Set(["all"])):r})},[i]),g=(0,A.useCallback)(e=>{t&&(t.removeOverride(e),i.trackFlagOverride(e,null,"remove"),r&&window.location.reload())},[t,i,r]),b=(0,A.useMemo)(()=>Object.values(o).filter(e=>e.isOverridden).length,[o]),v=Object.entries(o),y=(0,A.useMemo)(()=>v.filter(([e,t])=>{let r=t.name.toLowerCase().includes(n.toLowerCase())||e.toLowerCase().includes(n.trim().toLowerCase()),i=!0;return i=!!d.has("all")||d.has(Ij)&&t.isOverridden||d.has(IM)&&a(e),r&&i}),[v,n,d,a]),x=CI({count:y.length,getScrollElement:f,estimateSize:()=>80,overscan:5}),w=(0,A.useCallback)(e=>{let t=a(e);l(e),i.trackStarredFlag(e,t?"unstar":"star")},[a,l,i]),k=(0,A.useCallback)((e,t)=>{t>80?x.resizeItem(e,t):setTimeout(()=>{x.resizeItem(e,t)},125)},[x]),S=(0,A.useCallback)(e=>{i.trackFlagKeyCopy(e)},[i]);if(!t)return(0,E.jsx)(Iq,{title:"Flag override plugin is not available",subtitle:"To use local flag overrides, ensure the flag override plugin is added to your LaunchDarkly client configuration."});let C=t.getClient(),_=(e,n)=>{t.setOverride(e,n),i.trackFlagOverride(e,n,"set"),r&&window.location.reload()};if(!C)return(0,E.jsx)(Iq,{title:"LaunchDarkly client is not available",subtitle:"To use local flag overrides, ensure your LaunchDarkly client is properly initialized."});if(s)return(0,E.jsx)(Iq,{title:"Loading flags...",subtitle:"Please wait while we load your feature flags"});if(0===v.length)return(0,E.jsx)(Iq,{title:"No flags available",subtitle:"Make sure your LaunchDarkly client is properly initialized with flags"});let{title:T,subtitle:I}=d.has(Ij)&&!d.has(IM)&&0===b?{title:"No overridden flags found",subtitle:"You have not set any overrides yet"}:d.has(IM)&&!d.has(Ij)&&0===u?{title:"No starred flags found",subtitle:"Star flags to see them here"}:{title:"No flags found",subtitle:"Try adjusting your search"};return(0,E.jsx)(IV.Provider,{value:{activeFilters:d,onFilterToggle:m},children:(0,E.jsx)("div",{"data-testid":"flag-sdk-tab-content",children:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(IK,{totalFlags:v.length,filteredFlags:y.length,totalOverriddenFlags:b,starredCount:u,onClearOverrides:()=>{let e=Object.keys(t.getAllOverrides()).length;t.clearAllOverrides(),i.trackFlagOverride("*",{count:e},"clear_all"),i.trackFilterChange("all","selected"),p(new Set(["all"])),r&&window.location.reload()},onClearStarred:()=>{i.trackStarredFlag("*","clear_all"),c(),i.trackFilterChange("all","selected"),p(new Set(["all"]))},isLoading:s}),0===y.length&&(n.trim()||!d.has("all"))?(0,E.jsx)(Iq,{title:T,subtitle:I}):(0,E.jsx)("div",{ref:h,className:My,children:(0,E.jsx)(CO,{children:(0,E.jsx)("div",{className:MS,style:{height:x.getTotalSize()},children:x.getVirtualItems().map(e=>{let t=y[e.index];if(!t)return null;let[r,n]=t;return"object"===n.type?(0,E.jsx)(oI.div,{layout:!0,initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:kI,layout:{duration:.25,ease:kI}},children:(0,E.jsx)(MA,{handleHeightChange:t=>k(e.index,t),flag:n,start:e.start,size:e.size,handleClearOverride:g,handleOverride:_,onToggleStarred:w},e.key)},e.key):(0,E.jsx)("div",{className:Mm,style:{height:`${e.size}px`,transform:`translateY(${e.start}px)`,borderBottom:"1px solid var(--lp-color-gray-600);"},"data-testid":`flag-row-${r}`,children:(0,E.jsxs)(CL,{className:Mx,children:[(0,E.jsxs)("div",{className:Mk,children:[(0,E.jsxs)("span",{className:Mv,children:[(0,E.jsx)("span",{className:Mb,"data-testid":`flag-name-${r}`,children:n.name}),n.isOverridden&&(0,E.jsx)(I1,{onClear:()=>g(r)})]}),(0,E.jsx)(ME,{text:r,className:Mg,onCopy:S})]}),(0,E.jsxs)("div",{className:Mw,children:[(e=>{let t=t=>_(e.key,t);switch(e.type){case"boolean":return(0,E.jsx)(Eb,{flag:e,onOverride:t});case"string":case"number":return(0,E.jsx)(Ev,{flag:e,onOverride:t})}})(n),(0,E.jsx)(I6,{flagKey:n.key,isStarred:a(n.key),onToggle:w})]})]})},e.key)})})})})]})})})}function ML(e){let{flagOverridePlugin:t,reloadOnFlagChangeIsEnabled:r}=e;return t?(0,E.jsx)(CN,{flagOverridePlugin:t,children:(0,E.jsx)(MO,{flagOverridePlugin:t,reloadOnFlagChangeIsEnabled:r})}):(0,E.jsx)(Iq,{title:"Flag override plugin is not available",subtitle:"To use local flag overrides, ensure the flag override plugin is added to your LaunchDarkly client configuration."})}function MR(e,t){let[r,n]=(0,A.useState)([]);(0,A.useEffect)(()=>{if(!e)return void n([]);let t=()=>{n([...e.getEvents()].reverse())};return t(),e.subscribe(t)},[e]);let i=(0,A.useMemo)(()=>{if(!t)return r;let e=t.toLowerCase();return r.filter(t=>t.displayName.toLowerCase().includes(e)||t.kind.toLowerCase().includes(e)||t.category.toLowerCase().includes(e)||t.key&&t.key.toLowerCase().includes(e))},[r,t]),o=(0,A.useMemo)(()=>{let e={},t={};return i.forEach(r=>{e[r.kind]=(e[r.kind]||0)+1,r.key&&(t[r.key]=(t[r.key]||0)+1)}),{totalEvents:i.length,eventsByKind:e,eventsByFlag:t}},[i]);return{events:i,eventStats:o}}function MN(e=1e3){let[t,r]=(0,A.useState)(()=>new Date);return(0,A.useEffect)(()=>{let t=setInterval(()=>{r(new Date)},e);return()=>clearInterval(t)},[e]),t}MI.styleTagTransform=kK(),MI.setAttributes=kB(),MI.insert=kX().bind(null,"head"),MI.domAPI=kF(),MI.insertStyleElement=kH(),kW()(MT.A,MI),MT.A&&MT.A.locals&&MT.A.locals;var MZ=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/DoNotTrackWarning.css.ts.vanilla.css","source":"Ll8xMm9pM29mMCB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7CiAgbWluLWhlaWdodDogNDAwcHg7CiAgcGFkZGluZzogNDBweCAyMHB4OwogIHRleHQtYWxpZ246IGNlbnRlcjsKfQouXzEyb2kzb2YxIHsKICBiYWNrZ3JvdW5kOiB2YXIoLS1scC1jb2xvci1ncmF5LTgwMCk7CiAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tbHAtY29sb3ItZ3JheS03MDApOwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTMwMCk7CiAgcGFkZGluZzogMjRweDsKICBib3JkZXItcmFkaXVzOiA4cHg7CiAgZm9udC1zaXplOiAxNHB4OwogIG1heC13aWR0aDogNDAwcHg7Cn0KLl8xMm9pM29mMiB7CiAgZm9udC13ZWlnaHQ6IDYwMDsKICBtYXJnaW4tYm90dG9tOiAxNnB4OwogIGZvbnQtc2l6ZTogMTZweDsKICBjb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS0yMDApOwp9Ci5fMTJvaTNvZjMgewogIG1hcmdpbi1ib3R0b206IDE2cHg7CiAgY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktMzAwKTsKfQouXzEyb2kzb2Y0IHsKICBmb250LXNpemU6IDEzcHg7CiAgY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktNDAwKTsKICBmb250LXN0eWxlOiBpdGFsaWM7Cn0="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),MG={};function Mj(){return(0,E.jsx)("div",{className:"_12oi3of0",children:(0,E.jsxs)("div",{className:"_12oi3of1",children:[(0,E.jsx)("div",{className:"_12oi3of2",children:"Do Not Track is enabled"}),(0,E.jsx)("div",{className:"_12oi3of3",children:'No events will be captured due to your browser\'s "Do Not Track" setting. This affects both the toolbar and LaunchDarkly analytics.'}),(0,E.jsx)("div",{className:"_12oi3of4",children:'To enable event tracking, disable "Do Not Track" in your browser settings.'})]})})}function MM(e){let{icon:t,label:r,href:n,target:i="_blank",className:o,size:s="large",onClick:a}=e;return(0,E.jsx)("a",{className:`${(()=>{switch(s){case"small":return Ef;case"medium":return Eh;default:return Em}})()} ${o||""}`,target:i,href:n,"aria-label":r,onClick:a,children:t})}function MV({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M10 3.417a.75.75 0 0 1 .75.75V9.25h5.083a.75.75 0 0 1 0 1.5H10.75v5.083a.75.75 0 0 1-1.5 0V10.75H4.167a.75.75 0 0 1 0-1.5H9.25V4.167a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})})}MG.styleTagTransform=kK(),MG.setAttributes=kB(),MG.insert=kX().bind(null,"head"),MG.domAPI=kF(),MG.insertStyleElement=kH(),kW()(MZ.A,MG),MZ.A&&MZ.A.locals&&MZ.A.locals;var MW=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/legacy/ActionButtonsContainer.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA+1TzY7aMBC+8xRzXA6mjhfo1jxMNY6dxMLYlu2Q0KrvXsUglLDAUlppL71Fk5n5fubz4nuxXy/bb2sKP2cAHqXUtuZQUN8D3cwAhAtSBSJcSm7HofA9RGe0hD2GF0KMJ6UzLpA64IGsKZ1vhim3V6EyriM9B2yTG2pSR2/wwKEyqh8KNXoObz5/n5CJUVXiwOi0GnTdjMqxDM4YgeGIza9y+UrpHFJAGz0GZdN0sNMyNRxSo+1m9mu2OPvAOemU2OpEzs3ZmkYdOSyPFASW2zq41ko+BflgF0lNuxN543jFLQGjCwSUuo0c2EDgQ5SA5fYdyi2ixUN83iZ8HorCDODOhdip5Zy6te+hYCeDp6rXx2rlbCJR/1D83JhL3ek6K5pDW7YhDqjeaZtUGEpZu07aWQ5oDNAFi6AwquFn1+ikSPRYKg7WdQF9Xm1UT2ITtN3y4TWMLeNSRxRGyeyd81jqdOBAF6sxAesSQWNcp+TFeOXKNh5n22S0zcBWXesiex21MGrazW7ZHxuUriNZOZZJ7xXJa7LXp3HiqiqqxIFcxqngzfB4uXXp5axx/kxg71x+lTtHqOx/Av80gezvEsgeSiD7hASyT0ng6zuAUAt8qYLbXS4QAa0k5QEtERjVHALUIOAL0EVxBf6ZPa93kns5NpXxmHlPaVv9I3HLgfJvXWjM43oIAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),MP={};MP.styleTagTransform=kK(),MP.setAttributes=kB(),MP.insert=kX().bind(null,"head"),MP.domAPI=kF(),MP.insertStyleElement=kH(),kW()(MW.A,MP),MW.A&&MW.A.locals&&MW.A.locals;let MF=({children:e})=>(0,E.jsx)("div",{className:"_1v64u960",children:e});var MD=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/legacy/TabContent/EventsTabContent.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA6VW246bMBB936+wVFXaPjjiZpK4L/2TyuAheGNsaptN0qr/XmFoMAvspX1KYHzOmRnPhW9nuFWGNWDR98Slqf5xRr8eEIo++x+EdMtK4W4UxV/9szNM2UqbhiJbMgmP8Zfe8PsBIbIERbt0C7ZL7sA4+rjc74fd6HDkoS3jXKgTRYf2ipKovfbHCm04GFxo53RDUdxekdVScPTMzCPGssWlltrgk2E3vI8iz12w8nwyulN8sNLV0wd/evIi9l5UWjlsxU+gKE4GH17hyEZFj7qAONWOIhJFIW8y8Eq4jjnhwraS3ah/93W0YS4MlE5oRXvBrlG95cRairLBjUYofBHc1RRF/bN+BlNJfaGoFpyDP98wcxIKm8GROO+RkyfpIsKReuZ+FkVvRJ2MUa954ODq8GQAKUVrhe1Nl1o4wLZlJVCk9MWwdhnX5G32z/cxcZAFR7wSMRkivhdg0l5RPqs/w7jo7P0qfJBBYXdtC6ZkFnqjBOfA+Dg9W7Qj82vIvVPLIv0U5aTK8iDETzyuGJAQvPfg8Z4lVM73y2pZMSlOCgsHjaWoBOXAhEwHz3RHFVKX55md1v09UqXdI+XCskIC/+JB76iN9/Vg/uK+jlupiSFlBzZLTQGsghDMtsBZQUiehuAqrbIqD8HFFvh4jIu4mIGhZCULweUWmBzi8rAPwXDkpKpCMN9UZmkWJ3NlvmczZdgCp/ssJvFMmcAeihBceXA9dkFKxpk7dS/rnO7f2NJoKQtm3pqnw7RvmQHl5sCxw10t1MyFoci8I+9S2S9UQjKKL1CchcN3Ls88io+NMmWLfoQJu7prXpbJa6tlfXosYv8/qf07pdZEDCvPC5GNjJzCRPbr3k9MbcWwsgxI5sTzrB/rYa3fz7DCatk5PySdbsc1Nsww/3fGHvAENfKR1T5+e4zqL5Eo2iUWgR/ak5aYD8W3N/TqkEXoqbNOVDdcauVAudC06De/5P9huT2t+7rhUaAyUciV9vjr32F1A5Lh5tdGdFQcD37iMCUaNiTq/kka78iQbSwU1p1DQlVCCTfLfrNY1/n2un4lU+mLTKmtD59XOMjfGup3vc/p2hLVsxE6Vu4f+LrrfpMLAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),MX={};function Mz(e){let{eventInterceptionPlugin:t,baseUrl:r}=e,{searchTerm:n}=wy(),i=wg(),{events:o,eventStats:s}=MR(t,n),a=MN(),l=(0,A.useRef)(null),c=(0,A.useMemo)(()=>v7(),[]),u=CI({count:o.length,getScrollElement:()=>l.current,estimateSize:()=>80,overscan:5});return t?c?(0,E.jsx)(Mj,{}):0===o.length?(0,E.jsxs)(oI.div,{className:"_2t33oqi",initial:kA.eventList.liveTail.container.initial,animate:kA.eventList.liveTail.container.animate,transition:kA.eventList.liveTail.container.transition,children:[(0,E.jsxs)("div",{className:"_2t33oqj",children:[(0,E.jsx)(oI.div,{className:"_2t33oql",animate:{scale:kA.eventList.liveTail.dot.scale,opacity:kA.eventList.liveTail.dot.opacity},transition:kA.eventList.liveTail.dot.transition}),(0,E.jsx)("span",{className:"_2t33oqm",children:n?"No matching events - still listening...":"Listening for events..."})]}),(0,E.jsx)("div",{className:"_2t33oqn",children:"Events will appear here in real-time as they occur"})]}):(0,E.jsxs)("div",{"data-testid":"events-tab-content",children:[(0,E.jsx)(MF,{children:(0,E.jsxs)("button",{className:"_1v64u961",onClick:()=>{t&&t.clearEvents()},disabled:0===o.length,children:["Clear all events (",o.length,")"]})}),(0,E.jsx)("div",{className:"_2t33oq0",children:(0,E.jsxs)("span",{className:"_2t33oq1",children:[s.totalEvents," events captured"]})}),(0,E.jsx)("div",{ref:l,className:"_2t33oqf",children:(0,E.jsx)(CO,{children:(0,E.jsx)("div",{className:"_2t33oqg",style:{height:u.getTotalSize()},children:u.getVirtualItems().map(e=>{var t;let n,s,l,c,u=o[e.index];return u?(0,E.jsx)("div",{"data-testid":"event-item",className:"_2t33oqh",style:{height:`${e.size}px`,transform:`translateY(${e.start}px)`,borderBottom:"1px solid var(--lp-color-gray-600);",cursor:"pointer"},children:(0,E.jsxs)(CL,{className:"_2t33oqo",onClick:()=>{i.trackEventClick(u?.key??u.displayName),console.group(`📝 Event Details: [kind: ${u.kind}, displayName: ${u.displayName}]`),console.table(u),console.groupEnd()},children:[(0,E.jsxs)("div",{className:"_2t33oq2",children:[(0,E.jsx)("span",{className:"_2t33oq3",children:u.displayName}),(0,E.jsx)("span",{className:"_2t33oq4",children:(t=u.timestamp,(l=Math.floor((s=Math.floor((n=Math.floor(Math.floor((a.getTime()-t)/1e3)/60))/60))/24))>0?`${l}d ago`:s>0?`${s}h ago`:n>0?`${n}m ago`:"just now")})]}),(0,E.jsx)("div",{className:(e=>{switch(e){case"feature":return"_2t33oq6 _2t33oq5";case"identify":return"_2t33oq9 _2t33oq5";case"custom":return"_2t33oqa _2t33oq5";case"debug":return"_2t33oqb _2t33oq5";case"summary":return"_2t33oqc _2t33oq5";case"diagnostic":return"_2t33oqd _2t33oq5";default:return"_2t33oqe _2t33oq5"}})(u.kind),children:u.kind}),"feature"===u.kind&&(e=>{if(!e.reason)return!1;let{reason:t}=e;return"ERROR"===t.kind&&"FLAG_NOT_FOUND"===t.errorKind})(u.context)&&(0,E.jsx)("div",{className:"_2t33oq7",children:(0,E.jsx)(MM,{className:"_2t33oq8","data-testid":"add-flag-button",icon:(0,E.jsx)(MV,{}),label:"Add Feature Flag",href:(c=u.context.key||"",`${r}/flags/new?selectProject=1&flagKey=${c}`),size:"medium",onClick:()=>{var e;return e=u.context.key||"",void i.trackOpenFlagDeeplink(e,r)}},`add-flag-${u.context.key}`)})]})},e.key):null})})})})]}):(0,E.jsx)(Iq,{title:"Event interception not available",subtitle:"The event interception plugin is not configured"})}function MB(e,t){if(e===t)return!0;if(null==e||null==t||typeof e!=typeof t)return!1;if("object"==typeof e){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r)if(!n.includes(i)||!MB(e[i],t[i]))return!1;return!0}return e===t}MX.styleTagTransform=kK(),MX.setAttributes=kB(),MX.insert=kX().bind(null,"head"),MX.domAPI=kF(),MX.insertStyleElement=kH(),kW()(MD.A,MX),MD.A&&MD.A.locals&&MD.A.locals;var MU=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Select/Select.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA71W227bMAx971cQBQa0wBTITpqLij3tM4ZhkC3Z1qJIhiQ3SYf9+yDZymw3bZzuAuQhoXk5PDykM/uW7I/f2aLA8OMGoNZWOKEVAcMldeKJP94AMGFrSY8EhJJCcZRJnW/9g51QaC+YqwgkKa4PwUYP0ZbiYPt5M4tVklDllK+QPMRQKUqFhOM7SyDnynHjzd8b60RxRLlWjitHwNY05yjjbs+58h6xOMYf/M+Ki7JyBOZpi6WmjAlVEsCwbi0Zzbel0Y1iBJ6ouUNI1ijXUhtUGnpEmwd8H/y0YdwQSOoDWC0FO+u9wn1vZCgTjSWwbGsVWjlkxTMnkCxaU4g9XzntcuWNsd6n1iLy4AxVcS5USsCz1AKnNgynpDU5dacPvmBoucOU6dEESKWfuAlz6FzeALUMoAbhhc4bG8J147wcCCit+ON789Hcy2winodxfNoiqWku3JEAni37HCrtEJVS7zkLcmgpRfyJK2cj7l62ecjmVUkgCczzg88gSkVA8sJ5m6evkHpPoBKMtToMfr8fcClFbYUNEq2E4ygo11fcG1qPVgcPMCwChms4eAgRcRU68cVViL8LISXxxBiu3Gef7bFrFdnKCLUNOIZaC98LbXZ9xfUKL0PhkxcBox11/C5ZY8bLIchV8H1GQjHPbposVguME4z/91aGHako83PCsKgPkKT1AUyZ0Tv8EbrPbH4fj1lksrtm5wUwlhZtnB70vw7976gpheqoPl0nDyJYpLAOWXeUvaXqQ0g2yyEEdIylAGxutJQZNVFXrhJq+ODCZrajrKmXyBA8IWjPs61w6JSsL7rl6Myf80fO0Hzb7nlv3NeURK5qdtmLFK8fmhcamI+Abtq3XhzEulPDX73eIwiL+JrslBANL498cmblNv3zfeLgrcGux+eC/knwmP3LwRNo6+d/d39fGHUUuYrv+Kdb6ffl9iuM/ni8oZpwpq84MvPLzbVX6xKy1b9CNvHQJRMwbi69k6a1er14k0nDvUbR0zJOlHkmG95lfI2e4LJpi/4CkgGfXW0LAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),MH={};MH.styleTagTransform=kK(),MH.setAttributes=kB(),MH.insert=kX().bind(null,"head"),MH.domAPI=kF(),MH.insertStyleElement=kH(),kW()(MU.A,MH),MU.A&&MU.A.locals&&MU.A.locals;var MY=r("./src/core/context/ReactMountContext.tsx"),MK=r("./src/types/constants.ts");function MJ({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M4.47 6.97a.75.75 0 0 1 1.06 0L10 11.44l4.47-4.47a.75.75 0 1 1 1.06 1.06l-5 5a.75.75 0 0 1-1.06 0l-5-5a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})})}function MQ(e){let{selectedKey:t,onSelectionChange:r,"aria-label":n,placeholder:i,"data-theme":o="dark",className:s,isDisabled:a=!1,options:l}=e,[c,u]=(0,A.useState)(!1),[d,p]=(0,A.useState)(-1),[h,f]=(0,A.useState)({top:0,left:0,width:0}),m=(0,A.useRef)(null),g=(0,A.useRef)(null),b=(0,A.useRef)(null),v=(0,A.useRef)(null),y=(0,MY.K)(),x=l.find(e=>e.id===t),w=(0,A.useCallback)(()=>{!a&&(u(!c),c||p(-1))},[a,c]),k=(0,A.useCallback)(e=>{r?.(e),u(!1),p(-1),g.current?.focus()},[r]),S=(0,A.useCallback)(e=>{if(!a)switch(e.key){case"ArrowDown":e.preventDefault(),c?p(e=>(e+1)%l.length):(u(!0),p(0));break;case"ArrowUp":e.preventDefault(),c?p(e=>e<=0?l.length-1:e-1):(u(!0),p(l.length-1));break;case"Enter":case" ":e.preventDefault(),c?d>=0&&l[d]&&k(l[d].id):(u(!0),p(0));break;case"Escape":e.preventDefault(),u(!1),p(-1),g.current?.focus()}},[a,c,d,l,k]);(0,A.useEffect)(()=>{if(c&&g.current){let e=g.current.getBoundingClientRect();f({top:e.bottom+2,left:e.left,width:e.width})}},[c]),(0,A.useEffect)(()=>{if(c){let e=e=>{let t=e.composedPath();t.some(e=>e.id===b.current?.id)||t.some(e=>e.id===MK.D)&&(e.preventDefault(),e.stopPropagation())};return document.addEventListener("wheel",e,{passive:!1,capture:!0}),document.addEventListener("touchmove",e,{passive:!1,capture:!0}),()=>{document.removeEventListener("wheel",e,{capture:!0}),document.removeEventListener("touchmove",e,{capture:!0})}}},[c,y]),(0,A.useEffect)(()=>{if(!c)return;let e=e=>{let t=e.composedPath(),r=t.some(e=>e.id===v.current?.id),n=t.some(e=>e.id===m.current?.id);r||n||(u(!1),p(-1))};return document.addEventListener("mousedown",e,!0),()=>{document.removeEventListener("mousedown",e,!0)}},[c]);let C=x?.label||i||"Select option",_=x?.label&&n?`${x.label} ${n}`:n||C;return(0,E.jsxs)("div",{ref:m,id:"select-container",className:`_1wyjd4f0 ${s||""}`,"data-theme":o,children:[(0,E.jsxs)("button",{ref:g,type:"button",className:`_1wyjd4f1 ${a?"_1wyjd4f2":""}`,onClick:w,onKeyDown:S,"aria-label":_,"aria-haspopup":"listbox","aria-expanded":c,disabled:a,children:[(0,E.jsx)("span",{className:`_1wyjd4f3 ${!x?"_1wyjd4f4":""}`,children:C}),(0,E.jsx)(MJ,{className:`_1wyjd4f5 ${c?"_1wyjd4f6":""}`})]}),c&&(0,Cp.createPortal)((0,E.jsx)("div",{ref:v,id:"select-dropdown",className:"_1wyjd4f7",style:{position:"fixed",zIndex:jH,top:`${h.top}px`,left:`${h.left}px`,width:`${h.width}px`},"data-theme":o,children:(0,E.jsx)("ul",{ref:b,className:"_1wyjd4f8",id:"select-list",role:"listbox","aria-label":n,children:l.map((e,r)=>(0,E.jsx)("li",{className:`_1wyjd4f9 ${d===r?"_1wyjd4fa":""} ${t===e.id?"_1wyjd4fb":""}`,role:"option","aria-selected":t===e.id,onClick:()=>k(e.id),tabIndex:0,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),k(e.id))},onFocus:()=>p(r),onMouseEnter:()=>p(r),children:e.label},e.id))})}),y)]})}function Mq(e){let{flag:t,onOverride:r,disabled:n=!1}=e;return(0,E.jsx)("div",{className:Ei,children:(0,E.jsx)(II,{"data-theme":"dark",isSelected:t.currentValue,onChange:r,isDisabled:n,className:Ee})})}function M$(e){let{flag:t,onOverride:r,disabled:n=!1}=e,i=t.availableVariations.find(e=>MB(e.value,t.currentValue)),o=t.availableVariations.map(e=>({id:e._id,label:e.name,value:e.value}));return(0,E.jsx)(MQ,{selectedKey:i?._id||null,onSelectionChange:e=>{if(e){let n=t.availableVariations.find(t=>t._id===e);n&&r(n.value)}},"aria-label":"Select variant",placeholder:"Select variant","data-theme":"dark",className:"_1wslzo09",isDisabled:n,options:o})}function M0(e){let{flag:t,onOverride:r,disabled:n=!1}=e,[i,o]=(0,A.useState)(!1),s=String(t.currentValue),[a,l]=(0,A.useState)(s),c=(0,A.useRef)(null);return(0,A.useEffect)(()=>{i&&c.current&&(c.current?.focus(),c.current?.select())},[i]),(0,E.jsx)("div",{className:Eo,children:i?(0,E.jsx)(IN,{"aria-label":`Enter ${t.type} value`,className:En,"data-theme":"dark",children:(0,E.jsxs)(Iy,{className:Et,children:[(0,E.jsx)(Ig,{ref:c,placeholder:`Enter ${t.type} value`,value:a,onChange:e=>l(e.target.value),type:"number"===t.type?"number":"text",onKeyDown:e=>{e.stopPropagation()}}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(Eu,{}),label:"Confirm",onClick:()=>{r("number"===t.type?parseFloat(a):a),o(!1)}}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(ID,{}),label:"Cancel",onClick:()=>{o(!1)}})]})}):(0,E.jsxs)("div",{className:Es,children:[(0,E.jsx)("div",{className:Er,children:s}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(Ec,{}),label:"Edit",onClick:()=>{l(s),o(!0)},disabled:n})]})})}function M1(e){let{reloadOnFlagChangeIsEnabled:t}=e,{searchTerm:r}=wy(),n=wg(),{state:i,setOverride:o,clearOverride:s,clearAllOverrides:a}=kk(),{flags:l}=i,{isStarred:c,toggleStarred:u,clearAllStarred:d,starredCount:p}=kT(),[h,f]=(0,A.useState)(new Set(["all"])),m=(0,A.useRef)(null),g=(0,A.useCallback)(()=>m.current,[]),b=(0,A.useCallback)(e=>{f(t=>{if("all"===e)return n.trackFilterChange("all","selected"),new Set(["all"]);let r=new Set(t);return(r.delete("all"),r.has(e)?(r.delete(e),n.trackFilterChange(e,"deselected")):(r.add(e),n.trackFilterChange(e,"selected")),0===r.size)?(n.trackFilterChange("all","selected"),new Set(["all"])):r})},[n]),v=Object.entries(l),y=(0,A.useMemo)(()=>v.filter(([e,t])=>{let n=t.name.toLowerCase().includes(r.toLowerCase())||e.toLowerCase().includes(r.trim().toLowerCase()),i=!0;return i=!!h.has("all")||h.has(Ij)&&t.isOverridden||h.has(IM)&&c(e),n&&i}),[v,r,h,c]),x=CI({count:y.length,getScrollElement:g,estimateSize:()=>80,overscan:5}),w=(0,A.useMemo)(()=>Object.values(l).filter(e=>e.isOverridden).length,[l]),k=(e,r)=>{o(e,r),n.trackFlagOverride(e,r,"set"),t&&window.location.reload()},S=async()=>{await a(),n.trackFlagOverride("*",{count:w},"clear_all"),n.trackFilterChange("all","selected"),f(new Set(["all"])),t&&window.location.reload()},C=(0,A.useCallback)(e=>{w<=1&&h.has(Ij)&&!h.has(IM)&&f(new Set(["all"])),s(e).then(()=>{n.trackFlagOverride(e,null,"remove"),t&&window.location.reload()})},[w,h,s,n,t]),_=(0,A.useCallback)(e=>{let t=c(e);u(e),n.trackStarredFlag(e,t?"unstar":"star")},[c,u,n]),T=(0,A.useCallback)((e,t)=>{t>80?x.resizeItem(e,t):setTimeout(()=>{x.resizeItem(e,t)},125)},[x]),{title:I,subtitle:O}=h.has(Ij)&&!h.has(IM)&&0===w?{title:"No overridden flags found",subtitle:"You have not set any overrides yet"}:h.has(IM)&&!h.has(Ij)&&0===p?{title:"No starred flags found",subtitle:"Star flags to see them here"}:{title:"No flags found",subtitle:"Try adjusting your search"},L=(0,A.useCallback)(e=>{n.trackFlagKeyCopy(e)},[n]);return(0,E.jsx)(IV.Provider,{value:{activeFilters:h,onFilterToggle:b},children:(0,E.jsx)("div",{"data-testid":"flag-dev-server-tab-content",children:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(IK,{totalFlags:v.length,filteredFlags:y.length,totalOverriddenFlags:w,starredCount:p,onClearOverrides:S,onClearStarred:()=>{n.trackStarredFlag("*","clear_all"),d(),n.trackFilterChange("all","selected"),f(new Set(["all"]))},isLoading:i.isLoading}),0===y.length&&(r.trim()||!h.has("all"))?(0,E.jsx)(Iq,{title:I,subtitle:O}):(0,E.jsx)("div",{ref:m,className:My,children:(0,E.jsx)(CO,{children:(0,E.jsx)("div",{className:MS,style:{height:x.getTotalSize()},children:x.getVirtualItems().map(e=>{let t=y[e.index];if(!t)return null;let[r,n]=t;return"object"===n.type?(0,E.jsx)("div",{className:Mm,children:(0,E.jsx)(MA,{flag:n,size:e.size,start:e.start,handleOverride:k,handleClearOverride:C,handleHeightChange:t=>T(e.index,t),onToggleStarred:_})},e.key):(0,E.jsx)("div",{className:Mm,style:{height:`${e.size}px`,transform:`translateY(${e.start}px)`,borderBottom:"1px solid var(--lp-color-gray-600);"},children:(0,E.jsxs)(CL,{className:Mx,children:[(0,E.jsxs)("div",{className:Mk,children:[(0,E.jsxs)("span",{className:Mv,children:[(0,E.jsx)("span",{className:Mb,children:n.name}),n.isOverridden&&(0,E.jsx)(I1,{onClear:()=>C(n.key)})]}),(0,E.jsx)(ME,{text:n.key,className:Mg,onCopy:L})]}),(0,E.jsxs)("div",{className:Mw,children:[(e=>{let t=t=>k(e.key,t);switch(e.type){case"boolean":return(0,E.jsx)(Mq,{flag:e,onOverride:t,disabled:!e.enabled});case"multivariate":return(0,E.jsx)(M$,{flag:e,onOverride:t,disabled:!e.enabled});case"string":case"number":return(0,E.jsx)(M0,{flag:e,onOverride:t,disabled:!e.enabled});default:return(0,E.jsxs)("div",{children:["Unsupported flag type: ",e.type]})}})(n),(0,E.jsx)(I6,{flagKey:n.key,isStarred:c(n.key),onToggle:_})]})]})},e.key)})})})})]})})})}function M2({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e||""}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Thumb up",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M10.833 4.084A.916.916 0 0 0 9.917 5v.833a4.08 4.08 0 0 1-3.334 4.014v4.32a1.75 1.75 0 0 0 1.75 1.75h5.834l.063.002c.101.01.25-.024.425-.198.18-.18.35-.48.446-.88l.813-4.07A.917.917 0 0 0 15 9.916h-2.5a.75.75 0 0 1-.75-.75V5a.917.917 0 0 0-.917-.917m-4.517 12.63A1.58 1.58 0 0 1 5 17.418H3.333a1.583 1.583 0 0 1-1.583-1.584V10a1.583 1.583 0 0 1 1.583-1.583h2.5a2.583 2.583 0 0 0 2.584-2.583V5a2.417 2.417 0 1 1 4.833 0v3.417H15a2.417 2.417 0 0 1 2.417 2.417q0 .074-.015.147l-.833 4.166-.005.024c-.145.616-.428 1.19-.848 1.61-.419.419-.97.676-1.577.636H8.333a3.25 3.25 0 0 1-2.017-.702M5.083 9.918h-1.75A.083.083 0 0 0 3.25 10v5.834a.083.083 0 0 0 .083.083H5a.083.083 0 0 0 .083-.083z",clipRule:"evenodd"})})}function M5({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e||""}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Thumb down",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M14.139 2.583c.606-.04 1.158.217 1.577.636s.703.994.848 1.61l.005.024.833 4.166q.015.073.015.148A2.416 2.416 0 0 1 15 11.583h-1.75V15a2.417 2.417 0 0 1-4.833 0v-.834a2.583 2.583 0 0 0-2.584-2.583h-2.5A1.583 1.583 0 0 1 1.75 10V4.167a1.583 1.583 0 0 1 1.583-1.584H5a1.58 1.58 0 0 1 1.316.702 3.25 3.25 0 0 1 2.017-.702zM5.083 4.167A.083.083 0 0 0 5 4.083H3.333a.083.083 0 0 0-.083.084V10a.083.083 0 0 0 .083.083h1.75zm1.5 5.986v-4.32a1.75 1.75 0 0 1 1.75-1.75h5.834q.03 0 .063-.003c.101-.008.25.025.425.2.18.179.35.478.446.88l.813 4.07a.917.917 0 0 1-.914.853h-2.5a.75.75 0 0 0-.75.75V15a.917.917 0 0 1-1.833 0v-.834a4.08 4.08 0 0 0-3.334-4.013",clipRule:"evenodd"})})}var M3=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/Feedback/Feedback.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA61V7Y7bIBD8n6dYnVQpkUpqOx8XceqTVFWFzdqmIWDBOh+t7t2rEDt1HOcuzfWXxTIMOwMepj/ieOvrZB3B7xGAVL7S4sAh17h/GUH4MqkcZqSs4ZBZXW/McaYQFYc4qQKsElIqU3CIl9UekuhYfR1NW/I4kG+EK5ThEAVia4h59Qs5xPMTSSjtUBUlcVhGAZZZbR2HrXBjxnTFwpgVThxYEkWTlzMtSy2R3XBY9fZOhoWF9vvY2TBWaFUYpgg3nkOGhtAdyz9rTyo/sMwaQkPdqZ2SVHKYNfaUjah2nFon0TEnpKo9h3m3yiGu9uCtVnJQ9nMjOxXZunC2NpI1JpETxlfCoaF3rJs3HFnt/BFTWdV2HkjU6bD7W0A0TTyg8Pi5lXBV7xUu7eW5zWofTLY1aWWQg7Gmj5LKi1SjPAErkSk6cIimi27PxhITWtsdyt7y0m7RcWNpfGaaBKpry4bMWbUGdxQOI5etje9d0msP2FZ5lWq89CK5dfK+FNLuWDglkZHaIgs0YftmObN57pE4sKR/rb9JQYJ51JgRyq9P5Gp8+n7DE1ekYpw7u+k3kTpxRB2EYanwOAEHBaTwBaJpPODYIzyzN/zsL7tH4r/chYd0L/6T8PmlnPmH0rhJRLIDEbcIzE0+xVH06WJ2GWZPeedR56etGZrLf+w5wO7I5m7Kz240d3/g/s3szouzqvZn4Q/94B9I4Y4lqzctQTRs0XpydNSXTpl1eAtf/wCRDqQphAcAAA=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),M9={};M9.styleTagTransform=kK(),M9.setAttributes=kB(),M9.insert=kX().bind(null,"head"),M9.domAPI=kF(),M9.insertStyleElement=kH(),kW()(M3.A,M9),M3.A&&M3.A.locals&&M3.A.locals;var M4="_11vsu2k3";function M6(e){let{onSubmit:t,title:r="How's your experience?"}=e,[n,i]=(0,A.useState)(null),[o,s]=(0,A.useState)(""),[a,l]=(0,A.useState)(!1),c=(0,A.useRef)(null),u=(0,A.useRef)(null),d=e=>{a||i(e)};return(0,A.useEffect)(()=>()=>{c.current&&clearTimeout(c.current)},[]),(0,A.useEffect)(()=>{if(n&&!a&&u.current){let e=setTimeout(()=>{u.current&&"function"==typeof u.current.scrollIntoView&&u.current.scrollIntoView({behavior:"smooth",block:"center"})},100);return()=>clearTimeout(e)}},[n,a]),(0,E.jsxs)("div",{className:"_11vsu2k0",children:[(0,E.jsx)("div",{className:"_11vsu2k1",children:r}),(0,E.jsxs)("div",{className:"_11vsu2k2",role:"radiogroup","aria-label":"Feedback sentiment",children:[(0,E.jsx)("button",{className:M4,onClick:()=>d("positive"),"aria-label":"Positive",role:"radio","aria-checked":"positive"===n,disabled:a,"data-disabled":a,"data-selected":"positive"===n,type:"button",children:(0,E.jsx)(M2,{})}),(0,E.jsx)("button",{className:M4,onClick:()=>d("negative"),"aria-label":"Negative",role:"radio","aria-checked":"negative"===n,disabled:a,"data-disabled":a,"data-selected":"negative"===n,type:"button",children:(0,E.jsx)(M5,{})})]}),(0,E.jsx)(oG,{children:n&&!a&&(0,E.jsxs)(oI.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"_11vsu2k4",children:[(0,E.jsx)(IN,{"aria-label":"Feedback comment",className:"_11vsu2k5",children:(0,E.jsx)(IO,{placeholder:"Optional feedback...",value:o,onChange:e=>s(e.target.value),onKeyDown:e=>{e.stopPropagation()},onKeyUp:e=>e.stopPropagation(),onKeyPress:e=>e.stopPropagation(),rows:3})}),(0,E.jsx)("div",{ref:u,children:(0,E.jsx)(Io,{className:"_11vsu2k6",onClick:()=>{n&&(t(o,n),l(!0),c.current=setTimeout(()=>{l(!1),i(null),s("")},3e3))},variant:"primary",children:"Send Feedback"})})]})}),(0,E.jsx)(oG,{children:a&&(0,E.jsxs)(oI.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"_11vsu2k7",role:"status","aria-live":"polite",children:[(0,E.jsx)("div",{className:"_11vsu2k8",children:(0,E.jsx)(Eu,{})}),(0,E.jsx)("span",{children:"Thanks! Your feedback is valuable and will help us improve."})]})})]})}var M7=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/StatusDot.css.ts.vanilla.css","source":"Ll8xZXkxNW1mMCB7CiAgd2lkdGg6IDhweDsKICBoZWlnaHQ6IDhweDsKICBib3JkZXItcmFkaXVzOiA1MCU7Cn0="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),M8={};function Ve(e){let{status:t}=e;return(0,E.jsx)("div",{className:"_1ey15mf0",style:{backgroundColor:(()=>{switch(t){case"connected":return"var(--lp-color-green-500)";case"disconnected":return"var(--lp-color-orange-500)";case"error":return"var(--lp-color-red-500)"}})()}})}M8.styleTagTransform=kK(),M8.setAttributes=kB(),M8.insert=kX().bind(null,"head"),M8.domAPI=kF(),M8.insertStyleElement=kH(),kW()(M7.A,M8),M7.A&&M7.A.locals&&M7.A.locals;var Vt=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/legacy/TabContent/SettingsTab.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA6VUTXPbIBC9+1fssTngwYrtJvjYH5LBsJK2QcAAjuR28t874A8ptdzMpCeNdpf3Hm/ZXb5subUqcfi9ANi7oDGwvUvJdQJWfoDoDGl4k+EbY8Yz5YwLrAnyyLacP+x2i/fF8oIhjIyJqZaMnoOzzuK0flWKOhkasgL4bgHgpdZkGwGrrR+g4n6AJz/kTO1sYpF+oYBVNQn1SE2bBGx5ASj6xKzedda7AEg4JJaCtLF2oRNw8B6DkhFz0mBKGFj0UhUdfLnJZKPoqoieUbOX6rUJ7mA1+4eI500WMcI9nuAMDgJWGUZT9EYeRYnlgDTUWEYJuyhAoU0YcvjnISaqj0w5m9AmAVkysj2mHtHmikb6i7qRb134bkjyl2kKqBI5K7KNh25E+Qtkc+PBeqYj6087UvGPZmzvefspxhz1iPv9C7jrKW4tOzLHSeEkyjpnXTH/w12e5o2+083i8vml33S2NAetnsI/f+FKj/95JVk4e9KpPQ1oBmvPll/+azJGgDqEgDb9yOTX9xXbQPa1TPoIuj9tiuvwCCij6WU+n492ZNmVk59IOjlcYhU/x+5TqELh3jDUxvUCWtL6NCJlFYwJNIZ8pJhTfUsJyx7AvLn6IP1uOqnvfwDpucrKOgUAAA=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Vr={};Vr.styleTagTransform=kK(),Vr.setAttributes=kB(),Vr.insert=kX().bind(null,"head"),Vr.domAPI=kF(),Vr.insertStyleElement=kH(),kW()(Vt.A,Vr),Vt.A&&Vt.A.locals&&Vt.A.locals;var Vn="_60nnctb",Vi="_60nnct2",Vo="_60nnct0",Vs="_60nnct6",Va="_60nnct5",Vl="_60nnct3",Vc="_60nnct4";function Vu(){let{projectKey:e,setProjectKey:t,projects:r,loading:n,getProjects:i}=ku(),o=wg();(0,A.useEffect)(()=>{0===r.length&&i()},[r]);let s=(0,A.useMemo)(()=>r.map(e=>({id:e.key,label:e.name})),[r]);return(0,E.jsx)(MQ,{selectedKey:e,onSelectionChange:r=>{r&&r!==e&&!n&&(o.trackProjectSwitch(e,r),t(r))},"aria-label":"Select project",placeholder:"Select project","data-theme":"dark",className:Vn,isDisabled:n,options:s})}function Vd(e){let{currentPosition:t,onPositionChange:r}=e,n=wS.map(e=>({id:e,label:e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}));return(0,E.jsx)(MQ,{selectedKey:t,onSelectionChange:e=>{e&&e!==t&&r(e)},"aria-label":"Select toolbar position",placeholder:"Select position","data-theme":"dark",className:Vn,options:n})}function Vp(e){let{isAutoCollapseEnabled:t,onToggleAutoCollapse:r}=e,n=wg();return(0,E.jsx)(II,{"data-testid":"auto-collapse-toggle",className:Vi,"data-theme":"dark",isSelected:t,onChange:e=>{n.trackAutoCollapseToggle(e?"enable":"disable"),r()},"aria-label":"Auto-collapse toolbar"})}function Vh(e){let{reloadOnFlagChangeIsEnabled:t,onToggleReloadOnFlagChange:r}=e,n=wg();return(0,E.jsx)(II,{"data-testid":"reload-on-flag-change-toggle",className:Vi,"data-theme":"dark",isSelected:t,onChange:e=>{n.trackReloadOnFlagChangeToggle(e),r()},"aria-label":"Reload on flag change"})}function Vf(e){let{status:t}=e;return(0,E.jsxs)("div",{className:"_60nnct8",children:[(0,E.jsx)("span",{className:"_60nnct9",children:(()=>{switch(t){case"connected":return"Connected";case"disconnected":return"Disconnected";case"error":return"Error"}})()}),(0,E.jsx)(Ve,{status:t})]})}function Vm(e){let{mode:t,reloadOnFlagChangeIsEnabled:r,onToggleReloadOnFlagChange:n,isAutoCollapseEnabled:i,onToggleAutoCollapse:o}=e,{state:s}=kk(),{position:a,handlePositionChange:l}=wP(),{searchTerm:c}=wy(),u=wg(),{logout:d}=w$(),p=e=>{u.trackPositionChange(a,e,"settings"),l(e)},h=()=>{u.trackLogout(),d()},f="dev-server"===t?[{title:"Dev Server Configuration",items:[{id:"project",name:"Project",icon:"folder",isProjectSelector:!0},{id:"environment",name:"Environment",icon:"globe",value:s.sourceEnvironmentKey||"Unknown"},{id:"connection",name:"Connection status",icon:"link",isConnectionStatus:!0}]},{title:"Toolbar Settings",items:[{id:"position",name:"Position",icon:"move",isPositionSelector:!0},{id:"auto-collapse",name:"Auto-collapse",description:"Automatically collapses the toolbar when clicking outside.",icon:"",isAutoCollapseToggle:!0},{id:"reload-on-flag-change",name:"Reload on flag change",icon:"refresh",isReloadOnFlagChangeToggle:!0}]},{title:"Account",items:[{id:"logout",name:"Log out",description:"Sign the Toolbar out of LaunchDarkly",icon:"logout",isLogoutButton:!0}]}]:[{title:"Toolbar Settings",items:[{id:"project",name:"Project",icon:"folder",isProjectSelector:!0},{id:"position",name:"Position",icon:"move",isPositionSelector:!0},{id:"auto-collapse",name:"Auto-collapse",description:"Automatically collapses the toolbar when clicking outside.",icon:"",isAutoCollapseToggle:!0},{id:"reload-on-flag-change",name:"Reload on flag change",icon:"refresh",isReloadOnFlagChangeToggle:!0}]},{title:"Account",items:[{id:"logout",name:"Log out",description:"Sign the Toolbar out of LaunchDarkly",icon:"logout",isLogoutButton:!0}]}];return!f.some(e=>e.items.some(e=>e.name.toLowerCase().includes(c.toLowerCase())||e.id.toLowerCase().includes(c.trim().toLowerCase())))&&c.trim()?(0,E.jsx)(Iq,{title:"No settings found",subtitle:"Try adjusting your search"}):(0,E.jsxs)("div",{"data-testid":"settings-tab-content",children:[f.map(e=>0===e.items.filter(e=>e.name.toLowerCase().includes(c.toLowerCase())||e.id.toLowerCase().includes(c.trim().toLowerCase())).length?null:(0,E.jsxs)("div",{className:Vo,children:[(0,E.jsx)("h4",{className:"_60nnct1",children:e.title}),(0,E.jsx)(CO,{children:e.items.filter(e=>e.name.toLowerCase().includes(c.toLowerCase())||e.id.toLowerCase().includes(c.trim().toLowerCase())).map(e=>e.isConnectionStatus?(0,E.jsx)(CL,{children:(0,E.jsxs)("div",{className:Vl,children:[(0,E.jsx)("div",{className:Vc,children:(0,E.jsx)("span",{className:Va,children:e.name})}),(0,E.jsx)(Vf,{status:s.connectionStatus})]})},e.id):e.isLogoutButton?(0,E.jsx)(CL,{children:(0,E.jsxs)("div",{className:Vl,children:[(0,E.jsxs)("div",{className:Vc,children:[(0,E.jsx)("span",{className:Va,children:e.name}),e.description&&(0,E.jsx)("span",{className:Vs,children:e.description})]}),(0,E.jsx)(Io,{"aria-label":"Log out","data-testid":"logout-button",onClick:h,children:"Log out"})]})},e.id):(0,E.jsx)(CL,{children:(0,E.jsxs)("div",{className:Vl,children:[(0,E.jsxs)("div",{className:Vc,children:[(0,E.jsx)("span",{className:Va,children:e.name}),e.description&&(0,E.jsx)("span",{className:Vs,children:e.description})]}),e.isProjectSelector?(0,E.jsx)(Vu,{}):e.isPositionSelector?(0,E.jsx)(Vd,{currentPosition:a,onPositionChange:p}):e.isAutoCollapseToggle?(0,E.jsx)(Vp,{isAutoCollapseEnabled:i,onToggleAutoCollapse:o}):e.isReloadOnFlagChangeToggle?(0,E.jsx)(Vh,{reloadOnFlagChangeIsEnabled:r,onToggleReloadOnFlagChange:n}):(0,E.jsx)("span",{className:"_60nnct7",children:e.value})]})},e.id))})]},e.title)),(0,E.jsx)("div",{className:Vo,children:(0,E.jsx)(M6,{onSubmit:(e,t)=>{u.trackFeedback(e,t)}})})]})}function Vg(e){let{activeTab:t,slideDirection:r,mode:n,flagOverridePlugin:i,eventInterceptionPlugin:o,baseUrl:s,reloadOnFlagChangeIsEnabled:a,onToggleReloadOnFlagChange:l,isAutoCollapseEnabled:c,onToggleAutoCollapse:u}=e,d=(()=>{switch(t){case"flag-sdk":return(0,E.jsx)(ML,{flagOverridePlugin:i,reloadOnFlagChangeIsEnabled:a});case"flag-dev-server":return(0,E.jsx)(M1,{reloadOnFlagChangeIsEnabled:a});case"events":return(0,E.jsx)(Mz,{baseUrl:s,eventInterceptionPlugin:o});case"settings":return(0,E.jsx)(Vm,{mode:n,reloadOnFlagChangeIsEnabled:a,onToggleReloadOnFlagChange:l,isAutoCollapseEnabled:c,onToggleAutoCollapse:u});default:return null}})();return d?(0,E.jsx)(oI.div,{className:"pf3m6r0",initial:{opacity:0,x:30*r,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:-(30*r),scale:.95},transition:kA.tabContent,children:d},t):null}var Vb=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/LoginScreen/LoginScreen.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA61Wy47rKBDd5ytqM1J6QYSdtpOmNyPNl2BTdrjXAQtwHjPqfx+B30k8Sd87K8t2QZ06derAnz/xWhh+RAv5lSdVSuGfFQD9IzwAnOHKFtocGRjtuMM1FVi+fa4AvlYAEf2PyG06if1abdoEUYgX0tYVvzIoKrz4CP8kQhrMndSKQa6r5qj8n4znP0ujGyVIrittGJy4WRNS1e07KQ2/ko+EhkyZNgINg6i+gNWVFA+jd3QaTQwXsrEMorgOYM5SuAML1fnXA8ry4BiklLb/9QlNUekzg4MUAtXnWF78uDxeyVIR6fBoGeSoHBr/+UdjnSyuJNfKoXIMbM1zJBm6M2KovuZCSFUyoLCvL0AhSlsMv0ILybRz+vgqO0epSF97EtIOZW5DmT1PyXuLqQ/mjdOBp+wH5o4U0vmGKsdlqKmQlfM9yowPV2jtmr6BVCc0bh29TdK8/x6b46+Bxtjgsdcbg2iSK/lGrmFROl8kVSUVkl/Hed/VMFc1N6jcVN9KK/TveWOsD6u1vKt13yllLvKuV2Ff2Q7bbVagm9gCctumWJbXe6eUTgjbdK6D7Vw0KRPS8qxCEVjroSvtCK8qfUYRRFPzXLorA7pJZosPfuyY0m497PPWbrQMMO4H/aVp2YfoScpC540NOXTjfGt74m9jyElamVU4j42XxsweuNBnElrGcydPSMI2AWu3nOiisOgYkHjG4u67BrqgQocXz7ss1fTrzPqGnPtnPEcdz4VWjlj5NzKINkk/a/7jeTTR4C3clFJ5W6NANzsfCuFHKL0XULSJpxr4eAZjew+Dbva7HsjN3sktkBYydAAvpJd1TGcd4AHGoqS6d2JQkA/65FiaBqdd8PJ2Pc3jqdBRF3UV3sw63Wx3sy7cc9LWP54M3eebIzDTF7825BzOkikn2f/l1CWvw+j3BX1jcAfmzgfp8E55Sau8BR7uKR0xvHSnSB/fKaYteGDWT2w4SkYfnh7H8QDuplEP2zl2ae7AE6vdfS458mTxogO/1qXd3F7z2R2iK2eYzhvuRyt9eCASp+tpUN4YH/CXT/6gKUlLFlfyyDu77G6/kQ0uwQ1IVUgVdDQgFs/85/2R/9yMGnvoc1Obw1fdNli4wFybror+VnCv+3HztovPUiQLGRol0Hjsn6uvfwEegWT/PQwAAA=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Vv={};function Vy({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M9.47 6.97a.75.75 0 0 1 1.06 0l5 5a.75.75 0 0 1-1.06 1.06L10 8.56l-4.47 4.47a.75.75 0 1 1-1.06-1.06z",clipRule:"evenodd"})})}function Vx(e){let{onClose:t,onLogin:r,onMouseDown:n}=e,{authenticating:i}=w$(),{position:o}=wP(),s=wg(),a=o.startsWith("top-");return(0,E.jsxs)(oI.div,{className:"cya5l61",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.2},"data-testid":"login-screen",children:[(0,E.jsxs)("div",{className:"cya5l62",children:[(0,E.jsx)(k2,{className:"cya5l63",onMouseDown:n}),(0,E.jsx)(oI.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.1},className:"cya5l65",tabIndex:-1,children:(0,E.jsx)(Eg,{icon:a?(0,E.jsx)(Vy,{}):(0,E.jsx)(MJ,{}),label:"Close toolbar",onClick:()=>{s.trackLoginCancelled(),t()},className:"cya5l66"})})]}),(0,E.jsx)("div",{className:"cya5l64",children:(0,E.jsxs)("div",{className:"cya5l67",children:[(0,E.jsx)("h2",{className:"cya5l68",children:"Connect to LaunchDarkly"}),(0,E.jsx)("p",{className:"cya5l69",children:"Authorize your account to activate the Developer Toolbar."}),(0,E.jsx)(oI.button,{className:"cya5l6b",onClick:r,disabled:i,whileHover:{scale:1.02},whileTap:{scale:.98},"data-testid":"login-button",children:i?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"cya5l6c"}),"Logging in..."]}):"Login"}),(0,E.jsxs)("p",{className:"cya5l6d",children:["Don't have a LaunchDarkly account?"," ",(0,E.jsx)("a",{href:"https://launchdarkly.com/start-trial",target:"_blank",rel:"noopener noreferrer",className:"cya5l6e",children:"Start your free trial!"})]})]})})]})}function Vw({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M2.6 5.934A5.75 5.75 0 0 1 6.668 4.25h6.666a5.75 5.75 0 1 1 0 11.5H6.667A5.75 5.75 0 0 1 2.6 5.934m2.358 2.357a2.417 2.417 0 1 1 3.418 3.418A2.417 2.417 0 0 1 4.958 8.29",clipRule:"evenodd"})})}function Vk({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M6.229 3.602a7.5 7.5 0 0 1 11.18 5.461.75.75 0 0 1-1.485.207A6 6 0 0 0 5 6.75h1.666a.75.75 0 1 1 0 1.5H3.333a.75.75 0 0 1-.75-.75V4.167a.75.75 0 1 1 1.5 0v1.295a7.5 7.5 0 0 1 2.146-1.86m-3 6.488a.75.75 0 0 1 .847.64 6 6 0 0 0 10.923 2.52h-1.666a.75.75 0 0 1 0-1.5h3.334a.75.75 0 0 1 .75.75v3.333a.75.75 0 0 1-1.5 0v-1.295a7.498 7.498 0 0 1-11.175.695 7.5 7.5 0 0 1-2.152-4.296.75.75 0 0 1 .64-.847",clipRule:"evenodd"})})}function VS({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M9.23 1.875c-.765 0-1.417.552-1.542 1.306l-.149.893c-.017.1-.095.218-.247.29a6 6 0 0 0-.822.476c-.138.095-.279.104-.374.068l-.85-.318a1.56 1.56 0 0 0-1.901.682l-.768 1.331a1.56 1.56 0 0 0 .36 1.988l.7.576c.079.065.14.191.128.359a6 6 0 0 0 0 .949c.013.167-.049.293-.128.358l-.7.577a1.56 1.56 0 0 0-.36 1.987l.768 1.331c.382.662 1.186.95 1.901.682l.85-.318c.096-.036.236-.027.375.069q.39.268.82.474c.153.074.231.19.248.291l.149.893a1.56 1.56 0 0 0 1.541 1.306h1.537c.764 0 1.415-.552 1.541-1.306l.149-.893c.017-.1.095-.217.247-.29q.43-.207.822-.476c.138-.095.278-.104.374-.069l.85.319a1.56 1.56 0 0 0 1.9-.682l.77-1.331a1.56 1.56 0 0 0-.36-1.988l-.701-.576c-.08-.065-.141-.191-.128-.359a6 6 0 0 0 0-.949c-.013-.167.049-.293.128-.358l.7-.577c.59-.485.742-1.326.36-1.987l-.768-1.331a1.56 1.56 0 0 0-1.901-.682l-.85.318c-.096.036-.236.027-.375-.068a6 6 0 0 0-.821-.475c-.152-.074-.23-.19-.247-.291l-.149-.893a1.56 1.56 0 0 0-1.541-1.306zm.768 11.25a3.125 3.125 0 1 0 0-6.25 3.125 3.125 0 0 0 0 6.25",clipRule:"evenodd"})})}Vv.styleTagTransform=kK(),Vv.setAttributes=kB(),Vv.insert=kX().bind(null,"head"),Vv.domAPI=kF(),Vv.insertStyleElement=kH(),kW()(Vb.A,Vv),Vb.A&&Vb.A.locals&&Vb.A.locals;var VC=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/ErrorMessage.css.ts.vanilla.css","source":"LmtzZmNpbTAgewogIGhlaWdodDogNDAwcHg7Cn0KLmtzZmNpbTEgewogIGJhY2tncm91bmQ6IHZhcigtLWxwLWNvbG9yLXJlZC05MDApOwogIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLWxwLWNvbG9yLXJlZC02MDApOwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1yZWQtMjAwKTsKICBwYWRkaW5nOiA4cHggMTJweDsKICBtYXJnaW46IDEycHggMjBweDsKICBib3JkZXItcmFkaXVzOiA2cHg7CiAgZm9udC1zaXplOiAxMnB4Owp9"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),V_={};function VT(e){let{error:t}=e;return(0,E.jsx)("div",{className:"ksfcim0",children:(0,E.jsx)("div",{className:"ksfcim1",children:t})})}V_.styleTagTransform=kK(),V_.setAttributes=kB(),V_.insert=kX().bind(null,"head"),V_.domAPI=kF(),V_.insertStyleElement=kH(),kW()(VC.A,V_),VC.A&&VC.A.locals&&VC.A.locals;var VI=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/legacy/Header/Header.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA71W247bOAx9n6/gFiiQAaqBnCZpqnnsT/RtIdu0oxlZEiQ5cbrovy8ky/UlmTSDLhYIHFsiRfKQPNTT31lbvTrdUvjnAaAUzkh+ZlBbUT4/QPwnHhsjuUdSaNk2yjHgrdeQVTa+XMpxi9wx+CB1raFA5dECL7zQyn0I0lyKWhHhsXEs7Ydlw8tSqJoBhb3pgEK2M13YyHnxWlvdqjK4oC2DI7crQqTpv0lt+Zl83dLHKK1tiZbk2nvdMMhMB05LUV5V+kJnSpaXonUMsrXp+gcFGvYbocgBRX3wDLbJrZqbXvL54efD04BkFpGMgAQcGAQUnqfgVhK7GzDEY/eLU9fx1JMo/YFBtt30HgweDWnQ+QsWnlTCMyi08lyosFwJ6dEyyG0QV+jcij6CUEe0fpU9zgx9joYqrTxx4gcyyJKtuHRKBnc0onIjG5sEbFSreCPkeSI4WSU5dxhFTwfhkTjDC2Sg9MlyM3Nts0R2xOwC25fWeVGdSUABlZ/KvgF7yHDCt88474bvjNKPM0+20ZP7ynJ/vcK2ParXFXPLw6FnrkZ0foWYS1283gdto5WOeI6pSEmlvXl9RFtJfWJwEGWJataGG9P1dQjgsfNkFEYphXHCvZm1K/ClQyL6I+4TUHfL9CbKeHfv0EXvfJlz22+OuFE5ixRuFnb2/5Odr4vqC7ArHBXH76K1LpSX0eKCZAdundtKq/9BEN5y5UTIIOurHOjT2gFyh58uWmfcm0fKDqHoYrw3Wmw9tNg7GnJihfeUJ6S8RWUThTwqDOT7ebfITxG3E9DE9lLUdPCXaIy2niv/x/OgnM2D1GC/pePJAXhX0KOJ3XziZMugq0uHJrv1NXevUMQ1Prqf2ycGDzODV50foi9aa1H5byH22Rmiz6Meqtii5F4cceaUUFIoJImUJ9ovC22eOy1bH7W9NmPMEqtwqUgcGbqm0rZh/Wu4T31fkS39+I4KH25CN0SylN5fdLBPF563OWE6PtaTpXdMoDdmxQ8iVIldhCTNXlsLRSJMm8GnjrgDL0Nt0Dia4vXM1jlf0U+Qfk/ZdjJs7738JXokeETl3UCfP/8F9Zai0x0LAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),VE={};VE.styleTagTransform=kK(),VE.setAttributes=kB(),VE.insert=kX().bind(null,"head"),VE.domAPI=kF(),VE.insertStyleElement=kH(),kW()(VI.A,VE),VI.A&&VI.A.locals&&VI.A.locals;var VA="_1ufksou4",VO="_1ufksou9";function VL(e){let{onMouseDown:t}=e;return(0,E.jsx)("div",{className:"_1ufksou1","aria-hidden":"true",children:(0,E.jsx)(k2,{className:"_1ufksou2",onMouseDown:t})})}function VR(e){let{label:t}=e,r=(0,A.useRef)(null),[n,i]=(0,A.useState)(!1),[o,s]=(0,A.useState)(!1);return(0,A.useEffect)(()=>{let e=()=>{if(r.current){let e=r.current;i(e.scrollWidth>e.clientWidth)}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t]),(0,E.jsx)("div",{className:VA,children:(0,E.jsxs)("span",{ref:r,className:"_1ufksou5 _1ufksoui",onMouseEnter:()=>{n&&s(!0)},onMouseLeave:()=>{s(!1)},title:n?t:void 0,children:[t,o&&(0,E.jsx)("div",{className:"_1ufksouj",children:t})]})})}function VN({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M10 1.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5M6.97 6.97a.75.75 0 0 1 1.06 0L10 8.94l1.97-1.97a.75.75 0 1 1 1.06 1.06L11.062 10l1.97 1.97a.75.75 0 0 1-1.06 1.06L10 11.06l-1.97 1.97a.75.75 0 1 1-1.06-1.06L8.94 10 6.97 8.03a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})})}function VZ(e){let{searchTerm:t,onSearch:r,setSearchIsExpanded:n}=e;return(0,E.jsx)(oI.div,{className:"_1ufksoud",initial:{scale:.9,opacity:0,x:-20},animate:{scale:1,opacity:1,x:0},transition:{duration:.25,ease:[.25,.46,.45,.94],delay:.15},onBlur:()=>{t.trim()||n(!1)},children:(0,E.jsx)(IS,{"aria-label":"Search","data-theme":"dark",className:"_1ufksoub",children:(0,E.jsxs)(Iy,{className:"_1ufksouc",children:[(0,E.jsx)(Ig,{autoFocus:!0,placeholder:"Search",value:t,onChange:e=>{r(e.target.value)},onKeyDown:e=>{e.stopPropagation()},onKeyUp:e=>e.stopPropagation(),onKeyPress:e=>e.stopPropagation()}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(VN,{}),label:"Clear",onClick:()=>{t.trim()?r(""):n(!1)},size:"medium"})]})})})}function VG({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M5.814 2.251a6.583 6.583 0 0 1 7.675 10.177l4.542 4.542a.75.75 0 1 1-1.06 1.06l-4.543-4.542a6.58 6.58 0 0 1-8.75-.5A6.585 6.585 0 0 1 5.815 2.252m2.52.999a5.083 5.083 0 1 0 0 10.166 5.083 5.083 0 0 0 0-10.166",clipRule:"evenodd"})})}function Vj({className:e}){return(0,E.jsxs)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M4.167 13.417a.75.75 0 0 1 .75.75v.453l.581-.29a.75.75 0 1 1 .67 1.34l-.324.163.325.163a.75.75 0 0 1-.67 1.341l-.582-.29v.453a.75.75 0 0 1-1.5 0v-.453l-.581.29a.75.75 0 0 1-.671-1.341l.325-.163-.325-.162a.75.75 0 1 1 .67-1.342l.582.29v-.452a.75.75 0 0 1 .75-.75m5.833 0a.75.75 0 0 1 .75.75v.453l.581-.29a.75.75 0 1 1 .671 1.34l-.325.163.325.163a.75.75 0 0 1-.67 1.341l-.582-.29v.453a.75.75 0 0 1-1.5 0v-.453l-.581.29a.75.75 0 1 1-.67-1.341l.324-.163-.325-.162a.75.75 0 1 1 .67-1.342l.582.29v-.452a.75.75 0 0 1 .75-.75m5.834 0a.75.75 0 0 1 .75.75v.453l.58-.29a.75.75 0 1 1 .672 1.34l-.325.163.325.163a.75.75 0 0 1-.671 1.341l-.581-.29v.453a.75.75 0 0 1-1.5 0v-.453l-.582.29a.75.75 0 0 1-.67-1.341l.324-.163-.325-.162a.75.75 0 1 1 .671-1.342l.582.29v-.452a.75.75 0 0 1 .75-.75","clip-rule":"evenodd"}),(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M7.702 2.702a3.25 3.25 0 1 1 4.596 4.596 3.25 3.25 0 0 1-4.596-4.596M10 3.25a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5","clip-rule":"evenodd"}),(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M8.057 10.75a3.14 3.14 0 0 0-2.467 1.198.75.75 0 0 1-1.179-.927q.17-.217.366-.412a4.64 4.64 0 0 1 3.28-1.359h3.889a4.64 4.64 0 0 1 3.643 1.768.75.75 0 1 1-1.178.928 3.14 3.14 0 0 0-2.466-1.196z","clip-rule":"evenodd"})]})}function VM(e){let{searchIsExpanded:t,setSearchIsExpanded:r,onClose:n,onRefresh:i,onOpenConfig:o,showSearchButton:s,showRefreshButton:a}=e,[l,c]=(0,A.useState)(!1),[u,d]=(0,A.useState)(0),{position:p}=wP(),h=p.startsWith("top-"),f=wg(),{authenticated:m,loading:g}=w$(),b=(0,A.useCallback)(()=>{l||(c(!0),d(e=>e+360),setTimeout(()=>{c(!1)},1e3),f.trackRefresh(),i())},[i,l,f]);return(0,E.jsxs)("div",{className:"_1ufksou6",children:[s&&(0,E.jsx)(oG,{mode:"wait",children:!t&&(0,E.jsx)(oI.div,{className:"_1ufksou7",initial:{opacity:0,scale:.8,x:10},animate:{opacity:1,scale:1,x:0},exit:{opacity:0,scale:.8,x:10},transition:{duration:.15,ease:"easeOut"},children:(0,E.jsx)(Eg,{icon:(0,E.jsx)(VG,{}),label:"Search",onClick:()=>r(!0),className:VO})},"search-button")}),o&&!m&&!g&&(0,E.jsx)(Eg,{icon:(0,E.jsx)(Vj,{}),label:"Configuration",onClick:o,className:VO}),a&&(0,E.jsx)(Eg,{icon:(0,E.jsx)(oI.span,{animate:{rotate:u},transition:{duration:1,ease:"linear"},style:{display:"inline-flex",alignItems:"center"},children:(0,E.jsx)(Vk,{})}),label:"Refresh",onClick:b,className:VO}),(0,E.jsx)(oI.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.1},className:"_1ufksou8",tabIndex:-1,children:(0,E.jsx)(Eg,{icon:h?(0,E.jsx)(Vy,{}):(0,E.jsx)(MJ,{}),label:"Close toolbar",onClick:n,className:VO})})]})}var VV=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/ConnectionStatus.css.ts.vanilla.css","source":"LndseTRvODAgewogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgcGFkZGluZzogOHB4IDE2cHg7CiAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHZhcigtLWxwLWNvbG9yLWdyYXktNjAwKTs7Cn0KLndseTRvODEgewogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBnYXA6IDhweDsKICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtZW5kOwp9Ci53bHk0bzgyIHsKICBmb250LXNpemU6IDEycHg7CiAgY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktMzAwKTsKICBmb250LWZhbWlseTogdmFyKC0tbHAtZm9udC1mYW1pbHktbW9ub3NwYWNlKTsKfQoud2x5NG84MyB7CiAgZm9udC1zaXplOiAxMHB4OwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7CiAgZm9udC1mYW1pbHk6IHZhcigtLWxwLWZvbnQtZmFtaWx5LW1vbm9zcGFjZSk7Cn0="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),VW={};function VP(e){let{status:t,lastSyncTime:r}=e;return(0,E.jsxs)("div",{className:"wly4o80",children:[(0,E.jsxs)("div",{className:"wly4o81",children:[(0,E.jsx)(Ve,{status:t}),(0,E.jsx)("span",{className:"wly4o82",children:(()=>{switch(t){case"connected":return"Connected to dev server";case"disconnected":return"Disconnected from dev server";case"error":return"Error connecting to dev server"}})()})]}),r>0&&(0,E.jsxs)("span",{className:"wly4o83",children:["Last sync: ",new Date(r).toLocaleTimeString()]})]})}function VF(e){let{onClose:t,onSearch:r,searchTerm:n,searchIsExpanded:i,setSearchIsExpanded:o,mode:s,onMouseDown:a,onOpenConfig:l}=e,{state:c,refresh:u}=kk(),{connectionStatus:d}=c,p="dev-server"===s,h=!p||"connected"===d,{projectKey:f,loading:m}=ku();return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"_1ufksou0",children:[(0,E.jsx)(VL,{onMouseDown:a}),(0,E.jsx)("div",{className:VA,children:(f||h)&&(0,E.jsx)(oG,{mode:"wait",children:i?(0,E.jsx)(oI.div,{className:"_1ufksouf",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9,x:-20},transition:{duration:.15,ease:"easeIn"},children:(0,E.jsx)(VZ,{searchTerm:n,onSearch:r,setSearchIsExpanded:o})},"search"):f||m?(0,E.jsx)(oI.div,{className:"_1ufksoug",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.2},children:(0,E.jsx)(VR,{label:m?"Loading Project...":f})},"environment"):null})}),(0,E.jsx)(VM,{searchIsExpanded:i,setSearchIsExpanded:o,onClose:t,onRefresh:u,onOpenConfig:l,showSearchButton:h,showRefreshButton:p})]}),p&&(0,E.jsx)(VP,{status:d,lastSyncTime:c.lastSyncTime})]})}VW.styleTagTransform=kK(),VW.setAttributes=kB(),VW.insert=kX().bind(null,"head"),VW.domAPI=kF(),VW.insertStyleElement=kH(),kW()(VV.A,VW),VV.A&&VV.A.locals&&VV.A.locals;let VD=A.forwardRef((e,t)=>{let{activeTab:r,slideDirection:n,searchTerm:i,searchIsExpanded:o,onSearch:s,onClose:a,onToggleAutoCollapse:l,isAutoCollapseEnabled:c,onTabChange:u,setSearchIsExpanded:d,mode:p,flagOverridePlugin:h,eventInterceptionPlugin:f,baseUrl:m,defaultActiveTab:g,onHeaderMouseDown:b,reloadOnFlagChangeIsEnabled:v,onToggleReloadOnFlagChange:y,onOpenAuthModal:x}=e,{authenticated:w,authenticating:k}=w$(),{state:S}=kk(),{error:C}=S,_=function(e,t,r){if("dev-server"===e){let e=["flag-dev-server"];return r&&e.push("events"),e.push("settings"),e}let n=[];return t&&n.push("flag-sdk"),r&&n.push("events"),n.push("settings"),n}(p,!!h,!!f),T=C&&"dev-server"===p&&"error"===S.connectionStatus&&"settings"!==r;return!w||k?(0,E.jsx)(oI.div,{ref:t,className:kq,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:kA.container,tabIndex:-1,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,E.jsx)(Vx,{onClose:a,onLogin:x||a,onMouseDown:b})}):(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(S0,{restoreFocus:!0,children:(0,E.jsxs)(oI.div,{ref:t,className:kq,tabIndex:0,role:"group","aria-label":"LaunchDarkly developer toolbar content",initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},transition:kA.toolbarContent,children:[(0,E.jsx)(oI.div,{className:"f9csi0c",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:kA.tabsContainer,children:(0,E.jsx)(Cl,{defaultActiveTab:g,activeTab:r,onTabChange:u,children:wx.filter(e=>_.includes(e)).map(e=>{switch(e){case"flag-dev-server":case"flag-sdk":return(0,E.jsx)(Cc,{id:e,label:"Flags",icon:Vw},e);case"events":return(0,E.jsx)(Cc,{id:e,label:"Events",icon:Vk},e);case"settings":return(0,E.jsx)(Cc,{id:e,label:"Settings",icon:VS},e);default:return null}})})}),(0,E.jsxs)(oI.div,{className:"f9csi0a",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:kA.contentArea,children:[(0,E.jsx)(VF,{onSearch:s,searchTerm:i,onClose:a,searchIsExpanded:o,setSearchIsExpanded:d,mode:p,onMouseDown:b}),T&&(0,E.jsx)(VT,{error:C}),!T&&(0,E.jsx)(oI.div,{className:"f9csi0b",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.25,ease:kI,delay:.05},children:(0,E.jsx)(oG,{mode:"wait",children:r&&(0,E.jsx)(Vg,{activeTab:r,baseUrl:m,slideDirection:n,mode:p,flagOverridePlugin:h,eventInterceptionPlugin:f,reloadOnFlagChangeIsEnabled:v,onToggleReloadOnFlagChange:y,isAutoCollapseEnabled:c,onToggleAutoCollapse:l})})})]})]},"toolbar-content")})})});var VX=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Header/ToolbarHeader.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA51Ty3LDIAy85yt0bA9kHDfxtORjOhhkrJYCAziPdvrvHWO7rtPHTHqyEWJX2pXWj5vioXVVVcDbCkBR9EacOTQGT/sVgDCkLaOEL5GDRJsw9OGnLiZqzkw6m9AmDtELiazGdES0fYYXSpHVHO79CTalP0GRP/vV+2o9kW6uItXCZ7j+X3YhusBBB1H35y5iYBENysTBOouLGrbDoxcRNFlmsEkc2BisXVAYWBCKuviZmoKwkRI5y6EW8lkH11nFpDMuQLEuI6CIuGyGC5nogLmnr/XVZPUis8wpR1Kp5VCOjC2SbtN8zlQcDiLcMGb8QM10EGdWFsXtAvAuAzbOJhbpFTlsqgEkh44jclUU1wJvrzdoe+HxLkNcasgHhb0IaNNsw+zdH1Vuc5Wzxt7RVMGn49Vf5v57yuer0by7cmnedP46PsKYXyZmx1t3wPCLQD+1fj+1foWHO9442cXM4rpkyOIk8/csdqBItcFldr++0RlSl4yxFcodWdZ/mH6WYXKR43PmmiZiv3HD+n8A1tLI4HMEAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Vz={};function VB({onClose:e,onHeaderMouseDown:t}){let{position:r}=wP();return(0,E.jsxs)("div",{className:"_109ho660",children:[(0,E.jsxs)("div",{className:"_109ho661",onMouseDown:t,children:[(0,E.jsx)(kM,{className:"_109ho662"}),(0,E.jsx)("span",{className:"_109ho663",children:"LaunchDarkly"})]}),(0,E.jsx)("div",{className:"_109ho664",children:(0,E.jsx)("button",{className:"_109ho665",onClick:e,"aria-label":"Collapse toolbar",children:r.startsWith("top-")?(0,E.jsx)(Vy,{}):(0,E.jsx)(MJ,{})})})]})}function VU({className:e}){return(0,E.jsxs)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M10 1.75a.75.75 0 0 1 .75.75V5a.75.75 0 0 1-1.5 0V2.5a.75.75 0 0 1 .75-.75M4.138 4.136a.75.75 0 0 1 1.06 0L7.03 5.97a.75.75 0 1 1-1.06 1.06L4.137 5.197a.75.75 0 0 1 0-1.06m11.727 0a.75.75 0 0 1 0 1.061L14.031 7.03a.75.75 0 0 1-1.06-1.06l1.833-1.834a.75.75 0 0 1 1.06 0M1.75 10a.75.75 0 0 1 .75-.75H5a.75.75 0 1 1 0 1.5H2.5a.75.75 0 0 1-.75-.75m5.28 2.97a.75.75 0 0 1 0 1.06l-1.833 1.834a.75.75 0 1 1-1.06-1.061l1.833-1.834a.75.75 0 0 1 1.06 0","clip-rule":"evenodd"}),(0,E.jsx)("path",{d:"M10.238 9.288a.75.75 0 0 0-.949.949l2.5 7.5a.75.75 0 0 0 1.382.098l1.202-2.402 2.597 2.597a.75.75 0 1 0 1.06-1.06l-2.166-2.813 1.972-.986a.75.75 0 0 0-.098-1.383z"})]})}function VH({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M2.5 1.75a.75.75 0 0 1 .75.75v5.879c.736-.079 1.272-.273 1.688-.513.554-.32.952-.752 1.351-1.251l.218-.278c.324-.416.695-.893 1.138-1.262C8.24 4.578 8.982 4.25 10 4.25s1.76.328 2.355.825c.443.369.814.846 1.138 1.262q.112.146.218.278c.399.499.797.931 1.351 1.251.546.315 1.298.55 2.438.55a.75.75 0 0 1 0 1.5c-1.36 0-2.379-.284-3.187-.75-.8-.462-1.34-1.072-1.774-1.614l-.28-.355c-.312-.4-.558-.714-.864-.97-.342-.284-.747-.477-1.395-.477s-1.053.193-1.395.477c-.306.256-.552.57-.864.97l-.28.355c-.434.542-.974 1.152-1.774 1.613-.652.377-1.442.635-2.437.72v6.865h2.667v-3.417a.75.75 0 0 1 1.5 0v3.417H9.25v-5.917a.75.75 0 0 1 1.5 0v5.917h1.833v-3.417a.75.75 0 0 1 1.5 0v3.417h1.834V15a.75.75 0 0 1 1.5 0v1.75h.083a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75v-15a.75.75 0 0 1 .75-.75","clip-rule":"evenodd"})})}function VY({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{d:"M15.333 5.25a.083.083 0 0 0-.083-.083h-10a.08.08 0 0 0-.059.024.08.08 0 0 0-.024.059v10q0 .034.024.059a.08.08 0 0 0 .059.024h10a.083.083 0 0 0 .083-.083zM9.917 9.417a.92.92 0 0 0-.826-.912L9 8.5a.917.917 0 0 0-.917.917v.916h1.834zm2.5 3.333v-5a.75.75 0 0 1 1.5 0v5a.75.75 0 0 1-1.5 0m-1 0a.75.75 0 0 1-1.5 0v-.917H8.083v.917a.75.75 0 0 1-1.5 0V9.417A2.42 2.42 0 0 1 9 7l.24.012a2.42 2.42 0 0 1 2.177 2.405zm5.416-4.917h.917a.75.75 0 0 1 0 1.5h-.917v1.834h.917a.75.75 0 0 1 0 1.5h-.917v2.583a1.58 1.58 0 0 1-1.583 1.583h-2.583v.917a.75.75 0 0 1-1.5 0v-.917H9.333v.917a.75.75 0 0 1-1.5 0v-.917H5.25a1.58 1.58 0 0 1-1.583-1.583v-2.583H2.75a.75.75 0 0 1 0-1.5h.917V9.333H2.75a.75.75 0 0 1 0-1.5h.917V5.25A1.58 1.58 0 0 1 5.25 3.667h2.583V2.75a.75.75 0 0 1 1.5 0v.917h1.834V2.75a.75.75 0 0 1 1.5 0v.917h2.583a1.58 1.58 0 0 1 1.583 1.583z"})})}function VK({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M6.75 2.5a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-.083v4.118l3.277 9.01a1.334 1.334 0 0 1-.974 1.86 1 1 0 0 1-.136.012H5.417a1 1 0 0 1-.135-.012 1.334 1.334 0 0 1-.975-1.86l3.276-9.01V3.25H7.5a.75.75 0 0 1-.75-.75m2.334.75V7.5a.8.8 0 0 1-.046.256l-1.567 4.311c.655-.099 1.467-.291 2.194-.655a9 9 0 0 1 2.336-.795h.001l-1.04-2.86a.8.8 0 0 1-.045-.257V3.25z","clip-rule":"evenodd"})})}Vz.styleTagTransform=kK(),Vz.setAttributes=kB(),Vz.insert=kX().bind(null,"head"),Vz.domAPI=kF(),Vz.insertStyleElement=kH(),kW()(VX.A,Vz),VX.A&&VX.A.locals&&VX.A.locals;var VJ=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Tooltip.module.css.ts.vanilla.css","source":"Lmw1amQ5bTAgewogIHBvc2l0aW9uOiByZWxhdGl2ZTsKICBkaXNwbGF5OiBpbmxpbmUtZmxleDsKICBmbGV4LXNocmluazogMDsKfQoubDVqZDltMSB7CiAgcG9zaXRpb246IGZpeGVkOwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktNzAwKTsKICBjb2xvcjogd2hpdGU7CiAgcGFkZGluZzogNnB4IDEycHg7CiAgYm9yZGVyLXJhZGl1czogNnB4OwogIGZvbnQtc2l6ZTogMTJweDsKICBmb250LXdlaWdodDogNTAwOwogIHdoaXRlLXNwYWNlOiBub3dyYXA7CiAgcG9pbnRlci1ldmVudHM6IG5vbmU7CiAgei1pbmRleDogMjE0NzQwMDE5MDsKICBib3gtc2hhZG93OiAwIDJweCA4cHggcmdiYSgwLCAwLCAwLCAwLjIpOwogIHRyYW5zZm9ybS1vcmlnaW46IGNlbnRlciBjZW50ZXI7Cn0KLmw1amQ5bTE6OmFmdGVyIHsKICBjb250ZW50OiAiIjsKICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgdG9wOiAxMDAlOwogIGxlZnQ6IDUwJTsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTUwJSk7CiAgd2lkdGg6IDA7CiAgaGVpZ2h0OiAwOwogIGJvcmRlci1sZWZ0OiA2cHggc29saWQgdHJhbnNwYXJlbnQ7CiAgYm9yZGVyLXJpZ2h0OiA2cHggc29saWQgdHJhbnNwYXJlbnQ7CiAgYm9yZGVyLXRvcDogNnB4IHNvbGlkIHZhcigtLWxwLWNvbG9yLWdyYXktNzAwKTsKfQ=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),VQ={};function Vq({content:e,children:t}){let[r,n]=A.useState(!1),[i,o]=A.useState(!1),[s,a]=A.useState({top:0,left:0}),l=A.useRef(null),c=A.useRef(null),u=A.useCallback(()=>{if(l.current&&c.current){let e=l.current.getBoundingClientRect(),t=c.current.getBoundingClientRect();a({top:e.top-e.height/2-16,left:e.left+e.width/2-t.width/2-4}),o(!0)}},[]);return(0,A.useEffect)(()=>{r&&!i&&requestAnimationFrame(()=>{u()})},[r,i,u]),(0,E.jsxs)("div",{ref:l,className:"l5jd9m0",onMouseEnter:()=>{n(!0),o(!1)},onMouseLeave:()=>{n(!1),o(!1)},children:[t,(0,E.jsx)(oG,{children:r&&(0,E.jsx)(oI.div,{ref:c,className:"l5jd9m1",style:{top:`${s.top}px`,left:`${s.left}px`,visibility:i?"visible":"hidden"},initial:{opacity:0,scale:.9},animate:{opacity:+!!i,scale:i?1:.9},exit:{opacity:0,scale:.9},transition:{duration:.15},children:e})})]})}VQ.styleTagTransform=kK(),VQ.setAttributes=kB(),VQ.insert=kX().bind(null,"head"),VQ.domAPI=kF(),VQ.insertStyleElement=kH(),kW()(VJ.A,VQ),VJ.A&&VJ.A.locals&&VJ.A.locals;var V$=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/IconBar/IconBar.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA7VSy5LTMBC85yvmCAelHK8XgviasTS2B7QaIcnOpij+nbKcd20IULVHST3d061eT5sf3PgKfq4ALKfgcK+hc/T6dQWAjnuvONNL0mDIZ4rz9bcxZe72yojP5LOGFNCQwiijtzMgoLXsew2fQuFpJVqKqpWc5UXDJrxCEscWJowflHJBGXESVR9xrz5X1cd5qMegYTsT/FqtlzU3Zc0Wzfe+aC1jGnJEnwJG8vksp8GLp/l8QL0l1hzEzBjTjAnCR5cnE9srExEtj+l0+9+ZnZ92bPOgoWkWxoG4H/L5XMxxZvEa0Dmo1nUCwlSsBTk+RXKYeaLLuPQgE8U7ob0Vx5djHPchdYFcaHRixlQ0ZMyOPR2Dv8WoiRO3jq6x9b0ypAGt7FT5DzSzNVVoyoKHcSVdlyhrUPVVUep39fy0OAhoOO81VOvmskJeskLnZEf2cuaPf3FT4IeFPdE2hfDQoPqmQcv5hH3+u1BaN9KDUArkZpPnfylbIdg+1nhaNH4DgeodNqYEAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),V0={};V0.styleTagTransform=kK(),V0.setAttributes=kB(),V0.insert=kX().bind(null,"head"),V0.domAPI=kF(),V0.insertStyleElement=kH(),kW()(V$.A,V0),V$.A&&V$.A.locals&&V$.A.locals;let V1=wu("enable-ai-icon",!1),V2=wu("enable-interactive-icon",!1),V5=wu("enable-optimize-icon",!1),V3=wu("toolbar-enable-session-replay",!1),V9=wu("use-new-toolbar-design",!1);function V4(e){if(!e)return!1;if(e.closest('[data-ld-selection-bar="true"]'))return!0;let t=document.getElementById(MK.D);if(t&&(e===t||t.contains(e)))return!0;let r=e;for(;r;){if(r.id===MK.D)return!0;let e=r.getRootNode();r=e instanceof ShadowRoot?e.host:r.parentElement}return!1}function V6(e){let t=e.tagName.toLowerCase();if(e.id)t+=`#${e.id}`;else if(e.classList.length>0){let r=Array.from(e.classList).slice(0,2);t+=`.${r.join(".")}`}return t}let V7=["aria-label","aria-describedby","aria-labelledby","role","type","name","href","src","alt","title","placeholder","value","for","action","method"];function V8(e){if(!e||!(e instanceof Element))throw Error("Invalid element provided to getElementRect. Element must be a valid DOM Element instance.");return e.getBoundingClientRect()}let We=(0,A.createContext)(void 0);function Wt({children:e,onSelectionStart:t,onSelectionEnd:r}){let[n,i]=(0,A.useState)(!1),[o,s]=(0,A.useState)(null),[a,l]=(0,A.useState)(null),[c,u]=(0,A.useState)(null),d=(0,A.useCallback)(()=>{i(!0),s(null),l(null),u(null),t?.()},[t]),p=(0,A.useCallback)(()=>{i(!1),u(null),r?.()},[r]),h=(0,A.useCallback)(e=>{s(e),l(function(e){let t,r,n;if(!e||!(e instanceof Element))throw Error("Invalid element provided to getElementInfo. Element must be a valid DOM Element instance.");let i=e.getBoundingClientRect(),o=null,s=e.textContent?.trim();return s&&s.length>0&&(o=(o=s.length>80?s.substring(0,80)+"...":s).replace(/\s+/g," ")),{tagName:e.tagName.toLowerCase(),id:e.id||null,classes:Array.from(e.classList),textContent:o,selector:function(e){let t=[],r=e;for(;r&&r!==document.body&&r!==document.documentElement;){let e=r.tagName.toLowerCase();if(r.id){e+=`#${r.id}`,t.unshift(e);break}let n=Array.from(r.classList).slice(0,2);n.length>0&&(e+=`.${n.join(".")}`);let i=r.parentElement;if(i){let t=Array.from(i.children).filter(e=>e.tagName===r.tagName);if(t.length>1){let n=t.indexOf(r)+1;e+=`:nth-of-type(${n})`}}if(t.unshift(e),r=r.parentElement,t.length>=4)break}return t.join(" > ")}(e),primaryIdentifier:(t=e.tagName.toLowerCase(),r=`<${t}>`,e.id&&(r+=`#${e.id}`),(n=Array.from(e.classList).slice(0,3)).length>0&&(r+=`.${n.join(".")}`),r),dataAttributes:function(e){let t=[];for(let r of Array.from(e.attributes))r.name.startsWith("data-")&&!r.name.startsWith("data-ld-")&&t.push({name:r.name,value:r.value});return t.sort((e,t)=>{let r=["data-testid","data-test-id","data-cy","data-component"],n=r.indexOf(e.name),i=r.indexOf(t.name);return -1!==n&&-1!==i?n-i:-1!==n?-1:-1!==i?1:e.name.localeCompare(t.name)})}(e),htmlAttributes:function(e){let t=[];for(let r of V7){let n=e.getAttribute(r);n&&t.push({name:r,value:n})}return t}(e),dimensions:{width:Math.round(i.width),height:Math.round(i.height)}}}(e)),i(!1),u(null),r?.()},[r]),f=(0,A.useCallback)(()=>{s(null),l(null),i(!1),u(null)},[]),m=(0,A.useMemo)(()=>({isSelecting:n,selectedElement:o,selectedElementInfo:a,hoveredElement:c,startSelection:d,exitSelection:p,selectElement:h,clearSelection:f,setHoveredElement:u}),[n,o,a,c,d,p,h,f]);return(0,E.jsx)(We.Provider,{value:m,children:e})}function Wr(){let e=(0,A.useContext)(We);if(void 0===e)throw Error("useElementSelection must be used within an ElementSelectionProvider");return e}function Wn({defaultActiveTab:e}){let t=V2(),r=V1(),n=V5(),{activeTab:i,setActiveTab:o}=wz(),{startSelection:s}=Wr(),[a,l]=(0,A.useState)(null);(0,A.useEffect)(()=>{i||o(e)},[e,i,o]);let c=[{id:"interactive",Icon:VU,label:"Interactive Mode",tooltip:t?"Interactive Mode":"Interactive Mode (Coming Soon)",disabled:!t},{id:"flags",Icon:Vw,label:" Flags",tooltip:"Feature Flags"},{id:"optimize",Icon:VK,label:"Optimize",tooltip:n?"Optimization":"Optimization (Coming Soon)",disabled:!n},{id:"ai",Icon:VY,label:"AI",tooltip:r?"AI":"AI (Coming Soon)",disabled:!r},{id:"monitoring",Icon:VH,label:"Analytics",tooltip:"Monitoring"},{id:"settings",Icon:VS,label:"Settings",tooltip:"Settings"}];return(0,E.jsx)("div",{className:"v1qi4n0",children:c.map(({id:e,Icon:t,label:r,tooltip:n,disabled:c})=>{let u=(0,A.useMemo)(()=>({id:e,Icon:t,label:r,tooltip:n,disabled:c}),[e,t,r,n,c]),d="interactive"===e&&"interactive"===i&&"interactive"===a;return(0,E.jsx)(Vq,{content:"interactive"!==u.id||"interactive"!==i||u.disabled?u.tooltip:"Select Element",children:(0,E.jsx)("button",{onClick:()=>{!c&&("interactive"===e?("interactive"===i||o(e),s()):o(e))},onMouseEnter:()=>l(e),onMouseLeave:()=>l(null),className:`v1qi4n1 ${e===i?"v1qi4n2":""} ${c?"v1qi4n3":""} ${d?"v1qi4n5":""}`,"aria-label":r,disabled:c,children:(0,E.jsx)(t,{className:"v1qi4n4"})})},e)})})}let Wi=(0,A.createContext)(void 0);function Wo({children:e}){let[t,r]=(0,A.useState)("flags"),n=(0,A.useMemo)(()=>({activeSubtab:t,setActiveSubtab:r}),[t]);return(0,E.jsx)(Wi.Provider,{value:n,children:e})}function Ws(){let e=(0,A.useContext)(Wi);if(!e)throw Error("useActiveSubtabContext must be used within ActiveSubtabProvider");return e}let Wa={flags:"",contexts:"",events:"",general:"",workflows:""},Wl=(0,A.createContext)({searchTerms:Wa,setSearchTerm:()=>{},clearSearchTerm:()=>{},clearAllSearchTerms:()=>{}});function Wc({children:e}){let[t,r]=(0,A.useState)(Wa),n=(0,A.useCallback)((e,t)=>{r(r=>({...r,[e]:t}))},[]),i=(0,A.useCallback)(e=>{r(t=>({...t,[e]:""}))},[]),o=(0,A.useCallback)(()=>{r(Wa)},[]);return(0,E.jsx)(Wl.Provider,{value:{searchTerms:t,setSearchTerm:n,clearSearchTerm:i,clearAllSearchTerms:o},children:e})}function Wu(){let e=(0,A.useContext)(Wl);if(!e)throw Error("useTabSearchContext must be used within TabSearchProvider");return e}function Wd({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M8.333 3.25a.083.083 0 0 0-.083.083v1.75h3.5v-1.75a.083.083 0 0 0-.084-.083zm4.917 1.833v-1.75a1.583 1.583 0 0 0-1.584-1.583H8.333A1.583 1.583 0 0 0 6.75 3.333v1.75H3.333a.75.75 0 1 0 0 1.5h.143l.774 9.284a2.417 2.417 0 0 0 2.416 2.383h6.667a2.417 2.417 0 0 0 2.416-2.383l.774-9.284h.143a.75.75 0 1 0 0-1.5zm-8.269 1.5.766 9.188q.003.03.003.062a.917.917 0 0 0 .916.917h6.667a.917.917 0 0 0 .917-.917l.002-.062.766-9.188zm3.352 1.834a.75.75 0 0 1 .75.75v5a.75.75 0 1 1-1.5 0v-5a.75.75 0 0 1 .75-.75m3.333 0a.75.75 0 0 1 .75.75v5a.75.75 0 1 1-1.5 0v-5a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})})}var Wp=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/SearchSection.module.css.ts.vanilla.css","source":"Ll8xZnFueTJqMCB7CiAgZmxleDogMTsKICBtaW4td2lkdGg6IDIwMHB4OwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7Cn0KLl8xZnFueTJqMSB7CiAgaGVpZ2h0OiAzMnB4Owp9Ci5fMWZxbnkyajIgewogIHBhZGRpbmctcmlnaHQ6IDBweCAhaW1wb3J0YW50OwogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBnYXA6IDRweDsKfQ=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Wh={};function Wf(e){let{searchTerm:t,onSearch:r,setSearchIsExpanded:n}=e;return(0,E.jsx)("div",{className:"_1fqny2j0",onBlur:()=>{t.trim()||n(!1)},children:(0,E.jsx)(IS,{"aria-label":"Search","data-theme":"dark",className:"_1fqny2j1",children:(0,E.jsxs)(Iy,{className:"_1fqny2j2",children:[(0,E.jsx)(Ig,{autoFocus:!0,placeholder:"Search",value:t,onChange:e=>{r(e.target.value)},onKeyDown:e=>{e.stopPropagation()},onKeyUp:e=>e.stopPropagation(),onKeyPress:e=>e.stopPropagation()}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(VN,{}),label:"Clear",onClick:()=>{t.trim()?r(""):n(!1)},size:"medium"})]})})})}Wh.styleTagTransform=kK(),Wh.setAttributes=kB(),Wh.insert=kX().bind(null,"head"),Wh.domAPI=kF(),Wh.insertStyleElement=kH(),kW()(Wp.A,Wh),Wp.A&&Wp.A.locals&&Wp.A.locals;let Wm={flags:{subtab:"flags",options:[{id:"all",label:"All",description:"Show all flags"},{id:"overrides",label:"Overrides",description:"Show overridden flags"},{id:"starred",label:"Starred",description:"Show starred flags"}],defaultSelected:["all"],allowMultiple:!0},events:{subtab:"events",options:[{id:"all",label:"All",description:"Show all events"},{id:"feature",label:"Feature",description:"Show feature flag evaluations"},{id:"custom",label:"Custom",description:"Show custom events"},{id:"identify",label:"Identify",description:"Show identify events"}],defaultSelected:["all"],allowMultiple:!0}},Wg=(0,A.createContext)(null);function Wb({children:e}){let[t,r]=(0,A.useState)(()=>{let e={};return Object.entries(Wm).forEach(([t,r])=>{e[t]={activeFilters:new Set(r.defaultSelected),config:r}}),e}),[n,i]=(0,A.useState)(!1),o=(0,A.useCallback)(e=>t[e]?.activeFilters||new Set(["all"]),[t]),s=(0,A.useCallback)(e=>Wm[e]||null,[]),a=(0,A.useCallback)((e,t)=>{r(r=>{let n=Wm[e];if(!n)return r;let i=r[e]||{activeFilters:new Set(n.defaultSelected),config:n},o=new Set(i.activeFilters);return"all"===t?{...r,[e]:{...i,activeFilters:new Set(["all"])}}:(o.has("all")&&o.delete("all"),o.has(t)?(o.delete(t),0===o.size&&o.add("all")):(n.allowMultiple||o.clear(),o.add(t)),{...r,[e]:{...i,activeFilters:o}})})},[]),l=(0,A.useCallback)((e,t)=>{let n=Wm[e];n&&r(r=>({...r,[e]:{config:n,activeFilters:new Set(t.length>0?t:n.defaultSelected)}}))},[]),c=(0,A.useCallback)(e=>{let t=Wm[e];t&&r(r=>({...r,[e]:{config:t,activeFilters:new Set(t.defaultSelected)}}))},[]),u=(0,A.useCallback)(e=>void 0!==Wm[e],[]),d=(0,A.useCallback)(e=>{let r=Wm[e];if(!r)return!1;let n=t[e]?.activeFilters||new Set(r.defaultSelected),i=new Set(r.defaultSelected);if(n.size!==i.size)return!0;for(let e of n)if(!i.has(e))return!0;return!1},[t]),p=(0,A.useCallback)(()=>i(!0),[]),h=(0,A.useCallback)(()=>i(!1),[]),f=(0,A.useCallback)(()=>i(e=>!e),[]),m=(0,A.useMemo)(()=>({getActiveFilters:o,getFilterConfig:s,toggleFilter:a,setFilters:l,resetFilters:c,hasFilters:u,hasActiveNonDefaultFilters:d,isFilterOverlayOpen:n,openFilterOverlay:p,closeFilterOverlay:h,toggleFilterOverlay:f}),[o,s,a,l,c,u,d,n,p,h,f]);return(0,E.jsx)(Wg.Provider,{value:m,children:e})}function Wv(){let e=(0,A.useContext)(Wg);if(!e)throw Error("useFilters must be used within a FiltersProvider");return e}function Wy(e){let{getActiveFilters:t,getFilterConfig:r,toggleFilter:n,resetFilters:i,hasFilters:o,hasActiveNonDefaultFilters:s}=Wv();return(0,A.useMemo)(()=>({activeFilters:t(e),config:r(e),toggle:t=>n(e,t),reset:()=>i(e),hasFilters:o(e),hasActiveNonDefaultFilters:s(e)}),[e,t,r,n,i,o,s])}function Wx({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M9.958 4.958a2.417 2.417 0 0 1 4.006.959h2.702a.75.75 0 1 1 0 1.5h-2.702a2.417 2.417 0 0 1-4.595 0H3.333a.75.75 0 1 1 0-1.5h6.036a2.4 2.4 0 0 1 .588-.96m1.708.792a.916.916 0 1 0 0 1.833.916.916 0 0 0 0-1.833m-6.303 5.874a2.417 2.417 0 0 1 4.006.96h7.297a.75.75 0 1 1 0 1.5H9.37a2.416 2.416 0 0 1-4.595 0H3.333a.75.75 0 0 1 0-1.5h1.441c.117-.359.317-.688.589-.96m1.709.793a.916.916 0 1 0 0 1.832.916.916 0 0 0 0-1.832","clip-rule":"evenodd"})})}var Ww=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/FilterOverlay/FilterOverlay.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA61W246bMBB9z1fMS6WtVEdAEjbxfkxl8EDcdWxkm4Tdqv9eYUwI5LJ0txIP+DLjOefMjL38GZ82eV5E8HsBUGkrnNCKAsuslrXDlwWA0xWFOIq+tQMjyr2jELX/B2ZKoYhf31aNnxKKnAR3ewpJEnVzGctfS6NrxUmupTYUjsw8ESKrbkxKw97ILoq++93acDQU4qoBq6XgN3c/j3YTw7io7TmKTDfE7hnXJwoRrKsG4rRqwJQZe4p+QPiWK+/inQjFsfEQ27E+oilka7oXnKN6WfxZLANNsaeJC1tJ9kahkOjPY1KUigiHB0shR+XQtNO/autE8UZyrRwqR8FWLEeSoTth6xegYpwLVVKIkxDkBahMO6cP85gYQkx8iIVWjljxjhTiVefVT52w0y/tsD7QIwkMdyJ7xYdDVleHJN0hMxwO6UBBaYWXovfjMy+tdkHUMNel2/OIqV7+dQiiNraNotKil8IZps65LSVEy3hjAZnFESy6b9X34OZl7XbC/opyYVkmkXsnDyw3gY4+WKUdYVLqE/JLh+uuMHs+PBfD6uaf8rFk1aDUkHpRm3rJTULTTxEKEFpA3zQuJfeGFTOo3C3lHTYtD6JUFCQWboT2y/JsaKHz2pKjsCKT6D3p2kmhkEJyr866VkI8dpY7cUTi3Xj9gjnRRWHRUSDJWKL0C+E+e9uezFAH+1DC8fZRDfS83gU1SsLr8CYyfbrlDUutJbF7I9RruD/mFeW2I7BD+YC89V0s93cPp+xGVKcTqtOxpux22XmEXBjMO0y5lvVBnStvkhjZrEa9mdmoB7/5ld/4w948ZYNPngOFaNq2BCCUT/JodHHudpe2OLE1KFlbM5d7io+eGyTEHJ4bZH31vLit0d0XwaykSEMKXZIXfer2jIOn/1A350Yd9bXt+80Z98viz1+3sLW9xgkAAA=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Wk={};Wk.styleTagTransform=kK(),Wk.setAttributes=kB(),Wk.insert=kX().bind(null,"head"),Wk.domAPI=kF(),Wk.insertStyleElement=kH(),kW()(Ww.A,Wk),Ww.A&&Ww.A.locals&&Ww.A.locals;let WS=(0,A.memo)(function({option:e,isActive:t,onToggle:r}){return(0,E.jsxs)("button",{className:`_1w5ccf5 ${t?"_1w5ccf6":""}`,onClick:r,role:"checkbox","aria-checked":t,"aria-label":e.description||e.label,children:[(0,E.jsx)("div",{className:`_1w5ccf7 ${t?"_1w5ccf8":""}`,children:t&&(0,E.jsx)(Eu,{className:"_1w5ccf9"})}),(0,E.jsxs)("div",{className:"_1w5ccfa",children:[(0,E.jsx)("span",{className:"_1w5ccfb",children:e.label}),e.description&&(0,E.jsx)("span",{className:"_1w5ccfc",children:e.description})]})]})}),WC=(0,A.memo)(function({subtab:e,onClose:t}){let r=(0,A.useRef)(null),{getActiveFilters:n,getFilterConfig:i,toggleFilter:o,resetFilters:s,hasActiveNonDefaultFilters:a}=Wv(),l=i(e),c=n(e),u=a(e),d=(0,A.useCallback)(t=>{o(e,t)},[e,o]),p=(0,A.useCallback)(()=>{s(e)},[e,s]);(0,A.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t]);let h=(0,A.useCallback)(()=>{if(r.current){let e=r.current.querySelector("button");e?.focus()}},[]);return l?(0,E.jsxs)(oI.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.04,ease:"easeOut"},onAnimationComplete:e=>{"animate"===e&&h()},style:{position:"absolute",top:0,right:0,left:0,bottom:0,pointerEvents:"none"},children:[(0,E.jsx)("div",{className:"_1w5ccfd",onClick:t,"aria-hidden":"true",style:{pointerEvents:"auto"}}),(0,E.jsxs)("div",{ref:r,className:"_1w5ccf0",role:"dialog","aria-label":"Filter options",style:{pointerEvents:"auto"},children:[(0,E.jsxs)("div",{className:"_1w5ccf1",children:[(0,E.jsx)("h3",{className:"_1w5ccf2",children:"Filters"}),(0,E.jsx)("button",{className:"_1w5ccf3",onClick:p,disabled:!u,"aria-label":"Reset filters to default",children:"Reset"})]}),(0,E.jsx)("div",{className:"_1w5ccf4",role:"group","aria-label":"Available filters",children:l.options.map(e=>(0,E.jsx)(WS,{option:e,isActive:c.has(e.id),onToggle:()=>d(e.id)},e.id))})]})]}):null});function W_({className:e}){let{activeSubtab:t}=Ws(),{hasFilters:r,hasActiveNonDefaultFilters:n,getActiveFilters:i,isFilterOverlayOpen:o,toggleFilterOverlay:s,closeFilterOverlay:a}=Wv();if(!r(t))return null;let l=n(t),c=i(t),u=c.has("all")?0:c.size;return(0,E.jsxs)("div",{className:"_1w5ccfe",children:[(0,E.jsx)(Eg,{icon:(0,E.jsx)(Wx,{}),label:"Filter",onClick:s,className:e,"aria-expanded":o,"aria-haspopup":"dialog"}),l&&u>0&&(0,E.jsx)("div",{className:"_1w5ccff","aria-label":`${u} filters active`,children:u}),(0,E.jsx)(oG,{children:o&&(0,E.jsx)(WC,{subtab:t,onClose:a},"filter-overlay")})]})}var WT=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/ContentActions.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA9WSwU7DMAyG73sKH+GQqZQxRHgY5DVuawhxlKQdFdq7o6UFOjZxADSJW63a3//H/pcPN264w76A1wWA4egtDhpqSy/3C4AGvYaVz99ouXGKEz1HDRW5ROF+sVssJ8LVacLJKYDHLiauB1WJS+TS/NeWTWo1XJejbEvctOmz9mgMu+bD1garpyZI54yqxErQkAK66DGQS7lBgqGgwYmjz1oFNNxFDesRU3Uh7oe98LuRCddjuFDK+hGvmoCDWhXF5b4lS3FicRrQWiiWZQTCSAeb0a30FLSTdKENR9xYMpd5XcfmT6ndTmrftJS5Za6JVeKefi66PiK+UzJEPFacBg3FcjXfn5Ok0FrZkjmcrqXqouo58sbSiOiSZUcaSv8CUSybr0Zii0a2Kl9kfI/KmLyNaVxJXUdKmTJXLM+dx/V/yWM55vHPAhjITAbmGuO9fhG48uyRuc4a073L4vDeY717A33ChlMxBQAA"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),WI={};WI.styleTagTransform=kK(),WI.setAttributes=kB(),WI.insert=kX().bind(null,"head"),WI.domAPI=kF(),WI.insertStyleElement=kH(),kW()(WT.A,WI),WT.A&&WT.A.locals&&WT.A.locals;var WE="_5ny9av3";function WA(){let{activeTab:e}=wz(),{activeSubtab:t}=Ws(),{eventInterceptionPlugin:r}=w4(),{searchTerms:n}=Wu(),i=(0,A.useMemo)(()=>n[t]||"",[n,t]),{events:o}=MR(r,i),{setSearchTerm:s}=Wu(),[a,l]=(0,A.useState)(!1);(0,A.useEffect)(()=>{i.trim()?l(!0):l(!1)},[t,i]);let{selectedElement:c,clearSelection:u}=Wr(),{mode:d}=w2(),{refresh:p,state:h}=kk(),{refreshFlags:f,loading:m}=kg(),g="flags"===e&&"flags"===t||"monitoring"===e&&"events"===t,b="monitoring"===e&&"events"===t,v="dev-server"===d&&"flags"===e&&"flags"===t,y="flags"===e&&"contexts"===t,{setIsAddFormOpen:x}=ks(),w="sdk"===d&&"flags"===e&&"flags"===t,k=(0,A.useCallback)(()=>{r&&r.clearEvents()},[r]),S=(0,A.useCallback)(()=>{p()},[p]),C=(0,A.useCallback)(()=>{f()},[f]),_=(0,A.useCallback)(e=>{t&&s(t,e)},[t,s]);return(0,E.jsxs)("div",{className:"_5ny9av0",children:["interactive"===e&&c&&(0,E.jsx)("button",{className:"_5ny9av2",onClick:u,"aria-label":"Clear selection",title:"Clear selection",children:(0,E.jsx)(VN,{className:WE})}),"interactive"!==e&&(0,E.jsxs)(E.Fragment,{children:[a&&(0,E.jsx)(Wf,{searchTerm:i,onSearch:_,setSearchIsExpanded:l},t),!a&&(0,E.jsx)(Eg,{icon:(0,E.jsx)(VG,{}),label:"Search",onClick:()=>l(!0)})]}),y&&x&&(0,E.jsx)(Eg,{icon:(0,E.jsx)(MV,{}),label:"Add context",onClick:()=>x(!0)}),g&&(0,E.jsx)(W_,{}),v&&(0,E.jsx)(Eg,{icon:(0,E.jsx)(Vk,{}),label:"Sync flags",onClick:S,disabled:h.isLoading}),w&&(0,E.jsx)(Eg,{icon:(0,E.jsx)(Vk,{}),label:"Refresh flags",onClick:C,disabled:m}),b&&(0,E.jsx)("button",{className:"_5ny9av1",onClick:k,disabled:0===o.length,"aria-label":"Clear all events",title:`Clear all events (${o.length})`,children:(0,E.jsx)(Wd,{className:WE})})]})}var WO=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/SubtabDropdown.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA71V227iMBB9z1fMS6WirZETQqHu15hkknhxbct2Au2q/76yEyDZAgWtdqW8xD5zOzNzPN+9dbTjFH4lAEY74YVWDCxK7kWHrwlAKZyR/J2BUFIoJBupi+1r8pnMe9s02h5RlcR9MONS1IoIj2+OQYHKow3HNTcM1iZCNrzY1la3qiSFltoy6Lh9JESa/p/Ulr+TlyWdRbS2JVoGqdmD01KUZ9ErOkYTy0vROgbPfcQrYbLBsNLKEyc+kEGa91bxaIeibjyDJaXhzPCyFKqOtUCaDe5b64J/o8WhXm+5OrDKpQQ6zxwgd5HaN6HITpS+YZBmNPg4scoa3aGN3N7G03pa+RXkc0SOQlW6aF0MpVsfmsxAaYVfMaQTTmwkTrHZpY64hpd6RyIZvAgDRaKbmOdgTnRVOfTRyyhg9j8qX8Qghw4MM9IMjT78h4EmrrFCbRnQkXUercM1gzT2GveexLlnILHy4WzXCI/EGV5EUneWm5GL5V2787N1XlTvpNDKo/Ljq4tJPn9f4hG7+kMF+MZp2fo4ql4bBgWXxWNK6QP8gNzsI+mh0BhyOs6UPty+4tMG/t2Kb/R+mDsGCQANiYY7IMGrrTf8kT7B8M0Xs6cICiOcXwJlsyR4/iBClaHZWZqvckrTXgnCmlYyhGtEWaKK6tALAMEOlXcMeOv1iOj1tO2Dop7aNJB31JiUjkTmK6VRYwy3qPyYxX6Fr4re4kbRy/tSzw34TZqXLk+id54bgNahJQ4lFv6L/KzvVsPV8GpcgaRTMVhflsH7go489qJ3T9rTnF7+RcXnHrTP39aSaGAJCAAA"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),WL={};function WR({subtabs:e,activeSubtab:t,onSelectSubtab:r}){let[n,i]=(0,A.useState)(!1),o=(0,A.useRef)(null),s=e.find(e=>e.id===t),a=s?.label||"Select";return(0,A.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&i(!1)};if(n)return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[n]),(0,E.jsxs)("div",{className:"wmv0va0",ref:o,children:[(0,E.jsxs)("button",{className:`wmv0va1 ${n?"wmv0va2":""}`,onClick:e=>{e.stopPropagation(),i(e=>!e)},onKeyDown:e=>{"Enter"===e.key||" "===e.key?(e.preventDefault(),i(!n)):"Escape"===e.key&&i(!1)},"aria-expanded":n,"aria-haspopup":"true",children:[(0,E.jsx)("span",{className:"wmv0va4",children:a}),(0,E.jsx)(oI.span,{className:"wmv0va5",animate:{rotate:180*!!n},transition:{duration:.2},children:(0,E.jsx)(MJ,{className:"wmv0va6"})})]}),(0,E.jsx)(oG,{children:n&&(0,E.jsx)(oI.div,{className:"wmv0va7",initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.15},onClick:e=>e.stopPropagation(),children:e.map(e=>(0,E.jsx)("button",{className:`wmv0va8 ${e.id===t?"wmv0va9":""}`,onClick:t=>{var n;n=e.id,t.stopPropagation(),r(n),i(!1)},role:"menuitem",type:"button",children:e.label},e.id))})})]})}WL.styleTagTransform=kK(),WL.setAttributes=kB(),WL.insert=kX().bind(null,"head"),WL.domAPI=kF(),WL.insertStyleElement=kH(),kW()(WO.A,WL),WO.A&&WO.A.locals&&WO.A.locals;let WN={flags:[{id:"flags",label:"Flags"},{id:"contexts",label:"Contexts"}],monitoring:[{id:"events",label:"Events"}],settings:[{id:"general",label:"General"}],interactive:[{id:"workflows",label:"Workflows"}]};var WZ=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/TabBar.module.css.ts.vanilla.css","source":"LnI2amZxZzAgewogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgcGFkZGluZzogOHB4IDEycHg7CiAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHZhcigtLWxwLWNvbG9yLWdyYXktNjAwKTs7CiAgbWluLWhlaWdodDogNDhweDsKICBnYXA6IDhweDsKfQoucjZqZnFnMSB7CiAgZGlzcGxheTogZmxleDsKICBnYXA6IDI0cHg7CiAgZmxleDogMTsKfQoucjZqZnFnMiB7CiAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7CiAgYm9yZGVyOiBub25lOwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7CiAgZm9udC1zaXplOiAxNHB4OwogIGZvbnQtd2VpZ2h0OiA1MDA7CiAgY3Vyc29yOiBwb2ludGVyOwogIHBhZGRpbmc6IDEycHggMDsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgdHJhbnNpdGlvbjogY29sb3IgMC4ycyBlYXNlOwp9Ci5yNmpmcWcyOmhvdmVyIHsKICBjb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS0yMDApOwp9Ci5yNmpmcWcyOmZvY3VzIHsKICBvdXRsaW5lOiBub25lOwp9Ci5yNmpmcWcyOmZvY3VzLXZpc2libGUgewogIG91dGxpbmU6IDJweCBzb2xpZCB2YXIoLS1scC1jb2xvci1zaGFkb3ctaW50ZXJhY3RpdmUtZm9jdXMpOwogIG91dGxpbmUtb2Zmc2V0OiAycHg7Cn0KLnI2amZxZzMgewogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTEwMCk7Cn0KLnI2amZxZzM6OmFmdGVyIHsKICBjb250ZW50OiAiIjsKICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgYm90dG9tOiAwOwogIGxlZnQ6IDA7CiAgcmlnaHQ6IDA7CiAgaGVpZ2h0OiAycHg7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS0xMDApOwp9"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),WG={};function Wj(){let{activeTab:e}=wz(),{activeSubtab:t,setActiveSubtab:r}=Ws(),n=e&&e in WN?WN[e]:[];return((0,A.useEffect)(()=>{if(e&&e in WN){let t;r((t=WN[e],t?.[0]?.id||"flags"))}},[e,r]),0===n.length)?null:(0,E.jsxs)("div",{className:"r6jfqg0",children:[(0,E.jsx)(WR,{subtabs:n,activeSubtab:t,onSelectSubtab:r}),(0,E.jsx)(WA,{})]})}WG.styleTagTransform=kK(),WG.setAttributes=kB(),WG.insert=kX().bind(null,"head"),WG.domAPI=kF(),WG.insertStyleElement=kH(),kW()(WZ.A,WG),WZ.A&&WZ.A.locals&&WZ.A.locals;var WM=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Settings/SettingsSection.module.css.ts.vanilla.css","source":"LmxjYTVmazAgewogIG1hcmdpbi1ib3R0b206IDI0cHg7Cn0KLmxjYTVmazEgewogIGZvbnQtc2l6ZTogMTJweDsKICBmb250LXdlaWdodDogNjAwOwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7CiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTsKICBsZXR0ZXItc3BhY2luZzogMC41cHg7CiAgbWFyZ2luLWJvdHRvbTogMTJweDsKICBwYWRkaW5nOiAwcHg7Cn0KLmxjYTVmazIgewogIGRpc3BsYXk6IGZsZXg7CiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICBnYXA6IDhweDsKfQ=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),WV={};function WW({title:e,children:t}){return(0,E.jsxs)("div",{className:"lca5fk0",children:[(0,E.jsx)("h3",{className:"lca5fk1",children:e}),(0,E.jsx)("div",{className:"lca5fk2",children:t})]})}WV.styleTagTransform=kK(),WV.setAttributes=kB(),WV.insert=kX().bind(null,"head"),WV.domAPI=kF(),WV.insertStyleElement=kH(),kW()(WM.A,WV),WM.A&&WM.A.locals&&WM.A.locals;var WP=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Settings/SettingsItem.module.css.ts.vanilla.css","source":"Ll8xOWhyanI2MCB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTg1MCk7CiAgdHJhbnNpdGlvbjogYWxsIDAuMnMgZWFzZTsKICBnYXA6IDE2cHg7Cn0KLl8xOWhyanI2MSB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIGdhcDogNHB4OwogIGZsZXg6IDE7CiAgbWluLXdpZHRoOiAwOwp9Ci5fMTlocmpyNjIgewogIGZvbnQtc2l6ZTogMTRweDsKICBmb250LXdlaWdodDogNTAwOwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTEwMCk7Cn0KLl8xOWhyanI2MyB7CiAgZm9udC1zaXplOiAxMnB4OwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7CiAgbGluZS1oZWlnaHQ6IDEuNDsKfQouXzE5aHJqcjY0IHsKICBkaXNwbGF5OiBmbGV4OwogIGFsaWduLWl0ZW1zOiBjZW50ZXI7CiAgZmxleC1zaHJpbms6IDA7Cn0KLl8xOWhyanI2NSB7CiAgZm9udC1zaXplOiAxMnB4OwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktOTUwKTsKfQ=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),WF={};function WD({label:e,description:t,children:r}){return(0,E.jsxs)("div",{className:"_19hrjr60",children:[(0,E.jsxs)("div",{className:"_19hrjr61",children:[(0,E.jsx)("div",{className:"_19hrjr62",children:e}),t&&(0,E.jsx)("div",{className:"_19hrjr63",children:t})]}),(0,E.jsx)("div",{className:"_19hrjr64",children:r})]})}function WX(){let{projectKey:e,setProjectKey:t,projects:r,loading:n,getProjects:i}=ku(),o=wg();(0,A.useEffect)(()=>{0===r.length&&i()},[r,i]);let s=(0,A.useMemo)(()=>r.map(e=>({id:e.key,label:e.name})),[r]);return(0,E.jsx)(MQ,{selectedKey:e,onSelectionChange:r=>{r&&r!==e&&!n&&(o.trackProjectSwitch(e,r),t(r))},"aria-label":"Select project",placeholder:"Select project","data-theme":"dark",isDisabled:n,options:s})}function Wz({currentPosition:e}){let{handlePositionChange:t}=wP(),r=wg(),n=wS.map(e=>({id:e,label:e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}));return(0,E.jsx)(MQ,{selectedKey:e,onSelectionChange:n=>{n&&n!==e&&(r.trackPositionChange(e,n,"settings"),t(n))},"aria-label":"Select toolbar position",placeholder:"Select position","data-theme":"dark",options:n})}WF.styleTagTransform=kK(),WF.setAttributes=kB(),WF.insert=kX().bind(null,"head"),WF.domAPI=kF(),WF.insertStyleElement=kH(),kW()(WP.A,WF),WP.A&&WP.A.locals&&WP.A.locals;var WB=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Settings/ConnectionStatus.module.css.ts.vanilla.css","source":"LmtqNTl6ZjAgewogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBnYXA6IDhweDsKfQoua2o1OXpmMSB7CiAgZm9udC1zaXplOiAxNHB4OwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTMwMCk7Cn0KLmtqNTl6ZjIgewogIHdpZHRoOiA4cHg7CiAgaGVpZ2h0OiA4cHg7CiAgYm9yZGVyLXJhZGl1czogNTAlOwp9Ci5rajU5emYzIHsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmVlbi01MDApOwogIGJveC1zaGFkb3c6IDAgMCA4cHggdmFyKC0tbHAtY29sb3ItZ3JlZW4tNTAwKTsKfQoua2o1OXpmNCB7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS01MDApOwp9Ci5rajU5emY1IHsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1scC1jb2xvci1yZWQtNTAwKTsKICBib3gtc2hhZG93OiAwIDAgOHB4IHZhcigtLWxwLWNvbG9yLXJlZC01MDApOwp9"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),WU={};WU.styleTagTransform=kK(),WU.setAttributes=kB(),WU.insert=kX().bind(null,"head"),WU.domAPI=kF(),WU.insertStyleElement=kH(),kW()(WB.A,WU),WB.A&&WB.A.locals&&WB.A.locals;var WH="kj59zf3",WY="kj59zf5",WK="kj59zf2",WJ="kj59zf1",WQ="kj59zf0",Wq="kj59zf4";function W$({status:e}){return(0,E.jsxs)("div",{className:WQ,children:[(0,E.jsx)("span",{className:WJ,children:(()=>{switch(e){case"connected":return"Connected";case"disconnected":return"Disconnected";case"error":return"Error"}})()}),(0,E.jsx)("div",{className:`${WK} ${I[e]}`})]})}var W0=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Settings/LogoutButton.module.css.ts.vanilla.css","source":"Ll8xcTQ0czNmMCB7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS04MDApOwogIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLWxwLWNvbG9yLWdyYXktNjAwKTsKICBjb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS0yMDApOwogIHBhZGRpbmc6IDhweCAxNnB4OwogIGJvcmRlci1yYWRpdXM6IDZweDsKICBmb250LXNpemU6IDEzcHg7CiAgZm9udC13ZWlnaHQ6IDUwMDsKICBjdXJzb3I6IHBvaW50ZXI7CiAgdHJhbnNpdGlvbjogYWxsIDAuMnMgZWFzZTsKfQouXzFxNDRzM2YwOmhvdmVyIHsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTcwMCk7CiAgYm9yZGVyLWNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTUwMCk7Cn0KLl8xcTQ0czNmMDpmb2N1cyB7CiAgb3V0bGluZTogbm9uZTsKfQouXzFxNDRzM2YwOmZvY3VzLXZpc2libGUgewogIG91dGxpbmU6IDJweCBzb2xpZCB2YXIoLS1scC1jb2xvci1zaGFkb3ctaW50ZXJhY3RpdmUtZm9jdXMpOwogIG91dGxpbmUtb2Zmc2V0OiAycHg7Cn0="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),W1={};function W2(){let{logout:e}=w$(),t=wg();return(0,E.jsx)("button",{className:"_1q44s3f0",onClick:()=>{t.trackLogout(),e()},"aria-label":"Log out",children:"Log out"})}W1.styleTagTransform=kK(),W1.setAttributes=kB(),W1.insert=kX().bind(null,"head"),W1.domAPI=kF(),W1.insertStyleElement=kH(),kW()(W0.A,W1),W0.A&&W0.A.locals&&W0.A.locals;var W5=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Settings/SettingsContent.module.css.ts.vanilla.css","source":"Lm45M3Q1ODAgewogIHBhZGRpbmc6IDRweCAwOwogIG1hcmdpbjogMTJweDsKfQoubjkzdDU4MSB7CiAgZm9udC1zaXplOiAxNHB4OwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTMwMCk7CiAgZm9udC1mYW1pbHk6IHZhcigtLWxwLWZvbnQtZmFtaWx5LW1vbm9zcGFjZSk7Cn0KLm45M3Q1ODIgewogIHBhZGRpbmc6IDE2cHg7CiAgZm9udC1zaXplOiAxM3B4OwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7CiAgdGV4dC1hbGlnbjogY2VudGVyOwp9Ci5uOTN0NTgzIHsKICBtYXJnaW4tdG9wOiAxMHB4OwogIHBhZGRpbmctdG9wOiAxMHB4OwogIGJvcmRlci10b3A6IDFweCBzb2xpZCB2YXIoLS1scC1jb2xvci1ncmF5LTcwMCk7CiAgbWFyZ2luLWxlZnQ6IC0yMHB4OwogIG1hcmdpbi1yaWdodDogLTIwcHg7Cn0KLm45M3Q1ODQgewogIGZvbnQtc2l6ZTogMTJweDsKICBmb250LXdlaWdodDogNjAwOwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7CiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTsKICBsZXR0ZXItc3BhY2luZzogMC41cHg7CiAgbWFyZ2luLWxlZnQ6IDIwcHg7CiAgcGFkZGluZzogMHB4Owp9"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),W3={};function W9(){let{environment:e,setEnvironment:t}=function(){let e=(0,A.useContext)(kp);if(!e)throw Error("useEnvironmentContext must be used within an EnvironmentProvider");return e}(),{environments:r,loading:n}=ku(),i=(0,A.useMemo)(()=>r.map(e=>({id:e.key,label:e.name})),[r]);return(0,E.jsx)(MQ,{selectedKey:e,onSelectionChange:r=>{r&&r!==e&&!n&&t(r)},"aria-label":"Select environment",placeholder:"Select environment","data-theme":"dark",isDisabled:n||0===r.length,options:i})}function W4(){let{state:e}=kk(),{isAutoCollapseEnabled:t,reloadOnFlagChangeIsEnabled:r,mode:n,handleToggleAutoCollapse:i,handleToggleReloadOnFlagChange:o}=w2(),{position:s}=wP(),a=wg(),{searchTerms:l}=Wu(),c=(0,A.useMemo)(()=>l.general||"",[l]),u=()=>{a.trackAutoCollapseToggle(t?"disable":"enable"),i()},d=()=>{a.trackReloadOnFlagChangeToggle(!r),o()},p="dev-server"===n?[{title:"Dev Server Configuration",items:[{id:"project",label:"Project",type:"project"},{id:"environment",label:"Environment",type:"text"},{id:"connection",label:"Connection status",type:"status"}]},{title:"Toolbar Settings",items:[{id:"position",label:"Position",type:"position"},{id:"auto-collapse",label:"Auto-collapse",description:"Automatically collapses the toolbar when clicking outside.",type:"switch",switchValue:t,onSwitchChange:u},{id:"reload-on-flag-change",label:"Reload on flag change",type:"switch",switchValue:r,onSwitchChange:d}]},{title:"Account",items:[{id:"logout",label:"Log out",description:"Sign the Toolbar out of LaunchDarkly",type:"button"}]}]:[{title:"Toolbar Settings",items:[{id:"project",label:"Project",type:"project"},{id:"environment",label:"Environment",type:"environment"},{id:"position",label:"Position",type:"position"},{id:"auto-collapse",label:"Auto-collapse",description:"Automatically collapses the toolbar when clicking outside.",type:"switch",switchValue:t,onSwitchChange:u},{id:"reload-on-flag-change",label:"Reload on flag change",type:"switch",switchValue:r,onSwitchChange:d}]},{title:"Account",items:[{id:"logout",label:"Log out",description:"Sign the Toolbar out of LaunchDarkly",type:"button"}]}];return!p.some(e=>e.items.some(e=>e.label.toLowerCase().includes(c.toLowerCase())||e.id.toLowerCase().includes(c.trim().toLowerCase())))&&c.trim()?(0,E.jsx)(Iq,{title:"No settings found",subtitle:"Try adjusting your search"}):(0,E.jsxs)("div",{className:"n93t580",children:[p.map(t=>{let r=t.items.filter(e=>e.label.toLowerCase().includes(c.toLowerCase())||e.id.toLowerCase().includes(c.trim().toLowerCase()));return 0===r.length?null:(0,E.jsx)(WW,{title:t.title,children:r.map(t=>{let r;switch(t.type){case"project":r=(0,E.jsx)(WX,{});break;case"position":r=(0,E.jsx)(Wz,{currentPosition:s});break;case"status":r=(0,E.jsx)(W$,{status:e.connectionStatus});break;case"switch":r=(0,E.jsx)(II,{"data-theme":"dark",className:"_19hrjr65",isSelected:t.switchValue??!1,onChange:t.onSwitchChange,"aria-label":t.label});break;case"button":r=(0,E.jsx)(W2,{});break;case"text":r=(0,E.jsx)("span",{className:"n93t581",children:e.sourceEnvironmentKey||"Unknown"});break;case"environment":r=(0,E.jsx)(W9,{});break;default:r=null}return(0,E.jsx)(WD,{label:t.label,description:t.description,children:r},t.id)})},t.title)}),(0,E.jsxs)("div",{className:"n93t583",children:[(0,E.jsx)("h3",{className:"n93t584",children:"Feedback"}),(0,E.jsx)(M6,{onSubmit:(e,t)=>{a.trackFeedback(e,t)}})]})]})}function W6(){return(0,E.jsx)(W4,{})}W3.styleTagTransform=kK(),W3.setAttributes=kB(),W3.insert=kX().bind(null,"head"),W3.domAPI=kF(),W3.insertStyleElement=kH(),kW()(W5.A,W3),W5.A&&W5.A.locals&&W5.A.locals;var W7=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/FeatureFlags/FlagItem.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA9VX227bMAx971foZUD7oEx26jRVP2aQLdrWqkiGJOeyYf8+SHYS23GcOisG9KmIRJGHh+Shu/gRLX8WsHcE/X5AKGXZe2F0rTjOtNSGoi0zjxjLqvmNC8MOeJ2QpzdvrQ0HQ1FU7ZHVUvBR6xfSWG+YKYSiKIqr/fk1NoyL2lK0bk4rxrlQBUXRqneAJeTuZMWFrSQ7UJRLCAdMikJh4WBjKcpAOTD+uGAVRc/NG2eYssIJrShiUiKyiC0CZsFf/qytE/kBZ1o5UI4iW7EMcApuB6DeHv48LE5M0VJvwczhi3T5mrJcBctOsOhKGFOk7DE3ejN0kxrmrQ5M4ZRZeEIGFShF3xFZkPWVqt3jLB7gnCTlngBRPMLZPY6WfaTx1250/xdzYSBrOjnTst6oU68fnU00e5eL/9nKyy/Syssv08rPAeMsLTz2xwy9S+ZHaRXXm1IUhZkQCu8EdyVFpOd9Ne79RpvfCuCHcH/8HRPizTtBX+an1M7j1TzWwWWulcNW/AKKoiNGf7QDUZSOooQEcBNjE7cD5lswl3pHUSk4h5C6g73D5wuQUlRWWH+1K4UDHIpIkdI7w6oxVk6EdZC/9skQSgoFeEaZP5DNB3kJCXLItGFN2ZVWcI2NiYpHhHzr59iZ6Qm40VCzXmmus9qGd7p2npkjqEsrvBVWpBL61vG1nWFLxvUOC08py5zYAg5umvI3z7HOcwsueBlZJfGgr1kIfcFirTgY726E4ykJT9rqhScnJ0NMn9GpI6WaTmoKdjysYtrMppcUWxqh3tuO0RXLhDtQRBar4dJs77x6JyOb8wJlE+PksT9i2T0jdiHR56u2zVtNKtshWp9FsZ9nVhvryaq0aDx0oPEAbdLhzS+D4cYa6dTED2Sf4aHbK98oMEurh8l3HOX/tGk6AjacuuKWrDx3VfAoeauO5AVacm02FNVVBSZr/yvpRiUNEAnOgQnzE74eySIZwClvwVl24eRsI+SBoo1WOgzlMG70eVPe38pJs5X/AlattUSCDgAA"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),W8={};W8.styleTagTransform=kK(),W8.setAttributes=kB(),W8.insert=kX().bind(null,"head"),W8.domAPI=kF(),W8.insertStyleElement=kH(),kW()(W7.A,W8),W7.A&&W7.A.locals&&W7.A.locals;var Pe="_13jgext5",Pt="_13jgextb",Pr="_13jgext9",Pn="_13jgexte",Pi="_13jgext7",Po="_13jgext6",Ps="_13jgexta",Pa=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/FeatureFlags/FlagControls.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA5VTy27CMBC85yv2Uqk9GJlAAzVf48QmWWFs1zYktOLfqzxJUBSVo3dnZ2dG6xVuiuT7TOE3AhDoreI3Bkclq0MEwBXmmmCQZ88gkzpIV5dzbhnsbXWI7tGqJ1A8laqhSXl2yp25aEEyo4xjEBzX3nIndRjNxE/oJxzAGTUpUYSCwTqmtpF05tVQ29KJhs1LJuo2EehkFtBoBs6Ug7dtt+u1/duX9o99X7l7J0TZNi+SO34jX5R+NDjjhHQM1rYCbxSKWfRugiaOC7x4BkkrupCYF4HBJm7fqamIxx/UOesnUlP1qTBYD0l0A5YLgTonruWJ/5dPMs3ns8mno2q0tUcEcDQ61IJkHWpb6i5nzmvceR1pHSmh9dtcpTsqUzIoUAip61qQVSCPhlQKrUdft8oCgyTe8kwy0KZ03I50J43u3hSlb7ORLh/9SO3Au2t4F2KmC+czkTNQ7udP8PFhl7+DLxzqU7P4/gdxiRdRGgQAAA=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Pl={};function Pc(e){let{flag:t,onOverride:r,disabled:n=!1}=e;return(0,E.jsx)("div",{className:"i3h6qm0",children:(0,E.jsx)(II,{"data-theme":"dark",isSelected:t.currentValue,onChange:r,isDisabled:n,className:"i3h6qm1"})})}function Pu(e){let{flag:t,onOverride:r,disabled:n=!1}=e,i=t.availableVariations.find(e=>MB(e.value,t.currentValue)),o=t.availableVariations.map(e=>({id:e._id,label:e.value,value:e.value}));return(0,E.jsx)(MQ,{selectedKey:i?._id||null,onSelectionChange:e=>{if(e){let n=t.availableVariations.find(t=>t._id===e);n&&r(n.value)}},"aria-label":"Select variant",placeholder:"Select variant","data-theme":"dark",className:"i3h6qm2",isDisabled:n,options:o})}function Pd(e){let{flag:t,onOverride:r,disabled:n=!1}=e,[i,o]=(0,A.useState)(!1),s=String(t.currentValue),[a,l]=(0,A.useState)(s),c=(0,A.useRef)(null);(0,A.useEffect)(()=>{i&&c.current&&(c.current?.focus(),c.current?.select())},[i]);let u=()=>{let e;if("number"===t.type){if(isNaN(e=parseFloat(a)))return}else e=a;r(e),o(!1)},d=()=>{l(s),o(!1)};return(0,E.jsx)("div",{className:"i3h6qm3",children:i?(0,E.jsx)(IN,{"aria-label":`Enter ${t.type} value`,className:"i3h6qm6","data-theme":"dark",children:(0,E.jsxs)(Iy,{className:"i3h6qm7",children:[(0,E.jsx)(Ig,{ref:c,placeholder:`Enter ${t.type} value`,value:a,onChange:e=>l(e.target.value),type:"number"===t.type?"number":"text",onKeyDown:e=>{e.stopPropagation(),"Enter"===e.key&&u(),"Escape"===e.key&&d()}}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(Eu,{}),label:"Confirm",onClick:u}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(ID,{}),label:"Cancel",onClick:d})]})}):(0,E.jsxs)("div",{className:"i3h6qm4",children:[(0,E.jsx)("div",{className:"i3h6qm5","data-testid":`flag-value-${t.key}`,children:s}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(Ec,{}),label:"Edit",onClick:()=>{l(s),o(!0)},disabled:n})]})})}function Pp(e){let{isEditing:t,onEditStart:r,onConfirm:n,onCancel:i,hasErrors:o}=e;return(0,E.jsx)("div",{className:"i3h6qm8",children:t?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Io,{variant:"primary",onClick:n,isDisabled:o,"data-theme":"dark",children:"Save"}),(0,E.jsx)(Io,{onClick:i,"data-theme":"dark",children:"Cancel"})]}):(0,E.jsx)(Io,{onClick:r,"data-theme":"dark",children:"Edit JSON"})})}function Ph(e){let{flag:t,isEditing:r,tempValue:n,onValueChange:i,onLintErrors:o,handleHeightChange:s}=e;return(0,E.jsx)(oG,{mode:"wait",children:r&&(0,E.jsx)(oI.div,{"data-testid":`json-editor-${t.key}`,initial:{opacity:0,height:0,y:-10},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-10},transition:{duration:.25,ease:kI,height:{duration:.3,ease:kI}},style:{overflow:"hidden"},children:(0,E.jsx)(Mp,{docString:n,onChange:i,onLintErrors:e=>{o(e.length>0)},"data-testid":`flag-input-${t.key}`,editorId:`json-editor-${t.key}`,initialState:{startCursorAtLine:0,autoFocus:!0},onEditorHeightChange:e=>{s(80+e+36)}})},`json-editor-${t.key}`)})}function Pf({className:e,size:t="default"}){let r="small"===t?"_1mndevo1":IF;return(0,E.jsx)("svg",{className:`${r} ${e||""}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{"fill-rule":"evenodd",d:"M12.5 4.083a.75.75 0 0 1 0-1.5h4.166a.75.75 0 0 1 .75.75V7.5a.75.75 0 1 1-1.5 0V5.144l-6.22 6.22a.75.75 0 1 1-1.06-1.061l6.22-6.22zm-9.21.875A2.42 2.42 0 0 1 5 4.25h5a.75.75 0 1 1 0 1.5H5a.917.917 0 0 0-.917.917V15a.917.917 0 0 0 .917.917h8.333A.917.917 0 0 0 14.25 15v-5a.75.75 0 0 1 1.5 0v5a2.417 2.417 0 0 1-2.417 2.417H5A2.417 2.417 0 0 1 2.583 15V6.667c0-.641.255-1.256.708-1.71","clip-rule":"evenodd"})})}function Pm({onClear:e}){let[t,r]=(0,A.useState)(!1);return(0,E.jsx)(oI.span,{className:"_13jgextc",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:e,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),e())},tabIndex:0,role:"button","aria-label":"Remove flag override",title:t?"Click to remove override":"Override active",whileHover:{scale:1.1},transition:{duration:.1},"data-testid":"override-dot",style:{cursor:"pointer"},children:(0,E.jsx)(oI.span,{className:"_13jgextd",animate:{backgroundColor:t?"var(--lp-color-red-500)":"var(--lp-color-brand-cyan-base)"},transition:{duration:.05}})})}function Pg({flag:e,onOverride:t,onClearOverride:r,handleHeightChange:n,disabled:i=!1,index:o}){let[s,a]=(0,A.useState)(!1),[l,c]=(0,A.useState)(""),[u,d]=(0,A.useState)(!1),{isStarred:p,toggleStarred:h}=kT(),f=wg(),{baseUrl:m}=w4(),{projectKey:g}=ku(),b=(0,A.useCallback)(e=>{let t=p(e);h(e),f.trackStarredFlag(e,t?"unstar":"star")},[p,h,f]),v=`${m}/projects/${g}/flags/${e.key}`,y=(0,A.useCallback)(()=>{f.trackOpenFlagDeeplink(e.key,m)},[f,e.key,m]),x=(0,A.useCallback)(e=>{f.trackFlagKeyCopy(e)},[f]);return"object"===e.type?(0,E.jsxs)("div",{className:`_13jgext2 ${e.isOverridden?"_13jgext3":""}`,children:[(0,E.jsxs)("div",{className:"_13jgext4",children:[(0,E.jsxs)("div",{className:Pe,children:[(0,E.jsx)(I6,{flagKey:e.key,isStarred:p(e.key),onToggle:b}),(0,E.jsxs)("div",{className:Po,children:[(0,E.jsxs)("div",{className:Pi,children:[e.isOverridden&&r&&(0,E.jsx)(Pm,{onClear:r}),(0,E.jsxs)("a",{className:Pr,href:v,target:"_blank",rel:"noopener noreferrer",onClick:y,title:`Open ${e.name} in LaunchDarkly`,children:[(0,E.jsx)("span",{className:Ps,children:e.name}),(0,E.jsx)(Pf,{size:"small",className:Pt})]})]}),(0,E.jsx)(ME,{text:e.key,onCopy:x})]})]}),(0,E.jsx)("div",{className:Pn,children:(0,E.jsx)(Pp,{isEditing:s,onEditStart:()=>{c(JSON.stringify(e.currentValue,null,2)),a(!0)},onConfirm:()=>{t(JSON.parse(l)),n(o,92),a(!1)},onCancel:()=>{n(o,92),a(!1)},hasErrors:u})})]}),(0,E.jsx)(Ph,{flag:e,isEditing:s,tempValue:l,onValueChange:c,onLintErrors:d,handleHeightChange:e=>n(o,e)})]}):(0,E.jsxs)("div",{className:`_13jgext0 ${e.isOverridden?"_13jgext1":""}`,children:[(0,E.jsxs)("div",{className:Pe,children:[(0,E.jsx)(I6,{flagKey:e.key,isStarred:p(e.key),onToggle:b}),(0,E.jsxs)("div",{className:Po,children:[(0,E.jsxs)("div",{className:Pi,children:[e.isOverridden&&r&&(0,E.jsx)(Pm,{onClear:r}),(0,E.jsxs)("a",{className:Pr,href:v,target:"_blank",rel:"noopener noreferrer",onClick:y,title:`Open ${e.name} in LaunchDarkly`,children:[(0,E.jsx)("span",{className:Ps,children:e.name}),(0,E.jsx)(Pf,{size:"small",className:Pt})]})]}),(0,E.jsx)(ME,{text:e.key,onCopy:x})]})]}),(0,E.jsx)("div",{className:Pn,children:"boolean"===e.type?(0,E.jsx)(Pc,{flag:e,onOverride:t,disabled:i}):"multivariate"===e.type&&"availableVariations"in e?(0,E.jsx)(Pu,{flag:e,onOverride:t,disabled:i}):"string"===e.type||"number"===e.type?(0,E.jsx)(Pd,{flag:e,onOverride:t,disabled:i}):null})]})}Pl.styleTagTransform=kK(),Pl.setAttributes=kB(),Pl.insert=kX().bind(null,"head"),Pl.domAPI=kF(),Pl.insertStyleElement=kH(),kW()(Pa.A,Pl),Pa.A&&Pa.A.locals&&Pa.A.locals;var Pb=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/FeatureFlags/FlagList.module.css.ts.vanilla.css","source":"Ll8xYm9oem04MCB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIGhlaWdodDogMTAwJTsKfQouXzFib2h6bTgxIHsKICBwYWRkaW5nOiA4cHggMjBweDsKICBib3JkZXItYm90dG9tOiAxcHggc29saWQgdmFyKC0tbHAtY29sb3ItZ3JheS03MDApOwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktOTAwKTsKICBmbGV4LXNocmluazogMDsKfQouXzFib2h6bTgyIHsKICBmb250LXNpemU6IDEycHg7CiAgY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktNDAwKTsKICBmb250LXdlaWdodDogNTAwOwp9Ci5fMWJvaHptODMgewogIHBhZGRpbmctdG9wOiA4cHg7CiAgcGFkZGluZy1ib3R0b206IDIwcHg7CiAgZmxleDogMTsKICB3aWR0aDogMTAwJTsKICBvdmVyZmxvdzogYXV0bzsKICBwb3NpdGlvbjogcmVsYXRpdmU7Cn0KLl8xYm9oem04NCB7CiAgd2lkdGg6IDEwMCU7CiAgcG9zaXRpb246IHJlbGF0aXZlOwp9"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Pv={};Pv.styleTagTransform=kK(),Pv.setAttributes=kB(),Pv.insert=kX().bind(null,"head"),Pv.domAPI=kF(),Pv.insertStyleElement=kH(),kW()(Pb.A,Pv),Pb.A&&Pb.A.locals&&Pb.A.locals;var Py="_1bohzm81",Px="_1bohzm83",Pw="_1bohzm80",Pk="_1bohzm82",PS="_1bohzm84";function PC(){let{state:e,setOverride:t,clearOverride:r}=kk(),{searchTerms:n}=Wu(),i=(0,A.useMemo)(()=>n.flags||"",[n]),{activeFilters:o}=Wy("flags"),{isStarred:s}=kT(),a=(0,A.useRef)(null),l=(0,A.useCallback)(()=>a.current,[]),c=(0,A.useMemo)(()=>Object.values(e.flags),[e.flags]),u=(0,A.useMemo)(()=>c.map(e=>({key:e.key,name:e.name,currentValue:e.currentValue,isOverridden:e.isOverridden,type:e.type,availableVariations:e.availableVariations})),[c]),d=(0,A.useMemo)(()=>{let e=i.toLowerCase(),t=o.has("all"),r=o.has("overrides"),n=o.has("starred");return u.map((e,t)=>({flag:e,index:t})).filter(({flag:o})=>{if(i&&!(o.name.toLowerCase().includes(e)||o.key.toLowerCase().includes(e)))return!1;if(t)return!0;let a=r&&o.isOverridden,l=n&&s(o.key);return a||l}).map(({index:e})=>e)},[u,i,o,s]),p=CI({count:d.length,getScrollElement:l,estimateSize:()=>92,overscan:5}),h=(0,A.useCallback)((e,t)=>{t>80?p.resizeItem(e,t):setTimeout(()=>{p.resizeItem(e,t)},125)},[p]),f=(0,A.useCallback)(async(e,r)=>{await t(e,r)},[t]),m=(0,A.useCallback)(async e=>{await r(e)},[r]),g=u.length,b=d.length,v=i||!o.has("all");return 0===d.length&&!i&&o.has("all")?(0,E.jsx)(Iq,{title:"No feature flags found",subtitle:"Make sure you have feature flags set up in your project"}):0===d.length&&(i||!o.has("all"))?(0,E.jsxs)("div",{className:Pw,children:[(0,E.jsx)("div",{className:Py,children:(0,E.jsxs)("span",{className:Pk,children:["0 of ",g," flags"]})}),(0,E.jsx)(Iq,{title:"No matching flags",subtitle:"Try adjusting your search or filters"})]}):(0,E.jsxs)("div",{className:Pw,children:[(0,E.jsx)("div",{className:Py,children:(0,E.jsx)("span",{className:Pk,children:v?`${b} of ${g} flags`:`${g} flags`})}),(0,E.jsx)("div",{ref:a,className:Px,children:(0,E.jsx)("div",{className:PS,style:{height:`${p.getTotalSize()}px`,position:"relative"},children:p.getVirtualItems().map(e=>{let t=d[e.index];if(void 0===t)return null;let r=u[t];return r?(0,E.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:`${e.size}px`,transform:`translateY(${e.start}px)`},children:(0,E.jsx)(Pg,{flag:r,onOverride:e=>f(r.key,e),onClearOverride:()=>m(r.key),handleHeightChange:h,index:e.index})},e.key):null})})})]})}function P_(){let{flags:e,setOverride:t,removeOverride:r}=CZ(),{searchTerms:n}=Wu(),i=(0,A.useMemo)(()=>n.flags||"",[n]),{activeFilters:o}=Wy("flags"),{isStarred:s}=kT(),a=(0,A.useRef)(null),l=(0,A.useCallback)(()=>a.current,[]),c=(0,A.useMemo)(()=>Object.values(e),[e]),u=(0,A.useMemo)(()=>c.map(e=>({key:e.key,name:e.name,currentValue:e.currentValue,isOverridden:e.isOverridden,type:e.type,availableVariations:e.availableVariations})),[c]),d=(0,A.useMemo)(()=>{let e=i.toLowerCase(),t=o.has("all"),r=o.has("overrides"),n=o.has("starred");return u.map((e,t)=>({flag:e,index:t})).filter(({flag:o})=>{if(i&&!(o.name.toLowerCase().includes(e)||o.key.toLowerCase().includes(e)))return!1;if(t)return!0;let a=r&&o.isOverridden,l=n&&s(o.key);return a||l}).map(({index:e})=>e)},[u,i,o,s]),p=CI({count:d.length,getScrollElement:l,estimateSize:()=>92,overscan:5}),h=(0,A.useCallback)((e,r)=>{t(e,r)},[t]),f=(0,A.useCallback)(e=>{r(e)},[r]),m=(0,A.useCallback)((e,t)=>{t>80?p.resizeItem(e,t):setTimeout(()=>{p.resizeItem(e,t)},125)},[p]),g=u.length,b=d.length,v=i||!o.has("all");return 0===d.length&&!i&&o.has("all")?(0,E.jsx)(Iq,{title:"No feature flags found",subtitle:"Make sure you have feature flags set up in your project"}):0===d.length&&(i||!o.has("all"))?(0,E.jsxs)("div",{className:Pw,children:[(0,E.jsx)("div",{className:Py,children:(0,E.jsxs)("span",{className:Pk,children:["0 of ",g," flags"]})}),(0,E.jsx)(Iq,{title:"No matching flags",subtitle:"Try adjusting your search or filters"})]}):(0,E.jsxs)("div",{className:Pw,children:[(0,E.jsx)("div",{className:Py,children:(0,E.jsx)("span",{className:Pk,children:v?`${b} of ${g} flags`:`${g} flags`})}),(0,E.jsx)("div",{ref:a,className:Px,children:(0,E.jsx)("div",{className:PS,style:{height:`${p.getTotalSize()}px`,position:"relative"},children:p.getVirtualItems().map(e=>{let t=d[e.index];if(void 0===t)return null;let r=u[t];return r?(0,E.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:`${e.size}px`,transform:`translateY(${e.start}px)`},children:(0,E.jsx)(Pg,{flag:r,onOverride:e=>h(r.key,e),onClearOverride:()=>f(r.key),handleHeightChange:m,index:e.index})},e.key):null})})})]})}let PT=()=>{let{mode:e}=w2(),t=w4();return"dev-server"===e?(0,E.jsx)(PC,{}):"sdk"===e?t.flagOverridePlugin?(0,E.jsx)(CN,{flagOverridePlugin:t.flagOverridePlugin,children:(0,E.jsx)(P_,{})}):(0,E.jsx)(Iq,{title:"Flag override plugin is not available",subtitle:"To use local flag overrides, ensure the flag override plugin is added to your LaunchDarkly client configuration."}):(0,E.jsx)(Iq,{title:"Mode not detected",subtitle:"The toolbar is not running in dev-server or SDK mode"})};function PI(){return(0,E.jsx)(PT,{})}var PE=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Contexts/ContextItem.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA+VX247jKBB976/gZaUeacnixE5n6C/ZpxUxZZsZAghwJ9nV/PsK7KSx4ziXnX0aKVJsKKrqnLrhxV/ZofXcvBH0zwtCW1Z+r61uFcelltpS9MHsK8bSdO+4tuyINwX58h6kteVgKcrMATktBZ+UfiOd9I7ZWiiKsqU5fJ7GlnHROoo23aphnAtVU5StuwUunJHsSFElIS6Ef8yFhdILrSgqtWx3KuzUzFBEwpO3TDnR7TMpEVksHQLm4P3lx8vijJk2+gPsI8hJinxOch0lE2NZNHOBhklRKyw87BxFJSgP9gzlxJTRJywWJPPiYwhjeQWArbfstbJ6N3Zwa1mQOjKFt8zBF2RRjbboD0QWZHMlss8oWw0ZWM7S/YyBbDkRjWcU5UNPV9HHsrUuKDRadGFJJf731OmTuNJ2R7tHyTz8+Yozc+gVHbBrGNd7ighamkMooQ49+R31v0VWjKBRVoYMip5PWyAT6kMi5FPqh9rz6SS/UbK5OUtRlMVeIRTeC+6bWM+JgeLxKuoby1WV66iy0spjJ/4GirKTP2FpD6JuPEUFiY1lJmzLPmwhLyoZaGsE5xBhejh4/LkBUgrjhAtb+0Z4wM6wEihSem+ZuXQ3ISfx/O1xMiK0RMXmAnzfc2aA5j3QeKpiOyGPFO200hHEz6IgcfLrEKdQUijAN+CeB0lfGe8jnGQiyOsuyNHVpDZaY8CWcXogJMF7sNHbqJ4sisl51ifRY81hRmR1Yj3UkmusUN/Hmcz+M0/r+3jqi+FexFc78hGk1HtcEDLo6sUMF/2R/DYb28hGX0N9AjQ9gM1kyAry210hGw+SG46UT/esGaX8IaXfWudFdcSlVh6UT7c+0YbaU5CO/9P7xSRM0iafy/47usjMVe0cvSUZhq97T9l47mphgT+UfEE+H1/sOK102Tr8IZzYym6w6taH2uuKavJqfDL9/imNdVU58PHQyAIXjm0l8MG9RGmPWagG4FFL6Ej+GDpSPkXOUMklSzEQhllQ/q7QJRYgLbVVPgzWajxzql8gdVO4T18Vb06DgZVnsnCqk93KxvpnhW8GXjHB8HkgR54f6Q7N+LJrtWceXrMN4VAPeRTT6NKufAXpuFmfvnix1+m3XJd8w8U+A7u1Oz6mf/wLCi/exrcPAAA="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),PA={};PA.styleTagTransform=kK(),PA.setAttributes=kB(),PA.insert=kX().bind(null,"head"),PA.domAPI=kF(),PA.insertStyleElement=kH(),kW()(PE.A,PA),PE.A&&PE.A.locals&&PE.A.locals;var PO="_1xutdp70";function PL({context:e,isActiveContext:t,handleHeightChange:r,index:n}){let[i,o]=(0,A.useState)(!1),[s,a]=(0,A.useState)(""),[l,c]=(0,A.useState)(!1),[u,d]=(0,A.useState)(!1),p=(0,A.useRef)(!1),{removeContext:h,updateContext:f,setContext:m}=ks(),g=wg(),b=e.name||e.key,v=!t&&!u&&!i,y=t?`${PO} _1xutdp72`:v?`${PO} _1xutdp73`:PO,x=(0,A.useMemo)(()=>JSON.stringify(e,null,2),[e]),w=(0,A.useCallback)(()=>{a(x),o(!0),c(!1);let t="multi"===e.kind?e.name||"multi-kind":e.key||"";g.trackContextEditStarted(e.kind,t)},[x,e,g]),k=(0,A.useCallback)(()=>{if(!l)try{let t=JSON.parse(s);if(!t||"object"!=typeof t)return void console.error("Invalid JSON: must be an object");if(!t.kind||"string"!=typeof t.kind)return void console.error('Context must have a "kind" field');f(e.id,t),o(!1),r&&void 0!==n&&r(n,92)}catch(e){console.error("Failed to parse JSON:",e)}},[s,l,e,f,r,n]),S=(0,A.useCallback)(()=>{o(!1),a(""),c(!1);let t="multi"===e.kind?e.name||"multi-kind":e.key||"";g.trackContextEditCancelled(e.kind,t),r&&void 0!==n&&r(n,92)},[r,n,e,g]),C=(0,A.useCallback)(e=>{a(e)},[]),_=(0,A.useCallback)(e=>{c(e.length>0)},[]),T=(0,A.useCallback)(e=>{r&&void 0!==n&&i&&r(n,80+e+36)},[r,n,i]),I=(0,A.useCallback)(r=>{r.stopPropagation(),t||h(e.id)},[h,e.kind,e.key,e.name,t]),O=(0,A.useCallback)(async()=>{if(!t&&!u){d(!0);try{await m(e)}catch(e){console.error("Failed to set context:",e)}finally{d(!1)}}},[e,t,u,m]);return(0,A.useEffect)(()=>{!p.current&&r&&void 0!==n&&(r(n,92),p.current=!0)},[r,n]),(0,A.useEffect)(()=>()=>{r&&void 0!==n&&r(n,92)},[r,n]),(0,E.jsxs)("div",{className:y,onClick:v?O:void 0,style:{cursor:v?"pointer":"default"},role:v?"button":void 0,tabIndex:v?0:void 0,"aria-label":v?`Select context ${b}`:void 0,onKeyDown:e=>{v&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),O())},children:[(0,E.jsxs)("div",{className:"_1xutdp71",children:[t&&(0,E.jsx)("span",{className:"_1xutdp7b"}),(0,E.jsxs)("div",{className:"_1xutdp74",children:[(0,E.jsx)("div",{className:"_1xutdp75",children:(0,E.jsx)("span",{className:"_1xutdp76",title:b,children:b})}),(0,E.jsx)("div",{className:"_1xutdp77",onClick:e=>e.stopPropagation(),children:(0,E.jsx)(ME,{text:e.name||e.key||"",onCopy:()=>{let t=e.name||e.key||"";g.trackContextKeyCopy(t)}})})]}),(0,E.jsxs)("div",{className:"_1xutdp7c",onClick:e=>e.stopPropagation(),children:[(0,E.jsx)("span",{className:"_1xutdp79",children:e.kind}),i?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Eg,{icon:(0,E.jsx)(Eu,{}),onClick:k,disabled:l,label:"Save context",title:"Save context","data-testid":`save-context-${e.id}`}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(ID,{}),onClick:S,label:"Cancel editing",title:"Cancel editing","data-testid":`cancel-context-${e.id}`})]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Eg,{icon:(0,E.jsx)(Ec,{}),onClick:w,label:"Edit context",title:"Edit context"}),(0,E.jsx)(Eg,{icon:(0,E.jsx)(Wd,{}),onClick:I,disabled:t,label:t?`Cannot delete active context ${e.key}`:`Delete context ${e.key}`,title:t?"Cannot delete active context":"Delete context"})]})]})]}),(0,E.jsx)(oG,{mode:"wait",children:i&&(0,E.jsx)(oI.div,{"data-testid":`json-editor-${e.id}`,onClick:e=>e.stopPropagation(),initial:{opacity:0,height:0,y:-10},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-10},transition:{duration:.25,ease:kI,height:{duration:.3,ease:kI}},style:{overflow:"hidden"},children:(0,E.jsx)(Mp,{docString:s,onChange:C,onLintErrors:_,"data-testid":`context-json-${e.id}`,editorId:`json-editor-${e.id}`,onEditorHeightChange:T,initialState:{startCursorAtLine:0,autoFocus:!0}})},`json-editor-${e.id}`)})]})}var PR=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Contexts/AddContextForm.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA+1UyZLaMBC98xV9nBxEZAMeR3xMSpZkW4mQVJLMktT8e8oLtjEGQiaTU4oDRdNq9dNbll+jEsd2X2L4uQDIKPteOFNpjphRxhHYU/eCkLLtb1Q4ekLpBn/a1t3GceEIRPYI3ijJZ7tfcdu9o66QmkAU2+NwGjnKZeUJpG3VUs6lLghESVswe+FyZQ4EaBVMO+iISiGLMhBI8L7cLt4WyzOOqMHBpbeKngjkSjRTqJKFRjKInSfAhA7C1eVvlQ8yPyFmdBA6EPCWMoEyEQ5C6GFrlJkQzI5AjOutRvfFzX250QF5+UMQiDogTenQr4nr2p03jSavhC9uWb0P1fDXQDABbbQY03j+zSrn6zWtkedjPSvrWe666h146w5ecFR7GaTRBKhSgJexB0G9uIRLypr2ZyTZzb/TsmpaRres5x+1/kZcOsHaNZlR1a7RQkHtWZejMZs/GpNOpiRXOlrP6GjzUEdXKF+bwfMnnOAdM6MDaXOgZzy1x96yM+t9ZGJMVJY8VFn0lMpSkhtW+QauqYKSWkxNcQNT5miN90Q1yqgX3bJH5EvK66TCzWdlj+CKjL7kzuwejQAHBWTwGfAymvBBiFWUidIo3nnizhNspnR+aV30Fx5+Joml7pM4xrhtG8fzGk/zkl7pPL5H66DQPoqDmbFP9r6AbMwqNB9cHp/B3L6TzRgluWmUOR8/l20fbJ7VOUKv4//3/MSeTu3Xi1i415lMZc2fInyI3P+Ejd7wnxJGuPQ0U6JlzljKZDgRwMvNGIQ2AVGlzEHw7eLtFz2aZfafCgAA"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),PN={};PN.styleTagTransform=kK(),PN.setAttributes=kB(),PN.insert=kX().bind(null,"head"),PN.domAPI=kF(),PN.insertStyleElement=kH(),kW()(PR.A,PN),PR.A&&PR.A.locals&&PR.A.locals;let PZ=`{
|
|
322
322
|
"kind": "",
|
|
323
323
|
"key": "",
|
|
324
324
|
"name": ""
|
|
@@ -652,7 +652,7 @@ function MyComponent() {
|
|
|
652
652
|
}
|
|
653
653
|
\`\`\`
|
|
654
654
|
|
|
655
|
-
Please find the element and implement the click tracking with event name \`${r}\`.`}}};var P1=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Interactive/WorkflowCard.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA81Yf2/jKBD9v58CrbRSowsRzg83pbpPcjqdiMEJLQEf4CTd0373E2An4LhJ6qrdVau0wcwbmHlvGDz5J2M5YTlC4L87ACg3lSCvGJSCHZ7ugP8LKdessFxJDAol6q10T9akwiCbVn5aRSjlco1BloeBFSle1lrVksJCCaUx2BF9D6Gowne41uQVPiI08rOVpkxDTSivDQbLBsOPYpBVB2CU4LQXY9lgWE2k4WGVDZ6fBdBkap7uft5NjlvFG7VjGktl7/+ixBJIuSErweif36yu2be/Rz4YMUr/+h+87xi6H8/DqYoU3L5igCZ5YpT1h54IvpaQW7Y1YRAaS7TtxD7Cmd6AUzBpmXbDz7WxvHyFhZKWSRs/2nNqNxjMUcjDhvH1xp6+35bb5cXchv1sNJcvGCA3cgFq1g3zbBBZ5yfXGGTu3y2XsNksShzMvYNSSQsN/8EwyFpjN7RvApKjayvPmiBsiV5z2fWyOPMyC14uIM7PEQEQXDLYpimbzBMveRosLv3sK+w4CnpaHY56/Eje4/g1m816Qrq4GtJFq3d2sNCLvlR6i0FdVUwXxDAfEGYt09A4ybldoMkiOAthg4KVtuFiFKmHQbTKOyjLs6xOB2103mX9owc+lVpUHY7YQ3JzrbI+9GcyP8/kLBoqyZaL18h/NAq3SiqXFDa6UTiqto6uGEgl2ZUyny3MGKyUqyuEqn0YSSOIcSVIwTZKUKZ9OK8yLTEvVVGb64fDStTsSNTTijBA/sdpSq9X5D6fj8FjNgbTxWLszqnUHemnoyddXEb32o24z8R81T11Fl7YijuNQ7Zj0po2rpFZMaRcnIQQEXT5W/LzdgFOG/yi1sbNaULXZSERoodqRWgyAldu2nxnOxdm5l1iFpgUlu/YO7z1YHhywx03fCUC1FF907cSkTC9mQ5VWRpmvVXignrQ5sBtO8XjsZX3dwaRPRtCzeHuyuvLjWavQ3VWLS00E8Tl5OnNJUfGmws7i6bxj2rzRlG0m5zlcSceK8zXsc7TYNMW6s9U/A2iva5QHl0DcNuxj75GsLwR7HDnZ5DPQ7hx4RLQ5UCjg1m3yqMvKu+hZTuyK2Wk52Lg5W9Q+59/IbOeP4FZn3QyAPADckmb21jisF13bwvT5kQqC4kQas9oYv7yNZEWF/tHxuR5A7ntnBFkZZSobWhsVYVBQURxnyH0HfzhbkyjcJdxxD89gV6Do879NVt+4Hb+sU4rbXDnTdcXOlw0Bs3vZDZKU+4l6HRSCme54ZQymYRLvuuFRtwXt0FB6PvTO+5MXtoV0UzaODht0fmystJdWVtjmluvDwD2xEjjNbDnTCB83RDEWFhsuKDJq7CVslZtb2NLBKreWJFniL/7nD7QBC1S68pbH/uu97C85W37smQeDogI/F8PnrwVILVVv/5Vxc//AaozrKWaFQAA"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),P2={};P2.styleTagTransform=kK(),P2.setAttributes=kB(),P2.insert=kX().bind(null,"head"),P2.domAPI=kF(),P2.insertStyleElement=kH(),kW()(P1.A,P2),P1.A&&P1.A.locals&&P1.A.locals;var P5="_1e6ae600",P3="_1e6ae603",P9="_1e6ae60n",P4="_1e6ae601",P6="_1e6ae604",P7="_1e6ae602",P8="_1e6ae605";let Fe=()=>(0,E.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,E.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,E.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),Ft=()=>(0,E.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,E.jsx)("polyline",{points:"20 6 9 17 4 12"})}),Fr=()=>(0,E.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 1024 1024",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{d:"M897.246 286.869H889.819C850.735 286.808 819.017 318.46 819.017 357.539V515.589C819.017 547.15 792.93 572.716 761.882 572.716C743.436 572.716 725.02 563.433 714.093 547.85L552.673 317.304C539.28 298.16 517.486 286.747 493.895 286.747C457.094 286.747 423.976 318.034 423.976 356.657V515.619C423.976 547.181 398.103 572.746 366.842 572.746C348.335 572.746 329.949 563.463 319.021 547.881L138.395 289.882C134.316 284.038 125.154 286.93 125.154 294.052V431.892C125.154 438.862 127.285 445.619 131.272 451.34L309.037 705.2C319.539 720.204 335.033 731.344 352.9 735.392C397.616 745.557 438.77 711.135 438.77 667.278V508.406C438.77 476.845 464.339 451.279 495.904 451.279H495.995C515.02 451.279 532.857 460.562 543.785 476.145L705.235 706.661C718.659 725.835 739.327 737.218 763.983 737.218C801.606 737.218 833.841 705.9 833.841 667.308V508.376C833.841 476.815 859.41 451.249 890.975 451.249H897.276C901.233 451.249 904.43 448.053 904.43 444.097V294.021C904.43 290.065 901.233 286.869 897.276 286.869H897.246Z",fill:"currentColor"})}),Fn=()=>{let e=`vscode-mask-${Math.random().toString(36).substring(2,11)}`,t=`filter0-${Math.random().toString(36).substring(2,11)}`,r=`filter1-${Math.random().toString(36).substring(2,11)}`,n=`paint0-${Math.random().toString(36).substring(2,11)}`;return(0,E.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("mask",{id:e,maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"100",height:"100",children:(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.9119 99.3171C72.4869 99.9307 74.2828 99.8914 75.8725 99.1264L96.4608 89.2197C98.6242 88.1787 100 85.9892 100 83.5872V16.4133C100 14.0113 98.6243 11.8218 96.4609 10.7808L75.8725 0.873756C73.7862 -0.130129 71.3446 0.11576 69.5135 1.44695C69.252 1.63711 69.0028 1.84943 68.769 2.08341L29.3551 38.0415L12.1872 25.0096C10.589 23.7965 8.35363 23.8959 6.86933 25.2461L1.36303 30.2549C-0.452552 31.9064 -0.454633 34.7627 1.35853 36.417L16.2471 50.0001L1.35853 63.5832C-0.454633 65.2374 -0.452552 68.0938 1.36303 69.7453L6.86933 74.7541C8.35363 76.1043 10.589 76.2037 12.1872 74.9905L29.3551 61.9587L68.769 97.9167C69.3925 98.5406 70.1246 99.0104 70.9119 99.3171ZM75.0152 27.2989L45.1091 50.0001L75.0152 72.7012V27.2989Z",fill:"white"})}),(0,E.jsxs)("g",{mask:`url(#${e})`,children:[(0,E.jsx)("path",{d:"M96.4614 10.7962L75.8569 0.875542C73.4719 -0.272773 70.6217 0.211611 68.75 2.08333L1.29858 63.5832C-0.515693 65.2373 -0.513607 68.0937 1.30308 69.7452L6.81272 74.754C8.29793 76.1042 10.5347 76.2036 12.1338 74.9905L93.3609 13.3699C96.086 11.3026 100 13.2462 100 16.6667V16.4275C100 14.0265 98.6246 11.8378 96.4614 10.7962Z",fill:"#0065A9"}),(0,E.jsx)("g",{filter:`url(#${t})`,children:(0,E.jsx)("path",{d:"M96.4614 89.2038L75.8569 99.1245C73.4719 100.273 70.6217 99.7884 68.75 97.9167L1.29858 36.4169C-0.515693 34.7627 -0.513607 31.9063 1.30308 30.2548L6.81272 25.246C8.29793 23.8958 10.5347 23.7964 12.1338 25.0095L93.3609 86.6301C96.086 88.6974 100 86.7538 100 83.3334V83.5726C100 85.9735 98.6246 88.1622 96.4614 89.2038Z",fill:"#007ACC"})}),(0,E.jsx)("g",{filter:`url(#${r})`,children:(0,E.jsx)("path",{d:"M75.8578 99.1263C73.4721 100.274 70.6219 99.7885 68.75 97.9166C71.0564 100.223 75 98.5895 75 95.3278V4.67213C75 1.41039 71.0564 -0.223106 68.75 2.08329C70.6219 0.211402 73.4721 -0.273666 75.8578 0.873633L96.4587 10.7807C98.6234 11.8217 100 14.0112 100 16.4132V83.5871C100 85.9891 98.6234 88.1786 96.4586 89.2196L75.8578 99.1263Z",fill:"#1F9CF0"})}),(0,E.jsx)("g",{style:{mixBlendMode:"overlay"},opacity:.25,children:(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.8511 99.3171C72.4261 99.9306 74.2221 99.8913 75.8117 99.1264L96.4 89.2197C98.5634 88.1787 99.9392 85.9892 99.9392 83.5871V16.4133C99.9392 14.0112 98.5635 11.8217 96.4001 10.7807L75.8117 0.873695C73.7255 -0.13019 71.2838 0.115699 69.4527 1.44688C69.1912 1.63705 68.942 1.84937 68.7082 2.08335L29.2943 38.0414L12.1264 25.0096C10.5283 23.7964 8.29285 23.8959 6.80855 25.246L1.30225 30.2548C-0.513334 31.9064 -0.515415 34.7627 1.29775 36.4169L16.1863 50L1.29775 63.5832C-0.515415 65.2374 -0.513334 68.0937 1.30225 69.7452L6.80855 74.754C8.29285 76.1042 10.5283 76.2036 12.1264 74.9905L29.2943 61.9586L68.7082 97.9167C69.3317 98.5405 70.0638 99.0104 70.8511 99.3171ZM74.9544 27.2989L45.0483 50L74.9544 72.7012V27.2989Z",fill:`url(#${n})`})})]}),(0,E.jsxs)("defs",{children:[(0,E.jsxs)("filter",{id:t,x:"-8.39411",y:"15.8291",width:"116.727",height:"92.2456",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,E.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,E.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,E.jsx)("feOffset",{}),(0,E.jsx)("feGaussianBlur",{stdDeviation:"4.16667"}),(0,E.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,E.jsx)("feBlend",{mode:"overlay",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,E.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,E.jsxs)("filter",{id:r,x:"60.4167",y:"-8.07558",width:"47.9167",height:"116.151",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,E.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,E.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,E.jsx)("feOffset",{}),(0,E.jsx)("feGaussianBlur",{stdDeviation:"4.16667"}),(0,E.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,E.jsx)("feBlend",{mode:"overlay",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,E.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,E.jsxs)("linearGradient",{id:n,x1:"49.9392",y1:"0.257812",x2:"49.9392",y2:"99.7423",gradientUnits:"userSpaceOnUse",children:[(0,E.jsx)("stop",{stopColor:"white"}),(0,E.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]})]})]})},Fi=()=>(0,E.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 96 96",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("path",{d:"M95.667 67.954C92.225 73.933 72.24 88.04 47.997 88.04 23.754 88.04 3.769 73.933.328 67.954c-.216-.375-.307-.796-.328-1.226V55.661c.019-.371.089-.736.226-1.081 1.489-3.738 5.386-9.166 10.417-10.623.667-1.712 1.655-4.215 2.576-6.062-.154-1.414-.208-2.872-.208-4.345 0-5.322 1.128-9.99 4.527-13.466 1.587-1.623 3.557-2.869 5.893-3.805 5.595-4.545 13.563-8.369 24.48-8.369s19.057 3.824 24.652 8.369c2.337.936 4.306 2.182 5.894 3.805 3.399 3.476 4.527 8.144 4.527 13.466 0 1.473-.054 2.931-.208 4.345.921 1.847 1.909 4.35 2.576 6.062 5.03 1.457 8.928 6.885 10.417 10.623.163.41.231.848.231 1.289v10.644c0 .504-.081 1.004-.333 1.441ZM48.686 43.993l-.3.001-1.077-.001c-.423.709-.894 1.39-1.418 2.035-3.078 3.787-7.672 5.964-14.026 5.964-6.897 0-11.952-1.435-15.123-5.032a7.886 7.886 0 0 1-.342-.419l-.39.419v26.326c5.737 3.118 18.05 8.713 31.987 8.713 13.938 0 26.251-5.595 31.988-8.713V46.96l-.39-.419s-.132.181-.342.419c-3.171 3.597-8.226 5.032-15.123 5.032-6.354 0-10.949-2.177-14.026-5.964a17.178 17.178 0 0 1-1.418-2.034h-.066l.066-.001Zm-3.94-11.733c.17-1.326.251-2.513.253-3.573v-.084c-.005-3.077-.678-5.079-1.752-6.308-1.365-1.562-4.184-2.758-10.127-2.115-6.021.652-9.386 2.146-11.294 4.098-1.847 1.889-2.818 4.715-2.818 9.272 0 4.842.698 7.703 2.232 9.443 1.459 1.655 4.332 3.001 10.625 3.001 4.837 0 7.603-1.573 9.371-3.749 1.899-2.336 2.967-5.759 3.51-9.985Zm6.503 0c.543 4.226 1.611 7.649 3.51 9.985 1.768 2.176 4.533 3.749 9.371 3.749 6.292 0 9.165-1.346 10.624-3.001 1.535-1.74 2.232-4.601 2.232-9.443 0-4.557-.97-7.383-2.817-9.272-1.908-1.952-5.274-3.446-11.294-4.098-5.943-.643-8.763.553-10.127 2.115-1.074 1.229-1.747 3.231-1.752 6.308v.084c.002 1.06.083 2.247.253 3.573Zm-2.563 11.734h.066l-.066-.001v.001Z"}),(0,E.jsx)("path",{d:"M38.5 55.75a3.5 3.5 0 0 1 3.5 3.5v8.5a3.5 3.5 0 1 1-7 0v-8.5a3.5 3.5 0 0 1 3.5-3.5Zm19 0a3.5 3.5 0 0 1 3.5 3.5v8.5a3.5 3.5 0 1 1-7 0v-8.5a3.5 3.5 0 0 1 3.5-3.5Z"})]}),Fo=({ide:e})=>{switch(e){case"cursor":return(0,E.jsx)(Pq,{});case"windsurf":return(0,E.jsx)(Fr,{});case"vscode":return(0,E.jsx)(Fn,{});case"github-copilot":return(0,E.jsx)(Fi,{})}};function Fs({workflow:e,disabled:t=!1}){let r=P0[e],{selectedElementInfo:n}=Wr(),{projectKey:i}=ku(),[o,s]=(0,A.useState)(()=>(function(){try{let e=localStorage.getItem(wC);if(!e)return wO;let t=JSON.parse(e);return t.preferredIde&&wA.includes(t.preferredIde)?t.preferredIde:wO}catch(e){return console.warn("Failed to load preferred IDE from localStorage:",e),wO}})()),[a,l]=(0,A.useState)(""),[c,u]=(0,A.useState)(!1),[d,p]=(0,A.useState)(!1),h=(0,A.useRef)(null),f=(0,A.useRef)(null),m=(0,A.useRef)(!1),g=(0,A.useRef)(null),b=(0,A.useMemo)(()=>n?r.buildPrompt(n,i||"default",a):"",[r,n,i,a]),v=(0,A.useMemo)(()=>{if(n&&r.buildCondensedPrompt)return r.buildCondensedPrompt(n,i||"default",a)},[r,n,i,a]),y=a.trim().length>0;(0,A.useEffect)(()=>{let e=e=>{if(m.current)return;let t=e.target;h.current&&(h.current.contains(t)||u(!1))};if(c)return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[c]),(0,A.useEffect)(()=>()=>{g.current&&clearTimeout(g.current)},[]);let x=(0,A.useCallback)(async()=>{!y||(u(!1),await PK(b)&&(g.current&&clearTimeout(g.current),p(!0),g.current=setTimeout(()=>{p(!1)},2e3)))},[b,y]),w=(0,A.useCallback)(async e=>{y&&(s(e),wL("preferredIde",e),u(!1),await PQ(b,e,v))},[b,v,y]),k=(0,A.useCallback)(()=>{y&&(m.current=!0,u(e=>!e),requestAnimationFrame(()=>{m.current=!1}))},[y]),S=PJ.find(e=>e.id===o)?.label||o;return((0,A.useEffect)(()=>{if(f.current){let e=f.current.querySelector("button");e&&(e.title="cursor"===o||"github-copilot"===o?`Open in ${S}`:`Copy prompt and open in ${S}`)}},[S,o]),t)?(0,E.jsx)("div",{className:P5,"data-disabled":"true",children:(0,E.jsxs)("div",{className:P4,children:[(0,E.jsx)("div",{className:P7,children:r.icon}),(0,E.jsxs)("div",{className:P3,children:[(0,E.jsxs)("h4",{className:P6,children:[r.title,(0,E.jsx)("span",{className:"_1e6ae606",children:"Coming Soon"})]}),(0,E.jsx)("p",{className:P8,children:r.description})]})]})}):(0,E.jsxs)("div",{className:P5,children:[(0,E.jsxs)("div",{className:P4,children:[(0,E.jsx)("div",{className:P7,children:r.icon}),(0,E.jsxs)("div",{className:P3,children:[(0,E.jsx)("h4",{className:P6,children:r.title}),(0,E.jsx)("p",{className:P8,children:r.description})]})]}),(0,E.jsxs)("div",{className:"_1e6ae607",children:[(0,E.jsx)("label",{className:"_1e6ae608",children:r.inputLabel}),(0,E.jsx)("input",{type:"text",className:"_1e6ae609",placeholder:r.inputPlaceholder,value:a,onChange:e=>l(e.target.value)})]}),(0,E.jsx)("div",{className:`_1e6ae60a ${!y?"_1e6ae60b":""}`,children:(0,E.jsxs)("div",{className:"_1e6ae60g",ref:h,children:[(0,E.jsxs)(T5,{spacing:"compact",className:"_1e6ae60h",children:[(0,E.jsx)("div",{ref:f,style:{display:"inline-flex"},children:(0,E.jsxs)(Io,{className:"_1e6ae60i",onPress:()=>w(o),isDisabled:!y,children:[(0,E.jsx)("span",{children:"cursor"===o||"github-copilot"===o?"Open in ":"Copy prompt and Open in "}),(0,E.jsx)(Fo,{ide:o})]},`ide-button-${o}`)}),(0,E.jsx)("button",{"aria-label":"Choose IDE",className:`_1e6ae60j ${c?"_1e6ae60k":""} ${d?"_1e6ae60l":""}`,disabled:!y,onClick:k,"aria-expanded":c,"aria-haspopup":"listbox",type:"button",children:d?(0,E.jsx)(Ft,{}):(0,E.jsx)(MJ,{})})]}),c&&(0,E.jsxs)("div",{className:"_1e6ae60m",role:"listbox",children:[PJ.map(e=>(0,E.jsxs)("button",{className:`${P9} ${e.id===o?"_1e6ae60o":""}`,onClick:()=>w(e.id),role:"option","aria-selected":e.id===o,children:[(0,E.jsx)(Fo,{ide:e.id}),(0,E.jsx)("span",{children:e.label}),e.id===o&&(0,E.jsx)("span",{className:"_1e6ae60q",children:"Default"})]},e.id)),(0,E.jsx)("div",{className:"_1e6ae60p"}),(0,E.jsxs)("button",{className:P9,onClick:x,role:"option",children:[(0,E.jsx)(Fe,{}),(0,E.jsx)("span",{children:"Copy prompt"})]})]})]})})]})}function Fa({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0m-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0M9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z",clipRule:"evenodd"})})}var Fl=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Interactive/MCPSetupAlert.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA51VXZPiIBB891fwePeAlUTNKvtjrkiYJHOLkAKi8a72v19B0E00fuy9WMUwdjfdA1n+yvMGdiIlfxeECLSt5CdGKgn9+4IQLrFWFB3s7VCk1nHj/FbNW0bSrO3fF5+LZYTJAswRhWsYyZI2gDSAdeO+1gNOY1B9MJL4yp6bGhV1umUkG5pKLbVh5MDND0plS8OaFrIDuk6Sn2PS1bz2QCPQQOlQK+YRu736kj5Sw0gaZKCiUXsyJlj/F8GVNZsAUmnlqMU/wEi6igJ86Rg9ypPk/ulrw080Dac/e3alNL8heWhnAFzdAhIiUQE9B5cu12OStxdmpQTlwFy82I6SPxpf8b9j0O0UFFVQ8AT7d2cdVidaauVAuRvafKBtuRCo6rC+5H6Zyqit0L33LPQV2ggwtNDDDi8/aqM7JegDG7fRxuG/jKRtT6yWKGa73ybd1HCBnb0InglwMiWbZCakJzFnkbHsjPU9rcazV85wZXEYYi4lSZbpxoYN6B0VUGrDh12lFfiNY4MOqG15Cb44hBlFVnyPMkTYgEF3d1a3rNEHMCH31yy+Mu1BZx477xxgLKLSZWfpAS0WEoIY3TnvbLjB8xGGZ2gTOWI71VVlwd3c+91rBwyQ+SsHnJDPt4R4Jm/k7jtmTxiea7l+j3lgiW+6hMoxwjunxy3F+DuRrqc38ry+/k58/gMCrCBwrQYAAA=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Fc={};Fc.styleTagTransform=kK(),Fc.setAttributes=kB(),Fc.insert=kX().bind(null,"head"),Fc.domAPI=kF(),Fc.insertStyleElement=kH(),kW()(Fl.A,Fc),Fl.A&&Fl.A.locals&&Fl.A.locals;var Fu="_66he9d8";let Fd=(g=btoa(JSON.stringify({command:"npx",args:["-y","@launchdarkly/mcp-server","start","--api-key","YOUR_API_KEY"]})),`cursor://anysphere.cursor-deeplink/mcp/install?name=LaunchDarkly&config=${g}`);function Fp({onDismiss:e}){let[t,r]=(0,A.useState)(()=>(function(){try{let e=localStorage.getItem(wT);if(!e)return!1;return!0===JSON.parse(e)}catch(e){return console.warn("Failed to load MCP alert dismissed state from localStorage:",e),!1}})());return t?null:(0,E.jsx)("div",{className:"_66he9d0",children:(0,E.jsx)(Iu,{status:"neutral",variant:"default",children:(0,E.jsxs)("div",{className:"_66he9d1",children:[(0,E.jsx)(Fa,{className:"_66he9d2"}),(0,E.jsxs)("div",{className:"_66he9d3",children:[(0,E.jsxs)("div",{className:"_66he9d4",children:[(0,E.jsx)("p",{className:"_66he9d5",children:"Supercharge your workflow with MCP"}),(0,E.jsx)("p",{className:"_66he9d6",children:"Our MCP server is the perfect companion to this toolbar - let AI agents create and manage your feature flags directly in your IDE."})]}),(0,E.jsxs)("div",{className:"_66he9d7",children:[(0,E.jsxs)("a",{href:Fd,className:`${Fu}`,title:"Add LaunchDarkly MCP server to Cursor",children:[(0,E.jsx)(Pq,{className:"_66he9db",width:14,height:14}),(0,E.jsx)("span",{children:"Add to Cursor"})]}),(0,E.jsx)("a",{href:"https://launchdarkly.com/docs/home/getting-started/mcp",target:"_blank",rel:"noopener noreferrer",className:Fu,title:"View MCP server documentation",children:"View docs"}),(0,E.jsx)("button",{type:"button",className:`${Fu} _66he9da`,onClick:()=>{r(!0);try{localStorage.setItem(wT,JSON.stringify(!0))}catch(e){console.warn("Failed to save MCP alert dismissed state to localStorage:",e)}e?.()},title:"Dismiss this alert",children:"Done"})]})]})]})})})}var Fh=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Interactive/SelectedElementInfo.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA81Wy3LbMAy85ytwTA70SH6kDvs1FAVJjClSA1KR3U7/vUPKlunacZ3EnelJIkECu1gA0szJ7YJWGfx8ACiV67TYcag0br8/QHyyUhFKr6zhIK3uWxMsteg4zLMuHutEWSpTc8jnYePXw2z0mn/UayHkpibbm5JJqy1xeBP0yJjuxjWrSezYS5Y9xdOWSiRGolS947Aewdg3pErbgUOjyhJNgmd+GY/QqjZMeWwdB4nGI4Xt1955Ve2YtMaj8RxcJySyAv2AaM54Q74cAZyT8CSM6wSh8UfcHIw1GNayJxeOdVYdYl9hP9+zj07VmME/Q0I2y1cuZc6bkJfI/7Ykr2OYycEiXq2s8cypH8gntnGrEq3Su8RRsstaa2xM3dM1ZoiGLffU4u0BVd14DqssuywrgMetZ0cDaq06p1wwDY3yyGLYkOiBRJewWX6tEI6mKwlcXdApvleWWshm81SfVQQ0mTmQ9cLjY77OSqxTIZ4/1aljYyYVm0UB9ypOzr99yvmpj/VZpeRJpRxUfR5VvSV/QeQkM33XIUnhYuto9B4p6jzSmq1OwLycgZnft2zFji32QAdLJSsIxYZDfDChdQSpDLJmTzyfLRN84krCQ81yGCv3YqaLeHmSNMyg5/dG0PstfjZH08a+oOA9kzZRkXcovPKGpi6EwyDH5GJ94gKv1u6XmRe6x6tDLvJ1DSmz4ZAlwKp/C+ykju86aev3GvAGIOd982FwUzWwAYuN8qywMfphGUNILdrwN5MaCrtlllQc929IXkmhE1rNhz4gx0q7qOFfh+AUVh2zeR/Nl6f+X7/wGzg52fwHHwCAVlCtzNhFvwHzgk7T5QoAAA=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Ff={};Ff.styleTagTransform=kK(),Ff.setAttributes=kB(),Ff.insert=kX().bind(null,"head"),Ff.domAPI=kF(),Ff.insertStyleElement=kH(),kW()(Fh.A,Ff),Fh.A&&Fh.A.locals&&Fh.A.locals;var Fm="scx3r5d",Fg="scx3r5f",Fb="scx3r5e",Fv="scx3r5c",Fy="scx3r57",Fx="scx3r58";function Fw(){let{selectedElementInfo:e}=Wr(),[t,r]=(0,A.useState)(!1);if(!e)return null;let{primaryIdentifier:n,selector:i,classes:o,dataAttributes:s,htmlAttributes:a,textContent:l,dimensions:c}=e,u=o.length>0,d=s.length>0,p=a.length>0;return(0,E.jsxs)("div",{className:"scx3r50","data-testid":"selected-element-info",children:[(0,E.jsxs)("div",{className:"scx3r51",children:[(0,E.jsxs)("button",{className:"scx3r52",onClick:()=>r(!t),children:[(0,E.jsx)("h3",{className:"scx3r5k",children:"Selected"}),(0,E.jsx)("code",{className:"scx3r53",children:n}),(0,E.jsx)("span",{className:`scx3r54 ${t?"scx3r55":""}`,children:(0,E.jsx)(MJ,{})})]}),t&&(0,E.jsxs)("div",{className:"scx3r56",children:[(0,E.jsxs)("div",{className:Fy,children:[(0,E.jsx)("span",{className:Fx,children:"Selector"}),(0,E.jsx)("span",{className:"scx3r59",children:i})]}),d&&(0,E.jsxs)("div",{className:Fy,children:[(0,E.jsx)("span",{className:Fx,children:"Data Attributes"}),(0,E.jsx)("div",{className:Fv,children:s.map(e=>(0,E.jsxs)("div",{className:Fm,children:[(0,E.jsx)("span",{className:Fb,children:e.name}),(0,E.jsxs)("span",{className:Fg,children:['"',e.value,'"']})]},e.name))})]}),p&&(0,E.jsxs)("div",{className:Fy,children:[(0,E.jsx)("span",{className:Fx,children:"Attributes"}),(0,E.jsx)("div",{className:Fv,children:a.map(e=>(0,E.jsxs)("div",{className:Fm,children:[(0,E.jsx)("span",{className:Fb,children:e.name}),(0,E.jsxs)("span",{className:Fg,children:['"',e.value,'"']})]},e.name))})]}),u&&(0,E.jsxs)("div",{className:Fy,children:[(0,E.jsx)("span",{className:Fx,children:"Classes"}),(0,E.jsx)("div",{className:"scx3r5a",children:o.map((e,t)=>(0,E.jsxs)("span",{className:"scx3r5b",children:[".",e]},t))})]}),l&&(0,E.jsxs)("div",{className:Fy,children:[(0,E.jsx)("span",{className:Fx,children:"Text"}),(0,E.jsx)("span",{className:"scx3r5g",children:l})]}),(0,E.jsxs)("div",{className:"scx3r5h",children:[(0,E.jsx)("span",{children:"Size:"}),(0,E.jsxs)("span",{className:"scx3r5i",children:[c.width," \xd7 ",c.height,"px"]})]})]})]}),(0,E.jsxs)("div",{className:"scx3r5j",children:[(0,E.jsx)(Fp,{}),(0,E.jsx)(PY,{title:"Feature Flags",children:(0,E.jsx)(Fs,{workflow:"featureFlag"})}),(0,E.jsx)(PY,{title:"Events & Analytics",children:(0,E.jsx)(Fs,{workflow:"clickTracking",disabled:!0})})]})]})}var Fk=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Interactive/InteractiveContent.module.css.ts.vanilla.css","source":"Ll8xNHJ5azJmMCB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwp9Ci5fMTRyeWsyZjEgewogIGRpc3BsYXk6IGZsZXg7CiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGp1c3RpZnktY29udGVudDogY2VudGVyOwogIGdhcDogOHB4OwogIHBhZGRpbmc6IDYwcHggMjBweDsKICBjb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS00MDApOwogIHRleHQtYWxpZ246IGNlbnRlcjsKfQouXzE0cnlrMmYyIHsKICBtYXJnaW46IDA7CiAgZm9udC1zaXplOiAxNHB4OwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7CiAgbWF4LXdpZHRoOiAyODBweDsKICBsaW5lLWhlaWdodDogMS41Owp9Ci5fMTRyeWsyZjMgewogIGRpc3BsYXk6IGlubGluZS1mbGV4OwogIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CiAgd2lkdGg6IDE2cHg7CiAgaGVpZ2h0OiAxNnB4OwogIG1hcmdpbi1yaWdodDogMnB4OwogIG1hcmdpbi1sZWZ0OiAycHg7Cn0="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),FS={};function FC(){let{selectedElement:e}=Wr();return(0,E.jsx)("div",{className:"_14ryk2f0","data-testid":"interactive-content",children:e?(0,E.jsx)(Fw,{}):(0,E.jsx)("div",{className:"_14ryk2f1",children:(0,E.jsxs)("p",{className:"_14ryk2f2",children:["Click the ",(0,E.jsx)(VU,{className:"_14ryk2f3"})," icon in the navbar to select an element"]})})})}function F_(){let{activeTab:e}=wz(),{activeSubtab:t}=Ws();if("flags"===e)switch(t){case"flags":default:return(0,E.jsx)(PI,{});case"contexts":return(0,E.jsx)(PD,{})}return"monitoring"===e?(0,E.jsx)(PB,{}):"settings"===e?(0,E.jsx)(W6,{}):"interactive"===e?(0,E.jsx)(FC,{}):(0,E.jsx)("div",{children:"No content available"})}FS.styleTagTransform=kK(),FS.setAttributes=kB(),FS.insert=kX().bind(null,"head"),FS.domAPI=kF(),FS.insertStyleElement=kH(),kW()(Fk.A,FS),Fk.A&&Fk.A.locals&&Fk.A.locals;var FT=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/ExpandedToolbarContent.module.css.ts.vanilla.css","source":"Lmh6bGJiNDAgewogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktOTUwKTsKICBjb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS0yMDApOwogIGhlaWdodDogNjAwcHg7CiAgYm9yZGVyLXJhZGl1czogMTJweDsKICBib3JkZXI6IDFweCBzb2xpZCB2YXIoLS1scC1jb2xvci1ncmF5LTcwMCk7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIG92ZXJmbG93OiBoaWRkZW47CiAgcG9zaXRpb246IHJlbGF0aXZlOwp9Ci5oemxiYjQxIHsKICBmbGV4OiAxOwogIG1pbi1oZWlnaHQ6IDA7CiAgb3ZlcmZsb3cteTogYXV0bzsKICBzY3JvbGxiYXItY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktNzAwKSB0cmFuc3BhcmVudDsKICBzY3JvbGxiYXItd2lkdGg6IHRoaW47Cn0KLmh6bGJiNDE6Oi13ZWJraXQtc2Nyb2xsYmFyIHsKICB3aWR0aDogNnB4Owp9Ci5oemxiYjQxOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7CiAgYmFja2dyb3VuZDogdmFyKC0tbHAtY29sb3ItZ3JheS03MDApOwogIGJvcmRlci1yYWRpdXM6IDNweDsKfQouaHpsYmI0MTo6LXdlYmtpdC1zY3JvbGxiYXItdHJhY2sgewogIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50Owp9"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),FI={};FI.styleTagTransform=kK(),FI.setAttributes=kB(),FI.insert=kX().bind(null,"head"),FI.domAPI=kF(),FI.insertStyleElement=kH(),kW()(FT.A,FI),FT.A&&FT.A.locals&&FT.A.locals;let FE=(0,A.forwardRef)(({onClose:e,onHeaderMouseDown:t,defaultActiveTab:r,onOpenAuthModal:n},i)=>{let{authenticated:o,authenticating:s}=w$(),{handleClose:a}=w2(),{activeTab:l,setActiveTab:c}=wz();return(0,A.useEffect)(()=>{l&&!ww.includes(l)&&c(r)},[l,r,c]),(0,E.jsx)(E.Fragment,{children:!o||s?(0,E.jsx)(oI.div,{ref:i,className:kq,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:kA.container,tabIndex:-1,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,E.jsx)(Vx,{onClose:a,onLogin:n||a,onMouseDown:t})}):(0,E.jsxs)(oI.div,{ref:i,className:"hzlbb40",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},children:[(0,E.jsx)(VB,{onClose:e,onHeaderMouseDown:t}),(0,E.jsx)(Wn,{defaultActiveTab:r}),(0,E.jsx)(Wj,{}),(0,E.jsx)("div",{className:"hzlbb41",children:(0,E.jsx)(F_,{})})]})})}),FA=(0,A.forwardRef)((e,t)=>(0,E.jsx)(Wo,{children:(0,E.jsx)(Wc,{children:(0,E.jsx)(Wb,{children:(0,E.jsx)(FE,{ref:t,...e})})})}));function FO(){let{isSelecting:e,selectedElement:t,hoveredElement:r,setHoveredElement:n,selectElement:i}=Wr(),[o,s]=(0,A.useState)(null),[a,l]=(0,A.useState)(null);(0,A.useEffect)(()=>{if(r&&e){let e=V8(r);s({top:e.top,left:e.left,width:e.width,height:e.height,label:V6(r)})}else s(null)},[r,e]),(0,A.useEffect)(()=>{if(t){let e=V8(t);l({top:e.top,left:e.left,width:e.width,height:e.height,label:V6(t)});let r=()=>{let e=V8(t);l({top:e.top,left:e.left,width:e.width,height:e.height,label:V6(t)})};return window.addEventListener("scroll",r,!0),window.addEventListener("resize",r),()=>{window.removeEventListener("scroll",r,!0),window.removeEventListener("resize",r)}}l(null)},[t]);let c=(0,A.useCallback)(t=>{if(!e)return;let r=t.target;V4(r)?n(null):n(r)},[e,n]),u=(0,A.useMemo)(()=>{let e,t;return e=0,t=null,function(...r){let n=Date.now(),i=n-e;i>=16?(e=n,c(...r)):(null!==t&&clearTimeout(t),t=setTimeout(()=>{e=Date.now(),c(...r),t=null},16-i))}},[c]),d=(0,A.useCallback)(t=>{if(!e)return;let r=t.target;V4(r)||(t.preventDefault(),t.stopPropagation(),i(r))},[e,i]);(0,A.useEffect)(()=>{if(e)return document.addEventListener("mousemove",u,!0),document.addEventListener("click",d,!0),document.body.style.cursor="crosshair",()=>{document.removeEventListener("mousemove",u,!0),document.removeEventListener("click",d,!0),document.body.style.cursor=""}},[e,u,d]);let[p,h]=(0,A.useState)("");if((0,A.useEffect)(()=>{e?h("Selection mode active. Click an element to select it."):t?h("Element selected."):h("")},[e,t]),!e&&!t)return null;let f=o?{position:"fixed",top:o.top,left:o.left,width:o.width,height:o.height,border:"2px solid #405BFF",borderRadius:"2px",pointerEvents:"none",boxSizing:"border-box",zIndex:jU}:{},m=a?{position:"fixed",top:a.top,left:a.left,width:a.width,height:a.height,border:"2px solid #3DD68C",borderRadius:"2px",pointerEvents:"none",boxSizing:"border-box",zIndex:jU}:{},g={position:"absolute",top:"-24px",left:"0",backgroundColor:"#405BFF",color:"white",padding:"2px 8px",fontSize:"12px",fontFamily:"monospace",borderRadius:"4px",whiteSpace:"nowrap",pointerEvents:"none"},b={...g,backgroundColor:"#3DD68C",color:"#1a1a1a"};return(0,Cp.createPortal)((0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:0},children:p}),e&&(0,E.jsx)("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",pointerEvents:"none",zIndex:jU-1}}),o&&e&&(0,E.jsx)("div",{style:f,children:(0,E.jsx)("div",{style:g,children:o.label})}),a&&!e&&(0,E.jsx)("div",{style:m,children:(0,E.jsx)("div",{style:b,children:a.label})})]}),document.body)}let FL=()=>(0,E.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,E.jsx)("path",{d:"M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"}),(0,E.jsx)("path",{d:"M13 13l6 6"})]}),FR=()=>(0,E.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,E.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,E.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]});function FN(){let{isSelecting:e,exitSelection:t}=Wr();return e?(0,Cp.createPortal)((0,E.jsxs)("div",{style:{position:"fixed",top:"16px",left:"50%",transform:"translateX(-50%)",zIndex:0x7ffeb972,display:"flex",alignItems:"center",gap:"16px",backgroundColor:"rgba(26, 26, 26, 0.95)",borderRadius:"8px",padding:"10px 16px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.3)",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},"data-ld-selection-bar":"true",children:[(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:"white",fontSize:"14px"},children:[(0,E.jsx)("span",{style:{color:"#405BFF",display:"flex",alignItems:"center"},children:(0,E.jsx)(FL,{})}),(0,E.jsx)("span",{children:"Click on any element to select it"})]}),(0,E.jsxs)("button",{style:{display:"flex",alignItems:"center",gap:"4px",background:"none",border:"none",color:"rgba(255, 255, 255, 0.7)",cursor:"pointer",padding:"4px 8px",borderRadius:"4px",fontSize:"14px",transition:"background-color 0.2s, color 0.2s"},onClick:e=>{e.stopPropagation(),e.preventDefault(),t()},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.1)",e.currentTarget.style.color="white"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="rgba(255, 255, 255, 0.7)"},children:[(0,E.jsx)(FR,{}),(0,E.jsx)("span",{children:"Exit"})]})]}),document.body):null}function FZ({children:e}){let{isSelecting:t}=Wr(),{isExpanded:r,handleClose:n,handleCircleClick:i}=w2(),o=(0,A.useRef)(!1);return(0,A.useEffect)(()=>{t&&r&&(o.current=!0,n())},[t,r,n]),(0,A.useEffect)(()=>{!t&&o.current&&(i(),o.current=!1)},[t,i]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(FO,{}),(0,E.jsx)(FN,{}),e]})}function FG({children:e}){return(0,E.jsx)(Wt,{children:(0,E.jsx)(FZ,{children:e})})}function Fj(e){let{isOpen:t,onClose:r}=e,{iframeSrc:n}=wJ(),{authenticated:i,setAuthenticating:o}=w$();(0,A.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t&&r()};if(t)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t,r]);let s=(0,A.useCallback)(async()=>{try{o(!0),await function(e){let{url:t}=e,r=(window.screen.width-800)/2,n=(window.screen.height-600)/2,i=null;try{i=window.open(t,"oauth",`width=800,height=600,left=${r},top=${n},resizable=yes,scrollbars=yes`)}catch(e){console.error("Failed to open popup window. Please allow popups for this site.",e)}if(!i)throw Error("Failed to open popup window. Please allow popups for this site.");return new Promise(e=>{let t;t=setInterval(()=>{i.closed&&(t&&clearInterval(t),e("closed"))},1e3)})}({url:`${n}/toolbar/index.html?originUrl=${window.location.origin}`}),r()}catch(e){console.error("Popup authentication failed:",e)}finally{o(!1)}},[n,r,o]);return(0,A.useEffect)(()=>{t&&!i&&s()},[t,i,s]),null}let FM="ld-toolbar-disabled";function FV(e){let{mode:t,flagOverridePlugin:r,eventInterceptionPlugin:n,baseUrl:o}=e,{searchTerm:s}=wy(),{position:a,handlePositionChange:l}=wP(),c=wg(),{activeTab:u,setActiveTab:d}=wz(),{loading:p}=w$(),{loading:h}=wh(),f=V9(),m=function(e,t,r,n){if(n)return"flags";if("dev-server"===e)return"flag-dev-server";if("sdk"===e){if(t)return"flag-sdk";if(r)return"events"}return"settings"}(t,!!r,!!n,f),[g,b]=(0,A.useState)(!1),v=p||h,y=w2(),x=(0,A.useRef)(null),w=(0,A.useRef)(null),{slideDirection:k,searchIsExpanded:S,isExpanded:C,toolbarRef:_,handleTabChange:T,handleClose:I,handleSearch:O,handleToggleReloadOnFlagChange:L,handleCircleClick:R,reloadOnFlagChangeIsEnabled:N,handleToggleAutoCollapse:Z,isAutoCollapseEnabled:G,setSearchIsExpanded:j,setIsAnimating:M}=y,V=(0,A.useCallback)(()=>{w.current&&w.current.focus()},[w]),W=(0,A.useCallback)(()=>{x.current&&x.current.focus()},[x]),{handleMouseDown:P,isDragging:F}=function({enabled:e,onDragEnd:t,elementRef:r}){let n=(0,A.useRef)(!1),i=(0,A.useRef)({x:0,y:0}),o=(0,A.useRef)({x:0,y:0,time:0}),s=(0,A.useRef)(null);return{handleMouseDown:(0,A.useCallback)(a=>{if(!e||!r.current)return;i.current={x:0,y:0},o.current={x:a.clientX,y:a.clientY,time:Date.now()};let l={x:a.clientX,y:a.clientY},c=r.current.getBoundingClientRect(),u={x:c.left,y:c.top},d=e=>{if(!r.current)return;let t=Date.now(),s=t-o.current.time;s>0&&(i.current={x:(e.clientX-o.current.x)/s,y:(e.clientY-o.current.y)/s}),o.current={x:e.clientX,y:e.clientY,time:t};let a={x:e.clientX-l.x,y:e.clientY-l.y};if(Math.sqrt(a.x*a.x+a.y*a.y)>3&&!n.current&&(n.current=!0,document.addEventListener("selectstart",p)),n.current){let e={x:u.x+a.x,y:u.y+a.y};r.current.style.left=`${e.x}px`,r.current.style.top=`${e.y}px`}},p=e=>e.preventDefault(),h=()=>{r.current&&(r.current.style.left="",r.current.style.top="",r.current.style.right="",r.current.style.bottom="",r.current.style.transform="",r.current.style.transformOrigin="",r.current.style.transition="",r.current.style.zIndex="")},f=e=>{document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",f),document.removeEventListener("selectstart",p);let o=e.clientX,a=e.clientY;if(n.current&&r.current){let e=r.current.getBoundingClientRect();o=e.left+e.width/2,a=e.top+e.height/2;let n=o+200*i.current.x,l=a+200*i.current.y,c=Math.max(e.width/2,Math.min(window.innerWidth-e.width/2,n)),u=Math.max(e.height/2,Math.min(window.innerHeight-e.height/2,l)),d=window.innerWidth,p=window.innerHeight,f=u<p/2,m=c<d/2?20:d-e.width-20,g=f?20:p-e.height-20;t(c,u),r.current.style.transition="left 0.4s cubic-bezier(0.16, 1, 0.3, 1), top 0.4s cubic-bezier(0.16, 1, 0.3, 1)",r.current.offsetHeight,r.current.style.left=`${m}px`,r.current.style.top=`${g}px`;let b=e=>{("left"===e.propertyName||"top"===e.propertyName)&&(r.current?.removeEventListener("transitionend",b),h())};r.current.addEventListener("transitionend",b),s.current={stop:()=>{r.current?.removeEventListener("transitionend",b)}}}else h();setTimeout(()=>{n.current=!1},50)};document.addEventListener("mousemove",d),document.addEventListener("mouseup",f)},[e,t,r]),isDragging:(0,A.useCallback)(()=>n.current,[])}}({enabled:!0,onDragEnd:(0,A.useCallback)((e,t)=>{let r=window.innerWidth,n=window.innerHeight,i=e<r/2,o=t<n/2?i?"top-left":"top-right":i?"bottom-left":"bottom-right";o!==a&&c.trackPositionChange(a,o,"drag"),l(o)},[l,a,c]),elementRef:_}),{containerAnimations:D,animationConfig:X,handleAnimationStart:z,handleAnimationComplete:B}=function(e){let{isExpanded:t,setIsAnimating:r,onExpandComplete:n,onCollapseComplete:i}=e,o=(0,A.useRef)(t),s=(0,A.useMemo)(()=>({width:t?kN:kO,height:t?"fit-content":kL,borderRadius:t?kZ:kR,scale:t?kG:kj,boxShadow:t?"0 12px 48px rgba(0, 0, 0, 0.5)":"0 4px 16px rgba(0, 0, 0, 0.3)"}),[t]),a=(0,A.useMemo)(()=>{let e=o.current;return(o.current=t,!e&&t)?kA.containerExpand:e&&!t?kA.containerCollapse:kA.containerExpand},[t]);return{containerAnimations:s,animationConfig:a,handleAnimationStart:(0,A.useCallback)(()=>{r(!0)},[r]),handleAnimationComplete:(0,A.useCallback)(()=>{r(!1),t&&n?n():!t&&i&&i()},[r,t,n,i])}}({isExpanded:C,setIsAnimating:M,onExpandComplete:V,onCollapseComplete:W});(0,A.useEffect)(()=>{u||d(m)},[u,d,m]);let{client:U}=wh();(0,A.useEffect)(()=>{!U||(V3()&&C?(i.start(),v6.t.start({forceNew:!1,silent:!1})):C||(i.stop(),v6.t.stop()))},[U,C]);let H=(0,A.useCallback)(()=>{F()||R()},[R,F]);return(0,E.jsxs)(oI.div,{ref:_,className:`f9csi00 ${{"bottom-left":"f9csi02","bottom-right":"f9csi01","top-left":"f9csi04","top-right":"f9csi03"}[a]} ${C?"f9csi06":"f9csi05"}`,initial:!1,animate:D,transition:X,onAnimationStart:z,onAnimationComplete:B,onKeyDown:e=>{C||("Enter"===e.key||" "===e.key)&&(e.preventDefault(),H())},"data-testid":"launchdarkly-toolbar","data-theme":"dark",role:C?"toolbar":"button","aria-label":C?"LaunchDarkly toolbar":"Open LaunchDarkly toolbar",tabIndex:C?-1:0,children:[(0,E.jsx)(oG,{children:!C&&(0,E.jsx)(k$,{ref:x,onClick:H,onMouseDown:P})}),(0,E.jsxs)(oG,{children:[C&&v&&(0,E.jsx)(k5,{onMouseDown:P}),C&&!v&&!f&&(0,E.jsx)(VD,{ref:w,activeTab:u,slideDirection:k,searchTerm:s,searchIsExpanded:S,onSearch:O,onClose:I,onToggleAutoCollapse:Z,isAutoCollapseEnabled:G,onTabChange:T,setSearchIsExpanded:j,flagOverridePlugin:r,eventInterceptionPlugin:n,mode:t,baseUrl:o,defaultActiveTab:m,onHeaderMouseDown:P,reloadOnFlagChangeIsEnabled:N,onToggleReloadOnFlagChange:L,onOpenAuthModal:()=>b(!0)}),C&&!v&&f&&(0,E.jsx)(FA,{onClose:I,onHeaderMouseDown:P,defaultActiveTab:m,onOpenAuthModal:()=>b(!0)})]}),(0,E.jsx)(Fj,{isOpen:g,onClose:()=>b(!1)})]})}function FW(e){let{baseUrl:t="https://app.launchdarkly.com",authUrl:r="https://integrations.launchdarkly.com",projectKey:n,position:i,devServerUrl:o,pollIntervalInMs:s=5e3,flagOverridePlugin:a,eventInterceptionPlugin:l,domId:c,clientSideId:u}=e,d=(0,A.useMemo)(()=>({clientSideId:"6918c5d2958a980a8fdcce45",baseUrl:"https://app.ld.catamorphic.com",streamUrl:"https://stream.ld.catamorphic.com",eventsUrl:"https://events.ld.catamorphic.com",backendUrl:void 0}),[]);if(!function(){let[e,t]=(0,A.useState)(()=>"undefined"==typeof window||"true"===localStorage.getItem(FM));return(0,A.useEffect)(()=>{if("undefined"==typeof window)return;let e={disable:()=>{localStorage.setItem(FM,"true"),t(!0),console.log("✅ LaunchDarkly toolbar disabled.")},enable:()=>{localStorage.removeItem(FM),t(!1),console.log("✅ LaunchDarkly toolbar enabled.")},status:()=>{let e="true"===localStorage.getItem(FM);return console.log(`LaunchDarkly toolbar is currently: ${e?"❌ DISABLED":"✅ ENABLED"}`),!e},toggle:()=>{"true"===localStorage.getItem(FM)?e.enable():e.disable()}};return window.ldToolbar=e,console.log("\uD83D\uDD27 LaunchDarkly toolbar controls available:\n window.ldToolbar.enable() - Enable toolbar\n window.ldToolbar.disable() - Disable toolbar\n window.ldToolbar.toggle() - Toggle toolbar\n window.ldToolbar.status() - Check current status"),()=>{delete window.ldToolbar}},[]),(0,A.useEffect)(()=>{if("undefined"==typeof window)return;let e=e=>{e.key===FM&&t("true"===e.newValue)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[]),!e}())return null;let p=wk(o);return(0,E.jsx)(w5,{mode:p,baseUrl:d.baseUrl,clientSideId:d.clientSideId,streamUrl:d.streamUrl,eventsUrl:d.eventsUrl,backendUrl:d.backendUrl,children:(0,E.jsx)(w6,{initialPosition:i,domId:c,devServerUrl:o,baseUrl:t,flagOverridePlugin:a,eventInterceptionPlugin:l,children:(0,E.jsx)(kv,{authUrl:r,clientSideId:u,providedProjectKey:n,children:(0,E.jsx)(kS,{config:{projectKey:n,devServerUrl:o,pollIntervalInMs:s},children:(0,E.jsx)(k_,{children:(0,E.jsx)(FG,{children:(0,E.jsx)(FV,{mode:p,baseUrl:t,flagOverridePlugin:a,eventInterceptionPlugin:l})})})})})})})}},"./src/types/constants.ts"(e,t,r){r.d(t,{D:()=>n});let n="ld-toolbar"},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/api.js"(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&s[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),r&&(u[2]&&(u[1]="@media ".concat(u[2]," {").concat(u[1],"}")),u[2]=r),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js"(e){e.exports=function(e){return e[1]}},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js"(e){var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},o=[],s=0;s<e.length;s++){var a=e[s],l=n.base?a[0]+n.base:a[0],c=i[l]||0,u="".concat(l," ").concat(c);i[l]=c+1;var d=r(u),p={css:a[1],media:a[2],sourceMap:a[3],supports:a[4],layer:a[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var h=function(e,t){var r=t.domAPI(t);return r.update(e),function(t){t?(t.css!==e.css||t.media!==e.media||t.sourceMap!==e.sourceMap||t.supports!==e.supports||t.layer!==e.layer)&&r.update(e=t):r.remove()}}(p,n);n.byIndex=s,t.splice(s,0,{identifier:u,updater:h,references:1})}o.push(u)}return o}e.exports=function(e,i){var o=n(e=e||[],i=i||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var a=r(o[s]);t[a].references--}for(var l=n(e,i),c=0;c<o.length;c++){var u=r(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js"(e){var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js"(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js"(e,t,r){e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js"(e){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){var n,i,o;n="",r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {")),(i=void 0!==r.layer)&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,i&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}"),(o=r.sourceMap)&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(n,t,e.options)},remove:function(){var e;null===(e=t).parentNode||e.parentNode.removeChild(e)}}}},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js"(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},"../../node_modules/.pnpm/@launchdarkly+session-replay@0.4.9/node_modules/@launchdarkly/session-replay/dist/LDObserve-Cc16WfBI.js"(e,t,r){let n;r.r(t),r.d(t,{LDObserve:()=>n});var i=r("../../node_modules/.pnpm/@launchdarkly+session-replay@0.4.9/node_modules/@launchdarkly/session-replay/dist/index-CxTr8FHJ.js");class o extends i.x{start(){return this._sdk.start()}stop(){return this._sdk.stop()}recordGauge(e){return this._bufferCall("recordGauge",[e])}recordCount(e){return this._bufferCall("recordCount",[e])}recordIncr(e){return this._bufferCall("recordIncr",[e])}recordHistogram(e){return this._bufferCall("recordHistogram",[e])}recordUpDownCounter(e){return this._bufferCall("recordUpDownCounter",[e])}startSpan(e,t,r,n){return this._bufferCall("startSpan",[e,t,r,n])}startManualSpan(e,t,r,n){return this._bufferCall("startManualSpan",[e,t,r,n])}register(e,t){return this._bufferCall("register",[e,t])}recordLog(e,t,r){return this._bufferCall("recordLog",[e,t,r])}recordError(e,t,r,n,i){return this._bufferCall("recordError",[e,t,r,n,i])}}"u">typeof globalThis?globalThis.LDObserve?n=globalThis.LDObserve:(n=new o,globalThis.LDObserve=n):n=new o},"../../node_modules/.pnpm/@launchdarkly+session-replay@0.4.9/node_modules/@launchdarkly/session-replay/dist/index-CxTr8FHJ.js"(e,t,r){let n,i,o,s,a,l,c,u,d,p,h,f,m,g,b,v;r.d(t,{E:()=>l_,t:()=>n,x:()=>E});var y,x,w=Object.defineProperty,k=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?w(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r};let S=Object.create(null),C=(e,t,...r)=>{let n=`[@launchdarkly plugins]: (${e}): `;console[t].apply(console,[n,...r]),T(n,...r)},_=(e,t,r,...n)=>{S[`${e}-${t}`]||(S[`${e}-${t}`]=!0,C(e,r,...n))},T=(e,...t)=>{let n,i;return n=void 0,i=function*(){try{let{LDObserve:n}=yield Promise.resolve().then(r.bind(r,"../../node_modules/.pnpm/@launchdarkly+session-replay@0.4.9/node_modules/@launchdarkly/session-replay/dist/LDObserve-Cc16WfBI.js"));n.recordLog(`${e}${t}`,"warn")}catch{}},new Promise((e,t)=>{var r=e=>{try{s(i.next(e))}catch(e){t(e)}},o=e=>{try{s(i.throw(e))}catch(e){t(e)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,o);s((i=i.apply(n,null)).next())})};class I{constructor(e,t){k(this,"debug"),k(this,"name"),this.debug=e,this.name=t}log(...e){if(this.debug){let t=`[${Date.now()}]`;this.name&&(t+=` - ${this.name}`),console.log.apply(console,[t,...e])}}warn(...e){let t=`[${Date.now()}]`;this.name&&(t+=` - ${this.name}`),console.warn.apply(console,[t,...e])}}let E=class{constructor(){k(this,"_sdk"),k(this,"_isLoaded",!1),k(this,"_callBuffer",[]),k(this,"_capacity",1e5),k(this,"_droppedEvents",0),k(this,"_exceededCapacity",!1),k(this,"_logger",new I)}_bufferCall(e,t){if(!this._isLoaded)return void this._enqueue({method:e,args:t});try{return this._sdk[e](...t)}catch(t){C(`Error executing buffered call to ${e}:`,"error",t)}}_enqueue(e){this._callBuffer.length<this._capacity?(this._callBuffer.push(e),this._exceededCapacity=!1):(this._exceededCapacity||(this._exceededCapacity=!0,C("Exceeded event queue capacity. Increase capacity to avoid dropping events.","warn")),this._droppedEvents+=1)}load(e){for(let{method:t,args:r}of(this._sdk=e,this._isLoaded=!0,this._callBuffer))try{this._sdk[t](...r)}catch(e){C(`Error executing buffered call to ${t}:`,"error",e)}this._callBuffer=[]}};var A=Object.defineProperty,O=Object.defineProperties,L=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,G=(e,t,r)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t)=>{for(var r in t||(t={}))N.call(t,r)&&G(e,r,t[r]);if(R)for(var r of R(t))Z.call(t,r)&&G(e,r,t[r]);return e},M=(e,t)=>{var r={};for(var n in e)N.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&R)for(var n of R(e))0>t.indexOf(n)&&Z.call(e,n)&&(r[n]=e[n]);return r},V=(e,t,r)=>G(e,"symbol"!=typeof t?t+"":t,r),W=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())});function P(e,t){throw Error(t)}let F=/\r\n|[\n\r]/g;function D(e,t){let r=0,n=1;for(let i of e.body.matchAll(F)){if("number"==typeof i.index||function(e,t){throw Error("Unexpected invariant triggered.")}(),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function X(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?r:0,l=t.column+a,c=`${e.name}:${s}:${l}
|
|
655
|
+
Please find the element and implement the click tracking with event name \`${r}\`.`}}};var P1=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Interactive/WorkflowCard.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA81Yf2/jKBD9v58CrbRSowsRzg83pbpPcjqdiMEJLQEf4CTd0373E2An4LhJ6qrdVau0wcwbmHlvGDz5J2M5YTlC4L87ACg3lSCvGJSCHZ7ugP8LKdessFxJDAol6q10T9akwiCbVn5aRSjlco1BloeBFSle1lrVksJCCaUx2BF9D6Gowne41uQVPiI08rOVpkxDTSivDQbLBsOPYpBVB2CU4LQXY9lgWE2k4WGVDZ6fBdBkap7uft5NjlvFG7VjGktl7/+ixBJIuSErweif36yu2be/Rz4YMUr/+h+87xi6H8/DqYoU3L5igCZ5YpT1h54IvpaQW7Y1YRAaS7TtxD7Cmd6AUzBpmXbDz7WxvHyFhZKWSRs/2nNqNxjMUcjDhvH1xp6+35bb5cXchv1sNJcvGCA3cgFq1g3zbBBZ5yfXGGTu3y2XsNksShzMvYNSSQsN/8EwyFpjN7RvApKjayvPmiBsiV5z2fWyOPMyC14uIM7PEQEQXDLYpimbzBMveRosLv3sK+w4CnpaHY56/Eje4/g1m816Qrq4GtJFq3d2sNCLvlR6i0FdVUwXxDAfEGYt09A4ybldoMkiOAthg4KVtuFiFKmHQbTKOyjLs6xOB2103mX9owc+lVpUHY7YQ3JzrbI+9GcyP8/kLBoqyZaL18h/NAq3SiqXFDa6UTiqto6uGEgl2ZUyny3MGKyUqyuEqn0YSSOIcSVIwTZKUKZ9OK8yLTEvVVGb64fDStTsSNTTijBA/sdpSq9X5D6fj8FjNgbTxWLszqnUHemnoyddXEb32o24z8R81T11Fl7YijuNQ7Zj0po2rpFZMaRcnIQQEXT5W/LzdgFOG/yi1sbNaULXZSERoodqRWgyAldu2nxnOxdm5l1iFpgUlu/YO7z1YHhywx03fCUC1FF907cSkTC9mQ5VWRpmvVXignrQ5sBtO8XjsZX3dwaRPRtCzeHuyuvLjWavQ3VWLS00E8Tl5OnNJUfGmws7i6bxj2rzRlG0m5zlcSceK8zXsc7TYNMW6s9U/A2iva5QHl0DcNuxj75GsLwR7HDnZ5DPQ7hx4RLQ5UCjg1m3yqMvKu+hZTuyK2Wk52Lg5W9Q+59/IbOeP4FZn3QyAPADckmb21jisF13bwvT5kQqC4kQas9oYv7yNZEWF/tHxuR5A7ntnBFkZZSobWhsVYVBQURxnyH0HfzhbkyjcJdxxD89gV6Do879NVt+4Hb+sU4rbXDnTdcXOlw0Bs3vZDZKU+4l6HRSCme54ZQymYRLvuuFRtwXt0FB6PvTO+5MXtoV0UzaODht0fmystJdWVtjmluvDwD2xEjjNbDnTCB83RDEWFhsuKDJq7CVslZtb2NLBKreWJFniL/7nD7QBC1S68pbH/uu97C85W37smQeDogI/F8PnrwVILVVv/5Vxc//AaozrKWaFQAA"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),P2={};P2.styleTagTransform=kK(),P2.setAttributes=kB(),P2.insert=kX().bind(null,"head"),P2.domAPI=kF(),P2.insertStyleElement=kH(),kW()(P1.A,P2),P1.A&&P1.A.locals&&P1.A.locals;var P5="_1e6ae600",P3="_1e6ae603",P9="_1e6ae60n",P4="_1e6ae601",P6="_1e6ae604",P7="_1e6ae602",P8="_1e6ae605";let Fe=()=>(0,E.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,E.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,E.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),Ft=()=>(0,E.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,E.jsx)("polyline",{points:"20 6 9 17 4 12"})}),Fr=()=>(0,E.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 1024 1024",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{d:"M897.246 286.869H889.819C850.735 286.808 819.017 318.46 819.017 357.539V515.589C819.017 547.15 792.93 572.716 761.882 572.716C743.436 572.716 725.02 563.433 714.093 547.85L552.673 317.304C539.28 298.16 517.486 286.747 493.895 286.747C457.094 286.747 423.976 318.034 423.976 356.657V515.619C423.976 547.181 398.103 572.746 366.842 572.746C348.335 572.746 329.949 563.463 319.021 547.881L138.395 289.882C134.316 284.038 125.154 286.93 125.154 294.052V431.892C125.154 438.862 127.285 445.619 131.272 451.34L309.037 705.2C319.539 720.204 335.033 731.344 352.9 735.392C397.616 745.557 438.77 711.135 438.77 667.278V508.406C438.77 476.845 464.339 451.279 495.904 451.279H495.995C515.02 451.279 532.857 460.562 543.785 476.145L705.235 706.661C718.659 725.835 739.327 737.218 763.983 737.218C801.606 737.218 833.841 705.9 833.841 667.308V508.376C833.841 476.815 859.41 451.249 890.975 451.249H897.276C901.233 451.249 904.43 448.053 904.43 444.097V294.021C904.43 290.065 901.233 286.869 897.276 286.869H897.246Z",fill:"currentColor"})}),Fn=()=>{let e=`vscode-mask-${Math.random().toString(36).substring(2,11)}`,t=`filter0-${Math.random().toString(36).substring(2,11)}`,r=`filter1-${Math.random().toString(36).substring(2,11)}`,n=`paint0-${Math.random().toString(36).substring(2,11)}`;return(0,E.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("mask",{id:e,maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"100",height:"100",children:(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.9119 99.3171C72.4869 99.9307 74.2828 99.8914 75.8725 99.1264L96.4608 89.2197C98.6242 88.1787 100 85.9892 100 83.5872V16.4133C100 14.0113 98.6243 11.8218 96.4609 10.7808L75.8725 0.873756C73.7862 -0.130129 71.3446 0.11576 69.5135 1.44695C69.252 1.63711 69.0028 1.84943 68.769 2.08341L29.3551 38.0415L12.1872 25.0096C10.589 23.7965 8.35363 23.8959 6.86933 25.2461L1.36303 30.2549C-0.452552 31.9064 -0.454633 34.7627 1.35853 36.417L16.2471 50.0001L1.35853 63.5832C-0.454633 65.2374 -0.452552 68.0938 1.36303 69.7453L6.86933 74.7541C8.35363 76.1043 10.589 76.2037 12.1872 74.9905L29.3551 61.9587L68.769 97.9167C69.3925 98.5406 70.1246 99.0104 70.9119 99.3171ZM75.0152 27.2989L45.1091 50.0001L75.0152 72.7012V27.2989Z",fill:"white"})}),(0,E.jsxs)("g",{mask:`url(#${e})`,children:[(0,E.jsx)("path",{d:"M96.4614 10.7962L75.8569 0.875542C73.4719 -0.272773 70.6217 0.211611 68.75 2.08333L1.29858 63.5832C-0.515693 65.2373 -0.513607 68.0937 1.30308 69.7452L6.81272 74.754C8.29793 76.1042 10.5347 76.2036 12.1338 74.9905L93.3609 13.3699C96.086 11.3026 100 13.2462 100 16.6667V16.4275C100 14.0265 98.6246 11.8378 96.4614 10.7962Z",fill:"#0065A9"}),(0,E.jsx)("g",{filter:`url(#${t})`,children:(0,E.jsx)("path",{d:"M96.4614 89.2038L75.8569 99.1245C73.4719 100.273 70.6217 99.7884 68.75 97.9167L1.29858 36.4169C-0.515693 34.7627 -0.513607 31.9063 1.30308 30.2548L6.81272 25.246C8.29793 23.8958 10.5347 23.7964 12.1338 25.0095L93.3609 86.6301C96.086 88.6974 100 86.7538 100 83.3334V83.5726C100 85.9735 98.6246 88.1622 96.4614 89.2038Z",fill:"#007ACC"})}),(0,E.jsx)("g",{filter:`url(#${r})`,children:(0,E.jsx)("path",{d:"M75.8578 99.1263C73.4721 100.274 70.6219 99.7885 68.75 97.9166C71.0564 100.223 75 98.5895 75 95.3278V4.67213C75 1.41039 71.0564 -0.223106 68.75 2.08329C70.6219 0.211402 73.4721 -0.273666 75.8578 0.873633L96.4587 10.7807C98.6234 11.8217 100 14.0112 100 16.4132V83.5871C100 85.9891 98.6234 88.1786 96.4586 89.2196L75.8578 99.1263Z",fill:"#1F9CF0"})}),(0,E.jsx)("g",{style:{mixBlendMode:"overlay"},opacity:.25,children:(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M70.8511 99.3171C72.4261 99.9306 74.2221 99.8913 75.8117 99.1264L96.4 89.2197C98.5634 88.1787 99.9392 85.9892 99.9392 83.5871V16.4133C99.9392 14.0112 98.5635 11.8217 96.4001 10.7807L75.8117 0.873695C73.7255 -0.13019 71.2838 0.115699 69.4527 1.44688C69.1912 1.63705 68.942 1.84937 68.7082 2.08335L29.2943 38.0414L12.1264 25.0096C10.5283 23.7964 8.29285 23.8959 6.80855 25.246L1.30225 30.2548C-0.513334 31.9064 -0.515415 34.7627 1.29775 36.4169L16.1863 50L1.29775 63.5832C-0.515415 65.2374 -0.513334 68.0937 1.30225 69.7452L6.80855 74.754C8.29285 76.1042 10.5283 76.2036 12.1264 74.9905L29.2943 61.9586L68.7082 97.9167C69.3317 98.5405 70.0638 99.0104 70.8511 99.3171ZM74.9544 27.2989L45.0483 50L74.9544 72.7012V27.2989Z",fill:`url(#${n})`})})]}),(0,E.jsxs)("defs",{children:[(0,E.jsxs)("filter",{id:t,x:"-8.39411",y:"15.8291",width:"116.727",height:"92.2456",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,E.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,E.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,E.jsx)("feOffset",{}),(0,E.jsx)("feGaussianBlur",{stdDeviation:"4.16667"}),(0,E.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,E.jsx)("feBlend",{mode:"overlay",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,E.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,E.jsxs)("filter",{id:r,x:"60.4167",y:"-8.07558",width:"47.9167",height:"116.151",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,E.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,E.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,E.jsx)("feOffset",{}),(0,E.jsx)("feGaussianBlur",{stdDeviation:"4.16667"}),(0,E.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,E.jsx)("feBlend",{mode:"overlay",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),(0,E.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),(0,E.jsxs)("linearGradient",{id:n,x1:"49.9392",y1:"0.257812",x2:"49.9392",y2:"99.7423",gradientUnits:"userSpaceOnUse",children:[(0,E.jsx)("stop",{stopColor:"white"}),(0,E.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]})]})]})},Fi=()=>(0,E.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 96 96",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("path",{d:"M95.667 67.954C92.225 73.933 72.24 88.04 47.997 88.04 23.754 88.04 3.769 73.933.328 67.954c-.216-.375-.307-.796-.328-1.226V55.661c.019-.371.089-.736.226-1.081 1.489-3.738 5.386-9.166 10.417-10.623.667-1.712 1.655-4.215 2.576-6.062-.154-1.414-.208-2.872-.208-4.345 0-5.322 1.128-9.99 4.527-13.466 1.587-1.623 3.557-2.869 5.893-3.805 5.595-4.545 13.563-8.369 24.48-8.369s19.057 3.824 24.652 8.369c2.337.936 4.306 2.182 5.894 3.805 3.399 3.476 4.527 8.144 4.527 13.466 0 1.473-.054 2.931-.208 4.345.921 1.847 1.909 4.35 2.576 6.062 5.03 1.457 8.928 6.885 10.417 10.623.163.41.231.848.231 1.289v10.644c0 .504-.081 1.004-.333 1.441ZM48.686 43.993l-.3.001-1.077-.001c-.423.709-.894 1.39-1.418 2.035-3.078 3.787-7.672 5.964-14.026 5.964-6.897 0-11.952-1.435-15.123-5.032a7.886 7.886 0 0 1-.342-.419l-.39.419v26.326c5.737 3.118 18.05 8.713 31.987 8.713 13.938 0 26.251-5.595 31.988-8.713V46.96l-.39-.419s-.132.181-.342.419c-3.171 3.597-8.226 5.032-15.123 5.032-6.354 0-10.949-2.177-14.026-5.964a17.178 17.178 0 0 1-1.418-2.034h-.066l.066-.001Zm-3.94-11.733c.17-1.326.251-2.513.253-3.573v-.084c-.005-3.077-.678-5.079-1.752-6.308-1.365-1.562-4.184-2.758-10.127-2.115-6.021.652-9.386 2.146-11.294 4.098-1.847 1.889-2.818 4.715-2.818 9.272 0 4.842.698 7.703 2.232 9.443 1.459 1.655 4.332 3.001 10.625 3.001 4.837 0 7.603-1.573 9.371-3.749 1.899-2.336 2.967-5.759 3.51-9.985Zm6.503 0c.543 4.226 1.611 7.649 3.51 9.985 1.768 2.176 4.533 3.749 9.371 3.749 6.292 0 9.165-1.346 10.624-3.001 1.535-1.74 2.232-4.601 2.232-9.443 0-4.557-.97-7.383-2.817-9.272-1.908-1.952-5.274-3.446-11.294-4.098-5.943-.643-8.763.553-10.127 2.115-1.074 1.229-1.747 3.231-1.752 6.308v.084c.002 1.06.083 2.247.253 3.573Zm-2.563 11.734h.066l-.066-.001v.001Z"}),(0,E.jsx)("path",{d:"M38.5 55.75a3.5 3.5 0 0 1 3.5 3.5v8.5a3.5 3.5 0 1 1-7 0v-8.5a3.5 3.5 0 0 1 3.5-3.5Zm19 0a3.5 3.5 0 0 1 3.5 3.5v8.5a3.5 3.5 0 1 1-7 0v-8.5a3.5 3.5 0 0 1 3.5-3.5Z"})]}),Fo=({ide:e})=>{switch(e){case"cursor":return(0,E.jsx)(Pq,{});case"windsurf":return(0,E.jsx)(Fr,{});case"vscode":return(0,E.jsx)(Fn,{});case"github-copilot":return(0,E.jsx)(Fi,{})}};function Fs({workflow:e,disabled:t=!1}){let r=P0[e],{selectedElementInfo:n}=Wr(),{projectKey:i}=ku(),[o,s]=(0,A.useState)(()=>(function(){try{let e=localStorage.getItem(wC);if(!e)return wO;let t=JSON.parse(e);return t.preferredIde&&wA.includes(t.preferredIde)?t.preferredIde:wO}catch(e){return console.warn("Failed to load preferred IDE from localStorage:",e),wO}})()),[a,l]=(0,A.useState)(""),[c,u]=(0,A.useState)(!1),[d,p]=(0,A.useState)(!1),h=(0,A.useRef)(null),f=(0,A.useRef)(null),m=(0,A.useRef)(!1),g=(0,A.useRef)(null),b=(0,A.useMemo)(()=>n?r.buildPrompt(n,i||"default",a):"",[r,n,i,a]),v=(0,A.useMemo)(()=>{if(n&&r.buildCondensedPrompt)return r.buildCondensedPrompt(n,i||"default",a)},[r,n,i,a]),y=a.trim().length>0;(0,A.useEffect)(()=>{let e=e=>{if(m.current)return;let t=e.target;h.current&&(h.current.contains(t)||u(!1))};if(c)return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[c]),(0,A.useEffect)(()=>()=>{g.current&&clearTimeout(g.current)},[]);let x=(0,A.useCallback)(async()=>{!y||(u(!1),await PK(b)&&(g.current&&clearTimeout(g.current),p(!0),g.current=setTimeout(()=>{p(!1)},2e3)))},[b,y]),w=(0,A.useCallback)(async e=>{y&&(s(e),wL("preferredIde",e),u(!1),await PQ(b,e,v))},[b,v,y]),k=(0,A.useCallback)(()=>{y&&(m.current=!0,u(e=>!e),requestAnimationFrame(()=>{m.current=!1}))},[y]),S=PJ.find(e=>e.id===o)?.label||o;return((0,A.useEffect)(()=>{if(f.current){let e=f.current.querySelector("button");e&&(e.title="cursor"===o||"github-copilot"===o?`Open in ${S}`:`Copy prompt and open in ${S}`)}},[S,o]),t)?(0,E.jsx)("div",{className:P5,"data-disabled":"true",children:(0,E.jsxs)("div",{className:P4,children:[(0,E.jsx)("div",{className:P7,children:r.icon}),(0,E.jsxs)("div",{className:P3,children:[(0,E.jsxs)("h4",{className:P6,children:[r.title,(0,E.jsx)("span",{className:"_1e6ae606",children:"Coming Soon"})]}),(0,E.jsx)("p",{className:P8,children:r.description})]})]})}):(0,E.jsxs)("div",{className:P5,children:[(0,E.jsxs)("div",{className:P4,children:[(0,E.jsx)("div",{className:P7,children:r.icon}),(0,E.jsxs)("div",{className:P3,children:[(0,E.jsx)("h4",{className:P6,children:r.title}),(0,E.jsx)("p",{className:P8,children:r.description})]})]}),(0,E.jsxs)("div",{className:"_1e6ae607",children:[(0,E.jsx)("label",{className:"_1e6ae608",children:r.inputLabel}),(0,E.jsx)("input",{type:"text",className:"_1e6ae609",placeholder:r.inputPlaceholder,value:a,onChange:e=>l(e.target.value),onKeyDown:e=>{e.stopPropagation()},onKeyUp:e=>e.stopPropagation(),onKeyPress:e=>e.stopPropagation()})]}),(0,E.jsx)("div",{className:`_1e6ae60a ${!y?"_1e6ae60b":""}`,children:(0,E.jsxs)("div",{className:"_1e6ae60g",ref:h,children:[(0,E.jsxs)(T5,{spacing:"compact",className:"_1e6ae60h",children:[(0,E.jsx)("div",{ref:f,style:{display:"inline-flex"},children:(0,E.jsxs)(Io,{className:"_1e6ae60i",onPress:()=>w(o),isDisabled:!y,children:[(0,E.jsx)("span",{children:"cursor"===o||"github-copilot"===o?"Open in ":"Copy prompt and Open in "}),(0,E.jsx)(Fo,{ide:o})]},`ide-button-${o}`)}),(0,E.jsx)("button",{"aria-label":"Choose IDE",className:`_1e6ae60j ${c?"_1e6ae60k":""} ${d?"_1e6ae60l":""}`,disabled:!y,onClick:k,"aria-expanded":c,"aria-haspopup":"listbox",type:"button",children:d?(0,E.jsx)(Ft,{}):(0,E.jsx)(MJ,{})})]}),c&&(0,E.jsxs)("div",{className:"_1e6ae60m",role:"listbox",children:[PJ.map(e=>(0,E.jsxs)("button",{className:`${P9} ${e.id===o?"_1e6ae60o":""}`,onClick:()=>w(e.id),role:"option","aria-selected":e.id===o,children:[(0,E.jsx)(Fo,{ide:e.id}),(0,E.jsx)("span",{children:e.label}),e.id===o&&(0,E.jsx)("span",{className:"_1e6ae60q",children:"Default"})]},e.id)),(0,E.jsx)("div",{className:"_1e6ae60p"}),(0,E.jsxs)("button",{className:P9,onClick:x,role:"option",children:[(0,E.jsx)(Fe,{}),(0,E.jsx)("span",{children:"Copy prompt"})]})]})]})})]})}function Fa({className:e}){return(0,E.jsx)("svg",{className:`${IF} ${e}`,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0m-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0M9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z",clipRule:"evenodd"})})}var Fl=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Interactive/MCPSetupAlert.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA51VXZPiIBB891fwePeAlUTNKvtjrkiYJHOLkAKi8a72v19B0E00fuy9WMUwdjfdA1n+yvMGdiIlfxeECLSt5CdGKgn9+4IQLrFWFB3s7VCk1nHj/FbNW0bSrO3fF5+LZYTJAswRhWsYyZI2gDSAdeO+1gNOY1B9MJL4yp6bGhV1umUkG5pKLbVh5MDND0plS8OaFrIDuk6Sn2PS1bz2QCPQQOlQK+YRu736kj5Sw0gaZKCiUXsyJlj/F8GVNZsAUmnlqMU/wEi6igJ86Rg9ypPk/ulrw080Dac/e3alNL8heWhnAFzdAhIiUQE9B5cu12OStxdmpQTlwFy82I6SPxpf8b9j0O0UFFVQ8AT7d2cdVidaauVAuRvafKBtuRCo6rC+5H6Zyqit0L33LPQV2ggwtNDDDi8/aqM7JegDG7fRxuG/jKRtT6yWKGa73ybd1HCBnb0InglwMiWbZCakJzFnkbHsjPU9rcazV85wZXEYYi4lSZbpxoYN6B0VUGrDh12lFfiNY4MOqG15Cb44hBlFVnyPMkTYgEF3d1a3rNEHMCH31yy+Mu1BZx477xxgLKLSZWfpAS0WEoIY3TnvbLjB8xGGZ2gTOWI71VVlwd3c+91rBwyQ+SsHnJDPt4R4Jm/k7jtmTxiea7l+j3lgiW+6hMoxwjunxy3F+DuRrqc38ry+/k58/gMCrCBwrQYAAA=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Fc={};Fc.styleTagTransform=kK(),Fc.setAttributes=kB(),Fc.insert=kX().bind(null,"head"),Fc.domAPI=kF(),Fc.insertStyleElement=kH(),kW()(Fl.A,Fc),Fl.A&&Fl.A.locals&&Fl.A.locals;var Fu="_66he9d8";let Fd=(g=btoa(JSON.stringify({command:"npx",args:["-y","@launchdarkly/mcp-server","start","--api-key","YOUR_API_KEY"]})),`cursor://anysphere.cursor-deeplink/mcp/install?name=LaunchDarkly&config=${g}`);function Fp({onDismiss:e}){let[t,r]=(0,A.useState)(()=>(function(){try{let e=localStorage.getItem(wT);if(!e)return!1;return!0===JSON.parse(e)}catch(e){return console.warn("Failed to load MCP alert dismissed state from localStorage:",e),!1}})());return t?null:(0,E.jsx)("div",{className:"_66he9d0",children:(0,E.jsx)(Iu,{status:"neutral",variant:"default",children:(0,E.jsxs)("div",{className:"_66he9d1",children:[(0,E.jsx)(Fa,{className:"_66he9d2"}),(0,E.jsxs)("div",{className:"_66he9d3",children:[(0,E.jsxs)("div",{className:"_66he9d4",children:[(0,E.jsx)("p",{className:"_66he9d5",children:"Supercharge your workflow with MCP"}),(0,E.jsx)("p",{className:"_66he9d6",children:"Our MCP server is the perfect companion to this toolbar - let AI agents create and manage your feature flags directly in your IDE."})]}),(0,E.jsxs)("div",{className:"_66he9d7",children:[(0,E.jsxs)("a",{href:Fd,className:`${Fu}`,title:"Add LaunchDarkly MCP server to Cursor",children:[(0,E.jsx)(Pq,{className:"_66he9db",width:14,height:14}),(0,E.jsx)("span",{children:"Add to Cursor"})]}),(0,E.jsx)("a",{href:"https://launchdarkly.com/docs/home/getting-started/mcp",target:"_blank",rel:"noopener noreferrer",className:Fu,title:"View MCP server documentation",children:"View docs"}),(0,E.jsx)("button",{type:"button",className:`${Fu} _66he9da`,onClick:()=>{r(!0);try{localStorage.setItem(wT,JSON.stringify(!0))}catch(e){console.warn("Failed to save MCP alert dismissed state to localStorage:",e)}e?.()},title:"Dismiss this alert",children:"Done"})]})]})]})})})}var Fh=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Interactive/SelectedElementInfo.module.css.ts.vanilla.css","source":"#H4sIAAAAAAAAA81Wy3LbMAy85ytwTA70SH6kDvs1FAVJjClSA1KR3U7/vUPKlunacZ3EnelJIkECu1gA0szJ7YJWGfx8ACiV67TYcag0br8/QHyyUhFKr6zhIK3uWxMsteg4zLMuHutEWSpTc8jnYePXw2z0mn/UayHkpibbm5JJqy1xeBP0yJjuxjWrSezYS5Y9xdOWSiRGolS947Aewdg3pErbgUOjyhJNgmd+GY/QqjZMeWwdB4nGI4Xt1955Ve2YtMaj8RxcJySyAv2AaM54Q74cAZyT8CSM6wSh8UfcHIw1GNayJxeOdVYdYl9hP9+zj07VmME/Q0I2y1cuZc6bkJfI/7Ykr2OYycEiXq2s8cypH8gntnGrEq3Su8RRsstaa2xM3dM1ZoiGLffU4u0BVd14DqssuywrgMetZ0cDaq06p1wwDY3yyGLYkOiBRJewWX6tEI6mKwlcXdApvleWWshm81SfVQQ0mTmQ9cLjY77OSqxTIZ4/1aljYyYVm0UB9ypOzr99yvmpj/VZpeRJpRxUfR5VvSV/QeQkM33XIUnhYuto9B4p6jzSmq1OwLycgZnft2zFji32QAdLJSsIxYZDfDChdQSpDLJmTzyfLRN84krCQ81yGCv3YqaLeHmSNMyg5/dG0PstfjZH08a+oOA9kzZRkXcovPKGpi6EwyDH5GJ94gKv1u6XmRe6x6tDLvJ1DSmz4ZAlwKp/C+ykju86aev3GvAGIOd982FwUzWwAYuN8qywMfphGUNILdrwN5MaCrtlllQc929IXkmhE1rNhz4gx0q7qOFfh+AUVh2zeR/Nl6f+X7/wGzg52fwHHwCAVlCtzNhFvwHzgk7T5QoAAA=="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),Ff={};Ff.styleTagTransform=kK(),Ff.setAttributes=kB(),Ff.insert=kX().bind(null,"head"),Ff.domAPI=kF(),Ff.insertStyleElement=kH(),kW()(Fh.A,Ff),Fh.A&&Fh.A.locals&&Fh.A.locals;var Fm="scx3r5d",Fg="scx3r5f",Fb="scx3r5e",Fv="scx3r5c",Fy="scx3r57",Fx="scx3r58";function Fw(){let{selectedElementInfo:e}=Wr(),[t,r]=(0,A.useState)(!1);if(!e)return null;let{primaryIdentifier:n,selector:i,classes:o,dataAttributes:s,htmlAttributes:a,textContent:l,dimensions:c}=e,u=o.length>0,d=s.length>0,p=a.length>0;return(0,E.jsxs)("div",{className:"scx3r50","data-testid":"selected-element-info",children:[(0,E.jsxs)("div",{className:"scx3r51",children:[(0,E.jsxs)("button",{className:"scx3r52",onClick:()=>r(!t),children:[(0,E.jsx)("h3",{className:"scx3r5k",children:"Selected"}),(0,E.jsx)("code",{className:"scx3r53",children:n}),(0,E.jsx)("span",{className:`scx3r54 ${t?"scx3r55":""}`,children:(0,E.jsx)(MJ,{})})]}),t&&(0,E.jsxs)("div",{className:"scx3r56",children:[(0,E.jsxs)("div",{className:Fy,children:[(0,E.jsx)("span",{className:Fx,children:"Selector"}),(0,E.jsx)("span",{className:"scx3r59",children:i})]}),d&&(0,E.jsxs)("div",{className:Fy,children:[(0,E.jsx)("span",{className:Fx,children:"Data Attributes"}),(0,E.jsx)("div",{className:Fv,children:s.map(e=>(0,E.jsxs)("div",{className:Fm,children:[(0,E.jsx)("span",{className:Fb,children:e.name}),(0,E.jsxs)("span",{className:Fg,children:['"',e.value,'"']})]},e.name))})]}),p&&(0,E.jsxs)("div",{className:Fy,children:[(0,E.jsx)("span",{className:Fx,children:"Attributes"}),(0,E.jsx)("div",{className:Fv,children:a.map(e=>(0,E.jsxs)("div",{className:Fm,children:[(0,E.jsx)("span",{className:Fb,children:e.name}),(0,E.jsxs)("span",{className:Fg,children:['"',e.value,'"']})]},e.name))})]}),u&&(0,E.jsxs)("div",{className:Fy,children:[(0,E.jsx)("span",{className:Fx,children:"Classes"}),(0,E.jsx)("div",{className:"scx3r5a",children:o.map((e,t)=>(0,E.jsxs)("span",{className:"scx3r5b",children:[".",e]},t))})]}),l&&(0,E.jsxs)("div",{className:Fy,children:[(0,E.jsx)("span",{className:Fx,children:"Text"}),(0,E.jsx)("span",{className:"scx3r5g",children:l})]}),(0,E.jsxs)("div",{className:"scx3r5h",children:[(0,E.jsx)("span",{children:"Size:"}),(0,E.jsxs)("span",{className:"scx3r5i",children:[c.width," \xd7 ",c.height,"px"]})]})]})]}),(0,E.jsxs)("div",{className:"scx3r5j",children:[(0,E.jsx)(Fp,{}),(0,E.jsx)(PY,{title:"Feature Flags",children:(0,E.jsx)(Fs,{workflow:"featureFlag"})}),(0,E.jsx)(PY,{title:"Events & Analytics",children:(0,E.jsx)(Fs,{workflow:"clickTracking",disabled:!0})})]})]})}var Fk=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/Interactive/InteractiveContent.module.css.ts.vanilla.css","source":"Ll8xNHJ5azJmMCB7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwp9Ci5fMTRyeWsyZjEgewogIGRpc3BsYXk6IGZsZXg7CiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGp1c3RpZnktY29udGVudDogY2VudGVyOwogIGdhcDogOHB4OwogIHBhZGRpbmc6IDYwcHggMjBweDsKICBjb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS00MDApOwogIHRleHQtYWxpZ246IGNlbnRlcjsKfQouXzE0cnlrMmYyIHsKICBtYXJnaW46IDA7CiAgZm9udC1zaXplOiAxNHB4OwogIGNvbG9yOiB2YXIoLS1scC1jb2xvci1ncmF5LTQwMCk7CiAgbWF4LXdpZHRoOiAyODBweDsKICBsaW5lLWhlaWdodDogMS41Owp9Ci5fMTRyeWsyZjMgewogIGRpc3BsYXk6IGlubGluZS1mbGV4OwogIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7CiAgd2lkdGg6IDE2cHg7CiAgaGVpZ2h0OiAxNnB4OwogIG1hcmdpbi1yaWdodDogMnB4OwogIG1hcmdpbi1sZWZ0OiAycHg7Cn0="}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),FS={};function FC(){let{selectedElement:e}=Wr();return(0,E.jsx)("div",{className:"_14ryk2f0","data-testid":"interactive-content",children:e?(0,E.jsx)(Fw,{}):(0,E.jsx)("div",{className:"_14ryk2f1",children:(0,E.jsxs)("p",{className:"_14ryk2f2",children:["Click the ",(0,E.jsx)(VU,{className:"_14ryk2f3"})," icon in the navbar to select an element"]})})})}function F_(){let{activeTab:e}=wz(),{activeSubtab:t}=Ws();if("flags"===e)switch(t){case"flags":default:return(0,E.jsx)(PI,{});case"contexts":return(0,E.jsx)(PD,{})}return"monitoring"===e?(0,E.jsx)(PB,{}):"settings"===e?(0,E.jsx)(W6,{}):"interactive"===e?(0,E.jsx)(FC,{}):(0,E.jsx)("div",{children:"No content available"})}FS.styleTagTransform=kK(),FS.setAttributes=kB(),FS.insert=kX().bind(null,"head"),FS.domAPI=kF(),FS.insertStyleElement=kH(),kW()(Fk.A,FS),Fk.A&&Fk.A.locals&&Fk.A.locals;var FT=r('../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{"fileName":"src/core/ui/Toolbar/components/new/ExpandedToolbarContent.module.css.ts.vanilla.css","source":"Lmh6bGJiNDAgewogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktOTUwKTsKICBjb2xvcjogdmFyKC0tbHAtY29sb3ItZ3JheS0yMDApOwogIGhlaWdodDogNjAwcHg7CiAgYm9yZGVyLXJhZGl1czogMTJweDsKICBib3JkZXI6IDFweCBzb2xpZCB2YXIoLS1scC1jb2xvci1ncmF5LTcwMCk7CiAgZGlzcGxheTogZmxleDsKICBmbGV4LWRpcmVjdGlvbjogY29sdW1uOwogIG92ZXJmbG93OiBoaWRkZW47CiAgcG9zaXRpb246IHJlbGF0aXZlOwp9Ci5oemxiYjQxIHsKICBmbGV4OiAxOwogIG1pbi1oZWlnaHQ6IDA7CiAgb3ZlcmZsb3cteTogYXV0bzsKICBzY3JvbGxiYXItY29sb3I6IHZhcigtLWxwLWNvbG9yLWdyYXktNzAwKSB0cmFuc3BhcmVudDsKICBzY3JvbGxiYXItd2lkdGg6IHRoaW47Cn0KLmh6bGJiNDE6Oi13ZWJraXQtc2Nyb2xsYmFyIHsKICB3aWR0aDogNnB4Owp9Ci5oemxiYjQxOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7CiAgYmFja2dyb3VuZDogdmFyKC0tbHAtY29sb3ItZ3JheS03MDApOwogIGJvcmRlci1yYWRpdXM6IDNweDsKfQouaHpsYmI0MTo6LXdlYmtpdC1zY3JvbGxiYXItdHJhY2sgewogIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50Owp9"}!../../node_modules/.pnpm/@vanilla-extract+webpack-plugin@2.3.24_webpack@5.102.1_esbuild@0.27.1_/node_modules/@vanilla-extract/webpack-plugin/extracted.js'),FI={};FI.styleTagTransform=kK(),FI.setAttributes=kB(),FI.insert=kX().bind(null,"head"),FI.domAPI=kF(),FI.insertStyleElement=kH(),kW()(FT.A,FI),FT.A&&FT.A.locals&&FT.A.locals;let FE=(0,A.forwardRef)(({onClose:e,onHeaderMouseDown:t,defaultActiveTab:r,onOpenAuthModal:n},i)=>{let{authenticated:o,authenticating:s}=w$(),{handleClose:a}=w2(),{activeTab:l,setActiveTab:c}=wz();return(0,A.useEffect)(()=>{l&&!ww.includes(l)&&c(r)},[l,r,c]),(0,E.jsx)(E.Fragment,{children:!o||s?(0,E.jsx)(oI.div,{ref:i,className:kq,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:kA.container,tabIndex:-1,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,E.jsx)(Vx,{onClose:a,onLogin:n||a,onMouseDown:t})}):(0,E.jsxs)(oI.div,{ref:i,className:"hzlbb40",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},children:[(0,E.jsx)(VB,{onClose:e,onHeaderMouseDown:t}),(0,E.jsx)(Wn,{defaultActiveTab:r}),(0,E.jsx)(Wj,{}),(0,E.jsx)("div",{className:"hzlbb41",children:(0,E.jsx)(F_,{})})]})})}),FA=(0,A.forwardRef)((e,t)=>(0,E.jsx)(Wo,{children:(0,E.jsx)(Wc,{children:(0,E.jsx)(Wb,{children:(0,E.jsx)(FE,{ref:t,...e})})})}));function FO(){let{isSelecting:e,selectedElement:t,hoveredElement:r,setHoveredElement:n,selectElement:i}=Wr(),[o,s]=(0,A.useState)(null),[a,l]=(0,A.useState)(null);(0,A.useEffect)(()=>{if(r&&e){let e=V8(r);s({top:e.top,left:e.left,width:e.width,height:e.height,label:V6(r)})}else s(null)},[r,e]),(0,A.useEffect)(()=>{if(t){let e=V8(t);l({top:e.top,left:e.left,width:e.width,height:e.height,label:V6(t)});let r=()=>{let e=V8(t);l({top:e.top,left:e.left,width:e.width,height:e.height,label:V6(t)})};return window.addEventListener("scroll",r,!0),window.addEventListener("resize",r),()=>{window.removeEventListener("scroll",r,!0),window.removeEventListener("resize",r)}}l(null)},[t]);let c=(0,A.useCallback)(t=>{if(!e)return;let r=t.target;V4(r)?n(null):n(r)},[e,n]),u=(0,A.useMemo)(()=>{let e,t;return e=0,t=null,function(...r){let n=Date.now(),i=n-e;i>=16?(e=n,c(...r)):(null!==t&&clearTimeout(t),t=setTimeout(()=>{e=Date.now(),c(...r),t=null},16-i))}},[c]),d=(0,A.useCallback)(t=>{if(!e)return;let r=t.target;V4(r)||(t.preventDefault(),t.stopPropagation(),i(r))},[e,i]);(0,A.useEffect)(()=>{if(e)return document.addEventListener("mousemove",u,!0),document.addEventListener("click",d,!0),document.body.style.cursor="crosshair",()=>{document.removeEventListener("mousemove",u,!0),document.removeEventListener("click",d,!0),document.body.style.cursor=""}},[e,u,d]);let[p,h]=(0,A.useState)("");if((0,A.useEffect)(()=>{e?h("Selection mode active. Click an element to select it."):t?h("Element selected."):h("")},[e,t]),!e&&!t)return null;let f=o?{position:"fixed",top:o.top,left:o.left,width:o.width,height:o.height,border:"2px solid #405BFF",borderRadius:"2px",pointerEvents:"none",boxSizing:"border-box",zIndex:jU}:{},m=a?{position:"fixed",top:a.top,left:a.left,width:a.width,height:a.height,border:"2px solid #3DD68C",borderRadius:"2px",pointerEvents:"none",boxSizing:"border-box",zIndex:jU}:{},g={position:"absolute",top:"-24px",left:"0",backgroundColor:"#405BFF",color:"white",padding:"2px 8px",fontSize:"12px",fontFamily:"monospace",borderRadius:"4px",whiteSpace:"nowrap",pointerEvents:"none"},b={...g,backgroundColor:"#3DD68C",color:"#1a1a1a"};return(0,Cp.createPortal)((0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:0},children:p}),e&&(0,E.jsx)("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",pointerEvents:"none",zIndex:jU-1}}),o&&e&&(0,E.jsx)("div",{style:f,children:(0,E.jsx)("div",{style:g,children:o.label})}),a&&!e&&(0,E.jsx)("div",{style:m,children:(0,E.jsx)("div",{style:b,children:a.label})})]}),document.body)}let FL=()=>(0,E.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,E.jsx)("path",{d:"M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"}),(0,E.jsx)("path",{d:"M13 13l6 6"})]}),FR=()=>(0,E.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,E.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,E.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]});function FN(){let{isSelecting:e,exitSelection:t}=Wr();return e?(0,Cp.createPortal)((0,E.jsxs)("div",{style:{position:"fixed",top:"16px",left:"50%",transform:"translateX(-50%)",zIndex:0x7ffeb972,display:"flex",alignItems:"center",gap:"16px",backgroundColor:"rgba(26, 26, 26, 0.95)",borderRadius:"8px",padding:"10px 16px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.3)",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},"data-ld-selection-bar":"true",children:[(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:"white",fontSize:"14px"},children:[(0,E.jsx)("span",{style:{color:"#405BFF",display:"flex",alignItems:"center"},children:(0,E.jsx)(FL,{})}),(0,E.jsx)("span",{children:"Click on any element to select it"})]}),(0,E.jsxs)("button",{style:{display:"flex",alignItems:"center",gap:"4px",background:"none",border:"none",color:"rgba(255, 255, 255, 0.7)",cursor:"pointer",padding:"4px 8px",borderRadius:"4px",fontSize:"14px",transition:"background-color 0.2s, color 0.2s"},onClick:e=>{e.stopPropagation(),e.preventDefault(),t()},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.1)",e.currentTarget.style.color="white"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="rgba(255, 255, 255, 0.7)"},children:[(0,E.jsx)(FR,{}),(0,E.jsx)("span",{children:"Exit"})]})]}),document.body):null}function FZ({children:e}){let{isSelecting:t}=Wr(),{isExpanded:r,handleClose:n,handleCircleClick:i}=w2(),o=(0,A.useRef)(!1);return(0,A.useEffect)(()=>{t&&r&&(o.current=!0,n())},[t,r,n]),(0,A.useEffect)(()=>{!t&&o.current&&(i(),o.current=!1)},[t,i]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(FO,{}),(0,E.jsx)(FN,{}),e]})}function FG({children:e}){return(0,E.jsx)(Wt,{children:(0,E.jsx)(FZ,{children:e})})}function Fj(e){let{isOpen:t,onClose:r}=e,{iframeSrc:n}=wJ(),{authenticated:i,setAuthenticating:o}=w$();(0,A.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t&&r()};if(t)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t,r]);let s=(0,A.useCallback)(async()=>{try{o(!0),await function(e){let{url:t}=e,r=(window.screen.width-800)/2,n=(window.screen.height-600)/2,i=null;try{i=window.open(t,"oauth",`width=800,height=600,left=${r},top=${n},resizable=yes,scrollbars=yes`)}catch(e){console.error("Failed to open popup window. Please allow popups for this site.",e)}if(!i)throw Error("Failed to open popup window. Please allow popups for this site.");return new Promise(e=>{let t;t=setInterval(()=>{i.closed&&(t&&clearInterval(t),e("closed"))},1e3)})}({url:`${n}/toolbar/index.html?originUrl=${window.location.origin}`}),r()}catch(e){console.error("Popup authentication failed:",e)}finally{o(!1)}},[n,r,o]);return(0,A.useEffect)(()=>{t&&!i&&s()},[t,i,s]),null}let FM="ld-toolbar-disabled";function FV(e){let{mode:t,flagOverridePlugin:r,eventInterceptionPlugin:n,baseUrl:o}=e,{searchTerm:s}=wy(),{position:a,handlePositionChange:l}=wP(),c=wg(),{activeTab:u,setActiveTab:d}=wz(),{loading:p}=w$(),{loading:h}=wh(),f=V9(),m=function(e,t,r,n){if(n)return"flags";if("dev-server"===e)return"flag-dev-server";if("sdk"===e){if(t)return"flag-sdk";if(r)return"events"}return"settings"}(t,!!r,!!n,f),[g,b]=(0,A.useState)(!1),v=p||h,y=w2(),x=(0,A.useRef)(null),w=(0,A.useRef)(null),{slideDirection:k,searchIsExpanded:S,isExpanded:C,toolbarRef:_,handleTabChange:T,handleClose:I,handleSearch:O,handleToggleReloadOnFlagChange:L,handleCircleClick:R,reloadOnFlagChangeIsEnabled:N,handleToggleAutoCollapse:Z,isAutoCollapseEnabled:G,setSearchIsExpanded:j,setIsAnimating:M}=y,V=(0,A.useCallback)(()=>{w.current&&w.current.focus()},[w]),W=(0,A.useCallback)(()=>{x.current&&x.current.focus()},[x]),{handleMouseDown:P,isDragging:F}=function({enabled:e,onDragEnd:t,elementRef:r}){let n=(0,A.useRef)(!1),i=(0,A.useRef)({x:0,y:0}),o=(0,A.useRef)({x:0,y:0,time:0}),s=(0,A.useRef)(null);return{handleMouseDown:(0,A.useCallback)(a=>{if(!e||!r.current)return;i.current={x:0,y:0},o.current={x:a.clientX,y:a.clientY,time:Date.now()};let l={x:a.clientX,y:a.clientY},c=r.current.getBoundingClientRect(),u={x:c.left,y:c.top},d=e=>{if(!r.current)return;let t=Date.now(),s=t-o.current.time;s>0&&(i.current={x:(e.clientX-o.current.x)/s,y:(e.clientY-o.current.y)/s}),o.current={x:e.clientX,y:e.clientY,time:t};let a={x:e.clientX-l.x,y:e.clientY-l.y};if(Math.sqrt(a.x*a.x+a.y*a.y)>3&&!n.current&&(n.current=!0,document.addEventListener("selectstart",p)),n.current){let e={x:u.x+a.x,y:u.y+a.y};r.current.style.left=`${e.x}px`,r.current.style.top=`${e.y}px`}},p=e=>e.preventDefault(),h=()=>{r.current&&(r.current.style.left="",r.current.style.top="",r.current.style.right="",r.current.style.bottom="",r.current.style.transform="",r.current.style.transformOrigin="",r.current.style.transition="",r.current.style.zIndex="")},f=e=>{document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",f),document.removeEventListener("selectstart",p);let o=e.clientX,a=e.clientY;if(n.current&&r.current){let e=r.current.getBoundingClientRect();o=e.left+e.width/2,a=e.top+e.height/2;let n=o+200*i.current.x,l=a+200*i.current.y,c=Math.max(e.width/2,Math.min(window.innerWidth-e.width/2,n)),u=Math.max(e.height/2,Math.min(window.innerHeight-e.height/2,l)),d=window.innerWidth,p=window.innerHeight,f=u<p/2,m=c<d/2?20:d-e.width-20,g=f?20:p-e.height-20;t(c,u),r.current.style.transition="left 0.4s cubic-bezier(0.16, 1, 0.3, 1), top 0.4s cubic-bezier(0.16, 1, 0.3, 1)",r.current.offsetHeight,r.current.style.left=`${m}px`,r.current.style.top=`${g}px`;let b=e=>{("left"===e.propertyName||"top"===e.propertyName)&&(r.current?.removeEventListener("transitionend",b),h())};r.current.addEventListener("transitionend",b),s.current={stop:()=>{r.current?.removeEventListener("transitionend",b)}}}else h();setTimeout(()=>{n.current=!1},50)};document.addEventListener("mousemove",d),document.addEventListener("mouseup",f)},[e,t,r]),isDragging:(0,A.useCallback)(()=>n.current,[])}}({enabled:!0,onDragEnd:(0,A.useCallback)((e,t)=>{let r=window.innerWidth,n=window.innerHeight,i=e<r/2,o=t<n/2?i?"top-left":"top-right":i?"bottom-left":"bottom-right";o!==a&&c.trackPositionChange(a,o,"drag"),l(o)},[l,a,c]),elementRef:_}),{containerAnimations:D,animationConfig:X,handleAnimationStart:z,handleAnimationComplete:B}=function(e){let{isExpanded:t,setIsAnimating:r,onExpandComplete:n,onCollapseComplete:i}=e,o=(0,A.useRef)(t),s=(0,A.useMemo)(()=>({width:t?kN:kO,height:t?"fit-content":kL,borderRadius:t?kZ:kR,scale:t?kG:kj,boxShadow:t?"0 12px 48px rgba(0, 0, 0, 0.5)":"0 4px 16px rgba(0, 0, 0, 0.3)"}),[t]),a=(0,A.useMemo)(()=>{let e=o.current;return(o.current=t,!e&&t)?kA.containerExpand:e&&!t?kA.containerCollapse:kA.containerExpand},[t]);return{containerAnimations:s,animationConfig:a,handleAnimationStart:(0,A.useCallback)(()=>{r(!0)},[r]),handleAnimationComplete:(0,A.useCallback)(()=>{r(!1),t&&n?n():!t&&i&&i()},[r,t,n,i])}}({isExpanded:C,setIsAnimating:M,onExpandComplete:V,onCollapseComplete:W});(0,A.useEffect)(()=>{u||d(m)},[u,d,m]);let{client:U}=wh();(0,A.useEffect)(()=>{!U||(V3()&&C?(i.start(),v6.t.start({forceNew:!1,silent:!1})):C||(i.stop(),v6.t.stop()))},[U,C]);let H=(0,A.useCallback)(()=>{F()||R()},[R,F]);return(0,E.jsxs)(oI.div,{ref:_,className:`f9csi00 ${{"bottom-left":"f9csi02","bottom-right":"f9csi01","top-left":"f9csi04","top-right":"f9csi03"}[a]} ${C?"f9csi06":"f9csi05"}`,initial:!1,animate:D,transition:X,onAnimationStart:z,onAnimationComplete:B,onKeyDown:e=>{C||("Enter"===e.key||" "===e.key)&&(e.preventDefault(),H())},"data-testid":"launchdarkly-toolbar","data-theme":"dark",role:C?"toolbar":"button","aria-label":C?"LaunchDarkly toolbar":"Open LaunchDarkly toolbar",tabIndex:C?-1:0,children:[(0,E.jsx)(oG,{children:!C&&(0,E.jsx)(k$,{ref:x,onClick:H,onMouseDown:P})}),(0,E.jsxs)(oG,{children:[C&&v&&(0,E.jsx)(k5,{onMouseDown:P}),C&&!v&&!f&&(0,E.jsx)(VD,{ref:w,activeTab:u,slideDirection:k,searchTerm:s,searchIsExpanded:S,onSearch:O,onClose:I,onToggleAutoCollapse:Z,isAutoCollapseEnabled:G,onTabChange:T,setSearchIsExpanded:j,flagOverridePlugin:r,eventInterceptionPlugin:n,mode:t,baseUrl:o,defaultActiveTab:m,onHeaderMouseDown:P,reloadOnFlagChangeIsEnabled:N,onToggleReloadOnFlagChange:L,onOpenAuthModal:()=>b(!0)}),C&&!v&&f&&(0,E.jsx)(FA,{onClose:I,onHeaderMouseDown:P,defaultActiveTab:m,onOpenAuthModal:()=>b(!0)})]}),(0,E.jsx)(Fj,{isOpen:g,onClose:()=>b(!1)})]})}function FW(e){let{baseUrl:t="https://app.launchdarkly.com",authUrl:r="https://integrations.launchdarkly.com",projectKey:n,position:i,devServerUrl:o,pollIntervalInMs:s=5e3,flagOverridePlugin:a,eventInterceptionPlugin:l,domId:c,clientSideId:u}=e,d=(0,A.useMemo)(()=>({clientSideId:"6918c5d2958a980a8fdcce45",baseUrl:"https://app.ld.catamorphic.com",streamUrl:"https://stream.ld.catamorphic.com",eventsUrl:"https://events.ld.catamorphic.com",backendUrl:void 0}),[]);if(!function(){let[e,t]=(0,A.useState)(()=>"undefined"==typeof window||"true"===localStorage.getItem(FM));return(0,A.useEffect)(()=>{if("undefined"==typeof window)return;let e={disable:()=>{localStorage.setItem(FM,"true"),t(!0),console.log("✅ LaunchDarkly toolbar disabled.")},enable:()=>{localStorage.removeItem(FM),t(!1),console.log("✅ LaunchDarkly toolbar enabled.")},status:()=>{let e="true"===localStorage.getItem(FM);return console.log(`LaunchDarkly toolbar is currently: ${e?"❌ DISABLED":"✅ ENABLED"}`),!e},toggle:()=>{"true"===localStorage.getItem(FM)?e.enable():e.disable()}};return window.ldToolbar=e,console.log("\uD83D\uDD27 LaunchDarkly toolbar controls available:\n window.ldToolbar.enable() - Enable toolbar\n window.ldToolbar.disable() - Disable toolbar\n window.ldToolbar.toggle() - Toggle toolbar\n window.ldToolbar.status() - Check current status"),()=>{delete window.ldToolbar}},[]),(0,A.useEffect)(()=>{if("undefined"==typeof window)return;let e=e=>{e.key===FM&&t("true"===e.newValue)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[]),!e}())return null;let p=wk(o);return(0,E.jsx)(w5,{mode:p,baseUrl:d.baseUrl,clientSideId:d.clientSideId,streamUrl:d.streamUrl,eventsUrl:d.eventsUrl,backendUrl:d.backendUrl,children:(0,E.jsx)(w6,{initialPosition:i,domId:c,devServerUrl:o,baseUrl:t,flagOverridePlugin:a,eventInterceptionPlugin:l,children:(0,E.jsx)(kv,{authUrl:r,clientSideId:u,providedProjectKey:n,children:(0,E.jsx)(kS,{config:{projectKey:n,devServerUrl:o,pollIntervalInMs:s},children:(0,E.jsx)(k_,{children:(0,E.jsx)(FG,{children:(0,E.jsx)(FV,{mode:p,baseUrl:t,flagOverridePlugin:a,eventInterceptionPlugin:l})})})})})})})}},"./src/types/constants.ts"(e,t,r){r.d(t,{D:()=>n});let n="ld-toolbar"},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/api.js"(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&s[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),r&&(u[2]&&(u[1]="@media ".concat(u[2]," {").concat(u[1],"}")),u[2]=r),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js"(e){e.exports=function(e){return e[1]}},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js"(e){var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},o=[],s=0;s<e.length;s++){var a=e[s],l=n.base?a[0]+n.base:a[0],c=i[l]||0,u="".concat(l," ").concat(c);i[l]=c+1;var d=r(u),p={css:a[1],media:a[2],sourceMap:a[3],supports:a[4],layer:a[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var h=function(e,t){var r=t.domAPI(t);return r.update(e),function(t){t?(t.css!==e.css||t.media!==e.media||t.sourceMap!==e.sourceMap||t.supports!==e.supports||t.layer!==e.layer)&&r.update(e=t):r.remove()}}(p,n);n.byIndex=s,t.splice(s,0,{identifier:u,updater:h,references:1})}o.push(u)}return o}e.exports=function(e,i){var o=n(e=e||[],i=i||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var a=r(o[s]);t[a].references--}for(var l=n(e,i),c=0;c<o.length;c++){var u=r(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js"(e){var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js"(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js"(e,t,r){e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js"(e){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){var n,i,o;n="",r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {")),(i=void 0!==r.layer)&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,i&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}"),(o=r.sourceMap)&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(n,t,e.options)},remove:function(){var e;null===(e=t).parentNode||e.parentNode.removeChild(e)}}}},"../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js"(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},"../../node_modules/.pnpm/@launchdarkly+session-replay@0.4.9/node_modules/@launchdarkly/session-replay/dist/LDObserve-Cc16WfBI.js"(e,t,r){let n;r.r(t),r.d(t,{LDObserve:()=>n});var i=r("../../node_modules/.pnpm/@launchdarkly+session-replay@0.4.9/node_modules/@launchdarkly/session-replay/dist/index-CxTr8FHJ.js");class o extends i.x{start(){return this._sdk.start()}stop(){return this._sdk.stop()}recordGauge(e){return this._bufferCall("recordGauge",[e])}recordCount(e){return this._bufferCall("recordCount",[e])}recordIncr(e){return this._bufferCall("recordIncr",[e])}recordHistogram(e){return this._bufferCall("recordHistogram",[e])}recordUpDownCounter(e){return this._bufferCall("recordUpDownCounter",[e])}startSpan(e,t,r,n){return this._bufferCall("startSpan",[e,t,r,n])}startManualSpan(e,t,r,n){return this._bufferCall("startManualSpan",[e,t,r,n])}register(e,t){return this._bufferCall("register",[e,t])}recordLog(e,t,r){return this._bufferCall("recordLog",[e,t,r])}recordError(e,t,r,n,i){return this._bufferCall("recordError",[e,t,r,n,i])}}"u">typeof globalThis?globalThis.LDObserve?n=globalThis.LDObserve:(n=new o,globalThis.LDObserve=n):n=new o},"../../node_modules/.pnpm/@launchdarkly+session-replay@0.4.9/node_modules/@launchdarkly/session-replay/dist/index-CxTr8FHJ.js"(e,t,r){let n,i,o,s,a,l,c,u,d,p,h,f,m,g,b,v;r.d(t,{E:()=>l_,t:()=>n,x:()=>E});var y,x,w=Object.defineProperty,k=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?w(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r};let S=Object.create(null),C=(e,t,...r)=>{let n=`[@launchdarkly plugins]: (${e}): `;console[t].apply(console,[n,...r]),T(n,...r)},_=(e,t,r,...n)=>{S[`${e}-${t}`]||(S[`${e}-${t}`]=!0,C(e,r,...n))},T=(e,...t)=>{let n,i;return n=void 0,i=function*(){try{let{LDObserve:n}=yield Promise.resolve().then(r.bind(r,"../../node_modules/.pnpm/@launchdarkly+session-replay@0.4.9/node_modules/@launchdarkly/session-replay/dist/LDObserve-Cc16WfBI.js"));n.recordLog(`${e}${t}`,"warn")}catch{}},new Promise((e,t)=>{var r=e=>{try{s(i.next(e))}catch(e){t(e)}},o=e=>{try{s(i.throw(e))}catch(e){t(e)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,o);s((i=i.apply(n,null)).next())})};class I{constructor(e,t){k(this,"debug"),k(this,"name"),this.debug=e,this.name=t}log(...e){if(this.debug){let t=`[${Date.now()}]`;this.name&&(t+=` - ${this.name}`),console.log.apply(console,[t,...e])}}warn(...e){let t=`[${Date.now()}]`;this.name&&(t+=` - ${this.name}`),console.warn.apply(console,[t,...e])}}let E=class{constructor(){k(this,"_sdk"),k(this,"_isLoaded",!1),k(this,"_callBuffer",[]),k(this,"_capacity",1e5),k(this,"_droppedEvents",0),k(this,"_exceededCapacity",!1),k(this,"_logger",new I)}_bufferCall(e,t){if(!this._isLoaded)return void this._enqueue({method:e,args:t});try{return this._sdk[e](...t)}catch(t){C(`Error executing buffered call to ${e}:`,"error",t)}}_enqueue(e){this._callBuffer.length<this._capacity?(this._callBuffer.push(e),this._exceededCapacity=!1):(this._exceededCapacity||(this._exceededCapacity=!0,C("Exceeded event queue capacity. Increase capacity to avoid dropping events.","warn")),this._droppedEvents+=1)}load(e){for(let{method:t,args:r}of(this._sdk=e,this._isLoaded=!0,this._callBuffer))try{this._sdk[t](...r)}catch(e){C(`Error executing buffered call to ${t}:`,"error",e)}this._callBuffer=[]}};var A=Object.defineProperty,O=Object.defineProperties,L=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,G=(e,t,r)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,j=(e,t)=>{for(var r in t||(t={}))N.call(t,r)&&G(e,r,t[r]);if(R)for(var r of R(t))Z.call(t,r)&&G(e,r,t[r]);return e},M=(e,t)=>{var r={};for(var n in e)N.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&R)for(var n of R(e))0>t.indexOf(n)&&Z.call(e,n)&&(r[n]=e[n]);return r},V=(e,t,r)=>G(e,"symbol"!=typeof t?t+"":t,r),W=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())});function P(e,t){throw Error(t)}let F=/\r\n|[\n\r]/g;function D(e,t){let r=0,n=1;for(let i of e.body.matchAll(F)){if("number"==typeof i.index||function(e,t){throw Error("Unexpected invariant triggered.")}(),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function X(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?r:0,l=t.column+a,c=`${e.name}:${s}:${l}
|
|
656
656
|
`,u=n.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<d.length;e+=80)t.push(d.slice(e,e+80));return c+z([[`${s} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return c+z([[`${s-1} |`,u[i-1]],[`${s} |`,d],["|","^".padStart(l)],[`${s+1} |`,u[i+1]]])}function z(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join(`
|
|
657
657
|
`)}let B=class e extends Error{constructor(t,...r){var n,i,o;const{nodes:s,source:a,positions:l,path:c,originalError:u,extensions:d}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(r);super(t),this.name="GraphQLError",this.path=c??void 0,this.originalError=u??void 0,this.nodes=U(Array.isArray(s)?s:s?[s]:void 0);const p=U(null==(n=this.nodes)?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=a??(null==p||null==(i=p[0])?void 0:i.source),this.positions=l??p?.map(e=>e.start),this.locations=l&&a?l.map(e=>D(a,e)):p?.map(e=>D(e.source,e.start));const h=!function(e){return"object"==typeof e&&null!==e}(u?.extensions)?void 0:u?.extensions;this.extensions=null!=(o=d??h)?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let r of this.nodes){var t;r.loc&&(e+=`
|
|
658
658
|
|
|
@@ -995,4 +995,4 @@ Org: ${this.organizationID}
|
|
|
995
995
|
SessionSecureID: ${this.sessionData.sessionSecureID}`);let i=new Date().getTime(),o=tk(az)||"";if(e){let r={session_secure_id:this.sessionData.sessionSecureID,payload_id:i.toString(),events:{events:t},messages:eQ({messages:[]}),resources:JSON.stringify({resources:[]}),web_socket_events:JSON.stringify({webSocketEvents:[]}),errors:[],is_beacon:!1,has_session_unloaded:this.hasSessionUnloaded,highlight_logs:o||void 0},{compressedBase64:n}=yield function(e){return rr(this,null,function*(){var t,r,n,i,o,s;let a=function(e,t){var r;if(lv)return lv.encode(e);for(var n=e.length,i=new aB(e.length+(e.length>>1)),o=0,s=function(e){i[o++]=e},r=0;r<n;++r){if(o+5>i.length){var a=new aB(o+8+(n-r<<1));a.set(i),i=a}var l=e.charCodeAt(r);l<128?s(l):(l<2048?s(192|l>>6):(l>55295&&l<57344?(s(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++r))>>18),s(128|l>>12&63)):s(224|l>>12),s(128|l>>6&63)),s(128|63&l))}return lt(i,0,o)}(JSON.stringify(e)),l=(t||(t={}),r=lf(),n=a.length,r.p(a),s=(o=lm(a,t,10+((i=t).filename?i.filename.length+1:0),8)).length,lb(o,t),lg(o,s-8,r.d()),lg(o,s-4,n),o),c=yield new Promise(e=>{let t=new FileReader;t.onload=()=>e(t.result),t.readAsDataURL(new Blob([new Uint8Array(l)]))});return{compressedBase64:c.slice(c.indexOf(",")+1),compressedSize:l.length,bufferLength:a.length}})}(r);yield e({session_secure_id:this.sessionData.sessionSecureID,payload_id:i.toString(),data:n})}else this._worker.postMessage({message:{type:lS.AsyncEvents,id:i,events:t,messages:[],errors:[],resourcesString:JSON.stringify({resources:[]}),webSocketEventsString:JSON.stringify({webSocketEvents:[]}),hasSessionUnloaded:this.hasSessionUnloaded,highlightLogs:o}});tO(this.sessionData),this.events=this.events.slice(t.length),(e=>{var t;let r;if(!e)return;let n=tk(az)||"";n&&(n.startsWith(e)?tS(az,n=n.slice(e.length)):(t="Unable to clear logs "+e.replace(`
|
|
996
996
|
`," ")+" from "+n.replace(`
|
|
997
997
|
`," "),r=tk(az)||"",tS(az,r=r+"["+new Date().getTime()+"] "+t+`
|
|
998
|
-
`)))})(o)})}takeFullSnapshot(){this._recordStop?(this.logger.log("taking full snapshot",{bytesSinceSnapshot:this._eventBytesSinceSnapshot,lastSnapshotTime:this._lastSnapshotTime}),aA.takeFullSnapshot(),this._eventBytesSinceSnapshot=0,this._lastSnapshotTime=new Date().getTime()):this.logger.log("skipping full snapshot as rrweb is not running")}register(e,t){this._integrations.push(new tB(e,t))}getHooks(e){return this._integrations.flatMap(t=>{var r,n;return null!=(n=null==(r=t.getHooks)?void 0:r.call(t,e))?n:[]})}getRecordingState(){var e;return null!=(e=this==null?void 0:this.state)?e:"NotRecording"}getSession(){let e,t=this.sessionData.sessionSecureID,r=tA(t);if(!r)return null;let n=`${this.getFrontendUrl()}/sessions/${t}`;if(!n||!r?.sessionStartTime)return null;let i=new Date().getTime();try{e=new URL(n)}catch(e){return C("identify","warn",`failed to construct session url from ${n}`,e),null}let o=new URL(e),s=(i-this._recordingStartTime)/1e3;return o.searchParams.set("ts",s.toString()),{url:e.toString(),urlWithTimestamp:o.toString(),sessionSecureID:t}}getFrontendUrl(){var e,t;let r=this._backendUrl.match(tu);if(r&&null!=(e=r?.groups)&&e.domain){let e=null!=(t=r.groups.domain)?t:"";return`https://${tc[e]}/projects/default`}return"https://app.launchdarkly.com"}}class l_ extends t${constructor(e){super(e),rt(this,"record"),rt(this,"options"),this.options=e}initialize(e,t){var r,i,o,s,a,l,c,u,d;try{if(typeof window>"u"||typeof document>"u")return void console.warn("@launchdarkly/session-replay is not initializing because it is not supported in this environment.");if(typeof Worker>"u")return void console.warn("@launchdarkly/session-replay is not initializing because Worker is not supported.");if(!e)return void console.warn("@launchdarkly/session-replay is not initializing because the SDK credential is undefined.");this.configureSession(e,t);let p=t8(t7({},t),{organizationID:e,firstloadVersion:"9.23.0",environment:t?.environment||"production",appVersion:t?.version,sessionSecureID:this.sessionSecureID,privacySetting:null!=(r=t?.privacySetting)?r:"strict"});this.record=new lC(p),null!=t&&t.manualStart||this.record.start(),n.load(this.record),!(null!=(o=null==(i=t?.integrations)?void 0:i.mixpanel)&&o.disabled)&&null!=(a=null==(s=t?.integrations)?void 0:s.mixpanel)&&a.projectToken&&(({projectToken:e})=>{if(window.mixpanel)return;document;var t,r,n=window.mixpanel||[];n.__SV||(window.mixpanel=n,n._i=[],n.init=function(e,i,o){var s=n;for("u">typeof o?s=n[o]=[]:o="mixpanel",s.people=s.people||[],s.toString=function(e){var t="mixpanel";return"mixpanel"!==o&&(t+="."+o),e||(t+=" (stub)"),t},s.people.toString=function(){return s.toString(1)+".people (stub)"},t="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" "),r=0;r<t.length;r++)!function(e,t){var r=t.split(".");2==r.length&&(e=e[r[0]],t=r[1]),e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}}(s,t[r]);var a="set set_once union unset remove delete".split(" ");s.get_group=function(){for(var e={},t=["get_group"].concat(Array.prototype.slice.call(arguments,0)),r=0;r<a.length;r++)!function(r){e[r]=function(){call2_args=arguments,call2=[r].concat(Array.prototype.slice.call(call2_args,0)),s.push([t,call2])}}(a[r]);return e},n._i.push([e,i,o])},n.__SV=1.2);let i=document.createElement("script");i.src="https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js",document.head.appendChild(i),i.addEventListener("load",()=>{var t;null==(t=window.mixpanel)||t.init(e)})})(t.integrations.mixpanel),!(null!=(c=null==(l=t?.integrations)?void 0:l.amplitude)&&c.disabled)&&null!=(d=null==(u=t?.integrations)?void 0:u.amplitude)&&d.apiKey&&(({apiKey:e})=>{!function(t,r){var n=t.amplitude||{_q:[],_iq:{}},i=r.createElement("script");i.type="text/javascript",i.integrity="sha384-+EO59vL/X7v6VE2s6/F4HxfHlK0nDUVWKVg8K9oUlvffAeeaShVBmbORTC2D3UF+",i.crossOrigin="anonymous",i.async=!0,i.src="https://cdn.amplitude.com/libs/amplitude-8.17.0-min.gz.js",i.onload=function(){t.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK"),amplitude.getInstance().init(e)};var o=r.getElementsByTagName("script")[0];function s(e,t){e.prototype[t]=function(){return this._q.push([t].concat(Array.prototype.slice.call(arguments,0))),this}}o.parentNode.insertBefore(i,o);for(var a=function(){return this._q=[],this},l=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove"],c=0;c<l.length;c++)s(a,l[c]);n.Identify=a;for(var u=function(){return this._q=[],this},d=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"],p=0;p<d.length;p++)s(u,d[p]);n.Revenue=u;var h=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","enableTracking","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"];function f(e){for(var t=0;t<h.length;t++)!function(t){e[t]=function(){e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}(h[t])}f(n),n.getInstance=function(e){return e=(!e||0===e.length?"$default_instance":e).toLowerCase(),Object.prototype.hasOwnProperty.call(n._iq,e)||(n._iq[e]={_q:[]},f(n._iq[e])),n._iq[e]},t.amplitude=n}(window,document)})(t.integrations.amplitude)}catch(e){C("Error initializing @launchdarkly/session-replay SDK","error",e)}}getMetadata(){return{name:"@launchdarkly/session-replay"}}register(e,t){var r;null==(r=this.record)||r.register(e,t)}getHooks(e){var t,r,n,i;let o=t7(t7({"telemetry.sdk.name":e.sdk.name,"telemetry.sdk.version":e.sdk.version,[tj]:e.clientSideId,[tM]:"LaunchDarkly"},null!=(t=e.application)&&t.id?{[tV]:e.application.id}:{}),null!=(r=e.application)&&r.version?{[tW]:e.application.version}:{});return this.initialize(null!=(i=null!=(n=e.sdkKey)?n:e.mobileKey)?i:e.clientSideId,this.options),[{getMetadata:()=>({name:"@launchdarkly/session-replay/hooks"}),afterIdentify:(t,r,n)=>{var i,s,a,l,c,u,d,p,h;for(let o of null!=(a=null==(s=null==(i=this.record)?void 0:i.getHooks)?void 0:s.call(i,e))?a:[])null==(l=o.afterIdentify)||l.call(o,t,r,n);if("completed"===n.status){let e=t8(t7({},tD(h=t.context)?Object.keys(h).sort().filter(e=>"kind"!==e).map(e=>({[e]:h[e].key})).reduce((e,t)=>j(j({},e),t),{}):"kind"in h?{[h.kind]:h.key}:{user:h.key}),{key:null!=(d=null==(u=null==(c=this.options)?void 0:c.contextFriendlyName)?void 0:u.call(c,t.context))?d:tX(t.context),canonicalKey:tX(t.context)});null==(p=this.record)||p.identify(e.key,t7(t7({},o),e),"LaunchDarkly")}return r},afterEvaluation:(t,r,n)=>{var i,o,s,a;for(let l of null!=(s=null==(o=null==(i=this.record)?void 0:i.getHooks)?void 0:o.call(i,e))?s:[])null==(a=l.afterEvaluation)||a.call(l,t,r,n);return r},afterTrack:t=>{var r,n,i,o,s;for(let s of null!=(i=null==(n=null==(r=this.record)?void 0:r.getHooks)?void 0:n.call(r,e))?i:[])null==(o=s.afterTrack)||o.call(s,t);null==(s=this.record)||s.track(t.key,{data:t.data,value:t.metricValue})}}]}}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0,(()=>{var e=r("../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js"),t=r("../../node_modules/.pnpm/react@19.2.3/node_modules/react/index.js"),n=r("../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/client.js"),i=r("./src/types/constants.ts");class o{debugOverride;config;ldClient=null;constructor(e={}){this.config={storageNamespace:e.storageNamespace??"ld-flag-override"}}getMetadata(){return{name:"FlagOverridePlugin"}}getHooks(e){return[]}register(e){this.ldClient=e}registerDebug(e){this.debugOverride=e,this.loadExistingOverrides()}loadExistingOverrides(){if(!this.debugOverride)return;let e=this.getStorage();if(e)try{for(let t=0;t<e.length;t++){let r=e.key(t);if(!r?.startsWith(this.config.storageNamespace+":"))continue;let n=e.getItem(r);if(n)try{let e=JSON.parse(n),t=r.replace(this.config.storageNamespace+":","");this.debugOverride.setOverride(t,e)}catch{console.warn("flagOverridePlugin: Invalid stored value for",r),e.removeItem(r)}}}catch(e){console.error("flagOverridePlugin: Error loading existing overrides:",e)}}setOverride(e,t){if(!this.debugOverride)return void console.warn("flagOverridePlugin: Debug interface not available");if(!e||"string"!=typeof e)return void console.error("flagOverridePlugin: Invalid flag key:",e);if(void 0===t)return void console.error("flagOverridePlugin: Cannot set undefined value for flag override");try{this.persistOverride(e,t),this.debugOverride.setOverride(e,t)}catch(e){console.error("flagOverridePlugin: Failed to set override:",e)}}removeOverride(e){if(!this.debugOverride)return void console.warn("flagOverridePlugin: Debug interface not available");if(!e||"string"!=typeof e)return void console.error("flagOverridePlugin: Invalid flag key:",e);try{this.removePersistedOverride(e),this.debugOverride.removeOverride(e)}catch(e){console.error("flagOverridePlugin: Failed to remove override:",e)}}clearAllOverrides(){if(!this.debugOverride)return void console.warn("flagOverridePlugin: Debug interface not available");try{this.clearPersistedOverrides(),this.debugOverride.clearAllOverrides()}catch(e){console.error("flagOverridePlugin: Failed to clear overrides:",e)}}getAllOverrides(){if(!this.debugOverride)return console.warn("flagOverridePlugin: Debug interface not available"),{};try{return this.debugOverride.getAllOverrides()}catch(e){return console.error("flagOverridePlugin: Failed to get overrides:",e),{}}}getClient(){return this.ldClient}getStorage(){return"undefined"==typeof window?null:window.localStorage}persistOverride(e,t){let r=this.getStorage();if(r)try{let n=`${this.config.storageNamespace}:${e}`;r.setItem(n,JSON.stringify(t))}catch(e){console.error("flagOverridePlugin: Failed to persist override:",e)}}removePersistedOverride(e){let t=this.getStorage();if(t)try{let r=`${this.config.storageNamespace}:${e}`;t.removeItem(r)}catch(e){console.error("flagOverridePlugin: Failed to remove persisted override:",e)}}clearPersistedOverrides(){let e=this.getStorage();if(e)try{let t=[],r=this.config.storageNamespace+":";for(let n=0;n<e.length;n++){let i=e.key(n);i?.startsWith(r)&&t.push(i)}t.forEach(t=>e.removeItem(t))}catch(e){console.error("flagOverridePlugin: Failed to clear persisted overrides:",e)}}}let s=["top-left","top-right","bottom-left","bottom-right"];var a=r("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js"),l=r.n(a),c=r("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js"),u=r.n(c),d=r("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js"),p=r.n(d),h=r("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js"),f=r.n(h),m=r("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js"),g=r.n(m),b=r("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js"),v=r.n(b),y=r("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./src/core/globals.css"),x={};x.styleTagTransform=v(),x.setAttributes=f(),x.insert=p().bind(null,"head"),x.domAPI=u(),x.insertStyleElement=g(),l()(y.A,x),y.A&&y.A.locals&&y.A.locals,"undefined"!=typeof window&&(window.LaunchDarklyToolbar={init:function(a){return function(o,s){let a=[];if(null!=document.getElementById(i.D))return()=>{a.forEach(e=>e())};let{host:l,reactMount:c,observer:u}=function(){let e=document.createElement("div");e.id=i.D,e.style.inset="0",e.style.width="0px",e.style.height="0px",e.style.position="absolute",e.style.zIndex="2147400100";let t=e.attachShadow({mode:"open"});if(!t)throw Error("[LaunchDarkly Toolbar] Failed to create shadow root");let r=document.createElement("div"),n=document.head?new Set(Array.from(document.head.querySelectorAll("style")).map(e=>e.textContent||"")):new Set;if(document.head){let e=Array.from(document.head.querySelectorAll("style")).filter(e=>e.textContent?.includes("--lp-")||e.textContent?.includes("_")).map(e=>e.textContent||"").join("\n");if(e){let r=document.createElement("style");r.textContent=e,t.appendChild(r)}}r.dataset.name="react-mount",r.id="ld-toolbar-react-mount",t.appendChild(r);let o=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{if(e.nodeType===Node.ELEMENT_NODE&&"STYLE"===e.tagName){let i=e.textContent||"";if(!n.has(i)&&(i.includes("--lp-")||i.includes("_"))){let n=document.createElement("style");n.textContent=i,t.insertBefore(n,r);try{e.remove()}catch(e){console.warn("[LaunchDarkly Toolbar] Failed to remove style element from document.head:",e)}}}})})});return document.head&&o.observe(document.head,{childList:!0}),setTimeout(()=>o.disconnect(),500),{host:e,reactMount:r,observer:o}}(),d=(0,n.createRoot)(c);return Promise.resolve().then(r.bind(r,"./src/core/ui/Toolbar/LaunchDarklyToolbar.tsx")).then(n=>{let{LaunchDarklyToolbar:o}=n;Promise.resolve().then(r.bind(r,"./src/core/context/ReactMountContext.tsx")).then(r=>{let n=r.default;d.render((0,e.jsx)(t.StrictMode,{children:(0,e.jsx)(n.Provider,{value:c,children:(0,e.jsx)(o,{domId:i.D,baseUrl:s.baseUrl,authUrl:s.authUrl,devServerUrl:s.devServerUrl,projectKey:s.projectKey,flagOverridePlugin:s.flagOverridePlugin,eventInterceptionPlugin:s.eventInterceptionPlugin,pollIntervalInMs:s.pollIntervalInMs,position:s.position})})}))})}),a.push(()=>{u.disconnect(),setTimeout(()=>d.unmount(),0)}),o.appendChild(l),a.push(()=>l.remove()),()=>{a.forEach(e=>e())}}(document.body,{...a,baseUrl:a.baseUrl??"https://app.launchdarkly.com",devServerUrl:a.devServerUrl??void 0,projectKey:a.projectKey??void 0,flagOverridePlugin:a.flagOverridePlugin??new o,eventInterceptionPlugin:a.eventInterceptionPlugin??void 0,pollIntervalInMs:a.pollIntervalInMs??void 0,position:a.position??s["3"],clientSideId:a.clientSideId??void 0})}})})()})();
|
|
998
|
+
`)))})(o)})}takeFullSnapshot(){this._recordStop?(this.logger.log("taking full snapshot",{bytesSinceSnapshot:this._eventBytesSinceSnapshot,lastSnapshotTime:this._lastSnapshotTime}),aA.takeFullSnapshot(),this._eventBytesSinceSnapshot=0,this._lastSnapshotTime=new Date().getTime()):this.logger.log("skipping full snapshot as rrweb is not running")}register(e,t){this._integrations.push(new tB(e,t))}getHooks(e){return this._integrations.flatMap(t=>{var r,n;return null!=(n=null==(r=t.getHooks)?void 0:r.call(t,e))?n:[]})}getRecordingState(){var e;return null!=(e=this==null?void 0:this.state)?e:"NotRecording"}getSession(){let e,t=this.sessionData.sessionSecureID,r=tA(t);if(!r)return null;let n=`${this.getFrontendUrl()}/sessions/${t}`;if(!n||!r?.sessionStartTime)return null;let i=new Date().getTime();try{e=new URL(n)}catch(e){return C("identify","warn",`failed to construct session url from ${n}`,e),null}let o=new URL(e),s=(i-this._recordingStartTime)/1e3;return o.searchParams.set("ts",s.toString()),{url:e.toString(),urlWithTimestamp:o.toString(),sessionSecureID:t}}getFrontendUrl(){var e,t;let r=this._backendUrl.match(tu);if(r&&null!=(e=r?.groups)&&e.domain){let e=null!=(t=r.groups.domain)?t:"";return`https://${tc[e]}/projects/default`}return"https://app.launchdarkly.com"}}class l_ extends t${constructor(e){super(e),rt(this,"record"),rt(this,"options"),this.options=e}initialize(e,t){var r,i,o,s,a,l,c,u,d;try{if(typeof window>"u"||typeof document>"u")return void console.warn("@launchdarkly/session-replay is not initializing because it is not supported in this environment.");if(typeof Worker>"u")return void console.warn("@launchdarkly/session-replay is not initializing because Worker is not supported.");if(!e)return void console.warn("@launchdarkly/session-replay is not initializing because the SDK credential is undefined.");this.configureSession(e,t);let p=t8(t7({},t),{organizationID:e,firstloadVersion:"9.23.0",environment:t?.environment||"production",appVersion:t?.version,sessionSecureID:this.sessionSecureID,privacySetting:null!=(r=t?.privacySetting)?r:"strict"});this.record=new lC(p),null!=t&&t.manualStart||this.record.start(),n.load(this.record),!(null!=(o=null==(i=t?.integrations)?void 0:i.mixpanel)&&o.disabled)&&null!=(a=null==(s=t?.integrations)?void 0:s.mixpanel)&&a.projectToken&&(({projectToken:e})=>{if(window.mixpanel)return;document;var t,r,n=window.mixpanel||[];n.__SV||(window.mixpanel=n,n._i=[],n.init=function(e,i,o){var s=n;for("u">typeof o?s=n[o]=[]:o="mixpanel",s.people=s.people||[],s.toString=function(e){var t="mixpanel";return"mixpanel"!==o&&(t+="."+o),e||(t+=" (stub)"),t},s.people.toString=function(){return s.toString(1)+".people (stub)"},t="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" "),r=0;r<t.length;r++)!function(e,t){var r=t.split(".");2==r.length&&(e=e[r[0]],t=r[1]),e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}}(s,t[r]);var a="set set_once union unset remove delete".split(" ");s.get_group=function(){for(var e={},t=["get_group"].concat(Array.prototype.slice.call(arguments,0)),r=0;r<a.length;r++)!function(r){e[r]=function(){call2_args=arguments,call2=[r].concat(Array.prototype.slice.call(call2_args,0)),s.push([t,call2])}}(a[r]);return e},n._i.push([e,i,o])},n.__SV=1.2);let i=document.createElement("script");i.src="https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js",document.head.appendChild(i),i.addEventListener("load",()=>{var t;null==(t=window.mixpanel)||t.init(e)})})(t.integrations.mixpanel),!(null!=(c=null==(l=t?.integrations)?void 0:l.amplitude)&&c.disabled)&&null!=(d=null==(u=t?.integrations)?void 0:u.amplitude)&&d.apiKey&&(({apiKey:e})=>{!function(t,r){var n=t.amplitude||{_q:[],_iq:{}},i=r.createElement("script");i.type="text/javascript",i.integrity="sha384-+EO59vL/X7v6VE2s6/F4HxfHlK0nDUVWKVg8K9oUlvffAeeaShVBmbORTC2D3UF+",i.crossOrigin="anonymous",i.async=!0,i.src="https://cdn.amplitude.com/libs/amplitude-8.17.0-min.gz.js",i.onload=function(){t.amplitude.runQueuedFunctions||console.log("[Amplitude] Error: could not load SDK"),amplitude.getInstance().init(e)};var o=r.getElementsByTagName("script")[0];function s(e,t){e.prototype[t]=function(){return this._q.push([t].concat(Array.prototype.slice.call(arguments,0))),this}}o.parentNode.insertBefore(i,o);for(var a=function(){return this._q=[],this},l=["add","append","clearAll","prepend","set","setOnce","unset","preInsert","postInsert","remove"],c=0;c<l.length;c++)s(a,l[c]);n.Identify=a;for(var u=function(){return this._q=[],this},d=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"],p=0;p<d.length;p++)s(u,d[p]);n.Revenue=u;var h=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","enableTracking","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"];function f(e){for(var t=0;t<h.length;t++)!function(t){e[t]=function(){e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}(h[t])}f(n),n.getInstance=function(e){return e=(!e||0===e.length?"$default_instance":e).toLowerCase(),Object.prototype.hasOwnProperty.call(n._iq,e)||(n._iq[e]={_q:[]},f(n._iq[e])),n._iq[e]},t.amplitude=n}(window,document)})(t.integrations.amplitude)}catch(e){C("Error initializing @launchdarkly/session-replay SDK","error",e)}}getMetadata(){return{name:"@launchdarkly/session-replay"}}register(e,t){var r;null==(r=this.record)||r.register(e,t)}getHooks(e){var t,r,n,i;let o=t7(t7({"telemetry.sdk.name":e.sdk.name,"telemetry.sdk.version":e.sdk.version,[tj]:e.clientSideId,[tM]:"LaunchDarkly"},null!=(t=e.application)&&t.id?{[tV]:e.application.id}:{}),null!=(r=e.application)&&r.version?{[tW]:e.application.version}:{});return this.initialize(null!=(i=null!=(n=e.sdkKey)?n:e.mobileKey)?i:e.clientSideId,this.options),[{getMetadata:()=>({name:"@launchdarkly/session-replay/hooks"}),afterIdentify:(t,r,n)=>{var i,s,a,l,c,u,d,p,h;for(let o of null!=(a=null==(s=null==(i=this.record)?void 0:i.getHooks)?void 0:s.call(i,e))?a:[])null==(l=o.afterIdentify)||l.call(o,t,r,n);if("completed"===n.status){let e=t8(t7({},tD(h=t.context)?Object.keys(h).sort().filter(e=>"kind"!==e).map(e=>({[e]:h[e].key})).reduce((e,t)=>j(j({},e),t),{}):"kind"in h?{[h.kind]:h.key}:{user:h.key}),{key:null!=(d=null==(u=null==(c=this.options)?void 0:c.contextFriendlyName)?void 0:u.call(c,t.context))?d:tX(t.context),canonicalKey:tX(t.context)});null==(p=this.record)||p.identify(e.key,t7(t7({},o),e),"LaunchDarkly")}return r},afterEvaluation:(t,r,n)=>{var i,o,s,a;for(let l of null!=(s=null==(o=null==(i=this.record)?void 0:i.getHooks)?void 0:o.call(i,e))?s:[])null==(a=l.afterEvaluation)||a.call(l,t,r,n);return r},afterTrack:t=>{var r,n,i,o,s;for(let s of null!=(i=null==(n=null==(r=this.record)?void 0:r.getHooks)?void 0:n.call(r,e))?i:[])null==(o=s.afterTrack)||o.call(s,t);null==(s=this.record)||s.track(t.key,{data:t.data,value:t.metricValue})}}]}}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0,(()=>{var e=r("../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js"),t=r("../../node_modules/.pnpm/react@19.2.3/node_modules/react/index.js"),n=r("../../node_modules/.pnpm/react-dom@19.2.3_react@19.2.3/node_modules/react-dom/client.js"),i=r("./src/types/constants.ts");let o=new Set;class s{debugOverride;config;ldClient=null;constructor(e={}){this.config={storageNamespace:e.storageNamespace??"ld-flag-override"}}getMetadata(){return{name:"FlagOverridePlugin"}}getHooks(e){return[]}register(e){this.ldClient=e}registerDebug(e){this.debugOverride=e,this.loadExistingOverrides()}loadExistingOverrides(){if(!this.debugOverride)return;let e=this.getStorage();if(e)try{for(let t=0;t<e.length;t++){let r=e.key(t);if(!r?.startsWith(this.config.storageNamespace+":"))continue;let n=e.getItem(r);if(n)try{let e=JSON.parse(n),t=r.replace(this.config.storageNamespace+":","");this.debugOverride.setOverride(t,e)}catch{console.warn("flagOverridePlugin: Invalid stored value for",r),e.removeItem(r)}}}catch(e){console.error("flagOverridePlugin: Error loading existing overrides:",e)}}setOverride(e,t){if(!this.debugOverride)return void console.warn("flagOverridePlugin: Debug interface not available");if(!e||"string"!=typeof e)return void console.error("flagOverridePlugin: Invalid flag key:",e);if(void 0===t)return void console.error("flagOverridePlugin: Cannot set undefined value for flag override");try{this.persistOverride(e,t),this.debugOverride.setOverride(e,t)}catch(e){console.error("flagOverridePlugin: Failed to set override:",e)}}removeOverride(e){if(!this.debugOverride)return void console.warn("flagOverridePlugin: Debug interface not available");if(!e||"string"!=typeof e)return void console.error("flagOverridePlugin: Invalid flag key:",e);try{this.removePersistedOverride(e),this.debugOverride.removeOverride(e)}catch(e){console.error("flagOverridePlugin: Failed to remove override:",e)}}clearAllOverrides(){if(!this.debugOverride)return void console.warn("flagOverridePlugin: Debug interface not available");try{this.clearPersistedOverrides(),this.debugOverride.clearAllOverrides()}catch(e){console.error("flagOverridePlugin: Failed to clear overrides:",e)}}getAllOverrides(){if(!this.debugOverride)return console.warn("flagOverridePlugin: Debug interface not available"),{};try{return this.debugOverride.getAllOverrides()}catch(e){return console.error("flagOverridePlugin: Failed to get overrides:",e),{}}}getClient(){return this.ldClient}getStorage(){return"undefined"==typeof window?null:window.localStorage}persistOverride(e,t){let r=this.getStorage();if(r)try{let n=`${this.config.storageNamespace}:${e}`;r.setItem(n,JSON.stringify(t))}catch(e){console.error("flagOverridePlugin: Failed to persist override:",e)}}removePersistedOverride(e){let t=this.getStorage();if(t)try{let r=`${this.config.storageNamespace}:${e}`;t.removeItem(r)}catch(e){console.error("flagOverridePlugin: Failed to remove persisted override:",e)}}clearPersistedOverrides(){let e=this.getStorage();if(e)try{let t=[],r=this.config.storageNamespace+":";for(let n=0;n<e.length;n++){let i=e.key(n);i?.startsWith(r)&&t.push(i)}t.forEach(t=>e.removeItem(t))}catch(e){console.error("flagOverridePlugin: Failed to clear persisted overrides:",e)}}}let a=["top-left","top-right","bottom-left","bottom-right"];var l=r("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js"),c=r.n(l),u=r("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js"),d=r.n(u),p=r("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js"),h=r.n(p),f=r("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js"),m=r.n(f),g=r("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js"),b=r.n(g),v=r("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js"),y=r.n(v),x=r("../../node_modules/.pnpm/@rsbuild+core@1.6.14/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[2].use[2]!./src/core/globals.css"),w={};w.styleTagTransform=y(),w.setAttributes=m(),w.insert=h().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=b(),c()(x.A,w),x.A&&x.A.locals&&x.A.locals,"undefined"!=typeof window&&(window.LaunchDarklyToolbar={init:function(l){return function(s,a){let l=[];if(null!=document.getElementById(i.D))return()=>{l.forEach(e=>e())};let{host:c,reactMount:u,observer:d}=function(){let e=document.createElement("div");e.id=i.D,e.style.inset="0",e.style.width="0px",e.style.height="0px",e.style.position="absolute",e.style.zIndex="2147400100";let t=e.attachShadow({mode:"open"});if(!t)throw Error("[LaunchDarkly Toolbar] Failed to create shadow root");let r=document.createElement("div"),n=document.head?new Set(Array.from(document.head.querySelectorAll("style")).map(e=>e.textContent||"")):new Set;if(document.head){let e=Array.from(document.head.querySelectorAll("style")).filter(e=>e.textContent?.includes("--lp-")||e.textContent?.includes("_")).map(e=>e.textContent||"").join("\n");if(e){let r=document.createElement("style");r.textContent=e,t.appendChild(r)}}o.forEach(e=>{let r=document.createElement("style");r.textContent=e,t.appendChild(r)}),r.dataset.name="react-mount",r.id="ld-toolbar-react-mount",t.appendChild(r);let s=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{if(e.nodeType===Node.ELEMENT_NODE&&"STYLE"===e.tagName){let i=e.textContent||"";if(!n.has(i)&&(i.includes("--lp-")||i.includes("_"))){o.add(i);let n=document.createElement("style");n.textContent=i,t.insertBefore(n,r);try{e.remove()}catch(e){console.warn("[LaunchDarkly Toolbar] Failed to remove style element from document.head:",e)}}}})})});return document.head&&s.observe(document.head,{childList:!0}),setTimeout(()=>s.disconnect(),5e3),{host:e,reactMount:r,observer:s}}(),p=(0,n.createRoot)(u);return Promise.resolve().then(r.bind(r,"./src/core/ui/Toolbar/LaunchDarklyToolbar.tsx")).then(n=>{let{LaunchDarklyToolbar:o}=n;Promise.resolve().then(r.bind(r,"./src/core/context/ReactMountContext.tsx")).then(r=>{let n=r.default;p.render((0,e.jsx)(t.StrictMode,{children:(0,e.jsx)(n.Provider,{value:u,children:(0,e.jsx)(o,{domId:i.D,baseUrl:a.baseUrl,authUrl:a.authUrl,devServerUrl:a.devServerUrl,projectKey:a.projectKey,flagOverridePlugin:a.flagOverridePlugin,eventInterceptionPlugin:a.eventInterceptionPlugin,pollIntervalInMs:a.pollIntervalInMs,position:a.position})})}))})}),l.push(()=>{d.disconnect(),setTimeout(()=>p.unmount(),0)}),s.appendChild(c),l.push(()=>c.remove()),()=>{l.forEach(e=>e())}}(document.body,{...l,baseUrl:l.baseUrl??"https://app.launchdarkly.com",devServerUrl:l.devServerUrl??void 0,projectKey:l.projectKey??void 0,flagOverridePlugin:l.flagOverridePlugin??new s,eventInterceptionPlugin:l.eventInterceptionPlugin??void 0,pollIntervalInMs:l.pollIntervalInMs??void 0,position:l.position??a["3"],clientSideId:l.clientSideId??void 0})}})})()})();
|