@ppg_pl/pallete 2.0.23 → 2.0.26

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 (90) 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 +1651 -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.css +350 -0
  16. package/dist/collection/components/my-colorinfo/my-colorinfo.js +135 -1
  17. package/dist/collection/components/my-colorinfo/my-colorinfo.js.map +1 -1
  18. package/dist/collection/components/my-component/my-component.js +68 -1
  19. package/dist/collection/components/my-component/my-component.js.map +1 -1
  20. package/dist/collection/components/my-modal/my-modal.css +8 -239
  21. package/dist/collection/components/my-modal/my-modal.js +42 -2
  22. package/dist/collection/components/my-modal/my-modal.js.map +1 -1
  23. package/dist/collection/components/my-search/my-search.css +7 -0
  24. package/dist/collection/components/my-slider/index.js +9 -6
  25. package/dist/collection/components/my-slider/index.js.map +1 -1
  26. package/dist/collection/components/my-slider/my-slider.css +12 -3
  27. package/dist/collection/types.js.map +1 -1
  28. package/dist/components/index3.js +10 -7
  29. package/dist/components/index3.js.map +1 -1
  30. package/dist/components/my-backdrop2.js +1 -1
  31. package/dist/components/my-backdrop2.js.map +1 -1
  32. package/dist/components/my-colorbox2.js +1 -1
  33. package/dist/components/my-colorbox2.js.map +1 -1
  34. package/dist/components/my-colorinfo2.js +46 -3
  35. package/dist/components/my-colorinfo2.js.map +1 -1
  36. package/dist/components/my-component.js +15 -3
  37. package/dist/components/my-component.js.map +1 -1
  38. package/dist/components/my-modal2.js +1589 -1274
  39. package/dist/components/my-modal2.js.map +1 -1
  40. package/dist/components/my-search2.js +1 -1
  41. package/dist/components/my-search2.js.map +1 -1
  42. package/dist/esm/{index-b0145abf.js → index-45a30349.js} +33 -2
  43. package/dist/esm/index-45a30349.js.map +1 -0
  44. package/dist/esm/loader.js +3 -3
  45. package/dist/esm/loader.js.map +1 -1
  46. package/dist/esm/my-backdrop_8.entry.js +1651 -1286
  47. package/dist/esm/my-backdrop_8.entry.js.map +1 -1
  48. package/dist/esm/pallete.js +3 -3
  49. package/dist/esm/pallete.js.map +1 -1
  50. package/dist/pallete/assets/Shape.svg +4 -0
  51. package/dist/pallete/assets/shape.png +0 -0
  52. package/dist/pallete/p-2394bcec.entry.js +2 -0
  53. package/dist/pallete/p-2394bcec.entry.js.map +1 -0
  54. package/dist/pallete/p-a3449132.js +3 -0
  55. package/dist/pallete/p-a3449132.js.map +1 -0
  56. package/dist/pallete/pallete.css +1 -1
  57. package/dist/pallete/pallete.esm.js +1 -1
  58. package/dist/pallete/pallete.esm.js.map +1 -1
  59. package/dist/types/components/my-colorinfo/my-colorinfo.d.ts +11 -1
  60. package/dist/types/components/my-component/my-component.d.ts +9 -0
  61. package/dist/types/components/my-modal/my-modal.d.ts +3 -1
  62. package/dist/types/components.d.ts +24 -2
  63. package/dist/types/types.d.ts +4 -0
  64. package/package.json +5 -4
  65. package/www/build/assets/Shape.svg +4 -0
  66. package/www/build/assets/shape.png +0 -0
  67. package/www/build/p-2394bcec.entry.js +2 -0
  68. package/www/build/p-2394bcec.entry.js.map +1 -0
  69. package/www/build/p-a3449132.js +3 -0
  70. package/www/build/p-a3449132.js.map +1 -0
  71. package/www/build/p-c5910eb7.js +2 -0
  72. package/www/build/p-f8a0208d.css +1 -0
  73. package/www/build/pallete.css +1 -1
  74. package/www/build/pallete.esm.js +1 -1
  75. package/www/build/pallete.esm.js.map +1 -1
  76. package/www/index.html +62 -10
  77. package/dist/cjs/index-53e78fc8.js.map +0 -1
  78. package/dist/esm/index-b0145abf.js.map +0 -1
  79. package/dist/pallete/p-bdb05818.entry.js +0 -2
  80. package/dist/pallete/p-bdb05818.entry.js.map +0 -1
  81. package/dist/pallete/p-c6a049a2.js +0 -3
  82. package/dist/pallete/p-c6a049a2.js.map +0 -1
  83. package/www/build/p-bdb05818.entry.js +0 -2
  84. package/www/build/p-bdb05818.entry.js.map +0 -1
  85. package/www/build/p-c6a049a2.js +0 -3
  86. package/www/build/p-c6a049a2.js.map +0 -1
  87. /package/www/{build/assets → assets}/fonts/Galatea-Regular.eot +0 -0
  88. /package/www/{build/assets → assets}/fonts/Galatea-Regular.ttf +0 -0
  89. /package/www/{build/assets → assets}/fonts/Galatea-Regular.woff +0 -0
  90. /package/www/{build/assets → assets}/fonts/Galatea-Regular.woff2 +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-53e78fc8.js');
