(()=>{"use strict";var t,e={},i={};function o(t){var n=i[t];if(void 0!==n)return n.exports;var a=i[t]={exports:{}};return e[t](a,a.exports,o),a.exports}o.rv=()=>"1.3.3",o.ruid="bundler=rspack@1.3.3",function(t){t[t.ALL_PAGES=1]="ALL_PAGES",t[t.SPECIFIC_PAGE=2]="SPECIFIC_PAGE"}(t||(t={}));let n={RTL:2};function a(t,e,i){if(!e.has(t))throw TypeError("attempted to get private field on non-instance");return i}function l(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object");e.add(t)}function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var r=new WeakSet,c=new WeakSet,h=new WeakSet;class d{init(t){a(this,h,m).call(this,{action:"send_init_data",data:t})}navigate(t){a(this,h,m).call(this,{action:"navigate",data:{url:t}})}routeNavigate(t){a(this,h,m).call(this,{action:"route_navigate",data:t})}anchorNavigate(t){a(this,h,m).call(this,{action:"anchor_navigate",data:{key:t}})}openRuleDetail(t){a(this,h,m).call(this,{action:"open_rule_detail",data:{rule_id:t.rule_id,id:t.id,has_photos:t.has_photos}})}openCouponDetail(t){a(this,h,m).call(this,{action:"open_coupon_detail",data:{id:t.id}})}constructor(t){l(this,r),l(this,c),l(this,h),s(this,"name","loloyal-cend-launcher"),s(this,"connected",!1),s(this,"targetWindow",null),s(this,"messageStack",[]),this.BooM=t;let e=t=>{var i;if(!t.data)return;let{source:o}=t.data;"loloyal-cend-app"===o&&(window.removeEventListener("message",e),this.connected=!0,this.targetWindow=null==(i=this.BooM.MAIN_IFRAME)?void 0:i.contentWindow,console.log("%c [ loloyal-launcher ] ","background: #000; color: #fff"," connected"),a(this,c,u).call(this))};window.addEventListener("message",e)}}function p(t){this.messageStack.push(t)}function u(){this.messageStack.forEach(t=>{a(this,h,m).call(this,t)}),this.messageStack=[]}function m(t){var e;if(!this.connected)return void a(this,r,p).call(this,t);console.log("%c [ app-bridge visited ] ","background: #000; color: #fff",JSON.stringify(t)),null==(e=this.targetWindow)||e.postMessage({source:this.name,payload:t},"*")}let y=["loloyal/home","#loloyal-home","#loloyal-waystoearn","#loloyal-waystoredeem","#loloyal-referral","#loloyal-vip","#loloyal-activity-coupons"];function _(t){y.some(e=>!!window.location.href.includes(e)&&(t.currentLink=e,!0))&&1===t.LAUNCHER_STATE&&t.startBtn&&t.startBtn.onclick()}function f(){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)}let g=()=>{var t;return null==(t=window.__st)?void 0:t.a},O=()=>{var t,e;let i=document.querySelector(".loloyal-shopify-init");return i?Number(i.getAttribute("data-customer-id"))||(null==(e=window.__st)?void 0:e.cid):null==(t=window.__st)?void 0:t.cid};function w(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,o={shopId:g(),shopName:window.Shopify.shop,shopLocale:t.locale||window.Shopify.locale,shopDomain:i,shopLocaleRouter:window.Shopify.routes.root||"/",customerId:O()||0,languageId:t.languageId,customerData:t.customerData,defaultLanguage:window.LOLOYAL_ONSITE_ALL_LOCALE.default_language,LOLOYAL_ONSITE:e};t.sendInitMessage(o)}let L=function(){let t=document.createElement("iframe");return t.style.display="none",document.body.appendChild(t),t.contentWindow.fetch}(),E={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.1749801750405"},b={statistics:function(){L(`${E.LOLOYAL_API_BASE_URL}addClickOn`,{method:"POST",body:JSON.stringify({shop_id:g(),customer_id:O()}),headers:new Headers({"Content-Type":"application/json"})})}};function A(t){return t.filter(Boolean).join(" ")}function S(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 x(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 I(t){let e=document.createElement("style"),i=document.createTextNode(t);return e.appendChild(i),e}let T=(t,e)=>{let i=[];for(let o=0;o{try{if(t){let i=new CSSStyleSheet;i.replaceSync(t);let o=T(i,e);o.length>0&&document.body.appendChild(I(o.join("\n")))}}catch(t){console.log("Error while mounting custom css",t)}},D=t=>{let e=null==t?void 0:t.trim();return null==e?void 0:e.replace(/\s+/g,"+")},N=(t,e,i)=>{if(!i)return"";let o=B(),n="inherit"===t?o:t,a="inherit"===e?o:e,l=D(n),s=D(a);return document.createElement("style"),` @import url(https://fonts.googleapis.com/css2?family=${l}&display=swap); @import url(https://fonts.googleapis.com/css2?family=${s}&display=swap); .loloyal-primary-font { font-family: ${n}; } .loloyal-secondary-font { font-family: ${a}; } `},B=()=>getComputedStyle(document.querySelector("body")).getPropertyValue("font-family").split(",")[0]||"Segoe UI";async function v(){if(!window.LOLOYAL_ONSITE||!window.LOLOYAL_ONSITE_ALL_LOCALE)try{let t=await L(`${E.LOLOYAL_API_BASE_URL}metafield`,{method:"POST",body:JSON.stringify({shop_id:g()}),headers:new Headers({"Content-Type":"application/json"})}).then(t=>t.json().then(t=>t.data));window.LOLOYAL_ONSITE_ALL_LOCALE=t,window.LOLOYAL_ONSITE=t[t.default_language]}catch(t){console.log("getMetafield error: ",t)}}(async e=>{function i(){var t,e,i,o,n,a,l;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.isOnlyIcon=!1,this.customerData={},this.renderData={},this.common=(null==(t=window.LOLOYAL_ONSITE)?void 0:t.frontend.launcher.common)||{},this.desktop=(null==(e=window.LOLOYAL_ONSITE)?void 0:e.frontend.launcher.desktop)||{},this.mobile=(null==(i=window.LOLOYAL_ONSITE)?void 0:i.frontend.launcher.mobile)||{},this.customCSS=(null==(o=window.LOLOYAL_ONSITE)?void 0:o.frontend.css)||{},this.frontendWidget=(null==(n=window.LOLOYAL_ONSITE)?void 0:n.frontend.widget)||{},this.setting=(null==(a=window.LOLOYAL_ONSITE)?void 0:a.setting)||{},this.permission=(null==(l=window.LOLOYAL_ONSITE)?void 0:l.plan.permission)||{},this.currentLink="",this.placement="top",this.appBridge=new d(this),this.init()}await v(),i.prototype={constructor:i,init(){var t;this.getBaseData(),function(t){["www-jessenia-original.myshopify.com"].includes(window.Shopify.shop)&&y.push("jo-club/home"),"custype.myshopify.com"===window.Shopify.shop&&y.push("#custype-rewards-club"),window.addEventListener("popstate",()=>{_(t),t.appBridge.navigate(t.currentLink)}),"custype.myshopify.com"===window.Shopify.shop&&[...document.querySelectorAll('a[href="#loloyal/home"]'),...document.querySelectorAll('a[href="#custype-rewards-club"]')].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(),_(t),t.appBridge.navigate(t.currentLink))})}(this),t=this,window.addEventListener("message",function(e){if(!e.data)return;let{source:i,payload:o}=e.data;if("loloyal-cend-app"===i&&o){if("string"==typeof o){var a=o;switch(a){case"close":t.startBtn.onclick();break;case"trigger_navigate_call":t.currentLink&&(t.appBridge.navigate(t.currentLink),t.currentLink="")}return}if(null==o?void 0:o.action){var l=o;let{action:e,data:i}=l,a=window.LOLOYAL_ONSITE_ALL_LOCALE[i.locale];switch(e){case"use_discount_code":document.cookie=`discount_code=${i.code}`,L(`https://${window.Shopify.shop}/discount/${i.code}`);break;case"open_window":window.location.assign(i.url);break;case"request_new_loloyal_onsite":w({locale:i.locale,sendInitMessage:e=>{t.appBridge.init(e)}}),f()?t.renderData.icon_text=a.frontend.launcher.mobile.icon_text:t.renderData.icon_text=a.frontend.launcher.desktop.icon_text,t.renderData.RTL_mode=a.setting.dir,t.updateAnimatedWidth(t.renderData.icon_text),t.renderData.RTL_mode===n.RTL?t.LAUNCHER_IFRAME.setAttribute("dir","rtl"):t.LAUNCHER_IFRAME.setAttribute("dir","ltr");break;case"change_language":t.common.select_language_id=i.language_id,t.renderData.icon_text=function(t,e){var i,o;let n,a=(i=t,(o=e)&&(n=i.common.language_item.find(t=>t.id===o)),n||(n=i.common.language_item.find(t=>1===t.default_language)),n);return(f()?t.mobile:t.desktop).language.find(t=>t.id===a.id)}(t,i.language_id).launcher_rewards,t.renderData.RTL_mode=i.dir,t.updateAnimatedWidth(t.renderData.icon_text),t.renderData.RTL_mode===n.RTL?t.LAUNCHER_IFRAME.setAttribute("dir","rtl"):t.LAUNCHER_IFRAME.setAttribute("dir","ltr")}return}}}),this.customized()},customized(){("24bbc2.myshopify.com"===Shopify.shop||"bm-ceshi.myshopify.com"===Shopify.shop)&&(this.placement="bottom")},getBaseData(){L(`${E.LOLOYAL_WIDGET_URL}?v=${E.LOLOYAL_WIDGET_VERSION}`,{method:"GET"}).then(t=>t.text()).then(async t=>{this.MAIN_IFRAME_CONTENT=t,f()?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,this.isOnlyIcon=1===this.renderData.display_method&&!this.renderData.icon_text||2===this.renderData.display_method,this.permission.widget_launcher_shape||(this.renderData.button_shape=30);let e=-1!==this.setting.order_limit&&!this.setting.is_inc_plan&&this.setting.order_count>this.setting.order_limit,i=Math.floor(Date.now()/1e3)-this.setting.over_order_at>this.THREE_DAYS_IN_SECONDS;if((!e||!this.setting.is_free_plan)&&(!e||this.setting.is_free_plan||!i)){if(O())try{let t=await L(`${E.LOLOYAL_API_BASE_URL}customer`,{method:"POST",body:JSON.stringify({shop_id:g(),customer_id:O()||0,locale:window.Shopify.locale}),headers:new Headers({"Content-Type":"application/json"})}).then(t=>t.json().then(t=>t.data));if(this.customerData=t,2===t.state)return}catch(t){console.log("get customer error: ",t)}this.createLauncher(),this.initStyle(),this.fixPlacementStyle()}})},updateAnimatedWidth(t){if(this.isOnlyIcon)this.animatedWidth=60;else{var e;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=null==(e=this.COMPUTED_WIDTH_NODE)?void 0:e.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(I(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;} }`;for(let e of(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(I(t)),[".loloyal-launcher-box",".boom-launcher",".loloyal-launcher-wrapper",".loloyal-on-mobile"]))C(this.customCSS.custom_launcher,e);C(this.customCSS.custom_widget,".loloyal-iframe-page")},createLauncher(){let t=this.createLauncherFrame(),e=this.createLauncherStyleText(),i=this.createLauncherBox(),o=i.attachShadow({mode:"open"});if(e){let t=I(e);o.appendChild(t)}if(Array.isArray(t))for(let e of t)o.appendChild(e);else t&&o.appendChild(t);this.createLauncherWrapper(i),this.renderData.isHidden&&(i.style.display="none"),this.hideByWhitelist(i),this.createWidgetIframe(),this.startBtn.onclick=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,i=null;return function(){i||(i=setTimeout(()=>{t.call(this),i=null},e))}}(()=>{this.handleStartBtnClick()},50),_(this);var n=Shopify.shop;for(let[t,e]of[["bm-ceshi.myshopify.com",["/pages/upcoming-class-sign-up"]],["claudia-nour-cosmetics.myshopify.com",["/pages/upcoming-class-sign-up"]]])t===n&&e.some(t=>window.location.pathname.includes(t))&&this.BOOM_BOX&&this.BOOM_BOX.setAttribute("style","display: none !important");if("natural-focus-health.myshopify.com"===Shopify.shop){document.body.appendChild(I(` .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=S({class:"loloyal-launcher-container__close"});i.appendChild(t);let e=x({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=S({class:A(["boom-launcher","loloyal-launcher-wrapper",f()&&"loloyal-on-mobile"]),children:t,container:document.body});return this.BOOM_BOX=e,e},createLauncherButton(){var t;let e=x({class:"loloyal-launcher-close-icon",url:"https://static.loloyal.com/i/c_end/closeWhite.svg",alt:"close loyalty application icon",style:Object.keys(t={display:"none"}).map(e=>{let i=e.replace(/([A-Z])/g,"-$1").toLowerCase();return`${i}:${t[e]}`}).join(";")});this.CLOSE_BOX=e;let i=x({class:"loloyal-launcher-icon",url:this.renderData.icon_url,alt:"loyalty application icon"}),o=S({class:A(["loloyal-launcher-text","loloyal-primary-font"]),text:this.renderData.icon_text});this.TEXT_BOX=o,this.ICON_BOX=i;let n=[];n.push(e),3===this.renderData.display_method?n.push(o):this.isOnlyIcon?n.push(i):n.push(i,o);let a=S({class:"loloyal-launcher",children:n});return this.startBtn=a,a},createLauncherFrame(){let t=S({class:A(["loloyal-launcher-container",f()&&"loloyal-on-mobile"]),children:this.createLauncherButton()}),e=S({class:"loloyal-launcher-frame",id:"boomLauncherIframe",children:t});return this.renderData.RTL_mode===n.RTL&&e.setAttribute("dir","rtl"),this.customCSS.custom_launcher&&e.appendChild(I(this.customCSS.custom_launcher)),this.LAUNCHER_IFRAME=e,e},createLauncherStyleText(){let t=B(),e=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.trim().replace(/\s+/g,"+")}(t);return` @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}; }`},createLauncherBox(){let t=S({class:"loloyal-launcher-box"});return t.id="loloyal-launcher-box",this.isOnlyIcon&&(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(),b.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]=function(t,e,i,o){let n=S({class:"loloyal-iframe-page"}),a=` .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);}} `,l=function(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}({class:"boom-main-iframe",id:"boomMainIframe",name:"boomMainIframe",title:"loyalty application widget"});return l.onload=()=>{var t,n;if(l.dataset.loaded)return;l.dataset.loaded=!0,t=l,n=e,t.contentWindow.document.open(),t.contentWindow.document.write(n),t.contentWindow.document.close();let a=l.contentDocument.body;a.appendChild(I(o)),a.appendChild(I(i))},l.style.cssText=`width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0;border-radius: ${t}px;background: transparent;`,n.appendChild(I(a)),n.appendChild(l),n.style.display="none",[l,n]}(this.renderData.launcher_edges,this.MAIN_IFRAME_CONTENT,this.customCSS.custom_widget,N(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(e){!function(e,i){if(e.mode!==t.SPECIFIC_PAGE)return!0;let o=[];for(let t of Object.keys(e.pages))if(e.pages[t]&&"selected_custom"!==t){let e=t.split("_");o.push({id:t,path:"selected_home"===t?"/":`/${e[e.length-1]}`,op:"selected_blog"===t?"includes":"congruence"})}if(e.pages.selected_custom)for(let t of e.custom_url)t.v.trim()&&o.push({id:"selected_custom",path:t.v.trim(),op:t.op});for(let t of o)if("congruence"===t.op){if(i===t.path)return!0}else if("includes"===t.op){if(i.includes(t.path))return!0}else if(i.includes(t.path))return!0;return!1}(this.renderData.visibility,window.location.pathname)&&(e.style.display="none")},widgetInit(){w({customerData:this.customerData,sendInitMessage:t=>{this.appBridge.init(t)}})}},e.__BooM||(e.__BooM=new i)})(window)})();