window.fgData={"offers":[],"settings":{"gift_format":"same_as_original_products","auto_add_gift":true,"sync_quantity":false,"cal_gift_discount":"current_price","using_draft_order":false,"select_one_gift_price":false,"manual_input_inventory":false,"compare_gift_price_with_product":false,"delete_gift_after_turn_off_offer":true,"not_show_gift_if_already_on_cart":false},"appearance":{"gift_slider":{"general":{"gift_popup_title":"Select your free gift!","add_to_cart_btn_title":"Add to cart","running_text":"","select_gift_btn":"Select variants","show_product_title":true,"show_variant_title":true,"show_pagination":true,"show_gift_for_customer":"by_variants","number_product_slider":4},"color":{"gift_slider_title_color":"#121212","product_title_color":"#000000","original_price_color":"#121212","discounted_price_color":"#ea5455","add_to_cart_color":"#FFFFFF","add_to_cart_btn_color":"#7367f0"},"others":{"hidden_brand_mark":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-green.png","shopify_gift_icon_path":"fg-icon-green.png","product_page":{"gift_icon":{"status":true,"size":"100"},"gift_thumbnail":{"status":true,"size":"100","title":"Hamama-ween Offer \ud83c\udf83 Free Garden Seeds with subscription order!"}},"collection_page":{"status":true,"size":"100"}},"promotion_message":{"show_on_cart_page":true,"text_color":"#ffffff","background_color":"#F72119"},"today_offer":{"widget_icon_path":"images\/widget-icons\/widget-icon-1.png","shopify_widget_icon_path":"widget-icon-1.png","widget_info":{"show_widget":false,"widget_position":"bottom_right","widget_title":"TODAY OFFER","widget_subtitle":"Claim these exclusive offers today"}}},"integration":null};/* END_FG_DATA */ const _0x358473=_0x2e03;function _0x2e03($,x){let t=_0x2147();return(_0x2e03=function($,x){return t[$-=305]})($,x)}function _0x2147(){let $=["GIFT_SELECT_SECTION","setItem","get","closeCart","fit-content","then","arrGiftsData","email","auto","BOGOS track: Rivets Cart","monster_refresh","sca_price","BOGOS track: Theme FoxEcom","_compress","#sca-fg-today-offer-widget .sca-fg-title-icon-widget","scrollItem","customize.widget_title","values","#secomapp_freegifts_version",".dots","body","bottom_left","#fg-gift-items .btn-add-to-cart","reRenderCartCustom","focus","STICKY_CART_UPDATE","rebuy:smartcart.show","54RQulHI","display","100",".fg-secomapp-cart-item-promotion","#sca-gift-thumbnail","fg-xhr:send",'
\n \n \n \n \n \n \n ',"function","compare_at_price","max","type_customer_locations","toFixed","giftsAdded","&width=480&height=480","fg-gifts:updated","Cart","#close-fg-toast","DISABLE_SLIDER_SECTION","GET","bogos_settings_glider","childElementCount","shift","disable_async_process_fg","initLZString","cart","belongs_to_offer","sca_checkout_form",".satcb-cs-checkout-btn, .hs-checkout-purchase","sca-fg-form-thumbnail-product-page","getItem",".fg-secomapp-handle-add-to-cart","isArray","last_total","gift_popup_title","shopify_cart","BOGOS track: Failed to get customer location","default","className","#7367f0","stringify","MinimogEvents","[data-open]","/cart/add.js","BOGOS track: Error listening XHR send","handle","original_variant_shopify_id","gift_items",".sca-fg-notifications","add_to_cart_btn_title","/cart/change","fg-today-offer:success","GIFT_THUMBNAIL_ITEMS_SECTION","left","using_draft_order","fgAppearanceGiftIcon","and","parentElement",".satcb-cs-close","status","prepend","time","customize.gift_slider_title","freegifts-main-page-container","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-.","fgAppearanceTodayOffer","FGSECOMAPP","replace","discount_type","do_not_add_freegift_attribute",".cc-product-list .product-block, .collection-list.grid .grid__item, .collection-grid.grid .grid__item","BOGOS track: UpCart - AfterSell","&sca_shop_name=","sca-hide","insertBefore","div[class*=hs-cart-drawer] .hs-site-cart-popup-layout, #MinimogCartDrawer m-cart-drawer-items, #CartDrawer > .drawer__inner","SLIDECART_UPDATE","div","sca_process_gifts","openSlider",'
\n Loading...\n
',"root","select_one_gift_price","BOGOS track: T4SThemeSP","fromCharCode","cal_gift_discount","HS_SLIDE_CART_OPEN","CART_MSG_SECTION_ID","split","financial_status","TODAY_OFFER_ITEM_SECTION","upcartRegisterAddToCart","END_VALIDATE_CHECKOUT","auto_add_gift","70%","fgData","scaCustomLoadingCheckout","tags","country_code","hasOwnProperty","TODAY_OFFER_WIDGET_ID","start_time",".fg-secomapp-cart-icon","gift_products","number_of_order","Escape","product_shopify_id","original_compare_at_price","removeAttribute","fgCallback","XMLHttpRequest","max_gifts_can_get","SLIDECART_CLOSE","widget_icon_style","GIFT_ICON_SECTION","number_product_slider","error","BOGOS track: auto add gift: {","/cart/update","FG_OVERRIDE_FETCH","remove","HS_SLIDE_CART_CLOSE","collections","include","CART_MSG_ITEM_SECTION","gift_should_the_same","variants_has_gift","offer_root","fetchCart","BOGOS track: Error prepareOfferShouldBeTheSame","isReachConditions","customize.widget_subtitle","shopify_widget_icon_path","upcartOnCartOpened","timeoutId","variant_title","free-gift-icon","customize.widget_icon_title",".sca-fg-close-today-offer","fgAppearancePromotionMessage","data-fg-checkout-btn","#fg-gift-thumbnail-title .glider-next","_decompress","searchParams","customize.disable_slider_text","Don't show this offer again","fg-checkout:end","#sca_fg_section_gifts_popup",'
  • \n {{ fg_variant_title }}\n
  • ',"widget_title","sca_amount_fixed","SHOW_GIFT_SLIDER","TODAY_OFFER_SECTION","FGSECOMAPP_HIDDEN_GIFT_POPUP","#sca_fg_section_gift_item","opacity","sca-fg-toast sca-fg-success","today_offer","gift_settings","TODAY_OFFER_CHANGE",".m-product-item, .m-product-list .swiper-slide, .f-grid .f-column","FG_OVERRIDE_XHR_OPEN","NumberFormat","fg_decimal","price_max","widget_icon_path","#sca_fg_today_offer_widget","disabled","shop","6px 0","sca-d-none",'
    \n \n {{ fg_product_img_alt }}\n \n
    ',"CART_AUTO_UPDATED","#sca_fg_gift_thumbnail_section","customer_order_history","BOGOS track: event auto process gifts with cart","input[name='goto_gc'], button[name='goto_gc'], a[href$='checkout'], form[action='/checkout'] input[type='submit']","gift_icon","arrGiftsAdd","number_of_products","unshift","value","arrOfferAdded","24hxXkkW","?sca_process_gifts","data-original-price","BOGOS track: event add gift to cart from popup","offer_conditions","#fg-gift-thumbnail-title","sca-gift-icon","backgroundColor","GIFT_ITEM_SECTION",".product-card, #product-grid .grid__item, .product-grid .grid__item, .card-list .card-list__column","BOGOS track: Close cart when show gift-sliders","cookie","removeItem","clone_product_handle","BOGOS track: error fetch override","4wBraIT","getElementById","max_amount","location","sca_fg_main_promotion_message_query","test","GIFTS_POPUP_SECTION","gifts_id","offer.offer_title_","mode_override_checkout","fg-checkout:start","show_gift_for_customer","#sca_fg_gift_icon_section","#82868b","text/html","settings","sca-show","en-US","querySelector","/cart/add","LZString","getToFetch",'fg-widget-today-offer\n {{ sca-fg-title-icon-widget-content }}\n ',"GIFT_THUMBNAIL_SECTION","change","pubSubEvents","#sca-gift-icon","freegifts-main-popup-container","60%",".gift-original-url","#shopify-section-header #cart-icon-bubble, .shopify-section.section-header #cart-icon-bubble","reload","#fg-gift-items",".dots-thumbnail","hasDoneProcessCheckout","number_of_gift_can_receive","entries","USD","innerHTML","variants_quantity","icon_widget_title","BOGOS track: Slide Cart - Heysenior","now","bogos-gift","BOGOS track: Error decoding cookie","152XLZUjw","setAttribute","val","$","BOGOS track: getInfoProductsByProxy","BOGOS track: Slide Cart - qikify","-sca_clone_freegift",'
    \n {{ sca_fg_cart_message_items_section }}\n
    ',"show_on_cart_page","SHOPIFY_CART","concat","sca_add_url","sca-promotion-message-layout","240","reduce",".sca-promotion-message-layout","original_price","input[name='checkout'], button[name='checkout'], input[name='goto_pp'], button[name='goto_pp']","innerText","show_product_title","DONE","original_product_handle","class","T4SThemeSP","min_amount","show_variant_title","product_narrow","join",".product_name, .product-title, .product__title, .product-single__title, .tt-title, .ProductMeta__Title","json","string","GIFT_SELECT_SECTION_ID","available","locale","add_to_cart_btn_color","value_customer_tags","discounted_price","330568ofNgXF","sca_locale","headers","sca_handle_checkout","sort",".sca-fg-tooltip","order_created_from","appearance","flat",".fg-secomapp-product-title","api","SLIDECART_OPEN","product_has_icon","FoxKitV2","mouseleave","append","freegiftProxy","offer_id","hasDiscount","sca-fg-form-icon-product-page","CUSTOM_EVENTS","BOGOS track: auto add all gifts from {","redirected","start","fg-app:end","find","stop_lower_priority","sca-gift-icon-collection-page","fg-gifts:gift-icon","format","charCodeAt",'
    \n \n \n
    ',"invoice_url","key","#fg-gift-items .dropdown","mouseenter","money","fg-gifts:show-slider","GIFT_THUMBNAIL_ITEMS_SECTION_ID","title",'.btn-add-to-cart[data-variant="',"some","gifts","products","width",".freegifts-main-container .glider-next","isUpdateCart","END_RENDER_APP","offer","TODAY_OFFER_ITEM_SECTION_ID","sections","pathname","d-block",".f-product-single__title, .m-product-title","pow",".icart-inner .icartContain, .rebuy-cart__flyout-body, #slidecarthq .slidecarthq","style","add_cart_discounts",'
    \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
    ',"total_spent_on_last_order","offer_name","add","number_gifts_thumbnail","subscription_products","customer","sections_url","relative",".product-item-thumbnail","thumbnail","boolean","trigger_body","final_price","active","Rebuy","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","orders","END_PROCESS_CART","#sca-fg-today-offer-widget .sca-fg-count-offers","MinimogTheme","click","warn","padding","BOGOS track: Error listening XHR open","undefined","none","data-price","variant_shopify_id","enable_check_variants_has_gift",'
    \n
    \n \n \n \n \n \n ',"CartJS","compare_gift_price","fgSettings","Default Title","#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg","classList",".btn-add-to-cart","fg-today-offer:render","#sca_fg_disable_slider_section","pageX","STICKY_CART_OPEN","Show","disableShopify_getCart","40gTHnQY","CartSlider","&sca_products_handle=","contains","gift_icon_path","sca-today-offer-widget-right","clearInterval","arrGiftsRemove","offers","#sca-fg-today-offer-iframe .sca-fg-body .sca-fg-offers .sca-fg-offer","currentTarget","sca_deplay_cart_msg","compressToEncodedURIComponent","includes","1576734wqbNdK","partially_paid","fg_fetch_attributes","m-cart-drawer","original_product_shopify_id","#sca_fg_gift_thumbnail_items_section","condition_result",'
    \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
    ',"application/liquid","current_variant","slice","fg-checkout","set","variants","addGiftToCart","#MainContent, #mainContent, #main, .main-content","icon_and_title","cart-drawer .mini-cart__inner .mini-cart__empty, cart-drawer .mini-cart__inner .mini-cart__main","BOGOS track: variant auto add gift {","BOGOS track: Error check cart event",".dropdown-menu","positions","SLIDECART_OPENED","https://geoip.secomtech.com/?json","BOGOS track: Cannot define custom loading with type: ","data-template","toString","BOGOS track: SLIDECART - HQ","parentNode","current_product","not_show_gift_if_already_on_cart","fg-cart:end-process","#sca_fg_today_offer_item_section","GIFT_THUMBNAIL_SECTION_ID","#sca-spinner-checkout","product_types","data-img","open-cart-drawer","total_spend_on_order_history","readystatechange","#sca_fg_variant_select_section","sca-is-visible-fg","fgAppearanceGiftSlider","BOGOS track: error draft-order","detail","getAttribute","call","sca-today-offer-left","createElement","Today offer","subscribe","cal_gift_price","sca_fg_btn_gift_thumbnail_query","80%","textContent","2338053SDpaHX","priority","START_RENDER_APP","parse","appendChild","args","application/json",'a[href*="/collections/sca_fg"]',"/cart","Add to cart","pageY","BOGOS track: Error update cart.attributes","BOGOS track: Error processGiftsToCart","product_id","sections_cart","addEventListener","toggle","sca-today-offer-widget-left","data-original-id","value_customer_locations","sca_fg_codes","substring","fg-gift-items","created_at","openDrawer","type_customer_tags","getCart","is_only","customerLocation","sca_add_gift","442320NFxKOV","is_multiply","info","type","BOGOS track: Failed render cart message","stopImmediatePropagation","sca_update_url","/?sections=","productsByID","URL","DISABLE_SLIDER_SECTION_ID","charAt","scaCountRenderEventCheckout","checkIsBlockCheckout","RENDER_TODAY_OFFER","sync_quantity",'\n \n \n \n \n \n ',"SECOMAPP_FREEGIFT","customLoadingCheckout","dataset","GIFT_ICON_SECTION_ID","secomappGetCartRunning","clone_checkout","isSameNode",'
    \n
    \n {{ fg_slider_title }}\n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n \n {{ sca_fg_disable_slider_section }}\n
    ',"disable_fetch_cart_checkout","widget_subtitle","BOGOS track: Error checkAutoAddGift",".sca-offer-title","#sca-fg-today-offer-iframe","text","removeEventListener","fg-fetch:override","compare_gift_price_with_product","maxWidth","promotion_message","replaceAll","cart_attributes","icon","preventDefault","fg_codes","fg-xhr:open","BOGOS track: Failed check products have customize","quantity","integration","widget_info",'\n
    \n Powered by\n \n BOGOS: Free Gift & Buy X get Y\n \n \n
    \n ',"cal_gift_for_other_rules","checkout","target","Select variant","fgIntegration","stop_offer",".freegifts-main-container .glider-prev","hide","sca_offers_added",'
    \n
    \n \n
    \n
    \n \n {{ fg_original_price }}\n \n {{ fg_gift_price }}\n
    \n \n \n \n \n
    \n
    \n
    ',"{{sca_min_total}}","BOGOS track: iCart","sca_fg_img_collection_gift_icon_query","condition_relationship","fetchCheckoutEvents","formatter","manual_input_inventory","discounts","defineProperty","href","sca-fg-out-stock","product_collections","sca_link_checkout","sca_clone_checkout","updateCart","BOGOS track: initializeForXHR Shopify.getCart","data-fg-offer-id","variants_ids","currency","Shopify.getCart","data-variant","filter","BOGOS track: not type checkout btn","PRODUCT_HAS_GIFTS","enable_process_offer_loading","START_PROCESS_CART","done","GIFTS_POPUP_SECTION_ID","initializeForFetch","map","parseFromString","querySelectorAll","others","variant","GIFTS_CART_SECTION",".icartCheckoutBtn, .rebuy-cart__checkout-button, .qsc2-checkout-button, #mu-checkout-button","bottom_right","BOGOS track: Error recall root event checkout","trim","dispatchEvent","position","productsInPage","product_vendors","838255pGRHSj",".satcb-cs .satcb-cs-top-container, #monster-upsell-cart #monster-cart-wrapper div[class*=custom_scrollbar]","BOGOS track: Monster Cart",".btn-add-to-cart.sca-fg-out-stock","BOGOS track: error event click add-to-cart ","push","sca_fg_innerHTML","unit","315259ljgyIu","startsWith","open","routes","sca_cart_xhr",".sca-fg-icon-success","sca_fg_price","object","renderPromotionMessage","every","BOGOS track: Sticky Cart - Codeinero","apply","customize.select_variant_button_text","stopPropagation","button.new_checkout_button, input[value='Checkout'], input[value='Checkout'], input[value='Check out']","specific_link_address","sca_fg_cart_drawer_query","fetch","forEach","src","top","catch","end_time","sca-fg-icon-collection-page","isDelayShowAdded","HS_SLIDE_CART_UPDATE","FoxTheme","item_count","right","customer_tags","getTime","maxOfferPriority",".sca_handle_button_checkout","sub_conditions","length","GIFTS_CART_SECTION_ID","gift_slider","count_down_value","gifts_valid","discount_value","scaHandleConfigValue","variantId","416ptYlVY","giftsAvailable","sca-fg-tooltip","#sca_fg_cart_message_section","sca-fg-today-offer-widget-with-title","inventory_management",".freegifts-main-container .slide-container #sca-hidden-gift-popup .sca-disable-checkbox","SATCB","index","100%","cartItems","TODAY_OFFER_SECTION_ID","send",".sca-promotion-glider",'
    \n
    \n \n {{ sca_fg_offer_title }} \n
    \n \n \n \n \n \n \n
    ',".fg-secomapp-cart-drawer","data-sca-fg-today-offer-title-tooltip","22757dIurzY","BOGOS track: getInfoCloneProducts","#sca-fg-today-offer-widget","product_type",".sca-list-gift-thumbnail","color","#fg-gift-items .dropdown > .dropdown-menu > li","readyState","&data_checkout=","[sca_root_checkout]","#sca_fg_today_offer_section",'

    \n {{ fg_cart_message }}\n

    ',"hasAttribute","glider-animated","QUERY_SELECTOR","sca-gift-thumbnail","fgAppearance","sca_slidecart_tcc","[type='submit'][name='add'], [type='button'][name='add'], [data-add-to-cart], [data-action='add-to-cart']",'{{ fg_gift_icon_alt }}',"tabindex","Select your free gift!","selling_plan","hidden_brand_mark","price","BOGOS track: conflict app override","fg-app:start","vendor","fg-gifts:added","prototype","track","keys","15hJqYwx","gift_thumbnail","show_widget","number",'a[href*="/products/"]',"compressToBase64","icartSideCartOpenEvent","openCart","auto_add_all_gifts","count_down_quantity","disable_override_xhr","prepareDataForDisplayWidgetByRule","input[value='Check Out'] a.checkout-link","{{sca_min_quantity}}","tool","renderProductPage","collection_page","variant_id","?sca_add_gift","url","unicart","block","indexOf","cloneNode","POST","sca-offer-archived","BOGOS track: Unicart","product","log","gift_img_size","-5px","initializeForXHR","current_collection","giftsAddedInvalid","offer.cart_message_","160"];return(_0x2147=function(){return $})()}if(!function($,x){let t=_0x2e03,e=$();for(;;)try{let a=-parseInt(t(770))/1*(-parseInt(t(504))/2)+parseInt(t(573))/3*(parseInt(t(320))/4)+-parseInt(t(802))/5*(parseInt(t(518))/6)+parseInt(t(711))/7*(-parseInt(t(365))/8)+parseInt(t(865))/9*(parseInt(t(603))/10)+-parseInt(t(703))/11*(parseInt(t(305))/12)+-parseInt(t(753))/13*(-parseInt(t(402))/14);if(458987===a)break;e.push(e.shift())}catch(i){e.push(e.shift())}}(_0x2147,458987),window[_0x358473(959)]?.[_0x358473(409)]?.[_0x358473(1041)]?.[_0x358473(508)]&&typeof fgGiftIcon===_0x358473(395)&&(window.fgData[_0x358473(409)].gift_icon[_0x358473(508)]=fgGiftIcon),window.fgData?.[_0x358473(409)]?.[_0x358473(1021)]?.[_0x358473(996)]&&"undefined"!=typeof fgWidgetIconsObj){let $=window.fgData[_0x358473(409)][_0x358473(1021)][_0x358473(996)];window[_0x358473(959)][_0x358473(409)][_0x358473(1021)][_0x358473(1029)]=fgWidgetIconsObj[$]??$}!function $(){let x=_0x358473;window[x(930)]={},FGSECOMAPP[x(742)]=null,FGSECOMAPP[x(763)]=Object.values(Shopify?.cartItems??{}),FGSECOMAPP[x(512)]=[],FGSECOMAPP[x(493)]=window[x(959)]?.[x(335)]??{},FGSECOMAPP[x(786)]=window[x(959)]?.[x(409)]??{},FGSECOMAPP.fgIntegration=window[x(959)]?.[x(647)]??{},FGSECOMAPP[x(560)]=FGSECOMAPP[x(786)]?.[x(747)]?.general,FGSECOMAPP[x(919)]=FGSECOMAPP[x(786)]?.gift_icon,FGSECOMAPP[x(1003)]=FGSECOMAPP[x(786)]?.[x(638)],FGSECOMAPP[x(929)]=FGSECOMAPP.fgAppearance?.[x(1021)],FGSECOMAPP.fgCallback=[],FGSECOMAPP[x(624)]=!1,FGSECOMAPP[x(1046)]=[],FGSECOMAPP[x(615)]=0,FGSECOMAPP.checkIsBlockCheckout=!1,FGSECOMAPP[x(751)]={...Shopify?.[x(751)]},FGSECOMAPP[x(861)]=Shopify?.reRenderCartCustom??void 0,FGSECOMAPP[x(960)]=Shopify?.scaCustomLoadingCheckout??void 0,FGSECOMAPP[x(701)]={},FGSECOMAPP[x(611)]={},FGSECOMAPP[x(354)]=!1,FGSECOMAPP[x(587)]={},FGSECOMAPP[x(448)]=!1,FGSECOMAPP.SHOPIFY_CART={},FGSECOMAPP[x(849)]=Shopify?.[x(717)]??x(401),FGSECOMAPP[x(327)]=[],FGSECOMAPP[x(422)]={SHOW_GIFT_SLIDER:x(439),PRODUCT_HAS_GIFTS:x(430),GIFT_UPDATED:x(879),GIFT_ADDED:x(798),CART_AUTO_UPDATED:"fg-cart:auto-updated",START_PROCESS_CART:"fg-cart:start-process",END_PROCESS_CART:x(549),START_VALIDATE_CHECKOUT:x(330),END_VALIDATE_CHECKOUT:x(1010),START_RENDER_APP:x(796),END_RENDER_APP:x(426),FG_OVERRIDE_FETCH:x(635),FG_OVERRIDE_XHR_OPEN:x(644),FG_OVERRIDE_XHR_SEND:x(870),RENDER_TODAY_OFFER:x(498),TODAY_OFFER_CHANGE:x(915),RENDER_CART_MESSAGE:"fg-messages:render"};let t={GIFTS_CART_SECTION_ID:"#sca_fg_cart_section_gifts_slider",GIFTS_CART_SECTION:x(627),GIFTS_POPUP_SECTION_ID:x(1011),GIFTS_POPUP_SECTION:x(525),GIFT_ITEM_SECTION_ID:x(1018),GIFT_ITEM_SECTION:x(659),GIFT_SELECT_SECTION_ID:x(558),GIFT_SELECT_SECTION:x(1012),DISABLE_SLIDER_SECTION_ID:x(499),DISABLE_SLIDER_SECTION:x(433),CART_MSG_SECTION_ID:x(756),CART_MSG_SECTION:x(372),CART_MSG_ITEM_SECTION_ID:"#sca_fg_cart_message_items_section",CART_MSG_ITEM_SECTION:x(781),GIFT_THUMBNAIL_SECTION_ID:x(1037),GIFT_THUMBNAIL_SECTION:'
    {{ 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
    ',GIFT_THUMBNAIL_ITEMS_SECTION_ID:x(523),GIFT_THUMBNAIL_ITEMS_SECTION:x(1035),GIFT_ICON_SECTION_ID:x(332),GIFT_ICON_SECTION:x(789),TODAY_OFFER_SECTION_ID:x(780),TODAY_OFFER_SECTION:x(460),TODAY_OFFER_ITEM_SECTION_ID:x(550),TODAY_OFFER_ITEM_SECTION:x(767),TODAY_OFFER_WIDGET_ID:x(1030),TODAY_OFFER_WIDGET:x(342)},e=()=>{let $=x,t=FGSECOMAPP[$(786)]?.gift_slider,e=t?.[$(692)]?.[$(793)],a=!O(t)&&void 0!==e&&!e;return a?$(649):""},a=()=>{let $=x,e=FGSECOMAPP[$(786)]?.[$(747)],a=e?.disable_slider_checkbox??{};document[$(338)]($(759))?.checked&&localStorage.setItem($(1017),""+Date[$(362)]());let i=document[$(338)](t[$(613)])?.innerHTML??t[$(882)];return a?.enable?i[$(639)](/{{\s*fg_text_disable_slider\s*}}/gm,h(b(a.text??$(1009),$(1008)))):""},{fetch:i}=window;FGSECOMAPP[x(688)]=()=>{let $=x;document[$(338)]($(856))?.[$(563)]("data-template")!==$(529)&&(window[$(728)]=async(...x)=>{let t=$;try{let e=x[0];if(!(e?.[t(517)](t(339))||e?.includes(t(914))||e?.[t(517)](t(982))))return setTimeout(function(){$6()},1e3),await i(...x);{let a=e?.[t(517)](t(339)),r=e?.includes("/cart/change")||e?.includes(t(982));s(x[1]);let c=200,o=null,f=await i(...x).then($=>{let x=t;return(o=$,c=$[x(923)],$[x(424)])?$:$[x(394)]()})[t(732)]($=>{console.error(t(319),$)});if(document[t(699)](new CustomEvent(FGSECOMAPP[t(422)].FG_OVERRIDE_FETCH,{detail:{args:x,response:o}})),a&&x[1].headers?.sca_add_gift&&200!==c){let d=JSON[t(576)](x[1][t(858)])?.id,_=document[t(338)](t(442)+d+'"]');_[t(383)]="Out of stock",_[t(496)][t(507)](t(670))||_[t(496)][t(463)](t(670)),_.disabled=!0,_[t(458)].padding="",_[t(458)].backgroundColor=t(333),document[t(691)](".btn-add-to-cart").forEach($=>{let x=t;parseInt($.getAttribute("data-variant"))===d||$[x(496)][x(507)](x(670))||($[x(1031)]=!1,$[x(458)][x(312)]=FGSECOMAPP[x(786)]?.[x(747)]?.[x(775)]?.[x(399)]??x(903))})}if(200!==c&&(a&&x[1][t(404)]?.sca_add_gift||r&&x[1].headers?.[t(942)]))return n(f,o);if(Shopify?.[t(887)])return $s([e,...x[t(528)](1)])[t(843)](),n(f,o);if(await $s([e,...x[t(528)](1)]),r&&x[1]?.[t(404)]?.[t(942)])return n(f,o);let u=r?FGSECOMAPP[t(374)]??f??{}:f;return await l(x,f,u),n(u,o)}}catch(g){return await i(...x)}})};let r=window[x(974)][x(799)][x(713)],c=window.XMLHttpRequest.prototype[x(765)],o=()=>{let $=x;Shopify?.[$(812)]||(window[$(974)][$(799)].open=function(x,t){let e=$;try{document[e(699)](new CustomEvent(FGSECOMAPP[e(422)][e(1025)],{detail:{fgXHR:this}}))}catch(a){console[e(482)](e(484),a)}finally{r[e(722)](this,arguments)}},window[$(974)][$(799)][$(765)]=function(x){let t=$;try{document.dispatchEvent(new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS.FG_OVERRIDE_XHR_OPEN,{detail:{fgXHR:this}}));let{_url:e}=this;(e?.[t(517)](t(339))||e?.includes(t(914))||e?.[t(517)](t(982)))&&this.addEventListener(t(557),function(){let $=t;this[$(777)]===XMLHttpRequest[$(385)]&&200===this[$(923)]&&$s([e,{}])[$(843)]()})}catch(a){console.warn(t(908),a)}finally{c[t(564)](this,x)}})};FGSECOMAPP[x(833)]=()=>{let $=x;try{if(Shopify?.[$(503)]||typeof Shopify?.[$(599)]!==$(872))return;Shopify[$(599)]=async function(x){let t=$;if(!FGSECOMAPP[t(624)]){FGSECOMAPP.secomappGetCartRunning=!0,await $s([t(679),{}]);let e=await $r(t(715));typeof x===t(872)&&(0>FGSECOMAPP[t(973)][t(824)](x)&&FGSECOMAPP.fgCallback[t(708)](x),x(e)),FGSECOMAPP[t(624)]=!1}FGSECOMAPP[t(664)]()},typeof ShopifyAPI!==$(485)&&typeof ShopifyAPI[$(599)]!==$(485)&&(ShopifyAPI[$(599)]=Shopify?.[$(599)]),void 0!==Shopify?.[$(412)]&&void 0!==Shopify?.[$(412)][$(599)]&&(Shopify[$(412)][$(599)]=Shopify?.[$(599)])}catch(t){console[$(482)]($(675),t)}};let s=$=>{let t=x;try{let e=$?.body;e instanceof FormData?FGSECOMAPP[t(587)]={sections:e.get("sections"),sections_url:e[t(840)](t(467))}:typeof e===t(395)&&(e=JSON[t(576)](e),FGSECOMAPP[t(587)]={sections:e?.sections,sections_url:e?.[t(467)]})}catch(a){FGSECOMAPP[t(587)]={}}},n=($,t)=>{let e=x;try{let a=Shopify?.[e(520)]??[e(821),e(606),e(424),"ok"],i=new Response(JSON[e(904)]($),t);for(let r of a)Object[e(668)](i,r,{value:t[r]});return i}catch(c){return new Response(JSON[e(904)]($))}},f=async()=>{let $=x;if(Shopify[$(933)])return;let t=[];if(!O(FGSECOMAPP.arrOfferAdded))for(let e of(t[$(708)]($(620)),FGSECOMAPP.arrOfferAdded)){let a=FGSECOMAPP[$(512)].find($=>$.id===e.belongs_to_offer)?.[$(744)]?.[$(726)];O(a)||t[$(708)](a)}if(t[$(406)](),t.toString()!==FGSECOMAPP?.[$(374)]?.attributes?.freegift_attributes)try{await i((Shopify?.[$(609)]??"/cart/update")+"?sca_attr_cart",{method:$(826),headers:{"X-Requested-With":$(974),"Content-Type":"application/json;"},body:JSON[$(904)]({attributes:{freegift_attributes:t.toString()}})})}catch(r){console.warn($(584),r)}},l=async($,t,e)=>{let a=x;try{if($[1]?.[a(404)]?.[a(942)])return;let r={},c=Object[a(801)](t[a(452)]??{})?.[a(681)]($=>O(FGSECOMAPP.sections_cart[$]))??[];if(c&&c[a(745)]&&FGSECOMAPP[a(448)]&&(r=await i(a(610)+c.join(","))[a(843)]($=>$[a(394)]())),FGSECOMAPP[a(448)]=!1,r={...FGSECOMAPP[a(587)],...r},O(r))return;t[a(452)]={...t[a(452)],...r},O(e)||(e[a(452)]={...t[a(452)]})}catch(o){}};FGSECOMAPP.addGiftToCart=async($,t,e)=>{let a=x;try{let i=FGSECOMAPP[a(1046)].find(x=>e===x[a(890)]?.[a(544)]()&&$===x[a(752)]);i?i[a(646)]+=t:FGSECOMAPP[a(1046)].unshift({variantId:$,belongs_to_offer:e,quantity:t}),localStorage.setItem("sca_offers_added",FGSECOMAPP[a(340)][a(807)](JSON[a(904)](FGSECOMAPP[a(1046)]))),g("start");let r=await fetch((Shopify?.[a(376)]??a(907))+a(820),{method:a(826),headers:{Accept:"application/json","Content-Type":a(579),sca_add_gift:"1"},body:JSON.stringify({quantity:t,id:$})});return await r[a(394)]()}catch(c){return!1}};let d=async($,t,e)=>{let a=x;e=e?.toString();let i=document[a(691)](a(860));i[a(729)](x=>{let t=a;x.disabled=!0;let e=x[t(563)](t(680))-0;e===$&&(x[t(458)][t(483)]="6px 0",x[t(358)]=t(619)),x[t(458)][t(312)]=t(333)});let r=await FGSECOMAPP[a(532)]($,t,e);r&&(i[a(729)](x=>{let t=a;x.disabled=!0;let e=x[t(563)]("data-variant")-0;e===$&&(x[t(458)][t(483)]=t(1033),x[t(358)]='\n \n \n \n '),x[t(458)][t(312)]=""}),$n()),document.dispatchEvent(new CustomEvent(FGSECOMAPP[a(422)].GIFT_ADDED,{detail:{gift:r}}))},_=$=>{let t=x,e=t(371);return!O($)&&(typeof $===t(718)&&($.handle?.[t(517)](e)||$.tags?.[t(517)](t(363))||FGSECOMAPP[t(327)]?.[t(517)]($.variant_id))||typeof $===t(395)&&$[t(517)](e))},u=$=>{let{selling_plan_allocation:t}=$;return!O(t)&&!O(t?.[x(792)])},g=$=>{let t=x;try{if(!Shopify?.[t(684)])return;let{checkout_btn_query:e}=FGSECOMAPP[t(784)],a=[...e?.[t(816)],...e?.integration,...e?.[t(901)]][t(681)](Boolean)[t(392)](",");document[t(691)](a).forEach(x=>{FGSECOMAPP[t(621)]($,x).then()})}catch(i){}},p=async($,t)=>{let e=x;try{if(O($)&&O(t))return;let a={};if(FGSECOMAPP[e(763)]?.filter($=>_($))?.forEach($=>{let x=e;a[$[x(819)]]=$.quantity}),($=$?.[e(681)]($=>!O($[e(819)])))?.[e(729)]($=>{let x=e;a[$[x(819)]]=(a[$[x(819)]]??0)+($.quantity??1)}),Object.keys(a)?.[e(729)]($=>{a[$]=a[$]>=0?a[$]:0}),O(Object[e(801)](a)))return;$?.[e(729)]($=>{let x=e,t=FGSECOMAPP.arrOfferAdded.find(t=>$[x(419)]?.[x(544)]()===t[x(890)]?.[x(544)]()&&$[x(819)]===t[x(752)]);t?t[x(646)]+=$[x(646)]:FGSECOMAPP[x(1046)][x(1044)]({variantId:$[x(819)],belongs_to_offer:$.offer_id?.[x(544)](),quantity:$.quantity})}),localStorage.setItem("sca_offers_added",FGSECOMAPP[e(340)][e(807)](JSON[e(904)](FGSECOMAPP[e(1046)]))),FGSECOMAPP.isUpdateCart=!0,g(e(425)),await fetch((Shopify?.sca_update_url??e(982))+e(306),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",sca_process_gifts:"1"},body:JSON[e(904)]({updates:a,...FGSECOMAPP[e(587)]})})[e(843)](x=>{let a=e;return x.ok&&$[a(745)]&&!t.length&&$n(),x[a(394)]()}).then($=>{let x=e;FGSECOMAPP[x(587)]=$[x(452)]}),document[e(699)](new CustomEvent(FGSECOMAPP[e(422)][e(1036)],{detail:{arrGiftsAdd:$,arrGiftsRemove:t}})),"fg-checkout"===document[e(338)](e(856))?.getAttribute(e(543))&&location.reload()}catch(i){g("end"),console[e(980)](e(585),i)}},b=($,t)=>{try{let e=FGSECOMAPP[x(654)]?.transcy,a=Shopify?.sca_transcy_locale??Shopify?.locale;return e.enable?e?.[a]?.[t]??$:$}catch(i){return $}},h=($,t=!1)=>(""+$).replaceAll(/\$/g,t?"$$$$":x(368)),m=()=>{let $=x,i=document[$(321)]("freegifts-main-page-container");if(i){let r=document[$(338)](t[$(746)])?.innerHTML??t[$(694)];i[$(358)]=r[$(639)](/{{\s*fg_slider_title\s*}}/gm,h(b(FGSECOMAPP[$(560)][$(898)]??"Select your free gift!",$(926))))[$(639)](/{{\s*sca_fg_disable_slider_section\s*}}/gm,h(e()))}else{let c=localStorage.getItem($(1017))-0,o=FGSECOMAPP[$(786)]?.gift_slider?.disable_slider_checkbox??{},s=(o?.[$(925)]??0)*6e4,n=!isNaN(c)&&c+s>Date[$(362)]();if(n||(localStorage[$(317)]($(1017)),!(i=document[$(321)]($(347)))))return;let f=document[$(338)](t[$(687)])?.innerHTML??t[$(326)];i[$(358)]=f.replaceAll(/{{\s*fg_slider_title\s*}}/gm,h(b(FGSECOMAPP[$(560)][$(898)]??$(791),"customize.gift_slider_title")))[$(639)](/{{\s*sca_fg_disable_slider_section\s*}}/gm,h(a()+" "+e())),i.classList[$(463)]("sca-is-visible-fg")}},y=($,e)=>{let a=x,i=document[a(338)](t[a(396)])?.innerHTML??t[a(838)];return $.map($=>i[a(639)](/{{\s*fg_variant_img\s*}}/gm,h(K($.thumbnail??e),!0))[a(639)](/{{\s*fg_variant_id\s*}}/gm,h($[a(488)]))[a(639)](/{{\s*fg_original_variant_id\s*}}/gm,h($[a(910)])).replaceAll(/{{\s*fg_variant_price\s*}}/gm,h(v($)))[a(639)](/{{\s*fg_original_variant_price\s*}}/gm,h(S($)))[a(639)](/{{\s*fg_variant_title\s*}}/gm,h($.variant_title)))[a(392)](" \n")},v=$=>{let t=x;return FGSECOMAPP.formatter[t(431)]($?.[t(794)])},S=$=>{let t=x;return FGSECOMAPP[t(665)][t(431)]($?.[t(569)]??0)},T=($,t)=>O(FGSECOMAPP.productsByID[$])?t??"#":FGSECOMAPP[x(611)][$].handle,E=($,t)=>{let e=x;return FGSECOMAPP[e(560)][e(384)]?O(FGSECOMAPP[e(611)][$])?t.replace("\xbb","").replace("\uD83C\uDF81","")[e(931)](/\(\d*% off\)/,"")[e(931)]("(Discount)","")??"":FGSECOMAPP[e(611)][$].title:""},O=$=>{let t=x;if(0===$)return!0;if(typeof $==t(805)||typeof $==t(471))return!1;if(null==$)return!0;if(typeof $[t(745)]!=t(485))return 0===$[t(745)];let e=0;for(let a in $)$[t(963)](a)&&e++;return 0===e},w=$=>{let t=x;try{let e={...FGSECOMAPP[t(751)]},a=e[$];if(a=a?a[t(698)]():null,!O(a)&&a.length>0)try{return document[t(338)](a),a}catch(i){}return""}catch(r){return""}},C=()=>{let $=x;try{FGSECOMAPP.formatter=new Intl[$(1026)](Shopify?.[$(403)]??Shopify?.[$(398)],{style:$(678),currency:Shopify?.[$(678)]?.[$(474)]??"USD"})}catch(t){FGSECOMAPP[$(665)]=new Intl.NumberFormat($(337),{style:$(678),currency:Shopify?.[$(678)]?.[$(474)]??$(357)})}};FGSECOMAPP[x(888)]=()=>{let $=x;try{FGSECOMAPP[$(340)]=function(){let x=$;var t=String[x(948)],e=x(476),a=x(928),i={},r={compressToBase64:function($){let t=x;if(null==$)return"";var a=r[t(851)]($,6,function($){return e[t(614)]($)});switch(a[t(745)]%4){default:case 0:return a;case 1:return a+"===";case 2:return a+"==";case 3:return a+"="}},decompressFromBase64:function($){let t=x;return null==$?"":""==$?null:r[t(1006)]($.length,32,function(a){return function $(t,e){let a=x;if(!i[t]){i[t]={};for(var r=0;rl.charCodeAt(0)){for(i=0;i>=1}else{for(i=0,r=1;i>=1}d--,0==d&&(d=Math[a(456)](2,u),u++),delete s[l]}else for(i=0,r=o[l];i>=1;d--,0==d&&(d=Math[a(456)](2,u),u++),o[f]=_++,l=String(n)}if(""!==l){if(Object.prototype[a(963)].call(s,l)){if(256>l.charCodeAt(0)){for(i=0;i>=1}else{for(i=0,r=1;i>=1}d--,0==d&&(d=Math.pow(2,u),u++),delete s[l]}else for(i=0,r=o[l];i>=1;d--,0==d&&(d=Math.pow(2,u),u++)}for(i=0,r=2;i>=1;for(;;){if(p<<=1,b==t-1){g[a(708)](e(p));break}b++}return g[a(392)]("")},decompress:function($){return null==$?"":""==$?null:r._decompress($[x(745)],32768,function(x){return $.charCodeAt(x)})},_decompress:function($,e,a){let i=x;var r,c,o,s,n,f,l,d,_=[],u=4,g=4,p=3,b="",h=[],m={val:a(0),position:e,index:1};for(c=0;c<3;c+=1)_[c]=c;for(s=0,f=Math[i(456)](2,2),l=1;l!=f;)n=m[i(367)]&m[i(700)],m[i(700)]>>=1,0==m.position&&(m[i(700)]=e,m[i(367)]=a(m[i(761)]++)),s|=(n>0?1:0)*l,l<<=1;switch(r=s){case 0:for(s=0,f=Math[i(456)](2,8),l=1;l!=f;)n=m[i(367)]&m[i(700)],m.position>>=1,0==m[i(700)]&&(m[i(700)]=e,m[i(367)]=a(m[i(761)]++)),s|=(n>0?1:0)*l,l<<=1;d=t(s);break;case 1:for(s=0,f=Math[i(456)](2,16),l=1;l!=f;)n=m[i(367)]&m[i(700)],m[i(700)]>>=1,0==m[i(700)]&&(m.position=e,m[i(367)]=a(m[i(761)]++)),s|=(n>0?1:0)*l,l<<=1;d=t(s);break;case 2:return""}for(_[3]=d,o=d,h[i(708)](d);;){if(m[i(761)]>$)return"";for(s=0,f=Math[i(456)](2,p),l=1;l!=f;)n=m[i(367)]&m[i(700)],m[i(700)]>>=1,0==m[i(700)]&&(m[i(700)]=e,m[i(367)]=a(m[i(761)]++)),s|=(n>0?1:0)*l,l<<=1;switch(d=s){case 0:for(s=0,f=Math[i(456)](2,8),l=1;l!=f;)n=m.val&m.position,m[i(700)]>>=1,0==m[i(700)]&&(m.position=e,m[i(367)]=a(m[i(761)]++)),s|=(n>0?1:0)*l,l<<=1;_[g++]=t(s),d=g-1,u--;break;case 1:for(s=0,f=Math[i(456)](2,16),l=1;l!=f;)n=m[i(367)]&m.position,m.position>>=1,0==m.position&&(m[i(700)]=e,m[i(367)]=a(m[i(761)]++)),s|=(n>0?1:0)*l,l<<=1;_[g++]=t(s),d=g-1,u--;break;case 2:return h[i(392)]("")}if(0==u&&(u=Math[i(456)](2,p),p++),_[d])b=_[d];else{if(d!==g)return null;b=o+o[i(614)](0)}h[i(708)](b),_[g++]=o+b.charAt(0),u--,o=b,0==u&&(u=Math[i(456)](2,p),p++)}}};return r}()}catch(t){FGSECOMAPP[$(340)]=LZString}};let I=$=>{let t=x;$=$??0;let e=Shopify?.[t(678)]?.rate??1;return parseFloat(1===parseFloat(e)?$:($*e)?.[t(876)](Shopify?.[t(1027)]??2))},k=$=>{let t=x;try{return $[FGSECOMAPP[t(849)]]??$?.[t(473)]??$?.[t(794)]}catch(e){return $?.final_price??$?.price}},A=$=>{let t=x;return $.filter($=>void 0===$[t(650)]||!0===$[t(650)])[t(379)](($,x)=>$+x[t(646)]*k(x),0)/100},D=$=>{let t=x;return $[t(681)]($=>void 0===$[t(650)]||$[t(650)])[t(379)](($,x)=>$+x.quantity,0)},R=($,t,e)=>{let a=x,i=t[a(391)];return e?.is_only===!0?$=$.filter($=>u($)):e?.[a(600)]===!1&&($=$[a(681)]($=>!u($))),O(i)?$:$[a(681)]($=>{let x=a,t=i[0]?.filter_option??x(987),e=i[x(689)](t=>{let e=x;switch(t[e(606)]){case e(677):return Object[e(855)](t[e(1045)]).map($=>$[e(531)]??$[e(693)])[e(410)]()[e(689)]($=>$.id)[e(517)]($.variant_id);case"product_types":return Object[e(855)](t[e(1045)])[e(517)]($[e(773)]);case"product_vendors":return Object.values(t[e(1045)])[e(517)]($[e(797)]);case e(671):let a=Object[e(801)](t[e(1045)]),i=$[e(986)]?.[e(689)]($=>$.id+"")?.[e(681)]($=>a[e(517)]($));return!O(i);default:return!1}});return t===x(987)?!e[x(517)](!1):e[x(517)](!1)})},G=($,t)=>{let e=x;return $?.[e(689)]($=>{let x=e;if(void 0!==$[x(650)]){let a=FGSECOMAPP[x(1046)]?.[x(681)](t=>t.variantId===$[x(819)]),i=a?.[x(379)](($,t)=>$+t[x(646)],0);if(i===$[x(646)]){let r=a?.filter(e=>{let a=x;if(e[a(890)]?.toString()===t[a(544)]())return!1;let i=FGSECOMAPP[a(512)]?.find($=>$.id?.toString()===e.belongs_to_offer?.[a(544)]()),r=i[a(1022)]??{},c=k($);return r.cal_gift_for_other_rules&&c>0})?.reduce(($,t)=>$+t[x(646)],0);return{...$,cal_gift_for_other_rules:r>0,quantity:r??0}}return{...$,cal_gift_for_other_rules:!1,quantity:0}}return{...$}})??[]},F=($,t,e)=>{let a=x,i=FGSECOMAPP.fgSettings?.[a(636)],r=FGSECOMAPP[a(493)]?.[a(548)],c=$,o=e.gift_products?.[a(689)]($=>$.original_product_shopify_id);if(r){let s=o[a(681)]($=>c[a(720)](x=>x[a(586)]!==$));c=s[a(745)]?c.filter($=>!s?.includes($[a(586)])):[]}let n=c;if(i){c=$[a(406)](($,x)=>k($)-k(x));let f=e[a(911)][a(689)]($=>$?.[a(492)]??0);c=c[a(681)]($=>f[a(443)](x=>x<=k($)/100)),n=JSON.parse(JSON[a(904)](c));let l=e[a(877)][a(406)](($,x)=>x?.[a(492)]-$?.compare_gift_price)[a(689)]($=>({...$})),d=l[a(379)](($,x)=>$+x.quantity,0),u=N(c,t,e),g=Math[a(874)](u-d,0),p=t[a(604)]?e[a(1022)][a(355)]:1;if(n[a(681)]($=>$[a(646)]>0)[a(729)]($=>{let x=a;$.quantity*=p;let t=k($)/100;l[x(681)]($=>$[x(646)]>0&&$?.[x(492)]<=t).forEach(t=>{let e=x;if(!$[e(646)])return 0;let a=$[e(646)]-t[e(646)];t.quantity-=a>=0?t[e(646)]:$[e(646)],$[e(646)]=Math[e(874)](a,0)})}),e[a(835)]=l[a(681)]($=>$[a(646)]>0),!t[a(604)]&&g>0){let[b]=n[a(528)](-1);O(b)||(b[a(646)]+=g)}n=n[a(681)]($=>$[a(646)]>0)}c=c[a(681)]($=>$[a(646)]>0);let h=FGSECOMAPP[a(763)].map($=>$[a(586)]),m=[];return FGSECOMAPP[a(493)]?.[a(946)]&&(m=FGSECOMAPP.cartItems[a(681)]($=>_($)).map($=>$[a(819)])),e[a(749)]=JSON[a(576)](JSON[a(904)](e[a(967)]))?.[a(681)]($=>{let x=a;return $.variants=$[x(531)][x(681)]($=>!m[x(517)]($[x(488)])),!(r&&h?.includes($[x(522)]))&&(i&&($.variants=$[x(531)][x(681)]($=>{let t=x;return n[t(443)](x=>$[t(492)]<=k(x)/100)})),!O($.variants))}),c},N=($,t,e)=>{let a=x,i=0,r=0;return t[a(710)]===a(438)?(r=A($),e[a(748)]=Math[a(874)](t[a(389)]-r,0)):t[a(710)]===a(1043)&&(r=D($),e[a(811)]=Math[a(874)](t[a(389)]-r,0)),r>=t[a(389)]&&(null===t.max_amount||r<=t[a(322)])&&(i=e[a(1022)].number_of_gift_can_receive*(t[a(604)]?Math.floor(r/t.min_amount):1)),i},L=($,t,e)=>{let a=x,i=R(t,$,e[a(744)]?.[a(465)]);return i=G(i,$[a(419)]),i=F(i,$,e),N(i,$,e)},P=($,t)=>{let e=x,a={},i=[],r=0;return t.offer_conditions[e(689)](x=>{let a=L(x,$,t);0!==a&&(r=a),i[e(708)](a>0)}),a[e(975)]=r,a[e(524)]=i,a},B=($,t)=>{let e=x,a=!1;return 1===$.length?a=$[0]:2===$[e(745)]&&(t===e(920)&&(a=$[0]&&$[1]),"or"===t&&(a=$[0]||$[1])),a},q=($,t)=>{let e=x,a=$?.map($=>$[e(819)]);FGSECOMAPP[e(1046)]=FGSECOMAPP.arrOfferAdded[e(681)]($=>a?.includes($[e(752)]));let i=t[e(911)][e(689)]($=>$[e(488)]),r={};t[e(911)].filter($=>r[$[e(488)]]={fg_original_compare_at_price:$[e(971)],fg_original_price:$[e(381)],compare_gift_price:$[e(492)]});let c=FGSECOMAPP[e(1046)][e(681)]($=>$[e(890)]?.[e(544)]()===t.id?.[e(544)]())?.[e(689)]($=>$[e(752)]),o=$[e(681)]($=>{let x=e;return _($)&&($[x(650)]=!1),i[x(517)]($.variant_id)&&c[x(517)]($.variant_id)}),s=o[e(689)]($=>{let x=e,a=t[x(1022)];$[x(650)]=a.cal_gift_for_other_rules,$.belongs_to_offer=t.id?.[x(544)]();let i=FGSECOMAPP[x(1046)]?.[x(681)](e=>e[x(890)]?.[x(544)]()!==t.id?.[x(544)]()&&$[x(819)]===e[x(752)])?.[x(379)](($,t)=>$+t[x(646)],0);return{...$,quantity:$.quantity-i,...r[$[x(819)]]}});return s[e(681)]($=>{let x=e;return $[x(890)]?.toString()===t.id?.[x(544)]()})},M=$=>{let t=x,e=$[t(877)].filter(x=>x[t(890)]?.[t(544)]()!==$.id?.[t(544)]())[t(689)]($=>$.product_id);return Object[t(855)]($[t(749)]).filter($=>!e.includes($[t(970)]))},H=($,t)=>{let e=x,a=q($,t);t[e(877)]=a;let i=P($,t),r=B(i[e(524)],t[e(663)]);if(r){let c=a.filter($=>$[e(890)]?.toString()===t.id?.[e(544)]())[e(379)](($,x)=>$+x.quantity,0);i[e(975)]=i.max_gifts_can_get-c,t[e(877)]=a,t.giftsAvailable=i[e(975)]}else t[e(877)]=a,t[e(754)]=0;return!O(FGSECOMAPP[e(742)])&&t[e(574)]>FGSECOMAPP[e(742)]&&(r=!1),t.stop_lower_priority&&r?FGSECOMAPP[e(742)]=t[e(574)]:!t[e(428)]||r||O(a)||t.priority!==FGSECOMAPP[e(742)]||(FGSECOMAPP[e(742)]=null),t[e(994)]=r,t},U=$=>{let t=x,e=$+"=",a=document[t(316)][t(952)](";");for(let i=0;i{let e=x,a=!0,i=!0,r=!0,c=!0;if(!O($[e(744)]?.[e(726)])){let o=U(e(593));a=o&&JSON[e(576)](o)[e(517)]($[e(744)][e(726)])}if(!O($[e(744)]?.[e(740)])){let{customer_tags:s}=$[e(744)],n=s?.[e(400)]?.[e(443)]($=>t[e(466)].tags?.[e(517)]($));i=s?.[e(598)]===e(987)?n:!n}if(!O($[e(744)]?.customer_locations)){let{customer_locations:f}=$[e(744)],l=f?.[e(592)]?.[e(517)](FGSECOMAPP[e(601)]);c=f?.[e(875)]===e(987)?l:!l}if(!O($[e(744)]?.[e(1038)])){let d=!0,_=$[e(744)][e(1038)],u=t[e(466)][e(477)]??[];if(_[e(408)]){let g=Date[e(576)](_[e(408)])/1e3;u=u[e(681)]($=>$[e(596)]>=g&&["paid",e(519)].includes($[e(953)]))}if(!O(_?.total_spend_on_order_history)&&(0!==_[e(556)][e(389)]||0!==_[e(556)][e(322)])){let p=_[e(556)].min_amount,b=_[e(556)].max_amount,h=u[e(379)](($,x)=>$+x.total_price,0)/100;d&=(h>=p||!p)&&(h<=b||!b)}if(!O(_?.[e(461)])&&(0!==_[e(461)][e(389)]||0!==_[e(461)][e(322)])){let m=(t[e(466)][e(897)]??0)/100,y=_[e(461)][e(389)],v=_.total_spent_on_last_order.max_amount;d&=u[e(745)]>0&&(m>=y||!y)&&(m<=v||!v)}if(!O(_?.[e(968)])){let S=!(0!==_[e(968)][e(389)]||0!==_[e(968)][e(322)]),T=u[e(745)],E=_.number_of_order[e(389)],w=_.number_of_order[e(322)];d&=S?O(u):(T>=E||!E)&&(T<=w||!w)}if(_?.have_not_got_gift_from_this_offer){let C=t.customer.freegifts??[],I=$.gift_items?.[e(443)]($=>C[e(517)]($[e(488)]))||$.gift_items?.[e(443)]($=>C.includes($[e(910)]+"_"+($[e(381)]-$[e(794)])*100)||C.includes($.original_variant_shopify_id+"_"+($[e(971)]-$[e(794)])*100));d&=!I}r=d}let k=!$.sub_conditions?.work_with_only_mobile_app??!0;return a&&i&&r&&c&&k},z=($,t,e)=>{let a=x,i=[],r=[],c=[],o=[];for(let s of t){let n=H($,s);if(!n.isReachConditions){if(!n[a(877)][a(745)])continue;n[a(877)][a(729)]($=>{let x=a;r[x(708)]({variant_id:$[x(819)],quantity:$[x(646)],offer_id:s.id})});continue}if(n[a(754)]<0){n[a(877)][a(729)]($=>{let x=a;r.push({variant_id:$[x(819)],quantity:$[x(646)],offer_id:s.id})});continue}if(0===n[a(754)]){n[a(877)].forEach($=>{let x=a,t=FGSECOMAPP.arrOfferAdded.find(t=>s.id?.[x(544)]()===t[x(890)]?.[x(544)]()&&$[x(819)]===t.variantId);t&&(t.quantity=$.quantity)});continue}(s[a(744)]&&Y(s,SECOMAPP)||O(s[a(744)]))&&i.push(s)}if($?.[a(681)]($=>_($)).forEach($=>{let x=a,t=0,e=FGSECOMAPP[x(1046)]?.filter(x=>$.variant_id===x.variantId)?.[x(379)](($,x)=>$+x.quantity,0)??0;e<$[x(646)]&&(t=$[x(646)]-e),O($.belongs_to_offer)&&(t=$.quantity),t>0&&r[x(708)]({variant_id:$[x(819)],quantity:t,offer_id:$[x(890)]?.[x(544)]()})}),e||O(r)){let f=i.map($=>{let x=a;return{id:$.id,offerName:$[x(462)],offerPriority:$[x(574)],stopLowerPriority:$[x(428)],gifts:M($),giftsAvailable:$[x(754)],giftsAdded:$[x(877)],isReachConditions:$[x(994)],offer:$}});if(!O(f)){let l={};for(let d of f){let u=X(FGSECOMAPP[a(493)],d);u?.length>0?c=c[a(375)]([...u]):d.gifts[a(689)]($=>{let x=a;l[$.product_shopify_id]={...$,belongs_to_offer:d.id?.[x(544)]()}})}o=Object[a(855)](l)??[]}}return{arrGiftsAdd:c,arrGiftsRemove:r,arrGiftsData:o}},j=($,t)=>{let e=x,a=new Set;return $?.[e(729)]($=>a[e(463)]($.offer_id)),a[e(729)]($=>{let x=e,t=FGSECOMAPP[x(512)]?.[x(427)](t=>t.id?.[x(544)]()===$?.[x(544)]());if(O(t)||!t[x(994)]){FGSECOMAPP[x(1046)]=FGSECOMAPP[x(1046)]?.[x(681)](t=>t.belongs_to_offer?.toString()!==$?.[x(544)]());return}if(t.giftsAvailable>=0)return;let a=[],i=FGSECOMAPP[x(1046)]?.[x(681)](t=>t[x(890)]?.[x(544)]()===$?.[x(544)]())??[];if(t?.[x(1022)]?.[x(810)])a=a[x(375)]([...i]),t[x(754)]=0;else for(let r of(FGSECOMAPP[x(493)]?.[x(636)]&&!O(t[x(835)])&&t[x(835)][x(729)]($=>{let e=x,i=FGSECOMAPP[e(1046)].find(x=>x.belongs_to_offer?.[e(544)]()===t.id?.toString()&&$[e(819)]===x[e(752)]);if(O(i))return;let r=i[e(646)]-$[e(646)];t[e(754)]+=$[e(646)],r>0?i[e(646)]=r:(i.quantity=0,a.push({...i}))}),i)){if(t[x(754)]>=0)break;t[x(754)]+=r[x(646)],t[x(754)]<=0?a.push({...r}):(r[x(646)]=t[x(754)],t.giftsAvailable=0)}a?.[x(729)]($=>{let t=x;FGSECOMAPP.arrOfferAdded=FGSECOMAPP.arrOfferAdded?.[t(681)](x=>$[t(752)]!==x[t(752)]||$.belongs_to_offer?.[t(544)]()!==x[t(890)]?.[t(544)]())})}),t?.[e(681)]($=>{let x=e;return _($)&&($[x(646)]=FGSECOMAPP[x(1046)]?.filter(t=>$.variant_id===t[x(752)])?.reduce(($,t)=>$+t[x(646)],0)??0),$[x(646)]>0})??[]},V=async($,t)=>{let e=x,{arrGiftsAdd:a,arrGiftsRemove:i,arrGiftsData:r}=z($,t,!1),c=j(i,$);if(!O(i)){let o=z(c,t,!0);j(o?.[e(511)],$),a=o?.[e(1042)],i=i?.concat(o?.[e(511)])??[],r=o?.[e(844)]}return await p(a,i),f().then(),r},X=($,t)=>{let e=x;try{let a=[],i=t[e(444)],r=i.reduce(($,x)=>$+x[e(531)][e(745)],0);if(!$[e(957)]||r<=0)return[];let c=t.offer?.[e(1022)]?.[e(810)],o=t[e(450)]?.[e(989)]??{};if(o[e(923)]&&o[e(606)]===e(693)){let s=i[0][e(531)][0];0===s[e(794)]&&(a[e(708)]({variant_id:s[e(488)],quantity:t[e(754)],offer_id:t.id}),console.log(e(536)+s[e(488)]+"} {"+s[e(999)]+"} {"+t.id+"}"))}else if(c){let n=(t?.[e(754)]??0)/r;i.forEach($=>$[e(531)]?.forEach($=>a.push({variant_id:$[e(488)],quantity:n,offer_id:t.id}))),console.log(e(423)+t.id+"}")}else if(1===r){let f=i[0][e(531)][0];0===f[e(794)]&&(a[e(708)]({variant_id:f[e(488)],quantity:t[e(754)],offer_id:t.id}),console.log(e(981)+f[e(488)]+"} {"+f[e(999)]+"} {"+t.id+"}"))}return a}catch(l){return console[e(980)](e(630),l),[]}},W=$=>$===x(494),K=$=>{let t=x;try{let e=Shopify?.customGiftImgSize??FGSECOMAPP[t(786)]?.gift_slider?.[t(692)]?.[t(831)]??t(878),a=new URL($),i=new URLSearchParams(e);return i[t(729)](($,x)=>a[t(1007)][t(530)](x,$)),a[t(544)]()}catch(r){return $}},Q=$=>{let e=x,a=$;if("by_variants"===FGSECOMAPP[e(560)][e(331)])for(let i of(a=[],$)){let r=i[e(531)];r&&r[e(745)]&&r[e(729)]($=>a.push({...i,thumbnail:$[e(470)],variants:[$]}))}let c=document[e(321)](e(595));c&&(c[e(358)]=a[e(689)]($=>{let x=e,a=$?.[x(531)][0]??{},i=W(a[x(999)]),r=$[x(531)]?.length,c=h(E($.original_product_shopify_id,$[x(441)])),o=FGSECOMAPP.fgAppearanceGiftSlider?.[x(331)]==="by_variants",s=document[x(338)](t.GIFT_ITEM_SECTION_ID)?.[x(358)]??t[x(313)];return s[x(639)](/{{\s*fg_product_handle\s*}}/gm,h(T($[x(522)],$[x(386)]),!0))[x(639)](/{{\s*fg_product_img\s*}}/gm,h(K($[x(470)]),!0))[x(639)](/{{\s*fg_product_img_alt\s*}}/gm,c)[x(639)](/{{\s*fg_product_title\s*}}/gm,c)[x(639)](/{{\s*fg_gifts_check_show_by_variants\s*}}/gm,h(o&&FGSECOMAPP[x(560)][x(390)]?"":"sca-d-none")).replaceAll(/{{\s*fg_gifts_check_show_by_products\s*}}/gm,o?x(1034):"")[x(639)](/{{\s*fg_check_selected_variant\s*}}/gm,1===r?"active "+(i?"sca-d-none":""):"")[x(639)](/{{\s*fg_variant_title\s*}}/gm,h(1!==r?b(FGSECOMAPP[x(560)].select_gift_btn??x(653),x(723)):a.variant_title))[x(639)](/{{\s*fg_original_price\s*}}/gm,h(S(a)))[x(639)](/{{\s*fg_gift_price\s*}}/gm,h(v(a)))[x(639)](/{{\s*sca_fg_variant_select_section\s*}}/gm,h(y($[x(531)],$[x(470)])))[x(639)](/{{\s*fg_product_belongs_to_offer\s*}}/gm,$[x(890)]).replaceAll(/{{\s*fg_variant_id\s*}}/gm,h(1===r?a.variant_shopify_id:""))[x(639)](/{{\s*fg_add_to_cart\s*}}/gm,h(b(FGSECOMAPP[x(560)]?.[x(913)]??x(582),"customize.add_to_cart_button")))})[e(392)](" \n"),new Glider(document[e(338)](e(352)),{slidesToShow:1,slidesToScroll:1,draggable:!1,dots:FGSECOMAPP[e(560)].show_pagination?e(857):null,arrows:{prev:e(656),next:e(447)},responsive:[{breakpoint:1024,settings:{slidesToShow:FGSECOMAPP[e(560)][e(979)]??4,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:2,slidesToScroll:1}}],..."object"==typeof Shopify[e(884)]?Shopify[e(884)]:{}}),document[e(699)](new CustomEvent(FGSECOMAPP[e(422)][e(1015)],{detail:{addGiftToCartFunc:FGSECOMAPP[e(532)],gifts:$2(a)}})))},Z=async()=>{let $=x;try{let t=window[$(959)]?.offers??[];for(let e in await $4(),FGSECOMAPP[$(611)])O(FGSECOMAPP[$(611)][e]?.id)&&delete FGSECOMAPP.productsByID[e];let a=[],i=(x,t,e,a)=>{let i=$,{type:r,value:c,giftItems:o,giftProducts:s}=t;x[i(309)][0][i(391)]=[{type:r,value:{[e]:{...c[e],...!O(a)&&{variants:[{...a}]}}}}],x.gift_items=o.filter($=>$[i(522)]?.[i(544)]()===e?.toString()&&(O(a)||a?.id===$[i(910)])),x[i(967)]=s[i(681)]($=>$[i(522)]?.[i(544)]()===e?.[i(544)]()),x[i(967)][0].variants=[...x[i(911)]];let n=x[i(1022)][i(355)];return x[i(1022)][i(810)]&&(n=x[i(911)].length),JSON[i(576)](JSON[i(904)]({...x,gift_settings:{...x[i(1022)],number_of_gift_can_receive:n},id:x.id+"_"+c[e][i(909)]+"_"+(a?.id??""),offer_root:""+x.id}))};t[$(729)](x=>{let t=$;FGSECOMAPP[t(327)]=FGSECOMAPP.gifts_id[t(375)](x[t(911)].map($=>$[t(488)]));try{let e=JSON[t(576)](JSON.stringify(x)),r=x.gift_should_the_same??{};if(!r?.[t(923)])return;let c=x.offer_conditions[0][t(391)],o={type:c[0][t(606)],value:c[0][t(1045)],giftItems:[...x[t(911)]],giftProducts:[...x[t(967)]]};for(let s in o[t(1045)]){if(r?.[t(606)]===t(829)){a[t(708)](i(e,o,s));continue}if(r?.[t(606)]===t(693)){let n=o[t(1045)]?.[s]?.[t(693)]??[];n?.forEach($=>a[t(708)](i(e,o,s,$)))}}}catch(f){console.error(t(993),f)}}),FGSECOMAPP[$(327)]=[...new Set(FGSECOMAPP.gifts_id)],t=(t=(t=t?.[$(681)](x=>!x?.[$(989)]?.status)?.concat(a))?.map(x=>{let t=$;return{...x,id:x.id.toString(),offer_root:(x[t(991)]??x.id)[t(544)]()}}))?.[$(681)](x=>{let t=$;if(!$e(x[t(965)],x[t(733)]))return!1;let e=!O(x[t(744)]?.[t(1038)]||x.sub_conditions?.customer_tags);if(x[t(744)]&&(!Y(x,SECOMAPP)||e&&O(SECOMAPP[t(466)][t(845)])))return!1;let a={...FGSECOMAPP.productsByID},i=!1;if("stop_offer"===FGSECOMAPP[t(493)][t(618)]){x[t(911)]=x?.[t(911)][t(681)]($=>{let x=t,e=a[$[x(522)]]??{},i=e?.variants_quantity??{},r=e?.[x(531)]?.find(t=>t.id===$[x(488)])??{};return i[$[x(910)]]>0||O(r[x(758)])&&r[x(397)]})??[];let r=x.gift_items?.map($=>$[t(488)]);x[t(967)]=x?.[t(967)]?.[t(681)]($=>{let x=t;return $[x(531)]=$?.[x(531)]?.[x(681)]($=>{let t=x;return r?.[t(517)]($[t(488)])}),$?.[x(531)]?.[x(745)]>0}),i=!0}else if(FGSECOMAPP[t(493)][t(666)]){x.gift_items=x?.[t(911)].filter($=>(a[$[t(970)]]?.[t(531)]?.find(x=>x.id===$[t(488)])?.available??!1)||a[$[t(970)]]?.[t(359)]?.[$[t(488)]]>0);let c=x[t(911)]?.[t(689)]($=>$[t(488)]);x.gift_products=x?.[t(967)]?.[t(681)]($=>{let x=t;return $.variants=$?.[x(531)]?.[x(681)]($=>{let t=x;return c?.[t(517)]($[t(488)])}),$?.[x(531)]?.[x(745)]>0}),i=!0}return i&&x[t(1022)]?.[t(810)]&&(x[t(1022)][t(355)]=x.gift_items?.[t(745)]),!i||x[t(911)]&&x[t(911)].length>0});let r=FGSECOMAPP?.[$(493)]?.[$(949)]===$(873)?"original_compare_at_price":"original_price",c=FGSECOMAPP.fgSettings?.[$(636)],o=c===$(873)?"original_compare_at_price":$(381);return t?.[$(689)](x=>{let t=$,e=x[t(911)].map($=>{let x=t;return $[x(794)]=I($[x(794)]),$[x(569)]=I(O($[r])?$?.[x(381)]:$[r]),c&&($.compare_gift_price=I(O($[o])?$?.[x(381)]:$[o])),$[x(522)]});return x.gift_products=x[t(967)]?.[t(681)]($=>{let x=t;return $[x(531)]?.[x(729)]($=>{let t=x;$[t(794)]=I($[t(794)]),$[t(569)]=I(O($[r])?$?.original_price:$[r]),c&&($[t(492)]=I(O($[o])?$?.original_price:$[o]))}),e[x(517)]($.original_product_shopify_id)}),x[t(309)]?.forEach($=>{let x=t;$.unit===x(438)&&($[x(389)]=I($[x(389)]),$[x(322)]=O($.max_amount)?$[x(322)]:I($[x(322)]))}),x})?.[$(406)]((x,t)=>x[$(574)]-t[$(574)])}catch(s){return console.error("BOGOS track: filterOfferGiftSetting",s),[]}},J=async()=>{let $=x;try{let t=[];window.fgData?.offers?.[$(729)](x=>{let e=$,a=[];x.gift_products[e(729)]($=>{let x=e,t=FGSECOMAPP?.[x(493)]?.sync_quantity==="stop_offer"?$.original_product_handle??null:FGSECOMAPP?.[x(493)]?.[x(666)]?$[x(318)]??null:null;O(t)||a[x(708)](t)}),t=[...t,...a]}),await $m(t=(t=[...new Set(t)])[$(681)](x=>O(FGSECOMAPP[$(701)][x]))),Object[$(855)](FGSECOMAPP.productsInPage)?.forEach($=>{let{info:x}=$;O(x)||O(x?.id)||(FGSECOMAPP.productsByID[x.id]={...x})})}catch(e){console.error($(771),e)}},$$=$=>{let t=x;try{O($)?(FGSECOMAPP[t(1046)]=[],localStorage[t(839)](t(658),FGSECOMAPP.LZString[t(807)](JSON[t(904)](FGSECOMAPP[t(1046)])))):FGSECOMAPP[t(1046)]=JSON.parse(FGSECOMAPP[t(340)].decompressFromBase64(localStorage[t(894)](t(658))))}catch(e){FGSECOMAPP[t(1046)]=[],localStorage[t(839)](t(658),FGSECOMAPP[t(340)].compressToBase64(JSON[t(904)](FGSECOMAPP[t(1046)])))}let a={};FGSECOMAPP.offers?.[t(729)]($=>{let x=t;a[$.id]=$?.gift_items?.map($=>$[x(488)])});let i=Object[t(801)](a);FGSECOMAPP.arrOfferAdded=FGSECOMAPP[t(1046)]?.filter($=>i?.includes($[t(890)]?.[t(544)]())&&a[$[t(890)]?.[t(544)]()].includes($[t(752)]));let r={};FGSECOMAPP.arrOfferAdded?.forEach($=>{let x=t,e=r[$[x(890)]+"_"+$.variantId]??{};r[$[x(890)]+"_"+$[x(752)]]={...$,belongs_to_offer:$.belongs_to_offer?.[x(544)](),quantity:(e?.[x(646)]??0)+($?.[x(646)]??0)}}),FGSECOMAPP.arrOfferAdded=Object[t(855)](r),localStorage[t(839)](t(658),FGSECOMAPP[t(340)][t(807)](JSON.stringify(FGSECOMAPP.arrOfferAdded)))},$x=()=>{let $=x;FGSECOMAPP.QUERY_SELECTOR={cart_drawer_query:{tool:[$(768),w($(727))]},cart_icon_query:{default:[$(350)],tool:[$(966),w("sca_fg_cart_icon_query")]},gift_icon_product_query:{default:[$(393)],integration:[$(455)],tool:[$(411),w("sca_fg_title_product_gift_icon_query")]},gift_icon_collection_query:{default:[$(314),$(934)],integration:[$(1024),".f\\:featured-collection .f\\:featured-collection-block .f\\:column"],tool:[".fg-secomapp-collection-img",w($(662))]},gift_thumbnail_query:{default:[$(788)],integration:[".m-product-form--wrapper"],tool:[$(895),w($(570))]},cart_message_query:{default:[$(533)],integration:[$(457),"#CartPopup .styles_CartPreview__card__KX-WB, #qikify-stickycart-v2-app .qsc2-drawer-wrapper > div:nth-child(2)",$(704),$(939),$(535)],tool:[$(868),w($(324))]},checkout_btn_query:{default:[$(382),$(1040),$(725),$(814)],integration:[$(695),$(892)],tool:[$(743),w("sca_fg_form_checkbox_button_query")]}}},$0=async $=>{let t=x;document[t(699)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(575)],{detail:{}})),$x(),C(),FGSECOMAPP.initLZString(),FGSECOMAPP.fetchCheckoutEvents(),(FGSECOMAPP?.[t(493)]?.[t(618)]===t(655)||FGSECOMAPP?.fgSettings?.[t(666)])&&await J(),FGSECOMAPP[t(512)]=await Z(),FGSECOMAPP[t(833)](),FGSECOMAPP.initializeForFetch(),o(),$$($);let e=await V($,FGSECOMAPP[t(512)]);await $a(e),$y(),$3(),FGSECOMAPP.renderProductPage(),$6(),document[t(699)](new CustomEvent(FGSECOMAPP[t(422)][t(449)],{detail:{}}))},$t=function(){let $=x,t=document[$(691)]($(906)),e=document[$(691)]("#freegifts-main-popup-container [data-close]"),i=$(559),r=document[$(691)]($(860)),c=r[$(745)];for(let o=0;o{let t=$;x[t(652)]===document[t(338)](t(495))&&(document[t(338)](t(495))[t(496)][t(984)](i),a())}),document.addEventListener("keyup",x=>{let t=$;x[t(435)]===t(969)&&document.querySelector(t(495))&&(document[t(338)](t(495))[t(496)][t(984)](i),a())}),document[$(691)]($(436)).forEach(x=>x[$(588)]($(481),function(){let x=$;this[x(366)](x(790),1),this[x(862)](),this[x(496)][x(589)](x(474)),this[x(338)](x(538))[x(496)][x(589)](x(454))})),document.querySelectorAll("#fg-gift-items .dropdown")[$(729)](x=>document[$(588)]($(481),function(t){let e=$,a=x[e(507)](t[e(652)]);a||(x[e(496)][e(984)](e(474)),x[e(338)](e(538))[e(496)][e(984)]("d-block")),document.querySelectorAll(e(706))[e(729)]($=>{let x=e;$[x(1031)]=!0,$[x(458)][x(312)]=x(333)})})),document[$(691)]($(776)).forEach(x=>{let t=$;x.addEventListener(t(481),function(){let $=t,x=this[$(563)]("id"),e=this[$(563)]($(554)),a=this[$(563)]($(487)),i=this[$(563)]($(307)),r=this[$(563)]($(591)),c=this[$(921)][$(921)].parentElement[$(921)];c[$(338)]($(469)).setAttribute($(730),e);let o=new URL(c.querySelector($(349))[$(669)]);o[$(1007)][$(530)]($(693),r),c[$(338)]($(349))[$(669)]=o[$(544)]();let s=this[$(921)][$(921)].parentElement;s[$(338)](".original-price del")[$(572)]=i,s[$(338)](".gift-price").textContent=a;let n=s?.[$(338)]($(497));n[$(366)]($(680),x),n[$(1031)]=!1,n.style="";let f=this.parentElement[$(921)].querySelector(".selected-variant");f[$(496)][$(463)]("active"),f.innerHTML=this[$(383)]})}),document.querySelectorAll($(860))[$(729)](x=>x.addEventListener("click",async function(){let x=$,t=this[x(563)](x(680))-0,e=this[x(563)]("data-offer");try{await d(t,1,e);let a=document[x(338)]("#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg");a&&(FGSECOMAPP[x(735)]=!0,await new Promise($=>setTimeout($,800)),a[x(496)].remove(i)),window.location.href.includes(x(581))?location.reload():typeof Shopify?.getCart===x(872)&&await Shopify?.[x(599)](0===FGSECOMAPP[x(973)].length?function(){}:FGSECOMAPP.fgCallback[0])}catch(r){console.error(x(707),r)}}))},$e=($,t)=>{let e=x;if($){let a=new Date,i=a[e(741)](),r=new Date($)[e(741)]();if(!t)return i>=r;{let c=new Date(t)[e(741)]();return i>=r&&i<=c}}return!1},$a=async $=>{let t=x;if($&&$[t(745)]>0)FGSECOMAPP[t(735)]?(await new Promise($=>setTimeout($,1500)),FGSECOMAPP[t(735)]=!1,m(),Q($)):(m(),Q($));else{let e=document.getElementById(t(927));e&&(e.innerHTML="")}$t(),FGSECOMAPP[t(664)](),FGSECOMAPP[t(719)](FGSECOMAPP[t(512)]),$o=[]},$i=async $=>{let t=x;$o=[];let e=new URL(window.location[t(669)]);e.searchParams.set("sca_fetch_cart",""),i(e[t(544)]()).then($=>$[t(633)]())[t(843)]($=>{let x=t,e=new DOMParser,a=e.parseFromString($,x(334)),{cart_drawer_query:i,cart_icon_query:r}=FGSECOMAPP.QUERY_SELECTOR,c=[...i?.[x(816)]][x(681)](Boolean)[x(392)](","),o=[...r?.tool][x(681)](Boolean)[x(392)](","),s=[...r?.default][x(681)](Boolean)[x(392)](","),n=document[x(338)](c),f=!1;n&&(f=!0,n[x(358)]=a.querySelector(c)?.[x(358)]??n[x(358)]);let l=document.querySelector(o);l||(l=document[x(338)](s)),l&&(f=!0,l[x(358)]=a.querySelector(o)?.innerHTML??a.querySelector(s)?.[x(358)]??l[x(358)]),f||console[x(830)]("BOGOS track: Can not fetch all body")}),typeof FGSECOMAPP?.reRenderCartCustom===t(872)&&await FGSECOMAPP[t(861)](),document.dispatchEvent(new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS.GIFT_UPDATED,{detail:{}})),g("end"),setTimeout(function(){$a($)},800)},$r=async $=>{let t=x,e=await i("/cart.js?sca_fetch&"+($??""),{method:"GET",headers:{Accept:t(579),"Content-Type":t(579)}})[t(843)]($=>$.json()),a=e.items;return FGSECOMAPP[t(374)]=e,FGSECOMAPP[t(763)]=a?.[t(689)]($=>({...FGSECOMAPP.cartItems?.find(x=>x.id===$.id),...$}))??[],e},$c=async()=>{let $=x,t=FGSECOMAPP.SHOPIFY_CART;try{let e=await i(SECOMAPP[$(418)],{method:$(883),headers:{"Content-Type":$(526)}})[$(843)](x=>x[$(394)]());FGSECOMAPP[$(763)]=e?.[$(889)]?.[$(689)](x=>{let t=$;return{...FGSECOMAPP[t(763)]?.[t(427)]($=>$.id===x.id),...x[t(829)],collections:x[t(986)],tags:x[t(961)]}})??[],FGSECOMAPP[$(374)]=e?.[$(899)]??{},t=FGSECOMAPP[$(374)]}catch(a){console[$(980)]("BOGOS track: failed to parse cart section",a),t=await $r()}return t},$o=[],$s=async $=>{let t=x;try{$o.push($[0]),document[t(699)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(685)],{detail:{events:$o}})),await $c();let e=await V(FGSECOMAPP[t(763)],FGSECOMAPP[t(512)]);FGSECOMAPP.renderPromotionMessage(FGSECOMAPP[t(512)]);let a=!1;return $[0].startsWith(t(339))&&JSON[t(904)]($[1][t(404)]??[]).includes(t(602))?(console.info(t(308),[...$o]),await $i(e),a=!0):$[0][t(712)]("/cart/update")&&JSON[t(904)]($[1].headers??[]).includes(t(942))?(console[t(605)](t(1039),[...$o]),await $i(e),a=!0):(console[t(605)]("BOGOS track: others",[...$o]),await $a(e)),$v(),a&&(window[t(323)][t(669)][t(517)](t(581))||document[t(338)](t(856))?.[t(563)](t(543))===t(529))&&($o=[],location[t(351)]()),document[t(699)](new CustomEvent(FGSECOMAPP[t(422)][t(478)],{detail:{events:$o}})),FGSECOMAPP[t(763)]}catch(i){console[t(980)](t(537),i)}},$n=()=>{let $=x;if(!Shopify?.enable_toast_added)return;let t=document[$(338)]($(912));if(!t)return;t.innerHTML="";let e=Shopify?.sca_text_notify_success??"Add gift to cart successfully!",a=document[$(566)]("li");a.className=$(1020),a[$(358)]=$(871)+e+$(490),t[$(577)](a),a[$(998)]=setTimeout(()=>$f(a),3e3),document[$(338)]($(881))?.addEventListener($(481),()=>$f(a))},$f=$=>{let t=x;$[t(496)][t(463)](t(657)),$[t(998)]&&clearTimeout($[t(998)]),setTimeout(()=>$[t(984)](),500)},$l=$=>{let t=x;try{let e=FGSECOMAPP[t(493)]?.[t(329)],a=e===t(472)?$.target:$[t(514)]??$[t(652)];a?.[t(782)]("sca_handle_checkout")||(a=document[t(338)](t(552))?.parentNode);let i=JSON.parse(a[t(563)](t(1004)));if(a[t(1045)]=i?.[t(1045)]??"",a[t(358)]=i?.[t(358)]??"",a.disabled=!1,a[t(634)](t(481),$d),a[t(972)]("sca_handle_checkout"),e===t(625)){a[t(546)][t(338)](t(779))[t(481)]();return}e===t(472)&&window[t(634)](t(481),$8,!0),a.click()}catch(r){window[t(323)][t(931)]((Shopify?.[t(714)]?.[t(945)]??"/")+"checkout"),console[t(482)](t(697),r)}};FGSECOMAPP[x(621)]=async($,t)=>{let e=x;if($===e(425)&&t)t[e(1031)]=!0,t.setAttribute(e(1004),JSON.stringify({innerHTML:t.innerHTML,value:t[e(1045)]})),typeof FGSECOMAPP?.[e(960)]===e(872)?await FGSECOMAPP[e(960)]($):(t.value=Shopify?.sca_fg_value_checkout??"Loading...",t[e(358)]=Shopify?.[e(709)]??e(944));else if("end"===$&&t){if(typeof FGSECOMAPP?.[e(960)]===e(872))await FGSECOMAPP.scaCustomLoadingCheckout($);else{let a=JSON[e(576)](t.getAttribute(e(1004)));t[e(1045)]=a?.[e(1045)]??"",t[e(358)]=a?.innerHTML??""}t[e(1031)]=!1}else $===e(980)?(typeof FGSECOMAPP?.[e(960)]===e(872)&&await FGSECOMAPP[e(960)]($),window.location.replace((Shopify?.[e(714)]?.[e(945)]??"/")+e(651))):console[e(482)](e(542),$)};let $d=async $=>{let t=x;try{$[t(642)](),$[t(724)](),$[t(608)]();let e=FGSECOMAPP[t(493)]?.[t(329)],a=e===t(472)?$[t(652)]:$[t(514)]??$[t(652)],{form:r}=a;if(await FGSECOMAPP[t(621)](t(425),a),document.dispatchEvent(new CustomEvent(FGSECOMAPP[t(422)].START_VALIDATE_CHECKOUT,{detail:{}})),FGSECOMAPP.checkIsBlockCheckout)return!1;FGSECOMAPP[t(616)]=!0;try{if(!Shopify?.[t(628)]){let c=new URL(r.action);c.searchParams[t(417)](t(891),""),await i(c[t(544)](),{method:t(826),body:new FormData(r)})}}catch(o){console.log(t(682))}if(O(FGSECOMAPP.offers)&&O(FGSECOMAPP[t(763)]?.find($=>_($))))return console[t(830)]("BOGOS track: not have orders and gifts"),$l($),!1;await $c();let s=[...FGSECOMAPP[t(763)]],{arrGiftsRemove:n}=z(s,FGSECOMAPP[t(512)],!1);if(await V(s,FGSECOMAPP[t(512)]),n?.[t(745)]>0)location.reload();else try{if(FGSECOMAPP.fgSettings[t(918)]&&!O(FGSECOMAPP[t(763)]?.[t(427)]($=>_($)))){let f=await i(SECOMAPP[t(418)]+t(936)+Shopify?.[t(1032)],{method:t(883),headers:{"Content-Type":t(526)}})[t(843)]($=>$.json()),l=[];Shopify?.add_cart_attributes&&(l=Object[t(356)](f[t(889)][0]?.[t(640)]).map(([$,x])=>({key:$,value:x}))),f.cart=(f[t(889)]??[])[t(689)]($=>{let x=t;$.product[x(986)]=$.collections?.map($=>({id:$.id})),$[x(829)][x(961)]=$[x(961)];let e=Shopify?.[x(459)]?$[x(829)][x(667)]:[];return{id:$[x(829)].id,variant_id:$[x(829)][x(819)],title:$[x(829)][x(441)],handle:$[x(829)][x(909)],price:k($.product),quantity:$.product.quantity,product_type:$[x(829)][x(773)],vendor:$[x(829)][x(797)],tags:$[x(829)][x(961)],collections:$.product[x(986)],selling_plan_allocation:$.product.selling_plan_allocation,discounts:e}}),f.others={arr_offer_added:FGSECOMAPP[t(1046)],secomapp:{customer:SECOMAPP?.customer??{},fg_codes:SECOMAPP?.[t(643)]??[],fgSettings:FGSECOMAPP[t(493)]},cookie_fg_code:U(t(593)),shopify_currency:Shopify?.[t(678)],customer_location:FGSECOMAPP[t(601)],cart_attributes:l},f=JSON[t(904)](f);let d=await i(SECOMAPP[t(418)]+t(778)+FGSECOMAPP[t(340)][t(516)](f),{method:t(883),headers:{"Content-Type":t(526)}}).then($=>$.json());FGSECOMAPP[t(616)]=!1;let u=d?.[t(672)]?.[t(434)];O(u)?(console[t(482)](t(561),d),$l($)):window[t(323)][t(669)]=u}else console[t(830)]("BOGOS track: not using draft order"),FGSECOMAPP[t(616)]=!1,$l($)}catch(g){FGSECOMAPP[t(616)]=!1,$l(g)}await FGSECOMAPP.customLoadingCheckout("end",a=e===t(472)?$.target:$[t(514)]??$[t(652)]),document[t(699)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(956)],{detail:{status:t(686),valid:!n?.[t(745)]}}))}catch(p){await FGSECOMAPP[t(621)](t(980)),document.dispatchEvent(new CustomEvent(FGSECOMAPP[t(422)][t(956)],{detail:{status:"error"}})),console.error("BOGOS track: Error process checkout",p)}},$8=async $=>{let t=x;$[t(652)]?.[t(782)]("sca_handle_checkout")&&await $d($)},$_=()=>{let $=x,t=FGSECOMAPP.fgSettings?.[$(329)],{checkout_btn_query:e}=FGSECOMAPP.QUERY_SELECTOR,a=[...e?.tool,...e?.integration,...e?.default].filter(Boolean)[$(392)](",");document[$(691)](a)[$(729)](x=>{let e=$,a=x.hasAttribute("sca_root_checkout"),i=x[e(782)](e(673)),r=x[e(782)](e(405));if("clone_checkout"===t){if(a)return;if(!i&&!r){let c=x[e(825)](!0);c[e(588)](e(481),$d),c[e(366)](e(405),""),c[e(366)](e(673),""),x.style[e(866)]=e(486),x[e(458)].visibility="hidden",x.style[e(1019)]="0",x[e(366)]("sca_root_checkout",""),x[e(546)]?.[e(577)](c)}i&&!r&&(x[e(588)](e(481),$d),x[e(366)](e(405),""))}else t===e(472)?x[e(366)](e(405),""):r||(x[e(588)](e(481),$d),x[e(366)]("sca_handle_checkout",""));FGSECOMAPP[e(354)]=!0}),t===$(472)&&window[$(588)]($(481),$8,!0)};FGSECOMAPP.fetchCheckoutEvents=()=>{let $=x;FGSECOMAPP[$(615)]=0;let t=setInterval(()=>{let x=$;$_(),FGSECOMAPP[x(615)]++,(FGSECOMAPP[x(615)]>10||FGSECOMAPP.hasDoneProcessCheckout)&&(FGSECOMAPP.scaCountRenderEventCheckout=0,clearInterval(t))},400)};let $1=$=>{let t=x;try{let e={},a={},i=FGSECOMAPP[t(512)];if(O($)){$=[],O(Shopify?.current_product)||$.push({...Shopify?.[t(547)]});let r={...Shopify?.other_products,...Shopify?.[t(834)]?.[t(445)]};Object.values(FGSECOMAPP[t(701)])?.[t(681)]($=>!O($[t(605)])&&(O($?.[t(414)])||$?.[t(414)]&&!$?.[t(539)]?.[t(720)]($=>$?.classList?.[t(507)](t(429)))))?.[t(729)]($=>{let x=t;r[$[x(605)].id]={...$[x(605)]}}),$=$.concat([...Object[t(855)](r)])}$?.[t(729)]($=>{let x=t,e=FGSECOMAPP[x(701)][$[x(909)]];FGSECOMAPP[x(701)][$[x(909)]]={...e,info:{...$},product_has_icon:!!O(i)&&void 0}});let c=FGSECOMAPP[t(493)]?.compare_gift_price_with_product;for(let o in i?.[t(729)](x=>{let i=t,r=x[i(309)];if(1===r.length&&"number_of_products"===r[0][i(710)]&&"boolean"==typeof r[0].is_multiply){let o,s=r[0][i(391)];s?.[i(729)](x=>{let t=i;switch(x[t(606)]){case t(677):o=Object.values(x.value);break;case t(553):let e=Object[t(801)](x[t(1045)]);e[t(745)]>0&&(o=(void 0===o?$:o)?.[t(681)]($=>e[t(517)]($[t(606)]))??[]);break;case t(702):let a=Object[t(801)](x[t(1045)]);a[t(745)]>0&&(o=(void 0===o?$:o)?.[t(681)]($=>a[t(517)]($[t(797)]))??[]);break;case t(671):let r=Object[t(801)](x[t(1045)]);r.length>0&&(o=(void 0===o?$:o)?.[t(681)]($=>{let x=t,e=$[x(986)]?.[x(689)]($=>$.id+""),a=e?.[x(681)]($=>r[x(517)]($));return!O(a)})??[])}}),o?.[i(729)]($=>{let t=i,r=$.handle,o=JSON[t(576)](JSON[t(904)](x[t(967)])),s=FGSECOMAPP[t(701)][r]?.[t(605)]??{};if(FGSECOMAPP.fgSettings?.[t(548)]&&(o=o[t(681)]($=>$[t(522)]!==s?.id)),c&&(o=o.filter($=>{let x=t;return $[x(531)][x(443)]($=>$?.[x(492)]<=s?.[x(1028)]/100)}),O(o)))return;if(e[r]){let n=e[r];o?.[t(729)]($=>{let e=t,a=n[e(427)](x=>x.original_product_shopify_id===$[e(522)]);if(O(a)){n[e(708)]({...$,belongs_to_offer:[x.offer_root]});return}let i=$[e(531)][e(689)]($=>$[e(910)]);a[e(890)]?.[e(517)](x[e(991)])||a[e(890)]?.[e(708)](x[e(991)]),a.variants=a?.variants?.[e(681)]($=>!i[e(517)]($[e(910)]))??[],a.variants=[...a[e(531)],...$[e(531)]]}),e[r]=n}else e[r]=o?.map($=>({...$,belongs_to_offer:[x[t(991)]]}));let f=($[t(531)]??$[t(693)])?.[t(689)]($=>$.id)??[];O(a[r])&&(a[r]={}),FGSECOMAPP[t(701)][r]?.[t(605)]?.variants?.[t(681)]($=>f[t(517)]($.id))?.[t(729)]($=>{a[r][$.id]=o.filter(x=>{let t=_0x2e03,e=x.variants;return c&&(e=e[t(681)](x=>x?.[t(492)]<=$[t(794)]/100)),!O(e)})})})}}),e){let s=FGSECOMAPP[t(701)][o];FGSECOMAPP.productsInPage[o]={...s,gifts_will_receive:[...e[o]],product_has_icon:!0,variants_has_gift:{...a[o]}}}return Object[t(356)](e)?.[t(745)]?e:{}}catch(n){return console[t(482)](t(645),n),null}},$u=$=>{let e=x,a=FGSECOMAPP.fgAppearanceGiftIcon.product_page??{};if(!a[e(803)]?.[e(923)])return!1;let i=document[e(338)](t[e(440)])?.innerHTML??t[e(916)],r=$?.[e(689)]($=>i[e(639)](/{{\s*fg_product_handle\s*}}/gm,h(T($[e(522)],$[e(386)]),!0))[e(639)](/{{\s*fg_product_img\s*}}/gm,h(K($[e(470)]),!0))[e(639)](/{{\s*fg_product_img_alt\s*}}/gm,h(E($.original_product_shopify_id,$.title))))[e(392)](""),c=document[e(338)](t[e(551)])?.innerHTML??t[e(343)],o=c.replaceAll(/{{\s*fg_gift_thumbnail_title\s*}}/gm,h(b(a[e(803)]?.title??"Free Gift","customize.product_page_message")))[e(639)](/{{\s*sca_fg_gift_thumbnail_items_section\s*}}/gm,r)[e(639)](/{{\s*fg_check_show_narrow\s*}}/gm,$?.[e(745)]>=4?"":e(1034)),{gift_thumbnail_query:s}=FGSECOMAPP[e(784)]??{},n=[...s?.tool].filter(Boolean)[e(392)](","),f=[...s?.[e(647)],...s?.[e(901)]][e(681)](Boolean)[e(392)](","),l=document.querySelector(n)??document[e(338)](f);if(!l)return;l[e(546)][e(458)][e(446)]=e(762),l[e(546)][e(458)].height=e(846),l.parentNode?.[e(902)]?.[e(517)]("sca-fg-form-thumbnail-product-page")||l[e(546)]?.[e(496)]?.add(e(893));let d=l.parentNode.querySelector("#sca-gift-thumbnail");if(d)d[e(358)]=o;else{(d=document[e(566)](e(941)))[e(366)]("id",e(785));let _=new DOMParser().parseFromString(o,"text/html");d[e(358)]=_[e(858)][e(358)],l[e(546)].insertBefore(d,l)}l[e(546)][e(938)](d,l);let u=document.querySelector(e(310));if(u)switch(a[e(803)]?.size){case"32":u[e(458)][e(637)]="50%";break;case"50":u[e(458)][e(637)]=e(348);break;case e(867):u[e(458)][e(637)]=e(958);break;case e(837):u[e(458)].maxWidth=e(571);break;case e(378):u[e(458)][e(637)]=e(762);break;default:u[e(458)][e(637)]="60%"}if($?.length>=(Shopify?.number_gifts_thumbnail??4))new Glider(document[e(338)](e(774)),{slidesToShow:(Shopify?.[e(464)]??4)-1,slidesToScroll:1,draggable:!0,dots:e(353),arrows:{prev:"#fg-gift-thumbnail-title .glider-prev",next:e(1005)}});else{u&&(u[e(458)][e(637)]=e(762));let g=document.querySelector(e(774));g&&(g[e(458)][e(866)]="flex")}return $},$g=()=>{let $=x;if(!(FGSECOMAPP[$(919)].product_page??{}).gift_icon?.status)return!1;let e=document[$(338)](t.GIFT_ICON_SECTION_ID)?.[$(358)]??t[$(978)],a=e.replaceAll(/{{\s*fg_gift_icon\s*}}/gm,FGSECOMAPP.fgAppearanceGiftIcon[$(508)])[$(639)](/{{\s*fg_gift_icon_alt\s*}}/gm,$(1e3))[$(639)](/{{\s*fg_class_product_or_collection_page\s*}}/gm,"sca-gift-icon-img"),{gift_icon_product_query:i}=FGSECOMAPP[$(784)],r=[...i?.[$(816)]].filter(Boolean).join(","),c=[...i?.[$(901)],...i?.integration].filter(Boolean)[$(392)](","),o=document[$(338)](r)??document[$(338)](c);if(!o)return;o[$(458)][$(700)]="relative",o[$(458)][$(446)]=$(842),o[$(902)]?.includes("sca-fg-form-icon-product-page")||o[$(496)]?.[$(463)]($(421));let s=o[$(338)]($(346));if(s)s[$(358)]=a;else{(s=document[$(566)]($(941))).setAttribute("id",$(311));let n=new DOMParser()[$(690)](a,"text/html");s.innerHTML=n[$(858)][$(358)],o.appendChild(s)}return FGSECOMAPP[$(919)][$(508)]},$p=()=>{let $=x,t=[],{gift_icon_collection_query:e}=FGSECOMAPP[$(784)],a=[...e?.[$(816)],...e?.[$(647)],...e?.[$(901)]][$(681)](Boolean).join(",");return document.querySelectorAll(a)[$(729)](x=>{let e=$,a=x[e(338)](e(806)),i=a?.[e(563)](e(669))?.[e(952)]("/")??[],r=i?.[e(824)](e(445)),c=r>=0?i[r+1]??null:null;if(c=c?.split("?")?.[e(886)](),_(c)){x.remove();return}let o=x[e(338)](e(580));if(o){x[e(984)]();return}if(O(c))return;let s=decodeURI(c);O(FGSECOMAPP[e(701)][s]?.[e(605)])&&t[e(708)](s);let n=(FGSECOMAPP.productsInPage[s]?.[e(539)]??[]).filter($=>!x[e(626)]($));n[e(708)](x),FGSECOMAPP.productsInPage[s]={...FGSECOMAPP[e(701)][s],positions:[...n]}}),t},$b=$=>{let e=x;Object[e(801)]($)?.[e(729)]($=>{let x=e,a=FGSECOMAPP[x(701)][$]?.[x(539)]??[];if(O(a)||!Array[x(896)](a))return;if(!(FGSECOMAPP[x(919)][x(818)]??{})[x(923)])return;let i=document[x(338)](t[x(623)])?.[x(358)]??t[x(978)],r=i[x(639)](/{{\s*fg_gift_icon\s*}}/gm,FGSECOMAPP[x(919)][x(508)])[x(639)](/{{\s*fg_gift_icon_alt\s*}}/gm,"free-gift-icon")[x(639)](/{{\s*fg_class_product_or_collection_page\s*}}/gm,"sca-gift-icon-collection-img");a.forEach($=>{let t=x;$[t(458)][t(700)]=t(468),$[t(902)]?.[t(517)](t(734))||$[t(496)]?.[t(463)](t(734));let e=$[t(338)](".sca-gift-icon-collection-page");if(e)e[t(358)]=r;else{(e=document[t(566)](t(941)))[t(366)](t(387),"sca-gift-icon-collection-page");let a=new DOMParser()[t(690)](r,t(334));e[t(358)]=a[t(858)].innerHTML,$[t(577)](e)}})})},$h=async $=>{let t=x;await i(SECOMAPP.freegiftProxy+t(506)+FGSECOMAPP[t(340)][t(516)](JSON[t(904)]($)),{method:t(883),headers:{"Content-Type":t(526)}})[t(843)](async $=>{let x=t,e=await $[x(394)](),a=[];e?.products?.[x(729)]($=>{let t=x;O($?.[t(445)]?.id)||a[t(708)]({...$[t(445)],collections:$.collections,variants_quantity:$[t(359)]})});let i=$1(a);$b(i)})[t(732)]($=>{let x=t;console[x(482)](x(369),$)})},$m=async $=>{let t=x,e=[];for(let[a,i]of $.entries())O(FGSECOMAPP[t(701)][i]?.[t(605)])&&e[t(708)](i),20===e.length&&(await $h([...e]),e=[]),a===$.length-1&&e[t(745)]>0&&(await $h([...e]),e=[])},$6=()=>{let $=$p(),t=$1();$b(t),$m($)[x(843)]()},$3=()=>{let $=x;Shopify?.[$(489)]&&document[$(588)]($(344),function(){let x=$,t=new URL(document[x(612)]),e=parseInt(t[x(1007)][x(840)](x(693)));FGSECOMAPP[x(817)](isNaN(e)?void 0:e)})};FGSECOMAPP[x(817)]=$=>{let t=x;if(!location[t(669)][t(517)]("/products/"))return;document[t(338)](t(346))?.[t(984)](),document[t(338)](t(869))?.[t(984)]();let e=$1();if(O(e))return;let a=location[t(453)][t(952)]("/"),i=a?.[t(824)](t(445)),r=decodeURI(i>=0?a[i+1]??null:null);if(!Object[t(801)](e)?.[t(517)](r))return;let c=e[r],o=FGSECOMAPP[t(701)][r]?.[t(990)]??{},s=Object[t(801)](o),n=!0;Shopify?.[t(489)]&&(O($)||s[t(517)](""+$)||(n=!1),!O($)||O(Shopify?.[t(547)]?.[t(527)])||s[t(517)](Shopify?.[t(547)]?.current_variant?.id?.[t(544)]())||(n=!1),c=o[$??Shopify?.current_product?.[t(527)]?.id]??[]),n&&($u(c),$g(c)),document[t(699)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(683)],{detail:{icon:FGSECOMAPP[t(919)][t(508)],gifts:$2(c),product:{handle:r,variant:$??Shopify?.[t(547)]?.[t(527)]?.id}}}))},FGSECOMAPP[x(719)]=$=>{let e=x;try{if(!FGSECOMAPP[e(1003)][e(373)])return;O($)&&($=[...FGSECOMAPP[e(512)]]);let a=location[e(669)][e(517)]("/cart"),i=[];if($?.[e(729)]($=>{let x=e;$[x(994)]||O($.promotion_message)||!O(FGSECOMAPP[x(742)])&&!$[x(994)]&&$.priority>FGSECOMAPP.maxOfferPriority||O(($[x(748)]??0)+($[x(811)]??0))&&/({{sca_min_total}})|({{sca_min_quantity}})/gm[x(325)]($[x(638)])||i.push({value:b($[x(638)],x(836)+$.offer_root)[x(639)](x(660),$[x(748)]?.[x(876)](Shopify?.[x(1014)]??2))[x(639)](x(815),$[x(811)]),offer_root:$[x(991)]})}),document[e(699)](new CustomEvent(FGSECOMAPP[e(422)].RENDER_CART_MESSAGE,{detail:{data:i}})),O(i)){document[e(691)](e(380)).forEach($=>$.innerHTML="");return}let r=document[e(338)](t.CART_MSG_ITEM_SECTION_ID)?.[e(358)]??t[e(988)],c=i[e(689)]($=>r[e(639)](/{{\s*fg_cart_message\s*}}/gm,h($[e(1045)])))[e(392)](""),o=document[e(338)](t[e(951)])?.[e(358)]??t.CART_MSG_SECTION,s=o[e(639)](/{{\s*sca_fg_cart_message_items_section\s*}}/gm,c),{cart_message_query:n}=FGSECOMAPP[e(784)],f=document.querySelector([...n?.default][e(681)](Boolean)[e(392)](",")),l=document[e(691)]([...n?.[e(816)],...n?.[e(647)]][e(681)](Boolean).join(",")),d=document[e(691)](e(380));O(d)||d.forEach($=>$[e(358)]=s),(d=document[e(566)](e(941))).setAttribute("id",e(377)),d[e(496)][e(463)]("sca-promotion-message-layout");let _=new DOMParser()[e(690)](s,e(334));d[e(358)]=_[e(858)].innerHTML,O(l)||l?.[e(729)]($=>{let x=e;if($[x(338)](x(380)))return;let t=d[x(825)](!0);$.prepend(t)}),!f?.[e(338)](e(380))&&(_=new DOMParser().parseFromString(s,e(334)),d.innerHTML=_[e(858)][e(358)],f&&a&&f[e(924)](d)),document[e(691)](e(766))[e(729)]($=>{let x=new Glider($);(($,x)=>{let t=_0x2e03,e=$[t(800)][t(885)],a=null,i=1;function r(){a=setTimeout(()=>{let x=_0x2e03;i>=e&&(i=0),$[x(853)](i++)},x)}$.ele[t(588)](t(783),function(){window[t(510)](a),r()}),r()})(x,Shopify?.[e(515)]??3e3)})}catch(u){console[e(482)](e(607),u)}};let $4=async()=>{let $=x;try{let t=await i($(541)),e=await t[$(394)]();FGSECOMAPP[$(601)]=e?.[$(962)]}catch(a){console[$(482)]($(900),a)}},$2=($,x)=>$?.map($=>{let t=_0x2e03;return{id:$[t(970)],title:E($[t(522)],$.title),handle:$[t(386)],thumbnail:$[t(470)],belongs_to_offer:$[t(890)]??""+x,variants:$.variants[t(689)]($=>{let x=t;return{id:$.variant_shopify_id,title:$[x(999)],price:$[x(794)],original_price:$[x(569)],thumbnail:$.thumbnail,discount_type:$[x(932)],discount_value:$[x(750)]}})}})??[],$y=()=>{let $=x;if(!FGSECOMAPP[$(929)]?.[$(648)]?.[$(804)]||!FGSECOMAPP[$(512)][$(745)])return;let e=document[$(338)]($(772)),a=document[$(338)]("#sca-fg-today-offer-iframe");if(!e||!a)return;let i=document[$(338)](t[$(764)])?.[$(358)]??t[$(1016)],r=document[$(338)](t[$(451)])?.innerHTML??t[$(954)],c=document[$(338)](t[$(964)])?.innerHTML??t.TODAY_OFFER_WIDGET,o={};FGSECOMAPP[$(512)].forEach(x=>{let t=$;o[x[t(991)]]=x});let s=Object.values(o);s[$(406)]((x,t)=>{let e=$;return new Date(x[e(965)])-new Date(t[e(965)])}),e[$(358)]=c[$(639)](/{{\s*sca_fg_today_offer_widget\s*}}/gm,h(FGSECOMAPP[$(929)].widget_icon_path))[$(639)](/{{\s*sca-fg-title-icon-widget-content\s*}}/gm,h(b(FGSECOMAPP?.[$(929)]?.[$(648)]?.[$(360)]??$(567),$(1001)))),FGSECOMAPP[$(929)]?.widget_info?.[$(977)]===$(534)&&(e[$(496)][$(463)]($(757)),document[$(338)]($(479))[$(458)][$(739)]=$(832)),FGSECOMAPP.fgAppearanceTodayOffer?.[$(648)]?.[$(977)]!==$(641)&&FGSECOMAPP[$(929)]?.[$(648)]?.[$(977)]||(e[$(496)].remove($(757)),document.querySelector($(852))?.[$(496)][$(463)]($(937))),FGSECOMAPP[$(929)]?.[$(648)].widget_position===$(859)&&(e[$(496)][$(463)]($(590)),a[$(496)].add($(565))),FGSECOMAPP[$(929)]?.[$(648)].widget_position===$(696)&&(e[$(496)][$(463)]($(509)),a.classList[$(463)]("sca-today-offer-right")),a[$(358)]=i[$(639)](/{{\s*sca_fg_today_offer_title\s*}}/gm,h(b(FGSECOMAPP[$(929)].widget_info[$(1013)]??"TODAY OFFER",$(854))))[$(639)](/{{\s*sca_fg_today_offer_subtitle\s*}}/gm,h(b(FGSECOMAPP.fgAppearanceTodayOffer[$(648)][$(629)]??"Claim these exclusive offers today",$(995)))),document.querySelector("#sca-fg-today-offer-iframe .sca-fg-body .sca-fg-offers")[$(358)]=s[$(689)](x=>r[$(639)](/{{\s*sca_fg_offer_id\s*}}/gm,h(x[$(991)]))[$(639)](/{{\s*sca_fg_offer_title\s*}}/gm,h(b(x.offer_name,$(328)+x[$(991)]))).replaceAll(/{{\s*sca_fg_offer_title_tooltip\s*}}/gm,h(b(x[$(462)],$(328)+x[$(991)])))[$(639)](/{{\s*sca_fg_offer_img\s*}}/gm,h(x.gift_products[0][$(470)],!0)))[$(392)]("\n"),document[$(338)]($(479)).innerHTML=s[$(745)][$(544)]();let n=()=>{let x=$,t=document.querySelector(x(632));t?.[x(496)][x(589)](x(336));let e=document[x(691)](x(716));e[x(729)]($=>{let t=x;$[t(496)][t(589)]("sca-hide")})};document[$(338)]($(1002))[$(588)]($(481),n),document.querySelector($(772))[$(588)]($(481),n),document[$(699)](new CustomEvent(FGSECOMAPP[$(422)][$(617)],{detail:{todayOffers:s[$(689)](x=>{let t=$,e=fgData[t(512)][t(427)]($=>$.id.toString()===x[t(991)]);return{id:""+e.id,title:b(x[t(462)],t(328)+x.offer_root),gifts:$2(e[t(967)],e.id),success:x.isReachConditions??!1}})}})),$v();let f=(x,t,e)=>{let a=$,i=document[a(566)]("p");i.className=a(755),i[a(572)]=x,document[a(858)][a(577)](i),i[a(458)][a(731)]=e+"px",i[a(458)].left=t+"px",i.style[a(866)]=a(823)},l=()=>{let x=$,t=document[x(338)](x(407));t&&t.parentNode.removeChild(t)},d=x=>{let t=$,e=document[t(338)](t(407));e&&(e.style[t(731)]=x.pageY+"px",e[t(458)][t(917)]=x[t(500)]+5+"px")},_=document[$(691)]($(631));_.forEach(function(x){let t=$;x[t(588)](t(437),function($){let e=t,a=x[e(563)](e(769));f(a,$.pageX+5,$[e(583)]+5)}),x[t(588)](t(416),function(){l()}),x[t(588)]("mousemove",d)})},$v=()=>{let $=x,t=[...new Set(FGSECOMAPP.offers?.[$(681)](x=>x[$(994)])?.map($=>$.offer_root))];document.dispatchEvent(new CustomEvent(FGSECOMAPP[$(422)][$(1023)],{detail:{idOffersSuccess:t}}));let e=document[$(691)]($(513));e[$(729)](x=>{let e=$;t.includes(x[e(563)](e(676)))?x[e(496)].add(e(827)):x[e(496)][e(984)](e(827))})},$5=function(){let $=x;try{document.addEventListener(FGSECOMAPP[$(422)].GIFT_UPDATED,async()=>{let x=$;try{window[x(822)]&&(unicart[x(699)](x(502)),console.log(x(828)))}catch(t){console[x(482)](x(828),t)}try{window[x(813)]&&(await window[x(813)](),console[x(830)]("BOGOS track: iCart"))}catch(e){console[x(482)](x(661),e)}try{window[x(475)]?.[x(880)]?.[x(992)]&&(window[x(475)][x(880)][x(992)](),console.log("BOGOS track: Rebuy"))}catch(a){console[x(482)]("BOGOS track: Rebuy",a)}try{window[x(940)]&&(await $r(x(787))[x(843)]($=>{window.SLIDECART_UPDATE($),window[x(413)]()}),console[x(830)](x(545)))}catch(i){console[x(482)](x(545),i)}try{let r=document[x(338)]("#upCartStickyButton .upcart-sticky-cart-quantity-icon-text");window[x(955)]&&(await window[x(955)](),console[x(830)](x(935)),r&&(r[x(358)]=FGSECOMAPP?.SHOPIFY_CART?.[x(738)]??0))}catch(c){console[x(482)](x(935),c)}try{window[x(863)]&&(await window[x(863)](),window[x(501)](),console[x(830)]("BOGOS track: Slide Cart - qikify"))}catch(o){console[x(482)](x(370),o)}try{window?.[x(760)]?.Widgets?.[x(505)]?.[x(943)]&&(await window.SATCB.Widgets.CartSlider[x(943)](),console[x(830)](x(721)))}catch(s){console[x(482)](x(721),s)}try{window.monster_refresh&&(await window[x(848)](),window[x(809)](),console.log(x(705)))}catch(n){console[x(482)]("BOGOS track: Monster Cart",n)}try{window[x(736)]&&await (window[x(736)](),window[x(950)](),console[x(830)](x(361)))}catch(f){console.warn("BOGOS track: Slide Cart - Heysenior",f)}try{let l=document.querySelector(x(521)),d=document[x(338)]("drawer-component#Drawer-Cart cart-drawer");window[x(480)]&&l&&(await l?.onCartDrawerUpdate(!window[x(415)]?.[x(420)]),l?.open()),window[x(737)]&&d&&(await d?.[x(674)](),d?.cartDrawer?.[x(597)]())}catch(_){console[x(482)](x(850),_)}try{window[x(491)]&&await (CartJS?.[x(599)](),console[x(830)](x(847)))}catch(u){console[x(482)](x(847),u)}try{window[x(388)]?.[x(880)]?.getToFetch&&await (T4SThemeSP[x(880)][x(341)](),console[x(830)](x(947)))}catch(g){console[x(482)](x(947),g)}}),window[$(588)]($(808),function(){let x=$;FGSECOMAPP[x(719)](),FGSECOMAPP[x(664)]()}),document[$(588)]($(864),()=>{FGSECOMAPP.renderPromotionMessage(),FGSECOMAPP[$(664)]()}),window[$(540)]=function(){FGSECOMAPP.renderPromotionMessage(),FGSECOMAPP.fetchCheckoutEvents()},window[$(997)]=()=>{let x=$;FGSECOMAPP[x(719)](),FGSECOMAPP[x(664)]()},window[$(905)]?.[$(568)]&&window[$(905)][$(568)](window[$(480)]?.[$(345)]?.openCartDrawer??$(555),function(){let x=$;FGSECOMAPP[x(719)](),FGSECOMAPP[x(664)]()}),document.addEventListener(FGSECOMAPP[$(422)][$(1015)],()=>{let x=$;try{typeof window.HS_SLIDE_CART_CLOSE===x(872)&&window[x(985)](),typeof window[x(841)]===x(872)&&window[x(841)](),"function"==typeof window[x(976)]&&window[x(976)](),document[x(338)](x(922))?.[x(481)]()}catch(t){console[x(482)](x(315),t)}}),document[$(588)](FGSECOMAPP[$(422)][$(983)],x=>{let t=$;try{!Shopify?.disabled_integration_Rebuy&&window[t(475)]?.Cart?.[t(992)]&&window.Rebuy[t(880)][t(992)](),x[t(562)][t(578)]?.[0]?.[t(517)]("cart/add")&&!document[t(338)]("#UpcartPopup:has(#CartPopup[class*='styles_active'])")&&window[t(955)]&&window[t(955)]()}catch(e){console[t(482)](t(795),e)}})}catch(t){console[$(482)]("BOGOS track: Failed integrate apps",t)}};$0(FGSECOMAPP[x(763)])[x(843)](()=>{$5()})}();