@worksafevictoria/wcl7.5 1.5.0 → 1.6.0

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 (81) hide show
  1. package/.storybook/preview.js +20 -13
  2. package/bin/deploy.sh +1 -1
  3. package/lib/utility.js +10 -8
  4. package/package.json +4 -4
  5. package/src/assets/icons/AppFooter/x-ws-footer.svg +10 -0
  6. package/src/assets/icons/AppFooter/x-ww-footer.svg +28 -0
  7. package/src/assets/icons/SocialShare/x-icon-white.svg +28 -0
  8. package/src/assets/styles/modal.scss +51 -0
  9. package/src/components/Common/CardGrid/index.vue +56 -51
  10. package/src/components/Common/CardGridItem/card-grid-item-caret.vue +7 -4
  11. package/src/components/Common/CardGridItem/index.vue +77 -63
  12. package/src/components/Containers/Carousel/index.vue +14 -7
  13. package/src/components/Containers/HomepageHeader/index.stories.js +60 -36
  14. package/src/components/Containers/HomepageHeader/index.vue +2 -26
  15. package/src/components/Containers/HomepageHeaderNew/index.stories.js +15 -15
  16. package/src/components/Containers/HomepageHeaderNew/index.vue +97 -68
  17. package/src/components/Containers/SectionGroup/index.vue +1 -1
  18. package/src/components/Containers/Subheader/index.vue +5 -1
  19. package/src/components/Global/AppFooter/FooterSocialShare/index.vue +1 -1
  20. package/src/components/Global/AppFooter/index.vue +14 -7
  21. package/src/components/Global/AppHeaderNew/styles.scss +10 -15
  22. package/src/components/Global/BackToTop/index.vue +8 -8
  23. package/src/components/Global/Cookies/index.stories.js +16 -10
  24. package/src/components/Global/Cookies/index.vue +280 -243
  25. package/src/components/Global/Cookies/styles.scss +54 -54
  26. package/src/components/Global/DirectoryFilters/SingleTaxonomy/index.vue +50 -133
  27. package/src/components/Global/GlobalNotice/index.vue +79 -100
  28. package/src/components/Global/SocialShare/index.vue +1 -1
  29. package/src/components/Global/Strip/index.vue +1 -1
  30. package/src/components/Paragraphs/Accordion/AccordionItem/index.vue +8 -4
  31. package/src/components/Paragraphs/Accordion/StepperItem/index.vue +23 -23
  32. package/src/components/Paragraphs/Accordion/index.stories.js +21 -18
  33. package/src/components/Paragraphs/Accordion/index.vue +52 -48
  34. package/src/components/Paragraphs/BrowseContent/index.vue +1 -1
  35. package/src/components/Paragraphs/BrowseContent/setup.vue +284 -0
  36. package/src/components/Paragraphs/Chart/Constants.js +485 -485
  37. package/src/components/Paragraphs/Chart/index.vue +232 -241
  38. package/src/components/Paragraphs/Directory/Records/HSCP/index.stories.js +33 -0
  39. package/src/components/Paragraphs/Directory/Records/HSCP/index.vue +334 -0
  40. package/src/components/Paragraphs/Directory/Records/index.vue +63 -27
  41. package/src/components/Paragraphs/Directory/Records/styles.scss +1 -0
  42. package/src/components/Paragraphs/Directory/constants.js +23 -5
  43. package/src/components/Paragraphs/Directory/index.vue +14 -14
  44. package/src/components/Paragraphs/ListGroup/index.vue +5 -1
  45. package/src/components/Paragraphs/ScrollSpy/index.vue +23 -14
  46. package/src/components/Paragraphs/SelectableCards/index.vue +15 -12
  47. package/src/components/Paragraphs/TabbedCards/index.vue +13 -14
  48. package/src/components/Paragraphs/Tabs/index.vue +19 -17
  49. package/src/components/Paragraphs/TextMedia/MediaTypes/Video/index.vue +9 -9
  50. package/src/components/Paragraphs/TextMedia/index.vue +20 -16
  51. package/src/components/Paragraphs/VideoGrid/index.stories.js +43 -19
  52. package/src/components/Paragraphs/VideoGrid/index.vue +13 -13
  53. package/src/components/Paragraphs/Webform/index.stories.js +82 -69
  54. package/src/components/SubComponents/CardGroup/index.vue +5 -1
  55. package/src/components/SubComponents/FormAddressPostcode/index.vue +35 -37
  56. package/src/components/SubComponents/FormInstance/components/handler/index.vue +25 -29
  57. package/src/components/SubComponents/FormInstance/components/renderer/index.vue +63 -28
  58. package/src/components/SubComponents/FormInstance/models/overrides/file.js +33 -40
  59. package/src/components/SubComponents/FormInstance/services/form-submit-parser.js +22 -15
  60. package/src/components/SubComponents/FormInstance/services/registry-factory.js +1 -1
  61. package/src/components/SubComponents/FormInstance/stories/fileupload.stories.js +57 -0
  62. package/src/components/SubComponents/FormInstance/stories/mocks/fileupload.json +25 -0
  63. package/src/components/SubComponents/FormInstance/style.scss +2 -2
  64. package/src/components/SubComponents/FormInstance/tests/address.test.js +4 -4
  65. package/src/components/SubComponents/FormInstance/tests/checkboxes.test.js +7 -7
  66. package/src/components/SubComponents/FormInstance/tests/customcomposite.test.js +15 -15
  67. package/src/components/SubComponents/FormInstance/tests/date.test.js +8 -8
  68. package/src/components/SubComponents/FormInstance/tests/form-test-utils.js +9 -9
  69. package/src/components/SubComponents/FormInstance/tests/multiple.test.js +13 -13
  70. package/src/components/SubComponents/FormInstance/tests/rule-visible.test.js +120 -120
  71. package/src/components/SubComponents/FormInstance/tests/scale.test.js +6 -6
  72. package/src/components/SubComponents/FormInstance/tests/url.test.js +13 -10
  73. package/src/components/SubComponents/Pagination/index.vue +19 -18
  74. package/src/components/SubComponents/ResourceGroup/index.vue +5 -1
  75. package/src/components/SubComponents/Search/SearchListing/index.vue +20 -20
  76. package/src/components/SubComponents/Search/index.vue +35 -33
  77. package/src/components/SubComponents/VideoThumbnail/index.vue +48 -133
  78. package/src/includes/scss/vars/src/colors.module.scss +28 -1
  79. package/src/index.js +21 -3
  80. package/src/main.js +2 -10
  81. package/src/mock/carousel-items.js +71 -46
