geno/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/cart-blocks/empty-cart-style.js

1 line
528 B
JavaScript
Raw Permalink Normal View History

2024-02-01 17:24:18 +05:30
"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)}}}]);