sr-npm 1.7.958 → 1.7.960

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.958",
3
+ "version": "1.7.960",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -12,7 +12,6 @@ async function bindBoardPeopleRepeaters(_$w) {
12
12
  _$w('#directorsRepeaterItem').onClick((event) => {
13
13
  const $item = _$w.at(event.context);
14
14
  const clickedItemData = $item('#dynamicDataset').getCurrentItem();
15
- console.log("clickedItemData: ",clickedItemData);
16
15
  location.to(`/${clickedItemData['link-board-people-title_fld']}`);
17
16
 
18
17
  });
@@ -20,7 +19,6 @@ async function bindBoardPeopleRepeaters(_$w) {
20
19
  _$w('#executivesRepeaterItem').onClick((event) => {
21
20
  const $item = _$w.at(event.context);
22
21
  const clickedItemData = $item('#dataset1').getCurrentItem();
23
- console.log("clickedItemData: ",clickedItemData);
24
22
  location.to(`/${clickedItemData['link-board-people-title_fld']}`);
25
23
 
26
24
  });
@@ -109,7 +109,7 @@ function loadPrimarySearchRepeater(_$w) {
109
109
  const primarySearchDebounced = debounce(async () => {
110
110
  const query = (_$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).value || '').toLowerCase().trim();
111
111
  await primarySearch(_$w, query, alljobs);
112
- }, 150);
112
+ }, 300);
113
113
 
114
114
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).onInput(async () => {
115
115
  await primarySearchDebounced();
@@ -6,16 +6,10 @@ const { getAllRecordsWithoutMultiRef } = require('./pagesUtils');
6
6
  let currentItem;
7
7
  async function supportTeasmPageOnReady(_$w) {
8
8
  currentItem= _$w(supportTeamsPageIds.TEAM_SUPPORT_DYNAMIC_DATASET).getCurrentItem();
9
- console.log("currentItem: ",currentItem);
10
- await handleRecentJobsSection(_$w);
11
- await handlePeopleSection(_$w);
12
- await handleVideoSection(_$w);
13
-
9
+ Promise.all([handleRecentJobsSection(_$w),handlePeopleSection(_$w),handleVideoSection(_$w)]);
14
10
  }
15
11
 
16
12
  async function handleVideoSection(_$w) {
17
- console.log("inside video section");
18
- console.log("currentItem: ",currentItem);
19
13
  if(!currentItem.videoExists) {
20
14
  console.log("Video does not exist , collapsing video section ");
21
15
  await collapseSection(_$w,"video");
@@ -25,15 +19,8 @@ async function handleVideoSection(_$w) {
25
19
  }
26
20
 
27
21
  async function handlePeopleSection(_$w) {
28
- const currentPeopleRepeaterData= _$w(supportTeamsPageIds.PEOPLE_REPEATER).data;
29
- console.log("currentPeopleRepeaterData: ",currentPeopleRepeaterData);
30
22
  const allpeoplesrecord=await getAllRecordsWithoutMultiRef("OurPeople");
31
- console.log("allpeoplesrecord: ",allpeoplesrecord);
32
- console.log("currentItem inisde peolpe serion: ",currentItem);
33
23
  const peopleToDisplay=allpeoplesrecord.filter(person=>person.supportTeamName===currentItem._id);
34
- console.log("peopleToDisplay: ",peopleToDisplay);
35
- let itemObj = _$w("#peopleDataset").getCurrentItem();
36
- console.log("itemObj: ",itemObj);
37
24
 
38
25
  if(peopleToDisplay.length === 0) {
39
26
  console.log("No people found , collapsing people section ");
@@ -47,26 +34,21 @@ async function handlePeopleSection(_$w) {
47
34
  async function handleRecentJobsSection(_$w) {
48
35
 
49
36
 
50
- console.log("currentItem 2 3 4 5: ",currentItem);
51
37
  if(supportTeamsPageIds.excludeValues.has(currentItem.title_fld)) {
52
38
  console.log("Value is excluded , collapsing recently Jobs Section ");
53
39
  await collapseSection(_$w,"recentJobs");
54
40
  return;
55
41
  }
56
42
  const valueId=supportTeamsPageIds.valueToValueIdMap[currentItem.title_fld]
57
- console.log("valueId: ",valueId);
58
43
  const Value=await getValueFromValueId(valueId);
59
- console.log("Value: ",Value);
60
44
  if(Value===undefined) {
61
45
  console.log("Value is undefined , collapsing recently Jobs Section ");
62
46
  await collapseSection(_$w,"recentJobs");
63
47
  return;
64
48
  }
65
49
  const latestsJobs=await getLatestJobsByValue(Value);
66
- console.log("latestsJobs: ",latestsJobs);
67
50
 
68
51
  _$w(supportTeamsPageIds.RECENT_JOBS_REPEATER).onItemReady(($item, itemData) => {
69
- console.log("itemData: ",itemData);
70
52
  $item(supportTeamsPageIds.JOB_TITLE).text = itemData.title;
71
53
  $item(supportTeamsPageIds.JOB_LOCATION).text = itemData.location.fullLocation;
72
54