!function(){var t={353:function(t,e,i){"use strict";i.r(e),i.d(e,{AppBridge:function(){return n}});class n{name="loloyal-cend-launcher";connected=!1;targetWindow=null;messageStack=[];constructor(t){this.BooM=t;let e=t=>{if(!t.data)return;let{source:i}=t.data;"loloyal-cend-app"===i&&(window.removeEventListener("message",e),this.connected=!0,this.targetWindow=this.BooM.MAIN_IFRAME?.contentWindow,this.#t())};window.addEventListener("message",e)}#e(t){this.messageStack.push(t)}#t(){this.messageStack.forEach(t=>{this.#i(t)}),this.messageStack=[]}#i(t){if(!this.connected){this.#e(t);return}this.targetWindow?.postMessage({source:this.name,payload:t},"*")}init(t){this.#i({action:"send_init_data",data:t})}navigate(t){this.#i({action:"navigate",data:{url:t}})}routeNavigate(t){this.#i({action:"route_navigate",data:t})}anchorNavigate(t){this.#i({action:"anchor_navigate",data:{key:t}})}openRuleDetail(t){this.#i({action:"open_rule_detail",data:{rule_id:t.rule_id,id:t.id,has_photos:t.has_photos}})}openCouponDetail(t){this.#i({action:"open_coupon_detail",data:{id:t.id}})}}},678:function(t,e,i){"use strict";i.r(e),i.d(e,{env:function(){return n}});let n={LOLOYAL_API_BASE_URL:"/apps/loloyal/api/v1/script/",LOLOYAL_WIDGET_URL:"https://static.loloyal.com/loloyal-cend/widget/index.html",LOLOYAL_WIDGET_VERSION:"0.5.3.1744197777886"}},713:function(t,e,i){"use strict";i.r(e),i.d(e,{linkTriggerWidget:function(){return o},useHashRedirect:function(){return a}});let n=["loloyal/home","#loloyal-home","#loloyal-waystoearn","#loloyal-waystoredeem","#loloyal-referral","#loloyal-vip","#loloyal-activity-coupons"];function o(t){let e=n.some(e=>!!window.location.href.includes(e)&&(t.currentLink=e,!0));e&&1===t.LAUNCHER_STATE&&t.startBtn&&t.startBtn.onclick()}function a(t){if(["www-jessenia-original.myshopify.com"].includes(window.Shopify.shop)&&n.push("jo-club/home"),"custype.myshopify.com"===window.Shopify.shop&&n.push("#custype-rewards-club"),window.addEventListener("popstate",()=>{o(t),t.appBridge.navigate(t.currentLink)}),"custype.myshopify.com"===window.Shopify.shop){let e=document.querySelectorAll('a[href="#loloyal/home"]'),i=document.querySelectorAll('a[href="#custype-rewards-club"]');[...e,...i].forEach(e=>{e.addEventListener("click",()=>{1===t.LAUNCHER_STATE&&t.startBtn&&t.startBtn.onclick()})})}let e=document.querySelectorAll('a[href^="#loloyal"]');if("custype.myshopify.com"===window.Shopify.shop){let t=document.querySelector('a[href="#custype-rewards-club"]');t&&e.push(t)}for(let i=0;i{e.target.href===window.location.href&&(e.preventDefault(),o(t),t.appBridge.navigate(t.currentLink))})}},367:function(t,e,i){"use strict";i.r(e),i.d(e,{getRenderLanguage:function(){return o}});var n=i("582");function o(t,e){let i=function(t,e){let i;return e&&(i=t.common.language_item.find(t=>t.id===e)),!i&&(i=t.common.language_item.find(t=>1===t.default_language)),i}(t,e);return((0,n.isMobile)()?t.mobile:t.desktop).language.find(t=>t.id===i.id)}},151:function(t,e,i){"use strict";i.r(e);var n=i("76"),o=i("353"),a=i("713"),s=i("746"),r=i("613"),l=i("890"),c=i("229"),d=i("972"),h=i("12"),u=i("777"),p=i("927"),m=i("582"),f=i("195"),y=i("172"),_=i("404"),g=i("859");(async t=>{let e;function i(){this.THREE_DAYS_IN_SECONDS=259200,this.BOOM_BOX=null,this.startBtn=null,this.LAUNCHER_IFRAME=null,this.LAUNCHER_BOX=null,this.COMPUTED_WIDTH_NODE=null,this.MAIN_IFRAME_BOX=null,this.MAIN_IFRAME=null,this.MAIN_IFRAME_CONTENT="",this.TEXT_BOX=null,this.ICON_BOX=null,this.CLOSE_BOX=null,this.LAUNCHER_STATE=1,this.timer=1,this.animatedWidth=150,this.textWidth=0,this.customerData={},this.renderData={},this.common=window.LOLOYAL_ONSITE?.frontend.launcher.common||{},this.desktop=window.LOLOYAL_ONSITE?.frontend.launcher.desktop||{},this.mobile=window.LOLOYAL_ONSITE?.frontend.launcher.mobile||{},this.customCSS=window.LOLOYAL_ONSITE?.frontend.css||{},this.frontendWidget=window.LOLOYAL_ONSITE?.frontend.widget||{},this.setting=window.LOLOYAL_ONSITE?.setting||{},this.permission=window.LOLOYAL_ONSITE?.plan.permission||{},this.currentLink="",this.placement="top",this.appBridge=new o.AppBridge(this),this.init()}if(await (0,y.getMetafieldData)(),i.prototype={constructor:i,init(){this.getBaseData(),(0,a.useHashRedirect)(this),(0,s.useMessage)(this),this.customized()},customized(){("24bbc2.myshopify.com"===Shopify.shop||"bm-ceshi.myshopify.com"===Shopify.shop)&&(this.placement="bottom")},getBaseData(){(0,l.widgetHTML)().then(t=>t.text()).then(async t=>{this.MAIN_IFRAME_CONTENT=t,(0,m.isMobile)()?this.renderData={...this.mobile,isHidden:this.common.hide_in_mobile,widget_size:(this.mobile.widget_size/100*.74).toFixed(4)}:this.renderData={...this.desktop,isHidden:this.common.hide_in_desktop,widget_size:(this.desktop.widget_size/100).toFixed(4)},this.renderData.launcher_edges=this.frontendWidget.launcher_edges,this.renderData.visibility=this.common.visibility,this.renderData.RTL_mode=this.setting.dir||1;let e=this.permission.widget_launcher_shape;!e&&(this.renderData.button_shape=30);let i=-1!==this.setting.order_limit&&this.setting.order_count>this.setting.order_limit,n=Math.floor(Date.now()/1e3)-this.setting.over_order_at>this.THREE_DAYS_IN_SECONDS;if(!i||!this.setting.is_free_plan){if(!i||this.setting.is_free_plan||!n){if(__st.cid)try{let t=await (0,l.getCustomer)();this.customerData=t;let e=2===t.state;if(e)return}catch(t){}this.createLauncher(),this.initStyle(),this.fixPlacementStyle()}}})},updateAnimatedWidth(t){if(2===this.renderData.display_method)this.animatedWidth=60;else{if(!this.COMPUTED_WIDTH_NODE&&(this.COMPUTED_WIDTH_NODE=this.LAUNCHER_IFRAME.cloneNode(!0),this.COMPUTED_WIDTH_NODE.style.visibility="hidden",this.COMPUTED_WIDTH_NODE.style.position="absolute",this.COMPUTED_WIDTH_NODE.style.display="block",this.COMPUTED_WIDTH_NODE.style.width="fit-content",this.LAUNCHER_IFRAME.parentNode.appendChild(this.COMPUTED_WIDTH_NODE)),t){let e=this.COMPUTED_WIDTH_NODE.querySelector(".loloyal-launcher-text");e&&(e.textContent=t)}this.animatedWidth=this.COMPUTED_WIDTH_NODE?.offsetWidth.toFixed(2)}this.LAUNCHER_STATE&&(this.LAUNCHER_BOX.style.width=`${this.animatedWidth}px`)},placementStyle(t){let e="top"===this.placement?"bottom":"top";return`${e}:${t}px`},placementMaxHeight:t=>`height:calc(100% - ${t+12}px)`,fixPlacementStyle(){if("top"===this.placement){let t=this.renderData.widget_size<1?1:this.renderData.widget_size,e=Number(getComputedStyle(this.LAUNCHER_BOX).height.replace(/[^\d+\.?\d]/g,""))*t+Number(getComputedStyle(this.BOOM_BOX).bottom.replace(/[^\d+\.?\d]/g,""))*t+16,i=` .loloyal-iframe-page{ ${this.placementStyle(e)}; ${this.placementMaxHeight(e)}; } `.trim();document.body.appendChild((0,d.createStyle)(i))}},initStyle(){let t=`.boom-launcher{position:fixed;${this.placementStyle(this.renderData.icon_vertical_space)};left:50px;z-index:2147483647;} #loloyal-launcher-box { display:block; } .loloyal-launcher-box{ height: 60px; transform: scale(${this.renderData.widget_size}); transition: width .2s; } @keyframes mainOpen{from{opacity:0} to{opacity:1;}} @keyframes mainClose{from{opacity:1} to{opacity:0;}} .loloyal-iframe-page{ position:relative; border-radius:${this.renderData.launcher_edges}px; position:fixed; ${this.placementStyle(134)}; background:#FFFFFF;max-height:640px;min-height:52px;height:calc(100% - 130px);width:368px;opacity:1;box-shadow:0 0 24px 0 rgb(0 0 0 / 5%);background: transparent;} .loloyal-iframe-page-open{animation:mainOpen 0.3s ease-in-out forwards;} .loloyal-iframe-page-close{animation:mainClose 0.3s ease-in-out forwards;} @media only screen and (max-width:450px){ .loloyal-iframe-page{left:0 !important;right:0;top:0;bottom:0 !important;height:100% !important;width:100%;max-height:unset !important;min-height:unset !important;max-width:unset !important;border-radius:unset;} .boom-main-iframe{border-radius:unset !important;} }`;1===this.renderData.icon_placement_side?t+=`.boom-launcher{left:${this.renderData.icon_horizontal_space}px;}.loloyal-launcher-box{transform-origin:left bottom;}.loloyal-iframe-page{left:${this.renderData.icon_horizontal_space}px;}`:t+=`.boom-launcher{left:unset;right:${this.renderData.icon_horizontal_space}px;}.loloyal-launcher-box{transform-origin:right bottom;}.loloyal-iframe-page{left:unset;right:${this.renderData.icon_horizontal_space}px;}`,document.body.appendChild((0,d.createStyle)(t));for(let t of[".loloyal-launcher-box",".boom-launcher",".loloyal-launcher-wrapper",".loloyal-on-mobile"])(0,u.mountCSS)(this.customCSS.custom_launcher,t);(0,u.mountCSS)(this.customCSS.custom_widget,".loloyal-iframe-page")},createLauncher(){let t=this.createLauncherFrame(),e=this.createLauncherStyleText(),i=this.createLauncherBox();if((0,d.createShadowDom)(i,t,e),this.createLauncherWrapper(i),this.renderData.isHidden&&(i.style.display="none"),this.hideByWhitelist(i),this.createWidgetIframe(),this.startBtn.onclick=(0,g.throttle)(()=>{this.handleStartBtnClick()},50),(0,a.linkTriggerWidget)(this),(0,p.isHideBySpecialPage)(this,Shopify.shop),"natural-focus-health.myshopify.com"===Shopify.shop){document.body.appendChild((0,d.createStyle)(` .loloyal-launcher-container__close { z-index: 1; position: absolute; right: -10px; top: -10px; display: flex; background-color: black; border-radius: 999px; align-items: center; justify-content: center; width: 36px; height: 36px; cursor: pointer; } .loloyal-launcher-container__close-icon { width: 20px; height: 20px; } `));let t=(0,d.createDiv)({class:"loloyal-launcher-container__close"});i.appendChild(t);let e=(0,d.createImg)({class:"loloyal-launcher-container__close-icon",url:"https://static.loloyal.com/i/c_end/closeWhite.svg",alt:"close loyalty application icon"});t.append(e),t.addEventListener("click",()=>{let t=document.querySelector(".boom-launcher");t instanceof HTMLElement&&(t.style.display="none")})}},createLauncherWrapper(t){let e=(0,d.createDiv)({class:(0,c.clsx)(["boom-launcher","loloyal-launcher-wrapper",(0,m.isMobile)()&&"loloyal-on-mobile"]),children:t,container:document.body});return this.BOOM_BOX=e,e},createLauncherButton(){let t=(0,d.createImg)({class:"loloyal-launcher-close-icon",url:"https://static.loloyal.com/i/c_end/closeWhite.svg",alt:"close loyalty application icon",style:(0,c.stylx)({display:"none"})});this.CLOSE_BOX=t;let e=(0,d.createImg)({class:"loloyal-launcher-icon",url:this.renderData.icon_url,alt:"loyalty application icon"}),i=(0,d.createDiv)({class:(0,c.clsx)(["loloyal-launcher-text","loloyal-primary-font"]),text:this.renderData.icon_text});this.TEXT_BOX=i,this.ICON_BOX=e;let n=[];n.push(t),3===this.renderData.display_method?n.push(i):2===this.renderData.display_method?n.push(e):n.push(e,i);let o=(0,d.createDiv)({class:"loloyal-launcher",children:n});return this.startBtn=o,o},createLauncherFrame(){let t=(0,d.createDiv)({class:(0,c.clsx)(["loloyal-launcher-container",(0,m.isMobile)()&&"loloyal-on-mobile"]),children:this.createLauncherButton()}),e=(0,d.createDiv)({class:"loloyal-launcher-frame",id:"boomLauncherIframe",children:t});return this.renderData.RTL_mode===n.READ_MODE_TYPE.RTL&&e.setAttribute("dir","rtl"),this.customCSS.custom_launcher&&e.appendChild((0,d.createStyle)(this.customCSS.custom_launcher)),this.LAUNCHER_IFRAME=e,e},createLauncherStyleText(){let t=(0,f.getShopFontFamily)(),e=(0,_.fontNameHandle)(t),i=` @import url('https://fonts.googleapis.com/css2?family=${e}&display=swap'); *{margin:0;padding:0;} .loloyal-launcher-frame,.loloyal-launcher-container{width:100%;height:100%;} .loloyal-launcher-close-icon{width:20px;height:20px;} .loloyal-launcher{position:relative;user-select:none;overflow:hidden;box-sizing:border-box;display:flex;justify-content:center;align-items:center;cursor:pointer;width:100%;height:100%;background:${this.renderData.launcher_color};border-radius:${this.renderData.button_shape}px;padding:0 20px;gap:12px;} .loloyal-launcher > * {position: relative;z-index: 2;} .loloyal-launcher:hover::before {content: '';position: absolute;z-index: 1;top: 0;bottom: 0;left: 0;right: 0;border-radius:${this.renderData.button_shape}px;background-color: rgba(0, 0, 0, 10%);} .loloyal-launcher-icon{width:30px;height:30px;flex-shrink:0;} .loloyal-launcher-text{ white-space:nowrap;color:${this.renderData.icon_text_color};font-size:16px;font-family: ${t}; }`;return i},createLauncherBox(){let t=(0,d.createDiv)({class:"loloyal-launcher-box"});return t.id="loloyal-launcher-box",2===this.renderData.display_method&&(t.style.width="60px"),this.LAUNCHER_BOX=t,t},handleStartBtnClick(){clearTimeout(this.timer),this.LAUNCHER_STATE?this.COMPUTED_WIDTH_NODE?this.handleStartBtnOpen():(this.updateAnimatedWidth(),requestAnimationFrame(()=>{this.handleStartBtnOpen()})):this.handleStartBtnClose();["unfazedshop.myshopify.com","bm-gg-00.myshopify.com"].includes(Shopify.shop)&&(this.LAUNCHER_BOX.style.display="block")},handleStartBtnOpen(){this.widgetInit(),l.default.statistics(),this.LAUNCHER_BOX.style.width="60px",this.LAUNCHER_STATE=0,this.timer=1,this.ICON_BOX.style.display="none",this.TEXT_BOX.style.display="none",this.CLOSE_BOX.style.display="block",this.MAIN_IFRAME_BOX.style.display="block",this.MAIN_IFRAME_BOX.classList.remove("loloyal-iframe-page-close"),this.MAIN_IFRAME_BOX.classList.add("loloyal-iframe-page-open"),("skinociti.myshopify.com"===Shopify.shop||"strokes-by-namrata-mehta.myshopify.com"===Shopify.shop)&&(this.BOOM_BOX.style.zIndex="2147483647")},handleStartBtnClose(){this.LAUNCHER_BOX.style.width=`${this.animatedWidth}px`,this.LAUNCHER_STATE=1,this.CLOSE_BOX.style.display="none",this.ICON_BOX.style.display="block",this.TEXT_BOX.style.display="block",this.TEXT_BOX.innerHTML=this.renderData.icon_text,this.MAIN_IFRAME_BOX.classList.remove("loloyal-iframe-page-open"),this.MAIN_IFRAME_BOX.classList.add("loloyal-iframe-page-close"),this.timer&&(this.timer=setTimeout(()=>{this.MAIN_IFRAME_BOX.style.display="none",clearTimeout(this.timer),this.timer=null},300)),"skinociti.myshopify.com"===Shopify.shop&&(this.BOOM_BOX.style.zIndex="99"),"strokes-by-namrata-mehta.myshopify.com"===Shopify.shop&&(this.BOOM_BOX.style.zIndex="2")},createWidgetIframe(){let[t,e]=(0,h.default)(this.renderData.launcher_edges,this.MAIN_IFRAME_CONTENT,this.customCSS.custom_widget,(0,f.loadGoogleFontCss)(this.common.main_font,this.common.sub_font,this.permission.theme_fonts));this.BOOM_BOX.appendChild(e),this.MAIN_IFRAME_BOX=e,this.MAIN_IFRAME=t},hideByWhitelist(t){!(0,n.isPageVisible)(this.renderData.visibility,window.location.pathname)&&(t.style.display="none")},widgetInit(){(0,r.postInfo)({customerData:this.customerData,sendInitMessage:t=>{this.appBridge.init(t)}})}},!t.__BooM){e=new i;t.__BooM=e}})(window)},746:function(t,e,i){"use strict";i.r(e),i.d(e,{useMessage:function(){return l}});var n=i("76"),o=i("367"),a=i("613"),s=i("582"),r=i("427");function l(t){window.addEventListener("message",function(e){if(!e.data)return;let{source:i,payload:l}=e.data;if("loloyal-cend-app"===i&&l){if(function(t){return"string"==typeof t}(l))return function(e){switch(e){case"close":t.startBtn.onclick();break;case"trigger_navigate_call":t.currentLink&&(t.appBridge.navigate(t.currentLink),t.currentLink="")}}(l);if(l?.action)return function(e){let{action:i,data:l}=e,c=window.LOLOYAL_ONSITE_ALL_LOCALE[l.locale];switch(i){case"use_discount_code":document.cookie=`discount_code=${l.code}`,(0,r.pureFetch)(`https://${window.Shopify.shop}/discount/${l.code}`);break;case"open_window":window.location.assign(l.url);break;case"request_new_loloyal_onsite":(0,a.postInfo)({locale:l.locale,sendInitMessage:e=>{t.appBridge.init(e)}}),(0,s.isMobile)()?t.renderData.icon_text=c.frontend.launcher.mobile.icon_text:t.renderData.icon_text=c.frontend.launcher.desktop.icon_text,t.renderData.RTL_mode=c.setting.dir,t.updateAnimatedWidth(t.renderData.icon_text),t.renderData.RTL_mode===n.READ_MODE_TYPE.RTL?t.LAUNCHER_IFRAME.setAttribute("dir","rtl"):t.LAUNCHER_IFRAME.setAttribute("dir","ltr");break;case"change_language":t.common.select_language_id=l.language_id,t.renderData.icon_text=(0,o.getRenderLanguage)(t,l.language_id).launcher_rewards,t.renderData.RTL_mode=l.dir,t.updateAnimatedWidth(t.renderData.icon_text),t.renderData.RTL_mode===n.READ_MODE_TYPE.RTL?t.LAUNCHER_IFRAME.setAttribute("dir","rtl"):t.LAUNCHER_IFRAME.setAttribute("dir","ltr")}}(l)}})}},613:function(t,e,i){"use strict";function n(t){let e=window.LOLOYAL_ONSITE;t.locale&&(e=window.LOLOYAL_ONSITE_ALL_LOCALE[t.locale]);let i="localhost"===window.location.hostname?window.Shopify.shop:window.location.hostname,n={shopId:window.__st.a,shopName:window.Shopify.shop,shopLocale:t.locale||window.Shopify.locale,shopDomain:i,shopLocaleRouter:window.Shopify.routes.root||"/",customerId:window.__st.cid||0,languageId:t.languageId,customerData:t.customerData,defaultLanguage:window.LOLOYAL_ONSITE_ALL_LOCALE.default_language,LOLOYAL_ONSITE:e};t.sendInitMessage(n)}i.r(e),i.d(e,{postInfo:function(){return n}})},890:function(t,e,i){"use strict";i.r(e),i.d(e,{getCustomer:function(){return a},getMetafield:function(){return s},widgetHTML:function(){return r},default:function(){return l}});var n=i("678"),o=i("427");function a(){return(0,o.pureFetch)(`${n.env.LOLOYAL_API_BASE_URL}customer`,{method:"POST",body:JSON.stringify({shop_id:__st.a,customer_id:__st.cid||0,locale:window.Shopify.locale}),headers:new Headers({"Content-Type":"application/json"})}).then(t=>t.json().then(t=>t.data))}function s(){return(0,o.pureFetch)(`${n.env.LOLOYAL_API_BASE_URL}metafield`,{method:"POST",body:JSON.stringify({shop_id:__st.a}),headers:new Headers({"Content-Type":"application/json"})}).then(t=>t.json().then(t=>t.data))}function r(){return(0,o.pureFetch)(`${n.env.LOLOYAL_WIDGET_URL}?v=${n.env.LOLOYAL_WIDGET_VERSION}`,{method:"GET"})}var l={statistics:function(){(0,o.pureFetch)(`${n.env.LOLOYAL_API_BASE_URL}addClickOn`,{method:"POST",body:JSON.stringify({shop_id:window.__st.a,customer_id:window.__st.cid}),headers:new Headers({"Content-Type":"application/json"})})},launcherInit:function(){return(0,o.pureFetch)(`${n.env.LOLOYAL_API_BASE_URL}launcherInit`,{method:"POST",body:JSON.stringify({shop_id:__st.a,customer_id:__st.cid||0,locale:window.Shopify.locale}),headers:new Headers({"Content-Type":"application/json"})})},widgetHTML:r}},229:function(t,e,i){"use strict";function n(t){return t.filter(Boolean).join(" ")}function o(t){return Object.keys(t).map(e=>{let i=e.replace(/([A-Z])/g,"-$1").toLowerCase();return`${i}:${t[e]}`}).join(";")}i.r(e),i.d(e,{clsx:function(){return n},stylx:function(){return o}})},972:function(t,e,i){"use strict";function n(t){let e=document.createElement("iframe");return t.class&&(e.setAttribute("class",t.class),e.setAttribute("id",t.id)),t.src&&e.setAttribute("src",t.src),t.name&&e.setAttribute("name",t.name),t.title&&e.setAttribute("title",t.title),e.setAttribute("frameborder",0),e}function o(t){let e=document.createElement("div");if(t.class&&e.setAttribute("class",t.class),t.style&&img.setAttribute("style",t.style),t.text&&(e.innerHTML=t.text),t.children)for(let i of(!Array.isArray(t.children)&&(t.children=[t.children]),t.children))e.appendChild(i);return t.container&&t.container.appendChild(e),e}function a(t){let e=document.createElement("img");return t.class&&e.setAttribute("class",t.class),t.style&&e.setAttribute("style",t.style),t.alt&&e.setAttribute("alt",t.alt),e.setAttribute("src",t.url),e.width=30,e.height=30,e}function s(t){let e=document.createElement("style"),i=document.createTextNode(t);return e.appendChild(i),e}function r(t,e,i){let n=t.attachShadow({mode:"open"});if(i){let t=s(i);n.appendChild(t)}if(Array.isArray(e))for(let t of e)n.appendChild(t);else e&&n.appendChild(e)}i.r(e),i.d(e,{createIframe:function(){return n},createDiv:function(){return o},createImg:function(){return a},createStyle:function(){return s},createShadowDom:function(){return r}})},12:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return o}});var n=i("972");function o(t,e,i,o){let a=(0,n.createDiv)({class:"loloyal-iframe-page"}),s=` .loloyal-loading{position:relative;display:flex;justify-content:center;align-items:center;z-index:-1;width:100%;height:100%;border-radius: ${t}px;} .loloyal-spinner-container{position:relative;width:80px;height:80px;} .loloyal-spinner{position:absolute;top:0;left:0;width:80px;height:80px;border-radius:50%;background:linear-gradient(to right, transparent 12%, cyan);animation: spin 1.5s linear infinite;} .loloyal-inner-circle{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:65px;height:65px;border-radius:50%;background-color:white;display:block !important;} @keyframes spin {100% {filter: hue-rotate(360deg);transform: rotate(360deg);}} `,r=(0,n.createIframe)({class:"boom-main-iframe",id:"boomMainIframe",name:"boomMainIframe",title:"loyalty application widget"});return r.onload=()=>{if(r.dataset.loaded)return;r.dataset.loaded=!0,function(t,e){t.contentWindow.document.open(),t.contentWindow.document.write(e),t.contentWindow.document.close()}(r,e);let t=r.contentDocument.body;t.appendChild((0,n.createStyle)(o)),t.appendChild((0,n.createStyle)(i))},r.style.cssText=`width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0;border-radius: ${t}px;background: transparent;`,a.appendChild((0,n.createStyle)(s)),a.appendChild(r),a.style.display="none",[r,a]}},777:function(t,e,i){"use strict";i.r(e),i.d(e,{mountCSS:function(){return a}});var n=i("972");let o=(t,e)=>{let i=[];for(let n=0;n{try{if(t){let i=new CSSStyleSheet;i.replaceSync(t);let a=o(i,e);a.length>0&&document.body.appendChild((0,n.createStyle)(a.join("\n")))}}catch(t){}}},927:function(t,e,i){"use strict";i.r(e),i.d(e,{isHideBySpecialPage:function(){return n}});function n(t,e){for(let[i,n]of[["bm-ceshi.myshopify.com",["/pages/upcoming-class-sign-up"]],["claudia-nour-cosmetics.myshopify.com",["/pages/upcoming-class-sign-up"]]])if(i===e){let e=n.some(t=>{var e;return e=t,window.location.pathname.includes(e)});e&&t.BOOM_BOX&&t.BOOM_BOX.setAttribute("style","display: none !important")}}},582:function(t,e,i){"use strict";function n(){return navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)}i.r(e),i.d(e,{isMobile:function(){return n}})},427:function(t,e,i){"use strict";i.r(e),i.d(e,{pureFetch:function(){return n}});let n=function(){let t=document.createElement("iframe");return t.style.display="none",document.body.appendChild(t),t.contentWindow.fetch}()},195:function(t,e,i){"use strict";i.r(e),i.d(e,{loadGoogleFontCss:function(){return o},getShopFontFamily:function(){return a}});let n=t=>{let e=t?.trim(),i=e?.replace(/\s+/g,"+");return i},o=(t,e,i)=>{if(!i)return"";let o=a(),s="inherit"===t?o:t,r="inherit"===e?o:e,l=n(s),c=n(r);return document.createElement("style"),` @import url(https://fonts.googleapis.com/css2?family=${l}&display=swap); @import url(https://fonts.googleapis.com/css2?family=${c}&display=swap); .loloyal-primary-font { font-family: ${s}; } .loloyal-secondary-font { font-family: ${r}; } `},a=()=>getComputedStyle(document.querySelector("body")).getPropertyValue("font-family").split(",")[0]||"Segoe UI"},172:function(t,e,i){"use strict";i.r(e),i.d(e,{getMetafieldData:function(){return o}});var n=i("890");async function o(){if(!window.LOLOYAL_ONSITE||!window.LOLOYAL_ONSITE_ALL_LOCALE)try{let t=await (0,n.getMetafield)();window.LOLOYAL_ONSITE_ALL_LOCALE=t,window.LOLOYAL_ONSITE=t[t.default_language]}catch(t){}}},404:function(t,e,i){"use strict";function n(t){return function(t=""){return t.trim().replace(/\s+/g,"+")}(t)}i.r(e),i.d(e,{fontNameHandle:function(){return n}})},859:function(t,e,i){"use strict";function n(t,e=300){let i=null;return function(){!i&&(i=setTimeout(()=>{t.call(this),i=null},e))}}i.r(e),i.d(e,{throttle:function(){return n}})},76:function(t,e,i){"use strict";i.r(e),i.d(e,{isPageVisible:function(){return n.isPageVisible},READ_MODE_TYPE:function(){return o}});var n=i("954");let o={LTR:1,RTL:2}},954:function(t,e,i){"use strict";var n,o;function a(t,e){if(t.mode!==n.SPECIFIC_PAGE)return!0;let i=[];for(let e of Object.keys(t.pages))if(t.pages[e]&&"selected_custom"!==e){let t=e.split("_");i.push({id:e,path:"selected_home"===e?"/":`/${t[t.length-1]}`,op:"selected_blog"===e?"includes":"congruence"})}if(t.pages.selected_custom)for(let e of t.custom_url)e.v.trim()&&i.push({id:"selected_custom",path:e.v.trim(),op:e.op});for(let t of i)if("congruence"===t.op){if(e===t.path)return!0}else if("includes"===t.op){if(e.includes(t.path))return!0}else if(e.includes(t.path))return!0;return!1}i.r(e),i.d(e,{isPageVisible:function(){return a}}),(o=n||(n={}))[o.ALL_PAGES=1]="ALL_PAGES",o[o.SPECIFIC_PAGE=2]="SPECIFIC_PAGE"}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,i),a.exports}i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i("151")}(); //# sourceMappingURL=boom-cend-widget.js.map