"use strict";const shadowDefault={type:"shadow-1",distance:"4px",blur:"12px",spread:"0px",color:"rgba(0, 0, 0, 0.20)",angle:90},roundedDefault={btrr:"0px",bblr:"0px",bbrr:"0px",btlr:"0px",radiusType:"custom"},textColorDefault={normal:"text-2",hover:"text-2",active:"text-2"},bgColorDefault={normal:"bg-3",hover:"bg-3",active:"bg-3"},roundedColorDefault={btrr:"999999px",bblr:"999999px",bbrr:"999999px",btlr:"999999px",radiusType:"custom"},optionShadowDefault={normal:shadowDefault,hover:shadowDefault,active:shadowDefault},optionRoundedDefault={normal:roundedDefault,hover:roundedDefault,active:roundedDefault},optionRoundedColorDefault={normal:roundedColorDefault,hover:roundedColorDefault,active:roundedColorDefault},optionHasShadowDefault={normal:!1,hover:!1,active:!1},mappingVariantStyles=(o,t)=>{let e=o?.map(o=>(o?.isEdited||Object.entries(o.presets).forEach(([e,a])=>{let r=a.width;if("dropdown"===e){let o=Object.assign({},a?.fullWidth);Object.entries(o).forEach(([o,t])=>{t&&(r={...r,[o]:"100%"})})}let n=Object.assign({...optionHasShadowDefault},t?.optionHasShadow),l=Object.assign({...optionShadowDefault},t?.optionShadow),d=Object.assign({...optionRoundedDefault},t?.optionRounded);"color"===e?d={...optionRoundedColorDefault}:Object.entries({...t?.optionRounded}).forEach(function([o,t]){"none"===t.radiusType&&(d={...d,[o]:roundedDefault})});let u="color"===e?bgColorDefault:t?.optionBgColor,i=["color","image","image_shopify"].includes(e)?textColorDefault:t?.optionTextColor;o.presets[e]={...a,width:r,optionBgColor:u,optionBorder:t?.optionBorder,optionHasShadow:n,optionRounded:d,optionShadow:l,optionTextColor:i}}),o));return e};exports.mappingVariantStyles=mappingVariantStyles,exports.optionRoundedColorDefault=optionRoundedColorDefault,exports.optionRoundedDefault=optionRoundedDefault;
