window.fgData={"offers":[],"settings":{"gift_format":"same_as_original_products","auto_add_gift":true,"sync_quantity":false,"cal_gift_discount":"current_price","using_draft_order":false,"select_one_gift_price":false,"manual_input_inventory":false,"compare_gift_price_with_product":false,"delete_gift_after_turn_off_offer":true,"not_show_gift_if_already_on_cart":false},"appearance":{"gift_slider":{"general":{"gift_popup_title":"Select your free gift!","add_to_cart_btn_title":"Add to cart","running_text":"","select_gift_btn":"Select variants","show_product_title":true,"show_variant_title":true,"show_pagination":true,"show_gift_for_customer":"by_variants","number_product_slider":4},"color":{"gift_slider_title_color":"#121212","product_title_color":"#000000","original_price_color":"#121212","discounted_price_color":"#ea5455","add_to_cart_color":"#FFFFFF","add_to_cart_btn_color":"#7367f0"},"others":{"hidden_brand_mark":false,"gift_img_size":"&width=480&height=480"},"disable_slider_checkbox":{"enable":false,"time":10,"text":"Don't show this offer again"}},"gift_icon":{"gift_icon_path":"images\/fg-icons\/fg-icon-red.png","shopify_gift_icon_path":"fg-icon-red.png","product_page":{"gift_icon":{"status":true,"size":"50"},"gift_thumbnail":{"status":true,"size":"100","title":"Free Gift"}},"collection_page":{"status":true,"size":"50"}},"promotion_message":{"show_on_cart_page":true,"text_color":"#ffffff","background_color":"#F72119"}}};/* END_FG_DATA */ const _0x52a36b=_0x27ea;function _0x27ea($,x){let t=_0x4e64();return(_0x27ea=function($,x){return t[$-=164]})($,x)}function _0x4e64(){let $=["toString","scaHandleConfigValue","sub_conditions","current_variant","not type checkout btn","visibility","join","compare_at_price","redirected","sca_process_gifts","stop_lower_priority","sca_add_url","SHOPIFY_CART","openCart","gift_icon_path","compressToEncodedURIComponent","upcartOnCartUpdated","#freegifts-main-popup-container [data-close]","hasOwnProperty","GIFT_THUMBNAIL_ITEMS_SECTION_ID","offer_id","final_price","replaceAll","style","?sca_attr_cart","Escape","#sca-gift-icon","product_vendors","location","product_types","priority",".dropdown-menu","boolean","disableShopify_getCart","show_gift_for_customer","current_product","trigger_body","body","/cart/add.js","stopImmediatePropagation","CUSTOM_EVENTS","add_to_cart_btn_color","backgroundColor","api","/products/","json","SATCB","entries",".btn-add-to-cart.sca-fg-out-stock","mode_override_checkout","format","position",".gift-price","now","Update cart.attributes ",'a[href*="/products/"]',"variantId","getAttribute","160","#sca_fg_variant_select_section","#82868b",".fg-secomapp-handle-add-to-cart ","fg-gifts:show-slider","currency","fg-gifts:added","70%","items","GIFT_ADDED","sca_slidecart_tcc","number_product_slider","max","original_compare_at_price","https://geoip.secomtech.com/?json","sca-fg-toast sca-fg-success","SLIDECART_OPENED","fgData","en-US","createElement","not_show_gift_if_already_on_cart","/cart.js","GIFT_SELECT_SECTION_ID","getItem","END_VALIDATE_CHECKOUT","POST","insertBefore",".fg-secomapp-cart-drawer ","5243094UdiQnF","includes",".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","className","reRenderCartCustom","GIFT_ICON_SECTION_ID","and","#7367f0","product_has_icon","#sca-spinner-checkout","#shopify-section-header #cart-icon-bubble, .shopify-section.section-header #cart-icon-bubble","sca-fg-form-thumbnail-product-page","height","show_pagination","gift_popup_title","HS_SLIDE_CART_UPDATE","/cart/change","select_gift_btn","monster_refresh","some","clone_product_handle",".btn-add-to-cart","get","GIFT_ITEM_SECTION_ID","#sca_fg_section_gifts_popup","XMLHttpRequest","auto add gift: ","fgAppearance",'\n \n \n \n ',"add","6px 0","products","original_product_shopify_id","innerText","find",", .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 ","SLIDECART_CLOSE","sca_fg_form_checkbox_button_query","5169590bGadHI","contains","data-original-id","stringify","belongs_to_offer","#sca_fg_gift_icon_section","handle","Can not fetch all body","28UIZEFG","STICKY_CART_OPEN","gift_products","d-block","invoice_url","href","START_VALIDATE_CHECKOUT","prepend","giftsAvailable","number_of_order","by_variants","undefined","none","money","formatter","keys","text/html",".fg-secomapp-product-title ","collection_page","forEach",".original-price del","scaCountRenderEventCheckout","compressToBase64",".sca-fg-notifications","data-img","614qLgfKN","do_not_add_freegift_attribute","(Discount)","value_customer_locations","product_collections","CART_MSG_SECTION","removeAttribute","toggle","#close-fg-toast",".gift-original-url",'
  • \n {{ fg_variant_title }}\n
  • ',"GIFT_UPDATED","sca_cart_xhr","isDelayShowAdded","error","select_one_gift_price","data-variant","substring","variants_quantity","status","append","#fg-gift-items","rate","Failed to get customer location","customGiftImgSize","openSlider","locale","product","promotion_message","icartAddToCartEvent","hide","show_variant_title","orders","STICKY_CART_UPDATE","quantity","GIFTS_CART_SECTION_ID","tags","/cart/update","GIFT_ICON_SECTION","last_total","arrGiftsData","FGSECOMAPP_HIDDEN_GIFT_POPUP","Don't show this offer again","innerHTML","#sca_fg_cart_section_gifts_slider","sca-gift-icon-collection-img","slice","{{sca_min_quantity}}","root","#fg-gift-thumbnail-title .glider-prev","enable","isUpdateCart","fg-checkout:end","original_product_handle","original_price","push","#fg-gift-items .dropdown > .dropdown-menu > li","end","offer_conditions","indexOf","&sca_products_handle=","disable_slider_checkbox","timeoutId","sca-fg-form-icon-product-page","not using draft order","customer_order_history","#fg-gift-thumbnail-title .glider-next","startsWith","settings","country_code","split","fg-gift-items","removeEventListener","NumberFormat","application/json","sca_clone_checkout","3921aeVcEU","Add gift to cart successfully!","flat","log","auto_add_all_gifts","number","fg-gifts:updated","initializeForXHR","dispatchEvent","using_draft_order","click","remove","title","text","freegiftProxy","&width=480&height=480","variants",".dots","cal_gift_for_other_rules","#secomapp_freegifts_version","data-price","data-original-price","Default Title","GIFT_SELECT_SECTION","type_customer_locations","cart","width",", \n .fg-secomapp-cart-item-promotion\n ","map","CartSlider","message","/cart/change.js","display","productsInPage","sca_offers_added","getCart","freegifts-main-popup-container","collections","sca_fg_title_product_gift_icon_query","#upCartStickyButton .upcart-sticky-cart-quantity-icon-text","CART_AUTO_UPDATED","compare_gift_price_with_product","HS_SLIDE_CART_CLOSE","opacity","Widgets","flex","GET","checkIsBlockCheckout","total_spent_on_last_order","{{sca_min_total}}","SHOW_GIFT_SLIDER","GIFT_ITEM_SECTION","[data-open]","hasDoneProcessCheckout",'\n \n \n \n \n \n \n ',"GIFT_THUMBNAIL_ITEMS_SECTION","appendChild","[sca_root_checkout]","sca_fg_cart_icon_query","HS_SLIDE_CART_OPEN","variants_ids","setItem","classList","offers",".fg-secomapp-cart-icon ","appearance","icartSideCartOpenEvent","variant","condition_relationship","sca_locale","fg-checkout","type","string","hasAttribute","change","sections_cart","variant_shopify_id","isSameNode","2177196RbFnSx","60%","thumbnail",'.btn-add-to-cart[data-variant="',"gift_icon","sca_link_checkout","ajaxProduct:added","171151ZIGcua","sca-gift-icon-img","maxWidth","secomappGetCartRunning","sca_catch","original_variant_shopify_id","$$$$","then","#fg-gift-items .btn-add-to-cart","gifts","unit","currentTarget","arrOfferAdded","disabled","parseFromString","open","sca_price","fit-content","rebuy:smartcart.show","#sca_fg_section_gift_item","[type='submit'][name='add'], [type='button'][name='add'], [data-add-to-cart], [data-action='add-to-cart']","target","gift_thumbnail","specific_link_address","cart:change","shop","querySelector","gift_slider","/cart/add","total_spend_on_order_history","active","$","product_type","sca-gift-icon-collection-page","padding","subscription_products","fetchCheckoutEvents",'\n \n \n \n \n \n ',"maxOfferPriority","created_at","?sca_add_gift","fg_decimal","sync_quantity","CART_MSG_SECTION_ID","srcElement","include","#shopify-section-header #cart-icon-bubble","sca_update_url","50%","hidden_brand_mark",'
    \n \n \n \n \n \n \n ',"sca_fg_main_promotion_message_query","type_customer_tags","100%","disable_override_xhr","function","values","vendor","sections","fgAppearancePromotionMessage","cartItems","gift_img_size","isReachConditions","-sca_clone_freegift","selling_plan","relative","data-template","sca_handle_checkout","headers","number_of_gift_can_receive","querySelectorAll","info","sca-is-visible-fg","div","show_on_cart_page","sca-fg-out-stock","manual_input_inventory","#sca-gift-thumbnail","cart:updated","reduce","toFixed","max_amount","gift_settings","min_amount","gift_should_the_same",".freegifts-main-container .glider-next","parse","#sca_fg_cart_message_items_section",'\n \n ',"Select your free gift!","price","sca_checkout_form","catch","GIFTS_CART_SECTION","renderPromotionMessage","textContent","max_gifts_can_get","#fg-gift-items .dropdown","general","cal_gift_discount","free-gift-icon","variant_title",'
    \n \n
    \n {{ fg_slider_title }}\n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n \n {{ sca_fg_disable_slider_section }}\n
    ',"application/liquid","80%",'
    \n {{ sca_fg_cart_message_items_section }}\n
    ',"sections_url","setAttribute","others","add_to_cart_btn_title","positions","pathname","USD","100","customer","key","scaCustomLoadingCheckout","prepareDataForDisplayWidgetByRule",'

    \n {{ fg_cart_message }}\n

    ',"shopify_cart",".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 ","#sca_fg_cart_message_section","891814VovzPw","is_multiply","searchParams","current_collection","#fg-gift-thumbnail-title","application/json;",'{{ fg_gift_icon_alt }}',"data-version","floor","fgAppearanceGiftSlider","sca-fg-icon-collection-page","color","object","/cart","start_time","URL","enable_toast_added","have_not_got_gift_from_this_offer","scrollItem","product_page","checked","filter","SLIDECART_OPEN","freegifts","48XKwxRA","dataset","end_time","fgAppearanceGiftIcon","sca-promotion-message-layout","clone_checkout","disable_async_process_fg",".icartCheckoutBtn, .rebuy-cart__checkout-button, .qsc2-checkout-button, #mu-checkout-button, .satcb-cs-checkout-btn, .hs-checkout-purchase","#sca_fg_gift_thumbnail_section","hidden","other_products","giftsAdded",".product-item-thumbnail","sca_fg_price","sca_root_checkout",'a[href*="/collections/sca_fg"]',"arrGiftsRemove","product_shopify_id","442105DkaLdz","DISABLE_SLIDER_SECTION","parentNode","#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg","set","cloneNode","GIFT_THUMBNAIL_SECTION_ID","getElementById","size","order_created_from",".product_name, .product-title, .product__title, .product-single__title, .tt-title, .ProductMeta__Title","sca-d-none","product_narrow","parentElement","/cart.js?sca_fetch&","fgSettings",".sca-promotion-glider","upcartRegisterAddToCart","enable_check_variants_has_gift","variant_id","product_id","SLIDECART_UPDATE","arrGiftsAdd",".sca-list-gift-thumbnail","3.0","gift_items","getTime","fgCallback","&data_checkout=","value","customerLocation","failed to parse cart section ","reload","trim","concat","total_price","FGSECOMAPP","#sca_fg_disable_slider_section","totarrCustomerOrderal_spend_on_order_history","sca_text_notify_success","replace","number_of_products","CART_MSG_ITEM_SECTION_ID","SECOMAPP_FREEGIFT","glider-animated","Out of stock",".selected-variant","length","removeItem","sca-gift-icon",".sca-promotion-message-layout","Free Gift","customer_tags",".freegifts-main-container .slide-container #sca-hidden-gift-popup .sca-disable-checkbox","addEventListener","sca_fg_codes","sca-gift-thumbnail","keyup","routes","not have orders and gifts"];return(_0x4e64=function(){return $})()}!function($,x){let t=_0x27ea,e=$();for(;;)try{let a=-parseInt(t(173))/1+parseInt(t(554))/2*(-parseInt(t(630))/3)+parseInt(t(529))/4*(parseInt(t(337))/5)+-parseInt(t(166))/6+parseInt(t(295))/7*(parseInt(t(319))/8)+parseInt(t(483))/9+-parseInt(t(521))/10;if(513700===a)break;e.push(e.shift())}catch(i){e.push(e.shift())}}(_0x4e64,513700);try{let $=document[_0x52a36b(344)]("secomapp_freegifts_version")?.[_0x52a36b(454)](_0x52a36b(302));if($===_0x52a36b(361)){window[_0x52a36b(472)]?.[_0x52a36b(695)]?.gift_icon?.gift_icon_path&&fgGiftIcon&&(window[_0x52a36b(472)][_0x52a36b(695)][_0x52a36b(170)][_0x52a36b(411)]=fgGiftIcon),window[_0x52a36b(373)]={},FGSECOMAPP[_0x52a36b(211)]=null,FGSECOMAPP[_0x52a36b(233)]=Object.values(Shopify?.[_0x52a36b(233)]??{}),FGSECOMAPP[_0x52a36b(693)]=[],FGSECOMAPP[_0x52a36b(352)]=window.fgData?.[_0x52a36b(622)]??{},FGSECOMAPP.fgAppearance=window[_0x52a36b(472)]?.[_0x52a36b(695)]??{},FGSECOMAPP[_0x52a36b(304)]=FGSECOMAPP[_0x52a36b(510)]?.[_0x52a36b(200)]?.[_0x52a36b(271)],FGSECOMAPP.fgAppearanceGiftIcon=FGSECOMAPP[_0x52a36b(510)]?.[_0x52a36b(170)],FGSECOMAPP.fgAppearancePromotionMessage=FGSECOMAPP.fgAppearance?.[_0x52a36b(582)],FGSECOMAPP[_0x52a36b(364)]=[],FGSECOMAPP.secomappGetCartRunning=!1,FGSECOMAPP[_0x52a36b(185)]=[],FGSECOMAPP[_0x52a36b(550)]=0,FGSECOMAPP[_0x52a36b(677)]=!1,FGSECOMAPP.scaHandleConfigValue={...Shopify?.[_0x52a36b(398)]},FGSECOMAPP[_0x52a36b(487)]=Shopify?.[_0x52a36b(487)]??void 0,FGSECOMAPP[_0x52a36b(289)]=Shopify?.scaCustomLoadingCheckout??void 0,FGSECOMAPP[_0x52a36b(663)]={},FGSECOMAPP.hasDoneProcessCheckout=!1,FGSECOMAPP[_0x52a36b(705)]={},FGSECOMAPP[_0x52a36b(605)]=!1,FGSECOMAPP[_0x52a36b(409)]={},FGSECOMAPP.sca_price=Shopify?.[_0x52a36b(332)]??"discounted_price",FGSECOMAPP[_0x52a36b(437)]={SHOW_GIFT_SLIDER:_0x52a36b(459),GIFT_UPDATED:_0x52a36b(636),GIFT_ADDED:_0x52a36b(461),CART_AUTO_UPDATED:"fg-cart:auto-updated",GIFT_TO_CART:"fg-gifts:render-cart",START_VALIDATE_CHECKOUT:"fg-checkout:start",END_VALIDATE_CHECKOUT:_0x52a36b(606)};let x={GIFTS_CART_SECTION_ID:_0x52a36b(598),GIFTS_CART_SECTION:'
    \n
    \n {{ fg_slider_title }}\n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n \n {{ sca_fg_disable_slider_section }}\n
    ',GIFTS_POPUP_SECTION_ID:_0x52a36b(507),GIFTS_POPUP_SECTION:_0x52a36b(275),GIFT_ITEM_SECTION_ID:_0x52a36b(192),GIFT_ITEM_SECTION:'
    \n
    \n \n
    \n
    \n \n {{ fg_original_price }}\n \n {{ fg_gift_price }}\n
    \n \n \n \n \n
    \n
    \n
    ',GIFT_SELECT_SECTION_ID:_0x52a36b(456),GIFT_SELECT_SECTION:_0x52a36b(564),DISABLE_SLIDER_SECTION_ID:_0x52a36b(374),DISABLE_SLIDER_SECTION:'
    \n \n \n
    ',CART_MSG_SECTION_ID:_0x52a36b(294),CART_MSG_SECTION:_0x52a36b(278),CART_MSG_ITEM_SECTION_ID:_0x52a36b(260),CART_MSG_ITEM_SECTION:_0x52a36b(291),GIFT_THUMBNAIL_SECTION_ID:_0x52a36b(327),GIFT_THUMBNAIL_SECTION:'
    {{ fg_gift_thumbnail_title }}
    \n\n
    \n
    \n
    \n {{ sca_fg_gift_thumbnail_items_section }}\n
    \n \n
    \n \xab\n \xbb\n
    \n
    \n
    \n
    ',GIFT_THUMBNAIL_ITEMS_SECTION_ID:"#sca_fg_gift_thumbnail_items_section",GIFT_THUMBNAIL_ITEMS_SECTION:'
    \n \n {{ fg_product_img_alt }}\n \n
    ',GIFT_ICON_SECTION_ID:_0x52a36b(526),GIFT_ICON_SECTION:_0x52a36b(301)},t=()=>{let $=_0x52a36b,x=FGSECOMAPP.fgAppearance?.[$(200)],t=x?.[$(281)]?.[$(222)],e=!T(x)&&void 0!==t&&!t;return e?$(261):""},e=()=>{let $=_0x52a36b,t=FGSECOMAPP[$(510)]?.[$(200)],e=t?.[$(615)]??{};document[$(199)]($(390))?.[$(315)]&&localStorage[$(691)]($(595),""+Date[$(450)]());let a=document[$(199)](x.DISABLE_SLIDER_SECTION_ID)?.[$(597)]??x[$(338)];return e?.[$(604)]?a.replaceAll(/{{\s*(fg_text_disable_slider)\s*}}/gm,u(e.text??$(596))):""},{fetch:a}=window,i=()=>{let $=_0x52a36b;"fg-checkout"!==document[$(199)]("#secomapp_freegifts_version")?.[$(454)]("data-template")&&(window.fetch=async(...x)=>{let t=$;try{if(x[0][t(484)](t(201))){s(x[1]);let e=200,i=await a(...x)[t(180)]($=>{let x=t;return(e=$.status,$[x(405)])?$:$[x(442)]()})[t(265)]($=>{let x=t;console[x(568)]($)});if(x[1][t(241)]?.sca_add_gift&&200!==e){let r=JSON[t(259)](x[1][t(434)])?.id,c=document[t(199)](t(169)+r+'"]');return c[t(516)]=t(382),c[t(692)][t(522)]("sca-fg-out-stock")||c[t(692)].add(t(248)),c.disabled=!0,c[t(420)].padding="",c[t(420)][t(439)]=t(457),document[t(243)](t(504))[t(548)]($=>{let x=t;parseInt($[x(454)]("data-variant"))===r||$.classList.contains(x(248))||($[x(186)]=!1,$.style[x(439)]=FGSECOMAPP.fgAppearance?.gift_slider?.[x(306)]?.[x(438)]??x(490))}),!1}return Shopify?.[t(325)]?$a([t(201),...x[t(600)](1)])[t(180)]():(await $a([t(201),...x[t(600)](1)]),await o(x,i)),new Response(JSON.stringify(i))}if(!(x[0][t(484)]("/cart/change")||x[0].includes(t(591))))return setTimeout(function(){$b()},1e3),await a(...x);{s(x[1]);let n=200,l=await a(...x).then($=>{let x=t;return(n=$[x(573)],$[x(405)])?$:$.json()}).catch($=>{let x=t;console[x(568)]($)});if(x[1][t(241)]?.sca_process_gifts&&200!==n)return!1;if(Shopify?.disable_async_process_fg)return $a([x[0][t(484)](t(499))?"/cart/change":t(591),...x[t(600)](1)])[t(180)](),new Response(JSON.stringify(l));{if(await $a([x[0][t(484)](t(499))?t(499):"/cart/update",...x.slice(1)]),x[1]?.headers?.sca_process_gifts)return new Response(JSON[t(524)](l));let _=FGSECOMAPP[t(409)]??l??{};return await o(x,l,_),new Response(JSON.stringify(_))}}}catch(d){return await a(...x)}})},r=window[_0x52a36b(508)],c=()=>{let $=_0x52a36b;Shopify?.[$(227)]||(window[$(508)]=function(){let x=$,t=new r;return t[x(391)]("load",function($){let t=x;try{let e=$[t(184)]??$.target??$[t(217)],{_url:a}=e;(a?.includes(t(201))||a?.[t(484)](t(499))||a?.includes("/cart/update"))&&$a(t(476))[t(180)]()}catch(i){console[t(568)]("Error listening XHR",i)}}),t})};FGSECOMAPP[_0x52a36b(637)]=()=>{let $=_0x52a36b;try{if(Shopify?.[$(430)]||typeof Shopify?.[$(665)]!==$(228))return;Shopify[$(665)]=async function(x){let t=$;if(!FGSECOMAPP[t(176)]){FGSECOMAPP[t(176)]=!0,await $a("/cart.js");let e=await $0(t(566));typeof x===t(228)&&(0>FGSECOMAPP[t(364)][t(613)](x)&&FGSECOMAPP[t(364)][t(609)](x),x(e)),FGSECOMAPP[t(176)]=!1}FGSECOMAPP[t(209)]()},typeof ShopifyAPI!==$(540)&&void 0!==ShopifyAPI.getCart&&(ShopifyAPI[$(665)]=Shopify?.[$(665)]),void 0!==Shopify?.[$(440)]&&typeof Shopify?.[$(440)][$(665)]!==$(540)&&(Shopify.api.getCart=Shopify?.[$(665)])}catch(x){console[$(568)](x)}};let s=$=>{let x=_0x52a36b;try{let t=$?.[x(434)];t instanceof FormData?FGSECOMAPP[x(705)]={sections:t.get("sections"),sections_url:t[x(505)](x(279))}:typeof t===x(702)&&(t=JSON[x(259)](t),FGSECOMAPP.sections_cart={sections:t?.[x(231)],sections_url:t?.sections_url})}catch(e){FGSECOMAPP[x(705)]={}}},n=async()=>{let $=_0x52a36b;if(Shopify[$(555)])return;let x={freegift_attributes:""};if(!T(FGSECOMAPP[$(185)])){let t=[$(380)];for(let e of FGSECOMAPP[$(185)]){let i=FGSECOMAPP.offers[$(517)](x=>x.id===e[$(525)])?.[$(399)]?.specific_link_address;T(i)||t[$(609)](i)}x={freegift_attributes:t[$(397)]()}}try{await a((Shopify?.sca_update_url??$(591))+$(421),{method:$(480),headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":$(300)},body:JSON.stringify({attributes:x})})}catch(r){console[$(568)]($(451)+r.message)}},o=async($,x,t)=>{let e=_0x52a36b;try{if($[1]?.[e(241)]?.sca_process_gifts)return;let i={},r=Object.keys(x[e(231)]??{})?.filter($=>T(FGSECOMAPP[e(705)][$]))??[];if(r&&r[e(384)]&&FGSECOMAPP.isUpdateCart&&(i=await a("/?sections="+r[e(403)](","))[e(180)]($=>$[e(442)]())),FGSECOMAPP[e(605)]=!1,i={...FGSECOMAPP[e(705)],...i},T(i))return;x[e(231)]={...x[e(231)],...i},T(t)||(t[e(231)]={...x.sections})}catch(c){}},l=async($,x,t)=>{let e=_0x52a36b;t=t?.[e(397)]();let a=document.querySelectorAll("#fg-gift-items .btn-add-to-cart");a[e(548)](x=>{let t=e;x[t(186)]=!0;let a=x[t(454)](t(570))-0;a===$&&(x[t(420)].padding=t(513),x[t(597)]=t(210)),x[t(420)][t(439)]=t(457)});let i=FGSECOMAPP.arrOfferAdded.find(x=>t===x.belongs_to_offer?.[e(397)]()&&$===x[e(453)]);i?i.quantity+=x:FGSECOMAPP[e(185)].unshift({variantId:$,belongs_to_offer:t,quantity:x}),localStorage[e(691)]("sca_offers_added",LZString[e(551)](JSON[e(524)](FGSECOMAPP[e(185)])));let r=await fetch((Shopify?.[e(408)]??e(435))+e(213),{method:e(480),headers:{Accept:"application/json","Content-Type":e(628),sca_add_gift:!0},body:JSON[e(524)]({quantity:x,id:$})}),c=await r[e(442)]();r.ok&&(a[e(548)](x=>{let t=e;x.disabled=!0;let a=x[t(454)](t(570))-0;a===$&&(x[t(420)][t(207)]="6px 0",x[t(597)]=t(511)),x[t(420)][t(439)]=""}),$i()),document[e(638)](new CustomEvent(FGSECOMAPP[e(437)][e(464)],{detail:{gift:c,status:r.ok,FGSECOMAPP:FGSECOMAPP}}))},_=$=>{let x=_0x52a36b,t=x(236);return!T($)&&(typeof $===x(307)&&($.handle?.includes(t)||$[x(590)]?.[x(484)](x(318)))||typeof $===x(702)&&$[x(484)](t))},d=$=>{let x=_0x52a36b,{selling_plan_allocation:t}=$;return!T(t)&&!T(t?.[x(237)])},f=async($,x)=>{let t=_0x52a36b;try{if(T($)&&T(x))return;let e={};if(FGSECOMAPP.cartItems?.[t(316)]($=>_($))?.[t(548)]($=>{let x=t;e[$.variant_id]=$[x(588)]}),($=$?.[t(316)]($=>!T($[t(356)])))?.[t(548)]($=>{let x=t;e[$.variant_id]=(e[$[x(356)]]??0)+($[x(588)]??1)}),Object[t(544)](e)?.[t(548)]($=>{e[$]=e[$]>=0?e[$]:0}),T(Object[t(544)](e)))return;$?.[t(548)]($=>{let x=t,e=FGSECOMAPP[x(185)][x(517)](t=>$[x(417)]?.[x(397)]()===t[x(525)]?.[x(397)]()&&$.variant_id===t[x(453)]);e?e[x(588)]+=$[x(588)]:FGSECOMAPP.arrOfferAdded.unshift({variantId:$[x(356)],belongs_to_offer:$[x(417)]?.[x(397)](),quantity:$.quantity})}),localStorage[t(691)](t(664),LZString.compressToBase64(JSON.stringify(FGSECOMAPP[t(185)]))),FGSECOMAPP.isUpdateCart=!0,await fetch((Shopify?.[t(220)]??t(591))+"?sca_process_gifts",{method:t(480),headers:{Accept:t(628),"Content-Type":t(628),sca_process_gifts:!0},body:JSON[t(524)]({updates:e,...FGSECOMAPP[t(705)]})}).then(e=>{let a=t;return e.ok&&$.length&&!x[a(384)]&&$i(),e[a(442)]()})[t(180)]($=>{let x=t;FGSECOMAPP.sections_cart=$[x(231)]}),document[t(638)](new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(670)],{detail:{arrGiftsAdd:$,arrGiftsRemove:x,FGSECOMAPP:FGSECOMAPP}})),document.querySelector(t(649))?.[t(454)](t(239))===t(700)&&location[t(369)]()}catch(a){console[t(568)](a)}},u=($,x=!1)=>{let t=_0x52a36b;return x?(""+$)[t(419)](/\$/g,t(179)):(""+$).replaceAll("$",t(204))},g=0,b=()=>{let $=_0x52a36b,a=document[$(344)]("freegifts-main-page-container");if(a){let i=document[$(199)](x[$(589)])?.[$(597)]??x[$(266)];a[$(597)]=i[$(419)](/{{\s*(fg_slider_title)\s*}}/gm,u(FGSECOMAPP[$(304)][$(497)]??$(262))).replaceAll(/{{\s*(sca_fg_disable_slider_section)\s*}}/gm,u(t()))}else{let r=localStorage[$(478)]($(595))-0,c=FGSECOMAPP[$(510)]?.[$(200)]?.[$(615)]??{},s=(c?.time??0)*6e4,n=!isNaN(r)&&r+s>Date.now();if(n||(localStorage[$(385)]($(595)),!(a=document[$(344)]($(666)))))return;let o=document[$(199)](x.GIFTS_POPUP_SECTION_ID)?.[$(597)]??x.GIFTS_POPUP_SECTION;a.innerHTML=o.replaceAll(/{{\s*(fg_slider_title)\s*}}/gm,u(FGSECOMAPP[$(304)][$(497)]??$(262)))[$(419)](/{{\s*(sca_fg_disable_slider_section)\s*}}/gm,u(e()+" "+t())),a.classList.add($(245)),g++}},p=($,t)=>{let e=_0x52a36b,a=document[e(199)](x[e(477)])?.[e(597)]??x[e(653)];return $.map($=>a[e(419)](/{{\s*(fg_variant_img)\s*}}/gm,u(z($[e(168)]??t),!0))[e(419)](/{{\s*(fg_variant_id)\s*}}/gm,u($[e(164)]))[e(419)](/{{\s*(fg_original_variant_id)\s*}}/gm,u($[e(178)]))[e(419)](/{{\s*(fg_variant_price)\s*}}/gm,u(h($)))[e(419)](/{{\s*(fg_original_variant_price)\s*}}/gm,u(m($)))[e(419)](/{{\s*(fg_variant_title)\s*}}/gm,u($[e(274)])))[e(403)](" \n")},h=$=>{let x=_0x52a36b;return FGSECOMAPP[x(543)].format(C($?.[x(263)]))},m=$=>{let x=_0x52a36b,t=FGSECOMAPP?.[x(352)]?.[x(272)]===x(404)?$?.[x(468)]??$?.[x(608)]:$?.[x(608)];return FGSECOMAPP[x(543)][x(447)](C(t??0))},v=($,x)=>{let t=_0x52a36b;return T(Shopify?.products[$])?x??"#":Shopify?.[t(514)][$].handle},y=($,x)=>{let t=_0x52a36b;return FGSECOMAPP[t(304)].show_product_title?T(Shopify?.[t(514)][$])?x[t(377)]("\xbb","").replace(/\(\d*% off\)/,"").replace(t(556),"")??"":Shopify?.[t(514)][$].title:""},T=$=>{let x=_0x52a36b;if(0===$)return!0;if(typeof $==x(635)||typeof $==x(429))return!1;if(null==$)return!0;if(void 0!==$[x(384)])return 0===$.length;let t=0;for(let e in $)$[x(415)](e)&&t++;return 0===t},I=$=>{let x=_0x52a36b;try{let t={...FGSECOMAPP.scaHandleConfigValue},e=t[$];if(e=e?e[x(370)]():null,!T(e)&&e.length>0)try{return document.querySelector(e),", "+e}catch(a){}return""}catch(i){return""}},w=()=>{let $=_0x52a36b;try{FGSECOMAPP[$(543)]=new Intl[$(627)](Shopify?.[$(699)]??Shopify?.[$(580)],{style:"currency",currency:Shopify?.[$(460)]?.active??$(285)})}catch(x){FGSECOMAPP.formatter=new Intl[$(627)]($(473),{style:$(460),currency:Shopify?.[$(460)]?.[$(203)]??$(285)})}},C=$=>{let x=_0x52a36b;$=$??0;let t=Shopify?.[x(460)]?.[x(576)]??1;return 1===parseFloat(t)?$:($*t)[x(253)](Shopify?.[x(214)]??2)},E=$=>{let x=_0x52a36b;try{return $[FGSECOMAPP[x(189)]]??$?.[x(418)]??$?.[x(263)]}catch(t){return $?.[x(418)]??$?.[x(263)]}},S=$=>{let x=_0x52a36b;return $[x(316)]($=>void 0===$.cal_gift_for_other_rules||!0===$.cal_gift_for_other_rules)[x(252)](($,t)=>$+t[x(588)]*E(t),0)/100},A=$=>{let x=_0x52a36b;return $[x(316)]($=>void 0===$[x(648)]||$.cal_gift_for_other_rules).reduce(($,t)=>$+t[x(588)],0)},k=($,x,t)=>{let e=_0x52a36b,a=x[e(349)];return t?.is_only&&($=$[e(316)]($=>d($))),T(a)?$:$[e(316)]($=>{let x=e;return!a[x(658)](t=>{let e=x;switch(t[e(701)]){case e(690):return Object[e(229)](t[e(366)]).map($=>$.variant)[e(632)]()[e(658)]($=>$.id).includes($.variant_id);case e(426):return Object[e(544)](t[e(366)]).includes($[e(205)]);case e(424):return Object[e(544)](t[e(366)])[e(484)]($[e(230)]);case e(558):let a=Object.keys(t[e(366)]),i=$[e(667)]?.[e(658)]($=>$.id+"")?.[e(316)]($=>a[e(484)]($));return!T(i);default:return!1}}).includes(!1)})},O=($,x)=>$?.map($=>{let t=_0x27ea;if(void 0!==$[t(648)]){let e=FGSECOMAPP[t(185)]?.[t(316)](x=>x[t(453)]===$[t(356)]),a=e?.[t(252)](($,x)=>$+x.quantity,0);if(a===$[t(588)]){let i=e?.[t(316)](e=>{let a=t;if(e[a(525)]?.[a(397)]()===x[a(397)]())return!1;let i=FGSECOMAPP[a(693)]?.[a(517)]($=>$.id?.[a(397)]()===e[a(525)]?.toString()),r=i[a(255)]??{},c=E($);return r[a(648)]&&c>0})?.[t(252)](($,x)=>$+x[t(588)],0);return{...$,cal_gift_for_other_rules:i>0,quantity:i??0}}return{...$,cal_gift_for_other_rules:!1,quantity:0}}return{...$}})??[],D=($,x,t,e)=>{let a=_0x52a36b,i=0,r=k(x,$,e);r=O(r,$[a(417)]);let c;return $[a(183)]===a(542)?c=S(r):$.unit===a(378)&&(c=A(r)),c>=$.min_amount&&(null===$.max_amount||c<=$[a(254)])&&(i=t[a(242)],$.is_multiply&&(i=Math[a(303)](c/$[a(256)])*i)),i},L=($,x,t,e)=>{let a=_0x52a36b,i={},r=[],c=0;return x[a(658)](x=>{let i=a,s=D(x,$,t,e);0!==s&&(c=s),r[i(609)](s>0)}),i[a(269)]=c,i.condition_result=r,i},G=($,x)=>{let t=_0x52a36b,e=!1;return 1===$[t(384)]?e=$[0]:2===$[t(384)]&&(x===t(489)&&(e=$[0]&&$[1]),"or"===x&&(e=$[0]||$[1])),e},N=($,x)=>{let t=_0x52a36b,e=$?.[t(658)]($=>$[t(356)]);FGSECOMAPP[t(185)]=FGSECOMAPP.arrOfferAdded.filter($=>e?.[t(484)]($.variantId));let a=x[t(362)][t(658)]($=>$[t(164)]),i=FGSECOMAPP[t(185)][t(316)]($=>$.belongs_to_offer?.[t(397)]()===x.id?.[t(397)]())?.[t(658)]($=>{let x=t;return $[x(453)]}),r=$[t(316)]($=>{let x=t;return _($)&&($[x(648)]=!1),a[x(484)]($[x(356)])&&i[x(484)]($[x(356)])}),c=r[t(658)]($=>{let e=t,a=x[e(255)];$.cal_gift_for_other_rules=a[e(648)],$[e(525)]=x.id?.[e(397)]();let i=FGSECOMAPP[e(185)]?.[e(316)](t=>t[e(525)]?.[e(397)]()!==x.id?.[e(397)]()&&$[e(356)]===t.variantId)?.[e(252)](($,x)=>$+x[e(588)],0);return{...$,quantity:$[e(588)]-i}});return c[t(316)]($=>{let e=t;return $.belongs_to_offer?.[e(397)]()===x.id?.[e(397)]()})},P=$=>{let x=_0x52a36b,t=$[x(330)][x(316)](t=>t[x(525)]?.[x(397)]()!==$.id?.[x(397)]()).map($=>$.product_id);return Object[x(229)]($[x(531)]).filter($=>!t[x(484)]($.product_shopify_id))},F=($,x)=>{let t=_0x52a36b,e=N($,x),a=L($,x[t(612)],x[t(255)],x[t(399)]?.[t(208)]),i=G(a.condition_result,x[t(698)]);if(i){let r=e[t(316)]($=>$[t(525)]?.[t(397)]()===x.id?.[t(397)]())[t(252)](($,x)=>$+x[t(588)],0);a[t(269)]=a.max_gifts_can_get-r,x[t(330)]=e,x.giftsAvailable=a.max_gifts_can_get}else x[t(330)]=e,x[t(537)]=0;return typeof FGSECOMAPP[t(211)]===t(635)&&x.priority>FGSECOMAPP[t(211)]&&(i=!1),i||!x[t(407)]||FGSECOMAPP[t(211)]!==x.priority||T(e)||(FGSECOMAPP[t(211)]=null),x[t(235)]=i,x[t(407)]&&i&&(null==FGSECOMAPP[t(211)]||x.priority<=FGSECOMAPP.maxOfferPriority)&&FGSECOMAPP[t(211)]!==x[t(427)]&&(FGSECOMAPP[t(211)]=x[t(427)]),x},R=$=>{let x=_0x52a36b,t=$+"=",e=document.cookie[x(624)](";");for(let a=0;a{let t=_0x52a36b,e=!0,a=!0,i=!0,r=!0;if(!T($[t(399)]?.[t(196)])){let c=R(t(392));e=c&&JSON[t(259)](c).includes($.sub_conditions[t(196)])}if(!T($[t(399)]?.[t(389)])){let{customer_tags:s}=$[t(399)],n=s?.value_customer_tags?.[t(502)]($=>x.customer[t(590)]?.[t(484)]($));a=s?.[t(225)]===t(218)?n:!n}if(!T($[t(399)]?.customer_locations)){let{customer_locations:o}=$[t(399)],l=o?.[t(557)]?.includes(FGSECOMAPP[t(367)]);r=o?.[t(654)]==="include"?l:!l}if(!T($[t(399)]?.customer_order_history)){let _=!0,d=$[t(399)][t(619)],f=x[t(287)][t(586)]??[];if(d[t(346)]){let u=Date[t(259)](d[t(346)])/1e3;f=f.filter($=>$[t(212)]>=u)}if(!T(d?.[t(375)])&&(0!==d.total_spend_on_order_history[t(256)]||0!==d[t(202)][t(254)])){let g=d.total_spend_on_order_history[t(256)],b=d[t(202)][t(254)],p=f.reduce(($,x)=>$+x[t(372)],0)/100;_&=(p>=g||!g)&&(p<=b||!b)}if(!T(d?.[t(678)])&&(0!==d.total_spent_on_last_order[t(256)]||0!==d[t(678)][t(254)])){let h=x[t(287)][t(593)]/100,m=d[t(678)][t(256)],v=d[t(678)].max_amount;_&=(h>=m||!m)&&(h<=v||!v)}if(!T(d?.[t(538)])){let y=!(0!==d[t(538)][t(256)]||0!==d[t(538)][t(254)]),I=f[t(384)],w=d.number_of_order[t(256)],C=d[t(538)][t(254)];_&=y?T(f):(I>=w||!w)&&(I<=C||!C)}if(d?.[t(312)]){let E=x[t(287)][t(318)]??[],S=$[t(362)]?.some($=>E[t(484)]($.variant_shopify_id))||$.gift_items?.[t(502)]($=>E[t(484)]($.original_variant_shopify_id+"_"+($[t(608)]-$[t(263)])*100));_&=!S}i=_}return e&&a&&i&&r},q=($,x,t)=>{let e=_0x52a36b,a=[],i=[],r=[],c=[];for(let s of x){let n=F($,s);if(!n[e(235)]){n[e(330)][e(384)]>0&&n[e(330)][e(548)]($=>{let x=e;i[x(609)]({variant_id:$.variant_id,quantity:$[x(588)],offer_id:s.id})});continue}if(n[e(537)]<0){n[e(330)][e(548)]($=>{let x=e;i[x(609)]({variant_id:$[x(356)],quantity:$.quantity,offer_id:s.id})});continue}0!==n[e(537)]&&(s[e(399)]?M(s,SECOMAPP)&&a[e(609)](s):a[e(609)](s))}if($?.[e(548)]($=>{let x=e;T($[x(525)])&&_($)&&i[x(609)]({variant_id:$[x(356)],quantity:$[x(588)],offer_id:$.belongs_to_offer?.[x(397)]()})}),t||T(i)){let o=a[e(658)]($=>{let x=e;return{id:$.id,offerName:$.offer_name,offerPriority:$[x(427)],stopLowerPriority:$.stop_lower_priority,gifts:P($),giftsAvailable:$.giftsAvailable,giftsAdded:$[x(330)],isReachConditions:$[x(235)]}});if(!T(o)){let l={};for(let d of o){let f=B(FGSECOMAPP[e(352)],d);f?.length>0?r=r.concat([...f]):d.gifts[e(658)]($=>{let x=e;l[$[x(336)]]={...$,belongs_to_offer:d.id?.[x(397)]()}})}c=Object.values(l)??[]}}return{arrGiftsAdd:r,arrGiftsRemove:i,arrGiftsData:c}},H=($,x)=>{let t=_0x52a36b,e=new Set;return $?.[t(548)]($=>e[t(512)]($.offer_id)),e[t(548)]($=>{let x=t,e=FGSECOMAPP[x(693)]?.find(t=>t.id?.[x(397)]()===$?.[x(397)]());if(T(e)||!e[x(235)]){FGSECOMAPP[x(185)]=FGSECOMAPP[x(185)]?.filter(t=>t.belongs_to_offer?.[x(397)]()!==$?.[x(397)]());return}if(e[x(537)]>=0)return;let a=[],i=FGSECOMAPP[x(185)]?.[x(316)](t=>t[x(525)]?.toString()===$?.[x(397)]())??[];if(e?.gift_settings?.auto_add_all_gifts)a=a[x(371)]([...i]),e[x(537)]=0;else for(let r of i){if(e.giftsAvailable>=0)break;e.giftsAvailable+=r[x(588)],e.giftsAvailable<=0?a.push({...r}):(r[x(588)]=e[x(537)],e[x(537)]=0)}a?.[x(548)]($=>{let t=x;FGSECOMAPP[t(185)]=FGSECOMAPP[t(185)]?.[t(316)](x=>$[t(453)]!==x.variantId||$[t(525)]?.[t(397)]()!==x.belongs_to_offer?.[t(397)]())})}),x?.[t(316)]($=>{let x=t;return _($)&&($.quantity=FGSECOMAPP[x(185)]?.filter(t=>$.variant_id===t[x(453)])?.[x(252)](($,t)=>$+t[x(588)],0)??0),$.quantity>0})??[]},U=async($,x)=>{let t=_0x52a36b,{arrGiftsAdd:e,arrGiftsRemove:a,arrGiftsData:i}=q($,x,!1),r=H(a,$);if(!T(a)){let c=q(r,x,!0);H(c?.[t(335)],$),e=c?.[t(359)],a=a?.[t(371)](c?.[t(335)])??[],i=c?.[t(594)]}return await f(e,a),n()[t(180)](),i},B=($,x)=>{let t=_0x52a36b,e=[];if($.auto_add_gift){let a=x[t(182)],i=a[t(252)](($,x)=>$+x[t(646)][t(384)],0),r=FGSECOMAPP[t(693)][t(316)]($=>$.id===x.id),c=r[0].gift_settings[t(634)],s=r[0].gift_should_the_same;if(1===i||c||s[t(573)]){if($[t(475)]&&!K(a)||$?.[t(671)]&&!X(a))return!1;if(s[t(573)]){if(s[t(701)]===t(697)){let n=FGSECOMAPP[t(233)];n=n.filter($=>$.product_id===a[0].original_product_shopify_id);let o=a[0].variants.filter($=>{let x=t;return n[0][x(356)]===$[x(178)]})[0];if(0===o[t(263)])return e[t(609)]({variant_id:o.variant_shopify_id,quantity:x[t(537)],offer_id:x.id}),e}else if(c){let l=a?.[t(252)](($,x)=>($+x?.[t(646)]?.[t(384)])??0,0);if(!l)return!1;let _=(x?.[t(537)]??0)/l;for(let d of a)for(let f of d[t(646)])e.push({variant_id:f[t(164)],quantity:_,offer_id:x.id});return e}}else{if(c){let u=a?.reduce(($,x)=>($+x?.[t(646)]?.length)??0,0);if(!u)return!1;let g=(x?.[t(537)]??0)/u;for(let b of a)for(let p of b[t(646)])e.push({variant_id:p[t(164)],quantity:g,offer_id:x.id});return e}{let h=a[0].variants[0];if(0===h[t(263)])return console[t(633)](t(509)+a[0][t(646)][0].variant_shopify_id+" "+a[0][t(646)][0][t(274)]),e.push({variant_id:h.variant_shopify_id,quantity:x[t(537)],offer_id:x.id}),e}}}}return!1},j=$=>{let x=_0x52a36b;return $===x(652)},z=$=>{let x=_0x52a36b;try{let t=Shopify[x(578)]??FGSECOMAPP[x(510)]?.[x(200)]?.[x(281)]?.[x(234)]??x(645),e=new URL($),a=new URLSearchParams(t);return a[x(548)](($,t)=>e[x(297)][x(341)](t,$)),e.toString()}catch(i){return $}},V=$=>{let t=_0x52a36b,e=$;if("by_variants"===FGSECOMAPP.fgAppearanceGiftSlider[t(431)])for(let a of(e=[],$)){let i=a[t(646)];i&&i[t(384)]&&i[t(548)]($=>e[t(609)]({...a,thumbnail:$[t(168)],variants:[$]}))}let r=document[t(344)](t(625));r&&(r[t(597)]=e[t(658)]($=>{let e=t,a=$?.[e(646)][0]??{},i=j(a.variant_title),r=$[e(646)]?.length,c=u(y($[e(515)],$[e(642)])),s=FGSECOMAPP[e(304)]?.[e(431)]===e(539),n=document[e(199)](x[e(506)])?.[e(597)]??x[e(681)];return n[e(419)](/{{\s*(fg_product_handle)\s*}}/gm,u(v($[e(515)],$.original_product_handle),!0)).replaceAll(/{{\s*(fg_product_img)\s*}}/gm,u(z($[e(168)]),!0)).replaceAll(/{{\s*(fg_product_img_alt)\s*}}/gm,c)[e(419)](/{{\s*(fg_product_title)\s*}}/gm,c)[e(419)](/{{\s*(fg_gifts_check_show_by_variants)\s*}}/gm,u(s&&FGSECOMAPP[e(304)][e(585)]?"":e(348)))[e(419)](/{{\s*(fg_gifts_check_show_by_products)\s*}}/gm,s?"sca-d-none":"")[e(419)](/{{\s*(fg_check_selected_variant)\s*}}/gm,1===r?"active "+(i?e(348):""):"")[e(419)](/{{\s*(fg_variant_title)\s*}}/gm,u(1!==r?FGSECOMAPP[e(304)][e(500)]??"Select variant":a[e(274)]))[e(419)](/{{\s*(fg_original_price)\s*}}/gm,u(m(a)))[e(419)](/{{\s*(fg_gift_price)\s*}}/gm,u(h(a))).replaceAll(/{{\s*(sca_fg_variant_select_section)\s*}}/gm,u(p($[e(646)],$.thumbnail)))[e(419)](/{{\s*(fg_product_belongs_to_offer)\s*}}/gm,$[e(525)])[e(419)](/{{\s*(fg_variant_id)\s*}}/gm,u(1===r?a.variant_shopify_id:""))[e(419)](/{{\s*(fg_add_to_cart)\s*}}/gm,u(FGSECOMAPP.fgAppearanceGiftSlider?.[e(282)]??"Add to cart"))})[t(403)](" \n"),new Glider(document[t(199)](t(575)),{slidesToShow:1,slidesToScroll:1,draggable:!1,dots:FGSECOMAPP[t(304)][t(496)]?t(647):null,arrows:{prev:".freegifts-main-container .glider-prev",next:t(258)},responsive:[{breakpoint:1024,settings:{slidesToShow:FGSECOMAPP[t(304)][t(466)]??4,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:2,slidesToScroll:1}}]}),document.dispatchEvent(new CustomEvent(FGSECOMAPP.CUSTOM_EVENTS[t(680)],{detail:FGSECOMAPP})))},W=async()=>{let $=_0x52a36b;try{let x=window[$(472)]?.[$(693)]??[];for(let t in await $1(),Shopify?.[$(514)])T(Shopify?.[$(514)][t]?.id)&&delete Shopify?.products[t];let e=[];return x[$(548)](x=>{let t=$,a=JSON[t(259)](JSON[t(524)](x));if(x.gift_should_the_same.status){let i=x.offer_conditions[0][t(349)],r=i[0][t(366)],c=[...a[t(362)]],s=[...a[t(531)]];if("variant"===x[t(257)][t(701)])for(let n in r){let o=r[n]?.[t(697)]??[];for(let l of o){a[t(612)][0][t(349)]=[{type:i[0].type,value:{[n]:{...r[n],variant:[{...l}]}}}],a[t(362)]=c[t(316)]($=>$[t(515)]+""===n&&l.id===$.original_variant_shopify_id),a.gift_products=s.filter($=>$[t(515)]+""===n),a.gift_products[0][t(646)]=[...a[t(362)]];let _=a[t(255)].number_of_gift_can_receive,d=a.gift_settings[t(634)];a[t(255)][t(634)]&&(_=a.gift_items[t(384)]),1===a.gift_items[t(384)]&&0===a[t(362)][0].price&&(d=!0),e[t(609)](JSON[t(259)](JSON[t(524)]({...a,gift_settings:{...a[t(255)],number_of_gift_can_receive:_,auto_add_all_gifts:d},id:a.id+"_"+r[n].handle+"_"+l.id})))}}else if(x[t(257)].type===t(581))for(let f in r){a.offer_conditions[0].product_narrow=[{type:i[0].type,value:{[f]:r[f]}}],a[t(362)]=c[t(316)]($=>$.original_product_shopify_id+""===f),a[t(531)]=s[t(316)]($=>$[t(515)]+""===f);let u=a.gift_settings[t(242)],g=a[t(255)][t(634)];a.gift_settings[t(634)]&&(u=a[t(362)][t(384)]),1===a[t(362)][t(384)]&&0===a.gift_items[0][t(263)]&&(g=!0),e.push(JSON[t(259)](JSON[t(524)]({...a,gift_settings:{...a.gift_settings,number_of_gift_can_receive:u,auto_add_all_gifts:g},id:a.id+"_"+r[f].handle})))}}}),(x=(x=(x=x?.[$(316)](x=>!x?.[$(257)]?.[$(573)])?.[$(371)](e))?.[$(658)](x=>{let t=$;return{...x,id:x.id[t(397)]()}}))?.[$(316)](x=>{let t=$;if(!J(x[t(309)],x[t(321)]))return!1;let e=!T(x[t(399)]?.[t(619)]||x.sub_conditions?.customer_tags);if(x.sub_conditions&&(!M(x,SECOMAPP)||e&&T(SECOMAPP[t(287)].email)))return!1;let a={...Shopify?.[t(514)]},i=!1;if("stop_offer"===FGSECOMAPP[t(352)][t(215)]){x.gift_items=x?.[t(362)][t(316)]($=>{let x=t,e=a[$[x(515)]]?.[x(572)]??{};return e[$[x(178)]]>0})??[];let r=x[t(362)]?.[t(658)]($=>$[t(164)]);x.gift_products=x?.[t(531)]?.[t(316)]($=>{let x=t;return $[x(646)]=$?.variants?.[x(316)]($=>{let t=x;return r?.[t(484)]($[t(164)])}),$?.[x(646)]?.[x(384)]>0}),i=!0}else if(FGSECOMAPP[t(352)][t(249)]){x.gift_items=x?.[t(362)][t(316)]($=>{let x=t,e=a[$[x(336)]]?.[x(572)]??{};return e[$[x(164)]]>0});let c=x[t(362)]?.[t(658)]($=>$[t(164)]);x[t(531)]=x?.[t(531)]?.[t(316)]($=>{let x=t;return $[x(646)]=$?.variants?.[x(316)]($=>{let t=x;return c?.includes($[t(164)])}),$?.[x(646)]?.[x(384)]>0}),i=!0}return i&&x[t(255)]?.[t(634)]&&(x[t(255)][t(242)]=x.gift_items?.[t(384)]),!i||x[t(362)]&&x[t(362)][t(384)]>0}))?.[$(658)](x=>{let t=$,e=x[t(362)][t(658)]($=>$.original_product_shopify_id);return x.gift_products=x[t(531)]?.filter($=>{let x=t;return e[x(484)]($[x(515)])}),x.offer_conditions?.forEach($=>{let x=t;$[x(183)]===x(542)&&($.min_amount=C($[x(256)]),$[x(254)]=T($[x(254)])?$[x(254)]:C($[x(254)]))}),x})}catch(a){return console.error(a),[]}},K=$=>{let x=_0x52a36b;for(let t of FGSECOMAPP[x(233)]){let e=t[x(357)];if($[0][x(515)]===e)return!1}return!0},X=$=>{let x=_0x52a36b;for(let t of FGSECOMAPP[x(233)]){let e=$[0][x(646)][0][x(608)];if(FGSECOMAPP[x(352)][x(671)]===x(404)&&(e=$[0][x(646)][0][x(468)]),e>E(t)/100)return!1}return!0},Y=async()=>{let $=_0x52a36b;try{let x=[];window.fgData?.[$(693)]?.[$(548)]($=>{let t=[];$.gift_products.forEach($=>{let x=_0x27ea;t[x(609)]($[x(503)],$[x(607)])}),x=[...x,...t]}),await $g(x=(x=[...new Set(x)])[$(316)](x=>T(FGSECOMAPP[$(663)][x]))),Object[$(229)](FGSECOMAPP.productsInPage)?.[$(548)](x=>{let t=$,{info:e}=x;T(e)||T(e?.id)||(Shopify[t(514)][e.id]={...e})})}catch(t){console.error(t)}},Z=async $=>{let x=_0x52a36b;w(),FGSECOMAPP[x(209)](),(FGSECOMAPP?.[x(352)]?.[x(215)]==="stop_offer"||FGSECOMAPP?.[x(352)]?.[x(249)])&&await Y(),FGSECOMAPP.offers=await W(),FGSECOMAPP[x(637)](),i(),c();try{T($)?(FGSECOMAPP[x(185)]=[],localStorage[x(691)](x(664),LZString[x(551)](JSON.stringify(FGSECOMAPP[x(185)])))):FGSECOMAPP[x(185)]=JSON.parse(LZString.decompressFromBase64(localStorage[x(478)]("sca_offers_added")))}catch(t){FGSECOMAPP[x(185)]=[],localStorage[x(691)]("sca_offers_added",LZString[x(551)](JSON[x(524)](FGSECOMAPP[x(185)])))}let e={};FGSECOMAPP[x(693)]?.[x(548)]($=>{let t=x;e[$.id]=$?.[t(362)]?.[t(658)]($=>$.variant_shopify_id)});let a=Object[x(544)](e);FGSECOMAPP.arrOfferAdded=FGSECOMAPP[x(185)]?.[x(316)]($=>a?.[x(484)]($[x(525)]?.[x(397)]())&&e[$[x(525)]?.[x(397)]()].includes($[x(453)]));let r={};FGSECOMAPP[x(185)]?.[x(548)]($=>{let t=x,e=r[$[t(525)]+"_"+$[t(453)]]??{};r[$.belongs_to_offer+"_"+$[t(453)]]={...$,belongs_to_offer:$.belongs_to_offer?.[t(397)](),quantity:(e?.[t(588)]??0)+($?.[t(588)]??0)}}),FGSECOMAPP[x(185)]=Object[x(229)](r),localStorage.setItem(x(664),LZString[x(551)](JSON[x(524)](FGSECOMAPP[x(185)])));let s=await U($,FGSECOMAPP[x(693)]);await $$(s),$p(),$3(),$b()},Q=function(){let $=_0x52a36b,x=document[$(243)]($(682)),t=document[$(243)]($(414)),a=$(245),i=document[$(243)]($(181)),r=i[$(384)];for(let c=0;c{let t=$;x[t(194)]===document.querySelector(t(340))&&(document[t(199)](t(340))[t(692)].remove(a),e())}),document[$(391)]($(394),x=>{let t=$;x[t(288)]===t(422)&&document[t(199)](t(340))&&(document[t(199)](t(340))[t(692)][t(641)](a),e())}),document[$(243)]("#fg-gift-items .dropdown")[$(548)](x=>x.addEventListener($(640),function(){let x=$;this.setAttribute("tabindex",1),this.focus(),this[x(692)][x(561)](x(203)),this.querySelector(x(428))[x(692)][x(561)](x(532))})),document[$(243)]($(270))[$(548)](x=>document.addEventListener($(640),function(t){let e=$,a=x[e(522)](t[e(194)]);a||(x[e(692)][e(641)]("active"),x[e(199)](".dropdown-menu")[e(692)][e(641)](e(532))),document[e(243)](e(445))[e(548)]($=>{let x=e;$.disabled=!0,$[x(420)][x(439)]=x(457)})})),document[$(243)]($(610))[$(548)](x=>{let t=$;x[t(391)](t(640),function(){let $=t,x=this[$(454)]("id"),e=this[$(454)]($(553)),a=this[$(454)]($(650)),i=this[$(454)]($(651)),r=this.getAttribute($(523)),c=this[$(350)][$(350)].parentElement[$(350)];c[$(199)]($(331))[$(280)]("src",e);let s=new URL(c[$(199)]($(563)).href);s[$(297)].set($(697),r),c[$(199)](".gift-original-url")[$(534)]=s[$(397)]();let n=this[$(350)].parentElement[$(350)];n[$(199)]($(549)).textContent=i,n[$(199)]($(449))[$(268)]=a;let o=n?.[$(199)](".btn-add-to-cart");o[$(280)]("data-variant",x),o.disabled=!1,o[$(420)]="";let l=this[$(350)][$(350)][$(199)]($(383));l[$(692)][$(512)]($(203)),l[$(597)]=this[$(516)]})}),document.querySelectorAll("#fg-gift-items .btn-add-to-cart")[$(548)](x=>x.addEventListener("click",async function(){let x=$,t=this.getAttribute(x(570))-0,e=this[x(454)]("data-offer");try{await l(t,1,e);let i=document[x(199)](x(340));i&&(FGSECOMAPP[x(567)]=!0,await new Promise($=>setTimeout($,800)),i[x(692)][x(641)](a)),window[x(425)][x(534)][x(484)](x(308))?location[x(369)]():typeof Shopify?.[x(665)]===x(228)&&await Shopify?.getCart(0===FGSECOMAPP[x(364)].length?function(){}:FGSECOMAPP[x(364)][0])}catch(r){console[x(568)](r)}}))},J=($,x)=>{let t=_0x52a36b;if($){let e=new Date,a=e[t(363)](),i=new Date($)[t(363)]();if(!x)return a>=i;{let r=new Date(x)[t(363)]();return a>=i&&a<=r}}return!1},$$=async $=>{let x=_0x52a36b;if(FGSECOMAPP.fgSettings?.[x(569)])for(let t of FGSECOMAPP[x(233)])_(t)&&($=$[x(316)]($=>$[x(336)]!==t[x(357)]));if(FGSECOMAPP[x(352)]?.[x(475)])for(let e of FGSECOMAPP[x(233)])$=$[x(316)]($=>$[x(515)]!==e.product_id);if(FGSECOMAPP[x(352)]?.[x(671)])for(let a of FGSECOMAPP[x(233)])$=$[x(316)]($=>{let t=x;return $[t(646)]=$[t(646)][t(316)]($=>{let x=t,e=$[x(608)];return FGSECOMAPP[x(352)]?.[x(671)]===x(404)&&(e=$[x(468)]),e<=E(a)/100}),!T($.variants)});$&&$.length>0&&(FGSECOMAPP.isDelayShowAdded?(await new Promise($=>setTimeout($,1500)),FGSECOMAPP.isDelayShowAdded=!1,b(),V($)):(b(),V($))),Q(),FGSECOMAPP[x(209)](),FGSECOMAPP.renderPromotionMessage(FGSECOMAPP[x(693)]),$e=[]},$x=async $=>{let x=_0x52a36b;$e=[];let t=new URL(window.location[x(534)]);t.searchParams[x(341)]("sca_fetch_cart",""),a(t[x(397)]())[x(180)]($=>$[x(643)]())[x(180)]($=>{let t=x,e=new DOMParser,a=e[t(187)]($,"text/html"),i=t(482)+I("sca_fg_cart_drawer_query"),r=t(694)+I(t(688)),c=document[t(199)](i),s=!1;c&&(s=!0,c[t(597)]=a[t(199)](i)?.[t(597)]??c.innerHTML);let n=document[t(199)](r);n||(n=document[t(199)](t(493))),n&&(s=!0,n.innerHTML=a[t(199)](r)?.[t(597)]??a[t(199)](t(219))?.innerHTML??n[t(597)]),s||console[t(633)](t(528))}),"function"==typeof FGSECOMAPP?.[x(487)]&&await FGSECOMAPP[x(487)](),document.dispatchEvent(new CustomEvent(FGSECOMAPP[x(437)][x(565)],{detail:FGSECOMAPP})),setTimeout(function(){$$($)},800)},$0=async $=>{let x=_0x52a36b,t=await a(x(351)+($??""),{method:"GET",headers:{Accept:x(628),"Content-Type":"application/json"}})[x(180)]($=>$.json()),e=t[x(463)];return FGSECOMAPP[x(409)]=t,FGSECOMAPP[x(233)]=e?.[x(658)]($=>{let t=x;return{...FGSECOMAPP[t(233)]?.[t(517)](x=>x.id===$.id),...$}})??[],t},$t=async()=>{let $=_0x52a36b,x=FGSECOMAPP[$(409)];try{await a(SECOMAPP.freegiftProxy,{method:$(676),headers:{"Content-Type":$(276)}})[$(180)](async t=>{let e=$,a=await t[e(442)]();FGSECOMAPP[e(233)]=a?.[e(655)]?.[e(658)]($=>{let x=e;return{...FGSECOMAPP[x(233)]?.[x(517)](x=>x.id===$.id),...$[x(581)],collections:$[x(667)],tags:$[x(590)]}})??[],FGSECOMAPP.SHOPIFY_CART=a?.[e(292)]??{},x=FGSECOMAPP[e(409)]})[$(265)](async t=>{let e=$;console[e(568)](e(368)+t.message),x=await $0()})}catch(t){console[$(568)]($(177),t.message),x=await $0()}return x},$e=[],$a=async $=>{let x=_0x52a36b;try{$===x(476)?$e[x(609)](x(661)):$e[x(609)]($[0]),await $t();let t=await U(FGSECOMAPP.cartItems,FGSECOMAPP.offers);FGSECOMAPP[x(267)](FGSECOMAPP[x(693)]);let e=!1;return $[0][x(621)]("/cart/add")&&JSON[x(524)]($[1][x(241)]??[])[x(484)]("sca_add_gift")?(console[x(633)]("event add gift to cart from popup",[...$e]),await $x(t),e=!0):$[0][x(621)](x(591))&&JSON[x(524)]($[1][x(241)]??[])[x(484)](x(406))?(console[x(633)]("event auto process gifts with cart",[...$e]),await $x(t),e=!0):(console[x(633)]("this is others",[...$e]),await $$(t)),e&&(window[x(425)][x(534)][x(484)](x(308))||document.querySelector(x(649))?.getAttribute(x(239))===x(700))&&($e=[],location[x(369)]()),FGSECOMAPP[x(233)]}catch(a){console[x(568)](a)}},$i=()=>{let $=_0x52a36b;if(!Shopify?.[$(311)])return;let x=document[$(199)]($(552));if(!x)return;x[$(597)]="";let t=Shopify?.[$(376)]??$(631),e=document[$(474)]("li");e[$(486)]=$(470),e[$(597)]=$(223)+t+$(684),x[$(686)](e),e[$(616)]=setTimeout(()=>$r(e),3e3),document[$(199)]($(562))?.[$(391)]("click",()=>$r(e))},$r=$=>{let x=_0x52a36b;$[x(692)].add(x(584)),$[x(616)]&&clearTimeout($[x(616)]),setTimeout(()=>$[x(641)](),500)},$c=($,{value:x,innerHTML:t})=>{let e=_0x52a36b;try{let a=FGSECOMAPP[e(352)]?.[e(446)],i=a===e(433)?$[e(194)]:$[e(184)]??$.target;if(i?.[e(703)](e(240))||(i=document[e(199)](e(492))?.[e(339)]),i.value=x,i[e(597)]=t,i[e(186)]=!1,i[e(626)](e(640),$s),i[e(560)](e(240)),a===e(324)){i[e(339)][e(199)](e(687))[e(640)]();return}a===e(433)&&window[e(626)](e(640),$n,!0),i[e(640)]()}catch(r){window[e(425)].replace((Shopify?.[e(395)]?.[e(602)]??"/")+"checkout"),console[e(568)](r[e(660)])}},$s=async $=>{let x=_0x52a36b;try{$.preventDefault(),$.stopPropagation(),$[x(436)]();let t=FGSECOMAPP.fgSettings?.[x(446)],e=t===x(433)?$.target:$.currentTarget??$[x(194)],{form:i}=e,r="",c="";if(e&&(e[x(186)]=!0,r=e[x(597)],c=e[x(366)],"function"==typeof FGSECOMAPP?.[x(289)]?await FGSECOMAPP[x(289)]("start"):(e.value="Loading...",e[x(597)]='
    \n Loading...\n
    ')),document[x(638)](new CustomEvent(FGSECOMAPP[x(437)][x(535)],{detail:FGSECOMAPP})),FGSECOMAPP[x(677)])return!1;FGSECOMAPP[x(677)]=!0;try{let s=new URL(i.action);s.searchParams[x(574)](x(264),""),await a(s.toString(),{method:x(480),body:new FormData(i)})}catch(n){console.log(x(401))}if(T(FGSECOMAPP[x(693)])&&T(FGSECOMAPP[x(233)]?.find($=>_($))))return console[x(633)](x(396)),$c($,{value:c,innerHTML:r}),!1;await $t();let o=[...FGSECOMAPP[x(233)]],l=!1;for(let d of FGSECOMAPP[x(693)])if(d[x(330)]&&d[x(330)][x(384)]){let f=F(o,d),u=J(d[x(309)],d[x(321)]);!u&&f.giftsAdded[x(384)]>0&&(l=!0),f[x(235)]||(l=!0),f[x(537)]<0&&(l=!0),d[x(399)]&&!M(d,SECOMAPP)&&(l=!0)}if(await U(o,FGSECOMAPP[x(693)]),l)location[x(369)]();else try{FGSECOMAPP[x(352)][x(639)]&&!T(FGSECOMAPP[x(233)]?.[x(517)]($=>_($)))?await a(SECOMAPP[x(644)]+"&sca_shop_name="+Shopify?.[x(198)],{method:"GET",headers:{"Content-Type":x(276)}}).then(async $=>{let t=x,e=await $[t(442)]();e[t(655)]=(e.cart??[])[t(658)]($=>{let x=t;return $[x(581)][x(667)]=$[x(667)]?.[x(658)]($=>({id:$.id})),$[x(581)][x(590)]=$[x(590)],{id:$.product.id,variant_id:$[x(581)][x(356)],title:$[x(581)][x(642)],handle:$[x(581)].handle,price:E($[x(581)]),quantity:$[x(581)][x(588)],product_type:$[x(581)][x(205)],vendor:$[x(581)].vendor,tags:$[x(581)][x(590)],collections:$[x(581)].collections,selling_plan_allocation:$[x(581)].selling_plan_allocation}}),e[t(281)]={arr_offer_added:FGSECOMAPP[t(185)],secomapp:{customer:SECOMAPP?.[t(287)]??{},fg_codes:SECOMAPP?.fg_codes??[],fgSettings:FGSECOMAPP[t(352)]},cookie_fg_code:R("sca_fg_codes"),shopify_currency:Shopify?.currency},await a(SECOMAPP[t(644)]+t(365)+LZString[t(412)](e=JSON[t(524)](e)),{method:t(676),headers:{"Content-Type":t(276)}})[t(180)](async $=>{let x=t,e=await $[x(442)]();try{FGSECOMAPP[x(677)]=!1,e[x(171)]&&(window[x(425)][x(534)]=e.sca_link_checkout[x(533)])}catch(a){console[x(568)](a)}})}):(console[x(633)](x(618)),FGSECOMAPP[x(677)]=!1,$c($,{value:c,innerHTML:r}))}catch(g){FGSECOMAPP[x(677)]=!1,$c(g,{value:c,innerHTML:r})}(e=t===x(433)?$.target:$[x(184)]??$[x(194)])&&(typeof FGSECOMAPP?.scaCustomLoadingCheckout===x(228)?await FGSECOMAPP[x(289)](x(611)):(e[x(366)]=c,e[x(597)]=r),e[x(186)]=!1),document.dispatchEvent(new CustomEvent(FGSECOMAPP[x(437)][x(479)],{detail:FGSECOMAPP}))}catch(b){"function"==typeof FGSECOMAPP?.[x(289)]&&await FGSECOMAPP[x(289)](x(611)),document[x(638)](new CustomEvent(FGSECOMAPP[x(437)][x(479)],{detail:FGSECOMAPP})),console[x(568)](b)}},$n=async $=>{let x=_0x52a36b;$[x(194)]?.[x(703)]("sca_handle_checkout")&&await $s($)},$o=()=>{let $=_0x52a36b,x=FGSECOMAPP[$(352)]?.[$(446)],t=$(326),e=t+$(518)+I($(520));document[$(243)](e)[$(548)](t=>{let e=$,a=t[e(703)](e(333)),i=t[e(703)](e(629)),r=t[e(703)]("sca_handle_checkout");if(x===e(324)){if(a)return;if(!i&&!r){let c=t[e(342)](!0);c[e(391)](e(640),$s),c[e(280)](e(240),""),c[e(280)](e(629),""),t.style.display=e(541),t[e(420)][e(402)]=e(328),t[e(420)][e(673)]="0",t[e(280)](e(333),""),t.parentNode?.[e(686)](c)}i&&!r&&(t[e(391)](e(640),$s),t[e(280)](e(240),""))}else x===e(433)?t.setAttribute(e(240),""):r||(t.addEventListener(e(640),$s),t[e(280)](e(240),""));FGSECOMAPP[e(683)]=!0}),x===$(433)&&window[$(391)]($(640),$n,!0)};FGSECOMAPP[_0x52a36b(209)]=()=>{let $=_0x52a36b;FGSECOMAPP[$(550)]=0;let x=setInterval(()=>{let t=$;$o(),FGSECOMAPP[t(550)]++,(FGSECOMAPP.scaCountRenderEventCheckout>10||FGSECOMAPP[t(683)])&&(FGSECOMAPP.scaCountRenderEventCheckout=0,clearInterval(x))},400)};let $l=$=>{let x=_0x52a36b;try{let t={},e={},a=FGSECOMAPP[x(693)];if(T($)){$=[],T(Shopify?.[x(432)])||$[x(609)]({...Shopify?.[x(432)]});let i={...Shopify?.[x(329)],...Shopify?.[x(298)]?.[x(514)]};Object[x(229)](FGSECOMAPP.productsInPage)?.[x(316)]($=>!T($.info)&&(T($?.[x(491)])||$?.product_has_icon&&!$?.[x(283)]?.every($=>$?.[x(692)]?.[x(522)](x(206)))))?.[x(548)]($=>{let t=x;i[$.info.id]={...$[t(244)]}}),$=$[x(371)]([...Object[x(229)](i)])}for(let r in $?.[x(548)]($=>{let t=x,e=FGSECOMAPP.productsInPage[$[t(527)]];FGSECOMAPP[t(663)][$.handle]={...e,info:{...$},product_has_icon:!!T(a)&&void 0}}),a?.[x(548)](a=>{let i=x,r=a[i(612)];if(1===r.length&&"number_of_products"===r[0].unit&&typeof r[0][i(296)]===i(429)){let c,s=r[0].product_narrow;s?.forEach(x=>{let t=i;switch(x[t(701)]){case"variants_ids":c=Object[t(229)](x[t(366)]);break;case t(426):let e=Object[t(544)](x[t(366)]);e[t(384)]>0&&(c=(void 0===c?$:c)?.filter($=>e.includes($[t(701)]))??[]);break;case t(424):let a=Object.keys(x[t(366)]);a.length>0&&(c=(void 0===c?$:c)?.[t(316)]($=>a[t(484)]($[t(230)]))??[]);break;case t(558):let r=Object[t(544)](x[t(366)]);r.length>0&&(c=(void 0===c?$:c)?.filter($=>{let x=t,e=$[x(667)]?.[x(658)]($=>$.id+""),a=e?.[x(316)]($=>r.includes($));return!T(a)})??[])}}),c?.[i(548)]($=>{let x=i,r=$[x(527)];if(t[r]){let c=t[r]?.[x(658)]($=>$[x(515)]),s=a[x(531)]?.[x(316)]($=>!c?.[x(484)]($[x(515)]));t[r]=t[r].concat(s)}else t[r]=a.gift_products;let n=$[x(697)]?.[x(658)]($=>$.id)??[];e[r]=n[x(371)](e[r]??[]),e[r]=[...new Set(e[r])]})}}),t){let c=FGSECOMAPP[x(663)][r];FGSECOMAPP[x(663)][r]={...c,gifts_will_receive:[...t[r]],product_has_icon:!0,variants_has_gift:[...e[r]]}}return Object[x(444)](t)?.length?t:{}}catch(s){return console[x(568)](s),null}},$8=$=>{let t=_0x52a36b,e=FGSECOMAPP[t(322)][t(314)]??{};if(!e.gift_thumbnail?.status)return;let a=document[t(199)](x[t(416)])?.[t(597)]??x[t(685)],i=$?.[t(658)]($=>a[t(419)](/{{\s*(fg_product_handle)\s*}}/gm,u(v($[t(515)],$[t(607)]),!0))[t(419)](/{{\s*(fg_product_img)\s*}}/gm,u(z($[t(168)]),!0)).replaceAll(/{{\s*(fg_product_img_alt)\s*}}/gm,u(y($.original_product_shopify_id,$.title)))).join(""),r=document.querySelector(x[t(343)])?.[t(597)]??x.GIFT_THUMBNAIL_SECTION,c=r.replaceAll(/{{\s*(fg_gift_thumbnail_title)\s*}}/gm,u(e.gift_thumbnail?.[t(642)]??t(388)))[t(419)](/{{\s*(sca_fg_gift_thumbnail_items_section)\s*}}/gm,i)[t(419)](/{{\s*(fg_check_show_narrow)\s*}}/gm,$?.[t(384)]>=4?"":t(348)),s=t(458)+I("sca_fg_btn_gift_thumbnail_query"),n=document[t(199)](s)??document[t(199)](t(193));if(!n)return;n[t(339)].style.width=t(226),n[t(339)][t(420)][t(495)]="auto",n.parentNode?.className?.includes(t(494))||n[t(339)]?.[t(692)]?.add("sca-fg-form-thumbnail-product-page");let o=n[t(339)][t(199)](t(250));if(o)o[t(597)]=c;else{(o=document[t(474)]("div"))[t(280)]("id",t(393));let l=new DOMParser()[t(187)](c,t(545));o.innerHTML=l[t(434)].innerHTML,n[t(339)][t(481)](o,n)}n.parentNode[t(481)](o,n);let _=document[t(199)](t(299));if(_)switch(e[t(195)]?.[t(345)]){case"32":_.style[t(175)]=t(221);break;case"50":_[t(420)][t(175)]=t(167);break;case t(286):_[t(420)][t(175)]=t(462);break;case t(455):_[t(420)].maxWidth=t(277);break;case"240":_[t(420)][t(175)]="100%";break;default:_[t(420)][t(175)]=t(167)}if($?.length>=4)new Glider(document[t(199)](t(360)),{slidesToShow:3,slidesToScroll:1,draggable:!0,dots:".dots-thumbnail",arrows:{prev:t(603),next:t(620)}});else{_&&(_[t(420)][t(175)]="100%");let d=document[t(199)](".sca-list-gift-thumbnail");d&&(d[t(420)][t(662)]=t(675))}},$_=()=>{let $=_0x52a36b;if(!(FGSECOMAPP[$(322)][$(314)]??{})[$(170)]?.[$(573)])return;let t=document[$(199)](x[$(488)])?.[$(597)]??x[$(592)],e=t[$(419)](/{{\s*(fg_gift_icon)\s*}}/gm,FGSECOMAPP[$(322)].gift_icon_path)[$(419)](/{{\s*(fg_gift_icon_alt)\s*}}/gm,$(273))[$(419)](/{{\s*(fg_class_product_or_collection_page)\s*}}/gm,$(174)),a=$(546)+I($(668)),i=document.querySelector(a)??document.querySelector($(347));if(!i)return;i[$(420)][$(448)]="relative",i.style[$(656)]=$(190),i[$(486)]?.[$(484)]($(617))||i[$(692)]?.[$(512)]($(617));let r=i[$(199)]($(423));if(r)r[$(597)]=e;else{(r=document[$(474)]($(246)))[$(280)]("id",$(386));let c=new DOMParser()[$(187)](e,$(545));r.innerHTML=c[$(434)].innerHTML,i[$(686)](r)}},$d=()=>{let $=_0x52a36b,x=[],t=$(293)+I("sca_fg_img_collection_gift_icon_query");return document[$(243)](t)[$(548)](t=>{let e=$,a=t[e(199)](e(452)),i=a?.[e(454)]("href")?.split("/")??[],r=i?.[e(613)](e(514)),c=r>=0?i[r+1]??null:null;if(c=c?.[e(624)]("?")?.shift(),_(c)){t[e(641)]();return}let s=t[e(199)](e(334));if(s){t[e(641)]();return}if(T(c))return;let n=decodeURI(c);T(FGSECOMAPP[e(663)][n]?.[e(244)])&&x.push(n);let o=(FGSECOMAPP[e(663)][n]?.[e(283)]??[])[e(316)]($=>!t[e(165)]($));o[e(609)](t),FGSECOMAPP[e(663)][n]={...FGSECOMAPP[e(663)][n],positions:[...o]}}),x},$f=$=>{let t=_0x52a36b;Object[t(544)]($)?.[t(548)]($=>{let e=t,a=FGSECOMAPP.productsInPage[$]?.[e(283)]??[];if(T(a)||!Array.isArray(a))return;if(!(FGSECOMAPP.fgAppearanceGiftIcon[e(547)]??{})[e(573)])return;let i=document[e(199)](x.GIFT_ICON_SECTION_ID)?.[e(597)]??x[e(592)],r=i[e(419)](/{{\s*(fg_gift_icon)\s*}}/gm,FGSECOMAPP.fgAppearanceGiftIcon.gift_icon_path)[e(419)](/{{\s*(fg_gift_icon_alt)\s*}}/gm,e(273)).replaceAll(/{{\s*(fg_class_product_or_collection_page)\s*}}/gm,e(599));a[e(548)]($=>{let x=e;$[x(420)][x(448)]=x(238),$.className?.[x(484)](x(305))||$[x(692)]?.[x(512)]("sca-fg-icon-collection-page");let t=$[x(199)](".sca-gift-icon-collection-page");if(t)t[x(597)]=r;else{(t=document.createElement("div"))[x(280)]("class",x(206));let a=new DOMParser()[x(187)](r,x(545));t[x(597)]=a[x(434)][x(597)],$[x(686)](t)}})})},$u=async $=>{let x=_0x52a36b;await a(SECOMAPP[x(644)]+x(614)+LZString[x(412)](JSON[x(524)]($)),{method:x(676),headers:{"Content-Type":x(276)}})[x(180)](async $=>{let t=x,e=await $[t(442)](),a=[];e?.products?.[t(548)]($=>{let x=t;T($?.[x(514)]?.id)||a[x(609)]({...$.products,collections:$[x(667)],variants_quantity:$[x(572)]})});let i=$l(a);$f(i)})[x(265)]($=>{console.error($)})},$g=async $=>{let x=_0x52a36b,t=[];for(let[e,a]of $.entries())T(FGSECOMAPP[x(663)][a]?.[x(244)])&&t[x(609)](a),20===t.length&&(await $u([...t]),t=[]),e===$.length-1&&t.length>0&&(await $u([...t]),t=[])},$b=()=>{let $=_0x52a36b,x=$d(),t=$l();$f(t),$g(x)[$(180)]()},$p=()=>{let $=_0x52a36b;Shopify?.enable_check_variants_has_gift&&document.addEventListener($(704),function(){let x=$,t=new URL(document[x(310)]),e=parseInt(t[x(297)][x(505)](x(697)));$3(isNaN(e)?void 0:e)})},$3=$=>{let x=_0x52a36b;if(!location.href.includes(x(441)))return;document.querySelector(x(423))?.[x(641)](),document[x(199)](x(250))?.[x(641)]();let t=$l();if(T(t))return;let e=location[x(284)][x(624)]("/"),a=e?.[x(613)](x(514)),i=decodeURI(a>=0?e[a+1]??null:null);if(!Object[x(544)](t)?.[x(484)](i))return;let r=t[i],c=FGSECOMAPP.productsInPage[i]?.variants_has_gift??[];!(Shopify?.[x(355)]&&(!T($)&&!c[x(484)]($)||T($)&&!T(Shopify?.current_product?.current_variant)&&!c[x(484)](Shopify?.[x(432)]?.[x(400)]?.id)))&&($8(r),$_(r))};FGSECOMAPP[_0x52a36b(267)]=$=>{let t=_0x52a36b;try{T($)&&($=[...FGSECOMAPP.offers]);let e=location[t(534)][t(484)](t(308)),a=[];if($?.[t(548)]($=>{let x=t;if($[x(235)]||T($.promotion_message)||!T(FGSECOMAPP.maxOfferPriority)&&!$[x(235)]&&$[x(407)]&&$.priority>FGSECOMAPP.maxOfferPriority)return;let e=$[x(582)];$[x(612)]?.[x(548)]($=>{let t=x,a=k(FGSECOMAPP.cartItems,$);a=O(a,$[t(417)]);let i=0,r=null,c=0;$.unit===t(542)?(i=S(a),r=t(679),c=Shopify?.sca_amount_fixed??2):"number_of_products"===$[t(183)]&&(i=A(a),r=t(601),c=0);let s=Math[t(467)]($[t(256)]-i,0)[t(253)](c);e=e[t(419)](r,s)}),a[x(609)](e)}),T(a)){document[t(243)](t(387))[t(548)]($=>$[t(597)]="");return}let i="",r=document[t(199)](x[t(379)])?.[t(597)]??x.CART_MSG_ITEM_SECTION,c=a[t(658)]($=>r.replaceAll(/{{\s*(fg_cart_message)\s*}}/gm,u($)))[t(403)](""),s=document[t(199)](x[t(216)])?.[t(597)]??x[t(559)],n=s[t(419)](/{{\s*(sca_fg_cart_message_items_section)\s*}}/gm,c);FGSECOMAPP[t(232)][t(247)]&&(i=n);let o="#MainContent, #mainContent, #main, .main-content",l=document[t(199)](o),_=l?.querySelector("cart-items, .cart-header, .section-header"),d=t(485),f=document[t(243)](d+t(657)+I(t(224))),g=document[t(243)](".sca-promotion-message-layout");T(g)||g.forEach($=>$[t(597)]=i),(g=document[t(474)]("div")).setAttribute("id",t(323)),g[t(692)][t(512)]("sca-promotion-message-layout");let b=new DOMParser().parseFromString(i,t(545));g[t(597)]=b.body[t(597)],T(f)?!l?.[t(199)](t(387))&&(b=new DOMParser()[t(187)](i,"text/html"),g.innerHTML=b[t(434)].innerHTML,l&&_&&e?_.prepend(g):l&&e&&l.prepend(g)):f?.[t(548)]($=>{let x=t;if($[x(199)](x(387)))return;let e=g[x(342)](!0);$[x(536)](e)});try{document[t(243)](t(353))[t(548)]($=>{let x=new Glider($);(($,x)=>{let t=_0x27ea,e=$.track.childElementCount,a=null,i=1;function r(){a=setTimeout(()=>{let x=_0x27ea;i>=e&&(i=0),$[x(313)](i++)},x)}$.ele[t(391)](t(381),function(){window.clearInterval(a),r()}),r()})(x,Shopify?.sca_deplay_cart_msg??3e3)})}catch(p){console.error(p)}}catch(h){console[t(568)](h)}};let $1=async()=>{let $=_0x52a36b;try{let x=await a($(469)),t=await x[$(442)]();FGSECOMAPP[$(367)]=t?.[$(623)]}catch(e){console[$(633)]($(577))}},$h=function(){let $=_0x52a36b;try{let x=()=>{let $=_0x27ea;typeof FGSECOMAPP[$(487)]!==$(228)&&typeof window[$(290)]===$(228)&&(FGSECOMAPP[$(487)]=async()=>{await window[$(290)]()})};x(),window.addEventListener($(696),function(x){let t=$;FGSECOMAPP[t(267)](),FGSECOMAPP[t(209)]()}),window[$(391)]($(583),function(t){x(),$a("/cart.js")[$(180)](()=>{window.prepareDataForDisplayWidgetByRule()})}),window[$(391)]("icartUpdateCartEvent",function(t){let e=$;x(),$a("/cart.js")[e(180)](()=>{window[e(290)]()})}),document[$(391)]($(191),x=>{let t=$;FGSECOMAPP[t(267)](),FGSECOMAPP[t(209)]()});let t=()=>{let x=$;typeof FGSECOMAPP[x(487)]!==x(228)&&typeof window.SLIDECART_UPDATE===x(228)&&(FGSECOMAPP[x(487)]=async()=>{let $=x;await $0($(465))[$(180)](x=>{let t=$;window[t(358)](x),window[t(317)]()})})};t(),window.SLIDECART_UPDATED=function(x){let e=$;t();let a={...FGSECOMAPP.SHOPIFY_CART};$a(e(476))[e(180)](()=>{let $=e;$0($(465))[$(180)](x=>{let t=$;window[t(519)](),window[t(358)](x),document[t(199)](t(340))||T(a)||window[t(317)]()})})},window[$(471)]=function(){FGSECOMAPP[$(267)](),FGSECOMAPP.fetchCheckoutEvents()};let e=()=>{let x=$,t=document[x(199)](x(669));t&&(t[x(597)]=FGSECOMAPP?.[x(409)]?.item_count??0),typeof FGSECOMAPP[x(487)]!==x(228)&&typeof window.upcartRegisterAddToCart===x(228)&&(FGSECOMAPP.reRenderCartCustom=async()=>{await window[x(354)]()})};e(),window.upcartOnAddToCart=(x,t)=>{let a=$;e(),$a(a(476))[a(180)]()},window[$(413)]=x=>{let t=$;e(),$a(t(476))[t(180)]()},window.upcartOnCartOpened=()=>{FGSECOMAPP[$(267)](),FGSECOMAPP.fetchCheckoutEvents()};let a=()=>{let x=$;"function"!=typeof FGSECOMAPP[x(487)]&&"function"==typeof window[x(587)]&&(FGSECOMAPP[x(487)]=async()=>{let $=x;await window[$(587)](),window[$(530)]()})};a(),document[$(391)]($(197),x=>{a(),$a($(476)).then()});let i=()=>{let x=$;typeof FGSECOMAPP[x(487)]!==x(228)&&typeof window?.[x(443)]?.[x(674)]?.CartSlider?.[x(579)]===x(228)&&(FGSECOMAPP[x(487)]=async()=>{let $=x;await window[$(443)][$(674)][$(659)].openSlider()})};i(),document[$(391)]($(172),x=>{let t=$;i(),$a(t(476))[t(180)](()=>{let $=t;document[$(199)]($(340))&&document[$(199)](".satcb-cs-close")?.[$(640)]()})});let r=()=>{let x=$;typeof FGSECOMAPP[x(487)]!==x(228)&&"function"==typeof window[x(501)]&&(FGSECOMAPP[x(487)]=async()=>{let $=x;await window[$(501)](),window[$(410)]()})};r(),document[$(391)]($(251),x=>{let t=$;r(),$a(t(476))[t(180)]()}),(()=>{let x=$;typeof FGSECOMAPP.reRenderCartCustom!==x(228)&&"function"==typeof window.HS_SLIDE_CART_UPDATE&&(FGSECOMAPP[x(487)]=async()=>{let $=x;await window[$(498)](),window[$(689)]()})})(),document[$(391)](FGSECOMAPP[$(437)][$(680)],()=>{let x=$;try{typeof window[x(672)]===x(228)&&window[x(672)](),typeof window.closeCart===x(228)&&window.closeCart()}catch(t){console.error(t)}})}catch(c){console[$(568)](c)}};Z(FGSECOMAPP.cartItems)[_0x52a36b(180)](()=>{$h()})}}catch($4){console[_0x52a36b(633)]("can not check freegifts version",$4)}