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