"use strict";const 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},s={normal:!1,hover:!1,active:!1};exports.mappingVariantStyles=(o,i)=>{let l=o?.map(o=>(o?.isEdited||Object.entries(o.presets).forEach(([l,d])=>{let c=d.width;if("dropdown"===l){let o=Object.assign({},d?.fullWidth);Object.entries(o).forEach(([o,t])=>{t&&(c={...c,[o]:"100%"})})}let b=Object.assign({...s},i?.optionHasShadow),x=Object.assign({...n},i?.optionShadow),u=Object.assign({...a},i?.optionRounded);"color"===l?u={...p}:Object.entries({...i?.optionRounded}).forEach(function([o,e]){"none"===e.radiusType&&(u={...u,[o]:t})});let h="color"===l?r:i?.optionBgColor,g=["color","image","image_shopify"].includes(l)?e:i?.optionTextColor;o.presets[l]={...d,width:c,optionBgColor:h,optionBorder:i?.optionBorder,optionHasShadow:b,optionRounded:u,optionShadow:x,optionTextColor:g}}),o));return l},exports.optionRoundedColorDefault=p,exports.optionRoundedDefault=a;
