"use strict";(globalThis.webpackWcBlocksJsonp=globalThis.webpackWcBlocksJsonp||[]).push([[157],{256:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a}),s(87);var i=s(763),n=s(723),c=s(143),o=s(594),r=s(848);const a=({className:e})=>{const t=(0,i.getSetting)("displayCartPricesIncludingTax",!1),s=(0,i.getSetting)("showMiniCartTaxNotice",!0),a=(0,i.getSetting)("showMiniCartShippingCostsNotice",!0),l=(0,i.getSetting)("isSmallBusiness",!1),g=(0,i.getSetting)("smallBusinessNotice",""),p=(0,c.useSelect)((e,{dispatch:s})=>{const i=e(o.CART_STORE_KEY),c=i.getCartData(),r=i.getCartErrors(),a=i.getCartTotals(),l=!i.hasFinishedResolution("getCartData"),{receiveCart:g,receiveCartContents:p}=s(o.CART_STORE_KEY),m=c.extensions.hasOwnProperty("woocommerce-germanized")?c.extensions["woocommerce-germanized"]:{shipping_costs_notice:""},_=t?(0,n.__)("incl. VAT","woocommerce-germanized"):(0,n.__)("excl. VAT","woocommerce-germanized");return{cartItems:c.items,crossSellsProducts:c.crossSells,cartItemsCount:c.itemsCount,cartItemsWeight:c.itemsWeight,cartNeedsPayment:c.needsPayment,cartNeedsShipping:c.needsShipping,cartItemErrors:c.errors,cartTotals:a,cartIsLoading:l,cartErrors:r,extensions:c.extensions,shippingRates:c.shippingRates,cartHasCalculatedShipping:c.hasCalculatedShipping,paymentRequirements:c.paymentRequirements,shippingCostsNotice:c.needsShipping?m.shipping_costs_notice:"",taxNotice:a.total_tax>0?_:"",receiveCart:g,receiveCartContents:p}},[t]);return(0,r.jsxs)("div",{className:"wc-gzd-block-mini-cart-notices",children:[l&&g&&!s&&(0,r.jsx)("div",{className:"wc-gzd-block-mini-cart-notices__notice wc-gzd-block-mini-cart-notices__small-business-notice",dangerouslySetInnerHTML:{__html:g}}),(0,r.jsxs)("div",{className:"wc-gzd-block-mini-cart-notices__notice-wrap",children:[p.taxNotice&&s&&(0,r.jsx)("div",{className:"wc-gzd-block-mini-cart-notices__notice wc-gzd-block-mini-cart-notices__tax-notice",dangerouslySetInnerHTML:{__html:p.taxNotice}}),p.shippingCostsNotice&&a&&(0,r.jsx)("div",{className:"wc-gzd-block-mini-cart-notices__notice wc-gzd-block-mini-cart-notices__shipping-notice",dangerouslySetInnerHTML:{__html:p.shippingCostsNotice}})]})]})}},20:(e,t,s)=>{var i=s(609),n=Symbol.for("react.element"),c=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),o=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0};function a(e,t,s){var i,a={},l=null,g=null;for(i in void 0!==s&&(l=""+s),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(g=t.ref),t)c.call(t,i)&&!r.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===a[i]&&(a[i]=t[i]);return{$$typeof:n,type:e,key:l,ref:g,props:a,_owner:o.current}}t.jsx=a,t.jsxs=a},848:(e,t,s)=>{e.exports=s(20)}}]);