"use strict";(self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[]).push([[3785],{3785:function(t,r,i){i.r(r),i.d(r,{sc_product_item:function(){return c}});var o=i(6892);const c=class{constructor(t){(0,o.r)(this,t),this.product=void 0,this.layoutConfig=void 0}render(){var t;return console.log(this.product),(0,o.h)("a",{key:"ad0c1fc0e67deec9d02c68dc5532340ab0b39ea4",href:null===(t=this.product)||void 0===t?void 0:t.permalink,class:{"product-item":!0}},this.product&&(this.layoutConfig||[]).map((t=>{var r,i,c,e;const d=t.attributes||{};switch(t.blockName){case"surecart/product-item-title":return(0,o.h)("sc-product-item-title",{part:"title"},null===(r=this.product)||void 0===r?void 0:r.name);case"surecart/product-item-image":return(0,o.h)("sc-product-item-image",{part:"image",product:this.product,sizing:null===(i=t.attributes)||void 0===i?void 0:i.sizing});case"surecart/product-item-price":return(0,o.h)("sc-product-item-price",{part:"price",prices:null===(c=this.product)||void 0===c?void 0:c.prices.data,range:!!(null==d?void 0:d.range),metrics:null===(e=this.product)||void 0===e?void 0:e.metrics});default:return null}})))}};c.style=".product-item{text-decoration:none;padding-top:var(--sc-product-item-padding-top);padding-bottom:var(--sc-product-item-padding-bottom);padding-left:var(--sc-product-item-padding-left);padding-right:var(--sc-product-item-padding-right);margin-top:var(--sc-product-item-margin-top);margin-bottom:var(--sc-product-item-margin-bottom);margin-left:var(--sc-product-item-margin-left);margin-right:var(--sc-product-item-margin-right);border:solid var(--sc-product-item-border-width) var(--sc-product-item-border-color);border-radius:var(--sc-product-item-border-radius);color:var(--sc-product-title-text-color);background-color:var(--sc-product-item-background-color);height:100%;box-sizing:border-box;display:grid}"}}]);