"use strict";const SettingUIV2=[{label:"Popup name",controls:[{label:"Name",setting:{id:"name"}}]},{label:"Button close",controls:[{label:"Icon",setting:{id:"iconSvg"}},{label:"Icon size",setting:{id:"iconSize"}},{label:"Icon color",setting:{id:"btnColor"}},{label:"Width",setting:{id:"btnWidth"}},{label:"Height",setting:{id:"btnHeight"}},{label:"Background",setting:{id:"btnBg"}}],moreSettings:{controls:[{label:"Corner",setting:{id:"btnRounded"}},{setting:{id:"closeButtonPosition"},label:"Position"}]}},{label:"Overlay",controls:[{label:"Color",setting:{id:"overlayColor"}},{label:"Opacity",setting:{id:"overlayOpacity"}},{label:"Click to close",setting:{id:"closeOnClickOutside"}}]},{label:"Size",controls:[{label:"Full screen",setting:{id:"fullScreen"}},{conditionDisplay:"!fullScreen",label:"Width",setting:{id:"width"}},{conditionDisplay:"!fullScreen",label:"Height",setting:{id:"height"}},{label:"Padding",controlConfig:{id:"padding",type:"padding-v2",linkWithSetting:{name:"spacing-setting",field:"padding"},devices:{desktop:{default:{type:"custom",top:"32px",bottom:"32px",left:"32px",right:"32px"}}},compoDefaultValue:{desktop:{default:{type:"custom",top:"32px",bottom:"32px",left:"32px",right:"32px"}}}}}]},{label:"Background",controls:[{setting:{id:"background"},layout:"vertical"}]},{label:"Shape",controls:[{label:"Border",setting:{id:"border",state:"normal"}},{label:"Corner",setting:{id:"rounded",state:"normal"}},{label:"Shadow",setting:{id:"boxShadow",state:"normal"},options:{updateFields:[{field:"normal.enable",settingId:"hasBoxShadow",state:"normal"}]},controlChangeTrigger:{settings:[{condition:"boxShadow.normal.enable === true",source:["boxShadow","hasBoxShadow"],action:{controlId:"hasBoxShadow",groupType:"advanced",controlType:"advanced",state:"normal",newValue:!0}},{condition:"boxShadow.normal.enable === false",source:["boxShadow","hasBoxShadow"],action:{controlId:"hasBoxShadow",groupType:"advanced",controlType:"advanced",state:"normal",newValue:!1}}],options:{noRecordHistory:!0}}}]},{label:"Position",controls:[{label:"Position",type:"combo",iconPrefix:"gp-position",iconName:"polaris-edit",isHideClear:!0,getValueFromSettingID:"position",capitalizeDisplayValue:!0,controls:[{label:"Choose",setting:{id:"position"},options:{labelAlign:"top"}}],conditionDisplay:"!fullScreen"}]},{label:"Display condition",controls:[{label:"Show when",setting:{id:"trigger"}},{conditionDisplay:"trigger === 'show-after-time' || trigger === 'show-on-page-load'",label:"Delay",setting:{id:"triggerTime"}},{conditionDisplay:"trigger === 'show-after-scroll'",label:"Scroll",setting:{id:"triggerPercentage"}},{conditionDisplay:"trigger === 'show-when-about-exit'",label:"On mobile",setting:{id:"mobileTrigger"}},{conditionDisplay:"trigger === 'show-when-about-exit' && mobileTrigger === 'timer'",label:"After load",setting:{id:"mobileTriggerTime"}},{label:"Frequency",setting:{id:"frequencyMode"},conditionDisplay:"trigger !== 'none'"},{conditionDisplay:"frequencyMode === 'after-period-time'",label:"Display time",setting:{id:"frequency"}}]},{label:"Effect",controls:[{setting:{id:"effectType"},label:"Entrance effect"}]}];exports.SettingUIV2=SettingUIV2;
