PageSourceSearch

https://nexus-poitiers.fr/_nuxt/B7u5_A9M.js

js nexus-poitiers.fr collected 2026-10-02 01:55:07 UTC 5,309 bytes, 1 lines download raw bytes

1import{a1 as oe,ac as ue,Z as ie,D as x,az as re,h as se,g as c,i as ce,a4 as de,bf as fe,b as R,a as u,F as A,S as z,z as D,cs as ve,s as me,ay as M,b9 as xe,H as F,au as ge,E as C,aa as he,C as we,a5 as be,a7 as Ve}from"./BN-If_5M.js";import{b as ye,f as Fe,d as $,i as O,j as Ce,k as Ie,c as Pe,l as ke,n as Se}from"./C2d0Pm69.js";import{I as W}from"./DZx8eEfp.js";const He=be({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxHeight:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...ke(),...Ve(Pe(),["direction"]),...Ie()},"VTextarea"),ze=oe()({name:"VTextarea",directives:{vIntersect:W},inheritAttrs:!1,props:He(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,{attrs:I,emit:P,slots:d}){const l=ue(e,"modelValue"),{isFocused:g,focus:j,blur:Z}=ye(e),{onIntersect:q}=Se(e),J=C(()=>typeof e.counterValue=="function"?e.counterValue(l.value):(l.value||"").toString().length),K=C(()=>{if(I.maxlength)return I.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),B=x(),w=x(),T=we(""),f=x(),k=x(0),{platform:L}=ie(),b=Fe(e),Q=C(()=>e.persistentPlaceholder||g.value||e.active);function S(){b.isSuppressing.value&&b.update(),f.value!==document.activeElement&&f.value?.focus(),g.value||j()}function X(t){S(),P("click:control",t)}function Y(t){P("mousedown:control",t)}function p(t){t.stopPropagation(),S(),F(()=>{l.value="",he(e["onClick:clear"],t)})}function ee(t){const a=t.target;if(!e.modelModifiers?.trim){l.value=a.value;return}const o=a.value,m=a.selectionStart,r=a.selectionEnd;l.value=o,F(()=>{let s=0;o.trimStart().length===a.value.length&&(s=o.length-a.value.length),m!=null&&(a.selectionStart=m-s),r!=null&&(a.selectionEnd=r-s)})}const v=x(),h=x(Number(e.rows)),V=C(()=>["plain","underlined"].includes(e.variant));re(()=>{e.autoGrow||(h.value=Number(e.rows))});function i(){F(()=>{if(!f.value)return;if(L.value.firefox){k.value=12;return}const{offsetWidth:t,clientWidth:a}=f.value;k.value=Math.max(0,t-a)}),e.autoGrow&&F(()=>{if(!v.value||!w.value)return;const t=getComputedStyle(v.value),a=getComputedStyle(w.value.$el),o=parseFloat(t.getPropertyValue("--v-field-padding-top"))+parseFloat(t.getPropertyValue("--v-input-padding-top"))+parseFloat(t.getPropertyValue("--v-field-padding-bottom")),m=v.value.scrollHeight,r=parseFloat(t.lineHeight),s=Math.max(parseFloat(e.rows)*r+o,parseFloat(a.getPropertyValue("--v-input-control-height"))),H=e.maxHeight?parseFloat(e.maxHeight):parseFloat(e.maxRows)*r+o||1/0,n=ge(m??0,s,H);h.value=Math.floor((n-o)/r),T.value=M(n)})}se(i),c(l,i),c(()=>e.rows,i),c(()=>e.maxHeight,i),c(()=>e.maxRows,i),c(()=>e.density,i),c(h,t=>{P("update:rows",t)});let y;return c(v,t=>{t?(y=new ResizeObserver(i),y.observe(v.value)):y?.disconnect()}),ce(()=>{y?.disconnect()}),de(()=>{const t=!!(d.counter||e.counter||e.counterValue),a=!!(t||d.details),[o,m]=fe(I),{modelValue:r,...s}=$.filterProps(e),H={...O.filterProps(e),"onClick:clear":p};return R($,z({ref:B,modelValue:l.value,"onUpdate:modelValue":n=>l.value=n,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":V.value},e.class],style:[{"--v-textarea-max-height":e.maxHeight?M(e.maxHeight):void 0,"--v-textarea-scroll-bar-width":M(k.value)},e.style]},o,s,{centerAffix:h.value===1&&!V.value,focused:g.value,indentDetails:e.indentDetails??!V.value}),{...d,default:({id:n,isDisabled:_,isDirty:E,isReadonly:te,isValid:ae,hasDetails:le})=>R(O,z({ref:w,style:{"--v-textarea-control-height":T.value},onClick:X,onMousedown:Y,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},H,{id:n.value,active:Q.value||E.value,labelId:`${n.value}-label`,centerAffix:h.value===1&&!V.value,dirty:E.value||e.dirty,disabled:_.value,focused:g.value,details:le.value,error:ae.value===!1}),{...d,default:({props:{class:G,...U},controlRef:ne})=>u(A,null,[e.prefix&&u("span",{class:"v-text-field__prefix"},[e.prefix]),D(u("textarea",z({ref:N=>f.value=ne.value=N,class:G,value:l.value,onInput:ee,autofocus:e.autofocus,readonly:te.value,disabled:_.value,placeholder:e.placeholder,rows:e.rows,name:b.fieldName.value,autocomplete:b.fieldAutocomplete.value,onFocus:S,onBlur:Z,"aria-labelledby":`${n.value}-label`},U,m),null),[[W,{handler:q},null,{once:!0}]]),e.autoGrow&&D(u("textarea",{class:me([G,"v-textarea__sizer"]),id:`${U.id}-sizer`,"onUpdate:modelValue":N=>l.value=N,ref:v,readonly:!0,"aria-hidden":"true"},null),[[ve,l.value]]),e.suffix&&u("span",{class:"v-text-field__suffix"},[e.suffix])])}),details:a?n=>u(A,null,[d.details?.(n),t&&u(A,null,[u("span",null,null),R(Ce,{active:e.persistentCounter||g.value,value:J.value,max:K.value,disabled:e.disabled},d.counter)])]):void 0})}),xe({},B,w,f)}});export{ze as V};

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.