"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["ProductPricesCompareAt-public"],{U5j6:function(e,t,r){r.r(t),r.d(t,{default:function(){return p}});var i=r("LpH3"),a=r("63xp"),c=r("dGr1"),n={name:"1apltd1-ProductPriceSaleNoticeCSS",styles:"&&{color:red;margin:0;position:relative;top:0;font-size:15px;line-height:1;font-style:normal;};label:ProductPriceSaleNoticeCSS;"},s=function(e){var t=e.children,r=n;return(0,i.tZ)(React.Fragment,null,(0,i.tZ)("small",{className:"wps-pricing-sale-notice",css:r},wp.i18n.__("Sale!","shopwp")),t)},p=wp.element.memo((function(e){var t=e.prices,r=e.compareAt,n=e.selectedVariant,p=e.showPriceRange,l=e.settings,o=(0,i.iv)("display:flex;align-items:center;margin:",n?"6px 0 0 0":"10px 0 0 0",";.wps-product-individual-price{font-size:15px;}&:empty{display:none;};label:ProductPricesCompareAtWrapperCSS;");if(n)if(n.node.compareAtPriceV2)var u=n.node.compareAtPriceV2.amount;else u=!1;else u=(0,c.zK)(t);return(0,i.tZ)(React.Fragment,null,(0,i.tZ)(a.Z,{selectedVariant:n,compareAt:!1,prices:t,showPriceRange:p,settings:l}),r&&u?(0,i.tZ)("div",{className:"wps-product-prices-compare-at",css:o},(0,i.tZ)(s,null,(0,i.tZ)(a.Z,{selectedVariant:n,compareAt:!0,prices:t,showPriceRange:p,settings:l}))):null)}))}}]);