5
+ const index = require('./index-d74cbc0d.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Browser v3.1.0 | MIT Licensed | https://stenciljs.com
@@ -20,7 +20,7 @@ const patchBrowser = () => {
20
20
  };
21
21
 
22
22
  patchBrowser().then(options => {
23
- return index.bootstrapLazy([["my-backdrop_8.cjs",[[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]}]]]], options);
23
+ return index.bootstrapLazy([["my-backdrop_8.cjs",[[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"]]],[2,"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"],[2,"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]}]]]], options);
24
24
  });
25
25
 
26
26
  exports.setNonce = index.setNonce;
@@ -1 +1 @@
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}
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/.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"],"version":3}
@@ -1,3 +1,10 @@
1
+ @font-face {
2
+ font-family: "Galatea";
3
+ 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");
4
+ font-weight: normal;
5
+ font-style: normal;
6
+ font-display: swap;
7
+ }
1
8
  .pallete-wrapper * {
2
9
  font-family: "Galatea", sans-serif;
3
10
  }
@@ -1,3 +1,10 @@
1
+ @font-face {
2
+ font-family: "Galatea";
3
+ 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");
4
+ font-weight: normal;
5
+ font-style: normal;
6
+ font-display: swap;
7
+ }
1
8
  .pallete-wrapper * {
2
9
  font-family: "Galatea", sans-serif;
3
10
  }
