"use strict";const sizeImage=(t="",i,l="fit=scale-down,format=auto")=>{var e,d;return t.includes("surecart.com")&&(null===(e=window.scData)||void 0===e?void 0:e.cdn_root)?`${null===(d=window.scData)||void 0===d?void 0:d.cdn_root}/${l},width=${i}/${t}`:t},getFeaturedProductMediaAttributes=(t,i)=>{var l,e,d;const o=null==t?void 0:t.featured_product_media,u=null==i?void 0:i.image,a={alt:(null===(l=null==o?void 0:o.media)||void 0===l?void 0:l.alt)||(null==t?void 0:t.name),url:(null===(e=null==o?void 0:o.media)||void 0===e?void 0:e.url)||(null==t?void 0:t.image_url),title:(null===(d=null==o?void 0:o.media)||void 0===d?void 0:d.title)||""};return(null==u?void 0:u.url)&&(a.url=u.url,a.alt=a.alt||u.alt,a.title=a.title||u.title),a};exports.getFeaturedProductMediaAttributes=getFeaturedProductMediaAttributes,exports.sizeImage=sizeImage;