1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4616],{7849:(t,e,o)=>{o.r(e),o.d(e,{default:()=>c});o(5374),o(3238),o(5849),o(266),o(5610),o(7460),o(3352),o(938),o(2077),o(1203),o(2081),o(5822),o(5163),o(5623),o(911),o(3512),o(2482),o(6252),o(9785),o(2571),o(5901),o(8010),o(252),o(4009),o(2699),o(2410),o(2189),o(1047),o(5769),o(4078),o(3023);function r(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,l=!0,s=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return l=t.done,t},e:function(t){s=!0,n=t},f:function(){try{l||null==o.return||o.return()}finally{if(s)throw n}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,r=new Array(e);o<e;o++)r[o]=t[o];return r}function i(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function n(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?i(Object(o),!0).forEach((function(e){l(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function l(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function s(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}const c=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e){this.$el=e,this.componentRoot=this.resolveComponentRoot(e),this.resizeTimer=null;try{this.normalizeMarkup()}catch(t){console.error("[DacActionCards] normalizeMarkup failed",t)}this.cards=this.componentRoot.querySelectorAll(".action-card");try{this.applyThemeFromData(),this.reorderAllCards()}catch(t){console.error("[DacActionCards] applyThemeFromData failed",t)}this.bindResize()}}var e,o,a;return e=t,o=[{key:"resolveComponentRoot",value:function(t){return t.classList.contains("dac-action-cards-component")?t:t.closest(".dac-action-cards-component")||t}},{key:"normalizeMarkup",value:function(){this.componentRoot.querySelectorAll(".action-card").forEach((function(t){var e=t,o="",r="";if("A"===e.tagName){o=(e.getAttribute("href")||"").trim(),r=e.getAttribute("target")||"";var a=document.createElement("div");for(Array.from(e.attributes).forEach((function(t){"href"!==t.name&&"target"!==t.name&&"role"!==t.name&&"tabindex"!==t.name&&"data-card-href"!==t.name&&"data-dac-action-card-click-bound"!==t.name&&a.setAttribute(t.name,t.value)}));e.firstChild;)a.appendChild(e.firstChild);e.parentNode.replaceChild(a,e),e=a}else o=(e.getAttribute("href")||e.dataset.cardHref||"").trim();if(e.removeAttribute("href"),e.removeAttribute("role"),e.removeAttribute("tabindex"),delete e.dataset.cardHref,delete e.dataset.dacActionCardClickBound,e.style.cursor="default",!e.dataset.dacCardClickSanitized){var i=e.cloneNode(!0);i.dataset.dacCardClickSanitized="true",e.parentNode.replaceChild(i,e),e=i}e.dataset.dacCtaOnlyClickBound||(e.dataset.dacCtaOnlyClickBound="true",e.addEventListener("click",(function(t){t.target.closest("a.cta-wrapper, .cta-wrapper, a[href]")||(t.preventDefault(),t.stopPropagation())})),e.addEventListener("keydown",(function(t){"Enter"!==t.key&&" "!==t.key||t.target.closest("a.cta-wrapper, .cta-wrapper, a[href]")||(t.preventDefault(),t.stopPropagation())}))),e.querySelectorAll(".cta-wrapper").forEach((function(t,e){var a=t.querySelector("a[href]"),i=(t.getAttribute("href")||(null==a?void 0:a.getAttribute("href"))||(0===e?o:"")||"").trim();if(i)if("A"===t.tagName)t.getAttribute("href")||t.setAttribute("href",i);else{var n=document.createElement("a");
1for(Array.from(t.attributes).forEach((function(t){n.setAttribute(t.name,t.value)})),n.setAttribute("href",i),r&&"|Custom"!==r&&n.setAttribute("target",r);t.firstChild;)n.appendChild(t.firstChild);t.parentNode.replaceChild(n,t)}}))}))}},{key:"normalizeLayoutType",value:function(t){var e=String(t||"").trim().toLowerCase();return"banner"===e||"slim"===e||"no-hero"===e||"nohero"===e?"banner":"split"}},{key:"normalizeWidthMode",value:function(t,e){var o=String(t||"").trim().toLowerCase(),r=String(e||"").trim().toLowerCase();return"full"===o||"fullwidth"===o||"full-width"===o||"full width"===o||"fullwidth"===r||"full-width"===r||"full width"===r||"full"===r?"full":"contained"}},{key:"normalizeLayout",value:function(t,e){return this.normalizeLayoutType(t)}},{key:"normalizeTheme",value:function(t){var e=String(t||"").trim().toLowerCase();return"standard"===e||"fullwidth"===e||"full-width"===e||"full width"===e||"full"===e||"split"===e?"grey":"grey"===e||"charcoal"===e||"lychee"===e?e:"grey"}},{key:"normalizeImagePosition",value:function(t){return"left"===String(t||"").trim().toLowerCase()?"left":"right"}},{key:"normalizeSplit",value:function(t){var e=String(t||"").trim().toLowerCase();if("60"===e||e.startsWith("60/"))return"60";if("50"===e||e.startsWith("50/"))return"50";var o=e.match(/^(\d+)\s*\/\s*(\d+)$/);if(o)return parseInt(o[1],10)>=55?"60":"50";var r=parseInt(e,10);return!Number.isNaN(r)&&r>=60?"60":!Number.isNaN(r)&&r>0&&r<55?"50":"60"}},{key:"normalizeBool",value:function(t){return"true"===String(t||"").trim().toLowerCase()}},{key:"normalizeImage",value:function(t){var e=String(t||"").trim().toLowerCase();return"no-image"===e||"noimage"===e||"false"===e||"none"===e?"no-image":"with-image"}},{key:"clearFedClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.componentRoot;t.classList.remove("layout-contained","layout-full","layout-banner","image-left","image-right","split-50","split-60","theme-grey","theme-charcoal","theme-lychee","no-image","image-overlay","show-two-buttons","button-mode-light","button-mode-dark"),Array.from(t.classList).forEach((function(e){e.startsWith("theme-")&&!["theme-grey","theme-charcoal","theme-lychee"].includes(e)&&t.classList.remove(e)}))}},{key:"getOverlayImageSource",value:function(t){var e;if(this.componentRoot.hasAttribute("data-overlay-image")||Object.prototype.hasOwnProperty.call(this.getRawDataset(),"overlayImage"))return(t.overlayImage||"").trim()||null;var o=(t.overlayImage||"").trim();if(o)return o;var r=this.componentRoot.querySelector(".action-card"),a=null==r?void 0:r.querySelector(".image-box img, .image-frame img");return(null==a||null===(e=a.getAttribute("src"))||void 0===e?void 0:e.trim())||null}},{key:"getRawDataset",value:function(){return n(n({},this.$el.dataset),this.componentRoot.dataset)}},{key:"readDataValue",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=this.getRawDataset(),a=r(e);try{for(a.s();!(t=a.n()).done;){var i=t.value,n=null==o?void 0:o[i];if(void 0!==n&&""!==String(n).trim())return String(n).trim();var l=i.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase(),s=this.componentRoot.getAttribute("data-".concat(l));if(null!=s&&""!==String(s).trim())return String(s).trim()}}catch(t){a.e(t)}finally{a.f()}return""}},{key:"normalizeOverlayOpacity",value:function(t){if(null==t||""===String(t).trim())return 0;var e=String(t).trim().replace("%",""),o=parseFloat(e);return Number.isNaN(o)?0:(o>1&&o<=100&&(o/=100),Math.max(0,Math.min(1,o)))}},{key:"resolveImageOverlay",value:function(t,e){var o=this.getRawDataset();return"imageOverlay"in o&&void 0!==o.imageOverlay&&""!==String(o.imageOverlay).trim()?this.normalizeBool(o.imageOverlay):!!t&&!!this.getOverlayImageSource(e)}},{key:"getConfig",value:function(){var t=this.getRawDataset();return{layout:this.normalizeLayoutType(t.layout),widthMode:this.normalizeWidthMode(t.layout,t.theme),theme:this.normalizeTheme(t.theme),imagePosition:this.normalizeImagePosition(t.imagePosition),image:this.normalizeImage(t.image),showTwoButtons:this.normalizeBool(t.showTwoButtons),buttonMode:String(t.buttonMode||"dark").trim().toLowerCase(),split:this.normalizeSplit(t.split),contentBoxColour:t.contentBoxColour,textColour:t.textColour,overlayOpacity:this.readDataValue(["overlayOpacity","backgroundOpacity","imageOverlayOpacity"]),overlayImage:this.readDataValue(["overlayImage","backgroundImage"])}}},{key:"applyThemeFromData",value:function(){var t=this.getConfig();
1this.clearFedClasses();var e="banner"===t.layout,o="full"===t.widthMode,r=this.resolveImageOverlay(e,t);e&&this.componentRoot.classList.add("layout-banner"),this.componentRoot.classList.add(o?"layout-full":"layout-contained"),this.componentRoot.classList.add("left"===t.imagePosition?"image-left":"image-right"),this.componentRoot.classList.toggle("no-image",e||"no-image"===t.image),this.componentRoot.classList.toggle("image-overlay",e&&r),this.componentRoot.classList.toggle("show-two-buttons",t.showTwoButtons);var a=e?"split-50":{50:"split-50",60:"split-60"}[t.split]||"split-60";if(this.componentRoot.classList.add(a),this.componentRoot.classList.add("theme-".concat(t.theme)),!e){var i="50"!==t.split;this.componentRoot.style.setProperty("--split-content",i?"3fr":"1fr"),this.componentRoot.style.setProperty("--split-media",i?"2fr":"1fr"),this.componentRoot.style.setProperty("--split-content-pct",i?"60%":"50%"),this.componentRoot.style.setProperty("--split-media-pct",i?"40%":"50%"),this.componentRoot.style.setProperty("--split-content-max",i?"840px":"700px")}if(e||(this.componentRoot.setAttribute("data-image-position","left"===t.imagePosition?"Left":"Right"),this.componentRoot.setAttribute("data-split","50"===t.split?"50/50":"60/40")),this.componentRoot.setAttribute("data-resolved-layout",e?"banner":"split"),this.componentRoot.setAttribute("data-resolved-width",o?"full":"contained"),this.componentRoot.setAttribute("data-resolved-image-position",e?"none":t.imagePosition),this.componentRoot.setAttribute("data-resolved-split",e?"n/a":"50"===t.split?"50/50":"60/40"),e&&!r?this.componentRoot.style.setProperty("--bg-card",t.contentBoxColour&&"#f2f2f2"!==t.contentBoxColour.toLowerCase()?t.contentBoxColour:"#FFFFFF"):t.contentBoxColour&&this.componentRoot.style.setProperty("--bg-card",t.contentBoxColour),r){var n=this.getOverlayImageSource(t);n?this.componentRoot.style.setProperty("--image-overlay-image",'url("'.concat(n,'")')):this.componentRoot.style.removeProperty("--image-overlay-image")}else this.componentRoot.style.removeProperty("--image-overlay-image");var l=this.normalizeOverlayOpacity(t.overlayOpacity);this.componentRoot.style.setProperty("--image-overlay-opacity",String(l)),this.componentRoot.setAttribute("data-overlay-opacity",String(Math.round(100*l))),this.applyButtonMode(t.buttonMode),this.componentRoot.classList.add("light"===t.buttonMode?"button-mode-light":"button-mode-dark"),t.textColour&&(this.componentRoot.style.setProperty("--text-main",t.textColour),this.componentRoot.style.setProperty("--heading-color",t.textColour),"light"!==t.buttonMode&&this.componentRoot.style.setProperty("--cta-text-color",t.textColour)),this.$el!==this.componentRoot&&this.clearFedClasses(this.$el)}},{key:"applyButtonMode",value:function(t){var e=this.componentRoot,o="light"===t;e.style.setProperty("--cta-circle-bg",o?"#FFFFFF":"#DF4661"),e.style.setProperty("--cta-circle-icon",o?"#DF4661":"#FFFFFF"),e.style.setProperty("--cta-text-color",o?"#FFFFFF":"#4A4948")}},{key:"getEffectiveImagePosition",value:function(){if(window.matchMedia("(max-width: 900px)").matches)return"image-left";var t=this.normalizeImagePosition(this.readDataValue(["imagePosition"])||this.componentRoot.getAttribute("data-image-position")||"");return"left"===t?"image-left":"right"===t?"image-right":this.componentRoot.classList.contains("image-left")?"image-left":"image-right"}},{key:"reorderCard",value:function(t){var e=t.querySelector(".content-box"),o=t.querySelector(".image-box");if(e&&o&&!this.componentRoot.classList.contains("no-image")){var r=this.getEffectiveImagePosition();"image-left"!==r&&"image-top"!==r?"image-right"===r&&t.lastElementChild!==o&&t.appendChild(o):t.firstElementChild!==o&&t.insertBefore(o,e)}}},{key:"reorderAllCards",value:function(){var t=this;this.cards.forEach((function(e){return t.reorderCard(e)}))}},{key:"bindResize",value:function(){var t=this;window.addEventListener("resize",(function(){window.clearTimeout(t.resizeTimer),t.resizeTimer=window.setTimeout((function(){return t.reorderAllCards()}),120)}))}}],o&&s(e.prototype,o),a&&s(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.