"use strict";(globalThis.webpackWcGzdBlocksJsonp=globalThis.webpackWcGzdBlocksJsonp||[]).push([[735],{5825:(e,t,o)=>{o.r(t),o.d(t,{default:()=>a});var c=o(6087),s=(o(5763),o(7723)),n=o(4848);const a=({text:e,title:t,children:o,checkoutExtensionData:a,extensions:r,cart:i})=>{const[l,m]=(0,c.useState)(!1),p=r.hasOwnProperty("woocommerce-germanized")?r["woocommerce-germanized"]:{},h=p.applies_for_photovoltaic_system_vat_exempt,_=p.photovoltaic_system_law_details;if((0,c.useEffect)(()=>{m(!!h)},[h,m]),!l)return null;const d=e?e.replace("{legal_text}",(0,s.sprintf)('<a href="%s">%s</a>',_.url,_.text)):(0,s.sprintf)((0,s.__)('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"),_.url,_.text),g=t||(0,s.__)("Your shopping cart is eligible for VAT exemption","woocommerce-germanized");return(0,n.jsxs)("div",{className:"wc-gzd-block-checkout__photovoltaic-system-notice wc-block-components-notice-banner is-info",children:[(0,n.jsx)("h2",{className:"wc-block-components-title",dangerouslySetInnerHTML:{__html:g}}),(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:d}})]})}}}]);