1import{G as x,i as $,r as w,m as y,g as k}from"./i18n-DhLovEFo.js";import{M as B,a8 as T,a9 as G,aa as S,N as E,X as s,a as I,S as M,Y as o,O as N,$ as O,G as u,R as P}from"./index-9Ev7iYt6.js";import{T as R}from"./Textbox-CZwW9a5L.js";import{S as X}from"./index-BKfLiH8b.js";import"./StreamingBar.svelte_svelte_type_style_lang-D07DuzRz.js";import{B as Y}from"./Block-MCGnkHAA.js";import"./ScrollFade.svelte_svelte_type_style_lang-ogAEaD61.js";import{default as dt}from"./Example-DniwxFdJ.js";import"./actions-DWbx7e_v.js";import"./input-BhZahYna.js";import"./BlockTitle-C13HXRtc.js";import"./Info-CgD-fkwu.js";import"./html-CfSn455r.js";import"./Check-Co0nFbKx.js";import"./Copy-BpOY43se.js";import"./Send-D7mbLzJf.js";import"./Square-WO7xGPv5.js";import"./IconButtonWrapper-DATTLsrh.js";import"./snippet-xbRfGdXG.js";import"./Clear-D8pztZ4O.js";import"./index-B_pwUImq.js";import"./size-COeWeQdF.js";/* empty css */var j=P("<!> <!>",1);function lt(d,p){B(p,!0);let c=w(p,["$$slots","$$events","$$legacy"]);const t=new x(c);let h=o(()=>t.shared.label||"Textbox");t.props.value=t.props.value??"";let n=T(G(t.props.value));async function _(){s(n)!==t.props.value&&(O(n,t.props.value,!0),await u(),t.dispatch("change",y(t.props.value)))}async function m(e){!t.shared||!t.props||(t.props.validation_error=null,t.props.value=e,await u(),t.dispatch("input"))}S(()=>{_()});function g(e){!t.shared||!t.props||(t.props.validation_error=null,t.props.value=e)}Y(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,q)=>{var l=j(),i=E(l);{var f=a=>{X(a,k({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)}))};$(i,a=>{t.shared.loading_status&&a(f)})}var v=M(i,2);{let a=o(()=>t.shared?.loading_status?.validation_error||t.shared?.validation_error),b=o(()=>!t.shared.interactive);R(v,{get label(){return s(h)},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 s(a)},onchange:g,oninput:m,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 s(b)},get value(){return t.props.value},set value(r){t.props.value=r}})}I(e,l)},$$slots:{default:!0}}),N()}export{dt as BaseExample,R as BaseTextbox,lt 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.