var gfp_aff_toolbar;;window.__goaffpro = {"pre_checkout_ref_input_data":{"input_label":"Referred By?","input_placeholder":"Referral Code"},"shop":"bda67a.myshopify.com","cookie_duration":604800,"checkout_page_callback":true,"scripts":[],"first_touch_or_last":"last_touch","identifiers":["ref","aff","wpam_id","click_id"],"noref_cookie_identifiers":["noref"],"integration":"shopify","force_callback":true,"partner_portal_subdomain":"arabianauras.goaffpro.com","customer_affiliate_connect_auto":false,"use_local_storage":false,"cart_level_tracking":true,"share_cart_clear_before_add":true,"autolink_ref_parameter":"ref","discount_cookie":"dcode"};var goaffpro_identifiers=["gfp_ref","ref","aff","wpam_id","click_id"],source_identifiers=["gfp_sub_id","sub_id","source","utm_source","tx_id","public_id"],gfp_additional=window.__goaffpro&&window.__goaffpro.identifiers,isFirstTouch=window.__goaffpro&&("first_touch"===window.__goaffpro.first_touch_or_last||"first_touch_nonblocking"===window.__goaffpro.first_touch_or_last),gfp_setOrganic=window.__goaffpro&&"first_touch"===window.__goaffpro.first_touch_or_last,useLocalStorage=window.__goaffpro&&window.__goaffpro.use_local_storage,gfp_discount_code_cookie=window.__goaffpro&&window.__goaffpro.discount_cookie||"dcode",gfp_no_ref_cookies=window.__goaffpro&&window.__goaffpro.noref_cookie_identifiers||["noref"];gfp_additional&&gfp_additional.forEach(function(o){goaffpro_identifiers.unshift(o)});var gfp_api_server="https://api2.goaffpro.com";window.goaffproOrder&&!window.goaffpro_order&&(window.goaffpro_order=window.goaffproOrder);var gfp_cookieManager={getCookie:function(o){if(useLocalStorage)return localStorage.getItem(o);const e=document.cookie.split("; ")||[];const r={};for(var i,t=0;t{})}}function removeRefFromCart(){const o=new URLSearchParams;return o.append("attributes[__ref]",""),o.append("attributes[__visit_id]",""),fetch("/cart/update.js",{method:"POST",body:o}).then(()=>{})}function gfpLoadScript(o,e){const r=document.createElement("script");r.src=o,r.async=!0,e&&(r.type=e),document.head.appendChild(r)}function showSiteStripeToolbar(){var o;gfp_aff_toolbar||!window.__goaffpro.aff_bar_config||(o=searchInQuery(["toolbar"],document.location.search)||gfpGetCookie("sitestripe"))&&(gfp_aff_toolbar=window.__goaffpro.aff_bar_config,gfp_aff_toolbar.affiliate_portal_link="https://"+window.__goaffpro.partner_portal_subdomain,gfp_aff_toolbar.ref_code=o,gfpLoadScript("https://static.goaffpro.com/sitestripe2.js"),gfp_cookieManager.setCookie("sitestripe",o))}function gfpConnectCustomer(){var o,e,r;window&&window.GFPConnect&&window.GFPConnect.customer&&window.__goaffpro.customer_affiliate_connect_auto&&(o=gfpGetCookie("ref"),e=gfpGetCookie(gfp_discount_code_cookie),(o||e)&&((r=new XMLHttpRequest).open("POST",gfp_api_server+"/connect_customer"),r.setRequestHeader("Content-Type","application/json;charset=UTF-8"),r.send(JSON.stringify({ref:o,shop:getShop(),discount_code:e,customer:window.GFPConnect.customer}))))}function goaffproShopifyStVariableFix(){if(window.__goaffpro.shopify_use_st_variable&&window.__st&&window.__st.pageurl&&!gfpGetCookie("ref"))return new URL(`https://${window.__st.pageurl}`).search}refcode&&refcode!==gfpGetCookie("ref")&&(gfp_cookieManager.setCookie("ref",refcode),gfp_remove_cookies(["source",gfp_discount_code_cookie,"discount_code","gfp_v_id"])),getRefCode()&&getSourceId()!==gfpGetCookie("source")&&(getSourceId()?gfpSetCookie("source",getSourceId()):gfp_cookieManager.deleteCookie("source")),gfpSetSource(),testForExpiration(),-1{checkoutPageCallback()}))}),window.addEventListener("goaffproTrackConversion",o=>{o&&o.detail&&goaffproTrackConversion(o.detail)}),window.addEventListener("goaffproReferralCode",o=>{o&&o.detail&&void 0!==o.detail.ref&&gfpGetCookie("ref")!==o.detail.ref&&(null===o.detail.ref||-1{checkoutPageCallback()})))}); !function(){let a;function t(){if(a=gfpGetCookie("ref"),a&&"organic"!==a){const o=window.__goaffpro.autolink_ref_parameter;if(o){var t=[];if(document.querySelectorAll("a").forEach(function(e){t.push(e)}),t&&0!==t.length){const r=/fb|messenger|twitter|instagram|musical_ly|bytedance/gim.test(navigator.userAgent);t.forEach(function(e){const t=e.href;if(t&&"string"==typeof t&&t.startsWith("http")){const n=new URL(e.href);!r&&n.hostname===document.location.hostname||n.searchParams.get(o)===encodeURIComponent(a)||(n.searchParams.set(o,a),e.href=n.href)}})}}}}var e;e=function(){t();const e=new MutationObserver(()=>function(n,o){let r=0;return(...e)=>{var t=(new Date).getTime();if(t-r>o)return r=t,n(...e)}}(t,2e3));e.observe(document.body,{attributes:!0,childList:!0,subtree:!0})},"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e),window.addEventListener("goaffproReferralCode",e=>{e&&e.detail&&void 0!==e.detail.ref&&a!==e.detail.ref&&t(e.detail.ref)})}(); undefined