@ppg_pl/pallete 2.0.23 → 2.0.25

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 (89) hide show
  1. package/README.md +12 -5
  2. package/dist/cjs/{index-53e78fc8.js → index-d74cbc0d.js} +33 -2
  3. package/dist/cjs/index-d74cbc0d.js.map +1 -0
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/loader.cjs.js.map +1 -1
  6. package/dist/cjs/my-backdrop_8.cjs.entry.js +1648 -1286
  7. package/dist/cjs/my-backdrop_8.cjs.entry.js.map +1 -1
  8. package/dist/cjs/pallete.cjs.js +2 -2
  9. package/dist/cjs/pallete.cjs.js.map +1 -1
  10. package/dist/collection/components/my-backdrop/my-backdrop.css +7 -0
  11. package/dist/collection/components/my-colorbox/my-colorbox.css +7 -0
  12. package/dist/collection/components/my-colorinfo/assets/Shape.svg +4 -0
  13. package/dist/collection/components/my-colorinfo/assets/close.png +0 -0
  14. package/dist/collection/components/my-colorinfo/assets/shape.png +0 -0
  15. package/dist/collection/components/my-colorinfo/my-colorinfo.js +124 -1
  16. package/dist/collection/components/my-colorinfo/my-colorinfo.js.map +1 -1
  17. package/dist/collection/components/my-component/my-component.js +68 -1
  18. package/dist/collection/components/my-component/my-component.js.map +1 -1
  19. package/dist/collection/components/my-modal/my-modal.css +140 -31
  20. package/dist/collection/components/my-modal/my-modal.js +41 -2
  21. package/dist/collection/components/my-modal/my-modal.js.map +1 -1
  22. package/dist/collection/components/my-search/my-search.css +7 -0
  23. package/dist/collection/components/my-slider/index.js +9 -6
  24. package/dist/collection/components/my-slider/index.js.map +1 -1
  25. package/dist/collection/components/my-slider/my-slider.css +12 -3
  26. package/dist/collection/types.js.map +1 -1
  27. package/dist/components/index3.js +10 -7
  28. package/dist/components/index3.js.map +1 -1
  29. package/dist/components/my-backdrop2.js +1 -1
  30. package/dist/components/my-backdrop2.js.map +1 -1
  31. package/dist/components/my-colorbox2.js +1 -1
  32. package/dist/components/my-colorbox2.js.map +1 -1
  33. package/dist/components/my-colorinfo2.js +42 -2
  34. package/dist/components/my-colorinfo2.js.map +1 -1
  35. package/dist/components/my-component.js +15 -3
  36. package/dist/components/my-component.js.map +1 -1
  37. package/dist/components/my-modal2.js +1588 -1273
  38. package/dist/components/my-modal2.js.map +1 -1
  39. package/dist/components/my-search2.js +1 -1
  40. package/dist/components/my-search2.js.map +1 -1
  41. package/dist/esm/{index-b0145abf.js → index-45a30349.js} +33 -2
  42. package/dist/esm/index-45a30349.js.map +1 -0
  43. package/dist/esm/loader.js +3 -3
  44. package/dist/esm/loader.js.map +1 -1
  45. package/dist/esm/my-backdrop_8.entry.js +1648 -1286
  46. package/dist/esm/my-backdrop_8.entry.js.map +1 -1
  47. package/dist/esm/pallete.js +3 -3
  48. package/dist/esm/pallete.js.map +1 -1
  49. package/dist/pallete/assets/Shape.svg +4 -0
  50. package/dist/pallete/assets/shape.png +0 -0
  51. package/dist/pallete/p-a3449132.js +3 -0
  52. package/dist/pallete/p-a3449132.js.map +1 -0
  53. package/dist/pallete/p-d142c667.entry.js +2 -0
  54. package/dist/pallete/p-d142c667.entry.js.map +1 -0
  55. package/dist/pallete/pallete.css +1 -1
  56. package/dist/pallete/pallete.esm.js +1 -1
  57. package/dist/pallete/pallete.esm.js.map +1 -1
  58. package/dist/types/components/my-colorinfo/my-colorinfo.d.ts +11 -1
  59. package/dist/types/components/my-component/my-component.d.ts +9 -0
  60. package/dist/types/components/my-modal/my-modal.d.ts +3 -1
  61. package/dist/types/components.d.ts +24 -2
  62. package/dist/types/types.d.ts +4 -0
  63. package/package.json +5 -4
  64. package/www/build/assets/Shape.svg +4 -0
  65. package/www/build/assets/shape.png +0 -0
  66. package/www/build/p-8c41f668.js +2 -0
  67. package/www/build/p-a3449132.js +3 -0
  68. package/www/build/p-a3449132.js.map +1 -0
  69. package/www/build/p-d142c667.entry.js +2 -0
  70. package/www/build/p-d142c667.entry.js.map +1 -0
  71. package/www/build/p-f8a0208d.css +1 -0
  72. package/www/build/pallete.css +1 -1
  73. package/www/build/pallete.esm.js +1 -1
  74. package/www/build/pallete.esm.js.map +1 -1
  75. package/www/index.html +62 -10
  76. package/dist/cjs/index-53e78fc8.js.map +0 -1
  77. package/dist/esm/index-b0145abf.js.map +0 -1
  78. package/dist/pallete/p-bdb05818.entry.js +0 -2
  79. package/dist/pallete/p-bdb05818.entry.js.map +0 -1
  80. package/dist/pallete/p-c6a049a2.js +0 -3
  81. package/dist/pallete/p-c6a049a2.js.map +0 -1
  82. package/www/build/p-bdb05818.entry.js +0 -2
  83. package/www/build/p-bdb05818.entry.js.map +0 -1
  84. package/www/build/p-c6a049a2.js +0 -3
  85. package/www/build/p-c6a049a2.js.map +0 -1
  86. /package/www/{build/assets → assets}/fonts/Galatea-Regular.eot +0 -0
  87. /package/www/{build/assets → assets}/fonts/Galatea-Regular.ttf +0 -0
  88. /package/www/{build/assets → assets}/fonts/Galatea-Regular.woff +0 -0
  89. /package/www/{build/assets → assets}/fonts/Galatea-Regular.woff2 +0 -0
