\n\t\t\t\t\n\t\t`}};l([h({type:String})],w.prototype,\"type\",2),l([h({type:Boolean})],w.prototype,\"standalone\",2),l([h({type:String})],w.prototype,\"info\",2),l([h({type:Boolean})],w.prototype,\"showAddButton\",2),l([h({type:String})],w.prototype,\"addButtonLoggerSource\",2),l([h({type:Boolean})],w.prototype,\"hideVariants\",2),l([h({type:Boolean})],w.prototype,\"hideSiblings\",2),l([h({converter:{fromAttribute:(e,i)=>e===\"true\",toAttribute:(e,i)=>e+\"\"}})],w.prototype,\"isLoading\",2),l([h({type:Boolean})],w.prototype,\"showAddButtonOnBasket\",2),l([h({type:String})],w.prototype,\"addButtonOnBasketTest\",2),l([h({type:Function})],w.prototype,\"addButtonOnBasketClick\",2),l([h({type:Function})],w.prototype,\"productLinkOnClick\",2),l([h({type:String})],w.prototype,\"test\",2),l([h({type:String})],w.prototype,\"testProductDisplayName\",2),l([h({type:String})],w.prototype,\"testProductDeliveryEstimate\",2),l([h({converter:{fromAttribute:e=>{let i=e;try{i=JSON.parse(e),i.Url=j.addAlgoliaQueryToURL(i.Url,i.Guid,\"Search Results\")}catch(s){i=e,console.error(`Could not JSON.parse value ${e}`)}return i},toAttribute:e=>{try{return JSON.stringify(e)}catch(i){return console.error(`Could not JSON.stringify value ${e}`),\"\"}}}})],w.prototype,\"product\",2),w=l([b(\"product-card\")],w);var L=W(class extends R{constructor(r){var t;if(super(r),r.type!==C.ATTRIBUTE||r.name!==\"class\"||((t=r.strings)==null?void 0:t.length)>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(r){return\" \"+Object.keys(r).filter(t=>r[t]).join(\" \")+\" \"}update(r,[t]){var i,s;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(\" \").split(/\\s/).filter(a=>a!==\"\")));for(let a in t)t[a]&&!((i=this.nt)!=null&&i.has(a))&&this.st.add(a);return this.render(t)}let e=r.element.classList;for(let a of this.st)a in t||(e.remove(a),this.st.delete(a));for(let a in t){let n=!!t[a];n===this.st.has(a)||(s=this.nt)!=null&&s.has(a)||(n?(e.add(a),this.st.add(a)):(e.remove(a),this.st.delete(a)))}return S}});var I=class extends y{handleRatingClick(){this.onRatingClick&&this.onRatingClick()}render(){return u` \n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t${this.longText?u`Rated ${this.reviewScore}/5 from ${this.reviewCount} customer review${this.reviewCount!==1?\"s\":\"\"}`:u`(${this.reviewCount})`}\n\t\t\t