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