@ppg_pl/pallete 2.0.4 → 2.0.5

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.
Files changed (47) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/my-backdrop_8.cjs.entry.js +40 -29
  3. package/dist/cjs/my-backdrop_8.cjs.entry.js.map +1 -1
  4. package/dist/cjs/pallete.cjs.js +1 -1
  5. package/dist/collection/components/my-colorbox/my-colorbox.js +27 -1
  6. package/dist/collection/components/my-colorbox/my-colorbox.js.map +1 -1
  7. package/dist/collection/components/my-modal/my-modal.js +8 -2
  8. package/dist/collection/components/my-modal/my-modal.js.map +1 -1
  9. package/dist/collection/types.js.map +1 -1
  10. package/dist/components/index2.js +4 -5302
  11. package/dist/components/index2.js.map +1 -1
  12. package/dist/components/index3.js +5305 -0
  13. package/dist/components/index3.js.map +1 -0
  14. package/dist/components/my-colorbox2.js +9 -3
  15. package/dist/components/my-colorbox2.js.map +1 -1
  16. package/dist/components/my-colorinfo2.js +2 -2
  17. package/dist/components/my-component.js +1 -1
  18. package/dist/components/my-modal2.js +10 -4
  19. package/dist/components/my-modal2.js.map +1 -1
  20. package/dist/components/my-slider.js +1 -1
  21. package/dist/esm/loader.js +1 -1
  22. package/dist/esm/my-backdrop_8.entry.js +40 -29
  23. package/dist/esm/my-backdrop_8.entry.js.map +1 -1
  24. package/dist/esm/pallete.js +1 -1
  25. package/dist/pallete/p-39f2a8e0.entry.js +2 -0
  26. package/dist/pallete/p-39f2a8e0.entry.js.map +1 -0
  27. package/dist/pallete/pallete.esm.js +1 -1
  28. package/dist/pallete/pallete.esm.js.map +1 -1
  29. package/dist/types/components/my-colorbox/my-colorbox.d.ts +2 -0
  30. package/dist/types/components.d.ts +4 -2
  31. package/dist/types/types.d.ts +6 -0
  32. package/package.json +1 -1
  33. package/www/build/p-39f2a8e0.entry.js +2 -0
  34. package/www/build/p-39f2a8e0.entry.js.map +1 -0
  35. package/www/build/p-90c0eb8a.js +163 -0
  36. package/www/build/p-fd390eef.css +3 -0
  37. package/www/build/pallete.esm.js +1 -1
  38. package/www/build/pallete.esm.js.map +1 -1
  39. package/www/index.html +1 -1
  40. package/dist/components/gtmUtils.js +0 -7
  41. package/dist/components/gtmUtils.js.map +0 -1
  42. package/dist/pallete/p-ee5f61e8.entry.js +0 -2
  43. package/dist/pallete/p-ee5f61e8.entry.js.map +0 -1
  44. package/www/build/p-7c1b28aa.css +0 -1
  45. package/www/build/p-e8e99831.js +0 -2
  46. package/www/build/p-ee5f61e8.entry.js +0 -2
  47. package/www/build/p-ee5f61e8.entry.js.map +0 -1
