@ptcwebops/ptcw-design 6.3.2 → 6.3.3

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 (128) hide show
  1. package/dist/cjs/{component-5b5b6a98.js → component-1b8ad4d2.js} +1 -1
  2. package/dist/cjs/{component-06dda623.js → component-35540bfb.js} +1 -1
  3. package/dist/cjs/event-jumbotron-example.cjs.entry.js +196 -0
  4. package/dist/cjs/focus-trap.esm-8c5a8938.js +1558 -0
  5. package/dist/cjs/icon-asset.cjs.entry.js +65 -0
  6. package/dist/cjs/list-item.cjs.entry.js +48 -0
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +47 -0
  9. package/dist/cjs/ptc-button.cjs.entry.js +87 -0
  10. package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +156 -0
  11. package/dist/cjs/ptc-card-content.cjs.entry.js +76 -0
  12. package/dist/cjs/ptc-close-icon_2.cjs.entry.js +336 -0
  13. package/dist/cjs/ptc-data-lookup.cjs.entry.js +2 -2
  14. package/dist/cjs/ptc-form-checkbox_2.cjs.entry.js +1 -1
  15. package/dist/cjs/ptc-icon-list.cjs.entry.js +2 -2
  16. package/dist/cjs/ptc-img.cjs.entry.js +133 -0
  17. package/dist/cjs/ptc-link.cjs.entry.js +87 -0
  18. package/dist/cjs/ptc-multi-select_2.cjs.entry.js +2 -2
  19. package/dist/cjs/ptc-office-location-card.cjs.entry.js +3 -2
  20. package/dist/cjs/ptc-office-locations.cjs.entry.js +5 -0
  21. package/dist/cjs/ptc-para.cjs.entry.js +127 -0
  22. package/dist/cjs/ptc-scroll-button.cjs.entry.js +136 -0
  23. package/dist/cjs/ptc-spacer.cjs.entry.js +38 -0
  24. package/dist/cjs/ptc-title.cjs.entry.js +152 -0
  25. package/dist/cjs/ptcw-design.cjs.js +1 -1
  26. package/dist/collection/components/ptc-icon-list/ptc-icon-list.css +6 -0
  27. package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +1 -1
  28. package/dist/collection/components/ptc-office-location-card/ptc-office-location-card.js +3 -2
  29. package/dist/collection/components/ptc-office-locations/ptc-office-locations.js +5 -0
  30. package/dist/custom-elements/index.js +11 -5
  31. package/dist/esm/blog-detail-content_2.entry.js +1 -1
  32. package/dist/esm/blog-detail-layout.entry.js +1 -1
  33. package/dist/esm/blogs-search-section.entry.js +1 -1
  34. package/dist/esm/{component-274da230.js → component-8c53e377.js} +1 -1
  35. package/dist/esm/{component-341e4eaa.js → component-9beac35b.js} +1 -1
  36. package/dist/esm/event-jumbotron-example.entry.js +192 -0
  37. package/dist/esm/focus-trap.esm-d205300d.js +1556 -0
  38. package/dist/esm/homepage-jumbotron.entry.js +1 -1
  39. package/dist/esm/homepage-toggled-content.entry.js +1 -1
  40. package/dist/esm/icon-asset.entry.js +61 -0
  41. package/dist/esm/list-item.entry.js +44 -0
  42. package/dist/esm/loader.js +1 -1
  43. package/dist/esm/most-popular-news.entry.js +1 -1
  44. package/dist/esm/my-component.entry.js +1 -1
  45. package/dist/esm/ptc-accordion-item.entry.js +1 -1
  46. package/dist/esm/ptc-background-video.entry.js +1 -1
  47. package/dist/esm/ptc-breadcrumb.entry.js +43 -0
  48. package/dist/esm/ptc-button.entry.js +83 -0
  49. package/dist/esm/ptc-card-bottom_2.entry.js +151 -0
  50. package/dist/esm/ptc-card-content.entry.js +72 -0
  51. package/dist/esm/ptc-close-icon_2.entry.js +331 -0
  52. package/dist/esm/ptc-collapse-list.entry.js +1 -1
  53. package/dist/esm/ptc-data-lookup.entry.js +2 -2
  54. package/dist/esm/ptc-form-checkbox_2.entry.js +2 -2
  55. package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
  56. package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
  57. package/dist/esm/ptc-icon-card.entry.js +1 -1
  58. package/dist/esm/ptc-icon-list.entry.js +2 -2
  59. package/dist/esm/ptc-img.entry.js +129 -0
  60. package/dist/esm/ptc-link.entry.js +83 -0
  61. package/dist/esm/ptc-media-card.entry.js +1 -1
  62. package/dist/esm/ptc-multi-select_2.entry.js +3 -3
  63. package/dist/esm/ptc-office-location-card.entry.js +3 -2
  64. package/dist/esm/ptc-office-locations.entry.js +5 -0
  65. package/dist/esm/ptc-para.entry.js +123 -0
  66. package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
  67. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  68. package/dist/esm/ptc-scroll-button.entry.js +132 -0
  69. package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
  70. package/dist/esm/ptc-spacer.entry.js +34 -0
  71. package/dist/esm/ptc-title.entry.js +148 -0
  72. package/dist/esm/ptcw-design.js +1 -1
  73. package/dist/esm/{utils-ff65c75b.js → utils-63eab4bd.js} +1 -1
  74. package/dist/ptcw-design/p-01075feb.entry.js +1 -0
  75. package/dist/ptcw-design/p-0b33279e.js +10 -0
  76. package/dist/ptcw-design/p-0c69ea52.entry.js +1 -0
  77. package/dist/ptcw-design/{p-e0b873d0.entry.js → p-16e70f20.entry.js} +1 -1
  78. package/dist/ptcw-design/{p-ae970a60.entry.js → p-17f6e145.entry.js} +1 -1
  79. package/dist/ptcw-design/p-25a25451.entry.js +1 -0
  80. package/dist/ptcw-design/{p-e4000363.entry.js → p-28be539b.entry.js} +1 -1
  81. package/dist/ptcw-design/{p-ec7fb1fb.entry.js → p-2cb2de0f.entry.js} +1 -1
  82. package/dist/ptcw-design/p-42992202.entry.js +1 -0
  83. package/dist/ptcw-design/{p-d9abe7e8.entry.js → p-48c33817.entry.js} +1 -1
  84. package/dist/ptcw-design/{p-e3f8e5d5.entry.js → p-49e54079.entry.js} +1 -1
  85. package/dist/ptcw-design/{p-2c6fc745.entry.js → p-4ee98a3e.entry.js} +1 -1
  86. package/dist/ptcw-design/{p-1ca8a5bf.entry.js → p-5dae4f30.entry.js} +1 -1
  87. package/dist/ptcw-design/{p-d10cb999.entry.js → p-627103d8.entry.js} +1 -1
  88. package/dist/ptcw-design/{p-c95f423e.entry.js → p-6a3caf2b.entry.js} +1 -1
  89. package/dist/ptcw-design/{p-7a9611b4.entry.js → p-6f5fecae.entry.js} +1 -1
  90. package/dist/ptcw-design/p-7793babb.entry.js +1 -0
  91. package/dist/ptcw-design/{p-8872161f.js → p-77b1221e.js} +1 -1
  92. package/dist/ptcw-design/p-7a3e9ecd.entry.js +1 -0
  93. package/dist/ptcw-design/p-7fb155da.entry.js +1 -0
  94. package/dist/ptcw-design/p-7fe4d383.entry.js +1 -0
  95. package/dist/ptcw-design/{p-c37a3bd2.entry.js → p-821f0ff9.entry.js} +1 -1
  96. package/dist/ptcw-design/p-92d22c78.entry.js +1 -0
  97. package/dist/ptcw-design/{p-be533f0d.js → p-98844b50.js} +1 -1
  98. package/dist/ptcw-design/p-99355e65.entry.js +1 -0
  99. package/dist/ptcw-design/p-a3822c52.entry.js +1 -0
  100. package/dist/ptcw-design/{p-918fb77d.entry.js → p-b52301e2.entry.js} +1 -1
  101. package/dist/ptcw-design/p-b651c1cb.entry.js +1 -0
  102. package/dist/ptcw-design/p-b8ee8699.entry.js +1 -0
  103. package/dist/ptcw-design/p-bf18b622.entry.js +1 -0
  104. package/dist/ptcw-design/p-bf3bc577.entry.js +1 -0
  105. package/dist/ptcw-design/{p-1b257420.entry.js → p-c01ea76f.entry.js} +1 -1
  106. package/dist/ptcw-design/{p-6d3326da.entry.js → p-cbee4653.entry.js} +1 -1
  107. package/dist/ptcw-design/{p-c66b8926.entry.js → p-d3229458.entry.js} +1 -1
  108. package/dist/ptcw-design/{p-cfa6996d.entry.js → p-dd02e4d6.entry.js} +1 -1
  109. package/dist/ptcw-design/{p-da82dc93.entry.js → p-e577ad62.entry.js} +1 -1
  110. package/dist/ptcw-design/{p-808ec62a.entry.js → p-eec2f3da.entry.js} +1 -1
  111. package/dist/ptcw-design/p-f4eb6d0a.entry.js +1 -0
  112. package/dist/ptcw-design/{p-36007a57.entry.js → p-fd394e84.entry.js} +1 -1
  113. package/dist/ptcw-design/p-feecf6b5.entry.js +1 -0
  114. package/dist/ptcw-design/ptcw-design.css +1 -1
  115. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  116. package/dist/types/components/ptc-office-location-card/ptc-office-location-card.d.ts +1 -1
  117. package/package.json +1 -1
  118. package/readme.md +1 -1
  119. package/dist/cjs/event-jumbotron-example_15.cjs.entry.js +0 -3095
  120. package/dist/cjs/ptc-card-bottom.cjs.entry.js +0 -67
  121. package/dist/esm/event-jumbotron-example_15.entry.js +0 -3077
  122. package/dist/esm/ptc-card-bottom.entry.js +0 -63
  123. package/dist/ptcw-design/p-1a6759a4.entry.js +0 -1
  124. package/dist/ptcw-design/p-48815ee0.entry.js +0 -1
  125. package/dist/ptcw-design/p-8cd1d668.entry.js +0 -11
  126. package/dist/ptcw-design/p-9fe0c27d.entry.js +0 -1
  127. package/dist/ptcw-design/p-dbbe35bf.entry.js +0 -1
  128. /package/dist/ptcw-design/{p-c1513c3f.js → p-98426799.js} +0 -0
