northants-design-system 1.3.2 → 1.3.4

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.
@@ -23193,17 +23193,17 @@ var GoogleMap = function (_a) {
23193
23193
  var title = _a.title, description = _a.description, iframe_html = _a.iframe_html, link_title = _a.link_title, link_url = _a.link_url, allowCookies = _a.allowCookies;
23194
23194
  var cookiesAccepted = wereCookiesAccepted(allowCookies);
23195
23195
  var _b = useState(false), notServer = _b[0], setNotServer = _b[1];
23196
- /* We extract the iframe source URL and check it actually goes to www.google.com/maps */
23196
+ /* We extract the iframe source URL and check it actually goes to www.google.com/maps or one.network*/
23197
23197
  var src_matches = iframe_html.match(/src="([^"]+)"/gi);
23198
- var embed_url = (src_matches === null || src_matches === void 0 ? void 0 : src_matches.length) == 1 ? src_matches[0].replace('src="', '') : '';
23198
+ var embed_url = (src_matches === null || src_matches === void 0 ? void 0 : src_matches.length) == 1 ? src_matches[0].replace('src="', '').replace('"', '') : '';
23199
23199
  if (embed_url) {
23200
- var map_matches = embed_url.match(/^https:\/\/www.google.com\/maps/gi);
23201
- embed_url = (map_matches === null || map_matches === void 0 ? void 0 : map_matches.length) == 1 ? embed_url : '';
23200
+ var acceptable_embedded_url_matches = embed_url.match(/^https:\/\/www.google.com\/maps|https:\/\/api-gb\.one\.network\/embedded\//gi);
23201
+ embed_url = (acceptable_embedded_url_matches === null || acceptable_embedded_url_matches === void 0 ? void 0 : acceptable_embedded_url_matches.length) == 1 ? embed_url : '';
23202
23202
  }
23203
- /* We also check the non-embed link goes to goo.gl/maps or www.google.com/maps */
23203
+ /* We also check the non-embed link goes to goo.gl/maps or www.google.com/maps or one.network*/
23204
23204
  if (link_url) {
23205
- var googl_matches = link_url.match(/^https:\/\/goo.gl\/maps|https:\/\/www.google.com\/maps|https:\/\/maps.app.goo.gl/gi);
23206
- link_url = (googl_matches === null || googl_matches === void 0 ? void 0 : googl_matches.length) == 1 ? link_url : '';
23205
+ var acceptable_non_embedded_url_matches = link_url.match(/^https:\/\/goo.gl\/maps|https:\/\/www.google.com\/maps|https:\/\/maps.app.goo.gl|https:\/\/one.network/gi);
23206
+ link_url = (acceptable_non_embedded_url_matches === null || acceptable_non_embedded_url_matches === void 0 ? void 0 : acceptable_non_embedded_url_matches.length) == 1 ? link_url : '';
23207
23207
  }
23208
23208
  useEffect(function () {
23209
23209
  setNotServer(true);
@@ -23359,9 +23359,9 @@ var ImageAndText = function (_a) {
23359
23359
 
23360
23360
  var CaseAppointmentType;
23361
23361
  (function (CaseAppointmentType) {
23362
- CaseAppointmentType["Hearing"] = "AP Inquest Hearing";
23363
- CaseAppointmentType["Opening"] = "AP Inquest Opening";
23364
- CaseAppointmentType["Writing"] = "AP Inquest In Writing";
23362
+ CaseAppointmentType["Hearing"] = "hearing";
23363
+ CaseAppointmentType["Opening"] = "opening";
23364
+ CaseAppointmentType["Writing"] = "writing";
23365
23365
  })(CaseAppointmentType || (CaseAppointmentType = {}));
23366
23366
 
23367
23367
  const Container$Q = styled.div`
@@ -23405,13 +23405,13 @@ const InquestDetails = styled.div`
23405
23405
  var InquestSchedule = function (_a) {
23406
23406
  var caseAppointments = _a.caseAppointments, title = _a.title, _b = _a.error, error = _b === void 0 ? false : _b;
23407
23407
  var hearings = caseAppointments.filter(function (appointment) {
23408
- return appointment.appointmentType === CaseAppointmentType.Hearing;
23408
+ return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Hearing);
23409
23409
  });
23410
23410
  var openings = caseAppointments.filter(function (appointment) {
23411
- return appointment.appointmentType === CaseAppointmentType.Opening;
23411
+ return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Opening);
23412
23412
  });
23413
23413
  var writings = caseAppointments.filter(function (appointment) {
23414
- return appointment.appointmentType === CaseAppointmentType.Writing;
23414
+ return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Writing);
23415
23415
  });
23416
23416
  var groupHearingsByDay = function (appointments) {
23417
23417
  return appointments.reduce(function (acc, inquest) {
@@ -25123,7 +25123,27 @@ const Container$C = styled.div`
25123
25123
  }
25124
25124
 
25125
25125
  #google_translate_element {
25126
- margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
25126
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
25127
+
25128
+ a {
25129
+ padding: 14px 0;
25130
+ display: inline-block;
25131
+
25132
+ &:hover {
25133
+ ${(props) => props.theme.linkStyles};
25134
+ }
25135
+ &:active {
25136
+ ${(props) => props.theme.linkStylesActive};
25137
+ }
25138
+ &:focus {
25139
+ ${(props) => props.theme.linkStylesFocus};
25140
+ }
25141
+ }
25142
+
25143
+ a::after {
25144
+ content: ' (opens in new window)';
25145
+ font-weight: normal;
25146
+ }
25127
25147
  }
25128
25148
  `;
25129
25149
 
@@ -25140,6 +25160,10 @@ var GoogleTranslate = function (_a) {
25140
25160
  pageLanguage: pageLanguage,
25141
25161
  autoDisplay: false,
25142
25162
  }, 'google_translate_element');
25163
+ var popupForm = document.getElementById('goog-gt-vt');
25164
+ if (popupForm) {
25165
+ popupForm.remove();
25166
+ }
25143
25167
  };
25144
25168
  useEffect(function () {
25145
25169
  var addScript = document.createElement('script');
@@ -28286,7 +28310,7 @@ var RateThisPage = function (_a) {
28286
28310
  },
28287
28311
  }, render: function (_a) {
28288
28312
  var _b = _a.field, onChange = _b.onChange; _b.onBlur; var value = _b.value; _b.ref;
28289
- return (React.createElement(Input$6, { id: "Email", name: "Email", value: value, placeholder: "", onChange: onChange, isErrored: errors.Email ? true : false, errorText: errors.Email ? errors.Email.message : null, isFullWidth: true }));
28313
+ return (React.createElement(Input$6, { id: "Email", name: "Email", value: value, placeholder: "", onChange: onChange, isErrored: errors.Email ? true : false, errorText: errors.Email ? errors.Email.message : null, isFullWidth: true, autocomplete: "email" }));
28290
28314
  } }))),
28291
28315
  React.createElement(Column, { small: "full", medium: "full", large: "full" },
28292
28316
  React.createElement("input", __assign$2({ type: "hidden" }, register('ReCaptcha'))),