window.fgData={"offers":[{"id":11757,"shop_id":5070,"offer_name":"Free Gift with $75","offer_description":null,"promotion_message":"Choose Your Free Gift with $75 Purchase","start_time":"2023-09-12T17:56:57.000000Z","end_time":"2023-12-09T04:59:00.000000Z","condition_relationship":null,"gift_settings":{"discount":{"type":"percentage","value":100},"auto_add_all_gifts":false,"customer_will_receive":"number_of_gift_can_receive","cal_gift_for_other_rules":false,"number_of_gift_can_receive":1},"gift_should_the_same":{"type":"variant","status":false},"sub_conditions":null,"priority":1,"stop_lower_priority":false,"status":true,"loading":"not_running","gift_products":[{"title":"\u00bb Brown Sugar Babe Holiday Gift Bag Set (3) (100% off)","original_product_handle":"brown-sugar-babe-holiday-gift-bag-set-3","clone_product_handle":"brown-sugar-babe-holiday-gift-bag-set-3-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/products\/IZZYANDLIV-1886.jpg?v=1633824856","product_shopify_id":7678523703432,"original_product_shopify_id":5196612468872,"variants":[{"id":119555,"gift_product_id":46122,"discount_type":"percentage","discount_value":100,"original_price":14,"original_compare_at_price":null,"original_product_shopify_id":5196612468872,"original_variant_shopify_id":34570070130824,"price":0,"product_shopify_id":7678523703432,"variant_shopify_id":41520402694280,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/products\/IZZYANDLIV-1886.jpg?v=1633824856","pivot":{"offer_id":11757,"gift_item_id":119555},"gift_product":{"id":46122,"shop_id":5070,"title":"\u00bb Brown Sugar Babe Holiday Gift Bag Set (3) (100% off)","original_product_handle":"brown-sugar-babe-holiday-gift-bag-set-3","clone_product_handle":"brown-sugar-babe-holiday-gift-bag-set-3-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/products\/IZZYANDLIV-1886.jpg?v=1633824856","product_shopify_id":7678523703432,"original_product_shopify_id":5196612468872,"created_at":"2023-11-30T05:14:04.000000Z","updated_at":"2023-11-30T05:14:04.000000Z"}}]},{"title":"\u00bb Fly Girls Holiday Gift Bag Set (3) (100% off)","original_product_handle":"fky-girls-holiday-gift-bag-set-3","clone_product_handle":"fky-girls-holiday-gift-bag-set-3-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/products\/IZZYANDLIV-1889.jpg?v=1633824918","product_shopify_id":7678523867272,"original_product_shopify_id":5196612665480,"variants":[{"id":119557,"gift_product_id":46124,"discount_type":"percentage","discount_value":100,"original_price":14,"original_compare_at_price":null,"original_product_shopify_id":5196612665480,"original_variant_shopify_id":34570071277704,"price":0,"product_shopify_id":7678523867272,"variant_shopify_id":41520403546248,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/products\/IZZYANDLIV-1889.jpg?v=1633824918","pivot":{"offer_id":11757,"gift_item_id":119557},"gift_product":{"id":46124,"shop_id":5070,"title":"\u00bb Fly Girls Holiday Gift Bag Set (3) (100% off)","original_product_handle":"fky-girls-holiday-gift-bag-set-3","clone_product_handle":"fky-girls-holiday-gift-bag-set-3-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/products\/IZZYANDLIV-1889.jpg?v=1633824918","product_shopify_id":7678523867272,"original_product_shopify_id":5196612665480,"created_at":"2023-11-30T05:14:09.000000Z","updated_at":"2023-11-30T05:14:09.000000Z"}}]},{"title":"\u00bb Sista Smoothie Portable Mini Blender\/Juicer (100% off)","original_product_handle":"portable-mini-blender","clone_product_handle":"portable-mini-blender-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3590.jpg?v=1687872734","product_shopify_id":7685713166472,"original_product_shopify_id":7405569278088,"variants":[{"id":120718,"gift_product_id":46797,"discount_type":"percentage","discount_value":100,"original_price":30,"original_compare_at_price":null,"original_product_shopify_id":7405569278088,"original_variant_shopify_id":41170661638280,"price":0,"product_shopify_id":7685713166472,"variant_shopify_id":41547864277128,"variant_title":"PURPLE","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/products\/IZZYANDLIV-3587.jpg?v=1701527960","pivot":{"offer_id":11757,"gift_item_id":120718},"gift_product":{"id":46797,"shop_id":5070,"title":"\u00bb Sista Smoothie Portable Mini Blender\/Juicer (100% off)","original_product_handle":"portable-mini-blender","clone_product_handle":"portable-mini-blender-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3590.jpg?v=1687872734","product_shopify_id":7685713166472,"original_product_shopify_id":7405569278088,"created_at":"2023-12-02T14:39:21.000000Z","updated_at":"2023-12-02T14:39:21.000000Z"}},{"id":120720,"gift_product_id":46797,"discount_type":"percentage","discount_value":100,"original_price":30,"original_compare_at_price":null,"original_product_shopify_id":7405569278088,"original_variant_shopify_id":41170661671048,"price":0,"product_shopify_id":7685713166472,"variant_shopify_id":41547864309896,"variant_title":"PINK","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3590.jpg?v=1690491921","pivot":{"offer_id":11757,"gift_item_id":120720},"gift_product":{"id":46797,"shop_id":5070,"title":"\u00bb Sista Smoothie Portable Mini Blender\/Juicer (100% off)","original_product_handle":"portable-mini-blender","clone_product_handle":"portable-mini-blender-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3590.jpg?v=1687872734","product_shopify_id":7685713166472,"original_product_shopify_id":7405569278088,"created_at":"2023-12-02T14:39:21.000000Z","updated_at":"2023-12-02T14:39:21.000000Z"}},{"id":120721,"gift_product_id":46797,"discount_type":"percentage","discount_value":100,"original_price":30,"original_compare_at_price":null,"original_product_shopify_id":7405569278088,"original_variant_shopify_id":41170661703816,"price":0,"product_shopify_id":7685713166472,"variant_shopify_id":41547864342664,"variant_title":"GREEN","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3583.jpg?v=1690491921","pivot":{"offer_id":11757,"gift_item_id":120721},"gift_product":{"id":46797,"shop_id":5070,"title":"\u00bb Sista Smoothie Portable Mini Blender\/Juicer (100% off)","original_product_handle":"portable-mini-blender","clone_product_handle":"portable-mini-blender-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3590.jpg?v=1687872734","product_shopify_id":7685713166472,"original_product_shopify_id":7405569278088,"created_at":"2023-12-02T14:39:21.000000Z","updated_at":"2023-12-02T14:39:21.000000Z"}},{"id":120722,"gift_product_id":46797,"discount_type":"percentage","discount_value":100,"original_price":30,"original_compare_at_price":null,"original_product_shopify_id":7405569278088,"original_variant_shopify_id":41170661736584,"price":0,"product_shopify_id":7685713166472,"variant_shopify_id":41547864375432,"variant_title":"BLUE","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3588.jpg?v=1690491921","pivot":{"offer_id":11757,"gift_item_id":120722},"gift_product":{"id":46797,"shop_id":5070,"title":"\u00bb Sista Smoothie Portable Mini Blender\/Juicer (100% off)","original_product_handle":"portable-mini-blender","clone_product_handle":"portable-mini-blender-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3590.jpg?v=1687872734","product_shopify_id":7685713166472,"original_product_shopify_id":7405569278088,"created_at":"2023-12-02T14:39:21.000000Z","updated_at":"2023-12-02T14:39:21.000000Z"}}]}],"offer_conditions":[{"id":12291,"offer_id":11757,"is_multiply":null,"min_amount":"75.00","max_amount":null,"product_narrow":[],"unit":"money"}],"gift_items":[{"id":119555,"gift_product_id":46122,"discount_type":"percentage","discount_value":100,"original_price":14,"original_compare_at_price":null,"original_product_shopify_id":5196612468872,"original_variant_shopify_id":34570070130824,"price":0,"product_shopify_id":7678523703432,"variant_shopify_id":41520402694280,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/products\/IZZYANDLIV-1886.jpg?v=1633824856","pivot":{"offer_id":11757,"gift_item_id":119555},"gift_product":{"id":46122,"shop_id":5070,"title":"\u00bb Brown Sugar Babe Holiday Gift Bag Set (3) (100% off)","original_product_handle":"brown-sugar-babe-holiday-gift-bag-set-3","clone_product_handle":"brown-sugar-babe-holiday-gift-bag-set-3-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/products\/IZZYANDLIV-1886.jpg?v=1633824856","product_shopify_id":7678523703432,"original_product_shopify_id":5196612468872,"created_at":"2023-11-30T05:14:04.000000Z","updated_at":"2023-11-30T05:14:04.000000Z"}},{"id":119557,"gift_product_id":46124,"discount_type":"percentage","discount_value":100,"original_price":14,"original_compare_at_price":null,"original_product_shopify_id":5196612665480,"original_variant_shopify_id":34570071277704,"price":0,"product_shopify_id":7678523867272,"variant_shopify_id":41520403546248,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/products\/IZZYANDLIV-1889.jpg?v=1633824918","pivot":{"offer_id":11757,"gift_item_id":119557},"gift_product":{"id":46124,"shop_id":5070,"title":"\u00bb Fly Girls Holiday Gift Bag Set (3) (100% off)","original_product_handle":"fky-girls-holiday-gift-bag-set-3","clone_product_handle":"fky-girls-holiday-gift-bag-set-3-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/products\/IZZYANDLIV-1889.jpg?v=1633824918","product_shopify_id":7678523867272,"original_product_shopify_id":5196612665480,"created_at":"2023-11-30T05:14:09.000000Z","updated_at":"2023-11-30T05:14:09.000000Z"}},{"id":120718,"gift_product_id":46797,"discount_type":"percentage","discount_value":100,"original_price":30,"original_compare_at_price":null,"original_product_shopify_id":7405569278088,"original_variant_shopify_id":41170661638280,"price":0,"product_shopify_id":7685713166472,"variant_shopify_id":41547864277128,"variant_title":"PURPLE","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/products\/IZZYANDLIV-3587.jpg?v=1701527960","pivot":{"offer_id":11757,"gift_item_id":120718},"gift_product":{"id":46797,"shop_id":5070,"title":"\u00bb Sista Smoothie Portable Mini Blender\/Juicer (100% off)","original_product_handle":"portable-mini-blender","clone_product_handle":"portable-mini-blender-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3590.jpg?v=1687872734","product_shopify_id":7685713166472,"original_product_shopify_id":7405569278088,"created_at":"2023-12-02T14:39:21.000000Z","updated_at":"2023-12-02T14:39:21.000000Z"}},{"id":120720,"gift_product_id":46797,"discount_type":"percentage","discount_value":100,"original_price":30,"original_compare_at_price":null,"original_product_shopify_id":7405569278088,"original_variant_shopify_id":41170661671048,"price":0,"product_shopify_id":7685713166472,"variant_shopify_id":41547864309896,"variant_title":"PINK","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3590.jpg?v=1690491921","pivot":{"offer_id":11757,"gift_item_id":120720},"gift_product":{"id":46797,"shop_id":5070,"title":"\u00bb Sista Smoothie Portable Mini Blender\/Juicer (100% off)","original_product_handle":"portable-mini-blender","clone_product_handle":"portable-mini-blender-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3590.jpg?v=1687872734","product_shopify_id":7685713166472,"original_product_shopify_id":7405569278088,"created_at":"2023-12-02T14:39:21.000000Z","updated_at":"2023-12-02T14:39:21.000000Z"}},{"id":120721,"gift_product_id":46797,"discount_type":"percentage","discount_value":100,"original_price":30,"original_compare_at_price":null,"original_product_shopify_id":7405569278088,"original_variant_shopify_id":41170661703816,"price":0,"product_shopify_id":7685713166472,"variant_shopify_id":41547864342664,"variant_title":"GREEN","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3583.jpg?v=1690491921","pivot":{"offer_id":11757,"gift_item_id":120721},"gift_product":{"id":46797,"shop_id":5070,"title":"\u00bb Sista Smoothie Portable Mini Blender\/Juicer (100% off)","original_product_handle":"portable-mini-blender","clone_product_handle":"portable-mini-blender-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3590.jpg?v=1687872734","product_shopify_id":7685713166472,"original_product_shopify_id":7405569278088,"created_at":"2023-12-02T14:39:21.000000Z","updated_at":"2023-12-02T14:39:21.000000Z"}},{"id":120722,"gift_product_id":46797,"discount_type":"percentage","discount_value":100,"original_price":30,"original_compare_at_price":null,"original_product_shopify_id":7405569278088,"original_variant_shopify_id":41170661736584,"price":0,"product_shopify_id":7685713166472,"variant_shopify_id":41547864375432,"variant_title":"BLUE","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3588.jpg?v=1690491921","pivot":{"offer_id":11757,"gift_item_id":120722},"gift_product":{"id":46797,"shop_id":5070,"title":"\u00bb Sista Smoothie Portable Mini Blender\/Juicer (100% off)","original_product_handle":"portable-mini-blender","clone_product_handle":"portable-mini-blender-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0736\/4179\/files\/IZZYANDLIV-3590.jpg?v=1687872734","product_shopify_id":7685713166472,"original_product_shopify_id":7405569278088,"created_at":"2023-12-02T14:39:21.000000Z","updated_at":"2023-12-02T14:39:21.000000Z"}}]}],"settings":{"auto_add_gift":true,"compare_gift_price_with_product":false,"cal_gift_discount":"current_price","select_one_gift_price":true,"not_show_gift_if_already_on_cart":false,"sync_quantity":"stop_offer","manual_input_inventory":false,"using_draft_order":false,"delete_gift_after_turn_off_offer":true,"gift_format":"same_as_original_products","admin_api_access_token":null,"notify_via_email":{"email":"nicole@izzyandliv.com","status":true},"barcode":"blank","type_seo":"number_integer","mode_override_checkout":"default"},"appearance":{"gift_slider":{"general":{"gift_popup_title":"YOU JUST EARNED A FREE GIFT! CHOOSE IT BELOW.","add_to_cart_btn_title":"Add to cart","running_text":"","select_gift_btn":"choose option","show_product_title":true,"show_variant_title":true,"show_pagination":true,"show_gift_for_customer":"by_products","number_product_slider":3},"color":{"gift_slider_title_color":"#41D4CD","product_title_color":"#000000","original_price_color":"#121212","discounted_price_color":"#ea5455","add_to_cart_color":"#FFFFFF","add_to_cart_btn_color":"#ea5455"},"others":{"hidden_brand_mark":true,"gift_img_size":"&width=480&height=480"},"disable_slider_checkbox":{"enable":true,"time":10,"text":"Don't show this offer again"}},"gift_icon":{"gift_icon_path":"images\/fg-icons\/fg-icon-orange.png","shopify_gift_icon_path":"fg-icon-orange.png","product_page":{"gift_icon":{"status":true,"size":"50"},"gift_thumbnail":{"status":true,"size":"100","title":"Free Gift"}},"collection_page":{"status":true,"size":"50"}},"promotion_message":{"show_on_cart_page":true,"text_color":"#ffffff","background_color":"#F72119"},"today_offer":{"widget_icon_path":"images\/widget-icons\/widget-icon-2.png","shopify_widget_icon_path":"widget-icon-2.png","widget_info":{"show_widget":true,"widget_position":"bottom_right","widget_title":"TODAY OFFER","widget_subtitle":"Claim these exclusive offers today"}}},"integration":{"transcy":{"install":false}}};/* END_FG_DATA */
const _0x394b85=_0xc50d;function _0xc50d($,x){let t=_0x1e96();return(_0xc50d=function($,x){return t[$-=295]})($,x)}function _0x1e96(){let $=["sca-gift-icon","55140zTwSaS","transcy","max_amount","money","customize.select_variant_button_text","count_down_quantity","maxOfferPriority",".original-price del","cloneNode","financial_status","discount_type","toFixed","bogos-gift","startsWith","widget_title","sca_link_checkout","offer.offer_title_","fetch","disable_async_process_fg",'.btn-add-to-cart[data-variant="','
\n
\n
\n
{{ sca_fg_offer_title }} \n
\n
\n \n \n \n \n \n
',"sections_cart",'\n
\n \n \n \n \n \n
',"find","classList","cart-drawer .mini-cart__inner .mini-cart__empty, cart-drawer .mini-cart__inner .mini-cart__main","click","fg-xhr:open","sca-fg-form-icon-product-page","select_gift_btn","track","show_gift_for_customer","values","and","Loading...","detail","70%","div[class*=hs-cart-drawer] .hs-site-cart-popup-layout, #MinimogCartDrawer m-cart-drawer-items, #CartDrawer > .drawer__inner","sca_add_url","product_types","SLIDECART_UPDATE","closeCart","body","m-cart-drawer",".fg-secomapp-handle-add-to-cart","d-block","#upCartStickyButton .upcart-sticky-cart-quantity-icon-text","fg-app:start","function","GET","#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg","product_has_icon","do_not_add_freegift_attribute","cookie","offer.cart_message_","settings","error","block","POST","disable_override_xhr","max_gifts_can_get","fgAppearancePromotionMessage","upcartRegisterAddToCart","end_time","productsByID","bottom_right","{{sca_min_total}}","discounted_price","price_max","thumbnail","#sca-fg-today-offer-widget","END_PROCESS_CART","not type checkout btn","isArray","gift_products","shopify_cart","sca-is-visible-fg","fg_decimal","customize.gift_slider_title","#sca-fg-today-offer-iframe .sca-fg-body .sca-fg-offers .sca-fg-offer","bottom_left","{{sca_min_quantity}}","SLIDECART_CLOSE","GIFT_UPDATED","tool","GIFT_ICON_SECTION_ID","api","hide","RENDER_CART_MESSAGE","redirected","readystatechange","order_created_from","some","#MainContent, #mainContent, #main, .main-content","SLIDECART_OPEN","CART_MSG_ITEM_SECTION_ID",'\n {{ fg_cart_message }}\n
',"/?sections=","parseFromString","disableShopify_getCart","GIFTS_CART_SECTION","QUERY_SELECTOR","mouseleave","#fg-gift-thumbnail-title","variants_quantity",".satcb-cs-checkout-btn, .hs-checkout-purchase","total_spend_on_order_history","width","enable_process_offer_loading","toggle",'a[href*="/collections/sca_fg"]',"product_vendors","START_RENDER_APP","fg-gift-items","belongs_to_offer","Cannot define custom loading with type: ","giftsAvailable","set","&width=480&height=480","$","cartDrawer","customize.widget_title","status","removeItem","[sca_root_checkout]",".freegifts-main-container .glider-next","parentNode","Error decoding cookie:","currency","customerLocation","Out of stock",".dropdown-menu","fg-xhr:send","FGSECOMAPP_HIDDEN_GIFT_POPUP","#82868b","fg-gifts:gift-icon","product_page","sca_update_url","#sca_fg_gift_thumbnail_section","Slide Cart - qikify","TODAY_OFFER_SECTION_ID","data-template","iCart","using_draft_order","FGSECOMAPP","gift_slider","cal_gift_for_other_rules",".dots-thumbnail","done","sca_fg_innerHTML","available","className","Default Title","#sca-fg-today-offer-iframe .sca-fg-body .sca-fg-offers","TODAY_OFFER_ITEM_SECTION","tabindex","gift_icon_path","variants_has_gift","sca-promotion-message-layout","CUSTOM_EVENTS","product_shopify_id","input[value='Check Out'] a.checkout-link",'\n \n \n \n ',"event auto process gifts with cart","scrollItem","maxWidth","#sca_fg_disable_slider_section","customize.add_to_cart_button","replace","sca-fg-form-thumbnail-product-page","openCart","childElementCount","hidden_brand_mark","CART_AUTO_UPDATED","substring",".f-product-single__title, .m-product-title","compressToBase64","subscribe","80%","sca_offers_added","SLIDECART_OPENED","STICKY_CART_UPDATE","Select your free gift!","arrOfferAdded",'\n Loading... \n
',"parentElement","sca_fg_value_checkout","add","hidden","item_count","original_product_handle","SATCB","open",'\n {{ sca_fg_cart_message_items_section }}\n
','\n
\n
\n
\n
\n \n {{ fg_original_price }}\n \n {{ fg_gift_price }} \n
\n \n
\n
\n \n {{ fg_variant_title }}\n \n \n
\n \n
\n \n
\n {{ fg_add_to_cart }}\n \n
\n
\n
',"Monster Cart","left","price","count_down_value","sync_quantity","specific_link_address","country_code","addEventListener",".gift-original-url","sca_transcy_locale","auto_add_all_gifts",".product-card, #product-grid .grid__item, .product-grid .grid__item, .card-list .card-list__column","trim","cart","variant_title","sca_cart_xhr","#sca-gift-icon","hasDoneProcessCheckout",".sca_handle_button_checkout","50%","fg-app:end","sca-d-none","[data-open]","39MRjzGa","application/json","Select variant","arrGiftsData",".fg-secomapp-cart-item-promotion",'{{ fg_gift_thumbnail_title }}
\n\n \n
\n
\n {{ sca_fg_gift_thumbnail_items_section }}\n
\n \n
\n
\n
\n
',"#CartPopup .styles_CartPreview__card__KX-WB, #qikify-stickycart-v2-app .qsc2-drawer-wrapper > div:nth-child(2)","cal_gift_price","visibility","sca-show","now","#sca_fg_gift_thumbnail_items_section","fetchCheckoutEvents","updateCart","gifts_valid","unit","sca_amount_fixed","stringify","dataset",".product_name, .product-title, .product__title, .product-single__title, .tt-title, .ProductMeta__Title","headers","sca_fetch_cart","charAt","Add gift to cart successfully!","number_of_products","fgAppearance","text","compare_gift_price",' \n
\n \n \n \n \n \n ',"join","GIFTS_POPUP_SECTION","#fg-gift-thumbnail-title .glider-next","Widgets","data-fg-checkout-btn","GIFT_ICON_SECTION","indexOf","not_show_gift_if_already_on_cart","100%","PRODUCT_HAS_GIFTS","filter","stop_offer","end","&sca_shop_name=","FG_OVERRIDE_XHR_OPEN","unicart","auto_add_gift","message","sca_process_gifts","number_of_order",".sca-fg-tooltip","entries","CartJS","root","original_price","variantId","TODAY_OFFER_CHANGE","color","sort","removeChild","backgroundColor","src","fg-cart:end-process","MinimogEvents","disable_slider_checkbox","parse","/cart/change","#fg-gift-items .btn-add-to-cart","getElementById","sca-today-offer-widget-left","customer","60%","icartSideCartOpenEvent","items","have_not_got_gift_from_this_offer","fgAppearanceGiftIcon","/cart.js?sca_fetch&","original_product_shopify_id","USD","value_customer_tags","sca-gift-thumbnail","clearInterval","offer_name","flat","#shopify-section-header #cart-icon-bubble, .shopify-section.section-header #cart-icon-bubble","total_spent_on_last_order","HS_SLIDE_CART_UPDATE","original_variant_shopify_id","stopPropagation","event add gift to cart from popup","key","#sca_fg_cart_message_section","inventory_management","input[name='checkout'], button[name='checkout'], input[name='goto_pp'], button[name='goto_pp']","insertBefore","SHOW_GIFT_SLIDER","fg-checkout:end","variant","65hAAiNb","href","40rXngzp","788564cQZkkS","offer_root","?sca_attr_cart","offer","SLIDECART - HQ","scaCountRenderEventCheckout","NumberFormat","positions","appendChild","hasOwnProperty","/cart/update","fgIntegration","#close-fg-toast","fit-content","sca-gift-icon-collection-img","getCart","gift_icon","productsInPage","setAttribute","monster_refresh","gifts","$$$$","sca_clone_checkout",".fg-secomapp-cart-icon","start","remove","replaceAll","by_variants","info","#sca_fg_today_offer_item_section","defineProperty","priority","/cart/add",".m-product-form--wrapper",".product-item-thumbnail","freegifts-main-page-container","condition_relationship","#fg-gift-thumbnail-title .glider-prev","6px 0","keys","default","querySelector","call","type_customer_locations",".sca-gift-icon-collection-page","GIFT_ADDED","auto add all gifts from {","time","split","textContent",".satcb-cs .satcb-cs-top-container, #monster-upsell-cart #monster-cart-wrapper div[class*=custom_scrollbar]","55740xyEPpy","secomappGetCartRunning","createElement","other_products","vendor","product_type","https://geoip.secomtech.com/?json","then",".dots",'\n
✕ \n
\n {{ fg_slider_title }}\n
\n
\n
\n
\n ❮ \n
\n
\n ❯ \n
\n
\n
\n \n {{ sca_fg_disable_slider_section }}\n
',"contains","tags","toString","reduce","sub_conditions","mousemove","Claim these exclusive offers today","product_narrow","ele","type","sca-gift-icon-collection-page","isDelayShowAdded","CART_MSG_ITEM_SECTION","formatter","gift_settings","show_pagination","apply","log","HS_SLIDE_CART_CLOSE","fg-fetch:override","FG_OVERRIDE_FETCH","others","fgCallback","data-price","appearance","/cart","application/json;","END_RENDER_APP","text/html","integration","searchParams","include","hasAttribute","151396WsauWz","manual_input_inventory","show_on_cart_page","-sca_clone_freegift","format","CART_MSG_SECTION","product_id","show_product_title","TODAY_OFFER_ITEM_SECTION_ID","GIFT_ITEM_SECTION","Can not fetch all body","condition_result","sca_locale","add_to_cart_btn_color","cal_gift_discount","sca_deplay_cart_msg","checked","/products/","START_VALIDATE_CHECKOUT","reload",".fg-secomapp-cart-drawer","#sca-gift-thumbnail","select_one_gift_price","Free Gift","number","setItem","sca_fg_title_product_gift_icon_query","scaHandleConfigValue","variant_id","sca_catch","gift_should_the_same","#sca_fg_today_offer_widget",'\n
\n {{ fg_slider_title }}\n
\n
\n
\n
\n ❮ \n
\n
\n ❯ \n
\n
\n
\n \n {{ sca_fg_disable_slider_section }}\n
',"sections","Rebuy","handle","sca_slidecart_tcc","not using draft order","none","position","active ","current_variant","start_time","&data_checkout=","forEach","unshift","Update cart.attributes ","value_customer_locations","stop_lower_priority","catch","url","sca_fg_codes","sca-today-offer-right","collections","(Discount)","free-gift-icon","freegift_attributes","compare_gift_price_with_product",' \n ',"clone_checkout","GIFTS_CART_SECTION_ID","application/liquid","enable","sca-fg-icon-collection-page","append","email","orders","T4SThemeSP","UpCart - AfterSell","concat","Unicart","CART_MSG_SECTION_ID","show_widget","variant_shopify_id","sca_text_notify_success","products","Show","data-offer","1569141qabVDX","#secomapp_freegifts_version","sca_fg_cart_drawer_query","sca-today-offer-widget-right","string","Add to cart","change","boolean","product","test","?sca_process_gifts","renderPromotionMessage","gift_thumbnail","number_of_gift_can_receive","get","general","current_product",".satcb-cs-close","location","keyup",".freegifts-main-container .glider-prev","variants","END_VALIDATE_CHECKOUT",".btn-add-to-cart.sca-fg-out-stock","#fg-gift-items .dropdown > .dropdown-menu > li","args","trigger_body","GIFT_ITEM_SECTION_ID","XMLHttpRequest","1316252uxohrF",".sca-promotion-message-layout","slice","sca-offer-archived","max","padding","customer_order_history","pageX","compare_at_price","quantity","getToFetch","dispatchEvent","sca-fg-out-stock","sca_fg_form_checkbox_button_query","GIFT_SELECT_SECTION","prepend","undefined","fgAppearanceGiftSlider","offers","Slide Cart - Heysenior",".cc-product-list .product-block, .collection-list.grid .grid__item, .collection-grid.grid .grid__item","Error listening XHR send","} {","drawer-component#Drawer-Cart cart-drawer","sca-hide","today_offer","locale","class","fgSettings","CartSlider","gift_img_size","currentTarget","getItem","relative","querySelectorAll","fg_codes","TODAY OFFER","value","widget_info","SHOPIFY_CART","sca-today-offer-left","checkIsBlockCheckout","sca_root_checkout","top",'\n \n ',"failed to parse cart section ","variants_ids","#sca_fg_section_gifts_popup","sca_fg_btn_gift_thumbnail_query","sca-fg-tooltip","openSlider","prototype","sections_url","includes","paid","Sticky Cart - Codeinero","#sca_fg_cart_section_gifts_slider","last_total","getAttribute","total_price","giftsAdded","product_collections","initializeForXHR","isReachConditions","is_multiply","offer_id","number_product_slider","collection_page","getTime",".btn-add-to-cart","fg-gifts:added",".sca-fg-notifications","Theme FoxEcom","Cart","240","gift_popup_title","addGiftToCart","fgData","#sca_fg_section_gift_item","type_customer_tags","style","sca-fg-today-offer-title-tooltip","Rivets Cart","customLoadingCheckout","promotion_message","isUpdateCart","GIFT_THUMBNAIL_ITEMS_SECTION_ID","length","gift_items",'',"customize.widget_subtitle","compressToEncodedURIComponent",' ',"pathname","arrGiftsRemove","sca_handle_checkout","offer_conditions","DONE","widget_subtitle","send","mouseenter","gifts_id","final_price","input[name='goto_gc'], button[name='goto_gc'], a[href$='checkout'], form[action='/checkout'] input[type='submit']",'',"4059cJDZVl","&sca_products_handle=","disabled","scaCustomLoadingCheckout","freegiftProxy","stopImmediatePropagation","map","checkout","Failed to get customer location","[type='submit'][name='add'], [type='button'][name='add'], [data-add-to-cart], [data-action='add-to-cart']","#sca_fg_gift_icon_section","/cart/add.js","openDrawer","enable_toast_added","fg_fetch_attributes","title","data-variant","every","target","hasDiscount",".gift-price",'',"sca_add_gift","subscription_products","data-original-id","min_amount","innerHTML","selling_plan","json","enable_check_variants_has_gift","active","sca_price","#sca-spinner-checkout","#sca_fg_cart_message_items_section","push","839298JirPXU","timeoutId","div","customize.product_page_message","button.new_checkout_button, input[value='Checkout'], input[value='Checkout'], input[value='Check out']","display","onCartDrawerUpdate","widget_position","TODAY_OFFER_WIDGET","removeAttribute","fgAppearanceTodayOffer","pageY","cartItems",".icartCheckoutBtn, .rebuy-cart__checkout-button, .qsc2-checkout-button, #mu-checkout-button","upcartOnCartOpened","auto add gift: {","mode_override_checkout","selling_plan_allocation","sca_fg_img_collection_gift_icon_query","HS_SLIDE_CART_OPEN","routes","en-US","giftsAddedInvalid","original_compare_at_price","removeEventListener","MinimogTheme"];return(_0x1e96=function(){return $})()}if(!function($,x){let t=_0xc50d,e=$();for(;;)try{let a=parseInt(t(331))/1+parseInt(t(672))/2+parseInt(t(917))/3*(parseInt(t(425))/4)+parseInt(t(328))/5*(parseInt(t(699))/6)+-parseInt(t(532))/7+parseInt(t(330))/8*(parseInt(t(503))/9)+parseInt(t(382))/10*(-parseInt(t(637))/11);if(446623===a)break;e.push(e.shift())}catch(i){e.push(e.shift())}}(_0x1e96,446623),window[_0x394b85(609)]?.appearance?.[_0x394b85(347)]?.gift_icon_path&&fgGiftIcon&&(window.fgData[_0x394b85(416)].gift_icon[_0x394b85(855)]=fgGiftIcon),window[_0x394b85(609)]?.appearance?.[_0x394b85(557)]?.shopify_widget_icon_path&&fgWidgetIconsObj){let $=window.fgData[_0x394b85(416)][_0x394b85(557)].shopify_widget_icon_path;window[_0x394b85(609)][_0x394b85(416)][_0x394b85(557)].widget_icon_path=fgWidgetIconsObj[$]??$}!function $(){let x=_0x394b85;window[x(843)]={},FGSECOMAPP.maxOfferPriority=null,FGSECOMAPP[x(684)]=Object[x(731)](Shopify?.[x(684)]??{}),FGSECOMAPP[x(550)]=[],FGSECOMAPP[x(560)]=window[x(609)]?.[x(754)]??{},FGSECOMAPP[x(942)]=window[x(609)]?.[x(416)]??{},FGSECOMAPP[x(342)]=window.fgData?.[x(421)]??{},FGSECOMAPP[x(549)]=FGSECOMAPP[x(942)]?.gift_slider?.[x(518)],FGSECOMAPP.fgAppearanceGiftIcon=FGSECOMAPP[x(942)]?.[x(347)],FGSECOMAPP[x(760)]=FGSECOMAPP[x(942)]?.[x(616)],FGSECOMAPP[x(682)]=FGSECOMAPP[x(942)]?.[x(557)],FGSECOMAPP.fgCallback=[],FGSECOMAPP.secomappGetCartRunning=!1,FGSECOMAPP[x(882)]=[],FGSECOMAPP[x(336)]=0,FGSECOMAPP[x(573)]=!1,FGSECOMAPP.scaHandleConfigValue={...Shopify?.[x(452)]},FGSECOMAPP.reRenderCartCustom=Shopify?.reRenderCartCustom??void 0,FGSECOMAPP[x(640)]=Shopify?.[x(640)]??void 0,FGSECOMAPP[x(348)]={},FGSECOMAPP[x(763)]={},FGSECOMAPP[x(911)]=!1,FGSECOMAPP[x(720)]={},FGSECOMAPP[x(617)]=!1,FGSECOMAPP.SHOPIFY_CART={},FGSECOMAPP[x(668)]=Shopify?.sca_fg_price??x(766),FGSECOMAPP[x(633)]=[],FGSECOMAPP[x(858)]={SHOW_GIFT_SLIDER:"fg-gifts:show-slider",PRODUCT_HAS_GIFTS:x(834),GIFT_UPDATED:"fg-gifts:updated",GIFT_ADDED:x(602),CART_AUTO_UPDATED:"fg-cart:auto-updated",START_PROCESS_CART:"fg-cart:start-process",END_PROCESS_CART:x(978),START_VALIDATE_CHECKOUT:"fg-checkout:start",END_VALIDATE_CHECKOUT:x(326),START_RENDER_APP:x(746),END_RENDER_APP:x(914),FG_OVERRIDE_FETCH:x(411),FG_OVERRIDE_XHR_OPEN:x(726),FG_OVERRIDE_XHR_SEND:x(831),RENDER_TODAY_OFFER:"fg-today-offer:render",TODAY_OFFER_CHANGE:"fg-today-offer:success",RENDER_CART_MESSAGE:"fg-messages:render"};let t={GIFTS_CART_SECTION_ID:x(588),GIFTS_CART_SECTION:x(457),GIFTS_POPUP_SECTION_ID:x(579),GIFTS_POPUP_SECTION:x(391),GIFT_ITEM_SECTION_ID:x(610),GIFT_ITEM_SECTION:x(893),GIFT_SELECT_SECTION_ID:"#sca_fg_variant_select_section",GIFT_SELECT_SECTION:'\n {{ fg_variant_title }}\n ',DISABLE_SLIDER_SECTION_ID:x(865),DISABLE_SLIDER_SECTION:x(658),CART_MSG_SECTION_ID:x(321),CART_MSG_SECTION:x(892),CART_MSG_ITEM_SECTION_ID:x(670),CART_MSG_ITEM_SECTION:x(795),GIFT_THUMBNAIL_SECTION_ID:x(837),GIFT_THUMBNAIL_SECTION:x(922),GIFT_THUMBNAIL_ITEMS_SECTION_ID:x(928),GIFT_THUMBNAIL_ITEMS_SECTION:x(621),GIFT_ICON_SECTION_ID:x(647),GIFT_ICON_SECTION:x(624),TODAY_OFFER_SECTION_ID:"#sca_fg_today_offer_section",TODAY_OFFER_SECTION:x(636),TODAY_OFFER_ITEM_SECTION_ID:x(360),TODAY_OFFER_ITEM_SECTION:x(719),TODAY_OFFER_WIDGET_ID:x(456),TODAY_OFFER_WIDGET:x(483)},e=()=>{let $=x,t=FGSECOMAPP.fgAppearance?.[$(844)],e=t?.others?.[$(871)],a=!C(t)&&void 0!==e&&!e;return a?$(576):""},a=()=>{let $=x,e=FGSECOMAPP[$(942)]?.[$(844)],a=e?.[$(980)]??{};document[$(372)](".freegifts-main-container .slide-container #sca-hidden-gift-popup .sca-disable-checkbox")?.[$(441)]&&localStorage.setItem($(832),""+Date[$(927)]());let i=document.querySelector(t.DISABLE_SLIDER_SECTION_ID)?.[$(663)]??t.DISABLE_SLIDER_SECTION;return a?.[$(487)]?i[$(357)](/{{\s*fg_text_disable_slider\s*}}/gm,h(m(a[$(943)]??"Don't show this offer again","customize.disable_slider_text"))):""},{fetch:i}=window,r=()=>{let $=x;"fg-checkout"!==document.querySelector("#secomapp_freegifts_version")?.[$(590)]("data-template")&&(window[$(716)]=async(...x)=>{let t=$;try{let e=x[0];if(!(e?.[t(585)](t(363))||e?.[t(585)](t(296))||e?.includes(t(341))))return setTimeout(function(){$3()},1e3),await i(...x);{let a=e?.includes(t(363)),r=e?.[t(585)](t(296))||e?.[t(585)](t(341));n(x[1]);let c=200,o=null,s=await i(...x)[t(389)]($=>{let x=t;return(o=$,c=$[x(821)],$[x(788)])?$:$[x(665)]()})[t(474)]($=>{console.error($)});if(document[t(543)](new CustomEvent(FGSECOMAPP[t(858)][t(412)],{detail:{args:x,response:o}})),a&&x[1][t(937)]?.[t(659)]&&200!==c){let l=JSON[t(295)](x[1][t(741)])?.id,_=document[t(372)](t(718)+l+'"]');_.innerText=t(829),_[t(723)].contains("sca-fg-out-stock")||_.classList[t(886)](t(544)),_[t(639)]=!0,_[t(612)][t(537)]="",_[t(612)][t(976)]=t(833),document[t(566)](t(601))[t(469)]($=>{let x=t;parseInt($[x(590)](x(653)))===l||$[x(723)][x(392)](x(544))||($.disabled=!1,$[x(612)][x(976)]=FGSECOMAPP[x(942)]?.[x(844)]?.[x(973)]?.[x(438)]??"#7367f0")})}if(200!==c&&(a&&x[1][t(937)]?.[t(659)]||r&&x[1].headers?.sca_process_gifts))return d(s,o);if(Shopify?.[t(717)])return $s([e,...x[t(534)](1)])[t(389)](),d(s,o);if(await $s([e,...x[t(534)](1)]),r&&x[1]?.[t(937)]?.[t(964)])return d(s,o);let g=r?FGSECOMAPP.SHOPIFY_CART??s??{}:s;return await f(x,s,g),d(g,o)}}catch(u){return await i(...x)}})},c=window[x(531)].prototype[x(891)],o=window[x(531)][x(583)].send,s=()=>{let $=x;Shopify?.[$(758)]||(window.XMLHttpRequest[$(583)].open=function(x,t){let e=$;try{document[e(543)](new CustomEvent(FGSECOMAPP[e(858)][e(960)],{detail:{fgXHR:this}}))}catch(a){console[e(755)]("Error listening XHR open",a)}finally{c[e(408)](this,arguments)}},window[$(531)].prototype[$(631)]=function(x){let t=$;try{document[t(543)](new CustomEvent(FGSECOMAPP[t(858)][t(960)],{detail:{fgXHR:this}}));let{_url:e}=this;(e?.includes("/cart/add")||e?.[t(585)](t(296))||e?.[t(585)](t(341)))&&this.addEventListener(t(789),function(){let $=t;this.readyState===XMLHttpRequest[$(629)]&&200===this[$(821)]&&$s([e,{}]).then()})}catch(a){console[t(755)](t(553),a)}finally{o[t(373)](this,x)}})};FGSECOMAPP[x(594)]=()=>{let $=x;try{if(Shopify?.[$(798)]||typeof Shopify?.[$(346)]!==$(747))return;Shopify[$(346)]=async function(x){let t=$;if(!FGSECOMAPP[t(383)]){FGSECOMAPP[t(383)]=!0,await $s(["Shopify.getCart",{}]);let e=await $r(t(909));typeof x===t(747)&&(0>FGSECOMAPP[t(414)][t(952)](x)&&FGSECOMAPP.fgCallback[t(671)](x),x(e)),FGSECOMAPP.secomappGetCartRunning=!1}FGSECOMAPP[t(929)]()},"undefined"!=typeof ShopifyAPI&&void 0!==ShopifyAPI[$(346)]&&(ShopifyAPI[$(346)]=Shopify?.[$(346)]),void 0!==Shopify?.api&&typeof Shopify?.[$(785)][$(346)]!==$(548)&&(Shopify[$(785)][$(346)]=Shopify?.[$(346)])}catch(t){console[$(755)](t)}};let n=$=>{let t=x;try{let e=$?.[t(741)];e instanceof FormData?FGSECOMAPP[t(720)]={sections:e[t(517)](t(458)),sections_url:e[t(517)]("sections_url")}:"string"==typeof e&&(e=JSON.parse(e),FGSECOMAPP[t(720)]={sections:e?.[t(458)],sections_url:e?.[t(584)]})}catch(a){FGSECOMAPP.sections_cart={}}},d=($,t)=>{let e=x;try{let a=Shopify?.[e(651)]??[e(475),e(401),e(788),"ok"],i=new Response(JSON.stringify($),t);for(let r of a)Object[e(361)](i,r,{value:t[r]});return i}catch(c){return new Response(JSON[e(934)]($))}},l=async()=>{let $=x;if(Shopify[$(751)])return;let t=[];if(!C(FGSECOMAPP[$(882)]))for(let e of(t[$(671)]("SECOMAPP_FREEGIFT"),FGSECOMAPP[$(882)])){let a=FGSECOMAPP[$(550)].find(x=>x.id===e[$(813)])?.[$(396)]?.[$(899)];C(a)||t[$(671)](a)}if(t[$(974)](),t[$(394)]()!==FGSECOMAPP?.[$(571)]?.attributes?.[$(481)])try{await i((Shopify?.[$(836)]??$(341))+$(333),{method:$(757),headers:{"X-Requested-With":$(531),"Content-Type":$(418)},body:JSON[$(934)]({attributes:{freegift_attributes:t.toString()}})})}catch(r){console.error($(471)+r[$(963)])}},f=async($,t,e)=>{let a=x;try{if($[1]?.[a(937)]?.[a(964)])return;let r={},c=Object[a(370)](t[a(458)]??{})?.[a(956)]($=>C(FGSECOMAPP[a(720)][$]))??[];if(c&&c[a(619)]&&FGSECOMAPP[a(617)]&&(r=await i(a(796)+c.join(","))[a(389)]($=>$[a(665)]())),FGSECOMAPP[a(617)]=!1,r={...FGSECOMAPP[a(720)],...r},C(r))return;t[a(458)]={...t.sections,...r},C(e)||(e[a(458)]={...t[a(458)]})}catch(o){}};FGSECOMAPP[x(608)]=async($,t,e)=>{let a=x;try{let i=FGSECOMAPP[a(882)][a(722)](x=>e===x[a(813)]?.[a(394)]()&&$===x[a(971)]);i?i[a(541)]+=t:FGSECOMAPP[a(882)][a(470)]({variantId:$,belongs_to_offer:e,quantity:t}),localStorage[a(450)](a(878),LZString[a(875)](JSON[a(934)](FGSECOMAPP.arrOfferAdded))),p(a(355));let r=await fetch((Shopify?.[a(737)]??a(648))+"?sca_add_gift",{method:"POST",headers:{Accept:a(918),"Content-Type":"application/json",sca_add_gift:!0},body:JSON[a(934)]({quantity:t,id:$})});return await r.json()}catch(c){return!1}};let _=async($,t,e)=>{let a=x;e=e?.toString();let i=document[a(566)](a(297));i.forEach(x=>{let t=a;x.disabled=!0;let e=x[t(590)](t(653))-0;e===$&&(x.style[t(537)]="6px 0",x[t(663)]='\n \n \n \n \n \n '),x[t(612)].backgroundColor=t(833)});let r=await FGSECOMAPP.addGiftToCart($,t,e);r&&(i[a(469)](x=>{let t=a;x.disabled=!0;let e=x[t(590)]("data-variant")-0;e===$&&(x[t(612)].padding=t(369),x[t(663)]=t(861)),x[t(612)][t(976)]=""}),$n()),document[a(543)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[a(376)],{detail:{gift:r}}))},g=$=>{let t=x,e=t(428);return!C($)&&("object"==typeof $&&($[t(460)]?.[t(585)](e)||$[t(393)]?.[t(585)](t(711))||FGSECOMAPP[t(633)]?.[t(585)]($[t(453)]))||typeof $===t(507)&&$[t(585)](e))},u=$=>{let{selling_plan_allocation:t}=$;return!C(t)&&!C(t?.[x(664)])},p=$=>{let t=x;try{if(!Shopify?.[t(807)])return;let{checkout_btn_query:e}=FGSECOMAPP[t(800)],a=[...e?.[t(783)],...e?.[t(421)],...e?.[t(371)]][t(956)](Boolean)[t(946)](",");document[t(566)](a)[t(469)](x=>{FGSECOMAPP.customLoadingCheckout($,x)[t(389)]()})}catch(i){}},b=async($,t)=>{let e=x;try{if(C($)&&C(t))return;let a={};if(FGSECOMAPP[e(684)]?.[e(956)]($=>g($))?.[e(469)]($=>{a[$.variant_id]=$[e(541)]}),($=$?.[e(956)]($=>!C($[e(453)])))?.forEach($=>{let x=e;a[$[x(453)]]=(a[$[x(453)]]??0)+($[x(541)]??1)}),Object[e(370)](a)?.forEach($=>{a[$]=a[$]>=0?a[$]:0}),C(Object[e(370)](a)))return;$?.[e(469)]($=>{let x=e,t=FGSECOMAPP[x(882)][x(722)](t=>$[x(597)]?.[x(394)]()===t[x(813)]?.[x(394)]()&&$[x(453)]===t[x(971)]);t?t[x(541)]+=$[x(541)]:FGSECOMAPP[x(882)][x(470)]({variantId:$.variant_id,belongs_to_offer:$[x(597)]?.toString(),quantity:$[x(541)]})}),localStorage[e(450)](e(878),LZString[e(875)](JSON[e(934)](FGSECOMAPP.arrOfferAdded))),FGSECOMAPP[e(617)]=!0,p("start"),await fetch((Shopify?.[e(836)]??e(341))+e(513),{method:e(757),headers:{Accept:e(918),"Content-Type":e(918),sca_process_gifts:!0},body:JSON[e(934)]({updates:a,...FGSECOMAPP[e(720)]})})[e(389)](x=>{let a=e;return x.ok&&$[a(619)]&&!t.length&&$n(),x[a(665)]()}).then($=>{let x=e;FGSECOMAPP[x(720)]=$.sections}),document[e(543)](new CustomEvent(FGSECOMAPP[e(858)][e(872)],{detail:{arrGiftsAdd:$,arrGiftsRemove:t}})),"fg-checkout"===document.querySelector(e(504))?.[e(590)](e(840))&&location[e(444)]()}catch(i){p(e(958)),console[e(755)](i)}},m=($,t)=>{let e=x;try{let a=FGSECOMAPP[e(342)]?.[e(700)],i=Shopify?.[e(903)]??Shopify?.[e(558)];return a.enable?a?.[i]?.[t]??$:$}catch(r){return $}},h=($,t=!1)=>{let e=x;return(""+$)[e(357)](/\$/g,e(t?352:818))},y=()=>{let $=x,i=document[$(298)]("freegifts-main-page-container");if(i){let r=document[$(372)](t[$(485)])?.[$(663)]??t[$(799)];i[$(663)]=r.replaceAll(/{{\s*fg_slider_title\s*}}/gm,h(m(FGSECOMAPP[$(549)][$(607)]??$(881),$(777))))[$(357)](/{{\s*sca_fg_disable_slider_section\s*}}/gm,h(e()))}else{let c=localStorage[$(564)]($(832))-0,o=FGSECOMAPP[$(942)]?.[$(844)]?.[$(980)]??{},s=(o?.[$(378)]??0)*6e4,n=!isNaN(c)&&c+s>Date[$(927)]();if(n||(localStorage[$(822)]($(832)),!(i=document[$(298)]("freegifts-main-popup-container"))))return;let d=document[$(372)](t.GIFTS_POPUP_SECTION_ID)?.[$(663)]??t[$(947)];i[$(663)]=d[$(357)](/{{\s*fg_slider_title\s*}}/gm,h(m(FGSECOMAPP[$(549)][$(607)]??$(881),$(777)))).replaceAll(/{{\s*sca_fg_disable_slider_section\s*}}/gm,h(a()+" "+e())),i[$(723)].add($(775))}},v=($,e)=>{let a=x,i=document[a(372)](t.GIFT_SELECT_SECTION_ID)?.[a(663)]??t[a(546)];return $[a(643)]($=>i.replaceAll(/{{\s*fg_variant_img\s*}}/gm,h(K($[a(768)]??e),!0))[a(357)](/{{\s*fg_variant_id\s*}}/gm,h($[a(498)]))[a(357)](/{{\s*fg_original_variant_id\s*}}/gm,h($[a(317)]))[a(357)](/{{\s*fg_variant_price\s*}}/gm,h(T($)))[a(357)](/{{\s*fg_original_variant_price\s*}}/gm,h(E($))).replaceAll(/{{\s*fg_variant_title\s*}}/gm,h($[a(908)]))).join(" \n")},T=$=>{let t=x;return FGSECOMAPP[t(405)][t(429)](O($?.price))},E=$=>{let t=x;return FGSECOMAPP.formatter[t(429)](O($?.[t(924)]??0))},w=($,t)=>{let e=x;return C(FGSECOMAPP.productsByID[$])?t??"#":FGSECOMAPP[e(763)][$][e(460)]},S=($,t)=>{let e=x;return FGSECOMAPP.fgAppearanceGiftSlider[e(432)]?C(FGSECOMAPP[e(763)][$])?t.replace("\xbb","")[e(867)](/\(\d*% off\)/,"")[e(867)](e(479),"")??"":FGSECOMAPP[e(763)][$][e(652)]:""},C=$=>{let t=x;if(0===$)return!0;if(typeof $==t(449)||typeof $==t(510))return!1;if(typeof $==t(548)||null===$)return!0;if(void 0!==$[t(619)])return 0===$[t(619)];let e=0;for(let a in $)$[t(340)](a)&&e++;return 0===e},I=$=>{let t=x;try{let e={...FGSECOMAPP[t(452)]},a=e[$];if(a=a?a[t(906)]():null,!C(a)&&a.length>0)try{return document.querySelector(a),a}catch(i){}return""}catch(r){return""}},A=()=>{let $=x;try{FGSECOMAPP[$(405)]=new Intl.NumberFormat(Shopify?.[$(437)]??Shopify?.[$(558)],{style:"currency",currency:Shopify?.currency?.[$(667)]??$(308)})}catch(t){FGSECOMAPP.formatter=new Intl[$(337)]($(693),{style:$(827),currency:Shopify?.currency?.[$(667)]??$(308)})}},O=$=>{let t=x;$=$??0;let e=Shopify?.[t(827)]?.rate??1;return 1===parseFloat(e)?$:($*e)?.[t(710)](Shopify?.[t(776)]??2)},k=$=>{let t=x;try{return $[FGSECOMAPP[t(668)]]??$?.[t(634)]??$?.price}catch(e){return $?.final_price??$?.[t(896)]}},D=$=>{let t=x;return $[t(956)]($=>void 0===$[t(845)]||!0===$[t(845)])[t(395)](($,x)=>$+x[t(541)]*k(x),0)/100},R=$=>{let t=x;return $.filter($=>void 0===$.cal_gift_for_other_rules||$[t(845)]).reduce(($,x)=>$+x.quantity,0)},F=($,t,e)=>{let a=x,i=t[a(399)];return e?.is_only&&($=$[a(956)]($=>u($))),C(i)?$:$.filter($=>{let x=a;return!i[x(643)](t=>{let e=x;switch(t.type){case e(578):return Object[e(731)](t.value)[e(643)]($=>$.variant)[e(313)]()[e(643)]($=>$.id).includes($[e(453)]);case"product_types":return Object[e(731)](t[e(569)])[e(585)]($[e(387)]);case e(810):return Object[e(731)](t[e(569)]).includes($[e(386)]);case"product_collections":let a=Object.keys(t.value),i=$[e(478)]?.map($=>$.id+"")?.[e(956)]($=>a[e(585)]($));return!C(i);default:return!1}})[x(585)](!1)})},N=($,t)=>{let e=x;return $?.[e(643)]($=>{let x=e;if(typeof $.cal_gift_for_other_rules!==x(548)){let a=FGSECOMAPP[x(882)]?.[x(956)](t=>t[x(971)]===$[x(453)]),i=a?.[x(395)](($,x)=>$+x.quantity,0);if(i===$[x(541)]){let r=a?.[x(956)](e=>{let a=x;if(e[a(813)]?.toString()===t[a(394)]())return!1;let i=FGSECOMAPP.offers?.find($=>$.id?.[a(394)]()===e[a(813)]?.[a(394)]()),r=i[a(406)]??{},c=k($);return r[a(845)]&&c>0})?.reduce(($,t)=>$+t[x(541)],0);return{...$,cal_gift_for_other_rules:r>0,quantity:r??0}}return{...$,cal_gift_for_other_rules:!1,quantity:0}}return{...$}})??[]},G=($,t)=>{let e=x,a=FGSECOMAPP[e(560)]?.compare_gift_price_with_product,i=FGSECOMAPP[e(560)]?.[e(953)],r=$,c=r;if(a){r=$[e(974)](($,x)=>k($)-k(x));let o=t.gift_items[e(643)]($=>$?.[e(944)]??0);r=r[e(956)]($=>o[e(791)](x=>x<=k($)/100)),c=JSON[e(295)](JSON[e(934)](r));let s=t[e(592)].sort(($,x)=>x?.[e(944)]-$?.[e(944)]).map($=>({...$}));c[e(956)]($=>$[e(541)]>0)[e(469)]($=>{let x=e,t=k($)/100;s[x(956)]($=>$[x(541)]>0)[x(956)]($=>$?.compare_gift_price<=t)[x(469)](t=>{let e=x,a=$[e(541)]-t.quantity;t[e(541)]-=a>=0?t[e(541)]:$[e(541)],$[e(541)]=Math[e(536)](a,0)})}),t[e(694)]=s[e(956)]($=>$[e(541)]>0),c=c[e(956)]($=>$[e(541)]>0)}r=r[e(956)]($=>$.quantity>0);let n=FGSECOMAPP[e(684)].map($=>$[e(431)]),d=t[e(773)]?.[e(643)]($=>$[e(307)]);if(i){let l=d.filter($=>r[e(654)](x=>x[e(431)]!==$));r=l[e(619)]?r.filter($=>!l?.[e(585)]($.product_id)):[]}let f=[];return FGSECOMAPP.fgSettings?.[e(447)]&&(f=FGSECOMAPP[e(684)][e(956)]($=>g($))[e(643)]($=>$.variant_id)),t[e(931)]=JSON.parse(JSON[e(934)](t.gift_products))?.[e(956)]($=>{let x=e;return $[x(524)]=$[x(524)][x(956)]($=>!f[x(585)]($[x(498)])),!(i&&n?.[x(585)]($[x(307)]))&&(a&&($[x(524)]=$[x(524)].filter($=>{let t="compare_at_price"===a?$.original_compare_at_price:$.original_price;return c[x(791)]($=>t<=k($)/100)})),!C($.variants))}),r},L=($,t,e)=>{let a=x,i=0,r=F(t,$,e[a(396)]?.[a(660)]);r=N(r,$[a(597)]),r=G(r,e);let c=0;return $[a(932)]===a(702)?(c=D(r),e.count_down_value=Math.max($[a(662)]-c,0)):$[a(932)]===a(941)&&(c=R(r),e[a(704)]=Math[a(536)]($.min_amount-c,0)),c>=$[a(662)]&&(null===$.max_amount||c<=$[a(701)])&&(i=e[a(406)][a(516)]*($[a(596)]?Math.floor(c/$[a(662)]):1)),i},q=($,t)=>{let e=x,a={},i=[],r=0;return t.offer_conditions[e(643)](x=>{let a=L(x,$,t);0!==a&&(r=a),i[e(671)](a>0)}),a[e(759)]=r,a.condition_result=i,a},P=($,t)=>{let e=x,a=!1;return 1===$[e(619)]?a=$[0]:2===$[e(619)]&&(t===e(732)&&(a=$[0]&&$[1]),"or"===t&&(a=$[0]||$[1])),a},M=($,t)=>{let e=x,a=$?.[e(643)]($=>$[e(453)]);FGSECOMAPP[e(882)]=FGSECOMAPP[e(882)][e(956)]($=>a?.includes($[e(971)]));let i=t[e(620)][e(643)]($=>$[e(498)]),r={};t[e(620)].filter($=>r[$[e(498)]]={fg_original_compare_at_price:$[e(695)],fg_original_price:$.original_price,compare_gift_price:$.compare_gift_price});let c=FGSECOMAPP.arrOfferAdded.filter($=>$[e(813)]?.[e(394)]()===t.id?.[e(394)]())?.[e(643)]($=>$[e(971)]),o=$[e(956)]($=>{let x=e;return g($)&&($[x(845)]=!1),i[x(585)]($[x(453)])&&c.includes($[x(453)])}),s=o[e(643)]($=>{let x=e,a=t[x(406)];$.cal_gift_for_other_rules=a.cal_gift_for_other_rules,$.belongs_to_offer=t.id?.[x(394)]();let i=FGSECOMAPP[x(882)]?.[x(956)](e=>e[x(813)]?.toString()!==t.id?.[x(394)]()&&$[x(453)]===e.variantId)?.[x(395)](($,t)=>$+t[x(541)],0);return{...$,quantity:$[x(541)]-i,...r[$.variant_id]}});return s[e(956)]($=>{let x=e;return $.belongs_to_offer?.[x(394)]()===t.id?.[x(394)]()})},H=$=>{let t=x,e=$[t(592)][t(956)](x=>x[t(813)]?.toString()!==$.id?.[t(394)]()).map($=>$.product_id);return Object.values($[t(931)])[t(956)]($=>!e.includes($.product_shopify_id))},U=($,t)=>{let e=x,a=M($,t);t[e(592)]=a;let i=q($,t),r=P(i[e(436)],t[e(367)]);if(r){let c=a[e(956)]($=>$[e(813)]?.[e(394)]()===t.id?.[e(394)]())[e(395)](($,x)=>$+x[e(541)],0);i[e(759)]=i[e(759)]-c,t.giftsAdded=a,t.giftsAvailable=i[e(759)]}else t[e(592)]=a,t[e(815)]=0;return!C(FGSECOMAPP[e(705)])&&t[e(362)]>FGSECOMAPP[e(705)]&&(r=!1),t[e(473)]&&r?FGSECOMAPP[e(705)]=t[e(362)]:!t[e(473)]||r||C(a)||t.priority!==FGSECOMAPP[e(705)]||(FGSECOMAPP[e(705)]=null),t[e(595)]=r,t},B=$=>{let t=x,e=$+"=",a=document[t(752)].split(";");for(let i=0;i{let e=x,a=!0,i=!0,r=!0,c=!0;if(!C($[e(396)]?.[e(899)])){let o=B(e(476));a=o&&JSON[e(295)](o)[e(585)]($[e(396)][e(899)])}if(!C($[e(396)]?.customer_tags)){let{customer_tags:s}=$[e(396)],n=s?.[e(309)]?.some($=>t[e(300)].tags?.includes($));i=s?.[e(611)]===e(423)?n:!n}if(!C($.sub_conditions?.customer_locations)){let{customer_locations:d}=$.sub_conditions,l=d?.[e(472)]?.[e(585)](FGSECOMAPP[e(828)]);c=d?.[e(374)]===e(423)?l:!l}if(!C($[e(396)]?.[e(538)])){let f=!0,_=$[e(396)][e(538)],g=t[e(300)][e(491)]??[];if(_[e(790)]){let u=Date.parse(_[e(790)])/1e3;g=g.filter($=>$.created_at>=u&&[e(586),"partially_paid"][e(585)]($[e(708)]))}if(!C(_?.[e(805)])&&(0!==_[e(805)][e(662)]||0!==_[e(805)][e(701)])){let p=_.total_spend_on_order_history.min_amount,b=_[e(805)].max_amount,m=g[e(395)](($,x)=>$+x[e(591)],0)/100;f&=(m>=p||!p)&&(m<=b||!b)}if(!C(_?.[e(315)])&&(0!==_[e(315)][e(662)]||0!==_[e(315)][e(701)])){let h=(t[e(300)][e(589)]??0)/100,y=_[e(315)][e(662)],v=_.total_spent_on_last_order[e(701)];f&=g[e(619)]>0&&(h>=y||!y)&&(h<=v||!v)}if(!C(_?.[e(965)])){let T=!(0!==_[e(965)][e(662)]||0!==_[e(965)][e(701)]),E=g[e(619)],w=_[e(965)][e(662)],S=_[e(965)][e(701)];f&=T?C(g):(E>=w||!w)&&(E<=S||!S)}if(_?.[e(304)]){let I=t[e(300)].freegifts??[],A=$[e(620)]?.some($=>I.includes($.variant_shopify_id))||$[e(620)]?.[e(791)]($=>I[e(585)]($[e(317)]+"_"+($.original_price-$.price)*100));f&=!A}r=f}return a&&i&&r&&c},j=($,t,e)=>{let a=x,i=[],r=[],c=[],o=[];for(let s of t){let n=U($,s);if(!n[a(595)]){if(!n[a(592)][a(619)])continue;n[a(592)][a(469)]($=>{let x=a;r[x(671)]({variant_id:$[x(453)],quantity:$[x(541)],offer_id:s.id})});continue}if(n[a(815)]<0){n[a(592)][a(469)]($=>{let x=a;r.push({variant_id:$[x(453)],quantity:$[x(541)],offer_id:s.id})});continue}if(0===n[a(815)]){n[a(592)][a(469)]($=>{let x=a,t=FGSECOMAPP.arrOfferAdded.find(t=>s.id?.[x(394)]()===t[x(813)]?.[x(394)]()&&$[x(453)]===t[x(971)]);t&&(t.quantity=$[x(541)])});continue}(s[a(396)]&&Y(s,SECOMAPP)||C(s[a(396)]))&&i[a(671)](s)}if($?.filter($=>g($))[a(469)]($=>{let x=a,t=0,e=FGSECOMAPP[x(882)]?.filter(t=>$[x(453)]===t[x(971)])?.[x(395)](($,x)=>$+x.quantity,0)??0;e<$[x(541)]&&(t=$[x(541)]-e),C($[x(813)])&&(t=$[x(541)]),t>0&&r[x(671)]({variant_id:$.variant_id,quantity:t,offer_id:$[x(813)]?.[x(394)]()})}),e||C(r)){let d=i[a(643)]($=>{let x=a;return{id:$.id,offerName:$[x(312)],offerPriority:$[x(362)],stopLowerPriority:$.stop_lower_priority,gifts:H($),giftsAvailable:$[x(815)],giftsAdded:$[x(592)],isReachConditions:$.isReachConditions,offer:$}});if(!C(d)){let l={};for(let f of d){let _=X(FGSECOMAPP.fgSettings,f);_?.[a(619)]>0?c=c[a(494)]([..._]):f[a(351)][a(643)]($=>{let x=a;l[$.product_shopify_id]={...$,belongs_to_offer:f.id?.[x(394)]()}})}o=Object[a(731)](l)??[]}}return{arrGiftsAdd:c,arrGiftsRemove:r,arrGiftsData:o}},z=($,t)=>{let e=x,a=new Set;return $?.[e(469)]($=>a.add($[e(597)])),a.forEach($=>{let x=e,t=FGSECOMAPP[x(550)]?.[x(722)](t=>t.id?.[x(394)]()===$?.toString());if(C(t)||!t[x(595)]){FGSECOMAPP[x(882)]=FGSECOMAPP.arrOfferAdded?.[x(956)](t=>t[x(813)]?.[x(394)]()!==$?.[x(394)]());return}if(t[x(815)]>=0)return;let a=[],i=FGSECOMAPP[x(882)]?.[x(956)](t=>t.belongs_to_offer?.[x(394)]()===$?.[x(394)]())??[];if(t?.gift_settings?.auto_add_all_gifts)a=a[x(494)]([...i]),t[x(815)]=0;else for(let r of(FGSECOMAPP[x(560)]?.[x(482)]&&!C(t[x(694)])&&t[x(694)][x(469)]($=>{let e=x,i=FGSECOMAPP[e(882)].find(x=>x[e(813)]?.[e(394)]()===t.id?.[e(394)]()&&$[e(453)]===x[e(971)]);if(C(i))return;let r=i[e(541)]-$[e(541)];t[e(815)]+=$.quantity,r>0?i[e(541)]=r:(i.quantity=0,a[e(671)]({...i}))}),i)){if(t[x(815)]>=0)break;t[x(815)]+=r[x(541)],t[x(815)]<=0?a[x(671)]({...r}):(r[x(541)]=t.giftsAvailable,t[x(815)]=0)}a?.[x(469)]($=>{let t=x;FGSECOMAPP.arrOfferAdded=FGSECOMAPP.arrOfferAdded?.[t(956)](x=>$[t(971)]!==x[t(971)]||$[t(813)]?.[t(394)]()!==x.belongs_to_offer?.[t(394)]())})}),t?.[e(956)]($=>{let x=e;return g($)&&($[x(541)]=FGSECOMAPP[x(882)]?.[x(956)](t=>$[x(453)]===t[x(971)])?.reduce(($,t)=>$+t[x(541)],0)??0),$[x(541)]>0})??[]},V=async($,t)=>{let e=x,{arrGiftsAdd:a,arrGiftsRemove:i,arrGiftsData:r}=j($,t,!1),c=z(i,$);if(!C(i)){let o=j(c,t,!0);z(o?.[e(626)],$),a=o?.arrGiftsAdd,i=i?.[e(494)](o?.[e(626)])??[],r=o?.[e(920)]}return await b(a,i),l()[e(389)](),r},X=($,t)=>{let e=x;try{let a=[],i=t[e(351)],r=i[e(395)](($,x)=>$+x[e(524)][e(619)],0);if(!$[e(962)]||r<=0)return[];let c=t[e(334)]?.[e(406)]?.[e(904)],o=t.offer?.gift_should_the_same??{};if(o[e(821)]&&o[e(401)]===e(327)){let s=i[0][e(524)][0];0===s.price&&(a[e(671)]({variant_id:s[e(498)],quantity:t[e(815)],offer_id:t.id}),console.log("track variant auto add gift: {"+s[e(498)]+e(554)+s[e(908)]+e(554)+t.id+"}"))}else if(c){let n=(t?.[e(815)]??0)/r;i.forEach($=>$[e(524)]?.[e(469)]($=>a[e(671)]({variant_id:$[e(498)],quantity:n,offer_id:t.id}))),console.log(e(377)+t.id+"}")}else if(1===r){let d=i[0][e(524)][0];0===d[e(896)]&&(a[e(671)]({variant_id:d[e(498)],quantity:t[e(815)],offer_id:t.id}),console[e(409)](e(687)+d[e(498)]+e(554)+d[e(908)]+e(554)+t.id+"}"))}return a}catch(l){return console.error(l),[]}},W=$=>$===x(851),K=$=>{let t=x;try{let e=Shopify?.customGiftImgSize??FGSECOMAPP.fgAppearance?.[t(844)]?.[t(413)]?.[t(562)]??t(817),a=new URL($),i=new URLSearchParams(e);return i[t(469)](($,x)=>a[t(422)][t(816)](x,$)),a[t(394)]()}catch(r){return $}},Q=$=>{let e=x,a=$;if(FGSECOMAPP[e(549)][e(730)]===e(358))for(let i of(a=[],$)){let r=i[e(524)];r&&r[e(619)]&&r[e(469)]($=>a[e(671)]({...i,thumbnail:$.thumbnail,variants:[$]}))}let c=document[e(298)](e(812));c&&(c[e(663)]=a[e(643)]($=>{let x=e,a=$?.[x(524)][0]??{},i=W(a[x(908)]),r=$[x(524)]?.length,c=h(S($[x(307)],$[x(652)])),o=FGSECOMAPP[x(549)]?.[x(730)]===x(358),s=document[x(372)](t[x(530)])?.[x(663)]??t[x(434)];return s.replaceAll(/{{\s*fg_product_handle\s*}}/gm,h(w($[x(307)],$.original_product_handle),!0)).replaceAll(/{{\s*fg_product_img\s*}}/gm,h(K($[x(768)]),!0))[x(357)](/{{\s*fg_product_img_alt\s*}}/gm,c)[x(357)](/{{\s*fg_product_title\s*}}/gm,c).replaceAll(/{{\s*fg_gifts_check_show_by_variants\s*}}/gm,h(o&&FGSECOMAPP[x(549)].show_variant_title?"":x(915))).replaceAll(/{{\s*fg_gifts_check_show_by_products\s*}}/gm,o?x(915):"")[x(357)](/{{\s*fg_check_selected_variant\s*}}/gm,1===r?x(465)+(i?x(915):""):"")[x(357)](/{{\s*fg_variant_title\s*}}/gm,h(1!==r?m(FGSECOMAPP.fgAppearanceGiftSlider[x(728)]??x(919),x(703)):a.variant_title))[x(357)](/{{\s*fg_original_price\s*}}/gm,h(E(a))).replaceAll(/{{\s*fg_gift_price\s*}}/gm,h(T(a)))[x(357)](/{{\s*sca_fg_variant_select_section\s*}}/gm,h(v($.variants,$[x(768)]))).replaceAll(/{{\s*fg_product_belongs_to_offer\s*}}/gm,$[x(813)]).replaceAll(/{{\s*fg_variant_id\s*}}/gm,h(1===r?a[x(498)]:""))[x(357)](/{{\s*fg_add_to_cart\s*}}/gm,h(m(FGSECOMAPP[x(549)]?.add_to_cart_btn_title??x(508),x(866))))}).join(" \n"),new Glider(document[e(372)]("#fg-gift-items"),{slidesToShow:1,slidesToScroll:1,draggable:!1,dots:FGSECOMAPP.fgAppearanceGiftSlider[e(407)]?e(390):null,arrows:{prev:e(523),next:e(824)},responsive:[{breakpoint:1024,settings:{slidesToShow:FGSECOMAPP[e(549)][e(598)]??4,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:2,slidesToScroll:1}}]}),document[e(543)](new CustomEvent(FGSECOMAPP[e(858)].SHOW_GIFT_SLIDER,{detail:{addGiftToCartFunc:FGSECOMAPP[e(608)],gifts:$7(a)}})))},J=async()=>{let $=x;try{let t=window[$(609)]?.offers??[];for(let e in await $2(),FGSECOMAPP[$(763)])C(FGSECOMAPP[$(763)][e]?.id)&&delete FGSECOMAPP.productsByID[e];let a=[];t[$(469)](x=>{let t=$;FGSECOMAPP[t(633)]=FGSECOMAPP.gifts_id[t(494)](x.gift_items[t(643)]($=>$[t(498)]));try{let e=JSON[t(295)](JSON[t(934)](x));if(x[t(455)].status){let i=x[t(628)][0][t(399)],r=i[0][t(569)],c=[...e.gift_items],o=[...e.gift_products];if(x[t(455)][t(401)]===t(327))for(let s in r){let n=r[s]?.[t(327)]??[];for(let d of n){e[t(628)][0][t(399)]=[{type:i[0][t(401)],value:{[s]:{...r[s],variant:[{...d}]}}}],e[t(620)]=c[t(956)]($=>$[t(307)]+""===s&&d.id===$[t(317)]),e[t(773)]=o[t(956)]($=>$[t(307)]+""===s),e[t(773)][0][t(524)]=[...e[t(620)]];let l=e.gift_settings.number_of_gift_can_receive,f=e[t(406)][t(904)];e.gift_settings[t(904)]&&(l=e[t(620)].length),1===e[t(620)][t(619)]&&0===e[t(620)][0].price&&(f=!0),a[t(671)](JSON.parse(JSON[t(934)]({...e,gift_settings:{...e.gift_settings,number_of_gift_can_receive:l,auto_add_all_gifts:f},id:e.id+"_"+r[s].handle+"_"+d.id,offer_root:""+e.id})))}}else if(x[t(455)].type===t(511))for(let _ in r){e[t(628)][0][t(399)]=[{type:i[0][t(401)],value:{[_]:r[_]}}],e.gift_items=c[t(956)]($=>$[t(307)]+""===_),e[t(773)]=o.filter($=>$[t(307)]+""===_);let g=e[t(406)][t(516)],u=e.gift_settings.auto_add_all_gifts;e.gift_settings[t(904)]&&(g=e[t(620)][t(619)]),1===e[t(620)][t(619)]&&0===e[t(620)][0][t(896)]&&(u=!0),a[t(671)](JSON[t(295)](JSON.stringify({...e,gift_settings:{...e[t(406)],number_of_gift_can_receive:g,auto_add_all_gifts:u},id:e.id+"_"+r[_][t(460)],offer_root:""+e.id})))}}}catch(p){console[t(755)](p)}}),FGSECOMAPP.gifts_id=[...new Set(FGSECOMAPP[$(633)])],t=(t=(t=t?.[$(956)](x=>!x?.[$(455)]?.[$(821)])?.[$(494)](a))?.[$(643)](x=>{let t=$;return{...x,id:x.id[t(394)](),offer_root:(x[t(332)]??x.id).toString()}}))?.[$(956)](x=>{let t=$;if(!$e(x[t(467)],x[t(762)]))return!1;let e=!C(x.sub_conditions?.customer_order_history||x[t(396)]?.customer_tags);if(x.sub_conditions&&(!Y(x,SECOMAPP)||e&&C(SECOMAPP[t(300)][t(490)])))return!1;let a={...FGSECOMAPP.productsByID},i=!1;if(FGSECOMAPP[t(560)].sync_quantity===t(957)){x[t(620)]=x?.gift_items.filter($=>{let x=t,e=a[$[x(307)]]??{},i=e?.[x(803)]??{},r=e?.variants?.[x(722)](t=>t.id===$[x(498)])??{};return i[$[x(317)]]>0||C(r[x(322)])&&r[x(849)]})??[];let r=x[t(620)]?.[t(643)]($=>$[t(498)]);x[t(773)]=x?.[t(773)]?.[t(956)]($=>{let x=t;return $[x(524)]=$?.variants?.[x(956)]($=>r?.[x(585)]($.variant_shopify_id)),$?.variants?.[x(619)]>0}),i=!0}else if(FGSECOMAPP[t(560)][t(426)]){x[t(620)]=x?.[t(620)][t(956)]($=>(a[$.product_shopify_id]?.[t(524)]?.find(x=>x.id===$[t(498)])?.[t(849)]??!1)||a[$[t(859)]]?.[t(803)]?.[$[t(498)]]>0);let c=x.gift_items?.[t(643)]($=>$.variant_shopify_id);x.gift_products=x?.[t(773)]?.filter($=>{let x=t;return $[x(524)]=$?.[x(524)]?.[x(956)]($=>{let t=x;return c?.[t(585)]($[t(498)])}),$?.variants?.length>0}),i=!0}return i&&x[t(406)]?.[t(904)]&&(x[t(406)][t(516)]=x.gift_items?.[t(619)]),!i||x[t(620)]&&x[t(620)].length>0});let i=FGSECOMAPP?.fgSettings?.[$(439)]===$(540)?$(695):"original_price",r=FGSECOMAPP[$(560)]?.[$(482)],c=r===$(540)?$(695):$(970);return t?.[$(643)](x=>{let t=$,e=x.gift_items[t(643)]($=>{let x=t;return $.cal_gift_price=C($[i])?$?.original_price:$[i],r&&($[x(944)]=C($[c])?$?.[x(970)]:$[c]),$[x(307)]});return x[t(773)]=x[t(773)]?.[t(956)]($=>{let x=t;return $.variants?.[x(469)]($=>{let t=x;$[t(924)]=C($[i])?$?.[t(970)]:$[i],r&&($[t(944)]=C($[c])?$?.[t(970)]:$[c])}),e[x(585)]($.original_product_shopify_id)}),x[t(628)]?.[t(469)]($=>{let x=t;$[x(932)]===x(702)&&($[x(662)]=O($[x(662)]),$[x(701)]=C($.max_amount)?$[x(701)]:O($[x(701)]))}),x})?.[$(974)]((x,t)=>x[$(362)]-t[$(362)])}catch(o){return console[$(755)](o),[]}},Z=async()=>{let $=x;try{let t=[];window[$(609)]?.[$(550)]?.[$(469)](x=>{let e=$,a=[];x[e(773)][e(469)]($=>{let x=e,t=FGSECOMAPP?.[x(560)]?.sync_quantity===x(957)?$[x(889)]??null:FGSECOMAPP?.[x(560)]?.[x(426)]?$.clone_product_handle??null:null;C(t)||a.push(t)}),t=[...t,...a]}),await $h(t=(t=[...new Set(t)])[$(956)]($=>C(FGSECOMAPP.productsInPage[$]))),Object[$(731)](FGSECOMAPP[$(348)])?.[$(469)]($=>{let{info:x}=$;C(x)||C(x?.id)||(FGSECOMAPP.productsByID[x.id]={...x})})}catch(e){console[$(755)](e)}},$$=$=>{let t=x;try{C($)?(FGSECOMAPP[t(882)]=[],localStorage[t(450)](t(878),LZString.compressToBase64(JSON[t(934)](FGSECOMAPP.arrOfferAdded)))):FGSECOMAPP[t(882)]=JSON.parse(LZString.decompressFromBase64(localStorage.getItem("sca_offers_added")))}catch(e){FGSECOMAPP[t(882)]=[],localStorage[t(450)](t(878),LZString.compressToBase64(JSON[t(934)](FGSECOMAPP[t(882)])))}let a={};FGSECOMAPP[t(550)]?.forEach($=>{a[$.id]=$?.gift_items?.[t(643)]($=>$.variant_shopify_id)});let i=Object[t(370)](a);FGSECOMAPP[t(882)]=FGSECOMAPP[t(882)]?.[t(956)]($=>i?.[t(585)]($[t(813)]?.[t(394)]())&&a[$[t(813)]?.toString()][t(585)]($[t(971)]));let r={};FGSECOMAPP[t(882)]?.[t(469)]($=>{let x=t,e=r[$[x(813)]+"_"+$.variantId]??{};r[$[x(813)]+"_"+$[x(971)]]={...$,belongs_to_offer:$.belongs_to_offer?.[x(394)](),quantity:(e?.[x(541)]??0)+($?.[x(541)]??0)}}),FGSECOMAPP[t(882)]=Object[t(731)](r),localStorage[t(450)]("sca_offers_added",LZString[t(875)](JSON.stringify(FGSECOMAPP[t(882)])))},$x=()=>{let $=x;FGSECOMAPP[$(800)]={cart_drawer_query:{tool:[$(445),I($(505))]},cart_icon_query:{default:[$(314)],tool:[$(354),I("sca_fg_cart_icon_query")]},gift_icon_product_query:{default:[$(936)],integration:[$(874)],tool:[".fg-secomapp-product-title",I($(451))]},gift_icon_collection_query:{default:[$(905),$(552)],integration:[".m-product-item, .m-product-list .swiper-slide, .f-grid .f-column",".f\\:featured-collection .f\\:featured-collection-block .f\\:column"],tool:[".fg-secomapp-collection-img",I($(690))]},gift_thumbnail_query:{default:[$(646)],integration:[$(364)],tool:[$(743),I($(580))]},cart_message_query:{default:[$(792)],integration:[".icart-inner .icartContain, .rebuy-cart__flyout-body, #slidecarthq .slidecarthq",$(923),$(381),$(736),$(724)],tool:[$(921),I("sca_fg_main_promotion_message_query")]},checkout_btn_query:{default:[$(323),$(635),$(676),$(860)],integration:[$(685),$(804)],tool:[$(912),I($(545))]}}},$0=async $=>{let t=x;document.dispatchEvent(new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(811)],{detail:{}})),$x(),A(),FGSECOMAPP[t(929)](),(FGSECOMAPP?.[t(560)]?.[t(898)]===t(957)||FGSECOMAPP?.[t(560)]?.manual_input_inventory)&&await Z(),FGSECOMAPP[t(550)]=await J(),FGSECOMAPP.initializeForXHR(),r(),s(),$$($);let e=await V($,FGSECOMAPP[t(550)]);await $a(e),$5(),$y(),$4(),$3(),document[t(543)](new CustomEvent(FGSECOMAPP[t(858)][t(419)],{detail:{}}))},$t=function(){let $=x,t=document.querySelectorAll($(916)),e=document[$(566)]("#freegifts-main-popup-container [data-close]"),i="sca-is-visible-fg",r=document.querySelectorAll($(297)),c=r.length;for(let o=0;o{let t=$;x.target===document.querySelector(t(749))&&(document[t(372)](t(749))[t(723)][t(356)](i),a())}),document[$(901)]($(522),x=>{let t=$;"Escape"===x[t(320)]&&document[t(372)]("#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg")&&(document[t(372)]("#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg")[t(723)].remove(i),a())}),document[$(566)]("#fg-gift-items .dropdown").forEach(x=>x[$(901)]($(725),function(){let x=$;this.setAttribute(x(854),1),this.focus(),this.classList[x(808)](x(667)),this[x(372)](x(830))[x(723)][x(808)](x(744))})),document.querySelectorAll("#fg-gift-items .dropdown")[$(469)](x=>document[$(901)]($(725),function(t){let e=$,a=x.contains(t[e(655)]);a||(x[e(723)].remove("active"),x[e(372)](e(830))[e(723)][e(356)]("d-block")),document.querySelectorAll(e(526)).forEach($=>{let x=e;$[x(639)]=!0,$.style.backgroundColor=x(833)})})),document[$(566)]($(527))[$(469)](x=>{let t=$;x[t(901)](t(725),function(){let $=t,x=this[$(590)]("id"),e=this[$(590)]("data-img"),a=this[$(590)]($(415)),i=this[$(590)]("data-original-price"),r=this.getAttribute($(661)),c=this[$(884)][$(884)][$(884)][$(884)];c[$(372)]($(365))[$(349)]($(977),e);let o=new URL(c.querySelector($(902))[$(329)]);o.searchParams.set($(327),r),c[$(372)]($(902))[$(329)]=o[$(394)]();let s=this[$(884)][$(884)][$(884)];s[$(372)]($(706))[$(380)]=i,s.querySelector($(657))[$(380)]=a;let n=s?.[$(372)]($(601));n.setAttribute($(653),x),n[$(639)]=!1,n[$(612)]="";let d=this[$(884)].parentElement[$(372)](".selected-variant");d[$(723)].add($(667)),d.innerHTML=this.innerText})}),document[$(566)]($(297))[$(469)](x=>x.addEventListener($(725),async function(){let x=$,t=this[x(590)](x(653))-0,e=this.getAttribute(x(502));try{await _(t,1,e);let a=document.querySelector("#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg");a&&(FGSECOMAPP[x(403)]=!0,await new Promise($=>setTimeout($,800)),a[x(723)][x(356)](i)),window.location[x(329)][x(585)](x(417))?location.reload():typeof Shopify?.[x(346)]===x(747)&&await Shopify?.getCart(0===FGSECOMAPP[x(414)][x(619)]?function(){}:FGSECOMAPP.fgCallback[0])}catch(r){console[x(755)](r)}}))},$e=($,t)=>{if($){let e=new Date,a=e.getTime(),i=new Date($)[x(600)]();if(!t)return a>=i;{let r=new Date(t).getTime();return a>=i&&a<=r}}return!1},$a=async $=>{let t=x;if($&&$[t(619)]>0)FGSECOMAPP[t(403)]?(await new Promise($=>setTimeout($,1500)),FGSECOMAPP[t(403)]=!1,y(),Q($)):(y(),Q($));else{let e=document.getElementById(t(366));e&&(e[t(663)]="")}$t(),FGSECOMAPP[t(929)](),FGSECOMAPP[t(514)](FGSECOMAPP[t(550)]),$o=[]},$i=async $=>{let t=x;$o=[];let e=new URL(window[t(521)][t(329)]);e[t(422)][t(816)](t(938),""),i(e[t(394)]()).then($=>$[t(943)]()).then($=>{let x=t,e=new DOMParser,a=e.parseFromString($,"text/html"),{cart_drawer_query:i,cart_icon_query:r}=FGSECOMAPP[x(800)],c=[...i?.tool][x(956)](Boolean)[x(946)](","),o=[...r?.[x(783)]][x(956)](Boolean)[x(946)](","),s=[...r?.[x(371)]].filter(Boolean)[x(946)](","),n=document[x(372)](c),d=!1;n&&(d=!0,n[x(663)]=a[x(372)](c)?.innerHTML??n[x(663)]);let l=document.querySelector(o);l||(l=document[x(372)](s)),l&&(d=!0,l[x(663)]=a[x(372)](o)?.[x(663)]??a.querySelector(s)?.[x(663)]??l[x(663)]),d||console[x(409)](x(435))}),typeof FGSECOMAPP?.reRenderCartCustom===t(747)&&await FGSECOMAPP.reRenderCartCustom(),document[t(543)](new CustomEvent(FGSECOMAPP[t(858)][t(782)],{detail:{}})),p(t(958)),setTimeout(function(){$a($)},800)},$r=async $=>{let t=x,e=await i(t(306)+($??""),{method:t(748),headers:{Accept:t(918),"Content-Type":t(918)}})[t(389)]($=>$.json()),a=e[t(303)];return FGSECOMAPP[t(571)]=e,FGSECOMAPP.cartItems=a?.[t(643)]($=>({...FGSECOMAPP.cartItems?.find(x=>x.id===$.id),...$}))??[],e},$c=async()=>{let $=x,t=FGSECOMAPP[$(571)];try{await i(SECOMAPP.freegiftProxy,{method:$(748),headers:{"Content-Type":$(486)}}).then(async x=>{let e=$,a=await x[e(665)]();FGSECOMAPP[e(684)]=a?.cart?.[e(643)]($=>{let x=e;return{...FGSECOMAPP[x(684)]?.[x(722)](x=>x.id===$.id),...$[x(511)],collections:$.collections,tags:$[x(393)]}})??[],FGSECOMAPP[e(571)]=a?.[e(774)]??{},t=FGSECOMAPP[e(571)]})[$(474)](async x=>{let e=$;console[e(755)](e(577)+x[e(963)]),t=await $r()})}catch(e){console[$(755)]($(454),e[$(963)]),t=await $r()}return t},$o=[],$s=async $=>{let t=x;try{$o[t(671)]($[0]),document[t(543)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS.START_PROCESS_CART,{detail:{events:$o}})),await $c();let e=await V(FGSECOMAPP[t(684)],FGSECOMAPP[t(550)]);FGSECOMAPP[t(514)](FGSECOMAPP.offers);let a=!1;return $[0][t(712)]("/cart/add")&&JSON[t(934)]($[1][t(937)]??[]).includes("sca_add_gift")?(console[t(409)](t(319),[...$o]),await $i(e),a=!0):$[0][t(712)](t(341))&&JSON[t(934)]($[1][t(937)]??[])[t(585)]("sca_process_gifts")?(console[t(409)](t(862),[...$o]),await $i(e),a=!0):(console[t(409)]("this is others",[...$o]),await $a(e)),$v(),a&&(window[t(521)][t(329)][t(585)](t(417))||"fg-checkout"===document[t(372)]("#secomapp_freegifts_version")?.[t(590)](t(840)))&&($o=[],location[t(444)]()),document[t(543)](new CustomEvent(FGSECOMAPP[t(858)][t(770)],{detail:{events:$o}})),FGSECOMAPP[t(684)]}catch(i){console.error(i)}},$n=()=>{let $=x;if(!Shopify?.[$(650)])return;let t=document[$(372)]($(603));if(!t)return;t[$(663)]="";let e=Shopify?.[$(499)]??$(940),a=document[$(384)]("li");a[$(850)]="sca-fg-toast sca-fg-success",a[$(663)]=$(721)+e+$(945),t[$(339)](a),a[$(673)]=setTimeout(()=>$d(a),3e3),document[$(372)]($(343))?.addEventListener($(725),()=>$d(a))},$d=$=>{let t=x;$[t(723)][t(886)](t(786)),$[t(673)]&&clearTimeout($[t(673)]),setTimeout(()=>$[t(356)](),500)},$l=$=>{let t=x;try{let e=FGSECOMAPP.fgSettings?.mode_override_checkout,a=e===t(529)?$[t(655)]:$.currentTarget??$.target;a?.[t(424)](t(627))||(a=document[t(372)](t(669))?.parentNode);let i=JSON.parse(a.getAttribute(t(950)));if(a[t(569)]=i?.[t(569)]??"",a[t(663)]=i?.[t(663)]??"",a.disabled=!1,a[t(696)](t(725),$f),a[t(681)](t(627)),e===t(484)){a[t(825)].querySelector(t(823))[t(725)]();return}e===t(529)&&window[t(696)](t(725),$8,!0),a[t(725)]()}catch(r){window[t(521)][t(867)]((Shopify?.routes?.[t(969)]??"/")+t(644)),console.error(r.message)}};FGSECOMAPP.customLoadingCheckout=async($,t)=>{let e=x;if($===e(355)&&t)t[e(639)]=!0,t.setAttribute(e(950),JSON.stringify({innerHTML:t[e(663)],value:t.value})),typeof FGSECOMAPP?.[e(640)]===e(747)?await FGSECOMAPP[e(640)]($):(t[e(569)]=Shopify?.[e(885)]??e(733),t[e(663)]=Shopify?.[e(848)]??e(883));else if($===e(958)&&t){if(typeof FGSECOMAPP?.scaCustomLoadingCheckout===e(747))await FGSECOMAPP.scaCustomLoadingCheckout($);else{let a=JSON[e(295)](t[e(590)]("data-fg-checkout-btn"));t[e(569)]=a?.[e(569)]??"",t[e(663)]=a?.[e(663)]??""}t[e(639)]=!1}else"error"===$?(typeof FGSECOMAPP?.scaCustomLoadingCheckout===e(747)&&await FGSECOMAPP[e(640)]($),window[e(521)][e(867)]((Shopify?.[e(692)]?.[e(969)]??"/")+e(644))):console[e(755)](e(814),$)};let $f=async $=>{let t=x;try{$.preventDefault(),$[t(318)](),$[t(642)]();let e=FGSECOMAPP.fgSettings?.mode_override_checkout,a="trigger_body"===e?$[t(655)]:$.currentTarget??$[t(655)],{form:r}=a;if(await FGSECOMAPP[t(615)](t(355),a),document[t(543)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(443)],{detail:{}})),FGSECOMAPP[t(573)])return!1;FGSECOMAPP[t(573)]=!0;try{if(!Shopify?.disable_fetch_cart_checkout){let c=new URL(r.action);c[t(422)][t(489)]("sca_checkout_form",""),await i(c[t(394)](),{method:t(757),body:new FormData(r)})}}catch(o){console[t(409)](t(771))}if(C(FGSECOMAPP[t(550)])&&C(FGSECOMAPP[t(684)]?.[t(722)]($=>g($))))return console[t(409)]("not have orders and gifts"),$l($),!1;await $c();let s=[...FGSECOMAPP.cartItems],{arrGiftsRemove:n}=j(s,FGSECOMAPP.offers,!1);if(await V(s,FGSECOMAPP[t(550)]),n?.length>0)location.reload();else try{FGSECOMAPP[t(560)][t(842)]&&!C(FGSECOMAPP[t(684)]?.[t(722)]($=>g($)))?await i(SECOMAPP[t(641)]+t(959)+Shopify?.shop,{method:t(748),headers:{"Content-Type":t(486)}})[t(389)](async $=>{let x=t,e=await $[x(665)]();e[x(907)]=(e[x(907)]??[])[x(643)]($=>{let t=x;return $[t(511)][t(478)]=$.collections?.map($=>({id:$.id})),$[t(511)].tags=$[t(393)],{id:$[t(511)].id,variant_id:$[t(511)][t(453)],title:$[t(511)][t(652)],handle:$.product[t(460)],price:k($.product),quantity:$[t(511)][t(541)],product_type:$.product.product_type,vendor:$[t(511)][t(386)],tags:$.product.tags,collections:$.product[t(478)],selling_plan_allocation:$[t(511)][t(689)]}}),e[x(413)]={arr_offer_added:FGSECOMAPP[x(882)],secomapp:{customer:SECOMAPP?.[x(300)]??{},fg_codes:SECOMAPP?.[x(567)]??[],fgSettings:FGSECOMAPP.fgSettings},cookie_fg_code:B("sca_fg_codes"),shopify_currency:Shopify?.[x(827)],customer_location:FGSECOMAPP.customerLocation},await i(SECOMAPP.freegiftProxy+x(468)+LZString[x(623)](e=JSON.stringify(e)),{method:x(748),headers:{"Content-Type":x(486)}})[x(389)](async $=>{let t=x,e=await $.json();try{FGSECOMAPP[t(573)]=!1,e[t(714)]&&(window[t(521)][t(329)]=e[t(714)].invoice_url)}catch(a){console[t(755)](a)}})}):(console[t(409)](t(462)),FGSECOMAPP.checkIsBlockCheckout=!1,$l($))}catch(d){FGSECOMAPP.checkIsBlockCheckout=!1,$l(d)}await FGSECOMAPP.customLoadingCheckout(t(958),a=e===t(529)?$[t(655)]:$[t(563)]??$[t(655)]),document.dispatchEvent(new CustomEvent(FGSECOMAPP[t(858)][t(525)],{detail:{status:t(847)}}))}catch(l){await FGSECOMAPP[t(615)](t(755)),document.dispatchEvent(new CustomEvent(FGSECOMAPP[t(858)][t(525)],{detail:{status:"error"}})),console[t(755)](l)}},$8=async $=>{let t=x;$.target?.[t(424)](t(627))&&await $f($)},$_=()=>{let $=x,t=FGSECOMAPP[$(560)]?.[$(688)],{checkout_btn_query:e}=FGSECOMAPP[$(800)],a=[...e?.tool,...e?.[$(421)],...e?.[$(371)]].filter(Boolean)[$(946)](",");document[$(566)](a).forEach(x=>{let e=$,a=x[e(424)]("sca_root_checkout"),i=x[e(424)](e(353)),r=x.hasAttribute("sca_handle_checkout");if(t===e(484)){if(a)return;if(!i&&!r){let c=x[e(707)](!0);c.addEventListener(e(725),$f),c[e(349)]("sca_handle_checkout",""),c[e(349)]("sca_clone_checkout",""),x[e(612)][e(677)]=e(463),x.style[e(925)]=e(887),x[e(612)].opacity="0",x.setAttribute(e(574),""),x[e(825)]?.[e(339)](c)}i&&!r&&(x[e(901)](e(725),$f),x[e(349)](e(627),""))}else t===e(529)?x[e(349)]("sca_handle_checkout",""):r||(x.addEventListener(e(725),$f),x[e(349)](e(627),""));FGSECOMAPP[e(911)]=!0}),t===$(529)&&window[$(901)]($(725),$8,!0)};FGSECOMAPP[x(929)]=()=>{let $=x;FGSECOMAPP[$(336)]=0;let t=setInterval(()=>{let x=$;$_(),FGSECOMAPP[x(336)]++,(FGSECOMAPP[x(336)]>10||FGSECOMAPP[x(911)])&&(FGSECOMAPP[x(336)]=0,clearInterval(t))},400)};let $1=$=>{let t=x;try{let e={},a={},i=FGSECOMAPP[t(550)];if(C($)){$=[],C(Shopify?.current_product)||$.push({...Shopify?.[t(519)]});let r={...Shopify?.[t(385)],...Shopify?.current_collection?.[t(500)]};Object.values(FGSECOMAPP[t(348)])?.[t(956)]($=>!C($[t(359)])&&(C($?.[t(750)])||$?.[t(750)]&&!$?.[t(338)]?.[t(654)]($=>$?.[t(723)]?.[t(392)](t(402)))))?.[t(469)]($=>{r[$.info.id]={...$[t(359)]}}),$=$[t(494)]([...Object[t(731)](r)])}$?.[t(469)]($=>{let x=t,e=FGSECOMAPP.productsInPage[$[x(460)]];FGSECOMAPP[x(348)][$.handle]={...e,info:{...$},product_has_icon:!!C(i)&&void 0}});let c=FGSECOMAPP.fgSettings?.[t(482)];for(let o in i?.forEach(x=>{let i=t,r=x[i(628)];if(1===r[i(619)]&&r[0][i(932)]===i(941)&&typeof r[0][i(596)]===i(510)){let o,s=r[0][i(399)];s?.[i(469)](x=>{let t=i;switch(x.type){case"variants_ids":o=Object.values(x.value);break;case t(738):let e=Object[t(370)](x[t(569)]);e[t(619)]>0&&(o=(void 0===o?$:o)?.[t(956)]($=>e[t(585)]($[t(401)]))??[]);break;case"product_vendors":let a=Object[t(370)](x[t(569)]);a[t(619)]>0&&(o=(void 0===o?$:o)?.[t(956)]($=>a.includes($.vendor))??[]);break;case t(593):let r=Object[t(370)](x[t(569)]);r[t(619)]>0&&(o=(void 0===o?$:o)?.[t(956)]($=>{let x=t,e=$[x(478)]?.[x(643)]($=>$.id+""),a=e?.[x(956)]($=>r.includes($));return!C(a)})??[])}}),o?.[i(469)]($=>{let t=i,r=$.handle,o=JSON[t(295)](JSON[t(934)](x.gift_products)),s=FGSECOMAPP[t(348)][r]?.[t(359)]??{};if(FGSECOMAPP.fgSettings?.[t(953)]&&(o=o[t(956)]($=>$.original_product_shopify_id!==s?.id)),c&&(o=o.filter($=>{let x=t;return $[x(524)][x(791)]($=>$?.[x(944)]<=s?.[x(767)]/100)}),C(o)))return;if(e[r]){let n=e[r];o?.[t(469)]($=>{let e=t,a=n[e(722)](x=>x[e(307)]===$[e(307)]);if(C(a)){n[e(671)]({...$,belongs_to_offer:[x[e(332)]]});return}let i=$[e(524)][e(643)]($=>$.original_variant_shopify_id);a.belongs_to_offer?.[e(585)](x[e(332)])||a[e(813)]?.[e(671)](x[e(332)]),a[e(524)]=a?.variants?.[e(956)]($=>!i[e(585)]($.original_variant_shopify_id))??[],a[e(524)]=[...a[e(524)],...$[e(524)]]}),e[r]=n}else e[r]=o?.[t(643)]($=>({...$,belongs_to_offer:[x.offer_root]}));let d=($[t(524)]??$[t(327)])?.map($=>$.id)??[];a[r]={},FGSECOMAPP[t(348)][r]?.[t(359)]?.[t(524)]?.filter($=>d[t(585)]($.id))?.[t(469)]($=>{let x=t;a[r][$.id]=o[x(956)](t=>{let e=x,a=t[e(524)];return c&&(a=a[e(956)](x=>x?.[e(944)]<=$.price/100)),!C(a)})})})}}),e){let s=FGSECOMAPP[t(348)][o];FGSECOMAPP[t(348)][o]={...s,gifts_will_receive:[...e[o]],product_has_icon:!0,variants_has_gift:{...a[o]}}}return Object[t(967)](e)?.[t(619)]?e:{}}catch(n){return console[t(755)](n),null}},$g=$=>{let e=x,a=FGSECOMAPP[e(305)][e(835)]??{};if(!a[e(515)]?.[e(821)])return!1;let i=document.querySelector(t[e(618)])?.[e(663)]??t.GIFT_THUMBNAIL_ITEMS_SECTION,r=$?.map($=>i.replaceAll(/{{\s*fg_product_handle\s*}}/gm,h(w($[e(307)],$.original_product_handle),!0))[e(357)](/{{\s*fg_product_img\s*}}/gm,h(K($[e(768)]),!0))[e(357)](/{{\s*fg_product_img_alt\s*}}/gm,h(S($[e(307)],$.title))))[e(946)](""),c=document.querySelector(t.GIFT_THUMBNAIL_SECTION_ID)?.[e(663)]??t.GIFT_THUMBNAIL_SECTION,o=c[e(357)](/{{\s*fg_gift_thumbnail_title\s*}}/gm,h(m(a[e(515)]?.title??e(448),e(675))))[e(357)](/{{\s*sca_fg_gift_thumbnail_items_section\s*}}/gm,r)[e(357)](/{{\s*fg_check_show_narrow\s*}}/gm,$?.length>=4?"":"sca-d-none"),{gift_thumbnail_query:s}=FGSECOMAPP[e(800)]??{},n=[...s?.[e(783)]][e(956)](Boolean)[e(946)](","),d=[...s?.integration,...s?.[e(371)]][e(956)](Boolean)[e(946)](",");e(364);let l=document[e(372)](n)??document[e(372)](d);if(!l)return;l[e(825)][e(612)][e(806)]=e(954),l[e(825)][e(612)].height="auto",l.parentNode?.[e(850)]?.[e(585)](e(868))||l[e(825)]?.classList?.[e(886)](e(868));let f=l[e(825)][e(372)](e(446));if(f)f[e(663)]=o;else{(f=document[e(384)](e(674))).setAttribute("id",e(310));let _=new DOMParser().parseFromString(o,e(420));f[e(663)]=_[e(741)][e(663)],l[e(825)].insertBefore(f,l)}l.parentNode[e(324)](f,l);let g=document[e(372)](e(802));if(g)switch(a[e(515)]?.size){case"32":g[e(612)][e(864)]=e(913);break;case"50":g[e(612)][e(864)]=e(301);break;case"100":g[e(612)][e(864)]=e(735);break;case"160":g[e(612)][e(864)]=e(877);break;case e(606):g.style[e(864)]="100%";break;default:g[e(612)][e(864)]=e(301)}if($?.[e(619)]>=(Shopify?.number_gifts_thumbnail??4))new Glider(document[e(372)](".sca-list-gift-thumbnail"),{slidesToShow:(Shopify?.number_gifts_thumbnail??4)-1,slidesToScroll:1,draggable:!0,dots:e(846),arrows:{prev:e(368),next:e(948)}});else{g&&(g.style[e(864)]=e(954));let u=document[e(372)](".sca-list-gift-thumbnail");u&&(u[e(612)][e(677)]="flex")}return $},$u=()=>{let $=x;if(!(FGSECOMAPP[$(305)][$(835)]??{}).gift_icon?.[$(821)])return!1;let e=document[$(372)](t[$(784)])?.[$(663)]??t[$(951)],a=e[$(357)](/{{\s*fg_gift_icon\s*}}/gm,FGSECOMAPP[$(305)].gift_icon_path)[$(357)](/{{\s*fg_gift_icon_alt\s*}}/gm,$(480))[$(357)](/{{\s*fg_class_product_or_collection_page\s*}}/gm,"sca-gift-icon-img"),{gift_icon_product_query:i}=FGSECOMAPP[$(800)],r=[...i?.[$(783)]][$(956)](Boolean)[$(946)](","),c=[...i?.[$(371)],...i?.[$(421)]][$(956)](Boolean).join(","),o=document[$(372)](r)??document[$(372)](c);if(!o)return;o[$(612)][$(464)]=$(565),o.style[$(806)]=$(344),o.className?.includes($(727))||o[$(723)]?.[$(886)]($(727));let s=o[$(372)]($(910));if(s)s[$(663)]=a;else{(s=document[$(384)]($(674))).setAttribute("id",$(698));let n=new DOMParser()[$(797)](a,"text/html");s[$(663)]=n[$(741)][$(663)],o[$(339)](s)}return FGSECOMAPP[$(305)][$(855)]},$p=()=>{let $=x,t=[],{gift_icon_collection_query:e}=FGSECOMAPP.QUERY_SELECTOR,a=[...e?.[$(783)],...e?.[$(421)],...e?.[$(371)]][$(956)](Boolean).join(",");return document[$(566)](a)[$(469)](x=>{let e=$,a=x[e(372)]('a[href*="/products/"]'),i=a?.[e(590)](e(329))?.[e(379)]("/")??[],r=i?.indexOf(e(500)),c=r>=0?i[r+1]??null:null;if(c=c?.[e(379)]("?")?.shift(),g(c)){x[e(356)]();return}let o=x[e(372)](e(809));if(o){x[e(356)]();return}if(C(c))return;let s=decodeURI(c);C(FGSECOMAPP[e(348)][s]?.info)&&t.push(s);let n=(FGSECOMAPP[e(348)][s]?.[e(338)]??[])[e(956)]($=>!x.isSameNode($));n[e(671)](x),FGSECOMAPP[e(348)][s]={...FGSECOMAPP[e(348)][s],positions:[...n]}}),t},$b=$=>{let e=x;Object.keys($)?.[e(469)]($=>{let x=e,a=FGSECOMAPP[x(348)][$]?.[x(338)]??[];if(C(a)||!Array[x(772)](a))return;if(!(FGSECOMAPP[x(305)][x(599)]??{})[x(821)])return;let i=document[x(372)](t[x(784)])?.[x(663)]??t.GIFT_ICON_SECTION,r=i[x(357)](/{{\s*fg_gift_icon\s*}}/gm,FGSECOMAPP[x(305)].gift_icon_path).replaceAll(/{{\s*fg_gift_icon_alt\s*}}/gm,x(480))[x(357)](/{{\s*fg_class_product_or_collection_page\s*}}/gm,x(345));a[x(469)]($=>{let t=x;$[t(612)][t(464)]=t(565),$.className?.[t(585)](t(488))||$[t(723)]?.[t(886)](t(488));let e=$[t(372)](t(375));if(e)e[t(663)]=r;else{(e=document[t(384)](t(674))).setAttribute(t(559),t(402));let a=new DOMParser()[t(797)](r,t(420));e[t(663)]=a[t(741)][t(663)],$[t(339)](e)}})})},$m=async $=>{let t=x;await i(SECOMAPP[t(641)]+t(638)+LZString[t(623)](JSON.stringify($)),{method:"GET",headers:{"Content-Type":t(486)}})[t(389)](async $=>{let x=t,e=await $.json(),a=[];e?.[x(500)]?.forEach($=>{let t=x;C($?.[t(500)]?.id)||a[t(671)]({...$[t(500)],collections:$.collections,variants_quantity:$[t(803)]})});let i=$1(a);$b(i)})[t(474)]($=>{console[t(755)]($)})},$h=async $=>{let t=x,e=[];for(let[a,i]of $[t(967)]())C(FGSECOMAPP[t(348)][i]?.[t(359)])&&e.push(i),20===e[t(619)]&&(await $m([...e]),e=[]),a===$.length-1&&e[t(619)]>0&&(await $m([...e]),e=[])},$3=()=>{let $=$p(),t=$1();$b(t),$h($)[x(389)]()},$y=()=>{let $=x;Shopify?.[$(666)]&&document[$(901)]($(509),function(){let x=$,t=new URL(document.URL),e=parseInt(t[x(422)][x(517)](x(327)));$4(isNaN(e)?void 0:e)})},$4=$=>{let t=x;if(!location[t(329)].includes(t(442)))return;document[t(372)](t(910))?.[t(356)](),document[t(372)](t(446))?.remove();let e=$1();if(C(e))return;let a=location[t(625)][t(379)]("/"),i=a?.[t(952)]("products"),r=decodeURI(i>=0?a[i+1]??null:null);if(!Object[t(370)](e)?.[t(585)](r))return;let c=e[r],o=FGSECOMAPP[t(348)][r]?.[t(856)]??{},s=Object.keys(o),n=!0;Shopify?.enable_check_variants_has_gift&&(C($)||s[t(585)](""+$)||(n=!1),!C($)||C(Shopify?.[t(519)]?.[t(466)])||s[t(585)](Shopify?.current_product?.current_variant?.id?.[t(394)]())||(n=!1),c=o[$??Shopify?.current_product?.[t(466)]?.id]??[]),document.dispatchEvent(new CustomEvent(FGSECOMAPP[t(858)][t(955)],{detail:{icon:FGSECOMAPP[t(305)][t(855)],gifts:$7(c),product:{handle:r,variant:$??Shopify?.current_product?.current_variant?.id}}})),n&&($g(c),$u(c))};FGSECOMAPP.renderPromotionMessage=$=>{let e=x;try{if(!FGSECOMAPP[e(760)][e(427)])return;C($)&&($=[...FGSECOMAPP[e(550)]]);let a=location.href[e(585)](e(417)),i=[];if($?.[e(469)]($=>{let x=e;$[x(595)]||C($[x(616)])||!C(FGSECOMAPP[x(705)])&&!$[x(595)]&&$[x(362)]>FGSECOMAPP[x(705)]||C(($.count_down_value??0)+($[x(704)]??0))&&/({{sca_min_total}})|({{sca_min_quantity}})/gm[x(512)]($[x(616)])||i[x(671)]({value:m($[x(616)],x(753)+$[x(332)]).replaceAll(x(765),$[x(897)]?.toFixed(Shopify?.[x(933)]??2)).replaceAll(x(780),$[x(704)]),offer_root:$.offer_root})}),document[e(543)](new CustomEvent(FGSECOMAPP[e(858)][e(787)],{detail:{data:i}})),C(i)){document[e(566)](e(533))[e(469)]($=>$[e(663)]="");return}let r=document[e(372)](t[e(794)])?.[e(663)]??t[e(404)],c=i[e(643)]($=>r[e(357)](/{{\s*fg_cart_message\s*}}/gm,h($[e(569)])))[e(946)](""),o=document[e(372)](t[e(496)])?.innerHTML??t[e(430)],s=o.replaceAll(/{{\s*sca_fg_cart_message_items_section\s*}}/gm,c),{cart_message_query:n}=FGSECOMAPP[e(800)],d=document.querySelector([...n?.[e(371)]][e(956)](Boolean).join(",")),l=document[e(566)]([...n?.tool,...n?.[e(421)]][e(956)](Boolean)[e(946)](",")),f=document[e(566)](e(533));C(f)||f.forEach($=>$[e(663)]=s),(f=document.createElement(e(674)))[e(349)]("id",e(857)),f[e(723)][e(886)](e(857));let _=new DOMParser()[e(797)](s,e(420));f[e(663)]=_[e(741)].innerHTML,C(l)||l?.[e(469)]($=>{let x=e;if($[x(372)](".sca-promotion-message-layout"))return;let t=f[x(707)](!0);$[x(547)](t)}),!d?.querySelector(".sca-promotion-message-layout")&&(_=new DOMParser()[e(797)](s,e(420)),f.innerHTML=_.body[e(663)],d&&a&&d[e(547)](f));try{document[e(566)](".sca-promotion-glider")[e(469)]($=>{let x=new Glider($);(($,x)=>{let t=_0xc50d,e=$[t(729)][t(870)],a=null,i=1;function r(){a=setTimeout(()=>{let x=_0xc50d;i>=e&&(i=0),$[x(863)](i++)},x)}$[t(400)][t(901)]("glider-animated",function(){window[t(311)](a),r()}),r()})(x,Shopify?.[e(440)]??3e3)})}catch(g){console[e(755)](g)}}catch(u){console[e(755)](u)}};let $2=async()=>{let $=x;try{let t=await i($(388)),e=await t[$(665)]();FGSECOMAPP[$(828)]=e?.[$(900)]}catch(a){console[$(409)]($(645))}},$7=($,t)=>{let e=x;return $?.[e(643)]($=>{let x=e;return{id:$[x(859)],title:S($[x(307)],$[x(652)]),handle:$[x(889)],thumbnail:$[x(768)],belongs_to_offer:$[x(813)]??""+t,variants:$[x(524)][x(643)]($=>{let t=x;return{id:$[t(498)],title:$[t(908)],price:O($.price),original_price:O($[t(970)]),thumbnail:$[t(768)],discount_type:$[t(709)],discount_value:$.discount_value}})}})??[]},$5=()=>{let $=x;if(!FGSECOMAPP.fgAppearanceTodayOffer?.widget_info?.[$(497)]||!FGSECOMAPP[$(550)][$(619)])return;let e=document[$(372)]($(769)),a=document.querySelector("#sca-fg-today-offer-iframe");if(!e||!a)return;let i=document.querySelector(t[$(839)])?.[$(663)]??t.TODAY_OFFER_SECTION,r=document[$(372)](t[$(433)])?.[$(663)]??t[$(853)],c=document[$(372)](t.TODAY_OFFER_WIDGET_ID)?.innerHTML??t[$(680)],o={};FGSECOMAPP[$(550)].forEach(x=>{let t=$;o[x[t(332)]]=x});let s=Object.values(o);s.sort((x,t)=>new Date(x.start_time)-new Date(t[$(467)])),e[$(663)]=c[$(357)](/{{\s*sca_fg_today_offer_widget\s*}}/gm,h(FGSECOMAPP.fgAppearanceTodayOffer.widget_icon_path)),FGSECOMAPP.fgAppearanceTodayOffer?.[$(570)][$(679)]===$(779)&&(e[$(723)][$(886)]($(299)),a[$(723)].add($(572))),FGSECOMAPP.fgAppearanceTodayOffer?.[$(570)][$(679)]===$(764)&&(e.classList[$(886)]($(506)),a[$(723)].add($(477))),a.innerHTML=i[$(357)](/{{\s*sca_fg_today_offer_title\s*}}/gm,h(m(FGSECOMAPP[$(682)][$(570)][$(713)]??$(568),$(820))))[$(357)](/{{\s*sca_fg_today_offer_subtitle\s*}}/gm,h(m(FGSECOMAPP.fgAppearanceTodayOffer.widget_info[$(630)]??$(398),$(622)))),document[$(372)]($(852))[$(663)]=s[$(643)](x=>r[$(357)](/{{\s*sca_fg_offer_id\s*}}/gm,h(x[$(332)])).replaceAll(/{{\s*sca_fg_offer_title\s*}}/gm,h(m(x.offer_name,$(715)+x[$(332)])))[$(357)](/{{\s*sca_fg_offer_title_tooltip\s*}}/gm,h(m(x[$(312)],$(715)+x[$(332)]))).replaceAll(/{{\s*sca_fg_offer_img\s*}}/gm,h(x[$(773)][0][$(768)],!0)))[$(946)]("\n"),document.querySelector("#sca-fg-today-offer-widget .sca-fg-count-offers")[$(663)]=s[$(619)].toString();let n=()=>{let x=$,t=document[x(372)]("#sca-fg-today-offer-iframe");t?.classList.toggle(x(926));let e=document[x(566)](".sca-fg-icon-success");e[x(469)]($=>{let t=x;$[t(723)][t(808)](t(556))})};document.querySelector(".sca-fg-close-today-offer")[$(901)]("click",n),document[$(372)]($(769))[$(901)]($(725),n),document[$(543)](new CustomEvent(FGSECOMAPP[$(858)].RENDER_TODAY_OFFER,{detail:{todayOffers:s[$(643)](x=>{let t=$,e=fgData[t(550)][t(722)]($=>$.id[t(394)]()===x[t(332)]);return{id:""+e.id,title:m(x[t(312)],t(715)+x.offer_root),gifts:$7(e[t(773)],e.id),success:x.isReachConditions??!1}})}})),$v();let d=(x,t,e)=>{let a=$,i=document[a(384)]("p");i[a(850)]=a(581),i[a(380)]=x,document.body[a(339)](i),i[a(612)][a(575)]=e+"px",i[a(612)].left=t+"px",i[a(612)].display=a(756)},l=()=>{let x=$,t=document[x(372)](x(966));t&&t.parentNode[x(975)](t)},f=x=>{let t=$,e=document[t(372)](t(966));e&&(e[t(612)][t(575)]=x.pageY+"px",e[t(612)][t(895)]=x[t(539)]+5+"px")},_=document[$(566)](".sca-offer-title");_[$(469)](function(x){let t=$;x[t(901)](t(632),function($){let e=t,a=x[e(590)](e(613));d(a,$[e(539)]+5,$[e(683)]+5)}),x[t(901)](t(801),function(){l()}),x.addEventListener(t(397),f)})},$v=()=>{let $=x,t=[...new Set(FGSECOMAPP[$(550)]?.[$(956)](x=>x[$(595)])?.[$(643)]($=>$.offer_root))];document[$(543)](new CustomEvent(FGSECOMAPP[$(858)][$(972)],{detail:{idOffersSuccess:t}}));let e=document[$(566)]($(778));e[$(469)](x=>{let e=$;t[e(585)](x.getAttribute("data-fg-offer-id"))?x.classList[e(886)](e(535)):x[e(723)][e(356)](e(535))})},$6=function(){let $=x;try{document[$(901)](FGSECOMAPP[$(858)][$(782)],async()=>{let x=$;try{window[x(961)]&&(unicart.dispatchEvent(x(501)),console[x(409)]("Unicart"))}catch(t){console[x(755)](x(495),t)}try{window.prepareDataForDisplayWidgetByRule&&(await window.prepareDataForDisplayWidgetByRule(),console.log(x(841)))}catch(e){console.error(x(841),e)}try{window[x(459)]?.Cart?.fetchCart&&window.Rebuy[x(605)].fetchCart()}catch(a){console[x(755)](x(459),a)}try{window[x(739)]&&(await $r(x(461))[x(389)]($=>{let t=x;window[t(739)]($),window[t(793)]()}),console[x(409)](x(335)))}catch(i){console[x(755)](x(335),i)}try{let r=document[x(372)](x(745));window.upcartRegisterAddToCart&&(await window[x(761)](),console[x(409)](x(493)),r&&(r[x(663)]=FGSECOMAPP?.[x(571)]?.[x(888)]??0))}catch(c){console.error(x(493),c)}try{window[x(880)]&&(await window[x(880)](),window.STICKY_CART_OPEN(),console[x(409)](x(838)))}catch(o){console.error(x(838),o)}try{window?.[x(890)]?.[x(949)]?.[x(561)]?.[x(582)]&&(await window[x(890)][x(949)].CartSlider[x(582)](),console.log(x(587)))}catch(s){console[x(755)](x(587),s)}try{window.monster_refresh&&(await window[x(350)](),window[x(869)](),console[x(409)](x(894)))}catch(n){console.error(x(894),n)}try{window[x(316)]&&await (window.HS_SLIDE_CART_UPDATE(),window[x(691)](),console[x(409)](x(551)))}catch(d){console.error(x(894),d)}try{let l=document[x(372)](x(742)),f=document[x(372)](x(555));window[x(697)]&&l&&(await l?.[x(678)](!window.FoxKitV2?.[x(656)]),l?.[x(891)]()),window.FoxTheme&&f&&(await f?.[x(930)](),f?.[x(819)]?.[x(649)]())}catch(_){console[x(755)](x(604),_)}try{window[x(968)]&&await (CartJS?.[x(346)](),console.log(x(614)))}catch(g){console[x(755)]("Rivets Cart",g)}try{window[x(492)]?.[x(605)]?.[x(542)]&&await (T4SThemeSP[x(605)][x(542)](),console[x(409)](x(492)))}catch(u){console[x(755)](x(492),u)}}),window[$(901)]($(302),function(x){let t=$;FGSECOMAPP[t(514)](),FGSECOMAPP[t(929)]()}),document.addEventListener("rebuy:smartcart.show",x=>{let t=$;FGSECOMAPP[t(514)](),FGSECOMAPP[t(929)]()}),window[$(879)]=function(){FGSECOMAPP[$(514)](),FGSECOMAPP.fetchCheckoutEvents()},window[$(686)]=()=>{let x=$;FGSECOMAPP[x(514)](),FGSECOMAPP[x(929)]()},window[$(979)]?.[$(876)]&&window[$(979)][$(876)](window.MinimogTheme?.pubSubEvents?.openCartDrawer??"open-cart-drawer",function(){FGSECOMAPP[$(514)](),FGSECOMAPP.fetchCheckoutEvents()}),document[$(901)](FGSECOMAPP.CUSTOM_EVENTS[$(325)],()=>{let x=$;try{typeof window[x(410)]===x(747)&&window[x(410)](),typeof window[x(740)]===x(747)&&window[x(740)](),typeof window[x(781)]===x(747)&&window[x(781)](),document[x(372)](x(520))?.[x(725)]()}catch(t){console[x(755)](t)}}),document.addEventListener(FGSECOMAPP[$(858)][$(412)],x=>{let t=$;try{!Shopify?.disabled_integration_Rebuy&&window[t(459)]?.[t(605)]?.fetchCart&&window.Rebuy[t(605)].fetchCart(),x[t(734)][t(528)]?.[0]?.[t(585)]("cart/add")&&!document[t(372)]("#UpcartPopup:has(#CartPopup[class*='styles_active'])")&&window.upcartRegisterAddToCart&&window.upcartRegisterAddToCart()}catch(e){console[t(755)](e)}})}catch(t){console[$(755)](t)}};$0(FGSECOMAPP[x(684)])[x(389)](()=>{$6()})}();