@ptcwebops/ptcw-design 2.9.0 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/cjs/{ptc-form-checkbox_3.cjs.entry.js → embedded-form_9.cjs.entry.js} +727 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/ptc-subnav.cjs.entry.js +1 -1
  4. package/dist/cjs/ptcw-design.cjs.js +1 -1
  5. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.css +17 -1
  6. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +6 -2
  7. package/dist/collection/components/ptc-data-lookup/ptc-data-lookup.js +15 -1
  8. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +1 -1
  9. package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.css +1 -0
  10. package/dist/collection/utils/elq-lib.js +48 -6
  11. package/dist/custom-elements/index.js +72 -13
  12. package/dist/esm/{ptc-form-checkbox_3.entry.js → embedded-form_9.entry.js} +723 -2
  13. package/dist/esm/loader.js +1 -1
  14. package/dist/esm/ptc-subnav.entry.js +1 -1
  15. package/dist/esm/ptcw-design.js +1 -1
  16. package/dist/ptcw-design/p-18a51b46.entry.js +1 -0
  17. package/dist/ptcw-design/{p-5d183a57.entry.js → p-b8b59f02.entry.js} +16 -16
  18. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  19. package/dist/types/components/organism-bundles/form/embedded-form/embedded-form.d.ts +1 -0
  20. package/dist/types/components/ptc-data-lookup/ptc-data-lookup.d.ts +1 -0
  21. package/package.json +1 -1
  22. package/readme.md +1 -1
  23. package/dist/cjs/embedded-form.cjs.entry.js +0 -105
  24. package/dist/cjs/max-width-container.cjs.entry.js +0 -54
  25. package/dist/cjs/ptc-button.cjs.entry.js +0 -50
  26. package/dist/cjs/ptc-data-lookup.cjs.entry.js +0 -378
  27. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
  28. package/dist/cjs/ptc-title.cjs.entry.js +0 -78
  29. package/dist/esm/embedded-form.entry.js +0 -101
  30. package/dist/esm/max-width-container.entry.js +0 -50
  31. package/dist/esm/ptc-button.entry.js +0 -46
  32. package/dist/esm/ptc-data-lookup.entry.js +0 -374
  33. package/dist/esm/ptc-spacer.entry.js +0 -34
  34. package/dist/esm/ptc-title.entry.js +0 -74
  35. package/dist/ptcw-design/p-2240e6c6.entry.js +0 -1
  36. package/dist/ptcw-design/p-33c054ff.entry.js +0 -1
  37. package/dist/ptcw-design/p-92bbd407.entry.js +0 -1
  38. package/dist/ptcw-design/p-97118c77.entry.js +0 -1
  39. package/dist/ptcw-design/p-b1528ee0.entry.js +0 -1
  40. package/dist/ptcw-design/p-bd474021.entry.js +0 -1
  41. package/dist/ptcw-design/p-f1c77113.entry.js +0 -1
@@ -4,6 +4,625 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-cd9a1b1a.js');
6
6
 
