abmp-npm 1.8.34 → 1.8.36
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/package.json
CHANGED
package/pages/Profile.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const { location: wixLocation } = require('@wix/site-location');
|
|
2
2
|
const { window: wixWindow } = require('@wix/site-window');
|
|
3
3
|
|
|
4
|
+
const { DEFAULT_PROFILE_IMAGE, LIGHTBOX_NAMES } = require('../public/consts');
|
|
4
5
|
const { generateId, formatPracticeAreasForDisplay } = require('../public/Utils/sharedUtils');
|
|
5
6
|
|
|
6
7
|
const TESTIMONIALS_PER_PAGE_CONFIG = {
|
|
@@ -119,8 +120,7 @@ async function profileOnReady({ $w: _$w }) {
|
|
|
119
120
|
if (profileData.profileImage) {
|
|
120
121
|
_$w('#profileImage').src = profileData.profileImage;
|
|
121
122
|
} else {
|
|
122
|
-
_$w('#profileImage').src =
|
|
123
|
-
'https://static.wixstatic.com/media/1d7134_e052e9b1d0a543d0980650e16dd6d374~mv2.jpg';
|
|
123
|
+
_$w('#profileImage').src = DEFAULT_PROFILE_IMAGE;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
@@ -145,7 +145,9 @@ async function profileOnReady({ $w: _$w }) {
|
|
|
145
145
|
|
|
146
146
|
function bindContactForm() {
|
|
147
147
|
if (profileData.showContactForm) {
|
|
148
|
-
_$w('#contactButton').onClick(() =>
|
|
148
|
+
_$w('#contactButton').onClick(() =>
|
|
149
|
+
wixWindow.openLightbox(LIGHTBOX_NAMES.CONTACT_US, profileData)
|
|
150
|
+
);
|
|
149
151
|
} else {
|
|
150
152
|
_$w('#contactButton').collapse();
|
|
151
153
|
}
|
package/pages/personalDetails.js
CHANGED
|
@@ -9,7 +9,7 @@ const {
|
|
|
9
9
|
FREE_WEBSITE_TEXT_STATES,
|
|
10
10
|
LIGHTBOX_NAMES,
|
|
11
11
|
} = require('../public/consts');
|
|
12
|
-
const { handleOnCustomValidation, isNotValidUrl } = require('../public/Utils/
|
|
12
|
+
const { handleOnCustomValidation, isNotValidUrl } = require('../public/Utils/personalDetailsUtils');
|
|
13
13
|
const { generateId } = require('../public/Utils/sharedUtils');
|
|
14
14
|
|
|
15
15
|
const MAX_PHONES_COUNT = 10;
|
|
@@ -85,6 +85,8 @@ async function personalDetailsOnReady({
|
|
|
85
85
|
ERROR: 'There was an error. Please try again.',
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
+
_$w('#mainMultiStateBox').changeState(MAIN_STATE_BOX_STATES.LOADING_STATE);
|
|
89
|
+
|
|
88
90
|
// Set up handler functions with access to closures
|
|
89
91
|
FORM_SECTION_HANDLER_MAP.PERSONAL.handler = () => checkPersonalDataChanged();
|
|
90
92
|
FORM_SECTION_HANDLER_MAP.BUSINESS_SERVICES.handler = () => checkBusinessDataChanged();
|
package/public/consts.js
CHANGED
|
@@ -80,6 +80,7 @@ const LIGHTBOX_NAMES = {
|
|
|
80
80
|
LOGIN_ERROR_ALERT: 'loginError',
|
|
81
81
|
DELETE_CONFIRM: 'deleteConfirm',
|
|
82
82
|
SELECT_BANNER_IMAGES: 'Select Banner Images',
|
|
83
|
+
CONTACT_US: 'Contact Us',
|
|
83
84
|
};
|
|
84
85
|
|
|
85
86
|
const ABMP_MEMBERS_HOME_URL = 'https://www.abmp.com/members';
|
|
@@ -91,6 +92,8 @@ const FREE_WEBSITE_TEXT_STATES = {
|
|
|
91
92
|
|
|
92
93
|
const DEFAULT_BUSINESS_NAME_TEXT = 'Business name not provided';
|
|
93
94
|
|
|
95
|
+
const DEFAULT_PROFILE_IMAGE =
|
|
96
|
+
'https://static.wixstatic.com/media/1d7134_e052e9b1d0a543d0980650e16dd6d374~mv2.jpg';
|
|
94
97
|
module.exports = {
|
|
95
98
|
REGEX,
|
|
96
99
|
COLLECTIONS,
|
|
@@ -103,4 +106,5 @@ module.exports = {
|
|
|
103
106
|
ABMP_MEMBERS_HOME_URL,
|
|
104
107
|
FREE_WEBSITE_TEXT_STATES,
|
|
105
108
|
DEFAULT_BUSINESS_NAME_TEXT,
|
|
109
|
+
DEFAULT_PROFILE_IMAGE,
|
|
106
110
|
};
|
package/public/index.js
CHANGED
|
File without changes
|