"use strict";const SettingUIV2=[{controls:[{label:{en:"Tag"},setting:{id:"customContent"},layout:"vertical",options:{labelVariant:"primary"}}]},{label:{en:"Size"},controls:[{label:{en:"Width"},controlConfig:{id:"width",type:"dropdown:input",units:["px","%"],linkWithSetting:{name:"size",field:"width"},displayOptions:[{label:"Fit content",value:"Auto",showValue:!0},{label:"Full",value:"100%",showValue:!0},{label:"Default",value:"default",showValue:!0}]}},{id:"height",label:{en:"Height"},controlConfig:{id:"height",type:"dropdown:input",label:"Height",units:["px","%"],linkWithSetting:{name:"size",field:"height"}},layout:"horizontal"},{label:{en:"Padding"},controlConfig:{id:"padding",type:"padding-v2",linkWithSetting:{name:"size",field:"padding"}}}]},{label:{en:"Background"},controls:[{label:{en:"Color"},setting:{id:"backgroundColor"}}]},{label:{en:"Shape"},controls:[{label:{en:"Border"},setting:{id:"borderTag"}},{label:{en:"Corner"},setting:{id:"roundedTag"}}]},{label:{en:"Text style"},controls:[{setting:{id:"typo"},layout:"vertical",options:{hideLabel:!0,fullWidth:!0,updateFields:[{field:"attrs.textAlign",settingId:"textContentAlign"}]},controlChangeTrigger:{settings:[{action:{controlId:"textContentAlign",valueFromField:"attrs.textAlign",groupType:"style",controlType:"style"}}],options:{noRecordHistory:!0}}}]},{controls:[{label:{en:"Align"},setting:{id:"textAlign"},conditionEnable:'!(parseInt(size.width) >= 100 && size.width?.includes("%"))',options:{labelVariant:"primary",fullWidth:!0,disableMessage:"Align is not supported when width is 100%"}}]}];exports.SettingUIV2=SettingUIV2;
