PageSourceSearch

https://app.mykeylive.com/assets/YesNoFilter-DeKRCTSQ.js

js mykeylive.com collected 2026-10-04 11:16:01 UTC 2,480 bytes, 1 lines download raw bytes

1import{N as F,r as s,j as e,W as _,bD as b}from"./index-ujPEiNXP.js";import{F as R}from"./FilterPopoverLayout-BoFKJW4y.js";import{F as v}from"./FormControlLabel-BPFZ8pMt.js";import{R as k}from"./Radio-BhaQ7ufV.js";import"./formControlState-Dq1zat_P.js";import"./useFormControl-DNwBrzov.js";import"./getThemeProps-gQ9IpVp9.js";import"./SwitchBase-Be1-oxEf.js";const D="YesNoFilter-module_container_-jina",Y="YesNoFilter-module_filterLabel_sRK72",g="YesNoFilter-module_cyanDot_VDEUq",S="YesNoFilter-module_item_Wukmd",A="YesNoFilter-module_formControl_spMXp",E="YesNoFilter-module_radioRoot_IyqAB",L="YesNoFilter-module_radioChecked_ldpRM",P="YesNoFilter-module_radioUnchecked_KErof",o={container:D,filterLabel:Y,cyanDot:g,item:S,formControl:A,radioRoot:E,radioChecked:L,radioUnchecked:P},T=({label:m,showPopover:u,initialValues:l,onRemove:U,onClosePopover:C,onApply:h})=>{const{t}=F(),p=Array.isArray(l)?l[0]:l,n=p==null?null:String(p)==="true",a=n===null?null:n?"yes":"no",[c,r]=s.useState(!1),[f,y]=s.useState(l!==null),[x,i]=s.useState(a),[d,j]=s.useState({category:a||"yes",label:a==="yes"?"Yes":a==="no"?"No":"",values:[n]}),N=s.useRef(null);return s.useEffect(()=>{r(u||!1)},[u]),e.jsxs("div",{className:_(o.container,c&&o.bottomBorderRadius),ref:N,children:[e.jsxs("div",{className:o.filterLabel,onClick:()=>r(!c),children:[e.jsx("span",{children:m}),f&&e.jsx("span",{className:o.cyanDot})]}
1),e.jsxs(R,{title:m,showPopover:c,anchorEl:N.current,onClosePopover:()=>{r(!1),C(f)},onRemove:()=>{i(null),y(!1),h([null])},onApply:()=>{d.label&&(y(!0),r(!1),h(d.values))},isApplyDisabled:!d.label,children:[e.jsx("div",{className:o.item,children:e.jsx(v,{labelPlacement:"start",classes:{root:o.formControl,label:o.radioRoot},control:e.jsx(k,{checked:x==="yes",checkedIcon:e.jsx("span",{className:o.radioChecked,children:e.jsx(b,{color:"#31D7D8",width:10,height:8})}),icon:e.jsx("span",{className:o.radioUnchecked}),onChange:()=>{i("yes"),j({category:"yes",label:t("common.yes"),values:[!0]})}}),label:t("common.yes"),value:"yes"})}),e.jsx("div",{className:o.item,children:e.jsx(v,{labelPlacement:"start",classes:{root:o.formControl,label:o.radioRoot},control:e.jsx(k,{checked:x==="no",checkedIcon:e.jsx("span",{className:o.radioChecked,children:e.jsx(b,{color:"#31D7D8",width:10,height:8})}),icon:e.jsx("span",{className:o.radioUnchecked}),onChange:()=>{i("no"),j({category:"no",label:t("common.no"),values:[!1]})}}),label:t("common.no"),value:"no"})})]})]})};export{T 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.