"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[533],{82533:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var a=n(67294),i=n(67579),o=n(68480),l=n(47006);function r(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var c=r(a);"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self&&self;function s(e){var t={exports:{}};return e(t,t.exports),t.exports}var u=s((function(e,t){e.exports=function(e){var t="default"in e?e.default:e;function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?i(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function l(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],a=!0,i=!1,o=void 0;try{for(var l,r=e[Symbol.iterator]();!(a=(l=r.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(i)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function s(e){requestAnimationFrame((function(){requestAnimationFrame(e)}))}return function(n){var i=n.children,c=n.transition,u=n.style,d=n.render,f=n.elementType,p=void 0===f?"div":f,y=n.isOpen,g=n.collapseHeight,m=void 0===g?"0px":g,v=n.onInit,x=n.onChange,h=n.className,b=void 0===h?"collapse-css-transition":h,C=n.addState,_=n.noAnim,N=n.overflowOnExpanded,E=l(n,["children","transition","style","render","elementType","isOpen","collapseHeight","onInit","onChange","className","addState","noAnim","overflowOnExpanded"]),O=function(){return"0px"===m?"hidden":""},w=r(e.useReducer((function(e){return e+1}),0),2),P=(w[0],w[1]),j=e.useRef(),S=r(e.useState(0),2),L=S[0],I=S[1],T=e.useRef({collapse:y?"expanded":"collapsed",style:{height:y?"":m,visibility:y?"":O()}}).current;e.useEffect((function(){L&&V(x)}),[L]);var V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&(e.name,e(o({state:T.collapse,style:T.style},t)))};function z(){j.current&&(T.collapse="collapsed",T.style={height:m,visibility:O()},P(),setTimeout((function(){return I(Date.now)}),0))}function B(){j.current&&(T.collapse="expanded",T.style={height:"",visibility:""},P(),setTimeout((function(){return I(Date.now)}),0))}function M(){return"".concat(j.current.scrollHeight,"px")}var k="expanded"===T.collapse||"expanding"===T.collapse;!k&&y&&function(){if(j.current){if(_)return B();T.collapse="expanding",s((function(){j.current&&"expanding"===T.collapse&&(T.style={height:M(),visibility:""},I(Date.now))}))}}(),k&&!y&&function(){if(j.current){if(_)return z();T.collapse="collapsing",T.style={height:M(),visibility:""},P(),s((function(){j.current&&"collapsing"===T.collapse&&(T.style={height:m,visibility:""},I(Date.now))}))}}();var A=o({overflow:"expanded"===T.collapse&&N?"":"hidden",transition:c},u,{},T.style),D=p,H=e.useCallback((function(e){e&&(j.current=e,V(v,{node:e}))}),[p]),R=C?"".concat(b," --c-").concat(T.collapse):b;return t.createElement(D,a({ref:H,style:A,onTransitionEnd:function(e){var t=e.target,n=e.propertyName;if(t===j.current&&"height"===n){var a=t.style.height;switch(T.collapse,T.collapse){case"expanding":""===a||a===m||B();break;case"collapsing":""===a||a!==m||z()}}},className:R},E),"function"==typeof i?i(T.collapse):"function"==typeof d?d(T.collapse):i)}}(c.default)})),d=s((function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var l=n.apply(null,i);l&&e.push(l)}}else if("object"===o){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){e.push(i.toString());continue}for(var r in i)t.call(i,r)&&i[r]&&e.push(r)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()})),f=function(e){var t=e.isTryingToClose,n=e.handleClose,a=e.handleCancel,o=e.surface,l=e.confirmationContent;return c.default.createElement(c.default.Fragment,null,c.default.createElement("div",{"aria-hidden":t,className:"lxp-Position__absolute lxp-LegacyNotificationClosure__close-button"},c.default.createElement("button",{onClick:n,"aria-label":"Close"},c.default.createElement(i.Icon,{size:"s",styleVariant:"primary",iconName:"cross"}))),c.default.createElement("div",{"aria-hidden":!t,className:d({"lxp-Position__absolute lxp-LegacyNotificationClosure__confirmation":!0,"lxp-LegacyNotificationClosure__confirmation--show":t})},c.default.createElement(i.Surface,{background:o},c.default.createElement(i.Container,{horizontalPadding:"l",verticalPadding:"m"},c.default.createElement("div",{className:d("lxp-Container--flex","lxp-Container--align-center","lxp-Spacing__height--100","lxp-Spacing__width--100","lxp-LegacyNotificationClosure__confirmation__wrapper")},c.default.createElement(i.Heading,{isBold:!0,size:"s"},(null===l||void 0===l?void 0:l.text)?l.text:"Are you sure you want to hide this notification?"),c.default.createElement("div",{className:"lxp-LegacyNotificationClosure__confirmation__actions lxp-Container--flex"},c.default.createElement("button",{className:"lxp-Spacing__rightMargin_4 lxp-EE__font",onClick:n},(null===l||void 0===l?void 0:l.hideButtonContent)?null===l||void 0===l?void 0:l.hideButtonContent:c.default.createElement("div",{className:"lxp-Container--flex lxp-Container--align-center lxp-Container--flex-column"},c.default.createElement(i.Icon,{size:"s",styleVariant:"primary",iconName:"hide"}),c.default.createElement("span",{className:"Icon"},"Hide"))),c.default.createElement("button",{className:"lxp-Spacing__rightMargin_1 lxp-EE__font}",onClick:a},(null===l||void 0===l?void 0:l.cancelButtonContent)?null===l||void 0===l?void 0:l.cancelButtonContent:c.default.createElement("div",{className:"lxp-Container--flex lxp-Container--align-center lxp-Container--flex-column"},c.default.createElement(i.Icon,{size:"s",styleVariant:"primary",iconName:"cancel"}),c.default.createElement("span",{className:"Icon"},"Cancel")))))))))};f.displayName="LegacyNotificationClosure";var p=function(e){var t=e.heading,n=e.surface,a=void 0===n?"white":n,o=e.variant,r=e.inline,s=void 0!==r&&r,u=e.testId,f=e.headingLevel,p=function(e,t){return{info:{textColour:"default",iconName:"information",styleVariant:"secondary"},warning:{textColour:"default",iconName:"warning",styleVariant:"warning"},"warning-loop":{textColour:"default",iconName:"warning",styleVariant:"warning"},error:{textColour:"critical",iconName:"alert",styleVariant:"critical"},gift:{textColour:"default",iconName:"gift",styleVariant:"primary"},success:{textColour:"white"===t?"success":"default",iconName:"tick-circle",styleVariant:"success"}}[e]}(o,a),y=p.textColour,g=p.iconName,m=p.styleVariant;return c.default.createElement("div",{className:d("lxp-LegacyNotificationLabel","lxp-Spacing__leftPadding_4","lxp-Position--relative","lxp-Container--flex-column","lxp-Container--justify-start",s?"lxp-Container--flex--inline":"lxp-Container--flex"),"data-testid":u},c.default.createElement("span",{className:"lxp-Position__absolute lxp-Position__left_0"},"warning"===o?c.default.createElement(l.LegacyWarningIcon,null):c.default.createElement(i.Icon,{size:"s",styleVariant:m,iconName:g})),c.default.createElement(i.Text,{styleVariant:y,isInline:!0,elementType:"span"},c.default.createElement(i.Heading,{size:"s",isBold:!0,level:f},t)))};p.displayName="LegacyNotificationLabel";var y=function(e){var t,n,a=e.isTryingToClose,o=e.heading,l=e.text,r=e.surface,s=e.variant,u=e.closeVariant,f=e.additionalContent,y=e.additionalContentPosition,g=e.additionalContentPositionMobile;return c.default.createElement("div",{"aria-hidden":a,className:d("lxp-Container--flex","lxp-LegacyNotificationBody",(t={},t["right"===y?"lxp-Container--space-between":"lxp-Container--flex-column"]=y,t))},c.default.createElement("div",{className:d("lxp-LegacyNotificationBody__main","lxp-Container--flex","lxp-Position--relative","lxp-Container--flex-column",{"lxp-LegacyNotificationBody__main--no-additional":!f})},c.default.createElement(p,{heading:o,variant:s,surface:r}),c.default.createElement("div",{className:"lxp-Spacing__leftPadding_4"},l&&c.default.createElement(i.Text,{elementType:"span"},l))),f&&c.default.createElement("div",{className:d("lxp-Container--flex","lxp-Container--align-center","lxp-Spacing__rightPadding_1","lxp-Spacing__leftPadding_4",(n={},n["left"===g?"lxp-LegacyNotificationBody__additional lxp-LegacyNotificationBody__additional--left":"lxp-LegacyNotificationBody__additional"]=g,n["lxp-Spacing__rightMargin_2"]=u,n["bottom"===y?"lxp-Container--justify-start lxp-Spacing__topMargin_2 lxp-LegacyNotificationBody__additional--bottom":"lxp-Container--justify-end lxp-Spacing__topMargin_1 lxp-LegacyNotificationBody__additional--right"]=y,n))},f))};y.displayName="LegacyNotificationBody";var g=function(e){var t=e.onClose,n=e.heading,i=e.variant,o=e.surface,l=e.additionalContent,r=e.additionalContentPosition,s=e.additionalContentPositionMobile,u=e.text,d=e.closeVariant,p=e.confirmationContent,g=a.useState(!1),m=g[0],v=g[1];return c.default.createElement(c.default.Fragment,null,d&&c.default.createElement(f,{handleCancel:function(){return v(!1)},handleClose:function(){return e=t,void("no-confirmation"===d||m?e():v(!0));var e},surface:o,confirmationContent:p,isTryingToClose:m}),c.default.createElement(y,{isTryingToClose:m,text:u,heading:n,variant:i,surface:o,additionalContent:l,additionalContentPosition:r,additionalContentPositionMobile:s,closeVariant:d}))};g.displayName="LegacyNotificationContent";var m=function(e){var t=e.border,n=void 0===t||t,l=e.heading,r=e.variant,s=void 0===r?"info":r,d=e.surface,f=void 0===d?"white":d,p=e.additionalContent,y=e.additionalContentPosition,m=void 0===y?"right":y,v=e.additionalContentPositionMobile,x=void 0===v?"center":v,h=e.text,b=e.closeVariant,C=e.confirmationContent,_=e.testId,N=a.useState(!1),E=N[0],O=N[1],w=a.useState(!1),P=w[0],j=w[1];return a.useEffect((function(){E&&setTimeout((function(){return j(!0)}),850)}),[E]),c.default.createElement(i.Box,{elevation:P||!n?"none":"01",borderWidth:"s",borderColor:P||!n?"none":"grey01",borderRadius:{all:"s"}},c.default.createElement(u,{"aria-hidden":E?"true":"false",className:"lxp-LegacyNotification--collapsed",transition:o.collapse(850),isOpen:!E},c.default.createElement("div",{role:"alert",className:"lxp-LegacyNotification","data-testid":_},c.default.createElement(i.Surface,{background:n?f:void 0},c.default.createElement("div",{className:"lxp-Position--relative"},c.default.createElement(i.Container,{horizontalPadding:"m"},c.default.createElement(i.VerticalSpace,{size:"xs"}),c.default.createElement(g,{onClose:function(){return O(!0)},heading:l,text:h,variant:s,surface:f,additionalContent:p,additionalContentPosition:m,additionalContentPositionMobile:x,closeVariant:b,confirmationContent:C}),c.default.createElement(i.VerticalSpace,{size:"s"})))))))};m.displayName="LegacyNotification",t.LegacyNotification=m,t.LegacyNotificationLabel=p},47006:function(e,t,n){function a(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(67294)),o=function(){return o=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};var l=function(e){var t=e.focusable,n=void 0!==t&&t,a=e.size,l=void 0===a?24:a,r=e.testId,c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}(e,["focusable","size","testId"]);return i.default.createElement("svg",o({},c,{viewBox:"0 0 24 24",focusable:n,className:"lxp-LegacyWarningIcon",height:l,width:l,"data-testid":r}),i.default.createElement("path",{fill:"#3c3d41",fillRule:"nonzero",d:"M 20,11.999667 C 20,16.418238 16.417891,20 12,20 7.5821086,20 4,16.418238 4,11.999667 4,7.5816492 7.5822209,4 12,4 c 4.417779,0 8,3.5816492 8,7.999667 z"}),i.default.createElement("path",{d:"M 12,24 C 5.372583,24 0,18.627417 0,12 0,5.372583 5.372583,0 12,0 c 6.627417,0 12,5.372583 12,12 0,6.627417 -5.372583,12 -12,12 z m -0.07143,-8.571429 c -0.591733,0 -1.071428,0.383756 -1.071428,0.857143 v 0.857143 C 10.857143,17.616244 11.336838,18 11.928571,18 12.520305,18 13,17.616244 13,17.142857 v -0.857143 c 0,-0.473387 -0.479695,-0.857143 -1.07143,-0.857143 z m 0.0025,-9.4285123 c -0.0058,5.47e-5 -0.01152,1.554e-4 -0.01727,3.022e-4 -0.596766,0.01521 -1.068209,0.5113143 -1.052999,1.10808 l 0.14511,5.6933971 c 0.01283,0.503442 0.42159,0.90655 0.925162,0.912373 0.500255,0.0058 0.912359,-0.391383 0.925037,-0.89151 l 0.145386,-5.7351224 c 3.12e-4,-0.012316 4.1e-4,-0.024636 2.93e-4,-0.036955 -0.0056,-0.5857754 -0.484941,-1.0561291 -1.070716,-1.0505644 z"}))};l.displayName="LegacyWarningIcon",t.LegacyWarningIcon=l}}]);