7
+ const embeddedFormCss = ":host{display:block}.flex-adjustments{display:flex;justify-content:center}@media only screen and (min-width: 768px){.flex-adjustments{justify-content:flex-end}}.embedded-form-container{background-color:#142D48}.ptc-embedded-form.form-wrapper{width:433px;display:flex;border-radius:3px;background:#FFF;box-shadow:0px 2px 6px 0px rgba(0, 0, 0, 0.16);flex-direction:column;align-items:center;padding:24px 0px;justify-content:center}@keyframes rollUp{from{height:auto;opacity:1}to{height:0;opacity:0}}.ptc-form-roll-up{animation:rollUp 1s forwards;}";
8
+
9
+ const EmbeddedForm = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.formData = {
13
+ email: '',
14
+ firstName: '',
15
+ lastName: '',
16
+ company: '',
17
+ country: '',
18
+ phone: '',
19
+ inquiryReason: '',
20
+ howhearselfreport: '',
21
+ policyChecked: false,
22
+ };
23
+ this.isSubmitted = false;
24
+ }
25
+ componentDidLoad() {
26
+ this.onDataLookup();
27
+ this.formButton = this.el.querySelector('.form-submit');
28
+ this.formButton.addEventListener('click', this.handleSubmit.bind(this));
29
+ //get Email
30
+ this.emailEle = this.el.querySelector('ptc-textfield[field-id="contact-email"]');
31
+ this.firstNameEle = this.el.querySelector('ptc-textfield[field-id="contact-firstname"]');
32
+ this.lastNameEle = this.el.querySelector('ptc-textfield[field-id="contact-lastname"]');
33
+ this.companyEle = this.el.querySelector('ptc-textfield[field-id="company"]');
34
+ this.phoneEle = this.el.querySelector('ptc-textfield[field-id="contact-phone"]');
35
+ this.countryEle = this.el.querySelector('ptc-select[field-id="contact-country"]');
36
+ this.inquiryreasonEle = this.el.querySelector('ptc-select[field-id="contact-inquiry"]');
37
+ this.howhearselfreport = this.el.querySelector('ptc-textfield[field-id="self-reporting"]');
38
+ this.policy1 = this.el.querySelector('ptc-form-checkbox[checkbox-id="policy1"]');
39
+ }
40
+ //handle dataLookup
41
+ onDataLookup() {
42
+ const dataLookupElement = this.el.closest('ptc-data-lookup');
43
+ if (dataLookupElement) {
44
+ console.log('Perform Data Lookup...');
45
+ dataLookupElement.performDataLookup();
46
+ }
47
+ else {
48
+ console.log('No Data Lookup...');
49
+ }
50
+ }
51
+ handleInputChange(field, value) {
52
+ this.formData = Object.assign(Object.assign({}, this.formData), { [field]: value });
53
+ }
54
+ handleSubmit(event) {
55
+ event.preventDefault();
56
+ this.formData.email = this.emailEle.inputValue;
57
+ this.formData.firstName = this.firstNameEle.inputValue;
58
+ this.formData.lastName = this.lastNameEle.inputValue;
59
+ this.formData.company = this.companyEle.inputValue;
60
+ this.formData.phone = this.phoneEle.inputValue;
61
+ this.formData.country = this.countryEle.selectedValue;
62
+ this.formData.inquiryReason = this.inquiryreasonEle.selectedValue;
63
+ this.formData.howhearselfreport = this.howhearselfreport.inputValue;
64
+ this.formData.policyChecked = this.policy1.isChecked;
65
+ //what if the checkbox is not required, I need to hide the checkbox in this case
66
+ if (this.formData.policyChecked) {
67
+ if (this.isValid()) {
68
+ const formSubmitEvent = new CustomEvent('formSubmit', {
69
+ detail: this.formData,
70
+ bubbles: true,
71
+ });
72
+ this.el.dispatchEvent(formSubmitEvent);
73
+ this.isSubmitted = true;
74
+ console.log('Form Submitted: ' + this.formData.email, this.formData.firstName, this.formData.lastName, this.formData.company, this.formData.phone, this.formData.country, this.formData.inquiryReason, this.formData.howhearselfreport, this.formData.policyChecked);
75
+ }
76
+ else {
77
+ console.log('Form validation failed');
78
+ }
79
+ }
80
+ else {
81
+ this.policy1.validateCheckbox();
82
+ console.log('Warning: Checkbox is not checked. This field is required');
83
+ }
84
+ }
85
+ isValid() {
86
+ const { email, firstName, lastName, company, country, phone, inquiryReason, howhearselfreport, policyChecked } = this.formData;
87
+ const invalidLength = document.querySelectorAll('.invalid-field').length;
88
+ // console.log('invalid fields length: ' + invalidLength), check the select field
89
+ return (email !== '' &&
90
+ phone !== '' &&
91
+ firstName !== '' &&
92
+ lastName !== '' &&
93
+ company !== '' &&
94
+ country !== '' &&
95
+ inquiryReason !== '' &&
96
+ howhearselfreport != '' &&
97
+ policyChecked &&
98
+ invalidLength === 0);
99
+ }
100
+ render() {
101
+ const formClass = this.isSubmitted ? "ptc-form-roll-up" : "";
102
+ return (index.h(index.Host, null, index.h("div", { class: "ptc-container ptc-section-standard flex-adjustments" }, index.h("div", { class: "form-wrapper ptc-embedded-form" }, index.h("max-width-container", { "max-width": "277", breakpoint: 480 }, index.h("ptc-title", { type: "h2", "text-align": "center", "title-size": "x-small", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-6", "is-plm-hub": "false" }, "Please fill out the form and a PTC sales representative will be in touch."), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), index.h("ptc-spacer", { breakpoint: "small", size: "small" }), index.h("ptc-spacer", { breakpoint: "small", size: "small" })), index.h("form", { onSubmit: event => this.handleSubmit(event), class: formClass }, index.h("ptc-textfield", { "field-id": "contact-firstname", "label-text": "First Name*", type: "text", "ptc-data-eloqua-name": "C_FirstName", name: "firstname" }), index.h("ptc-textfield", { "field-id": "contact-lastname", "label-text": "Last Name*", type: "text", "ptc-data-eloqua-name": "C_LastName", name: "lastname" }), index.h("ptc-textfield", { "field-id": "company", "label-text": "Company*", type: "text", "ptc-data-eloqua-name": "C_Company", name: "company-field" }), index.h("ptc-textfield", { "field-id": "contact-email", "label-text": "Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", name: "email" }), index.h("ptc-select", { "field-id": "contact-country", label: "Country*", "ptc-data-eloqua-name": "C_Country", name: "country" }, index.h("ul", { class: "mdc-list" }, index.h("li", { class: "mdc-list-item", "data-value": "" }, index.h("span", { class: "mdc-list-item__ripple" })), index.h("li", { class: "mdc-list-item", "data-value": "USA" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "USA")), index.h("li", { class: "mdc-list-item", "data-value": "Canada" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Canada")), index.h("li", { class: "mdc-list-item", "data-value": "China" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "China")))), index.h("ptc-textfield", { "field-id": "contact-phone", "label-text": "Phone*", type: "tel", "ptc-data-eloqua-name": "C_BusPhone", name: "phone" }), index.h("ptc-select", { label: "What information are you interested in?*", "ptc-data-eloqua-name": "Inquiry_Reason", name: "inquiryreason", "field-id": "contact-inquiry" }, index.h("ul", { class: "mdc-list" }, index.h("li", { class: "mdc-list-item", "data-value": "" }, index.h("span", { class: "mdc-list-item__ripple" })), index.h("li", { class: "mdc-list-item", "data-value": "Augmented Reality (AR)" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Augmented Reality (AR)")), index.h("li", { class: "mdc-list-item", "data-value": "CAD" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Computer Aided Design")), index.h("li", { class: "mdc-list-item", "data-value": "Retail(FlexPLM)" }, index.h("span", { class: "mdc-list-item__ripple" }), index.h("span", { class: "mdc-list-item__text" }, "Fashion and Retail Product Lifecycle Management")))), index.h("ptc-textfield", { "field-id": "self-reporting", "label-text": "How can we help you?*", type: "text", "ptc-data-eloqua-name": "HowHearSelfReport", "ptc-max-length": "100", name: "howhearselfreport" }), index.h("ptc-textfield", { type: "hidden", "ptc-data-eloqua-name": "test", "input-value": "test" }), index.h("ptc-form-checkbox", { label: "I agree to the policy", "checkbox-id": "policy1" }), index.h("ptc-button", { class: "form-submit", color: "ptc-quaternary", type: "submit", styles: ":host{align-self:flex-end; margin-top: 48px; display:block; text-align:right;}" }, "Submit"))))));
103
+ }
104
+ get el() { return index.getElement(this); }
105
+ };
106
+ EmbeddedForm.style = embeddedFormCss;
107
+
108
+ const maxWidthContainerCss = ":host{display:block}:host(.left){margin:auto auto auto 0}:host(.right){margin:auto 0 auto auto}:host(.center){margin:0 auto}";
109
+
110
+ const MaxWidthContainer = class {
111
+ constructor(hostRef) {
112
+ index.registerInstance(this, hostRef);
113
+ this.maxWidthP = undefined;
114
+ this.maxWidth = undefined;
115
+ this.breakpoint = 768;
116
+ this.contentAlign = 'center';
117
+ this.styles = undefined;
118
+ }
119
+ componentDidLoad() {
120
+ this.handleResize();
121
+ window.addEventListener('resize', this.handleResize.bind(this));
122
+ }
123
+ disconnectedCallback() {
124
+ window.removeEventListener('resize', this.handleResize);
125
+ }
126
+ render() {
127
+ const classMap = this.getCssClassMap();
128
+ return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("slot", null)));
129
+ }
130
+ getCssClassMap() {
131
+ return {
132
+ [this.contentAlign]: true,
133
+ };
134
+ }
135
+ handleResize() {
136
+ // const selectedContainer = this.el.querySelector('.max-width-container');
137
+ if (this.el) {
138
+ if (window.innerWidth >= this.breakpoint) {
139
+ if (this.maxWidthP) {
140
+ this.el.style.maxWidth = `${this.maxWidthP}%`;
141
+ }
142
+ else {
143
+ this.el.style.maxWidth = `${this.maxWidth}px`;
144
+ }
145
+ }
146
+ else {
147
+ this.el.style.maxWidth = 'initial';
148
+ }
149
+ }
150
+ }
151
+ get el() { return index.getElement(this); }
152
+ };
153
+ MaxWidthContainer.style = maxWidthContainerCss;
154
+
155
+ const ptcButtonCss = "button.disabled{pointer-events:none;opacity:0.6}button{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:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard)}button.reveal-down .content{transition:opacity var(--ptc-transition-medium) var(--ptc-ease-out);opacity:0;font-size:var(--ptc-font-size-xx-small)}button.reveal-down .icon-wrapper{position:relative;display:flex;align-items:center;justify-content:center;align-content:center;height:16px}button.reveal-down .icon-wrapper .icon{transition:top var(--ptc-transition-fast) var(--ptc-ease-out);position:absolute;display:inline-block;top:-12px}button:hover.reveal-down .content{opacity:1}button:hover.reveal-down .icon-wrapper .icon{top:4px}button.animation-right ::slotted([slot=slot-after-text]),button.animation-right ::slotted([slot=slot-before-text]),button.animation-down ::slotted([slot=slot-after-text]),button.animation-down ::slotted([slot=slot-before-text]){transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);position:relative;display:inline-block}button:hover.animation-right ::slotted([slot=slot-after-text]),button:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}button:hover.animation-down ::slotted([slot=slot-after-text]),button:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}button span{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:bold;line-height:var(--ptc-line-height-densest)}button.left{text-align:left}button.right{text-align:right}button.center{text-align:center}.icon-left ::slotted([slot=slot-before-text]){margin-right:var(--ptc-element-spacing-01)}.icon-right ::slotted([slot=slot-after-text]){margin-left:var(--ptc-element-spacing-01)}.blackgrey{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(285deg, var(--color-gray-10) 155%, var(--color-gray-07) 62%)}.blackgrey:hover{box-shadow:var(--ptc-shadow-x-large)}.blackgrey span{color:var(--color-white)}.turtlegreen{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-green-07);background-image:linear-gradient(285deg, var(--color-green-07) 155%, var(--color-green-07) 62%)}.turtlegreen:hover{box-shadow:var(--ptc-shadow-x-large)}.turtlegreen span{color:var(--color-white)}.offwhite{box-shadow:var(--ptc-shadow-x-small);border:solid 1px var(--color-gray-10);background-image:linear-gradient(to right, var(--color-white), var(--color-gray-02), var(--color-gray-01))}.offwhite:hover{box-shadow:var(--ptc-shadow-x-large)}.offwhite span{color:var(--color-gray-10)}.legacy-green{margin-left:10px;padding:10px 20px;margin-bottom:var(--ptc-element-spacing-01);margin-top:var(--ptc-element-spacing-01);box-shadow:var(--ptc-shadow-large);border:solid 2.5px var(--color-green-08);background-image:linear-gradient(to right, var(--color-green-06), var(--color-green-08))}.legacy-green:after{position:absolute;content:\"\";top:-1px;left:0;bottom:0;right:0;width:100%;height:103%;background-image:linear-gradient(to right, var(--color-green-08), var(--color-green-06));opacity:0;transition:opacity var(--ptc-transition-x-slow) var(--ptc-ease-inout);border-radius:2px}.legacy-green:hover{box-shadow:var(--ptc-shadow-x-large)}.legacy-green:hover span{color:var(--color-white)}.legacy-green:hover:after{opacity:1}.legacy-green span{font-family:var(--ptc-font-secondary-latin);color:var(--color-white);z-index:100;position:relative;text-transform:uppercase;font-weight:var(--ptc-font-weight-bold);letter-spacing:var(--ptc-letter-spacing-normal);font-size:var(--ptc-font-size-x-small)}@media only screen and (min-width: 768px){.legacy-green span{font-size:var(--ptc-font-size-small);letter-spacing:var(--ptc-letter-spacing-loose)}}.legacy-green icon-asset{display:inline}a{border-style:solid;border-width:1px;position:relative;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding:9.4px 17.5px;border-radius:var(--ptc-border-radius-standard);display:inline-block;position:relative}a.animation-right ::slotted([slot=slot-after-text]),a.animation-right ::slotted([slot=slot-before-text]),a.animation-down ::slotted([slot=slot-after-text]),a.animation-down ::slotted([slot=slot-before-text]){transition:all var(--ptc-ease-inout) var(--ptc-transition-medium);position:relative;display:inline-block;margin-left:5px}a:hover.animation-right ::slotted([slot=slot-after-text]),a:hover.animation-right ::slotted([slot=slot-before-text]){transform:translateX(var(--ptc-element-spacing-02))}a:hover.animation-down ::slotted([slot=slot-after-text]),a:hover.animation-down ::slotted([slot=slot-before-text]){transform:translateY(var(--ptc-element-spacing-02))}a.left{text-align:left}a.right{text-align:right}a.center{text-align:center}.nav{font-family:var(--ptc-font-latin);background-color:var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);border:1px solid var(--color-white);border-bottom-style:solid;border-bottom-width:1px;box-sizing:border-box;color:var(--color-white);display:inline-block;font-size:var(--ptc-font-size-xx-small);font-stretch:100%;font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-loose);list-style:none;padding:3px var(--ptc-element-spacing-04);position:relative;text-align:center;text-decoration:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;transition:background-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.nav:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.nav:hover{background-color:var(--color-gray-12)}.ptc-primary,.ptc-quaternary,.ptc-secondary,.ptc-tertiary,.icon-toggle{padding:var(--ptc-font-size-xx-small) var(--ptc-font-size-medium);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium);line-height:20px}.ptc-primary.disabled,.ptc-quaternary.disabled,.ptc-secondary.disabled,.ptc-tertiary.disabled,.icon-toggle.disabled{pointer-events:none;border-color:var(--color-gray-03);background:var(--color-gray-02)}.ptc-primary.disabled span,.ptc-quaternary.disabled span,.ptc-secondary.disabled span,.ptc-tertiary.disabled span,.icon-toggle.disabled span{color:var(--color-gray-03)}.ptc-primary.disabled ::slotted([slot=slot-after-text]),.ptc-quaternary.disabled ::slotted([slot=slot-after-text]),.ptc-secondary.disabled ::slotted([slot=slot-after-text]),.ptc-tertiary.disabled ::slotted([slot=slot-after-text]),.icon-toggle.disabled ::slotted([slot=slot-after-text]){fill:var(--color-gray-03) !important}.ptc-primary:focus,.ptc-quaternary:focus,.ptc-secondary:focus,.ptc-tertiary:focus,.icon-toggle:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}.ptc-primary span,.ptc-quaternary span,.ptc-secondary span,.ptc-tertiary span,.icon-toggle span{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-densest);letter-spacing:normal}.ptc-primary{background:var(--color-gray-12);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-primary:hover{background-color:var(--color-gray-10)}.ptc-primary:active{background-color:var(--color-black)}.ptc-primary span{color:var(--color-white)}.ptc-primary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-secondary{background:var(--color-gray-12);border:2px solid var(--color-gray-08);border-radius:var(--ptc-border-radius-standard)}.ptc-secondary:hover{background-color:var(--color-gray-10)}.ptc-secondary:active{background-color:var(--color-black)}.ptc-secondary span{color:var(--color-white)}.ptc-secondary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.ptc-tertiary{background:var(--color-white);border:2px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard)}.ptc-tertiary:hover{background-color:var(--color-gray-02)}.ptc-tertiary:active{background-color:var(--color-gray-03)}.ptc-tertiary span{color:var(--color-gray-10)}.ptc-tertiary ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.ptc-quaternary{background:var(--color-green-07);border:2px solid var(--color-green-07);border-radius:var(--ptc-border-radius-standard)}.ptc-quaternary:hover{background-color:var(--color-green-08)}.ptc-quaternary:active{background-color:var(--color-green-09)}.ptc-quaternary span{color:var(--color-white)}.ptc-quaternary ::slotted([slot=slot-after-text]){fill:var(--color-white) !important}.icon-toggle{background:var(--color-white);border:1px solid var(--color-gray-10);border-radius:var(--ptc-border-radius-standard);padding:0;height:2.125rem;width:2.125rem;box-shadow:var(--ptc-shadow-medium)}.icon-toggle:hover{background-color:var(--color-gray-02)}.icon-toggle:active{background-color:var(--color-gray-03)}.icon-toggle.active{background-color:var(--color-gray-04)}.icon-toggle.active:hover{background-color:var(--color-gray-05)}.icon-toggle.active:active{background-color:var(--color-gray-03)}.icon-toggle:focus{outline:2px solid var(--color-blue-07);outline-offset:1px}.icon-toggle span{color:var(--color-gray-10);padding:0}.icon-toggle ::slotted([slot=slot-after-text]){fill:var(--color-gray-10) !important}.icon-toggle ::slotted(icon-asset){display:block;margin:auto;height:18px;width:18px}.clear-search{border:none;padding:0px;line-height:var(----ptc-line-height-densest);background-color:transparent}.clear-search:hover{text-decoration:underline;text-decoration-color:var(--color-white)}.clear-search span{color:var(--color-white);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}";
156
+
157
+ const PtcButton = class {
158
+ constructor(hostRef) {
159
+ index.registerInstance(this, hostRef);
160
+ this.clickEvent = index.createEvent(this, "clickEvent", 7);
161
+ this.disabled = false;
162
+ this.active = false;
163
+ this.type = 'button';
164
+ this.color = 'ptc-primary';
165
+ this.iconAnimation = '';
166
+ this.iconPosition = 'icon-right';
167
+ this.linkHref = undefined;
168
+ this.linkTitle = undefined;
169
+ this.target = '_self';
170
+ this.rel = undefined;
171
+ this.tabNav = 0;
172
+ this.styles = undefined;
173
+ this.textAlign = undefined;
174
+ }
175
+ clickEventHandler() {
176
+ this.clickEvent.emit();
177
+ }
178
+ render() {
179
+ const classMap = this.getCssClassMap();
180
+ const Tag = !!this.linkHref ? 'a' : 'button';
181
+ return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h(Tag, Object.assign({ class: classMap, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {}), (!!this.linkHref ? { title: this.linkTitle ? this.linkTitle : this.linkHref } : {}), (!!this.tabNav ? { tabindex: -1 } : { tabindex: 0 })), this.iconAnimation == 'reveal-down' ?
182
+ index.h("span", null, index.h("div", { class: "content" }, index.h("slot", null)), index.h("div", { class: "icon-wrapper" }, index.h("div", { class: "icon" }, index.h("slot", { name: "slot-after-text" })))) :
183
+ index.h("span", null, index.h("slot", { name: "slot-before-text" }), index.h("slot", null), index.h("slot", { name: "slot-after-text" })))));
184
+ }
185
+ getCssClassMap() {
186
+ return {
187
+ [this.color]: true,
188
+ [this.iconAnimation]: true,
189
+ [this.iconPosition]: true,
190
+ ['disabled']: this.disabled ? true : false,
191
+ ['active']: this.active ? true : false,
192
+ [this.textAlign]: true
193
+ };
194
+ }
195
+ };
196
+ PtcButton.style = ptcButtonCss;
197
+
198
+ // Define the ElqLib class
199
+ class ElqLib {
200
+ constructor(params) {
201
+ this.params = params;
202
+ this.url_vars = {};
203
+ this.visitor_elq_id = null;
204
+ this.field_mappings = [];
205
+ this.callback_queue = [];
206
+ //private fields_populated: boolean = false;
207
+ this.user_elq_email = '';
208
+ this.user_elq_firstname = '';
209
+ this.user_elq_lastname = '';
210
+ // Merge defaults with params
211
+ const defaults = {
212
+ elq_site_id: '',
213
+ elq_visitor_lookup_key: '',
214
+ elq_recipient_id_lookup_key: '',
215
+ elq_contact_lookup_key: '',
216
+ elq_field_email_rec_id: 'V_EmailRecipientID',
217
+ elq_field_contact_email: 'C_EmailAddress',
218
+ elq_field_visitor_email: 'V_Email_Address',
219
+ elq_field_visitor_firstname: 'V_First_Name',
220
+ elq_field_visitor_lastname: 'V_Last_Name',
221
+ notme_link_id: null,
222
+ notme_fields_class: null,
223
+ notme_message: 'Not {name}? Click here.',
224
+ notme_message_noname: 'Not your details below? Click here.',
225
+ };
226
+ this.params = Object.assign(Object.assign({}, defaults), this.params);
227
+ this.init();
228
+ }
229
+ init() {
230
+ // Merge defaults with user-provided params if not already done in the constructor
231
+ // ...
232
+ // Set Eloqua site ID
233
+ this.setEloquaSiteId();
234
+ // Load Eloqua scripts
235
+ this.async_load();
236
+ // Store URL variables
237
+ this.store_url_vars();
238
+ // Store visitor's Eloqua IDgit
239
+ this.store_visitor_elq_id();
240
+ // Set the global Eloqua callback function
241
+ window.SetElqContent = this.eloqua_callback.bind(this);
242
+ }
243
+ setEloquaSiteId() {
244
+ if (this.params.elq_site_id) {
245
+ ElqLib._elqQ.push(['elqSetSiteId', this.params.elq_site_id]);
246
+ ElqLib._elqQ.push(['elqUseFirstPartyCookie', 'tracking.ptc.com']);
247
+ ElqLib._elqQ.push(['elqTrackPageView', window.location.href]);
248
+ }
249
+ }
250
+ fire_pageview(url) {
251
+ try {
252
+ if (typeof url === 'undefined') {
253
+ ElqLib._elqQ.push(['elqTrackPageView']);
254
+ }
255
+ else {
256
+ ElqLib._elqQ.push(['elqTrackPageView', url]);
257
+ }
258
+ console.log('TRACKING: Eloqua pageview fired for URL: ' + (url || 'current page'));
259
+ }
260
+ catch (e) {
261
+ console.log('TRACKING: Could not fire Eloqua pageview: ', e);
262
+ }
263
+ }
264
+ find_eloqua_contact() {
265
+ console.log('CONTACT LOOKUP: Attempting to find Eloqua contact...');
266
+ // Queue callback action for the return of lookup
267
+ this.callback_queue.push(this.handle_visitor_lookup.bind(this));
268
+ // Start with a recipient lookup if ID was supplied in URL
269
+ if (this.visitor_elq_id !== null) {
270
+ this.lookup_visitor_by_recipient_id();
271
+ }
272
+ else {
273
+ // If no visitor ID, attempt to do a visitor lookup with an Eloqua cookie
274
+ this.lookup_visitor_by_cookie(); //preference center
275
+ this.lookup_contact_by_email();
276
+ }
277
+ }
278
+ add_field_mapping(mapping) {
279
+ this.field_mappings.push(mapping);
280
+ }
281
+ add_queue_action(action) {
282
+ this.callback_queue.push(action);
283
+ }
284
+ store_url_vars() {
285
+ // Clear the current url_vars
286
+ this.url_vars = {};
287
+ // Split the URL by the '?' to get the query string part
288
+ const queryString = window.location.search.substring(1);
289
+ // Split the query string by '&' to get each key-value pair
290
+ queryString.split('&').forEach(paramString => {
291
+ // Split the key-value pairs by '=' to separate keys and values
292
+ let [key, value] = paramString.split('=');
293
+ // Decode URI components to handle URL encoding
294
+ key = decodeURIComponent(key);
295
+ value = decodeURIComponent(value);
296
+ // Store the key-value pair in the url_vars object
297
+ this.url_vars[key] = value;
298
+ });
299
+ // Optionally, log the stored URL variables
300
+ console.log('URL variables stored:', this.url_vars);
301
+ }
302
+ store_visitor_elq_id() {
303
+ console.log("INIT: Looking for visitor's Eloqua ID in URL...");
304
+ const elqIdParam = this.url_vars['elq'];
305
+ if (elqIdParam) {
306
+ const elqId = elqIdParam.toUpperCase().replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, '$1-$2-$3-$4-$5');
307
+ this.visitor_elq_id = elqId;
308
+ console.log(`INIT: ...visitor Eloqua ID found in URL: ${elqId}`);
309
+ }
310
+ else {
311
+ this.visitor_elq_id = null;
312
+ console.log('INIT: ...no visitor Eloqua ID found in URL');
313
+ }
314
+ }
315
+ // private merge(root: any, ...sources: any[]): any {
316
+ // sources.forEach(source => {
317
+ // for (const key in source) {
318
+ // if (source.hasOwnProperty(key)) {
319
+ // root[key] = source[key];
320
+ // }
321
+ // }
322
+ // });
323
+ // return root;
324
+ // }
325
+ eloqua_callback() {
326
+ console.log('LOOKUP: Eloqua lookup finished');
327
+ // Process each action in the callback queue
328
+ let actionSucceeded = true;
329
+ while (actionSucceeded && this.callback_queue.length > 0) {
330
+ const action = this.callback_queue.shift();
331
+ if (action) {
332
+ console.log(`QUEUE: Executing action`);
333
+ actionSucceeded = action(); // Execute the action. It must return a boolean indicating success.
334
+ if (actionSucceeded) {
335
+ console.log('QUEUE: Action executed successfully, removed from queue');
336
+ }
337
+ else {
338
+ console.log('QUEUE: Action failed, re-adding to queue');
339
+ this.callback_queue.unshift(action); // Re-add the action to the front of the queue
340
+ break; // Break out of the loop if an action fails
341
+ }
342
+ }
343
+ }
344
+ // After processing the queue, update user details or perform other operations
345
+ if (actionSucceeded) {
346
+ this.update_user_details();
347
+ }
348
+ //this.populate_mapped_fields();
349
+ // ...additional code to handle the aftermath of callback processing...
350
+ }
351
+ lookup_visitor_by_cookie() {
352
+ if (this.params.elq_visitor_lookup_key != '') {
353
+ ElqLib._elqQ.push(['elqDataLookup', escape(this.params.elq_visitor_lookup_key), '']);
354
+ console.log('LOOKUP: Visitor lookup sent using Eloqua cookie');
355
+ }
356
+ else {
357
+ console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
358
+ }
359
+ }
360
+ lookup_visitor_by_recipient_id() {
361
+ if (this.params.elq_recipient_id_lookup_key != '') {
362
+ ElqLib._elqQ.push([
363
+ 'elqDataLookup',
364
+ escape(this.params.elq_recipient_id_lookup_key),
365
+ '<' + this.params.elq_field_email_rec_id + '>' + this.visitor_elq_id + '</' + this.params.elq_field_email_rec_id + '>',
366
+ ]);
367
+ console.log('LOOKUP: Visitor lookup sent using email recipient id: ' + this.visitor_elq_id);
368
+ }
369
+ else {
370
+ console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
371
+ }
372
+ }
373
+ lookup_contact_by_email() {
374
+ if (this.params.elq_contact_lookup_key != '') {
375
+ ElqLib._elqQ.push([
376
+ 'elqDataLookup',
377
+ escape(this.params.elq_contact_lookup_key),
378
+ '<' + this.params.elq_field_contact_email + '>' + this.user_elq_email + '</' + this.params.elq_field_contact_email + '>',
379
+ ]);
380
+ console.log('LOOKUP: Contact lookup sent using email address: ' + this.user_elq_email);
381
+ }
382
+ else {
383
+ console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
384
+ }
385
+ }
386
+ handle_visitor_lookup() {
387
+ //console.log('Contact Email: ' + this.params.elq_field_contact_email)
388
+ const email = window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email); //it was elq_field_visitor_email ( V_Email_Address)
389
+ if (email) {
390
+ console.log(`LOOKUP: Found contact email address: ${email}`);
391
+ this.user_elq_email = email.trim();
392
+ this.lookup_contact_by_email();
393
+ this.callback_queue.push(this.handle_contact_lookup.bind(this));
394
+ return true;
395
+ }
396
+ else {
397
+ return false;
398
+ }
399
+ }
400
+ handle_contact_lookup() {
401
+ if (window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email) != '') {
402
+ console.log('LOOKUP: Found contact email address: ' + window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email));
403
+ return true;
404
+ }
405
+ else {
406
+ return false;
407
+ }
408
+ }
409
+ // private populate_mapped_fields(): void {
410
+ // console.log("MAPPING: Starting field mapping");
411
+ // // Loop through all mappings
412
+ // for (mapping_set in field_mappings) {
413
+ // for (mapping_element in field_mappings[mapping_set]) {
414
+ // var mapping_elq_field = field_mappings[mapping_set][mapping_element];
415
+ // var element = document.getElementById(mapping_element);
416
+ // var field_value = GetElqContentPersonalizationValue(mapping_elq_field);
417
+ // // Check that field exists
418
+ // if (element == null) {
419
+ // log("MAPPING: Could not populate element '" + mapping_element + "' as it does not exist");
420
+ // }
421
+ // else if (element.value != '') {
422
+ // log("MAPPING: Could not populate element '" + mapping_element + "' as it already contained a value");
423
+ // }
424
+ // else if (field_value == '') {
425
+ // log("MAPPING: Could not populate element '" + mapping_element + "' as the Eloqua field '" + mapping_elq_field + "' contained no data");
426
+ // }
427
+ // else {
428
+ // fields_populated = true;
429
+ // element.value = field_value;
430
+ // log("MAPPING: Mapped element '" + mapping_element + "' with Eloqua field '" + mapping_elq_field + "'");
431
+ // }
432
+ // }
433
+ // }
434
+ // console.log("MAPPING: Finished field mapping");
435
+ // // Update notme link
436
+ // //update_notme_link ();
437
+ // }
438
+ update_user_details() {
439
+ console.log('displaying user info...');
440
+ if (window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email) !== '') {
441
+ document.querySelectorAll('input[type=text], input[type=tel], input[name="phonenumber"], input[name="phonenumbertwo"], input[type=email], select, textarea, span.mdc-select__selected-text')
442
+ .forEach((element) => {
443
+ if (element.tagName === 'SPAN') {
444
+ const spanText = element;
445
+ const spanEloquaName = spanText.getAttribute('data-eloqua-name');
446
+ if (spanEloquaName !== null) {
447
+ const spanElqValue = window.GetElqContentPersonalizationValue(spanEloquaName);
448
+ if (spanElqValue !== '' && spanElqValue.length > 0) {
449
+ spanText.textContent = spanElqValue;
450
+ }
451
+ }
452
+ }
453
+ else if (element.className.includes('intl-tel-input')) {
454
+ const telInput = element;
455
+ const eloquaName = telInput.getAttribute('data-eloqua-name');
456
+ if (eloquaName !== null) {
457
+ const elqValue = window.GetElqContentPersonalizationValue(eloquaName);
458
+ if (elqValue !== '' && elqValue.length > 0) {
459
+ setTimeout(() => {
460
+ telInput.placeholder = elqValue;
461
+ }, 1000);
462
+ }
463
+ }
464
+ }
465
+ else {
466
+ const input = element;
467
+ const eloquaName = input.getAttribute('data-eloqua-name');
468
+ if (eloquaName !== null) {
469
+ const elqValue = window.GetElqContentPersonalizationValue(eloquaName);
470
+ if (elqValue !== '' && elqValue.length > 0) {
471
+ input.value = elqValue;
472
+ }
473
+ }
474
+ }
475
+ });
476
+ }
477
+ if (this.user_elq_email == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_email) != '') {
478
+ this.user_elq_email = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_email);
479
+ }
480
+ if (this.user_elq_firstname == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_firstname) != '') {
481
+ this.user_elq_firstname = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_firstname);
482
+ }
483
+ if (this.user_elq_lastname == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_lastname) != '') {
484
+ this.user_elq_lastname = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_lastname);
485
+ }
486
+ }
487
+ // private update_notme_link(): void {
488
+ // // Get link element
489
+ // var notme_link_element = $('#' + this.params.notme_link_id);
490
+ // // Get Eloqua vars
491
+ // var first_name = this.user_elq_firstname;
492
+ // var last_name = this.user_elq_lastname;
493
+ // var email = this.user_elq_email;
494
+ // // Check if we have both first name and last name
495
+ // if (first_name != '' && last_name !='') {
496
+ // name = first_name + ' ' + last_name;
497
+ // display_link = true;
498
+ // }
499
+ // // Check if we have first name
500
+ // else if (first_name != '') {
501
+ // name = first_name;
502
+ // }
503
+ // // Other use a generic message
504
+ // else {
505
+ // name = '';
506
+ // }
507
+ // // Check if some fields have been populated
508
+ // if (this.fields_populated && this.params.notme_link_id != null && this.params.notme_fields_class != null) {
509
+ // if (name != '') {
510
+ // var message = this.params.notme_message.replace("{name}", name);
511
+ // }
512
+ // else {
513
+ // var message = this.params.notme_message_noname;
514
+ // }
515
+ // console.log("MAPPING: Updating not me link");
516
+ // notme_link_element.find('*').remove();
517
+ // var link = $('<a href="">' + message + '</a>').appendTo(notme_link_element).click(this.remove_user_details);
518
+ // }
519
+ // }
520
+ // private remove_user_details(): void {
521
+ // this.user_elq_email = '';
522
+ // this.user_elq_firstname = '';
523
+ // this.user_elq_lastname = '';
524
+ // $('.' + this.params.notme_fields_class).val('');
525
+ // $('#' + this.params.notme_link_id)
526
+ // .find('a')
527
+ // .remove();
528
+ // //Flush out old user cookie
529
+ // ElqLib._elqQ.push(['elqVisitorGuid', ' ']);
530
+ // ElqLib._elqQ.push(['elqTrackPageView']);
531
+ // //return false;
532
+ // }
533
+ // Private Method to load Eloqua Scripts
534
+ async_load() {
535
+ const scriptUrl = 'https://img.en25.com/i/elqCfg.min.js';
536
+ const scriptElement = document.createElement('script');
537
+ scriptElement.type = 'text/javascript';
538
+ scriptElement.async = true;
539
+ scriptElement.src = scriptUrl;
540
+ // Error handling for script loading
541
+ scriptElement.onerror = errorEvent => {
542
+ console.log(`Error loading script: ${errorEvent}`);
543
+ };
544
+ // Append the script element to the head of the document, or before the first script tag found
545
+ const firstScriptTag = document.getElementsByTagName('script')[0];
546
+ if (firstScriptTag && firstScriptTag.parentNode) {
547
+ firstScriptTag.parentNode.insertBefore(scriptElement, firstScriptTag);
548
+ }
549
+ else {
550
+ document.head.appendChild(scriptElement);
551
+ }
552
+ console.log(`Async loading of script ${scriptUrl} initiated.`);
553
+ }
554
+ }
555
+ ElqLib._elqQ = window['_elqQ'] || [];
556
+ // Static member initialization
557
+ //ElqLib._elqQ = window['_elqQ'] || [];
558
+
559
+ const ptcDataLookupCss = ":host{display:block}";
560
+
561
+ const PtcDataLookup = class {
562
+ constructor(hostRef) {
563
+ index.registerInstance(this, hostRef);
564
+ this.elqSiteId = undefined;
565
+ this.elqVisitorLookupKey = undefined;
566
+ this.elqRecipientIdLookupKey = undefined;
567
+ this.elqContactLookupKey = undefined;
568
+ this.elqFieldEmailRecId = "V_EmailRecipientID";
569
+ this.elqFieldContactEmail = "C_EmailAddress";
570
+ this.elqFieldVisitorEmail = 'V_Email_Address';
571
+ this.elqFieldVisitorFirstname = 'C_FirstName';
572
+ this.elqFieldVisitorLastname = 'C_LastName';
573
+ this.notmeLinkId = undefined;
574
+ this.notmeFieldsClass = undefined;
575
+ this.notmeMessage = undefined;
576
+ this.notmeMessageNoname = undefined;
577
+ this.isInitialized = false;
578
+ }
579
+ componentWillLoad() {
580
+ this.initializeElqLib();
581
+ }
582
+ initializeElqLib() {
583
+ this.elqLib = new ElqLib({
584
+ elq_site_id: this.elqSiteId,
585
+ elq_visitor_lookup_key: this.elqVisitorLookupKey,
586
+ elq_recipient_id_lookup_key: this.elqRecipientIdLookupKey,
587
+ elq_contact_lookup_key: this.elqContactLookupKey,
588
+ elq_field_email_rec_id: this.elqFieldEmailRecId,
589
+ elq_field_contact_email: this.elqFieldContactEmail,
590
+ elq_field_visitor_email: this.elqFieldVisitorEmail,
591
+ elq_field_visitor_firstname: this.elqFieldVisitorFirstname,
592
+ elq_field_visitor_lastname: this.elqFieldVisitorLastname,
593
+ notme_link_id: this.notmeLinkId,
594
+ notme_fields_class: this.notmeFieldsClass,
595
+ notme_message: this.notmeMessage,
596
+ notme_message_noname: this.notmeMessageNoname,
597
+ });
598
+ this.isInitialized = true;
599
+ }
600
+ getCookie(name) {
601
+ let cookieValue = null;
602
+ if (document.cookie) {
603
+ const cookies = document.cookie.split(';');
604
+ for (let cookie of cookies) {
605
+ const [key, value] = cookie.trim().split('=');
606
+ if (key === name) {
607
+ cookieValue = decodeURIComponent(value);
608
+ break;
609
+ }
610
+ }
611
+ }
612
+ return cookieValue;
613
+ }
614
+ async performDataLookup() {
615
+ if (this.isInitialized) {
616
+ this.elqLib.user_elq_email = this.getCookie('elq-uid');
617
+ this.elqLib.find_eloqua_contact();
618
+ }
619
+ }
620
+ render() {
621
+ return (index.h("slot", null));
622
+ }
623
+ };
624
+ PtcDataLookup.style = ptcDataLookupCss;
625
+
7
626
  /******************************************************************************
8
627
  Copyright (c) Microsoft Corporation.
9
628
 
@@ -7178,6 +7797,37 @@ const PtcSelect = class {
7178
7797
  };
7179
7798
  PtcSelect.style = ptcSelectCss;
7180
7799
 
7800
+ 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}}";
7801
+
7802
+ const PtcSpacer = class {
7803
+ constructor(hostRef) {
7804
+ index.registerInstance(this, hostRef);
7805
+ this.breakpoint = '';
7806
+ this.size = 'medium';
7807
+ this.direction = 'vertical';
7808
+ }
7809
+ render() {
7810
+ const classMap = this.getCssClassMap();
7811
+ return (index.h(index.Host, { class: classMap }));
7812
+ }
7813
+ getCssClassMap() {
7814
+ return {
7815
+ [this.size]: true,
7816
+ ['ptc-spacer-horizontal']: this.direction === 'horizontal',
7817
+ ['ptc-spacer-vertical']: this.direction === 'vertical',
7818
+ ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
7819
+ ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
7820
+ ['ptc-spacer-small']: this.breakpoint === 'small',
7821
+ ['ptc-spacer-medium']: this.breakpoint === 'medium',
7822
+ ['ptc-spacer-large']: this.breakpoint === 'large',
7823
+ ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
7824
+ ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
7825
+ ['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
7826
+ };
7827
+ }
7828
+ };
7829
+ PtcSpacer.style = ptcSpacerCss;
7830
+
7181
7831
  /**
7182
7832
  * @license
7183
7833
  * Copyright 2019 Google Inc.
@@ -10672,6 +11322,83 @@ const PtcTextfield = class {
10672
11322
  };
10673
11323
  PtcTextfield.style = ptcTextfieldCss;
10674
11324
 
11325
+ const ptcTitleCss = "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}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 screen and (min-width: 769px){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}";
11326
+
11327
+ const PtcTitle = class {
11328
+ constructor(hostRef) {
11329
+ index.registerInstance(this, hostRef);
11330
+ this.isPlmHub = false;
11331
+ this.type = 'h2';
11332
+ this.textAlign = undefined;
11333
+ this.upperline = 'dotted';
11334
+ this.titleShadow = undefined;
11335
+ this.titleColor = 'gray';
11336
+ this.titleMargin = undefined;
11337
+ this.titleWeight = undefined;
11338
+ this.titleSize = undefined;
11339
+ this.titleHeight = 'densest';
11340
+ this.styles = undefined;
11341
+ this.ellipsisLineCutoff = undefined;
11342
+ this.titleDisplay = 'inline-block';
11343
+ }
11344
+ render() {
11345
+ const classMap = this.getCssClassMap();
11346
+ const cutOff = this.getLineCuttoff();
11347
+ let TagType;
11348
+ switch (this.type) {
11349
+ case 'h1':
11350
+ TagType = 'h1';
11351
+ break;
11352
+ case 'h3':
11353
+ TagType = 'h3';
11354
+ break;
11355
+ case 'h4':
11356
+ TagType = 'h4';
11357
+ break;
11358
+ case 'h5':
11359
+ TagType = 'h5';
11360
+ break;
11361
+ case 'h6':
11362
+ TagType = 'h6';
11363
+ break;
11364
+ default:
11365
+ TagType = 'h2';
11366
+ }
11367
+ return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap }, index.h(TagType, { style: cutOff }, index.h("slot", null)))));
11368
+ }
11369
+ getCssClassMap() {
11370
+ return {
11371
+ [this.textAlign]: !!this.textAlign ? true : false,
11372
+ [this.upperline]: true,
11373
+ [this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
11374
+ [this.titleMargin]: !!this.titleMargin ? true : false,
11375
+ [this.titleShadow]: !!this.titleShadow ? true : false,
11376
+ [this.titleWeight]: !!this.titleWeight ? true : false,
11377
+ [this.titleSize]: !!this.titleSize ? true : false,
11378
+ [this.titleHeight]: !!this.titleHeight ? true : false,
11379
+ [this.titleColor]: !!this.titleColor ? true : false,
11380
+ ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
11381
+ [this.titleDisplay]: !!this.titleDisplay ? true : false,
11382
+ };
11383
+ }
11384
+ getLineCuttoff() {
11385
+ let result;
11386
+ if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
11387
+ result = {
11388
+ ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
11389
+ };
11390
+ }
11391
+ return result;
11392
+ }
11393
+ };
11394
+ PtcTitle.style = ptcTitleCss;
11395
+
11396
+ exports.embedded_form = EmbeddedForm;
11397
+ exports.max_width_container = MaxWidthContainer;
11398
+ exports.ptc_button = PtcButton;
11399
+ exports.ptc_data_lookup = PtcDataLookup;
10675
11400
  exports.ptc_form_checkbox = PtcFormCheckbox;
10676
11401
  exports.ptc_select = PtcSelect;
11402
+ exports.ptc_spacer = PtcSpacer;
10677
11403
  exports.ptc_textfield = PtcTextfield;
11404
+ exports.ptc_title = PtcTitle;