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