1import{bc as l,br as s,be as u,bf as d,o as p,c}from"./entry.lLzgxQwF.js";var f=` 2 .p-textarea { 3 font-family: inherit; 4 font-feature-settings: inherit; 5 font-size: 1rem; 6 color: dt('textarea.color'); 7 background: dt('textarea.background'); 8 padding-block: dt('textarea.padding.y'); 9 padding-inline: dt('textarea.padding.x'); 10 border: 1px solid dt('textarea.border.color'); 11 transition: 12 background dt('textarea.transition.duration'), 13 color dt('textarea.transition.duration'), 14 border-color dt('textarea.transition.duration'), 15 outline-color dt('textarea.transition.duration'), 16 box-shadow dt('textarea.transition.duration'); 17 appearance: none; 18 border-radius: dt('textarea.border.radius'); 19 outline-color: transparent; 20 box-shadow: dt('textarea.shadow'); 21 } 22 23 .p-textarea:enabled:hover { 24 border-color: dt('textarea.hover.border.color'); 25 } 26 27 .p-textarea:enabled:focus { 28 border-color: dt('textarea.focus.border.color'); 29 box-shadow: dt('textarea.focus.ring.shadow'); 30 outline: dt('textarea.focus.ring.width') dt('textarea.focus.ring.style') dt('textarea.focus.ring.color'); 31 outline-offset: dt('textarea.focus.ring.offset'); 32 } 33 34 .p-textarea.p-invalid { 35 border-color: dt('textarea.invalid.border.color'); 36 } 37 38 .p-textarea.p-variant-filled { 39 background: dt('textarea.filled.background'); 40 } 41 42 .p-textarea.p-variant-filled:enabled:hover { 43 background: dt('textarea.filled.hover.background'); 44 } 45 46 .p-textarea.p-variant-filled:enabled:focus { 47 background: dt('textarea.filled.focus.background'); 48 } 49 50 .p-textarea:disabled { 51 opacity: 1; 52 background: dt('textarea.disabled.background'); 53 color: dt('textarea.disabled.color'); 54 } 55 56 .p-textarea::placeholder { 57 color: dt('textarea.placeholder.color'); 58 } 59 60 .p-textarea.p-invalid::placeholder { 61 color: dt('textarea.invalid.placeholder.color'); 62 } 63 64 .p-textarea-fluid { 65 width: 100%; 66 } 67 68 .p-textarea-resizable { 69 overflow: hidden; 70 resize: none; 71 } 72 73 .p-textarea-sm { 74 font-size: dt('textarea.sm.font.size'); 75 padding-block: dt('textarea.sm.padding.y'); 76 padding-inline: dt('textarea.sm.padding.x'); 77 } 78 79 .p-textarea-lg { 80 font-size: dt('textarea.lg.font.size'); 81 padding-block: dt('textarea.lg.padding.y'); 82 padding-inline: dt('textarea.lg.padding.x'); 83 } 84`,b={root:function(e){var n=e.instance,a=e.props;return["p-textarea p-component",{"p-filled":n.$filled,"p-textarea-resizable ":a.autoResize,"p-textarea-sm p-inputfield-sm":a.size==="small","p-textarea-lg p-inputfield-lg":a.size==="large","p-invalid":n.$invalid,"p-variant-filled":n.$variant==="filled","p-textarea-fluid":n.$fluid}]}},x=l.extend({name:"textarea",style:f,classes:b}),h={name:"BaseTextarea",extends:s,props:{autoResize:Boolean},style:x,provide:function(){return{$pcTextarea:this,$parentInstance:this}}};function i(t){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(t)}function v(t,e,n){return(e=g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){var e=m(t,"string");return i(e)=="symbol"?e:e+""}function m(t,e){if(i(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var a=n.call(t,e);if(i(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var y={name:"Textarea",extends:h,inheritAttrs:!1,observer:null,mounted:function(){var e=this;this.autoResize&&(this.observer=new ResizeObserver(function(){requestAnimationFrame(function(){e.resize()})}),this.observer.observe(this.$el))},updated:function(){this.autoResize&&this.resize()},beforeUnmount:function(){this.observer&&this.observer.disconnect()},methods:{resize:function(){if(this.$el.offsetParent){var e=this.$el.style.height,n=parseInt(e)||0,a=this.$el.scrollHeight,o=!n||a>n,r=n&&a<n;r?(this.$el.style.height="auto",this.$el.style.height="".concat(this.$el.scrollHeight,"px")):o&&(this.$el.style.height="".concat(a,"px"))}},onInput:function(e){this.autoResize&&this.resize(),this.writeValue(e.target.value,e)}},computed:{attrs:function(){return d(this.ptmi("root",{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)}
84,dataP:function(){return u(v({invalid:this.$invalid,fluid:this.$fluid,filled:this.$variant==="filled"},this.size,this.size))}}},z=["value","name","disabled","aria-invalid","data-p"];function $(t,e,n,a,o,r){return p(),c("textarea",d({class:t.cx("root"),value:t.d_value,name:t.name,disabled:t.disabled,"aria-invalid":t.invalid||void 0,"data-p":r.dataP,onInput:e[0]||(e[0]=function(){return r.onInput&&r.onInput.apply(r,arguments)})},r.attrs),null,16,z)}y.render=$;export{y 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.