window.fgData={"offers":[],"settings":{"auto_add_gift":false,"compare_gift_price_with_product":false,"cal_gift_discount":"current_price","select_one_gift_price":false,"not_show_gift_if_already_on_cart":false,"sync_quantity":false,"manual_input_inventory":false,"using_draft_order":false,"delete_gift_after_turn_off_offer":true,"gift_format":"same_as_original_products","admin_api_access_token":null,"notify_via_email":{"status":false},"barcode":"blank","type_seo":"number_integer","mode_override_checkout":"default"},"appearance":{"gift_slider":{"general":{"gift_popup_title":"Select your free gift!","add_to_cart_btn_title":"Add to cart","running_text":"","select_gift_btn":"Select variants","show_product_title":true,"show_variant_title":true,"show_pagination":true,"show_gift_for_customer":"by_variants","number_product_slider":4},"color":{"gift_slider_title_color":"#121212","product_title_color":"#000000","original_price_color":"#121212","discounted_price_color":"#ea5455","add_to_cart_color":"#1c1c1c","add_to_cart_btn_color":"#ff66c9"},"others":{"hidden_brand_mark":true,"gift_img_size":"&width=480&height=480"},"disable_slider_checkbox":{"enable":false,"time":10,"text":"Don't show this offer again"}},"gift_icon":{"gift_icon_path":"images\/fg-icons\/fg-icon-yellow.png","shopify_gift_icon_path":"fg-icon-yellow.png","product_page":{"gift_icon":{"status":true,"size":"50"},"gift_thumbnail":{"status":true,"size":"100","title":"Free Gift"}},"collection_page":{"status":true,"size":"50"}},"promotion_message":{"show_on_cart_page":true,"text_color":"#ffffff","background_color":"#F72119"}}};/* END_FG_DATA */ const _0x594d89=_0x1396;function _0x1396($,x){let t=_0x28b4();return(_0x1396=function($,x){return t[$-=458]})($,x)}function _0x28b4(){let $=["Sticky Cart - Codeinero","#fg-gift-thumbnail-title .glider-next","appendChild","fgCallback","customer_order_history","sca-today-offer-left","customer_tags","fg-gifts:show-thumbnail","pageX","gift_settings","hasDoneProcessCheckout","childElementCount","charAt","toString","2tnBydJ","country_code","#MainContent, #mainContent, #main, .main-content","querySelector","removeItem","condition_relationship","GIFT_THUMBNAIL_ITEMS_SECTION_ID","not have orders and gifts","/cart/update","variant","product_narrow","sca_handle_checkout","sca-gift-thumbnail","?sca_attr_cart","/cart/change","original_product_handle","settings","CUSTOM_EVENTS","compare_gift_price_with_product","max_amount","parentElement","auto add gift: {","unshift","sort",".dots","auto","sca_checkout_form","widget_icon_path","cal_gift_for_other_rules","gift_popup_title","data-variant",".fg-secomapp-handle-add-to-cart","GIFT_ICON_SECTION","monster_refresh","clone_product_handle","clone_checkout","Failed to get customer location","hasDiscount","sca_fg_title_product_gift_icon_query","sca-gift-icon-img","10gxQmFQ","integration","$",'\n \n \n \n \n \n ',"substring",'{{ fg_gift_icon_alt }}',"Select variant","sca_slidecart_tcc","free-gift-icon",".sca-gift-icon-collection-page","order_created_from","customer","backgroundColor","text","stop_offer","-sca_clone_freegift","relative","sca-fg-icon-collection-page","disabled","add_to_cart_btn_color",".freegifts-main-container .glider-prev","100%","select_gift_btn","POST","49OheVvH","SHOW_GIFT_SLIDER",".freegifts-main-container .slide-container #sca-hidden-gift-popup .sca-disable-checkbox","arrOfferAdded","sca_process_gifts","Unicart","now","others","customerLocation","[data-open]",'
\n \n {{ fg_product_img_alt }}\n \n
',"gift_should_the_same","fgAppearance","Select your free gift!","cartDrawer","Cart","GIFTS_CART_SECTION_ID","product_shopify_id","cal_gift_price",".dots-thumbnail","#fg-gift-items .dropdown > .dropdown-menu > li","FG_OVERRIDE_FETCH","url",".sca-promotion-message-layout","ele","#sca_fg_today_offer_section","event add gift to cart from popup","dispatchEvent","data-price","cloneNode","default","#sca-gift-thumbnail","compare_at_price","currentTarget","#sca-spinner-checkout","count_down_quantity","createElement","variants","item_count","#shopify-section-header #cart-icon-bubble, .shopify-section.section-header #cart-icon-bubble","every","entries","value_customer_tags","button.new_checkout_button, input[value='Checkout'], input[value='Checkout'], input[value='Check out']","headers","disable_slider_checkbox","cal_gift_discount","original_price","hide","show_widget","sca-fg-today-offer-title-tooltip","#sca_fg_cart_message_section","#sca-gift-icon","Cannot define custom loading with type: ","product_type",'
{{ 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
',"sca-today-offer-widget-left","SLIDECART_OPENED","sync_quantity",'fg-widget-today-offer\n ',"original_product_shopify_id","div","clearInterval","END_VALIDATE_CHECKOUT","type_customer_locations","start_time","replaceAll","FGSECOMAPP","disable_async_process_fg","sca_fetch_cart","money","widget_position","src","shopify_widget_icon_path","glider-animated","number_of_gift_can_receive","fgSettings","textContent","join","checked","fgAppearanceGiftSlider","flex","{{sca_min_quantity}}","shopify_cart","fgAppearanceTodayOffer","GIFTS_CART_SECTION","split","#sca_fg_gift_icon_section","end","QUERY_SELECTOR",'\n
\n Powered by\n \n BOGOS: Free Gift & Buy X get Y\n \n \n
\n ',"#sca_fg_cart_message_items_section","sections","[type='submit'][name='add'], [type='button'][name='add'], [data-add-to-cart], [data-action='add-to-cart']","sca_root_checkout","freegiftProxy","isReachConditions","GIFT_THUMBNAIL_ITEMS_SECTION","removeAttribute","data-fg-checkout-btn","stopPropagation","map","current_product","open","537201orbPxr","email","shift","TODAY_OFFER_SECTION_ID","sca_fg_price","today_offer","tabindex","time","sca_text_notify_success","offer_id","show_gift_for_customer","sca-d-none","count_down_value","Monster Cart","json","click","GIFT_ADDED","GIFTS_POPUP_SECTION_ID","widget_title","181416kGUdZB","5SSTCBw","left","forEach",'
\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
',"TODAY_OFFER_SECTION","productsByID","appearance","get","number_gifts_thumbnail","GET","arrGiftsAdd","MinimogEvents",".sca-list-gift-thumbnail",".fg-secomapp-collection-img","reload","Rebuy","scaCustomLoadingCheckout","Escape","title","size","enable_toast_added","setAttribute","CART_MSG_ITEM_SECTION","disable_override_xhr","customer_locations","created_at",".fg-secomapp-cart-icon","original_variant_shopify_id","openDrawer","getElementById","this is others","open-cart-drawer","not type checkout btn","event auto process gifts with cart","3846336bvNQyM","Loading...","slice","fg-xhr:send","sca_offers_added","openSlider","sca_fg_codes","end_time","closeCart","active","sca-promotion-message-layout","gifts","#sca_fg_gift_thumbnail_section","promotion_message","function","upcartOnCartOpened",'a[href*="/products/"]',"enable_check_variants_has_gift","checkIsBlockCheckout",".satcb-cs .satcb-cs-top-container, #monster-upsell-cart #monster-cart-wrapper div[class*=custom_scrollbar]","undefined","total_spend_on_order_history","product_page","sca-fg-tooltip","arrGiftsRemove",".f\\:featured-collection .f\\:featured-collection-block .f\\:column",".sca-fg-tooltip","product_has_icon","GIFT_UPDATED","block","cart","priority","flat","gift_items",'\n \n \n \n \n \n \n ',"giftsAvailable","type_customer_tags","variants_quantity","location","scaCountRenderEventCheckout","select_one_gift_price","Claim these exclusive offers today","concat","CART_AUTO_UPDATED","by_variants","handle","collections","Don't show this offer again","#sca-fg-today-offer-widget .sca-fg-count-offers","70%","currency","#82868b","(Discount)",".gift-original-url","class",".product_name, .product-title, .product__title, .product-single__title, .tt-title, .ProductMeta__Title","959672NytsBx","USD","sca_catch","variant_id","string","sca-fg-form-thumbnail-product-page","#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg","hasAttribute","reduce","Theme FoxEcom","test","sca_deplay_cart_msg","info","catch","XMLHttpRequest","subscription_products","giftsAdded","iCart","parentNode","number_of_products","Update cart.attributes ","contains","fg-fetch:override","#fg-gift-items .dropdown","attributes","preventDefault","sca-gift-icon-collection-page","total_spent_on_last_order","sca_update_url","Can not fetch all body","secomappGetCartRunning","sca-today-offer-right","sub_conditions","format","gift_products","cart-drawer .mini-cart__inner .mini-cart__empty, cart-drawer .mini-cart__inner .mini-cart__main","positions",".icartCheckoutBtn, .rebuy-cart__checkout-button, .qsc2-checkout-button, #mu-checkout-button","indexOf","freegifts-main-popup-container","have_not_got_gift_from_this_offer","freegift_attributes",".fg-secomapp-product-title","GIFT_THUMBNAIL_SECTION_ID","product_types","SATCB","customLoadingCheckout","variants_ids","50%","sca_add_url",'a[href*="/collections/sca_fg"]',"SLIDECART - HQ","SLIDECART_CLOSE","className","Error listening XHR send","mouseleave","number_product_slider","upcartRegisterAddToCart","mode_override_checkout","1042328bDOGvU","widget_subtitle","giftsAddedInvalid","value","product","prepend","fg-checkout:start","stringify","fg-checkout","text/html","unit","reRenderCartCustom","defineProperty","application/json","GIFTS_POPUP_SECTION","14191047zzzYGx","sca-offer-archived","current_collection","offers","FGSECOMAPP_HIDDEN_GIFT_POPUP","compare_gift_price","DISABLE_SLIDER_SECTION",".btn-add-to-cart.sca-fg-out-stock","tags","sca_fg_innerHTML","/products/","GIFT_ICON_SECTION_ID","[sca_root_checkout]","drawer-component#Drawer-Cart cart-drawer","/cart","includes","startsWith","offer_name","?sca_add_gift","scaHandleConfigValue",".sca-promotion-glider","then",'
\n
\n \n
\n
\n \n {{ fg_original_price }}\n \n {{ fg_gift_price }}\n
\n \n \n \n \n
\n
\n
',"pubSubEvents","URL","#sca-fg-today-offer-iframe","#sca_fg_section_gift_item","Out of stock","setItem","variant_title","fg-cart:start-process","remove","some","#close-fg-toast","and","Add to cart","parseFromString","#sca_fg_today_offer_item_section","price_max",'.btn-add-to-cart[data-variant="',"show_pagination",".product-card, #product-grid .grid__item, .product-grid .grid__item, .card-list .card-list__column","compressToEncodedURIComponent","enable","STICKY_CART_UPDATE","invoice_url","log","key","error","/cart.js?sca_fetch&","sca_price","redirected","60%","sca-gift-icon","max_gifts_can_get","MinimogTheme","auto_add_gift","#sca_fg_disable_slider_section","#sca-fg-today-offer-iframe .sca-fg-body .sca-fg-offers","auto_add_all_gifts","isSameNode","SHOPIFY_CART","sections_cart","arrGiftsData","FG_OVERRIDE_XHR_OPEN","current_variant","original_compare_at_price","items","toFixed","discounted_price","END_PROCESS_CART","addEventListener","&width=480&height=480","include","variants_has_gift","removeChild",".fg-secomapp-cart-item-promotion","mouseenter","addGiftToCart","fgAppearancePromotionMessage","innerHTML","&sca_shop_name=","GIFT_THUMBNAIL_SECTION","scrollItem","renderPromotionMessage","Show","gift_icon","Widgets","api","cartItems","sca_clone_checkout","application/json;","sections_url","getTime","prototype","#fg-gift-thumbnail-title","fgData","isDelayShowAdded","sca_link_checkout","start","floor","root","application/liquid","#fg-gift-items","width","SHOW_GIFT_THUMBNAIL","specific_link_address","#sca_fg_section_gifts_popup","min_amount","product_vendors","HS_SLIDE_CART_OPEN","tool","append","SLIDECART_UPDATE","rate","set","routes","sca_add_gift","track","trigger_body","/cart/add","input[name='goto_gc'], button[name='goto_gc'], a[href$='checkout'], form[action='/checkout'] input[type='submit']","customGiftImgSize","removeEventListener","final_price","max","quantity","manual_input_inventory","enable_process_offer_loading","offer_root","searchParams","belongs_to_offer","DISABLE_SLIDER_SECTION_ID","display","freegifts-main-page-container","classList","352ejImkx","openCartDrawer","filter","padding","thumbnail","sca_fg_value_checkout","do_not_add_freegift_attribute","#fg-gift-items .btn-add-to-cart","selling_plan_allocation","color","using_draft_order","value_customer_locations","type","position","prepareDataForDisplayWidgetByRule","not using draft order","Shopify.getCart","add_to_cart_btn_title","timeoutId","NumberFormat","#sca-fg-today-offer-widget","focus","products","visibility","compressToBase64","stop_lower_priority","message",".f-product-single__title, .m-product-title","last_total","status",'
\n
\n \n {{ sca_fg_offer_title }} \n
\n \n \n \n \n \n
',"boolean","action","locale",'
\n \n \n
',"HS_SLIDE_CART_CLOSE","onCartDrawerUpdate","gifts_valid","apply","getItem","parse","freegifts","subscribe","fg-gift-items","variant_shopify_id","&sca_products_handle=","100","trim","fg-cart:end-process","values","maxOfferPriority","fgAppearanceGiftIcon","variantId","body","HS_SLIDE_CART_UPDATE","fg-cart:auto-updated","getCart","sca-fg-form-icon-product-page",".selected-variant","3335496PWdGXD",'
\n {{ sca_fg_cart_message_items_section }}\n
',"find","gift_slider","not_show_gift_if_already_on_cart","div[class*=hs-cart-drawer] .hs-site-cart-popup-layout, #MinimogCartDrawer m-cart-drawer-items, #CartDrawer","toggle","#UpcartPopup:has(#CartPopup[class*='styles_active'])","dataset","Slide Cart - Heysenior",".sca-fg-close-today-offer","length","fetchCart","href",".m-product-form--wrapper","isUpdateCart","TODAY_OFFER_ITEM_SECTION","readyState","product_id",".dropdown-menu","SLIDECART_OPEN","productsInPage","bottom_right","is_multiply","sca-show",'
  • \n {{ fg_variant_title }}\n
  • ',"240","offer","fetch","Add gift to cart successfully!","show_variant_title","widget_info","gift_thumbnail","innerText","fg-gifts:updated","TODAY OFFER","Default Title","keys","send","sca-is-visible-fg","price","push","formatter","} {","fetchCheckoutEvents",'

    \n {{ fg_cart_message }}\n

    ',"object","GIFT_SELECT_SECTION","6px 0",'
    \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
    ',"insertBefore","style","getAttribute","number_of_order","fg_fetch_attributes","cookie","target","$$$$","&data_checkout=","active ","stopImmediatePropagation","sca_fg_cart_drawer_query",".cc-product-list .product-block, .collection-list.grid .grid__item, .collection-grid.grid .grid__item","#secomapp_freegifts_version","change","#sca_fg_cart_section_gifts_slider","sca_locale","show_on_cart_page",'
    \n
    \n {{ fg_slider_title }}\n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n \n {{ sca_fg_disable_slider_section }}\n
    ',"bottom_left","UpCart - AfterSell","unicart","data-template",".icart-inner .icartContain, .rebuy-cart__flyout-body, #slidecarthq .slidecarthq","top","disableShopify_getCart","querySelectorAll","gift_icon_path","CART_MSG_SECTION_ID","vendor","CART_MSG_ITEM_SECTION_ID","add","product_collections","checkout","Error decoding cookie:","pageY","TODAY_OFFER_WIDGET_ID","replace","sca-fg-out-stock","maxWidth","offer_conditions","initializeForXHR"];return(_0x28b4=function(){return $})()}if(!function($,x){let t=_0x1396,e=$();for(;;)try{let a=parseInt(t(707))/1*(parseInt(t(1044))/2)+-parseInt(t(875))/3+parseInt(t(601))/4+parseInt(t(895))/5*(-parseInt(t(929))/6)+parseInt(t(771))/7*(parseInt(t(985))/8)+parseInt(t(1059))/9*(-parseInt(t(747))/10)+-parseInt(t(542))/11*(-parseInt(t(894))/12);if(802785===a)break;e.push(e.shift())}catch(i){e.push(e.shift())}}(_0x28b4,802785),window[_0x594d89(502)]?.[_0x594d89(901)]?.[_0x594d89(492)]?.gift_icon_path&&fgGiftIcon&&(window[_0x594d89(502)][_0x594d89(901)][_0x594d89(492)][_0x594d89(678)]=fgGiftIcon),window.fgData?.[_0x594d89(901)]?.today_offer?.[_0x594d89(844)]&&fgWidgetIconsObj){let $=window[_0x594d89(502)][_0x594d89(901)].today_offer[_0x594d89(844)];window[_0x594d89(502)][_0x594d89(901)].today_offer[_0x594d89(734)]=fgWidgetIconsObj[$]??$}!function $(){let x=_0x594d89;window[x(838)]={},FGSECOMAPP[x(592)]=null,FGSECOMAPP[x(495)]=Object[x(591)](Shopify?.[x(495)]??{}),FGSECOMAPP[x(1062)]=[],FGSECOMAPP[x(847)]=window[x(502)]?.[x(723)]??{},FGSECOMAPP[x(783)]=window[x(502)]?.appearance??{},FGSECOMAPP.fgAppearanceGiftSlider=FGSECOMAPP[x(783)]?.[x(604)]?.general,FGSECOMAPP[x(593)]=FGSECOMAPP[x(783)]?.[x(492)],FGSECOMAPP.fgAppearancePromotionMessage=FGSECOMAPP[x(783)]?.[x(942)],FGSECOMAPP.fgAppearanceTodayOffer=FGSECOMAPP.fgAppearance?.[x(880)],FGSECOMAPP[x(696)]=[],FGSECOMAPP.secomappGetCartRunning=!1,FGSECOMAPP[x(774)]=[],FGSECOMAPP.scaCountRenderEventCheckout=0,FGSECOMAPP[x(947)]=!1,FGSECOMAPP.scaHandleConfigValue={...Shopify?.scaHandleConfigValue},FGSECOMAPP[x(1055)]=Shopify?.[x(1055)]??void 0,FGSECOMAPP[x(911)]=Shopify?.[x(911)]??void 0,FGSECOMAPP.productsInPage={},FGSECOMAPP[x(900)]={},FGSECOMAPP[x(703)]=!1,FGSECOMAPP.sections_cart={},FGSECOMAPP[x(616)]=!1,FGSECOMAPP[x(467)]={},FGSECOMAPP[x(1109)]=Shopify?.[x(879)]??x(475),FGSECOMAPP.CUSTOM_EVENTS={SHOW_GIFT_SLIDER:"fg-gifts:show-slider",SHOW_GIFT_THUMBNAIL:x(700),GIFT_UPDATED:x(635),GIFT_ADDED:"fg-gifts:added",CART_AUTO_UPDATED:x(597),GIFT_TO_CART:"fg-gifts:render-cart",START_PROCESS_CART:x(1089),END_PROCESS_CART:x(590),START_VALIDATE_CHECKOUT:x(1050),END_VALIDATE_CHECKOUT:"fg-checkout:end",FG_OVERRIDE_FETCH:x(1007),FG_OVERRIDE_XHR_OPEN:"fg-xhr:open",FG_OVERRIDE_XHR_SEND:x(932)};let t={GIFTS_CART_SECTION_ID:x(666),GIFTS_CART_SECTION:x(669),GIFTS_POPUP_SECTION_ID:x(513),GIFTS_POPUP_SECTION:x(650),GIFT_ITEM_SECTION_ID:x(1085),GIFT_ITEM_SECTION:x(1081),GIFT_SELECT_SECTION_ID:"#sca_fg_variant_select_section",GIFT_SELECT_SECTION:x(626),DISABLE_SLIDER_SECTION_ID:x(463),DISABLE_SLIDER_SECTION:x(576),CART_MSG_SECTION_ID:x(822),CART_MSG_SECTION:x(602),CART_MSG_ITEM_SECTION_ID:x(862),CART_MSG_ITEM_SECTION:x(646),GIFT_THUMBNAIL_SECTION_ID:x(941),GIFT_THUMBNAIL_SECTION:x(826),GIFT_THUMBNAIL_ITEMS_SECTION_ID:"#sca_fg_gift_thumbnail_items_section",GIFT_THUMBNAIL_ITEMS_SECTION:x(781),GIFT_ICON_SECTION_ID:x(858),GIFT_ICON_SECTION:x(752),TODAY_OFFER_SECTION_ID:x(796),TODAY_OFFER_SECTION:x(898),TODAY_OFFER_ITEM_SECTION_ID:x(1096),TODAY_OFFER_ITEM_SECTION:x(572),TODAY_OFFER_WIDGET_ID:"#sca_fg_today_offer_widget",TODAY_OFFER_WIDGET:x(830)},e=()=>{let $=x,t=FGSECOMAPP[$(783)]?.[$(604)],e=t?.[$(778)]?.hidden_brand_mark,a=!C(t)&&void 0!==e&&!e;return a?$(861):""},a=()=>{let $=x,e=FGSECOMAPP[$(783)]?.[$(604)],a=e?.[$(816)]??{};document[$(710)]($(773))?.[$(850)]&&localStorage[$(1087)]($(1063),""+Date[$(777)]());let i=document[$(710)](t[$(538)])?.[$(486)]??t[$(1065)];return a?.[$(1102)]?i[$(837)](/{{\s*fg_text_disable_slider\s*}}/gm,m(a.text??$(976))):""},{fetch:i}=window,r=()=>{let $=x;document.querySelector($(664))?.getAttribute($(673))!==$(1052)&&(window[$(629)]=async(...x)=>{let t=$;try{let e=x[0];if(!(e?.[t(1074)](t(526))||e?.[t(1074)](t(721))||e?.[t(1074)]("/cart/update")))return setTimeout(function(){$m()},1e3),await i(...x);{let a=e?.[t(1074)](t(526)),r=e?.[t(1074)](t(721))||e?.[t(1074)](t(715));n(x[1]);let c=200,o=null,s=await i(...x)[t(1080)]($=>{let x=t;return(o=$,c=$[x(571)],$[x(1110)])?$:$[x(889)]()})[t(998)]($=>{console[t(1107)]($)});if(document[t(798)](new CustomEvent(FGSECOMAPP[t(724)][t(792)],{detail:{args:x,response:o,FGSECOMAPP:FGSECOMAPP}})),a&&x[1][t(815)]?.[t(523)]&&200!==c){let f=JSON[t(582)](x[1][t(595)])?.id,g=document.querySelector(t(1098)+f+'"]');g[t(634)]=t(1086),g[t(541)].contains(t(689))||g[t(541)].add(t(689)),g.disabled=!0,g[t(652)][t(545)]="",g.style[t(759)]=t(980),document[t(677)](".btn-add-to-cart")[t(897)]($=>{let x=t;parseInt($[x(653)](x(737)))===f||$[x(541)][x(1006)](x(689))||($[x(765)]=!1,$[x(652)][x(759)]=FGSECOMAPP[x(783)]?.gift_slider?.[x(551)]?.[x(766)]??"#7367f0")})}if(200!==c&&(a&&x[1][t(815)]?.[t(523)]||r&&x[1][t(815)]?.[t(775)]))return l(s,o);if(Shopify?.[t(839)])return $o([e,...x[t(931)](1)]).then(),l(s,o);if(await $o([e,...x[t(931)](1)]),r&&x[1]?.[t(815)]?.[t(775)])return l(s,o);let u=r?FGSECOMAPP[t(467)]??s??{}:s;return await d(x,s,u),l(u,o)}}catch(_){return await i(...x)}})},c=window[x(999)][x(500)].open,o=window[x(999)].prototype[x(639)],s=()=>{let $=x;Shopify?.[$(918)]||(window[$(999)][$(500)][$(874)]=function(x,t){let e=$;try{document.dispatchEvent(new CustomEvent(FGSECOMAPP[e(724)][e(470)],{detail:{fgXHR:this}}))}catch(a){console[e(1107)]("Error listening XHR open",a)}finally{c[e(580)](this,arguments)}},window[$(999)][$(500)].send=function(x){let t=$;try{document[t(798)](new CustomEvent(FGSECOMAPP[t(724)][t(470)],{detail:{fgXHR:this}}));let{_url:e}=this;(e?.[t(1074)]("/cart/add")||e?.[t(1074)]("/cart/change")||e?.[t(1074)]("/cart/update"))&&this[t(477)]("readystatechange",function(){let $=t;this[$(618)]===XMLHttpRequest.DONE&&200===this[$(571)]&&$o([e,{}])[$(1080)]()})}catch(a){console[t(1107)](t(1039),a)}finally{o.call(this,x)}})};FGSECOMAPP[x(692)]=()=>{let $=x;try{if(Shopify?.[$(676)]||typeof Shopify?.[$(598)]!==$(943))return;Shopify[$(598)]=async function(x){let t=$;if(!FGSECOMAPP[t(1015)]){FGSECOMAPP[t(1015)]=!0,await $o([t(558),{}]);let e=await $i("sca_cart_xhr");typeof x===t(943)&&(0>FGSECOMAPP[t(696)].indexOf(x)&&FGSECOMAPP[t(696)][t(642)](x),x(e)),FGSECOMAPP[t(1015)]=!1}FGSECOMAPP.fetchCheckoutEvents()},"undefined"!=typeof ShopifyAPI&&void 0!==ShopifyAPI[$(598)]&&(ShopifyAPI.getCart=Shopify?.[$(598)]),void 0!==Shopify?.api&&typeof Shopify?.[$(494)].getCart!==$(949)&&(Shopify.api[$(598)]=Shopify?.[$(598)])}catch(t){console.error(t)}};let n=$=>{let t=x;try{let e=$?.[t(595)];e instanceof FormData?FGSECOMAPP[t(468)]={sections:e.get(t(863)),sections_url:e[t(902)]("sections_url")}:typeof e===t(989)&&(e=JSON.parse(e),FGSECOMAPP.sections_cart={sections:e?.sections,sections_url:e?.[t(498)]})}catch(a){FGSECOMAPP[t(468)]={}}},l=($,t)=>{let e=x;try{let a=Shopify?.[e(655)]??[e(793),"type","redirected","ok"],i=new Response(JSON[e(1051)]($),t);for(let r of a)Object[e(1056)](i,r,{value:t[r]});return i}catch(c){return new Response(JSON[e(1051)]($))}},f=async()=>{let $=x;if(Shopify[$(548)])return;let t=[];if(!C(FGSECOMAPP[$(774)]))for(let e of(t[$(642)]("SECOMAPP_FREEGIFT"),FGSECOMAPP[$(774)])){let a=FGSECOMAPP.offers.find(x=>x.id===e[$(537)])?.sub_conditions?.[$(512)];C(a)||t[$(642)](a)}if(t[$(730)](),t[$(706)]()!==FGSECOMAPP?.[$(467)]?.[$(1009)]?.[$(1026)])try{await i((Shopify?.[$(1013)]??$(715))+$(720),{method:$(770),headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":$(497)},body:JSON[$(1051)]({attributes:{freegift_attributes:t[$(706)]()}})})}catch(r){console.error($(1005)+r[$(568)])}},d=async($,t,e)=>{let a=x;try{if($[1]?.[a(815)]?.[a(775)])return;let r={},c=Object[a(638)](t.sections??{})?.[a(544)]($=>C(FGSECOMAPP.sections_cart[$]))??[];if(c&&c[a(612)]&&FGSECOMAPP[a(616)]&&(r=await i("/?sections="+c[a(849)](",")).then($=>$[a(889)]())),FGSECOMAPP.isUpdateCart=!1,r={...FGSECOMAPP.sections_cart,...r},C(r))return;t[a(863)]={...t[a(863)],...r},C(e)||(e[a(863)]={...t.sections})}catch(o){}};FGSECOMAPP[x(484)]=async($,t,e)=>{let a=x;try{let i=FGSECOMAPP[a(774)][a(603)](x=>e===x[a(537)]?.toString()&&$===x[a(594)]);i?i[a(532)]+=t:FGSECOMAPP[a(774)][a(729)]({variantId:$,belongs_to_offer:e,quantity:t}),localStorage[a(1087)](a(933),LZString[a(566)](JSON.stringify(FGSECOMAPP[a(774)]))),p(a(505));let r=await fetch((Shopify?.[a(1034)]??"/cart/add.js")+a(1077),{method:a(770),headers:{Accept:"application/json","Content-Type":a(1057),sca_add_gift:!0},body:JSON[a(1051)]({quantity:t,id:$})});return await r[a(889)]()}catch(c){return!1}};let g=async($,t,e)=>{let a=x;e=e?.[a(706)]();let i=document[a(677)]("#fg-gift-items .btn-add-to-cart");i.forEach(x=>{let t=a;x[t(765)]=!0;let e=x[t(653)](t(737))-0;e===$&&(x.style[t(545)]=t(649),x[t(486)]=t(750)),x[t(652)][t(759)]=t(980)});let r=await FGSECOMAPP[a(484)]($,t,e);r&&(i.forEach(x=>{let t=a;x[t(765)]=!0;let e=x.getAttribute(t(737))-0;e===$&&(x[t(652)].padding="6px 0",x[t(486)]='\n \n \n \n '),x.style.backgroundColor=""}),$s()),document[a(798)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[a(891)],{detail:{gift:r,FGSECOMAPP:FGSECOMAPP}}))},u=$=>{let t=x,e=t(762);return!C($)&&(typeof $===t(647)&&($[t(974)]?.includes(e)||$[t(1067)]?.[t(1074)](t(583)))||typeof $===t(989)&&$[t(1074)](e))},_=$=>{let{selling_plan_allocation:x}=$;return!C(x)&&!C(x?.selling_plan)},p=$=>{let t=x;try{if(!Shopify?.[t(534)])return;let{checkout_btn_query:e}=FGSECOMAPP.QUERY_SELECTOR,a=[...e?.[t(517)],...e?.integration,...e?.[t(801)]][t(544)](Boolean)[t(849)](",");document[t(677)](a)[t(897)](x=>{let e=t;FGSECOMAPP[e(1031)]($,x)[e(1080)]()})}catch(i){}},h=async($,t)=>{let e=x;try{if(C($)&&C(t))return;let a={};if(FGSECOMAPP[e(495)]?.[e(544)]($=>u($))?.forEach($=>{let x=e;a[$[x(988)]]=$[x(532)]}),($=$?.[e(544)]($=>!C($[e(988)])))?.[e(897)]($=>{let x=e;a[$[x(988)]]=(a[$.variant_id]??0)+($[x(532)]??1)}),Object.keys(a)?.[e(897)]($=>{a[$]=a[$]>=0?a[$]:0}),C(Object[e(638)](a)))return;$?.[e(897)]($=>{let x=e,t=FGSECOMAPP[x(774)][x(603)](t=>$.offer_id?.[x(706)]()===t[x(537)]?.[x(706)]()&&$[x(988)]===t[x(594)]);t?t[x(532)]+=$[x(532)]:FGSECOMAPP[x(774)][x(729)]({variantId:$[x(988)],belongs_to_offer:$[x(884)]?.[x(706)](),quantity:$[x(532)]})}),localStorage[e(1087)](e(933),LZString[e(566)](JSON[e(1051)](FGSECOMAPP[e(774)]))),FGSECOMAPP.isUpdateCart=!0,p(e(505)),await fetch((Shopify?.[e(1013)]??"/cart/update")+"?sca_process_gifts",{method:e(770),headers:{Accept:e(1057),"Content-Type":e(1057),sca_process_gifts:!0},body:JSON.stringify({updates:a,...FGSECOMAPP[e(468)]})})[e(1080)](x=>{let a=e;return x.ok&&$[a(612)]&&!t[a(612)]&&$s(),x[a(889)]()})[e(1080)]($=>{FGSECOMAPP.sections_cart=$[e(863)]}),document[e(798)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[e(972)],{detail:{arrGiftsAdd:$,arrGiftsRemove:t,FGSECOMAPP:FGSECOMAPP}})),document[e(710)](e(664))?.getAttribute(e(673))===e(1052)&&location.reload()}catch(i){p(e(859)),console[e(1107)](i)}},m=($,t=!1)=>(""+$).replaceAll(/\$/g,x(t?658:749)),b=()=>{let $=x,i=document[$(924)]($(540));if(i){let r=document[$(710)](t[$(787)])?.[$(486)]??t[$(856)];i[$(486)]=r.replaceAll(/{{\s*fg_slider_title\s*}}/gm,m(FGSECOMAPP[$(851)][$(736)]??$(784)))[$(837)](/{{\s*sca_fg_disable_slider_section\s*}}/gm,m(e()))}else{let c=localStorage[$(581)]($(1063))-0,o=FGSECOMAPP.fgAppearance?.[$(604)]?.[$(816)]??{},s=(o?.[$(882)]??0)*6e4,n=!isNaN(c)&&c+s>Date[$(777)]();if(n||(localStorage[$(711)]("FGSECOMAPP_HIDDEN_GIFT_POPUP"),!(i=document[$(924)]($(1024)))))return;let l=document[$(710)](t[$(892)])?.[$(486)]??t[$(1058)];i.innerHTML=l[$(837)](/{{\s*fg_slider_title\s*}}/gm,m(FGSECOMAPP[$(851)].gift_popup_title??$(784)))[$(837)](/{{\s*sca_fg_disable_slider_section\s*}}/gm,m(a()+" "+e())),i[$(541)][$(682)]($(640))}},y=($,e)=>{let a=x,i=document.querySelector(t.GIFT_SELECT_SECTION_ID)?.[a(486)]??t[a(648)];return $.map($=>i[a(837)](/{{\s*fg_variant_img\s*}}/gm,m(z($.thumbnail??e),!0))[a(837)](/{{\s*fg_variant_id\s*}}/gm,m($[a(586)])).replaceAll(/{{\s*fg_original_variant_id\s*}}/gm,m($.original_variant_shopify_id))[a(837)](/{{\s*fg_variant_price\s*}}/gm,m(v($)))[a(837)](/{{\s*fg_original_variant_price\s*}}/gm,m(T($)))[a(837)](/{{\s*fg_variant_title\s*}}/gm,m($[a(1088)])))[a(849)](" \n")},v=$=>{let t=x;return FGSECOMAPP[t(643)].format(A($?.[t(641)]))},T=$=>{let t=x;return FGSECOMAPP[t(643)][t(1018)](A($?.cal_gift_price??0))},w=($,t)=>{let e=x;return C(FGSECOMAPP[e(900)][$])?t??"#":FGSECOMAPP.productsByID[$][e(974)]},E=($,t)=>{let e=x;return FGSECOMAPP[e(851)].show_product_title?C(FGSECOMAPP[e(900)][$])?t[e(688)]("\xbb","").replace(/\(\d*% off\)/,"")[e(688)](e(981),"")??"":FGSECOMAPP[e(900)][$][e(913)]:""},C=$=>{let t=x;if(0===$)return!0;if("number"==typeof $||"boolean"==typeof $)return!1;if(null==$)return!0;if(typeof $[t(612)]!=t(949))return 0===$[t(612)];let e=0;for(let a in $)$.hasOwnProperty(a)&&e++;return 0===e},S=$=>{let t=x;try{let e={...FGSECOMAPP[t(1078)]},a=e[$];if(a=a?a[t(589)]():null,!C(a)&&a[t(612)]>0)try{return document[t(710)](a),a}catch(i){}return""}catch(r){return""}},I=()=>{let $=x;try{FGSECOMAPP.formatter=new Intl[$(561)](Shopify?.[$(667)]??Shopify?.[$(575)],{style:$(979),currency:Shopify?.[$(979)]?.[$(938)]??$(986)})}catch(t){FGSECOMAPP[$(643)]=new Intl[$(561)]("en-US",{style:"currency",currency:Shopify?.currency?.[$(938)]??"USD"})}},A=$=>{let t=x;$=$??0;let e=Shopify?.currency?.[t(520)]??1;return 1===parseFloat(e)?$:($*e)?.[t(474)](Shopify?.fg_decimal??2)},k=$=>{let t=x;try{return $[FGSECOMAPP[t(1109)]]??$?.[t(530)]??$?.[t(641)]}catch(e){return $?.final_price??$?.[t(641)]}},O=$=>{let t=x;return $[t(544)]($=>void 0===$[t(735)]||!0===$[t(735)])[t(993)](($,x)=>$+x[t(532)]*k(x),0)/100},D=$=>{let t=x;return $[t(544)]($=>void 0===$.cal_gift_for_other_rules||$[t(735)])[t(993)](($,x)=>$+x[t(532)],0)},F=($,t,e)=>{let a=x,i=t[a(717)];return e?.is_only&&($=$[a(544)]($=>_($))),C(i)?$:$[a(544)]($=>!i.map(x=>{let t=_0x1396;switch(x[t(554)]){case t(1032):return Object[t(591)](x.value)[t(872)]($=>$[t(716)])[t(961)]()[t(872)]($=>$.id).includes($.variant_id);case t(1029):return Object[t(638)](x.value)[t(1074)]($.product_type);case t(515):return Object[t(638)](x[t(1047)])[t(1074)]($[t(680)]);case t(683):let e=Object[t(638)](x.value),a=$[t(975)]?.[t(872)]($=>$.id+"")?.filter($=>e[t(1074)]($));return!C(a);default:return!1}})[a(1074)](!1))},R=($,x)=>$?.map($=>{let t=_0x1396;if(typeof $[t(735)]!==t(949)){let e=FGSECOMAPP[t(774)]?.[t(544)](x=>x[t(594)]===$[t(988)]),a=e?.[t(993)](($,x)=>$+x.quantity,0);if(a===$[t(532)]){let i=e?.[t(544)](e=>{let a=t;if(e.belongs_to_offer?.[a(706)]()===x.toString())return!1;let i=FGSECOMAPP[a(1062)]?.find($=>$.id?.toString()===e[a(537)]?.toString()),r=i[a(702)]??{},c=k($);return r.cal_gift_for_other_rules&&c>0})?.[t(993)](($,x)=>$+x[t(532)],0);return{...$,cal_gift_for_other_rules:i>0,quantity:i??0}}return{...$,cal_gift_for_other_rules:!1,quantity:0}}return{...$}})??[],G=($,t)=>{let e=x,a=FGSECOMAPP[e(847)]?.[e(725)],i=FGSECOMAPP.fgSettings?.[e(605)],r=$,c=r;if(a){r=$.sort(($,x)=>k($)-k(x));let o=t[e(962)][e(872)]($=>$?.[e(1064)]??0);r=r[e(544)]($=>o.some(x=>x<=k($)/100)),c=JSON[e(582)](JSON.stringify(r));let s=t[e(1001)].sort(($,x)=>x?.[e(1064)]-$?.[e(1064)])[e(872)]($=>({...$}));c[e(544)]($=>$[e(532)]>0)[e(897)]($=>{let x=e,t=k($)/100;s.filter($=>$.quantity>0)[x(544)]($=>$?.[x(1064)]<=t)[x(897)](t=>{let e=x,a=$[e(532)]-t[e(532)];t[e(532)]-=a>=0?t.quantity:$.quantity,$[e(532)]=Math[e(531)](a,0)})}),t.giftsAddedInvalid=s[e(544)]($=>$[e(532)]>0),c=c[e(544)]($=>$[e(532)]>0)}r=r.filter($=>$[e(532)]>0);let n=FGSECOMAPP[e(495)][e(872)]($=>$.product_id),l=t[e(1019)]?.[e(872)]($=>$[e(831)]);i&&(r=r.filter($=>!l?.includes($[e(619)])));let f=[];return FGSECOMAPP[e(847)]?.[e(969)]&&(f=FGSECOMAPP[e(495)][e(544)]($=>u($))[e(872)]($=>$[e(988)])),t[e(579)]=JSON.parse(JSON[e(1051)](t[e(1019)]))?.[e(544)]($=>{let x=e;return $[x(808)]=$[x(808)].filter($=>!f[x(1074)]($[x(586)])),!(i&&n?.includes($[x(831)]))&&(a&&($.variants=$[x(808)][x(544)]($=>{let t=x,e=a===t(803)?$[t(472)]:$.original_price;return c[t(1091)]($=>e<=k($)/100)})),!C($[x(808)]))}),r},L=($,t,e)=>{let a=x,i=0,r=F(t,$,e.sub_conditions?.[a(1e3)]);r=R(r,$.offer_id),r=G(r,e);let c=0;return $[a(1054)]===a(841)?(c=O(r),e.count_down_value=Math[a(531)]($[a(514)]-c,0)):$[a(1054)]===a(1004)&&(c=D(r),e[a(806)]=Math[a(531)]($[a(514)]-c,0)),c>=$[a(514)]&&(null===$.max_amount||c<=$[a(726)])&&(i=e[a(702)].number_of_gift_can_receive*($[a(624)]?Math[a(506)](c/$[a(514)]):1)),i},N=($,t)=>{let e=x,a={},i=[],r=0;return t[e(691)][e(872)](x=>{let e=L(x,$,t);0!==e&&(r=e),i.push(e>0)}),a[e(460)]=r,a.condition_result=i,a},P=($,t)=>{let e=x,a=!1;return 1===$[e(612)]?a=$[0]:2===$[e(612)]&&(t===e(1093)&&(a=$[0]&&$[1]),"or"===t&&(a=$[0]||$[1])),a},q=($,t)=>{let e=x,a=$?.[e(872)]($=>$[e(988)]);FGSECOMAPP.arrOfferAdded=FGSECOMAPP[e(774)][e(544)]($=>a?.[e(1074)]($.variantId));let i=t[e(962)][e(872)]($=>$[e(586)]),r={};t[e(962)][e(544)]($=>r[$[e(586)]]={fg_original_compare_at_price:$[e(472)],fg_original_price:$[e(818)],compare_gift_price:$[e(1064)]});let c=FGSECOMAPP[e(774)][e(544)]($=>$[e(537)]?.[e(706)]()===t.id?.[e(706)]())?.[e(872)]($=>$[e(594)]),o=$.filter($=>{let x=e;return u($)&&($.cal_gift_for_other_rules=!1),i.includes($.variant_id)&&c[x(1074)]($[x(988)])}),s=o[e(872)]($=>{let x=e,a=t[x(702)];$[x(735)]=a[x(735)],$[x(537)]=t.id?.[x(706)]();let i=FGSECOMAPP.arrOfferAdded?.[x(544)](e=>e[x(537)]?.[x(706)]()!==t.id?.toString()&&$[x(988)]===e[x(594)])?.reduce(($,x)=>$+x.quantity,0);return{...$,quantity:$[x(532)]-i,...r[$[x(988)]]}});return s[e(544)]($=>{let x=e;return $[x(537)]?.toString()===t.id?.[x(706)]()})},M=$=>{let t=x,e=$[t(1001)][t(544)](x=>x.belongs_to_offer?.[t(706)]()!==$.id?.[t(706)]())[t(872)]($=>$[t(619)]);return Object[t(591)]($.gifts_valid).filter($=>!e[t(1074)]($.product_shopify_id))},H=($,t)=>{let e=x,a=q($,t);t[e(1001)]=a;let i=N($,t),r=P(i.condition_result,t[e(712)]);if(r){let c=a[e(544)]($=>$.belongs_to_offer?.[e(706)]()===t.id?.[e(706)]())[e(993)](($,x)=>$+x[e(532)],0);i[e(460)]=i.max_gifts_can_get-c,t.giftsAdded=a,t[e(964)]=i[e(460)]}else t[e(1001)]=a,t[e(964)]=0;return!C(FGSECOMAPP[e(592)])&&t[e(960)]>FGSECOMAPP[e(592)]&&(r=!1),t.stop_lower_priority&&r?FGSECOMAPP.maxOfferPriority=t[e(960)]:!t[e(567)]||r||C(a)||t[e(960)]!==FGSECOMAPP[e(592)]||(FGSECOMAPP[e(592)]=null),t.isReachConditions=r,t},U=$=>{let t=x,e=$+"=",a=document[t(656)][t(857)](";");for(let i=0;i{let e=x,a=!0,i=!0,r=!0,c=!0;if(!C($.sub_conditions?.specific_link_address)){let o=U("sca_fg_codes");a=o&&JSON[e(582)](o)[e(1074)]($[e(1017)][e(512)])}if(!C($[e(1017)]?.[e(699)])){let{customer_tags:s}=$[e(1017)],n=s?.[e(813)]?.[e(1091)]($=>t[e(758)][e(1067)]?.includes($));i=s?.[e(965)]===e(479)?n:!n}if(!C($[e(1017)]?.[e(919)])){let{customer_locations:l}=$[e(1017)],f=l?.[e(553)]?.[e(1074)](FGSECOMAPP[e(779)]);c=l?.[e(835)]===e(479)?f:!f}if(!C($[e(1017)]?.[e(697)])){let d=!0,g=$[e(1017)][e(697)],u=t[e(758)].orders??[];if(g[e(757)]){let _=Date.parse(g[e(757)])/1e3;u=u[e(544)]($=>$[e(920)]>=_)}if(!C(g?.total_spend_on_order_history)&&(0!==g[e(950)][e(514)]||0!==g[e(950)][e(726)])){let p=g[e(950)][e(514)],h=g[e(950)].max_amount,m=u[e(993)](($,x)=>$+x.total_price,0)/100;d&=(m>=p||!p)&&(m<=h||!h)}if(!C(g?.[e(1012)])&&(0!==g.total_spent_on_last_order[e(514)]||0!==g[e(1012)][e(726)])){let b=t.customer[e(570)]/100,y=g[e(1012)][e(514)],v=g.total_spent_on_last_order.max_amount;d&=(b>=y||!y)&&(b<=v||!v)}if(!C(g?.[e(654)])){let T=!(0!==g[e(654)][e(514)]||0!==g[e(654)].max_amount),w=u[e(612)],E=g[e(654)][e(514)],S=g.number_of_order[e(726)];d&=T?C(u):(w>=E||!E)&&(w<=S||!S)}if(g?.[e(1025)]){let I=t[e(758)][e(583)]??[],A=$[e(962)]?.[e(1091)]($=>I[e(1074)]($.variant_shopify_id))||$[e(962)]?.[e(1091)]($=>I[e(1074)]($[e(922)]+"_"+($[e(818)]-$[e(641)])*100));d&=!A}r=d}return a&&i&&r&&c},Y=($,t,e)=>{let a=x,i=[],r=[],c=[],o=[];for(let s of t){let n=H($,s);if(!n[a(867)]){if(!n[a(1001)][a(612)])continue;n[a(1001)][a(897)]($=>{let x=a;r.push({variant_id:$[x(988)],quantity:$.quantity,offer_id:s.id})})}if(n.giftsAvailable<0){n[a(1001)][a(897)]($=>{let x=a;r[x(642)]({variant_id:$[x(988)],quantity:$[x(532)],offer_id:s.id})});continue}if(0===n[a(964)]){n.giftsAdded[a(897)]($=>{let x=a,t=FGSECOMAPP[x(774)][x(603)](t=>s.id?.[x(706)]()===t[x(537)]?.[x(706)]()&&$.variant_id===t[x(594)]);t&&(t[x(532)]=$[x(532)])});continue}(s[a(1017)]&&B(s,SECOMAPP)||C(s[a(1017)]))&&i.push(s)}if($?.filter($=>C($[a(537)])&&u($))[a(897)]($=>{let x=a;r.push({variant_id:$[x(988)],quantity:$[x(532)],offer_id:$[x(537)]?.toString()})}),e||C(r)){let l=i[a(872)]($=>{let x=a;return{id:$.id,offerName:$[x(1076)],offerPriority:$[x(960)],stopLowerPriority:$[x(567)],gifts:M($),giftsAvailable:$.giftsAvailable,giftsAdded:$[x(1001)],isReachConditions:$[x(867)],offer:$}});if(!C(l)){let f={};for(let d of l){let g=j(FGSECOMAPP[a(847)],d);g?.[a(612)]>0?c=c[a(971)]([...g]):d[a(940)][a(872)]($=>{let x=a;f[$[x(788)]]={...$,belongs_to_offer:d.id?.[x(706)]()}})}o=Object.values(f)??[]}}return{arrGiftsAdd:c,arrGiftsRemove:r,arrGiftsData:o}},V=($,t)=>{let e=x,a=new Set;return $?.[e(897)]($=>a[e(682)]($[e(884)])),a[e(897)]($=>{let x=e,t=FGSECOMAPP[x(1062)]?.[x(603)](t=>t.id?.toString()===$?.[x(706)]());if(C(t)||!t.isReachConditions){FGSECOMAPP[x(774)]=FGSECOMAPP[x(774)]?.[x(544)](t=>t.belongs_to_offer?.[x(706)]()!==$?.[x(706)]());return}if(t[x(964)]>=0)return;let a=[],i=FGSECOMAPP[x(774)]?.[x(544)](t=>t[x(537)]?.[x(706)]()===$?.toString())??[];if(t?.gift_settings?.[x(465)])a=a[x(971)]([...i]),t.giftsAvailable=0;else for(let r of(FGSECOMAPP[x(847)]?.[x(725)]&&!C(t[x(1046)])&&t[x(1046)][x(897)]($=>{let e=x,i=FGSECOMAPP.arrOfferAdded[e(603)](x=>x[e(537)]?.[e(706)]()===t.id?.[e(706)]()&&$[e(988)]===x[e(594)]);if(C(i))return;let r=i[e(532)]-$.quantity;t[e(964)]+=$[e(532)],r>0?i[e(532)]=r:(i[e(532)]=0,a[e(642)]({...i}))}),i)){if(t.giftsAvailable>=0)break;t.giftsAvailable+=r[x(532)],t[x(964)]<=0?a[x(642)]({...r}):(r[x(532)]=t[x(964)],t[x(964)]=0)}a?.[x(897)]($=>{let t=x;FGSECOMAPP[t(774)]=FGSECOMAPP.arrOfferAdded?.filter(x=>$[t(594)]!==x[t(594)]||$.belongs_to_offer?.[t(706)]()!==x.belongs_to_offer?.[t(706)]())})}),t?.[e(544)]($=>{let x=e;return u($)&&($[x(532)]=FGSECOMAPP[x(774)]?.filter(t=>$.variant_id===t[x(594)])?.[x(993)](($,t)=>$+t[x(532)],0)??0),$[x(532)]>0})??[]},W=async($,t)=>{let e=x,{arrGiftsAdd:a,arrGiftsRemove:i,arrGiftsData:r}=Y($,t,!1),c=V(i,$);if(!C(i)){let o=Y(c,t,!0);V(o?.[e(953)],$),a=o?.[e(905)],i=i?.[e(971)](o?.[e(953)])??[],r=o?.[e(469)]}return await h(a,i),f()[e(1080)](),r},j=($,t)=>{let e=x;try{let a=[],i=t[e(940)],r=i.reduce(($,x)=>$+x[e(808)].length,0);if(!$[e(462)]||r<=0)return[];let c=t[e(628)]?.[e(702)]?.auto_add_all_gifts,o=t[e(628)]?.[e(782)]??{};if(o[e(571)]&&o[e(554)]===e(716)){let s=i[0][e(808)][0];0===s.price&&(a[e(642)]({variant_id:s[e(586)],quantity:t.giftsAvailable,offer_id:t.id}),console[e(1105)]("track variant auto add gift: {"+s[e(586)]+e(644)+s.variant_title+"} {"+t.id+"}"))}else if(c){let n=(t?.[e(964)]??0)/r;i[e(897)]($=>$[e(808)]?.[e(897)]($=>a[e(642)]({variant_id:$[e(586)],quantity:n,offer_id:t.id}))),console[e(1105)]("auto add all gifts from {"+t.id+"}")}else if(1===r){let l=i[0][e(808)][0];0===l[e(641)]&&(a[e(642)]({variant_id:l[e(586)],quantity:t[e(964)],offer_id:t.id}),console[e(1105)](e(728)+l[e(586)]+e(644)+l[e(1088)]+e(644)+t.id+"}"))}return a}catch(f){return console.error(f),[]}},X=$=>$===x(637),z=$=>{let t=x;try{let e=Shopify[t(528)]??FGSECOMAPP[t(783)]?.[t(604)]?.[t(778)]?.gift_img_size??t(478),a=new URL($),i=new URLSearchParams(e);return i[t(897)](($,x)=>a[t(536)].set(x,$)),a[t(706)]()}catch(r){return $}},Q=$=>{let e=x,a=$;if(FGSECOMAPP[e(851)].show_gift_for_customer===e(973))for(let i of(a=[],$)){let r=i[e(808)];r&&r[e(612)]&&r[e(897)]($=>a[e(642)]({...i,thumbnail:$[e(546)],variants:[$]}))}let c=document[e(924)](e(585));c&&(c.innerHTML=a[e(872)]($=>{let x=e,a=$?.[x(808)][0]??{},i=X(a.variant_title),r=$[x(808)]?.[x(612)],c=m(E($[x(831)],$[x(913)])),o=FGSECOMAPP[x(851)]?.[x(885)]===x(973),s=document.querySelector(t.GIFT_ITEM_SECTION_ID)?.[x(486)]??t.GIFT_ITEM_SECTION;return s.replaceAll(/{{\s*fg_product_handle\s*}}/gm,m(w($[x(831)],$[x(722)]),!0))[x(837)](/{{\s*fg_product_img\s*}}/gm,m(z($[x(546)]),!0))[x(837)](/{{\s*fg_product_img_alt\s*}}/gm,c)[x(837)](/{{\s*fg_product_title\s*}}/gm,c).replaceAll(/{{\s*fg_gifts_check_show_by_variants\s*}}/gm,m(o&&FGSECOMAPP[x(851)][x(631)]?"":x(886)))[x(837)](/{{\s*fg_gifts_check_show_by_products\s*}}/gm,o?"sca-d-none":"").replaceAll(/{{\s*fg_check_selected_variant\s*}}/gm,1===r?x(660)+(i?x(886):""):"")[x(837)](/{{\s*fg_variant_title\s*}}/gm,m(1!==r?FGSECOMAPP[x(851)][x(769)]??x(753):a[x(1088)]))[x(837)](/{{\s*fg_original_price\s*}}/gm,m(T(a)))[x(837)](/{{\s*fg_gift_price\s*}}/gm,m(v(a)))[x(837)](/{{\s*sca_fg_variant_select_section\s*}}/gm,m(y($.variants,$[x(546)])))[x(837)](/{{\s*fg_product_belongs_to_offer\s*}}/gm,$[x(537)])[x(837)](/{{\s*fg_variant_id\s*}}/gm,m(1===r?a.variant_shopify_id:""))[x(837)](/{{\s*fg_add_to_cart\s*}}/gm,m(FGSECOMAPP[x(851)]?.[x(559)]??x(1094)))}).join(" \n"),new Glider(document.querySelector(e(509)),{slidesToShow:1,slidesToScroll:1,draggable:!1,dots:FGSECOMAPP[e(851)][e(1099)]?e(731):null,arrows:{prev:e(767),next:".freegifts-main-container .glider-next"},responsive:[{breakpoint:1024,settings:{slidesToShow:FGSECOMAPP[e(851)][e(1041)]??4,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:2,slidesToScroll:1}}]}),document.dispatchEvent(new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[e(772)],{detail:{FGSECOMAPP:FGSECOMAPP,arrGiftShow:a,arrGiftsData:$}})))},K=async()=>{let $=x;try{let t=window.fgData?.[$(1062)]??[];for(let e in await $3(),FGSECOMAPP[$(900)])C(FGSECOMAPP[$(900)][e]?.id)&&delete FGSECOMAPP[$(900)][e];let a=[];t[$(897)](x=>{let t=$;try{let e=JSON[t(582)](JSON[t(1051)](x));if(x[t(782)].status){let i=x[t(691)][0][t(717)],r=i[0].value,c=[...e[t(962)]],o=[...e[t(1019)]];if(x.gift_should_the_same[t(554)]===t(716))for(let s in r){let n=r[s]?.[t(716)]??[];for(let l of n){e[t(691)][0][t(717)]=[{type:i[0].type,value:{[s]:{...r[s],variant:[{...l}]}}}],e[t(962)]=c[t(544)]($=>$[t(831)]+""===s&&l.id===$.original_variant_shopify_id),e[t(1019)]=o[t(544)]($=>$[t(831)]+""===s),e.gift_products[0].variants=[...e.gift_items];let f=e[t(702)][t(846)],d=e[t(702)][t(465)];e[t(702)][t(465)]&&(f=e[t(962)][t(612)]),1===e[t(962)][t(612)]&&0===e[t(962)][0][t(641)]&&(d=!0),a.push(JSON[t(582)](JSON[t(1051)]({...e,gift_settings:{...e[t(702)],number_of_gift_can_receive:f,auto_add_all_gifts:d},id:e.id+"_"+r[s][t(974)]+"_"+l.id,offer_root:""+e.id})))}}else if(x[t(782)].type===t(1048))for(let g in r){e[t(691)][0].product_narrow=[{type:i[0][t(554)],value:{[g]:r[g]}}],e[t(962)]=c[t(544)]($=>$[t(831)]+""===g),e[t(1019)]=o[t(544)]($=>$[t(831)]+""===g);let u=e.gift_settings.number_of_gift_can_receive,_=e.gift_settings[t(465)];e[t(702)][t(465)]&&(u=e[t(962)].length),1===e[t(962)][t(612)]&&0===e[t(962)][0][t(641)]&&(_=!0),a[t(642)](JSON.parse(JSON[t(1051)]({...e,gift_settings:{...e[t(702)],number_of_gift_can_receive:u,auto_add_all_gifts:_},id:e.id+"_"+r[g][t(974)],offer_root:""+e.id})))}}}catch(p){console.error(p)}}),t=(t=(t=t?.[$(544)](x=>!x?.[$(782)]?.status)?.[$(971)](a))?.[$(872)](x=>{let t=$;return{...x,id:x.id[t(706)](),offer_root:(x[t(535)]??x.id)[t(706)]()}}))?.[$(544)](x=>{let t=$;if(!$t(x[t(836)],x[t(936)]))return!1;let e=!C(x[t(1017)]?.[t(697)]||x[t(1017)]?.[t(699)]);if(x[t(1017)]&&(!B(x,SECOMAPP)||e&&C(SECOMAPP[t(758)][t(876)])))return!1;let a={...FGSECOMAPP.productsByID},i=!1;if(FGSECOMAPP[t(847)].sync_quantity===t(761)){x[t(962)]=x?.gift_items.filter($=>{let x=t,e=a[$[x(831)]]?.[x(966)]??{};return e[$[x(922)]]>0})??[];let r=x[t(962)]?.[t(872)]($=>$[t(586)]);x[t(1019)]=x?.[t(1019)]?.[t(544)]($=>{let x=t;return $[x(808)]=$?.variants?.[x(544)]($=>{let t=x;return r?.[t(1074)]($[t(586)])}),$?.[x(808)]?.length>0}),i=!0}else if(FGSECOMAPP[t(847)][t(533)]){x[t(962)]=x?.gift_items[t(544)]($=>{let x=t,e=a[$[x(788)]]?.[x(966)]??{};return e[$[x(586)]]>0});let c=x[t(962)]?.[t(872)]($=>$[t(586)]);x[t(1019)]=x?.[t(1019)]?.[t(544)]($=>{let x=t;return $[x(808)]=$?.[x(808)]?.[x(544)]($=>{let t=x;return c?.[t(1074)]($[t(586)])}),$?.[x(808)]?.[x(612)]>0}),i=!0}return i&&x[t(702)]?.[t(465)]&&(x.gift_settings.number_of_gift_can_receive=x.gift_items?.[t(612)]),!i||x.gift_items&&x[t(962)][t(612)]>0});let i=FGSECOMAPP?.[$(847)]?.[$(817)]===$(803)?$(472):$(818),r=FGSECOMAPP[$(847)]?.[$(725)],c=r===$(803)?"original_compare_at_price":"original_price";return t?.[$(872)](x=>{let t=$,e=x[t(962)][t(872)]($=>{let x=t;return $[x(789)]=C($[i])?$?.[x(818)]:$[i],r&&($[x(1064)]=C($[c])?$?.[x(818)]:$[c]),$[x(831)]});return x[t(1019)]=x.gift_products?.[t(544)]($=>{let x=t;return $[x(808)]?.forEach($=>{let t=x;$[t(789)]=C($[i])?$?.[t(818)]:$[i],r&&($.compare_gift_price=C($[c])?$?.[t(818)]:$[c])}),e.includes($[x(831)])}),x[t(691)]?.[t(897)]($=>{let x=t;"money"===$[x(1054)]&&($[x(514)]=A($.min_amount),$.max_amount=C($.max_amount)?$[x(726)]:A($[x(726)]))}),x})?.[$(730)]((x,t)=>x[$(960)]-t[$(960)])}catch(o){return console[$(1107)](o),[]}},J=async()=>{let $=x;try{let t=[];window[$(502)]?.[$(1062)]?.[$(897)](x=>{let e=$,a=[];x[e(1019)][e(897)]($=>{let x=e;a[x(642)]($[x(741)],$[x(722)])}),t=[...t,...a]}),await $h(t=(t=[...new Set(t)]).filter(x=>C(FGSECOMAPP[$(622)][x]))),Object[$(591)](FGSECOMAPP[$(622)])?.[$(897)](x=>{let t=$,{info:e}=x;C(e)||C(e?.id)||(FGSECOMAPP[t(900)][e.id]={...e})})}catch(e){console.error(e)}},Z=$=>{let t=x;try{C($)?(FGSECOMAPP[t(774)]=[],localStorage[t(1087)]("sca_offers_added",LZString[t(566)](JSON[t(1051)](FGSECOMAPP[t(774)])))):FGSECOMAPP[t(774)]=JSON[t(582)](LZString.decompressFromBase64(localStorage.getItem("sca_offers_added")))}catch(e){FGSECOMAPP[t(774)]=[],localStorage[t(1087)]("sca_offers_added",LZString.compressToBase64(JSON.stringify(FGSECOMAPP[t(774)])))}let a={};FGSECOMAPP[t(1062)]?.[t(897)]($=>{let x=t;a[$.id]=$?.gift_items?.[x(872)]($=>$[x(586)])});let i=Object[t(638)](a);FGSECOMAPP.arrOfferAdded=FGSECOMAPP[t(774)]?.filter($=>i?.[t(1074)]($[t(537)]?.[t(706)]())&&a[$.belongs_to_offer?.toString()][t(1074)]($[t(594)]));let r={};FGSECOMAPP[t(774)]?.[t(897)]($=>{let x=t,e=r[$[x(537)]+"_"+$[x(594)]]??{};r[$[x(537)]+"_"+$[x(594)]]={...$,belongs_to_offer:$[x(537)]?.[x(706)](),quantity:(e?.[x(532)]??0)+($?.quantity??0)}}),FGSECOMAPP.arrOfferAdded=Object[t(591)](r),localStorage[t(1087)](t(933),LZString[t(566)](JSON.stringify(FGSECOMAPP[t(774)])))},$$=()=>{let $=x;FGSECOMAPP.QUERY_SELECTOR={cart_drawer_query:{tool:[".fg-secomapp-cart-drawer",S($(662))]},cart_icon_query:{default:[$(810)],tool:[$(921),S("sca_fg_cart_icon_query")]},gift_icon_product_query:{default:[$(984)],integration:[$(569)],tool:[$(1027),S($(745))]},gift_icon_collection_query:{default:[$(1100),$(663)],integration:[".m-product-item, .m-product-list .swiper-slide, .f-grid .f-column",$(954)],tool:[$(908),S("sca_fg_img_collection_gift_icon_query")]},gift_thumbnail_query:{default:[$(864)],integration:[$(615)],tool:[$(738),S("sca_fg_btn_gift_thumbnail_query")]},cart_message_query:{default:[$(709)],integration:[$(674),"#CartPopup .styles_CartPreview__card__KX-WB, #qikify-stickycart-v2-app .qsc2-drawer-wrapper > div:nth-child(2)",$(948),$(606),$(1020)],tool:[$(482),S("sca_fg_main_promotion_message_query")]},checkout_btn_query:{default:["input[name='checkout'], button[name='checkout'], input[name='goto_pp'], button[name='goto_pp']",$(527),$(814),"input[value='Check Out'] a.checkout-link"],integration:[$(1022),".satcb-cs-checkout-btn, .hs-checkout-purchase"],tool:[".sca_handle_button_checkout",S("sca_fg_form_checkbox_button_query")]}}},$x=async $=>{let t=x;$$(),I(),FGSECOMAPP[t(645)](),(FGSECOMAPP?.[t(847)]?.[t(829)]==="stop_offer"||FGSECOMAPP?.[t(847)]?.[t(533)])&&await J(),FGSECOMAPP[t(1062)]=await K(),FGSECOMAPP[t(692)](),r(),s(),Z($);let e=await W($,FGSECOMAPP[t(1062)]);await $e(e),$y(),$b(),$4(),$m()},$0=function(){let $=x,t=document[$(677)]($(780)),e=document.querySelectorAll("#freegifts-main-popup-container [data-close]"),i=$(640),r=document[$(677)]($(549)),c=r.length;for(let o=0;o{let t=$;x[t(657)]===document.querySelector(t(991))&&(document[t(710)](t(991))[t(541)][t(1090)](i),a())}),document.addEventListener("keyup",x=>{let t=$;x[t(1106)]===t(912)&&document[t(710)](t(991))&&(document.querySelector("#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg")[t(541)][t(1090)](i),a())}),document[$(677)]($(1008)).forEach(x=>x[$(477)]($(890),function(){let x=$;this[x(916)](x(881),1),this[x(563)](),this.classList[x(607)](x(938)),this[x(710)](x(620))[x(541)][x(607)]("d-block")})),document.querySelectorAll($(1008))[$(897)](x=>document[$(477)]($(890),function(t){let e=$,a=x.contains(t[e(657)]);a||(x.classList.remove(e(938)),x.querySelector(e(620))[e(541)][e(1090)]("d-block")),document[e(677)](e(1066))[e(897)]($=>{$.disabled=!0,$.style.backgroundColor=e(980)})})),document[$(677)]($(791))[$(897)](x=>{let t=$;x[t(477)]("click",function(){let $=t,x=this.getAttribute("id"),e=this[$(653)]("data-img"),a=this[$(653)]($(799)),i=this[$(653)]("data-original-price"),r=this.getAttribute("data-original-id"),c=this[$(727)].parentElement[$(727)][$(727)];c.querySelector(".product-item-thumbnail")[$(916)]($(843),e);let o=new URL(c[$(710)](".gift-original-url").href);o.searchParams[$(521)]("variant",r),c[$(710)]($(982))[$(614)]=o[$(706)]();let s=this[$(727)][$(727)][$(727)];s.querySelector(".original-price del").textContent=i,s[$(710)](".gift-price")[$(848)]=a;let n=s?.[$(710)](".btn-add-to-cart");n[$(916)]($(737),x),n[$(765)]=!1,n[$(652)]="";let l=this[$(727)][$(727)][$(710)]($(600));l[$(541)].add($(938)),l[$(486)]=this[$(634)]})}),document[$(677)]($(549))[$(897)](x=>x[$(477)]($(890),async function(){let x=$,t=this[x(653)](x(737))-0,e=this[x(653)]("data-offer");try{await g(t,1,e);let a=document[x(710)](x(991));a&&(FGSECOMAPP[x(503)]=!0,await new Promise($=>setTimeout($,800)),a[x(541)][x(1090)](i)),window[x(967)][x(614)][x(1074)](x(1073))?location.reload():typeof Shopify?.getCart===x(943)&&await Shopify?.[x(598)](0===FGSECOMAPP.fgCallback[x(612)]?function(){}:FGSECOMAPP[x(696)][0])}catch(r){console[x(1107)](r)}}))},$t=($,t)=>{let e=x;if($){let a=new Date,i=a.getTime(),r=new Date($)[e(499)]();if(!t)return i>=r;{let c=new Date(t)[e(499)]();return i>=r&&i<=c}}return!1},$e=async $=>{let t=x;$&&$.length>0&&(FGSECOMAPP[t(503)]?(await new Promise($=>setTimeout($,1500)),FGSECOMAPP[t(503)]=!1,b(),Q($)):(b(),Q($))),$0(),FGSECOMAPP[t(645)](),FGSECOMAPP[t(490)](FGSECOMAPP[t(1062)]),$c=[]},$a=async $=>{let t=x;$c=[];let e=new URL(window.location[t(614)]);e[t(536)][t(521)](t(840),""),i(e.toString())[t(1080)]($=>$[t(760)]())[t(1080)]($=>{let x=t,e=new DOMParser,a=e[x(1095)]($,x(1053)),{cart_drawer_query:i,cart_icon_query:r}=FGSECOMAPP[x(860)],c=[...i?.tool][x(544)](Boolean)[x(849)](","),o=[...r?.[x(517)]].filter(Boolean)[x(849)](","),s=[...r?.[x(801)]].filter(Boolean)[x(849)](","),n=document[x(710)](c),l=!1;n&&(l=!0,n[x(486)]=a[x(710)](c)?.innerHTML??n[x(486)]);let f=document[x(710)](o);f||(f=document[x(710)](s)),f&&(l=!0,f[x(486)]=a[x(710)](o)?.[x(486)]??a[x(710)](s)?.innerHTML??f[x(486)]),l||console.log(x(1014))}),typeof FGSECOMAPP?.[t(1055)]===t(943)&&await FGSECOMAPP[t(1055)](),document[t(798)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(957)],{detail:FGSECOMAPP})),p(t(859)),setTimeout(function(){$e($)},800)},$i=async $=>{let t=x,e=await i(t(1108)+($??""),{method:t(904),headers:{Accept:t(1057),"Content-Type":"application/json"}}).then($=>$[t(889)]()),a=e[t(473)];return FGSECOMAPP.SHOPIFY_CART=e,FGSECOMAPP[t(495)]=a?.map($=>{let x=t;return{...FGSECOMAPP[x(495)]?.[x(603)](x=>x.id===$.id),...$}})??[],e},$r=async()=>{let $=x,t=FGSECOMAPP.SHOPIFY_CART;try{await i(SECOMAPP[$(866)],{method:$(904),headers:{"Content-Type":$(508)}})[$(1080)](async x=>{let e=$,a=await x.json();FGSECOMAPP[e(495)]=a?.cart?.map($=>{let x=e;return{...FGSECOMAPP[x(495)]?.find(x=>x.id===$.id),...$[x(1048)],collections:$[x(975)],tags:$[x(1067)]}})??[],FGSECOMAPP[e(467)]=a?.[e(854)]??{},t=FGSECOMAPP[e(467)]})[$(998)](async x=>{console.error("failed to parse cart section "+x[$(568)]),t=await $i()})}catch(e){console[$(1107)]($(987),e[$(568)]),t=await $i()}return t},$c=[],$o=async $=>{let t=x;try{$c.push($[0]),document[t(798)](new CustomEvent(FGSECOMAPP[t(724)].START_PROCESS_CART,{detail:{events:$c,FGSECOMAPP:FGSECOMAPP}})),await $r();let e=await W(FGSECOMAPP[t(495)],FGSECOMAPP.offers);FGSECOMAPP[t(490)](FGSECOMAPP.offers);let a=!1;return $[0][t(1075)](t(526))&&JSON[t(1051)]($[1][t(815)]??[])[t(1074)]("sca_add_gift")?(console[t(1105)](t(797),[...$c]),await $a(e),a=!0):$[0].startsWith("/cart/update")&&JSON[t(1051)]($[1][t(815)]??[])[t(1074)](t(775))?(console.log(t(928),[...$c]),await $a(e),a=!0):(console[t(1105)](t(925),[...$c]),await $e(e)),$6(),a&&(window[t(967)][t(614)][t(1074)](t(1073))||"fg-checkout"===document.querySelector("#secomapp_freegifts_version")?.getAttribute(t(673)))&&($c=[],location[t(909)]()),document[t(798)](new CustomEvent(FGSECOMAPP[t(724)][t(476)],{detail:{events:$c,FGSECOMAPP:FGSECOMAPP}})),FGSECOMAPP[t(495)]}catch(i){console[t(1107)](i)}},$s=()=>{let $=x;if(!Shopify?.[$(915)])return;let t=document[$(710)](".sca-fg-notifications");if(!t)return;t[$(486)]="";let e=Shopify?.[$(883)]??$(630),a=document[$(807)]("li");a.className="sca-fg-toast sca-fg-success",a.innerHTML='
    \n \n \n \n \n \n \n '+e+$(963),t.appendChild(a),a.timeoutId=setTimeout(()=>$n(a),3e3),document.querySelector($(1092))?.[$(477)]($(890),()=>$n(a))},$n=$=>{let t=x;$[t(541)][t(682)](t(819)),$[t(560)]&&clearTimeout($[t(560)]),setTimeout(()=>$[t(1090)](),500)},$l=$=>{let t=x;try{let e=FGSECOMAPP[t(847)]?.mode_override_checkout,a="trigger_body"===e?$.target:$.currentTarget??$.target;a?.hasAttribute("sca_handle_checkout")||(a=document.querySelector(t(805))?.[t(1003)]);let i=JSON.parse(a.getAttribute("data-fg-checkout-btn"));if(a[t(1047)]=i?.[t(1047)]??"",a.innerHTML=i?.[t(486)]??"",a[t(765)]=!1,a.removeEventListener(t(890),$f),a[t(869)]("sca_handle_checkout"),e===t(742)){a[t(1003)][t(710)](t(1071))[t(890)]();return}e===t(525)&&window[t(529)](t(890),$d,!0),a[t(890)]()}catch(r){window[t(967)][t(688)]((Shopify?.[t(522)]?.[t(507)]??"/")+"checkout"),console[t(1107)](r.message)}};FGSECOMAPP[x(1031)]=async($,t)=>{let e=x;if($===e(505)&&t)t[e(765)]=!0,t[e(916)](e(870),JSON.stringify({innerHTML:t[e(486)],value:t[e(1047)]})),typeof FGSECOMAPP?.[e(911)]===e(943)?await FGSECOMAPP[e(911)]($):(t.value=Shopify?.[e(547)]??e(930),t[e(486)]=Shopify?.[e(1068)]??'
    \n Loading...\n
    ');else if("end"===$&&t){if("function"==typeof FGSECOMAPP?.scaCustomLoadingCheckout)await FGSECOMAPP.scaCustomLoadingCheckout($);else{let a=JSON[e(582)](t[e(653)](e(870)));t.value=a?.[e(1047)]??"",t[e(486)]=a?.[e(486)]??""}t[e(765)]=!1}else $===e(1107)?("function"==typeof FGSECOMAPP?.[e(911)]&&await FGSECOMAPP[e(911)]($),window.location.replace((Shopify?.[e(522)]?.root??"/")+e(684))):console[e(1107)](e(824),$)};let $f=async $=>{let t=x;try{$[t(1010)](),$[t(871)](),$[t(661)]();let e=FGSECOMAPP[t(847)]?.[t(1043)],a=e===t(525)?$.target:$[t(804)]??$[t(657)],{form:r}=a;if(await FGSECOMAPP[t(1031)]("start",a),document[t(798)](new CustomEvent(FGSECOMAPP[t(724)].START_VALIDATE_CHECKOUT,{detail:FGSECOMAPP})),FGSECOMAPP.checkIsBlockCheckout)return!1;FGSECOMAPP.checkIsBlockCheckout=!0;try{let c=new URL(r[t(574)]);c[t(536)][t(518)](t(733),""),await i(c[t(706)](),{method:t(770),body:new FormData(r)})}catch(o){console.log(t(927))}if(C(FGSECOMAPP.offers)&&C(FGSECOMAPP[t(495)]?.[t(603)]($=>u($))))return console[t(1105)](t(714)),$l($),!1;await $r();let s=[...FGSECOMAPP[t(495)]],n=!1;for(let l of FGSECOMAPP[t(1062)])if(l[t(1001)]&&l[t(1001)][t(612)]){let f=H(s,l),d=$t(l.start_time,l.end_time);!d&&f.giftsAdded[t(612)]>0&&(n=!0),f[t(867)]||(n=!0),f.giftsAvailable<0&&(n=!0),l[t(1017)]&&!B(l,SECOMAPP)&&(n=!0)}if(await W(s,FGSECOMAPP[t(1062)]),n)location[t(909)]();else try{FGSECOMAPP[t(847)][t(552)]&&!C(FGSECOMAPP.cartItems?.[t(603)]($=>u($)))?await i(SECOMAPP[t(866)]+t(487)+Shopify?.shop,{method:t(904),headers:{"Content-Type":t(508)}})[t(1080)](async $=>{let x=t,e=await $[x(889)]();e[x(959)]=(e.cart??[])[x(872)]($=>{let t=x;return $.product.collections=$[t(975)]?.[t(872)]($=>({id:$.id})),$[t(1048)].tags=$.tags,{id:$.product.id,variant_id:$.product[t(988)],title:$[t(1048)][t(913)],handle:$.product[t(974)],price:k($[t(1048)]),quantity:$[t(1048)][t(532)],product_type:$[t(1048)][t(825)],vendor:$[t(1048)][t(680)],tags:$[t(1048)].tags,collections:$[t(1048)].collections,selling_plan_allocation:$.product[t(550)]}}),e[x(778)]={arr_offer_added:FGSECOMAPP.arrOfferAdded,secomapp:{customer:SECOMAPP?.customer??{},fg_codes:SECOMAPP?.fg_codes??[],fgSettings:FGSECOMAPP[x(847)]},cookie_fg_code:U(x(935)),shopify_currency:Shopify?.currency},await i(SECOMAPP.freegiftProxy+x(659)+LZString[x(1101)](e=JSON[x(1051)](e)),{method:x(904),headers:{"Content-Type":x(508)}}).then(async $=>{let t=x,e=await $[t(889)]();try{FGSECOMAPP[t(947)]=!1,e[t(504)]&&(window[t(967)].href=e.sca_link_checkout[t(1104)])}catch(a){console[t(1107)](a)}})}):(console.log(t(557)),FGSECOMAPP.checkIsBlockCheckout=!1,$l($))}catch(g){FGSECOMAPP[t(947)]=!1,$l(g)}await FGSECOMAPP[t(1031)](t(859),a=e===t(525)?$[t(657)]:$.currentTarget??$[t(657)]),document.dispatchEvent(new CustomEvent(FGSECOMAPP[t(724)][t(834)],{detail:FGSECOMAPP}))}catch(_){await FGSECOMAPP[t(1031)](t(1107)),document[t(798)](new CustomEvent(FGSECOMAPP[t(724)][t(834)],{detail:FGSECOMAPP})),console[t(1107)](_)}},$d=async $=>{let t=x;$.target?.[t(992)](t(718))&&await $f($)},$8=()=>{let $=x,t=FGSECOMAPP.fgSettings?.[$(1043)],{checkout_btn_query:e}=FGSECOMAPP[$(860)],a=[...e?.[$(517)],...e?.[$(748)],...e?.[$(801)]][$(544)](Boolean)[$(849)](",");document.querySelectorAll(a).forEach(x=>{let e=$,a=x[e(992)]("sca_root_checkout"),i=x[e(992)](e(496)),r=x[e(992)](e(718));if("clone_checkout"===t){if(a)return;if(!i&&!r){let c=x.cloneNode(!0);c[e(477)]("click",$f),c[e(916)](e(718),""),c[e(916)](e(496),""),x[e(652)][e(539)]="none",x[e(652)][e(565)]="hidden",x[e(652)].opacity="0",x[e(916)](e(865),""),x[e(1003)]?.appendChild(c)}i&&!r&&(x[e(477)](e(890),$f),x[e(916)]("sca_handle_checkout",""))}else t===e(525)?x[e(916)]("sca_handle_checkout",""):r||(x[e(477)](e(890),$f),x[e(916)](e(718),""));FGSECOMAPP.hasDoneProcessCheckout=!0}),"trigger_body"===t&&window[$(477)]("click",$d,!0)};FGSECOMAPP[x(645)]=()=>{let $=x;FGSECOMAPP[$(968)]=0;let t=setInterval(()=>{let x=$;$8(),FGSECOMAPP.scaCountRenderEventCheckout++,(FGSECOMAPP[x(968)]>10||FGSECOMAPP.hasDoneProcessCheckout)&&(FGSECOMAPP[x(968)]=0,clearInterval(t))},400)};let $1=$=>{let t=x;try{let e={},a={},i=FGSECOMAPP.offers;if(C($)){$=[],C(Shopify?.current_product)||$.push({...Shopify?.[t(873)]});let r={...Shopify?.other_products,...Shopify?.[t(1061)]?.products};Object[t(591)](FGSECOMAPP[t(622)])?.[t(544)]($=>!C($[t(997)])&&(C($?.[t(956)])||$?.product_has_icon&&!$?.[t(1021)]?.[t(811)]($=>$?.[t(541)]?.[t(1006)](t(1011)))))?.forEach($=>{let x=t;r[$[x(997)].id]={...$[x(997)]}}),$=$[t(971)]([...Object[t(591)](r)])}$?.forEach($=>{let x=t,e=FGSECOMAPP[x(622)][$[x(974)]];FGSECOMAPP.productsInPage[$.handle]={...e,info:{...$},product_has_icon:!!C(i)&&void 0}});let c=FGSECOMAPP[t(847)]?.compare_gift_price_with_product;for(let o in i?.[t(897)](x=>{let i=t,r=x.offer_conditions;if(1===r[i(612)]&&"number_of_products"===r[0][i(1054)]&&typeof r[0][i(624)]===i(573)){let o,s=r[0][i(717)];s?.[i(897)](x=>{let t=i;switch(x[t(554)]){case t(1032):o=Object.values(x[t(1047)]);break;case t(1029):let e=Object[t(638)](x[t(1047)]);e[t(612)]>0&&(o=(void 0===o?$:o)?.[t(544)]($=>e.includes($[t(554)]))??[]);break;case t(515):let a=Object.keys(x.value);a[t(612)]>0&&(o=(void 0===o?$:o)?.filter($=>a.includes($[t(680)]))??[]);break;case t(683):let r=Object[t(638)](x[t(1047)]);r[t(612)]>0&&(o=(void 0===o?$:o)?.filter($=>{let x=t,e=$.collections?.[x(872)]($=>$.id+""),a=e?.[x(544)]($=>r.includes($));return!C(a)})??[])}}),o?.[i(897)]($=>{let t=i,r=$[t(974)],o=x[t(1019)],s=FGSECOMAPP[t(622)][r]?.[t(997)]??{};if(FGSECOMAPP.fgSettings?.[t(605)]&&(o=o[t(544)]($=>$.original_product_shopify_id!==s?.id)),c&&(o=o[t(544)]($=>{let x=t;return $[x(808)][x(1091)]($=>$?.compare_gift_price<=s?.[x(1097)]/100)}),C(o)))return;if(e[r]){let n=e[r]?.[t(872)]($=>$[t(831)]),l=o?.[t(544)]($=>!n?.[t(1074)]($[t(831)]));e[r]=e[r][t(971)](l)}else e[r]=o;let f=($[t(808)]??$[t(716)])?.[t(872)]($=>$.id)??[];a[r]={},FGSECOMAPP[t(622)][r]?.[t(997)]?.[t(808)]?.filter($=>f[t(1074)]($.id))?.[t(897)]($=>{let x=t;a[r][$.id]=o[x(544)](t=>{let e=x,a=t[e(808)];return c&&(a=a[e(544)](x=>x?.[e(1064)]<=$[e(641)]/100)),!C(a)})})})}}),e){let s=FGSECOMAPP.productsInPage[o];FGSECOMAPP[t(622)][o]={...s,gifts_will_receive:[...e[o]],product_has_icon:!0,variants_has_gift:{...a[o]}}}return Object[t(812)](e)?.length?e:{}}catch(n){return console.error(n),null}},$g=$=>{let e=x,a=FGSECOMAPP[e(593)][e(951)]??{};if(!a.gift_thumbnail?.[e(571)])return;let i=document[e(710)](t[e(713)])?.innerHTML??t[e(868)],r=$?.[e(872)]($=>i[e(837)](/{{\s*fg_product_handle\s*}}/gm,m(w($[e(831)],$[e(722)]),!0))[e(837)](/{{\s*fg_product_img\s*}}/gm,m(z($[e(546)]),!0)).replaceAll(/{{\s*fg_product_img_alt\s*}}/gm,m(E($[e(831)],$[e(913)]))))[e(849)](""),c=document[e(710)](t[e(1028)])?.[e(486)]??t[e(488)],o=c.replaceAll(/{{\s*fg_gift_thumbnail_title\s*}}/gm,m(a[e(633)]?.[e(913)]??"Free Gift")).replaceAll(/{{\s*sca_fg_gift_thumbnail_items_section\s*}}/gm,r)[e(837)](/{{\s*fg_check_show_narrow\s*}}/gm,$?.[e(612)]>=4?"":"sca-d-none"),{gift_thumbnail_query:s}=FGSECOMAPP.QUERY_SELECTOR??{},n=[...s?.[e(517)]].filter(Boolean)[e(849)](","),l=[...s?.[e(748)],...s?.[e(801)]][e(544)](Boolean)[e(849)](","),f=document[e(710)](n)??document[e(710)](l);if(!f)return;f[e(1003)][e(652)][e(510)]=e(768),f[e(1003)].style.height=e(732),f[e(1003)]?.className?.[e(1074)](e(990))||f[e(1003)]?.[e(541)]?.[e(682)]("sca-fg-form-thumbnail-product-page");let d=f[e(1003)].querySelector("#sca-gift-thumbnail");if(d)d[e(486)]=o;else{(d=document[e(807)](e(832)))[e(916)]("id",e(719));let g=new DOMParser()[e(1095)](o,e(1053));d[e(486)]=g.body.innerHTML,f[e(1003)][e(651)](d,f)}f[e(1003)][e(651)](d,f);let u=document[e(710)](e(501));if(u)switch(a[e(633)]?.[e(914)]){case"32":u[e(652)][e(690)]=e(1033);break;case"50":u[e(652)][e(690)]=e(458);break;case e(588):u[e(652)].maxWidth=e(978);break;case"160":u[e(652)].maxWidth="80%";break;case e(627):u.style[e(690)]=e(768);break;default:u.style.maxWidth=e(458)}if($?.[e(612)]>=(Shopify?.number_gifts_thumbnail??4))new Glider(document[e(710)](".sca-list-gift-thumbnail"),{slidesToShow:(Shopify?.[e(903)]??4)-1,slidesToScroll:1,draggable:!0,dots:e(790),arrows:{prev:"#fg-gift-thumbnail-title .glider-prev",next:e(694)}});else{u&&(u[e(652)][e(690)]="100%");let _=document[e(710)](e(907));_&&(_[e(652)][e(539)]=e(852))}document[e(798)](new CustomEvent(FGSECOMAPP[e(724)][e(511)],{detail:{FGSECOMAPP:FGSECOMAPP,arrGifts:$}}))},$u=()=>{let $=x;if(!(FGSECOMAPP.fgAppearanceGiftIcon.product_page??{})[$(492)]?.[$(571)])return;let e=document[$(710)](t[$(1070)])?.[$(486)]??t[$(739)],a=e.replaceAll(/{{\s*fg_gift_icon\s*}}/gm,FGSECOMAPP[$(593)][$(678)])[$(837)](/{{\s*fg_gift_icon_alt\s*}}/gm,$(755)).replaceAll(/{{\s*fg_class_product_or_collection_page\s*}}/gm,$(746)),{gift_icon_product_query:i}=FGSECOMAPP[$(860)],r=[...i?.[$(517)]][$(544)](Boolean)[$(849)](","),c=[...i?.default,...i?.[$(748)]][$(544)](Boolean)[$(849)](","),o=document[$(710)](r)??document.querySelector(c);if(!o)return;o[$(652)][$(555)]="relative",o.style[$(510)]="fit-content",o[$(1038)]?.[$(1074)]($(599))||o[$(541)]?.[$(682)]($(599));let s=o[$(710)]($(823));if(s)s[$(486)]=a;else{(s=document[$(807)]($(832))).setAttribute("id",$(459));let n=new DOMParser().parseFromString(a,$(1053));s.innerHTML=n[$(595)][$(486)],o[$(695)](s)}},$_=()=>{let $=x,t=[],{gift_icon_collection_query:e}=FGSECOMAPP.QUERY_SELECTOR,a=[...e?.[$(517)],...e?.integration,...e?.default][$(544)](Boolean)[$(849)](",");return document[$(677)](a)[$(897)](x=>{let e=$,a=x[e(710)](e(945)),i=a?.[e(653)](e(614))?.[e(857)]("/")??[],r=i?.[e(1023)]("products"),c=r>=0?i[r+1]??null:null;if(c=c?.[e(857)]("?")?.[e(877)](),u(c)){x[e(1090)]();return}let o=x[e(710)](e(1035));if(o){x.remove();return}if(C(c))return;let s=decodeURI(c);C(FGSECOMAPP[e(622)][s]?.[e(997)])&&t[e(642)](s);let n=(FGSECOMAPP[e(622)][s]?.positions??[])[e(544)]($=>!x[e(466)]($));n.push(x),FGSECOMAPP[e(622)][s]={...FGSECOMAPP[e(622)][s],positions:[...n]}}),t},$2=$=>{let e=x;Object.keys($)?.[e(897)]($=>{let x=e,a=FGSECOMAPP[x(622)][$]?.[x(1021)]??[];if(C(a)||!Array.isArray(a))return;if(!(FGSECOMAPP.fgAppearanceGiftIcon.collection_page??{}).status)return;let i=document[x(710)](t[x(1070)])?.[x(486)]??t[x(739)],r=i[x(837)](/{{\s*fg_gift_icon\s*}}/gm,FGSECOMAPP.fgAppearanceGiftIcon.gift_icon_path)[x(837)](/{{\s*fg_gift_icon_alt\s*}}/gm,x(755)).replaceAll(/{{\s*fg_class_product_or_collection_page\s*}}/gm,"sca-gift-icon-collection-img");a[x(897)]($=>{let t=x;$[t(652)].position=t(763),$[t(1038)]?.[t(1074)](t(764))||$[t(541)]?.[t(682)](t(764));let e=$[t(710)](t(756));if(e)e.innerHTML=r;else{(e=document.createElement(t(832))).setAttribute(t(983),"sca-gift-icon-collection-page");let a=new DOMParser().parseFromString(r,t(1053));e[t(486)]=a.body.innerHTML,$[t(695)](e)}})})},$p=async $=>{let t=x;await i(SECOMAPP[t(866)]+t(587)+LZString[t(1101)](JSON.stringify($)),{method:t(904),headers:{"Content-Type":t(508)}})[t(1080)](async $=>{let x=t,e=await $[x(889)](),a=[];e?.products?.[x(897)]($=>{let t=x;C($?.[t(564)]?.id)||a.push({...$[t(564)],collections:$[t(975)],variants_quantity:$[t(966)]})});let i=$1(a);$2(i)})[t(998)]($=>{console[t(1107)]($)})},$h=async $=>{let t=x,e=[];for(let[a,i]of $[t(812)]())C(FGSECOMAPP[t(622)][i]?.[t(997)])&&e[t(642)](i),20===e[t(612)]&&(await $p([...e]),e=[]),a===$.length-1&&e[t(612)]>0&&(await $p([...e]),e=[])},$m=()=>{let $=$_(),x=$1();$2(x),$h($).then()},$b=()=>{let $=x;Shopify?.[$(946)]&&document.addEventListener($(665),function(){let x=$,t=new URL(document[x(1083)]),e=parseInt(t[x(536)][x(902)](x(716)));$4(isNaN(e)?void 0:e)})},$4=$=>{let t=x;if(!location[t(614)][t(1074)](t(1069)))return;document.querySelector("#sca-gift-icon")?.[t(1090)](),document[t(710)](t(802))?.[t(1090)]();let e=$1();if(C(e))return;let a=location.pathname[t(857)]("/"),i=a?.indexOf("products"),r=decodeURI(i>=0?a[i+1]??null:null);if(!Object[t(638)](e)?.includes(r))return;let c=e[r],o=FGSECOMAPP.productsInPage[r]?.[t(480)]??{},s=Object[t(638)](o);if(Shopify?.[t(946)]){if(!C($)&&!s[t(1074)]($)||C($)&&!C(Shopify?.[t(873)]?.[t(471)])&&!s[t(1074)](Shopify?.[t(873)]?.[t(471)]?.id?.toString()))return;c=o[$??Shopify?.[t(873)]?.current_variant?.id]??c}$g(c),$u(c)};FGSECOMAPP[x(490)]=$=>{let e=x;try{if(!FGSECOMAPP[e(485)][e(668)])return;C($)&&($=[...FGSECOMAPP.offers]);let a=location[e(614)].includes(e(1073)),i=[];if($?.[e(897)]($=>{let x=e;$[x(867)]||C($[x(942)])||!C(FGSECOMAPP[x(592)])&&!$.isReachConditions&&$[x(960)]>FGSECOMAPP[x(592)]||C(($[x(887)]??0)+($[x(806)]??0))&&/({{sca_min_total}})|({{sca_min_quantity}})/gm[x(995)]($[x(942)])||i[x(642)]($.promotion_message[x(837)]("{{sca_min_total}}",$[x(887)]?.toFixed(Shopify?.sca_amount_fixed??2)).replaceAll(x(853),$[x(806)]))}),C(i)){document.querySelectorAll(e(794))[e(897)]($=>$.innerHTML="");return}let r=document.querySelector(t[e(681)])?.[e(486)]??t[e(917)],c=i[e(872)]($=>r.replaceAll(/{{\s*fg_cart_message\s*}}/gm,m($)))[e(849)](""),o=document[e(710)](t[e(679)])?.innerHTML??t.CART_MSG_SECTION,s=o[e(837)](/{{\s*sca_fg_cart_message_items_section\s*}}/gm,c),{cart_message_query:n}=FGSECOMAPP[e(860)],l=document[e(710)]([...n?.[e(801)]][e(544)](Boolean)[e(849)](",")),f=document[e(677)]([...n?.[e(517)],...n?.[e(748)]][e(544)](Boolean).join(",")),d=document[e(677)](e(794));C(d)||d[e(897)]($=>$.innerHTML=s),(d=document[e(807)](e(832))).setAttribute("id",e(939)),d[e(541)].add(e(939));let g=new DOMParser()[e(1095)](s,e(1053));d[e(486)]=g.body[e(486)],C(f)||f?.forEach($=>{let x=e;if($[x(710)](x(794)))return;let t=d[x(800)](!0);$[x(1049)](t)}),!l?.[e(710)](".sca-promotion-message-layout")&&(g=new DOMParser().parseFromString(s,e(1053)),d.innerHTML=g[e(595)][e(486)],l&&a&&l[e(1049)](d));try{document[e(677)](e(1079))[e(897)]($=>{let x=new Glider($);(($,x)=>{let t=_0x1396,e=$[t(524)][t(704)],a=null,i=1;function r(){a=setTimeout(()=>{let x=_0x1396;i>=e&&(i=0),$[x(489)](i++)},x)}$[t(795)][t(477)](t(845),function(){window[t(833)](a),r()}),r()})(x,Shopify?.[e(996)]??3e3)})}catch(u){console.error(u)}}catch(_){console[e(1107)](_)}};let $3=async()=>{let $=x;try{let t=await i("https://geoip.secomtech.com/?json"),e=await t[$(889)]();FGSECOMAPP.customerLocation=e?.[$(708)]}catch(a){console[$(1105)]($(743))}},$y=()=>{let $=x;if(!FGSECOMAPP[$(855)]?.[$(632)]?.[$(820)]||!FGSECOMAPP.offers[$(612)])return;let e=document[$(710)]($(562)),a=document[$(710)]($(1084));if(!e||!a)return;let i=document[$(710)](t[$(878)])?.[$(486)]??t[$(899)],r=document[$(710)](t.TODAY_OFFER_ITEM_SECTION_ID)?.[$(486)]??t[$(617)],c=document[$(710)](t[$(687)])?.innerHTML??t.TODAY_OFFER_WIDGET,o={};FGSECOMAPP[$(1062)][$(897)](x=>{let t=$;o[x[t(535)]]=x});let s=Object[$(591)](o);s[$(730)]((x,t)=>{let e=$;return new Date(x[e(836)])-new Date(t[e(836)])}),e.innerHTML=c[$(837)](/{{\s*sca_fg_today_offer_widget\s*}}/gm,m(FGSECOMAPP[$(855)][$(734)])),FGSECOMAPP[$(855)]?.[$(632)][$(842)]===$(670)&&(e[$(541)][$(682)]($(827)),a[$(541)][$(682)]($(698))),FGSECOMAPP[$(855)]?.widget_info.widget_position===$(623)&&(e[$(541)][$(682)]("sca-today-offer-widget-right"),a[$(541)][$(682)]($(1016))),a.innerHTML=i[$(837)](/{{\s*sca_fg_today_offer_title\s*}}/gm,m(FGSECOMAPP[$(855)][$(632)][$(893)]??$(636)))[$(837)](/{{\s*sca_fg_today_offer_subtitle\s*}}/gm,m(FGSECOMAPP[$(855)].widget_info[$(1045)]??$(970))),document.querySelector($(464))[$(486)]=s[$(872)](x=>r.replaceAll(/{{\s*sca_fg_offer_id\s*}}/gm,m(x[$(535)]))[$(837)](/{{\s*sca_fg_offer_title\s*}}/gm,m(x[$(1076)]))[$(837)](/{{\s*sca_fg_offer_title_tooltip\s*}}/gm,m(x.offer_name))[$(837)](/{{\s*sca_fg_offer_img\s*}}/gm,m(x[$(1019)][0][$(546)],!0)))[$(849)]("\n"),document[$(710)]($(977))[$(486)]=s[$(612)].toString(),document.querySelector($(611))[$(477)]($(890),()=>{let x=$,t=document.querySelector(x(1084));t?.classList[x(607)]("sca-show")}),document.querySelector($(562)).addEventListener("click",()=>{let x=$,t=document[x(710)]("#sca-fg-today-offer-iframe");t?.[x(541)].toggle(x(625))}),$6();let n=(x,t,e)=>{let a=$,i=document[a(807)]("p");i[a(1038)]=a(952),i.textContent=x,document[a(595)].appendChild(i),i[a(652)][a(675)]=e+"px",i[a(652)][a(896)]=t+"px",i[a(652)][a(539)]=a(958)},l=()=>{let x=$,t=document[x(710)](x(955));t&&t.parentNode[x(481)](t)},f=x=>{let t=$,e=document[t(710)](t(955));e&&(e.style[t(675)]=x[t(686)]+"px",e[t(652)].left=x[t(701)]+5+"px")},d=document[$(677)](".sca-offer-title");d[$(897)](function(x){let t=$;x[t(477)](t(483),function($){let e=t,a=x[e(653)](e(821));n(a,$[e(701)]+5,$[e(686)]+5)}),x[t(477)](t(1040),function(){l()}),x[t(477)]("mousemove",f)})},$6=()=>{let $=x,t=[...new Set(FGSECOMAPP[$(1062)]?.[$(544)](x=>x[$(867)]).map($=>$.offer_root))],e=document[$(677)]("#sca-fg-today-offer-iframe .sca-fg-body .sca-fg-offers .sca-fg-offer");e[$(897)](x=>{let e=$;t[e(1074)](x.getAttribute("data-fg-offer-id"))?x[e(541)][e(682)](e(1060)):x[e(541)][e(1090)]("sca-offer-archived")})},$v=function(){let $=x;try{document[$(477)](FGSECOMAPP[$(724)][$(957)],async()=>{let x=$;try{window[x(672)]&&(unicart[x(798)](x(491)),console[x(1105)](x(776)))}catch(t){console[x(1107)](x(776),t)}try{window[x(556)]&&(await window[x(556)](),console[x(1105)](x(1002)))}catch(e){console.error("iCart",e)}try{window.Rebuy?.[x(786)]?.[x(613)]&&window[x(910)][x(786)][x(613)]()}catch(a){console.error(x(910),a)}try{window.SLIDECART_UPDATE&&(await $i(x(754)).then($=>{let t=x;window[t(519)]($),window[t(621)]()}),console[x(1105)](x(1036)))}catch(i){console[x(1107)](x(1036),i)}try{let r=document.querySelector("#upCartStickyButton .upcart-sticky-cart-quantity-icon-text");window.upcartRegisterAddToCart&&(await window[x(1042)](),console.log(x(671)),r&&(r.innerHTML=FGSECOMAPP?.SHOPIFY_CART?.[x(809)]??0))}catch(c){console[x(1107)](x(671),c)}try{window[x(1103)]&&(await window[x(1103)](),window.STICKY_CART_OPEN(),console[x(1105)]("Slide Cart - qikify"))}catch(o){console[x(1107)]("Slide Cart - qikify",o)}try{window?.[x(1030)]?.Widgets?.CartSlider?.openSlider&&(await window.SATCB[x(493)].CartSlider[x(934)](),console[x(1105)](x(693)))}catch(s){console[x(1107)](x(693),s)}try{window[x(740)]&&(await window[x(740)](),window.openCart(),console.log(x(888)))}catch(n){console[x(1107)](x(888),n)}try{window[x(596)]&&await (window[x(596)](),window[x(516)](),console[x(1105)](x(610)))}catch(l){console.error("Monster Cart",l)}try{let f=document.querySelector("m-cart-drawer"),d=document.querySelector(x(1072));window[x(461)]&&f&&(await f?.[x(578)](!window.FoxKitV2?.[x(744)]),f?.[x(874)]()),window.FoxTheme&&d&&(await d?.updateCart(),d?.[x(785)]?.[x(923)]())}catch(g){console[x(1107)](x(994),g)}}),window[$(477)]("icartSideCartOpenEvent",function(x){let t=$;FGSECOMAPP[t(490)](),FGSECOMAPP[t(645)]()}),document.addEventListener("rebuy:smartcart.show",x=>{let t=$;FGSECOMAPP[t(490)](),FGSECOMAPP[t(645)]()}),window[$(828)]=function(){let x=$;FGSECOMAPP[x(490)](),FGSECOMAPP[x(645)]()},window[$(944)]=()=>{FGSECOMAPP.renderPromotionMessage(),FGSECOMAPP[$(645)]()},window[$(906)]?.[$(584)]&&window[$(906)][$(584)](window[$(461)]?.[$(1082)]?.[$(543)]??$(926),function(){let x=$;FGSECOMAPP[x(490)](),FGSECOMAPP[x(645)]()}),document[$(477)](FGSECOMAPP[$(724)][$(772)],()=>{let x=$;try{typeof window[x(577)]===x(943)&&window[x(577)](),typeof window[x(937)]===x(943)&&window.closeCart(),typeof window[x(1037)]===x(943)&&window[x(1037)](),document[x(710)](".satcb-cs-close")?.[x(890)]()}catch(t){console[x(1107)](t)}}),document[$(477)](FGSECOMAPP.CUSTOM_EVENTS.FG_OVERRIDE_FETCH,()=>{let x=$;try{!document.querySelector(x(608))&&window[x(1042)]&&window.upcartRegisterAddToCart()}catch(t){console[x(1107)](t)}})}catch(t){console[$(1107)](t)}};$x(FGSECOMAPP.cartItems)[x(1080)](()=>{$v()})}();