From 532c5ca8ac6de777f74737a4dc8250a638e65b3f Mon Sep 17 00:00:00 2001 From: Kamil Podgorski Date: Fri, 25 Oct 2024 13:47:00 +0200 Subject: [PATCH] feat: override govuk-frontend footer --- dist/assets/javascripts/development.bundle.js | 2 +- .../assets/javascripts/dvsa-manuals.bundle.js | 2 +- .../javascripts/dvsa-mts-legacy.bundle.js | 2 +- dist/assets/javascripts/dvsa-mts.bundle.js | 2 +- dist/assets/javascripts/dvsa.bundle.js | 2 +- dist/assets/javascripts/vendor.bundle.js | 2 +- dist/assets/stylesheets/development.css | 2 +- dist/assets/stylesheets/styles.css | 4 +-- .../govuk-frontend/overrides/_overrides.scss | 28 +++++++++++-------- 9 files changed, 26 insertions(+), 20 deletions(-) diff --git a/dist/assets/javascripts/development.bundle.js b/dist/assets/javascripts/development.bundle.js index cca881e7..2431ff88 100644 --- a/dist/assets/javascripts/development.bundle.js +++ b/dist/assets/javascripts/development.bundle.js @@ -2,7 +2,7 @@ * * Name: dvsa-front-end/development * Version: 1.8.2 - * Timestamp: October 25th 2024, 12:20:56 pm + * Timestamp: October 25th 2024, 1:41:33 pm * Source: https://github.com/dvsa/front-end * */!function(){var e,t={2221:function(e){var t;window,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=37)}([function(e,t,n){var r=n(1),o=n(6),i=n(7),a=n(16),s=n(18),l="prototype",u=function(e,t,n){var c,d,p,f,h=e&u.F,v=e&u.G,g=e&u.S,m=e&u.P,y=e&u.B,b=v?r:g?r[t]||(r[t]={}):(r[t]||{})[l],_=v?o:o[t]||(o[t]={}),w=_[l]||(_[l]={});for(c in v&&(n=t),n)p=((d=!h&&b&&void 0!==b[c])?b:n)[c],f=y&&d?s(p,r):m&&"function"==typeof p?s(Function.call,p):p,b&&a(b,c,p,e&u.U),_[c]!=p&&i(_,c,f),m&&w[c]!=p&&(w[c]=p)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"h",(function(){return s})),n.d(t,"createElement",(function(){return s})),n.d(t,"cloneElement",(function(){return c})),n.d(t,"Component",(function(){return B})),n.d(t,"render",(function(){return L})),n.d(t,"rerender",(function(){return h})),n.d(t,"options",(function(){return o}));var r=function(){},o={},i=[],a=[];function s(e,t){var n,s,l,u,c=a;for(u=arguments.length;2l;)r(s,n=t[l++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var r=n(25),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(33),i=n(34)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(0),o=n(32)(2);r(r.P+r.F*!n(13)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(33)})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(14),n(36),n(31),n(35),n(30),n(55),n(58);var r=n(5),o=a(n(60)),i=a(n(61));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t=r;this.setState({query:s}),i||!l&&u&&c?o(s,(function(e){var n=0=u,I=this.props.showNoOptionsFound&&F&&k&&A&&N,B=i+"__wrapper",L=i+"__input",M=null!==E?" "+L+"--focused":"",j=this.props.showAllValues?" "+L+"--show-all-values":" "+L+"--default",H=i+"__dropdown-arrow-down",R=-1!==E&&null!==E,q=i+"__menu",z=q+"--"+a,D=q+"--"+(C||I?"visible":"hidden"),$=i+"__option",G=i+"__hint",V=this.templateInputValue(S[P]),U=V&&0===V.toLowerCase().indexOf(T.toLowerCase())&&O?T+V.substr(T.length):"",X=d&&U;return h&&"string"==typeof(e=_({className:H}))&&(e=(0,r.createElement)("div",{className:i+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,r.createElement)("div",{className:B,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":C?"true":"false"},(0,r.createElement)(o.default,{length:S.length,queryLength:T.length,minQueryLength:u,selectedOption:this.templateInputValue(S[P]),selectedOptionIndex:P,tQueryTooShort:g,tNoResults:m,tSelectedOption:y,tResults:b}),X&&(0,r.createElement)("span",null,(0,r.createElement)("input",{className:G,readonly:!0,tabIndex:"-1",value:U})),(0,r.createElement)("input",s({"aria-activedescendant":!!R&&l+"__option--"+E,"aria-owns":l+"__listbox",autoComplete:"off",className:""+L+M+j,id:l,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:c,placeholder:p,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"textbox",required:f,value:T})),e,(0,r.createElement)("ul",{className:q+" "+z+" "+D,onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:l+"__listbox",role:"listbox"},S.map((function(e,n){var o=(-1===E?P===n:E===n)&&null===x?" "+$+"--focused":"",i=n%2?" "+$+"--odd":"";return(0,r.createElement)("li",{"aria-selected":E===n,className:""+$+o+i,dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)},id:l+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1"})})),I&&(0,r.createElement)("li",{className:$+" "+$+"--no-results"},v())))},t}(r.Component);(t.default=f).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:i.default}},function(e,t,n){var r=n(9),o=n(53),i=n(28),a=n(26)("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n(15)("iframe"),r=i.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("