@@ -0,0 +1,334 @@
1
+ <template>
2
+ <div class="paragraph--directory__records--hscp">
3
+ <container>
4
+ <!-- Main details -->
5
+ <row>
6
+ <column class="title">
7
+ <a href="javascript:void(0)" @click="this.visible = !this.visible">
8
+ {{ item.title }}
9
+ </a>
10
+ </column>
11
+ <column class="address">
12
+ <a target="_blank" :href="gMapLink">
13
+ {{ item.fullAddress }}
14
+ </a>
15
+ </column>
16
+ <column class="contact">
17
+ <div class="label">Email</div>
18
+ <a target="_blank" :href="`mailto:${item.email}`"><span class="sr-only visually-hidden">Email address</span>
19
+ {{ item.email }}
20
+ </a>
21
+ </column>
22
+ <column class="contact">
23
+ <div class="label">Website</div>
24
+ <a target="_blank" :href="`${item.website}`"><span class="sr-only visually-hidden">Website address</span>
25
+ {{ item.website }}
26
+ </a>
27
+ </column>
28
+ <column class="contact">
29
+ <div class="label">Phone</div>
30
+ <a :href="`tel:${item.tollfreephone || item.workphone}`"><span class="sr-only visually-hidden">Phone number</span>
31
+ {{ item.tollfreePhone || item.workPhone }}
32
+ </a>
33
+ </column>
34
+ <column class="hscp-caret" sm="1">
35
+ <a v-if="visible" href="javascript:void(0)" @click="this.visible = false">
36
+ <img
37
+ style="float: right;"
38
+ :src="CaretUp"
39
+ height="12"
40
+ width="17"
41
+ alt="Expand Detail">
42
+ </a>
43
+ <a v-if="!visible" href="javascript:void(0)" @click="this.visible = true">
44
+ <img
45
+ style="float: right;"
46
+ :src="CaretDown"
47
+ height="12"
48
+ width="17"
49
+ alt="Expand Detail">
50
+ </a>
51
+ </column>
52
+ </row>
53
+ <!-- Additional Content -->
54
+ <template v-if="this.visible">
55
+ <row class="row-hscp-additional">
56
+ <column>
57
+ <h4>Contact Information</h4>
58
+ </column>
59
+ </row>
60
+ <row>
61
+ <column sm="3" class="label">
62
+ Contact
63
+ </column>
64
+ <column sm="3">
65
+ {{item.contact1}}
66
+ </column>
67
+ <column sm="3" class="label">
68
+ Contact
69
+ </column>
70
+ <column sm="3">
71
+ {{item.contact2}}
72
+ </column>
73
+ </row>
74
+ <row>
75
+ <column sm="3" class="label">
76
+ Phone
77
+ </column>
78
+ <column sm="3">
79
+ {{item.phone1}}
80
+ </column>
81
+ <column sm="3" class="label">
82
+ Phone
83
+ </column>
84
+ <column sm="3">
85
+ {{item.phone2}}
86
+ </column>
87
+ </row>
88
+ <row>
89
+ <column sm="3" class="label">
90
+ Email
91
+ </column>
92
+ <column sm="3">
93
+ {{item.email1}}
94
+ </column>
95
+ <column sm="3" class="label">
96
+ Email
97
+ </column>
98
+ <column sm="3">
99
+ {{item.email2}}
100
+ </column>
101
+ </row>
102
+ <row class="row-hscp-additional">
103
+ <column>
104
+ <h4>Training Venue Locations</h4>
105
+ </column>
106
+ </row>
107
+ <row>
108
+ <column>
109
+ <ul>
110
+ <li v-for="(venue) in item.trainingVenues" :key="venue.id">
111
+ {{venue}}
112
+ </li>
113
+ </ul>
114
+ </column>
115
+ </row>
116
+ <row class="row-hscp-additional">
117
+ <column>
118
+ <h4>Training Courses</h4>
119
+ </column>
120
+ </row>
121
+ <row>
122
+ <column>
123
+ <ul>
124
+ <li v-for="(course) in item.courses" :key="course.id">
125
+ {{course}}
126
+ </li>
127
+ </ul>
128
+ </column>
129
+ </row>
130
+ </template>
131
+ </container>
132
+ </div>
133
+ </template>
134
+ <script>
135
+ import Container from '../../../../Containers/Container/index.vue'
136
+ import Row from '../../../../Containers/Row/index.vue'
137
+ import Column from '../../../../Containers/Column/index.vue'
138
+ import CaretUp from './../../../../../assets/icons/caret-up.svg?url'
139
+ import CaretDown from './../../../../../assets/icons/caret-down.svg?url'
140
+
141
+ export default {
142
+ components: {
143
+ Container,
144
+ Row,
145
+ Column
146
+ },
147
+ props: {
148
+ item: {
149
+ type: Object,
150
+ required: true
151
+ }
152
+ },
153
+ data() {
154
+ return {
155
+ visible: false,
156
+ CaretUp,
157
+ CaretDown,
158
+ }
159
+ },
160
+ computed: {
161
+ gMapLink() {
162
+ return `https://google.com/maps?q=${this.item.title}%20${this.item.fullAddress}`
163
+ },
164
+ },
165
+ methods: {
166
+ handleClick(title) {
167
+ this.visible = !this.visible
168
+ if (this.$gtm) {
169
+ if (this.visible) {
170
+ this.$gtm.push({ event: 'custom.search.prs.open', title })
171
+ } else {
172
+ this.$gtm.push({
173
+ event: 'custom.search.prs.close',
174
+ title
175
+ })
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ </script>
182
+
183
+ <style lang="scss" scoped>
184
+ @import '../styles.scss';
185
+
186
+ .row-hscp-additional {
187
+ margin-top: 20px;
188
+ }
189
+
190
+ .hscp-caret {
191
+ justify-content: end;
192
+ align-content: end;
193
+ border-radius: 0px;
194
+ }
195
+ .paragraph--directory__records--hscp {
196
+
197
+ a {
198
+ color: $black;
199
+ text-decoration: none;
200
+ }
201
+ a:hover {
202
+ text-decoration: underline;
203
+ }
204
+ a:focus {
205
+ text-decoration: underline;
206
+ }
207
+
208
+ .name {
209
+ font-size: 1rem;
210
+ color: $black;
211
+ font-weight: 700;
212
+ }
213
+ .address {
214
+ font-size: 15px;
215
+ a {
216
+ color: inherit;
217
+ text-decoration: none;
218
+ }
219
+ a:hover {
220
+ text-decoration: underline;
221
+ }
222
+ a:focus {
223
+ text-decoration: underline;
224
+ }
225
+ }
226
+ .phone {
227
+ a {
228
+ color: inherit;
229
+ }
230
+ }
231
+ .label {
232
+ font-size: 15px;
233
+ font-weight: bold;
234
+ }
235
+ }
236
+ .paragraph--directory.hscp-filters {
237
+ .search {
238
+ color: $black;
239
+ border: 1px solid $gray;
240
+ border-radius: 8px;
241
+ padding: 10px 12px;
242
+ height: 42px;
243
+ background-repeat: no-repeat;
244
+ background-position: 96% 12px;
245
+ margin-bottom: 16px;
246
+ transition: none;
247
+ }
248
+ select {
249
+ -moz-appearance: none; /* Firefox */
250
+ -webkit-appearance: none; /* Safari and Chrome */
251
+ appearance: none;
252
+ height: 42px;
253
+ border-radius: 8px;
254
+ padding: 10px 12px;
255
+ width: 100%;
256
+ border: 1px solid $gray;
257
+ background-image: url('@worksafevictoria/wcl7.5/src/assets/icons/caret-down.svg');
258
+ background-position: 95% 50%;
259
+ background-repeat: no-repeat;
260
+ text-transform: capitalise;
261
+ }
262
+ .grid-column {
263
+ display: inline-block;
264
+ width: 25%;
265
+
266
+ @media (max-width: 767px) {
267
+ width: 50%;
268
+ }
269
+
270
+ @media (max-width: 539px) {
271
+ display: block;
272
+ width: 100%;
273
+ float: none;
274
+ margin-bottom: 16px;
275
+ }
276
+ }
277
+ .right {
278
+ float: right;
279
+ position: relative;
280
+ }
281
+
282
+ ul.records {
283
+ padding: 0;
284
+ margin: 0;
285
+
286
+ li {
287
+ text-align: left;
288
+ display: block;
289
+ width: 100%;
290
+ background: $white;
291
+ color: $black;
292
+ margin-bottom: 32px;
293
+ border: 1px solid $gray;
294
+ border-radius: 12px;
295
+ font-size: 14px;
296
+ padding: 16px;
297
+
298
+ .name {
299
+ font-size: 1rem;
300
+ color: $black;
301
+ font-weight: 700;
302
+ }
303
+ .address {
304
+ font-size: 15px;
305
+ a {
306
+ color: inherit;
307
+ }
308
+ }
309
+ .phone {
310
+ a {
311
+ color: inherit;
312
+ }
313
+ .labl {
314
+ font-size: 15px;
315
+ font-weight: bold;
316
+ }
317
+ }
318
+
319
+ @media (max-width: 767px) {
320
+ .name,
321
+ .address,
322
+ .phone {
323
+ margin-bottom: 5px;
324
+ width: 100%;
325
+ }
326
+ }
327
+ .pagination-container {
328
+ text-align: center;
329
+ }
330
+ }
331
+ }
332
+ }
333
+ </style>
334
+
@@ -8,6 +8,7 @@
8
8
  :item="item"
9
9
  :location="baseLocation"
10
10
  />
11
+ <hscp-record v-if="item.type === 'hscp'" :key="index" :item="item" />
11
12
  <cj-record v-if="item.type === 'cj'" :key="index" :item="item" />
12
13
  </template>
13
14
  </div>
@@ -16,26 +17,28 @@
16
17
  import PrsRecord from './PRS/index.vue'
17
18
  import IspRecord from './ISP/index.vue'
18
19
  import CjRecord from './CJ/index.vue'
20
+ import HscpRecord from './HSCP/index.vue'
19
21
 
20
22
  export default {
21
23
  components: {
22
24
  PrsRecord,
23
25
  IspRecord,
24
- CjRecord
26
+ CjRecord,
27
+ HscpRecord,
25
28
  },
26
29
  props: {
27
30
  items: {
28
31
  type: Array,
29
- required: true
32
+ required: true,
30
33
  },
31
34
  taxonomies: {
32
35
  type: Array,
33
- required: true
36
+ required: true,
34
37
  },
35
38
  baseLocation: {
36
39
  type: [Object, Boolean],
37
- default: false
38
- }
40
+ default: false,
41
+ },
39
42
  },
40
43
  computed: {
41
44
  flatRecords() {
@@ -66,13 +69,15 @@ export default {
66
69
  field_prs_datepublished,
67
70
  attachmentFormatted,
68
71
  file_src_root,
69
- file_src
70
- } = {}
71
- } = {}
72
+ file_src,
73
+ } = {},
74
+ } = {},
72
75
  } = record
73
76
 
74
77
  if (record_attachment !== undefined) {
75
- file_src_root = process.env.CONTENT_API_URL
78
+ file_src_root = this.$config
79
+ ? this.$config.public.apiURL
80
+ : process.env.CONTENT_API_URL
76
81
  file_src = file_src_root + record_attachment
77
82
  attachmentFormatted = record_attachment
78
83
  .split(/.*[\/|\\]/)[1]
@@ -101,17 +106,17 @@ export default {
101
106
  court: this.getTaxonomyLabelsByTid('Court', record_prs_court),
102
107
  category: this.getTaxonomyLabelsByTid(
103
108
  'Category',
104
- record_prs_category
109
+ record_prs_category,
105
110
  ),
106
111
  legislation: this.getTaxonomyLabelsByTid(
107
112
  'Legislation',
108
- record_prs_legislation
109
- )
113
+ record_prs_legislation,
114
+ ),
110
115
  // coram: this.getTaxonomyLabelsByTid(
111
116
  // 'record_prs_coram',
112
117
  // record_prs_coram
113
118
  // )
114
- }
119
+ },
115
120
  })
