import{_ as m}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{z as y,j as d,g as l,A as o,J as n,D as i,O as r,H as p,P as b}from"./index-DOFLUERq.js";const v=["data-fieldtype"],k={class:"field-controls"},_=["innerHTML"],h={key:1,class:"control"},L={class:"control-label label"},V=["value","disabled"],H=["innerHTML"],g={__name:"LinkControl",props:["args","df","read_only","modelValue"],emits:["update:modelValue"],setup(e,{emit:c}){let u=c,s=y();function f(t){u("update:modelValue",t.target.value)}return(t,a)=>d(s).label?(l(),o("div",{key:0,class:p(["control form-builder-control",{editable:d(s).label}]),"data-fieldtype":e.df.fieldtype},[n("div",k,[i(t.$slots,"label",{},void 0,!0),i(t.$slots,"actions",{},void 0,!0)]),a[0]||(a[0]=n("input",{class:"form-control",type:"text",readonly:""},null,-1)),e.df.description?(l(),o("div",{key:0,class:"mt-2 description",innerHTML:e.df.description},null,8,_)):r("",!0)],10,v)):(l(),o("div",h,[n("div",L,b(e.df.label),1),n("input",{class:"form-control",type:"text",value:e.modelValue,disabled:e.read_only||e.df.read_only,onInput:f},null,40,V),e.df.description?(l(),o("div",{key:0,class:"mt-2 description",innerHTML:e.df.description},null,8,H)):r("",!0)]))}},T=m(g,[["__scopeId","data-v-c7663e61"]]);export{T as default};
