(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[60],{487:function(e,c,t){"use strict";t.r(c);var r=t(0),s=t(11),o=t(43),a=t(7),i=t(31);c.default=e=>{let{children:c,className:t}=e;const{cartItems:n,cartItemErrors:l}=Object(o.a)(),{createErrorNotice:d,removeNotice:w}=Object(a.useDispatch)("core/notices");return Object(r.useEffect)(()=>{const e=Object(a.select)("core/notices").getNotices("wc/cart").filter(e=>"error"===e.status&&"default"===e.type).map(e=>e.id);e.forEach(e=>{w(e,"wc/cart")}),e.forEach(e=>{w(e,"wc/cart")}),l.forEach(e=>{d(Object(i.decodeEntities)(e.message),{isDismissible:!1,id:e.code,context:"wc/cart"})})},[d,l,w]),0===n.length?null:Object(r.createElement)("div",{className:t},Object(r.createElement)(s.StoreNoticesContainer,{context:"wc/cart"}),c)}}}]);