window.fgData={"offers":[{"id":19312,"shop_id":7273,"offer_name":"CyberMonday","offer_description":null,"promotion_message":null,"start_time":"2023-11-27T14:55:30.000000Z","end_time":"2023-11-30T04:59:00.000000Z","condition_relationship":null,"gift_settings":{"discount":{"type":"percentage","value":100},"auto_add_all_gifts":false,"customer_will_receive":"number_of_gift_can_receive","cal_gift_for_other_rules":false,"number_of_gift_can_receive":1},"gift_should_the_same":{"type":"variant","status":false},"sub_conditions":{"subscription_products":{"is_only":true}},"priority":1,"stop_lower_priority":false,"status":true,"loading":"not_running","gift_products":[{"title":"\u00bb Drink HRW Rejuvenation H2 tablets (100% off)","original_product_handle":"drink-hrw-rejuvenation-h2-tablets","clone_product_handle":"drink-hrw-rejuvenation-h2-tablets-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0640\/5403\/4651\/files\/rejuvenation.png?v=1685111779","product_shopify_id":8167725007067,"original_product_shopify_id":7747698524379,"variants":[{"id":117196,"gift_product_id":45270,"discount_type":"percentage","discount_value":100,"original_price":34.99,"original_compare_at_price":null,"original_product_shopify_id":7747698524379,"original_variant_shopify_id":43034910392539,"price":0,"product_shopify_id":8167725007067,"variant_shopify_id":44478648484059,"variant_title":"Natural \/ 30 Tablets","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0640\/5403\/4651\/products\/TL_Rejuve30_REG_ProductShot_A_V1.png?v=1701097018","pivot":{"offer_id":19312,"gift_item_id":117196},"gift_product":{"id":45270,"shop_id":7273,"title":"\u00bb Drink HRW Rejuvenation H2 tablets (100% off)","original_product_handle":"drink-hrw-rejuvenation-h2-tablets","clone_product_handle":"drink-hrw-rejuvenation-h2-tablets-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0640\/5403\/4651\/files\/rejuvenation.png?v=1685111779","product_shopify_id":8167725007067,"original_product_shopify_id":7747698524379,"created_at":"2023-11-27T14:56:58.000000Z","updated_at":"2023-11-27T14:56:58.000000Z"}},{"id":117197,"gift_product_id":45270,"discount_type":"percentage","discount_value":100,"original_price":34.99,"original_compare_at_price":null,"original_product_shopify_id":7747698524379,"original_variant_shopify_id":43034910458075,"price":0,"product_shopify_id":8167725007067,"variant_shopify_id":44478648549595,"variant_title":"Raspberry \/ 30 Tablets","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0640\/5403\/4651\/files\/TP_Rejuve30_SP_ProductShot_A_V1.png?v=1687228205","pivot":{"offer_id":19312,"gift_item_id":117197},"gift_product":{"id":45270,"shop_id":7273,"title":"\u00bb Drink HRW Rejuvenation H2 tablets (100% off)","original_product_handle":"drink-hrw-rejuvenation-h2-tablets","clone_product_handle":"drink-hrw-rejuvenation-h2-tablets-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0640\/5403\/4651\/files\/rejuvenation.png?v=1685111779","product_shopify_id":8167725007067,"original_product_shopify_id":7747698524379,"created_at":"2023-11-27T14:56:58.000000Z","updated_at":"2023-11-27T14:56:58.000000Z"}}]}],"offer_conditions":[{"id":20230,"offer_id":19312,"is_multiply":null,"min_amount":"10.00","max_amount":null,"product_narrow":[],"unit":"money"}],"gift_items":[{"id":117196,"gift_product_id":45270,"discount_type":"percentage","discount_value":100,"original_price":34.99,"original_compare_at_price":null,"original_product_shopify_id":7747698524379,"original_variant_shopify_id":43034910392539,"price":0,"product_shopify_id":8167725007067,"variant_shopify_id":44478648484059,"variant_title":"Natural \/ 30 Tablets","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0640\/5403\/4651\/products\/TL_Rejuve30_REG_ProductShot_A_V1.png?v=1701097018","pivot":{"offer_id":19312,"gift_item_id":117196},"gift_product":{"id":45270,"shop_id":7273,"title":"\u00bb Drink HRW Rejuvenation H2 tablets (100% off)","original_product_handle":"drink-hrw-rejuvenation-h2-tablets","clone_product_handle":"drink-hrw-rejuvenation-h2-tablets-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0640\/5403\/4651\/files\/rejuvenation.png?v=1685111779","product_shopify_id":8167725007067,"original_product_shopify_id":7747698524379,"created_at":"2023-11-27T14:56:58.000000Z","updated_at":"2023-11-27T14:56:58.000000Z"}},{"id":117197,"gift_product_id":45270,"discount_type":"percentage","discount_value":100,"original_price":34.99,"original_compare_at_price":null,"original_product_shopify_id":7747698524379,"original_variant_shopify_id":43034910458075,"price":0,"product_shopify_id":8167725007067,"variant_shopify_id":44478648549595,"variant_title":"Raspberry \/ 30 Tablets","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0640\/5403\/4651\/files\/TP_Rejuve30_SP_ProductShot_A_V1.png?v=1687228205","pivot":{"offer_id":19312,"gift_item_id":117197},"gift_product":{"id":45270,"shop_id":7273,"title":"\u00bb Drink HRW Rejuvenation H2 tablets (100% off)","original_product_handle":"drink-hrw-rejuvenation-h2-tablets","clone_product_handle":"drink-hrw-rejuvenation-h2-tablets-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0640\/5403\/4651\/files\/rejuvenation.png?v=1685111779","product_shopify_id":8167725007067,"original_product_shopify_id":7747698524379,"created_at":"2023-11-27T14:56:58.000000Z","updated_at":"2023-11-27T14:56:58.000000Z"}}]}],"settings":{"gift_format":"same_as_original_products","auto_add_gift":true,"sync_quantity":false,"cal_gift_discount":"current_price","using_draft_order":false,"select_one_gift_price":false,"manual_input_inventory":false,"compare_gift_price_with_product":false,"delete_gift_after_turn_off_offer":true,"not_show_gift_if_already_on_cart":false},"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":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-red.png","shopify_gift_icon_path":"fg-icon-red.png","product_page":{"gift_icon":{"status":true,"size":"50"},"gift_thumbnail":{"status":true,"size":"100","title":"Free Gift"}},"collection_page":{"status":true,"size":"50"}},"promotion_message":{"show_on_cart_page":true,"text_color":"#ffffff","background_color":"#F72119"},"today_offer":{"widget_icon_path":"images\/widget-icons\/widget-icon-1.png","shopify_widget_icon_path":"widget-icon-1.png","widget_info":{"show_widget":false,"widget_position":"bottom_right","widget_title":"TODAY OFFER","widget_subtitle":"Claim these exclusive offers today"}}},"integration":{"transcy":{"install":false}}};/* END_FG_DATA */
const _0x41d83a=_0x3e98;if(!function($,x){let t=_0x3e98,e=$();for(;;)try{let a=parseInt(t(687))/1*(-parseInt(t(820))/2)+-parseInt(t(319))/3*(-parseInt(t(428))/4)+parseInt(t(409))/5+-parseInt(t(162))/6*(-parseInt(t(590))/7)+parseInt(t(412))/8+parseInt(t(221))/9*(-parseInt(t(605))/10)+-parseInt(t(563))/11*(-parseInt(t(313))/12);if(729744===a)break;e.push(e.shift())}catch(i){e.push(e.shift())}}(_0x194f,729744),window[_0x41d83a(761)]?.[_0x41d83a(223)]?.gift_icon?.gift_icon_path&&fgGiftIcon&&(window.fgData[_0x41d83a(223)].gift_icon[_0x41d83a(739)]=fgGiftIcon),window.fgData?.[_0x41d83a(223)]?.[_0x41d83a(450)]?.[_0x41d83a(306)]&&fgWidgetIconsObj){let $=window[_0x41d83a(761)][_0x41d83a(223)].today_offer[_0x41d83a(306)];window[_0x41d83a(761)][_0x41d83a(223)][_0x41d83a(450)][_0x41d83a(756)]=fgWidgetIconsObj[$]??$}function _0x194f(){let $=[".sca-fg-notifications","total_price","[type='submit'][name='add'], [type='button'][name='add'], [data-add-to-cart], [data-action='add-to-cart']","/cart",'
\n
\n \n \n \n \n \n
',"disableShopify_getCart","color","glider-animated","PRODUCT_HAS_GIFTS","product_has_icon",".sca-offer-title","#UpcartPopup:has(#CartPopup[class*='styles_active'])","current_collection","this is others","product_collections","sca_add_gift","track variant auto add gift: {","data-fg-checkout-btn","fg-checkout","general","freegift_attributes","sections_cart","then","innerText","sca_add_url","customize.select_variant_button_text","clone_product_handle","left","action","fg_fetch_attributes","#freegifts-main-popup-container [data-close]","gift_should_the_same","openDrawer","fg-gifts:added","auto_add_gift","split","60%","dataset","entries","hasOwnProperty","unit","unshift","location","#sca_fg_cart_message_section","gift_thumbnail","removeAttribute","openCartDrawer","} {","RENDER_CART_MESSAGE","sections_url","catch","Cart","not_show_gift_if_already_on_cart","Escape","POST","current_product","body","scrollItem","using_draft_order","en-US","original_variant_shopify_id","2NeSlyd","reload","/cart.js?sca_fetch&","parentElement","event add gift to cart from popup","opacity","sca_update_url","not type checkout btn","startsWith",".satcb-cs .satcb-cs-top-container, #monster-upsell-cart #monster-cart-wrapper div[class*=custom_scrollbar]","80%",'\n {{ sca_fg_cart_message_items_section }}\n
',"END_VALIDATE_CHECKOUT","max_gifts_can_get","remove","sca_root_checkout","isSameNode","discounted_price","cal_gift_discount","top","gifts_id","condition_result","positions","event auto process gifts with cart","current_variant","log","scaCountRenderEventCheckout","GIFT_THUMBNAIL_SECTION_ID","childElementCount","CART_MSG_ITEM_SECTION","cart-drawer .mini-cart__inner .mini-cart__empty, cart-drawer .mini-cart__inner .mini-cart__main","sca_fg_codes","number_gifts_thumbnail","locale","variant","CUSTOM_EVENTS","application/liquid","scaHandleConfigValue","customize.gift_slider_title","START_VALIDATE_CHECKOUT","Show","show_widget","number_product_slider","customize.add_to_cart_button","#7367f0",".m-product-form--wrapper","100%","SLIDECART_CLOSE","#sca-fg-today-offer-iframe .sca-fg-body .sca-fg-offers .sca-fg-offer","sca-show","widget_title","data-original-id","gift_icon_path","Rebuy","Unicart","giftsAvailable","checkout",".sca-gift-icon-collection-page","GIFTS_CART_SECTION","timeoutId","sections","Sticky Cart - Codeinero","sca_checkout_form","GIFT_SELECT_SECTION","replace","values","productsByID","Shopify.getCart","isArray","widget_icon_path","#close-fg-toast","RENDER_TODAY_OFFER","getAttribute","src","fgData","160","getTime","thumbnail","info","hasDoneProcessCheckout",".satcb-cs-checkout-btn, .hs-checkout-purchase","fg-xhr:open","cartDrawer","length","collections","Out of stock","GIFTS_POPUP_SECTION","sca_fetch_cart",'\n \n \n \n \n \n ',"#sca_fg_cart_message_items_section","substring","message","GIFT_ITEM_SECTION_ID","display","sca-fg-tooltip","input[value='Check Out'] a.checkout-link","HS_SLIDE_CART_OPEN","Widgets",".dots","compare_gift_price_with_product","show_gift_for_customer","pageX","toggle","fg-cart:auto-updated","parentNode","#sca-fg-today-offer-widget","MinimogTheme","[data-open]","mouseenter","add_to_cart_btn_title",".m-product-item, .m-product-list .swiper-slide, .f-grid .f-column","unicart","QUERY_SELECTOR","product_type","fg-messages:render","visibility",".f\\:featured-collection .f\\:featured-collection-block .f\\:column","variants_ids","sca-gift-thumbnail","customize.disable_slider_text","enable","offer_conditions","appendChild","hide","subscribe","fgCallback","#fg-gift-items .btn-add-to-cart","fg_codes","#MainContent, #mainContent, #main, .main-content","attributes","secomappGetCartRunning","hidden_brand_mark",'\n \n \n \n ',"561340evghDy","customer","Cannot define custom loading with type: ","sca_transcy_locale","isReachConditions","sca-fg-today-offer-title-tooltip","openSlider","fg-xhr:send","fg-app:end","href","show_product_title","#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg","priority","slice","show_pagination","giftsAdded","clone_checkout","charAt","sca-fg-icon-collection-page","textContent","replaceAll","prepend","#fg-gift-items .dropdown","total_spent_on_last_order","type","FoxKitV2","?sca_attr_cart","div[class*=hs-cart-drawer] .hs-site-cart-popup-layout, #MinimogCartDrawer m-cart-drawer-items, #CartDrawer > .drawer__inner","Claim these exclusive offers today","discount_value","variants_quantity","original_product_handle",".f-product-single__title, .m-product-title","createElement","240",".product-item-thumbnail","api","format","2716026JkQDiQ","test","sca_catch","default","prototype","variant_title",'{{ fg_gift_thumbnail_title }}
\n\n \n
\n
\n {{ sca_fg_gift_thumbnail_items_section }}\n
\n \n
\n
\n
\n
',"sca_handle_checkout","getCart","function","#sca-fg-today-offer-iframe","freegifts",'\n {{ fg_variant_title }}\n ',"STICKY_CART_UPDATE",'\n
\n
\n
\n
\n \n {{ fg_original_price }}\n \n {{ fg_gift_price }} \n
\n \n
\n
\n \n {{ fg_variant_title }}\n \n \n
\n \n
\n \n
\n {{ fg_add_to_cart }}\n \n
\n
\n
',"tool","add_to_cart_btn_color","product_narrow","url","Loading...","GIFT_THUMBNAIL_SECTION","sca_clone_checkout",'\n
\n
\n
{{ sca_fg_offer_title }} \n
\n
\n \n \n \n \n
',"GET","count_down_quantity","end","track","max_amount","Monster Cart","price_max","cal_gift_for_other_rules","stop_offer","#sca_fg_gift_thumbnail_section","T4SThemeSP","offers","#sca-fg-today-offer-iframe .sca-fg-body .sca-fg-offers",".sca-fg-close-today-offer","SHOPIFY_CART","price",".satcb-cs-close","rebuy:smartcart.show","flex","fgAppearanceGiftSlider","variant_id","now","innerHTML","/cart/update","fg-today-offer:render","number_of_products","m-cart-drawer","SLIDECART_OPENED","customer_tags","items","TODAY_OFFER_SECTION","sca-today-offer-widget-left","set",'',"and","target","24012Ftmban","product_shopify_id","appearance","variants","inventory_management",".dots-thumbnail","product_page","Select variant","https://geoip.secomtech.com/?json","sca-gift-icon-collection-page","enable_check_variants_has_gift","last_total","DONE","FG_OVERRIDE_FETCH","{{sca_min_total}}","Failed to get customer location","onCartDrawerUpdate","d-block","send","sca_fg_price","#CartPopup .styles_CartPreview__card__KX-WB, #qikify-stickycart-v2-app .qsc2-drawer-wrapper > div:nth-child(2)","width","isDelayShowAdded","fgAppearancePromotionMessage","sca-offer-archived","belongs_to_offer","product_types","Error decoding cookie:","XMLHttpRequest","gift_products","not using draft order","end_time","fgSettings","start_time","fgIntegration","readyState","specific_link_address",'.btn-add-to-cart[data-variant="',"CART_MSG_ITEM_SECTION_ID","GIFT_THUMBNAIL_ITEMS_SECTION_ID","mousemove",'\n Loading... \n
',"sca_fg_main_promotion_message_query","free-gift-icon","condition_relationship","sca_fg_value_checkout","sub_conditions","SECOMAPP_FREEGIFT","cart/add","CartJS","products",'\n
\n {{ fg_slider_title }}\n
\n
\n
\n
\n ❮ \n
\n
\n ❯ \n
\n
\n
\n \n {{ sca_fg_disable_slider_section }}\n
',"Rivets Cart","offer.offer_title_","maxOfferPriority","available","data-price","#sca-gift-icon","gift_items","key","original_product_shopify_id","number_of_gift_can_receive","customerLocation","handle","#fg-gift-thumbnail-title .glider-next","order_created_from","cloneNode","others","offer.cart_message_","count_down_value","div","CartSlider","DISABLE_SLIDER_SECTION_ID","SLIDECART_UPDATE","object","selling_plan_allocation","original_price","block","#sca_fg_section_gift_item","original_compare_at_price","collection_page","redirected","/products/","contains","reduce","shopify_widget_icon_path",".product-card, #product-grid .grid__item, .product-grid .grid__item, .card-list .card-list__column","application/json;","closeCart","maxWidth","pubSubEvents","/cart/add","912fPfVOC","fetchCart","compare_gift_price","class","Add gift to cart successfully!","END_RENDER_APP","7125rLmwWQ","arrGiftsRemove","addEventListener","pageY","dispatchEvent","CART_MSG_SECTION",".fg-secomapp-collection-img","click","mode_override_checkout","#shopify-section-header #cart-icon-bubble, .shopify-section.section-header #cart-icon-bubble","Slide Cart - qikify","start","data-variant","gift_img_size","widget_info","offer",'a[href*="/collections/sca_fg"]',".freegifts-main-container .glider-prev","checkIsBlockCheckout","undefined","sca_fg_img_collection_gift_icon_query","routes","#sca_fg_today_offer_section","input[name='checkout'], button[name='checkout'], input[name='goto_pp'], button[name='goto_pp']","fg-cart:start-process","boolean","bottom_left","include","widget_subtitle","value_customer_locations","GIFT_ICON_SECTION","#secomapp_freegifts_version","compare_at_price","position","every","fg-gifts:show-slider","defineProperty","sca_locale","final_price","GIFT_UPDATED","fg-cart:end-process","GIFT_ADDED","button.new_checkout_button, input[value='Checkout'], input[value='Checkout'], input[value='Check out']","settings","fgAppearance","sca-gift-icon-collection-img","GIFTS_POPUP_SECTION_ID","Select your free gift!","GIFT_THUMBNAIL_ITEMS_SECTION","isUpdateCart","searchParams","change","getToFetch","HS_SLIDE_CART_UPDATE","fgAppearanceGiftIcon","gift_settings","relative","NumberFormat","#82868b","disable_override_xhr","cal_gift_price","setAttribute","monster_refresh","auto add all gifts from {","URL","-sca_clone_freegift","height","stringify","setItem","trigger_body",".cc-product-list .product-block, .collection-list.grid .grid__item, .collection-grid.grid .grid__item","TODAY_OFFER_ITEM_SECTION_ID","removeChild","sca_price","manual_input_inventory","tags","SHOW_GIFT_SLIDER","min_amount","string","data-offer","apply","get","toFixed","filter","paid","hasAttribute","classList","fg_decimal","customer_locations","offer_root","2081985Ywkgtz","insertBefore","fg-gifts:updated","1497592oywVlt","MinimogEvents","checked",".btn-add-to-cart","getElementById","variant_shopify_id","updateCart","failed to parse cart section ","is_only","upcartRegisterAddToCart","/cart/add.js","HS_SLIDE_CART_CLOSE","total_spend_on_order_history","ele",".fg-secomapp-handle-add-to-cart","active","388iehmyX","#fg-gift-items .dropdown > .dropdown-menu > li","#sca_fg_variant_select_section","[sca_root_checkout]","keys","SATCB","customize.widget_title","cart","sca_process_gifts","find","sca-d-none","variantId","Error listening XHR send","Slide Cart - Heysenior","sca_fg_innerHTML","FGSECOMAPP_HIDDEN_GIFT_POPUP","compressToEncodedURIComponent",".sca-promotion-message-layout","sca_amount_fixed",".gift-original-url","title","concat","today_offer","sca_fg_btn_gift_thumbnail_query","sca_fg_cart_drawer_query","join",".fg-secomapp-cart-icon","is_multiply","gifts_valid","GIFT_ICON_SECTION_ID","sca_offers_added","STICKY_CART_OPEN","sca-promotion-message-layout","freegifts-main-page-container","promotion_message","#sca-fg-today-offer-widget .sca-fg-count-offers","sca_deplay_cart_msg","sca-gift-icon-img","style","number_of_order","disabled","selling_plan","FGSECOMAPP","gift_slider","transcy","open","shift","value","?sca_process_gifts","customGiftImgSize","USD","CART_MSG_SECTION_ID",".freegifts-main-container .glider-next","offer_id",".product_name, .product-title, .product__title, .product-single__title, .tt-title, .ProductMeta__Title","sca-fg-form-thumbnail-product-page","fgAppearanceTodayOffer","fg-checkout:end","cartItems","product","TODAY_OFFER_CHANGE","productsInPage","customize.product_page_message",'',"iCart","GIFTS_CART_SECTION_ID","push","offer_name","fg-checkout:start","customer_order_history","sca-today-offer-right",' \n ',"50%","by_variants","text/html","orders","scaCustomLoadingCheckout","cookie","FG_OVERRIDE_XHR_OPEN","/cart/change","gifts","renderPromotionMessage","sync_quantity","Update cart.attributes ","70%","rate","giftsAddedInvalid","product_vendors","discount_type","data-fg-offer-id","some","fit-content","show_on_cart_page","#fg-gift-thumbnail-title .glider-prev","stop_lower_priority","formatter","focus","indexOf",'\n {{ fg_cart_message }}\n
',"arrGiftsData","UpCart - AfterSell","toString","quantity","sca-fg-out-stock",".dropdown-menu","add","sca-gift-icon","root","number","text","#sca-gift-thumbnail","arrOfferAdded","openCart","prepareDataForDisplayWidgetByRule","reRenderCartCustom","forEach","auto_add_all_gifts","sca-today-offer-left","addGiftToCart","freegiftProxy","GIFT_ITEM_SECTION","data-original-price","sca_link_checkout","className","Free Gift","sca-fg-form-icon-product-page","none","status","querySelectorAll","currency","#rebuy-cart[class*='is-visible']","fetchCheckoutEvents","START_PROCESS_CART","backgroundColor","email","41833QXwmGi","active ","customLoadingCheckout","END_PROCESS_CART","enable_toast_added","removeEventListener","detail","map","integration","currentTarget","parse","clearInterval","call","/?sections=","stopImmediatePropagation","sca_fg_cart_icon_query","data-template","parseFromString","gift_icon","bogos-gift","product_id","GIFT_SELECT_SECTION_ID","money","headers","initializeForXHR","upcartOnCartOpened","keyup","21EaZsEw","vendor","widget_position","application/json","auto add gift: {","padding","fg-gift-items","mouseleave","json","sca-is-visible-fg","6px 0","append","have_not_got_gift_from_this_offer","customize.widget_subtitle","SLIDECART - HQ","4460vTUUum","max",'\n \n ',"shopify_cart","querySelector","value_customer_tags","time","other_products","error","disable_slider_checkbox",".fg-secomapp-cart-item-promotion","sort","includes","done",".fg-secomapp-product-title","#sca-spinner-checkout","compressToBase64","gift_popup_title","trim","#sca_fg_cart_section_gifts_slider",''];return(_0x194f=function(){return $})()}function _0x3e98($,x){let t=_0x194f();return(_0x3e98=function($,x){return t[$-=125]})($,x)}!function $(){let x=_0x41d83a;window[x(470)]={},FGSECOMAPP[x(275)]=null,FGSECOMAPP.cartItems=Object.values(Shopify?.cartItems??{}),FGSECOMAPP[x(196)]=[],FGSECOMAPP[x(253)]=window[x(761)]?.[x(362)]??{},FGSECOMAPP[x(363)]=window[x(761)]?.[x(223)]??{},FGSECOMAPP[x(255)]=window.fgData?.[x(571)]??{},FGSECOMAPP[x(204)]=FGSECOMAPP.fgAppearance?.[x(471)]?.[x(645)],FGSECOMAPP[x(373)]=FGSECOMAPP[x(363)]?.[x(581)],FGSECOMAPP[x(244)]=FGSECOMAPP[x(363)]?.promotion_message,FGSECOMAPP.fgAppearanceTodayOffer=FGSECOMAPP[x(363)]?.[x(450)],FGSECOMAPP.fgCallback=[],FGSECOMAPP[x(817)]=!1,FGSECOMAPP[x(539)]=[],FGSECOMAPP.scaCountRenderEventCheckout=0,FGSECOMAPP[x(337)]=!1,FGSECOMAPP[x(724)]={...Shopify?.scaHandleConfigValue},FGSECOMAPP.reRenderCartCustom=Shopify?.reRenderCartCustom??void 0,FGSECOMAPP[x(504)]=Shopify?.[x(504)]??void 0,FGSECOMAPP.productsInPage={},FGSECOMAPP.productsByID={},FGSECOMAPP.hasDoneProcessCheckout=!1,FGSECOMAPP[x(647)]={},FGSECOMAPP[x(368)]=!1,FGSECOMAPP[x(199)]={},FGSECOMAPP[x(392)]=Shopify?.[x(240)]??x(704),FGSECOMAPP[x(707)]=[],FGSECOMAPP[x(722)]={SHOW_GIFT_SLIDER:x(354),PRODUCT_HAS_GIFTS:"fg-gifts:gift-icon",GIFT_UPDATED:x(411),GIFT_ADDED:x(659),CART_AUTO_UPDATED:x(790),START_PROCESS_CART:x(343),END_PROCESS_CART:x(359),START_VALIDATE_CHECKOUT:x(496),END_VALIDATE_CHECKOUT:x(485),START_RENDER_APP:"fg-app:start",END_RENDER_APP:x(132),FG_OVERRIDE_FETCH:"fg-fetch:override",FG_OVERRIDE_XHR_OPEN:x(768),FG_OVERRIDE_XHR_SEND:x(131),RENDER_TODAY_OFFER:x(209),TODAY_OFFER_CHANGE:"fg-today-offer:success",RENDER_CART_MESSAGE:x(801)};let t={GIFTS_CART_SECTION_ID:x(624),GIFTS_CART_SECTION:x(272),GIFTS_POPUP_SECTION_ID:"#sca_fg_section_gifts_popup",GIFTS_POPUP_SECTION:'\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
',GIFT_ITEM_SECTION_ID:x(299),GIFT_ITEM_SECTION:x(176),GIFT_SELECT_SECTION_ID:x(430),GIFT_SELECT_SECTION:x(174),DISABLE_SLIDER_SECTION_ID:"#sca_fg_disable_slider_section",DISABLE_SLIDER_SECTION:x(218),CART_MSG_SECTION_ID:x(669),CART_MSG_SECTION:x(698),CART_MSG_ITEM_SECTION_ID:x(776),CART_MSG_ITEM_SECTION:x(526),GIFT_THUMBNAIL_SECTION_ID:x(194),GIFT_THUMBNAIL_SECTION:x(168),GIFT_THUMBNAIL_ITEMS_SECTION_ID:"#sca_fg_gift_thumbnail_items_section",GIFT_THUMBNAIL_ITEMS_SECTION:x(625),GIFT_ICON_SECTION_ID:"#sca_fg_gift_icon_section",GIFT_ICON_SECTION:' ',TODAY_OFFER_SECTION_ID:x(341),TODAY_OFFER_SECTION:x(491),TODAY_OFFER_ITEM_SECTION_ID:"#sca_fg_today_offer_item_section",TODAY_OFFER_ITEM_SECTION:x(184),TODAY_OFFER_WIDGET_ID:"#sca_fg_today_offer_widget",TODAY_OFFER_WIDGET:x(499)},e=()=>{let $=x,t=FGSECOMAPP[$(363)]?.[$(471)],e=t?.[$(288)]?.[$(818)],a=!S(t)&&void 0!==e&&!e;return a?$(607):""},a=()=>{let $=x,e=FGSECOMAPP[$(363)]?.gift_slider,a=e?.[$(614)]??{};document.querySelector(".freegifts-main-container .slide-container #sca-hidden-gift-popup .sca-disable-checkbox")?.[$(414)]&&localStorage[$(387)]($(443),""+Date[$(206)]());let i=document[$(609)](t[$(293)])?.[$(207)]??t.DISABLE_SLIDER_SECTION;return a?.[$(807)]?i[$(144)](/{{\s*fg_text_disable_slider\s*}}/gm,h(m(a[$(537)]??"Don't show this offer again",$(806)))):""},{fetch:i}=window,r=()=>{let $=x;document.querySelector("#secomapp_freegifts_version")?.[$(759)]($(579))!==$(644)&&(window.fetch=async(...x)=>{let t=$;try{let e=x[0];if(!(e?.[t(617)]("/cart/add")||e?.[t(617)](t(507))||e?.includes(t(208))))return setTimeout(function(){$y()},1e3),await i(...x);{let a=e?.includes(t(312)),r=e?.[t(617)](t(507))||e?.includes(t(208));n(x[1]);let c=200,o=null,s=await i(...x)[t(648)]($=>{let x=t;return(o=$,c=$[x(555)],$[x(302)])?$:$.json()})[t(676)]($=>{console.error($)});if(document[t(323)](new CustomEvent(FGSECOMAPP[t(722)][t(234)],{detail:{args:x,response:o}})),a&&x[1][t(586)]?.[t(641)]&&200!==c){let f=JSON[t(573)](x[1][t(682)])?.id,d=document[t(609)](t(258)+f+'"]');d[t(649)]=t(772),d[t(405)].contains(t(531))||d[t(405)][t(533)](t(531)),d.disabled=!0,d[t(466)][t(595)]="",d[t(466)][t(561)]=t(377),document[t(556)](t(415))[t(543)]($=>{let x=t;parseInt($.getAttribute(x(331)))===f||$[x(405)][x(304)](x(531))||($[x(468)]=!1,$[x(466)].backgroundColor=FGSECOMAPP[x(363)]?.[x(471)]?.[x(632)]?.[x(178)]??x(731))})}if(200!==c&&(a&&x[1][t(586)]?.[t(641)]||r&&x[1][t(586)]?.sca_process_gifts))return _(s,o);if(Shopify?.disable_async_process_fg)return $s([e,...x[t(137)](1)]).then(),_(s,o);if(await $s([e,...x[t(137)](1)]),r&&x[1]?.headers?.sca_process_gifts)return _(s,o);let g=r?FGSECOMAPP[t(199)]??s??{}:s;return await l(x,s,g),_(g,o)}}catch(u){return await i(...x)}})},c=window[x(249)][x(166)][x(473)],o=window[x(249)][x(166)][x(239)],s=()=>{let $=x;Shopify?.[$(378)]||(window[$(249)][$(166)][$(473)]=function(x,t){let e=$;try{document.dispatchEvent(new CustomEvent(FGSECOMAPP[e(722)][e(506)],{detail:{fgXHR:this}}))}catch(a){console[e(613)]("Error listening XHR open",a)}finally{c[e(399)](this,arguments)}},window.XMLHttpRequest[$(166)].send=function(x){let t=$;try{document[t(323)](new CustomEvent(FGSECOMAPP[t(722)][t(506)],{detail:{fgXHR:this}}));let{_url:e}=this;(e?.[t(617)]("/cart/add")||e?.includes(t(507))||e?.[t(617)](t(208)))&&this[t(321)]("readystatechange",function(){let $=t;this[$(256)]===XMLHttpRequest[$(233)]&&200===this[$(555)]&&$s([e,{}])[$(648)]()})}catch(a){console.error(t(440),a)}finally{o[t(575)](this,x)}})};FGSECOMAPP[x(587)]=()=>{let $=x;try{if(Shopify?.[$(631)]||"function"!=typeof Shopify?.getCart)return;Shopify[$(170)]=async function(x){let t=$;if(!FGSECOMAPP.secomappGetCartRunning){FGSECOMAPP[t(817)]=!0,await $s([t(754),{}]);let e=await $r("sca_cart_xhr");typeof x===t(171)&&(0>FGSECOMAPP[t(812)][t(525)](x)&&FGSECOMAPP[t(812)][t(494)](x),x(e)),FGSECOMAPP[t(817)]=!1}FGSECOMAPP[t(559)]()},typeof ShopifyAPI!==$(338)&&void 0!==ShopifyAPI[$(170)]&&(ShopifyAPI[$(170)]=Shopify?.[$(170)]),typeof Shopify?.api!==$(338)&&void 0!==Shopify?.[$(160)][$(170)]&&(Shopify.api[$(170)]=Shopify?.getCart)}catch(t){console[$(613)](t)}};let n=$=>{let t=x;try{let e=$?.[t(682)];e instanceof FormData?FGSECOMAPP[t(647)]={sections:e[t(400)]("sections"),sections_url:e.get(t(675))}:typeof e===t(397)&&(e=JSON[t(573)](e),FGSECOMAPP[t(647)]={sections:e?.[t(747)],sections_url:e?.[t(675)]})}catch(a){FGSECOMAPP[t(647)]={}}},_=($,t)=>{let e=x;try{let a=Shopify?.[e(655)]??[e(180),"type",e(302),"ok"],i=new Response(JSON[e(386)]($),t);for(let r of a)Object[e(355)](i,r,{value:t[r]});return i}catch(c){return new Response(JSON[e(386)]($))}},f=async()=>{let $=x;if(Shopify.do_not_add_freegift_attribute)return;let t=[];if(!S(FGSECOMAPP[$(539)]))for(let e of(t[$(494)]($(268)),FGSECOMAPP[$(539)])){let a=FGSECOMAPP[$(196)][$(437)]($=>$.id===e.belongs_to_offer)?.[$(267)]?.[$(257)];S(a)||t[$(494)](a)}if(t[$(616)](),t[$(529)]()!==FGSECOMAPP?.SHOPIFY_CART?.[$(816)]?.[$(646)])try{await i((Shopify?.[$(693)]??$(208))+$(150),{method:$(680),headers:{"X-Requested-With":$(249),"Content-Type":$(308)},body:JSON[$(386)]({attributes:{freegift_attributes:t[$(529)]()}})})}catch(r){console[$(613)]($(511)+r[$(778)])}},l=async($,t,e)=>{let a=x;try{if($[1]?.[a(586)]?.[a(436)])return;let r={},c=Object[a(432)](t[a(747)]??{})?.[a(402)]($=>S(FGSECOMAPP[a(647)][$]))??[];if(c&&c[a(770)]&&FGSECOMAPP.isUpdateCart&&(r=await i(a(576)+c[a(453)](","))[a(648)]($=>$.json())),FGSECOMAPP[a(368)]=!1,r={...FGSECOMAPP.sections_cart,...r},S(r))return;t.sections={...t[a(747)],...r},S(e)||(e[a(747)]={...t[a(747)]})}catch(o){}};FGSECOMAPP[x(546)]=async($,t,e)=>{let a=x;try{let i=FGSECOMAPP[a(539)].find(x=>e===x[a(246)]?.[a(529)]()&&$===x[a(439)]);i?i[a(530)]+=t:FGSECOMAPP.arrOfferAdded[a(667)]({variantId:$,belongs_to_offer:e,quantity:t}),localStorage.setItem(a(458),LZString[a(621)](JSON[a(386)](FGSECOMAPP[a(539)]))),p(a(330));let r=await fetch((Shopify?.[a(650)]??a(422))+"?sca_add_gift",{method:a(680),headers:{Accept:"application/json","Content-Type":"application/json",sca_add_gift:!0},body:JSON[a(386)]({quantity:t,id:$})});return await r.json()}catch(c){return!1}};let d=async($,t,e)=>{let a=x;e=e?.[a(529)]();let i=document[a(556)](a(813));i[a(543)](x=>{let t=a;x[t(468)]=!0;let e=x[t(759)]("data-variant")-0;e===$&&(x[t(466)].padding=t(600),x[t(207)]=t(775)),x[t(466)][t(561)]=t(377)});let r=await FGSECOMAPP[a(546)]($,t,e);r&&(i[a(543)](x=>{let t=a;x[t(468)]=!0;let e=x.getAttribute(t(331))-0;e===$&&(x[t(466)][t(595)]=t(600),x[t(207)]=t(819)),x[t(466)].backgroundColor=""}),$n()),document.dispatchEvent(new CustomEvent(FGSECOMAPP[a(722)][a(360)],{detail:{gift:r}}))},g=$=>{let t=x,e=t(384);return!S($)&&(typeof $===t(295)&&($[t(284)]?.includes(e)||$.tags?.[t(617)](t(582))||FGSECOMAPP[t(707)]?.[t(617)]($[t(205)]))||typeof $===t(397)&&$.includes(e))},u=$=>{let{selling_plan_allocation:t}=$;return!S(t)&&!S(t?.[x(469)])},p=$=>{let t=x;try{if(!Shopify?.enable_process_offer_loading)return;let{checkout_btn_query:e}=FGSECOMAPP[t(799)],a=[...e?.[t(177)],...e?.[t(571)],...e?.[t(165)]].filter(Boolean).join(",");document[t(556)](a)[t(543)](x=>{let e=t;FGSECOMAPP[e(565)]($,x)[e(648)]()})}catch(i){}},b=async($,t)=>{let e=x;try{if(S($)&&S(t))return;let a={};if(FGSECOMAPP.cartItems?.[e(402)]($=>g($))?.[e(543)]($=>{let x=e;a[$[x(205)]]=$[x(530)]}),($=$?.[e(402)]($=>!S($[e(205)])))?.[e(543)]($=>{let x=e;a[$[x(205)]]=(a[$[x(205)]]??0)+($[x(530)]??1)}),Object[e(432)](a)?.forEach($=>{a[$]=a[$]>=0?a[$]:0}),S(Object.keys(a)))return;$?.[e(543)]($=>{let x=e,t=FGSECOMAPP[x(539)].find(t=>$[x(481)]?.[x(529)]()===t[x(246)]?.[x(529)]()&&$[x(205)]===t[x(439)]);t?t[x(530)]+=$[x(530)]:FGSECOMAPP[x(539)].unshift({variantId:$[x(205)],belongs_to_offer:$[x(481)]?.[x(529)](),quantity:$[x(530)]})}),localStorage[e(387)](e(458),LZString[e(621)](JSON[e(386)](FGSECOMAPP.arrOfferAdded))),FGSECOMAPP[e(368)]=!0,p(e(330)),await fetch((Shopify?.[e(693)]??"/cart/update")+e(476),{method:e(680),headers:{Accept:e(593),"Content-Type":e(593),sca_process_gifts:!0},body:JSON[e(386)]({updates:a,...FGSECOMAPP[e(647)]})})[e(648)](x=>{let a=e;return x.ok&&$[a(770)]&&!t[a(770)]&&$n(),x[a(598)]()})[e(648)]($=>{FGSECOMAPP.sections_cart=$[e(747)]}),document[e(323)](new CustomEvent(FGSECOMAPP[e(722)].CART_AUTO_UPDATED,{detail:{arrGiftsAdd:$,arrGiftsRemove:t}})),document[e(609)](e(350))?.[e(759)](e(579))===e(644)&&location.reload()}catch(i){p(e(187)),console[e(613)](i)}},m=($,t)=>{let e=x;try{let a=FGSECOMAPP.fgIntegration?.[e(472)],i=Shopify?.[e(127)]??Shopify?.[e(720)];return a[e(807)]?a?.[i]?.[t]??$:$}catch(r){return $}},h=($,t=!1)=>(""+$)[x(144)](/\$/g,t?"$$$$":"$"),y=()=>{let $=x,i=document.getElementById($(461));if(i){let r=document[$(609)](t[$(493)])?.[$(207)]??t[$(745)];i[$(207)]=r[$(144)](/{{\s*fg_slider_title\s*}}/gm,h(m(FGSECOMAPP[$(204)][$(622)]??$(366),$(725))))[$(144)](/{{\s*sca_fg_disable_slider_section\s*}}/gm,h(e()))}else{let c=localStorage.getItem($(443))-0,o=FGSECOMAPP[$(363)]?.[$(471)]?.[$(614)]??{},s=(o?.[$(611)]??0)*6e4,n=!isNaN(c)&&c+s>Date.now();if(n||(localStorage.removeItem("FGSECOMAPP_HIDDEN_GIFT_POPUP"),!(i=document.getElementById("freegifts-main-popup-container"))))return;let _=document[$(609)](t[$(365)])?.[$(207)]??t[$(773)];i[$(207)]=_[$(144)](/{{\s*fg_slider_title\s*}}/gm,h(m(FGSECOMAPP[$(204)][$(622)]??$(366),$(725))))[$(144)](/{{\s*sca_fg_disable_slider_section\s*}}/gm,h(a()+" "+e())),i[$(405)][$(533)]($(599))}},v=($,e)=>{let a=x,i=document[a(609)](t[a(584)])?.[a(207)]??t[a(750)];return $[a(570)]($=>i[a(144)](/{{\s*fg_variant_img\s*}}/gm,h(K($[a(764)]??e),!0))[a(144)](/{{\s*fg_variant_id\s*}}/gm,h($[a(417)]))[a(144)](/{{\s*fg_original_variant_id\s*}}/gm,h($[a(686)]))[a(144)](/{{\s*fg_variant_price\s*}}/gm,h(T($))).replaceAll(/{{\s*fg_original_variant_price\s*}}/gm,h(E($)))[a(144)](/{{\s*fg_variant_title\s*}}/gm,h($[a(167)])))[a(453)](" \n")},T=$=>{let t=x;return FGSECOMAPP[t(523)][t(161)](O($?.[t(200)]))},E=$=>{let t=x;return FGSECOMAPP[t(523)][t(161)](O($?.[t(379)]??0))},w=($,x)=>S(FGSECOMAPP.productsByID[$])?x??"#":FGSECOMAPP.productsByID[$].handle,C=($,t)=>{let e=x;return FGSECOMAPP[e(204)][e(134)]?S(FGSECOMAPP.productsByID[$])?t[e(751)]("\xbb","")[e(751)](/\(\d*% off\)/,"")[e(751)]("(Discount)","")??"":FGSECOMAPP[e(753)][$][e(448)]:""},S=$=>{let t=x;if(0===$)return!0;if(typeof $==t(536)||"boolean"==typeof $)return!1;if(typeof $==t(338)||null===$)return!0;if(typeof $[t(770)]!=t(338))return 0===$[t(770)];let e=0;for(let a in $)$[t(665)](a)&&e++;return 0===e},I=$=>{let t=x;try{let e={...FGSECOMAPP[t(724)]},a=e[$];if(a=a?a[t(623)]():null,!S(a)&&a[t(770)]>0)try{return document[t(609)](a),a}catch(i){}return""}catch(r){return""}},A=()=>{let $=x;try{FGSECOMAPP[$(523)]=new Intl[$(376)](Shopify?.[$(356)]??Shopify?.[$(720)],{style:$(557),currency:Shopify?.[$(557)]?.[$(427)]??$(478)})}catch(t){FGSECOMAPP[$(523)]=new Intl[$(376)]($(685),{style:$(557),currency:Shopify?.[$(557)]?.[$(427)]??"USD"})}},O=$=>{let t=x;$=$??0;let e=Shopify?.[t(557)]?.[t(513)]??1;return 1===parseFloat(e)?$:($*e)?.[t(401)](Shopify?.[t(406)]??2)},k=$=>{let t=x;try{return $[FGSECOMAPP.sca_price]??$?.[t(357)]??$?.[t(200)]}catch(e){return $?.[t(357)]??$?.[t(200)]}},D=$=>{let t=x;return $[t(402)]($=>void 0===$.cal_gift_for_other_rules||!0===$[t(192)])[t(305)](($,x)=>$+x[t(530)]*k(x),0)/100},R=$=>{let t=x;return $.filter($=>void 0===$.cal_gift_for_other_rules||$.cal_gift_for_other_rules)[t(305)](($,x)=>$+x[t(530)],0)},F=($,t,e)=>{let a=x,i=t[a(179)];return e?.[a(420)]&&($=$.filter($=>u($))),S(i)?$:$[a(402)]($=>{let x=a;return!i[x(570)](t=>{let e=x;switch(t[e(148)]){case"variants_ids":return Object[e(752)](t[e(475)])[e(570)]($=>$[e(721)]).flat()[e(570)]($=>$.id)[e(617)]($[e(205)]);case e(247):return Object.values(t.value)[e(617)]($[e(800)]);case e(515):return Object[e(752)](t.value)[e(617)]($.vendor);case e(640):let a=Object[e(432)](t[e(475)]),i=$.collections?.[e(570)]($=>$.id+"")?.[e(402)]($=>a.includes($));return!S(i);default:return!1}})[x(617)](!1)})},N=($,x)=>$?.map($=>{let t=_0x3e98;if(typeof $[t(192)]!==t(338)){let e=FGSECOMAPP.arrOfferAdded?.[t(402)](x=>x.variantId===$[t(205)]),a=e?.reduce(($,x)=>$+x[t(530)],0);if(a===$.quantity){let i=e?.[t(402)](e=>{let a=t;if(e[a(246)]?.[a(529)]()===x[a(529)]())return!1;let i=FGSECOMAPP[a(196)]?.[a(437)]($=>$.id?.[a(529)]()===e.belongs_to_offer?.[a(529)]()),r=i[a(374)]??{},c=k($);return r[a(192)]&&c>0})?.[t(305)](($,x)=>$+x.quantity,0);return{...$,cal_gift_for_other_rules:i>0,quantity:i??0}}return{...$,cal_gift_for_other_rules:!1,quantity:0}}return{...$}})??[],q=($,t)=>{let e=x,a=FGSECOMAPP.fgSettings?.[e(786)],i=FGSECOMAPP.fgSettings?.not_show_gift_if_already_on_cart,r=$,c=r;if(a){r=$[e(616)](($,x)=>k($)-k(x));let o=t[e(279)][e(570)]($=>$?.compare_gift_price??0);r=r[e(402)]($=>o[e(518)](x=>x<=k($)/100)),c=JSON[e(573)](JSON[e(386)](r));let s=t.giftsAdded[e(616)](($,x)=>x?.[e(315)]-$?.[e(315)])[e(570)]($=>({...$}));c[e(402)]($=>$[e(530)]>0)[e(543)]($=>{let x=e,t=k($)/100;s[x(402)]($=>$[x(530)]>0)[x(402)]($=>$?.[x(315)]<=t)[x(543)](t=>{let e=x,a=$[e(530)]-t[e(530)];t.quantity-=a>=0?t[e(530)]:$[e(530)],$[e(530)]=Math[e(606)](a,0)})}),t.giftsAddedInvalid=s[e(402)]($=>$[e(530)]>0),c=c.filter($=>$.quantity>0)}r=r.filter($=>$[e(530)]>0);let n=FGSECOMAPP[e(486)][e(570)]($=>$[e(583)]),_=t[e(250)]?.[e(570)]($=>$[e(281)]);i&&(r=r[e(402)]($=>!_?.[e(617)]($[e(583)])));let f=[];return FGSECOMAPP[e(253)]?.select_one_gift_price&&(f=FGSECOMAPP[e(486)][e(402)]($=>g($)).map($=>$[e(205)])),t[e(456)]=JSON[e(573)](JSON.stringify(t.gift_products))?.[e(402)]($=>{let x=e;return $.variants=$[x(224)][x(402)]($=>!f.includes($[x(417)])),!(i&&n?.[x(617)]($.original_product_shopify_id))&&(a&&($.variants=$[x(224)][x(402)]($=>{let t=x,e="compare_at_price"===a?$[t(300)]:$.original_price;return c[t(518)]($=>e<=k($)/100)})),!S($[x(224)]))}),r},G=($,t,e)=>{let a=x,i=0,r=F(t,$,e[a(267)]?.subscription_products);r=N(r,$.offer_id),r=q(r,e);let c=0;return"money"===$[a(666)]?(c=D(r),e[a(290)]=Math[a(606)]($.min_amount-c,0)):$[a(666)]===a(210)&&(c=R(r),e.count_down_quantity=Math[a(606)]($.min_amount-c,0)),c>=$[a(396)]&&(null===$[a(189)]||c<=$[a(189)])&&(i=e[a(374)][a(282)]*($[a(455)]?Math.floor(c/$[a(396)]):1)),i},L=($,t)=>{let e=x,a={},i=[],r=0;return t[e(808)][e(570)](x=>{let e=G(x,$,t);0!==e&&(r=e),i.push(e>0)}),a[e(700)]=r,a[e(708)]=i,a},P=($,t)=>{let e=x,a=!1;return 1===$.length?a=$[0]:2===$[e(770)]&&(t===e(219)&&(a=$[0]&&$[1]),"or"===t&&(a=$[0]||$[1])),a},M=($,t)=>{let e=x,a=$?.[e(570)]($=>$.variant_id);FGSECOMAPP[e(539)]=FGSECOMAPP[e(539)][e(402)]($=>a?.[e(617)]($[e(439)]));let i=t.gift_items[e(570)]($=>$[e(417)]),r={};t[e(279)][e(402)]($=>r[$[e(417)]]={fg_original_compare_at_price:$[e(300)],fg_original_price:$[e(297)],compare_gift_price:$[e(315)]});let c=FGSECOMAPP[e(539)][e(402)]($=>$[e(246)]?.toString()===t.id?.[e(529)]())?.[e(570)]($=>$.variantId),o=$[e(402)]($=>{let x=e;return g($)&&($[x(192)]=!1),i[x(617)]($[x(205)])&&c[x(617)]($[x(205)])}),s=o[e(570)]($=>{let x=e,a=t.gift_settings;$.cal_gift_for_other_rules=a[x(192)],$[x(246)]=t.id?.[x(529)]();let i=FGSECOMAPP[x(539)]?.[x(402)](e=>e[x(246)]?.[x(529)]()!==t.id?.[x(529)]()&&$[x(205)]===e[x(439)])?.reduce(($,x)=>$+x.quantity,0);return{...$,quantity:$[x(530)]-i,...r[$[x(205)]]}});return s[e(402)]($=>{let x=e;return $[x(246)]?.[x(529)]()===t.id?.[x(529)]()})},H=$=>{let t=x,e=$[t(139)][t(402)](x=>x.belongs_to_offer?.toString()!==$.id?.[t(529)]())[t(570)]($=>$[t(583)]);return Object[t(752)]($.gifts_valid)[t(402)]($=>!e[t(617)]($.product_shopify_id))},U=($,t)=>{let e=x,a=M($,t);t[e(139)]=a;let i=L($,t),r=P(i.condition_result,t[e(265)]);if(r){let c=a[e(402)]($=>$.belongs_to_offer?.toString()===t.id?.[e(529)]()).reduce(($,x)=>$+x.quantity,0);i[e(700)]=i[e(700)]-c,t[e(139)]=a,t.giftsAvailable=i.max_gifts_can_get}else t.giftsAdded=a,t[e(742)]=0;return!S(FGSECOMAPP[e(275)])&&t[e(136)]>FGSECOMAPP[e(275)]&&(r=!1),t[e(522)]&&r?FGSECOMAPP.maxOfferPriority=t[e(136)]:!t[e(522)]||r||S(a)||t[e(136)]!==FGSECOMAPP[e(275)]||(FGSECOMAPP[e(275)]=null),t[e(128)]=r,t},B=$=>{let t=x,e=$+"=",a=document[t(505)][t(661)](";");for(let i=0;i{let e=x,a=!0,i=!0,r=!0,c=!0;if(!S($[e(267)]?.specific_link_address)){let o=B("sca_fg_codes");a=o&&JSON[e(573)](o)[e(617)]($[e(267)][e(257)])}if(!S($[e(267)]?.[e(213)])){let{customer_tags:s}=$[e(267)],n=s?.[e(610)]?.[e(518)]($=>t[e(125)][e(394)]?.[e(617)]($));i=s?.type_customer_tags===e(346)?n:!n}if(!S($[e(267)]?.[e(407)])){let{customer_locations:_}=$[e(267)],f=_?.[e(348)]?.[e(617)](FGSECOMAPP[e(283)]);c=_?.type_customer_locations==="include"?f:!f}if(!S($[e(267)]?.[e(497)])){let l=!0,d=$[e(267)].customer_order_history,g=t[e(125)][e(503)]??[];if(d[e(286)]){let u=Date[e(573)](d[e(286)])/1e3;g=g[e(402)]($=>$.created_at>=u&&[e(403),"partially_paid"].includes($.financial_status))}if(!S(d?.[e(424)])&&(0!==d.total_spend_on_order_history[e(396)]||0!==d[e(424)][e(189)])){let p=d[e(424)].min_amount,b=d[e(424)].max_amount,m=g.reduce(($,x)=>$+x[e(627)],0)/100;l&=(m>=p||!p)&&(m<=b||!b)}if(!S(d?.total_spent_on_last_order)&&(0!==d[e(147)].min_amount||0!==d[e(147)][e(189)])){let h=(t[e(125)][e(232)]??0)/100,y=d.total_spent_on_last_order.min_amount,v=d[e(147)].max_amount;l&=g.length>0&&(h>=y||!y)&&(h<=v||!v)}if(!S(d?.[e(467)])){let T=!(0!==d[e(467)][e(396)]||0!==d[e(467)][e(189)]),E=g[e(770)],w=d[e(467)][e(396)],C=d.number_of_order.max_amount;l&=T?S(g):(E>=w||!w)&&(E<=C||!C)}if(d?.[e(602)]){let I=t[e(125)][e(173)]??[],A=$[e(279)]?.[e(518)]($=>I[e(617)]($[e(417)]))||$.gift_items?.[e(518)]($=>I[e(617)]($[e(686)]+"_"+($[e(297)]-$[e(200)])*100));l&=!A}r=l}return a&&i&&r&&c},j=($,t,e)=>{let a=x,i=[],r=[],c=[],o=[];for(let s of t){let n=U($,s);if(!n.isReachConditions){if(!n[a(139)][a(770)])continue;n[a(139)][a(543)]($=>{let x=a;r[x(494)]({variant_id:$[x(205)],quantity:$[x(530)],offer_id:s.id})});continue}if(n[a(742)]<0){n[a(139)][a(543)]($=>{let x=a;r[x(494)]({variant_id:$[x(205)],quantity:$.quantity,offer_id:s.id})});continue}if(0===n[a(742)]){n.giftsAdded[a(543)]($=>{let x=a,t=FGSECOMAPP[x(539)][x(437)](t=>s.id?.toString()===t[x(246)]?.[x(529)]()&&$[x(205)]===t[x(439)]);t&&(t.quantity=$[x(530)])});continue}(s[a(267)]&&Y(s,SECOMAPP)||S(s[a(267)]))&&i[a(494)](s)}if($?.filter($=>g($))[a(543)]($=>{let x=a,t=0,e=FGSECOMAPP[x(539)]?.filter(t=>$[x(205)]===t[x(439)])?.[x(305)](($,t)=>$+t[x(530)],0)??0;e<$[x(530)]&&(t=$.quantity-e),S($[x(246)])&&(t=$.quantity),t>0&&r.push({variant_id:$[x(205)],quantity:t,offer_id:$.belongs_to_offer?.[x(529)]()})}),e||S(r)){let _=i.map($=>{let x=a;return{id:$.id,offerName:$[x(495)],offerPriority:$[x(136)],stopLowerPriority:$.stop_lower_priority,gifts:H($),giftsAvailable:$[x(742)],giftsAdded:$[x(139)],isReachConditions:$[x(128)],offer:$}});if(!S(_)){let f={};for(let l of _){let d=X(FGSECOMAPP.fgSettings,l);d?.[a(770)]>0?c=c.concat([...d]):l[a(508)][a(570)]($=>{let x=a;f[$[x(222)]]={...$,belongs_to_offer:l.id?.[x(529)]()}})}o=Object[a(752)](f)??[]}}return{arrGiftsAdd:c,arrGiftsRemove:r,arrGiftsData:o}},V=($,t)=>{let e=x,a=new Set;return $?.[e(543)]($=>a.add($[e(481)])),a[e(543)]($=>{let x=e,t=FGSECOMAPP.offers?.[x(437)](t=>t.id?.[x(529)]()===$?.[x(529)]());if(S(t)||!t[x(128)]){FGSECOMAPP[x(539)]=FGSECOMAPP.arrOfferAdded?.[x(402)](t=>t.belongs_to_offer?.[x(529)]()!==$?.[x(529)]());return}if(t[x(742)]>=0)return;let a=[],i=FGSECOMAPP[x(539)]?.[x(402)](t=>t[x(246)]?.[x(529)]()===$?.[x(529)]())??[];if(t?.[x(374)]?.[x(544)])a=a[x(449)]([...i]),t[x(742)]=0;else for(let r of(FGSECOMAPP[x(253)]?.[x(786)]&&!S(t[x(514)])&&t[x(514)][x(543)]($=>{let e=x,i=FGSECOMAPP[e(539)].find(x=>x[e(246)]?.toString()===t.id?.[e(529)]()&&$[e(205)]===x.variantId);if(S(i))return;let r=i[e(530)]-$.quantity;t[e(742)]+=$[e(530)],r>0?i[e(530)]=r:(i[e(530)]=0,a[e(494)]({...i}))}),i)){if(t[x(742)]>=0)break;t[x(742)]+=r[x(530)],t[x(742)]<=0?a[x(494)]({...r}):(r[x(530)]=t[x(742)],t[x(742)]=0)}a?.[x(543)]($=>{let t=x;FGSECOMAPP[t(539)]=FGSECOMAPP[t(539)]?.filter(x=>$[t(439)]!==x[t(439)]||$[t(246)]?.[t(529)]()!==x[t(246)]?.toString())})}),t?.filter($=>{let x=e;return g($)&&($[x(530)]=FGSECOMAPP[x(539)]?.filter(t=>$[x(205)]===t[x(439)])?.[x(305)](($,t)=>$+t[x(530)],0)??0),$[x(530)]>0})??[]},z=async($,t)=>{let e=x,{arrGiftsAdd:a,arrGiftsRemove:i,arrGiftsData:r}=j($,t,!1),c=V(i,$);if(!S(i)){let o=j(c,t,!0);V(o?.[e(320)],$),a=o?.arrGiftsAdd,i=i?.[e(449)](o?.[e(320)])??[],r=o?.[e(527)]}return await b(a,i),f()[e(648)](),r},X=($,t)=>{let e=x;try{let a=[],i=t[e(508)],r=i[e(305)](($,x)=>$+x.variants[e(770)],0);if(!$[e(660)]||r<=0)return[];let c=t[e(334)]?.[e(374)]?.[e(544)],o=t[e(334)]?.gift_should_the_same??{};if(o.status&&o[e(148)]===e(721)){let s=i[0][e(224)][0];0===s.price&&(a[e(494)]({variant_id:s[e(417)],quantity:t[e(742)],offer_id:t.id}),console[e(712)](e(642)+s.variant_shopify_id+e(673)+s.variant_title+e(673)+t.id+"}"))}else if(c){let n=(t?.[e(742)]??0)/r;i[e(543)]($=>$[e(224)]?.forEach($=>a.push({variant_id:$.variant_shopify_id,quantity:n,offer_id:t.id}))),console[e(712)](e(382)+t.id+"}")}else if(1===r){let _=i[0][e(224)][0];0===_.price&&(a[e(494)]({variant_id:_[e(417)],quantity:t[e(742)],offer_id:t.id}),console[e(712)](e(594)+_[e(417)]+e(673)+_[e(167)]+e(673)+t.id+"}"))}return a}catch(f){return console[e(613)](f),[]}},W=$=>"Default Title"===$,K=$=>{let t=x;try{let e=Shopify?.[t(477)]??FGSECOMAPP[t(363)]?.[t(471)]?.[t(288)]?.[t(332)]??"&width=480&height=480",a=new URL($),i=new URLSearchParams(e);return i[t(543)](($,x)=>a[t(369)].set(x,$)),a[t(529)]()}catch(r){return $}},Q=$=>{let e=x,a=$;if(FGSECOMAPP[e(204)][e(787)]===e(501))for(let i of(a=[],$)){let r=i[e(224)];r&&r[e(770)]&&r[e(543)]($=>a[e(494)]({...i,thumbnail:$[e(764)],variants:[$]}))}let c=document[e(416)](e(596));c&&(c[e(207)]=a[e(570)]($=>{let x=e,a=$?.[x(224)][0]??{},i=W(a.variant_title),r=$[x(224)]?.[x(770)],c=h(C($[x(281)],$[x(448)])),o=FGSECOMAPP[x(204)]?.show_gift_for_customer==="by_variants",s=document[x(609)](t[x(779)])?.[x(207)]??t[x(548)];return s[x(144)](/{{\s*fg_product_handle\s*}}/gm,h(w($[x(281)],$[x(155)]),!0))[x(144)](/{{\s*fg_product_img\s*}}/gm,h(K($[x(764)]),!0))[x(144)](/{{\s*fg_product_img_alt\s*}}/gm,c).replaceAll(/{{\s*fg_product_title\s*}}/gm,c)[x(144)](/{{\s*fg_gifts_check_show_by_variants\s*}}/gm,h(o&&FGSECOMAPP.fgAppearanceGiftSlider.show_variant_title?"":"sca-d-none"))[x(144)](/{{\s*fg_gifts_check_show_by_products\s*}}/gm,o?"sca-d-none":"")[x(144)](/{{\s*fg_check_selected_variant\s*}}/gm,1===r?x(564)+(i?"sca-d-none":""):"")[x(144)](/{{\s*fg_variant_title\s*}}/gm,h(1!==r?m(FGSECOMAPP[x(204)].select_gift_btn??x(228),x(651)):a[x(167)]))[x(144)](/{{\s*fg_original_price\s*}}/gm,h(E(a)))[x(144)](/{{\s*fg_gift_price\s*}}/gm,h(T(a)))[x(144)](/{{\s*sca_fg_variant_select_section\s*}}/gm,h(v($[x(224)],$[x(764)])))[x(144)](/{{\s*fg_product_belongs_to_offer\s*}}/gm,$.belongs_to_offer).replaceAll(/{{\s*fg_variant_id\s*}}/gm,h(1===r?a[x(417)]:"")).replaceAll(/{{\s*fg_add_to_cart\s*}}/gm,h(m(FGSECOMAPP.fgAppearanceGiftSlider?.[x(796)]??"Add to cart",x(730))))}).join(" \n"),new Glider(document.querySelector("#fg-gift-items"),{slidesToShow:1,slidesToScroll:1,draggable:!1,dots:FGSECOMAPP.fgAppearanceGiftSlider[e(138)]?e(785):null,arrows:{prev:e(336),next:e(480)},responsive:[{breakpoint:1024,settings:{slidesToShow:FGSECOMAPP[e(204)][e(729)]??4,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:2,slidesToScroll:1}}]}),document[e(323)](new CustomEvent(FGSECOMAPP[e(722)][e(395)],{detail:{addGiftToCartFunc:FGSECOMAPP[e(546)],gifts:$6(a)}})))},J=async()=>{let $=x;try{let t=window[$(761)]?.[$(196)]??[];for(let e in await $v(),FGSECOMAPP[$(753)])S(FGSECOMAPP[$(753)][e]?.id)&&delete FGSECOMAPP[$(753)][e];let a=[];t[$(543)](x=>{let t=$;FGSECOMAPP.gifts_id=FGSECOMAPP[t(707)][t(449)](x[t(279)][t(570)]($=>$[t(417)]));try{let e=JSON[t(573)](JSON[t(386)](x));if(x[t(657)][t(555)]){let i=x.offer_conditions[0][t(179)],r=i[0][t(475)],c=[...e[t(279)]],o=[...e[t(250)]];if(x[t(657)].type===t(721))for(let s in r){let n=r[s]?.variant??[];for(let _ of n){e[t(808)][0].product_narrow=[{type:i[0][t(148)],value:{[s]:{...r[s],variant:[{..._}]}}}],e.gift_items=c.filter($=>$.original_product_shopify_id+""===s&&_.id===$[t(686)]),e[t(250)]=o.filter($=>$[t(281)]+""===s),e.gift_products[0][t(224)]=[...e.gift_items];let f=e[t(374)].number_of_gift_can_receive,l=e[t(374)][t(544)];e[t(374)].auto_add_all_gifts&&(f=e.gift_items[t(770)]),1===e.gift_items[t(770)]&&0===e[t(279)][0][t(200)]&&(l=!0),a[t(494)](JSON[t(573)](JSON[t(386)]({...e,gift_settings:{...e[t(374)],number_of_gift_can_receive:f,auto_add_all_gifts:l},id:e.id+"_"+r[s][t(284)]+"_"+_.id,offer_root:""+e.id})))}}else if(x[t(657)][t(148)]===t(487))for(let d in r){e[t(808)][0][t(179)]=[{type:i[0].type,value:{[d]:r[d]}}],e[t(279)]=c[t(402)]($=>$[t(281)]+""===d),e.gift_products=o[t(402)]($=>$.original_product_shopify_id+""===d);let g=e.gift_settings[t(282)],u=e[t(374)][t(544)];e[t(374)][t(544)]&&(g=e[t(279)][t(770)]),1===e[t(279)][t(770)]&&0===e.gift_items[0].price&&(u=!0),a[t(494)](JSON[t(573)](JSON[t(386)]({...e,gift_settings:{...e.gift_settings,number_of_gift_can_receive:g,auto_add_all_gifts:u},id:e.id+"_"+r[d][t(284)],offer_root:""+e.id})))}}}catch(p){console[t(613)](p)}}),FGSECOMAPP[$(707)]=[...new Set(FGSECOMAPP[$(707)])],t=(t=(t=t?.[$(402)](x=>!x?.[$(657)]?.[$(555)])?.[$(449)](a))?.[$(570)](x=>{let t=$;return{...x,id:x.id[t(529)](),offer_root:(x.offer_root??x.id)[t(529)]()}}))?.[$(402)](x=>{let t=$;if(!$e(x[t(254)],x[t(252)]))return!1;let e=!S(x.sub_conditions?.customer_order_history||x[t(267)]?.customer_tags);if(x.sub_conditions&&(!Y(x,SECOMAPP)||e&&S(SECOMAPP[t(125)][t(562)])))return!1;let a={...FGSECOMAPP[t(753)]},i=!1;if("stop_offer"===FGSECOMAPP[t(253)].sync_quantity){x[t(279)]=x?.gift_items[t(402)]($=>{let x=t,e=a[$[x(281)]]??{},i=e?.variants_quantity??{},r=e?.[x(224)]?.find(t=>t.id===$[x(417)])??{};return i[$[x(686)]]>0||S(r[x(225)])&&r[x(276)]})??[];let r=x[t(279)]?.[t(570)]($=>$.variant_shopify_id);x.gift_products=x?.[t(250)]?.[t(402)]($=>{let x=t;return $[x(224)]=$?.[x(224)]?.[x(402)]($=>{let t=x;return r?.[t(617)]($[t(417)])}),$?.[x(224)]?.[x(770)]>0}),i=!0}else if(FGSECOMAPP[t(253)][t(393)]){x.gift_items=x?.[t(279)].filter($=>(a[$[t(222)]]?.variants?.[t(437)](x=>x.id===$[t(417)])?.available??!1)||a[$[t(222)]]?.[t(154)]?.[$[t(417)]]>0);let c=x.gift_items?.[t(570)]($=>$[t(417)]);x[t(250)]=x?.[t(250)]?.filter($=>{let x=t;return $.variants=$?.[x(224)]?.[x(402)]($=>{let t=x;return c?.[t(617)]($[t(417)])}),$?.[x(224)]?.[x(770)]>0}),i=!0}return i&&x.gift_settings?.auto_add_all_gifts&&(x[t(374)][t(282)]=x[t(279)]?.[t(770)]),!i||x.gift_items&&x[t(279)].length>0});let i=FGSECOMAPP?.fgSettings?.[$(705)]===$(351)?$(300):$(297),r=FGSECOMAPP[$(253)]?.[$(786)],c=r===$(351)?$(300):$(297);return t?.map(x=>{let t=$,e=x[t(279)][t(570)]($=>{let x=t;return $.cal_gift_price=S($[i])?$?.original_price:$[i],r&&($[x(315)]=S($[c])?$?.[x(297)]:$[c]),$[x(281)]});return x[t(250)]=x.gift_products?.[t(402)]($=>{let x=t;return $[x(224)]?.[x(543)]($=>{let t=x;$[t(379)]=S($[i])?$?.[t(297)]:$[i],r&&($[t(315)]=S($[c])?$?.[t(297)]:$[c])}),e[x(617)]($[x(281)])}),x[t(808)]?.[t(543)]($=>{let x=t;$[x(666)]===x(585)&&($[x(396)]=O($.min_amount),$.max_amount=S($[x(189)])?$[x(189)]:O($.max_amount))}),x})?.[$(616)]((x,t)=>x[$(136)]-t[$(136)])}catch(o){return console.error(o),[]}},Z=async()=>{let $=x;try{let t=[];window.fgData?.offers?.[$(543)]($=>{let x=[];$.gift_products.forEach($=>{let t=_0x3e98,e=FGSECOMAPP?.[t(253)]?.[t(510)]===t(193)?$[t(155)]??null:FGSECOMAPP?.[t(253)]?.[t(393)]?$[t(652)]??null:null;S(e)||x.push(e)}),t=[...t,...x]}),await $1(t=(t=[...new Set(t)])[$(402)](x=>S(FGSECOMAPP[$(489)][x]))),Object[$(752)](FGSECOMAPP[$(489)])?.[$(543)](x=>{let t=$,{info:e}=x;S(e)||S(e?.id)||(FGSECOMAPP[t(753)][e.id]={...e})})}catch(e){console[$(613)](e)}},$$=$=>{let t=x;try{S($)?(FGSECOMAPP[t(539)]=[],localStorage[t(387)]("sca_offers_added",LZString[t(621)](JSON.stringify(FGSECOMAPP[t(539)])))):FGSECOMAPP[t(539)]=JSON[t(573)](LZString.decompressFromBase64(localStorage.getItem("sca_offers_added")))}catch(e){FGSECOMAPP.arrOfferAdded=[],localStorage[t(387)]("sca_offers_added",LZString.compressToBase64(JSON[t(386)](FGSECOMAPP[t(539)])))}let a={};FGSECOMAPP.offers?.[t(543)]($=>{let x=t;a[$.id]=$?.[x(279)]?.[x(570)]($=>$[x(417)])});let i=Object.keys(a);FGSECOMAPP[t(539)]=FGSECOMAPP[t(539)]?.filter($=>i?.includes($[t(246)]?.[t(529)]())&&a[$.belongs_to_offer?.[t(529)]()][t(617)]($.variantId));let r={};FGSECOMAPP[t(539)]?.[t(543)]($=>{let x=t,e=r[$[x(246)]+"_"+$[x(439)]]??{};r[$[x(246)]+"_"+$[x(439)]]={...$,belongs_to_offer:$[x(246)]?.[x(529)](),quantity:(e?.quantity??0)+($?.[x(530)]??0)}}),FGSECOMAPP[t(539)]=Object[t(752)](r),localStorage[t(387)]("sca_offers_added",LZString[t(621)](JSON[t(386)](FGSECOMAPP[t(539)])))},$x=()=>{let $=x;FGSECOMAPP[$(799)]={cart_drawer_query:{tool:[".fg-secomapp-cart-drawer",I($(452))]},cart_icon_query:{default:[$(328)],tool:[$(454),I($(578))]},gift_icon_product_query:{default:[$(482)],integration:[$(156)],tool:[$(619),I("sca_fg_title_product_gift_icon_query")]},gift_icon_collection_query:{default:[$(307),$(389)],integration:[$(797),$(803)],tool:[$(325),I($(339))]},gift_thumbnail_query:{default:[$(628)],integration:[$(732)],tool:[$(426),I($(451))]},cart_message_query:{default:[$(815)],integration:[".icart-inner .icartContain, .rebuy-cart__flyout-body, #slidecarthq .slidecarthq",$(241),$(696),$(151),$(717)],tool:[$(615),I($(263))]},checkout_btn_query:{default:[$(342),"input[name='goto_gc'], button[name='goto_gc'], a[href$='checkout'], form[action='/checkout'] input[type='submit']",$(361),$(782)],integration:[".icartCheckoutBtn, .rebuy-cart__checkout-button, .qsc2-checkout-button, #mu-checkout-button",$(767)],tool:[".sca_handle_button_checkout",I("sca_fg_form_checkbox_button_query")]}}},$0=async $=>{let t=x;document.dispatchEvent(new CustomEvent(FGSECOMAPP[t(722)].START_RENDER_APP,{detail:{}})),$x(),A(),FGSECOMAPP[t(559)](),(FGSECOMAPP?.fgSettings?.[t(510)]===t(193)||FGSECOMAPP?.[t(253)]?.[t(393)])&&await Z(),FGSECOMAPP[t(196)]=await J(),FGSECOMAPP[t(587)](),r(),s(),$$($);let e=await z($,FGSECOMAPP.offers);await $a(e),$3(),$7(),$4(),$y(),document[t(323)](new CustomEvent(FGSECOMAPP[t(722)][t(318)],{detail:{}}))},$t=function(){let $=x,t=document[$(556)]($(794)),e=document[$(556)]($(656)),i=$(599),r=document[$(556)]($(813)),c=r[$(770)];for(let o=0;o{let t=$;x.target===document[t(609)]("#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg")&&(document[t(609)](t(135))[t(405)].remove(i),a())}),document[$(321)]($(589),x=>{let t=$;x[t(280)]===t(679)&&document.querySelector(t(135))&&(document.querySelector(t(135)).classList[t(701)](i),a())}),document[$(556)]($(146))[$(543)](x=>x[$(321)]("click",function(){let x=$;this[x(380)]("tabindex",1),this[x(524)](),this[x(405)][x(789)]("active"),this.querySelector(x(532))[x(405)][x(789)](x(238))})),document[$(556)]($(146))[$(543)](x=>document[$(321)]($(326),function(t){let e=$,a=x[e(304)](t[e(220)]);a||(x.classList[e(701)](e(427)),x[e(609)](".dropdown-menu").classList.remove(e(238))),document[e(556)](".btn-add-to-cart.sca-fg-out-stock")[e(543)]($=>{let x=e;$[x(468)]=!0,$[x(466)].backgroundColor="#82868b"})})),document[$(556)]($(429))[$(543)](x=>{let t=$;x[t(321)](t(326),function(){let $=t,x=this[$(759)]("id"),e=this[$(759)]("data-img"),a=this[$(759)]($(277)),i=this[$(759)]($(549)),r=this[$(759)]($(738)),c=this.parentElement.parentElement[$(690)][$(690)];c[$(609)]($(159))[$(380)]($(760),e);let o=new URL(c.querySelector($(447))[$(133)]);o[$(369)][$(217)]($(721),r),c.querySelector(".gift-original-url")[$(133)]=o[$(529)]();let s=this[$(690)].parentElement[$(690)];s[$(609)](".original-price del").textContent=i,s[$(609)](".gift-price")[$(143)]=a;let n=s?.[$(609)]($(415));n[$(380)]("data-variant",x),n[$(468)]=!1,n[$(466)]="";let _=this.parentElement.parentElement[$(609)](".selected-variant");_.classList[$(533)]($(427)),_[$(207)]=this.innerText})}),document.querySelectorAll($(813))[$(543)](x=>x[$(321)]($(326),async function(){let x=$,t=this[x(759)](x(331))-0,e=this[x(759)](x(398));try{await d(t,1,e);let a=document[x(609)](x(135));a&&(FGSECOMAPP[x(243)]=!0,await new Promise($=>setTimeout($,800)),a[x(405)][x(701)](i)),window[x(668)][x(133)][x(617)](x(629))?location[x(688)]():typeof Shopify?.[x(170)]===x(171)&&await Shopify?.[x(170)](0===FGSECOMAPP[x(812)][x(770)]?function(){}:FGSECOMAPP[x(812)][0])}catch(r){console[x(613)](r)}}))},$e=($,t)=>{if($){let e=new Date,a=e[x(763)](),i=new Date($).getTime();if(!t)return a>=i;{let r=new Date(t).getTime();return a>=i&&a<=r}}return!1},$a=async $=>{let t=x;$&&$[t(770)]>0&&(FGSECOMAPP[t(243)]?(await new Promise($=>setTimeout($,1500)),FGSECOMAPP[t(243)]=!1,y(),Q($)):(y(),Q($))),$t(),FGSECOMAPP[t(559)](),FGSECOMAPP.renderPromotionMessage(FGSECOMAPP.offers),$o=[]},$i=async $=>{let t=x;$o=[];let e=new URL(window[t(668)][t(133)]);e[t(369)].set(t(774),""),i(e[t(529)]()).then($=>$[t(537)]())[t(648)]($=>{let x=t,e=new DOMParser,a=e[x(580)]($,x(502)),{cart_drawer_query:i,cart_icon_query:r}=FGSECOMAPP.QUERY_SELECTOR,c=[...i?.tool][x(402)](Boolean)[x(453)](","),o=[...r?.[x(177)]][x(402)](Boolean)[x(453)](","),s=[...r?.[x(165)]][x(402)](Boolean)[x(453)](","),n=document[x(609)](c),_=!1;n&&(_=!0,n[x(207)]=a[x(609)](c)?.[x(207)]??n.innerHTML);let f=document[x(609)](o);f||(f=document[x(609)](s)),f&&(_=!0,f[x(207)]=a[x(609)](o)?.innerHTML??a[x(609)](s)?.[x(207)]??f.innerHTML),_||console[x(712)]("Can not fetch all body")}),"function"==typeof FGSECOMAPP?.[t(542)]&&await FGSECOMAPP.reRenderCartCustom(),document[t(323)](new CustomEvent(FGSECOMAPP[t(722)][t(358)],{detail:{}})),p(t(187)),setTimeout(function(){$a($)},800)},$r=async $=>{let t=x,e=await i(t(689)+($??""),{method:t(185),headers:{Accept:t(593),"Content-Type":t(593)}})[t(648)]($=>$[t(598)]()),a=e[t(214)];return FGSECOMAPP.SHOPIFY_CART=e,FGSECOMAPP.cartItems=a?.[t(570)]($=>{let x=t;return{...FGSECOMAPP[x(486)]?.[x(437)](x=>x.id===$.id),...$}})??[],e},$c=async()=>{let $=x,t=FGSECOMAPP[$(199)];try{await i(SECOMAPP.freegiftProxy,{method:$(185),headers:{"Content-Type":"application/liquid"}})[$(648)](async x=>{let e=$,a=await x[e(598)]();FGSECOMAPP[e(486)]=a?.cart?.[e(570)]($=>{let x=e;return{...FGSECOMAPP[x(486)]?.[x(437)](x=>x.id===$.id),...$[x(487)],collections:$[x(771)],tags:$.tags}})??[],FGSECOMAPP.SHOPIFY_CART=a?.[e(608)]??{},t=FGSECOMAPP.SHOPIFY_CART}).catch(async x=>{let e=$;console[e(613)](e(419)+x.message),t=await $r()})}catch(e){console.error($(164),e[$(778)]),t=await $r()}return t},$o=[],$s=async $=>{let t=x;try{$o[t(494)]($[0]),document[t(323)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(560)],{detail:{events:$o}})),await $c();let e=await z(FGSECOMAPP[t(486)],FGSECOMAPP[t(196)]);FGSECOMAPP[t(509)](FGSECOMAPP[t(196)]);let a=!1;return $[0][t(695)](t(312))&&JSON[t(386)]($[1][t(586)]??[])[t(617)](t(641))?(console.log(t(691),[...$o]),await $i(e),a=!0):$[0][t(695)](t(208))&&JSON[t(386)]($[1][t(586)]??[])[t(617)](t(436))?(console.log(t(710),[...$o]),await $i(e),a=!0):(console[t(712)](t(639),[...$o]),await $a(e)),$2(),a&&(window[t(668)][t(133)][t(617)](t(629))||document[t(609)](t(350))?.[t(759)](t(579))===t(644))&&($o=[],location[t(688)]()),document[t(323)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(566)],{detail:{events:$o}})),FGSECOMAPP[t(486)]}catch(i){console[t(613)](i)}},$n=()=>{let $=x;if(!Shopify?.[$(567)])return;let t=document[$(609)]($(626));if(!t)return;t[$(207)]="";let e=Shopify?.sca_text_notify_success??$(317),a=document.createElement("li");a[$(551)]="sca-fg-toast sca-fg-success",a[$(207)]=$(630)+e+' \n
\n \n \n \n \n \n ',t[$(809)](a),a.timeoutId=setTimeout(()=>$_(a),3e3),document.querySelector($(757))?.addEventListener("click",()=>$_(a))},$_=$=>{let t=x;$.classList[t(533)](t(810)),$.timeoutId&&clearTimeout($[t(746)]),setTimeout(()=>$.remove(),500)},$f=$=>{let t=x;try{let e=FGSECOMAPP.fgSettings?.[t(327)],a="trigger_body"===e?$[t(220)]:$.currentTarget??$[t(220)];a?.hasAttribute(t(169))||(a=document.querySelector(t(620))?.[t(791)]);let i=JSON.parse(a[t(759)](t(643)));if(a.value=i?.[t(475)]??"",a[t(207)]=i?.[t(207)]??"",a.disabled=!1,a[t(568)](t(326),$l),a[t(671)](t(169)),"clone_checkout"===e){a[t(791)].querySelector(t(431))[t(326)]();return}"trigger_body"===e&&window[t(568)](t(326),$d,!0),a[t(326)]()}catch(r){window[t(668)][t(751)]((Shopify?.[t(340)]?.root??"/")+t(743)),console[t(613)](r.message)}};FGSECOMAPP[x(565)]=async($,t)=>{let e=x;if($===e(330)&&t)t[e(468)]=!0,t[e(380)](e(643),JSON[e(386)]({innerHTML:t.innerHTML,value:t[e(475)]})),"function"==typeof FGSECOMAPP?.scaCustomLoadingCheckout?await FGSECOMAPP[e(504)]($):(t.value=Shopify?.[e(266)]??e(181),t[e(207)]=Shopify?.[e(442)]??e(262));else if("end"===$&&t){if(typeof FGSECOMAPP?.[e(504)]===e(171))await FGSECOMAPP.scaCustomLoadingCheckout($);else{let a=JSON.parse(t[e(759)](e(643)));t[e(475)]=a?.[e(475)]??"",t[e(207)]=a?.[e(207)]??""}t[e(468)]=!1}else $===e(613)?("function"==typeof FGSECOMAPP?.[e(504)]&&await FGSECOMAPP[e(504)]($),window.location[e(751)]((Shopify?.routes?.[e(535)]??"/")+"checkout")):console[e(613)](e(126),$)};let $l=async $=>{let t=x;try{$.preventDefault(),$.stopPropagation(),$[t(577)]();let e=FGSECOMAPP.fgSettings?.[t(327)],a=e===t(388)?$[t(220)]:$[t(572)]??$[t(220)],{form:r}=a;if(await FGSECOMAPP.customLoadingCheckout(t(330),a),document.dispatchEvent(new CustomEvent(FGSECOMAPP[t(722)][t(726)],{detail:{}})),FGSECOMAPP[t(337)])return!1;FGSECOMAPP[t(337)]=!0;try{if(!Shopify?.disable_fetch_cart_checkout){let c=new URL(r[t(654)]);c[t(369)][t(601)](t(749),""),await i(c[t(529)](),{method:t(680),body:new FormData(r)})}}catch(o){console[t(712)](t(694))}if(S(FGSECOMAPP[t(196)])&&S(FGSECOMAPP[t(486)]?.[t(437)]($=>g($))))return console[t(712)]("not have orders and gifts"),$f($),!1;await $c();let s=[...FGSECOMAPP[t(486)]],{arrGiftsRemove:n}=j(s,FGSECOMAPP.offers,!1);if(await z(s,FGSECOMAPP[t(196)]),n?.[t(770)]>0)location[t(688)]();else try{FGSECOMAPP.fgSettings[t(684)]&&!S(FGSECOMAPP[t(486)]?.find($=>g($)))?await i(SECOMAPP[t(547)]+"&sca_shop_name="+Shopify?.shop,{method:t(185),headers:{"Content-Type":t(723)}}).then(async $=>{let x=t,e=await $[x(598)]();e[x(435)]=(e[x(435)]??[])[x(570)]($=>{let t=x;return $[t(487)].collections=$.collections?.map($=>({id:$.id})),$[t(487)][t(394)]=$.tags,{id:$[t(487)].id,variant_id:$.product[t(205)],title:$[t(487)][t(448)],handle:$[t(487)].handle,price:k($[t(487)]),quantity:$[t(487)].quantity,product_type:$[t(487)].product_type,vendor:$[t(487)][t(591)],tags:$.product[t(394)],collections:$[t(487)][t(771)],selling_plan_allocation:$[t(487)][t(296)]}}),e[x(288)]={arr_offer_added:FGSECOMAPP[x(539)],secomapp:{customer:SECOMAPP?.[x(125)]??{},fg_codes:SECOMAPP?.[x(814)]??[],fgSettings:FGSECOMAPP[x(253)]},cookie_fg_code:B(x(718)),shopify_currency:Shopify?.[x(557)]},await i(SECOMAPP[x(547)]+"&data_checkout="+LZString[x(444)](e=JSON.stringify(e)),{method:"GET",headers:{"Content-Type":x(723)}})[x(648)](async $=>{let t=x,e=await $[t(598)]();try{FGSECOMAPP[t(337)]=!1,e[t(550)]&&(window[t(668)].href=e[t(550)].invoice_url)}catch(a){console[t(613)](a)}})}):(console[t(712)](t(251)),FGSECOMAPP[t(337)]=!1,$f($))}catch(_){FGSECOMAPP.checkIsBlockCheckout=!1,$f(_)}await FGSECOMAPP[t(565)](t(187),a="trigger_body"===e?$[t(220)]:$[t(572)]??$.target),document.dispatchEvent(new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS.END_VALIDATE_CHECKOUT,{detail:{status:t(618)}}))}catch(f){await FGSECOMAPP[t(565)](t(613)),document[t(323)](new CustomEvent(FGSECOMAPP[t(722)][t(699)],{detail:{status:t(613)}})),console[t(613)](f)}},$d=async $=>{let t=x;$[t(220)]?.[t(404)](t(169))&&await $l($)},$8=()=>{let $=x,t=FGSECOMAPP[$(253)]?.[$(327)],{checkout_btn_query:e}=FGSECOMAPP[$(799)],a=[...e?.[$(177)],...e?.integration,...e?.[$(165)]].filter(Boolean)[$(453)](",");document[$(556)](a)[$(543)](x=>{let e=$,a=x[e(404)](e(702)),i=x[e(404)](e(183)),r=x[e(404)]("sca_handle_checkout");if(t===e(140)){if(a)return;if(!i&&!r){let c=x[e(287)](!0);c[e(321)](e(326),$l),c.setAttribute(e(169),""),c[e(380)](e(183),""),x.style[e(780)]=e(554),x[e(466)][e(802)]="hidden",x[e(466)][e(692)]="0",x[e(380)]("sca_root_checkout",""),x.parentNode?.[e(809)](c)}i&&!r&&(x[e(321)](e(326),$l),x.setAttribute(e(169),""))}else t===e(388)?x[e(380)](e(169),""):r||(x[e(321)]("click",$l),x[e(380)](e(169),""));FGSECOMAPP[e(766)]=!0}),t===$(388)&&window[$(321)]($(326),$d,!0)};FGSECOMAPP[x(559)]=()=>{let $=x;FGSECOMAPP[$(713)]=0;let t=setInterval(()=>{let x=$;$8(),FGSECOMAPP[x(713)]++,(FGSECOMAPP[x(713)]>10||FGSECOMAPP[x(766)])&&(FGSECOMAPP[x(713)]=0,clearInterval(t))},400)};let $g=$=>{let t=x;try{let e={},a={},i=FGSECOMAPP[t(196)];if(S($)){$=[],S(Shopify?.[t(681)])||$.push({...Shopify?.[t(681)]});let r={...Shopify?.[t(612)],...Shopify?.[t(638)]?.[t(271)]};Object.values(FGSECOMAPP[t(489)])?.[t(402)]($=>!S($[t(765)])&&(S($?.[t(635)])||$?.[t(635)]&&!$?.[t(709)]?.[t(353)]($=>$?.[t(405)]?.[t(304)](t(230)))))?.[t(543)]($=>{let x=t;r[$[x(765)].id]={...$[x(765)]}}),$=$[t(449)]([...Object[t(752)](r)])}$?.[t(543)]($=>{let x=t,e=FGSECOMAPP[x(489)][$[x(284)]];FGSECOMAPP[x(489)][$[x(284)]]={...e,info:{...$},product_has_icon:!!S(i)&&void 0}});let c=FGSECOMAPP.fgSettings?.[t(786)];for(let o in i?.forEach(x=>{let i=t,r=x[i(808)];if(1===r[i(770)]&&"number_of_products"===r[0][i(666)]&&typeof r[0][i(455)]===i(344)){let o,s=r[0][i(179)];s?.forEach(x=>{let t=i;switch(x[t(148)]){case t(804):o=Object[t(752)](x.value);break;case t(247):let e=Object[t(432)](x.value);e[t(770)]>0&&(o=(void 0===o?$:o)?.[t(402)]($=>e[t(617)]($[t(148)]))??[]);break;case t(515):let a=Object[t(432)](x[t(475)]);a[t(770)]>0&&(o=(void 0===o?$:o)?.[t(402)]($=>a.includes($.vendor))??[]);break;case"product_collections":let r=Object[t(432)](x.value);r[t(770)]>0&&(o=(void 0===o?$:o)?.[t(402)]($=>{let x=t,e=$.collections?.[x(570)]($=>$.id+""),a=e?.[x(402)]($=>r.includes($));return!S(a)})??[])}}),o?.[i(543)]($=>{let t=i,r=$[t(284)],o=JSON[t(573)](JSON[t(386)](x.gift_products)),s=FGSECOMAPP[t(489)][r]?.[t(765)]??{};if(FGSECOMAPP.fgSettings?.[t(678)]&&(o=o[t(402)]($=>$.original_product_shopify_id!==s?.id)),c&&(o=o.filter($=>{let x=t;return $.variants[x(518)]($=>$?.[x(315)]<=s?.[x(191)]/100)}),S(o)))return;if(e[r]){let n=e[r];o?.[t(543)]($=>{let e=t,a=n[e(437)](x=>x.original_product_shopify_id===$[e(281)]);if(S(a)){n.push({...$,belongs_to_offer:[x.offer_root]});return}let i=$.variants[e(570)]($=>$[e(686)]);a.belongs_to_offer?.[e(617)](x[e(408)])||a[e(246)]?.push(x[e(408)]),a[e(224)]=a?.[e(224)]?.[e(402)]($=>!i[e(617)]($[e(686)]))??[],a[e(224)]=[...a.variants,...$[e(224)]]}),e[r]=n}else e[r]=o?.[t(570)]($=>({...$,belongs_to_offer:[x.offer_root]}));let _=($[t(224)]??$.variant)?.map($=>$.id)??[];a[r]={},FGSECOMAPP.productsInPage[r]?.[t(765)]?.[t(224)]?.[t(402)]($=>_.includes($.id))?.[t(543)]($=>{let x=t;a[r][$.id]=o[x(402)](t=>{let e=x,a=t[e(224)];return c&&(a=a.filter(x=>x?.compare_gift_price<=$[e(200)]/100)),!S(a)})})})}}),e){let s=FGSECOMAPP[t(489)][o];FGSECOMAPP[t(489)][o]={...s,gifts_will_receive:[...e[o]],product_has_icon:!0,variants_has_gift:{...a[o]}}}return Object.entries(e)?.[t(770)]?e:{}}catch(n){return console[t(613)](n),null}},$u=$=>{let e=x,a=FGSECOMAPP.fgAppearanceGiftIcon[e(227)]??{};if(!a[e(670)]?.status)return!1;let i=document[e(609)](t[e(260)])?.innerHTML??t[e(367)],r=$?.[e(570)]($=>i[e(144)](/{{\s*fg_product_handle\s*}}/gm,h(w($.original_product_shopify_id,$[e(155)]),!0))[e(144)](/{{\s*fg_product_img\s*}}/gm,h(K($[e(764)]),!0)).replaceAll(/{{\s*fg_product_img_alt\s*}}/gm,h(C($[e(281)],$[e(448)]))))[e(453)](""),c=document[e(609)](t[e(714)])?.[e(207)]??t[e(182)],o=c[e(144)](/{{\s*fg_gift_thumbnail_title\s*}}/gm,h(m(a.gift_thumbnail?.title??e(552),e(490))))[e(144)](/{{\s*sca_fg_gift_thumbnail_items_section\s*}}/gm,r).replaceAll(/{{\s*fg_check_show_narrow\s*}}/gm,$?.[e(770)]>=4?"":e(438)),{gift_thumbnail_query:s}=FGSECOMAPP.QUERY_SELECTOR??{},n=[...s?.[e(177)]].filter(Boolean)[e(453)](","),_=[...s?.integration,...s?.[e(165)]].filter(Boolean)[e(453)](",");e(732);let f=document.querySelector(n)??document.querySelector(_);if(!f)return;f[e(791)][e(466)][e(242)]=e(733),f[e(791)][e(466)][e(385)]="auto",f[e(791)]?.[e(551)]?.[e(617)](e(483))||f[e(791)]?.[e(405)]?.[e(533)](e(483));let l=f[e(791)][e(609)](e(538));if(l)l[e(207)]=o;else{(l=document[e(157)](e(291))).setAttribute("id",e(805));let d=new DOMParser().parseFromString(o,e(502));l[e(207)]=d[e(682)][e(207)],f[e(791)][e(410)](l,f)}f[e(791)][e(410)](l,f);let g=document[e(609)]("#fg-gift-thumbnail-title");if(g)switch(a.gift_thumbnail?.size){case"32":g[e(466)][e(310)]=e(500);break;case"50":g[e(466)][e(310)]=e(662);break;case"100":g[e(466)][e(310)]=e(512);break;case e(762):g[e(466)][e(310)]=e(697);break;case e(158):g.style[e(310)]=e(733);break;default:g[e(466)][e(310)]=e(662)}if($?.[e(770)]>=(Shopify?.number_gifts_thumbnail??4))new Glider(document[e(609)](".sca-list-gift-thumbnail"),{slidesToShow:(Shopify?.[e(719)]??4)-1,slidesToScroll:1,draggable:!0,dots:e(226),arrows:{prev:e(521),next:e(285)}});else{g&&(g[e(466)][e(310)]=e(733));let u=document.querySelector(".sca-list-gift-thumbnail");u&&(u[e(466)][e(780)]=e(203))}return $},$p=()=>{let $=x;if(!(FGSECOMAPP[$(373)].product_page??{})[$(581)]?.[$(555)])return!1;let e=document[$(609)](t[$(457)])?.[$(207)]??t.GIFT_ICON_SECTION,a=e.replaceAll(/{{\s*fg_gift_icon\s*}}/gm,FGSECOMAPP[$(373)][$(739)])[$(144)](/{{\s*fg_gift_icon_alt\s*}}/gm,$(264))[$(144)](/{{\s*fg_class_product_or_collection_page\s*}}/gm,$(465)),{gift_icon_product_query:i}=FGSECOMAPP[$(799)],r=[...i?.tool][$(402)](Boolean)[$(453)](","),c=[...i?.[$(165)],...i?.[$(571)]][$(402)](Boolean)[$(453)](","),o=document.querySelector(r)??document.querySelector(c);if(!o)return;o[$(466)][$(352)]=$(375),o[$(466)][$(242)]=$(519),o[$(551)]?.[$(617)]($(553))||o.classList?.add($(553));let s=o[$(609)]("#sca-gift-icon");if(s)s[$(207)]=a;else{(s=document[$(157)]($(291)))[$(380)]("id",$(534));let n=new DOMParser()[$(580)](a,$(502));s.innerHTML=n[$(682)][$(207)],o[$(809)](s)}return FGSECOMAPP[$(373)][$(739)]},$b=()=>{let $=x,t=[],{gift_icon_collection_query:e}=FGSECOMAPP[$(799)],a=[...e?.tool,...e?.integration,...e?.[$(165)]][$(402)](Boolean).join(",");return document[$(556)](a).forEach(x=>{let e=$,a=x[e(609)]('a[href*="/products/"]'),i=a?.[e(759)](e(133))?.[e(661)]("/")??[],r=i?.[e(525)]("products"),c=r>=0?i[r+1]??null:null;if(c=c?.[e(661)]("?")?.[e(474)](),g(c)){x[e(701)]();return}let o=x.querySelector(e(335));if(o){x.remove();return}if(S(c))return;let s=decodeURI(c);S(FGSECOMAPP[e(489)][s]?.[e(765)])&&t[e(494)](s);let n=(FGSECOMAPP.productsInPage[s]?.[e(709)]??[]).filter($=>!x[e(703)]($));n[e(494)](x),FGSECOMAPP[e(489)][s]={...FGSECOMAPP[e(489)][s],positions:[...n]}}),t},$m=$=>{let e=x;Object.keys($)?.[e(543)]($=>{let x=e,a=FGSECOMAPP[x(489)][$]?.[x(709)]??[];if(S(a)||!Array[x(755)](a))return;if(!(FGSECOMAPP[x(373)][x(301)]??{})[x(555)])return;let i=document[x(609)](t[x(457)])?.innerHTML??t[x(349)],r=i[x(144)](/{{\s*fg_gift_icon\s*}}/gm,FGSECOMAPP[x(373)].gift_icon_path)[x(144)](/{{\s*fg_gift_icon_alt\s*}}/gm,x(264))[x(144)](/{{\s*fg_class_product_or_collection_page\s*}}/gm,x(364));a[x(543)]($=>{let t=x;$[t(466)][t(352)]=t(375),$[t(551)]?.includes("sca-fg-icon-collection-page")||$[t(405)]?.add(t(142));let e=$[t(609)](t(744));if(e)e[t(207)]=r;else{(e=document.createElement(t(291)))[t(380)](t(316),t(230));let a=new DOMParser().parseFromString(r,"text/html");e.innerHTML=a[t(682)][t(207)],$[t(809)](e)}})})},$h=async $=>{let t=x;await i(SECOMAPP[t(547)]+"&sca_products_handle="+LZString[t(444)](JSON[t(386)]($)),{method:t(185),headers:{"Content-Type":"application/liquid"}}).then(async $=>{let x=t,e=await $[x(598)](),a=[];e?.[x(271)]?.[x(543)]($=>{let t=x;S($?.[t(271)]?.id)||a.push({...$[t(271)],collections:$[t(771)],variants_quantity:$.variants_quantity})});let i=$g(a);$m(i)})[t(676)]($=>{console.error($)})},$1=async $=>{let t=x,e=[];for(let[a,i]of $[t(664)]())S(FGSECOMAPP[t(489)][i]?.[t(765)])&&e[t(494)](i),20===e[t(770)]&&(await $h([...e]),e=[]),a===$[t(770)]-1&&e[t(770)]>0&&(await $h([...e]),e=[])},$y=()=>{let $=$b(),t=$g();$m(t),$1($)[x(648)]()},$7=()=>{let $=x;Shopify?.enable_check_variants_has_gift&&document[$(321)]($(370),function(){let x=$,t=new URL(document[x(383)]),e=parseInt(t[x(369)].get(x(721)));$4(isNaN(e)?void 0:e)})},$4=$=>{let t=x;if(!location[t(133)][t(617)](t(303)))return;document[t(609)](t(278))?.[t(701)](),document.querySelector(t(538))?.remove();let e=$g();if(S(e))return;let a=location.pathname[t(661)]("/"),i=a?.[t(525)](t(271)),r=decodeURI(i>=0?a[i+1]??null:null);if(!Object[t(432)](e)?.includes(r))return;let c=e[r],o=FGSECOMAPP[t(489)][r]?.variants_has_gift??{},s=Object[t(432)](o),n=!0;Shopify?.[t(231)]&&(S($)||s.includes(""+$)||(n=!1),!S($)||S(Shopify?.[t(681)]?.[t(711)])||s.includes(Shopify?.current_product?.[t(711)]?.id?.[t(529)]())||(n=!1),c=o[$??Shopify?.[t(681)]?.[t(711)]?.id]??[]),document.dispatchEvent(new CustomEvent(FGSECOMAPP[t(722)][t(634)],{detail:{icon:FGSECOMAPP.fgAppearanceGiftIcon[t(739)],gifts:$6(c),product:{handle:r,variant:$??Shopify?.[t(681)]?.[t(711)]?.id}}})),n&&($u(c),$p(c))};FGSECOMAPP.renderPromotionMessage=$=>{let e=x;try{if(!FGSECOMAPP[e(244)][e(520)])return;S($)&&($=[...FGSECOMAPP.offers]);let a=location[e(133)].includes(e(629)),i=[];if($?.[e(543)]($=>{let x=e;$[x(128)]||S($[x(462)])||!S(FGSECOMAPP[x(275)])&&!$[x(128)]&&$[x(136)]>FGSECOMAPP[x(275)]||S(($[x(290)]??0)+($[x(186)]??0))&&/({{sca_min_total}})|({{sca_min_quantity}})/gm[x(163)]($.promotion_message)||i[x(494)]({value:m($.promotion_message,x(289)+$.offer_root)[x(144)](x(235),$[x(290)]?.[x(401)](Shopify?.[x(446)]??2))[x(144)]("{{sca_min_quantity}}",$.count_down_quantity),offer_root:$[x(408)]})}),document[e(323)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[e(674)],{detail:{data:i}})),S(i)){document[e(556)](e(445))[e(543)]($=>$[e(207)]="");return}let r=document[e(609)](t[e(259)])?.[e(207)]??t[e(716)],c=i[e(570)]($=>r.replaceAll(/{{\s*fg_cart_message\s*}}/gm,h($[e(475)])))[e(453)](""),o=document[e(609)](t[e(479)])?.innerHTML??t[e(324)],s=o[e(144)](/{{\s*sca_fg_cart_message_items_section\s*}}/gm,c),{cart_message_query:n}=FGSECOMAPP.QUERY_SELECTOR,_=document[e(609)]([...n?.[e(165)]][e(402)](Boolean)[e(453)](",")),f=document[e(556)]([...n?.[e(177)],...n?.[e(571)]].filter(Boolean)[e(453)](",")),l=document[e(556)](e(445));S(l)||l[e(543)]($=>$[e(207)]=s),(l=document[e(157)](e(291)))[e(380)]("id",e(460)),l[e(405)][e(533)](e(460));let d=new DOMParser()[e(580)](s,e(502));l[e(207)]=d[e(682)][e(207)],S(f)||f?.[e(543)]($=>{let x=e;if($[x(609)](x(445)))return;let t=l[x(287)](!0);$[x(145)](t)}),!_?.[e(609)](e(445))&&(d=new DOMParser().parseFromString(s,"text/html"),l[e(207)]=d[e(682)][e(207)],_&&a&&_[e(145)](l));try{document[e(556)](".sca-promotion-glider")[e(543)]($=>{let x=new Glider($);(($,x)=>{let t=_0x3e98,e=$[t(188)][t(715)],a=null,i=1;function r(){a=setTimeout(()=>{let x=_0x3e98;i>=e&&(i=0),$[x(683)](i++)},x)}$[t(425)][t(321)](t(633),function(){window[t(574)](a),r()}),r()})(x,Shopify?.[e(464)]??3e3)})}catch(g){console[e(613)](g)}}catch(u){console[e(613)](u)}};let $v=async()=>{let $=x;try{let t=await i($(229)),e=await t.json();FGSECOMAPP.customerLocation=e?.country_code}catch(a){console[$(712)]($(236))}},$6=($,x)=>$?.map($=>{let t=_0x3e98;return{id:$[t(222)],title:C($[t(281)],$[t(448)]),handle:$[t(155)],thumbnail:$[t(764)],belongs_to_offer:$[t(246)]??""+x,variants:$[t(224)][t(570)]($=>{let x=t;return{id:$[x(417)],title:$.variant_title,price:O($[x(200)]),original_price:O($[x(297)]),thumbnail:$[x(764)],discount_type:$[x(516)],discount_value:$[x(153)]}})}})??[],$3=()=>{let $=x;if(!FGSECOMAPP[$(484)]?.[$(333)]?.[$(728)]||!FGSECOMAPP[$(196)][$(770)])return;let e=document.querySelector($(792)),a=document[$(609)]($(172));if(!e||!a)return;let i=document[$(609)](t.TODAY_OFFER_SECTION_ID)?.[$(207)]??t[$(215)],r=document[$(609)](t[$(390)])?.[$(207)]??t.TODAY_OFFER_ITEM_SECTION,c=document[$(609)](t.TODAY_OFFER_WIDGET_ID)?.[$(207)]??t.TODAY_OFFER_WIDGET,o={};FGSECOMAPP[$(196)][$(543)]($=>{o[$.offer_root]=$});let s=Object[$(752)](o);s.sort((x,t)=>{let e=$;return new Date(x[e(254)])-new Date(t[e(254)])}),e[$(207)]=c[$(144)](/{{\s*sca_fg_today_offer_widget\s*}}/gm,h(FGSECOMAPP[$(484)][$(756)])),FGSECOMAPP[$(484)]?.[$(333)][$(592)]===$(345)&&(e[$(405)][$(533)]($(216)),a[$(405)][$(533)]($(545))),"bottom_right"===FGSECOMAPP[$(484)]?.widget_info.widget_position&&(e.classList[$(533)]("sca-today-offer-widget-right"),a.classList[$(533)]($(498))),a[$(207)]=i.replaceAll(/{{\s*sca_fg_today_offer_title\s*}}/gm,h(m(FGSECOMAPP[$(484)][$(333)][$(737)]??"TODAY OFFER",$(434))))[$(144)](/{{\s*sca_fg_today_offer_subtitle\s*}}/gm,h(m(FGSECOMAPP[$(484)][$(333)][$(347)]??$(152),$(603)))),document[$(609)]($(197))[$(207)]=s[$(570)](x=>r.replaceAll(/{{\s*sca_fg_offer_id\s*}}/gm,h(x[$(408)]))[$(144)](/{{\s*sca_fg_offer_title\s*}}/gm,h(m(x[$(495)],$(274)+x[$(408)]))).replaceAll(/{{\s*sca_fg_offer_title_tooltip\s*}}/gm,h(m(x[$(495)],$(274)+x[$(408)])))[$(144)](/{{\s*sca_fg_offer_img\s*}}/gm,h(x.gift_products[0][$(764)],!0))).join("\n"),document.querySelector($(463))[$(207)]=s[$(770)][$(529)](),document[$(609)]($(198))[$(321)]($(326),()=>{let x=$,t=document[x(609)]("#sca-fg-today-offer-iframe");t?.classList[x(789)](x(736))}),document[$(609)]($(792)).addEventListener($(326),()=>{let x=$,t=document[x(609)](x(172));t?.[x(405)].toggle(x(736))}),document[$(323)](new CustomEvent(FGSECOMAPP[$(722)][$(758)],{detail:{todayOffers:s[$(570)](x=>{let t=$,e=fgData.offers[t(437)]($=>$.id.toString()===x[t(408)]);return{id:""+e.id,title:m(x.offer_name,t(274)+x.offer_root),gifts:$6(e.gift_products,e.id),success:x[t(128)]??!1}})}})),$2();let n=(x,t,e)=>{let a=$,i=document[a(157)]("p");i[a(551)]=a(781),i[a(143)]=x,document.body[a(809)](i),i[a(466)][a(706)]=e+"px",i.style[a(653)]=t+"px",i.style.display=a(298)},_=()=>{let x=$,t=document[x(609)](".sca-fg-tooltip");t&&t[x(791)][x(391)](t)},f=x=>{let t=$,e=document[t(609)](".sca-fg-tooltip");e&&(e[t(466)].top=x[t(322)]+"px",e.style[t(653)]=x[t(788)]+5+"px")},l=document[$(556)]($(636));l[$(543)](function(x){let t=$;x[t(321)](t(795),function($){let e=t,a=x[e(759)](e(129));n(a,$.pageX+5,$[e(322)]+5)}),x.addEventListener(t(597),function(){_()}),x[t(321)](t(261),f)})},$2=()=>{let $=x,t=[...new Set(FGSECOMAPP[$(196)]?.[$(402)]($=>$.isReachConditions)?.map(x=>x[$(408)]))];document[$(323)](new CustomEvent(FGSECOMAPP[$(722)][$(488)],{detail:{idOffersSuccess:t}}));let e=document[$(556)]($(735));e[$(543)](x=>{let e=$;t[e(617)](x.getAttribute(e(517)))?x.classList[e(533)](e(245)):x[e(405)].remove(e(245))})},$T=function(){let $=x;try{document[$(321)](FGSECOMAPP[$(722)][$(358)],async()=>{let x=$;try{window[x(798)]&&(unicart.dispatchEvent(x(727)),console[x(712)]("Unicart"))}catch(t){console[x(613)](x(741),t)}try{window[x(541)]&&(await window[x(541)](),console.log(x(492)))}catch(e){console.error("iCart",e)}try{window[x(740)]?.[x(677)]?.[x(314)]&&window[x(740)].Cart[x(314)]()}catch(a){console[x(613)](x(740),a)}try{window[x(294)]&&(await $r("sca_slidecart_tcc")[x(648)]($=>{window[x(294)]($),window.SLIDECART_OPEN()}),console.log(x(604)))}catch(i){console[x(613)]("SLIDECART - HQ",i)}try{let r=document[x(609)]("#upCartStickyButton .upcart-sticky-cart-quantity-icon-text");window.upcartRegisterAddToCart&&(await window[x(421)](),console[x(712)](x(528)),r&&(r[x(207)]=FGSECOMAPP?.[x(199)]?.item_count??0))}catch(c){console[x(613)](x(528),c)}try{window.STICKY_CART_UPDATE&&(await window[x(175)](),window[x(459)](),console[x(712)](x(329)))}catch(o){console[x(613)](x(329),o)}try{window?.SATCB?.[x(784)]?.[x(292)]?.openSlider&&(await window[x(433)][x(784)].CartSlider[x(130)](),console[x(712)](x(748)))}catch(s){console.error(x(748),s)}try{window[x(381)]&&(await window[x(381)](),window[x(540)](),console.log(x(190)))}catch(n){console[x(613)](x(190),n)}try{window[x(372)]&&await (window[x(372)](),window[x(783)](),console[x(712)](x(441)))}catch(_){console[x(613)](x(190),_)}try{let f=document.querySelector(x(211)),l=document[x(609)]("drawer-component#Drawer-Cart cart-drawer");window[x(793)]&&f&&(await f?.[x(237)](!window[x(149)]?.hasDiscount),f?.[x(473)]()),window.FoxTheme&&l&&(await l?.[x(418)](),l?.[x(769)]?.[x(658)]())}catch(d){console[x(613)]("Theme FoxEcom",d)}try{window[x(270)]&&await (CartJS?.getCart(),console[x(712)](x(273)))}catch(g){console.error(x(273),g)}try{window[x(195)]?.Cart?.[x(371)]&&await (T4SThemeSP[x(677)][x(371)](),console[x(712)](x(195)))}catch(u){console[x(613)](x(195),u)}}),window[$(321)]("icartSideCartOpenEvent",function(x){FGSECOMAPP[$(509)](),FGSECOMAPP.fetchCheckoutEvents()}),document[$(321)]($(202),x=>{FGSECOMAPP[$(509)](),FGSECOMAPP.fetchCheckoutEvents()}),window[$(212)]=function(){let x=$;FGSECOMAPP[x(509)](),FGSECOMAPP[x(559)]()},window[$(588)]=()=>{let x=$;FGSECOMAPP[x(509)](),FGSECOMAPP[x(559)]()},window.MinimogEvents?.subscribe&&window[$(413)][$(811)](window[$(793)]?.[$(311)]?.[$(672)]??"open-cart-drawer",function(){let x=$;FGSECOMAPP[x(509)](),FGSECOMAPP[x(559)]()}),document[$(321)](FGSECOMAPP[$(722)][$(395)],()=>{let x=$;try{"function"==typeof window.HS_SLIDE_CART_CLOSE&&window[x(423)](),typeof window[x(309)]===x(171)&&window[x(309)](),typeof window[x(734)]===x(171)&&window[x(734)](),document[x(609)](x(201))?.[x(326)]()}catch(t){console.error(t)}}),document[$(321)](FGSECOMAPP[$(722)].FG_OVERRIDE_FETCH,x=>{let t=$;try{if(!document[t(609)](t(558))&&window[t(740)]?.Cart?.[t(314)]&&window[t(740)][t(677)][t(314)](),!x[t(569)].args?.[0]?.[t(617)](t(269)))return;!document[t(609)](t(637))&&window[t(421)]&&window[t(421)]()}catch(e){console.error(e)}})}catch(t){console.error(t)}};$0(FGSECOMAPP[x(486)])[x(648)](()=>{$T()})}();