favesalon-embed 1.0.17 → 1.0.18

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 (30) hide show
  1. package/dist/custom-elements/index.d.ts +30 -0
  2. package/dist/favesalon-embed/buy-giftcard-form.entry.js +94 -48
  3. package/dist/favesalon-embed/buy-giftcard-verification.entry.js +15 -3779
  4. package/dist/favesalon-embed/favesalon-embed.css +0 -20
  5. package/dist/favesalon-embed/favesalon-embed.esm.js +1 -1
  6. package/dist/favesalon-embed/icon-checked.entry.js +19 -0
  7. package/dist/favesalon-embed/icon-date.entry.js +19 -0
  8. package/dist/favesalon-embed/icon-loading.entry.js +19 -0
  9. package/dist/favesalon-embed/icon-location-marker.entry.js +19 -0
  10. package/dist/favesalon-embed/icon-phone.entry.js +19 -0
  11. package/dist/favesalon-embed/inputmask-afacb9e0.js +3777 -0
  12. package/dist/favesalon-embed/wizard-existing-user.entry.js +29 -7
  13. package/dist/favesalon-embed/wizard-new-user.entry.js +28 -6
  14. package/dist/types/components/buy-giftcard-form/buy-giftcard-form.d.ts +2 -0
  15. package/dist/types/components/icon-checked/icon-checked.d.ts +4 -0
  16. package/dist/types/components/icon-date/icon-date.d.ts +4 -0
  17. package/dist/types/components/icon-loading/icon-loading.d.ts +4 -0
  18. package/dist/types/components/icon-location-marker/icon-location-marker.d.ts +4 -0
  19. package/dist/types/components/icon-phone/icon-phone.d.ts +4 -0
  20. package/dist/types/components.d.ts +75 -0
  21. package/package.json +1 -1
  22. package/dist/favesalon-embed/services-09264f42.js +0 -24132
  23. package/dist/favesalon-embed/services-1406013d.js +0 -24132
  24. package/dist/favesalon-embed/services-9a686ade.js +0 -24122
  25. package/dist/favesalon-embed/services-c2c81c88.js +0 -24131
  26. package/dist/favesalon-embed/services-ef32efdc.js +0 -24132
  27. package/dist/favesalon-embed/utils-00e4ed17.js +0 -33
  28. package/dist/favesalon-embed/utils-daaa9ecc.js +0 -34
  29. package/dist/favesalon-embed/utils-e6e3f132.js +0 -33
  30. package/dist/favesalon-embed/utils-fd30fb29.js +0 -32
