@everymatrix/user-deposit-withdrawal 1.13.11
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/index-3568d1cc.js +1111 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/user-deposit-withdrawal.cjs.entry.js +107 -0
- package/dist/cjs/user-deposit-withdrawal.cjs.js +19 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.css +5 -0
- package/dist/collection/components/user-deposit-withdrawal/user-deposit-withdrawal.js +368 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +1 -0
- package/dist/components/user-deposit-withdrawal.d.ts +11 -0
- package/dist/components/user-deposit-withdrawal.js +137 -0
- package/dist/esm/index-363130bb.js +1085 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/user-deposit-withdrawal.entry.js +103 -0
- package/dist/esm/user-deposit-withdrawal.js +17 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.js +22 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/stencil/widgets-stencil/packages/user-deposit-withdrawal/.stencil/packages/user-deposit-withdrawal/stencil.config.d.ts +2 -0
- package/dist/types/components/user-deposit-withdrawal/user-deposit-withdrawal.d.ts +50 -0
- package/dist/types/components.d.ts +68 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/user-deposit-withdrawal/index.esm.js +0 -0
- package/dist/user-deposit-withdrawal/p-05851c56.entry.js +1 -0
- package/dist/user-deposit-withdrawal/p-ed11cb75.js +1 -0
- package/dist/user-deposit-withdrawal/user-deposit-withdrawal.esm.js +1 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +19 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function format(first: string, middle: string, last: string): string;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,H as s}from"./p-ed11cb75.js";const o=()=>{},e=class{constructor(i){t(this,i),this.beforeRedirect=o,this.bindedHandler=this.handleMessage.bind(this)}get typeParameter(){return"deposit"===this.type?"Deposit":"withdraw"===this.type?"Withdraw":void 0}watchLoadWidget(){this.loadWidget()}async componentWillLoad(){await this.loadWidget()}componentDidLoad(){window.addEventListener("message",this.bindedHandler,!1)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1)}render(){return i(s,null,i("iframe",{width:"100%",height:"100%",src:this.cashierInfoUrl}))}async loadWidget(){const t={Channel:this.channel,Type:this.typeParameter,SuccessUrl:this.successUrl,CancelUrl:this.cancelUrl,FailUrl:this.failUrl,Language:this.language,productType:this.productType};try{const i=`${this.endpoint}v1/player/${this.userId}/payment/GetPaymentSession`,s=await fetch(i,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json"},body:JSON.stringify(t)});if(!s.ok){const t=await s.text();throw new Error(t)}const o=await s.json();this.cashierInfoUrl=o.CashierInfo.Url}catch(t){console.error(t)}}handleMessage(t){var i,s,o,e,h,a;"mm-hcback-to-merchant"===(null===(i=t.data)||void 0===i?void 0:i.type)&&this.doRedirect(t.data.type,this.homeUrl),"mm-hc-back-tomerchant"===(null===(s=t.data)||void 0===s?void 0:s.redirect)&&this.doRedirect(t.data.redirect,this.homeUrl),"mm-hc-sports"===(null===(o=t.data)||void 0===o?void 0:o.redirect)&&this.doRedirect(null===(e=t.data)||void 0===e?void 0:e.redirect,this.sportsUrl),"mm-hc-casino"===(null===(h=t.data)||void 0===h?void 0:h.redirect)&&this.doRedirect(window.location.href,this.casinoUrl),"mm-hc-contact"===(null===(a=t.data)||void 0===a?void 0:a.redirect)&&this.doRedirect(window.location.href,this.contactUrl)}doRedirect(t,i){const s={reason:t,url:i,cancel:!1};this.beforeRedirect(s),s.cancel||(window.location.href=s.url?s.url:"/")}static get watchers(){return{session:["watchLoadWidget"],userId:["watchLoadWidget"]}}};e.style=":host{display:block;height:100%;overflow:hidden}";export{e as user_deposit_withdrawal}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let t,e,n=!1;const l="undefined"!=typeof window?window:{},s=l.document||{head:{}},o={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},r=t=>Promise.resolve(t),i=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(t){}return!1})(),c=new WeakMap,a=t=>"sc-"+t.o,u={},f=t=>"object"==(t=typeof t)||"function"===t,d=(t,e,...n)=>{let l=null,s=!1,o=!1,r=[];const i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!f(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?h(null,l):l),o=s)};i(n);const c=h(t,null);return c.u=e,r.length>0&&(c.h=r),c},h=(t,e)=>({t:0,$:t,i:e,m:null,h:null,u:null}),$={},y=(t,e,n,l,s,o)=>{if(n!==l){let r=U(t,e);e.toLowerCase();{const i=f(l);if((r||i&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{let s=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&o||s)&&!i&&t.setAttribute(e,l=!0===l?"":l)}}},m=(t,e,n,l)=>{const s=11===e.m.nodeType&&e.m.host?e.m.host:e.m,o=t&&t.u||u,r=e.u||u;for(l in o)l in r||y(s,l,o[l],void 0,n,e.t);for(l in r)y(s,l,o[l],r[l],n,e.t)},p=(e,n,l)=>{let o,r,i=n.h[l],c=0;if(o=i.m=s.createElement(i.$),m(null,i,!1),null!=t&&o["s-si"]!==t&&o.classList.add(o["s-si"]=t),i.h)for(c=0;c<i.h.length;++c)r=p(e,i,c),r&&o.appendChild(r);return o},w=(t,n,l,s,o,r)=>{let i,c=t;for(c.shadowRoot&&c.tagName===e&&(c=c.shadowRoot);o<=r;++o)s[o]&&(i=p(null,l,o),i&&(s[o].m=i,c.insertBefore(i,n)))},b=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.m.remove()},S=(t,e)=>t.$===e.$,g=(t,e)=>{const n=e.m=t.m,l=t.h,s=e.h;m(t,e,!1),null!==l&&null!==s?((t,e,n,l)=>{let s,o=0,r=0,i=e.length-1,c=e[0],a=e[i],u=l.length-1,f=l[0],d=l[u];for(;o<=i&&r<=u;)null==c?c=e[++o]:null==a?a=e[--i]:null==f?f=l[++r]:null==d?d=l[--u]:S(c,f)?(g(c,f),c=e[++o],f=l[++r]):S(a,d)?(g(a,d),a=e[--i],d=l[--u]):S(c,d)?(g(c,d),t.insertBefore(c.m,a.m.nextSibling),c=e[++o],d=l[--u]):S(a,f)?(g(a,f),t.insertBefore(a.m,c.m),a=e[--i],f=l[++r]):(s=p(e&&e[r],n,r),f=l[++r],s&&c.m.parentNode.insertBefore(s,c.m));o>i?w(t,null==l[u+1]?null:l[u+1].m,n,l,r,u):r>u&&b(e,o,i)})(n,l,e,s):null!==s?w(n,null,e,s,0,s.length-1):null!==l&&b(l,0,l.length-1)},M=(t,e)=>{e&&!t.p&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.p=e)))},j=(t,e)=>{if(t.t|=16,!(4&t.t))return M(t,t.S),K((()=>k(t,e)));t.t|=512},k=(t,e)=>{const n=t.g;let l;return e&&(l=P(n,"componentWillLoad")),x(l,(()=>v(t,n,e)))},v=async(t,e,n)=>{const l=t.M,o=l["s-rc"];n&&(t=>{const e=t.j,n=t.M,l=e.t,o=((t,e)=>{let n=a(e),l=V.get(n);if(t=11===t.nodeType?t:s,l)if("string"==typeof l){let e,o=c.get(t=t.head||t);o||c.set(t,o=new Set),o.has(n)||(e=s.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),o&&o.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);C(t,e),o&&(o.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>O(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},C=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.M,o=n.j,r=n.k||h(null,null),i=(t=>t&&t.$===$)(l)?l:d(null,null,l);e=s.tagName,o.v&&(i.u=i.u||{},o.v.map((([t,e])=>i.u[e]=s[t]))),i.$=null,i.t|=4,n.k=i,i.m=r.m=s.shadowRoot||s,t=s["s-sc"],g(r,i)})(n,l)}catch(t){q(t,n.M)}return null},O=t=>{const e=t.M,n=t.g,l=t.S;64&t.t||(t.t|=64,E(e),P(n,"componentDidLoad"),t.C(e),l||L()),t.p&&(t.p(),t.p=void 0),512&t.t&&J((()=>j(t,!1))),t.t&=-517},L=()=>{E(s.documentElement),J((()=>(t=>{const e=o.ce("appload",{detail:{namespace:"user-deposit-withdrawal"}});return t.dispatchEvent(e),e})(l)))},P=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){q(t)}},x=(t,e)=>t&&t.then?t.then(e):e(),E=t=>t.classList.add("hydrated"),N=(t,e,n)=>{if(e.O){t.watchers&&(e.L=t.watchers);const l=Object.entries(e.O),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>A(this).P.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=A(t),o=s.M,r=s.P.get(e),i=s.t,c=s.g;if(n=((t,e)=>null==t||f(t)?t:1&e?t+"":t)(n,l.O[e][0]),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(s.P.set(e,n),c)){if(l.L&&128&i){const t=l.L[e];t&&t.map((t=>{try{c[t](n,r,e)}catch(t){q(t,o)}}))}2==(18&i)&&j(s,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(t,e,l){o.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(s.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,l])=>{const s=l[1]||t;return n.set(s,t),512&l[0]&&e.v.push([t,s]),s}))}}return t},T=(t,e={})=>{const n=[],r=e.exclude||[],c=l.customElements,u=s.head,f=u.querySelector("meta[charset]"),d=s.createElement("style"),h=[];let $,y=!0;Object.assign(o,e),o.l=new URL(e.resourcesUrl||"./",s.baseURI).href,t.map((t=>{t[1].map((e=>{const l={t:e[0],o:e[1],O:e[2],N:e[3]};l.O=e[2],l.v=[],l.L={};const s=l.o,u=class extends HTMLElement{constructor(t){super(t),R(t=this,l),1&l.t&&t.attachShadow({mode:"open"})}connectedCallback(){$&&(clearTimeout($),$=null),y?h.push(this):o.jmp((()=>(t=>{if(0==(1&o.t)){const e=A(t),n=e.j,l=()=>{};if(!(1&e.t)){e.t|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){M(e,e.S=n);break}}n.O&&Object.entries(n.O).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=F(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(n.L=s.watchers,N(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){q(t)}e.t&=-9,e.t|=128,t()}if(s.style){let t=s.style;const e=a(n);if(!V.has(e)){const l=()=>{};((t,e,n)=>{let l=V.get(t);i&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,V.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.S,r=()=>j(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){o.jmp((()=>(()=>{0==(1&o.t)&&P(A(this).g,"disconnectedCallback")})()))}componentOnReady(){return A(this).T}};l.W=t[0],r.includes(s)||c.get(s)||(n.push(s),c.define(s,N(u,l,1)))}))})),d.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),u.insertBefore(d,f?f.nextSibling:u.firstChild),y=!1,h.length?h.map((t=>t.connectedCallback())):o.jmp((()=>$=setTimeout(L,30)))},W=new WeakMap,A=t=>W.get(t),H=(t,e)=>W.set(e.g=t,e),R=(t,e)=>{const n={t:0,M:t,j:e,P:new Map};return n.T=new Promise((t=>n.C=t)),t["s-p"]=[],t["s-rc"]=[],W.set(t,n)},U=(t,e)=>e in t,q=(t,e)=>(0,console.error)(t,e),D=new Map,F=t=>{const e=t.o.replace(/-/g,"_"),n=t.W,l=D.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(D.set(n,t),t[e])),q)},V=new Map,_=[],z=[],B=(t,e)=>l=>{t.push(l),n||(n=!0,e&&4&o.t?J(I):o.raf(I))},G=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){q(t)}t.length=0},I=()=>{G(_),G(z),(n=_.length>0)&&o.raf(I)},J=t=>r().then(t),K=B(z,!0);export{$ as H,T as b,d as h,r as p,H as r}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as r,b as e}from"./p-ed11cb75.js";(()=>{const e=import.meta.url,s={};return""!==e&&(s.resourcesUrl=new URL(".",e).href),r(s)})().then((r=>e([["p-05851c56",[[1,"user-deposit-withdrawal",{endpoint:[513],type:[513],channel:[513],language:[513],productType:[513,"product-type"],userId:[513,"user-id"],session:[513],successUrl:[513,"success-url"],cancelUrl:[513,"cancel-url"],failUrl:[513,"fail-url"],sportsUrl:[513,"sports-url"],casinoUrl:[513,"casino-url"],contactUrl:[513,"contact-url"],homeUrl:[513,"home-url"],beforeRedirect:[16]}]]]],r)));
|
package/loader/cdn.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from '../dist/types/components';
|
|
2
|
+
export interface CustomElementsDefineOptions {
|
|
3
|
+
exclude?: string[];
|
|
4
|
+
resourcesUrl?: string;
|
|
5
|
+
syncQueue?: boolean;
|
|
6
|
+
jmp?: (c: Function) => any;
|
|
7
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
12
|
+
export declare function applyPolyfills(): Promise<void>;
|
package/loader/index.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
|
|
2
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
3
|
+
export * from '../dist/esm/polyfills/index.js';
|
|
4
|
+
export * from '../dist/esm/loader.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@everymatrix/user-deposit-withdrawal",
|
|
3
|
+
"version": "1.13.11",
|
|
4
|
+
"main": "./dist/index.cjs.js",
|
|
5
|
+
"module": "./dist/index.js",
|
|
6
|
+
"es2015": "./dist/esm/index.mjs",
|
|
7
|
+
"es2017": "./dist/esm/index.mjs",
|
|
8
|
+
"types": "./dist/types/index.d.ts",
|
|
9
|
+
"collection": "./dist/collection/collection-manifest.json",
|
|
10
|
+
"collection:main": "./dist/collection/index.js",
|
|
11
|
+
"unpkg": "./dist/user-deposit-withdrawal/user-deposit-withdrawal.js",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist/",
|
|
14
|
+
"loader/"
|
|
15
|
+
],
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
}
|
|
19
|
+
}
|