window.fgData={"offers":[{"id":11124,"shop_id":5000,"offer_name":"Buy 3, get the 4th FREE!","offer_description":null,"promotion_message":"Activate our family pack deal (buy 3, get the 4th free) when you have three of more Sharkbanz in your cart.","start_time":"2023-09-08T04:07:01.000000Z","end_time":"2025-01-31T20:00: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 Sharkbanz 2 \u2013 Wearable Shark Deterrent (100% off)","original_product_handle":"sharkbanz-2","clone_product_handle":"sharkbanz-2-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_53102cfa-be85-40e6-8620-1ac6f8fdbac2.jpg?v=1661359325","product_shopify_id":8117821014254,"original_product_shopify_id":10069441358,"variants":[{"id":70823,"gift_product_id":27108,"discount_type":"percentage","discount_value":100,"original_price":128,"original_compare_at_price":null,"original_product_shopify_id":10069441358,"original_variant_shopify_id":39945228174,"price":0,"product_shopify_id":8117821014254,"variant_shopify_id":44315310096622,"variant_title":"Slate \/ Black","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_ebb770d4-7ea5-4eb2-9da9-39dceb43cbe6.jpg?v=1694146513","pivot":{"offer_id":11124,"gift_item_id":70823},"gift_product":{"id":27108,"shop_id":5000,"title":"\u00bb Sharkbanz 2 \u2013 Wearable Shark Deterrent (100% off)","original_product_handle":"sharkbanz-2","clone_product_handle":"sharkbanz-2-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_53102cfa-be85-40e6-8620-1ac6f8fdbac2.jpg?v=1661359325","product_shopify_id":8117821014254,"original_product_shopify_id":10069441358,"created_at":"2023-09-08T04:15:14.000000Z","updated_at":"2023-09-08T04:15:14.000000Z"}},{"id":70824,"gift_product_id":27108,"discount_type":"percentage","discount_value":100,"original_price":128,"original_compare_at_price":null,"original_product_shopify_id":10069441358,"original_variant_shopify_id":39944525390,"price":0,"product_shopify_id":8117821014254,"variant_shopify_id":44315310129390,"variant_title":"White \/ Seafoam","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-White-Seafoam-Product-Shark-Deterrent.jpg?v=1655771968","pivot":{"offer_id":11124,"gift_item_id":70824},"gift_product":{"id":27108,"shop_id":5000,"title":"\u00bb Sharkbanz 2 \u2013 Wearable Shark Deterrent (100% off)","original_product_handle":"sharkbanz-2","clone_product_handle":"sharkbanz-2-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_53102cfa-be85-40e6-8620-1ac6f8fdbac2.jpg?v=1661359325","product_shopify_id":8117821014254,"original_product_shopify_id":10069441358,"created_at":"2023-09-08T04:15:14.000000Z","updated_at":"2023-09-08T04:15:14.000000Z"}},{"id":70825,"gift_product_id":27108,"discount_type":"percentage","discount_value":100,"original_price":128,"original_compare_at_price":null,"original_product_shopify_id":10069441358,"original_variant_shopify_id":39944525454,"price":0,"product_shopify_id":8117821014254,"variant_shopify_id":44315310162158,"variant_title":"Slate \/ Azure","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Azure-Product-Shark-Deterrent-1_b5c9fa5a-f1df-4f67-b61c-1881a405c03d.jpg?v=1655771968","pivot":{"offer_id":11124,"gift_item_id":70825},"gift_product":{"id":27108,"shop_id":5000,"title":"\u00bb Sharkbanz 2 \u2013 Wearable Shark Deterrent (100% off)","original_product_handle":"sharkbanz-2","clone_product_handle":"sharkbanz-2-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_53102cfa-be85-40e6-8620-1ac6f8fdbac2.jpg?v=1661359325","product_shopify_id":8117821014254,"original_product_shopify_id":10069441358,"created_at":"2023-09-08T04:15:14.000000Z","updated_at":"2023-09-08T04:15:14.000000Z"}},{"id":70826,"gift_product_id":27108,"discount_type":"percentage","discount_value":100,"original_price":128,"original_compare_at_price":null,"original_product_shopify_id":10069441358,"original_variant_shopify_id":12093619929159,"price":0,"product_shopify_id":8117821014254,"variant_shopify_id":44315310194926,"variant_title":"Marine \/ Slate","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-Proven-Shark-Deterrent-Wearable.jpg?v=1655771968","pivot":{"offer_id":11124,"gift_item_id":70826},"gift_product":{"id":27108,"shop_id":5000,"title":"\u00bb Sharkbanz 2 \u2013 Wearable Shark Deterrent (100% off)","original_product_handle":"sharkbanz-2","clone_product_handle":"sharkbanz-2-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_53102cfa-be85-40e6-8620-1ac6f8fdbac2.jpg?v=1661359325","product_shopify_id":8117821014254,"original_product_shopify_id":10069441358,"created_at":"2023-09-08T04:15:14.000000Z","updated_at":"2023-09-08T04:15:14.000000Z"}},{"id":70827,"gift_product_id":27108,"discount_type":"percentage","discount_value":100,"original_price":128,"original_compare_at_price":null,"original_product_shopify_id":10069441358,"original_variant_shopify_id":13665448493127,"price":0,"product_shopify_id":8117821014254,"variant_shopify_id":44315310227694,"variant_title":"Midnight \/ Bimini","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-Midnight-Bimini-Active-Shark-Deterrent-Angle-3-WSF-Veterans-Day-Warrior-Surf.jpg?v=1655771923","pivot":{"offer_id":11124,"gift_item_id":70827},"gift_product":{"id":27108,"shop_id":5000,"title":"\u00bb Sharkbanz 2 \u2013 Wearable Shark Deterrent (100% off)","original_product_handle":"sharkbanz-2","clone_product_handle":"sharkbanz-2-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_53102cfa-be85-40e6-8620-1ac6f8fdbac2.jpg?v=1661359325","product_shopify_id":8117821014254,"original_product_shopify_id":10069441358,"created_at":"2023-09-08T04:15:14.000000Z","updated_at":"2023-09-08T04:15:14.000000Z"}}]},{"title":"\u00bb FCS X Sharkbanz POD - Surf Shark Deterrent (100% off)","original_product_handle":"fcs-x-sharkbanz-pod-surf-shark-deterrent","clone_product_handle":"fcs-x-sharkbanz-pod-surf-shark-deterrent-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/files\/FCS-Sharkbanz-POD-Studio-Proven-Shark-Repellent-Deterrent-Surf-Black-EG-2023-Back-SB.jpg?v=1694992797","product_shopify_id":8136069972206,"original_product_shopify_id":8105967714542,"variants":[{"id":79230,"gift_product_id":30588,"discount_type":"percentage","discount_value":100,"original_price":100,"original_compare_at_price":null,"original_product_shopify_id":8105967714542,"original_variant_shopify_id":44276206928110,"price":0,"product_shopify_id":8136069972206,"variant_shopify_id":44365286408430,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/files\/FCS-Sharkbanz-POD-Studio-Proven-Shark-Repellent-Deterrent-Surf-Black-EG-2023-Back-SB.jpg?v=1694992797","pivot":{"offer_id":11124,"gift_item_id":79230},"gift_product":{"id":30588,"shop_id":5000,"title":"\u00bb FCS X Sharkbanz POD - Surf Shark Deterrent (100% off)","original_product_handle":"fcs-x-sharkbanz-pod-surf-shark-deterrent","clone_product_handle":"fcs-x-sharkbanz-pod-surf-shark-deterrent-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/files\/FCS-Sharkbanz-POD-Studio-Proven-Shark-Repellent-Deterrent-Surf-Black-EG-2023-Back-SB.jpg?v=1694992797","product_shopify_id":8136069972206,"original_product_shopify_id":8105967714542,"created_at":"2023-10-11T00:17:47.000000Z","updated_at":"2023-10-11T00:17:47.000000Z"}}]}],"offer_conditions":[{"id":11605,"offer_id":11124,"is_multiply":null,"min_amount":"3.00","max_amount":null,"product_narrow":[{"type":"variants_ids","value":{"10069441358":{"id":10069441358,"image":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_53102cfa-be85-40e6-8620-1ac6f8fdbac2.jpg?v=1655768299","title":"Sharkbanz 2 \u2013 Wearable Shark Deterrent","handle":"sharkbanz-2","status":"ACTIVE","vendor":"Sharkbanz","variant":[{"id":39945228174,"image":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_53102cfa-be85-40e6-8620-1ac6f8fdbac2.jpg?v=1661359325","price":"128.00","title":"Slate \/ Black"},{"id":39944525390,"image":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-White-Seafoam-Product-Shark-Deterrent.jpg?v=1655771968","price":"128.00","title":"White \/ Seafoam"},{"id":39944525454,"image":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Azure-Product-Shark-Deterrent-1_b5c9fa5a-f1df-4f67-b61c-1881a405c03d.jpg?v=1655771968","price":"128.00","title":"Slate \/ Azure"},{"id":12093619929159,"image":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-Proven-Shark-Deterrent-Wearable.jpg?v=1655771968","price":"128.00","title":"Marine \/ Slate"},{"id":13665448493127,"image":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-Midnight-Bimini-Active-Shark-Deterrent-Angle-3-WSF-Veterans-Day-Warrior-Surf.jpg?v=1655771923","price":"128.00","title":"Midnight \/ Bimini"}],"product_tag":[],"product_type":null,"total_variants":5,"variant_last_cursor":"eyJsYXN0X2lkIjoxMzY2NTQ0ODQ5MzEyNywibGFzdF92YWx1ZSI6IjUifQ=="},"8105967714542":{"id":8105967714542,"image":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/files\/FCS-Sharkbanz-POD-Studio-Proven-Shark-Repellent-Deterrent-Surf-Black-EG-2023-Back-SB.jpg?v=1694823940","title":"FCS X Sharkbanz POD - Surf Shark Deterrent","handle":"fcs-x-sharkbanz-pod-surf-shark-deterrent","status":"ACTIVE","vendor":"Sharkbanz","variant":[{"id":44276206928110,"image":null,"price":"100.00","title":"Default Title"}],"product_tag":[],"product_type":null,"total_variants":1,"variant_last_cursor":"eyJsYXN0X2lkIjo0NDI3NjIwNjkyODExMCwibGFzdF92YWx1ZSI6IjEifQ=="}}}],"unit":"number_of_products"}],"gift_items":[{"id":70823,"gift_product_id":27108,"discount_type":"percentage","discount_value":100,"original_price":128,"original_compare_at_price":null,"original_product_shopify_id":10069441358,"original_variant_shopify_id":39945228174,"price":0,"product_shopify_id":8117821014254,"variant_shopify_id":44315310096622,"variant_title":"Slate \/ Black","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_ebb770d4-7ea5-4eb2-9da9-39dceb43cbe6.jpg?v=1694146513","pivot":{"offer_id":11124,"gift_item_id":70823},"gift_product":{"id":27108,"shop_id":5000,"title":"\u00bb Sharkbanz 2 \u2013 Wearable Shark Deterrent (100% off)","original_product_handle":"sharkbanz-2","clone_product_handle":"sharkbanz-2-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_53102cfa-be85-40e6-8620-1ac6f8fdbac2.jpg?v=1661359325","product_shopify_id":8117821014254,"original_product_shopify_id":10069441358,"created_at":"2023-09-08T04:15:14.000000Z","updated_at":"2023-09-08T04:15:14.000000Z"}},{"id":70824,"gift_product_id":27108,"discount_type":"percentage","discount_value":100,"original_price":128,"original_compare_at_price":null,"original_product_shopify_id":10069441358,"original_variant_shopify_id":39944525390,"price":0,"product_shopify_id":8117821014254,"variant_shopify_id":44315310129390,"variant_title":"White \/ Seafoam","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-White-Seafoam-Product-Shark-Deterrent.jpg?v=1655771968","pivot":{"offer_id":11124,"gift_item_id":70824},"gift_product":{"id":27108,"shop_id":5000,"title":"\u00bb Sharkbanz 2 \u2013 Wearable Shark Deterrent (100% off)","original_product_handle":"sharkbanz-2","clone_product_handle":"sharkbanz-2-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_53102cfa-be85-40e6-8620-1ac6f8fdbac2.jpg?v=1661359325","product_shopify_id":8117821014254,"original_product_shopify_id":10069441358,"created_at":"2023-09-08T04:15:14.000000Z","updated_at":"2023-09-08T04:15:14.000000Z"}},{"id":70825,"gift_product_id":27108,"discount_type":"percentage","discount_value":100,"original_price":128,"original_compare_at_price":null,"original_product_shopify_id":10069441358,"original_variant_shopify_id":39944525454,"price":0,"product_shopify_id":8117821014254,"variant_shopify_id":44315310162158,"variant_title":"Slate \/ Azure","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Azure-Product-Shark-Deterrent-1_b5c9fa5a-f1df-4f67-b61c-1881a405c03d.jpg?v=1655771968","pivot":{"offer_id":11124,"gift_item_id":70825},"gift_product":{"id":27108,"shop_id":5000,"title":"\u00bb Sharkbanz 2 \u2013 Wearable Shark Deterrent (100% off)","original_product_handle":"sharkbanz-2","clone_product_handle":"sharkbanz-2-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_53102cfa-be85-40e6-8620-1ac6f8fdbac2.jpg?v=1661359325","product_shopify_id":8117821014254,"original_product_shopify_id":10069441358,"created_at":"2023-09-08T04:15:14.000000Z","updated_at":"2023-09-08T04:15:14.000000Z"}},{"id":70826,"gift_product_id":27108,"discount_type":"percentage","discount_value":100,"original_price":128,"original_compare_at_price":null,"original_product_shopify_id":10069441358,"original_variant_shopify_id":12093619929159,"price":0,"product_shopify_id":8117821014254,"variant_shopify_id":44315310194926,"variant_title":"Marine \/ Slate","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-Proven-Shark-Deterrent-Wearable.jpg?v=1655771968","pivot":{"offer_id":11124,"gift_item_id":70826},"gift_product":{"id":27108,"shop_id":5000,"title":"\u00bb Sharkbanz 2 \u2013 Wearable Shark Deterrent (100% off)","original_product_handle":"sharkbanz-2","clone_product_handle":"sharkbanz-2-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_53102cfa-be85-40e6-8620-1ac6f8fdbac2.jpg?v=1661359325","product_shopify_id":8117821014254,"original_product_shopify_id":10069441358,"created_at":"2023-09-08T04:15:14.000000Z","updated_at":"2023-09-08T04:15:14.000000Z"}},{"id":70827,"gift_product_id":27108,"discount_type":"percentage","discount_value":100,"original_price":128,"original_compare_at_price":null,"original_product_shopify_id":10069441358,"original_variant_shopify_id":13665448493127,"price":0,"product_shopify_id":8117821014254,"variant_shopify_id":44315310227694,"variant_title":"Midnight \/ Bimini","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-Midnight-Bimini-Active-Shark-Deterrent-Angle-3-WSF-Veterans-Day-Warrior-Surf.jpg?v=1655771923","pivot":{"offer_id":11124,"gift_item_id":70827},"gift_product":{"id":27108,"shop_id":5000,"title":"\u00bb Sharkbanz 2 \u2013 Wearable Shark Deterrent (100% off)","original_product_handle":"sharkbanz-2","clone_product_handle":"sharkbanz-2-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/products\/Sharkbanz-2-Slate-Black-Product-Shark-Deterrent-1_53102cfa-be85-40e6-8620-1ac6f8fdbac2.jpg?v=1661359325","product_shopify_id":8117821014254,"original_product_shopify_id":10069441358,"created_at":"2023-09-08T04:15:14.000000Z","updated_at":"2023-09-08T04:15:14.000000Z"}},{"id":79230,"gift_product_id":30588,"discount_type":"percentage","discount_value":100,"original_price":100,"original_compare_at_price":null,"original_product_shopify_id":8105967714542,"original_variant_shopify_id":44276206928110,"price":0,"product_shopify_id":8136069972206,"variant_shopify_id":44365286408430,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/files\/FCS-Sharkbanz-POD-Studio-Proven-Shark-Repellent-Deterrent-Surf-Black-EG-2023-Back-SB.jpg?v=1694992797","pivot":{"offer_id":11124,"gift_item_id":79230},"gift_product":{"id":30588,"shop_id":5000,"title":"\u00bb FCS X Sharkbanz POD - Surf Shark Deterrent (100% off)","original_product_handle":"fcs-x-sharkbanz-pod-surf-shark-deterrent","clone_product_handle":"fcs-x-sharkbanz-pod-surf-shark-deterrent-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/1826\/7677\/files\/FCS-Sharkbanz-POD-Studio-Proven-Shark-Repellent-Deterrent-Surf-Black-EG-2023-Back-SB.jpg?v=1694992797","product_shopify_id":8136069972206,"original_product_shopify_id":8105967714542,"created_at":"2023-10-11T00:17:47.000000Z","updated_at":"2023-10-11T00:17:47.000000Z"}}]}],"settings":{"auto_add_gift":true,"compare_gift_price_with_product":false,"cal_gift_discount":"current_price","select_one_gift_price":false,"not_show_gift_if_already_on_cart":false,"sync_quantity":false,"manual_input_inventory":false,"using_draft_order":true,"delete_gift_after_turn_off_offer":true,"gift_format":"same_as_original_products","admin_api_access_token":null,"notify_via_email":{"status":false},"barcode":"blank","type_seo":"number_integer","mode_override_checkout":"default"},"appearance":{"gift_slider":{"general":{"gift_popup_title":"Select your free gift!","add_to_cart_btn_title":"Add to cart","running_text":"","select_gift_btn":"Select variants","show_product_title":true,"show_variant_title":true,"show_pagination":true,"show_gift_for_customer":"by_variants","number_product_slider":4},"color":{"gift_slider_title_color":"#121212","product_title_color":"#000000","original_price_color":"#121212","discounted_price_color":"#ea5455","add_to_cart_color":"#FFFFFF","add_to_cart_btn_color":"#000000"},"others":{"hidden_brand_mark":false,"gift_img_size":"&width=480&height=480"},"disable_slider_checkbox":{"enable":false,"time":10,"text":"Don't show this offer again"}},"gift_icon":{"gift_icon_path":"images\/fg-icons\/fg-icon-red.png","shopify_gift_icon_path":"fg-icon-red.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":"#000000","background_color":"#0AFEAC"}}};/* END_FG_DATA */
const _0x85a924=_0x1ccc;function _0x497d(){let x=["setItem","now","click","sca_locale","value_customer_tags","offers","Failed to get customer location","offer_root","freegifts-main-page-container","GET","variant","reload",".sca-gift-icon-collection-page","FoxTheme","variants_ids","#fg-gift-items .btn-add-to-cart","value_customer_locations","padding","} {","split","offer_id","enable_toast_added","disabled","fgAppearance","subscribe","#fg-gift-thumbnail-title .glider-prev","size","sca_offers_added","current_collection","sca_clone_checkout","sca_fg_innerHTML","stopPropagation","original_variant_shopify_id","RENDER_CART_MESSAGE","en-US","UpCart - AfterSell","last_total","stringify","?sca_attr_cart","auto_add_gift","then","end_time","height","shift","#sca_fg_section_gifts_popup","pubSubEvents","#sca-fg-today-offer-iframe",'\n \n \n \n ',"find","sca-today-offer-left","bottom_left","CART_AUTO_UPDATED","getItem","end","product_shopify_id","sca_update_url","CUSTOM_EVENTS","root","giftsAdded",".sca-offer-title","fg-gifts:updated","#sca-gift-thumbnail","[type='submit'][name='add'], [type='button'][name='add'], [data-add-to-cart], [data-action='add-to-cart']","#sca_fg_variant_select_section",".product-item-thumbnail","startsWith","join","set","#sca-fg-today-offer-iframe .sca-fg-body .sca-fg-offers","/cart/add",'
{{ fg_gift_thumbnail_title }}
\n\n \n
\n
\n {{ sca_fg_gift_thumbnail_items_section }}\n
\n \n
\n
\n
\n
',"by_variants","not using draft order","isUpdateCart","toggle","variant_shopify_id",".icartCheckoutBtn, .rebuy-cart__checkout-button, .qsc2-checkout-button, #mu-checkout-button","Default Title","vendor","sca-fg-today-offer-title-tooltip","Slide Cart - qikify","cal_gift_for_other_rules","/?sections=","default","80%","CartSlider","current_product",'\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
',"#MainContent, #mainContent, #main, .main-content","ele","disable_async_process_fg","undefined","SHOPIFY_CART","sca-gift-icon","include","original_product_shopify_id","call","#sca-spinner-checkout","gift_should_the_same","prepend","setAttribute","#fg-gift-items .dropdown > .dropdown-menu > li","GIFTS_CART_SECTION_ID","#sca-fg-today-offer-widget .sca-fg-count-offers","product_collections","error","fg-gift-items","number_of_products","discount_type","mode_override_checkout","contains","sca_fg_codes",".sca-fg-close-today-offer","fg-xhr:send","closeCart","&sca_shop_name=","scaHandleConfigValue","#sca_fg_disable_slider_section","not_show_gift_if_already_on_cart","sca-today-offer-widget-right","isSameNode","toString","product_type","Sticky Cart - Codeinero","product","STICKY_CART_UPDATE","arrGiftsRemove","?sca_add_gift","currentTarget","tool","2090235hvikIr","#sca_fg_today_offer_widget","total_price","fg_decimal","customer_locations","dispatchEvent","number_gifts_thumbnail","#sca_fg_gift_icon_section","and","fgAppearanceGiftSlider","Cart","message","GIFT_ADDED","USD","Escape","sca-is-visible-fg","select_gift_btn","fg-app:end","prototype","get",'\n
\n \n \n \n \n \n
',".satcb-cs-checkout-btn, .hs-checkout-purchase","sca-fg-out-stock","cloneNode","offer_name","time","remove","sections","is_multiply",".fg-secomapp-cart-icon","sca-fg-icon-collection-page","DONE","parse",".cc-product-list .product-block, .collection-list.grid .grid__item, .collection-grid.grid .grid__item",'a[href*="/collections/sca_fg"]',"openDrawer","sca_fg_value_checkout","className","3365DZwZBn","collections","526eKZlSJ","data-original-id","mouseleave","replaceAll","fgData","sca-show","partially_paid","/cart/change","subscription_products","href","FG_OVERRIDE_FETCH","widget_info","sca_fg_main_promotion_message_query","final_price","forEach","currency","removeAttribute","hidden","body","scaCountRenderEventCheckout","data-fg-checkout-btn","sca_transcy_locale","values","sca-gift-icon-collection-img","getAttribute","free-gift-icon","&data_checkout=",".original-price del","childElementCount","#sca_fg_section_gift_item","hasDoneProcessCheckout","Error listening XHR send","SECOMAPP_FREEGIFT","variants","240","gift_products","sort","productsInPage","max_amount",'\n
\n {{ fg_slider_title }}\n
\n
\n
\n
\n ❮ \n
\n
\n ❯ \n
\n
\n
\n \n {{ sca_fg_disable_slider_section }}\n
',"country_code","number_product_slider","Out of stock",".fg-secomapp-cart-drawer","block","fit-content","item_count",".sca-promotion-message-layout","GIFT_SELECT_SECTION","relative","CART_MSG_ITEM_SECTION","every","price","Add gift to cart successfully!","https://geoip.secomtech.com/?json","do_not_add_freegift_attribute",".sca-fg-tooltip","floor","fgIntegration","shop","input[name='goto_gc'], button[name='goto_gc'], a[href$='checkout'], form[action='/checkout'] input[type='submit']","sub_conditions","sca-fg-toast sca-fg-success","GIFT_THUMBNAIL_SECTION_ID","active ","flat","[sca_root_checkout]","formatter","select_one_gift_price","GIFT_THUMBNAIL_SECTION","Cannot define custom loading with type: ","count_down_quantity","class","fg-cart:end-process","GIFT_ICON_SECTION","removeItem","d-block","text","cart","#sca-fg-today-offer-iframe .sca-fg-body .sca-fg-offers .sca-fg-offer","show_gift_for_customer","4834fcTYyK","variant_title","GIFT_THUMBNAIL_ITEMS_SECTION_ID",' \n ',"includes",'\n
\n
\n
{{ sca_fg_offer_title }} \n
\n
\n \n \n \n \n
',"backgroundColor","key","sca_process_gifts",".btn-add-to-cart","#sca_fg_today_offer_item_section","auto add gift: {","max_gifts_can_get","DISABLE_SLIDER_SECTION","100","#sca_fg_gift_thumbnail_section","TODAY_OFFER_SECTION",".dots-thumbnail","count_down_value","variant_id","#secomapp_freegifts_version","parentElement","sca_amount_fixed","data-variant","sca-today-offer-widget-left","#sca_fg_cart_message_items_section","product_narrow","renderPromotionMessage","left","#sca_fg_cart_message_section","position","using_draft_order","compressToEncodedURIComponent","open","open-cart-drawer","clone_product_handle","clone_checkout","others","auto add all gifts from {","entries",'\n Loading... \n
',"CART_MSG_SECTION_ID","mouseenter","div","sca_link_checkout","gift_slider","gifts_valid","maxOfferPriority","Show","sca_fetch_cart","#sca_fg_today_offer_section","sca_add_gift","log","sca_fg_title_product_gift_icon_query","min_amount","condition_result","glider-animated","POST","16geptdf","customer",".gift-price","isDelayShowAdded","sca_cart_xhr","keys","CART_MSG_ITEM_SECTION_ID","variantId","discount_value","/cart","string","trim","product_vendors","belongs_to_offer","data-fg-offer-id","current_variant",'',"customize.gift_slider_title","(Discount)","redirected","{{sca_min_quantity}}","sca_slidecart_tcc","sca_price","openCartDrawer","6px 0","GIFT_ICON_SECTION_ID","unshift","application/json","createElement","#fg-gift-thumbnail-title","money","fgCallback","[data-open]","defineProperty","344170cwmBmU","reRenderCartCustom","32WoOief","auto_add_all_gifts","NumberFormat","toFixed","compare_gift_price_with_product","opacity","product_id","SATCB","order_created_from","number_of_gift_can_receive","discounted_price","QUERY_SELECTOR","HS_SLIDE_CART_UPDATE",".fg-secomapp-product-title",'\n {{ sca_fg_cart_message_items_section }}\n
',"handle","openSlider","gifts","price_max","readyState","-sca_clone_freegift","info",' \n
\n \n \n \n \n \n ',"/cart/update",".f-product-single__title, .m-product-title","TODAY_OFFER_SECTION_ID","getElementById","SHOW_GIFT_SLIDER","offer_conditions","sca-offer-archived",".satcb-cs .satcb-cs-top-container, #monster-upsell-cart #monster-cart-wrapper div[class*=custom_scrollbar]","action","?sca_process_gifts",'\n {{ fg_variant_title }}\n ',"drawer-component#Drawer-Cart cart-drawer","initializeForXHR","sca-gift-icon-img","original_product_handle","gift_thumbnail","readystatechange","freegiftProxy","show_pagination","variants_has_gift","cal_gift_price","#7367f0","END_VALIDATE_CHECKOUT","length","secomappGetCartRunning","freegift_attributes","customer_order_history","enable_check_variants_has_gift","GIFTS_POPUP_SECTION","giftsAddedInvalid","sca-gift-icon-collection-page","927597MDDsXJ","CART_MSG_SECTION","push","tags","style","paid","disable_slider_checkbox","customLoadingCheckout","track variant auto add gift: {","hasDiscount","disableShopify_getCart",".sca-fg-notifications","sca_fg_btn_gift_thumbnail_query","customize.disable_slider_text","data-img","stop_lower_priority","compare_gift_price","arrOfferAdded","enable_process_offer_loading","top","decompressFromBase64","show_on_cart_page","5763692qkvpzx","sca_catch","START_PROCESS_CART","add_to_cart_btn_color","24QjewwQ","offer.cart_message_","value","fetch","#shopify-section-header #cart-icon-bubble, .shopify-section.section-header #cart-icon-bubble",".freegifts-main-container .slide-container #sca-hidden-gift-popup .sca-disable-checkbox","#sca_fg_cart_section_gifts_slider","#fg-gift-items","json",".gift-original-url","compare_at_price","filter","target","catch","total_spent_on_last_order","TODAY OFFER","done","END_PROCESS_CART","/products/","trigger_body","icartSideCartOpenEvent","widget_icon_path","created_at","GIFT_ITEM_SECTION_ID","9648BqhyLZ","location","routes","offer.offer_title_","querySelectorAll","sca_fg_cart_drawer_query","Theme FoxEcom","onCartDrawerUpdate","bottom_right","data-template","#CartPopup .styles_CartPreview__card__KX-WB, #qikify-stickycart-v2-app .qsc2-drawer-wrapper > div:nth-child(2)","fgSettings","#fg-gift-items .dropdown","widget_title","sections_cart","Widgets","SLIDECART_OPEN","general","gift_icon_path","Monster Cart","SLIDECART_UPDATE","SLIDECART - HQ","sca_fg_img_collection_gift_icon_query","other_products","fetchCheckoutEvents","sca-promotion-message-layout","HS_SLIDE_CART_OPEN","60%","hasAttribute",".dropdown-menu","pageX","product_has_icon","charAt","pageY",".sca-list-gift-thumbnail","fetchCart",' ',"unit","show_product_title","api","Error decoding cookie:","this is others","invoice_url","slice","show_widget","variants_quantity","STICKY_CART_OPEN","gift_popup_title","upcartRegisterAddToCart","fgAppearanceTodayOffer","application/json;","width","fgAppearanceGiftIcon","maxWidth","display","gift_icon","text/html","application/liquid","GIFT_UPDATED","70%","specific_link_address","items","SLIDECART_CLOSE","active","parentNode","FGSECOMAPP","Rivets Cart","customer_tags","none","positions",".icart-inner .icartContain, .rebuy-cart__flyout-body, #slidecarthq .slidecarthq","compressToBase64","fgAppearancePromotionMessage","products","preventDefault","number_of_order","sca_text_notify_success","sync_quantity","auto","sca_root_checkout","Rebuy","sca_handle_checkout","max","querySelector","show_variant_title","parseFromString","appendChild","replace","getTime","monster_refresh","sections_url","#82868b","attributes","gift_items",'\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
',"#sca-gift-icon",".satcb-cs-close","customize.widget_subtitle","settings","sca_fg_form_checkbox_button_query",'\n \n ',"Error listening XHR open","selling_plan_allocation","stop_offer","Can not fetch all body","checkIsBlockCheckout","productsByID","fg-gifts:gift-icon","sca-fg-form-thumbnail-product-page","innerText","indexOf","function",'\n \n \n \n \n \n ',"title","Unicart","36hDPJbV","textContent","FGSECOMAPP_HIDDEN_GIFT_POPUP","cartItems",".fg-secomapp-handle-add-to-cart","sca-gift-thumbnail","test","reduce","Slide Cart - Heysenior","fg-cart:start-process","MinimogEvents","start","START_RENDER_APP","bogos-gift","sca-d-none","offer","status",".btn-add-to-cart.sca-fg-out-stock","isReachConditions","today_offer","shopify_widget_icon_path",".fg-secomapp-cart-item-promotion","widget_position","url","send","#UpcartPopup:has(#CartPopup[class*='styles_active'])","pathname","sca_deplay_cart_msg","URL","thumbnail","enable","sca-fg-form-icon-product-page","fg-app:start","cartDrawer","Select your free gift!","concat","scaCustomLoadingCheckout","integration","XMLHttpRequest","HS_SLIDE_CART_CLOSE","original_price","failed to parse cart section ","sca_checkout_form","classList","addEventListener","fg-messages:render","Add to cart","appearance","data-offer","fg-today-offer:success","searchParams","getCart","headers","original_compare_at_price","DISABLE_SLIDER_SECTION_ID","manual_input_inventory","priority","total_spend_on_order_history","not type checkout btn","prepareDataForDisplayWidgetByRule","freegifts","addGiftToCart","updateCart",".freegifts-main-container .glider-prev","disable_override_xhr",".dots","selling_plan","type","100%","RENDER_TODAY_OFFER","promotion_message","#sca_fg_gift_thumbnail_items_section","2696187FinjVi","add","CartJS","FG_OVERRIDE_XHR_OPEN",".sca-promotion-glider","visibility","iCart","gift_settings","arrGiftsData","product_page","product_types","substring","giftsAvailable","Free Gift","map","color",'a[href*="/products/"]',"50%","/cart/add.js","start_time",'.btn-add-to-cart[data-variant="',".product_name, .product-title, .product__title, .product-single__title, .tt-title, .ProductMeta__Title","customGiftImgSize","TODAY_OFFER_CHANGE","insertBefore","timeoutId","removeEventListener","Don't show this offer again","quantity","#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg","not have orders and gifts",".product-card, #product-grid .grid__item, .product-grid .grid__item, .card-list .card-list__column","scrollItem","sca-fg-tooltip","boolean","customize.product_page_message","fg-checkout","FoxKitV2","innerHTML","some","TODAY_OFFER_WIDGET_ID","shopify_cart",'',"MinimogTheme","sca_fg_cart_icon_query","upcartOnCartOpened"];return(_0x497d=function(){return x})()}function _0x1ccc(x,$){let t=_0x497d();return(_0x1ccc=function(x,$){return t[x-=344]})(x,$)}if(!function(x,$){let t=_0x1ccc,e=x();for(;;)try{let a=-parseInt(t(916))/1*(parseInt(t(997))/2)+-parseInt(t(463))/3*(parseInt(t(373))/4)+-parseInt(t(914))/5*(-parseInt(t(513))/6)+parseInt(t(876))/7*(parseInt(t(409))/8)+parseInt(t(628))/9*(-parseInt(t(407))/10)+parseInt(t(485))/11*(parseInt(t(489))/12)+parseInt(t(700))/13;if(886141===a)break;e.push(e.shift())}catch(i){e.push(e.shift())}}(_0x497d,886141),window[_0x85a924(920)]?.[_0x85a924(675)]?.[_0x85a924(568)]?.[_0x85a924(531)]&&fgGiftIcon&&(window[_0x85a924(920)].appearance[_0x85a924(568)][_0x85a924(531)]=fgGiftIcon),window[_0x85a924(920)]?.appearance?.[_0x85a924(647)]?.shopify_widget_icon_path&&fgWidgetIconsObj){let x=window[_0x85a924(920)][_0x85a924(675)][_0x85a924(647)][_0x85a924(648)];window.fgData[_0x85a924(675)].today_offer[_0x85a924(510)]=fgWidgetIconsObj[x]??x}!function x(){let $=_0x85a924;window[$(578)]={},FGSECOMAPP.maxOfferPriority=null,FGSECOMAPP.cartItems=Object.values(Shopify?.[$(631)]??{}),FGSECOMAPP[$(751)]=[],FGSECOMAPP[$(524)]=window.fgData?.[$(611)]??{},FGSECOMAPP[$(769)]=window[$(920)]?.[$(675)]??{},FGSECOMAPP.fgIntegration=window[$(920)]?.[$(665)]??{},FGSECOMAPP[$(885)]=FGSECOMAPP[$(769)]?.[$(360)]?.[$(530)],FGSECOMAPP.fgAppearanceGiftIcon=FGSECOMAPP[$(769)]?.[$(568)],FGSECOMAPP.fgAppearancePromotionMessage=FGSECOMAPP[$(769)]?.[$(698)],FGSECOMAPP.fgAppearanceTodayOffer=FGSECOMAPP[$(769)]?.[$(647)],FGSECOMAPP[$(404)]=[],FGSECOMAPP.secomappGetCartRunning=!1,FGSECOMAPP[$(480)]=[],FGSECOMAPP.scaCountRenderEventCheckout=0,FGSECOMAPP.checkIsBlockCheckout=!1,FGSECOMAPP[$(862)]={...Shopify?.[$(862)]},FGSECOMAPP[$(408)]=Shopify?.[$(408)]??void 0,FGSECOMAPP[$(664)]=Shopify?.[$(664)]??void 0,FGSECOMAPP[$(953)]={},FGSECOMAPP[$(619)]={},FGSECOMAPP.hasDoneProcessCheckout=!1,FGSECOMAPP[$(527)]={},FGSECOMAPP[$(819)]=!1,FGSECOMAPP[$(838)]={},FGSECOMAPP[$(395)]=Shopify?.sca_fg_price??$(419),FGSECOMAPP[$(802)]={SHOW_GIFT_SLIDER:"fg-gifts:show-slider",PRODUCT_HAS_GIFTS:$(620),GIFT_UPDATED:$(806),GIFT_ADDED:"fg-gifts:added",CART_AUTO_UPDATED:"fg-cart:auto-updated",START_PROCESS_CART:$(637),END_PROCESS_CART:$(989),START_VALIDATE_CHECKOUT:"fg-checkout:start",END_VALIDATE_CHECKOUT:"fg-checkout:end",START_RENDER_APP:$(660),END_RENDER_APP:$(893),FG_OVERRIDE_FETCH:"fg-fetch:override",FG_OVERRIDE_XHR_OPEN:"fg-xhr:open",FG_OVERRIDE_XHR_SEND:$(859),RENDER_TODAY_OFFER:"fg-today-offer:render",TODAY_OFFER_CHANGE:$(677),RENDER_CART_MESSAGE:$(673)};let t={GIFTS_CART_SECTION_ID:$(495),GIFTS_CART_SECTION:$(955),GIFTS_POPUP_SECTION_ID:$(790),GIFTS_POPUP_SECTION:$(607),GIFT_ITEM_SECTION_ID:$(945),GIFT_ITEM_SECTION:$(833),GIFT_SELECT_SECTION_ID:$(809),GIFT_SELECT_SECTION:$(442),DISABLE_SLIDER_SECTION_ID:$(863),DISABLE_SLIDER_SECTION:$(742),CART_MSG_SECTION_ID:$(344),CART_MSG_SECTION:$(423),CART_MSG_ITEM_SECTION_ID:$(1022),CART_MSG_ITEM_SECTION:'\n {{ fg_cart_message }}\n
',GIFT_THUMBNAIL_SECTION_ID:$(1012),GIFT_THUMBNAIL_SECTION:$(816),GIFT_THUMBNAIL_ITEMS_SECTION_ID:$(699),GIFT_THUMBNAIL_ITEMS_SECTION:'',GIFT_ICON_SECTION_ID:$(883),GIFT_ICON_SECTION:$(549),TODAY_OFFER_SECTION_ID:$(365),TODAY_OFFER_SECTION:$(389),TODAY_OFFER_ITEM_SECTION_ID:$(1007),TODAY_OFFER_ITEM_SECTION:$(1002),TODAY_OFFER_WIDGET_ID:$(877),TODAY_OFFER_WIDGET:$(1e3)},e=()=>{let x=$,t=FGSECOMAPP[x(769)]?.gift_slider,e=t?.[x(352)]?.hidden_brand_mark,a=!S(t)&&void 0!==e&&!e;return a?x(613):""},a=()=>{let x=$,e=FGSECOMAPP.fgAppearance?.gift_slider,a=e?.[x(469)]??{};document[x(596)](x(494))?.checked&&localStorage.setItem(x(630),""+Date[x(747)]());let i=document[x(596)](t[x(682)])?.[x(738)]??t[x(1010)];return a?.[x(658)]?i[x(919)](/{{\s*fg_text_disable_slider\s*}}/gm,m(h(a[x(993)]??x(727),x(476)))):""},{fetch:i}=window,r=()=>{let x=$;document[x(596)](x(1017))?.[x(940)](x(522))!==x(736)&&(window[x(492)]=async(...$)=>{let t=x;try{let e=$[0];if(!(e?.[t(1001)](t(815))||e?.[t(1001)]("/cart/change")||e?.[t(1001)](t(432))))return setTimeout(function(){x3()},1e3),await i(...$);{let a=e?.[t(1001)](t(815)),r=e?.includes(t(923))||e?.[t(1001)](t(432));n($[1]);let c=200,o=null,s=await i(...$)[t(786)](x=>{let $=t;return(o=x,c=x.status,x[$(392)])?x:x[$(497)]()})[t(502)](x=>{console[t(851)](x)});if(document[t(881)](new CustomEvent(FGSECOMAPP[t(802)][t(926)],{detail:{args:$,response:o}})),a&&$[1][t(680)]?.[t(366)]&&200!==c){let l=JSON[t(908)]($[1][t(934)])?.id,_=document[t(596)](t(720)+l+'"]');_[t(622)]=t(958),_[t(671)][t(856)](t(898))||_[t(671)][t(701)](t(898)),_[t(768)]=!0,_[t(467)][t(763)]="",_[t(467)][t(1003)]=t(604),document[t(517)](t(1006))[t(930)](x=>{let $=t;parseInt(x[$(940)]("data-variant"))===l||x[$(671)].contains($(898))||(x[$(768)]=!1,x[$(467)][$(1003)]=FGSECOMAPP[$(769)]?.gift_slider?.[$(715)]?.[$(488)]??$(453))})}if(200!==c&&(a&&$[1].headers?.[t(366)]||r&&$[1][t(680)]?.[t(1005)]))return f(s,o);if(Shopify?.[t(836)])return xs([e,...$[t(556)](1)])[t(786)](),f(s,o);if(await xs([e,...$.slice(1)]),r&&$[1]?.[t(680)]?.[t(1005)])return f(s,o);let g=r?FGSECOMAPP.SHOPIFY_CART??s??{}:s;return await d($,s,g),f(g,o)}}catch(u){return await i(...$)}})},c=window.XMLHttpRequest[$(894)][$(348)],o=window[$(666)].prototype[$(652)],s=()=>{let x=$;Shopify?.[x(692)]||(window[x(666)][x(894)][x(348)]=function($,t){let e=x;try{document[e(881)](new CustomEvent(FGSECOMAPP[e(802)].FG_OVERRIDE_XHR_OPEN,{detail:{fgXHR:this}}))}catch(a){console[e(851)](e(614),a)}finally{c.apply(this,arguments)}},window[x(666)][x(894)].send=function($){let t=x;try{document[t(881)](new CustomEvent(FGSECOMAPP[t(802)][t(703)],{detail:{fgXHR:this}}));let{_url:e}=this;(e?.[t(1001)](t(815))||e?.[t(1001)]("/cart/change")||e?.[t(1001)](t(432)))&&this[t(672)](t(448),function(){let x=t;this[x(428)]===XMLHttpRequest[x(907)]&&200===this[x(644)]&&xs([e,{}]).then()})}catch(a){console[t(851)](t(947),a)}finally{o[t(842)](this,$)}})};FGSECOMAPP[$(444)]=()=>{let x=$;try{if(Shopify?.[x(473)]||typeof Shopify?.[x(679)]!==x(624))return;Shopify[x(679)]=async function($){let t=x;if(!FGSECOMAPP[t(456)]){FGSECOMAPP.secomappGetCartRunning=!0,await xs(["Shopify.getCart",{}]);let e=await xr(t(377));"function"==typeof $&&(0>FGSECOMAPP[t(404)][t(623)]($)&&FGSECOMAPP[t(404)][t(465)]($),$(e)),FGSECOMAPP.secomappGetCartRunning=!1}FGSECOMAPP.fetchCheckoutEvents()},"undefined"!=typeof ShopifyAPI&&typeof ShopifyAPI[x(679)]!==x(837)&&(ShopifyAPI.getCart=Shopify?.getCart),typeof Shopify?.[x(552)]!==x(837)&&typeof Shopify?.[x(552)].getCart!==x(837)&&(Shopify[x(552)][x(679)]=Shopify?.[x(679)])}catch(t){console[x(851)](t)}};let n=x=>{let t=$;try{let e=x?.[t(934)];e instanceof FormData?FGSECOMAPP.sections_cart={sections:e.get("sections"),sections_url:e[t(895)](t(603))}:typeof e===t(383)&&(e=JSON[t(908)](e),FGSECOMAPP[t(527)]={sections:e?.[t(903)],sections_url:e?.[t(603)]})}catch(a){FGSECOMAPP[t(527)]={}}},f=(x,t)=>{let e=$;try{let a=Shopify?.fg_fetch_attributes??[e(651),e(695),e(392),"ok"],i=new Response(JSON[e(783)](x),t);for(let r of a)Object[e(406)](i,r,{value:t[r]});return i}catch(c){return new Response(JSON[e(783)](x))}},l=async()=>{let x=$;if(Shopify[x(971)])return;let t=[];if(!S(FGSECOMAPP[x(480)]))for(let e of(t[x(465)](x(948)),FGSECOMAPP.arrOfferAdded)){let a=FGSECOMAPP[x(751)].find(x=>x.id===e.belongs_to_offer)?.[x(977)]?.[x(573)];S(a)||t[x(465)](a)}if(t[x(952)](),t.toString()!==FGSECOMAPP?.[x(838)]?.[x(605)]?.[x(457)])try{await i((Shopify?.[x(801)]??x(432))+x(784),{method:"POST",headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":x(563)},body:JSON[x(783)]({attributes:{freegift_attributes:t[x(867)]()}})})}catch(r){console.error("Update cart.attributes "+r[x(887)])}},d=async(x,t,e)=>{let a=$;try{if(x[1]?.[a(680)]?.sca_process_gifts)return;let r={},c=Object[a(378)](t[a(903)]??{})?.[a(500)](x=>S(FGSECOMAPP.sections_cart[x]))??[];if(c&&c[a(455)]&&FGSECOMAPP[a(819)]&&(r=await i(a(828)+c[a(812)](","))[a(786)](x=>x[a(497)]())),FGSECOMAPP[a(819)]=!1,r={...FGSECOMAPP[a(527)],...r},S(r))return;t[a(903)]={...t[a(903)],...r},S(e)||(e[a(903)]={...t[a(903)]})}catch(o){}};FGSECOMAPP[$(689)]=async(x,t,e)=>{let a=$;try{let i=FGSECOMAPP.arrOfferAdded[a(794)]($=>e===$[a(386)]?.[a(867)]()&&x===$[a(380)]);i?i.quantity+=t:FGSECOMAPP.arrOfferAdded[a(399)]({variantId:x,belongs_to_offer:e,quantity:t}),localStorage[a(746)](a(773),LZString[a(584)](JSON[a(783)](FGSECOMAPP[a(480)]))),p(a(639));let r=await fetch((Shopify?.sca_add_url??a(718))+a(873),{method:a(372),headers:{Accept:"application/json","Content-Type":a(400),sca_add_gift:!0},body:JSON[a(783)]({quantity:t,id:x})});return await r[a(497)]()}catch(c){return!1}};let _=async(x,t,e)=>{let a=$;e=e?.toString();let i=document[a(517)](a(761));i[a(930)]($=>{let t=a;$[t(768)]=!0;let e=$[t(940)]("data-variant")-0;e===x&&($[t(467)][t(763)]=t(397),$.innerHTML=t(625)),$[t(467)][t(1003)]=t(604)});let r=await FGSECOMAPP.addGiftToCart(x,t,e);r&&(i[a(930)]($=>{let t=a;$[t(768)]=!0;let e=$[t(940)](t(1020))-0;e===x&&($[t(467)][t(763)]=t(397),$[t(738)]=t(793)),$[t(467)][t(1003)]=""}),xn()),document[a(881)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[a(888)],{detail:{gift:r}}))},g=x=>{let t=$,e=t(429);return!S(x)&&("object"==typeof x&&(x[t(424)]?.includes(e)||x[t(466)]?.includes(t(641)))||"string"==typeof x&&x[t(1001)](e))},u=x=>{let{selling_plan_allocation:t}=x;return!S(t)&&!S(t?.[$(694)])},p=x=>{let t=$;try{if(!Shopify?.[t(481)])return;let{checkout_btn_query:e}=FGSECOMAPP[t(420)],a=[...e?.tool,...e?.[t(665)],...e?.default][t(500)](Boolean)[t(812)](",");document[t(517)](a).forEach($=>{let e=t;FGSECOMAPP[e(470)](x,$)[e(786)]()})}catch(i){}},b=async(x,t)=>{let e=$;try{if(S(x)&&S(t))return;let a={};if(FGSECOMAPP[e(631)]?.filter(x=>g(x))?.[e(930)](x=>{let $=e;a[x[$(1016)]]=x[$(728)]}),(x=x?.[e(500)](x=>!S(x[e(1016)])))?.[e(930)](x=>{a[x.variant_id]=(a[x[e(1016)]]??0)+(x.quantity??1)}),Object[e(378)](a)?.forEach(x=>{a[x]=a[x]>=0?a[x]:0}),S(Object[e(378)](a)))return;x?.[e(930)](x=>{let $=e,t=FGSECOMAPP[$(480)][$(794)](t=>x[$(766)]?.toString()===t[$(386)]?.[$(867)]()&&x[$(1016)]===t[$(380)]);t?t[$(728)]+=x[$(728)]:FGSECOMAPP.arrOfferAdded[$(399)]({variantId:x[$(1016)],belongs_to_offer:x.offer_id?.[$(867)](),quantity:x[$(728)]})}),localStorage.setItem("sca_offers_added",LZString[e(584)](JSON[e(783)](FGSECOMAPP[e(480)]))),FGSECOMAPP.isUpdateCart=!0,p(e(639)),await fetch((Shopify?.sca_update_url??"/cart/update")+e(441),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",sca_process_gifts:!0},body:JSON[e(783)]({updates:a,...FGSECOMAPP[e(527)]})})[e(786)]($=>{let a=e;return $.ok&&x[a(455)]&&!t[a(455)]&&xn(),$[a(497)]()})[e(786)](x=>{FGSECOMAPP.sections_cart=x[e(903)]}),document[e(881)](new CustomEvent(FGSECOMAPP[e(802)][e(797)],{detail:{arrGiftsAdd:x,arrGiftsRemove:t}})),document.querySelector(e(1017))?.getAttribute(e(522))===e(736)&&location[e(757)]()}catch(i){p(e(799)),console[e(851)](i)}},h=(x,t)=>{let e=$;try{let a=FGSECOMAPP[e(974)]?.transcy,i=Shopify?.[e(937)]??Shopify?.locale;return a[e(658)]?a?.[i]?.[t]??x:x}catch(r){return x}},m=(x,$=!1)=>(""+x).replaceAll(/\$/g,$?"$$$$":"$"),y=()=>{let x=$,i=document[x(435)](x(754));if(i){let r=document[x(596)](t[x(848)])?.innerHTML??t.GIFTS_CART_SECTION;i[x(738)]=r.replaceAll(/{{\s*fg_slider_title\s*}}/gm,m(h(FGSECOMAPP.fgAppearanceGiftSlider[x(560)]??"Select your free gift!","customize.gift_slider_title")))[x(919)](/{{\s*sca_fg_disable_slider_section\s*}}/gm,m(e()))}else{let c=localStorage.getItem(x(630))-0,o=FGSECOMAPP[x(769)]?.[x(360)]?.disable_slider_checkbox??{},s=(o?.[x(901)]??0)*6e4,n=!isNaN(c)&&c+s>Date[x(747)]();if(n||(localStorage[x(991)](x(630)),!(i=document[x(435)]("freegifts-main-popup-container"))))return;let f=document[x(596)](t.GIFTS_POPUP_SECTION_ID)?.[x(738)]??t[x(460)];i.innerHTML=f[x(919)](/{{\s*fg_slider_title\s*}}/gm,m(h(FGSECOMAPP[x(885)][x(560)]??x(662),x(390))))[x(919)](/{{\s*sca_fg_disable_slider_section\s*}}/gm,m(a()+" "+e())),i[x(671)][x(701)](x(891))}},v=(x,e)=>{let a=$,i=document[a(596)](t.GIFT_SELECT_SECTION_ID)?.innerHTML??t[a(964)];return x[a(714)](x=>i[a(919)](/{{\s*fg_variant_img\s*}}/gm,m(K(x[a(657)]??e),!0))[a(919)](/{{\s*fg_variant_id\s*}}/gm,m(x[a(821)])).replaceAll(/{{\s*fg_original_variant_id\s*}}/gm,m(x[a(778)]))[a(919)](/{{\s*fg_variant_price\s*}}/gm,m(T(x)))[a(919)](/{{\s*fg_original_variant_price\s*}}/gm,m(E(x))).replaceAll(/{{\s*fg_variant_title\s*}}/gm,m(x.variant_title)))[a(812)](" \n")},T=x=>FGSECOMAPP[$(983)].format(O(x?.price)),E=x=>FGSECOMAPP.formatter.format(O(x?.[$(452)]??0)),w=(x,t)=>{let e=$;return S(FGSECOMAPP[e(619)][x])?t??"#":FGSECOMAPP[e(619)][x].handle},C=(x,t)=>{let e=$;return FGSECOMAPP[e(885)][e(551)]?S(FGSECOMAPP.productsByID[x])?t.replace("\xbb","")[e(600)](/\(\d*% off\)/,"")[e(600)](e(391),"")??"":FGSECOMAPP[e(619)][x][e(626)]:""},S=x=>{let t=$;if(0===x)return!0;if("number"==typeof x||typeof x==t(734))return!1;if(typeof x==t(837)||null===x)return!0;if(typeof x.length!=t(837))return 0===x.length;let e=0;for(let a in x)x.hasOwnProperty(a)&&e++;return 0===e},I=x=>{let t=$;try{let e={...FGSECOMAPP[t(862)]},a=e[x];if(a=a?a[t(384)]():null,!S(a)&&a[t(455)]>0)try{return document[t(596)](a),a}catch(i){}return""}catch(r){return""}},A=()=>{let x=$;try{FGSECOMAPP[x(983)]=new Intl.NumberFormat(Shopify?.[x(749)]??Shopify?.locale,{style:x(931),currency:Shopify?.[x(931)]?.[x(576)]??x(889)})}catch(t){FGSECOMAPP[x(983)]=new Intl[x(411)](x(780),{style:x(931),currency:Shopify?.[x(931)]?.[x(576)]??x(889)})}},O=x=>{let t=$;x=x??0;let e=Shopify?.currency?.rate??1;return 1===parseFloat(e)?x:(x*e)?.[t(412)](Shopify?.[t(879)]??2)},k=x=>{let t=$;try{return x[FGSECOMAPP[t(395)]]??x?.final_price??x?.price}catch(e){return x?.[t(929)]??x?.price}},D=x=>{let t=$;return x[t(500)](x=>void 0===x[t(827)]||!0===x[t(827)])[t(635)]((x,$)=>x+$[t(728)]*k($),0)/100},R=x=>{let t=$;return x[t(500)](x=>void 0===x[t(827)]||x[t(827)]).reduce((x,$)=>x+$.quantity,0)},F=(x,t,e)=>{let a=$,i=t[a(1023)];return e?.is_only&&(x=x[a(500)](x=>u(x))),S(i)?x:x[a(500)](x=>{let $=a;return!i[$(714)](t=>{let e=$;switch(t.type){case"variants_ids":return Object[e(938)](t[e(491)]).map(x=>x[e(756)])[e(981)]()[e(714)](x=>x.id).includes(x[e(1016)]);case e(710):return Object[e(378)](t[e(491)])[e(1001)](x[e(868)]);case e(385):return Object[e(378)](t.value)[e(1001)](x[e(824)]);case e(850):let a=Object[e(378)](t[e(491)]),i=x[e(915)]?.[e(714)](x=>x.id+"")?.[e(500)](x=>a[e(1001)](x));return!S(i);default:return!1}})[$(1001)](!1)})},N=(x,t)=>{let e=$;return x?.[e(714)](x=>{let $=e;if(typeof x.cal_gift_for_other_rules!==$(837)){let a=FGSECOMAPP[$(480)]?.filter(t=>t[$(380)]===x.variant_id),i=a?.[$(635)]((x,t)=>x+t[$(728)],0);if(i===x[$(728)]){let r=a?.[$(500)](e=>{let a=$;if(e[a(386)]?.toString()===t[a(867)]())return!1;let i=FGSECOMAPP.offers?.[a(794)](x=>x.id?.[a(867)]()===e[a(386)]?.[a(867)]()),r=i.gift_settings??{},c=k(x);return r[a(827)]&&c>0})?.[$(635)]((x,t)=>x+t[$(728)],0);return{...x,cal_gift_for_other_rules:r>0,quantity:r??0}}return{...x,cal_gift_for_other_rules:!1,quantity:0}}return{...x}})??[]},L=(x,t)=>{let e=$,a=FGSECOMAPP[e(524)]?.compare_gift_price_with_product,i=FGSECOMAPP[e(524)]?.[e(864)],r=x,c=r;if(a){r=x[e(952)]((x,$)=>k(x)-k($));let o=t.gift_items[e(714)](x=>x?.[e(479)]??0);r=r[e(500)](x=>o[e(739)]($=>$<=k(x)/100)),c=JSON[e(908)](JSON[e(783)](r));let s=t.giftsAdded[e(952)]((x,$)=>$?.compare_gift_price-x?.compare_gift_price)[e(714)](x=>({...x}));c[e(500)](x=>x[e(728)]>0).forEach(x=>{let $=e,t=k(x)/100;s[$(500)](x=>x[$(728)]>0)[$(500)](x=>x?.[$(479)]<=t)[$(930)](t=>{let e=$,a=x[e(728)]-t.quantity;t[e(728)]-=a>=0?t[e(728)]:x.quantity,x.quantity=Math[e(595)](a,0)})}),t[e(461)]=s[e(500)](x=>x[e(728)]>0),c=c[e(500)](x=>x[e(728)]>0)}r=r[e(500)](x=>x[e(728)]>0);let n=FGSECOMAPP[e(631)][e(714)](x=>x[e(415)]),f=t[e(951)]?.[e(714)](x=>x[e(841)]);i&&(r=r[e(500)](x=>!f?.includes(x.product_id)));let l=[];return FGSECOMAPP[e(524)]?.[e(984)]&&(l=FGSECOMAPP[e(631)].filter(x=>g(x))[e(714)](x=>x[e(1016)])),t[e(361)]=JSON[e(908)](JSON[e(783)](t[e(951)]))?.[e(500)](x=>{let $=e;return x[$(949)]=x[$(949)][$(500)](x=>!l[$(1001)](x[$(821)])),!(i&&n?.includes(x[$(841)]))&&(a&&(x[$(949)]=x.variants[$(500)](x=>{let t=$,e=a===t(499)?x.original_compare_at_price:x[t(668)];return c[t(739)](x=>e<=k(x)/100)})),!S(x.variants))}),r},G=(x,t,e)=>{let a=$,i=0,r=F(t,x,e[a(977)]?.[a(924)]);r=N(r,x[a(766)]),r=L(r,e);let c=0;return x.unit===a(403)?(c=D(r),e[a(1015)]=Math.max(x.min_amount-c,0)):x[a(550)]===a(853)&&(c=R(r),e.count_down_quantity=Math[a(595)](x[a(369)]-c,0)),c>=x[a(369)]&&(null===x[a(954)]||c<=x.max_amount)&&(i=e[a(707)].number_of_gift_can_receive*(x[a(904)]?Math[a(973)](c/x[a(369)]):1)),i},P=(x,t)=>{let e=$,a={},i=[],r=0;return t[e(437)].map($=>{let a=G($,x,t);0!==a&&(r=a),i[e(465)](a>0)}),a.max_gifts_can_get=r,a[e(370)]=i,a},q=(x,t)=>{let e=$,a=!1;return 1===x[e(455)]?a=x[0]:2===x[e(455)]&&(t===e(884)&&(a=x[0]&&x[1]),"or"===t&&(a=x[0]||x[1])),a},M=(x,t)=>{let e=$,a=x?.[e(714)](x=>x.variant_id);FGSECOMAPP[e(480)]=FGSECOMAPP[e(480)][e(500)](x=>a?.[e(1001)](x.variantId));let i=t[e(606)].map(x=>x.variant_shopify_id),r={};t[e(606)][e(500)](x=>r[x[e(821)]]={fg_original_compare_at_price:x[e(681)],fg_original_price:x.original_price,compare_gift_price:x[e(479)]});let c=FGSECOMAPP.arrOfferAdded.filter(x=>x[e(386)]?.[e(867)]()===t.id?.[e(867)]())?.[e(714)](x=>x[e(380)]),o=x[e(500)](x=>{let $=e;return g(x)&&(x[$(827)]=!1),i[$(1001)](x[$(1016)])&&c.includes(x.variant_id)}),s=o.map(x=>{let $=e,a=t.gift_settings;x[$(827)]=a[$(827)],x[$(386)]=t.id?.[$(867)]();let i=FGSECOMAPP[$(480)]?.[$(500)](e=>e.belongs_to_offer?.[$(867)]()!==t.id?.toString()&&x.variant_id===e.variantId)?.[$(635)]((x,$)=>x+$.quantity,0);return{...x,quantity:x[$(728)]-i,...r[x[$(1016)]]}});return s[e(500)](x=>{let $=e;return x[$(386)]?.[$(867)]()===t.id?.toString()})},H=x=>{let t=$,e=x.giftsAdded[t(500)]($=>$[t(386)]?.[t(867)]()!==x.id?.toString())[t(714)](x=>x[t(415)]);return Object[t(938)](x[t(361)])[t(500)](x=>!e[t(1001)](x[t(800)]))},U=(x,t)=>{let e=$,a=M(x,t);t[e(804)]=a;let i=P(x,t),r=q(i[e(370)],t.condition_relationship);if(r){let c=a.filter(x=>x[e(386)]?.[e(867)]()===t.id?.toString())[e(635)]((x,$)=>x+$[e(728)],0);i[e(1009)]=i.max_gifts_can_get-c,t.giftsAdded=a,t[e(712)]=i[e(1009)]}else t.giftsAdded=a,t[e(712)]=0;return!S(FGSECOMAPP[e(362)])&&t.priority>FGSECOMAPP.maxOfferPriority&&(r=!1),t[e(478)]&&r?FGSECOMAPP[e(362)]=t[e(684)]:!t[e(478)]||r||S(a)||t[e(684)]!==FGSECOMAPP[e(362)]||(FGSECOMAPP[e(362)]=null),t.isReachConditions=r,t},B=x=>{let t=$,e=x+"=",a=document.cookie[t(765)](";");for(let i=0;i{let e=$,a=!0,i=!0,r=!0,c=!0;if(!S(x[e(977)]?.[e(573)])){let o=B(e(857));a=o&&JSON[e(908)](o)[e(1001)](x[e(977)].specific_link_address)}if(!S(x.sub_conditions?.[e(580)])){let{customer_tags:s}=x.sub_conditions,n=s?.[e(750)]?.[e(739)](x=>t.customer[e(466)]?.includes(x));i=s?.type_customer_tags==="include"?n:!n}if(!S(x[e(977)]?.[e(880)])){let{customer_locations:f}=x[e(977)],l=f?.[e(762)]?.[e(1001)](FGSECOMAPP.customerLocation);c=f?.type_customer_locations===e(840)?l:!l}if(!S(x[e(977)]?.[e(458)])){let d=!0,_=x[e(977)].customer_order_history,g=t[e(374)].orders??[];if(_.order_created_from){let u=Date[e(908)](_[e(417)])/1e3;g=g[e(500)](x=>x[e(511)]>=u&&[e(468),e(922)][e(1001)](x.financial_status))}if(!S(_?.total_spend_on_order_history)&&(0!==_[e(685)][e(369)]||0!==_[e(685)][e(954)])){let p=_.total_spend_on_order_history.min_amount,b=_[e(685)].max_amount,h=g[e(635)]((x,$)=>x+$[e(878)],0)/100;d&=(h>=p||!p)&&(h<=b||!b)}if(!S(_?.[e(503)])&&(0!==_[e(503)][e(369)]||0!==_[e(503)][e(954)])){let m=(t.customer[e(782)]??0)/100,y=_[e(503)][e(369)],v=_.total_spent_on_last_order.max_amount;d&=g[e(455)]>0&&(m>=y||!y)&&(m<=v||!v)}if(!S(_?.[e(588)])){let T=!(0!==_.number_of_order[e(369)]||0!==_[e(588)][e(954)]),E=g.length,w=_[e(588)].min_amount,C=_[e(588)][e(954)];d&=T?S(g):(E>=w||!w)&&(E<=C||!C)}if(_?.have_not_got_gift_from_this_offer){let I=t[e(374)][e(688)]??[],A=x[e(606)]?.[e(739)](x=>I.includes(x[e(821)]))||x[e(606)]?.[e(739)](x=>I[e(1001)](x[e(778)]+"_"+(x[e(668)]-x[e(968)])*100));d&=!A}r=d}return a&&i&&r&&c},j=(x,t,e)=>{let a=$,i=[],r=[],c=[],o=[];for(let s of t){let n=U(x,s);if(!n.isReachConditions){if(!n[a(804)].length)continue;n.giftsAdded[a(930)](x=>{let $=a;r[$(465)]({variant_id:x[$(1016)],quantity:x[$(728)],offer_id:s.id})})}if(n.giftsAvailable<0){n[a(804)][a(930)](x=>{let $=a;r[$(465)]({variant_id:x[$(1016)],quantity:x.quantity,offer_id:s.id})});continue}if(0===n.giftsAvailable){n[a(804)][a(930)](x=>{let $=a,t=FGSECOMAPP[$(480)][$(794)](t=>s.id?.toString()===t[$(386)]?.[$(867)]()&&x[$(1016)]===t[$(380)]);t&&(t[$(728)]=x[$(728)])});continue}(s[a(977)]&&Y(s,SECOMAPP)||S(s[a(977)]))&&i[a(465)](s)}if(x?.[a(500)](x=>S(x[a(386)])&&g(x))[a(930)](x=>{let $=a;r.push({variant_id:x[$(1016)],quantity:x[$(728)],offer_id:x[$(386)]?.[$(867)]()})}),e||S(r)){let f=i[a(714)](x=>{let $=a;return{id:x.id,offerName:x.offer_name,offerPriority:x[$(684)],stopLowerPriority:x.stop_lower_priority,gifts:H(x),giftsAvailable:x[$(712)],giftsAdded:x[$(804)],isReachConditions:x[$(646)],offer:x}});if(!S(f)){let l={};for(let d of f){let _=W(FGSECOMAPP[a(524)],d);_?.[a(455)]>0?c=c.concat([..._]):d.gifts.map(x=>{let $=a;l[x[$(800)]]={...x,belongs_to_offer:d.id?.toString()}})}o=Object[a(938)](l)??[]}}return{arrGiftsAdd:c,arrGiftsRemove:r,arrGiftsData:o}},V=(x,t)=>{let e=$,a=new Set;return x?.[e(930)](x=>a.add(x.offer_id)),a.forEach(x=>{let $=e,t=FGSECOMAPP[$(751)]?.find(t=>t.id?.[$(867)]()===x?.[$(867)]());if(S(t)||!t[$(646)]){FGSECOMAPP[$(480)]=FGSECOMAPP[$(480)]?.[$(500)](t=>t[$(386)]?.toString()!==x?.[$(867)]());return}if(t[$(712)]>=0)return;let a=[],i=FGSECOMAPP[$(480)]?.[$(500)](t=>t[$(386)]?.[$(867)]()===x?.[$(867)]())??[];if(t?.[$(707)]?.auto_add_all_gifts)a=a[$(663)]([...i]),t[$(712)]=0;else for(let r of(FGSECOMAPP[$(524)]?.[$(413)]&&!S(t[$(461)])&&t[$(461)][$(930)](x=>{let e=$,i=FGSECOMAPP[e(480)][e(794)]($=>$[e(386)]?.toString()===t.id?.[e(867)]()&&x[e(1016)]===$[e(380)]);if(S(i))return;let r=i[e(728)]-x[e(728)];t[e(712)]+=x[e(728)],r>0?i[e(728)]=r:(i[e(728)]=0,a[e(465)]({...i}))}),i)){if(t[$(712)]>=0)break;t[$(712)]+=r.quantity,t[$(712)]<=0?a[$(465)]({...r}):(r.quantity=t[$(712)],t[$(712)]=0)}a?.forEach(x=>{let t=$;FGSECOMAPP[t(480)]=FGSECOMAPP.arrOfferAdded?.[t(500)]($=>x.variantId!==$[t(380)]||x.belongs_to_offer?.[t(867)]()!==$[t(386)]?.[t(867)]())})}),t?.[e(500)](x=>{let $=e;return g(x)&&(x[$(728)]=FGSECOMAPP[$(480)]?.filter(t=>x[$(1016)]===t[$(380)])?.[$(635)]((x,t)=>x+t[$(728)],0)??0),x.quantity>0})??[]},z=async(x,t)=>{let e=$,{arrGiftsAdd:a,arrGiftsRemove:i,arrGiftsData:r}=j(x,t,!1),c=V(i,x);if(!S(i)){let o=j(c,t,!0);V(o?.[e(872)],x),a=o?.arrGiftsAdd,i=i?.[e(663)](o?.[e(872)])??[],r=o?.[e(708)]}return await b(a,i),l()[e(786)](),r},W=(x,t)=>{let e=$;try{let a=[],i=t[e(426)],r=i[e(635)]((x,$)=>x+$[e(949)][e(455)],0);if(!x[e(785)]||r<=0)return[];let c=t[e(643)]?.gift_settings?.[e(410)],o=t[e(643)]?.gift_should_the_same??{};if(o[e(644)]&&o.type===e(756)){let s=i[0][e(949)][0];0===s[e(968)]&&(a[e(465)]({variant_id:s[e(821)],quantity:t[e(712)],offer_id:t.id}),console.log(e(471)+s[e(821)]+e(764)+s[e(998)]+e(764)+t.id+"}"))}else if(c){let n=(t?.giftsAvailable??0)/r;i.forEach(x=>x[e(949)]?.[e(930)](x=>a[e(465)]({variant_id:x[e(821)],quantity:n,offer_id:t.id}))),console[e(367)](e(353)+t.id+"}")}else if(1===r){let f=i[0][e(949)][0];0===f[e(968)]&&(a[e(465)]({variant_id:f[e(821)],quantity:t.giftsAvailable,offer_id:t.id}),console.log(e(1008)+f[e(821)]+e(764)+f[e(998)]+e(764)+t.id+"}"))}return a}catch(l){return console.error(l),[]}},X=x=>x===$(823),K=x=>{let t=$;try{let e=Shopify?.[t(722)]??FGSECOMAPP[t(769)]?.[t(360)]?.[t(352)]?.gift_img_size??"&width=480&height=480",a=new URL(x),i=new URLSearchParams(e);return i[t(930)]((x,$)=>a[t(678)][t(813)]($,x)),a[t(867)]()}catch(r){return x}},Q=x=>{let e=$,a=x;if(FGSECOMAPP.fgAppearanceGiftSlider[e(996)]===e(817))for(let i of(a=[],x)){let r=i[e(949)];r&&r.length&&r[e(930)](x=>a[e(465)]({...i,thumbnail:x[e(657)],variants:[x]}))}let c=document[e(435)](e(852));c&&(c[e(738)]=a[e(714)](x=>{let $=e,a=x?.[$(949)][0]??{},i=X(a[$(998)]),r=x[$(949)]?.[$(455)],c=m(C(x.original_product_shopify_id,x.title)),o=FGSECOMAPP.fgAppearanceGiftSlider?.[$(996)]===$(817),s=document[$(596)](t[$(512)])?.[$(738)]??t.GIFT_ITEM_SECTION;return s.replaceAll(/{{\s*fg_product_handle\s*}}/gm,m(w(x[$(841)],x[$(446)]),!0)).replaceAll(/{{\s*fg_product_img\s*}}/gm,m(K(x.thumbnail),!0))[$(919)](/{{\s*fg_product_img_alt\s*}}/gm,c)[$(919)](/{{\s*fg_product_title\s*}}/gm,c)[$(919)](/{{\s*fg_gifts_check_show_by_variants\s*}}/gm,m(o&&FGSECOMAPP[$(885)][$(597)]?"":"sca-d-none"))[$(919)](/{{\s*fg_gifts_check_show_by_products\s*}}/gm,o?$(642):"")[$(919)](/{{\s*fg_check_selected_variant\s*}}/gm,1===r?$(980)+(i?"sca-d-none":""):"")[$(919)](/{{\s*fg_variant_title\s*}}/gm,m(1!==r?h(FGSECOMAPP[$(885)][$(892)]??"Select variant","customize.select_variant_button_text"):a[$(998)]))[$(919)](/{{\s*fg_original_price\s*}}/gm,m(E(a)))[$(919)](/{{\s*fg_gift_price\s*}}/gm,m(T(a)))[$(919)](/{{\s*sca_fg_variant_select_section\s*}}/gm,m(v(x[$(949)],x[$(657)])))[$(919)](/{{\s*fg_product_belongs_to_offer\s*}}/gm,x[$(386)])[$(919)](/{{\s*fg_variant_id\s*}}/gm,m(1===r?a.variant_shopify_id:"")).replaceAll(/{{\s*fg_add_to_cart\s*}}/gm,m(h(FGSECOMAPP.fgAppearanceGiftSlider?.add_to_cart_btn_title??$(674),"customize.add_to_cart_button")))})[e(812)](" \n"),new Glider(document[e(596)](e(496)),{slidesToShow:1,slidesToScroll:1,draggable:!1,dots:FGSECOMAPP.fgAppearanceGiftSlider[e(450)]?e(693):null,arrows:{prev:e(691),next:".freegifts-main-container .glider-next"},responsive:[{breakpoint:1024,settings:{slidesToShow:FGSECOMAPP[e(885)][e(957)]??4,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:2,slidesToScroll:1}}]}),document.dispatchEvent(new CustomEvent(FGSECOMAPP[e(802)][e(436)],{detail:{addGiftToCartFunc:FGSECOMAPP[e(689)],gifts:xv(a)}})))},J=async()=>{let x=$;try{let t=window.fgData?.offers??[];for(let e in await x5(),FGSECOMAPP[x(619)])S(FGSECOMAPP[x(619)][e]?.id)&&delete FGSECOMAPP[x(619)][e];let a=[];t.forEach($=>{let t=x;try{let e=JSON[t(908)](JSON[t(783)]($));if($[t(844)].status){let i=$[t(437)][0].product_narrow,r=i[0][t(491)],c=[...e.gift_items],o=[...e.gift_products];if($[t(844)][t(695)]===t(756))for(let s in r){let n=r[s]?.[t(756)]??[];for(let f of n){e[t(437)][0][t(1023)]=[{type:i[0].type,value:{[s]:{...r[s],variant:[{...f}]}}}],e.gift_items=c[t(500)](x=>x[t(841)]+""===s&&f.id===x[t(778)]),e[t(951)]=o[t(500)](x=>x[t(841)]+""===s),e[t(951)][0][t(949)]=[...e[t(606)]];let l=e.gift_settings[t(418)],d=e[t(707)].auto_add_all_gifts;e.gift_settings[t(410)]&&(l=e[t(606)][t(455)]),1===e[t(606)].length&&0===e[t(606)][0][t(968)]&&(d=!0),a[t(465)](JSON[t(908)](JSON[t(783)]({...e,gift_settings:{...e[t(707)],number_of_gift_can_receive:l,auto_add_all_gifts:d},id:e.id+"_"+r[s][t(424)]+"_"+f.id,offer_root:""+e.id})))}}else if($.gift_should_the_same[t(695)]===t(870))for(let _ in r){e.offer_conditions[0].product_narrow=[{type:i[0][t(695)],value:{[_]:r[_]}}],e[t(606)]=c[t(500)](x=>x[t(841)]+""===_),e[t(951)]=o[t(500)](x=>x[t(841)]+""===_);let g=e[t(707)][t(418)],u=e.gift_settings[t(410)];e[t(707)][t(410)]&&(g=e[t(606)][t(455)]),1===e.gift_items[t(455)]&&0===e[t(606)][0][t(968)]&&(u=!0),a[t(465)](JSON[t(908)](JSON[t(783)]({...e,gift_settings:{...e.gift_settings,number_of_gift_can_receive:g,auto_add_all_gifts:u},id:e.id+"_"+r[_][t(424)],offer_root:""+e.id})))}}}catch(p){console[t(851)](p)}}),t=(t=(t=t?.filter($=>!$?.[x(844)]?.[x(644)])?.[x(663)](a))?.[x(714)]($=>{let t=x;return{...$,id:$.id[t(867)](),offer_root:($[t(753)]??$.id)[t(867)]()}}))?.[x(500)]($=>{let t=x;if(!xe($[t(719)],$[t(787)]))return!1;let e=!S($[t(977)]?.[t(458)]||$[t(977)]?.[t(580)]);if($[t(977)]&&(!Y($,SECOMAPP)||e&&S(SECOMAPP[t(374)].email)))return!1;let a={...FGSECOMAPP[t(619)]},i=!1;if(FGSECOMAPP[t(524)][t(590)]===t(616)){$[t(606)]=$?.[t(606)][t(500)](x=>{let $=t,e=a[x[$(841)]]?.[$(558)]??{};return e[x[$(778)]]>0})??[];let r=$[t(606)]?.[t(714)](x=>x[t(821)]);$[t(951)]=$?.[t(951)]?.[t(500)](x=>{let $=t;return x[$(949)]=x?.[$(949)]?.[$(500)](x=>{let t=$;return r?.[t(1001)](x[t(821)])}),x?.[$(949)]?.[$(455)]>0}),i=!0}else if(FGSECOMAPP[t(524)][t(683)]){$.gift_items=$?.gift_items.filter(x=>{let $=a[x.product_shopify_id]?.[t(558)]??{};return $[x.variant_shopify_id]>0});let c=$[t(606)]?.[t(714)](x=>x[t(821)]);$[t(951)]=$?.[t(951)]?.[t(500)](x=>{let $=t;return x.variants=x?.[$(949)]?.[$(500)](x=>{let t=$;return c?.[t(1001)](x[t(821)])}),x?.[$(949)]?.[$(455)]>0}),i=!0}return i&&$[t(707)]?.[t(410)]&&($[t(707)].number_of_gift_can_receive=$[t(606)]?.length),!i||$[t(606)]&&$[t(606)][t(455)]>0});let i=FGSECOMAPP?.[x(524)]?.cal_gift_discount===x(499)?x(681):x(668),r=FGSECOMAPP[x(524)]?.[x(413)],c=r===x(499)?x(681):x(668);return t?.map($=>{let t=x,e=$[t(606)][t(714)](x=>{let $=t;return x[$(452)]=S(x[i])?x?.[$(668)]:x[i],r&&(x[$(479)]=S(x[c])?x?.original_price:x[c]),x.original_product_shopify_id});return $[t(951)]=$[t(951)]?.[t(500)](x=>{let $=t;return x[$(949)]?.[$(930)](x=>{let t=$;x[t(452)]=S(x[i])?x?.[t(668)]:x[i],r&&(x[t(479)]=S(x[c])?x?.[t(668)]:x[c])}),e[$(1001)](x[$(841)])}),$.offer_conditions?.[t(930)](x=>{let $=t;x.unit===$(403)&&(x[$(369)]=O(x[$(369)]),x[$(954)]=S(x[$(954)])?x[$(954)]:O(x[$(954)]))}),$})?.sort(($,t)=>$[x(684)]-t[x(684)])}catch(o){return console[x(851)](o),[]}},Z=async()=>{let x=$;try{let t=[];window[x(920)]?.offers?.forEach($=>{let e=x,a=[];$[e(951)][e(930)](x=>{let $=e;a[$(465)](x[$(350)],x[$(446)])}),t=[...t,...a]}),await xm(t=(t=[...new Set(t)]).filter($=>S(FGSECOMAPP[x(953)][$]))),Object[x(938)](FGSECOMAPP[x(953)])?.[x(930)]($=>{let t=x,{info:e}=$;S(e)||S(e?.id)||(FGSECOMAPP[t(619)][e.id]={...e})})}catch(e){console[x(851)](e)}},xx=x=>{let t=$;try{S(x)?(FGSECOMAPP[t(480)]=[],localStorage.setItem("sca_offers_added",LZString[t(584)](JSON[t(783)](FGSECOMAPP[t(480)])))):FGSECOMAPP.arrOfferAdded=JSON[t(908)](LZString[t(483)](localStorage[t(798)](t(773))))}catch(e){FGSECOMAPP[t(480)]=[],localStorage.setItem(t(773),LZString[t(584)](JSON.stringify(FGSECOMAPP.arrOfferAdded)))}let a={};FGSECOMAPP[t(751)]?.forEach(x=>{let $=t;a[x.id]=x?.[$(606)]?.[$(714)](x=>x.variant_shopify_id)});let i=Object[t(378)](a);FGSECOMAPP[t(480)]=FGSECOMAPP[t(480)]?.[t(500)](x=>i?.[t(1001)](x.belongs_to_offer?.[t(867)]())&&a[x[t(386)]?.[t(867)]()][t(1001)](x[t(380)]));let r={};FGSECOMAPP[t(480)]?.forEach(x=>{let $=t,e=r[x.belongs_to_offer+"_"+x[$(380)]]??{};r[x[$(386)]+"_"+x[$(380)]]={...x,belongs_to_offer:x[$(386)]?.[$(867)](),quantity:(e?.[$(728)]??0)+(x?.[$(728)]??0)}}),FGSECOMAPP.arrOfferAdded=Object.values(r),localStorage[t(746)]("sca_offers_added",LZString[t(584)](JSON.stringify(FGSECOMAPP[t(480)])))},x$=()=>{let x=$;FGSECOMAPP[x(420)]={cart_drawer_query:{tool:[x(959),I(x(518))]},cart_icon_query:{default:[x(493)],tool:[x(905),I(x(744))]},gift_icon_product_query:{default:[x(721)],integration:[x(433)],tool:[x(422),I(x(368))]},gift_icon_collection_query:{default:[x(731),x(909)],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(x(535))]},gift_thumbnail_query:{default:[x(808)],integration:[".m-product-form--wrapper"],tool:[x(632),I(x(475))]},cart_message_query:{default:[x(834)],integration:[x(583),x(523),x(439),"div[class*=hs-cart-drawer] .hs-site-cart-popup-layout, #MinimogCartDrawer m-cart-drawer-items, #CartDrawer .drawer__inner","cart-drawer .mini-cart__inner .mini-cart__empty, cart-drawer .mini-cart__inner .mini-cart__main"],tool:[x(649),I(x(928))]},checkout_btn_query:{default:["input[name='checkout'], button[name='checkout'], input[name='goto_pp'], button[name='goto_pp']",x(976),"button.new_checkout_button, input[value='Checkout'], input[value='Checkout'], input[value='Check out']","input[value='Check Out'] a.checkout-link"],integration:[x(822),x(897)],tool:[".sca_handle_button_checkout",I(x(612))]}}},x0=async x=>{let t=$;document[t(881)](new CustomEvent(FGSECOMAPP[t(802)][t(640)],{detail:{}})),x$(),A(),FGSECOMAPP[t(537)](),(FGSECOMAPP?.[t(524)]?.[t(590)]===t(616)||FGSECOMAPP?.[t(524)]?.[t(683)])&&await Z(),FGSECOMAPP[t(751)]=await J(),FGSECOMAPP[t(444)](),r(),s(),xx(x);let e=await z(x,FGSECOMAPP[t(751)]);await xa(e),x6(),x2(),xy(),x3(),document[t(881)](new CustomEvent(FGSECOMAPP[t(802)].END_RENDER_APP,{detail:{}}))},xt=function(){let x=$,t=document.querySelectorAll(x(405)),e=document[x(517)]("#freegifts-main-popup-container [data-close]"),i=x(891),r=document[x(517)](x(761)),c=r[x(455)];for(let o=0;o{let t=x;$[t(501)]===document[t(596)](t(729))&&(document[t(596)](t(729)).classList.remove(i),a())}),document.addEventListener("keyup",$=>{let t=x;$[t(1004)]===t(890)&&document[t(596)](t(729))&&(document[t(596)]("#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg")[t(671)][t(902)](i),a())}),document.querySelectorAll(x(525))[x(930)]($=>$[x(672)](x(748),function(){let $=x;this[$(846)]("tabindex",1),this.focus(),this.classList[$(820)]("active"),this[$(596)]($(542))[$(671)][$(820)]($(992))})),document.querySelectorAll(x(525)).forEach($=>document[x(672)](x(748),function(t){let e=x,a=$[e(856)](t.target);a||($[e(671)].remove(e(576)),$[e(596)](e(542)).classList[e(902)](e(992))),document[e(517)](e(645))[e(930)](x=>{let $=e;x[$(768)]=!0,x[$(467)].backgroundColor=$(604)})})),document[x(517)](x(847)).forEach($=>{let t=x;$[t(672)](t(748),function(){let x=t,$=this[x(940)]("id"),e=this[x(940)](x(477)),a=this.getAttribute("data-price"),i=this[x(940)]("data-original-price"),r=this[x(940)](x(917)),c=this[x(1018)][x(1018)][x(1018)][x(1018)];c[x(596)](x(810))[x(846)]("src",e);let o=new URL(c[x(596)](".gift-original-url")[x(925)]);o.searchParams[x(813)]("variant",r),c[x(596)](x(498))[x(925)]=o[x(867)]();let s=this.parentElement.parentElement[x(1018)];s[x(596)](x(943))[x(629)]=i,s[x(596)](x(375)).textContent=a;let n=s?.[x(596)](".btn-add-to-cart");n[x(846)]("data-variant",$),n.disabled=!1,n[x(467)]="";let f=this[x(1018)][x(1018)][x(596)](".selected-variant");f.classList.add(x(576)),f.innerHTML=this[x(622)]})}),document[x(517)]("#fg-gift-items .btn-add-to-cart")[x(930)]($=>$[x(672)](x(748),async function(){let $=x,t=this[$(940)]($(1020))-0,e=this[$(940)]($(676));try{await _(t,1,e);let a=document[$(596)]("#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg");a&&(FGSECOMAPP[$(376)]=!0,await new Promise(x=>setTimeout(x,800)),a.classList[$(902)](i)),window[$(514)][$(925)][$(1001)]($(382))?location[$(757)]():typeof Shopify?.[$(679)]===$(624)&&await Shopify?.[$(679)](0===FGSECOMAPP.fgCallback[$(455)]?function(){}:FGSECOMAPP[$(404)][0])}catch(r){console[$(851)](r)}}))},xe=(x,t)=>{let e=$;if(x){let a=new Date,i=a[e(601)](),r=new Date(x)[e(601)]();if(!t)return i>=r;{let c=new Date(t)[e(601)]();return i>=r&&i<=c}}return!1},xa=async x=>{let t=$;x&&x.length>0&&(FGSECOMAPP.isDelayShowAdded?(await new Promise(x=>setTimeout(x,1500)),FGSECOMAPP[t(376)]=!1,y(),Q(x)):(y(),Q(x))),xt(),FGSECOMAPP.fetchCheckoutEvents(),FGSECOMAPP.renderPromotionMessage(FGSECOMAPP[t(751)]),xo=[]},xi=async x=>{let t=$;xo=[];let e=new URL(window.location[t(925)]);e.searchParams[t(813)](t(364),""),i(e[t(867)]()).then(x=>x.text()).then(x=>{let $=t,e=new DOMParser,a=e[$(598)](x,$(569)),{cart_drawer_query:i,cart_icon_query:r}=FGSECOMAPP[$(420)],c=[...i?.[$(875)]][$(500)](Boolean)[$(812)](","),o=[...r?.[$(875)]][$(500)](Boolean).join(","),s=[...r?.default][$(500)](Boolean)[$(812)](","),n=document[$(596)](c),f=!1;n&&(f=!0,n[$(738)]=a[$(596)](c)?.[$(738)]??n.innerHTML);let l=document[$(596)](o);l||(l=document[$(596)](s)),l&&(f=!0,l.innerHTML=a[$(596)](o)?.[$(738)]??a.querySelector(s)?.[$(738)]??l[$(738)]),f||console[$(367)]($(617))}),typeof FGSECOMAPP?.[t(408)]===t(624)&&await FGSECOMAPP[t(408)](),document[t(881)](new CustomEvent(FGSECOMAPP[t(802)][t(571)],{detail:{}})),p("end"),setTimeout(function(){xa(x)},800)},xr=async x=>{let t=$,e=await i("/cart.js?sca_fetch&"+(x??""),{method:t(755),headers:{Accept:"application/json","Content-Type":t(400)}})[t(786)](x=>x[t(497)]()),a=e[t(574)];return FGSECOMAPP[t(838)]=e,FGSECOMAPP[t(631)]=a?.[t(714)](x=>{let $=t;return{...FGSECOMAPP[$(631)]?.[$(794)]($=>$.id===x.id),...x}})??[],e},xc=async()=>{let x=$,t=FGSECOMAPP[x(838)];try{await i(SECOMAPP.freegiftProxy,{method:x(755),headers:{"Content-Type":x(570)}})[x(786)](async $=>{let e=x,a=await $[e(497)]();FGSECOMAPP[e(631)]=a?.[e(994)]?.[e(714)](x=>{let $=e;return{...FGSECOMAPP[$(631)]?.find($=>$.id===x.id),...x.product,collections:x[$(915)],tags:x[$(466)]}})??[],FGSECOMAPP.SHOPIFY_CART=a?.[e(741)]??{},t=FGSECOMAPP[e(838)]})[x(502)](async $=>{let e=x;console[e(851)](e(669)+$.message),t=await xr()})}catch(e){console[x(851)](x(486),e.message),t=await xr()}return t},xo=[],xs=async x=>{let t=$;try{xo[t(465)](x[0]),document[t(881)](new CustomEvent(FGSECOMAPP[t(802)][t(487)],{detail:{events:xo}})),await xc();let e=await z(FGSECOMAPP.cartItems,FGSECOMAPP[t(751)]);FGSECOMAPP[t(1024)](FGSECOMAPP[t(751)]);let a=!1;return x[0][t(811)](t(815))&&JSON.stringify(x[1][t(680)]??[])[t(1001)](t(366))?(console[t(367)]("event add gift to cart from popup",[...xo]),await xi(e),a=!0):x[0][t(811)]("/cart/update")&&JSON[t(783)](x[1][t(680)]??[]).includes(t(1005))?(console[t(367)]("event auto process gifts with cart",[...xo]),await xi(e),a=!0):(console[t(367)](t(554),[...xo]),await xa(e)),x7(),a&&(window[t(514)].href.includes(t(382))||document[t(596)](t(1017))?.[t(940)](t(522))===t(736))&&(xo=[],location.reload()),document[t(881)](new CustomEvent(FGSECOMAPP[t(802)][t(506)],{detail:{events:xo}})),FGSECOMAPP[t(631)]}catch(i){console[t(851)](i)}},xn=()=>{let x=$;if(!Shopify?.[x(767)])return;let t=document[x(596)](x(474));if(!t)return;t[x(738)]="";let e=Shopify?.[x(589)]??x(969),a=document[x(401)]("li");a.className=x(978),a[x(738)]=x(896)+e+x(431),t[x(599)](a),a[x(725)]=setTimeout(()=>xf(a),3e3),document.querySelector("#close-fg-toast")?.[x(672)](x(748),()=>xf(a))},xf=x=>{x[$(671)].add("hide"),x.timeoutId&&clearTimeout(x.timeoutId),setTimeout(()=>x.remove(),500)},xl=x=>{let t=$;try{let e=FGSECOMAPP[t(524)]?.[t(855)],a=e===t(508)?x.target:x[t(874)]??x.target;a?.[t(541)](t(594))||(a=document[t(596)](t(843))?.[t(577)]);let i=JSON[t(908)](a[t(940)](t(936)));if(a[t(491)]=i?.[t(491)]??"",a[t(738)]=i?.[t(738)]??"",a.disabled=!1,a[t(726)](t(748),xd),a[t(932)](t(594)),"clone_checkout"===e){a[t(577)][t(596)](t(982)).click();return}e===t(508)&&window[t(726)](t(748),x8,!0),a[t(748)]()}catch(r){window[t(514)][t(600)]((Shopify?.routes?.[t(803)]??"/")+"checkout"),console.error(r.message)}};FGSECOMAPP[$(470)]=async(x,t)=>{let e=$;if("start"===x&&t)t[e(768)]=!0,t[e(846)]("data-fg-checkout-btn",JSON[e(783)]({innerHTML:t[e(738)],value:t[e(491)]})),"function"==typeof FGSECOMAPP?.scaCustomLoadingCheckout?await FGSECOMAPP[e(664)](x):(t[e(491)]=Shopify?.[e(912)]??"Loading...",t[e(738)]=Shopify?.[e(776)]??e(355));else if(x===e(799)&&t){if(typeof FGSECOMAPP?.[e(664)]===e(624))await FGSECOMAPP[e(664)](x);else{let a=JSON.parse(t[e(940)](e(936)));t[e(491)]=a?.value??"",t[e(738)]=a?.[e(738)]??""}t[e(768)]=!1}else"error"===x?(typeof FGSECOMAPP?.[e(664)]===e(624)&&await FGSECOMAPP.scaCustomLoadingCheckout(x),window[e(514)][e(600)]((Shopify?.[e(515)]?.[e(803)]??"/")+"checkout")):console.error(e(986),x)};let xd=async x=>{let t=$;try{x[t(587)](),x[t(777)](),x.stopImmediatePropagation();let e=FGSECOMAPP[t(524)]?.[t(855)],a="trigger_body"===e?x[t(501)]:x.currentTarget??x.target,{form:r}=a;if(await FGSECOMAPP.customLoadingCheckout(t(639),a),document[t(881)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS.START_VALIDATE_CHECKOUT,{detail:{}})),FGSECOMAPP.checkIsBlockCheckout)return!1;FGSECOMAPP[t(618)]=!0;try{if(!Shopify?.disable_fetch_cart_checkout){let c=new URL(r[t(440)]);c[t(678)].append(t(670),""),await i(c[t(867)](),{method:t(372),body:new FormData(r)})}}catch(o){console[t(367)](t(686))}if(S(FGSECOMAPP[t(751)])&&S(FGSECOMAPP.cartItems?.[t(794)](x=>g(x))))return console[t(367)](t(730)),xl(x),!1;await xc();let s=[...FGSECOMAPP.cartItems],{arrGiftsRemove:n}=j(s,FGSECOMAPP[t(751)],!1);if(await z(s,FGSECOMAPP[t(751)]),n?.[t(455)]>0)location[t(757)]();else try{FGSECOMAPP[t(524)][t(346)]&&!S(FGSECOMAPP[t(631)]?.[t(794)](x=>g(x)))?await i(SECOMAPP[t(449)]+t(861)+Shopify?.[t(975)],{method:t(755),headers:{"Content-Type":"application/liquid"}})[t(786)](async x=>{let $=t,e=await x[$(497)]();e[$(994)]=(e.cart??[])[$(714)](x=>{let t=$;return x[t(870)][t(915)]=x[t(915)]?.[t(714)](x=>({id:x.id})),x[t(870)][t(466)]=x[t(466)],{id:x[t(870)].id,variant_id:x[t(870)].variant_id,title:x[t(870)][t(626)],handle:x[t(870)].handle,price:k(x[t(870)]),quantity:x[t(870)].quantity,product_type:x[t(870)][t(868)],vendor:x[t(870)].vendor,tags:x[t(870)].tags,collections:x[t(870)][t(915)],selling_plan_allocation:x[t(870)][t(615)]}}),e[$(352)]={arr_offer_added:FGSECOMAPP.arrOfferAdded,secomapp:{customer:SECOMAPP?.customer??{},fg_codes:SECOMAPP?.fg_codes??[],fgSettings:FGSECOMAPP[$(524)]},cookie_fg_code:B($(857)),shopify_currency:Shopify?.currency},await i(SECOMAPP[$(449)]+$(942)+LZString[$(347)](e=JSON[$(783)](e)),{method:$(755),headers:{"Content-Type":"application/liquid"}})[$(786)](async x=>{let t=$,e=await x[t(497)]();try{FGSECOMAPP.checkIsBlockCheckout=!1,e[t(359)]&&(window[t(514)][t(925)]=e[t(359)][t(555)])}catch(a){console.error(a)}})}):(console[t(367)](t(818)),FGSECOMAPP.checkIsBlockCheckout=!1,xl(x))}catch(f){FGSECOMAPP[t(618)]=!1,xl(f)}await FGSECOMAPP[t(470)](t(799),a="trigger_body"===e?x[t(501)]:x.currentTarget??x.target),document.dispatchEvent(new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(454)],{detail:{status:t(505)}}))}catch(l){await FGSECOMAPP[t(470)](t(851)),document[t(881)](new CustomEvent(FGSECOMAPP[t(802)][t(454)],{detail:{status:"error"}})),console[t(851)](l)}},x8=async x=>{let t=$;x[t(501)]?.[t(541)](t(594))&&await xd(x)},x1=()=>{let x=$,t=FGSECOMAPP[x(524)]?.mode_override_checkout,{checkout_btn_query:e}=FGSECOMAPP[x(420)],a=[...e?.[x(875)],...e?.[x(665)],...e?.[x(829)]][x(500)](Boolean).join(",");document[x(517)](a)[x(930)]($=>{let e=x,a=$.hasAttribute(e(592)),i=$[e(541)](e(775)),r=$.hasAttribute(e(594));if(t===e(351)){if(a)return;if(!i&&!r){let c=$[e(899)](!0);c[e(672)](e(748),xd),c[e(846)](e(594),""),c[e(846)](e(775),""),$.style.display=e(581),$.style[e(705)]=e(933),$[e(467)][e(414)]="0",$[e(846)]("sca_root_checkout",""),$[e(577)]?.[e(599)](c)}i&&!r&&($[e(672)]("click",xd),$[e(846)]("sca_handle_checkout",""))}else t===e(508)?$.setAttribute(e(594),""):r||($[e(672)]("click",xd),$.setAttribute(e(594),""));FGSECOMAPP[e(946)]=!0}),t===x(508)&&window[x(672)]("click",x8,!0)};FGSECOMAPP.fetchCheckoutEvents=()=>{let x=$;FGSECOMAPP[x(935)]=0;let t=setInterval(()=>{let $=x;x1(),FGSECOMAPP[$(935)]++,(FGSECOMAPP[$(935)]>10||FGSECOMAPP[$(946)])&&(FGSECOMAPP[$(935)]=0,clearInterval(t))},400)};let x_=x=>{let t=$;try{let e={},a={},i=FGSECOMAPP[t(751)];if(S(x)){x=[],S(Shopify?.current_product)||x[t(465)]({...Shopify?.[t(832)]});let r={...Shopify?.[t(536)],...Shopify?.[t(774)]?.products};Object[t(938)](FGSECOMAPP.productsInPage)?.[t(500)](x=>!S(x.info)&&(S(x?.product_has_icon)||x?.[t(544)]&&!x?.[t(582)]?.[t(967)](x=>x?.[t(671)]?.contains(t(462)))))?.[t(930)](x=>{let $=t;r[x[$(430)].id]={...x.info}}),x=x[t(663)]([...Object[t(938)](r)])}x?.[t(930)](x=>{let $=t,e=FGSECOMAPP[$(953)][x.handle];FGSECOMAPP.productsInPage[x[$(424)]]={...e,info:{...x},product_has_icon:!!S(i)&&void 0}});let c=FGSECOMAPP.fgSettings?.compare_gift_price_with_product;for(let o in i?.forEach($=>{let i=t,r=$[i(437)];if(1===r[i(455)]&&r[0][i(550)]===i(853)&&typeof r[0][i(904)]===i(734)){let o,s=r[0][i(1023)];s?.forEach($=>{let t=i;switch($[t(695)]){case t(760):o=Object.values($.value);break;case t(710):let e=Object.keys($[t(491)]);e.length>0&&(o=(void 0===o?x:o)?.[t(500)](x=>e.includes(x.type))??[]);break;case"product_vendors":let a=Object[t(378)]($[t(491)]);a[t(455)]>0&&(o=(void 0===o?x:o)?.filter(x=>a[t(1001)](x[t(824)]))??[]);break;case t(850):let r=Object[t(378)]($[t(491)]);r[t(455)]>0&&(o=(void 0===o?x:o)?.[t(500)](x=>{let $=t,e=x.collections?.[$(714)](x=>x.id+""),a=e?.filter(x=>r[$(1001)](x));return!S(a)})??[])}}),o?.forEach(x=>{let t=i,r=x[t(424)],o=JSON[t(908)](JSON[t(783)]($[t(951)])),s=FGSECOMAPP[t(953)][r]?.[t(430)]??{};if(FGSECOMAPP.fgSettings?.[t(864)]&&(o=o[t(500)](x=>x.original_product_shopify_id!==s?.id)),c&&(o=o.filter(x=>{let $=t;return x[$(949)][$(739)](x=>x?.compare_gift_price<=s?.[$(427)]/100)}),S(o)))return;if(e[r]){let n=e[r];o?.[t(930)](x=>{let $=t,e=n.find(t=>t[$(841)]===x[$(841)]);if(S(e)){n[$(465)](x);return}let a=x[$(949)][$(714)](x=>x[$(778)]);e.variants=e?.variants?.[$(500)](x=>!a[$(1001)](x[$(778)]))??[],e.variants=[...e[$(949)],...x[$(949)]]}),e[r]=n}else e[r]=o;let f=(x.variants??x[t(756)])?.[t(714)](x=>x.id)??[];a[r]={},FGSECOMAPP[t(953)][r]?.[t(430)]?.variants?.[t(500)](x=>f[t(1001)](x.id))?.[t(930)](x=>{a[r][x.id]=o.filter($=>{let t=_0x1ccc,e=$[t(949)];return c&&(e=e[t(500)]($=>$?.[t(479)]<=x.price/100)),!S(e)})})})}}),e){let s=FGSECOMAPP[t(953)][o];FGSECOMAPP[t(953)][o]={...s,gifts_will_receive:[...e[o]],product_has_icon:!0,variants_has_gift:{...a[o]}}}return Object[t(354)](e)?.[t(455)]?e:{}}catch(n){return console[t(851)](n),null}},xg=x=>{let e=$,a=FGSECOMAPP[e(565)].product_page??{};if(!a[e(447)]?.[e(644)])return!1;let i=document[e(596)](t[e(999)])?.[e(738)]??t.GIFT_THUMBNAIL_ITEMS_SECTION,r=x?.[e(714)](x=>i.replaceAll(/{{\s*fg_product_handle\s*}}/gm,m(w(x.original_product_shopify_id,x[e(446)]),!0))[e(919)](/{{\s*fg_product_img\s*}}/gm,m(K(x[e(657)]),!0))[e(919)](/{{\s*fg_product_img_alt\s*}}/gm,m(C(x[e(841)],x[e(626)]))))[e(812)](""),c=document[e(596)](t[e(979)])?.[e(738)]??t[e(985)],o=c[e(919)](/{{\s*fg_gift_thumbnail_title\s*}}/gm,m(h(a[e(447)]?.title??e(713),e(735))))[e(919)](/{{\s*sca_fg_gift_thumbnail_items_section\s*}}/gm,r).replaceAll(/{{\s*fg_check_show_narrow\s*}}/gm,x?.[e(455)]>=4?"":"sca-d-none"),{gift_thumbnail_query:s}=FGSECOMAPP.QUERY_SELECTOR??{},n=[...s?.[e(875)]][e(500)](Boolean)[e(812)](","),f=[...s?.[e(665)],...s?.[e(829)]][e(500)](Boolean).join(","),l=document[e(596)](n)??document[e(596)](f);if(!l)return;l[e(577)][e(467)][e(564)]=e(696),l[e(577)][e(467)][e(788)]=e(591),l[e(577)]?.[e(913)]?.[e(1001)](e(621))||l[e(577)]?.[e(671)]?.[e(701)]("sca-fg-form-thumbnail-product-page");let d=l[e(577)][e(596)](e(807));if(d)d[e(738)]=o;else{(d=document[e(401)]("div"))[e(846)]("id",e(633));let _=new DOMParser()[e(598)](o,"text/html");d[e(738)]=_.body[e(738)],l[e(577)][e(724)](d,l)}l[e(577)][e(724)](d,l);let g=document[e(596)](e(402));if(g)switch(a[e(447)]?.[e(772)]){case"32":g[e(467)][e(566)]=e(717);break;case"50":g[e(467)][e(566)]=e(540);break;case e(1011):g.style.maxWidth=e(572);break;case"160":g[e(467)][e(566)]=e(830);break;case e(950):g.style[e(566)]=e(696);break;default:g[e(467)].maxWidth=e(540)}if(x?.[e(455)]>=(Shopify?.[e(882)]??4))new Glider(document[e(596)](e(547)),{slidesToShow:(Shopify?.[e(882)]??4)-1,slidesToScroll:1,draggable:!0,dots:e(1014),arrows:{prev:e(771),next:"#fg-gift-thumbnail-title .glider-next"}});else{g&&(g[e(467)][e(566)]=e(696));let u=document[e(596)](e(547));u&&(u[e(467)][e(567)]="flex")}return x},xu=()=>{let x=$;if(!(FGSECOMAPP[x(565)][x(709)]??{})[x(568)]?.[x(644)])return!1;let e=document[x(596)](t.GIFT_ICON_SECTION_ID)?.innerHTML??t[x(990)],a=e[x(919)](/{{\s*fg_gift_icon\s*}}/gm,FGSECOMAPP[x(565)][x(531)])[x(919)](/{{\s*fg_gift_icon_alt\s*}}/gm,x(941)).replaceAll(/{{\s*fg_class_product_or_collection_page\s*}}/gm,x(445)),{gift_icon_product_query:i}=FGSECOMAPP.QUERY_SELECTOR,r=[...i?.[x(875)]][x(500)](Boolean)[x(812)](","),c=[...i?.[x(829)],...i?.[x(665)]][x(500)](Boolean)[x(812)](","),o=document[x(596)](r)??document[x(596)](c);if(!o)return;o[x(467)][x(345)]="relative",o[x(467)][x(564)]=x(961),o[x(913)]?.[x(1001)](x(659))||o.classList?.add(x(659));let s=o[x(596)](x(608));if(s)s[x(738)]=a;else{(s=document.createElement(x(358)))[x(846)]("id",x(839));let n=new DOMParser()[x(598)](a,x(569));s.innerHTML=n.body[x(738)],o[x(599)](s)}return FGSECOMAPP[x(565)].gift_icon_path},xp=()=>{let x=$,t=[],{gift_icon_collection_query:e}=FGSECOMAPP[x(420)],a=[...e?.[x(875)],...e?.[x(665)],...e?.[x(829)]][x(500)](Boolean).join(",");return document[x(517)](a)[x(930)]($=>{let e=x,a=$.querySelector(e(716)),i=a?.getAttribute(e(925))?.[e(765)]("/")??[],r=i?.[e(623)]("products"),c=r>=0?i[r+1]??null:null;if(c=c?.[e(765)]("?")?.[e(789)](),g(c)){$[e(902)]();return}let o=$[e(596)](e(910));if(o){$.remove();return}if(S(c))return;let s=decodeURI(c);S(FGSECOMAPP[e(953)][s]?.[e(430)])&&t[e(465)](s);let n=(FGSECOMAPP.productsInPage[s]?.[e(582)]??[])[e(500)](x=>!$[e(866)](x));n.push($),FGSECOMAPP[e(953)][s]={...FGSECOMAPP[e(953)][s],positions:[...n]}}),t},xb=x=>{let e=$;Object[e(378)](x)?.[e(930)](x=>{let $=e,a=FGSECOMAPP[$(953)][x]?.[$(582)]??[];if(S(a)||!Array.isArray(a))return;if(!(FGSECOMAPP[$(565)].collection_page??{})[$(644)])return;let i=document[$(596)](t[$(398)])?.[$(738)]??t[$(990)],r=i[$(919)](/{{\s*fg_gift_icon\s*}}/gm,FGSECOMAPP[$(565)].gift_icon_path).replaceAll(/{{\s*fg_gift_icon_alt\s*}}/gm,$(941))[$(919)](/{{\s*fg_class_product_or_collection_page\s*}}/gm,$(939));a.forEach(x=>{let t=$;x[t(467)][t(345)]=t(965),x[t(913)]?.includes(t(906))||x[t(671)]?.[t(701)](t(906));let e=x[t(596)](t(758));if(e)e[t(738)]=r;else{(e=document.createElement(t(358)))[t(846)](t(988),"sca-gift-icon-collection-page");let a=new DOMParser()[t(598)](r,"text/html");e[t(738)]=a.body[t(738)],x[t(599)](e)}})})},xh=async x=>{let t=$;await i(SECOMAPP[t(449)]+"&sca_products_handle="+LZString[t(347)](JSON[t(783)](x)),{method:t(755),headers:{"Content-Type":t(570)}})[t(786)](async x=>{let $=t,e=await x[$(497)](),a=[];e?.[$(586)]?.forEach(x=>{let t=$;S(x?.[t(586)]?.id)||a[t(465)]({...x[t(586)],collections:x[t(915)],variants_quantity:x[t(558)]})});let i=x_(a);xb(i)})[t(502)](x=>{console.error(x)})},xm=async x=>{let t=$,e=[];for(let[a,i]of x.entries())S(FGSECOMAPP[t(953)][i]?.info)&&e[t(465)](i),20===e.length&&(await xh([...e]),e=[]),a===x[t(455)]-1&&e[t(455)]>0&&(await xh([...e]),e=[])},x3=()=>{let x=xp(),t=x_();xb(t),xm(x)[$(786)]()},x2=()=>{let x=$;Shopify?.[x(459)]&&document[x(672)]("change",function(){let $=x,t=new URL(document[$(656)]),e=parseInt(t[$(678)].get($(756)));xy(isNaN(e)?void 0:e)})},xy=x=>{let t=$;if(!location.href[t(1001)](t(507)))return;document[t(596)](t(608))?.remove(),document[t(596)]("#sca-gift-thumbnail")?.[t(902)]();let e=x_();if(S(e))return;let a=location[t(654)][t(765)]("/"),i=a?.[t(623)](t(586)),r=decodeURI(i>=0?a[i+1]??null:null);if(!Object.keys(e)?.[t(1001)](r))return;let c=e[r],o=FGSECOMAPP.productsInPage[r]?.[t(451)]??{},s=Object.keys(o),n=!0;Shopify?.enable_check_variants_has_gift&&(S(x)||s[t(1001)](""+x)||(n=!1),!S(x)||S(Shopify?.[t(832)]?.[t(388)])||s.includes(Shopify?.[t(832)]?.current_variant?.id?.[t(867)]())||(n=!1),c=o[x??Shopify?.current_product?.[t(388)]?.id]??[]),document.dispatchEvent(new CustomEvent(FGSECOMAPP[t(802)].PRODUCT_HAS_GIFTS,{detail:{icon:FGSECOMAPP[t(565)][t(531)],gifts:xv(c),product:{handle:r,variant:x??Shopify?.current_product?.[t(388)]?.id}}})),n&&(xg(c),xu(c))};FGSECOMAPP[$(1024)]=x=>{let e=$;try{if(!FGSECOMAPP[e(585)][e(484)])return;S(x)&&(x=[...FGSECOMAPP[e(751)]]);let a=location.href[e(1001)]("/cart"),i=[];if(x?.[e(930)](x=>{let $=e;x.isReachConditions||S(x[$(698)])||!S(FGSECOMAPP[$(362)])&&!x[$(646)]&&x.priority>FGSECOMAPP[$(362)]||S((x.count_down_value??0)+(x[$(987)]??0))&&/({{sca_min_total}})|({{sca_min_quantity}})/gm[$(634)](x[$(698)])||i[$(465)]({value:x[$(698)].replaceAll("{{sca_min_total}}",x[$(1015)]?.[$(412)](Shopify?.[$(1019)]??2))[$(919)]($(393),x[$(987)]),offer_root:x[$(753)]})}),document[e(881)](new CustomEvent(FGSECOMAPP[e(802)][e(779)],{detail:{data:i}})),S(i)){document[e(517)](".sca-promotion-message-layout")[e(930)](x=>x[e(738)]="");return}let r=document.querySelector(t[e(379)])?.innerHTML??t[e(966)],c=i[e(714)](x=>r.replaceAll(/{{\s*fg_cart_message\s*}}/gm,m(h(x[e(491)],e(490)+x.offer_root)))).join(""),o=document[e(596)](t[e(356)])?.innerHTML??t[e(464)],s=o.replaceAll(/{{\s*sca_fg_cart_message_items_section\s*}}/gm,c),{cart_message_query:n}=FGSECOMAPP.QUERY_SELECTOR,f=document[e(596)]([...n?.[e(829)]][e(500)](Boolean)[e(812)](",")),l=document[e(517)]([...n?.[e(875)],...n?.[e(665)]][e(500)](Boolean)[e(812)](",")),d=document[e(517)](".sca-promotion-message-layout");S(d)||d[e(930)](x=>x.innerHTML=s),(d=document[e(401)](e(358)))[e(846)]("id",e(538)),d[e(671)][e(701)](e(538));let _=new DOMParser()[e(598)](s,e(569));d[e(738)]=_[e(934)][e(738)],S(l)||l?.[e(930)](x=>{let $=e;if(x.querySelector($(963)))return;let t=d[$(899)](!0);x.prepend(t)}),!f?.[e(596)](e(963))&&(_=new DOMParser()[e(598)](s,e(569)),d[e(738)]=_.body[e(738)],f&&a&&f[e(845)](d));try{document.querySelectorAll(e(704))[e(930)](x=>{let $=new Glider(x);((x,$)=>{let t=_0x1ccc,e=x.track[t(944)],a=null,i=1;function r(){a=setTimeout(()=>{let $=_0x1ccc;i>=e&&(i=0),x[$(732)](i++)},$)}x[t(835)][t(672)](t(371),function(){window.clearInterval(a),r()}),r()})($,Shopify?.[e(655)]??3e3)})}catch(g){console.error(g)}}catch(u){console[e(851)](u)}};let x5=async()=>{let x=$;try{let t=await i(x(970)),e=await t[x(497)]();FGSECOMAPP.customerLocation=e?.[x(956)]}catch(a){console[x(367)](x(752))}},xv=x=>x?.map(x=>{let $=_0x1ccc;return{id:x[$(800)],title:C(x[$(841)],x[$(626)]),handle:x[$(446)],thumbnail:x.thumbnail,belongs_to_offer:x.belongs_to_offer,variants:x[$(949)].map(x=>{let t=$;return{id:x[t(821)],title:x[t(626)],price:O(x[t(968)]),original_price:O(x.original_price),thumbnail:x[t(657)],discount_type:x[t(854)],discount_value:x[t(381)]}})}})??[],x6=()=>{let x=$;if(!FGSECOMAPP[x(562)]?.[x(927)]?.[x(557)]||!FGSECOMAPP[x(751)].length)return;let e=document.querySelector("#sca-fg-today-offer-widget"),a=document.querySelector(x(792));if(!e||!a)return;let i=document.querySelector(t[x(434)])?.[x(738)]??t[x(1013)],r=document[x(596)](t.TODAY_OFFER_ITEM_SECTION_ID)?.[x(738)]??t.TODAY_OFFER_ITEM_SECTION,c=document[x(596)](t[x(740)])?.innerHTML??t.TODAY_OFFER_WIDGET,o={};FGSECOMAPP[x(751)][x(930)]($=>{let t=x;o[$[t(753)]]=$});let s=Object.values(o);s[x(952)](($,t)=>{let e=x;return new Date($[e(719)])-new Date(t[e(719)])}),e[x(738)]=c[x(919)](/{{\s*sca_fg_today_offer_widget\s*}}/gm,m(FGSECOMAPP[x(562)][x(510)])),FGSECOMAPP[x(562)]?.[x(927)][x(650)]===x(796)&&(e[x(671)].add(x(1021)),a.classList.add(x(795))),FGSECOMAPP[x(562)]?.[x(927)].widget_position===x(521)&&(e.classList[x(701)](x(865)),a[x(671)][x(701)]("sca-today-offer-right")),a[x(738)]=i[x(919)](/{{\s*sca_fg_today_offer_title\s*}}/gm,m(h(FGSECOMAPP[x(562)].widget_info[x(526)]??x(504),"customize.widget_title")))[x(919)](/{{\s*sca_fg_today_offer_subtitle\s*}}/gm,m(h(FGSECOMAPP[x(562)].widget_info.widget_subtitle??"Claim these exclusive offers today",x(610)))),document[x(596)](x(814)).innerHTML=s[x(714)]($=>r[x(919)](/{{\s*sca_fg_offer_id\s*}}/gm,m($[x(753)])).replaceAll(/{{\s*sca_fg_offer_title\s*}}/gm,m(h($[x(900)],x(516)+$[x(753)]))).replaceAll(/{{\s*sca_fg_offer_title_tooltip\s*}}/gm,m(h($[x(900)],x(516)+$[x(753)])))[x(919)](/{{\s*sca_fg_offer_img\s*}}/gm,m($.gift_products[0][x(657)],!0)))[x(812)]("\n"),document.querySelector(x(849)).innerHTML=s[x(455)][x(867)](),document[x(596)](x(858)).addEventListener(x(748),()=>{let $=x,t=document[$(596)]($(792));t?.[$(671)][$(820)]($(921))}),document.querySelector("#sca-fg-today-offer-widget")[x(672)](x(748),()=>{let $=x,t=document[$(596)]("#sca-fg-today-offer-iframe");t?.[$(671)][$(820)]($(921))}),document[x(881)](new CustomEvent(FGSECOMAPP[x(802)][x(697)],{detail:{todayOffers:s[x(714)]($=>{let t=x,e=fgData[t(751)].find(x=>x.id[t(867)]()===$[t(753)]);return{id:e.id,title:e[t(626)],gifts:xv(e[t(951)])}})}})),x7();let n=($,t,e)=>{let a=x,i=document.createElement("p");i.className=a(733),i[a(629)]=$,document[a(934)][a(599)](i),i[a(467)][a(482)]=e+"px",i[a(467)][a(1025)]=t+"px",i[a(467)].display=a(960)},f=()=>{let $=x,t=document[$(596)]($(972));t&&t[$(577)].removeChild(t)},l=$=>{let t=x,e=document[t(596)](t(972));e&&(e.style[t(482)]=$.pageY+"px",e[t(467)][t(1025)]=$[t(543)]+5+"px")},d=document[x(517)](x(805));d[x(930)](function($){let t=x;$[t(672)](t(357),function(x){let e=t,a=$[e(940)](e(825));n(a,x[e(543)]+5,x[e(546)]+5)}),$.addEventListener(t(918),function(){f()}),$[t(672)]("mousemove",l)})},x7=()=>{let x=$,t=[...new Set(FGSECOMAPP.offers?.[x(500)]($=>$[x(646)])?.[x(714)]($=>$[x(753)]))];document[x(881)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[x(723)],{detail:{idOffersSuccess:t}}));let e=document[x(517)](x(995));e[x(930)]($=>{let e=x;t[e(1001)]($.getAttribute(e(387)))?$[e(671)][e(701)](e(438)):$[e(671)][e(902)](e(438))})},x4=function(){let x=$;try{document[x(672)](FGSECOMAPP.CUSTOM_EVENTS.GIFT_UPDATED,async()=>{let $=x;try{window.unicart&&(unicart[$(881)]($(363)),console[$(367)]($(627)))}catch(t){console.error($(627),t)}try{window[$(687)]&&(await window.prepareDataForDisplayWidgetByRule(),console[$(367)]($(706)))}catch(e){console[$(851)]("iCart",e)}try{window[$(593)]?.[$(886)]?.[$(548)]&&window[$(593)][$(886)][$(548)]()}catch(a){console[$(851)]("Rebuy",a)}try{window[$(533)]&&(await xr($(394)).then(x=>{let t=$;window[t(533)](x),window[t(529)]()}),console[$(367)]($(534)))}catch(i){console[$(851)]("SLIDECART - HQ",i)}try{let r=document[$(596)]("#upCartStickyButton .upcart-sticky-cart-quantity-icon-text");window[$(561)]&&(await window.upcartRegisterAddToCart(),console[$(367)]($(781)),r&&(r[$(738)]=FGSECOMAPP?.[$(838)]?.[$(962)]??0))}catch(c){console[$(851)]($(781),c)}try{window.STICKY_CART_UPDATE&&(await window[$(871)](),window[$(559)](),console[$(367)]($(826)))}catch(o){console.error($(826),o)}try{window?.[$(416)]?.[$(528)]?.[$(831)]?.openSlider&&(await window.SATCB.Widgets[$(831)][$(425)](),console.log("Sticky Cart - Codeinero"))}catch(s){console[$(851)]($(869),s)}try{window.monster_refresh&&(await window[$(602)](),window.openCart(),console[$(367)]($(532)))}catch(n){console[$(851)]($(532),n)}try{window[$(421)]&&await (window[$(421)](),window[$(539)](),console[$(367)]($(636)))}catch(f){console[$(851)]($(532),f)}try{let l=document[$(596)]("m-cart-drawer"),d=document.querySelector($(443));window[$(743)]&&l&&(await l?.[$(520)](!window[$(737)]?.[$(472)]),l?.[$(348)]()),window[$(759)]&&d&&(await d?.[$(690)](),d?.[$(661)]?.[$(911)]())}catch(_){console[$(851)]($(519),_)}try{window[$(702)]&&await (CartJS?.[$(679)](),console[$(367)]($(579)))}catch(g){console.error($(579),g)}}),window[x(672)](x(509),function($){let t=x;FGSECOMAPP[t(1024)](),FGSECOMAPP[t(537)]()}),document[x(672)]("rebuy:smartcart.show",$=>{let t=x;FGSECOMAPP[t(1024)](),FGSECOMAPP[t(537)]()}),window.SLIDECART_OPENED=function(){let $=x;FGSECOMAPP[$(1024)](),FGSECOMAPP[$(537)]()},window[x(745)]=()=>{let $=x;FGSECOMAPP[$(1024)](),FGSECOMAPP[$(537)]()},window.MinimogEvents?.[x(770)]&&window[x(638)][x(770)](window[x(743)]?.[x(791)]?.[x(396)]??x(349),function(){let $=x;FGSECOMAPP[$(1024)](),FGSECOMAPP[$(537)]()}),document.addEventListener(FGSECOMAPP.CUSTOM_EVENTS[x(436)],()=>{let $=x;try{typeof window[$(667)]===$(624)&&window[$(667)](),typeof window[$(860)]===$(624)&&window[$(860)](),typeof window[$(575)]===$(624)&&window[$(575)](),document[$(596)]($(609))?.[$(748)]()}catch(t){console.error(t)}}),document[x(672)](FGSECOMAPP[x(802)][x(926)],()=>{let $=x;try{!document[$(596)]($(653))&&window[$(561)]&&window[$(561)]()}catch(t){console[$(851)](t)}})}catch(t){console[x(851)](t)}};x0(FGSECOMAPP.cartItems)[$(786)](()=>{x4()})}();