1import{i as x,r as w,g as $}from"./i18n-BlwlR3g4.js";import{R as y,u as k,v as T,y as B,S,w as a,a as G,X as E,a5 as o,T as I,x as M,M as u,W as P}from"./index-B5CnGmTK.js";import{s as R}from"./clone-CePNcxlk.js";import{T as W}from"./Textbox-CYPt2pXG.js";import{S as X}from"./index-pSSnyPc8.js";import"./StreamingBar.svelte_svelte_type_style_lang-lroHh1Vk.js";import{B as j}from"./Block-CimeBYgM.js";import"./ScrollFade.svelte_svelte_type_style_lang-3SfI1hia.js";import{G as q}from"./utils.svelte-Cn7aBojF.js";import{default as mt}from"./Example-C4nAx60r.js";import"./actions-B4qJajJp.js";import"./input-2DWUN4z0.js";import"./BlockTitle-swcOJpHO.js";import"./Info-DLBy31It.js";import"./html-Dw1CmxWF.js";import"./Check-CLEdriM2.js";import"./Copy-DUUXwOFO.js";import"./Send-pIyHdj-J.js";import"./Square-DbD8EEsD.js";import"./IconButtonWrapper-D8MDVsLy.js";import"./snippet-qnvrkjTU.js";import"./Clear-DNBmcX61.js";import"./index-B_pwUImq.js";import"./size-YLFxpPgN.js";/* empty css */var z=P("<!> <!>",1);function ut(d,p){y(p,!0);let c=w(p,["$$slots","$$events","$$legacy"]);const t=new q(c);let m=o(()=>t.shared.label||"Textbox");t.props.value=t.props.value??"";let n=k(T(t.props.value));async function h(){a(n)!==t.props.value&&(M(n,t.props.value,!0),await u(),t.dispatch("change",R(t.props.value)))}async function _(e){!t.shared||!t.props||(t.props.validation_error=null,t.props.value=e,await u(),t.dispatch("input"))}B(()=>{h()});function g(e){!t.shared||!t.props||(t.props.validation_error=null,t.props.value=e)}j(d,{get visible(){return t.shared.visible},get elem_id(){return t.shared.elem_id},get elem_classes(){return t.shared.elem_classes},get scale(){return t.shared.scale},get min_width(){return t.shared.min_width},allow_overflow:!1,get padding(){return t.shared.container},get rtl(){return t.props.rtl},children:(e,A)=>{var i=z(),l=S(i);{var f=s=>{X(s,$({get autoscroll(){return t.shared.autoscroll},get i18n(){return t.i18n}},()=>t.shared.loading_status,{show_validation_error:!1,on_clear_status:()=>t.dispatch("clear_status",t.shared.loading_status)}))};x(l,s=>{t.shared.loading_status&&s(f)})}var v=E(l,2);{let s=o(()=>t.shared?.loading_status?.validation_error||t.shared?.validation_error),b=o(()=>!t.shared.interactive);W(v,{get label(){return a(m)},get info(){return t.props.info},get show_label(){return t.shared.show_label},get lines(){return t.props.lines},get type(){return t.props.type},get rtl(){return t.props.rtl},get text_align(){return t.props.text_align},get max_lines(){return t.props.max_lines},get placeholder(){return t.props.placeholder},get submit_btn(){return t.props.submit_btn},get stop_btn(){return t.props.stop_btn},get buttons(){return t.props.buttons},get autofocus(){return t.props.autofocus},get container(){return t.shared.container},get autoscroll(){return t.shared.autoscroll},get max_length(){return t.props.max_length},get html_attributes(){return t.props.html_attributes},get validation_error(){return a(s)},onchange:g,oninput:_,onsubmit:()=>{t.shared.validation_error=null,t.dispatch("submit")},onblur:()=>t.dispatch("blur"),onselect:r=>t.dispatch("select",r),onfocus:()=>t.dispatch("focus"),onstop:()=>t.dispatch("stop"),oncopy:r=>t.dispatch("copy",r),oncustombuttonclick:r=>{t.dispatch("custom_button_click",{id:r})},get disabled(){return a(b)},get value(){return t.props.value},set value(r){t.props.value=r}})}G(e,i)},$$slots:{default:!0}}),I()}export{mt as BaseExample,W as BaseTextbox,ut 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.