1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/chunk-B8bmgvByGxyL-inico.js","assets/chunks/chunk-CbxWxWTmB1rb-intoo.js","assets/chunks/chunk-BVARF2Uuihnv-custo.js","assets/chunks/chunk-C9MwVHZDj8F9-rende.js","assets/chunks/chunk-BY8-DUITmgGY-_onpa.js"])))=>i.map(i=>d[i]); 2import{aN as x,at as l,c8 as p,d1 as h,cO as F,aC as V,aI as c,aG as w,dV as B,dF as i,cs as P,c4 as T,cz as g,aM as k,_ as $}from"./chunk-C9MwVHZDj8F9-rende.js";import{ah as A,b8 as E,_ as S}from"./chunk-BY8-DUITmgGY-_onpa.js";import{u as z}from"./chunk-BVARF2Uuihnv-custo.js";import{u as D}from"./chunk-DuuY2_9U4QUM-displ.js";import{r as L}from"./chunk-C6Ve1kWCmYv--formu.js";/* empty css */import"./chunk-BkTCNXm1kvzi-___vi.js";const M=x({__name:"FormTextInput",props:{modelValue:{default:void 0},label:{default:""},showCopyButton:{type:Boolean,default:!1},formatter:{type:[String,Function],default:void 0},textInputProps:{default:()=>({})}},emits:["update:modelValue","blur"],setup(m,{emit:d}){const v=k(()=>$(()=>import("./chunk-B8bmgvByGxyL-inico.js"),__vite__mapDeps([0,1,2,3,4]))),e=m,s=d,{input:o}=z(e,s),t=D(),f=l(()=>({...A(e,["modelValue","showCopyButton","formatter"]),...e.textInputProps})),_=()=>{const r=L(e.formatter);if(r&&p(o.value)){const n=r(o.value);n!==o.value&&(o.value=n)}s("blur")},u=l(()=>e.showCopyButton&&o.value&&p(o.value)),a=l(()=>e.label||"text value"),b=l(()=>`Copy ${a.value} to clipboard`),I=async()=>{if(!o.value){t==null||t(`${a.value} is empty`,"error");return}try{await navigator.clipboard.writeText(o.value),t==null||t(`${a.value} copied to clipboard`)}catch(r){t==null||t(`Could not copy ${a.value} to clipboard`,"error"),console.error(`Could not copy ${a.value} to clipboard:`,r)}};return(r,n)=>{const C=h("InInputField");return F(),V("div",{class:g({"has-copy-button":u.value})},[c(C,P({modelValue:i(o),"onUpdate:modelValue":n[0]||(n[0]=y=>T(o)?o.value=y:null)},f.value,{onBlur:_}),w({_:2},[u.value?{name:"append-inner",fn:B(()=>[c(i(v),{icon:"link",class:"copy-icon",width:"30",height:"30","aria-label":b.value,onClick:E(I,["stop"])},null,8,["aria-label"])]),key:"0"}:void 0]),1040,["modelValue"])],2)}}}),J=S(M,[["__scopeId","data-v-942a3ba5"]]);export{J 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.