@everymatrix/lottery-oddsbom-ticket-history 0.6.26 → 0.6.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/filter-group_9.cjs.entry.js +251 -251
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{lottery-oddsbom-ticket-history-1ceed66d.js → lottery-oddsbom-ticket-history-128607c9.js} +6 -7
- package/dist/cjs/lottery-oddsbom-ticket-history.cjs.js +1 -1
- package/dist/collection/components/history-list/history-list.js +1 -1
- package/dist/collection/components/lottery-oddsbom-ticket-history/lottery-oddsbom-ticket-history.js +4 -22
- package/dist/collection/utils/api.js +2 -2
- package/dist/esm/filter-group_9.entry.js +252 -252
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{lottery-oddsbom-ticket-history-9b73f80a.js → lottery-oddsbom-ticket-history-397fc07f.js} +6 -7
- package/dist/esm/lottery-oddsbom-ticket-history.js +1 -1
- package/dist/lottery-oddsbom-ticket-history/filter-group_9.entry.js +5 -5
- package/dist/lottery-oddsbom-ticket-history/index.esm.js +1 -1
- package/dist/lottery-oddsbom-ticket-history/{lottery-oddsbom-ticket-history-9b73f80a.js → lottery-oddsbom-ticket-history-397fc07f.js} +1 -1
- package/dist/lottery-oddsbom-ticket-history/lottery-oddsbom-ticket-history.esm.js +1 -1
- package/dist/types/components/lottery-oddsbom-ticket-history/lottery-oddsbom-ticket-history.d.ts +0 -4
- package/dist/types/components.d.ts +0 -8
- package/dist/types/utils/api.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as n}from"./index-e66667d7.js";function e(t,n){if(t){const e=document.createElement("style");e.innerHTML=n,t.appendChild(e)}}function r(t,n){if(!t||!n)return;const e=new URL(n);fetch(e.href).then((t=>t.text())).then((n=>{const e=document.createElement("style");e.innerHTML=n,t&&t.appendChild(e)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function i(t,n){if(window.emMessageBus){const e=document.createElement("style");window.emMessageBus.subscribe(n,(n=>{e.innerHTML=n,t&&t.appendChild(e)}))}}var a,o,u,s;function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function d(t){if(null===t||!0===t||!1===t)return NaN;var n=Number(t);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function l(t,n){if(n.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+n.length+" present")}function h(t){l(1,arguments);var n=Object.prototype.toString.call(t);return t instanceof Date||"object"===c(t)&&"[object Date]"===n?new Date(t.getTime()):"number"==typeof t||"[object Number]"===n?new Date(t):("string"!=typeof t&&"[object String]"!==n||"undefined"==typeof console||(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(t){t.Lottery="Lottery",t.PoolGame="PoolGame"}(a||(a={})),function(t){t.Tipping="HomeDrawAway",t.Oddsbomben="CorrectScore"}(o||(o={})),function(t){t.Settled="Settled",t.Purchased="Purchased",t.Canceled="Canceled"}(u||(u={})),function(t){t.WON="Won",t.LOST="Lost"}(s||(s={}));var f={};function m(){return f}var v=6e4,w=36e5;function g(t){l(1,arguments);var n=h(t),e=n.getUTCDay(),r=(e<1?7:0)+e-1;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function y(t){l(1,arguments);var n=h(t),e=n.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(e+1,0,4),r.setUTCHours(0,0,0,0);var i=g(r),a=new Date(0);a.setUTCFullYear(e,0,4),a.setUTCHours(0,0,0,0);var o=g(a);return n.getTime()>=i.getTime()?e+1:n.getTime()>=o.getTime()?e:e-1}function b(t,n){var e,r,i,a,o,u,s,c;l(1,arguments);var f=m(),v=d(null!==(e=null!==(r=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==r?r:null===(s=f.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==e?e:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=h(t),g=w.getUTCDay(),y=(g<v?7:0)+g-v;return w.setUTCDate(w.getUTCDate()-y),w.setUTCHours(0,0,0,0),w}function p(t,n){var e,r,i,a,o,u,s,c;l(1,arguments);var f=h(t),v=f.getUTCFullYear(),w=m(),g=d(null!==(e=null!==(r=null!==(i=null!==(a=null==n?void 0:n.firstWeekContainsDate)&&void 0!==a?a:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==i?i:w.firstWeekContainsDate)&&void 0!==r?r:null===(s=w.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==e?e:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(v+1,0,g),y.setUTCHours(0,0,0,0);var p=b(y,n),x=new Date(0);x.setUTCFullYear(v,0,g),x.setUTCHours(0,0,0,0);var D=b(x,n);return f.getTime()>=p.getTime()?v+1:f.getTime()>=D.getTime()?v:v-1}function x(t,n){for(var e=t<0?"-":"",r=Math.abs(t).toString();r.length<n;)r="0"+r;return e+r}const D=function(t,n){var e=t.getUTCFullYear(),r=e>0?e:1-e;return x("yy"===n?r%100:r,n.length)},k=function(t,n){var e=t.getUTCMonth();return"M"===n?String(e+1):x(e+1,2)},M=function(t,n){return x(t.getUTCDate(),n.length)},S=function(t,n){return x(t.getUTCHours()%12||12,n.length)},T=function(t,n){return x(t.getUTCHours(),n.length)},E=function(t,n){return x(t.getUTCMinutes(),n.length)},N=function(t,n){return x(t.getUTCSeconds(),n.length)},P=function(t,n){var e=n.length,r=t.getUTCMilliseconds();return x(Math.floor(r*Math.pow(10,e-3)),n.length)};var j={G:function(t,n,e){var r=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});default:return e.era(r,{width:"wide"})}},y:function(t,n,e){if("yo"===n){var r=t.getUTCFullYear();return e.ordinalNumber(r>0?r:1-r,{unit:"year"})}return D(t,n)},Y:function(t,n,e,r){var i=p(t,r),a=i>0?i:1-i;return"YY"===n?x(a%100,2):"Yo"===n?e.ordinalNumber(a,{unit:"year"}):x(a,n.length)},R:function(t,n){return x(y(t),n.length)},u:function(t,n){return x(t.getUTCFullYear(),n.length)},Q:function(t,n,e){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return x(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,n,e){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return x(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,n,e){var r=t.getUTCMonth();switch(n){case"M":case"MM":return k(t,n);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(t,n,e){var r=t.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return x(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(t,n,e,r){var i=function(t,n){l(1,arguments);var e=h(t),r=b(e,n).getTime()-function(t,n){var e,r,i,a,o,u,s,c;l(1,arguments);var h=m(),f=d(null!==(e=null!==(r=null!==(i=null!==(a=null==n?void 0:n.firstWeekContainsDate)&&void 0!==a?a:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==i?i:h.firstWeekContainsDate)&&void 0!==r?r:null===(s=h.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==e?e:1),v=p(t,n),w=new Date(0);return w.setUTCFullYear(v,0,f),w.setUTCHours(0,0,0,0),b(w,n)}(e,n).getTime();return Math.round(r/6048e5)+1}(t,r);return"wo"===n?e.ordinalNumber(i,{unit:"week"}):x(i,n.length)},I:function(t,n,e){var r=function(t){l(1,arguments);var n=h(t),e=g(n).getTime()-function(t){l(1,arguments);var n=y(t),e=new Date(0);return e.setUTCFullYear(n,0,4),e.setUTCHours(0,0,0,0),g(e)}(n).getTime();return Math.round(e/6048e5)+1}(t);return"Io"===n?e.ordinalNumber(r,{unit:"week"}):x(r,n.length)},d:function(t,n,e){return"do"===n?e.ordinalNumber(t.getUTCDate(),{unit:"date"}):M(t,n)},D:function(t,n,e){var r=function(t){l(1,arguments);var n=h(t),e=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var r=n.getTime();return Math.floor((e-r)/864e5)+1}(t);return"Do"===n?e.ordinalNumber(r,{unit:"dayOfYear"}):x(r,n.length)},E:function(t,n,e){var r=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(t,n,e,r){var i=t.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return x(a,2);case"eo":return e.ordinalNumber(a,{unit:"day"});case"eee":return e.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(i,{width:"short",context:"formatting"});default:return e.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,e,r){var i=t.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return x(a,n.length);case"co":return e.ordinalNumber(a,{unit:"day"});case"ccc":return e.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(i,{width:"narrow",context:"standalone"});case"cccccc":return e.day(i,{width:"short",context:"standalone"});default:return e.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,e){var r=t.getUTCDay(),i=0===r?7:r;switch(n){case"i":return String(i);case"ii":return x(i,n.length);case"io":return e.ordinalNumber(i,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(t,n,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){var r,i=t.getUTCHours();switch(r=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){var r,i=t.getUTCHours();switch(r=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if("ho"===n){var r=t.getUTCHours()%12;return 0===r&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return S(t,n)},H:function(t,n,e){return"Ho"===n?e.ordinalNumber(t.getUTCHours(),{unit:"hour"}):T(t,n)},K:function(t,n,e){var r=t.getUTCHours()%12;return"Ko"===n?e.ordinalNumber(r,{unit:"hour"}):x(r,n.length)},k:function(t,n,e){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===n?e.ordinalNumber(r,{unit:"hour"}):x(r,n.length)},m:function(t,n,e){return"mo"===n?e.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):E(t,n)},s:function(t,n,e){return"so"===n?e.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):N(t,n)},S:function(t,n){return P(t,n)},X:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(n){case"X":return W(i);case"XXXX":case"XX":return C(i);default:return C(i,":")}},x:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"x":return W(i);case"xxxx":case"xx":return C(i);default:return C(i,":")}},O:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+O(i,":");default:return"GMT"+C(i,":")}},z:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+O(i,":");default:return"GMT"+C(i,":")}},t:function(t,n,e,r){return x(Math.floor((r._originalDate||t).getTime()/1e3),n.length)},T:function(t,n,e,r){return x((r._originalDate||t).getTime(),n.length)}};function O(t,n){var e=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),a=r%60;if(0===a)return e+String(i);var o=n||"";return e+String(i)+o+x(a,2)}function W(t,n){return t%60==0?(t>0?"-":"+")+x(Math.abs(t)/60,2):C(t,n)}function C(t,n){var e=n||"",r=t>0?"-":"+",i=Math.abs(t);return r+x(Math.floor(i/60),2)+e+x(i%60,2)}const R=j;var I=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},Y=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},G={p:Y,P:function(t,n){var e,r=t.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return I(t,n);switch(i){case"P":e=n.dateTime({width:"short"});break;case"PP":e=n.dateTime({width:"medium"});break;case"PPP":e=n.dateTime({width:"long"});break;default:e=n.dateTime({width:"full"})}return e.replace("{{date}}",I(i,n)).replace("{{time}}",Y(a,n))}};const L=G;var q=["D","DD"],$=["YY","YYYY"];function A(t,n,e){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var z={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"}};function B(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var Q,F={date:B({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:B({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:B({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},X={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function U(t){return function(n,e){var r;if("formatting"===(null!=e&&e.context?String(e.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,a=null!=e&&e.width?String(e.width):i;r=t.formattingValues[a]||t.formattingValues[i]}else{var o=t.defaultWidth,u=null!=e&&e.width?String(e.width):t.defaultWidth;r=t.values[u]||t.values[o]}return r[t.argumentCallback?t.argumentCallback(n):n]}}function H(t){return function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.width,i=n.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!i)return null;var a,o=i[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],s=Array.isArray(u)?function(t){for(var n=0;n<t.length;n++)if(t[n].test(o))return n}(u):function(t){for(var n in t)if(t.hasOwnProperty(n)&&t[n].test(o))return n}(u);return a=t.valueCallback?t.valueCallback(s):s,{value:a=e.valueCallback?e.valueCallback(a):a,rest:n.slice(o.length)}}}const J={code:"en-US",formatDistance:function(t,n,e){var r,i=z[t];return r="string"==typeof i?i:1===n?i.one:i.other.replace("{{count}}",n.toString()),null!=e&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r},formatLong:F,formatRelative:function(t){return X[t]},localize:{ordinalNumber:function(t){var n=Number(t),e=n%100;if(e>20||e<10)switch(e%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:U({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:U({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:U({values:{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"]},defaultWidth:"wide"}),day:U({values:{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"]},defaultWidth:"wide"}),dayPeriod:U({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Q={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.match(Q.matchPattern);if(!e)return null;var r=e[0],i=t.match(Q.parsePattern);if(!i)return null;var a=Q.valueCallback?Q.valueCallback(i[0]):i[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(r.length)}}),era:H({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:H({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:H({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:H({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var _=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Z=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,K=/^'([^]*?)'?$/,V=/''/g,tt=/[a-zA-Z]/;function nt(t,n,e){var r,i,a,o,u,s,f,v,w,g,y,b,p,x,D,k,M,S;l(2,arguments);var T=String(n),E=m(),N=null!==(r=null!==(i=null==e?void 0:e.locale)&&void 0!==i?i:E.locale)&&void 0!==r?r:J,P=d(null!==(a=null!==(o=null!==(u=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(f=e.locale)||void 0===f||null===(v=f.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==u?u:E.firstWeekContainsDate)&&void 0!==o?o:null===(w=E.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==a?a:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=d(null!==(y=null!==(b=null!==(p=null!==(x=null==e?void 0:e.weekStartsOn)&&void 0!==x?x:null==e||null===(D=e.locale)||void 0===D||null===(k=D.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==p?p:E.weekStartsOn)&&void 0!==b?b:null===(M=E.locale)||void 0===M||null===(S=M.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==y?y:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var O=h(t);if(!function(t){if(l(1,arguments),!function(t){return l(1,arguments),t instanceof Date||"object"===c(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var n=h(t);return!isNaN(Number(n))}(O))throw new RangeError("Invalid time value");var W=function(t){var n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),t.getTime()-n.getTime()}(O),C=function(t,n){return l(2,arguments),function(t,n){l(2,arguments);var e=h(t).getTime(),r=d(n);return new Date(e+r)}(t,-d(n))}(O,W),I={firstWeekContainsDate:P,weekStartsOn:j,locale:N,_originalDate:O};return T.match(Z).map((function(t){var n=t[0];return"p"===n||"P"===n?(0,L[n])(t,N.formatLong):t})).join("").match(_).map((function(r){if("''"===r)return"'";var i,a,o=r[0];if("'"===o)return(a=(i=r).match(K))?a[1].replace(V,"'"):i;var u=R[o];if(u)return null!=e&&e.useAdditionalWeekYearTokens||-1===$.indexOf(r)||A(r,n,String(t)),null!=e&&e.useAdditionalDayOfYearTokens||!(-1!==q.indexOf(r))||A(r,n,String(t)),u(C,r,N.localize,I);if(o.match(tt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}function et(t,n){var e;l(1,arguments);var r=d(null!==(e=null==n?void 0:n.additionalDigits)&&void 0!==e?e:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var i,a=function(t){var n,e={},r=t.split(rt.dateTimeDelimiter);if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],rt.timeZoneDelimiter.test(e.date)&&(e.date=t.split(rt.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){var i=rt.timezone.exec(n);i?(e.time=n.replace(i[1],""),e.timezone=i[1]):e.time=n}return e}(t);if(a.date){var o=function(t,n){var e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),r=t.match(e);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?i:100*a,restDateString:t.slice((r[1]||r[2]).length)}}(a.date,r);i=function(t,n){if(null===n)return new Date(NaN);var e=t.match(it);if(!e)return new Date(NaN);var r=!!e[4],i=ut(e[1]),a=ut(e[2])-1,o=ut(e[3]),u=ut(e[4]),s=ut(e[5])-1;if(r)return function(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}(0,u,s)?function(t,n,e){var r=new Date(0);r.setUTCFullYear(t,0,4);var i=7*(n-1)+e+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}(n,u,s):new Date(NaN);var c=new Date(0);return function(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(ct[n]||(dt(t)?29:28))}(n,a,o)&&function(t,n){return n>=1&&n<=(dt(t)?366:365)}(n,i)?(c.setUTCFullYear(n,a,Math.max(i,o)),c):new Date(NaN)}(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var u,s=i.getTime(),c=0;if(a.time&&(c=function(t){var n=t.match(at);if(!n)return NaN;var e=st(n[1]),r=st(n[2]),i=st(n[3]);return function(t,n,e){return 24===t?0===n&&0===e:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}(e,r,i)?e*w+r*v+1e3*i:NaN}(a.time),isNaN(c)))return new Date(NaN);if(!a.timezone){var h=new Date(s+c),f=new Date(0);return f.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),f.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),f}return u=function(t){if("Z"===t)return 0;var n=t.match(ot);if(!n)return 0;var e="+"===n[1]?-1:1,r=parseInt(n[2]),i=n[3]&&parseInt(n[3])||0;return function(t,n){return n>=0&&n<=59}(0,i)?e*(r*w+i*v):NaN}(a.timezone),isNaN(u)?new Date(NaN):new Date(s+c+u)}var rt={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},it=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,at=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ot=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ut(t){return t?parseInt(t):1}function st(t){return t&&parseFloat(t.replace(",","."))||0}var ct=[31,null,31,30,31,30,31,31,30,31,30,31];function dt(t){return t%400==0||t%4==0&&t%100!=0}function lt(t){t.i18n=Object.assign(Object.assign({},t.i18n),{formatDate:function(t){const{year:n,month:e,day:r}=t;return nt(new Date(n,e,r),"dd/MM/yyyy")},parseDate:function(t){const[n,e,r]=t.split("/");return{year:r,month:parseInt(e)-1,day:n}}})}const ht=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=16*Math.random()|0;return("x"==t?n:3&n|8).toString(16)}));function ft(t,n="GET",e=null,r={}){return new Promise(((i,a)=>{const o=ht(),u=Object.assign({"Content-Type":"application/json"},r);"GET"!==n&&"HEAD"!==n&&(u["X-Idempotency-Key"]=o);const s={method:n,headers:u,body:null};e&&"GET"!==n&&"HEAD"!==n?s.body=JSON.stringify(e):delete s.body,fetch(t,s).then((t=>t.ok?t.json():t.json().then((n=>{a({status:t.status,statusText:t.statusText,code:n.code||"UNKNOWN_ERROR",message:n.message||"An unknown error occurred",data:n.data||null})}),(()=>a({status:t.status,statusText:t.statusText,code:"PARSE_ERROR",message:"Failed to parse error response"}))))).then((t=>i(t)),(t=>a(t)))}))}function mt(t,n){return null==t||""===t||(0!==t||!n)&&(Array.isArray(t)?function(t){if(0===t.length)return!0;const n=t.length;let e=0;for(let r=0;r<n;r++){if(!mt(t[r]))return!1;e++}return e===n}(t):"[object Object]"===Object.prototype.toString.call(t)?function(t){if(0===Object.keys(t).length)return!0;const n=Object.keys(t).length;let e=0;for(const n of Object.values(t)){if(!mt(n))return!1;e++}return e===n}(t):!t)}function vt(t){var n;if(0===t)return"0";if(!t)return"";const e=(t=t.toString()).split(".");return e[0]=null===(n=e[0])||void 0===n?void 0:n.replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}const wt=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));function gt(t){var n;return bt(null===(n=t.winningNumbers[0])||void 0===n?void 0:n.poolGameOutcomes)}function yt(t){const n=t.selection.map((t=>t.poolGameSelections));return bt(null==n?void 0:n[0])}function bt(t){return t&&t.length>0?t.map((t=>null==t?void 0:t[0])):[[]]}function pt(t){const n=et(t),e=n.getDate(),r=nt(n,"EEEE"),i=nt(n,"MMMM"),a=function(t){const n=t%100;if(n>=11&&n<=13)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(e);return`${r} ${e}${a} ${i}`}async function xt({endpointTicket:t,filterData:n,sessionId:e}){try{const{items:r=[],total:i}=await ft(`${t}/tickets${function(t){const n={};Object.entries(t).forEach((([t,e])=>{mt(e,!0)||(n[t]=e)}));const e=Object.entries(n).map((([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`)).join("&");return e?`?${e}`:""}(n)}`,"GET",null,{Authorization:`Bearer ${e}`});return{dataSource:r,total:i}}catch(t){if(401===t.status)return Promise.reject(new Error(`${t.statusText||"Unauthorized"}, please login`))}}async function Dt({endpoint:t,gameId:n,drawId:e}){try{return await ft(`${t}/games/${n}/draws/${e}`,"GET",{})||{}}catch(t){console.log(t)}}async function kt({endpoint:t,gameId:n,drawResults:e}){const r=e.map((t=>t.drawId));for(let i=0;i<r.length;i++){const a=await Dt({endpoint:t,gameId:n,drawId:r[i]});e[i].tempDrawData=a,e[i].prizeDetails=Mt(e[i].details)}return e}function Mt(t){const n=new Map;t.forEach((t=>{let e=t.divisionDisplayName,r=t.amount,i=t.currency;e&&"None"!=e&&(n.has(e)?n.set(e,{amount:n.get(e).amount+r,currency:i,times:n.get(e).times+1}):n.set(e,{amount:r,currency:i,times:1}))}));const e=[];for(let[t,r]of n.entries())e.push({prizeName:t,amount:r.amount,currency:r.currency,times:r.times});return e.sort(((t,n)=>n.prizeName.localeCompare(t.prizeName))),e}const St=["ro","en","fr","ar","hr"],Tt={en:{win:"Win",lose:"Lose",normal:"Normal",subscription:"Subscription",syndicate:"Syndicate",ticketResult:"Ticket Result:",drawId:"Draw ID:",drawDate:"Draw Date:",result:"Result:",prize:"Prize:",bettingType:"Betting Type:",seeDetails:"See Details",noData:"No data Avaliable.",ticketId:"Ticket ID:",ticketType:"Ticket Type:",ticketAmount:"Ticket Amount:",lineDetail:"Line Detail:",numberOfDraw:"Number of Draw:",filter:"Filter",clear:"Clear",perPage:"1",searchByTicketId:"Search by Ticket ID",enterTicketId:"Enter Ticket ID",searchByTicketType:"Search by Ticket Type",selectTicketType:"Select Ticket Type",searchByDate:"Search by Date",from:"From",to:"To",ticketsHistory:"Tickets History",settled:"Settled",purchased:"Purchased",canceled:"Canceled",pleaseSelectADate:"Please select a date"}},Et=(t,n,e)=>{const r=n;let i=Tt[void 0!==r&&St.includes(r)?r:"en"][t];return e&&Object.keys(e).forEach((t=>{i=null==i?void 0:i.replace(`{${t}}`,e[t])})),i},Nt=async t=>{if(t)try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const r=await e.json();n=r,Object.keys(n).forEach((t=>{for(let e in n[t])Tt[t][e]=n[t][e]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var n},Pt=class{constructor(n){t(this,n),this.handlePageSizeChange=t=>{this.filterData.limit=t.detail,this.filterData.offset=0,this.fetchTicketList()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.endpoint=void 0,this.endpointTicket=void 0,this.gameId=void 0,this.playerId=void 0,this.sessionId="",this.isLoading=!1,this.errorConfig={isError:!1},this.filterData={offset:0,limit:10,vendorGameType:a.PoolGame,vendorGameBettingObject:o.Oddsbomben},this.ticketHistoryRes={dataSource:[],total:0}}handleClientStylingChange(t,n){t!==n&&e(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,n){t!==n&&r(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,n){t!==n&&i(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&i(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&e(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&r(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentWillLoad(){this.fetchTicketList()}async fetchTicketList(){if(this.endpointTicket&&this.sessionId)try{this.isLoading=!0;const t=await xt({endpointTicket:this.endpointTicket,filterData:this.filterData,sessionId:this.sessionId});this.ticketHistoryRes=t}catch(t){this.errorConfig={isError:!0,message:t.message||t.msg}}finally{this.isLoading=!1}else console.error("endpointTicket and sessionId are required")}renderError(){return n("div",{class:"error-red text-center mt-12"},this.errorConfig.message)}handleFilterChange(t){this.filterData=Object.assign({},{offset:this.filterData.offset,limit:this.filterData.limit,vendorGameType:this.filterData.vendorGameType,vendorGameBettingObject:this.filterData.vendorGameBettingObject},t.detail),this.fetchTicketList()}handlePageChange(t){this.filterData.offset=(t.detail-1)*this.filterData.limit,this.fetchTicketList()}render(){var t,e;return n("div",{key:"62ca9289f4ec446d91cb5035cd0bd224b79295bc",ref:t=>this.stylingContainer=t,class:"lottery-oddsbom-ticket-history-container"},n("div",{key:"4e42ea93276f7c8e8cd8746093d5d540022b3b34",class:"lottery-oddsbom-ticket-history-wrapper"},n("div",{key:"1421b4608734e540dd9d50c2af56f84315a40281",class:"lottery-oddsbom-ticket-history-container__title"},Et("ticketsHistory",this.language)),n("filter-group",{key:"3094316d91c22b2c78317434dbf96fb3a2caf187",language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,onFilterChange:this.handleFilterChange.bind(this)}),this.errorConfig.isError?this.renderError():n("history-list",{language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,"game-id":this.gameId,endpoint:this.endpoint,"is-loading":this.isLoading,"default-ticket-history":JSON.stringify((null===(t=this.ticketHistoryRes)||void 0===t?void 0:t.dataSource)||[])}),n("div",{key:"71ceb1e0735b61e1da66d31f3978bbe71aa0948f",class:"pagination-wrap"},n("general-pagination",{key:"db7bfa61ce83a56bac8073083f5599dcc75ad160",total:(null===(e=this.ticketHistoryRes)||void 0===e?void 0:e.total)||0,language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,onPageChange:this.handlePageChange.bind(this),onPageSizeChange:this.handlePageSizeChange.bind(this)}))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};Pt.style="@keyframes skeleton-loading {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n.lottery-oddsbom-ticket-history-container {\n container-type: inline-size;\n container-name: myContainer;\n color: var(--emw--color-typography, #000);\n background-color: var(--emw--color-background, #fff);\n height: 100%;\n width: 100%;\n}\n.lottery-oddsbom-ticket-history-container .lottery-oddsbom-ticket-history-wrapper {\n padding: 12px;\n margin: 0 auto;\n max-width: 800px;\n background-color: var(--emw--color-background, #fff);\n}\n.lottery-oddsbom-ticket-history-container__title {\n margin: 20px 0;\n text-align: center;\n font-size: 20px;\n font-weight: 700;\n color: var(--emw--color-typography, #000);\n}\n.lottery-oddsbom-ticket-history-container .pagination-wrap {\n margin-top: 20px;\n display: flex;\n justify-content: flex-end;\n}\n\n.pagination-wrap {\n margin-top: 20px;\n display: flex;\n justify-content: flex-end;\n}\n\n@container myContainer (min-width: 1200px) {\n .lottery-oddsbom-ticket-history-wrapper {\n padding: 24px;\n margin: 0 auto;\n }\n}\n@container myContainer (max-width: 480px) {\n .lottery-oddsbom-ticket-history-wrapper {\n padding: 2px;\n }\n .lottery-oddsbom-ticket-history-container .filter-wrap .filter-status {\n gap: 4px;\n }\n}\n.error-red {\n color: var(--emw--color-error, red);\n}\n\n.text-center {\n text-align: center;\n}\n\n.mt-12 {\n margin-top: 48px;\n}";export{s as D,Pt as L,r as a,i as b,lt as c,gt as d,kt as e,pt as f,yt as g,nt as h,wt as i,vt as j,et as p,Nt as r,e as s,Et as t}
|
|
1
|
+
import{r as t,h as n}from"./index-e66667d7.js";function e(t,n){if(t){const e=document.createElement("style");e.innerHTML=n,t.appendChild(e)}}function r(t,n){if(!t||!n)return;const e=new URL(n);fetch(e.href).then((t=>t.text())).then((n=>{const e=document.createElement("style");e.innerHTML=n,t&&t.appendChild(e)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function i(t,n){if(window.emMessageBus){const e=document.createElement("style");window.emMessageBus.subscribe(n,(n=>{e.innerHTML=n,t&&t.appendChild(e)}))}}var a,o,u,s;function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function d(t){if(null===t||!0===t||!1===t)return NaN;var n=Number(t);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function l(t,n){if(n.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+n.length+" present")}function h(t){l(1,arguments);var n=Object.prototype.toString.call(t);return t instanceof Date||"object"===c(t)&&"[object Date]"===n?new Date(t.getTime()):"number"==typeof t||"[object Number]"===n?new Date(t):("string"!=typeof t&&"[object String]"!==n||"undefined"==typeof console||(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(t){t.Lottery="Lottery",t.PoolGame="PoolGame"}(a||(a={})),function(t){t.Tipping="HomeDrawAway",t.Oddsbomben="CorrectScore"}(o||(o={})),function(t){t.Settled="Settled",t.Purchased="Purchased",t.Canceled="Canceled"}(u||(u={})),function(t){t.WON="Won",t.LOST="Lost"}(s||(s={}));var f={};function m(){return f}var v=6e4,w=36e5;function g(t){l(1,arguments);var n=h(t),e=n.getUTCDay(),r=(e<1?7:0)+e-1;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function y(t){l(1,arguments);var n=h(t),e=n.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(e+1,0,4),r.setUTCHours(0,0,0,0);var i=g(r),a=new Date(0);a.setUTCFullYear(e,0,4),a.setUTCHours(0,0,0,0);var o=g(a);return n.getTime()>=i.getTime()?e+1:n.getTime()>=o.getTime()?e:e-1}function b(t,n){var e,r,i,a,o,u,s,c;l(1,arguments);var f=m(),v=d(null!==(e=null!==(r=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==r?r:null===(s=f.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==e?e:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=h(t),g=w.getUTCDay(),y=(g<v?7:0)+g-v;return w.setUTCDate(w.getUTCDate()-y),w.setUTCHours(0,0,0,0),w}function p(t,n){var e,r,i,a,o,u,s,c;l(1,arguments);var f=h(t),v=f.getUTCFullYear(),w=m(),g=d(null!==(e=null!==(r=null!==(i=null!==(a=null==n?void 0:n.firstWeekContainsDate)&&void 0!==a?a:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==i?i:w.firstWeekContainsDate)&&void 0!==r?r:null===(s=w.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==e?e:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(v+1,0,g),y.setUTCHours(0,0,0,0);var p=b(y,n),x=new Date(0);x.setUTCFullYear(v,0,g),x.setUTCHours(0,0,0,0);var D=b(x,n);return f.getTime()>=p.getTime()?v+1:f.getTime()>=D.getTime()?v:v-1}function x(t,n){for(var e=t<0?"-":"",r=Math.abs(t).toString();r.length<n;)r="0"+r;return e+r}const D=function(t,n){var e=t.getUTCFullYear(),r=e>0?e:1-e;return x("yy"===n?r%100:r,n.length)},M=function(t,n){var e=t.getUTCMonth();return"M"===n?String(e+1):x(e+1,2)},k=function(t,n){return x(t.getUTCDate(),n.length)},S=function(t,n){return x(t.getUTCHours()%12||12,n.length)},T=function(t,n){return x(t.getUTCHours(),n.length)},E=function(t,n){return x(t.getUTCMinutes(),n.length)},N=function(t,n){return x(t.getUTCSeconds(),n.length)},P=function(t,n){var e=n.length,r=t.getUTCMilliseconds();return x(Math.floor(r*Math.pow(10,e-3)),n.length)};var j={G:function(t,n,e){var r=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});default:return e.era(r,{width:"wide"})}},y:function(t,n,e){if("yo"===n){var r=t.getUTCFullYear();return e.ordinalNumber(r>0?r:1-r,{unit:"year"})}return D(t,n)},Y:function(t,n,e,r){var i=p(t,r),a=i>0?i:1-i;return"YY"===n?x(a%100,2):"Yo"===n?e.ordinalNumber(a,{unit:"year"}):x(a,n.length)},R:function(t,n){return x(y(t),n.length)},u:function(t,n){return x(t.getUTCFullYear(),n.length)},Q:function(t,n,e){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return x(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,n,e){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return x(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,n,e){var r=t.getUTCMonth();switch(n){case"M":case"MM":return M(t,n);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(t,n,e){var r=t.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return x(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(t,n,e,r){var i=function(t,n){l(1,arguments);var e=h(t),r=b(e,n).getTime()-function(t,n){var e,r,i,a,o,u,s,c;l(1,arguments);var h=m(),f=d(null!==(e=null!==(r=null!==(i=null!==(a=null==n?void 0:n.firstWeekContainsDate)&&void 0!==a?a:null==n||null===(o=n.locale)||void 0===o||null===(u=o.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==i?i:h.firstWeekContainsDate)&&void 0!==r?r:null===(s=h.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==e?e:1),v=p(t,n),w=new Date(0);return w.setUTCFullYear(v,0,f),w.setUTCHours(0,0,0,0),b(w,n)}(e,n).getTime();return Math.round(r/6048e5)+1}(t,r);return"wo"===n?e.ordinalNumber(i,{unit:"week"}):x(i,n.length)},I:function(t,n,e){var r=function(t){l(1,arguments);var n=h(t),e=g(n).getTime()-function(t){l(1,arguments);var n=y(t),e=new Date(0);return e.setUTCFullYear(n,0,4),e.setUTCHours(0,0,0,0),g(e)}(n).getTime();return Math.round(e/6048e5)+1}(t);return"Io"===n?e.ordinalNumber(r,{unit:"week"}):x(r,n.length)},d:function(t,n,e){return"do"===n?e.ordinalNumber(t.getUTCDate(),{unit:"date"}):k(t,n)},D:function(t,n,e){var r=function(t){l(1,arguments);var n=h(t),e=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var r=n.getTime();return Math.floor((e-r)/864e5)+1}(t);return"Do"===n?e.ordinalNumber(r,{unit:"dayOfYear"}):x(r,n.length)},E:function(t,n,e){var r=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(t,n,e,r){var i=t.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return x(a,2);case"eo":return e.ordinalNumber(a,{unit:"day"});case"eee":return e.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(i,{width:"short",context:"formatting"});default:return e.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,e,r){var i=t.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return x(a,n.length);case"co":return e.ordinalNumber(a,{unit:"day"});case"ccc":return e.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(i,{width:"narrow",context:"standalone"});case"cccccc":return e.day(i,{width:"short",context:"standalone"});default:return e.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,e){var r=t.getUTCDay(),i=0===r?7:r;switch(n){case"i":return String(i);case"ii":return x(i,n.length);case"io":return e.ordinalNumber(i,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(t,n,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,n,e){var r,i=t.getUTCHours();switch(r=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",n){case"b":case"bb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,n,e){var r,i=t.getUTCHours();switch(r=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,n,e){if("ho"===n){var r=t.getUTCHours()%12;return 0===r&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return S(t,n)},H:function(t,n,e){return"Ho"===n?e.ordinalNumber(t.getUTCHours(),{unit:"hour"}):T(t,n)},K:function(t,n,e){var r=t.getUTCHours()%12;return"Ko"===n?e.ordinalNumber(r,{unit:"hour"}):x(r,n.length)},k:function(t,n,e){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===n?e.ordinalNumber(r,{unit:"hour"}):x(r,n.length)},m:function(t,n,e){return"mo"===n?e.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):E(t,n)},s:function(t,n,e){return"so"===n?e.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):N(t,n)},S:function(t,n){return P(t,n)},X:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(n){case"X":return W(i);case"XXXX":case"XX":return C(i);default:return C(i,":")}},x:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"x":return W(i);case"xxxx":case"xx":return C(i);default:return C(i,":")}},O:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+O(i,":");default:return"GMT"+C(i,":")}},z:function(t,n,e,r){var i=(r._originalDate||t).getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+O(i,":");default:return"GMT"+C(i,":")}},t:function(t,n,e,r){return x(Math.floor((r._originalDate||t).getTime()/1e3),n.length)},T:function(t,n,e,r){return x((r._originalDate||t).getTime(),n.length)}};function O(t,n){var e=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),a=r%60;if(0===a)return e+String(i);var o=n||"";return e+String(i)+o+x(a,2)}function W(t,n){return t%60==0?(t>0?"-":"+")+x(Math.abs(t)/60,2):C(t,n)}function C(t,n){var e=n||"",r=t>0?"-":"+",i=Math.abs(t);return r+x(Math.floor(i/60),2)+e+x(i%60,2)}const R=j;var I=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},Y=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},G={p:Y,P:function(t,n){var e,r=t.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return I(t,n);switch(i){case"P":e=n.dateTime({width:"short"});break;case"PP":e=n.dateTime({width:"medium"});break;case"PPP":e=n.dateTime({width:"long"});break;default:e=n.dateTime({width:"full"})}return e.replace("{{date}}",I(i,n)).replace("{{time}}",Y(a,n))}};const L=G;var q=["D","DD"],$=["YY","YYYY"];function A(t,n,e){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var z={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"}};function B(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var Q,F={date:B({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:B({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:B({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},X={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function U(t){return function(n,e){var r;if("formatting"===(null!=e&&e.context?String(e.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,a=null!=e&&e.width?String(e.width):i;r=t.formattingValues[a]||t.formattingValues[i]}else{var o=t.defaultWidth,u=null!=e&&e.width?String(e.width):t.defaultWidth;r=t.values[u]||t.values[o]}return r[t.argumentCallback?t.argumentCallback(n):n]}}function H(t){return function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.width,i=n.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!i)return null;var a,o=i[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],s=Array.isArray(u)?function(t){for(var n=0;n<t.length;n++)if(t[n].test(o))return n}(u):function(t){for(var n in t)if(t.hasOwnProperty(n)&&t[n].test(o))return n}(u);return a=t.valueCallback?t.valueCallback(s):s,{value:a=e.valueCallback?e.valueCallback(a):a,rest:n.slice(o.length)}}}const J={code:"en-US",formatDistance:function(t,n,e){var r,i=z[t];return r="string"==typeof i?i:1===n?i.one:i.other.replace("{{count}}",n.toString()),null!=e&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r},formatLong:F,formatRelative:function(t){return X[t]},localize:{ordinalNumber:function(t){var n=Number(t),e=n%100;if(e>20||e<10)switch(e%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:U({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:U({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:U({values:{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"]},defaultWidth:"wide"}),day:U({values:{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"]},defaultWidth:"wide"}),dayPeriod:U({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Q={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.match(Q.matchPattern);if(!e)return null;var r=e[0],i=t.match(Q.parsePattern);if(!i)return null;var a=Q.valueCallback?Q.valueCallback(i[0]):i[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(r.length)}}),era:H({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:H({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:H({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:H({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:H({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var _=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Z=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,K=/^'([^]*?)'?$/,V=/''/g,tt=/[a-zA-Z]/;function nt(t,n,e){var r,i,a,o,u,s,f,v,w,g,y,b,p,x,D,M,k,S;l(2,arguments);var T=String(n),E=m(),N=null!==(r=null!==(i=null==e?void 0:e.locale)&&void 0!==i?i:E.locale)&&void 0!==r?r:J,P=d(null!==(a=null!==(o=null!==(u=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(f=e.locale)||void 0===f||null===(v=f.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==u?u:E.firstWeekContainsDate)&&void 0!==o?o:null===(w=E.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==a?a:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=d(null!==(y=null!==(b=null!==(p=null!==(x=null==e?void 0:e.weekStartsOn)&&void 0!==x?x:null==e||null===(D=e.locale)||void 0===D||null===(M=D.options)||void 0===M?void 0:M.weekStartsOn)&&void 0!==p?p:E.weekStartsOn)&&void 0!==b?b:null===(k=E.locale)||void 0===k||null===(S=k.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==y?y:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var O=h(t);if(!function(t){if(l(1,arguments),!function(t){return l(1,arguments),t instanceof Date||"object"===c(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var n=h(t);return!isNaN(Number(n))}(O))throw new RangeError("Invalid time value");var W=function(t){var n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),t.getTime()-n.getTime()}(O),C=function(t,n){return l(2,arguments),function(t,n){l(2,arguments);var e=h(t).getTime(),r=d(n);return new Date(e+r)}(t,-d(n))}(O,W),I={firstWeekContainsDate:P,weekStartsOn:j,locale:N,_originalDate:O};return T.match(Z).map((function(t){var n=t[0];return"p"===n||"P"===n?(0,L[n])(t,N.formatLong):t})).join("").match(_).map((function(r){if("''"===r)return"'";var i,a,o=r[0];if("'"===o)return(a=(i=r).match(K))?a[1].replace(V,"'"):i;var u=R[o];if(u)return null!=e&&e.useAdditionalWeekYearTokens||-1===$.indexOf(r)||A(r,n,String(t)),null!=e&&e.useAdditionalDayOfYearTokens||!(-1!==q.indexOf(r))||A(r,n,String(t)),u(C,r,N.localize,I);if(o.match(tt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}function et(t,n){var e;l(1,arguments);var r=d(null!==(e=null==n?void 0:n.additionalDigits)&&void 0!==e?e:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var i,a=function(t){var n,e={},r=t.split(rt.dateTimeDelimiter);if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],rt.timeZoneDelimiter.test(e.date)&&(e.date=t.split(rt.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){var i=rt.timezone.exec(n);i?(e.time=n.replace(i[1],""),e.timezone=i[1]):e.time=n}return e}(t);if(a.date){var o=function(t,n){var e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),r=t.match(e);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?i:100*a,restDateString:t.slice((r[1]||r[2]).length)}}(a.date,r);i=function(t,n){if(null===n)return new Date(NaN);var e=t.match(it);if(!e)return new Date(NaN);var r=!!e[4],i=ut(e[1]),a=ut(e[2])-1,o=ut(e[3]),u=ut(e[4]),s=ut(e[5])-1;if(r)return function(t,n,e){return n>=1&&n<=53&&e>=0&&e<=6}(0,u,s)?function(t,n,e){var r=new Date(0);r.setUTCFullYear(t,0,4);var i=7*(n-1)+e+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}(n,u,s):new Date(NaN);var c=new Date(0);return function(t,n,e){return n>=0&&n<=11&&e>=1&&e<=(ct[n]||(dt(t)?29:28))}(n,a,o)&&function(t,n){return n>=1&&n<=(dt(t)?366:365)}(n,i)?(c.setUTCFullYear(n,a,Math.max(i,o)),c):new Date(NaN)}(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var u,s=i.getTime(),c=0;if(a.time&&(c=function(t){var n=t.match(at);if(!n)return NaN;var e=st(n[1]),r=st(n[2]),i=st(n[3]);return function(t,n,e){return 24===t?0===n&&0===e:e>=0&&e<60&&n>=0&&n<60&&t>=0&&t<25}(e,r,i)?e*w+r*v+1e3*i:NaN}(a.time),isNaN(c)))return new Date(NaN);if(!a.timezone){var h=new Date(s+c),f=new Date(0);return f.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),f.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),f}return u=function(t){if("Z"===t)return 0;var n=t.match(ot);if(!n)return 0;var e="+"===n[1]?-1:1,r=parseInt(n[2]),i=n[3]&&parseInt(n[3])||0;return function(t,n){return n>=0&&n<=59}(0,i)?e*(r*w+i*v):NaN}(a.timezone),isNaN(u)?new Date(NaN):new Date(s+c+u)}var rt={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},it=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,at=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ot=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ut(t){return t?parseInt(t):1}function st(t){return t&&parseFloat(t.replace(",","."))||0}var ct=[31,null,31,30,31,30,31,31,30,31,30,31];function dt(t){return t%400==0||t%4==0&&t%100!=0}function lt(t){t.i18n=Object.assign(Object.assign({},t.i18n),{formatDate:function(t){const{year:n,month:e,day:r}=t;return nt(new Date(n,e,r),"dd/MM/yyyy")},parseDate:function(t){const[n,e,r]=t.split("/");return{year:r,month:parseInt(e)-1,day:n}}})}const ht=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=16*Math.random()|0;return("x"==t?n:3&n|8).toString(16)}));function ft(t,n="GET",e=null,r={}){return new Promise(((i,a)=>{const o=ht(),u=Object.assign({"Content-Type":"application/json"},r);"GET"!==n&&"HEAD"!==n&&(u["X-Idempotency-Key"]=o);const s={method:n,headers:u,body:null};e&&"GET"!==n&&"HEAD"!==n?s.body=JSON.stringify(e):delete s.body,fetch(t,s).then((t=>t.ok?t.json():t.json().then((n=>{a({status:t.status,statusText:t.statusText,code:n.code||"UNKNOWN_ERROR",message:n.message||"An unknown error occurred",data:n.data||null})}),(()=>a({status:t.status,statusText:t.statusText,code:"PARSE_ERROR",message:"Failed to parse error response"}))))).then((t=>i(t)),(t=>a(t)))}))}function mt(t,n){return null==t||""===t||(0!==t||!n)&&(Array.isArray(t)?function(t){if(0===t.length)return!0;const n=t.length;let e=0;for(let r=0;r<n;r++){if(!mt(t[r]))return!1;e++}return e===n}(t):"[object Object]"===Object.prototype.toString.call(t)?function(t){if(0===Object.keys(t).length)return!0;const n=Object.keys(t).length;let e=0;for(const n of Object.values(t)){if(!mt(n))return!1;e++}return e===n}(t):!t)}function vt(t){var n;if(0===t)return"0";if(!t)return"";const e=(t=t.toString()).split(".");return e[0]=null===(n=e[0])||void 0===n?void 0:n.replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}const wt=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));function gt(t){var n;return bt(null===(n=t.winningNumbers[0])||void 0===n?void 0:n.poolGameOutcomes)}function yt(t){const n=t.selection.map((t=>t.poolGameSelections));return bt(null==n?void 0:n[0])}function bt(t){return t&&t.length>0?t.map((t=>null==t?void 0:t[0])):[[]]}function pt(t){const n=et(t),e=n.getDate(),r=nt(n,"EEEE"),i=nt(n,"MMMM"),a=function(t){const n=t%100;if(n>=11&&n<=13)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(e);return`${r} ${e}${a} ${i}`}async function xt({endpoint:t,filterData:n,sessionId:e}){try{const{items:r=[],total:i}=await ft(`${t}/tickets${function(t){const n={};Object.entries(t).forEach((([t,e])=>{mt(e,!0)||(n[t]=e)}));const e=Object.entries(n).map((([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`)).join("&");return e?`?${e}`:""}(n)}`,"GET",null,{Authorization:`Bearer ${e}`});return{dataSource:r,total:i}}catch(t){if(401===t.status)return Promise.reject(new Error(`${t.statusText||"Unauthorized"}, please login`))}}async function Dt({endpoint:t,gameId:n,drawId:e}){try{return await ft(`${t}/games/${n}/draws/${e}`,"GET",{})||{}}catch(t){console.log(t)}}async function Mt({endpoint:t,gameId:n,drawResults:e}){const r=e.map((t=>t.drawId));for(let i=0;i<r.length;i++){const a=await Dt({endpoint:t,gameId:n,drawId:r[i]});e[i].tempDrawData=a,e[i].prizeDetails=kt(e[i].details)}return e}function kt(t){const n=new Map;t.forEach((t=>{let e=t.divisionDisplayName,r=t.amount,i=t.currency;e&&"None"!=e&&(n.has(e)?n.set(e,{amount:n.get(e).amount+r,currency:i,times:n.get(e).times+1}):n.set(e,{amount:r,currency:i,times:1}))}));const e=[];for(let[t,r]of n.entries())e.push({prizeName:t,amount:r.amount,currency:r.currency,times:r.times});return e.sort(((t,n)=>n.prizeName.localeCompare(t.prizeName))),e}const St=["ro","en","fr","ar","hr"],Tt={en:{win:"Win",lose:"Lose",normal:"Normal",subscription:"Subscription",syndicate:"Syndicate",ticketResult:"Ticket Result:",drawId:"Draw ID:",drawDate:"Draw Date:",result:"Result:",prize:"Prize:",bettingType:"Betting Type:",seeDetails:"See Details",noData:"No data Avaliable.",ticketId:"Ticket ID:",ticketType:"Ticket Type:",ticketAmount:"Ticket Amount:",lineDetail:"Line Detail:",numberOfDraw:"Number of Draw:",filter:"Filter",clear:"Clear",perPage:"1",searchByTicketId:"Search by Ticket ID",enterTicketId:"Enter Ticket ID",searchByTicketType:"Search by Ticket Type",selectTicketType:"Select Ticket Type",searchByDate:"Search by Date",from:"From",to:"To",ticketsHistory:"Tickets History",settled:"Settled",purchased:"Purchased",canceled:"Canceled",pleaseSelectADate:"Please select a date"}},Et=(t,n,e)=>{const r=n;let i=Tt[void 0!==r&&St.includes(r)?r:"en"][t];return e&&Object.keys(e).forEach((t=>{i=null==i?void 0:i.replace(`{${t}}`,e[t])})),i},Nt=async t=>{if(t)try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const r=await e.json();n=r,Object.keys(n).forEach((t=>{for(let e in n[t])Tt[t][e]=n[t][e]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var n},Pt=class{constructor(n){t(this,n),this.handlePageSizeChange=t=>{this.filterData.limit=t.detail,this.filterData.offset=0,this.fetchTicketList()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.endpoint=void 0,this.gameId=void 0,this.playerId=void 0,this.sessionId="",this.isLoading=!1,this.errorConfig={isError:!1},this.filterData={offset:0,limit:10,vendorGameType:a.PoolGame,vendorGameBettingObject:o.Oddsbomben},this.ticketHistoryRes={dataSource:[],total:0}}handleClientStylingChange(t,n){t!==n&&e(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,n){t!==n&&r(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,n){t!==n&&i(this.stylingContainer,`${this.mbSource}.Style`)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&i(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&e(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&r(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentWillLoad(){this.fetchTicketList()}async fetchTicketList(){if(this.endpoint&&this.sessionId)try{this.isLoading=!0;const t=await xt({endpoint:this.endpoint,filterData:this.filterData,sessionId:this.sessionId});this.ticketHistoryRes=t}catch(t){this.errorConfig={isError:!0,message:t.message||t.msg}}finally{this.isLoading=!1}else console.error("endpoint and sessionId are required")}renderError(){return n("div",{class:"error-red text-center mt-12"},this.errorConfig.message)}handleFilterChange(t){this.filterData=Object.assign({},{offset:this.filterData.offset,limit:this.filterData.limit,vendorGameType:this.filterData.vendorGameType,vendorGameBettingObject:this.filterData.vendorGameBettingObject},t.detail),this.fetchTicketList()}handlePageChange(t){this.filterData.offset=(t.detail-1)*this.filterData.limit,this.fetchTicketList()}render(){var t,e;return n("div",{key:"719a01651d21198644d4ace48e8b304e7165ab76",ref:t=>this.stylingContainer=t,class:"lottery-oddsbom-ticket-history-container"},n("div",{key:"3086e38de3068a0af5da6ef631e657a2a460f774",class:"lottery-oddsbom-ticket-history-wrapper"},n("div",{key:"6c06470b63b983ad75a400d49ae72c6becb25243",class:"lottery-oddsbom-ticket-history-container__title"},Et("ticketsHistory",this.language)),n("filter-group",{key:"225778b4daa5adf2f508a8d3c8590f6802669488",language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,onFilterChange:this.handleFilterChange.bind(this)}),this.errorConfig.isError?this.renderError():n("history-list",{language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,"game-id":this.gameId,endpoint:this.endpoint,"is-loading":this.isLoading,"default-ticket-history":JSON.stringify((null===(t=this.ticketHistoryRes)||void 0===t?void 0:t.dataSource)||[])}),n("div",{key:"0cfa07e6daab06253e2bd1d570dea052547fbbb0",class:"pagination-wrap"},n("general-pagination",{key:"d2025ebae912d339ba35c6df5ed3c68d5031201d",total:(null===(e=this.ticketHistoryRes)||void 0===e?void 0:e.total)||0,language:this.language,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl,onPageChange:this.handlePageChange.bind(this),onPageSizeChange:this.handlePageSizeChange.bind(this)}))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};Pt.style="@keyframes skeleton-loading {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n.lottery-oddsbom-ticket-history-container {\n container-type: inline-size;\n container-name: myContainer;\n color: var(--emw--color-typography, #000);\n background-color: var(--emw--color-background, #fff);\n height: 100%;\n width: 100%;\n}\n.lottery-oddsbom-ticket-history-container .lottery-oddsbom-ticket-history-wrapper {\n padding: 12px;\n margin: 0 auto;\n max-width: 800px;\n background-color: var(--emw--color-background, #fff);\n}\n.lottery-oddsbom-ticket-history-container__title {\n margin: 20px 0;\n text-align: center;\n font-size: 20px;\n font-weight: 700;\n color: var(--emw--color-typography, #000);\n}\n.lottery-oddsbom-ticket-history-container .pagination-wrap {\n margin-top: 20px;\n display: flex;\n justify-content: flex-end;\n}\n\n.pagination-wrap {\n margin-top: 20px;\n display: flex;\n justify-content: flex-end;\n}\n\n@container myContainer (min-width: 1200px) {\n .lottery-oddsbom-ticket-history-wrapper {\n padding: 24px;\n margin: 0 auto;\n }\n}\n@container myContainer (max-width: 480px) {\n .lottery-oddsbom-ticket-history-wrapper {\n padding: 2px;\n }\n .lottery-oddsbom-ticket-history-container .filter-wrap .filter-status {\n gap: 4px;\n }\n}\n.error-red {\n color: var(--emw--color-error, red);\n}\n\n.text-center {\n text-align: center;\n}\n\n.mt-12 {\n margin-top: 48px;\n}";export{s as D,Pt as L,r as a,i as b,lt as c,gt as d,Mt as e,pt as f,yt as g,nt as h,wt as i,vt as j,et as p,Nt as r,e as s,Et as t}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as l,b as e}from"./index-e66667d7.js";export{s as setNonce}from"./index-e66667d7.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),l(n)})().then((async l=>(await n(),e([["filter-group_9",[[1,"lottery-oddsbom-ticket-history",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],endpoint:[513],
|
|
1
|
+
import{p as l,b as e}from"./index-e66667d7.js";export{s as setNonce}from"./index-e66667d7.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),l(n)})().then((async l=>(await n(),e([["filter-group_9",[[1,"lottery-oddsbom-ticket-history",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],endpoint:[513],gameId:[513,"game-id"],playerId:[514,"player-id"],sessionId:[513,"session-id"],isLoading:[32],errorConfig:[32],filterData:[32],ticketHistoryRes:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"history-list",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],endpoint:[513],gameId:[513,"game-id"],defaultTicketHistory:[513,"default-ticket-history"],isLoading:[516,"is-loading"],dialogVisible:[32],dialogData:[32],ticketHistory:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],defaultTicketHistory:["handleDefaultTicketHistoryChange"]}],[1,"filter-group",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],statusOptions:[32],ticketTypeList:[32],filterParams:[32],isOpen:[32],invalid:[32],maxFrom:[32],minTo:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"general-pagination",{total:[2],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],current:[32],pageSize:[32],totalPages:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],total:["updateTotalPages"],pageSize:["updateTotalPages"]}],[1,"lottery-oddsbom-ticket-result",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],sessionId:[513,"session-id"],endpoint:[513],gameId:[513,"game-id"],drawId:[513,"draw-id"],defaultResults:[513,"default-results"],splitView:[516,"split-view"],allResults:[32],ticketBetDataSource:[32],isLoading:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],gameId:["fetchMatchData"],drawId:["fetchMatchData"],defaultResults:["fetchMatchData"]}],[1,"general-multi-select",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],options:[16],maxVisibleChips:[2,"max-visible-chips"],placeholder:[1],selectedValues:[32],dropdownOpen:[32],overflowOpen:[32],popoverStyle:[32],clear:[64]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"general-panel",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],headerTitle:[1,"header-title"],expanded:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-oddsbom-bullet",{isSelected:[516,"is-selected"],disabled:[516],text:[513],idx:[514],isReading:[516,"is-reading"],isDeleteByIcon:[516,"is-delete-by-icon"],isCallDialogBtn:[516,"is-call-dialog-btn"],isAddedByMoreBtn:[516,"is-added-by-more-btn"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{mbSource:[1,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],visible:[516],dialogTitle:[1,"dialog-title"],width:[1],closable:[4],mask:[4],maskClosable:[4,"mask-closable"],animationDuration:[2,"animation-duration"],fullscreen:[4],showFooter:[4,"show-footer"],showCancelBtn:[4,"show-cancel-btn"],language:[513],translationUrl:[520,"translation-url"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}]]]],l))));
|
|
@@ -107,10 +107,6 @@ export namespace Components {
|
|
|
107
107
|
*/
|
|
108
108
|
"clientStylingUrl": string;
|
|
109
109
|
"endpoint": string;
|
|
110
|
-
/**
|
|
111
|
-
* EndpointTicket URL for the source of ticket data
|
|
112
|
-
*/
|
|
113
|
-
"endpointTicket": string;
|
|
114
110
|
/**
|
|
115
111
|
* GameID of the lottery game
|
|
116
112
|
*/
|
|
@@ -326,10 +322,6 @@ declare namespace LocalJSX {
|
|
|
326
322
|
*/
|
|
327
323
|
"clientStylingUrl"?: string;
|
|
328
324
|
"endpoint"?: string;
|
|
329
|
-
/**
|
|
330
|
-
* EndpointTicket URL for the source of ticket data
|
|
331
|
-
*/
|
|
332
|
-
"endpointTicket"?: string;
|
|
333
325
|
/**
|
|
334
326
|
* GameID of the lottery game
|
|
335
327
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DrawResultItem, TicketHistoryRes } from '../models';
|
|
2
|
-
export declare function fetchTicketList({
|
|
3
|
-
|
|
2
|
+
export declare function fetchTicketList({ endpoint, filterData, sessionId }: {
|
|
3
|
+
endpoint: string;
|
|
4
4
|
filterData: Record<string, any>;
|
|
5
5
|
sessionId: string;
|
|
6
6
|
}): Promise<TicketHistoryRes>;
|