@covet-pics/covet-pics-widget 0.126.1 → 0.126.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 (31) hide show
  1. package/dist/cjs/covet-pics-star-rating.cjs.entry.js +3 -5
  2. package/dist/cjs/covet-pics-star-rating.cjs.entry.js.map +1 -1
  3. package/dist/cjs/covet-pics-widget.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/components/covet-pics-star-rating/covet-pics-star-rating.js +3 -41
  6. package/dist/collection/components/covet-pics-star-rating/covet-pics-star-rating.js.map +1 -1
  7. package/dist/covet-pics-widget/covet-pics-widget.esm.js +1 -1
  8. package/dist/covet-pics-widget/covet-pics-widget.esm.js.map +1 -1
  9. package/dist/covet-pics-widget/p-6f4a30ba.entry.js +5 -0
  10. package/dist/covet-pics-widget/p-6f4a30ba.entry.js.map +1 -0
  11. package/dist/covet-pics-widget/p-8e2f5a57.system.js +1 -1
  12. package/dist/covet-pics-widget/p-8e2f5a57.system.js.map +1 -1
  13. package/dist/covet-pics-widget/p-edb386e5.system.entry.js +5 -0
  14. package/dist/covet-pics-widget/p-edb386e5.system.entry.js.map +1 -0
  15. package/dist/esm/covet-pics-star-rating.entry.js +3 -5
  16. package/dist/esm/covet-pics-star-rating.entry.js.map +1 -1
  17. package/dist/esm/covet-pics-widget.js +1 -1
  18. package/dist/esm/loader.js +1 -1
  19. package/dist/esm-es5/covet-pics-star-rating.entry.js +1 -1
  20. package/dist/esm-es5/covet-pics-star-rating.entry.js.map +1 -1
  21. package/dist/esm-es5/covet-pics-widget.js +1 -1
  22. package/dist/esm-es5/covet-pics-widget.js.map +1 -1
  23. package/dist/esm-es5/loader.js +1 -1
  24. package/dist/esm-es5/loader.js.map +1 -1
  25. package/dist/types/components/covet-pics-star-rating/covet-pics-star-rating.d.ts +1 -9
  26. package/dist/types/components.d.ts +0 -16
  27. package/package.json +1 -1
  28. package/dist/covet-pics-widget/p-0474fabb.system.entry.js +0 -5
  29. package/dist/covet-pics-widget/p-0474fabb.system.entry.js.map +0 -1
  30. package/dist/covet-pics-widget/p-49089f53.entry.js +0 -5
  31. package/dist/covet-pics-widget/p-49089f53.entry.js.map +0 -1
@@ -20,8 +20,6 @@ const CovetPicsStarRating = class {
20
20
  this.starBorderColor = "#000000";
21
21
  this.starBorderWidth = 0;
22
22
  this.starSize = 20;
23
- this.spaceAbove = 0;
24
- this.spaceBelow = 0;
25
23
  this.spaceStars = 0;
26
24
  this.spaceStarsText = 0;
27
25
  this.showLabel = true;
@@ -55,13 +53,13 @@ const CovetPicsStarRating = class {
55
53
  }
56
54
  return parseFloat(number);
57
55
  }
58
- renderLabel() {
56
+ convertedLabel() {
59
57
  let lebelUpdated = this.label.replaceAll("%RATING%", `${this.roundRating()}`);
60
58
  lebelUpdated = lebelUpdated.replaceAll("%COUNT%", `${this.ratingCount}`);
61
- return (index.h("span", { class: "star-rating-count" }, lebelUpdated));
59
+ return lebelUpdated;
62
60
  }
63
61
  render() {
64
- return (index.h(index.Host, { style: this.setCSSVariables(), role: "radiogroup", "aria-label": "star rating" }, this.renderStarRating(), this.showLabel && this.renderLabel()));
62
+ return (index.h(index.Host, { style: this.setCSSVariables(), role: "radiogroup", "aria-label": "star rating" }, this.renderStarRating(), this.showLabel && index.h("span", { class: "star-rating-count" }, this.convertedLabel())));
65
63
  }
66
64
  get el() { return index.getElement(this); }
67
65
  };
