@postnord/pn-marketweb-components 2.3.5 → 2.3.8
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/index-9066c0d0.js +61 -0
- package/cjs/loader.cjs.js +1 -1
- package/cjs/pn-animated-tile.cjs.entry.js +35 -0
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-multi-formfield.cjs.entry.js +253 -0
- package/cjs/pn-spotlight.cjs.entry.js +3 -58
- package/collection/collection-manifest.json +3 -1
- package/collection/components/animation/pn-animated-tile/pn-animated-tile.css +162 -0
- package/collection/components/animation/pn-animated-tile/pn-animated-tile.js +42 -0
- package/collection/components/animation/pn-animated-tile/pn-animated-tile.stories.js +93 -0
- package/collection/components/animation/{pn-scroll.stories.js → pn-scroll/pn-scroll.stories.js} +1 -1
- package/collection/components/layout-components/pn-multi-formfield/multi-formfield.stories.js +55 -0
- package/collection/components/layout-components/pn-multi-formfield/pn-multi-formfield.css +4 -0
- package/collection/components/layout-components/pn-multi-formfield/pn-multi-formfield.js +267 -0
- package/collection/components/layout-components/pn-multi-formfield/types.js +1 -0
- package/custom-elements/index.d.ts +12 -0
- package/custom-elements/index.js +435 -158
- package/esm/index-45541632.js +59 -0
- package/esm/loader.js +1 -1
- package/esm/pn-animated-tile.entry.js +31 -0
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-multi-formfield.entry.js +249 -0
- package/esm/pn-spotlight.entry.js +2 -57
- package/esm-es5/index-45541632.js +7 -0
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-animated-tile.entry.js +1 -0
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-multi-formfield.entry.js +1 -0
- package/esm-es5/pn-spotlight.entry.js +1 -7
- package/package.json +2 -1
- package/pn-market-web-components/p-070f1309.system.entry.js +1 -0
- package/pn-market-web-components/p-3e668a3f.system.js +7 -0
- package/pn-market-web-components/p-468025b2.system.entry.js +1 -0
- package/pn-market-web-components/p-5776275b.entry.js +1 -0
- package/pn-market-web-components/p-5e43ccf2.js +7 -0
- package/pn-market-web-components/p-67887512.system.js +1 -1
- package/pn-market-web-components/p-8e890ab1.system.entry.js +1 -0
- package/pn-market-web-components/p-96e6d92c.entry.js +1 -0
- package/pn-market-web-components/p-f82c5d08.entry.js +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/animation/pn-animated-tile/pn-animated-tile.d.ts +9 -0
- package/types/components/layout-components/pn-multi-formfield/pn-multi-formfield.d.ts +36 -0
- package/types/components/layout-components/pn-multi-formfield/types.d.ts +4 -0
- package/types/components.d.ts +34 -0
- package/pn-market-web-components/p-27559a76.system.entry.js +0 -7
- package/pn-market-web-components/p-ac66c9ff.entry.js +0 -7
- /package/collection/components/animation/{pn-scroll.css → pn-scroll/pn-scroll.css} +0 -0
- /package/collection/components/animation/{pn-scroll.js → pn-scroll/pn-scroll.js} +0 -0
- /package/types/components/animation/{pn-scroll.d.ts → pn-scroll/pn-scroll.d.ts} +0 -0
package/custom-elements/index.js
CHANGED
|
@@ -1,6 +1,120 @@
|
|
|
1
1
|
import { HTMLElement, h, Host, getRenderingRef, forceUpdate, createEvent, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
2
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
3
|
|
|
4
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
5
|
+
|
|
6
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
7
|
+
return module = {
|
|
8
|
+
path: basedir,
|
|
9
|
+
exports: {},
|
|
10
|
+
require: function (path, base) {
|
|
11
|
+
return commonjsRequire();
|
|
12
|
+
}
|
|
13
|
+
}, fn(module, module.exports), module.exports;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function getAugmentedNamespace(n) {
|
|
17
|
+
if (n.__esModule) return n;
|
|
18
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
19
|
+
Object.keys(n).forEach(function (k) {
|
|
20
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
21
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return n[k];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
return a;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function commonjsRequire () {
|
|
32
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
var classnames = createCommonjsModule(function (module) {
|
|
36
|
+
/*!
|
|
37
|
+
Copyright (c) 2018 Jed Watson.
|
|
38
|
+
Licensed under the MIT License (MIT), see
|
|
39
|
+
http://jedwatson.github.io/classnames
|
|
40
|
+
*/
|
|
41
|
+
/* global define */
|
|
42
|
+
|
|
43
|
+
(function () {
|
|
44
|
+
|
|
45
|
+
var hasOwn = {}.hasOwnProperty;
|
|
46
|
+
|
|
47
|
+
function classNames() {
|
|
48
|
+
var classes = [];
|
|
49
|
+
|
|
50
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
51
|
+
var arg = arguments[i];
|
|
52
|
+
if (!arg) continue;
|
|
53
|
+
|
|
54
|
+
var argType = typeof arg;
|
|
55
|
+
|
|
56
|
+
if (argType === 'string' || argType === 'number') {
|
|
57
|
+
classes.push(arg);
|
|
58
|
+
} else if (Array.isArray(arg)) {
|
|
59
|
+
if (arg.length) {
|
|
60
|
+
var inner = classNames.apply(null, arg);
|
|
61
|
+
if (inner) {
|
|
62
|
+
classes.push(inner);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
} else if (argType === 'object') {
|
|
66
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
67
|
+
classes.push(arg.toString());
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
for (var key in arg) {
|
|
72
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
73
|
+
classes.push(key);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return classes.join(' ');
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (module.exports) {
|
|
83
|
+
classNames.default = classNames;
|
|
84
|
+
module.exports = classNames;
|
|
85
|
+
} else {
|
|
86
|
+
window.classNames = classNames;
|
|
87
|
+
}
|
|
88
|
+
}());
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
const pnAnimatedTileCss = "pn-animated-tile .pn-animated-tile__container{position:relative;border-radius:2.4rem;height:56rem;cursor:default}pn-animated-tile .pn-animated-tile__content{position:relative;display:-ms-flexbox;display:flex;height:100%;width:100%;background-color:transparent}pn-animated-tile [slot=side-a],pn-animated-tile [slot=side-b]{position:absolute;-ms-flex-item-align:stretch;align-self:stretch;top:0;left:0;width:100%;height:100%}pn-animated-tile [slot=side-a]{padding:0;opacity:1}pn-animated-tile [slot=side-b]{padding:2.4rem 2.4rem 7rem 2.4rem;opacity:0;-webkit-transform:translateY(50px);transform:translateY(50px)}pn-animated-tile .pn-animated-tile__toggle{position:absolute;bottom:2.4rem;right:2.4rem;padding:0.8rem;border-radius:50%;border:none;cursor:pointer}pn-animated-tile .pn-animated-tile__toggle:hover{background-color:#e9e6e5}pn-animated-tile .pn-animated-tile__toggle:hover pn-icon{background-color:#e9e6e5}pn-animated-tile .button-tooltip{display:none}.cat-animate [slot=side-a],.cat-animate [slot=side-b]{-webkit-transition:opacity 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out 0.2s;transition:opacity 0.5s ease-in-out, -webkit-transform 0.5s ease-in-out 0.2s;transition:opacity 0.5s ease-in-out, transform 0.5s ease-in-out 0.2s;transition:opacity 0.5s ease-in-out, transform 0.5s ease-in-out 0.2s, -webkit-transform 0.5s ease-in-out 0.2s}.cat-animate.fade [slot=side-a]{opacity:0}.cat-animate.fade [slot=side-b]{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition-delay:0.5s;transition-delay:0.5s}.cat-animate.fade--reversed [slot=side-a]{opacity:1;-webkit-transition-delay:0.5s;transition-delay:0.5s}.cat-animate.fade--reversed [slot=side-b]{opacity:0;-webkit-transform:translateY(50px);transform:translateY(50px)}.cat-animate.toggle pn-icon{-webkit-transition:-webkit-transform 0.45s ease-in-out;transition:-webkit-transform 0.45s ease-in-out;transition:transform 0.45s ease-in-out;transition:transform 0.45s ease-in-out, -webkit-transform 0.45s ease-in-out;-webkit-transition-delay:0.5s;transition-delay:0.5s}.cat-animate.toggle.animate pn-icon{-webkit-transform:rotate(45deg);transform:rotate(45deg)}[data-cat-theme=white] .pn-animated-tile__container{background-color:#FFFFFF}[data-cat-theme=white] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=white] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=white] .pn-animated-tile__toggle pn-icon svg>path{fill:#00A0D6}[data-cat-theme=white] .pn-animated-tile__toggle:focus,[data-cat-theme=white] .pn-animated-tile__toggle:focus-visible{outline-color:#00A0D6}[data-cat-theme=coral400] .pn-animated-tile__container{background-color:#F06365}[data-cat-theme=coral400] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=coral400] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=coral400] .pn-animated-tile__toggle pn-icon svg>path{fill:#F06365}[data-cat-theme=coral400] .pn-animated-tile__toggle:focus,[data-cat-theme=coral400] .pn-animated-tile__toggle:focus-visible{outline-color:#F06365}[data-cat-theme=private] .pn-animated-tile__container{background-color:#00A0D6}[data-cat-theme=private] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=private] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=private] .pn-animated-tile__toggle pn-icon svg>path{fill:#00A0D6}[data-cat-theme=private] .pn-animated-tile__toggle:focus,[data-cat-theme=private] .pn-animated-tile__toggle:focus-visible{outline-color:#00A0D6}[data-cat-theme=business] .pn-animated-tile__container{background-color:#0D234B}[data-cat-theme=business] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=business] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=business] .pn-animated-tile__toggle pn-icon svg>path{fill:#0D234B}[data-cat-theme=business] .pn-animated-tile__toggle:focus,[data-cat-theme=business] .pn-animated-tile__toggle:focus-visible{outline-color:#0D234B}[data-cat-theme=hybrid] .pn-animated-tile__container{background-color:#e9e6e5}[data-cat-theme=hybrid] .pn-animated-tile__toggle{background-color:#FFFFFF}[data-cat-theme=hybrid] .pn-animated-tile__toggle pn-icon{background-color:#FFFFFF}[data-cat-theme=hybrid] .pn-animated-tile__toggle pn-icon svg>path{fill:#005D92}[data-cat-theme=hybrid] .pn-animated-tile__toggle:focus,[data-cat-theme=hybrid] .pn-animated-tile__toggle:focus-visible{outline-color:#005D92}[data-cat-firstpage-only=true] [slot=side-b],[data-cat-firstpage-only=true] .pn-animated-tile__toggle{display:none}";
|
|
92
|
+
|
|
93
|
+
let PnAnimatedTile$1 = class extends HTMLElement {
|
|
94
|
+
constructor() {
|
|
95
|
+
super();
|
|
96
|
+
this.__registerHost();
|
|
97
|
+
this.toggled = false;
|
|
98
|
+
this.transitionClassName = '';
|
|
99
|
+
this.animateIcon = '';
|
|
100
|
+
this.onClickHandler = () => {
|
|
101
|
+
this.toggled = !this.toggled;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
onToggledHandler() {
|
|
105
|
+
this.transitionClassName = classnames({ 'fade': this.toggled, 'fade--reversed': !this.toggled });
|
|
106
|
+
this.animateIcon = classnames({ 'animate': this.toggled, '': !this.toggled });
|
|
107
|
+
}
|
|
108
|
+
render() {
|
|
109
|
+
return (h(Host, null, h("div", { class: "pn-animated-tile__container" }, h("div", { class: `pn-animated-tile__content cat-animate ${this.transitionClassName}` }, h("slot", { name: "side-a" }), h("slot", { name: "side-b" })), h("button", { class: `pn-animated-tile__toggle cat-animate toggle ${this.animateIcon}`, onClick: this.onClickHandler }, h("pn-icon", { symbol: "plus" })))));
|
|
110
|
+
}
|
|
111
|
+
get hostElement() { return this; }
|
|
112
|
+
static get watchers() { return {
|
|
113
|
+
"toggled": ["onToggledHandler"]
|
|
114
|
+
}; }
|
|
115
|
+
static get style() { return pnAnimatedTileCss; }
|
|
116
|
+
};
|
|
117
|
+
|
|
4
118
|
const pnBonusProgressbarCss = "pn-bonus-progressbar{width:100%}.bonusprogressbar-top{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:1.6rem}.bonusprogressbar-top-icon{border-radius:100%;height:5rem;width:5rem;padding:1rem;display:-ms-inline-flexbox;display:inline-flex;margin-right:1em;margin-left:0.5em;background-color:#E0F8FF}[theme=red] .bonusprogressbar-top-icon{background-color:#FBC2C1}.bonusprogressbar-top-icon pn-icon svg{width:100%;height:100%}.bonusprogressbar-sumtext{margin-top:0.4rem;font-size:1.3rem;color:#5E554A}.bonusprogressbar-top-percentage{margin-left:0.8rem;padding:0}.bonusprogressbar-wrapper{position:relative;display:-ms-flexbox;display:flex;min-height:5em;-ms-flex-align:center;align-items:center}.bonusprogressbar-currentlevel{position:absolute}.bonusprogressbar-progress[value]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:1.7rem;border:0.1rem solid #00A0D6;border-radius:1.7rem;padding:0;margin:0;overflow:hidden}[theme=red] .bonusprogressbar-progress[value]{border-color:#F06365}.bonusprogressbar-progress[value]::-webkit-progress-bar{border:0;border-radius:1.7rem;margin:0;padding:0;background:#E0F8FF}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-bar{background:#FDEFEE}.bonusprogressbar-progress[value]::-webkit-progress-value{margin:0;padding:0;border-radius:1.7rem;background:#00A0D6}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-value{background:#F06365}";
|
|
5
119
|
|
|
6
120
|
let PnBonusProgressbar$1 = class extends HTMLElement {
|
|
@@ -153,37 +267,6 @@ let PnBreakpoints$1 = class extends HTMLElement {
|
|
|
153
267
|
static get style() { return pnBreakpointsCss; }
|
|
154
268
|
};
|
|
155
269
|
|
|
156
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
157
|
-
|
|
158
|
-
function createCommonjsModule(fn, basedir, module) {
|
|
159
|
-
return module = {
|
|
160
|
-
path: basedir,
|
|
161
|
-
exports: {},
|
|
162
|
-
require: function (path, base) {
|
|
163
|
-
return commonjsRequire();
|
|
164
|
-
}
|
|
165
|
-
}, fn(module, module.exports), module.exports;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
function getAugmentedNamespace(n) {
|
|
169
|
-
if (n.__esModule) return n;
|
|
170
|
-
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
171
|
-
Object.keys(n).forEach(function (k) {
|
|
172
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
173
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
174
|
-
enumerable: true,
|
|
175
|
-
get: function () {
|
|
176
|
-
return n[k];
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
return a;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
function commonjsRequire () {
|
|
184
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
185
|
-
}
|
|
186
|
-
|
|
187
270
|
//! moment.js
|
|
188
271
|
//! version : 2.29.4
|
|
189
272
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -5861,8 +5944,8 @@ hooks.HTML5_FMT = {
|
|
|
5861
5944
|
};
|
|
5862
5945
|
|
|
5863
5946
|
const moment = /*#__PURE__*/Object.freeze({
|
|
5864
|
-
|
|
5865
|
-
|
|
5947
|
+
__proto__: null,
|
|
5948
|
+
'default': hooks
|
|
5866
5949
|
});
|
|
5867
5950
|
|
|
5868
5951
|
const require$$0 = /*@__PURE__*/getAugmentedNamespace(moment);
|
|
@@ -24472,7 +24555,7 @@ const appendToMap = (map, propName, value) => {
|
|
|
24472
24555
|
items.push(value);
|
|
24473
24556
|
}
|
|
24474
24557
|
};
|
|
24475
|
-
const debounce = (fn, ms) => {
|
|
24558
|
+
const debounce$1 = (fn, ms) => {
|
|
24476
24559
|
let timeoutId;
|
|
24477
24560
|
return (...args) => {
|
|
24478
24561
|
if (timeoutId) {
|
|
@@ -24495,7 +24578,7 @@ const debounce = (fn, ms) => {
|
|
|
24495
24578
|
* Better leak in Edge than to be useless.
|
|
24496
24579
|
*/
|
|
24497
24580
|
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
|
24498
|
-
const cleanupElements = debounce((map) => {
|
|
24581
|
+
const cleanupElements = debounce$1((map) => {
|
|
24499
24582
|
for (let key of map.keys()) {
|
|
24500
24583
|
map.set(key, map.get(key).filter(isConnected));
|
|
24501
24584
|
}
|
|
@@ -27880,6 +27963,317 @@ let PnMarketwebSiteheaderUnifiedLogin$1 = class extends HTMLElement {
|
|
|
27880
27963
|
static get style() { return pnMarketwebSiteheaderUnifiedLoginCss; }
|
|
27881
27964
|
};
|
|
27882
27965
|
|
|
27966
|
+
/**
|
|
27967
|
+
* Returns a function, that, as long as it continues to be invoked, will not
|
|
27968
|
+
* be triggered. The function will be called after it stops being called for
|
|
27969
|
+
* N milliseconds. If `immediate` is passed, trigger the function on the
|
|
27970
|
+
* leading edge, instead of the trailing. The function also has a property 'clear'
|
|
27971
|
+
* that is a function which will clear the timer to prevent previously scheduled executions.
|
|
27972
|
+
*
|
|
27973
|
+
* @source underscore.js
|
|
27974
|
+
* @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/
|
|
27975
|
+
* @param {Function} function to wrap
|
|
27976
|
+
* @param {Number} timeout in ms (`100`)
|
|
27977
|
+
* @param {Boolean} whether to execute at the beginning (`false`)
|
|
27978
|
+
* @api public
|
|
27979
|
+
*/
|
|
27980
|
+
function debounce(func, wait, immediate){
|
|
27981
|
+
var timeout, args, context, timestamp, result;
|
|
27982
|
+
if (null == wait) wait = 100;
|
|
27983
|
+
|
|
27984
|
+
function later() {
|
|
27985
|
+
var last = Date.now() - timestamp;
|
|
27986
|
+
|
|
27987
|
+
if (last < wait && last >= 0) {
|
|
27988
|
+
timeout = setTimeout(later, wait - last);
|
|
27989
|
+
} else {
|
|
27990
|
+
timeout = null;
|
|
27991
|
+
if (!immediate) {
|
|
27992
|
+
result = func.apply(context, args);
|
|
27993
|
+
context = args = null;
|
|
27994
|
+
}
|
|
27995
|
+
}
|
|
27996
|
+
}
|
|
27997
|
+
var debounced = function(){
|
|
27998
|
+
context = this;
|
|
27999
|
+
args = arguments;
|
|
28000
|
+
timestamp = Date.now();
|
|
28001
|
+
var callNow = immediate && !timeout;
|
|
28002
|
+
if (!timeout) timeout = setTimeout(later, wait);
|
|
28003
|
+
if (callNow) {
|
|
28004
|
+
result = func.apply(context, args);
|
|
28005
|
+
context = args = null;
|
|
28006
|
+
}
|
|
28007
|
+
|
|
28008
|
+
return result;
|
|
28009
|
+
};
|
|
28010
|
+
|
|
28011
|
+
debounced.clear = function() {
|
|
28012
|
+
if (timeout) {
|
|
28013
|
+
clearTimeout(timeout);
|
|
28014
|
+
timeout = null;
|
|
28015
|
+
}
|
|
28016
|
+
};
|
|
28017
|
+
|
|
28018
|
+
debounced.flush = function() {
|
|
28019
|
+
if (timeout) {
|
|
28020
|
+
result = func.apply(context, args);
|
|
28021
|
+
context = args = null;
|
|
28022
|
+
|
|
28023
|
+
clearTimeout(timeout);
|
|
28024
|
+
timeout = null;
|
|
28025
|
+
}
|
|
28026
|
+
};
|
|
28027
|
+
|
|
28028
|
+
return debounced;
|
|
28029
|
+
}
|
|
28030
|
+
// Adds compatibility for ES modules
|
|
28031
|
+
debounce.debounce = debounce;
|
|
28032
|
+
|
|
28033
|
+
var debounce_1 = debounce;
|
|
28034
|
+
|
|
28035
|
+
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
28036
|
+
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
28037
|
+
// generators (like Math.random()).
|
|
28038
|
+
let getRandomValues;
|
|
28039
|
+
const rnds8 = new Uint8Array(16);
|
|
28040
|
+
function rng() {
|
|
28041
|
+
// lazy load so that environments that need to polyfill have a chance to do so
|
|
28042
|
+
if (!getRandomValues) {
|
|
28043
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
28044
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
28045
|
+
|
|
28046
|
+
if (!getRandomValues) {
|
|
28047
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
28048
|
+
}
|
|
28049
|
+
}
|
|
28050
|
+
|
|
28051
|
+
return getRandomValues(rnds8);
|
|
28052
|
+
}
|
|
28053
|
+
|
|
28054
|
+
/**
|
|
28055
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
|
28056
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
28057
|
+
*/
|
|
28058
|
+
|
|
28059
|
+
const byteToHex = [];
|
|
28060
|
+
|
|
28061
|
+
for (let i = 0; i < 256; ++i) {
|
|
28062
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
28063
|
+
}
|
|
28064
|
+
|
|
28065
|
+
function unsafeStringify(arr, offset = 0) {
|
|
28066
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
|
28067
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
28068
|
+
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();
|
|
28069
|
+
}
|
|
28070
|
+
|
|
28071
|
+
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
28072
|
+
const native = {
|
|
28073
|
+
randomUUID
|
|
28074
|
+
};
|
|
28075
|
+
|
|
28076
|
+
function v4(options, buf, offset) {
|
|
28077
|
+
if (native.randomUUID && !buf && !options) {
|
|
28078
|
+
return native.randomUUID();
|
|
28079
|
+
}
|
|
28080
|
+
|
|
28081
|
+
options = options || {};
|
|
28082
|
+
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
28083
|
+
|
|
28084
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
28085
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
28086
|
+
|
|
28087
|
+
if (buf) {
|
|
28088
|
+
offset = offset || 0;
|
|
28089
|
+
|
|
28090
|
+
for (let i = 0; i < 16; ++i) {
|
|
28091
|
+
buf[offset + i] = rnds[i];
|
|
28092
|
+
}
|
|
28093
|
+
|
|
28094
|
+
return buf;
|
|
28095
|
+
}
|
|
28096
|
+
|
|
28097
|
+
return unsafeStringify(rnds);
|
|
28098
|
+
}
|
|
28099
|
+
|
|
28100
|
+
const pnMultiFormfieldCss = ".pn-multi-formfield{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}";
|
|
28101
|
+
|
|
28102
|
+
let PnMultiFormField = class extends HTMLElement {
|
|
28103
|
+
constructor() {
|
|
28104
|
+
super();
|
|
28105
|
+
this.__registerHost();
|
|
28106
|
+
this.changed = createEvent(this, "changed", 7);
|
|
28107
|
+
this.containerElm = null;
|
|
28108
|
+
this.slotElm = null;
|
|
28109
|
+
this.formFields = null;
|
|
28110
|
+
this.formFieldTypes = ["input", "textarea", "select"];
|
|
28111
|
+
this.additionalRowStartIndex = 2;
|
|
28112
|
+
this.formRow = [];
|
|
28113
|
+
this.formValues = [];
|
|
28114
|
+
this.elementToCopy = null;
|
|
28115
|
+
this.fieldsPerRowCount = 0;
|
|
28116
|
+
this.newRowStartIndex = 2;
|
|
28117
|
+
this.originalLabelNames = [];
|
|
28118
|
+
this.value = [];
|
|
28119
|
+
this.formFieldClassName = "form-control";
|
|
28120
|
+
this.formFieldOuterParentClassName = "formelement";
|
|
28121
|
+
this.formFieldEvent = (e) => {
|
|
28122
|
+
if (e.target.matches(`.${this.formFieldClassName}`)) {
|
|
28123
|
+
["change", "keyup"].forEach((eventName) => {
|
|
28124
|
+
const debouncedAddValue = debounce_1.debounce(this.updateValues.bind(this, e.target), 1000);
|
|
28125
|
+
e.target.addEventListener(eventName, debouncedAddValue);
|
|
28126
|
+
});
|
|
28127
|
+
}
|
|
28128
|
+
};
|
|
28129
|
+
}
|
|
28130
|
+
generateUniqueId() {
|
|
28131
|
+
return v4();
|
|
28132
|
+
}
|
|
28133
|
+
componentDidLoad() {
|
|
28134
|
+
this.init();
|
|
28135
|
+
}
|
|
28136
|
+
async init() {
|
|
28137
|
+
this.addEventHandlers();
|
|
28138
|
+
this.setDefaultValues();
|
|
28139
|
+
}
|
|
28140
|
+
addEventHandlers() {
|
|
28141
|
+
this.hostElement.addEventListener("click", this.formFieldEvent);
|
|
28142
|
+
}
|
|
28143
|
+
setDefaultValues() {
|
|
28144
|
+
var _a;
|
|
28145
|
+
const labelElms = (_a = this.containerElm) === null || _a === void 0 ? void 0 : _a.querySelectorAll("label");
|
|
28146
|
+
if (labelElms) {
|
|
28147
|
+
this.fieldsPerRowCount = labelElms.length;
|
|
28148
|
+
this.originalLabelNames = [...labelElms].map((label) => label.innerHTML);
|
|
28149
|
+
const emptyValues = this.originalLabelNames.map((label) => {
|
|
28150
|
+
const obj = { Name: label, Value: "" };
|
|
28151
|
+
return obj;
|
|
28152
|
+
});
|
|
28153
|
+
this.formValues = [...emptyValues];
|
|
28154
|
+
this.setHiddenValue();
|
|
28155
|
+
}
|
|
28156
|
+
}
|
|
28157
|
+
setHiddenValue() {
|
|
28158
|
+
var _a;
|
|
28159
|
+
const hiddenField = (_a = this.hostElement) === null || _a === void 0 ? void 0 : _a.querySelector(".hiddenValue");
|
|
28160
|
+
if (hiddenField) {
|
|
28161
|
+
hiddenField.value = JSON.stringify(this.formValues);
|
|
28162
|
+
}
|
|
28163
|
+
}
|
|
28164
|
+
updateValues(field, e) {
|
|
28165
|
+
var _a;
|
|
28166
|
+
e.preventDefault();
|
|
28167
|
+
const slotElm = field.closest(".pn-multi-formfield-slot");
|
|
28168
|
+
const isSlotParent = !!slotElm;
|
|
28169
|
+
let containerElm = isSlotParent ? slotElm : field.closest(".generated-parent");
|
|
28170
|
+
if (containerElm) {
|
|
28171
|
+
const formFields = (_a = [...containerElm === null || containerElm === void 0 ? void 0 : containerElm.querySelectorAll(`.${this.formFieldClassName}`)]) === null || _a === void 0 ? void 0 : _a.filter((x) => this.formFieldTypes.includes(x.nodeName.toLowerCase()));
|
|
28172
|
+
formFields === null || formFields === void 0 ? void 0 : formFields.map((elm) => {
|
|
28173
|
+
const fieldElm = elm;
|
|
28174
|
+
const closestLabelElm = fieldElm.closest("div").querySelector("label");
|
|
28175
|
+
const label = (closestLabelElm === null || closestLabelElm === void 0 ? void 0 : closestLabelElm.dataset.label) || (closestLabelElm === null || closestLabelElm === void 0 ? void 0 : closestLabelElm.innerHTML);
|
|
28176
|
+
const newItem = { Name: label, Value: fieldElm.value };
|
|
28177
|
+
this.setFormValues(newItem);
|
|
28178
|
+
});
|
|
28179
|
+
}
|
|
28180
|
+
this.setHiddenValue();
|
|
28181
|
+
}
|
|
28182
|
+
setFormValues(obj) {
|
|
28183
|
+
const item = this.formValues.find((item) => item.Name === obj.Name);
|
|
28184
|
+
if (item === undefined) {
|
|
28185
|
+
this.formValues.push(obj);
|
|
28186
|
+
}
|
|
28187
|
+
if (item !== undefined) {
|
|
28188
|
+
item.Value = obj.Value;
|
|
28189
|
+
}
|
|
28190
|
+
this.formValues = [...this.formValues];
|
|
28191
|
+
this.value = this.formValues;
|
|
28192
|
+
this.changed.emit(this.formValues);
|
|
28193
|
+
}
|
|
28194
|
+
addRow(e) {
|
|
28195
|
+
if (e.type === "click") {
|
|
28196
|
+
this.addFormElements();
|
|
28197
|
+
}
|
|
28198
|
+
}
|
|
28199
|
+
addFormElements() {
|
|
28200
|
+
if (!this.elementToCopy) {
|
|
28201
|
+
const elm = this.hostElement.querySelector(".pn-multi-formfield");
|
|
28202
|
+
const clone = elm.cloneNode(true);
|
|
28203
|
+
this.elementToCopy = clone;
|
|
28204
|
+
}
|
|
28205
|
+
const setFormElements = [
|
|
28206
|
+
...this.elementToCopy.querySelectorAll(`.${this.formFieldOuterParentClassName}`),
|
|
28207
|
+
].map((elm) => {
|
|
28208
|
+
const labelElm = elm.querySelector("label");
|
|
28209
|
+
const fieldElm = elm.querySelector(`.${this.formFieldClassName}`);
|
|
28210
|
+
const newId = this.generateUniqueId();
|
|
28211
|
+
labelElm.dataset.label = `${labelElm.innerText} ${this.newRowStartIndex}`;
|
|
28212
|
+
labelElm.setAttribute("for", newId);
|
|
28213
|
+
fieldElm.setAttribute("id", newId);
|
|
28214
|
+
fieldElm.setAttribute("name", `__${newId}`);
|
|
28215
|
+
return elm;
|
|
28216
|
+
});
|
|
28217
|
+
this.newRowStartIndex++;
|
|
28218
|
+
const parentId = this.generateUniqueId();
|
|
28219
|
+
const parentElm = document.createElement("div");
|
|
28220
|
+
parentElm.setAttribute("id", parentId);
|
|
28221
|
+
parentElm.setAttribute("class", "generated-parent");
|
|
28222
|
+
setFormElements.map((clone) => {
|
|
28223
|
+
parentElm.innerHTML += clone.innerHTML;
|
|
28224
|
+
});
|
|
28225
|
+
parentElm.appendChild(this.createDeleteButton());
|
|
28226
|
+
this.containerElm.appendChild(parentElm);
|
|
28227
|
+
}
|
|
28228
|
+
createDeleteButton() {
|
|
28229
|
+
const buttonElm = document.createElement("pn-button");
|
|
28230
|
+
buttonElm.onclick = (e) => this.deleteRow(e);
|
|
28231
|
+
buttonElm.setAttribute("icon-only", "true");
|
|
28232
|
+
buttonElm.setAttribute("icon", "minus");
|
|
28233
|
+
buttonElm.setAttribute("appearance", "warning");
|
|
28234
|
+
buttonElm.appendChild(document.createTextNode(`X`));
|
|
28235
|
+
return buttonElm;
|
|
28236
|
+
}
|
|
28237
|
+
deleteRow(e) {
|
|
28238
|
+
e.preventDefault();
|
|
28239
|
+
const targetElm = e.currentTarget;
|
|
28240
|
+
const parentElm = targetElm.parentElement;
|
|
28241
|
+
const allFieldElms = parentElm.querySelectorAll(`.${this.formFieldClassName}`);
|
|
28242
|
+
allFieldElms.forEach((elm) => {
|
|
28243
|
+
elm.remove();
|
|
28244
|
+
});
|
|
28245
|
+
parentElm.remove();
|
|
28246
|
+
this.newRowStartIndex--;
|
|
28247
|
+
this.formValues = [...this.formValues.slice(0, this.fieldsPerRowCount)];
|
|
28248
|
+
const allGeneratedElms = [...this.containerElm.querySelectorAll(".generated-parent")];
|
|
28249
|
+
allGeneratedElms.map((elm, index) => {
|
|
28250
|
+
const allLabelElms = [...elm.querySelectorAll("label")];
|
|
28251
|
+
allLabelElms.map((labelElm) => {
|
|
28252
|
+
const labelParts = this.getLabelParts(labelElm.dataset.label);
|
|
28253
|
+
labelElm.dataset.label = this.getLabelName(labelParts[0], index);
|
|
28254
|
+
const associatedField = labelElm.parentElement.querySelector(`.${this.formFieldClassName}`);
|
|
28255
|
+
const updateItem = { Name: labelElm.dataset.label, Value: associatedField.value };
|
|
28256
|
+
this.setFormValues(updateItem);
|
|
28257
|
+
});
|
|
28258
|
+
});
|
|
28259
|
+
this.setHiddenValue();
|
|
28260
|
+
}
|
|
28261
|
+
getLabelParts(label) {
|
|
28262
|
+
const part1 = label.substring(0, label.lastIndexOf(" "));
|
|
28263
|
+
const part2 = label.substring(label.lastIndexOf(" ") + 1);
|
|
28264
|
+
const parts = [part1, part2];
|
|
28265
|
+
return parts;
|
|
28266
|
+
}
|
|
28267
|
+
getLabelName(name, index) {
|
|
28268
|
+
return `${name} ${index + this.additionalRowStartIndex}`;
|
|
28269
|
+
}
|
|
28270
|
+
render() {
|
|
28271
|
+
return (h(Host, null, h("div", { ref: (el) => (this.containerElm = el), class: "pn-multi-formfield" }, h("div", { ref: (el) => (this.slotElm = el), class: "pn-multi-formfield-slot" }, h("slot", null))), h("pn-button", { "icon-only": "true", "aria-label": "Add", icon: "plus", onClick: (e) => this.addRow(e) }, "+")));
|
|
28272
|
+
}
|
|
28273
|
+
get hostElement() { return this; }
|
|
28274
|
+
static get style() { return pnMultiFormfieldCss; }
|
|
28275
|
+
};
|
|
28276
|
+
|
|
27883
28277
|
const pnParcelTrackerCss = "pn-spotlight .pn-spotlight__container:has(pn-parcel-tracker) [slot=mobile-heading]{color:#005D92}.pn-spotlight__container__wrapper__content [slot=content]:has(pn-parcel-tracker){padding-left:2rem}pn-parcel-tracker{width:100%}pn-parcel-tracker .pn-parcel-tracker__container form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;gap:1.6rem}pn-parcel-tracker .pn-parcel-tracker__container form .pn-parcel-tracker__container__heading{color:#005D92;font-weight:500;margin-bottom:0}@media screen and (max-width: 768px){pn-parcel-tracker .pn-parcel-tracker__container form .pn-parcel-tracker__container__heading{display:none}}@media screen and (min-width: 1640px){pn-parcel-tracker .pn-parcel-tracker__container form .pn-parcel-tracker__container__heading{font-size:2.4rem;font-weight:700}}pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input{-ms-flex-positive:1;flex-grow:1;max-width:80%}@media screen and (min-width: 768px){pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input{max-width:50%}}@media screen and (min-width: 992px){pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input{max-width:45%}}@media screen and (min-width: 1640px){pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input{max-width:35%}}pn-parcel-tracker .pn-parcel-tracker__container form pn-marketweb-input input{border-radius:6.4rem}";
|
|
27884
28278
|
|
|
27885
28279
|
let PnSpotlight$2 = class extends HTMLElement {
|
|
@@ -29355,71 +29749,6 @@ let PnQuoteCard$1 = class extends HTMLElement {
|
|
|
29355
29749
|
static get style() { return pnQuoteCardCss; }
|
|
29356
29750
|
};
|
|
29357
29751
|
|
|
29358
|
-
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
29359
|
-
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
29360
|
-
// generators (like Math.random()).
|
|
29361
|
-
let getRandomValues;
|
|
29362
|
-
const rnds8 = new Uint8Array(16);
|
|
29363
|
-
function rng() {
|
|
29364
|
-
// lazy load so that environments that need to polyfill have a chance to do so
|
|
29365
|
-
if (!getRandomValues) {
|
|
29366
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
29367
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
29368
|
-
|
|
29369
|
-
if (!getRandomValues) {
|
|
29370
|
-
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
29371
|
-
}
|
|
29372
|
-
}
|
|
29373
|
-
|
|
29374
|
-
return getRandomValues(rnds8);
|
|
29375
|
-
}
|
|
29376
|
-
|
|
29377
|
-
/**
|
|
29378
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
|
29379
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
29380
|
-
*/
|
|
29381
|
-
|
|
29382
|
-
const byteToHex = [];
|
|
29383
|
-
|
|
29384
|
-
for (let i = 0; i < 256; ++i) {
|
|
29385
|
-
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
29386
|
-
}
|
|
29387
|
-
|
|
29388
|
-
function unsafeStringify(arr, offset = 0) {
|
|
29389
|
-
// Note: Be careful editing this code! It's been tuned for performance
|
|
29390
|
-
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
29391
|
-
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();
|
|
29392
|
-
}
|
|
29393
|
-
|
|
29394
|
-
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
29395
|
-
const native = {
|
|
29396
|
-
randomUUID
|
|
29397
|
-
};
|
|
29398
|
-
|
|
29399
|
-
function v4(options, buf, offset) {
|
|
29400
|
-
if (native.randomUUID && !buf && !options) {
|
|
29401
|
-
return native.randomUUID();
|
|
29402
|
-
}
|
|
29403
|
-
|
|
29404
|
-
options = options || {};
|
|
29405
|
-
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
29406
|
-
|
|
29407
|
-
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
29408
|
-
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
29409
|
-
|
|
29410
|
-
if (buf) {
|
|
29411
|
-
offset = offset || 0;
|
|
29412
|
-
|
|
29413
|
-
for (let i = 0; i < 16; ++i) {
|
|
29414
|
-
buf[offset + i] = rnds[i];
|
|
29415
|
-
}
|
|
29416
|
-
|
|
29417
|
-
return buf;
|
|
29418
|
-
}
|
|
29419
|
-
|
|
29420
|
-
return unsafeStringify(rnds);
|
|
29421
|
-
}
|
|
29422
|
-
|
|
29423
29752
|
const pnScrollCss = "pn-scroll .scroll-wrapper{-webkit-transition:all var(--transition-duration) ease-in-out 250ms;transition:all var(--transition-duration) ease-in-out 250ms}pn-scroll .scroll-wrapper.fade{opacity:0}pn-scroll .scroll-wrapper.fade.in-view{opacity:1}pn-scroll .scroll-wrapper.slide-up{-webkit-transform:translateY(50px);transform:translateY(50px)}pn-scroll .scroll-wrapper.slide-up.in-view{-webkit-transform:translateY(0);transform:translateY(0)}";
|
|
29424
29753
|
|
|
29425
29754
|
const defaultIntersectionCallback = (entries, observer, shouldLoop = false) => {
|
|
@@ -29873,62 +30202,6 @@ let PnSiteSelectorItem$1 = class extends HTMLElement {
|
|
|
29873
30202
|
static get style() { return pnSiteSelectorItemCss; }
|
|
29874
30203
|
};
|
|
29875
30204
|
|
|
29876
|
-
var classnames = createCommonjsModule(function (module) {
|
|
29877
|
-
/*!
|
|
29878
|
-
Copyright (c) 2018 Jed Watson.
|
|
29879
|
-
Licensed under the MIT License (MIT), see
|
|
29880
|
-
http://jedwatson.github.io/classnames
|
|
29881
|
-
*/
|
|
29882
|
-
/* global define */
|
|
29883
|
-
|
|
29884
|
-
(function () {
|
|
29885
|
-
|
|
29886
|
-
var hasOwn = {}.hasOwnProperty;
|
|
29887
|
-
|
|
29888
|
-
function classNames() {
|
|
29889
|
-
var classes = [];
|
|
29890
|
-
|
|
29891
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
29892
|
-
var arg = arguments[i];
|
|
29893
|
-
if (!arg) continue;
|
|
29894
|
-
|
|
29895
|
-
var argType = typeof arg;
|
|
29896
|
-
|
|
29897
|
-
if (argType === 'string' || argType === 'number') {
|
|
29898
|
-
classes.push(arg);
|
|
29899
|
-
} else if (Array.isArray(arg)) {
|
|
29900
|
-
if (arg.length) {
|
|
29901
|
-
var inner = classNames.apply(null, arg);
|
|
29902
|
-
if (inner) {
|
|
29903
|
-
classes.push(inner);
|
|
29904
|
-
}
|
|
29905
|
-
}
|
|
29906
|
-
} else if (argType === 'object') {
|
|
29907
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
29908
|
-
classes.push(arg.toString());
|
|
29909
|
-
continue;
|
|
29910
|
-
}
|
|
29911
|
-
|
|
29912
|
-
for (var key in arg) {
|
|
29913
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
29914
|
-
classes.push(key);
|
|
29915
|
-
}
|
|
29916
|
-
}
|
|
29917
|
-
}
|
|
29918
|
-
}
|
|
29919
|
-
|
|
29920
|
-
return classes.join(' ');
|
|
29921
|
-
}
|
|
29922
|
-
|
|
29923
|
-
if (module.exports) {
|
|
29924
|
-
classNames.default = classNames;
|
|
29925
|
-
module.exports = classNames;
|
|
29926
|
-
} else {
|
|
29927
|
-
window.classNames = classNames;
|
|
29928
|
-
}
|
|
29929
|
-
}());
|
|
29930
|
-
});
|
|
29931
|
-
|
|
29932
30205
|
const pnSpotlightCss = "pn-spotlight .pn-spotlight__container{overflow:hidden}@media screen and (max-width: 991px){pn-spotlight .pn-spotlight__container{margin-left:calc(-50vw + 50%);margin-right:calc(-50vw + 50%)}}pn-spotlight [slot=mobile-heading]{text-align:center;padding-bottom:1.6rem;font-weight:500;color:#0D234B}@media screen and (min-width: 769px){pn-spotlight [slot=mobile-heading]{display:none}}pn-spotlight .pn-spotlight__container__wrapper{position:relative;max-width:100%}@media screen and (min-width: 992px){pn-spotlight .pn-spotlight__container__wrapper{max-width:90%;margin:0 auto}}@media screen and (min-width: 1640px){pn-spotlight .pn-spotlight__container__wrapper{max-width:80%}}pn-spotlight .pn-spotlight__container__wrapper__content{position:relative;margin:0 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;left:-57.5px;width:calc(100% + 57.5px)}@media screen and (min-width: 768px){pn-spotlight .pn-spotlight__container__wrapper__content{left:-50px;width:calc(100% + 50px)}}@media screen and (min-width: 992px){pn-spotlight .pn-spotlight__container__wrapper__content{left:0;width:100%}}pn-spotlight .pn-spotlight__container__wrapper__content__ball{border-radius:50%;min-height:75px;aspect-ratio:1/1;margin-right:1.5rem}@media screen and (min-width: 768px){pn-spotlight .pn-spotlight__container__wrapper__content__ball{min-height:85px;margin-right:2.5rem}}pn-spotlight [slot=content]{display:-ms-flexbox;display:flex;border-top-left-radius:10rem;border-bottom-left-radius:10rem;-ms-flex-align:center;align-items:center;-ms-flex-pack:right;justify-content:right;padding:0 1.5rem;padding-left:50px;width:100%}@media screen and (min-width: 992px){pn-spotlight [slot=content]{padding:0 2rem;border-radius:10rem}}@media screen and (min-width: 992px){.pn-spotlight__container__wrapper.cta--dynamic{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}}@media screen and (min-width: 992px){.pn-spotlight__container__wrapper.cta--dynamic [slot=content]{padding-left:4rem}}pn-spotlight[data-cta-color=green] [slot=content]{background-color:#DCF6E7}pn-spotlight[data-cta-color=green] .pn-spotlight__container__wrapper__content__ball{background-color:#DCF6E7}pn-spotlight[data-cta-color=coral] [slot=content]{background-color:#FDEFEE}pn-spotlight[data-cta-color=coral] .pn-spotlight__container__wrapper__content__ball{background-color:#FDEFEE}pn-spotlight[data-cta-color=blue] [slot=content]{background-color:#EFFBFF}pn-spotlight[data-cta-color=blue] .pn-spotlight__container__wrapper__content__ball{background-color:#EFFBFF}pn-spotlight[data-cta-color=business] [slot=content],pn-spotlight[data-cta-color=business] .pn-spotlight__container__wrapper__content__ball{background-color:#0D234B}pn-spotlight[data-cta-color=private] [slot=content],pn-spotlight[data-cta-color=private] .pn-spotlight__container__wrapper__content__ball{background-color:#00A0D6}pn-spotlight[data-cta-color=hybrid] [slot=content],pn-spotlight[data-cta-color=hybrid] .pn-spotlight__container__wrapper__content__ball{background-color:#e9e6e5}";
|
|
29933
30206
|
|
|
29934
30207
|
let PnSpotlight$1 = class extends HTMLElement {
|
|
@@ -30091,6 +30364,7 @@ let PnTiletag = class extends HTMLElement {
|
|
|
30091
30364
|
static get style() { return pnTitletagCss; }
|
|
30092
30365
|
};
|
|
30093
30366
|
|
|
30367
|
+
const PnAnimatedTile = /*@__PURE__*/proxyCustomElement(PnAnimatedTile$1, [4,"pn-animated-tile",{"toggled":[32],"transitionClassName":[32],"animateIcon":[32]}]);
|
|
30094
30368
|
const PnBonusProgressbar = /*@__PURE__*/proxyCustomElement(PnBonusProgressbar$1, [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]}]);
|
|
30095
30369
|
const PnBonusProgressbarLevel = /*@__PURE__*/proxyCustomElement(PnBonusProgressbarLevel$1, [0,"pn-bonus-progressbar-level",{"current":[516],"value":[1538],"bonuspercentage":[1537],"visualpercentage":[1538],"percentage":[32],"max":[32],"min":[32],"currency":[32]}]);
|
|
30096
30370
|
const PnBreakpoints = /*@__PURE__*/proxyCustomElement(PnBreakpoints$1, [0,"pn-breakpoints",{"breakPointClass":[1,"break-point-class"],"currentWidth":[32]},[[9,"resize","handleViewportSizeChange"]]]);
|
|
@@ -30123,6 +30397,7 @@ const PnMarketwebSiteheaderLoginMypageButton = /*@__PURE__*/proxyCustomElement(P
|
|
|
30123
30397
|
const PnMarketwebSiteheaderLoginProfileselection = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLoginProfileselection$1, [0,"pn-marketweb-siteheader-login-profileselection",{"loginDialog":[1040],"endpoint":[1],"loggedin":[4],"idNamespace":[1,"id-namespace"],"heading":[1],"i18n":[16],"currentProfile":[1040],"profileoptions":[1040],"user":[32],"logoutLink":[32],"userName":[32],"userEmail":[32]}]);
|
|
30124
30398
|
const PnMarketwebSiteheaderSearch = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderSearch$1, [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]}]);
|
|
30125
30399
|
const PnMarketwebSiteheaderUnifiedLogin = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderUnifiedLogin$1, [0,"pn-marketweb-siteheader-unified-login",{"loggedIn":[4,"logged-in"],"myPageLabel":[1,"my-page-label"],"myPageUrl":[1,"my-page-url"],"logInLabel":[1,"log-in-label"]}]);
|
|
30400
|
+
const PnMultiFormfield = /*@__PURE__*/proxyCustomElement(PnMultiFormField, [4,"pn-multi-formfield",{"value":[1040],"formFieldClassName":[1,"form-field-class-name"],"formFieldOuterParentClassName":[1,"form-field-outer-parent-class-name"],"formRow":[32],"formValues":[32],"elementToCopy":[32],"fieldsPerRowCount":[32],"newRowStartIndex":[32],"originalLabelNames":[32]}]);
|
|
30126
30401
|
const PnParcelTracker = /*@__PURE__*/proxyCustomElement(PnSpotlight$2, [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"]]]);
|
|
30127
30402
|
const PnPexPricefinder = /*@__PURE__*/proxyCustomElement(PnPexPricefinder$1, [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"]]]);
|
|
30128
30403
|
const PnProductCard = /*@__PURE__*/proxyCustomElement(PnProductCard$1, [4,"pn-product-card"]);
|
|
@@ -30167,7 +30442,8 @@ const PnTitletag = /*@__PURE__*/proxyCustomElement(PnTiletag, [4,"pn-titletag",{
|
|
|
30167
30442
|
const defineCustomElements = (opts) => {
|
|
30168
30443
|
if (typeof customElements !== 'undefined') {
|
|
30169
30444
|
[
|
|
30170
|
-
|
|
30445
|
+
PnAnimatedTile,
|
|
30446
|
+
PnBonusProgressbar,
|
|
30171
30447
|
PnBonusProgressbarLevel,
|
|
30172
30448
|
PnBreakpoints,
|
|
30173
30449
|
PnChart,
|
|
@@ -30199,6 +30475,7 @@ const defineCustomElements = (opts) => {
|
|
|
30199
30475
|
PnMarketwebSiteheaderLoginProfileselection,
|
|
30200
30476
|
PnMarketwebSiteheaderSearch,
|
|
30201
30477
|
PnMarketwebSiteheaderUnifiedLogin,
|
|
30478
|
+
PnMultiFormfield,
|
|
30202
30479
|
PnParcelTracker,
|
|
30203
30480
|
PnPexPricefinder,
|
|
30204
30481
|
PnProductCard,
|
|
@@ -30248,4 +30525,4 @@ const defineCustomElements = (opts) => {
|
|
|
30248
30525
|
}
|
|
30249
30526
|
};
|
|
30250
30527
|
|
|
30251
|
-
export { PnBonusProgressbar, PnBonusProgressbarLevel, PnBreakpoints, PnChart, PnChartsCard, PnChoiceButton, PnCustomernumberSelector, PnCustomernumberSelectorOption, PnFilterCheckbox, PnFindPrice, PnFindPriceResult, PnFindServiceAndPrice, PnFindServiceAndPriceResult, PnLanguageSelector, PnLanguageSelectorOption, PnLineShape, PnMainnav, PnMainnavLevel, PnMainnavLink, PnMainnavList, PnMarketwebInput, PnMarketwebSearch, PnMarketwebSitefooter, PnMarketwebSiteheader, PnMarketwebSiteheaderLogin, PnMarketwebSiteheaderLoginButton, PnMarketwebSiteheaderLoginLinklist, PnMarketwebSiteheaderLoginLinks, PnMarketwebSiteheaderLoginMypageButton, PnMarketwebSiteheaderLoginProfileselection, PnMarketwebSiteheaderSearch, PnMarketwebSiteheaderUnifiedLogin, PnParcelTracker, PnPexPricefinder, PnProductCard, PnProductCardInfo, PnProductCardPrice, PnProductPricelist, PnProductPricelistResult, PnProductTile, PnProductTileInfo, PnProductTilePrice, PnProfileModal, PnProfileModalCustomernumber, PnProfileModalProfile, PnProfileModalType, PnProfileSelector, PnProfileSelectorOption, PnProxioFindprice, PnProxioFindpriceResult, PnProxioPricegroup, PnProxioProductcard, PnProxioProductcardDescription, PnProxioProductcardInformation, PnProxioProductcardPricelink, PnQuickCta, PnQuoteCard, PnScroll, PnShare, PnShareItem, PnSidenav, PnSidenavLevel, PnSidenavLink, PnSidenavTogglebutton, PnSiteFooter, PnSiteFooterCol, PnSiteSelector, PnSiteSelectorItem, PnSpotlight, PnStatsInfo, PnStatsInfoData, PnTeaserCard, PnTitletag, defineCustomElements };
|
|
30528
|
+
export { PnAnimatedTile, PnBonusProgressbar, PnBonusProgressbarLevel, PnBreakpoints, PnChart, PnChartsCard, PnChoiceButton, PnCustomernumberSelector, PnCustomernumberSelectorOption, PnFilterCheckbox, PnFindPrice, PnFindPriceResult, PnFindServiceAndPrice, PnFindServiceAndPriceResult, PnLanguageSelector, PnLanguageSelectorOption, PnLineShape, PnMainnav, PnMainnavLevel, PnMainnavLink, PnMainnavList, PnMarketwebInput, PnMarketwebSearch, PnMarketwebSitefooter, PnMarketwebSiteheader, PnMarketwebSiteheaderLogin, PnMarketwebSiteheaderLoginButton, PnMarketwebSiteheaderLoginLinklist, PnMarketwebSiteheaderLoginLinks, PnMarketwebSiteheaderLoginMypageButton, PnMarketwebSiteheaderLoginProfileselection, PnMarketwebSiteheaderSearch, PnMarketwebSiteheaderUnifiedLogin, PnMultiFormfield, PnParcelTracker, PnPexPricefinder, PnProductCard, PnProductCardInfo, PnProductCardPrice, PnProductPricelist, PnProductPricelistResult, PnProductTile, PnProductTileInfo, PnProductTilePrice, PnProfileModal, PnProfileModalCustomernumber, PnProfileModalProfile, PnProfileModalType, PnProfileSelector, PnProfileSelectorOption, PnProxioFindprice, PnProxioFindpriceResult, PnProxioPricegroup, PnProxioProductcard, PnProxioProductcardDescription, PnProxioProductcardInformation, PnProxioProductcardPricelink, PnQuickCta, PnQuoteCard, PnScroll, PnShare, PnShareItem, PnSidenav, PnSidenavLevel, PnSidenavLink, PnSidenavTogglebutton, PnSiteFooter, PnSiteFooterCol, PnSiteSelector, PnSiteSelectorItem, PnSpotlight, PnStatsInfo, PnStatsInfoData, PnTeaserCard, PnTitletag, defineCustomElements };
|