@ptcwebops/ptcw-design 1.6.0 → 1.6.1

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 (77) hide show
  1. package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +50 -0
  2. package/dist/cjs/{bundle-jumbotron-example_14.cjs.entry.js → icon-asset_16.cjs.entry.js} +406 -401
  3. package/dist/cjs/interfaces-574e6df7.js +15 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/max-width-container_3.cjs.entry.js +237 -0
  6. package/dist/cjs/ptc-card.cjs.entry.js +1 -1
  7. package/dist/cjs/ptc-jumbotron.cjs.entry.js +135 -0
  8. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
  9. package/dist/cjs/ptcw-design.cjs.js +1 -1
  10. package/dist/collection/components/ptc-card/ptc-card.css +26 -179
  11. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +4 -0
  12. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +4 -0
  13. package/dist/collection/components/ptc-product-card/ptc-product-card.css +1 -1
  14. package/dist/collection/components/ptc-product-card/ptc-product-card.js +1 -19
  15. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.css +2 -6
  16. package/dist/collection/components/ptc-product-dropdown/ptc-product-dropdown.js +1 -1
  17. package/dist/collection/components/ptc-product-sidebar/ptc-product-sidebar.css +2 -2
  18. package/dist/collection/stories/Button.js +21 -0
  19. package/dist/collection/stories/Button.stories.js +45 -0
  20. package/dist/collection/stories/Header.js +45 -0
  21. package/dist/collection/stories/Header.stories.js +18 -0
  22. package/dist/collection/stories/Page.js +61 -0
  23. package/dist/collection/stories/Page.stories.js +20 -0
  24. package/dist/collection/stories/assets/code-brackets.svg +1 -0
  25. package/dist/collection/stories/assets/colors.svg +1 -0
  26. package/dist/collection/stories/assets/comments.svg +1 -0
  27. package/dist/collection/stories/assets/direction.svg +1 -0
  28. package/dist/collection/stories/assets/flow.svg +1 -0
  29. package/dist/collection/stories/assets/plugin.svg +1 -0
  30. package/dist/collection/stories/assets/repo.svg +1 -0
  31. package/dist/collection/stories/assets/stackalt.svg +1 -0
  32. package/dist/custom-elements/index.js +8 -9
  33. package/dist/esm/bundle-jumbotron-example.entry.js +46 -0
  34. package/dist/esm/{bundle-jumbotron-example_14.entry.js → icon-asset_16.entry.js} +399 -396
  35. package/dist/esm/interfaces-7c0243be.js +12 -0
  36. package/dist/esm/loader.js +1 -1
  37. package/dist/esm/max-width-container_3.entry.js +231 -0
  38. package/dist/esm/ptc-card.entry.js +1 -1
  39. package/dist/esm/ptc-jumbotron.entry.js +131 -0
  40. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  41. package/dist/esm/ptcw-design.js +1 -1
  42. package/dist/ptcw-design/p-0d2c381a.entry.js +1 -0
  43. package/dist/ptcw-design/p-73ea7065.entry.js +1 -0
  44. package/dist/ptcw-design/{p-2404b2db.entry.js → p-9e23fa0e.entry.js} +1 -1
  45. package/dist/ptcw-design/p-b8debc73.entry.js +1 -0
  46. package/dist/ptcw-design/p-e8c46d2e.entry.js +1 -0
  47. package/dist/ptcw-design/p-eba1521a.entry.js +1 -0
  48. package/dist/ptcw-design/p-ee1183b2.js +1 -0
  49. package/dist/ptcw-design/ptcw-design.css +1 -1
  50. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  51. package/dist/types/components/ptc-product-card/ptc-product-card.d.ts +0 -2
  52. package/dist/types/components.d.ts +0 -5
  53. package/package.json +15 -3
  54. package/readme.md +1 -1
  55. package/dist/cjs/ptc-back-to-top.cjs.entry.js +0 -46
  56. package/dist/cjs/ptc-product-card.cjs.entry.js +0 -33
  57. package/dist/cjs/ptc-product-category.cjs.entry.js +0 -21
  58. package/dist/cjs/ptc-product-dropdown.cjs.entry.js +0 -80
  59. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +0 -23
  60. package/dist/cjs/ptc-product-list.cjs.entry.js +0 -128
  61. package/dist/cjs/ptc-product-sidebar.cjs.entry.js +0 -130
  62. package/dist/esm/ptc-back-to-top.entry.js +0 -42
  63. package/dist/esm/ptc-product-card.entry.js +0 -29
  64. package/dist/esm/ptc-product-category.entry.js +0 -17
  65. package/dist/esm/ptc-product-dropdown.entry.js +0 -76
  66. package/dist/esm/ptc-product-highlight-card.entry.js +0 -19
  67. package/dist/esm/ptc-product-list.entry.js +0 -124
  68. package/dist/esm/ptc-product-sidebar.entry.js +0 -126
  69. package/dist/ptcw-design/p-046b0224.entry.js +0 -1
  70. package/dist/ptcw-design/p-19ec063d.entry.js +0 -1
  71. package/dist/ptcw-design/p-43e72cf0.entry.js +0 -1
  72. package/dist/ptcw-design/p-49dc9b68.entry.js +0 -1
  73. package/dist/ptcw-design/p-65513c45.entry.js +0 -1
  74. package/dist/ptcw-design/p-798c2328.entry.js +0 -1
  75. package/dist/ptcw-design/p-ac5dfbd0.entry.js +0 -1
  76. package/dist/ptcw-design/p-e341cb46.entry.js +0 -1
  77. package/dist/ptcw-design/p-ff1585a9.entry.js +0 -1
