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