116
121
  }
117
122
  if (record.record_type === 'isp') {
@@ -121,9 +126,9 @@ export default {
121
126
  attributes: {
122
127
  title,
123
128
  field_location,
124
- isp: { suburb, postcode, phone_number, mobile_number } = {}
125
- } = {}
126
- } = {}
129
+ isp: { suburb, postcode, phone_number, mobile_number } = {},
130
+ } = {},
131
+ } = {},
127
132
  } = record
128
133
  flatRecords.push({
129
134
  id: record_id,
@@ -131,15 +136,46 @@ export default {
131
136
  title,
132
137
  contact: {
133
138
  mobile: mobile_number,
134
- phone: phone_number
139
+ phone: phone_number,
135
140
  },
136
141
  address: {
137
142
  suburb,
138
143
  postcode,
139
144
  map: {
140
- field_location
141
- }
142
- }
145
+ field_location,
146
+ },
147
+ },
148
+ })
149
+ }
150
+ if (record.record_type === 'hscp') {
151
+ let {
152
+ record_id,
153
+ data: {
154
+ attributes: {
155
+ title,
156
+ hscp: {
157
+ fulladdress,
158
+ workphone,
159
+ tollfreephone,
160
+ email,
161
+ website,
162
+ courses,
163
+ companyid,
164
+ } = {},
165
+ } = {},
166
+ } = {},
167
+ } = record
168
+ flatRecords.push({
169
+ id: record_id,
170
+ type: 'hscp',
171
+ title,
172
+ fulladdress,
173
+ workphone,
174
+ tollfreephone,
175
+ email,
176
+ website,
177
+ courses,
178
+ companyid,
143
179
  })
144
180
  }
