@ppg_pl/tinting 0.0.0 → 0.0.2

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 (48) hide show
  1. package/README.md +0 -8
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{modal-header_10.cjs.entry.js → modal-header_9.cjs.entry.js} +25 -34
  4. package/dist/cjs/modal-header_9.cjs.entry.js.map +1 -0
  5. package/dist/cjs/tinting.cjs.js +1 -1
  6. package/dist/collection/collection-manifest.json +0 -1
  7. package/dist/collection/components/modal/index.js +15 -11
  8. package/dist/collection/components/modal/index.js.map +1 -1
  9. package/dist/collection/components/select/index.css +5 -0
  10. package/dist/components/index10.js +3925 -9
  11. package/dist/components/index10.js.map +1 -1
  12. package/dist/components/index4.js +1 -1
  13. package/dist/components/index4.js.map +1 -1
  14. package/dist/components/my-component.js +9 -15
  15. package/dist/components/my-component.js.map +1 -1
  16. package/dist/components/my-modal.js +1 -1
  17. package/dist/esm/loader.js +1 -1
  18. package/dist/esm/{modal-header_10.entry.js → modal-header_9.entry.js} +26 -34
  19. package/dist/esm/modal-header_9.entry.js.map +1 -0
  20. package/dist/esm/tinting.js +1 -1
  21. package/dist/tinting/p-cd431d43.entry.js +15 -0
  22. package/dist/tinting/p-cd431d43.entry.js.map +1 -0
  23. package/dist/tinting/tinting.esm.js +1 -1
  24. package/dist/tinting/tinting.esm.js.map +1 -1
  25. package/dist/types/components.d.ts +0 -13
  26. package/package.json +1 -1
  27. package/www/build/p-cd431d43.entry.js +15 -0
  28. package/www/build/p-cd431d43.entry.js.map +1 -0
  29. package/www/build/tinting.esm.js +1 -1
  30. package/www/build/tinting.esm.js.map +1 -1
  31. package/www/index.html +1 -1
  32. package/dist/cjs/modal-header_10.cjs.entry.js.map +0 -1
  33. package/dist/collection/components/loader/index.css +0 -85
  34. package/dist/collection/components/loader/index.js +0 -19
  35. package/dist/collection/components/loader/index.js.map +0 -1
  36. package/dist/components/index11.js +0 -3949
  37. package/dist/components/index11.js.map +0 -1
  38. package/dist/components/my-loader.d.ts +0 -11
  39. package/dist/components/my-loader.js +0 -8
  40. package/dist/components/my-loader.js.map +0 -1
  41. package/dist/esm/modal-header_10.entry.js.map +0 -1
  42. package/dist/tinting/p-06cd865b.entry.js +0 -15
  43. package/dist/tinting/p-06cd865b.entry.js.map +0 -1
  44. package/dist/types/components/loader/index.d.ts +0 -3
  45. package/www/build/p-06cd865b.entry.js +0 -15
  46. package/www/build/p-06cd865b.entry.js.map +0 -1
  47. package/www/build/p-a4907f5e.css +0 -4
  48. package/www/build/p-e2322b6c.js +0 -163
package/README.md CHANGED
@@ -4,14 +4,6 @@ This documentation provides an overview of the project's architecture, technolog
4
4
 
5
5
  ## Backend
6
6
 
