@everymatrix/player-elevate-points-history-jojogroup 1.99.59 → 1.99.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-b2b2d415.js');
|
|
6
6
|
const locale_utils = require('./locale.utils-776170c3.js');
|
|
7
7
|
|
|
8
|
-
const playerElevateOptcardCss = ":host{display:block;width:100%;box-sizing:border-box;background:var(--emw--color-black-15, #0b1511)}.OptCard{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-width:100%;min-width:0;box-sizing:border-box;padding:22px 20px 14px;gap:0}.OptInButton{width:100%;height:54px;border:2px solid var(--emw--button-contrast-background, #087b36);border-radius:
|
|
8
|
+
const playerElevateOptcardCss = ":host{display:block;width:100%;box-sizing:border-box;background:var(--emw--color-black-15, #0b1511)}.OptCard{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-width:100%;min-width:0;box-sizing:border-box;padding:22px 20px 14px;gap:0}.OptInButton{width:100%;height:54px;border:2px solid var(--emw--button-contrast-background, #087b36);border-radius:var(--emw--button-border-radius, 10px);cursor:pointer;background:var(--emw--button-contrast-background);color:var(--emw--button-typography-contrast, #ffffff);font-size:16px;font-weight:700;transition:opacity 0.2s ease}.OptInButton:hover{opacity:0.9}.OptInButton:active{transform:scale(0.99)}.OptOutButton{background:transparent;color:var(--c-base-07, #999);border:1px solid var(--c-base-07, #999);border-radius:var(--emw--button-border-radius, 10px)}.OptInButton:disabled{opacity:0.5;cursor:not-allowed}.Description{margin:16px 0 14px;font-size:13px;line-height:15px;font-weight:400;width:100%;max-width:428px;box-sizing:border-box;color:var(--emw--color-typography, #ffffff);white-space:pre-line;overflow-wrap:break-word}.TermsLink{display:flex;justify-content:center;align-items:center;gap:5px;margin-top:0;font-size:13px;font-weight:700;color:var(--emw--color-secondary, #16c653);cursor:pointer;text-decoration:none}.TermsLink:hover{text-decoration:underline}";
|
|
9
9
|
const PlayerElevateOptcardStyle0 = playerElevateOptcardCss;
|
|
10
10
|
|
|
11
11
|
const PlayerElevateOptcard = class {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-47529779.js';
|
|
2
2
|
import { a as translate, T as TRANSLATIONS } from './locale.utils-1dc6d50d.js';
|
|
3
3
|
|
|
4
|
-
const playerElevateOptcardCss = ":host{display:block;width:100%;box-sizing:border-box;background:var(--emw--color-black-15, #0b1511)}.OptCard{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-width:100%;min-width:0;box-sizing:border-box;padding:22px 20px 14px;gap:0}.OptInButton{width:100%;height:54px;border:2px solid var(--emw--button-contrast-background, #087b36);border-radius:
|
|
4
|
+
const playerElevateOptcardCss = ":host{display:block;width:100%;box-sizing:border-box;background:var(--emw--color-black-15, #0b1511)}.OptCard{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-width:100%;min-width:0;box-sizing:border-box;padding:22px 20px 14px;gap:0}.OptInButton{width:100%;height:54px;border:2px solid var(--emw--button-contrast-background, #087b36);border-radius:var(--emw--button-border-radius, 10px);cursor:pointer;background:var(--emw--button-contrast-background);color:var(--emw--button-typography-contrast, #ffffff);font-size:16px;font-weight:700;transition:opacity 0.2s ease}.OptInButton:hover{opacity:0.9}.OptInButton:active{transform:scale(0.99)}.OptOutButton{background:transparent;color:var(--c-base-07, #999);border:1px solid var(--c-base-07, #999);border-radius:var(--emw--button-border-radius, 10px)}.OptInButton:disabled{opacity:0.5;cursor:not-allowed}.Description{margin:16px 0 14px;font-size:13px;line-height:15px;font-weight:400;width:100%;max-width:428px;box-sizing:border-box;color:var(--emw--color-typography, #ffffff);white-space:pre-line;overflow-wrap:break-word}.TermsLink{display:flex;justify-content:center;align-items:center;gap:5px;margin-top:0;font-size:13px;font-weight:700;color:var(--emw--color-secondary, #16c653);cursor:pointer;text-decoration:none}.TermsLink:hover{text-decoration:underline}";
|
|
5
5
|
const PlayerElevateOptcardStyle0 = playerElevateOptcardCss;
|
|
6
6
|
|
|
7
7
|
const PlayerElevateOptcard = class {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./index-47529779.js";import{a as o,T as i}from"./locale.utils-1dc6d50d.js";const a=class{constructor(e){t(this,e),this.endpoint=void 0,this.session=void 0,this.language="en",this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.optIn=void 0,this.complianceUrl="",this.description=""}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language}),this.loadTerms()}handleMessage(t){var e;t.origin===window.location.origin&&"userUpdateOptLoyaltySuccess"===(null===(e=t.data)||void 0===e?void 0:e.type)&&(this.optIn=!0)}playerElevateLeveLoadedHandler(t){var e;"boolean"==typeof(null===(e=t.detail)||void 0===e?void 0:e.optIn)&&(this.optIn=t.detail.optIn)}onButtonClick(){window.postMessage({type:this.optIn?"BEE_OPT_OUT_CLICKED":"BEE_OPT_IN_CLICKED"},window.location.origin)}async loadTerms(){var t,e;if(this.endpoint)try{const o=await fetch(`${this.endpoint}/v1/elevate/optIn/terms?language=${this.language}`),i=await o.json();i.success&&(this.complianceUrl=(null===(t=i.data)||void 0===t?void 0:t.complianceUrl)||"",this.description=(null===(e=i.data)||void 0===e?void 0:e.complianceDesc)||"")}catch(t){console.error("Failed to load opt-in terms",t)}}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language},this.loadTerms()}render(){return e("div",{key:"2a61bab32150215270af23f4a95b7ccf823cc6c9",class:"OptCard"},e("general-styling-wrapper",{key:"5a82e13f9d58066adf518ff94f44ce64306bdfa1",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:i,translationUrl:this.translationUrl,mbSource:this.mbSource}),e("player-elevate-card-data",{key:"db9465ee05877105128bf4640b60fdf0a001ef0b",params:this.paramProxy}),void 0!==this.optIn&&e("button",{key:"7683432936cca8181089024146e5d274c5a3ac92",class:{OptInButton:!0,OptOutButton:this.optIn},onClick:()=>this.onButtonClick()},o(this.optIn?"optOut":"optIn",this.language)),this.description&&e("div",{key:"1aa7343e9f43dd1a770820671cc994cf4a5a6cb3",class:"Description"},this.description),this.complianceUrl&&e("a",{key:"fa510c583facb9513ae135ce704c1720904196fd",href:this.complianceUrl,target:"_blank",rel:"noopener noreferrer",class:"TermsLink"},o("termsAndConditions",this.language),e("svg",{key:"6414feecba959dc7fbfc57b55f8c953258b0a998",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e("path",{key:"ec2716dfa2f465945193ba80d455df8c2ba7f6ca",d:"M14 3h7v7"}),e("path",{key:"e9a1b86d1e9f22109303e3dc9915158f5786f411",d:"M10 14L21 3"}),e("path",{key:"5f34ff03f7a790ca4fc72811efa076b2c520c6fe",d:"M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5"}))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};a.style=":host{display:block;width:100%;box-sizing:border-box;background:var(--emw--color-black-15, #0b1511)}.OptCard{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-width:100%;min-width:0;box-sizing:border-box;padding:22px 20px 14px;gap:0}.OptInButton{width:100%;height:54px;border:2px solid var(--emw--button-contrast-background, #087b36);border-radius:
|
|
1
|
+
import{r as t,h as e}from"./index-47529779.js";import{a as o,T as i}from"./locale.utils-1dc6d50d.js";const a=class{constructor(e){t(this,e),this.endpoint=void 0,this.session=void 0,this.language="en",this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.optIn=void 0,this.complianceUrl="",this.description=""}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language}),this.loadTerms()}handleMessage(t){var e;t.origin===window.location.origin&&"userUpdateOptLoyaltySuccess"===(null===(e=t.data)||void 0===e?void 0:e.type)&&(this.optIn=!0)}playerElevateLeveLoadedHandler(t){var e;"boolean"==typeof(null===(e=t.detail)||void 0===e?void 0:e.optIn)&&(this.optIn=t.detail.optIn)}onButtonClick(){window.postMessage({type:this.optIn?"BEE_OPT_OUT_CLICKED":"BEE_OPT_IN_CLICKED"},window.location.origin)}async loadTerms(){var t,e;if(this.endpoint)try{const o=await fetch(`${this.endpoint}/v1/elevate/optIn/terms?language=${this.language}`),i=await o.json();i.success&&(this.complianceUrl=(null===(t=i.data)||void 0===t?void 0:t.complianceUrl)||"",this.description=(null===(e=i.data)||void 0===e?void 0:e.complianceDesc)||"")}catch(t){console.error("Failed to load opt-in terms",t)}}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language},this.loadTerms()}render(){return e("div",{key:"2a61bab32150215270af23f4a95b7ccf823cc6c9",class:"OptCard"},e("general-styling-wrapper",{key:"5a82e13f9d58066adf518ff94f44ce64306bdfa1",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:i,translationUrl:this.translationUrl,mbSource:this.mbSource}),e("player-elevate-card-data",{key:"db9465ee05877105128bf4640b60fdf0a001ef0b",params:this.paramProxy}),void 0!==this.optIn&&e("button",{key:"7683432936cca8181089024146e5d274c5a3ac92",class:{OptInButton:!0,OptOutButton:this.optIn},onClick:()=>this.onButtonClick()},o(this.optIn?"optOut":"optIn",this.language)),this.description&&e("div",{key:"1aa7343e9f43dd1a770820671cc994cf4a5a6cb3",class:"Description"},this.description),this.complianceUrl&&e("a",{key:"fa510c583facb9513ae135ce704c1720904196fd",href:this.complianceUrl,target:"_blank",rel:"noopener noreferrer",class:"TermsLink"},o("termsAndConditions",this.language),e("svg",{key:"6414feecba959dc7fbfc57b55f8c953258b0a998",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},e("path",{key:"ec2716dfa2f465945193ba80d455df8c2ba7f6ca",d:"M14 3h7v7"}),e("path",{key:"e9a1b86d1e9f22109303e3dc9915158f5786f411",d:"M10 14L21 3"}),e("path",{key:"5f34ff03f7a790ca4fc72811efa076b2c520c6fe",d:"M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5"}))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};a.style=":host{display:block;width:100%;box-sizing:border-box;background:var(--emw--color-black-15, #0b1511)}.OptCard{display:flex;flex-direction:column;width:100%;box-sizing:border-box;max-width:100%;min-width:0;box-sizing:border-box;padding:22px 20px 14px;gap:0}.OptInButton{width:100%;height:54px;border:2px solid var(--emw--button-contrast-background, #087b36);border-radius:var(--emw--button-border-radius, 10px);cursor:pointer;background:var(--emw--button-contrast-background);color:var(--emw--button-typography-contrast, #ffffff);font-size:16px;font-weight:700;transition:opacity 0.2s ease}.OptInButton:hover{opacity:0.9}.OptInButton:active{transform:scale(0.99)}.OptOutButton{background:transparent;color:var(--c-base-07, #999);border:1px solid var(--c-base-07, #999);border-radius:var(--emw--button-border-radius, 10px)}.OptInButton:disabled{opacity:0.5;cursor:not-allowed}.Description{margin:16px 0 14px;font-size:13px;line-height:15px;font-weight:400;width:100%;max-width:428px;box-sizing:border-box;color:var(--emw--color-typography, #ffffff);white-space:pre-line;overflow-wrap:break-word}.TermsLink{display:flex;justify-content:center;align-items:center;gap:5px;margin-top:0;font-size:13px;font-weight:700;color:var(--emw--color-secondary, #16c653);cursor:pointer;text-decoration:none}.TermsLink:hover{text-decoration:underline}";export{a as player_elevate_optcard}
|