@ptcwebops/ptcw-design 2.9.0 → 2.9.2

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 (44) hide show
  1. package/dist/cjs/{ptc-form-checkbox_3.cjs.entry.js → embedded-form_9.cjs.entry.js} +737 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/ptc-subnav.cjs.entry.js +1 -1
  4. package/dist/cjs/ptcw-design.cjs.js +1 -1
  5. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.css +17 -1
  6. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +6 -2
  7. package/dist/collection/components/ptc-data-lookup/ptc-data-lookup.css +29 -0
  8. package/dist/collection/components/ptc-data-lookup/ptc-data-lookup.js +16 -1
  9. package/dist/collection/components/ptc-textfield/ptc-textfield.js +1 -1
  10. package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +1 -1
  11. package/dist/collection/components/subnav/ptc-subnav/ptc-subnav.css +1 -0
  12. package/dist/collection/utils/elq-lib.js +100 -50
  13. package/dist/custom-elements/index.js +127 -59
  14. package/dist/esm/{ptc-form-checkbox_3.entry.js → embedded-form_9.entry.js} +733 -3
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/ptc-subnav.entry.js +1 -1
  17. package/dist/esm/ptcw-design.js +1 -1
  18. package/dist/ptcw-design/p-18a51b46.entry.js +1 -0
  19. package/dist/ptcw-design/{p-5d183a57.entry.js → p-6faf3ced.entry.js} +16 -16
  20. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  21. package/dist/types/components/organism-bundles/form/embedded-form/embedded-form.d.ts +1 -0
  22. package/dist/types/components/ptc-data-lookup/ptc-data-lookup.d.ts +1 -0
  23. package/dist/types/utils/elq-lib.d.ts +4 -0
  24. package/package.json +1 -1
  25. package/readme.md +1 -1
  26. package/dist/cjs/embedded-form.cjs.entry.js +0 -105
  27. package/dist/cjs/max-width-container.cjs.entry.js +0 -54
  28. package/dist/cjs/ptc-button.cjs.entry.js +0 -50
  29. package/dist/cjs/ptc-data-lookup.cjs.entry.js +0 -378
  30. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
  31. package/dist/cjs/ptc-title.cjs.entry.js +0 -78
  32. package/dist/esm/embedded-form.entry.js +0 -101
  33. package/dist/esm/max-width-container.entry.js +0 -50
  34. package/dist/esm/ptc-button.entry.js +0 -46
  35. package/dist/esm/ptc-data-lookup.entry.js +0 -374
  36. package/dist/esm/ptc-spacer.entry.js +0 -34
  37. package/dist/esm/ptc-title.entry.js +0 -74
  38. package/dist/ptcw-design/p-2240e6c6.entry.js +0 -1
  39. package/dist/ptcw-design/p-33c054ff.entry.js +0 -1
  40. package/dist/ptcw-design/p-92bbd407.entry.js +0 -1
  41. package/dist/ptcw-design/p-97118c77.entry.js +0 -1
  42. package/dist/ptcw-design/p-b1528ee0.entry.js +0 -1
  43. package/dist/ptcw-design/p-bd474021.entry.js +0 -1
  44. package/dist/ptcw-design/p-f1c77113.entry.js +0 -1
