@ppg_pl/pallete 0.0.5 → 0.0.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.
Files changed (169) hide show
  1. package/dist/cjs/index-160fcb6c.js +1661 -0
  2. package/dist/cjs/index-160fcb6c.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +3 -21
  4. package/dist/cjs/loader.cjs.js.map +1 -1
  5. package/dist/cjs/my-backdrop_8.cjs.entry.js +7985 -0
  6. package/dist/cjs/my-backdrop_8.cjs.entry.js.map +1 -0
  7. package/dist/cjs/pallete.cjs.js +5 -145
  8. package/dist/cjs/pallete.cjs.js.map +1 -1
  9. package/dist/collection/collection-manifest.json +1 -1
  10. package/dist/collection/components/my-modal/__mocks__/index.js +759 -0
  11. package/dist/collection/components/my-modal/__mocks__/index.js.map +1 -0
  12. package/dist/collection/components/my-modal/my-modal.css +74 -32
  13. package/dist/collection/components/my-modal/my-modal.js +1 -1
  14. package/dist/collection/components/my-modal/my-modal.js.map +1 -1
  15. package/dist/components/index.js +0 -4
  16. package/dist/components/index.js.map +1 -1
  17. package/dist/components/index2.js +359 -6270
  18. package/dist/components/index2.js.map +1 -1
  19. package/dist/components/my-component.js +0 -2
  20. package/dist/components/my-component.js.map +1 -1
  21. package/dist/components/my-modal2.js +3 -84
  22. package/dist/components/my-modal2.js.map +1 -1
  23. package/dist/esm/index-943c259f.js +1632 -0
  24. package/dist/esm/index-943c259f.js.map +1 -0
  25. package/dist/esm/loader.js +4 -22
  26. package/dist/esm/loader.js.map +1 -1
  27. package/dist/esm/my-backdrop_8.entry.js +7974 -0
  28. package/dist/esm/my-backdrop_8.entry.js.map +1 -0
  29. package/dist/esm/pallete.js +6 -146
  30. package/dist/esm/pallete.js.map +1 -1
  31. package/dist/pallete/index.esm.js +0 -1
  32. package/dist/pallete/index.esm.js.map +1 -1
  33. package/dist/pallete/p-9a7eff4f.entry.js +2 -0
  34. package/dist/pallete/p-9a7eff4f.entry.js.map +1 -0
  35. package/dist/pallete/p-c77aaa54.js +3 -0
  36. package/dist/pallete/p-c77aaa54.js.map +1 -0
  37. package/dist/pallete/pallete.css +1 -3
  38. package/dist/pallete/pallete.esm.js +1 -162
  39. package/dist/pallete/pallete.esm.js.map +1 -1
  40. package/dist/types/components/my-modal/__mocks__/index.d.ts +415 -0
  41. package/package.json +3 -3
  42. package/www/build/index.esm.js +0 -1
  43. package/www/build/index.esm.js.map +1 -1
  44. package/www/build/p-825a7d1d.js +163 -0
  45. package/www/build/p-9a7eff4f.entry.js +2 -0
  46. package/www/build/p-9a7eff4f.entry.js.map +1 -0
  47. package/www/build/p-c77aaa54.js +3 -0
  48. package/www/build/p-c77aaa54.js.map +1 -0
  49. package/www/build/p-fd390eef.css +3 -0
  50. package/www/build/pallete.css +1 -3
  51. package/www/build/pallete.esm.js +1 -162
  52. package/www/build/pallete.esm.js.map +1 -1
  53. package/www/index.html +2 -11
  54. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  55. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  56. package/dist/cjs/css-shim-5d56550a.js +0 -8
  57. package/dist/cjs/css-shim-5d56550a.js.map +0 -1
  58. package/dist/cjs/dom-52c0133a.js +0 -77
  59. package/dist/cjs/dom-52c0133a.js.map +0 -1
  60. package/dist/cjs/gtmUtils-11a00b2b.js +0 -9
  61. package/dist/cjs/gtmUtils-11a00b2b.js.map +0 -1
  62. package/dist/cjs/index-a230bf6e.js +0 -3434
  63. package/dist/cjs/index-a230bf6e.js.map +0 -1
  64. package/dist/cjs/my-backdrop.cjs.entry.js +0 -21
  65. package/dist/cjs/my-backdrop.cjs.entry.js.map +0 -1
  66. package/dist/cjs/my-colorbox.cjs.entry.js +0 -52
  67. package/dist/cjs/my-colorbox.cjs.entry.js.map +0 -1
  68. package/dist/cjs/my-colorinfo.cjs.entry.js +0 -46
  69. package/dist/cjs/my-colorinfo.cjs.entry.js.map +0 -1
  70. package/dist/cjs/my-component.cjs.entry.js +0 -171
  71. package/dist/cjs/my-component.cjs.entry.js.map +0 -1
  72. package/dist/cjs/my-loader.cjs.entry.js +0 -21
  73. package/dist/cjs/my-loader.cjs.entry.js.map +0 -1
  74. package/dist/cjs/my-modal.cjs.entry.js +0 -2479
  75. package/dist/cjs/my-modal.cjs.entry.js.map +0 -1
  76. package/dist/cjs/my-search.cjs.entry.js +0 -44
  77. package/dist/cjs/my-search.cjs.entry.js.map +0 -1
  78. package/dist/cjs/my-slider.cjs.entry.js +0 -11201
  79. package/dist/cjs/my-slider.cjs.entry.js.map +0 -1
  80. package/dist/cjs/shadow-css-388a8a25.js +0 -391
  81. package/dist/cjs/shadow-css-388a8a25.js.map +0 -1
  82. package/dist/esm/app-globals-0f993ce5.js +0 -5
  83. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  84. package/dist/esm/css-shim-5eb36939.js +0 -6
  85. package/dist/esm/css-shim-5eb36939.js.map +0 -1
  86. package/dist/esm/dom-c0f8af80.js +0 -75
  87. package/dist/esm/dom-c0f8af80.js.map +0 -1
  88. package/dist/esm/gtmUtils-dcdac4ce.js +0 -7
  89. package/dist/esm/gtmUtils-dcdac4ce.js.map +0 -1
  90. package/dist/esm/index-c3dfdbab.js +0 -3397
  91. package/dist/esm/index-c3dfdbab.js.map +0 -1
  92. package/dist/esm/my-backdrop.entry.js +0 -17
  93. package/dist/esm/my-backdrop.entry.js.map +0 -1
  94. package/dist/esm/my-colorbox.entry.js +0 -48
  95. package/dist/esm/my-colorbox.entry.js.map +0 -1
  96. package/dist/esm/my-colorinfo.entry.js +0 -42
  97. package/dist/esm/my-colorinfo.entry.js.map +0 -1
  98. package/dist/esm/my-component.entry.js +0 -167
  99. package/dist/esm/my-component.entry.js.map +0 -1
  100. package/dist/esm/my-loader.entry.js +0 -17
  101. package/dist/esm/my-loader.entry.js.map +0 -1
  102. package/dist/esm/my-modal.entry.js +0 -2475
  103. package/dist/esm/my-modal.entry.js.map +0 -1
  104. package/dist/esm/my-search.entry.js +0 -40
  105. package/dist/esm/my-search.entry.js.map +0 -1
  106. package/dist/esm/my-slider.entry.js +0 -11197
  107. package/dist/esm/my-slider.entry.js.map +0 -1
  108. package/dist/esm/shadow-css-12b9a099.js +0 -389
  109. package/dist/esm/shadow-css-12b9a099.js.map +0 -1
  110. package/dist/pallete/app-globals-0f993ce5.js +0 -5
  111. package/dist/pallete/app-globals-0f993ce5.js.map +0 -1
  112. package/dist/pallete/css-shim-5eb36939.js +0 -6
  113. package/dist/pallete/css-shim-5eb36939.js.map +0 -1
  114. package/dist/pallete/dom-c0f8af80.js +0 -75
  115. package/dist/pallete/dom-c0f8af80.js.map +0 -1
  116. package/dist/pallete/gtmUtils-dcdac4ce.js +0 -7
  117. package/dist/pallete/gtmUtils-dcdac4ce.js.map +0 -1
  118. package/dist/pallete/index-591def6b.js +0 -3397
  119. package/dist/pallete/index-591def6b.js.map +0 -1
  120. package/dist/pallete/index-c3dfdbab.js +0 -3397
  121. package/dist/pallete/index-c3dfdbab.js.map +0 -1
  122. package/dist/pallete/my-backdrop.entry.js +0 -17
  123. package/dist/pallete/my-backdrop.entry.js.map +0 -1
  124. package/dist/pallete/my-colorbox.entry.js +0 -48
  125. package/dist/pallete/my-colorbox.entry.js.map +0 -1
  126. package/dist/pallete/my-colorinfo.entry.js +0 -42
  127. package/dist/pallete/my-colorinfo.entry.js.map +0 -1
  128. package/dist/pallete/my-component.entry.js +0 -167
  129. package/dist/pallete/my-component.entry.js.map +0 -1
  130. package/dist/pallete/my-loader.entry.js +0 -17
  131. package/dist/pallete/my-loader.entry.js.map +0 -1
  132. package/dist/pallete/my-modal.entry.js +0 -2475
  133. package/dist/pallete/my-modal.entry.js.map +0 -1
  134. package/dist/pallete/my-search.entry.js +0 -40
  135. package/dist/pallete/my-search.entry.js.map +0 -1
  136. package/dist/pallete/my-slider.entry.js +0 -11197
  137. package/dist/pallete/my-slider.entry.js.map +0 -1
  138. package/dist/pallete/shadow-css-12b9a099.js +0 -389
  139. package/dist/pallete/shadow-css-12b9a099.js.map +0 -1
  140. package/www/build/app-globals-0f993ce5.js +0 -5
  141. package/www/build/app-globals-0f993ce5.js.map +0 -1
  142. package/www/build/css-shim-5eb36939.js +0 -6
  143. package/www/build/css-shim-5eb36939.js.map +0 -1
  144. package/www/build/dom-c0f8af80.js +0 -75
  145. package/www/build/dom-c0f8af80.js.map +0 -1
  146. package/www/build/gtmUtils-dcdac4ce.js +0 -7
  147. package/www/build/gtmUtils-dcdac4ce.js.map +0 -1
  148. package/www/build/index-591def6b.js +0 -3397
  149. package/www/build/index-591def6b.js.map +0 -1
  150. package/www/build/index-c3dfdbab.js +0 -3397
  151. package/www/build/index-c3dfdbab.js.map +0 -1
  152. package/www/build/my-backdrop.entry.js +0 -17
  153. package/www/build/my-backdrop.entry.js.map +0 -1
  154. package/www/build/my-colorbox.entry.js +0 -48
  155. package/www/build/my-colorbox.entry.js.map +0 -1
  156. package/www/build/my-colorinfo.entry.js +0 -42
  157. package/www/build/my-colorinfo.entry.js.map +0 -1
  158. package/www/build/my-component.entry.js +0 -167
  159. package/www/build/my-component.entry.js.map +0 -1
  160. package/www/build/my-loader.entry.js +0 -17
  161. package/www/build/my-loader.entry.js.map +0 -1
  162. package/www/build/my-modal.entry.js +0 -2475
  163. package/www/build/my-modal.entry.js.map +0 -1
  164. package/www/build/my-search.entry.js +0 -40
  165. package/www/build/my-search.entry.js.map +0 -1
  166. package/www/build/my-slider.entry.js +0 -11197
  167. package/www/build/my-slider.entry.js.map +0 -1
  168. package/www/build/shadow-css-12b9a099.js +0 -389
  169. package/www/build/shadow-css-12b9a099.js.map +0 -1
