1import{B as e,Et as t,F as n,M as r,N as i,P as a,R as o,et as s,j as c,kt as l,l as u,lt as d,mt as f,z as p}from"./image-asset-storage-Bn18UssX-Dd119sGd.js";import{Dn as m,St as h,x as g}from"./AppPreviewImageGroup-Bzzejlkf-HL51yJiP.js";import{B as _,Yt as v,cr as y,o as b,wr as x}from"./PromptPanel-B6xRBmPg-DpEhzS4V.js";var S=e({__name:`TestInputSection`,props:{modelValue:{},label:{},placeholder:{default:``},helpText:{default:``},disabled:{type:Boolean,default:!1},size:{default:`medium`},mode:{default:`normal`},enableFullscreen:{type:Boolean,default:!0},minRows:{default:3},maxRows:{default:8},testId:{default:void 0}},emits:[`update:modelValue`],setup(e,{emit:S}){let{t:C}=u(),w=e,T=S,E=c(()=>({minRows:w.mode===`compact`?Math.max(2,w.minRows-1):w.minRows,maxRows:w.mode===`compact`?Math.max(4,w.maxRows-2):w.maxRows})),{isFullscreen:D,fullscreenValue:O,openFullscreen:k}=b(c(()=>w.modelValue),e=>T(`update:modelValue`,e));return(c,u)=>(s(),n(`div`,null,[p(t(h),{vertical:``,size:8},{default:d(()=>[p(t(_),{justify:`space-between`,align:`center`,wrap:!1},{default:d(()=>[p(t(g),{depth:2,style:{"font-size":`14px`,"font-weight":`500`}},{default:d(()=>[o(l(e.label),1)]),_:1}),e.enableFullscreen?(s(),i(t(m),{key:0,type:`tertiary`,size:`small`,onClick:t(k),title:t(C)(`common.expand`),ghost:``,round:``},{icon:d(()=>[p(t(v),null,{default:d(()=>[...u[3]||=[r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,"stroke-width":`2`},[r(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4`})],-1)]]),_:1})]),_:1},8,[`onClick`,`title`])):a(``,!0)]),_:1}),p(t(x),{value:e.modelValue,"onUpdate:value":u[0]||=e=>c.$emit(`update:modelValue`,e),type:`textarea`,placeholder:e.placeholder,disabled:e.disabled,autosize:E.value,clearable:``,"show-count":``,size:e.size,"data-testid":w.testId},null,8,[`value`,`placeholder`,`disabled`,`autosize`,`size`,`data-testid`]),e.helpText?(s(),i(t(g),{key:0,depth:3,style:{"font-size":`12px`}},{default:d(()=>[o(l(e.helpText),1)]),_:1})):a(``,!0)]),_:1}),e.enableFullscreen?(s(),i(y,{key:0,modelValue:t(D),"onUpdate:modelValue":u[2]||=e=>f(D)?D.value=e:null,title:e.label},{default:d(()=>[p(t(x),{value:t(O),"onUpdate:value":u[1]||=e=>f(O)?O.value=e:null,type:`textarea`,placeholder:e.placeholder,autosize:!1,style:{height:`100%`,"min-height":`0`},clearable:``,"show-count":``},null,8,[`value`,`placeholder`])]),_:1},8,[`modelValue`,`title`])):a(``,!0)]))}});export{S as t};
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.