145
181
  if (record.record_type === 'cj') {
@@ -152,9 +188,9 @@ export default {
152
188
  data: {
153
189
  attributes: {
154
190
  field_cj_datejudgement,
155
- field_cj_datepublished
156
- } = {}
157
- } = {}
191
+ field_cj_datepublished,
192
+ } = {},
193
+ } = {},
158
194
  } = record
159
195
  flatRecords.push({
160
196
  id: record_id,
@@ -164,12 +200,12 @@ export default {
164
200
  appeal: record_cj_appeal,
165
201
  court: record_cj_court,
166
202
  judge: record_cj_judge,
167
- judgement: field_cj_datejudgement
203
+ judgement: field_cj_datejudgement,
168
204
  })
169
205
  }
170
206
  })
171
207
  return flatRecords
172
- }
208
+ },
173
209
  },
174
210
  methods: {
175
211
  getTaxonomyLabelsByTid(taxName, listOfIds) {
@@ -197,7 +233,7 @@ export default {
197
233
  }
198
234
  return foundTerms
199
235
  }
200
- }
201
- }
236
+ },
237
+ },
202
238
  }
203
239
  </script>
@@ -29,6 +29,7 @@
29
29
  font-size: 16px;
30
30
 
31
31
  &--isp,
32
+ &--hscp,
32
33
  &--cj {
33
34
  @include defaultStyle();
34
35
  @include itemStyle();
@@ -22,6 +22,29 @@ export const DIR_CONFIG = {
22
22
  }
23
23
  ]
