@everymatrix/casino-wagering-bonuses-controller 1.7.2 → 1.7.3

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.
@@ -60,7 +60,7 @@ n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(e,t){
60
60
  const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const Z=e=>K[e]
61
61
  /* eslint-disable quote-props */,K={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"};
62
62
  /* ../casino-wagering-bonus-progress/src/CasinoWageringBonusProgress.svelte generated by Svelte v3.48.0 */
63
- function W(n){let r,o,i,s,a,l,c,u=[{class:"ring",r:/*radius*/n[2],cx:/*center*/n[7],cy:/*center*/n[7],"stroke-width":`${/*ringStrokeWidth*/n[4]}px`}],d={};for(let e=0;e<u.length;e+=1)d=t(d,u[e]);let g=[{class:"ring ring-progress "+(/*status*/n[1]===/*BonusStatus*/n[5].InProgress?"active":""),r:/*radius*/n[2],cx:/*center*/n[7],cy:/*center*/n[7],"stroke-width":`${/*ringStrokeWidth*/n[4]}px`,"stroke-dasharray":`${/*circumference*/n[6]} ${/*circumference*/n[6]}`,"stroke-dashoffset":/*circumference*/n[6]-Number(/*percent*/n[0])/100*/*circumference*/n[6]}],y={};for(let e=0;e<g.length;e+=1)y=t(y,g[e]);let v=[{class:"center "+(/*status*/n[1]===/*BonusStatus*/n[5].InProgress?"active":""),r:/*radius*/n[2]-/*ringStrokeWidth*/n[4]/2-3,cx:/*center*/n[7],cy:/*center*/n[7]}],E={};for(let e=0;e<v.length;e+=1)E=t(E,v[e]);let C=[{x:/*center*/n[7],y:/*center*/n[7]}],w={};for(let e=0;e<C.length;e+=1)w=t(w,C[e]);let B=[{width:/*size*/n[3],height:/*size*/n[3]}],S={};for(let e=0;e<B.length;e+=1)S=t(S,B[e]);return{c(){r=m("svg"),o=m("circle"),i=m("circle"),s=m("circle"),a=m("text"),l=b(/*percent*/n[0]),c=b("%"),this.c=e,T(o,d),T(i,y),T(s,E),T(a,w),T(r,S)},m(e,t){p(e,r,t),h(r,o),h(r,i),h(r,s),h(r,a),h(a,l),h(a,c)},p(e,[t]){T(o,d=F(u,[/*radius, center, ringStrokeWidth*/148&t&&{class:"ring",r:/*radius*/e[2],cx:/*center*/e[7],cy:/*center*/e[7],"stroke-width":`${/*ringStrokeWidth*/e[4]}px`}])),T(i,y=F(g,[/*status, BonusStatus, radius, center, ringStrokeWidth, circumference, percent*/247&t&&{class:"ring ring-progress "+(/*status*/e[1]===/*BonusStatus*/e[5].InProgress?"active":""),r:/*radius*/e[2],cx:/*center*/e[7],cy:/*center*/e[7],"stroke-width":`${/*ringStrokeWidth*/e[4]}px`,"stroke-dasharray":`${/*circumference*/e[6]} ${/*circumference*/e[6]}`,"stroke-dashoffset":/*circumference*/e[6]-Number(/*percent*/e[0])/100*/*circumference*/e[6]}])),T(s,E=F(v,[/*status, BonusStatus, radius, ringStrokeWidth, center*/182&t&&{class:"center "+(/*status*/e[1]===/*BonusStatus*/e[5].InProgress?"active":""),r:/*radius*/e[2]-/*ringStrokeWidth*/e[4]/2-3,cx:/*center*/e[7],cy:/*center*/e[7]}])),/*percent*/1&t&&A(l,/*percent*/e[0]),T(a,w=F(C,[/*center*/128&t&&{x:/*center*/e[7],y:/*center*/e[7]}])),T(r,S=F(B,[/*size*/8&t&&{width:/*size*/e[3],height:/*size*/e[3]}]))},i:e,o:e,d(e){e&&f(r)}}}function X(e,t,n){let r,o,i,s,a,{percent:l=""}=t,{status:c=""}=t;var u;return function(e){e.BeforeClaimed="BeforeClaimed",e.InProgress="active",e.ForfeitedOrCompleted="ForfeitedOrCompleted"}(u||(u={})),e.$$set=e=>{"percent"in e&&n(0,l=e.percent),"status"in e&&n(1,c=e.status)},e.$$.update=()=>{/*size*/8&e.$$.dirty&&n(4,o=r/7.5),/*size, ringStrokeWidth*/24&e.$$.dirty&&n(2,i=r/2-o/2),/*size*/8&e.$$.dirty&&n(7,s=r/2),/*radius*/4&e.$$.dirty&&n(6,a=2*i*Math.PI)},n(3,r=200),[l,c,i,r,o,u,a,s]}!customElements.get("casino-wagering-bonus-progress")&&customElements.define("casino-wagering-bonus-progress",class extends j{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}text{fill:#FFFFFF;text-anchor:middle;dominant-baseline:middle;font-style:normal;font-weight:700;font-size:36px}circle.ring{stroke:#F2F4F6;fill:transparent}circle.ring-progress{transition:0.35s stroke-dashoffset;stroke:#C4C4C4;transform:rotate(-90deg);transform-origin:50% 50%}circle.ring-progress.active{stroke:#00AEEF}circle.center{fill:#C4C4C4}circle.center.active{fill:#00AEEF}</style>',V(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},X,W,s,{percent:0,status:1},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),D()))}static get observedAttributes(){return["percent","status"]}get percent(){return this.$$.ctx[0]}set percent(e){this.$$set({percent:e}),D()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),D()}});var z="data:image/svg+xml,%3csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cg clip-path='url(%23clip0_3490_338)'%3e %3cpath d='M12.5 0C5.60762 0 0 5.60762 0 12.5C0 19.3924 5.60762 25 12.5 25C19.3924 25 25 19.3924 25 12.5C25 5.60762 19.3924 0 12.5 0ZM12.5 23.4375C6.46896 23.4375 1.56251 18.531 1.56251 12.5C1.56251 6.46896 6.46896 1.56251 12.5 1.56251C18.531 1.56251 23.4375 6.46896 23.4375 12.5C23.4375 18.531 18.531 23.4375 12.5 23.4375V23.4375Z' fill='%2300AEEF'/%3e %3cpath d='M13.2813 4.6875H11.7188V12.8235L16.6351 17.7398L17.7399 16.6351L13.2813 12.1765V4.6875Z' fill='%2300AEEF'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_3490_338'%3e %3crect width='25' height='25' fill='white'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e",Y="data:image/svg+xml,%3csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cg clip-path='url(%23clip0_3490_347)'%3e %3cpath d='M12.5002 7.5C11.5797 7.5 10.8335 8.2462 10.8335 9.16667V23.3333C10.8335 24.2538 11.5797 25 12.5002 25C13.4206 25 14.1668 24.2538 14.1668 23.3333V9.16667C14.1668 8.2462 13.4206 7.5 12.5002 7.5ZM13.3335 23.3333C13.3335 23.7936 12.9604 24.1667 12.5002 24.1667C12.0399 24.1667 11.6668 23.7936 11.6668 23.3333V9.16667C11.6668 8.70641 12.0399 8.33333 12.5002 8.33333C12.9604 8.33333 13.3335 8.70641 13.3335 9.16667V23.3333Z' fill='%2300AEEF'/%3e %3cpath d='M7.08317 12.5C6.1627 12.5 5.4165 13.2462 5.4165 14.1667V23.3333C5.4165 24.2538 6.1627 25 7.08317 25C8.00364 25 8.74984 24.2538 8.74984 23.3333V14.1667C8.74984 13.2462 8.00364 12.5 7.08317 12.5ZM7.9165 23.3333C7.9165 23.7936 7.54343 24.1667 7.08317 24.1667C6.62291 24.1667 6.24984 23.7936 6.24984 23.3333V14.1667C6.24984 13.7064 6.62291 13.3333 7.08317 13.3333C7.54343 13.3333 7.9165 13.7064 7.9165 14.1667V23.3333Z' fill='%2300AEEF'/%3e %3cpath d='M1.66667 18.333C0.746198 18.333 0 19.0792 0 19.9997V23.333C0 24.2535 0.746198 24.9997 1.66667 24.9997C2.58714 24.9997 3.33333 24.2535 3.33333 23.333V19.9997C3.33333 19.0792 2.58714 18.333 1.66667 18.333ZM2.5 23.333C2.5 23.7933 2.12693 24.1663 1.66667 24.1663C1.20641 24.1663 0.833333 23.7933 0.833333 23.333V19.9997C0.833333 19.5394 1.20641 19.1663 1.66667 19.1663C2.12693 19.1663 2.5 19.5394 2.5 19.9997V23.333Z' fill='%2300AEEF'/%3e %3cpath d='M17.9167 2.5C16.9962 2.5 16.25 3.2462 16.25 4.16667V23.3333C16.25 24.2538 16.9962 25 17.9167 25C18.8371 25 19.5833 24.2538 19.5833 23.3333V4.16667C19.5833 3.2462 18.8371 2.5 17.9167 2.5ZM18.75 23.3333C18.75 23.7936 18.3769 24.1667 17.9167 24.1667C17.4564 24.1667 17.0833 23.7936 17.0833 23.3333V4.16667C17.0833 3.70641 17.4564 3.33333 17.9167 3.33333C18.3769 3.33333 18.75 3.70641 18.75 4.16667V23.3333Z' fill='%2300AEEF'/%3e %3cpath d='M23.3332 0C22.4127 0 21.6665 0.746198 21.6665 1.66667V23.3333C21.6665 24.2538 22.4127 25 23.3332 25C24.2536 25 24.9998 24.2538 24.9998 23.3333V1.66667C24.9998 0.746198 24.2536 0 23.3332 0ZM24.1665 23.3333C24.1665 23.7936 23.7934 24.1667 23.3332 24.1667C22.8729 24.1667 22.4998 23.7936 22.4998 23.3333V1.66667C22.4998 1.20641 22.8729 0.833333 23.3332 0.833333C23.7934 0.833333 24.1665 1.20641 24.1665 1.66667V23.3333Z' fill='%2300AEEF'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_3490_347'%3e %3crect width='25' height='25' fill='white'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e";const J=(e,t)=>({remainder:e%t,quotient:Math.floor(e/t)}),q=e=>{const t=new Date;return new Date(e).getTime()-t.getTime()},Q=e=>{const t=q(e)/6e4,{quotient:n,remainder:r}=J(t,1440),{quotient:o,remainder:i}=J(r,60),s=Math.floor(i);return[{value:n,symbol:"d"},{value:o,symbol:"h"},{value:s,symbol:"m"}].map((e=>{return t=e.value,(Math.abs(t)<10?`0${t}`:t)+e.symbol;var t})).join(" ")},ee=(e,t="")=>({part:e,class:[e,t].join(" ")}),te=async(e,t={})=>{let n;return n=await fetch(e,t),n=await n.json(),n};
63
+ function W(n){let r,o,i,s,a,l,c,u=[{class:"ring",r:/*radius*/n[2],cx:/*center*/n[7],cy:/*center*/n[7],"stroke-width":`${/*ringStrokeWidth*/n[4]}px`}],d={};for(let e=0;e<u.length;e+=1)d=t(d,u[e]);let g=[{class:"ring ring-progress "+(/*status*/n[1]===/*BonusStatus*/n[5].InProgress?"active":""),r:/*radius*/n[2],cx:/*center*/n[7],cy:/*center*/n[7],"stroke-width":`${/*ringStrokeWidth*/n[4]}px`,"stroke-dasharray":`${/*circumference*/n[6]} ${/*circumference*/n[6]}`,"stroke-dashoffset":/*circumference*/n[6]-Number(/*percent*/n[0])/100*/*circumference*/n[6]}],y={};for(let e=0;e<g.length;e+=1)y=t(y,g[e]);let v=[{class:"center "+(/*status*/n[1]===/*BonusStatus*/n[5].InProgress?"active":""),r:/*radius*/n[2]-/*ringStrokeWidth*/n[4]/2-3,cx:/*center*/n[7],cy:/*center*/n[7]}],E={};for(let e=0;e<v.length;e+=1)E=t(E,v[e]);let C=[{x:/*center*/n[7],y:/*center*/n[7]}],w={};for(let e=0;e<C.length;e+=1)w=t(w,C[e]);let B=[{width:/*size*/n[3],height:/*size*/n[3]}],S={};for(let e=0;e<B.length;e+=1)S=t(S,B[e]);return{c(){r=m("svg"),o=m("circle"),i=m("circle"),s=m("circle"),a=m("text"),l=b(/*percent*/n[0]),c=b("%"),this.c=e,T(o,d),T(i,y),T(s,E),T(a,w),T(r,S)},m(e,t){p(e,r,t),h(r,o),h(r,i),h(r,s),h(r,a),h(a,l),h(a,c)},p(e,[t]){T(o,d=F(u,[/*radius, center, ringStrokeWidth*/148&t&&{class:"ring",r:/*radius*/e[2],cx:/*center*/e[7],cy:/*center*/e[7],"stroke-width":`${/*ringStrokeWidth*/e[4]}px`}])),T(i,y=F(g,[/*status, BonusStatus, radius, center, ringStrokeWidth, circumference, percent*/247&t&&{class:"ring ring-progress "+(/*status*/e[1]===/*BonusStatus*/e[5].InProgress?"active":""),r:/*radius*/e[2],cx:/*center*/e[7],cy:/*center*/e[7],"stroke-width":`${/*ringStrokeWidth*/e[4]}px`,"stroke-dasharray":`${/*circumference*/e[6]} ${/*circumference*/e[6]}`,"stroke-dashoffset":/*circumference*/e[6]-Number(/*percent*/e[0])/100*/*circumference*/e[6]}])),T(s,E=F(v,[/*status, BonusStatus, radius, ringStrokeWidth, center*/182&t&&{class:"center "+(/*status*/e[1]===/*BonusStatus*/e[5].InProgress?"active":""),r:/*radius*/e[2]-/*ringStrokeWidth*/e[4]/2-3,cx:/*center*/e[7],cy:/*center*/e[7]}])),/*percent*/1&t&&A(l,/*percent*/e[0]),T(a,w=F(C,[/*center*/128&t&&{x:/*center*/e[7],y:/*center*/e[7]}])),T(r,S=F(B,[/*size*/8&t&&{width:/*size*/e[3],height:/*size*/e[3]}]))},i:e,o:e,d(e){e&&f(r)}}}function X(e,t,n){let r,o,i,s,a,{percent:l=""}=t,{status:c=""}=t;var u;return function(e){e.BeforeClaimed="BeforeClaimed",e.InProgress="active",e.ForfeitedOrCompleted="ForfeitedOrCompleted"}(u||(u={})),e.$$set=e=>{"percent"in e&&n(0,l=e.percent),"status"in e&&n(1,c=e.status)},e.$$.update=()=>{/*size*/8&e.$$.dirty&&n(4,o=r/7.5),/*size, ringStrokeWidth*/24&e.$$.dirty&&n(2,i=r/2-o/2),/*size*/8&e.$$.dirty&&n(7,s=r/2),/*radius*/4&e.$$.dirty&&n(6,a=2*i*Math.PI)},n(3,r=200),[l,c,i,r,o,u,a,s]}!customElements.get("casino-wagering-bonus-progress")&&customElements.define("casino-wagering-bonus-progress",class extends j{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}text{fill:#FFFFFF;text-anchor:middle;dominant-baseline:middle;font-style:normal;font-weight:700;font-size:36px}circle.ring{stroke:#F2F4F6;fill:transparent}circle.ring-progress{transition:0.35s stroke-dashoffset;stroke:#C4C4C4;transform:rotate(-90deg);transform-origin:50% 50%}circle.ring-progress.active{stroke:#00AEEF}circle.center{fill:#C4C4C4}circle.center.active{fill:#00AEEF}</style>",V(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},X,W,s,{percent:0,status:1},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),D()))}static get observedAttributes(){return["percent","status"]}get percent(){return this.$$.ctx[0]}set percent(e){this.$$set({percent:e}),D()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),D()}});var z="data:image/svg+xml,%3csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cg clip-path='url(%23clip0_3490_338)'%3e %3cpath d='M12.5 0C5.60762 0 0 5.60762 0 12.5C0 19.3924 5.60762 25 12.5 25C19.3924 25 25 19.3924 25 12.5C25 5.60762 19.3924 0 12.5 0ZM12.5 23.4375C6.46896 23.4375 1.56251 18.531 1.56251 12.5C1.56251 6.46896 6.46896 1.56251 12.5 1.56251C18.531 1.56251 23.4375 6.46896 23.4375 12.5C23.4375 18.531 18.531 23.4375 12.5 23.4375V23.4375Z' fill='%2300AEEF'/%3e %3cpath d='M13.2813 4.6875H11.7188V12.8235L16.6351 17.7398L17.7399 16.6351L13.2813 12.1765V4.6875Z' fill='%2300AEEF'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_3490_338'%3e %3crect width='25' height='25' fill='white'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e",Y="data:image/svg+xml,%3csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cg clip-path='url(%23clip0_3490_347)'%3e %3cpath d='M12.5002 7.5C11.5797 7.5 10.8335 8.2462 10.8335 9.16667V23.3333C10.8335 24.2538 11.5797 25 12.5002 25C13.4206 25 14.1668 24.2538 14.1668 23.3333V9.16667C14.1668 8.2462 13.4206 7.5 12.5002 7.5ZM13.3335 23.3333C13.3335 23.7936 12.9604 24.1667 12.5002 24.1667C12.0399 24.1667 11.6668 23.7936 11.6668 23.3333V9.16667C11.6668 8.70641 12.0399 8.33333 12.5002 8.33333C12.9604 8.33333 13.3335 8.70641 13.3335 9.16667V23.3333Z' fill='%2300AEEF'/%3e %3cpath d='M7.08317 12.5C6.1627 12.5 5.4165 13.2462 5.4165 14.1667V23.3333C5.4165 24.2538 6.1627 25 7.08317 25C8.00364 25 8.74984 24.2538 8.74984 23.3333V14.1667C8.74984 13.2462 8.00364 12.5 7.08317 12.5ZM7.9165 23.3333C7.9165 23.7936 7.54343 24.1667 7.08317 24.1667C6.62291 24.1667 6.24984 23.7936 6.24984 23.3333V14.1667C6.24984 13.7064 6.62291 13.3333 7.08317 13.3333C7.54343 13.3333 7.9165 13.7064 7.9165 14.1667V23.3333Z' fill='%2300AEEF'/%3e %3cpath d='M1.66667 18.333C0.746198 18.333 0 19.0792 0 19.9997V23.333C0 24.2535 0.746198 24.9997 1.66667 24.9997C2.58714 24.9997 3.33333 24.2535 3.33333 23.333V19.9997C3.33333 19.0792 2.58714 18.333 1.66667 18.333ZM2.5 23.333C2.5 23.7933 2.12693 24.1663 1.66667 24.1663C1.20641 24.1663 0.833333 23.7933 0.833333 23.333V19.9997C0.833333 19.5394 1.20641 19.1663 1.66667 19.1663C2.12693 19.1663 2.5 19.5394 2.5 19.9997V23.333Z' fill='%2300AEEF'/%3e %3cpath d='M17.9167 2.5C16.9962 2.5 16.25 3.2462 16.25 4.16667V23.3333C16.25 24.2538 16.9962 25 17.9167 25C18.8371 25 19.5833 24.2538 19.5833 23.3333V4.16667C19.5833 3.2462 18.8371 2.5 17.9167 2.5ZM18.75 23.3333C18.75 23.7936 18.3769 24.1667 17.9167 24.1667C17.4564 24.1667 17.0833 23.7936 17.0833 23.3333V4.16667C17.0833 3.70641 17.4564 3.33333 17.9167 3.33333C18.3769 3.33333 18.75 3.70641 18.75 4.16667V23.3333Z' fill='%2300AEEF'/%3e %3cpath d='M23.3332 0C22.4127 0 21.6665 0.746198 21.6665 1.66667V23.3333C21.6665 24.2538 22.4127 25 23.3332 25C24.2536 25 24.9998 24.2538 24.9998 23.3333V1.66667C24.9998 0.746198 24.2536 0 23.3332 0ZM24.1665 23.3333C24.1665 23.7936 23.7934 24.1667 23.3332 24.1667C22.8729 24.1667 22.4998 23.7936 22.4998 23.3333V1.66667C22.4998 1.20641 22.8729 0.833333 23.3332 0.833333C23.7934 0.833333 24.1665 1.20641 24.1665 1.66667V23.3333Z' fill='%2300AEEF'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_3490_347'%3e %3crect width='25' height='25' fill='white'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e";const J=(e,t)=>({remainder:e%t,quotient:Math.floor(e/t)}),q=e=>{const t=new Date;return new Date(e).getTime()-t.getTime()},Q=e=>{const t=q(e)/6e4,{quotient:n,remainder:r}=J(t,1440),{quotient:o,remainder:i}=J(r,60),s=Math.floor(i);return[{value:n,symbol:"d"},{value:o,symbol:"h"},{value:s,symbol:"m"}].map((e=>{return t=e.value,(Math.abs(t)<10?`0${t}`:t)+e.symbol;var t})).join(" ")},ee=(e,t="")=>({part:e,class:[e,t].join(" ")}),te=async(e,t={})=>{let n;return n=await fetch(e,t),n=await n.json(),n};
64
64
  /******************************************************************************
65
65
  Copyright (c) Microsoft Corporation.
66
66
 
@@ -736,7 +736,7 @@ g[t](r)}}))}catch(e){console.error(e)}});var g;const m=async()=>{c&&a&&o&&i&&r&&
736
736
  // }else{
737
737
  // bonuses = _bonuses
738
738
  // }
739
- ge(u,d),a===oe.active&&(u=me(r,i,h,d))):n(7,f=e.errorMessage)})(),n(6,p=!1))};de({OnWageringBonusClaimed:()=>m(),OnWageringBonusExpired:()=>m()}),H((()=>()=>ge(u,d)));return e.$$set=e=>{"endpoint"in e&&n(1,r=e.endpoint),"lang"in e&&n(2,o=e.lang),"session"in e&&n(3,i=e.session),"currency"in e&&n(4,s=e.currency),"status"in e&&n(0,a=e.status),"limit"in e&&n(9,l=e.limit)},e.$$.update=()=>{/*isMounted*/1024&e.$$.dirty&&c&&m(),/*endpoint*/2&e.$$.dirty&&r&&m(),/*lang*/4&e.$$.dirty&&o&&m(),/*session*/8&e.$$.dirty&&i&&m()},[a,r,o,i,s,h,p,f,m,l,c,e=>{a!==oe[e]&&(n(0,a=oe[e]),m())}]}vr="casino-wagering-bonus",Er=class extends j{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:24px;line-height:28px;font-style:normal}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{font-size:24px;line-height:28px}hr{margin:18px 0;border-top:1px solid #00AEEF}section.layout-horizental{display:flex;flex-direction:row}section.layout-horizental.space-between{justify-content:space-between}.title{font-weight:700}.terms{font-size:18px;line-height:21px}.icon{width:24px;height:24px;vertical-align:bottom}.Root{border:1px solid #00AEEF;max-width:1300px;padding:28px 0}.Root>div{padding:0 28px}.Root>div:nth-child(1){flex:55%}.Root>div:nth-child(2){flex:45%;border-left:1px solid #00AEEF}.BonusInfoTitle{color:#59CA00}.BonusInfoExpireDate{color:#DC0D1F}.BonusInfoDescription{margin-top:20px}.StatusClaimableInfoPeriod{margin-top:18px}.StatusClaimable>div:nth-child(1){flex:40%}.StatusClaimable>div:nth-child(2){flex:60%}.StatusClaimableCommand button{width:100%;background:#00AEEF;border:1px solid #00AEEF;color:#FFFFFF;cursor:pointer;font-weight:400;padding:30px;transition:0.6s}.StatusClaimableCommand button:disabled{opacity:0.3}.StatusClaimableCommandTerms{margin-top:10px;text-align:center}.StatusClaimableCommandTerms a{color:#000000}.LevelStatus{text-align:center;margin-top:10px}.BonusTypeWrapper{margin-left:30px}.BonusType>div{margin-bottom:20px}.BonusTypeRemaining{color:#00AEEF}.BonusTypeGot{color:#7884A0}.RewardsTopBarTitle{color:#252631;padding-bottom:12px}.BonusRewardsLevels>div{margin-top:5px;padding:12px 0}.BonusRewardsLevelsItem{display:flex}.BonusRewardsLevelsItemPosition{margin-right:5px}.SupportsWrapper{margin-top:35px}.SupportsWrapper div{margin-top:15px}</style>',V(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},yr,gr,s,{rawbonus:12,endpoint:13,currency:14,lang:15,session:16,status:0},null,[-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),D()))}static get observedAttributes(){return["rawbonus","endpoint","currency","lang","session","status"]}get rawbonus(){return this.$$.ctx[12]}set rawbonus(e){this.$$set({rawbonus:e}),D()}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),D()}get currency(){return this.$$.ctx[14]}set currency(e){this.$$set({currency:e}),D()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),D()}get session(){return this.$$.ctx[16]}set session(e){this.$$set({session:e}),D()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),D()}},!customElements.get(vr)&&customElements.define(vr,Er);class Rr extends j{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}casino-wagering-bonus::part(Root){margin-bottom:30px}.WageringTabs{margin:20px 0}.WageringTabs li{display:inline;margin:10px 10px 10px 0;padding:10px;border:1px #ccc solid;cursor:pointer}.WageringTabs li.active{border-color:aquamarine;font-weight:700}</style>',V(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},Pr,Lr,s,{endpoint:1,lang:2,session:3,currency:4,status:0,limit:9},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),D()))}static get observedAttributes(){return["endpoint","lang","session","currency","status","limit"]}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),D()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),D()}get session(){return this.$$.ctx[3]}set session(e){this.$$set({session:e}),D()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),D()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),D()}get limit(){return this.$$.ctx[9]}set limit(e){this.$$set({limit:e}),D()}}
739
+ ge(u,d),a===oe.active&&(u=me(r,i,h,d))):n(7,f=e.errorMessage)})(),n(6,p=!1))};de({OnWageringBonusClaimed:()=>m(),OnWageringBonusExpired:()=>m()}),H((()=>()=>ge(u,d)));return e.$$set=e=>{"endpoint"in e&&n(1,r=e.endpoint),"lang"in e&&n(2,o=e.lang),"session"in e&&n(3,i=e.session),"currency"in e&&n(4,s=e.currency),"status"in e&&n(0,a=e.status),"limit"in e&&n(9,l=e.limit)},e.$$.update=()=>{/*isMounted*/1024&e.$$.dirty&&c&&m(),/*endpoint*/2&e.$$.dirty&&r&&m(),/*lang*/4&e.$$.dirty&&o&&m(),/*session*/8&e.$$.dirty&&i&&m()},[a,r,o,i,s,h,p,f,m,l,c,e=>{a!==oe[e]&&(n(0,a=oe[e]),m())}]}vr="casino-wagering-bonus",Er=class extends j{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size:24px;line-height:28px;font-style:normal}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{font-size:24px;line-height:28px}hr{margin:18px 0;border-top:1px solid #00AEEF}section.layout-horizental{display:flex;flex-direction:row}section.layout-horizental.space-between{justify-content:space-between}.title{font-weight:700}.terms{font-size:18px;line-height:21px}.icon{width:24px;height:24px;vertical-align:bottom}.Root{border:1px solid #00AEEF;max-width:1300px;padding:28px 0}.Root>div{padding:0 28px}.Root>div:nth-child(1){flex:55%}.Root>div:nth-child(2){flex:45%;border-left:1px solid #00AEEF}.BonusInfoTitle{color:#59CA00}.BonusInfoExpireDate{color:#DC0D1F}.BonusInfoDescription{margin-top:20px}.StatusClaimableInfoPeriod{margin-top:18px}.StatusClaimable>div:nth-child(1){flex:40%}.StatusClaimable>div:nth-child(2){flex:60%}.StatusClaimableCommand button{width:100%;background:#00AEEF;border:1px solid #00AEEF;color:#FFFFFF;cursor:pointer;font-weight:400;padding:30px;transition:0.6s}.StatusClaimableCommand button:disabled{opacity:0.3}.StatusClaimableCommandTerms{margin-top:10px;text-align:center}.StatusClaimableCommandTerms a{color:#000000}.LevelStatus{text-align:center;margin-top:10px}.BonusTypeWrapper{margin-left:30px}.BonusType>div{margin-bottom:20px}.BonusTypeRemaining{color:#00AEEF}.BonusTypeGot{color:#7884A0}.RewardsTopBarTitle{color:#252631;padding-bottom:12px}.BonusRewardsLevels>div{margin-top:5px;padding:12px 0}.BonusRewardsLevelsItem{display:flex}.BonusRewardsLevelsItemPosition{margin-right:5px}.SupportsWrapper{margin-top:35px}.SupportsWrapper div{margin-top:15px}</style>",V(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},yr,gr,s,{rawbonus:12,endpoint:13,currency:14,lang:15,session:16,status:0},null,[-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),D()))}static get observedAttributes(){return["rawbonus","endpoint","currency","lang","session","status"]}get rawbonus(){return this.$$.ctx[12]}set rawbonus(e){this.$$set({rawbonus:e}),D()}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),D()}get currency(){return this.$$.ctx[14]}set currency(e){this.$$set({currency:e}),D()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),D()}get session(){return this.$$.ctx[16]}set session(e){this.$$set({session:e}),D()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),D()}},!customElements.get(vr)&&customElements.define(vr,Er);class Rr extends j{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}casino-wagering-bonus::part(Root){margin-bottom:30px}.WageringTabs{margin:20px 0}.WageringTabs li{display:inline;margin:10px 10px 10px 0;padding:10px;border:1px #ccc solid;cursor:pointer}.WageringTabs li.active{border-color:aquamarine;font-weight:700}</style>",V(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},Pr,Lr,s,{endpoint:1,lang:2,session:3,currency:4,status:0,limit:9},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),D()))}static get observedAttributes(){return["endpoint","lang","session","currency","status","limit"]}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),D()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),D()}get session(){return this.$$.ctx[3]}set session(e){this.$$set({session:e}),D()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),D()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),D()}get limit(){return this.$$.ctx[9]}set limit(e){this.$$set({limit:e}),D()}}
740
740
  // @ts-ignore
741
741
  return!customElements.get("casino-wagering-bonuses-controller")&&customElements.define("casino-wagering-bonuses-controller",Rr),Rr}));
742
742
  //# sourceMappingURL=casino-wagering-bonuses-controller.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-wagering-bonuses-controller",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "main": "index.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "d38acb0f8e7dfbaadfc047558a121ec1d5f543f8"
39
+ "gitHead": "af607736d2fefc2fcb0fc155b2023fcd62806a5c"
40
40
  }