@ptcwebops/ptcw-design 1.5.7 → 1.5.9

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 (99) hide show
  1. package/dist/cjs/{icon-asset_16.cjs.entry.js → bundle-jumbotron-example_14.cjs.entry.js} +401 -407
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/ptc-back-to-top.cjs.entry.js +46 -0
  4. package/dist/cjs/ptc-card.cjs.entry.js +1 -1
  5. package/dist/cjs/ptc-link.cjs.entry.js +1 -1
  6. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
  7. package/dist/cjs/ptc-product-card.cjs.entry.js +33 -0
  8. package/dist/cjs/ptc-product-category.cjs.entry.js +21 -0
  9. package/dist/cjs/ptc-product-dropdown.cjs.entry.js +80 -0
  10. package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +23 -0
  11. package/dist/cjs/ptc-product-list.cjs.entry.js +128 -0
  12. package/dist/cjs/ptc-product-sidebar.cjs.entry.js +130 -0
  13. package/dist/cjs/{ptc-social-share.cjs.entry.js → ptc-progress-bar_2.cjs.entry.js} +26 -5
  14. package/dist/cjs/ptc-slit-card.cjs.entry.js +36 -0
  15. package/dist/cjs/ptc-span.cjs.entry.js +3 -1
  16. package/dist/cjs/ptc-sticky-title.cjs.entry.js +34 -0
  17. package/dist/cjs/ptcw-design.cjs.js +1 -1
  18. package/dist/collection/collection-manifest.json +3 -0
  19. package/dist/collection/components/icon-asset/media/designer.svg +36 -0
  20. package/dist/collection/components/max-width-container/max-width-container.js +19 -1
  21. package/dist/collection/components/ptc-card/ptc-card.css +4 -4
  22. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +48 -0
  23. package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +1 -1
  24. package/dist/collection/components/ptc-link/ptc-link.css +23 -1
  25. package/dist/collection/components/ptc-link/ptc-link.js +2 -2
  26. package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +48 -0
  27. package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.css +13 -0
  28. package/dist/collection/components/ptc-progress-bar/ptc-progress-bar.js +42 -0
  29. package/dist/collection/components/ptc-slit-card/ptc-slit-card.css +64 -0
  30. package/dist/collection/components/ptc-slit-card/ptc-slit-card.js +181 -0
  31. package/dist/collection/components/ptc-social-share/ptc-social-share.js +7 -7
  32. package/dist/collection/components/ptc-span/ptc-span.css +34 -0
  33. package/dist/collection/components/ptc-span/ptc-span.js +22 -2
  34. package/dist/collection/components/ptc-sticky-title/media/logo.png +0 -0
  35. package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.css +115 -0
  36. package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.js +89 -0
  37. package/dist/custom-elements/index.d.ts +18 -0
  38. package/dist/custom-elements/index.js +106 -15
  39. package/dist/esm/{icon-asset_16.entry.js → bundle-jumbotron-example_14.entry.js} +396 -400
  40. package/dist/esm/loader.js +1 -1
  41. package/dist/esm/ptc-back-to-top.entry.js +42 -0
  42. package/dist/esm/ptc-card.entry.js +1 -1
  43. package/dist/esm/ptc-link.entry.js +1 -1
  44. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  45. package/dist/esm/ptc-product-card.entry.js +29 -0
  46. package/dist/esm/ptc-product-category.entry.js +17 -0
  47. package/dist/esm/ptc-product-dropdown.entry.js +76 -0
  48. package/dist/esm/ptc-product-highlight-card.entry.js +19 -0
  49. package/dist/esm/ptc-product-list.entry.js +124 -0
  50. package/dist/esm/ptc-product-sidebar.entry.js +126 -0
  51. package/dist/esm/{ptc-social-share.entry.js → ptc-progress-bar_2.entry.js} +26 -6
  52. package/dist/esm/ptc-slit-card.entry.js +32 -0
  53. package/dist/esm/ptc-span.entry.js +3 -1
  54. package/dist/esm/ptc-sticky-title.entry.js +30 -0
  55. package/dist/esm/ptcw-design.js +1 -1
  56. package/dist/ptcw-design/media/designer.svg +36 -0
  57. package/dist/ptcw-design/media/logo.png +0 -0
  58. package/dist/ptcw-design/{p-9703a463.entry.js → p-046b0224.entry.js} +1 -1
  59. package/dist/ptcw-design/p-19ec063d.entry.js +1 -0
  60. package/dist/ptcw-design/{p-078e0f3d.entry.js → p-2404b2db.entry.js} +1 -1
  61. package/dist/ptcw-design/p-43e72cf0.entry.js +1 -0
  62. package/dist/ptcw-design/p-49dc9b68.entry.js +1 -0
  63. package/dist/ptcw-design/p-65513c45.entry.js +1 -0
  64. package/dist/ptcw-design/p-6c08595d.entry.js +1 -0
  65. package/dist/ptcw-design/p-798c2328.entry.js +1 -0
  66. package/dist/ptcw-design/p-8148b960.entry.js +1 -0
  67. package/dist/ptcw-design/p-ac5dfbd0.entry.js +1 -0
  68. package/dist/ptcw-design/p-af3a4142.entry.js +1 -0
  69. package/dist/ptcw-design/p-c26920ef.entry.js +1 -0
  70. package/dist/ptcw-design/{p-325b2d5c.entry.js → p-c2c85e61.entry.js} +1 -1
  71. package/dist/ptcw-design/p-cd44eedb.entry.js +1 -0
  72. package/dist/ptcw-design/p-e341cb46.entry.js +1 -0
  73. package/dist/ptcw-design/ptcw-design.css +1 -1
  74. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  75. package/dist/types/components/max-width-container/max-width-container.d.ts +4 -0
  76. package/dist/types/components/ptc-link/ptc-link.d.ts +1 -1
  77. package/dist/types/components/ptc-progress-bar/ptc-progress-bar.d.ts +5 -0
  78. package/dist/types/components/ptc-slit-card/ptc-slit-card.d.ts +36 -0
  79. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +1 -1
  80. package/dist/types/components/ptc-span/ptc-span.d.ts +5 -1
  81. package/dist/types/components/ptc-sticky-title/ptc-sticky-title.d.ts +8 -0
  82. package/dist/types/components.d.ts +135 -6
  83. package/package.json +1 -1
  84. package/readme.md +1 -1
  85. package/dist/cjs/bundle-jumbotron-example.cjs.entry.js +0 -50
  86. package/dist/cjs/interfaces-574e6df7.js +0 -15
  87. package/dist/cjs/max-width-container_3.cjs.entry.js +0 -236
  88. package/dist/cjs/ptc-jumbotron.cjs.entry.js +0 -135
  89. package/dist/esm/bundle-jumbotron-example.entry.js +0 -46
  90. package/dist/esm/interfaces-7c0243be.js +0 -12
  91. package/dist/esm/max-width-container_3.entry.js +0 -230
  92. package/dist/esm/ptc-jumbotron.entry.js +0 -131
  93. package/dist/ptcw-design/p-0f8784e9.entry.js +0 -1
  94. package/dist/ptcw-design/p-45771c7d.entry.js +0 -1
  95. package/dist/ptcw-design/p-609d4967.entry.js +0 -1
  96. package/dist/ptcw-design/p-6e8222ce.entry.js +0 -1
  97. package/dist/ptcw-design/p-73ea7065.entry.js +0 -1
  98. package/dist/ptcw-design/p-7c0ee168.entry.js +0 -1
  99. package/dist/ptcw-design/p-ee1183b2.js +0 -1