@@ -1 +1 @@
1
- .pallete-wrapper *{font-family:"Galatea", sans-serif}
1
+ @font-face{font-family:"Galatea";src:url("/assets/fonts/Galatea-Regular.woff2") format("woff2"), url("/assets/fonts/Galatea-Regular.woff") format("woff"), url("/assets/fonts/Galatea-Regular.ttf") format("truetype");font-weight:normal;font-style:normal;font-display:swap}.pallete-wrapper *{font-family:"Galatea", sans-serif}
@@ -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 s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return o(s)};r().then((o=>e([["p-bdb05818",[[2,"my-component",{shop:[1],product:[1],baselink:[1],colorname:[1],show:[32],readyToClose:[32],open:[64],close:[64]},[[0,"readyToCLose","setReadyToCloseHandler"],[0,"close","closeModalHandler"]]],[0,"my-modal",{shop:[1],product:[1],baselink:[1],selectedcolor:[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],colorIsSelected:[32],open:[64]},[[0,"closeInfoBox","closeInfoBoxHandler"],[9,"resize","handleResize"],[0,"searchColors","searchColorsHandler"]]],[0,"my-backdrop"],[0,"my-colorinfo",{currentColor:[16],shop:[1],product:[1],baselink:[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",{productname:[1],shopname:[1],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 e,b as o}from"./p-a3449132.js";export{s as setNonce}from"./p-a3449132.js";const a=()=>{const o=import.meta.url;const a={};if(o!==""){a.resourcesUrl=new URL(".",o).href}return e(a)};a().then((e=>o([["p-d142c667",[[2,"my-component",{shop:[1],product:[1],baselink:[1],colorname:[1],available_testers:[1],price:[2],show:[32],readyToClose:[32],open:[64],close:[64]},[[0,"readyToCLose","setReadyToCloseHandler"],[0,"close","closeModalHandler"],[0,"addToBasket","addToBasketHandler"]]],[0,"my-modal",{shop:[1],product:[1],baselink:[1],available_testers:[16],price:[2],selectedcolor:[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],colorIsSelected:[32],open:[64]},[[0,"closeInfoBox","closeInfoBoxHandler"],[9,"resize","handleResize"],[0,"searchColors","searchColorsHandler"]]],[0,"my-backdrop"],[0,"my-colorinfo",{currentColor:[16],shop:[1],product:[1],baselink:[1],availableTesters:[16],price:[2],data:[16],isMobile:[4,"is-mobile"],infoBoxWidth:[2,"info-box-width"],closeImage:[1,"close-image"],shapeImage:[1,"shape-image"],buttonBlocked:[4,"button-blocked"]}],[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",{productname:[1],shopname:[1],isMobile:[4,"is-mobile"],searchIcon:[1,"search-icon"],searchText:[32]},[[4,"clearSearchText","clearSearchTextHandler"]]],[0,"my-slider",{slides:[16],shop:[1],product:[1],color:[1]}]]]],e)));
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","baselink","colorname","show","readyToClose","open","close","selectedcolor","closeImage","arrowDown","chunksNum","data","preloader","loading","colors","currentColor","currentIndex","infoBoxWidth","boxWidth","padding","isMobile","showRange","colorCategories","selectedCategory","page","colorIsSelected","color","name","isActive","isCategoryActive","isImageInsteadHex","productname","shopname","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,SAAA,IAAAC,UAAA,IAAAC,KAAA,KAAAC,aAAA,KAAAC,KAAA,KAAAC,MAAA,oGAAAP,KAAA,IAAAC,QAAA,IAAAC,SAAA,IAAAM,cAAA,IAAAC,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,KAAAC,gBAAA,KAAApB,KAAA,4JAAAU,aAAA,KAAAhB,KAAA,IAAAC,QAAA,IAAAC,SAAA,IAAAU,KAAA,KAAAS,SAAA,gBAAAH,aAAA,qBAAAT,WAAA,sCAAAkB,MAAA,IAAAC,KAAA,IAAA5B,KAAA,IAAAC,QAAA,IAAA4B,SAAA,gBAAAC,iBAAA,yBAAAC,kBAAA,uCAAAC,YAAA,IAAAC,SAAA,IAAAZ,SAAA,gBAAAa,WAAA,kBAAAC,WAAA,wEAAAC,OAAA,KAAApC,KAAA,IAAAC,QAAA,IAAA0B,MAAA,SAAA7B"}
1
+ {"version":3,"names":["patchBrowser","importMeta","import","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","shop","product","baselink","colorname","available_testers","price","show","readyToClose","open","close","selectedcolor","closeImage","arrowDown","chunksNum","data","preloader","loading","colors","currentColor","currentIndex","infoBoxWidth","boxWidth","padding","isMobile","showRange","colorCategories","selectedCategory","page","colorIsSelected","availableTesters","shapeImage","buttonBlocked","color","name","isActive","isCategoryActive","isImageInsteadHex","productname","shopname","searchIcon","searchText","slides"],"sources":["./node_modules/.pnpm/@stencil+core@3.1.0/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,SAAA,IAAAC,UAAA,IAAAC,kBAAA,IAAAC,MAAA,IAAAC,KAAA,KAAAC,aAAA,KAAAC,KAAA,KAAAC,MAAA,2IAAAT,KAAA,IAAAC,QAAA,IAAAC,SAAA,IAAAE,kBAAA,KAAAC,MAAA,IAAAK,cAAA,IAAAC,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,KAAAC,gBAAA,KAAApB,KAAA,4JAAAU,aAAA,KAAAlB,KAAA,IAAAC,QAAA,IAAAC,SAAA,IAAA2B,iBAAA,KAAAxB,MAAA,IAAAS,KAAA,KAAAS,SAAA,gBAAAH,aAAA,qBAAAT,WAAA,kBAAAmB,WAAA,kBAAAC,cAAA,yCAAAC,MAAA,IAAAC,KAAA,IAAAjC,KAAA,IAAAC,QAAA,IAAAiC,SAAA,gBAAAC,iBAAA,yBAAAC,kBAAA,uCAAAC,YAAA,IAAAC,SAAA,IAAAf,SAAA,gBAAAgB,WAAA,kBAAAC,WAAA,wEAAAC,OAAA,KAAAzC,KAAA,IAAAC,QAAA,IAAA+B,MAAA,SAAAlC"}
@@ -1,19 +1,29 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { Color, Product } from '../../types';
2
+ import { AvailableTester, Color, Product } from '../../types';
3
3
  export declare class MyColorInfo {
4
4
  currentColor: Color;
5
5
  shop: string;
6
6
  product: string;
7
7
  baselink: string;
8
+ availableTesters: AvailableTester | null;
9
+ price: number | null;
8
10
  data: Product | null;
9
11
  isMobile: boolean;
10
12
  infoBoxWidth: number | null;
11
13
  closeImage: string;
14
+ shapeImage: string;
15
+ buttonBlocked: boolean;
12
16
  closeInfoBox: EventEmitter;
17
+ addToBasket: EventEmitter<{
18
+ id: number;
19
+ }>;
13
20
  goToProduct: () => void;
14
21
  onCloseButtonClick: () => void;
15
22
  renderSliderOrImage: () => any;
16
23
  getHref: () => string | undefined;
17
24
  capitalizeFirstLetter: (string: string) => string;
25
+ isVeryLightBackground: () => boolean;
26
+ getButtonClass: () => "" | "brown" | "inverse";
27
+ handleAddToBasket: () => void;
18
28
  render(): any;
19
29
  }
@@ -1,14 +1,23 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
1
2
  export declare class MyModalBundle {
2
3
  modalEl: HTMLElement;
3
4
  shop: string;
4
5
  product: string;
5
6
  baselink: string;
6
7
  colorname: string | null;
8
+ available_testers: string | null;
9
+ price: number | null;
10
+ addToBasket: EventEmitter<{
11
+ id: number;
12
+ }>;
7
13
  show: boolean;
8
14
  readyToClose: boolean;
9
15
  open(): Promise<void>;
10
16
  close(): Promise<void>;
11
17
  setReadyToCloseHandler(value: CustomEvent): void;
12
18
  closeModalHandler(): void;
19
+ addToBasketHandler(event: CustomEvent<{
20
+ id: number;
21
+ }>): number;
13
22
  render(): any;
14
23
  }
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { Color, PaginationData, Product } from '../../types';
2
+ import { AvailableTester, Color, PaginationData, Product } from '../../types';
3
3
  declare global {
4
4
  interface Window {
5
5
  dataLayer: Record<string, any>[];
@@ -17,6 +17,8 @@ export declare class MyModal {
17
17
  shop: string;
18
18
  product: string;
19
19
  baselink: string;
20
+ available_testers: AvailableTester[] | null;
21
+ price: number | null;
20
22
  selectedcolor: string | null;
21
23
  closeImage: string;
22
24
  arrowDown: string;
@@ -5,8 +5,8 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
- import { Color, ColorBoxyIsImageInsteadHex, Image, Product } from "./types";
9
- export { Color, ColorBoxyIsImageInsteadHex, Image, Product } from "./types";
8
+ import { AvailableTester, Color, ColorBoxyIsImageInsteadHex, Image, Product } from "./types";
9
+ export { AvailableTester, Color, ColorBoxyIsImageInsteadHex, Image, Product } from "./types";
10
10
  export namespace Components {
11
11
  interface MyBackdrop {
12
12
  }
@@ -20,20 +20,26 @@ export namespace Components {
20
20
  "shop": string;
21
21
  }
22
22
  interface MyColorinfo {
23
+ "availableTesters": AvailableTester | null;
23
24
  "baselink": string;
25
+ "buttonBlocked": boolean;
24
26
  "closeImage": string;
25
27
  "currentColor": Color;
26
28
  "data": Product | null;
27
29
  "infoBoxWidth": number | null;
28
30
  "isMobile": boolean;
31
+ "price": number | null;
29
32
  "product": string;
33
+ "shapeImage": string;
30
34
  "shop": string;
31
35
  }
32
36
  interface MyComponent {
37
+ "available_testers": string | null;
33
38
  "baselink": string;
34
39
  "close": () => Promise<void>;
35
40
  "colorname": string | null;
36
41
  "open": () => Promise<void>;
42
+ "price": number | null;
37
43
  "product": string;
38
44
  "shop": string;
39
45
  }
@@ -41,9 +47,11 @@ export namespace Components {
41
47
  }
42
48
  interface MyModal {
43
49
  "arrowDown": string;
50
+ "available_testers": AvailableTester[] | null;
44
51
  "baselink": string;
45
52
  "closeImage": string;
46
53
  "open": () => Promise<void>;
54
+ "price": number | null;
47
55
  "product": string;
48
56
  "selectedcolor": string | null;
49
57
  "shop": string;
@@ -65,6 +73,10 @@ export interface MyColorinfoCustomEvent<T> extends CustomEvent<T> {
65
73
  detail: T;
66
74
  target: HTMLMyColorinfoElement;
67
75
  }
76
+ export interface MyComponentCustomEvent<T> extends CustomEvent<T> {
77
+ detail: T;
78
+ target: HTMLMyComponentElement;
79
+ }
68
80
  export interface MyModalCustomEvent<T> extends CustomEvent<T> {
69
81
  detail: T;
70
82
  target: HTMLMyModalElement;
@@ -146,19 +158,27 @@ declare namespace LocalJSX {
146
158
  "shop"?: string;
147
159
  }
148
160
  interface MyColorinfo {
161
+ "availableTesters"?: AvailableTester | null;
149
162
  "baselink"?: string;
163
+ "buttonBlocked"?: boolean;
150
164
  "closeImage"?: string;
151
165
  "currentColor"?: Color;
152
166
  "data"?: Product | null;
153
167
  "infoBoxWidth"?: number | null;
154
168
  "isMobile"?: boolean;
169
+ "onAddToBasket"?: (event: MyColorinfoCustomEvent<{ id: number }>) => void;
155
170
  "onCloseInfoBox"?: (event: MyColorinfoCustomEvent<any>) => void;
171
+ "price"?: number | null;
156
172
  "product"?: string;
173
+ "shapeImage"?: string;
157
174
  "shop"?: string;
158
175
  }
159
176
  interface MyComponent {
177
+ "available_testers"?: string | null;
160
178
  "baselink"?: string;
161
179
  "colorname"?: string | null;
180
+ "onAddToBasket"?: (event: MyComponentCustomEvent<{ id: number }>) => void;
181
+ "price"?: number | null;
162
182
  "product"?: string;
163
183
  "shop"?: string;
164
184
  }
@@ -166,11 +186,13 @@ declare namespace LocalJSX {
166
186
  }
167
187
  interface MyModal {
168
188
  "arrowDown"?: string;
189
+ "available_testers"?: AvailableTester[] | null;
169
190
  "baselink"?: string;
170
191
  "closeImage"?: string;
171
192
  "onClearSearchText"?: (event: MyModalCustomEvent<any>) => void;
172
193
  "onClose"?: (event: MyModalCustomEvent<any>) => void;
173
194
  "onReadyToCLose"?: (event: MyModalCustomEvent<any>) => void;
195
+ "price"?: number | null;
174
196
  "product"?: string;
175
197
  "selectedcolor"?: string | null;
176
198
  "shop"?: string;
@@ -73,3 +73,7 @@ export type ColorBoxyIsImageInsteadHex = {
73
73
  isImageInsteadHex: boolean;
74
74
  bigImage: string;
75
75
  };
76
+ export type AvailableTester = {
77
+ id_product_attribute: number;
78
+ color_name: string;
79
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ppg_pl/pallete",
3
- "version": "2.0.23",
3
+ "version": "2.0.25",
4
4
  "description": "Color-Selector WebComponent",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -13,7 +13,7 @@
13
13
  "license": "MIT",
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "git+https://github.com/victazzz/pallete_webcomponent"
16
+ "url": "git+https://github.com/bf8agency/color-selector"
17
17
  },
18
18
  "files": [
19
19
  "dist/",
@@ -44,7 +44,7 @@
44
44
  "husky": "^8.0.3",
45
45
  "jest": "^27.4.5",
46
46
  "jest-cli": "^27.4.5",
47
- "puppeteer": "^10.0.0"
47
+ "puppeteer": "^24.36.1"
48
48
  },
49
49
  "bugs": {
50
50
  "url": "https://github.com/ionic-team/stencil-component-starter/issues"
@@ -63,5 +63,6 @@
63
63
  "json",
64
64
  "jsx"
65
65
  ]
66
- }
66
+ },
67
+ "packageManager": "pnpm@8.15.1+sha1.8adba2d20330c02d3856e18c4eb3819d1d3ca6aa"
67
68
  }
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="15" height="16">
3
+ <path transform="translate(0.0867462 0)" d="M13.246571 12.763281L11.931726 4.961875C11.801879 4.1936703 11.13567 3.6319427 10.35657 3.63375L9.7429771 3.63375L9.7429771 3.1025C9.7429771 1.3890365 8.35394 0 6.6404767 0C4.9270134 0 3.537977 1.3890365 3.537977 3.1025L3.537977 3.63375L2.9217269 3.63375C2.1426277 3.6319427 1.4764187 4.1936703 1.3465706 4.961875L0.034383144 12.763281C-0.086738147 13.483807 0.11555123 14.221112 0.58740741 14.778946C1.0592636 15.336781 1.7528107 15.658594 2.4834456 15.658594L10.797508 15.658594C11.528143 15.658594 12.22169 15.336781 12.693546 14.778946C13.165402 14.221112 13.367692 13.483807 13.246571 12.763281L13.246571 12.763281ZM4.3348517 3.0892186C4.3348517 1.8158572 5.3671155 0.78359371 6.6404767 0.78359371C7.9138384 0.78359371 8.9461021 1.8158572 8.9461021 3.0892186L8.9461021 3.6204686L4.3348517 3.6204686L4.3348517 3.0892186ZM12.08579 14.264063C11.765244 14.643165 11.293964 14.86172 10.797508 14.86172L2.4834456 14.86172C1.9871488 14.862442 1.5158025 14.644215 1.195269 14.265309C0.87473541 13.886404 0.73765546 13.385406 0.82063317 12.896093L2.1248519 5.092031C2.1891608 4.703371 2.5278175 4.4200282 2.9217269 4.4252396L3.5353208 4.4252396L3.5353208 5.5834374C3.5353208 5.8034883 3.7137072 5.9818749 3.9337583 5.9818749C4.1538091 5.9818749 4.3321958 5.8034883 4.3321958 5.5834374L4.3321958 4.4252396L8.9461021 4.4252396L8.9461021 5.5834374C8.9461021 5.8034883 9.1244888 5.9818749 9.3445396 5.9818749C9.5645905 5.9818749 9.7429771 5.8034883 9.7429771 5.5834374L9.7429771 4.4252396L10.359227 4.4252396C10.753137 4.4200282 11.091793 4.703371 11.156102 5.092031L12.46032 12.896093C12.542204 13.384947 12.40527 13.885097 12.08579 14.264063L12.08579 14.264063Z"/>
4
+ </svg>
Binary file
@@ -0,0 +1,2 @@
1
+ import{p as e,b as o}from"./p-a3449132.js";export{s as setNonce}from"./p-a3449132.js";const a=()=>{const o=import.meta.url;const a={};if(o!==""){a.resourcesUrl=new URL(".",o).href}return e(a)};a().then((e=>o([["p-d142c667",[[2,"my-component",{shop:[1],product:[1],baselink:[1],colorname:[1],available_testers:[1],price:[2],show:[32],readyToClose:[32],open:[64],close:[64]},[[0,"readyToCLose","setReadyToCloseHandler"],[0,"close","closeModalHandler"],[0,"addToBasket","addToBasketHandler"]]],[0,"my-modal",{shop:[1],product:[1],baselink:[1],available_testers:[16],price:[2],selectedcolor:[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],colorIsSelected:[32],open:[64]},[[0,"closeInfoBox","closeInfoBoxHandler"],[9,"resize","handleResize"],[0,"searchColors","searchColorsHandler"]]],[0,"my-backdrop"],[0,"my-colorinfo",{currentColor:[16],shop:[1],product:[1],baselink:[1],availableTesters:[16],price:[2],data:[16],isMobile:[4,"is-mobile"],infoBoxWidth:[2,"info-box-width"],closeImage:[1,"close-image"],shapeImage:[1,"shape-image"],buttonBlocked:[4,"button-blocked"]}],[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",{productname:[1],shopname:[1],isMobile:[4,"is-mobile"],searchIcon:[1,"search-icon"],searchText:[32]},[[4,"clearSearchText","clearSearchTextHandler"]]],[0,"my-slider",{slides:[16],shop:[1],product:[1],color:[1]}]]]],e)));
2
+ //# sourceMappingURL=pallete.esm.js.map
@@ -0,0 +1,3 @@
1
+ const t="pallete";let e;let n=false;let s=false;const o=t=>{const e=new URL(t,gt.t);return e.origin!==wt.location.origin?e.href:e.pathname};const l=(t,e="")=>{{return()=>{}}};const c=(t,e)=>{{return()=>{}}};const i="{visibility:hidden}.hydrated{visibility:inherit}";const f={};const r="http://www.w3.org/2000/svg";const u="http://www.w3.org/1999/xhtml";const a=t=>t!=null;const d=t=>{t=typeof t;return t==="object"||t==="function"};function h(t){var e,n,s;return(s=(n=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&s!==void 0?s:undefined}const p=(t,e,...n)=>{let s=null;let o=null;let l=false;let c=false;const i=[];const f=e=>{for(let n=0;n<e.length;n++){s=e[n];if(Array.isArray(s)){f(s)}else if(s!=null&&typeof s!=="boolean"){if(l=typeof t!=="function"&&!d(s)){s=String(s)}if(l&&c){i[i.length-1].o+=s}else{i.push(l?y(null,s):s)}c=l}}};f(n);if(e){if(e.key){o=e.key}{const t=e.className||e.class;if(t){e.class=typeof t!=="object"?t:Object.keys(t).filter((e=>t[e])).join(" ")}}}if(typeof t==="function"){return t(e===null?{}:e,i,w)}const r=y(t,null);r.l=e;if(i.length>0){r.i=i}{r.u=o}return r};const y=(t,e)=>{const n={h:0,p:t,o:e,m:null,i:null};{n.l=null}{n.u=null}return n};const m={};const b=t=>t&&t.p===m;const w={forEach:(t,e)=>t.map($).forEach(e),map:(t,e)=>t.map($).map(e).map(g)};const $=t=>({vattrs:t.l,vchildren:t.i,vkey:t.u,vname:t.$,vtag:t.p,vtext:t.o});const g=t=>{if(typeof t.vtag==="function"){const e=Object.assign({},t.vattrs);if(t.vkey){e.key=t.vkey}if(t.vname){e.name=t.vname}return p(t.vtag,e,...t.vchildren||[])}const e=y(t.vtag,t.vtext);e.l=t.vattrs;e.i=t.vchildren;e.u=t.vkey;e.$=t.vname;return e};const v=(t,e)=>{if(t!=null&&!d(t)){if(e&4){return t==="false"?false:t===""||!!t}if(e&2){return parseFloat(t)}if(e&1){return String(t)}return t}return t};const S=t=>ut(t).g;const j=(t,e,n)=>{const s=S(t);return{emit:t=>O(s,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:t})}};const O=(t,e,n)=>{const s=gt.ce(e,n);t.dispatchEvent(s);return s};const k=new WeakMap;const M=(t,e,n)=>{let s=bt.get(t);if(St&&n){s=s||new CSSStyleSheet;if(typeof s==="string"){s=e}else{s.replaceSync(e)}}else{s=e}bt.set(t,s)};const C=(t,e,n,s)=>{var o;let l=L(e);const c=bt.get(l);t=t.nodeType===11?t:$t;if(c){if(typeof c==="string"){t=t.head||t;let e=k.get(t);let n;if(!e){k.set(t,e=new Set)}if(!e.has(l)){{{n=$t.createElement("style");n.innerHTML=c}const e=(o=gt.v)!==null&&o!==void 0?o:h($t);if(e!=null){n.setAttribute("nonce",e)}t.insertBefore(n,t.querySelector("link"))}if(e){e.add(l)}}}else if(!t.adoptedStyleSheets.includes(c)){t.adoptedStyleSheets=[...t.adoptedStyleSheets,c]}}return l};const x=t=>{const e=t.S;const n=t.g;const s=e.h;const o=l("attachStyles",e.j);const c=C(n.getRootNode(),e);if(s&10){n["s-sc"]=c;n.classList.add(c+"-h");if(s&2){n.classList.add(c+"-s")}}o()};const L=(t,e)=>"sc-"+t.j;const P=(t,e,n,s,o,l)=>{if(n!==s){let c=ht(t,e);let i=e.toLowerCase();if(e==="class"){const e=t.classList;const o=E(n);const l=E(s);e.remove(...o.filter((t=>t&&!l.includes(t))));e.add(...l.filter((t=>t&&!o.includes(t))))}else if(e==="style"){{for(const e in n){if(!s||s[e]==null){if(e.includes("-")){t.style.removeProperty(e)}else{t.style[e]=""}}}}for(const e in s){if(!n||s[e]!==n[e]){if(e.includes("-")){t.style.setProperty(e,s[e])}else{t.style[e]=s[e]}}}}else if(e==="key");else if(!c&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(ht(wt,i)){e=i.slice(2)}else{e=i[2]+e.slice(3)}if(n){gt.rel(t,e,n,false)}if(s){gt.ael(t,e,s,false)}}else{const i=d(s);if((c||i&&s!==null)&&!o){try{if(!t.tagName.includes("-")){const o=s==null?"":s;if(e==="list"){c=false}else if(n==null||t[e]!=o){t[e]=o}}else{t[e]=s}}catch(t){}}if(s==null||s===false){if(s!==false||t.getAttribute(e)===""){{t.removeAttribute(e)}}}else if((!c||l&4||o)&&!i){s=s===true?"":s;{t.setAttribute(e,s)}}}}};const U=/\s/;const E=t=>!t?[]:t.split(U);const R=(t,e,n,s)=>{const o=e.m.nodeType===11&&e.m.host?e.m.host:e.m;const l=t&&t.l||f;const c=e.l||f;{for(s in l){if(!(s in c)){P(o,s,l[s],undefined,n,e.h)}}}for(s in c){P(o,s,l[s],c[s],n,e.h)}};const W=(t,s,o,l)=>{const c=s.i[o];let i=0;let f;let d;if(c.o!==null){f=c.m=$t.createTextNode(c.o)}else{if(!n){n=c.p==="svg"}f=c.m=$t.createElementNS(n?r:u,c.p);if(n&&c.p==="foreignObject"){n=false}{R(null,c,n)}if(a(e)&&f["s-si"]!==e){f.classList.add(f["s-si"]=e)}if(c.i){for(i=0;i<c.i.length;++i){d=W(t,c,i);if(d){f.appendChild(d)}}}{if(c.p==="svg"){n=false}else if(f.tagName==="foreignObject"){n=true}}}return f};const N=(t,e,n,s,o,l)=>{let c=t;let i;for(;o<=l;++o){if(s[o]){i=W(null,n,o);if(i){s[o].m=i;c.insertBefore(i,e)}}}};const T=(t,e,n,s,o)=>{for(;e<=n;++e){if(s=t[e]){o=s.m;o.remove()}}};const A=(t,e,n,s)=>{let o=0;let l=0;let c=0;let i=0;let f=e.length-1;let r=e[0];let u=e[f];let a=s.length-1;let d=s[0];let h=s[a];let p;let y;while(o<=f&&l<=a){if(r==null){r=e[++o]}else if(u==null){u=e[--f]}else if(d==null){d=s[++l]}else if(h==null){h=s[--a]}else if(F(r,d)){q(r,d);r=e[++o];d=s[++l]}else if(F(u,h)){q(u,h);u=e[--f];h=s[--a]}else if(F(r,h)){q(r,h);t.insertBefore(r.m,u.m.nextSibling);r=e[++o];h=s[--a]}else if(F(u,d)){q(u,d);t.insertBefore(u.m,r.m);u=e[--f];d=s[++l]}else{c=-1;{for(i=o;i<=f;++i){if(e[i]&&e[i].u!==null&&e[i].u===d.u){c=i;break}}}if(c>=0){y=e[c];if(y.p!==d.p){p=W(e&&e[l],n,c)}else{q(y,d);e[c]=undefined;p=y.m}d=s[++l]}else{p=W(e&&e[l],n,l);d=s[++l]}if(p){{r.m.parentNode.insertBefore(p,r.m)}}}}if(o>f){N(t,s[a+1]==null?null:s[a+1].m,n,s,l,a)}else if(l>a){T(e,o,f)}};const F=(t,e)=>{if(t.p===e.p){{return t.u===e.u}}return false};const q=(t,e)=>{const s=e.m=t.m;const o=t.i;const l=e.i;const c=e.p;const i=e.o;if(i===null){{n=c==="svg"?true:c==="foreignObject"?false:n}{{R(t,e,n)}}if(o!==null&&l!==null){A(s,o,e,l)}else if(l!==null){if(t.o!==null){s.textContent=""}N(s,null,e,l,0,l.length-1)}else if(o!==null){T(o,0,o.length-1)}if(n&&c==="svg"){n=false}}else if(t.o!==i){s.data=i}};const D=(t,n)=>{const s=t.g;const o=t.O||y(null,null);const l=b(n)?n:p(null,null,n);l.p=null;l.h|=4;t.O=l;l.m=o.m=s;{e=s["s-sc"]}q(o,l)};const H=(t,e)=>{if(e&&!t.k&&e["s-p"]){e["s-p"].push(new Promise((e=>t.k=e)))}};const I=(t,e)=>{{t.h|=16}if(t.h&4){t.h|=512;return}H(t,t.M);const n=()=>V(t,e);return Lt(n)};const V=(t,e)=>{const n=l("scheduleUpdate",t.S.j);const s=t.C;let o;if(e){{t.h|=256;if(t.L){t.L.map((([t,e])=>J(s,t,e)));t.L=null}}{o=J(s,"componentWillLoad")}}{o=K(o,(()=>J(s,"componentWillRender")))}n();return K(o,(()=>_(t,s,e)))};const _=async(t,e,n)=>{const s=t.g;const o=l("update",t.S.j);const c=s["s-rc"];if(n){x(t)}const i=l("render",t.S.j);{z(t,e)}if(c){c.map((t=>t()));s["s-rc"]=undefined}i();o();{const e=s["s-p"];const n=()=>B(t);if(e.length===0){n()}else{Promise.all(e).then(n);t.h|=4;e.length=0}}};const z=(t,e,n)=>{try{e=e.render();{t.h&=~16}{t.h|=2}{{{D(t,e)}}}}catch(e){pt(e,t.g)}return null};const B=t=>{const e=t.S.j;const n=t.g;const s=l("postUpdate",e);const o=t.C;const c=t.M;if(!(t.h&64)){t.h|=64;{Q(n)}{J(o,"componentDidLoad")}s();{t.P(n);if(!c){G()}}}else{s()}{t.U(n)}{if(t.k){t.k();t.k=undefined}if(t.h&512){xt((()=>I(t,false)))}t.h&=~(4|512)}};const G=e=>{{Q($t.documentElement)}xt((()=>O(wt,"appload",{detail:{namespace:t}})))};const J=(t,e,n)=>{if(t&&t[e]){try{return t[e](n)}catch(t){pt(t)}}return undefined};const K=(t,e)=>t&&t.then?t.then(e):e();const Q=t=>t.classList.add("hydrated");const X=(t,e)=>ut(t).R.get(e);const Y=(t,e,n,s)=>{const o=ut(t);const l=o.g;const c=o.R.get(e);const i=o.h;const f=o.C;n=v(n,s.W[e][0]);const r=Number.isNaN(c)&&Number.isNaN(n);const u=n!==c&&!r;if((!(i&8)||c===undefined)&&u){o.R.set(e,n);if(f){if(s.N&&i&128){const t=s.N[e];if(t){t.map((t=>{try{f[t](n,c,e)}catch(t){pt(t,l)}}))}}if((i&(2|16))===2){I(o,false)}}}};const Z=(t,e,n)=>{if(e.W){if(t.watchers){e.N=t.watchers}const s=Object.entries(e.W);const o=t.prototype;s.map((([t,[s]])=>{if(s&31||n&2&&s&32){Object.defineProperty(o,t,{get(){return X(this,t)},set(n){Y(this,t,n,e)},configurable:true,enumerable:true})}else if(n&1&&s&64){Object.defineProperty(o,t,{value(...e){const n=ut(this);return n.T.then((()=>n.C[t](...e)))}})}}));if(n&1){const e=new Map;o.attributeChangedCallback=function(t,n,s){gt.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n)){s=this[n];delete this[n]}else if(o.hasOwnProperty(n)&&typeof this[n]==="number"&&this[n]==s){return}this[n]=s===null&&typeof this[n]==="boolean"?false:s}))};t.observedAttributes=s.filter((([t,e])=>e[0]&15)).map((([t,n])=>{const s=n[1]||t;e.set(s,t);return s}))}}return t};const tt=async(t,e,n,s,o)=>{if((e.h&32)===0){{e.h|=32;o=mt(n);if(o.then){const t=c();o=await o;t()}if(!o.isProxied){{n.N=o.watchers}Z(o,n,2);o.isProxied=true}const t=l("createInstance",n.j);{e.h|=8}try{new o(e)}catch(t){pt(t)}{e.h&=~8}{e.h|=128}t()}if(o.style){let t=o.style;const e=L(n);if(!bt.has(e)){const s=l("registerStyles",n.j);M(e,t,!!(n.h&1));s()}}}const i=e.M;const f=()=>I(e,true);if(i&&i["s-rc"]){i["s-rc"].push(f)}else{f()}};const et=t=>{if((gt.h&1)===0){const e=ut(t);const n=e.S;const s=l("connectedCallback",n.j);if(!(e.h&1)){e.h|=1;{let n=t;while(n=n.parentNode||n.host){if(n["s-p"]){H(e,e.M=n);break}}}if(n.W){Object.entries(n.W).map((([e,[n]])=>{if(n&31&&t.hasOwnProperty(e)){const n=t[e];delete t[e];t[e]=n}}))}{tt(t,e,n)}}else{ot(t,e,n.A)}s()}};const nt=t=>{if((gt.h&1)===0){const e=ut(t);{if(e.F){e.F.map((t=>t()));e.F=undefined}}}};const st=(t,e={})=>{var n;const s=l();const o=[];const c=e.exclude||[];const f=wt.customElements;const r=$t.head;const u=r.querySelector("meta[charset]");const a=$t.createElement("style");const d=[];let p;let y=true;Object.assign(gt,e);gt.t=new URL(e.resourcesUrl||"./",$t.baseURI).href;t.map((t=>{t[1].map((e=>{const n={h:e[0],j:e[1],W:e[2],A:e[3]};{n.W=e[2]}{n.A=e[3]}{n.N={}}const s=n.j;const l=class extends HTMLElement{constructor(t){super(t);t=this;dt(t,n)}connectedCallback(){if(p){clearTimeout(p);p=null}if(y){d.push(this)}else{gt.jmp((()=>et(this)))}}disconnectedCallback(){gt.jmp((()=>nt(this)))}componentOnReady(){return ut(this).q}};n.D=t[0];if(!c.includes(s)&&!f.get(s)){o.push(s);f.define(s,Z(l,n,1))}}))}));{a.innerHTML=o+i;a.setAttribute("data-styles","");const t=(n=gt.v)!==null&&n!==void 0?n:h($t);if(t!=null){a.setAttribute("nonce",t)}r.insertBefore(a,u?u.nextSibling:r.firstChild)}y=false;if(d.length){d.map((t=>t.connectedCallback()))}else{{gt.jmp((()=>p=setTimeout(G,30)))}}s()};const ot=(t,e,n,s)=>{if(n){n.map((([n,s,o])=>{const l=ct(t,n);const c=lt(e,o);const i=it(n);gt.ael(l,s,c,i);(e.F=e.F||[]).push((()=>gt.rel(l,s,c,i)))}))}};const lt=(t,e)=>n=>{try{{if(t.h&256){t.C[e](n)}else{(t.L=t.L||[]).push([e,n])}}}catch(t){pt(t)}};const ct=(t,e)=>{if(e&4)return $t;if(e&8)return wt;return t};const it=t=>(t&2)!==0;const ft=t=>gt.v=t;const rt=new WeakMap;const ut=t=>rt.get(t);const at=(t,e)=>rt.set(e.C=t,e);const dt=(t,e)=>{const n={h:0,g:t,S:e,R:new Map};{n.T=new Promise((t=>n.U=t))}{n.q=new Promise((t=>n.P=t));t["s-p"]=[];t["s-rc"]=[]}ot(t,n,e.A);return rt.set(t,n)};const ht=(t,e)=>e in t;const pt=(t,e)=>(0,console.error)(t,e);const yt=new Map;const mt=(t,e,n)=>{const s=t.j.replace(/-/g,"_");const o=t.D;const l=yt.get(o);if(l){return l[s]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${o}.entry.js${""}`).then((t=>{{yt.set(o,t)}return t[s]}),pt)};const bt=new Map;const wt=typeof window!=="undefined"?window:{};const $t=wt.document||{head:{}};const gt={h:0,t:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)};const vt=t=>Promise.resolve(t);const St=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(t){}return false})();const jt=[];const Ot=[];const kt=(t,e)=>n=>{t.push(n);if(!s){s=true;if(e&&gt.h&4){xt(Ct)}else{gt.raf(Ct)}}};const Mt=t=>{for(let e=0;e<t.length;e++){try{t[e](performance.now())}catch(t){pt(t)}}t.length=0};const Ct=()=>{Mt(jt);{Mt(Ot);if(s=jt.length>0){gt.raf(Ct)}}};const xt=t=>vt().then(t);const Lt=kt(Ot,true);export{S as a,st as b,j as c,o as g,p as h,vt as p,at as r,ft as s};
3
+ //# sourceMappingURL=p-a3449132.js.map