@postnord/pn-marketweb-components 2.0.145 → 2.0.147
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/cjs/loader.cjs.js +1 -1
- package/cjs/pn-chart.cjs.entry.js +204 -3
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-marketweb-siteheader-login-links_2.cjs.entry.js +1 -1
- package/cjs/pn-stats-info-data.cjs.entry.js +69 -4
- package/cjs/pn-stats-info.cjs.entry.js +1 -4
- package/collection/components/charts/pn-chart/pn-chart-helper.js +6 -2
- package/collection/components/charts/pn-chart/pn-chart.js +6 -3
- package/collection/components/charts/pn-charts-card/pn-charts-card.stories.js +1 -1
- package/collection/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.js +8 -7
- package/collection/components/data-visualization/pn-stats-info/pn-stats-info.js +1 -4
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +1 -1
- package/custom-elements/index.js +276 -13
- package/esm/loader.js +1 -1
- package/esm/pn-chart.entry.js +204 -3
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-marketweb-siteheader-login-links_2.entry.js +1 -1
- package/esm/pn-stats-info-data.entry.js +69 -4
- package/esm/pn-stats-info.entry.js +1 -4
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-chart.entry.js +9 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-links_2.entry.js +1 -1
- package/esm-es5/pn-stats-info-data.entry.js +1 -1
- package/esm-es5/pn-stats-info.entry.js +1 -1
- package/package.json +4 -2
- package/pn-market-web-components/{p-c5bb2237.system.entry.js → p-0e7900e0.system.entry.js} +1 -1
- package/pn-market-web-components/p-2e4361e7.entry.js +1 -0
- package/pn-market-web-components/{p-05f6c442.system.entry.js → p-2e507907.system.entry.js} +11 -3
- package/pn-market-web-components/{p-4d29f6a6.entry.js → p-773b59c0.entry.js} +11 -3
- package/pn-market-web-components/{p-7decf8dd.entry.js → p-7cb63135.entry.js} +1 -1
- package/pn-market-web-components/p-7d463116.system.entry.js +1 -0
- package/pn-market-web-components/{p-18d54bb3.system.entry.js → p-a62ddaaa.system.entry.js} +1 -1
- package/pn-market-web-components/p-d295ef71.system.js +1 -1
- package/pn-market-web-components/p-fba88e93.entry.js +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/charts/pn-chart/pn-chart-helper.d.ts +15 -1
- package/types/components/charts/pn-chart/pn-chart.d.ts +1 -0
- package/types/components/data-visualization/pn-stats-info/pn-stats-info-data/pn-stats-info-data.d.ts +3 -3
- package/types/components/data-visualization/pn-stats-info/pn-stats-info.d.ts +0 -1
- package/types/components.d.ts +2 -2
- package/umd/pn-marketweb-init.js +1 -1
- package/umd/pn-marketweb-salesforce.js +2 -2
- package/pn-market-web-components/p-2bc6f664.entry.js +0 -1
- package/pn-market-web-components/p-79c88cb9.system.entry.js +0 -1
- package/pn-market-web-components/p-c882d512.entry.js +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
1
2
|
import { h, Host } from '@stencil/core';
|
|
2
3
|
import { animateValue } from './animationHelper';
|
|
3
4
|
import { inViewport } from './viewIntersectionHelper';
|
|
@@ -16,11 +17,11 @@ export class PnStatsInfoData {
|
|
|
16
17
|
this.hasBeenShown = false;
|
|
17
18
|
this.compId = null;
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
-
return
|
|
20
|
+
generateUniqueId() {
|
|
21
|
+
return uuidv4();
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
this.compId = this.
|
|
23
|
+
componentWillLoad() {
|
|
24
|
+
this.compId = this.generateUniqueId();
|
|
24
25
|
}
|
|
25
26
|
watchStateHandlder(newValue, oldValue) {
|
|
26
27
|
const obj = document.getElementById(`pn-stats-info-data-${this.compId}-${this.index}`);
|
|
@@ -122,11 +123,11 @@ export class PnStatsInfoData {
|
|
|
122
123
|
"defaultValue": "1000"
|
|
123
124
|
},
|
|
124
125
|
"index": {
|
|
125
|
-
"type": "
|
|
126
|
+
"type": "number",
|
|
126
127
|
"mutable": false,
|
|
127
128
|
"complexType": {
|
|
128
|
-
"original": "
|
|
129
|
-
"resolved": "
|
|
129
|
+
"original": "number",
|
|
130
|
+
"resolved": "number",
|
|
130
131
|
"references": {}
|
|
131
132
|
},
|
|
132
133
|
"required": false,
|
|
@@ -11,13 +11,10 @@ export class PnStatsInfo {
|
|
|
11
11
|
if (newValue)
|
|
12
12
|
this.myParsedArray = JSON.parse(newValue);
|
|
13
13
|
}
|
|
14
|
-
generateTimeInMilliSeconds() {
|
|
15
|
-
return Math.round(Date.now());
|
|
16
|
-
}
|
|
17
14
|
render() {
|
|
18
15
|
return (h(Host, null, h("div", { class: "pn-stats-info__container" }, h("div", { class: "pn-stats-info__container__map", style: { backgroundImage: `url(${this.backgroundUrl})` } }), h("div", { class: "pn-stats-info-image-container" }, h("slot", { name: "illustration" })), h("div", { class: "pn-stats-info__container__content", style: { backgroundImage: `url(${this.backgroundUrl})` } }, h("h3", { class: "pn-stats-info__container__content__heading" }, this.heading), h("div", { class: "pn-stats-info__container__content__data" }, this.myParsedArray &&
|
|
19
16
|
this.myParsedArray.map((stats, index) => {
|
|
20
|
-
return
|
|
17
|
+
return h("pn-stats-info-data", { index: index, data: stats.data, unit: stats.unit, preamble: stats.preamble, duration: stats.duration });
|
|
21
18
|
}))))));
|
|
22
19
|
}
|
|
23
20
|
static get is() { return "pn-stats-info"; }
|
|
@@ -187,7 +187,7 @@ export class PnMarketwebSiteheaderLoginProfileselection {
|
|
|
187
187
|
let customerNumber = (organization.profiles.length > 0) ? organization.profiles[0].customerNumber : organization.customerNumber;
|
|
188
188
|
return (h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption" }, h("a", { href: `${this.endpoint}/api/user/setprofile?customernumber=${customerNumber}&returnUrl=${window.location.href}`, class: "pn-marketweb-siteheader-login-profileselection-profileoption-link" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-content" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-name" }, organization.name), h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-description" }, organization.customerNumber ? organization.customerNumber : this.userEmail)), h("pn-icon", { symbol: "arrow-right", small: "false", color: "blue700" }))));
|
|
189
189
|
}), this.logoutLink ?
|
|
190
|
-
h("div", { class: "pn-marketweb-siteheader-login-profileselection-logout" }, h("a", { href: this.logoutLink.href, rel: "nofollower noopener", onClick: () => this.loginManager.clearUserData(), class: "pn-marketweb-siteheader-login-profileselection-logout-link" }, this.logoutLink.linkText
|
|
190
|
+
h("div", { class: "pn-marketweb-siteheader-login-profileselection-logout" }, h("a", { href: this.logoutLink.href, rel: "nofollower noopener", onClick: () => this.loginManager.clearUserData(), class: "pn-marketweb-siteheader-login-profileselection-logout-link" }, this.logoutLink.linkText))
|
|
191
191
|
: null));
|
|
192
192
|
}
|
|
193
193
|
static get is() { return "pn-marketweb-siteheader-login-profileselection"; }
|
package/custom-elements/index.js
CHANGED
|
@@ -22015,7 +22015,202 @@ return src;
|
|
|
22015
22015
|
})));
|
|
22016
22016
|
});
|
|
22017
22017
|
|
|
22018
|
-
|
|
22018
|
+
var chartjsPluginDeferred = createCommonjsModule(function (module, exports) {
|
|
22019
|
+
/*!
|
|
22020
|
+
* @license
|
|
22021
|
+
* chartjs-plugin-deferred v1.0.2
|
|
22022
|
+
* https://chartjs-plugin-deferred.netlify.app
|
|
22023
|
+
* (c) 2016-2021 chartjs-plugin-deferred contributors
|
|
22024
|
+
* Released under the MIT license
|
|
22025
|
+
*/
|
|
22026
|
+
(function (global, factory) {
|
|
22027
|
+
factory(Chart) ;
|
|
22028
|
+
}(commonjsGlobal, (function (Chart) {
|
|
22029
|
+
Chart = Chart && Chart.hasOwnProperty('default') ? Chart['default'] : Chart;
|
|
22030
|
+
|
|
22031
|
+
var helpers = Chart.helpers;
|
|
22032
|
+
var STUB_KEY = '$chartjs_deferred';
|
|
22033
|
+
var MODEL_KEY = '$deferred';
|
|
22034
|
+
|
|
22035
|
+
/**
|
|
22036
|
+
* Plugin based on discussion from Chart.js issue #2745.
|
|
22037
|
+
* @see https://github.com/chartjs/Chart.js/issues/2745
|
|
22038
|
+
*/
|
|
22039
|
+
Chart.defaults.global.plugins.deferred = {
|
|
22040
|
+
xOffset: 0,
|
|
22041
|
+
yOffset: 0,
|
|
22042
|
+
delay: 0
|
|
22043
|
+
};
|
|
22044
|
+
|
|
22045
|
+
function defer(fn, delay) {
|
|
22046
|
+
if (delay) {
|
|
22047
|
+
window.setTimeout(fn, delay);
|
|
22048
|
+
} else {
|
|
22049
|
+
helpers.requestAnimFrame.call(window, fn);
|
|
22050
|
+
}
|
|
22051
|
+
}
|
|
22052
|
+
|
|
22053
|
+
function computeOffset(value, base) {
|
|
22054
|
+
var number = parseInt(value, 10);
|
|
22055
|
+
if (isNaN(number)) {
|
|
22056
|
+
return 0;
|
|
22057
|
+
} else if (typeof value === 'string' && value.indexOf('%') !== -1) {
|
|
22058
|
+
return number / 100 * base;
|
|
22059
|
+
}
|
|
22060
|
+
return number;
|
|
22061
|
+
}
|
|
22062
|
+
|
|
22063
|
+
function chartInViewport(chart) {
|
|
22064
|
+
var options = chart[MODEL_KEY].options;
|
|
22065
|
+
var canvas = chart.chart.canvas;
|
|
22066
|
+
|
|
22067
|
+
// http://stackoverflow.com/a/21696585
|
|
22068
|
+
if (!canvas || canvas.offsetParent === null) {
|
|
22069
|
+
return false;
|
|
22070
|
+
}
|
|
22071
|
+
|
|
22072
|
+
var rect = canvas.getBoundingClientRect();
|
|
22073
|
+
var dy = computeOffset(options.yOffset || 0, rect.height);
|
|
22074
|
+
var dx = computeOffset(options.xOffset || 0, rect.width);
|
|
22075
|
+
|
|
22076
|
+
return rect.right - dx >= 0
|
|
22077
|
+
&& rect.bottom - dy >= 0
|
|
22078
|
+
&& rect.left + dx <= window.innerWidth
|
|
22079
|
+
&& rect.top + dy <= window.innerHeight;
|
|
22080
|
+
}
|
|
22081
|
+
|
|
22082
|
+
function onScroll(event) {
|
|
22083
|
+
var node = event.target;
|
|
22084
|
+
var stub = node[STUB_KEY];
|
|
22085
|
+
if (stub.ticking) {
|
|
22086
|
+
return;
|
|
22087
|
+
}
|
|
22088
|
+
|
|
22089
|
+
stub.ticking = true;
|
|
22090
|
+
defer(function() {
|
|
22091
|
+
var charts = stub.charts.slice();
|
|
22092
|
+
var ilen = charts.length;
|
|
22093
|
+
var chart, i;
|
|
22094
|
+
|
|
22095
|
+
for (i = 0; i < ilen; ++i) {
|
|
22096
|
+
chart = charts[i];
|
|
22097
|
+
if (chartInViewport(chart)) {
|
|
22098
|
+
unwatch(chart); // eslint-disable-line
|
|
22099
|
+
chart[MODEL_KEY].appeared = true;
|
|
22100
|
+
chart.update();
|
|
22101
|
+
}
|
|
22102
|
+
}
|
|
22103
|
+
|
|
22104
|
+
stub.ticking = false;
|
|
22105
|
+
});
|
|
22106
|
+
}
|
|
22107
|
+
|
|
22108
|
+
function isScrollable(node) {
|
|
22109
|
+
var type = node.nodeType;
|
|
22110
|
+
if (type === Node.ELEMENT_NODE) {
|
|
22111
|
+
var overflowX = helpers.getStyle(node, 'overflow-x');
|
|
22112
|
+
var overflowY = helpers.getStyle(node, 'overflow-y');
|
|
22113
|
+
return overflowX === 'auto' || overflowX === 'scroll'
|
|
22114
|
+
|| overflowY === 'auto' || overflowY === 'scroll';
|
|
22115
|
+
}
|
|
22116
|
+
|
|
22117
|
+
return node.nodeType === Node.DOCUMENT_NODE;
|
|
22118
|
+
}
|
|
22119
|
+
|
|
22120
|
+
function watch(chart) {
|
|
22121
|
+
var canvas = chart.chart.canvas;
|
|
22122
|
+
var parent = canvas.parentElement;
|
|
22123
|
+
var stub, charts;
|
|
22124
|
+
|
|
22125
|
+
while (parent) {
|
|
22126
|
+
if (isScrollable(parent)) {
|
|
22127
|
+
stub = parent[STUB_KEY] || (parent[STUB_KEY] = {});
|
|
22128
|
+
charts = stub.charts || (stub.charts = []);
|
|
22129
|
+
if (charts.length === 0) {
|
|
22130
|
+
helpers.addEvent(parent, 'scroll', onScroll);
|
|
22131
|
+
}
|
|
22132
|
+
|
|
22133
|
+
charts.push(chart);
|
|
22134
|
+
chart[MODEL_KEY].elements.push(parent);
|
|
22135
|
+
}
|
|
22136
|
+
|
|
22137
|
+
parent = parent.parentElement || parent.ownerDocument;
|
|
22138
|
+
}
|
|
22139
|
+
}
|
|
22140
|
+
|
|
22141
|
+
function unwatch(chart) {
|
|
22142
|
+
chart[MODEL_KEY].elements.forEach(function(element) {
|
|
22143
|
+
var charts = element[STUB_KEY].charts;
|
|
22144
|
+
charts.splice(charts.indexOf(chart), 1);
|
|
22145
|
+
if (!charts.length) {
|
|
22146
|
+
helpers.removeEvent(element, 'scroll', onScroll);
|
|
22147
|
+
delete element[STUB_KEY];
|
|
22148
|
+
}
|
|
22149
|
+
});
|
|
22150
|
+
|
|
22151
|
+
chart[MODEL_KEY].elements = [];
|
|
22152
|
+
}
|
|
22153
|
+
|
|
22154
|
+
Chart.plugins.register({
|
|
22155
|
+
id: 'deferred',
|
|
22156
|
+
|
|
22157
|
+
beforeInit: function(chart, options) {
|
|
22158
|
+
chart[MODEL_KEY] = {
|
|
22159
|
+
options: options,
|
|
22160
|
+
appeared: false,
|
|
22161
|
+
delayed: false,
|
|
22162
|
+
loaded: false,
|
|
22163
|
+
elements: []
|
|
22164
|
+
};
|
|
22165
|
+
|
|
22166
|
+
watch(chart);
|
|
22167
|
+
},
|
|
22168
|
+
|
|
22169
|
+
beforeDatasetsUpdate: function(chart, options) {
|
|
22170
|
+
var model = chart[MODEL_KEY];
|
|
22171
|
+
if (!model.loaded) {
|
|
22172
|
+
if (!model.appeared && !chartInViewport(chart)) {
|
|
22173
|
+
// cancel the datasets update
|
|
22174
|
+
return false;
|
|
22175
|
+
}
|
|
22176
|
+
|
|
22177
|
+
model.appeared = true;
|
|
22178
|
+
model.loaded = true;
|
|
22179
|
+
unwatch(chart);
|
|
22180
|
+
|
|
22181
|
+
if (options.delay > 0) {
|
|
22182
|
+
model.delayed = true;
|
|
22183
|
+
defer(function() {
|
|
22184
|
+
// Ensure the chart instance is still alive. It may have been destroyed
|
|
22185
|
+
// during a delay and calling `chart.update()` will fail. The most common
|
|
22186
|
+
// reason for such scenario is user navigation.
|
|
22187
|
+
// https://github.com/chartjs/chartjs-plugin-deferred/pull/14
|
|
22188
|
+
if (chart.ctx) {
|
|
22189
|
+
model.delayed = false;
|
|
22190
|
+
chart.update();
|
|
22191
|
+
}
|
|
22192
|
+
}, options.delay);
|
|
22193
|
+
|
|
22194
|
+
return false;
|
|
22195
|
+
}
|
|
22196
|
+
}
|
|
22197
|
+
|
|
22198
|
+
if (model.delayed) {
|
|
22199
|
+
// in case of delayed update, ensure to block external requests, such
|
|
22200
|
+
// as interacting with the legend label, or direct calls to update()
|
|
22201
|
+
return false;
|
|
22202
|
+
}
|
|
22203
|
+
},
|
|
22204
|
+
|
|
22205
|
+
destroy: function(chart) {
|
|
22206
|
+
unwatch(chart);
|
|
22207
|
+
}
|
|
22208
|
+
});
|
|
22209
|
+
|
|
22210
|
+
})));
|
|
22211
|
+
});
|
|
22212
|
+
|
|
22213
|
+
const chartCfg = (dataChartType, data, moreThanOneSet = false) => {
|
|
22019
22214
|
let cfg = {
|
|
22020
22215
|
type: dataChartType,
|
|
22021
22216
|
data: data,
|
|
@@ -22024,13 +22219,14 @@ const chartCfg = (dataChartType, data) => {
|
|
|
22024
22219
|
maintainAspectRatio: false,
|
|
22025
22220
|
aspectRatio: 1,
|
|
22026
22221
|
legend: {
|
|
22027
|
-
display:
|
|
22222
|
+
display: moreThanOneSet,
|
|
22028
22223
|
position: 'bottom',
|
|
22029
22224
|
labels: { boxWidth: 20, fontFamily: 'sans-serif' },
|
|
22030
22225
|
},
|
|
22031
22226
|
tooltip: {
|
|
22032
22227
|
enabled: true,
|
|
22033
22228
|
},
|
|
22229
|
+
plugins: { deferred: { enabled: true, yOffset: '50%', delay: 300 } },
|
|
22034
22230
|
},
|
|
22035
22231
|
};
|
|
22036
22232
|
if (dataChartType === 'bar') {
|
|
@@ -22044,6 +22240,9 @@ const chartCfg = (dataChartType, data) => {
|
|
|
22044
22240
|
],
|
|
22045
22241
|
} }) });
|
|
22046
22242
|
}
|
|
22243
|
+
if (dataChartType === 'doughnut' || dataChartType === 'pie') {
|
|
22244
|
+
return Object.assign(Object.assign({}, cfg), { options: Object.assign(Object.assign({}, cfg.options), { legend: Object.assign(Object.assign({}, cfg.options.legend), { display: true }) }) });
|
|
22245
|
+
}
|
|
22047
22246
|
return cfg;
|
|
22048
22247
|
};
|
|
22049
22248
|
const dataSetProps = (set, dataChartType) => {
|
|
@@ -22082,6 +22281,7 @@ const PnChart$1 = class extends HTMLElement {
|
|
|
22082
22281
|
}
|
|
22083
22282
|
dataChangeHandler() {
|
|
22084
22283
|
this.parsedDataSets = JSON.parse(this.dataSets);
|
|
22284
|
+
this.numberOfSetsGreaterThanOne = this.parsedDataSets.length > 1;
|
|
22085
22285
|
this.parsedDatasetWithDataParsed = this.parsedDataSets.map(set => dataSetProps(set, this.dataChartType));
|
|
22086
22286
|
this.data = Object.assign(Object.assign({}, this.data), { datasets: this.parsedDatasetWithDataParsed });
|
|
22087
22287
|
}
|
|
@@ -22094,8 +22294,9 @@ const PnChart$1 = class extends HTMLElement {
|
|
|
22094
22294
|
this.labelsChangeHandler();
|
|
22095
22295
|
}
|
|
22096
22296
|
componentDidLoad() {
|
|
22297
|
+
Chart.Chart.plugins.register(chartjsPluginDeferred);
|
|
22097
22298
|
this.myChartCtxRef = this.element.querySelector('#chart-canvas');
|
|
22098
|
-
this.myChart = new Chart.Chart(this.myChartCtxRef, chartCfg(this.dataChartType, this.data));
|
|
22299
|
+
this.myChart = new Chart.Chart(this.myChartCtxRef, chartCfg(this.dataChartType, this.data, this.numberOfSetsGreaterThanOne));
|
|
22099
22300
|
}
|
|
22100
22301
|
render() {
|
|
22101
22302
|
return (h(Host, null, h("div", { class: "chart-wrapper" }, h("canvas", { id: "chart-canvas", class: "pnChart" }))));
|
|
@@ -27289,7 +27490,7 @@ const PnMarketwebSiteheaderLoginProfileselection$1 = class extends HTMLElement {
|
|
|
27289
27490
|
let customerNumber = (organization.profiles.length > 0) ? organization.profiles[0].customerNumber : organization.customerNumber;
|
|
27290
27491
|
return (h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption" }, h("a", { href: `${this.endpoint}/api/user/setprofile?customernumber=${customerNumber}&returnUrl=${window.location.href}`, class: "pn-marketweb-siteheader-login-profileselection-profileoption-link" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-content" }, h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-name" }, organization.name), h("div", { class: "pn-marketweb-siteheader-login-profileselection-profileoption-description" }, organization.customerNumber ? organization.customerNumber : this.userEmail)), h("pn-icon", { symbol: "arrow-right", small: "false", color: "blue700" }))));
|
|
27291
27492
|
}), this.logoutLink ?
|
|
27292
|
-
h("div", { class: "pn-marketweb-siteheader-login-profileselection-logout" }, h("a", { href: this.logoutLink.href, rel: "nofollower noopener", onClick: () => this.loginManager.clearUserData(), class: "pn-marketweb-siteheader-login-profileselection-logout-link" }, this.logoutLink.linkText
|
|
27493
|
+
h("div", { class: "pn-marketweb-siteheader-login-profileselection-logout" }, h("a", { href: this.logoutLink.href, rel: "nofollower noopener", onClick: () => this.loginManager.clearUserData(), class: "pn-marketweb-siteheader-login-profileselection-logout-link" }, this.logoutLink.linkText))
|
|
27293
27494
|
: null));
|
|
27294
27495
|
}
|
|
27295
27496
|
get hostElement() { return this; }
|
|
@@ -28790,13 +28991,10 @@ const PnStatsInfo$1 = class extends HTMLElement {
|
|
|
28790
28991
|
if (newValue)
|
|
28791
28992
|
this.myParsedArray = JSON.parse(newValue);
|
|
28792
28993
|
}
|
|
28793
|
-
generateTimeInMilliSeconds() {
|
|
28794
|
-
return Math.round(Date.now());
|
|
28795
|
-
}
|
|
28796
28994
|
render() {
|
|
28797
28995
|
return (h(Host, null, h("div", { class: "pn-stats-info__container" }, h("div", { class: "pn-stats-info__container__map", style: { backgroundImage: `url(${this.backgroundUrl})` } }), h("div", { class: "pn-stats-info-image-container" }, h("slot", { name: "illustration" })), h("div", { class: "pn-stats-info__container__content", style: { backgroundImage: `url(${this.backgroundUrl})` } }, h("h3", { class: "pn-stats-info__container__content__heading" }, this.heading), h("div", { class: "pn-stats-info__container__content__data" }, this.myParsedArray &&
|
|
28798
28996
|
this.myParsedArray.map((stats, index) => {
|
|
28799
|
-
return
|
|
28997
|
+
return h("pn-stats-info-data", { index: index, data: stats.data, unit: stats.unit, preamble: stats.preamble, duration: stats.duration });
|
|
28800
28998
|
}))))));
|
|
28801
28999
|
}
|
|
28802
29000
|
static get watchers() { return {
|
|
@@ -28805,6 +29003,71 @@ const PnStatsInfo$1 = class extends HTMLElement {
|
|
|
28805
29003
|
static get style() { return pnStatsInfoCss; }
|
|
28806
29004
|
};
|
|
28807
29005
|
|
|
29006
|
+
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
29007
|
+
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
29008
|
+
// generators (like Math.random()).
|
|
29009
|
+
let getRandomValues;
|
|
29010
|
+
const rnds8 = new Uint8Array(16);
|
|
29011
|
+
function rng() {
|
|
29012
|
+
// lazy load so that environments that need to polyfill have a chance to do so
|
|
29013
|
+
if (!getRandomValues) {
|
|
29014
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
29015
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
29016
|
+
|
|
29017
|
+
if (!getRandomValues) {
|
|
29018
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
29019
|
+
}
|
|
29020
|
+
}
|
|
29021
|
+
|
|
29022
|
+
return getRandomValues(rnds8);
|
|
29023
|
+
}
|
|
29024
|
+
|
|
29025
|
+
/**
|
|
29026
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
|
29027
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
29028
|
+
*/
|
|
29029
|
+
|
|
29030
|
+
const byteToHex = [];
|
|
29031
|
+
|
|
29032
|
+
for (let i = 0; i < 256; ++i) {
|
|
29033
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
29034
|
+
}
|
|
29035
|
+
|
|
29036
|
+
function unsafeStringify(arr, offset = 0) {
|
|
29037
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
|
29038
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
29039
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
29040
|
+
}
|
|
29041
|
+
|
|
29042
|
+
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
29043
|
+
const native = {
|
|
29044
|
+
randomUUID
|
|
29045
|
+
};
|
|
29046
|
+
|
|
29047
|
+
function v4(options, buf, offset) {
|
|
29048
|
+
if (native.randomUUID && !buf && !options) {
|
|
29049
|
+
return native.randomUUID();
|
|
29050
|
+
}
|
|
29051
|
+
|
|
29052
|
+
options = options || {};
|
|
29053
|
+
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
29054
|
+
|
|
29055
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
29056
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
29057
|
+
|
|
29058
|
+
if (buf) {
|
|
29059
|
+
offset = offset || 0;
|
|
29060
|
+
|
|
29061
|
+
for (let i = 0; i < 16; ++i) {
|
|
29062
|
+
buf[offset + i] = rnds[i];
|
|
29063
|
+
}
|
|
29064
|
+
|
|
29065
|
+
return buf;
|
|
29066
|
+
}
|
|
29067
|
+
|
|
29068
|
+
return unsafeStringify(rnds);
|
|
29069
|
+
}
|
|
29070
|
+
|
|
28808
29071
|
const animateValue = (obj, start = 0, end = 100, duration = 1000) => {
|
|
28809
29072
|
let startTimestamp = null;
|
|
28810
29073
|
const step = (timestamp) => {
|
|
@@ -28846,11 +29109,11 @@ const PnStatsInfoData$1 = class extends HTMLElement {
|
|
|
28846
29109
|
this.hasBeenShown = false;
|
|
28847
29110
|
this.compId = null;
|
|
28848
29111
|
}
|
|
28849
|
-
|
|
28850
|
-
return
|
|
29112
|
+
generateUniqueId() {
|
|
29113
|
+
return v4();
|
|
28851
29114
|
}
|
|
28852
|
-
|
|
28853
|
-
this.compId = this.
|
|
29115
|
+
componentWillLoad() {
|
|
29116
|
+
this.compId = this.generateUniqueId();
|
|
28854
29117
|
}
|
|
28855
29118
|
watchStateHandlder(newValue, oldValue) {
|
|
28856
29119
|
const obj = document.getElementById(`pn-stats-info-data-${this.compId}-${this.index}`);
|
|
@@ -28978,7 +29241,7 @@ const PnSiteSelector = /*@__PURE__*/proxyCustomElement(PnSiteSelector$1, [4,"pn-
|
|
|
28978
29241
|
const PnSiteSelectorItem = /*@__PURE__*/proxyCustomElement(PnSiteSelectorItem$1, [0,"pn-site-selector-item",{"url":[1],"heading":[1],"description":[1],"newwindow":[4]}]);
|
|
28979
29242
|
const PnSpotlight = /*@__PURE__*/proxyCustomElement(PnSpotlight$1, [4,"pn-spotlight",{"heading":[1],"preamble":[1]}]);
|
|
28980
29243
|
const PnStatsInfo = /*@__PURE__*/proxyCustomElement(PnStatsInfo$1, [4,"pn-stats-info",{"heading":[1],"dataArray":[1,"data-array"],"backgroundUrl":[1,"background-url"],"myParsedArray":[32]}]);
|
|
28981
|
-
const PnStatsInfoData = /*@__PURE__*/proxyCustomElement(PnStatsInfoData$1, [0,"pn-stats-info-data",{"data":[2],"unit":[1],"preamble":[1],"duration":[2],"index":[
|
|
29244
|
+
const PnStatsInfoData = /*@__PURE__*/proxyCustomElement(PnStatsInfoData$1, [0,"pn-stats-info-data",{"data":[2],"unit":[1],"preamble":[1],"duration":[2],"index":[2],"hasBeenShown":[32],"compId":[32]}]);
|
|
28982
29245
|
const PnTeaserCard = /*@__PURE__*/proxyCustomElement(PnTeaserCard$1, [4,"pn-teaser-card",{"text":[1],"heading":[1],"label":[1],"dataCardColor":[513,"data-card-color"],"dataCardAlignment":[513,"data-card-alignment"],"hasCtaSlotContent":[32],"hasIllustrationSlot":[32]}]);
|
|
28983
29246
|
const PnTitletag = /*@__PURE__*/proxyCustomElement(PnTiletag, [4,"pn-titletag",{"icon":[1],"color":[1537]}]);
|
|
28984
29247
|
const defineCustomElements = (opts) => {
|
package/esm/loader.js
CHANGED
|
@@ -11,7 +11,7 @@ const patchEsm = () => {
|
|
|
11
11
|
const defineCustomElements = (win, options) => {
|
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
13
|
return patchEsm().then(() => {
|
|
14
|
-
return bootstrapLazy(JSON.parse("[[\"pn-marketweb-siteheader\",[[4,\"pn-marketweb-siteheader\",{\"market\":[1537],\"language\":[1537],\"siteid\":[1],\"environment\":[1537],\"userToken\":[1,\"user-token\"],\"userFullname\":[1,\"user-fullname\"],\"userLoggedin\":[516,\"user-loggedin\"],\"endpoint\":[1],\"hideSiteSelector\":[1540,\"hide-site-selector\"],\"hideHomeMenuItem\":[1540,\"hide-home-menu-item\"],\"hideLanguageSelector\":[1540,\"hide-language-selector\"],\"hideSearch\":[1540,\"hide-search\"],\"hideLogin\":[1540,\"hide-login\"],\"showProfileSelection\":[1540,\"show-profile-selection\"],\"siteDomainInUrls\":[4,\"site-domain-in-urls\"],\"AutocompleteEndpoint\":[1,\"autocomplete-endpoint\"],\"sessionForward\":[4,\"session-forward\"],\"cache\":[4],\"searchPlaceholder\":[1,\"search-placeholder\"],\"spaMode\":[4,\"spa-mode\"],\"i18n\":[32],\"gotData\":[32],\"fetchingData\":[32],\"homePageLink\":[32],\"menuItems\":[32],\"siteDefinition\":[32],\"search\":[32],\"siteSelector\":[32],\"languageSelector\":[32],\"languageOptions\":[32],\"loginDialog\":[32],\"minimizeSearch\":[32],\"loggedIn\":[32],\"loginManager\":[32]},[[0,\"setLanguage\",\"onLanguageSelectorChange\"],[0,\"loginStateChange\",\"onLoginStateChange\"],[9,\"resize\",\"handleResize\"]]]]],[\"pn-find-price\",[[0,\"pn-find-price\",{\"source\":[1],\"language\":[1025],\"market\":[1025],\"filteredItems\":[32],\"weight\":[32],\"weightvalue\":[32],\"sourceData\":[32],\"sizecategory\":[32]}]]],[\"pn-find-service-and-price\",[[0,\"pn-find-service-and-price\",{\"source\":[1],\"language\":[1025],\"market\":[1025],\"filteredItems\":[32],\"postagetype\":[32],\"weight\":[32],\"weightvalue\":[32],\"deliveryscope\":[32],\"sourceData\":[32]}]]],[\"pn-product-pricelist\",[[4,\"pn-product-pricelist\",{\"source\":[1],\"language\":[1025],\"market\":[1025],\"productid\":[1],\"filteredItems\":[32],\"sourceData\":[32],\"gotData\":[32],\"loading\":[32],\"postagetype\":[32],\"weight\":[32],\"weightvalue\":[32]}]]],[\"pn-proxio-pricegroup\",[[0,\"pn-proxio-pricegroup\",{\"endpoint\":[1025],\"language\":[1],\"market\":[1],\"tariffid\":[1],\"cache\":[4],\"activeWeightIndex\":[32],\"data\":[32],\"i18n\":[32]},[[0,\"activeWeightIndex\",\"setActiveWeightIndex\"],[0,\"language\",\"setLanguage\"]]]]],[\"pn-product-pricelist-result\",[[0,\"pn-product-pricelist-result\",{\"item\":[1040],\"description\":[16],\"shownitems\":[16],\"showMeasurement\":[4,\"show-measurement\"],\"weightText\":[32]}]]],[\"pn-marketweb-sitefooter\",[[4,\"pn-marketweb-sitefooter\",{\"market\":[1537],\"language\":[1537],\"environment\":[1537],\"endpoint\":[1],\"siteDomainInUrls\":[4,\"site-domain-in-urls\"],\"cache\":[4],\"theme\":[513],\"backgroundcolor\":[513],\"siteDefinition\":[32],\"footerContent\":[32],\"i18n\":[32],\"gotData\":[32],\"fetchingData\":[32]}]]],[\"pn-parcel-tracker\",[[0,\"pn-parcel-tracker\",{\"formActionUrl\":[1,\"form-action-url\"],\"heading\":[1],\"buttonLabel\":[1,\"button-label\"],\"locale\":[1],\"placeholder\":[1],\"inputName\":[1,\"input-name\"],\"currentWidth\":[32]},[[9,\"resize\",\"handleViewportSizeChange\"]]]]],[\"pn-pex-pricefinder\",[[0,\"pn-pex-pricefinder\",{\"language\":[1],\"currency\":[1],\"apiUrl\":[1,\"api-url\"],\"i18n\":[32],\"fromzip\":[32],\"tozip\":[32],\"weight\":[32],\"when\":[32],\"response\":[32]},[[0,\"language\",\"setLanguage\"]]]]],[\"pn-stats-info\",[[4,\"pn-stats-info\",{\"heading\":[1],\"dataArray\":[1,\"data-array\"],\"backgroundUrl\":[1,\"background-url\"],\"myParsedArray\":[32]}]]],[\"pn-bonus-progressbar\",[[4,\"pn-bonus-progressbar\",{\"icon\":[1],\"heading\":[1],\"sumtext\":[513],\"theme\":[513],\"bonuspercentage\":[1],\"currency\":[513],\"value\":[1538],\"min\":[1538],\"max\":[1538],\"valuepercentage\":[32],\"progresspercentage\":[32],\"levelValues\":[32],\"currentLevelAdjustedValue\":[32]}]]],[\"pn-bonus-progressbar-level\",[[0,\"pn-bonus-progressbar-level\",{\"current\":[516],\"value\":[1538],\"bonuspercentage\":[1537],\"visualpercentage\":[1538],\"percentage\":[32],\"max\":[32],\"min\":[32],\"currency\":[32]}]]],[\"pn-breakpoints\",[[0,\"pn-breakpoints\",{\"breakPointClass\":[1,\"break-point-class\"],\"currentWidth\":[32]},[[9,\"resize\",\"handleViewportSizeChange\"]]]]],[\"pn-chart\",[[0,\"pn-chart\",{\"labels\":[1],\"dataSets\":[1,\"data-sets\"],\"dataChartType\":[8,\"data-chart-type\"],\"myChartCtxRef\":[32]}]]],[\"pn-charts-card\",[[4,\"pn-charts-card\",{\"header\":[1],\"highlight\":[1],\"preamble\":[1],\"label\":[1],\"source\":[1],\"sourceUrl\":[1,\"source-url\"],\"openInNewWindow\":[4,\"open-in-new-window\"],\"someState\":[32]}]]],[\"pn-customernumber-selector\",[[4,\"pn-customernumber-selector\",{\"language\":[1537],\"open\":[1540],\"heading\":[1],\"description\":[1],\"i18n\":[32]}]]],[\"pn-customernumber-selector-option\",[[4,\"pn-customernumber-selector-option\",{\"heading\":[1],\"description\":[1],\"url\":[1]}]]],[\"pn-filter-checkbox\",[[1,\"pn-filter-checkbox\",{\"value\":[520],\"name\":[1],\"checkboxid\":[1],\"disabled\":[4],\"checked\":[4],\"indeterminate\":[1028]},[[0,\"change\",\"handlechange\"]]]]],[\"pn-line-shape\",[[0,\"pn-line-shape\"]]],[\"pn-marketweb-search\",[[1,\"pn-marketweb-search\",{\"disabled\":[4],\"placeholder\":[1],\"inputid\":[1],\"name\":[1],\"autocomplete\":[1],\"list\":[1],\"value\":[1],\"label\":[1],\"loading\":[4],\"button\":[1],\"light\":[4],\"suggestionObserver\":[32],\"hasClonedInput\":[32],\"listSuggestion\":[32]},[[0,\"input\",\"inputHandler\"]]]]],[\"pn-product-tile\",[[4,\"pn-product-tile\"]]],[\"pn-profile-modal\",[[4,\"pn-profile-modal\",{\"heading\":[1],\"continueCtaText\":[1,\"continue-cta-text\"],\"choosenCompanyText\":[1,\"choosen-company-text\"],\"toText\":[1,\"to-text\"],\"chooseCustomerNumberText\":[1,\"choose-customer-number-text\"],\"isLoading\":[32]},[[0,\"urlSelected\",\"onUrlSelected\"]]]]],[\"pn-profile-modal-customernumber\",[[4,\"pn-profile-modal-customernumber\",{\"url\":[513],\"customernumber\":[513],\"selected\":[516]}]]],[\"pn-profile-modal-profile\",[[4,\"pn-profile-modal-profile\",{\"heading\":[513],\"description\":[513],\"url\":[513],\"selected\":[1028],\"showCustomerNumbers\":[516,\"show-customer-numbers\"],\"pleaseSelectText\":[513,\"please-select-text\"],\"visible\":[1540],\"identifier\":[32]}]]],[\"pn-profile-modal-type\",[[4,\"pn-profile-modal-type\",{\"typeid\":[513],\"name\":[1025],\"selected\":[1028],\"selectedprofile\":[1025]}]]],[\"pn-profile-selector\",[[4,\"pn-profile-selector\",{\"language\":[1537],\"returnUrl\":[1,\"return-url\"],\"heading\":[1],\"i18n\":[32],\"isLoading\":[32],\"numberOfProfiles\":[32]}]]],[\"pn-profile-selector-option\",[[0,\"pn-profile-selector-option\",{\"heading\":[1],\"description\":[1],\"url\":[1]}]]],[\"pn-quick-cta\",[[4,\"pn-quick-cta\",{\"heading\":[1],\"preamble\":[1]}]]],[\"pn-quote-card\",[[4,\"pn-quote-card\",{\"quote\":[1],\"name\":[1],\"occupation\":[1]}]]],[\"pn-sidenav\",[[4,\"pn-sidenav\",{\"language\":[1],\"navLabel\":[1,\"nav-label\"],\"i18n\":[32]},[[0,\"language\",\"setLanguage\"],[0,\"openSubMenuLevelChange\",\"onOpenSubMenuLevelChange\"]]]]],[\"pn-sidenav-level\",[[4,\"pn-sidenav-level\",{\"level\":[32],\"levelId\":[32],\"isOpen\":[32],\"parentName\":[32],\"parentHref\":[32],\"parentLinkId\":[32],\"alignment\":[32]}]]],[\"pn-sidenav-link\",[[4,\"pn-sidenav-link\",{\"name\":[1],\"href\":[1],\"target\":[1],\"linkid\":[1],\"icon\":[1],\"current\":[4],\"levelId\":[32],\"open\":[32],\"hasChildren\":[32]}]]],[\"pn-sidenav-togglebutton\",[[4,\"pn-sidenav-togglebutton\",{\"label\":[1],\"i18n\":[32]}]]],[\"pn-spotlight\",[[4,\"pn-spotlight\",{\"heading\":[1],\"preamble\":[1]}]]],[\"pn-teaser-card\",[[4,\"pn-teaser-card\",{\"text\":[1],\"heading\":[1],\"label\":[1],\"dataCardColor\":[513,\"data-card-color\"],\"dataCardAlignment\":[513,\"data-card-alignment\"],\"hasCtaSlotContent\":[32],\"hasIllustrationSlot\":[32]}]]],[\"pn-product-card_4\",[[0,\"pn-product-card-info\",{\"rulle\":[1],\"paket\":[1],\"label\":[1],\"text\":[1]}],[0,\"pn-product-card-price\",{\"label\":[1],\"amount\":[1],\"currency\":[1],\"note\":[1],\"url\":[1],\"service\":[1],\"linkid\":[1]}],[4,\"pn-titletag\",{\"icon\":[1],\"color\":[1537]}],[4,\"pn-product-card\"]]],[\"pn-find-service-and-price-result\",[[0,\"pn-find-service-and-price-result\",{\"item\":[1040],\"shownitems\":[16],\"weightText\":[32]}]]],[\"pn-stats-info-data\",[[0,\"pn-stats-info-data\",{\"data\":[2],\"unit\":[1],\"preamble\":[1],\"duration\":[2],\"index\":[1],\"hasBeenShown\":[32],\"compId\":[32]}]]],[\"pn-find-price-result\",[[0,\"pn-find-price-result\",{\"item\":[1040],\"shownitems\":[16],\"Usp1\":[1,\"usp-1\"],\"Usp2\":[1,\"usp-2\"],\"Usp3\":[1,\"usp-3\"],\"description\":[16],\"showMeasurement\":[4,\"show-measurement\"],\"weightText\":[32],\"linkId\":[32],\"shopLabel\":[32],\"shopUrl\":[32],\"shopId\":[32]}]]],[\"pn-site-footer_2\",[[4,\"pn-site-footer\",{\"url\":[1],\"linktitle\":[1],\"theme\":[513]}],[4,\"pn-site-footer-col\",{\"theme\":[513]}]]],[\"pn-choice-button\",[[4,\"pn-choice-button\",{\"value\":[520],\"name\":[1],\"choiceid\":[1],\"type\":[1],\"disabled\":[4],\"checked\":[4],\"indeterminate\":[1028]},[[0,\"change\",\"handlechange\"]]]]],[\"pn-mainnav-link\",[[4,\"pn-mainnav-link\",{\"name\":[1],\"href\":[1],\"target\":[1],\"linkid\":[1],\"levelId\":[32],\"open\":[32],\"hasChildren\":[32]}]]],[\"pn-marketweb-input\",[[0,\"pn-marketweb-input\",{\"disabled\":[4],\"error\":[1],\"invalid\":[4],\"helpertext\":[1],\"label\":[1],\"placeholder\":[1],\"inputid\":[1],\"name\":[1],\"required\":[4],\"type\":[1025],\"autocomplete\":[1],\"valid\":[4],\"value\":[1],\"maxlength\":[1],\"min\":[1],\"max\":[1],\"step\":[1],\"pattern\":[1],\"showText\":[32]}]]],[\"pn-marketweb-siteheader-login-links_2\",[[0,\"pn-marketweb-siteheader-login-links\",{\"loginDialog\":[1040],\"loginManager\":[16],\"idNamespace\":[1,\"id-namespace\"],\"loggedin\":[516],\"username\":[1]}],[0,\"pn-marketweb-siteheader-login-profileselection\",{\"loginDialog\":[1040],\"loginManager\":[16],\"endpoint\":[1],\"loggedin\":[4],\"idNamespace\":[1,\"id-namespace\"],\"heading\":[1],\"i18n\":[16],\"currentProfile\":[1040],\"profileoptions\":[1040],\"user\":[32],\"logoutLink\":[32],\"userName\":[32],\"userEmail\":[32]}]]],[\"pn-proxio-productcard_4\",[[4,\"pn-proxio-productcard\"],[0,\"pn-proxio-productcard-description\",{\"heading\":[1],\"highlight\":[1],\"description\":[1],\"list\":[1040]}],[0,\"pn-proxio-productcard-information\",{\"label\":[1],\"information\":[16]}],[0,\"pn-proxio-productcard-pricelink\",{\"price\":[1],\"link\":[1],\"linktext\":[1]}]]],[\"pn-product-tile-info_2\",[[0,\"pn-product-tile-info\",{\"label\":[1],\"text\":[1],\"icon\":[1]}],[0,\"pn-product-tile-price\",{\"label\":[1],\"amount\":[1],\"currency\":[1],\"url\":[1]}]]],[\"pn-marketweb-siteheader-login-linklist\",[[0,\"pn-marketweb-siteheader-login-linklist\",{\"heading\":[1],\"links\":[16],\"idNamespace\":[1,\"id-namespace\"],\"loginManager\":[16]}]]],[\"pn-language-selector_9\",[[0,\"pn-marketweb-siteheader-login\",{\"endpoint\":[1],\"token\":[1],\"i18n\":[16],\"siteUrl\":[1,\"site-url\"],\"emitEvents\":[4,\"emit-events\"],\"loginDialog\":[1040],\"fullname\":[1],\"loggedin\":[4],\"showProfileSelection\":[1028,\"show-profile-selection\"],\"loginManager\":[32],\"loginLinks\":[32],\"toggleButtonText\":[32],\"username\":[32]}],[4,\"pn-mainnav-level\",{\"label\":[1537],\"level\":[32],\"levelId\":[32],\"isOpen\":[32],\"parentName\":[32],\"parentHref\":[32],\"parentLinkId\":[32],\"listCount\":[32],\"alignment\":[32]}],[4,\"pn-language-selector\",{\"value\":[1537],\"selectedLanguageName\":[32],\"options\":[32],\"i18n\":[32]}],[0,\"pn-language-selector-option\",{\"name\":[1],\"code\":[1],\"url\":[1],\"selected\":[4],\"currentLanguage\":[1,\"current-language\"]}],[4,\"pn-mainnav\",{\"market\":[1],\"language\":[1],\"navigationId\":[1,\"navigation-id\"],\"openMenu\":[1028,\"open-menu\"],\"navLabel\":[1,\"nav-label\"]},[[0,\"language\",\"setLanguage\"],[0,\"market\",\"setMarket\"],[0,\"menuLanguageChange\",\"onLanguageChange\"],[0,\"setmenuopenstate\",\"setMenuOpenState\"],[0,\"openMenuLevelChange\",\"onOpenMenuLevelChange\"]]],[4,\"pn-mainnav-list\",{\"heading\":[1],\"linkCount\":[32]}],[0,\"pn-marketweb-siteheader-search\",{\"i18n\":[8,\"i-1-8n\"],\"showOnlyLink\":[1028,\"show-only-link\"],\"hideSearch\":[1028,\"hide-search\"],\"language\":[1537],\"siteid\":[1],\"search\":[1040],\"primary\":[4],\"icononly\":[4],\"autoCompleteOptions\":[32]}],[4,\"pn-site-selector\",{\"buttontext\":[1537],\"heading\":[1537],\"language\":[1537],\"i18n\":[32]}],[0,\"pn-site-selector-item\",{\"url\":[1],\"heading\":[1],\"description\":[1],\"newwindow\":[4]}]]]]"), options);
|
|
14
|
+
return bootstrapLazy(JSON.parse("[[\"pn-marketweb-siteheader\",[[4,\"pn-marketweb-siteheader\",{\"market\":[1537],\"language\":[1537],\"siteid\":[1],\"environment\":[1537],\"userToken\":[1,\"user-token\"],\"userFullname\":[1,\"user-fullname\"],\"userLoggedin\":[516,\"user-loggedin\"],\"endpoint\":[1],\"hideSiteSelector\":[1540,\"hide-site-selector\"],\"hideHomeMenuItem\":[1540,\"hide-home-menu-item\"],\"hideLanguageSelector\":[1540,\"hide-language-selector\"],\"hideSearch\":[1540,\"hide-search\"],\"hideLogin\":[1540,\"hide-login\"],\"showProfileSelection\":[1540,\"show-profile-selection\"],\"siteDomainInUrls\":[4,\"site-domain-in-urls\"],\"AutocompleteEndpoint\":[1,\"autocomplete-endpoint\"],\"sessionForward\":[4,\"session-forward\"],\"cache\":[4],\"searchPlaceholder\":[1,\"search-placeholder\"],\"spaMode\":[4,\"spa-mode\"],\"i18n\":[32],\"gotData\":[32],\"fetchingData\":[32],\"homePageLink\":[32],\"menuItems\":[32],\"siteDefinition\":[32],\"search\":[32],\"siteSelector\":[32],\"languageSelector\":[32],\"languageOptions\":[32],\"loginDialog\":[32],\"minimizeSearch\":[32],\"loggedIn\":[32],\"loginManager\":[32]},[[0,\"setLanguage\",\"onLanguageSelectorChange\"],[0,\"loginStateChange\",\"onLoginStateChange\"],[9,\"resize\",\"handleResize\"]]]]],[\"pn-find-price\",[[0,\"pn-find-price\",{\"source\":[1],\"language\":[1025],\"market\":[1025],\"filteredItems\":[32],\"weight\":[32],\"weightvalue\":[32],\"sourceData\":[32],\"sizecategory\":[32]}]]],[\"pn-find-service-and-price\",[[0,\"pn-find-service-and-price\",{\"source\":[1],\"language\":[1025],\"market\":[1025],\"filteredItems\":[32],\"postagetype\":[32],\"weight\":[32],\"weightvalue\":[32],\"deliveryscope\":[32],\"sourceData\":[32]}]]],[\"pn-product-pricelist\",[[4,\"pn-product-pricelist\",{\"source\":[1],\"language\":[1025],\"market\":[1025],\"productid\":[1],\"filteredItems\":[32],\"sourceData\":[32],\"gotData\":[32],\"loading\":[32],\"postagetype\":[32],\"weight\":[32],\"weightvalue\":[32]}]]],[\"pn-proxio-pricegroup\",[[0,\"pn-proxio-pricegroup\",{\"endpoint\":[1025],\"language\":[1],\"market\":[1],\"tariffid\":[1],\"cache\":[4],\"activeWeightIndex\":[32],\"data\":[32],\"i18n\":[32]},[[0,\"activeWeightIndex\",\"setActiveWeightIndex\"],[0,\"language\",\"setLanguage\"]]]]],[\"pn-product-pricelist-result\",[[0,\"pn-product-pricelist-result\",{\"item\":[1040],\"description\":[16],\"shownitems\":[16],\"showMeasurement\":[4,\"show-measurement\"],\"weightText\":[32]}]]],[\"pn-marketweb-sitefooter\",[[4,\"pn-marketweb-sitefooter\",{\"market\":[1537],\"language\":[1537],\"environment\":[1537],\"endpoint\":[1],\"siteDomainInUrls\":[4,\"site-domain-in-urls\"],\"cache\":[4],\"theme\":[513],\"backgroundcolor\":[513],\"siteDefinition\":[32],\"footerContent\":[32],\"i18n\":[32],\"gotData\":[32],\"fetchingData\":[32]}]]],[\"pn-parcel-tracker\",[[0,\"pn-parcel-tracker\",{\"formActionUrl\":[1,\"form-action-url\"],\"heading\":[1],\"buttonLabel\":[1,\"button-label\"],\"locale\":[1],\"placeholder\":[1],\"inputName\":[1,\"input-name\"],\"currentWidth\":[32]},[[9,\"resize\",\"handleViewportSizeChange\"]]]]],[\"pn-pex-pricefinder\",[[0,\"pn-pex-pricefinder\",{\"language\":[1],\"currency\":[1],\"apiUrl\":[1,\"api-url\"],\"i18n\":[32],\"fromzip\":[32],\"tozip\":[32],\"weight\":[32],\"when\":[32],\"response\":[32]},[[0,\"language\",\"setLanguage\"]]]]],[\"pn-stats-info\",[[4,\"pn-stats-info\",{\"heading\":[1],\"dataArray\":[1,\"data-array\"],\"backgroundUrl\":[1,\"background-url\"],\"myParsedArray\":[32]}]]],[\"pn-bonus-progressbar\",[[4,\"pn-bonus-progressbar\",{\"icon\":[1],\"heading\":[1],\"sumtext\":[513],\"theme\":[513],\"bonuspercentage\":[1],\"currency\":[513],\"value\":[1538],\"min\":[1538],\"max\":[1538],\"valuepercentage\":[32],\"progresspercentage\":[32],\"levelValues\":[32],\"currentLevelAdjustedValue\":[32]}]]],[\"pn-bonus-progressbar-level\",[[0,\"pn-bonus-progressbar-level\",{\"current\":[516],\"value\":[1538],\"bonuspercentage\":[1537],\"visualpercentage\":[1538],\"percentage\":[32],\"max\":[32],\"min\":[32],\"currency\":[32]}]]],[\"pn-breakpoints\",[[0,\"pn-breakpoints\",{\"breakPointClass\":[1,\"break-point-class\"],\"currentWidth\":[32]},[[9,\"resize\",\"handleViewportSizeChange\"]]]]],[\"pn-chart\",[[0,\"pn-chart\",{\"labels\":[1],\"dataSets\":[1,\"data-sets\"],\"dataChartType\":[8,\"data-chart-type\"],\"myChartCtxRef\":[32]}]]],[\"pn-charts-card\",[[4,\"pn-charts-card\",{\"header\":[1],\"highlight\":[1],\"preamble\":[1],\"label\":[1],\"source\":[1],\"sourceUrl\":[1,\"source-url\"],\"openInNewWindow\":[4,\"open-in-new-window\"],\"someState\":[32]}]]],[\"pn-customernumber-selector\",[[4,\"pn-customernumber-selector\",{\"language\":[1537],\"open\":[1540],\"heading\":[1],\"description\":[1],\"i18n\":[32]}]]],[\"pn-customernumber-selector-option\",[[4,\"pn-customernumber-selector-option\",{\"heading\":[1],\"description\":[1],\"url\":[1]}]]],[\"pn-filter-checkbox\",[[1,\"pn-filter-checkbox\",{\"value\":[520],\"name\":[1],\"checkboxid\":[1],\"disabled\":[4],\"checked\":[4],\"indeterminate\":[1028]},[[0,\"change\",\"handlechange\"]]]]],[\"pn-line-shape\",[[0,\"pn-line-shape\"]]],[\"pn-marketweb-search\",[[1,\"pn-marketweb-search\",{\"disabled\":[4],\"placeholder\":[1],\"inputid\":[1],\"name\":[1],\"autocomplete\":[1],\"list\":[1],\"value\":[1],\"label\":[1],\"loading\":[4],\"button\":[1],\"light\":[4],\"suggestionObserver\":[32],\"hasClonedInput\":[32],\"listSuggestion\":[32]},[[0,\"input\",\"inputHandler\"]]]]],[\"pn-product-tile\",[[4,\"pn-product-tile\"]]],[\"pn-profile-modal\",[[4,\"pn-profile-modal\",{\"heading\":[1],\"continueCtaText\":[1,\"continue-cta-text\"],\"choosenCompanyText\":[1,\"choosen-company-text\"],\"toText\":[1,\"to-text\"],\"chooseCustomerNumberText\":[1,\"choose-customer-number-text\"],\"isLoading\":[32]},[[0,\"urlSelected\",\"onUrlSelected\"]]]]],[\"pn-profile-modal-customernumber\",[[4,\"pn-profile-modal-customernumber\",{\"url\":[513],\"customernumber\":[513],\"selected\":[516]}]]],[\"pn-profile-modal-profile\",[[4,\"pn-profile-modal-profile\",{\"heading\":[513],\"description\":[513],\"url\":[513],\"selected\":[1028],\"showCustomerNumbers\":[516,\"show-customer-numbers\"],\"pleaseSelectText\":[513,\"please-select-text\"],\"visible\":[1540],\"identifier\":[32]}]]],[\"pn-profile-modal-type\",[[4,\"pn-profile-modal-type\",{\"typeid\":[513],\"name\":[1025],\"selected\":[1028],\"selectedprofile\":[1025]}]]],[\"pn-profile-selector\",[[4,\"pn-profile-selector\",{\"language\":[1537],\"returnUrl\":[1,\"return-url\"],\"heading\":[1],\"i18n\":[32],\"isLoading\":[32],\"numberOfProfiles\":[32]}]]],[\"pn-profile-selector-option\",[[0,\"pn-profile-selector-option\",{\"heading\":[1],\"description\":[1],\"url\":[1]}]]],[\"pn-quick-cta\",[[4,\"pn-quick-cta\",{\"heading\":[1],\"preamble\":[1]}]]],[\"pn-quote-card\",[[4,\"pn-quote-card\",{\"quote\":[1],\"name\":[1],\"occupation\":[1]}]]],[\"pn-sidenav\",[[4,\"pn-sidenav\",{\"language\":[1],\"navLabel\":[1,\"nav-label\"],\"i18n\":[32]},[[0,\"language\",\"setLanguage\"],[0,\"openSubMenuLevelChange\",\"onOpenSubMenuLevelChange\"]]]]],[\"pn-sidenav-level\",[[4,\"pn-sidenav-level\",{\"level\":[32],\"levelId\":[32],\"isOpen\":[32],\"parentName\":[32],\"parentHref\":[32],\"parentLinkId\":[32],\"alignment\":[32]}]]],[\"pn-sidenav-link\",[[4,\"pn-sidenav-link\",{\"name\":[1],\"href\":[1],\"target\":[1],\"linkid\":[1],\"icon\":[1],\"current\":[4],\"levelId\":[32],\"open\":[32],\"hasChildren\":[32]}]]],[\"pn-sidenav-togglebutton\",[[4,\"pn-sidenav-togglebutton\",{\"label\":[1],\"i18n\":[32]}]]],[\"pn-spotlight\",[[4,\"pn-spotlight\",{\"heading\":[1],\"preamble\":[1]}]]],[\"pn-teaser-card\",[[4,\"pn-teaser-card\",{\"text\":[1],\"heading\":[1],\"label\":[1],\"dataCardColor\":[513,\"data-card-color\"],\"dataCardAlignment\":[513,\"data-card-alignment\"],\"hasCtaSlotContent\":[32],\"hasIllustrationSlot\":[32]}]]],[\"pn-product-card_4\",[[0,\"pn-product-card-info\",{\"rulle\":[1],\"paket\":[1],\"label\":[1],\"text\":[1]}],[0,\"pn-product-card-price\",{\"label\":[1],\"amount\":[1],\"currency\":[1],\"note\":[1],\"url\":[1],\"service\":[1],\"linkid\":[1]}],[4,\"pn-titletag\",{\"icon\":[1],\"color\":[1537]}],[4,\"pn-product-card\"]]],[\"pn-find-service-and-price-result\",[[0,\"pn-find-service-and-price-result\",{\"item\":[1040],\"shownitems\":[16],\"weightText\":[32]}]]],[\"pn-stats-info-data\",[[0,\"pn-stats-info-data\",{\"data\":[2],\"unit\":[1],\"preamble\":[1],\"duration\":[2],\"index\":[2],\"hasBeenShown\":[32],\"compId\":[32]}]]],[\"pn-find-price-result\",[[0,\"pn-find-price-result\",{\"item\":[1040],\"shownitems\":[16],\"Usp1\":[1,\"usp-1\"],\"Usp2\":[1,\"usp-2\"],\"Usp3\":[1,\"usp-3\"],\"description\":[16],\"showMeasurement\":[4,\"show-measurement\"],\"weightText\":[32],\"linkId\":[32],\"shopLabel\":[32],\"shopUrl\":[32],\"shopId\":[32]}]]],[\"pn-site-footer_2\",[[4,\"pn-site-footer\",{\"url\":[1],\"linktitle\":[1],\"theme\":[513]}],[4,\"pn-site-footer-col\",{\"theme\":[513]}]]],[\"pn-choice-button\",[[4,\"pn-choice-button\",{\"value\":[520],\"name\":[1],\"choiceid\":[1],\"type\":[1],\"disabled\":[4],\"checked\":[4],\"indeterminate\":[1028]},[[0,\"change\",\"handlechange\"]]]]],[\"pn-mainnav-link\",[[4,\"pn-mainnav-link\",{\"name\":[1],\"href\":[1],\"target\":[1],\"linkid\":[1],\"levelId\":[32],\"open\":[32],\"hasChildren\":[32]}]]],[\"pn-marketweb-input\",[[0,\"pn-marketweb-input\",{\"disabled\":[4],\"error\":[1],\"invalid\":[4],\"helpertext\":[1],\"label\":[1],\"placeholder\":[1],\"inputid\":[1],\"name\":[1],\"required\":[4],\"type\":[1025],\"autocomplete\":[1],\"valid\":[4],\"value\":[1],\"maxlength\":[1],\"min\":[1],\"max\":[1],\"step\":[1],\"pattern\":[1],\"showText\":[32]}]]],[\"pn-marketweb-siteheader-login-links_2\",[[0,\"pn-marketweb-siteheader-login-links\",{\"loginDialog\":[1040],\"loginManager\":[16],\"idNamespace\":[1,\"id-namespace\"],\"loggedin\":[516],\"username\":[1]}],[0,\"pn-marketweb-siteheader-login-profileselection\",{\"loginDialog\":[1040],\"loginManager\":[16],\"endpoint\":[1],\"loggedin\":[4],\"idNamespace\":[1,\"id-namespace\"],\"heading\":[1],\"i18n\":[16],\"currentProfile\":[1040],\"profileoptions\":[1040],\"user\":[32],\"logoutLink\":[32],\"userName\":[32],\"userEmail\":[32]}]]],[\"pn-proxio-productcard_4\",[[4,\"pn-proxio-productcard\"],[0,\"pn-proxio-productcard-description\",{\"heading\":[1],\"highlight\":[1],\"description\":[1],\"list\":[1040]}],[0,\"pn-proxio-productcard-information\",{\"label\":[1],\"information\":[16]}],[0,\"pn-proxio-productcard-pricelink\",{\"price\":[1],\"link\":[1],\"linktext\":[1]}]]],[\"pn-product-tile-info_2\",[[0,\"pn-product-tile-info\",{\"label\":[1],\"text\":[1],\"icon\":[1]}],[0,\"pn-product-tile-price\",{\"label\":[1],\"amount\":[1],\"currency\":[1],\"url\":[1]}]]],[\"pn-marketweb-siteheader-login-linklist\",[[0,\"pn-marketweb-siteheader-login-linklist\",{\"heading\":[1],\"links\":[16],\"idNamespace\":[1,\"id-namespace\"],\"loginManager\":[16]}]]],[\"pn-language-selector_9\",[[0,\"pn-marketweb-siteheader-login\",{\"endpoint\":[1],\"token\":[1],\"i18n\":[16],\"siteUrl\":[1,\"site-url\"],\"emitEvents\":[4,\"emit-events\"],\"loginDialog\":[1040],\"fullname\":[1],\"loggedin\":[4],\"showProfileSelection\":[1028,\"show-profile-selection\"],\"loginManager\":[32],\"loginLinks\":[32],\"toggleButtonText\":[32],\"username\":[32]}],[4,\"pn-mainnav-level\",{\"label\":[1537],\"level\":[32],\"levelId\":[32],\"isOpen\":[32],\"parentName\":[32],\"parentHref\":[32],\"parentLinkId\":[32],\"listCount\":[32],\"alignment\":[32]}],[4,\"pn-language-selector\",{\"value\":[1537],\"selectedLanguageName\":[32],\"options\":[32],\"i18n\":[32]}],[0,\"pn-language-selector-option\",{\"name\":[1],\"code\":[1],\"url\":[1],\"selected\":[4],\"currentLanguage\":[1,\"current-language\"]}],[4,\"pn-mainnav\",{\"market\":[1],\"language\":[1],\"navigationId\":[1,\"navigation-id\"],\"openMenu\":[1028,\"open-menu\"],\"navLabel\":[1,\"nav-label\"]},[[0,\"language\",\"setLanguage\"],[0,\"market\",\"setMarket\"],[0,\"menuLanguageChange\",\"onLanguageChange\"],[0,\"setmenuopenstate\",\"setMenuOpenState\"],[0,\"openMenuLevelChange\",\"onOpenMenuLevelChange\"]]],[4,\"pn-mainnav-list\",{\"heading\":[1],\"linkCount\":[32]}],[0,\"pn-marketweb-siteheader-search\",{\"i18n\":[8,\"i-1-8n\"],\"showOnlyLink\":[1028,\"show-only-link\"],\"hideSearch\":[1028,\"hide-search\"],\"language\":[1537],\"siteid\":[1],\"search\":[1040],\"primary\":[4],\"icononly\":[4],\"autoCompleteOptions\":[32]}],[4,\"pn-site-selector\",{\"buttontext\":[1537],\"heading\":[1537],\"language\":[1537],\"i18n\":[32]}],[0,\"pn-site-selector-item\",{\"url\":[1],\"heading\":[1],\"description\":[1],\"newwindow\":[4]}]]]]"), options);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|