window.fgData={"offers":[{"id":24443,"shop_id":2980,"offer_name":"1 huile achet\u00e9e=1 gua sha offert","offer_description":null,"promotion_message":null,"start_time":"2024-01-23T03:42:03.000000Z","end_time":null,"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 Gua Sha French Glow (100% off)","original_product_handle":"gua-sha-french-glow","clone_product_handle":"gua-sha-french-glow-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/products\/GUASHAFRENCHGLOW.jpg?v=1647425027","product_shopify_id":8999110213959,"original_product_shopify_id":6629776064565,"variants":[{"id":140683,"gift_product_id":55831,"discount_type":"percentage","discount_value":100,"original_price":19,"original_compare_at_price":0,"original_product_shopify_id":6629776064565,"original_variant_shopify_id":39717004738613,"price":0,"product_shopify_id":8999110213959,"variant_shopify_id":48994084618567,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/products\/GUASHAFRENCHGLOW.jpg?v=1647425027","pivot":{"offer_id":24443,"gift_item_id":140683},"gift_product":{"id":55831,"shop_id":2980,"title":"\u00bb Gua Sha French Glow (100% off)","original_product_handle":"gua-sha-french-glow","clone_product_handle":"gua-sha-french-glow-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/products\/GUASHAFRENCHGLOW.jpg?v=1647425027","product_shopify_id":8999110213959,"original_product_shopify_id":6629776064565,"created_at":"2024-01-23T03:54:28.000000Z","updated_at":"2024-01-23T03:54:28.000000Z"}}]}],"offer_conditions":[{"id":25625,"offer_id":24443,"is_multiply":true,"min_amount":"1.00","max_amount":null,"product_narrow":[{"type":"variants_ids","value":{"6622464114741":{"id":6622464114741,"image":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/avgfz-098ap.webp?v=1697699138","title":"L'Huile des Cimes","handle":"huile-seche-visage-miel","status":"ACTIVE","vendor":"Exertier tr\u00e9sor des alpes","variant":[{"id":39689166159925,"image":null,"price":"49.00","title":"Default Title"}],"product_tag":["Le Miracle du Miel","Produits Stars"],"product_type":"Huile s\u00e8che visage","total_variants":1,"variant_last_cursor":"eyJsYXN0X2lkIjozOTY4OTE2NjE1OTkyNSwibGFzdF92YWx1ZSI6IjEifQ=="}},"filter_option":"include"}],"unit":"number_of_products"}],"gift_items":[{"id":140683,"gift_product_id":55831,"discount_type":"percentage","discount_value":100,"original_price":19,"original_compare_at_price":0,"original_product_shopify_id":6629776064565,"original_variant_shopify_id":39717004738613,"price":0,"product_shopify_id":8999110213959,"variant_shopify_id":48994084618567,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/products\/GUASHAFRENCHGLOW.jpg?v=1647425027","pivot":{"offer_id":24443,"gift_item_id":140683},"gift_product":{"id":55831,"shop_id":2980,"title":"\u00bb Gua Sha French Glow (100% off)","original_product_handle":"gua-sha-french-glow","clone_product_handle":"gua-sha-french-glow-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/products\/GUASHAFRENCHGLOW.jpg?v=1647425027","product_shopify_id":8999110213959,"original_product_shopify_id":6629776064565,"created_at":"2024-01-23T03:54:28.000000Z","updated_at":"2024-01-23T03:54:28.000000Z"}}]},{"id":24467,"shop_id":2980,"offer_name":"\u00e9chantillon cr\u00e8me de soin offert x 3","offer_description":null,"promotion_message":"Echantillons de cr\u00e8me de soin offerts pour toute commande.","start_time":"2024-01-23T09:48:10.000000Z","end_time":null,"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":true,"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 Echantillon Cr\u00e8me de Soin x 3 (9 ml) (100% off)","original_product_handle":"echantillon-creme-de-soin","clone_product_handle":"echantillon-creme-de-soin-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86.png?v=1706001901","product_shopify_id":8999306232135,"original_product_shopify_id":8999279001927,"variants":[{"id":140725,"gift_product_id":55863,"discount_type":"percentage","discount_value":100,"original_price":5,"original_compare_at_price":null,"original_product_shopify_id":8999279001927,"original_variant_shopify_id":48994579677511,"price":0,"product_shopify_id":8999306232135,"variant_shopify_id":48994694988103,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86.png?v=1706001901","pivot":{"offer_id":24467,"gift_item_id":140725},"gift_product":{"id":55863,"shop_id":2980,"title":"\u00bb Echantillon Cr\u00e8me de Soin x 3 (9 ml) (100% off)","original_product_handle":"echantillon-creme-de-soin","clone_product_handle":"echantillon-creme-de-soin-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86.png?v=1706001901","product_shopify_id":8999306232135,"original_product_shopify_id":8999279001927,"created_at":"2024-01-23T09:55:00.000000Z","updated_at":"2024-01-23T09:55:00.000000Z"}}]}],"offer_conditions":[{"id":25649,"offer_id":24467,"is_multiply":null,"min_amount":"1.00","max_amount":"2.00","product_narrow":[],"unit":"number_of_products"}],"gift_items":[{"id":140725,"gift_product_id":55863,"discount_type":"percentage","discount_value":100,"original_price":5,"original_compare_at_price":null,"original_product_shopify_id":8999279001927,"original_variant_shopify_id":48994579677511,"price":0,"product_shopify_id":8999306232135,"variant_shopify_id":48994694988103,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86.png?v=1706001901","pivot":{"offer_id":24467,"gift_item_id":140725},"gift_product":{"id":55863,"shop_id":2980,"title":"\u00bb Echantillon Cr\u00e8me de Soin x 3 (9 ml) (100% off)","original_product_handle":"echantillon-creme-de-soin","clone_product_handle":"echantillon-creme-de-soin-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86.png?v=1706001901","product_shopify_id":8999306232135,"original_product_shopify_id":8999279001927,"created_at":"2024-01-23T09:55:00.000000Z","updated_at":"2024-01-23T09:55:00.000000Z"}}]},{"id":24472,"shop_id":2980,"offer_name":"\u00e9chantillon cr\u00e8me de soin offert x 6","offer_description":null,"promotion_message":"Echantillons de cr\u00e8me de soin offerts pour toute commande.","start_time":"2024-01-23T10:05:22.000000Z","end_time":null,"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":true,"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 Echantillon Cr\u00e8me de Soin x 6 (18 ml) (100% off)","original_product_handle":"echantillon-creme-de-soin-x-6-18-ml","clone_product_handle":"echantillon-creme-de-soin-x-6-18-ml-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86_7ec07b8a-2b7e-4f34-8491-f5e33bc54e4b.png?v=1706002168","product_shopify_id":8999321108807,"original_product_shopify_id":8999287718215,"variants":[{"id":140736,"gift_product_id":55870,"discount_type":"percentage","discount_value":100,"original_price":9,"original_compare_at_price":null,"original_product_shopify_id":8999287718215,"original_variant_shopify_id":48994635546951,"price":0,"product_shopify_id":8999321108807,"variant_shopify_id":48994752069959,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86_7ec07b8a-2b7e-4f34-8491-f5e33bc54e4b.png?v=1706002168","pivot":{"offer_id":24472,"gift_item_id":140736},"gift_product":{"id":55870,"shop_id":2980,"title":"\u00bb Echantillon Cr\u00e8me de Soin x 6 (18 ml) (100% off)","original_product_handle":"echantillon-creme-de-soin-x-6-18-ml","clone_product_handle":"echantillon-creme-de-soin-x-6-18-ml-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86_7ec07b8a-2b7e-4f34-8491-f5e33bc54e4b.png?v=1706002168","product_shopify_id":8999321108807,"original_product_shopify_id":8999287718215,"created_at":"2024-01-23T10:07:45.000000Z","updated_at":"2024-01-23T10:07:45.000000Z"}}]}],"offer_conditions":[{"id":25655,"offer_id":24472,"is_multiply":null,"min_amount":"3.00","max_amount":"4.00","product_narrow":[],"unit":"number_of_products"}],"gift_items":[{"id":140736,"gift_product_id":55870,"discount_type":"percentage","discount_value":100,"original_price":9,"original_compare_at_price":null,"original_product_shopify_id":8999287718215,"original_variant_shopify_id":48994635546951,"price":0,"product_shopify_id":8999321108807,"variant_shopify_id":48994752069959,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86_7ec07b8a-2b7e-4f34-8491-f5e33bc54e4b.png?v=1706002168","pivot":{"offer_id":24472,"gift_item_id":140736},"gift_product":{"id":55870,"shop_id":2980,"title":"\u00bb Echantillon Cr\u00e8me de Soin x 6 (18 ml) (100% off)","original_product_handle":"echantillon-creme-de-soin-x-6-18-ml","clone_product_handle":"echantillon-creme-de-soin-x-6-18-ml-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86_7ec07b8a-2b7e-4f34-8491-f5e33bc54e4b.png?v=1706002168","product_shopify_id":8999321108807,"original_product_shopify_id":8999287718215,"created_at":"2024-01-23T10:07:45.000000Z","updated_at":"2024-01-23T10:07:45.000000Z"}}]},{"id":24474,"shop_id":2980,"offer_name":"\u00e9chantillon cr\u00e8me de soin offert x 9","offer_description":null,"promotion_message":"Echantillons de cr\u00e8me de soin offerts pour toute commande.","start_time":"2024-01-23T10:07:47.000000Z","end_time":null,"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":true,"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 Echantillon Cr\u00e8me de Soin x 9 (27 ml) (100% off)","original_product_handle":"echantillon-creme-de-soin-x-9-27-ml","clone_product_handle":"echantillon-creme-de-soin-x-9-27-ml-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86_ec73838d-6a75-43ec-906a-a0142ba1a566.png?v=1706002328","product_shopify_id":8999323173191,"original_product_shopify_id":8999289028935,"variants":[{"id":140738,"gift_product_id":55872,"discount_type":"percentage","discount_value":100,"original_price":13,"original_compare_at_price":null,"original_product_shopify_id":8999289028935,"original_variant_shopify_id":48994638430535,"price":0,"product_shopify_id":8999323173191,"variant_shopify_id":48994760589639,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86_ec73838d-6a75-43ec-906a-a0142ba1a566.png?v=1706002328","pivot":{"offer_id":24474,"gift_item_id":140738},"gift_product":{"id":55872,"shop_id":2980,"title":"\u00bb Echantillon Cr\u00e8me de Soin x 9 (27 ml) (100% off)","original_product_handle":"echantillon-creme-de-soin-x-9-27-ml","clone_product_handle":"echantillon-creme-de-soin-x-9-27-ml-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86_ec73838d-6a75-43ec-906a-a0142ba1a566.png?v=1706002328","product_shopify_id":8999323173191,"original_product_shopify_id":8999289028935,"created_at":"2024-01-23T10:09:17.000000Z","updated_at":"2024-01-23T10:09:17.000000Z"}}]}],"offer_conditions":[{"id":25657,"offer_id":24474,"is_multiply":null,"min_amount":"5.00","max_amount":null,"product_narrow":[],"unit":"number_of_products"}],"gift_items":[{"id":140738,"gift_product_id":55872,"discount_type":"percentage","discount_value":100,"original_price":13,"original_compare_at_price":null,"original_product_shopify_id":8999289028935,"original_variant_shopify_id":48994638430535,"price":0,"product_shopify_id":8999323173191,"variant_shopify_id":48994760589639,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86_ec73838d-6a75-43ec-906a-a0142ba1a566.png?v=1706002328","pivot":{"offer_id":24474,"gift_item_id":140738},"gift_product":{"id":55872,"shop_id":2980,"title":"\u00bb Echantillon Cr\u00e8me de Soin x 9 (27 ml) (100% off)","original_product_handle":"echantillon-creme-de-soin-x-9-27-ml","clone_product_handle":"echantillon-creme-de-soin-x-9-27-ml-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0255\/1080\/5557\/files\/Rectangle86_ec73838d-6a75-43ec-906a-a0142ba1a566.png?v=1706002328","product_shopify_id":8999323173191,"original_product_shopify_id":8999289028935,"created_at":"2024-01-23T10:09:17.000000Z","updated_at":"2024-01-23T10:09:17.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":true,"using_draft_order":false,"delete_gift_after_turn_off_offer":true,"gift_format":"same_as_original_product_suffix","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":"#7367f0"},"others":{"hidden_brand_mark":false},"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":false,"size":"50"},"gift_thumbnail":{"status":false,"size":"100","title":"Free Gift"}},"collection_page":{"status":false,"size":"50"}},"promotion_message":{"show_on_cart_page":true,"text_color":"#ffffff","background_color":"#F72119"}}};/* END_FG_DATA */ const _0x3932a3=_0x2a75;function _0x2a75($,x){let t=_0x3bd9();return(_0x2a75=function($,x){return t[$-=420]})($,x)}if(!function($,x){let t=_0x2a75,e=$();for(;;)try{let a=-parseInt(t(425))/1*(-parseInt(t(914))/2)+parseInt(t(744))/3*(-parseInt(t(1039))/4)+-parseInt(t(1082))/5+parseInt(t(873))/6+parseInt(t(929))/7*(parseInt(t(1108))/8)+-parseInt(t(710))/9+-parseInt(t(707))/10;if(824482===a)break;e.push(e.shift())}catch(i){e.push(e.shift())}}(_0x3bd9,824482),window.fgData?.[_0x3932a3(651)]?.[_0x3932a3(840)]?.[_0x3932a3(557)]&&"string"==typeof fgGiftIcon&&(window[_0x3932a3(654)][_0x3932a3(651)].gift_icon[_0x3932a3(557)]=fgGiftIcon),window.fgData?.appearance?.[_0x3932a3(1149)]?.[_0x3932a3(658)]&&typeof fgWidgetIconsObj!==_0x3932a3(734)){let $=window.fgData[_0x3932a3(651)][_0x3932a3(1149)][_0x3932a3(658)];window[_0x3932a3(654)][_0x3932a3(651)][_0x3932a3(1149)][_0x3932a3(955)]=fgWidgetIconsObj[$]??$}function _0x3bd9(){let $=["current_variant","gift_items","div[class*=hs-cart-drawer] .hs-site-cart-popup-layout, #MinimogCartDrawer m-cart-drawer-items, #CartDrawer > .drawer__inner","variants_has_gift","cart","product_has_icon","HS_SLIDE_CART_UPDATE","monster_refresh","redirected","enable_process_offer_loading","#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg","action","LZString","variant","freegiftProxy","SLIDECART_OPENED","stringify","checked","BOGOS track: Cannot define custom loading with type: ","sca-promotion-message-layout","_decompress","CART_MSG_SECTION_ID","appendChild","NumberFormat","BOGOS track: Unicart",".sca-offer-title","pathname","FGSECOMAPP_HIDDEN_GIFT_POPUP","fgCallback","partially_paid","childElementCount","start_time","pow","Select your free gift!","readystatechange","24LcsaPf","giftsAdded","fgIntegration","sca_fg_codes","substring","BOGOS track: Rivets Cart",'
\n \n {{ fg_product_img_alt }}\n \n
',"product_vendors","settings","clone_product_handle","offer_conditions","number_product_slider","TODAY_OFFER_SECTION","map","innerText","7IsWMJE","MinimogTheme","val","BOGOS track: others","BOGOS track: Monster Cart","#sca_fg_gift_icon_section","parse","gift_settings","variants_ids","sca_clone_checkout","add","freegifts-main-popup-container","sca_process_gifts","TODAY_OFFER_WIDGET_ID","#close-fg-toast","POST","#sca_fg_today_offer_item_section","Don't show this offer again","sca_text_notify_success","sca_price","collection_page","&sca_products_handle=",".fg-secomapp-collection-img","sca_amount_fixed",".btn-add-to-cart","#CartPopup .styles_CartPreview__card__KX-WB, #qikify-stickycart-v2-app .qsc2-drawer-wrapper > div:nth-child(2)","widget_icon_path","flat","#sca-fg-today-offer-iframe .sca-fg-body .sca-fg-offers .sca-fg-offer","Escape","thumbnail","isReachConditions","/cart/update","fetchCheckoutEvents","customize.disable_slider_text","CART_MSG_ITEM_SECTION","upcartOnCartOpened","count_down_value","add_to_cart_btn_color","invoice_url",".sca-promotion-message-layout","glider-animated","sca-fg-today-offer-widget-with-title","integration","product","sca_fg_title_product_gift_icon_query","fg-gifts:added","value","BOGOS track: conflict app override","concat","sca_cart_xhr",".freegifts-main-container .slide-container #sca-hidden-gift-popup .sca-disable-checkbox","general","mouseenter","BOGOS track: Error prepareOfferShouldBeTheSame","GIFT_THUMBNAIL_ITEMS_SECTION_ID","locale","sca-is-visible-fg","toString","data-variant",".dots-thumbnail","json","selling_plan_allocation","offer","gifts","BOGOS track: auto add gift: {","charCodeAt","#sca-gift-thumbnail","HS_SLIDE_CART_OPEN","unshift",".selected-variant","BOGOS track: Default themes","stopPropagation","dataset","enable","min_amount","position","BOGOS track: not have orders and gifts","sca-gift-icon-collection-img","max","100","PRODUCT_HAS_GIFTS",'
\n
\n {{ fg_slider_title }}\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n \n {{ sca_fg_disable_slider_section }}\n
',"padding","remove","and","openDrawer","sca_transcy_locale","cart-drawer","sca_slidecart_tcc","&sca_shop_name=",".sca-gift-icon-collection-page","240","price","cartItems","some",'a[href*="/collections/sca_fg"]',"customize.product_page_message","manual_input_inventory","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","RENDER_CART_MESSAGE","keys","variants_quantity","offer.offer_title_","parentElement","compare_gift_price","FoxKitV2","insertBefore","initLZString","start","1507752lhWfww","tool","getAttribute","Add to cart","data-img","current_product","by_variants","gift_should_the_same","customize.gift_slider_title","/cart","offer.cart_message_","test","fg-today-offer:success","headers","order_created_from","#sca_fg_today_offer_section","split","widget_position","fgAppearanceGiftSlider","(Discount)","renderPromotionMessage","SHOW_GIFT_SLIDER","gifts_id","data-fg-checkout-btn","status","then","?sca_add_gift","data-sca-fg-today-offer-title-tooltip","final_price",'
\n {{ sca_fg_cart_message_items_section }}\n
',"data-fg-offer-id","call","timeoutId","sca_fg_price","disable_async_process_fg","email","preventDefault","join","/?sections=","#fg-gift-items .dropdown","fg-xhr:open","original_variant_shopify_id","MinimogEvents","7429940MuxzQB","innerHTML","CartSlider","[data-open]","BOGOS track: Rebuy","customLoadingCheckout","TODAY_OFFER_ITEM_SECTION","sca-fg-icon-collection-page","getElementById","enable_check_variants_has_gift","object","root","formatter","sections","key","widget_title","left","sca_fg_cart_drawer_query","money","scaCountRenderEventCheckout","priority","sca_checkout_form","&width=480&height=480","total_spend_on_order_history","sca_fg_btn_gift_thumbnail_query","sca-fg-form-thumbnail-product-page","9829912NZNaZK","cart/add","number_of_order","FG_OVERRIDE_XHR_OPEN","number_gifts_thumbnail",'
  • \n {{ fg_variant_title }}\n
  • ',"shift","arrGiftsRemove","#fg-gift-thumbnail-title","backgroundColor","fromCharCode",'\n \n \n \n \n \n \n ',"/cart.js?sca_fetch&",".fg-secomapp-product-title","toggle","initializeForXHR","sca_fg_cart_icon_query","#fg-gift-items .btn-add-to-cart",'\n \n \n \n \n \n ',"offer_root","getTime","click",".icartCheckoutBtn, .rebuy-cart__checkout-button, .qsc2-checkout-button, #mu-checkout-button","FoxTheme","#sca-fg-today-offer-iframe","fg-cart:end-process","updateCart","GIFT_THUMBNAIL_SECTION","GIFT_ITEM_SECTION","sca_offers_added","subscribe","GIFT_ICON_SECTION","item_count","product_collections","reduce","GIFTS_CART_SECTION","SLIDECART_UPDATE","sub_conditions","en-US","tags","have_not_got_gift_from_this_offer","today_offer","setItem","GET","selling_plan","searchParams","fg-checkout:start","parseFromString","cart-drawer .mini-cart__inner .mini-cart__empty, cart-drawer .mini-cart__inner .mini-cart__main","pageX","32757JDjcIL","TODAY_OFFER_CHANGE","input[name='checkout'], button[name='checkout'], input[name='goto_pp'], button[name='goto_pp']","block","fg-checkout","sections_url","scaCustomLoadingCheckout","length","track","location","discount_value","BOGOS track: Error process checkout","application/json","rebuy:smartcart.show","Today offer","boolean","product_narrow","sca_add_gift","fg-messages:render","sca-today-offer-widget-left","#sca_fg_cart_message_section","GIFT_ICON_SECTION_ID","count_down_quantity","giftsAddedInvalid","sca_fetch_cart","BOGOS track: Error check cart event","fg-app:end","sca-gift-icon-img","set","isArray","#sca-fg-today-offer-widget","cal_gift_discount","end","maxWidth","#sca-fg-today-offer-iframe .sca-fg-body .sca-fg-offers","show_pagination","reload","querySelectorAll","text","GIFT_THUMBNAIL_ITEMS_SECTION","compressToEncodedURIComponent","#82868b","icon_and_title","-sca_clone_freegift","BOGOS track: Error processGiftsToCart","defineProperty","sca-gift-icon","original_compare_at_price","sca_handle_checkout","disabled_integration_Rebuy","variant_shopify_id","BOGOS track: Failed render cart message",".freegifts-main-container .glider-next","not_show_gift_if_already_on_cart","routes","FGSECOMAPP","discount_type","addGiftToCart","function","#sca_fg_gift_thumbnail_section",".satcb-cs-close","input[name='goto_gc'], button[name='goto_gc'], a[href$='checkout'], form[action='/checkout'] input[type='submit']","prepareDataForDisplayWidgetByRule","apply","CART_AUTO_UPDATED","other_products","title","#sca-fg-today-offer-widget .sca-fg-count-offers","api","-5px","T4SThemeSP","secomappGetCartRunning","startsWith","cartDrawer","END_VALIDATE_CHECKOUT","customer_tags","discounted_price","customerLocation","addEventListener","variant_title","renderProductPage","sca_locale","getToFetch","freegifts","checkout","type","data-original-price","forEach","currentTarget","specific_link_address","fg_codes","keyup","string","sca-gift-thumbnail","TODAY OFFER","removeEventListener","index","prototype","hidden_brand_mark","active ","BOGOS track: not using draft order","STICKY_CART_OPEN",".satcb-cs-checkout-btn, .hs-checkout-purchase","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-.","value_customer_tags","original_product_handle","gift_thumbnail","dispatchEvent","positions","default","class","START_VALIDATE_CHECKOUT","HS_SLIDE_CART_CLOSE","variant_id","BOGOS track: Error listening XHR send","append","#sca-gift-icon","prepend","disable_slider_checkbox",".product-item-thumbnail","TODAY_OFFER_WIDGET","50%","paid","BOGOS track: getInfoCloneProducts","renderContents","collections","free-gift-icon","customer_order_history","RENDER_TODAY_OFFER","display","fg-checkout:end","GIFT_ITEM_SECTION_ID","gift_icon_path","BOGOS track: initializeForXHR Shopify.getCart","original_product_shopify_id","BOGOS track: UpCart - AfterSell",".m-product-item, .m-product-list .swiper-slide, .f-grid .f-column","disable_override_xhr","removeItem","stopImmediatePropagation","bogos_settings_glider","hasDiscount","log","number_of_gift_can_receive","BOGOS track: Slide Cart - Heysenior","gifts_valid","price_max","START_PROCESS_CART","BOGOS track: iCart","USD","sca-today-offer-widget-right","QUERY_SELECTOR",".sca-fg-close-today-offer","button.new_checkout_button, input[value='Checkout'], input[value='Checkout'], input[value='Check out']","fg-today-offer:render","target","sca_fg_innerHTML","slice","arrOfferAdded","/cart/change","sca-show","values","quantity","URL","BOGOS track: Error recall root event checkout","sca-today-offer-right",'fg-widget-today-offer\n {{ sca-fg-title-icon-widget-content }}\n ',".dropdown-menu","cart_attributes","floor","trim","reRenderCartCustom","fgAppearancePromotionMessage","filter_option","#sca_fg_cart_section_gifts_slider","sca-fg-out-stock","className","bogos-gift","compare_gift_price_with_product","product_shopify_id","filter","unicart","icartSideCartOpenEvent",'
    \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
    ',"onCartDrawerUpdate","stop_lower_priority","CART_MSG_ITEM_SECTION_ID","fg-fetch:override","mousemove","mode_override_checkout","trigger_body","fgAppearanceGiftIcon","Cart","SLIDECART_OPEN","done","hasAttribute","none","sca_fg_value_checkout","sca-fg-form-icon-product-page","CART_MSG_SECTION","BOGOS track: auto add all gifts from {","unit","widget_icon_style","promotion_message",".freegifts-main-container .glider-prev","max_gifts_can_get","createElement","condition_result","hidden","vendor","application/json;","is-empty","BOGOS track: error draft-order","initializeForFetch","fg-cart:start-process","scaHandleConfigValue","sca-d-none","include","product_page","Widgets","160","__freegift_attributes","BOGOS track: event auto process gifts with cart","m-cart-drawer","arrGiftsData","data-template","appearance","add_cart_attributes","icon_widget_title","fgData","textContent","relative","100%","shopify_widget_icon_path","text/html","auto_add_gift",'\n
    \n Powered by\n \n BOGOS: Free Gift & Buy X get Y\n \n \n
    \n ',"charAt","application/liquid","isUpdateCart",".fg-secomapp-handle-add-to-cart","customer_locations","gift_slider","replace","TODAY_OFFER_SECTION_ID","add_to_cart_btn_title","style","END_RENDER_APP","SECOMAPP","sca_link_checkout","sca-offer-archived","ele","shop","maxOfferPriority","checkIsBlockCheckout","href","inventory_management",'a[href*="/products/"]',"BOGOS track: Close cart when show gift-sliders","d-block","is_multiply","others","indexOf","cal_gift_for_other_rules","BOGOS track: Can not fetch all body","decompressFromBase64","Free Gift","disabled","warn","product_type","openCartDrawer","every",".cc-product-list .product-block, .collection-list.grid .grid__item, .collection-grid.grid .grid__item",".original-price del","{{sca_min_quantity}}","compare_at_price","#sca_fg_disable_slider_section","/products/","mobile_app_channel","includes","#shopify-section-header #cart-icon-bubble, .shopify-section.section-header #cart-icon-bubble","sca_update_url","1005600OKkSpX",".f-product-single__title, .m-product-title",'
    {{ fg_gift_thumbnail_title }}
    \n\n
    \n
    \n
    \n {{ sca_fg_gift_thumbnail_items_section }}\n
    \n \n
    \n \xab\n \xbb\n
    \n
    \n
    \n
    ',"1530702XnDtGi","offer_name","product_id","url","compressToBase64","FG_OVERRIDE_FETCH","belongs_to_offer","sca_root_checkout","offers","SATCB","BOGOS track: SLIDECART - HQ","src","sort","Select variant","auto_add_all_gifts",".sca-fg-tooltip","sca-gift-icon-collection-page","pageY","type_customer_locations","classList","input[value='Check Out'] a.checkout-link","fg_decimal","offer_id","variantId","undefined","fg-app:start","GIFT_SELECT_SECTION_ID","clearInterval","gift_products","customer","available","current_collection","getCart","section","3YfLFqd","variants","contains","#7367f0","getItem","visibility","BOGOS track: getInfoProductsByProxy",'
    \n \n \n
    ',"number_of_products","BOGOS track: failed to parse cart section","tabindex","BOGOS track: T4SThemeSP","size","#sca_fg_gift_thumbnail_items_section","#fg-gift-items .dropdown > .dropdown-menu > li","items","body","BOGOS track: Error checkAutoAddGift","get","bottom_right","handle","Rebuy","now",".f\\:featured-collection .f\\:featured-collection-block .f\\:column","SECOMAPP_FREEGIFT","#secomapp_freegifts_version","total_spent_on_last_order","stop_offer","sca-hide","push","} {","START_RENDER_APP",".btn-add-to-cart.sca-fg-out-stock","height","productsByID","fgAppearanceTodayOffer","clone_checkout","replaceAll","#fg-gift-items","BOGOS track: variant auto add gift {","error","TODAY_OFFER_ITEM_SECTION_ID","products","removeAttribute","__bogos_tracking","60%","===","freegifts-main-page-container","setAttribute","CUSTOM_EVENTS","isSameNode","XMLHttpRequest","querySelector","data-offer","_compress","number","DISABLE_SLIDER_SECTION","discounts","args","open","fgAppearance","removeChild",".icart-inner .icartContain, .rebuy-cart__flyout-body, #slidecarthq .slidecarthq","customGiftImgSize","productsInPage","cart-drawer-items","sca_fg_form_checkbox_button_query","gift_img_size","catch","value_customer_locations","/cart/add.js","focus","entries","fetchCart","product_types","GIFT_UPDATED","hide","upcartRegisterAddToCart","mouseleave","flex","#MainContent, #mainContent, #main, .main-content","#upCartStickyButton .upcart-sticky-cart-quantity-icon-text","fetch","BOGOS track: Slide Cart - qikify","subscription_products","max_amount","closeCart","Add gift to cart successfully!","sections_cart","BOGOS track: event add gift to cart from popup","original_price","fgSettings","active","sync_quantity","div","#sca_fg_section_gift_item","gift_icon","GIFT_THUMBNAIL_SECTION_ID","parentNode","time","Loading...","customize.widget_icon_title","currency","opacity","show_on_cart_page","widget_info","top","do_not_add_freegift_attribute","/cart/add","BOGOS track: Failed check products have customize","drawer-component#Drawer-Cart cart-drawer","END_PROCESS_CART","&data_checkout=",'

    \n {{ fg_cart_message }}\n

    ',"right","isDelayShowAdded","fg-gifts:gift-icon",".gift-original-url","hasOwnProperty","select_one_gift_price","width","info","#fg-gift-thumbnail-title .glider-prev",".sca-promotion-glider","SHOPIFY_CART","cal_gift_price","Shopify.getCart","SLIDECART_CLOSE","DISABLE_SLIDER_SECTION_ID","8017338PAUaaL","giftsAvailable","is_only","condition_relationship","find","send"];return(_0x3bd9=function(){return $})()}!function $(){let x=_0x3932a3;window[x(480)]=window.FGSECOMAPP||{},window[x(673)]=window[x(673)]||{freegiftProxy:"/apps/secomapp_freegifts_get_order?ver=3.0"},FGSECOMAPP.maxOfferPriority=null,FGSECOMAPP.cartItems=Object[x(586)](Shopify?.[x(1023)]??{}),FGSECOMAPP.offers=[],FGSECOMAPP[x(835)]=window[x(654)]?.[x(922)]??{},FGSECOMAPP[x(804)]=window[x(654)]?.appearance??{},FGSECOMAPP.fgIntegration=window[x(654)]?.integration??{},FGSECOMAPP.fgAppearanceGiftSlider=FGSECOMAPP.fgAppearance?.gift_slider?.[x(981)],FGSECOMAPP[x(616)]=FGSECOMAPP[x(804)]?.gift_icon,FGSECOMAPP[x(597)]=FGSECOMAPP[x(804)]?.promotion_message,FGSECOMAPP[x(779)]=FGSECOMAPP[x(804)]?.[x(1149)],FGSECOMAPP[x(907)]=[],FGSECOMAPP.secomappGetCartRunning=!1,FGSECOMAPP.arrOfferAdded=[],FGSECOMAPP[x(1101)]=0,FGSECOMAPP[x(679)]=!1,FGSECOMAPP[x(640)]={...Shopify?.scaHandleConfigValue},FGSECOMAPP[x(596)]=Shopify?.[x(596)]??void 0,FGSECOMAPP[x(431)]=Shopify?.[x(431)]??void 0,FGSECOMAPP[x(808)]={},FGSECOMAPP.productsByID={},FGSECOMAPP.hasDoneProcessCheckout=!1,FGSECOMAPP[x(832)]={},FGSECOMAPP[x(664)]=!1,FGSECOMAPP[x(868)]={},FGSECOMAPP[x(948)]=Shopify?.[x(1072)]??x(501),FGSECOMAPP.gifts_id=[],FGSECOMAPP.CUSTOM_EVENTS={SHOW_GIFT_SLIDER:"fg-gifts:show-slider",PRODUCT_HAS_GIFTS:x(860),GIFT_UPDATED:"fg-gifts:updated",GIFT_ADDED:x(975),CART_AUTO_UPDATED:"fg-cart:auto-updated",START_PROCESS_CART:x(639),END_PROCESS_CART:x(1133),START_VALIDATE_CHECKOUT:x(421),END_VALIDATE_CHECKOUT:x(555),START_RENDER_APP:x(735),END_RENDER_APP:x(451),FG_OVERRIDE_FETCH:x(612),FG_OVERRIDE_XHR_OPEN:x(1079),FG_OVERRIDE_XHR_SEND:"fg-xhr:send",RENDER_TODAY_OFFER:x(579),TODAY_OFFER_CHANGE:x(1051),RENDER_CART_MESSAGE:x(443)};let t={GIFTS_CART_SECTION_ID:x(599),GIFTS_CART_SECTION:x(1011),GIFTS_POPUP_SECTION_ID:"#sca_fg_section_gifts_popup",GIFTS_POPUP_SECTION:x(608),GIFT_ITEM_SECTION_ID:x(839),GIFT_ITEM_SECTION:'
    \n
    \n \n
    \n
    \n \n {{ fg_original_price }}\n \n {{ fg_gift_price }}\n
    \n \n \n \n \n
    \n
    \n
    ',GIFT_SELECT_SECTION_ID:"#sca_fg_variant_select_section",GIFT_SELECT_SECTION:x(1113),DISABLE_SLIDER_SECTION_ID:x(701),DISABLE_SLIDER_SECTION:x(751),CART_MSG_SECTION_ID:x(445),CART_MSG_SECTION:x(1068),CART_MSG_ITEM_SECTION_ID:"#sca_fg_cart_message_items_section",CART_MSG_ITEM_SECTION:x(857),GIFT_THUMBNAIL_SECTION_ID:x(484),GIFT_THUMBNAIL_SECTION:x(709),GIFT_THUMBNAIL_ITEMS_SECTION_ID:x(757),GIFT_THUMBNAIL_ITEMS_SECTION:x(920),GIFT_ICON_SECTION_ID:x(934),GIFT_ICON_SECTION:'{{ fg_gift_icon_alt }}',TODAY_OFFER_SECTION_ID:x(1054),TODAY_OFFER_SECTION:'
    \n
    \n
    \n {{ sca_fg_today_offer_title }}\n \n \n \n \n \n \n
    \n {{ sca_fg_today_offer_subtitle }}\n
    \n \n
    \n
    \n \n
    \n
    \n \n {{ sca_fg_today_offer_footer }}\n
    ',TODAY_OFFER_ITEM_SECTION_ID:x(945),TODAY_OFFER_ITEM_SECTION:'
    \n
    \n \n {{ sca_fg_offer_title }} \n
    \n \n \n \n \n \n \n
    ',TODAY_OFFER_WIDGET_ID:"#sca_fg_today_offer_widget",TODAY_OFFER_WIDGET:x(591)},e=()=>{let $=x,t=FGSECOMAPP[$(804)]?.[$(667)],e=t?.[$(686)]?.hidden_brand_mark,a=!C(t)&&void 0!==e&&!e;return a?$(661):""},a=()=>{let $=x,t=FGSECOMAPP[$(804)]?.[$(667)],e=t?.[$(686)]?.[$(523)],a=!C(t)&&void 0!==e&&!e;return a?'\n \n ':""},i=()=>{let $=x,e=FGSECOMAPP.fgAppearance?.[$(667)],a=e?.disable_slider_checkbox??{};document[$(796)]($(980))?.[$(896)]&&localStorage[$(1150)]($(906),""+Date[$(766)]());let i=document.querySelector(t[$(872)])?.[$(1083)]??t[$(800)];return a?.[$(1003)]?i.replaceAll(/{{\s*fg_text_disable_slider\s*}}/gm,y(h(a[$(463)]??$(946),$(963)))):""},{fetch:r}=window;FGSECOMAPP[x(638)]=()=>{let $=x;document.querySelector("#secomapp_freegifts_version")?.[$(1041)]($(650))!==$(429)&&(window[$(826)]=async(...x)=>{let t=$;try{let e=x[0];if(!(e?.[t(704)](t(852))||e?.[t(704)](t(584))||e?.[t(704)](t(961))))return setTimeout(function(){$3()},1e3),await r(...x);{let a=e?.includes(t(852)),i=e?.includes(t(584))||e?.[t(704)](t(961)),c=n(x[1]),o=200,s=null,f=await r(...x)[t(1064)]($=>{let x=t;return(s=$,o=$[x(1063)],$[x(887)])?$:$.json()})[t(812)]($=>{console.error("BOGOS track: error fetch override",$)});if(document.dispatchEvent(new CustomEvent(FGSECOMAPP[t(793)][t(715)],{detail:{args:x,response:s}})),a&&x[1][t(1052)]?.sca_add_gift&&200!==o){let l=JSON.parse(x[1][t(760)])?.id,g=document[t(796)]('.btn-add-to-cart[data-variant="'+l+'"]');g.innerText="Out of stock",g[t(729)].contains(t(600))||g[t(729)][t(939)](t(600)),g[t(692)]=!0,g.style[t(1012)]="",g[t(671)][t(1117)]=t(466),document[t(462)](t(953)).forEach($=>{let x=t;parseInt($[x(1041)](x(988)))===l||$[x(729)][x(746)]("sca-fg-out-stock")||($[x(692)]=!1,$[x(671)][x(1117)]=FGSECOMAPP[x(804)]?.[x(667)]?.color?.[x(967)]??x(747))})}if(200!==o&&(a&&x[1][t(1052)]?.[t(442)]||i&&x[1][t(1052)]?.sca_process_gifts))return d(f,s);if(Shopify?.[t(1073)])return $d([e,...x.slice(1)])[t(1064)](),d(f,s);if(await $d([e,...x[t(582)](1)]),i&&x[1]?.[t(1052)]?.[t(941)])return d(f,s);let _=i?FGSECOMAPP[t(868)]??f??{}:f;return await u(x,c,f,_),d(_,s)}}catch(p){return await r(...x)}})};let c=window.XMLHttpRequest[x(522)][x(803)],o=window[x(795)][x(522)][x(878)],s=()=>{let $=x;Shopify?.[$(562)]||(window.XMLHttpRequest[$(522)][$(803)]=function(x,t){let e=$;try{document[e(532)](new CustomEvent(FGSECOMAPP[e(793)][e(1111)],{detail:{fgXHR:this}}))}catch(a){console[e(693)]("BOGOS track: Error listening XHR open",a)}finally{c[e(488)](this,arguments)}},window.XMLHttpRequest[$(522)][$(878)]=function(x){let t=$;try{document[t(532)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(1111)],{detail:{fgXHR:this}}));let{_url:e}=this;(e?.[t(704)](t(852))||e?.[t(704)](t(584))||e?.[t(704)](t(961)))&&this[t(503)](t(913),function(){this.readyState===XMLHttpRequest.DONE&&200===this.status&&$d([e,{}])[t(1064)]()})}catch(a){console[t(693)](t(539),a)}finally{o[t(1070)](this,x)}})};FGSECOMAPP.initializeForXHR=()=>{let $=x;try{if(Shopify?.disableShopify_getCart||typeof Shopify?.[$(742)]!==$(483))return;Shopify[$(742)]=async function(x){let t=$;if(!FGSECOMAPP[t(496)]){FGSECOMAPP.secomappGetCartRunning=!0,await $d([t(870),{}]);let e=await $o(t(979));"function"==typeof x&&(0>FGSECOMAPP.fgCallback[t(687)](x)&&FGSECOMAPP[t(907)][t(773)](x),x(e)),FGSECOMAPP[t(496)]=!1}FGSECOMAPP[t(962)]()},typeof ShopifyAPI!==$(734)&&typeof ShopifyAPI.getCart!==$(734)&&(ShopifyAPI.getCart=Shopify?.getCart),typeof Shopify?.[$(493)]!==$(734)&&typeof Shopify?.api[$(742)]!==$(734)&&(Shopify[$(493)][$(742)]=Shopify?.[$(742)])}catch(t){console[$(693)]($(558),t)}};let n=$=>{let t=x;try{let e=$?.[t(760)],a={};e instanceof FormData?a={sections:e[t(762)](t(1095)),sections_url:e.get(t(430))}:typeof e===t(517)&&(a={sections:(e=JSON[t(935)](e))?.sections,sections_url:e?.sections_url});let i=FGSECOMAPP.sections_cart.sections?.split(",")??[],r=a.sections?.[t(987)]()?.[t(1055)](",")??[];return FGSECOMAPP.sections_cart={sections:[...new Set(i.concat(r))][t(1076)](",")},a}catch(c){FGSECOMAPP.sections_cart={}}},d=($,t)=>{let e=x;try{let a=Shopify?.fg_fetch_attributes??[e(713),"type","redirected","ok"],i=new Response(JSON[e(895)]($),t);for(let r of a)Object[e(470)](i,r,{value:t[r]});return i}catch(c){return new Response(JSON[e(895)]($))}},f=async()=>{let $=x;if(Shopify[$(851)])return;let t=[];if(!C(FGSECOMAPP.arrOfferAdded))for(let e of(t[$(773)]($(768)),FGSECOMAPP[$(583)])){let a=FGSECOMAPP[$(718)].find(x=>x.id===e[$(716)])?.sub_conditions?.[$(514)];C(a)||t[$(773)](a)}t.sort();let i=l(FGSECOMAPP[$(583)])?.[$(722)]().join("-"),{attributes:c}=FGSECOMAPP?.[$(868)]??{};if(t[$(987)]()!==(c?.[$(646)]??"")||i!==(c?.[$(788)]??""))try{await r((Shopify?.[$(706)]??$(961))+"?sca_attr_cart",{method:$(944),headers:{"X-Requested-With":$(795),"Content-Type":$(635)},body:JSON.stringify({attributes:{__freegift_attributes:t[$(987)](),__bogos_tracking:i}})})}catch(o){console.warn("BOGOS track: Error update cart.attributes",o)}},l=$=>{let t=x,e=[];return $[t(512)]($=>{let{belongs_to_offer:x}=$;e[t(773)](x.split("_")?.[0]??"")}),[...new Set(e.filter($=>!C($)))]},u=async($,t,e,a)=>{let i=x;try{if($[1]?.[i(1052)]?.[i(941)]||C(t))return;let c={},o=null;$[1]?.[i(1052)]?.sca_fetch_sections&&typeof t===i(517)?o=t:FGSECOMAPP[i(664)]&&(o=(t?.[i(1095)]||FGSECOMAPP[i(832)]).toString(),FGSECOMAPP[i(664)]=!1),C(o)||(c=await r(i(1077)+o)[i(1064)]($=>$[i(990)]())),a[i(1095)]={...e[i(1095)],...c}}catch(s){}};FGSECOMAPP[x(482)]=async($,t,e)=>{let a=x;try{let i=FGSECOMAPP[a(583)][a(877)](x=>e===x.belongs_to_offer?.[a(987)]()&&$===x.variantId);i?i[a(587)]+=t:FGSECOMAPP.arrOfferAdded[a(998)]({variantId:$,belongs_to_offer:e,quantity:t}),localStorage[a(1150)]("sca_offers_added",FGSECOMAPP.LZString[a(714)](JSON[a(895)](FGSECOMAPP[a(583)]))),b("start");let r=await fetch((Shopify?.sca_add_url??a(814))+a(1065),{method:a(944),headers:{Accept:a(437),"Content-Type":a(437),sca_add_gift:"1"},body:JSON.stringify({quantity:t,id:$})});return await r[a(990)]()}catch(c){return!1}};let g=async($,t,e)=>{let a=x;e=e?.[a(987)]();let i=document[a(462)](a(1125));i[a(512)](x=>{let t=a;x[t(692)]=!0;let e=x.getAttribute("data-variant")-0;e===$&&(x[t(671)][t(1012)]="6px 0",x[t(1083)]=t(1126)),x[t(671)][t(1117)]=t(466)});let r=await FGSECOMAPP[a(482)]($,t,e);r&&(i.forEach(x=>{let t=a;x.disabled=!0;let e=x[t(1041)](t(988))-0;e===$&&(x[t(671)][t(1012)]="6px 0",x[t(1083)]='\n \n \n \n '),x[t(671)][t(1117)]=""}),$f()),document[a(532)](new CustomEvent(FGSECOMAPP[a(793)].GIFT_ADDED,{detail:{gift:r}}))},_=$=>{let t=x,e=t(468);return!C($)&&(typeof $===t(1092)&&($[t(764)]?.[t(704)](e)||$[t(1147)]?.includes(t(602))||FGSECOMAPP[t(1061)]?.[t(704)]($.variant_id))||typeof $===t(517)&&$[t(704)](e))},p=$=>{let{selling_plan_allocation:t}=$;return!C(t)&&!C(t?.[x(1152)])},b=$=>{let t=x;try{if(!Shopify?.[t(888)])return;let{checkout_btn_query:e}=FGSECOMAPP[t(576)],a=[...e?.[t(1040)],...e?.integration,...e?.[t(534)]].filter(Boolean)[t(1076)](",");document[t(462)](a).forEach(x=>{let e=t;FGSECOMAPP[e(1087)]($,x)[e(1064)]()})}catch(i){}},m=async($,t)=>{let e=x;try{if(C($)&&C(t))return;let a={};if(FGSECOMAPP[e(1023)]?.[e(605)]($=>_($))?.[e(512)]($=>{a[$.variant_id]=$[e(587)]}),($=$?.[e(605)]($=>!C($[e(538)])))?.forEach($=>{let x=e;a[$[x(538)]]=(a[$.variant_id]??0)+($[x(587)]??1)}),Object[e(1030)](a)?.[e(512)]($=>{a[$]=a[$]>=0?a[$]:0}),C(Object[e(1030)](a)))return;$?.[e(512)]($=>{let x=e,t=FGSECOMAPP[x(583)][x(877)](t=>$[x(732)]?.[x(987)]()===t[x(716)]?.[x(987)]()&&$[x(538)]===t[x(733)]);t?t[x(587)]+=$[x(587)]:FGSECOMAPP[x(583)].unshift({variantId:$[x(538)],belongs_to_offer:$.offer_id?.[x(987)](),quantity:$[x(587)]})}),localStorage[e(1150)](e(1137),FGSECOMAPP[e(891)][e(714)](JSON[e(895)](FGSECOMAPP[e(583)]))),FGSECOMAPP[e(664)]=!0,b("start"),await fetch((Shopify?.sca_update_url??"/cart/update")+"?sca_process_gifts",{method:e(944),headers:{Accept:e(437),"Content-Type":e(437),sca_process_gifts:"1"},body:JSON[e(895)]({updates:a,...FGSECOMAPP[e(832)]})})[e(1064)](x=>{let a=e;return x.ok&&$[a(432)]&&!t[a(432)]&&$f(),x[a(990)]()}),document[e(532)](new CustomEvent(FGSECOMAPP[e(793)][e(489)],{detail:{arrGiftsAdd:$,arrGiftsRemove:t}})),document.querySelector(e(769))?.getAttribute(e(650))===e(429)&&location[e(461)]()}catch(i){b("end"),console[e(784)](e(469),i)}},h=($,t)=>{let e=x;try{let a=FGSECOMAPP[e(916)]?.transcy,i=Shopify?.[e(1016)]??Shopify?.[e(985)];return a.enable?a?.[i]?.[t]??$:$}catch(r){return $}},y=($,t=!1)=>(""+$)[x(781)](/\$/g,t?"$$$$":"$"),v=()=>{let $=x,a=document[$(1090)]($(791));if(a){let r=document[$(796)](t.GIFTS_CART_SECTION_ID)?.[$(1083)]??t[$(1143)];a[$(1083)]=r[$(781)](/{{\s*fg_slider_title\s*}}/gm,y(h(FGSECOMAPP.fgAppearanceGiftSlider.gift_popup_title??$(912),"customize.gift_slider_title")))[$(781)](/{{\s*sca_fg_disable_slider_section\s*}}/gm,y(e()))}else{let c=localStorage[$(748)]("FGSECOMAPP_HIDDEN_GIFT_POPUP")-0,o=FGSECOMAPP.fgAppearance?.gift_slider?.[$(543)]??{},s=(o?.[$(843)]??0)*6e4,n=o?.[$(1003)]&&!isNaN(c)&&c+s>Date[$(766)]();if(n||(localStorage[$(563)]($(906)),!(a=document[$(1090)]($(940)))))return;let d=document[$(796)](t.GIFTS_POPUP_SECTION_ID)?.[$(1083)]??t.GIFTS_POPUP_SECTION;a.innerHTML=d.replaceAll(/{{\s*fg_slider_title\s*}}/gm,y(h(FGSECOMAPP[$(1057)].gift_popup_title??$(912),$(1047)))).replaceAll(/{{\s*sca_fg_disable_slider_section\s*}}/gm,y(i()+" "+e())),a[$(729)][$(939)]($(986))}},S=($,e)=>{let a=x,i=document[a(796)](t[a(736)])?.innerHTML??t.GIFT_SELECT_SECTION;return $.map($=>i[a(781)](/{{\s*fg_variant_img\s*}}/gm,y(Q($[a(959)]??e),!0))[a(781)](/{{\s*fg_variant_id\s*}}/gm,y($.variant_shopify_id))[a(781)](/{{\s*fg_original_variant_id\s*}}/gm,y($[a(1080)]))[a(781)](/{{\s*fg_variant_price\s*}}/gm,y(T($)))[a(781)](/{{\s*fg_original_variant_price\s*}}/gm,y(w($)))[a(781)](/{{\s*fg_variant_title\s*}}/gm,y($[a(504)])))[a(1076)](" \n")},T=$=>FGSECOMAPP.formatter.format($?.[x(1022)]),w=$=>{let t=x;return FGSECOMAPP[t(1094)].format($?.[t(869)]??0)},E=($,t)=>{let e=x;return C(FGSECOMAPP[e(778)][$])?t??"#":FGSECOMAPP[e(778)][$][e(764)]},O=($,t)=>{let e=x;return FGSECOMAPP.fgAppearanceGiftSlider.show_product_title?C(FGSECOMAPP.productsByID[$])?t[e(668)]("\xbb","")[e(668)]("\uD83C\uDF81","")[e(668)](/\(\d*% off\)/,"").replace(e(1058),"")??"":FGSECOMAPP.productsByID[$][e(491)]:""},C=$=>{let t=x;if(0===$)return!0;if(typeof $==t(799)||"boolean"==typeof $)return!1;if(typeof $==t(734)||null===$)return!0;if(void 0!==$[t(432)])return 0===$[t(432)];let e=0;for(let a in $)$[t(862)](a)&&e++;return 0===e},I=$=>{let t=x;try{let e={...FGSECOMAPP.scaHandleConfigValue},a=e[$];if(a=a?a[t(595)]():null,!C(a)&&a[t(432)]>0)try{return document[t(796)](a),a}catch(i){}return""}catch(r){return""}},k=()=>{let $=x;try{FGSECOMAPP[$(1094)]=new Intl[$(902)](Shopify?.[$(506)]??Shopify?.[$(985)],{style:"currency",currency:Shopify?.[$(846)]?.active??"USD",minimumFractionDigits:Shopify?.[$(731)]??2})}catch(t){FGSECOMAPP.formatter=new Intl[$(902)]($(1146),{style:$(846),currency:Shopify?.[$(846)]?.[$(836)]??$(574)})}};FGSECOMAPP.initLZString=()=>{let $=x;try{FGSECOMAPP[$(891)]=function(){let x=$;var t=String[x(1118)],e=x(1028),a=x(528),i={},r={compressToBase64:function($){let t=x;if(null==$)return"";var a=r[t(798)]($,6,function($){return e.charAt($)});switch(a[t(432)]%4){default:case 0:return a;case 1:return a+t(790);case 2:return a+"==";case 3:return a+"="}},decompressFromBase64:function($){return null==$?"":""==$?null:r[x(899)]($.length,32,function(t){return function $(t,e){let a=x;if(!i[t]){i[t]={};for(var r=0;rf[a(995)](0)){for(i=0;i>=1}else{for(i=0,r=1;i>=1}l--,0==l&&(l=Math.pow(2,g),g++),delete s[f]}else for(i=0,r=o[f];i>=1;l--,0==l&&(l=Math.pow(2,g),g++),o[d]=u++,f=String(n)}if(""!==f){if(Object.prototype[a(862)][a(1070)](s,f)){if(256>f.charCodeAt(0)){for(i=0;i>=1}else{for(i=0,r=1;i>=1}l--,0==l&&(l=Math[a(911)](2,g),g++),delete s[f]}else for(i=0,r=o[f];i>=1;l--,0==l&&(l=Math[a(911)](2,g),g++)}for(i=0,r=2;i>=1;for(;;){if(p<<=1,b==t-1){_[a(773)](e(p));break}b++}return _.join("")},decompress:function($){let t=x;return null==$?"":""==$?null:r._decompress($[t(432)],32768,function(x){return $[t(995)](x)})},_decompress:function($,e,a){let i=x;var r,c,o,s,n,d,f,l,u=[],g=4,_=4,p=3,b="",m=[],h={val:a(0),position:e,index:1};for(c=0;c<3;c+=1)u[c]=c;for(s=0,d=Math[i(911)](2,2),f=1;f!=d;)n=h[i(931)]&h[i(1005)],h[i(1005)]>>=1,0==h[i(1005)]&&(h[i(1005)]=e,h[i(931)]=a(h.index++)),s|=(n>0?1:0)*f,f<<=1;switch(r=s){case 0:for(s=0,d=Math[i(911)](2,8),f=1;f!=d;)n=h.val&h[i(1005)],h[i(1005)]>>=1,0==h.position&&(h[i(1005)]=e,h[i(931)]=a(h[i(521)]++)),s|=(n>0?1:0)*f,f<<=1;l=t(s);break;case 1:for(s=0,d=Math[i(911)](2,16),f=1;f!=d;)n=h[i(931)]&h[i(1005)],h[i(1005)]>>=1,0==h[i(1005)]&&(h[i(1005)]=e,h[i(931)]=a(h[i(521)]++)),s|=(n>0?1:0)*f,f<<=1;l=t(s);break;case 2:return""}for(u[3]=l,o=l,m.push(l);;){if(h[i(521)]>$)return"";for(s=0,d=Math[i(911)](2,p),f=1;f!=d;)n=h.val&h.position,h.position>>=1,0==h[i(1005)]&&(h.position=e,h[i(931)]=a(h[i(521)]++)),s|=(n>0?1:0)*f,f<<=1;switch(l=s){case 0:for(s=0,d=256,f=1;f!=d;)n=h[i(931)]&h[i(1005)],h[i(1005)]>>=1,0==h[i(1005)]&&(h.position=e,h[i(931)]=a(h[i(521)]++)),s|=(n>0?1:0)*f,f<<=1;u[_++]=t(s),l=_-1,g--;break;case 1:for(s=0,d=Math[i(911)](2,16),f=1;f!=d;)n=h[i(931)]&h[i(1005)],h[i(1005)]>>=1,0==h[i(1005)]&&(h[i(1005)]=e,h[i(931)]=a(h[i(521)]++)),s|=(n>0?1:0)*f,f<<=1;u[_++]=t(s),l=_-1,g--;break;case 2:return m[i(1076)]("")}if(0==g&&(g=Math.pow(2,p),p++),u[l])b=u[l];else{if(l!==_)return null;b=o+o[i(662)](0)}m[i(773)](b),u[_++]=o+b[i(662)](0),g--,o=b,0==g&&(g=Math[i(911)](2,p),p++)}}};return r}()}catch(t){FGSECOMAPP[$(891)]=LZString}};let A=$=>{let t=x;$=$??0;let e=Shopify?.[t(846)]?.rate??1;return parseFloat(1===parseFloat(e)?$:($*e)?.toFixed(Shopify?.[t(731)]??2))},D=$=>{let t=x;try{return $[FGSECOMAPP[t(948)]]??$?.[t(1067)]??$?.[t(1022)]}catch(e){return $?.[t(1067)]??$?.[t(1022)]}},G=$=>{let t=x;return $.filter($=>void 0===$.cal_gift_for_other_rules||!0===$[t(688)]).reduce(($,x)=>$+x.quantity*D(x),0)/100},R=$=>{let t=x;return $[t(605)]($=>void 0===$[t(688)]||$[t(688)])[t(1142)](($,x)=>$+x[t(587)],0)},F=($,t,e)=>{let a=x,i=t.product_narrow;return e?.[a(875)]===!0?$=$.filter($=>p($)):e?.is_only===!1&&($=$.filter($=>!p($))),C(i)?$:$[a(605)]($=>{let x=a,t=i[0]?.[x(598)]??x(642),e=i[x(927)](t=>{let e=x;switch(t[e(510)]){case e(937):return Object[e(586)](t[e(976)])[e(927)]($=>$[e(745)]??$[e(892)])[e(956)]().map($=>$.id)[e(704)]($[e(538)]);case"product_types":return Object[e(586)](t.value).includes($[e(694)]);case"product_vendors":return Object[e(586)](t[e(976)]).includes($[e(634)]);case e(1141):let a=Object.keys(t[e(976)]),i=$[e(550)]?.[e(927)]($=>$.id+"")?.[e(605)]($=>a[e(704)]($));return!C(i);default:return!1}});return t===x(642)?!e.includes(!1):e[x(704)](!1)})},N=($,t)=>{let e=x;return $?.[e(927)]($=>{let x=e;if(typeof $[x(688)]!==x(734)){let a=FGSECOMAPP[x(583)]?.[x(605)](t=>t[x(733)]===$[x(538)]),i=a?.[x(1142)](($,t)=>$+t[x(587)],0);if(i===$[x(587)]){let r=a?.filter(e=>{let a=x;if(e[a(716)]?.[a(987)]()===t.toString())return!1;let i=FGSECOMAPP[a(718)]?.[a(877)]($=>$.id?.[a(987)]()===e[a(716)]?.[a(987)]()),r=i[a(936)]??{},c=D($);return r[a(688)]&&c>0})?.reduce(($,x)=>$+x.quantity,0);return{...$,cal_gift_for_other_rules:r>0,quantity:r??0}}return{...$,cal_gift_for_other_rules:!1,quantity:0}}return{...$}})??[]},P=($,t,e)=>{let a=x,i=FGSECOMAPP.fgSettings?.[a(603)],r=FGSECOMAPP[a(835)]?.[a(478)],c=$,o=e[a(738)]?.[a(927)]($=>$[a(559)]);if(r){let s=o[a(605)]($=>c[a(696)](x=>x.product_id!==$));c=s[a(432)]?c[a(605)]($=>!s?.includes($[a(712)])):[]}let n=c;if(i){c=$[a(722)](($,x)=>D($)-D(x));let d=e[a(880)][a(927)]($=>$?.[a(1034)]??0);c=c[a(605)]($=>d.some(x=>x<=D($)/100)),n=JSON[a(935)](JSON[a(895)](c));let f=e.giftsAdded[a(722)](($,x)=>x?.[a(1034)]-$?.[a(1034)])[a(927)]($=>({...$})),l=f[a(1142)](($,x)=>$+x[a(587)],0),u=L(c,t,e),g=Math.max(u-l,0),p=t[a(685)]?e[a(936)].number_of_gift_can_receive:1;if(n[a(605)]($=>$[a(587)]>0).forEach($=>{let x=a;$[x(587)]*=p;let t=D($)/100;f[x(605)]($=>$[x(587)]>0&&$?.[x(1034)]<=t)[x(512)](t=>{let e=x;if(!$[e(587)])return 0;let a=$[e(587)]-t.quantity;t[e(587)]=Math[e(1008)](-a,0),$[e(587)]=Math.max(a,0)})}),e.giftsAddedInvalid=f[a(605)]($=>$.quantity>0),!t[a(685)]&&g>0){let[b]=n.slice(-1);C(b)||(b[a(587)]+=g)}n=n[a(605)]($=>$[a(587)]>0)}c=c.filter($=>$[a(587)]>0);let m=FGSECOMAPP[a(1023)][a(927)]($=>$[a(712)]),h=[];return FGSECOMAPP[a(835)]?.[a(863)]&&(h=FGSECOMAPP[a(1023)].filter($=>_($))[a(927)]($=>$.variant_id)),e[a(570)]=JSON[a(935)](JSON[a(895)](e.gift_products))?.filter($=>{let x=a;return $[x(745)]=$[x(745)][x(605)]($=>!h[x(704)]($[x(475)])),!(r&&m?.[x(704)]($[x(559)]))&&(i&&($[x(745)]=$[x(745)][x(605)]($=>{let t=x;return n[t(1024)](x=>$[t(1034)]<=D(x)/100)})),!C($.variants))}),c},L=($,t,e)=>{let a=x,i=0,r=0;return"money"===t[a(626)]?(r=G($),e[a(966)]=Math[a(1008)](t[a(1004)]-r,0)):"number_of_products"===t[a(626)]&&(r=R($),e[a(447)]=Math[a(1008)](t[a(1004)]-r,0)),r>=t[a(1004)]&&(null===t.max_amount||r<=t[a(829)])&&(i=e[a(936)].number_of_gift_can_receive*(t.is_multiply?Math[a(594)](r/t.min_amount):1)),i},q=($,t,e)=>{let a=x,i=F(t,$,e.sub_conditions?.[a(828)]);return i=N(i,$[a(732)]),i=P(i,$,e),L(i,$,e)},B=($,t)=>{let e=x,a={},i=[],r=0;return t[e(924)][e(927)](x=>{let a=q(x,$,t);0!==a&&(r=a),i[e(773)](a>0)}),a[e(630)]=r,a[e(632)]=i,a},M=($,t)=>{let e=x,a=!1;return 1===$.length?a=$[0]:2===$[e(432)]&&(t===e(1014)&&(a=$[0]&&$[1]),"or"===t&&(a=$[0]||$[1])),a},H=($,t)=>{let e=x,a=$?.[e(927)]($=>$[e(538)]);FGSECOMAPP.arrOfferAdded=FGSECOMAPP[e(583)][e(605)]($=>a?.[e(704)]($.variantId));let i=t[e(880)][e(927)]($=>$[e(475)]),r={};t[e(880)][e(605)]($=>r[$[e(475)]]={fg_original_compare_at_price:$[e(472)],fg_original_price:$[e(834)],compare_gift_price:$.compare_gift_price});let c=FGSECOMAPP.arrOfferAdded[e(605)]($=>$[e(716)]?.toString()===t.id?.[e(987)]())?.[e(927)]($=>$[e(733)]),o=$[e(605)]($=>{let x=e;return _($)&&($[x(688)]=!1),i[x(704)]($[x(538)])&&c[x(704)]($[x(538)])}),s=o[e(927)]($=>{let x=e,a=t[x(936)];$[x(688)]=a.cal_gift_for_other_rules,$.belongs_to_offer=t.id?.toString();let i=FGSECOMAPP[x(583)]?.[x(605)](e=>e.belongs_to_offer?.toString()!==t.id?.[x(987)]()&&$[x(538)]===e[x(733)])?.[x(1142)](($,t)=>$+t[x(587)],0);return{...$,quantity:$[x(587)]-i,...r[$[x(538)]]}});return s[e(605)]($=>{let x=e;return $[x(716)]?.toString()===t.id?.[x(987)]()})},U=$=>{let t=x,e=$[t(915)][t(605)](x=>x[t(716)]?.toString()!==$.id?.[t(987)]())[t(927)]($=>$[t(712)]);return Object[t(586)]($[t(570)])[t(605)]($=>!e[t(704)]($.product_shopify_id))},Y=($,t)=>{let e=x,a=H($,t);t[e(915)]=a;let i=B($,t),r=M(i.condition_result,t[e(876)]);if(r){let c=a[e(605)]($=>$[e(716)]?.[e(987)]()===t.id?.[e(987)]())[e(1142)](($,x)=>$+x[e(587)],0);i[e(630)]=i[e(630)]-c,t[e(915)]=a,t[e(874)]=i[e(630)]}else t.giftsAdded=a,t[e(874)]=0;return!C(FGSECOMAPP[e(678)])&&t[e(1102)]>FGSECOMAPP[e(678)]&&(r=!1),t[e(610)]&&r?FGSECOMAPP[e(678)]=t[e(1102)]:!t[e(610)]||r||C(a)||t.priority!==FGSECOMAPP[e(678)]||(FGSECOMAPP[e(678)]=null),t[e(960)]=r,t},z=$=>{let t=x,e=$+"=",a=document.cookie[t(1055)](";");for(let i=0;i{let e=x,a=!0,i=!0,r=!0,c=!0;if(!C($[e(1145)]?.[e(514)])){let o=z(e(917));a=o&&JSON[e(935)](o)[e(704)]($[e(1145)][e(514)])}if(!C($[e(1145)]?.[e(500)])){let{customer_tags:s}=$[e(1145)],n=s?.[e(529)]?.[e(1024)]($=>t.customer[e(1147)]?.[e(704)]($));i=s?.type_customer_tags===e(642)?n:!n}if(!C($[e(1145)]?.[e(666)])){let{customer_locations:d}=$[e(1145)],f=d?.[e(813)]?.[e(704)](FGSECOMAPP[e(502)]);c=d?.[e(728)]==="include"?f:!f}if(!C($.sub_conditions?.customer_order_history)){let l=!0,u=$.sub_conditions[e(552)],g=t[e(739)].orders??[];if(u[e(1053)]){let _=Date[e(935)](u[e(1053)])/1e3;g=g[e(605)]($=>$.created_at>=_&&[e(547),e(908)][e(704)]($.financial_status))}if(!C(u?.total_spend_on_order_history)&&(0!==u[e(1105)][e(1004)]||0!==u[e(1105)][e(829)])){let p=u[e(1105)][e(1004)],b=u[e(1105)].max_amount,m=g.reduce(($,x)=>$+x.total_price,0)/100;l&=(m>=p||!p)&&(m<=b||!b)}if(!C(u?.[e(770)])&&(0!==u.total_spent_on_last_order.min_amount||0!==u[e(770)][e(829)])){let h=(t[e(739)].last_total??0)/100,y=u[e(770)][e(1004)],v=u[e(770)][e(829)];l&=g.length>0&&(h>=y||!y)&&(h<=v||!v)}if(!C(u?.[e(1110)])){let S=!(0!==u.number_of_order[e(1004)]||0!==u[e(1110)][e(829)]),T=g[e(432)],w=u[e(1110)][e(1004)],E=u[e(1110)].max_amount;l&=S?C(g):(T>=w||!w)&&(T<=E||!E)}if(u?.[e(1148)]){let O=t[e(739)][e(508)]??[],I=$[e(880)]?.[e(1024)]($=>O[e(704)]($[e(475)]))||$[e(880)]?.[e(1024)]($=>O[e(704)]($[e(1080)]+"_"+($[e(834)]-$.price)*100)||O[e(704)]($[e(1080)]+"_"+($[e(472)]-$[e(1022)])*100));l&=!I}r=l}let k=!$[e(1145)]?.[e(703)]?.work_with_only_mobile_app??!0;return a&&i&&r&&c&&k},V=($,t,e)=>{let a=x,i=[],r=[],c=[],o=[];for(let s of t){let n=Y($,s);if(!n.isReachConditions){if(!n.giftsAdded[a(432)])continue;n[a(915)][a(512)]($=>{let x=a;r[x(773)]({variant_id:$[x(538)],quantity:$[x(587)],offer_id:s.id})});continue}if(n[a(874)]<0){n[a(915)].forEach($=>{let x=a;r[x(773)]({variant_id:$[x(538)],quantity:$[x(587)],offer_id:s.id})});continue}if(0===n[a(874)]){n[a(915)][a(512)]($=>{let x=a,t=FGSECOMAPP[x(583)][x(877)](t=>s.id?.toString()===t[x(716)]?.[x(987)]()&&$[x(538)]===t[x(733)]);t&&(t[x(587)]=$[x(587)])});continue}(s.sub_conditions&&X(s,SECOMAPP)||C(s.sub_conditions))&&i.push(s)}if($?.[a(605)]($=>_($)).forEach($=>{let x=a,t=0,e=FGSECOMAPP.arrOfferAdded?.[x(605)](t=>$.variant_id===t[x(733)])?.reduce(($,x)=>$+x.quantity,0)??0;e<$[x(587)]&&(t=$.quantity-e),C($[x(716)])&&(t=$.quantity),t>0&&r[x(773)]({variant_id:$[x(538)],quantity:t,offer_id:$.belongs_to_offer?.toString()})}),e||C(r)){let d=i[a(927)]($=>{let x=a;return{id:$.id,offerName:$[x(711)],offerPriority:$.priority,stopLowerPriority:$.stop_lower_priority,gifts:U($),giftsAvailable:$.giftsAvailable,giftsAdded:$.giftsAdded,isReachConditions:$[x(960)],offer:$}});if(!C(d)){let f={};for(let l of d){let u=K(FGSECOMAPP[a(835)],l);u?.[a(432)]>0?c=c[a(978)]([...u]):l.gifts.map($=>{let x=a;f[$[x(604)]]={...$,belongs_to_offer:l.id?.[x(987)]()}})}o=Object[a(586)](f)??[]}}return{arrGiftsAdd:c,arrGiftsRemove:r,arrGiftsData:o}},j=($,t)=>{let e=x,a=new Set;return $?.[e(512)]($=>a[e(939)]($[e(732)])),a[e(512)]($=>{let x=e,t=FGSECOMAPP[x(718)]?.[x(877)](t=>t.id?.[x(987)]()===$?.[x(987)]());if(C(t)||!t[x(960)]){FGSECOMAPP.arrOfferAdded=FGSECOMAPP[x(583)]?.[x(605)](t=>t[x(716)]?.[x(987)]()!==$?.[x(987)]());return}if(t[x(874)]>=0)return;let a=[],i=FGSECOMAPP.arrOfferAdded?.[x(605)](t=>t.belongs_to_offer?.toString()===$?.[x(987)]())??[];if(t?.gift_settings?.[x(724)])a=a[x(978)]([...i]),t[x(874)]=0;else for(let r of(FGSECOMAPP[x(835)]?.[x(603)]&&!C(t[x(448)])&&t[x(448)][x(512)]($=>{let e=x,i=FGSECOMAPP[e(583)][e(877)](x=>x.belongs_to_offer?.[e(987)]()===t.id?.[e(987)]()&&$.variant_id===x[e(733)]);if(C(i))return;let r=i[e(587)]-$[e(587)];t.giftsAvailable+=$.quantity,r>0?i[e(587)]=r:(i[e(587)]=0,a[e(773)]({...i}))}),i)){if(t.giftsAvailable>=0)break;t[x(874)]+=r[x(587)],t[x(874)]<=0?a[x(773)]({...r}):(r[x(587)]=t.giftsAvailable,t[x(874)]=0)}a?.[x(512)]($=>{let t=x;FGSECOMAPP[t(583)]=FGSECOMAPP[t(583)]?.[t(605)](x=>$[t(733)]!==x[t(733)]||$[t(716)]?.[t(987)]()!==x[t(716)]?.toString())})}),t?.filter($=>{let x=e;return _($)&&($.quantity=FGSECOMAPP.arrOfferAdded?.[x(605)](x=>$.variant_id===x.variantId)?.[x(1142)](($,t)=>$+t[x(587)],0)??0),$[x(587)]>0})??[]},W=async($,t)=>{let e=x,{arrGiftsAdd:a,arrGiftsRemove:i,arrGiftsData:r}=V($,t,!1),c=j(i,$);if(!C(i)){let o=V(c,t,!0);j(o?.[e(1115)],$),a=o?.arrGiftsAdd,i=i?.concat(o?.[e(1115)])??[],r=o?.[e(649)]}return await m(a,i),f()[e(1064)](),r},K=($,t)=>{let e=x;try{let a=[],i=t[e(993)],r=i[e(1142)](($,x)=>$+x[e(745)][e(432)],0);if(!$[e(660)]||r<=0)return[];let c=t[e(992)]?.[e(936)]?.auto_add_all_gifts,o=t[e(992)]?.[e(1046)]??{};if(o.status&&"variant"===o.type){let s=i[0][e(745)][0];0===s[e(1022)]&&(a[e(773)]({variant_id:s[e(475)],quantity:t[e(874)],offer_id:t.id}),console[e(567)](e(783)+s[e(475)]+e(774)+s[e(504)]+e(774)+t.id+"}"))}else if(c){let n=(t?.[e(874)]??0)/r;i[e(512)]($=>$[e(745)]?.[e(512)]($=>a[e(773)]({variant_id:$[e(475)],quantity:n,offer_id:t.id}))),console[e(567)](e(625)+t.id+"}")}else if(1===r){let d=i[0][e(745)][0];0===d[e(1022)]&&(a[e(773)]({variant_id:d[e(475)],quantity:t[e(874)],offer_id:t.id}),console.log(e(994)+d[e(475)]+e(774)+d.variant_title+e(774)+t.id+"}"))}return a}catch(f){return console[e(784)](e(761),f),[]}},Z=$=>"Default Title"===$,Q=$=>{let t=x;try{let e=Shopify?.[t(807)]??FGSECOMAPP[t(804)]?.[t(667)]?.[t(686)]?.[t(811)]??t(1104),a=new URL($),i=new URLSearchParams(e);return i[t(512)](($,x)=>a[t(420)].set(x,$)),a[t(987)]()}catch(r){return $}},J=$=>{let e=x,a=$;if(FGSECOMAPP.fgAppearanceGiftSlider.show_gift_for_customer===e(1045))for(let i of(a=[],$)){let r=i[e(745)];r&&r[e(432)]&&r[e(512)]($=>a.push({...i,thumbnail:$[e(959)],variants:[$]}))}let c=document[e(1090)]("fg-gift-items");c&&(c[e(1083)]=a.map($=>{let x=e,a=$?.variants[0]??{},i=Z(a[x(504)]),r=$[x(745)]?.[x(432)],c=y(O($.original_product_shopify_id,$.title)),o=FGSECOMAPP.fgAppearanceGiftSlider?.show_gift_for_customer===x(1045),s=document[x(796)](t[x(556)])?.innerHTML??t[x(1136)];return s.replaceAll(/{{\s*fg_product_handle\s*}}/gm,y(E($.original_product_shopify_id,$.original_product_handle),!0))[x(781)](/{{\s*fg_product_img\s*}}/gm,y(Q($[x(959)]),!0))[x(781)](/{{\s*fg_product_img_alt\s*}}/gm,c)[x(781)](/{{\s*fg_product_title\s*}}/gm,c)[x(781)](/{{\s*fg_gifts_check_show_by_variants\s*}}/gm,y(o&&FGSECOMAPP.fgAppearanceGiftSlider.show_variant_title?"":x(641))).replaceAll(/{{\s*fg_gifts_check_show_by_products\s*}}/gm,o?x(641):"")[x(781)](/{{\s*fg_check_selected_variant\s*}}/gm,1===r?x(524)+(i?x(641):""):"").replaceAll(/{{\s*fg_variant_title\s*}}/gm,y(1!==r?h(FGSECOMAPP[x(1057)].select_gift_btn??x(723),"customize.select_variant_button_text"):a[x(504)])).replaceAll(/{{\s*fg_original_price\s*}}/gm,y(w(a))).replaceAll(/{{\s*fg_gift_price\s*}}/gm,y(T(a)))[x(781)](/{{\s*sca_fg_variant_select_section\s*}}/gm,y(S($[x(745)],$.thumbnail)))[x(781)](/{{\s*fg_product_belongs_to_offer\s*}}/gm,$[x(716)])[x(781)](/{{\s*fg_variant_id\s*}}/gm,y(1===r?a[x(475)]:""))[x(781)](/{{\s*fg_add_to_cart\s*}}/gm,y(h(FGSECOMAPP[x(1057)]?.[x(670)]??x(1042),"customize.add_to_cart_button")))})[e(1076)](" \n"),new Glider(document[e(796)](e(782)),{slidesToShow:1,slidesToScroll:1,draggable:!1,dots:FGSECOMAPP[e(1057)][e(460)]?".dots":null,arrows:{prev:e(629),next:e(477)},responsive:[{breakpoint:1024,settings:{slidesToShow:FGSECOMAPP[e(1057)][e(925)]??4,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:2,slidesToScroll:1}}],..."object"==typeof Shopify[e(565)]?Shopify[e(565)]:{}}),document.dispatchEvent(new CustomEvent(FGSECOMAPP[e(793)].SHOW_GIFT_SLIDER,{detail:{addGiftToCartFunc:FGSECOMAPP[e(482)],gifts:$7(a)}})))},$$=async()=>{let $=x;try{let t=window.fgData?.[$(718)]??[];for(let e in await $5(),FGSECOMAPP[$(778)])C(FGSECOMAPP[$(778)][e]?.id)&&delete FGSECOMAPP.productsByID[e];let a=[],i=(x,t,e,a)=>{let i=$,{type:r,value:c,giftItems:o,giftProducts:s}=t;x[i(924)][0].product_narrow=[{type:r,value:{[e]:{...c[e],...!C(a)&&{variants:[{...a}]}}}}],x[i(880)]=o[i(605)]($=>$[i(559)]?.[i(987)]()===e?.toString()&&(C(a)||a?.id===$.original_variant_shopify_id)),x.gift_products=s.filter($=>$[i(559)]?.[i(987)]()===e?.toString()),x.gift_products[0][i(745)]=[...x[i(880)]];let n=x[i(936)][i(568)];return x[i(936)].auto_add_all_gifts&&(n=x[i(880)][i(432)]),JSON[i(935)](JSON[i(895)]({...x,gift_settings:{...x[i(936)],number_of_gift_can_receive:n},id:x.id+"_"+c[e][i(764)]+"_"+(a?.id??""),offer_root:""+x.id}))};t.forEach(x=>{let t=$;FGSECOMAPP.gifts_id=FGSECOMAPP[t(1061)].concat(x[t(880)][t(927)]($=>$.variant_shopify_id));try{let e=JSON[t(935)](JSON[t(895)](x)),r=x[t(1046)]??{};if(!r?.status)return;let c=x[t(924)][0][t(441)],o={type:c[0].type,value:c[0].value,giftItems:[...x.gift_items],giftProducts:[...x[t(738)]]};for(let s in o.value){if(r?.type===t(973)){a[t(773)](i(e,o,s));continue}if(r?.[t(510)]===t(892)){let n=o[t(976)]?.[s]?.variant??[];n?.[t(512)]($=>a.push(i(e,o,s,$)))}}}catch(d){console.error(t(983),d)}}),FGSECOMAPP.gifts_id=[...new Set(FGSECOMAPP[$(1061)])],t=(t=(t=t?.[$(605)](x=>!x?.gift_should_the_same?.[$(1063)])?.[$(978)](a))?.[$(927)](x=>({...x,id:x.id.toString(),offer_root:(x.offer_root??x.id)[$(987)]()})))?.filter(x=>{let t=$;if(!$i(x[t(910)],x.end_time))return!1;let e=!C(x[t(1145)]?.customer_order_history||x[t(1145)]?.[t(500)]);if(x[t(1145)]&&(!X(x,SECOMAPP)||e&&C(SECOMAPP[t(739)][t(1074)])))return!1;let a={...FGSECOMAPP[t(778)]},i=!1;if(FGSECOMAPP[t(835)][t(837)]===t(771)){x[t(880)]=x?.gift_items.filter($=>{let x=t,e=a[$[x(559)]]??{},i=e?.[x(1031)]??{},r=e?.[x(745)]?.[x(877)](t=>t.id===$[x(475)])??{};return i[$[x(1080)]]>0||C(r[x(681)])&&r[x(740)]})??[];let r=x.gift_items?.map($=>$[t(475)]);x[t(738)]=x?.gift_products?.filter($=>{let x=t;return $[x(745)]=$?.[x(745)]?.[x(605)]($=>r?.includes($[x(475)])),$?.[x(745)]?.[x(432)]>0}),i=!0}else if(FGSECOMAPP[t(835)].manual_input_inventory){x[t(880)]=x?.[t(880)][t(605)]($=>(a[$[t(604)]]?.[t(745)]?.[t(877)](x=>x.id===$[t(475)])?.available??!1)||a[$[t(604)]]?.[t(1031)]?.[$[t(475)]]>0);let c=x[t(880)]?.map($=>$[t(475)]);x[t(738)]=x?.gift_products?.[t(605)]($=>{let x=t;return $[x(745)]=$?.variants?.filter($=>c?.includes($[x(475)])),$?.[x(745)]?.length>0}),i=!0}return i&&x[t(936)]?.[t(724)]&&(x.gift_settings.number_of_gift_can_receive=x[t(880)]?.[t(432)]),!i||x[t(880)]&&x.gift_items[t(432)]>0});let r=FGSECOMAPP?.[$(835)]?.[$(456)]===$(700)?$(472):"original_price",c=FGSECOMAPP[$(835)]?.[$(603)],o=c===$(700)?"original_compare_at_price":$(834);return t?.[$(927)](x=>{let t=$,e=x[t(880)].map($=>{let x=t;return $[x(1022)]=A($[x(1022)]),$[x(869)]=A(C($[r])?$?.original_price:$[r]),c&&($[x(1034)]=A(C($[o])?$?.[x(834)]:$[o])),$[x(559)]});return x[t(738)]=x[t(738)]?.[t(605)]($=>{let x=t;return $[x(745)]?.[x(512)]($=>{let t=x;$[t(1022)]=A($[t(1022)]),$[t(869)]=A(C($[r])?$?.[t(834)]:$[r]),c&&($.compare_gift_price=A(C($[o])?$?.[t(834)]:$[o]))}),e[x(704)]($.original_product_shopify_id)}),x[t(924)]?.forEach($=>{let x=t;$[x(626)]===x(1100)&&($[x(1004)]=A($[x(1004)]),$[x(829)]=C($[x(829)])?$.max_amount:A($[x(829)]))}),x})?.sort((x,t)=>x[$(1102)]-t.priority)}catch(s){return console[$(784)]("BOGOS track: filterOfferGiftSetting",s),[]}},$x=async()=>{let $=x;try{let t=[];window.fgData?.[$(718)]?.[$(512)](x=>{let e=$,a=[];x[e(738)][e(512)]($=>{let x=e,t=FGSECOMAPP?.[x(835)]?.sync_quantity===x(771)?$[x(530)]??null:FGSECOMAPP?.[x(835)]?.manual_input_inventory?$[x(923)]??null:null;C(t)||a[x(773)](t)}),t=[...t,...a]}),await $y(t=(t=[...new Set(t)])[$(605)](x=>C(FGSECOMAPP[$(808)][x]))),Object[$(586)](FGSECOMAPP[$(808)])?.[$(512)](x=>{let t=$,{info:e}=x;C(e)||C(e?.id)||(FGSECOMAPP[t(778)][e.id]={...e})})}catch(e){console[$(784)]($(548),e)}},$0=$=>{let t=x;try{C($)?(FGSECOMAPP.arrOfferAdded=[],localStorage[t(1150)](t(1137),FGSECOMAPP.LZString[t(714)](JSON[t(895)](FGSECOMAPP[t(583)])))):FGSECOMAPP[t(583)]=JSON.parse(FGSECOMAPP[t(891)][t(690)](localStorage[t(748)](t(1137))))}catch(e){FGSECOMAPP[t(583)]=[],localStorage.setItem(t(1137),FGSECOMAPP[t(891)].compressToBase64(JSON[t(895)](FGSECOMAPP.arrOfferAdded)))}let a={};FGSECOMAPP[t(718)]?.[t(512)]($=>{let x=t;a[$.id]=$?.[x(880)]?.[x(927)]($=>$[x(475)])});let i=Object[t(1030)](a);FGSECOMAPP.arrOfferAdded=FGSECOMAPP[t(583)]?.[t(605)]($=>i?.includes($[t(716)]?.[t(987)]())&&a[$[t(716)]?.[t(987)]()][t(704)]($[t(733)]));let r={};FGSECOMAPP[t(583)]?.[t(512)]($=>{let x=t,e=r[$.belongs_to_offer+"_"+$[x(733)]]??{};r[$[x(716)]+"_"+$[x(733)]]={...$,belongs_to_offer:$.belongs_to_offer?.[x(987)](),quantity:(e?.quantity??0)+($?.[x(587)]??0)}}),FGSECOMAPP[t(583)]=Object[t(586)](r),localStorage[t(1150)](t(1137),FGSECOMAPP[t(891)][t(714)](JSON[t(895)](FGSECOMAPP[t(583)])))},$t=()=>{let $=x;FGSECOMAPP.QUERY_SELECTOR={cart_drawer_query:{tool:[".fg-secomapp-cart-drawer",I($(1099))]},cart_icon_query:{default:[$(705)],tool:[".fg-secomapp-cart-icon",I($(1124))]},gift_icon_product_query:{default:[".product_name, .product-title, .product__title, .product-single__title, .tt-title, .ProductMeta__Title"],integration:[$(708)],tool:[$(1121),I($(974))]},gift_icon_collection_query:{default:[".product-card, #product-grid .grid__item, .product-grid .grid__item, .card-list .card-list__column",$(697)],integration:[$(561),$(767)],tool:[$(951),I("sca_fg_img_collection_gift_icon_query")]},gift_thumbnail_query:{default:["[type='submit'][name='add'], [type='button'][name='add'], [data-add-to-cart], [data-action='add-to-cart']"],integration:[".m-product-form--wrapper"],tool:[$(665),I($(1106))]},cart_message_query:{default:[$(824)],integration:[$(806),$(954),".satcb-cs .satcb-cs-top-container, #monster-upsell-cart #monster-cart-wrapper div[class*=custom_scrollbar]",$(881),$(423)],tool:[".fg-secomapp-cart-item-promotion",I("sca_fg_main_promotion_message_query")]},checkout_btn_query:{default:[$(427),$(486),$(578),$(730)],integration:[$(1130),$(527)],tool:[".sca_handle_button_checkout",I($(810))]}}},$e=async $=>{let t=x;document[t(532)](new CustomEvent(FGSECOMAPP[t(793)][t(775)],{detail:{}})),$t(),k(),FGSECOMAPP[t(1037)](),FGSECOMAPP.fetchCheckoutEvents(),(FGSECOMAPP?.[t(835)]?.[t(837)]===t(771)||FGSECOMAPP?.[t(835)]?.[t(1027)])&&await $x(),FGSECOMAPP[t(718)]=await $$(),FGSECOMAPP[t(1123)](),FGSECOMAPP[t(638)](),s(),$0($);let e=await W($,FGSECOMAPP[t(718)]);await $r(e),$4(),$v(),FGSECOMAPP[t(505)](),$3(),document[t(532)](new CustomEvent(FGSECOMAPP[t(793)][t(672)],{detail:{}}))},$a=function(){let $=x,t=document.querySelectorAll($(1085)),e=document.querySelectorAll("#freegifts-main-popup-container [data-close]"),a=$(986),r=document[$(462)]($(1125)),c=r[$(432)];for(let o=0;o{let t=$;x[t(580)]===document[t(796)]("#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg")&&(document[t(796)](t(889))[t(729)][t(1013)](a),i())}),document[$(503)]($(516),x=>{let t=$;x[t(1096)]===t(958)&&document[t(796)](t(889))&&(document[t(796)](t(889))[t(729)].remove(a),i())}),document[$(462)]($(1078)).forEach(x=>x.addEventListener($(1129),function(){let x=$;this[x(792)](x(754),1),this[x(815)](),this[x(729)].toggle("active"),this[x(796)](x(592)).classList[x(1122)](x(684))})),document[$(462)]("#fg-gift-items .dropdown")[$(512)](x=>document[$(503)]($(1129),function(t){let e=$,a=x[e(746)](t[e(580)]);a||(x[e(729)].remove(e(836)),x.querySelector(e(592))[e(729)][e(1013)](e(684))),document.querySelectorAll(e(776))[e(512)]($=>{let x=e;$[x(692)]=!0,$[x(671)][x(1117)]="#82868b"})})),document[$(462)]($(758))[$(512)](x=>{let t=$;x[t(503)]("click",function(){let $=t,x=this[$(1041)]("id"),e=this.getAttribute($(1043)),a=this[$(1041)]("data-price"),i=this[$(1041)]($(511)),r=this[$(1041)]("data-original-id"),c=this[$(1033)][$(1033)][$(1033)][$(1033)];c[$(796)]($(544))[$(792)]($(721),e);let o=new URL(c[$(796)](".gift-original-url").href);o[$(420)][$(453)]($(892),r),c[$(796)]($(861))[$(680)]=o[$(987)]();let s=this[$(1033)][$(1033)].parentElement;s[$(796)]($(698)).textContent=i,s[$(796)](".gift-price").textContent=a;let n=s?.[$(796)]($(953));n.setAttribute($(988),x),n.disabled=!1,n[$(671)]="";let d=this[$(1033)][$(1033)].querySelector($(999));d[$(729)][$(939)]($(836)),d[$(1083)]=this[$(928)]})}),document[$(462)]($(1125)).forEach(x=>x[$(503)]("click",async function(){let x=$,t=this.getAttribute(x(988))-0,e=this[x(1041)](x(797));try{await g(t,1,e);let i=document[x(796)](x(889));i&&(FGSECOMAPP[x(859)]=!0,await new Promise($=>setTimeout($,800)),i[x(729)].remove(a)),window.location[x(680)].includes(x(1048))?location[x(461)]():"function"==typeof Shopify?.getCart&&await Shopify?.[x(742)](0===FGSECOMAPP[x(907)].length?function(){}:FGSECOMAPP[x(907)][0])}catch(r){console[x(784)]("BOGOS track: error event click add-to-cart ",r)}}))},$i=($,t)=>{let e=x;if($){let a=new Date,i=a[e(1128)](),r=new Date($)[e(1128)]();if(!t)return i>=r;{let c=new Date(t)[e(1128)]();return i>=r&&i<=c}}return!1},$r=async $=>{let t=x;if($&&$[t(432)]>0)FGSECOMAPP[t(859)]?(await new Promise($=>setTimeout($,1500)),FGSECOMAPP[t(859)]=!1,v(),J($)):(v(),J($));else{let e=document[t(1090)](t(791));e&&(e[t(1083)]="")}$a(),FGSECOMAPP[t(962)](),FGSECOMAPP[t(1059)](FGSECOMAPP.offers),$n=[]},$c=async $=>{let t=x;$n=[];let e=new URL(window.location[t(680)]);e[t(420)].set(t(449),""),r(e[t(987)]())[t(1064)]($=>$.text())[t(1064)]($=>{let x=t,e=new DOMParser,a=e[x(422)]($,x(659)),{cart_drawer_query:i,cart_icon_query:r}=FGSECOMAPP[x(576)],c=[...i?.[x(1040)]][x(605)](Boolean).join(","),o=[...r?.[x(1040)]][x(605)](Boolean)[x(1076)](","),s=[...r?.[x(534)]].filter(Boolean)[x(1076)](","),n=document[x(796)](c),d=!1;n&&(d=!0,n[x(1083)]=a.querySelector(c)?.[x(1083)]??n[x(1083)]);let f=document.querySelector(o);f||(f=document[x(796)](s)),f&&(d=!0,f[x(1083)]=a[x(796)](o)?.innerHTML??a.querySelector(s)?.innerHTML??f[x(1083)]),d||console[x(567)](x(689))}),typeof FGSECOMAPP?.[t(596)]===t(483)&&await FGSECOMAPP[t(596)](),document.dispatchEvent(new CustomEvent(FGSECOMAPP[t(793)][t(819)],{detail:{}})),b(t(457)),setTimeout(function(){$r($)},800)},$o=async $=>{let t=x,e=await r(t(1120)+($??""),{method:t(1151),headers:{Accept:t(437),"Content-Type":t(437)}}).then($=>$.json()),a=e[t(759)];return FGSECOMAPP[t(868)]=e,FGSECOMAPP.cartItems=a?.[t(927)]($=>({...FGSECOMAPP[t(1023)]?.find(x=>x.id===$.id),...$}))??[],e},$s=async()=>{let $=x,t=FGSECOMAPP[$(868)];try{let e=await r(SECOMAPP.freegiftProxy,{method:$(1151),headers:{"Content-Type":$(663)}})[$(1064)](x=>x[$(990)]());FGSECOMAPP.cartItems=e?.[$(883)]?.[$(927)](x=>{let t=$;return{...FGSECOMAPP[t(1023)]?.[t(877)]($=>$.id===x.id),...x[t(973)],collections:x[t(550)],tags:x[t(1147)]}})??[],FGSECOMAPP[$(868)]=e?.shopify_cart??{},t=FGSECOMAPP[$(868)]}catch(a){console[$(784)]($(753),a),t=await $o()}return t},$n=[],$d=async $=>{let t=x;try{$n[t(773)]($[0]),document[t(532)](new CustomEvent(FGSECOMAPP[t(793)][t(572)],{detail:{events:$n}})),await $s();let e=await W(FGSECOMAPP[t(1023)],FGSECOMAPP[t(718)]);FGSECOMAPP[t(1059)](FGSECOMAPP[t(718)]);let a=!1;return $[0][t(497)]("/cart/add")&&JSON[t(895)]($[1].headers??[])[t(704)]("sca_add_gift")?(console[t(865)](t(833),[...$n]),await $c(e),a=!0):$[0][t(497)](t(961))&&JSON[t(895)]($[1][t(1052)]??[])[t(704)](t(941))?(console[t(865)](t(647),[...$n]),await $c(e),a=!0):(console[t(865)](t(932),[...$n]),await $r(e)),$S(),a&&(window.location[t(680)].includes(t(1048))||document[t(796)](t(769))?.[t(1041)]("data-template")===t(429))&&($n=[],location[t(461)]()),document[t(532)](new CustomEvent(FGSECOMAPP[t(793)][t(855)],{detail:{events:$n}})),FGSECOMAPP.cartItems}catch(i){console.error(t(450),i)}},$f=()=>{let $=x;if(!Shopify?.enable_toast_added)return;let t=document.querySelector(".sca-fg-notifications");if(!t)return;t[$(1083)]="";let e=Shopify?.[$(947)]??$(831),a=document.createElement("li");a[$(601)]="sca-fg-toast sca-fg-success",a.innerHTML='
    \n \n \n \n \n \n \n '+e+$(1119),t[$(901)](a),a[$(1071)]=setTimeout(()=>$l(a),3e3),document[$(796)]($(943))?.[$(503)]($(1129),()=>$l(a))},$l=$=>{let t=x;$[t(729)][t(939)](t(820)),$[t(1071)]&&clearTimeout($[t(1071)]),setTimeout(()=>$[t(1013)](),500)},$8=$=>{let t=x;try{let e=FGSECOMAPP[t(835)]?.[t(614)],a=e===t(615)?$.target:$[t(513)]??$[t(580)];a?.[t(620)](t(473))||(a=document[t(796)]("#sca-spinner-checkout")?.[t(842)]);let i=JSON[t(935)](a.getAttribute("data-fg-checkout-btn"));if(a[t(976)]=i?.value??"",a[t(1083)]=i?.[t(1083)]??"",a[t(692)]=!1,a[t(520)](t(1129),$1),a[t(787)]("sca_handle_checkout"),e===t(780)){a[t(842)][t(796)]("[sca_root_checkout]")[t(1129)]();return}"trigger_body"===e&&window[t(520)](t(1129),$u,!0),a.click()}catch(r){window[t(434)].replace((Shopify?.[t(479)]?.[t(1093)]??"/")+t(509)),console[t(693)](t(589),r)}};FGSECOMAPP[x(1087)]=async($,t)=>{let e=x;if($===e(1038)&&t)t[e(692)]=!0,t[e(792)](e(1062),JSON[e(895)]({innerHTML:t[e(1083)],value:t[e(976)]})),typeof FGSECOMAPP?.[e(431)]===e(483)?await FGSECOMAPP[e(431)]($):(t.value=Shopify?.[e(622)]??e(844),t[e(1083)]=Shopify?.[e(581)]??'
    \n Loading...\n
    ');else if($===e(457)&&t){if("function"==typeof FGSECOMAPP?.[e(431)])await FGSECOMAPP[e(431)]($);else{let a=JSON[e(935)](t.getAttribute(e(1062)));t[e(976)]=a?.[e(976)]??"",t[e(1083)]=a?.innerHTML??""}t.disabled=!1}else $===e(784)?(typeof FGSECOMAPP?.scaCustomLoadingCheckout===e(483)&&await FGSECOMAPP[e(431)]($),window[e(434)][e(668)]((Shopify?.[e(479)]?.root??"/")+e(509))):console[e(693)](e(897),$)};let $1=async $=>{let t=x;try{$[t(1075)](),$[t(1001)](),$[t(564)]();let e=FGSECOMAPP[t(835)]?.[t(614)],a=e===t(615)?$.target:$[t(513)]??$.target,{form:i}=a;if(await FGSECOMAPP[t(1087)]("start",a),document[t(532)](new CustomEvent(FGSECOMAPP[t(793)][t(536)],{detail:{}})),FGSECOMAPP.checkIsBlockCheckout)return!1;FGSECOMAPP[t(679)]=!0;try{if(!Shopify?.disable_fetch_cart_checkout){let c=new URL(i[t(890)]);c.searchParams[t(540)](t(1103),""),await r(c[t(987)](),{method:"POST",body:new FormData(i)})}}catch(o){console[t(567)]("BOGOS track: not type checkout btn")}if(C(FGSECOMAPP[t(718)])&&C(FGSECOMAPP.cartItems?.[t(877)]($=>_($))))return console[t(567)](t(1006)),$8($),!1;await $s();let s=[...FGSECOMAPP.cartItems],{arrGiftsRemove:n}=V(s,FGSECOMAPP.offers,!1);if(await W(s,FGSECOMAPP[t(718)]),n?.[t(432)]>0)location[t(461)]();else try{if(FGSECOMAPP[t(835)].using_draft_order&&!C(FGSECOMAPP[t(1023)]?.[t(877)]($=>_($)))){let d=await r(SECOMAPP[t(893)]+t(1019)+Shopify?.[t(677)],{method:t(1151),headers:{"Content-Type":t(663)}})[t(1064)]($=>$[t(990)]()),f=[];Shopify?.[t(652)]&&(f=Object[t(816)](d[t(883)][0]?.[t(593)])[t(927)](([$,x])=>({key:$,value:x}))),d[t(883)]=(d.cart??[])[t(927)]($=>{let x=t;$[x(973)][x(550)]=$[x(550)]?.[x(927)]($=>({id:$.id})),$[x(973)][x(1147)]=$[x(1147)];let e=Shopify?.add_cart_discounts?$[x(973)][x(801)]:[];return{id:$[x(973)].id,variant_id:$[x(973)][x(538)],title:$[x(973)][x(491)],handle:$.product[x(764)],price:D($[x(973)]),quantity:$[x(973)][x(587)],product_type:$[x(973)][x(694)],vendor:$[x(973)][x(634)],tags:$[x(973)].tags,collections:$[x(973)][x(550)],selling_plan_allocation:$[x(973)][x(991)],discounts:e}}),d[t(686)]={arr_offer_added:FGSECOMAPP[t(583)],secomapp:{customer:SECOMAPP?.[t(739)]??{},fg_codes:SECOMAPP?.[t(515)]??[],fgSettings:FGSECOMAPP[t(835)]},cookie_fg_code:z(t(917)),shopify_currency:Shopify?.[t(846)],customer_location:FGSECOMAPP[t(502)],cart_attributes:f},d=JSON[t(895)](d);let l=await r(SECOMAPP[t(893)]+t(856)+FGSECOMAPP[t(891)][t(465)](d),{method:t(1151),headers:{"Content-Type":t(663)}}).then($=>$[t(990)]());FGSECOMAPP[t(679)]=!1;let u=l?.[t(674)]?.[t(968)];C(u)?(console.warn(t(637),l),$8($)):window[t(434)][t(680)]=u}else console[t(567)](t(525)),FGSECOMAPP[t(679)]=!1,$8($)}catch(g){FGSECOMAPP[t(679)]=!1,$8(g)}await FGSECOMAPP[t(1087)]("end",a="trigger_body"===e?$.target:$.currentTarget??$[t(580)]),document.dispatchEvent(new CustomEvent(FGSECOMAPP[t(793)][t(499)],{detail:{status:t(619),valid:!n?.[t(432)]}}))}catch(p){await FGSECOMAPP[t(1087)]("error"),document.dispatchEvent(new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(499)],{detail:{status:t(784)}})),console[t(784)](t(436),p)}},$u=async $=>{let t=x;$.target?.[t(620)](t(473))&&await $1($)},$g=()=>{let $=x,t=FGSECOMAPP.fgSettings?.mode_override_checkout,{checkout_btn_query:e}=FGSECOMAPP[$(576)],a=[...e?.tool,...e?.[$(972)],...e?.[$(534)]][$(605)](Boolean)[$(1076)](",");document[$(462)](a)[$(512)](x=>{let e=$,a=x[e(620)]("sca_root_checkout"),i=x[e(620)](e(938)),r=x[e(620)](e(473));if(t===e(780)){if(a)return;if(!i&&!r){let c=x.cloneNode(!0);c.addEventListener(e(1129),$1),c[e(792)](e(473),""),c[e(792)](e(938),""),x[e(671)][e(554)]=e(621),x.style[e(749)]=e(633),x[e(671)][e(847)]="0",x[e(792)](e(717),""),x.parentNode?.[e(901)](c)}i&&!r&&(x[e(503)]("click",$1),x[e(792)](e(473),""))}else t===e(615)?x[e(792)]("sca_handle_checkout",""):r||(x[e(503)]("click",$1),x[e(792)](e(473),""));FGSECOMAPP.hasDoneProcessCheckout=!0}),"trigger_body"===t&&window[$(503)]($(1129),$u,!0)};FGSECOMAPP[x(962)]=()=>{let $=x;FGSECOMAPP[$(1101)]=0;let t=setInterval(()=>{let x=$;$g(),FGSECOMAPP[x(1101)]++,(FGSECOMAPP.scaCountRenderEventCheckout>10||FGSECOMAPP.hasDoneProcessCheckout)&&(FGSECOMAPP[x(1101)]=0,clearInterval(t))},400)};let $_=$=>{let t=x;try{let e={},a={},i=FGSECOMAPP.offers;if(C($)){$=[],C(Shopify?.[t(1044)])||$[t(773)]({...Shopify?.current_product});let r={...Shopify?.[t(490)],...Shopify?.[t(741)]?.products};Object[t(586)](FGSECOMAPP[t(808)])?.[t(605)]($=>!C($[t(865)])&&(C($?.[t(884)])||$?.[t(884)]&&!$?.[t(533)]?.every($=>$?.[t(729)]?.[t(746)]("sca-gift-icon-collection-page"))))?.[t(512)]($=>{let x=t;r[$[x(865)].id]={...$[x(865)]}}),$=$[t(978)]([...Object[t(586)](r)])}$?.forEach($=>{let x=t,e=FGSECOMAPP[x(808)][$.handle];FGSECOMAPP[x(808)][$[x(764)]]={...e,info:{...$},product_has_icon:!!C(i)&&void 0}});let c=FGSECOMAPP[t(835)]?.[t(603)];for(let o in i?.[t(512)](x=>{let i=t,r=x[i(924)];if(1===r[i(432)]&&r[0].unit===i(752)&&typeof r[0][i(685)]===i(440)){let o,s=r[0][i(441)];s?.forEach(x=>{let t=i;switch(x[t(510)]){case t(937):o=Object[t(586)](x[t(976)]);break;case t(818):let e=Object[t(1030)](x.value);e[t(432)]>0&&(o=(void 0===o?$:o)?.filter($=>e[t(704)]($[t(510)]))??[]);break;case t(921):let a=Object[t(1030)](x[t(976)]);a.length>0&&(o=(void 0===o?$:o)?.[t(605)]($=>a.includes($.vendor))??[]);break;case t(1141):let r=Object[t(1030)](x[t(976)]);r.length>0&&(o=(void 0===o?$:o)?.[t(605)]($=>{let x=t,e=$.collections?.[x(927)]($=>$.id+""),a=e?.[x(605)]($=>r[x(704)]($));return!C(a)})??[])}}),o?.[i(512)]($=>{let t=i,r=$[t(764)],o=JSON[t(935)](JSON[t(895)](x[t(738)])),s=FGSECOMAPP[t(808)][r]?.info??{};if(FGSECOMAPP.fgSettings?.[t(478)]&&(o=o[t(605)]($=>$[t(559)]!==s?.id)),c&&(o=o[t(605)]($=>{let x=t;return $[x(745)][x(1024)]($=>$?.[x(1034)]<=s?.[x(571)]/100)}),C(o)))return;if(e[r]){let n=e[r];o?.[t(512)]($=>{let e=t,a=n[e(877)](x=>x[e(559)]===$[e(559)]);if(C(a)){n[e(773)]({...$,belongs_to_offer:[x[e(1127)]]});return}let i=$[e(745)][e(927)]($=>$[e(1080)]);a[e(716)]?.includes(x[e(1127)])||a[e(716)]?.[e(773)](x[e(1127)]),a[e(745)]=a?.[e(745)]?.[e(605)]($=>!i[e(704)]($.original_variant_shopify_id))??[],a.variants=[...a[e(745)],...$[e(745)]]}),e[r]=n}else e[r]=o?.[t(927)]($=>({...$,belongs_to_offer:[x[t(1127)]]}));let d=($[t(745)]??$[t(892)])?.[t(927)]($=>$.id)??[];C(a[r])&&(a[r]={}),FGSECOMAPP[t(808)][r]?.[t(865)]?.[t(745)]?.[t(605)]($=>d.includes($.id))?.forEach($=>{let x=t;a[r][$.id]=o[x(605)](t=>{let e=x,a=t[e(745)];return c&&(a=a[e(605)](x=>x?.[e(1034)]<=$.price/100)),!C(a)})})})}}),e){let s=FGSECOMAPP[t(808)][o];FGSECOMAPP[t(808)][o]={...s,gifts_will_receive:[...e[o]],product_has_icon:!0,variants_has_gift:{...a[o]}}}return Object[t(816)](e)?.[t(432)]?e:{}}catch(n){return console.warn(t(853),n),null}},$2=$=>{let e=x,a=FGSECOMAPP.fgAppearanceGiftIcon[e(643)]??{};if(!a.gift_thumbnail?.[e(1063)])return!1;let i=document[e(796)](t[e(984)])?.[e(1083)]??t[e(464)],r=$?.[e(927)]($=>i.replaceAll(/{{\s*fg_product_handle\s*}}/gm,y(E($.original_product_shopify_id,$.original_product_handle),!0))[e(781)](/{{\s*fg_product_img\s*}}/gm,y(Q($[e(959)]),!0))[e(781)](/{{\s*fg_product_img_alt\s*}}/gm,y(O($.original_product_shopify_id,$[e(491)])))).join(""),c=document[e(796)](t[e(841)])?.[e(1083)]??t[e(1135)],o=c[e(781)](/{{\s*fg_gift_thumbnail_title\s*}}/gm,y(h(a[e(531)]?.title??e(691),e(1026)))).replaceAll(/{{\s*sca_fg_gift_thumbnail_items_section\s*}}/gm,r)[e(781)](/{{\s*fg_check_show_narrow\s*}}/gm,$?.[e(432)]>=4?"":"sca-d-none"),{gift_thumbnail_query:s}=FGSECOMAPP[e(576)]??{},n=[...s?.tool][e(605)](Boolean).join(","),d=[...s?.[e(972)],...s?.[e(534)]][e(605)](Boolean)[e(1076)](","),f=document[e(796)](n)??document.querySelector(d);if(!f)return;f[e(842)][e(671)][e(864)]="100%",f.parentNode[e(671)][e(777)]="auto",f.parentNode?.[e(601)]?.includes(e(1107))||f[e(842)]?.[e(729)]?.[e(939)]("sca-fg-form-thumbnail-product-page");let l=f[e(842)][e(796)](e(996));if(l)l[e(1083)]=o;else{(l=document[e(631)](e(838)))[e(792)]("id",e(518));let u=new DOMParser().parseFromString(o,e(659));l[e(1083)]=u[e(760)].innerHTML,f.parentNode.insertBefore(l,f)}f[e(842)][e(1036)](l,f);let g=document[e(796)](e(1116));if(g)switch(a.gift_thumbnail?.[e(756)]){case"32":g[e(671)][e(458)]=e(546);break;case"50":g[e(671)][e(458)]=e(789);break;case e(1009):g.style[e(458)]="70%";break;case e(645):g[e(671)][e(458)]="80%";break;case e(1021):g.style[e(458)]=e(657);break;default:g.style.maxWidth=e(789)}if($?.[e(432)]>=(Shopify?.[e(1112)]??4))new Glider(document[e(796)](".sca-list-gift-thumbnail"),{slidesToShow:(Shopify?.[e(1112)]??4)-1,slidesToScroll:1,draggable:!0,dots:e(989),arrows:{prev:e(866),next:"#fg-gift-thumbnail-title .glider-next"}});else{g&&(g[e(671)][e(458)]=e(657));let _=document[e(796)](".sca-list-gift-thumbnail");_&&(_[e(671)].display=e(823))}return $},$p=()=>{let $=x;if(!(FGSECOMAPP.fgAppearanceGiftIcon.product_page??{})[$(840)]?.status)return!1;let e=document[$(796)](t[$(446)])?.[$(1083)]??t[$(1139)],a=e[$(781)](/{{\s*fg_gift_icon\s*}}/gm,FGSECOMAPP[$(616)][$(557)])[$(781)](/{{\s*fg_gift_icon_alt\s*}}/gm,$(551))[$(781)](/{{\s*fg_class_product_or_collection_page\s*}}/gm,$(452)),{gift_icon_product_query:i}=FGSECOMAPP.QUERY_SELECTOR,r=[...i?.tool].filter(Boolean).join(","),c=[...i?.[$(534)],...i?.[$(972)]][$(605)](Boolean)[$(1076)](","),o=document[$(796)](r)??document.querySelector(c);if(!o)return;o[$(671)][$(1005)]=$(656),o[$(671)][$(864)]="fit-content",o[$(601)]?.[$(704)]($(623))||o[$(729)]?.[$(939)]($(623));let s=o[$(796)]($(541));if(s)s.innerHTML=a;else{(s=document[$(631)]($(838))).setAttribute("id",$(471));let n=new DOMParser()[$(422)](a,"text/html");s[$(1083)]=n[$(760)][$(1083)],o.appendChild(s)}return FGSECOMAPP[$(616)].gift_icon_path},$b=()=>{let $=x,t=[],{gift_icon_collection_query:e}=FGSECOMAPP[$(576)],a=[...e?.[$(1040)],...e?.[$(972)],...e?.[$(534)]][$(605)](Boolean)[$(1076)](",");return document[$(462)](a)[$(512)](x=>{let e=$,a=x.querySelector(e(682)),i=a?.[e(1041)](e(680))?.[e(1055)]("/")??[],r=i?.[e(687)](e(786)),c=r>=0?i[r+1]??null:null;if(c=c?.split("?")?.[e(1114)](),_(c)){x[e(1013)]();return}let o=x[e(796)](e(1025));if(o){x.remove();return}if(C(c))return;let s=decodeURI(c);C(FGSECOMAPP[e(808)][s]?.[e(865)])&&t[e(773)](s);let n=(FGSECOMAPP[e(808)][s]?.[e(533)]??[])[e(605)]($=>!x[e(794)]($));n.push(x),FGSECOMAPP[e(808)][s]={...FGSECOMAPP[e(808)][s],positions:[...n]}}),t},$m=$=>{let e=x;Object.keys($)?.[e(512)]($=>{let x=e,a=FGSECOMAPP[x(808)][$]?.[x(533)]??[];if(C(a)||!Array[x(454)](a))return;if(!(FGSECOMAPP[x(616)][x(949)]??{}).status)return;let i=document.querySelector(t[x(446)])?.innerHTML??t.GIFT_ICON_SECTION,r=i[x(781)](/{{\s*fg_gift_icon\s*}}/gm,FGSECOMAPP[x(616)][x(557)])[x(781)](/{{\s*fg_gift_icon_alt\s*}}/gm,x(551))[x(781)](/{{\s*fg_class_product_or_collection_page\s*}}/gm,x(1007));a[x(512)]($=>{let t=x;$[t(671)][t(1005)]=t(656),$.className?.[t(704)]("sca-fg-icon-collection-page")||$[t(729)]?.[t(939)](t(1089));let e=$.querySelector(t(1020));if(e)e[t(1083)]=r;else{(e=document[t(631)]("div"))[t(792)](t(535),t(726));let a=new DOMParser()[t(422)](r,t(659));e[t(1083)]=a[t(760)][t(1083)],$[t(901)](e)}})})},$h=async $=>{let t=x;await r(SECOMAPP.freegiftProxy+t(950)+FGSECOMAPP[t(891)][t(465)](JSON.stringify($)),{method:t(1151),headers:{"Content-Type":t(663)}})[t(1064)](async $=>{let x=t,e=await $[x(990)](),a=[];e?.[x(786)]?.[x(512)]($=>{let t=x;C($?.products?.id)||a.push({...$[t(786)],collections:$[t(550)],variants_quantity:$[t(1031)]})});let i=$_(a);$m(i)})[t(812)]($=>{let x=t;console[x(693)](x(750),$)})},$y=async $=>{let t=x,e=[];for(let[a,i]of $.entries())C(FGSECOMAPP[t(808)][i]?.[t(865)])&&e[t(773)](i),20===e[t(432)]&&(await $h([...e]),e=[]),a===$[t(432)]-1&&e[t(432)]>0&&(await $h([...e]),e=[])},$3=()=>{let $=$b(),t=$_();$m(t),$y($)[x(1064)]()},$v=()=>{let $=x;Shopify?.[$(1091)]&&document.addEventListener("change",function(){let x=$,t=new URL(document[x(588)]),e=parseInt(t[x(420)][x(762)](x(892)));FGSECOMAPP[x(505)](isNaN(e)?void 0:e)})};FGSECOMAPP[x(505)]=$=>{let t=x;if(!location[t(680)][t(704)](t(702)))return;document.querySelector(t(541))?.remove(),document.querySelector(t(996))?.[t(1013)]();let e=$_();if(C(e))return;let a=location[t(905)][t(1055)]("/"),i=a?.[t(687)](t(786)),r=decodeURI(i>=0?a[i+1]??null:null);if(!Object[t(1030)](e)?.[t(704)](r))return;let c=e[r],o=FGSECOMAPP[t(808)][r]?.[t(882)]??{},s=Object[t(1030)](o),n=!0;Shopify?.[t(1091)]&&(C($)||s[t(704)](""+$)||(n=!1),!C($)||C(Shopify?.[t(1044)]?.[t(879)])||s[t(704)](Shopify?.[t(1044)]?.[t(879)]?.id?.[t(987)]())||(n=!1),c=o[$??Shopify?.[t(1044)]?.[t(879)]?.id]??[]),n&&($2(c),$p(c)),document[t(532)](new CustomEvent(FGSECOMAPP[t(793)][t(1010)],{detail:{icon:FGSECOMAPP.fgAppearanceGiftIcon.gift_icon_path,gifts:$7(c),product:{handle:r,variant:$??Shopify?.[t(1044)]?.[t(879)]?.id}}}))},FGSECOMAPP.renderPromotionMessage=$=>{let e=x;try{if(!FGSECOMAPP[e(597)][e(848)])return;C($)&&($=[...FGSECOMAPP.offers]);let a=location.href[e(704)](e(1048)),i=[];if($?.[e(512)]($=>{let x=e;$[x(960)]||C($[x(628)])||!C(FGSECOMAPP[x(678)])&&!$[x(960)]&&$[x(1102)]>FGSECOMAPP[x(678)]||C(($[x(966)]??0)+($[x(447)]??0))&&/({{sca_min_total}})|({{sca_min_quantity}})/gm[x(1050)]($.promotion_message)||i[x(773)]({value:h($[x(628)],x(1049)+$[x(1127)])[x(781)]("{{sca_min_total}}",$.count_down_value?.toFixed(Shopify?.[x(952)]??2))[x(781)](x(699),$[x(447)]),offer_root:$[x(1127)]})}),document.dispatchEvent(new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[e(1029)],{detail:{data:i}})),C(i)){document[e(462)](e(969))[e(512)]($=>$.innerHTML="");return}let r=document.querySelector(t[e(611)])?.[e(1083)]??t[e(964)],c=i[e(927)]($=>r[e(781)](/{{\s*fg_cart_message\s*}}/gm,y($[e(976)])))[e(1076)](""),o=document[e(796)](t[e(900)])?.[e(1083)]??t[e(624)],s=o.replaceAll(/{{\s*sca_fg_cart_message_items_section\s*}}/gm,c),{cart_message_query:n}=FGSECOMAPP[e(576)],d=document[e(796)]([...n?.[e(534)]][e(605)](Boolean)[e(1076)](",")),f=document[e(462)]([...n?.[e(1040)],...n?.[e(972)]].filter(Boolean)[e(1076)](",")),l=document.querySelectorAll(e(969));C(l)||l[e(512)]($=>$[e(1083)]=s),(l=document.createElement(e(838))).setAttribute("id",e(898)),l[e(729)][e(939)](e(898));let u=new DOMParser()[e(422)](s,e(659));l[e(1083)]=u[e(760)][e(1083)],C(f)||f?.[e(512)]($=>{let x=e;if($.querySelector(x(969)))return;let t=l.cloneNode(!0);$[x(542)](t)}),!d?.[e(796)](e(969))&&(u=new DOMParser()[e(422)](s,e(659)),l[e(1083)]=u[e(760)][e(1083)],d&&a&&d.prepend(l)),document[e(462)](e(867))[e(512)]($=>{let x=new Glider($);(($,x)=>{let t=_0x2a75,e=$[t(433)][t(909)],a=null,i=1;function r(){a=setTimeout(()=>{i>=e&&(i=0),$.scrollItem(i++)},x)}$[t(676)].addEventListener(t(970),function(){window[t(737)](a),r()}),r()})(x,Shopify?.sca_deplay_cart_msg??3e3)})}catch(g){console[e(693)](e(476),g)}};let $5=async()=>{let $=x;try{let t=await r("https://geoip.secomtech.com/?json"),e=await t[$(990)]();FGSECOMAPP[$(502)]=e?.country_code}catch(a){console[$(693)]("BOGOS track: Failed to get customer location",a)}},$7=($,x)=>$?.map($=>{let t=_0x2a75;return{id:$[t(604)],title:O($[t(559)],$[t(491)]),handle:$[t(530)],thumbnail:$[t(959)],belongs_to_offer:$[t(716)]??""+x,variants:$[t(745)].map($=>{let x=t;return{id:$[x(475)],title:$[x(504)],price:$[x(1022)],original_price:$[x(869)],thumbnail:$[x(959)],discount_type:$[x(481)],discount_value:$[x(435)]}})}})??[],$4=()=>{let $=x;if(!FGSECOMAPP.fgAppearanceTodayOffer?.[$(849)]?.show_widget||!FGSECOMAPP[$(718)][$(432)])return;let e=document[$(796)]($(455)),i=document[$(796)]($(1132));if(!e||!i)return;let r=document[$(796)](t[$(669)])?.innerHTML??t[$(926)],c=document[$(796)](t[$(785)])?.innerHTML??t[$(1088)],o=document[$(796)](t[$(942)])?.innerHTML??t[$(545)],s={};FGSECOMAPP.offers[$(512)]($=>{s[$.offer_root]=$});let n=Object[$(586)](s);n.sort((x,t)=>new Date(x.start_time)-new Date(t[$(910)])),e[$(1083)]=o[$(781)](/{{\s*sca_fg_today_offer_widget\s*}}/gm,y(FGSECOMAPP[$(779)][$(955)]))[$(781)](/{{\s*sca-fg-title-icon-widget-content\s*}}/gm,y(h(FGSECOMAPP?.[$(779)]?.[$(849)]?.[$(653)]??$(439),$(845)))),FGSECOMAPP[$(779)]?.[$(849)]?.[$(627)]===$(467)&&(e[$(729)].add($(971)),document[$(796)]($(492))[$(671)][$(858)]=$(494)),FGSECOMAPP[$(779)]?.widget_info?.[$(627)]!=="icon"&&FGSECOMAPP[$(779)]?.[$(849)]?.[$(627)]||(e[$(729)].remove($(971)),document.querySelector("#sca-fg-today-offer-widget .sca-fg-title-icon-widget")?.[$(729)].add($(772))),"bottom_left"===FGSECOMAPP[$(779)]?.[$(849)][$(1056)]&&(e[$(729)].add($(444)),i[$(729)][$(939)]("sca-today-offer-left")),FGSECOMAPP[$(779)]?.widget_info[$(1056)]===$(763)&&(e[$(729)][$(939)]($(575)),i[$(729)].add($(590))),i[$(1083)]=r[$(781)](/{{\s*sca_fg_today_offer_title\s*}}/gm,y(h(FGSECOMAPP[$(779)][$(849)][$(1097)]??$(519),"customize.widget_title")))[$(781)](/{{\s*sca_fg_today_offer_subtitle\s*}}/gm,y(h(FGSECOMAPP[$(779)].widget_info.widget_subtitle??"Claim these exclusive offers today","customize.widget_subtitle")))[$(781)](/{{\s*sca_fg_today_offer_footer\s*}}/gm,y(a())),document[$(796)]($(459)).innerHTML=n[$(927)](x=>c[$(781)](/{{\s*sca_fg_offer_id\s*}}/gm,y(x[$(1127)]))[$(781)](/{{\s*sca_fg_offer_title\s*}}/gm,y(h(x.offer_name,"offer.offer_title_"+x.offer_root)))[$(781)](/{{\s*sca_fg_offer_title_tooltip\s*}}/gm,y(h(x.offer_name,"offer.offer_title_"+x.offer_root)))[$(781)](/{{\s*sca_fg_offer_img\s*}}/gm,y(x[$(738)][0].thumbnail,!0)))[$(1076)]("\n"),document[$(796)]($(492))[$(1083)]=n[$(432)][$(987)]();let d=()=>{let x=$,t=document.querySelector(x(1132));t?.[x(729)][x(1122)](x(585));let e=document[x(462)](".sca-fg-icon-success");e[x(512)]($=>{$.classList.toggle("sca-hide")})};document[$(796)]($(577)).addEventListener($(1129),d),document[$(796)]($(455)).addEventListener($(1129),d),document[$(532)](new CustomEvent(FGSECOMAPP[$(793)][$(553)],{detail:{todayOffers:n.map(x=>{let t=$,e=fgData[t(718)].find($=>$.id[t(987)]()===x[t(1127)]);return{id:""+e.id,title:h(x[t(711)],t(1032)+x[t(1127)]),gifts:$7(e[t(738)],e.id),success:x[t(960)]??!1}})}})),$S();let f=(x,t,e)=>{let a=$,i=document[a(631)]("p");i[a(601)]="sca-fg-tooltip",i[a(655)]=x,document[a(760)][a(901)](i),i[a(671)][a(850)]=e+"px",i[a(671)].left=t+"px",i[a(671)].display=a(428)},l=()=>{let x=$,t=document.querySelector(x(725));t&&t[x(842)][x(805)](t)},u=x=>{let t=$,e=document[t(796)](t(725));e&&(e[t(671)][t(850)]=x[t(727)]+"px",e.style[t(1098)]=x.pageX+5+"px")},g=document[$(462)]($(904));g.forEach(function(x){let t=$;x.addEventListener(t(982),function($){let e=t,a=x[e(1041)](e(1066));f(a,$[e(424)]+5,$[e(727)]+5)}),x[t(503)](t(822),function(){l()}),x[t(503)](t(613),u)})},$S=()=>{let $=x,t=[...new Set(FGSECOMAPP.offers?.[$(605)]($=>$.isReachConditions)?.[$(927)](x=>x[$(1127)]))];document[$(532)](new CustomEvent(FGSECOMAPP[$(793)][$(426)],{detail:{idOffersSuccess:t}}));let e=document[$(462)]($(957));e[$(512)](x=>{let e=$;t[e(704)](x[e(1041)](e(1069)))?x.classList.add(e(675)):x.classList.remove("sca-offer-archived")})},$T=async()=>{let $=x,t=document.querySelector($(1017));if(t&&t[$(549)]){let e=(t.getSectionsToRender&&t.getSectionsToRender()||[]).map(x=>x[$(743)]||x.id)[$(1076)](","),a={...FGSECOMAPP.SHOPIFY_CART};return await u(["/",{headers:{sca_fetch_sections:1}}],e||FGSECOMAPP[$(832)][$(1095)],{},a),t[$(549)](a),t[$(729)]?.[$(1122)]($(636),0===a[$(1140)]),document[$(1090)]($(809))?.[$(729)]?.[$(1122)]("is-empty",0===a[$(1140)]),document[$(1090)]("main-cart-footer")?.[$(729)]?.[$(1122)]("is-empty",0===a[$(1140)]),!0}return!1},$w=function(){let $=x;try{document[$(503)](FGSECOMAPP.CUSTOM_EVENTS[$(819)],async()=>{let x=$;try{await $T()}catch(t){console[x(693)](x(1e3),t)}try{window[x(606)]&&(unicart[x(532)]("Show"),console.log(x(903)))}catch(e){console.warn(x(903),e)}try{window[x(487)]&&(await window[x(487)](),console[x(567)]("BOGOS track: iCart"))}catch(a){console.warn(x(573),a)}try{window[x(765)]?.Cart?.[x(817)]&&(window[x(765)].Cart.fetchCart(),console[x(567)](x(1086)))}catch(i){console[x(693)](x(1086),i)}try{window[x(1144)]&&(await $o(x(1018))[x(1064)]($=>{window.SLIDECART_UPDATE($),window[x(618)]()}),console.log(x(720)))}catch(r){console[x(693)](x(720),r)}try{let c=document[x(796)](x(825));window[x(821)]&&(await window[x(821)](),console.log(x(560)),c&&(c[x(1083)]=FGSECOMAPP?.[x(868)]?.[x(1140)]??0))}catch(o){console[x(693)](x(560),o)}try{window.STICKY_CART_UPDATE&&(await window.STICKY_CART_UPDATE(),window[x(526)](),console[x(567)](x(827)))}catch(s){console.warn(x(827),s)}try{window?.[x(719)]?.[x(644)]?.CartSlider?.openSlider&&(await window.SATCB[x(644)][x(1084)].openSlider(),console[x(567)]("BOGOS track: Sticky Cart - Codeinero"))}catch(n){console[x(693)]("BOGOS track: Sticky Cart - Codeinero",n)}try{window[x(886)]&&(await window[x(886)](),window.openCart(),console[x(567)](x(933)))}catch(d){console[x(693)](x(933),d)}try{window[x(885)]&&await (window[x(885)](),window[x(997)](),console.log(x(569)))}catch(f){console[x(693)](x(569),f)}try{let l=document[x(796)](x(648)),u=document[x(796)](x(854));window[x(930)]&&l&&(await l?.[x(609)](!window[x(1035)]?.[x(566)]),l?.[x(803)]()),window[x(1131)]&&u&&(await u?.[x(1134)](),u?.[x(498)]?.[x(1015)]())}catch(g){console[x(693)]("BOGOS track: Theme FoxEcom",g)}try{window.CartJS&&await (CartJS?.[x(742)](),console[x(567)]("BOGOS track: Rivets Cart"))}catch(_){console.warn(x(919),_)}try{window[x(495)]?.[x(617)]?.getToFetch&&await (T4SThemeSP[x(617)][x(507)](),console.log(x(755)))}catch(p){console[x(693)](x(755),p)}}),window.addEventListener($(607),function(){FGSECOMAPP.renderPromotionMessage(),FGSECOMAPP[$(962)]()}),document[$(503)]($(438),()=>{let x=$;FGSECOMAPP[x(1059)](),FGSECOMAPP[x(962)]()}),window[$(894)]=function(){let x=$;FGSECOMAPP[x(1059)](),FGSECOMAPP[x(962)]()},window[$(965)]=()=>{FGSECOMAPP[$(1059)](),FGSECOMAPP.fetchCheckoutEvents()},window.MinimogEvents?.[$(1138)]&&window[$(1081)][$(1138)](window.MinimogTheme?.pubSubEvents?.[$(695)]??"open-cart-drawer",function(){let x=$;FGSECOMAPP[x(1059)](),FGSECOMAPP[x(962)]()}),document[$(503)](FGSECOMAPP[$(793)][$(1060)],()=>{let x=$;try{typeof window[x(537)]===x(483)&&window[x(537)](),typeof window.closeCart===x(483)&&window[x(830)](),typeof window[x(871)]===x(483)&&window[x(871)](),document.querySelector(x(485))?.[x(1129)]()}catch(t){console.warn(x(683),t)}}),document[$(503)](FGSECOMAPP.CUSTOM_EVENTS[$(715)],x=>{let t=$;try{!Shopify?.[t(474)]&&window.Rebuy?.[t(617)]?.[t(817)]&&window[t(765)][t(617)].fetchCart(),x.detail[t(802)]?.[0]?.includes(t(1109))&&!document[t(796)]("#UpcartPopup:has(#CartPopup[class*='styles_active'])")&&window[t(821)]&&window[t(821)]()}catch(e){console.warn(t(977),e)}})}catch(t){console[$(693)]("BOGOS track: Failed integrate apps",t)}};$e(FGSECOMAPP[x(1023)])[x(1064)](()=>{$w()})}();