@@ -2,165 +2,25 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a230bf6e.js');
6
- const appGlobals = require('./app-globals-3a1e7e63.js');
5
+ const index = require('./index-160fcb6c.js');
7
6
 
8
7
  /*
9
- Stencil Client Patch Browser v3.2.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v3.1.0 | MIT Licensed | https://stenciljs.com
10
9
  */
11
- /**
12
- * Helper method for querying a `meta` tag that contains a nonce value
13
- * out of a DOM's head.
14
- *
15
- * @param doc The DOM containing the `head` to query against
16
- * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
17
- * exists or the tag has no content.
18
- */
19
- function queryNonceMetaTagContent(doc) {
20
- var _a, _b, _c;
21
- 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;
22
- }
23
- // TODO(STENCIL-661): Remove code related to the dynamic import shim
24
- const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
25
10
  const patchBrowser = () => {
26
- // NOTE!! This fn cannot use async/await!
27
- if (index.BUILD.isDev && !index.BUILD.isTesting) {
28
- index.consoleDevInfo('Running in development mode.');
29
- }
30
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
31
- if (index.BUILD.cssVarShim) {
32
- // shim css vars
33
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
34
- index.plt.$cssShim$ = index.win.__cssshim;
35
- }
36
- if (index.BUILD.cloneNodeFix) {
37
- // opted-in to polyfill cloneNode() for slot polyfilled components
38
- patchCloneNodeFix(index.H.prototype);
39
- }
40
- if (index.BUILD.profile && !performance.mark) {
41
- // not all browsers support performance.mark/measure (Safari 10)
42
- // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
43
- // simply stub the implementations out.
44
- // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)
45
- // @ts-ignore
46
- performance.mark = performance.measure = () => {
47
- /*noop*/
48
- };
49
- performance.getEntriesByName = () => [];
50
- }
51
- // @ts-ignore
52
- const scriptElm =
53
- // TODO(STENCIL-661): Remove code related to the dynamic import shim
54
- // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
55
- index.BUILD.scriptDataOpts || index.BUILD.safari10 || index.BUILD.dynamicImportShim
56
- ? Array.from(index.doc.querySelectorAll('script')).find((s) => new RegExp(`\/${index.NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
57
- s.getAttribute('data-stencil-namespace') === index.NAMESPACE)
58
- : null;
59
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('pallete.cjs.js', document.baseURI).href));
60
- const opts = index.BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};
61
- // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
62
- if (index.BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
63
- // Safari < v11 support: This IF is true if it's Safari below v11.
64
- // This fn cannot use async/await since Safari didn't support it until v11,
65
- // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
66
- // so both the ESM file and nomodule file would get downloaded. Only Safari
67
- // has 'onbeforeload' in the script, and "history.scrollRestoration" was added
68
- // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
69
- // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
70
- return {
71
- then() {
72
- /* promise noop */
73
- },
74
- };
75
- }
12
+ const opts = {};
76
13
  // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
77
- if (!index.BUILD.safari10 && importMeta !== '') {
14
+ if (importMeta !== '') {
78
15
  opts.resourcesUrl = new URL('.', importMeta).href;
79
16
  // TODO(STENCIL-661): Remove code related to the dynamic import shim
80
17
  // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
81
18
  }
82
- else if (index.BUILD.dynamicImportShim || index.BUILD.safari10) {
83
- opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, index.win.location.href)).href;
84
- // TODO(STENCIL-661): Remove code related to the dynamic import shim
85
- if (index.BUILD.dynamicImportShim) {
86
- patchDynamicImport(opts.resourcesUrl, scriptElm);
87
- }
88
- // TODO(STENCIL-661): Remove code related to the dynamic import shim
89
- if (index.BUILD.dynamicImportShim && !index.win.customElements) {
90
- // module support, but no custom elements support (Old Edge)
91
- // @ts-ignore
92
- return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-dom" */ './dom-52c0133a.js'); }).then(() => opts);
93
- }
94
- }
95
19
  return index.promiseResolve(opts);
96
20
  };
97
- // TODO(STENCIL-661): Remove code related to the dynamic import shim
98
- const patchDynamicImport = (base, orgScriptElm) => {
99
- const importFunctionName = getDynamicImportFunction(index.NAMESPACE);
100
- try {
101
- // test if this browser supports dynamic imports
102
- // There is a caching issue in V8, that breaks using import() in Function
103
- // By generating a random string, we can workaround it
104
- // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
105
- index.win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
106
- }
107
- catch (e) {
108
- // this shim is specifically for browsers that do support "esm" imports
109
- // however, they do NOT support "dynamic" imports
110
- // basically this code is for old Edge, v18 and below
111
- const moduleMap = new Map();
112
- index.win[importFunctionName] = (src) => {
113
- var _a;
114
- const url = new URL(src, base).href;
115
- let mod = moduleMap.get(url);
116
- if (!mod) {
117
- const script = index.doc.createElement('script');
118
- script.type = 'module';
119
- script.crossOrigin = orgScriptElm.crossOrigin;
120
- script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
121
- type: 'application/javascript',
122
- }));
123
- // Apply CSP nonce to the script tag if it exists
124
- const nonce = (_a = index.plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(index.doc);
125
- if (nonce != null) {
126
- script.setAttribute('nonce', nonce);
127
- }
128
- mod = new Promise((resolve) => {
129
- script.onload = () => {
130
- resolve(index.win[importFunctionName].m);
131
- script.remove();
132
- };
133
- });
134
- moduleMap.set(url, mod);
135
- index.doc.head.appendChild(script);
136
- }
137
- return mod;
138
- };
139
- }
140
- };
141
- const patchCloneNodeFix = (HTMLElementPrototype) => {
142
- const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
143
- HTMLElementPrototype.cloneNode = function (deep) {
144
- if (this.nodeName === 'TEMPLATE') {
145
- return nativeCloneNodeFn.call(this, deep);
146
- }
147
- const clonedNode = nativeCloneNodeFn.call(this, false);
148
- const srcChildNodes = this.childNodes;
149
- if (deep) {
150
- for (let i = 0; i < srcChildNodes.length; i++) {
151
- // Node.ATTRIBUTE_NODE === 2, and checking because IE11
152
- if (srcChildNodes[i].nodeType !== 2) {
153
- clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
154
- }
155
- }
156
- }
157
- return clonedNode;
158
- };
159
- };
160
21
 
161
22
  patchBrowser().then(options => {
162
- appGlobals.globalScripts();
163
- return index.bootstrapLazy([["my-colorinfo.cjs",[[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.cjs",[[0,"my-colorbox",{"color":[1],"name":[1],"shop":[1],"product":[1],"isActive":[4,"is-active"],"isCategoryActive":[4,"is-category-active"]}]]],["my-loader.cjs",[[2,"my-loader"]]],["my-search.cjs",[[2,"my-search",{"productId":[2,"product-id"],"isMobile":[4,"is-mobile"],"searchIcon":[1,"search-icon"],"searchText":[32]}]]],["my-modal.cjs",[[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.cjs",[[0,"my-backdrop"]]],["my-slider.cjs",[[0,"my-slider",{"slides":[16],"shop":[1],"product":[1],"color":[1]}]]],["my-component.cjs",[[2,"my-component",{"shop":[1],"product":[1],"show":[32],"readyToClose":[32],"open":[64]},[[0,"readyToCLose","setReadyToCloseHandler"],[0,"close","closeModalHandler"]]]]]], options);
23
+ return index.bootstrapLazy([["my-backdrop_8.cjs",[[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]}],[0,"my-slider",{"slides":[16],"shop":[1],"product":[1],"color":[1]}]]]], options);
164
24
  });
165
25
 
166
26
  exports.setNonce = index.setNonce;
@@ -1 +1 @@
1
- {"file":"pallete.cjs.js","mappings":";;;;;;;AAAA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,wBAAwB,CAAC,GAAG,EAAE;AACvC,IAAI,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AACnB,IAAI,OAAO,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG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AI,oBAAoB,CAAC,SAAS,GAAG,UAAU,IAAI,EAAE;AACrD,QAAQ,IAAI,IAAI,CAAC,QAAQ,KAAK,UAAU,EAAE;AAC1C,YAAY,OAAO,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACtD,SAAS;AACT,QAAQ,MAAM,UAAU,GAAG,iBAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,QAAQ,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC;AAC9C,QAAQ,IAAI,IAAI,EAAE;AAClB,YAAY,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC3D;AACA,gBAAgB,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,EAAE;AACrD,oBAAoB,UAAU,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;AAC7E,iBAAiB;AACjB,aAAa;AACb,SAAS;AACT,QAAQ,OAAO,UAAU,CAAC;AAC1B,KAAK,CAAC;AACN,CAAC;;ACrJD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAC/B,EAAEG,wBAAa,EAAE,CAAC;AAClB,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC;;;;","names":["BUILD","consoleDevInfo","plt","win","H","doc","NAMESPACE","promiseResolve","globalScripts","bootstrapLazy"],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.2.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"],"version":3}
1
+ {"file":"pallete.cjs.js","mappings":";;;;;;AAAA;AACA;AACA;AAiBA,MAAM,YAAY,GAAG,MAAM;AAkC3B,IAAI,MAAM,UAAU,GAAG,yMAAe,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAgBlF;AACA,IAAI,IAAuB,UAAU,KAAK,EAAE,EAAE;AAC9C,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D;AACA;AACA,KAaK;AACL,IAAI,OAAOA,oBAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;ACtFD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC;;;;","names":["promiseResolve","bootstrapLazy"],"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"],"version":3}
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "compiler": {
13
13
  "name": "@stencil/core",
14
- "version": "3.2.0",
14
+ "version": "3.1.0",
15
15
  "typescriptVersion": "4.9.5"
16
16
  },
17
17
  "collections": [],