@everymatrix/casino-calendar 1.9.2 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/casino-calendar.js
CHANGED
|
@@ -670,14 +670,14 @@ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
670
670
|
* @returns {Boolean} true or false
|
|
671
671
|
*/
|
|
672
672
|
const Lr=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));function $r(t,{delay:n=0,duration:r=400,easing:i=e}={}){const o=+getComputedStyle(t).opacity;return{delay:n,duration:r,easing:i,css:t=>"opacity: "+t*o}}
|
|
673
|
-
/* ../casino-modal/src/CasinoModal.svelte generated by Svelte v3.58.0 */function Mr(t){let e,n,r,i,o,s,a,l,c,u,h,d;return{c(){e=E("div"),n=E("div"),r=E("div"),r.innerHTML="<slot></slot>",i=T(),o=E("span"),s=E("slot"),s.innerHTML='<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',C(r,"class","ModalContainer"),C(r,"part","ModalContainer"),C(s,"name","close"),C(o,"class",a="ModalCloseBtn "+(/*haspanicbutton*/"true"==t[1]&&/*mobileView*/t[3]?"ModalPanicCloseButton":"")),C(o,"part","ModalCloseBtn"),C(o,"role","button"),C(n,"class","ModalWindow"),C(n,"part","ModalWindow"),C(n,"id","Modal"),X((()=>/*div1_elementresize_handler*/t[
|
|
674
|
-
/*div1_binding*/t[
|
|
673
|
+
/* ../casino-modal/src/CasinoModal.svelte generated by Svelte v3.58.0 */function Mr(t){let e,n,r,i,o,s,a,l,c,u,h,d;return{c(){e=E("div"),n=E("div"),r=E("div"),r.innerHTML="<slot></slot>",i=T(),o=E("span"),s=E("slot"),s.innerHTML='<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>',C(r,"class","ModalContainer"),C(r,"part","ModalContainer"),C(s,"name","close"),C(o,"class",a="ModalCloseBtn "+(/*haspanicbutton*/"true"==t[1]&&/*mobileView*/t[3]?"ModalPanicCloseButton":"")),C(o,"part","ModalCloseBtn"),C(o,"role","button"),C(n,"class","ModalWindow"),C(n,"part","ModalWindow"),C(n,"id","Modal"),X((()=>/*div1_elementresize_handler*/t[19].call(n))),C(e,"part","CustomStylingContainer")},m(a,c){g(a,e,c),f(e,n),f(n,r),f(n,i),f(n,o),f(o,s),
|
|
674
|
+
/*div1_binding*/t[18](n),l=function(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const n=E("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const r=I();let i;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=B(window,"message",(t=>{t.source===n.contentWindow&&e()}))):(n.src="about:blank",n.onload=()=>{i=B(n.contentWindow,"resize",e),
|
|
675
675
|
// make sure an initial resize event is fired _after_ the iframe is loaded (which is asynchronous)
|
|
676
676
|
// see https://github.com/sveltejs/svelte/issues/4233
|
|
677
|
-
e()}),f(t,n),()=>{(r||i&&n.contentWindow)&&i(),b(n)}}(n,/*div1_elementresize_handler*/t[
|
|
678
|
-
/*div2_binding*/t[
|
|
679
|
-
/*div1_binding*/,t[
|
|
680
|
-
/*div2_binding*/,t[
|
|
677
|
+
e()}),f(t,n),()=>{(r||i&&n.contentWindow)&&i(),b(n)}}(n,/*div1_elementresize_handler*/t[19].bind(n)),
|
|
678
|
+
/*div2_binding*/t[20](e),u=!0,h||(d=B(o,"click",/*close*/t[8]),h=!0)},p(e,n){t=e,(!u||/*haspanicbutton, mobileView*/10&n&&a!==(a="ModalCloseBtn "+(/*haspanicbutton*/"true"==t[1]&&/*mobileView*/t[3]?"ModalPanicCloseButton":"")))&&C(o,"class",a)},i(e){u||(X((()=>{u&&(c||(c=it(n,$r,{transitionDuration:/*duration*/t[0]},!0)),c.run(1))})),u=!0)},o(e){c||(c=it(n,$r,{transitionDuration:/*duration*/t[0]},!1)),c.run(0),u=!1},d(n){n&&b(e)
|
|
679
|
+
/*div1_binding*/,t[18](null),l(),n&&c&&c.end()
|
|
680
|
+
/*div2_binding*/,t[20](null),h=!1,d()}}}function Or(e){let n,r,o=/*show*/e[7]&&Mr(e);return{c(){o&&o.c(),n=x(),this.c=t},m(t,e){o&&o.m(t,e),g(t,n,e),r=!0},p(t,[e]){/*show*/t[7]?o?(o.p(t,e),/*show*/128&e&&et(o,1)):(o=Mr(t),o.c(),et(o,1),o.m(n.parentNode,n)):o&&(tt={r:0,c:[],p:tt},nt(o,1,1,(()=>{o=null})),tt.r||i(tt.c),tt=tt.p)},i(t){r||(et(o),r=!0)},o(t){nt(o),r=!1},d(t){o&&o.d(t),t&&b(n)}}}function Nr(t,e,n){let r,i,o,s,{duration:a=350}=e,{session:l=""}=e,{userid:c=""}=e,{clientstyling:u=""}=e,{identifier:h=""}=e,{clientstylingurl:d=""}=e,{endpoint:p=""}=e,{haspanicbutton:f="false"}=e,{gamepagemodalurl:y="false"}=e,{sessioncheck:m="true"}=e,{integratedgameframedesktop:g="false"}=e,b=window.navigator.userAgent,v=!1,E=!1,w=!1;const _=t=>{if("ShowModal"==t.data.type&&h==t.data.identifier&&(n(7,w=!0),window.postMessage({type:"DisableScroll"},window.location.href)),"ModalClosed"==t.data.type&&("false"!=g||Lr(b))&&n(7,w=!1),"ShowGameModal"===t.data.type&&(n(7,w=!0),window.postMessage({type:"GameLaunchID",gameId:t.data.gameId},window.location.href),window.postMessage({type:"DisableScroll"},window.location.href)),"OpenGameFrameModal"===t.data.type&&(n(7,w=!0),window.postMessage({type:"LaunchGameFrame",gameId:t.data.gameId,gameFunMode:t.data.gamefunmode},window.location.href),window.postMessage({type:"DisableScroll"},window.location.href)),"RequestModalSize"===t.data.type){let t={modalWidth:r?getComputedStyle(r).width:null,modalHeight:r?getComputedStyle(r).height:null};window.postMessage({type:"ModalSize",modalContainerSize:t},window.location.href)}"GameStateOnResize"===t.data.type&&(E=t.data.detailsObtained)},T=t=>{if(E){let t={modalWidth:getComputedStyle(r).width,modalHeight:getComputedStyle(r).height};window.postMessage({type:"ModalSize",modalContainerSize:t},window.location.href)}},x=()=>{"true"==m&&function(t,e){return new Promise(((n,r)=>{let i=new Headers;i.append("X-SessionID",e),St(`${t}/player/session/player`,{method:"GET",headers:i}).then((t=>t.json())).then((t=>n(t))).catch((t=>r(t)))}))}(p,l).then((t=>{t.Guid,t.UserID}),(t=>{console.error("err on session",t)}))};return k((()=>(n(3,v=Lr(b)),window.addEventListener("message",_,!1),window.addEventListener("resize",T,!1),()=>{window.removeEventListener("message",_),window.removeEventListener("resize",_)}))),t.$$set=t=>{"duration"in t&&n(0,a=t.duration),"session"in t&&n(9,l=t.session),"userid"in t&&n(10,c=t.userid),"clientstyling"in t&&n(11,u=t.clientstyling),"identifier"in t&&n(12,h=t.identifier),"clientstylingurl"in t&&n(13,d=t.clientstylingurl),"endpoint"in t&&n(14,p=t.endpoint),"haspanicbutton"in t&&n(1,f=t.haspanicbutton),"gamepagemodalurl"in t&&n(15,y=t.gamepagemodalurl),"sessioncheck"in t&&n(16,m=t.sessioncheck),"integratedgameframedesktop"in t&&n(17,g=t.integratedgameframedesktop)},t.$$.update=()=>{/*session, userid, endpoint*/17920&t.$$.dirty&&l&&c&&p&&x(),/*clientstyling, customStylingContainer*/2052&t.$$.dirty&&u&&i&&(()=>{let t=document.createElement("style");t.innerHTML=u,i.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/8196&t.$$.dirty&&d&&i&&(()=>{let t=new URL(d),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1)}))})()},[a,f,i,v,r,o,s,w,()=>{n(7,w=!1),n(3,v=Lr(b)),window.postMessage({type:"ModalClosed",gamepagemodalurl:y,mobileView:v},window.location.href)},l,c,u,h,d,p,y,m,g,function(t){F[t?"unshift":"push"]((()=>{r=t,n(4,r)}))},function(){o=this.clientWidth,s=this.clientHeight,n(5,o),n(6,s)},function(t){F[t?"unshift":"push"]((()=>{i=t,n(2,i)}))}]}
|
|
681
681
|
/* ../casino-calendar-daily-details/src/CasinoCalendarDailyDetails.svelte generated by Svelte v3.58.0 */
|
|
682
682
|
function Dr(t,e,n){const r=t.slice();return r[26]=e[n],r[27]=e,r[28]=n,r}function Rr(t,e,n){const r=t.slice();return r[29]=e[n],r[28]=n,r}
|
|
683
683
|
// (105:4) {:else}
|
|
@@ -705,7 +705,7 @@ return t[5]?Ur:kr}let i=r(e),o=i(e);return{c(){n=E("div"),o.c(),this.c=t},m(t,r)
|
|
|
705
705
|
/*dictionary.set(translations);
|
|
706
706
|
locale.set(_locale);*/}({withLocale:"en",translations:{}});const v=t=>{"DailyEventsData"==t.data.type&&(n(5,m=!1),n(3,f=t.data.data),f.forEach((t=>{t.expandedInfo=!1,t.detailsExpanded=!1,t.details.forEach(((t,e)=>{t.expandedTab=0==e}))}))),"ModalClosed"==t.data.type&&(n(4,y=0),f.forEach(((t,e)=>{t.detailsExpanded=0==e,t.expandedInfo=0==e})))},E=()=>{var t;t=u,Er.set(t)},w=t=>{n(4,y=0),n(3,f[t].detailsExpanded=!f[t].detailsExpanded,f),
|
|
707
707
|
//Analytics event
|
|
708
|
-
"function"==typeof gtag&>ag("event","MoreInfo",{context:"CalendarWidgetDetails"})},_=(t,e)=>{n(4,y=e),t.details.forEach(((t,e)=>{t.expandedTab=y==e}))};k((()=>(window.addEventListener("message",v,!1),Lr(b)&&n(6,g=!0),()=>{window.removeEventListener("message",v)})));return t.$$set=t=>{"dailybackground"in t&&n(9,i=t.dailybackground),"dailybuttontitle"in t&&n(0,o=t.dailybuttontitle),"dailyday"in t&&n(1,s=t.dailyday),"dailydescription"in t&&n(10,a=t.dailydescription),"dailyicon"in t&&n(11,l=t.dailyicon),"dailytitle"in t&&n(12,c=t.dailytitle),"lang"in t&&n(13,u=t.lang),"clientstyling"in t&&n(14,h=t.clientstyling),"clientstylingurl"in t&&n(15,d=t.clientstylingurl),"translationUrl"in t&&n(16,p=t.translationUrl)},t.$$.update=()=>{/*lang*/8192&t.$$.dirty&&u&&E(),/*clientstyling, customStylingContainer*/16388&t.$$.dirty&&h&&r&&(()=>{let t=document.createElement("style");t.innerHTML=h,r.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/32772&t.$$.dirty&&d&&r&&(()=>{let t=new URL(d),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[o,s,r,f,y,m,g,w,_,i,a,l,c,u,h,d,p,(t,e,r)=>{n(3,e[r].expandedInfo=!t.expandedInfo,f),w(r)},(t,e)=>{_(t,e)},function(t){F[t?"unshift":"push"]((()=>{r=t,n(2,r)}))}]}!customElements.get("casino-modal")&&customElements.define("casino-modal",class extends lt{constructor(t){super();const e=document.createElement("style");e.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalPanicCloseButton{margin-top:45px}.ModalWindow .ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:10px;border-radius:50%;color:var(--emfe-w-color-white, #FFFFFF);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalWindow .ModalCloseBtn svg{width:32px;height:32px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}',this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Nr,Or,s,{duration:0,session:9,userid:10,clientstyling:11,
|
|
708
|
+
"function"==typeof gtag&>ag("event","MoreInfo",{context:"CalendarWidgetDetails"})},_=(t,e)=>{n(4,y=e),t.details.forEach(((t,e)=>{t.expandedTab=y==e}))};k((()=>(window.addEventListener("message",v,!1),Lr(b)&&n(6,g=!0),()=>{window.removeEventListener("message",v)})));return t.$$set=t=>{"dailybackground"in t&&n(9,i=t.dailybackground),"dailybuttontitle"in t&&n(0,o=t.dailybuttontitle),"dailyday"in t&&n(1,s=t.dailyday),"dailydescription"in t&&n(10,a=t.dailydescription),"dailyicon"in t&&n(11,l=t.dailyicon),"dailytitle"in t&&n(12,c=t.dailytitle),"lang"in t&&n(13,u=t.lang),"clientstyling"in t&&n(14,h=t.clientstyling),"clientstylingurl"in t&&n(15,d=t.clientstylingurl),"translationUrl"in t&&n(16,p=t.translationUrl)},t.$$.update=()=>{/*lang*/8192&t.$$.dirty&&u&&E(),/*clientstyling, customStylingContainer*/16388&t.$$.dirty&&h&&r&&(()=>{let t=document.createElement("style");t.innerHTML=h,r.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/32772&t.$$.dirty&&d&&r&&(()=>{let t=new URL(d),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[o,s,r,f,y,m,g,w,_,i,a,l,c,u,h,d,p,(t,e,r)=>{n(3,e[r].expandedInfo=!t.expandedInfo,f),w(r)},(t,e)=>{_(t,e)},function(t){F[t?"unshift":"push"]((()=>{r=t,n(2,r)}))}]}!customElements.get("casino-modal")&&customElements.define("casino-modal",class extends lt{constructor(t){super();const e=document.createElement("style");e.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalPanicCloseButton{margin-top:45px}.ModalWindow .ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:10px;border-radius:50%;color:var(--emfe-w-color-white, #FFFFFF);background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out}.ModalWindow .ModalCloseBtn svg{width:32px;height:32px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}',this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Nr,Or,s,{duration:0,session:9,userid:10,clientstyling:11,identifier:12,clientstylingurl:13,endpoint:14,haspanicbutton:1,gamepagemodalurl:15,sessioncheck:16,integratedgameframedesktop:17},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["duration","session","userid","clientstyling","identifier","clientstylingurl","endpoint","haspanicbutton","gamepagemodalurl","sessioncheck","integratedgameframedesktop"]}get duration(){return this.$$.ctx[0]}set duration(t){this.$$set({duration:t}),Z()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),Z()}get userid(){return this.$$.ctx[10]}set userid(t){this.$$set({userid:t}),Z()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get identifier(){return this.$$.ctx[12]}set identifier(t){this.$$set({identifier:t}),Z()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),Z()}get haspanicbutton(){return this.$$.ctx[1]}set haspanicbutton(t){this.$$set({haspanicbutton:t}),Z()}get gamepagemodalurl(){return this.$$.ctx[15]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),Z()}get sessioncheck(){return this.$$.ctx[16]}set sessioncheck(t){this.$$set({sessioncheck:t}),Z()}get integratedgameframedesktop(){return this.$$.ctx[17]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),Z()}});
|
|
709
709
|
/* ../casino-calendar-daily-item/src/CasinoCalendarDailyItem.svelte generated by Svelte v3.58.0 */
|
|
710
710
|
function Yr(e){let n,r,i,o,s,a,c,u,h,d,p,y,m,v,w,x,A,P,I,L,$,M,O;return{c(){n=E("div"),r=E("div"),i=E("div"),o=E("div"),s=E("div"),s.innerHTML='<div class="RingLeft"></div> \n <div class="RingRight"></div>',a=T(),c=E("div"),u=E("div"),h=E("img"),p=T(),y=E("div"),m=_(/*dailyday*/e[2]),v=T(),w=E("div"),x=T(),A=E("div"),P=E("button"),I=_(/*dailybuttontitle*/e[3]),this.c=t,C(s,"class","CalendarBar"),l(h.src,d=/*dailyicon*/e[1])||C(h,"src",d),C(h,"alt",/*dailyicon*/e[1]),C(u,"class","CasinoCalendarDailyIcon"),C(y,"class","CasinoCalendarDailyTitle"),C(w,"class","CasinoCalendarDailyItemDescription"),C(P,"class","MoreInfoButton"),C(A,"class","CasinoCalendarDailyItemButton"),C(c,"class",L="CasinoCalendarItemBackground CalendarPage "+("OpenCalendarModal"==/*index*/e[4]?"Tear":"")),S(c,"background-image","url('"+/*dailybackground*/e[0]+"')"),S(c,"background-size","cover"),S(c,"background-position","center"),S(c,"-webkit-background-size","cover"),S(c,"-moz-background-size","cover"),S(c,"-o-background-size","cover"),C(o,"class","CalendarCard"),C(i,"class","CasinoCalendarItems"),C(r,"class",$="Container "+(/*mobileView*/e[7]?"Mobile":""))},m(t,l){g(t,n,l),f(n,r),f(r,i),f(i,o),f(o,s),f(o,a),f(o,c),f(c,u),f(u,h),f(c,p),f(c,y),f(y,m),f(c,v),f(c,w),
|
|
711
711
|
/*div5_binding*/e[14](w),f(c,x),f(c,A),f(A,P),f(P,I),
|
|
@@ -729,6 +729,6 @@ function ti(e){let n;return{c(){n=E("p"),n.textContent="500 Error - Internal Ser
|
|
|
729
729
|
// (68:8) {#each calendarCollections as dailyCalendarData, index }
|
|
730
730
|
function ei(t){let e,n,r,i,o,s;return{c(){e=E("casino-calendar-daily-item"),A(e,"dailybackground",n=/*dailyCalendarData*/t[12].dailyBackground),A(e,"dailyicon",r=/*dailyCalendarData*/t[12].dailyIcon),A(e,"dailyday",i=/*dailyCalendarData*/t[12].dailyDay),A(e,"dailydescription",o=/*dailyCalendarData*/t[12].dailyDescription),A(e,"dailybuttontitle",s=/*dailyCalendarData*/t[12].dailyButtonTitle),A(e,"index",/*index*/t[14]),A(e,"lang",/*lang*/t[0])},m(t,n){g(t,e,n)},p(t,a){/*calendarCollections*/2&a&&n!==(n=/*dailyCalendarData*/t[12].dailyBackground)&&A(e,"dailybackground",n),/*calendarCollections*/2&a&&r!==(r=/*dailyCalendarData*/t[12].dailyIcon)&&A(e,"dailyicon",r),/*calendarCollections*/2&a&&i!==(i=/*dailyCalendarData*/t[12].dailyDay)&&A(e,"dailyday",i),/*calendarCollections*/2&a&&o!==(o=/*dailyCalendarData*/t[12].dailyDescription)&&A(e,"dailydescription",o),/*calendarCollections*/2&a&&s!==(s=/*dailyCalendarData*/t[12].dailyButtonTitle)&&A(e,"dailybuttontitle",s),/*lang*/1&a&&A(e,"lang",/*lang*/t[0])},d(t){t&&b(e)}}}
|
|
731
731
|
// (80:8) {#if calendarModalOpened == true}
|
|
732
|
-
function ni(t){let e,n,r,i,o,s,a,l;return{c(){e=E("casino-modal"),n=E("casino-calendar-daily-details"),A(n,"dailybackground",r=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyBackground),A(n,"dailybuttontitle",i=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyButtonTitle),A(n,"dailyday",o=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDay),A(n,"dailydescription",s=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDescription),A(n,"dailyicon",a=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyIcon),A(n,"dailytitle",l=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyTitle),A(n,"lang",/*lang*/t[0])},m(t,r){g(t,e,r),f(e,n)},p(t,e){/*calendarCollections, selectedIndex*/6&e&&r!==(r=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyBackground)&&A(n,"dailybackground",r),/*calendarCollections, selectedIndex*/6&e&&i!==(i=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyButtonTitle)&&A(n,"dailybuttontitle",i),/*calendarCollections, selectedIndex*/6&e&&o!==(o=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDay)&&A(n,"dailyday",o),/*calendarCollections, selectedIndex*/6&e&&s!==(s=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDescription)&&A(n,"dailydescription",s),/*calendarCollections, selectedIndex*/6&e&&a!==(a=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyIcon)&&A(n,"dailyicon",a),/*calendarCollections, selectedIndex*/6&e&&l!==(l=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyTitle)&&A(n,"dailytitle",l),/*lang*/1&e&&A(n,"lang",/*lang*/t[0])},d(t){t&&b(e)}}}function ri(e){let n;function r(t,e){/*hasErrors*/
|
|
733
|
-
return t[4]?ti:/*isLoading*/t[3]?Qr:/*calendarCollections*/t[1]?.length?Jr:void 0}let i=r(e),o=i&&i(e);return{c(){o&&o.c(),n=x(),this.c=t},m(t,e){o&&o.m(t,e),g(t,n,e)},p(t,[e]){i===(i=r(t))&&o?o.p(t,e):(o&&o.d(1),o=i&&i(t),o&&(o.c(),o.m(n.parentNode,n)))},i:t,o:t,d(t){o&&o.d(t),t&&b(n)}}}function ii(t,e,n){let r,{cmsendpoint:i=""}=e,{lang:o="en"}=e,s=0,a=!0,l=!1,c=!1,u=window.navigator.userAgent,h=!1;const d=()=>{fetch(`${i}/${o}/daily-calendar/`).then((t=>t.json())).then((t=>{n(1,r=t)})).catch((t=>{console.log(t),n(4,l=!0)})).finally((()=>{n(3,a=!1)}))},p=t=>{var e;t.data&&"OpenCalendar"==t.data.type&&(n(2,s=t.data.index),n(6,h=!0),window.postMessage({type:"
|
|
732
|
+
function ni(t){let e,n,r,i,o,s,a,l;return{c(){e=E("casino-modal"),n=E("casino-calendar-daily-details"),A(n,"dailybackground",r=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyBackground),A(n,"dailybuttontitle",i=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyButtonTitle),A(n,"dailyday",o=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDay),A(n,"dailydescription",s=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDescription),A(n,"dailyicon",a=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyIcon),A(n,"dailytitle",l=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyTitle),A(n,"lang",/*lang*/t[0]),A(e,"identifier","Calendar")},m(t,r){g(t,e,r),f(e,n)},p(t,e){/*calendarCollections, selectedIndex*/6&e&&r!==(r=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyBackground)&&A(n,"dailybackground",r),/*calendarCollections, selectedIndex*/6&e&&i!==(i=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyButtonTitle)&&A(n,"dailybuttontitle",i),/*calendarCollections, selectedIndex*/6&e&&o!==(o=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDay)&&A(n,"dailyday",o),/*calendarCollections, selectedIndex*/6&e&&s!==(s=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyDescription)&&A(n,"dailydescription",s),/*calendarCollections, selectedIndex*/6&e&&a!==(a=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyIcon)&&A(n,"dailyicon",a),/*calendarCollections, selectedIndex*/6&e&&l!==(l=/*calendarCollections*/t[1][/*selectedIndex*/t[2]].dailyTitle)&&A(n,"dailytitle",l),/*lang*/1&e&&A(n,"lang",/*lang*/t[0])},d(t){t&&b(e)}}}function ri(e){let n;function r(t,e){/*hasErrors*/
|
|
733
|
+
return t[4]?ti:/*isLoading*/t[3]?Qr:/*calendarCollections*/t[1]?.length?Jr:void 0}let i=r(e),o=i&&i(e);return{c(){o&&o.c(),n=x(),this.c=t},m(t,e){o&&o.m(t,e),g(t,n,e)},p(t,[e]){i===(i=r(t))&&o?o.p(t,e):(o&&o.d(1),o=i&&i(t),o&&(o.c(),o.m(n.parentNode,n)))},i:t,o:t,d(t){o&&o.d(t),t&&b(n)}}}function ii(t,e,n){let r,{cmsendpoint:i=""}=e,{lang:o="en"}=e,s=0,a=!0,l=!1,c=!1,u=window.navigator.userAgent,h=!1;const d=()=>{fetch(`${i}/${o}/daily-calendar/`).then((t=>t.json())).then((t=>{n(1,r=t)})).catch((t=>{console.log(t),n(4,l=!0)})).finally((()=>{n(3,a=!1)}))},p=t=>{var e;t.data&&"OpenCalendar"==t.data.type&&(n(2,s=t.data.index),n(6,h=!0),window.postMessage({type:"ShowModal",selectedIndex:s,identifier:"Calendar"},window.location.href),window.postMessage({type:"DailyEventsData",data:null===(e=r[s])||void 0===e?void 0:e.dailyEvents})),t.data&&"ModalClosed"==t.data.type&&n(6,h=!1)};return k((()=>(window.addEventListener("message",p,!1),Lr(u)&&n(5,c=!0),()=>{window.removeEventListener("message",p)}))),t.$$set=t=>{"cmsendpoint"in t&&n(7,i=t.cmsendpoint),"lang"in t&&n(0,o=t.lang)},t.$$.update=()=>{/*cmsendpoint, lang*/129&t.$$.dirty&&i&&o&&d()},[o,r,s,a,l,c,h,i]}!customElements.get("casino-calendar-daily-item")&&customElements.define("casino-calendar-daily-item",class extends lt{constructor(t){super();const e=document.createElement("style");e.textContent=':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Container{display:flex;overflow-x:scroll;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:linear-gradient(#e2e2e2, #b5b5b5);border-radius:4px 4px 0 0;border-bottom:3px solid #888;display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 16px;text-align:center;border-radius:0 0 2px 2px;color:#fff;position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:#fff;position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:72px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:80%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;font-size:12px;padding:10px 6px;border-radius:5px;border:none;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);cursor:pointer}',this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Zr,Yr,s,{cmsendpoint:9,lang:10,dailybackground:0,dailyicon:1,dailyday:2,dailydescription:11,dailybuttontitle:3,index:4,clientstyling:12,clientstylingurl:13},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["cmsendpoint","lang","dailybackground","dailyicon","dailyday","dailydescription","dailybuttontitle","index","clientstyling","clientstylingurl"]}get cmsendpoint(){return this.$$.ctx[9]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),Z()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),Z()}get dailybackground(){return this.$$.ctx[0]}set dailybackground(t){this.$$set({dailybackground:t}),Z()}get dailyicon(){return this.$$.ctx[1]}set dailyicon(t){this.$$set({dailyicon:t}),Z()}get dailyday(){return this.$$.ctx[2]}set dailyday(t){this.$$set({dailyday:t}),Z()}get dailydescription(){return this.$$.ctx[11]}set dailydescription(t){this.$$set({dailydescription:t}),Z()}get dailybuttontitle(){return this.$$.ctx[3]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),Z()}get index(){return this.$$.ctx[4]}set index(t){this.$$set({index:t}),Z()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}});class oi extends lt{constructor(t){super();const e=document.createElement("style");e.textContent=".CasinoCalendarItem{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;align-content:flex-start;text-align:left;gap:10px}.Mobile{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}",this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},ii,ri,s,{cmsendpoint:7,lang:0},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["cmsendpoint","lang"]}get cmsendpoint(){return this.$$.ctx[7]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),Z()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),Z()}}return!customElements.get("casino-calendar")&&customElements.define("casino-calendar",oi),oi}));
|
|
734
734
|
//# sourceMappingURL=casino-calendar.js.map
|