let SettingUIV2=[{label:{en:"layout"},controls:[{setting:{id:"layout"},layout:"vertical",controlChangeTrigger:{settings:[{action:{controlId:"displayProgressBar",newValue:!0,groupType:"style",controlType:"style"},source:["layout"],condition:"layout !== 'icon-and-text' && layout !== 'text-only'"},{action:{controlId:"displayProgressBar",newValue:!1,groupType:"style",controlType:"style"},source:["layout"],condition:"layout === 'icon-and-text' || layout === 'text-only'"},{action:{controlId:"showIcon",newValue:!0,groupType:"setting",controlType:"setting"},source:["layout"],condition:"layout === 'full' || layout === 'icon-and-text'"},{action:{controlId:"showIcon",newValue:!1,groupType:"setting",controlType:"setting"},source:["layout"],condition:"layout === 'text-and-progress-bar' || layout === 'progress-bar' || layout === 'text-only'"}],options:{noRecordHistory:!0}}}]},{controls:[{label:{en:"Progress bar"},setting:{id:"displayProgressBar"},options:{labelVariant:"primary",toggleStyle:"switch"}},{conditionDisplay:"displayProgressBar == true",label:{en:"Percentage left"},setting:{id:"remainingPercentage"}},{conditionDisplay:"displayProgressBar == true",label:{en:"Color"},setting:{id:"color"}},{conditionDisplay:"displayProgressBar == true",label:{en:"Effect"},setting:{id:"effect"}}],moreSettings:{type:"collapse",controls:[{conditionDisplay:"displayProgressBar == true",label:{en:"Height"},setting:{id:"progressBarHeight"}},{conditionDisplay:"displayProgressBar == true",label:{en:"Position"},setting:{id:"progressBarPosition"}},{conditionDisplay:"displayProgressBar == true",label:{en:"Corner"},setting:{id:"borderRadius"}}]}},{controls:[{label:{en:"Icon"},setting:{id:"showIcon"},options:{labelVariant:"primary",toggleStyle:"switch"}},{label:{en:"Icon"},conditionDisplay:"showIcon == true",setting:{id:"icon"},layout:"horizontal"},{label:{en:"Size"},conditionDisplay:"showIcon == true",setting:{id:"iconSize"},layout:"horizontal"},{conditionDisplay:"showIcon == true",label:{en:"Color"},setting:{id:"iconColor"}},{label:{en:"Position"},conditionDisplay:"showIcon == true",setting:{id:"iconPosition"},layout:"horizontal"}]},{label:{en:"Size"},controls:[{label:{en:"Width"},setting:{id:"width"}}]},{label:{en:"Text"},controls:[{label:{en:"Content"},type:"combo",iconName:"polaris-text-block",getValueFromSettingID:"template",isHideClear:!0,controls:[{label:{en:"Content"},setting:{id:"template"},layout:"vertical"}]},{setting:{id:"typo"},layout:"vertical"}]},{label:{en:"Out of stock state"},controls:[{label:{en:"Action"},setting:{id:"hiddenCounterWhenOutOfStock"}},{label:{en:"Icon"},setting:{id:"oosIcon"},conditionDisplay:"hiddenCounterWhenOutOfStock == false"},{label:{en:"Content"},type:"combo",iconName:"polaris-text-block",getValueFromSettingID:"outOfStockMessage",isHideClear:!0,controls:[{label:{en:"Content"},setting:{id:"outOfStockMessage"},layout:"vertical"}],conditionDisplay:"hiddenCounterWhenOutOfStock == false"},{label:{en:"Icon color"},setting:{id:"oosIconColor"},conditionDisplay:"hiddenCounterWhenOutOfStock == false"},{label:{en:"Text color"},setting:{id:"oosTextColor"},conditionDisplay:"hiddenCounterWhenOutOfStock == false"}]},{label:{en:"Message"},controls:[{label:{en:"Sell when OOS"},type:"combo",iconName:"polaris-text-block",getValueFromSettingID:"continueSelling",isHideClear:!0,popoverLabel:{en:"Out of stock sell"},controls:[{label:{en:"Content"},setting:{id:"continueSelling"},layout:"vertical"}]},{label:{en:"Unlimited stock"},type:"combo",iconName:"polaris-text-block",getValueFromSettingID:"unlimitedQuantityMessage",isHideClear:!0,popoverLabel:{en:"Unlimited quantity"},controls:[{label:{en:"Content"},setting:{id:"unlimitedQuantityMessage"},layout:"vertical"}]}]},{label:{en:"Display option"},controls:[{label:{en:"Display"},setting:{id:"displayByDefault"}},{label:{en:"Stock"},conditionDisplay:"displayByDefault == false",setting:{id:"scarcityThreshold"}}]},{controls:[{label:{en:"Align"},conditionEnable:'!(parseInt(width) >= 100 && width?.includes("%"))',setting:{id:"alignment"},options:{labelVariant:"primary",fullWidth:!0,disableMessage:"Horizontal alignment is disabled when the width is set to 100% or greater"}}]}];export{SettingUIV2};