@@ -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>
@@ -0,0 +1,350 @@
1
+ @font-face {
2
+ font-family: "Galatea";
3
+ 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");
4
+ font-weight: normal;
5
+ font-style: normal;
6
+ font-display: swap;
7
+ }
8
+ .pallete-wrapper * {
9
+ font-family: "Galatea", sans-serif;
10
+ }
11
+
12
+ .boxes__box-content {
13
+ width: 100%;
14
+ margin-bottom: 5px;
15
+ height: 500px;
16
+ text-align: left;
17
+ display: flex;
18
+ flex-direction: row;
19
+ justify-content: space-between;
20
+ position: relative;
21
+ }
22
+ .boxes__box-content .closebtn {
23
+ position: absolute;
24
+ right: 10px;
25
+ top: 10px;
26
+ width: 53px;
27
+ height: 53px;
28
+ cursor: pointer;
29
+ object-fit: cover;
30
+ z-index: 9999;
31
+ }
32
+ @media (max-width: 1024px) {
33
+ .boxes__box-content {
34
+ flex-direction: column-reverse;
35
+ height: auto;
36
+ }
37
+ }
38
+ @media (max-width: 768px) {
39
+ .boxes__box-content {
40
+ margin: 0 auto;
41
+ }
42
+ }
43
+ .boxes__box-content__info {
44
+ width: 40%;
45
+ padding: 50px 40px;
46
+ position: relative;
47
+ display: flex;
48
+ flex-direction: column;
49
+ justify-content: space-between;
50
+ }
51
+ @media (max-width: 1024px) {
52
+ .boxes__box-content__info {
53
+ width: 100%;
54
+ padding: 15px;
55
+ min-height: 100px;
56
+ }
57
+ }
58
+ @media (max-width: 768px) {
59
+ .boxes__box-content__info {
60
+ min-height: auto;
61
+ }
62
+ }
63
+ .boxes__box-content__info__header {
64
+ display: flex;
65
+ flex-direction: column;
66
+ align-items: flex-start;
67
+ }
68
+ .boxes__box-content__info h2 {
69
+ font-size: 35px;
70
+ font-weight: normal;
71
+ margin-bottom: 30px;
72
+ color: #232323;
73
+ }
74
+ @media (max-width: 768px) {
75
+ .boxes__box-content__info h2 {
76
+ font-size: 16px;
77
+ text-align: center;
78
+ margin-bottom: 15px;
79
+ margin-top: 5px;
80
+ }
81
+ }
82
+ .boxes__box-content__info h4 {
83
+ margin-top: 0px;
84
+ margin-bottom: 15px;
85
+ font-size: 16px;
86
+ color: #4c4c4c;
87
+ }
88
+ .boxes__box-content__info__value {
89
+ display: flex;
90
+ flex-direction: column;
91
+ align-items: flex-start;
92
+ gap: 20px;
93
+ }
94
+ @media (max-width: 1024px) {
95
+ .boxes__box-content__info__value {
96
+ justify-content: flex-start;
97
+ margin-top: 30px;
98
+ }
99
+ }
100
+ @media (max-width: 768px) {
101
+ .boxes__box-content__info__value {
102
+ flex-direction: column;
103
+ }
104
+ }
105
+ @media (max-width: 768px) {
106
+ .boxes__box-content__info__value-image {
107
+ margin: 0 auto;
108
+ margin-bottom: 10px;
109
+ }
110
+ }
111
+ .boxes__box-content__info__value-image img {
112
+ width: 114px;
113
+ object-fit: cover;
114
+ }
115
+ @media (max-width: 1024px) {
116
+ .boxes__box-content__info__value-image img {
117
+ width: 75px;
118
+ }
119
+ }
120
+ .boxes__box-content__info__value-product {
121
+ color: #232323;
122
+ margin-left: 10px;
123
+ }
124
+ @media (max-width: 1024px) {
125
+ .boxes__box-content__info__value-product h2 {
126
+ font-size: 26px;
127
+ margin: 0;
128
+ margin-right: 10px;
129
+ }
130
+ }
131
+ @media (max-width: 768px) {
132
+ .boxes__box-content__info__value-product h2 {
133
+ font-size: 16px;
134
+ }
135
+ }
136
+ .boxes__box-content__info__value-product p {
137
+ font-size: 20px;
138
+ margin-top: 0px;
139
+ margin-bottom: 0px;
140
+ }
141
+ .boxes__box-content__info__value-product p:last-of-type {
142
+ margin-bottom: 20px;
143
+ }
144
+ @media (max-width: 1024px) {
145
+ .boxes__box-content__info__value-product p:last-of-type {
146
+ margin-bottom: 0;
147
+ }
148
+ }
149
+ @media (max-width: 768px) {
150
+ .boxes__box-content__info__value-product p {
151
+ font-size: 10px;
152
+ }
153
+ }
154
+ @media (max-width: 1024px) {
155
+ .boxes__box-content__info__value-product > div {
156
+ display: flex;
157
+ justify-content: flex-start;
158
+ align-items: center;
159
+ }
160
+ }
161
+ @media (max-width: 768px) {
162
+ .boxes__box-content__info__value-product > div {
163
+ flex-direction: column;
164
+ }
165
+ }
166
+ .boxes__box-content__info__tester {
167
+ display: flex;
168
+ flex-direction: column;
169
+ gap: 15px;
170
+ width: 100%;
171
+ }
172
+ @media (max-width: 1024px) {
173
+ .boxes__box-content__info__tester {
174
+ text-align: center;
175
+ }
176
+ }
177
+ .boxes__box-content__info__tester .tester-text h2 {
178
+ margin: 0 0 10px;
179
+ font-size: 18px;
180
+ font-weight: 700;
181
+ }
182
+ .boxes__box-content__info__tester .tester-text p {
183
+ margin: 0;
184
+ font-size: 14px;
185
+ }
186
+ .boxes__box-content__info__tester .tester-buy {
187
+ display: flex;
188
+ align-items: center;
189
+ gap: 15px;
190
+ }
191
+ @media (max-width: 1024px) {
192
+ .boxes__box-content__info__tester .tester-buy {
193
+ flex-direction: column;
194
+ }
195
+ .boxes__box-content__info__tester .tester-buy button {
196
+ margin: 0;
197
+ max-width: 100%;
198
+ }
199
+ }
200
+ .boxes__box-content__info__tester .price {
201
+ font-size: 20px;
202
+ font-weight: 600;
203
+ }
204
+ .boxes__box-content__slider {
205
+ width: 60%;
206
+ min-width: 60%;
207
+ max-width: 60%;
208
+ position: relative;
209
+ }
210
+ @media (max-width: 1024px) {
211
+ .boxes__box-content__slider {
212
+ width: 100%;
213
+ display: block;
214
+ min-width: 100%;
215
+ max-width: 100%;
216
+ }
217
+ }
218
+ .boxes__box-content__slider .color-big-image {
219
+ width: 100%;
220
+ height: 100%;
221
+ object-fit: cover;
222
+ }
223
+ @media (max-width: 1024px) {
224
+ .boxes__box-content__slider .color-big-image {
225
+ height: 300px;
226
+ }
227
+ }
228
+ .boxes__box-content__white .tester-text,
229
+ .boxes__box-content__white .tester-buy {
230
+ color: #fff;
231
+ }
232
+ .boxes__box-content__white h2 {
233
+ color: #fff;
234
+ }
235
+
236
+ .button,
237
+ a.button {
238
+ background-color: #fff;
239
+ font-size: 16px;
240
+ box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
241
+ border-radius: 22px;
242
+ padding: 10px 35px;
243
+ color: #232323;
244
+ text-decoration: none;
245
+ text-align: center;
246
+ transition: all 0.7s ease-in-out;
247
+ border: none;
248
+ cursor: pointer;
249
+ display: flex;
250
+ align-items: center;
251
+ gap: 5px;
252
+ }
253
+ .button .shape-icon,
254
+ a.button .shape-icon {
255
+ display: inline-flex;
256
+ }
257
+ .button .shape-icon svg,
258
+ a.button .shape-icon svg {
259
+ display: block;
260
+ }
261
+ .button .shape-icon path,
262
+ .button .shape-icon .shape-icon__path,
263
+ a.button .shape-icon path,
264
+ a.button .shape-icon .shape-icon__path {
265
+ fill: currentColor;
266
+ transition: fill 0.7s ease-in-out;
267
+ }
268
+ .button.fit,
269
+ a.button.fit {
270
+ padding: 10px 15px;
271
+ }
272
+ .button:hover,
273
+ a.button:hover {
274
+ color: #fff;
275
+ background-color: #232323;
276
+ }
277
+ .button.brown,
278
+ a.button.brown {
279
+ background-color: #3c2114;
280
+ color: #fff;
281
+ }
282
+ .button.brown:hover,
283
+ a.button.brown:hover {
284
+ color: #fff;
285
+ background-color: #232323;
286
+ }
287
+ .button.inverse,
288
+ a.button.inverse {
289
+ background-color: #232323;
290
+ color: #fff;
291
+ }
292
+ .button.inverse:hover,
293
+ a.button.inverse:hover {
294
+ color: #232323;
295
+ background-color: #fff;
296
+ }
297
+ .button.inverse svg path,
298
+ a.button.inverse svg path {
299
+ fill: #fff;
300
+ }
301
+ .button:disabled,
302
+ a.button:disabled {
303
+ cursor: not-allowed;
304
+ background-color: white;
305
+ opacity: 0.5;
306
+ }
307
+ .button:disabled.brown,
308
+ a.button:disabled.brown {
309
+ background-color: black;
310
+ color: white;
311
+ opacity: 0.5;
312
+ }
313
+ .button:disabled.inverse,
314
+ a.button:disabled.inverse {
315
+ background-color: black;
316
+ color: white;
317
+ opacity: 0.5;
318
+ }
319
+ .button:disabled:hover,
320
+ a.button:disabled:hover {
321
+ background-color: inherit;
322
+ color: inherit;
323
+ opacity: 0.5;
324
+ }
325
+ @media (max-width: 1024px) {
326
+ .button,
327
+ a.button {
328
+ max-width: 150px;
329
+ font-size: 13px;
330
+ padding: 12px 25px;
331
+ }
332
+ }
333
+ @media (max-width: 768px) {
334
+ .button,
335
+ a.button {
336
+ margin: 0 auto;
337
+ }
338
+ }
339
+
340
+ .divider {
341
+ border: 1px solid #4c4c4c;
342
+ opacity: 0.2;
343
+ margin-bottom: 20px;
344
+ }
345
+ @media (max-width: 768px) {
346
+ .divider {
347
+ margin: 10px 0px;
348
+ display: none;
349
+ }
350
+ }
@@ -38,14 +38,48 @@ export class MyColorInfo {
38
38
  this.capitalizeFirstLetter = (string) => {
39
39
  return string.charAt(0).toUpperCase() + string.slice(1).toLocaleLowerCase();
40
40
  };
41
+ this.isVeryLightBackground = () => {
42
+ var _a, _b;
43
+ if (this.currentColor.imageInsteadHex)
44
+ return true;
45
+ const hex = (_b = (_a = this.currentColor.hex) === null || _a === void 0 ? void 0 : _a.replace('#', '')) !== null && _b !== void 0 ? _b : '';
46
+ if (hex.length !== 6 && hex.length !== 3)
47
+ return false;
48
+ const r = parseInt(hex.length === 3 ? hex[0] + hex[0] : hex.slice(0, 2), 16) / 255;
49
+ const g = parseInt(hex.length === 3 ? hex[1] + hex[1] : hex.slice(2, 4), 16) / 255;
50
+ const b = parseInt(hex.length === 3 ? hex[2] + hex[2] : hex.slice(4, 6), 16) / 255;
51
+ const luminance = 0.299 * r + 0.587 * g + 0.114 * b;
52
+ return luminance > 0.96; // only near-white: dark button; rest: white button
53
+ };
54
+ this.getButtonClass = () => {
55
+ if (this.currentColor.imageInsteadHex)
56
+ return 'brown';
57
+ return this.isVeryLightBackground() ? 'inverse' : '';
58
+ };
59
+ this.handleAddToBasket = () => {
60
+ var _a;
61
+ if (!((_a = this.availableTesters) === null || _a === void 0 ? void 0 : _a.id_product_attribute))
62
+ return;
63
+ this.buttonBlocked = true;
64
+ this.addToBasket.emit({
65
+ id: this.availableTesters.id_product_attribute,
66
+ });
67
+ setTimeout(() => {
68
+ this.buttonBlocked = false;
69
+ }, 10000);
70
+ };
41
71
  this.currentColor = undefined;
42
72
  this.shop = undefined;
43
73
  this.product = undefined;
44
74
  this.baselink = undefined;
75
+ this.availableTesters = undefined;
76
+ this.price = undefined;
45
77
  this.data = null;
46
78
  this.isMobile = false;
47
79
  this.infoBoxWidth = undefined;
48
80
  this.closeImage = 'close.png';
81
+ this.shapeImage = 'Shape.svg';
82
+ this.buttonBlocked = false;
49
83
  }
