window.fgData={"offers":[{"id":10270,"shop_id":3797,"offer_name":"Free CLEANSE when you spend over $149","offer_description":null,"promotion_message":null,"start_time":"2023-08-26T03:50:00.000000Z","end_time":"2023-08-30T02:00:00.000000Z","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 CLEANSE Inner Beauty Support (100% off)","original_product_handle":"cleanse-inner-beauty-powder","clone_product_handle":"cleanse-inner-beauty-powder-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/2782\/9732\/files\/Cleanse-US-PDP-Web.jpg?v=1691736000","product_shopify_id":7705527156930,"original_product_shopify_id":194664366124,"variants":[{"id":64550,"gift_product_id":24640,"discount_type":"percentage","discount_value":100,"original_price":65,"original_compare_at_price":null,"original_product_shopify_id":194664366124,"original_variant_shopify_id":41261785252034,"price":0,"product_shopify_id":7705527156930,"variant_shopify_id":43462046122178,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/2782\/9732\/files\/Cleanse-US-PDP-Web.jpg?v=1691736000","pivot":{"offer_id":10270,"gift_item_id":64550},"gift_product":{"id":24640,"shop_id":3797,"title":"\u00bb CLEANSE Inner Beauty Support (100% off)","original_product_handle":"cleanse-inner-beauty-powder","clone_product_handle":"cleanse-inner-beauty-powder-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/2782\/9732\/files\/Cleanse-US-PDP-Web.jpg?v=1691736000","product_shopify_id":7705527156930,"original_product_shopify_id":194664366124,"created_at":"2023-08-25T01:02:58.000000Z","updated_at":"2023-08-25T01:02:58.000000Z"}}]}],"offer_conditions":[{"id":10706,"offer_id":10270,"is_multiply":null,"min_amount":"149.00","max_amount":null,"product_narrow":[],"unit":"money"}],"gift_items":[{"id":64550,"gift_product_id":24640,"discount_type":"percentage","discount_value":100,"original_price":65,"original_compare_at_price":null,"original_product_shopify_id":194664366124,"original_variant_shopify_id":41261785252034,"price":0,"product_shopify_id":7705527156930,"variant_shopify_id":43462046122178,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/2782\/9732\/files\/Cleanse-US-PDP-Web.jpg?v=1691736000","pivot":{"offer_id":10270,"gift_item_id":64550},"gift_product":{"id":24640,"shop_id":3797,"title":"\u00bb CLEANSE Inner Beauty Support (100% off)","original_product_handle":"cleanse-inner-beauty-powder","clone_product_handle":"cleanse-inner-beauty-powder-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/2782\/9732\/files\/Cleanse-US-PDP-Web.jpg?v=1691736000","product_shopify_id":7705527156930,"original_product_shopify_id":194664366124,"created_at":"2023-08-25T01:02:58.000000Z","updated_at":"2023-08-25T01:02:58.000000Z"}}]}],"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},"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 _0xad9e95=_0x4151;function _0x15f7(){let $=["arrGiftsData","sca_fetch_cart","product","querySelector","freegifts-main-popup-container",'" alt="free-gift-icon" class="sca-gift-icon-collection-img" />\n ',"compare_at_price","collection_page","info","shift","Free Gift","CartSlider","reRenderCartCustom","?sca_process_gifts","openSlider","currency",'\n \n
\n
\n\n
\n
\n \n
\n
\n \n
\n
\n
\n ',"active",".gift-original-url","select_gift_btn","70%","show_on_cart_page","variants_has_gift","others","title","/cart.js?sca_fetch&","log","innerText","total_spend_on_order_history","compare_gift_price_with_product","","total_spent_on_last_order","sca_catch","cal_gift_for_other_rules","secomapp_freegifts_version","textContent","\n ","include","icartAddToCartEvent","scaCountRenderEventCheckout","sca_add_gift","final_price","/cart/add.js","shop",'.btn-add-to-cart[data-variant="',"application/liquid","end",".sca-promotion-glider","value","upcartOnCartUpdated","#fg-gift-thumbnail-title","discounted_price","stop_lower_priority","checkout","data-price",'" alt="">\n \n ',"setItem","appendChild","change","#7367f0","-sca_clone_freegift","sca-fg-icon-collection-page",".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 ","#fg-gift-items .dropdown > .dropdown-menu > li","settings","failed to parse cart section ","getAttribute","key","style","/?sections=",".fg-secomapp-cart-icon ","SLIDECART_OPEN","sca_fg_codes","sca_fg_main_promotion_message_query","priority","formatter","specific_link_address",'\n
\n \n
',"#sca-spinner-checkout","sync_quantity","{{sca_min_total}}","div","handle","auto_add_gift","original_product_handle","not have orders and gifts","parentElement","event add gift to cart from popup","variant","time","manual_input_inventory","sca_add_url","arrOfferAdded","variant_shopify_id","invoice_url","href","format","status","giftsAvailable","add_to_cart_btn_color","removeAttribute","show_gift_for_customer","original_variant_shopify_id","get","positions","action","Add gift to cart successfully!","length","[data-open]","backgroundColor",'\n \n
\n
\n
\n ',"sca_text_notify_success","offer_id","products","removeItem","\n
","https://geoip.secomtech.com/?json","fetchCheckoutEvents","sections",'\n
\n
\n ',"sca_amount_fixed",".product_name, .product-title, .product__title, .product-single__title, .tt-title, .ProductMeta__Title","gifts","start","flex","join","variantId","type_customer_tags","substring",'
\n ',"number_product_slider","money","split","sections_cart","renderPromotionMessage","enable","secomappGetCartRunning","30LTTJhU","&sca_products_handle=","slice","gift_icon","fgAppearanceGiftSlider","FGSECOMAPP_HIDDEN_GIFT_POPUP","cart:updated","variant_id","fit-content","undefined",'\n \n ',"&sca_shop_name=","offer_conditions",'" alt="free-gift-icon" class="sca-gift-icon-img" />\n ',"concat","entries","60%","then","compressToEncodedURIComponent","sca-fg-form-thumbnail-product-page","gift_slider","sca-promotion-message-layout","gift_icon_path","stopImmediatePropagation","removeEventListener","184428lpuAzs","parseFromString","/cart","8997777cqulzc","prepend","fgAppearanceGiftIcon","\n \n
","insertBefore","offer_name","GET","by_variants","icartSideCartOpenEvent","json","/cart/add","product_page",".btn-add-to-cart.sca-fg-out-stock","SLIDECART_UPDATE","openCart","set","parentNode","50%","find","gift_img_size","selling_plan","freegifts-main-page-container","collections","locale","size","quantity","customerLocation","not type checkout btn","[sca_root_checkout]","prepareDataForDisplayWidgetByRule","fgData","indexOf","querySelectorAll","gift_settings","rebuy:smartcart.show","sca_cart_xhr","original_price","sca_fg_img_collection_gift_icon_query","function",'" alt="">\n

',"sca_slidecart_tcc","getItem","show_product_title","using_draft_order","dataset","POST","min_amount","pathname","offers","upcartRegisterAddToCart","checkIsBlockCheckout","1197504CQLdJZ","vendor","\n ","childElementCount","Loading...",'\n \n \n \n \n \n \n ',"customer_order_history","hasAttribute","NumberFormat","arrGiftsRemove","scaHandleConfigValue","#secomapp_freegifts_version","map","sca_handle_checkout",'\n

  • ',"promotion_message","6px 0","do_not_add_freegift_attribute","ele","[type='submit'][name='add'], [type='button'][name='add'], [data-add-to-cart], [data-action='add-to-cart']","cart-items, .cart-header, .section-header","/cart/change.js","getElementById","string","track","Default Title","product_types","#fg-gift-items","isDelayShowAdded","hasOwnProperty","sca_link_checkout","SECOMAPP_FREEGIFT","product_type","160","#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg","1800592sCGXRU","80%","product_collections","disable_slider_checkbox","includes","3.0","sub_conditions","data-original-price","application/json","color","clone_checkout","created_at","upcartOnAddToCart","show_pagination","stringify","type","monster_refresh",".sca-list-gift-thumbnail","application/json;","createElement","hidden",".freegifts-main-container .glider-prev",'"\n data-original-price="',"remove","totarrCustomerOrderal_spend_on_order_history","cart","STICKY_CART_UPDATE","sca_process_gifts","productsInPage","SLIDECART_CLOSE","fg-gift-items","sca-fg-out-stock","sca-gift-icon-collection-page","#fg-gift-thumbnail-title .glider-next","floor","startsWith","shopify_cart","sca-gift-thumbnail","?sca_add_gift",'\n \n
    \n
    \n\n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n ',"maxOfferPriority","STICKY_CART_OPEN","#MainContent, #mainContent, #main, .main-content","\n \n \n ",'">\n ',"/cart/change","add","appearance","original_compare_at_price","current_product","message","/products/",".freegifts-main-container .glider-next","number_of_products","#82868b","\n
  • ","sca_root_checkout","padding","sca-gift-icon","gift_should_the_same","maxWidth","customer_locations","#fg-gift-items .dropdown","Widgets","Can not fetch all body","event auto process gifts with cart","Escape","position","variants_quantity","replaceAll","product_has_icon","HS_SLIDE_CART_OPEN","fgCallback","Select your free gift!","data-img","tabindex","auto add gift: ",".btn-add-to-cart",'
    \n \n
    \n ',"and","422220kCQQmf","freegifts","src","ajaxProduct:added","#fg-gift-thumbnail-title .glider-prev",'\n \n
    \n
    \n
    \n \n ',"sections_url",'\n ","product_vendors",".fg-secomapp-cart-drawer ","toString","product_narrow","body",".sca-promotion-message-layout","hasDoneProcessCheckout","scaCustomLoadingCheckout","opacity","SLIDECART_UPDATED","customer","innerHTML"];return(_0x15f7=function(){return $})()}function _0x4151($,x){let e=_0x15f7();return(_0x4151=function($,x){return e[$-=153]})($,x)}!function($,x){let e=_0x4151,t=$();for(;;)try{let a=parseInt(e(625))/1+-parseInt(e(278))/2+-parseInt(e(679))/3+parseInt(e(198))/4+-parseInt(e(289))/5*(parseInt(e(600))/6)+parseInt(e(408))/7*(-parseInt(e(405))/8)+parseInt(e(628))/9;if(387165===a)break;t.push(t.shift())}catch(i){t.push(t.shift())}}(_0x15f7,387165);try{let $=document[_0xad9e95(185)](_0xad9e95(352))?.[_0xad9e95(384)](_0xad9e95(409));if($===_0xad9e95(203)){window.fgData?.[_0xad9e95(245)]?.[_0xad9e95(603)]?.[_0xad9e95(622)]&&fgGiftIcon&&(window[_0xad9e95(658)][_0xad9e95(245)][_0xad9e95(603)].gift_icon_path=fgGiftIcon),window[_0xad9e95(550)]={},FGSECOMAPP[_0xad9e95(238)]=null,FGSECOMAPP[_0xad9e95(552)]=Object[_0xad9e95(468)](Shopify?.[_0xad9e95(552)]??{}),FGSECOMAPP.offers=[],FGSECOMAPP[_0xad9e95(435)]=window[_0xad9e95(658)]?.[_0xad9e95(382)]??{},FGSECOMAPP[_0xad9e95(563)]=window[_0xad9e95(658)]?.appearance??{},FGSECOMAPP.fgAppearanceGiftSlider=FGSECOMAPP[_0xad9e95(563)]?.[_0xad9e95(620)]?.[_0xad9e95(471)],FGSECOMAPP[_0xad9e95(630)]=FGSECOMAPP[_0xad9e95(563)]?.gift_icon,FGSECOMAPP.fgAppearancePromotionMessage=FGSECOMAPP[_0xad9e95(563)]?.[_0xad9e95(178)],FGSECOMAPP[_0xad9e95(270)]=[],FGSECOMAPP[_0xad9e95(599)]=!1,FGSECOMAPP[_0xad9e95(513)]=[],FGSECOMAPP[_0xad9e95(357)]=0,FGSECOMAPP[_0xad9e95(678)]=!1,FGSECOMAPP.scaHandleConfigValue={...Shopify?.[_0xad9e95(156)]},FGSECOMAPP.reRenderCartCustom=Shopify?.[_0xad9e95(330)]??void 0,FGSECOMAPP[_0xad9e95(313)]=Shopify?.[_0xad9e95(313)]??void 0,FGSECOMAPP[_0xad9e95(226)]={},FGSECOMAPP[_0xad9e95(312)]=!1,FGSECOMAPP[_0xad9e95(596)]={},FGSECOMAPP.isUpdateCart=!1,FGSECOMAPP[_0xad9e95(485)]={};let x=()=>{let $=_0xad9e95,x=FGSECOMAPP[$(563)]?.[$(620)],e=x?.others?.[$(452)],t=!h(x)&&void 0!==e&&!e;return t?'\n \n ':""},e=()=>{let $=_0xad9e95,x=FGSECOMAPP[$(563)]?.gift_slider,e=x?.[$(201)]??{};return document[$(321)](".freegifts-main-container .slide-container #sca-hidden-gift-popup .sca-disable-checkbox")?.[$(453)]&&localStorage[$(374)]($(605),""+Date[$(482)]()),e?.[$(598)]?$(395)+e[$(487)]+"\n
    \n ":""},{fetch:t}=window,a=()=>{let $=_0xad9e95;document[$(321)]($(157))?.[$(384)]("data-template")!==$(411)&&(window.fetch=async(...x)=>{let e=$;try{if(x[0][e(202)](e(638))){i(x[1]);let a=200,r=await t(...x)[e(617)]($=>{let x=e;return(a=$[x(518)],$[x(463)])?$:$[x(637)]()}).catch($=>{let x=e;console[x(551)]($)});if(x[1].headers?.sca_add_gift&&200!==a){let d=JSON[e(495)](x[1][e(310)])?.id,o=document[e(321)](e(362)+d+'"]');return o[e(345)]=e(410),o.classList[e(558)]("sca-fg-out-stock")||o[e(492)][e(244)](e(229)),o.disabled=!0,o[e(386)][e(530)]=e(252),document[e(660)](".btn-add-to-cart")[e(301)]($=>{let x=e;parseInt($[x(384)]("data-variant"))===d||$[x(492)][x(558)](x(229))||($[x(541)]=!1,$.style[x(530)]=FGSECOMAPP.fgAppearance?.[x(620)]?.[x(207)]?.[x(520)]??x(377))}),!1}return await $$([e(638),...x[e(602)](1)]),await c(x,r),new Response(JSON[e(212)](r))}if(!(x[0][e(202)](e(243))||x[0][e(202)](e(571))))return setTimeout(function(){$l()},1e3),await t(...x);{i(x[1]);let n=200,_=await t(...x)[e(617)]($=>{let x=e;return(n=$[x(518)],$.redirected)?$:$.json()})[e(304)]($=>{let x=e;console[x(551)]($)});if(x[1][e(446)]?.[e(225)]&&200!==n)return!1;if(await $$([x[0][e(202)](e(243))?"/cart/change":e(571),...x[e(602)](1)]),x[1]?.[e(446)]?.sca_process_gifts)return new Response(JSON[e(212)](_));let s=FGSECOMAPP[e(485)]??_??{};return await c(x,_,s),new Response(JSON[e(212)](s))}}catch(l){return await t(...x)}})};FGSECOMAPP[_0xad9e95(454)]=()=>{let $=_0xad9e95;try{if(Shopify?.disableShopify_getCart||typeof Shopify?.[$(433)]!==$(666))return;Shopify[$(433)]=async function(x){let e=$;if(!FGSECOMAPP.secomappGetCartRunning){FGSECOMAPP.secomappGetCartRunning=!0,await $$("/cart.js");let t=await V(e(663));typeof x===e(666)&&(0>FGSECOMAPP[e(270)][e(659)](x)&&FGSECOMAPP[e(270)][e(161)](x),x(t)),FGSECOMAPP[e(599)]=!1}FGSECOMAPP.fetchCheckoutEvents()},typeof ShopifyAPI!==$(609)&&void 0!==ShopifyAPI[$(433)]&&(ShopifyAPI[$(433)]=Shopify?.[$(433)]),typeof Shopify?.[$(298)]!==$(609)&&typeof Shopify?.api[$(433)]!==$(609)&&(Shopify[$(298)][$(433)]=Shopify?.getCart)}catch(x){console[$(551)](x)}};let i=$=>{let x=_0xad9e95;try{let e=$?.[x(310)];e instanceof FormData?FGSECOMAPP[x(596)]={sections:e.get("sections"),sections_url:e[x(524)](x(284))}:typeof e===x(186)&&(e=JSON[x(495)](e),FGSECOMAPP.sections_cart={sections:e?.[x(539)],sections_url:e?.[x(284)]})}catch(t){FGSECOMAPP[x(596)]={}}},r=async()=>{let $=_0xad9e95;if(Shopify[$(180)])return;let x={freegift_attributes:""};if(!h(FGSECOMAPP.arrOfferAdded)){let e=[$(194)];for(let a of FGSECOMAPP[$(513)]){let i=FGSECOMAPP[$(676)][$(646)](x=>x.id===a[$(475)])?.[$(204)]?.[$(394)];h(i)||e[$(161)](i)}x={freegift_attributes:e[$(308)]()}}try{await t((Shopify?.sca_update_url??"/cart/update")+"?sca_attr_cart",{method:$(673),headers:{"X-Requested-With":$(399),"Content-Type":$(216)},body:JSON[$(212)]({attributes:x})})}catch(r){console.error($(417)+r.message)}},c=async($,x,e)=>{let a=_0xad9e95;try{if($[1]?.headers?.sca_process_gifts)return;let i={},r=Object[a(164)](x[a(539)]??{})?.[a(576)]($=>h(FGSECOMAPP[a(596)][$]))??[];if(r&&r[a(528)]&&FGSECOMAPP.isUpdateCart&&(i=await t(a(387)+r[a(588)](","))[a(617)]($=>$[a(637)]())),FGSECOMAPP[a(557)]=!1,i={...FGSECOMAPP[a(596)],...i},h(i))return;x[a(539)]={...x[a(539)],...i},h(e)||(e.sections={...x[a(539)]})}catch(c){}},d=async($,x,e)=>{let t=_0xad9e95;e=e?.[t(308)]();let a=document.querySelectorAll(t(402));a[t(301)](x=>{let e=t;x[e(541)]=!0;let a=x[e(384)](e(561))-0;a===$&&(x[e(386)].padding="6px 0",x[e(317)]='\n \n \n \n \n \n '),x.style[e(530)]=e(252)});let i=FGSECOMAPP[t(513)][t(646)](x=>e===x.belongs_to_offer?.[t(308)]()&&$===x[t(589)]);i?i[t(653)]+=x:FGSECOMAPP[t(513)].unshift({variantId:$,belongs_to_offer:e,quantity:x}),localStorage[t(374)]("sca_offers_added",LZString[t(407)](JSON.stringify(FGSECOMAPP[t(513)])));let r=await fetch((Shopify?.[t(512)]??t(360))+t(236),{method:t(673),headers:{Accept:t(206),"Content-Type":t(206),sca_add_gift:!0},body:JSON[t(212)]({quantity:x,id:$})}),c=await r[t(637)]();if(r.ok)return a[t(301)](x=>{let e=t;x[e(541)]=!0;let a=x.getAttribute(e(561))-0;a===$&&(x[e(386)][e(255)]=e(179),x.innerHTML='\n \n \n \n '),x.style[e(530)]=""}),$x(),c},o=$=>{let x=_0xad9e95,e=x(378);return!h($)&&("object"==typeof $&&($[x(503)]?.[x(202)](e)||$[x(294)]?.[x(202)](x(279)))||typeof $===x(186)&&$[x(202)](e))},n=$=>{let x=_0xad9e95,{selling_plan_allocation:e}=$;return!h(e)&&!h(e?.[x(648)])},_=async($,x)=>{let e=_0xad9e95;try{if(h($)&&h(x))return;let t={};if(FGSECOMAPP[e(552)]?.[e(576)]($=>o($))?.[e(301)]($=>{let x=e;t[$[x(607)]]=$[x(653)]}),($=$?.[e(576)]($=>!h($.variant_id)))?.[e(301)]($=>{let x=e;t[$[x(607)]]=(t[$[x(607)]]??0)+($[x(653)]??1)}),Object.keys(t)?.[e(301)]($=>{t[$]=t[$]>=0?t[$]:0}),h(Object[e(164)](t)))return;$?.forEach($=>{let x=e,t=FGSECOMAPP[x(513)][x(646)](e=>$[x(533)]?.[x(308)]()===e[x(475)]?.[x(308)]()&&$[x(607)]===e[x(589)]);t?t[x(653)]+=$[x(653)]:FGSECOMAPP[x(513)][x(555)]({variantId:$[x(607)],belongs_to_offer:$[x(533)]?.[x(308)](),quantity:$[x(653)]})}),localStorage[e(374)](e(560),LZString[e(407)](JSON.stringify(FGSECOMAPP[e(513)]))),FGSECOMAPP.isUpdateCart=!0,await fetch((Shopify?.[e(461)]??e(571))+e(331),{method:e(673),headers:{Accept:e(206),"Content-Type":e(206),sca_process_gifts:!0},body:JSON[e(212)]({updates:t,...FGSECOMAPP.sections_cart})})[e(617)](t=>{let a=e;return t.ok&&$[a(528)]&&!x[a(528)]&&$x(),t[a(637)]()}).then($=>{let x=e;FGSECOMAPP.sections_cart=$[x(539)]}),document[e(321)](e(157))?.getAttribute(e(545))===e(411)&&location[e(460)]()}catch(a){console[e(551)](a)}},s=0,l=()=>{let $=_0xad9e95,t=document[$(185)]($(649));if(t)t[$(317)]=$(577)+(FGSECOMAPP.fgAppearanceGiftSlider[$(437)]??$(271))+$(237)+x()+$(536);else{let a=localStorage[$(669)]($(605))-0,i=FGSECOMAPP[$(563)]?.[$(620)]?.[$(201)]??{},r=(i?.[$(510)]??0)*6e4,c=!isNaN(a)&&a+r>Date[$(482)]();if(c||(localStorage[$(535)]($(605)),!(t=document[$(185)]($(322)))))return;t[$(317)]=$(276)+(FGSECOMAPP.fgAppearanceGiftSlider[$(437)]??$(271))+$(334)+e()+$(420)+x()+$(681),t[$(492)][$(244)]($(549)),s++}},f=($,x)=>{let e=_0xad9e95;return $[e(158)]($=>e(160)+($.thumbnail??x)+'" id="'+$[e(514)]+e(578)+$.original_variant_shopify_id+e(303)+u($)+e(220)+p($)+e(422)+$[e(466)]+e(253)).join(" \n")},u=$=>{let x=_0xad9e95;return FGSECOMAPP[x(393)][x(517)](v($?.[x(412)]))},p=$=>{let x=_0xad9e95,e=FGSECOMAPP?.[x(435)]?.[x(439)]===x(324)?$?.[x(246)]??$?.original_price:$?.[x(664)];return FGSECOMAPP[x(393)].format(v(e??0))},g=($,x)=>{let e=_0xad9e95;return h(Shopify?.[e(534)][$])?x??"#":Shopify?.[e(534)][$][e(503)]},b=($,x)=>{let e=_0xad9e95;return FGSECOMAPP[e(604)][e(670)]?h(Shopify?.[e(534)][$])?x.replace("\xbb","")[e(426)](/\(\d*% off\)/,"")??"":Shopify?.[e(534)][$][e(342)]:""},h=$=>{let x=_0xad9e95;if(0===$)return!0;if("number"==typeof $||typeof $==x(565))return!1;if(null==$)return!0;if(typeof $[x(528)]!=x(609))return 0===$.length;let e=0;for(let t in $)$[x(192)](t)&&e++;return 0===e},m=$=>{let x=_0xad9e95;try{let e={...FGSECOMAPP[x(156)]},t=e[$];if(t=t?t.trim():null,!h(t)&&t[x(528)]>0)try{return document.querySelector(t),", "+t}catch(a){}return""}catch(i){return""}},y=()=>{let $=_0xad9e95;try{FGSECOMAPP[$(393)]=new Intl[$(154)](Shopify?.[$(432)]??Shopify?.[$(651)],{style:$(333),currency:Shopify?.[$(333)]?.[$(335)]??"USD"})}catch(x){FGSECOMAPP.formatter=new Intl[$(154)]("en-US",{style:$(333),currency:Shopify?.currency?.active??"USD"})}},v=$=>{let x=_0xad9e95;$=$??0;let e=Shopify?.[x(333)]?.rate??1;return 1===parseFloat(e)?$:($*e).toFixed(Shopify?.fg_decimal??2)},w=$=>{let x=_0xad9e95;return $.filter($=>void 0===$[x(351)]||!0===$.cal_gift_for_other_rules)[x(566)](($,e)=>$+e[x(653)]*(e.discounted_price??e[x(359)]??e.price),0)/100},k=$=>{let x=_0xad9e95;return $[x(576)]($=>void 0===$[x(351)]||$.cal_gift_for_other_rules)[x(566)](($,x)=>$+x.quantity,0)},A=($,x,e)=>{let t=_0xad9e95,a=x[t(309)];return e?.is_only&&($=$[t(576)]($=>n($))),h(a)?$:$[t(576)]($=>{let x=t;return!a[x(158)](e=>{let t=x;switch(e[t(213)]){case t(451):return Object[t(468)](e[t(366)])[t(158)]($=>$[t(509)]).flat()[t(158)]($=>$.id).includes($[t(607)]);case t(189):return Object.keys(e[t(366)]).includes($.product_type);case"product_vendors":return Object[t(164)](e.value)[t(202)]($[t(680)]);case t(200):let a=Object[t(164)](e[t(366)]),i=$[t(650)]?.[t(158)]($=>$.id+"")?.filter($=>a[t(202)]($));return!h(i);default:return!1}})[x(202)](!1)})},C=($,x)=>{let e=_0xad9e95;return $?.[e(158)]($=>{let t=e;if(typeof $[t(351)]!==t(609)){let a=FGSECOMAPP.arrOfferAdded?.[t(576)](x=>x[t(589)]===$[t(607)]),i=a?.reduce(($,x)=>$+x[t(653)],0);if(i===$.quantity){let r=a?.filter(e=>{let a=t;if(e[a(475)]?.[a(308)]()===x[a(308)]())return!1;let i=FGSECOMAPP.offers?.[a(646)]($=>$.id?.[a(308)]()===e.belongs_to_offer?.toString()),r=i.gift_settings??{};return r[a(351)]&&($.discounted_price??$[a(359)])>0})?.[t(566)](($,x)=>$+x.quantity,0);return{...$,cal_gift_for_other_rules:r>0,quantity:r??0}}return{...$,cal_gift_for_other_rules:!1,quantity:0}}return{...$}})??[]},S=($,x,e,t)=>{let a=_0xad9e95,i=0,r=A(x,$,t);r=C(r,$.offer_id);let c;return $[a(440)]===a(594)?c=w(r):$[a(440)]===a(251)&&(c=k(r)),c>=$[a(674)]&&(null===$.max_amount||c<=$[a(457)])&&(i=e.number_of_gift_can_receive,$[a(467)]&&(i=Math[a(232)](c/$[a(674)])*i)),i},T=($,x,e,t)=>{let a=_0xad9e95,i={},r=[],c=0;return x[a(158)](x=>{let i=a,d=S(x,$,e,t);0!==d&&(c=d),r[i(161)](d>0)}),i[a(570)]=c,i.condition_result=r,i},q=($,x)=>{let e=_0xad9e95,t=!1;return 1===$[e(528)]?t=$[0]:2===$[e(528)]&&(x===e(277)&&(t=$[0]&&$[1]),"or"===x&&(t=$[0]||$[1])),t},E=($,x)=>{let e=_0xad9e95,t=$?.map($=>$[e(607)]);FGSECOMAPP[e(513)]=FGSECOMAPP[e(513)][e(576)]($=>t?.[e(202)]($.variantId));let a=x.gift_items.map($=>$[e(514)]),i=FGSECOMAPP[e(513)].filter($=>$[e(475)]?.[e(308)]()===x.id?.[e(308)]())?.[e(158)]($=>{let x=e;return $[x(589)]}),r=$.filter($=>{let x=e;return o($)&&($[x(351)]=!1),a[x(202)]($[x(607)])&&i[x(202)]($[x(607)])}),c=r[e(158)]($=>{let t=e,a=x[t(661)];$[t(351)]=a[t(351)],$[t(475)]=x.id?.[t(308)]();let i=FGSECOMAPP[t(513)]?.[t(576)](e=>e[t(475)]?.[t(308)]()!==x.id?.[t(308)]()&&$[t(607)]===e[t(589)])?.[t(566)](($,x)=>$+x[t(653)],0);return{...$,quantity:$[t(653)]-i}});return c[e(576)]($=>{let t=e;return $[t(475)]?.toString()===x.id?.[t(308)]()})},L=$=>{let x=_0xad9e95,e=$[x(430)].filter(e=>e.belongs_to_offer?.[x(308)]()!==$.id?.toString())[x(158)]($=>$.product_id);return Object[x(468)]($[x(429)])[x(576)]($=>!e[x(202)]($.product_shopify_id))},P=($,x)=>{let e=_0xad9e95,t=E($,x),a=T($,x[e(612)],x[e(661)],x.sub_conditions?.[e(419)]),i=q(a.condition_result,x[e(172)]);if(i){let r=t[e(576)]($=>$[e(475)]?.[e(308)]()===x.id?.[e(308)]())[e(566)](($,x)=>$+x.quantity,0);a[e(570)]=a[e(570)]-r,x.giftsAdded=t,x[e(519)]=a[e(570)]}else x.giftsAdded=t,x[e(519)]=0;return typeof FGSECOMAPP[e(238)]===e(543)&&x[e(392)]>FGSECOMAPP[e(238)]&&(i=!1),i||!x.stop_lower_priority||FGSECOMAPP.maxOfferPriority!==x[e(392)]||h(t)||(FGSECOMAPP[e(238)]=null),x.isReachConditions=i,x[e(370)]&&i&&(null==FGSECOMAPP.maxOfferPriority||x.priority<=FGSECOMAPP.maxOfferPriority)&&FGSECOMAPP.maxOfferPriority!==x[e(392)]&&(FGSECOMAPP[e(238)]=x[e(392)]),x},I=$=>{let x=_0xad9e95,e=$+"=",t=document.cookie[x(595)](";");for(let a=0;a{let e=_0xad9e95,t=!0,a=!0,i=!0,r=!0;if(!h($.sub_conditions?.specific_link_address)){let c=I("sca_fg_codes");t=c&&JSON[e(495)](c)[e(202)]($.sub_conditions[e(394)])}if(!h($[e(204)]?.[e(494)])){let{customer_tags:d}=$.sub_conditions,o=d?.value_customer_tags?.[e(445)]($=>x[e(316)][e(294)]?.[e(202)]($));a=d?.[e(590)]==="include"?o:!o}if(!h($[e(204)]?.[e(259)])){let{customer_locations:n}=$[e(204)],_=n?.[e(299)]?.[e(202)](FGSECOMAPP.customerLocation);r=n?.type_customer_locations===e(355)?_:!_}if(!h($[e(204)]?.[e(685)])){let s=!0,l=$.sub_conditions.customer_order_history,f=x.customer.orders??[];if(l[e(569)]){let u=Date[e(495)](l[e(569)])/1e3;f=f[e(576)]($=>$[e(209)]>=u)}if(!h(l?.[e(222)])&&(0!==l.total_spend_on_order_history[e(674)]||0!==l[e(346)][e(457)])){let p=l[e(346)][e(674)],g=l.total_spend_on_order_history.max_amount,b=f[e(566)](($,x)=>$+x.total_price,0)/100;s&=(b>=p||!p)&&(b<=g||!g)}if(!h(l?.[e(349)])&&(0!==l[e(349)][e(674)]||0!==l[e(349)][e(457)])){let m=x[e(316)][e(165)]/100,y=l.total_spent_on_last_order[e(674)],v=l[e(349)][e(457)];s&=(m>=y||!y)&&(m<=v||!v)}if(!h(l?.[e(455)])){let w=!(0!==l.number_of_order.min_amount||0!==l.number_of_order[e(457)]),k=f[e(528)],A=l[e(455)][e(674)],C=l[e(455)][e(457)];s&=w?h(f):(k>=A||!A)&&(k<=C||!C)}if(l?.have_not_got_gift_from_this_offer){let S=x[e(316)][e(279)]??[],T=$[e(436)]?.[e(445)]($=>S.includes($[e(514)]))||$[e(436)]?.[e(445)]($=>S[e(202)]($[e(523)]+"_"+($[e(664)]-$[e(412)])*100));s&=!T}i=s}return t&&a&&i&&r},R=($,x,e)=>{let t=_0xad9e95,a=[],i=[],r=[],c=[];for(let d of x){let n=P($,d);if(!n[t(476)]){n.giftsAdded[t(528)]>0&&n.giftsAdded[t(301)]($=>{let x=t;i[x(161)]({variant_id:$[x(607)],quantity:$[x(653)],offer_id:d.id})});continue}if(n.giftsAvailable<0){n[t(430)].forEach($=>{let x=t;i[x(161)]({variant_id:$[x(607)],quantity:$[x(653)],offer_id:d.id})});continue}0!==n[t(519)]&&(d[t(204)]?O(d,SECOMAPP)&&a[t(161)](d):a.push(d))}if($?.[t(301)]($=>{let x=t;h($[x(475)])&&o($)&&i[x(161)]({variant_id:$[x(607)],quantity:$[x(653)],offer_id:$[x(475)]?.[x(308)]()})}),e||h(i)){let _=a[t(158)]($=>{let x=t;return{id:$.id,offerName:$[x(633)],offerPriority:$[x(392)],stopLowerPriority:$.stop_lower_priority,gifts:L($),giftsAvailable:$[x(519)],giftsAdded:$[x(430)],isReachConditions:$.isReachConditions}});if(!h(_)){let s={};for(let l of _){let f=D(FGSECOMAPP[t(435)],l);f?.[t(528)]>0?r=r[t(614)]([...f]):l[t(585)][t(158)]($=>{let x=t;s[$[x(396)]]={...$,belongs_to_offer:l.id?.[x(308)]()}})}c=Object[t(468)](s)??[]}}return{arrGiftsAdd:r,arrGiftsRemove:i,arrGiftsData:c}},M=($,x)=>{let e=_0xad9e95,t=new Set;return $?.[e(301)]($=>t[e(244)]($[e(533)])),t[e(301)]($=>{let x=e,t=FGSECOMAPP[x(676)]?.find(e=>e.id?.[x(308)]()===$?.[x(308)]());if(h(t)||!t[x(476)]){FGSECOMAPP[x(513)]=FGSECOMAPP.arrOfferAdded?.filter(e=>e[x(475)]?.[x(308)]()!==$?.[x(308)]());return}if(t[x(519)]>=0)return;let a=[],i=FGSECOMAPP[x(513)]?.filter(e=>e.belongs_to_offer?.[x(308)]()===$?.[x(308)]())??[];if(t?.[x(661)]?.[x(470)])a=a.concat([...i]),t[x(519)]=0;else for(let r of i){if(t[x(519)]>=0)break;t[x(519)]+=r[x(653)],t[x(519)]<=0?a[x(161)]({...r}):(r[x(653)]=t[x(519)],t.giftsAvailable=0)}a?.[x(301)]($=>{let e=x;FGSECOMAPP[e(513)]=FGSECOMAPP.arrOfferAdded?.filter(x=>$[e(589)]!==x[e(589)]||$[e(475)]?.[e(308)]()!==x[e(475)]?.[e(308)]())})}),x?.[e(576)]($=>{let x=e;return o($)&&($[x(653)]=FGSECOMAPP.arrOfferAdded?.[x(576)](e=>$[x(607)]===e[x(589)])?.[x(566)](($,e)=>$+e[x(653)],0)??0),$[x(653)]>0})??[]},G=async($,x)=>{let e=_0xad9e95,{arrGiftsAdd:t,arrGiftsRemove:a,arrGiftsData:i}=R($,x,!1),c=M(a,$);if(!h(a)){let d=R(c,x,!0);M(d?.[e(155)],$),t=d?.[e(403)],a=a?.[e(614)](d?.[e(155)])??[],i=d?.[e(318)]}return await _(t,a),r()[e(617)](),i},D=($,x)=>{let e=_0xad9e95,t=[];if($[e(504)]){let a=x.gifts,i=a.reduce(($,x)=>$+x.variants[e(528)],0),r=FGSECOMAPP[e(676)][e(576)]($=>$.id===x.id),c=r[0][e(661)].auto_add_all_gifts,d=r[0].gift_should_the_same;if(1===i||c||d[e(518)]){if($[e(473)]&&!B(a)||$?.compare_gift_price_with_product&&!U(a))return!1;if(d[e(518)]){if("variant"===d[e(213)]){let o=FGSECOMAPP[e(552)];o=o[e(576)]($=>$.product_id===a[0].original_product_shopify_id);let n=a[0][e(480)][e(576)]($=>{let x=e;return o[0][x(607)]===$[x(523)]})[0];if(0===n[e(412)])return t[e(161)]({variant_id:n[e(514)],quantity:x[e(519)],offer_id:x.id}),t}else if(c){let _=a?.[e(566)](($,x)=>($+x?.[e(480)]?.[e(528)])??0,0);if(!_)return!1;let s=(x?.[e(519)]??0)/_;for(let l of a)for(let f of l[e(480)])t[e(161)]({variant_id:f[e(514)],quantity:s,offer_id:x.id});return t}}else{if(c){let u=a?.reduce(($,x)=>($+x?.[e(480)]?.[e(528)])??0,0);if(!u)return!1;let p=(x?.[e(519)]??0)/u;for(let g of a)for(let b of g[e(480)])t[e(161)]({variant_id:b.variant_shopify_id,quantity:p,offer_id:x.id});return t}{let h=a[0].variants[0];if(0===h[e(412)])return console[e(344)](e(274)+a[0][e(480)][0].variant_shopify_id+" "+a[0][e(480)][0][e(466)]),t[e(161)]({variant_id:h.variant_shopify_id,quantity:x[e(519)],offer_id:x.id}),t}}}}return!1},F=$=>{let x=_0xad9e95;return $===x(188)},H=$=>{let x=_0xad9e95;try{let e=Shopify[x(288)]??FGSECOMAPP.fgAppearance?.[x(620)]?.[x(341)]?.[x(647)]??"&width=480&height=480",t=new URL($),a=new URLSearchParams(e);return a.forEach(($,e)=>t[x(448)][x(643)](e,$)),t[x(308)]()}catch(i){return $}},j=$=>{let x=_0xad9e95,e=$;if(FGSECOMAPP.fgAppearanceGiftSlider[x(522)]===x(635))for(let t of(e=[],$)){let a=t[x(480)];a&&a[x(528)]&&a[x(301)]($=>e.push({...t,thumbnail:$.thumbnail,variants:[$]}))}let i=document[x(185)](x(228));i&&(i.innerHTML=e[x(158)]($=>{let e=x,t=$?.[e(480)][0]??{};return'\n
    \n "}).join(" \n"),new Glider(document.querySelector(x(190)),{slidesToShow:1,slidesToScroll:1,draggable:!1,dots:FGSECOMAPP[x(604)][x(211)]?x(295):null,arrows:{prev:x(219),next:x(250)},responsive:[{breakpoint:1024,settings:{slidesToShow:FGSECOMAPP[x(604)][x(593)]??4,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:2,slidesToScroll:1}}]}))},N=async()=>{let $=_0xad9e95;try{let x=window[$(658)]?.[$(676)]??[];for(let e in await $u(),Shopify?.[$(534)])h(Shopify?.[$(534)][e]?.id)&&delete Shopify?.products[e];let t=[];return x[$(301)](x=>{let e=$,a=JSON[e(495)](JSON[e(212)](x));if(x.gift_should_the_same.status){let i=x[e(612)][0][e(309)],r=i[0][e(366)],c=[...a[e(436)]],d=[...a.gift_products];if("variant"===x[e(257)][e(213)])for(let o in r){let n=r[o]?.variant??[];for(let _ of n){a[e(612)][0].product_narrow=[{type:i[0][e(213)],value:{[o]:{...r[o],variant:[{..._}]}}}],a[e(436)]=c[e(576)]($=>$[e(171)]+""===o&&_.id===$.original_variant_shopify_id),a[e(429)]=d[e(576)]($=>$.original_product_shopify_id+""===o),a[e(429)][0][e(480)]=[...a[e(436)]];let s=a[e(661)][e(418)],l=a.gift_settings.auto_add_all_gifts;a.gift_settings.auto_add_all_gifts&&(s=a[e(436)].length),1===a[e(436)][e(528)]&&0===a[e(436)][0][e(412)]&&(l=!0),t[e(161)](JSON[e(495)](JSON.stringify({...a,gift_settings:{...a[e(661)],number_of_gift_can_receive:s,auto_add_all_gifts:l},id:a.id+"_"+r[o][e(503)]+"_"+_.id})))}}else if("product"===x[e(257)].type)for(let f in r){a[e(612)][0][e(309)]=[{type:i[0][e(213)],value:{[f]:r[f]}}],a.gift_items=c[e(576)]($=>$[e(171)]+""===f),a[e(429)]=d[e(576)]($=>$[e(171)]+""===f);let u=a.gift_settings[e(418)],p=a[e(661)][e(470)];a[e(661)][e(470)]&&(u=a[e(436)][e(528)]),1===a[e(436)][e(528)]&&0===a[e(436)][0][e(412)]&&(p=!0),t[e(161)](JSON.parse(JSON[e(212)]({...a,gift_settings:{...a[e(661)],number_of_gift_can_receive:u,auto_add_all_gifts:p},id:a.id+"_"+r[f][e(503)]})))}}}),(x=(x=(x=x?.[$(576)](x=>!x?.[$(257)]?.status)?.[$(614)](t))?.[$(158)]($=>({...$,id:$.id.toString()})))?.[$(576)](x=>{let e=$;if(!Y(x[e(479)],x[e(478)]))return!1;let t=!h(x.sub_conditions?.[e(685)]||x[e(204)]?.customer_tags);if(x[e(204)]&&(!O(x,SECOMAPP)||t&&h(SECOMAPP[e(316)][e(568)])))return!1;let a={...Shopify?.[e(534)]},i=!1;if("stop_offer"===FGSECOMAPP[e(435)][e(500)]){x[e(436)]=x?.[e(436)][e(576)]($=>{let x=e,t=a[$[x(171)]]?.variants_quantity??{};return t[$[x(523)]]>0})??[];let r=x[e(436)]?.[e(158)]($=>$[e(514)]);x[e(429)]=x?.[e(429)]?.[e(576)]($=>{let x=e;return $[x(480)]=$?.[x(480)]?.filter($=>r?.includes($.variant_shopify_id)),$?.[x(480)]?.[x(528)]>0}),i=!0}else if(FGSECOMAPP[e(435)][e(511)]){x[e(436)]=x?.[e(436)][e(576)]($=>{let x=e,t=a[$[x(396)]]?.variants_quantity??{};return t[$[x(514)]]>0});let c=x[e(436)]?.[e(158)]($=>$[e(514)]);x.gift_products=x?.[e(429)]?.filter($=>{let x=e;return $[x(480)]=$?.[x(480)]?.[x(576)]($=>{let e=x;return c?.includes($[e(514)])}),$?.[x(480)]?.length>0}),i=!0}return i&&x[e(661)]?.auto_add_all_gifts&&(x[e(661)][e(418)]=x[e(436)]?.[e(528)]),!i||x[e(436)]&&x[e(436)][e(528)]>0}))?.[$(158)](x=>{let e=$,t=x[e(436)].map($=>$[e(171)]);return x[e(429)]=x[e(429)]?.[e(576)]($=>{let x=e;return t[x(202)]($[x(171)])}),x.offer_conditions?.[e(301)]($=>{let x=e;"money"===$[x(440)]&&($.min_amount=v($[x(674)]),$[x(457)]=h($.max_amount)?$.max_amount:v($.max_amount))}),x})}catch(a){return console[$(551)](a),[]}},B=$=>{let x=_0xad9e95;for(let e of FGSECOMAPP[x(552)]){let t=e.product_id;if($[0][x(171)]===t)return!1}return!0},U=$=>{let x=_0xad9e95;for(let e of FGSECOMAPP[x(552)]){let t=$[0][x(480)][0][x(664)];if("compare_at_price"===FGSECOMAPP[x(435)][x(347)]&&(t=$[0][x(480)][0][x(246)]),t>(e[x(369)]??e[x(359)]??e[x(412)])/100)return!1}return!0},z=async()=>{let $=_0xad9e95;try{let x=[];window[$(658)]?.[$(676)]?.[$(301)](e=>{let t=$,a=[];e[t(429)].forEach($=>{let x=t;a[x(161)]($.clone_product_handle,$[x(505)])}),x=[...x,...a]}),await $s(x=(x=[...new Set(x)])[$(576)]($=>h(FGSECOMAPP.productsInPage[$]))),Object.values(FGSECOMAPP[$(226)])?.[$(301)](x=>{let e=$,{info:t}=x;h(t)||h(t?.id)||(Shopify[e(534)][t.id]={...t})})}catch(e){console[$(551)](e)}},W=async $=>{let x=_0xad9e95;y(),FGSECOMAPP[x(538)](),(FGSECOMAPP?.[x(435)]?.sync_quantity==="stop_offer"||FGSECOMAPP?.[x(435)]?.[x(511)])&&await z(),FGSECOMAPP.offers=await N(),FGSECOMAPP[x(454)](),a();try{h($)?(FGSECOMAPP[x(513)]=[],localStorage[x(374)]("sca_offers_added",LZString[x(407)](JSON.stringify(FGSECOMAPP.arrOfferAdded)))):FGSECOMAPP.arrOfferAdded=JSON[x(495)](LZString.decompressFromBase64(localStorage[x(669)](x(560))))}catch(e){FGSECOMAPP[x(513)]=[],localStorage[x(374)](x(560),LZString.compressToBase64(JSON.stringify(FGSECOMAPP[x(513)])))}let t={};FGSECOMAPP[x(676)]?.[x(301)]($=>{let e=x;t[$.id]=$?.[e(436)]?.[e(158)]($=>$[e(514)])});let i=Object[x(164)](t);FGSECOMAPP[x(513)]=FGSECOMAPP[x(513)]?.filter($=>i?.includes($.belongs_to_offer?.[x(308)]())&&t[$.belongs_to_offer?.toString()][x(202)]($[x(589)]));let r={};FGSECOMAPP[x(513)]?.[x(301)]($=>{let e=x,t=r[$[e(475)]+"_"+$[e(589)]]??{};r[$.belongs_to_offer+"_"+$[e(589)]]={...$,belongs_to_offer:$[e(475)]?.[e(308)](),quantity:(t?.[e(653)]??0)+($?.[e(653)]??0)}}),FGSECOMAPP.arrOfferAdded=Object.values(r),localStorage.setItem(x(560),LZString.compressToBase64(JSON[x(212)](FGSECOMAPP.arrOfferAdded)));let c=await G($,FGSECOMAPP[x(676)]);await K(c),$f(),$8(),$l()},X=function(){let $=_0xad9e95,x=document[$(660)]($(529)),t=document[$(660)]($(425)),a=$(549),i=document.querySelectorAll($(402)),r=i[$(528)];for(let c=0;c{let t=$;x.target===document.querySelector(t(197))&&(document[t(321)](t(197))[t(492)][t(221)](a),e())}),document[$(406)]($(465),x=>{let t=$;x[t(385)]===t(264)&&document[t(321)]("#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg")&&(document.querySelector(t(197))[t(492)][t(221)](a),e())}),document[$(660)]($(260))[$(301)](x=>x[$(406)]($(175),function(){let x=$;this.setAttribute(x(273),1),this.focus(),this.classList[x(554)](x(335)),this[x(321)](x(176))[x(492)][x(554)](x(398))})),document[$(660)]("#fg-gift-items .dropdown")[$(301)](x=>document[$(406)]("click",function(e){let t=$,a=x.contains(e[t(474)]);a||(x[t(492)][t(221)]("active"),x[t(321)](t(176))[t(492)].remove("d-block")),document.querySelectorAll(t(640)).forEach($=>{let x=t;$[x(541)]=!0,$[x(386)][x(530)]=x(252)})})),document[$(660)]($(381))[$(301)](x=>{let e=$;x[e(406)](e(175),function(){let $=e,x=this[$(384)]("id"),t=this[$(384)]($(272)),a=this[$(384)]($(372)),i=this.getAttribute($(205)),r=this.getAttribute("data-original-id"),c=this[$(507)][$(507)][$(507)][$(507)];c[$(321)]($(484))[$(447)]($(280),t);let d=new URL(c.querySelector($(336)).href);d[$(448)].set($(509),r),c[$(321)](".gift-original-url")[$(516)]=d[$(308)]();let o=this[$(507)][$(507)][$(507)];o[$(321)]($(173))[$(353)]=i,o[$(321)]($(400))[$(353)]=a;let n=o?.[$(321)]($(275));n[$(447)]($(561),x),n.disabled=!1,n.style="";let _=this[$(507)][$(507)][$(321)](".selected-variant");_[$(492)][$(244)]($(335)),_[$(317)]=this[$(345)]})}),document.querySelectorAll("#fg-gift-items .btn-add-to-cart")[$(301)](x=>x.addEventListener($(175),async function(){let x=$,e=this[x(384)](x(561))-0,t=this[x(384)](x(444));try{await d(e,1,t);let i=document[x(321)](x(197));i&&(FGSECOMAPP[x(191)]=!0,await new Promise($=>setTimeout($,800)),i[x(492)].remove(a)),window.location.href[x(202)](x(627))?location[x(460)]():typeof Shopify?.[x(433)]===x(666)&&await Shopify?.[x(433)](0===FGSECOMAPP[x(270)][x(528)]?function(){}:FGSECOMAPP[x(270)][0])}catch(r){console[x(551)](r)}}))},Y=($,x)=>{let e=_0xad9e95;if($){let t=new Date,a=t[e(562)](),i=new Date($).getTime();if(!x)return a>=i;{let r=new Date(x)[e(562)]();return a>=i&&a<=r}}return!1},K=async $=>{let x=_0xad9e95;if(FGSECOMAPP.fgSettings?.[x(302)])for(let e of FGSECOMAPP.cartItems)o(e)&&($=$[x(576)]($=>$.product_shopify_id!==e.product_id));if(FGSECOMAPP[x(435)]?.not_show_gift_if_already_on_cart)for(let t of FGSECOMAPP[x(552)])$=$[x(576)]($=>$[x(171)]!==t[x(575)]);if(FGSECOMAPP.fgSettings?.[x(347)])for(let a of FGSECOMAPP[x(552)])$=$[x(576)]($=>{let e=x;return $[e(480)]=$[e(480)][e(576)]($=>{let x=e,t=$.original_price;return FGSECOMAPP.fgSettings?.[x(347)]===x(324)&&(t=$[x(246)]),t<=(a[x(369)]??a.final_price??a[x(412)])/100}),!h($[e(480)])});$&&$[x(528)]>0&&(FGSECOMAPP.isDelayShowAdded?(await new Promise($=>setTimeout($,1500)),FGSECOMAPP[x(191)]=!1,l(),j($)):(l(),j($))),X(),FGSECOMAPP.fetchCheckoutEvents(),FGSECOMAPP[x(597)](FGSECOMAPP.offers),Z=[]},Q=async $=>{let x=_0xad9e95;Z=[];let e=new URL(window.location[x(516)]);e[x(448)].set(x(319),""),t(e.toString())[x(617)]($=>$[x(487)]())[x(617)]($=>{let e=x,t=new DOMParser,a=t[e(626)]($,e(441)),i=e(307)+m(e(579)),r=e(388)+m(e(572)),c=document[e(321)](i),d=!1;c&&(d=!0,c[e(317)]=a[e(321)](i)?.[e(317)]??c.innerHTML);let o=document.querySelector(r);o||(o=document[e(321)](e(424))),o&&(d=!0,o[e(317)]=a[e(321)](r)?.[e(317)]??a[e(321)]("#shopify-section-header #cart-icon-bubble")?.innerHTML??o[e(317)]),d||console.log(e(262))}),"function"==typeof FGSECOMAPP?.[x(330)]&&await FGSECOMAPP.reRenderCartCustom(),setTimeout(function(){K($)},800)},V=async $=>{let x=_0xad9e95,e=await t(x(343)+($??""),{method:x(634),headers:{Accept:"application/json","Content-Type":x(206)}})[x(617)]($=>$[x(637)]()),a=e.items;return FGSECOMAPP[x(485)]=e,FGSECOMAPP[x(552)]=a?.map($=>{let e=x;return{...FGSECOMAPP.cartItems?.[e(646)](x=>x.id===$.id),...$}})??[],e},J=async()=>{let $=_0xad9e95,x=FGSECOMAPP[$(485)];try{await t(SECOMAPP.freegiftProxy,{method:$(634),headers:{"Content-Type":$(363)}}).then(async e=>{let t=$,a=await e[t(637)]();FGSECOMAPP[t(552)]=a?.[t(223)]?.[t(158)]($=>{let x=t;return{...FGSECOMAPP[x(552)]?.[x(646)](x=>x.id===$.id),...$[x(320)],collections:$[x(650)],tags:$.tags}})??[],FGSECOMAPP[t(485)]=a?.[t(234)]??{},x=FGSECOMAPP[t(485)]})[$(304)](async e=>{let t=$;console.error(t(383)+e[t(248)]),x=await V()})}catch(e){console[$(551)]($(350),e.message),x=await V()}return x},Z=[],$$=async $=>{let x=_0xad9e95;try{$===x(287)?Z[x(161)](x(184)):Z[x(161)]($[0]),await J();let e=await G(FGSECOMAPP[x(552)],FGSECOMAPP[x(676)]);FGSECOMAPP.renderPromotionMessage(FGSECOMAPP[x(676)]);let t=!1;return $[0][x(233)](x(638))&&JSON[x(212)]($[1].headers??[])[x(202)](x(358))?(console[x(344)](x(508),[...Z]),await Q(e),t=!0):$[0][x(233)](x(571))&&JSON[x(212)]($[1][x(446)]??[])[x(202)]("sca_process_gifts")?(console.log(x(263),[...Z]),await Q(e),t=!0):(console[x(344)](x(489),[...Z]),await K(e)),t&&(window[x(300)][x(516)][x(202)]("/cart")||document.querySelector(x(157))?.[x(384)](x(545))===x(411))&&(Z=[],location[x(460)]()),FGSECOMAPP.cartItems}catch(a){console[x(551)](a)}},$x=()=>{let $=_0xad9e95;if(!Shopify?.[$(397)])return;let x=document[$(321)]($(292));if(!x)return;x.innerHTML="";let e=Shopify?.[$(532)]??$(527),t=document[$(217)]("li");t.className=$(404),t[$(317)]=$(431)+e+$(684),x[$(375)](t),t.timeoutId=setTimeout(()=>$0(t),3e3),document[$(321)]($(496))?.addEventListener("click",()=>$0(t))},$0=$=>{let x=_0xad9e95;$.classList[x(244)]("hide"),$[x(574)]&&clearTimeout($[x(574)]),setTimeout(()=>$[x(221)](),500)},$e=($,{value:x,innerHTML:e})=>{let t=_0xad9e95;try{let a=FGSECOMAPP[t(435)]?.[t(581)],i=a===t(469)?$[t(474)]:$[t(423)]??$.target;if(i?.hasAttribute("sca_handle_checkout")||(i=document[t(321)](t(499))?.[t(644)]),i[t(366)]=x,i.innerHTML=e,i[t(541)]=!1,i[t(624)](t(175),$t),i[t(521)](t(159)),a===t(208)){i.parentNode[t(321)](t(656))[t(175)]();return}a===t(469)&&window.removeEventListener("click",$a,!0),i[t(175)]()}catch(r){window.location[t(426)]((Shopify?.[t(293)]?.root??"/")+t(371)),console[t(551)](r[t(248)])}},$t=async $=>{let x=_0xad9e95;try{$[x(559)](),$[x(573)](),$[x(623)]();let e=FGSECOMAPP[x(435)]?.mode_override_checkout,a=e===x(469)?$[x(474)]:$[x(423)]??$[x(474)],{form:i}=a,r="",c="";if(a&&(a[x(541)]=!0,r=a.innerHTML,c=a[x(366)],typeof FGSECOMAPP?.[x(313)]===x(666)?await FGSECOMAPP[x(313)](x(586)):(a[x(366)]=x(683),a[x(317)]=x(498))),FGSECOMAPP[x(678)])return!1;FGSECOMAPP.checkIsBlockCheckout=!0;try{let d=new URL(i[x(526)]);d[x(448)].append("sca_checkout_form",""),await t(d[x(308)](),{method:x(673),body:new FormData(i)})}catch(n){console[x(344)](x(655))}if(h(FGSECOMAPP[x(676)])&&h(FGSECOMAPP[x(552)]?.[x(646)]($=>o($))))return console[x(344)](x(506)),$e($,{value:c,innerHTML:r}),!1;await J();let _=[...FGSECOMAPP[x(552)]],s=!1;for(let l of FGSECOMAPP[x(676)])if(l[x(430)]&&l[x(430)].length){let f=P(_,l),u=Y(l.start_time,l[x(478)]);!u&&f.giftsAdded[x(528)]>0&&(s=!0),f[x(476)]||(s=!0),f[x(519)]<0&&(s=!0),l.sub_conditions&&!O(l,SECOMAPP)&&(s=!0)}if(await G(_,FGSECOMAPP[x(676)]),s)location[x(460)]();else try{FGSECOMAPP[x(435)][x(671)]&&!h(FGSECOMAPP[x(552)]?.[x(646)]($=>o($)))?await t(SECOMAPP[x(546)]+x(611)+Shopify?.[x(361)],{method:x(634),headers:{"Content-Type":x(363)}})[x(617)](async $=>{let e=x,a=await $[e(637)]();a[e(223)]=(a[e(223)]??[]).map($=>{let x=e;return $[x(320)][x(650)]=$[x(650)]?.map($=>({id:$.id})),$.product.tags=$.tags,{id:$.product.id,variant_id:$.product[x(607)],title:$.product.title,handle:$[x(320)][x(503)],price:$[x(320)][x(369)]??$[x(320)].final_price??$[x(320)][x(412)],quantity:$[x(320)][x(653)],product_type:$[x(320)][x(195)],vendor:$[x(320)][x(680)],tags:$.product.tags,collections:$.product[x(650)],selling_plan_allocation:$[x(320)][x(174)]}}),a[e(341)]={arr_offer_added:FGSECOMAPP[e(513)],secomapp:{customer:SECOMAPP?.[e(316)]??{},fg_codes:SECOMAPP?.[e(415)]??[],fgSettings:FGSECOMAPP.fgSettings},cookie_fg_code:I(e(390)),shopify_currency:Shopify?.[e(333)]},await t(SECOMAPP[e(546)]+"&data_checkout="+LZString[e(618)](a=JSON.stringify(a)),{method:e(634),headers:{"Content-Type":e(363)}})[e(617)](async $=>{let x=e,t=await $.json();try{FGSECOMAPP[x(678)]=!1,t.sca_link_checkout&&(window[x(300)][x(516)]=t[x(193)][x(515)])}catch(a){console[x(551)](a)}})}):(console[x(344)](x(438)),FGSECOMAPP[x(678)]=!1,$e($,{value:c,innerHTML:r}))}catch(p){FGSECOMAPP[x(678)]=!1,$e(p,{value:c,innerHTML:r})}(a=e===x(469)?$[x(474)]:$[x(423)]??$.target)&&(typeof FGSECOMAPP?.[x(313)]===x(666)?await FGSECOMAPP[x(313)]("end"):(a[x(366)]=c,a[x(317)]=r),a[x(541)]=!1)}catch(g){typeof FGSECOMAPP?.[x(313)]===x(666)&&await FGSECOMAPP[x(313)](x(364)),console[x(551)](g)}},$a=async $=>{let x=_0xad9e95;$[x(474)]?.hasAttribute(x(159))&&await $t($)},$i=()=>{let $=_0xad9e95,x=FGSECOMAPP[$(435)]?.[$(581)],e=$(477),t=e+$(427)+m($(434));document.querySelectorAll(t)[$(301)](e=>{let t=$,a=e.hasAttribute(t(254)),i=e[t(153)](t(459)),r=e.hasAttribute("sca_handle_checkout");if(x===t(208)){if(a)return;if(!i&&!r){let c=e.cloneNode(!0);c[t(406)]("click",$t),c[t(447)](t(159),""),c[t(447)]("sca_clone_checkout",""),e.style.display=t(462),e[t(386)].visibility=t(218),e.style[t(314)]="0",e.setAttribute(t(254),""),e.parentNode?.appendChild(c)}i&&!r&&(e.addEventListener("click",$t),e.setAttribute("sca_handle_checkout",""))}else x===t(469)?e.setAttribute(t(159),""):r||(e[t(406)]("click",$t),e.setAttribute("sca_handle_checkout",""));FGSECOMAPP[t(312)]=!0}),x===$(469)&&window.addEventListener($(175),$a,!0)};FGSECOMAPP[_0xad9e95(538)]=()=>{FGSECOMAPP.scaCountRenderEventCheckout=0;let $=setInterval(()=>{let x=_0x4151;$i(),FGSECOMAPP[x(357)]++,(FGSECOMAPP[x(357)]>10||FGSECOMAPP[x(312)])&&(FGSECOMAPP[x(357)]=0,clearInterval($))},400)};let $r=$=>{let x=_0xad9e95;try{let e={},t={},a=FGSECOMAPP[x(676)];if(h($)){$=[],h(Shopify?.[x(247)])||$.push({...Shopify?.current_product});let i={...Shopify?.[x(449)],...Shopify?.[x(286)]?.products};Object[x(468)](FGSECOMAPP[x(226)])?.filter($=>!h($.info)&&(h($?.[x(268)])||$?.product_has_icon&&!$?.[x(525)]?.[x(167)]($=>$?.[x(492)]?.[x(558)](x(230)))))?.[x(301)]($=>{let e=x;i[$.info.id]={...$[e(326)]}}),$=$.concat([...Object[x(468)](i)])}for(let r in $?.[x(301)]($=>{let e=x,t=FGSECOMAPP[e(226)][$[e(503)]];FGSECOMAPP[e(226)][$[e(503)]]={...t,info:{...$},product_has_icon:!!h(a)&&void 0}}),a?.[x(301)](a=>{let i=x,r=a[i(612)];if(1===r[i(528)]&&r[0].unit===i(251)&&typeof r[0].is_multiply===i(565)){let c,d=r[0][i(309)];d?.forEach(x=>{let e=i;switch(x.type){case"variants_ids":c=Object.values(x.value);break;case e(189):let t=Object[e(164)](x[e(366)]);t[e(528)]>0&&(c=(void 0===c?$:c)?.[e(576)]($=>t[e(202)]($[e(213)]))??[]);break;case e(306):let a=Object[e(164)](x.value);a[e(528)]>0&&(c=(void 0===c?$:c)?.[e(576)]($=>a[e(202)]($.vendor))??[]);break;case"product_collections":let r=Object[e(164)](x[e(366)]);r[e(528)]>0&&(c=(void 0===c?$:c)?.[e(576)]($=>{let x=e,t=$[x(650)]?.map($=>$.id+""),a=t?.filter($=>r.includes($));return!h(a)})??[])}}),c?.[i(301)]($=>{let x=i,r=$.handle;if(e[r]){let c=e[r]?.[x(158)]($=>$[x(171)]),d=a[x(429)]?.[x(576)]($=>!c?.includes($[x(171)]));e[r]=e[r][x(614)](d)}else e[r]=a[x(429)];let o=$[x(509)]?.[x(158)]($=>$.id)??[];t[r]=o[x(614)](t[r]??[]),t[r]=[...new Set(t[r])]})}}),e){let c=FGSECOMAPP[x(226)][r];FGSECOMAPP[x(226)][r]={...c,gifts_will_receive:[...e[r]],product_has_icon:!0,variants_has_gift:[...t[r]]}}return Object.entries(e)?.[x(528)]?e:{}}catch(d){return console.error(d),null}},$c=$=>{let x=_0xad9e95,e=FGSECOMAPP[x(630)].product_page??{};if(!e.gift_thumbnail?.[x(518)])return;let t=x(177)+(e[x(296)]?.[x(342)]??x(328))+x(531)+$?.[x(158)]($=>'\n
    \n \n =4?'\n \xab\n \xbb\n ':"")+x(582),a=x(166)+m("sca_fg_btn_gift_thumbnail_query"),i=document.querySelector(a)??document[x(321)](x(182));if(!i)return;i[x(644)].style[x(414)]="100%",i[x(644)][x(386)].height=x(297),i[x(644)]?.className?.[x(202)](x(619))||i[x(644)]?.[x(492)]?.add(x(619));let r=i.parentNode[x(321)]("#sca-gift-thumbnail");if(r)r[x(317)]=t;else{(r=document[x(217)]("div"))[x(447)]("id",x(235));let c=new DOMParser()[x(626)](t,x(441));r[x(317)]=c[x(310)][x(317)],i[x(644)][x(632)](r,i)}i[x(644)][x(632)](r,i);let d=document[x(321)](x(368));if(d)switch(e[x(296)]?.[x(652)]){case"32":d.style[x(258)]=x(645);break;case"50":d[x(386)][x(258)]=x(616);break;case"100":d.style[x(258)]=x(338);break;case x(196):d[x(386)][x(258)]=x(199);break;case x(567):d[x(386)].maxWidth=x(169);break;default:d[x(386)].maxWidth=x(616)}if($?.[x(528)]>=4)new Glider(document[x(321)](".sca-list-gift-thumbnail"),{slidesToShow:3,slidesToScroll:1,draggable:!0,dots:x(556),arrows:{prev:x(282),next:x(231)}});else{d&&(d.style.maxWidth=x(169));let o=document[x(321)](x(215));o&&(o.style[x(291)]=x(587))}},$d=()=>{let $=_0xad9e95;if(!(FGSECOMAPP[$(630)][$(639)]??{})[$(603)]?.[$(518)])return;let x=$(481)+FGSECOMAPP.fgAppearanceGiftIcon[$(622)]+$(613),e=".fg-secomapp-product-title "+m("sca_fg_title_product_gift_icon_query"),t=document[$(321)](e)??document[$(321)]($(584));if(!t)return;t[$(386)].position=$(544),t[$(386)][$(414)]=$(608),t.className?.[$(202)]($(486))||t[$(492)]?.[$(244)]($(486));let a=t[$(321)]($(458));if(a)a[$(317)]=x;else{(a=document[$(217)]($(502)))[$(447)]("id",$(256));let i=new DOMParser()[$(626)](x,$(441));a[$(317)]=i[$(310)][$(317)],t.appendChild(a)}},$o=()=>{let $=_0xad9e95,x=[],e=$(380)+m($(665));return document[$(660)](e)[$(301)](e=>{let t=$,a=e[t(321)](t(450)),i=a?.[t(384)](t(516))?.[t(595)]("/")??[],r=i?.[t(659)](t(534)),c=r>=0?i[r+1]??null:null;if(c=c?.[t(595)]("?")?.[t(327)](),o(c)){e.remove();return}let d=e.querySelector('a[href*="/collections/sca_fg"]');if(d){e[t(221)]();return}if(h(c))return;let n=decodeURI(c);h(FGSECOMAPP[t(226)][n]?.[t(326)])&&x[t(161)](n);let _=(FGSECOMAPP[t(226)][n]?.positions??[]).filter($=>!e.isSameNode($));_[t(161)](e),FGSECOMAPP[t(226)][n]={...FGSECOMAPP[t(226)][n],positions:[..._]}}),x},$n=$=>{let x=_0xad9e95;Object[x(164)]($)?.[x(301)]($=>{let e=x,t=FGSECOMAPP[e(226)][$]?.[e(525)]??[];if(h(t)||!Array[e(488)](t))return;if(!(FGSECOMAPP[e(630)][e(325)]??{})[e(518)])return;let a=e(285)+FGSECOMAPP[e(630)][e(622)]+e(323);t[e(301)]($=>{let x=e;$[x(386)][x(265)]=x(544),$[x(464)]?.[x(202)](x(379))||$[x(492)]?.[x(244)](x(379));let t=$[x(321)](".sca-gift-icon-collection-page");if(t)t[x(317)]=a;else{(t=document.createElement("div"))[x(447)](x(421),x(230));let i=new DOMParser()[x(626)](a,"text/html");t[x(317)]=i[x(310)].innerHTML,$[x(375)](t)}})})},$_=async $=>{let x=_0xad9e95;await t(SECOMAPP[x(546)]+x(601)+LZString[x(618)](JSON[x(212)]($)),{method:"GET",headers:{"Content-Type":x(363)}})[x(617)](async $=>{let e=x,t=await $[e(637)](),a=[];t?.[e(534)]?.[e(301)]($=>{let x=e;h($?.products?.id)||a[x(161)]({...$[x(534)],collections:$[x(650)],variants_quantity:$[x(266)]})});let i=$r(a);$n(i)})[x(304)]($=>{let e=x;console[e(551)]($)})},$s=async $=>{let x=_0xad9e95,e=[];for(let[t,a]of $[x(615)]())h(FGSECOMAPP.productsInPage[a]?.[x(326)])&&e[x(161)](a),20===e[x(528)]&&(await $_([...e]),e=[]),t===$[x(528)]-1&&e[x(528)]>0&&(await $_([...e]),e=[])},$l=()=>{let $=$o(),x=$r();$n(x),$s($).then()},$f=()=>{let $=_0xad9e95;Shopify?.[$(401)]&&document[$(406)]($(376),function(){let x=$,e=new URL(document.URL),t=parseInt(e[x(448)][x(524)](x(509)));$8(isNaN(t)?void 0:t)})},$8=$=>{let x=_0xad9e95;if(!location[x(516)].includes(x(249)))return;document.querySelector("#sca-gift-icon")?.[x(221)](),document.querySelector("#sca-gift-thumbnail")?.[x(221)]();let e=$r();if(h(e))return;let t=location[x(675)].split("/"),a=t?.[x(659)](x(534)),i=decodeURI(a>=0?t[a+1]??null:null);if(!Object[x(164)](e)?.includes(i))return;let r=e[i],c=FGSECOMAPP[x(226)][i]?.[x(340)]??[];!(Shopify?.[x(401)]&&(!h($)&&!c[x(202)]($)||h($)&&!h(Shopify?.current_product?.current_variant)&&!c[x(202)](Shopify?.[x(247)]?.[x(416)]?.id)))&&($c(r),$d(r))};FGSECOMAPP[_0xad9e95(597)]=$=>{let x=_0xad9e95;try{h($)&&($=[...FGSECOMAPP[x(676)]]);let e=location.href.includes(x(627)),t=[];if($?.[x(301)]($=>{let e=x;if($[e(476)]||h($.promotion_message)||!h(FGSECOMAPP[e(238)])&&!$[e(476)]&&$[e(370)]&&$[e(392)]>FGSECOMAPP[e(238)])return;let a=$[e(178)];$.offer_conditions?.[e(301)]($=>{let x=e,t=A(FGSECOMAPP[x(552)],$);t=C(t,$[x(533)]);let i=0,r=null,c=0;"money"===$[x(440)]?(i=w(t),r=x(501),c=Shopify?.[x(583)]??2):$[x(440)]===x(251)&&(i=k(t),r=x(163),c=0);let d=Math.max($[x(674)]-i,0).toFixed(c);a=a[x(267)](r,d)}),t[e(161)](a)}),h(t)){document[x(660)](x(311)).forEach($=>$.innerHTML="");return}let a="",i=x(592)+t?.[x(158)]($=>'

    '+$+x(443))[x(588)]("")+x(354);FGSECOMAPP[x(553)][x(339)]&&(a=i);let r=x(240),c=document.querySelector(r),d=c?.querySelector(x(183)),o=document[x(660)](".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"+x(491)+m(x(391))),n=document[x(660)](x(311));h(n)||n[x(301)]($=>$.innerHTML=a),(n=document[x(217)](x(502)))[x(447)]("id",x(621)),n[x(492)][x(244)]("sca-promotion-message-layout");let _=new DOMParser().parseFromString(a,"text/html");n[x(317)]=_[x(310)][x(317)],h(o)?!c?.querySelector(x(311))&&(_=new DOMParser()[x(626)](a,x(441)),n[x(317)]=_[x(310)][x(317)],c&&d&&e?d[x(629)](n):c&&e&&c[x(629)](n)):o?.[x(301)]($=>{let e=x;if($[e(321)](e(311)))return;let t=n.cloneNode(!0);$.prepend(t)});try{document[x(660)](x(365)).forEach($=>{let x=new Glider($);(($,x)=>{let e=_0x4151,t=$[e(187)][e(682)],a=null,i=1;function r(){a=setTimeout(()=>{let x=_0x4151;i>=t&&(i=0),$[x(170)](i++)},3e3)}$[e(181)][e(406)]("glider-animated",function(){window[e(483)](a),r()}),r()})(x,3e3)})}catch(s){console[x(551)](s)}}catch(l){console[x(551)](l)}};let $u=async()=>{let $=_0xad9e95;try{let x=await t($(537)),e=await x[$(637)]();FGSECOMAPP[$(654)]=e?.[$(548)]}catch(a){console[$(344)]($(456))}},$p=function(){let $=_0xad9e95;try{let x=()=>{let $=_0x4151;typeof FGSECOMAPP[$(330)]!==$(666)&&typeof window[$(657)]===$(666)&&(FGSECOMAPP.reRenderCartCustom=async()=>{await window[$(657)]()})};x(),window[$(406)]($(636),function(x){FGSECOMAPP.renderPromotionMessage(),FGSECOMAPP[$(538)]()}),window.addEventListener($(356),function(e){let t=$;x(),$$("/cart.js")[t(617)](()=>{window[t(657)]()})}),window[$(406)]($(162),function(e){let t=$;x(),$$(t(287))[t(617)](()=>{window.prepareDataForDisplayWidgetByRule()})})}catch(e){console[$(551)](e)}};W(FGSECOMAPP[_0xad9e95(552)])[_0xad9e95(617)](()=>{$p()})}}catch($g){console.log("can not check freegifts version",$g)}