@@ -1,47 +1,5 @@
1
- import { r as registerInstance, h, H as Host, g as getAssetPath, a as getElement, c as createEvent } from './index-8e63c32d.js';
2
-
3
- const bundleJumbotronExampleCss = ":host{display:block}";
4
-
5
- const BundleJumbotronExample = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.jumbotron = 'light';
9
- this.isIframe = false;
10
- }
11
- render() {
12
- let $pngSrc;
13
- let $gifSrc;
14
- let $bgVideoSrc;
15
- let $bgSrc;
16
- let $popupVideo;
17
- //replace dummy data
18
- if (this.jumbotron === 'light' || this.jumbotron === 'dark') {
19
- $bgSrc =
20
- 'https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80';
21
- }
22
- else if (this.jumbotron === 'dark-video' || this.jumbotron === 'light-video') {
23
- //$bgVideoSrc = "https://www.ptc.com/-/media/Videos/wind-turbine.mp4";
24
- // if is iframe use src from iframe
25
- $bgVideoSrc = 'https://player.vimeo.com/video/749261406?h=5e6a60ffc5&muted=1&autoplay=1&loop=1&transparent=0&background=1&app_id=122963%22&controls=0';
26
- }
27
- else if (this.jumbotron === 'png') {
28
- $pngSrc =
29
- 'https://images.unsplash.com/photo-1676883343977-5f8ecc36856c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NzgyMjcxNDU&ixlib=rb-4.0.3&q=80&w=400';
30
- }
31
- else if (this.jumbotron === 'gif') {
32
- $gifSrc = 'https://media.giphy.com/media/TDQkojbHj3wTS/giphy.gif';
33
- }
34
- //Optional: set $popupVideo
35
- //$popupVideo = "https://www.youtube.com/embed/w0mJCtK9sDY";
36
- return (h(Host, null, h("ptc-jumbotron", Object.assign({ "jumbotron-type": this.jumbotron }, (!!$pngSrc && { pngSrc: $pngSrc }), (!!$gifSrc && { gifSrc: $gifSrc }), (!!$bgVideoSrc && { bgVideoSrc: $bgVideoSrc }), (!!$bgSrc && { bgSrc: $bgSrc }), (!!$popupVideo ), { "sub-title": "totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." // bind sub title data (multi-line)
37
- ,
38
- "is-iframe": this.isIframe }), h("ptc-breadcrumb", Object.assign({ slot: "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'white' } : { color: 'primary-gray' }), (this.jumbotron === 'text' ? { position: 'center' } : {})), h("list-item", Object.assign({ "list-type": "breadcrumb", "link-href": "https://www.ptc.com/contact-us" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'light-gray' } : { color: 'primary-gray' })), "PLM Video Hub"), h("list-item", Object.assign({ "list-type": "breadcrumb" }, (this.jumbotron === 'dark' || this.jumbotron == 'dark-video' ? { color: 'light-gray' } : { color: 'primary-gray' })), "Current Page")), h("ptc-title", { slot: "main-title", type: "h1", upperline: "no-upperline", "title-size": "xxxx-large", "title-height": "densest", "title-weight": "w-8", "title-margin": "margin-flush", "text-align": "left" // if type=text, text-align=center, otherwise left
39
- ,
40
- "title-color": "gray" //if dark, dark-video then "gray-1"
41
- }, h("ptc-tooltip", { "text-lines": "3", description: "Sed ut perspiciatis unde omnis iste natus", position: "right" })), h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-primary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum dolor sit amet"), h("ptc-button", { slot: "j-cta", type: "link", color: "ptc-secondary", "link-href": "https://www.ptc.com", target: "_blank" }, "Lorem ipsum"))));
42
- }
43
- };
44
- BundleJumbotronExample.style = bundleJumbotronExampleCss;
1
+ import { r as registerInstance, g as getAssetPath, h, H as Host, c as createEvent, a as getElement } from './index-8e63c32d.js';
2
+ import { R as ResponsivePictureVariables } from './interfaces-7c0243be.js';
45
3
 
46
4
  const iconAssetCss = ".svg-inline--fa.sc-icon-asset,svg.sc-icon-asset:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa.sc-icon-asset{display:inline-block;font-size:inherit;height:1em;vertical-align:-.125em}.svg-inline--fa.fa-lg.sc-icon-asset{vertical-align:-.225em}.svg-inline--fa.fa-w-1.sc-icon-asset{width:.0625em}.svg-inline--fa.fa-w-2.sc-icon-asset{width:.125em}.svg-inline--fa.fa-w-3.sc-icon-asset{width:.1875em}.svg-inline--fa.fa-w-4.sc-icon-asset{width:.25em}.svg-inline--fa.fa-w-5.sc-icon-asset{width:.3125em}.svg-inline--fa.fa-w-6.sc-icon-asset{width:.375em}.svg-inline--fa.fa-w-7.sc-icon-asset{width:.4375em}.svg-inline--fa.fa-w-8.sc-icon-asset{width:.5em}.svg-inline--fa.fa-w-9.sc-icon-asset{width:.5625em}.svg-inline--fa.fa-w-10.sc-icon-asset{width:.625em}.svg-inline--fa.fa-w-11.sc-icon-asset{width:.6875em}.svg-inline--fa.fa-w-12.sc-icon-asset{width:.75em}.svg-inline--fa.fa-w-13.sc-icon-asset{width:.8125em}.svg-inline--fa.fa-w-14.sc-icon-asset{width:.875em}.svg-inline--fa.fa-w-15.sc-icon-asset{width:.9375em}.svg-inline--fa.fa-w-16.sc-icon-asset{width:1em}.svg-inline--fa.fa-w-17.sc-icon-asset{width:1.0625em}.svg-inline--fa.fa-w-18.sc-icon-asset{width:1.125em}.svg-inline--fa.fa-w-19.sc-icon-asset{width:1.1875em}.svg-inline--fa.fa-w-20.sc-icon-asset{width:1.25em}.svg-inline--fa.fa-pull-left.sc-icon-asset{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right.sc-icon-asset{margin-left:.3em;width:auto}.svg-inline--fa.fa-border.sc-icon-asset{height:1.5em}.svg-inline--fa.fa-li.sc-icon-asset{width:2em}.svg-inline--fa.fa-fw.sc-icon-asset{width:1.25em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers.sc-icon-asset{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset,.fa-layers-text.sc-icon-asset{display:inline-block;position:absolute;text-align:center}.fa-layers-text.sc-icon-asset{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right.sc-icon-asset{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left.sc-icon-asset{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right.sc-icon-asset{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left.sc-icon-asset{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg.sc-icon-asset{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs.sc-icon-asset{font-size:.75em}.fa-sm.sc-icon-asset{font-size:.875em}.fa-1x.sc-icon-asset{font-size:1em}.fa-2x.sc-icon-asset{font-size:2em}.fa-3x.sc-icon-asset{font-size:3em}.fa-4x.sc-icon-asset{font-size:4em}.fa-5x.sc-icon-asset{font-size:5em}.fa-6x.sc-icon-asset{font-size:6em}.fa-7x.sc-icon-asset{font-size:7em}.fa-8x.sc-icon-asset{font-size:8em}.fa-9x.sc-icon-asset{font-size:9em}.fa-10x.sc-icon-asset{font-size:10em}.fa-fw.sc-icon-asset{text-align:center;width:1.25em}.fa-ul.sc-icon-asset{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul.sc-icon-asset>li.sc-icon-asset{position:relative}.fa-li.sc-icon-asset{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border.sc-icon-asset{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left.sc-icon-asset{float:left}.fa-pull-right.sc-icon-asset{float:right}.fa.fa-pull-left.sc-icon-asset,.fab.fa-pull-left.sc-icon-asset,.fal.fa-pull-left.sc-icon-asset,.far.fa-pull-left.sc-icon-asset,.fas.fa-pull-left.sc-icon-asset{margin-right:.3em}.fa.fa-pull-right.sc-icon-asset,.fab.fa-pull-right.sc-icon-asset,.fal.fa-pull-right.sc-icon-asset,.far.fa-pull-right.sc-icon-asset,.fas.fa-pull-right.sc-icon-asset{margin-left:.3em}.fa-spin.sc-icon-asset{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse.sc-icon-asset{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical.sc-icon-asset{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset,.fa-flip-vertical.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\"}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset{-webkit-transform:scale(-1);transform:scale(-1)}.sc-icon-asset:root .fa-flip-both.sc-icon-asset,.sc-icon-asset:root .fa-flip-horizontal.sc-icon-asset,.sc-icon-asset:root .fa-flip-vertical.sc-icon-asset,.sc-icon-asset:root .fa-rotate-90.sc-icon-asset,.sc-icon-asset:root .fa-rotate-180.sc-icon-asset,.sc-icon-asset:root .fa-rotate-270.sc-icon-asset{-webkit-filter:none;filter:none}.fa-stack.sc-icon-asset{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x.sc-icon-asset,.fa-stack-2x.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x.sc-icon-asset{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x.sc-icon-asset{height:2em;width:2.5em}.fa-inverse.sc-icon-asset{color:#fff}.sr-only.sc-icon-asset{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable.sc-icon-asset:active,.sr-only-focusable.sc-icon-asset:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa.sc-icon-asset .fa-primary.sc-icon-asset{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset{fill:var(--fa-secondary-color,currentColor)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset,.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-primary.sc-icon-asset{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-secondary.sc-icon-asset{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-primary.sc-icon-asset,.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-secondary.sc-icon-asset{fill:#000}.fad.fa-inverse.sc-icon-asset{color:#fff}icon-asset.sc-icon-asset{vertical-align:middle}svg.sc-icon-asset{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}svg.micro.sc-icon-asset{width:calc(var(--ptc-font-size-x-small) / 2);height:calc(var(--ptc-font-size-x-small) / 2)}svg.xxx-small.sc-icon-asset{width:var(--ptc-font-size-xxx-small);height:var(--ptc-font-size-xxx-small)}svg.xx-small.sc-icon-asset{width:var(--ptc-font-size-xx-small);height:var(--ptc-font-size-xx-small)}svg.x-small.sc-icon-asset{width:var(--ptc-font-size-x-small);height:var(--ptc-font-size-x-small)}svg.small.sc-icon-asset{width:var(--ptc-font-size-small);height:var(--ptc-font-size-small)}svg.medium.sc-icon-asset{width:var(--ptc-font-size-medium);height:var(--ptc-font-size-medium)}svg.large.sc-icon-asset{width:var(--ptc-font-size-large);height:var(--ptc-font-size-large)}svg.x-large.sc-icon-asset{width:var(--ptc-font-size-x-large);height:var(--ptc-font-size-x-large)}svg.xx-large.sc-icon-asset{width:var(--ptc-font-size-xx-large);height:var(--ptc-font-size-xx-large)}svg.xxx-large.sc-icon-asset{width:var(--ptc-font-size-xxx-large);height:var(--ptc-font-size-xxx-large)}svg.xxxx-large.sc-icon-asset{width:var(--ptc-font-size-xxxx-large);height:var(--ptc-font-size-xxxx-large)}svg.white.sc-icon-asset{fill:var(--color-white)}svg.white.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-white)}svg.black.sc-icon-asset{fill:var(--color-black)}svg.black.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-black)}svg.ptc-green.sc-icon-asset{fill:var(--color-green-07)}svg.ptc-green.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-green-07)}svg.gray.sc-icon-asset{fill:var(--color-gray-06)}svg.gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-06)}svg.light-gray.sc-icon-asset{fill:var(--color-gray-05)}svg.light-gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-05)}svg.primary-gray.sc-icon-asset{fill:var(--color-gray-10)}svg.inherit.sc-icon-asset{fill:inherit}svg.inherit.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:inherit}";
47
5
 
@@ -115,107 +73,44 @@ const ListItem = class {
115
73
  };
116
74
  ListItem.style = listItemCss;
117
75
 
118
- const maxWidthContainerCss = ":host{display:block}:host(.left){margin:auto auto auto 0}:host(.right){margin:auto 0 auto auto}:host(.center){margin:0 auto}";
76
+ const ptcBackToTopCss = ":host{display:block}:host .back-to-top-button{position:fixed;bottom:140px;right:24px;width:64px;height:58px;border:1px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);background-color:var(--color-white);color:var(--color-gray-10);font-size:12px;font-weight:var(--ptc-font-weight-semibold);outline:none;cursor:pointer;transition:opacity 0.3s ease-in-out;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:var(--ptc-shadow-small)}:host .back-to-top-button:hover{opacity:1}:host .arrow{margin-bottom:5px}";
119
77
 
120
- const MaxWidthContainer = class {
78
+ const PtcBackToTop = class {
121
79
  constructor(hostRef) {
122
80
  registerInstance(this, hostRef);
123
- this.maxWidth = undefined;
124
- this.breakpoint = 768;
125
- this.contentAlign = 'center';
126
- this.styles = undefined;
81
+ this.handleScroll = () => {
82
+ const scrollY = window.pageYOffset || document.documentElement.scrollTop;
83
+ this.showButton = scrollY > window.innerHeight * 1;
84
+ };
85
+ this.showButton = false;
127
86
  }
128
87
  componentDidLoad() {
129
- this.handleResize();
130
- window.addEventListener('resize', this.handleResize.bind(this));
88
+ window.addEventListener('scroll', this.handleScroll);
131
89
  }
132
90
  disconnectedCallback() {
133
- window.removeEventListener('resize', this.handleResize);
134
- }
135
- render() {
136
- const classMap = this.getCssClassMap();
137
- return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("slot", null)));
91
+ window.removeEventListener('scroll', this.handleScroll);
138
92
  }
139
- getCssClassMap() {
140
- return {
141
- [this.contentAlign]: true,
142
- };
93
+ handleClick() {
94
+ this.scrollToTop();
143
95
  }
144
- handleResize() {
145
- // const selectedContainer = this.el.querySelector('.max-width-container');
146
- if (this.el) {
147
- if (window.innerWidth >= this.breakpoint) {
148
- this.el.style.maxWidth = `${this.maxWidth}px`;
149
- }
150
- else {
151
- this.el.style.maxWidth = 'initial';
152
- }
96
+ scrollToTop() {
97
+ if ('scrollBehavior' in document.documentElement.style) {
98
+ // Smooth scrolling is supported
99
+ window.scrollTo({
100
+ top: 0,
101
+ behavior: 'smooth',
102
+ });
103
+ }
104
+ else {
105
+ // Fallback for browsers that do not support smooth scrolling
106
+ window.scrollTo(0, 0);
153
107
  }
154
- }
155
- get el() { return getElement(this); }
156
- };
157
- MaxWidthContainer.style = maxWidthContainerCss;
158
-
159
- const ptcBackgroundVideoCss = ":host{display:block;position:relative}:host video{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100;object-fit:cover}:host .video-overlay{z-index:1;display:block;position:absolute;width:100%;height:100%;top:0;left:0;opacity:0.8;background-image:linear-gradient(270deg, rgba(30, 38, 38, 0) 26%, #1e2626)}:host(.legacy){display:block;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host(.legacy) video{object-fit:cover;position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden}:host .iframe-wrapper{position:absolute;top:0px;left:0px;right:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:-100}:host .iframe-wrapper .background-video-embed{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:100%;height:100%}:host .iframe-wrapper .player .vp-video-wrapper .vp-telecine-cover video{object-fit:cover}:host .play-button{position:absolute;top:1.5rem;right:1.5rem;width:34px;height:34px;z-index:99}@media (min-width: 768px){:host .play-button{top:unset;bottom:3.75rem;right:2rem}}";
160
-
161
- const PtcBackgroundVideo = class {
162
- constructor(hostRef) {
163
- registerInstance(this, hostRef);
164
- this.videoSrc = undefined;
165
- this.posterSrc = undefined;
166
- this.overlay = true;
167
- this.playButtonTitle = undefined;
168
- this.pauseButtonTitle = undefined;
169
- this.paused = undefined;
170
- this.type = 'default';
171
- this.isIframe = false;
172
- }
173
- // componentDidLoad() {
174
- // if(this.isIframe){
175
- // const iframe:HTMLIFrameElement = this.el.shadowRoot.querySelector('iframe');
176
- // const iframeDoc = iframe.contentDocument
177
- // const iframeVideo = iframeDoc.querySelector('video');
178
- // console.log("iframe ele: " + iframeDoc.querySelectorAll('video'));
179
- // iframeVideo.style.objectFit = 'cover';
180
- // }
181
- // }
182
- // @Method()
183
- // async toggleVideo() {
184
- // // show a prompt
185
- // this.paused = !this.paused;
186
- // let video = this.el.shadowRoot.querySelector('video') as HTMLVideoElement;
187
- // if (video) {
188
- // if (this.paused) {
189
- // video.pause();
190
- // } else {
191
- // video.play().catch(z => console.error(z));
192
- // }
193
- // }
194
- // console.log('Hello, I am a publish method from ptc-background-video!');
195
- // }
196
- componentWillLoad() {
197
- this.paused = false;
198
108
  }
199
109
  render() {
200
- const videoContent = this.isIframe ? (h("div", { class: "iframe-wrapper" }, h("iframe", { id: "jumbotron-iframe", src: this.videoSrc, frameborder: 0, allow: "autoplay", allowFullScreen: true, class: "background-video-embed" }))) : (h("video", { src: this.videoSrc, poster: this.posterSrc, autoplay: true, loop: true, muted: true, playsinline: true }));
201
- return (h(Host, { class: this.type }, videoContent, !!this.videoSrc && this.playButtonTitle && (h("div", { class: "play-button" }, this.paused && (h("ptc-tooltip", { class: "play-btn", mode: "wrapper", description: this.playButtonTitle, position: "bottom-right", styles: ".wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{min-width:unset!important;}" }, h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e), styles: "button.icon-toggle { padding :0px 8px; }" }, h("icon-asset", { name: "play", size: "small", type: "ptc", color: "black" })))), !this.paused && !!this.pauseButtonTitle && (h("ptc-tooltip", { class: "pause-btn", mode: "wrapper", description: this.pauseButtonTitle, position: "bottom-right", styles: ".wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{min-width:unset!important;}" }, h("ptc-button", { type: "button", color: "icon-toggle", onClick: e => this.toggleVideoPlay(e) }, h("icon-asset", { name: "pause", size: "small", type: "ptc", color: "black" })))))), this.overlay ? h("div", { class: "video-overlay" }) : '', this.type == 'default' ? h("slot", null) : ''));
202
- }
203
- toggleVideoPlay(e) {
204
- e.preventDefault();
205
- this.paused = !this.paused;
206
- let video = this.el.shadowRoot.querySelector('video');
207
- if (video) {
208
- if (this.paused) {
209
- video.pause();
210
- }
211
- else {
212
- video.play().catch(z => console.error(z));
213
- }
214
- }
110
+ return (h(Host, null, this.showButton && (h("button", { class: 'back-to-top-button', title: "Back to Top" }, h("span", { class: 'arrow' }, h("svg", { width: "18", height: "12", viewBox: "0 0 18 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M15.5248 11.625L8.9998 5.1L2.4748 11.625L0.112305 9.2625L8.9998 0.375L17.8873 9.2625L15.5248 11.625Z", fill: "#323B42" }))), h("span", { class: 'text' }, "Back to Top")))));
215
111
  }
216
- get el() { return getElement(this); }
217
112
  };
218
- PtcBackgroundVideo.style = ptcBackgroundVideoCss;
113
+ PtcBackToTop.style = ptcBackToTopCss;
219
114
 
220
115
  const ptcBreadcrumbCss = ":host{display:block;margin-top:var(--ptc-element-spacing-05)}::slotted(*){transform:translate(-2px, -2px)}:host(.left){display:flex;justify-content:flex-start;align-items:flex-end}:host(.center){display:flex;justify-content:center}:host(.right){display:flex;justify-content:flex-end}:host(.remove-top-margin){margin-top:0px !important}";
221
116
 
@@ -279,270 +174,6 @@ const PtcButton = class {
279
174
  };
280
175
  PtcButton.style = ptcButtonCss;
281
176
 
282
- let ResponsiveBgVariables = {
283
- envs: ['xs', 'sm', 'md', 'lg'],
284
- selector: '.ptc-img',
285
- interval: 250
286
- };
287
- let ResponsivePictureVariables = {
288
- envs: ['xs', 'sm', 'md', 'lg'],
289
- selector: '.ptc-picture',
290
- interval: 250
291
- };
292
-
293
- const ptcImgCss = ".smart-bg{width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.smart-img{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-standard-top{border-top-left-radius:var(--ptc-border-radius-standard);border-top-right-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.radius-large-top{border-top-left-radius:var(--ptc-border-radius-large);border-top-right-radius:var(--ptc-border-radius-large)}.lazy-bg{background-image:none !important;background-color:var(--color-gray-03)}@media only screen and (min-width: 768px){.hidden-xs{display:none !important}}@media (min-width: 768px) and (max-width: 991px){.hidden-sm{display:none !important}}@media (min-width: 992px) and (max-width: 1199px){.hidden-md{display:none !important}}@media only screen and (min-width: 768px){.hidden-lg{display:none !important}}";
294
-
295
- const PtcImg = class {
296
- constructor(hostRef) {
297
- registerInstance(this, hostRef);
298
- this.sizeXs = '510x340';
299
- this.sizeSm = '1240x496';
300
- this.sizeMd = '1366x500';
301
- this.sizeLg = '1920x1080';
302
- this.imgUrl = undefined;
303
- this.imageType = 'smart-bg';
304
- this.borderRadius = '';
305
- this.loadMode = 'lazy-bg';
306
- this.styles = undefined;
307
- }
308
- /**
309
- * Image Z Index
310
- */
311
- // @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
312
- WindowResize() {
313
- this.setResponsiveBg();
314
- }
315
- render() {
316
- const classMap = this.getCssClassMap();
317
- return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { class: classMap, "data-xs": `${this.imgUrl}:${this.sizeXs}`, "data-sm": `${this.imgUrl}:${this.sizeSm}`, "data-md": `${this.imgUrl}:${this.sizeMd}`, "data-lg": `${this.imgUrl}:${this.sizeLg}` }, this.imageType == 'smart-bg' ? h("slot", null) : null)));
318
- }
319
- componentDidLoad() {
320
- this.addIntersectionObserver();
321
- this.setResponsiveBg();
322
- }
323
- componentWillUpdate() {
324
- this.addIntersectionObserver();
325
- this.setResponsiveBg();
326
- }
327
- //responsive image
328
- setResponsiveBg() {
329
- // Define local variables
330
- let backgrounds = (this.el || document).querySelectorAll(ResponsiveBgVariables.selector), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
331
- // Loop through all target elements
332
- for (var i = 0, len = backgrounds.length; i < len; i++) {
333
- // Set current variables
334
- el = backgrounds[i];
335
- elData = el.getAttribute('data-' + currentBreakpoint);
336
- // If the data attribute exists, set the background
337
- if (elData !== null) {
338
- el.style.backgroundImage = "url('" + elData + "')";
339
- }
340
- else {
341
- if (typeof console == 'object') {
342
- console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
343
- }
344
- }
345
- }
346
- }
347
- //lazy loading
348
- addIntersectionObserver() {
349
- if (!this.imgUrl) {
350
- console.log('no image!');
351
- return;
352
- }
353
- if ('IntersectionObserver' in window) {
354
- let lazyLoadBgs = (this.el || document).querySelectorAll('.lazy-bg');
355
- let bgObserver = new IntersectionObserver(entries => {
356
- entries.forEach(entry => {
357
- if (entry.isIntersecting) {
358
- const image = entry.target;
359
- image.classList.remove('lazy-bg');
360
- bgObserver.unobserve(image);
361
- }
362
- });
363
- });
364
- lazyLoadBgs.forEach(image => {
365
- bgObserver.observe(image);
366
- });
367
- }
368
- }
369
- getCssClassMap() {
370
- return {
371
- [this.imageType]: true,
372
- 'ptc-img': true,
373
- [this.borderRadius]: true,
374
- [this.loadMode]: true,
375
- // [this.imageZIndex] : true
376
- };
377
- }
378
- getCurrentBreakPoints() {
379
- // Define local variables
380
- let doc = window.document, temp = doc.createElement('div'), env;
381
- // Append test node
382
- doc.body.appendChild(temp);
383
- // Loop through breakpoints
384
- for (let i = ResponsiveBgVariables.envs.length - 1; i >= 0; i--) {
385
- env = ResponsiveBgVariables.envs[i];
386
- // Add classes
387
- temp.className = 'hidden-' + env;
388
- // Found breakpoint
389
- if (temp.offsetParent === null) {
390
- // Remove our test node
391
- doc.body.removeChild(temp);
392
- // Return current breakpoint
393
- return env;
394
- }
395
- }
396
- // Breakpoint not found, try fallback
397
- doc.body.removeChild(temp);
398
- return this.getFallbackBreakpoint();
399
- }
400
- getFallbackBreakpoint() {
401
- if (window.matchMedia('(min-width: 992px)').matches) {
402
- return 'lg';
403
- }
404
- else if (window.matchMedia('(min-width: 768px)').matches) {
405
- return 'md';
406
- }
407
- else if (window.matchMedia('(min-width: 576px)').matches) {
408
- return 'sm';
409
- }
410
- else {
411
- return 'xs';
412
- }
413
- }
414
- get el() { return getElement(this); }
415
- };
416
- PtcImg.style = ptcImgCss;
417
-
418
- const ptcJumbotronCss = ".ptc-container{padding-right:24px;padding-left:24px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 1200px){.ptc-container{padding-left:0;padding-right:0;max-width:1136px}}@media only screen and (min-width: 1440px){.ptc-container{padding-left:0;padding-right:0;max-width:1200px}}.ptc-container-lg{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 480px){.ptc-container-lg{padding-left:var(--ptc-layout-spacing-03);padding-right:var(--ptc-layout-spacing-03)}}@media only screen and (min-width: 768px){.ptc-container-lg{padding-left:var(--ptc-layout-spacing-04);padding-right:var(--ptc-layout-spacing-04)}}@media only screen and (min-width: 992px){.ptc-container-lg{padding-left:var(--ptc-element-spacing-08);padding-right:var(--ptc-element-spacing-08)}}@media only screen and (min-width: 1980px){.ptc-container-lg{padding-left:0;padding-right:0;max-width:1900px}}.ptc-container-fluid{width:100%}.u-para-sm{font-size:var(--ptc-font-size-small) !important}.u-para-md{font-size:var(--ptc-font-size-medium) !important}.u-para-lg{font-size:var(--ptc-font-size-large) !important}.u-para-xl{font-size:var(--ptc-font-size-x-large) !important}.u-para-xxl{font-size:var(--ptc-font-size-xx-large) !important}.u-para-xxxl{font-size:var(--ptc-font-size-xxx-large) !important}@media only screen and (min-width: 768px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.05vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.05vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.05vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.05vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.05vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.05vw) !important}}@media only screen and (min-width: 992px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.1vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.1vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.1vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.1vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.1vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.1vw) !important}}@media only screen and (min-width: 1200px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.15vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.15vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.15vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.15vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.15vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.15vw) !important}}@media only screen and (min-width: 1440px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.2vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.2vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.2vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.2vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.2vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.2vw) !important}}@media only screen and (min-width: 1600px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.25vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.25vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.25vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.25vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.25vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.25vw) !important}}@media only screen and (min-width: 1980px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.3vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.3vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.3vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.3vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.3vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.3vw) !important}}@media only screen and (min-width: 2600px){.u-para-sm{font-size:calc(var(--ptc-font-size-small) + 0.35vw) !important}.u-para-md{font-size:calc(var(--ptc-font-size-medium) + 0.35vw) !important}.u-para-lg{font-size:calc(var(--ptc-font-size-large) + 0.35vw) !important}.u-para-xl{font-size:calc(var(--ptc-font-size-x-large) + 0.35vw) !important}.u-para-xxl{font-size:calc(var(--ptc-font-size-xx-large) + 0.35vw) !important}.u-para-xxxl{font-size:calc(var(--ptc-font-size-xxx-large) + 0.35vw) !important}}.u-para-body{font-size:var(--ptc-font-size-medium) !important}.u-color-white{color:var(--color-white) !important}.u-uppercase{text-transform:uppercase !important}.u-margin-flush{margin:0 !important}.u-marginTop-flush{margin-top:0 !important}.u-marginLeft-flush{margin-left:0 !important}.u-marginRight-flush{margin-right:0 !important}.u-marginBottom-flush{margin-bottom:0 !important}.u-padding-flush{padding:0 !important}.u-paddingTop-flush{padding-top:0 !important}.u-paddingLeft-flush{padding-left:0 !important}.u-paddingRight-flush{padding-right:0 !important}.u-paddingBottom-flush{padding-bottom:0 !important}.u-margin-xs{margin:var(--ptc-element-spacing-01) !important}.u-marginTop-xs{margin-top:var(--ptc-element-spacing-01) !important}.u-marginLeft-xs{margin-left:var(--ptc-element-spacing-01) !important}.u-marginRight-xs{margin-right:var(--ptc-element-spacing-01) !important}.u-marginBottom-xs{margin-bottom:var(--ptc-element-spacing-01) !important}.u-margin-sm{margin:var(--ptc-element-spacing-02) !important}.u-marginTop-sm{margin-top:var(--ptc-element-spacing-02) !important}.u-marginLeft-sm{margin-left:var(--ptc-element-spacing-02) !important}.u-marginRight-sm{margin-right:var(--ptc-element-spacing-02) !important}.u-marginBottom-sm{margin-bottom:var(--ptc-element-spacing-02) !important}.u-margin-md{margin:var(--ptc-element-spacing-03) !important}.u-marginTop-md{margin-top:var(--ptc-element-spacing-03) !important}.u-marginLeft-md{margin-left:var(--ptc-element-spacing-03) !important}.u-marginRight-md{margin-right:var(--ptc-element-spacing-03) !important}.u-marginBottom-md{margin-bottom:var(--ptc-element-spacing-03) !important}.u-margin-lg{margin:var(--ptc-element-spacing-04) !important}.u-marginTop-lg{margin-top:var(--ptc-element-spacing-04) !important}.u-marginLeft-lg{margin-left:var(--ptc-element-spacing-04) !important}.u-marginRight-lg{margin-right:var(--ptc-element-spacing-04) !important}.u-marginBottom-lg{margin-bottom:var(--ptc-element-spacing-04) !important}.u-margin-xl{margin:var(--ptc-element-spacing-05) !important}.u-marginTop-xl{margin-top:var(--ptc-element-spacing-05) !important}.u-marginLeft-xl{margin-left:var(--ptc-element-spacing-05) !important}.u-marginRight-xl{margin-right:var(--ptc-element-spacing-05) !important}.u-marginBottom-xl{margin-bottom:var(--ptc-element-spacing-05) !important}.u-margin-xxl{margin:var(--ptc-element-spacing-06) !important}.u-marginTop-xxl{margin-top:var(--ptc-element-spacing-06) !important}.u-marginLeft-xxl{margin-left:var(--ptc-element-spacing-06) !important}.u-marginRight-xxl{margin-right:var(--ptc-element-spacing-06) !important}.u-marginBottom-xxl{margin-bottom:var(--ptc-element-spacing-06) !important}.u-margin-xxxl{margin:var(--ptc-element-spacing-07) !important}.u-marginTop-xxxl{margin-top:var(--ptc-element-spacing-07) !important}.u-marginLeft-xxxl{margin-left:var(--ptc-element-spacing-07) !important}.u-marginRight-xxxl{margin-right:var(--ptc-element-spacing-07) !important}.u-marginBottom-xxxl{margin-bottom:var(--ptc-element-spacing-07) !important}.u-margin-4xl{margin:var(--ptc-element-spacing-08) !important}.u-marginTop-4xl{margin-top:var(--ptc-element-spacing-08) !important}.u-marginLeft-4xl{margin-left:var(--ptc-element-spacing-08) !important}.u-marginRight-4xl{margin-right:var(--ptc-element-spacing-08) !important}.u-marginBottom-4xl{margin-bottom:var(--ptc-element-spacing-08) !important}.u-textAlign-ctr{text-align:center !important}.u-textAlign-right{text-align:right !important}.u-textAlign-left{text-align:left !important}.u-textWhite{color:var(--color-white) !important}.u-textGreen1{color:var(--color-green-07) !important}.u-textGreen2{color:var(--color-green-06) !important}.u-text-nowrap{white-space:nowrap}.u-text-bold{font-weight:var(--ptc-font-weight-bold)}.u-text-thin{font-weight:var(--ptc-font-weight-thin)}.u-textStyle-normal{font-style:normal !important}.u-no-scroll{overflow:hidden}.u-background-white{background-color:var(--color-white)}.u-background-reset{background-color:transparent !important}.u-white-overylay{background:rgba(242, 242, 242, 0.9)}.u-cursor-pointer{cursor:pointer}.u-clear{clear:both}.u-border-radius-standard{border-radius:var(--ptc-border-radius-standard)}.u-border-radius-large{border-radius:var(--ptc-border-radius-large)}.u-border-radius-pill{border-radius:var(--ptc-border-radius-pill)}.u-border-radius-circle{border-radius:var(--ptc-border-radius-circle)}@media only screen and (min-width: 768px){.u-hero-width{width:525px}.u-margin-center{margin:0 auto}.u-justify-self-end{justify-self:flex-end}}.u-hero-pushup{transform:translateY(-120px)}@media only screen and (min-width: 768px){.u-hero-pushup{transform:translateY(-144px)}}@media only screen and (min-width: 768px){.grid-order-1-md{order:1}.grid-order-2-md{order:2}.grid-order-3-md{order:3}}@media only screen and (min-width: 992px){.grid-order-1-lg{order:1}.grid-order-2-lg{order:2}.grid-order-3-lg{order:3}}.standard-list{list-style:none;margin-left:0;margin-bottom:20px;padding:0}.is-spaced-between{justify-content:space-between}.grid-large-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-large-col-gap-md{column-gap:3rem}}.grid-large-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-large-col-gap-sm{column-gap:3rem}}.grid-x-large-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-x-large-col-gap-md{column-gap:4rem}}.grid-x-large-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-x-large-col-gap-sm{column-gap:4rem}}.grid-medium-col-gap-md{column-gap:0}@media only screen and (min-width: 992px){.grid-medium-col-gap-md{column-gap:2rem}}.grid-medium-col-gap-sm{column-gap:0}@media only screen and (min-width: 768px){.grid-medium-col-gap-sm{column-gap:2rem}}.is-float-left{float:left}.is-float-right{float:right}.is-mobile{display:block}.is-desktop{display:none}@media only screen and (min-width: 992px){.is-mobile{display:none}.is-desktop{display:block}}.ptc-section{padding-top:2rem;padding-bottom:2rem}@media only screen and (min-width: 992px){.ptc-section{padding-top:3rem;padding-bottom:3rem}}.ptc-section-standard{padding-top:3rem;padding-bottom:3rem}.ptc-section-half{padding-top:1.5rem;padding-bottom:1.5rem}.u-flex{display:flex}@media only screen and (min-width: 480px){.u-flex-xs{display:flex}}@media only screen and (min-width: 768px){.u-flex-sm{display:flex}}@media only screen and (min-width: 992px){.u-flex-md{display:flex}}@media only screen and (min-width: 1200px){.u-flex-lg{display:flex}}@media only screen and (min-width: 1440px){.u-flex-xl{display:flex}}@media only screen and (min-width: 1600px){.u-flex-xxl{display:flex}}@media only screen and (min-width: 1980px){.u-flex-2k{display:flex}}@media only screen and (min-width: 2600px){.u-flex-4k{display:flex}}.u-align-center{margin:auto;align-self:center}.u-align-left{margin-right:auto;align-self:center}.u-align-right{margin-left:auto;align-self:center}.u-align-x-center{margin-right:auto;margin-left:auto}.u-align-x-left{margin-right:auto}.u-align-x-right{margin-left:auto}.u-align-y-center{align-self:center}.u-align-y-top{align-self:flex-start}.u-align-y-bottom{align-self:flex-end}.is-flex-column{flex-direction:column}.flex-align-items{align-items:flex-end}.flex-align-items-center{align-items:center}.u-flex-nowrap{flex-wrap:nowrap}.u-flex-wrap{flex-wrap:wrap}.u-align-self-start{align-self:start}.u-align-self-center{align-self:center}.u-align-self-stretch{align-self:stretch}.u-justify-self-start{justify-self:start}.u-justify-self-center{justify-self:center}.u-justify-self-stretch{justify-self:stretch}.u-flex-justify-center{justify-content:center}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.fef-two-column-two-media .has-col-gap-lg{grid-column-gap:var(--spacing-md)}@media only screen and (min-width: 992px){.fef-two-column-two-media .has-col-gap-lg{grid-column-gap:var(--spacing-lg)}}.fef-two-column-two-media .is-col-6-md{padding-bottom:3rem}.fef-two-column-two-media .is-col-6-md:last-child{padding-bottom:0rem}@media only screen and (min-width: 768px){.fef-two-column-two-media .is-col-6-md{padding-bottom:0rem}}@media only screen and (min-width: 768px){.is-grid.grid-large-col-gap-xs-0{row-gap:0}}.max-content{max-width:90%;margin:auto}@media only screen and (min-width: 480px){.max-content{max-width:80%}}.product-tab ptc-title h3{font-size:20px !important;font-weight:900}@media only screen and (min-width: 1200px){.product-tab ptc-title h3{font-size:15px !important;font-weight:800}}.product-tab .is-grid{grid-column-gap:20px;grid-row-gap:12px}ptc-bio-card .bio-modal-open-content{color:var(--color-gray-10);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-denser)}ptc-bio-card .bio-modal-open-content h3{letter-spacing:0.08rem;margin-bottom:2px;font-size:var(--ptc-font-size-small)}ptc-bio-card .bio-modal-open-content ul{margin-top:0}ptc-bio-card .bio-modal-open-content ul li{line-height:var(--ptc-line-height-p)}ptc-bio-card .bio-modal-open-content ul li a{text-decoration:none;color:var(--color-green-06);transition:color 0.3s ease}ptc-bio-card .bio-modal-open-content ul li a:hover{color:var(--color-gray-10);transition:color 0.3s ease}ptc-bio-card .bio-modal-open-content .btn-blackgrey{background-color:var(--color-gray-10);display:inline-block;border-style:solid;border-width:1px;white-space:normal;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;padding:14px 20px;border:2px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-standard);color:var(--color-white);font-weight:700}ptc-bio-card .bio-modal-open-content .btn-blackgrey:hover{background-color:var(--color-gray-09);border-color:var(--color-gray-08)}ptc-bio-card .bio-modal-open-content .btn-blackgrey svg{display:none}ptc-bio-card .bio-modal-open-content hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.u-justify-space-between{justify-content:space-between}ptc-nav-submenu .dropdown-content{display:none}ptc-nav-submenu .dropdown-content.open{padding-top:5px;padding-bottom:5px;display:block}ptc-nav-submenu.short-dropdown .dropdown-content.open{padding:var(--ptc-layout-spacing-04)}@media only screen and (min-width: 1200px){ptc-nav-submenu.short-dropdown .dropdown-content.open{padding:var(--ptc-layout-spacing-03) var(--ptc-layout-spacing-04)}}.all-product-banner{padding:50px 0 44px 0px}@media only screen and (min-width: 992px){.all-product-banner{padding:50px 0 72px 0px;display:flex;min-height:300px;justify-content:center;align-items:center}}:host{display:block}.parent{display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;grid-column-gap:0px;grid-row-gap:0px;position:unset;z-index:999}.div1{grid-area:1/1/2/2;min-height:300px}.div1.hidden{display:none}.mobile-media-image{display:flex;justify-content:center;align-items:center}@media only screen and (min-width: 992px){.mobile-media-image{display:none}}.gif-bg{background-color:#F3F3F3}.gif-bg img{width:100%;height:auto}@media only screen and (min-width: 768px){.gif-bg img{width:auto}}.video-ratio{position:relative;overflow:hidden;height:0;padding-bottom:100%}@media screen and (min-width: 550px){.video-ratio{padding-bottom:56.25%}}@media only screen and (min-width: 768px){.video-ratio{padding-bottom:56.25%}}@media only screen and (min-width: 992px){.video-ratio{padding-bottom:59.37%;max-height:500px}}@media only screen and (min-width: 1200px){.video-ratio{padding-bottom:min(578px, 46.67%)}}@media only screen and (min-width: 1440px){.video-ratio{padding-bottom:min(578px, 39.67%)}}.div2{grid-area:2/1/3/2;position:relative}.bg-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.content-layout{display:flex;flex-direction:column}@media only screen and (min-width: 992px){.content-layout{flex-direction:row}}.gap-adjustment{gap:var(--ptc-element-spacing-07);margin-bottom:var(--ptc-element-spacing-07)}.text-adjustment{justify-content:flex-start}@media only screen and (min-width: 992px){.text-adjustment{justify-content:center}}.desktop-media-image{width:40%;display:none}@media only screen and (min-width: 992px){.desktop-media-image{display:block}}.desk-gif-adjustment{z-index:3;display:none;justify-content:center;align-items:center}@media only screen and (min-width: 992px){.desk-gif-adjustment{display:flex}}.desk-gif-adjustment img{width:100%}@media only screen and (min-width: 992px){.parent{grid-template-columns:1fr;grid-template-rows:1fr;grid-column-gap:0px;grid-row-gap:0px;min-height:500px;position:relative}.div1{grid-area:1/1/2/2;min-height:unset}.div2{grid-area:1/1/2/2;align-self:center;position:unset}}";
419
-
420
- const PtcJumbotron = class {
421
- constructor(hostRef) {
422
- registerInstance(this, hostRef);
423
- this.jumbotronType = 'light';
424
- this.hasPopupVideo = false;
425
- this.mainTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur';
426
- this.subTitle = 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet';
427
- this.pngSrc = undefined;
428
- this.gifSrc = undefined;
429
- this.bgVideoSrc = undefined;
430
- this.bgSrc = undefined;
431
- this.isIframe = false;
432
- this.playButtonTitle = undefined;
433
- this.pauseButtonTitle = undefined;
434
- this.contentBackground = undefined;
435
- this.contentColor = undefined;
436
- this.textAlign = 'left';
437
- this.isMobile = undefined;
438
- }
439
- handleResize() {
440
- this.getContentBackground();
441
- this.adjustJumbotronHeight();
442
- }
443
- connectedCallback() {
444
- this.getContentBackground();
445
- }
446
- componentDidLoad() {
447
- // if (!!this.popupVideo) {
448
- // const selectedBtn = this.el.shadowRoot.querySelector('#j-modal-btn');
449
- // const PtcModal: HTMLPtcModalElement = this.el.shadowRoot.querySelector('#j-modal');
450
- // if (selectedBtn && PtcModal) {
451
- // selectedBtn.addEventListener('click', function () {
452
- // PtcModal.show = true;
453
- // });
454
- // const iframe = PtcModal.shadowRoot.querySelector('iframe');
455
- // console.log('iframe')
456
- // console.log(iframe);
457
- // const iframeDoc= iframe.contentDocument
458
- // //const shadowVideo = shadowIframe.querySelector('document')
459
- // console.log('video: ')
460
- // console.log(iframeDoc)
461
- // }
462
- // }
463
- this.adjustJumbotronHeight();
464
- }
465
- render() {
466
- console.log('render');
467
- const classMap = this.getCssClassMap();
468
- let mediaElement;
469
- switch (this.jumbotronType) {
470
- case 'png':
471
- mediaElement = (h("div", { class: "mobile-media-image" }, h("ptc-picture", { src: this.pngSrc })));
472
- break;
473
- case 'gif':
474
- mediaElement = (h("div", { class: "mobile-media-image gif-bg" }, h("img", { src: this.gifSrc })));
475
- break;
476
- case 'dark-video':
477
- case 'light-video':
478
- mediaElement = (h("ptc-background-video", { class: "video-ratio", overlay: false, "video-src": this.bgVideoSrc, isIframe: this.isIframe, "play-button-title": this.playButtonTitle, "pause-button-title": this.pauseButtonTitle }));
479
- break;
480
- default:
481
- mediaElement = h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" });
482
- }
483
- return (h(Host, { class: classMap }, h("div", { class: "parent" }, h("div", { class: `div1 image-container ${this.jumbotronType === 'text' ? 'hidden' : ''}` }, mediaElement), h("div", { class: "div2 content-container" }, h("div", { class: "bg-overlay", style: { background: this.contentBackground } }), h("div", { class: "ptc-container content-layout" }, h("max-width-container", { "max-width": "578", breakpoint: 992, "content-align": this.jumbotronType === 'text' ? 'center' : this.textAlign, styles: ":host{z-index: 999}" }, h("slot", { name: "breadcrumb" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("slot", { name: "main-title" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-para", { "font-size": this.jumbotronType === 'text' && this.isMobile ? 'x-small' : 'small', "font-weight": this.jumbotronType === 'text' && this.isMobile ? 'w-7' : 'w-4', "para-margin": "margin-bottom-6", "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === 'text' ? 'center' : 'left' }, h("ptc-tooltip", { "text-lines": "8", description: this.subTitle, position: "right", styles: `.ellipsis-by-line-boxing{color: ${this.contentColor};}` })), h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === 'text' ? ' text-adjustment' : ''}` }, h("slot", { name: "j-cta" }))), this.hasPopupVideo ? h("slot", { name: "video" }) : null, this.jumbotronType === 'png' ? (h("div", { class: "desktop-media-image" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc }))) : null, this.jumbotronType === 'gif' ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null)))));
484
- }
485
- getCssClassMap() {
486
- return {
487
- // [this.imageZIndex] : true
488
- };
489
- }
490
- getContentBackground() {
491
- if (window.innerWidth < 992) {
492
- switch (this.jumbotronType) {
493
- case 'light':
494
- case 'light-video':
495
- this.contentBackground = '#F3F3F3';
496
- this.contentColor = 'var(--color-gray-10)';
497
- break;
498
- case 'dark':
499
- case 'dark-video':
500
- this.contentBackground = 'var(--color-gray-09)';
501
- this.contentColor = 'var(--color-gray-01)';
502
- break;
503
- default:
504
- this.contentBackground = 'transparent';
505
- this.contentColor = 'var(--color-gray-10)';
506
- }
507
- this.isMobile = true;
508
- }
509
- else {
510
- switch (this.jumbotronType) {
511
- case 'light':
512
- case 'light-video':
513
- this.contentBackground = 'linear-gradient(90.19deg, rgba(255, 255, 255, 0.9) 62.55%, rgba(228, 231, 233, 0) 99.86%)';
514
- this.contentColor = 'var(--color-gray-10)';
515
- break;
516
- case 'dark':
517
- case 'dark-video':
518
- this.contentBackground = 'linear-gradient(90deg, rgba(0, 0, 0, 0.63) 52.42%, rgba(40, 47, 53, 0) 100%)';
519
- this.contentColor = 'var(--color-gray-01)';
520
- break;
521
- case 'gif':
522
- this.contentBackground = '#F3F3F3';
523
- this.contentColor = 'var(--color-gray-10)';
524
- break;
525
- default:
526
- this.contentBackground = 'transparent';
527
- this.contentColor = 'var(--color-gray-10)';
528
- }
529
- this.isMobile = false;
530
- }
531
- }
532
- adjustJumbotronHeight() {
533
- const contentContainerH = this.el.shadowRoot.querySelector('.content-container').clientHeight;
534
- const videoEle = !!this.el.shadowRoot.querySelector('.video-ratio') ? this.el.shadowRoot.querySelector('.video-ratio') : null;
535
- if (contentContainerH < 500 && videoEle && !this.isMobile) {
536
- videoEle.style.paddingBottom = '500px';
537
- }
538
- else {
539
- !!videoEle ? (videoEle.style.paddingBottom = '') : null;
540
- }
541
- }
542
- get el() { return getElement(this); }
543
- };
544
- PtcJumbotron.style = ptcJumbotronCss;
545
-
546
177
  const ptcParaCss = ":host{position:relative;z-index:1}:host(.white){color:var(--color-white)}:host(.z-1){z-index:1}:host(.z-2){z-index:2}:host(.z-3){z-index:3}:host(.z-99){z-index:99}:host(.z-999){z-index:999}:host(.z-auto){z-index:auto}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10)}p.primary-grey{color:var(--color-gray-10)}p.gray-darker{color:var(--color-gray-11)}p.white{color:var(--color-white)}p.xxx-small{font-size:var(--ptc-font-size-xxx-small)}p.xx-small{font-size:var(--ptc-font-size-xx-small)}p.x-small{font-size:var(--ptc-font-size-x-small)}p.small{font-size:var(--ptc-font-size-small)}p.medium{font-size:var(--ptc-font-size-medium)}p.large{font-size:var(--ptc-font-size-large)}p.x-large{font-size:var(--ptc-font-size-x-large)}p.xx-large{font-size:var(--ptc-font-size-xx-large)}p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}p.w-3{font-weight:var(--ptc-font-weight-thin)}p.w-4{font-weight:var(--ptc-font-weight-regular)}p.w-5{font-weight:var(--ptc-font-weight-medium)}p.w-6{font-weight:var(--ptc-font-weight-semibold)}p.w-7{font-weight:var(--ptc-font-weight-bold)}p.w-8{font-weight:var(--ptc-font-weight-extrabold)}p.w-9{font-weight:var(--ptc-font-weight-black)}p.margin-flush{margin-top:0;margin-bottom:0}p.margin-top-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:0}p.margin-top-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}p.margin-top-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}p.margin-top-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}p.margin-top-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}p.margin-bottom-1{margin-bottom:var(--ptc-element-spacing-01);margin-top:0}p.margin-bottom-2{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}p.margin-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-01)}p.margin-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}p.margin-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}p.margin-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}p.margin-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}p.margin-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}p.line-height-densest{line-height:var(--ptc-line-height-densest)}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-p{line-height:var(--ptc-line-height-p)}p.line-height-dense{line-height:var(--ptc-line-height-dense)}p.line-height-normal{line-height:var(--ptc-line-height-normal)}p.line-height-loose{line-height:var(--ptc-line-height-loose)}p.line-height-looser{line-height:var(--ptc-line-height-looser)}p.left{text-align:left}p.right{text-align:right}p.center{text-align:center}p.justify{text-align:justify}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-gray-07);line-height:var(--ptc-line-height-looser);letter-spacing:var(--ptc-letter-spacing-loose)}p.ellipsis-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word}";
547
178
 
548
179
  const PtcPara = class {
@@ -744,6 +375,378 @@ const PtcPicture = class {
744
375
  };
745
376
  PtcPicture.style = ptcPictureCss;
746
377
 
378
+ const ptcProductCardCss = ":host{display:block;background-color:var(--color-white);padding-top:var(--ptc-layout-spacing-03);border-radius:var(--ptc-border-radius-standard);margin-bottom:var(--ptc-layout-spacing-03)}:host .card-wrap{display:flex;align-items:center}:host .card-wrap ptc-picture{display:none}@media only screen and (min-width: 768px){:host .card-wrap ptc-picture{display:block;margin-left:var(--ptc-element-spacing-06);min-width:38px;max-width:38px}}:host .card-wrap .content{padding:0 32px 24px 32px}@media only screen and (min-width: 768px){:host .card-wrap .content{padding:0 44px 24px 44px}}@media only screen and (min-width: 1200px){:host .card-wrap .content{display:flex;align-items:center}}:host .card-wrap .content .cta-wrap{margin-left:0;margin-top:24px}@media only screen and (min-width: 1200px){:host .card-wrap .content .cta-wrap{margin-top:0px;margin-left:44px}}:host .toggle-btn{padding:16px;text-align:center;border-top:1px solid var(--color-gray-04);display:block;cursor:pointer}:host .toggle-btn svg{margin-right:var(--ptc-element-spacing-03);vertical-align:middle;margin-top:-2px}:host .product-highlights-container{padding:0px 20px 16px 20px}";
379
+
380
+ const PtcProductCard = class {
381
+ constructor(hostRef) {
382
+ registerInstance(this, hostRef);
383
+ this.cardTitle = undefined;
384
+ this.cardImage = undefined;
385
+ this.cardImageAltText = undefined;
386
+ this.cardDescription = undefined;
387
+ this.cardCtaText = undefined;
388
+ this.toggleCtaTitle = undefined;
389
+ this.isOpen = false;
390
+ this.isSlotEmpty = undefined;
391
+ }
392
+ togglePanel() {
393
+ this.isOpen = !this.isOpen;
394
+ }
395
+ render() {
396
+ return (h(Host, null, h("div", { class: "card-wrap" }, h("ptc-picture", { alt: "image-test", src: this.cardImage, "display-image": "inline-block", width: '38' }), h("div", { class: "content" }, h("div", null, h("ptc-title", { type: 'h3', upperline: "no-upperline", "title-size": "medium", "title-weight": "w-8", "title-height": "densest", "title-margin": 'margin-flush' }, h("ptc-tooltip", { "text-display": "block", "text-lines": "3", "z-index": "z-999", description: this.cardTitle, position: "bottom", width: 'full-width' })), h("ptc-para", { "font-size": "x-small", "para-margin": "margin-flush", "para-line-h": "line-height-densest", "para-z-index": "z-auto" }, h("ptc-tooltip", { "text-display": "block", "text-lines": "16", "z-index": "z-999", description: this.cardDescription, position: "bottom", width: 'full-width' }))), h("div", { class: 'cta-wrap' }, h("slot", { name: "cta" })))), this.toggleCtaTitle &&
397
+ h("ptc-para", { class: "toggle-btn", "font-size": "small", "para-margin": "margin-flush", "para-line-h": "line-height-p", "para-z-index": "z-auto", onClick: () => this.togglePanel() }, h("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("rect", { width: "18", height: "18", rx: "4", fill: "#00890B" }), this.isOpen ? (h("g", { "clip-path": "url(#clip0_187_1609)" }, h("path", { d: "M4.86328 7.98779V10.0128H14.382V7.98779H4.86328Z", fill: "white" }))) : (h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M9.953 4.23535H8.04712V8.04712H4.23535V9.953H8.04712V13.7648H9.953V9.953H13.7648V8.04712H9.953V4.23535Z", fill: "white" })), h("defs", null, h("clipPath", { id: "clip0_187_1609" }, h("rect", { width: "9.53", height: "9", fill: "white", transform: "translate(4.16328 4.23535)" })))), h("span", null, this.toggleCtaTitle)), this.isOpen && (h("div", { class: 'product-highlights-container' }, h("slot", null)))));
398
+ }
399
+ get hostElement() { return getElement(this); }
400
+ };
401
+ PtcProductCard.style = ptcProductCardCss;
402
+
403
+ const ptcProductCategoryCss = ":host{display:block;padding-bottom:var(--ptc-layout-spacing-03)}";
404
+
405
+ const PtcProductCategory = class {
406
+ constructor(hostRef) {
407
+ registerInstance(this, hostRef);
408
+ this.categoryTitle = undefined;
409
+ this.categoryDescription = undefined;
410
+ }
411
+ render() {
412
+ return (h(Host, null, h("ptc-title", { type: "h2", upperline: "no-upperline", "title-margin": "margin-flush", "title-size": "xx-large" }, h("ptc-tooltip", { "text-display": "inline", "text-lines": "4", "z-index": "z-999", description: this.categoryTitle, position: "bottom", width: 'full-width' })), h("ptc-spacer", { size: "x-small" }), h("ptc-spacer", { size: "x-small", breakpoint: "x-small" }), h("ptc-para", { "para-margin": "margin-flush", "font-size": "small", "para-line-h": "line-height-p", "font-weight": "w-5", "para-z-index": "z-auto" }, h("ptc-tooltip", { "text-display": "block", "text-lines": "9", "z-index": "z-999", description: this.categoryDescription, position: "bottom", width: 'full-width' })), h("ptc-spacer", { size: "large" }), h("slot", null)));
413
+ }
414
+ };
415
+ PtcProductCategory.style = ptcProductCategoryCss;
416
+
417
+ const ptcProductDropdownCss = ":host{display:block;margin-top:4px;background-color:var(--color-white)}:host .hidden{display:none}:host .dropdown{position:relative;display:inline-block;width:100%;font-size:16px}:host .dropdown .dropdown-toggle{padding:0.5rem;border:1px solid var(--color-gray-03);background-color:var(--color-white);cursor:pointer;display:flex;align-items:center;justify-content:space-between;min-height:34px;box-sizing:border-box}:host .dropdown .dropdown-toggle .dropdown-placeholder{font-size:14px;color:var(--color-gray-07)}:host .caret{display:inline-block;vertical-align:middle}:host .dropdown-menu{position:absolute;top:100%;left:0;min-width:10rem;border:1px solid var(--color-gray-03);background-color:var(--color-white);box-shadow:0px 2px 4px rgba(35, 43, 45, 0.3);z-index:105;max-height:400px;overflow-y:auto}:host .dropdown-menu::-webkit-scrollbar{width:5px}:host .dropdown-menu::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3)}:host .dropdown-menu::-webkit-scrollbar-thumb{background-color:var(--color-gray-05);outline:1px solid var(--color-gray-05)}:host .checkbox-label{display:flex;align-items:flex-start;padding:6px 16px;cursor:pointer;font-size:14px}:host .checkbox-label:first-child{padding-top:20px}:host .checkbox-label:last-child{padding-bottom:20px}:host .checkbox-label input[type=checkbox]{min-width:20px;margin-right:8px;width:20px;height:20px;margin-top:0}";
418
+
419
+ const PtcProductDropdown = class {
420
+ constructor(hostRef) {
421
+ registerInstance(this, hostRef);
422
+ this.selectedValues = createEvent(this, "selectedValues", 7);
423
+ this.dropdownTouched = createEvent(this, "dropdownTouched", 7);
424
+ this.internalOptions = undefined;
425
+ this.newOptions = undefined;
426
+ this.selectedOptions = [];
427
+ this.placeholder = undefined;
428
+ this.isOpen = false;
429
+ }
430
+ parseOptions() {
431
+ let options = Array.from(this.hostElement.querySelectorAll('span'));
432
+ if (options) {
433
+ this.internalOptions = options.map((option) => {
434
+ return option.textContent;
435
+ });
436
+ }
437
+ }
438
+ toggleDropdown() {
439
+ this.isOpen = !this.isOpen;
440
+ this.dropdownTouched.emit({
441
+ 'sender': this,
442
+ 'isOpen': this.isOpen
443
+ });
444
+ }
445
+ handleSearchResult(event) {
446
+ const { sender, searchTerm } = event.detail;
447
+ if (sender) {
448
+ if (searchTerm === "") {
449
+ this.selectedOptions = [];
450
+ this.isOpen = false;
451
+ }
452
+ }
453
+ }
454
+ handleinputChanged(event) {
455
+ const { sender } = event.detail;
456
+ if (sender) {
457
+ this.selectedOptions = [];
458
+ this.isOpen = false;
459
+ }
460
+ }
461
+ handleCheckboxChange(option) {
462
+ const index = this.selectedOptions.indexOf(option);
463
+ if (index > -1) {
464
+ this.selectedOptions.splice(index, 1);
465
+ //console.log(this.selectedOptions);
466
+ this.selectedValues.emit({
467
+ 'sender': this,
468
+ 'selectedOptions': this.selectedOptions
469
+ });
470
+ }
471
+ else {
472
+ this.selectedOptions.push(option);
473
+ //console.log(this.selectedOptions);
474
+ this.selectedValues.emit({
475
+ 'sender': this,
476
+ 'selectedOptions': this.selectedOptions
477
+ });
478
+ }
479
+ }
480
+ componentWillLoad() {
481
+ this.parseOptions();
482
+ }
483
+ render() {
484
+ return (h(Host, null, h("div", { class: "dropdown" }, h("div", { class: "dropdown-toggle", onClick: () => this.toggleDropdown() }, h("span", { class: "dropdown-placeholder" }, this.placeholder), h("span", { class: "caret" }, h("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M1.86537 0.917969L6.14614 4.56922L10.4269 0.917969L11.9769 2.23997L6.14614 7.21323L0.31543 2.23997L1.86537 0.917969Z", fill: "#323B42" })))), this.isOpen && (h("div", { class: "dropdown-menu" }, this.internalOptions.map((option) => (h("label", { class: "checkbox-label" }, h("input", { type: "checkbox", checked: this.selectedOptions.includes(option), onChange: () => this.handleCheckboxChange(option) }), option)))))), h("div", { class: "hidden" }, h("slot", null))));
485
+ }
486
+ get hostElement() { return getElement(this); }
487
+ };
488
+ PtcProductDropdown.style = ptcProductDropdownCss;
489
+
490
+ const ptcProductHighlightCardCss = ":host{max-width:300px;display:block;padding:18px 10px 12px 10px;border:1px solid var(--color-gray-04);border-radius:var(--ptc-border-radius-standard);margin:auto}:host ptc-picture{min-height:100px}";
491
+
492
+ const PtcProductHighlightCard = class {
493
+ constructor(hostRef) {
494
+ registerInstance(this, hostRef);
495
+ this.cardTitle = undefined;
496
+ this.cardImage = undefined;
497
+ this.cardImageAltText = undefined;
498
+ this.cardDescription = undefined;
499
+ }
500
+ render() {
501
+ return (h(Host, null, h("ptc-title", { type: 'h4', upperline: "no-upperline", "title-margin": "margin-flush", "title-size": "small", "text-align": 'center' }, h("ptc-tooltip", { "text-display": "block", "text-lines": "2", "z-index": "z-999", description: this.cardTitle, position: "bottom", width: 'full-width' })), h("ptc-picture", { alt: "image-test", src: this.cardImage, "image-alignment": "center", width: "69", "display-image": "inline-block", styles: "img{margin: 12px auto 18px auto}" }), h("ptc-para", { "font-size": "x-small", "para-margin": "margin-flush", "para-line-h": "line-height-densest", "para-align": 'left', "para-z-index": "z-auto" }, h("ptc-tooltip", { "text-display": "block", "text-lines": "3", "z-index": "z-999", description: this.cardDescription, position: "bottom", width: 'full-width' }))));
502
+ }
503
+ };
504
+ PtcProductHighlightCard.style = ptcProductHighlightCardCss;
505
+
506
+ const ptcProductListCss = ":host{display:block;padding-bottom:52px}@media only screen and (min-width: 992px){:host{padding-bottom:102px}}:host .no-result-wrap{display:none}:host .no-result-wrap.show{display:block}:host .no-result-wrap .no-result{display:flex;justify-content:center;align-items:center;min-height:160px;padding:20px;text-align:center}";
507
+
508
+ const PtcProductList = class {
509
+ constructor(hostRef) {
510
+ registerInstance(this, hostRef);
511
+ this.clearCtaClicked = createEvent(this, "clearCtaClicked", 7);
512
+ }
513
+ handleSearchResult(event) {
514
+ const { sender, searchTerm } = event.detail;
515
+ if (sender) {
516
+ this.sortCards(searchTerm);
517
+ }
518
+ }
519
+ handleMultipleSearchResult(event) {
520
+ const { sender, selectedOptions } = event.detail;
521
+ if (sender) {
522
+ this.sortMultipleCards(selectedOptions);
523
+ }
524
+ }
525
+ handleEmptyResult(event) {
526
+ const { sender, searchTerm } = event.detail;
527
+ if (sender) {
528
+ this.noresultSection.classList.add('show');
529
+ this.sortCards(searchTerm);
530
+ }
531
+ }
532
+ sortMultipleCards(searchItems) {
533
+ const categoryList = Array.from(this.hostElement.querySelectorAll('ptc-product-category'));
534
+ categoryList.forEach((category) => {
535
+ const categoryTitle = category.getAttribute('category-title');
536
+ const productList = Array.from(category.querySelectorAll('ptc-product-card'));
537
+ if (searchItems.length > 0) {
538
+ const shouldDisplayCategory = searchItems.some(searchItem => categoryTitle && categoryTitle.includes(searchItem));
539
+ category.style.display = shouldDisplayCategory ? 'block' : 'none';
540
+ if (shouldDisplayCategory) {
541
+ productList.forEach(product => {
542
+ product.style.display = 'block';
543
+ });
544
+ }
545
+ else {
546
+ productList.forEach(product => {
547
+ const productTitle = product.getAttribute('card-title');
548
+ const shouldDisplayProduct = searchItems.some(searchItem => productTitle && productTitle.includes(searchItem));
549
+ product.style.display = shouldDisplayProduct ? 'block' : 'none';
550
+ });
551
+ }
552
+ }
553
+ else {
554
+ category.style.display = 'block';
555
+ productList.forEach(product => {
556
+ product.style.display = 'block';
557
+ });
558
+ }
559
+ });
560
+ }
561
+ // Sorting the
562
+ sortCards(searchItem) {
563
+ const categoryList = this.hostElement.querySelectorAll('ptc-product-category');
564
+ categoryList.forEach((category) => {
565
+ const categoryTitle = category.getAttribute('category-title');
566
+ const productList = category.querySelectorAll('ptc-product-card');
567
+ category.style.display = 'none';
568
+ if (searchItem === '') {
569
+ category.style.display = 'block';
570
+ productList.forEach(product => {
571
+ product.style.display = 'block';
572
+ });
573
+ this.noresultSection.classList.remove('show');
574
+ }
575
+ else {
576
+ const searchItemLowerCase = searchItem; //
577
+ if (searchItemLowerCase === categoryTitle) {
578
+ category.style.display = 'block';
579
+ productList.forEach(product => {
580
+ product.style.display = 'block';
581
+ });
582
+ }
583
+ else {
584
+ productList.forEach(product => {
585
+ const productTitle = product.getAttribute('card-title');
586
+ product.style.display = 'none';
587
+ if (searchItemLowerCase === productTitle) {
588
+ product.style.display = 'block';
589
+ category.style.display = 'block';
590
+ }
591
+ });
592
+ }
593
+ }
594
+ });
595
+ }
596
+ componentDidLoad() {
597
+ this.addIds();
598
+ this.noresultSection = this.hostElement.shadowRoot.querySelector('.no-result-wrap');
599
+ this.productList = this.hostElement.shadowRoot.querySelector('.product-list');
600
+ }
601
+ handleClick(event) {
602
+ this.clearCtaClicked.emit({
603
+ 'sender': this,
604
+ 'event': event,
605
+ });
606
+ }
607
+ // Adding id to the category and product cards
608
+ addIds() {
609
+ const categoryList = this.hostElement.querySelectorAll('ptc-product-category');
610
+ categoryList.forEach((category) => {
611
+ const categoryTitle = category.getAttribute('category-title');
612
+ category.setAttribute('id', categoryTitle);
613
+ const productList = category.querySelectorAll('ptc-product-card');
614
+ productList.forEach(product => {
615
+ const productTitle = product.getAttribute('card-title');
616
+ product.setAttribute('id', productTitle);
617
+ });
618
+ });
619
+ }
620
+ render() {
621
+ return (h(Host, null, h("div", { class: "product-list" }, h("slot", null)), h("div", { class: "no-result-wrap" }, h("div", { class: "no-result" }, h("div", null, h("ptc-title", { type: 'h3', "title-margin": "margin-flush", upperline: 'no-upperline', "title-size": "large" }, "No Results Found"), h("ptc-para", { "font-size": "x-small" }, "Try changing or removing some of your filters"), h("ptc-button", { type: "link", color: "ptc-quaternary", target: "_blank", onClick: (e) => { this.handleClick(e); } }, "Clear Filters"))))));
622
+ }
623
+ get hostElement() { return getElement(this); }
624
+ };
625
+ PtcProductList.style = ptcProductListCss;
626
+
627
+ const ptcProductSidebarCss = ":host{display:block;position:relative}:host .hide{display:none !important}:host .white-box{padding:12px;background-color:var(--color-white);border-radius:var(--ptc-border-radius-standard)}:host .sort-wrap{display:block}@media only screen and (min-width: 768px){:host .sort-wrap{display:flex;justify-content:space-between}}@media only screen and (min-width: 992px){:host .sort-wrap{display:block}}:host .filter-result-wrap label{font-size:var(--ptc-font-size-x-small);font-weight:600}:host .filter-result-wrap .result-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}@media only screen and (min-width: 992px){:host .filter-result-wrap .result-header{margin-bottom:26px}}:host .filter-result-wrap .result-header .clear-cta{cursor:pointer;display:none;color:var(--color-gray-07);font-size:var(--ptc-font-size-x-small);text-decoration:underline}:host .filter-result-wrap .result-header .clear-cta.show{display:block}:host .filter-result-wrap .typeahead-input{box-sizing:border-box;margin-bottom:14px;width:100%;margin-right:0}@media only screen and (min-width: 768px){:host .filter-result-wrap .typeahead-input{margin-right:40px}}@media only screen and (min-width: 992px){:host .filter-result-wrap .typeahead-input{margin-right:0}}:host .filter-result-wrap .typeahead-input .input-wrap{position:relative}:host .filter-result-wrap .typeahead-input .input-wrap svg{position:absolute;left:8px;top:8px}:host .filter-result-wrap .typeahead-input .input-wrap input{margin-top:4px;padding:8px 8px 8px 34px;display:block;width:100%;box-sizing:border-box;border:1px solid var(--color-gray-03);font-size:14px}:host .filter-result-wrap .typeahead-input .suggestion-wrap{position:relative;width:100%}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions{border:1px solid var(--color-gray-03);box-shadow:0px 2px 4px rgba(35, 43, 45, 0.3);background-color:var(--color-white);position:absolute;z-index:105;top:0;margin:0;width:100%;box-sizing:border-box;padding:0;max-height:400px;overflow-y:auto}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar{width:5px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3)}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar-thumb{background-color:var(--color-gray-05);outline:1px solid var(--color-gray-05)}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li{list-style:none;padding:10px 16px;cursor:pointer;display:block;font-size:14px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:first-child{padding-top:20px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:last-child{padding-bottom:20px}:host .filter-result-wrap .dropdwon-filter{margin-bottom:10px;width:100%}:host .product-list-wrap{display:none}@media only screen and (min-width: 992px){:host .product-list-wrap{display:block}}:host .product-list-wrap .category-list{display:block;padding:12px 4px;font-size:var(--ptc-font-size-x-small)}:host .product-list-wrap .category-list ptc-para{padding-bottom:4px;display:block}:host .product-list-wrap .category-list ul{padding-left:20px;margin:0}";
628
+
629
+ const PtcProductSidebar = class {
630
+ constructor(hostRef) {
631
+ registerInstance(this, hostRef);
632
+ this.selectedResult = createEvent(this, "selectedResult", 7);
633
+ this.clearsearch = createEvent(this, "clearsearch", 7);
634
+ this.inputChanged = createEvent(this, "inputChanged", 7);
635
+ this.emptyResult = createEvent(this, "emptyResult", 7);
636
+ this.searchTerm = '';
637
+ this.suggestions = [];
638
+ this.suggestionList = [];
639
+ }
640
+ componentWillLoad() {
641
+ this.getDomData();
642
+ }
643
+ componentDidLoad() {
644
+ this.productListWrap = this.hostElement.shadowRoot.querySelector('.product-list-wrap');
645
+ this.clearBtn = this.hostElement.shadowRoot.querySelector('.clear-cta');
646
+ }
647
+ // Getting category title and products list
648
+ getDomData() {
649
+ const categoryList = document.querySelectorAll('ptc-product-category');
650
+ categoryList.forEach(category => {
651
+ let categoryTitle = category.getAttribute('category-title');
652
+ let categoryObject = { categoryName: categoryTitle, products: [] };
653
+ this.suggestionList.push(categoryObject);
654
+ let productList = category.querySelectorAll('ptc-product-card');
655
+ productList.forEach(product => {
656
+ let productTitle = product.getAttribute('card-title');
657
+ categoryObject.products.push(productTitle);
658
+ });
659
+ });
660
+ }
661
+ handleInputChange(event) {
662
+ const inputElement = event.target;
663
+ this.searchTerm = inputElement.value.toLocaleLowerCase();
664
+ this.productListWrap.classList.add('hide');
665
+ this.clearBtn.classList.add('show');
666
+ this.getSuggestions();
667
+ this.inputChanged.emit({
668
+ 'sender': this,
669
+ 'event': event,
670
+ });
671
+ }
672
+ getSuggestions() {
673
+ const searchTerm = this.searchTerm.toLowerCase();
674
+ const suggestions = this.suggestionList.reduce((acc, item) => {
675
+ if (item.categoryName.toLowerCase().includes(searchTerm)) {
676
+ acc.push(item.categoryName); // Include the category if it matches the search term
677
+ }
678
+ const matchedProducts = item.products.filter((product) => product.toLowerCase().includes(searchTerm));
679
+ if (matchedProducts.length > 0) {
680
+ acc.push(...matchedProducts); // Include the matching products
681
+ }
682
+ return acc;
683
+ }, []);
684
+ this.suggestions = suggestions;
685
+ }
686
+ handleSelectSuggestion(suggestion, event) {
687
+ this.searchTerm = suggestion;
688
+ //this.serachInput.setAttribute('value', this.searchTerm);
689
+ this.selectedResult.emit({
690
+ 'sender': this,
691
+ 'event': event,
692
+ 'searchTerm': this.searchTerm
693
+ });
694
+ }
695
+ handleKeyUp(e) {
696
+ const inputElement = e.target;
697
+ this.searchTerm = inputElement.value.toLocaleLowerCase();
698
+ if (e.keyCode === 13 && this.suggestions.length == 0) {
699
+ console.log('Enter key pressed');
700
+ this.emptyResult.emit({
701
+ 'sender': this,
702
+ 'event': e,
703
+ });
704
+ }
705
+ }
706
+ clearSearch(event) {
707
+ let input = this.hostElement.shadowRoot.querySelector('input');
708
+ this.productListWrap.classList.remove('hide');
709
+ this.clearBtn.classList.remove('show');
710
+ if (input) {
711
+ input.value = "";
712
+ }
713
+ this.suggestions = [];
714
+ this.clearsearch.emit({
715
+ 'sender': this,
716
+ 'event': event,
717
+ 'searchTerm': input.value
718
+ });
719
+ }
720
+ handleDropdownTouched(event) {
721
+ const { sender, isOpen } = event.detail;
722
+ if (sender) {
723
+ this.productListWrap.classList.add('hide');
724
+ this.clearBtn.classList.add('show');
725
+ if (isOpen) {
726
+ let input = this.hostElement.shadowRoot.querySelector('input');
727
+ if (input) {
728
+ input.value = "";
729
+ }
730
+ }
731
+ }
732
+ }
733
+ handleClick() {
734
+ this.suggestions = [];
735
+ }
736
+ handleclearCtaClicked(event) {
737
+ const { sender, event: mouseEvent, } = event.detail;
738
+ if (sender) {
739
+ this.clearSearch(mouseEvent);
740
+ }
741
+ }
742
+ render() {
743
+ return (h(Host, { class: 'search-box' }, h("div", { class: "filter-result-wrap white-box" }, h("div", { class: "result-header" }, h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium" }, "Filter Result"), h("span", { class: "clear-cta", onClick: (e) => this.clearSearch(e) }, "Clear")), h("div", { class: "sort-wrap" }, h("div", { class: "typeahead-input" }, h("label", { htmlFor: "searchBox" }, "Filter"), h("div", { class: "input-wrap" }, h("svg", { width: "19", height: "18", viewBox: "0 0 19 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.208984 0V1.2375L6.95898 7.65V14.2875L11.5715 17.8875V7.65L18.209 1.35V0H0.208984Z", fill: "#323B42" })), h("input", { type: "text", value: this.searchTerm, onInput: (event) => this.handleInputChange(event), onKeyUp: (e) => this.handleKeyUp(e), id: 'searchBox' })), this.suggestions.length > 0 &&
744
+ h("div", { class: "suggestion-wrap" }, h("ul", { class: "suggestions" }, this.suggestions.map((suggestion) => (h("li", { onClick: (e) => this.handleSelectSuggestion(suggestion, e) }, suggestion)))))), h("div", { class: "dropdwon-filter" }, h("label", { htmlFor: "tech-dropdown" }, "Technology"), h("ptc-product-dropdown", { placeholder: "Select a technology", id: "tech-dropdown" }, this.suggestionList.map((item) => (h("span", null, item.categoryName))))))), h("ptc-spacer", { size: "large" }), h("div", { class: "product-list-wrap white-box" }, h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium" }, "Jump to Product"), this.suggestionList.map((item) => (h("div", { class: "category-list" }, h("ptc-para", { "font-size": 'x-small', "font-weight": 'w-7', "para-line-h": "line-height-densest", "para-margin": 'margin-flush' }, h("list-item", { "list-type": "list-underline", "link-href": '#' + item.categoryName }, item.categoryName)), h("div", { class: "product-list" }, h("ul", null, item.products.map((product) => (h("list-item", { "list-type": "list-underline", "link-href": '#' + product }, product)))))))))));
745
+ }
746
+ get hostElement() { return getElement(this); }
747
+ };
748
+ PtcProductSidebar.style = ptcProductSidebarCss;
749
+
747
750
  const ptcSpacerCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.ptc-spacer-horizontal){display:inline-block;height:100% !important}:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.ptc-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.ptc-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.small){width:12px;min-width:12px}}:host(.ptc-spacer-horizontal.medium){height:100%}:host(.ptc-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.large){width:20px;min-width:20px}}:host(.ptc-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.ptc-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.ptc-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.ptc-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.ptc-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.ptc-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.ptc-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.ptc-spacer-vertical.small){height:12px;min-height:12px}}:host(.ptc-spacer-vertical.medium){width:100%}:host(.ptc-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.ptc-spacer-vertical.large){height:20px;min-height:20px}}:host(.ptc-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.ptc-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.ptc-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.ptc-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.ptc-spacer-vertical.space-144){width:100%;height:144px;min-height:144px}:host(.ptc-spacer-vertical.space-120){width:100%;height:120px;min-height:120px}:host(.ptc-spacer-vertical.space-128){width:100%;height:128px;min-height:128px}:host(.ptc-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.ptc-spacer-xx-small){display:block}}:host(.ptc-spacer-x-small){display:none}@media (max-width: 35.99em){:host(.ptc-spacer-x-small){display:block}}:host(.ptc-spacer-small){display:none}@media (min-width: 36em){:host(.ptc-spacer-small){display:block}}:host(.ptc-spacer-medium){display:none}@media (min-width: 48em){:host(.ptc-spacer-medium){display:block}}:host(.ptc-spacer-large){display:none}@media (min-width: 62em){:host(.ptc-spacer-large){display:block}}:host(.ptc-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.ptc-spacer-x-large){display:block}}:host(.ptc-spacer-xx-large){display:none}@media (min-width: 75em){:host(.ptc-spacer-xx-large){display:block}}:host(.ptc-spacer-xxx-large){display:none}@media (min-width: 90em){:host(.ptc-spacer-xxx-large){display:block}}";
748
751
 
749
752
  const PtcSpacer = class {
@@ -945,4 +948,4 @@ const PtcTooltip = class {
945
948
  };
946
949
  PtcTooltip.style = ptcTooltipCss;
947
950
 
948
- export { BundleJumbotronExample as bundle_jumbotron_example, IconAsset as icon_asset, ListItem as list_item, MaxWidthContainer as max_width_container, PtcBackgroundVideo as ptc_background_video, PtcBreadcrumb as ptc_breadcrumb, PtcButton as ptc_button, PtcImg as ptc_img, PtcJumbotron as ptc_jumbotron, PtcPara as ptc_para, PtcPicture as ptc_picture, PtcSpacer as ptc_spacer, PtcTitle as ptc_title, PtcTooltip as ptc_tooltip };
951
+ export { IconAsset as icon_asset, ListItem as list_item, PtcBackToTop as ptc_back_to_top, PtcBreadcrumb as ptc_breadcrumb, PtcButton as ptc_button, PtcPara as ptc_para, PtcPicture as ptc_picture, PtcProductCard as ptc_product_card, PtcProductCategory as ptc_product_category, PtcProductDropdown as ptc_product_dropdown, PtcProductHighlightCard as ptc_product_highlight_card, PtcProductList as ptc_product_list, PtcProductSidebar as ptc_product_sidebar, PtcSpacer as ptc_spacer, PtcTitle as ptc_title, PtcTooltip as ptc_tooltip };