@@ -0,0 +1,163 @@
1
+ import { B as BUILD, c as consoleDevInfo, p as plt, w as win, H, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-c9444693.js';
2
+ export { s as setNonce } from './index-c9444693.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v3.1.0 | MIT Licensed | https://stenciljs.com
7
+ */
8
+ /**
9
+ * Helper method for querying a `meta` tag that contains a nonce value
10
+ * out of a DOM's head.
11
+ *
12
+ * @param doc The DOM containing the `head` to query against
13
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
14
+ * exists or the tag has no content.
15
+ */
16
+ function queryNonceMetaTagContent(doc) {
17
+ var _a, _b, _c;
18
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
19
+ }
20
+ // TODO(STENCIL-661): Remove code related to the dynamic import shim
21
+ const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
22
+ const patchBrowser = () => {
23
+ // NOTE!! This fn cannot use async/await!
24
+ if (BUILD.isDev && !BUILD.isTesting) {
25
+ consoleDevInfo('Running in development mode.');
26
+ }
27
+ // TODO(STENCIL-659): Remove code implementing the CSS variable shim
28
+ if (BUILD.cssVarShim) {
29
+ // shim css vars
30
+ // TODO(STENCIL-659): Remove code implementing the CSS variable shim
31
+ plt.$cssShim$ = win.__cssshim;
32
+ }
33
+ if (BUILD.cloneNodeFix) {
34
+ // opted-in to polyfill cloneNode() for slot polyfilled components
35
+ patchCloneNodeFix(H.prototype);
36
+ }
37
+ if (BUILD.profile && !performance.mark) {
38
+ // not all browsers support performance.mark/measure (Safari 10)
39
+ // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
40
+ // simply stub the implementations out.
41
+ // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)
42
+ // @ts-ignore
43
+ performance.mark = performance.measure = () => {
44
+ /*noop*/
45
+ };
46
+ performance.getEntriesByName = () => [];
47
+ }
48
+ // @ts-ignore
49
+ const scriptElm =
50
+ // TODO(STENCIL-661): Remove code related to the dynamic import shim
51
+ // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
52
+ BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
53
+ ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
54
+ s.getAttribute('data-stencil-namespace') === NAMESPACE)
55
+ : null;
56
+ const importMeta = import.meta.url;
57
+ const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};
58
+ // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
59
+ if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
60
+ // Safari < v11 support: This IF is true if it's Safari below v11.
61
+ // This fn cannot use async/await since Safari didn't support it until v11,
62
+ // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
63
+ // so both the ESM file and nomodule file would get downloaded. Only Safari
64
+ // has 'onbeforeload' in the script, and "history.scrollRestoration" was added
65
+ // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
66
+ // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
67
+ return {
68
+ then() {
69
+ /* promise noop */
70
+ },
71
+ };
72
+ }
73
+ // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
74
+ if (!BUILD.safari10 && importMeta !== '') {
75
+ opts.resourcesUrl = new URL('.', importMeta).href;
76
+ // TODO(STENCIL-661): Remove code related to the dynamic import shim
77
+ // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
78
+ }
79
+ else if (BUILD.dynamicImportShim || BUILD.safari10) {
80
+ opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
81
+ // TODO(STENCIL-661): Remove code related to the dynamic import shim
82
+ if (BUILD.dynamicImportShim) {
83
+ patchDynamicImport(opts.resourcesUrl, scriptElm);
84
+ }
85
+ // TODO(STENCIL-661): Remove code related to the dynamic import shim
86
+ if (BUILD.dynamicImportShim && !win.customElements) {
87
+ // module support, but no custom elements support (Old Edge)
88
+ // @ts-ignore
89
+ return import(/* webpackChunkName: "polyfills-dom" */ './dom-423bdd70.js').then(() => opts);
90
+ }
91
+ }
92
+ return promiseResolve(opts);
93
+ };
94
+ // TODO(STENCIL-661): Remove code related to the dynamic import shim
95
+ const patchDynamicImport = (base, orgScriptElm) => {
96
+ const importFunctionName = getDynamicImportFunction(NAMESPACE);
97
+ try {
98
+ // test if this browser supports dynamic imports
99
+ // There is a caching issue in V8, that breaks using import() in Function
100
+ // By generating a random string, we can workaround it
101
+ // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
102
+ win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
103
+ }
104
+ catch (e) {
105
+ // this shim is specifically for browsers that do support "esm" imports
106
+ // however, they do NOT support "dynamic" imports
107
+ // basically this code is for old Edge, v18 and below
108
+ const moduleMap = new Map();
109
+ win[importFunctionName] = (src) => {
110
+ var _a;
111
+ const url = new URL(src, base).href;
112
+ let mod = moduleMap.get(url);
113
+ if (!mod) {
114
+ const script = doc.createElement('script');
115
+ script.type = 'module';
116
+ script.crossOrigin = orgScriptElm.crossOrigin;
117
+ script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
118
+ type: 'application/javascript',
119
+ }));
120
+ // Apply CSP nonce to the script tag if it exists
121
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
122
+ if (nonce != null) {
123
+ script.setAttribute('nonce', nonce);
124
+ }
125
+ mod = new Promise((resolve) => {
126
+ script.onload = () => {
127
+ resolve(win[importFunctionName].m);
128
+ script.remove();
129
+ };
130
+ });
131
+ moduleMap.set(url, mod);
132
+ doc.head.appendChild(script);
133
+ }
134
+ return mod;
135
+ };
136
+ }
137
+ };
138
+ const patchCloneNodeFix = (HTMLElementPrototype) => {
139
+ const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
140
+ HTMLElementPrototype.cloneNode = function (deep) {
141
+ if (this.nodeName === 'TEMPLATE') {
142
+ return nativeCloneNodeFn.call(this, deep);
143
+ }
144
+ const clonedNode = nativeCloneNodeFn.call(this, false);
145
+ const srcChildNodes = this.childNodes;
146
+ if (deep) {
147
+ for (let i = 0; i < srcChildNodes.length; i++) {
148
+ // Node.ATTRIBUTE_NODE === 2, and checking because IE11
149
+ if (srcChildNodes[i].nodeType !== 2) {
150
+ clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
151
+ }
152
+ }
153
+ }
154
+ return clonedNode;
155
+ };
156
+ };
157
+
158
+ patchBrowser().then(options => {
159
+ globalScripts();
160
+ return bootstrapLazy([["my-colorinfo",[[0,"my-colorinfo",{"currentColor":[16],"shop":[1],"product":[1],"data":[16],"isMobile":[4,"is-mobile"],"infoBoxWidth":[2,"info-box-width"],"closeImage":[1,"close-image"]}]]],["my-colorbox",[[0,"my-colorbox",{"color":[1],"name":[1],"shop":[1],"product":[1],"isActive":[4,"is-active"],"isCategoryActive":[4,"is-category-active"],"isImageInsteadHex":[16]}]]],["my-loader",[[2,"my-loader"]]],["my-search",[[2,"my-search",{"productId":[2,"product-id"],"isMobile":[4,"is-mobile"],"searchIcon":[1,"search-icon"],"searchText":[32]},[[4,"clearSearchText","clearSearchTextHandler"]]]]],["my-modal",[[0,"my-modal",{"shop":[1],"product":[1],"closeImage":[1,"close-image"],"arrowDown":[1,"arrow-down"],"chunksNum":[32],"data":[32],"preloader":[32],"loading":[32],"colors":[32],"currentColor":[32],"currentIndex":[32],"infoBoxWidth":[32],"boxWidth":[32],"padding":[32],"isMobile":[32],"showRange":[32],"colorCategories":[32],"selectedCategory":[32],"page":[32],"open":[64]},[[0,"closeInfoBox","closeInfoBoxHandler"],[9,"resize","handleResize"],[0,"searchColors","searchColorsHandler"]]]]],["my-backdrop",[[0,"my-backdrop"]]],["my-slider",[[0,"my-slider",{"slides":[16],"shop":[1],"product":[1],"color":[1]}]]],["my-component",[[2,"my-component",{"shop":[1],"product":[1],"show":[32],"readyToClose":[32],"open":[64]},[[0,"readyToCLose","setReadyToCloseHandler"],[0,"close","closeModalHandler"]]]]]], options);
161
+ });
162
+
163
+ //# sourceMappingURL=pallete.esm.js.map
@@ -0,0 +1,3 @@
1
+ .pallete-wrapper * {
2
+ font-family: "Galatea", sans-serif;
3
+ }
@@ -1,2 +1,2 @@
1
- import{p as o,b as e}from"./p-c6a049a2.js";export{s as setNonce}from"./p-c6a049a2.js";const r=()=>{const e=import.meta.url;const r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return o(r)};r().then((o=>e([["p-ee5f61e8",[[2,"my-component",{shop:[1],product:[1],show:[32],readyToClose:[32],open:[64]},[[0,"readyToCLose","setReadyToCloseHandler"],[0,"close","closeModalHandler"]]],[0,"my-modal",{shop:[1],product:[1],closeImage:[1,"close-image"],arrowDown:[1,"arrow-down"],chunksNum:[32],data:[32],preloader:[32],loading:[32],colors:[32],currentColor:[32],currentIndex:[32],infoBoxWidth:[32],boxWidth:[32],padding:[32],isMobile:[32],showRange:[32],colorCategories:[32],selectedCategory:[32],page:[32],open:[64]},[[0,"closeInfoBox","closeInfoBoxHandler"],[9,"resize","handleResize"],[0,"searchColors","searchColorsHandler"]]],[0,"my-backdrop"],[0,"my-colorinfo",{currentColor:[16],shop:[1],product:[1],data:[16],isMobile:[4,"is-mobile"],infoBoxWidth:[2,"info-box-width"],closeImage:[1,"close-image"]}],[0,"my-colorbox",{color:[1],name:[1],shop:[1],product:[1],isActive:[4,"is-active"],isCategoryActive:[4,"is-category-active"]}],[2,"my-loader"],[2,"my-search",{productId:[2,"product-id"],isMobile:[4,"is-mobile"],searchIcon:[1,"search-icon"],searchText:[32]},[[4,"clearSearchText","clearSearchTextHandler"]]],[0,"my-slider",{slides:[16],shop:[1],product:[1],color:[1]}]]]],o)));
1
+ import{p as o,b as e}from"./p-c6a049a2.js";export{s as setNonce}from"./p-c6a049a2.js";const r=()=>{const e=import.meta.url;const r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return o(r)};r().then((o=>e([["p-39f2a8e0",[[2,"my-component",{shop:[1],product:[1],show:[32],readyToClose:[32],open:[64]},[[0,"readyToCLose","setReadyToCloseHandler"],[0,"close","closeModalHandler"]]],[0,"my-modal",{shop:[1],product:[1],closeImage:[1,"close-image"],arrowDown:[1,"arrow-down"],chunksNum:[32],data:[32],preloader:[32],loading:[32],colors:[32],currentColor:[32],currentIndex:[32],infoBoxWidth:[32],boxWidth:[32],padding:[32],isMobile:[32],showRange:[32],colorCategories:[32],selectedCategory:[32],page:[32],open:[64]},[[0,"closeInfoBox","closeInfoBoxHandler"],[9,"resize","handleResize"],[0,"searchColors","searchColorsHandler"]]],[0,"my-backdrop"],[0,"my-colorinfo",{currentColor:[16],shop:[1],product:[1],data:[16],isMobile:[4,"is-mobile"],infoBoxWidth:[2,"info-box-width"],closeImage:[1,"close-image"]}],[0,"my-colorbox",{color:[1],name:[1],shop:[1],product:[1],isActive:[4,"is-active"],isCategoryActive:[4,"is-category-active"],isImageInsteadHex:[16]}],[2,"my-loader"],[2,"my-search",{productId:[2,"product-id"],isMobile:[4,"is-mobile"],searchIcon:[1,"search-icon"],searchText:[32]},[[4,"clearSearchText","clearSearchTextHandler"]]],[0,"my-slider",{slides:[16],shop:[1],product:[1],color:[1]}]]]],o)));
2
2
  //# sourceMappingURL=pallete.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["patchBrowser","importMeta","import","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","shop","product","show","readyToClose","open","closeImage","arrowDown","chunksNum","data","preloader","loading","colors","currentColor","currentIndex","infoBoxWidth","boxWidth","padding","isMobile","showRange","colorCategories","selectedCategory","page","color","name","isActive","isCategoryActive","productId","searchIcon","searchText","slides"],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.1.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAmBA,MAAMA,EAAe,KAkCjB,MAAMC,EAAaC,OAAOC,KAAKC,IAC/B,MAAMC,EAAqE,GAiB3E,GAAuBJ,IAAe,GAAI,CACtCI,EAAKC,aAAe,IAAIC,IAAI,IAAKN,GAAYO,IAGrD,CAcI,OAAOC,EAAeJ,EAAK,ECrF/BL,IAAeU,MAAKC,GAEXC,EAAc,kCAA8B,CAAAC,KAAS,IAAAC,QAAA,IAAAC,KAAA,KAAAC,aAAA,KAAAC,KAAA,oGAAAJ,KAAA,IAAAC,QAAA,IAAAI,WAAA,kBAAAC,UAAA,iBAAAC,UAAA,KAAAC,KAAA,KAAAC,UAAA,KAAAC,QAAA,KAAAC,OAAA,KAAAC,aAAA,KAAAC,aAAA,KAAAC,aAAA,KAAAC,SAAA,KAAAC,QAAA,KAAAC,SAAA,KAAAC,UAAA,KAAAC,gBAAA,KAAAC,iBAAA,KAAAC,KAAA,KAAAjB,KAAA,4JAAAQ,aAAA,KAAAZ,KAAA,IAAAC,QAAA,IAAAO,KAAA,KAAAS,SAAA,gBAAAH,aAAA,qBAAAT,WAAA,sCAAAiB,MAAA,IAAAC,KAAA,IAAAvB,KAAA,IAAAC,QAAA,IAAAuB,SAAA,gBAAAC,iBAAA,2DAAAC,UAAA,iBAAAT,SAAA,gBAAAU,WAAA,kBAAAC,WAAA,wEAAAC,OAAA,KAAA7B,KAAA,IAAAC,QAAA,IAAAqB,MAAA,SAAAxB"}
