Files
medicalalert-web-reloaded/wp/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/mini-cart-contents-block/empty-cart-frontend.js
2023-10-10 17:23:21 -04:00

1 line
528 B
JavaScript

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