System.register(["../../../../common/index-legacy.DRKniymH.js","../../../../common/PresetControl.vue_vue_type_style_index_0_scoped_c9e2dd9e_lang-legacy.CBGxOGwC.js","../../../../common/Preview.vue_vue_type_style_index_0_scoped_e226939c_lang-legacy.Ceu-Swp9.js","../../../../common/Confirmation.vue_vue_type_script_setup_true_lang-legacy.CIhxBO6H.js","../../../../common/LabelControl.vue_vue_type_script_setup_true_lang-legacy.DL25Ke3f.js","../../../../common/Tooltip.vue_vue_type_script_setup_true_lang-legacy.C9WyNJUi.js","../../../../common/transition-legacy.DZbCmrRe.js","../../../../common/keyboard-legacy.ItkZdbDJ.js","../../../../common/open-closed-legacy.CWZrlJ6W.js","../../../../common/micro-task-legacy.D9KKWy-6.js"],(function(e,t){"use strict";var l,a,s,i,n,o,r,u,w,c,p,d,m,_,g,v,y;return{setters:[e=>{l=e.d,a=e.t,s=e.r,i=e.a4,n=e.o,o=e.c,r=e.b,u=e.e,w=e.u,c=e.Z,p=e.a0,d=e.H,m=e.Q,_=e.g,g=e.a5},null,null,null,e=>{v=e._},e=>{y=e._},null,null,null,null],execute:function(){const t={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-mb-2 stwlite-tw-gap-2"},b={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-min-w-72 stwlite-tw-mb-2 stwlite-tw-gap-2"},f=["id","name","placeholder","disabled"],x=["innerHTML"];e("default",l({__name:"TextAreaControl",props:{params:{type:Object,required:!0}},emits:["input","fieldData"],setup(e,{emit:l}){const h=e,{params:j}=a(h),k=j.value,C=s(k?.default||""),T=s(k.editor??!1),D=l,q=s(k.disabled??!1),H=s([]),L=s(!1),A=k.id;""===C.value||q.value||(H.value[A]=C.value,D("fieldData",H.value));const B=()=>{H.value[A]=C,D("fieldData",H.value)};return T.value&&!L.value&&i(A,{tinymce:{plugins:"charmap colorpicker compat3x directionality fullscreen hr image lists media paste tabfocus textcolor wordpress wpautoresize wpdialogs wpeditimage wpemoji wpgallery wplink wptextpattern wpview",toolbar1:"formatselect bold italic | bullist numlist | blockquote | alignleft aligncenter alignright | link unlink | wp_more | spellchecker",wp_theme:!0,setup:e=>{e.on("init",(()=>{L.value=!0,e.setContent(g(C.value))})),e.on("change",(()=>{var t;t=e.getContent(),H.value[A]=t,D("fieldData",H.value)}))}},mediaButtons:!0,quicktags:!0}),(e,l)=>(n(),o("div",null,[r("div",t,[u(w(v),{params:w(k)},null,8,["params"])]),r("div",b,[c(r("textarea",{id:w(A),"onUpdate:modelValue":l[0]||(l[0]=e=>C.value=e),name:w(k).id,placeholder:w(k).placeholder,rows:4,disabled:q.value,class:d(["stwlite-tw-block stwlite-tw-w-full stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-border stwlite-tw-border-gray-300 stwlite-tw-rounded-md stwlite-tw-shadow-sm stwlite-tw-placeholder-gray-400 focus:stwlite-tw-outline-none",q.value?"stwlite-tw-bg-gray-100 stwlite-tw-text-gray-500 stwlite-tw-cursor-not-allowed":"stwlite-tw-bg-white stwlite-tw-text-gray-900"]),onInput:B},null,42,f),[[p,C.value]]),u(w(y),{params:w(k)},null,8,["params"])]),"undefined"!==w(k).description?(n(),o("p",{key:0,class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-mt-2",innerHTML:w(m)(w(k)?.description??"")},null,8,x)):_("",!0)]))}}))}}}));
