Files
torebki-fabiola.pl/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/mini-cart-contents-block/empty-cart-style.js
2026-03-05 13:07:40 +01:00

1 line
553 B
JavaScript

"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[8513],{31492:(e,c,a)=>{a.r(c),a.d(c,{default:()=>l});var s=a(69307),t=a(94055);const l=({children:e,className:c})=>{const{cartItems:a,cartIsLoading:l}=(0,t.b)(),n=(0,s.useRef)(null);return(0,s.useEffect)((()=>{var e;0!==a.length||l||null===(e=n.current)||void 0===e||e.focus()}),[a,l]),l||a.length>0?null:(0,s.createElement)("div",{tabIndex:-1,ref:n,className:c},(0,s.createElement)("div",{className:"wc-block-mini-cart__empty-cart-wrapper"},e))}}}]);