window.fgData={"offers":[{"id":11088,"shop_id":483,"offer_name":"ACAIOIL4FREE","offer_description":null,"promotion_message":"FREE GIFT Spend \u00a350 on any Hair & Beauty Products & Receive 10ml Cadiveu Acai Treatment Oil worth \u00a317.25 + 8 assorted SAMPLES from our Hair Brands!","start_time":"2023-09-07T11:56:02.000000Z","end_time":null,"condition_relationship":null,"gift_settings":{"discount":{"type":"percentage","value":100},"auto_add_all_gifts":false,"customer_will_receive":"number_of_gift_can_receive","cal_gift_for_other_rules":false,"number_of_gift_can_receive":1},"gift_should_the_same":{"type":"variant","status":false},"sub_conditions":null,"priority":1,"stop_lower_priority":false,"status":true,"loading":"not_running","gift_products":[{"title":"\u00bb CADIVEU - Acai Treatment, Oil 10ml (100% off)","original_product_handle":"cadiveu-acai-treatment-oil-10ml-1","clone_product_handle":"cadiveu-acai-treatment-oil-10ml-1-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0618\/4032\/6809\/products\/acai10ml.png?v=1689971069","product_shopify_id":7722148102297,"original_product_shopify_id":7690181542041,"variants":[{"id":69680,"gift_product_id":26961,"discount_type":"percentage","discount_value":100,"original_price":17.25,"original_compare_at_price":null,"original_product_shopify_id":7690181542041,"original_variant_shopify_id":43261463036057,"price":0,"product_shopify_id":7722148102297,"variant_shopify_id":43380784857241,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0618\/4032\/6809\/products\/acai10ml.png?v=1689971069","pivot":{"offer_id":11088,"gift_item_id":69680},"gift_product":{"id":26961,"shop_id":483,"title":"\u00bb CADIVEU - Acai Treatment, Oil 10ml (100% off)","original_product_handle":"cadiveu-acai-treatment-oil-10ml-1","clone_product_handle":"cadiveu-acai-treatment-oil-10ml-1-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0618\/4032\/6809\/products\/acai10ml.png?v=1689971069","product_shopify_id":7722148102297,"original_product_shopify_id":7690181542041,"created_at":"2023-09-07T12:05:37.000000Z","updated_at":"2023-09-08T10:45:10.000000Z"}}]}],"offer_conditions":[{"id":11566,"offer_id":11088,"is_multiply":null,"min_amount":"50.00","max_amount":null,"product_narrow":[{"type":"product_vendors","value":{"Brae":"Brae","Piur":"Piur","Cadiveu":"Cadiveu","Salvatore":"Salvatore","Expert Hair":"Expert Hair","Moroccanoil":"Moroccanoil","Phyto Ativo":"Phyto Ativo","Robson Peluquero":"Robson Peluquero"}}],"unit":"money"}],"gift_items":[{"id":69680,"gift_product_id":26961,"discount_type":"percentage","discount_value":100,"original_price":17.25,"original_compare_at_price":null,"original_product_shopify_id":7690181542041,"original_variant_shopify_id":43261463036057,"price":0,"product_shopify_id":7722148102297,"variant_shopify_id":43380784857241,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0618\/4032\/6809\/products\/acai10ml.png?v=1689971069","pivot":{"offer_id":11088,"gift_item_id":69680},"gift_product":{"id":26961,"shop_id":483,"title":"\u00bb CADIVEU - Acai Treatment, Oil 10ml (100% off)","original_product_handle":"cadiveu-acai-treatment-oil-10ml-1","clone_product_handle":"cadiveu-acai-treatment-oil-10ml-1-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0618\/4032\/6809\/products\/acai10ml.png?v=1689971069","product_shopify_id":7722148102297,"original_product_shopify_id":7690181542041,"created_at":"2023-09-07T12:05:37.000000Z","updated_at":"2023-09-08T10:45:10.000000Z"}}]}],"settings":{"auto_add_gift":true,"compare_gift_price_with_product":false,"cal_gift_discount":"current_price","select_one_gift_price":false,"not_show_gift_if_already_on_cart":false,"sync_quantity":"stop_offer","manual_input_inventory":false,"using_draft_order":false,"delete_gift_after_turn_off_offer":true,"gift_format":"same_as_original_products","admin_api_access_token":null,"notify_via_email":{"status":false},"barcode":"blank","type_seo":"number_integer","mode_override_checkout":"default"},"appearance":{"gift_slider":{"general":{"gift_popup_title":"Select your free gift!","add_to_cart_btn_title":"Add to basket","running_text":"","select_gift_btn":"Select variants","show_product_title":true,"show_variant_title":true,"show_pagination":true,"show_gift_for_customer":"by_variants","number_product_slider":4},"color":{"gift_slider_title_color":"#121212","product_title_color":"#000000","original_price_color":"#121212","discounted_price_color":"#ea5455","add_to_cart_color":"#FFFFFF","add_to_cart_btn_color":"#04B0BF"},"others":{"hidden_brand_mark":true,"gift_img_size":"&width=480&height=480"},"disable_slider_checkbox":{"enable":false,"time":10,"text":"Don't show this offer again"}},"gift_icon":{"gift_icon_path":"images\/fg-icons\/fg-icon-blue.png","shopify_gift_icon_path":"fg-icon-blue.png","product_page":{"gift_icon":{"status":true,"size":"50"},"gift_thumbnail":{"status":true,"size":"100","title":"Free Gift"}},"collection_page":{"status":true,"size":"50"}},"promotion_message":{"show_on_cart_page":true,"text_color":"#ffffff","background_color":"#F72119"}}};/* END_FG_DATA */
const _0x15bc9e=_0x44cd;function _0x60ce(){let $=[".btn-add-to-cart.sca-fg-out-stock","find","Default Title","ele","open","by_variants","locale","subscription_products","active ","replaceAll","product_types","3730OibZYM",'
\n
\n \n \n \n \n \n
',"start","isSameNode","SLIDECART_OPENED","prepareDataForDisplayWidgetByRule","sca_offers_added","#fg-gift-thumbnail-title .glider-next","#sca-spinner-checkout","others","do_not_add_freegift_attribute","hidden_brand_mark",".icartCheckoutBtn, .rebuy-cart__checkout-button, .qsc2-checkout-button, #mu-checkout-button, .satcb-cs-checkout-btn, .hs-checkout-purchase","order_created_from","scaCustomLoadingCheckout","fit-content","10qdEDQL","CART_MSG_ITEM_SECTION","fg-cart:updated","sca_process_gifts","monster_refresh","variant","maxWidth","fgAppearanceGiftSlider","#82868b","active","GIFT_ICON_SECTION","checkIsBlockCheckout","#UpcartPopup:has(#CartPopup[class*='styles_active'])","fetchCheckoutEvents","maxOfferPriority","hide","key","1158479UMdiXC","specific_link_address","SLIDECART_UPDATED","SLIDECART_OPEN","disable_slider_checkbox","width","Add gift to cart successfully!","min_amount","sca-gift-icon-collection-img","upcartRegisterAddToCart","querySelectorAll","error","type_customer_locations","#fg-gift-items .dropdown > .dropdown-menu > li","upcartOnCartOpened","this is others","focus",".btn-add-to-cart","fgAppearanceGiftIcon","cal_gift_discount","original_variant_shopify_id","1065752DhNnQD","sca-fg-icon-collection-page","stop_lower_priority","GIFT_ICON_SECTION_ID","glider-animated","forEach","arrOfferAdded","have_not_got_gift_from_this_offer","startsWith","/cart/add","https://geoip.secomtech.com/?json","trim","sections_cart","entries",' ',"compressToBase64","json","toString","sync_quantity","toFixed","50%","/cart/add.js","sca_amount_fixed","#sca_fg_cart_message_items_section","time","stopPropagation","product_shopify_id","fgAppearancePromotionMessage","includes","end_time","collection_page","offer_name","#sca-gift-icon","quantity","value_customer_tags","/cart.js?sca_fetch&","parentNode","charAt",".gift-original-url","CART_AUTO_UPDATED","number_of_gift_can_receive","action","initializeForXHR","342BwcTzF","GIFT_THUMBNAIL_SECTION_ID","POST","fg-cart:auto-updated","GIFT_ADDED","concat","secomapp_freegifts_version","flat","HS_SLIDE_CART_UPDATE","160","en-US","filter","auto_add_gift","querySelector","padding","sca-d-none","visibility","number_of_order","opacity","fgAppearance","#secomapp_freegifts_version","#sca_fg_gift_thumbnail_items_section","enable_check_variants_has_gift","(Discount)","discounted_price","sca_handle_checkout","current_product","gifts",".dots","keyup",".fg-secomapp-cart-drawer ","arrGiftsRemove","value_customer_locations","condition_relationship","headers","position","GIFT_THUMBNAIL_SECTION","currentTarget","sub_conditions","scaCountRenderEventCheckout","max_gifts_can_get",".dropdown-menu","sca-fg-out-stock","icartUpdateCartEvent","dataset","gift_products","Free Gift","#sca_fg_section_gifts_popup","enable_process_offer_loading","freegifts-main-page-container","customer","sca_slidecart_tcc","stop_offer","function","original_price","compressToEncodedURIComponent","sca_fg_btn_gift_thumbnail_query","customLoadingCheckout","application/json;","#sca_fg_gift_icon_section",".sca-promotion-message-layout","variant_title","indexOf","split","currency","gift_icon_path","FG_CATCH_ADD_CART","country_code","#upCartStickyButton .upcart-sticky-cart-quantity-icon-text","fg-checkout","root","sca-promotion-message-layout","getTime",".sca-promotion-glider","type","length","60%","Don't show this offer again","SATCB",'\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_ID","cart","fg-checkout:start",".fg-secomapp-handle-add-to-cart ","backgroundColor","max",".sca-fg-notifications","select_one_gift_price","Widgets","96mKFfZu",'\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
',"variants_ids","item_count","100%","product_narrow","object","decompressFromBase64","createElement",".fg-secomapp-product-title ","CartSlider","product_page","title","sca_add_gift","then","3.0","closeCart","current_collection","data-fg-checkout-btn","isReachConditions","max_amount","&sca_products_handle=","innerHTML","scrollItem","#fg-gift-items .dropdown","&width=480&height=480","get","set","6px 0","NumberFormat","end","100","&sca_shop_name=","dispatchEvent","event auto process gifts with cart","#sca_fg_cart_message_section",'\n {{ fg_cart_message }}\n
',"fgData","fg-gifts:render-cart","general","renderPromotionMessage","reRenderCartCustom","include","collections","getElementById","number_of_products","toggle",'\n \n \n \n ',"gift_slider","reduce","is_only",'a[href*="/collections/sca_fg"]',"every","isArray","23065405evOzWx","gift_img_size","[type='submit'][name='add'], [type='button'][name='add'], [data-add-to-cart], [data-action='add-to-cart']","location","fg-checkout:end","append","last_total",", .sca_handle_button_checkout, input[name='checkout'], button[name='checkout'], input[name='goto_pp'], button[name='goto_pp'], input[name='goto_gc'], button[name='goto_gc'], a[href$='checkout'], form[action='/checkout'] input[type='submit'], button.new_checkout_button, input[value='Checkout'], input[value='Checkout'], input[value='Check out'], input[value='Check Out'] a.checkout-link ","removeEventListener","icartSideCartOpenEvent","giftsAvailable","Select variant","7803WHvnjc","sca-gift-icon","GIFT_SELECT_SECTION","GET","#sca_fg_disable_slider_section","not type checkout btn","rate",".freegifts-main-container .glider-prev","info",".original-price del","failed to parse cart section ","FG_CATCH_UPDATE_CART","parse","sca_text_notify_success","fg_decimal","setAttribute","original_product_shopify_id","money","keys","show_pagination","Out of stock","some","parentElement","customGiftImgSize","getItem","can not check freegifts version",", \n .fg-secomapp-cart-item-promotion\n ","not_show_gift_if_already_on_cart","fgCallback",'a[href*="/products/"]',"clearInterval","tags","Can not fetch all body","USD",".product-item-thumbnail","settings","push","END_PROCESS_CART","product_type","replace","GIFT_THUMBNAIL_ITEMS_SECTION_ID","condition_result","remove","CUSTOM_EVENTS","#fg-gift-items","gift_icon","GIFTS_CART_SECTION","data-variant","?sca_process_gifts",'\n \n \n \n \n \n ',"stringify","disabled","FGSECOMAPP_HIDDEN_GIFT_POPUP","data-original-id","Loading...","/?sections=","clone_checkout","join","click","now","show_variant_title","customerLocation","positions","#sca_fg_cart_section_gifts_slider",'\n
\n {{ fg_slider_title }}\n
\n
\n
\n
\n ❮ \n
\n
\n ❯ \n
\n
\n
\n \n {{ sca_fg_disable_slider_section }}\n
',"routes","sections","CART_MSG_ITEM_SECTION_ID","gift_items",'.btn-add-to-cart[data-variant="',".freegifts-main-container .glider-next","rebuy:smartcart.show","contains","/products/","d-block","reload","#sca_fg_variant_select_section","fgSettings","original_compare_at_price","cartItems","variants_quantity",".gift-price","appearance","fg-gift-items","GIFT_SELECT_SECTION_ID","href","belongs_to_offer","relative","sca_root_checkout","sca_fg_form_checkbox_button_query","variantId","variant_shopify_id","gift_should_the_same","573214pJrFLM",".fg-secomapp-collection-img, .product-card, #product-grid .grid__item, .product-grid .grid__item, .card-list .card-list__column, .cc-product-list .product-block, .collection-list.grid .grid__item, .collection-grid.grid .grid__item ","target","show_gift_for_customer","parseFromString","#fg-gift-thumbnail-title","boolean","value","final_price","classList","auto_add_all_gifts","#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg","change","product_vendors","GIFT_ITEM_SECTION_ID","products","number","STICKY_CART_OPEN","hidden","total_spent_on_last_order","SHOPIFY_CART","sca_fg_title_product_gift_icon_query","add","promotion_message","sca_link_checkout","giftsAdded","color","&data_checkout=","freegifts","text","searchParams","data-template","map","string","log","application/json","checkout","sca_locale",".freegifts-main-container .slide-container #sca-hidden-gift-popup .sca-disable-checkbox","cart-items, .cart-header, .section-header","sca_catch","GIFTS_POPUP_SECTION","values","sca_price","hasAttribute","enable","className","getAttribute","GIFTS_CART_SECTION_ID","application/liquid","current_variant","insertBefore","sca_fg_price",".sca-list-gift-thumbnail","none","data-price","productsInPage",".satcb-cs-close","orders",'\n {{ sca_fg_cart_message_items_section }}\n
',"customer_order_history","product_has_icon","DISABLE_SLIDER_SECTION","floor","product_collections","HS_SLIDE_CART_CLOSE","pathname","variants","style","/cart/update","Add to cart","Escape","-sca_clone_freegift",".product_name, .product-title, .product__title, .product-single__title, .tt-title, .ProductMeta__Title","load","sca-gift-icon-img","fetch","data-img","$","scaHandleConfigValue","Cannot define custom loading with type: ","offer_conditions","getCart","product","text/html","Failed to get customer location","GIFT_UPDATED","CART_MSG_SECTION","#shopify-section-header #cart-icon-bubble","undefined","sca_update_url","disable_async_process_fg","add_to_cart_btn_color","cal_gift_for_other_rules","#7367f0","format","redirected","upcartOnAddToCart","original_product_handle","sca_fg_cart_drawer_query","sca_clone_checkout","sca-gift-thumbnail","DISABLE_SLIDER_SECTION_ID","thumbnail","sca_cart_xhr",".selected-variant","innerText","vendor","data-offer","appendChild","handle","?sca_attr_cart","gift_thumbnail","message","SECOMAPP_FREEGIFT","body","trigger_body","api","sca_checkout_form","textContent","div","product_id",'{{ fg_gift_thumbnail_title }}
\n\n \n
\n
\n {{ sca_fg_gift_thumbnail_items_section }}\n
\n \n
\n
\n
\n
',"isDelayShowAdded","cart:change","[data-open]","unit","mode_override_checkout","ajaxProduct:added","addEventListener","priority","offers","sca_fg_codes","status","XMLHttpRequest","start_time","checked","hasDoneProcessCheckout","SLIDECART_CLOSE","{{sca_min_total}}","flex",".icart-inner .icartContain, .rebuy-cart__flyout-body, #slidecarthq .slidecarthq, #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], div[class*=hs-cart-drawer] .hs-site-cart-popup-layout","STICKY_CART_UPDATE","upcartOnCartUpdated","timeoutId","slice","variant_id","customer_tags","offer_id","761623JKOHJs","/cart/change","manual_input_inventory","#sca-gift-thumbnail","sections_url","sca-gift-icon-collection-page","price","not using draft order","START_VALIDATE_CHECKOUT","auto add gift: ","add_to_cart_btn_title","/cart","cookie","#fg-gift-items .btn-add-to-cart","isUpdateCart","SHOW_GIFT_SLIDER","unshift","is_multiply","compare_at_price","display","class","GIFT_THUMBNAIL_ITEMS_SECTION","SLIDECART_UPDATE","invoice_url","prepend","free-gift-icon","total_spend_on_order_history","substring","freegiftProxy","setItem","END_VALIDATE_CHECKOUT","openCart","/cart.js","selling_plan_allocation","sca_deplay_cart_msg","formatter","36nBDwYT",'\n {{ fg_variant_title }}\n ',"GIFT_ITEM_SECTION",' \n
\n \n \n \n \n \n ',"openSlider","select_gift_btn","70%","sca-fg-form-icon-product-page","srcElement","secomappGetCartRunning","#sca_fg_section_gift_item","gift_settings"];return(_0x60ce=function(){return $})()}function _0x44cd($,x){let e=_0x60ce();return(_0x44cd=function($,x){return e[$-=460]})($,x)}!function($,x){let e=_0x44cd,t=$();for(;;)try{let a=-parseInt(e(552))/1+-parseInt(e(956))/2+-parseInt(e(863))/3*(-parseInt(e(797))/4)+-parseInt(e(611))/5*(-parseInt(e(708))/6)+parseInt(e(644))/7+parseInt(e(665))/8*(-parseInt(e(588))/9)+-parseInt(e(627))/10*(-parseInt(e(851))/11);if(786192===a)break;t.push(t.shift())}catch(i){t.push(t.shift())}}(_0x60ce,786192);try{let $=document[_0x15bc9e(841)](_0x15bc9e(714))?.[_0x15bc9e(1003)]("data-version");if($===_0x15bc9e(812)){window[_0x15bc9e(834)]?.[_0x15bc9e(945)]?.[_0x15bc9e(908)]?.[_0x15bc9e(773)]&&fgGiftIcon&&(window[_0x15bc9e(834)][_0x15bc9e(945)].gift_icon[_0x15bc9e(773)]=fgGiftIcon),window.FGSECOMAPP={},FGSECOMAPP[_0x15bc9e(641)]=null,FGSECOMAPP.cartItems=Object[_0x15bc9e(998)](Shopify?.[_0x15bc9e(942)]??{}),FGSECOMAPP[_0x15bc9e(534)]=[],FGSECOMAPP[_0x15bc9e(940)]=window[_0x15bc9e(834)]?.[_0x15bc9e(898)]??{},FGSECOMAPP[_0x15bc9e(727)]=window[_0x15bc9e(834)]?.appearance??{},FGSECOMAPP.fgAppearanceGiftSlider=FGSECOMAPP[_0x15bc9e(727)]?.[_0x15bc9e(845)]?.[_0x15bc9e(836)],FGSECOMAPP[_0x15bc9e(662)]=FGSECOMAPP.fgAppearance?.[_0x15bc9e(908)],FGSECOMAPP[_0x15bc9e(692)]=FGSECOMAPP[_0x15bc9e(727)]?.[_0x15bc9e(979)],FGSECOMAPP[_0x15bc9e(891)]=[],FGSECOMAPP[_0x15bc9e(597)]=!1,FGSECOMAPP.arrOfferAdded=[],FGSECOMAPP.scaCountRenderEventCheckout=0,FGSECOMAPP.checkIsBlockCheckout=!1,FGSECOMAPP[_0x15bc9e(482)]={...Shopify?.[_0x15bc9e(482)]},FGSECOMAPP[_0x15bc9e(838)]=Shopify?.reRenderCartCustom??void 0,FGSECOMAPP.scaCustomLoadingCheckout=Shopify?.[_0x15bc9e(625)]??void 0,FGSECOMAPP[_0x15bc9e(1012)]={},FGSECOMAPP[_0x15bc9e(540)]=!1,FGSECOMAPP[_0x15bc9e(677)]={},FGSECOMAPP.isUpdateCart=!1,FGSECOMAPP[_0x15bc9e(976)]={},FGSECOMAPP[_0x15bc9e(999)]=Shopify?.[_0x15bc9e(1008)]??_0x15bc9e(732),FGSECOMAPP[_0x15bc9e(906)]={SHOW_GIFT_SLIDER:"fg-gifts:show-slider",GIFT_UPDATED:"fg-gifts:updated",GIFT_ADDED:"fg-gifts:added",CART_AUTO_UPDATED:_0x15bc9e(711),GIFT_TO_CART:_0x15bc9e(835),START_PROCESS_CART:"fg-cart:start-process",END_PROCESS_CART:"fg-cart:end-process",START_VALIDATE_CHECKOUT:_0x15bc9e(790),END_VALIDATE_CHECKOUT:_0x15bc9e(855),FG_CATCH_ADD_CART:"fg-cart:added",FG_CATCH_UPDATE_CART:_0x15bc9e(629)};let x={GIFTS_CART_SECTION_ID:_0x15bc9e(926),GIFTS_CART_SECTION:_0x15bc9e(927),GIFTS_POPUP_SECTION_ID:_0x15bc9e(755),GIFTS_POPUP_SECTION:_0x15bc9e(798),GIFT_ITEM_SECTION_ID:_0x15bc9e(598),GIFT_ITEM_SECTION:_0x15bc9e(787),GIFT_SELECT_SECTION_ID:_0x15bc9e(939),GIFT_SELECT_SECTION:_0x15bc9e(589),DISABLE_SLIDER_SECTION_ID:_0x15bc9e(867),DISABLE_SLIDER_SECTION:'',CART_MSG_SECTION_ID:_0x15bc9e(832),CART_MSG_SECTION:_0x15bc9e(462),CART_MSG_ITEM_SECTION_ID:_0x15bc9e(688),CART_MSG_ITEM_SECTION:_0x15bc9e(833),GIFT_THUMBNAIL_SECTION_ID:"#sca_fg_gift_thumbnail_section",GIFT_THUMBNAIL_SECTION:_0x15bc9e(525),GIFT_THUMBNAIL_ITEMS_SECTION_ID:_0x15bc9e(729),GIFT_THUMBNAIL_ITEMS_SECTION:'',GIFT_ICON_SECTION_ID:_0x15bc9e(767),GIFT_ICON_SECTION:_0x15bc9e(679)},e=()=>{let $=_0x15bc9e,x=FGSECOMAPP[$(727)]?.gift_slider,e=x?.[$(620)]?.[$(622)],t=!C(x)&&void 0!==e&&!e;return t?'\n \n ':""},t=()=>{let $=_0x15bc9e,e=FGSECOMAPP[$(727)]?.[$(845)],t=e?.[$(648)]??{};document[$(721)]($(994))?.[$(539)]&&localStorage.setItem($(915),""+Date.now());let a=document.querySelector(x[$(505)])?.[$(819)]??x[$(465)];return t?.[$(1001)]?a[$(609)](/{{\s*fg_text_disable_slider\s*}}/gm,g(t[$(985)]??$(785))):""},{fetch:a}=window,i=()=>{let $=_0x15bc9e;document.querySelector($(728))?.getAttribute($(987))!==$(777)&&(window[$(479)]=async(...x)=>{let e=$;try{if(x[0][e(693)](e(674))){o(x[1]);let t=200,i=await a(...x)[e(811)]($=>{let x=e;return(t=$[x(536)],$[x(499)])?$:$.json()}).catch($=>{let x=e;console[x(655)]($)});if(document[e(830)](new CustomEvent(FGSECOMAPP[e(906)][e(774)],{detail:{args:x,FGSECOMAPP:FGSECOMAPP}})),x[1].headers?.[e(810)]&&200!==t){let c=JSON[e(875)](x[1][e(518)])?.id,r=document[e(721)](e(932)+c+'"]');return r.innerText=e(883),r.classList.contains(e(750))||r[e(965)][e(978)]("sca-fg-out-stock"),r[e(914)]=!0,r[e(471)][e(722)]="",r.style[e(792)]="#82868b",document[e(654)](e(661))[e(670)]($=>{let x=e;parseInt($[x(1003)]("data-variant"))===c||$[x(965)][x(935)]("sca-fg-out-stock")||($[x(914)]=!1,$[x(471)][x(792)]=FGSECOMAPP[x(727)]?.[x(845)]?.[x(982)]?.[x(495)]??x(497))}),!1}return Shopify?.[e(494)]?$i([e(674),...x[e(548)](1)]).then():(await $i([e(674),...x.slice(1)]),await s(x,i)),new Response(JSON[e(913)](i))}if(!(x[0][e(693)](e(553))||x[0].includes(e(472))))return setTimeout(function(){$b()},1e3),await a(...x);{o(x[1]);let n=200,d=await a(...x)[e(811)]($=>{let x=e;return(n=$[x(536)],$[x(499)])?$:$[x(681)]()}).catch($=>{console.error($)});if(document.dispatchEvent(new CustomEvent(FGSECOMAPP[e(906)][e(874)],{detail:{args:x,FGSECOMAPP:FGSECOMAPP}})),x[1][e(742)]?.[e(630)]&&200!==n)return!1;if(Shopify?.[e(494)])return $i([x[0][e(693)](e(553))?"/cart/change":"/cart/update",...x[e(548)](1)])[e(811)](),new Response(JSON[e(913)](d));{if(await $i([x[0][e(693)](e(553))?"/cart/change":e(472),...x[e(548)](1)]),x[1]?.[e(742)]?.sca_process_gifts)return new Response(JSON[e(913)](d));let l=FGSECOMAPP[e(976)]??d??{};return await s(x,d,l),new Response(JSON[e(913)](l))}}}catch(f){return await a(...x)}})},c=window[_0x15bc9e(537)],r=()=>{Shopify?.disable_override_xhr||(window.XMLHttpRequest=function(){let $=_0x44cd,x=new c;return x.addEventListener($(477),function(x){let e=$;try{let t=x[e(745)]??x.target??x[e(596)],{_url:a}=t;(a?.[e(693)](e(674))||a?.[e(693)](e(553))||a?.[e(693)](e(472)))&&$i("/cart.js").then()}catch(i){console[e(655)]("Error listening XHR",i)}}),x})};FGSECOMAPP[_0x15bc9e(707)]=()=>{let $=_0x15bc9e;try{if(Shopify?.disableShopify_getCart||typeof Shopify?.[$(485)]!==$(761))return;Shopify[$(485)]=async function(x){let e=$;if(!FGSECOMAPP[e(597)]){FGSECOMAPP[e(597)]=!0,await $i(e(584));let t=await $e(e(507));typeof x===e(761)&&(0>FGSECOMAPP[e(891)].indexOf(x)&&FGSECOMAPP[e(891)][e(899)](x),x(t)),FGSECOMAPP[e(597)]=!1}FGSECOMAPP.fetchCheckoutEvents()},"undefined"!=typeof ShopifyAPI&&typeof ShopifyAPI[$(485)]!==$(492)&&(ShopifyAPI.getCart=Shopify?.[$(485)]),typeof Shopify?.api!==$(492)&&typeof Shopify?.[$(520)][$(485)]!==$(492)&&(Shopify.api.getCart=Shopify?.[$(485)])}catch(x){console[$(655)](x)}};let o=$=>{let x=_0x15bc9e;try{let e=$?.body;e instanceof FormData?FGSECOMAPP[x(677)]={sections:e.get(x(929)),sections_url:e[x(823)](x(556))}:typeof e===x(989)&&(e=JSON[x(875)](e),FGSECOMAPP[x(677)]={sections:e?.[x(929)],sections_url:e?.[x(556)]})}catch(t){FGSECOMAPP[x(677)]={}}},n=async()=>{let $=_0x15bc9e;if(Shopify[$(621)])return;let x={freegift_attributes:""};if(!C(FGSECOMAPP[$(671)])){let e=[$(517)];for(let t of FGSECOMAPP[$(671)]){let i=FGSECOMAPP.offers[$(601)](x=>x.id===t[$(949)])?.sub_conditions?.[$(645)];C(i)||e.push(i)}x={freegift_attributes:e[$(682)]()}}try{await a((Shopify?.[$(493)]??$(472))+$(514),{method:$(710),headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":$(766)},body:JSON[$(913)]({attributes:x})})}catch(c){console[$(655)]("Update cart.attributes "+c[$(516)])}},s=async($,x,e)=>{let t=_0x15bc9e;try{if($[1]?.[t(742)]?.sca_process_gifts)return;let i={},c=Object[t(881)](x[t(929)]??{})?.[t(719)]($=>C(FGSECOMAPP[t(677)][$]))??[];if(c&&c[t(783)]&&FGSECOMAPP.isUpdateCart&&(i=await a(t(918)+c[t(920)](",")).then($=>$[t(681)]())),FGSECOMAPP[t(566)]=!1,i={...FGSECOMAPP[t(677)],...i},C(i))return;x[t(929)]={...x[t(929)],...i},C(e)||(e[t(929)]={...x.sections})}catch(r){}},d=async($,x,e)=>{let t=_0x15bc9e;e=e?.[t(682)]();let a=document[t(654)]("#fg-gift-items .btn-add-to-cart");a[t(670)](x=>{let e=t;x[e(914)]=!0;let a=x[e(1003)](e(910))-0;a===$&&(x.style[e(722)]=e(825),x[e(819)]=e(912)),x[e(471)][e(792)]=e(635)});let i=FGSECOMAPP[t(671)][t(601)](x=>e===x[t(949)]?.toString()&&$===x[t(953)]);i?i[t(698)]+=x:FGSECOMAPP.arrOfferAdded[t(568)]({variantId:$,belongs_to_offer:e,quantity:x}),localStorage.setItem("sca_offers_added",LZString[t(680)](JSON[t(913)](FGSECOMAPP[t(671)]))),u(t(613));let c=await fetch((Shopify?.sca_add_url??t(686))+"?sca_add_gift",{method:"POST",headers:{Accept:t(991),"Content-Type":t(991),sca_add_gift:!0},body:JSON.stringify({quantity:x,id:$})}),r=await c[t(681)]();c.ok&&(a[t(670)](x=>{let e=t;x[e(914)]=!0;let a=x.getAttribute(e(910))-0;a===$&&(x.style[e(722)]="6px 0",x[e(819)]=e(844)),x.style[e(792)]=""}),$c()),document[t(830)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(712)],{detail:{gift:r,status:c.ok,FGSECOMAPP:FGSECOMAPP}}))},l=$=>{let x=_0x15bc9e,e=x(475);return!C($)&&(typeof $===x(803)&&($.handle?.[x(693)](e)||$[x(894)]?.[x(693)](x(984)))||typeof $===x(989)&&$.includes(e))},f=$=>{let{selling_plan_allocation:x}=$;return!C(x)&&!C(x?.selling_plan)},u=$=>{let x=_0x15bc9e;try{if(!Shopify?.[x(756)])return;let e=".icartCheckoutBtn, .rebuy-cart__checkout-button, .qsc2-checkout-button, #mu-checkout-button, .satcb-cs-checkout-btn, .hs-checkout-purchase"+x(858)+E("sca_fg_form_checkbox_button_query");document[x(654)](e)[x(670)](e=>{let t=x;FGSECOMAPP[t(765)]($,e).then()})}catch(t){}},_=async($,x)=>{let e=_0x15bc9e;try{if(C($)&&C(x))return;let t={};if(FGSECOMAPP.cartItems?.[e(719)]($=>l($))?.forEach($=>{let x=e;t[$.variant_id]=$[x(698)]}),($=$?.[e(719)]($=>!C($[e(549)])))?.forEach($=>{let x=e;t[$[x(549)]]=(t[$[x(549)]]??0)+($[x(698)]??1)}),Object[e(881)](t)?.[e(670)]($=>{t[$]=t[$]>=0?t[$]:0}),C(Object[e(881)](t)))return;$?.forEach($=>{let x=e,t=FGSECOMAPP.arrOfferAdded[x(601)](e=>$[x(551)]?.toString()===e[x(949)]?.[x(682)]()&&$[x(549)]===e[x(953)]);t?t.quantity+=$[x(698)]:FGSECOMAPP.arrOfferAdded[x(568)]({variantId:$[x(549)],belongs_to_offer:$.offer_id?.[x(682)](),quantity:$.quantity})}),localStorage[e(581)](e(617),LZString[e(680)](JSON[e(913)](FGSECOMAPP.arrOfferAdded))),FGSECOMAPP[e(566)]=!0,u("start"),await fetch((Shopify?.[e(493)]??e(472))+e(911),{method:e(710),headers:{Accept:e(991),"Content-Type":"application/json",sca_process_gifts:!0},body:JSON[e(913)]({updates:t,...FGSECOMAPP[e(677)]})})[e(811)](t=>{let a=e;return t.ok&&$.length&&!x[a(783)]&&$c(),t.json()})[e(811)]($=>{let x=e;FGSECOMAPP[x(677)]=$[x(929)]}),document[e(830)](new CustomEvent(FGSECOMAPP[e(906)][e(704)],{detail:{arrGiftsAdd:$,arrGiftsRemove:x,FGSECOMAPP:FGSECOMAPP}})),"fg-checkout"===document[e(721)](e(728))?.[e(1003)](e(987))&&location.reload()}catch(a){u(e(827)),console.error(a)}},g=($,x=!1)=>{let e=_0x15bc9e;return(""+$)[e(609)](/\$/g,x?"$$$$":e(481))},b=0,p=()=>{let $=_0x15bc9e,a=document[$(841)]($(757));if(a){let i=document[$(721)](x[$(1004)])?.[$(819)]??x[$(909)];a[$(819)]=i[$(609)](/{{\s*fg_slider_title\s*}}/gm,g(FGSECOMAPP.fgAppearanceGiftSlider.gift_popup_title??"Select your free gift!")).replaceAll(/{{\s*sca_fg_disable_slider_section\s*}}/gm,g(e()))}else{let c=localStorage[$(887)]("FGSECOMAPP_HIDDEN_GIFT_POPUP")-0,r=FGSECOMAPP[$(727)]?.[$(845)]?.[$(648)]??{},o=(r?.[$(689)]??0)*6e4,n=!isNaN(c)&&c+o>Date[$(922)]();if(n||(localStorage.removeItem($(915)),!(a=document[$(841)]("freegifts-main-popup-container"))))return;let s=document.querySelector(x[$(788)])?.[$(819)]??x[$(997)];a[$(819)]=s[$(609)](/{{\s*fg_slider_title\s*}}/gm,g(FGSECOMAPP[$(634)].gift_popup_title??"Select your free gift!"))[$(609)](/{{\s*sca_fg_disable_slider_section\s*}}/gm,g(t()+" "+e())),a.classList[$(978)]("sca-is-visible-fg"),b++}},h=($,e)=>{let t=_0x15bc9e,a=document[t(721)](x[t(947)])?.innerHTML??x[t(865)];return $[t(988)]($=>a[t(609)](/{{\s*fg_variant_img\s*}}/gm,g(W($.thumbnail??e),!0))[t(609)](/{{\s*fg_variant_id\s*}}/gm,g($[t(954)]))[t(609)](/{{\s*fg_original_variant_id\s*}}/gm,g($[t(664)]))[t(609)](/{{\s*fg_variant_price\s*}}/gm,g(m($)))[t(609)](/{{\s*fg_original_variant_price\s*}}/gm,g(v($)))[t(609)](/{{\s*fg_variant_title\s*}}/gm,g($[t(769)])))[t(920)](" \n")},m=$=>{let x=_0x15bc9e;return FGSECOMAPP.formatter.format(S($?.[x(558)]))},v=$=>{let x=_0x15bc9e,e=FGSECOMAPP?.[x(940)]?.[x(663)]===x(570)?$?.original_compare_at_price??$?.original_price:$?.original_price;return FGSECOMAPP[x(587)][x(498)](S(e??0))},y=($,x)=>C(Shopify?.products[$])?x??"#":Shopify?.products[$].handle,T=($,x)=>{let e=_0x15bc9e;return FGSECOMAPP[e(634)].show_product_title?C(Shopify?.products[$])?x[e(902)]("\xbb","")[e(902)](/\(\d*% off\)/,"")[e(902)](e(731),"")??"":Shopify?.[e(971)][$][e(809)]:""},C=$=>{let x=_0x15bc9e;if(0===$)return!0;if("number"==typeof $||typeof $==x(962))return!1;if(typeof $==x(492)||null===$)return!0;if(typeof $.length!=x(492))return 0===$.length;let e=0;for(let t in $)$.hasOwnProperty(t)&&e++;return 0===e},E=$=>{let x=_0x15bc9e;try{let e={...FGSECOMAPP[x(482)]},t=e[$];if(t=t?t[x(676)]():null,!C(t)&&t.length>0)try{return document[x(721)](t),", "+t}catch(a){}return""}catch(i){return""}},w=()=>{let $=_0x15bc9e;try{FGSECOMAPP.formatter=new Intl[$(826)](Shopify?.[$(993)]??Shopify?.[$(606)],{style:$(772),currency:Shopify?.[$(772)]?.[$(636)]??$(896)})}catch(x){FGSECOMAPP[$(587)]=new Intl[$(826)]($(718),{style:$(772),currency:Shopify?.[$(772)]?.active??$(896)})}},S=$=>{let x=_0x15bc9e;$=$??0;let e=Shopify?.[x(772)]?.[x(869)]??1;return 1===parseFloat(e)?$:($*e)[x(684)](Shopify?.[x(877)]??2)},I=$=>{let x=_0x15bc9e;try{return $[FGSECOMAPP.sca_price]??$?.final_price??$?.[x(558)]}catch(e){return $?.[x(964)]??$?.price}},A=$=>{let x=_0x15bc9e;return $.filter($=>void 0===$[x(496)]||!0===$.cal_gift_for_other_rules).reduce(($,e)=>$+e[x(698)]*I(e),0)/100},k=$=>{let x=_0x15bc9e;return $[x(719)]($=>void 0===$[x(496)]||$[x(496)]).reduce(($,x)=>$+x.quantity,0)},O=($,x,e)=>{let t=_0x15bc9e,a=x[t(802)];return e?.[t(847)]&&($=$[t(719)]($=>f($))),C(a)?$:$[t(719)]($=>!a.map(x=>{let e=_0x44cd;switch(x[e(782)]){case"variants_ids":return Object[e(998)](x[e(963)]).map($=>$[e(632)])[e(715)]()[e(988)]($=>$.id)[e(693)]($.variant_id);case e(610):return Object[e(881)](x[e(963)]).includes($[e(901)]);case e(969):return Object.keys(x[e(963)])[e(693)]($[e(510)]);case e(467):let t=Object[e(881)](x.value),a=$[e(840)]?.[e(988)]($=>$.id+"")?.[e(719)]($=>t[e(693)]($));return!C(a);default:return!1}}).includes(!1))},D=($,x)=>{let e=_0x15bc9e;return $?.[e(988)]($=>{let t=e;if(typeof $.cal_gift_for_other_rules!==t(492)){let a=FGSECOMAPP.arrOfferAdded?.[t(719)](x=>x[t(953)]===$[t(549)]),i=a?.reduce(($,x)=>$+x[t(698)],0);if(i===$.quantity){let c=a?.filter(e=>{let a=t;if(e[a(949)]?.[a(682)]()===x[a(682)]())return!1;let i=FGSECOMAPP[a(534)]?.[a(601)]($=>$.id?.[a(682)]()===e[a(949)]?.toString()),c=i[a(599)]??{},r=I($);return c[a(496)]&&r>0})?.[t(846)](($,x)=>$+x[t(698)],0);return{...$,cal_gift_for_other_rules:c>0,quantity:c??0}}return{...$,cal_gift_for_other_rules:!1,quantity:0}}return{...$}})??[]},P=($,x,e,t)=>{let a=_0x15bc9e,i=0,c=O(x,$,t);c=D(c,$[a(551)]);let r;return $[a(529)]===a(880)?r=A(c):$[a(529)]===a(842)&&(r=k(c)),r>=$[a(651)]&&(null===$.max_amount||r<=$[a(817)])&&(i=e[a(705)],$[a(569)]&&(i=Math[a(466)](r/$[a(651)])*i)),i},L=($,x,e,t)=>{let a=_0x15bc9e,i={},c=[],r=0;return x[a(988)](x=>{let i=a,o=P(x,$,e,t);0!==o&&(r=o),c[i(899)](o>0)}),i[a(748)]=r,i.condition_result=c,i},R=($,x)=>{let e=_0x15bc9e,t=!1;return 1===$[e(783)]?t=$[0]:2===$[e(783)]&&("and"===x&&(t=$[0]&&$[1]),"or"===x&&(t=$[0]||$[1])),t},G=($,x)=>{let e=_0x15bc9e,t=$?.map($=>$[e(549)]);FGSECOMAPP[e(671)]=FGSECOMAPP[e(671)][e(719)]($=>t?.[e(693)]($[e(953)]));let a=x[e(931)].map($=>$[e(954)]),i=FGSECOMAPP[e(671)][e(719)]($=>$[e(949)]?.[e(682)]()===x.id?.[e(682)]())?.[e(988)]($=>{let x=e;return $[x(953)]}),c=$[e(719)]($=>{let x=e;return l($)&&($.cal_gift_for_other_rules=!1),a[x(693)]($[x(549)])&&i[x(693)]($[x(549)])}),r=c.map($=>{let t=e,a=x[t(599)];$[t(496)]=a[t(496)],$[t(949)]=x.id?.[t(682)]();let i=FGSECOMAPP[t(671)]?.[t(719)](e=>e[t(949)]?.[t(682)]()!==x.id?.[t(682)]()&&$[t(549)]===e[t(953)])?.[t(846)](($,x)=>$+x[t(698)],0);return{...$,quantity:$[t(698)]-i}});return r[e(719)]($=>{let t=e;return $[t(949)]?.[t(682)]()===x.id?.[t(682)]()})},N=$=>{let x=_0x15bc9e,e=$[x(981)][x(719)](e=>e.belongs_to_offer?.[x(682)]()!==$.id?.[x(682)]())[x(988)]($=>$[x(524)]);return Object.values($.gift_products)[x(719)]($=>!e[x(693)]($[x(691)]))},F=($,x)=>{let e=_0x15bc9e,t=G($,x),a=L($,x.offer_conditions,x[e(599)],x[e(746)]?.[e(607)]),i=R(a[e(904)],x[e(741)]);if(i){let c=t.filter($=>$[e(949)]?.[e(682)]()===x.id?.[e(682)]()).reduce(($,x)=>$+x[e(698)],0);a.max_gifts_can_get=a[e(748)]-c,x[e(981)]=t,x[e(861)]=a.max_gifts_can_get}else x[e(981)]=t,x.giftsAvailable=0;return typeof FGSECOMAPP[e(641)]===e(972)&&x.priority>FGSECOMAPP[e(641)]&&(i=!1),i||!x[e(667)]||FGSECOMAPP[e(641)]!==x.priority||C(t)||(FGSECOMAPP[e(641)]=null),x[e(816)]=i,x[e(667)]&&i&&(null==FGSECOMAPP[e(641)]||x[e(533)]<=FGSECOMAPP.maxOfferPriority)&&FGSECOMAPP[e(641)]!==x[e(533)]&&(FGSECOMAPP[e(641)]=x.priority),x},M=$=>{let x=_0x15bc9e,e=$+"=",t=document[x(564)][x(771)](";");for(let a=0;a{let e=_0x15bc9e,t=!0,a=!0,i=!0,c=!0;if(!C($[e(746)]?.specific_link_address)){let r=M(e(535));t=r&&JSON[e(875)](r)[e(693)]($.sub_conditions[e(645)])}if(!C($[e(746)]?.[e(550)])){let{customer_tags:o}=$[e(746)],n=o?.[e(699)]?.some($=>x[e(758)][e(894)]?.[e(693)]($));a=o?.type_customer_tags==="include"?n:!n}if(!C($[e(746)]?.customer_locations)){let{customer_locations:s}=$[e(746)],d=s?.[e(740)]?.[e(693)](FGSECOMAPP[e(924)]);c=s?.[e(656)]===e(839)?d:!d}if(!C($[e(746)]?.[e(463)])){let l=!0,f=$[e(746)].customer_order_history,u=x[e(758)][e(461)]??[];if(f[e(624)]){let _=Date[e(875)](f[e(624)])/1e3;u=u[e(719)]($=>$.created_at>=_)}if(!C(f?.totarrCustomerOrderal_spend_on_order_history)&&(0!==f[e(578)][e(651)]||0!==f[e(578)][e(817)])){let g=f[e(578)][e(651)],b=f[e(578)].max_amount,p=u[e(846)](($,x)=>$+x.total_price,0)/100;l&=(p>=g||!g)&&(p<=b||!b)}if(!C(f?.[e(975)])&&(0!==f[e(975)][e(651)]||0!==f[e(975)].max_amount)){let h=x[e(758)][e(857)]/100,m=f[e(975)][e(651)],v=f[e(975)][e(817)];l&=(h>=m||!m)&&(h<=v||!v)}if(!C(f?.[e(725)])){let y=!(0!==f[e(725)].min_amount||0!==f[e(725)][e(817)]),T=u[e(783)],E=f.number_of_order[e(651)],w=f.number_of_order.max_amount;l&=y?C(u):(T>=E||!E)&&(T<=w||!w)}if(f?.[e(672)]){let S=x[e(758)].freegifts??[],I=$.gift_items?.[e(884)]($=>S[e(693)]($[e(954)]))||$[e(931)]?.some($=>S[e(693)]($[e(664)]+"_"+($[e(762)]-$.price)*100));l&=!I}i=l}return t&&a&&i&&c},H=($,x,e)=>{let t=_0x15bc9e,a=[],i=[],c=[],r=[];for(let o of x){let n=F($,o);if(!n[t(816)]){n[t(981)][t(783)]>0&&n[t(981)][t(670)]($=>{let x=t;i.push({variant_id:$[x(549)],quantity:$[x(698)],offer_id:o.id})});continue}if(n[t(861)]<0){n[t(981)][t(670)]($=>{let x=t;i[x(899)]({variant_id:$.variant_id,quantity:$.quantity,offer_id:o.id})});continue}0!==n[t(861)]&&(o.sub_conditions?q(o,SECOMAPP)&&a.push(o):a[t(899)](o))}if($?.forEach($=>{let x=t;C($[x(949)])&&l($)&&i[x(899)]({variant_id:$.variant_id,quantity:$[x(698)],offer_id:$.belongs_to_offer?.[x(682)]()})}),e||C(i)){let s=a[t(988)]($=>{let x=t;return{id:$.id,offerName:$[x(696)],offerPriority:$.priority,stopLowerPriority:$.stop_lower_priority,gifts:N($),giftsAvailable:$[x(861)],giftsAdded:$[x(981)],isReachConditions:$[x(816)]}});if(!C(s)){let d={};for(let f of s){let u=j(FGSECOMAPP[t(940)],f);u?.length>0?c=c[t(713)]([...u]):f[t(735)][t(988)]($=>{let x=t;d[$[x(691)]]={...$,belongs_to_offer:f.id?.[x(682)]()}})}r=Object[t(998)](d)??[]}}return{arrGiftsAdd:c,arrGiftsRemove:i,arrGiftsData:r}},U=($,x)=>{let e=_0x15bc9e,t=new Set;return $?.[e(670)]($=>t[e(978)]($.offer_id)),t[e(670)]($=>{let x=e,t=FGSECOMAPP[x(534)]?.find(x=>x.id?.toString()===$?.toString());if(C(t)||!t.isReachConditions){FGSECOMAPP.arrOfferAdded=FGSECOMAPP[x(671)]?.[x(719)](e=>e.belongs_to_offer?.[x(682)]()!==$?.[x(682)]());return}if(t[x(861)]>=0)return;let a=[],i=FGSECOMAPP.arrOfferAdded?.[x(719)](e=>e[x(949)]?.toString()===$?.[x(682)]())??[];if(t?.[x(599)]?.auto_add_all_gifts)a=a[x(713)]([...i]),t[x(861)]=0;else for(let c of i){if(t.giftsAvailable>=0)break;t.giftsAvailable+=c[x(698)],t.giftsAvailable<=0?a.push({...c}):(c[x(698)]=t[x(861)],t[x(861)]=0)}a?.forEach($=>{let e=x;FGSECOMAPP.arrOfferAdded=FGSECOMAPP[e(671)]?.[e(719)](x=>$[e(953)]!==x.variantId||$.belongs_to_offer?.toString()!==x.belongs_to_offer?.[e(682)]())})}),x?.filter($=>{let x=e;return l($)&&($[x(698)]=FGSECOMAPP[x(671)]?.[x(719)](e=>$[x(549)]===e[x(953)])?.[x(846)](($,e)=>$+e[x(698)],0)??0),$.quantity>0})??[]},B=async($,x)=>{let e=_0x15bc9e,{arrGiftsAdd:t,arrGiftsRemove:a,arrGiftsData:i}=H($,x,!1),c=U(a,$);if(!C(a)){let r=H(c,x,!0);U(r?.[e(739)],$),t=r?.arrGiftsAdd,a=a?.concat(r?.[e(739)])??[],i=r?.arrGiftsData}return await _(t,a),n()[e(811)](),i},j=($,x)=>{let e=_0x15bc9e,t=[];if($[e(720)]){let a=x[e(735)],i=a.reduce(($,x)=>$+x[e(470)][e(783)],0),c=FGSECOMAPP.offers[e(719)]($=>$.id===x.id),r=c[0][e(599)][e(966)],o=c[0][e(955)];if(1===i||r||o[e(536)]){if($[e(890)]&&!X(a)||$?.compare_gift_price_with_product&&!Y(a))return!1;if(o.status){if(o.type===e(632)){let n=FGSECOMAPP[e(942)];n=n[e(719)]($=>{let x=e;return $.product_id===a[0][x(879)]});let s=a[0].variants[e(719)]($=>{let x=e;return n[0][x(549)]===$[x(664)]})[0];if(0===s[e(558)])return t[e(899)]({variant_id:s.variant_shopify_id,quantity:x[e(861)],offer_id:x.id}),t}else if(r){let d=a?.[e(846)](($,x)=>($+x?.variants?.[e(783)])??0,0);if(!d)return!1;let l=(x?.[e(861)]??0)/d;for(let f of a)for(let u of f[e(470)])t[e(899)]({variant_id:u[e(954)],quantity:l,offer_id:x.id});return t}}else{if(r){let _=a?.[e(846)](($,x)=>($+x?.[e(470)]?.length)??0,0);if(!_)return!1;let g=(x?.[e(861)]??0)/_;for(let b of a)for(let p of b.variants)t[e(899)]({variant_id:p[e(954)],quantity:g,offer_id:x.id});return t}{let h=a[0][e(470)][0];if(0===h.price)return console[e(990)](e(561)+a[0][e(470)][0][e(954)]+" "+a[0][e(470)][0][e(769)]),t[e(899)]({variant_id:h[e(954)],quantity:x[e(861)],offer_id:x.id}),t}}}}return!1},z=$=>{let x=_0x15bc9e;return $===x(602)},W=$=>{let x=_0x15bc9e;try{let e=Shopify[x(886)]??FGSECOMAPP.fgAppearance?.gift_slider?.[x(620)]?.[x(852)]??x(822),t=new URL($),a=new URLSearchParams(e);return a.forEach(($,e)=>t[x(986)][x(824)](e,$)),t.toString()}catch(i){return $}},K=$=>{let e=_0x15bc9e,t=$;if(FGSECOMAPP[e(634)].show_gift_for_customer===e(605))for(let a of(t=[],$)){let i=a.variants;i&&i[e(783)]&&i[e(670)]($=>t[e(899)]({...a,thumbnail:$[e(506)],variants:[$]}))}let c=document.getElementById(e(946));c&&(c[e(819)]=t[e(988)]($=>{let t=e,a=$?.[t(470)][0]??{},i=z(a[t(769)]),c=$[t(470)]?.length,r=g(T($.original_product_shopify_id,$.title)),o=FGSECOMAPP.fgAppearanceGiftSlider?.[t(959)]===t(605),n=document[t(721)](x[t(970)])?.[t(819)]??x[t(590)];return n[t(609)](/{{\s*fg_product_handle\s*}}/gm,g(y($[t(879)],$[t(501)]),!0))[t(609)](/{{\s*fg_product_img\s*}}/gm,g(W($[t(506)]),!0))[t(609)](/{{\s*fg_product_img_alt\s*}}/gm,r)[t(609)](/{{\s*fg_product_title\s*}}/gm,r)[t(609)](/{{\s*fg_gifts_check_show_by_variants\s*}}/gm,g(o&&FGSECOMAPP[t(634)][t(923)]?"":t(723)))[t(609)](/{{\s*fg_gifts_check_show_by_products\s*}}/gm,o?t(723):"")[t(609)](/{{\s*fg_check_selected_variant\s*}}/gm,1===c?t(608)+(i?"sca-d-none":""):"").replaceAll(/{{\s*fg_variant_title\s*}}/gm,g(1!==c?FGSECOMAPP[t(634)][t(593)]??t(862):a.variant_title))[t(609)](/{{\s*fg_original_price\s*}}/gm,g(v(a)))[t(609)](/{{\s*fg_gift_price\s*}}/gm,g(m(a)))[t(609)](/{{\s*sca_fg_variant_select_section\s*}}/gm,g(h($[t(470)],$[t(506)])))[t(609)](/{{\s*fg_product_belongs_to_offer\s*}}/gm,$[t(949)])[t(609)](/{{\s*fg_variant_id\s*}}/gm,g(1===c?a[t(954)]:""))[t(609)](/{{\s*fg_add_to_cart\s*}}/gm,g(FGSECOMAPP.fgAppearanceGiftSlider?.[t(562)]??t(473)))})[e(920)](" \n"),new Glider(document[e(721)](e(907)),{slidesToShow:1,slidesToScroll:1,draggable:!1,dots:FGSECOMAPP[e(634)][e(882)]?e(736):null,arrows:{prev:e(870),next:e(933)},responsive:[{breakpoint:1024,settings:{slidesToShow:FGSECOMAPP[e(634)].number_product_slider??4,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:2,slidesToScroll:1}}]}),document[e(830)](new CustomEvent(FGSECOMAPP[e(906)].SHOW_GIFT_SLIDER,{detail:FGSECOMAPP})))},V=async()=>{let $=_0x15bc9e;try{let x=window[$(834)]?.[$(534)]??[];for(let e in await $h(),Shopify?.[$(971)])C(Shopify?.[$(971)][e]?.id)&&delete Shopify?.[$(971)][e];let t=[];return x[$(670)](x=>{let e=$;try{let a=JSON[e(875)](JSON.stringify(x));if(x[e(955)][e(536)]){let i=x.offer_conditions[0][e(802)],c=i[0].value,r=[...a[e(931)]],o=[...a.gift_products];if(x.gift_should_the_same[e(782)]===e(632))for(let n in c){let s=c[n]?.[e(632)]??[];for(let d of s){a[e(484)][0].product_narrow=[{type:i[0][e(782)],value:{[n]:{...c[n],variant:[{...d}]}}}],a[e(931)]=r[e(719)]($=>$[e(879)]+""===n&&d.id===$[e(664)]),a[e(753)]=o[e(719)]($=>$[e(879)]+""===n),a[e(753)][0][e(470)]=[...a[e(931)]];let l=a[e(599)].number_of_gift_can_receive,f=a[e(599)][e(966)];a[e(599)][e(966)]&&(l=a.gift_items.length),1===a.gift_items[e(783)]&&0===a.gift_items[0][e(558)]&&(f=!0),t[e(899)](JSON[e(875)](JSON[e(913)]({...a,gift_settings:{...a[e(599)],number_of_gift_can_receive:l,auto_add_all_gifts:f},id:a.id+"_"+c[n][e(513)]+"_"+d.id})))}}else if(x[e(955)][e(782)]===e(486))for(let u in c){a[e(484)][0][e(802)]=[{type:i[0][e(782)],value:{[u]:c[u]}}],a[e(931)]=r.filter($=>$[e(879)]+""===u),a.gift_products=o.filter($=>$[e(879)]+""===u);let _=a[e(599)][e(705)],g=a[e(599)][e(966)];a[e(599)].auto_add_all_gifts&&(_=a[e(931)].length),1===a[e(931)][e(783)]&&0===a.gift_items[0].price&&(g=!0),t[e(899)](JSON[e(875)](JSON.stringify({...a,gift_settings:{...a[e(599)],number_of_gift_can_receive:_,auto_add_all_gifts:g},id:a.id+"_"+c[u][e(513)]})))}}}catch(b){console[e(655)](b)}}),(x=(x=(x=x?.filter(x=>!x?.[$(955)]?.[$(536)])?.[$(713)](t))?.[$(988)](x=>{let e=$;return{...x,id:x.id[e(682)]()}}))?.[$(719)](x=>{let e=$;if(!$$(x[e(538)],x[e(694)]))return!1;let t=!C(x[e(746)]?.[e(463)]||x[e(746)]?.[e(550)]);if(x[e(746)]&&(!q(x,SECOMAPP)||t&&C(SECOMAPP[e(758)].email)))return!1;let a={...Shopify?.[e(971)]},i=!1;if(FGSECOMAPP.fgSettings[e(683)]===e(760)){x[e(931)]=x?.[e(931)][e(719)]($=>{let x=e,t=a[$.original_product_shopify_id]?.variants_quantity??{};return t[$[x(664)]]>0})??[];let c=x[e(931)]?.map($=>$.variant_shopify_id);x[e(753)]=x?.[e(753)]?.[e(719)]($=>{let x=e;return $.variants=$?.[x(470)]?.[x(719)]($=>{let e=x;return c?.includes($[e(954)])}),$?.[x(470)]?.[x(783)]>0}),i=!0}else if(FGSECOMAPP[e(940)][e(554)]){x[e(931)]=x?.gift_items[e(719)]($=>{let x=e,t=a[$[x(691)]]?.[x(943)]??{};return t[$[x(954)]]>0});let r=x[e(931)]?.[e(988)]($=>$[e(954)]);x[e(753)]=x?.gift_products?.filter($=>{let x=e;return $[x(470)]=$?.[x(470)]?.[x(719)]($=>{let e=x;return r?.[e(693)]($[e(954)])}),$?.variants?.[x(783)]>0}),i=!0}return i&&x[e(599)]?.auto_add_all_gifts&&(x[e(599)].number_of_gift_can_receive=x.gift_items?.[e(783)]),!i||x[e(931)]&&x[e(931)][e(783)]>0}))?.[$(988)](x=>{let e=$,t=x[e(931)][e(988)]($=>$[e(879)]);return x.gift_products=x[e(753)]?.filter($=>t.includes($.original_product_shopify_id)),x[e(484)]?.[e(670)]($=>{let x=e;$.unit===x(880)&&($[x(651)]=S($[x(651)]),$.max_amount=C($[x(817)])?$.max_amount:S($.max_amount))}),x})}catch(a){return console[$(655)](a),[]}},X=$=>{let x=_0x15bc9e;for(let e of FGSECOMAPP[x(942)]){let t=e[x(524)];if($[0][x(879)]===t)return!1}return!0},Y=$=>{let x=_0x15bc9e;for(let e of FGSECOMAPP[x(942)]){let t=$[0].variants[0].original_price;if("compare_at_price"===FGSECOMAPP[x(940)].compare_gift_price_with_product&&(t=$[0][x(470)][0][x(941)]),t>I(e)/100)return!1}return!0},J=async()=>{let $=_0x15bc9e;try{let x=[];window[$(834)]?.[$(534)]?.forEach(e=>{let t=$,a=[];e.gift_products[t(670)]($=>{let x=t;a[x(899)]($.clone_product_handle,$[x(501)])}),x=[...x,...a]}),await $g(x=(x=[...new Set(x)])[$(719)](x=>C(FGSECOMAPP[$(1012)][x]))),Object[$(998)](FGSECOMAPP[$(1012)])?.forEach(x=>{let e=$,{info:t}=x;C(t)||C(t?.id)||(Shopify[e(971)][t.id]={...t})})}catch(e){console[$(655)](e)}},Q=async $=>{let x=_0x15bc9e;w(),FGSECOMAPP[x(640)](),(FGSECOMAPP?.[x(940)]?.[x(683)]==="stop_offer"||FGSECOMAPP?.[x(940)]?.[x(554)])&&await J(),FGSECOMAPP[x(534)]=await V(),FGSECOMAPP[x(707)](),i(),r();try{C($)?(FGSECOMAPP.arrOfferAdded=[],localStorage[x(581)]("sca_offers_added",LZString[x(680)](JSON[x(913)](FGSECOMAPP[x(671)])))):FGSECOMAPP[x(671)]=JSON[x(875)](LZString[x(804)](localStorage[x(887)](x(617))))}catch(e){FGSECOMAPP[x(671)]=[],localStorage[x(581)](x(617),LZString[x(680)](JSON[x(913)](FGSECOMAPP.arrOfferAdded)))}let t={};FGSECOMAPP[x(534)]?.forEach($=>{t[$.id]=$?.gift_items?.map($=>$.variant_shopify_id)});let a=Object[x(881)](t);FGSECOMAPP[x(671)]=FGSECOMAPP.arrOfferAdded?.filter($=>a?.[x(693)]($[x(949)]?.[x(682)]())&&t[$[x(949)]?.[x(682)]()][x(693)]($[x(953)]));let c={};FGSECOMAPP[x(671)]?.[x(670)]($=>{let e=x,t=c[$[e(949)]+"_"+$[e(953)]]??{};c[$[e(949)]+"_"+$.variantId]={...$,belongs_to_offer:$[e(949)]?.[e(682)](),quantity:(t?.[e(698)]??0)+($?.quantity??0)}}),FGSECOMAPP[x(671)]=Object[x(998)](c),localStorage[x(581)]("sca_offers_added",LZString.compressToBase64(JSON.stringify(FGSECOMAPP[x(671)])));let o=await B($,FGSECOMAPP[x(534)]);await $x(o),$p(),$3(),$b()},Z=function(){let $=_0x15bc9e,x=document[$(654)]($(528)),e=document[$(654)]("#freegifts-main-popup-container [data-close]"),a="sca-is-visible-fg",i=document[$(654)]("#fg-gift-items .btn-add-to-cart"),c=i[$(783)];for(let r=0;r{let e=$;x[e(958)]===document[e(721)](e(967))&&(document.querySelector(e(967))[e(965)][e(905)](a),t())}),document[$(532)]($(737),x=>{let e=$;x[e(643)]===e(474)&&document.querySelector(e(967))&&(document[e(721)](e(967))[e(965)][e(905)](a),t())}),document[$(654)]($(821))[$(670)](x=>x.addEventListener($(921),function(){let x=$;this[x(878)]("tabindex",1),this[x(660)](),this[x(965)][x(843)](x(636)),this[x(721)](x(749))[x(965)][x(843)](x(937))})),document[$(654)]($(821))[$(670)](x=>document[$(532)]($(921),function(e){let t=$,a=x[t(935)](e[t(958)]);a||(x[t(965)][t(905)](t(636)),x.querySelector(".dropdown-menu")[t(965)][t(905)](t(937))),document[t(654)](t(600)).forEach($=>{let x=t;$.disabled=!0,$[x(471)][x(792)]=x(635)})})),document.querySelectorAll($(657))[$(670)](x=>{let e=$;x[e(532)](e(921),function(){let $=e,x=this.getAttribute("id"),t=this[$(1003)]($(480)),a=this[$(1003)]($(1011)),i=this[$(1003)]("data-original-price"),c=this.getAttribute($(916)),r=this[$(885)][$(885)][$(885)][$(885)];r.querySelector($(897))[$(878)]("src",t);let o=new URL(r[$(721)](".gift-original-url").href);o.searchParams.set($(632),c),r[$(721)]($(703))[$(948)]=o[$(682)]();let n=this.parentElement.parentElement[$(885)];n[$(721)]($(872)).textContent=i,n[$(721)]($(944))[$(522)]=a;let s=n?.[$(721)](".btn-add-to-cart");s[$(878)]($(910),x),s.disabled=!1,s[$(471)]="";let d=this[$(885)].parentElement[$(721)]($(508));d[$(965)].add($(636)),d.innerHTML=this[$(509)]})}),document[$(654)]($(565))[$(670)](x=>x[$(532)]("click",async function(){let x=$,e=this[x(1003)]("data-variant")-0,t=this.getAttribute(x(511));try{await d(e,1,t);let i=document[x(721)](x(967));i&&(FGSECOMAPP[x(526)]=!0,await new Promise($=>setTimeout($,800)),i[x(965)][x(905)](a)),window.location[x(948)][x(693)](x(563))?location[x(938)]():typeof Shopify?.getCart===x(761)&&await Shopify?.[x(485)](0===FGSECOMAPP[x(891)].length?function(){}:FGSECOMAPP.fgCallback[0])}catch(c){console[x(655)](c)}}))},$$=($,x)=>{let e=_0x15bc9e;if($){let t=new Date,a=t[e(780)](),i=new Date($)[e(780)]();if(!x)return a>=i;{let c=new Date(x)[e(780)]();return a>=i&&a<=c}}return!1},$x=async $=>{let x=_0x15bc9e;if(FGSECOMAPP.fgSettings?.[x(795)])for(let e of FGSECOMAPP[x(942)])l(e)&&($=$.filter($=>$[x(691)]!==e[x(524)]));if(FGSECOMAPP[x(940)]?.[x(890)])for(let t of FGSECOMAPP[x(942)])$=$[x(719)]($=>$[x(879)]!==t.product_id);if(FGSECOMAPP.fgSettings?.compare_gift_price_with_product)for(let a of FGSECOMAPP[x(942)])$=$.filter($=>{let e=x;return $[e(470)]=$[e(470)][e(719)]($=>{let x=e,t=$.original_price;return FGSECOMAPP[x(940)]?.compare_gift_price_with_product===x(570)&&(t=$[x(941)]),t<=I(a)/100}),!C($[e(470)])});$&&$[x(783)]>0&&(FGSECOMAPP[x(526)]?(await new Promise($=>setTimeout($,1500)),FGSECOMAPP[x(526)]=!1,p(),K($)):(p(),K($))),Z(),FGSECOMAPP[x(640)](),FGSECOMAPP.renderPromotionMessage(FGSECOMAPP.offers),$a=[]},$0=async $=>{let x=_0x15bc9e;$a=[];let e=new URL(window[x(854)][x(948)]);e[x(986)].set("sca_fetch_cart",""),a(e[x(682)]())[x(811)]($=>$.text()).then($=>{let e=x,t=new DOMParser,a=t[e(960)]($,e(487)),i=e(738)+E(e(502)),c=".fg-secomapp-cart-icon "+E("sca_fg_cart_icon_query"),r=document[e(721)](i),o=!1;r&&(o=!0,r[e(819)]=a.querySelector(i)?.[e(819)]??r.innerHTML);let n=document[e(721)](c);n||(n=document[e(721)]("#shopify-section-header #cart-icon-bubble, .shopify-section.section-header #cart-icon-bubble")),n&&(o=!0,n[e(819)]=a.querySelector(c)?.innerHTML??a[e(721)](e(491))?.innerHTML??n[e(819)]),o||console[e(990)](e(895))}),typeof FGSECOMAPP?.[x(838)]===x(761)&&await FGSECOMAPP.reRenderCartCustom(),document[x(830)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[x(489)],{detail:FGSECOMAPP})),u(x(827)),setTimeout(function(){$x($)},800)},$e=async $=>{let x=_0x15bc9e,e=await a(x(700)+($??""),{method:"GET",headers:{Accept:"application/json","Content-Type":x(991)}})[x(811)]($=>$[x(681)]()),t=e.items;return FGSECOMAPP[x(976)]=e,FGSECOMAPP.cartItems=t?.[x(988)]($=>{let e=x;return{...FGSECOMAPP[e(942)]?.[e(601)](x=>x.id===$.id),...$}})??[],e},$t=async()=>{let $=_0x15bc9e,x=FGSECOMAPP.SHOPIFY_CART;try{await a(SECOMAPP[$(580)],{method:$(866),headers:{"Content-Type":$(1005)}}).then(async e=>{let t=$,a=await e[t(681)]();FGSECOMAPP[t(942)]=a?.[t(789)]?.[t(988)]($=>{let x=t;return{...FGSECOMAPP.cartItems?.[x(601)](x=>x.id===$.id),...$[x(486)],collections:$.collections,tags:$[x(894)]}})??[],FGSECOMAPP.SHOPIFY_CART=a?.shopify_cart??{},x=FGSECOMAPP[t(976)]}).catch(async e=>{let t=$;console[t(655)](t(873)+e.message),x=await $e()})}catch(e){console[$(655)]($(996),e[$(516)]),x=await $e()}return x},$a=[],$i=async $=>{let x=_0x15bc9e;try{$a[x(899)]($===x(584)?$:$[0]),document[x(830)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS.START_PROCESS_CART,{detail:{events:$a,FGSECOMAPP:FGSECOMAPP}})),await $t();let e=await B(FGSECOMAPP[x(942)],FGSECOMAPP[x(534)]);FGSECOMAPP.renderPromotionMessage(FGSECOMAPP[x(534)]);let t=!1;return $[0][x(673)]("/cart/add")&&JSON[x(913)]($[1].headers??[])[x(693)](x(810))?(console[x(990)]("event add gift to cart from popup",[...$a]),await $0(e),t=!0):$[0][x(673)](x(472))&&JSON[x(913)]($[1][x(742)]??[])[x(693)]("sca_process_gifts")?(console[x(990)](x(831),[...$a]),await $0(e),t=!0):(console[x(990)](x(659),[...$a]),await $x(e)),t&&(window[x(854)][x(948)][x(693)](x(563))||document[x(721)]("#secomapp_freegifts_version")?.[x(1003)](x(987))===x(777))&&($a=[],location.reload()),document[x(830)](new CustomEvent(FGSECOMAPP[x(906)][x(900)],{detail:{events:$a,FGSECOMAPP:FGSECOMAPP}})),FGSECOMAPP[x(942)]}catch(a){console[x(655)](a)}},$c=()=>{let $=_0x15bc9e;if(!Shopify?.enable_toast_added)return;let x=document[$(721)]($(794));if(!x)return;x[$(819)]="";let e=Shopify?.[$(876)]??$(650),t=document[$(805)]("li");t[$(1002)]="sca-fg-toast sca-fg-success",t[$(819)]=$(612)+e+$(591),x.appendChild(t),t[$(547)]=setTimeout(()=>$r(t),3e3),document[$(721)]("#close-fg-toast")?.addEventListener($(921),()=>$r(t))},$r=$=>{let x=_0x15bc9e;$[x(965)].add(x(642)),$[x(547)]&&clearTimeout($[x(547)]),setTimeout(()=>$[x(905)](),500)},$o=$=>{let x=_0x15bc9e;try{let e=FGSECOMAPP[x(940)]?.[x(530)],t=e===x(519)?$[x(958)]:$[x(745)]??$[x(958)];t?.[x(1e3)]("sca_handle_checkout")||(t=document[x(721)](x(619))?.[x(701)]);let a=JSON[x(875)](t.getAttribute(x(815)));if(t[x(963)]=a?.[x(963)]??"",t[x(819)]=a?.[x(819)]??"",t.disabled=!1,t[x(859)](x(921),$n),t.removeAttribute("sca_handle_checkout"),e===x(919)){t[x(701)][x(721)]("[sca_root_checkout]")[x(921)]();return}e===x(519)&&window[x(859)](x(921),$s,!0),t[x(921)]()}catch(i){window.location[x(902)]((Shopify?.[x(928)]?.[x(778)]??"/")+x(992)),console[x(655)](i[x(516)])}};FGSECOMAPP.customLoadingCheckout=async($,x)=>{let e=_0x15bc9e;if($===e(613)&&x)x[e(914)]=!0,x[e(878)](e(815),JSON.stringify({innerHTML:x[e(819)],value:x[e(963)]})),typeof FGSECOMAPP?.[e(625)]===e(761)?await FGSECOMAPP.scaCustomLoadingCheckout($):(x.value=Shopify?.sca_fg_value_checkout??e(917),x[e(819)]=Shopify?.sca_fg_innerHTML??'\n Loading... \n
');else if($===e(827)&&x){if(typeof FGSECOMAPP?.[e(625)]===e(761))await FGSECOMAPP[e(625)]($);else{let t=JSON.parse(x[e(1003)](e(815)));x.value=t?.[e(963)]??"",x[e(819)]=t?.[e(819)]??""}x[e(914)]=!1}else $===e(655)?(typeof FGSECOMAPP?.[e(625)]===e(761)&&await FGSECOMAPP[e(625)]($),window[e(854)][e(902)]((Shopify?.[e(928)]?.[e(778)]??"/")+e(992))):console[e(655)](e(483),$)};let $n=async $=>{let x=_0x15bc9e;try{$.preventDefault(),$[x(690)](),$.stopImmediatePropagation();let e=FGSECOMAPP[x(940)]?.mode_override_checkout,t=e===x(519)?$.target:$.currentTarget??$[x(958)],{form:i}=t;if(await FGSECOMAPP[x(765)](x(613),t),document.dispatchEvent(new CustomEvent(FGSECOMAPP[x(906)][x(560)],{detail:FGSECOMAPP})),FGSECOMAPP[x(638)])return!1;FGSECOMAPP[x(638)]=!0;try{let c=new URL(i[x(706)]);c[x(986)][x(856)](x(521),""),await a(c[x(682)](),{method:x(710),body:new FormData(i)})}catch(r){console[x(990)](x(868))}if(C(FGSECOMAPP.offers)&&C(FGSECOMAPP.cartItems?.[x(601)]($=>l($))))return console[x(990)]("not have orders and gifts"),$o($),!1;await $t();let o=[...FGSECOMAPP[x(942)]],n=!1;for(let s of FGSECOMAPP[x(534)])if(s[x(981)]&&s.giftsAdded[x(783)]){let d=F(o,s),f=$$(s[x(538)],s.end_time);!f&&d[x(981)][x(783)]>0&&(n=!0),d[x(816)]||(n=!0),d[x(861)]<0&&(n=!0),s[x(746)]&&!q(s,SECOMAPP)&&(n=!0)}if(await B(o,FGSECOMAPP[x(534)]),n)location[x(938)]();else try{FGSECOMAPP.fgSettings.using_draft_order&&!C(FGSECOMAPP[x(942)]?.find($=>l($)))?await a(SECOMAPP[x(580)]+x(829)+Shopify?.shop,{method:x(866),headers:{"Content-Type":x(1005)}}).then(async $=>{let e=x,t=await $[e(681)]();t[e(789)]=(t[e(789)]??[]).map($=>{let x=e;return $[x(486)][x(840)]=$[x(840)]?.map($=>({id:$.id})),$.product.tags=$.tags,{id:$[x(486)].id,variant_id:$[x(486)][x(549)],title:$.product.title,handle:$.product.handle,price:I($.product),quantity:$[x(486)][x(698)],product_type:$.product[x(901)],vendor:$[x(486)][x(510)],tags:$.product.tags,collections:$[x(486)][x(840)],selling_plan_allocation:$.product[x(585)]}}),t[e(620)]={arr_offer_added:FGSECOMAPP.arrOfferAdded,secomapp:{customer:SECOMAPP?.[e(758)]??{},fg_codes:SECOMAPP?.fg_codes??[],fgSettings:FGSECOMAPP[e(940)]},cookie_fg_code:M(e(535)),shopify_currency:Shopify?.[e(772)]},await a(SECOMAPP.freegiftProxy+e(983)+LZString.compressToEncodedURIComponent(t=JSON.stringify(t)),{method:e(866),headers:{"Content-Type":"application/liquid"}})[e(811)](async $=>{let x=e,t=await $[x(681)]();try{FGSECOMAPP[x(638)]=!1,t[x(980)]&&(window.location[x(948)]=t[x(980)][x(575)])}catch(a){console.error(a)}})}):(console.log(x(559)),FGSECOMAPP[x(638)]=!1,$o($))}catch(u){FGSECOMAPP[x(638)]=!1,$o(u)}await FGSECOMAPP[x(765)]("end",t=e===x(519)?$[x(958)]:$[x(745)]??$[x(958)]),document[x(830)](new CustomEvent(FGSECOMAPP[x(906)][x(582)],{detail:FGSECOMAPP}))}catch(_){await FGSECOMAPP[x(765)](x(655)),document[x(830)](new CustomEvent(FGSECOMAPP[x(906)][x(582)],{detail:FGSECOMAPP})),console[x(655)](_)}},$s=async $=>{let x=_0x15bc9e;$[x(958)]?.[x(1e3)](x(733))&&await $n($)},$d=()=>{let $=_0x15bc9e,x=FGSECOMAPP[$(940)]?.[$(530)],e=$(623),t=e+", .sca_handle_button_checkout, input[name='checkout'], button[name='checkout'], input[name='goto_pp'], button[name='goto_pp'], input[name='goto_gc'], button[name='goto_gc'], a[href$='checkout'], form[action='/checkout'] input[type='submit'], button.new_checkout_button, input[value='Checkout'], input[value='Checkout'], input[value='Check out'], input[value='Check Out'] a.checkout-link "+E($(952));document[$(654)](t)[$(670)](e=>{let t=$,a=e.hasAttribute(t(951)),i=e[t(1e3)]("sca_clone_checkout"),c=e[t(1e3)](t(733));if(x===t(919)){if(a)return;if(!i&&!c){let r=e.cloneNode(!0);r[t(532)](t(921),$n),r[t(878)](t(733),""),r[t(878)](t(503),""),e[t(471)][t(571)]=t(1010),e[t(471)][t(724)]=t(974),e[t(471)][t(726)]="0",e[t(878)](t(951),""),e.parentNode?.[t(512)](r)}i&&!c&&(e.addEventListener("click",$n),e[t(878)](t(733),""))}else x===t(519)?e[t(878)](t(733),""):c||(e[t(532)]("click",$n),e[t(878)](t(733),""));FGSECOMAPP[t(540)]=!0}),"trigger_body"===x&&window[$(532)]($(921),$s,!0)};FGSECOMAPP.fetchCheckoutEvents=()=>{let $=_0x15bc9e;FGSECOMAPP[$(747)]=0;let x=setInterval(()=>{let e=$;$d(),FGSECOMAPP[e(747)]++,(FGSECOMAPP[e(747)]>10||FGSECOMAPP[e(540)])&&(FGSECOMAPP.scaCountRenderEventCheckout=0,clearInterval(x))},400)};let $8=$=>{let x=_0x15bc9e;try{let e={},t={},a=FGSECOMAPP[x(534)];if(C($)){$=[],C(Shopify?.[x(734)])||$[x(899)]({...Shopify?.[x(734)]});let i={...Shopify?.other_products,...Shopify?.[x(814)]?.products};Object[x(998)](FGSECOMAPP[x(1012)])?.filter($=>!C($[x(871)])&&(C($?.[x(464)])||$?.[x(464)]&&!$?.positions?.[x(849)]($=>$?.[x(965)]?.[x(935)](x(557)))))?.forEach($=>{let e=x;i[$.info.id]={...$[e(871)]}}),$=$.concat([...Object[x(998)](i)])}for(let c in $?.[x(670)]($=>{let e=x,t=FGSECOMAPP[e(1012)][$.handle];FGSECOMAPP.productsInPage[$[e(513)]]={...t,info:{...$},product_has_icon:!!C(a)&&void 0}}),a?.forEach(a=>{let i=x,c=a[i(484)];if(1===c[i(783)]&&"number_of_products"===c[0][i(529)]&&typeof c[0][i(569)]===i(962)){let r,o=c[0].product_narrow;o?.forEach(x=>{let e=i;switch(x[e(782)]){case e(799):r=Object[e(998)](x[e(963)]);break;case e(610):let t=Object[e(881)](x[e(963)]);t[e(783)]>0&&(r=(void 0===r?$:r)?.filter($=>t[e(693)]($[e(782)]))??[]);break;case"product_vendors":let a=Object.keys(x.value);a[e(783)]>0&&(r=(void 0===r?$:r)?.filter($=>a[e(693)]($.vendor))??[]);break;case"product_collections":let c=Object.keys(x[e(963)]);c[e(783)]>0&&(r=(void 0===r?$:r)?.[e(719)]($=>{let x=e,t=$[x(840)]?.map($=>$.id+""),a=t?.[x(719)]($=>c[x(693)]($));return!C(a)})??[])}}),r?.forEach($=>{let x=i,c=$.handle;if(e[c]){let r=e[c]?.map($=>$[x(879)]),o=a.gift_products?.[x(719)]($=>!r?.[x(693)]($[x(879)]));e[c]=e[c][x(713)](o)}else e[c]=a[x(753)];let n=$[x(632)]?.[x(988)]($=>$.id)??[];t[c]=n[x(713)](t[c]??[]),t[c]=[...new Set(t[c])]})}}),e){let r=FGSECOMAPP.productsInPage[c];FGSECOMAPP[x(1012)][c]={...r,gifts_will_receive:[...e[c]],product_has_icon:!0,variants_has_gift:[...t[c]]}}return Object[x(678)](e)?.[x(783)]?e:{}}catch(o){return console[x(655)](o),null}},$l=$=>{let e=_0x15bc9e,t=FGSECOMAPP[e(662)][e(808)]??{};if(!t[e(515)]?.[e(536)])return;let a=document[e(721)](x[e(903)])?.[e(819)]??x[e(573)],i=$?.map($=>a[e(609)](/{{\s*fg_product_handle\s*}}/gm,g(y($[e(879)],$[e(501)]),!0))[e(609)](/{{\s*fg_product_img\s*}}/gm,g(W($[e(506)]),!0))[e(609)](/{{\s*fg_product_img_alt\s*}}/gm,g(T($[e(879)],$[e(809)]))))[e(920)](""),c=document[e(721)](x[e(709)])?.[e(819)]??x[e(744)],r=c[e(609)](/{{\s*fg_gift_thumbnail_title\s*}}/gm,g(t[e(515)]?.[e(809)]??e(754)))[e(609)](/{{\s*sca_fg_gift_thumbnail_items_section\s*}}/gm,i)[e(609)](/{{\s*fg_check_show_narrow\s*}}/gm,$?.[e(783)]>=4?"":"sca-d-none"),o=e(791)+E(e(764)),n=document[e(721)](o)??document[e(721)](e(853));if(!n)return;n[e(701)][e(471)][e(649)]=e(801),n.parentNode[e(471)].height="auto",n[e(701)]?.[e(1002)]?.[e(693)]("sca-fg-form-thumbnail-product-page")||n.parentNode?.[e(965)]?.[e(978)]("sca-fg-form-thumbnail-product-page");let s=n[e(701)][e(721)](e(555));if(s)s[e(819)]=r;else{(s=document.createElement(e(523)))[e(878)]("id",e(504));let d=new DOMParser()[e(960)](r,e(487));s[e(819)]=d[e(518)][e(819)],n[e(701)][e(1007)](s,n)}n[e(701)][e(1007)](s,n);let l=document[e(721)](e(961));if(l)switch(t[e(515)]?.size){case"32":l[e(471)][e(633)]=e(685);break;case"50":l.style[e(633)]=e(784);break;case e(828):l[e(471)][e(633)]=e(594);break;case e(717):l[e(471)][e(633)]="80%";break;case"240":l[e(471)][e(633)]=e(801);break;default:l[e(471)][e(633)]="60%"}if($?.[e(783)]>=4)new Glider(document.querySelector(e(1009)),{slidesToShow:3,slidesToScroll:1,draggable:!0,dots:".dots-thumbnail",arrows:{prev:"#fg-gift-thumbnail-title .glider-prev",next:e(618)}});else{l&&(l[e(471)].maxWidth=e(801));let f=document.querySelector(".sca-list-gift-thumbnail");f&&(f[e(471)][e(571)]=e(543))}},$f=()=>{let $=_0x15bc9e;if(!(FGSECOMAPP[$(662)][$(808)]??{})[$(908)]?.[$(536)])return;let e=document[$(721)](x[$(668)])?.innerHTML??x.GIFT_ICON_SECTION,t=e[$(609)](/{{\s*fg_gift_icon\s*}}/gm,FGSECOMAPP[$(662)].gift_icon_path)[$(609)](/{{\s*fg_gift_icon_alt\s*}}/gm,$(577))[$(609)](/{{\s*fg_class_product_or_collection_page\s*}}/gm,$(478)),a=$(806)+E($(977)),i=document[$(721)](a)??document.querySelector($(476));if(!i)return;i.style[$(743)]=$(950),i[$(471)][$(649)]=$(626),i[$(1002)]?.[$(693)]($(595))||i.classList?.[$(978)]($(595));let c=i[$(721)]($(697));if(c)c[$(819)]=t;else{(c=document[$(805)]($(523))).setAttribute("id",$(864));let r=new DOMParser()[$(960)](t,$(487));c.innerHTML=r.body[$(819)],i[$(512)](c)}},$1=()=>{let $=_0x15bc9e,x=[],e=$(957)+E("sca_fg_img_collection_gift_icon_query");return document.querySelectorAll(e).forEach(e=>{let t=$,a=e.querySelector(t(892)),i=a?.[t(1003)]("href")?.split("/")??[],c=i?.[t(770)]("products"),r=c>=0?i[c+1]??null:null;if(r=r?.[t(771)]("?")?.shift(),l(r)){e[t(905)]();return}let o=e[t(721)](t(848));if(o){e[t(905)]();return}if(C(r))return;let n=decodeURI(r);C(FGSECOMAPP.productsInPage[n]?.[t(871)])&&x[t(899)](n);let s=(FGSECOMAPP[t(1012)][n]?.[t(925)]??[])[t(719)]($=>!e[t(614)]($));s[t(899)](e),FGSECOMAPP.productsInPage[n]={...FGSECOMAPP[t(1012)][n],positions:[...s]}}),x},$u=$=>{let e=_0x15bc9e;Object[e(881)]($)?.[e(670)]($=>{let t=e,a=FGSECOMAPP.productsInPage[$]?.[t(925)]??[];if(C(a)||!Array[t(850)](a))return;if(!(FGSECOMAPP[t(662)][t(695)]??{})[t(536)])return;let i=document[t(721)](x[t(668)])?.[t(819)]??x[t(637)],c=i.replaceAll(/{{\s*fg_gift_icon\s*}}/gm,FGSECOMAPP[t(662)][t(773)])[t(609)](/{{\s*fg_gift_icon_alt\s*}}/gm,t(577)).replaceAll(/{{\s*fg_class_product_or_collection_page\s*}}/gm,t(652));a[t(670)]($=>{let x=t;$[x(471)][x(743)]=x(950),$.className?.[x(693)](x(666))||$.classList?.[x(978)](x(666));let e=$[x(721)](".sca-gift-icon-collection-page");if(e)e[x(819)]=c;else{(e=document[x(805)](x(523)))[x(878)](x(572),x(557));let a=new DOMParser()[x(960)](c,"text/html");e[x(819)]=a[x(518)][x(819)],$[x(512)](e)}})})},$_=async $=>{let x=_0x15bc9e;await a(SECOMAPP.freegiftProxy+x(818)+LZString[x(763)](JSON[x(913)]($)),{method:x(866),headers:{"Content-Type":x(1005)}}).then(async $=>{let e=x,t=await $.json(),a=[];t?.[e(971)]?.[e(670)]($=>{let x=e;C($?.[x(971)]?.id)||a[x(899)]({...$[x(971)],collections:$.collections,variants_quantity:$[x(943)]})});let i=$8(a);$u(i)}).catch($=>{let e=x;console[e(655)]($)})},$g=async $=>{let x=_0x15bc9e,e=[];for(let[t,a]of $[x(678)]())C(FGSECOMAPP[x(1012)][a]?.info)&&e.push(a),20===e.length&&(await $_([...e]),e=[]),t===$[x(783)]-1&&e.length>0&&(await $_([...e]),e=[])},$b=()=>{let $=_0x15bc9e,x=$1(),e=$8();$u(e),$g(x)[$(811)]()},$p=()=>{let $=_0x15bc9e;Shopify?.[$(730)]&&document.addEventListener($(968),function(){let x=$,e=new URL(document.URL),t=parseInt(e[x(986)][x(823)](x(632)));$3(isNaN(t)?void 0:t)})},$3=$=>{let x=_0x15bc9e;if(!location[x(948)][x(693)](x(936)))return;document[x(721)](x(697))?.[x(905)](),document[x(721)](x(555))?.[x(905)]();let e=$8();if(C(e))return;let t=location[x(469)][x(771)]("/"),a=t?.indexOf(x(971)),i=decodeURI(a>=0?t[a+1]??null:null);if(!Object[x(881)](e)?.[x(693)](i))return;let c=e[i],r=FGSECOMAPP[x(1012)][i]?.variants_has_gift??[];!(Shopify?.[x(730)]&&(!C($)&&!r[x(693)]($)||C($)&&!C(Shopify?.[x(734)]?.current_variant)&&!r[x(693)](Shopify?.[x(734)]?.[x(1006)]?.id)))&&($l(c),$f(c))};FGSECOMAPP[_0x15bc9e(837)]=$=>{let e=_0x15bc9e;try{C($)&&($=[...FGSECOMAPP[e(534)]]);let t=location[e(948)][e(693)]("/cart"),a=[];if($?.forEach($=>{let x=e;if($[x(816)]||C($[x(979)])||!C(FGSECOMAPP.maxOfferPriority)&&!$[x(816)]&&$.stop_lower_priority&&$[x(533)]>FGSECOMAPP[x(641)])return;let t=$[x(979)];$.offer_conditions?.[x(670)]($=>{let e=x,a=O(FGSECOMAPP[e(942)],$);a=D(a,$[e(551)]);let i=0,c=null,r=0;$[e(529)]===e(880)?(i=A(a),c=e(542),r=Shopify?.[e(687)]??2):$[e(529)]===e(842)&&(i=k(a),c="{{sca_min_quantity}}",r=0);let o=Math[e(793)]($.min_amount-i,0)[e(684)](r);t=t[e(609)](c,o)}),a[x(899)](t)}),C(a)){document[e(654)](e(768)).forEach($=>$[e(819)]="");return}let i="",c=document[e(721)](x[e(930)])?.innerHTML??x[e(628)],r=a[e(988)]($=>c[e(609)](/{{\s*fg_cart_message\s*}}/gm,g($)))[e(920)](""),o=document[e(721)](x.CART_MSG_SECTION_ID)?.[e(819)]??x[e(490)],n=o[e(609)](/{{\s*sca_fg_cart_message_items_section\s*}}/gm,r);FGSECOMAPP[e(692)].show_on_cart_page&&(i=n);let s="#MainContent, #mainContent, #main, .main-content",d=document[e(721)](s),l=d?.[e(721)](e(995)),f=e(544),u=document[e(654)](f+e(889)+E("sca_fg_main_promotion_message_query")),_=document[e(654)](e(768));C(_)||_[e(670)]($=>$[e(819)]=i),(_=document[e(805)](e(523)))[e(878)]("id","sca-promotion-message-layout"),_.classList[e(978)](e(779));let b=new DOMParser()[e(960)](i,e(487));_[e(819)]=b[e(518)][e(819)],C(u)?!d?.querySelector(e(768))&&(b=new DOMParser()[e(960)](i,e(487)),_.innerHTML=b.body[e(819)],d&&l&&t?l.prepend(_):d&&t&&d[e(576)](_)):u?.forEach($=>{let x=e;if($[x(721)](x(768)))return;let t=_.cloneNode(!0);$[x(576)](t)});try{document[e(654)](e(781))[e(670)]($=>{let x=e,t=new Glider($);(($,x)=>{let e=_0x44cd,t=$.track.childElementCount,a=null,i=1;function c(){a=setTimeout(()=>{let x=_0x44cd;i>=t&&(i=0),$[x(820)](i++)},x)}$[e(603)][e(532)](e(669),function(){window[e(893)](a),c()}),c()})(t,Shopify?.[x(586)]??3e3)})}catch(p){console[e(655)](p)}}catch(h){console[e(655)](h)}};let $h=async()=>{let $=_0x15bc9e;try{let x=await a($(675)),e=await x[$(681)]();FGSECOMAPP[$(924)]=e?.[$(775)]}catch(t){console[$(990)]($(488))}},$m=function(){let $=_0x15bc9e;try{let x=()=>{let $=_0x44cd;"function"!=typeof FGSECOMAPP.reRenderCartCustom&&typeof window[$(616)]===$(761)&&(FGSECOMAPP.reRenderCartCustom=async()=>{await window[$(616)]()})};x(),window[$(532)]($(860),function($){FGSECOMAPP.renderPromotionMessage(),FGSECOMAPP.fetchCheckoutEvents()}),window[$(532)]("icartAddToCartEvent",function(e){let t=$;x(),$i("/cart.js")[t(811)](()=>{window[t(616)]()})}),window[$(532)]($(751),function(e){x(),$i($(584)).then(()=>{window.prepareDataForDisplayWidgetByRule()})}),document.addEventListener($(934),x=>{let e=$;FGSECOMAPP[e(837)](),FGSECOMAPP[e(640)]()});let e=()=>{let x=$;"function"!=typeof FGSECOMAPP.reRenderCartCustom&&typeof window[x(574)]===x(761)&&(FGSECOMAPP[x(838)]=async()=>{let $=x;await $e($(759))[$(811)](x=>{let e=$;window[e(574)](x),window[e(647)]()})})};e(),window[$(646)]=function(x){let t=$;e();let a={...FGSECOMAPP.SHOPIFY_CART};$i(t(584))[t(811)](()=>{let $=t;$e($(759)).then(x=>{let e=$;window[e(541)](),window.SLIDECART_UPDATE(x),document[e(721)]("#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg")||C(a)||window[e(647)]()})})},window[$(615)]=function(){let x=$;FGSECOMAPP[x(837)](),FGSECOMAPP[x(640)]()};let t=()=>{let x=$,e=document[x(721)](x(776));e&&(e[x(819)]=FGSECOMAPP?.[x(976)]?.[x(800)]??0),typeof FGSECOMAPP[x(838)]!==x(761)&&"function"==typeof window.upcartRegisterAddToCart&&(FGSECOMAPP[x(838)]=async()=>{await window[x(653)]()})},a=()=>{let x=$;document[x(721)](x(639))||typeof window[x(653)]!==x(761)||window[x(653)]()};t(),window[$(500)]=(x,e)=>{let i=$;t(),a(),$i(i(584))[i(811)]()},window[$(546)]=x=>{let e=$;t(),$i(e(584))[e(811)]()},window[$(658)]=()=>{let x=$;FGSECOMAPP[x(837)](),FGSECOMAPP[x(640)]()};let i=()=>{let x=$;typeof FGSECOMAPP[x(838)]!==x(761)&&typeof window[x(545)]===x(761)&&(FGSECOMAPP[x(838)]=async()=>{let $=x;await window[$(545)](),window[$(973)]()})};i(),document.addEventListener($(527),x=>{i(),$i("/cart.js")[$(811)]()});let c=()=>{let x=$;typeof FGSECOMAPP[x(838)]!==x(761)&&typeof window?.SATCB?.[x(796)]?.[x(807)]?.[x(592)]===x(761)&&(FGSECOMAPP[x(838)]=async()=>{let $=x;await window[$(786)][$(796)][$(807)][$(592)]()})};c(),document.addEventListener($(531),x=>{let e=$;c(),$i(e(584))[e(811)](()=>{let $=e;document[$(721)]($(967))&&document[$(721)]($(460))?.[$(921)]()})});let r=()=>{let x=$;typeof FGSECOMAPP.reRenderCartCustom!==x(761)&&"function"==typeof window[x(631)]&&(FGSECOMAPP.reRenderCartCustom=async()=>{await window.monster_refresh(),window[x(583)]()})};r(),document.addEventListener("cart:updated",x=>{r(),$i($(584)).then()}),(()=>{let x=$;typeof FGSECOMAPP.reRenderCartCustom!==x(761)&&typeof window[x(716)]===x(761)&&(FGSECOMAPP[x(838)]=async()=>{await window[x(716)](),window.HS_SLIDE_CART_OPEN()})})(),document[$(532)](FGSECOMAPP[$(906)][$(567)],()=>{let x=$;try{typeof window[x(468)]===x(761)&&window[x(468)](),"function"==typeof window[x(813)]&&window[x(813)]()}catch(e){console[x(655)](e)}})}catch(o){console.error(o)}};Q(FGSECOMAPP.cartItems)[_0x15bc9e(811)](()=>{$m()})}}catch($7){console[_0x15bc9e(990)](_0x15bc9e(888),$7)}