@ptcwebops/ptcw-design 3.0.2 → 3.0.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 (111) hide show
  1. package/dist/cjs/embedded-form.cjs.entry.js +108 -0
  2. package/dist/cjs/footer-form.cjs.entry.js +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/max-width-container.cjs.entry.js +54 -0
  5. package/dist/cjs/ptc-button.cjs.entry.js +52 -0
  6. package/dist/cjs/ptc-data-lookup.cjs.entry.js +496 -0
  7. package/dist/cjs/{embedded-form_9.cjs.entry.js → ptc-form-checkbox_3.cjs.entry.js} +12 -804
  8. package/dist/cjs/ptc-form.cjs.entry.js +1 -1
  9. package/dist/cjs/ptc-modal-quiz.cjs.entry.js +1 -1
  10. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +7 -5
  11. package/dist/cjs/ptc-quote.cjs.entry.js +3 -2
  12. package/dist/cjs/ptc-spacer.cjs.entry.js +38 -0
  13. package/dist/cjs/ptc-title.cjs.entry.js +78 -0
  14. package/dist/cjs/ptc-value-led-card.cjs.entry.js +21 -0
  15. package/dist/cjs/ptc-value-led-content-highlight.cjs.entry.js +19 -0
  16. package/dist/cjs/ptc-value-led-content.cjs.entry.js +19 -0
  17. package/dist/cjs/ptc-value-led-intro.cjs.entry.js +20 -0
  18. package/dist/cjs/ptc-value-led-layout.cjs.entry.js +2 -2
  19. package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +32 -0
  20. package/dist/cjs/ptcw-design.cjs.js +1 -1
  21. package/dist/collection/collection-manifest.json +5 -1
  22. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +1 -1
  23. package/dist/collection/components/organism-bundles/form/footer-form/footer-form.js +1 -1
  24. package/dist/collection/components/organism-bundles/form/ptc-form/ptc-form.js +1 -1
  25. package/dist/collection/components/ptc-button/ptc-button.css +42 -0
  26. package/dist/collection/components/ptc-button/ptc-button.js +20 -1
  27. package/dist/collection/components/ptc-modal-quiz/ptc-modal-quiz.css +6 -1
  28. package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +7 -5
  29. package/dist/collection/components/ptc-quote/ptc-quote.css +28 -0
  30. package/dist/collection/components/ptc-quote/ptc-quote.js +4 -3
  31. package/dist/collection/components/ptc-select/ptc-select.js +4 -4
  32. package/dist/collection/components/ptc-textfield/ptc-textfield.js +12 -16
  33. package/dist/collection/components/ptc-value-led-card/ptc-value-led-card.css +36 -0
  34. package/dist/collection/components/ptc-value-led-card/ptc-value-led-card.js +60 -0
  35. package/dist/collection/components/ptc-value-led-content/ptc-value-led-content.css +12 -0
  36. package/dist/collection/components/ptc-value-led-content/ptc-value-led-content.js +18 -0
  37. package/dist/collection/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.css +31 -0
  38. package/dist/collection/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.js +18 -0
  39. package/dist/collection/components/ptc-value-led-intro/ptc-value-led-intro.css +16 -0
  40. package/dist/collection/components/ptc-value-led-intro/ptc-value-led-intro.js +42 -0
  41. package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.css +22 -3
  42. package/dist/collection/components/ptc-value-led-layout/ptc-value-led-layout.js +1 -1
  43. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +63 -0
  44. package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.js +97 -0
  45. package/dist/custom-elements/index.d.ts +30 -6
  46. package/dist/custom-elements/index.js +131 -568
  47. package/dist/esm/embedded-form.entry.js +104 -0
  48. package/dist/esm/footer-form.entry.js +1 -1
  49. package/dist/esm/loader.js +1 -1
  50. package/dist/esm/max-width-container.entry.js +50 -0
  51. package/dist/esm/ptc-button.entry.js +48 -0
  52. package/dist/esm/ptc-data-lookup.entry.js +492 -0
  53. package/dist/esm/{embedded-form_9.entry.js → ptc-form-checkbox_3.entry.js} +14 -800
  54. package/dist/esm/ptc-form.entry.js +1 -1
  55. package/dist/esm/ptc-modal-quiz.entry.js +1 -1
  56. package/dist/esm/ptc-pricing-packaging-table.entry.js +7 -5
  57. package/dist/esm/ptc-quote.entry.js +3 -2
  58. package/dist/esm/ptc-spacer.entry.js +34 -0
  59. package/dist/esm/ptc-title.entry.js +74 -0
  60. package/dist/esm/ptc-value-led-card.entry.js +17 -0
  61. package/dist/esm/ptc-value-led-content-highlight.entry.js +15 -0
  62. package/dist/esm/ptc-value-led-content.entry.js +15 -0
  63. package/dist/esm/ptc-value-led-intro.entry.js +16 -0
  64. package/dist/esm/ptc-value-led-layout.entry.js +2 -2
  65. package/dist/esm/ptc-value-led-speed-bump.entry.js +28 -0
  66. package/dist/esm/ptcw-design.js +1 -1
  67. package/dist/ptcw-design/p-036234e7.entry.js +1 -0
  68. package/dist/ptcw-design/{p-ed2cc9da.entry.js → p-08ed517e.entry.js} +1 -1
  69. package/dist/ptcw-design/p-137ddeeb.entry.js +1 -0
  70. package/dist/ptcw-design/p-18dfffd3.entry.js +359 -0
  71. package/dist/ptcw-design/p-236073e1.entry.js +1 -0
  72. package/dist/ptcw-design/p-2e4af711.entry.js +1 -0
  73. package/dist/ptcw-design/p-33c054ff.entry.js +1 -0
  74. package/dist/ptcw-design/{p-f00b4b73.entry.js → p-3ca391ab.entry.js} +1 -1
  75. package/dist/ptcw-design/p-3faffecb.entry.js +1 -0
  76. package/dist/ptcw-design/p-49f06645.entry.js +1 -0
  77. package/dist/ptcw-design/p-641bd525.entry.js +1 -0
  78. package/dist/ptcw-design/p-752f779c.entry.js +1 -0
  79. package/dist/ptcw-design/p-7aa6b7e5.entry.js +1 -0
  80. package/dist/ptcw-design/p-7c079ff8.entry.js +1 -0
  81. package/dist/ptcw-design/p-92bbd407.entry.js +1 -0
  82. package/dist/ptcw-design/p-9a36f7a3.entry.js +1 -0
  83. package/dist/ptcw-design/p-d2c400e2.entry.js +1 -0
  84. package/dist/ptcw-design/p-f1c77113.entry.js +1 -0
  85. package/dist/ptcw-design/ptcw-design.css +2 -2
  86. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  87. package/dist/types/components/ptc-button/ptc-button.d.ts +4 -0
  88. package/dist/types/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.d.ts +2 -0
  89. package/dist/types/components/ptc-quote/ptc-quote.d.ts +1 -1
  90. package/dist/types/components/ptc-select/ptc-select.d.ts +1 -1
  91. package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +1 -1
  92. package/dist/types/components/ptc-value-led-card/ptc-value-led-card.d.ts +5 -0
  93. package/dist/types/components/ptc-value-led-content/ptc-value-led-content.d.ts +3 -0
  94. package/dist/types/components/ptc-value-led-content-highlight/ptc-value-led-content-highlight.d.ts +3 -0
  95. package/dist/types/components/ptc-value-led-intro/ptc-value-led-intro.d.ts +4 -0
  96. package/dist/types/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.d.ts +10 -0
  97. package/dist/types/components.d.ts +91 -75
  98. package/package.json +1 -1
  99. package/readme.md +1 -1
  100. package/dist/cjs/ptc-pricing-table.cjs.entry.js +0 -536
  101. package/dist/collection/components/ptc-pricing-table/ptc-pricing-table.css +0 -278
  102. package/dist/collection/components/ptc-pricing-table/ptc-pricing-table.js +0 -680
  103. package/dist/esm/ptc-pricing-table.entry.js +0 -532
  104. package/dist/ptcw-design/p-220f86c0.entry.js +0 -1
  105. package/dist/ptcw-design/p-4a865061.entry.js +0 -1
  106. package/dist/ptcw-design/p-b0b4ebd6.entry.js +0 -359
  107. package/dist/ptcw-design/p-c20538ec.entry.js +0 -1
  108. package/dist/ptcw-design/p-f2621425.entry.js +0 -1
  109. package/dist/ptcw-design/p-f29c71fe.entry.js +0 -1
  110. package/dist/types/components/ptc-pricing-table/ptc-pricing-table.d.ts +0 -110
  111. package/dist/types/utils/eloqua.d.ts +0 -8
