@everymatrix/casino-challenges-overlay-slider 0.5.8 → 0.5.10
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-challenges-overlay-slider/casino-challenges-overlay-card_2.entry.js +1 -1
- package/dist/casino-challenges-overlay-slider/{casino-challenges-overlay-slider-2eb80eb5.js → casino-challenges-overlay-slider-f3c0b38e.js} +1 -1
- package/dist/casino-challenges-overlay-slider/index.esm.js +1 -1
- package/dist/cjs/casino-challenges-overlay-card_2.cjs.entry.js +1 -1
- package/dist/cjs/{casino-challenges-overlay-slider-bf3e8c30.js → casino-challenges-overlay-slider-7219662d.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/collection/components/casino-challenges-overlay-slider/casino-challenges-overlay-slider.js +1 -1
- package/dist/esm/casino-challenges-overlay-card_2.entry.js +2 -2
- package/dist/esm/{casino-challenges-overlay-slider-2eb80eb5.js → casino-challenges-overlay-slider-f3c0b38e.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as n,h as s,H as a}from"./index-9e63661c.js";import{t as i}from"./casino-challenges-overlay-slider-
|
|
1
|
+
import{r as e,c as n,h as s,H as a}from"./index-9e63661c.js";import{t as i}from"./casino-challenges-overlay-slider-f3c0b38e.js";export{C as casino_challenges_overlay_slider}from"./casino-challenges-overlay-slider-f3c0b38e.js";var t,l,r,d,o;!function(e){e[e.FreeSpins=0]="FreeSpins",e[e.LuckyWheel=1]="LuckyWheel",e[e.Leaderboard=2]="Leaderboard",e[e.Challenge=3]="Challenge",e[e.Custom=4]="Custom",e[e.BonusProgram=5]="BonusProgram",e[e.LoyaltyEngine=6]="LoyaltyEngine"}(t||(t={})),function(e){e[e.Closed=0]="Closed",e[e.InProgress=1]="InProgress",e[e.Fillup=2]="Fillup",e[e.Completed=3]="Completed"}(l||(l={})),function(e){e[e.Draft=0]="Draft",e[e.Enabled=1]="Enabled",e[e.Paused=2]="Paused",e[e.Closed=3]="Closed",e[e.Deleted=4]="Deleted"}(r||(r={})),function(e){e[e.Started=0]="Started",e[e.InProgress=1]="InProgress",e[e.PendingLevelReward=2]="PendingLevelReward",e[e.Completed=3]="Completed",e[e.Expired=4]="Expired",e[e.Forfeited=5]="Forfeited",e[e.Awaiting=6]="Awaiting",e[e.Paused=7]="Paused"}(d||(d={})),function(e){e[e.Accumulative=0]="Accumulative",e[e.SingleBet=1]="SingleBet",e[e.MultipleOneBetSize=2]="MultipleOneBetSize"}(o||(o={}));const c=["started","inProgress","pendingLevelReward","completed","expired","forfeited","awaiting","paused"],h=class{constructor(a){e(this,a),this.challengeExpired=n(this,"challengeExpired",7),this.getBadgeContent=()=>{var e;if((null===(e=this.challenge)||void 0===e?void 0:e.ChallengeStatus)===r.Paused)return s("span",{class:"status"},i("unavailable",this.language));switch(this.challenge.Status){case d.Expired:return s("span",{class:"status"},i("expired",this.language));case d.Forfeited:return s("span",{class:"status"},i("forfeited",this.language));case d.Completed:return s("span",{class:"status"},i("finished",this.language));case d.Paused:return s("span",{class:"status"},i("suspended",this.language));default:return this.timeLeft?[i("endsIn",this.language)," - ",s("span",{class:"timer"},this.timeLeft)]:s("span",{class:"status"},i("expired",this.language))}},this.challenge=void 0,this.index=void 0,this.arrLength=void 0,this.currentIndex=void 0,this.language=void 0,this.isOptedOut=!1,this.slideWidth=void 0,this.slideHeight=void 0,this.timeLeft=void 0}connectedCallback(){this.timerId||(this.timerId=setInterval((()=>{this.updateTime()}),1e3))}disconnectedCallback(){clearInterval(this.timerId)}componentWillLoad(){this.updateTime()}updateTime(){var e;this.timeLeft=function(e){const n=new Date;let s=new Date(e).getTime()-n.getTime();if(s<=0)return;const a=Math.floor(s/864e5);s-=864e5*a;const i=Math.floor(s/36e5);s-=36e5*i;const t=Math.floor(s/6e4);s-=6e4*t;const l=Math.floor(s/1e3),r=e=>e.toString().padStart(2,"0");return`${r(a)} : ${r(i)} : ${r(t)} : ${r(l)}`}(null===(e=this.challenge)||void 0===e?void 0:e.ExpirationTime),this.timeLeft||(clearInterval(this.timerId),this.challengeExpired.emit(this.challenge.Id))}isItemActive(){return this.index===this.currentIndex||1===this.index&&this.currentIndex===this.arrLength-1||this.index===this.arrLength-2&&0===this.currentIndex}render(){var e,n,i,t,l,o,h,g;const _=(null===(e=this.challenge)||void 0===e?void 0:e.ChallengeStatus)===r.Paused;return s(a,{key:"5491e59a4439d23a7cd68d0e28af1a7b5d650925"},s("div",{class:{challenges__slide:!0,active:this.isItemActive(),grayed:[d.Expired,d.Forfeited,d.Completed].includes(null===(n=this.challenge)||void 0===n?void 0:n.Status)||_||this.isOptedOut},key:`${null===(i=this.challenge)||void 0===i?void 0:i.Id}-${this.index}`},s("div",{key:"8c10ad8fc780c314af68443c5c81057d3e88668b",class:"challenges__slide__image-wrapper",style:{width:`${this.slideWidth}px`,height:`${this.slideHeight}px`}},s("img",{key:"3e4ea68d459c17c38f112d89af7a6fa4cb8f3bb2",src:null===(l=null===(t=this.challenge)||void 0===t?void 0:t.ChallengePresentation)||void 0===l?void 0:l.BannerUrl,alt:""})),s("h1",{key:"e03556b748fda30202b3b80c2c84cf9dc3471168",class:"challenges__slide__title",style:{"max-width":this.slideWidth-28+"px"}},null===(h=null===(o=this.challenge)||void 0===o?void 0:o.ChallengePresentation)||void 0===h?void 0:h.PresentationName),s("div",{key:"9e72dc5d0acfe2bfe67f7ef5a1a978d686ed3cc9",class:`challenges__slide__badge ${(null===(g=this.challenge)||void 0===g?void 0:g.ChallengeStatus)!==r.Paused?c[this.challenge.Status]:"unavailable"}`},this.getBadgeContent())))}};h.style='.challenges__slide {\n align-content: center;\n flex-shrink: 0;\n transform: scale(0.8);\n opacity: 0.5;\n transition: transform 0.25s ease, opacity 0.25s ease;\n filter: blur(1px);\n position: relative;\n font-family: var(--emw--font-family-primary, "Teachers"), sans-serif;\n}\n.challenges__slide.active {\n transform: scale(1);\n opacity: 1;\n filter: blur(0);\n}\n.challenges__slide.active .challenges__slide__image-wrapper {\n border: 3px solid var(--emw--img-bg-color, rgba(255, 255, 255, 0.3019607843));\n box-shadow: var(--emw--img-box-shadow, rgba(102, 102, 102, 0.3019607843) 0 0 10px 10px);\n box-sizing: border-box;\n}\n.challenges__slide.grayed .challenges__slide__image-wrapper img {\n opacity: 0.5;\n}\n.challenges__slide__title {\n color: white;\n position: absolute;\n bottom: 20px;\n left: 12px;\n font-size: var(--emw--font-size-medium, 16px);\n font-weight: 500;\n margin: 0;\n max-width: 319px;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n.challenges__slide__badge {\n box-sizing: border-box;\n align-content: center;\n color: var(--emw--badge-font-color, #f4eff4);\n font-size: var(--emw--font-size-xs-small, 13px);\n font-weight: 400;\n position: absolute;\n top: 10px;\n left: 12px;\n padding: 2px 3px;\n border: 1px solid var(--emw--dot-button-active-bg, rgba(255, 255, 255, 0.2));\n background: var(--emw--color-container-background, rgba(9, 9, 9, 0.5019607843));\n backdrop-filter: blur(4.5px);\n border-radius: 15px;\n}\n.challenges__slide__badge .status {\n height: 19px;\n display: inline-flex;\n align-items: center;\n border-radius: 15px;\n border: 1px solid var(--emw--color-container-border, rgba(255, 255, 255, 0.0705882353));\n background: var(--emw--color-container-background, rgba(9, 9, 9, 0.5019607843));\n padding: 0 8px 0 6px;\n}\n.challenges__slide__badge .status::before {\n content: "";\n width: 5px;\n height: 5px;\n border-radius: 50%;\n background: var(--emw--status-badge-gray-bg, rgba(255, 255, 255, 0.5019607843));\n margin-right: 5px;\n flex-shrink: 0;\n}\n.challenges__slide__badge .timer {\n font-weight: 700;\n padding-right: 4px;\n}\n.challenges__slide__badge.unavailable .status::before, .challenges__slide__badge.expired .status::before {\n background: var(--emw--status-badge-gray-bg, rgba(255, 255, 255, 0.5019607843));\n}\n.challenges__slide__badge.completed .status::before {\n background: var(--emw--background-green-color, #00b541);\n}\n.challenges__slide__badge.forfeited .status::before {\n background: var(--emw--status-badge-red-bg, #d63d1e);\n}\n.challenges__slide__badge.paused .status::before {\n background: var(--emw--status-badge-yellow-bg, #ffb801);\n}\n.challenges__slide__badge:has(.timer) {\n padding-left: 6px;\n}\n.challenges__slide__image-wrapper {\n position: relative;\n border-radius: 16px;\n overflow: hidden;\n}\n.challenges__slide__image-wrapper img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.challenges__slide * {\n pointer-events: none;\n}\n\n@container challenges-drawer (width <= 500px) {\n .challenges__slide__title {\n bottom: 12px;\n }\n}';export{h as casino_challenges_overlay_card}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as e}from"./index-9e63661c.js";const s="__WIDGET_GLOBAL_STYLE_CACHE__";function n(t,i){if(t){const e=document.createElement("style");e.innerHTML=i,t.appendChild(e)}}function h(t,i){if(!t||!i)return;const e=new URL(i);fetch(e.href).then((t=>t.text())).then((i=>{const e=document.createElement("style");e.innerHTML=i,t&&t.appendChild(e)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function o(t,i,e,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return e=function(t,i){const e=document.createElement("style");return window.emMessageBus.subscribe(i,(i=>{t&&(e.innerHTML=i,t.appendChild(e))}))}(t,i),e;window[s]||(window[s]={}),e=function(t,i){return window.emMessageBus.subscribe(i,(e=>{if(!t)return;const n=t.getRootNode(),h=window[s];let o=h[i]&&h[i].sheet;o?h[i].refCount=h[i].refCount+1:(o=new CSSStyleSheet,o.replaceSync(e),h[i]={sheet:o,refCount:1});const a=n.adoptedStyleSheets||[];a.includes(o)||(n.adoptedStyleSheets=[...a,o])}))}(t,i);const h=e.unsubscribe.bind(e);return e.unsubscribe=()=>{if(window[s][i]){const t=window[s][i];t.refCount>1?t.refCount=t.refCount-1:delete window[s][i]}h()},e}const a={en:{endsIn:"Ends In",expired:"Expired",forfeited:"Forfeited",finished:"Finished",suspended:"Suspended",unavailable:"Unavailable"},da:{endsIn:"Ends In",expired:"Expired",forfeited:"Forfeited",finished:"Finished",suspended:"Suspended",unavailable:"Unavailable"}},l=(t,i)=>a[void 0!==i&&i in a?i:"en"][t],r=class{constructor(e){t(this,e),this.activeChallengeChange=i(this,"activeChallengeChange",7),this.slideGap=0,this.isDragging=!1,this.startX=0,this.currentTranslate=0,this.baseTranslate=0,this.slideWidthToContainer=.57,this.slideHeightToContainer=.3,this.next=()=>{this.currentIndex++,this.setPositionByIndex(),this.currentIndex===this.challenges.length+1&&setTimeout((()=>this.scheduleReset(1)),250)},this.prev=()=>{this.currentIndex--,this.setPositionByIndex();const t=this.challenges.length;0===this.currentIndex&&setTimeout((()=>this.scheduleReset(t)),250)},this.onPointerDown=t=>{var i;this.isOneSlide||(this.isDragging=!0,this.startX=t.clientX,this.baseTranslate=this.getBaseTranslate(),null===(i=this.sliderContainer)||void 0===i||i.setPointerCapture(t.pointerId))},this.onPointerMove=t=>{this.isDragging&&(this.currentTranslate=this.baseTranslate+(t.clientX-this.startX),this.setSliderPosition(this.currentTranslate))},this.onPointerUp=t=>{var i;if(!this.isDragging)return;this.isDragging=!1,null===(i=this.sliderContainer)||void 0===i||i.releasePointerCapture(t.pointerId);const e=this.currentTranslate-this.getBaseTranslate();e<-50?this.next():e>50?this.prev():this.setPositionByIndex()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.isMobile=!1,this.challenges=void 0,this.initialProgressId="",this.activeTabIndex="",this.currentIndex=null,this.slideWidth=0,this.slideHeight=0,this.isOneSlide=!1}handleClientStylingChange(t,i){t!=i&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,i){t!=i&&h(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,i){t!=i&&o(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}onCurrentIndexChange(t,i){if(null!==i&&t!==i&&t>0){const i=this.challenges[t-1];this.activeChallengeChange.emit(null==i?void 0:i.Id)}}onChallengesChange(t){this.isOneSlide=1===t.length}onInitialProgressIdChange(t,i){t!=i&&this.updateCurrentIndex()}componentWillLoad(){this.translationUrl&&(async t=>{if(t)try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const s=await e.json();i=s,Object.keys(i).forEach((t=>{a[t]||(a[t]={});for(let e in i[t])a[t][e]=i[t][e]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var i})(this.translationUrl)}componentDidLoad(){var t;this.isOneSlide=1===(null===(t=this.challenges)||void 0===t?void 0:t.length),this.resizeObserver=new ResizeObserver((([t])=>{this.slideWidth=Math.round(t.contentRect.width*this.slideWidthToContainer),this.slideHeight=Math.round(t.contentRect.width*this.slideHeightToContainer),this.isOneSlide||this.setPositionByIndex()})),this.stylingContainer&&(this.mbSource&&o(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&h(this.stylingContainer,this.clientStylingUrl),this.resizeObserver.observe(this.stylingContainer)),this.updateCurrentIndex()}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.resizeObserver&&this.resizeObserver.disconnect()}updateCurrentIndex(){this.isOneSlide?(this.currentIndex=0,this.setSliderPosition(0)):requestAnimationFrame((()=>{var t;const i=(null===(t=this.challenges)||void 0===t?void 0:t.findIndex((t=>(null==t?void 0:t.Id)===this.initialProgressId)))||0;this.currentIndex=i+1,this.setPositionByIndex(!1)}))}setSliderPosition(t){this.sliderContainer&&(this.sliderContainer.style.transform=`translateX(${t}px)`)}getCarouselItems(){const t=this.challenges;return t.length<=1?t:[t[t.length-1],...t,t[0]]}scheduleReset(t){this.sliderContainer&&requestAnimationFrame((()=>{requestAnimationFrame((()=>{const i=this.sliderContainer;i.style.transition="none",this.currentIndex=t,this.setPositionByIndex(!1),requestAnimationFrame((()=>{i.style.transition=""}))}))}))}setPositionByIndex(t=!0){this.sliderContainer&&(this.currentTranslate=-(this.slideWidth+this.slideGap)*this.currentIndex+(this.sliderContainer.clientWidth-this.slideWidth)/2,t||this.disableTransition(),this.setSliderPosition(this.currentTranslate))}getBaseTranslate(){var t,i;const e=null===(t=this.sliderContainer)||void 0===t?void 0:t.querySelector(".challenges__slide"),s=null===(i=this.sliderContainer)||void 0===i?void 0:i.parentElement;if(!e||!s)return 0;const n=e.clientWidth;return-(n+this.slideGap)*this.currentIndex+(s.clientWidth-n)/2}disableTransition(){this.sliderContainer&&(this.sliderContainer.style.transition="none",requestAnimationFrame((()=>{this.sliderContainer.style.transition=""})))}goToSlide(t){this.currentIndex=t+1,this.setPositionByIndex()}getRealIndex(){const t=this.challenges.length;return 0===this.currentIndex?t-1:this.currentIndex===t+1?0:this.currentIndex-1}render(){return e("div",{key:"25e34524b9a1fb6fcd4b164f5f3d58a58173ed09",class:{"slider-container":!0,mobile:this.isMobile,"one-slide":this.isOneSlide},ref:t=>this.stylingContainer=t},e("div",{key:"1f77218efd7201eb0de40405d7128168d5bb2a64",class:"challenges__slider-wrapper",onPointerDown:this.onPointerDown,onPointerMove:this.onPointerMove,onPointerUp:this.onPointerUp,onPointerLeave:this.onPointerUp},e("div",{key:"623e0d69197edea0a4a01a670bc678e2c99af735",class:"challenges__slider",ref:t=>this.sliderContainer=t},this.getCarouselItems().map(((t,i,s)=>e("casino-challenges-overlay-card",{challenge:t,index:i,arrLength:s.length,currentIndex:this.currentIndex,slideWidth:this.slideWidth,slideHeight:this.slideHeight}))))),this.challenges.length>1&&e("div",{key:"ffc80e15f608761c6b830dd6f8ed19ebf7a2498e"},e("button",{key:"0403fb4615605c33ef596c74ae2427b5e823b7d9",class:"action-button action-button--prev",onClick:this.prev},e("img",{key:"de3536ec00f15de6240d3c7da032b9584fffbc92",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDggMTUiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03LjE2ODk1IDEzLjgzNTNMMC41MDIyNzggNy4xNjg2Mkw3LjE2ODk1IDAuNTAxOTUzIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuMDA0NTkiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K",alt:""})),e("button",{key:"84cc6967ded946264bde8db938c8e5541ace145c",class:"action-button action-button--next",onClick:this.next},e("img",{key:"f6e8d44662f3ca55866001d90d41f66c4a5f6f04",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDggMTUiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0wLjUwMTk1MyAxMy44MzUzTDcuMTY4NjIgNy4xNjg2MkwwLjUwMTk1MyAwLjUwMTk1MyIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjAwNDU5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==",alt:""})),e("div",{key:"25124a8bb6d0fc72086e69e20b6fc2f41986999e",class:"challenges__slider-dots"},this.challenges.map(((t,i)=>e("span",{class:{"challenges__slider-dot":!0,active:i===this.getRealIndex()},onClick:()=>{this.goToSlide(i)}}))))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],currentIndex:["onCurrentIndexChange"],challenges:["onChallengesChange"],initialProgressId:["onInitialProgressIdChange"]}}};r.style='@import url("https://fonts.googleapis.com/css2?family=Teachers:ital,wght@0,400..800;1,400..800&display=swap"); .one-slide .challenges__slider{justify-content:center;cursor:pointer;transition:none}.slider-container{position:relative}.challenges__slider-wrapper{overflow:hidden;width:100%}.challenges__slider{display:flex;transition:transform 0.25s ease;will-change:transform;touch-action:pan-y;user-select:none;cursor:grab}.challenges__slider.active{cursor:grabbing}.challenges__slider-dots{display:flex;justify-content:center;margin-top:10px}.challenges__slider-dot{width:7px;height:7px;border-radius:50%;background:var(--emw--dot-button-bg, rgba(255, 255, 255, 0.1490196078));margin:4px;cursor:pointer;transition:0.2s}.challenges__slider-dot.active{width:29px;border-radius:8px;background:var(--emw--dot-button-active-bg, rgba(255, 255, 255, 0.2))}.action-button{position:absolute;top:42%;transform:translateY(-50%);stroke:white;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid var(--emw--color-container-border, rgba(255, 255, 255, 0.0705882353));background:var(--emw--color-container-background, rgba(9, 9, 9, 0.5019607843));backdrop-filter:blur(9.5px);cursor:pointer}.action-button--prev{left:30px}.action-button--next{right:30px}.mobile .challenges__slider-dot{width:5px;height:5px;margin:2px}.mobile .challenges__slider-dot.active{width:18px}.mobile .challenges__slide__image-wrapper{width:240px;height:122px}.mobile .challenges__slide__title{bottom:8px;left:8px;font-size:var(--emw--font-size-small, 14px);max-width:224px}.mobile .challenges__slide__badge{top:8px;left:8px;font-size:var(--emw--font-size-2x-small, 11px)}.mobile .challenges__slide__badge .status{height:17px}.mobile .action-button{display:none}';export{r as C,l as t}
|
|
1
|
+
import{r as t,c as i,h as e}from"./index-9e63661c.js";const s="__WIDGET_GLOBAL_STYLE_CACHE__";function n(t,i){if(t){const e=document.createElement("style");e.innerHTML=i,t.appendChild(e)}}function a(t,i){if(!t||!i)return;const e=new URL(i);fetch(e.href).then((t=>t.text())).then((i=>{const e=document.createElement("style");e.innerHTML=i,t&&t.appendChild(e)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function h(t,i,e,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return e=function(t,i){const e=document.createElement("style");return window.emMessageBus.subscribe(i,(i=>{t&&(e.innerHTML=i,t.appendChild(e))}))}(t,i),e;window[s]||(window[s]={}),e=function(t,i){return window.emMessageBus.subscribe(i,(e=>{if(!t)return;const n=t.getRootNode(),a=window[s];let h=a[i]&&a[i].sheet;h?a[i].refCount=a[i].refCount+1:(h=new CSSStyleSheet,h.replaceSync(e),a[i]={sheet:h,refCount:1});const o=n.adoptedStyleSheets||[];o.includes(h)||(n.adoptedStyleSheets=[...o,h])}))}(t,i);const a=e.unsubscribe.bind(e);return e.unsubscribe=()=>{if(window[s][i]){const t=window[s][i];t.refCount>1?t.refCount=t.refCount-1:delete window[s][i]}a()},e}const o={en:{endsIn:"Ends In",expired:"Expired",forfeited:"Forfeited",finished:"Finished",suspended:"Suspended",unavailable:"Unavailable"},da:{endsIn:"Ends In",expired:"Expired",forfeited:"Forfeited",finished:"Finished",suspended:"Suspended",unavailable:"Unavailable"}},l=(t,i)=>o[void 0!==i&&i in o?i:"en"][t],r=class{constructor(e){t(this,e),this.activeChallengeChange=i(this,"activeChallengeChange",7),this.slideGap=0,this.isDragging=!1,this.startX=0,this.currentTranslate=0,this.baseTranslate=0,this.slideWidthToContainer=.57,this.slideHeightToContainer=.3,this.next=()=>{this.currentIndex++,this.setPositionByIndex(),this.currentIndex===this.challenges.length+1&&setTimeout((()=>this.scheduleReset(1)),250)},this.prev=()=>{this.currentIndex--,this.setPositionByIndex();const t=this.challenges.length;0===this.currentIndex&&setTimeout((()=>this.scheduleReset(t)),250)},this.onPointerDown=t=>{var i;this.isOneSlide||(this.isDragging=!0,this.startX=t.clientX,this.baseTranslate=this.getBaseTranslate(),null===(i=this.sliderContainer)||void 0===i||i.setPointerCapture(t.pointerId))},this.onPointerMove=t=>{this.isDragging&&(this.currentTranslate=this.baseTranslate+(t.clientX-this.startX),this.setSliderPosition(this.currentTranslate))},this.onPointerUp=t=>{var i;if(!this.isDragging)return;this.isDragging=!1,null===(i=this.sliderContainer)||void 0===i||i.releasePointerCapture(t.pointerId);const e=this.currentTranslate-this.getBaseTranslate();e<-50?this.next():e>50?this.prev():this.setPositionByIndex()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.isMobile=!1,this.challenges=void 0,this.initialProgressId="",this.activeTabIndex="",this.currentIndex=null,this.slideWidth=0,this.slideHeight=0,this.isOneSlide=!1}handleClientStylingChange(t,i){t!=i&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,i){t!=i&&a(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,i){t!=i&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}onCurrentIndexChange(t,i){if(null!==i&&t!==i&&t>0){const i=this.challenges[t-1];this.activeChallengeChange.emit(null==i?void 0:i.Id)}}onChallengesChange(t){this.isOneSlide=1===t.length}onInitialProgressIdChange(t,i){t!=i&&this.updateCurrentIndex()}componentWillLoad(){this.translationUrl&&(async t=>{if(t)try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const s=await e.json();i=s,Object.keys(i).forEach((t=>{o[t]||(o[t]={});for(let e in i[t])o[t][e]=i[t][e]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var i})(this.translationUrl)}componentDidLoad(){var t;this.isOneSlide=1===(null===(t=this.challenges)||void 0===t?void 0:t.length),this.resizeObserver=new ResizeObserver((([t])=>{this.slideWidth=Math.round(t.contentRect.width*this.slideWidthToContainer),this.slideHeight=Math.round(t.contentRect.width*this.slideHeightToContainer),this.isOneSlide||this.setPositionByIndex()})),this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&a(this.stylingContainer,this.clientStylingUrl),this.resizeObserver.observe(this.stylingContainer)),this.updateCurrentIndex()}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.resizeObserver&&this.resizeObserver.disconnect()}updateCurrentIndex(){this.isOneSlide?(this.currentIndex=0,this.setSliderPosition(0)):requestAnimationFrame((()=>{var t;const i=(null===(t=this.challenges)||void 0===t?void 0:t.findIndex((t=>(null==t?void 0:t.Id)===this.initialProgressId)))||0;this.currentIndex=i+1,this.setPositionByIndex(!1)}))}setSliderPosition(t){this.sliderContainer&&(this.sliderContainer.style.transform=`translateX(${t}px)`)}getCarouselItems(){const t=this.challenges;return t.length<=1?t:[t[t.length-1],...t,t[0]]}scheduleReset(t){this.sliderContainer&&requestAnimationFrame((()=>{requestAnimationFrame((()=>{const i=this.sliderContainer;i.style.transition="none",this.currentIndex=t,this.setPositionByIndex(!1),requestAnimationFrame((()=>{i.style.transition=""}))}))}))}setPositionByIndex(t=!0){this.sliderContainer&&(this.currentTranslate=-(this.slideWidth+this.slideGap)*this.currentIndex+(this.sliderContainer.clientWidth-this.slideWidth)/2,t||this.disableTransition(),this.setSliderPosition(this.currentTranslate))}getBaseTranslate(){var t,i;const e=null===(t=this.sliderContainer)||void 0===t?void 0:t.querySelector(".challenges__slide"),s=null===(i=this.sliderContainer)||void 0===i?void 0:i.parentElement;if(!e||!s)return 0;const n=e.clientWidth;return-(n+this.slideGap)*this.currentIndex+(s.clientWidth-n)/2}disableTransition(){this.sliderContainer&&(this.sliderContainer.style.transition="none",requestAnimationFrame((()=>{this.sliderContainer.style.transition=""})))}goToSlide(t){this.currentIndex=t+1,this.setPositionByIndex()}getRealIndex(){const t=this.challenges.length;return 0===this.currentIndex?t-1:this.currentIndex===t+1?0:this.currentIndex-1}render(){return e("div",{key:"25e34524b9a1fb6fcd4b164f5f3d58a58173ed09",class:{"slider-container":!0,mobile:this.isMobile,"one-slide":this.isOneSlide},ref:t=>this.stylingContainer=t},e("div",{key:"1f77218efd7201eb0de40405d7128168d5bb2a64",class:"challenges__slider-wrapper",onPointerDown:this.onPointerDown,onPointerMove:this.onPointerMove,onPointerUp:this.onPointerUp,onPointerLeave:this.onPointerUp},e("div",{key:"623e0d69197edea0a4a01a670bc678e2c99af735",class:"challenges__slider",ref:t=>this.sliderContainer=t},this.getCarouselItems().map(((t,i,s)=>e("casino-challenges-overlay-card",{challenge:t,index:i,arrLength:s.length,currentIndex:this.currentIndex,slideWidth:this.slideWidth,slideHeight:this.slideHeight,language:this.language}))))),this.challenges.length>1&&e("div",{key:"39fd37d72070c1198959a61f35a3e4d19088c4a6"},e("button",{key:"e58364a6f329ba4998ca35b820fcecfc4e276efc",class:"action-button action-button--prev",onClick:this.prev},e("img",{key:"725c48c629a64d7bc2121483c3f2967bac303297",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDggMTUiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03LjE2ODk1IDEzLjgzNTNMMC41MDIyNzggNy4xNjg2Mkw3LjE2ODk1IDAuNTAxOTUzIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuMDA0NTkiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K",alt:""})),e("button",{key:"d14196ca0fd4de90f57ed0c97d844a88e1c980cf",class:"action-button action-button--next",onClick:this.next},e("img",{key:"428c63a8b2e1d040e06da89d371c648d3e01c5f7",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDggMTUiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0wLjUwMTk1MyAxMy44MzUzTDcuMTY4NjIgNy4xNjg2MkwwLjUwMTk1MyAwLjUwMTk1MyIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjAwNDU5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==",alt:""})),e("div",{key:"8bd9ffb15115b1a785e9967dc129187e9c6793fe",class:"challenges__slider-dots"},this.challenges.map(((t,i)=>e("span",{class:{"challenges__slider-dot":!0,active:i===this.getRealIndex()},onClick:()=>{this.goToSlide(i)}}))))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],currentIndex:["onCurrentIndexChange"],challenges:["onChallengesChange"],initialProgressId:["onInitialProgressIdChange"]}}};r.style='@import url("https://fonts.googleapis.com/css2?family=Teachers:ital,wght@0,400..800;1,400..800&display=swap"); .one-slide .challenges__slider{justify-content:center;cursor:pointer;transition:none}.slider-container{position:relative}.challenges__slider-wrapper{overflow:hidden;width:100%}.challenges__slider{display:flex;transition:transform 0.25s ease;will-change:transform;touch-action:pan-y;user-select:none;cursor:grab}.challenges__slider.active{cursor:grabbing}.challenges__slider-dots{display:flex;justify-content:center;margin-top:10px}.challenges__slider-dot{width:7px;height:7px;border-radius:50%;background:var(--emw--dot-button-bg, rgba(255, 255, 255, 0.1490196078));margin:4px;cursor:pointer;transition:0.2s}.challenges__slider-dot.active{width:29px;border-radius:8px;background:var(--emw--dot-button-active-bg, rgba(255, 255, 255, 0.2))}.action-button{position:absolute;top:42%;transform:translateY(-50%);stroke:white;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid var(--emw--color-container-border, rgba(255, 255, 255, 0.0705882353));background:var(--emw--color-container-background, rgba(9, 9, 9, 0.5019607843));backdrop-filter:blur(9.5px);cursor:pointer}.action-button--prev{left:30px}.action-button--next{right:30px}.mobile .challenges__slider-dot{width:5px;height:5px;margin:2px}.mobile .challenges__slider-dot.active{width:18px}.mobile .challenges__slide__image-wrapper{width:240px;height:122px}.mobile .challenges__slide__title{bottom:8px;left:8px;font-size:var(--emw--font-size-small, 14px);max-width:224px}.mobile .challenges__slide__badge{top:8px;left:8px;font-size:var(--emw--font-size-2x-small, 11px)}.mobile .challenges__slide__badge .status{height:17px}.mobile .action-button{display:none}';export{r as C,l as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as CasinoChallengesOverlaySlider}from"./casino-challenges-overlay-slider-
|
|
1
|
+
export{C as CasinoChallengesOverlaySlider}from"./casino-challenges-overlay-slider-f3c0b38e.js";import"./index-9e63661c.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-180bdedd.js');
|
|
6
|
-
const casinoChallengesOverlaySlider = require('./casino-challenges-overlay-slider-
|
|
6
|
+
const casinoChallengesOverlaySlider = require('./casino-challenges-overlay-slider-7219662d.js');
|
|
7
7
|
|
|
8
8
|
var EChallengeRewardType;
|
|
9
9
|
(function (EChallengeRewardType) {
|
|
@@ -390,7 +390,7 @@ const CasinoChallengesOverlaySlider = class {
|
|
|
390
390
|
return this.currentIndex - 1;
|
|
391
391
|
}
|
|
392
392
|
render() {
|
|
393
|
-
return (index.h("div", { key: '25e34524b9a1fb6fcd4b164f5f3d58a58173ed09', class: { 'slider-container': true, mobile: this.isMobile, 'one-slide': this.isOneSlide }, ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: '1f77218efd7201eb0de40405d7128168d5bb2a64', class: "challenges__slider-wrapper", onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, index.h("div", { key: '623e0d69197edea0a4a01a670bc678e2c99af735', class: "challenges__slider", ref: (el) => (this.sliderContainer = el) }, this.getCarouselItems().map((item, index$1, arr) => (index.h("casino-challenges-overlay-card", { challenge: item, index: index$1, arrLength: arr.length, currentIndex: this.currentIndex, slideWidth: this.slideWidth, slideHeight: this.slideHeight }))))), this.challenges.length > 1 && (index.h("div", { key: '
|
|
393
|
+
return (index.h("div", { key: '25e34524b9a1fb6fcd4b164f5f3d58a58173ed09', class: { 'slider-container': true, mobile: this.isMobile, 'one-slide': this.isOneSlide }, ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: '1f77218efd7201eb0de40405d7128168d5bb2a64', class: "challenges__slider-wrapper", onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, index.h("div", { key: '623e0d69197edea0a4a01a670bc678e2c99af735', class: "challenges__slider", ref: (el) => (this.sliderContainer = el) }, this.getCarouselItems().map((item, index$1, arr) => (index.h("casino-challenges-overlay-card", { challenge: item, index: index$1, arrLength: arr.length, currentIndex: this.currentIndex, slideWidth: this.slideWidth, slideHeight: this.slideHeight, language: this.language }))))), this.challenges.length > 1 && (index.h("div", { key: '39fd37d72070c1198959a61f35a3e4d19088c4a6' }, index.h("button", { key: 'e58364a6f329ba4998ca35b820fcecfc4e276efc', class: "action-button action-button--prev", onClick: this.prev }, index.h("img", { key: '725c48c629a64d7bc2121483c3f2967bac303297', src: leftArrowSvg, alt: "" })), index.h("button", { key: 'd14196ca0fd4de90f57ed0c97d844a88e1c980cf', class: "action-button action-button--next", onClick: this.next }, index.h("img", { key: '428c63a8b2e1d040e06da89d371c648d3e01c5f7', src: rightArrowSvg, alt: "" })), index.h("div", { key: '8bd9ffb15115b1a785e9967dc129187e9c6793fe', class: "challenges__slider-dots" }, this.challenges.map((_, i) => (index.h("span", { class: {
|
|
394
394
|
'challenges__slider-dot': true,
|
|
395
395
|
active: i === this.getRealIndex()
|
|
396
396
|
}, onClick: () => {
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoChallengesOverlaySlider = require('./casino-challenges-overlay-slider-
|
|
5
|
+
const casinoChallengesOverlaySlider = require('./casino-challenges-overlay-slider-7219662d.js');
|
|
6
6
|
require('./index-180bdedd.js');
|
|
7
7
|
|
|
8
8
|
|
|
@@ -215,7 +215,7 @@ export class CasinoChallengesOverlaySlider {
|
|
|
215
215
|
return this.currentIndex - 1;
|
|
216
216
|
}
|
|
217
217
|
render() {
|
|
218
|
-
return (h("div", { key: '25e34524b9a1fb6fcd4b164f5f3d58a58173ed09', class: { 'slider-container': true, mobile: this.isMobile, 'one-slide': this.isOneSlide }, ref: (el) => (this.stylingContainer = el) }, h("div", { key: '1f77218efd7201eb0de40405d7128168d5bb2a64', class: "challenges__slider-wrapper", onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, h("div", { key: '623e0d69197edea0a4a01a670bc678e2c99af735', class: "challenges__slider", ref: (el) => (this.sliderContainer = el) }, this.getCarouselItems().map((item, index, arr) => (h("casino-challenges-overlay-card", { challenge: item, index: index, arrLength: arr.length, currentIndex: this.currentIndex, slideWidth: this.slideWidth, slideHeight: this.slideHeight }))))), this.challenges.length > 1 && (h("div", { key: '
|
|
218
|
+
return (h("div", { key: '25e34524b9a1fb6fcd4b164f5f3d58a58173ed09', class: { 'slider-container': true, mobile: this.isMobile, 'one-slide': this.isOneSlide }, ref: (el) => (this.stylingContainer = el) }, h("div", { key: '1f77218efd7201eb0de40405d7128168d5bb2a64', class: "challenges__slider-wrapper", onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, h("div", { key: '623e0d69197edea0a4a01a670bc678e2c99af735', class: "challenges__slider", ref: (el) => (this.sliderContainer = el) }, this.getCarouselItems().map((item, index, arr) => (h("casino-challenges-overlay-card", { challenge: item, index: index, arrLength: arr.length, currentIndex: this.currentIndex, slideWidth: this.slideWidth, slideHeight: this.slideHeight, language: this.language }))))), this.challenges.length > 1 && (h("div", { key: '39fd37d72070c1198959a61f35a3e4d19088c4a6' }, h("button", { key: 'e58364a6f329ba4998ca35b820fcecfc4e276efc', class: "action-button action-button--prev", onClick: this.prev }, h("img", { key: '725c48c629a64d7bc2121483c3f2967bac303297', src: leftArrow, alt: "" })), h("button", { key: 'd14196ca0fd4de90f57ed0c97d844a88e1c980cf', class: "action-button action-button--next", onClick: this.next }, h("img", { key: '428c63a8b2e1d040e06da89d371c648d3e01c5f7', src: rightArrow, alt: "" })), h("div", { key: '8bd9ffb15115b1a785e9967dc129187e9c6793fe', class: "challenges__slider-dots" }, this.challenges.map((_, i) => (h("span", { class: {
|
|
219
219
|
'challenges__slider-dot': true,
|
|
220
220
|
active: i === this.getRealIndex()
|
|
221
221
|
}, onClick: () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-9e63661c.js';
|
|
2
|
-
import { t as translate } from './casino-challenges-overlay-slider-
|
|
3
|
-
export { C as casino_challenges_overlay_slider } from './casino-challenges-overlay-slider-
|
|
2
|
+
import { t as translate } from './casino-challenges-overlay-slider-f3c0b38e.js';
|
|
3
|
+
export { C as casino_challenges_overlay_slider } from './casino-challenges-overlay-slider-f3c0b38e.js';
|
|
4
4
|
|
|
5
5
|
var EChallengeRewardType;
|
|
6
6
|
(function (EChallengeRewardType) {
|
|
@@ -388,7 +388,7 @@ const CasinoChallengesOverlaySlider = class {
|
|
|
388
388
|
return this.currentIndex - 1;
|
|
389
389
|
}
|
|
390
390
|
render() {
|
|
391
|
-
return (h("div", { key: '25e34524b9a1fb6fcd4b164f5f3d58a58173ed09', class: { 'slider-container': true, mobile: this.isMobile, 'one-slide': this.isOneSlide }, ref: (el) => (this.stylingContainer = el) }, h("div", { key: '1f77218efd7201eb0de40405d7128168d5bb2a64', class: "challenges__slider-wrapper", onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, h("div", { key: '623e0d69197edea0a4a01a670bc678e2c99af735', class: "challenges__slider", ref: (el) => (this.sliderContainer = el) }, this.getCarouselItems().map((item, index, arr) => (h("casino-challenges-overlay-card", { challenge: item, index: index, arrLength: arr.length, currentIndex: this.currentIndex, slideWidth: this.slideWidth, slideHeight: this.slideHeight }))))), this.challenges.length > 1 && (h("div", { key: '
|
|
391
|
+
return (h("div", { key: '25e34524b9a1fb6fcd4b164f5f3d58a58173ed09', class: { 'slider-container': true, mobile: this.isMobile, 'one-slide': this.isOneSlide }, ref: (el) => (this.stylingContainer = el) }, h("div", { key: '1f77218efd7201eb0de40405d7128168d5bb2a64', class: "challenges__slider-wrapper", onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, h("div", { key: '623e0d69197edea0a4a01a670bc678e2c99af735', class: "challenges__slider", ref: (el) => (this.sliderContainer = el) }, this.getCarouselItems().map((item, index, arr) => (h("casino-challenges-overlay-card", { challenge: item, index: index, arrLength: arr.length, currentIndex: this.currentIndex, slideWidth: this.slideWidth, slideHeight: this.slideHeight, language: this.language }))))), this.challenges.length > 1 && (h("div", { key: '39fd37d72070c1198959a61f35a3e4d19088c4a6' }, h("button", { key: 'e58364a6f329ba4998ca35b820fcecfc4e276efc', class: "action-button action-button--prev", onClick: this.prev }, h("img", { key: '725c48c629a64d7bc2121483c3f2967bac303297', src: leftArrowSvg, alt: "" })), h("button", { key: 'd14196ca0fd4de90f57ed0c97d844a88e1c980cf', class: "action-button action-button--next", onClick: this.next }, h("img", { key: '428c63a8b2e1d040e06da89d371c648d3e01c5f7', src: rightArrowSvg, alt: "" })), h("div", { key: '8bd9ffb15115b1a785e9967dc129187e9c6793fe', class: "challenges__slider-dots" }, this.challenges.map((_, i) => (h("span", { class: {
|
|
392
392
|
'challenges__slider-dot': true,
|
|
393
393
|
active: i === this.getRealIndex()
|
|
394
394
|
}, onClick: () => {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CasinoChallengesOverlaySlider } from './casino-challenges-overlay-slider-
|
|
1
|
+
export { C as CasinoChallengesOverlaySlider } from './casino-challenges-overlay-slider-f3c0b38e.js';
|
|
2
2
|
import './index-9e63661c.js';
|