"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[6755],{6755:function(t,r,i){i.r(r),i.d(r,{sc_product_item:function(){return d}});var o=i(3029),e=i(2901),c=i(1346),d=function(){return(0,e.A)((function t(r){(0,o.A)(this,t),(0,c.r)(this,r),this.product=void 0,this.layoutConfig=void 0}),[{key:"render",value:function(){var t,r=this;return console.log(this.product),(0,c.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((function(t){var i,o,e,d,a=t.attributes||{};switch(t.blockName){case"surecart/product-item-title":return(0,c.h)("sc-product-item-title",{part:"title"},null===(i=r.product)||void 0===i?void 0:i.name);case"surecart/product-item-image":return(0,c.h)("sc-product-item-image",{part:"image",product:r.product,sizing:null===(o=t.attributes)||void 0===o?void 0:o.sizing});case"surecart/product-item-price":return(0,c.h)("sc-product-item-price",{part:"price",prices:null===(e=r.product)||void 0===e?void 0:e.prices.data,range:!!(null==a?void 0:a.range),metrics:null===(d=r.product)||void 0===d?void 0:d.metrics});default:return null}})))}}])}();d.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}"}}]);