let 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,e)=>{let t=o?.map(o=>(o?.isEdited||Object.entries(o.presets).forEach(([t,a])=>{let r=a.width;if("dropdown"===t){let o=Object.assign({},a?.fullWidth);Object.entries(o).forEach(([o,e])=>{e&&(r={...r,[o]:"100%"})})}let l=Object.assign({...optionHasShadowDefault},e?.optionHasShadow),n=Object.assign({...optionShadowDefault},e?.optionShadow),d=Object.assign({...optionRoundedDefault},e?.optionRounded);"color"===t?d={...optionRoundedColorDefault}:Object.entries({...e?.optionRounded}).forEach(function([o,e]){"none"===e.radiusType&&(d={...d,[o]:roundedDefault})});let u="color"===t?bgColorDefault:e?.optionBgColor,i=["color","image","image_shopify"].includes(t)?textColorDefault:e?.optionTextColor;o.presets[t]={...a,width:r,optionBgColor:u,optionBorder:e?.optionBorder,optionHasShadow:l,optionRounded:d,optionShadow:n,optionTextColor:i}}),o));return t};export{mappingVariantStyles,optionRoundedColorDefault,optionRoundedDefault};
