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

1 line
No EOL
528 B
JavaScript

"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[320],{34096:(e,c,s)=>{s.r(c),s.d(c,{default:()=>r});var t=s(99196),l=s(94055),n=s(69307),o=s(39456);s(6450);const r=({children:e,className:c})=>{const{cartItems:s,cartIsLoading:r}=(0,l.b)();return(0,n.useEffect)((()=>{0!==s.length||r||(0,o.Nu)("wc-blocks_render_blocks_frontend",{element:document.body.querySelector(".wp-block-woocommerce-cart")})}),[r,s]),r||0!==s.length?null:(0,t.createElement)("div",{className:c},e)}}}]);