7
- ### Version 1.0.1
8
-
9
- - **Framework**: The application backend is built using [Strapi](https://docs.strapi.io/developer-docs/latest/getting-started/introduction.html) version 4.
10
- - **Database**: The staging environment is configured with a PostgreSQL database.
11
- - **Collation Method**: Refer to the Strapi documentation for detailed information on collation.
12
-
13
- ### Version 2.0.0
14
-
15
7
  - **Framework**: The application backend is built using [Directus](https://docs.directus.io/self-hosted/quickstart.html) version 10.10.4.
16
8
  - **Database**: The staging environment is configured with a PostgreSQL database.
17
9
  - **Collation Method**: Refer to the Directus documentation for detailed information on collation.
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["modal-header_10.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,"onSelectedColorEmit","handleSelectedColor"]]],[0,"my-modal",{"shop":[1],"product":[1],"baselink":[1],"selectedcolor":[1],"arrowDown":[1,"arrow-down"],"chunksNum":[32],"data":[32],"preloader":[32],"loading":[32],"currentColor":[32],"currentIndex":[32],"infoBoxWidth":[32],"boxWidth":[32],"padding":[32],"isMobile":[32],"showRange":[32],"colorCategories":[32],"selectedCategory":[32],"page":[32],"colorIsSelected":[32],"colorsList":[32],"hasMore":[32],"filters":[32],"open":[64]},[[0,"closeInfoBox","closeInfoBoxHandler"],[0,"onCurrentColor","handleEmitColor"],[9,"resize","handleResize"],[0,"colorFamilySelected","handleColorFamilySelected"],[0,"searchColors","searchColorsHandler"]]],[0,"my-backdrop"],[0,"modal-header",{"modalName":[1,"modal-name"],"modalLogo":[1,"modal-logo"],"modalDescription":[1,"modal-description"],"selectedColorFamily":[1,"selected-color-family"],"shop":[1],"productName":[1,"product-name"],"isMobile":[4,"is-mobile"],"closeImage":[1,"close-image"],"productSamples":[16],"colorFamilies":[32]}],[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"]]],[2,"my-select",{"options":[16],"placeholder":[1],"isMobile":[4,"is-mobile"],"searchIcon":[1,"search-icon"],"searchText":[32],"filteredOptions":[32],"showDropdown":[32],"selectedValue":[32]},[[4,"clearSearchText","clearSearchTextHandler"]]],[0,"my-slider",{"slides":[16],"shop":[1],"product":[1],"color":[1]}]]]], options);
17
+ return index.bootstrapLazy([["modal-header_9.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,"onSelectedColorEmit","handleSelectedColor"]]],[0,"my-modal",{"shop":[1],"product":[1],"baselink":[1],"selectedcolor":[1],"arrowDown":[1,"arrow-down"],"chunksNum":[32],"data":[32],"preloader":[32],"loading":[32],"currentColor":[32],"currentIndex":[32],"infoBoxWidth":[32],"boxWidth":[32],"padding":[32],"isMobile":[32],"showRange":[32],"colorCategories":[32],"selectedCategory":[32],"page":[32],"colorIsSelected":[32],"colorsList":[32],"hasMore":[32],"filters":[32],"open":[64]},[[0,"closeInfoBox","closeInfoBoxHandler"],[0,"onCurrentColor","handleEmitColor"],[9,"resize","handleResize"],[0,"colorFamilySelected","handleColorFamilySelected"],[0,"searchColors","searchColorsHandler"]]],[0,"my-backdrop"],[0,"modal-header",{"modalName":[1,"modal-name"],"modalLogo":[1,"modal-logo"],"modalDescription":[1,"modal-description"],"selectedColorFamily":[1,"selected-color-family"],"shop":[1],"productName":[1,"product-name"],"isMobile":[4,"is-mobile"],"closeImage":[1,"close-image"],"productSamples":[16],"colorFamilies":[32]}],[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-search",{"productname":[1],"shopname":[1],"isMobile":[4,"is-mobile"],"searchIcon":[1,"search-icon"],"searchText":[32]},[[4,"clearSearchText","clearSearchTextHandler"]]],[2,"my-select",{"options":[16],"placeholder":[1],"isMobile":[4,"is-mobile"],"searchIcon":[1,"search-icon"],"searchText":[32],"filteredOptions":[32],"showDropdown":[32],"selectedValue":[32]},[[4,"clearSearchText","clearSearchTextHandler"]]],[0,"my-slider",{"slides":[16],"shop":[1],"product":[1],"color":[1]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -2620,7 +2620,7 @@ const updateFilters = (filters, newFilter) => {
2620
2620
  return Object.assign(Object.assign({}, filters), newFilter);
2621
2621
  };
2622
2622
 
2623
- const indexCss$8 = "@import url(\"https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap\"); .tinting-wrapper *{font-family:\"Poppins\", sans-serif}.my-modal__header{display:flex;justify-content:flex-start;flex-direction:column;margin-bottom:16px}@media (max-width: 905px){.my-modal__header{overflow-x:auto}}@media (max-width: 1024px){.my-modal__header{flex-direction:column;margin-bottom:12px;align-items:center;display:block}}.my-modal__header .image-wrapper{display:flex;margin-bottom:17px}@media (max-width: 768px){.my-modal__header .image-wrapper{margin-bottom:12px}}.my-modal__header .image-wrapper .modal-header__logo{max-width:400px;position:relative;max-height:130px;cursor:pointer}.my-modal__header .image-wrapper .modal-header__logo img{width:100%;height:100%;object-fit:cover}@media (max-width: 768px){.my-modal__header .image-wrapper .modal-header__logo{max-width:200px}}.my-modal__header .my-modal__see-more{margin-bottom:16px;text-align:left}.my-modal__header .search-wrapper{display:flex;align-items:center;justify-content:space-between;align-items:flex-end;gap:55px;align-items:center}@media (max-width: 1024px){.my-modal__header .search-wrapper{justify-content:center;width:92%;margin:0 auto;gap:21px}}@media (max-width: 768px){.my-modal__header .search-wrapper{flex-wrap:wrap}}.my-modal__header .search-wrapper .color-families{display:flex;gap:5px;flex-wrap:wrap;max-width:100%;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin;scrollbar-color:#aaa transparent;flex-wrap:wrap}.my-modal__header .search-wrapper .color-families::-webkit-scrollbar{height:6px}.my-modal__header .search-wrapper .color-families::-webkit-scrollbar-thumb{background-color:#aaa;border-radius:3px}@media (max-width: 1024px){.my-modal__header .search-wrapper .color-families{flex-wrap:nowrap}}.my-modal__header .search-wrapper .color-families .color-family{flex:0 0 auto;width:125px;height:125px;display:flex;align-items:center;justify-content:center;color:#fff;position:relative;cursor:pointer;transition:transform 0.2s ease, box-shadow 0.2s ease}.my-modal__header .search-wrapper .color-families .color-family:hover{transform:scale(0.93);box-shadow:0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1)}.my-modal__header .search-wrapper .color-families .color-family.active{transform:scale(0.93);box-shadow:0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1)}@media (max-width: 1024px){.my-modal__header .search-wrapper .color-families .color-family{width:90px;height:90px;font-size:12px}}.my-modal__header .search-wrapper .color-families .color-family div{width:100%;height:100%;cursor:pointer;font-size:15px;z-index:-1;opacity:65%;position:absolute}.my-modal__header .search-wrapper .search-container{display:flex;align-items:baseline}.my-modal__header .search-wrapper .search-container .filters{display:flex;flex-direction:column;gap:10px}@media (max-width: 1024px){.my-modal__header .search-wrapper .search-container .filters{width:100%}}@media (max-width: 1024px){.my-modal__header .search-wrapper .search-container{width:100%}}@media (max-width: 1024px){.my-modal__header .search-wrapper .sc-my-search-h{width:100%;margin:0 auto}}.my-modal__header .search-wrapper .my-modal__close{position:absolute;top:50px;right:20px;background:transparent;border:none;margin-top:-20px}.my-modal__header .search-wrapper .my-modal__close>img{width:45px;height:45px;object-fit:cover;cursor:pointer}@media (max-width: 1024px){.my-modal__header .search-wrapper .my-modal__close{margin-top:0px;position:absolute;right:10px;top:10px}}";
2623
+ const indexCss$7 = "@import url(\"https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap\"); .tinting-wrapper *{font-family:\"Poppins\", sans-serif}.my-modal__header{display:flex;justify-content:flex-start;flex-direction:column;margin-bottom:16px}@media (max-width: 905px){.my-modal__header{overflow-x:auto}}@media (max-width: 1024px){.my-modal__header{flex-direction:column;margin-bottom:12px;align-items:center;display:block}}.my-modal__header .image-wrapper{display:flex;margin-bottom:17px}@media (max-width: 768px){.my-modal__header .image-wrapper{margin-bottom:12px}}.my-modal__header .image-wrapper .modal-header__logo{max-width:400px;position:relative;max-height:130px;cursor:pointer}.my-modal__header .image-wrapper .modal-header__logo img{width:100%;height:100%;object-fit:cover}@media (max-width: 768px){.my-modal__header .image-wrapper .modal-header__logo{max-width:200px}}.my-modal__header .my-modal__see-more{margin-bottom:16px;text-align:left}.my-modal__header .search-wrapper{display:flex;align-items:center;justify-content:space-between;align-items:flex-end;gap:55px;align-items:center}@media (max-width: 1024px){.my-modal__header .search-wrapper{justify-content:center;width:92%;margin:0 auto;gap:21px}}@media (max-width: 768px){.my-modal__header .search-wrapper{flex-wrap:wrap}}.my-modal__header .search-wrapper .color-families{display:flex;gap:5px;flex-wrap:wrap;max-width:100%;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin;scrollbar-color:#aaa transparent;flex-wrap:wrap}.my-modal__header .search-wrapper .color-families::-webkit-scrollbar{height:6px}.my-modal__header .search-wrapper .color-families::-webkit-scrollbar-thumb{background-color:#aaa;border-radius:3px}@media (max-width: 1024px){.my-modal__header .search-wrapper .color-families{flex-wrap:nowrap}}.my-modal__header .search-wrapper .color-families .color-family{flex:0 0 auto;width:125px;height:125px;display:flex;align-items:center;justify-content:center;color:#fff;position:relative;cursor:pointer;transition:transform 0.2s ease, box-shadow 0.2s ease}.my-modal__header .search-wrapper .color-families .color-family:hover{transform:scale(0.93);box-shadow:0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1)}.my-modal__header .search-wrapper .color-families .color-family.active{transform:scale(0.93);box-shadow:0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1)}@media (max-width: 1024px){.my-modal__header .search-wrapper .color-families .color-family{width:90px;height:90px;font-size:12px}}.my-modal__header .search-wrapper .color-families .color-family div{width:100%;height:100%;cursor:pointer;font-size:15px;z-index:-1;opacity:65%;position:absolute}.my-modal__header .search-wrapper .search-container{display:flex;align-items:baseline}.my-modal__header .search-wrapper .search-container .filters{display:flex;flex-direction:column;gap:10px}@media (max-width: 1024px){.my-modal__header .search-wrapper .search-container .filters{width:100%}}@media (max-width: 1024px){.my-modal__header .search-wrapper .search-container{width:100%}}@media (max-width: 1024px){.my-modal__header .search-wrapper .sc-my-search-h{width:100%;margin:0 auto}}.my-modal__header .search-wrapper .my-modal__close{position:absolute;top:50px;right:20px;background:transparent;border:none;margin-top:-20px}.my-modal__header .search-wrapper .my-modal__close>img{width:45px;height:45px;object-fit:cover;cursor:pointer}@media (max-width: 1024px){.my-modal__header .search-wrapper .my-modal__close{margin-top:0px;position:absolute;right:10px;top:10px}}";
2624
2624
 
2625
2625
  const ModalHeader = class {
2626
2626
  constructor(hostRef) {
@@ -2708,9 +2708,9 @@ const ModalHeader = class {
2708
2708
  }
2709
2709
  static get assetsDirs() { return ["assets"]; }
2710
2710
  };
2711
- ModalHeader.style = indexCss$8;
2711
+ ModalHeader.style = indexCss$7;
2712
2712
 
2713
- const indexCss$7 = "@import url(\"https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap\"); .tinting-wrapper *{font-family:\"Poppins\", sans-serif}my-backdrop{width:100%;height:100%;background-color:rgba(0, 0, 0, 0.7);position:fixed;z-index:100;left:0;top:0}";
2713
+ const indexCss$6 = "@import url(\"https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap\"); .tinting-wrapper *{font-family:\"Poppins\", sans-serif}my-backdrop{width:100%;height:100%;background-color:rgba(0, 0, 0, 0.7);position:fixed;z-index:100;left:0;top:0}";
2714
2714
 
2715
2715
  const MyBackdrop = class {
2716
2716
  constructor(hostRef) {
@@ -2720,13 +2720,13 @@ const MyBackdrop = class {
2720
2720
  return null;
2721
2721
  }
2722
2722
  };
2723
- MyBackdrop.style = indexCss$7;
2723
+ MyBackdrop.style = indexCss$6;
2724
2724
 
2725
2725
  const setDataLayer = (obj) => {
2726
2726
  return window.dataLayer.push(obj);
2727
2727
  };
2728
2728
 
2729
- const indexCss$6 = "@import url(\"https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap\"); .tinting-wrapper *{font-family:\"Poppins\", sans-serif}.my-color-box{width:125px;height:125px;display:block;margin-bottom:5px;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;position:relative}@media (max-width: 1024px){.my-color-box{width:65px;height:65px}}.my-color-box .color-name{width:100%;background-color:#fff;padding:15px 0px 10px;border-top-left-radius:15px;border-top-right-radius:15px;opacity:0;transition:0.3s opacity ease-in-out;font-size:10px;color:#232323;text-transform:lowercase}.my-color-box.active .color-name{opacity:1}.my-color-box.categoryactive{width:120px;height:115px}.my-color-box.categoryactive .color-name{opacity:1}@media (max-width: 1024px){.my-color-box.categoryactive{width:72px;height:72px}}.my-color-box:hover .color-name{opacity:1}";
2729
+ const indexCss$5 = "@import url(\"https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap\"); .tinting-wrapper *{font-family:\"Poppins\", sans-serif}.my-color-box{width:125px;height:125px;display:block;margin-bottom:5px;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;position:relative}@media (max-width: 1024px){.my-color-box{width:65px;height:65px}}.my-color-box .color-name{width:100%;background-color:#fff;padding:15px 0px 10px;border-top-left-radius:15px;border-top-right-radius:15px;opacity:0;transition:0.3s opacity ease-in-out;font-size:10px;color:#232323;text-transform:lowercase}.my-color-box.active .color-name{opacity:1}.my-color-box.categoryactive{width:120px;height:115px}.my-color-box.categoryactive .color-name{opacity:1}@media (max-width: 1024px){.my-color-box.categoryactive{width:72px;height:72px}}.my-color-box:hover .color-name{opacity:1}";
2730
2730
 
2731
2731
  const MyColorBox = class {
2732
2732
  constructor(hostRef) {
@@ -2770,7 +2770,7 @@ const MyColorBox = class {
2770
2770
  } }, index$2.h("div", { class: "color-name" }, this.name)));
2771
2771
  }
2772
2772
  };
2773
- MyColorBox.style = indexCss$6;
2773
+ MyColorBox.style = indexCss$5;
2774
2774
 
2775
2775
  const MyColorInfo = class {
2776
2776
  constructor(hostRef) {
@@ -2939,7 +2939,7 @@ const Helmet = (_props, children, utils) => {
2939
2939
  return null;
2940
2940
  };
2941
2941
 
2942
- const indexCss$5 = ".tinting-wrapper.sc-my-component{display:flex;flex-direction:column;align-items:center;justify-content:center}";
2942
+ const indexCss$4 = ".tinting-wrapper.sc-my-component{display:flex;flex-direction:column;align-items:center;justify-content:center}";
2943
2943
 
2944
2944
  const MyModalBundle = class {
2945
2945
  constructor(hostRef) {
@@ -2990,19 +2990,7 @@ const MyModalBundle = class {
2990
2990
  }
2991
2991
  get modalEl() { return index$2.getElement(this); }
2992
2992
  };
2993
- MyModalBundle.style = indexCss$5;
2994
-
2995
- const indexCss$4 = ".container.sc-my-loader{display:flex;justify-content:center;align-items:center;height:190px;overflow:hidden}.item.sc-my-loader{width:20px;height:20px;margin:3px;list-style-type:none;transition:0.5s all ease}.item.sc-my-loader:nth-child(1){animation:right-1 1s infinite alternate;background-color:#b8cf40;animation-delay:20ms}@keyframes right-1{0%{transform:translateY(-18px)}100%{transform:translateY(18px)}}.item.sc-my-loader:nth-child(2){animation:right-2 1s infinite alternate;background-color:#ee4b5e;animation-delay:40ms}@keyframes right-2{0%{transform:translateY(-21px)}100%{transform:translateY(21px)}}.item.sc-my-loader:nth-child(3){animation:right-3 1s infinite alternate;background-color:#ea0f47;animation-delay:60ms}@keyframes right-3{0%{transform:translateY(-24px)}100%{transform:translateY(24px)}}.item.sc-my-loader:nth-child(4){animation:right-4 1s infinite alternate;background-color:#d42840;animation-delay:80ms}@keyframes right-4{0%{transform:translateY(-27px)}100%{transform:translateY(27px)}}.item.sc-my-loader:nth-child(5){animation:right-5 1s infinite alternate;background-color:#8b2850;animation-delay:100ms}@keyframes right-5{0%{transform:translateY(-30px)}100%{transform:translateY(30px)}}";
2996
-
2997
- const MyLoader = class {
2998
- constructor(hostRef) {
2999
- index$2.registerInstance(this, hostRef);
3000
- }
3001
- render() {
3002
- return (index$2.h("div", { class: "container" }, index$2.h("div", { class: "item" }), index$2.h("div", { class: "item" }), index$2.h("div", { class: "item" }), index$2.h("div", { class: "item" }), index$2.h("div", { class: "item" })));
3003
- }
3004
- };
3005
- MyLoader.style = indexCss$4;
2993
+ MyModalBundle.style = indexCss$4;
3006
2994
 
3007
2995
  function debounce$1(func, wait) {
3008
2996
  let timeout;
@@ -6515,7 +6503,7 @@ const Modal = class {
6515
6503
  }
6516
6504
  };
6517
6505
  this.chunks = (xs, y = []) => {
6518
- return xs.length === 0 ? y : this.chunks(xs.slice(this.chunksNum), y.concat([xs.slice(0, this.chunksNum)]));
6506
+ return (xs === null || xs === void 0 ? void 0 : xs.length) === 0 ? y : this.chunks(xs === null || xs === void 0 ? void 0 : xs.slice(this.chunksNum), y.concat([xs === null || xs === void 0 ? void 0 : xs.slice(0, this.chunksNum)]));
6519
6507
  };
6520
6508
  this.calculateBoxCount = () => {
6521
6509
  var _a;
@@ -6605,15 +6593,15 @@ const Modal = class {
6605
6593
  this.displayForMobile();
6606
6594
  }
6607
6595
  sortColorsBySimilarity(colors) {
6608
- if (colors.length <= 1)
6596
+ if ((colors === null || colors === void 0 ? void 0 : colors.length) <= 1)
6609
6597
  return colors;
6610
6598
  const sortedColors = [];
6611
6599
  const remainingColors = [...colors];
6612
6600
  // Start with the first color
6613
6601
  sortedColors.push(remainingColors.shift());
6614
- while (remainingColors.length > 0) {
6602
+ while ((remainingColors === null || remainingColors === void 0 ? void 0 : remainingColors.length) > 0) {
6615
6603
  // Find the most similar color to the last color in sortedColors
6616
- const lastColor = sortedColors[sortedColors.length - 1];
6604
+ const lastColor = sortedColors[(sortedColors === null || sortedColors === void 0 ? void 0 : sortedColors.length) - 1];
6617
6605
  let mostSimilarIndex = 0;
6618
6606
  let minDistance = Infinity;
6619
6607
  remainingColors.forEach((color, index) => {
@@ -6629,6 +6617,8 @@ const Modal = class {
6629
6617
  return sortedColors;
6630
6618
  }
6631
6619
  getColorHueGroup(hex) {
6620
+ if (!hex || !chroma.valid(hex))
6621
+ return 'other';
6632
6622
  const color = chroma(hex);
6633
6623
  const hue = color.get('hsl.h');
6634
6624
  const saturation = color.get('hsl.s');
@@ -6657,9 +6647,12 @@ const Modal = class {
6657
6647
  return 'other';
6658
6648
  }
6659
6649
  sortColorsByHueAndSimilarity(colors) {
6660
- if (colors.length <= 1)
6650
+ if ((colors === null || colors === void 0 ? void 0 : colors.length) <= 1)
6661
6651
  return colors;
6662
- // Group colors by their hue family
6652
+ // Separate valid and invalid hex colors
6653
+ const validColors = colors.filter(c => typeof c.hex === 'string' && c.hex && chroma.valid(c.hex));
6654
+ const invalidColors = colors.filter(c => !c.hex || !chroma.valid(c.hex));
6655
+ // Group valid colors by their hue family
6663
6656
  const colorGroups = {
6664
6657
  red: [],
6665
6658
  yellow: [],
@@ -6672,8 +6665,7 @@ const Modal = class {
6672
6665
  white: [],
6673
6666
  other: [],
6674
6667
  };
6675
- // Sort colors into groups
6676
- colors.forEach(color => {
6668
+ validColors.forEach(color => {
6677
6669
  const group = this.getColorHueGroup(color.hex);
6678
6670
  colorGroups[group].push(color);
6679
6671
  });
@@ -6685,11 +6677,11 @@ const Modal = class {
6685
6677
  sortedGroups.push(this.sortColorsBySimilarity(colorGroups[groupName]));
6686
6678
  }
6687
6679
  });
6688
- // Combine all sorted groups
6689
- return sortedGroups.flat();
6680
+ // Combine all sorted groups, then append invalid colors at the end
6681
+ return [...sortedGroups.flat(), ...invalidColors];
6690
6682
  }
6691
6683
  async fetchColorsData({ reset = false } = {}) {
6692
- if (this.loading && !reset)
6684
+ if (this.loading)
6693
6685
  return;
6694
6686
  this.loading = true;
6695
6687
  try {
@@ -6938,7 +6930,7 @@ const MySearch = class {
6938
6930
  };
6939
6931
  MySearch.style = indexCss$2;
6940
6932
 
6941
- const indexCss$1 = "@import url(\"https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1.sc-my-select,300..900&family=Poppins.sc-my-select:ital,wght@0.sc-my-select,100.sc-my-select;0.sc-my-select,200.sc-my-select;0.sc-my-select,300.sc-my-select;0.sc-my-select,400.sc-my-select;0.sc-my-select,500.sc-my-select;0.sc-my-select,600.sc-my-select;0.sc-my-select,700.sc-my-select;0.sc-my-select,800.sc-my-select;0.sc-my-select,900.sc-my-select;1.sc-my-select,100.sc-my-select;1.sc-my-select,200.sc-my-select;1.sc-my-select,300.sc-my-select;1.sc-my-select,400.sc-my-select;1.sc-my-select,500.sc-my-select;1.sc-my-select,600.sc-my-select;1.sc-my-select,700.sc-my-select;1.sc-my-select,800.sc-my-select;1.sc-my-select,900&display=swap\").sc-my-select; .tinting-wrapper.sc-my-select *.sc-my-select{font-family:\"Poppins\", sans-serif}.select.sc-my-select{position:relative;width:300px}@media (max-width: 768px){.select.sc-my-select{width:100%}}.select.sc-my-select .input-wrapper.sc-my-select{position:relative;display:flex;align-items:flex-start}.select.sc-my-select input.sc-my-select{font-size:16px;padding:16px;border-radius:27.35px;border:1px solid #dfdfdf;width:100%;color:#4c4c4c;box-sizing:border-box;padding-right:50px}.select.sc-my-select button.sc-my-select{position:absolute;right:10px;background:transparent;border:none;cursor:pointer;width:40px;height:100%;display:flex;align-items:center;justify-content:center}.select.sc-my-select button.sc-my-select img.sc-my-select{transition:transform 0.3s ease}.select.sc-my-select button.sc-my-select img.rotated.sc-my-select{transform:rotate(180deg)}.select.sc-my-select .dropdown.sc-my-select{position:absolute;top:100%;left:0;width:100%;background:white;border:1px solid #dfdfdf;border-radius:5px;max-height:200px;overflow-y:auto;z-index:1000;padding:0;margin:0}.select.sc-my-select .dropdown.sc-my-select li.sc-my-select{padding:0;margin:0;padding:10px;cursor:pointer;list-style:none;text-align:left}.select.sc-my-select .dropdown.sc-my-select li.sc-my-select:hover{background:#f5f5f5}.select.sc-my-select .dropdown.sc-my-select .no-results.sc-my-select{padding:10px;text-align:center;color:#999}";
6933
+ const indexCss$1 = "@import url(\"https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1.sc-my-select,300..900&family=Poppins.sc-my-select:ital,wght@0.sc-my-select,100.sc-my-select;0.sc-my-select,200.sc-my-select;0.sc-my-select,300.sc-my-select;0.sc-my-select,400.sc-my-select;0.sc-my-select,500.sc-my-select;0.sc-my-select,600.sc-my-select;0.sc-my-select,700.sc-my-select;0.sc-my-select,800.sc-my-select;0.sc-my-select,900.sc-my-select;1.sc-my-select,100.sc-my-select;1.sc-my-select,200.sc-my-select;1.sc-my-select,300.sc-my-select;1.sc-my-select,400.sc-my-select;1.sc-my-select,500.sc-my-select;1.sc-my-select,600.sc-my-select;1.sc-my-select,700.sc-my-select;1.sc-my-select,800.sc-my-select;1.sc-my-select,900&display=swap\").sc-my-select; .tinting-wrapper.sc-my-select *.sc-my-select{font-family:\"Poppins\", sans-serif}.select.sc-my-select{position:relative;width:300px}@media (max-width: 768px){.select.sc-my-select{width:100%}}.select.sc-my-select .input-wrapper.sc-my-select{position:relative;display:flex;align-items:flex-start}.select.sc-my-select input.sc-my-select{font-size:16px;padding:16px;border-radius:27.35px;border:1px solid #dfdfdf;width:100%;color:#4c4c4c;box-sizing:border-box;padding-right:50px}.select.sc-my-select button.sc-my-select{position:absolute;right:10px;background:transparent;border:none;cursor:pointer;width:40px;height:100%;display:flex;align-items:center;justify-content:center}.select.sc-my-select button.sc-my-select img.sc-my-select{transition:transform 0.3s ease}.select.sc-my-select button.sc-my-select img.rotated.sc-my-select{transform:rotate(180deg)}.select.sc-my-select .dropdown.sc-my-select{position:absolute;top:100%;left:0;width:100%;background:white;border:1px solid #dfdfdf;border-radius:5px;max-height:200px;overflow-y:auto;z-index:1000;padding:0;margin:0}.select.sc-my-select .dropdown.sc-my-select li.sc-my-select{padding:0;margin:0;padding:10px;cursor:pointer;list-style:none;text-align:left}.select.sc-my-select .dropdown.sc-my-select li.sc-my-select:hover{background:#f5f5f5}.select.sc-my-select .dropdown.sc-my-select .no-results.sc-my-select{padding:10px;text-align:center;color:#999}@media (max-width: 768px){.select.sc-my-select .dropdown.sc-my-select{position:relative}}";
6942
6934
 
6943
6935
  const MySelect = class {
6944
6936
  constructor(hostRef) {
@@ -12304,10 +12296,9 @@ exports.my_backdrop = MyBackdrop;
12304
12296
  exports.my_colorbox = MyColorBox;
12305
12297
  exports.my_colorinfo = MyColorInfo;
12306
12298
  exports.my_component = MyModalBundle;
12307
- exports.my_loader = MyLoader;
12308
12299
  exports.my_modal = Modal;
12309
12300
  exports.my_search = MySearch;
12310
12301
  exports.my_select = MySelect;
12311
12302
  exports.my_slider = JcSwiper;
12312
12303
 
12313
- //# sourceMappingURL=modal-header_10.cjs.entry.js.map
12304
+ //# sourceMappingURL=modal-header_9.cjs.entry.js.map