@@ -1,33 +0,0 @@
1
- function wait(time = 1000) {
2
- return new Promise(resolve => setTimeout(() => resolve({}), time));
3
- }
4
- function format(first, middle, last) {
5
- return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
6
- }
7
- function formatWebsiteUrl(website) {
8
- return !!website ? website.indexOf('http') > -1 ? website : `http://${website}` : null;
9
- }
10
- function formatFullAddress(salon) {
11
- const { businessAddress, city, state, zipcode, } = salon || {};
12
- const stateFields = [state, zipcode].filter(field => !!field);
13
- if (businessAddress) {
14
- return [businessAddress, city]
15
- .filter(field => !!field)
16
- .concat(stateFields.length > 0 ? [stateFields.join(' ')] : [])
17
- .join(', ');
18
- }
19
- return null;
20
- }
21
- function getRatingText() {
22
- return ['', 'Poor', 'Sufficient', 'Average', 'Well', 'Very good'];
23
- }
24
- function formatPhoneNumber(phone) {
25
- debugger;
26
- return String(phone || '')
27
- .replace('(', '')
28
- .replace(')', '')
29
- .replace('-', '')
30
- .replaceAll(' ', '');
31
- }
32
-
33
- export { formatWebsiteUrl as a, formatFullAddress as b, formatPhoneNumber as f, getRatingText as g };
@@ -1,34 +0,0 @@
1
- function wait(time = 1000) {
2
- return new Promise(resolve => setTimeout(() => resolve({}), time));
3
- }
4
- function format(first, middle, last) {
5
- return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
6
- }
7
- function formatWebsiteUrl(website) {
8
- return !!website ? website.indexOf('http') > -1 ? website : `http://${website}` : null;
9
- }
10
- function formatFullAddress(salon) {
11
- const { businessAddress, city, state, zipcode, } = salon || {};
12
- const stateFields = [state, zipcode].filter(field => !!field);
13
- if (businessAddress) {
14
- return [businessAddress, city]
15
- .filter(field => !!field)
16
- .concat(stateFields.length > 0 ? [stateFields.join(' ')] : [])
17
- .join(', ');
18
- }
19
- return null;
20
- }
21
- function getRatingText() {
22
- return ['', 'Poor', 'Sufficient', 'Average', 'Well', 'Very good'];
23
- }
24
- function formatPhoneNumber(phone) {
25
- debugger;
26
- return String(phone || '')
27
- .replace('(', '')
28
- .replace(')', '')
29
- .replace('-', '')
30
- .replace('_', '')
31
- .replaceAll(' ', '');
32
- }
33
-
34
- export { formatWebsiteUrl as a, formatFullAddress as b, formatPhoneNumber as f, getRatingText as g };
@@ -1,33 +0,0 @@
1
- function wait(time = 1000) {
2
- return new Promise(resolve => setTimeout(() => resolve({}), time));
3
- }
4
- function format(first, middle, last) {
5
- return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
6
- }
7
- function formatWebsiteUrl(website) {
8
- return !!website ? website.indexOf('http') > -1 ? website : `http://${website}` : null;
9
- }
10
- function formatFullAddress(salon) {
11
- const { businessAddress, city, state, zipcode, } = salon || {};
12
- const stateFields = [state, zipcode].filter(field => !!field);
13
- if (businessAddress) {
14
- return [businessAddress, city]
15
- .filter(field => !!field)
16
- .concat(stateFields.length > 0 ? [stateFields.join(' ')] : [])
17
- .join(', ');
18
- }
19
- return null;
20
- }
21
- function getRatingText() {
22
- return ['', 'Poor', 'Sufficient', 'Average', 'Well', 'Very good'];
23
- }
24
- function formatPhoneNumber(phone) {
25
- return String(phone || '')
26
- .replace('(', '')
27
- .replace(')', '')
28
- .replace('-', '')
29
- .replace('_', '')
30
- .replaceAll(' ', '');
31
- }
32
-
33
- export { formatWebsiteUrl as a, formatFullAddress as b, formatPhoneNumber as f, getRatingText as g };
@@ -1,32 +0,0 @@
1
- function wait(time = 1000) {
2
- return new Promise(resolve => setTimeout(() => resolve({}), time));
3
- }
4
- function format(first, middle, last) {
5
- return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
6
- }
7
- function formatWebsiteUrl(website) {
8
- return !!website ? website.indexOf('http') > -1 ? website : `http://${website}` : null;
9
- }
10
- function formatFullAddress(salon) {
11
- const { businessAddress, city, state, zipcode, } = salon || {};
12
- const stateFields = [state, zipcode].filter(field => !!field);
13
- if (businessAddress) {
14
- return [businessAddress, city]
15
- .filter(field => !!field)
16
- .concat(stateFields.length > 0 ? [stateFields.join(' ')] : [])
17
- .join(', ');
18
- }
19
- return null;
20
- }
21
- function getRatingText() {
22
- return ['', 'Poor', 'Sufficient', 'Average', 'Well', 'Very good'];
23
- }
24
- function formatPhoneNumber(phone) {
25
- return String(phone || '')
26
- .replace('(', '')
27
- .replace(')', '')
28
- .replace('-', '')
29
- .replaceAll(' ', '');
30
- }
31
-
32
- export { formatWebsiteUrl as a, formatFullAddress as b, formatPhoneNumber as f, getRatingText as g };