@everymatrix/pam-player-profile-controller 1.90.7 → 1.90.9

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.
@@ -0,0 +1 @@
1
+ import{r as e,h as r}from"./index-bb55519d.js";import"@everymatrix/pam-profile-consents";const t="__WIDGET_GLOBAL_STYLE_CACHE__";function a(e,r){if(e){const t=document.createElement("style");t.innerHTML=r,e.appendChild(t)}}function o(e,r){if(!e||!r)return;const t=new URL(r);fetch(t.href).then((e=>e.text())).then((r=>{const t=document.createElement("style");t.innerHTML=r,e&&e.appendChild(t)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}function s(e,r,a,o=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!o)return a=function(e,r){const t=document.createElement("style");return window.emMessageBus.subscribe(r,(r=>{e&&(t.innerHTML=r,e.appendChild(t))}))}(e,r),a;window[t]||(window[t]={}),a=function(e,r){return window.emMessageBus.subscribe(r,(a=>{if(!e)return;const o=e.getRootNode(),s=window[t];let i=s[r]&&s[r].sheet;i?s[r].refCount=s[r].refCount+1:(i=new CSSStyleSheet,i.replaceSync(a),s[r]={sheet:i,refCount:1});const n=o.adoptedStyleSheets||[];n.includes(i)||(o.adoptedStyleSheets=[...n,i])}))}(e,r);const s=a.unsubscribe.bind(a);return a.unsubscribe=()=>{if(window[t][r]){const e=window[t][r];e.refCount>1?e.refCount=e.refCount-1:delete window[t][r]}s()},a}const i={en:{title:"Player Profile",saveButton:"Save Changes",successMessage:"Your changes have been saved!",errorMessageProfileUpdate:"An error has occured when attempting to update the profile information",errorMessageAddressesUpdate:"An error has occured when attempting to update the addresses information",errorMessageContactsUpdate:"An error has occured when attempting to update the contacts information",errorMessageDocumentsUpdate:"An error has occured when attempting to update the documents information",errorMessageFetch:"An error has occured when attempting to fetch the profile information"},"zh-hk":{title:"玩家資料",saveButton:"保存更改",successMessage:"您的更改已保存!",errorMessageProfileUpdate:"嘗試更新個人資料信息時發生錯誤",errorMessageAddressesUpdate:"嘗試更新地址信息時發生錯誤",errorMessageContactsUpdate:"嘗試更新聯絡人信息時發生錯誤",errorMessageDocumentsUpdate:"嘗試更新文件信息時發生錯誤",errorMessageFetch:"在嘗試獲取個人資料時發生錯誤"},fr:{title:"Profil du joueur",saveButton:"Enregistrer les modifications",successMessage:"Vos modifications ont été enregistrées !",errorMessageProfileUpdate:"Une erreur s'est produite lors de la tentative de mise à jour des informations de profil",errorMessageAddressesUpdate:"Une erreur s'est produite lors de la tentative de mise à jour des informations d'adresses",errorMessageContactsUpdate:"Une erreur s'est produite lors de la tentative de mise à jour des informations de contact",errorMessageDocumentsUpdate:"Une erreur s'est produite lors de la tentative de mise à jour des informations des documents",errorMessageFetch:"Une erreur est survenue lors de la tentative de récupération des informations de profil"},ro:{title:"Profil jucător",saveButton:"Salvează modificările",successMessage:"Modificările dvs. au fost salvate!",errorMessageProfileUpdate:"A apărut o eroare la încercarea de a actualiza informațiile profilului",errorMessageAddressesUpdate:"A apărut o eroare la încercarea de a actualiza informațiile adreselor",errorMessageContactsUpdate:"A apărut o eroare la încercarea de a actualiza informațiile de contact",errorMessageDocumentsUpdate:"A apărut o eroare la încercarea de a actualiza informațiile documentelor",errorMessageFetch:"A apărut o eroare la încercarea de a obține informațiile profilului"},tr:{title:"Oyuncu Profili",saveButton:"Değişiklikleri Kaydet",successMessage:"Değişiklikleriniz kaydedildi!",errorMessageProfileUpdate:"Profil bilgilerini güncellemeye çalışırken bir hata oluştu",errorMessageAddressesUpdate:"Adres bilgilerini güncellemeye çalışırken bir hata oluştu",errorMessageContactsUpdate:"Kişi bilgilerini güncellemeye çalışırken bir hata oluştu",errorMessageDocumentsUpdate:"Belgelerin bilgilerini güncellemeye çalışırken bir hata oluştu",errorMessageFetch:"Profil bilgilerini almak için yapılan işlemde bir hata oluştu"},es:{title:"Perfil del jugador",saveButton:"Guardar cambios",successMessage:"¡Tus cambios han sido guardados!",errorMessageProfileUpdate:"Se ha producido un error al intentar actualizar la información del perfil",errorMessageAddressesUpdate:"Se ha producido un error al intentar actualizar la información de las direcciones",errorMessageContactsUpdate:"Se ha producido un error al intentar actualizar la información de contactos",errorMessageDocumentsUpdate:"Se ha producido un error al intentar actualizar la información de los documentos",errorMessageFetch:"Se ha producido un error al intentar obtener la información del perfil"},pt:{title:"Perfil do Jogador",saveButton:"Salvar alterações",successMessage:"Suas alterações foram salvas!",errorMessageProfileUpdate:"Ocorreu um erro ao tentar atualizar as informações do perfil",errorMessageAddressesUpdate:"Ocorreu um erro ao tentar atualizar as informações dos endereços",errorMessageContactsUpdate:"Ocorreu um erro ao tentar atualizar as informações de contato",errorMessageDocumentsUpdate:"Ocorreu um erro ao tentar atualizar as informações dos documentos",errorMessageFetch:"Ocorreu um erro ao tentar buscar as informações do perfil"},hr:{title:"Profil igrača",saveButton:"Spremi promjene",successMessage:"Vaše promjene su spremljene!",errorMessageProfileUpdate:"Došlo je do pogreške prilikom pokušaja ažuriranja informacija o profilu",errorMessageAddressesUpdate:"Došlo je do pogreške prilikom pokušaja ažuriranja informacija o adresama",errorMessageContactsUpdate:"Došlo je do pogreške prilikom pokušaja ažuriranja informacija o kontaktima",errorMessageDocumentsUpdate:"Došlo je do pogreške prilikom pokušaja ažuriranja informacija o dokumentima",errorMessageFetch:"Došlo je do greške prilikom pokušaja dobijanja informacija o profilu"},"pt-br":{title:"Perfil do Jogador",saveButton:"Salvar alterações",successMessage:"Suas alterações foram salvas!",errorMessageProfileUpdate:"Ocorreu um erro ao tentar atualizar as informações do perfil",errorMessageAddressesUpdate:"Ocorreu um erro ao tentar atualizar as informações dos endereços",errorMessageContactsUpdate:"Ocorreu um erro ao tentar atualizar as informações de contato",errorMessageDocumentsUpdate:"Ocorreu um erro ao tentar atualizar as informações dos documentos",errorMessageFetch:"Ocorreu um erro ao tentar buscar as informações do perfil"},"es-mx":{title:"Perfil del jugador",saveButton:"Guardar cambios",successMessage:"¡Tus cambios han sido guardados!",errorMessageProfileUpdate:"Se ha producido un error al intentar actualizar la información del perfil",errorMessageAddressesUpdate:"Se ha producido un error al intentar actualizar la información de las direcciones",errorMessageContactsUpdate:"Se ha producido un error al intentar actualizar la información de contactos",errorMessageDocumentsUpdate:"Se ha producido un error al intentar actualizar la información de los documentos",errorMessageFetch:"Se ha producido un error al intentar obtener la información del perfil"}},n=(e,r,t)=>{let a=i[i[r]?r:"en"][e];if(void 0!==t)for(const[e,r]of Object.entries(t.values)){const t=new RegExp(`{${e}}`,"g");a=a.replace(t,r)}return a},l=class{constructor(r){var t;e(this,r),this.data={},this.validStatus={},this.numUpdateDataReceived=0,this.numUpdateDataExpected=0,this.numUpdateDataSuccessful=0,this.sectionsToUpdate=[],this.updateFunctionMap={PROFILE:this.updateDataProfile.bind(this),ADDRESSES:this.updateDataAddresses.bind(this),DOCUMENTS:this.updateDataDocuments.bind(this),CONTACTS:this.updateDataContacts.bind(this)},this.sendSuccessNotification=()=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:n("successMessage",this.lang)}},window.location.href)},this.sendErrorNotification=e=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:n(e,this.lang)}},window.location.href)},this.sendData=e=>{let r={};switch(e){case"PROFILE":r=this.data;break;case"ADDRESSES":r.addresses=this.data.addresses;break;case"CONTACTS":r.contacts=this.data.contacts;break;case"DOCUMENTS":r.documents=this.data.documents}window.postMessage({type:`${e}_DATA`,data:r})},this.messageHandler=e=>{var r,t,a;let o=null===(r=e.data)||void 0===r?void 0:r.type.split("_")[0];switch(null===(t=e.data)||void 0===t?void 0:t.type){case"PROFILE_LOADED":case"ADDRESSES_LOADED":case"CONTACTS_LOADED":case"DOCUMENTS_LOADED":this.sendData(o);break;case"PROFILE_VALIDITY":case"ADDRESSES_VALIDITY":case"CONTACTS_VALIDITY":case"DOCUMENTS_VALIDITY":this.validStatus[o]=e.data.data,this.updateSubmitButtonStatus();break;case"PROFILE_UPDATE_DATA":case"ADDRESSES_UPDATE_DATA":case"CONTACTS_UPDATE_DATA":case"DOCUMENTS_UPDATE_DATA":const r=null===(a=e.data)||void 0===a?void 0:a.type.split("_")[0];this.sectionsToUpdate.push(r),this.numUpdateDataReceived+=1;for(const r of Object.keys(e.data.data))this.data[r]=e.data.data[r];this.numUpdateDataReceived===this.numUpdateDataExpected&&this.updateDataRecursive(0)}},this.updateDataRecursive=e=>{const r=this.sectionsToUpdate[e];if(e>=this.sectionsToUpdate.length)return this.numUpdateDataSuccessful===this.numUpdateDataExpected&&this.sendSuccessNotification(),this.resetState(),null;(0,this.updateFunctionMap[r])().then((t=>{t?++this.numUpdateDataSuccessful:this.sendErrorNotification(`errorMessage${this.toTitle(r)}Update`),this.updateDataRecursive(++e)}))},this.handleFetchResponse=async e=>{var r;if(e.status>=300){this.isError=!0;let t=await e.json();return this.errorCode=null===(r=t.thirdPartyResponse)||void 0===r?void 0:r.errorCode,this.errorMessage=n(this.errorCode?this.errorCode:"errorMessageFetch",this.lang),window.postMessage({type:"WidgetNotification",data:{type:"error",message:this.errorMessage}},window.location.href),Promise.reject(this.errorMessage)}if(this.isError=!1,e.headers.get("content-type")){let r=await e.json();return Promise.resolve(r)}return Promise.resolve()},this.getData=()=>{const e=new URL(`/api/v1/players/${this.userId}/player-identifiable-information/`,this.endpoint),r=new Headers;r.append("X-SessionID",this.session);const t={method:"GET",headers:r};return new Promise(((r,a)=>{fetch(e.href,t).then((e=>this.handleFetchResponse(e))).then((e=>{this.data=e.player,r()})).catch((e=>{console.log(e),a()}))}))},this.sendDataRequest=e=>{e&&e.preventDefault(),this.isSubmitButtonAvailable=!1,Object.values(this.validStatus).forEach((e=>{e&&(this.numUpdateDataExpected+=1)}));for(const[e,r]of Object.entries(this.validStatus))r&&window.postMessage({type:`${e}_SEND_DATA`})},this.updateSubmitButtonStatus=()=>{this.isSubmitButtonAvailable=Object.values(this.validStatus).some((e=>e))},this.toTitle=e=>e.charAt(0).toUpperCase()+e.substring(1).toLowerCase(),this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.userId=void 0,this.session=void 0,this.endpoint=void 0,this.lang="en",this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl=void 0,this.addProfile="true",this.addAddresses=void 0,this.addContacts=void 0,this.addDocuments=void 0,this.addConsents=void 0,this.dobFormat="DD/MM/YYYY",this.isFullAddressDisplayed=void 0,this.isPermanentAdressEditable="false",this.isTemporaryAdressEditable="true",this.isContactVerificationStatusDisplayed="false",this.isPhoneNumberEditable="true",this.isDocumentsEditable="false",this.isMobile=!!((t=window.navigator.userAgent).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)),this.limitStylingAppends=!1,this.isLoading=!0,this.isSubmitButtonAvailable=!1,this.isError=!1,this.errorMessage="",this.errorCode=""}handleStylingChange(e,r){e!==r&&a(this.stylingContainer,this.clientStyling)}handleStylingUrlChange(e,r){e!==r&&o(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){await this.getData().finally((()=>this.isLoading=!1))}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBuss?s(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&o(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("message",this.messageHandler,!1)}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),window.removeEventListener("message",this.messageHandler,!1)}resetState(){this.getData().then((()=>{for(const e of this.sectionsToUpdate)this.sendData(e);this.validStatus={},this.numUpdateDataReceived=0,this.numUpdateDataExpected=0,this.numUpdateDataSuccessful=0,this.sectionsToUpdate=[]}))}updateDataProfile(){const e=new URL(`/api/v1/players/${this.userId}/player-identifiable-information/`,this.endpoint),r=new Headers;r.append("X-SessionId",this.session),r.append("Content-Type","application/problem+json; charset=utf-8");const t={method:"PUT",headers:r,body:JSON.stringify(this.data)};return new Promise((r=>{fetch(e,t).then((e=>r(e.ok)))}))}updateDataDocuments(){const e=[];for(const r of this.data.documents){const t=new URL(`/api/v1/players/${this.userId}/player-identifiable-information/documents/${r.documentId}/`,this.endpoint),a=new Headers;a.append("X-SessionId",this.session),a.append("Content-Type","application/json-patch+json");const o={method:"PUT",headers:a,body:JSON.stringify(r)},s=new Promise((e=>{fetch(t,o).then((r=>e(r.ok)))}));e.push(s)}return Promise.all(e).then((e=>e.every((e=>e))))}updateDataAddresses(){const e=[];for(const r of this.data.addresses){const t=new URL(`/api/v1/players/${this.userId}/player-identifiable-information/addresses/${r.addressId}/`,this.endpoint),a=new Headers;a.append("X-SessionId",this.session),a.append("Content-Type","application/json-patch+json");const o={method:"PUT",headers:a,body:JSON.stringify(r)},s=new Promise((e=>{fetch(t,o).then((r=>e(r.ok)))}));e.push(s)}return Promise.all(e).then((e=>e.every((e=>e))))}updateDataContacts(){const e=[];for(const r of this.data.contacts){const t=new URL(`/api/v1/players/${this.userId}/player-identifiable-information/contacts/${r.contactId}/`,this.endpoint),a=new Headers;a.append("X-SessionId",this.session),a.append("Content-Type","application/json-patch+json");const o={method:"PUT",headers:a,body:JSON.stringify(r)},s=new Promise((e=>{fetch(t,o).then((r=>e(r.ok)))}));e.push(s)}return Promise.all(e).then((e=>e.every((e=>e))))}render(){return!this.isLoading&&this.isError?r("div",{class:"errorContainer"},r("p",{class:"errorMessage",innerHTML:this.errorMessage})):r("div",{ref:e=>this.stylingContainer=e},this.isLoading?r("div",{class:"Loading"},r("p",null,"Still Loading...")):r("form",{class:"PlayerProfileControllerWrapper "+(this.isMobile?"Mobile":"")},this.isMobile?r("div",{class:"ReturnButton",onClick:this.toggleScreen},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},r("g",{transform:"translate(-20 -158)"},r("g",{transform:"translate(20 158)"},r("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),r("h2",null,n("title",this.lang))):r("h2",null,n("title",this.lang)),"true"===this.addProfile&&r("pam-player-profile",{lang:this.lang,"dob-format":this.dobFormat,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"is-stand-alone":"false"}),"true"===this.addContacts&&r("pam-player-contacts",{lang:this.lang,"is-verification-status-displayed":this.isContactVerificationStatusDisplayed,"is-phone-number-editable":this.isPhoneNumberEditable,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"is-stand-alone":"false"}),"true"===this.addAddresses&&r("pam-player-addresses",{lang:this.lang,"is-permanent-adress-editable":this.isPermanentAdressEditable,"is-temporary-adress-editable":this.isTemporaryAdressEditable,"is-full-address-displayed":this.isFullAddressDisplayed,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"is-stand-alone":"false"}),"true"===this.addDocuments&&r("pam-player-documents",{lang:this.lang,"is-editable":this.isDocumentsEditable,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"is-stand-alone":"false"}),r("section",{class:"ButtonsArea"},r("button",{class:"SaveButton "+(this.isSubmitButtonAvailable?"":"Disabled"),onClick:this.sendDataRequest},n("saveButton"))),"true"===this.addConsents&&r("div",{class:"ConsentsWrapper"},r("pam-profile-consents",{lang:this.lang,endpoint:this.endpoint,session:this.session,"mb-source":this.mbSource,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl}))))}static get watchers(){return{clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"]}}};l.style=':host{display:block}button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.errorContainer{font-family:"Roboto";font-style:normal;font-family:sans-serif;display:flex;flex-direction:column;gap:24px;width:100%;height:100%}.errorContainer .errorMessage{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:var(--emw-font-size-small, 13px);display:block;justify-content:center;text-align:center}.PlayerProfileControllerWrapper{color:var(--emw--pam-typography, var(--emw-color-contrast, #07072A));background:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));padding:50px;height:100%;display:flex;flex-direction:column;gap:20px;border-radius:var(--emw--border-radius-large, 10px)}.PlayerProfileControllerWrapper h2{font-size:var(--emw--font-size-x-large, 24px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));text-transform:capitalize;font-weight:var(--emw--font-weight-semibold, 500)}.PlayerProfileControllerWrapper .ConsentsWrapper{background:var(--emw-color-pale, var(--emw--color-gray-100, #E6E6E6));border-radius:var(--emw--border-radius-large, 10px);padding:50px;margin-top:15px}.PlayerProfileControllerWrapper .ButtonsArea{grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.PlayerProfileControllerWrapper .ButtonsArea .SaveButton{display:flex;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 10px);font-size:var(--emw--size-standard, 16px);text-transform:uppercase;transition-duration:var(--emw--transition-medium, 250ms);max-width:400px;min-width:200px;padding:13px 0;width:100%}.PlayerProfileControllerWrapper .ButtonsArea .SaveButton:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerProfileControllerWrapper .ButtonsArea .SaveButton.Disabled{opacity:0.3;cursor:not-allowed}.PlayerProfileControllerWrapper.Mobile{padding:20px 15px;background:var(--emw-color-gray-50, #F9F8F8);max-width:unset;border-radius:var(--emw--border-radius-small, 5px)}.PlayerProfileControllerWrapper.Mobile .ReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.PlayerProfileControllerWrapper.Mobile .ReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerProfileControllerWrapper.Mobile h2{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-semibold, 500)}.PlayerProfileControllerWrapper.Mobile .ButtonsArea{grid-column-gap:10px;width:100%;grid-template-columns:1fr 1fr}.PlayerProfileControllerWrapper.Mobile .ButtonsArea .SaveButton{font-size:var(--emw--size-x-small, 12px);height:40px;color:var(--emw-button-typography, var(--emw-color-white, #FFFFFF))}.PlayerProfileControllerWrapper.Mobile .ButtonsArea .SaveButton.Disabled{color:var(--emw-color-gray-300, #58586B)}';export{l as P,o as a,s as b,a as s}
@@ -2,7 +2,7 @@ import "../../../../../../dist/packages/stencil/pam-player-profile/dist/types/in
2
2
  import "../../../../../../dist/packages/stencil/pam-player-addresses/dist/types/index";
3
3
  import "../../../../../../dist/packages/stencil/pam-player-contacts/dist/types/index";
4
4
  import "../../../../../../dist/packages/stencil/pam-player-documents/dist/types/index";
5
- import "../../../../../../dist/packages/svelte/player-consents/es2015/player-consents";
5
+ import '@everymatrix/pam-profile-consents';
6
6
  export declare class PlayerProfileController {
7
7
  userId: string;
8
8
  session: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/pam-player-profile-controller",
3
- "version": "1.90.7",
3
+ "version": "1.90.9",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,86 +0,0 @@
1
- 'use strict';
2
-
3
- const PlayerConsentsC93YUnq0 = require('./PlayerConsents-C93YUnq0-af99ac14.js');
4
-
5
- function L(t) {
6
- PlayerConsentsC93YUnq0.a(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
7
- }
8
- function j(t) {
9
- let i;
10
- return {
11
- c() {
12
- i = PlayerConsentsC93YUnq0.e("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
13
- },
14
- m(n, l) {
15
- PlayerConsentsC93YUnq0.b(n, i, l), t[4](i);
16
- },
17
- p: PlayerConsentsC93YUnq0.n,
18
- i: PlayerConsentsC93YUnq0.n,
19
- o: PlayerConsentsC93YUnq0.n,
20
- d(n) {
21
- n && PlayerConsentsC93YUnq0.d(i), t[4](null);
22
- }
23
- };
24
- }
25
- function w(t, i, n) {
26
- let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s, o;
27
- PlayerConsentsC93YUnq0.o(() => () => {
28
- });
29
- function u(e) {
30
- PlayerConsentsC93YUnq0.c[e ? "unshift" : "push"](() => {
31
- s = e, n(0, s);
32
- });
33
- }
34
- return t.$$set = (e) => {
35
- "clientstyling" in e && n(1, l = e.clientstyling), "clientstylingurl" in e && n(2, a = e.clientstylingurl), "mbsource" in e && n(3, r = e.mbsource);
36
- }, t.$$.update = () => {
37
- t.$$.dirty & /*clientstyling, customStylingContainer*/
38
- 3 && l && s && PlayerConsentsC93YUnq0.g(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
39
- 5 && a && s && PlayerConsentsC93YUnq0.h(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
40
- 9 && r && s && PlayerConsentsC93YUnq0.j(s, `${r}.Style`, o);
41
- }, [
42
- s,
43
- l,
44
- a,
45
- r,
46
- u
47
- ];
48
- }
49
- class M extends PlayerConsentsC93YUnq0.S {
50
- constructor(i) {
51
- super(), PlayerConsentsC93YUnq0.i(
52
- this,
53
- i,
54
- w,
55
- j,
56
- PlayerConsentsC93YUnq0.s,
57
- {
58
- clientstyling: 1,
59
- clientstylingurl: 2,
60
- mbsource: 3
61
- },
62
- L
63
- );
64
- }
65
- get clientstyling() {
66
- return this.$$.ctx[1];
67
- }
68
- set clientstyling(i) {
69
- this.$$set({ clientstyling: i }), PlayerConsentsC93YUnq0.f();
70
- }
71
- get clientstylingurl() {
72
- return this.$$.ctx[2];
73
- }
74
- set clientstylingurl(i) {
75
- this.$$set({ clientstylingurl: i }), PlayerConsentsC93YUnq0.f();
76
- }
77
- get mbsource() {
78
- return this.$$.ctx[3];
79
- }
80
- set mbsource(i) {
81
- this.$$set({ mbsource: i }), PlayerConsentsC93YUnq0.f();
82
- }
83
- }
84
- PlayerConsentsC93YUnq0.k(M, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
85
-
86
- exports['default'] = M;