"use strict";(globalThis.webpackWcGzdBlocksJsonp=globalThis.webpackWcGzdBlocksJsonp||[]).push([[157],{8256:(e,t,s)=>{s.r(t),s.d(t,{default:()=>r}),s(6087);var i=s(5763),c=s(7723),n=s(7143),a=s(7594),o=s(4848);const r=({className:e})=>{const t=(0,i.getSetting)("displayCartPricesIncludingTax",!1),s=(0,i.getSetting)("showMiniCartTaxNotice",!0),r=(0,i.getSetting)("showMiniCartShippingCostsNotice",!0),l=(0,i.getSetting)("isSmallBusiness",!1),g=(0,i.getSetting)("smallBusinessNotice",""),m=(0,n.useSelect)((e,{dispatch:s})=>{const i=e(a.CART_STORE_KEY),n=i.getCartData(),o=i.getCartErrors(),r=i.getCartTotals(),l=!i.hasFinishedResolution("getCartData"),{receiveCart:g,receiveCartContents:m}=s(a.CART_STORE_KEY),d=n.extensions.hasOwnProperty("woocommerce-germanized")?n.extensions["woocommerce-germanized"]:{shipping_costs_notice:""},p=t?(0,c.__)("incl. VAT","woocommerce-germanized"):(0,c.__)("excl. VAT","woocommerce-germanized");return{cartItems:n.items,crossSellsProducts:n.crossSells,cartItemsCount:n.itemsCount,cartItemsWeight:n.itemsWeight,cartNeedsPayment:n.needsPayment,cartNeedsShipping:n.needsShipping,cartItemErrors:n.errors,cartTotals:r,cartIsLoading:l,cartErrors:o,extensions:n.extensions,shippingRates:n.shippingRates,cartHasCalculatedShipping:n.hasCalculatedShipping,paymentRequirements:n.paymentRequirements,shippingCostsNotice:n.needsShipping?d.shipping_costs_notice:"",taxNotice:r.total_tax>0?p:"",receiveCart:g,receiveCartContents:m}},[t]);return(0,o.jsxs)("div",{className:"wc-gzd-block-mini-cart-notices",children:[l&&g&&!s&&(0,o.jsx)("div",{className:"wc-gzd-block-mini-cart-notices__notice wc-gzd-block-mini-cart-notices__small-business-notice",dangerouslySetInnerHTML:{__html:g}}),(0,o.jsxs)("div",{className:"wc-gzd-block-mini-cart-notices__notice-wrap",children:[m.taxNotice&&s&&(0,o.jsx)("div",{className:"wc-gzd-block-mini-cart-notices__notice wc-gzd-block-mini-cart-notices__tax-notice",dangerouslySetInnerHTML:{__html:m.taxNotice}}),m.shippingCostsNotice&&r&&(0,o.jsx)("div",{className:"wc-gzd-block-mini-cart-notices__notice wc-gzd-block-mini-cart-notices__shipping-notice",dangerouslySetInnerHTML:{__html:m.shippingCostsNotice}})]})]})}}}]);