var jQueryRCT,script,current_script_url=document.currentScript.src,domain_name=current_script_url.replace("http://","").replace("https://","").split(/[/?#]/)[0],RCT_SITE_URL="",RCT_ASSETS_URL="",reconvertAjaxUrl=("localhost"===domain_name?(RCT_SITE_URL="http://localhost:4000/rtc_api/v1/",RCT_ASSETS_URL="http://localhost/stilyo-apps/reconvert/v1/"):"reconvert-stage.stilyoapps.com"==domain_name?(RCT_SITE_URL="https://stage-node.stilyoapps.com/rtc_api/v1/",RCT_ASSETS_URL="https://reconvert-stage.stilyoapps.com/v1/"):"cdn.stilyoapps.com"==domain_name||"stilyoapps.com"==domain_name||"www.stilyoapps.com"==domain_name||"reconvert-cdn.com"==domain_name?(RCT_SITE_URL="https://rct-service.stilyoapps.com/rtc_api/v1/",RCT_ASSETS_URL="https://reconvert-cdn.com/v1/"):"stage-cdn.stilyoapps.com"==domain_name||"prephp.stilyoapps.com"==domain_name?(RCT_SITE_URL="https://prenode.stilyoapps.com/rtc_api/v1/",RCT_ASSETS_URL="https://prephp.stilyoapps.com/reconvert/v1/"):"dev.stilyoapps.com"==domain_name?(RCT_SITE_URL="https://dev-rct-argo.stilyoapps.com/rtc_api/v1/",RCT_ASSETS_URL="https://dev.stilyoapps.com/reconvert/v1/"):"demo.stilyoapps.com"==domain_name?(RCT_SITE_URL="https://demo-node.stilyoapps.com/rtc_api/v1/",RCT_ASSETS_URL="https://demo.stilyoapps.com/reconvert/v1/"):"test-php.stilyoapps.com"==domain_name?(RCT_SITE_URL="https://test-node.stilyoapps.com/rtc_api/v1/",RCT_ASSETS_URL="https://test-php.stilyoapps.com/reconvert/v1/"):"stage-reconvert-ng.stilyoapps.com"==domain_name?(RCT_SITE_URL="https://stage-node-ng.stilyoapps.com/rtc_api/v1/",RCT_ASSETS_URL="https://stage-reconvert-ng.stilyoapps.com/reconvert/v1/"):"awsdev.stilyoapps.com"==domain_name?(RCT_SITE_URL="https://awsdev-node.stilyoapps.com/rtc_api/v1/",RCT_ASSETS_URL="https://awsdev.stilyoapps.com/reconvert/v1/"):"reconvert-php-dashboardstage.reconvert.com"==domain_name&&(RCT_SITE_URL="https://reconvert-node-dashboardstage.reconvert.com/rtc_api/v1/",RCT_ASSETS_URL="https://reconvert-php-dashboardstage.reconvert.com/reconvert/v1/"),RCT_SITE_URL+"store/reconvert"),RCTLoadStyle=function(e){var t=document.getElementsByTagName("head")[0],o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.href=e,o.media="all",t.appendChild(o)},RCT_shop=(RCTLoadStyle(RCT_ASSETS_URL+"assets/css/rct_cart_front.css"),Shopify.shop),rctShopInfo={},rctMainNote="";function RCTSetCookie(e,t,o){var a=new Date,o=(a.setTime(a.getTime()+24*o*60*60*1e3),"expires="+a.toUTCString());document.cookie=e+"="+t+";"+o+";path=/;SameSite=None; Secure"}function RCTGetCookie(e,t){for(var o=(e=null!=e?e:"flash_msg")+"=",a=document.cookie.split(";"),p="",r=0;r",jQueryRCT("body").append(t)),RCTbottomTimer(e.min,e.sec)):RCTremoveCookie("RCT-popup")},error:function(e,t){}})),jQueryRCT(document).on("click",".RCT-bar .close-btn",function(e){jQueryRCT(".RCT-bar,.RCT-topbar-style").remove(),RCTremoveCookie("RCT-popup")})}function RCTbottomTimer(e,t){var o=e<10?"0"+e:e,a=t<10?"0"+t:t;setInterval(function(){--a<0&&(a=59,--o<0&&jQueryRCT(".RCT-bar,.RCT-topbar-style").remove(),o=o<10?"0"+o:o),a=a<10?"0"+a:a,jQueryRCT(".RCT-bar .timer.minute").html(o+"m"),jQueryRCT(".RCT-bar .timer.sec").html(a+"s")},1e3)}function RCTcheckCart(e){var t="",o="",a=(null!=e&&""!=e&&(t="attributes[RCT-Revenue]="+e.additional_details,o="undefined"==e.note?"":e.note,o=""!=(rctMainNote=o)?"note="+o:""),t+"&"+o);a+="&update",jQueryRCT.ajax({method:"GET",url:"/cart.js?internal",dataType:"json",async:!1,success:function(e){void 0!==e.attributes&&jQueryRCT.ajax({url:"/cart/update.js",data:a,success:function(e){}})}})}function RCT_social_visitor(){var e=RCTgetParameterByName("RCT-media");null!=e&&""!=e&&jQueryRCT.ajax({url:reconvertAjaxUrl,type:"post",dataType:"json",data:{shop:RCT_shop,action:"social_visitor",refrence:e},success:function(e){var t;"success"==e.result&&(t=RCTremoveParam("RCT-media",window.location.href),window.history.pushState("","",t),e.page_name=encodeURIComponent(e.page_name),t=[{Section_name:"Social sharing"},{Template_name:e.page_name},{Original_order_name:e.order_name},{Original_order_id:e.order_id},{Section_id:"10"},{Template_id:e.page_id},{Action:e.action}],RCTSetCookie("RCT-Revenue",JSON.stringify(t),1))},error:function(e,t){}})}function RCTgetParameterByName(e){e=RegExp("[?&]"+e+"=([^&]*)").exec(window.location.search);return e&&decodeURIComponent(e[1].replace(/\+/g," "))}function RCTremoveParam(e,t){var o=t.split("?")[0],a=[],t=-1!==t.indexOf("?")?t.split("?")[1]:"";if(""!==t){for(var p=(a=t.split("&")).length-1;0<=p;--p)a[p].split("=")[0]===e&&a.splice(p,1);o=o+"?"+a.join("&")}return RCTrtrim(o,"?")}function RCTrtrim(e,t){return t=t||"s",e.replace(new RegExp("["+t+"]+$","g"),"")}function RCT_click_buy_now(){var t=RCTGetCookie("RCT-page-id","0"),o=RCTGetCookie("RCT-popup","0"),a=RCTGetCookie("RCT-popup-info","0"),p=jQueryRCT("select[name=id]").val()||meta.product.variants[0].id,r=jQueryRCT("input[name=quantity]").val()||1;jQueryRCT.getJSON("/cart.js",function(e){jQueryRCT.ajax({url:reconvertAjaxUrl,type:"post",async:!0,dataType:"json",data:{shop:RCT_shop,action:"buy_now_discount_update",product_id:__st.rid,selected_page_id:t,cart_data:e,variant_id:p,quantity:r,discount_id:o,popupInfo:a},success:function(e){"success"==e.result&&null!=e.cart_url?(console.log(`ReConvert redirect to ${e.cart_url}.`),window.location.href=e.cart_url):(e=`/cart/${p}:`+r,console.log(`ReConvert redirect to ${e}.`),window.location.href=e)},error:function(e,t){var o=`/cart/${p}:`+r;console.log(`ReConvert redirect to ${o}.`),window.location.href=o}})})}window.jQuery?(jQueryRCT=window.jQuery,RCTStoreReconMainFun()):window.Checkout&&window.Checkout.jQuery?(jQueryRCT=window.Checkout.jQuery,RCTStoreReconMainFun()):((script=document.createElement("SCRIPT")).src="https://code.jquery.com/jquery-3.4.0.min.js",script.type="text/javascript",script.onload=function(){jQueryRCT=window.jQuery,RCTStoreReconMainFun()},document.getElementsByTagName("head")[0].appendChild(script)),RCT_social_visitor();var page,checkOutfrmBtnObj,rctDiscountCode=RCTGetCookie("RCT-popup","0");null!=rctDiscountCode&&""!=rctDiscountCode&&("undefined"!=(page=__st.p)&&"product"==page&&jQueryRCT(document).ready(function(){var e=1,t=setInterval(function(){var o=document.querySelectorAll('button[data-testid="Checkout-button"],input[data-testid="Checkout-button"]');if(0