50
84
  render() {
51
85
  var _a;
@@ -54,9 +88,21 @@ export class MyColorInfo {
54
88
  maxWidth: `${this.infoBoxWidth && this.infoBoxWidth - 4}px`,
55
89
  } }, this.isMobile && h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), h("div", { class: "boxes__box-content__info", style: {
56
90
  maxWidth: this.isMobile ? `${this.infoBoxWidth && this.infoBoxWidth - 35}px` : ``,
57
- } }, !this.isMobile && h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), h("h2", null, this.capitalizeFirstLetter(this.currentColor.name)), !this.isMobile && h("h4", null, this.currentColor.number), h("div", { class: "boxes__box-content__info__value" }, h("div", { class: "boxes__box-content__info__value-product" }, this.isMobile && h("div", { class: 'divider' }), this.currentColor && ((_a = this.currentColor.links) === null || _a === void 0 ? void 0 : _a.find((link) => (link === null || link === void 0 ? void 0 : link.shop) === this.shop)) && (h("a", { onClick: this.goToProduct, href: this.getHref(), class: `button ${this.currentColor.imageInsteadHex ? 'brown' : this.currentColor.buttonInverse ? 'inverse' : ''}` }, "wybierz kolor"))))), h("div", { class: "boxes__box-content__slider" }, this.renderSliderOrImage())));
91
+ } }, h("div", { class: "boxes__box-content__info__header" }, !this.isMobile && h("img", { class: 'closebtn', onClick: this.onCloseButtonClick, src: getAssetPath(`./assets/${this.closeImage}`), alt: "closebtn" }), h("h2", null, this.capitalizeFirstLetter(this.currentColor.name)), !this.isMobile && h("h4", null, this.currentColor.number), this.currentColor && ((_a = this.currentColor.links) === null || _a === void 0 ? void 0 : _a.find((link) => (link === null || link === void 0 ? void 0 : link.shop) === this.shop)) && (h("a", { onClick: this.goToProduct, href: this.getHref(), class: `button ${this.getButtonClass()}` }, "wybierz kolor"))), h("div", { class: "boxes__box-content__info__value" }, h("div", { class: "divider" }), h("div", { class: "boxes__box-content__info__tester" }, ' ', h("div", { class: "divider" }), h("div", { class: "tester-text" }, h("h2", null, "Zam\u00F3w tester"), h("p", null, "Sprawd\u017A go na swojej \u015Bcianie.")), h("div", { class: "tester-buy" }, h("div", { class: "price" }, this.price ? `${this.price} zł` : ''), h("button", { class: `button fit ${this.getButtonClass()} ${!this.availableTesters ? 'disabled' : ''}`, onClick: this.handleAddToBasket, disabled: !this.availableTesters || this.buttonBlocked }, h("span", { class: "shape-icon", "aria-hidden": "true" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "16", viewBox: "0 0 15 16" }, h("path", { class: "shape-icon__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" }))), this.buttonBlocked ? 'Dodano do koszyka…' : !this.availableTesters ? 'Tester obecnie niedostępny' : 'Dodaj do koszyka'))))), h("div", { class: "boxes__box-content__slider" }, this.renderSliderOrImage())));
58
92
  }
