(() => {
const executeDynamicBundleBlock = ({ blockElement, productId = null, isCustomPage = false }) => {
const babBundles = [{"id":5064,"shop":"eauderagnar-co-uk.myshopify.com","name":"Super Bundle","description":"","status":"ACTIVE","customerIncludeTags":null,"discountType":"NO_DISCOUNT","discountValue":null,"products":"[{\"productId\":8901009113382,\"variantId\":null,\"price\":null,\"name\":\"Notorium EDP\",\"productHandle\":\"notorium-edp\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/EditedPhotosRag-297.jpg?v=1705251869\",\"quantity\":1,\"status\":\"ACTIVE\",\"options\":[{\"name\":\"Notorium EDP (Size)\",\"value\":[{\"name\":\"100ml\",\"selected\":true}]}]},{\"productId\":9360508780838,\"variantId\":null,\"price\":null,\"name\":\"Sky Blue Eau De Parfum\",\"productHandle\":\"sky-blue-eau-de-parfum\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/IMG_55527.jpg?v=1717083575\",\"quantity\":1,\"status\":\"ACTIVE\",\"options\":[]},{\"productId\":9527189045542,\"variantId\":null,\"price\":null,\"name\":\"One Love\",\"productHandle\":\"one-love\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/pawpals-1.jpg?v=1725564168\",\"quantity\":1,\"status\":\"ACTIVE\",\"options\":[]},{\"productId\":14863038644602,\"variantId\":null,\"price\":null,\"name\":\"Veni Vidi Vici\",\"productHandle\":\"veni-vidi-vici-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/DSC002242_1.jpg?v=1732748855\",\"status\":\"ACTIVE\",\"options\":[],\"quantity\":\"1\"},{\"productId\":14863036744058,\"variantId\":null,\"price\":null,\"name\":\"Centurion 100ml\",\"productHandle\":\"centurion-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/DSC002262_1.jpg?v=1732748550\",\"status\":\"ACTIVE\",\"options\":[],\"quantity\":\"1\"}]","variants":"[]","sequenceNo":null,"bundleType":"CLASSIC","settings":null,"bundleProductId":14862730068346,"bundleVariantId":null,"productHandle":"100ml-fragrance-mix-match","discountId":null,"price":null,"numberOfProducts":0,"subscriptionBundlingEnabled":false,"subscriptionId":null,"minProductCount":null,"maxProductCount":null,"uniqueRef":"Ha1Cth8jCz","bundleRedirect":"CART","customRedirectURL":null,"minOrderAmount":null,"tieredDiscount":null,"productViewStyle":"QUICK_ADD","singleProductSettings":"null","trackInventory":false,"sellingPlanType":"BUNDLE_LEVEL","clearCart":"ENABLED","minPrice":224.95,"maxPrice":224.95,"externalBuildABoxId":null,"variantVisibilityType":"SHOW_VARIANTS_AS_OPTIONS","subTitle":null,"freeShipping":false,"themeType":"THEME_TWO","showBundleInProductPage":true,"combinedWithProductDiscount":true,"combinedWithShippingDiscount":true,"combinedWithOrderDiscount":true,"allowedTags":null,"restrictTags":null,"selectionType":"FLEXIBLE","bundleHtml":"null","discountedVariants":"null","allowedCountries":null,"appliesOn":"BOTH","purchaseRequirement":"NO_REQUIREMENT","productDiscountType":"EACH_PRODUCT","countrySelectionType":"ALL_COUNTRY","discountApplyApproach":"SHOPIFY_DISCOUNT_FUNCTION","discountedProductChooseType":"CHOOSE_ALL","internalName":"Ragnars Bundle","sections":null,"limitToUsePerCustomer":null,"discountedVariantSelectionLimit":null,"hideOneTimePurchase":null,"hideSubscriptionPurchase":null,"maxOrderAmount":null,"collectionData":null,"productSelectionType":null,"tag":"appstle_bundles","productChooseType":null,"variantSelectionLimit":null,"discountTargetType":null,"enableSubscription":null,"subscriptionWidgetPosition":null,"subscribeTitle":null,"subscribeSubtitle":null,"subscriptionPreselected":null,"getYAppliesOn":null,"announcementBarMessage":null,"automaticDiscountNodeId":null,"recurringCycleLimit":null},{"id":5065,"shop":"eauderagnar-co-uk.myshopify.com","name":"100ml Mix & Match","description":"Mix & Match any 100ml fragrances","status":"ACTIVE","customerIncludeTags":null,"discountType":"TIERED_DISCOUNT","discountValue":null,"products":"null","variants":"[{\"productId\":15109620203898,\"variantId\":55402948690298,\"name\":\"Legion Parfums Maximus 100ml \",\"productHandle\":\"legion-parfums-maximus-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/maximus.png?v=1747692171\",\"quantity\":1,\"price\":\"54.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Legion Parfums Maximus 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"preSelected\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":15112430616954,\"variantId\":55409331405178,\"name\":\"Legion Parfums Carpe Diem 100ml \",\"productHandle\":\"carpe-diem-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/DSC03538.jpg?v=1747841905\",\"quantity\":1,\"price\":\"44.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Legion Parfums Carpe Diem 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"preSelected\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":9360508780838,\"variantId\":48701516677414,\"name\":\"Sky Blue Eau De Parfum \",\"productHandle\":\"sky-blue-eau-de-parfum\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/IMG_55527.jpg?v=1717083575\",\"quantity\":1,\"price\":\"42.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Sky Blue Eau De Parfum\",\"variantTitle\":null,\"isMandatory\":false},{\"productId\":9527189045542,\"variantId\":49405395173670,\"name\":\"One Love \",\"productHandle\":\"one-love\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/pawpals-1.jpg?v=1725564168\",\"quantity\":1,\"price\":\"42.99\",\"status\":\"ACTIVE\",\"productTitle\":\"One Love\",\"variantTitle\":null,\"isMandatory\":false},{\"productId\":14863036744058,\"variantId\":54847933219194,\"name\":\"Centurion 100ml \",\"productHandle\":\"centurion-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/DSC002262_1.jpg?v=1732748550\",\"quantity\":1,\"price\":\"44.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Centurion 100ml\",\"variantTitle\":null,\"isMandatory\":false},{\"productId\":14863038644602,\"variantId\":54847935676794,\"name\":\"Veni Vidi Vici \",\"productHandle\":\"veni-vidi-vici-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/DSC002242_1.jpg?v=1732748855\",\"quantity\":1,\"price\":\"44.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Veni Vidi Vici\",\"variantTitle\":null,\"isMandatory\":false},{\"productId\":9527190880550,\"variantId\":49405397532966,\"name\":\"Zimaya Ilham Al Oud 100ml \",\"productHandle\":\"ilham-al-oud\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/mattproduct2.jpg?v=1724793267\",\"quantity\":1,\"price\":\"26.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Zimaya Ilham Al Oud 100ml\",\"variantTitle\":null,\"isMandatory\":false},{\"productId\":9534149787942,\"variantId\":49435621687590,\"name\":\"Rue Broca Luminous Homme 100ml \",\"productHandle\":\"rue-broca-luminous-homme-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/MattProduct.jpg?v=1724792790\",\"quantity\":1,\"price\":\"26.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Rue Broca Luminous Homme 100ml\",\"variantTitle\":null,\"isMandatory\":false},{\"productId\":14628747313530,\"variantId\":51661705544058,\"name\":\"Oud Elixir Ruby Oud 100ml \",\"productHandle\":\"oud-elixir-ruby-oud\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/DSC00124.jpg?v=1728408656\",\"quantity\":1,\"price\":\"39.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Oud Elixir Ruby Oud 100ml\",\"variantTitle\":null,\"isMandatory\":false},{\"productId\":8901009113382,\"variantId\":47388354085158,\"name\":\"Notorium EDP - 100ml\",\"productHandle\":\"notorium-edp\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/EditedPhotosRag-297.jpg?v=1705251869\",\"quantity\":1,\"price\":\"48.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Notorium EDP\",\"variantTitle\":\"100ml\",\"isMandatory\":false},{\"productId\":9527188652326,\"variantId\":49405394747686,\"name\":\"Afnan 9pm 100ml \",\"productHandle\":\"afnan-9pm\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/mattproduct3.jpg?v=1724793983\",\"quantity\":1,\"price\":\"27.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Afnan 9pm 100ml\",\"variantTitle\":null,\"isMandatory\":false},{\"productId\":14878708040058,\"variantId\":54881246970234,\"name\":\"Afnan Supremacy Collectors Edition 100ml \",\"productHandle\":\"afnan-supremacy-collectors-edition-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/AFNANSupremacy.jpg?v=1733969021\",\"quantity\":1,\"price\":\"47.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Afnan Supremacy Collectors Edition 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14878705811834,\"variantId\":54881242939770,\"name\":\"Lataffa Yara 100ml \",\"productHandle\":\"lataffa-yara-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/yara.jpg?v=1733969361\",\"quantity\":1,\"price\":\"22.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Lataffa Yara 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14878705942906,\"variantId\":54881243398522,\"name\":\"Lattafa Asad 100ml \",\"productHandle\":\"lataffa-asad-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/Asad.jpg?v=1733969649\",\"quantity\":1,\"price\":\"22.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Lattafa Asad 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14878747558266,\"variantId\":54881353204090,\"name\":\"Killian Angels Share 100ml \",\"productHandle\":\"killian-angels-share-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/angekl.jpg?v=1734119931\",\"quantity\":1,\"price\":\"279.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Killian Angels Share 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14878747787642,\"variantId\":54881353761146,\"name\":\"Xerjoff Erba Pura 100ml \",\"productHandle\":\"xerjoff-erba-pura-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/Erba-PUra.jpg?v=1734119693\",\"quantity\":1,\"price\":\"188.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Xerjoff Erba Pura 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14878748082554,\"variantId\":54881355039098,\"name\":\"Creed Aventus 100ml \",\"productHandle\":\"creed-aventus-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/creed-2.jpg?v=1734121076\",\"quantity\":1,\"price\":\"259.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Creed Aventus 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14881793278330,\"variantId\":54887802372474,\"name\":\"Rayhaan Elixir \",\"productHandle\":\"rayhaan-elixir\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/elixir.jpg?v=1734197270\",\"quantity\":1,\"price\":\"34.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Rayhaan Elixir\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14881792885114,\"variantId\":54887801651578,\"name\":\"Rayhaan Lion \",\"productHandle\":\"rayhaan-lion\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/ryad.jpg?v=1734197091\",\"quantity\":1,\"price\":\"34.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Rayhaan Lion\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14878750835066,\"variantId\":54881360511354,\"name\":\"Paco Rabanne 1 Million 100ml Gift Set \",\"productHandle\":\"paco-rabanne-1-million-100ml-gift-set\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/paco.jpg?v=1734121494\",\"quantity\":1,\"price\":\"74.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Paco Rabanne 1 Million 100ml Gift Set\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null}]","sequenceNo":null,"bundleType":"CLASSIC_BUILD_A_BOX","settings":null,"bundleProductId":null,"bundleVariantId":null,"productHandle":null,"discountId":null,"price":null,"numberOfProducts":0,"subscriptionBundlingEnabled":false,"subscriptionId":null,"minProductCount":2,"maxProductCount":5,"uniqueRef":"OFVJrd87aD","bundleRedirect":"CHECKOUT","customRedirectURL":null,"minOrderAmount":null,"tieredDiscount":"[{\"discountBasedOn\":\"QUANTITY\",\"value\":2,\"discount\":10,\"discountType\":\"PERCENTAGE\"},{\"discountBasedOn\":\"QUANTITY\",\"value\":3,\"discount\":15,\"discountType\":\"PERCENTAGE\"},{\"discountBasedOn\":\"QUANTITY\",\"value\":4,\"discount\":15,\"discountType\":\"PERCENTAGE\"},{\"discountBasedOn\":\"QUANTITY\",\"value\":5,\"discount\":15,\"discountType\":\"PERCENTAGE\"}]","productViewStyle":"QUICK_ADD","singleProductSettings":"null","trackInventory":false,"sellingPlanType":"BUNDLE_LEVEL","clearCart":"ENABLED","minPrice":null,"maxPrice":null,"externalBuildABoxId":null,"variantVisibilityType":"SHOW_VARIANTS_AS_OPTIONS","subTitle":"100ml Mix & Match","freeShipping":false,"themeType":"THEME_ONE","showBundleInProductPage":true,"combinedWithProductDiscount":true,"combinedWithShippingDiscount":true,"combinedWithOrderDiscount":true,"allowedTags":null,"restrictTags":null,"selectionType":"FLEXIBLE","bundleHtml":"null","discountedVariants":"null","allowedCountries":null,"appliesOn":"BOTH","purchaseRequirement":"NO_REQUIREMENT","productDiscountType":"EACH_PRODUCT","countrySelectionType":"ALL_COUNTRY","discountApplyApproach":"SHOPIFY_DISCOUNT_FUNCTION","discountedProductChooseType":"CHOOSE_ALL","internalName":"100ml Bundles","sections":"null","limitToUsePerCustomer":null,"discountedVariantSelectionLimit":null,"hideOneTimePurchase":null,"hideSubscriptionPurchase":null,"maxOrderAmount":null,"collectionData":null,"productSelectionType":"PRODUCT","tag":"appstle_bundles","productChooseType":null,"variantSelectionLimit":null,"discountTargetType":null,"enableSubscription":null,"subscriptionWidgetPosition":null,"subscribeTitle":null,"subscribeSubtitle":null,"subscriptionPreselected":null,"getYAppliesOn":null,"announcementBarMessage":null,"automaticDiscountNodeId":"gid://shopify/DiscountAutomaticNode/2211025322362","recurringCycleLimit":0},{"id":5097,"shop":"eauderagnar-co-uk.myshopify.com","name":"Centurion x Veni Vidi Vici","description":null,"status":"ACTIVE","customerIncludeTags":null,"discountType":"NO_DISCOUNT","discountValue":null,"products":"[{\"productId\":14863036744058,\"variantId\":null,\"price\":null,\"name\":\"Centurion 100ml\",\"productHandle\":\"centurion-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/DSC002262_1.jpg?v=1732748550\",\"quantity\":1,\"status\":\"ACTIVE\",\"options\":[]},{\"productId\":14863038644602,\"variantId\":null,\"price\":null,\"name\":\"Veni Vidi Vici\",\"productHandle\":\"veni-vidi-vici-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/DSC002242_1.jpg?v=1732748855\",\"quantity\":1,\"status\":\"ACTIVE\",\"options\":[]}]","variants":"[]","sequenceNo":null,"bundleType":"CLASSIC","settings":null,"bundleProductId":14863047131514,"bundleVariantId":null,"productHandle":"centurion-x-veni-vidi-vici","discountId":null,"price":null,"numberOfProducts":0,"subscriptionBundlingEnabled":false,"subscriptionId":null,"minProductCount":null,"maxProductCount":null,"uniqueRef":"XNvTFR8GcS","bundleRedirect":"CART","customRedirectURL":null,"minOrderAmount":null,"tieredDiscount":null,"productViewStyle":"QUICK_ADD","singleProductSettings":null,"trackInventory":false,"sellingPlanType":"BUNDLE_LEVEL","clearCart":"ENABLED","minPrice":89.98,"maxPrice":89.98,"externalBuildABoxId":null,"variantVisibilityType":"SHOW_VARIANTS_AS_OPTIONS","subTitle":null,"freeShipping":false,"themeType":"THEME_TWO","showBundleInProductPage":true,"combinedWithProductDiscount":true,"combinedWithShippingDiscount":true,"combinedWithOrderDiscount":true,"allowedTags":null,"restrictTags":null,"selectionType":"FLEXIBLE","bundleHtml":null,"discountedVariants":null,"allowedCountries":null,"appliesOn":"BOTH","purchaseRequirement":"NO_REQUIREMENT","productDiscountType":"EACH_PRODUCT","countrySelectionType":"ALL_COUNTRY","discountApplyApproach":"SHOPIFY_DISCOUNT_FUNCTION","discountedProductChooseType":"CHOOSE_ALL","internalName":"Centurion x Veni Vidi Vici","sections":null,"limitToUsePerCustomer":null,"discountedVariantSelectionLimit":null,"hideOneTimePurchase":null,"hideSubscriptionPurchase":null,"maxOrderAmount":null,"collectionData":null,"productSelectionType":null,"tag":"appstle_bundles","productChooseType":null,"variantSelectionLimit":null,"discountTargetType":null,"enableSubscription":null,"subscriptionWidgetPosition":null,"subscribeTitle":null,"subscribeSubtitle":null,"subscriptionPreselected":null,"getYAppliesOn":null,"announcementBarMessage":null,"automaticDiscountNodeId":null,"recurringCycleLimit":null},{"id":5738,"shop":"eauderagnar-co-uk.myshopify.com","name":"Free Shipping over £55","description":null,"status":"ACTIVE","customerIncludeTags":null,"discountType":"TIERED_DISCOUNT","discountValue":null,"products":"null","variants":"[{\"productId\":9527188652326,\"variantId\":49405394747686,\"name\":\"Afnan 9pm 100ml \",\"productHandle\":\"afnan-9pm\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/mattproduct3.jpg?v=1724793983\",\"quantity\":1,\"price\":\"27.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Afnan 9pm 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14863036744058,\"variantId\":54847933219194,\"name\":\"Centurion \",\"productHandle\":\"centurion-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/DSC002262_1.jpg?v=1732748550\",\"quantity\":1,\"price\":\"44.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Centurion\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":8901009113382,\"variantId\":47388354085158,\"name\":\"Notorium EDP - 100ml\",\"productHandle\":\"notorium-edp\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/EditedPhotosRag-297.jpg?v=1705251869\",\"quantity\":1,\"price\":\"44.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Notorium EDP\",\"variantTitle\":\"100ml\",\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14863038644602,\"variantId\":54847935676794,\"name\":\"Veni Vidi Vici \",\"productHandle\":\"veni-vidi-vici-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/DSC002242_1.jpg?v=1732748855\",\"quantity\":1,\"price\":\"44.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Veni Vidi Vici\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":9360508780838,\"variantId\":48701516677414,\"name\":\"Sky Blue Eau De Parfum \",\"productHandle\":\"sky-blue-eau-de-parfum\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/IMG_55527.jpg?v=1717083575\",\"quantity\":1,\"price\":\"44.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Sky Blue Eau De Parfum\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":9527189045542,\"variantId\":49405395173670,\"name\":\"One Love \",\"productHandle\":\"one-love\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/pawpals-1.jpg?v=1725564168\",\"quantity\":1,\"price\":\"44.99\",\"status\":\"ACTIVE\",\"productTitle\":\"One Love\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14878705942906,\"variantId\":54881243398522,\"name\":\"Lattafa Asad 100ml \",\"productHandle\":\"lataffa-asad-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/Asad.jpg?v=1733969649\",\"quantity\":1,\"price\":\"22.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Lattafa Asad 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14878705811834,\"variantId\":54881242939770,\"name\":\"Lataffa Yara 100ml \",\"productHandle\":\"lataffa-yara-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/yara.jpg?v=1733969361\",\"quantity\":1,\"price\":\"22.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Lataffa Yara 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14878748082554,\"variantId\":54881355039098,\"name\":\"Creed Aventus 100ml \",\"productHandle\":\"creed-aventus-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/creed-2.jpg?v=1734121076\",\"quantity\":1,\"price\":\"259.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Creed Aventus 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14878747787642,\"variantId\":54881353761146,\"name\":\"Xerjoff Erba Pura 100ml \",\"productHandle\":\"xerjoff-erba-pura-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/Erba-PUra.jpg?v=1734119693\",\"quantity\":1,\"price\":\"188.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Xerjoff Erba Pura 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14878747558266,\"variantId\":54881353204090,\"name\":\"Killian Angels Share 100ml \",\"productHandle\":\"killian-angels-share-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/angekl.jpg?v=1734119931\",\"quantity\":1,\"price\":\"279.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Killian Angels Share 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14881793278330,\"variantId\":54887802372474,\"name\":\"Rayhaan Elixir \",\"productHandle\":\"rayhaan-elixir\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/elixir.jpg?v=1734197270\",\"quantity\":1,\"price\":\"34.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Rayhaan Elixir\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14881792885114,\"variantId\":54887801651578,\"name\":\"Rayhaan Lion \",\"productHandle\":\"rayhaan-lion\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/ryad.jpg?v=1734197091\",\"quantity\":1,\"price\":\"34.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Rayhaan Lion\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null},{\"productId\":14878750671226,\"variantId\":54881359888762,\"name\":\"Montblanc Explorer Gift Set 100ml \",\"productHandle\":\"montblanc-explorer-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/mont.jpg?v=1734121858\",\"quantity\":1,\"price\":\"62.99\",\"status\":\"ACTIVE\",\"productTitle\":\"Montblanc Explorer Gift Set 100ml\",\"variantTitle\":null,\"isMandatory\":false,\"minQuantity\":null,\"maxQuantity\":null}]","sequenceNo":null,"bundleType":"SHIPPING_DISCOUNT","settings":null,"bundleProductId":null,"bundleVariantId":null,"productHandle":null,"discountId":null,"price":null,"numberOfProducts":0,"subscriptionBundlingEnabled":false,"subscriptionId":null,"minProductCount":null,"maxProductCount":null,"uniqueRef":"zkVMEMTCyJ","bundleRedirect":"CART","customRedirectURL":null,"minOrderAmount":55.0,"tieredDiscount":"[{\"discountBasedOn\":\"QUANTITY\",\"value\":2,\"discount\":10,\"discountType\":\"PERCENTAGE\"},{\"discountBasedOn\":\"QUANTITY\",\"value\":3,\"discount\":15,\"discountType\":\"PERCENTAGE\"},{\"discountBasedOn\":\"QUANTITY\",\"value\":4,\"discount\":15,\"discountType\":\"PERCENTAGE\"},{\"discountBasedOn\":\"QUANTITY\",\"value\":5,\"discount\":15,\"discountType\":\"PERCENTAGE\"},{\"discountBasedOn\":\"QUANTITY\",\"value\":6,\"discount\":15,\"discountType\":\"PERCENTAGE\"}]","productViewStyle":"QUICK_ADD","singleProductSettings":"null","trackInventory":false,"sellingPlanType":"BUNDLE_LEVEL","clearCart":"ENABLED","minPrice":null,"maxPrice":null,"externalBuildABoxId":null,"variantVisibilityType":"SHOW_VARIANTS_AS_OPTIONS","subTitle":null,"freeShipping":false,"themeType":"THEME_TWO","showBundleInProductPage":true,"combinedWithProductDiscount":true,"combinedWithShippingDiscount":true,"combinedWithOrderDiscount":true,"allowedTags":null,"restrictTags":null,"selectionType":"FLEXIBLE","bundleHtml":"null","discountedVariants":"null","allowedCountries":null,"appliesOn":"BOTH","purchaseRequirement":"MINIMUM_AMOUNT","productDiscountType":"SELECTED_PRODUCT","countrySelectionType":"ALL_COUNTRY","discountApplyApproach":"SHOPIFY_DISCOUNT_FUNCTION","discountedProductChooseType":"CHOOSE_ALL","internalName":"Free shipping over £55","sections":null,"limitToUsePerCustomer":null,"discountedVariantSelectionLimit":null,"hideOneTimePurchase":null,"hideSubscriptionPurchase":null,"maxOrderAmount":null,"collectionData":null,"productSelectionType":null,"tag":"appstle_bundles","productChooseType":null,"variantSelectionLimit":null,"discountTargetType":null,"enableSubscription":null,"subscriptionWidgetPosition":null,"subscribeTitle":null,"subscribeSubtitle":null,"subscriptionPreselected":null,"getYAppliesOn":null,"announcementBarMessage":null,"automaticDiscountNodeId":null,"recurringCycleLimit":null},{"id":16215,"shop":"eauderagnar-co-uk.myshopify.com","name":"Test Bundle","description":"Do Not Buy!","status":"ACTIVE","customerIncludeTags":null,"discountType":"NO_DISCOUNT","discountValue":null,"products":"[{\"productId\":14878748082554,\"variantId\":null,\"price\":null,\"name\":\"Creed Aventus 100ml\",\"productHandle\":\"creed-aventus-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/creed-2.jpg?v=1734121076\",\"quantity\":1,\"status\":\"ACTIVE\",\"options\":[]},{\"productId\":14628745773434,\"variantId\":null,\"price\":null,\"name\":\"Ajmal Orbiter 100ml\",\"productHandle\":\"ajmal-orbiter-100ml\",\"imageSrc\":\"https://cdn.shopify.com/s/files/1/0712/2996/4582/files/orbiter.jpg?v=1728408027\",\"quantity\":1,\"status\":\"ACTIVE\",\"options\":[]}]","variants":"[]","sequenceNo":null,"bundleType":"CLASSIC","settings":null,"bundleProductId":15114639507834,"bundleVariantId":null,"productHandle":"test-bundle","discountId":null,"price":null,"numberOfProducts":0,"subscriptionBundlingEnabled":false,"subscriptionId":null,"minProductCount":null,"maxProductCount":null,"uniqueRef":"hBq0bgEw2b","bundleRedirect":"CART","customRedirectURL":null,"minOrderAmount":null,"tieredDiscount":null,"productViewStyle":"QUICK_ADD","singleProductSettings":null,"trackInventory":false,"sellingPlanType":"BUNDLE_LEVEL","clearCart":"ENABLED","minPrice":289.98,"maxPrice":289.98,"externalBuildABoxId":null,"variantVisibilityType":"SHOW_VARIANTS_AS_INDIVIDUAL","subTitle":null,"freeShipping":false,"themeType":"THEME_TWO","showBundleInProductPage":true,"combinedWithProductDiscount":true,"combinedWithShippingDiscount":true,"combinedWithOrderDiscount":true,"allowedTags":null,"restrictTags":null,"selectionType":"FLEXIBLE","bundleHtml":null,"discountedVariants":null,"allowedCountries":null,"appliesOn":"BOTH","purchaseRequirement":"NO_REQUIREMENT","productDiscountType":"EACH_PRODUCT","countrySelectionType":"ALL_COUNTRY","discountApplyApproach":"SHOPIFY_DISCOUNT_FUNCTION","discountedProductChooseType":"CHOOSE_ALL","internalName":"Test Bundle","sections":"[{\"id\":1,\"name\":\"\",\"description\":\"\",\"minProductCount\":0,\"maxProductCount\":0,\"variants\":[]}]","limitToUsePerCustomer":null,"discountedVariantSelectionLimit":null,"hideOneTimePurchase":false,"hideSubscriptionPurchase":false,"maxOrderAmount":null,"collectionData":null,"productSelectionType":"PRODUCT","tag":"appstle_bundles","productChooseType":"CHOOSE_ALL","variantSelectionLimit":null,"discountTargetType":null,"enableSubscription":null,"subscriptionWidgetPosition":null,"subscribeTitle":null,"subscribeSubtitle":null,"subscriptionPreselected":null,"getYAppliesOn":null,"announcementBarMessage":null,"automaticDiscountNodeId":null,"recurringCycleLimit":null}];
window['isAppstleBuildABox'] = true;
window.sessionStorage.setItem('external-bundle-token', window.appstle_bundle_external_token);
const referenceBundle = blockElement.getAttribute('ref') || null;
const baseFilteredBundles = Array.isArray(babBundles) && babBundles?.length > 0 && babBundles.filter((rule) => {
if(!isCustomPage) {
rule.themeType = 'THEME_TWO';
}
if (rule?.bundleType === 'CLASSIC_BUILD_A_BOX' && rule?.status === 'ACTIVE' && (rule?.showBundleInProductPage === true || isCustomPage)) {
try {
const variants = JSON.parse(rule?.variants || '[]');
if(productId) return variants.some((variant) => parseInt(variant?.productId) === parseInt(productId));
if(!productId) return true;
} catch (e) {
console.error('Failed to parse JSON:', e);
return false;
}
}
return false;
}) || [];
const filteredBundles = isCustomPage && referenceBundle ? baseFilteredBundles?.filter(rule => rule?.uniqueRef === referenceBundle) : baseFilteredBundles;
if (filteredBundles?.length > 0 && blockElement) {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = "https://bundles-admin.appstle.com/content/build-a-box.css?v=1760355692209";
document.head.appendChild(link);
const script = document.createElement('script');
script.async = true;
script.src = "https://bundles-admin.appstle.com/app/build-a-box.bundle.js?v=1760355692209";
document.head.appendChild(script);
filteredBundles.forEach((rule) => {
const bundleDiv = document.createElement('div');
const uniqueRef = rule?.uniqueRef;
bundleDiv.setAttribute('appstle-dynamic-bundle-unique-reference', uniqueRef);
bundleDiv.className = isCustomPage ? `appstleBundlesCustomPage appstleCustomPageDynamicBundle-${uniqueRef}` : `appstleBundlesProductPage appstleDynamicBundle-${uniqueRef}`;
blockElement.appendChild(bundleDiv);
const appBlockDiv = document.querySelector(isCustomPage ? 'div[data-block-handle="appstle-bundle-dynamic-pricing-custom-page"]' : 'div[data-block-handle="appstle-bundle-product-page-build-a-box"]');
if (appBlockDiv) {
appBlockDiv.appendChild(blockElement);
}
});
}
};
const executeDynamicBundleLogic = () => {
const productId = "8966116147494";
const blockElement = document.getElementById('dynamic-pricing-bundle-product-page');
const blockElements = document.querySelectorAll('.ab-dynamic-bundle-custom-placement-selector');
if (blockElement && productId) {
blockElement.classList.add(`product-id-${productId}`);
executeDynamicBundleBlock({ blockElement, productId, isCustomPage: false });
}
if (blockElements && blockElements.length > 0) {
blockElements.forEach((element) => {
const productId = element?.getAttribute('data-product-id');
element.classList.add(`product-id-${productId}`);
executeDynamicBundleBlock({ blockElement: element, productId, isCustomPage: false });
});
}
const customPageBlockElement = document.getElementById('dynamic-pricing-bundle-custom-page');
if (customPageBlockElement) executeDynamicBundleBlock({ blockElement: customPageBlockElement, productId: null, isCustomPage: true });
}
document.addEventListener('DOMContentLoaded', executeDynamicBundleLogic);
})();
document.addEventListener('DOMContentLoaded', () => {
const bundleSettings = {"id":1840,"shop":"eauderagnar-co-uk.myshopify.com","showOnProductPage":null,"selector":null,"placement":null,"customCss":null,"customizeBundleOptionType":"RADIO","buyButtonSelector":null,"labels":"{\"productDiscountCombinedWithOrderDiscount\":true,\"bundleListViewDetailsButtonLabel\":\"View Details\",\"topBarFixedDiscountTitlePostfix\":\"{{currency}}{{discount}} off on shipping\",\"requiredLoginValidationLabel\":\"Please log in to purchase this bundle!\",\"volumeDiscountTypeLabel\":\"Volume Discount\",\"loginAlertLinkLabel\":\"Click here to login\",\"includedSubscriptionPlans\":\"\",\"breadCrumbProductsLabel\":\"Choose Products\",\"enableClassicBundleRecreation\":true,\"emptyProductImage\":\"https://cdn.shopify.com/s/files/1/0661/9224/4900/files/EmptyImage.jpg?v=1718447038\",\"enableAnnouncementBarAutoRotate\":true,\"reviewOrderInfoLabel\":\"\",\"productDiscountCombinedWithProductDiscount\":true,\"bundleMaximumQuantityLabel\":\"Add maximum up to {{maximum_quantity}} product\",\"volumeDiscountAppliesOnOneTimePurchase\":true,\"productAddToBundleLabel\":\"Add\",\"breadCrumbReviewBundleLabel\":\"Review Bundle\",\"enableScrollingToBundleSection\":false,\"orderNoteLabel\":\"Order Note\",\"showProductPerPage\":50,\"dynamicBundleDiscountCombinedWithShippingDiscount\":true,\"hidePurchaseOptionSelectLabel\":false,\"showPriceAsDecimals\":false,\"fixedDiscountText\":\"Enjoy a fixed discount of {{currency}}{{discount_value}} on your purchase!\",\"sectionTotalLabel\":\"Section Total\",\"fieldDisabledBackgroundColor\":\"#D1D5DB\",\"bundleTotalLabel\":\"Total\",\"disableRefreshSellingPlan\":false,\"checkInventoryQuantity\":false,\"showSubscriptionPlanDescription\":false,\"disableProductDescription\":false,\"fixedPricingBundleTypeLabel\":\"Fixed Pricing Bundle\",\"subscriptionAvailableLabel\":\"Subscription Available\",\"excludeSubscriptionPlans\":\"\",\"readLessText\":\"Read Less\",\"buyXGetYDiscountAppliesOnSubscription\":true,\"shippingDiscountLabel\":\"{{discount}}{{discount_type}} Shipping Discount\",\"selectedGiftProductProgressLabelText\":\"{{selected_product_quantity}} gift products added, The required quantity is {{required_product_quantity}}\",\"disableFitImage\":false,\"secondaryTextColor\":\"#ffffff\",\"bundleProductsQuantityLabel\":\"{{quantity}}x quantity\",\"buyXGetYDiscountCombinedWithProductDiscount\":true,\"tieredDiscountLabel\":\"{{discount_amount}}{{discount_type}} Discount\",\"buyXGetYQuantityValidationLabel\":\"Add {{product_quantity}} quantities of the gift product (Get Y)\",\"primaryTextColor\":\"#000000\",\"modalOpenOnAddToCart\":true,\"notApplicableForSubscribeAndSaveNotificationTitle\":\"Not applicable for subscribe & save\",\"customSignInLink\":\"\",\"productDiscountAppliesOnOneTimePurchase\":true,\"topBarDiscountUnlockTitlePrefix\":\"You've unlocked \",\"loginAlertTextLabel\":\"You need to login to purchase this bundle.\",\"buyXGetYChooseProductLabel\":\"Choose Product\",\"chooseAPlanLabel\":\"Choose Plan\",\"singleParentProductDirectRedirectToChildProducts\":true,\"buyXGetYFixedDiscountText\":\"Enjoy a fixed discount of {{discount_value}} {{currency}}\",\"primaryColor\":\"#000000\",\"buyXGetYGiftProductPriceVisibilityType\":\"UNIT_PRICE\",\"shippingDiscountRecurringCycleLimit\":0,\"volumeDiscountVariantSelectLabel\":\"Denominations\",\"chooseSourceProductValidationLabel\":\"Please choose source product!\",\"shippingDiscountAppliesOnSubscription\":true,\"volumeDiscountSpentAmountRewardsLabel\":\"Spend {{currency}}{{spent_amount}} and get {{discount}}{{discount_type}} discount!\",\"hideBundleToastNotification\":false,\"classicBundleTypeLabel\":\"Classic Bundle\",\"volumeDiscountRecurringCycleLimit\":0,\"bundleListDescription\":\"Explore our Bundles and Discounted Pricing and enjoy exclusive discounts when you buy products together\",\"getYNoProductSelectedLabel\":\"No gift product selected (Get Y)\",\"hideVariantSelectLabel\":false,\"availableOnlySubscriptionLabel\":\"Available Only On Subscription\",\"enableParentProductDetailButton\":false,\"bundleListTitle\":\"List of Bundles and Discounted Pricing\",\"chooseAssociatedProductsValidationLabel\":\"Please choose associated products!\",\"selectedSourceProductLabel\":\"Selected\",\"enableBuyXGetYWidgetMergeAsOptions\":false,\"volumeDiscountNextApplicableSpentAmountRewardsLabel\":\"Spend {{spent_amount}}{{currency}} get {{discount}}{{discount_type}}\",\"sectionNoProductSelectedValidationLabel\":\"No product selected for: {{section_name}}!\",\"bundlePageBackgroundColor\":\"#FAFAF9\",\"buyXQuantityValidationLabel\":\"Add {{product_quantity}} quantities of the product (Bux X)\",\"sectionMaximumQuantityValidationLabel\":\"Maximum quantity not selected for: {{section_name}}!\",\"volumeAmountDiscountSaveRewardsLabel\":\"Save {{currency}}{{discount}}!\",\"sectionLabel\":\"Section\",\"disabledTextColor\":\"#6B7280\",\"primaryHoverColor\":\"#000000\",\"shippingDiscountCombinedWithOrderDiscount\":true,\"defaultDiscountBarMessage\":\"Welcome to our store\",\"buyXGetYDiscountCombinedWithOrderDiscount\":true,\"bundleSubtotalLabel\":\"Subtotal\",\"reviewOrderDescription\":\"Check your items and select your required frequency plan\",\"dynamicBundleDiscountCombinedWithOrderDiscount\":true,\"volumeDiscountSaveRewardsLabel\":\"Save {{discount}}{{discount_type}}!\",\"addingProductsToBundle\":\"Adding products to bundle\",\"buyXGetYMergedWidgetTitle\":\"Select Buy X Get Y Discount\",\"bundleModalHeaderLabel\":\"Your Bundle({{total_quantity}})\",\"productAddedToBundleNotificationDescription\":\"{{product_title}} added to bundle.\",\"dynamicBundleDiscountAppliesOnSubscription\":true,\"productDiscountTypeLabel\":\"Product Discount\",\"bundleTopHtml\":\"\",\"proceedToCheckoutButtonText\":\"\",\"showDraftProduct\":false,\"switchSubscriptionLabel\":\"Subscribe & Save\",\"percentDiscountText\":\"Get {{discount_value}}% off on your purchase!\",\"discountUsageLimitExceedLabel\":\"You have exceeded the bundle usage limit\",\"reviewOrderLabel\":\"Review Bundle\",\"chooseSectionProductsLabel\":\"Choose Section Products\",\"primaryDisabledColor\":\"#333333\",\"bundleMinimumOrderAmountLabel\":\"Add minimum {{minimum_amount}} order amount\",\"dynamicBundleDiscountRecurringCycleLimit\":0,\"breadCrumbSelectSectionLabel\":\"Select Section\",\"loadMoreButtonLabel\":\"Load More\",\"bundleQuantityRewardsLabel\":\"Add {{quantity}} item, get {{discount}}{{discount_type}} discount\",\"shippingDiscountCombinedWithProductDiscount\":true,\"sellingPlanNameSortOrder\":\"ASC\",\"switchOnTimeLabel\":\"One Time\",\"volumeDiscountCombinedWithProductDiscount\":true,\"chooseProductsText\":\"Products\",\"productDetailsViewType\":\"SHOW_PRODUCT_POPUP\",\"enableManualBundleBlockIntegration\":false,\"volumeDiscountNextApplicableQuantityRewardsLabel\":\"Buy {{quantity}} get {{discount}}{{discount_type}}\",\"bundleCheckoutLabel\":\"Checkout\",\"productDiscountCombinedWithShippingDiscount\":true,\"skipSelectSectionPage\":false,\"productCardBackgroundColor\":\"#ffffff\",\"buyXGetYFreeLabel\":\"Free\",\"buttonBackgroundColor\":\"#000000\",\"dockbarHeadingLabel\":\"Bundle\",\"discountMessageInterval\":3000,\"sectionedBundleTypeLabel\":\"Sectioned Bundle\",\"buyXGetYAddToCartLabel\":\"Add to cart\",\"buyXGetYDiscountCombinedWithShippingDiscount\":true,\"dynamicBundleDiscountCodeText\":\"BUNDLE_DISCOUNT_{{bundle_id}}\",\"productDiscountAppliesOnSubscription\":true,\"selectedProgressLabelText\":\"{{total_bundle_items}} item added with a minimum quantity of {{minimum_quantity}}\",\"requiredBundleProductLabel\":\"Your bundle needs {{min_product_count}} more item(s).\",\"sellingPlanSelectionDropDownLabel\":\"Purchase Options\",\"buyXGetYPercentDiscountText\":\"Enjoy a percentage discount of {{discount_value}}%\",\"dockbarDescriptionLabel\":\"You're getting the most rewards!\",\"productDiscountRecurringCycleLimit\":0,\"preventClickableProductsOnCart\":false,\"enableProductDetailButton\":false,\"discountTargetType\":\"VARIANT\",\"buyXGetYDiscountTypeLabel\":\"Buy X Get Y Discount\",\"customOfferLink\":\"collections/all\",\"noItemsInBundle\":\"No items added to the bundle\",\"topBarPercentDiscountTitlePostfix\":\"{{discount}}% off on shipping\",\"variantSelectionDropDownLabel\":\"Variants\",\"chooseSectionLabel\":\"Choose Section\",\"dynamicPricingBundleTypeLabel\":\"Dynamic Pricing Bundle\",\"breadCrumbPlanLabel\":\"Select Plan\",\"showDynamicBundleOrderNote\":false,\"showOutOfStockProduct\":true,\"disabledSellingPlanSelectionValidation\":false,\"disableViewShopifyProduct\":false,\"bundleDiscountLabel\":\"Discount\",\"topBarDiscountRequiredAmountTitlePrefix\":\"Add {{currency}}{{remainingAmount}} more to unlock \",\"volumeDiscountAppliedQuantityRewardsLabel\":\"Applied: buy {{quantity}} get {{discount}}{{discount_type}}\",\"bundleNotEligibleLabel\":\"You're not eligible to purchase this bundle!\",\"reviewOrderProductsLabel\":\"Bundle Products\",\"outOfStockLabel\":\"Out Of Stock\",\"showUnitPrice\":false,\"buyXGetYFreeGiftDiscountText\":\"Enjoy the free product\",\"showDescriptionPopup\":true,\"readMoreText\":\"Read More\",\"totalBundleProductsAddedLabel\":\"{{total_bundle_items}} Products Added\",\"bundleMinimumQuantityLabel\":\"Add minimum {{minimum_quantity}} product\",\"noSourceProductSelectedLabel\":\"No source product selected.\",\"nonListedProductText\":\"Non-Listed\",\"buyXNoProductSelectedLabel\":\"No product selected (Buy X)\",\"volumeDiscountQuantityRewardsLabel\":\"Buy {{quantity}} quantity and get {{discount}}{{discount_type}} discount!\",\"freeShippingLabel\":\"Free Shipping\",\"previousButtonLabel\":\"Previous Step\",\"draftBundlePageTitle\":\"Oops! This bundle is temporarily unavailable.\",\"productDetailsMaximumDescriptionCount\":300,\"oneTimeOnlyLabel\":\"One time only\",\"buyXAnyNumberOfProductChooseLabel\":\"Choose any number of products\",\"productFilterConfig\":\"{\\\"enabled\\\":false,\\\"filters\\\":[]}\",\"volumeAmountDiscountQuantityRewardsLabel\":\"Buy {{quantity}} quantity and get {{currency}}{{discount}} discount!\",\"disableDiscountedPricingRedirectToCart\":false,\"volumeDiscountCombinedWithOrderDiscount\":true,\"dynamicBundleDiscountAppliesOnOneTimePurchase\":true,\"choosePlanButtonLabel\":\"Choose Plan\",\"enableAnnouncementBar\":false,\"bundleQuantityLabel\":\"{{quantity}}x\",\"showClassicBundleWidgetInChildProduct\":false,\"shippingDiscountAppliesOnOneTimePurchase\":true,\"classicBundleLinkLabel\":\"Go to the Classic Bundle\",\"topBarDiscountRequiredQuantityTitlePrefix\":\"Add {{remainingQuantity}} more item(s) to unlock \",\"bundleDetailsLabel\":\"Your bundle:\",\"buyXGetYDiscountAppliesOnOneTimePurchase\":true,\"volumeDiscountAppliedSpentAmountRewardsLabel\":\"Applied: spend {{spent_amount}}{{currency}} get {{discount}}{{discount_type}}\",\"enableAutoRemoveRelevantBundleItemInCart\":false,\"bundleModalShowRewardsLabel\":\"Show all rewards\",\"topBarFreeShippingTitlePostfix\":\"free shipping\",\"buyXGetYDiscountRecurringCycleLimit\":0,\"cartAndCheckoutMandatoryProductValidationMessage\":\"This bundle or discount must include all required products and they cannot be removed.\",\"volumeAmountDiscountSpentAmountRewardsLabel\":\"Spend {{currency}}{{spent_amount}} and get {{currency}}{{discount}} discount!\",\"notApplicableForOneTimeNotificationTitle\":\"Not applicable for one time\",\"showDiscountToNonEligibleCustomers\":false,\"primaryDisabledTextColor\":\"#ffffff\",\"draftBundlePageSubTitle\":\"In the meantime, check out our latest offers and discounts!\",\"volumeDiscountCombinedWithShippingDiscount\":true,\"bundleSpentAmountRewardsLabel\":\"Spent {{spent_amount}} worth of items, get {{discount}}{{discount_type}} discount\",\"nextButtonLabel\":\"Next Step\",\"classicBundleDescriptionLabel\":\"Your bundle contains the following products.\",\"bundleBottomHtml\":\"\",\"sectionMinimumQuantityValidationLabel\":\"Minimum quantity not selected for: {{section_name}}!\",\"volumeDiscountAppliesOnSubscription\":true,\"dynamicBundleDiscountCombinedWithProductDiscount\":true,\"buyXGetYAnyNumberOfGiftProductLabel\":\"Choose any number of gift products\",\"descriptionLength\":200,\"bundleDiscountNote\":\"Discounts will be applied at checkout.\",\"bundleModalCloseRewardsLabel\":\"Close all rewards\",\"dockbarCurrentRewardLabel\":\"You got {{discount_amount}}{{discount_type}} discount\",\"productDetailsAddToBundleLabel\":\"Add to bundle\",\"cartAndCheckoutQuantityValidationMessage\":\"Orders must match the quantity range: Min {{min_quantity}}, Max {{max_quantity}}\",\"bundleNoProductSelectedLabel\":\"No product selected\",\"checkoutInfoLabel\":\"Add products from each section to enable the add to cart button.\",\"enableShowMultipleImages\":false,\"redirectToCartPageOnCartIconClick\":true,\"freeShippingDiscountCodeText\":\"FREE_SHIPPING_{{bundle_id}}\",\"customOfferLinkButtonLabel\":\"Explore Offers\",\"oneTimePurchaseLabel\":\"One Time Purchase\",\"bundleMaximumOrderAmountLabel\":\"Add maximum {{maximum_amount}} order amount\",\"enableBundleProductAscOrderView\":true,\"productAddedToBundleNotificationTitle\":\"Added to bundle\",\"showClassicBundleProductVariant\":false,\"customHtmlInject\":\"[]\",\"breadCrumbReviewSectionLabel\":\"Review Section\"}","bundleTopHtml":"","bundleBottomHtml":"","proceedToCheckoutButtonText":"","chooseProductsText":"Products","productAddToBundleLabel":"Add","productDetailsAddToBundleLabel":"Add to bundle","productDetailsMaximumDescriptionCount":300,"variantSelectionDropDownLabel":"Variants","sellingPlanSelectionDropDownLabel":"Purchase Options","dockbarHeadingLabel":"Bundle","dockbarCurrentRewardLabel":"You got {{discount_amount}}{{discount_type}} discount","dockbarDescriptionLabel":"You're getting the most rewards!","bundleModalHeaderLabel":"Your Bundle({{total_quantity}})","bundleModalShowRewardsLabel":"Show all rewards","bundleModalCloseRewardsLabel":"Close all rewards","bundleQuantityRewardsLabel":"Add {{quantity}} item, get {{discount}}{{discount_type}} discount","bundleSpentAmountRewardsLabel":"Spent {{spent_amount}} worth of items, get {{discount}}{{discount_type}} discount","bundleQuantityLabel":"{{quantity}}x","bundleSubtotalLabel":"Subtotal","bundleDiscountLabel":"Discount","bundleTotalLabel":"Total","bundleCheckoutLabel":"Checkout","bundleMinimumQuantityLabel":"Add minimum {{minimum_quantity}} product","bundleMaximumQuantityLabel":"Add maximum up to {{maximum_quantity}} product","bundleMinimumOrderAmountLabel":"Add minimum {{minimum_amount}} order amount","oneTimePurchaseLabel":"One Time Purchase","noItemsInBundle":"No items added to the bundle","modalOpenOnAddToCart":true,"productAddedToBundleNotificationTitle":"Added to bundle","productAddedToBundleNotificationDescription":"{{product_title}} added to bundle.","chooseAPlanLabel":"Choose Plan","nextButtonLabel":"Next Step","previousButtonLabel":"Previous Step","chooseSourceProductValidationLabel":"Please choose source product!","chooseAssociatedProductsValidationLabel":"Please choose associated products!","choosePlanButtonLabel":"Choose Plan","selectedSourceProductLabel":"Selected","noSourceProductSelectedLabel":"No source product selected.","reviewOrderLabel":"Review Bundle","reviewOrderDescription":"Check your items and select your required frequency plan","reviewOrderProductsLabel":"Bundle Products","reviewOrderInfoLabel":"","orderNoteLabel":"Order Note","selectedProgressLabelText":"{{total_bundle_items}} item added with a minimum quantity of {{minimum_quantity}}","availableOnlySubscriptionLabel":"Available Only On Subscription","subscriptionAvailableLabel":"Subscription Available","oneTimeOnlyLabel":"One time only","switchOnTimeLabel":"One Time","switchSubscriptionLabel":"Subscribe & Save","breadCrumbPlanLabel":"Select Plan","breadCrumbProductsLabel":"Choose Products","breadCrumbReviewBundleLabel":"Review Bundle","showDescriptionPopup":true,"tieredDiscountLabel":"{{discount_amount}}{{discount_type}} Discount","emptyProductImage":"https://cdn.shopify.com/s/files/1/0661/9224/4900/files/EmptyImage.jpg?v=1718447038","outOfStockLabel":"Out Of Stock","notApplicableForOneTimeNotificationTitle":"Not applicable for one time","notApplicableForSubscribeAndSaveNotificationTitle":"Not applicable for subscribe & save","disableProductDescription":false,"descriptionLength":200,"readLessText":"Read Less","readMoreText":"Read More","bundleNoProductSelectedLabel":"No product selected","customHtmlInject":"[]","bundleDetailsLabel":"Your bundle:","bundleDiscountNote":"Discounts will be applied at checkout.","fixedDiscountText":"Enjoy a fixed discount of {{currency}}{{discount_value}} on your purchase!","percentDiscountText":"Get {{discount_value}}% off on your purchase!","hideVariantSelectLabel":false,"hidePurchaseOptionSelectLabel":false,"primaryColor":"#000000","primaryTextColor":"#000000","secondaryTextColor":"#ffffff","primaryHoverColor":"#000000","primaryDisabledColor":"#333333","primaryDisabledTextColor":"#ffffff","fieldDisabledBackgroundColor":"#D1D5DB","disabledTextColor":"#6B7280","volumeDiscountSaveRewardsLabel":"Save {{discount}}{{discount_type}}!","volumeDiscountQuantityRewardsLabel":"Buy {{quantity}} quantity and get {{discount}}{{discount_type}} discount!","volumeDiscountSpentAmountRewardsLabel":"Spend {{currency}}{{spent_amount}} and get {{discount}}{{discount_type}} discount!","volumeDiscountAppliedQuantityRewardsLabel":"Applied: buy {{quantity}} get {{discount}}{{discount_type}}","volumeDiscountAppliedSpentAmountRewardsLabel":"Applied: spend {{spent_amount}}{{currency}} get {{discount}}{{discount_type}}","volumeDiscountNextApplicableQuantityRewardsLabel":"Buy {{quantity}} get {{discount}}{{discount_type}}","volumeDiscountNextApplicableSpentAmountRewardsLabel":"Spend {{spent_amount}}{{currency}} get {{discount}}{{discount_type}}","addingProductsToBundle":"Adding products to bundle","freeShippingLabel":"Free Shipping","requiredBundleProductLabel":"Your bundle needs {{min_product_count}} more item(s).","enableProductDetailButton":false,"requiredLoginValidationLabel":"Please log in to purchase this bundle!","bundleNotEligibleLabel":"You're not eligible to purchase this bundle!","loginAlertTextLabel":"You need to login to purchase this bundle.","loginAlertLinkLabel":"Click here to login","customSignInLink":"","shippingDiscountLabel":"{{discount}}{{discount_type}} Shipping Discount","classicBundleDescriptionLabel":"Your bundle contains the following products.","singleParentProductDirectRedirectToChildProducts":true,"buyXGetYFixedDiscountText":"Enjoy a fixed discount of {{discount_value}} {{currency}}","buyXGetYPercentDiscountText":"Enjoy a percentage discount of {{discount_value}}%","buyXGetYFreeGiftDiscountText":"Enjoy the free product","buyXGetYAddToCartLabel":"Add to cart","buyXGetYFreeLabel":"Free","disableDiscountedPricingRedirectToCart":false,"nonListedProductText":"Non-Listed","preventClickableProductsOnCart":false,"buyXGetYChooseProductLabel":"Choose Product","showSubscriptionPlanDescription":false,"volumeAmountDiscountSaveRewardsLabel":"Save {{currency}}{{discount}}!","volumeAmountDiscountQuantityRewardsLabel":"Buy {{quantity}} quantity and get {{currency}}{{discount}} discount!","volumeAmountDiscountSpentAmountRewardsLabel":"Spend {{currency}}{{spent_amount}} and get {{currency}}{{discount}} discount!","enableManualBundleBlockIntegration":false,"cartAndCheckoutQuantityValidationMessage":"Orders must match the quantity range: Min {{min_quantity}}, Max {{max_quantity}}","dynamicBundleDiscountCodeText":"BUNDLE_DISCOUNT_{{bundle_id}}","discountUsageLimitExceedLabel":"You have exceeded the bundle usage limit","disableViewShopifyProduct":false,"redirectToCartPageOnCartIconClick":true,"sectionLabel":"Section","chooseSectionLabel":"Choose Section","chooseSectionProductsLabel":"Choose Section Products","breadCrumbSelectSectionLabel":"Select Section","breadCrumbReviewSectionLabel":"Review Section","checkoutInfoLabel":"Add products from each section to enable the add to cart button.","sectionNoProductSelectedValidationLabel":"No product selected for: {{section_name}}!","sectionMinimumQuantityValidationLabel":"Minimum quantity not selected for: {{section_name}}!","sectionMaximumQuantityValidationLabel":"Maximum quantity not selected for: {{section_name}}!","dynamicBundleDiscountCombinedWithProductDiscount":true,"dynamicBundleDiscountCombinedWithShippingDiscount":true,"dynamicBundleDiscountCombinedWithOrderDiscount":true,"volumeDiscountCombinedWithProductDiscount":true,"volumeDiscountCombinedWithShippingDiscount":true,"volumeDiscountCombinedWithOrderDiscount":true,"productDiscountCombinedWithProductDiscount":true,"productDiscountCombinedWithShippingDiscount":true,"productDiscountCombinedWithOrderDiscount":true,"buyXGetYDiscountCombinedWithProductDiscount":true,"buyXGetYDiscountCombinedWithShippingDiscount":true,"buyXGetYDiscountCombinedWithOrderDiscount":true,"shippingDiscountCombinedWithProductDiscount":true,"shippingDiscountCombinedWithOrderDiscount":true,"showDynamicBundleOrderNote":false,"bundleMaximumOrderAmountLabel":"Add maximum {{maximum_amount}} order amount","buyXGetYQuantityValidationLabel":"Add {{product_quantity}} quantities of the gift product (Get Y)","selectedGiftProductProgressLabelText":"{{selected_product_quantity}} gift products added, The required quantity is {{required_product_quantity}}","draftBundlePageTitle":"Oops! This bundle is temporarily unavailable.","draftBundlePageSubTitle":"In the meantime, check out our latest offers and discounts!","customOfferLink":"collections/all","customOfferLinkButtonLabel":"Explore Offers","enableParentProductDetailButton":false,"sectionTotalLabel":"Section Total","skipSelectSectionPage":false,"buyXGetYGiftProductPriceVisibilityType":"UNIT_PRICE","defaultSelectedPurchaseOptionSwitch":null,"defaultSelectedPurchaseOption":null,"discountTargetType":"VARIANT","enableShowMultipleImages":false,"buyXGetYAnyNumberOfGiftProductLabel":"Choose any number of gift products","showDiscountToNonEligibleCustomers":false,"dynamicBundleDiscountRecurringCycleLimit":0,"dynamicBundleDiscountAppliesOnOneTimePurchase":true,"dynamicBundleDiscountAppliesOnSubscription":true,"volumeDiscountRecurringCycleLimit":0,"volumeDiscountAppliesOnOneTimePurchase":true,"volumeDiscountAppliesOnSubscription":true,"productDiscountRecurringCycleLimit":0,"productDiscountAppliesOnOneTimePurchase":true,"productDiscountAppliesOnSubscription":true,"buyXGetYDiscountRecurringCycleLimit":0,"buyXGetYDiscountAppliesOnOneTimePurchase":true,"buyXGetYDiscountAppliesOnSubscription":true,"shippingDiscountRecurringCycleLimit":0,"shippingDiscountAppliesOnOneTimePurchase":true,"shippingDiscountAppliesOnSubscription":true,"buyXNoProductSelectedLabel":"No product selected (Buy X)","getYNoProductSelectedLabel":"No gift product selected (Get Y)","buyXQuantityValidationLabel":"Add {{product_quantity}} quantities of the product (Bux X)","buyXAnyNumberOfProductChooseLabel":"Choose any number of products","freeShippingDiscountCodeText":"FREE_SHIPPING_{{bundle_id}}","includedSubscriptionPlans":"","excludeSubscriptionPlans":"","enableBuyXGetYWidgetMergeAsOptions":false,"buyXGetYMergedWidgetTitle":"Select Buy X Get Y Discount","showClassicBundleProductVariant":false,"showProductPerPage":50,"loadMoreButtonLabel":"Load More","enableBundleProductAscOrderView":true,"cartAndCheckoutMandatoryProductValidationMessage":"This bundle or discount must include all required products and they cannot be removed.","sellingPlanNameSortOrder":"ASC","showVendorName":null,"disableFitImage":false,"enableAutoRemoveRelevantBundleItemInCart":false,"enableBundleProductFilter":null,"productFilterConfig":"{\"enabled\":false,\"filters\":[]}","enableMaxDiscountCap":null,"maxDiscountCapValue":null,"classicBundleLinkLabel":"Go to the Classic Bundle","showPriceAsDecimals":false,"showClassicBundleWidgetInChildProduct":false,"showOutOfStockProduct":true,"showDraftProduct":false,"totalBundleProductsAddedLabel":"{{total_bundle_items}} Products Added","bundleProductsQuantityLabel":"{{quantity}}x quantity","showUnitPrice":false,"productDetailsViewType":"SHOW_PRODUCT_POPUP","disableRefreshSellingPlan":false,"enableShippingDiscountBar":null,"enableVolumeDiscountBar":null,"defaultDiscountBarMessage":"Welcome to our store","discountMessageInterval":3000,"addedBundleToTheCart":null,"disabledSellingPlanSelectionValidation":false,"volumeDiscountVariantSelectLabel":"Denominations","enableScrollingToBundleSection":false,"enableClassicBundleRecreation":true,"topBarDiscountUnlockTitlePrefix":"You've unlocked ","topBarDiscountRequiredAmountTitlePrefix":"Add {{currency}}{{remainingAmount}} more to unlock ","topBarDiscountRequiredQuantityTitlePrefix":"Add {{remainingQuantity}} more item(s) to unlock ","topBarPercentDiscountTitlePostfix":"{{discount}}% off on shipping","topBarFixedDiscountTitlePostfix":"{{currency}}{{discount}} off on shipping","topBarFreeShippingTitlePostfix":"free shipping","checkInventoryQuantity":false,"hideBundleToastNotification":false,"enableBundleRecreation":null,"enableAnnouncementBar":false,"enableAnnouncementBarAutoRotate":true,"bundleListTitle":"List of Bundles and Discounted Pricing","bundleListDescription":"Explore our Bundles and Discounted Pricing and enjoy exclusive discounts when you buy products together","bundleListViewDetailsButtonLabel":"View Details","classicBundleTypeLabel":"Classic Bundle","dynamicPricingBundleTypeLabel":"Dynamic Pricing Bundle","fixedPricingBundleTypeLabel":"Fixed Pricing Bundle","sectionedBundleTypeLabel":"Sectioned Bundle","volumeDiscountTypeLabel":"Volume Discount","productDiscountTypeLabel":"Product Discount","buyXGetYDiscountTypeLabel":"Buy X Get Y Discount","bundlePageBackgroundColor":"#FAFAF9","productCardBackgroundColor":"#ffffff","buttonBackgroundColor":"#000000","showPrepaidPerDeliveryPrice":null,"prepaidPerDeliveryPriceLabel":null};
if (!bundleSettings?.enableAutoRemoveRelevantBundleItemInCart) return;
const originalFetch = window.fetch;
window.fetch = async function (...args) {
const [resource, config] = args;
const isRemoveRequest = typeof resource === 'string' &&
resource.includes('/cart/change') &&
config?.method === 'POST';
if (!isRemoveRequest) {
return originalFetch(...args);
}
let bodyData = {};
try {
bodyData = JSON.parse(config.body);
} catch (e) {
console.warn('Failed to parse request body', e);
return originalFetch(...args);
}
if (bodyData.quantity !== 0) {
return originalFetch(...args);
}
const cart = await fetch('/cart.js').then(res => res.json());
const removingLineIndex = parseInt(bodyData?.line) - 1;
const removingItem = cart?.items[removingLineIndex];
const bundleId = removingItem?.properties?.["_appstle-bb-id"];
if (!bundleId) {
return originalFetch(...args);
}
const updates = {};
cart?.items.forEach(item => {
if (item?.properties?.["_appstle-bb-id"] === bundleId) {
updates[item?.key] = 0;
}
});
const hasNonBundleItems = cart?.items.some(item => !item?.properties?.["_appstle-bb-id"]);
await fetch('/cart/update.js', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ updates })
});
if (hasNonBundleItems) {
const sections = bodyData?.sections;
const sectionsUrl = bodyData?.sections_url || '/cart';
const htmlResponse = await fetch(
`/?sections=${sections.join(',')}§ions_url=${encodeURIComponent(sectionsUrl)}`
);
const htmlData = await htmlResponse.json();
return new Response(JSON.stringify({
status: 'bundle removed',
sections: htmlData
}), {
status: 200,
headers: { 'Content-Type': 'application/json' }
});
}
return originalFetch(...args);
};
});
document.addEventListener('DOMContentLoaded', () => {
const originalFetch = window.fetch;
window.fetch = async function (...args) {
const [resource, config] = args;
const isCartUpdate = typeof resource === 'string' &&
(resource.includes('/cart/change') || resource.includes('/cart/update')) &&
config?.method === 'POST';
if (!isCartUpdate) {
return originalFetch(...args);
}
const response = await originalFetch(...args);
const cart = await fetch('/cart.js').then(res => res.json());
const hasBundleItems = cart?.items.some(item =>
item?.properties?.["_appstle-bb-id"]
);
const freeProductItems = cart?.items.filter(item =>
item?.properties?.["_appstle_free_product"] === true ||
item?.properties?.["_appstle_free_product"] === "true"
);
if (!hasBundleItems && freeProductItems.length > 0) {
const updates = {};
freeProductItems.forEach(item => {
updates[item?.key] = 0;
});
await fetch('/cart/update.js', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ updates })
});
let bodyData = {};
try {
bodyData = JSON.parse(config.body);
} catch (e) {
}
if (bodyData?.sections) {
const sections = bodyData.sections;
const sectionsUrl = bodyData.sections_url || '/cart';
const htmlResponse = await fetch(
`/?sections=${sections.join(',')}§ions_url=${encodeURIComponent(sectionsUrl)}`
);
const htmlData = await htmlResponse.json();
return new Response(JSON.stringify({
status: 'free product removed',
sections: htmlData
}), {
status: 200,
headers: { 'Content-Type': 'application/json' }
});
}
}
return response;
};
});