1import{r as reactExports,u as useFeatureFlags,j as jsxRuntimeExports,F as Flex,B as Box,H as Heading,L as ListRoot,a as ListItem,f as featureDict}from"../entries/src_pages_catch-all.zP0j-ceq.js";import"./chunk-CnBNYna8.js";import"./chunk-CsftmvP9.js";/* empty css *//* empty css */function FeatureFlagPanel(){const ref=reactExports.useRef(null),featureFlags=useFeatureFlags();reactExports.useEffect(()=>{var _a;return(_a=ref.current)==null?void 0:_a.scrollIntoView()},[]);const flagList=Object.entries(featureFlags);if(!flagList.length)return null;const[productionFlags,envFlags]=flagList.reduce(([prod,env],flagPair)=>(flagPair[0].endsWith("_production")?prod.push(flagPair):env.push(flagPair),[prod,env]),[[],[]]),hasPrdFlags=!!productionFlags.length;return jsxRuntimeExports.jsxs(Flex,{ref,flexWrap:"wrap",justifyContent:"center",gap:12,padding:6,children:[jsxRuntimeExports.jsxs(Box,{children:[hasPrdFlags&&jsxRuntimeExports.jsx(Heading,{textAlign:"center",marginBottom:6,children:"Preview Flags"}),jsxRuntimeExports.jsx(FlagList,{flags:envFlags})]}),hasPrdFlags&&jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsx(Heading,{textAlign:"center",marginBottom:6,children:"Production Flags"}),jsxRuntimeExports.jsx(FlagList,{flags:productionFlags})]})]})}function FlagList({flags}){return jsxRuntimeExports.jsx(ListRoot,{padding:4,width:"fit-content",boxShadow:"0 0 10px 0 rgba(0, 0, 0, 0.5)",borderRadius:"32px",css:{"& > li + li":{borderTop:"1px solid var(--semantics-borders-primary-color, #b9bfd2ff)"}},children:flags.map(([flag,value])=>{const flagText=flag.replace(/(_enabled_production|_enabled)$/,"").replaceAll("_"," "),flagStatus=value?"ð¢":"ð´",label=featureDict[flag];return jsxRuntimeExports.jsxs(ListItem,{"data-description":label,position:"relative",display:"flex",justifyContent:"space-between",gap:6,marginInline:"auto",padding:2,width:"100%",fontSize:"xl",textTransform:"capitalize",_hover:{_after:{opacity:1}},_after:{zIndex:1,position:"absolute",content:"attr(data-description)",backgroundColor:"white",opacity:0,insetInline:"5%",boxShadow:"2xl",borderRadius:2,border:"1px solid var(--semantics-borders-primary-color)",padding:2,transition:"opacity 0.3s ease"},children:[jsxRuntimeExports.jsx("span",{children:flagText}),jsxRuntimeExports.jsx("span",{children:flagStatus})]},flag)})})}export{FeatureFlagPanel as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.