59
93
  static get is() { return "my-colorinfo"; }
94
+ static get encapsulation() { return "scoped"; }
95
+ static get originalStyleUrls() {
96
+ return {
97
+ "$": ["my-colorinfo.scss"]
98
+ };
99
+ }
100
+ static get styleUrls() {
101
+ return {
102
+ "$": ["my-colorinfo.css"]
103
+ };
104
+ }
105
+ static get assetsDirs() { return ["assets"]; }
60
106
  static get properties() {
61
107
  return {
62
108
  "currentColor": {
@@ -130,6 +176,43 @@ export class MyColorInfo {
130
176
  "attribute": "baselink",
131
177
  "reflect": false
132
178
  },
179
+ "availableTesters": {
180
+ "type": "unknown",
181
+ "mutable": false,
182
+ "complexType": {
183
+ "original": "AvailableTester | null",
184
+ "resolved": "null | { id_product_attribute: number; color_name: string; }",
185
+ "references": {
186
+ "AvailableTester": {
187
+ "location": "import",
188
+ "path": "../../types"
189
+ }
190
+ }
191
+ },
192
+ "required": false,
193
+ "optional": false,
194
+ "docs": {
195
+ "tags": [],
196
+ "text": ""
197
+ }
198
+ },
199
+ "price": {
200
+ "type": "number",
201
+ "mutable": false,
202
+ "complexType": {
203
+ "original": "number | null",
204
+ "resolved": "null | number",
205
+ "references": {}
206
+ },
207
+ "required": false,
208
+ "optional": false,
209
+ "docs": {
210
+ "tags": [],
211
+ "text": ""
212
+ },
213
+ "attribute": "price",
214
+ "reflect": false
215
+ },
133
216
  "data": {
134
217
  "type": "unknown",
135
218
  "mutable": false,
@@ -203,6 +286,42 @@ export class MyColorInfo {
203
286
  "attribute": "close-image",
204
287
  "reflect": false,
205
288
  "defaultValue": "'close.png'"
289
+ },
290
+ "shapeImage": {
291
+ "type": "string",
292
+ "mutable": false,
293
+ "complexType": {
294
+ "original": "string",
295
+ "resolved": "string",
296
+ "references": {}
297
+ },
298
+ "required": false,
299
+ "optional": false,
300
+ "docs": {
301
+ "tags": [],
302
+ "text": ""
303
+ },
304
+ "attribute": "shape-image",
305
+ "reflect": false,
306
+ "defaultValue": "'Shape.svg'"
307
+ },
308
+ "buttonBlocked": {
309
+ "type": "boolean",
310
+ "mutable": false,
311
+ "complexType": {
312
+ "original": "boolean",
313
+ "resolved": "boolean",
314
+ "references": {}
315
+ },
316
+ "required": false,
317
+ "optional": false,
318
+ "docs": {
319
+ "tags": [],
320
+ "text": ""
321
+ },
322
+ "attribute": "button-blocked",
323
+ "reflect": false,
324
+ "defaultValue": "false"
206
325
  }
207
326
  };
208
327
  }
@@ -222,6 +341,21 @@ export class MyColorInfo {
222
341
  "resolved": "any",
223
342
  "references": {}
224
343
  }
344
+ }, {
345
+ "method": "addToBasket",
346
+ "name": "addToBasket",
347
+ "bubbles": true,
348
+ "cancelable": true,
349
+ "composed": true,
350
+ "docs": {
351
+ "tags": [],
352
+ "text": ""
353
+ },
354
+ "complexType": {
355
+ "original": "{ id: number }",
356
+ "resolved": "{ id: number; }",
357
+ "references": {}
358
+ }
225
359
  }];
226
360
  }
227
361
  }