!function(){"use strict";var e,t,n={906:function(e,t,n){n.d(t,{Yu:function(){return r},i9:function(){return u},jI:function(){return s},m_:function(){return o}});const i={isBundle:!1,isBundledItem:!1,bundleData:{},itemData:{}},r=e=>{var t;return{...i,...null!==(t=e?.["yith-woocommerce-product-bundles"])&&void 0!==t?t:{}}},u=e=>{const{isBundle:t,isBundledItem:n,bundleData:i}=r(e);return t||n?i:{}},o=e=>{const{isBundledItem:t,itemData:n}=r(e);return t?n:{}},s=(e,t)=>{const{cartItems:n}=t,{extensions:i,key:s}=e,{isBundledItem:d=!1}=r(i);if(!d)return!1;const{bundledItemKeys:c=[]}=u(i);return c.map((e=>n.find((t=>t.key===e)))).filter(Boolean).filter((e=>{const{isHidden:t=!1}=o(e?.extensions);return!t})).map((e=>e.key)).pop()===s}},554:function(e){e.exports=window.wc.blocksCheckout}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var u=i[e]={exports:{}};return n[e](u,u.exports,r),u.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e=r(554),t=r(906),(0,e.registerCheckoutFilters)("yith-woocommerce-product-bundles",{cartItemClass:(e,n,i)=>{const{isBundle:r=!1,isBundledItem:u=!1}=(0,t.Yu)(n),{hasFixedPrice:o=!1}=(0,t.i9)(n),{isHidden:s=!1,isThumbnailHidden:d=!1}=(0,t.m_)(n),{cart:c,cartItem:a}=i;return[e,r?"yith-wcpb-is-bundle":"",u?"yith-wcpb-is-bundled-item":"",o?"yith-wcpb-has-fixed-price":"",s?"yith-wcpb-is-hidden":"",d?"yith-wcpb-is-thumbnail-hidden":"",(0,t.jI)(a,c)?"yith-wcpb-is-last-visible-bundled-item":""].filter(Boolean).join(" ")},showRemoveItemLink:(e,n)=>{const{isBundledItem:i=!1}=(0,t.Yu)(n);return!i&&e},itemName:(e,n)=>{const{hasCustomName:i=!1,name:r=""}=(0,t.m_)(n);return i?r:e}})}();
//# sourceMappingURL=index.js.map