@everymatrix/casino-calendar 1.12.2 → 1.12.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
|
@@ -685,15 +685,15 @@ function kr(t){let e,n,r,i,o,s=/*dailyeventsDetails*/t[3],a=[];for(let e=0;e<s.l
|
|
|
685
685
|
// (103:4) {#if isLoading}
|
|
686
686
|
function Ur(e){let n;return{c(){n=E("p"),n.textContent="Loading ...",C(n,"class","SearchLoading"),C(n,"part","SearchLoading")},m(t,e){g(t,n,e)},p:t,d(t){t&&b(n)}}}
|
|
687
687
|
// (130:16) {:else}
|
|
688
|
-
function Fr(t){let e,n;return{c(){e=w("svg"),n=w("path"),C(n,"stroke-linecap","round"),C(n,"stroke-linejoin","round"),C(n,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),C(e,"xmlns","http://www.w3.org/2000/svg"),C(e,"fill","none"),C(e,"viewBox","0 0 24 24"),C(e,"stroke-width","1.5"),C(e,"stroke","currentColor"),C(e,"class","
|
|
688
|
+
function Fr(t){let e,n;return{c(){e=w("svg"),n=w("path"),C(n,"stroke-linecap","round"),C(n,"stroke-linejoin","round"),C(n,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),C(e,"xmlns","http://www.w3.org/2000/svg"),C(e,"fill","none"),C(e,"viewBox","0 0 24 24"),C(e,"stroke-width","1.5"),C(e,"stroke","currentColor"),C(e,"class","IconDown")},m(t,r){g(t,e,r),f(e,n)},d(t){t&&b(e)}}}
|
|
689
689
|
// (116:16) {#if event.expandedInfo == true}
|
|
690
|
-
function Gr(t){let e,n;return{c(){e=w("svg"),n=w("path"),C(n,"stroke-linecap","round"),C(n,"stroke-linejoin","round"),C(n,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),C(e,"xmlns","http://www.w3.org/2000/svg"),C(e,"fill","none"),C(e,"viewBox","0 0 24 24"),C(e,"stroke-width","1.5"),C(e,"stroke","currentColor"),C(e,"class","
|
|
691
|
-
// (
|
|
690
|
+
function Gr(t){let e,n;return{c(){e=w("svg"),n=w("path"),C(n,"stroke-linecap","round"),C(n,"stroke-linejoin","round"),C(n,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),C(e,"xmlns","http://www.w3.org/2000/svg"),C(e,"fill","none"),C(e,"viewBox","0 0 24 24"),C(e,"stroke-width","1.5"),C(e,"stroke","currentColor"),C(e,"class","IconUp")},m(t,r){g(t,e,r),f(e,n)},d(t){t&&b(e)}}}
|
|
691
|
+
// (148:14) {#if event.expandedInfo == true}
|
|
692
692
|
function jr(t){let e,n,r=/*event*/t[26].details,i=[];for(let e=0;e<r.length;e+=1)i[e]=zr(Rr(t,r,e));let o=/*event*/t[26].detailsExpanded&&Vr(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=T(),o&&o.c(),n=x()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);g(t,e,r),o&&o.m(t,r),g(t,n,r)},p(t,s){if(/*selectedTab, dailyeventsDetails, setActiveTab*/280&s){let n;for(r=/*event*/t[26].details,n=0;n<r.length;n+=1){const o=Rr(t,r,n);i[n]?i[n].p(o,s):(i[n]=zr(o),i[n].c(),i[n].m(e.parentNode,e))}for(;n<i.length;n+=1)i[n].d(1);i.length=r.length}/*event*/t[26].detailsExpanded?o?o.p(t,s):(o=Vr(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){v(i,t),t&&b(e),o&&o.d(t),t&&b(n)}}}
|
|
693
|
-
// (
|
|
693
|
+
// (149:16) {#each event.details as detail, index}
|
|
694
694
|
function zr(t){let e,n,r,i,o,s,a,l,c=/*detail*/t[29].title+"";function u(){/*click_handler_1*/
|
|
695
695
|
return t[18](/*event*/t[26],/*index*/t[28])}return{c(){e=E("div"),n=E("div"),r=E("button"),i=_(c),C(r,"class",o="HeaderButton "+(/*detail*/t[29].expandedTab?"Active":"")),C(n,"class","Header"),C(e,"class",s=/*index*/t[28]==/*selectedTab*/t[4]?"SelectedTab":""),C(e,"id","CollapseMoreInfoButton"),S(e,"height",/*event*/t[26].expandedInfo?"100%":"")},m(t,o){g(t,e,o),f(e,n),f(n,r),f(r,i),a||(l=B(r,"click",u),a=!0)},p(n,a){t=n,/*dailyeventsDetails*/8&a&&c!==(c=/*detail*/t[29].title+"")&&H(i,c),/*dailyeventsDetails*/8&a&&o!==(o="HeaderButton "+(/*detail*/t[29].expandedTab?"Active":""))&&C(r,"class",o),/*selectedTab*/16&a&&s!==(s=/*index*/t[28]==/*selectedTab*/t[4]?"SelectedTab":"")&&C(e,"class",s),/*dailyeventsDetails*/8&a&&S(e,"height",/*event*/t[26].expandedInfo?"100%":"")},d(t){t&&b(e),a=!1,l()}}}
|
|
696
|
-
// (
|
|
696
|
+
// (159:16) {#if event.detailsExpanded}
|
|
697
697
|
function Vr(t){let e,n,r,i=/*event*/t[26].details[/*selectedTab*/t[4]].description+"";return{c(){e=E("div"),n=_(i),C(e,"class",r="DetailTabsDescription "+(/*event*/t[26].details[/*selectedTab*/t[4]].expandedTab?"":"NotVisible"))},m(t,r){g(t,e,r),f(e,n)},p(t,o){/*dailyeventsDetails, selectedTab*/24&o&&i!==(i=/*event*/t[26].details[/*selectedTab*/t[4]].description+"")&&H(n,i),/*dailyeventsDetails, selectedTab*/24&o&&r!==(r="DetailTabsDescription "+(/*event*/t[26].details[/*selectedTab*/t[4]].expandedTab?"":"NotVisible"))&&C(e,"class",r)},d(t){t&&b(e)}}}
|
|
698
698
|
// (108:8) {#each dailyeventsDetails as event, index}
|
|
699
699
|
function Xr(t){let e,n,r,i,o,s,a,c,u,h,d,p,y,m,v,w,x,A,S,P,I=/*event*/t[26].title+"",L=/*event*/t[26].description+"";function $(t,e){/*event*/
|
|
@@ -717,7 +717,7 @@ 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(
|
|
|
717
717
|
//Analytics event
|
|
718
718
|
"function"==typeof gtag&>ag("event","MoreInfo",{context:"CalendarWidgetItem"})};k((()=>{Lr(m)&&n(7,y=!0)}));return t.$$set=t=>{"cmsendpoint"in t&&n(9,o=t.cmsendpoint),"lang"in t&&n(10,s=t.lang),"dailybackground"in t&&n(0,a=t.dailybackground),"dailyicon"in t&&n(1,l=t.dailyicon),"dailyday"in t&&n(2,c=t.dailyday),"dailydescription"in t&&n(11,u=t.dailydescription),"dailybuttontitle"in t&&n(3,h=t.dailybuttontitle),"index"in t&&n(4,d=t.index),"clientstyling"in t&&n(12,p=t.clientstyling),"clientstylingurl"in t&&n(13,f=t.clientstylingurl)},t.$$.update=()=>{/*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/2063&t.$$.dirty&&l&&c&&u&&h&&a&&(()=>{
|
|
719
719
|
// remove HTML tags
|
|
720
|
-
let t=document.createElement("div");t.innerHTML=u,r&&r.append(t)})(),/*clientstyling, customStylingContainer*/4128&t.$$.dirty&&p&&i&&(()=>{let t=document.createElement("style");t.innerHTML=p,i.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/8224&t.$$.dirty&&f&&i&&(()=>{let t=new URL(f),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[a,l,c,h,d,i,r,y,g,o,s,u,p,f,function(t){F[t?"unshift":"push"]((()=>{r=t,n(6,r)}))},()=>g(),function(t){F[t?"unshift":"push"]((()=>{i=t,n(5,i)}))}]}!customElements.get("casino-calendar-daily-details")&&customElements.define("casino-calendar-daily-details",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}#CollapseMoreInfoButton{-moz-transition:height 0.5s;-ms-transition:height 0.5s;-o-transition:height 0.5s;-webkit-transition:height 0.5s;transition:height 0.5s;height:0;overflow:hidden}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:15px 0;border-radius:0 0 5px 5px;border:none;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);cursor:pointer}.IconDown{width:18px;height:18px;margin-left:10px;transform:rotate(0deg)}.IconUp{width:18px;height:18px;margin-left:10px;transform:rotate(180deg)}.CasinoCalendarDailyDetailsBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;background:var(--emfe-w-color-white, #FFFFFF);width:500px;max-height:50vw;padding:20px;text-align:center;margin-bottom:50px;overflow:scroll}.CasinoCalendarDailyDetailsParent{display:flex;justify-content:flex-start;align-items:center;flex-direction:column;max-width:376px}.CasinoCalendarDailyDay{padding:10px 0 40px 0;font-size:22px;text-transform:uppercase;width:100%;color:var(--emfe-w-color-primary, #D0046C)}.CasinoCalendarDailyTitle{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color:var(--emfe-w-color-primary, #D0046C)}.CasinoCalendarImage{background:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px 5px 0 0}.CasinoCalendarImage img{max-width:376px;max-height:250px;border-radius:5px 5px 0 0}.CasinoCalendarDailyDescription{width:100%;padding:25px 15px;font-size:14px;font-weight:600;color:var(--emfe-w-gray-300, #58586B);font-weight:400;border-radius:0;background:linear-gradient(180deg, var(--emfe-w-color-white, #FFFFFF) 55%, var(--emfe-w-color-gray-100, #E6E6E6))}.DetailTabsDescription{margin-top:15px}.CasinoCalendarTabs{width:100%;font-size:14px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:stretch;padding-bottom:40px}.CasinoCalendarFitImage{border-radius:5px}.NotVisible{display:none}.Header{display:flex;justify-content:center;justify-items:center;margin-bottom:4px;padding:0 10px}.HeaderButton{min-height:48px;margin:0;border:none;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-150, #828282)}.SelectedTab{box-shadow:none;border-bottom:2px solid var(--emfe-w-color-primary, #D0046C)}.Mobile{max-height:
|
|
720
|
+
let t=document.createElement("div");t.innerHTML=u,r&&r.append(t)})(),/*clientstyling, customStylingContainer*/4128&t.$$.dirty&&p&&i&&(()=>{let t=document.createElement("style");t.innerHTML=p,i.appendChild(t)})(),/*clientstylingurl, customStylingContainer*/8224&t.$$.dirty&&f&&i&&(()=>{let t=new URL(f),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[a,l,c,h,d,i,r,y,g,o,s,u,p,f,function(t){F[t?"unshift":"push"]((()=>{r=t,n(6,r)}))},()=>g(),function(t){F[t?"unshift":"push"]((()=>{i=t,n(5,i)}))}]}!customElements.get("casino-calendar-daily-details")&&customElements.define("casino-calendar-daily-details",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}#CollapseMoreInfoButton{-moz-transition:height 0.5s;-ms-transition:height 0.5s;-o-transition:height 0.5s;-webkit-transition:height 0.5s;transition:height 0.5s;height:0;overflow:hidden}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:15px 0;border-radius:0 0 5px 5px;border:none;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-primary, #D0046C);cursor:pointer}.IconDown{width:18px;height:18px;margin-left:10px;transform:rotate(0deg)}.IconUp{width:18px;height:18px;margin-left:10px;transform:rotate(180deg)}.CasinoCalendarDailyDetailsBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;background:var(--emfe-w-color-white, #FFFFFF);width:500px;max-height:50vw;padding:20px;text-align:center;margin-bottom:50px;overflow-y:scroll;overflow-x:unset}.CasinoCalendarDailyDetailsParent{display:flex;justify-content:flex-start;align-items:center;flex-direction:column;max-width:376px}.CasinoCalendarDailyDay{padding:10px 0 40px 0;font-size:22px;text-transform:uppercase;width:100%;color:var(--emfe-w-color-primary, #D0046C)}.CasinoCalendarDailyTitle{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color:var(--emfe-w-color-primary, #D0046C)}.CasinoCalendarImage{background:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px 5px 0 0}.CasinoCalendarImage img{max-width:376px;max-height:250px;border-radius:5px 5px 0 0}.CasinoCalendarDailyDescription{width:100%;padding:25px 15px;font-size:14px;font-weight:600;color:var(--emfe-w-gray-300, #58586B);font-weight:400;border-radius:0;background:linear-gradient(180deg, var(--emfe-w-color-white, #FFFFFF) 55%, var(--emfe-w-color-gray-100, #E6E6E6))}.DetailTabsDescription{margin-top:15px}.CasinoCalendarTabs{width:100%;font-size:14px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:stretch;padding-bottom:40px}.CasinoCalendarFitImage{border-radius:5px}.NotVisible{display:none}.Header{display:flex;justify-content:center;justify-items:center;margin-bottom:4px;padding:0 10px}.HeaderButton{min-height:48px;margin:0;border:none;cursor:pointer;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-150, #828282)}.SelectedTab{box-shadow:none;border-bottom:2px solid var(--emfe-w-color-primary, #D0046C)}.Mobile{max-height:60vh;margin-bottom:0}',this.shadowRoot.appendChild(e),at(this,{target:this.shadowRoot,props:L(this.attributes),customElement:!0},Kr,Wr,s,{dailybackground:9,dailybuttontitle:0,dailyday:1,dailydescription:10,dailyicon:11,dailytitle:12,lang:13,clientstyling:14,clientstylingurl:15,translationUrl:16},null),t&&(t.target&&g(t.target,this,t.anchor),t.props&&(this.$set(t.props),Z()))}static get observedAttributes(){return["dailybackground","dailybuttontitle","dailyday","dailydescription","dailyicon","dailytitle","lang","clientstyling","clientstylingurl","translationUrl"]}get dailybackground(){return this.$$.ctx[9]}set dailybackground(t){this.$$set({dailybackground:t}),Z()}get dailybuttontitle(){return this.$$.ctx[0]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),Z()}get dailyday(){return this.$$.ctx[1]}set dailyday(t){this.$$set({dailyday:t}),Z()}get dailydescription(){return this.$$.ctx[10]}set dailydescription(t){this.$$set({dailydescription:t}),Z()}get dailyicon(){return this.$$.ctx[11]}set dailyicon(t){this.$$set({dailyicon:t}),Z()}get dailytitle(){return this.$$.ctx[12]}set dailytitle(t){this.$$set({dailytitle:t}),Z()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),Z()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),Z()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),Z()}get translationUrl(){return this.$$.ctx[16]}set translationUrl(t){this.$$set({translationUrl:t}),Z()}});
|
|
721
721
|
/* src/CasinoCalendar.svelte generated by Svelte v3.58.0 */
|
|
722
722
|
function qr(t,e,n){const r=t.slice();return r[12]=e[n],r[14]=n,r}
|
|
723
723
|
// (66:4) {#if calendarCollections?.length}
|
|
@@ -730,5 +730,5 @@ function ti(e){let n;return{c(){n=E("p"),n.textContent="500 Error - Internal Ser
|
|
|
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
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:
|
|
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:unset;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:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);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:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;font-size:12px;padding:8px 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}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto\n }.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',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
|