@@ -0,0 +1,132 @@
1
+ import { r as registerInstance, h, H as Host } from './index-c83db688.js';
2
+
3
+ const ptcScrollButtonCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}.scroll-btn{position:absolute;top:50%;transform:translate(0%, -50%);display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:0px 4px 4px 0px;background:var(--color-gray-12);box-shadow:var(--ptc-shadow-medium);width:36px;height:36px;padding:var(--ptc-element-spacing-02)}.scroll-btn.left{left:0%}.scroll-btn.right{left:100%;transform:translate(-100%, -50%)}.scroll-btn:focus{outline:none}.scroll-btn[tabIndex=\"0\"]:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}.scroll-btn icon-asset{width:20px;height:20px}";
4
+
5
+ const PtcScrollButton = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ //slider!: HTMLElement;
9
+ this.startX = 0;
10
+ this.scrollLeft = 0;
11
+ this.startDragging = (e) => {
12
+ this.isMouseDown = true;
13
+ this.isDragging = false;
14
+ this.containerCards.forEach((card) => {
15
+ card.disabled = false;
16
+ });
17
+ this.startX = e.pageX;
18
+ this.scrollLeft = this.scrollContainer.scrollLeft;
19
+ };
20
+ this.performDragging = (e) => {
21
+ if (!this.isMouseDown)
22
+ return;
23
+ const x = e.pageX - this.scrollContainer.offsetLeft;
24
+ const walk = x - this.startX;
25
+ this.isDragging = Math.abs(walk) > 5;
26
+ this.scrollContainer.scrollLeft = this.scrollLeft - walk;
27
+ this.containerCards.forEach((card) => {
28
+ card.disabled = true;
29
+ });
30
+ };
31
+ this.stopDragging = () => {
32
+ this.isMouseDown = false;
33
+ this.containerCards.forEach((card) => {
34
+ card.disabled = false;
35
+ });
36
+ };
37
+ this.handleScroll = () => {
38
+ this.updateVisibility();
39
+ };
40
+ this.handleClick = () => {
41
+ if (!this.scrollContainer)
42
+ return;
43
+ const scrollValue = this.scrollAmount * (this.direction === 'left' || this.direction === 'up' ? -1 : 1);
44
+ if (this.orientation === 'horizontal') {
45
+ console.log('hello, left/right scroll click!');
46
+ this.scrollContainer.scrollBy({
47
+ left: scrollValue,
48
+ behavior: 'smooth',
49
+ });
50
+ }
51
+ else if (this.orientation === 'vertical') {
52
+ this.scrollContainer.scrollBy({
53
+ top: scrollValue,
54
+ behavior: 'smooth',
55
+ });
56
+ }
57
+ };
58
+ this.direction = undefined;
59
+ this.scrollContainerClass = undefined;
60
+ this.scrollAmount = 100;
61
+ this.orientation = 'horizontal';
62
+ this.trackerId = undefined;
63
+ this.styles = undefined;
64
+ this.isVisible = true;
65
+ this.isDragging = false;
66
+ this.isMouseDown = false;
67
+ }
68
+ componentWillLoad() {
69
+ this.scrollContainer = document.querySelector(`.${this.scrollContainerClass}`);
70
+ if (this.scrollContainer) {
71
+ this.scrollContainer.classList.add('hide-scrollbar');
72
+ this.updateVisibility(); // Initial visibility check
73
+ this.scrollContainer.addEventListener('scroll', this.handleScroll);
74
+ }
75
+ else {
76
+ console.error('scrollContainer ele not found');
77
+ }
78
+ }
79
+ componentDidLoad() {
80
+ this.containerCards = document.querySelectorAll(`.${this.scrollContainerClass} ptc-card-wrapper`);
81
+ if (this.scrollContainer) {
82
+ this.enableDragging();
83
+ }
84
+ }
85
+ disconnectedCallback() {
86
+ if (this.scrollContainer) {
87
+ this.scrollContainer.removeEventListener('scroll', this.handleScroll);
88
+ this.disableDragging();
89
+ }
90
+ }
91
+ async initVisibility() {
92
+ this.updateVisibility();
93
+ }
94
+ enableDragging() {
95
+ this.scrollContainer.addEventListener('mousedown', this.startDragging);
96
+ this.scrollContainer.addEventListener('mousemove', this.performDragging);
97
+ ['mouseup', 'mouseleave'].forEach(event => this.scrollContainer.addEventListener(event, this.stopDragging));
98
+ }
99
+ disableDragging() {
100
+ this.scrollContainer.removeEventListener('mousedown', this.startDragging);
101
+ this.scrollContainer.removeEventListener('mousemove', this.performDragging);
102
+ ['mouseup', 'mouseleave'].forEach(event => this.scrollContainer.removeEventListener(event, this.stopDragging));
103
+ }
104
+ updateVisibility() {
105
+ if (!this.scrollContainer)
106
+ return;
107
+ const { scrollLeft, scrollTop, scrollWidth, scrollHeight, clientWidth, clientHeight } = this.scrollContainer;
108
+ if (this.orientation === 'horizontal') {
109
+ if (this.direction === 'left') {
110
+ this.isVisible = scrollLeft > 0;
111
+ }
112
+ else if (this.direction === 'right') {
113
+ this.isVisible = scrollLeft + clientWidth + 1 < scrollWidth; // "+1" adjustments after adding margin-right 40px
114
+ // console.log('scorllLeft: ' + scrollLeft + ", scrollWidth: " + scrollWidth + ", clientWidth: " + clientWidth);
115
+ }
116
+ }
117
+ else if (this.orientation === 'vertical') {
118
+ if (this.direction === 'up') {
119
+ this.isVisible = scrollTop > 0;
120
+ }
121
+ else if (this.direction === 'down') {
122
+ this.isVisible = scrollTop + clientHeight < scrollHeight;
123
+ }
124
+ }
125
+ }
126
+ render() {
127
+ return (h(Host, { "is-dragging": this.isDragging }, this.styles && h("style", null, this.styles), this.isVisible && (h("button", { id: this.trackerId, onClick: this.handleClick, class: `scroll-btn ${this.direction}`, "aria-label": this.direction, tabindex: "0" }, this.direction === 'left' && h("icon-asset", { name: "left-scroll-arrow", size: "small", color: "white", type: "ptc", "injected-style": "svg:focus{outline:none;}" }), this.direction === 'right' && h("icon-asset", { name: "right-scroll-arrow", size: "small", color: "white", type: "ptc", "injected-style": "svg:focus{outline:none;}" }), this.direction === 'up' && '▲', this.direction === 'down' && '▼'))));
128
+ }
129
+ };
130
+ PtcScrollButton.style = ptcScrollButtonCss;
131
+
132
+ export { PtcScrollButton as ptc_scroll_button };
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
2
- import { C as CheckDarkFocusState } from './utils-ff65c75b.js';
2
+ import { C as CheckDarkFocusState } from './utils-63eab4bd.js';
3
3
  import { f as facebookSVG, l as linkedinSVG, x as xSVG } from './x-cd64dee4.js';
