window.fgData={"offers":[{"id":7918,"shop_id":3525,"offer_name":"Regalo AydeMi","offer_description":null,"promotion_message":"Tienes un regalo Esperando!!!","start_time":"2023-07-12T19:32:36.000000Z","end_time":"2023-07-24T04:30:00.000000Z","condition_relationship":null,"gift_settings":{"auto_add_all_gifts":false,"discount_percentage":100,"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,"gift_products":[{"title":"\u00bb Lanyard destapador Aydemi (100% off)","original_product_handle":"lanyard-aydemi","clone_product_handle":"lanyard-aydemi-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0700\/9019\/5234\/products\/Lanyard.png?v=1679073967","product_shopify_id":8418069643554,"original_product_shopify_id":8171153228066,"variants":[{"id":49224,"gift_product_id":20133,"discount_percentage":100,"original_price":8000,"original_compare_at_price":0,"original_product_shopify_id":8171153228066,"original_variant_shopify_id":44692780548386,"price":0,"product_shopify_id":8418069643554,"variant_shopify_id":45748494598434,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0700\/9019\/5234\/products\/Lanyard.png?v=1679073967","pivot":{"offer_id":7918,"gift_item_id":49224},"gift_product":{"id":20133,"shop_id":3525,"title":"\u00bb Lanyard destapador Aydemi (100% off)","original_product_handle":"lanyard-aydemi","clone_product_handle":"lanyard-aydemi-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0700\/9019\/5234\/products\/Lanyard.png?v=1679073967","product_shopify_id":8418069643554,"original_product_shopify_id":8171153228066,"created_at":"2023-07-24T03:02:17.000000Z","updated_at":"2023-07-24T03:02:29.000000Z"}}]}],"offer_conditions":[{"id":8216,"offer_id":7918,"is_multiply":null,"min_amount":"0.00","max_amount":null,"product_narrow":[],"unit":"money"}],"gift_items":[{"id":49224,"gift_product_id":20133,"discount_percentage":100,"original_price":8000,"original_compare_at_price":0,"original_product_shopify_id":8171153228066,"original_variant_shopify_id":44692780548386,"price":0,"product_shopify_id":8418069643554,"variant_shopify_id":45748494598434,"variant_title":"Default Title","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0700\/9019\/5234\/products\/Lanyard.png?v=1679073967","pivot":{"offer_id":7918,"gift_item_id":49224},"gift_product":{"id":20133,"shop_id":3525,"title":"\u00bb Lanyard destapador Aydemi (100% off)","original_product_handle":"lanyard-aydemi","clone_product_handle":"lanyard-aydemi-sca_clone_freegift","thumbnail":"https:\/\/cdn.shopify.com\/s\/files\/1\/0700\/9019\/5234\/products\/Lanyard.png?v=1679073967","product_shopify_id":8418069643554,"original_product_shopify_id":8171153228066,"created_at":"2023-07-24T03:02:17.000000Z","updated_at":"2023-07-24T03:02:29.000000Z"}}]}],"settings":{"auto_add_gift":false,"compare_gift_price_with_product":false,"cal_gift_discount":"current_price","select_one_gift_price":true,"not_show_gift_if_already_on_cart":false,"sync_quantity":false,"manual_input_inventory":false,"using_draft_order":false,"delete_gift_after_turn_off_offer":true,"gift_format":"same_as_original_products","admin_api_access_token":null,"barcode":"blank","type_seo":"number_integer","mode_override_checkout":"default"},"appearance":{"gift_slider":{"general":{"gift_popup_title":"Selecciona tu Regalo","add_to_cart_btn_title":"Agregar al Carrito","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":3},"color":{"gift_slider_title_color":"#F14A88","product_title_color":"#F14A88","original_price_color":"#121212","discounted_price_color":"#F14A88","add_to_cart_color":"#FFFFFF","add_to_cart_btn_color":"#F14A88"},"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 _0x5c72de=_0x451c;function _0x451c($,x){let e=_0x53ae();return(_0x451c=function($,x){return e[$-=177]})($,x)}!function($,x){let e=_0x451c,t=$();for(;;)try{let a=parseInt(e(651))/1*(-parseInt(e(212))/2)+parseInt(e(514))/3*(-parseInt(e(366))/4)+parseInt(e(591))/5+parseInt(e(623))/6+-parseInt(e(611))/7+-parseInt(e(394))/8*(parseInt(e(539))/9)+parseInt(e(339))/10*(-parseInt(e(233))/11);if(205068===a)break;t.push(t.shift())}catch(i){t.push(t.shift())}}(_0x53ae,205068);try{let $=document[_0x5c72de(548)](_0x5c72de(237))?.[_0x5c72de(628)](_0x5c72de(473));if($===_0x5c72de(596)){window.fgData?.[_0x5c72de(334)]?.[_0x5c72de(538)]?.gift_icon_path&&fgGiftIcon&&(window[_0x5c72de(238)][_0x5c72de(334)][_0x5c72de(538)][_0x5c72de(559)]=fgGiftIcon),window[_0x5c72de(500)]={},FGSECOMAPP.maxOfferPriority=null,FGSECOMAPP[_0x5c72de(277)]=Object.values(Shopify?.[_0x5c72de(277)]??{}),FGSECOMAPP[_0x5c72de(205)]=[],FGSECOMAPP[_0x5c72de(606)]=window[_0x5c72de(238)]?.[_0x5c72de(371)]??{},FGSECOMAPP[_0x5c72de(644)]=window[_0x5c72de(238)]?.[_0x5c72de(334)]??{},FGSECOMAPP.fgAppearanceGiftSlider=FGSECOMAPP[_0x5c72de(644)]?.[_0x5c72de(380)]?.[_0x5c72de(458)],FGSECOMAPP[_0x5c72de(223)]=FGSECOMAPP[_0x5c72de(644)]?.[_0x5c72de(538)],FGSECOMAPP.fgAppearancePromotionMessage=FGSECOMAPP[_0x5c72de(644)]?.[_0x5c72de(470)],FGSECOMAPP[_0x5c72de(452)]=[],FGSECOMAPP[_0x5c72de(518)]=!1,FGSECOMAPP.arrOfferAdded=[],FGSECOMAPP[_0x5c72de(609)]=0,FGSECOMAPP[_0x5c72de(563)]=!1,FGSECOMAPP[_0x5c72de(374)]={...Shopify?.[_0x5c72de(374)]},FGSECOMAPP[_0x5c72de(435)]=Shopify?.[_0x5c72de(435)]??void 0,FGSECOMAPP[_0x5c72de(508)]=Shopify?.scaCustomLoadingCheckout??void 0,FGSECOMAPP[_0x5c72de(376)]={},FGSECOMAPP.hasDoneProcessCheckout=!1,FGSECOMAPP[_0x5c72de(352)]={},FGSECOMAPP[_0x5c72de(492)]=!1,FGSECOMAPP[_0x5c72de(583)]={};let x=()=>{let $=_0x5c72de,x=FGSECOMAPP[$(644)]?.[$(380)],e=x?.[$(415)]?.[$(342)],t=!b(x)&&void 0!==e&&!e;return t?'\n
\n ':""},e=()=>{let $=_0x5c72de,x=FGSECOMAPP[$(644)]?.[$(380)],e=x?.disable_slider_checkbox??{};return document[$(600)]($(558))?.[$(328)]&&localStorage.setItem($(379),""+Date.now()),e?.[$(433)]?$(218)+e[$(637)]+$(244):""},{fetch:t}=window,a=()=>{let $=_0x5c72de;"fg-checkout"!==document[$(600)]("#secomapp_freegifts_version")?.[$(628)]($(540))&&(window[$(298)]=async(...x)=>{let e=$;try{if(x[0].includes(e(291))){i(x[1]);let a=200,r=await t(...x)[e(454)]($=>{let x=e;return(a=$[x(527)],$[x(259)])?$:$[x(498)]()})[e(399)]($=>{let x=e;console[x(615)]($)});if(x[1][e(608)]?.[e(180)]&&200!==a){let _=JSON[e(258)](x[1][e(405)])?.id,n=document[e(600)](e(231)+_+'"]');return n[e(659)]=e(365),n[e(486)][e(178)](e(646))||n[e(486)][e(488)](e(646)),n[e(373)]=!0,n.style[e(317)]=e(273),document[e(410)](e(427))[e(521)]($=>{let x=e;parseInt($[x(628)](x(617)))===_||$.classList[x(178)]("sca-fg-out-stock")||($.disabled=!1,$.style[x(317)]=FGSECOMAPP.fgAppearance?.[x(380)]?.color?.[x(299)]??"#7367f0")}),!1}return await K(["/cart/add",...x.slice(1)]),await c(x,r),new Response(JSON[e(604)](r))}if(!(x[0][e(661)](e(453))||x[0][e(661)](e(421))))return setTimeout(function(){$o()},1e3),await t(...x);{i(x[1]);let o=200,d=await t(...x)[e(454)]($=>{let x=e;return(o=$.status,$[x(259)])?$:$[x(498)]()})[e(399)]($=>{let x=e;console[x(615)]($)});if(x[1][e(608)]?.[e(331)]&&200!==o)return!1;if(await K([x[0].includes("/cart/change")?e(453):e(421),...x[e(242)](1)]),x[1]?.[e(608)]?.[e(331)])return new Response(JSON[e(604)](d));let s=await t("/cart.js")[e(454)]($=>{let x=e;return $[x(498)]()});return await c(x,d,s),new Response(JSON[e(604)](s))}}catch(l){return await t(...x)}})};FGSECOMAPP.initializeForXHR=()=>{let $=_0x5c72de;try{if(Shopify?.[$(620)]||typeof Shopify?.[$(360)]!==$(226))return;Shopify[$(360)]=async function(x){let e=$;if(!FGSECOMAPP[e(518)]){FGSECOMAPP[e(518)]=!0,await K(e(632));let t=await fetch(e(632),{method:e(506),headers:{Accept:"application/json",sca_fetch:e(418),"Content-Type":e(210)}});typeof x===e(226)&&(0>FGSECOMAPP[e(452)][e(411)](x)&&FGSECOMAPP[e(452)][e(255)](x),x(await t.json())),FGSECOMAPP.secomappGetCartRunning=!1}FGSECOMAPP[e(437)]()},typeof ShopifyAPI!==$(451)&&typeof ShopifyAPI[$(360)]!==$(451)&&(ShopifyAPI[$(360)]=Shopify?.[$(360)]),typeof Shopify?.api!==$(451)&&typeof Shopify?.[$(372)][$(360)]!==$(451)&&(Shopify[$(372)][$(360)]=Shopify?.[$(360)])}catch(x){console[$(615)](x)}};let i=$=>{let x=_0x5c72de;try{let e=$?.[x(405)];e instanceof FormData?FGSECOMAPP[x(352)]={sections:e[x(241)](x(272)),sections_url:e[x(241)]("sections_url")}:"string"==typeof e&&(e=JSON[x(258)](e),FGSECOMAPP[x(352)]={sections:e?.[x(272)],sections_url:e?.sections_url})}catch(t){FGSECOMAPP[x(352)]={}}},r=async()=>{let $=_0x5c72de;if(!b(FGSECOMAPP.arrOfferAdded)){let x=["SECOMAPP_FREEGIFT"];for(let e of FGSECOMAPP[$(332)]){let a=FGSECOMAPP[$(205)][$(485)]($=>$.id===e.belongs_to_offer)?.sub_conditions?.[$(189)];b(a)||x[$(255)](a)}let i={freegift_attributes:x.toString()};try{await t($(421),{method:$(481),headers:{"X-Requested-With":$(555),"Content-Type":$(610)},body:JSON[$(604)]({attributes:i})})}catch(r){console.error($(182)+r[$(446)])}}},c=async($,x,e)=>{let a=_0x5c72de;try{if($[1]?.[a(608)]?.[a(331)])return;let i={},r=Object.keys(x[a(272)]??{})?.filter($=>b(FGSECOMAPP[a(352)][$]))??[];if(r&&r[a(576)]&&FGSECOMAPP.isUpdateCart&&(i=await t(a(264)+r[a(407)](","))[a(454)]($=>$.json())),FGSECOMAPP.isUpdateCart=!1,i={...FGSECOMAPP.sections_cart,...i},b(i))return;x.sections={...x[a(272)],...i},b(e)||(e[a(272)]={...x[a(272)]})}catch(c){}},_=async($,x,e)=>{let t=_0x5c72de;e=e?.toString();let a=document.querySelectorAll(t(301));a[t(521)](x=>{let e=t;x.disabled=!0;let a=x.getAttribute("data-variant")-0;a===$&&(x.style[e(595)]=e(313),x.innerHTML=e(364)),x[e(654)][e(317)]="#82868b"});let i=FGSECOMAPP[t(332)].find(x=>e===x[t(520)]?.[t(240)]()&&$===x[t(577)]);i?i[t(325)]+=x:FGSECOMAPP[t(332)].unshift({variantId:$,belongs_to_offer:e,quantity:x}),localStorage[t(253)]("sca_offers_added",LZString.compressToBase64(JSON[t(604)](FGSECOMAPP[t(332)])));let r=await fetch(t(513),{method:t(481),headers:{Accept:"application/json","Content-Type":t(210),sca_add_gift:t(180)},body:JSON[t(604)]({quantity:x,id:$})}),c=await r[t(498)]();if(r.ok)return a[t(521)](x=>{let e=t;x.disabled=!0;let a=x[e(628)](e(617))-0;a===$&&(x[e(654)].padding=e(313),x[e(186)]='\n \n \n \n '),x[e(654)].backgroundColor=""}),Q(),c},n=$=>{let x=_0x5c72de,e=x(444);return!b($)&&(typeof $===x(519)&&($[x(188)]?.[x(661)](e)||$[x(586)]?.[x(661)]("freegifts"))||typeof $===x(459)&&$[x(661)](e))},o=async($,x)=>{let e=_0x5c72de;try{if(b($)&&b(x))return;let t={};if(FGSECOMAPP.cartItems?.[e(300)]($=>n($))?.[e(521)]($=>{let x=e;t[$[x(581)]]=$[x(325)]}),($=$?.filter($=>!b($[e(581)])))?.[e(521)]($=>{let x=e;t[$[x(581)]]=(t[$[x(581)]]??0)+($[x(325)]??1)}),Object[e(469)](t)?.forEach($=>{t[$]=t[$]>=0?t[$]:0}),b(Object[e(469)](t)))return;$?.[e(521)]($=>{let x=e,t=FGSECOMAPP[x(332)][x(485)](e=>$[x(543)]?.[x(240)]()===e[x(520)]?.toString()&&$[x(581)]===e[x(577)]);t?t.quantity+=$[x(325)]:FGSECOMAPP[x(332)][x(361)]({variantId:$[x(581)],belongs_to_offer:$[x(543)]?.toString(),quantity:$[x(325)]})}),localStorage[e(253)]("sca_offers_added",LZString.compressToBase64(JSON[e(604)](FGSECOMAPP[e(332)]))),FGSECOMAPP.isUpdateCart=!0,await fetch(e(421),{method:e(481),headers:{Accept:e(210),"Content-Type":e(210),sca_process_gifts:!0},body:JSON[e(604)]({updates:t,...FGSECOMAPP[e(352)]})})[e(454)](e=>(e.ok&&$.length&&!x.length&&Q(),e.json()))[e(454)]($=>{let x=e;FGSECOMAPP[x(352)]=$[x(272)]}),"fg-checkout"===document.querySelector(e(424))?.[e(628)](e(540))&&location[e(341)]()}catch(a){console[e(615)](a)}},d=0,s=()=>{let $=_0x5c72de,t=document[$(548)]($(292));if(t)t[$(186)]='\n \n
\n '+(FGSECOMAPP[$(565)][$(369)]??$(642))+$(456)+x()+$(295);else{let a=localStorage[$(303)]("FGSECOMAPP_HIDDEN_GIFT_POPUP")-0,i=FGSECOMAPP[$(644)]?.[$(380)]?.[$(522)]??{},r=(i?.[$(439)]??0)*6e4,c=!isNaN(a)&&a+r>Date.now();if(c||(localStorage[$(326)]($(379)),!(t=document[$(548)]("freegifts-main-popup-container"))))return;t[$(186)]=$(495)+(FGSECOMAPP.fgAppearanceGiftSlider[$(369)]??"Select your free gift!")+'\n
\n
\n
\n\n
\n
\n ❮ \n
\n
\n ❯ \n
\n
\n
\n '+e()+$(541)+x()+"\n
",t[$(486)][$(488)]("sca-is-visible-fg"),d++}},l=($,x)=>{let e=_0x5c72de;return $.map($=>'\n {let x=_0x5c72de;return FGSECOMAPP[x(564)][x(236)](v($?.[x(190)]))},u=$=>{let x=_0x5c72de,e=FGSECOMAPP?.[x(606)]?.cal_gift_discount==="compare_at_price"?$?.[x(252)]:$?.[x(207)];return FGSECOMAPP[x(564)][x(236)](v(e??0))},p=($,x)=>{let e=_0x5c72de;return b(Shopify?.products[$])?x??"#":Shopify?.products[$][e(188)]},g=($,x)=>{let e=_0x5c72de;return FGSECOMAPP[e(565)][e(562)]?b(Shopify?.[e(283)][$])?x[e(447)]("\xbb","")[e(447)](/\(\d*% off\)/,"")??"":Shopify?.[e(283)][$].title:""},b=$=>{let x=_0x5c72de;if(0===$)return!0;if("number"==typeof $||typeof $==x(639))return!1;if(typeof $==x(451)||null===$)return!0;if(void 0!==$[x(576)])return 0===$[x(576)];let e=0;for(let t in $)$[x(302)](t)&&e++;return 0===e},h=$=>{let x=_0x5c72de;try{let e={...FGSECOMAPP[x(374)]},t=e[$];if(t=t?t[x(478)]():null,!b(t)&&t[x(576)]>0)try{return document.querySelector(t),", "+t}catch(a){}return""}catch(i){return""}},m=()=>{let $=_0x5c72de;try{FGSECOMAPP[$(564)]=new Intl[$(261)](Shopify?.[$(588)]??Shopify?.[$(260)],{style:$(412),currency:Shopify?.[$(412)]?.active??$(343)})}catch(x){FGSECOMAPP[$(564)]=new Intl[$(261)]($(484),{style:"currency",currency:Shopify?.currency?.[$(281)]??$(343)})}},v=$=>{let x=_0x5c72de;$=$??0;let e=Shopify?.[x(412)]?.[x(627)]??1;return 1===parseFloat(e)?$:($*e)[x(209)](Shopify?.[x(256)]??2)},y=$=>{let x=_0x5c72de;return $[x(300)]($=>void 0===$[x(338)]||!0===$[x(338)])[x(246)](($,x)=>$+x.quantity*(x.final_price??x.price),0)/100},w=$=>{let x=_0x5c72de;return $[x(300)]($=>void 0===$[x(338)]||$[x(338)])[x(246)](($,e)=>$+e[x(325)],0)},k=($,x)=>{let e=_0x5c72de,t=x[e(530)];return b(t)?$:$.filter($=>{let x=e;return!t[x(263)](e=>{let t=x;switch(e[t(633)]){case"variants_ids":return Object[t(472)](e[t(193)])[t(263)]($=>$.variant)[t(382)]()[t(263)]($=>$.id)[t(661)]($[t(581)]);case t(603):return Object[t(469)](e[t(193)])[t(661)]($.product_type);case t(195):return Object[t(469)](e.value)[t(661)]($.vendor);case t(584):let a=Object[t(469)](e.value),i=$[t(590)]?.[t(263)]($=>$.id+"")?.[t(300)]($=>a[t(661)]($));return!b(i);default:return!1}})[x(661)](!1)})},A=($,x)=>$?.map($=>{let e=_0x451c;if(typeof $[e(338)]!==e(451)){let t=FGSECOMAPP[e(332)]?.[e(300)](x=>x[e(577)]===$[e(581)]),a=t?.reduce(($,x)=>$+x[e(325)],0);if(a===$[e(325)]){let i=FGSECOMAPP[e(332)]?.[e(300)]($=>{let t=e;if($[t(520)]?.[t(240)]()===x.toString())return!1;let a=FGSECOMAPP.offers?.[t(485)](x=>x.id?.[t(240)]()===$[t(520)]?.[t(240)]()),i=a[t(468)]??{};return i[t(338)]&&100!==parseInt(i[t(557)])})?.reduce(($,x)=>$+x[e(325)],0);return{...$,cal_gift_for_other_rules:i>0,quantity:i??0}}return{...$,cal_gift_for_other_rules:!1,quantity:0}}return{...$}})??[],S=($,x,e)=>{let t=_0x5c72de,a=0,i=k(x,$);i=A(i,$[t(543)]);let r;return $.unit===t(304)?r=y(i):$[t(351)]===t(580)&&(r=w(i)),r>=$.min_amount&&(null===$[t(228)]||r<=$.max_amount)&&(a=e.number_of_gift_can_receive,$[t(202)]&&(a=Math[t(386)](r/$[t(416)])*a)),a},C=($,x,e)=>{let t=_0x5c72de,a={},i=[],r=0;return x.map(x=>{let t=_0x451c,a=S(x,$,e);0!==a&&(r=a),i[t(255)](a>0)}),a[t(401)]=r,a[t(293)]=i,a},q=($,x)=>{let e=_0x5c72de,t=!1;return 1===$.length?t=$[0]:2===$.length&&(x===e(479)&&(t=$[0]&&$[1]),"or"===x&&(t=$[0]||$[1])),t},T=($,x)=>{let e=_0x5c72de,t=$?.[e(263)]($=>$[e(581)]);FGSECOMAPP[e(332)]=FGSECOMAPP.arrOfferAdded.filter($=>t?.includes($[e(577)]));let a=x[e(529)][e(263)]($=>$[e(423)]),i=FGSECOMAPP[e(332)].filter($=>$[e(520)]?.[e(240)]()===x.id?.[e(240)]())?.[e(263)]($=>{let x=e;return $[x(577)]}),r=$.filter($=>{let x=e;return n($)&&($[x(338)]=!1),a[x(661)]($[x(581)])&&i.includes($[x(581)])}),c=r[e(263)]($=>{let t=e,a=x[t(468)];$[t(338)]=a[t(338)],$[t(520)]=x.id?.[t(240)]();let i=FGSECOMAPP.arrOfferAdded?.[t(300)](e=>e[t(520)]?.[t(240)]()!==x.id?.[t(240)]()&&$[t(581)]===e[t(577)])?.[t(246)](($,x)=>$+x[t(325)],0);return{...$,quantity:$[t(325)]-i}});return c[e(300)]($=>{let t=e;return $[t(520)]?.toString()===x.id?.[t(240)]()})},P=$=>{let x=_0x5c72de,e=$[x(524)][x(300)](e=>e[x(520)]?.toString()!==$.id?.toString())[x(263)]($=>$.product_id);return Object[x(472)]($[x(245)])[x(300)]($=>!e[x(661)]($.product_shopify_id))},E=($,x)=>{let e=_0x5c72de,t=T($,x),a=C($,x[e(475)],x[e(468)]),i=q(a.condition_result,x[e(545)]);if(i){let r=t[e(300)]($=>$[e(520)]?.[e(240)]()===x.id?.[e(240)]())[e(246)](($,x)=>$+x.quantity,0);a[e(401)]=a[e(401)]-r,x.giftsAdded=t,x[e(534)]=a.max_gifts_can_get}else x[e(524)]=t,x[e(534)]=0;return typeof FGSECOMAPP[e(309)]===e(526)&&x[e(535)]>FGSECOMAPP[e(309)]&&(i=!1),i||!x.stop_lower_priority||FGSECOMAPP[e(309)]!==x[e(535)]||b(t)||(FGSECOMAPP[e(309)]=null),x[e(414)]=i,x[e(392)]&&i&&(null==FGSECOMAPP[e(309)]||x[e(535)]<=FGSECOMAPP[e(309)])&&FGSECOMAPP[e(309)]!==x[e(535)]&&(FGSECOMAPP.maxOfferPriority=x[e(535)]),x},L=$=>{let x=_0x5c72de,e=$+"=",t=document[x(511)][x(349)](";");for(let a=0;a{let e=_0x5c72de,t=!0,a=!0,i=!0,r=!0;if(!b($[e(537)]?.specific_link_address)){let c=L(e(574));t=c&&JSON.parse(c)[e(661)]($[e(537)][e(189)])}if(!b($[e(537)]?.customer_tags)){let{customer_tags:_}=$.sub_conditions,n=_?.value_customer_tags?.[e(201)]($=>x[e(305)][e(586)]?.[e(661)]($));a=_?.[e(319)]===e(631)?n:!n}if(!b($[e(537)]?.[e(413)])){let{customer_locations:o}=$[e(537)],d=o?.[e(307)]?.[e(661)](FGSECOMAPP[e(640)]);r=o?.[e(297)]===e(631)?d:!d}if(!b($.sub_conditions?.[e(462)])){let s=!0,l=$[e(537)][e(462)],f=x.customer[e(445)]??[];if(l[e(232)]){let u=Date[e(258)](l.order_created_from)/1e3;f=f[e(300)]($=>$[e(422)]>=u)}if(!b(l?.[e(425)])&&(0!==l.total_spend_on_order_history[e(416)]||0!==l[e(383)][e(228)])){let p=l[e(383)][e(416)],g=l[e(383)][e(228)],h=f[e(246)](($,x)=>$+x.total_price,0)/100;s&=(h>=p||!p)&&(h<=g||!g)}if(!b(l?.[e(194)])&&(0!==l[e(194)][e(416)]||0!==l[e(194)][e(228)])){let m=x[e(305)][e(378)]/100,v=l[e(194)].min_amount,y=l[e(194)][e(228)];s&=(m>=v||!v)&&(m<=y||!y)}if(!b(l?.number_of_order)){let w=!(0!==l.number_of_order[e(416)]||0!==l[e(434)][e(228)]),k=f[e(576)],A=l[e(434)][e(416)],S=l.number_of_order[e(228)];s&=w?b(f):(k>=A||!A)&&(k<=S||!S)}if(l?.[e(533)]){let C=x[e(305)].freegifts??[],q=$[e(529)]?.[e(201)]($=>C[e(661)]($[e(423)]))||$.gift_items?.[e(201)]($=>C[e(661)]($[e(476)]+"_"+($[e(207)]-$[e(190)])*100));s&=!q}i=s}return t&&a&&i&&r},G=($,x,e)=>{let t=_0x5c72de,a=[],i=[],r=[],c=[];for(let _ of x){let o=E($,_);if(!o[t(414)]){o[t(524)][t(576)]>0&&o[t(524)][t(521)]($=>{let x=t;i[x(255)]({variant_id:$[x(581)],quantity:$[x(325)],offer_id:_.id})});continue}if(o.giftsAvailable<0){o[t(524)][t(521)]($=>{let x=t;i[x(255)]({variant_id:$[x(581)],quantity:$.quantity,offer_id:_.id})});continue}0!==o.giftsAvailable&&(_[t(537)]?I(_,SECOMAPP)&&a[t(255)](_):a[t(255)](_))}if($?.[t(521)]($=>{let x=t;b($[x(520)])&&n($)&&i[x(255)]({variant_id:$[x(581)],quantity:$[x(325)],offer_id:$.belongs_to_offer?.[x(240)]()})}),e||b(i)){let d=a.map($=>{let x=t;return{id:$.id,offerName:$[x(554)],offerPriority:$[x(535)],stopLowerPriority:$[x(392)],gifts:P($),giftsAvailable:$[x(534)],giftsAdded:$.giftsAdded,isReachConditions:$[x(414)]}});if(!b(d)){let s={};for(let l of d){let f=M(FGSECOMAPP.fgSettings,l);f?.length>0?r=r[t(634)]([...f]):l[t(235)][t(263)]($=>{let x=t;s[$[x(502)]]={...$,belongs_to_offer:l.id?.[x(240)]()}})}c=Object[t(472)](s)??[]}}return{arrGiftsAdd:r,arrGiftsRemove:i,arrGiftsData:c}},O=($,x)=>{let e=_0x5c72de,t=new Set;return $?.forEach($=>t[e(488)]($[e(543)])),t.forEach($=>{let x=e,t=FGSECOMAPP[x(205)]?.[x(485)](e=>e.id?.[x(240)]()===$?.toString());if(b(t)||!t[x(414)]){FGSECOMAPP[x(332)]=FGSECOMAPP.arrOfferAdded?.filter(e=>e.belongs_to_offer?.[x(240)]()!==$?.[x(240)]());return}if(t[x(534)]>=0)return;let a=[],i=FGSECOMAPP[x(332)]?.[x(300)](e=>e.belongs_to_offer?.[x(240)]()===$?.toString())??[];if(t?.[x(468)]?.[x(284)])a=a[x(634)]([...i]),t[x(534)]=0;else for(let r of i){if(t[x(534)]>=0)break;t[x(534)]+=r[x(325)],t[x(534)]<=0?a.push({...r}):(r.quantity=t[x(534)],t[x(534)]=0)}a?.[x(521)]($=>{let e=x;FGSECOMAPP[e(332)]=FGSECOMAPP[e(332)]?.filter(x=>$[e(577)]!==x[e(577)]||$[e(520)]?.[e(240)]()!==x[e(520)]?.[e(240)]())})}),x?.[e(300)]($=>{let x=e;return n($)&&($[x(325)]=FGSECOMAPP[x(332)]?.[x(300)](e=>$[x(581)]===e[x(577)])?.[x(246)](($,x)=>$+x.quantity,0)??0),$[x(325)]>0})??[]},F=async($,x)=>{let e=_0x5c72de,{arrGiftsAdd:t,arrGiftsRemove:a,arrGiftsData:i}=G($,x,!1),c=O(a,$);if(!b(a)){let _=G(c,x,!0);O(_?.[e(649)],$),t=_?.arrGiftsAdd,a=a?.[e(634)](_?.[e(649)])??[],i=_?.[e(658)]}return await o(t,a),await r(),i},M=($,x)=>{let e=_0x5c72de,t=[];if($[e(355)]){let a=x[e(235)],i=a[e(246)](($,x)=>$+x[e(648)][e(576)],0),r=FGSECOMAPP[e(205)].filter($=>$.id===x.id),c=r[0][e(468)][e(284)],_=r[0][e(289)];if(1===i||c||_[e(527)]){if($.not_show_gift_if_already_on_cart&&!D(a)||$?.compare_gift_price_with_product&&!B(a))return!1;if(_[e(527)]){if(_[e(633)]===e(321)){let n=FGSECOMAPP[e(277)];n=n[e(300)]($=>{let x=e;return $[x(271)]===a[0][x(350)]});let o=a[0][e(648)][e(300)]($=>{let x=e;return n[0][x(581)]===$[x(476)]})[0];if(0===o[e(190)]&&100===parseInt(o[e(557)]))return t[e(255)]({variant_id:o.variant_shopify_id,quantity:x[e(534)],offer_id:x.id}),t}else if(c){let d=a?.reduce(($,x)=>($+x?.variants?.length)??0,0);if(!d)return!1;let s=(x?.giftsAvailable??0)/d;for(let l of a)for(let f of l[e(648)])t[e(255)]({variant_id:f.variant_shopify_id,quantity:s,offer_id:x.id});return t}}else{if(c){let u=a?.[e(246)](($,x)=>($+x?.[e(648)]?.[e(576)])??0,0);if(!u)return!1;let p=(x?.giftsAvailable??0)/u;for(let g of a)for(let b of g[e(648)])t[e(255)]({variant_id:b[e(423)],quantity:p,offer_id:x.id});return t}{let h=a[0][e(648)][0];if(0===h[e(190)]&&100===parseInt(h[e(557)]))return console[e(619)](e(353)+a[0][e(648)][0][e(423)]+" "+a[0][e(648)][0].variant_title),t[e(255)]({variant_id:h[e(423)],quantity:x.giftsAvailable,offer_id:x.id}),t}}}}return!1},j=$=>{let x=_0x5c72de;return $===x(286)},H=$=>{let x=_0x5c72de,e=$;if(FGSECOMAPP.fgAppearanceGiftSlider[x(516)]===x(200))for(let t of(e=[],$)){let a=t.variants;a&&a.length&&a[x(521)]($=>e[x(255)]({...t,thumbnail:$.thumbnail,variants:[$]}))}let i=document[x(548)](x(224));i&&(i.innerHTML=e[x(263)]($=>{let e=x,t=$?.[e(648)][0]??{};return e(197)+p($.original_product_shopify_id,$.original_product_handle)+e(177)+$.thumbnail+'" alt="">\n '+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 '+$?.map($=>'\n
\n
=4?x(531):"")+x(345),a=x(312)+h(x(464)),i=document[x(600)](a)??document[x(600)]("[type='submit'][name='add'], [type='button'][name='add'], [data-add-to-cart], [data-action='add-to-cart']");if(!i)return;i[x(466)][x(654)][x(471)]=x(597),i[x(466)].style[x(347)]=x(536),i[x(466)]?.[x(348)]?.[x(661)](x(501))||i[x(466)]?.[x(486)]?.[x(488)](x(501));let r=i[x(466)][x(600)]("#sca-gift-thumbnail");if(r)r[x(186)]=t;else{(r=document[x(551)](x(294))).setAttribute("id",x(601));let c=new DOMParser().parseFromString(t,x(598));r[x(186)]=c.body[x(186)],i.parentNode[x(480)](r,i)}i.parentNode[x(480)](r,i);let _=document[x(600)](x(181));if(_)switch(e[x(198)]?.[x(594)]){case"32":_[x(654)][x(400)]=x(409);break;case"50":_[x(654)][x(400)]="60%";break;case"100":_[x(654)][x(400)]=x(404);break;case"160":_[x(654)].maxWidth="80%";break;case x(572):_[x(654)][x(400)]=x(597);break;default:_[x(654)][x(400)]="60%"}if($?.[x(576)]>=4)new Glider(document.querySelector(x(203)),{slidesToShow:3,slidesToScroll:1,draggable:!0,dots:x(296),arrows:{prev:x(592),next:x(579)}});else{_&&(_[x(654)][x(400)]="100%");let n=document[x(600)](x(203));n&&(n.style[x(239)]=x(213))}},$i=()=>{let $=_0x5c72de;if(!(FGSECOMAPP[$(223)].product_page??{})[$(538)]?.[$(527)])return;let x=$(385)+FGSECOMAPP[$(223)][$(559)]+'" alt="free-gift-icon" class="sca-gift-icon-img" />\n ',e=$(510)+h($(582)),t=document[$(600)](e)??document[$(600)]($(570));if(!t)return;t[$(654)][$(571)]=$(266),t.style[$(471)]=$(477),t[$(348)]?.[$(661)]("sca-fg-form-icon-product-page")||t.classList?.[$(488)]($(505));let a=t.querySelector($(426));if(a)a.innerHTML=x;else{(a=document.createElement($(294)))[$(249)]("id",$(221));let i=new DOMParser()[$(645)](x,$(598));a[$(186)]=i[$(405)][$(186)],t[$(547)](a)}},$r=()=>{let $=_0x5c72de,x=[],e=$(430)+h($(211));return document[$(410)](e)[$(521)](e=>{let t=$,a=e.querySelector(t(499)),i=a?.getAttribute(t(442))?.[t(349)]("/")??[],r=i?.indexOf(t(283)),c=r>=0?i[r+1]??null:null;if(c=c?.[t(349)]("?")?.shift(),n(c)){e[t(391)]();return}let _=e[t(600)](t(247));if(_){e[t(391)]();return}if(b(c))return;let o=decodeURI(c);b(FGSECOMAPP[t(376)][o]?.[t(523)])&&x.push(o),FGSECOMAPP[t(376)][o]={...FGSECOMAPP[t(376)][o],position:e}}),x},$c=$=>{Object.keys($)?.forEach($=>{let x=_0x451c,e=FGSECOMAPP[x(376)][$]?.[x(571)];if(!e)return;if(!(FGSECOMAPP[x(223)][x(542)]??{})[x(527)])return;let t=x(517)+FGSECOMAPP.fgAppearanceGiftIcon[x(559)]+x(638);e.style[x(571)]="relative",e[x(348)]?.[x(661)](x(616))||e[x(486)]?.add(x(616));let a=e[x(600)](x(287));if(a)a[x(186)]=t;else{(a=document.createElement("div"))[x(249)]("class",x(288));let i=new DOMParser()[x(645)](t,x(598));a[x(186)]=i.body[x(186)],e[x(547)](a)}})},$_=async $=>{let x=_0x5c72de;await t(SECOMAPP[x(250)]+x(618)+LZString[x(553)](JSON[x(604)]($)),{method:"GET",headers:{"Content-Type":"application/liquid"}})[x(454)](async $=>{let e=x,t=await $.json(),a=[];t?.[e(283)]?.forEach($=>{let x=e;b($?.[x(283)]?.id)||a.push({...$[x(283)],collections:$[x(590)],variants_quantity:$[x(532)]})});let i=$t(a);$c(i)})[x(399)]($=>{let e=x;console[e(615)]($)})},$n=async $=>{let x=_0x5c72de,e=[];for(let[t,a]of $[x(402)]())b(FGSECOMAPP[x(376)][a]?.[x(523)])&&e[x(255)](a),20===e[x(576)]&&(await $_([...e]),e=[]),t===$[x(576)]-1&&e[x(576)]>0&&(await $_([...e]),e=[])},$o=()=>{let $=_0x5c72de,x=$r(),e=$t();$c(e),$n(x)[$(454)]()},$d=()=>{let $=_0x5c72de;Shopify?.enable_check_variants_has_gift&&document[$(653)]("change",function(){let x=$,e=new URL(document[x(280)]),t=parseInt(e[x(268)][x(241)]("variant"));$s(isNaN(t)?void 0:t)})},$s=$=>{let x=_0x5c72de;if(!location[x(442)][x(661)](x(546)))return;document.querySelector("#sca-gift-icon")?.[x(391)](),document[x(600)](x(290))?.[x(391)]();let e=$t();if(b(e))return;let t=location.pathname.split("/"),a=t?.indexOf(x(283)),i=decodeURI(a>=0?t[a+1]??null:null);if(!Object[x(469)](e)?.includes(i))return;let r=e[i],c=FGSECOMAPP[x(376)][i]?.[x(388)]??[];!(Shopify?.[x(274)]&&(!b($)&&!c[x(661)]($)||b($)&&!b(Shopify?.[x(254)]?.current_variant)&&!c[x(661)](Shopify?.current_product?.[x(512)]?.id)))&&($a(r),$i(r))};FGSECOMAPP[_0x5c72de(460)]=$=>{let x=_0x5c72de;try{b($)&&($=[...FGSECOMAPP[x(205)]]);let e=location[x(442)].includes(x(624)),t=[];if($?.[x(521)]($=>{let e=x;if($.isReachConditions||b($[e(470)])||!b(FGSECOMAPP.maxOfferPriority)&&!$[e(414)]&&$[e(392)]&&$.priority>FGSECOMAPP[e(309)])return;let a=$[e(470)];$.offer_conditions?.[e(521)]($=>{let x=e,t=k(FGSECOMAPP.cartItems,$);t=A(t,$.offer_id);let i=0,r=null,c=0;$.unit===x(304)?(i=y(t),r=x(230),c=Shopify?.[x(494)]??2):"number_of_products"===$[x(351)]&&(i=w(t),r="{{sca_min_quantity}}",c=0);let _=Math.max($[x(416)]-i,0)[x(209)](c);a=a[x(643)](r,_)}),t[e(255)](a)}),b(t)){document.querySelectorAll(x(602))[x(521)]($=>$[x(186)]="");return}let a="",i='\n '+t?.[x(263)]($=>x(463)+$+x(573)).join("")+x(323);FGSECOMAPP.fgAppearancePromotionMessage.show_on_cart_page&&(a=i);let r=x(362),c=document[x(600)](r),_=c?.[x(600)](x(184)),n=document[x(410)](x(630)+h(x(493))),o=document[x(410)](".sca-promotion-message-layout");if(b(o)){(o=document[x(551)](x(294)))[x(249)]("id",x(318)),o.classList.add("sca-promotion-message-layout");let d=new DOMParser()[x(645)](a,"text/html");o[x(186)]=d[x(405)][x(186)],b(n)?(d=new DOMParser()[x(645)](a,x(598)),o[x(186)]=d[x(405)].innerHTML,c&&_&&e?_[x(491)](o):c&&e&&c[x(491)](o)):n?.[x(521)]($=>{let e=x,t=o[e(397)](!0);$.prepend(t)})}else o[x(521)]($=>$[x(186)]=a);try{document[x(410)](x(396))[x(521)]($=>{let x=new Glider($);(($,x)=>{let e=_0x451c,t=$[e(187)][e(515)],a=null,i=1;function r(){a=setTimeout(()=>{let x=_0x451c;i>=t&&(i=0),$[x(483)](i++)},3e3)}$[e(593)][e(653)](e(265),function(){window[e(621)](a),r()}),r()})(x,3e3)})}catch(s){console[x(615)](s)}}catch(l){console[x(615)](l)}};let $l=async()=>{let $=_0x5c72de;try{let x=await fetch($(310)),e=await x[$(498)]();FGSECOMAPP[$(640)]=e?.[$(320)]}catch(t){console[$(619)]($(368))}};U(FGSECOMAPP[_0x5c72de(277)])[_0x5c72de(454)]()}}catch($f){console[_0x5c72de(619)]("can not check freegifts version",$f)}function _0x53ae(){let $=["data-original-price","cart-items, .cart-header, .section-header",".dots","innerHTML","track","handle","specific_link_address","price","target","#fg-gift-items .dropdown > .dropdown-menu > li","value","total_spent_on_last_order","product_vendors","customer_tags",'\n
\n
\n \n ","setAttribute","freegiftProxy","Free Gift","original_compare_at_price","setItem","current_product","push","fg_decimal","textContent","parse","redirected","locale","NumberFormat","currentTarget","map","/?sections=","glider-animated","relative","hasAttribute","searchParams","sca_offers_added",".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 ","product_id","sections","#82868b","enable_check_variants_has_gift","src","select_one_gift_price","cartItems","product_has_icon","opacity","URL","active","clone_checkout","products","auto_add_all_gifts","click","Default Title",".sca-gift-icon-collection-page","sca-gift-icon-collection-page","gift_should_the_same","#sca-gift-thumbnail","/cart/add","freegifts-main-page-container","condition_result","div","\n
",".dots-thumbnail","type_customer_locations","fetch","add_to_cart_btn_color","filter","#fg-gift-items .btn-add-to-cart","hasOwnProperty","getItem","money","customer","Loading...","value_customer_locations","Error decoding cookie:","maxOfferPriority","https://geoip.secomtech.com/?json",".sca-fg-notifications",".fg-secomapp-handle-add-to-cart ","6px 0",".freegifts-main-container .glider-next","keyup","end_time","backgroundColor","sca-promotion-message-layout","type_customer_tags","country_code","variant","product","\n
",'" data-original-id="',"quantity","removeItem",'\n \n ',"checked","event add gift to cart from popup","open","sca_process_gifts","arrOfferAdded","[data-open]","appearance","stopImmediatePropagation","dataset","#freegifts-main-popup-container [data-close]","cal_gift_for_other_rules","1418070pWpKmR","sca_text_notify_success","reload","hidden_brand_mark","USD","cart",'\n
\n \n
\n ',"show_pagination","height","className","split","original_product_shopify_id","unit","sections_cart","auto add gift: ",".product-item-thumbnail","auto_add_gift","manual_input_inventory","fg-checkout","sca-d-none",'
',"getCart","unshift","#MainContent, #mainContent, #main, .main-content",".gift-original-url",'\n \n \n \n \n \n ',"Out of stock","47116qATZcj","decompressFromBase64","Failed to get customer location","gift_popup_title","start_time","settings","api","disabled","scaHandleConfigValue","stop_offer","productsInPage",".fg-secomapp-cart-drawer ","last_total","FGSECOMAPP_HIDDEN_GIFT_POPUP","gift_slider","event auto process gifts with cart","flat","total_spend_on_order_history","#close-fg-toast",'\n \n ',' \n
\n \n
\n \n \n \n ',"remove","stop_lower_priority","sca_fg_cart_icon_query","17192uTDGhZ","title",".sca-promotion-glider","cloneNode","#sca-spinner-checkout","catch","maxWidth","max_gifts_can_get","entries",'\n \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",'\n
\n \n \n \n \n \n
',"end","prepend","isUpdateCart","sca_fg_main_promotion_message_query","sca_amount_fixed",'\n
✕ \n
\n ','"\n data-variant="',"compressToBase64","json",'a[href*="/products/"]',"FGSECOMAPP","sca-fg-form-thumbnail-product-page","product_shopify_id",".fg-secomapp-cart-icon ","location","sca-fg-form-icon-product-page","GET","#shopify-section-header #cart-icon-bubble, .shopify-section.section-header #cart-icon-bubble","scaCustomLoadingCheckout","number_of_gift_can_receive",".fg-secomapp-product-title ","cookie","current_variant","/cart/add.js","27ccYUoZ","childElementCount","show_gift_for_customer",'\n
","gift_items","product_narrow",'\n
\xab \n
\xbb \n ',"variants_quantity","have_not_got_gift_from_this_offer","giftsAvailable","priority","auto","sub_conditions","gift_icon","594VxMPpg","data-template","\n ","collection_page","offer_id","current_collection","condition_relationship","/products/","appendChild","getElementById","removeEventListener","\n \n
\n
\n ","createElement","select_gift_btn","compressToEncodedURIComponent","offer_name","XMLHttpRequest"," \n ","discount_percentage",".freegifts-main-container .slide-container #sca-hidden-gift-popup .sca-disable-checkbox","gift_icon_path","Select variant",'">\n ',"show_product_title","checkIsBlockCheckout","formatter","fgAppearanceGiftSlider","sca_catch","#fg-gift-items .dropdown","shop","sca-is-visible-fg",".product_name, .product-title, .product__title, .product-single__title, .tt-title, .ProductMeta__Title","position","240","","sca_fg_codes","isDelayShowAdded","length","variantId","hasDoneProcessCheckout","#fg-gift-thumbnail-title .glider-next","number_of_products","variant_id","sca_fg_title_product_gift_icon_query","SHOPIFY_CART","product_collections",'" id="',"tags","compare_gift_price_with_product","sca_locale","thumbnail","collections","1786045ShUwvY","#fg-gift-thumbnail-title .glider-prev","ele","size","padding","3.0","100%","text/html","product_type","querySelector","sca-gift-thumbnail",".sca-promotion-message-layout","product_types","stringify",'\n \n ","error","sca-fg-icon-collection-page","data-variant","&sca_products_handle=","log","disableShopify_getCart","clearInterval","\n ","1805574GcrOOB","/cart","Escape","#shopify-section-header #cart-icon-bubble","rate","getAttribute","Add to cart",".fg-secomapp-cart-item-promotion ","include","/cart.js","type","concat","using_draft_order",".original-price del","text",'" alt="free-gift-icon" class="sca-gift-icon-collection-img" />\n ',"boolean","customerLocation","data-price","Select your free gift!","replaceAll","fgAppearance","parseFromString","sca-fg-out-stock","trigger_body","variants","arrGiftsRemove","original_product_handle","54942QhUpAg","#freegifts-main-popup-container.sca-modal-fg.sca-is-visible-fg","addEventListener","style","&sca_shop_name=","sca_clone_checkout","\n ","arrGiftsData","innerText","start","includes",'" target="_blank">\n