@postnord/pn-marketweb-components 2.3.5 → 2.3.6
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-input.cjs.entry.js +32 -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 +128 -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-input/multi-input.stories.js +22 -0
- package/collection/components/layout-components/pn-multi-input/pn-multi-input.css +0 -0
- package/collection/components/layout-components/pn-multi-input/pn-multi-input.js +31 -0
- package/custom-elements/index.d.ts +12 -0
- package/custom-elements/index.js +148 -91
- 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-input.entry.js +28 -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-input.entry.js +1 -0
- package/esm-es5/pn-spotlight.entry.js +1 -7
- package/package.json +1 -1
- package/pn-market-web-components/p-3e668a3f.system.js +7 -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-7cab2106.system.entry.js +1 -0
- package/pn-market-web-components/p-8e890ab1.system.entry.js +1 -0
- package/pn-market-web-components/p-97aafcf4.entry.js +1 -0
- package/pn-market-web-components/p-b66743b3.system.entry.js +1 -0
- package/pn-market-web-components/p-d74172bc.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-input/pn-multi-input.d.ts +8 -0
- package/types/components.d.ts +26 -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
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import readme from './readme.md';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Animation/Flip',
|
|
5
|
+
parameters: {
|
|
6
|
+
notes: readme,
|
|
7
|
+
layout: 'fullscreen',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const FlipDefault = args => {
|
|
12
|
+
return `
|
|
13
|
+
<div style="width:100%; display:flex; flex-direction:row; gap:16px;">
|
|
14
|
+
<div style="width:33%">
|
|
15
|
+
<pn-animated-tile data-cat-theme="private" data-cat-firstpage-only="true">
|
|
16
|
+
<div slot="side-a">
|
|
17
|
+
<div style="width:100%;height:100%; display: flex;justify-content: flex-end;align-items: center;">
|
|
18
|
+
<h2 style="color:#fff; font-size:7.2rem; text-align:right;">No <span style="display:block;color:#00A0D6; border-radius:0.4rem; background-color:#fff; padding: 0 0.8rem">side-b</span></h2>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div slot="side-b"></div>
|
|
22
|
+
</pn-animated-tile>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<div style="width:33%">
|
|
26
|
+
<pn-animated-tile data-cat-theme="business" data-cat-firstpage-only="false">
|
|
27
|
+
<div slot="side-a">
|
|
28
|
+
<div style="width:100%;height:100%; display: flex;justify-content: center;align-items: center;">
|
|
29
|
+
<h2 style="color:#FFF; font-size:7.2rem; text-align:right;">Track <span style="color:#F06365; border-radius:0.4rem; background-color:#005D92; padding: 0 0.8rem">shipments</span></h2>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div slot="side-b">
|
|
33
|
+
<div style="display:flex; flex-direction:column; justify-content:center;">
|
|
34
|
+
<h2 style="color:#FFF; padding:0 0.8rem">Heading</h2>
|
|
35
|
+
<p style="color:#FFF; padding:0 0.8rem">
|
|
36
|
+
Nam interdum urna ipsum, a volutpat tortor iaculis non.
|
|
37
|
+
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;
|
|
38
|
+
Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
|
|
39
|
+
Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
|
|
40
|
+
Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
|
|
41
|
+
Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
|
|
42
|
+
Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
|
|
43
|
+
Vivamus porta non ex vitae mollis.
|
|
44
|
+
|
|
45
|
+
Nam interdum urna ipsum, a volutpat tortor iaculis non.
|
|
46
|
+
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;
|
|
47
|
+
Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
|
|
48
|
+
Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
|
|
49
|
+
Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
|
|
50
|
+
Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
|
|
51
|
+
Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
|
|
52
|
+
Vivamus porta non ex vitae mollis.
|
|
53
|
+
|
|
54
|
+
Nam interdum urna ipsum, a volutpat tortor iaculis non.
|
|
55
|
+
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;
|
|
56
|
+
Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
|
|
57
|
+
Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
|
|
58
|
+
Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
|
|
59
|
+
Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
|
|
60
|
+
Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
|
|
61
|
+
Vivamus porta non ex vitae mollis.
|
|
62
|
+
</p>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</pn-animated-tile>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<div style="width:33%">
|
|
69
|
+
<pn-animated-tile data-cat-theme="hybrid">
|
|
70
|
+
<div slot="side-a"></div>
|
|
71
|
+
<div slot="side-b">
|
|
72
|
+
<div style="display:flex; flex-direction:column; justify-content:center; height:100%;">
|
|
73
|
+
<h2 style="color:#2D2013; padding:0 0.8rem">Heading</h2>
|
|
74
|
+
<p style="color:#2D2013; padding:0 0.8rem">
|
|
75
|
+
Nam interdum urna ipsum, a volutpat tortor iaculis non.
|
|
76
|
+
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;
|
|
77
|
+
Integer sed tortor a justo fermentum sodales. Cras sed posuere lorem, sit amet porttitor neque.
|
|
78
|
+
Nunc tincidunt, tellus eget dapibus dapibus, ligula lorem imperdiet nunc, non aliquet dolor metus id justo.
|
|
79
|
+
Vivamus tempus lacus eu mi convallis, et auctor sapien bibendum.
|
|
80
|
+
Donec non lacus mi. Nulla feugiat, sem quis accumsan aliquet, purus purus tincidunt nisi, a iaculis dolor neque non turpis. In quis nisi turpis.
|
|
81
|
+
Sed sit amet volutpat risus. Praesent arcu dolor, auctor a dictum in, egestas vel augue. Nunc molestie pulvinar mi a convallis.
|
|
82
|
+
Vivamus porta non ex vitae mollis.
|
|
83
|
+
</p>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</pn-animated-tile>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
`;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export const Flip = FlipDefault.bind({});
|
|
93
|
+
Flip.args = {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import readme from "./readme.md";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: "Input/Multi-input",
|
|
5
|
+
parameters: {
|
|
6
|
+
notes: readme
|
|
7
|
+
},
|
|
8
|
+
argTypes: {
|
|
9
|
+
testprop: ""
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const Template = ({ ...args }) => {
|
|
14
|
+
return `
|
|
15
|
+
<pn-multi-input testprop="${args.testprop}"></pn-multi-input>
|
|
16
|
+
`;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const Primary = Template.bind({});
|
|
20
|
+
Primary.args = {
|
|
21
|
+
testprop : "Test prop content"
|
|
22
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Component, Element, Host, h } from "@stencil/core";
|
|
2
|
+
export class PnmultiInput {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.inputElm = null;
|
|
5
|
+
}
|
|
6
|
+
async componentDidLoad() {
|
|
7
|
+
this.init();
|
|
8
|
+
}
|
|
9
|
+
init() {
|
|
10
|
+
this.inputElm = this.hostElement.querySelector(".pn-multi-input");
|
|
11
|
+
}
|
|
12
|
+
addRow(e) {
|
|
13
|
+
if (e.type === 'click') {
|
|
14
|
+
console.log(this.inputElm);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
return (h(Host, null,
|
|
19
|
+
h("div", { class: "pn-multi-input" },
|
|
20
|
+
h("slot", null)),
|
|
21
|
+
h("button", { onClick: (e) => this.addRow(e) }, "+")));
|
|
22
|
+
}
|
|
23
|
+
static get is() { return "pn-multi-input"; }
|
|
24
|
+
static get originalStyleUrls() { return {
|
|
25
|
+
"$": ["pn-multi-input.scss"]
|
|
26
|
+
}; }
|
|
27
|
+
static get styleUrls() { return {
|
|
28
|
+
"$": ["pn-multi-input.css"]
|
|
29
|
+
}; }
|
|
30
|
+
static get elementRef() { return "hostElement"; }
|
|
31
|
+
}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import type { Components, JSX } from "../types/components";
|
|
4
4
|
|
|
5
|
+
interface PnAnimatedTile extends Components.PnAnimatedTile, HTMLElement {}
|
|
6
|
+
export const PnAnimatedTile: {
|
|
7
|
+
prototype: PnAnimatedTile;
|
|
8
|
+
new (): PnAnimatedTile;
|
|
9
|
+
};
|
|
10
|
+
|
|
5
11
|
interface PnBonusProgressbar extends Components.PnBonusProgressbar, HTMLElement {}
|
|
6
12
|
export const PnBonusProgressbar: {
|
|
7
13
|
prototype: PnBonusProgressbar;
|
|
@@ -194,6 +200,12 @@ export const PnMarketwebSiteheaderUnifiedLogin: {
|
|
|
194
200
|
new (): PnMarketwebSiteheaderUnifiedLogin;
|
|
195
201
|
};
|
|
196
202
|
|
|
203
|
+
interface PnMultiInput extends Components.PnMultiInput, HTMLElement {}
|
|
204
|
+
export const PnMultiInput: {
|
|
205
|
+
prototype: PnMultiInput;
|
|
206
|
+
new (): PnMultiInput;
|
|
207
|
+
};
|
|
208
|
+
|
|
197
209
|
interface PnParcelTracker extends Components.PnParcelTracker, HTMLElement {}
|
|
198
210
|
export const PnParcelTracker: {
|
|
199
211
|
prototype: PnParcelTracker;
|
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%;padding:2.4rem}pn-animated-tile [slot=side-a]{opacity:1}pn-animated-tile [slot=side-b]{opacity:0;-webkit-transform:translateY(50px);transform:translateY(50px)}pn-animated-tile .pn-animated-tile__toggle{position:absolute;bottom:0;right:0;padding:2.4rem}pn-animated-tile .pn-animated-tile__toggle pn-icon{cursor:pointer;border-radius:50%;padding:0.8rem;margin:0.8rem 0 0 0}pn-animated-tile pn-icon .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>pn-icon{background-color:#FFFFFF}[data-cat-theme=white] .pn-animated-tile__toggle>pn-icon svg>path{fill:#00A0D6}[data-cat-theme=coral400] .pn-animated-tile__container{background-color:#F06365}[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=private] .pn-animated-tile__container{background-color:#00A0D6}[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=business] .pn-animated-tile__container{background-color:#0D234B}[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=hybrid] .pn-animated-tile__container{background-color:#e9e6e5}[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-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("div", { class: `pn-animated-tile__toggle cat-animate toggle ${this.animateIcon}` }, h("pn-icon", { symbol: "plus", onClick: this.onClickHandler })))));
|
|
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);
|
|
@@ -27880,6 +27963,32 @@ let PnMarketwebSiteheaderUnifiedLogin$1 = class extends HTMLElement {
|
|
|
27880
27963
|
static get style() { return pnMarketwebSiteheaderUnifiedLoginCss; }
|
|
27881
27964
|
};
|
|
27882
27965
|
|
|
27966
|
+
const pnMultiInputCss = "";
|
|
27967
|
+
|
|
27968
|
+
let PnmultiInput = class extends HTMLElement {
|
|
27969
|
+
constructor() {
|
|
27970
|
+
super();
|
|
27971
|
+
this.__registerHost();
|
|
27972
|
+
this.inputElm = null;
|
|
27973
|
+
}
|
|
27974
|
+
async componentDidLoad() {
|
|
27975
|
+
this.init();
|
|
27976
|
+
}
|
|
27977
|
+
init() {
|
|
27978
|
+
this.inputElm = this.hostElement.querySelector(".pn-multi-input");
|
|
27979
|
+
}
|
|
27980
|
+
addRow(e) {
|
|
27981
|
+
if (e.type === 'click') {
|
|
27982
|
+
console.log(this.inputElm);
|
|
27983
|
+
}
|
|
27984
|
+
}
|
|
27985
|
+
render() {
|
|
27986
|
+
return (h(Host, null, h("div", { class: "pn-multi-input" }, h("slot", null)), h("button", { onClick: (e) => this.addRow(e) }, "+")));
|
|
27987
|
+
}
|
|
27988
|
+
get hostElement() { return this; }
|
|
27989
|
+
static get style() { return pnMultiInputCss; }
|
|
27990
|
+
};
|
|
27991
|
+
|
|
27883
27992
|
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
27993
|
|
|
27885
27994
|
let PnSpotlight$2 = class extends HTMLElement {
|
|
@@ -29873,62 +29982,6 @@ let PnSiteSelectorItem$1 = class extends HTMLElement {
|
|
|
29873
29982
|
static get style() { return pnSiteSelectorItemCss; }
|
|
29874
29983
|
};
|
|
29875
29984
|
|
|
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
29985
|
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
29986
|
|
|
29934
29987
|
let PnSpotlight$1 = class extends HTMLElement {
|
|
@@ -30091,6 +30144,7 @@ let PnTiletag = class extends HTMLElement {
|
|
|
30091
30144
|
static get style() { return pnTitletagCss; }
|
|
30092
30145
|
};
|
|
30093
30146
|
|
|
30147
|
+
const PnAnimatedTile = /*@__PURE__*/proxyCustomElement(PnAnimatedTile$1, [4,"pn-animated-tile",{"toggled":[32],"transitionClassName":[32],"animateIcon":[32]}]);
|
|
30094
30148
|
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
30149
|
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
30150
|
const PnBreakpoints = /*@__PURE__*/proxyCustomElement(PnBreakpoints$1, [0,"pn-breakpoints",{"breakPointClass":[1,"break-point-class"],"currentWidth":[32]},[[9,"resize","handleViewportSizeChange"]]]);
|
|
@@ -30123,6 +30177,7 @@ const PnMarketwebSiteheaderLoginMypageButton = /*@__PURE__*/proxyCustomElement(P
|
|
|
30123
30177
|
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
30178
|
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
30179
|
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"]}]);
|
|
30180
|
+
const PnMultiInput = /*@__PURE__*/proxyCustomElement(PnmultiInput, [4,"pn-multi-input"]);
|
|
30126
30181
|
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
30182
|
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
30183
|
const PnProductCard = /*@__PURE__*/proxyCustomElement(PnProductCard$1, [4,"pn-product-card"]);
|
|
@@ -30167,7 +30222,8 @@ const PnTitletag = /*@__PURE__*/proxyCustomElement(PnTiletag, [4,"pn-titletag",{
|
|
|
30167
30222
|
const defineCustomElements = (opts) => {
|
|
30168
30223
|
if (typeof customElements !== 'undefined') {
|
|
30169
30224
|
[
|
|
30170
|
-
|
|
30225
|
+
PnAnimatedTile,
|
|
30226
|
+
PnBonusProgressbar,
|
|
30171
30227
|
PnBonusProgressbarLevel,
|
|
30172
30228
|
PnBreakpoints,
|
|
30173
30229
|
PnChart,
|
|
@@ -30199,6 +30255,7 @@ const defineCustomElements = (opts) => {
|
|
|
30199
30255
|
PnMarketwebSiteheaderLoginProfileselection,
|
|
30200
30256
|
PnMarketwebSiteheaderSearch,
|
|
30201
30257
|
PnMarketwebSiteheaderUnifiedLogin,
|
|
30258
|
+
PnMultiInput,
|
|
30202
30259
|
PnParcelTracker,
|
|
30203
30260
|
PnPexPricefinder,
|
|
30204
30261
|
PnProductCard,
|
|
@@ -30248,4 +30305,4 @@ const defineCustomElements = (opts) => {
|
|
|
30248
30305
|
}
|
|
30249
30306
|
};
|
|
30250
30307
|
|
|
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 };
|
|
30308
|
+
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, PnMultiInput, 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 };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { c as createCommonjsModule } from './_commonjsHelpers-27f122dd.js';
|
|
2
|
+
|
|
3
|
+
var classnames = createCommonjsModule(function (module) {
|
|
4
|
+
/*!
|
|
5
|
+
Copyright (c) 2018 Jed Watson.
|
|
6
|
+
Licensed under the MIT License (MIT), see
|
|
7
|
+
http://jedwatson.github.io/classnames
|
|
8
|
+
*/
|
|
9
|
+
/* global define */
|
|
10
|
+
|
|
11
|
+
(function () {
|
|
12
|
+
|
|
13
|
+
var hasOwn = {}.hasOwnProperty;
|
|
14
|
+
|
|
15
|
+
function classNames() {
|
|
16
|
+
var classes = [];
|
|
17
|
+
|
|
18
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
19
|
+
var arg = arguments[i];
|
|
20
|
+
if (!arg) continue;
|
|
21
|
+
|
|
22
|
+
var argType = typeof arg;
|
|
23
|
+
|
|
24
|
+
if (argType === 'string' || argType === 'number') {
|
|
25
|
+
classes.push(arg);
|
|
26
|
+
} else if (Array.isArray(arg)) {
|
|
27
|
+
if (arg.length) {
|
|
28
|
+
var inner = classNames.apply(null, arg);
|
|
29
|
+
if (inner) {
|
|
30
|
+
classes.push(inner);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
} else if (argType === 'object') {
|
|
34
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
35
|
+
classes.push(arg.toString());
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
for (var key in arg) {
|
|
40
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
41
|
+
classes.push(key);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return classes.join(' ');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (module.exports) {
|
|
51
|
+
classNames.default = classNames;
|
|
52
|
+
module.exports = classNames;
|
|
53
|
+
} else {
|
|
54
|
+
window.classNames = classNames;
|
|
55
|
+
}
|
|
56
|
+
}());
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export { classnames as c };
|