1import{p as E,b as h,a as I,r as T,f as U,g as W,t as z,u as C}from"./i18n-CLA-aXfX.js";import{p as B,f as q,t as G,e as D,b as f,c as P,h as k,s as g,j as R,a9 as b,i as r,_ as F,k as S,r as x,af as H,ag as J,ah as K,U as L,$ as M,aA as N,W as O}from"./index-zQcUQ9m1.js";import{G as Q}from"./utils.svelte-DtXXSlyN.js";import{B as V}from"./Block-DgGHn7bv.js";import{B as X}from"./BlockTitle-CuzKPIeo.js";/* empty css */import"./MarkdownCode.svelte_svelte_type_style_lang-C7vd_kT1.js";import{S as Y}from"./index-CDsfLiji.js";/* empty css */import{c as Z}from"./input-D71CySwn.js";import{default as Be}from"./Example-U_M7K4yN.js";import"./Info-DM2eBECo.js";import"./MarkdownCode-vmwH67uD.js";import"./html-B3q7QijE.js";import"./prism-python-D43YKUi0.js";import"./IconButton-B7IBJBO5.js";import"./svelte-component-BXBUmXeM.js";import"./misc-snWqx6W0.js";import"./Clear-G_Bw7Svf.js";let $=0;var ee=q('<label><input type="radio" class="svelte-19qdtil"/> <span class="svelte-19qdtil"> </span></label>');function te(_,t){B(t,!0);const v=[];let e=E(t,"selected",15),l=b(()=>e()===t.internal_value);async function o(d){R(l,d.target.checked),r(l)&&(await F(),t.on_input())}var s=ee();let m;var a=k(s);T(a);var i,n=g(a,2),u=k(n,!0);x(n),x(s),G(()=>{h(s,"data-testid",`${t.display_value??""}-radio-label`),m=I(s,1,"svelte-19qdtil",null,m,{disabled:t.disabled,selected:r(l),rtl:t.rtl}),a.disabled=t.disabled,h(a,"name",`radio-${++$}`),h(a,"aria-checked",r(l)),i!==(i=t.internal_value)&&(a.value=(a.__value=t.internal_value)??""),S(u,t.display_value)}),Z(v,[],a,()=>(t.internal_value,e()),e),D("input",a,o),f(_,s),P()}var ae=q('<!> <!> <div class="wrap svelte-e4x47i"></div>',1);function ye(_,t){B(t,!0);const v=U(t,["$$slots","$$events","$$legacy"]),e=new Q(v);let l=b(()=>!e.shared.interactive),o=H(J(e.props.value));K(()=>{r(o)!=e.props.value&&(R(o,e.props.value,!0),e.dispatch("change"))}),V(_,{get visible(){return e.shared.visible},type:"fieldset",get elem_id(){return e.shared.elem_id},get elem_classes(){return e.shared.elem_classes},get container(){return e.shared.container},get scale(){return e.shared.scale},get min_width(){return e.shared.min_width},get rtl(){return e.props.rtl},children:(s,m)=>{var a=ae(),i=L(a);Y(i,W({get autoscroll(){return e.shared.autoscroll},get i18n(){return e.i18n}},()=>e.shared.loading_status,{on_clear_status:()=>e.dispatch("clear_status",e.shared.loading_status)}));var n=g(i,2);X(n,{get show_label(){return e.shared.show_label},get info(){return e.props.info},children:(d,y)=>{O();var p=M();G(c=>S(p,c),[()=>e.shared.label||e.i18n("radio.radio")]),f(d,p)},$$slots:{default:!0}});var u=g(n,2);z(u,21,()=>e.props.choices,C,(d,y,p)=>{var c=b(()=>N(r(y),2));let j=()=>r(c)[0],w=()=>r(c)[1];te(d,{get display_value(){return j()},get internal_value(){return w()},get disabled(){return r(l)},get rtl(){return e.props.rtl},on_input:()=>{e.dispatch("input"),e.dispatch("select",{value:w(),index:p})},get selected(){return e.props.value},set selected(A){e.props.value=A}})}),x(u),f(s,a)},$$slots:{default:!0}}),P()}export{Be as BaseExample,te as BaseRadio,ye 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.