"use strict";var uiV2=require("../../../../carousel/settings/configs/ui-v2.js");const SettingUIV2=[{controls:[{label:{en:"Layout"},layout:"vertical",options:{labelVariant:"primary"},setting:{id:"layout"}}]},{label:{en:"Product source"},controls:[{setting:{id:"productSetting"},layout:"vertical"}]},{label:{en:"Display"},controls:[{label:{en:"Products"},conditionDisplay:"productSetting.productSrc === 'RelatedProduct' || !!productSetting && productSetting.productSrc !== 'PickProduct'",setting:{id:"numberOfProducts"}},{label:{en:"Columns"},setting:{id:"slidesToShow"}}]},{label:{en:"Item spacing"},controls:[{label:{en:"Columns gap"},conditionDisplay:"layout === 'slider'",setting:{id:"spacing"}},{label:{en:"Columns gap"},conditionDisplay:"layout === 'grid'",setting:{id:"verticalGutter"}},{label:{en:"Rows gap"},conditionDisplay:"layout === 'grid'",setting:{id:"horizontalGutter"}}]},{label:{en:"Item style"},controls:[{conditionDisplay:"layout !== 'slider'",label:{en:"Height"},setting:{id:"sameHeight"}}]},{conditionDisplay:"layout === 'slider'",...uiV2.carouselNavigationSettings},{conditionDisplay:"layout === 'slider'",...uiV2.carouselDotsSettings},{conditionDisplay:"layout === 'slider'",...uiV2.carouselEffectsSettings},{label:{en:"Size"},controls:[{label:{en:"Width"},setting:{id:"width"}},{conditionDisplay:"layout === 'slider'",label:{en:"Height"},setting:{id:"height"}},{label:{en:"Padding"},controlConfig:{id:"padding",type:"padding-v2",linkWithSetting:{name:"spacing-setting",field:"padding"}}}]},{label:{en:"Background"},controls:[{label:{en:"Color"},setting:{id:"backgroundColor"}},{label:{en:"Image"},setting:{id:"backgroundImage"},options:{updateFields:[{field:"preload",settingId:"preloadBgImage"}]},controlChangeTrigger:{settings:[{action:{controlId:"preloadBgImage",valueFromField:"preload",groupType:"style",controlType:"style",removeDevice:!0}}],options:{noRecordHistory:!0}}}]},{label:{en:"Shape"},controls:[{label:{en:"Border"},controlConfig:{id:"border-advanced",type:"border-v2",linkWithSetting:{name:"border",field:"normal"},compoDefaultValue:{color:"line-3",border:"solid",width:"1px",borderWidth:"1px"}}},{label:{en:"Corner"},setting:{id:"rounded",state:"normal"}},{label:{en:"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}}}]},{controls:[{label:{en:"Align"},conditionEnable:'!(parseInt(width) >= 100 && width?.includes("%"))',setting:{id:"align"},options:{labelVariant:"primary",fullWidth:!0,disableMessage:"Horizontal alignment is disabled when the width is set to 100% or greater"}}]}];exports.SettingUIV2=SettingUIV2;
