@ptcwebops/ptcw-design 6.3.1-beta → 6.3.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.
- package/dist/cjs/{component-4dd13907.js → component-06dda623.js} +1494 -3305
- package/dist/cjs/component-5b5b6a98.js +1819 -0
- package/dist/cjs/event-jumbotron-example.cjs.entry.js +5 -0
- package/dist/cjs/featured-list.cjs.entry.js +1 -1
- package/dist/cjs/icon-asset_6.cjs.entry.js +1 -1
- package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-card_2.cjs.entry.js +4 -8
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +1 -40
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +2 -1
- package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +1 -1
- package/dist/cjs/{ptc-form-checkbox_4.cjs.entry.js → ptc-form-checkbox_2.cjs.entry.js} +5 -787
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +670 -0
- package/dist/cjs/ptc-para.cjs.entry.js +1 -1
- package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-previous-url.cjs.entry.js +2 -10
- package/dist/cjs/ptc-product-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore-char.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore-v3.cjs.entry.js +1 -1
- package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
- package/dist/cjs/ptc-white-paper.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/validation-messages-33a4f26b.js +126 -0
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/icon-asset/media/designer-v6.0.6.svg +2 -30
- package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +6 -6
- package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +3 -3
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +5 -0
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +6 -6
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +6 -6
- package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +6 -6
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +6 -6
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +6 -6
- package/dist/collection/components/ptc-modal/ptc-modal.css +0 -4
- package/dist/collection/components/ptc-modal/ptc-modal.js +2 -60
- package/dist/collection/components/ptc-para/ptc-para.css +0 -3
- package/dist/collection/components/ptc-para/ptc-para.js +2 -2
- package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +6 -6
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +0 -265
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +3 -7
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +0 -16
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +1 -27
- package/dist/collection/components/ptc-product-card/ptc-product-card.css +6 -6
- package/dist/collection/components/ptc-product-category/ptc-product-category.css +6 -6
- package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +6 -6
- package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +6 -6
- package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +6 -6
- package/dist/collection/components/ptc-textfield/ptc-textfield.js +1 -1
- package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +6 -6
- package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +6 -6
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +6 -6
- package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.css +3 -3
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +34 -170
- package/dist/esm/{component-9c921cc6.js → component-274da230.js} +1482 -3281
- package/dist/esm/component-341e4eaa.js +1802 -0
- package/dist/esm/event-jumbotron-example.entry.js +5 -0
- package/dist/esm/featured-list.entry.js +1 -1
- package/dist/esm/icon-asset_6.entry.js +1 -1
- package/dist/esm/innovator-toggle-container.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ptc-bio-card.entry.js +1 -1
- package/dist/esm/ptc-card_2.entry.js +4 -8
- package/dist/esm/ptc-case-studies-slider.entry.js +1 -1
- package/dist/esm/ptc-close-icon_2.entry.js +1 -40
- package/dist/esm/ptc-data-lookup.entry.js +2 -1
- package/dist/esm/ptc-featured-list.entry.js +1 -1
- package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
- package/dist/esm/{ptc-form-checkbox_4.entry.js → ptc-form-checkbox_2.entry.js} +4 -784
- package/dist/esm/ptc-jumbotron.entry.js +1 -1
- package/dist/esm/ptc-multi-select_2.entry.js +665 -0
- package/dist/esm/ptc-para.entry.js +1 -1
- package/dist/esm/ptc-podcast-card.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +2 -10
- package/dist/esm/ptc-product-card.entry.js +1 -1
- package/dist/esm/ptc-product-category.entry.js +1 -1
- package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
- package/dist/esm/ptc-readmore-char.entry.js +1 -1
- package/dist/esm/ptc-readmore-v3.entry.js +1 -1
- package/dist/esm/ptc-tooltip-v2.entry.js +1 -1
- package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
- package/dist/esm/ptc-white-paper.entry.js +1 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/validation-messages-adbb6518.js +124 -0
- package/dist/ptcw-design/media/designer-v6.0.6.svg +2 -30
- package/dist/ptcw-design/{p-38a1425c.entry.js → p-00ccc051.entry.js} +1 -1
- package/dist/ptcw-design/p-18a5a338.js +1 -0
- package/dist/ptcw-design/p-235149b5.entry.js +1 -0
- package/dist/ptcw-design/{p-485cb0c8.entry.js → p-2ab0f25c.entry.js} +1 -1
- package/dist/ptcw-design/{p-d2523dce.entry.js → p-2db8ed95.entry.js} +1 -1
- package/dist/ptcw-design/p-3a50e95a.entry.js +68 -0
- package/dist/ptcw-design/{p-6dc78042.entry.js → p-483e20af.entry.js} +1 -1
- package/dist/ptcw-design/p-4ee29b78.entry.js +1 -0
- package/dist/ptcw-design/p-4f523245.entry.js +1 -0
- package/dist/ptcw-design/p-520542e2.entry.js +1 -0
- package/dist/ptcw-design/p-53d15f85.entry.js +1 -0
- package/dist/ptcw-design/{p-beb29540.entry.js → p-57b28b2b.entry.js} +1 -1
- package/dist/ptcw-design/p-647dee4f.entry.js +1 -0
- package/dist/ptcw-design/p-69ef15d4.entry.js +1 -0
- package/dist/ptcw-design/{p-9d386f08.entry.js → p-6b7d2579.entry.js} +1 -1
- package/dist/ptcw-design/{p-a4c78993.entry.js → p-6d0f7580.entry.js} +1 -1
- package/dist/ptcw-design/p-753dff04.entry.js +1 -0
- package/dist/ptcw-design/p-7e3985cc.entry.js +1 -0
- package/dist/ptcw-design/p-ad4f4f33.entry.js +1 -0
- package/dist/ptcw-design/p-b29e43cf.entry.js +1 -0
- package/dist/ptcw-design/p-be533f0d.js +134 -0
- package/dist/ptcw-design/p-c1513c3f.js +203 -0
- package/dist/ptcw-design/{p-2b583ae1.entry.js → p-e6cb2dce.entry.js} +1 -1
- package/dist/ptcw-design/p-edcad0f1.entry.js +1 -0
- package/dist/ptcw-design/p-f093f6f8.entry.js +1 -0
- package/dist/ptcw-design/p-f31e17d9.entry.js +1 -0
- package/dist/ptcw-design/{p-b10baf43.entry.js → p-fd5b7db1.entry.js} +1 -1
- package/dist/ptcw-design/{p-3964837c.entry.js → p-ff0910d6.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.css +2 -2
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +1 -8
- package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
- package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +0 -2
- package/dist/types/components.d.ts +4 -21
- package/package.json +1 -1
- package/readme.md +1 -5
- package/dist/cjs/modal-form-example.cjs.entry.js +0 -94
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +0 -26
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +0 -99
- package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +0 -45
- package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +0 -47
- package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +0 -157
- package/dist/esm/modal-form-example.entry.js +0 -90
- package/dist/ptcw-design/p-094f5dec.entry.js +0 -1
- package/dist/ptcw-design/p-130e2278.entry.js +0 -1
- package/dist/ptcw-design/p-1e85cb97.entry.js +0 -1
- package/dist/ptcw-design/p-31e03c00.entry.js +0 -1
- package/dist/ptcw-design/p-3ada2482.entry.js +0 -1
- package/dist/ptcw-design/p-4e8c87e1.entry.js +0 -1
- package/dist/ptcw-design/p-50582650.entry.js +0 -1
- package/dist/ptcw-design/p-9be9f585.entry.js +0 -1
- package/dist/ptcw-design/p-a7e67938.entry.js +0 -1
- package/dist/ptcw-design/p-b789c2ee.entry.js +0 -1
- package/dist/ptcw-design/p-bcab66bf.js +0 -336
- package/dist/ptcw-design/p-c73eb535.entry.js +0 -1
- package/dist/ptcw-design/p-caac157f.entry.js +0 -1
- package/dist/ptcw-design/p-ed71521c.entry.js +0 -1
- package/dist/ptcw-design/p-ef55ab3c.entry.js +0 -1
- package/dist/ptcw-design/p-f26707a6.entry.js +0 -68
- package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +0 -25
package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.form-wrapper {
|
|
6
|
-
width: 371px;
|
|
7
|
-
display: flex;
|
|
8
|
-
border-radius: 3px;
|
|
9
|
-
background: #FFF;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
align-items: center;
|
|
12
|
-
padding: 0px 32px;
|
|
13
|
-
|
|
14
|
-
@media only screen and (min-width: 360px) and (max-width: 479.55px) {
|
|
15
|
-
max-width: 360px;
|
|
16
|
-
width: 360px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.button-wrapper {
|
|
20
|
-
display: flex;
|
|
21
|
-
justify-content: flex-end;
|
|
22
|
-
gap: 20px;
|
|
23
|
-
margin-top: 48px;
|
|
24
|
-
flex-wrap: wrap;
|
|
25
|
-
}
|
|
26
|
-
}
|
package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { Host, h } from '@stencil/core';
|
|
2
|
-
export class PtcForm {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.formData = {
|
|
5
|
-
email: '',
|
|
6
|
-
firstName: '',
|
|
7
|
-
lastName: '',
|
|
8
|
-
company: '',
|
|
9
|
-
country: '',
|
|
10
|
-
phone: '',
|
|
11
|
-
inquiryReason: '',
|
|
12
|
-
howhearselfreport: '',
|
|
13
|
-
policyChecked: false,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
// private countryEle: HTMLPtcSelectElement;
|
|
17
|
-
// private inquiryreasonEle: HTMLPtcTextfieldElement;
|
|
18
|
-
// private howhearselfreport: HTMLPtcTextfieldElement;
|
|
19
|
-
componentDidLoad() {
|
|
20
|
-
this.formButton = this.el.querySelector('.form-submit');
|
|
21
|
-
this.formButton.addEventListener('click', this.handleSubmit.bind(this));
|
|
22
|
-
//get Email
|
|
23
|
-
this.emailEle = this.el.querySelector('ptc-textfield[field-id="contact-email"]');
|
|
24
|
-
this.firstNameEle = this.el.querySelector('ptc-textfield[field-id="contact-firstname"]');
|
|
25
|
-
this.lastNameEle = this.el.querySelector('ptc-textfield[field-id="contact-lastname"]');
|
|
26
|
-
this.companyEle = this.el.querySelector('ptc-textfield[field-id="company"]');
|
|
27
|
-
this.phoneEle = this.el.querySelector('ptc-textfield[field-id="contact-phone"]');
|
|
28
|
-
// this.countryEle = this.el.querySelector('ptc-select[field-id="contact-country"]')
|
|
29
|
-
// this.inquiryreasonEle = this.el.querySelector('ptc-textfield[field-id="contact-inquiry"]')
|
|
30
|
-
// this.howhearselfreport = this.el.querySelector('ptc-textfield[field-id="self-reporting"]')
|
|
31
|
-
}
|
|
32
|
-
handleInputChange(field, value) {
|
|
33
|
-
this.formData = Object.assign(Object.assign({}, this.formData), { [field]: value });
|
|
34
|
-
}
|
|
35
|
-
handleSubmit(event) {
|
|
36
|
-
event.preventDefault();
|
|
37
|
-
this.formData.email = this.emailEle.inputValue;
|
|
38
|
-
this.formData.firstName = this.firstNameEle.inputValue;
|
|
39
|
-
this.formData.lastName = this.lastNameEle.inputValue;
|
|
40
|
-
this.formData.company = this.companyEle.inputValue;
|
|
41
|
-
this.formData.phone = this.phoneEle.inputValue;
|
|
42
|
-
// this.formData.country = this.countryEle.inputValue;
|
|
43
|
-
// this.formData.inquiryReason= this.inquiryreasonEle.inputValue;
|
|
44
|
-
// this.formData.howhearselfreport = this.howhearselfreport.inputValue;
|
|
45
|
-
// console.log("get form Data: " + this.formData.email)
|
|
46
|
-
if (this.isValid()) {
|
|
47
|
-
const formSubmitEvent = new CustomEvent('formSubmit', {
|
|
48
|
-
detail: this.formData,
|
|
49
|
-
bubbles: true,
|
|
50
|
-
});
|
|
51
|
-
this.el.dispatchEvent(formSubmitEvent);
|
|
52
|
-
console.log('Form Submitted: ' + this.formData);
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
console.log('Form validation failed');
|
|
56
|
-
console.log('Form Submitted: ' + this.formData.email, this.formData.firstName, this.formData.lastName, this.formData.company, this.formData.phone);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
isValid() {
|
|
60
|
-
const { email, firstName, lastName, company, country, phone, inquiryReason, howhearselfreport, policyChecked } = this.formData;
|
|
61
|
-
const invalidLength = document.querySelectorAll('.invalid-field').length;
|
|
62
|
-
// console.log('invalid fields length: ' + invalidLength), check the select field
|
|
63
|
-
return (email !== '' &&
|
|
64
|
-
phone !== '' &&
|
|
65
|
-
firstName !== '' &&
|
|
66
|
-
lastName !== '' &&
|
|
67
|
-
company !== '' &&
|
|
68
|
-
country !== '' &&
|
|
69
|
-
inquiryReason !== '' &&
|
|
70
|
-
howhearselfreport != '' &&
|
|
71
|
-
policyChecked &&
|
|
72
|
-
invalidLength === 0);
|
|
73
|
-
}
|
|
74
|
-
render() {
|
|
75
|
-
const multiSelectItems = [
|
|
76
|
-
{ text: 'Item 1', selected: false, ptcDataEloquaName: 'item_1', ptcDataTargetEloquaName: 'item_target-1' },
|
|
77
|
-
{ text: 'Item 2', selected: false, ptcDataEloquaName: 'item_2', ptcDataTargetEloquaName: 'item_target-2' },
|
|
78
|
-
{ text: 'Item 3', selected: false, ptcDataEloquaName: 'item_3', ptcDataTargetEloquaName: 'item_target-3' }
|
|
79
|
-
];
|
|
80
|
-
return (h(Host, null, h("div", { class: "ptc-container u-flex u-flex-justify-center" }, h("div", { class: "form-wrapper" }, h("ptc-title", { "seo-compatibility-mode": true, "text-align": "left", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", "is-plm-hub": "false", "title-size": "medium" }, h("h2", null, "PTC\u2019s PLM application suite combines the power of Windchill, the industry\u2019s #1 PLM software with Thingworx")), h("ptc-spacer", { size: "x-small", breakpoint: "small" }), h("ptc-spacer", { size: "small", breakpoint: "x-small" }), h("ptc-para", { "seo-compatibility-mode": true, "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-style": "main", "para-line-h": "line-height-densest" }, "PTC\u2019s market-leading, purpose-built IIoT platform. The suite offers a mix of Packages, Add-Ons, and Apps to best suit your business needs:"), h("ptc-spacer", { size: "x-small", breakpoint: "small" }), h("ptc-spacer", { size: "small", breakpoint: "x-small" }), h("max-width-container", { "max-width": "277", breakpoint: 480 }, h("ptc-title", { type: "h2", "text-align": "", "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."), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "small", size: "small" })), h("form", { onSubmit: event => this.handleSubmit(event) }, h("ptc-textfield", { "field-id": "contact-firstname", "label-text": "First Name*", type: "text", "ptc-data-eloqua-name": "C_FirstName", "field-name": "firstname" }), h("ptc-textfield", { "field-id": "contact-lastname", "label-text": "Last Name*", type: "text", "ptc-data-eloqua-name": "C_LastName", "field-name": "lastname" }), h("ptc-textfield", { "field-id": "company", "label-text": "Company*", type: "text", "ptc-data-eloqua-name": "C_Company", "field-name": "company" }), h("ptc-textfield", { "field-id": "contact-email", "label-text": "Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", "field-name": "email" }), h("ptc-textfield", { "field-id": "company-email", "label-text": "Company Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", "field-name": "companyemail" }), h("ptc-select", { "field-id": "contact-country", label: "Country*", "ptc-data-eloqua-name": "C_Country", "field-name": "country" }, h("ul", { class: "mdc-list" }, h("li", { class: "mdc-list-item placehoder-li", "data-value": "" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Select a country")), h("li", { class: "mdc-list-item", "data-value": "USA" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "USA")), h("li", { class: "mdc-list-item", "data-value": "Canada" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Canada")), h("li", { class: "mdc-list-item", "data-value": "China" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "China")))), h("ptc-textfield", { "field-id": "contact-phone", "label-text": "Phone*", type: "tel", "ptc-data-eloqua-name": "C_BusPhone", "field-name": "phone" }), h("ptc-select", { label: "What information are you interested in?*", "ptc-data-eloqua-name": "Inquiry_Reason", "field-name": "inquiryreason", "field-id": "contact-inquiry" }, h("ul", { class: "mdc-list" }, h("li", { class: "mdc-list-item", "data-value": "Please select a value" }, h("span", { class: "mdc-list-item__ripple" })), h("li", { class: "mdc-list-item", "data-value": "Augmented Reality (AR)" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Augmented Reality (AR)")), h("li", { class: "mdc-list-item", "data-value": "CAD" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Computer Aided Design")), h("li", { class: "mdc-list-item", "data-value": "Retail(FlexPLM)" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Fashion and Retail Product Lifecycle Management")))), h("ptc-multi-select", { items: multiSelectItems, "is-required": 'true' }), 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", "field-name": "howhearselfreport" }), h("ptc-form-checkbox", { label: "I agree to the policy", "checkbox-id": "test" }), h("div", { class: "button-wrapper" }, h("ptc-button", { class: "form-submit", color: "ptc-quaternary", type: "submit", styles: ":host{align-self:flex-end; display:block; float: left; width: fit-content;}" }, "Submit"), h("ptc-button", { class: "form-close", color: "ptc-tertiary", type: "button", styles: ":host{align-self:flex-end; display:block; float: left; width: fit-content;}" }, "Cancel")))))));
|
|
81
|
-
}
|
|
82
|
-
static get is() { return "modal-form-example"; }
|
|
83
|
-
static get originalStyleUrls() {
|
|
84
|
-
return {
|
|
85
|
-
"$": ["modal-form-example.css"]
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
static get styleUrls() {
|
|
89
|
-
return {
|
|
90
|
-
"$": ["modal-form-example.css"]
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
static get states() {
|
|
94
|
-
return {
|
|
95
|
-
"formData": {}
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
static get elementRef() { return "el"; }
|
|
99
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Organisms/E-Support Organisms/Case Tracker'
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
const CaseTracker = args => {
|
|
8
|
-
return html `
|
|
9
|
-
|
|
10
|
-
<ptc-spacer></ptc-spacer>
|
|
11
|
-
<ptc-spacer></ptc-spacer>
|
|
12
|
-
<ptc-spacer></ptc-spacer>
|
|
13
|
-
<div class="ptc-container is-grid">
|
|
14
|
-
<div class="is-col-12 is-col-6-md">
|
|
15
|
-
<ptc-title upperline="none">Case Tracker - Authorized Use Only</ptc-title>
|
|
16
|
-
<ptc-spacer></ptc-spacer>
|
|
17
|
-
<ptc-spacer></ptc-spacer>
|
|
18
|
-
<ptc-para>If you want to use this application on behalf of a customer use this search from to lookup the customer record. When you have found the customer hit the Next > button</ptc-para>
|
|
19
|
-
<ptc-textfield field-id="contact-email" label-text="Customer Name" type="text" ptc-data-eloqua-name="C_EmailAddress" field-name="email"></ptc-textfield>
|
|
20
|
-
<ptc-textfield field-id="contact-email" label-text="Customer Number" type="text" ptc-data-eloqua-name="C_EmailAddress" field-name="email"></ptc-textfield>
|
|
21
|
-
<ptc-button color="ptc-quaternary" disabled="false" link-href="https://www.ptc.com" link-title="PTC" rel="undefined" tab-nav="0" target="_self" text-align="undefined" type="button">Search</ptc-button>
|
|
22
|
-
<ptc-button color="ptc-quaternary" disabled="false" link-href="https://www.ptc.com" link-title="PTC" rel="undefined" tab-nav="0" target="_self" text-align="undefined" type="button">Next</ptc-button>
|
|
23
|
-
</div>
|
|
24
|
-
<div class="is-col-12 is-col-2-md">
|
|
25
|
-
|
|
26
|
-
</div>
|
|
27
|
-
<div class="is-col-12 is-col-3-md">
|
|
28
|
-
<ptc-spacer></ptc-spacer>
|
|
29
|
-
<ptc-spacer></ptc-spacer>
|
|
30
|
-
<ptc-spacer></ptc-spacer>
|
|
31
|
-
<ptc-spacer></ptc-spacer>
|
|
32
|
-
<div style="border: solid; padding: 5px;">
|
|
33
|
-
<ptc-title upperline="none" type="h3">search tips</ptc-title>
|
|
34
|
-
<ul>
|
|
35
|
-
<li>You can use this search form to use this application on behalf of a customer.</li>
|
|
36
|
-
<li>You can use this search form to use this application on behalf of a customer.</li>
|
|
37
|
-
</ul>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</div>
|
|
43
|
-
`;}
|
|
44
|
-
|
|
45
|
-
export const Preview = CaseTracker.bind();
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Organisms/E-Support Organisms/Support Article'
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
const ArticlePage = args => {
|
|
8
|
-
return html `
|
|
9
|
-
|
|
10
|
-
<div class="ptc-container">
|
|
11
|
-
|
|
12
|
-
<ptc-title upperline="" type="h4" title-color="grey">How to run Apache, Tomcat, Windchill Directory Server </ptc-title>
|
|
13
|
-
<ptc-para>Modified: 23-Nov-2023 | LastSeen: 17-Jun-2024
|
|
14
|
-
<ptc-dropdown label="Available in:" listitems="" theme="support">
|
|
15
|
-
<item selected="" label="English"></item>
|
|
16
|
-
<item label="English"></item>
|
|
17
|
-
<item label="English"></item>
|
|
18
|
-
|
|
19
|
-
</ptc-dropdown>
|
|
20
|
-
|
|
21
|
-
</ptc-para>
|
|
22
|
-
|
|
23
|
-
<div style="background-color: rgb(238, 238, 238);; padding:2px">
|
|
24
|
-
<ptc-title type="h5" upperline="">Public</ptc-title>
|
|
25
|
-
<ptc-para >
|
|
26
|
-
Created by Steven Jin and improved by Mi Yeon Grace Jin, Amit Deshpande, Hideyuki Akiyama, Lily Liu, Arshad Imam, Luis Barbosa, Feng Xiang Cliff Tian, Swapnil Deshmukh, Kellan Chen, Teresa Man, Chao Max Wang, Saurabh Ghewande, Mahesh Lomate, Aditya Chaure, Tsutomu Seki, Salesforce Data Manipulation User, Steven Jin, Shirley Yang
|
|
27
|
-
Customer Views: 24559 | Useful Ratings (Customers): 118 | Useful Ratings (PTC): 45 | Cases Solved: 154
|
|
28
|
-
</ptc-para>
|
|
29
|
-
|
|
30
|
-
</div>
|
|
31
|
-
<ptc-spacer></ptc-spacer>
|
|
32
|
-
<ptc-spacer></ptc-spacer>
|
|
33
|
-
<div>
|
|
34
|
-
<ptc-title upperline="" type="h4">Description</ptc-title>
|
|
35
|
-
<hr style="color:green">
|
|
36
|
-
<ptc-para>
|
|
37
|
-
<ul>
|
|
38
|
-
<li>How to run Apache HTTP Server, Tomcat, WindchillDS and, Windchill as a Windows service</li>
|
|
39
|
-
<li>How to run Apache HTTP Server, Tomcat, WindchillDS and, Windchill as a Windows service</li>
|
|
40
|
-
<li>How to run Apache HTTP Server, Tomcat, WindchillDS and, Windchill as a Windows service</li>
|
|
41
|
-
</ul>
|
|
42
|
-
</ptc-para>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
`;}
|
|
46
|
-
|
|
47
|
-
export const Preview = ArticlePage.bind();
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Organisms/E-Support Organisms/Support Page'
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
const SupportPage = args => {
|
|
8
|
-
return html `
|
|
9
|
-
|
|
10
|
-
<ptc-spacer></ptc-spacer>
|
|
11
|
-
<ptc-spacer></ptc-spacer>
|
|
12
|
-
<ptc-spacer></ptc-spacer>
|
|
13
|
-
<ptc-spacer></ptc-spacer>
|
|
14
|
-
<div class="ptc-container is-grid has-col-gap green-container">
|
|
15
|
-
<div class="is-col-12 is-col-7-md search-container">
|
|
16
|
-
|
|
17
|
-
<ptc-spacer></ptc-spacer>
|
|
18
|
-
<ptc-spacer></ptc-spacer>
|
|
19
|
-
<ptc-spacer></ptc-spacer>
|
|
20
|
-
<ptc-title type="h2" text-align="center" title-size="x-large" title-color="white" upperline="no-upperline" title-display="inline-block" title-shadow="" title-height="densest" title-margin="margin-3" title-weight="w-8" is-plm-hub="false">
|
|
21
|
-
Search the Knowledge Base
|
|
22
|
-
</ptc-title>
|
|
23
|
-
<ptc-search-field placeholder-label="Search Technical Support Documentation and Articles" ></ptc-search-field>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="is-col-12 is-col-5-md form-section">
|
|
26
|
-
<ptc-title upperline="none">Popular Tasks</ptc-title>
|
|
27
|
-
<!-- <ul> -->
|
|
28
|
-
<ptc-link>Product Pages</ptc-link>
|
|
29
|
-
<ptc-link>Product Pages</ptc-link>
|
|
30
|
-
<ptc-link>Product Pages</ptc-link>
|
|
31
|
-
<ptc-link>Product Pages</ptc-link>
|
|
32
|
-
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
<ptc-spacer></ptc-spacer>
|
|
37
|
-
<ptc-spacer></ptc-spacer>
|
|
38
|
-
|
|
39
|
-
<div class="ptc-container is-grid has-col-gap link-container ">
|
|
40
|
-
<div class="is-col-1"></div>
|
|
41
|
-
<div class="is-col-2 links"><ptc-link>Support</ptc-link>
|
|
42
|
-
<button class="btn" role="button" >
|
|
43
|
-
<span class="arrow">
|
|
44
|
-
<icon-asset slot="icon" type="solid" size="large" name="arrow-down" color="ptc-green"></icon-asset>
|
|
45
|
-
</span>
|
|
46
|
-
</button>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="is-col-2 llinks"><ptc-link>Manage and monitor software</ptc-link>
|
|
49
|
-
<button class="btn" role="button" >
|
|
50
|
-
<span class="arrow">
|
|
51
|
-
<icon-asset slot="icon" type="solid" size="large" name="arrow-down" color="ptc-green"></icon-asset>
|
|
52
|
-
</span>
|
|
53
|
-
</button>
|
|
54
|
-
</div>
|
|
55
|
-
<div class="is-col-2 llinks"><ptc-link>Learn</ptc-link>
|
|
56
|
-
<button class="btn" role="button" >
|
|
57
|
-
<span class="arrow">
|
|
58
|
-
<icon-asset slot="icon" type="solid" size="large" name="arrow-down" color="ptc-green"></icon-asset>
|
|
59
|
-
</span>
|
|
60
|
-
</button>
|
|
61
|
-
</div>
|
|
62
|
-
<div class="is-col-2 llinks"><ptc-link>Service and Expertise</ptc-link>
|
|
63
|
-
<button class="btn" role="button" >
|
|
64
|
-
<span class="arrow">
|
|
65
|
-
<icon-asset slot="icon" type="solid" size="large" name="arrow-down" color="ptc-green"></icon-asset>
|
|
66
|
-
</span>
|
|
67
|
-
</button>
|
|
68
|
-
</div>
|
|
69
|
-
<div class="is-col-2 llinks"><ptc-link>PTC Partner Network</ptc-link>
|
|
70
|
-
<button class="btn" role="button" >
|
|
71
|
-
<span class="arrow">
|
|
72
|
-
<icon-asset slot="icon" type="solid" size="large" name="arrow-down" color="ptc-green"></icon-asset>
|
|
73
|
-
</span>
|
|
74
|
-
</button>
|
|
75
|
-
</div>
|
|
76
|
-
<div class="is-col-1 links"></div>
|
|
77
|
-
</div>
|
|
78
|
-
<style>
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
.btn {
|
|
82
|
-
display: none;
|
|
83
|
-
padding: 10px;
|
|
84
|
-
font-size: 16px;
|
|
85
|
-
font-weight: 500;
|
|
86
|
-
border: none;
|
|
87
|
-
background-color: transparent;
|
|
88
|
-
cursor: pointer;
|
|
89
|
-
align-items: center;
|
|
90
|
-
span {
|
|
91
|
-
margin-right: 8px;
|
|
92
|
-
align-items: center;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.llinks:hover .btn {
|
|
100
|
-
display: block;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.links:hover .btn {
|
|
106
|
-
display: flex;
|
|
107
|
-
}
|
|
108
|
-
.green-container {
|
|
109
|
-
background-color:#b3dda4 ;
|
|
110
|
-
padding: 10px;
|
|
111
|
-
.search-container{
|
|
112
|
-
background-color: #00890B;
|
|
113
|
-
padding:10px;
|
|
114
|
-
align-items: center;
|
|
115
|
-
}
|
|
116
|
-
.form-section {
|
|
117
|
-
background-color: white;
|
|
118
|
-
padding: 10px;
|
|
119
|
-
|
|
120
|
-
ptc-link {
|
|
121
|
-
padding: 5px;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
.links {
|
|
126
|
-
align-content: center;
|
|
127
|
-
text-align: center;
|
|
128
|
-
padding-bottom: 16px;
|
|
129
|
-
align-items: center;
|
|
130
|
-
display: flex;
|
|
131
|
-
flex-direction: column;
|
|
132
|
-
align-items: center;
|
|
133
|
-
justify-content: space-between;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.llinks {
|
|
137
|
-
align-content: center;
|
|
138
|
-
text-align: center;
|
|
139
|
-
padding-bottom: 16px;
|
|
140
|
-
border-left: solid 2px #b3dda4;
|
|
141
|
-
padding: 10px;
|
|
142
|
-
display: flex;
|
|
143
|
-
flex-direction: column;
|
|
144
|
-
align-items: center;
|
|
145
|
-
justify-content: space-between;
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
.link-container {
|
|
149
|
-
border-bottom: solid 2px #b3dda4;
|
|
150
|
-
/* margin: 15px; */
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
</style>
|
|
155
|
-
`;}
|
|
156
|
-
|
|
157
|
-
export const Preview = SupportPage.bind();
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-0bf594c4.js';
|
|
2
|
-
|
|
3
|
-
const modalFormExampleCss = ":host {\r\n display: block;\r\n}\r\n\r\n.form-wrapper {\r\n width: 371px;\r\n display: flex;\r\n border-radius: 3px;\r\n background: #FFF;\r\n flex-direction: column;\r\n align-items: center;\r\n padding: 0px 32px;\r\n\r\n @media only screen and (min-width: 360px) and (max-width: 479.55px) {\r\n max-width: 360px;\r\n width: 360px;\r\n }\r\n\r\n .button-wrapper {\r\n display: flex;\r\n justify-content: flex-end;\r\n gap: 20px;\r\n margin-top: 48px;\r\n flex-wrap: wrap;\r\n }\r\n}\r\n";
|
|
4
|
-
|
|
5
|
-
const PtcForm = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.formData = {
|
|
9
|
-
email: '',
|
|
10
|
-
firstName: '',
|
|
11
|
-
lastName: '',
|
|
12
|
-
company: '',
|
|
13
|
-
country: '',
|
|
14
|
-
phone: '',
|
|
15
|
-
inquiryReason: '',
|
|
16
|
-
howhearselfreport: '',
|
|
17
|
-
policyChecked: false,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
// private countryEle: HTMLPtcSelectElement;
|
|
21
|
-
// private inquiryreasonEle: HTMLPtcTextfieldElement;
|
|
22
|
-
// private howhearselfreport: HTMLPtcTextfieldElement;
|
|
23
|
-
componentDidLoad() {
|
|
24
|
-
this.formButton = this.el.querySelector('.form-submit');
|
|
25
|
-
this.formButton.addEventListener('click', this.handleSubmit.bind(this));
|
|
26
|
-
//get Email
|
|
27
|
-
this.emailEle = this.el.querySelector('ptc-textfield[field-id="contact-email"]');
|
|
28
|
-
this.firstNameEle = this.el.querySelector('ptc-textfield[field-id="contact-firstname"]');
|
|
29
|
-
this.lastNameEle = this.el.querySelector('ptc-textfield[field-id="contact-lastname"]');
|
|
30
|
-
this.companyEle = this.el.querySelector('ptc-textfield[field-id="company"]');
|
|
31
|
-
this.phoneEle = this.el.querySelector('ptc-textfield[field-id="contact-phone"]');
|
|
32
|
-
// this.countryEle = this.el.querySelector('ptc-select[field-id="contact-country"]')
|
|
33
|
-
// this.inquiryreasonEle = this.el.querySelector('ptc-textfield[field-id="contact-inquiry"]')
|
|
34
|
-
// this.howhearselfreport = this.el.querySelector('ptc-textfield[field-id="self-reporting"]')
|
|
35
|
-
}
|
|
36
|
-
handleInputChange(field, value) {
|
|
37
|
-
this.formData = Object.assign(Object.assign({}, this.formData), { [field]: value });
|
|
38
|
-
}
|
|
39
|
-
handleSubmit(event) {
|
|
40
|
-
event.preventDefault();
|
|
41
|
-
this.formData.email = this.emailEle.inputValue;
|
|
42
|
-
this.formData.firstName = this.firstNameEle.inputValue;
|
|
43
|
-
this.formData.lastName = this.lastNameEle.inputValue;
|
|
44
|
-
this.formData.company = this.companyEle.inputValue;
|
|
45
|
-
this.formData.phone = this.phoneEle.inputValue;
|
|
46
|
-
// this.formData.country = this.countryEle.inputValue;
|
|
47
|
-
// this.formData.inquiryReason= this.inquiryreasonEle.inputValue;
|
|
48
|
-
// this.formData.howhearselfreport = this.howhearselfreport.inputValue;
|
|
49
|
-
// console.log("get form Data: " + this.formData.email)
|
|
50
|
-
if (this.isValid()) {
|
|
51
|
-
const formSubmitEvent = new CustomEvent('formSubmit', {
|
|
52
|
-
detail: this.formData,
|
|
53
|
-
bubbles: true,
|
|
54
|
-
});
|
|
55
|
-
this.el.dispatchEvent(formSubmitEvent);
|
|
56
|
-
console.log('Form Submitted: ' + this.formData);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
console.log('Form validation failed');
|
|
60
|
-
console.log('Form Submitted: ' + this.formData.email, this.formData.firstName, this.formData.lastName, this.formData.company, this.formData.phone);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
isValid() {
|
|
64
|
-
const { email, firstName, lastName, company, country, phone, inquiryReason, howhearselfreport, policyChecked } = this.formData;
|
|
65
|
-
const invalidLength = document.querySelectorAll('.invalid-field').length;
|
|
66
|
-
// console.log('invalid fields length: ' + invalidLength), check the select field
|
|
67
|
-
return (email !== '' &&
|
|
68
|
-
phone !== '' &&
|
|
69
|
-
firstName !== '' &&
|
|
70
|
-
lastName !== '' &&
|
|
71
|
-
company !== '' &&
|
|
72
|
-
country !== '' &&
|
|
73
|
-
inquiryReason !== '' &&
|
|
74
|
-
howhearselfreport != '' &&
|
|
75
|
-
policyChecked &&
|
|
76
|
-
invalidLength === 0);
|
|
77
|
-
}
|
|
78
|
-
render() {
|
|
79
|
-
const multiSelectItems = [
|
|
80
|
-
{ text: 'Item 1', selected: false, ptcDataEloquaName: 'item_1', ptcDataTargetEloquaName: 'item_target-1' },
|
|
81
|
-
{ text: 'Item 2', selected: false, ptcDataEloquaName: 'item_2', ptcDataTargetEloquaName: 'item_target-2' },
|
|
82
|
-
{ text: 'Item 3', selected: false, ptcDataEloquaName: 'item_3', ptcDataTargetEloquaName: 'item_target-3' }
|
|
83
|
-
];
|
|
84
|
-
return (h(Host, null, h("div", { class: "ptc-container u-flex u-flex-justify-center" }, h("div", { class: "form-wrapper" }, h("ptc-title", { "seo-compatibility-mode": true, "text-align": "left", "title-color": "gray", upperline: "no-upperline", "title-display": "inline-block", "title-height": "densest", "title-margin": "margin-flush", "title-weight": "w-7", "is-plm-hub": "false", "title-size": "medium" }, h("h2", null, "PTC\u2019s PLM application suite combines the power of Windchill, the industry\u2019s #1 PLM software with Thingworx")), h("ptc-spacer", { size: "x-small", breakpoint: "small" }), h("ptc-spacer", { size: "small", breakpoint: "x-small" }), h("ptc-para", { "seo-compatibility-mode": true, "font-size": "x-small", "font-weight": "w-4", "para-margin": "margin-flush", "para-style": "main", "para-line-h": "line-height-densest" }, "PTC\u2019s market-leading, purpose-built IIoT platform. The suite offers a mix of Packages, Add-Ons, and Apps to best suit your business needs:"), h("ptc-spacer", { size: "x-small", breakpoint: "small" }), h("ptc-spacer", { size: "small", breakpoint: "x-small" }), h("max-width-container", { "max-width": "277", breakpoint: 480 }, h("ptc-title", { type: "h2", "text-align": "", "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."), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "small", size: "small" })), h("form", { onSubmit: event => this.handleSubmit(event) }, h("ptc-textfield", { "field-id": "contact-firstname", "label-text": "First Name*", type: "text", "ptc-data-eloqua-name": "C_FirstName", "field-name": "firstname" }), h("ptc-textfield", { "field-id": "contact-lastname", "label-text": "Last Name*", type: "text", "ptc-data-eloqua-name": "C_LastName", "field-name": "lastname" }), h("ptc-textfield", { "field-id": "company", "label-text": "Company*", type: "text", "ptc-data-eloqua-name": "C_Company", "field-name": "company" }), h("ptc-textfield", { "field-id": "contact-email", "label-text": "Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", "field-name": "email" }), h("ptc-textfield", { "field-id": "company-email", "label-text": "Company Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", "field-name": "companyemail" }), h("ptc-select", { "field-id": "contact-country", label: "Country*", "ptc-data-eloqua-name": "C_Country", "field-name": "country" }, h("ul", { class: "mdc-list" }, h("li", { class: "mdc-list-item placehoder-li", "data-value": "" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Select a country")), h("li", { class: "mdc-list-item", "data-value": "USA" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "USA")), h("li", { class: "mdc-list-item", "data-value": "Canada" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Canada")), h("li", { class: "mdc-list-item", "data-value": "China" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "China")))), h("ptc-textfield", { "field-id": "contact-phone", "label-text": "Phone*", type: "tel", "ptc-data-eloqua-name": "C_BusPhone", "field-name": "phone" }), h("ptc-select", { label: "What information are you interested in?*", "ptc-data-eloqua-name": "Inquiry_Reason", "field-name": "inquiryreason", "field-id": "contact-inquiry" }, h("ul", { class: "mdc-list" }, h("li", { class: "mdc-list-item", "data-value": "Please select a value" }, h("span", { class: "mdc-list-item__ripple" })), h("li", { class: "mdc-list-item", "data-value": "Augmented Reality (AR)" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Augmented Reality (AR)")), h("li", { class: "mdc-list-item", "data-value": "CAD" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Computer Aided Design")), h("li", { class: "mdc-list-item", "data-value": "Retail(FlexPLM)" }, h("span", { class: "mdc-list-item__ripple" }), h("span", { class: "mdc-list-item__text" }, "Fashion and Retail Product Lifecycle Management")))), h("ptc-multi-select", { items: multiSelectItems, "is-required": 'true' }), 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", "field-name": "howhearselfreport" }), h("ptc-form-checkbox", { label: "I agree to the policy", "checkbox-id": "test" }), h("div", { class: "button-wrapper" }, h("ptc-button", { class: "form-submit", color: "ptc-quaternary", type: "submit", styles: ":host{align-self:flex-end; display:block; float: left; width: fit-content;}" }, "Submit"), h("ptc-button", { class: "form-close", color: "ptc-tertiary", type: "button", styles: ":host{align-self:flex-end; display:block; float: left; width: fit-content;}" }, "Cancel")))))));
|
|
85
|
-
}
|
|
86
|
-
get el() { return getElement(this); }
|
|
87
|
-
};
|
|
88
|
-
PtcForm.style = modalFormExampleCss;
|
|
89
|
-
|
|
90
|
-
export { PtcForm as modal_form_example };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as o,H as t,a as i}from"./p-944c5be8.js";const r=class{constructor(o){a(this,o),this.sectionTitle=void 0,this.description=void 0,this.backgroundImage=void 0}componentDidLoad(){this.el.addEventListener("mousemove",(()=>{}));let a=this.el.shadowRoot.querySelector(".bgImage");onmousemove=o=>{o.target===this.el&&a.style.setProperty("transform",`translate(-${o.clientX/100}px, -${o.clientY/100}px) scale(1.1, 1.1)`)}}render(){return o(t,null,o("img",{src:this.backgroundImage,alt:"",class:"bgImage"}),o("svg",{class:"cut cut-top",xmlns:"http://www.w3.org/2000/svg",width:"320.963",height:"28.179",viewBox:"0 0 320.963 28.179"},o("path",{fill:"#F3F3F3",d:"M737.02 463.856v27.8H416.057v.378h102.38l47.607-28.179z",class:"path-1","data-name":"Path 8770",transform:"translate(-416.057 -463.856)"})),o("div",{class:"backdrop-blur light-links"},o("div",{class:"ptc-container"},o("ptc-title",{type:"h2","text-align":"center","title-color":"white","title-margin":"margin-flush"},this.sectionTitle),o("ptc-para",{"font-size":"small","para-align":"center","font-weight":"w-5","para-color":"white","para-margin":"margin-5"},this.description),o("ptc-spacer",null)),o("div",{class:"ptc-container"},o("div",{class:"content-box"},o("div",{class:"backdrop"}),o("slot",null)))),o("svg",{class:"cut cut-bottom",xmlns:"http://www.w3.org/2000/svg",width:"320.963",height:"28.179",viewBox:"0 0 320.963 28.179"},o("path",{fill:"#F3F3F3",d:"M737.02 463.856v27.8H416.057v.378h102.38l47.607-28.179z",class:"path-1","data-name":"Path 8770",transform:"translate(-416.057 -463.856)"})))}get el(){return i(this)}};r.style='h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}a{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);text-decoration-line:underline;color:var(--color-hyperlink);transition:color var(--ptc-transition-medium) var(--ptc-ease-out);font-weight:var(--ptc-font-weight-bold)}a:visited{color:var(--color-blue-10)}a:active,a:visited:active{transition:none;color:var(--color-blue-09)}a:hover,a:visited:hover{color:var(--color-blue-08)}a.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}a:focus-visible{outline:5px solid #003DD6 !important;outline-offset:0px !important;border-radius:var(--ptc-border-radius-standard)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.light-links a.light-link,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.background-grey-10 a.light-link,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.background-plm-grey a.light-link{color:var(--color-blue-04);margin:-2px;border:2px solid transparent}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.light-links a.light-link:visited,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.background-grey-10 a.light-link:visited,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.background-plm-grey a.light-link:visited{color:var(--color-blue-06)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.light-links a.light-link:active,.light-links a.light-link:visited:active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.background-grey-10 a.light-link:active,.background-grey-10 a.light-link:visited:active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.background-plm-grey a.light-link:active,.background-plm-grey a.light-link:visited:active{transition:none;color:var(--color-blue-07)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.light-links a.light-link:hover,.light-links a.light-link:visited:hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.background-grey-10 a.light-link:hover,.background-grey-10 a.light-link:visited:hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.background-plm-grey a.light-link:hover,.background-plm-grey a.light-link:visited:hover{color:var(--color-blue-05)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.light-links a.light-link.disabled,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.background-grey-10 a.light-link.disabled,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.background-plm-grey a.light-link.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.light-links a.light-link:focus-visible,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.background-grey-10 a.light-link:focus-visible,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.background-plm-grey a.light-link:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.light-links .podcast-cta-section a,.background-grey-10 .podcast-cta-section a,.background-plm-grey .podcast-cta-section a{border:2px solid transparent}.light-links .podcast-cta-section a:focus-visible,.background-grey-10 .podcast-cta-section a:focus-visible,.background-plm-grey .podcast-cta-section a:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.ptc-link{color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link:hover{color:var(--color-green-06)}.ptc-link:visited{color:var(--color-gray-10)}.ptc-link:active,.ptc-link:visited:active{transition:none;color:var(--color-green-06)}.ptc-link:hover,.ptc-link:visited:hover{color:var(--color-green-06)}.ptc-link-dark{color:var(--color-white);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link-dark:hover{color:var(--color-green-06)}.ptc-link-dark:visited{color:var(--color-white)}.ptc-link-dark:active,.ptc-link-dark:visited:active{transition:none;color:var(--color-green-06)}.ptc-link-dark:hover,.ptc-link-dark:visited:hover{color:var(--color-green-06)}.vjs-social-share-links a{color:var(--color-white)}.vjs-social-share-links a:hover{color:var(--color-white)}:host{display:block;background:linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));background-position:50%;background-size:cover;overflow:hidden;position:relative}:host .bgImage{height:100%;left:0;object-fit:cover;position:absolute;top:0;transform:scale(1.1);width:100%;z-index:-2}:host svg.cut{left:0;position:absolute;z-index:99}:host svg.cut-top{top:0;transform:rotate(180deg) translateY(5px)}:host .cut-bottom{bottom:0;transform:scaleX(-1) translateY(5px)}:host .backdrop-blur{backdrop-filter:blur(7px);padding:var(--ptc-layout-spacing-05) 0}:host .content-box{padding:var(--ptc-element-spacing-05);backdrop-filter:blur(13.7px);border:1px solid rgba(255, 255, 255, 0.54);border-radius:10px;position:relative}@media only screen and (min-width: 768px){:host .content-box{padding:var(--ptc-element-spacing-08)}}:host .content-box .backdrop{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:10px;box-shadow:0 3px 15px 0 rgba(0, 0, 0, 0.35);width:100%;height:100%;overflow:hidden;position:absolute;top:0;left:0}:host .content-box .backdrop::before{background-color:#2a2729;border-radius:10px;content:"";height:100%;opacity:0.7;position:absolute;width:100%;z-index:-1}:host .ptc-container{padding-right:24px;padding-left:24px;margin-right:auto;margin-left:auto}@media only screen and (min-width: 1200px){:host .ptc-container{padding-left:0;padding-right:0;max-width:1136px}}@media only screen and (min-width: 1440px){:host .ptc-container{padding-left:0;padding-right:0;max-width:1200px}}';export{r as innovator_toggle_container}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as t,H as e,c as a,a as i}from"./p-944c5be8.js";const s=class{constructor(t){o(this,t)}render(){return t(e,null,t("div",{class:"close-icon mf-listen",id:"modal-pop-up-close-icon"},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",tabindex:0},t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.00089 8.4151L12.5876 14.0018L14.0018 12.5876L8.4151 7.00089L14.0018 1.41421L12.5876 0L7.00089 5.58667L1.41421 0L0 1.41421L5.58667 7.00089L0 12.5876L1.41421 14.0018L7.00089 8.4151Z",fill:"#20262A"}))))}};s.style="h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:inline-block}:host:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .close-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:5px solid transparent;box-sizing:border-box;border-radius:var(--ptc-border-radius-standard);cursor:pointer}:host .close-icon svg{padding:7px;border:1px solid transparent;border-radius:var(--ptc-border-radius-standard);background-color:transparent;transition:border-color var(--ptc-transition-medium) var(--ptc-ease-inout)}:host .close-icon svg:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .close-icon:hover svg{border-color:var(--color-gray-12)}:host .close-icon:active svg{transition-duration:0ms;background-color:var(--color-gray-02);border:1px solid var(--color-gray-12)}";const r=class{constructor(t){o(this,t),this.closed=a(this,"closed",7),this.opened=a(this,"opened",7),this.handleKeyPress=o=>{"Enter"!==o.key&&" "!==o.key||(this.openedByKeyboard=!0)},this.handleMouseDown=()=>{this.openedByKeyboard=!1},this.iframeUrl=void 0,this.size="sm",this.customClass=void 0,this.show=!1,this.overlay=!0,this.fixed=!1,this.keepInViewport=!1,this.closeOnBlur=!1,this.rounded=!1,this.hideContainer=!1,this.showHeaderFooter=!1,this.overlayHeight=void 0,this.borderRadius="standard",this.isBioModal=!1,this.styles=void 0,this.modalType="default-modal",this.vhCenter=!1,this.headerOnlyBg=void 0,this.headerOnlyText1=void 0,this.headerOnlyText2=void 0,this.bottomCloseBtn=void 0,this.initialFocus=!0,this.openedByKeyboard=!1,this.bodyOverflowSetting=void 0}fireOnClosed(o){this.closed.emit(o),document.activeElement.blur()}fireOnOpened(o){this.opened.emit(o),setTimeout((()=>{const o=this.el.shadowRoot.querySelector(".wrapper");o&&o.focus(),this.scrollToTopIfNeeded()}),100),this.openedByKeyboard?this.initialFocus&&setTimeout((()=>{this.setInitialFocus()}),150):this.openedByKeyboard=!1}scrollToTopIfNeeded(){if(this.el&&"event-listing"===this.modalType){const o=this.el.shadowRoot.querySelector(".modal-body").getBoundingClientRect().top+window.scrollY;console.log("position: "+o),window.scrollTo({top:o-160,behavior:"smooth"})}}connectedCallback(){document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("mousedown",this.handleMouseDown)}disconnectedCallback(){document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("mousedown",this.handleMouseDown)}componentWillLoad(){let o=document.querySelector("body");this.bodyOverflowSetting={overflowY:o.style.overflowY,overflowX:o.style.overflowX}}componentWillRender(){let o=document.querySelector("body");o&&(this.show?this.fixed?(o.style.overflowY="hidden",o.style.overflowX="hidden"):(o.style.overflowY="scroll",o.style.overflowX="hidden"):(o.style.overflowY=this.bodyOverflowSetting.overflowY,o.style.overflowX=this.bodyOverflowSetting.overflowX))}componentDidLoad(){this.show&&this.fireOnOpened(this),this.showHeaderFooter&&this.handleScroll()}componentDidUpdate(){this.show?this.fireOnOpened(this):this.fireOnClosed(this)}resizeIframe(o){let t=o.target;setTimeout((()=>{try{t.contentDocument?t.height=`${t.contentDocument.body.scrollHeight}px`:(t.height="616px",t.removeAttribute("scrolling"))}catch(o){console.log(o),t.height="616px",t.removeAttribute("scrolling")}t.classList.add("ready")}),50)}handleScroll(){let o=this.el.shadowRoot.querySelector(".shadow-scroller");if(o){let i=o.querySelector(".modal-body");var t=i.scrollHeight,e=i.scrollTop,a=i.offsetHeight;i.clientHeight<t&&(e>0?o.classList.add("scroll-top"):o.classList.remove("scroll-top"),a+e<t?o.classList.add("scroll-bottom"):o.classList.remove("scroll-bottom"))}}close(){this.show=!1}setInitialFocus(){var o,t,e;const a=null===(o=this.el.shadowRoot)||void 0===o?void 0:o.querySelector('button, a, input, select, textarea, [tabindex]:not([tabindex="-1"]), ptc-close-icon'),i=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector("ptc-close-icon"),s=null===(e=null==i?void 0:i.shadowRoot)||void 0===e?void 0:e.querySelector("svg");s?s.focus():a&&a.focus()}render(){let o,a,i=this.iframeUrl?"frame":"html",s=t("div",{class:"close",id:"modal-close"},t("ptc-close-icon",{onClick:o=>{o.preventDefault(),this.close()},onKeyPress:o=>{o.preventDefault(),this.close()}})),r=t("div",{class:"bottom-close",id:"modal-bottom-close",onClick:o=>{o.preventDefault(),this.close()},onKeyPress:o=>{o.preventDefault(),this.close()}},t("span",null,this.bottomCloseBtn));return o=this.iframeUrl?t("iframe",{src:this.iframeUrl,frameBorder:0,allowFullScreen:!1,height:"100%",width:"100%",scrolling:"no",onLoad:this.resizeIframe}):t("slot",this.showHeaderFooter?{name:"body"}:null),this.overlay&&(a=t("div",this.closeOnBlur?{class:"overlay",onClick:()=>this.close()}:{class:"overlay"})),t(e,{class:this.getCssClassMap()},this.styles&&t("style",null,this.styles),t("div",{class:`wrapper ${this.show?"show":"hide"} ${this.fixed?"fixed":""} `},a,t("div",{class:`modal-popup ${this.customClass?this.customClass:""} ${this.size} ${i} ${this.rounded?"rounded":""} ${this.showHeaderFooter?"shadow-scroller":""} `},"event-listing"===this.modalType&&this.headerOnlyBg?[t("div",{class:"event-list-header"},t("ptc-img",{"img-url":this.headerOnlyBg,"image-type":"smart-img",styles:".ptc-img{border-radius: var(--ptc-border-radius-standard) var(--ptc-border-radius-standard) 0px 0px;}"}),t("div",{class:"text-wrapper"},t("span",null,this.headerOnlyText1?this.headerOnlyText1:""),t("span",null,this.headerOnlyText2?this.headerOnlyText2:"")))]:null,this.showHeaderFooter?[t("div",{class:"modal-header"},t("slot",{name:"header"}),s),t("div",{class:"modal-body",onScroll:()=>this.handleScroll()},o),t("div",{class:"modal-footer"},t("slot",{name:"footer"}))]:[s,t("div",{class:"modal-body"},o)],"event-listing"===this.modalType&&this.bottomCloseBtn?[r]:null)))}getCssClassMap(){return{"no-container":this.hideContainer,"bio-modal":this.isBioModal,"enclose-modal":!this.isBioModal&&this.keepInViewport,[this.borderRadius]:!0,[this.modalType]:!0,"vh-center":this.vhCenter}}async showModal(){this.show=!0}async hideModal(){this.show=!1}async toggleModal(){this.show=!this.show}async reloadIframe(){if(this.iframeUrl){let o=this.el.shadowRoot.querySelector("iframe");o&&(o.src=o.src)}}get el(){return i(this)}};r.style='h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}.wrapper{position:absolute;width:100vw;height:100%;top:0;left:0;z-index:500001;display:none}.wrapper.fixed{position:fixed}.wrapper .modal-popup{margin:7.5rem auto 1rem;background-color:var(--color-white);box-shadow:var(--ptc-shadow-large);max-width:22.5625rem;width:80%;display:flex;flex-direction:column;align-items:flex-end;align-content:flex-end;z-index:50020;transform:translateY(-100%);position:relative}@media only screen and (min-width: 992px){.wrapper .modal-popup{max-width:29.125rem}}.wrapper .modal-popup.md{max-width:44.125rem}.wrapper .modal-popup.lg{max-width:56.25rem}.wrapper .modal-popup.xl{max-width:64.0625rem}.wrapper .modal-popup.fit-content{max-width:fit-content}.wrapper .modal-popup.max{width:calc(100% - 4rem);max-width:75rem;height:80vh;margin:auto;overflow:hidden}.wrapper .modal-popup.max .close{margin:var(--ptc-element-spacing-02)}.wrapper .modal-popup.max .modal-body iframe{height:100%}.wrapper .modal-popup.sm-modal{width:341px;max-width:341px}@media only screen and (max-width: 360px){.wrapper .modal-popup.sm-modal{max-width:100%;width:100%}}@media only screen and (min-width: 360px) and (max-width: 479.55px){.wrapper .modal-popup.sm-modal{max-width:360px;width:360px}}@media only screen and (min-width: 480px){.wrapper .modal-popup.sm-modal.modal-with-content{width:371px;max-width:371px}}@media only screen and (min-width: 360px) and (max-width: 479.55px){.wrapper .modal-popup.sm-modal.modal-with-content{max-width:360px;width:360px}}.wrapper .modal-popup .modal-body{width:100%}.wrapper .modal-popup .modal-body iframe{opacity:0;overflow:hidden;width:100%;border:0;transition:opacity var(--ptc-ease-inout) var(--ptc-transition-medium)}.wrapper .modal-popup .modal-body iframe.ready{opacity:1}.wrapper .modal-popup .modal-body.frame{overflow:hidden;overflow-y:hidden;overflow-x:hidden}.wrapper .modal-popup .modal-body.html{overflow:hidden}.wrapper .modal-popup.frame .modal-body{display:flex;flex:1;height:100%}.wrapper .modal-popup .close{margin-right:2px;margin-top:2px}.wrapper .modal-popup.shadow-scroller{max-height:calc(100vh - 220px)}@media only screen and (min-width: 992px){.wrapper .modal-popup.shadow-scroller{max-height:756px}}.wrapper .modal-popup.shadow-scroller .modal-header{transition:box-shadow ease-in-out 250ms;position:relative;min-height:57px;border-bottom:1px solid var(--color-gray-02);width:100%}.wrapper .modal-popup.shadow-scroller .modal-header .close{position:absolute;top:8px;right:8px;margin:0}.wrapper .modal-popup.shadow-scroller .modal-body{min-height:200px;overflow-x:hidden}.wrapper .modal-popup.shadow-scroller .modal-footer{transition:box-shadow ease-in-out 250ms;width:100%;min-height:60px;border-top:1px solid var(--color-gray-02);padding-top:1rem}.wrapper .modal-popup.shadow-scroller.scroll-top .modal-header{box-shadow:0px 4px 12px rgba(0, 0, 0, 0.12)}.wrapper .modal-popup.shadow-scroller.scroll-bottom .modal-footer{box-shadow:0px -8px 12px rgba(0, 0, 0, 0.12)}.wrapper.show{display:flex;align-items:flex-start}.wrapper.show .modal-popup{transform:translateY(0)}.wrapper.show .modal-popup.rounded{border-radius:var(--ptc-border-radius-standard)}.overlay{width:100vw;height:100vh;position:fixed;top:0;left:0;z-index:50010;display:block;background-color:rgba(0, 0, 0, 0.6)}:host(.standard) .modal-popup{border-radius:var(--ptc-border-radius-standard)}:host(.large) .modal-popup{border-radius:var(--ptc-border-radius-large)}:host(.pill) .modal-popup{border-radius:var(--ptc-border-radius-pill)}:host(.circle) .modal-popup{border-radius:var(--ptc-border-radius-circle)}:host(.enclose-modal) .modal-popup{max-height:calc(100vh - 180px)}:host(.enclose-modal) .modal-popup:not(.frame) .modal-body{overflow-y:auto}:host(.bio-modal) .wrapper.show{align-items:flex-start}@media only screen and (min-width: 768px){:host(.bio-modal) .wrapper.show{align-items:center}}:host(.bio-modal) .modal-popup{padding:30px 15px 30px 0;max-width:1200px;margin:20px auto 0 auto;max-height:calc(100vh - 180px);width:90%;height:100%}:host(.bio-modal) .modal-popup .modal-body{height:100%}@media only screen and (min-width: 768px){:host(.bio-modal) .modal-popup .modal-body{height:auto}}@media (max-height: 450px){:host(.bio-modal) .modal-popup .modal-body{height:100%}}@media only screen and (min-width: 768px){:host(.bio-modal) .modal-popup{max-height:none;width:80%;margin-top:0px;height:auto}}@media only screen and (min-width: 1440px){:host(.bio-modal) .modal-popup{max-width:1400px}}@media (max-height: 450px){:host(.bio-modal) .modal-popup{max-height:calc(100vh - 180px);height:100%}}:host(.bio-modal) .close{position:absolute;margin:0;right:8px;top:8px}:host(.bio-modal) .close svg .cls-1,:host(.bio-modal) .close svg .cls-2{fill:none;stroke-width:2px}:host(.bio-modal) .close svg .cls-1{stroke:#1c2439;stroke-linecap:square}:host(.bio-modal) .close svg .cls-2{stroke:#74c34d}:host(.bio-modal) .close svg path{transition:all ease-in-out 250ms}:host(.bio-modal) .close svg .cls-1:nth-child(1){transform:translate(175.5px, 135.5px)}:host(.bio-modal) .close svg .cls-1:nth-child(2){transform:translate(175.5px, 174.985px)}:host(.bio-modal) .close svg .cls-1:nth-child(3){transform:translate(215.5px, 141.393px)}:host(.bio-modal) .close svg .cls-1:nth-child(4){transform:translate(175.5px, 135.5px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(1){transform:translate(175.5px, 162px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(2){transform:translate(149px, 174.985px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(3){transform:translate(215.5px, 174px)}:host(.bio-modal) .close:hover svg .cls-1:nth-child(4){transform:translate(152.5px, 135.5px)}:host(.no-container) .wrapper .modal-popup.xl{max-width:80rem !important;background:transparent;box-shadow:none}:host(.no-container) .wrapper .modal-popup .close{display:none}:host(.video-modal) .modal-popup{margin:auto}@media (max-height: 768px){:host(.video-modal) .modal-popup.xl{max-width:56rem}}@media (max-height: 600px){:host(.video-modal) .modal-popup.xl{max-width:44rem}}@media (max-height: 500px){:host(.video-modal) .modal-popup.xl{max-width:35rem}}@media (max-height: 400px){:host(.video-modal) .modal-popup.xl{max-width:26rem}}:host(.event-listing) .wrapper .modal-popup{max-width:unset;width:calc(100% - 48px);top:50%;left:50%;transform:translate(-50%, -50%) !important;margin:0px;position:absolute}:host(.vh-center) .wrapper .modal-popup{top:50%;left:50%;transform:translate(-50%, -50%) !important;margin:0px auto;position:absolute}:host(.thank-you) .wrapper .modal-popup{max-width:calc(100% - 48px);width:100%}@media only screen and (min-width: 480px){:host(.thank-you) .wrapper .modal-popup{max-width:640px;width:80%}}:host(.thank-you) .wrapper .modal-popup .modal-body{padding:2px 24px 48px 24px;box-sizing:border-box}@media only screen and (min-width: 992px){:host(.thank-you) .wrapper .modal-popup .modal-body{padding:2px 48px 48px 48px}}:host .wrapper .event-list-header{display:flex;position:absolute;width:100%;height:118px;left:0;transform:translateY(-100%);border-radius:var(--ptc-border-radius-standard) var(--ptc-border-radius-standard) 0px 0px;align-items:center;padding:var(--ptc-element-spacing-06);box-sizing:border-box}:host .wrapper .event-list-header::before{content:"";position:absolute;left:0;width:100%;height:100%;border-radius:4px 4px 0px 0px;background:linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%);z-index:1}:host .wrapper .event-list-header+.close{margin-top:0px;margin-right:0px;width:40px;height:40px;display:flex;justify-content:center;align-items:center}:host .wrapper .event-list-header .text-wrapper{display:flex;flex-wrap:wrap;column-gap:0.5em}:host .wrapper .event-list-header .text-wrapper span{display:inline-block;color:var(--color-white);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-x-large);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-densest);position:relative;z-index:2}:host .wrapper .event-list-header .text-wrapper span:first-of-type{font-weight:var(--ptc-font-weight-extrabold)}:host .wrapper .event-mobile-modal{border-top-left-radius:0px;border-top-right-radius:0px}:host .wrapper .bottom-close{text-align:center;margin:0 auto 40px auto}:host .wrapper .bottom-close span{cursor:pointer;color:var(--color-hyperlink);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-bold);text-decoration-line:underline;line-height:var(--ptc-line-height-densest)}:host .wrapper .bottom-close span:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .wrapper .bottom-close span:hover{color:var(--color-blue-08)}';export{s as ptc_close_icon,r as ptc_modal}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,c as t,h as a,H as i,a as e}from"./p-944c5be8.js";const r=class{constructor(a){o(this,a),this.readMoreTrigger=t(this,"readMoreTrigger",7),this.displayText=t(this,"displayText",7),this.maxCharacters=100,this.readMoreText="Read More",this.readLessText="Read Less",this.maxLines=void 0,this.contentStyles=void 0,this.trackerId="",this.expanded=!1,this.fullText="",this.truncated=!1}componentWillLoad(){requestAnimationFrame((()=>{let o=this.el.shadowRoot.querySelector("slot");this.processText(o)}))}slotChangeHandler(o){this.processText(o.target)}parseStyles(o){return o.split(";").reduce(((o,t)=>{const[a,i]=t.split(":").map((o=>o.trim()));return a&&i&&(o[a]=i),console.log("styleObj: "+o),o}),{})}processText(o){if(o){const t=o.assignedNodes({flatten:!0});this.fullText=t.map((o=>o.textContent)).join("").trim(),this.maxLines?this.truncateByLines():this.fullText.length>this.maxCharacters&&(this.truncated=!0)}this.displayText.emit(this.truncated)}truncateByLines(){const o=document.createElement("p");o.style.visibility="hidden",o.style.position="fixed",o.innerText=this.fullText,document.body.appendChild(o);const t=parseFloat(window.getComputedStyle(o).lineHeight);console.log("lineHeight: "+t);const a=t*this.maxLines;o.style.maxHeight=`${a}px`,o.style.overflow="hidden",o.scrollHeight>a&&(this.truncated=!0),document.body.removeChild(o)}getContent(){if(this.expanded)return this.fullText;if(this.maxLines){const o=document.createElement("p");o.style.visibility="hidden",o.style.position="fixed",o.innerText=this.fullText,document.body.appendChild(o);const t=parseFloat(window.getComputedStyle(o).lineHeight),a=t*this.maxLines;console.log("lineHeight: "+t),o.style.maxHeight=`${a}px`,o.style.overflow="hidden";let i="";for(let t=0;t<this.fullText.length;t++)if(o.innerText=this.fullText.slice(0,t)+"...",o.scrollHeight>a){i=this.fullText.slice(0,t-1)+"...";break}return document.body.removeChild(o),i}return this.fullText.substring(0,this.maxCharacters)+"..."}getLabel(){return this.expanded?this.readLessText:this.readMoreText}toggleExpand(){this.expanded=!this.expanded,this.readMoreTrigger.emit(this.expanded)}handleKeyDown(o){"Enter"===o.key&&this.toggleExpand()}render(){return a(i,null,this.contentStyles&&a("style",null,this.contentStyles),a("p",{class:"description"},this.truncated?this.getContent():a("slot",null)),this.truncated?a("label",{class:"label mf-listen",onClick:()=>this.toggleExpand(),id:this.trackerId,tabindex:"0",onKeyDown:o=>this.handleKeyDown(o)},this.getLabel()):null)}get el(){return e(this)}};r.style='h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}a{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);text-decoration-line:underline;color:var(--color-hyperlink);transition:color var(--ptc-transition-medium) var(--ptc-ease-out);font-weight:var(--ptc-font-weight-bold)}a:visited{color:var(--color-blue-10)}a:active,a:visited:active{transition:none;color:var(--color-blue-09)}a:hover,a:visited:hover{color:var(--color-blue-08)}a.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}a:focus-visible{outline:5px solid #003DD6 !important;outline-offset:0px !important;border-radius:var(--ptc-border-radius-standard)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.light-links a.light-link,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.background-grey-10 a.light-link,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.background-plm-grey a.light-link{color:var(--color-blue-04);margin:-2px;border:2px solid transparent}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.light-links a.light-link:visited,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.background-grey-10 a.light-link:visited,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.background-plm-grey a.light-link:visited{color:var(--color-blue-06)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.light-links a.light-link:active,.light-links a.light-link:visited:active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.background-grey-10 a.light-link:active,.background-grey-10 a.light-link:visited:active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.background-plm-grey a.light-link:active,.background-plm-grey a.light-link:visited:active{transition:none;color:var(--color-blue-07)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.light-links a.light-link:hover,.light-links a.light-link:visited:hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.background-grey-10 a.light-link:hover,.background-grey-10 a.light-link:visited:hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.background-plm-grey a.light-link:hover,.background-plm-grey a.light-link:visited:hover{color:var(--color-blue-05)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.light-links a.light-link.disabled,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.background-grey-10 a.light-link.disabled,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.background-plm-grey a.light-link.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.light-links a.light-link:focus-visible,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.background-grey-10 a.light-link:focus-visible,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.background-plm-grey a.light-link:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.light-links .podcast-cta-section a,.background-grey-10 .podcast-cta-section a,.background-plm-grey .podcast-cta-section a{border:2px solid transparent}.light-links .podcast-cta-section a:focus-visible,.background-grey-10 .podcast-cta-section a:focus-visible,.background-plm-grey .podcast-cta-section a:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.ptc-link{color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link:hover{color:var(--color-green-06)}.ptc-link:visited{color:var(--color-gray-10)}.ptc-link:active,.ptc-link:visited:active{transition:none;color:var(--color-green-06)}.ptc-link:hover,.ptc-link:visited:hover{color:var(--color-green-06)}.ptc-link-dark{color:var(--color-white);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link-dark:hover{color:var(--color-green-06)}.ptc-link-dark:visited{color:var(--color-white)}.ptc-link-dark:active,.ptc-link-dark:visited:active{transition:none;color:var(--color-green-06)}.ptc-link-dark:hover,.ptc-link-dark:visited:hover{color:var(--color-green-06)}.vjs-social-share-links a{color:var(--color-white)}.vjs-social-share-links a:hover{color:var(--color-white)}:host{display:block}:host .description{display:inline}:host .label{cursor:pointer;color:var(--color-hyperlink);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-bold);text-decoration-line:underline;line-height:var(--ptc-line-height-densest)}:host .label::before{content:"";padding-left:8px}:host .label:focus-visible{transition:none;border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}';export{r as ptc_readmore_v3}
|