import{c as t,d as e,z as n,E as o}from"./main-qHBKdA_h.js";import{S as r,i as s,e as a,b as l,c as i,f as c,t as f,g as u,l as p,k as m,m as d,B as g,n as h,p as k,q as $,H as x}from"./BlockMaker-Ya5typht.js";function B(t,e,n){const o=t.slice();return o[3]=e[n],o[5]=n,o}function w(t){let e,o,r=t[0].skeleton+"";return{c(){e=new x(!1),o=a(),e.a=o},m(t,n){e.m(r,t,n),l(t,o,n)},p(t,n){1&n&&r!==(r=t[0].skeleton+"")&&e.p(r)},i:n,o:n,d(t){t&&(u(o),e.d())}}}function C(t){let e,n,o=m(t[0].innerBlocks),r=[];for(let e=0;e<o.length;e+=1)r[e]=P(B(t,o,e));const s=t=>i(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=a()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);l(t,e,o),n=!0},p(t,n){if(3&n){let a;for(o=m(t[0].innerBlocks),a=0;a<o.length;a+=1){const s=B(t,o,a);r[a]?(r[a].p(s,n),f(r[a],1)):(r[a]=P(s),r[a].c(),f(r[a],1),r[a].m(e.parentNode,e))}for(p(),a=o.length;a<r.length;a+=1)s(a);c()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)f(r[t]);n=!0}},o(t){r=r.filter(Boolean);for(let t=0;t<r.length;t+=1)i(r[t]);n=!1},d(t){t&&u(e),d(r,t)}}}function P(t){let e,n;return e=new g({props:{attributes:t[3],index:t[5],item:{isWooCart:!0,wooCart:t[1]}}}),{c(){h(e.$$.fragment)},m(t,o){k(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.attributes=t[3]),2&n&&(o.item={isWooCart:!0,wooCart:t[1]}),e.$set(o)},i(t){n||(f(e.$$.fragment,t),n=!0)},o(t){i(e.$$.fragment,t),n=!1},d(t){$(e,t)}}}function b(t){let e,n,o,r;const s=[C,w],m=[];function d(t,e){return t[1]&&t[0].innerBlocks?0:t[0].skeleton?1:-1}return~(e=d(t))&&(n=m[e]=s[e](t)),{c(){n&&n.c(),o=a()},m(t,n){~e&&m[e].m(t,n),l(t,o,n),r=!0},p(t,[r]){let a=e;e=d(t),e===a?~e&&m[e].p(t,r):(n&&(p(),i(m[a],1,1,(()=>{m[a]=null})),c()),~e?(n=m[e],n?n.p(t,r):(n=m[e]=s[e](t),n.c()),f(n,1),n.m(o.parentNode,o)):n=null)},i(t){r||(f(n),r=!0)},o(t){i(n),r=!1},d(t){t&&u(o),~e&&m[e].d(t)}}}function j(t,n,r){let s;e(t,o,(t=>r(1,s=t)));let{cartProps:a}=n,{index:l}=n;return t.$$set=t=>{"cartProps"in t&&r(0,a=t.cartProps),"index"in t&&r(2,l=t.index)},[a,s,l]}class N extends r{constructor(e){super(),s(this,e,j,b,t,{cartProps:0,index:2})}}export{N as default};