24
24
  },
25
+ hscp: {
26
+ taxonomies: [
27
+ {
28
+ name: 'Service Type',
29
+ id: 'hscp_services',
30
+ record_id: 'record_hscp_services'
31
+ }
32
+ ],
33
+ sorting: [
34
+ {
35
+ label: 'Name A-Z',
36
+ field: 'record_title',
37
+ order: 'asc',
38
+ type: 'az'
39
+ },
40
+ {
41
+ label: 'Name Z-A',
42
+ field: 'record_title',
43
+ order: 'desc',
44
+ type: 'az'
45
+ }
46
+ ]
47
+ },
25
48
  prs: {
26
49
  taxonomies: [
27
50
  {
@@ -39,11 +62,6 @@ export const DIR_CONFIG = {
39
62
  id: 'court',
40
63
  record_id: 'record_prs_court'
41
64
  }
42
- // {
43
- // name: 'Coram',
44
- // id: 'coram',
45
- // taxonomy_only: true
46
- // }
47
65
  ],
48
66
  sorting: [
49
67
  {
@@ -26,9 +26,9 @@
26
26
  <div v-else class="paragraph--directory__loading-container">
27
27
  <loading />
28
28
  </div>
29
- <div v-if="showPagination" align="center">
29
+ <div v-if="showPagination" align-items="center">
30
30
  <pagination
31
- align="center"
31
+ align-items="center"
32
32
  aria-label="Page navigation to load more records"
33
33
  :rows="qs.rows"
34
34
  :offset="qs.start"
@@ -39,7 +39,7 @@
39
39
  @pageClicked="loadByPageNumber($event)"
40
40
  />
41
41
  </div>
42
- <div v-if="noResultsFound" align="center">
42
+ <div v-if="noResultsFound" align-items="center">
43
43
  <div>
44
44
  <p>No records found, please try a different search.</p>
45
45
  </div>
@@ -169,9 +169,9 @@ export default {
169
169
  // Check for search
170
170
  //
171
171
  if (this.selectedFilters.query) {
172
- this.$set(this.qs, 'query', this.selectedFilters.query)
172
+ this.qs['query'] = this.selectedFilters.query
173
173
  } else {
174
- this.$delete(this.qs, 'query')
174
+ delete this.qs['query']
175
175
  }
176
176
  //
177
177
  // Sort by Date and AZ
@@ -193,7 +193,7 @@ export default {
193
193
  Object.keys(this.selectedFilters.filters).forEach((filterName) => {
194
194
  if (Array.isArray(this.selectedFilters.filters[filterName])) {
195
195
  if (this.selectedFilters.filters[filterName]) {
196
- this.$set(this.qs, filterName, [])
196
+ this.qs[filterName] = []
197
197
  this.selectedFilters.filters[filterName].forEach((item) => {
198
198
  if (item.tid) {
199
199
  this.qs[filterName].push(item.tid)
@@ -208,11 +208,11 @@ export default {
208
208
  //
209
209
  if (this.selectedFilters.location?.location) {
210
210
  this.qs.sort = 'distance'
211
- this.$set(this.qs, 'lat', this.selectedFilters.location.location.lat)
212
- this.$set(this.qs, 'lon', this.selectedFilters.location.location.lng)
211
+ this.qs['lat'] = this.selectedFilters.location.location.lat
212
+ this.qs['lon'] = this.selectedFilters.location.location.lng
213
213
  } else {
214
- this.$delete(this.qs, 'lat')
215
- this.$delete(this.qs, 'lon')
214
+ delete this.qs['lat']
215
+ delete this.qs['lon']
216
216
  }
217
217
  },
218
218
  },
@@ -267,18 +267,18 @@ export default {
267
267
  }
268
268
  },
269
269
  updateFilters(opts) {
270
- this.$set(this.selectedFilters, 'filters', opts)
270
+ this.selectedFilters['filters'] = opts
271
271
  },
272
272
  updateSort(opts) {
273
- this.$set(this.selectedFilters, 'sorting', opts)
273
+ this.selectedFilters['sorting'] = opts
274
274
  },
275
275
  updateSearch(opts) {
276
- this.$set(this.selectedFilters, 'query', opts)
276
+ this.selectedFilters['query'] = opts
277
277
  },
278
278
  updateLocation(opts) {
279
279
  this.filters.sorting[0].terms[0].title = 'Nearest'
280
280
  this.filters.sorting[0].terms[1].title = 'Farthest'
281
- this.$set(this.selectedFilters, 'location', opts)
281
+ this.selectedFilters['location'] = opts
282
282
  },
283
283
  loadMore() {
284
284
  this.qs.start += this.qs.rows
@@ -136,7 +136,11 @@ export default {
136
136
  },
137
137
  selectedCard(card) {
138
138
  // Some custom logic for gov caretaker logic
139
- if (process.env.CARETAKER && process.env.CARETAKER === 'true') {
139
+ if (
140
+ (this.$config
141
+ ? this.$config.public.caretaker
142
+ : process.env.CARETAKER) === 'true'
143
+ ) {
140
144
  if (!isGovSite(card?.selectedCard?.link)) {
141
145
  // this.$store.commit('page/SET_CARETAKER_REF', 'list-group')
142
146
  // this.$root.$emit('caretaker-open', card?.selectedCard?.link)