@@ -1,5 +1,47 @@
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';
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;
3
45
 
4
46
  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}";
5
47
 
@@ -73,44 +115,107 @@ const ListItem = class {
73
115
  };
74
116
  ListItem.style = listItemCss;
75
117
 
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}";
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}";
77
119
 
78
- const PtcBackToTop = class {
120
+ const MaxWidthContainer = class {
79
121
  constructor(hostRef) {
80
122
  registerInstance(this, hostRef);
81
- this.handleScroll = () => {
82
- const scrollY = window.pageYOffset || document.documentElement.scrollTop;
83
- this.showButton = scrollY > window.innerHeight * 1;
84
- };
85
- this.showButton = false;
123
+ this.maxWidth = undefined;
124
+ this.breakpoint = 768;
125
+ this.contentAlign = 'center';
126
+ this.styles = undefined;
86
127
  }
87
128
  componentDidLoad() {
88
- window.addEventListener('scroll', this.handleScroll);
129
+ this.handleResize();
130
+ window.addEventListener('resize', this.handleResize.bind(this));
89
131
  }
90
132
  disconnectedCallback() {
91
- window.removeEventListener('scroll', this.handleScroll);
133
+ window.removeEventListener('resize', this.handleResize);
92
134
  }
93
- handleClick() {
94
- this.scrollToTop();
135
+ render() {
136
+ const classMap = this.getCssClassMap();
137
+ return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("slot", null)));
95
138
  }
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);
139
+ getCssClassMap() {
140
+ return {
141
+ [this.contentAlign]: true,
142
+ };
143
+ }
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
+ }
107
153
  }