4
4
 
5
5
  const instagramSVG = `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -0,0 +1,34 @@
1
+ import { r as registerInstance, h, H as Host } from './index-c83db688.js';
2
+
3
+ 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}}";
4
+
5
+ const PtcSpacer = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.breakpoint = '';
9
+ this.size = 'medium';
10
+ this.direction = 'vertical';
11
+ }
12
+ render() {
13
+ const classMap = this.getCssClassMap();
14
+ return (h(Host, { class: classMap }));
15
+ }
16
+ getCssClassMap() {
17
+ return {
18
+ [this.size]: true,
19
+ ['ptc-spacer-horizontal']: this.direction === 'horizontal',
20
+ ['ptc-spacer-vertical']: this.direction === 'vertical',
21
+ ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
22
+ ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
23
+ ['ptc-spacer-small']: this.breakpoint === 'small',
24
+ ['ptc-spacer-medium']: this.breakpoint === 'medium',
25
+ ['ptc-spacer-large']: this.breakpoint === 'large',
26
+ ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
27
+ ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
28
+ ['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
29
+ };
30
+ }
31
+ };
32
+ PtcSpacer.style = ptcSpacerCss;
33
+
34
+ export { PtcSpacer as ptc_spacer };
@@ -0,0 +1,148 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
2
+ import { c as getSeoTagType } from './utils-63eab4bd.js';
3
+
4
+ const ptcTitleCss = "h1.sc-ptc-title,h2.sc-ptc-title,h3.sc-ptc-title,h4.sc-ptc-title,h5.sc-ptc-title,h6.sc-ptc-title,p.sc-ptc-title,ul.sc-ptc-title,li.sc-ptc-title,ptc-subnav.sc-ptc-title,ptc-tab-list.sc-ptc-title,ptc-link.sc-ptc-title,ptc-square-card.sc-ptc-title,.hyphenate-text.sc-ptc-title,ptc-footer.sc-ptc-title{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-ptc-title,h2.sc-ptc-title,h3.sc-ptc-title,h4.sc-ptc-title,h5.sc-ptc-title,h6.sc-ptc-title,p.sc-ptc-title,ul.sc-ptc-title,li.sc-ptc-title,ptc-subnav.sc-ptc-title,ptc-tab-list.sc-ptc-title,ptc-link.sc-ptc-title,ptc-square-card.sc-ptc-title,.hyphenate-text.sc-ptc-title,ptc-footer.sc-ptc-title{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}div.center.sc-ptc-title{text-align:center}div.center.dotted.sc-ptc-title h1.sc-ptc-title::before,div.center.dotted.sc-ptc-title h2.sc-ptc-title::before,div.center.dotted.sc-ptc-title h3.sc-ptc-title::before,div.center.dotted.sc-ptc-title h4.sc-ptc-title::before,div.center.dotted.sc-ptc-title h5.sc-ptc-title::before,div.center.dotted.sc-ptc-title h6.sc-ptc-title::before{left:50%;transform:translateX(-50%)}div.left.sc-ptc-title{text-align:left;width:100%}div.left.dotted.sc-ptc-title h1.sc-ptc-title::before,div.left.dotted.sc-ptc-title h2.sc-ptc-title::before,div.left.dotted.sc-ptc-title h3.sc-ptc-title::before,div.left.dotted.sc-ptc-title h4.sc-ptc-title::before,div.left.dotted.sc-ptc-title h5.sc-ptc-title::before,div.left.dotted.sc-ptc-title h6.sc-ptc-title::before{left:0%}div.right.sc-ptc-title{text-align:right}div.right.dotted.sc-ptc-title h1.sc-ptc-title::before,div.right.dotted.sc-ptc-title h2.sc-ptc-title::before,div.right.dotted.sc-ptc-title h3.sc-ptc-title::before,div.right.dotted.sc-ptc-title h4.sc-ptc-title::before,div.right.dotted.sc-ptc-title h5.sc-ptc-title::before,div.right.dotted.sc-ptc-title h6.sc-ptc-title::before{right:0%}div.inherit.sc-ptc-title{text-align:inherit}div.dotted.sc-ptc-title h1.sc-ptc-title::before,div.dotted.sc-ptc-title h2.sc-ptc-title::before,div.dotted.sc-ptc-title h3.sc-ptc-title::before,div.dotted.sc-ptc-title h4.sc-ptc-title::before,div.dotted.sc-ptc-title h5.sc-ptc-title::before,div.dotted.sc-ptc-title h6.sc-ptc-title::before{content:\"\";position:absolute;top:-6px;width:30%;display:block;border-top:3px dashed var(--color-green-07)}div.solid.sc-ptc-title h1.sc-ptc-title,div.solid.sc-ptc-title h2.sc-ptc-title,div.solid.sc-ptc-title h3.sc-ptc-title,div.solid.sc-ptc-title h4.sc-ptc-title,div.solid.sc-ptc-title h5.sc-ptc-title,div.solid.sc-ptc-title h6.sc-ptc-title{padding-top:12px}div.solid.sc-ptc-title h1.sc-ptc-title::before,div.solid.sc-ptc-title h2.sc-ptc-title::before,div.solid.sc-ptc-title h3.sc-ptc-title::before,div.solid.sc-ptc-title h4.sc-ptc-title::before,div.solid.sc-ptc-title h5.sc-ptc-title::before,div.solid.sc-ptc-title h6.sc-ptc-title::before{content:\"\";position:absolute;width:100%;height:0.7px;background-color:var(--color-gray-03);opacity:0.9;left:0px;top:0}div.solid.sc-ptc-title h1.sc-ptc-title::after,div.solid.sc-ptc-title h2.sc-ptc-title::after,div.solid.sc-ptc-title h3.sc-ptc-title::after,div.solid.sc-ptc-title h4.sc-ptc-title::after,div.solid.sc-ptc-title h5.sc-ptc-title::after,div.solid.sc-ptc-title h6.sc-ptc-title::after{content:\"\";position:absolute;width:56px;height:2px;background-color:var(--color-green-07);top:-2px;left:0px}div.is-standard.sc-ptc-title h1.sc-ptc-title,div.is-standard.sc-ptc-title h2.sc-ptc-title,div.is-standard.sc-ptc-title h3.sc-ptc-title,div.is-standard.sc-ptc-title h4.sc-ptc-title,div.is-standard.sc-ptc-title h5.sc-ptc-title,div.is-standard.sc-ptc-title h6.sc-ptc-title{display:inline-block;position:relative}div.is-standard.sc-ptc-title h1.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-extrabold);letter-spacing:0px;color:var(--color-gray-10)}@media only screen and (min-width: 768px){div.is-standard.sc-ptc-title h1.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.is-standard.sc-ptc-title h2.sc-ptc-title{font-size:var(--ptc-font-size-x-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-extrabold);color:var(--color-gray-10)}@media only screen and (min-width: 768px){div.is-standard.sc-ptc-title h2.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}}div.is-plm-hub.sc-ptc-title h1.sc-ptc-title,div.is-plm-hub.sc-ptc-title h2.sc-ptc-title,div.is-plm-hub.sc-ptc-title h3.sc-ptc-title,div.is-plm-hub.sc-ptc-title h4.sc-ptc-title,div.is-plm-hub.sc-ptc-title h5.sc-ptc-title,div.is-plm-hub.sc-ptc-title h6.sc-ptc-title{display:inline-block;position:relative;margin-block-start:0em;margin-block-end:0em;margin-inline-start:0px;margin-inline-end:0px;color:var(--color-white) !important}div.margin-flush.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-flush.sc-ptc-title h1.sc-ptc-title,div.margin-flush.sc-ptc-title h2.sc-ptc-title,div.margin-flush.sc-ptc-title h3.sc-ptc-title,div.margin-flush.sc-ptc-title h4.sc-ptc-title,div.margin-flush.sc-ptc-title h5.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-top-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}div.margin-top-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}div.margin-top-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}div.margin-top-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}div.margin-top-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}div.margin-bottom-2.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}div.margin-bottom-3.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}div.margin-bottom-4.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}div.margin-bottom-5.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}div.margin-bottom-6.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}div.margin-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}div.margin-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}div.margin-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}div.margin-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}div.margin-5.sc-ptc-title h4.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}div.margin-9.sc-ptc-title{margin-top:var(--ptc-element-spacing-09);margin-bottom:var(--ptc-element-spacing-09)}div.green.sc-ptc-title h1.sc-ptc-title,div.green.sc-ptc-title h2.sc-ptc-title,div.green.sc-ptc-title h3.sc-ptc-title,div.green.sc-ptc-title h4.sc-ptc-title,div.green.sc-ptc-title h5.sc-ptc-title,div.green.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-green-07)}div.blue.sc-ptc-title h1.sc-ptc-title,div.blue.sc-ptc-title h2.sc-ptc-title,div.blue.sc-ptc-title h3.sc-ptc-title,div.blue.sc-ptc-title h4.sc-ptc-title,div.blue.sc-ptc-title h5.sc-ptc-title,div.blue.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-blue-07)}div.red.sc-ptc-title h1.sc-ptc-title,div.red.sc-ptc-title h2.sc-ptc-title,div.red.sc-ptc-title h3.sc-ptc-title,div.red.sc-ptc-title h4.sc-ptc-title,div.red.sc-ptc-title h5.sc-ptc-title,div.red.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-red-07)}div.orange.sc-ptc-title h1.sc-ptc-title,div.orange.sc-ptc-title h2.sc-ptc-title,div.orange.sc-ptc-title h3.sc-ptc-title,div.orange.sc-ptc-title h4.sc-ptc-title,div.orange.sc-ptc-title h5.sc-ptc-title,div.orange.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-orange-07)}div.slate-grey.sc-ptc-title h1.sc-ptc-title,div.slate-grey.sc-ptc-title h2.sc-ptc-title,div.slate-grey.sc-ptc-title h3.sc-ptc-title,div.slate-grey.sc-ptc-title h4.sc-ptc-title,div.slate-grey.sc-ptc-title h5.sc-ptc-title,div.slate-grey.sc-ptc-title h6.sc-ptc-title{text-shadow:0px 0px var(--ptc-element-spacing-03) var(--color-gray-07)}div.w-3.sc-ptc-title h1.sc-ptc-title,div.w-3.sc-ptc-title h2.sc-ptc-title,div.w-3.sc-ptc-title h3.sc-ptc-title,div.w-3.sc-ptc-title h4.sc-ptc-title,div.w-3.sc-ptc-title h5.sc-ptc-title,div.w-3.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-thin)}div.w-4.sc-ptc-title h1.sc-ptc-title,div.w-4.sc-ptc-title h2.sc-ptc-title,div.w-4.sc-ptc-title h3.sc-ptc-title,div.w-4.sc-ptc-title h4.sc-ptc-title,div.w-4.sc-ptc-title h5.sc-ptc-title,div.w-4.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-regular)}div.w-5.sc-ptc-title h1.sc-ptc-title,div.w-5.sc-ptc-title h2.sc-ptc-title,div.w-5.sc-ptc-title h3.sc-ptc-title,div.w-5.sc-ptc-title h4.sc-ptc-title,div.w-5.sc-ptc-title h5.sc-ptc-title,div.w-5.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-medium)}div.w-6.sc-ptc-title h1.sc-ptc-title,div.w-6.sc-ptc-title h2.sc-ptc-title,div.w-6.sc-ptc-title h3.sc-ptc-title,div.w-6.sc-ptc-title h4.sc-ptc-title,div.w-6.sc-ptc-title h5.sc-ptc-title,div.w-6.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-semibold)}div.w-7.sc-ptc-title h1.sc-ptc-title,div.w-7.sc-ptc-title h2.sc-ptc-title,div.w-7.sc-ptc-title h3.sc-ptc-title,div.w-7.sc-ptc-title h4.sc-ptc-title,div.w-7.sc-ptc-title h5.sc-ptc-title,div.w-7.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-bold)}div.w-8.sc-ptc-title h1.sc-ptc-title,div.w-8.sc-ptc-title h2.sc-ptc-title,div.w-8.sc-ptc-title h3.sc-ptc-title,div.w-8.sc-ptc-title h4.sc-ptc-title,div.w-8.sc-ptc-title h5.sc-ptc-title,div.w-8.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-extrabold)}div.w-9.sc-ptc-title h1.sc-ptc-title,div.w-9.sc-ptc-title h2.sc-ptc-title,div.w-9.sc-ptc-title h3.sc-ptc-title,div.w-9.sc-ptc-title h4.sc-ptc-title,div.w-9.sc-ptc-title h5.sc-ptc-title,div.w-9.sc-ptc-title h6.sc-ptc-title{font-weight:var(--ptc-font-weight-black)}div.xx-small.sc-ptc-title h1.sc-ptc-title,div.xx-small.sc-ptc-title h2.sc-ptc-title,div.xx-small.sc-ptc-title h3.sc-ptc-title,div.xx-small.sc-ptc-title h4.sc-ptc-title,div.xx-small.sc-ptc-title h5.sc-ptc-title,div.xx-small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-small)}div.x-small.sc-ptc-title h1.sc-ptc-title,div.x-small.sc-ptc-title h2.sc-ptc-title,div.x-small.sc-ptc-title h3.sc-ptc-title,div.x-small.sc-ptc-title h4.sc-ptc-title,div.x-small.sc-ptc-title h5.sc-ptc-title,div.x-small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-x-small)}div.small.sc-ptc-title h1.sc-ptc-title,div.small.sc-ptc-title h2.sc-ptc-title,div.small.sc-ptc-title h3.sc-ptc-title,div.small.sc-ptc-title h4.sc-ptc-title,div.small.sc-ptc-title h5.sc-ptc-title,div.small.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-small)}div.medium.sc-ptc-title h1.sc-ptc-title,div.medium.sc-ptc-title h2.sc-ptc-title,div.medium.sc-ptc-title h3.sc-ptc-title,div.medium.sc-ptc-title h4.sc-ptc-title,div.medium.sc-ptc-title h5.sc-ptc-title,div.medium.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-medium)}div.large.sc-ptc-title h1.sc-ptc-title,div.large.sc-ptc-title h2.sc-ptc-title,div.large.sc-ptc-title h3.sc-ptc-title,div.large.sc-ptc-title h4.sc-ptc-title,div.large.sc-ptc-title h5.sc-ptc-title,div.large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-large)}div.large.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-medium)}@media only screen and (min-width: 768px){div.large.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-large)}}div.x-large.sc-ptc-title h1.sc-ptc-title,div.x-large.sc-ptc-title h2.sc-ptc-title,div.x-large.sc-ptc-title h3.sc-ptc-title,div.x-large.sc-ptc-title h4.sc-ptc-title,div.x-large.sc-ptc-title h5.sc-ptc-title,div.x-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-x-large)}div.xx-large.sc-ptc-title h1.sc-ptc-title,div.xx-large.sc-ptc-title h2.sc-ptc-title,div.xx-large.sc-ptc-title h3.sc-ptc-title,div.xx-large.sc-ptc-title h4.sc-ptc-title{font-size:var(--ptc-font-size-x-large)}@media only screen and (min-width: 768px){div.xx-large.sc-ptc-title h1.sc-ptc-title,div.xx-large.sc-ptc-title h2.sc-ptc-title,div.xx-large.sc-ptc-title h3.sc-ptc-title,div.xx-large.sc-ptc-title h4.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}}div.xxx-large.sc-ptc-title h1.sc-ptc-title,div.xxx-large.sc-ptc-title h2.sc-ptc-title,div.xxx-large.sc-ptc-title h3.sc-ptc-title,div.xxx-large.sc-ptc-title h4.sc-ptc-title,div.xxx-large.sc-ptc-title h5.sc-ptc-title,div.xxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}@media only screen and (min-width: 768px){div.xxx-large.sc-ptc-title h1.sc-ptc-title,div.xxx-large.sc-ptc-title h2.sc-ptc-title,div.xxx-large.sc-ptc-title h3.sc-ptc-title,div.xxx-large.sc-ptc-title h4.sc-ptc-title,div.xxx-large.sc-ptc-title h5.sc-ptc-title,div.xxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}}div.xxxx-large.sc-ptc-title h1.sc-ptc-title,div.xxxx-large.sc-ptc-title h2.sc-ptc-title,div.xxxx-large.sc-ptc-title h3.sc-ptc-title,div.xxxx-large.sc-ptc-title h4.sc-ptc-title,div.xxxx-large.sc-ptc-title h5.sc-ptc-title,div.xxxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 768px){div.xxxx-large.sc-ptc-title h1.sc-ptc-title,div.xxxx-large.sc-ptc-title h2.sc-ptc-title,div.xxxx-large.sc-ptc-title h3.sc-ptc-title,div.xxxx-large.sc-ptc-title h4.sc-ptc-title,div.xxxx-large.sc-ptc-title h5.sc-ptc-title,div.xxxx-large.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.xx-large-allbp.sc-ptc-title h1.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h2.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h3.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h4.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h5.sc-ptc-title,div.xx-large-allbp.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}div.xxxx-large-allbp.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-allbp.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}div.xxxx-large-desktop.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 992px){div.xxxx-large-desktop.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-desktop.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.xxxx-large-store.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}@media only screen and (min-width: 992px){div.xxxx-large-store.sc-ptc-title h1.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h2.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h3.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h4.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h5.sc-ptc-title,div.xxxx-large-store.sc-ptc-title h6.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}}div.densest.sc-ptc-title h1.sc-ptc-title,div.densest.sc-ptc-title h2.sc-ptc-title,div.densest.sc-ptc-title h3.sc-ptc-title,div.densest.sc-ptc-title h4.sc-ptc-title,div.densest.sc-ptc-title h5.sc-ptc-title,div.densest.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-densest)}div.denser.sc-ptc-title h1.sc-ptc-title,div.denser.sc-ptc-title h2.sc-ptc-title,div.denser.sc-ptc-title h3.sc-ptc-title,div.denser.sc-ptc-title h4.sc-ptc-title,div.denser.sc-ptc-title h5.sc-ptc-title,div.denser.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-denser)}div.dense.sc-ptc-title h1.sc-ptc-title,div.dense.sc-ptc-title h2.sc-ptc-title,div.dense.sc-ptc-title h3.sc-ptc-title,div.dense.sc-ptc-title h4.sc-ptc-title,div.dense.sc-ptc-title h5.sc-ptc-title,div.dense.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-dense)}div.normal.sc-ptc-title h1.sc-ptc-title,div.normal.sc-ptc-title h2.sc-ptc-title,div.normal.sc-ptc-title h3.sc-ptc-title,div.normal.sc-ptc-title h4.sc-ptc-title,div.normal.sc-ptc-title h5.sc-ptc-title,div.normal.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-normal)}div.loose.sc-ptc-title h1.sc-ptc-title,div.loose.sc-ptc-title h2.sc-ptc-title,div.loose.sc-ptc-title h3.sc-ptc-title,div.loose.sc-ptc-title h4.sc-ptc-title,div.loose.sc-ptc-title h5.sc-ptc-title,div.loose.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-loose)}div.looser.sc-ptc-title h1.sc-ptc-title,div.looser.sc-ptc-title h2.sc-ptc-title,div.looser.sc-ptc-title h3.sc-ptc-title,div.looser.sc-ptc-title h4.sc-ptc-title,div.looser.sc-ptc-title h5.sc-ptc-title,div.looser.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-looser)}div.paragraph.sc-ptc-title h1.sc-ptc-title,div.paragraph.sc-ptc-title h2.sc-ptc-title,div.paragraph.sc-ptc-title h3.sc-ptc-title,div.paragraph.sc-ptc-title h4.sc-ptc-title,div.paragraph.sc-ptc-title h5.sc-ptc-title,div.paragraph.sc-ptc-title h6.sc-ptc-title{line-height:var(--ptc-line-height-paragraph)}div.black.sc-ptc-title h1.sc-ptc-title,div.black.sc-ptc-title h2.sc-ptc-title,div.black.sc-ptc-title h3.sc-ptc-title,div.black.sc-ptc-title h4.sc-ptc-title,div.black.sc-ptc-title h5.sc-ptc-title,div.black.sc-ptc-title h6.sc-ptc-title{color:var(--color-black)}div.white.sc-ptc-title h1.sc-ptc-title,div.white.sc-ptc-title h2.sc-ptc-title,div.white.sc-ptc-title h3.sc-ptc-title,div.white.sc-ptc-title h4.sc-ptc-title,div.white.sc-ptc-title h5.sc-ptc-title,div.white.sc-ptc-title h6.sc-ptc-title{color:var(--color-white)}div.gray-1.sc-ptc-title h1.sc-ptc-title,div.gray-1.sc-ptc-title h2.sc-ptc-title,div.gray-1.sc-ptc-title h3.sc-ptc-title,div.gray-1.sc-ptc-title h4.sc-ptc-title,div.gray-1.sc-ptc-title h5.sc-ptc-title,div.gray-1.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-01)}div.gray.sc-ptc-title h1.sc-ptc-title,div.gray.sc-ptc-title h2.sc-ptc-title,div.gray.sc-ptc-title h3.sc-ptc-title,div.gray.sc-ptc-title h4.sc-ptc-title,div.gray.sc-ptc-title h5.sc-ptc-title,div.gray.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-10)}div.gray-darker.sc-ptc-title h1.sc-ptc-title,div.gray-darker.sc-ptc-title h2.sc-ptc-title,div.gray-darker.sc-ptc-title h3.sc-ptc-title,div.gray-darker.sc-ptc-title h4.sc-ptc-title,div.gray-darker.sc-ptc-title h5.sc-ptc-title,div.gray-darker.sc-ptc-title h6.sc-ptc-title{color:var(--color-gray-11)}div.ellipsis-boxing.sc-ptc-title h1.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h2.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h3.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h4.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h5.sc-ptc-title,div.ellipsis-boxing.sc-ptc-title h6.sc-ptc-title{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;padding-bottom:0}div.block.sc-ptc-title h1.sc-ptc-title,div.block.sc-ptc-title h2.sc-ptc-title,div.block.sc-ptc-title h3.sc-ptc-title,div.block.sc-ptc-title h4.sc-ptc-title,div.block.sc-ptc-title h5.sc-ptc-title,div.block.sc-ptc-title h6.sc-ptc-title{display:block}.line-clamp-title.sc-ptc-title{display:-webkit-box !important;-webkit-box-orient:vertical;overflow:hidden}.sc-ptc-title-h{display:block}.sc-ptc-title-h div.sc-ptc-title{position:relative}";
5
+
6
+ const PtcTitle = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.isPlmHub = false;
10
+ this.type = 'h2';
11
+ this.textAlign = undefined;
12
+ this.upperline = 'dotted';
13
+ this.titleShadow = undefined;
14
+ this.titleColor = 'gray';
15
+ this.titleMargin = undefined;
16
+ this.titleWeight = undefined;
17
+ this.titleSize = undefined;
18
+ this.titleHeight = 'densest';
19
+ this.styles = undefined;
20
+ this.ellipsisLineCutoff = undefined;
21
+ this.titleDisplay = 'inline-block';
22
+ this.seoCompatibilityMode = false;
23
+ this.tooltipZIndex = 'auto';
24
+ this.tooltipPosition = 'bottom';
25
+ this.tooltipTheme = 'standard';
26
+ this.enableTooltip = false;
27
+ this.maxChars = undefined;
28
+ this.maxLines = undefined;
29
+ this.hideTooltipOnMobile = false;
30
+ this.ismob = undefined;
31
+ this.tooltipWidth = 'default';
32
+ }
33
+ // Tooltip Properties ends
34
+ componentDidLoad() {
35
+ if (this.hideTooltipOnMobile) {
36
+ this.el.classList.add('hide-tooltip-on-mobile');
37
+ }
38
+ this.el.addEventListener('mouseenter', () => this.toggleTitleTooltip(true));
39
+ this.el.addEventListener('mouseleave', () => this.toggleTitleTooltip(false));
40
+ }
41
+ render() {
42
+ if (this.seoCompatibilityMode) {
43
+ return this.seoCompRender();
44
+ }
45
+ else {
46
+ return this.standardRender();
47
+ }
48
+ }
49
+ getSortedText(content) {
50
+ if (!this.enableTooltip)
51
+ return;
52
+ const trimmedContent = content.trim();
53
+ const shouldTruncate = (trimmedContent.length > this.maxChars) && !this.maxLines;
54
+ return shouldTruncate ? trimmedContent.slice(0, this.maxChars) + '...' : trimmedContent;
55
+ }
56
+ toggleTitleTooltip(show) {
57
+ var _a;
58
+ const tooltipClass = 'tooltip-box';
59
+ const existingTooltip = this.el.querySelector(`.${tooltipClass}`);
60
+ const text = this.el.querySelectorAll('.line-clamp-title');
61
+ let maxLinesShowCheck = false;
62
+ if (text) {
63
+ text.forEach(t => {
64
+ maxLinesShowCheck = t.scrollHeight > t.clientHeight;
65
+ });
66
+ }
67
+ const ifCharExceeds = this.tooltipText && (this.tooltipText.length > this.maxChars) && !this.maxLines;
68
+ const ifLinesExceeds = this.maxLines && maxLinesShowCheck;
69
+ if (show && this.enableTooltip) {
70
+ if ((!existingTooltip && ifCharExceeds) || (!existingTooltip && ifLinesExceeds)) {
71
+ const tooltipMarkup = document.createElement('div');
72
+ tooltipMarkup.className = tooltipClass;
73
+ tooltipMarkup.innerText = this.tooltipText;
74
+ tooltipMarkup.style.zIndex = String(this.tooltipZIndex); // Ensures zIndex is a string
75
+ tooltipMarkup.classList.add(this.tooltipPosition, this.tooltipTheme, this.tooltipWidth);
76
+ if (this.hideTooltipOnMobile) {
77
+ tooltipMarkup.classList.add('hide-tooltip-mobile');
78
+ }
79
+ (_a = this.el.querySelector('div')) === null || _a === void 0 ? void 0 : _a.appendChild(tooltipMarkup);
80
+ }
81
+ }
82
+ else {
83
+ existingTooltip === null || existingTooltip === void 0 ? void 0 : existingTooltip.remove();
84
+ }
85
+ }
86
+ seoCompRender() {
87
+ const classMap = this.getCssClassMap();
88
+ const cutOff = this.getLineCuttoff();
89
+ const [TagType, firstChild] = getSeoTagType(this.el, this.type);
90
+ let html = firstChild && firstChild.innerHTML;
91
+ // added for tooltip
92
+ this.tooltipText = html.trim();
93
+ let eleText = firstChild && firstChild.innerText;
94
+ html = (this.enableTooltip) ? this.getSortedText(eleText) : html;
95
+ if (this.el == firstChild) {
96
+ this.el.innerHTML = '';
97
+ }
98
+ return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { class: classMap }, h(TagType, { innerHTML: html, style: cutOff, class: this.maxLines && this.maxLines > 0 ? 'line-clamp-title' : '' }))));
99
+ }
100
+ standardRender() {
101
+ const classMap = this.getCssClassMap();
102
+ const cutOff = this.getLineCuttoff();
103
+ let TagType;
104
+ switch (this.type) {
105
+ case 'h1':
106
+ TagType = 'h1';
107
+ break;
108
+ case 'h3':
109
+ TagType = 'h3';
110
+ break;
111
+ case 'h4':
112
+ TagType = 'h4';
113
+ break;
114
+ case 'h5':
115
+ TagType = 'h5';
116
+ break;
117
+ case 'h6':
118
+ TagType = 'h6';
119
+ break;
120
+ default:
121
+ TagType = 'h2';
122
+ }
123
+ return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { class: classMap }, h(TagType, { style: cutOff }, h("slot", null)))));
124
+ }
125
+ getCssClassMap() {
126
+ return {
127
+ [this.textAlign]: !!this.textAlign ? true : false,
128
+ [this.upperline]: true,
129
+ [this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
130
+ [this.titleMargin]: !!this.titleMargin ? true : false,
131
+ [this.titleShadow]: !!this.titleShadow ? true : false,
132
+ [this.titleWeight]: !!this.titleWeight ? true : false,
133
+ [this.titleSize]: !!this.titleSize ? true : false,
134
+ [this.titleHeight]: !!this.titleHeight ? true : false,
135
+ [this.titleColor]: !!this.titleColor ? true : false,
136
+ ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
137
+ [this.titleDisplay]: !!this.titleDisplay ? true : false,
138
+ };
139
+ }
140
+ getLineCuttoff() {
141
+ const lineClamp = this.ellipsisLineCutoff > 0 ? this.ellipsisLineCutoff : this.maxLines;
142
+ return lineClamp > 0 ? { '-webkit-line-clamp': `${lineClamp}` } : {};
143
+ }
144
+ get el() { return getElement(this); }
145
+ };
146
+ PtcTitle.style = ptcTitleCss;
147
+
148
+ export { PtcTitle as ptc_title };