@@ -1,378 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-cd9a1b1a.js');
6
-
7
- // Define the ElqLib class
8
- class ElqLib {
9
- constructor(params) {
10
- this.params = params;
11
- this.url_vars = {};
12
- this.visitor_elq_id = null;
13
- this.field_mappings = [];
14
- this.callback_queue = [];
15
- //private fields_populated: boolean = false;
16
- this.user_elq_email = '';
17
- this.user_elq_firstname = '';
18
- this.user_elq_lastname = '';
19
- // Merge defaults with params
20
- const defaults = {
21
- elq_site_id: '',
22
- elq_visitor_lookup_key: '',
23
- elq_recipient_id_lookup_key: '',
24
- elq_contact_lookup_key: '',
25
- elq_field_email_rec_id: 'V_EmailRecipientID',
26
- elq_field_contact_email: 'C_EmailAddress',
27
- elq_field_visitor_email: 'V_Email_Address',
28
- elq_field_visitor_firstname: 'V_First_Name',
29
- elq_field_visitor_lastname: 'V_Last_Name',
30
- notme_link_id: null,
31
- notme_fields_class: null,
32
- notme_message: 'Not {name}? Click here.',
33
- notme_message_noname: 'Not your details below? Click here.',
34
- };
35
- this.params = Object.assign(Object.assign({}, defaults), this.params);
36
- this.init();
37
- }
38
- init() {
39
- // Merge defaults with user-provided params if not already done in the constructor
40
- // ...
41
- // Set Eloqua site ID
42
- this.setEloquaSiteId();
43
- // Load Eloqua scripts
44
- this.async_load();
45
- // Store URL variables
46
- this.store_url_vars();
47
- // Store visitor's Eloqua IDgit
48
- this.store_visitor_elq_id();
49
- // Set the global Eloqua callback function
50
- window.SetElqContent = this.eloqua_callback.bind(this);
51
- }
52
- setEloquaSiteId() {
53
- if (this.params.elq_site_id) {
54
- ElqLib._elqQ.push(['elqSetSiteId', this.params.elq_site_id]);
55
- }
56
- }
57
- fire_pageview(url) {
58
- try {
59
- if (typeof url === 'undefined') {
60
- ElqLib._elqQ.push(['elqTrackPageView']);
61
- }
62
- else {
63
- ElqLib._elqQ.push(['elqTrackPageView', url]);
64
- }
65
- console.log('TRACKING: Eloqua pageview fired for URL: ' + (url || 'current page'));
66
- }
67
- catch (e) {
68
- console.log('TRACKING: Could not fire Eloqua pageview: ', e);
69
- }
70
- }
71
- find_eloqua_contact() {
72
- console.log('CONTACT LOOKUP: Attempting to find Eloqua contact...');
73
- // Queue callback action for the return of lookup
74
- this.callback_queue.push(this.handle_visitor_lookup.bind(this));
75
- // Start with a recipient lookup if ID was supplied in URL
76
- if (this.visitor_elq_id !== null) {
77
- this.lookup_visitor_by_recipient_id();
78
- }
79
- else {
80
- // If no visitor ID, attempt to do a visitor lookup with an Eloqua cookie
81
- this.lookup_visitor_by_cookie();
82
- }
83
- }
84
- add_field_mapping(mapping) {
85
- this.field_mappings.push(mapping);
86
- }
87
- add_queue_action(action) {
88
- this.callback_queue.push(action);
89
- }
90
- store_url_vars() {
91
- // Clear the current url_vars
92
- this.url_vars = {};
93
- // Split the URL by the '?' to get the query string part
94
- const queryString = window.location.search.substring(1);
95
- // Split the query string by '&' to get each key-value pair
96
- queryString.split('&').forEach(paramString => {
97
- // Split the key-value pairs by '=' to separate keys and values
98
- let [key, value] = paramString.split('=');
99
- // Decode URI components to handle URL encoding
100
- key = decodeURIComponent(key);
101
- value = decodeURIComponent(value);
102
- // Store the key-value pair in the url_vars object
103
- this.url_vars[key] = value;
104
- });
105
- // Optionally, log the stored URL variables
106
- console.log('URL variables stored:', this.url_vars);
107
- }
108
- store_visitor_elq_id() {
109
- console.log("INIT: Looking for visitor's Eloqua ID in URL...");
110
- const elqIdParam = this.url_vars['elq'];
111
- if (elqIdParam) {
112
- const elqId = elqIdParam.toUpperCase().replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, '$1-$2-$3-$4-$5');
113
- this.visitor_elq_id = elqId;
114
- console.log(`INIT: ...visitor Eloqua ID found in URL: ${elqId}`);
115
- }
116
- else {
117
- this.visitor_elq_id = null;
118
- console.log('INIT: ...no visitor Eloqua ID found in URL');
119
- }
120
- }
121
- // private merge(root: any, ...sources: any[]): any {
122
- // sources.forEach(source => {
123
- // for (const key in source) {
124
- // if (source.hasOwnProperty(key)) {
125
- // root[key] = source[key];
126
- // }
127
- // }
128
- // });
129
- // return root;
130
- // }
131
- eloqua_callback() {
132
- console.log('LOOKUP: Eloqua lookup finished');
133
- // Process each action in the callback queue
134
- let actionSucceeded = true;
135
- while (actionSucceeded && this.callback_queue.length > 0) {
136
- const action = this.callback_queue.shift();
137
- if (action) {
138
- console.log(`QUEUE: Executing action`);
139
- actionSucceeded = action(); // Execute the action. It must return a boolean indicating success.
140
- if (actionSucceeded) {
141
- console.log('QUEUE: Action executed successfully, removed from queue');
142
- }
143
- else {
144
- console.log('QUEUE: Action failed, re-adding to queue');
145
- this.callback_queue.unshift(action); // Re-add the action to the front of the queue
146
- break; // Break out of the loop if an action fails
147
- }
148
- }
149
- }
150
- // After processing the queue, you might want to update user details or perform other operations
151
- if (actionSucceeded) {
152
- this.update_user_details();
153
- }
154
- //this.populate_mapped_fields();
155
- // ...additional code to handle the aftermath of callback processing...
156
- }
157
- lookup_visitor_by_cookie() {
158
- if (this.params.elq_visitor_lookup_key != '') {
159
- ElqLib._elqQ.push(['elqDataLookup', escape(this.params.elq_visitor_lookup_key), '']);
160
- console.log('LOOKUP: Visitor lookup sent using Eloqua cookie');
161
- }
162
- else {
163
- console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
164
- }
165
- }
166
- lookup_visitor_by_recipient_id() {
167
- if (this.params.elq_recipient_id_lookup_key != '') {
168
- ElqLib._elqQ.push([
169
- 'elqDataLookup',
170
- escape(this.params.elq_recipient_id_lookup_key),
171
- '<' + this.params.elq_field_email_rec_id + '>' + this.visitor_elq_id + '</' + this.params.elq_field_email_rec_id + '>',
172
- ]);
173
- console.log('LOOKUP: Visitor lookup sent using email recipient id: ' + this.visitor_elq_id);
174
- }
175
- else {
176
- console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
177
- }
178
- }
179
- lookup_contact_by_email() {
180
- if (this.params.elq_contact_lookup_key != '') {
181
- ElqLib._elqQ.push([
182
- 'elqDataLookup',
183
- escape(this.params.elq_contact_lookup_key),
184
- '<' + this.params.elq_field_contact_email + '>' + this.user_elq_email + '</' + this.params.elq_field_contact_email + '>',
185
- ]);
186
- console.log('LOOKUP: Contact lookup sent using email address: ' + this.user_elq_email);
187
- }
188
- else {
189
- console.log('LOOKUP: A visitor lookup cannot be performed as no lookup key was defined');
190
- }
191
- }
192
- handle_visitor_lookup() {
193
- const email = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_email);
194
- if (email) {
195
- console.log(`LOOKUP: Found visitor email address: ${email}`);
196
- this.user_elq_email = email.trim();
197
- this.lookup_contact_by_email();
198
- this.callback_queue.push(this.handle_contact_lookup.bind(this));
199
- return true;
200
- }
201
- else {
202
- return false;
203
- }
204
- }
205
- handle_contact_lookup() {
206
- if (window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email) != '') {
207
- console.log('LOOKUP: Found contact email address: ' + window.GetElqContentPersonalizationValue(this.params.elq_field_contact_email));
208
- return true;
209
- }
210
- else {
211
- return false;
212
- }
213
- }
214
- // private populate_mapped_fields(): void {
215
- // console.log("MAPPING: Starting field mapping");
216
- // // Loop through all mappings
217
- // for (mapping_set in field_mappings) {
218
- // for (mapping_element in field_mappings[mapping_set]) {
219
- // var mapping_elq_field = field_mappings[mapping_set][mapping_element];
220
- // var element = document.getElementById(mapping_element);
221
- // var field_value = GetElqContentPersonalizationValue(mapping_elq_field);
222
- // // Check that field exists
223
- // if (element == null) {
224
- // log("MAPPING: Could not populate element '" + mapping_element + "' as it does not exist");
225
- // }
226
- // else if (element.value != '') {
227
- // log("MAPPING: Could not populate element '" + mapping_element + "' as it already contained a value");
228
- // }
229
- // else if (field_value == '') {
230
- // log("MAPPING: Could not populate element '" + mapping_element + "' as the Eloqua field '" + mapping_elq_field + "' contained no data");
231
- // }
232
- // else {
233
- // fields_populated = true;
234
- // element.value = field_value;
235
- // log("MAPPING: Mapped element '" + mapping_element + "' with Eloqua field '" + mapping_elq_field + "'");
236
- // }
237
- // }
238
- // }
239
- // console.log("MAPPING: Finished field mapping");
240
- // // Update notme link
241
- // //update_notme_link ();
242
- // }
243
- update_user_details() {
244
- if (this.user_elq_email == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_email) != '') {
245
- this.user_elq_email = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_email);
246
- }
247
- if (this.user_elq_firstname == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_firstname) != '') {
248
- this.user_elq_firstname = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_firstname);
249
- }
250
- if (this.user_elq_lastname == '' && window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_lastname) != '') {
251
- this.user_elq_lastname = window.GetElqContentPersonalizationValue(this.params.elq_field_visitor_lastname);
252
- }
253
- }
254
- // private update_notme_link(): void {
255
- // // Get link element
256
- // var notme_link_element = $('#' + this.params.notme_link_id);
257
- // // Get Eloqua vars
258
- // var first_name = this.user_elq_firstname;
259
- // var last_name = this.user_elq_lastname;
260
- // var email = this.user_elq_email;
261
- // // Check if we have both first name and last name
262
- // if (first_name != '' && last_name !='') {
263
- // name = first_name + ' ' + last_name;
264
- // display_link = true;
265
- // }
266
- // // Check if we have first name
267
- // else if (first_name != '') {
268
- // name = first_name;
269
- // }
270
- // // Other use a generic message
271
- // else {
272
- // name = '';
273
- // }
274
- // // Check if some fields have been populated
275
- // if (this.fields_populated && this.params.notme_link_id != null && this.params.notme_fields_class != null) {
276
- // if (name != '') {
277
- // var message = this.params.notme_message.replace("{name}", name);
278
- // }
279
- // else {
280
- // var message = this.params.notme_message_noname;
281
- // }
282
- // console.log("MAPPING: Updating not me link");
283
- // notme_link_element.find('*').remove();
284
- // var link = $('<a href="">' + message + '</a>').appendTo(notme_link_element).click(this.remove_user_details);
285
- // }
286
- // }
287
- // private remove_user_details(): void {
288
- // this.user_elq_email = '';
289
- // this.user_elq_firstname = '';
290
- // this.user_elq_lastname = '';
291
- // $('.' + this.params.notme_fields_class).val('');
292
- // $('#' + this.params.notme_link_id)
293
- // .find('a')
294
- // .remove();
295
- // //Flush out old user cookie
296
- // ElqLib._elqQ.push(['elqVisitorGuid', ' ']);
297
- // ElqLib._elqQ.push(['elqTrackPageView']);
298
- // //return false;
299
- // }
300
- // Private Method to load Eloqua Scripts
301
- async_load() {
302
- const scriptUrl = 'http://img.en25.com/i/elqCfg.min.js';
303
- const scriptElement = document.createElement('script');
304
- scriptElement.type = 'text/javascript';
305
- scriptElement.async = true;
306
- scriptElement.src = scriptUrl;
307
- // Error handling for script loading
308
- scriptElement.onerror = errorEvent => {
309
- console.log(`Error loading script: ${errorEvent}`);
310
- };
311
- // Append the script element to the head of the document, or before the first script tag found
312
- const firstScriptTag = document.getElementsByTagName('script')[0];
313
- if (firstScriptTag && firstScriptTag.parentNode) {
314
- firstScriptTag.parentNode.insertBefore(scriptElement, firstScriptTag);
315
- }
316
- else {
317
- document.head.appendChild(scriptElement);
318
- }
319
- console.log(`Async loading of script ${scriptUrl} initiated.`);
320
- }
321
- }
322
- ElqLib._elqQ = [];
323
- // Static member initialization
324
- //ElqLib._elqQ = window['_elqQ'] || [];
325
-
326
- const ptcDataLookupCss = ":host{display:block}";
327
-
328
- const PtcDataLookup = class {
329
- constructor(hostRef) {
330
- index.registerInstance(this, hostRef);
331
- this.elqSiteId = undefined;
332
- this.elqVisitorLookupKey = undefined;
333
- this.elqRecipientIdLookupKey = undefined;
334
- this.elqContactLookupKey = undefined;
335
- this.elqFieldEmailRecId = "V_EmailRecipientID";
336
- this.elqFieldContactEmail = "C_EmailAddress";
337
- this.elqFieldVisitorEmail = 'V_Email_Address';
338
- this.elqFieldVisitorFirstname = 'C_FirstName';
339
- this.elqFieldVisitorLastname = 'C_LastName';
340
- this.notmeLinkId = undefined;
341
- this.notmeFieldsClass = undefined;
342
- this.notmeMessage = undefined;
343
- this.notmeMessageNoname = undefined;
344
- this.isInitialized = false;
345
- }
346
- componentWillLoad() {
347
- this.initializeElqLib();
348
- }
349
- initializeElqLib() {
350
- this.elqLib = new ElqLib({
351
- elq_site_id: this.elqSiteId,
352
- elq_visitor_lookup_key: this.elqVisitorLookupKey,
353
- elq_recipient_id_lookup_key: this.elqRecipientIdLookupKey,
354
- elq_contact_lookup_key: this.elqContactLookupKey,
355
- elq_field_email_rec_id: this.elqFieldEmailRecId,
356
- elq_field_contact_email: this.elqFieldContactEmail,
357
- elq_field_visitor_email: this.elqFieldVisitorEmail,
358
- elq_field_visitor_firstname: this.elqFieldVisitorFirstname,
359
- elq_field_visitor_lastname: this.elqFieldVisitorLastname,
360
- notme_link_id: this.notmeLinkId,
361
- notme_fields_class: this.notmeFieldsClass,
362
- notme_message: this.notmeMessage,
363
- notme_message_noname: this.notmeMessageNoname,
364
- });
365
- this.isInitialized = true;
366
- }
367
- async performDataLookup() {
368
- if (this.isInitialized) {
369
- this.elqLib.find_eloqua_contact();
370
- }
371
- }
372
- render() {
373
- return (index.h("slot", null));
374
- }
375
- };
376
- PtcDataLookup.style = ptcDataLookupCss;
377
-
378
- exports.ptc_data_lookup = PtcDataLookup;
@@ -1,38 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-cd9a1b1a.js');
6
-
7
- 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}}";
8
-
9
- const PtcSpacer = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.breakpoint = '';
13
- this.size = 'medium';
14
- this.direction = 'vertical';
15
- }
16
- render() {
17
- const classMap = this.getCssClassMap();
18
- return (index.h(index.Host, { class: classMap }));
19
- }
20
- getCssClassMap() {
21
- return {
22
- [this.size]: true,
23
- ['ptc-spacer-horizontal']: this.direction === 'horizontal',
24
- ['ptc-spacer-vertical']: this.direction === 'vertical',
25
- ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
26
- ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
27
- ['ptc-spacer-small']: this.breakpoint === 'small',
28
- ['ptc-spacer-medium']: this.breakpoint === 'medium',
29
- ['ptc-spacer-large']: this.breakpoint === 'large',
30
- ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
31
- ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
32
- ['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
33
- };
34
- }
35
- };
36
- PtcSpacer.style = ptcSpacerCss;
37
-
38
- exports.ptc_spacer = PtcSpacer;
@@ -1,78 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-cd9a1b1a.js');
6
-
7
- 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}";
8
-
9
- const PtcTitle = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.isPlmHub = false;
13
- this.type = 'h2';
14
- this.textAlign = undefined;
15
- this.upperline = 'dotted';
16
- this.titleShadow = undefined;
17
- this.titleColor = 'gray';
18
- this.titleMargin = undefined;
19
- this.titleWeight = undefined;
20
- this.titleSize = undefined;
21
- this.titleHeight = 'densest';
22
- this.styles = undefined;
23
- this.ellipsisLineCutoff = undefined;
24
- this.titleDisplay = 'inline-block';
25
- }
26
- render() {
27
- const classMap = this.getCssClassMap();
28
- const cutOff = this.getLineCuttoff();
29
- let TagType;
30
- switch (this.type) {
31
- case 'h1':
32
- TagType = 'h1';
33
- break;
34
- case 'h3':
35
- TagType = 'h3';
36
- break;
37
- case 'h4':
38
- TagType = 'h4';
39
- break;
40
- case 'h5':
41
- TagType = 'h5';
42
- break;
43
- case 'h6':
44
- TagType = 'h6';
45
- break;
46
- default:
47
- TagType = 'h2';
48
- }
49
- 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)))));
50
- }
51
- getCssClassMap() {
52
- return {
53
- [this.textAlign]: !!this.textAlign ? true : false,
54
- [this.upperline]: true,
55
- [this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
56
- [this.titleMargin]: !!this.titleMargin ? true : false,
57
- [this.titleShadow]: !!this.titleShadow ? true : false,
58
- [this.titleWeight]: !!this.titleWeight ? true : false,
59
- [this.titleSize]: !!this.titleSize ? true : false,
60
- [this.titleHeight]: !!this.titleHeight ? true : false,
61
- [this.titleColor]: !!this.titleColor ? true : false,
62
- ['ellipsis-boxing']: this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0,
63
- [this.titleDisplay]: !!this.titleDisplay ? true : false,
64
- };
65
- }
66
- getLineCuttoff() {
67
- let result;
68
- if (this.ellipsisLineCutoff && this.ellipsisLineCutoff > 0) {
69
- result = {
70
- ['-webkit-line-clamp']: `${this.ellipsisLineCutoff}`,
71
- };
72
- }
73
- return result;
74
- }
75
- };
76
- PtcTitle.style = ptcTitleCss;
77
-
78
- exports.ptc_title = PtcTitle;
@@ -1,101 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-62587d0b.js';
2
-
3
- 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}.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}";
4
-
5
- const EmbeddedForm = 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
- componentDidLoad() {
21
- this.onDataLookup();
22
- this.formButton = this.el.querySelector('.form-submit');
23
- this.formButton.addEventListener('click', this.handleSubmit.bind(this));
24
- //get Email
25
- this.emailEle = this.el.querySelector('ptc-textfield[field-id="contact-email"]');
26
- this.firstNameEle = this.el.querySelector('ptc-textfield[field-id="contact-firstname"]');
27
- this.lastNameEle = this.el.querySelector('ptc-textfield[field-id="contact-lastname"]');
28
- this.companyEle = this.el.querySelector('ptc-textfield[field-id="company"]');
29
- this.phoneEle = this.el.querySelector('ptc-textfield[field-id="contact-phone"]');
30
- this.countryEle = this.el.querySelector('ptc-select[field-id="contact-country"]');
31
- this.inquiryreasonEle = this.el.querySelector('ptc-select[field-id="contact-inquiry"]');
32
- this.howhearselfreport = this.el.querySelector('ptc-textfield[field-id="self-reporting"]');
33
- this.policy1 = this.el.querySelector('ptc-form-checkbox[checkbox-id="policy1"]');
34
- }
35
- //handle dataLookup
36
- onDataLookup() {
37
- const dataLookupElement = this.el.closest('ptc-data-lookup');
38
- if (dataLookupElement) {
39
- console.log('Perform Data Lookup...');
40
- dataLookupElement.performDataLookup();
41
- }
42
- else {
43
- console.log('No Data Lookup...');
44
- }
45
- }
46
- handleInputChange(field, value) {
47
- this.formData = Object.assign(Object.assign({}, this.formData), { [field]: value });
48
- }
49
- handleSubmit(event) {
50
- event.preventDefault();
51
- this.formData.email = this.emailEle.inputValue;
52
- this.formData.firstName = this.firstNameEle.inputValue;
53
- this.formData.lastName = this.lastNameEle.inputValue;
54
- this.formData.company = this.companyEle.inputValue;
55
- this.formData.phone = this.phoneEle.inputValue;
56
- this.formData.country = this.countryEle.selectedValue;
57
- this.formData.inquiryReason = this.inquiryreasonEle.selectedValue;
58
- this.formData.howhearselfreport = this.howhearselfreport.inputValue;
59
- this.formData.policyChecked = this.policy1.isChecked;
60
- //what if the checkbox is not required, I need to hide the checkbox in this case
61
- if (this.formData.policyChecked) {
62
- if (this.isValid()) {
63
- const formSubmitEvent = new CustomEvent('formSubmit', {
64
- detail: this.formData,
65
- bubbles: true,
66
- });
67
- this.el.dispatchEvent(formSubmitEvent);
68
- 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);
69
- }
70
- else {
71
- console.log('Form validation failed');
72
- }
73
- }
74
- else {
75
- this.policy1.validateCheckbox();
76
- console.log('Warning: Checkbox is not checked. This field is required');
77
- }
78
- }
79
- isValid() {
80
- const { email, firstName, lastName, company, country, phone, inquiryReason, howhearselfreport, policyChecked } = this.formData;
81
- const invalidLength = document.querySelectorAll('.invalid-field').length;
82
- // console.log('invalid fields length: ' + invalidLength), check the select field
83
- return (email !== '' &&
84
- phone !== '' &&
85
- firstName !== '' &&
86
- lastName !== '' &&
87
- company !== '' &&
88
- country !== '' &&
89
- inquiryReason !== '' &&
90
- howhearselfreport != '' &&
91
- policyChecked &&
92
- invalidLength === 0);
93
- }
94
- render() {
95
- return (h(Host, null, h("div", { class: "ptc-container ptc-section-standard flex-adjustments" }, h("div", { class: "form-wrapper" }, h("max-width-container", { "max-width": "277", breakpoint: 480 }, 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."), 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", name: "firstname" }), h("ptc-textfield", { "field-id": "contact-lastname", "label-text": "Last Name*", type: "text", "ptc-data-eloqua-name": "C_LastName", name: "lastname" }), h("ptc-textfield", { "field-id": "company", "label-text": "Company*", type: "text", "ptc-data-eloqua-name": "C_Company", name: "company-field" }), h("ptc-textfield", { "field-id": "contact-email", "label-text": "Email*", type: "email", "ptc-data-eloqua-name": "C_EmailAddress", name: "email" }), h("ptc-select", { "field-id": "contact-country", label: "Country*", "ptc-data-eloqua-name": "C_Country", name: "country" }, h("ul", { class: "mdc-list" }, h("li", { class: "mdc-list-item", "data-value": "" }, h("span", { class: "mdc-list-item__ripple" })), 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", name: "phone" }), h("ptc-select", { label: "What information are you interested in?*", "ptc-data-eloqua-name": "Inquiry_Reason", name: "inquiryreason", "field-id": "contact-inquiry" }, h("ul", { class: "mdc-list" }, h("li", { class: "mdc-list-item", "data-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-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" }), h("ptc-textfield", { type: "hidden", "ptc-data-eloqua-name": "test", "input-value": "test" }), h("ptc-form-checkbox", { label: "I agree to the policy", "checkbox-id": "policy1" }), h("ptc-button", { class: "form-submit", color: "ptc-quaternary", type: "submit", styles: ":host{align-self:flex-end; margin-top: 48px; display:block; text-align:right;}" }, "Submit"))))));
96
- }
97
- get el() { return getElement(this); }
98
- };
99
- EmbeddedForm.style = embeddedFormCss;
100
-
101
- export { EmbeddedForm as embedded_form };