File "empty-cart-frontend.js"

Full Path: /home/warrior1/public_html/plugins/woocommerce/packages/woocommerce-blocks/build/mini-cart-contents-block/empty-cart-frontend.js
File size: 538 bytes
MIME-type: text/plain
Charset: utf-8

(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[50],{427:function(e,c,t){"use strict";t.r(c);var a=t(0),n=t(32),l=t(5);c.default=e=>{let{children:c,className:t}=e;const{cartItems:s,cartIsLoading:r}=Object(n.a)(),o=Object(l.useRef)(null);return Object(l.useEffect)(()=>{var e;0!==s.length||r||null===(e=o.current)||void 0===e||e.focus()},[s,r]),r||s.length>0?null:Object(a.createElement)("div",{tabIndex:-1,ref:o,className:t},Object(a.createElement)("div",{className:"wc-block-mini-cart__empty-cart-wrapper"},c))}}}]);