@@ -1 +1 @@
1
- {"file":"covet-pics-star-rating.entry.cjs.js","mappings":";;;;;;;;;;AAAA,MAAM,sBAAsB,GAAG,28BAA28B;;MCS79B,mBAAmB;;;;uBAWF,CAAC;qBAKD,SAAS;0BAKJ,SAAS;2BAKR,SAAS;2BAKT,CAAC;oBAKR,EAAE;sBAKA,CAAC;sBAKD,CAAC;sBAKD,CAAC;0BAKG,CAAC;qBAKL,IAAI;iBAQT,YAAY;;EAE5B,gBAAgB;IACtB,MAAM,UAAU,GAAG,CAAC,CAAC,EAA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AAI,CAAC,gBAAgB,EAAE,EACvB,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,WAAW,EAAE,CAChC,EACP;GACH;;;;;;;","names":["getRandomId","index","h","Host"],"sources":["./src/components/covet-pics-star-rating/covet-pics-star-rating.scss?tag=covet-pics-star-rating&encapsulation=shadow","./src/components/covet-pics-star-rating/covet-pics-star-rating.tsx"],"sourcesContent":["\r\n:host {\r\n display: inline-flex;\r\n align-items: center;\r\n box-sizing: border-box;\r\n line-height: 1.4;\r\n\r\n .icon-star {\r\n flex: none;\r\n display: flex;\r\n justify-content: center;\r\n width: var(--covet-pics-star-size);\r\n height: var(--covet-pics-star-size);\r\n margin-right: var(--covet-pics-star-space-stars);\r\n &:nth-of-type(5) { // TODO check this selector\r\n margin-right: var(--covet-pics-star-space-stars-text);\r\n } \r\n \r\n &.active {\r\n .svg-star\r\n path {\r\n fill: var(--covet-pics-star-color);\r\n stroke: var(--covet-pics-star-border-color);\r\n stroke-width: var(--covet-pics-star-border-width);\r\n }\r\n .half-star {\r\n path {\r\n fill: var(--covet-pics-star-color);\r\n }\r\n } \r\n }\r\n }\r\n\r\n .svg-star {\r\n width: 100%;\r\n height: 100%;\r\n path {\r\n fill: var(--covet-pics-empty-star-color);\r\n stroke: var(--covet-pics-star-border-color);\r\n stroke-width: var(--covet-pics-star-border-width)\r\n }\r\n }\r\n .half-star {\r\n path {\r\n fill: var(--covet-pics-star-color);\r\n }\r\n }\r\n\r\n}\r\n","import { Component, Element, Prop, h, Host } from \"@stencil/core\";\r\nimport { getRandomId } from \"../../utils/utils\";\r\n\r\n@Component({\r\n tag: \"covet-pics-star-rating\",\r\n styleUrl: \"covet-pics-star-rating.scss\",\r\n shadow: true\r\n})\r\n\r\nexport class CovetPicsStarRating {\r\n @Element() el: HTMLCovetPicsStarRatingElement;\r\n\r\n /**\r\n * Rating (float from 1-5)\r\n */\r\n @Prop() rating: number;\r\n\r\n /**\r\n * Rating count\r\n */\r\n @Prop() ratingCount: number=0;\r\n\r\n /**\r\n * Color of star\r\n */\r\n @Prop() starColor: string = \"#fec500\";\r\n\r\n /**\r\n * Color of empty star\r\n */\r\n @Prop() emptyStarColor: string = \"#e5e5e5\";\r\n\r\n /**\r\n * Color of star border\r\n */\r\n @Prop() starBorderColor: string = \"#000000\";\r\n\r\n /**\r\n * Width of star border\r\n */\r\n @Prop() starBorderWidth: number = 0;\r\n\r\n /**\r\n * Width/height of star in px.\r\n */\r\n @Prop() starSize: number = 20;\r\n\r\n /**\r\n * Space (margin) above in px\r\n */\r\n @Prop() spaceAbove: number = 0;\r\n\r\n /**\r\n * Space (margin) below in px\r\n */\r\n @Prop() spaceBelow: number = 0;\r\n \r\n /**\r\n * Space (margin) above in px\r\n */\r\n @Prop() spaceStars: number = 0;\r\n\r\n /**\r\n * Space (margin) below in px\r\n */\r\n @Prop() spaceStarsText: number = 0;\r\n\r\n /**\r\n * show Label or not\r\n */\r\n @Prop() showLabel: boolean = true;\r\n\r\n \r\n\r\n /**\r\n * Label next to star rating\r\n * available dynamic variables: %RATING% %COUNT%\r\n */\r\n @Prop() label: string = \"(%RATING%)\";\r\n\r\n private renderStarRating() {\r\n const starsArray = [1, 2, 3, 4, 5];\r\n const halfStar = Math.round(this.roundRating());\r\n const maskId = getRandomId();\r\n return (\r\n starsArray.map((el,index) =>\r\n <span class={`icon-star ${el <= this.roundRating() ? \"active\" : \"\"}`} role=\"radio\" aria-checked={`${el <= this.rating}`} aria-label={`star ${el}/${starsArray.length}`}>\r\n <svg class=\"svg-star\" viewBox=\"0 0 110 110\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" role=\"presentation\">\r\n <path transform=\"translate(13,13)\" d=\"M42.756 1.23194C43.4392 -0.410645 45.7661 -0.410647 46.4493 1.23194L57.3587 27.4613C57.6467 28.1537 58.2979 28.6269 59.0455 28.6868L87.3623 30.957C89.1356 31.0991 89.8546 33.3121 88.5035 34.4695L66.9292 52.9502C66.3596 53.4381 66.1108 54.2037 66.2848 54.9332L72.8762 82.5656C73.289 84.296 71.4065 85.6638 69.8883 84.7364L45.6451 69.9288C45.0051 69.5379 44.2002 69.5379 43.5601 69.9288L19.317 84.7364C17.7988 85.6638 15.9163 84.296 16.3291 82.5656L22.9204 54.9332C23.0944 54.2037 22.8457 53.4381 22.2761 52.9502L0.701718 34.4695C-0.649356 33.3121 0.069695 31.0991 1.843 30.957L30.1598 28.6868C30.9074 28.6269 31.5586 28.1537 31.8466 27.4613L42.756 1.23194Z\"/>\r\n <mask id={`mask-${index}-${maskId}`} maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"45\" height=\"85\">\r\n <rect width=\"45\" height=\"85\" fill=\"white\"/>\r\n </mask>\r\n <g class={`${index < halfStar ? \"half-star\" : \"\"}`} transform=\"translate(13,13)\" mask={`url(#mask-${index}-${maskId})`}>\r\n <path d=\"M42.756 1.23194C43.4392 -0.410645 45.7661 -0.410647 46.4493 1.23194L57.3587 27.4613C57.6467 28.1537 58.2979 28.6269 59.0455 28.6868L87.3623 30.957C89.1356 31.0991 89.8546 33.3121 88.5035 34.4695L66.9292 52.9502C66.3596 53.4381 66.1108 54.2037 66.2848 54.9332L72.8762 82.5656C73.289 84.296 71.4065 85.6638 69.8883 84.7364L45.6451 69.9288C45.0051 69.5379 44.2002 69.5379 43.5601 69.9288L19.317 84.7364C17.7988 85.6638 15.9163 84.296 16.3291 82.5656L22.9204 54.9332C23.0944 54.2037 22.8457 53.4381 22.2761 52.9502L0.701718 34.4695C-0.649356 33.3121 0.069695 31.0991 1.843 30.957L30.1598 28.6868C30.9074 28.6269 31.5586 28.1537 31.8466 27.4613L42.756 1.23194Z\"/>\r\n </g>\r\n </svg>\r\n </span>\r\n )\r\n );\r\n }\r\n\r\n private setCSSVariables() {\r\n return {\r\n \"--covet-pics-star-size\": `${this.starSize}px`,\r\n \"--covet-pics-star-space-stars\": `${this.spaceStars}px`,\r\n \"--covet-pics-star-space-stars-text\": `${this.spaceStarsText}px`,\r\n \"--covet-pics-star-color\": `${this.starColor}`,\r\n \"--covet-pics-empty-star-color\": `${this.emptyStarColor}`,\r\n \"--covet-pics-star-border-color\": `${this.starBorderColor}`,\r\n \"--covet-pics-star-border-width\": `${this.starBorderWidth}`\r\n\r\n };\r\n }\r\n private roundRating() {\r\n if (isNaN(this.rating)) return null; \r\n if (this.rating > 5) return 5;\r\n \r\n let number = `${this.rating}`;\r\n if (number.indexOf(\".\") !== -1) { \r\n number = number.slice(0,(number.indexOf(\".\") + 3));\r\n } \r\n return parseFloat(number);\r\n }\r\n\r\n private renderLabel() {\r\n let lebelUpdated = this.label.replaceAll(\"%RATING%\", `${this.roundRating()}`);\r\n lebelUpdated = lebelUpdated.replaceAll(\"%COUNT%\", `${this.ratingCount}`);\r\n return (\r\n <span class=\"star-rating-count\">{lebelUpdated}</span>\r\n );\r\n }\r\n\r\n render() {\r\n return (\r\n <Host style={this.setCSSVariables()} role=\"radiogroup\" aria-label=\"star rating\">\r\n {this.renderStarRating()}\r\n {this.showLabel && this.renderLabel()}\r\n </Host>\r\n );\r\n }\r\n\r\n}\r\n"],"version":3}
1
+ {"file":"covet-pics-star-rating.entry.cjs.js","mappings":";;;;;;;;;;AAAA,MAAM,sBAAsB,GAAG,28BAA28B;;MCS79B,mBAAmB;;;;uBAWF,CAAC;qBAKD,SAAS;0BAKJ,SAAS;2BAKR,SAAS;2BAKT,CAAC;oBAKR,EAAE;sBAKA,CAAC;0BAKG,CAAC;qBAKL,IAAI;iBAMT,YAAY;;EAE5B,gBAAgB;IACtB,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAChD,MAAM,MAAM,GAAGA,iBAAW,EAAE,CAAC;IAC7B,QACE,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAACC,OAAK,K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C,EAAE,GAAG,IAAI,CAAC,eAAe,EAAE;MAC3D,gCAAgC,EAAE,GAAG,IAAI,CAAC,eAAe,EAAE;KAC5D,CAAC;GACH;EACO,WAAW;IACjB,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;MAAE,OAAO,IAAI,CAAC;IACpC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;MAAE,OAAO,CAAC,CAAC;IAE9B,IAAI,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;IAC9B,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE;MAC9B,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;KACpD;IACD,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;GAC3B;EAEO,cAAc;IACpB,IAAI,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC9E,YAAY,GAAG,YAAY,CAAC,UAAU,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IACzE,OAAO,YAAY,CAAC;GACrB;EAED,MAAM;IACJ,QACEA,QAACC,UAAI,IAAC,KAAK,EAAE,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAC,YAAY,gBAAY,aAAa,IAC5E,IAAI,CAAC,gBAAgB,EAAE,EACvB,IAAI,CAAC,SAAS,IAAID,kBAAM,KAAK,EAAC,mBAAmB,IAAE,IAAI,CAAC,cAAc,EAAE,CAAQ,CAC5E,EACP;GACH;;;;;;;","names":["getRandomId","index","h","Host"],"sources":["./src/components/covet-pics-star-rating/covet-pics-star-rating.scss?tag=covet-pics-star-rating&encapsulation=shadow","./src/components/covet-pics-star-rating/covet-pics-star-rating.tsx"],"sourcesContent":["\r\n:host {\r\n display: inline-flex;\r\n align-items: center;\r\n box-sizing: border-box;\r\n line-height: 1.4;\r\n\r\n .icon-star {\r\n flex: none;\r\n display: flex;\r\n justify-content: center;\r\n width: var(--covet-pics-star-size);\r\n height: var(--covet-pics-star-size);\r\n margin-right: var(--covet-pics-star-space-stars);\r\n &:nth-of-type(5) { // TODO check this selector\r\n margin-right: var(--covet-pics-star-space-stars-text);\r\n } \r\n \r\n &.active {\r\n .svg-star\r\n path {\r\n fill: var(--covet-pics-star-color);\r\n stroke: var(--covet-pics-star-border-color);\r\n stroke-width: var(--covet-pics-star-border-width);\r\n }\r\n .half-star {\r\n path {\r\n fill: var(--covet-pics-star-color);\r\n }\r\n } \r\n }\r\n }\r\n\r\n .svg-star {\r\n width: 100%;\r\n height: 100%;\r\n path {\r\n fill: var(--covet-pics-empty-star-color);\r\n stroke: var(--covet-pics-star-border-color);\r\n stroke-width: var(--covet-pics-star-border-width)\r\n }\r\n }\r\n .half-star {\r\n path {\r\n fill: var(--covet-pics-star-color);\r\n }\r\n }\r\n\r\n}\r\n","import { Component, Element, Prop, h, Host } from \"@stencil/core\";\r\nimport { getRandomId } from \"../../utils/utils\";\r\n\r\n@Component({\r\n tag: \"covet-pics-star-rating\",\r\n styleUrl: \"covet-pics-star-rating.scss\",\r\n shadow: true\r\n})\r\n\r\nexport class CovetPicsStarRating {\r\n @Element() el: HTMLCovetPicsStarRatingElement;\r\n\r\n /**\r\n * Rating (float from 1-5)\r\n */\r\n @Prop() rating: number;\r\n\r\n /**\r\n * Rating count\r\n */\r\n @Prop() ratingCount: number=0;\r\n\r\n /**\r\n * Color of star\r\n */\r\n @Prop() starColor: string = \"#fec500\";\r\n\r\n /**\r\n * Color of empty star\r\n */\r\n @Prop() emptyStarColor: string = \"#e5e5e5\";\r\n\r\n /**\r\n * Color of star border\r\n */\r\n @Prop() starBorderColor: string = \"#000000\";\r\n\r\n /**\r\n * Width of star border\r\n */\r\n @Prop() starBorderWidth: number = 0;\r\n\r\n /**\r\n * Width/height of star in px.\r\n */\r\n @Prop() starSize: number = 20;\r\n \r\n /**\r\n * Space (margin) above in px\r\n */\r\n @Prop() spaceStars: number = 0;\r\n\r\n /**\r\n * Space (margin) below in px\r\n */\r\n @Prop() spaceStarsText: number = 0;\r\n\r\n /**\r\n * show Label or not\r\n */\r\n @Prop() showLabel: boolean = true;\r\n\r\n /**\r\n * Label next to star rating\r\n * available dynamic variables: %RATING% %COUNT%\r\n */\r\n @Prop() label: string = \"(%RATING%)\";\r\n\r\n private renderStarRating() {\r\n const starsArray = [1, 2, 3, 4, 5];\r\n const halfStar = Math.round(this.roundRating());\r\n const maskId = getRandomId();\r\n return (\r\n starsArray.map((el,index) =>\r\n <span class={`icon-star ${el <= this.roundRating() ? \"active\" : \"\"}`} role=\"radio\" aria-checked={`${el <= this.rating}`} aria-label={`star ${el}/${starsArray.length}`}>\r\n <svg class=\"svg-star\" viewBox=\"0 0 110 110\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" role=\"presentation\">\r\n <path transform=\"translate(13,13)\" d=\"M42.756 1.23194C43.4392 -0.410645 45.7661 -0.410647 46.4493 1.23194L57.3587 27.4613C57.6467 28.1537 58.2979 28.6269 59.0455 28.6868L87.3623 30.957C89.1356 31.0991 89.8546 33.3121 88.5035 34.4695L66.9292 52.9502C66.3596 53.4381 66.1108 54.2037 66.2848 54.9332L72.8762 82.5656C73.289 84.296 71.4065 85.6638 69.8883 84.7364L45.6451 69.9288C45.0051 69.5379 44.2002 69.5379 43.5601 69.9288L19.317 84.7364C17.7988 85.6638 15.9163 84.296 16.3291 82.5656L22.9204 54.9332C23.0944 54.2037 22.8457 53.4381 22.2761 52.9502L0.701718 34.4695C-0.649356 33.3121 0.069695 31.0991 1.843 30.957L30.1598 28.6868C30.9074 28.6269 31.5586 28.1537 31.8466 27.4613L42.756 1.23194Z\"/>\r\n <mask id={`mask-${index}-${maskId}`} maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"45\" height=\"85\">\r\n <rect width=\"45\" height=\"85\" fill=\"white\"/>\r\n </mask>\r\n <g class={`${index < halfStar ? \"half-star\" : \"\"}`} transform=\"translate(13,13)\" mask={`url(#mask-${index}-${maskId})`}>\r\n <path d=\"M42.756 1.23194C43.4392 -0.410645 45.7661 -0.410647 46.4493 1.23194L57.3587 27.4613C57.6467 28.1537 58.2979 28.6269 59.0455 28.6868L87.3623 30.957C89.1356 31.0991 89.8546 33.3121 88.5035 34.4695L66.9292 52.9502C66.3596 53.4381 66.1108 54.2037 66.2848 54.9332L72.8762 82.5656C73.289 84.296 71.4065 85.6638 69.8883 84.7364L45.6451 69.9288C45.0051 69.5379 44.2002 69.5379 43.5601 69.9288L19.317 84.7364C17.7988 85.6638 15.9163 84.296 16.3291 82.5656L22.9204 54.9332C23.0944 54.2037 22.8457 53.4381 22.2761 52.9502L0.701718 34.4695C-0.649356 33.3121 0.069695 31.0991 1.843 30.957L30.1598 28.6868C30.9074 28.6269 31.5586 28.1537 31.8466 27.4613L42.756 1.23194Z\"/>\r\n </g>\r\n </svg>\r\n </span>\r\n )\r\n );\r\n }\r\n\r\n private setCSSVariables() {\r\n return {\r\n \"--covet-pics-star-size\": `${this.starSize}px`,\r\n \"--covet-pics-star-space-stars\": `${this.spaceStars}px`,\r\n \"--covet-pics-star-space-stars-text\": `${this.spaceStarsText}px`,\r\n \"--covet-pics-star-color\": `${this.starColor}`,\r\n \"--covet-pics-empty-star-color\": `${this.emptyStarColor}`,\r\n \"--covet-pics-star-border-color\": `${this.starBorderColor}`,\r\n \"--covet-pics-star-border-width\": `${this.starBorderWidth}`\r\n };\r\n }\r\n private roundRating() {\r\n if (isNaN(this.rating)) return null; \r\n if (this.rating > 5) return 5;\r\n \r\n let number = `${this.rating}`;\r\n if (number.indexOf(\".\") !== -1) { \r\n number = number.slice(0,(number.indexOf(\".\") + 3));\r\n } \r\n return parseFloat(number);\r\n }\r\n\r\n private convertedLabel() {\r\n let lebelUpdated = this.label.replaceAll(\"%RATING%\", `${this.roundRating()}`);\r\n lebelUpdated = lebelUpdated.replaceAll(\"%COUNT%\", `${this.ratingCount}`);\r\n return lebelUpdated;\r\n }\r\n\r\n render() {\r\n return (\r\n <Host style={this.setCSSVariables()} role=\"radiogroup\" aria-label=\"star rating\">\r\n {this.renderStarRating()}\r\n {this.showLabel && <span class=\"star-rating-count\">{this.convertedLabel()}</span>}\r\n </Host>\r\n );\r\n }\r\n\r\n}\r\n"],"version":3}
@@ -25,7 +25,7 @@ const patchBrowser = () => {
25
25
 
26
26
  patchBrowser().then(options => {
27
27
  appGlobals.globalScripts();
28
- return index.bootstrapLazy(JSON.parse("[[\"covet-pics-direct-buy_8.cjs\",[[1,\"covet-pics-direct-buy\",{\"product\":[8],\"moneyFormat\":[1,\"money-format\"],\"appStore\":[16],\"selectedOptions\":[32],\"settings\":[32]}],[1,\"covet-pics-popup\",{\"appStore\":[16],\"item\":[32],\"product\":[32],\"directBuyIsOpen\":[32],\"popupTabIndex\":[32],\"settings\":[32],\"isPreviousEnable\":[32],\"openPopup\":[64],\"closePopup\":[64]},[[4,\"addToCart:covetPics\",\"addToCartHandler\"],[16,\"productLinkClicked\",\"productLinkClickedHandler\"]]],[0,\"covet-pics-popup-links\",{\"links\":[16],\"greyBorderClass\":[1,\"grey-border-class\"],\"itemCreatedTime\":[1,\"item-created-time\"],\"appStore\":[16],\"settings\":[32]}],[0,\"covet-pics-popup-slider\",{\"item\":[16],\"getSwiperState\":[64]}],[1,\"covet-pics-upload\",{\"animated\":[4],\"backgroundColor\":[1,\"background-color\"],\"backgroundOpacity\":[2,\"background-opacity\"],\"responsive\":[4],\"fontFamily\":[1,\"font-family\"],\"baseUrl\":[1,\"base-url\"],\"galleryId\":[2,\"gallery-id\"],\"galleryEmbedId\":[2,\"gallery-embed-id\"],\"photoRequestId\":[2,\"photo-request-id\"],\"productHandle\":[1,\"product-handle\"],\"uploadTitle\":[1,\"upload-title\"],\"uploadBody\":[1,\"upload-body\"],\"uploadDragDrop\":[1,\"upload-drag-drop\"],\"uploadChoose\":[1,\"upload-choose\"],\"formNamePlaceholder\":[1,\"form-name-placeholder\"],\"formEmailPlaceholder\":[1,\"form-email-placeholder\"],\"formBodyPlaceholder\":[1,\"form-body-placeholder\"],\"formSendLabel\":[1,\"form-send-label\"],\"formUploading\":[1,\"form-uploading\"],\"formAgreeToTerms\":[1,\"form-agree-to-terms\"],\"completeBody\":[1,\"complete-body\"],\"completeCloseLabel\":[1,\"complete-close-label\"],\"activeStep\":[2,\"active-step\"],\"hideBranding\":[4,\"hide-branding\"],\"standalone\":[4],\"appStore\":[16],\"starRating\":[32],\"isFormValid\":[32],\"showFormWarning\":[32],\"thumbnailLinks\":[32],\"toShowLinks\":[32],\"dropedImagesNumber\":[32],\"isAnimating\":[32],\"notificationMessage\":[32],\"isNotificationActive\":[32],\"widgetWidth\":[32],\"uploadTabIndex\":[32],\"openUpload\":[64]}],[0,\"covet-pics-hotspots\",{\"links\":[16],\"backgroundColor\":[1,\"background-color\"],\"textColor\":[1,\"text-color\"],\"showNumbers\":[4,\"show-numbers\"]},[[0,\"linkInactivate\",\"linkInactivateHandler\"],[0,\"linkActivate\",\"linkActivateHandler\"]]],[0,\"covet-pics-popup-review\",{\"rating\":[2],\"caption\":[1],\"username\":[1],\"itemType\":[1,\"item-type\"],\"verified\":[4],\"createdTime\":[1,\"created-time\"],\"reviewCSS\":[32]}],[0,\"covet-pics-popup-shared-links\",{\"item\":[16],\"galleryEmbedId\":[2,\"gallery-embed-id\"],\"showShareLink\":[32],\"copyLinkCopied\":[32]}]]],[\"covet-pics-highlighted-hotspots_2.cjs\",[[0,\"covet-pics-highlighted-page\",{\"thumbnailUrl\":[1,\"thumbnail-url\"],\"thumbnailAlt\":[1,\"thumbnail-alt\"],\"ariaLabel\":[1,\"aria-label\"],\"thumbnailLayout\":[1,\"thumbnail-layout\"],\"videoUrl\":[1,\"video-url\"],\"videoPoster\":[1,\"video-poster\"],\"thumbnailCarouselImages\":[16],\"showHotspots\":[4,\"show-hotspots\"],\"hotspotsLayout\":[1,\"hotspots-layout\"],\"hotspotsBackgoundColor\":[1,\"hotspots-backgound-color\"],\"productsLayout\":[1,\"products-layout\"],\"productLinks\":[16],\"productBaseImgAlt\":[1,\"product-base-img-alt\"],\"layout\":[1],\"reverseClass\":[1,\"reverse-class\"],\"isMobile\":[4,\"is-mobile\"],\"showPrice\":[4,\"show-price\"],\"btnBuyLabel\":[1,\"btn-buy-label\"],\"productsTitle\":[1,\"products-title\"],\"hideProductTitle\":[8,\"hide-product-title\"],\"hideBranding\":[4,\"hide-branding\"],\"pageIndex\":[2,\"page-index\"],\"caption\":[1],\"rating\":[2],\"showReview\":[4,\"show-review\"],\"createdTime\":[1,\"created-time\"],\"userName\":[1,\"user-name\"],\"mainSliderIndex\":[2,\"main-slider-index\"],\"pageId\":[2,\"page-id\"],\"appStore\":[16],\"hideHotspots\":[32],\"activeProductIndex\":[32],\"hoverHotspot\":[32]},[[0,\"changeActiveHotspot\",\"onChangeActiveHotspot\"]]],[0,\"covet-pics-highlighted-hotspots\",{\"links\":[16],\"layout\":[1],\"activeHotspot\":[2,\"active-hotspot\"],\"pageLayout\":[1,\"page-layout\"],\"productsTitle\":[1,\"products-title\"],\"thumbnailUrl\":[1,\"thumbnail-url\"],\"btnBuyLabel\":[1,\"btn-buy-label\"],\"hoverHotspot\":[2,\"hover-hotspot\"],\"isMobile\":[4,\"is-mobile\"],\"productBaseImgAlt\":[1,\"product-base-img-alt\"],\"pageId\":[2,\"page-id\"],\"appStore\":[16]}]]],[\"covet-pics-gallery-item-caption.cjs\",[[0,\"covet-pics-gallery-item-caption\",{\"caption\":[1],\"captionClass\":[1,\"caption-class\"],\"itemStyle\":[1,\"item-style\"],\"layoutType\":[1,\"layout-type\"],\"reviewCSS\":[32]},[[16,\"sliderInit:covetPics\",\"initSize\"],[16,\"sliderUpdate:covetPics\",\"updateSize\"]]]]],[\"covet-pics-star-rating.cjs\",[[1,\"covet-pics-star-rating\",{\"rating\":[2],\"ratingCount\":[2,\"rating-count\"],\"starColor\":[1,\"star-color\"],\"emptyStarColor\":[1,\"empty-star-color\"],\"starBorderColor\":[1,\"star-border-color\"],\"starBorderWidth\":[2,\"star-border-width\"],\"starSize\":[2,\"star-size\"],\"spaceAbove\":[2,\"space-above\"],\"spaceBelow\":[2,\"space-below\"],\"spaceStars\":[2,\"space-stars\"],\"spaceStarsText\":[2,\"space-stars-text\"],\"showLabel\":[4,\"show-label\"],\"label\":[1]}]]],[\"covet-pics-gallery-header_3.cjs\",[[0,\"covet-pics-gallery-header\",{\"headerType\":[1,\"header-type\"],\"rating\":[2],\"showSort\":[4,\"show-sort\"],\"showBreakdown\":[4,\"show-breakdown\"],\"showAverageStarRating\":[4,\"show-average-star-rating\"],\"ratingCount\":[2,\"rating-count\"],\"productTitle\":[1,\"product-title\"],\"breakdown\":[16],\"appStore\":[16],\"showBreakdownDropdown\":[32],\"showSortDropdown\":[32],\"isDesktopScreen\":[32]}],[0,\"covet-pics-gallery-item\",{\"animationDuration\":[2,\"animation-duration\"],\"altTag\":[1,\"alt-tag\"],\"highlighted\":[4],\"hoverAnimationStyle\":[1,\"hover-animation-style\"],\"hoverDisabled\":[4,\"hover-disabled\"],\"layout\":[1],\"hoverBackgroundOpacity\":[2,\"hover-background-opacity\"],\"hoverBorderColor\":[1,\"hover-border-color\"],\"hoverColorFrom\":[1,\"hover-color-from\"],\"hoverColorTo\":[1,\"hover-color-to\"],\"hoverPreview\":[4,\"hover-preview\"],\"imageUrl\":[1,\"image-url\"],\"rating\":[2],\"itemWidth\":[2,\"item-width\"],\"userName\":[1,\"user-name\"],\"createdTime\":[1,\"created-time\"],\"caption\":[1],\"itemType\":[1,\"item-type\"],\"imageHighResolutionUrl\":[1,\"image-high-resolution-url\"],\"imageResponsiveSizes\":[1,\"image-responsive-sizes\"],\"itemId\":[1,\"item-id\"],\"itemSource\":[1,\"item-source\"],\"labelCaption\":[1,\"label-caption\"],\"labelCaptionWithLinks\":[1,\"label-caption-with-links\"],\"labelColor\":[1,\"label-color\"],\"labelFontSize\":[2,\"label-font-size\"],\"labelFontStyle\":[1,\"label-font-style\"],\"links\":[16],\"popupDisabled\":[4,\"popup-disabled\"],\"popupRedirectMode\":[4,\"popup-redirect-mode\"],\"showHoverIcon\":[4,\"show-hover-icon\"],\"url\":[1],\"itemIndex\":[2,\"item-index\"],\"appStore\":[16],\"tabIndex\":[32]},[[10,\"updateUploadWidgetCover\",\"updateUploadWidgetCoverHandler\"]]],[0,\"covet-pics-gallery-item-detail\",{\"altTag\":[1,\"alt-tag\"],\"highlighted\":[4],\"verified\":[4],\"imageUrl\":[1,\"image-url\"],\"imageHighResolutionUrl\":[1,\"image-high-resolution-url\"],\"imageResponsiveSizes\":[1,\"image-responsive-sizes\"],\"itemId\":[1,\"item-id\"],\"itemSource\":[1,\"item-source\"],\"labelCaption\":[1,\"label-caption\"],\"layout\":[1],\"itemStyle\":[1,\"item-style\"],\"itemType\":[1,\"item-type\"],\"itemWidth\":[2,\"item-width\"],\"links\":[16],\"popupDisabled\":[4,\"popup-disabled\"],\"popupRedirectMode\":[4,\"popup-redirect-mode\"],\"url\":[1],\"backgroundColor\":[1,\"background-color\"],\"primaryColor\":[1,\"primary-color\"],\"starColor\":[1,\"star-color\"],\"rating\":[2],\"userName\":[1,\"user-name\"],\"caption\":[1],\"createdTime\":[1,\"created-time\"],\"itemIndex\":[2,\"item-index\"],\"appStore\":[16],\"tabIndex\":[32],\"captionCSS\":[32],\"reviewClass\":[32],\"starOnlyClass\":[32],\"highlightedClass\":[32]},[[10,\"updateUploadWidgetCover\",\"updateUploadWidgetCoverHandler\"]]]]],[\"covet-pics-gallery-grid_3.cjs\",[[0,\"covet-pics-gallery-grid\",{\"desktopPhotosPerRow\":[2,\"desktop-photos-per-row\"],\"desktopItemPadding\":[2,\"desktop-item-padding\"],\"mobilePhotosPerRow\":[2,\"mobile-photos-per-row\"],\"mobileItemPadding\":[2,\"mobile-item-padding\"],\"imagesToShow\":[2,\"images-to-show\"],\"layout\":[1],\"highlightEnabled\":[4,\"highlight-enabled\"],\"highlightEvery\":[2,\"highlight-every\"],\"highlightStartsFrom\":[2,\"highlight-starts-from\"],\"items\":[16],\"breakdown\":[16],\"productTitle\":[1,\"product-title\"],\"rating\":[2],\"ratingCount\":[2,\"rating-count\"],\"loadMoreBorder\":[2,\"load-more-border\"],\"loadMoreColor\":[1,\"load-more-color\"],\"loadMoreFontSize\":[2,\"load-more-font-size\"],\"loadMoreFontStyle\":[1,\"load-more-font-style\"],\"loadMoreLabel\":[1,\"load-more-label\"],\"loadMorePadding\":[2,\"load-more-padding\"],\"loadMoreStyle\":[1,\"load-more-style\"],\"loadMoreMode\":[1,\"load-more-mode\"],\"showHeader\":[4,\"show-header\"],\"headerType\":[1,\"header-type\"],\"headerShowAverageRating\":[4,\"header-show-average-rating\"],\"headerShowBreakdown\":[4,\"header-show-breakdown\"],\"headerShowSort\":[4,\"header-show-sort\"],\"filtersEnabled\":[4,\"filters-enabled\"],\"filtersMultiselect\":[4,\"filters-multiselect\"],\"filters\":[16],\"filtersResetLabel\":[1,\"filters-reset-label\"],\"filtersPadding\":[2,\"filters-padding\"],\"filtersColor\":[1,\"filters-color\"],\"filtersFontSize\":[2,\"filters-font-size\"],\"filtersFontWeight\":[1,\"filters-font-weight\"],\"itemStyle\":[1,\"item-style\"],\"loader\":[16],\"appStore\":[16],\"sharedItemId\":[1,\"shared-item-id\"],\"isLoading\":[32],\"showSort\":[32],\"showBreakdown\":[32],\"isGridDisabled\":[32],\"isDesktopScreen\":[32]},[[0,\"imageLoaded\",\"imagesLoadedHandler\"],[0,\"itemClicked\",\"itemClickedHandler\"],[8,\"previousPopupEvent\",\"prevPopupHandler\"],[8,\"nextPopupEvent\",\"nextPopupHandler\"],[8,\"elementResize\",\"elementResizeHandler\"]]],[0,\"covet-pics-gallery-slider\",{\"desktopPhotosPerRow\":[2,\"desktop-photos-per-row\"],\"desktopItemPadding\":[2,\"desktop-item-padding\"],\"mobilePhotosPerRow\":[2,\"mobile-photos-per-row\"],\"mobileItemPadding\":[2,\"mobile-item-padding\"],\"items\":[16],\"sharedItemId\":[1,\"shared-item-id\"],\"itemStyle\":[1,\"item-style\"],\"autoPlay\":[2,\"auto-play\"],\"autoLoadMore\":[4,\"auto-load-more\"],\"loader\":[16],\"appStore\":[16],\"isDesktopScreen\":[32]},[[0,\"imageLoaded\",\"imagesLoadedHandler\"],[0,\"itemClicked\",\"itemClickedHandler\"],[8,\"previousPopupEvent\",\"prevPopupHandler\"],[8,\"nextPopupEvent\",\"nextPopupHandler\"],[8,\"elementResize\",\"elementResizeHandler\"]]],[0,\"covet-pics-highlighted\",{\"layout\":[1],\"numberOfPages\":[2,\"number-of-pages\"],\"padding\":[2],\"showPrice\":[4,\"show-price\"],\"showReview\":[4,\"show-review\"],\"primaryColor\":[1,\"primary-color\"],\"secondaryColor\":[1,\"secondary-color\"],\"backgroundColor\":[1,\"background-color\"],\"hotspotsBackgoundColor\":[1,\"hotspots-backgound-color\"],\"items\":[16],\"productsLayout\":[1,\"products-layout\"],\"showHotspots\":[4,\"show-hotspots\"],\"hotspotsLayout\":[1,\"hotspots-layout\"],\"productsTitle\":[1,\"products-title\"],\"hideProductTitle\":[4,\"hide-product-title\"],\"hideBranding\":[4,\"hide-branding\"],\"btnBuyLabel\":[1,\"btn-buy-label\"],\"appStore\":[16],\"productLinks\":[32],\"mainSliderIndex\":[32],\"mainSliderAnimatingSlides\":[32],\"windowHeight\":[32],\"isDesktopScreen\":[32]}]]],[\"covet-pics-widget.cjs\",[[1,\"covet-pics-widget\",{\"shop\":[1],\"galleryEmbedId\":[2,\"gallery-embed-id\"],\"environment\":[1],\"customSettings\":[1,\"custom-settings\"],\"hideElements\":[1,\"hide-elements\"],\"previewMode\":[4,\"preview-mode\"],\"isLoading\":[32],\"minNumberOfPhotos\":[32],\"items\":[32],\"appStore\":[32],\"updateUploadWidgetCoverPreview\":[64],\"updatePreviewSettings\":[64]},[[0,\"sortUpdated\",\"sortUpdatedHandler\"],[0,\"filtersUpdated\",\"filtersUpdatedHandler\"],[0,\"nextPage\",\"nextPageHandler\"]]]]]]"), options);
28
+ return index.bootstrapLazy(JSON.parse("[[\"covet-pics-direct-buy_8.cjs\",[[1,\"covet-pics-direct-buy\",{\"product\":[8],\"moneyFormat\":[1,\"money-format\"],\"appStore\":[16],\"selectedOptions\":[32],\"settings\":[32]}],[1,\"covet-pics-popup\",{\"appStore\":[16],\"item\":[32],\"product\":[32],\"directBuyIsOpen\":[32],\"popupTabIndex\":[32],\"settings\":[32],\"isPreviousEnable\":[32],\"openPopup\":[64],\"closePopup\":[64]},[[4,\"addToCart:covetPics\",\"addToCartHandler\"],[16,\"productLinkClicked\",\"productLinkClickedHandler\"]]],[0,\"covet-pics-popup-links\",{\"links\":[16],\"greyBorderClass\":[1,\"grey-border-class\"],\"itemCreatedTime\":[1,\"item-created-time\"],\"appStore\":[16],\"settings\":[32]}],[0,\"covet-pics-popup-slider\",{\"item\":[16],\"getSwiperState\":[64]}],[1,\"covet-pics-upload\",{\"animated\":[4],\"backgroundColor\":[1,\"background-color\"],\"backgroundOpacity\":[2,\"background-opacity\"],\"responsive\":[4],\"fontFamily\":[1,\"font-family\"],\"baseUrl\":[1,\"base-url\"],\"galleryId\":[2,\"gallery-id\"],\"galleryEmbedId\":[2,\"gallery-embed-id\"],\"photoRequestId\":[2,\"photo-request-id\"],\"productHandle\":[1,\"product-handle\"],\"uploadTitle\":[1,\"upload-title\"],\"uploadBody\":[1,\"upload-body\"],\"uploadDragDrop\":[1,\"upload-drag-drop\"],\"uploadChoose\":[1,\"upload-choose\"],\"formNamePlaceholder\":[1,\"form-name-placeholder\"],\"formEmailPlaceholder\":[1,\"form-email-placeholder\"],\"formBodyPlaceholder\":[1,\"form-body-placeholder\"],\"formSendLabel\":[1,\"form-send-label\"],\"formUploading\":[1,\"form-uploading\"],\"formAgreeToTerms\":[1,\"form-agree-to-terms\"],\"completeBody\":[1,\"complete-body\"],\"completeCloseLabel\":[1,\"complete-close-label\"],\"activeStep\":[2,\"active-step\"],\"hideBranding\":[4,\"hide-branding\"],\"standalone\":[4],\"appStore\":[16],\"starRating\":[32],\"isFormValid\":[32],\"showFormWarning\":[32],\"thumbnailLinks\":[32],\"toShowLinks\":[32],\"dropedImagesNumber\":[32],\"isAnimating\":[32],\"notificationMessage\":[32],\"isNotificationActive\":[32],\"widgetWidth\":[32],\"uploadTabIndex\":[32],\"openUpload\":[64]}],[0,\"covet-pics-hotspots\",{\"links\":[16],\"backgroundColor\":[1,\"background-color\"],\"textColor\":[1,\"text-color\"],\"showNumbers\":[4,\"show-numbers\"]},[[0,\"linkInactivate\",\"linkInactivateHandler\"],[0,\"linkActivate\",\"linkActivateHandler\"]]],[0,\"covet-pics-popup-review\",{\"rating\":[2],\"caption\":[1],\"username\":[1],\"itemType\":[1,\"item-type\"],\"verified\":[4],\"createdTime\":[1,\"created-time\"],\"reviewCSS\":[32]}],[0,\"covet-pics-popup-shared-links\",{\"item\":[16],\"galleryEmbedId\":[2,\"gallery-embed-id\"],\"showShareLink\":[32],\"copyLinkCopied\":[32]}]]],[\"covet-pics-highlighted-hotspots_2.cjs\",[[0,\"covet-pics-highlighted-page\",{\"thumbnailUrl\":[1,\"thumbnail-url\"],\"thumbnailAlt\":[1,\"thumbnail-alt\"],\"ariaLabel\":[1,\"aria-label\"],\"thumbnailLayout\":[1,\"thumbnail-layout\"],\"videoUrl\":[1,\"video-url\"],\"videoPoster\":[1,\"video-poster\"],\"thumbnailCarouselImages\":[16],\"showHotspots\":[4,\"show-hotspots\"],\"hotspotsLayout\":[1,\"hotspots-layout\"],\"hotspotsBackgoundColor\":[1,\"hotspots-backgound-color\"],\"productsLayout\":[1,\"products-layout\"],\"productLinks\":[16],\"productBaseImgAlt\":[1,\"product-base-img-alt\"],\"layout\":[1],\"reverseClass\":[1,\"reverse-class\"],\"isMobile\":[4,\"is-mobile\"],\"showPrice\":[4,\"show-price\"],\"btnBuyLabel\":[1,\"btn-buy-label\"],\"productsTitle\":[1,\"products-title\"],\"hideProductTitle\":[8,\"hide-product-title\"],\"hideBranding\":[4,\"hide-branding\"],\"pageIndex\":[2,\"page-index\"],\"caption\":[1],\"rating\":[2],\"showReview\":[4,\"show-review\"],\"createdTime\":[1,\"created-time\"],\"userName\":[1,\"user-name\"],\"mainSliderIndex\":[2,\"main-slider-index\"],\"pageId\":[2,\"page-id\"],\"appStore\":[16],\"hideHotspots\":[32],\"activeProductIndex\":[32],\"hoverHotspot\":[32]},[[0,\"changeActiveHotspot\",\"onChangeActiveHotspot\"]]],[0,\"covet-pics-highlighted-hotspots\",{\"links\":[16],\"layout\":[1],\"activeHotspot\":[2,\"active-hotspot\"],\"pageLayout\":[1,\"page-layout\"],\"productsTitle\":[1,\"products-title\"],\"thumbnailUrl\":[1,\"thumbnail-url\"],\"btnBuyLabel\":[1,\"btn-buy-label\"],\"hoverHotspot\":[2,\"hover-hotspot\"],\"isMobile\":[4,\"is-mobile\"],\"productBaseImgAlt\":[1,\"product-base-img-alt\"],\"pageId\":[2,\"page-id\"],\"appStore\":[16]}]]],[\"covet-pics-gallery-item-caption.cjs\",[[0,\"covet-pics-gallery-item-caption\",{\"caption\":[1],\"captionClass\":[1,\"caption-class\"],\"itemStyle\":[1,\"item-style\"],\"layoutType\":[1,\"layout-type\"],\"reviewCSS\":[32]},[[16,\"sliderInit:covetPics\",\"initSize\"],[16,\"sliderUpdate:covetPics\",\"updateSize\"]]]]],[\"covet-pics-star-rating.cjs\",[[1,\"covet-pics-star-rating\",{\"rating\":[2],\"ratingCount\":[2,\"rating-count\"],\"starColor\":[1,\"star-color\"],\"emptyStarColor\":[1,\"empty-star-color\"],\"starBorderColor\":[1,\"star-border-color\"],\"starBorderWidth\":[2,\"star-border-width\"],\"starSize\":[2,\"star-size\"],\"spaceStars\":[2,\"space-stars\"],\"spaceStarsText\":[2,\"space-stars-text\"],\"showLabel\":[4,\"show-label\"],\"label\":[1]}]]],[\"covet-pics-gallery-header_3.cjs\",[[0,\"covet-pics-gallery-header\",{\"headerType\":[1,\"header-type\"],\"rating\":[2],\"showSort\":[4,\"show-sort\"],\"showBreakdown\":[4,\"show-breakdown\"],\"showAverageStarRating\":[4,\"show-average-star-rating\"],\"ratingCount\":[2,\"rating-count\"],\"productTitle\":[1,\"product-title\"],\"breakdown\":[16],\"appStore\":[16],\"showBreakdownDropdown\":[32],\"showSortDropdown\":[32],\"isDesktopScreen\":[32]}],[0,\"covet-pics-gallery-item\",{\"animationDuration\":[2,\"animation-duration\"],\"altTag\":[1,\"alt-tag\"],\"highlighted\":[4],\"hoverAnimationStyle\":[1,\"hover-animation-style\"],\"hoverDisabled\":[4,\"hover-disabled\"],\"layout\":[1],\"hoverBackgroundOpacity\":[2,\"hover-background-opacity\"],\"hoverBorderColor\":[1,\"hover-border-color\"],\"hoverColorFrom\":[1,\"hover-color-from\"],\"hoverColorTo\":[1,\"hover-color-to\"],\"hoverPreview\":[4,\"hover-preview\"],\"imageUrl\":[1,\"image-url\"],\"rating\":[2],\"itemWidth\":[2,\"item-width\"],\"userName\":[1,\"user-name\"],\"createdTime\":[1,\"created-time\"],\"caption\":[1],\"itemType\":[1,\"item-type\"],\"imageHighResolutionUrl\":[1,\"image-high-resolution-url\"],\"imageResponsiveSizes\":[1,\"image-responsive-sizes\"],\"itemId\":[1,\"item-id\"],\"itemSource\":[1,\"item-source\"],\"labelCaption\":[1,\"label-caption\"],\"labelCaptionWithLinks\":[1,\"label-caption-with-links\"],\"labelColor\":[1,\"label-color\"],\"labelFontSize\":[2,\"label-font-size\"],\"labelFontStyle\":[1,\"label-font-style\"],\"links\":[16],\"popupDisabled\":[4,\"popup-disabled\"],\"popupRedirectMode\":[4,\"popup-redirect-mode\"],\"showHoverIcon\":[4,\"show-hover-icon\"],\"url\":[1],\"itemIndex\":[2,\"item-index\"],\"appStore\":[16],\"tabIndex\":[32]},[[10,\"updateUploadWidgetCover\",\"updateUploadWidgetCoverHandler\"]]],[0,\"covet-pics-gallery-item-detail\",{\"altTag\":[1,\"alt-tag\"],\"highlighted\":[4],\"verified\":[4],\"imageUrl\":[1,\"image-url\"],\"imageHighResolutionUrl\":[1,\"image-high-resolution-url\"],\"imageResponsiveSizes\":[1,\"image-responsive-sizes\"],\"itemId\":[1,\"item-id\"],\"itemSource\":[1,\"item-source\"],\"labelCaption\":[1,\"label-caption\"],\"layout\":[1],\"itemStyle\":[1,\"item-style\"],\"itemType\":[1,\"item-type\"],\"itemWidth\":[2,\"item-width\"],\"links\":[16],\"popupDisabled\":[4,\"popup-disabled\"],\"popupRedirectMode\":[4,\"popup-redirect-mode\"],\"url\":[1],\"backgroundColor\":[1,\"background-color\"],\"primaryColor\":[1,\"primary-color\"],\"starColor\":[1,\"star-color\"],\"rating\":[2],\"userName\":[1,\"user-name\"],\"caption\":[1],\"createdTime\":[1,\"created-time\"],\"itemIndex\":[2,\"item-index\"],\"appStore\":[16],\"tabIndex\":[32],\"captionCSS\":[32],\"reviewClass\":[32],\"starOnlyClass\":[32],\"highlightedClass\":[32]},[[10,\"updateUploadWidgetCover\",\"updateUploadWidgetCoverHandler\"]]]]],[\"covet-pics-gallery-grid_3.cjs\",[[0,\"covet-pics-gallery-grid\",{\"desktopPhotosPerRow\":[2,\"desktop-photos-per-row\"],\"desktopItemPadding\":[2,\"desktop-item-padding\"],\"mobilePhotosPerRow\":[2,\"mobile-photos-per-row\"],\"mobileItemPadding\":[2,\"mobile-item-padding\"],\"imagesToShow\":[2,\"images-to-show\"],\"layout\":[1],\"highlightEnabled\":[4,\"highlight-enabled\"],\"highlightEvery\":[2,\"highlight-every\"],\"highlightStartsFrom\":[2,\"highlight-starts-from\"],\"items\":[16],\"breakdown\":[16],\"productTitle\":[1,\"product-title\"],\"rating\":[2],\"ratingCount\":[2,\"rating-count\"],\"loadMoreBorder\":[2,\"load-more-border\"],\"loadMoreColor\":[1,\"load-more-color\"],\"loadMoreFontSize\":[2,\"load-more-font-size\"],\"loadMoreFontStyle\":[1,\"load-more-font-style\"],\"loadMoreLabel\":[1,\"load-more-label\"],\"loadMorePadding\":[2,\"load-more-padding\"],\"loadMoreStyle\":[1,\"load-more-style\"],\"loadMoreMode\":[1,\"load-more-mode\"],\"showHeader\":[4,\"show-header\"],\"headerType\":[1,\"header-type\"],\"headerShowAverageRating\":[4,\"header-show-average-rating\"],\"headerShowBreakdown\":[4,\"header-show-breakdown\"],\"headerShowSort\":[4,\"header-show-sort\"],\"filtersEnabled\":[4,\"filters-enabled\"],\"filtersMultiselect\":[4,\"filters-multiselect\"],\"filters\":[16],\"filtersResetLabel\":[1,\"filters-reset-label\"],\"filtersPadding\":[2,\"filters-padding\"],\"filtersColor\":[1,\"filters-color\"],\"filtersFontSize\":[2,\"filters-font-size\"],\"filtersFontWeight\":[1,\"filters-font-weight\"],\"itemStyle\":[1,\"item-style\"],\"loader\":[16],\"appStore\":[16],\"sharedItemId\":[1,\"shared-item-id\"],\"isLoading\":[32],\"showSort\":[32],\"showBreakdown\":[32],\"isGridDisabled\":[32],\"isDesktopScreen\":[32]},[[0,\"imageLoaded\",\"imagesLoadedHandler\"],[0,\"itemClicked\",\"itemClickedHandler\"],[8,\"previousPopupEvent\",\"prevPopupHandler\"],[8,\"nextPopupEvent\",\"nextPopupHandler\"],[8,\"elementResize\",\"elementResizeHandler\"]]],[0,\"covet-pics-gallery-slider\",{\"desktopPhotosPerRow\":[2,\"desktop-photos-per-row\"],\"desktopItemPadding\":[2,\"desktop-item-padding\"],\"mobilePhotosPerRow\":[2,\"mobile-photos-per-row\"],\"mobileItemPadding\":[2,\"mobile-item-padding\"],\"items\":[16],\"sharedItemId\":[1,\"shared-item-id\"],\"itemStyle\":[1,\"item-style\"],\"autoPlay\":[2,\"auto-play\"],\"autoLoadMore\":[4,\"auto-load-more\"],\"loader\":[16],\"appStore\":[16],\"isDesktopScreen\":[32]},[[0,\"imageLoaded\",\"imagesLoadedHandler\"],[0,\"itemClicked\",\"itemClickedHandler\"],[8,\"previousPopupEvent\",\"prevPopupHandler\"],[8,\"nextPopupEvent\",\"nextPopupHandler\"],[8,\"elementResize\",\"elementResizeHandler\"]]],[0,\"covet-pics-highlighted\",{\"layout\":[1],\"numberOfPages\":[2,\"number-of-pages\"],\"padding\":[2],\"showPrice\":[4,\"show-price\"],\"showReview\":[4,\"show-review\"],\"primaryColor\":[1,\"primary-color\"],\"secondaryColor\":[1,\"secondary-color\"],\"backgroundColor\":[1,\"background-color\"],\"hotspotsBackgoundColor\":[1,\"hotspots-backgound-color\"],\"items\":[16],\"productsLayout\":[1,\"products-layout\"],\"showHotspots\":[4,\"show-hotspots\"],\"hotspotsLayout\":[1,\"hotspots-layout\"],\"productsTitle\":[1,\"products-title\"],\"hideProductTitle\":[4,\"hide-product-title\"],\"hideBranding\":[4,\"hide-branding\"],\"btnBuyLabel\":[1,\"btn-buy-label\"],\"appStore\":[16],\"productLinks\":[32],\"mainSliderIndex\":[32],\"mainSliderAnimatingSlides\":[32],\"windowHeight\":[32],\"isDesktopScreen\":[32]}]]],[\"covet-pics-widget.cjs\",[[1,\"covet-pics-widget\",{\"shop\":[1],\"galleryEmbedId\":[2,\"gallery-embed-id\"],\"environment\":[1],\"customSettings\":[1,\"custom-settings\"],\"hideElements\":[1,\"hide-elements\"],\"previewMode\":[4,\"preview-mode\"],\"isLoading\":[32],\"minNumberOfPhotos\":[32],\"items\":[32],\"appStore\":[32],\"updateUploadWidgetCoverPreview\":[64],\"updatePreviewSettings\":[64]},[[0,\"sortUpdated\",\"sortUpdatedHandler\"],[0,\"filtersUpdated\",\"filtersUpdatedHandler\"],[0,\"nextPage\",\"nextPageHandler\"]]]]]]"), options);
29
29
  });
30
30
 
31
31
  exports.setNonce = index.setNonce;
@@ -19,7 +19,7 @@ const defineCustomElements = (win, options) => {
19
19
  if (typeof window === 'undefined') return Promise.resolve();
20
20
  return patchEsm().then(() => {
21
21
  appGlobals.globalScripts();
22
- return index.bootstrapLazy(JSON.parse("[[\"covet-pics-direct-buy_8.cjs\",[[1,\"covet-pics-direct-buy\",{\"product\":[8],\"moneyFormat\":[1,\"money-format\"],\"appStore\":[16],\"selectedOptions\":[32],\"settings\":[32]}],[1,\"covet-pics-popup\",{\"appStore\":[16],\"item\":[32],\"product\":[32],\"directBuyIsOpen\":[32],\"popupTabIndex\":[32],\"settings\":[32],\"isPreviousEnable\":[32],\"openPopup\":[64],\"closePopup\":[64]},[[4,\"addToCart:covetPics\",\"addToCartHandler\"],[16,\"productLinkClicked\",\"productLinkClickedHandler\"]]],[0,\"covet-pics-popup-links\",{\"links\":[16],\"greyBorderClass\":[1,\"grey-border-class\"],\"itemCreatedTime\":[1,\"item-created-time\"],\"appStore\":[16],\"settings\":[32]}],[0,\"covet-pics-popup-slider\",{\"item\":[16],\"getSwiperState\":[64]}],[1,\"covet-pics-upload\",{\"animated\":[4],\"backgroundColor\":[1,\"background-color\"],\"backgroundOpacity\":[2,\"background-opacity\"],\"responsive\":[4],\"fontFamily\":[1,\"font-family\"],\"baseUrl\":[1,\"base-url\"],\"galleryId\":[2,\"gallery-id\"],\"galleryEmbedId\":[2,\"gallery-embed-id\"],\"photoRequestId\":[2,\"photo-request-id\"],\"productHandle\":[1,\"product-handle\"],\"uploadTitle\":[1,\"upload-title\"],\"uploadBody\":[1,\"upload-body\"],\"uploadDragDrop\":[1,\"upload-drag-drop\"],\"uploadChoose\":[1,\"upload-choose\"],\"formNamePlaceholder\":[1,\"form-name-placeholder\"],\"formEmailPlaceholder\":[1,\"form-email-placeholder\"],\"formBodyPlaceholder\":[1,\"form-body-placeholder\"],\"formSendLabel\":[1,\"form-send-label\"],\"formUploading\":[1,\"form-uploading\"],\"formAgreeToTerms\":[1,\"form-agree-to-terms\"],\"completeBody\":[1,\"complete-body\"],\"completeCloseLabel\":[1,\"complete-close-label\"],\"activeStep\":[2,\"active-step\"],\"hideBranding\":[4,\"hide-branding\"],\"standalone\":[4],\"appStore\":[16],\"starRating\":[32],\"isFormValid\":[32],\"showFormWarning\":[32],\"thumbnailLinks\":[32],\"toShowLinks\":[32],\"dropedImagesNumber\":[32],\"isAnimating\":[32],\"notificationMessage\":[32],\"isNotificationActive\":[32],\"widgetWidth\":[32],\"uploadTabIndex\":[32],\"openUpload\":[64]}],[0,\"covet-pics-hotspots\",{\"links\":[16],\"backgroundColor\":[1,\"background-color\"],\"textColor\":[1,\"text-color\"],\"showNumbers\":[4,\"show-numbers\"]},[[0,\"linkInactivate\",\"linkInactivateHandler\"],[0,\"linkActivate\",\"linkActivateHandler\"]]],[0,\"covet-pics-popup-review\",{\"rating\":[2],\"caption\":[1],\"username\":[1],\"itemType\":[1,\"item-type\"],\"verified\":[4],\"createdTime\":[1,\"created-time\"],\"reviewCSS\":[32]}],[0,\"covet-pics-popup-shared-links\",{\"item\":[16],\"galleryEmbedId\":[2,\"gallery-embed-id\"],\"showShareLink\":[32],\"copyLinkCopied\":[32]}]]],[\"covet-pics-highlighted-hotspots_2.cjs\",[[0,\"covet-pics-highlighted-page\",{\"thumbnailUrl\":[1,\"thumbnail-url\"],\"thumbnailAlt\":[1,\"thumbnail-alt\"],\"ariaLabel\":[1,\"aria-label\"],\"thumbnailLayout\":[1,\"thumbnail-layout\"],\"videoUrl\":[1,\"video-url\"],\"videoPoster\":[1,\"video-poster\"],\"thumbnailCarouselImages\":[16],\"showHotspots\":[4,\"show-hotspots\"],\"hotspotsLayout\":[1,\"hotspots-layout\"],\"hotspotsBackgoundColor\":[1,\"hotspots-backgound-color\"],\"productsLayout\":[1,\"products-layout\"],\"productLinks\":[16],\"productBaseImgAlt\":[1,\"product-base-img-alt\"],\"layout\":[1],\"reverseClass\":[1,\"reverse-class\"],\"isMobile\":[4,\"is-mobile\"],\"showPrice\":[4,\"show-price\"],\"btnBuyLabel\":[1,\"btn-buy-label\"],\"productsTitle\":[1,\"products-title\"],\"hideProductTitle\":[8,\"hide-product-title\"],\"hideBranding\":[4,\"hide-branding\"],\"pageIndex\":[2,\"page-index\"],\"caption\":[1],\"rating\":[2],\"showReview\":[4,\"show-review\"],\"createdTime\":[1,\"created-time\"],\"userName\":[1,\"user-name\"],\"mainSliderIndex\":[2,\"main-slider-index\"],\"pageId\":[2,\"page-id\"],\"appStore\":[16],\"hideHotspots\":[32],\"activeProductIndex\":[32],\"hoverHotspot\":[32]},[[0,\"changeActiveHotspot\",\"onChangeActiveHotspot\"]]],[0,\"covet-pics-highlighted-hotspots\",{\"links\":[16],\"layout\":[1],\"activeHotspot\":[2,\"active-hotspot\"],\"pageLayout\":[1,\"page-layout\"],\"productsTitle\":[1,\"products-title\"],\"thumbnailUrl\":[1,\"thumbnail-url\"],\"btnBuyLabel\":[1,\"btn-buy-label\"],\"hoverHotspot\":[2,\"hover-hotspot\"],\"isMobile\":[4,\"is-mobile\"],\"productBaseImgAlt\":[1,\"product-base-img-alt\"],\"pageId\":[2,\"page-id\"],\"appStore\":[16]}]]],[\"covet-pics-gallery-item-caption.cjs\",[[0,\"covet-pics-gallery-item-caption\",{\"caption\":[1],\"captionClass\":[1,\"caption-class\"],\"itemStyle\":[1,\"item-style\"],\"layoutType\":[1,\"layout-type\"],\"reviewCSS\":[32]},[[16,\"sliderInit:covetPics\",\"initSize\"],[16,\"sliderUpdate:covetPics\",\"updateSize\"]]]]],[\"covet-pics-star-rating.cjs\",[[1,\"covet-pics-star-rating\",{\"rating\":[2],\"ratingCount\":[2,\"rating-count\"],\"starColor\":[1,\"star-color\"],\"emptyStarColor\":[1,\"empty-star-color\"],\"starBorderColor\":[1,\"star-border-color\"],\"starBorderWidth\":[2,\"star-border-width\"],\"starSize\":[2,\"star-size\"],\"spaceAbove\":[2,\"space-above\"],\"spaceBelow\":[2,\"space-below\"],\"spaceStars\":[2,\"space-stars\"],\"spaceStarsText\":[2,\"space-stars-text\"],\"showLabel\":[4,\"show-label\"],\"label\":[1]}]]],[\"covet-pics-gallery-header_3.cjs\",[[0,\"covet-pics-gallery-header\",{\"headerType\":[1,\"header-type\"],\"rating\":[2],\"showSort\":[4,\"show-sort\"],\"showBreakdown\":[4,\"show-breakdown\"],\"showAverageStarRating\":[4,\"show-average-star-rating\"],\"ratingCount\":[2,\"rating-count\"],\"productTitle\":[1,\"product-title\"],\"breakdown\":[16],\"appStore\":[16],\"showBreakdownDropdown\":[32],\"showSortDropdown\":[32],\"isDesktopScreen\":[32]}],[0,\"covet-pics-gallery-item\",{\"animationDuration\":[2,\"animation-duration\"],\"altTag\":[1,\"alt-tag\"],\"highlighted\":[4],\"hoverAnimationStyle\":[1,\"hover-animation-style\"],\"hoverDisabled\":[4,\"hover-disabled\"],\"layout\":[1],\"hoverBackgroundOpacity\":[2,\"hover-background-opacity\"],\"hoverBorderColor\":[1,\"hover-border-color\"],\"hoverColorFrom\":[1,\"hover-color-from\"],\"hoverColorTo\":[1,\"hover-color-to\"],\"hoverPreview\":[4,\"hover-preview\"],\"imageUrl\":[1,\"image-url\"],\"rating\":[2],\"itemWidth\":[2,\"item-width\"],\"userName\":[1,\"user-name\"],\"createdTime\":[1,\"created-time\"],\"caption\":[1],\"itemType\":[1,\"item-type\"],\"imageHighResolutionUrl\":[1,\"image-high-resolution-url\"],\"imageResponsiveSizes\":[1,\"image-responsive-sizes\"],\"itemId\":[1,\"item-id\"],\"itemSource\":[1,\"item-source\"],\"labelCaption\":[1,\"label-caption\"],\"labelCaptionWithLinks\":[1,\"label-caption-with-links\"],\"labelColor\":[1,\"label-color\"],\"labelFontSize\":[2,\"label-font-size\"],\"labelFontStyle\":[1,\"label-font-style\"],\"links\":[16],\"popupDisabled\":[4,\"popup-disabled\"],\"popupRedirectMode\":[4,\"popup-redirect-mode\"],\"showHoverIcon\":[4,\"show-hover-icon\"],\"url\":[1],\"itemIndex\":[2,\"item-index\"],\"appStore\":[16],\"tabIndex\":[32]},[[10,\"updateUploadWidgetCover\",\"updateUploadWidgetCoverHandler\"]]],[0,\"covet-pics-gallery-item-detail\",{\"altTag\":[1,\"alt-tag\"],\"highlighted\":[4],\"verified\":[4],\"imageUrl\":[1,\"image-url\"],\"imageHighResolutionUrl\":[1,\"image-high-resolution-url\"],\"imageResponsiveSizes\":[1,\"image-responsive-sizes\"],\"itemId\":[1,\"item-id\"],\"itemSource\":[1,\"item-source\"],\"labelCaption\":[1,\"label-caption\"],\"layout\":[1],\"itemStyle\":[1,\"item-style\"],\"itemType\":[1,\"item-type\"],\"itemWidth\":[2,\"item-width\"],\"links\":[16],\"popupDisabled\":[4,\"popup-disabled\"],\"popupRedirectMode\":[4,\"popup-redirect-mode\"],\"url\":[1],\"backgroundColor\":[1,\"background-color\"],\"primaryColor\":[1,\"primary-color\"],\"starColor\":[1,\"star-color\"],\"rating\":[2],\"userName\":[1,\"user-name\"],\"caption\":[1],\"createdTime\":[1,\"created-time\"],\"itemIndex\":[2,\"item-index\"],\"appStore\":[16],\"tabIndex\":[32],\"captionCSS\":[32],\"reviewClass\":[32],\"starOnlyClass\":[32],\"highlightedClass\":[32]},[[10,\"updateUploadWidgetCover\",\"updateUploadWidgetCoverHandler\"]]]]],[\"covet-pics-gallery-grid_3.cjs\",[[0,\"covet-pics-gallery-grid\",{\"desktopPhotosPerRow\":[2,\"desktop-photos-per-row\"],\"desktopItemPadding\":[2,\"desktop-item-padding\"],\"mobilePhotosPerRow\":[2,\"mobile-photos-per-row\"],\"mobileItemPadding\":[2,\"mobile-item-padding\"],\"imagesToShow\":[2,\"images-to-show\"],\"layout\":[1],\"highlightEnabled\":[4,\"highlight-enabled\"],\"highlightEvery\":[2,\"highlight-every\"],\"highlightStartsFrom\":[2,\"highlight-starts-from\"],\"items\":[16],\"breakdown\":[16],\"productTitle\":[1,\"product-title\"],\"rating\":[2],\"ratingCount\":[2,\"rating-count\"],\"loadMoreBorder\":[2,\"load-more-border\"],\"loadMoreColor\":[1,\"load-more-color\"],\"loadMoreFontSize\":[2,\"load-more-font-size\"],\"loadMoreFontStyle\":[1,\"load-more-font-style\"],\"loadMoreLabel\":[1,\"load-more-label\"],\"loadMorePadding\":[2,\"load-more-padding\"],\"loadMoreStyle\":[1,\"load-more-style\"],\"loadMoreMode\":[1,\"load-more-mode\"],\"showHeader\":[4,\"show-header\"],\"headerType\":[1,\"header-type\"],\"headerShowAverageRating\":[4,\"header-show-average-rating\"],\"headerShowBreakdown\":[4,\"header-show-breakdown\"],\"headerShowSort\":[4,\"header-show-sort\"],\"filtersEnabled\":[4,\"filters-enabled\"],\"filtersMultiselect\":[4,\"filters-multiselect\"],\"filters\":[16],\"filtersResetLabel\":[1,\"filters-reset-label\"],\"filtersPadding\":[2,\"filters-padding\"],\"filtersColor\":[1,\"filters-color\"],\"filtersFontSize\":[2,\"filters-font-size\"],\"filtersFontWeight\":[1,\"filters-font-weight\"],\"itemStyle\":[1,\"item-style\"],\"loader\":[16],\"appStore\":[16],\"sharedItemId\":[1,\"shared-item-id\"],\"isLoading\":[32],\"showSort\":[32],\"showBreakdown\":[32],\"isGridDisabled\":[32],\"isDesktopScreen\":[32]},[[0,\"imageLoaded\",\"imagesLoadedHandler\"],[0,\"itemClicked\",\"itemClickedHandler\"],[8,\"previousPopupEvent\",\"prevPopupHandler\"],[8,\"nextPopupEvent\",\"nextPopupHandler\"],[8,\"elementResize\",\"elementResizeHandler\"]]],[0,\"covet-pics-gallery-slider\",{\"desktopPhotosPerRow\":[2,\"desktop-photos-per-row\"],\"desktopItemPadding\":[2,\"desktop-item-padding\"],\"mobilePhotosPerRow\":[2,\"mobile-photos-per-row\"],\"mobileItemPadding\":[2,\"mobile-item-padding\"],\"items\":[16],\"sharedItemId\":[1,\"shared-item-id\"],\"itemStyle\":[1,\"item-style\"],\"autoPlay\":[2,\"auto-play\"],\"autoLoadMore\":[4,\"auto-load-more\"],\"loader\":[16],\"appStore\":[16],\"isDesktopScreen\":[32]},[[0,\"imageLoaded\",\"imagesLoadedHandler\"],[0,\"itemClicked\",\"itemClickedHandler\"],[8,\"previousPopupEvent\",\"prevPopupHandler\"],[8,\"nextPopupEvent\",\"nextPopupHandler\"],[8,\"elementResize\",\"elementResizeHandler\"]]],[0,\"covet-pics-highlighted\",{\"layout\":[1],\"numberOfPages\":[2,\"number-of-pages\"],\"padding\":[2],\"showPrice\":[4,\"show-price\"],\"showReview\":[4,\"show-review\"],\"primaryColor\":[1,\"primary-color\"],\"secondaryColor\":[1,\"secondary-color\"],\"backgroundColor\":[1,\"background-color\"],\"hotspotsBackgoundColor\":[1,\"hotspots-backgound-color\"],\"items\":[16],\"productsLayout\":[1,\"products-layout\"],\"showHotspots\":[4,\"show-hotspots\"],\"hotspotsLayout\":[1,\"hotspots-layout\"],\"productsTitle\":[1,\"products-title\"],\"hideProductTitle\":[4,\"hide-product-title\"],\"hideBranding\":[4,\"hide-branding\"],\"btnBuyLabel\":[1,\"btn-buy-label\"],\"appStore\":[16],\"productLinks\":[32],\"mainSliderIndex\":[32],\"mainSliderAnimatingSlides\":[32],\"windowHeight\":[32],\"isDesktopScreen\":[32]}]]],[\"covet-pics-widget.cjs\",[[1,\"covet-pics-widget\",{\"shop\":[1],\"galleryEmbedId\":[2,\"gallery-embed-id\"],\"environment\":[1],\"customSettings\":[1,\"custom-settings\"],\"hideElements\":[1,\"hide-elements\"],\"previewMode\":[4,\"preview-mode\"],\"isLoading\":[32],\"minNumberOfPhotos\":[32],\"items\":[32],\"appStore\":[32],\"updateUploadWidgetCoverPreview\":[64],\"updatePreviewSettings\":[64]},[[0,\"sortUpdated\",\"sortUpdatedHandler\"],[0,\"filtersUpdated\",\"filtersUpdatedHandler\"],[0,\"nextPage\",\"nextPageHandler\"]]]]]]"), options);
22
+ return index.bootstrapLazy(JSON.parse("[[\"covet-pics-direct-buy_8.cjs\",[[1,\"covet-pics-direct-buy\",{\"product\":[8],\"moneyFormat\":[1,\"money-format\"],\"appStore\":[16],\"selectedOptions\":[32],\"settings\":[32]}],[1,\"covet-pics-popup\",{\"appStore\":[16],\"item\":[32],\"product\":[32],\"directBuyIsOpen\":[32],\"popupTabIndex\":[32],\"settings\":[32],\"isPreviousEnable\":[32],\"openPopup\":[64],\"closePopup\":[64]},[[4,\"addToCart:covetPics\",\"addToCartHandler\"],[16,\"productLinkClicked\",\"productLinkClickedHandler\"]]],[0,\"covet-pics-popup-links\",{\"links\":[16],\"greyBorderClass\":[1,\"grey-border-class\"],\"itemCreatedTime\":[1,\"item-created-time\"],\"appStore\":[16],\"settings\":[32]}],[0,\"covet-pics-popup-slider\",{\"item\":[16],\"getSwiperState\":[64]}],[1,\"covet-pics-upload\",{\"animated\":[4],\"backgroundColor\":[1,\"background-color\"],\"backgroundOpacity\":[2,\"background-opacity\"],\"responsive\":[4],\"fontFamily\":[1,\"font-family\"],\"baseUrl\":[1,\"base-url\"],\"galleryId\":[2,\"gallery-id\"],\"galleryEmbedId\":[2,\"gallery-embed-id\"],\"photoRequestId\":[2,\"photo-request-id\"],\"productHandle\":[1,\"product-handle\"],\"uploadTitle\":[1,\"upload-title\"],\"uploadBody\":[1,\"upload-body\"],\"uploadDragDrop\":[1,\"upload-drag-drop\"],\"uploadChoose\":[1,\"upload-choose\"],\"formNamePlaceholder\":[1,\"form-name-placeholder\"],\"formEmailPlaceholder\":[1,\"form-email-placeholder\"],\"formBodyPlaceholder\":[1,\"form-body-placeholder\"],\"formSendLabel\":[1,\"form-send-label\"],\"formUploading\":[1,\"form-uploading\"],\"formAgreeToTerms\":[1,\"form-agree-to-terms\"],\"completeBody\":[1,\"complete-body\"],\"completeCloseLabel\":[1,\"complete-close-label\"],\"activeStep\":[2,\"active-step\"],\"hideBranding\":[4,\"hide-branding\"],\"standalone\":[4],\"appStore\":[16],\"starRating\":[32],\"isFormValid\":[32],\"showFormWarning\":[32],\"thumbnailLinks\":[32],\"toShowLinks\":[32],\"dropedImagesNumber\":[32],\"isAnimating\":[32],\"notificationMessage\":[32],\"isNotificationActive\":[32],\"widgetWidth\":[32],\"uploadTabIndex\":[32],\"openUpload\":[64]}],[0,\"covet-pics-hotspots\",{\"links\":[16],\"backgroundColor\":[1,\"background-color\"],\"textColor\":[1,\"text-color\"],\"showNumbers\":[4,\"show-numbers\"]},[[0,\"linkInactivate\",\"linkInactivateHandler\"],[0,\"linkActivate\",\"linkActivateHandler\"]]],[0,\"covet-pics-popup-review\",{\"rating\":[2],\"caption\":[1],\"username\":[1],\"itemType\":[1,\"item-type\"],\"verified\":[4],\"createdTime\":[1,\"created-time\"],\"reviewCSS\":[32]}],[0,\"covet-pics-popup-shared-links\",{\"item\":[16],\"galleryEmbedId\":[2,\"gallery-embed-id\"],\"showShareLink\":[32],\"copyLinkCopied\":[32]}]]],[\"covet-pics-highlighted-hotspots_2.cjs\",[[0,\"covet-pics-highlighted-page\",{\"thumbnailUrl\":[1,\"thumbnail-url\"],\"thumbnailAlt\":[1,\"thumbnail-alt\"],\"ariaLabel\":[1,\"aria-label\"],\"thumbnailLayout\":[1,\"thumbnail-layout\"],\"videoUrl\":[1,\"video-url\"],\"videoPoster\":[1,\"video-poster\"],\"thumbnailCarouselImages\":[16],\"showHotspots\":[4,\"show-hotspots\"],\"hotspotsLayout\":[1,\"hotspots-layout\"],\"hotspotsBackgoundColor\":[1,\"hotspots-backgound-color\"],\"productsLayout\":[1,\"products-layout\"],\"productLinks\":[16],\"productBaseImgAlt\":[1,\"product-base-img-alt\"],\"layout\":[1],\"reverseClass\":[1,\"reverse-class\"],\"isMobile\":[4,\"is-mobile\"],\"showPrice\":[4,\"show-price\"],\"btnBuyLabel\":[1,\"btn-buy-label\"],\"productsTitle\":[1,\"products-title\"],\"hideProductTitle\":[8,\"hide-product-title\"],\"hideBranding\":[4,\"hide-branding\"],\"pageIndex\":[2,\"page-index\"],\"caption\":[1],\"rating\":[2],\"showReview\":[4,\"show-review\"],\"createdTime\":[1,\"created-time\"],\"userName\":[1,\"user-name\"],\"mainSliderIndex\":[2,\"main-slider-index\"],\"pageId\":[2,\"page-id\"],\"appStore\":[16],\"hideHotspots\":[32],\"activeProductIndex\":[32],\"hoverHotspot\":[32]},[[0,\"changeActiveHotspot\",\"onChangeActiveHotspot\"]]],[0,\"covet-pics-highlighted-hotspots\",{\"links\":[16],\"layout\":[1],\"activeHotspot\":[2,\"active-hotspot\"],\"pageLayout\":[1,\"page-layout\"],\"productsTitle\":[1,\"products-title\"],\"thumbnailUrl\":[1,\"thumbnail-url\"],\"btnBuyLabel\":[1,\"btn-buy-label\"],\"hoverHotspot\":[2,\"hover-hotspot\"],\"isMobile\":[4,\"is-mobile\"],\"productBaseImgAlt\":[1,\"product-base-img-alt\"],\"pageId\":[2,\"page-id\"],\"appStore\":[16]}]]],[\"covet-pics-gallery-item-caption.cjs\",[[0,\"covet-pics-gallery-item-caption\",{\"caption\":[1],\"captionClass\":[1,\"caption-class\"],\"itemStyle\":[1,\"item-style\"],\"layoutType\":[1,\"layout-type\"],\"reviewCSS\":[32]},[[16,\"sliderInit:covetPics\",\"initSize\"],[16,\"sliderUpdate:covetPics\",\"updateSize\"]]]]],[\"covet-pics-star-rating.cjs\",[[1,\"covet-pics-star-rating\",{\"rating\":[2],\"ratingCount\":[2,\"rating-count\"],\"starColor\":[1,\"star-color\"],\"emptyStarColor\":[1,\"empty-star-color\"],\"starBorderColor\":[1,\"star-border-color\"],\"starBorderWidth\":[2,\"star-border-width\"],\"starSize\":[2,\"star-size\"],\"spaceStars\":[2,\"space-stars\"],\"spaceStarsText\":[2,\"space-stars-text\"],\"showLabel\":[4,\"show-label\"],\"label\":[1]}]]],[\"covet-pics-gallery-header_3.cjs\",[[0,\"covet-pics-gallery-header\",{\"headerType\":[1,\"header-type\"],\"rating\":[2],\"showSort\":[4,\"show-sort\"],\"showBreakdown\":[4,\"show-breakdown\"],\"showAverageStarRating\":[4,\"show-average-star-rating\"],\"ratingCount\":[2,\"rating-count\"],\"productTitle\":[1,\"product-title\"],\"breakdown\":[16],\"appStore\":[16],\"showBreakdownDropdown\":[32],\"showSortDropdown\":[32],\"isDesktopScreen\":[32]}],[0,\"covet-pics-gallery-item\",{\"animationDuration\":[2,\"animation-duration\"],\"altTag\":[1,\"alt-tag\"],\"highlighted\":[4],\"hoverAnimationStyle\":[1,\"hover-animation-style\"],\"hoverDisabled\":[4,\"hover-disabled\"],\"layout\":[1],\"hoverBackgroundOpacity\":[2,\"hover-background-opacity\"],\"hoverBorderColor\":[1,\"hover-border-color\"],\"hoverColorFrom\":[1,\"hover-color-from\"],\"hoverColorTo\":[1,\"hover-color-to\"],\"hoverPreview\":[4,\"hover-preview\"],\"imageUrl\":[1,\"image-url\"],\"rating\":[2],\"itemWidth\":[2,\"item-width\"],\"userName\":[1,\"user-name\"],\"createdTime\":[1,\"created-time\"],\"caption\":[1],\"itemType\":[1,\"item-type\"],\"imageHighResolutionUrl\":[1,\"image-high-resolution-url\"],\"imageResponsiveSizes\":[1,\"image-responsive-sizes\"],\"itemId\":[1,\"item-id\"],\"itemSource\":[1,\"item-source\"],\"labelCaption\":[1,\"label-caption\"],\"labelCaptionWithLinks\":[1,\"label-caption-with-links\"],\"labelColor\":[1,\"label-color\"],\"labelFontSize\":[2,\"label-font-size\"],\"labelFontStyle\":[1,\"label-font-style\"],\"links\":[16],\"popupDisabled\":[4,\"popup-disabled\"],\"popupRedirectMode\":[4,\"popup-redirect-mode\"],\"showHoverIcon\":[4,\"show-hover-icon\"],\"url\":[1],\"itemIndex\":[2,\"item-index\"],\"appStore\":[16],\"tabIndex\":[32]},[[10,\"updateUploadWidgetCover\",\"updateUploadWidgetCoverHandler\"]]],[0,\"covet-pics-gallery-item-detail\",{\"altTag\":[1,\"alt-tag\"],\"highlighted\":[4],\"verified\":[4],\"imageUrl\":[1,\"image-url\"],\"imageHighResolutionUrl\":[1,\"image-high-resolution-url\"],\"imageResponsiveSizes\":[1,\"image-responsive-sizes\"],\"itemId\":[1,\"item-id\"],\"itemSource\":[1,\"item-source\"],\"labelCaption\":[1,\"label-caption\"],\"layout\":[1],\"itemStyle\":[1,\"item-style\"],\"itemType\":[1,\"item-type\"],\"itemWidth\":[2,\"item-width\"],\"links\":[16],\"popupDisabled\":[4,\"popup-disabled\"],\"popupRedirectMode\":[4,\"popup-redirect-mode\"],\"url\":[1],\"backgroundColor\":[1,\"background-color\"],\"primaryColor\":[1,\"primary-color\"],\"starColor\":[1,\"star-color\"],\"rating\":[2],\"userName\":[1,\"user-name\"],\"caption\":[1],\"createdTime\":[1,\"created-time\"],\"itemIndex\":[2,\"item-index\"],\"appStore\":[16],\"tabIndex\":[32],\"captionCSS\":[32],\"reviewClass\":[32],\"starOnlyClass\":[32],\"highlightedClass\":[32]},[[10,\"updateUploadWidgetCover\",\"updateUploadWidgetCoverHandler\"]]]]],[\"covet-pics-gallery-grid_3.cjs\",[[0,\"covet-pics-gallery-grid\",{\"desktopPhotosPerRow\":[2,\"desktop-photos-per-row\"],\"desktopItemPadding\":[2,\"desktop-item-padding\"],\"mobilePhotosPerRow\":[2,\"mobile-photos-per-row\"],\"mobileItemPadding\":[2,\"mobile-item-padding\"],\"imagesToShow\":[2,\"images-to-show\"],\"layout\":[1],\"highlightEnabled\":[4,\"highlight-enabled\"],\"highlightEvery\":[2,\"highlight-every\"],\"highlightStartsFrom\":[2,\"highlight-starts-from\"],\"items\":[16],\"breakdown\":[16],\"productTitle\":[1,\"product-title\"],\"rating\":[2],\"ratingCount\":[2,\"rating-count\"],\"loadMoreBorder\":[2,\"load-more-border\"],\"loadMoreColor\":[1,\"load-more-color\"],\"loadMoreFontSize\":[2,\"load-more-font-size\"],\"loadMoreFontStyle\":[1,\"load-more-font-style\"],\"loadMoreLabel\":[1,\"load-more-label\"],\"loadMorePadding\":[2,\"load-more-padding\"],\"loadMoreStyle\":[1,\"load-more-style\"],\"loadMoreMode\":[1,\"load-more-mode\"],\"showHeader\":[4,\"show-header\"],\"headerType\":[1,\"header-type\"],\"headerShowAverageRating\":[4,\"header-show-average-rating\"],\"headerShowBreakdown\":[4,\"header-show-breakdown\"],\"headerShowSort\":[4,\"header-show-sort\"],\"filtersEnabled\":[4,\"filters-enabled\"],\"filtersMultiselect\":[4,\"filters-multiselect\"],\"filters\":[16],\"filtersResetLabel\":[1,\"filters-reset-label\"],\"filtersPadding\":[2,\"filters-padding\"],\"filtersColor\":[1,\"filters-color\"],\"filtersFontSize\":[2,\"filters-font-size\"],\"filtersFontWeight\":[1,\"filters-font-weight\"],\"itemStyle\":[1,\"item-style\"],\"loader\":[16],\"appStore\":[16],\"sharedItemId\":[1,\"shared-item-id\"],\"isLoading\":[32],\"showSort\":[32],\"showBreakdown\":[32],\"isGridDisabled\":[32],\"isDesktopScreen\":[32]},[[0,\"imageLoaded\",\"imagesLoadedHandler\"],[0,\"itemClicked\",\"itemClickedHandler\"],[8,\"previousPopupEvent\",\"prevPopupHandler\"],[8,\"nextPopupEvent\",\"nextPopupHandler\"],[8,\"elementResize\",\"elementResizeHandler\"]]],[0,\"covet-pics-gallery-slider\",{\"desktopPhotosPerRow\":[2,\"desktop-photos-per-row\"],\"desktopItemPadding\":[2,\"desktop-item-padding\"],\"mobilePhotosPerRow\":[2,\"mobile-photos-per-row\"],\"mobileItemPadding\":[2,\"mobile-item-padding\"],\"items\":[16],\"sharedItemId\":[1,\"shared-item-id\"],\"itemStyle\":[1,\"item-style\"],\"autoPlay\":[2,\"auto-play\"],\"autoLoadMore\":[4,\"auto-load-more\"],\"loader\":[16],\"appStore\":[16],\"isDesktopScreen\":[32]},[[0,\"imageLoaded\",\"imagesLoadedHandler\"],[0,\"itemClicked\",\"itemClickedHandler\"],[8,\"previousPopupEvent\",\"prevPopupHandler\"],[8,\"nextPopupEvent\",\"nextPopupHandler\"],[8,\"elementResize\",\"elementResizeHandler\"]]],[0,\"covet-pics-highlighted\",{\"layout\":[1],\"numberOfPages\":[2,\"number-of-pages\"],\"padding\":[2],\"showPrice\":[4,\"show-price\"],\"showReview\":[4,\"show-review\"],\"primaryColor\":[1,\"primary-color\"],\"secondaryColor\":[1,\"secondary-color\"],\"backgroundColor\":[1,\"background-color\"],\"hotspotsBackgoundColor\":[1,\"hotspots-backgound-color\"],\"items\":[16],\"productsLayout\":[1,\"products-layout\"],\"showHotspots\":[4,\"show-hotspots\"],\"hotspotsLayout\":[1,\"hotspots-layout\"],\"productsTitle\":[1,\"products-title\"],\"hideProductTitle\":[4,\"hide-product-title\"],\"hideBranding\":[4,\"hide-branding\"],\"btnBuyLabel\":[1,\"btn-buy-label\"],\"appStore\":[16],\"productLinks\":[32],\"mainSliderIndex\":[32],\"mainSliderAnimatingSlides\":[32],\"windowHeight\":[32],\"isDesktopScreen\":[32]}]]],[\"covet-pics-widget.cjs\",[[1,\"covet-pics-widget\",{\"shop\":[1],\"galleryEmbedId\":[2,\"gallery-embed-id\"],\"environment\":[1],\"customSettings\":[1,\"custom-settings\"],\"hideElements\":[1,\"hide-elements\"],\"previewMode\":[4,\"preview-mode\"],\"isLoading\":[32],\"minNumberOfPhotos\":[32],\"items\":[32],\"appStore\":[32],\"updateUploadWidgetCoverPreview\":[64],\"updatePreviewSettings\":[64]},[[0,\"sortUpdated\",\"sortUpdatedHandler\"],[0,\"filtersUpdated\",\"filtersUpdatedHandler\"],[0,\"nextPage\",\"nextPageHandler\"]]]]]]"), options);
23
23
  });
24
24
  };
25
25
 
@@ -12,8 +12,6 @@ export class CovetPicsStarRating {
12
12
  this.starBorderColor = "#000000";
13
13
  this.starBorderWidth = 0;
14
14
  this.starSize = 20;
15
- this.spaceAbove = 0;
16
- this.spaceBelow = 0;
17
15
  this.spaceStars = 0;
18
16
  this.spaceStarsText = 0;
19
17
  this.showLabel = true;
@@ -47,13 +45,13 @@ export class CovetPicsStarRating {
47
45
  }
48
46
  return parseFloat(number);
49
47
  }
50
- renderLabel() {
48
+ convertedLabel() {
51
49
  let lebelUpdated = this.label.replaceAll("%RATING%", `${this.roundRating()}`);
52
50
  lebelUpdated = lebelUpdated.replaceAll("%COUNT%", `${this.ratingCount}`);
53
- return (h("span", { class: "star-rating-count" }, lebelUpdated));
51
+ return lebelUpdated;
54
52
  }
55
53
  render() {
56
- return (h(Host, { style: this.setCSSVariables(), role: "radiogroup", "aria-label": "star rating" }, this.renderStarRating(), this.showLabel && this.renderLabel()));
54
+ return (h(Host, { style: this.setCSSVariables(), role: "radiogroup", "aria-label": "star rating" }, this.renderStarRating(), this.showLabel && h("span", { class: "star-rating-count" }, this.convertedLabel())));
57
55
  }
58
56
  static get is() { return "covet-pics-star-rating"; }
59
57
  static get encapsulation() { return "shadow"; }
@@ -194,42 +192,6 @@ export class CovetPicsStarRating {
194
192
  "reflect": false,
195
193
  "defaultValue": "20"
196
194
  },
197
- "spaceAbove": {
198
- "type": "number",
199
- "mutable": false,
200
- "complexType": {
201
- "original": "number",
202
- "resolved": "number",
203
- "references": {}
204
- },
205
- "required": false,
206
- "optional": false,
207
- "docs": {
208
- "tags": [],
209
- "text": "Space (margin) above in px"
210
- },
211
- "attribute": "space-above",
212
- "reflect": false,
213
- "defaultValue": "0"
214
- },
215
- "spaceBelow": {
216
- "type": "number",
217
- "mutable": false,
218
- "complexType": {
219
- "original": "number",
220
- "resolved": "number",
221
- "references": {}
222
- },
223
- "required": false,
224
- "optional": false,
225
- "docs": {
226
- "tags": [],
227
- "text": "Space (margin) below in px"
228
- },
229
- "attribute": "space-below",
230
- "reflect": false,
231
- "defaultValue": "0"
232
- },
233
195
  "spaceStars": {
234
196
  "type": "number",
235
197
  "mutable": false,
@@ -1 +1 @@
1
- {"version":3,"file":"covet-pics-star-rating.js","sourceRoot":"","sources":["../../../src/components/covet-pics-star-rating/covet-pics-star-rating.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAQhD,MAAM,OAAO,mBAAmB;;;uBAWF,CAAC;qBAKD,SAAS;0BAKJ,SAAS;2BAKR,SAAS;2BAKT,CAAC;oBAKR,EAAE;sBAKA,CAAC;sBAKD,CAAC;sBAKD,CAAC;0BAKG,CAAC;qBAKL,IAAI;iBAQT,YAAY;;EAE5B,gBAAgB;IACtB,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,MAAM,QAAQ,GAAG,I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Y,gBAAY,aAAa;MAC5E,IAAI,CAAC,gBAAgB,EAAE;MACvB,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,WAAW,EAAE,CAChC,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Element, Prop, h, Host } from \"@stencil/core\";\r\nimport { getRandomId } from \"../../utils/utils\";\r\n\r\n@Component({\r\n tag: \"covet-pics-star-rating\",\r\n styleUrl: \"covet-pics-star-rating.scss\",\r\n shadow: true\r\n})\r\n\r\nexport class CovetPicsStarRating {\r\n @Element() el: HTMLCovetPicsStarRatingElement;\r\n\r\n /**\r\n * Rating (float from 1-5)\r\n */\r\n @Prop() rating: number;\r\n\r\n /**\r\n * Rating count\r\n */\r\n @Prop() ratingCount: number=0;\r\n\r\n /**\r\n * Color of star\r\n */\r\n @Prop() starColor: string = \"#fec500\";\r\n\r\n /**\r\n * Color of empty star\r\n */\r\n @Prop() emptyStarColor: string = \"#e5e5e5\";\r\n\r\n /**\r\n * Color of star border\r\n */\r\n @Prop() starBorderColor: string = \"#000000\";\r\n\r\n /**\r\n * Width of star border\r\n */\r\n @Prop() starBorderWidth: number = 0;\r\n\r\n /**\r\n * Width/height of star in px.\r\n */\r\n @Prop() starSize: number = 20;\r\n\r\n /**\r\n * Space (margin) above in px\r\n */\r\n @Prop() spaceAbove: number = 0;\r\n\r\n /**\r\n * Space (margin) below in px\r\n */\r\n @Prop() spaceBelow: number = 0;\r\n \r\n /**\r\n * Space (margin) above in px\r\n */\r\n @Prop() spaceStars: number = 0;\r\n\r\n /**\r\n * Space (margin) below in px\r\n */\r\n @Prop() spaceStarsText: number = 0;\r\n\r\n /**\r\n * show Label or not\r\n */\r\n @Prop() showLabel: boolean = true;\r\n\r\n \r\n\r\n /**\r\n * Label next to star rating\r\n * available dynamic variables: %RATING% %COUNT%\r\n */\r\n @Prop() label: string = \"(%RATING%)\";\r\n\r\n private renderStarRating() {\r\n const starsArray = [1, 2, 3, 4, 5];\r\n const halfStar = Math.round(this.roundRating());\r\n const maskId = getRandomId();\r\n return (\r\n starsArray.map((el,index) =>\r\n <span class={`icon-star ${el <= this.roundRating() ? \"active\" : \"\"}`} role=\"radio\" aria-checked={`${el <= this.rating}`} aria-label={`star ${el}/${starsArray.length}`}>\r\n <svg class=\"svg-star\" viewBox=\"0 0 110 110\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" role=\"presentation\">\r\n <path transform=\"translate(13,13)\" d=\"M42.756 1.23194C43.4392 -0.410645 45.7661 -0.410647 46.4493 1.23194L57.3587 27.4613C57.6467 28.1537 58.2979 28.6269 59.0455 28.6868L87.3623 30.957C89.1356 31.0991 89.8546 33.3121 88.5035 34.4695L66.9292 52.9502C66.3596 53.4381 66.1108 54.2037 66.2848 54.9332L72.8762 82.5656C73.289 84.296 71.4065 85.6638 69.8883 84.7364L45.6451 69.9288C45.0051 69.5379 44.2002 69.5379 43.5601 69.9288L19.317 84.7364C17.7988 85.6638 15.9163 84.296 16.3291 82.5656L22.9204 54.9332C23.0944 54.2037 22.8457 53.4381 22.2761 52.9502L0.701718 34.4695C-0.649356 33.3121 0.069695 31.0991 1.843 30.957L30.1598 28.6868C30.9074 28.6269 31.5586 28.1537 31.8466 27.4613L42.756 1.23194Z\"/>\r\n <mask id={`mask-${index}-${maskId}`} maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"45\" height=\"85\">\r\n <rect width=\"45\" height=\"85\" fill=\"white\"/>\r\n </mask>\r\n <g class={`${index < halfStar ? \"half-star\" : \"\"}`} transform=\"translate(13,13)\" mask={`url(#mask-${index}-${maskId})`}>\r\n <path d=\"M42.756 1.23194C43.4392 -0.410645 45.7661 -0.410647 46.4493 1.23194L57.3587 27.4613C57.6467 28.1537 58.2979 28.6269 59.0455 28.6868L87.3623 30.957C89.1356 31.0991 89.8546 33.3121 88.5035 34.4695L66.9292 52.9502C66.3596 53.4381 66.1108 54.2037 66.2848 54.9332L72.8762 82.5656C73.289 84.296 71.4065 85.6638 69.8883 84.7364L45.6451 69.9288C45.0051 69.5379 44.2002 69.5379 43.5601 69.9288L19.317 84.7364C17.7988 85.6638 15.9163 84.296 16.3291 82.5656L22.9204 54.9332C23.0944 54.2037 22.8457 53.4381 22.2761 52.9502L0.701718 34.4695C-0.649356 33.3121 0.069695 31.0991 1.843 30.957L30.1598 28.6868C30.9074 28.6269 31.5586 28.1537 31.8466 27.4613L42.756 1.23194Z\"/>\r\n </g>\r\n </svg>\r\n </span>\r\n )\r\n );\r\n }\r\n\r\n private setCSSVariables() {\r\n return {\r\n \"--covet-pics-star-size\": `${this.starSize}px`,\r\n \"--covet-pics-star-space-stars\": `${this.spaceStars}px`,\r\n \"--covet-pics-star-space-stars-text\": `${this.spaceStarsText}px`,\r\n \"--covet-pics-star-color\": `${this.starColor}`,\r\n \"--covet-pics-empty-star-color\": `${this.emptyStarColor}`,\r\n \"--covet-pics-star-border-color\": `${this.starBorderColor}`,\r\n \"--covet-pics-star-border-width\": `${this.starBorderWidth}`\r\n\r\n };\r\n }\r\n private roundRating() {\r\n if (isNaN(this.rating)) return null; \r\n if (this.rating > 5) return 5;\r\n \r\n let number = `${this.rating}`;\r\n if (number.indexOf(\".\") !== -1) { \r\n number = number.slice(0,(number.indexOf(\".\") + 3));\r\n } \r\n return parseFloat(number);\r\n }\r\n\r\n private renderLabel() {\r\n let lebelUpdated = this.label.replaceAll(\"%RATING%\", `${this.roundRating()}`);\r\n lebelUpdated = lebelUpdated.replaceAll(\"%COUNT%\", `${this.ratingCount}`);\r\n return (\r\n <span class=\"star-rating-count\">{lebelUpdated}</span>\r\n );\r\n }\r\n\r\n render() {\r\n return (\r\n <Host style={this.setCSSVariables()} role=\"radiogroup\" aria-label=\"star rating\">\r\n {this.renderStarRating()}\r\n {this.showLabel && this.renderLabel()}\r\n </Host>\r\n );\r\n }\r\n\r\n}\r\n"]}
1
+ {"version":3,"file":"covet-pics-star-rating.js","sourceRoot":"","sources":["../../../src/components/covet-pics-star-rating/covet-pics-star-rating.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAQhD,MAAM,OAAO,mBAAmB;;;uBAWF,CAAC;qBAKD,SAAS;0BAKJ,SAAS;2BAKR,SAAS;2BAKT,CAAC;oBAKR,EAAE;sBAKA,CAAC;0BAKG,CAAC;qBAKL,IAAI;iBAMT,YAAY;;EAE5B,gBAAgB;IACtB,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAChD,MAAM,MAAM,GAAG,WAAW,EAAE,CAAC;IAC7B,OAAO,CACL,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAC,KAAK,EAAE,EAAE,CAC1B,YAAM,KAAK,EAAE,aAAa,EAAE,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAC,OAAO,kBAAe,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,gBAAc,QAAQ,EAAE,IAAI,UAAU,CAAC,MAAM,EAAE;MACpK,WAAK,KAAK,EAAC,UAAU,EAAC,OAA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({\r\n tag: \"covet-pics-star-rating\",\r\n styleUrl: \"covet-pics-star-rating.scss\",\r\n shadow: true\r\n})\r\n\r\nexport class CovetPicsStarRating {\r\n @Element() el: HTMLCovetPicsStarRatingElement;\r\n\r\n /**\r\n * Rating (float from 1-5)\r\n */\r\n @Prop() rating: number;\r\n\r\n /**\r\n * Rating count\r\n */\r\n @Prop() ratingCount: number=0;\r\n\r\n /**\r\n * Color of star\r\n */\r\n @Prop() starColor: string = \"#fec500\";\r\n\r\n /**\r\n * Color of empty star\r\n */\r\n @Prop() emptyStarColor: string = \"#e5e5e5\";\r\n\r\n /**\r\n * Color of star border\r\n */\r\n @Prop() starBorderColor: string = \"#000000\";\r\n\r\n /**\r\n * Width of star border\r\n */\r\n @Prop() starBorderWidth: number = 0;\r\n\r\n /**\r\n * Width/height of star in px.\r\n */\r\n @Prop() starSize: number = 20;\r\n \r\n /**\r\n * Space (margin) above in px\r\n */\r\n @Prop() spaceStars: number = 0;\r\n\r\n /**\r\n * Space (margin) below in px\r\n */\r\n @Prop() spaceStarsText: number = 0;\r\n\r\n /**\r\n * show Label or not\r\n */\r\n @Prop() showLabel: boolean = true;\r\n\r\n /**\r\n * Label next to star rating\r\n * available dynamic variables: %RATING% %COUNT%\r\n */\r\n @Prop() label: string = \"(%RATING%)\";\r\n\r\n private renderStarRating() {\r\n const starsArray = [1, 2, 3, 4, 5];\r\n const halfStar = Math.round(this.roundRating());\r\n const maskId = getRandomId();\r\n return (\r\n starsArray.map((el,index) =>\r\n <span class={`icon-star ${el <= this.roundRating() ? \"active\" : \"\"}`} role=\"radio\" aria-checked={`${el <= this.rating}`} aria-label={`star ${el}/${starsArray.length}`}>\r\n <svg class=\"svg-star\" viewBox=\"0 0 110 110\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" role=\"presentation\">\r\n <path transform=\"translate(13,13)\" d=\"M42.756 1.23194C43.4392 -0.410645 45.7661 -0.410647 46.4493 1.23194L57.3587 27.4613C57.6467 28.1537 58.2979 28.6269 59.0455 28.6868L87.3623 30.957C89.1356 31.0991 89.8546 33.3121 88.5035 34.4695L66.9292 52.9502C66.3596 53.4381 66.1108 54.2037 66.2848 54.9332L72.8762 82.5656C73.289 84.296 71.4065 85.6638 69.8883 84.7364L45.6451 69.9288C45.0051 69.5379 44.2002 69.5379 43.5601 69.9288L19.317 84.7364C17.7988 85.6638 15.9163 84.296 16.3291 82.5656L22.9204 54.9332C23.0944 54.2037 22.8457 53.4381 22.2761 52.9502L0.701718 34.4695C-0.649356 33.3121 0.069695 31.0991 1.843 30.957L30.1598 28.6868C30.9074 28.6269 31.5586 28.1537 31.8466 27.4613L42.756 1.23194Z\"/>\r\n <mask id={`mask-${index}-${maskId}`} maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"45\" height=\"85\">\r\n <rect width=\"45\" height=\"85\" fill=\"white\"/>\r\n </mask>\r\n <g class={`${index < halfStar ? \"half-star\" : \"\"}`} transform=\"translate(13,13)\" mask={`url(#mask-${index}-${maskId})`}>\r\n <path d=\"M42.756 1.23194C43.4392 -0.410645 45.7661 -0.410647 46.4493 1.23194L57.3587 27.4613C57.6467 28.1537 58.2979 28.6269 59.0455 28.6868L87.3623 30.957C89.1356 31.0991 89.8546 33.3121 88.5035 34.4695L66.9292 52.9502C66.3596 53.4381 66.1108 54.2037 66.2848 54.9332L72.8762 82.5656C73.289 84.296 71.4065 85.6638 69.8883 84.7364L45.6451 69.9288C45.0051 69.5379 44.2002 69.5379 43.5601 69.9288L19.317 84.7364C17.7988 85.6638 15.9163 84.296 16.3291 82.5656L22.9204 54.9332C23.0944 54.2037 22.8457 53.4381 22.2761 52.9502L0.701718 34.4695C-0.649356 33.3121 0.069695 31.0991 1.843 30.957L30.1598 28.6868C30.9074 28.6269 31.5586 28.1537 31.8466 27.4613L42.756 1.23194Z\"/>\r\n </g>\r\n </svg>\r\n </span>\r\n )\r\n );\r\n }\r\n\r\n private setCSSVariables() {\r\n return {\r\n \"--covet-pics-star-size\": `${this.starSize}px`,\r\n \"--covet-pics-star-space-stars\": `${this.spaceStars}px`,\r\n \"--covet-pics-star-space-stars-text\": `${this.spaceStarsText}px`,\r\n \"--covet-pics-star-color\": `${this.starColor}`,\r\n \"--covet-pics-empty-star-color\": `${this.emptyStarColor}`,\r\n \"--covet-pics-star-border-color\": `${this.starBorderColor}`,\r\n \"--covet-pics-star-border-width\": `${this.starBorderWidth}`\r\n };\r\n }\r\n private roundRating() {\r\n if (isNaN(this.rating)) return null; \r\n if (this.rating > 5) return 5;\r\n \r\n let number = `${this.rating}`;\r\n if (number.indexOf(\".\") !== -1) { \r\n number = number.slice(0,(number.indexOf(\".\") + 3));\r\n } \r\n return parseFloat(number);\r\n }\r\n\r\n private convertedLabel() {\r\n let lebelUpdated = this.label.replaceAll(\"%RATING%\", `${this.roundRating()}`);\r\n lebelUpdated = lebelUpdated.replaceAll(\"%COUNT%\", `${this.ratingCount}`);\r\n return lebelUpdated;\r\n }\r\n\r\n render() {\r\n return (\r\n <Host style={this.setCSSVariables()} role=\"radiogroup\" aria-label=\"star rating\">\r\n {this.renderStarRating()}\r\n {this.showLabel && <span class=\"star-rating-count\">{this.convertedLabel()}</span>}\r\n </Host>\r\n );\r\n }\r\n\r\n}\r\n"]}
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * Copyright (c) 2020 by Space Squirrel Ltd.
3
3
  */
4
- import{p as e,b as o}from"./p-9f151144.js";export{s as setNonce}from"./p-9f151144.js";import{g as t}from"./p-ae8aaed8.js";const i=()=>{const o=import.meta.url;const t={};if(o!==""){t.resourcesUrl=new URL(".",o).href}return e(t)};i().then((e=>{t();return o(JSON.parse('[["p-4c437f69",[[1,"covet-pics-direct-buy",{"product":[8],"moneyFormat":[1,"money-format"],"appStore":[16],"selectedOptions":[32],"settings":[32]}],[1,"covet-pics-popup",{"appStore":[16],"item":[32],"product":[32],"directBuyIsOpen":[32],"popupTabIndex":[32],"settings":[32],"isPreviousEnable":[32],"openPopup":[64],"closePopup":[64]},[[4,"addToCart:covetPics","addToCartHandler"],[16,"productLinkClicked","productLinkClickedHandler"]]],[0,"covet-pics-popup-links",{"links":[16],"greyBorderClass":[1,"grey-border-class"],"itemCreatedTime":[1,"item-created-time"],"appStore":[16],"settings":[32]}],[0,"covet-pics-popup-slider",{"item":[16],"getSwiperState":[64]}],[1,"covet-pics-upload",{"animated":[4],"backgroundColor":[1,"background-color"],"backgroundOpacity":[2,"background-opacity"],"responsive":[4],"fontFamily":[1,"font-family"],"baseUrl":[1,"base-url"],"galleryId":[2,"gallery-id"],"galleryEmbedId":[2,"gallery-embed-id"],"photoRequestId":[2,"photo-request-id"],"productHandle":[1,"product-handle"],"uploadTitle":[1,"upload-title"],"uploadBody":[1,"upload-body"],"uploadDragDrop":[1,"upload-drag-drop"],"uploadChoose":[1,"upload-choose"],"formNamePlaceholder":[1,"form-name-placeholder"],"formEmailPlaceholder":[1,"form-email-placeholder"],"formBodyPlaceholder":[1,"form-body-placeholder"],"formSendLabel":[1,"form-send-label"],"formUploading":[1,"form-uploading"],"formAgreeToTerms":[1,"form-agree-to-terms"],"completeBody":[1,"complete-body"],"completeCloseLabel":[1,"complete-close-label"],"activeStep":[2,"active-step"],"hideBranding":[4,"hide-branding"],"standalone":[4],"appStore":[16],"starRating":[32],"isFormValid":[32],"showFormWarning":[32],"thumbnailLinks":[32],"toShowLinks":[32],"dropedImagesNumber":[32],"isAnimating":[32],"notificationMessage":[32],"isNotificationActive":[32],"widgetWidth":[32],"uploadTabIndex":[32],"openUpload":[64]}],[0,"covet-pics-hotspots",{"links":[16],"backgroundColor":[1,"background-color"],"textColor":[1,"text-color"],"showNumbers":[4,"show-numbers"]},[[0,"linkInactivate","linkInactivateHandler"],[0,"linkActivate","linkActivateHandler"]]],[0,"covet-pics-popup-review",{"rating":[2],"caption":[1],"username":[1],"itemType":[1,"item-type"],"verified":[4],"createdTime":[1,"created-time"],"reviewCSS":[32]}],[0,"covet-pics-popup-shared-links",{"item":[16],"galleryEmbedId":[2,"gallery-embed-id"],"showShareLink":[32],"copyLinkCopied":[32]}]]],["p-cec44def",[[0,"covet-pics-highlighted-page",{"thumbnailUrl":[1,"thumbnail-url"],"thumbnailAlt":[1,"thumbnail-alt"],"ariaLabel":[1,"aria-label"],"thumbnailLayout":[1,"thumbnail-layout"],"videoUrl":[1,"video-url"],"videoPoster":[1,"video-poster"],"thumbnailCarouselImages":[16],"showHotspots":[4,"show-hotspots"],"hotspotsLayout":[1,"hotspots-layout"],"hotspotsBackgoundColor":[1,"hotspots-backgound-color"],"productsLayout":[1,"products-layout"],"productLinks":[16],"productBaseImgAlt":[1,"product-base-img-alt"],"layout":[1],"reverseClass":[1,"reverse-class"],"isMobile":[4,"is-mobile"],"showPrice":[4,"show-price"],"btnBuyLabel":[1,"btn-buy-label"],"productsTitle":[1,"products-title"],"hideProductTitle":[8,"hide-product-title"],"hideBranding":[4,"hide-branding"],"pageIndex":[2,"page-index"],"caption":[1],"rating":[2],"showReview":[4,"show-review"],"createdTime":[1,"created-time"],"userName":[1,"user-name"],"mainSliderIndex":[2,"main-slider-index"],"pageId":[2,"page-id"],"appStore":[16],"hideHotspots":[32],"activeProductIndex":[32],"hoverHotspot":[32]},[[0,"changeActiveHotspot","onChangeActiveHotspot"]]],[0,"covet-pics-highlighted-hotspots",{"links":[16],"layout":[1],"activeHotspot":[2,"active-hotspot"],"pageLayout":[1,"page-layout"],"productsTitle":[1,"products-title"],"thumbnailUrl":[1,"thumbnail-url"],"btnBuyLabel":[1,"btn-buy-label"],"hoverHotspot":[2,"hover-hotspot"],"isMobile":[4,"is-mobile"],"productBaseImgAlt":[1,"product-base-img-alt"],"pageId":[2,"page-id"],"appStore":[16]}]]],["p-c0d7ce89",[[0,"covet-pics-gallery-item-caption",{"caption":[1],"captionClass":[1,"caption-class"],"itemStyle":[1,"item-style"],"layoutType":[1,"layout-type"],"reviewCSS":[32]},[[16,"sliderInit:covetPics","initSize"],[16,"sliderUpdate:covetPics","updateSize"]]]]],["p-49089f53",[[1,"covet-pics-star-rating",{"rating":[2],"ratingCount":[2,"rating-count"],"starColor":[1,"star-color"],"emptyStarColor":[1,"empty-star-color"],"starBorderColor":[1,"star-border-color"],"starBorderWidth":[2,"star-border-width"],"starSize":[2,"star-size"],"spaceAbove":[2,"space-above"],"spaceBelow":[2,"space-below"],"spaceStars":[2,"space-stars"],"spaceStarsText":[2,"space-stars-text"],"showLabel":[4,"show-label"],"label":[1]}]]],["p-6de6720e",[[0,"covet-pics-gallery-header",{"headerType":[1,"header-type"],"rating":[2],"showSort":[4,"show-sort"],"showBreakdown":[4,"show-breakdown"],"showAverageStarRating":[4,"show-average-star-rating"],"ratingCount":[2,"rating-count"],"productTitle":[1,"product-title"],"breakdown":[16],"appStore":[16],"showBreakdownDropdown":[32],"showSortDropdown":[32],"isDesktopScreen":[32]}],[0,"covet-pics-gallery-item",{"animationDuration":[2,"animation-duration"],"altTag":[1,"alt-tag"],"highlighted":[4],"hoverAnimationStyle":[1,"hover-animation-style"],"hoverDisabled":[4,"hover-disabled"],"layout":[1],"hoverBackgroundOpacity":[2,"hover-background-opacity"],"hoverBorderColor":[1,"hover-border-color"],"hoverColorFrom":[1,"hover-color-from"],"hoverColorTo":[1,"hover-color-to"],"hoverPreview":[4,"hover-preview"],"imageUrl":[1,"image-url"],"rating":[2],"itemWidth":[2,"item-width"],"userName":[1,"user-name"],"createdTime":[1,"created-time"],"caption":[1],"itemType":[1,"item-type"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"labelCaption":[1,"label-caption"],"labelCaptionWithLinks":[1,"label-caption-with-links"],"labelColor":[1,"label-color"],"labelFontSize":[2,"label-font-size"],"labelFontStyle":[1,"label-font-style"],"links":[16],"popupDisabled":[4,"popup-disabled"],"popupRedirectMode":[4,"popup-redirect-mode"],"showHoverIcon":[4,"show-hover-icon"],"url":[1],"itemIndex":[2,"item-index"],"appStore":[16],"tabIndex":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"]]],[0,"covet-pics-gallery-item-detail",{"altTag":[1,"alt-tag"],"highlighted":[4],"verified":[4],"imageUrl":[1,"image-url"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"labelCaption":[1,"label-caption"],"layout":[1],"itemStyle":[1,"item-style"],"itemType":[1,"item-type"],"itemWidth":[2,"item-width"],"links":[16],"popupDisabled":[4,"popup-disabled"],"popupRedirectMode":[4,"popup-redirect-mode"],"url":[1],"backgroundColor":[1,"background-color"],"primaryColor":[1,"primary-color"],"starColor":[1,"star-color"],"rating":[2],"userName":[1,"user-name"],"caption":[1],"createdTime":[1,"created-time"],"itemIndex":[2,"item-index"],"appStore":[16],"tabIndex":[32],"captionCSS":[32],"reviewClass":[32],"starOnlyClass":[32],"highlightedClass":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"]]]]],["p-60fc4470",[[0,"covet-pics-gallery-grid",{"desktopPhotosPerRow":[2,"desktop-photos-per-row"],"desktopItemPadding":[2,"desktop-item-padding"],"mobilePhotosPerRow":[2,"mobile-photos-per-row"],"mobileItemPadding":[2,"mobile-item-padding"],"imagesToShow":[2,"images-to-show"],"layout":[1],"highlightEnabled":[4,"highlight-enabled"],"highlightEvery":[2,"highlight-every"],"highlightStartsFrom":[2,"highlight-starts-from"],"items":[16],"breakdown":[16],"productTitle":[1,"product-title"],"rating":[2],"ratingCount":[2,"rating-count"],"loadMoreBorder":[2,"load-more-border"],"loadMoreColor":[1,"load-more-color"],"loadMoreFontSize":[2,"load-more-font-size"],"loadMoreFontStyle":[1,"load-more-font-style"],"loadMoreLabel":[1,"load-more-label"],"loadMorePadding":[2,"load-more-padding"],"loadMoreStyle":[1,"load-more-style"],"loadMoreMode":[1,"load-more-mode"],"showHeader":[4,"show-header"],"headerType":[1,"header-type"],"headerShowAverageRating":[4,"header-show-average-rating"],"headerShowBreakdown":[4,"header-show-breakdown"],"headerShowSort":[4,"header-show-sort"],"filtersEnabled":[4,"filters-enabled"],"filtersMultiselect":[4,"filters-multiselect"],"filters":[16],"filtersResetLabel":[1,"filters-reset-label"],"filtersPadding":[2,"filters-padding"],"filtersColor":[1,"filters-color"],"filtersFontSize":[2,"filters-font-size"],"filtersFontWeight":[1,"filters-font-weight"],"itemStyle":[1,"item-style"],"loader":[16],"appStore":[16],"sharedItemId":[1,"shared-item-id"],"isLoading":[32],"showSort":[32],"showBreakdown":[32],"isGridDisabled":[32],"isDesktopScreen":[32]},[[0,"imageLoaded","imagesLoadedHandler"],[0,"itemClicked","itemClickedHandler"],[8,"previousPopupEvent","prevPopupHandler"],[8,"nextPopupEvent","nextPopupHandler"],[8,"elementResize","elementResizeHandler"]]],[0,"covet-pics-gallery-slider",{"desktopPhotosPerRow":[2,"desktop-photos-per-row"],"desktopItemPadding":[2,"desktop-item-padding"],"mobilePhotosPerRow":[2,"mobile-photos-per-row"],"mobileItemPadding":[2,"mobile-item-padding"],"items":[16],"sharedItemId":[1,"shared-item-id"],"itemStyle":[1,"item-style"],"autoPlay":[2,"auto-play"],"autoLoadMore":[4,"auto-load-more"],"loader":[16],"appStore":[16],"isDesktopScreen":[32]},[[0,"imageLoaded","imagesLoadedHandler"],[0,"itemClicked","itemClickedHandler"],[8,"previousPopupEvent","prevPopupHandler"],[8,"nextPopupEvent","nextPopupHandler"],[8,"elementResize","elementResizeHandler"]]],[0,"covet-pics-highlighted",{"layout":[1],"numberOfPages":[2,"number-of-pages"],"padding":[2],"showPrice":[4,"show-price"],"showReview":[4,"show-review"],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"],"backgroundColor":[1,"background-color"],"hotspotsBackgoundColor":[1,"hotspots-backgound-color"],"items":[16],"productsLayout":[1,"products-layout"],"showHotspots":[4,"show-hotspots"],"hotspotsLayout":[1,"hotspots-layout"],"productsTitle":[1,"products-title"],"hideProductTitle":[4,"hide-product-title"],"hideBranding":[4,"hide-branding"],"btnBuyLabel":[1,"btn-buy-label"],"appStore":[16],"productLinks":[32],"mainSliderIndex":[32],"mainSliderAnimatingSlides":[32],"windowHeight":[32],"isDesktopScreen":[32]}]]],["p-341be27c",[[1,"covet-pics-widget",{"shop":[1],"galleryEmbedId":[2,"gallery-embed-id"],"environment":[1],"customSettings":[1,"custom-settings"],"hideElements":[1,"hide-elements"],"previewMode":[4,"preview-mode"],"isLoading":[32],"minNumberOfPhotos":[32],"items":[32],"appStore":[32],"updateUploadWidgetCoverPreview":[64],"updatePreviewSettings":[64]},[[0,"sortUpdated","sortUpdatedHandler"],[0,"filtersUpdated","filtersUpdatedHandler"],[0,"nextPage","nextPageHandler"]]]]]]'),e)}));
4
+ import{p as e,b as o}from"./p-9f151144.js";export{s as setNonce}from"./p-9f151144.js";import{g as t}from"./p-ae8aaed8.js";const i=()=>{const o=import.meta.url;const t={};if(o!==""){t.resourcesUrl=new URL(".",o).href}return e(t)};i().then((e=>{t();return o(JSON.parse('[["p-4c437f69",[[1,"covet-pics-direct-buy",{"product":[8],"moneyFormat":[1,"money-format"],"appStore":[16],"selectedOptions":[32],"settings":[32]}],[1,"covet-pics-popup",{"appStore":[16],"item":[32],"product":[32],"directBuyIsOpen":[32],"popupTabIndex":[32],"settings":[32],"isPreviousEnable":[32],"openPopup":[64],"closePopup":[64]},[[4,"addToCart:covetPics","addToCartHandler"],[16,"productLinkClicked","productLinkClickedHandler"]]],[0,"covet-pics-popup-links",{"links":[16],"greyBorderClass":[1,"grey-border-class"],"itemCreatedTime":[1,"item-created-time"],"appStore":[16],"settings":[32]}],[0,"covet-pics-popup-slider",{"item":[16],"getSwiperState":[64]}],[1,"covet-pics-upload",{"animated":[4],"backgroundColor":[1,"background-color"],"backgroundOpacity":[2,"background-opacity"],"responsive":[4],"fontFamily":[1,"font-family"],"baseUrl":[1,"base-url"],"galleryId":[2,"gallery-id"],"galleryEmbedId":[2,"gallery-embed-id"],"photoRequestId":[2,"photo-request-id"],"productHandle":[1,"product-handle"],"uploadTitle":[1,"upload-title"],"uploadBody":[1,"upload-body"],"uploadDragDrop":[1,"upload-drag-drop"],"uploadChoose":[1,"upload-choose"],"formNamePlaceholder":[1,"form-name-placeholder"],"formEmailPlaceholder":[1,"form-email-placeholder"],"formBodyPlaceholder":[1,"form-body-placeholder"],"formSendLabel":[1,"form-send-label"],"formUploading":[1,"form-uploading"],"formAgreeToTerms":[1,"form-agree-to-terms"],"completeBody":[1,"complete-body"],"completeCloseLabel":[1,"complete-close-label"],"activeStep":[2,"active-step"],"hideBranding":[4,"hide-branding"],"standalone":[4],"appStore":[16],"starRating":[32],"isFormValid":[32],"showFormWarning":[32],"thumbnailLinks":[32],"toShowLinks":[32],"dropedImagesNumber":[32],"isAnimating":[32],"notificationMessage":[32],"isNotificationActive":[32],"widgetWidth":[32],"uploadTabIndex":[32],"openUpload":[64]}],[0,"covet-pics-hotspots",{"links":[16],"backgroundColor":[1,"background-color"],"textColor":[1,"text-color"],"showNumbers":[4,"show-numbers"]},[[0,"linkInactivate","linkInactivateHandler"],[0,"linkActivate","linkActivateHandler"]]],[0,"covet-pics-popup-review",{"rating":[2],"caption":[1],"username":[1],"itemType":[1,"item-type"],"verified":[4],"createdTime":[1,"created-time"],"reviewCSS":[32]}],[0,"covet-pics-popup-shared-links",{"item":[16],"galleryEmbedId":[2,"gallery-embed-id"],"showShareLink":[32],"copyLinkCopied":[32]}]]],["p-cec44def",[[0,"covet-pics-highlighted-page",{"thumbnailUrl":[1,"thumbnail-url"],"thumbnailAlt":[1,"thumbnail-alt"],"ariaLabel":[1,"aria-label"],"thumbnailLayout":[1,"thumbnail-layout"],"videoUrl":[1,"video-url"],"videoPoster":[1,"video-poster"],"thumbnailCarouselImages":[16],"showHotspots":[4,"show-hotspots"],"hotspotsLayout":[1,"hotspots-layout"],"hotspotsBackgoundColor":[1,"hotspots-backgound-color"],"productsLayout":[1,"products-layout"],"productLinks":[16],"productBaseImgAlt":[1,"product-base-img-alt"],"layout":[1],"reverseClass":[1,"reverse-class"],"isMobile":[4,"is-mobile"],"showPrice":[4,"show-price"],"btnBuyLabel":[1,"btn-buy-label"],"productsTitle":[1,"products-title"],"hideProductTitle":[8,"hide-product-title"],"hideBranding":[4,"hide-branding"],"pageIndex":[2,"page-index"],"caption":[1],"rating":[2],"showReview":[4,"show-review"],"createdTime":[1,"created-time"],"userName":[1,"user-name"],"mainSliderIndex":[2,"main-slider-index"],"pageId":[2,"page-id"],"appStore":[16],"hideHotspots":[32],"activeProductIndex":[32],"hoverHotspot":[32]},[[0,"changeActiveHotspot","onChangeActiveHotspot"]]],[0,"covet-pics-highlighted-hotspots",{"links":[16],"layout":[1],"activeHotspot":[2,"active-hotspot"],"pageLayout":[1,"page-layout"],"productsTitle":[1,"products-title"],"thumbnailUrl":[1,"thumbnail-url"],"btnBuyLabel":[1,"btn-buy-label"],"hoverHotspot":[2,"hover-hotspot"],"isMobile":[4,"is-mobile"],"productBaseImgAlt":[1,"product-base-img-alt"],"pageId":[2,"page-id"],"appStore":[16]}]]],["p-c0d7ce89",[[0,"covet-pics-gallery-item-caption",{"caption":[1],"captionClass":[1,"caption-class"],"itemStyle":[1,"item-style"],"layoutType":[1,"layout-type"],"reviewCSS":[32]},[[16,"sliderInit:covetPics","initSize"],[16,"sliderUpdate:covetPics","updateSize"]]]]],["p-6f4a30ba",[[1,"covet-pics-star-rating",{"rating":[2],"ratingCount":[2,"rating-count"],"starColor":[1,"star-color"],"emptyStarColor":[1,"empty-star-color"],"starBorderColor":[1,"star-border-color"],"starBorderWidth":[2,"star-border-width"],"starSize":[2,"star-size"],"spaceStars":[2,"space-stars"],"spaceStarsText":[2,"space-stars-text"],"showLabel":[4,"show-label"],"label":[1]}]]],["p-6de6720e",[[0,"covet-pics-gallery-header",{"headerType":[1,"header-type"],"rating":[2],"showSort":[4,"show-sort"],"showBreakdown":[4,"show-breakdown"],"showAverageStarRating":[4,"show-average-star-rating"],"ratingCount":[2,"rating-count"],"productTitle":[1,"product-title"],"breakdown":[16],"appStore":[16],"showBreakdownDropdown":[32],"showSortDropdown":[32],"isDesktopScreen":[32]}],[0,"covet-pics-gallery-item",{"animationDuration":[2,"animation-duration"],"altTag":[1,"alt-tag"],"highlighted":[4],"hoverAnimationStyle":[1,"hover-animation-style"],"hoverDisabled":[4,"hover-disabled"],"layout":[1],"hoverBackgroundOpacity":[2,"hover-background-opacity"],"hoverBorderColor":[1,"hover-border-color"],"hoverColorFrom":[1,"hover-color-from"],"hoverColorTo":[1,"hover-color-to"],"hoverPreview":[4,"hover-preview"],"imageUrl":[1,"image-url"],"rating":[2],"itemWidth":[2,"item-width"],"userName":[1,"user-name"],"createdTime":[1,"created-time"],"caption":[1],"itemType":[1,"item-type"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"labelCaption":[1,"label-caption"],"labelCaptionWithLinks":[1,"label-caption-with-links"],"labelColor":[1,"label-color"],"labelFontSize":[2,"label-font-size"],"labelFontStyle":[1,"label-font-style"],"links":[16],"popupDisabled":[4,"popup-disabled"],"popupRedirectMode":[4,"popup-redirect-mode"],"showHoverIcon":[4,"show-hover-icon"],"url":[1],"itemIndex":[2,"item-index"],"appStore":[16],"tabIndex":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"]]],[0,"covet-pics-gallery-item-detail",{"altTag":[1,"alt-tag"],"highlighted":[4],"verified":[4],"imageUrl":[1,"image-url"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"labelCaption":[1,"label-caption"],"layout":[1],"itemStyle":[1,"item-style"],"itemType":[1,"item-type"],"itemWidth":[2,"item-width"],"links":[16],"popupDisabled":[4,"popup-disabled"],"popupRedirectMode":[4,"popup-redirect-mode"],"url":[1],"backgroundColor":[1,"background-color"],"primaryColor":[1,"primary-color"],"starColor":[1,"star-color"],"rating":[2],"userName":[1,"user-name"],"caption":[1],"createdTime":[1,"created-time"],"itemIndex":[2,"item-index"],"appStore":[16],"tabIndex":[32],"captionCSS":[32],"reviewClass":[32],"starOnlyClass":[32],"highlightedClass":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"]]]]],["p-60fc4470",[[0,"covet-pics-gallery-grid",{"desktopPhotosPerRow":[2,"desktop-photos-per-row"],"desktopItemPadding":[2,"desktop-item-padding"],"mobilePhotosPerRow":[2,"mobile-photos-per-row"],"mobileItemPadding":[2,"mobile-item-padding"],"imagesToShow":[2,"images-to-show"],"layout":[1],"highlightEnabled":[4,"highlight-enabled"],"highlightEvery":[2,"highlight-every"],"highlightStartsFrom":[2,"highlight-starts-from"],"items":[16],"breakdown":[16],"productTitle":[1,"product-title"],"rating":[2],"ratingCount":[2,"rating-count"],"loadMoreBorder":[2,"load-more-border"],"loadMoreColor":[1,"load-more-color"],"loadMoreFontSize":[2,"load-more-font-size"],"loadMoreFontStyle":[1,"load-more-font-style"],"loadMoreLabel":[1,"load-more-label"],"loadMorePadding":[2,"load-more-padding"],"loadMoreStyle":[1,"load-more-style"],"loadMoreMode":[1,"load-more-mode"],"showHeader":[4,"show-header"],"headerType":[1,"header-type"],"headerShowAverageRating":[4,"header-show-average-rating"],"headerShowBreakdown":[4,"header-show-breakdown"],"headerShowSort":[4,"header-show-sort"],"filtersEnabled":[4,"filters-enabled"],"filtersMultiselect":[4,"filters-multiselect"],"filters":[16],"filtersResetLabel":[1,"filters-reset-label"],"filtersPadding":[2,"filters-padding"],"filtersColor":[1,"filters-color"],"filtersFontSize":[2,"filters-font-size"],"filtersFontWeight":[1,"filters-font-weight"],"itemStyle":[1,"item-style"],"loader":[16],"appStore":[16],"sharedItemId":[1,"shared-item-id"],"isLoading":[32],"showSort":[32],"showBreakdown":[32],"isGridDisabled":[32],"isDesktopScreen":[32]},[[0,"imageLoaded","imagesLoadedHandler"],[0,"itemClicked","itemClickedHandler"],[8,"previousPopupEvent","prevPopupHandler"],[8,"nextPopupEvent","nextPopupHandler"],[8,"elementResize","elementResizeHandler"]]],[0,"covet-pics-gallery-slider",{"desktopPhotosPerRow":[2,"desktop-photos-per-row"],"desktopItemPadding":[2,"desktop-item-padding"],"mobilePhotosPerRow":[2,"mobile-photos-per-row"],"mobileItemPadding":[2,"mobile-item-padding"],"items":[16],"sharedItemId":[1,"shared-item-id"],"itemStyle":[1,"item-style"],"autoPlay":[2,"auto-play"],"autoLoadMore":[4,"auto-load-more"],"loader":[16],"appStore":[16],"isDesktopScreen":[32]},[[0,"imageLoaded","imagesLoadedHandler"],[0,"itemClicked","itemClickedHandler"],[8,"previousPopupEvent","prevPopupHandler"],[8,"nextPopupEvent","nextPopupHandler"],[8,"elementResize","elementResizeHandler"]]],[0,"covet-pics-highlighted",{"layout":[1],"numberOfPages":[2,"number-of-pages"],"padding":[2],"showPrice":[4,"show-price"],"showReview":[4,"show-review"],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"],"backgroundColor":[1,"background-color"],"hotspotsBackgoundColor":[1,"hotspots-backgound-color"],"items":[16],"productsLayout":[1,"products-layout"],"showHotspots":[4,"show-hotspots"],"hotspotsLayout":[1,"hotspots-layout"],"productsTitle":[1,"products-title"],"hideProductTitle":[4,"hide-product-title"],"hideBranding":[4,"hide-branding"],"btnBuyLabel":[1,"btn-buy-label"],"appStore":[16],"productLinks":[32],"mainSliderIndex":[32],"mainSliderAnimatingSlides":[32],"windowHeight":[32],"isDesktopScreen":[32]}]]],["p-341be27c",[[1,"covet-pics-widget",{"shop":[1],"galleryEmbedId":[2,"gallery-embed-id"],"environment":[1],"customSettings":[1,"custom-settings"],"hideElements":[1,"hide-elements"],"previewMode":[4,"preview-mode"],"isLoading":[32],"minNumberOfPhotos":[32],"items":[32],"appStore":[32],"updateUploadWidgetCoverPreview":[64],"updatePreviewSettings":[64]},[[0,"sortUpdated","sortUpdatedHandler"],[0,"filtersUpdated","filtersUpdatedHandler"],[0,"nextPage","nextPageHandler"]]]]]]'),e)}));
5
5
  //# sourceMappingURL=covet-pics-widget.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","globalScripts","bootstrapLazy","JSON","parse"],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.2.2 | 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":";;;0HAmBA,MAAMA,EAAe,KAkCjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAiB3E,GAAuBF,IAAe,GAAI,CACtCE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IAGrD,CAcI,OAAOC,EAAeJ,EAAK,ECrF/BH,IAAeQ,MAAKC,IAClBC,IACA,OAAOC,EAAcC,KAAAC,MAAA,0iVAAuCJ,EAAA"}
1
+ {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","globalScripts","bootstrapLazy","JSON","parse"],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.2.2 | 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":";;;0HAmBA,MAAMA,EAAe,KAkCjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAiB3E,GAAuBF,IAAe,GAAI,CACtCE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IAGrD,CAcI,OAAOC,EAAeJ,EAAK,ECrF/BH,IAAeQ,MAAKC,IAClBC,IACA,OAAOC,EAAcC,KAAAC,MAAA,4+UAAuCJ,EAAA"}
@@ -0,0 +1,5 @@
1
+ /*!
2
+ * Copyright (c) 2020 by Space Squirrel Ltd.
3
+ */
4
+ import{r as t,h as s,H as r,g as i}from"./p-9f151144.js";import{l as e}from"./p-555b8b04.js";const a=":host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;line-height:1.4}:host .icon-star{-ms-flex:none;flex:none;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:var(--covet-pics-star-size);height:var(--covet-pics-star-size);margin-right:var(--covet-pics-star-space-stars)}:host .icon-star:nth-of-type(5){margin-right:var(--covet-pics-star-space-stars-text)}:host .icon-star.active .svg-star path{fill:var(--covet-pics-star-color);stroke:var(--covet-pics-star-border-color);stroke-width:var(--covet-pics-star-border-width)}:host .icon-star.active .half-star path{fill:var(--covet-pics-star-color)}:host .svg-star{width:100%;height:100%}:host .svg-star path{fill:var(--covet-pics-empty-star-color);stroke:var(--covet-pics-star-border-color);stroke-width:var(--covet-pics-star-border-width)}:host .half-star path{fill:var(--covet-pics-star-color)}";const o=class{constructor(s){t(this,s);this.rating=undefined;this.ratingCount=0;this.starColor="#fec500";this.emptyStarColor="#e5e5e5";this.starBorderColor="#000000";this.starBorderWidth=0;this.starSize=20;this.spaceStars=0;this.spaceStarsText=0;this.showLabel=true;this.label="(%RATING%)"}renderStarRating(){const t=[1,2,3,4,5];const r=Math.round(this.roundRating());const i=e();return t.map(((e,a)=>s("span",{class:`icon-star ${e<=this.roundRating()?"active":""}`,role:"radio","aria-checked":`${e<=this.rating}`,"aria-label":`star ${e}/${t.length}`},s("svg",{class:"svg-star",viewBox:"0 0 110 110",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"presentation"},s("path",{transform:"translate(13,13)",d:"M42.756 1.23194C43.4392 -0.410645 45.7661 -0.410647 46.4493 1.23194L57.3587 27.4613C57.6467 28.1537 58.2979 28.6269 59.0455 28.6868L87.3623 30.957C89.1356 31.0991 89.8546 33.3121 88.5035 34.4695L66.9292 52.9502C66.3596 53.4381 66.1108 54.2037 66.2848 54.9332L72.8762 82.5656C73.289 84.296 71.4065 85.6638 69.8883 84.7364L45.6451 69.9288C45.0051 69.5379 44.2002 69.5379 43.5601 69.9288L19.317 84.7364C17.7988 85.6638 15.9163 84.296 16.3291 82.5656L22.9204 54.9332C23.0944 54.2037 22.8457 53.4381 22.2761 52.9502L0.701718 34.4695C-0.649356 33.3121 0.069695 31.0991 1.843 30.957L30.1598 28.6868C30.9074 28.6269 31.5586 28.1537 31.8466 27.4613L42.756 1.23194Z"}),s("mask",{id:`mask-${a}-${i}`,maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"45",height:"85"},s("rect",{width:"45",height:"85",fill:"white"})),s("g",{class:`${a<r?"half-star":""}`,transform:"translate(13,13)",mask:`url(#mask-${a}-${i})`},s("path",{d:"M42.756 1.23194C43.4392 -0.410645 45.7661 -0.410647 46.4493 1.23194L57.3587 27.4613C57.6467 28.1537 58.2979 28.6269 59.0455 28.6868L87.3623 30.957C89.1356 31.0991 89.8546 33.3121 88.5035 34.4695L66.9292 52.9502C66.3596 53.4381 66.1108 54.2037 66.2848 54.9332L72.8762 82.5656C73.289 84.296 71.4065 85.6638 69.8883 84.7364L45.6451 69.9288C45.0051 69.5379 44.2002 69.5379 43.5601 69.9288L19.317 84.7364C17.7988 85.6638 15.9163 84.296 16.3291 82.5656L22.9204 54.9332C23.0944 54.2037 22.8457 53.4381 22.2761 52.9502L0.701718 34.4695C-0.649356 33.3121 0.069695 31.0991 1.843 30.957L30.1598 28.6868C30.9074 28.6269 31.5586 28.1537 31.8466 27.4613L42.756 1.23194Z"}))))))}setCSSVariables(){return{"--covet-pics-star-size":`${this.starSize}px`,"--covet-pics-star-space-stars":`${this.spaceStars}px`,"--covet-pics-star-space-stars-text":`${this.spaceStarsText}px`,"--covet-pics-star-color":`${this.starColor}`,"--covet-pics-empty-star-color":`${this.emptyStarColor}`,"--covet-pics-star-border-color":`${this.starBorderColor}`,"--covet-pics-star-border-width":`${this.starBorderWidth}`}}roundRating(){if(isNaN(this.rating))return null;if(this.rating>5)return 5;let t=`${this.rating}`;if(t.indexOf(".")!==-1){t=t.slice(0,t.indexOf(".")+3)}return parseFloat(t)}convertedLabel(){let t=this.label.replaceAll("%RATING%",`${this.roundRating()}`);t=t.replaceAll("%COUNT%",`${this.ratingCount}`);return t}render(){return s(r,{style:this.setCSSVariables(),role:"radiogroup","aria-label":"star rating"},this.renderStarRating(),this.showLabel&&s("span",{class:"star-rating-count"},this.convertedLabel()))}get el(){return i(this)}};o.style=a;export{o as covet_pics_star_rating};
5
+ //# sourceMappingURL=p-6f4a30ba.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["covetPicsStarRatingCss","CovetPicsStarRating","renderStarRating","starsArray","halfStar","Math","round","this","roundRating","maskId","getRandomId","map","el","index","h","class","role","rating","length","viewBox","fill","xmlns","transform","d","id","maskUnits","x","y","width","height","mask","setCSSVariables","starSize","spaceStars","spaceStarsText","starColor","emptyStarColor","starBorderColor","starBorderWidth","isNaN","number","indexOf","slice","parseFloat","convertedLabel","lebelUpdated","label","replaceAll","ratingCount","render","Host","style","showLabel"],"sources":["./src/components/covet-pics-star-rating/covet-pics-star-rating.scss?tag=covet-pics-star-rating&encapsulation=shadow","./src/components/covet-pics-star-rating/covet-pics-star-rating.tsx"],"sourcesContent":["\r\n:host {\r\n display: inline-flex;\r\n align-items: center;\r\n box-sizing: border-box;\r\n line-height: 1.4;\r\n\r\n .icon-star {\r\n flex: none;\r\n display: flex;\r\n justify-content: center;\r\n width: var(--covet-pics-star-size);\r\n height: var(--covet-pics-star-size);\r\n margin-right: var(--covet-pics-star-space-stars);\r\n &:nth-of-type(5) { // TODO check this selector\r\n margin-right: var(--covet-pics-star-space-stars-text);\r\n } \r\n \r\n &.active {\r\n .svg-star\r\n path {\r\n fill: var(--covet-pics-star-color);\r\n stroke: var(--covet-pics-star-border-color);\r\n stroke-width: var(--covet-pics-star-border-width);\r\n }\r\n .half-star {\r\n path {\r\n fill: var(--covet-pics-star-color);\r\n }\r\n } \r\n }\r\n }\r\n\r\n .svg-star {\r\n width: 100%;\r\n height: 100%;\r\n path {\r\n fill: var(--covet-pics-empty-star-color);\r\n stroke: var(--covet-pics-star-border-color);\r\n stroke-width: var(--covet-pics-star-border-width)\r\n }\r\n }\r\n .half-star {\r\n path {\r\n fill: var(--covet-pics-star-color);\r\n }\r\n }\r\n\r\n}\r\n","import { Component, Element, Prop, h, Host } from \"@stencil/core\";\r\nimport { getRandomId } from \"../../utils/utils\";\r\n\r\n@Component({\r\n tag: \"covet-pics-star-rating\",\r\n styleUrl: \"covet-pics-star-rating.scss\",\r\n shadow: true\r\n})\r\n\r\nexport class CovetPicsStarRating {\r\n @Element() el: HTMLCovetPicsStarRatingElement;\r\n\r\n /**\r\n * Rating (float from 1-5)\r\n */\r\n @Prop() rating: number;\r\n\r\n /**\r\n * Rating count\r\n */\r\n @Prop() ratingCount: number=0;\r\n\r\n /**\r\n * Color of star\r\n */\r\n @Prop() starColor: string = \"#fec500\";\r\n\r\n /**\r\n * Color of empty star\r\n */\r\n @Prop() emptyStarColor: string = \"#e5e5e5\";\r\n\r\n /**\r\n * Color of star border\r\n */\r\n @Prop() starBorderColor: string = \"#000000\";\r\n\r\n /**\r\n * Width of star border\r\n */\r\n @Prop() starBorderWidth: number = 0;\r\n\r\n /**\r\n * Width/height of star in px.\r\n */\r\n @Prop() starSize: number = 20;\r\n \r\n /**\r\n * Space (margin) above in px\r\n */\r\n @Prop() spaceStars: number = 0;\r\n\r\n /**\r\n * Space (margin) below in px\r\n */\r\n @Prop() spaceStarsText: number = 0;\r\n\r\n /**\r\n * show Label or not\r\n */\r\n @Prop() showLabel: boolean = true;\r\n\r\n /**\r\n * Label next to star rating\r\n * available dynamic variables: %RATING% %COUNT%\r\n */\r\n @Prop() label: string = \"(%RATING%)\";\r\n\r\n private renderStarRating() {\r\n const starsArray = [1, 2, 3, 4, 5];\r\n const halfStar = Math.round(this.roundRating());\r\n const maskId = getRandomId();\r\n return (\r\n starsArray.map((el,index) =>\r\n <span class={`icon-star ${el <= this.roundRating() ? \"active\" : \"\"}`} role=\"radio\" aria-checked={`${el <= this.rating}`} aria-label={`star ${el}/${starsArray.length}`}>\r\n <svg class=\"svg-star\" viewBox=\"0 0 110 110\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" role=\"presentation\">\r\n <path transform=\"translate(13,13)\" d=\"M42.756 1.23194C43.4392 -0.410645 45.7661 -0.410647 46.4493 1.23194L57.3587 27.4613C57.6467 28.1537 58.2979 28.6269 59.0455 28.6868L87.3623 30.957C89.1356 31.0991 89.8546 33.3121 88.5035 34.4695L66.9292 52.9502C66.3596 53.4381 66.1108 54.2037 66.2848 54.9332L72.8762 82.5656C73.289 84.296 71.4065 85.6638 69.8883 84.7364L45.6451 69.9288C45.0051 69.5379 44.2002 69.5379 43.5601 69.9288L19.317 84.7364C17.7988 85.6638 15.9163 84.296 16.3291 82.5656L22.9204 54.9332C23.0944 54.2037 22.8457 53.4381 22.2761 52.9502L0.701718 34.4695C-0.649356 33.3121 0.069695 31.0991 1.843 30.957L30.1598 28.6868C30.9074 28.6269 31.5586 28.1537 31.8466 27.4613L42.756 1.23194Z\"/>\r\n <mask id={`mask-${index}-${maskId}`} maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"45\" height=\"85\">\r\n <rect width=\"45\" height=\"85\" fill=\"white\"/>\r\n </mask>\r\n <g class={`${index < halfStar ? \"half-star\" : \"\"}`} transform=\"translate(13,13)\" mask={`url(#mask-${index}-${maskId})`}>\r\n <path d=\"M42.756 1.23194C43.4392 -0.410645 45.7661 -0.410647 46.4493 1.23194L57.3587 27.4613C57.6467 28.1537 58.2979 28.6269 59.0455 28.6868L87.3623 30.957C89.1356 31.0991 89.8546 33.3121 88.5035 34.4695L66.9292 52.9502C66.3596 53.4381 66.1108 54.2037 66.2848 54.9332L72.8762 82.5656C73.289 84.296 71.4065 85.6638 69.8883 84.7364L45.6451 69.9288C45.0051 69.5379 44.2002 69.5379 43.5601 69.9288L19.317 84.7364C17.7988 85.6638 15.9163 84.296 16.3291 82.5656L22.9204 54.9332C23.0944 54.2037 22.8457 53.4381 22.2761 52.9502L0.701718 34.4695C-0.649356 33.3121 0.069695 31.0991 1.843 30.957L30.1598 28.6868C30.9074 28.6269 31.5586 28.1537 31.8466 27.4613L42.756 1.23194Z\"/>\r\n </g>\r\n </svg>\r\n </span>\r\n )\r\n );\r\n }\r\n\r\n private setCSSVariables() {\r\n return {\r\n \"--covet-pics-star-size\": `${this.starSize}px`,\r\n \"--covet-pics-star-space-stars\": `${this.spaceStars}px`,\r\n \"--covet-pics-star-space-stars-text\": `${this.spaceStarsText}px`,\r\n \"--covet-pics-star-color\": `${this.starColor}`,\r\n \"--covet-pics-empty-star-color\": `${this.emptyStarColor}`,\r\n \"--covet-pics-star-border-color\": `${this.starBorderColor}`,\r\n \"--covet-pics-star-border-width\": `${this.starBorderWidth}`\r\n };\r\n }\r\n private roundRating() {\r\n if (isNaN(this.rating)) return null; \r\n if (this.rating > 5) return 5;\r\n \r\n let number = `${this.rating}`;\r\n if (number.indexOf(\".\") !== -1) { \r\n number = number.slice(0,(number.indexOf(\".\") + 3));\r\n } \r\n return parseFloat(number);\r\n }\r\n\r\n private convertedLabel() {\r\n let lebelUpdated = this.label.replaceAll(\"%RATING%\", `${this.roundRating()}`);\r\n lebelUpdated = lebelUpdated.replaceAll(\"%COUNT%\", `${this.ratingCount}`);\r\n return lebelUpdated;\r\n }\r\n\r\n render() {\r\n return (\r\n <Host style={this.setCSSVariables()} role=\"radiogroup\" aria-label=\"star rating\">\r\n {this.renderStarRating()}\r\n {this.showLabel && <span class=\"star-rating-count\">{this.convertedLabel()}</span>}\r\n </Host>\r\n );\r\n }\r\n\r\n}\r\n"],"mappings":";;;6FAAA,MAA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