1import{D as u}from"./grim-icon-gray-image-Bi3STd6L.js";function f(e){if(typeof e!="string")return null;const t=e.trim().toLowerCase();return t==="bottom"||t==="image"||t==="none"?t:null}function l(e){if(!e)return{...u};const t={...u},a=e.getAttribute("data-init-deliv-price-flexable-key");a&&(t.freeShippingThreshold=Number(a));const o=e.getAttribute("data-type");(o==="cart"||o==="prod")&&(t.context=o);const r=e.getAttribute("data-placement");if((r==="modal"||r==="page")&&(t.placement=r),t.context==="prod"){const s=e.getAttribute("data-prod-idx");s&&(t.prodIdx=parseInt(s,10));const p=e.getAttribute("data-prod-code");p&&(t.prodCode=p)}const i=e.getAttribute("data-upsell-prod-design-type");(i==="horizontal"||i==="vertical")&&(t.upsellProdDesignType=i);const n=e.getAttribute("data-accent-color");n&&(t.accentColor=n);const d=f(e.getAttribute("data-cart-button-type"));d&&(t.cartButtonType=d),e.getAttribute("data-recommendation-enabled")==="false"&&(t.recommendationEnabled=!1);const c=e.getAttribute("data-guide-message");return c&&(t.guideMessage=c),t}export{f as n,l as r};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.