1
+ {"version":3,"names":["patchBrowser","importMeta","import","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","shop","product","show","readyToClose","open","closeImage","arrowDown","chunksNum","data","preloader","loading","colors","currentColor","currentIndex","infoBoxWidth","boxWidth","padding","isMobile","showRange","colorCategories","selectedCategory","page","color","name","isActive","isCategoryActive","isImageInsteadHex","productId","searchIcon","searchText","slides"],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.1.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAmBA,MAAMA,EAAe,KAkCjB,MAAMC,EAAaC,OAAOC,KAAKC,IAC/B,MAAMC,EAAqE,GAiB3E,GAAuBJ,IAAe,GAAI,CACtCI,EAAKC,aAAe,IAAIC,IAAI,IAAKN,GAAYO,IAGrD,CAcI,OAAOC,EAAeJ,EAAK,ECrF/BL,IAAeU,MAAKC,GAEXC,EAAc,kCAA8B,CAAAC,KAAS,IAAAC,QAAA,IAAAC,KAAA,KAAAC,aAAA,KAAAC,KAAA,oGAAAJ,KAAA,IAAAC,QAAA,IAAAI,WAAA,kBAAAC,UAAA,iBAAAC,UAAA,KAAAC,KAAA,KAAAC,UAAA,KAAAC,QAAA,KAAAC,OAAA,KAAAC,aAAA,KAAAC,aAAA,KAAAC,aAAA,KAAAC,SAAA,KAAAC,QAAA,KAAAC,SAAA,KAAAC,UAAA,KAAAC,gBAAA,KAAAC,iBAAA,KAAAC,KAAA,KAAAjB,KAAA,4JAAAQ,aAAA,KAAAZ,KAAA,IAAAC,QAAA,IAAAO,KAAA,KAAAS,SAAA,gBAAAH,aAAA,qBAAAT,WAAA,sCAAAiB,MAAA,IAAAC,KAAA,IAAAvB,KAAA,IAAAC,QAAA,IAAAuB,SAAA,gBAAAC,iBAAA,yBAAAC,kBAAA,uCAAAC,UAAA,iBAAAV,SAAA,gBAAAW,WAAA,kBAAAC,WAAA,wEAAAC,OAAA,KAAA9B,KAAA,IAAAC,QAAA,IAAAqB,MAAA,SAAAxB"}
package/www/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  url(./assets/fonts/Galatea-Regular.ttf) format('truetype'), url(./assets/fonts/Galatea-Regular.eot) format('embedded-opentype');
5
5
  font-weight: 400;
6
6
  font-style: normal;
7
- }</style> <link rel="modulepreload" href="/build/p-e8e99831.js"><script type="module" src="/build/p-e8e99831.js" data-stencil data-resources-url="/build/" data-stencil-namespace="pallete"></script> <script nomodule="" src="/build/pallete.js" data-stencil></script> </head> <body> <!-- shop="DEKORAL" product="Dekoral Łazienka & Kuchnia" --> <my-component class="modal_pallete"></my-component> <label for="shop">Shop</label> <input name="shop" type="shop"> <label for="product">Product</label><input name="product" type="product"> <button>open modal</button> <script>
7
+ }</style> <link rel="modulepreload" href="/build/p-90c0eb8a.js"><script type="module" src="/build/p-90c0eb8a.js" data-stencil data-resources-url="/build/" data-stencil-namespace="pallete"></script> <script nomodule="" src="/build/pallete.js" data-stencil></script> </head> <body> <!-- shop="DEKORAL" product="Dekoral Łazienka & Kuchnia" --> <my-component class="modal_pallete"></my-component> <label for="shop">Shop</label> <input name="shop" type="shop"> <label for="product">Product</label><input name="product" type="product"> <button>open modal</button> <script>
8
8
  const btn = document.querySelector('button');
9
9
  const modal = document.querySelector('.modal_pallete');
10
10
  const shop = document.querySelector('input[name="shop"]');
@@ -1,7 +0,0 @@
1
- const setDataLayer = (obj) => {
2
- return window.dataLayer.push(obj);
3
- };
4
-
5
- export { setDataLayer as s };
6
-
7
- //# sourceMappingURL=gtmUtils.js.map
@@ -1 +0,0 @@
1
- {"file":"gtmUtils.js","mappings":"MAAa,YAAY,GAAG,CAAC,GAA2B;EACtD,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpC;;;;","names":[],"sources":["./src/gtmUtils.ts"],"sourcesContent":["export const setDataLayer = (obj: Record<string, string>) => {\n return window.dataLayer.push(obj);\n};\n"],"version":3}