geno/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/mini-cart-contents-block/empty-cart-style.js
2024-02-01 11:54:18 +00:00

1 line
No EOL
564 B
JavaScript

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