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":"#00358e","product_title_color":"#00358E","original_price_color":"#121212","discounted_price_color":"#121212","add_to_cart_color":"#FFFFFF","add_to_cart_btn_color":"#00358e"},"others":{"hidden_brand_mark":true},"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 _0x350916=_0x45a5;function _0x45a5($,x){let t=_0x5d78();return(_0x45a5=function($,x){return t[$-=157]})($,x)}!function($,x){let t=_0x45a5,e=$();for(;;)try{let a=parseInt(t(264))/1+parseInt(t(503))/2*(parseInt(t(539))/3)+-parseInt(t(197))/4*(parseInt(t(308))/5)+parseInt(t(433))/6+-parseInt(t(324))/7*(parseInt(t(288))/8)+parseInt(t(368))/9+-parseInt(t(476))/10*(parseInt(t(501))/11);if(255193===a)break;e.push(e.shift())}catch(i){e.push(e.shift())}}(_0x5d78,255193);try{let $=document.getElementById(_0x350916(363))?.[_0x350916(173)](_0x350916(268));if($===_0x350916(159)){window[_0x350916(355)]?.[_0x350916(537)]?.[_0x350916(353)]?.[_0x350916(603)]&&fgGiftIcon&&(window.fgData[_0x350916(537)][_0x350916(353)][_0x350916(603)]=fgGiftIcon),window[_0x350916(361)]={},FGSECOMAPP[_0x350916(219)]=null,FGSECOMAPP[_0x350916(186)]=Object.values(Shopify?.cartItems??{}),FGSECOMAPP.offers=[],FGSECOMAPP[_0x350916(582)]=window[_0x350916(355)]?.[_0x350916(337)]??{},FGSECOMAPP.fgAppearance=window[_0x350916(355)]?.[_0x350916(537)]??{},FGSECOMAPP[_0x350916(625)]=FGSECOMAPP[_0x350916(274)]?.[_0x350916(635)]?.[_0x350916(166)],FGSECOMAPP.fgAppearanceGiftIcon=FGSECOMAPP[_0x350916(274)]?.gift_icon,FGSECOMAPP.fgAppearancePromotionMessage=FGSECOMAPP.fgAppearance?.[_0x350916(623)],FGSECOMAPP[_0x350916(199)]=[],FGSECOMAPP[_0x350916(611)]=!1,FGSECOMAPP[_0x350916(558)]=[],FGSECOMAPP.scaCountRenderEventCheckout=0,FGSECOMAPP.checkIsBlockCheckout=!1,FGSECOMAPP[_0x350916(221)]={...Shopify?.[_0x350916(221)]},FGSECOMAPP.reRenderCartCustom=Shopify?.[_0x350916(513)]??void 0,FGSECOMAPP[_0x350916(365)]=Shopify?.scaCustomLoadingCheckout??void 0,FGSECOMAPP[_0x350916(259)]={},FGSECOMAPP[_0x350916(436)]=!1,FGSECOMAPP.sections_cart={},FGSECOMAPP.isUpdateCart=!1,FGSECOMAPP[_0x350916(432)]={};let x=()=>{let $=_0x350916,x=FGSECOMAPP[$(274)]?.[$(635)],t=x?.[$(202)]?.[$(281)],e=!b(x)&&void 0!==t&&!t;return e?'\n
{let t=_0x350916,e=!0,a=!0,i=!0,r=!0;if(!b($[t(571)]?.[t(402)])){let _=E(t(313));e=_&&JSON.parse(_)[t(385)]($[t(571)].specific_link_address)}if(!b($[t(571)]?.[t(565)])){let{customer_tags:o}=$[t(571)],c=o?.[t(174)]?.[t(255)]($=>x[t(446)][t(546)]?.includes($));a=o?.[t(426)]===t(568)?c:!c}if(!b($[t(571)]?.[t(422)])){let{customer_locations:n}=$[t(571)],d=n?.[t(218)]?.[t(385)](FGSECOMAPP.customerLocation);r=n?.[t(371)]===t(568)?d:!d}if(!b($.sub_conditions?.[t(557)])){let s=!0,l=$.sub_conditions[t(557)],f=x[t(446)][t(193)]??[];if(l[t(244)]){let u=Date[t(409)](l[t(244)])/1e3;f=f[t(549)]($=>$[t(523)]>=u)}if(!b(l?.totarrCustomerOrderal_spend_on_order_history)&&(0!==l[t(615)].min_amount||0!==l.total_spend_on_order_history[t(577)])){let g=l[t(615)].min_amount,p=l[t(615)].max_amount,h=f.reduce(($,x)=>$+x[t(488)],0)/100;s&=(h>=g||!g)&&(h<=p||!p)}if(!b(l?.[t(254)])&&(0!==l[t(254)][t(435)]||0!==l[t(254)][t(577)])){let m=x[t(446)][t(302)]/100,v=l.total_spent_on_last_order[t(435)],y=l[t(254)][t(577)];s&=(m>=v||!v)&&(m<=y||!y)}if(!b(l?.[t(624)])){let w=!(0!==l[t(624)][t(435)]||0!==l[t(624)][t(577)]),k=f[t(271)],C=l.number_of_order[t(435)],A=l[t(624)][t(577)];s&=w?b(f):(k>=C||!C)&&(k<=A||!A)}if(l?.[t(315)]){let S=x[t(446)][t(595)]??[],T=$.gift_items?.[t(255)]($=>S[t(385)]($[t(176)]))||$[t(646)]?.[t(255)]($=>S.includes($.original_variant_shopify_id+"_"+($[t(323)]-$[t(184)])*100));s&=!T}i=s}return e&&a&&i&&r},G=($,x,t)=>{let e=_0x350916,a=[],i=[],r=[],_=[];for(let o of x){let n=L($,o);if(!n[e(551)]){n[e(442)][e(271)]>0&&n[e(442)][e(478)]($=>{let x=e;i[x(500)]({variant_id:$.variant_id,quantity:$[x(167)],offer_id:o.id})});continue}if(n.giftsAvailable<0){n[e(442)][e(478)]($=>{let x=e;i[x(500)]({variant_id:$[x(251)],quantity:$[x(167)],offer_id:o.id})});continue}0!==n[e(203)]&&(o[e(571)]?P(o,SECOMAPP)&&a[e(500)](o):a[e(500)](o))}if($?.[e(478)]($=>{let x=e;b($[x(645)])&&c($)&&i[x(500)]({variant_id:$.variant_id,quantity:$[x(167)],offer_id:$[x(645)]?.toString()})}),t||b(i)){let d=a[e(628)]($=>{let x=e;return{id:$.id,offerName:$.offer_name,offerPriority:$[x(320)],stopLowerPriority:$[x(473)],gifts:I($),giftsAvailable:$[x(203)],giftsAdded:$[x(442)],isReachConditions:$.isReachConditions}});if(!b(d)){let s={};for(let l of d){let f=M(FGSECOMAPP[e(582)],l);f?.[e(271)]>0?r=r[e(400)]([...f]):l[e(462)][e(628)]($=>{let x=e;s[$[x(171)]]={...$,belongs_to_offer:l.id?.toString()}})}_=Object.values(s)??[]}}return{arrGiftsAdd:r,arrGiftsRemove:i,arrGiftsData:_}},O=($,x)=>{let t=_0x350916,e=new Set;return $?.forEach($=>e[t(336)]($.offer_id)),e.forEach($=>{let x=t,e=FGSECOMAPP[x(273)]?.[x(548)](t=>t.id?.toString()===$?.[x(407)]());if(b(e)||!e[x(551)]){FGSECOMAPP[x(558)]=FGSECOMAPP[x(558)]?.[x(549)](t=>t.belongs_to_offer?.toString()!==$?.[x(407)]());return}if(e[x(203)]>=0)return;let a=[],i=FGSECOMAPP.arrOfferAdded?.filter(t=>t.belongs_to_offer?.toString()===$?.[x(407)]())??[];if(e?.[x(332)]?.auto_add_all_gifts)a=a[x(400)]([...i]),e.giftsAvailable=0;else for(let r of i){if(e[x(203)]>=0)break;e[x(203)]+=r[x(167)],e[x(203)]<=0?a.push({...r}):(r.quantity=e[x(203)],e[x(203)]=0)}a?.forEach($=>{let t=x;FGSECOMAPP[t(558)]=FGSECOMAPP[t(558)]?.[t(549)](x=>$[t(534)]!==x[t(534)]||$[t(645)]?.[t(407)]()!==x[t(645)]?.[t(407)]())})}),x?.[t(549)]($=>{let x=t;return c($)&&($.quantity=FGSECOMAPP.arrOfferAdded?.[x(549)](t=>$.variant_id===t[x(534)])?.reduce(($,t)=>$+t[x(167)],0)??0),$[x(167)]>0})??[]},F=async($,x)=>{let t=_0x350916,{arrGiftsAdd:e,arrGiftsRemove:a,arrGiftsData:i}=G($,x,!1),_=O(a,$);if(!b(a)){let o=G(_,x,!0);O(o?.arrGiftsRemove,$),e=o?.[t(263)],a=a?.[t(400)](o?.[t(328)])??[],i=o?.arrGiftsData}return await n(e,a),await r(),i},M=($,x)=>{let t=_0x350916,e=[];if($.auto_add_gift){let a=x[t(462)],i=a[t(382)](($,x)=>$+x[t(567)][t(271)],0),r=FGSECOMAPP[t(273)][t(549)]($=>$.id===x.id),_=r[0][t(332)][t(325)],o=r[0][t(290)];if(1===i||_||o.status){if($.not_show_gift_if_already_on_cart&&!D(a)||$?.[t(307)]&&!N(a))return!1;if(o[t(454)]){if("variant"===o[t(594)]){let c=FGSECOMAPP[t(186)];c=c[t(549)]($=>{let x=t;return $[x(569)]===a[0][x(272)]});let n=a[0][t(567)][t(549)]($=>{let x=t;return c[0][x(251)]===$.original_variant_shopify_id})[0];if(0===n[t(184)]&&100===parseInt(n.discount_percentage))return e[t(500)]({variant_id:n[t(176)],quantity:x[t(203)],offer_id:x.id}),e}else if(_){let d=a?.[t(382)](($,x)=>($+x?.[t(567)]?.[t(271)])??0,0);if(!d)return!1;let s=(x?.[t(203)]??0)/d;for(let l of a)for(let f of l[t(567)])e[t(500)]({variant_id:f[t(176)],quantity:s,offer_id:x.id});return e}}else{if(_){let u=a?.[t(382)](($,x)=>($+x?.variants?.[t(271)])??0,0);if(!u)return!1;let g=(x?.[t(203)]??0)/u;for(let p of a)for(let b of p[t(567)])e[t(500)]({variant_id:b[t(176)],quantity:g,offer_id:x.id});return e}{let h=a[0].variants[0];if(0===h.price&&100===parseInt(h[t(187)]))return console.log(t(369)+a[0][t(567)][0][t(176)]+" "+a[0][t(567)][0][t(207)]),e.push({variant_id:h.variant_shopify_id,quantity:x.giftsAvailable,offer_id:x.id}),e}}}}return!1},R=$=>{let x=_0x350916;return $===x(241)},H=$=>{let x=_0x350916;try{let t=Shopify[x(429)]??FGSECOMAPP[x(274)]?.gift_slider?.[x(202)]?.[x(499)]??x(418),e=new URL($),a=new URLSearchParams(t);return a[x(478)](($,t)=>e.searchParams[x(364)](t,$)),e[x(407)]()}catch(i){return $}},j=$=>{let x=_0x350916,t=$;if(FGSECOMAPP.fgAppearanceGiftSlider[x(622)]===x(344))for(let e of(t=[],$)){let a=e[x(567)];a&&a.length&&a[x(478)]($=>t[x(500)]({...e,thumbnail:$.thumbnail,variants:[$]}))}let i=document.getElementById(x(559));i&&(i.innerHTML=t.map($=>{let t=x,e=$?.[t(567)][0]??{};return t(181)+g($.original_product_shopify_id,$[t(420)])+t(636)+H($.thumbnail)+'" alt="">\n '+p($[t(272)],$[t(609)])+t(162)+(FGSECOMAPP[t(625)][t(622)]===t(344)&&FGSECOMAPP[t(625)][t(511)]?t(437)+(1===$[t(567)].length?t(270)+(R(e[t(207)])?"sca-d-none":"")+t(333)+e[t(207)]+t(397):t(408)+(FGSECOMAPP[t(625)].select_gift_btn??t(423))+t(580))+t(517):"")+t(404)+u(e)+'\n \n '+f(e)+t(439)+(FGSECOMAPP[t(625)][t(622)]!==t(344)?t(555)+(1===$[t(567)][t(271)]?t(270)+(R(e[t(207)])?t(474):"")+'">'+e[t(207)]+t(580):''+(FGSECOMAPP.fgAppearanceGiftSlider[t(401)]??t(423))+" ")+t(447)+l($[t(567)],$[t(243)])+"\n \n ":"")+'\n {let $=_0x350916;try{let x=window[$(355)]?.[$(273)]??[];for(let t in await $f(),Shopify?.[$(449)])b(Shopify?.[$(449)][t]?.id)&&delete Shopify?.[$(449)][t];let e=[];return x[$(478)](x=>{let t=$,a=JSON[t(409)](JSON[t(375)](x));if(x[t(290)][t(454)]){let i=x[t(252)][0][t(250)],r=i[0][t(542)],_=[...a[t(646)]],o=[...a.gift_products];if(x[t(290)][t(594)]===t(610))for(let c in r){let n=r[c]?.[t(610)]??[];for(let d of n){a.offer_conditions[0][t(250)]=[{type:i[0][t(594)],value:{[c]:{...r[c],variant:[{...d}]}}}],a[t(646)]=_[t(549)]($=>$.original_product_shopify_id+""===c&&d.id===$.original_variant_shopify_id),a.gift_products=o[t(549)]($=>$[t(272)]+""===c),a[t(256)][0][t(567)]=[...a[t(646)]];let s=a.gift_settings[t(496)],l=a[t(332)].auto_add_all_gifts;a[t(332)][t(325)]&&(s=a[t(646)][t(271)]),1===a[t(646)][t(271)]&&0===a.gift_items[0][t(184)]&&(l=!0),e[t(500)](JSON[t(409)](JSON[t(375)]({...a,gift_settings:{...a[t(332)],number_of_gift_can_receive:s,auto_add_all_gifts:l},id:a.id+"_"+r[c][t(591)]+"_"+d.id})))}}else if(x[t(290)].type===t(253))for(let f in r){a[t(252)][0][t(250)]=[{type:i[0][t(594)],value:{[f]:r[f]}}],a[t(646)]=_[t(549)]($=>$.original_product_shopify_id+""===f),a.gift_products=o[t(549)]($=>$[t(272)]+""===f);let u=a.gift_settings[t(496)],g=a[t(332)].auto_add_all_gifts;a[t(332)][t(325)]&&(u=a[t(646)].length),1===a[t(646)][t(271)]&&0===a.gift_items[0][t(184)]&&(g=!0),e[t(500)](JSON.parse(JSON[t(375)]({...a,gift_settings:{...a[t(332)],number_of_gift_can_receive:u,auto_add_all_gifts:g},id:a.id+"_"+r[f][t(591)]})))}}}),(x=(x=(x=x?.filter(x=>!x?.[$(290)]?.[$(454)])?.[$(400)](e))?.[$(628)]($=>({...$,id:$.id.toString()})))?.filter(x=>{let t=$;if(!Y(x[t(301)],x[t(443)]))return!1;let e=!b(x[t(571)]?.[t(557)]||x[t(571)]?.[t(565)]);if(x.sub_conditions&&(!P(x,SECOMAPP)||e&&b(SECOMAPP[t(446)].email)))return!1;let a={...Shopify?.products},i=!1;if(FGSECOMAPP.fgSettings[t(192)]===t(412)){x.gift_items=x?.[t(646)][t(549)]($=>{let x=t,e=a[$[x(272)]]?.[x(200)]??{};return e[$.original_variant_shopify_id]>0})??[];let r=x[t(646)]?.[t(628)]($=>$[t(176)]);x[t(256)]=x?.[t(256)]?.filter($=>{let x=t;return $[x(567)]=$?.[x(567)]?.[x(549)]($=>{let t=x;return r?.includes($[t(176)])}),$?.[x(567)]?.[x(271)]>0}),i=!0}else if(FGSECOMAPP[t(582)][t(384)]){x[t(646)]=x?.gift_items[t(549)]($=>{let x=t,e=a[$[x(171)]]?.[x(200)]??{};return e[$[x(176)]]>0});let _=x[t(646)]?.[t(628)]($=>$[t(176)]);x.gift_products=x?.[t(256)]?.filter($=>{let x=t;return $.variants=$?.[x(567)]?.[x(549)]($=>{let t=x;return _?.includes($[t(176)])}),$?.[x(567)]?.[x(271)]>0}),i=!0}return i&&x.gift_settings?.[t(325)]&&(x[t(332)][t(496)]=x[t(646)]?.[t(271)]),!i||x[t(646)]&&x[t(646)][t(271)]>0}))?.[$(628)](x=>{let t=$,e=x[t(646)][t(628)]($=>$[t(272)]);return x.gift_products=x.gift_products?.[t(549)]($=>{let x=t;return e[x(385)]($[x(272)])}),x.offer_conditions?.[t(478)]($=>{let x=t;$.unit===x(206)&&($[x(435)]=v($[x(435)]),$.max_amount=b($.max_amount)?$[x(577)]:v($[x(577)]))}),x})}catch(a){return console.error(a),[]}},D=$=>{let x=_0x350916;for(let t of FGSECOMAPP[x(186)]){let e=t[x(569)];if($[0][x(272)]===e)return!1}return!0},N=$=>{let x=_0x350916;for(let t of FGSECOMAPP[x(186)]){let e=$[0][x(567)][0][x(323)];if(FGSECOMAPP[x(582)][x(307)]===x(329)&&(e=$[0][x(567)][0][x(406)]),e>t[x(184)]/100)return!1}return!0},z=async()=>{let $=_0x350916;try{let x=[];window[$(355)]?.[$(273)]?.[$(478)](t=>{let e=$,a=[];t[e(256)][e(478)]($=>{a.push($.clone_product_handle,$.original_product_handle)}),x=[...x,...a]}),await $n(x=(x=[...new Set(x)]).filter(x=>b(FGSECOMAPP[$(259)][x]))),Object.values(FGSECOMAPP.productsInPage)?.[$(478)](x=>{let t=$,{info:e}=x;b(e)||b(e?.id)||(Shopify[t(449)][e.id]={...e})})}catch(t){console[$(217)](t)}},U=async $=>{let x=_0x350916;m(),FGSECOMAPP[x(469)](),FGSECOMAPP?.fgSettings?.sync_quantity===x(412)||FGSECOMAPP?.fgSettings?.[x(384)]?await z():z()[x(390)](),FGSECOMAPP.offers=await B(),FGSECOMAPP.initializeForXHR(),a();try{b($)?(FGSECOMAPP.arrOfferAdded=[],localStorage[x(492)](x(399),LZString[x(482)](JSON[x(375)](FGSECOMAPP[x(558)])))):FGSECOMAPP.arrOfferAdded=JSON[x(409)](LZString.decompressFromBase64(localStorage.getItem(x(399))))}catch(t){FGSECOMAPP[x(558)]=[],localStorage[x(492)](x(399),LZString[x(482)](JSON.stringify(FGSECOMAPP.arrOfferAdded)))}let e={};FGSECOMAPP.offers?.[x(478)]($=>{let t=x;e[$.id]=$?.[t(646)]?.[t(628)]($=>$[t(176)])});let i=Object[x(471)](e);FGSECOMAPP[x(558)]=FGSECOMAPP[x(558)]?.[x(549)]($=>i?.[x(385)]($.belongs_to_offer?.toString())&&e[$.belongs_to_offer?.toString()][x(385)]($[x(534)]));let r={};FGSECOMAPP[x(558)]?.forEach($=>{let t=x,e=r[$[t(645)]+"_"+$[t(534)]]??{};r[$.belongs_to_offer+"_"+$[t(534)]]={...$,belongs_to_offer:$[t(645)]?.[t(407)](),quantity:(e?.[t(167)]??0)+($?.[t(167)]??0)}}),FGSECOMAPP[x(558)]=Object[x(592)](r),localStorage.setItem(x(399),LZString.compressToBase64(JSON.stringify(FGSECOMAPP[x(558)])));let _=await F($,FGSECOMAPP.offers);await X(_),$s(),$l(),$d()},W=function(){let $=_0x350916,x=document[$(283)]("[data-open]"),e=document[$(283)]($(457)),a=$(216),i=document[$(283)]("#fg-gift-items .btn-add-to-cart"),r=i.length;for(let _=0;_{let e=$;x[e(278)]===document[e(502)](e(529))&&(document.querySelector(e(529))[e(249)][e(284)](a),t())}),document[$(237)]($(638),x=>{let e=$;x[e(617)]===e(347)&&document[e(502)](e(529))&&(document[e(502)](e(529))[e(249)][e(284)](a),t())}),document[$(283)]($(338))[$(478)](x=>x[$(237)]($(289),function(){let x=$;this.setAttribute(x(331),1),this[x(209)](),this.classList.toggle(x(303)),this[x(502)](x(160))[x(249)].toggle(x(525))})),document.querySelectorAll("#fg-gift-items .dropdown").forEach(x=>document[$(237)]($(289),function(t){let e=$,a=x[e(208)](t[e(278)]);a||(x[e(249)][e(284)](e(303)),x[e(502)](e(160))[e(249)][e(284)](e(525))),document[e(283)](e(410))[e(478)]($=>{let x=e;$[x(561)]=!0,$[x(633)].backgroundColor=x(168)})})),document.querySelectorAll("#fg-gift-items .dropdown > .dropdown-menu > li")[$(478)](x=>{let t=$;x[t(237)]("click",function(){let $=t,x=this.getAttribute("id"),e=this[$(173)]($(164)),a=this[$(173)]($(630)),i=this[$(173)]("data-original-price"),r=this.getAttribute($(532)),_=this.parentElement[$(258)].parentElement[$(258)];_[$(502)]($(536))[$(285)]($(455),e);let o=new URL(_.querySelector($(377))[$(434)]);o.searchParams[$(364)]($(610),r),_[$(502)]($(377))[$(434)]=o[$(407)]();let c=this[$(258)][$(258)][$(258)];c[$(502)]($(293))[$(340)]=i,c[$(502)](".gift-price")[$(340)]=a;let n=c?.querySelector($(177));n[$(285)]($(304),x),n[$(561)]=!1,n[$(633)]="";let d=this[$(258)][$(258)][$(502)]($(590));d.classList[$(336)]($(303)),d.innerHTML=this.innerText})}),document[$(283)]("#fg-gift-items .btn-add-to-cart")[$(478)](x=>x[$(237)]($(289),async function(){let x=$,t=this[x(173)](x(304))-0,e=this[x(173)](x(578));try{await o(t,1,e);let i=document[x(502)](x(529));i&&(FGSECOMAPP.isDelayShowAdded=!0,await new Promise($=>setTimeout($,800)),i.classList.remove(a)),window.location[x(434)][x(385)]("/cart")?location[x(452)]():typeof Shopify?.[x(460)]===x(183)&&await Shopify?.[x(460)](0===FGSECOMAPP.fgCallback.length?function(){}:FGSECOMAPP[x(199)][0])}catch(r){console.error(r)}}))},Y=($,x)=>{let t=_0x350916;if($){let e=new Date,a=e[t(515)](),i=new Date($)[t(515)]();if(!x)return a>=i;{let r=new Date(x)[t(515)]();return a>=i&&a<=r}}return!1},X=async $=>{let x=_0x350916;if(FGSECOMAPP.fgSettings?.select_one_gift_price)for(let t of FGSECOMAPP[x(186)])c(t)&&($=$.filter($=>$[x(171)]!==t[x(569)]));if(FGSECOMAPP[x(582)]?.[x(248)])for(let e of FGSECOMAPP.cartItems)$=$[x(549)]($=>$[x(272)]!==e[x(569)]);if(FGSECOMAPP[x(582)]?.compare_gift_price_with_product)for(let a of FGSECOMAPP[x(186)])$=$[x(549)]($=>{let t=x;return $[t(567)]=$.variants[t(549)]($=>{let x=t,e=$[x(323)];return FGSECOMAPP[x(582)]?.[x(307)]===x(329)&&(e=$[x(406)]),e<=a[x(184)]/100}),!b($[t(567)])});$&&$[x(271)]>0&&(FGSECOMAPP[x(604)]?(await new Promise($=>setTimeout($,1500)),FGSECOMAPP[x(604)]=!1,s(),j($)):(s(),j($))),W(),FGSECOMAPP[x(469)](),FGSECOMAPP[x(560)](FGSECOMAPP[x(273)]),Q=[]},V=async $=>{let x=_0x350916;Q=[];let t=window[x(428)][x(434)],a=await e(t,{method:x(238)});await a[x(321)]().then($=>{let t=x,e=new DOMParser,a=e.parseFromString($,t(224)),i=t(185)+h(t(374)),r=t(311)+h(t(229)),_=document.querySelector(i),o=!1;_&&(o=!0,_[t(470)]=a[t(502)](i)?.innerHTML??_[t(470)]);let c=document[t(502)](r);c||(c=document[t(502)]("#shopify-section-header #cart-icon-bubble, .shopify-section.section-header #cart-icon-bubble")),c&&(o=!0,c[t(470)]=a[t(502)](r)?.[t(470)]??a[t(502)](t(245))?.[t(470)]??c[t(470)]),o||console[t(465)]("Can not fetch all body")}),"function"==typeof FGSECOMAPP?.reRenderCartCustom&&await FGSECOMAPP[x(513)](),setTimeout(function(){X($)},800)},K=async()=>{let $=_0x350916;try{await e(SECOMAPP[$(316)],{method:$(238),headers:{"Content-Type":$(416)}}).then(async x=>{let t=$,e=await x[t(493)]();FGSECOMAPP[t(186)]=e?.[t(601)]?.[t(628)]($=>{let x=t;return{...FGSECOMAPP[x(186)]?.[x(548)](x=>x.id===$.id),...$[x(253)],collections:$[x(276)],tags:$[x(546)]}})??[],FGSECOMAPP.SHOPIFY_CART=e?.[t(506)]??{}})[$(291)](async x=>{let t=$;console[t(217)](t(182)+x[t(277)]);let a=await e(t(498),{method:t(238),headers:{Accept:t(458),"Content-Type":t(458)}}),i=await a[t(493)](),r=i.items;FGSECOMAPP[t(432)]=i,FGSECOMAPP.cartItems=r?.[t(628)]($=>{let x=t;return{...FGSECOMAPP[x(186)]?.[x(548)](x=>x.id===$.id),...$}})??[]})}catch(x){console[$(217)]($(306),x[$(277)]);let t=await e($(498),{method:"GET",headers:{Accept:$(458),"Content-Type":$(458)}}),a=(await t[$(493)]())[$(543)];FGSECOMAPP[$(186)]=a?.[$(628)](x=>{let t=$;return{...FGSECOMAPP[t(186)]?.[t(548)]($=>$.id===x.id),...x}})??[]}},Q=[],Z=async $=>{let x=_0x350916;try{$===x(498)?Q[x(500)](x(339)):Q[x(500)]($[0]),await K();let t=await F(FGSECOMAPP[x(186)],FGSECOMAPP[x(273)]);FGSECOMAPP[x(560)](FGSECOMAPP[x(273)]);let a=!1;$[0].startsWith(x(370))&&JSON.stringify($[1].headers??[])[x(385)](x(170))?(console[x(465)](x(637),[...Q]),await V(t),a=!0):$[0][x(583)](x(584))&&JSON.stringify($[1].headers??[]).includes("sca_process_gifts")&&(Q[x(385)]("/cart/add")||1===Q[x(271)])?(console[x(465)](x(196),[...Q]),await V(t),a=!0):(console[x(465)](x(540),[...Q]),await X(t)),a&&(window[x(428)][x(434)][x(385)](x(386))||document[x(502)]("#secomapp_freegifts_version")?.[x(173)](x(497))===x(388))&&(Q=[],location.reload());let i=await e(x(498),{method:x(238),headers:{Accept:"application/json","Content-Type":"application/json"}});return await i[x(493)]()[x(390)]($=>{let t=x;FGSECOMAPP[t(186)]=$[t(543)]?.[t(628)]($=>{let x=t;return{...FGSECOMAPP[x(186)]?.[x(548)](x=>x.id===$.id),...$}})}),FGSECOMAPP[x(186)]}catch(r){console[x(217)](r)}},J=()=>{let $=_0x350916;if(!Shopify?.[$(158)])return;let x=document[$(502)]($(275));if(!x)return;x[$(470)]="";let t=Shopify?.[$(265)]??$(563),e=document[$(387)]("li");e[$(227)]=$(464),e[$(470)]=$(317)+t+$(225),x.appendChild(e),e[$(358)]=setTimeout(()=>$$(e),3e3),document.querySelector($(438))?.[$(237)]($(289),()=>$$(e))},$$=$=>{let x=_0x350916;$[x(249)][x(336)]("hide"),$.timeoutId&&clearTimeout($[x(358)]),setTimeout(()=>$[x(284)](),500)},$x=($,{value:x,innerHTML:t})=>{let e=_0x350916;try{let a=FGSECOMAPP[e(582)]?.[e(463)],i=a===e(486)?$[e(278)]:$.currentTarget??$[e(278)];if(i?.[e(376)](e(188))||(i=document[e(502)](e(490))?.[e(550)]),i[e(542)]=x,i[e(470)]=t,i[e(561)]=!1,i[e(379)]("click",$0),i.removeAttribute(e(188)),a===e(453)){i[e(550)].querySelector("[sca_root_checkout]")[e(289)]();return}"trigger_body"===a&&window[e(379)](e(289),$t,!0),i.click()}catch(r){window[e(428)][e(305)]((Shopify?.[e(292)]?.[e(619)]??"/")+"checkout"),console[e(217)](r.message)}},$0=async $=>{let x=_0x350916;try{$[x(223)](),$[x(260)](),$[x(396)]();let t=FGSECOMAPP[x(582)]?.mode_override_checkout,a="trigger_body"===t?$[x(278)]:$[x(362)]??$.target,{form:i}=a,r="",_="";if(a&&(a[x(561)]=!0,r=a[x(470)],_=a[x(542)],typeof FGSECOMAPP?.scaCustomLoadingCheckout===x(183)?await FGSECOMAPP[x(365)]("start"):(a[x(542)]=x(393),a[x(470)]=x(587))),FGSECOMAPP[x(564)])return!1;FGSECOMAPP.checkIsBlockCheckout=!0;try{await e("/cart",{method:"POST",body:new FormData(i)})}catch(o){console[x(465)](x(360))}if(b(FGSECOMAPP[x(273)])&&b(FGSECOMAPP[x(186)]?.find($=>c($))))return console.log(x(593)),$x($,{value:_,innerHTML:r}),!1;let n=await e("/cart.js",{method:x(238),headers:{Accept:x(458),"Content-Type":x(458)}}),d=(await n.json())[x(543)];await K();let s=FGSECOMAPP[x(186)]?.[x(628)]($=>{let t=x;return{...d?.[t(548)](x=>x.id===$.id),collections:$.collections,tags:$.tags}})??[],l=!1;for(let f of FGSECOMAPP[x(273)])if(f[x(442)]&&f[x(442)][x(271)]){let u=L(s,f),g=Y(f.start_time,f[x(443)]);!g&&u[x(442)][x(271)]>0&&(l=!0),u[x(551)]||(l=!0),u[x(203)]<0&&(l=!0),f[x(571)]&&!P(f,SECOMAPP)&&(l=!0)}if(await F(s,FGSECOMAPP[x(273)]),l)location.reload();else try{FGSECOMAPP.fgSettings[x(599)]&&!b(FGSECOMAPP[x(186)]?.[x(548)]($=>c($)))?await e(SECOMAPP[x(316)]+x(327)+Shopify?.[x(573)],{method:x(238),headers:{"Content-Type":x(416)}})[x(390)](async $=>{let t=x,a=await $[t(493)]();a.cart=(a[t(601)]??[])[t(628)]($=>{let x=t;return $[x(253)][x(276)]=$.collections?.[x(628)]($=>({id:$.id})),$[x(253)][x(546)]=$[x(546)],{id:$[x(253)].id,variant_id:$[x(253)].variant_id,title:$[x(253)].title,handle:$[x(253)][x(591)],price:$[x(253)].price,quantity:$.product[x(167)],product_type:$[x(253)][x(479)],vendor:$[x(253)].vendor,tags:$[x(253)][x(546)],collections:$.product[x(276)]}}),a[t(202)]={arr_offer_added:FGSECOMAPP[t(558)],secomapp:{customer:SECOMAPP?.[t(446)]??{},fg_codes:SECOMAPP?.fg_codes??[],fgSettings:FGSECOMAPP[t(582)]},cookie_fg_code:E(t(313)),shopify_currency:Shopify?.currency},await e(SECOMAPP[t(316)]+"&data_checkout="+LZString[t(381)](a=JSON.stringify(a)),{method:t(238),headers:{"Content-Type":"application/liquid"}})[t(390)](async $=>{let x=t,e=await $[x(493)]();try{FGSECOMAPP[x(564)]=!1,e[x(444)]&&(window[x(428)][x(434)]=e[x(444)][x(287)])}catch(a){console[x(217)](a)}})}):(console[x(465)]("not using draft order"),FGSECOMAPP.checkIsBlockCheckout=!1,$x($,{value:_,innerHTML:r}))}catch(p){FGSECOMAPP[x(564)]=!1,$x(p,{value:_,innerHTML:r})}(a=t===x(486)?$[x(278)]:$.currentTarget??$[x(278)])&&(typeof FGSECOMAPP?.scaCustomLoadingCheckout===x(183)?await FGSECOMAPP[x(365)](x(547)):(a.value=_,a.innerHTML=r),a[x(561)]=!1)}catch(h){typeof FGSECOMAPP?.[x(365)]===x(183)&&await FGSECOMAPP.scaCustomLoadingCheckout(x(547)),console[x(217)](h)}},$t=async $=>{let x=_0x350916;$[x(278)]?.[x(376)](x(188))&&await $0($)},$e=()=>{let $=_0x350916,x=FGSECOMAPP.fgSettings?.[$(463)],t=".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 "+h($(342));document[$(283)](t).forEach(t=>{let e=$,a=t.hasAttribute(e(575)),i=t[e(376)](e(280)),r=t[e(376)](e(188));if(x===e(453)){if(a)return;if(!i&&!r){let _=t[e(247)](!0);_[e(237)](e(289),$0),_.setAttribute(e(188),""),_[e(285)](e(280),""),t[e(633)][e(266)]="none",t[e(633)][e(294)]="hidden",t[e(633)][e(647)]="0",t.setAttribute("sca_root_checkout",""),t[e(550)]?.[e(620)](_)}i&&!r&&(t[e(237)]("click",$0),t[e(285)]("sca_handle_checkout",""))}else"trigger_body"===x?t[e(285)](e(188),""):r||(t.addEventListener(e(289),$0),t.setAttribute(e(188),""));FGSECOMAPP[e(436)]=!0}),"trigger_body"===x&&window[$(237)]($(289),$t,!0)};FGSECOMAPP[_0x350916(469)]=()=>{let $=_0x350916;FGSECOMAPP[$(341)]=0;let x=setInterval(()=>{let t=$;$e(),FGSECOMAPP.scaCountRenderEventCheckout++,(FGSECOMAPP[t(341)]>10||FGSECOMAPP[t(436)])&&(FGSECOMAPP[t(341)]=0,clearInterval(x))},400)};let $a=$=>{let x=_0x350916;try{let t={},e={},a=FGSECOMAPP[x(273)];if(b($)){$=[],b(Shopify?.[x(518)])||$[x(500)]({...Shopify?.[x(518)]});let i={...Shopify?.other_products,...Shopify?.current_collection?.products};Object.values(FGSECOMAPP.productsInPage)?.[x(549)]($=>!b($[x(527)])&&(b($?.[x(346)])||$?.[x(346)]&&!$?.position?.[x(249)]?.contains(x(475))))?.[x(478)]($=>{let t=x;i[$[t(527)].id]={...$[t(527)]}}),$=$[x(400)]([...Object[x(592)](i)])}for(let r in $?.[x(478)]($=>{let t=x,e=FGSECOMAPP[t(259)][$.handle];FGSECOMAPP.productsInPage[$[t(591)]]={...e,info:{...$},product_has_icon:!!b(a)&&void 0}}),a?.[x(478)](a=>{let i=x,r=a.offer_conditions;if(1===r[i(271)]&&"number_of_products"===r[0][i(411)]&&typeof r[0].is_multiply===i(240)){let _,o=r[0][i(250)];o?.forEach(x=>{let t=i;switch(x[t(594)]){case t(299):_=Object.values(x[t(542)]);break;case t(544):let e=Object[t(471)](x.value);e.length>0&&(_=(void 0===_?$:_)?.[t(549)]($=>e[t(385)]($[t(594)]))??[]);break;case"product_vendors":let a=Object[t(471)](x[t(542)]);a[t(271)]>0&&(_=(void 0===_?$:_)?.[t(549)]($=>a[t(385)]($.vendor))??[]);break;case"product_collections":let r=Object[t(471)](x.value);r[t(271)]>0&&(_=(void 0===_?$:_)?.[t(549)]($=>{let x=t,e=$[x(276)]?.map($=>$.id+""),a=e?.[x(549)]($=>r[x(385)]($));return!b(a)})??[])}}),_?.[i(478)]($=>{let x=i,r=$[x(591)];if(t[r]){let _=t[r]?.[x(628)]($=>$[x(272)]),o=a[x(256)]?.[x(549)]($=>!_?.[x(385)]($[x(272)]));t[r]=t[r][x(400)](o)}else t[r]=a.gift_products;let c=$[x(610)]?.[x(628)]($=>$.id)??[];e[r]=c[x(400)](e[r]??[]),e[r]=[...new Set(e[r])]})}}),t){let _=FGSECOMAPP.productsInPage[r];FGSECOMAPP[x(259)][r]={..._,gifts_will_receive:[...t[r]],product_has_icon:!0,variants_has_gift:[...e[r]]}}return Object[x(378)](t)?.[x(271)]?t:{}}catch(o){return console[x(217)](o),null}},$i=$=>{let x=_0x350916,t=FGSECOMAPP.fgAppearanceGiftIcon.product_page??{};if(!t[x(505)]?.[x(454)])return;let e=x(510)+(t[x(505)]?.[x(609)]??x(632))+'\n \n \n
\n
\n '+$?.[x(628)]($=>x(554)+g($[x(272)],$.original_product_handle)+x(576)+$[x(243)]+x(236))[x(343)]("")+x(314)+($?.[x(271)]>=4?x(425):"")+x(581),a=".fg-secomapp-handle-add-to-cart "+h(x(596)),i=document[x(502)](a)??document[x(502)](x(481));if(!i)return;i.parentNode.style.width=x(417),i.parentNode[x(633)][x(430)]=x(451),i.parentNode?.[x(227)]?.includes(x(179))||i[x(550)]?.classList?.[x(336)]("sca-fg-form-thumbnail-product-page");let r=i[x(550)][x(502)]("#sca-gift-thumbnail");if(r)r[x(470)]=e;else{(r=document[x(387)]("div"))[x(285)]("id","sca-gift-thumbnail");let _=new DOMParser()[x(205)](e,x(224));r[x(470)]=_.body[x(470)],i[x(550)].insertBefore(r,i)}i[x(550)][x(234)](r,i);let o=document[x(502)](x(215));if(o)switch(t[x(505)]?.[x(169)]){case"32":o[x(633)][x(467)]="50%";break;case"50":o[x(633)][x(467)]=x(570);break;case x(487):o[x(633)][x(467)]=x(178);break;case x(165):o[x(633)][x(467)]=x(634);break;case"240":o[x(633)].maxWidth=x(417);break;default:o[x(633)][x(467)]=x(570)}if($?.[x(271)]>=4)new Glider(document[x(502)](x(514)),{slidesToShow:3,slidesToScroll:1,draggable:!0,dots:x(319),arrows:{prev:x(526),next:x(641)}});else{o&&(o[x(633)][x(467)]=x(417));let c=document[x(502)](x(514));c&&(c.style[x(266)]=x(608))}},$r=()=>{let $=_0x350916;if(!(FGSECOMAPP[$(161)][$(348)]??{})[$(353)]?.[$(454)])return;let x=$(213)+FGSECOMAPP[$(161)][$(603)]+$(507),t=$(172)+h($(345)),e=document[$(502)](t)??document.querySelector($(366));if(!e)return;e[$(633)][$(459)]=$(230),e[$(633)][$(600)]="fit-content",e[$(227)]?.[$(385)]("sca-fg-form-icon-product-page")||e[$(249)]?.[$(336)]("sca-fg-form-icon-product-page");let a=e[$(502)]($(588));if(a)a[$(470)]=x;else{(a=document.createElement($(530)))[$(285)]("id",$(415));let i=new DOMParser()[$(205)](x,$(224));a[$(470)]=i[$(562)][$(470)],e[$(620)](a)}},$_=()=>{let $=_0x350916,x=[],t=".fg-secomapp-collection-img, .product-card, #product-grid .grid__item, .card-list .card-list__column, .cc-product-list .product-block, .collection-list.grid .grid__item, .collection-grid.grid .grid__item "+h("sca_fg_img_collection_gift_icon_query");return document.querySelectorAll(t)[$(478)](t=>{let e=$,a=t[e(502)](e(242)),i=a?.[e(173)](e(434))?.split("/")??[],r=i?.[e(282)]("products"),_=r>=0?i[r+1]??null:null;if(_=_?.[e(504)]("?")?.[e(309)](),c(_)){t[e(284)]();return}let o=t[e(502)]('a[href*="/collections/sca_fg"]');if(o){t[e(284)]();return}if(b(_))return;let n=decodeURI(_);b(FGSECOMAPP[e(259)][n]?.info)&&x[e(500)](n),FGSECOMAPP[e(259)][n]={...FGSECOMAPP[e(259)][n],position:t}}),x},$o=$=>{let x=_0x350916;Object[x(471)]($)?.[x(478)]($=>{let t=x,e=FGSECOMAPP[t(259)][$]?.[t(459)];if(!e)return;if(!(FGSECOMAPP.fgAppearanceGiftIcon[t(521)]??{})[t(454)])return;let a=t(232)+FGSECOMAPP[t(161)].gift_icon_path+t(472);e[t(633)][t(459)]=t(230),e[t(227)]?.[t(385)](t(509))||e[t(249)]?.add(t(509));let i=e.querySelector(t(210));if(i)i[t(470)]=a;else{(i=document.createElement(t(530))).setAttribute(t(157),"sca-gift-icon-collection-page");let r=new DOMParser()[t(205)](a,t(224));i[t(470)]=r.body[t(470)],e.appendChild(i)}})},$c=async $=>{let x=_0x350916;await e(SECOMAPP[x(316)]+x(535)+LZString.compressToEncodedURIComponent(JSON[x(375)]($)),{method:x(238),headers:{"Content-Type":x(416)}})[x(390)](async $=>{let t=x,e=await $[t(493)](),a=[];e?.[t(449)]?.[t(478)]($=>{let x=t;b($?.products?.id)||a[x(500)]({...$[x(449)],collections:$.collections,variants_quantity:$[x(200)]})});let i=$a(a);$o(i)})[x(291)]($=>{let t=x;console[t(217)]($)})},$n=async $=>{let x=_0x350916,t=[];for(let[e,a]of $[x(378)]())b(FGSECOMAPP[x(259)][a]?.[x(527)])&&t[x(500)](a),20===t[x(271)]&&(await $c([...t]),t=[]),e===$[x(271)]-1&&t[x(271)]>0&&(await $c([...t]),t=[])},$d=()=>{let $=$_(),x=$a();$o(x),$n($).then()},$s=()=>{let $=_0x350916;Shopify?.[$(391)]&&document[$(237)]($(326),function(){let x=$,t=new URL(document.URL),e=parseInt(t[x(349)][x(214)]("variant"));$l(isNaN(e)?void 0:e)})},$l=$=>{let x=_0x350916;if(!location[x(434)][x(385)](x(180)))return;document[x(502)](x(588))?.[x(284)](),document[x(502)](x(222))?.[x(284)]();let t=$a();if(b(t))return;let e=location.pathname[x(504)]("/"),a=e?.[x(282)](x(449)),i=decodeURI(a>=0?e[a+1]??null:null);if(!Object[x(471)](t)?.[x(385)](i))return;let r=t[i],_=FGSECOMAPP[x(259)][i]?.[x(494)]??[];!(Shopify?.[x(391)]&&(!b($)&&!_[x(385)]($)||b($)&&!b(Shopify?.[x(518)]?.[x(235)])&&!_[x(385)](Shopify?.[x(518)]?.[x(235)]?.id)))&&($i(r),$r(r))};FGSECOMAPP[_0x350916(560)]=$=>{let x=_0x350916;try{b($)&&($=[...FGSECOMAPP[x(273)]]);let t=location[x(434)][x(385)](x(386)),e=[];if($?.[x(478)]($=>{let t=x;if($[t(551)]||b($[t(623)])||!b(FGSECOMAPP.maxOfferPriority)&&!$[t(551)]&&$[t(473)]&&$[t(320)]>FGSECOMAPP[t(219)])return;let a=$[t(623)];$[t(252)]?.[t(478)]($=>{let x=t,e=k(FGSECOMAPP.cartItems,$);e=C(e,$[x(330)]);let i=0,r=null,_=0;$[x(411)]===x(206)?(i=y(e),r="{{sca_min_total}}",_=Shopify?.[x(445)]??2):$[x(411)]===x(483)&&(i=w(e),r=x(440),_=0);let o=Math[x(352)]($[x(435)]-i,0)[x(533)](_);a=a.replaceAll(r,o)}),e.push(a)}),b(e)){document.querySelectorAll(x(419))[x(478)]($=>$.innerHTML="");return}let a="",i='
\n '+e?.map($=>x(531)+$+x(211))[x(343)]("")+x(431);FGSECOMAPP[x(643)][x(606)]&&(a=i);let r=x(414),_=document[x(502)](r),o=_?.[x(502)](x(405)),c=document[x(283)](x(522)+h(x(286))),n=document[x(283)](x(419));if(b(n)){(n=document[x(387)](x(530)))[x(285)]("id",x(626)),n[x(249)][x(336)](x(626));let d=new DOMParser()[x(205)](a,x(224));n[x(470)]=d.body[x(470)],b(c)?(d=new DOMParser()[x(205)](a,x(224)),n.innerHTML=d[x(562)][x(470)],_&&o&&t?o[x(403)](n):_&&t&&_[x(403)](n)):c?.[x(478)]($=>{let t=x,e=n.cloneNode(!0);$[t(403)](e)})}else n[x(478)]($=>$[x(470)]=a);try{document.querySelectorAll(x(427))[x(478)]($=>{let x=new Glider($);(($,x)=>{let t=_0x45a5,e=$[t(607)][t(310)],a=null,i=1;function r(){a=setTimeout(()=>{let x=_0x45a5;i>=e&&(i=0),$[x(489)](i++)},3e3)}$[t(204)][t(237)]("glider-animated",function(){window[t(372)](a),r()}),r()})(x,3e3)})}catch(s){console[x(217)](s)}}catch(l){console[x(217)](l)}};let $f=async()=>{let $=_0x350916;try{let x=await fetch($(477)),t=await x[$(493)]();FGSECOMAPP[$(189)]=t?.[$(566)]}catch(e){console.log($(359))}};U(FGSECOMAPP[_0x350916(186)]).then()}}catch($8){console[_0x350916(465)](_0x350916(579),$8)}function _0x5d78(){let $=["gift_settings",'">\n ',"redirected","add_to_cart_btn_title","add","settings","#fg-gift-items .dropdown","/cart/change.js","textContent","scaCountRenderEventCheckout","sca_fg_form_checkbox_button_query","join","by_variants","sca_fg_title_product_gift_icon_query","product_has_icon","Escape","product_page","searchParams","fetch_new_cart","getElementById","max","gift_icon","#fg-gift-items .btn-add-to-cart","fgData","\n
","USD","timeoutId","Failed to get customer location","not type checkout btn","FGSECOMAPP","currentTarget","secomapp_freegifts_version","set","scaCustomLoadingCheckout",".product_name, .product-title, .product__title, .product-single__title, .tt-title, .ProductMeta__Title","\n ","3259728EWlKdo","auto add gift: ","/cart/add","type_customer_locations","clearInterval","open","sca_fg_cart_drawer_query","stringify","hasAttribute",".gift-original-url","entries","removeEventListener","en-US","compressToEncodedURIComponent","reduce","sca-fg-out-stock","manual_input_inventory","includes","/cart","createElement","fg-checkout","object","then","enable_check_variants_has_gift","POST","Loading...","floor","now","stopImmediatePropagation"," \n ","Select your free gift!","sca_offers_added","concat","select_gift_btn","specific_link_address","prepend",'\n \n
\n
\n
\n \n ',"cart-items, .cart-header, .section-header","original_compare_at_price","toString",'',"parse",".btn-add-to-cart.sca-fg-out-stock","unit","stop_offer","\n \n
\n
\n
","#MainContent, #mainContent, #main, .main-content","sca-gift-icon","application/liquid","100%","&width=480&height=480",".sca-promotion-message-layout","original_product_handle",'"\n data-variant="',"customer_locations","Select variant",'"\n data-price="','\n
\xab \n
\xbb \n ',"type_customer_tags",".sca-promotion-glider","location","customGiftImgSize","height","\n
","SHOPIFY_CART","1935006qSltzw","href","min_amount","hasDoneProcessCheckout",'\n ',"#close-fg-toast","
\n \n ","{{sca_min_quantity}}",'">\n ',"giftsAdded","end_time","sca_link_checkout","sca_amount_fixed","customer",'\n \n \n