@@ -4,686 +4,6 @@ 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("div", { id: "not-me-link-id" }), index.h("div", { id: "not-me-additional-top", class: "not-me-additional-text" }), 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("div", { id: "not-me-additional-bottom", class: "not-me-additional-text" }), index.h("ptc-button", { class: "form-submit", color: "ptc-quaternary", type: "submit", styles: ":host{align-self:flex-end; margin-top: 40px; 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
- this.fields_populated = 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: 'not-me-link-id',
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
- // init noteme link;
241
- this.init_notme();
242
- // Set the global Eloqua callback function
243
- window.SetElqContent = this.eloqua_callback.bind(this);
244
- }
245
- setEloquaSiteId() {
246
- if (this.params.elq_site_id) {
247
- ElqLib._elqQ.push(['elqSetSiteId', this.params.elq_site_id]);
248
- ElqLib._elqQ.push(['elqUseFirstPartyCookie', 'tracking.ptc.com']);
249
- ElqLib._elqQ.push(['elqTrackPageView', window.location.href]);
250
- }
251
- }
252
- fire_pageview(url) {
253
- try {
254
- if (typeof url === 'undefined') {
255
- ElqLib._elqQ.push(['elqTrackPageView']);
256
- }
257
- else {
258
- ElqLib._elqQ.push(['elqTrackPageView', url]);
259
- }
260
- console.log('TRACKING: Eloqua pageview fired for URL: ' + (url || 'current page'));
261
- }
262
- catch (e) {
263
- console.log('TRACKING: Could not fire Eloqua pageview: ', e);
264
- }
265
- }
266
- find_eloqua_contact() {
267
- console.log('CONTACT LOOKUP: Attempting to find Eloqua contact...');
268
- // Queue callback action for the return of lookup
269
- this.callback_queue.push(this.handle_visitor_lookup.bind(this));
270
- // Start with a recipient lookup if ID was supplied in URL
271
- if (this.visitor_elq_id !== null) {
272
- this.lookup_visitor_by_recipient_id();
273
- }
274
- else {
275
- // If no visitor ID, attempt to do a visitor lookup with an Eloqua cookie
276
- this.lookup_visitor_by_cookie(); //preference center
277
- this.lookup_contact_by_email();
278
- }
279
- }
280
- add_field_mapping(mapping) {
281
- this.field_mappings.push(mapping);
282
- }
283
- add_queue_action(action) {
284
- this.callback_queue.push(action);
285
- }
286
- store_url_vars() {
287
- // Clear the current url_vars
288
- this.url_vars = {};
289
- // Split the URL by the '?' to get the query string part
290
- const queryString = window.location.search.substring(1);
291
- // Split the query string by '&' to get each key-value pair
292
- queryString.split('&').forEach(paramString => {
293
- // Split the key-value pairs by '=' to separate keys and values
294
- let [key, value] = paramString.split('=');
295
- // Decode URI components to handle URL encoding
296
- key = decodeURIComponent(key);
297
- value = decodeURIComponent(value);
298
- // Store the key-value pair in the url_vars object
299
- this.url_vars[key] = value;
300
- });
301
- // Optionally, log the stored URL variables
302
- console.log('URL variables stored:', this.url_vars);
303
- }
304
- store_visitor_elq_id() {
305
- console.log("INIT: Looking for visitor's Eloqua ID in URL...");
306
- const elqIdParam = this.url_vars['elq'];
307
- if (elqIdParam) {
308
- const elqId = elqIdParam.toUpperCase().replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, '$1-$2-$3-$4-$5');
309
- this.visitor_elq_id = elqId;
310
- console.log(`INIT: ...visitor Eloqua ID found in URL: ${elqId}`);
311
- }
312
- else {
313
- this.visitor_elq_id = null;
314
- console.log('INIT: ...no visitor Eloqua ID found in URL');
315
- }
316
- }
317
- // private merge(root: any, ...sources: any[]): any {
318
- // sources.forEach(source => {
319
- // for (const key in source) {
320
- // if (source.hasOwnProperty(key)) {
321
- // root[key] = source[key];
322
- // }
323
- // }
324
- // });
325
- // return root;
326
- // }
327
- eloqua_callback() {
328
- console.log('LOOKUP: Eloqua lookup finished');
329
- // Process each action in the callback queue
330
- let actionSucceeded = true;
331
- while (actionSucceeded && this.callback_queue.length > 0) {
332
- const action = this.callback_queue.shift();
333
- if (action) {
334
- console.log(`QUEUE: Executing action`);
335
- actionSucceeded = action(); // Execute the action. It must return a boolean indicating success.
336
- if (actionSucceeded) {
337
- console.log('QUEUE: Action executed successfully, removed from queue');
338
- }
339
- else {
340
- console.log('QUEUE: Action failed, re-adding to queue');
341
- this.callback_queue.unshift(action); // Re-add the action to the front of the queue
342
- break; // Break out of the loop if an action fails
343
- }
344
- }
345
- }
346
- // After processing the queue, update user details or perform other operations
347
- if (actionSucceeded) {
348
- this.update_user_details();
349
- this.populate_mapped_fields();
350
- }
351
- // ...additional code to handle the aftermath of callback processing...
352
- }
353
- lookup_visitor_by_cookie() {
354
- if (this.params.elq_visitor_lookup_key != '') {
355
- ElqLib._elqQ.push(['elqDataLookup', escape(this.params.elq_visitor_lookup_key), '']);
356
- console.log('LOOKUP: Visitor lookup sent using Eloqua cookie');
357
- }
358
- else {
359
- console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
360
- }
361
- }
362
- lookup_visitor_by_recipient_id() {
363
- if (this.params.elq_recipient_id_lookup_key != '') {
364
- ElqLib._elqQ.push([
365
- 'elqDataLookup',
366
- escape(this.params.elq_recipient_id_lookup_key),
367
- '<' + this.params.elq_field_email_rec_id + '>' + this.visitor_elq_id + '</' + this.params.elq_field_email_rec_id + '>',
368
- ]);
369
- console.log('LOOKUP: Visitor lookup sent using email recipient id: ' + this.visitor_elq_id);
370
- }
371
- else {
372
- console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
373
- }
374
- }
375
- lookup_contact_by_email() {
376
- if (this.params.elq_contact_lookup_key != '') {
377
- ElqLib._elqQ.push([
378
- 'elqDataLookup',
379
- escape(this.params.elq_contact_lookup_key),
380
- '<' + this.params.elq_field_contact_email + '>' + this.user_elq_email + '</' + this.params.elq_field_contact_email + '>',
381
- ]);
382
- console.log('LOOKUP: Contact lookup sent using email address: ' + this.user_elq_email);
383
- }
384
- else {
385
- console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
386
- }
387
- }
388
- handle_visitor_lookup() {
389
- //console.log('Contact Email: ' + this.params.elq_field_contact_email)
390
- const email = window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email); //it was elq_field_visitor_email ( V_Email_Address)
391
- if (email) {
392
- console.log(`LOOKUP: Found contact email address: ${email}`);
393
- this.user_elq_email = email.trim();
394
- this.lookup_contact_by_email();
395
- this.callback_queue.push(this.handle_contact_lookup.bind(this));
396
- return true;
397
- }
398
- else {
399
- return false;
400
- }
401
- }
402
- handle_contact_lookup() {
403
- if (window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email) != '') {
404
- console.log('LOOKUP: Found contact email address: ' + window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email));
405
- return true;
406
- }
407
- else {
408
- return false;
409
- }
410
- }
411
- populate_mapped_fields() {
412
- console.log('MAPPING: Starting field mapping');
413
- //debugger;
414
- this.field_mappings.forEach(({ elementId, elqFieldName }) => {
415
- const fieldValue = window.GetElqContentPersonalizationValue(elqFieldName);
416
- if (elementId !== 'contact-country') {
417
- const element = document.getElementById(elementId);
418
- console.log('element ID of field mappings: ' + element);
419
- console.log('fieldValue ID of field mappings: ' + fieldValue);
420
- if (element && fieldValue) {
421
- element.value = fieldValue;
422
- //element.style.display = 'none'; // Hide the field.
423
- if (element.closest('ptc-textfield')) {
424
- element.closest('ptc-textfield').style.display = 'none';
425
- }
426
- else if (element.closest('ptc-select')) {
427
- element.closest('ptc-select').style.display = 'none';
428
- }
429
- this.fields_populated = true;
430
- }
431
- }
432
- else {
433
- const countryEle = document.getElementById(elementId);
434
- if (countryEle && fieldValue) {
435
- countryEle.textContent = fieldValue;
436
- }
437
- // debugger;
438
- if (countryEle.closest('ptc-select')) {
439
- countryEle.closest('ptc-select').style.display = 'none';
440
- }
441
- }
442
- });
443
- console.log('MAPPING: Finished ');
444
- if (this.fields_populated) {
445
- this.update_notme_link();
446
- }
447
- }
448
- update_user_details() {
449
- console.log('displaying user info...');
450
- if (window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email) !== '') {
451
- document
452
- .querySelectorAll('input[type=text], input[type=tel], input[name="phonenumber"], input[name="phonenumbertwo"], input[type=email], select, textarea, span.mdc-select__selected-text')
453
- .forEach((element) => {
454
- if (element.tagName === 'SPAN') {
455
- const spanText = element;
456
- const spanEloquaName = spanText.getAttribute('data-eloqua-name');
457
- if (spanEloquaName !== null) {
458
- const spanElqValue = window.GetElqContentPersonalizationValue(spanEloquaName);
459
- if (spanElqValue !== '' && spanElqValue.length > 0) {
460
- spanText.textContent = spanElqValue;
461
- }
462
- }
463
- }
464
- else if (element.className.includes('intl-tel-input')) {
465
- const telInput = element;
466
- const eloquaName = telInput.getAttribute('data-eloqua-name');
467
- if (eloquaName !== null) {
468
- const elqValue = window.GetElqContentPersonalizationValue(eloquaName);
469
- if (elqValue !== '' && elqValue.length > 0) {
470
- setTimeout(() => {
471
- telInput.placeholder = elqValue;
472
- }, 1000);
473
- }
474
- }
475
- }
476
- else {
477
- const input = element;
478
- const eloquaName = input.getAttribute('data-eloqua-name');
479
- if (eloquaName !== null) {
480
- const elqValue = window.GetElqContentPersonalizationValue(eloquaName);
481
- if (elqValue !== '' && elqValue.length > 0) {
482
- input.value = elqValue;
483
- }
484
- }
485
- }
486
- });
487
- }
488
- if (this.user_elq_email == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_email) != '') {
489
- this.user_elq_email = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_email);
490
- }
491
- if (this.user_elq_firstname == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_firstname) != '') {
492
- this.user_elq_firstname = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_firstname);
493
- }
494
- if (this.user_elq_lastname == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_lastname) != '') {
495
- this.user_elq_lastname = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_lastname);
496
- }
497
- }
498
- update_notme_link() {
499
- // Assuming the user's first and last name are available from Eloqua fields
500
- const firstName = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_firstname);
501
- const lastName = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_lastname);
502
- const notMeLinkElement = document.getElementById(this.params.notme_link_id);
503
- const topAdditional = document.getElementById('not-me-additional-top');
504
- const bottomAdditional = document.getElementById('not-me-additional-bottom');
505
- if (notMeLinkElement) {
506
- let message = this.params.notme_message;
507
- console.log('first name: ' + firstName);
508
- if (firstName && lastName) {
509
- message = this.params.notme_message.replace('{name}', lastName + ' ' + firstName);
510
- }
511
- notMeLinkElement.innerHTML = `<a href="#">${message}</a>`;
512
- topAdditional.innerHTML = "Please fill out additional information.";
513
- bottomAdditional.innerHTML = "Click the button below to recieve email confirmation.";
514
- topAdditional.style.display = 'block';
515
- bottomAdditional.style.display = 'block';
516
- notMeLinkElement.onclick = this.remove_user_details.bind(this);
517
- }
518
- }
519
- init_notme() {
520
- const topAdditional = document.getElementById('not-me-additional-top');
521
- const bottomAdditional = document.getElementById('not-me-additional-bottom');
522
- if (topAdditional)
523
- topAdditional.style.display = 'none';
524
- if (bottomAdditional)
525
- bottomAdditional.style.display = 'none';
526
- }
527
- remove_user_details(e) {
528
- e.preventDefault();
529
- this.user_elq_email = '';
530
- this.user_elq_firstname = '';
531
- this.user_elq_lastname = '';
532
- // $('.' + this.params.notme_fields_class).val('');
533
- const linkDiv = document.getElementById(this.params.notme_link_id);
534
- const topAdditional = document.getElementById('not-me-additional-top');
535
- const bottomAdditional = document.getElementById('not-me-additional-bottom');
536
- linkDiv.querySelector('a').remove();
537
- topAdditional.style.display = 'none';
538
- bottomAdditional.style.display = 'none';
539
- this.refreshForm();
540
- return false;
541
- }
542
- refreshForm() {
543
- this.field_mappings.forEach(({ elementId }) => {
544
- if (elementId !== 'contact-country') {
545
- const element = document.getElementById(elementId);
546
- if (element) {
547
- console.log('element: ' + element);
548
- element.value = ''; // Reset the value
549
- if (element.closest('ptc-textfield')) {
550
- element.closest('ptc-textfield').style.display = '';
551
- }
552
- else if (element.closest('ptc-select')) {
553
- element.closest('ptc-select').style.display = '';
554
- }
555
- }
556
- }
557
- else {
558
- const countryEle = document.getElementById(elementId);
559
- if (countryEle) {
560
- countryEle.textContent = '';
561
- }
562
- // debugger;
563
- if (countryEle.closest('ptc-select')) {
564
- countryEle.closest('ptc-select').style.display = '';
565
- }
566
- }
567
- });
568
- this.clearEloquaCookie('elq-uid'); // Optionally clear the Eloqua cookie
569
- this.fields_populated = false;
570
- //this.update_notme_link(); // Update the 'Not Me' link if necessary
571
- }
572
- clearEloquaCookie(name) {
573
- document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
574
- console.log('cookie cleared');
575
- }
576
- // Private Method to load Eloqua Scripts
577
- async_load() {
578
- const scriptUrl = 'https://img.en25.com/i/elqCfg.min.js';
579
- const scriptElement = document.createElement('script');
580
- scriptElement.type = 'text/javascript';
581
- scriptElement.async = true;
582
- scriptElement.src = scriptUrl;
583
- // Error handling for script loading
584
- scriptElement.onerror = errorEvent => {
585
- console.log(`Error loading script: ${errorEvent}`);
586
- };
587
- // Append the script element to the head of the document, or before the first script tag found
588
- const firstScriptTag = document.getElementsByTagName('script')[0];
589
- if (firstScriptTag && firstScriptTag.parentNode) {
590
- firstScriptTag.parentNode.insertBefore(scriptElement, firstScriptTag);
591
- }
592
- else {
593
- document.head.appendChild(scriptElement);
594
- }
595
- console.log(`Async loading of script ${scriptUrl} initiated.`);
596
- }
597
- }
598
- ElqLib._elqQ = window['_elqQ'] || [];
599
- // Static member initialization
600
- //ElqLib._elqQ = window['_elqQ'] || [];
601
-
602
- const ptcDataLookupCss = ":host{display:block}#not-me-link-id{color:var(--color-gray-10);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-medium);font-style:normal;font-weight:var(--ptc-font-weight-bold);line-height:normal;margin-bottom:var(--ptc-element-spacing-03);position:relative}#not-me-link-id a{color:var(--color-blue-07);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-medium);font-style:normal;font-weight:var(--ptc-font-weight-bold);line-height:normal;text-decoration-line:underline}.not-me-additional-text{color:var(--color-gray-10);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-medium);font-style:normal;font-weight:var(--ptc-font-weight-regular);line-height:normal;margin-bottom:var(--ptc-element-spacing-03)}.not-me-additional-text#not-me-additional-bottom{margin-bottom:unset;margin-top:var(--ptc-element-spacing-03)}.ptc-embedded-form>div{max-width:273px;overflow-wrap:break-word}.ptc-embedded-form .iti__country-name{color:var(--color-gray-12)}.ptc-embedded-form .iti--separate-dial-code.iti--show-flags .iti__selected-dial-code{color:var(--color-gray-12)}.ptc-embedded-form .mdc-menu-surface--open{z-index:99999}";
603
-
604
- const PtcDataLookup = class {
605
- constructor(hostRef) {
606
- index.registerInstance(this, hostRef);
607
- this.elqSiteId = undefined;
608
- this.elqVisitorLookupKey = undefined;
609
- this.elqRecipientIdLookupKey = undefined;
610
- this.elqContactLookupKey = undefined;
611
- this.elqFieldEmailRecId = 'V_EmailRecipientID';
612
- this.elqFieldContactEmail = 'C_EmailAddress';
613
- this.elqFieldVisitorEmail = 'V_Email_Address';
614
- this.elqFieldVisitorFirstname = 'C_FirstName';
615
- this.elqFieldVisitorLastname = 'C_LastName';
616
- this.notmeLinkId = undefined;
617
- this.notmeFieldsClass = undefined;
618
- this.notmeMessage = undefined;
619
- this.notmeMessageNoname = undefined;
620
- this.isBlindSubmit = true;
621
- this.isInitialized = false;
622
- }
623
- componentWillLoad() {
624
- this.initializeElqLib();
625
- if (this.isBlindSubmit) {
626
- this.populateBlindField();
627
- }
628
- }
629
- initializeElqLib() {
630
- this.elqLib = new ElqLib({
631
- elq_site_id: this.elqSiteId,
632
- elq_visitor_lookup_key: this.elqVisitorLookupKey,
633
- elq_recipient_id_lookup_key: this.elqRecipientIdLookupKey,
634
- elq_contact_lookup_key: this.elqContactLookupKey,
635
- elq_field_email_rec_id: this.elqFieldEmailRecId,
636
- elq_field_contact_email: this.elqFieldContactEmail,
637
- elq_field_visitor_email: this.elqFieldVisitorEmail,
638
- elq_field_visitor_firstname: this.elqFieldVisitorFirstname,
639
- elq_field_visitor_lastname: this.elqFieldVisitorLastname,
640
- notme_link_id: this.notmeLinkId,
641
- notme_fields_class: this.notmeFieldsClass,
642
- notme_message: this.notmeMessage,
643
- notme_message_noname: this.notmeMessageNoname,
644
- });
645
- this.isInitialized = true;
646
- }
647
- populateBlindField() {
648
- this.elqLib.add_field_mapping({ elementId: 'contact-phone', elqFieldName: 'C_BusPhone' });
649
- this.elqLib.add_field_mapping({ elementId: 'contact-email', elqFieldName: 'C_EmailAddress' });
650
- this.elqLib.add_field_mapping({ elementId: 'contact-firstname', elqFieldName: 'C_FirstName' });
651
- this.elqLib.add_field_mapping({ elementId: 'contact-lastname', elqFieldName: 'C_LastName' });
652
- this.elqLib.add_field_mapping({ elementId: 'contact-country', elqFieldName: 'C_Country' });
653
- this.elqLib.add_field_mapping({ elementId: 'contact-phone', elqFieldName: 'C_BusPhone' });
654
- this.elqLib.add_field_mapping({ elementId: 'company', elqFieldName: 'C_Company' });
655
- this.elqLib.add_field_mapping({ elementId: 'contact-zipcode', elqFieldName: 'C_Zip_Postal' });
656
- this.elqLib.add_field_mapping({ elementId: 'contact-job-category', elqFieldName: 'C_Job_Role1' });
657
- this.elqLib.add_field_mapping({ elementId: 'contact-job-function', elqFieldName: 'C_Job_Function1' });
658
- this.elqLib.add_field_mapping({ elementId: 'contact-jp-job-title', elqFieldName: 'C_Title' });
659
- }
660
- getCookie(name) {
661
- let cookieValue = null;
662
- if (document.cookie) {
663
- const cookies = document.cookie.split(';');
664
- for (let cookie of cookies) {
665
- const [key, value] = cookie.trim().split('=');
666
- if (key === name) {
667
- cookieValue = decodeURIComponent(value);
668
- break;
669
- }
670
- }
671
- }
672
- return cookieValue;
673
- }
674
- async performDataLookup() {
675
- if (this.isInitialized) {
676
- this.elqLib.user_elq_email = this.getCookie('elq-uid');
677
- this.elqLib.find_eloqua_contact();
678
- }
679
- }
680
- render() {
681
- return index.h("slot", null);
682
- }
683
- get el() { return index.getElement(this); }
684
- };
685
- PtcDataLookup.style = ptcDataLookupCss;
686
-
687
7
  /******************************************************************************
688
8
  Copyright (c) Microsoft Corporation.
689
9
 
@@ -8079,7 +7399,7 @@ const PtcSelect = class {
8079
7399
  this.label = undefined;
8080
7400
  this.isRequired = true;
8081
7401
  this.helpertext = 'Please select a value!';
8082
- this.name = undefined;
7402
+ this.fieldName = undefined;
8083
7403
  this.disabled = false;
8084
7404
  this.selectedValue = '';
8085
7405
  this.ptcDataEloquaName = undefined;
@@ -8108,43 +7428,12 @@ const PtcSelect = class {
8108
7428
  return className;
8109
7429
  }
8110
7430
  render() {
8111
- return (index.h(index.Host, { class: "ptc-select" }, index.h("label", { class: "ptc-label-select" }, this.label), index.h("div", { class: this.getSelectClassName() }, index.h("div", Object.assign({ class: "mdc-select__anchor", "aria-labelledby": "outlined-select-label" }, (this.isRequired ? { ariaRequired: true } : null)), index.h("span", { class: "mdc-notched-outline" }, index.h("span", { class: "mdc-notched-outline__leading" }), index.h("span", { class: "mdc-notched-outline__trailing" })), index.h("span", { class: "mdc-select__selected-text-container" }, index.h("span", { id: this.fieldId, class: "mdc-select__selected-text", "aria-controls": this.name, "aria-describedby": this.name, "data-eloqua-name": this.ptcDataEloquaName, "data-target-eloqua-name": this.ptcDataTargetEloquaName })), index.h("span", { class: "mdc-select__dropdown-icon" }, index.h("svg", { class: "", width: "20", height: "12", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M1.375 1.875L5 5.5L8.625 1.875L9.9375 3.1875L5 8.125L0.0625 3.1875L1.375 1.875Z" })))), index.h("div", { class: "mdc-select__menu mdc-menu mdc-menu-surface mdc-menu-surface--fullwidth" }, index.h("slot", null))), index.h("p", { id: this.name, class: "mdc-select-helper-text mdc-select-helper-text--validation-msg" }, index.h("svg", { class: "select-error-svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", { "clip-path": "url(#clip0_12_1424)" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.3156 0L16 4.68444V11.3156L11.3156 16H4.68444L0 11.3156V4.68444L4.68444 0H11.3156ZM8 10.4C7.36 10.4 6.84444 10.9156 6.84444 11.5556C6.84444 12.1956 7.36 12.7111 8 12.7111C8.64 12.7111 9.15556 12.1956 9.15556 11.5556C9.15556 10.9156 8.64 10.4 8 10.4ZM8.88889 3.55556H7.11111V8.88889H8.88889V3.55556Z", fill: "#AF3231" })), index.h("defs", null, index.h("clipPath", { id: "clip0_12_1424" }, index.h("rect", { width: "16", height: "16", fill: "white" })))), this.helpertext)));
7431
+ return (index.h(index.Host, { class: "ptc-select" }, index.h("label", { class: "ptc-label-select" }, this.label), index.h("div", { class: this.getSelectClassName() }, index.h("div", Object.assign({ class: "mdc-select__anchor", "aria-labelledby": "outlined-select-label" }, (this.isRequired ? { ariaRequired: true } : null)), index.h("span", { class: "mdc-notched-outline" }, index.h("span", { class: "mdc-notched-outline__leading" }), index.h("span", { class: "mdc-notched-outline__trailing" })), index.h("span", { class: "mdc-select__selected-text-container" }, index.h("span", { id: this.fieldId, class: "mdc-select__selected-text", "aria-controls": this.fieldName, "aria-describedby": this.fieldName, "data-eloqua-name": this.ptcDataEloquaName, "data-target-eloqua-name": this.ptcDataTargetEloquaName })), index.h("span", { class: "mdc-select__dropdown-icon" }, index.h("svg", { class: "", width: "20", height: "12", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M1.375 1.875L5 5.5L8.625 1.875L9.9375 3.1875L5 8.125L0.0625 3.1875L1.375 1.875Z" })))), index.h("div", { class: "mdc-select__menu mdc-menu mdc-menu-surface mdc-menu-surface--fullwidth" }, index.h("slot", null))), index.h("p", { id: this.fieldName, class: "mdc-select-helper-text mdc-select-helper-text--validation-msg" }, index.h("svg", { class: "select-error-svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", { "clip-path": "url(#clip0_12_1424)" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.3156 0L16 4.68444V11.3156L11.3156 16H4.68444L0 11.3156V4.68444L4.68444 0H11.3156ZM8 10.4C7.36 10.4 6.84444 10.9156 6.84444 11.5556C6.84444 12.1956 7.36 12.7111 8 12.7111C8.64 12.7111 9.15556 12.1956 9.15556 11.5556C9.15556 10.9156 8.64 10.4 8 10.4ZM8.88889 3.55556H7.11111V8.88889H8.88889V3.55556Z", fill: "#AF3231" })), index.h("defs", null, index.h("clipPath", { id: "clip0_12_1424" }, index.h("rect", { width: "16", height: "16", fill: "white" })))), this.helpertext)));
8112
7432
  }
8113
7433
  get el() { return index.getElement(this); }
8114
7434
  };
8115
7435
  PtcSelect.style = ptcSelectCss;
8116
7436
 
8117
- 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}}";
8118
-
8119
- const PtcSpacer = class {
8120
- constructor(hostRef) {
8121
- index.registerInstance(this, hostRef);
8122
- this.breakpoint = '';
8123
- this.size = 'medium';
8124
- this.direction = 'vertical';
8125
- }
8126
- render() {
8127
- const classMap = this.getCssClassMap();
8128
- return (index.h(index.Host, { class: classMap }));
8129
- }
8130
- getCssClassMap() {
8131
- return {
8132
- [this.size]: true,
8133
- ['ptc-spacer-horizontal']: this.direction === 'horizontal',
8134
- ['ptc-spacer-vertical']: this.direction === 'vertical',
8135
- ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
8136
- ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
8137
- ['ptc-spacer-small']: this.breakpoint === 'small',
8138
- ['ptc-spacer-medium']: this.breakpoint === 'medium',
8139
- ['ptc-spacer-large']: this.breakpoint === 'large',
8140
- ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
8141
- ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
8142
- ['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
8143
- };
8144
- }
8145
- };
8146
- PtcSpacer.style = ptcSpacerCss;
8147
-
8148
7437
  /**
8149
7438
  * @license
8150
7439
  * Copyright 2019 Google Inc.
@@ -11493,7 +10782,7 @@ const PtcTextfield = class {
11493
10782
  this.labelText = 'Email';
11494
10783
  this.helpertext = 'Please enter a value';
11495
10784
  this.disabled = false;
11496
- this.name = 'email';
10785
+ this.fieldName = 'email';
11497
10786
  this.ptcDataEloquaName = undefined;
11498
10787
  this.ptcDataTargetEloquaName = undefined;
11499
10788
  this.inputValue = '';
@@ -11533,7 +10822,7 @@ const PtcTextfield = class {
11533
10822
  // debugger;
11534
10823
  // console.error('An error found here!', error.message);
11535
10824
  // }
11536
- if (this.fieldId === 'contact-phone' && this.name === 'phone') {
10825
+ if (this.fieldId === 'contact-phone' && this.fieldName === 'phone') {
11537
10826
  this.iti = intlTelInput(this.customInput, {
11538
10827
  separateDialCode: true,
11539
10828
  initialCountry: 'auto',
@@ -11549,7 +10838,7 @@ const PtcTextfield = class {
11549
10838
  }
11550
10839
  }
11551
10840
  getPhoneValidation() {
11552
- if (this.fieldId === 'contact-phone' && this.name === 'phone') {
10841
+ if (this.fieldId === 'contact-phone' && this.fieldName === 'phone') {
11553
10842
  if (this.iti.isValidNumber()) {
11554
10843
  if (this.mdcTextfield.classList.contains('mdc-text-field--invalid')) {
11555
10844
  this.mdcTextfield.classList.remove('mdc-text-field--invalid');
@@ -11557,7 +10846,6 @@ const PtcTextfield = class {
11557
10846
  if (this.el.classList.contains('invalid-field')) {
11558
10847
  this.el.classList.remove('invalid-field');
11559
10848
  }
11560
- // console.log("text field class list: " + this.mdcTextfield.className)
11561
10849
  }
11562
10850
  else if (!this.iti.isValidNumber()) {
11563
10851
  if (!this.mdcTextfield.classList.contains('mdc-text-field--invalid')) {
@@ -11566,10 +10854,7 @@ const PtcTextfield = class {
11566
10854
  if (!this.el.classList.contains('invalid-field')) {
11567
10855
  this.el.classList.add('invalid-field');
11568
10856
  }
11569
- // console.log("text field class list: " + this.mdcTextfield.className);
11570
- // console.log("this class list: " + this.el.className)
11571
10857
  }
11572
- // console.log('hello!');
11573
10858
  }
11574
10859
  }
11575
10860
  setErrorBackground() {
@@ -11586,7 +10871,7 @@ const PtcTextfield = class {
11586
10871
  }
11587
10872
  getInputClassName() {
11588
10873
  let className = 'mdc-text-field__input';
11589
- if (this.type === 'tel' && this.name === 'phone') {
10874
+ if (this.type === 'tel' && this.fieldName === 'phone') {
11590
10875
  className = `${className} intl-tel-input`;
11591
10876
  }
11592
10877
  else if (this.type === 'text' && this.ptcMaxLength) {
@@ -11599,13 +10884,13 @@ const PtcTextfield = class {
11599
10884
  // if (this.type === 'email' && this.name === 'email') {
11600
10885
  // validationPattern = '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}';
11601
10886
  // }
11602
- if (this.name === 'firstname' || this.name === 'lastname') {
10887
+ if (this.fieldName === 'firstname' || this.fieldName === 'lastname') {
11603
10888
  validationPattern = '[A-Za-z ]+';
11604
10889
  }
11605
10890
  return validationPattern;
11606
10891
  }
11607
10892
  setHelperText() {
11608
- if (this.type === 'email' && this.name === 'email') {
10893
+ if (this.type === 'email' && this.fieldName === 'email') {
11609
10894
  if (this.customInput.validity.valueMissing) {
11610
10895
  this.helpertext = 'Email is required.';
11611
10896
  }
@@ -11613,7 +10898,7 @@ const PtcTextfield = class {
11613
10898
  this.helpertext = 'Please enter a valid email.';
11614
10899
  }
11615
10900
  }
11616
- else if (this.name === 'firstname') {
10901
+ else if (this.fieldName === 'firstname') {
11617
10902
  if (this.customInput.validity.valueMissing) {
11618
10903
  this.helpertext = 'Please enter your first name.';
11619
10904
  }
@@ -11621,7 +10906,7 @@ const PtcTextfield = class {
11621
10906
  this.helpertext = 'Please check your first name';
11622
10907
  }
11623
10908
  }
11624
- else if (this.name === 'lastname') {
10909
+ else if (this.fieldName === 'lastname') {
11625
10910
  if (this.customInput.validity.valueMissing) {
11626
10911
  this.helpertext = 'Please enter your last name.';
11627
10912
  }
@@ -11649,92 +10934,15 @@ const PtcTextfield = class {
11649
10934
  this.mdcTextfield = mdcTextfield;
11650
10935
  } }, index.h("span", { class: "mdc-notched-outline ptc-textfield-outline" }, index.h("span", { class: "mdc-notched-outline__leading" }), index.h("span", { class: "mdc-notched-outline__trailing" })), index.h("input", Object.assign({ ref: customInput => {
11651
10936
  this.customInput = customInput;
11652
- }, id: this.fieldId }, (this.getInputClassName() ? { class: this.getInputClassName() } : null), { type: this.type }, (this.required ? { required: true } : null), (this.ptcMaxLength ? { maxlength: this.ptcMaxLength } : null), { "aria-controls": this.name, "aria-describedby": this.name, "data-eloqua-name": this.ptcDataEloquaName, "data-target-eloqua-name": this.ptcDataTargetEloquaName, value: this.inputValue }, (this.getValidationPattern() ? { pattern: this.getValidationPattern() } : null)))),
10937
+ }, id: this.fieldId }, (this.getInputClassName() ? { class: this.getInputClassName() } : null), { type: this.type }, (this.required ? { required: true } : null), (this.ptcMaxLength ? { maxlength: this.ptcMaxLength } : null), { "aria-controls": this.fieldName, "aria-describedby": this.fieldName, "data-eloqua-name": this.ptcDataEloquaName, "data-target-eloqua-name": this.ptcDataTargetEloquaName, value: this.inputValue, name: this.fieldName }, (this.getValidationPattern() ? { pattern: this.getValidationPattern() } : null)))),
11653
10938
  index.h("div", { class: `mdc-text-field-helper-line
11654
- ${!!this.ptcMaxLength ? 'field-with-counter' : ''}` }, index.h("div", { class: "mdc-text-field-helper-text mdc-text-field-helper-text--validation-msg", id: this.name }, index.h("svg", { class: "input-error-svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", { "clip-path": "url(#clip0_12_1424)" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.3156 0L16 4.68444V11.3156L11.3156 16H4.68444L0 11.3156V4.68444L4.68444 0H11.3156ZM8 10.4C7.36 10.4 6.84444 10.9156 6.84444 11.5556C6.84444 12.1956 7.36 12.7111 8 12.7111C8.64 12.7111 9.15556 12.1956 9.15556 11.5556C9.15556 10.9156 8.64 10.4 8 10.4ZM8.88889 3.55556H7.11111V8.88889H8.88889V3.55556Z", fill: "#AF3231" })), index.h("defs", null, index.h("clipPath", { id: "clip0_12_1424" }, index.h("rect", { width: "16", height: "16", fill: "white" })))), this.helpertext), this.ptcMaxLength ? (index.h("div", { class: "mdc-text-field-character-counter" }, this.inputValue.length, " / ", this.ptcMaxLength)) : null),
10939
+ ${!!this.ptcMaxLength ? 'field-with-counter' : ''}` }, index.h("div", { class: "mdc-text-field-helper-text mdc-text-field-helper-text--validation-msg", id: this.fieldName }, index.h("svg", { class: "input-error-svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", { "clip-path": "url(#clip0_12_1424)" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.3156 0L16 4.68444V11.3156L11.3156 16H4.68444L0 11.3156V4.68444L4.68444 0H11.3156ZM8 10.4C7.36 10.4 6.84444 10.9156 6.84444 11.5556C6.84444 12.1956 7.36 12.7111 8 12.7111C8.64 12.7111 9.15556 12.1956 9.15556 11.5556C9.15556 10.9156 8.64 10.4 8 10.4ZM8.88889 3.55556H7.11111V8.88889H8.88889V3.55556Z", fill: "#AF3231" })), index.h("defs", null, index.h("clipPath", { id: "clip0_12_1424" }, index.h("rect", { width: "16", height: "16", fill: "white" })))), this.helpertext), this.ptcMaxLength ? (index.h("div", { class: "mdc-text-field-character-counter" }, this.inputValue.length, " / ", this.ptcMaxLength)) : null),
11655
10940
  ]) : (index.h("input", { type: "hidden", "data-eloqua-name": this.ptcDataEloquaName, value: this.inputValue }))));
11656
10941
  }
11657
10942
  get el() { return index.getElement(this); }
11658
10943
  };
11659
10944
  PtcTextfield.style = ptcTextfieldCss;
11660
10945
 
11661
- 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}";
11662
-
11663
- const PtcTitle = class {
11664
- constructor(hostRef) {
11665
- index.registerInstance(this, hostRef);
11666
- this.isPlmHub = false;
11667
- this.type = 'h2';
11668
- this.textAlign = undefined;
11669
- this.upperline = 'dotted';
11670
- this.titleShadow = undefined;
11671
- this.titleColor = 'gray';
11672
- this.titleMargin = undefined;
11673
- this.titleWeight = undefined;
11674
- this.titleSize = undefined;
11675
- this.titleHeight = 'densest';
11676
- this.styles = undefined;
11677
- this.ellipsisLineCutoff = undefined;
11678
- this.titleDisplay = 'inline-block';
11679
- }
11680
- render() {
11681
- const classMap = this.getCssClassMap();
11682
- const cutOff = this.getLineCuttoff();
11683
- let TagType;
11684
- switch (this.type) {
11685
- case 'h1':
11686
- TagType = 'h1';
11687
- break;
11688
- case 'h3':
11689
- TagType = 'h3';
11690
- break;
11691
- case 'h4':
11692
- TagType = 'h4';
11693
- break;
11694
- case 'h5':
11695
- TagType = 'h5';
11696
- break;
11697
- case 'h6':
11698
- TagType = 'h6';
11699
- break;
11700
- default:
11701
- TagType = 'h2';
11702
- }
11703
- 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)))));
11704
- }
11705
- getCssClassMap() {
11706
- return {
11707
- [this.textAlign]: !!this.textAlign ? true : false,
11708
- [this.upperline]: true,
11709
- [this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
11710
- [this.titleMargin]: !!this.titleMargin ? true : false,
11711
- [this.titleShadow]: !!this.titleShadow ? true : false,
11712
- [this.titleWeight]: !!this.titleWeight ? true : false,
11713
- [this.titleSize]: !!this.titleSize ? true : false,
11714
- [this.titleHeight]: !!this.titleHeight ? true : false,
11715
- [this.titleColor]: !!this.titleColor ? true : false,
11716
- ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
11717
- [this.titleDisplay]: !!this.titleDisplay ? true : false,
11718
- };
11719
- }
11720
- getLineCuttoff() {
11721
- let result;
11722
- if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
11723
- result = {
11724
- ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
11725
- };
11726
- }
11727
- return result;
11728
- }
11729
- };
11730
- PtcTitle.style = ptcTitleCss;
11731
-
11732
- exports.embedded_form = EmbeddedForm;
11733
- exports.max_width_container = MaxWidthContainer;
11734
- exports.ptc_button = PtcButton;
11735
- exports.ptc_data_lookup = PtcDataLookup;
11736
10946
  exports.ptc_form_checkbox = PtcFormCheckbox;
11737
10947
  exports.ptc_select = PtcSelect;
11738
- exports.ptc_spacer = PtcSpacer;
11739
10948
  exports.ptc_textfield = PtcTextfield;
11740
- exports.ptc_title = PtcTitle;