108
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
+ }
109
199
  render() {
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")))));
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
+ }
111
215
  }
216
+ get el() { return getElement(this); }
112
217
  };
113
- PtcBackToTop.style = ptcBackToTopCss;
218
+ PtcBackgroundVideo.style = ptcBackgroundVideoCss;
114
219
 
115
220
  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}";
116
221
 
@@ -174,6 +279,270 @@ const PtcButton = class {
174
279
  };
175
280
  PtcButton.style = ptcButtonCss;
176
281
 
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: 9999}" }, 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
+
177
546
  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}";
178
547
 
179
548
  const PtcPara = class {
@@ -375,379 +744,6 @@ const PtcPicture = class {
375
744
  };
376
745
  PtcPicture.style = ptcPictureCss;
377
746
 
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 38px 24px 38px}@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.isOpenProductHighlight = createEvent(this, "isOpenProductHighlight", 7);
384
- this.cardTitle = undefined;
385
- this.cardImage = undefined;
386
- this.cardImageAltText = undefined;
387
- this.cardDescription = undefined;
388
- this.cardCtaText = undefined;
389
- this.toggleCtaTitle = undefined;
390
- this.isOpen = false;
391
- this.isSlotEmpty = undefined;
392
- }
393
- togglePanel() {
394
- this.isOpen = !this.isOpen;
395
- }
396
- render() {
397
- 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 &&
398
- 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.86365 7.98779V10.0128H14.3824V7.98779H4.86365Z", 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.51872", height: "9.52941", fill: "white", transform: "translate(4.86365 4.23535)" })))), h("span", null, this.toggleCtaTitle)), this.isOpen && (h("div", { class: 'product-highlights-container' }, h("slot", null)))));
399
- }
400
- get hostElement() { return getElement(this); }
401
- };
402
- PtcProductCard.style = ptcProductCardCss;
403
-
404
- const ptcProductCategoryCss = ":host{display:block;padding-bottom:var(--ptc-layout-spacing-03)}";
405
-
406
- const PtcProductCategory = class {
407
- constructor(hostRef) {
408
- registerInstance(this, hostRef);
409
- this.categoryTitle = undefined;
410
- this.categoryDescription = undefined;
411
- }
412
- render() {
413
- 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)));
414
- }
415
- };
416
- PtcProductCategory.style = ptcProductCategoryCss;
417
-
418
- 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}:host .dropdown .dropdown-toggle .dropdown-placeholder{font-size:14px;color:var(--color-gray-07)}:host .caret{display:inline-block;margin-left:0.25rem;width:0;height:0;border-top:0.4rem solid;border-right:0.4rem solid transparent;border-left:0.4rem solid transparent;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}";
419
-
420
- const PtcProductDropdown = class {
421
- constructor(hostRef) {
422
- registerInstance(this, hostRef);
423
- this.selectedValues = createEvent(this, "selectedValues", 7);
424
- this.dropdownTouched = createEvent(this, "dropdownTouched", 7);
425
- this.internalOptions = undefined;
426
- this.newOptions = undefined;
427
- this.selectedOptions = [];
428
- this.placeholder = undefined;
429
- this.isOpen = false;
430
- }
431
- parseOptions() {
432
- let options = Array.from(this.hostElement.querySelectorAll('span'));
433
- if (options) {
434
- this.internalOptions = options.map((option) => {
435
- return option.textContent;
436
- });
437
- }
438
- }
439
- toggleDropdown() {
440
- this.isOpen = !this.isOpen;
441
- this.dropdownTouched.emit({
442
- 'sender': this,
443
- 'isOpen': this.isOpen
444
- });
445
- }
446
- handleSearchResult(event) {
447
- const { sender, searchTerm } = event.detail;
448
- if (sender) {
449
- if (searchTerm === "") {
450
- this.selectedOptions = [];
451
- this.isOpen = false;
452
- }
453
- }
454
- }
455
- handleinputChanged(event) {
456
- const { sender } = event.detail;
457
- if (sender) {
458
- this.selectedOptions = [];
459
- this.isOpen = false;
460
- }
461
- }
462
- handleCheckboxChange(option) {
463
- const index = this.selectedOptions.indexOf(option);
464
- if (index > -1) {
465
- this.selectedOptions.splice(index, 1);
466
- //console.log(this.selectedOptions);
467
- this.selectedValues.emit({
468
- 'sender': this,
469
- 'selectedOptions': this.selectedOptions
470
- });
471
- }
472
- else {
473
- this.selectedOptions.push(option);
474
- //console.log(this.selectedOptions);
475
- this.selectedValues.emit({
476
- 'sender': this,
477
- 'selectedOptions': this.selectedOptions
478
- });
479
- }
480
- }
481
- componentWillLoad() {
482
- this.parseOptions();
483
- }
484
- render() {
485
- 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" })), 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))));
486
- }
487
- get hostElement() { return getElement(this); }
488
- };
489
- PtcProductDropdown.style = ptcProductDropdownCss;
490
-
491
- 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}";
492
-
493
- const PtcProductHighlightCard = class {
494
- constructor(hostRef) {
495
- registerInstance(this, hostRef);
496
- this.cardTitle = undefined;
497
- this.cardImage = undefined;
498
- this.cardImageAltText = undefined;
499
- this.cardDescription = undefined;
500
- }
501
- render() {
502
- 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' }))));
503
- }
504
- };
505
- PtcProductHighlightCard.style = ptcProductHighlightCardCss;
506
-
507
- 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}";
508
-
509
- const PtcProductList = class {
510
- constructor(hostRef) {
511
- registerInstance(this, hostRef);
512
- this.clearCtaClicked = createEvent(this, "clearCtaClicked", 7);
513
- }
514
- handleSearchResult(event) {
515
- const { sender, searchTerm } = event.detail;
516
- if (sender) {
517
- this.sortCards(searchTerm);
518
- }
519
- }
520
- handleMultipleSearchResult(event) {
521
- const { sender, selectedOptions } = event.detail;
522
- if (sender) {
523
- this.sortMultipleCards(selectedOptions);
524
- }
525
- }
526
- handleEmptyResult(event) {
527
- const { sender, searchTerm } = event.detail;
528
- if (sender) {
529
- this.noresultSection.classList.add('show');
530
- this.sortCards(searchTerm);
531
- }
532
- }
533
- sortMultipleCards(searchItems) {
534
- const categoryList = Array.from(this.hostElement.querySelectorAll('ptc-product-category'));
535
- categoryList.forEach((category) => {
536
- const categoryTitle = category.getAttribute('category-title');
537
- const productList = Array.from(category.querySelectorAll('ptc-product-card'));
538
- if (searchItems.length > 0) {
539
- const shouldDisplayCategory = searchItems.some(searchItem => categoryTitle && categoryTitle.includes(searchItem));
540
- category.style.display = shouldDisplayCategory ? 'block' : 'none';
541
- if (shouldDisplayCategory) {
542
- productList.forEach(product => {
543
- product.style.display = 'block';
544
- });
545
- }
546
- else {
547
- productList.forEach(product => {
548
- const productTitle = product.getAttribute('card-title');
549
- const shouldDisplayProduct = searchItems.some(searchItem => productTitle && productTitle.includes(searchItem));
550
- product.style.display = shouldDisplayProduct ? 'block' : 'none';
551
- });
552
- }
553
- }
554
- else {
555
- category.style.display = 'block';
556
- productList.forEach(product => {
557
- product.style.display = 'block';
558
- });
559
- }
560
- });
561
- }
562
- // Sorting the
563
- sortCards(searchItem) {
564
- const categoryList = this.hostElement.querySelectorAll('ptc-product-category');
565
- categoryList.forEach((category) => {
566
- const categoryTitle = category.getAttribute('category-title');
567
- const productList = category.querySelectorAll('ptc-product-card');
568
- category.style.display = 'none';
569
- if (searchItem === '') {
570
- category.style.display = 'block';
571
- productList.forEach(product => {
572
- product.style.display = 'block';
573
- });
574
- this.noresultSection.classList.remove('show');
575
- }
576
- else {
577
- const searchItemLowerCase = searchItem; //
578
- if (searchItemLowerCase === categoryTitle) {
579
- category.style.display = 'block';
580
- productList.forEach(product => {
581
- product.style.display = 'block';
582
- });
583
- }
584
- else {
585
- productList.forEach(product => {
586
- const productTitle = product.getAttribute('card-title');
587
- product.style.display = 'none';
588
- if (searchItemLowerCase === productTitle) {
589
- product.style.display = 'block';
590
- category.style.display = 'block';
591
- }
592
- });
593
- }
594
- }
595
- });
596
- }
597
- componentDidLoad() {
598
- this.addIds();
599
- this.noresultSection = this.hostElement.shadowRoot.querySelector('.no-result-wrap');
600
- this.productList = this.hostElement.shadowRoot.querySelector('.product-list');
601
- }
602
- handleClick(event) {
603
- this.clearCtaClicked.emit({
604
- 'sender': this,
605
- 'event': event,
606
- });
607
- }
608
- // Adding id to the category and product cards
609
- addIds() {
610
- const categoryList = this.hostElement.querySelectorAll('ptc-product-category');
611
- categoryList.forEach((category) => {
612
- const categoryTitle = category.getAttribute('category-title');
613
- category.setAttribute('id', categoryTitle);
614
- const productList = category.querySelectorAll('ptc-product-card');
615
- productList.forEach(product => {
616
- const productTitle = product.getAttribute('card-title');
617
- product.setAttribute('id', productTitle);
618
- });
619
- });
620
- }
621
- render() {
622
- 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"))))));
623
- }
624
- get hostElement() { return getElement(this); }
625
- };
626
- PtcProductList.style = ptcProductListCss;
627
-
628
- 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: 480px){: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: 480px){: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}";
629
-
630
- const PtcProductSidebar = class {
631
- constructor(hostRef) {
632
- registerInstance(this, hostRef);
633
- this.selectedResult = createEvent(this, "selectedResult", 7);
634
- this.clearsearch = createEvent(this, "clearsearch", 7);
635
- this.inputChanged = createEvent(this, "inputChanged", 7);
636
- this.emptyResult = createEvent(this, "emptyResult", 7);
637
- this.searchTerm = '';
638
- this.suggestions = [];
639
- this.suggestionList = [];
640
- }
641
- componentWillLoad() {
642
- this.getDomData();
643
- }
644
- componentDidLoad() {
645
- this.productListWrap = this.hostElement.shadowRoot.querySelector('.product-list-wrap');
646
- this.clearBtn = this.hostElement.shadowRoot.querySelector('.clear-cta');
647
- }
648
- // Getting category title and products list
649
- getDomData() {
650
- const categoryList = document.querySelectorAll('ptc-product-category');
651
- categoryList.forEach(category => {
652
- let categoryTitle = category.getAttribute('category-title');
653
- let categoryObject = { categoryName: categoryTitle, products: [] };
654
- this.suggestionList.push(categoryObject);
655
- let productList = category.querySelectorAll('ptc-product-card');
656
- productList.forEach(product => {
657
- let productTitle = product.getAttribute('card-title');
658
- categoryObject.products.push(productTitle);
659
- });
660
- });
661
- }
662
- handleInputChange(event) {
663
- const inputElement = event.target;
664
- this.searchTerm = inputElement.value.toLocaleLowerCase();
665
- this.productListWrap.classList.add('hide');
666
- this.clearBtn.classList.add('show');
667
- this.getSuggestions();
668
- this.inputChanged.emit({
669
- 'sender': this,
670
- 'event': event,
671
- });
672
- }
673
- getSuggestions() {
674
- const searchTerm = this.searchTerm.toLowerCase();
675
- const suggestions = this.suggestionList.reduce((acc, item) => {
676
- if (item.categoryName.toLowerCase().includes(searchTerm)) {
677
- acc.push(item.categoryName); // Include the category if it matches the search term
678
- }
679
- const matchedProducts = item.products.filter((product) => product.toLowerCase().includes(searchTerm));
680
- if (matchedProducts.length > 0) {
681
- acc.push(...matchedProducts); // Include the matching products
682
- }
683
- return acc;
684
- }, []);
685
- this.suggestions = suggestions;
686
- }
687
- handleSelectSuggestion(suggestion, event) {
688
- this.searchTerm = suggestion;
689
- //this.serachInput.setAttribute('value', this.searchTerm);
690
- this.selectedResult.emit({
691
- 'sender': this,
692
- 'event': event,
693
- 'searchTerm': this.searchTerm
694
- });
695
- }
696
- handleKeyUp(e) {
697
- const inputElement = e.target;
698
- this.searchTerm = inputElement.value.toLocaleLowerCase();
699
- if (e.keyCode === 13 && this.suggestions.length == 0) {
700
- console.log('Enter key pressed');
701
- this.emptyResult.emit({
702
- 'sender': this,
703
- 'event': e,
704
- });
705
- }
706
- }
707
- clearSearch(event) {
708
- let input = this.hostElement.shadowRoot.querySelector('input');
709
- this.productListWrap.classList.remove('hide');
710
- this.clearBtn.classList.remove('show');
711
- if (input) {
712
- input.value = "";
713
- }
714
- this.suggestions = [];
715
- this.clearsearch.emit({
716
- 'sender': this,
717
- 'event': event,
718
- 'searchTerm': input.value
719
- });
720
- }
721
- handleDropdownTouched(event) {
722
- const { sender, isOpen } = event.detail;
723
- if (sender) {
724
- this.productListWrap.classList.add('hide');
725
- this.clearBtn.classList.add('show');
726
- if (isOpen) {
727
- let input = this.hostElement.shadowRoot.querySelector('input');
728
- if (input) {
729
- input.value = "";
730
- }
731
- }
732
- }
733
- }
734
- handleClick() {
735
- this.suggestions = [];
736
- }
737
- handleclearCtaClicked(event) {
738
- const { sender, event: mouseEvent, } = event.detail;
739
- if (sender) {
740
- this.clearSearch(mouseEvent);
741
- }
742
- }
743
- render() {
744
- 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 &&
745
- 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)))))))))));
746
- }
747
- get hostElement() { return getElement(this); }
748
- };
749
- PtcProductSidebar.style = ptcProductSidebarCss;
750
-
751
747
  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}}";
752
748
 
753
749
  const PtcSpacer = class {
@@ -949,4 +945,4 @@ const PtcTooltip = class {
949
945
  };
950
946
  PtcTooltip.style = ptcTooltipCss;
951
947
 
952
- 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 };
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 };