@everymatrix/casino-promotions-slider 1.24.7 → 1.26.0
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.
|
@@ -61,7 +61,7 @@ for(let e=0;e<C.length;e+=1){const t=C[e];I.has(t)||(
|
|
|
61
61
|
I.add(t),t())}C.length=0}while(A.length);for(;x.length;)x.pop()();O=!1,I.clear(),P(e)}function k(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(N)}}
|
|
62
62
|
/**
|
|
63
63
|
* Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
|
|
64
|
-
*/const
|
|
64
|
+
*/const U=new Set;function D(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];C.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),C=t}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(t),
|
|
65
65
|
// TODO null out other refs, including component.$$ (but need to
|
|
66
66
|
// preserve final state?)
|
|
67
67
|
r.on_destroy=r.fragment=null,r.ctx=[])}function F(e,t){-1===e.$$.dirty[0]&&(A.push(e),O||(O=!0,L.then(R)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function G(o,s,a,h,c,u,f,d=[-1]){const m=l;P(o);const g=o.$$={fragment:null,ctx:[],
|
|
@@ -76,7 +76,7 @@ g.fragment=!!h&&h(g.ctx),s.target){if(s.hydrate){const e=function(e){return Arra
|
|
|
76
76
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
77
77
|
g.fragment&&g.fragment.l(e),e.forEach(p)}else
|
|
78
78
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
79
|
-
g.fragment&&g.fragment.c();s.intro&&((b=o.$$.fragment)&&b.i&&(
|
|
79
|
+
g.fragment&&g.fragment.c();s.intro&&((b=o.$$.fragment)&&b.i&&(U.delete(b),b.i(v))),function(e,r,o,s){const{fragment:a,after_update:l}=e.$$;a&&a.m(r,o),s||
|
|
80
80
|
// onMount happens before the initial afterUpdate
|
|
81
81
|
N((()=>{const r=e.$$.on_mount.map(t).filter(i);
|
|
82
82
|
// if the component was destroyed immediately
|
|
@@ -89,7 +89,7 @@ n(r),e.$$.on_mount=[]})),l.forEach(N)}(o,s.target,s.anchor,s.customElement),R()}
|
|
|
89
89
|
// @ts-ignore todo: improve typings
|
|
90
90
|
for(const e in this.$$.slotted)
|
|
91
91
|
// @ts-ignore todo: improve typings
|
|
92
|
-
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){
|
|
92
|
+
this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){n(this.$$.on_disconnect)}$destroy(){D(this,1),this.$destroy=e}$on(t,r){
|
|
93
93
|
// TODO should this delegate to addEventListener?
|
|
94
94
|
if(!i(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(r),()=>{const e=n.indexOf(r);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function j(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var X=function(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}((function(e,t){"undefined"!=typeof self&&self,e.exports=function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=function(){function e(t){var r=this;if(n(this,e),this.config=e.mergeSettings(t),this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,null===this.selector)throw new Error("Something wrong with your selector 😭");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=[].slice.call(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=e.webkitOrNot(),["resizeHandler","touchstartHandler","touchendHandler","touchmoveHandler","mousedownHandler","mouseupHandler","mouseleaveHandler","mousemoveHandler","clickHandler"].forEach((function(e){r[e]=r[e].bind(r)})),this.init()}return o(e,[{key:"attachEvents",value:function(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}},{key:"detachEvents",value:function(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}},{key:"init",value:function(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}},{key:"buildSliderFrame",value:function(){var e=this.selectorWidth/this.perPage,t=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length;this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=e*t+"px",this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab");var r=document.createDocumentFragment();if(this.config.loop)for(var n=this.innerElements.length-this.perPage;n<this.innerElements.length;n++){var i=this.buildSliderFrameItem(this.innerElements[n].cloneNode(!0));r.appendChild(i)}for(var o=0;o<this.innerElements.length;o++){var s=this.buildSliderFrameItem(this.innerElements[o]);r.appendChild(s)}if(this.config.loop)for(var a=0;a<this.perPage;a++){var l=this.buildSliderFrameItem(this.innerElements[a].cloneNode(!0));r.appendChild(l)}this.sliderFrame.appendChild(r),this.selector.innerHTML="",this.selector.appendChild(this.sliderFrame),this.slideToCurrent()}},{key:"buildSliderFrameItem",value:function(e){var t=document.createElement("div");return t.style.cssFloat=this.config.rtl?"right":"left",t.style.float=this.config.rtl?"right":"left",t.style.width=(this.config.loop?100/(this.innerElements.length+2*this.perPage):100/this.innerElements.length)+"%",t.appendChild(e),t}},{key:"resolveSlidesNumber",value:function(){if("number"==typeof this.config.perPage)this.perPage=this.config.perPage;else if("object"===i(this.config.perPage))for(var e in this.perPage=1,this.config.perPage)window.innerWidth>=e&&(this.perPage=this.config.perPage[e])}},{key:"prev",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var r=this.currentSlide;if(this.config.loop)if(this.currentSlide-e<0){this.disableTransition();var n=this.currentSlide+this.innerElements.length,i=n+this.perPage,o=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),s=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(o+s)+"px, 0, 0)",this.currentSlide=n-e}else this.currentSlide=this.currentSlide-e;else this.currentSlide=Math.max(this.currentSlide-e,0);r!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var r=this.currentSlide;if(this.config.loop)if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();var n=this.currentSlide-this.innerElements.length,i=n+this.perPage,o=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage),s=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(o+s)+"px, 0, 0)",this.currentSlide=n+e}else this.currentSlide=this.currentSlide+e;else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);r!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing}},{key:"goTo",value:function(e,t){if(!(this.innerElements.length<=this.perPage)){var r=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),r!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}}},{key:"slideToCurrent",value:function(e){var t=this,r=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,n=(this.config.rtl?1:-1)*r*(this.selectorWidth/this.perPage);e?requestAnimationFrame((function(){requestAnimationFrame((function(){t.enableTransition(),t.sliderFrame.style[t.transformProperty]="translate3d("+n+"px, 0, 0)"}))})):this.sliderFrame.style[this.transformProperty]="translate3d("+n+"px, 0, 0)"}},{key:"updateAfterDrag",value:function(){var e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),r=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,n=e>0&&this.currentSlide-r<0,i=e<0&&this.currentSlide+r>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(r):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(r),this.slideToCurrent(n||i)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(e){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)}},{key:"touchendHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(e){if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY)<Math.abs(this.drag.startX-e.touches[0].pageX)),this.pointerDown&&this.drag.letItGo){e.preventDefault(),this.drag.endX=e.touches[0].pageX,this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing;var t=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),r=this.drag.endX-this.drag.startX,n=this.config.rtl?t+r:t-r;this.sliderFrame.style[this.transformProperty]="translate3d("+(this.config.rtl?1:-1)*n+"px, 0, 0)"}}},{key:"mousedownHandler",value:function(e){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.preventDefault(),e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.pageX)}},{key:"mouseupHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"mousemoveHandler",value:function(e){if(e.preventDefault(),this.pointerDown){"A"===e.target.nodeName&&(this.drag.preventClick=!0),this.drag.endX=e.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing;var t=(this.config.loop?this.currentSlide+this.perPage:this.currentSlide)*(this.selectorWidth/this.perPage),r=this.drag.endX-this.drag.startX,n=this.config.rtl?t+r:t-r;this.sliderFrame.style[this.transformProperty]="translate3d("+(this.config.rtl?1:-1)*n+"px, 0, 0)"}}},{key:"mouseleaveHandler",value:function(e){this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=e.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())}},{key:"clickHandler",value:function(e){this.drag.preventClick&&e.preventDefault(),this.drag.preventClick=!1}},{key:"remove",value:function(e,t){if(e<0||e>=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");var r=e<this.currentSlide,n=this.currentSlide+this.perPage-1===e;(r||n)&&this.currentSlide--,this.innerElements.splice(e,1),this.buildSliderFrame(),t&&t.call(this)}},{key:"insert",value:function(e,t,r){if(t<0||t>this.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");var n=t<=this.currentSlide>0&&this.innerElements.length;this.currentSlide=n?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),r&&r.call(this)}},{key:"prepend",value:function(e,t){this.insert(e,0),t&&t.call(this)}},{key:"append",value:function(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(this.detachEvents(),this.selector.style.cursor="auto",e){for(var r=document.createDocumentFragment(),n=0;n<this.innerElements.length;n++)r.appendChild(this.innerElements[n]);this.selector.innerHTML="",this.selector.appendChild(r),this.selector.removeAttribute("style")}t&&t.call(this)}}],[{key:"mergeSettings",value:function(e){var t={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:function(){},onChange:function(){}},r=e;for(var n in r)t[n]=r[n];return t}},{key:"webkitOrNot",value:function(){return"string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform"}}]),e}();t.default=s,e.exports=t.default}])})),z=j(X),V="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
|
|
95
95
|
// eslint-disable-next-line no-undef
|
|
@@ -144,7 +144,7 @@ self.fetch.bind(self);
|
|
|
144
144
|
PERFORMANCE OF THIS SOFTWARE.
|
|
145
145
|
***************************************************************************** */
|
|
146
146
|
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
147
|
-
var ge=function(e,t){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},ge(e,t)};function ye(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ge(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function be(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ve(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Ee(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function we(e){return"function"==typeof e}function _e(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var Te=_e((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Pe(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Se=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=be(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(we(l))try{l()}catch(e){i=e instanceof Te?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var c=be(h),u=c.next();!u.done;u=c.next()){var f=u.value;try{Be(f)}catch(e){i=null!=i?i:[],e instanceof Te?i=Ee(Ee([],ve(i)),ve(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(i)throw new Te(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Be(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Pe(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&Pe(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),He=Se.EMPTY;function Ae(e){return e instanceof Se||e&&"closed"in e&&we(e.remove)&&we(e.add)&&we(e.unsubscribe)}function Be(e){we(e)?e():e.unsubscribe()}var Ce={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},xe={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=xe.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ee([e,t],ve(r))):setTimeout.apply(void 0,Ee([e,t],ve(r)))},clearTimeout:function(e){var t=xe.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Le(){}var Oe=null;function Ne(e){if(Ce.useDeprecatedSynchronousErrorHandling){var t=!Oe;if(t&&(Oe={errorThrown:!1,error:null}),e(),t){var r=Oe,n=r.errorThrown,i=r.error;if(Oe=null,n)throw i}}else e()}var Ie=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Ae(t)&&t.add(r)):r.destination=Fe,r}return ye(t,e),t.create=function(e,t,r){return new De(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Se),Me=Function.prototype.bind;function Re(e,t){return Me.call(e,t)}var ke=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){Ue(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){Ue(e)}else Ue(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){Ue(e)}},e}(),De=function(e){function t(t,r,n){var i,o,s=e.call(this)||this;we(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Ce.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Re(t.next,o),error:t.error&&Re(t.error,o),complete:t.complete&&Re(t.complete,o)}):i=t;return s.destination=new ke(i),s}return ye(t,e),t}(Ie);function Ue(e){var t;t=e,xe.setTimeout((function(){throw t}))}var Fe={closed:!0,next:Le,error:function(e){throw e},complete:Le},Ge="function"==typeof Symbol&&Symbol.observable||"@@observable";function $e(e){return e}var je=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof Ie||function(e){return e&&we(e.next)&&we(e.error)&&we(e.complete)}(n)&&Ae(n)?e:new De(e,t,r);return Ne((function(){var e=i,t=e.operator,r=e.source;o.add(t?t.call(o,r):r?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=Xe(t))((function(t,n){var i=new De({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ge]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?$e:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Xe(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function Xe(e){var t;return null!==(t=null!=e?e:Ce.Promise)&&void 0!==t?t:Promise}var ze=_e((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ve=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return ye(t,e),t.prototype.lift=function(e){var t=new We(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new ze},t.prototype.next=function(e){var t=this;Ne((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=be(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;Ne((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Ne((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?He:(this.currentObservers=null,o.push(e),new Se((function(){t.currentObservers=null,Pe(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new je;return e.source=this,e},t.create=function(e,t){return new We(e,t)},t}(je),We=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return ye(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:He},t}(Ve),Ke={now:function(){return(Ke.delegate||Date).now()},delegate:void 0},Ye=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Ke);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return ye(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},t}(Ve);let Ze=[],qe={};
|
|
147
|
+
var ge=function(e,t){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},ge(e,t)};function ye(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ge(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function be(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ve(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Ee(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function we(e){return"function"==typeof e}function _e(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var Te=_e((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Pe(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Se=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=be(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(we(l))try{l()}catch(e){i=e instanceof Te?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var c=be(h),u=c.next();!u.done;u=c.next()){var f=u.value;try{Be(f)}catch(e){i=null!=i?i:[],e instanceof Te?i=Ee(Ee([],ve(i)),ve(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(i)throw new Te(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Be(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Pe(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&Pe(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),He=Se.EMPTY;function Ae(e){return e instanceof Se||e&&"closed"in e&&we(e.remove)&&we(e.add)&&we(e.unsubscribe)}function Be(e){we(e)?e():e.unsubscribe()}var Ce={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},xe={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=xe.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Ee([e,t],ve(r))):setTimeout.apply(void 0,Ee([e,t],ve(r)))},clearTimeout:function(e){var t=xe.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Le(){}var Oe=null;function Ne(e){if(Ce.useDeprecatedSynchronousErrorHandling){var t=!Oe;if(t&&(Oe={errorThrown:!1,error:null}),e(),t){var r=Oe,n=r.errorThrown,i=r.error;if(Oe=null,n)throw i}}else e()}var Ie=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Ae(t)&&t.add(r)):r.destination=Fe,r}return ye(t,e),t.create=function(e,t,r){return new Ue(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Se),Me=Function.prototype.bind;function Re(e,t){return Me.call(e,t)}var ke=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){De(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){De(e)}else De(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){De(e)}},e}(),Ue=function(e){function t(t,r,n){var i,o,s=e.call(this)||this;we(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Ce.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&Re(t.next,o),error:t.error&&Re(t.error,o),complete:t.complete&&Re(t.complete,o)}):i=t;return s.destination=new ke(i),s}return ye(t,e),t}(Ie);function De(e){var t;t=e,xe.setTimeout((function(){throw t}))}var Fe={closed:!0,next:Le,error:function(e){throw e},complete:Le},Ge="function"==typeof Symbol&&Symbol.observable||"@@observable";function $e(e){return e}var je=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof Ie||function(e){return e&&we(e.next)&&we(e.error)&&we(e.complete)}(n)&&Ae(n)?e:new Ue(e,t,r);return Ne((function(){var e=i,t=e.operator,r=e.source;o.add(t?t.call(o,r):r?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=Xe(t))((function(t,n){var i=new Ue({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ge]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?$e:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Xe(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function Xe(e){var t;return null!==(t=null!=e?e:Ce.Promise)&&void 0!==t?t:Promise}var ze=_e((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Ve=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return ye(t,e),t.prototype.lift=function(e){var t=new We(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new ze},t.prototype.next=function(e){var t=this;Ne((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=be(t.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(e)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;Ne((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;Ne((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?He:(this.currentObservers=null,o.push(e),new Se((function(){t.currentObservers=null,Pe(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new je;return e.source=this,e},t.create=function(e,t){return new We(e,t)},t}(je),We=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return ye(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:He},t}(Ve),Ke={now:function(){return(Ke.delegate||Date).now()},delegate:void 0},Ye=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Ke);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return ye(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},t}(Ve);let Ze=[],qe={};
|
|
148
148
|
/**
|
|
149
149
|
* @name topic
|
|
150
150
|
* @description A small wrapper over the rxjs to offer the topic method on top of it
|
|
@@ -328,12 +328,12 @@ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `
|
|
|
328
328
|
// @generated from regex-gen.ts
|
|
329
329
|
var Lt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ot=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Nt=/^(@+)?(\+|#+)?[rs]?$/g,It=/(\*)(0+)|(#+)(0+)|(0+)/g,Mt=/^(0+)$/;function Rt(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Nt,(function(e,r,n){
|
|
330
330
|
// @@@ case
|
|
331
|
-
return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function kt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function
|
|
331
|
+
return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function kt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ut(e){
|
|
332
332
|
// Engineering
|
|
333
|
-
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Mt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function
|
|
333
|
+
var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Mt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Dt(e){var t=kt(e);return t||{}}
|
|
334
334
|
/**
|
|
335
335
|
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
336
|
-
*/function Ft(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=mt(mt(mt({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return mt(mt({},e),
|
|
336
|
+
*/function Ft(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=mt(mt(mt({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return mt(mt({},e),Dt(t))}),{}));continue;case"engineering":t=mt(mt(mt({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return mt(mt({},e),Dt(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;
|
|
337
337
|
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
338
338
|
case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;
|
|
339
339
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
@@ -349,7 +349,7 @@ return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDi
|
|
|
349
349
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
350
350
|
"w"===o?t=mt(mt({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=mt(mt({},t),Rt(o)))}
|
|
351
351
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
352
|
-
else if(Nt.test(i.stem))t=mt(mt({},t),Rt(i.stem));else{var s=kt(i.stem);s&&(t=mt(mt({},t),s));var a=
|
|
352
|
+
else if(Nt.test(i.stem))t=mt(mt({},t),Rt(i.stem));else{var s=kt(i.stem);s&&(t=mt(mt({},t),s));var a=Ut(i.stem);a&&(t=mt(mt({},t),a))}}return t}
|
|
353
353
|
// @generated from time-data-gen.ts
|
|
354
354
|
// prettier-ignore
|
|
355
355
|
var Gt,$t={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
|
|
@@ -653,14 +653,14 @@ this.formats=Nr(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
|
|
|
653
653
|
// Default format options used as the prototype of the `formats` provided to the
|
|
654
654
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
655
655
|
// and Intl.DateTimeFormat instances.
|
|
656
|
-
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Rr={},kr=(e,t,r)=>r?(t in Rr||(Rr[t]={}),e in Rr[t]||(Rr[t][e]=r),r):r,
|
|
656
|
+
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Rr={},kr=(e,t,r)=>r?(t in Rr||(Rr[t]={}),e in Rr[t]||(Rr[t][e]=r),r):r,Ur=(e,t)=>{if(null==t)return;if(t in Rr&&e in Rr[t])return Rr[t][e];const r=cn(t);for(let n=0;n<r.length;n++){const i=$r(r[n],e);if(i)return kr(e,t,i)}};let Dr;const Fr=Qe({});function Gr(e){return e in Dr}function $r(e,t){if(!Gr(e))return null;const r=function(e){return Dr[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function jr(e,...t){delete Rr[e],Fr.update((r=>(r[e]=ht.all([r[e]||{},...t]),r)))}et([Fr],(([e])=>Object.keys(e))),Fr.subscribe((e=>Dr=e));const Xr={};function zr(e){return Xr[e]}function Vr(e){return null!=e&&cn(e).some((e=>{var t;return null==(t=zr(e))?void 0:t.size}))}function Wr(e,t){const r=Promise.all(t.map((t=>(function(e,t){Xr[e].delete(t),0===Xr[e].size&&delete Xr[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>jr(e,...t)))}const Kr={};function Yr(e){if(!Vr(e))return e in Kr?Kr[e]:Promise.resolve();const t=function(e){return cn(e).map((e=>{const t=zr(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Kr[e]=Promise.all(t.map((([e,t])=>Wr(e,t)))).then((()=>{if(Vr(e))return Yr(e);delete Kr[e]})),Kr[e]}const Zr={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function qr(){return Zr}const Jr=Qe(!1);var Qr=Object.defineProperty,en=Object.defineProperties,tn=Object.getOwnPropertyDescriptors,rn=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,sn=(e,t,r)=>t in e?Qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let an;const ln=Qe(null);function hn(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function cn(e,t=qr().fallbackLocale){const r=hn(e);return t?[...new Set([...r,...hn(t)])]:r}function un(){return null!=an?an:void 0}ln.subscribe((e=>{an=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const fn=(pn=((e,t)=>{for(var r in t||(t={}))nn.call(t,r)&&sn(e,r,t[r]);if(rn)for(var r of rn(t))on.call(t,r)&&sn(e,r,t[r]);return e})({},ln),en(pn,tn({set:e=>{if(e&&function(e){if(null==e)return;const t=cn(e);for(let e=0;e<t.length;e++){const r=t[e];if(Gr(r))return r}}(e)&&Vr(e)){const{loadingDelay:t}=qr();let r;return"undefined"!=typeof window&&null!=un()&&t?r=window.setTimeout((()=>Jr.set(!0)),t):Jr.set(!0),Yr(e).then((()=>{ln.set(e)})).finally((()=>{clearTimeout(r),Jr.set(!1)}))}return ln.set(e)}})));var pn;const dn=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var mn=Object.defineProperty,gn=Object.getOwnPropertySymbols,yn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,vn=(e,t,r)=>t in e?mn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,En=(e,t)=>{for(var r in t||(t={}))yn.call(t,r)&&vn(e,r,t[r]);if(gn)for(var r of gn(t))bn.call(t,r)&&vn(e,r,t[r]);return e},wn=(e,t)=>{var r={};for(var n in e)yn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&gn)for(var n of gn(e))t.indexOf(n)<0&&bn.call(e,n)&&(r[n]=e[n]);return r};const _n=(e,t)=>{const{formats:r}=qr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Tn=dn((e=>{var t=e,{locale:r,format:n}=t,i=wn(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=_n("number",n)),new Intl.NumberFormat(r,i)})),Pn=dn((e=>{var t=e,{locale:r,format:n}=t,i=wn(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=_n("date",n):0===Object.keys(i).length&&(i=_n("date","short")),new Intl.DateTimeFormat(r,i)})),Sn=dn((e=>{var t=e,{locale:r,format:n}=t,i=wn(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=_n("time",n):0===Object.keys(i).length&&(i=_n("time","short")),new Intl.DateTimeFormat(r,i)})),Hn=dn((
|
|
657
657
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
658
|
-
(e,t=un())=>new Mr(e,t,qr().formats,{ignoreTag:qr().ignoreTag}))),An=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=un(),default:h}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=
|
|
658
|
+
(e,t=un())=>new Mr(e,t,qr().formats,{ignoreTag:qr().ignoreTag}))),An=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=un(),default:h}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ur(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(o=null!=(i=null==(n=(r=qr()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:e,defaultValue:h}))?i:h)?o:e;if(!a)return c;let u=c;try{u=Hn(c,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},Bn=(e,t)=>((e={})=>{var t=e,{locale:r=un()}=t,n=wn(t,["locale"]);return Sn(En({locale:r},n))})(t).format(e),Cn=(e,t)=>((e={})=>{var t=e,{locale:r=un()}=t,n=wn(t,["locale"]);return Pn(En({locale:r},n))})(t).format(e),xn=(e,t)=>((e={})=>{var t=e,{locale:r=un()}=t,n=wn(t,["locale"]);return Tn(En({locale:r},n))})(t).format(e),Ln=(e,t=un())=>Ur(e,t),On=et([fn,Fr],(()=>An));et([fn],(()=>Bn)),et([fn],(()=>Cn)),et([fn],(()=>xn)),et([fn,Fr],(()=>Ln)),window.emWidgets={topic:(e,t=0)=>{if(-1==Ze.indexOf(e)){let r=new Ye(t);qe[e]=r,Ze.push(e)}return qe[e]}};function Nn(e,t){jr(e,t)}const In={en:{promotionsTitle:"Promotions",promotionsSubTitle:"New hot offers everyday!",promotionsButton:"More Info",promotionsNone:"There are no promotions available at the moment.",promotionsLoading:"Loading, please wait ..."},zh:{promotionsTitle:"促銷活動",promotionsSubTitle:"New hot offers everyday!",promotionsButton:"更多信息",promotionsNone:"目前沒有促銷活動。",promotionsLoading:"Loading, please wait ..."},fr:{promotionsTitle:"Promotions",promotionsSubTitle:"New hot offers everyday!",promotionsButton:"Plus d'informations",promotionsNone:"Il n'y a pas de promotions disponibles pour le moment.",promotionsLoading:"Loading, please wait ..."},tr:{promotionsTitle:"Promosyonlar",promotionsSubTitle:"New hot offers everyday!",promotionsButton:"Daha fazla bilgi",promotionsNone:"Şu anda herhangi bir promosyon bulunmamaktadır.",promotionsLoading:"Loading, please wait ..."},ro:{promotionsTitle:"Promotii",promotionsSubTitle:"New hot offers everyday!",promotionsButton:"Detalii",promotionsNone:"Nu avem promotii disponibile momentan.",promotionsLoading:"Loading, please wait ..."},es:{promotionsTitle:"Promociones",promotionsSubTitle:"New hot offers everyday!",promotionsButton:"Mas informaciones",promotionsNone:"Actualmente no hay promociones disponibles.",promotionsLoading:"Loading, please wait ..."},pt:{promotionsTitle:"Promoções",promotionsSubTitle:"New hot offers everyday!",promotionsButton:"Mais informações",promotionsNone:"Não há promoções disponíveis no momento.",promotionsLoading:"Loading, please wait ..."},hr:{promotionsTitle:"Promocije",promotionsSubTitle:"Nove vruće ponude svaki dan!",promotionsButton:"Više informacija",promotionsNone:"Trenutno nema dostupnih promocija.",promotionsLoading:"Učitavanje"}};
|
|
659
659
|
/* src/CasinoPromotionsSlider.svelte generated by Svelte v3.59.2 */function Mn(e,t,r){const n=e.slice();return n[49]=t[r],n}function Rn(e,t,r){const n=e.slice();return n[52]=t[r],n}function kn(e,t,r){const n=e.slice();return n[49]=t[r],n}
|
|
660
660
|
// (273:8) {:else}
|
|
661
|
-
function
|
|
661
|
+
function Un(e){let t,r,n=/*$_*/e[12]("promotionsNone")+"";return{c(){t=m("p"),r=y(n),E(t,"class","text__center w__100")},m(e,n){f(e,t,n),u(t,r)},p(e,t){/*$_*/4096&t[0]&&n!==(n=/*$_*/e[12]("promotionsNone")+"")&&w(r,n)},d(e){e&&p(t)}}}
|
|
662
662
|
// (226:8) {#if promotions.length > 0}
|
|
663
|
-
function
|
|
663
|
+
function Dn(e){let t,r,n,i=/*promotions*/e[2],o=[];for(let t=0;t<i.length;t+=1)o[t]=$n(Rn(e,i,t));let s=/*totalDots*/e[6]>1&&jn(e);return{c(){t=m("div"),r=m("div");for(let e=0;e<o.length;e+=1)o[e].c();n=b(),s&&s.c(),E(r,"class","slides"),E(t,"class","carousel")},m(i,a){f(i,t,a),u(t,r);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(r,null);
|
|
664
664
|
/*div0_binding*/e[26](r),u(t,n),s&&s.m(t,null)
|
|
665
665
|
/*div1_binding*/,e[27](t)},p(e,n){if(/*handleOpenModal, promotions, $_*/20484&n[0]){let t;for(i=/*promotions*/e[2],t=0;t<i.length;t+=1){const s=Rn(e,i,t);o[t]?o[t].p(s,n):(o[t]=$n(s),o[t].c(),o[t].m(r,null))}for(;t<o.length;t+=1)o[t].d(1);o.length=i.length}/*totalDots*/e[6]>1?s?s.p(e,n):(s=jn(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(r){r&&p(t),d(o,r),
|
|
666
666
|
/*div0_binding*/e[26](null),s&&s.d()
|
|
@@ -670,18 +670,18 @@ function Fn(e){let t,r,n=/*$_*/e[12]("promotionsLoading")+"";return{c(){t=m("p")
|
|
|
670
670
|
// (234:20) {#each promotion.image.sources as imgSource}
|
|
671
671
|
function Gn(e){let t,r,n;return{c(){t=m("source"),E(t,"srcset",r=/*imgSource*/e[49].pictureSource),E(t,"media",n="("+/*imgSource*/e[49].media+")")},m(e,r){f(e,t,r)},p(e,i){/*promotions*/4&i[0]&&r!==(r=/*imgSource*/e[49].pictureSource)&&E(t,"srcset",r),/*promotions*/4&i[0]&&n!==(n="("+/*imgSource*/e[49].media+")")&&E(t,"media",n)},d(e){e&&p(t)}}}
|
|
672
672
|
// (229:12) {#each promotions as promotion}
|
|
673
|
-
function $n(e){let t,r,n,i,o,s,a,l,c,_,T,P,S,H,A,B,C,x,L,O,N,I,M,R,k,
|
|
673
|
+
function $n(e){let t,r,n,i,o,s,a,l,c,_,T,P,S,H,A,B,C,x,L,O,N,I,M,R,k,U=/*promotion*/e[52].title+"",D=/*promotion*/e[52].content.split("</div>")[0]+"",F=/*$_*/e[12]("promotionsButton")+"",G=/*promotion*/e[52].image.sources,$=[];for(let t=0;t<G.length;t+=1)$[t]=Gn(kn(e,G,t));function j(){/*click_handler*/
|
|
674
674
|
return e[25](/*promotion*/e[52])}return{c(){t=m("div"),r=m("div"),n=m("picture");for(let e=0;e<$.length;e+=1)$[e].c();var u,f,p,d;
|
|
675
675
|
// unfortunately this can't be a constant as that wouldn't be tree-shakeable
|
|
676
676
|
// so we cache the result instead
|
|
677
|
-
i=b(),o=m("img"),l=b(),c=m("div"),_=m("h3"),T=b(),P=m("div"),S=b(),H=m("div"),A=m("a"),B=m("b"),C=y(F),x=b(),L=g("svg"),O=g("style"),N=y(".st0{fill:#FFFFFF;}\n "),I=g("path"),M=b(),h(o.src,s=/*promotion*/e[52].image.src)||E(o,"src",s),E(o,"alt",a=/*promotion*/e[52].title),E(n,"class","PromotionImg"),E(n,"part","PromotionImg"),E(_,"class","PromotionTitle"),E(_,"part","PromotionTitle"),E(P,"class","description"),E(P,"part","description"),E(O,"type","text/css"),E(I,"class","st0"),E(I,"d","M9.5,13.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L12.4,9H1.2C0.9,9,0.7,8.9,0.5,8.7\n C0.3,8.5,0.2,8.3,0.2,8s0.1-0.5,0.3-0.7C0.7,7.1,0.9,7,1.2,7h11.1L9.5,4.1C9.3,3.9,9.2,3.7,9.2,3.4c0-0.3,0.1-0.5,0.3-0.7\n c0.2-0.2,0.4-0.3,0.7-0.3c0.3,0,0.5,0.1,0.7,0.3l4.6,4.6c0.1,0.1,0.2,0.2,0.2,0.3c0,0.1,0.1,0.2,0.1,0.4s0,0.3-0.1,0.4\n c0,0.1-0.1,0.2-0.2,0.3l-4.6,4.6c-0.2,0.2-0.4,0.3-0.7,0.3C10,13.6,9.7,13.5,9.5,13.3z"),E(L,"class","arrow"),E(L,"version","1.1"),E(L,"id","Layer_1"),E(L,"xmlns","http://www.w3.org/2000/svg"),E(L,"xmlns:xlink","http://www.w3.org/1999/xlink"),E(L,"x","0px"),E(L,"y","0px"),E(L,"viewBox","0 0 16 16"),u=L,f="enable-background",null==(p="new 0 0 16 16")?u.style.removeProperty(f):u.style.setProperty(f,p,d?"important":""),E(L,"xml:space","preserve"),E(A,"href","javascript:void(0)"),E(A,"class","btn"),E(H,"class","ButtonPosition"),E(c,"class","PromotionText"),E(r,"class","PromotionCard"),E(t,"class","d-flex")},m(e,s){f(e,t,s),u(t,r),u(r,n);for(let e=0;e<$.length;e+=1)$[e]&&$[e].m(n,null);u(n,i),u(n,o),u(r,l),u(r,c),u(c,_),_.innerHTML=
|
|
677
|
+
i=b(),o=m("img"),l=b(),c=m("div"),_=m("h3"),T=b(),P=m("div"),S=b(),H=m("div"),A=m("a"),B=m("b"),C=y(F),x=b(),L=g("svg"),O=g("style"),N=y(".st0{fill:#FFFFFF;}\n "),I=g("path"),M=b(),h(o.src,s=/*promotion*/e[52].image.src)||E(o,"src",s),E(o,"alt",a=/*promotion*/e[52].title),E(n,"class","PromotionImg"),E(n,"part","PromotionImg"),E(_,"class","PromotionTitle"),E(_,"part","PromotionTitle"),E(P,"class","description"),E(P,"part","description"),E(O,"type","text/css"),E(I,"class","st0"),E(I,"d","M9.5,13.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L12.4,9H1.2C0.9,9,0.7,8.9,0.5,8.7\n C0.3,8.5,0.2,8.3,0.2,8s0.1-0.5,0.3-0.7C0.7,7.1,0.9,7,1.2,7h11.1L9.5,4.1C9.3,3.9,9.2,3.7,9.2,3.4c0-0.3,0.1-0.5,0.3-0.7\n c0.2-0.2,0.4-0.3,0.7-0.3c0.3,0,0.5,0.1,0.7,0.3l4.6,4.6c0.1,0.1,0.2,0.2,0.2,0.3c0,0.1,0.1,0.2,0.1,0.4s0,0.3-0.1,0.4\n c0,0.1-0.1,0.2-0.2,0.3l-4.6,4.6c-0.2,0.2-0.4,0.3-0.7,0.3C10,13.6,9.7,13.5,9.5,13.3z"),E(L,"class","arrow"),E(L,"version","1.1"),E(L,"id","Layer_1"),E(L,"xmlns","http://www.w3.org/2000/svg"),E(L,"xmlns:xlink","http://www.w3.org/1999/xlink"),E(L,"x","0px"),E(L,"y","0px"),E(L,"viewBox","0 0 16 16"),u=L,f="enable-background",null==(p="new 0 0 16 16")?u.style.removeProperty(f):u.style.setProperty(f,p,d?"important":""),E(L,"xml:space","preserve"),E(A,"href","javascript:void(0)"),E(A,"class","btn"),E(H,"class","ButtonPosition"),E(c,"class","PromotionText"),E(r,"class","PromotionCard"),E(t,"class","d-flex")},m(e,s){f(e,t,s),u(t,r),u(r,n);for(let e=0;e<$.length;e+=1)$[e]&&$[e].m(n,null);u(n,i),u(n,o),u(r,l),u(r,c),u(c,_),_.innerHTML=U,u(c,T),u(c,P),P.innerHTML=D,u(c,S),u(c,H),u(H,A),u(A,B),u(B,C),u(A,x),u(A,L),u(L,O),u(O,N),u(L,I),u(t,M),R||(k=v(A,"click",j),R=!0)},p(t,r){if(e=t,/*promotions*/4&r[0]){let t;for(G=/*promotion*/e[52].image.sources,t=0;t<G.length;t+=1){const o=kn(e,G,t);$[t]?$[t].p(o,r):($[t]=Gn(o),$[t].c(),$[t].m(n,i))}for(;t<$.length;t+=1)$[t].d(1);$.length=G.length}/*promotions*/4&r[0]&&!h(o.src,s=/*promotion*/e[52].image.src)&&E(o,"src",s),/*promotions*/4&r[0]&&a!==(a=/*promotion*/e[52].title)&&E(o,"alt",a),/*promotions*/4&r[0]&&U!==(U=/*promotion*/e[52].title+"")&&(_.innerHTML=U),/*promotions*/4&r[0]&&D!==(D=/*promotion*/e[52].content.split("</div>")[0]+"")&&(P.innerHTML=D),/*$_*/4096&r[0]&&F!==(F=/*$_*/e[12]("promotionsButton")+"")&&w(C,F)},d(e){e&&p(t),d($,e),R=!1,k()}}}
|
|
678
678
|
// (267:10) {#if totalDots > 1}
|
|
679
679
|
function jn(e){let t,r,n,i=`${/*getCurrentNumber*/e[13](/*currentIndex*/e[7],/*currentPerPage*/e[4])} / ${/*totalDots*/e[6]}`;return{c(){t=m("div"),r=y(i),E(t,"class",n="numberOfPage "+(/*numbersdisplayed*/"true"===e[0]?"":"NotVisible"))},m(e,n){f(e,t,n),u(t,r)},p(e,o){/*currentIndex, currentPerPage, totalDots*/208&o[0]&&i!==(i=`${/*getCurrentNumber*/e[13](/*currentIndex*/e[7],/*currentPerPage*/e[4])} / ${/*totalDots*/e[6]}`)&&w(r,i),/*numbersdisplayed*/1&o[0]&&n!==(n="numberOfPage "+(/*numbersdisplayed*/"true"===e[0]?"":"NotVisible"))&&E(t,"class",n)},d(e){e&&p(t)}}}
|
|
680
680
|
// (280:2) {#if modalIsOpen}
|
|
681
681
|
function Xn(e){let t,r,i,o,s,a,l,c,g,y,w,_,T,P,S,H,A,B=/*modalItem*/e[10].title+"",C=/*modalItem*/e[10].content+"",x=/*modalItem*/e[10].image.sources,L=[];for(let t=0;t<x.length;t+=1)L[t]=zn(Mn(e,x,t));return{c(){t=m("div"),r=b(),i=m("div"),o=m("div"),s=m("a"),s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="close_multi"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg>',a=b(),l=m("picture");for(let e=0;e<L.length;e+=1)L[e].c();c=b(),g=m("img"),_=b(),T=m("h3"),P=b(),S=m("div"),E(t,"class","modal__overlay"),E(s,"href","#"),E(s,"class","IconClose"),E(o,"class","wrapper"),h(g.src,y=/*modalItem*/e[10].image.src)||E(g,"src",y),E(g,"alt",w=/*modalItem*/e[10].title),E(l,"class","modal__img"),E(l,"part","modal-img"),E(T,"class","modal__title"),E(S,"class","modal__description"),E(i,"class","modal")},m(n,h){f(n,t,h),f(n,r,h),f(n,i,h),u(i,o),u(o,s),u(i,a),u(i,l);for(let e=0;e<L.length;e+=1)L[e]&&L[e].m(l,null);u(l,c),u(l,g),u(i,_),u(i,T),T.innerHTML=B,u(i,P),u(i,S),S.innerHTML=C,H||(A=[v(t,"click",/*click_handler_1*/e[29]),v(s,"click",/*click_handler_2*/e[30])],H=!0)},p(e,t){if(/*modalItem*/1024&t[0]){let r;for(x=/*modalItem*/e[10].image.sources,r=0;r<x.length;r+=1){const n=Mn(e,x,r);L[r]?L[r].p(n,t):(L[r]=zn(n),L[r].c(),L[r].m(l,c))}for(;r<L.length;r+=1)L[r].d(1);L.length=x.length}/*modalItem*/1024&t[0]&&!h(g.src,y=/*modalItem*/e[10].image.src)&&E(g,"src",y),/*modalItem*/1024&t[0]&&w!==(w=/*modalItem*/e[10].title)&&E(g,"alt",w),/*modalItem*/1024&t[0]&&B!==(B=/*modalItem*/e[10].title+"")&&(T.innerHTML=B),/*modalItem*/1024&t[0]&&C!==(C=/*modalItem*/e[10].content+"")&&(S.innerHTML=C)},d(e){e&&p(t),e&&p(r),e&&p(i),d(L,e),H=!1,n(A)}}}
|
|
682
682
|
// (301:8) {#each modalItem.image.sources as imgSource}
|
|
683
683
|
function zn(e){let t,r,n;return{c(){t=m("source"),E(t,"srcset",r=/*imgSource*/e[49].pictureSource),E(t,"media",n="("+/*imgSource*/e[49].media+")")},m(e,r){f(e,t,r)},p(e,i){/*modalItem*/1024&i[0]&&r!==(r=/*imgSource*/e[49].pictureSource)&&E(t,"srcset",r),/*modalItem*/1024&i[0]&&n!==(n="("+/*imgSource*/e[49].media+")")&&E(t,"media",n)},d(e){e&&p(t)}}}function Vn(t){let r,n,i,o,s;function a(e,t){/*isLoading*/
|
|
684
|
-
return e[5]?Fn:/*promotions*/e[2].length>0?Un
|
|
684
|
+
return e[5]?Fn:/*promotions*/e[2].length>0?Dn:Un}let l=a(t),h=l(t),c=/*modalIsOpen*/t[11]&&Xn(t);return{c(){r=m("div"),n=m("section"),i=m("div"),h.c(),s=b(),c&&c.c(),this.c=e,E(i,"class","container"),E(n,"class","PromotionSlider"),N((()=>/*section_elementresize_handler*/t[28].call(n))),E(r,"class","CasinoPromotionsSlider")},m(e,a){f(e,r,a),u(r,n),u(n,i),h.m(i,null),o=function(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");const r=m("iframe");r.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;"),r.setAttribute("aria-hidden","true"),r.tabIndex=-1;const n=_();let i;return n?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=v(window,"message",(e=>{e.source===r.contentWindow&&t()}))):(r.src="about:blank",r.onload=()=>{i=v(r.contentWindow,"resize",t),
|
|
685
685
|
// make sure an initial resize event is fired _after_ the iframe is loaded (which is asynchronous)
|
|
686
686
|
// see https://github.com/sveltejs/svelte/issues/4233
|
|
687
687
|
t()}),u(e,r),()=>{(n||i&&r.contentWindow)&&i(),p(r)}}(n,/*section_elementresize_handler*/t[28].bind(n)),u(r,s),c&&c.m(r,null)
|
|
@@ -699,5 +699,5 @@ let _=window.navigator.userAgent;
|
|
|
699
699
|
// start implement slider
|
|
700
700
|
let T,P,A,C=4,x=0;const L=H();let O;const N=()=>!(v.length<=(O>=1600?r(23,C=4):O>=1250?r(23,C=3):O>=768?r(23,C=2):O>=320&&r(23,C=1),"object"==typeof C?C:Number(C))),I=()=>{P&&(r(23,C=r(4,n=P?P.perPage:C)),r(6,E=P?Math.ceil(P.innerElements.length/n):0))},M=((e,t)=>{let r;return function(){const n=this,i=arguments;clearTimeout(r),r=setTimeout((()=>e.apply(n,i)),t)}})(I,300);var R;R=()=>(window.addEventListener("resize",M),()=>{window.removeEventListener("resize",M)}),S().$$.on_mount.push(R);function k(){r(7,x=P.currentSlide),L("change",{currentSlide:P.currentSlide,slideCount:P.innerElements.length})}
|
|
701
701
|
// Get number of page
|
|
702
|
-
let
|
|
702
|
+
let U={},D=!1;const F=e=>{r(10,U=e),r(11,D=!0)},G=()=>{r(10,U={}),r(11,D=!1)};return e.$$set=e=>{"endpoint"in e&&r(16,h=e.endpoint),"lang"in e&&r(17,u=e.lang),"env"in e&&r(18,f=e.env),"userroles"in e&&r(19,p=e.userroles),"translationurl"in e&&r(20,d=e.translationurl),"clientstyling"in e&&r(21,m=e.clientstyling),"clientstylingurl"in e&&r(22,g=e.clientstylingurl),"numbersdisplayed"in e&&r(0,y=e.numbersdisplayed)},e.$$.update=()=>{/*lang*/131072&e.$$.dirty[0]&&u&&w(),/*translationurl*/1048576&e.$$.dirty[0]&&d&&fetch(d).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Nn(t,e[t])}))})).catch((e=>{console.log(e)})),/*endpoint, lang, env, userroles*/983040&e.$$.dirty[0]&&h&&u&&f&&p&&(()=>{r(5,b=!0);let e=new URL(`${h}/${u}/promotions?env=${f}`),t=(e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(_);t&&("PC"===t?e.searchParams.append("device","dk"):"iPad"===t||"iPhone"===t?e.searchParams.append("device","ios"):e.searchParams.append("device","mtWeb")),e.searchParams.append("userRoles",p),fetch(e.href).then((e=>e.json())).then((e=>{r(5,b=!1),r(2,v=e)})).catch((e=>{r(5,b=!1),console.error(e)}))})(),/*clientstyling, customStylingContainer*/2097154&e.$$.dirty[0]&&m&&a&&(()=>{let e=document.createElement("style");e.innerHTML=m,a.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/4194306&e.$$.dirty[0]&&g&&a&&(()=>{let e=document.createElement("style");fetch(new URL(g)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{a.appendChild(e)}),1)}))})(),/*controller, perPage*/25165824&e.$$.dirty[0]&&r(4,n=P?P.perPage:C),/*controller, currentPerPage*/16777232&e.$$.dirty[0]&&r(6,E=P?Math.ceil(P.innerElements.length/n):0),/*promotions, promotionsSlider*/12&e.$$.dirty[0]&&v&&l&&(r(24,P=new z({selector:T,loop:N(),duration:200,easing:"ease-out",startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,rtl:!1,onChange:k,perPage:{320:1,768:2,1220:3,1600:4}})),A=setInterval((()=>P.next()),4e3)),/*controller*/16777216&e.$$.dirty[0]&&P&&I()},[y,a,v,l,n,b,E,x,T,O,U,D,i,(e,t)=>{const r=Math.ceil((e+1)/t);return 0===r?E:r},F,G,h,u,f,p,d,m,g,C,P,e=>{F(e)},function(e){B[e?"unshift":"push"]((()=>{T=e,r(8,T)}))},function(e){B[e?"unshift":"push"]((()=>{l=e,r(3,l)}))},function(){O=this.clientWidth,r(9,O)},()=>G(),()=>G(),function(e){B[e?"unshift":"push"]((()=>{a=e,r(1,a)}))}]}class Kn extends ${constructor(e){super();const t=document.createElement("style");t.textContent=':host{font-family:"Montserrat", sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoPromotionsSlider{background:linear-gradient(180deg, #F3F1FF, #ECE8FF);color:#080843;text-align:center;container-type:inline-size;container-name:container-slider}.CasinoPromotionsSlider .sliders .carousel{position:relative;width:100%;justify-content:center;align-items:center}.CasinoPromotionsSlider .PromotionSlider{overflow:hidden;position:relative;padding:20px 130px}.CasinoPromotionsSlider .container{display:flex;justify-content:space-between;width:100%}.CasinoPromotionsSlider .container .carousel{width:100%;position:relative}.CasinoPromotionsSlider .container .slides{margin:20px 0}.CasinoPromotionsSlider .PromotionCard{background:#fff;box-shadow:0 2px 4px rgba(0, 0, 0, 0.2);border-radius:4px;padding:10px 10px 10px 10px;margin:0 10px;max-width:none;color:#080843;position:relative;display:flex;flex-direction:column;align-items:center;gap:10px}.CasinoPromotionsSlider .PromotionCard .PromotionImg img{object-fit:cover;border-radius:4px;width:100%;height:220px;flex-basis:auto;box-sizing:border-box}.CasinoPromotionsSlider .PromotionCard .PromotionTitle{margin:4px 0;text-align:left;font-size:18px;display:-webkit-box !important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.CasinoPromotionsSlider .PromotionCard .description{text-align:left;font-size:14px;line-height:16px;display:-webkit-box !important;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.CasinoPromotionsSlider .PromotionCard .PromotionText{height:200px;position:relative;display:flex;flex-direction:column;width:100%;box-sizing:border-box}.CasinoPromotionsSlider .PromotionCard .arrow{width:16px;height:16px;position:absolute;transform:translateX(4px)}.CasinoPromotionsSlider .PromotionCard .ButtonPosition{height:30px;min-width:150px;margin-top:20px;align-self:center;order:1}.CasinoPromotionsSlider .PromotionCard .btn:link,.CasinoPromotionsSlider .PromotionCard .btn:visited{text-transform:uppercase;padding:10px 30px;background:linear-gradient(180deg, #F9253C, #D50866);color:#fff;border-radius:100px;transition:all 0.2s;transition-timing-function:ease-out;font-size:14px}.CasinoPromotionsSlider .PromotionCard .btn:hover{padding:10px 32px}.CasinoPromotionsSlider .PromotionCard .btn:hover .arrow{transform:translateX(8px);transition:all 0.2s}.CasinoPromotionsSlider .text__center{text-align:center}.CasinoPromotionsSlider .w__100{width:100%}.CasinoPromotionsSlider .d-flex{display:flex;justify-content:space-around;align-items:center;margin-bottom:10px}.CasinoPromotionsSlider .NotVisible{display:none}.CasinoPromotionsSlider .numberOfPage{color:#D50866;font-size:18px;margin-top:15px}.CasinoPromotionsSlider .modal{background:#fff;box-shadow:0 4px 6px rgba(0, 0, 0, 0.2);border-radius:4px;padding:40px;max-height:90%;width:1000px;color:#080843;position:absolute;z-index:10;top:50%;left:50%;transform:translate(-50%, -50%);overflow-y:auto;display:flex;flex-direction:column}.CasinoPromotionsSlider .modal .wrapper{position:sticky;top:0;right:0;z-index:10}.CasinoPromotionsSlider .modal .IconClose{width:24px;height:24px;color:#888;position:absolute;top:-30px;right:-30px;z-index:20}.CasinoPromotionsSlider .modal .IconClose:hover,.CasinoPromotionsSlider .modal .IconClose:focus{cursor:pointer;color:#222}.CasinoPromotionsSlider .modal::-webkit-scrollbar{display:none}.CasinoPromotionsSlider .modal__img{display:block;position:relative}.CasinoPromotionsSlider .modal__img img{object-fit:cover;border-radius:4px;max-height:300px;width:100%;height:100%}.CasinoPromotionsSlider .modal__title{margin-bottom:4px;text-align:left;font-size:18px}.CasinoPromotionsSlider .modal__description{margin-bottom:20px;text-align:left;font-size:14px;line-height:16px}.CasinoPromotionsSlider .modal__overlay{position:fixed;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgba(0, 0, 0, 0.4);z-index:5}@container container-slider (max-width: 1700px){.CasinoPromotionsSlider .PromotionSlider{padding:20px 100px}}@container container-slider (max-width: 1300px){.CasinoPromotionsSlider .PromotionSlider{padding:20px 80px}.CasinoPromotionsSlider .PromotionTitle{font-size:16px}.CasinoPromotionsSlider .description{font-size:13px}.CasinoPromotionsSlider .btn:link,.CasinoPromotionsSlider .btn:visited{font-size:13px}.CasinoPromotionsSlider .numberOfPage{font-size:16px}.CasinoPromotionsSlider .modal{width:900px}.CasinoPromotionsSlider .modal__title{font-size:16px}.CasinoPromotionsSlider .modal__description{font-size:13px}}@container container-slider (max-width: 950px){.CasinoPromotionsSlider .PromotionSlider{padding:20px 20px}.CasinoPromotionsSlider .modal{padding:30px;width:600px}.CasinoPromotionsSlider .modal .IconClose{width:20px;height:20px;top:-24px;right:-24px}}@container container-slider (max-width: 720px){.CasinoPromotionsSlider .PromotionSlider{padding:20px 10px}.CasinoPromotionsSlider .modal{padding:30px;width:500px}}@container container-slider (max-width: 600px){.CasinoPromotionsSlider .modal{padding:26px;width:90%}.CasinoPromotionsSlider .modal .IconClose{width:20px;height:20px;top:-20px;right:-20px}}',this.shadowRoot.appendChild(t),G(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Wn,Vn,o,{endpoint:16,lang:17,env:18,userroles:19,translationurl:20,clientstyling:21,clientstylingurl:22,numbersdisplayed:0},null,[-1,-1]),e&&(e.target&&f(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["endpoint","lang","env","userroles","translationurl","clientstyling","clientstylingurl","numbersdisplayed"]}get endpoint(){return this.$$.ctx[16]}set endpoint(e){this.$$set({endpoint:e}),R()}get lang(){return this.$$.ctx[17]}set lang(e){this.$$set({lang:e}),R()}get env(){return this.$$.ctx[18]}set env(e){this.$$set({env:e}),R()}get userroles(){return this.$$.ctx[19]}set userroles(e){this.$$set({userroles:e}),R()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),R()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[22]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get numbersdisplayed(){return this.$$.ctx[0]}set numbersdisplayed(e){this.$$set({numbersdisplayed:e}),R()}}return!customElements.get("casino-promotions-slider")&&customElements.define("casino-promotions-slider",Kn),Kn}));
|
|
703
703
|
//# sourceMappingURL=casino-promotions-slider.js.map
|