"use strict";(self.webpackWcGzdBlocksJsonp=self.webpackWcGzdBlocksJsonp||[]).push([[86],{7367:function(e,t,o){o.r(t),o.d(t,{default:function(){return r}});var c=o(9196),n=o(9307),a=(o(1813),o(5736)),r=({text:e,title:t,children:o,checkoutExtensionData:r,extensions:s,cart:i})=>{const[l,m]=(0,n.useState)(!1),p=s.hasOwnProperty("woocommerce-germanized")?s["woocommerce-germanized"]:{},_=p.applies_for_photovoltaic_system_vat_exempt,f=p.photovoltaic_system_law_details;if((0,n.useEffect)((()=>{m(!!_)}),[_,m]),!l)return null;const h=e?e.replace("{legal_text}",(0,a.sprintf)('<a href="%s">%s</a>',f.url,f.text)):(0,a.sprintf)((0,a.__)('To benefit from the tax exemption, please confirm the VAT exemption according to <a href="%1$s" target="_blank">%2$s</a> by activating the checkbox.',"woocommerce-germanized"),f.url,f.text),u=t||(0,a.__)("Your shopping cart is eligible for VAT exemption","woocommerce-germanized");return(0,c.createElement)("div",{className:"wc-gzd-block-checkout__photovoltaic-system-notice wc-block-components-notice-banner is-info"},(0,c.createElement)("h2",{className:"wc-block-components-title",dangerouslySetInnerHTML:{__html:u}}),(0,c.createElement)("p",{dangerouslySetInnerHTML:{__html:h}}))}}}]);