Avocado Banana Pancakes | Heart Healthy Recipes | Bevko Vitamins \n \n `),initClassShowIconChatFB()}let n=0;const a=setInterval(()=>{n+=1,n>5e3&&clearInterval(a),window.OMGFBJquery(".otFacbookChat #fb-root").length&&(callInitFaceBook(),clearInterval(a))});if(facebookChatSettings.contact_information&&Number(facebookChatSettings.contact_information.status)&&facebookChatSettings.abTests.get_contact_infor_Feb_2022){window.OMGFBJquery("#fb-root").addClass("ot-fb-hide"),setTimeCreateChat(),contactInfoSettings=facebookChatSettings.contact_information;const t=omgContentContactInfo();window.OMGFBJquery(".otFacbookChat").append(t)}else{if(0==parseInt(facebookChatSettings.show_after))setTimeCreateChat();else{const t=parseInt(facebookChatSettings.show_after)>5?1e3*parseInt(facebookChatSettings.show_after):5e3;window.OMGFBJquery("#fb-root").addClass("ot-fb-hide"),setTimeout((function(){window.OMGFBJquery("#fb-root").removeClass("ot-fb-hide"),setTimeCreateChat()}),t)}const t=setInterval(()=>{(isDefaultMode&&window.OMGFBJquery(".fb_dialog_content iframe").height()>0||!isDefaultMode&&window.OMGFBJquery(".ot-fb-logo .ot-fb-icon").height()>0)&&(trackingFrontWidgetCampaign("show_IconFbLiveChat"),clearInterval(t))},1e3)}if(welcomePopupWidgetSettings&&Object.keys(welcomePopupWidgetSettings).length&&facebookChatSettings.abTests&&facebookChatSettings.abTests.welcome_popup_widget_Oct_2021&&("all-page"===welcomePopupWidgetSettings.show_on_page||"all"===welcomePopupWidgetSettings.show_on_page||"home"===welcomePopupWidgetSettings.show_on_page&&"home"===window.__st.p||"product-page"===welcomePopupWidgetSettings.show_on_page&&"product"===window.__st.p)){const t=localStorage.getItem(window.shopFbChat+"_omgfbc_welcome_popup"),e=omgContentWelcomePopup(t),o=parseInt(welcomePopupWidgetSettings.show_popup_after.value),n=()=>{t||trackingFrontWidgetCampaign("impression_WelcomePopupWidget"),window.OMGFBJquery(".otFacbookChat").after(e)};if(0===o)n();else{let t=welcomePopupWidgetSettings.show_popup_after.type.indexOf("second")>-1?1e3*o:60*o*1e3;setTimeout(()=>{n()},t)}}if(window.OMGFBJquery(document).on("click",".fb_dialog.fb_dialog_mobile iframe",(function(t){if(windowWidth<800&&"1"==facebookChatSettings.chat_type){let t=facebookChatSettings.page_info.id;window.open("https://www.messenger.com/t/"+t,"_blank")}})),"product"===__st.p&&addCartWidgetSettings){const t=OMGFBGetAddCartButton(window.OMGFBJquery(OMGFBGetAddCartForms)),e=1==addCartWidgetSettings.center_align;let o=" Messenger \n \n ')))},!1),o+=`\n \n \n \n \n ${addCartWidgetSettings.text_subscribed} \n `,addCartWidgetSettings.custom_position?window.OMGFBJquery(addCartWidgetSettings.custom_position).after(o):window.OMGFBJquery(t).each((t,e)=>{if(window.OMGFBJquery(e).is(":visible"))return window.OMGFBJquery(e).after(o),!0})}await addInputToCheckoutForm(),initAjaxCart(),1==facebookChatSettings.enable_abandoned_campaign&&await proccessCartItemData()}async function addInputToCheckoutForm(t=""){let e=OMGFBGetCheckoutForm();if(window.OMGFBJquery(e).length){let o="";if(addCartWidgetSettings&&1==addCartWidgetSettings.status){let e=t&&t.items&&t.items.length?t:await getCartInfoData(),n=window.shopFbChat+"_omgFbChatListProductChecked",a=localStorage.getItem(n)?JSON.parse(localStorage.getItem(n)):[],i="";for(let t of a)if(e.items.find(e=>e.product_id==t)){i=tokenId;break}if(i.length){o+=` `;let t=localStorage.getItem(window.shopFbChat+"_omgfbc_deTokenId");t&&(o+=` `)}}if(1==facebookChatSettings.enable_abandoned_campaign){let t=localStorage.getItem(window.shopFbChat+"_omgfbc_deTokenId");t&&(o+=` `),window.OMGFBJquery('input[name="attributes[omgFbChatTokenId]"]').length||(o+=` `)}o.length&&window.OMGFBJquery(e).append(o)}}function initAjaxCart(){const t=async(t,e,o=!1)=>{if([window.location.origin+"/cart.js","/cart.js"].includes(t)&&(o&&(e=await e.clone().json()),"Supply"===Shopify.theme.name)){let t=0;if(addCartWidgetSettings&&!Number(addCartWidgetSettings.status)||window.OMGFBJquery('input[name="attributes[omgFbChatCheckboxTokenId]"]').length)return;const o=setInterval(()=>{if(window.OMGFBJquery("#ajaxifyCart .ajaxifyCart--is-loading").length)return t+=1,void(t>10&&clearInterval(o));addInputToCheckoutForm(e),clearInterval(o)},100)}if([window.location.origin+"/cart/add",window.location.origin+"/cart/update",window.location.origin+"/cart/change",window.location.origin+"/cart/clear",window.location.origin+"/cart/add.js",window.location.origin+"/cart/update.js",window.location.origin+"/cart/change.js",window.location.origin+"/cart/clear.js","/cart/add.js","/cart/update.js","/cart/change.js","/cart/clear.js"].includes(t)){if(o&&(e=await e.clone().json()),addCartWidgetSettings&&Number(addCartWidgetSettings.status)&&!window.OMGFBJquery('input[name="attributes[omgFbChatCheckboxTokenId]"]').length&&addInputToCheckoutForm(e),!Number(facebookChatSettings.enable_abandoned_campaign))return;if(abandonedCartUpdateAttributeOneTime)return void(abandonedCartUpdateAttributeOneTime=!1);if(JSON.stringify(checkCartAbandoned)===JSON.stringify(e))return;await proccessCartItemData(e)}};var e,o;e=window,"function"==typeof(o=window.fetch)&&(e.fetch=function(){const e=o.apply(this,arguments);return e.then(e=>{let o=e.url.split("?");o=o[0],t(o,e,!0)}),e});const n=window.XMLHttpRequest.prototype.open;window.XMLHttpRequest.prototype.open=function(){return this.addEventListener("load",(function(){try{let e=this._url.split("?");e=e[0],t(e,JSON.parse(this.response))}catch(t){return!1}})),n.apply(this,arguments)}}function openLoginFBBlockCookies(){window.open("https://www.facebook.com/plugins/chat/incognito_login/","","width = 450, height = 470")}async function proccessCartItemData(t){let e=t&&t.items&&t.items.length?t:await getCartInfoData();return e.attributes.omgFbChatTokenId||(abandonedCartUpdateAttributeOneTime=!0,e=await updateCartAttribute()),checkCartAbandoned=e,new Promise((function(t,o){window.OMGFBJquery.ajax({url:window.rootLinkChat+"backend/storefront/facebook-message.php",data:{action:"proccessCartAbandoned",cartInfo:e,shop:window.shopFbChat},dataType:"JSON",type:"POST"})}))}function updateCartAttribute(t="",e=""){const o={};if("revenue-no"===t||"revenue-yes"===t)o.omgFbChatAnalyticRevenue="revenue-yes"===t?e:"No";else{let t=localStorage.getItem(window.shopFbChat+"_omgfbc_deTokenId");t&&(o.omgFbChatDeTokenId=t),o.omgFbChatTokenId=tokenId}return new Promise((function(t,e){window.OMGFBJquery.ajax({type:"POST",url:"/cart/update.js",dataType:"json",data:{attributes:o},success:function(e){t(e)},error:function(t){e(t)}})}))}function getCartInfoData(){return new Promise((function(t,e){window.OMGFBJquery.ajax({type:"GET",url:"/cart.js",dataType:"json",success:function(e){t(e)},error:function(t){e(t)}})}))}function iconChatClickAvailable(){let t=0,e=!1;const o=setInterval(()=>{let n=window.OMGFBJquery(".fb-customerchat.fb_invisible_flow.fb_iframe_widget iframe");t++,t>40&&clearInterval(o),n.length&&!e&&(windowWidth>1025&&(e=!0,"1"==facebookChatSettings.auto_display?n.addClass("fb_customer_chat_bounce_in_v2"):n.addClass("fb_customer_chat_bounce_out_v2")),windowWidth<=1025&&"100%"===n.css("max-height")&&(e=!0,n.css("max-height","0"),setTimeout(()=>{n.css("max-height","0")},300))),windowWidth>1025&&n.length&&n.hasClass("fb_customer_chat_bounce_in_v2")&&"0"==facebookChatSettings.auto_display&&(n.removeClass("fb_customer_chat_bounce_in_v2"),clearInterval(o))},50);let n=windowWidth;window.OMGFBJquery(window).resize(()=>{window.OMGFBJquery(window).width()!=n&&(n=document.body.clientWidth)}),setInterval(()=>{let t=window.OMGFBJquery(".fb-customerchat.fb_invisible_flow.fb_iframe_widget iframe");if(t.length){t=window.OMGFBJquery(".fb-customerchat.fb_invisible_flow.fb_iframe_widget iframe");let e=t.width()||400;window.OMGFBJquery(".fb-customerchat.fb_invisible_flow.fb_iframe_widget iframe[class*=fb_customer_chat_bounce_in]").length&&t.removeClass("fb_customer_chat_bounce_out_v2"),t.css("width")&&(e=parseInt(t.css("width"),10));const o=(n-e)/100*parseInt(facebookChatSettings.position);t.css("left",o),window.OMGisCustomPositionPopup&&(window.OMGFBJquery("#OMG-position-popup").remove(),window.OMGFBJquery("head").append(``))}},500),window.OMGFBJquery(document).on("click",".ot-fb-logo",(function(){facebookChatSettings.contact_information&&Number(facebookChatSettings.contact_information.status)&&facebookChatSettings.abTests.get_contact_infor_Feb_2022&&isAvailableWorkContact||(window.OMGFBJquery(".OMG-FB-Chat > div[id]").length?windowWidth<1025&&"1"==facebookChatSettings.chat_type&&window.OMGFBJquery(".ot-fb-logo.redirect_icon").length?processFbBoxChat():(isClickLoadingCustom=!0,window.OMGFBJquery(".ot-fb-logo").addClass("ot-fb-logo-loading")):(window.OMGFBJquery(".ot-fb-logo").removeClass("ot-fb-logo-loading"),processFbBoxChat()))}))}function iconChatClickUnavailable(){if(!(facebookChatSettings.working_time&&"messOpt"===facebookChatSettings.working_time.not_available_option&&windowWidth<=1025)){if(facebookChatSettings.working_time&&"messOpt"!==facebookChatSettings.working_time.not_available_option){const t=setInterval(()=>{window.OMGFBJquery("#fb-root").length&&(window.OMGFBJquery(".ot-fb-logo").css("z-index","99999999999999"),window.OMGFBJquery("#fb-root .fb_iframe_widget iframe").addClass("ot-fb-hide"),clearInterval(t))},50)}isDefaultMode&&window.OMGFBJquery(".otFacbookChat").append(' '),window.OMGFBJquery(document).on("click",".ot-fb-logo, .facebook-chat-button-custom",(function(){window.OMGFBJquery(".available-work-container").hasClass("ot-fb-hide")?window.OMGFBJquery(".fb-customerchat.fb_invisible_flow.fb_iframe_widget iframe").hasClass("fb_customer_chat_bounce_in_v2")&&facebookChatSettings.working_time&&"messOpt"===facebookChatSettings.working_time.not_available_option?processFbBoxChat("not-available"):window.OMGFBJquery(".available-work-container").removeClass("ot-fb-hide").addClass("ot-fb-flex"):closeNotAvailableOpt()}))}}function setTimeCreateChat(){if(facebookChatSettings.page_target&&"0"!==facebookChatSettings.page_target){const t=window.location.pathname;let e="";if("/"===t)e="template-index";else if(t.startsWith("/collections/"))e="template-collection";else if(t.startsWith("/products/"))e="template-product";else if(t.startsWith("/cart"))e="template-cart";else if(t.startsWith("/search"))e="template-search";else if(t.startsWith("/pages/")){e=t.replace("/pages/","")}if("1"===facebookChatSettings.page_target){if(facebookChatSettings.specific_pages.indexOf(e)<0)return window.OMGFBJquery("#fb-root").addClass("ot-fb-hide"),void console.log("Not specifics page")}else if("2"===facebookChatSettings.page_target){if(facebookChatSettings.exclude_pages.indexOf(e)>=0)return window.OMGFBJquery("#fb-root").addClass("ot-fb-hide"),void console.log("excludes page")}}let t="";if("2"==facebookChatSettings.status_connect&&(t=makeHtml(),makeSettingsCustomerChat()),!facebookChatSettings.hasOwnProperty("enable_fb_chat_btn")||facebookChatSettings.enable_fb_chat_btn&&1==facebookChatSettings.enable_fb_chat_btn){window.OMGFBJquery(".otFacbookChat").append(t);facebookChatSettings.position>50?window.OMGFBJquery(".icon-text-content").addClass("icon-text-content-left"):window.OMGFBJquery(".icon-text-content").addClass("icon-text-content-right"),getStyleCustom(),window.OMGFBJquery(window).resize(()=>{window.OMGFBJquery(window).width()!=windowWidth&&getStyleCustom(document.body.clientWidth)}),"0"==facebookChatSettings.auto_display&&windowWidth>1024&&"default"!==facebookChatSettings.display_mode&&window.OMGFBJquery("#fb-root").addClass("ot-fb-hide")}}function initClassShowIconChatFB(){if(window.OMGFBJquery(".ot-fb-logo").addClass("omgfb-hidden-icon"),(window.OMGFBJquery(".fb_dialog_content iframe").length||window.OMGFBJquery(".OMG-FB-Chat > div[id]").length)&&window.OMGFBJquery(".ot-fb-logo").length){let t=0;const e=setInterval(()=>{t++,t>1e3&&clearInterval(e),isClickLoadingCustom&&!window.OMGFBJquery(".OMG-FB-Chat > div[id]").length&&(window.OMGFBJquery(".ot-fb-logo").removeClass("ot-fb-logo-loading"),facebookChatSettings.contact_information&&Number(facebookChatSettings.contact_information.status)&&facebookChatSettings.abTests.get_contact_infor_Feb_2022&&isAvailableWorkContact?(window.OMGFBJquery(".omg-contact-info-button-link").removeClass("ot-fb-logo-loading"),window.OMGFBJquery(".omg-contact-info").addClass("ot-fb-hide")):isDefaultMode&&"0"==facebookChatSettings.chat_type&&window.OMGFBJquery(".ot-fb-logo").remove(),processFbBoxChat("",!0),clearInterval(e))},50);window.OMGFBJquery(".ot-fb-logo").removeClass("omgfb-hidden-icon")}else setTimeout(()=>{initClassShowIconChatFB()},10)}function makeHtml(t=""){const e=facebookChatSettings.theme_color,o=facebookChatSettings.icon_type;let n=windowWidth>=1025?facebookChatSettings.icon_text:"";const a=facebookChatSettings.icon_text_color,i=facebookChatSettings.tab_color,s=facebookChatSettings.tab_size,c=facebookChatSettings.tab_style,r=n?"has_text":"none_text";let d="28px";"medium"==s?d="32px":"large"==s&&(d="36px");const l=`color: ${a}; background-color: ${i}; line-height: ${d};`,g=iconHtml?""+iconHtml[o]:"",u=` ${n}`,f="1"==facebookChatSettings.chat_type?"redirect_icon":"";let p="",m="";isDefaultMode||(m=` \n \n ${g}\n \n ${u}\n `),(isDefaultMode&&1==facebookChatSettings.chat_type&&windowWidth<1025||isDefaultMode)&&(m=`\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n `);const b=facebookChatSettings.working_time&&"messOpt"===facebookChatSettings.working_time.not_available_option&&facebookChatSettings.abTests.available_working_time_Aug_2021?` \n \n \n \n \n \n \n \n ${convertHtml(facebookChatSettings.working_time.fb_messages)} \n \n \n \n \n \n \n \n \n \n \n \n Leave us a message\n \n \n `:"",w=facebookChatSettings.working_time&&"emailOpt"===facebookChatSettings.working_time.not_available_option&&facebookChatSettings.abTests.available_working_time_Aug_2021?` \n \n \n \n \n \n \n \n Leave us a message \n \n Email \n \n \n \n Subject \n \n \n \n Message \n \n \n \n Submit\n \n `:"",h=setInterval(()=>{window.OMGFBJquery(".fb_iframe_widget.fb_invisible_flow").length>0&&!window.OMGFBJquery(".fb_iframe_widget.fb_invisible_flow").hasClass("fb-customerchat")&&(window.OMGFBJquery(".fb_iframe_widget.fb_invisible_flow").addClass("fb-customerchat"),clearInterval(h))},50);let _=0;const C=setInterval(()=>{_+=1,_>50&&clearInterval(C),window.FB&&windowWidth<1025&&(FB.XFBML.parse(),clearInterval(C))},50);let k="";return facebookChatSettings.abTests&&facebookChatSettings.abTests.intergrate_instagram_Oct_2021&&facebookChatSettings.instagram&&facebookChatSettings.instagram.username&&(k=` \n \n =1025?"30":"36"}" height="${isDefaultMode?"40":windowWidth>=1025?"30":"36"}" viewBox="0 0 534 534" fill="none" xmlns="http://www.w3.org/2000/svg">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n `),p+="contact"===t?""+m:` ${m}\n ${k}\n ${b}\n ${w}`,p}function convertHtml(t){return t.replace(//g,">")}function callInitFaceBook(){let t=!1;var e,o,n,a,i;window.fbAsyncInit=function(){FB.init({appId:appIdFB,autoLogAppEvents:!0,xfbml:!0,version:"v13.0"}),FB.Event.subscribe("messenger_checkbox",(function(e){if("rendered"==e.event)console.log("Plugin was rendered"),trackingFrontWidgetCampaign("impression_addToCartWidget");else if("checkbox"==e.event){const o=e.state;if(t&&trackingFrontWidgetCampaign("click_addToCartWidget"),"checked"==o){if(FB.AppEvents.logEvent("MessengerCheckboxUserConfirmation",null,{app_id:appIdFB,page_id:facebookChatSettings.page_info.id,user_ref:uniqueRef,ref:refAddCartWidget}),window.OMGFBJquery(".ot-addcart-widget-notion").empty(),window.OMGFBJquery(".ot-addcart-widget-notion").text(""+(addCartWidgetSettings?addCartWidgetSettings.text_subscribed:"")),"product"===__st.p&&__st.rid){let t=__st.rid,e=window.shopFbChat+"_omgFbChatListProductChecked",o=localStorage.getItem(e)?JSON.parse(localStorage.getItem(e)):[];o.includes(t)||(o.push(t),localStorage.setItem(e,JSON.stringify(o)))}}else if("unchecked"==o){if(window.OMGFBJquery(".ot-addcart-widget-notion").empty(),window.OMGFBJquery(".ot-addcart-widget-notion").text(""+(addCartWidgetSettings?addCartWidgetSettings.text_not_subscribed_yet:"")),"product"===__st.p&&__st.rid&&t){let t=__st.rid,e=window.shopFbChat+"_omgFbChatListProductChecked",o=localStorage.getItem(e)?JSON.parse(localStorage.getItem(e)):[];o.includes(t)&&(o=o.filter(e=>e!=t),o.length||window.OMGFBJquery('input[name="attributes[omgFbChatCheckboxTokenId]"]').remove(),localStorage.setItem(e,JSON.stringify(o)))}t=!0}window.OMGFBJquery(".ot-addcart-widget").removeClass("ot-addcart-prepare"),console.log("Checkbox state: "+o)}else"not_you"==e.event?console.log("User clicked 'not you'"):"hidden"==e.event&&(console.log("Plugin was hidden"),window.OMGFBJquery(".ot-addcart-widget").css("display","none"))})),FB.Event.subscribe("customerchat.dialogShow",(function(){isDefaultMode&&trackingFrontWidgetCampaign("click_showFBMessageBox")})),FB.Event.subscribe("customerchat.dialogHide",(function(){isDefaultMode&&trackingFrontWidgetCampaign("click_showFBMessageBox")}))},e=document,o="script",n="OMG_facebook-jssdk",i=e.getElementsByTagName(o)[0],e.getElementById(n)||((a=e.createElement(o)).id=n,a.src=`https://connect.facebook.net/${facebookChatSettings.language}/sdk/xfbml.customerchat.js`,i.parentNode.insertBefore(a,i))}function availableWorkingTime(t,e=""){let o=!1,n=!1;if(t.working_time){const a=t.working_time;if(!Number(a.status)){let i="";const s={"-12":"Pacific/Midway","-11":"Pacific/Midway","-10":"Pacific/Honolulu","-9":"America/Anchorage","-8":"America/Los_Angeles","-7":"America/Cambridge_Bay","-6":"America/Mexico_City","-5":"America/Atikokan","-4":"Canada/Atlantic","-3":"America/Sao_Paulo","-2":"America/Noronha","-1":"Atlantic/Azores",0:"Europe/London",1:"Europe/Amsterdam",2:"Europe/Bucharest",3:"Asia/Baghdad",4:"Asia/Muscat",5:"Asia/Karachi",6:"Asia/Almaty",7:"Asia/Bangkok",8:"Asia/Hong_Kong",9:"Asia/Irkutsk",10:"Australia/Brisbane",11:"Asia/Vladivostok",12:"Pacific/Auckland"};i=Object.keys(s).indexOf(a.time_zone)>-1?s[a.time_zone]:a.time_zone;let c=(new Date).toLocaleString("en-US",{timeZone:i});c=new Date(c);const r=c.getFullYear(),d=c.getMonth(),l=c.getDay(),g=c.getHours(),u=c.getMinutes();let f;if(t.weekdays){f=t.weekdays;let o=[];for(const t of Object.values(f))o.push(parseInt(t.id));-1===o.indexOf(parseInt(l))&&(n=setAvailableWork(e))}const p=new Date(r,d,l,g,u).getTime();let m=a.start.split(":");const b=new Date(r,d,l,m[0],m[1]).getTime();let w=a.end.split(":"),h=new Date(r,d,l,w[0],w[1]).getTime();if(b>=h){let t=l+1;7===t&&(t=0),h=new Date(r,d,t,w[0],w[1]).getTime()}o=!(bp)&&setAvailableWork(e)}}return n||o}function makeSettingsCustomerChat(){const t=facebookChatSettings.device_target;availableWorkingTime(facebookChatSettings)?(isNotAvailableWork=!0,iconChatClickUnavailable(),facebookChatSettings.contact_information&&!Number(facebookChatSettings.contact_information.status)&&facebookChatSettings.abTests.get_contact_infor_Feb_2022&&(window.OMGFBJquery(".ot-fb-logo").remove(),window.OMGFBJquery("#fb-root").remove(),window.OMGFBJquery(".facebook-chat-button-custom").remove())):iconChatClickAvailable(),"1"==t?window.OMGFBJquery(".otFacbookChat").addClass("hide-mobile"):"2"==t&&window.OMGFBJquery(".otFacbookChat").addClass("hide-desktop")}function setAvailableWork(t){return"contact"===t||(console.log("Facebook live chat by Omega: Not in the working days"),facebookChatSettings.working_time&&"noneOpt"===facebookChatSettings.working_time.not_available_option&&window.OMGFBJquery(".otFacbookChat").addClass("ot-fb-hide")),!0}function getStyleCustom(t=windowWidth){const e=setInterval(()=>{if(!isDefaultMode&&window.OMGFBJquery(".ot-fb-logo").length&&"auto"!==window.OMGFBJquery(".ot-fb-logo").css("z-index")&&window.OMGFBJquery(".ot-fb-logo").width()50&&t>=1025?(t-g)/100*parseInt(a)+(r-60):(t-g)/100*parseInt(a),f=(t-window.OMGFBJquery(".available-work-container").outerWidth())/100*parseInt(a)+"px !important;";let p=400;t\n .otFacbookChat .available-work-container {\n left: ${f};\n bottom: ${i+c+6}px !important;\n }\n \n .otFacbookChat .omg-contact-info {\n left: ${m};\n bottom: ${i+c+6}px !important;\n }\n \n .otFacbookChat .fb_dialog .fb_dialog_content iframe {\n ${b}\n }\n\n .fb-customerchat.fb_iframe_widget iframe {\n bottom: ${i+c}px !important;\n }\n \n .OMG-instagram-icon {\n bottom: ${i}px !important;\n left: ${u}px !important;\n }\n \n .OMG-instagram-hover {\n bottom: ${w+16}px !important;\n }\n \n .facebook-chat-button-custom,\n .ot-fb-logo.facebook-chat-button,\n .fb_dialog .fb_dialog_content iframe,\n .fb_dialog .fb_dialog_content > div,\n .OMG-FB-Chat > div[id] {\n bottom: ${i}px !important;\n left: ${l}px !important;\n }\n \n .ot-fb-logo.facebook-chat-button {\n direction: ${a>50?"rtl":"ltr"};\n }\n \n @media screen and (max-width: 1025px) {\n .fb-customerchat.fb_iframe_widget iframe {\n left: auto !important;\n bottom: ${i+50}px !important;\n ${s}\n }\n \n .fb_dialog .fb_dialog_content iframe,\n .fb_dialog .fb_dialog_content #_no-clickjacking-0,\n .fb_dialog .fb_dialog_content #_no-clickjacking-1 {\n ${s}\n }\n \n .fb_dialog.fb_dialog_mobile {\n bottom: ${i}px!important;\n }\n }\n \n ${o}\n `,window.OMGFBJquery(".otFacbookChat").append(n),t>=1025)window.OMGFBJquery((function(){const t=window.OMGFBJquery(".fb_dialog .fb_dialog_content iframe, .ot-fb-logo, .OMG-instagram-icon"),e=window.OMGFBJquery(".OMG-instagram-icon");window.OMGFBJquery(t).hover((function(){e.addClass("OMG-instagram-hover")}),(function(){e.removeClass("OMG-instagram-hover")}))}));else{const t=window.OMGFBJquery(".fb_dialog .fb_dialog_content iframe, .ot-fb-logo, .OMG-instagram-icon");window.OMGFBJquery(".OMG-instagram-icon").addClass("OMG-instagram-hover"),t.off("hover")}clearInterval(e)}},50)}function closeNotAvailableOpt(){window.OMGFBJquery(".available-work-container").removeClass("ot-fb-flex").addClass("ot-fb-hide")}function submitEmailForm(){const t=window.OMGFBJquery(".fb-email-form__email input").val(),e=window.OMGFBJquery(".fb-email-form__subject input").val(),o=window.OMGFBJquery(".fb-email-form__textarea textarea").val();return new Promise(n=>{window.OMGFBJquery.ajax({url:window.rootLinkChat+"backend/storefront/facebook-message.php",data:{email:t,subject:e,message:o,action:"sendMessage",shop:shopFbChat},dataType:"JSON",type:"POST"}).done((function(t){}))})}function fbMessageNotAvailable(){window.OMGFBJquery(document).on("click","#unavailable-working-fb-chat",(function(){processFbBoxChat("not-available")}))}function trackingClickButton(t){return new Promise(e=>{window.OMGFBJquery.ajax({url:window.rootLinkChat+"backend/storefront/facebook-message.php",data:{action:"trackingClickButton",type:t,shop:shopFbChat},dataType:"JSON",type:"POST"}).done((function(t){}))})}function trackingFrontWidgetCampaign(t){return new Promise(e=>{window.OMGFBJquery.ajax({url:window.rootLinkChat+"backend/storefront/facebook-message.php",data:{action:"trackingFrontWidgetCampaign",type:t,shop:shopFbChat},dataType:"JSON",type:"POST"}).done((function(t){}))})}function processFbBoxChat(t="",e=!1){window.OMGFBJquery("#fb-root").addClass("ot-fb-show").removeClass("ot-fb-hide"),"not-available"===t&&closeNotAvailableOpt();const o=window.OMGFBJquery(".fb-customerchat.fb_invisible_flow.fb_iframe_widget iframe");if(windowWidth<1025&&!e){if(window.OMGFBJquery(".ot-fb-logo.redirect_icon").length>0){let t=facebookChatSettings.page_info.id;window.open("https://www.messenger.com/t/"+t,"_blank")}trackingFrontWidgetCampaign("click_showFBMessageBox")}else window.OMGFBJquery(".fb-customerchat").children().length||(FB.Event.subscribe("customerchat.show",processShowDialog("callToGetPopup",e)),window.OMGFBisGetPopup="getPopup"),o.hasClass("fb_customer_chat_bounce_out_v2")||!o.hasClass("fb_customer_chat_bounce_out_v2")&&!o.hasClass("fb_customer_chat_bounce_in_v2")?FB.Event.subscribe("customerchat.show",processShowDialog(OMGFBisGetPopup,e)):FB.Event.subscribe("customerchat.hide",processHideDialog(OMGFBisGetPopup)),trackingFrontWidgetCampaign("click_showFBMessageBox")}function processShowDialog(t="",e){!t&&FB.CustomerChat&&FB.CustomerChat.show(!0),"callToGetPopup"==t&&FB.XFBML.parse(),(!e||windowWidth>1024)&&omgFBAddRemoveClassShowHide()}function processHideDialog(t=""){!t&&FB.CustomerChat&&FB.CustomerChat.hideDialog(),omgFBAddRemoveClassShowHide("remove")}function omgFBAddRemoveClassShowHide(t="add"){const e="remove"===t?"0":"calc(100% - 80px)",o="remove"===t?"fb_customer_chat_bounce_out_v2":"fb_customer_chat_bounce_in_v2",n="remove"===t?"fb_customer_chat_bounce_in_v2":"fb_customer_chat_bounce_out_v2",a=setInterval(()=>{let i=window.OMGFBJquery(".fb-customerchat.fb_invisible_flow.fb_iframe_widget iframe");i.length&&("add"===t&&setTimeout(()=>{i=window.OMGFBJquery(".fb-customerchat.fb_invisible_flow.fb_iframe_widget iframe"),"fb_bounce_in_v2"===i.css("animation-name")&&i.width()>247&&i.addClass("omg-fb-set-height")},250),i.css("max-height",e),i.removeClass(n).addClass(o),clearInterval(a))},50)}function omgContentWelcomePopup(t){let e="omg-welcome-popup-button-round-rectangle";1===Number(welcomePopupWidgetSettings.call_action_shape)&&(e="omg-welcome-popup-button-pill"),2===Number(welcomePopupWidgetSettings.call_action_shape)&&(e="omg-welcome-popup-button-rectangle");let o=`\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n `;const n=()=>{t||localStorage.setItem(shopFbChat+"_omgfbc_welcome_popup",!0),OMGFBJquery(".omg-welcome-popup").addClass("ot-fb-hide")};OMGFBJquery(document).on("click",".omg-welcome-overlay",()=>{OMGFBJquery(".omg-welcome-popup").addClass("ot-fb-hide")}),OMGFBJquery(document).on("click",".omg-welcome-popup-button",()=>{trackingFrontWidgetCampaign("click_WelcomePopupWidget"),n()}),OMGFBJquery(document).on("click",".omg-welcome-popup-close",()=>{n()});const a=setInterval(()=>{OMGFBJquery(".omg-welcome-popup-title1")&&OMGFBJquery(".omg-welcome-popup-title1").length&&(OMGFBJquery(".omg-welcome-popup-title1").text("\n "+(1==welcomePopupWidgetSettings.with_discount_code?welcomePopupWidgetSettings.top_heading.text_discount:welcomePopupWidgetSettings.top_heading.text)),OMGFBJquery(".omg-welcome-popup-title2").text("\n "+(1==welcomePopupWidgetSettings.with_discount_code?welcomePopupWidgetSettings.heading_hightlight.text_discount.replace("{discount_value}",welcomePopupWidgetSettings.discount_code.value):welcomePopupWidgetSettings.heading_hightlight.text)),OMGFBJquery(".omg-welcome-popup-title3").text("\n "+(1==welcomePopupWidgetSettings.with_discount_code?welcomePopupWidgetSettings.bottom_text.text_discount:welcomePopupWidgetSettings.bottom_text.text)),OMGFBJquery(".omg-welcome-popup-link").text("\n "+(1==welcomePopupWidgetSettings.with_discount_code?welcomePopupWidgetSettings.button_heading.text_discount.replace("{discount_value}",welcomePopupWidgetSettings.discount_code.value):welcomePopupWidgetSettings.button_heading.text)),OMGFBJquery(".omg-welcome-popup-bottom").text("\n "+(1==welcomePopupWidgetSettings.with_discount_code?welcomePopupWidgetSettings.desccription_text.text_discount:welcomePopupWidgetSettings.desccription_text.text)),clearInterval(a))});return o}function omgContentContactInfo(){const t=availableWorkingTime(contactInfoSettings,"contact"),e=availableWorkingTime(facebookChatSettings);if(t&&!Number(contactInfoSettings.working_time.status)){if(isNotAvailableWork)return window.OMGFBJquery(".ot-fb-logo").remove(),window.OMGFBJquery("#fb-root").remove(),window.OMGFBJquery(".facebook-chat-button-custom").remove(),"";if(window.OMGFBJquery(".ot-fb-logo, .facebook-chat-button-custom, .fb_dialog_content iframe").addClass("ot-fb-hide"),0==parseInt(facebookChatSettings.show_after))window.OMGFBJquery(".ot-fb-logo, .facebook-chat-button-custom, .fb_dialog_content iframe").removeClass("ot-fb-hide");else{const t=parseInt(facebookChatSettings.show_after)>5?1e3*parseInt(facebookChatSettings.show_after):5e3;window.OMGFBJquery("#fb-root").addClass("ot-fb-hide"),setTimeout((function(){window.OMGFBJquery("#fb-root").removeClass("ot-fb-hide"),window.OMGFBJquery(".ot-fb-logo, .facebook-chat-button-custom, .fb_dialog_content iframe").removeClass("ot-fb-hide")}),t)}return trackingFrontWidgetCampaign("show_IconFbLiveChat"),""}isAvailableWorkContact=!0,trackingFrontWidgetCampaign("impression_getContactInfor"),window.OMGFBJquery(document).on("click",".ot-fb-logo, .facebook-chat-button-custom",(function(){trackingFrontWidgetCampaign("click_getContactInfor"),window.OMGFBJquery(".omg-contact-info").hasClass("ot-fb-hide")?window.OMGFBJquery(".fb-customerchat.fb_invisible_flow.fb_iframe_widget iframe").hasClass("fb_customer_chat_bounce_in_v2")?processFbBoxChat("not-available"):window.OMGFBJquery(".omg-contact-info").removeClass("ot-fb-hide"):OMGFBJquery(".omg-contact-info").addClass("ot-fb-hide")})),window.OMGFBJquery(document).on("click",".otFacbookChat .omg-contact-info-button-link",()=>{if(windowWidth<1025&&"1"==facebookChatSettings.chat_type){let t=facebookChatSettings.page_info.id;window.open("https://www.messenger.com/t/"+t,"_blank")}});let o=`\n \n \n \n \n \n \n `;if(contactInfoSettings.form_builder.email&&Number(contactInfoSettings.form_builder.email.checked)&&(o+=` \n \n `),contactInfoSettings.form_builder.phone&&Number(contactInfoSettings.form_builder.phone.checked)&&(o+=` \n \n `),contactInfoSettings.form_builder.message&&Number(contactInfoSettings.form_builder.message.checked)&&(o+=` \n \n `),o+=` \n Send\n \n `,!facebookChatSettings.hasOwnProperty("enable_fb_chat_btn")||facebookChatSettings.enable_fb_chat_btn&&Number(facebookChatSettings.enable_fb_chat_btn)&&!e){const t=' \n C\n h\n a\n t\n \n w\n i\n t\n h\n \n m\n e\n s\n s\n e\n n\n g\n e\n r\n ';if(parseInt(facebookChatSettings.show_after)){const e=parseInt(facebookChatSettings.show_after)>5?1e3*parseInt(facebookChatSettings.show_after):5e3;setTimeout((function(){OMGFBJquery(".omg-contact-info-content").append(t)}),e)}else o+=""+t;o+=" \n ",trackingFrontWidgetCampaign("show_IconFbLiveChat")}else{getStyleCustom(),window.OMGFBJquery(window).resize(()=>{window.OMGFBJquery(window).width()!=windowWidth&&getStyleCustom(document.body.clientWidth)}),o+=" ",o+=makeHtml("contact");const t=()=>{if(window.OMGFBJquery(".ot-fb-logo").length){facebookChatSettings.position>50?window.OMGFBJquery(".icon-text-content").addClass("icon-text-content-left"):window.OMGFBJquery(".icon-text-content").addClass("icon-text-content-right")}else setTimeout(()=>{t()},10)};t()}o+=' ',checkMobileShowContact();const n=setInterval(()=>{OMGFBJquery(".omg-contact-info-title1")&&OMGFBJquery(".omg-contact-info-title1").length&&(OMGFBJquery(".omg-contact-info-title1").text(contactInfoSettings.subject_settings.text),OMGFBJquery(".omg-contact-info-title2").text(""+contactInfoSettings.message),clearInterval(n))});return o}function sendContactInfo(t){t.preventDefault(),window.OMGFBJquery(".omg-contact-info-button").addClass("omg-loading-button");const e=document.getElementById("omg-info-email"),o=document.getElementById("omg-info-phone"),n=document.getElementById("omg-info-message");let a="",i="",s="";return e&&(a=e.value.trim()),o&&(i=o.value.trim()),n&&(s=n.value.trim()),new Promise(t=>{window.OMGFBJquery.ajax({url:window.rootLinkChat+"backend/storefront/facebook-message.php",data:{action:"saveContactInformation",shop:shopFbChat,contactInfo:{email:a,phone:i,message:s}},dataType:"JSON",type:"POST"}).done(()=>{setTimeout(()=>{window.OMGFBJquery(".omg-contact-info-button").removeClass("omg-loading-button"),OMGFBJquery(".omg-contact-info").addClass("ot-fb-hide"),e&&(e.value=""),o&&(o.value=""),n&&(n.value=""),window.OMGFBJquery(".omg-contact-notification-send").html("Your contact infomation is send successfully."),window.OMGFBJquery(".omg-contact-notification-send").animate({bottom:24},400),setTimeout(()=>{window.OMGFBJquery(".omg-contact-notification-send").animate({bottom:-60},400)},3e3)},300)}).fail(()=>{setTimeout(()=>{window.OMGFBJquery(".omg-contact-info-button").removeClass("omg-loading-button"),OMGFBJquery(".omg-contact-info").addClass("ot-fb-hide"),window.OMGFBJquery(".omg-contact-notification-send").html("Your contact infomation is send successfully."),window.OMGFBJquery(".omg-contact-notification-send").animate({bottom:24},400),setTimeout(()=>{window.OMGFBJquery(".omg-contact-notification-send").animate({bottom:-60},400)},3e3)},300)})})}function checkMobileShowContact(){setInterval(()=>{window.OMGFBJquery(".fb-customerchat.fb_invisible_flow.fb_iframe_widget iframe").hasClass("fb_mpn_mobile_bounce_out")&&window.OMGFBJquery("#fb-root").removeClass("ot-fb-show").addClass("ot-fb-hide")},50)}function showFbChat(){window.OMGFBJquery(".OMG-FB-Chat > div[id]").length?(isClickLoadingCustom=!0,window.OMGFBJquery(".omg-contact-info-button-link").addClass("ot-fb-logo-loading")):(window.OMGFBJquery(".omg-contact-info-button-link").removeClass("ot-fb-logo-loading"),window.OMGFBJquery(".omg-contact-info").addClass("ot-fb-hide"),window.OMGFBJquery("#fb-root").removeClass("ot-fb-hide"),processFbBoxChat("",!0))} Browse Close menu Cart "Close Cart" USD USD JPY CAD INR GBP EUR AUD USD JPY CAD INR GBP EUR AUD My Account 0 Your Cart is Empty. Shop Now 1-919-676-8002 info@bevko.com 0 Shop By Category Immune Health All Immune Health Vitamin C Bone & Minerals Heart & Blood Health Blood Pressure Health Blood Sugar Health Cardiovascular Health Cholesterol Health Hair, Skin, & Nails Skin Health Detoxification Topical Skin Care Ingestible Skin Care Hormone Health Thyroid Health Sleep Health Mood Health Daily Personal Health Women's Health Men's Health Daily Health Energy Protein Sports & Fitness Joint Health Weight Control Vision Health Digestive Health Bone & Body Health Bone Health Detoxification Antioxidant Protection Cognitive Performance Memory Health Mood Health Sleep Health Energy Calmatrine | 90 Capsules $28.95 View Full Product Details Calmatrine | 90 Capsules Your Price: Default Title - $28.95 USD Quantity Add to Cart Methyl Folate Plus | 90 Capsules $31.95 View Full Product Details Methyl Folate Plus | 90 Capsules Your Price: Default Title - $31.95 USD Quantity Add to Cart Shop By Brand Bevko Products Bevko Products A - H Bevko Products Biocidin Biomatrix Nutrition DaVinci Labs Dee Cee Labs DEVA Nutrition Douglas Labs I - R Integrative Therapeutics Life Extension Microbiome Labs Natural Vitality NutriBiotic Other Products (Non-Bevko Brand) Pure Encapsulations S - Z Source Naturals B-Complex 100 | 120 Capsules $32.95 View Full Product Details B-Complex 100 | 120 Capsules Your Price: Default Title - $32.95 USD Quantity Add to Cart B12 with Active Folate Liquid | 2 fl oz. $32.95 View Full Product Details B12 with Active Folate Liquid | 2 fl oz. Your Price: Default Title - $32.95 USD Quantity Add to Cart About Bevko About Us Contact Us Bevko Blog Rewards info@bevko.com 1-919-676-8002 Close Menu Shop By Category Immune Health All Immune Health Vitamin C Bone & Minerals Heart & Blood Health Blood Pressure Health Blood Sugar Health Cardiovascular Health Cholesterol Health Hair, Skin, & Nails Skin Health Detoxification Topical Skin Care Ingestible Skin Care Hormone Health Thyroid Health Sleep Health Mood Health Daily Personal Health Women's Health Men's Health Daily Health Energy Protein Sports & Fitness Joint Health Weight Control Vision Health Digestive Health Bone & Body Health Bone Health Detoxification Antioxidant Protection Cognitive Performance Memory Health Mood Health Sleep Health Energy Shop By Brand Bevko Products Bevko Products A - H Bevko Products Biocidin Biomatrix Nutrition DaVinci Labs Dee Cee Labs DEVA Nutrition Douglas Labs I - R Integrative Therapeutics Life Extension Microbiome Labs Natural Vitality NutriBiotic Other Products (Non-Bevko Brand) Pure Encapsulations S - Z Source Naturals About Bevko About Us Contact Us Bevko Blog Rewards USD JPY CAD INR GBP EUR AUD My Account 1-919-676-8002 info@bevko.com Home / News / Avocado Banana Pancakes | Heart Healthy Recipes Avocado Banana Pancakes | Heart Healthy Recipes By Bevko Vitamins January 22, 2021 Heart Healthy: Avocado Banana Pancakes When you’re dealing with heart/blood profile complications, your diet is more important than ever! Choosing foods that are healthy and rich in micronutrients can lay the groundwork for a turn around in your health. January is National Blood Donation month and we are focused on equipping our followers with the tools and knowledge to take care of your long-term blood/heart health. This recipe was borrowed from the American Heart Association where you can learn a lot about heart health, blood health, and connect with others in your area that can be a source of knowledge and support. Avocado Banana Pancakes Heart healthy breakfast is tough. This dish allows you and the whole family to enjoy! Ingredients 2/3 cup whole-grain flour 1/2 cup all-purpose flour 1 tablespoon brown sugar (packed) 2 teaspoons baking powder 1 ripe, fresh avocado (halved, peeled, pitted, cubed, divided) 1 cup sliced, ripe banana 1 cup reduced-fat milk 2 large eggs 1 teaspoon vanilla extract Directions In a medium bowl mix together all-purpose flour, brown sugar and baking powder. In a blender, combine half of the avocado pieces, half of the banana slices, milk, eggs and vanilla; puree until smooth. Add wet ingredients to dry ingredients and stir until just combined; batter may be lumpy. Lightly Spray a griddle or skillet with nonstick spray and heat over medium heat. Pour 1/4 cup of batter for each 4-inch pancake. Cook until bottom is lightly brown and bubbles begin to burst, about 2 minutes. Turn and continue cooking until golden brown. Serve warm with remaining avocados and bananas. Tags: blood health, blood pressure, blood sugar, heart health, recipes ← Older Post Newer Post → Newsletter Recent Post Vitamin C Flush Protocol Apr 08, 2022 Vegan Alfredo Pasta Feb 28, 2022 Vegan Chipotle Tacos Feb 28, 2022 Vegan Shepherds Pie Feb 28, 2022 Vegan Broccoli Mac & Cheese Feb 28, 2022 14-Day Sugar Free Challenge! Jan 24, 2022 Motivational Factors You're Not Thinking About Jan 24, 2022 Tips For Staying Healthy On A Budget Jan 19, 2022 New Year's Soup Recipe Jan 19, 2022 Bye Bye Coffee?! Dec 06, 2021 Categories alternative workouts antioxidants blood circulation blood health blood pressure blood sugar burpees cardio core crunches dance desserts detox detoxification dynamic stretching elliptical exercise fall fitness food goal setting health heart heart health hiit hula hoops immunity jazzercising jogging martial arts mental health military new year nutrition plank protein pumpkin pushups recipes recovery rowing running self improvement Sharon situps soup sports static stretching strength stretching swimming walking weight loss winter workouts yoga What Our Customers Are Saying Bevko is my primary source of supplements that I have used for over 20 years with considerable benefit to my health. Great quality. I recommend them highly. Rebecca C. Bevko Vitamins are first rate. I have been taking them for over 10 years and they really give me much more energy. You can either order online or give them a call. I usually call. Samuel J. Bevko Vitamins will always have my business. No nasty preservatives or fillers. I would recommend Bevko Vitamins to anyone! Tiffany M. Bevko Vitamins sells high quality vitamins and supplements. You can rest assured they are of the highest quality and value. I have used their products for over fifteen years. Denise K. Stay In The Loop SUBMIT Thanks for signing up! Here is your Coupon Code: Save 10% copy code Become a Bevko Vitamins Insider and get 10% off your order today. Plus we'll keep you up-to-date with the latest news. Contact Us SMS Offers Terms & Conditions Shipping & Returns Privacy Policy Terms of Service Refund policy 1-919-676-8002 info@bevko.com Secure Checkout We use encrypted SSL security to ensure that your credit card information is 100% protected. © 2022 Bevko Vitamins. All rights reserved. Added to cart! 49900 19900 USD {{name}} {{#if variation}} {{variation}} {{else}} {{/if}} {{#properties}} {{#each this}} {{#if this}} {{@key}}: {{this}} {{/if}} {{/each}} {{/properties}} − Reduce item quantity by one + Increase item quantity by one {{#if discountsApplied}} {{{originalLinePrice}}} {{{linePrice}}} {{else}} {{{linePrice}}} {{/if}} {{#if discountsApplied}} {{#each discounts}} {{ this.title }} {{/each}} {{/if}} {{/items}} Total {{{totalPrice}}} {{#if totalCartDiscount}} {{{totalCartDiscount}}} {{/if}} View My Cart Checkout Check out with − Reduce item quantity by one + Increase item quantity by one − Reduce item quantity by one + Increase item quantity by one My Cart Total: Continue Shopping View My Cart Checkout Free shipping when you spend over $99 Spend SYMBOL$x More to Unlock Free Shipping Within Spend XX More To Unlock Free Shipping You Have Qualified for Free Shipping Try our New Melaserine! Free Shipping On Orders Over $x Within Free Shipping Over SYMBOL$x Within You Have Achieved Free Shipping Free shipping when you order over XX ou Have Qualified for Free Shipping ' + t.discount_item_html); document.querySelectorAll("#appikon-remove-discount-code").forEach(item => { item.addEventListener('click', event => { deleteCookie("appikon_discount_" + window.appikonDiscount.settings.shop); delete window.appikon.discount_code; triggerDiscountCalculation(); }) }); } else { $(".appikon-discounts-wrapper").show(); } } $(".wholesale-cart-total span").css("text-decoration", "none"); reloadCurrency(); } function showAppikonNotificatioBar(notificationMessage, selector, placement) { if(notificationMessage && notificationMessage.trim()) { var notificationBarElement = " X " + notificationMessage.trim() + " " // Remove old notification $('#appikon-notification-bar').remove() if(selector) { var selectorElement = $(selector).first(); if(selectorElement.length){ "before" == placement.toLowerCase() ? selectorElement.before(notificationBarElement) : selectorElement.after(notificationBarElement) } } else { window.appikonDiscount.settings.global.headerSelector.split(",").forEach(function (t) { t = $.trim(t) "#shopify-section-header" == t ? $(t).after(notificationBarElement) : "main" == t ? $(t).prepend(notificationBarElement) : $(t).before(notificationBarElement) }) } $("#appikon-notification-bar").length > 0 && $("#appikon-notification-bar").show() } } function showAppikonNotification(notificationMessage) { // Show product page Notification if(isAppikonProductPage && window.appikonDiscount.settings.show_product_notification_bar) { showAppikonNotificatioBar(notificationMessage, window.appikonDiscount.settings.notification_placement_settings.final_selector, window.appikonDiscount.settings.notification_placement_settings.placement) } if(isAppikonCartPage && window.appikonDiscount.settings.show_cart_notification_bar) { showAppikonNotificatioBar(notificationMessage, window.appikonDiscount.settings.notification_cart_placement_settings.final_selector, window.appikonDiscount.settings.notification_cart_placement_settings.placement) } } function checkTermsAccepted () { if (window.appikonDiscount.settings.turn_off_agree_checkbox) { return true; } if (window.appikonDiscount.settings.terms_selector) { let customSelectors = window.appikonDiscount.settings.terms_selector.split(','); for (let i = 0; i < customSelectors.length; i++) { let termsSelector = "input[type='checkbox']" + customSelectors[i]; let termsSelectorChecked = "input[type='checkbox']" + customSelectors[i] + ":checked"; if ($(termsSelector).length > 0 && $(termsSelectorChecked).length === 0) { return false; } } } else { let termsSelector = "input[type='checkbox']#agree"; let termsSelectorChecked = "input[type='checkbox']#agree:checked"; if ($(termsSelector).length > 0 && $(termsSelectorChecked).length === 0) { return false; } } return true; } function DiscountedPricingCheckout(t) { if (checkTermsAccepted()) { $(t.target).prop("disabled", "disabled"); window.appikon.action_type = "checkout"; var i = [], a = []; $("[name^='attributes']").each(function () { var t = $(this), e = $(this).attr("name"), n = { name: e = e.replace(/^attributes\[/i, "").replace(/\]$/i, ""), value: t.val() }; if ("" != n.value) switch (t[0].tagName.toLowerCase()) { case "input": "checkbox" == t.attr("type") ? t.is(":checked") && a.push(n) : a.push(n); break; default: a.push(n) } }); var r = ""; if (window.Shopify.locale) { i.push("locale=" + window.Shopify.locale); } $("[name='note']").length && (r = $("[name='note']")[0].value), window.appikon.cart.note_attributes = a, window.appikon.cart.note = r, r.length && i.push("note=" + encodeURIComponent(r)), a.length && a.map(function (t) { i.push("attributes" + encodeURIComponent("[" + t.name + "]") + "=" + encodeURIComponent(t.value)) }), $.ajax({ cache: !1, contentType: "application/json; charset=utf-8", dataType: "json", type: "POST", url: window.appikonDiscount.settings.app_root_url, data: JSON.stringify(window.appikon), success: function (t) { t.invoice_url ? (i.length && (t.invoice_url += "?" + i.join("&")), setTimeout(function () { window.location.href = t.invoice_url }, 500) ) : ( t.invoice_url = "/checkout", t.discount_code && (setCookie("adp-pr-id", t.pr_id, 14), i.push("discount=" + t.discount_code)), i.length && (t.invoice_url += "?" + i.join("&")), window.location.href = t.invoice_url ) }, error: function () { window.location.href = "/checkout" } }) } } function notifyCalculationsInProgress() { return hasFlag("notify_about_disocunt_calculations") && (hasFlag("disable_checkout_button") ? (checkoutBtn.attr("disabled", !0).val("Please wait").text("Please wait").css("border-color", originalBorder).css("background-color", originalBackground), setTimeout(enableCheckoutButton, 4e3)) : isAppikonCartPage && showAppikonNotification(window.appikonDiscount.settings.calculation_note, {})), !0 } function hideCalculationsInProgressNote() { return hasFlag("notify_about_disocunt_calculations") && (hasFlag("disable_checkout_button") ? enableCheckoutButton() : $("#appikon-notification-bar").text() == window.appikonDiscount.settings.calculation_note + "X" && $("#appikon-notification-bar").fadeOut("slow")), !0 } function getRefreshDelayValue() { var t = ""; return t = isMobileBrowser() ? window.appikonDiscount.settings.buyx.delay_mobile_refresh_cart : window.appikonDiscount.settings.buyx.delay_refresh_cart, 1e3 * parseFloat(t) } function disableCheckoutButtons() { var checkoutSelectors = getCheckoutSelectors(); $.each(checkoutSelectors, function(index, selector){ $(selector).prop('disabled', true); }); } function enableCheckoutButtons() { var checkoutSelectors = getCheckoutSelectors(); $.each(checkoutSelectors, function(index, selector){ $(selector).prop('disabled', false); }); } function checkForTestOffer() { window.appikon.test_offer_token = getCookie('shopacado-test-offer-token'); window.appikon.test_offer_name = getCookie('shopacado-test-offer-name'); console.log("testing offer: " + getCookie('shopacado-test-offer-name')); if (window.appikon.test_offer_token && window.appikon.test_offer_token != "") { showTestOfferNotice(); } } function showTestOfferNotice() { var noticeHtml = ` Testing Offer: ` + window.appikon.test_offer_name + ` Stop Testing `; $("#shopacado-banner").remove(); $("body").prepend(noticeHtml); $("body").addClass("push-down"); $("#shopacado-stop-test-offer").click( function () { removeTestOfferNotice(); }); } function removeTestOfferNotice() { $("#shopacado-banner").remove(); $("body").removeClass("push-down"); deleteCookie("shopacado-test-offer-token"); deleteCookie("shopacado-test-offer-name"); delete window.appikon.test_offer_token; delete window.appikon.test_offer_name; } function calculateAppikonDiscount() { disableCheckoutButtons(); var xhrAppikonDiscountRequest = $.ajax({ cache: !1, type: "POST", url: window.appikonDiscount.settings.app_root_url, data: JSON.stringify(window.appikon), dataType: "json", contentType: "application/json; charset=utf-8" }).done(function(data) { window.appikonResponseStore.discountResponse = data; fillCartData(true); enableCheckoutButtons(); }).fail(function(jqXHR, status, error) { console.error("calculateAppikonDiscount", error, jqXHR.responseText) enableCheckoutButtons(); }) } function prepareAppikonDiscountRequestData(appikonDrawerCart) { window.appikon.cart = appikonDrawerCart; window.appikon.adp_page = 'cart'; window.appikon.discounts = {}; window.appikon.cart_product_ids = []; appikonDrawerCart.items.forEach(function(item){ var appikon_item = item; ["product_title", "total_discount", "discounts", "grams", "vendor", "taxable", "gift_card", "url", "image", "featured_image", "requires_shipping", "product_type", "product_description", "variant_title", "variant_options"].map(function(k) { delete appikon_item[k] }); window.appikon.cart_product_ids.push(appikon_item.product_id); }); if(window.appikon.cart.items.length > 0) { // Get Product Metadata var xhrAppiconCartViewJSONRequet = $.ajax({ cache: !1, type: "GET", url: "/cart?view=appikon.json", dataType: "text", beforeSend: function(xhr){xhr.setRequestHeader('x-requested-with', '');} }).done(function(data) { var cartMetadataResponse = JSON.parse(data) window.appikon.cart_collection_ids = []; window.appikon.cart.items.forEach(function(item){ cartMetadataResponse.items.forEach(function(cartMetadataItem){ if(cartMetadataItem.id == item.id) { item["collection_ids"] = cartMetadataItem.collectionIds; } }); window.appikon.cart_collection_ids.push(item.collection_ids); }); calculateAppikonDiscount(); }).fail(function(jqXHR, status, error) { console.error("prepareAppikonDiscountRequestData", error, jqXHR.responseText) }) } } function isCartChange(newCart) { var isCartChange = false; var oldCart = window.appikonResponseStore.cartJS; var cartPropertiesToCompare = ["original_total_price", "total_discount", "total_weight", "item_count", "items_subtotal_price"]; $.each(cartPropertiesToCompare, function (i, prop) { if (oldCart[prop] !== newCart[prop]) { isCartChange = true; return false; // break the loop } }); if(!isCartChange && oldCart.items.length !== newCart.items.length) { isCartChange = true; } if(!isCartChange) { $.each(oldCart.items, function(i, oldItem){ var newItem = newCart.items[i]; if(oldItem.id !== newItem.id || oldItem.quantity !== newItem.quantity) { isCartChange = true; return false; // break the loop } }) } return isCartChange; } function triggerDiscountCalculation() { if (window.appikonResponseStore.cartJS) { prepareAppikonDiscountRequestData(window.appikonResponseStore.cartJS); } else { getAppikonDiscontData(); } } function processCartData(ajaxCartData) { if (isCartChange(ajaxCartData)) { window.appikonResponseStore.cartJS = ajaxCartData; prepareAppikonDiscountRequestData(ajaxCartData) } else { fillCartData(); } } async function addCompareAtPrice(cart) { var totalCompareAtPrice = 0; await Promise.all(cart.items.map(async (item) => { $.ajax({ url: '/products/' + item.handle + '.js', dataType: 'json', async: false, success: function(product){ for (const variant of product.variants) { item["compare_at_price"] = item["price"]; if (variant.id == item.variant_id && variant.compare_at_price != null) { item["compare_at_price"] = variant.compare_at_price; break; } }; const compareAtLinePrice = item["compare_at_price"] * item["quantity"]; totalCompareAtPrice += compareAtLinePrice; item["compare_at_line_price"] = compareAtLinePrice; } }); })); cart.compare_at_total_price = totalCompareAtPrice; return cart; } function getAppikonDiscontData() { if (window.appikonDiscount.settings.use_compare_at_price === true){ var xhrAppiconCartRequet = $.ajax({ cache: !1, type: "GET", url: "/cart.js", dataType : "json" }).done(async function(ajaxCartData) { let cartWithCompareAt = await addCompareAtPrice(ajaxCartData); processCartData(cartWithCompareAt); }).fail(function(jqXHR, status, error) { console.error("getAppikonDiscontData", error, jqXHR.responseText) }) }else{ var xhrAppiconCartRequet = $.ajax({ cache: !1, type: "GET", url: "/cart.js", dataType : "json" }).done(function(ajaxCartData) { processCartData(ajaxCartData); }).fail(function(jqXHR, status, error) { console.error("getAppikonDiscontData", error, jqXHR.responseText) }) } } window.appikon.calculateDiscounts = getAppikonDiscontData; function insertCartTitleSnippet(productTitleSelector) { var isInserted = false; if (!productTitleSelector) { return isInserted; } var selectors = productTitleSelector.split(","); $.each(selectors, function(index, selector) { var elems = $(selector); if (elems.length) { var cart = window.appikon.cart; elems.each(function (index) { if (index < cart.items.length && $(this).find(".appikon-cart-item-success-notes").length === 0) { $(this).html($(this).html() + ""); isInserted = true; } }); } }) return isInserted; } function insertCartLinePriceSnippet(cartLinePriceSelector) { var isInserted = false; if (!cartLinePriceSelector) { return isInserted; } var selectors = cartLinePriceSelector.split(","); $.each(selectors, function(index, selector) { var elems = $(selector); if (elems.length) { var cart = window.appikon.cart; elems.each(function (index) { if (index < cart.items.length && $(this).find(".appikon-cart-item-line-price").length == 0) { $(this).html("" + $(this).html() + ""); isInserted = true; } }); } }) return isInserted; } function insertCartUnitPriceSnippet(cartUnitPriceSelector) { var isInserted = false; if (!cartUnitPriceSelector) { return isInserted; } var selectors = cartUnitPriceSelector.split(","); $.each(selectors, function(index, selector) { var elems = $(selector); if (elems.length) { var cart = window.appikon.cart; elems.each(function (index) { if (index < cart.items.length && $(this).find(".appikon-cart-item-unit-price").length == 0) { $(this).html("" + $(this).html() + ""); } }); } }) return isInserted; } function insertCartSubTotalSnippet(cartSubTotalSelector) { var isInserted = false; if (cartSubTotalSelector) { var selectors = cartSubTotalSelector.split(","); $.each(selectors, function(index, selector) { var elem = $(selector).eq(0); if(elem && elem.length && elem.find(".wholesale-original-cart-total").length == 0) { elem.html("" + "" + elem.html() + "" + "" + "" + " " + "" + "" + " "); isInserted = true; } }) } return isInserted; } function insertCartSnippets(cartType) { var productTitleInserted = null; var linePriceInserted = null; var subtotalInserted = null; var unitPriceInserted = null; if (cartType === 'DRAWER') { productTitleInserted = insertCartTitleSnippet(window.appikonDiscount.settings.drawer_cart_product_title_selector); linePriceInserted = insertCartLinePriceSnippet(window.appikonDiscount.settings.drawer_cart_line_price_selector); unitPriceInserted = insertCartUnitPriceSnippet(window.appikonDiscount.settings.drawer_cart_unit_price_selector); subtotalInserted = insertCartSubTotalSnippet(window.appikonDiscount.settings.drawer_cart_sub_total_selector); } else if (cartType === 'REGULAR') { productTitleInserted = insertCartTitleSnippet(window.appikonDiscount.settings.regular_cart_product_title_selector); linePriceInserted = insertCartLinePriceSnippet(window.appikonDiscount.settings.regular_cart_line_price_selector); unitPriceInserted = insertCartUnitPriceSnippet(window.appikonDiscount.settings.regular_cart_unit_price_selector); subtotalInserted = insertCartSubTotalSnippet(window.appikonDiscount.settings.regular_cart_sub_total_selector); } return productTitleInserted || linePriceInserted || subtotalInserted || unitPriceInserted; } function fillCartData(forceFill) { setTimeout(function() { if(window.appikonResponseStore.discountResponse) { var drawerCartSnippets = insertCartSnippets("DRAWER"); var regularCartSnippets = false; if (window.appikonDiscount.settings.is_dynamic_insertion) { regularCartSnippets = insertCartSnippets("REGULAR"); } if(drawerCartSnippets || regularCartSnippets || forceFill == true) { appikonDelegate(window.appikonResponseStore.discountResponse); } } }, 400); } function refreshAppikonData() { getAppikonDiscontData(); } function handleCartRequests(url) { var isCartRequestProcessed = true; if ((url.includes('/cart.js') || url.includes('/cart.json') || url.includes('/cart/add.js') || url.includes('/cart/update.js') || (window.appikonDiscount.settings.is_dynamic_insertion && url.includes('/cart/change')) || url.includes('/cart/clear.js') || url.endsWith('/cart') || url.includes('/cart?')) && !url.includes('/cart?view=appikon.json')) { if (url.includes('/cart/add.js') || url.endsWith('/cart') || url.includes('/cart?') ) { $.ajax({ cache: !1, type: "GET", url: "/cart.js", dataType: "json" }).done(function (ajaxCartData) { //processCartData(ajaxCartData); }).fail(function (jqXHR, status, error) { console.error(error) }) } else { isCartRequestProcessed = false; } } return isCartRequestProcessed; } $(document).ready(function () { if(window.appikonDiscount.settings.dp.installed) { refreshAppikonData(); if (window.appikonDiscount.settings.listen_to_ajax_cart_events_strategy) { // Intercept AJAX requests var origOpen = window.XMLHttpRequest.prototype.open; window.XMLHttpRequest.prototype.open = function() { this.addEventListener('load', async function() { var url = this.responseURL; if(!handleCartRequests(url)) { var ajaxCartData = JSON.parse(this.responseText); if (window.appikonDiscount.settings.use_compare_at_price === true) { var cartWithCompareAt = await addCompareAtPrice(ajaxCartData); processCartData(cartWithCompareAt); } else { processCartData(ajaxCartData); } } }); origOpen.apply(this, arguments); }; // Intercept fetch requests const originalFetch = window.fetch; window.fetch = function() { return new Promise((resolve, reject) => { originalFetch.apply(this, arguments) .then((response) => { var url = response.url; if(!handleCartRequests(url)) { $.ajax({ cache: !1, type: "GET", url: "/cart.js", dataType: "json" }) // response.clone().json().then(ajaxCartData => { // processCartData(ajaxCartData); //}); } resolve(response); }) .catch((error) => { reject(response); }) }); } } else { var appikonCallRepeater = setInterval(refreshAppikonData,1000); } } }); var appikonCookieCode = getCookie("appikon_discount_" + window.appikonDiscount.settings.shop); appikonCookieCode && (window.appikon.discount_code = appikonCookieCode); if (hasFlag("disable_checkout_button")) { var checkoutBtn = $(window.appikonDiscount.settings.global.appikonCheckoutSelector); var originalCheckoutContent = checkoutBtn.val() || checkoutBtn.html(); var originalBorder = checkoutBtn.css("border-color"); var originalBackground = checkoutBtn.css("background-color"); var enableCheckoutButton = function () { checkoutBtn.html(originalCheckoutContent).val(originalCheckoutContent).removeAttr("disabled").removeAttr("border-color").removeAttr("background-color") }; } if (isAppikonCartPage) { var skipIds = getCookie("adp-skip-ids"); skipIds && (window.appikon.skip_ids = skipIds) } window.appikon.multicurrency = {}; if (window.Shopify && window.Shopify.currency) { window.appikon.multicurrency.currency = window.Shopify.currency.active; window.appikon.multicurrency.rate = window.Shopify.currency.rate; } if (window.theme && window.theme.moneyFormat) { window.appikon.multicurrency.moneyFormat = window.theme.moneyFormat; } else if (window.theme && window.theme.strings && window.theme.strings.moneyFormat) { window.appikon.multicurrency.moneyFormat = window.theme.strings.moneyFormat; } else if (window.Theme && window.Theme.strings && window.Theme.strings.moneyFormat) { window.appikon.multicurrency.moneyFormat = window.Theme.strings.moneyFormat; } else if (window.Theme && window.Theme.moneyFormat) { window.appikon.multicurrency.moneyFormat = window.Theme.moneyFormat; } else if (window.mwSwitcherObjects && window.mwSwitcherObjects.shop.money_format){ window.appikon.multicurrency.moneyFormat = window.mwSwitcherObjects.shop.money_format; } window.appikon.adp_page.length && window.appikonDiscount.settings.dp.installed > 0 && ($.ajax({ cache: !1, type: "POST", url: window.appikonDiscount.settings.app_root_url, data: JSON.stringify(window.appikon), dataType: "json", contentType: "application/json; charset=utf-8", success: function (t) { appikonDelegate(t); } })), setTimeout(function () { "function" == typeof ga && ga(function (t) { window.gaclientId = t.get("clientId") }) }, 1e3), hasFlag("refresh_on_qty_plush_minus") && ($(document).on("click", window.appikonDiscount.settings.plus_minus_qty_selector, function () { var t = this; isAppikonCartPage && setTimeout(function () { $(t).parents('form[action*="/cart"]').submit() }, 500) }), hasFlag("refresh_on_qty_change_hard") && (window.appikon.cartSubmit = function () { isAppikonCartPage && setTimeout(function () { $('form[action*="/cart"]').submit() }, 500) }, $(document).ready(function () { setTimeout(function () { var t, e = document.querySelectorAll(window.appikonDiscount.settings.plus_minus_qty_selector); for (t = 0; t < e.length; t++) e[t].setAttribute("onclick", "window.appikon.cartSubmit();") }, 1200) }))); var debutEditBtnExists = $("div.cart__edit button.btn.cart__edit--active:visible").length > 0, qtyInputEvent = debutEditBtnExists ? "" : "input "; if (isAppikonCartPage && $(document).on(qtyInputEvent + "change", "input.appikon-quantity, input[name^='updates['], input[id^='updates_'], input[id^='Updates_']", function (t) { var e = this; t.preventDefault(), "" != $.trim($(this).val()) && (setTimeout(function () { hasFlag("quantities_refresh_over_submit") ? window.location.reload() : $(e).parents('form[action*="/cart"]').submit() }, getRefreshDelayValue())) }), isAppikonCartPage && ($(document).on("click", "td.cart-qty span.icon-plus, td.cart-qty span.icon-minus", function (t) { t.preventDefault(), $(this).parents('form[action*="/cart"]').submit() }), !window.appikonDiscount.settings.is_dynamic_insertion && $(document).ajaxSuccess(function (t, e, n) { n && "/cart/change.js" == n.url && window.location.reload() }), 1 != hasFlag("avoid_default_qty_input_event_change") && (setTimeout(function () { $(".js-qty__adjust").off("click") }, 500), $(document).on("click", "div.js-qty .js-qty__adjust", function (t) { if(!window.appikonDiscount.settings.avoid_cart_quantity_adjustment) { t.preventDefault(); var e = parseInt($(this).parents("div.js-qty").find("input").val()); if ($(this).hasClass("js-qty__adjust--plus")) var n = e + 1; else n = e - 1; $(this).parents("div.js-qty").find("input").val(n).change() } else { $(this).parents("div.js-qty").find("input").change() } }))), $(document).on("click", "button#apply-appikon-discount", function (t) { t.preventDefault(); var discount_code_entered = $("input[id=appikon-discount-code]:visible").val().trim(); setCookieMinutes("appikon_discount_" + window.appikonDiscount.settings.shop, discount_code_entered, 5); window.appikon.discount_code = discount_code_entered; triggerDiscountCalculation(); }), $(document).on("click", "div#appikon-close-notification", function (t) { t.preventDefault(), setCookie("appikon_notifications_closed", 1, .01), $("#appikon-notification-bar").slideUp("slow") }), $(document).on("click", ".appikon-variants-container select.adp-variants", function () { $(this).children("option").length < 1 && alert("All item variants are out of stock") }), hasFlag("use_google_fonts")) { function insertGoogleFontStyle(t) { var e = document.head, n = document.createElement("link"); n.id = "adp_google_fonts_link", n.type = "text/css", n.rel = "stylesheet", n.href = "https://fonts.googleapis.com/css?family=" + t.join(","), e.appendChild(n) } }; }); }(window, document);