@everymatrix/bonus-fpp-store-item
Advanced tools
Comparing version 1.30.1 to 1.31.0
@@ -1,1 +0,1 @@ | ||
import{p as s,b as t}from"./p-9236e415.js";(()=>{const t=import.meta.url,r={};return""!==t&&(r.resourcesUrl=new URL(".",t).href),s(r)})().then((s=>t([["p-4e2d8bab",[[1,"bonus-fpp-store-item",{endpoint:[513],language:[513],itemId:[1537,"item-id"],fppGift:[1040],session:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],showSliderDots:[516,"show-slider-dots"],showSliderArrows:[516,"show-slider-arrows"],isGiftNotFound:[32],redeemErrorMsg:[32]}],[0,"bonus-fpp-store-assets-slider",{showSliderDots:[516,"show-slider-dots"],showSliderArrows:[516,"show-slider-arrows"],itemsPerPage:[514,"items-per-page"],sliderItems:[16],activeIndex:[32]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}]]]],s))); | ||
import{p as s,b as e}from"./p-9236e415.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),s(t)})().then((s=>e([["p-49692e17",[[1,"bonus-fpp-store-item",{endpoint:[513],language:[513],itemId:[1537,"item-id"],fppGift:[1040],session:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],showSliderDots:[516,"show-slider-dots"],showSliderArrows:[516,"show-slider-arrows"],isGiftNotFound:[32],redeemErrorMsg:[32],isRedeeming:[32]}],[0,"bonus-fpp-store-assets-slider",{showSliderDots:[516,"show-slider-dots"],showSliderArrows:[516,"show-slider-arrows"],itemsPerPage:[514,"items-per-page"],sliderItems:[16],activeIndex:[32]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}]]]],s))); |
@@ -150,2 +150,4 @@ 'use strict'; | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem' | ||
}, | ||
@@ -157,2 +159,4 @@ ro: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem' | ||
}, | ||
@@ -164,2 +168,4 @@ fr: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem', | ||
}, | ||
@@ -171,2 +177,4 @@ ar: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem', | ||
}, | ||
@@ -178,2 +186,4 @@ hu: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem', | ||
} | ||
@@ -266,2 +276,3 @@ }; | ||
this.redeemErrorMsg = ''; | ||
this.isRedeeming = false; | ||
this.deviceType = getDevicePlatform(); | ||
@@ -286,2 +297,3 @@ } | ||
this.redeemErrorMsg = ''; | ||
this.isRedeeming = true; | ||
fetch(url.toString(), claimGiftOptions) | ||
@@ -294,3 +306,6 @@ .then((res) => res.json()) | ||
else { | ||
this.redeemErrorMsg = res.errorMessage; | ||
let translatedError = translate(`error${res.errorCode}`, this.language); | ||
this.redeemErrorMsg = translatedError ? translatedError : translate('redeemFailed', this.language); | ||
console.error('RedeemFailed', res); | ||
window.postMessage({ type: 'FPPGiftClaimFailed', itemId: this.fppGift.id, res }, window.location.href); | ||
} | ||
@@ -300,2 +315,4 @@ }) | ||
window.postMessage({ type: 'FPPGiftClaimFailed', itemId: this.fppGift.id, err }, window.location.href); | ||
}).finally(() => { | ||
this.isRedeeming = false; | ||
}); | ||
@@ -317,3 +334,3 @@ } | ||
let filteredGifts = data.data; | ||
if (filteredGifts.length == 1) { | ||
if (filteredGifts && filteredGifts.length == 1) { | ||
this.fppGift = filteredGifts[0]; | ||
@@ -343,3 +360,3 @@ this.isGiftNotFound = false; | ||
this.onBackClicked(); | ||
} }, '<')), index.h("div", { class: "Thumnails GiftNotFound" }, translate('noDataFound', this.language), "."))), this.fppGift && index.h(index.Fragment, null, index.h("div", { class: "ThumbnailRow" }, index.h("div", { class: 'Row' }, index.h("div", { class: "BackButton", onClick: () => { this.onBackClicked(); } }, '<'), index.h("bonus-fpp-store-assets-slider", { class: 'Thumbnails', itemsPerPage: 1, sliderItems: this.fppGift.presentation.assets, showSliderDots: this.showSliderDots })), index.h("div", { class: 'Col Details' }, index.h("h3", { class: "GiftName" }, this.fppGift.presentation.displayName || this.fppGift.displayName), index.h("div", { class: "GiftPoints" }, index.h("span", { class: "Points" }, this.fppGift.points, " "), index.h("span", { class: " PointsLabel" }, translate('points', this.language))))), index.h("div", { class: 'StoreItemDetail Details' }, index.h("div", { class: "GiftPresentation" }, index.h("p", null, this.fppGift.presentation.description ? this.fppGift.presentation.description : translate('noGiftPresentation', this.language))), index.h("div", { class: `RedeemButton ${this.fppGift.available === 'false' ? 'Disabled' : ''} | ||
} }, '<')), index.h("div", { class: "Thumnails GiftNotFound" }, translate('noDataFound', this.language), "."))), this.fppGift && index.h(index.Fragment, null, index.h("div", { class: "ThumbnailRow" }, index.h("div", { class: 'Row' }, index.h("div", { class: "BackButton", onClick: () => { this.onBackClicked(); } }, '<'), index.h("bonus-fpp-store-assets-slider", { class: 'Thumbnails', itemsPerPage: 1, sliderItems: this.fppGift.presentation.assets, showSliderDots: this.showSliderDots })), index.h("div", { class: 'Col Details' }, index.h("h3", { class: "GiftName" }, this.fppGift.presentation.displayName || this.fppGift.displayName), index.h("div", { class: "GiftPoints" }, index.h("span", { class: "Points" }, this.fppGift.points, " "), index.h("span", { class: " PointsLabel" }, translate('points', this.language))))), index.h("div", { class: 'StoreItemDetail Details' }, index.h("div", { class: "GiftPresentation" }, index.h("p", null, this.fppGift.presentation.description ? this.fppGift.presentation.description : translate('noGiftPresentation', this.language))), index.h("div", { class: `RedeemButton ${this.fppGift.available === 'false' || this.isRedeeming ? 'Disabled' : ''} | ||
${this.deviceType == 'dk' ? 'DkButton' : ''}`, onClick: this.redeemGift.bind(this) }, translate('redeem', this.language)), index.h("span", { class: 'RedeemError Error' }, " ", this.redeemErrorMsg, " ")))))); | ||
@@ -346,0 +363,0 @@ } |
@@ -18,3 +18,3 @@ 'use strict'; | ||
patchBrowser().then(options => { | ||
return index.bootstrapLazy([["bonus-fpp-store-assets-slider_3.cjs",[[1,"bonus-fpp-store-item",{"endpoint":[513],"language":[513],"itemId":[1537,"item-id"],"fppGift":[1040],"session":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"isGiftNotFound":[32],"redeemErrorMsg":[32]}],[0,"bonus-fpp-store-assets-slider",{"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"itemsPerPage":[514,"items-per-page"],"sliderItems":[16],"activeIndex":[32]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options); | ||
return index.bootstrapLazy([["bonus-fpp-store-assets-slider_3.cjs",[[1,"bonus-fpp-store-item",{"endpoint":[513],"language":[513],"itemId":[1537,"item-id"],"fppGift":[1040],"session":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"isGiftNotFound":[32],"redeemErrorMsg":[32],"isRedeeming":[32]}],[0,"bonus-fpp-store-assets-slider",{"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"itemsPerPage":[514,"items-per-page"],"sliderItems":[16],"activeIndex":[32]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options); | ||
}); |
@@ -17,3 +17,3 @@ 'use strict'; | ||
return patchEsm().then(() => { | ||
return index.bootstrapLazy([["bonus-fpp-store-assets-slider_3.cjs",[[1,"bonus-fpp-store-item",{"endpoint":[513],"language":[513],"itemId":[1537,"item-id"],"fppGift":[1040],"session":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"isGiftNotFound":[32],"redeemErrorMsg":[32]}],[0,"bonus-fpp-store-assets-slider",{"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"itemsPerPage":[514,"items-per-page"],"sliderItems":[16],"activeIndex":[32]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options); | ||
return index.bootstrapLazy([["bonus-fpp-store-assets-slider_3.cjs",[[1,"bonus-fpp-store-item",{"endpoint":[513],"language":[513],"itemId":[1537,"item-id"],"fppGift":[1040],"session":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"isGiftNotFound":[32],"redeemErrorMsg":[32],"isRedeeming":[32]}],[0,"bonus-fpp-store-assets-slider",{"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"itemsPerPage":[514,"items-per-page"],"sliderItems":[16],"activeIndex":[32]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options); | ||
}); | ||
@@ -20,0 +20,0 @@ }; |
@@ -33,2 +33,3 @@ import { Component, Fragment, h, Host, Prop, State } from '@stencil/core'; | ||
this.redeemErrorMsg = ''; | ||
this.isRedeeming = false; | ||
this.deviceType = getDevicePlatform(); | ||
@@ -53,2 +54,3 @@ } | ||
this.redeemErrorMsg = ''; | ||
this.isRedeeming = true; | ||
fetch(url.toString(), claimGiftOptions) | ||
@@ -61,3 +63,6 @@ .then((res) => res.json()) | ||
else { | ||
this.redeemErrorMsg = res.errorMessage; | ||
let translatedError = translate(`error${res.errorCode}`, this.language); | ||
this.redeemErrorMsg = translatedError ? translatedError : translate('redeemFailed', this.language); | ||
console.error('RedeemFailed', res); | ||
window.postMessage({ type: 'FPPGiftClaimFailed', itemId: this.fppGift.id, res }, window.location.href); | ||
} | ||
@@ -67,2 +72,4 @@ }) | ||
window.postMessage({ type: 'FPPGiftClaimFailed', itemId: this.fppGift.id, err }, window.location.href); | ||
}).finally(() => { | ||
this.isRedeeming = false; | ||
}); | ||
@@ -84,3 +91,3 @@ } | ||
let filteredGifts = data.data; | ||
if (filteredGifts.length == 1) { | ||
if (filteredGifts && filteredGifts.length == 1) { | ||
this.fppGift = filteredGifts[0]; | ||
@@ -134,3 +141,3 @@ this.isGiftNotFound = false; | ||
h("p", null, this.fppGift.presentation.description ? this.fppGift.presentation.description : translate('noGiftPresentation', this.language))), | ||
h("div", { class: `RedeemButton ${this.fppGift.available === 'false' ? 'Disabled' : ''} | ||
h("div", { class: `RedeemButton ${this.fppGift.available === 'false' || this.isRedeeming ? 'Disabled' : ''} | ||
${this.deviceType == 'dk' ? 'DkButton' : ''}`, onClick: this.redeemGift.bind(this) }, translate('redeem', this.language)), | ||
@@ -333,4 +340,5 @@ h("span", { class: 'RedeemError Error' }, | ||
"isGiftNotFound": {}, | ||
"redeemErrorMsg": {} | ||
"redeemErrorMsg": {}, | ||
"isRedeeming": {} | ||
}; } | ||
} |
@@ -9,2 +9,4 @@ const DEFAULT_LANGUAGE = 'en'; | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem' | ||
}, | ||
@@ -16,2 +18,4 @@ ro: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem' | ||
}, | ||
@@ -23,2 +27,4 @@ fr: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem', | ||
}, | ||
@@ -30,2 +36,4 @@ ar: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem', | ||
}, | ||
@@ -37,2 +45,4 @@ hu: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem', | ||
} | ||
@@ -39,0 +49,0 @@ }; |
@@ -13,2 +13,4 @@ import { proxyCustomElement, HTMLElement, h, Host, Fragment } from '@stencil/core/internal/client'; | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem' | ||
}, | ||
@@ -20,2 +22,4 @@ ro: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem' | ||
}, | ||
@@ -27,2 +31,4 @@ fr: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem', | ||
}, | ||
@@ -34,2 +40,4 @@ ar: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem', | ||
}, | ||
@@ -41,2 +49,4 @@ hu: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem', | ||
} | ||
@@ -131,2 +141,3 @@ }; | ||
this.redeemErrorMsg = ''; | ||
this.isRedeeming = false; | ||
this.deviceType = getDevicePlatform(); | ||
@@ -151,2 +162,3 @@ } | ||
this.redeemErrorMsg = ''; | ||
this.isRedeeming = true; | ||
fetch(url.toString(), claimGiftOptions) | ||
@@ -159,3 +171,6 @@ .then((res) => res.json()) | ||
else { | ||
this.redeemErrorMsg = res.errorMessage; | ||
let translatedError = translate(`error${res.errorCode}`, this.language); | ||
this.redeemErrorMsg = translatedError ? translatedError : translate('redeemFailed', this.language); | ||
console.error('RedeemFailed', res); | ||
window.postMessage({ type: 'FPPGiftClaimFailed', itemId: this.fppGift.id, res }, window.location.href); | ||
} | ||
@@ -165,2 +180,4 @@ }) | ||
window.postMessage({ type: 'FPPGiftClaimFailed', itemId: this.fppGift.id, err }, window.location.href); | ||
}).finally(() => { | ||
this.isRedeeming = false; | ||
}); | ||
@@ -182,3 +199,3 @@ } | ||
let filteredGifts = data.data; | ||
if (filteredGifts.length == 1) { | ||
if (filteredGifts && filteredGifts.length == 1) { | ||
this.fppGift = filteredGifts[0]; | ||
@@ -208,3 +225,3 @@ this.isGiftNotFound = false; | ||
this.onBackClicked(); | ||
} }, '<')), h("div", { class: "Thumnails GiftNotFound" }, translate('noDataFound', this.language), "."))), this.fppGift && h(Fragment, null, h("div", { class: "ThumbnailRow" }, h("div", { class: 'Row' }, h("div", { class: "BackButton", onClick: () => { this.onBackClicked(); } }, '<'), h("bonus-fpp-store-assets-slider", { class: 'Thumbnails', itemsPerPage: 1, sliderItems: this.fppGift.presentation.assets, showSliderDots: this.showSliderDots })), h("div", { class: 'Col Details' }, h("h3", { class: "GiftName" }, this.fppGift.presentation.displayName || this.fppGift.displayName), h("div", { class: "GiftPoints" }, h("span", { class: "Points" }, this.fppGift.points, " "), h("span", { class: " PointsLabel" }, translate('points', this.language))))), h("div", { class: 'StoreItemDetail Details' }, h("div", { class: "GiftPresentation" }, h("p", null, this.fppGift.presentation.description ? this.fppGift.presentation.description : translate('noGiftPresentation', this.language))), h("div", { class: `RedeemButton ${this.fppGift.available === 'false' ? 'Disabled' : ''} | ||
} }, '<')), h("div", { class: "Thumnails GiftNotFound" }, translate('noDataFound', this.language), "."))), this.fppGift && h(Fragment, null, h("div", { class: "ThumbnailRow" }, h("div", { class: 'Row' }, h("div", { class: "BackButton", onClick: () => { this.onBackClicked(); } }, '<'), h("bonus-fpp-store-assets-slider", { class: 'Thumbnails', itemsPerPage: 1, sliderItems: this.fppGift.presentation.assets, showSliderDots: this.showSliderDots })), h("div", { class: 'Col Details' }, h("h3", { class: "GiftName" }, this.fppGift.presentation.displayName || this.fppGift.displayName), h("div", { class: "GiftPoints" }, h("span", { class: "Points" }, this.fppGift.points, " "), h("span", { class: " PointsLabel" }, translate('points', this.language))))), h("div", { class: 'StoreItemDetail Details' }, h("div", { class: "GiftPresentation" }, h("p", null, this.fppGift.presentation.description ? this.fppGift.presentation.description : translate('noGiftPresentation', this.language))), h("div", { class: `RedeemButton ${this.fppGift.available === 'false' || this.isRedeeming ? 'Disabled' : ''} | ||
${this.deviceType == 'dk' ? 'DkButton' : ''}`, onClick: this.redeemGift.bind(this) }, translate('redeem', this.language)), h("span", { class: 'RedeemError Error' }, " ", this.redeemErrorMsg, " ")))))); | ||
@@ -225,3 +242,4 @@ } | ||
"isGiftNotFound": [32], | ||
"redeemErrorMsg": [32] | ||
"redeemErrorMsg": [32], | ||
"isRedeeming": [32] | ||
}]); | ||
@@ -228,0 +246,0 @@ function defineCustomElement$1() { |
@@ -146,2 +146,4 @@ import { r as registerInstance, h, g as getElement, F as Fragment, H as Host } from './index-ab014454.js'; | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem' | ||
}, | ||
@@ -153,2 +155,4 @@ ro: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem' | ||
}, | ||
@@ -160,2 +164,4 @@ fr: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem', | ||
}, | ||
@@ -167,2 +173,4 @@ ar: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem', | ||
}, | ||
@@ -174,2 +182,4 @@ hu: { | ||
noDataFound: 'No data found', | ||
error4003: 'Invalid Session', | ||
redeemFailed: 'Failed to redeem', | ||
} | ||
@@ -262,2 +272,3 @@ }; | ||
this.redeemErrorMsg = ''; | ||
this.isRedeeming = false; | ||
this.deviceType = getDevicePlatform(); | ||
@@ -282,2 +293,3 @@ } | ||
this.redeemErrorMsg = ''; | ||
this.isRedeeming = true; | ||
fetch(url.toString(), claimGiftOptions) | ||
@@ -290,3 +302,6 @@ .then((res) => res.json()) | ||
else { | ||
this.redeemErrorMsg = res.errorMessage; | ||
let translatedError = translate(`error${res.errorCode}`, this.language); | ||
this.redeemErrorMsg = translatedError ? translatedError : translate('redeemFailed', this.language); | ||
console.error('RedeemFailed', res); | ||
window.postMessage({ type: 'FPPGiftClaimFailed', itemId: this.fppGift.id, res }, window.location.href); | ||
} | ||
@@ -296,2 +311,4 @@ }) | ||
window.postMessage({ type: 'FPPGiftClaimFailed', itemId: this.fppGift.id, err }, window.location.href); | ||
}).finally(() => { | ||
this.isRedeeming = false; | ||
}); | ||
@@ -313,3 +330,3 @@ } | ||
let filteredGifts = data.data; | ||
if (filteredGifts.length == 1) { | ||
if (filteredGifts && filteredGifts.length == 1) { | ||
this.fppGift = filteredGifts[0]; | ||
@@ -339,3 +356,3 @@ this.isGiftNotFound = false; | ||
this.onBackClicked(); | ||
} }, '<')), h("div", { class: "Thumnails GiftNotFound" }, translate('noDataFound', this.language), "."))), this.fppGift && h(Fragment, null, h("div", { class: "ThumbnailRow" }, h("div", { class: 'Row' }, h("div", { class: "BackButton", onClick: () => { this.onBackClicked(); } }, '<'), h("bonus-fpp-store-assets-slider", { class: 'Thumbnails', itemsPerPage: 1, sliderItems: this.fppGift.presentation.assets, showSliderDots: this.showSliderDots })), h("div", { class: 'Col Details' }, h("h3", { class: "GiftName" }, this.fppGift.presentation.displayName || this.fppGift.displayName), h("div", { class: "GiftPoints" }, h("span", { class: "Points" }, this.fppGift.points, " "), h("span", { class: " PointsLabel" }, translate('points', this.language))))), h("div", { class: 'StoreItemDetail Details' }, h("div", { class: "GiftPresentation" }, h("p", null, this.fppGift.presentation.description ? this.fppGift.presentation.description : translate('noGiftPresentation', this.language))), h("div", { class: `RedeemButton ${this.fppGift.available === 'false' ? 'Disabled' : ''} | ||
} }, '<')), h("div", { class: "Thumnails GiftNotFound" }, translate('noDataFound', this.language), "."))), this.fppGift && h(Fragment, null, h("div", { class: "ThumbnailRow" }, h("div", { class: 'Row' }, h("div", { class: "BackButton", onClick: () => { this.onBackClicked(); } }, '<'), h("bonus-fpp-store-assets-slider", { class: 'Thumbnails', itemsPerPage: 1, sliderItems: this.fppGift.presentation.assets, showSliderDots: this.showSliderDots })), h("div", { class: 'Col Details' }, h("h3", { class: "GiftName" }, this.fppGift.presentation.displayName || this.fppGift.displayName), h("div", { class: "GiftPoints" }, h("span", { class: "Points" }, this.fppGift.points, " "), h("span", { class: " PointsLabel" }, translate('points', this.language))))), h("div", { class: 'StoreItemDetail Details' }, h("div", { class: "GiftPresentation" }, h("p", null, this.fppGift.presentation.description ? this.fppGift.presentation.description : translate('noGiftPresentation', this.language))), h("div", { class: `RedeemButton ${this.fppGift.available === 'false' || this.isRedeeming ? 'Disabled' : ''} | ||
${this.deviceType == 'dk' ? 'DkButton' : ''}`, onClick: this.redeemGift.bind(this) }, translate('redeem', this.language)), h("span", { class: 'RedeemError Error' }, " ", this.redeemErrorMsg, " ")))))); | ||
@@ -342,0 +359,0 @@ } |
@@ -16,3 +16,3 @@ import { p as promiseResolve, b as bootstrapLazy } from './index-ab014454.js'; | ||
patchBrowser().then(options => { | ||
return bootstrapLazy([["bonus-fpp-store-assets-slider_3",[[1,"bonus-fpp-store-item",{"endpoint":[513],"language":[513],"itemId":[1537,"item-id"],"fppGift":[1040],"session":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"isGiftNotFound":[32],"redeemErrorMsg":[32]}],[0,"bonus-fpp-store-assets-slider",{"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"itemsPerPage":[514,"items-per-page"],"sliderItems":[16],"activeIndex":[32]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options); | ||
return bootstrapLazy([["bonus-fpp-store-assets-slider_3",[[1,"bonus-fpp-store-item",{"endpoint":[513],"language":[513],"itemId":[1537,"item-id"],"fppGift":[1040],"session":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"isGiftNotFound":[32],"redeemErrorMsg":[32],"isRedeeming":[32]}],[0,"bonus-fpp-store-assets-slider",{"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"itemsPerPage":[514,"items-per-page"],"sliderItems":[16],"activeIndex":[32]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options); | ||
}); |
@@ -13,3 +13,3 @@ import { p as promiseResolve, b as bootstrapLazy } from './index-ab014454.js'; | ||
return patchEsm().then(() => { | ||
return bootstrapLazy([["bonus-fpp-store-assets-slider_3",[[1,"bonus-fpp-store-item",{"endpoint":[513],"language":[513],"itemId":[1537,"item-id"],"fppGift":[1040],"session":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"isGiftNotFound":[32],"redeemErrorMsg":[32]}],[0,"bonus-fpp-store-assets-slider",{"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"itemsPerPage":[514,"items-per-page"],"sliderItems":[16],"activeIndex":[32]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options); | ||
return bootstrapLazy([["bonus-fpp-store-assets-slider_3",[[1,"bonus-fpp-store-item",{"endpoint":[513],"language":[513],"itemId":[1537,"item-id"],"fppGift":[1040],"session":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"isGiftNotFound":[32],"redeemErrorMsg":[32],"isRedeeming":[32]}],[0,"bonus-fpp-store-assets-slider",{"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"itemsPerPage":[514,"items-per-page"],"sliderItems":[16],"activeIndex":[32]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options); | ||
}); | ||
@@ -16,0 +16,0 @@ }; |
@@ -46,2 +46,3 @@ import '@everymatrix/general-styling-wrapper'; | ||
redeemErrorMsg: string; | ||
isRedeeming: boolean; | ||
deviceType: string; | ||
@@ -48,0 +49,0 @@ onBackClicked(): void; |
{ | ||
"name": "@everymatrix/bonus-fpp-store-item", | ||
"version": "1.30.1", | ||
"version": "1.31.0", | ||
"main": "./dist/index.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.js", |
453752
8097