'+g($.original_product_shopify_id,$[e(395)])+e(229)+("by_variants"===FGSECOMAPP.fgAppearanceGiftSlider[e(516)]&&FGSECOMAPP[e(565)].show_variant_title?'
\n '+(1===$[e(648)][e(576)]?e(605)+(j(t.variant_title)?e(358):"")+'">\n '+t.variant_title+e(556):e(359)+(FGSECOMAPP[e(565)][e(552)]??e(560))+e(528))+e(622):"")+e(403)+u(t)+e(327)+f(t)+e(614)+(FGSECOMAPP[e(565)][e(516)]!==e(200)?'
\n
\n '+(1===$[e(648)].length?e(605)+(j(t.variant_title)?"sca-d-none":"")+'">'+t[e(487)]+e(528):e(359)+(FGSECOMAPP[e(565)][e(552)]??e(560))+e(528))+e(199)+l($.variants,$[e(589)])+"\n \n
":"")+e(436)+$[e(520)]+e(496)+(1===$[e(648)][e(576)]?t[e(423)]:"")+e(448)+(FGSECOMAPP.fgAppearanceGiftSlider.add_to_cart_btn_title??e(629))+e(550)})[x(407)](" \n"),new Glider(document.querySelector("#fg-gift-items"),{slidesToShow:1,slidesToScroll:1,draggable:!1,dots:FGSECOMAPP[x(565)][x(346)]?x(185):null,arrows:{prev:x(217),next:x(314)},responsive:[{breakpoint:1024,settings:{slidesToShow:FGSECOMAPP.fgAppearanceGiftSlider[x(443)]??4,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:2,slidesToScroll:1}}]}))},R=async()=>{let $=_0x5c72de;try{let x=window[$(238)]?.[$(205)]??[];for(let e in await $l(),Shopify?.[$(283)])b(Shopify?.products[e]?.id)&&delete Shopify?.[$(283)][e];let t=[];return x[$(521)](x=>{let e=$,a=JSON.parse(JSON[e(604)](x));if(x[e(289)][e(527)]){let i=x[e(475)][0][e(530)],r=i[0][e(193)],c=[...a[e(529)]],_=[...a[e(245)]];if(x.gift_should_the_same.type===e(321))for(let n in r){let o=r[n]?.variant??[];for(let d of o){a[e(475)][0][e(530)]=[{type:i[0][e(633)],value:{[n]:{...r[n],variant:[{...d}]}}}],a[e(529)]=c[e(300)]($=>$[e(350)]+""===n&&d.id===$[e(476)]),a[e(245)]=_.filter($=>$.original_product_shopify_id+""===n),a.gift_products[0][e(648)]=[...a[e(529)]];let s=a[e(468)].number_of_gift_can_receive,l=a[e(468)][e(284)];a[e(468)][e(284)]&&(s=a[e(529)][e(576)]),1===a.gift_items.length&&0===a[e(529)][0].price&&(l=!0),t[e(255)](JSON[e(258)](JSON[e(604)]({...a,gift_settings:{...a.gift_settings,number_of_gift_can_receive:s,auto_add_all_gifts:l},id:a.id+"_"+r[n][e(188)]+"_"+d.id})))}}else if(x[e(289)][e(633)]===e(322))for(let f in r){a[e(475)][0][e(530)]=[{type:i[0][e(633)],value:{[f]:r[f]}}],a[e(529)]=c.filter($=>$[e(350)]+""===f),a[e(245)]=_[e(300)]($=>$[e(350)]+""===f);let u=a.gift_settings[e(509)],p=a[e(468)][e(284)];a.gift_settings[e(284)]&&(u=a[e(529)][e(576)]),1===a[e(529)].length&&0===a.gift_items[0].price&&(p=!0),t[e(255)](JSON[e(258)](JSON[e(604)]({...a,gift_settings:{...a[e(468)],number_of_gift_can_receive:u,auto_add_all_gifts:p},id:a.id+"_"+r[f][e(188)]})))}}}),(x=(x=(x=x?.[$(300)](x=>!x?.[$(289)]?.[$(527)])?.[$(634)](t))?.[$(263)](x=>{let e=$;return{...x,id:x.id[e(240)]()}}))?.filter(x=>{let e=$;if(!W(x[e(370)],x[e(316)]))return!1;let t=!b(x[e(537)]?.[e(462)]||x[e(537)]?.[e(196)]);if(x[e(537)]&&(!I(x,SECOMAPP)||t&&b(SECOMAPP[e(305)].email)))return!1;let a={...Shopify?.[e(283)]},i=!1;if(FGSECOMAPP.fgSettings.sync_quantity===e(375)){x[e(529)]=x?.[e(529)][e(300)]($=>{let x=e,t=a[$[x(350)]]?.variants_quantity??{};return t[$[x(476)]]>0})??[];let r=x[e(529)]?.[e(263)]($=>$[e(423)]);x[e(245)]=x?.[e(245)]?.[e(300)]($=>{let x=e;return $[x(648)]=$?.variants?.[x(300)]($=>{let e=x;return r?.[e(661)]($[e(423)])}),$?.[x(648)]?.[x(576)]>0}),i=!0}else if(FGSECOMAPP[e(606)][e(356)]){x[e(529)]=x?.[e(529)][e(300)]($=>{let x=e,t=a[$.product_shopify_id]?.variants_quantity??{};return t[$[x(423)]]>0});let c=x[e(529)]?.[e(263)]($=>$[e(423)]);x[e(245)]=x?.[e(245)]?.[e(300)]($=>{let x=e;return $[x(648)]=$?.variants?.[x(300)]($=>{let e=x;return c?.[e(661)]($[e(423)])}),$?.variants?.[x(576)]>0}),i=!0}return i&&x[e(468)]?.[e(284)]&&(x.gift_settings.number_of_gift_can_receive=x.gift_items?.length),!i||x[e(529)]&&x[e(529)].length>0}))?.map(x=>{let e=$,t=x[e(529)].map($=>$[e(350)]);return x[e(245)]=x[e(245)]?.filter($=>{let x=e;return t[x(661)]($[x(350)])}),x[e(475)]?.[e(521)]($=>{let x=e;$.unit===x(304)&&($[x(416)]=v($[x(416)]),$[x(228)]=b($[x(228)])?$[x(228)]:v($[x(228)]))}),x})}catch(a){return console[$(615)](a),[]}},D=$=>{let x=_0x5c72de;for(let e of FGSECOMAPP.cartItems){let t=e[x(271)];if($[0][x(350)]===t)return!1}return!0},B=$=>{let x=_0x5c72de;for(let e of FGSECOMAPP[x(277)]){let t=$[0].variants[0].original_price;if(FGSECOMAPP[x(606)].compare_gift_price_with_product===x(179)&&(t=$[0].variants[0][x(252)]),t>e[x(190)]/100)return!1}return!0},N=async()=>{let $=_0x5c72de;try{let x=[];window[$(238)]?.[$(205)]?.[$(521)](e=>{let t=$,a=[];e[t(245)][t(521)]($=>{let x=t;a[x(255)]($[x(420)],$.original_product_handle)}),x=[...x,...a]}),await $n(x=(x=[...new Set(x)])[$(300)](x=>b(FGSECOMAPP[$(376)][x]))),Object[$(472)](FGSECOMAPP.productsInPage)?.[$(521)](x=>{let e=$,{info:t}=x;b(t)||b(t?.id)||(Shopify[e(283)][t.id]={...t})})}catch(e){console.error(e)}},U=async $=>{let x=_0x5c72de;m(),FGSECOMAPP[x(437)](),FGSECOMAPP?.[x(606)]?.[x(457)]===x(375)||FGSECOMAPP?.[x(606)]?.manual_input_inventory?await N():N()[x(454)](),FGSECOMAPP[x(205)]=await R(),FGSECOMAPP[x(465)](),a();try{b($)?(FGSECOMAPP.arrOfferAdded=[],localStorage[x(253)](x(269),LZString[x(497)](JSON.stringify(FGSECOMAPP[x(332)])))):FGSECOMAPP[x(332)]=JSON.parse(LZString[x(367)](localStorage[x(303)]("sca_offers_added")))}catch(e){FGSECOMAPP.arrOfferAdded=[],localStorage[x(253)](x(269),LZString.compressToBase64(JSON[x(604)](FGSECOMAPP[x(332)])))}let t={};FGSECOMAPP[x(205)]?.[x(521)]($=>{let e=x;t[$.id]=$?.[e(529)]?.[e(263)]($=>$[e(423)])});let i=Object.keys(t);FGSECOMAPP[x(332)]=FGSECOMAPP[x(332)]?.filter($=>i?.[x(661)]($.belongs_to_offer?.toString())&&t[$[x(520)]?.toString()][x(661)]($[x(577)]));let r={};FGSECOMAPP[x(332)]?.[x(521)]($=>{let e=x,t=r[$[e(520)]+"_"+$[e(577)]]??{};r[$.belongs_to_offer+"_"+$[e(577)]]={...$,belongs_to_offer:$[e(520)]?.[e(240)](),quantity:(t?.[e(325)]??0)+($?.quantity??0)}}),FGSECOMAPP.arrOfferAdded=Object.values(r),localStorage[x(253)](x(269),LZString[x(497)](JSON.stringify(FGSECOMAPP[x(332)])));let c=await F($,FGSECOMAPP[x(205)]);await X(c),$d(),$s(),$o()},z=function(){let $=_0x5c72de,x=document[$(410)]($(333)),t=document[$(410)]($(337)),a=$(569),i=document.querySelectorAll($(301)),r=i[$(576)];for(let c=0;c
{let t=$;x[t(191)]===document[t(600)](t(652))&&(document[t(600)]("#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg")[t(486)][t(391)](a),e())}),document[$(653)]($(315),x=>{let t=$;x.key===t(625)&&document.querySelector(t(652))&&(document[t(600)]("#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg").classList[t(391)](a),e())}),document[$(410)]("#fg-gift-items .dropdown")[$(521)](x=>x[$(653)]("click",function(){let x=$;this[x(249)]("tabindex",1),this.focus(),this[x(486)].toggle(x(281)),this[x(600)](".dropdown-menu")[x(486)].toggle(x(474))})),document.querySelectorAll($(567))[$(521)](x=>document[$(653)]("click",function(e){let t=$,a=x.contains(e[t(191)]);a||(x.classList[t(391)]("active"),x[t(600)](".dropdown-menu")[t(486)].remove(t(474))),document[t(410)](".btn-add-to-cart.sca-fg-out-stock").forEach($=>{let x=t;$[x(373)]=!0,$[x(654)][x(317)]=x(273)})})),document[$(410)]($(192))[$(521)](x=>{let e=$;x.addEventListener(e(285),function(){let $=e,x=this[$(628)]("id"),t=this[$(628)]("data-img"),a=this[$(628)]($(641)),i=this[$(628)]($(183)),r=this[$(628)]($(204)),c=this[$(525)][$(525)].parentElement.parentElement;c[$(600)]($(354))[$(249)]($(275),t);let _=new URL(c.querySelector($(363))[$(442)]);_.searchParams[$(455)]($(321),r),c[$(600)](".gift-original-url")[$(442)]=_[$(240)]();let n=this.parentElement[$(525)].parentElement;n.querySelector($(636)).textContent=i,n.querySelector(".gift-price")[$(257)]=a;let o=n?.[$(600)]($(427));o[$(249)]($(617),x),o[$(373)]=!1,o[$(654)]="";let d=this[$(525)][$(525)][$(600)](".selected-variant");d[$(486)][$(488)]($(281)),d[$(186)]=this[$(659)]})}),document[$(410)]($(301)).forEach(x=>x.addEventListener($(285),async function(){let x=$,e=this[x(628)](x(617))-0,t=this[x(628)](x(215));try{await _(e,1,t);let i=document[x(600)](x(652));i&&(FGSECOMAPP[x(575)]=!0,await new Promise($=>setTimeout($,800)),i[x(486)][x(391)](a)),window.location[x(442)][x(661)]("/cart")?location[x(341)]():"function"==typeof Shopify?.[x(360)]&&await Shopify?.[x(360)](0===FGSECOMAPP[x(452)][x(576)]?function(){}:FGSECOMAPP[x(452)][0])}catch(r){console[x(615)](r)}}))},W=($,x)=>{let e=_0x5c72de;if($){let t=new Date,a=t[e(206)](),i=new Date($)[e(206)]();if(!x)return a>=i;{let r=new Date(x).getTime();return a>=i&&a<=r}}return!1},X=async $=>{let x=_0x5c72de;if(FGSECOMAPP[x(606)]?.[x(276)])for(let e of FGSECOMAPP[x(277)])n(e)&&($=$.filter($=>$.product_shopify_id!==e.product_id));if(FGSECOMAPP[x(606)]?.[x(408)])for(let t of FGSECOMAPP[x(277)])$=$[x(300)]($=>$[x(350)]!==t[x(271)]);if(FGSECOMAPP[x(606)]?.[x(587)])for(let a of FGSECOMAPP.cartItems)$=$[x(300)]($=>{let e=x;return $[e(648)]=$[e(648)][e(300)]($=>{let x=e,t=$[x(207)];return FGSECOMAPP[x(606)]?.compare_gift_price_with_product===x(179)&&(t=$[x(252)]),t<=a[x(190)]/100}),!b($[e(648)])});$&&$[x(576)]>0&&(FGSECOMAPP[x(575)]?(await new Promise($=>setTimeout($,1500)),FGSECOMAPP[x(575)]=!1,s(),H($)):(s(),H($))),z(),FGSECOMAPP[x(437)](),FGSECOMAPP.renderPromotionMessage(FGSECOMAPP[x(205)]),V=[]},Y=async $=>{let x=_0x5c72de;V=[];let e=window.location[x(442)],a=await t(e,{method:"GET"});await a[x(637)]()[x(454)]($=>{let e=x,t=new DOMParser,a=t[e(645)]($,e(598)),i=e(377)+h(e(482)),r=e(503)+h(e(393)),c=document[e(600)](i),_=!1;c&&(_=!0,c[e(186)]=a[e(600)](i)?.innerHTML??c[e(186)]);let n=document.querySelector(r);n||(n=document[e(600)](e(507))),n&&(_=!0,n[e(186)]=a[e(600)](r)?.[e(186)]??a.querySelector(e(626))?.[e(186)]??n[e(186)]),_||console[e(619)](e(432))}),typeof FGSECOMAPP?.[x(435)]===x(226)&&await FGSECOMAPP[x(435)](),setTimeout(function(){X($)},800)},Z=async()=>{let $=_0x5c72de;try{await t(SECOMAPP.freegiftProxy,{method:$(506),headers:{"Content-Type":$(450)}}).then(async x=>{let e=$,t=await x[e(498)]();FGSECOMAPP[e(277)]=t?.[e(344)]?.[e(263)]($=>{let x=e;return{...FGSECOMAPP[x(277)]?.[x(485)](x=>x.id===$.id),...$[x(322)],collections:$.collections,tags:$[x(586)]}})??[],FGSECOMAPP[e(583)]=t?.[e(612)]??{}})[$(399)](async x=>{let e=$;console[e(615)]("failed to parse cart section "+x[e(446)]);let a=await t("/cart.js",{method:e(506),headers:{Accept:e(210),"Content-Type":e(210)}}),i=await a[e(498)](),r=i[e(216)];FGSECOMAPP.SHOPIFY_CART=i,FGSECOMAPP[e(277)]=r?.[e(263)]($=>{let x=e;return{...FGSECOMAPP[x(277)]?.[x(485)](x=>x.id===$.id),...$}})??[]})}catch(x){console[$(615)]($(566),x[$(446)]);let e=await t($(632),{method:"GET",headers:{Accept:$(210),"Content-Type":"application/json"}}),a=(await e.json()).items;FGSECOMAPP[$(277)]=a?.[$(263)](x=>{let e=$;return{...FGSECOMAPP.cartItems?.[e(485)]($=>$.id===x.id),...x}})??[]}},V=[],K=async $=>{let x=_0x5c72de;try{$===x(632)?V.push("/cart/change.js"):V[x(255)]($[0]),await Z();let e=await F(FGSECOMAPP[x(277)],FGSECOMAPP[x(205)]);FGSECOMAPP[x(460)](FGSECOMAPP.offers);let a=!1;$[0][x(417)](x(291))&&JSON.stringify($[1][x(608)]??[])[x(661)](x(180))?(console[x(619)](x(329),[...V]),await Y(e),a=!0):$[0].startsWith(x(421))&&JSON[x(604)]($[1][x(608)]??[])[x(661)](x(331))&&(V[x(661)]("/cart/add")||1===V[x(576)])?(console[x(619)](x(381),[...V]),await Y(e),a=!0):(console.log(x(429),[...V]),await X(e)),a&&(window[x(504)][x(442)][x(661)](x(624))||document[x(600)](x(424))?.[x(628)](x(540))===x(357))&&(V=[],location[x(341)]());let i=await t(x(632),{method:x(506),headers:{Accept:x(210),"Content-Type":x(210)}});return await i.json()[x(454)]($=>{let e=x;FGSECOMAPP.cartItems=$[e(216)]?.map($=>{let x=e;return{...FGSECOMAPP[x(277)]?.[x(485)](x=>x.id===$.id),...$}})}),FGSECOMAPP[x(277)]}catch(r){console[x(615)](r)}},Q=()=>{let $=_0x5c72de;if(!Shopify?.enable_toast_added)return;let x=document[$(600)]($(311));if(!x)return;x[$(186)]="";let e=Shopify?.[$(340)]??"Add gift to cart successfully!",t=document[$(551)]("li");t[$(348)]=$(461),t[$(186)]=$(489)+e+$(390),x[$(547)](t),t[$(428)]=setTimeout(()=>J(t),3e3),document.querySelector($(384))?.[$(653)]("click",()=>J(t))},J=$=>{let x=_0x5c72de;$.classList.add("hide"),$.timeoutId&&clearTimeout($[x(428)]),setTimeout(()=>$[x(391)](),500)},$$=($,{value:x,innerHTML:e})=>{let t=_0x5c72de;try{let a=FGSECOMAPP[t(606)]?.mode_override_checkout,i=a===t(647)?$[t(191)]:$[t(262)]??$[t(191)];if(i?.hasAttribute("sca_handle_checkout")||(i=document[t(600)](t(398))?.parentNode),i[t(193)]=x,i[t(186)]=e,i[t(373)]=!1,i[t(549)](t(285),$x),i[t(214)](t(243)),"clone_checkout"===a){i[t(466)].querySelector(t(449))[t(285)]();return}a===t(647)&&window.removeEventListener(t(285),$0,!0),i[t(285)]()}catch(r){window.location.replace((Shopify?.routes?.root??"/")+"checkout"),console[t(615)](r[t(446)])}},$x=async $=>{let x=_0x5c72de;try{$[x(419)](),$[x(220)](),$[x(335)]();let e=FGSECOMAPP[x(606)]?.[x(208)],a=e===x(647)?$[x(191)]:$[x(262)]??$[x(191)],{form:i}=a,r="",c="";if(a&&(a.disabled=!0,r=a[x(186)],c=a[x(193)],typeof FGSECOMAPP?.[x(508)]===x(226)?await FGSECOMAPP[x(508)](x(660)):(a[x(193)]=x(306),a[x(186)]='\n Loading... \n
')),FGSECOMAPP[x(563)])return!1;FGSECOMAPP[x(563)]=!0;try{await t(x(624),{method:"POST",body:new FormData(i)})}catch(_){console[x(619)]("not type checkout btn")}if(b(FGSECOMAPP[x(205)])&&b(FGSECOMAPP[x(277)]?.[x(485)]($=>n($))))return console[x(619)](x(438)),$$($,{value:c,innerHTML:r}),!1;let o=await t(x(632),{method:x(506),headers:{Accept:x(210),"Content-Type":"application/json"}}),d=(await o[x(498)]()).items;await Z();let s=FGSECOMAPP[x(277)]?.[x(263)]($=>{let e=x;return{...d?.[e(485)](x=>x.id===$.id),collections:$[e(590)],tags:$[e(586)]}})??[],l=!1;for(let f of FGSECOMAPP[x(205)])if(f[x(524)]&&f[x(524)][x(576)]){let u=E(s,f),p=W(f[x(370)],f.end_time);!p&&u.giftsAdded[x(576)]>0&&(l=!0),u[x(414)]||(l=!0),u[x(534)]<0&&(l=!0),f.sub_conditions&&!I(f,SECOMAPP)&&(l=!0)}if(await F(s,FGSECOMAPP[x(205)]),l)location[x(341)]();else try{FGSECOMAPP[x(606)][x(635)]&&!b(FGSECOMAPP[x(277)]?.[x(485)]($=>n($)))?await t(SECOMAPP.freegiftProxy+x(655)+Shopify?.[x(568)],{method:x(506),headers:{"Content-Type":x(450)}})[x(454)](async $=>{let e=x,a=await $.json();a[e(344)]=(a[e(344)]??[])[e(263)]($=>{let x=e;return $[x(322)][x(590)]=$[x(590)]?.map($=>({id:$.id})),$.product[x(586)]=$.tags,{id:$[x(322)].id,variant_id:$[x(322)][x(581)],title:$[x(322)].title,handle:$[x(322)][x(188)],price:$[x(322)].price,quantity:$[x(322)][x(325)],product_type:$[x(322)][x(599)],vendor:$[x(322)].vendor,tags:$[x(322)].tags,collections:$[x(322)][x(590)]}}),a[e(415)]={arr_offer_added:FGSECOMAPP.arrOfferAdded,secomapp:{customer:SECOMAPP?.customer??{},fg_codes:SECOMAPP?.[e(225)]??[],fgSettings:FGSECOMAPP[e(606)]},cookie_fg_code:L(e(574)),shopify_currency:Shopify?.[e(412)]},await t(SECOMAPP[e(250)]+"&data_checkout="+LZString[e(553)](a=JSON[e(604)](a)),{method:"GET",headers:{"Content-Type":e(450)}})[e(454)](async $=>{let x=e,t=await $[x(498)]();try{FGSECOMAPP[x(563)]=!1,t[x(441)]&&(window[x(504)].href=t.sca_link_checkout.invoice_url)}catch(a){console[x(615)](a)}})}):(console[x(619)](x(440)),FGSECOMAPP.checkIsBlockCheckout=!1,$$($,{value:c,innerHTML:r}))}catch(g){FGSECOMAPP[x(563)]=!1,$$(g,{value:c,innerHTML:r})}(a=e===x(647)?$.target:$[x(262)]??$.target)&&(typeof FGSECOMAPP?.scaCustomLoadingCheckout===x(226)?await FGSECOMAPP[x(508)](x(490)):(a[x(193)]=c,a.innerHTML=r),a[x(373)]=!1)}catch(h){"function"==typeof FGSECOMAPP?.scaCustomLoadingCheckout&&await FGSECOMAPP[x(508)](x(490)),console[x(615)](h)}},$0=async $=>{let x=_0x5c72de;$[x(191)]?.[x(267)]("sca_handle_checkout")&&await $x($)},$e=()=>{let $=_0x5c72de,x=FGSECOMAPP[$(606)]?.[$(208)],e=$(270)+h("sca_fg_form_checkbox_button_query");document[$(410)](e).forEach(e=>{let t=$,a=e[t(267)](t(222)),i=e.hasAttribute(t(656)),r=e[t(267)](t(243));if(x===t(282)){if(a)return;if(!i&&!r){let c=e.cloneNode(!0);c[t(653)](t(285),$x),c[t(249)](t(243),""),c[t(249)](t(656),""),e[t(654)].display="none",e[t(654)].visibility=t(219),e[t(654)][t(279)]="0",e[t(249)]("sca_root_checkout",""),e[t(466)]?.[t(547)](c)}i&&!r&&(e[t(653)](t(285),$x),e.setAttribute(t(243),""))}else"trigger_body"===x?e[t(249)](t(243),""):r||(e[t(653)](t(285),$x),e[t(249)](t(243),""));FGSECOMAPP[t(578)]=!0}),"trigger_body"===x&&window[$(653)]($(285),$0,!0)};FGSECOMAPP[_0x5c72de(437)]=()=>{FGSECOMAPP.scaCountRenderEventCheckout=0;let $=setInterval(()=>{let x=_0x451c;$e(),FGSECOMAPP[x(609)]++,(FGSECOMAPP[x(609)]>10||FGSECOMAPP[x(578)])&&(FGSECOMAPP[x(609)]=0,clearInterval($))},400)};let $t=$=>{let x=_0x5c72de;try{let e={},t={},a=FGSECOMAPP[x(205)];if(b($)){$=[],b(Shopify?.[x(254)])||$[x(255)]({...Shopify?.[x(254)]});let i={...Shopify?.[x(607)],...Shopify?.[x(544)]?.[x(283)]};Object[x(472)](FGSECOMAPP[x(376)])?.[x(300)]($=>!b($[x(523)])&&(b($?.[x(278)])||$?.product_has_icon&&!$?.[x(571)]?.classList?.[x(178)](x(288))))?.[x(521)]($=>{i[$.info.id]={...$.info}}),$=$.concat([...Object[x(472)](i)])}for(let r in $?.forEach($=>{let e=x,t=FGSECOMAPP.productsInPage[$.handle];FGSECOMAPP.productsInPage[$[e(188)]]={...t,info:{...$},product_has_icon:!!b(a)&&void 0}}),a?.[x(521)](a=>{let i=x,r=a.offer_conditions;if(1===r[i(576)]&&"number_of_products"===r[0].unit&&"boolean"==typeof r[0][i(202)]){let c,_=r[0][i(530)];_?.[i(521)](x=>{let e=i;switch(x.type){case e(431):c=Object.values(x[e(193)]);break;case e(603):let t=Object.keys(x.value);t.length>0&&(c=(void 0===c?$:c)?.[e(300)]($=>t[e(661)]($.type))??[]);break;case e(195):let a=Object[e(469)](x[e(193)]);a[e(576)]>0&&(c=(void 0===c?$:c)?.[e(300)]($=>a[e(661)]($.vendor))??[]);break;case e(584):let r=Object[e(469)](x[e(193)]);r.length>0&&(c=(void 0===c?$:c)?.filter($=>{let x=e,t=$[x(590)]?.map($=>$.id+""),a=t?.[x(300)]($=>r[x(661)]($));return!b(a)})??[])}}),c?.[i(521)]($=>{let x=i,r=$[x(188)];if(e[r]){let c=e[r]?.[x(263)]($=>$[x(350)]),_=a[x(245)]?.[x(300)]($=>!c?.includes($[x(350)]));e[r]=e[r][x(634)](_)}else e[r]=a[x(245)];let n=$[x(321)]?.[x(263)]($=>$.id)??[];t[r]=n[x(634)](t[r]??[]),t[r]=[...new Set(t[r])]})}}),e){let c=FGSECOMAPP[x(376)][r];FGSECOMAPP[x(376)][r]={...c,gifts_will_receive:[...e[r]],product_has_icon:!0,variants_has_gift:[...t[r]]}}return Object.entries(e)?.[x(576)]?e:{}}catch(_){return console[x(615)](_),null}},$a=$=>{let x=_0x5c72de,e=FGSECOMAPP[x(223)][x(613)]??{};if(!e[x(198)]?.status)return;let t=x(389)+(e[x(198)]?.[x(395)]??x(251))+' \n \n \n
\n \n ',"70%","body","charAt","join","not_show_gift_if_already_on_cart","50%","querySelectorAll","indexOf","currency","customer_locations","isReachConditions","others","min_amount","startsWith","fetch_new_cart","preventDefault","clone_product_handle","/cart/update","created_at","variant_shopify_id","#secomapp_freegifts_version","totarrCustomerOrderal_spend_on_order_history","#sca-gift-icon",".btn-add-to-cart","timeoutId","this is others",".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 ","variants_ids","Can not fetch all body","enable","number_of_order","reRenderCartCustom",'\n \n ',"[sca_root_checkout]","application/liquid","undefined","fgCallback","/cart/change","then","set",'\n
\n
\n
\n\n
\n
\n ❮ \n
\n
\n ❯ \n
\n
\n
\n ',"sync_quantity","general","string","renderPromotionMessage","sca-fg-toast sca-fg-success","customer_order_history",'
',"sca_fg_btn_gift_thumbnail_query","initializeForXHR","parentNode",'" alt="">\n \n
',"gift_settings","keys","promotion_message","width","values","data-version","d-block","offer_conditions","original_variant_shopify_id","fit-content","trim","and","insertBefore","POST","sca_fg_cart_drawer_query","scrollItem","en-US","find","classList","variant_title","add",'