window.fgData={"offers":[{"id":17336,"shop_id":6704,"offer_name":"Gift with purchase over \u00a360","offer_description":null,"promotion_message":null,"start_time":"2023-11-20T09:46:11.000000Z","end_time":null,"condition_relationship":null,"gift_settings":{"discount":{"type":"percentage","value":100},"auto_add_all_gifts":false,"customer_will_receive":"number_of_gift_can_receive","cal_gift_for_other_rules":false,"number_of_gift_can_receive":1},"gift_should_the_same":{"type":"variant","status":false},"sub_conditions":null,"priority":1,"stop_lower_priority":false,"status":true,"loading":"not_running","gift_products":[{"title":"\u00bb Digital Planner (accessed via Notion) (100% off)","original_product_handle":"digital-planner","clone_product_handle":"digital-planner-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0571\/0666\/1424\/files\/ProductImages-01_1.png?v=1697473301","product_shopify_id":7312439541808,"original_product_shopify_id":7287008886832,"variants":[{"id":102930,"gift_product_id":40758,"discount_type":"percentage","discount_value":100,"original_price":42,"original_compare_at_price":null,"original_product_shopify_id":7287008886832,"original_variant_shopify_id":40971392483376,"price":0,"product_shopify_id":7312439541808,"variant_shopify_id":41030096617520,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0571\/0666\/1424\/files\/ProductImages-01_1.png?v=1697473301","pivot":{"offer_id":17336,"gift_item_id":102930},"gift_product":{"id":40758,"shop_id":6704,"title":"\u00bb Digital Planner (accessed via Notion) (100% off)","original_product_handle":"digital-planner","clone_product_handle":"digital-planner-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0571\/0666\/1424\/files\/ProductImages-01_1.png?v=1697473301","product_shopify_id":7312439541808,"original_product_shopify_id":7287008886832,"created_at":"2023-11-20T09:46:58.000000Z","updated_at":"2023-11-20T09:46:58.000000Z"}}]}],"offer_conditions":[{"id":18180,"offer_id":17336,"is_multiply":null,"min_amount":"60.00","max_amount":null,"product_narrow":[],"unit":"money"}],"gift_items":[{"id":102930,"gift_product_id":40758,"discount_type":"percentage","discount_value":100,"original_price":42,"original_compare_at_price":null,"original_product_shopify_id":7287008886832,"original_variant_shopify_id":40971392483376,"price":0,"product_shopify_id":7312439541808,"variant_shopify_id":41030096617520,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0571\/0666\/1424\/files\/ProductImages-01_1.png?v=1697473301","pivot":{"offer_id":17336,"gift_item_id":102930},"gift_product":{"id":40758,"shop_id":6704,"title":"\u00bb Digital Planner (accessed via Notion) (100% off)","original_product_handle":"digital-planner","clone_product_handle":"digital-planner-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0571\/0666\/1424\/files\/ProductImages-01_1.png?v=1697473301","product_shopify_id":7312439541808,"original_product_shopify_id":7287008886832,"created_at":"2023-11-20T09:46:58.000000Z","updated_at":"2023-11-20T09:46:58.000000Z"}}]}],"settings":{"auto_add_gift":true,"compare_gift_price_with_product":false,"cal_gift_discount":"current_price","select_one_gift_price":false,"not_show_gift_if_already_on_cart":false,"sync_quantity":false,"manual_input_inventory":false,"using_draft_order":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":"#FFFFFF","add_to_cart_btn_color":"#7367f0"},"others":{"hidden_brand_mark":false,"gift_img_size":"&width=480&height=480"},"disable_slider_checkbox":{"enable":false,"time":10,"text":"Don't show this offer again"}},"gift_icon":{"gift_icon_path":"images\/fg-icons\/fg-icon-red.png","shopify_gift_icon_path":"fg-icon-red.png","product_page":{"gift_icon":{"status":true,"size":"50"},"gift_thumbnail":{"status":true,"size":"100","title":"Free Gift"}},"collection_page":{"status":true,"size":"50"}},"promotion_message":{"show_on_cart_page":true,"text_color":"#ffffff","background_color":"#F72119"},"today_offer":{"widget_icon_path":"images\/widget-icons\/widget-icon-6.png","shopify_widget_icon_path":"widget-icon-6.png","widget_info":{"show_widget":true,"widget_position":"bottom_right","widget_title":"TODAY OFFER","widget_subtitle":"Claim these exclusive offers today"}}},"integration":{"transcy":{"install":false}}};/* END_FG_DATA */ const _0x422346=_0x3512;function _0x3512($,x){let t=_0x5451();return(_0x3512=function($,x){return t[$-=329]})($,x)}if(!function($,x){let t=_0x3512,e=$();for(;;)try{let a=-parseInt(t(980))/1+-parseInt(t(712))/2+parseInt(t(861))/3*(-parseInt(t(472))/4)+parseInt(t(391))/5+-parseInt(t(564))/6*(-parseInt(t(867))/7)+parseInt(t(503))/8*(-parseInt(t(879))/9)+parseInt(t(997))/10;if(710730===a)break;e.push(e.shift())}catch(i){e.push(e.shift())}}(_0x5451,710730),window[_0x422346(949)]?.[_0x422346(863)]?.gift_icon?.[_0x422346(743)]&&fgGiftIcon&&(window[_0x422346(949)][_0x422346(863)][_0x422346(591)][_0x422346(743)]=fgGiftIcon),window[_0x422346(949)]?.[_0x422346(863)]?.[_0x422346(752)]?.[_0x422346(905)]&&fgWidgetIconsObj){let $=window[_0x422346(949)][_0x422346(863)][_0x422346(752)][_0x422346(905)];window[_0x422346(949)].appearance[_0x422346(752)][_0x422346(967)]=fgWidgetIconsObj[$]??$}function _0x5451(){let $=["RENDER_CART_MESSAGE","type_customer_locations","#sca-fg-today-offer-widget .sca-fg-count-offers","sca_fg_innerHTML","min_amount","error","join","sections","Slide Cart - Heysenior","manual_input_inventory","fetch","apply","none","show_widget","variants_has_gift","application/json;","widget_position","concat","catch","location","hasDoneProcessCheckout","$","gift_should_the_same","original_product_shopify_id","readyState","original_product_handle","XMLHttpRequest","6XNGQeC","clone_product_handle","mousemove","$$$$","#sca-fg-today-offer-iframe","root","split","customize.disable_slider_text","initializeForXHR","prepareDataForDisplayWidgetByRule","active","#sca_fg_today_offer_item_section","block","money","hide","paid","fgSettings","#sca-fg-today-offer-widget","freegiftProxy",'a[href*="/products/"]',"openSlider","maxOfferPriority","offer_id","isSameNode","glider-animated","product_collections","discount_type","gift_icon","TODAY OFFER","Error listening XHR send",'\n \n \n \n ',"enable","parentNode",'
\n Loading...\n
',"sca-today-offer-left","input[value='Check Out'] a.checkout-link","sca_price","url","gift_items",".sca-list-gift-thumbnail","sca-offer-archived","subscribe","width",'
  • \n {{ fg_variant_title }}\n
  • ',"not type checkout btn","find","priority","visibility","rebuy:smartcart.show","body","show_on_cart_page","innerText","is_only","customize.select_variant_button_text","data-fg-offer-id","renderPromotionMessage","TODAY_OFFER_SECTION_ID","gifts_id","default","#fg-gift-thumbnail-title .glider-next","forEach","toggle","fg-xhr:send","sca-promotion-message-layout","Can not fetch all body","Cart","text/html","data-fg-checkout-btn","toFixed","sca_catch","isReachConditions","end","number_of_order","sca-today-offer-right",".gift-original-url","GIFT_ICON_SECTION_ID","offer_conditions","hasDiscount","tags","vendor","GIFT_UPDATED","product_vendors","rate","title","STICKY_CART_UPDATE","compressToBase64","fit-content","customize.widget_title","test","sca_offers_added","SLIDECART_UPDATE","click","sca-is-visible-fg","decompressFromBase64",".m-product-item, .m-product-list .swiper-slide, .f-grid .f-column","GIFT_THUMBNAIL_ITEMS_SECTION","START_VALIDATE_CHECKOUT","Show",'fg-widget-today-offer\n ',"routes","/?sections=","} {","customer","sca_fg_cart_drawer_query","product_id","CartSlider","Update cart.attributes ","100","product",'
    \n \n \n
    ',"6px 0","fg-today-offer:render","track variant auto add gift: {","set","CART_MSG_SECTION_ID","GIFT_SELECT_SECTION","gift_thumbnail","stop_lower_priority","isUpdateCart","Slide Cart - qikify","pageY","SLIDECART_CLOSE","replaceAll","{{sca_min_quantity}}","and","number_gifts_thumbnail","sca_root_checkout","sca-fg-out-stock","indexOf","include","call","keys","positions","m-cart-drawer","startsWith","#upCartStickyButton .upcart-sticky-cart-quantity-icon-text",'.btn-add-to-cart[data-variant="',"backgroundColor","UpCart - AfterSell","includes","now","fg-gifts:updated","sca_deplay_cart_msg","log","trim","sca-today-offer-widget-right","left","selling_plan","50214KNZzwq","GIFT_THUMBNAIL_ITEMS_SECTION_ID","END_PROCESS_CART","sca_fetch_cart","not using draft order",".sca-promotion-message-layout","pubSubEvents","open","GIFTS_CART_SECTION_ID",".sca-promotion-glider",".sca-offer-title","max","entries","#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg","integration",'
    \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
    ',"item_count",".cc-product-list .product-block, .collection-list.grid .grid__item, .collection-grid.grid .grid__item",".fg-secomapp-cart-icon","fgAppearance","reduce","values","isDelayShowAdded","className","#fg-gift-items","have_not_got_gift_from_this_offer","#shopify-section-header #cart-icon-bubble, .shopify-section.section-header #cart-icon-bubble","sca_fg_main_promotion_message_query","belongs_to_offer",'

    \n {{ fg_cart_message }}\n

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