@everymatrix/casino-header-controller 1.99.57 → 1.99.60
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/components/{CasinoHamburgerMenu-CXUi_NcT.js → CasinoHamburgerMenu-8Yv9Es4K.js} +1 -1
- package/components/{CasinoHamburgerMenu-DPONn7Oe.cjs → CasinoHamburgerMenu-CL8nhGpg.cjs} +1 -1
- package/components/{CasinoHamburgerMenu-uR8GGiGu.js → CasinoHamburgerMenu-DMqFMBMA.js} +1 -1
- package/components/{CasinoHeaderController-4pGirukJ.cjs → CasinoHeaderController-BebwEw_f.cjs} +2 -2
- package/components/{CasinoHeaderController-DkBA9yLf.js → CasinoHeaderController-D2WkLDTh.js} +44 -75
- package/components/{CasinoHeaderController-CSlIjF2w.js → CasinoHeaderController-TyLRlsLr.js} +43 -74
- package/components/{CasinoSlider-CElWGDXe.js → CasinoSlider-B6pPpBAN.js} +2 -3
- package/components/{CasinoSlider-Cp-AeQjz.js → CasinoSlider-BxI7dLGq.js} +2 -3
- package/components/{CasinoSlider-7EQwu2tM.cjs → CasinoSlider-CDBccV9o.cjs} +1 -1
- package/components/{PlayerAccountBalanceModal-CQH4-Eew.js → PlayerAccountBalanceModal-BE5tx44-.js} +4 -7
- package/components/{PlayerAccountBalanceModal-jtA37xTC.cjs → PlayerAccountBalanceModal-DLseHG5s.cjs} +1 -1
- package/components/{PlayerAccountBalanceModal-CiC5x5pH.js → PlayerAccountBalanceModal-DjiFDthK.js} +4 -7
- package/components/{PlayerDeposit-CEvi6Jjd.cjs → PlayerDeposit-BJuqOzia.cjs} +1 -1
- package/components/{PlayerDeposit-BBdZhQ-P.js → PlayerDeposit-CaAWV9OS.js} +1 -1
- package/components/{PlayerDeposit-JwFZg0JI.js → PlayerDeposit-vUdMmlPG.js} +1 -1
- package/es2015/casino-header-controller.cjs +1 -1
- package/es2015/casino-header-controller.js +1 -1
- package/esnext/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{gamification-dropdown-CVnzUphm.cjs → gamification-dropdown-D8NaAbqg.cjs} +1 -1
- package/stencil/{gamification-dropdown-BQS6hhP4.js → gamification-dropdown-DSrBVk8H.js} +1 -1
- package/stencil/{gamification-dropdown-f420baf5-BfpzhUn7.js → gamification-dropdown-f420baf5-B2t9VWTr.js} +4 -7
- package/stencil/{gamification-dropdown-f420baf5-BCKjHtD4.js → gamification-dropdown-f420baf5-DNcHSm2H.js} +4 -7
- package/stencil/{gamification-dropdown-f420baf5-alSGPW2H.cjs → gamification-dropdown-f420baf5-ZxOVTTGg.cjs} +1 -1
- package/stencil/{gamification-dropdown-BUiRE_Yx.js → gamification-dropdown-wl7rjLTt.js} +1 -1
- package/stencil/{gamification-dropdown_4-SKRyZsxx.js → gamification-dropdown_4-BuGJb-5U.js} +4 -4
- package/stencil/{gamification-dropdown_4-DzQLLC_4.cjs → gamification-dropdown_4-CkUSH1P_.cjs} +1 -1
- package/stencil/{gamification-dropdown_4-DWLkL87g.js → gamification-dropdown_4-zpRTTBrB.js} +4 -4
- package/stencil/{index-2ff63899-Bmsl_n53.js → index-2ff63899-BQ-GC1uS.js} +22 -24
- package/stencil/{index-2ff63899-M3OBLBOo.js → index-2ff63899-DKFAXj5b.js} +22 -24
- package/stencil/{index-71b1bdfa-CspYmQxH.cjs → index-71b1bdfa-CboQhAlR.cjs} +1 -1
- package/stencil/{index-71b1bdfa-84w5HKVY.js → index-71b1bdfa-DC7qXgDk.js} +29 -32
- package/stencil/{index-71b1bdfa-BZYNHaid.js → index-71b1bdfa-Dm_5jCHa.js} +29 -32
- package/stencil/{player-elevate-card-DhtGdXIs.js → player-elevate-card-Bq3dgNbQ.js} +2 -2
- package/stencil/{player-elevate-card-DLTz3i6G.js → player-elevate-card-DaBGRCCF.js} +2 -2
- package/stencil/{player-elevate-card-DGfdSEPc.cjs → player-elevate-card-DqVxatD1.cjs} +1 -1
- package/stencil/{player-elevate-card-items-00ff462d-BG3JQcrm.js → player-elevate-card-items-00ff462d-BgCFriKE.js} +3 -5
- package/stencil/{player-elevate-card-items-00ff462d-BpMYjbkg.js → player-elevate-card-items-00ff462d-DV0OTglS.js} +3 -5
- package/stencil/{player-elevate-card-items-00ff462d-H3eXn_1V.cjs → player-elevate-card-items-00ff462d-soRu-WUH.cjs} +1 -1
- package/stencil/{player-elevate-optcard-CXMaEK83.js → player-elevate-optcard-C1qOeyX4.js} +6 -6
- package/stencil/player-elevate-optcard-CveO6eHp.cjs +1 -0
- package/stencil/{player-elevate-optcard-Con-pI2g.js → player-elevate-optcard-mxT5ihy4.js} +4 -4
- package/stencil/{player-elevate-pointcard-BS2urXJv.cjs → player-elevate-pointcard-BKonevSI.cjs} +1 -1
- package/stencil/{player-elevate-pointcard-8tLbC5i_.js → player-elevate-pointcard-Bnmj1qZw.js} +2 -2
- package/stencil/{player-elevate-pointcard-DfasvCvq.js → player-elevate-pointcard-Dkc7UkBV.js} +2 -2
- package/stencil/{player-rakeback-card-DjtoaBPw.cjs → player-rakeback-card-Wq2A87v3.cjs} +1 -1
- package/stencil/{player-rakeback-card-NWvDs0b6.js → player-rakeback-card-mirK503J.js} +1 -1
- package/stencil/{player-rakeback-card-C6_twj91.js → player-rakeback-card-syCyRnvA.js} +1 -1
- package/stencil/{player-step-up-auth_2-sIyE7PcU.js → player-step-up-auth_2-DOHSo_hl.js} +26 -51
- package/stencil/{player-step-up-auth_2-CTrT3eAX.js → player-step-up-auth_2-fYr_xGVR.js} +26 -51
- package/stencil/{user-deposit-withdrawal-vUNB12t8.js → user-deposit-withdrawal-D0uCr6L-.js} +1 -1
- package/stencil/{user-deposit-withdrawal-Ds_hHXZo.js → user-deposit-withdrawal-DaN2eAki.js} +1 -1
- package/stencil/player-elevate-optcard-DXaMieTo.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const l=require("./index-71b1bdfa-CspYmQxH.cjs"),U=require("./locale-9O1EQzoO.cjs");function Y(r){"@babel/helpers - typeof";return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(r)}function M(r){if(r===null||r===!0||r===!1)return NaN;var e=Number(r);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function h(r,e){if(e.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+e.length+" present")}function p(r){h(1,arguments);var e=Object.prototype.toString.call(r);return r instanceof Date||Y(r)==="object"&&e==="[object Date]"?new Date(r.getTime()):typeof r=="number"||e==="[object Number]"?new Date(r):((typeof r=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function te(r,e){h(2,arguments);var t=p(r).getTime(),a=M(e);return new Date(t+a)}var re={};function L(){return re}function X(r){var e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),r.getTime()-e.getTime()}function ae(r){return h(1,arguments),r instanceof Date||Y(r)==="object"&&Object.prototype.toString.call(r)==="[object Date]"}function ne(r){if(h(1,arguments),!ae(r)&&typeof r!="number")return!1;var e=p(r);return!isNaN(Number(e))}function ie(r,e){h(2,arguments);var t=M(e);return te(r,-t)}var oe=864e5;function se(r){h(1,arguments);var e=p(r),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),n=t-a;return Math.floor(n/oe)+1}function B(r){h(1,arguments);var e=1,t=p(r),a=t.getUTCDay(),n=(a<e?7:0)+a-e;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function Q(r){h(1,arguments);var e=p(r),t=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(t+1,0,4),a.setUTCHours(0,0,0,0);var n=B(a),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var o=B(i);return e.getTime()>=n.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function le(r){h(1,arguments);var e=Q(r),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var a=B(t);return a}var ue=6048e5;function de(r){h(1,arguments);var e=p(r),t=B(e).getTime()-le(e).getTime();return Math.round(t/ue)+1}function F(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=L(),f=M((t=(a=(n=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:m.weekStartsOn)!==null&&a!==void 0?a:(c=m.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=p(r),v=g.getUTCDay(),y=(v<f?7:0)+v-f;return g.setUTCDate(g.getUTCDate()-y),g.setUTCHours(0,0,0,0),g}function V(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=p(r),f=m.getUTCFullYear(),g=L(),v=M((t=(a=(n=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:g.firstWeekContainsDate)!==null&&a!==void 0?a:(c=g.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(f+1,0,v),y.setUTCHours(0,0,0,0);var O=F(y,e),x=new Date(0);x.setUTCFullYear(f,0,v),x.setUTCHours(0,0,0,0);var N=F(x,e);return m.getTime()>=O.getTime()?f+1:m.getTime()>=N.getTime()?f:f-1}function ce(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=L(),f=M((t=(a=(n=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:m.firstWeekContainsDate)!==null&&a!==void 0?a:(c=m.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),g=V(r,e),v=new Date(0);v.setUTCFullYear(g,0,f),v.setUTCHours(0,0,0,0);var y=F(v,e);return y}var fe=6048e5;function he(r,e){h(1,arguments);var t=p(r),a=F(t,e).getTime()-ce(t,e).getTime();return Math.round(a/fe)+1}function s(r,e){for(var t=r<0?"-":"",a=Math.abs(r).toString();a.length<e;)a="0"+a;return t+a}var me={y:function(e,t){var a=e.getUTCFullYear(),n=a>0?a:1-a;return s(t==="yy"?n%100:n,t.length)},M:function(e,t){var a=e.getUTCMonth();return t==="M"?String(a+1):s(a+1,2)},d:function(e,t){return s(e.getUTCDate(),t.length)},a:function(e,t){var a=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(e,t){return s(e.getUTCHours()%12||12,t.length)},H:function(e,t){return s(e.getUTCHours(),t.length)},m:function(e,t){return s(e.getUTCMinutes(),t.length)},s:function(e,t){return s(e.getUTCSeconds(),t.length)},S:function(e,t){var a=t.length,n=e.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,a-3));return s(i,t.length)}};const C=me;var _={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ve={G:function(e,t,a){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){var n=e.getUTCFullYear(),i=n>0?n:1-n;return a.ordinalNumber(i,{unit:"year"})}return C.y(e,t)},Y:function(e,t,a,n){var i=V(e,n),o=i>0?i:1-i;if(t==="YY"){var u=o%100;return s(u,2)}return t==="Yo"?a.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){var a=Q(e);return s(a,t.length)},u:function(e,t){var a=e.getUTCFullYear();return s(a,t.length)},Q:function(e,t,a){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return s(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,a){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return s(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,a){var n=e.getUTCMonth();switch(t){case"M":case"MM":return C.M(e,t);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,a){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return s(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,a,n){var i=he(e,n);return t==="wo"?a.ordinalNumber(i,{unit:"week"}):s(i,t.length)},I:function(e,t,a){var n=de(e);return t==="Io"?a.ordinalNumber(n,{unit:"week"}):s(n,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getUTCDate(),{unit:"date"}):C.d(e,t)},D:function(e,t,a){var n=se(e);return t==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):s(n,t.length)},E:function(e,t,a){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,a,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return a.ordinalNumber(o,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,a,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return a.ordinalNumber(o,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,a){var n=e.getUTCDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return s(i,t.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,a){var n=e.getUTCHours(),i=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,a){var n=e.getUTCHours(),i;switch(n===12?i=_.noon:n===0?i=_.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,a){var n=e.getUTCHours(),i;switch(n>=17?i=_.evening:n>=12?i=_.afternoon:n>=4?i=_.morning:i=_.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){var n=e.getUTCHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return C.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getUTCHours(),{unit:"hour"}):C.H(e,t)},K:function(e,t,a){var n=e.getUTCHours()%12;return t==="Ko"?a.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},k:function(e,t,a){var n=e.getUTCHours();return n===0&&(n=24),t==="ko"?a.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):C.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):C.s(e,t)},S:function(e,t){return C.S(e,t)},X:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return q(o);case"XXXX":case"XX":return T(o);case"XXXXX":case"XXX":default:return T(o,":")}},x:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return q(o);case"xxxx":case"xx":return T(o);case"xxxxx":case"xxx":default:return T(o,":")}},O:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+A(o,":");case"OOOO":default:return"GMT"+T(o,":")}},z:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+A(o,":");case"zzzz":default:return"GMT"+T(o,":")}},t:function(e,t,a,n){var i=n._originalDate||e,o=Math.floor(i.getTime()/1e3);return s(o,t.length)},T:function(e,t,a,n){var i=n._originalDate||e,o=i.getTime();return s(o,t.length)}};function A(r,e){var t=r>0?"-":"+",a=Math.abs(r),n=Math.floor(a/60),i=a%60;if(i===0)return t+String(n);var o=e;return t+String(n)+o+s(i,2)}function q(r,e){if(r%60===0){var t=r>0?"-":"+";return t+s(Math.abs(r)/60,2)}return T(r,e)}function T(r,e){var t=e||"",a=r>0?"-":"+",n=Math.abs(r),i=s(Math.floor(n/60),2),o=s(n%60,2);return a+i+t+o}const ge=ve;var $=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},j=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},we=function(e,t){var a=e.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return $(e,t);var o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",$(n,t)).replace("{{time}}",j(i,t))},ye={p:j,P:we};const pe=ye;var be=["D","DD"],Ce=["YY","YYYY"];function xe(r){return be.indexOf(r)!==-1}function Te(r){return Ce.indexOf(r)!==-1}function R(r,e,t){if(r==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Me={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},_e=function(e,t,a){var n,i=Me[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};const Oe=_e;function I(r){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):r.defaultWidth,a=r.formats[t]||r.formats[r.defaultWidth];return a}}var Pe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},De={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Se={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ke={date:I({formats:Pe,defaultWidth:"full"}),time:I({formats:De,defaultWidth:"full"}),dateTime:I({formats:Se,defaultWidth:"full"})};const Ue=ke;var We={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ee=function(e,t,a,n){return We[e]};const Ye=Ee;function S(r){return function(e,t){var a=t!=null&&t.context?String(t.context):"standalone",n;if(a==="formatting"&&r.formattingValues){var i=r.defaultFormattingWidth||r.defaultWidth,o=t!=null&&t.width?String(t.width):i;n=r.formattingValues[o]||r.formattingValues[i]}else{var u=r.defaultWidth,c=t!=null&&t.width?String(t.width):r.defaultWidth;n=r.values[c]||r.values[u]}var d=r.argumentCallback?r.argumentCallback(e):e;return n[d]}}var Be={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Fe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Le={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ge={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},He={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ie=function(e,t){var a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Ae={ordinalNumber:Ie,era:S({values:Be,defaultWidth:"wide"}),quarter:S({values:Fe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:S({values:Le,defaultWidth:"wide"}),day:S({values:Ne,defaultWidth:"wide"}),dayPeriod:S({values:Ge,defaultWidth:"wide",formattingValues:He,defaultFormattingWidth:"wide"})};const qe=Ae;function k(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.width,n=a&&r.matchPatterns[a]||r.matchPatterns[r.defaultMatchWidth],i=e.match(n);if(!i)return null;var o=i[0],u=a&&r.parsePatterns[a]||r.parsePatterns[r.defaultParseWidth],c=Array.isArray(u)?Re(u,function(f){return f.test(o)}):$e(u,function(f){return f.test(o)}),d;d=r.valueCallback?r.valueCallback(c):c,d=t.valueCallback?t.valueCallback(d):d;var m=e.slice(o.length);return{value:d,rest:m}}}function $e(r,e){for(var t in r)if(r.hasOwnProperty(t)&&e(r[t]))return t}function Re(r,e){for(var t=0;t<r.length;t++)if(e(r[t]))return t}function Xe(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=e.match(r.matchPattern);if(!a)return null;var n=a[0],i=e.match(r.parsePattern);if(!i)return null;var o=r.valueCallback?r.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var u=e.slice(n.length);return{value:o,rest:u}}}var Qe=/^(\d+)(th|st|nd|rd)?/i,Ve=/\d+/i,je={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ze={any:[/^b/i,/^(a|c)/i]},Je={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ke={any:[/1/i,/2/i,/3/i,/4/i]},Ze={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},et={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},rt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},at={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},nt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},it={ordinalNumber:Xe({matchPattern:Qe,parsePattern:Ve,valueCallback:function(e){return parseInt(e,10)}}),era:k({matchPatterns:je,defaultMatchWidth:"wide",parsePatterns:ze,defaultParseWidth:"any"}),quarter:k({matchPatterns:Je,defaultMatchWidth:"wide",parsePatterns:Ke,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:k({matchPatterns:Ze,defaultMatchWidth:"wide",parsePatterns:et,defaultParseWidth:"any"}),day:k({matchPatterns:tt,defaultMatchWidth:"wide",parsePatterns:rt,defaultParseWidth:"any"}),dayPeriod:k({matchPatterns:at,defaultMatchWidth:"any",parsePatterns:nt,defaultParseWidth:"any"})};const ot=it;var st={code:"en-US",formatDistance:Oe,formatLong:Ue,formatRelative:Ye,localize:qe,match:ot,options:{weekStartsOn:0,firstWeekContainsDate:1}};const lt=st;var ut=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ct=/^'([^]*?)'?$/,ft=/''/g,ht=/[a-zA-Z]/;function z(r,e,t){var a,n,i,o,u,c,d,m,f,g,v,y,O,x;h(2,arguments);var N=String(e),P=L(),D=(a=(n=void 0)!==null&&n!==void 0?n:P.locale)!==null&&a!==void 0?a:lt,G=M((i=(o=(u=(c=void 0)!==null&&c!==void 0?c:void 0)!==null&&u!==void 0?u:P.firstWeekContainsDate)!==null&&o!==void 0?o:(d=P.locale)===null||d===void 0||(m=d.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(G>=1&&G<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var H=M((f=(g=(v=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&v!==void 0?v:P.weekStartsOn)!==null&&g!==void 0?g:(O=P.locale)===null||O===void 0||(x=O.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&f!==void 0?f:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!D.localize)throw new RangeError("locale must contain localize property");if(!D.formatLong)throw new RangeError("locale must contain formatLong property");var W=p(r);if(!ne(W))throw new RangeError("Invalid time value");var J=X(W),K=ie(W,J),Z={firstWeekContainsDate:G,weekStartsOn:H,locale:D,_originalDate:W},ee=N.match(dt).map(function(w){var b=w[0];if(b==="p"||b==="P"){var E=pe[b];return E(w,D.formatLong)}return w}).join("").match(ut).map(function(w){if(w==="''")return"'";var b=w[0];if(b==="'")return mt(w);var E=ge[b];if(E)return Te(w)&&R(w,e,String(r)),xe(w)&&R(w,e,String(r)),E(K,w,D.localize,Z);if(b.match(ht))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return w}).join("");return ee}function mt(r){var e=r.match(ct);return e?e[1].replace(ft,"'"):r}const vt=`<svg width="100%" height="28" style="opacity: 0" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1
|
+
"use strict";const l=require("./index-71b1bdfa-CboQhAlR.cjs"),U=require("./locale-9O1EQzoO.cjs");function Y(r){"@babel/helpers - typeof";return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(r)}function M(r){if(r===null||r===!0||r===!1)return NaN;var e=Number(r);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function h(r,e){if(e.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+e.length+" present")}function p(r){h(1,arguments);var e=Object.prototype.toString.call(r);return r instanceof Date||Y(r)==="object"&&e==="[object Date]"?new Date(r.getTime()):typeof r=="number"||e==="[object Number]"?new Date(r):((typeof r=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function te(r,e){h(2,arguments);var t=p(r).getTime(),a=M(e);return new Date(t+a)}var re={};function L(){return re}function X(r){var e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),r.getTime()-e.getTime()}function ae(r){return h(1,arguments),r instanceof Date||Y(r)==="object"&&Object.prototype.toString.call(r)==="[object Date]"}function ne(r){if(h(1,arguments),!ae(r)&&typeof r!="number")return!1;var e=p(r);return!isNaN(Number(e))}function ie(r,e){h(2,arguments);var t=M(e);return te(r,-t)}var oe=864e5;function se(r){h(1,arguments);var e=p(r),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),n=t-a;return Math.floor(n/oe)+1}function B(r){h(1,arguments);var e=1,t=p(r),a=t.getUTCDay(),n=(a<e?7:0)+a-e;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function Q(r){h(1,arguments);var e=p(r),t=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(t+1,0,4),a.setUTCHours(0,0,0,0);var n=B(a),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var o=B(i);return e.getTime()>=n.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function le(r){h(1,arguments);var e=Q(r),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var a=B(t);return a}var ue=6048e5;function de(r){h(1,arguments);var e=p(r),t=B(e).getTime()-le(e).getTime();return Math.round(t/ue)+1}function F(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=L(),f=M((t=(a=(n=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:m.weekStartsOn)!==null&&a!==void 0?a:(c=m.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=p(r),v=g.getUTCDay(),y=(v<f?7:0)+v-f;return g.setUTCDate(g.getUTCDate()-y),g.setUTCHours(0,0,0,0),g}function V(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=p(r),f=m.getUTCFullYear(),g=L(),v=M((t=(a=(n=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:g.firstWeekContainsDate)!==null&&a!==void 0?a:(c=g.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(f+1,0,v),y.setUTCHours(0,0,0,0);var O=F(y,e),x=new Date(0);x.setUTCFullYear(f,0,v),x.setUTCHours(0,0,0,0);var N=F(x,e);return m.getTime()>=O.getTime()?f+1:m.getTime()>=N.getTime()?f:f-1}function ce(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=L(),f=M((t=(a=(n=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:m.firstWeekContainsDate)!==null&&a!==void 0?a:(c=m.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),g=V(r,e),v=new Date(0);v.setUTCFullYear(g,0,f),v.setUTCHours(0,0,0,0);var y=F(v,e);return y}var fe=6048e5;function he(r,e){h(1,arguments);var t=p(r),a=F(t,e).getTime()-ce(t,e).getTime();return Math.round(a/fe)+1}function s(r,e){for(var t=r<0?"-":"",a=Math.abs(r).toString();a.length<e;)a="0"+a;return t+a}var me={y:function(e,t){var a=e.getUTCFullYear(),n=a>0?a:1-a;return s(t==="yy"?n%100:n,t.length)},M:function(e,t){var a=e.getUTCMonth();return t==="M"?String(a+1):s(a+1,2)},d:function(e,t){return s(e.getUTCDate(),t.length)},a:function(e,t){var a=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(e,t){return s(e.getUTCHours()%12||12,t.length)},H:function(e,t){return s(e.getUTCHours(),t.length)},m:function(e,t){return s(e.getUTCMinutes(),t.length)},s:function(e,t){return s(e.getUTCSeconds(),t.length)},S:function(e,t){var a=t.length,n=e.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,a-3));return s(i,t.length)}};const C=me;var _={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ve={G:function(e,t,a){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){var n=e.getUTCFullYear(),i=n>0?n:1-n;return a.ordinalNumber(i,{unit:"year"})}return C.y(e,t)},Y:function(e,t,a,n){var i=V(e,n),o=i>0?i:1-i;if(t==="YY"){var u=o%100;return s(u,2)}return t==="Yo"?a.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){var a=Q(e);return s(a,t.length)},u:function(e,t){var a=e.getUTCFullYear();return s(a,t.length)},Q:function(e,t,a){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return s(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,a){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return s(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,a){var n=e.getUTCMonth();switch(t){case"M":case"MM":return C.M(e,t);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,a){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return s(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,a,n){var i=he(e,n);return t==="wo"?a.ordinalNumber(i,{unit:"week"}):s(i,t.length)},I:function(e,t,a){var n=de(e);return t==="Io"?a.ordinalNumber(n,{unit:"week"}):s(n,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getUTCDate(),{unit:"date"}):C.d(e,t)},D:function(e,t,a){var n=se(e);return t==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):s(n,t.length)},E:function(e,t,a){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,a,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return a.ordinalNumber(o,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,a,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return a.ordinalNumber(o,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,a){var n=e.getUTCDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return s(i,t.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,a){var n=e.getUTCHours(),i=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,a){var n=e.getUTCHours(),i;switch(n===12?i=_.noon:n===0?i=_.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,a){var n=e.getUTCHours(),i;switch(n>=17?i=_.evening:n>=12?i=_.afternoon:n>=4?i=_.morning:i=_.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){var n=e.getUTCHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return C.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getUTCHours(),{unit:"hour"}):C.H(e,t)},K:function(e,t,a){var n=e.getUTCHours()%12;return t==="Ko"?a.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},k:function(e,t,a){var n=e.getUTCHours();return n===0&&(n=24),t==="ko"?a.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):C.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):C.s(e,t)},S:function(e,t){return C.S(e,t)},X:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return q(o);case"XXXX":case"XX":return T(o);case"XXXXX":case"XXX":default:return T(o,":")}},x:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return q(o);case"xxxx":case"xx":return T(o);case"xxxxx":case"xxx":default:return T(o,":")}},O:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+A(o,":");case"OOOO":default:return"GMT"+T(o,":")}},z:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+A(o,":");case"zzzz":default:return"GMT"+T(o,":")}},t:function(e,t,a,n){var i=n._originalDate||e,o=Math.floor(i.getTime()/1e3);return s(o,t.length)},T:function(e,t,a,n){var i=n._originalDate||e,o=i.getTime();return s(o,t.length)}};function A(r,e){var t=r>0?"-":"+",a=Math.abs(r),n=Math.floor(a/60),i=a%60;if(i===0)return t+String(n);var o=e;return t+String(n)+o+s(i,2)}function q(r,e){if(r%60===0){var t=r>0?"-":"+";return t+s(Math.abs(r)/60,2)}return T(r,e)}function T(r,e){var t=e||"",a=r>0?"-":"+",n=Math.abs(r),i=s(Math.floor(n/60),2),o=s(n%60,2);return a+i+t+o}const ge=ve;var $=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},j=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},we=function(e,t){var a=e.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return $(e,t);var o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",$(n,t)).replace("{{time}}",j(i,t))},ye={p:j,P:we};const pe=ye;var be=["D","DD"],Ce=["YY","YYYY"];function xe(r){return be.indexOf(r)!==-1}function Te(r){return Ce.indexOf(r)!==-1}function R(r,e,t){if(r==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Me={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},_e=function(e,t,a){var n,i=Me[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};const Oe=_e;function I(r){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):r.defaultWidth,a=r.formats[t]||r.formats[r.defaultWidth];return a}}var Pe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},De={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Se={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ke={date:I({formats:Pe,defaultWidth:"full"}),time:I({formats:De,defaultWidth:"full"}),dateTime:I({formats:Se,defaultWidth:"full"})};const Ue=ke;var We={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ee=function(e,t,a,n){return We[e]};const Ye=Ee;function S(r){return function(e,t){var a=t!=null&&t.context?String(t.context):"standalone",n;if(a==="formatting"&&r.formattingValues){var i=r.defaultFormattingWidth||r.defaultWidth,o=t!=null&&t.width?String(t.width):i;n=r.formattingValues[o]||r.formattingValues[i]}else{var u=r.defaultWidth,c=t!=null&&t.width?String(t.width):r.defaultWidth;n=r.values[c]||r.values[u]}var d=r.argumentCallback?r.argumentCallback(e):e;return n[d]}}var Be={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Fe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Le={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ge={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},He={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ie=function(e,t){var a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Ae={ordinalNumber:Ie,era:S({values:Be,defaultWidth:"wide"}),quarter:S({values:Fe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:S({values:Le,defaultWidth:"wide"}),day:S({values:Ne,defaultWidth:"wide"}),dayPeriod:S({values:Ge,defaultWidth:"wide",formattingValues:He,defaultFormattingWidth:"wide"})};const qe=Ae;function k(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.width,n=a&&r.matchPatterns[a]||r.matchPatterns[r.defaultMatchWidth],i=e.match(n);if(!i)return null;var o=i[0],u=a&&r.parsePatterns[a]||r.parsePatterns[r.defaultParseWidth],c=Array.isArray(u)?Re(u,function(f){return f.test(o)}):$e(u,function(f){return f.test(o)}),d;d=r.valueCallback?r.valueCallback(c):c,d=t.valueCallback?t.valueCallback(d):d;var m=e.slice(o.length);return{value:d,rest:m}}}function $e(r,e){for(var t in r)if(r.hasOwnProperty(t)&&e(r[t]))return t}function Re(r,e){for(var t=0;t<r.length;t++)if(e(r[t]))return t}function Xe(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=e.match(r.matchPattern);if(!a)return null;var n=a[0],i=e.match(r.parsePattern);if(!i)return null;var o=r.valueCallback?r.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var u=e.slice(n.length);return{value:o,rest:u}}}var Qe=/^(\d+)(th|st|nd|rd)?/i,Ve=/\d+/i,je={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ze={any:[/^b/i,/^(a|c)/i]},Je={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ke={any:[/1/i,/2/i,/3/i,/4/i]},Ze={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},et={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},rt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},at={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},nt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},it={ordinalNumber:Xe({matchPattern:Qe,parsePattern:Ve,valueCallback:function(e){return parseInt(e,10)}}),era:k({matchPatterns:je,defaultMatchWidth:"wide",parsePatterns:ze,defaultParseWidth:"any"}),quarter:k({matchPatterns:Je,defaultMatchWidth:"wide",parsePatterns:Ke,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:k({matchPatterns:Ze,defaultMatchWidth:"wide",parsePatterns:et,defaultParseWidth:"any"}),day:k({matchPatterns:tt,defaultMatchWidth:"wide",parsePatterns:rt,defaultParseWidth:"any"}),dayPeriod:k({matchPatterns:at,defaultMatchWidth:"any",parsePatterns:nt,defaultParseWidth:"any"})};const ot=it;var st={code:"en-US",formatDistance:Oe,formatLong:Ue,formatRelative:Ye,localize:qe,match:ot,options:{weekStartsOn:0,firstWeekContainsDate:1}};const lt=st;var ut=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ct=/^'([^]*?)'?$/,ft=/''/g,ht=/[a-zA-Z]/;function z(r,e,t){var a,n,i,o,u,c,d,m,f,g,v,y,O,x;h(2,arguments);var N=String(e),P=L(),D=(a=(n=void 0)!==null&&n!==void 0?n:P.locale)!==null&&a!==void 0?a:lt,G=M((i=(o=(u=(c=void 0)!==null&&c!==void 0?c:void 0)!==null&&u!==void 0?u:P.firstWeekContainsDate)!==null&&o!==void 0?o:(d=P.locale)===null||d===void 0||(m=d.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(G>=1&&G<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var H=M((f=(g=(v=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&v!==void 0?v:P.weekStartsOn)!==null&&g!==void 0?g:(O=P.locale)===null||O===void 0||(x=O.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&f!==void 0?f:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!D.localize)throw new RangeError("locale must contain localize property");if(!D.formatLong)throw new RangeError("locale must contain formatLong property");var W=p(r);if(!ne(W))throw new RangeError("Invalid time value");var J=X(W),K=ie(W,J),Z={firstWeekContainsDate:G,weekStartsOn:H,locale:D,_originalDate:W},ee=N.match(dt).map(function(w){var b=w[0];if(b==="p"||b==="P"){var E=pe[b];return E(w,D.formatLong)}return w}).join("").match(ut).map(function(w){if(w==="''")return"'";var b=w[0];if(b==="'")return mt(w);var E=ge[b];if(E)return Te(w)&&R(w,e,String(r)),xe(w)&&R(w,e,String(r)),E(K,w,D.localize,Z);if(b.match(ht))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return w}).join("");return ee}function mt(r){var e=r.match(ct);return e?e[1].replace(ft,"'"):r}const vt=`<svg width="100%" height="28" style="opacity: 0" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<rect y="12" x="2" width="100%" id="total_level" height="5" rx="2.5" fill="white" fill-opacity="0.5"/>
|
|
3
3
|
<rect y="12" x="2" id="current_level" width="64" height="5" rx="2.5" fill="white"/>
|
|
4
4
|
<g filter="url(#filter_current_level)">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var d = (t, e, o) => new Promise((i, c) => {
|
|
2
2
|
var p = (a) => {
|
|
3
3
|
try {
|
|
4
4
|
r(o.next(a));
|
|
@@ -14,9 +14,9 @@ var l = (t, e, o) => new Promise((i, c) => {
|
|
|
14
14
|
}, r = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(p, h);
|
|
15
15
|
r((o = o.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { r as f, h as n } from "./index-71b1bdfa-
|
|
18
|
-
import { t as
|
|
19
|
-
const u = ":host{display:block;width:100%;box-sizing:border-box;background:var(--emw--color-black-15, #0b1511)}.OptCard{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-width:100%;min-width:0;box-sizing:border-box;padding:22px 20px 14px;gap:0}.OptInButton{width:100%;height:54px;border:2px solid var(--emw--button-contrast-background, #087b36);border-radius:
|
|
17
|
+
import { r as f, h as n } from "./index-71b1bdfa-DC7qXgDk.js";
|
|
18
|
+
import { t as l, T as g } from "./locale-PYPOkfDc.js";
|
|
19
|
+
const u = ":host{display:block;width:100%;box-sizing:border-box;background:var(--emw--color-black-15, #0b1511)}.OptCard{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-width:100%;min-width:0;box-sizing:border-box;padding:22px 20px 14px;gap:0}.OptInButton{width:100%;height:54px;border:2px solid var(--emw--button-contrast-background, #087b36);border-radius:var(--emw--button-border-radius, 10px);cursor:pointer;background:var(--emw--button-contrast-background);color:var(--emw--button-typography-contrast, #ffffff);font-size:16px;font-weight:700;transition:opacity 0.2s ease}.OptInButton:hover{opacity:0.9}.OptInButton:active{transform:scale(0.99)}.OptOutButton{background:transparent;color:var(--c-base-07, #999);border:1px solid var(--c-base-07, #999);border-radius:var(--emw--button-border-radius, 10px)}.OptInButton:disabled{opacity:0.5;cursor:not-allowed}.Description{margin:16px 0 14px;font-size:13px;line-height:15px;font-weight:400;width:100%;max-width:428px;box-sizing:border-box;color:var(--emw--color-typography, #ffffff);white-space:pre-line;overflow-wrap:break-word}.TermsLink{display:flex;justify-content:center;align-items:center;gap:5px;margin-top:0;font-size:13px;font-weight:700;color:var(--emw--color-secondary, #16c653);cursor:pointer;text-decoration:none}.TermsLink:hover{text-decoration:underline}", b = u, y = class {
|
|
20
20
|
constructor(t) {
|
|
21
21
|
f(this, t), this.endpoint = void 0, this.session = void 0, this.language = "en", this.clientStyling = "", this.clientStylingUrl = "", this.mbSource = void 0, this.translationUrl = "", this.optIn = void 0, this.complianceUrl = "", this.description = "";
|
|
22
22
|
}
|
|
@@ -35,7 +35,7 @@ const u = ":host{display:block;width:100%;box-sizing:border-box;background:var(-
|
|
|
35
35
|
window.postMessage({ type: this.optIn ? "BEE_OPT_OUT_CLICKED" : "BEE_OPT_IN_CLICKED" }, window.location.origin);
|
|
36
36
|
}
|
|
37
37
|
loadTerms() {
|
|
38
|
-
return
|
|
38
|
+
return d(this, null, function* () {
|
|
39
39
|
var t, e;
|
|
40
40
|
if (this.endpoint)
|
|
41
41
|
try {
|
|
@@ -54,7 +54,7 @@ const u = ":host{display:block;width:100%;box-sizing:border-box;background:var(-
|
|
|
54
54
|
}, this.loadTerms();
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return n("div", { key: "2a61bab32150215270af23f4a95b7ccf823cc6c9", class: "OptCard" }, n("general-styling-wrapper", { key: "5a82e13f9d58066adf518ff94f44ce64306bdfa1", clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: g, translationUrl: this.translationUrl, mbSource: this.mbSource }), n("player-elevate-card-data", { key: "db9465ee05877105128bf4640b60fdf0a001ef0b", params: this.paramProxy }), this.optIn !== void 0 && n("button", { key: "7683432936cca8181089024146e5d274c5a3ac92", class: { OptInButton: !0, OptOutButton: this.optIn }, onClick: () => this.onButtonClick() },
|
|
57
|
+
return n("div", { key: "2a61bab32150215270af23f4a95b7ccf823cc6c9", class: "OptCard" }, n("general-styling-wrapper", { key: "5a82e13f9d58066adf518ff94f44ce64306bdfa1", clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: g, translationUrl: this.translationUrl, mbSource: this.mbSource }), n("player-elevate-card-data", { key: "db9465ee05877105128bf4640b60fdf0a001ef0b", params: this.paramProxy }), this.optIn !== void 0 && n("button", { key: "7683432936cca8181089024146e5d274c5a3ac92", class: { OptInButton: !0, OptOutButton: this.optIn }, onClick: () => this.onButtonClick() }, l(this.optIn ? "optOut" : "optIn", this.language)), this.description && n("div", { key: "1aa7343e9f43dd1a770820671cc994cf4a5a6cb3", class: "Description" }, this.description), this.complianceUrl && n("a", { key: "fa510c583facb9513ae135ce704c1720904196fd", href: this.complianceUrl, target: "_blank", rel: "noopener noreferrer", class: "TermsLink" }, l("termsAndConditions", this.language), n("svg", { key: "6414feecba959dc7fbfc57b55f8c953258b0a998", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, n("path", { key: "ec2716dfa2f465945193ba80d455df8c2ba7f6ca", d: "M14 3h7v7" }), n("path", { key: "e9a1b86d1e9f22109303e3dc9915158f5786f411", d: "M10 14L21 3" }), n("path", { key: "5f34ff03f7a790ca4fc72811efa076b2c520c6fe", d: "M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5" }))));
|
|
58
58
|
}
|
|
59
59
|
static get watchers() {
|
|
60
60
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var d=(t,e,o)=>new Promise((a,l)=>{var h=i=>{try{r(o.next(i))}catch(s){l(s)}},f=i=>{try{r(o.throw(i))}catch(s){l(s)}},r=i=>i.done?a(i.value):Promise.resolve(i.value).then(h,f);r((o=o.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-71b1bdfa-CboQhAlR.cjs"),c=require("./locale-9O1EQzoO.cjs"),u=":host{display:block;width:100%;box-sizing:border-box;background:var(--emw--color-black-15, #0b1511)}.OptCard{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-width:100%;min-width:0;box-sizing:border-box;padding:22px 20px 14px;gap:0}.OptInButton{width:100%;height:54px;border:2px solid var(--emw--button-contrast-background, #087b36);border-radius:var(--emw--button-border-radius, 10px);cursor:pointer;background:var(--emw--button-contrast-background);color:var(--emw--button-typography-contrast, #ffffff);font-size:16px;font-weight:700;transition:opacity 0.2s ease}.OptInButton:hover{opacity:0.9}.OptInButton:active{transform:scale(0.99)}.OptOutButton{background:transparent;color:var(--c-base-07, #999);border:1px solid var(--c-base-07, #999);border-radius:var(--emw--button-border-radius, 10px)}.OptInButton:disabled{opacity:0.5;cursor:not-allowed}.Description{margin:16px 0 14px;font-size:13px;line-height:15px;font-weight:400;width:100%;max-width:428px;box-sizing:border-box;color:var(--emw--color-typography, #ffffff);white-space:pre-line;overflow-wrap:break-word}.TermsLink{display:flex;justify-content:center;align-items:center;gap:5px;margin-top:0;font-size:13px;font-weight:700;color:var(--emw--color-secondary, #16c653);cursor:pointer;text-decoration:none}.TermsLink:hover{text-decoration:underline}",g=u,p=class{constructor(t){n.registerInstance(this,t),this.endpoint=void 0,this.session=void 0,this.language="en",this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.optIn=void 0,this.complianceUrl="",this.description=""}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language}),this.loadTerms()}handleMessage(t){var e;t.origin===window.location.origin&&((e=t.data)===null||e===void 0?void 0:e.type)==="userUpdateOptLoyaltySuccess"&&(this.optIn=!0)}playerElevateLeveLoadedHandler(t){var e;typeof((e=t.detail)===null||e===void 0?void 0:e.optIn)=="boolean"&&(this.optIn=t.detail.optIn)}onButtonClick(){window.postMessage({type:this.optIn?"BEE_OPT_OUT_CLICKED":"BEE_OPT_IN_CLICKED"},window.location.origin)}loadTerms(){return d(this,null,function*(){var t,e;if(this.endpoint)try{const a=yield(yield fetch(`${this.endpoint}/v1/elevate/optIn/terms?language=${this.language}`)).json();a.success&&(this.complianceUrl=((t=a.data)===null||t===void 0?void 0:t.complianceUrl)||"",this.description=((e=a.data)===null||e===void 0?void 0:e.complianceDesc)||"")}catch(o){console.error("Failed to load opt-in terms",o)}})}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language},this.loadTerms()}render(){return n.h("div",{key:"2a61bab32150215270af23f4a95b7ccf823cc6c9",class:"OptCard"},n.h("general-styling-wrapper",{key:"5a82e13f9d58066adf518ff94f44ce64306bdfa1",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:c.TRANSLATIONS,translationUrl:this.translationUrl,mbSource:this.mbSource}),n.h("player-elevate-card-data",{key:"db9465ee05877105128bf4640b60fdf0a001ef0b",params:this.paramProxy}),this.optIn!==void 0&&n.h("button",{key:"7683432936cca8181089024146e5d274c5a3ac92",class:{OptInButton:!0,OptOutButton:this.optIn},onClick:()=>this.onButtonClick()},c.translate(this.optIn?"optOut":"optIn",this.language)),this.description&&n.h("div",{key:"1aa7343e9f43dd1a770820671cc994cf4a5a6cb3",class:"Description"},this.description),this.complianceUrl&&n.h("a",{key:"fa510c583facb9513ae135ce704c1720904196fd",href:this.complianceUrl,target:"_blank",rel:"noopener noreferrer",class:"TermsLink"},c.translate("termsAndConditions",this.language),n.h("svg",{key:"6414feecba959dc7fbfc57b55f8c953258b0a998",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},n.h("path",{key:"ec2716dfa2f465945193ba80d455df8c2ba7f6ca",d:"M14 3h7v7"}),n.h("path",{key:"e9a1b86d1e9f22109303e3dc9915158f5786f411",d:"M10 14L21 3"}),n.h("path",{key:"5f34ff03f7a790ca4fc72811efa076b2c520c6fe",d:"M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5"}))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};p.style=g;exports.player_elevate_optcard=p;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r, h as n } from "./index-71b1bdfa-
|
|
1
|
+
import { r, h as n } from "./index-71b1bdfa-Dm_5jCHa.js";
|
|
2
2
|
import { t as i, T as s } from "./locale-DygvMQrS.js";
|
|
3
|
-
const c = ":host{display:block;width:100%;box-sizing:border-box;background:var(--emw--color-black-15, #0b1511)}.OptCard{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-width:100%;min-width:0;box-sizing:border-box;padding:22px 20px 14px;gap:0}.OptInButton{width:100%;height:54px;border:2px solid var(--emw--button-contrast-background, #087b36);border-radius:
|
|
3
|
+
const c = ":host{display:block;width:100%;box-sizing:border-box;background:var(--emw--color-black-15, #0b1511)}.OptCard{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-width:100%;min-width:0;box-sizing:border-box;padding:22px 20px 14px;gap:0}.OptInButton{width:100%;height:54px;border:2px solid var(--emw--button-contrast-background, #087b36);border-radius:var(--emw--button-border-radius, 10px);cursor:pointer;background:var(--emw--button-contrast-background);color:var(--emw--button-typography-contrast, #ffffff);font-size:16px;font-weight:700;transition:opacity 0.2s ease}.OptInButton:hover{opacity:0.9}.OptInButton:active{transform:scale(0.99)}.OptOutButton{background:transparent;color:var(--c-base-07, #999);border:1px solid var(--c-base-07, #999);border-radius:var(--emw--button-border-radius, 10px)}.OptInButton:disabled{opacity:0.5;cursor:not-allowed}.Description{margin:16px 0 14px;font-size:13px;line-height:15px;font-weight:400;width:100%;max-width:428px;box-sizing:border-box;color:var(--emw--color-typography, #ffffff);white-space:pre-line;overflow-wrap:break-word}.TermsLink{display:flex;justify-content:center;align-items:center;gap:5px;margin-top:0;font-size:13px;font-weight:700;color:var(--emw--color-secondary, #16c653);cursor:pointer;text-decoration:none}.TermsLink:hover{text-decoration:underline}", d = c, l = class {
|
|
4
4
|
constructor(t) {
|
|
5
5
|
r(this, t), this.endpoint = void 0, this.session = void 0, this.language = "en", this.clientStyling = "", this.clientStylingUrl = "", this.mbSource = void 0, this.translationUrl = "", this.optIn = void 0, this.complianceUrl = "", this.description = "";
|
|
6
6
|
}
|
|
@@ -46,7 +46,7 @@ const c = ":host{display:block;width:100%;box-sizing:border-box;background:var(-
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
|
|
49
|
+
l.style = d;
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
l as player_elevate_optcard
|
|
52
52
|
};
|
package/stencil/{player-elevate-pointcard-BS2urXJv.cjs → player-elevate-pointcard-BKonevSI.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-71b1bdfa-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-71b1bdfa-CboQhAlR.cjs"),t=require("./locale-9O1EQzoO.cjs"),n=require("./player-elevate-card-items-00ff462d-soRu-WUH.cjs"),r=":host{display:block}.PointsCard .Inner .Row .ExpirationPoints{text-align:left}.PointsCard .Inner .PlayerAvatar .Avatar{display:none}.PointsCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%;position:inherit}.PointsCard .Inner .PointsTxt{display:flex;flex-direction:row;justify-content:space-between}.PointsCard .Inner .DetailButton{background:linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%), linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));border-radius:5px;box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:2px solid;font-size:11px;width:108px;padding:4px;cursor:pointer;margin-top:5px;height:16px;min-width:45px;text-align:center}.PointsCard .Inner .DetailButton span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .LevelInfo{gap:15px;width:70%}.PointsCard .Inner .LevelInfo .PointsTxt{font-size:15px}.PointsCard .Inner .LevelInfo .PointsTxt.Label{display:none}.PointsCard .Inner .LevelInfo .PointsTxt.SPPoints{padding-top:15px}.PointsCard .Inner .LevelInfo .PointsTxt .TC{font-size:x-small;color:var(--emw--color-gray-300, #58586B);display:flex;align-content:center;height:100%;flex-wrap:wrap;text-decoration:underline;cursor:pointer;display:none}",s=r,i=class{constructor(a){e.registerInstance(this,a),this.isPointDetailCard=this.buttonType==="earningRule",this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.mbSource=void 0,this.playerName=void 0,this.cardTitle=void 0,this.buttonType="earningRule",this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.pointExpireString=void 0,this.playerElevateLevel=void 0,this.elevateWalletTotal=void 0,this.elevateSPTotal=void 0}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(a){a.detail&&(a.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=a.detail.elevateLevelWalletTotal,this.elevateSPTotal=a.detail.loyaltyWalletTotal),a.detail.elevateLevel&&(this.playerElevateLevel=a.detail.elevateLevel),a.detail.pointExpireString&&(this.pointExpireString=a.detail.pointExpireString))}onDetailsClick(){window.postMessage({type:this.isPointDetailCard?"BEEPointRulesClicked":"BEEDetailsClicked",path:this.isPointDetailCard?"player-elevate-level":"player-elevate-point-details"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}render(){const a=e.getAssetPath("../static/card-ground.svg"),l=e.getAssetPath("../static/card-ground-over.svg");return e.h("div",{key:"4d7edcc0727485b4b8020202ea18146ce796e2a8",class:`ElevateCardWrapper ${this.theme}`},e.h("div",{key:"d67cda87e8b1ea9e7abad8aa2cdb96e83580b462",class:"PointsCard Outer ",style:{backgroundImage:`url(${a}`}},e.h("general-styling-wrapper",{key:"a83fb1754e72ca884886933f886a6a78fad7f2bf",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:t.TRANSLATIONS,translationUrl:this.translationUrl,mbSource:this.mbSource}),e.h("player-elevate-card-data",{key:"919b5a1d45ed72ca28e8cb7d3eb9af4f841a6c4c",params:this.paramProxy}),e.h("div",{key:"a4299d7935ca51b294b152a1ec15a7538db19328",class:"OuterCover Inner",style:{backgroundImage:`url(${l}`}},e.h("div",{key:"53d98242cd7df1726e185315d5195a5b8f37e14e",class:"Content Row"},this.playerElevateLevel&&e.h(e.Fragment,{key:"7c7be727b84f8305bf39426cd60b60a29b7b4f51"},e.h("div",{key:"0d969c57190edca18d81928c72603c35baff08fe",class:"PlayerImg"},e.h(n.PlayerAvatar,{key:"cc75cf63c30a9370d65d53505c5aed37b5d810c3",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),e.h("div",{key:"bf0f0f6085ef18b7733ca19bffb358ebced0f5aa",class:`LevelInfo ${this.playerElevateLevel.name}`},e.h("div",{key:"56801b6fb1ad3315d8d57474731c105a179ad9d0",class:"PointsTxt Label"},this.cardTitle?this.cardTitle:t.translate("spendablePoints",this.language)),e.h("div",{key:"f9fa902c2d8868b252737fd6c8f398730f82b3ca",class:"PointsTxt SPPoints"},e.h(n.PlayerPoints,{key:"9b4ae8d8c6577a24eae39488e4826bbb98b77e49",spendablePoints:this.playerElevateLevel.spendablePoints<=0?0:this.playerElevateLevel.spendablePoints,language:this.language}),e.h("a",{key:"6a2ab331532d559c359fc8a3712d4c4ac5d9e063",class:"TC",onClick:()=>{this.onDetailsClick()}},t.translate("termAndConditions",this.language))),this.pointExpireString&&e.h("div",{key:"d84bf3ab3253c497304e1b7b6cfd65ca0e898d7a",class:"ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};i.style=s;exports.player_elevate_pointcard=i;
|
package/stencil/{player-elevate-pointcard-8tLbC5i_.js → player-elevate-pointcard-Bnmj1qZw.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r, a as t, h as e, F as s } from "./index-71b1bdfa-
|
|
1
|
+
import { r, a as t, h as e, F as s } from "./index-71b1bdfa-DC7qXgDk.js";
|
|
2
2
|
import { T as l, t as n } from "./locale-PYPOkfDc.js";
|
|
3
|
-
import { P as o, a as d } from "./player-elevate-card-items-00ff462d-
|
|
3
|
+
import { P as o, a as d } from "./player-elevate-card-items-00ff462d-DV0OTglS.js";
|
|
4
4
|
const c = ":host{display:block}.PointsCard .Inner .Row .ExpirationPoints{text-align:left}.PointsCard .Inner .PlayerAvatar .Avatar{display:none}.PointsCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%;position:inherit}.PointsCard .Inner .PointsTxt{display:flex;flex-direction:row;justify-content:space-between}.PointsCard .Inner .DetailButton{background:linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%), linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));border-radius:5px;box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:2px solid;font-size:11px;width:108px;padding:4px;cursor:pointer;margin-top:5px;height:16px;min-width:45px;text-align:center}.PointsCard .Inner .DetailButton span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .LevelInfo{gap:15px;width:70%}.PointsCard .Inner .LevelInfo .PointsTxt{font-size:15px}.PointsCard .Inner .LevelInfo .PointsTxt.Label{display:none}.PointsCard .Inner .LevelInfo .PointsTxt.SPPoints{padding-top:15px}.PointsCard .Inner .LevelInfo .PointsTxt .TC{font-size:x-small;color:var(--emw--color-gray-300, #58586B);display:flex;align-content:center;height:100%;flex-wrap:wrap;text-decoration:underline;cursor:pointer;display:none}", p = c, g = class {
|
|
5
5
|
constructor(a) {
|
|
6
6
|
r(this, a), this.isPointDetailCard = this.buttonType === "earningRule", this.endpoint = void 0, this.theme = "Dark", this.session = void 0, this.playerAvatarUrl = void 0, this.language = "en", this.mbSource = void 0, this.playerName = void 0, this.cardTitle = void 0, this.buttonType = "earningRule", this.dateFormat = "yyyy-MM-dd", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.pointExpireString = void 0, this.playerElevateLevel = void 0, this.elevateWalletTotal = void 0, this.elevateSPTotal = void 0;
|
package/stencil/{player-elevate-pointcard-DfasvCvq.js → player-elevate-pointcard-Dkc7UkBV.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r, a as t, h as e, F as s } from "./index-71b1bdfa-
|
|
1
|
+
import { r, a as t, h as e, F as s } from "./index-71b1bdfa-Dm_5jCHa.js";
|
|
2
2
|
import { T as l, t as n } from "./locale-DygvMQrS.js";
|
|
3
|
-
import { P as o, a as d } from "./player-elevate-card-items-00ff462d-
|
|
3
|
+
import { P as o, a as d } from "./player-elevate-card-items-00ff462d-BgCFriKE.js";
|
|
4
4
|
const c = ":host{display:block}.PointsCard .Inner .Row .ExpirationPoints{text-align:left}.PointsCard .Inner .PlayerAvatar .Avatar{display:none}.PointsCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%;position:inherit}.PointsCard .Inner .PointsTxt{display:flex;flex-direction:row;justify-content:space-between}.PointsCard .Inner .DetailButton{background:linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%), linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));border-radius:5px;box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:2px solid;font-size:11px;width:108px;padding:4px;cursor:pointer;margin-top:5px;height:16px;min-width:45px;text-align:center}.PointsCard .Inner .DetailButton span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .LevelInfo{gap:15px;width:70%}.PointsCard .Inner .LevelInfo .PointsTxt{font-size:15px}.PointsCard .Inner .LevelInfo .PointsTxt.Label{display:none}.PointsCard .Inner .LevelInfo .PointsTxt.SPPoints{padding-top:15px}.PointsCard .Inner .LevelInfo .PointsTxt .TC{font-size:x-small;color:var(--emw--color-gray-300, #58586B);display:flex;align-content:center;height:100%;flex-wrap:wrap;text-decoration:underline;cursor:pointer;display:none}", p = c, g = class {
|
|
5
5
|
constructor(a) {
|
|
6
6
|
r(this, a), this.isPointDetailCard = this.buttonType === "earningRule", this.endpoint = void 0, this.theme = "Dark", this.session = void 0, this.playerAvatarUrl = void 0, this.language = "en", this.mbSource = void 0, this.playerName = void 0, this.cardTitle = void 0, this.buttonType = "earningRule", this.dateFormat = "yyyy-MM-dd", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.pointExpireString = void 0, this.playerElevateLevel = void 0, this.elevateWalletTotal = void 0, this.elevateSPTotal = void 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var l=(a,t,e)=>new Promise((o,i)=>{var c=r=>{try{s(e.next(r))}catch(b){i(b)}},d=r=>{try{s(e.throw(r))}catch(b){i(b)}},s=r=>r.done?o(r.value):Promise.resolve(r.value).then(c,d);s((e=e.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-71b1bdfa-
|
|
1
|
+
"use strict";var l=(a,t,e)=>new Promise((o,i)=>{var c=r=>{try{s(e.next(r))}catch(b){i(b)}},d=r=>{try{s(e.throw(r))}catch(b){i(b)}},s=r=>r.done?o(r.value):Promise.resolve(r.value).then(c,d);s((e=e.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-71b1bdfa-CboQhAlR.cjs"),k=require("./locale-9O1EQzoO.cjs"),f=":host{display:block}@keyframes rotate{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}.RakebackCard{border:2px solid var(--em-color-border-primary, #003E5C);padding:32px;border-radius:var(--emw--border-radius-medium, 12px);overflow:hidden;font-family:inherit}.RakebackCard .RakebackCardContent .RakebackTitle{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--em-color-text-secondary, #727672)}.RakebackCard .RakebackCardContent .RakebackDetails{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-top:17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo{display:flex;flex-wrap:wrap;align-items:center;gap:0 17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh{width:52px;height:52px;cursor:pointer}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh.RakebackLoading{animation:rotate 0.5s linear infinite}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer{color:var(--em-color-text-primary, #fff);display:flex;align-items:center;gap:8px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackNum{display:inline-block;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-2x-large, 36px)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackCurrency{display:inline-block;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);margin-top:14px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton{font-family:inherit;cursor:pointer;width:90px;height:34px;border-radius:var(--emw--border-radius-large, 99px);border:2px solid var(--em-color-border-success, #083B17);display:flex;justify-content:center;align-items:center;color:var(--em-color-text-primary, #fff);background:linear-gradient(180deg, var(--em-color-gradient-1, #24B24E) 0%, var(--em-color-gradient-1, #24B24E) 100%)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton.disabled{cursor:not-allowed;opacity:0.4}.RakebackCard .RakebackCardContent .RakebackCoolOff,.RakebackCard .RakebackCardContent .RakebackError{margin-top:8px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);color:var(--em-color-text-error, #FF7A73);text-align:center}",m=f,h=class{constructor(a){n.registerInstance(this,a),this.truncateNumber=(t,e=2)=>{const o=t.toString(),[i,c=""]=o.split(".");return e>0?`${i}.${c?c.slice(0,e):"00"}`:`${i}`},this.sendRakebackClaimedEvent=()=>{!this.endpoint||!this.session||!this.rakebackInfo.claimable||this.isLoading||window.postMessage({type:"RakebackClaimTrigger",points:this.rakebackInfo.points},window.location.href)},this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.language="en",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.show=!0,this.rakebackInfo={hasRakebackWallet:!1,points:0,currency:"TRY",claimable:!1,minutesCanClaim:0,showCanClaim:!1},this.isLoading=!1,this.coolingOffPeriod=!1,this.showTheWidget=!1}onSessionOrEndpointChange(){return l(this,null,function*(){yield this.loadRakebackInfo()})}onShowOrHasRakebackWalletChange(){return l(this,null,function*(){this.showTheWidget=this.show&&this.rakebackInfo.hasRakebackWallet})}handleMessage(a){const{type:t}=a==null?void 0:a.data;t==="RakebackClaimConfirmed"&&this.claimRakeback()}loadRakebackInfo(){return l(this,null,function*(){if(!(!this.endpoint||!this.session)){this.isLoading=!0;try{const a=new URL(`${this.endpoint}/v1/elevate/playerInfo?language=${this.language}`),t=yield fetch(a.href,{method:"GET",headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);const e=yield t.json();if(!e.success)throw new Error(e.errorMessage||"Failed to load rakeback info");const{rakebackWallet:o}=e==null?void 0:e.data;if(!o){window.postMessage({type:"RakebackWalletMissing"},window.location.href);return}const{total:i,claimable:c,currency:d,minutesCanClaim:s}=o||{};this.rakebackInfo={hasRakebackWallet:!0,points:(i==null?void 0:i.points)<=0?"0.00":this.truncateNumber(i.points,2),currency:d||"",claimable:c||!1,showCanClaim:!!(s&&s>0),minutesCanClaim:s?s<=1&&s>0?1:this.truncateNumber(s,0):0}}catch(a){console.error("Error loading rakeback info:",a),window.postMessage({type:"RakebackClaimError",message:a.message},window.location.href)}finally{this.isLoading=!1}}})}claimRakeback(){return l(this,null,function*(){this.isLoading=!0;try{const a=new URL(`${this.endpoint}/v1/elevate/rakeback/claim`),t=yield fetch(a.href,{method:"PUT",headers:{"X-Sessionid":this.session,"Content-Type":"application/json"},body:JSON.stringify({})});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);const e=yield t.json();if(!e.success)throw new Error(e.errorMessage||"Failed to claim rakeback");yield this.loadRakebackInfo(),window.postMessage({type:"RakebackClaimed",points:this.rakebackInfo.points},window.location.href)}catch(a){console.error("Error claiming rakeback:",a),window.postMessage({type:"RakebackClaimError",message:a.message},window.location.href)}finally{this.isLoading=!1}})}componentWillLoad(){return l(this,null,function*(){yield this.loadRakebackInfo(),yield this.onShowOrHasRakebackWalletChange()})}render(){return this.showTheWidget?n.h("div",{class:"RakebackCard"},n.h("general-styling-wrapper",{clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:k.TRANSLATIONS,translationUrl:this.translationUrl,mbSource:this.mbSource}),n.h("div",{class:"RakebackCardContent"},n.h("div",{class:"RakebackTitle"},k.translate("rakebackTitle",this.language)),n.h("div",{class:"RakebackDetails"},n.h("div",{class:"RakebackInfo"},n.h("div",{class:"RakebackNumContainer"},n.h("span",{class:"RakebackNum"},this.rakebackInfo.points),n.h("span",{class:"RakebackCurrency"},this.rakebackInfo.currency))),n.h("div",{class:`RakebackButton ${this.isLoading||!this.rakebackInfo.claimable?"disabled":""}`,onClick:this.sendRakebackClaimedEvent},k.translate("claim",this.language))),!this.rakebackInfo.claimable&&this.rakebackInfo.showCanClaim&&n.h("div",{class:"RakebackCoolOff"},k.translateWithParams("minutesCanClaim",{lang:this.language,minutes:this.rakebackInfo.minutesCanClaim})))):null}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"],show:["onShowOrHasRakebackWalletChange"],rakebackInfo:["onShowOrHasRakebackWalletChange"]}}};h.style=m;exports.player_rakeback_card=h;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as k, h as n } from "./index-71b1bdfa-
|
|
1
|
+
import { r as k, h as n } from "./index-71b1bdfa-Dm_5jCHa.js";
|
|
2
2
|
import { t as c, a as d, T as b } from "./locale-DygvMQrS.js";
|
|
3
3
|
const h = ":host{display:block}@keyframes rotate{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}.RakebackCard{border:2px solid var(--em-color-border-primary, #003E5C);padding:32px;border-radius:var(--emw--border-radius-medium, 12px);overflow:hidden;font-family:inherit}.RakebackCard .RakebackCardContent .RakebackTitle{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--em-color-text-secondary, #727672)}.RakebackCard .RakebackCardContent .RakebackDetails{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-top:17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo{display:flex;flex-wrap:wrap;align-items:center;gap:0 17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh{width:52px;height:52px;cursor:pointer}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh.RakebackLoading{animation:rotate 0.5s linear infinite}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer{color:var(--em-color-text-primary, #fff);display:flex;align-items:center;gap:8px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackNum{display:inline-block;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-2x-large, 36px)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackCurrency{display:inline-block;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);margin-top:14px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton{font-family:inherit;cursor:pointer;width:90px;height:34px;border-radius:var(--emw--border-radius-large, 99px);border:2px solid var(--em-color-border-success, #083B17);display:flex;justify-content:center;align-items:center;color:var(--em-color-text-primary, #fff);background:linear-gradient(180deg, var(--em-color-gradient-1, #24B24E) 0%, var(--em-color-gradient-1, #24B24E) 100%)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton.disabled{cursor:not-allowed;opacity:0.4}.RakebackCard .RakebackCardContent .RakebackCoolOff,.RakebackCard .RakebackCardContent .RakebackError{margin-top:8px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);color:var(--em-color-text-error, #FF7A73);text-align:center}", f = h, m = class {
|
|
4
4
|
constructor(a) {
|
|
@@ -14,7 +14,7 @@ var l = (a, t, e) => new Promise((o, i) => {
|
|
|
14
14
|
}, s = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(c, k);
|
|
15
15
|
s((e = e.apply(a, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { r as h, h as n } from "./index-71b1bdfa-
|
|
17
|
+
import { r as h, h as n } from "./index-71b1bdfa-DC7qXgDk.js";
|
|
18
18
|
import { t as b, a as f, T as m } from "./locale-PYPOkfDc.js";
|
|
19
19
|
const g = ":host{display:block}@keyframes rotate{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}.RakebackCard{border:2px solid var(--em-color-border-primary, #003E5C);padding:32px;border-radius:var(--emw--border-radius-medium, 12px);overflow:hidden;font-family:inherit}.RakebackCard .RakebackCardContent .RakebackTitle{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--em-color-text-secondary, #727672)}.RakebackCard .RakebackCardContent .RakebackDetails{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-top:17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo{display:flex;flex-wrap:wrap;align-items:center;gap:0 17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh{width:52px;height:52px;cursor:pointer}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh.RakebackLoading{animation:rotate 0.5s linear infinite}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer{color:var(--em-color-text-primary, #fff);display:flex;align-items:center;gap:8px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackNum{display:inline-block;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-2x-large, 36px)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackCurrency{display:inline-block;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);margin-top:14px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton{font-family:inherit;cursor:pointer;width:90px;height:34px;border-radius:var(--emw--border-radius-large, 99px);border:2px solid var(--em-color-border-success, #083B17);display:flex;justify-content:center;align-items:center;color:var(--em-color-text-primary, #fff);background:linear-gradient(180deg, var(--em-color-gradient-1, #24B24E) 0%, var(--em-color-gradient-1, #24B24E) 100%)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton.disabled{cursor:not-allowed;opacity:0.4}.RakebackCard .RakebackCardContent .RakebackCoolOff,.RakebackCard .RakebackCardContent .RakebackError{margin-top:8px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);color:var(--em-color-text-error, #FF7A73);text-align:center}", R = g, p = class {
|
|
20
20
|
constructor(a) {
|
|
@@ -14,7 +14,7 @@ var ce = (e, t, i) => new Promise((n, h) => {
|
|
|
14
14
|
}, P = (b) => b.done ? n(b.value) : Promise.resolve(b.value).then(S, U);
|
|
15
15
|
P((i = i.apply(e, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { r as Ze, h as p, F as We, g as ot, H as dt } from "./index-2ff63899-
|
|
17
|
+
import { r as Ze, h as p, F as We, g as ot, H as dt } from "./index-2ff63899-DKFAXj5b.js";
|
|
18
18
|
const xe = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
19
19
|
function Ue(e, t) {
|
|
20
20
|
if (e) {
|
|
@@ -23,8 +23,7 @@ function Ue(e, t) {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
function He(e, t) {
|
|
26
|
-
if (!e || !t)
|
|
27
|
-
return;
|
|
26
|
+
if (!e || !t) return;
|
|
28
27
|
const i = new URL(t);
|
|
29
28
|
fetch(i.href).then((n) => n.text()).then((n) => {
|
|
30
29
|
const h = document.createElement("style");
|
|
@@ -34,8 +33,7 @@ function He(e, t) {
|
|
|
34
33
|
});
|
|
35
34
|
}
|
|
36
35
|
function Qe(e, t, i, n = !1) {
|
|
37
|
-
if (!window.emMessageBus)
|
|
38
|
-
return;
|
|
36
|
+
if (!window.emMessageBus) return;
|
|
39
37
|
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
40
38
|
return i = lt(e, t), i;
|
|
41
39
|
window[xe] || (window[xe] = {}), i = ut(e, t);
|
|
@@ -56,8 +54,7 @@ function lt(e, t) {
|
|
|
56
54
|
}
|
|
57
55
|
function ut(e, t) {
|
|
58
56
|
return window.emMessageBus.subscribe(t, (i) => {
|
|
59
|
-
if (!e)
|
|
60
|
-
return;
|
|
57
|
+
if (!e) return;
|
|
61
58
|
const n = e.getRootNode(), h = window[xe];
|
|
62
59
|
let S = h[t] && h[t].sheet;
|
|
63
60
|
S ? h[t].refCount = h[t].refCount + 1 : (S = new CSSStyleSheet(), S.replaceSync(i), h[t] = {
|
|
@@ -765,8 +762,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
765
762
|
var l = -g.utcOffset(), a = Math.abs(l), u = Math.floor(a / 60), o = a % 60;
|
|
766
763
|
return (l <= 0 ? "+" : "-") + R(u, 2, "0") + ":" + R(o, 2, "0");
|
|
767
764
|
}, m: function g(l, a) {
|
|
768
|
-
if (l.date() < a.date())
|
|
769
|
-
return -g(a, l);
|
|
765
|
+
if (l.date() < a.date()) return -g(a, l);
|
|
770
766
|
var u = 12 * (a.year() - l.year()) + (a.month() - l.month()), o = l.clone().add(u, W), m = a - o < 0, y = l.clone().add(u + (m ? -1 : 1), W);
|
|
771
767
|
return +(-(u + (a - o) / (m ? o - y : y - o)) || 0);
|
|
772
768
|
}, a: function(g) {
|
|
@@ -781,22 +777,19 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
781
777
|
return g instanceof se || !(!g || !g[pe]);
|
|
782
778
|
}, ae = function g(l, a, u) {
|
|
783
779
|
var o;
|
|
784
|
-
if (!l)
|
|
785
|
-
return ne;
|
|
780
|
+
if (!l) return ne;
|
|
786
781
|
if (typeof l == "string") {
|
|
787
782
|
var m = l.toLowerCase();
|
|
788
783
|
Q[m] && (o = m), a && (Q[m] = a, o = m);
|
|
789
784
|
var y = l.split("-");
|
|
790
|
-
if (!o && y.length > 1)
|
|
791
|
-
return g(y[0]);
|
|
785
|
+
if (!o && y.length > 1) return g(y[0]);
|
|
792
786
|
} else {
|
|
793
787
|
var T = l.name;
|
|
794
788
|
Q[T] = l, o = T;
|
|
795
789
|
}
|
|
796
790
|
return !u && o && (ne = o), o || !u && ne;
|
|
797
791
|
}, L = function(g, l) {
|
|
798
|
-
if (be(g))
|
|
799
|
-
return g.clone();
|
|
792
|
+
if (be(g)) return g.clone();
|
|
800
793
|
var a = typeof l == "object" ? l : {};
|
|
801
794
|
return a.date = g, a.args = arguments, new se(a);
|
|
802
795
|
}, M = ie;
|
|
@@ -811,12 +804,9 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
811
804
|
return l.parse = function(a) {
|
|
812
805
|
this.$d = function(u) {
|
|
813
806
|
var o = u.date, m = u.utc;
|
|
814
|
-
if (o === null)
|
|
815
|
-
|
|
816
|
-
if (
|
|
817
|
-
return /* @__PURE__ */ new Date();
|
|
818
|
-
if (o instanceof Date)
|
|
819
|
-
return new Date(o);
|
|
807
|
+
if (o === null) return /* @__PURE__ */ new Date(NaN);
|
|
808
|
+
if (M.u(o)) return /* @__PURE__ */ new Date();
|
|
809
|
+
if (o instanceof Date) return new Date(o);
|
|
820
810
|
if (typeof o == "string" && !/Z$/i.test(o)) {
|
|
821
811
|
var y = o.match(Y);
|
|
822
812
|
if (y) {
|
|
@@ -880,8 +870,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
880
870
|
if (m === W || m === q) {
|
|
881
871
|
var H = this.clone().set(re, 1);
|
|
882
872
|
H.$d[T](k), H.init(), this.$d = H.set(re, Math.min(this.$D, H.daysInMonth())).$d;
|
|
883
|
-
} else
|
|
884
|
-
T && this.$d[T](k);
|
|
873
|
+
} else T && this.$d[T](k);
|
|
885
874
|
return this.init(), this;
|
|
886
875
|
}, l.set = function(a, u) {
|
|
887
876
|
return this.clone().$set(a, u);
|
|
@@ -894,22 +883,17 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
894
883
|
var Z = L(m);
|
|
895
884
|
return M.w(Z.date(Z.date() + Math.round(N * a)), m);
|
|
896
885
|
};
|
|
897
|
-
if (y === W)
|
|
898
|
-
|
|
899
|
-
if (y ===
|
|
900
|
-
|
|
901
|
-
if (y === x)
|
|
902
|
-
return T(1);
|
|
903
|
-
if (y === Ee)
|
|
904
|
-
return T(7);
|
|
886
|
+
if (y === W) return this.set(W, this.$M + a);
|
|
887
|
+
if (y === q) return this.set(q, this.$y + a);
|
|
888
|
+
if (y === x) return T(1);
|
|
889
|
+
if (y === Ee) return T(7);
|
|
905
890
|
var k = (o = {}, o[P] = n, o[b] = h, o[U] = i, o)[y] || 1, H = this.$d.getTime() + a * k;
|
|
906
891
|
return M.w(H, this);
|
|
907
892
|
}, l.subtract = function(a, u) {
|
|
908
893
|
return this.add(-1 * a, u);
|
|
909
894
|
}, l.format = function(a) {
|
|
910
895
|
var u = this, o = this.$locale();
|
|
911
|
-
if (!this.isValid())
|
|
912
|
-
return o.invalidDate || v;
|
|
896
|
+
if (!this.isValid()) return o.invalidDate || v;
|
|
913
897
|
var m = a || "YYYY-MM-DDTHH:mm:ssZ", y = M.z(this), T = this.$H, k = this.$m, H = this.$M, N = o.weekdays, Z = o.months, Ce = o.meridiem, fe = function(j, F, Oe, De) {
|
|
914
898
|
return j && (j[F] || j(u, m)) || Oe[F].slice(0, De);
|
|
915
899
|
}, ge = function(j) {
|
|
@@ -1013,8 +997,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1013
997
|
}, l.$locale = function() {
|
|
1014
998
|
return Q[this.$L];
|
|
1015
999
|
}, l.locale = function(a, u) {
|
|
1016
|
-
if (!a)
|
|
1017
|
-
return this.$L;
|
|
1000
|
+
if (!a) return this.$L;
|
|
1018
1001
|
var o = this.clone(), m = ae(a, u, !0);
|
|
1019
1002
|
return m && (o.$L = m), o;
|
|
1020
1003
|
}, l.clone = function() {
|
|
@@ -1067,31 +1050,25 @@ var it = { exports: {} };
|
|
|
1067
1050
|
if (this.$u) {
|
|
1068
1051
|
var v = this.$d;
|
|
1069
1052
|
this.$y = v.getUTCFullYear(), this.$M = v.getUTCMonth(), this.$D = v.getUTCDate(), this.$W = v.getUTCDay(), this.$H = v.getUTCHours(), this.$m = v.getUTCMinutes(), this.$s = v.getUTCSeconds(), this.$ms = v.getUTCMilliseconds();
|
|
1070
|
-
} else
|
|
1071
|
-
Ee.call(this);
|
|
1053
|
+
} else Ee.call(this);
|
|
1072
1054
|
};
|
|
1073
1055
|
var W = b.utcOffset;
|
|
1074
1056
|
b.utcOffset = function(v, Y) {
|
|
1075
1057
|
var ue = this.$utils().u;
|
|
1076
|
-
if (ue(v))
|
|
1077
|
-
return this.$u ? 0 : ue(this.$offset) ? W.call(this) : this.$offset;
|
|
1058
|
+
if (ue(v)) return this.$u ? 0 : ue(this.$offset) ? W.call(this) : this.$offset;
|
|
1078
1059
|
if (typeof v == "string" && (v = function(ne) {
|
|
1079
1060
|
ne === void 0 && (ne = "");
|
|
1080
1061
|
var Q = ne.match(n);
|
|
1081
|
-
if (!Q)
|
|
1082
|
-
return null;
|
|
1062
|
+
if (!Q) return null;
|
|
1083
1063
|
var pe = ("" + Q[0]).match(h) || ["-", 0, 0], be = pe[0], ae = 60 * +pe[1] + +pe[2];
|
|
1084
1064
|
return ae === 0 ? 0 : be === "+" ? ae : -ae;
|
|
1085
|
-
}(v), v === null))
|
|
1086
|
-
return this;
|
|
1065
|
+
}(v), v === null)) return this;
|
|
1087
1066
|
var he = Math.abs(v) <= 16 ? 60 * v : v, R = this;
|
|
1088
|
-
if (Y)
|
|
1089
|
-
return R.$offset = he, R.$u = v === 0, R;
|
|
1067
|
+
if (Y) return R.$offset = he, R.$u = v === 0, R;
|
|
1090
1068
|
if (v !== 0) {
|
|
1091
1069
|
var ie = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1092
1070
|
(R = this.local().add(he + ie, i)).$offset = he, R.$x.$localOffset = ie;
|
|
1093
|
-
} else
|
|
1094
|
-
R = this.utc();
|
|
1071
|
+
} else R = this.utc();
|
|
1095
1072
|
return R;
|
|
1096
1073
|
};
|
|
1097
1074
|
var Te = b.format;
|
|
@@ -1114,8 +1091,7 @@ var it = { exports: {} };
|
|
|
1114
1091
|
};
|
|
1115
1092
|
var re = b.diff;
|
|
1116
1093
|
b.diff = function(v, Y, ue) {
|
|
1117
|
-
if (v && this.$u === v.$u)
|
|
1118
|
-
return re.call(this, v, Y, ue);
|
|
1094
|
+
if (v && this.$u === v.$u) return re.call(this, v, Y, ue);
|
|
1119
1095
|
var he = this.local(), R = P(v).local();
|
|
1120
1096
|
return re.call(he, R, Y, ue);
|
|
1121
1097
|
};
|
|
@@ -2001,8 +1977,7 @@ const Tt = class {
|
|
|
2001
1977
|
if (i === Ne.TWO_FACTOR_AUTH) {
|
|
2002
1978
|
const { body: { challengeId: n } = {} } = t;
|
|
2003
1979
|
n ? this.triggerStepUpAuth(n) : console.error(`${Ne.TWO_FACTOR_AUTH} received but challengeId not found in body`);
|
|
2004
|
-
} else
|
|
2005
|
-
i === Ne.SESSION_EXPIRATION && (console.info("[SSE] SESSION_EXPIRATION received, closing connection"), window.postMessage({ type: "SessionExpiration", reason: wt.FAILED_2FA }, window.location.href), this.closeSSEStream());
|
|
1980
|
+
} else i === Ne.SESSION_EXPIRATION && (console.info("[SSE] SESSION_EXPIRATION received, closing connection"), window.postMessage({ type: "SessionExpiration", reason: wt.FAILED_2FA }, window.location.href), this.closeSSEStream());
|
|
2006
1981
|
} catch (t) {
|
|
2007
1982
|
console.error("Error parsing SSE message:", t);
|
|
2008
1983
|
}
|