1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,178279,e=>{"use strict";var t=e.i(843476),n=e.i(798289),n=n,o=e.i(993597),i=e.i(65538);e.s(["default",0,function({children:e,numCardsInRow:r,smallScreenLayout:a="Tiles"}){return"Carousel"===a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Hidden,{above:"xl",children:(0,t.jsx)(i.default,{type:"Carousel",gap:4,columns:r,sameHeight:!0,children:e})}),(0,t.jsx)(o.Hidden,{below:"xl",children:(0,t.jsx)(n.default,{columns:r,space:4,children:e})})]}):(0,t.jsx)(n.default,{columns:{xs:1,md:2,xl:r},space:4,children:e})}],178279)},343794,(e,t,n)=>{!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}(r)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}if(t.exports)o.default=o,t.exports=o;else if("function"==typeof define&&"object"==typeof define.amd&&define.amd)void 0!==o&&e.v(o);else window.classNames=o}()},267699,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=u(e.r(271645)),l=u(e.r(745009)),s=u(e.r(343794));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},f=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function p(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(!n.length)return e;for(var i={},r=Object.keys(e),a=0;a<r.length;a++){var l=r[a];-1===n.indexOf(l)&&(i[l]=e[l])}return i}function h(e){e.forEach(function(e){return cancelAnimationFrame(e)})}function m(e){return!isNaN(parseFloat(e))&&isFinite(e)}function v(e){return"string"==typeof e&&e.search("%")===e.length-1&&m(e.substr(0,e.length-1))}function g(e,t){e&&"function"==typeof e&&e(t)}var y=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.animationFrameIDs=[];var o="auto",r="visible";m(e.height)?(o=e.height<0||"0"===e.height?0:e.height,r="hidden"):v(e.height)&&(o="0%"===e.height?0:e.height,r="hidden"),n.animationStateClasses=i({},d,e.animationStateClasses);var a=n.getStaticStateClasses(o);return"u">typeof window&&window.matchMedia&&(n.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion)").matches),n.state={animationStateClasses:a,height:o,overflow:r,shouldUseTransitions:!1},n}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(t,[{key:"c
1omponentDidMount",value:function(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var n=this,o=this.props,i=o.height,r=o.onAnimationEnd,a=o.onAnimationStart,l=this.getTimings(),u=l.duration,d=l.delay;if(this.contentElement&&i!==e.height){this.showContent(t.height),this.contentElement.style.overflow="hidden";var f,p,y,b=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var O=u+d,S=null,w={height:null,overflow:"hidden"},E="auto"===t.height;m(i)?w.height=S=i<0||"0"===i?0:i:v(i)?w.height=S="0%"===i?0:i:(S=b,w.height="auto",w.overflow=null),E&&(w.height=S,S=b);var C=(0,s.default)((c(y={},this.animationStateClasses.animating,!0),c(y,this.animationStateClasses.animatingUp,"auto"===e.height||i<e.height),c(y,this.animationStateClasses.animatingDown,"auto"===i||i>e.height),c(y,this.animationStateClasses.animatingToHeightZero,0===w.height),c(y,this.animationStateClasses.animatingToHeightAuto,"auto"===w.height),c(y,this.animationStateClasses.animatingToHeightSpecific,w.height>0),y)),_=this.getStaticStateClasses(w.height);(this.setState({animationStateClasses:C,height:S,overflow:"hidden",shouldUseTransitions:!E}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),E)?(w.shouldUseTransitions=!0,h(this.animationFrameIDs),this.animationFrameIDs=(f=function(){n.setState(w),g(a,{newHeight:w.height})},(p=[])[0]=requestAnimationFrame(function(){p[1]=requestAnimationFrame(function(){f()})}),p),this.animationClassesTimeoutID=setTimeout(function(){n.setState({animationStateClasses:_,shouldUseTransitions:!1}),n.hideContent(w.height),g(r,{newHeight:w.height})},O)):(g(a,{newHeight:S}),this.timeoutID=setTimeout(function(){w.animationStateClasses=_,w.shouldUseTransitions=!1,n.setState(w),"auto"!==i&&n.hideContent(S),g(r,{newHeight:S})},O))}}},{key:"componentWillUnmount",value:function(){h(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null}},{key:"getTimings",value:function(){if(this.prefersReducedMotion)return{delay:0,duration:0};var e=this.props;return{delay:e.delay,duration:e.duration}}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,s.default)((c(t={},this.animationStateClasses.static,!0),c(t,this.animationStateClasses.staticHeightZero,0===e),c(t,this.animationStateClasses.staticHeightSpecific,e>0),c(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.animateOpacity,r=n.applyInlineTransitions,l=n.children,u=n.className,d=n.contentClassName,h=n.easing,m=n.id,v=n.style,g=this.state,y=g.height,b=g.overflow,O=g.animationStateClasses,S=g.shouldUseTransitions,w=this.getTimings(),E=w.duration,C=w.delay,_=i({},v,{height:y,overflow:b||v.overflow});S&&r&&(_.transition="height "+E+"ms "+h+" "+C+"ms",v.transition&&(_.transition=v.transition+", "+_.transition),_.WebkitTransition=_.transition);var x={};o&&(x.transition="opacity "+E+"ms "+h+" "+C+"ms",x.WebkitTransition=x.transition,0===y&&(x.opacity=0));var T=(0,s.default)((c(e={},O,!0),c(e,u,u),e)),j=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===y;return a.default.createElement("div",i({},p.apply(void 0,[this.props].concat(f)),{"aria-hidden":j,className:T,id:m,style:_}),a.default.createElement("div",{className:d,style:x,ref:function(e){return t.contentElement=e}},l))}}]),t}(a.default.Component);y.propTypes={"aria-hidden":l.default.bool,animateOpacity:l.default.bool,animationStateClasses:l.default.object,applyInlineTransitions:l.default.bool,children:l.default.any.isRequired,className:l.default.string,contentClassName:l.default.string,delay:l.default.number,duration:l.default.number,easing:l.default.string,height:function(e,t,n){var i=e[t];return"number"==typeof i&&i>=0||v(i)||"auto"===i?null:TypeError('value "'+i+'" of type "'+(void 0===i?"undefined":o(i))+'" is invali
1d type for '+t+" in "+n+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:l.default.string,onAnimationEnd:l.default.func,onAnimationStart:l.default.func,style:l.default.object},y.defaultProps={animateOpacity:!1,animationStateClasses:d,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},n.default=y},198499,(e,t,n)=>{var o=e.g&&e.g.Object===Object&&e.g,i="object"==typeof self&&self&&self.Object===Object&&self,r=o||i||Function("return this")(),a=Object.prototype,l=a.hasOwnProperty,s=a.toString,u=r.Symbol,c=u?u.toStringTag:void 0;t.exports=function(e){if(n=typeof(t=e),null==t||"object"!=n&&"function"!=n)return!1;var t,n,o,i=null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?function(e){var t=l.call(e,c),n=e[c];try{e[c]=void 0;var o=!0}catch(e){}var i=s.call(e);return o&&(t?e[c]=n:delete e[c]),i}(e):(o=e,s.call(o));return"[object Function]"==i||"[object GeneratorFunction]"==i||"[object AsyncFunction]"==i||"[object Proxy]"==i}},594425,(e,t,n)=>{var o,i,r=Object.prototype,a=Function.prototype.toString,l=r.hasOwnProperty,s=a.call(Object),u=r.toString,c=(o=Object.getPrototypeOf,i=Object,function(e){return o(i(e))});t.exports=function(e){if(!(e&&"object"==typeof e)||"[object Object]"!=u.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=c(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==s}},623996,e=>{"use strict";let t,n,o;var i,r,a,l,s,u,c,d,f,p,h=e.i(843476),m=e.i(271645);let v="Chat to us online",g=(e,t)=>{var n;return void 0===t&&(t=null!=(n=null==document?void 0:document.title)?n:v),t=t.replace(/^\(\d+\+?\)\s/,""),"number"==typeof e&&e>0?`(${e>99?"99+":e}) ${t}`:t},y={start:function({on:e,off:i=document.title,reset:r=document.title,intervalDuration:a=1e3}){void 0!==n&&o(),t=r,document.title=e,n=window.setInterval(()=>{let t=document.title===e;document.title=t?i:e},a)},stop:o=function(){void 0!==n&&(window.clearInterval(n),n=void 0,document.title=t)}};var b=e.i(198499);let O=(e,...t)=>{if((0,b.default)(e))return e(...t)},S=e=>t=>{t.stopPropagation(),O(e)};function w(e){return/^https?:\/\/localhost(:\d{4})?/.test(e)}let E=()=>{var e;return"u">typeof window&&(null==(e=null==window?void 0:window.matchMedia)?void 0:e.call(window,"(prefers-reduced-motion: reduce)").matches)},C=[/(.+\.)?nib\.co\.nz$/,/(.+\.)?nib\.com\.au$/,/(.+\.)?nib-cf-test\.com$/,/(.+\.)?optimizely.com$/],_=[/(.+\.)?guhealth\.com\.au$/,/(.+\.)?guhealth-test\.com$/],x="nib",T="chat-post-message--",j={CROSS_WINDOW_LOCALSTORAGE:`${T}cross-window-localstorage`,INFORM_CLIENT_CONTEXT_CHANGE:`${T}inform-client-context-change`,CLIENT_END_CHAT:`${T}client-end-chat`,CHAT_STATUS_CHANGE:`${T}chat-status-change`,RECEIVED_MESSAGES_LENGTH:`${T}received-messages-length`,CLIENT_HAS_LOADED:"loaded",CLIENT_READY_TO_RENDER:`${T}ready-to-render`,TRANSMIT_CONFIG:`${T}load-config`,PAGE_NAVIGATION_CHANGE:`${T}most-recent-page`},N=({msgKey:e,onlyOnce:t,onSuccess:n,onError:o})=>{window.addEventListener("message",function i(r){let a=RegExp(`^${e}`);if("string"==typeof(null==r?void 0:r.data)&&(null==r?void 0:r.data.match(a)))if(t&&window.removeEventListener("message",i),((e,t=x)=>{let n=RegExp(`^${window.location.protocol}//`),o=RegExp(`${window.location.hostname}$`),i=((e=x)=>({gu:/(.+\.)?guhealth-test\.com$/,nib:/(.+\.)?nib-cf-test\.com$/})[e])(t),r=n.test(e),a=o.test(e),l=i.test(window.origin),s=w(e),u=((e=x)=>{let t={gu:_,nib:C};return null==t?void 0:t[e]})(t).some(t=>t.test(e));return s||l||r&&(a||u)})(r.origin)){let e=r.data.replace(a,"");try{let t=""!==e?JSON.parse(e):void 0;O(n,r,null!=t?t:{})}catch(e){console.error("Soft error attempting JSON parse:",e)}}else O(o,r)},!1)},A=()=>{let e=window.opener,t=window.parent;return null!=e?e:t},R=({msgKey:e,targetWindow:t=A(),payload:n})=>{if(t){let o,i;null==t||t.postMessage(`${e}${n?` ${JSON.stringify(n)}`:""}`,(o=w(window.origin),i=`${window.location.protocol}//${window.location.hostname}`,o?"*":i))}}
1,I="Event received from domain that is not allowed:",M=645,k=465,$=130,D=20,P=({initialLoadCallback:e,readyToRenderCallback:t})=>{N({msgKey:j.CLIENT_HAS_LOADED,onlyOnce:!0,onSuccess:e,onError:e=>{console.warn(I,e.origin)}}),t&&N({msgKey:j.CLIENT_READY_TO_RENDER,onlyOnce:!0,onSuccess:t,onError:e=>{console.warn(I,e.origin)}})};var L=e.i(997053),W=e.i(740012);let F={mini:12,xs:16,sm:24,md:32,lg:48,xl:64,xxl:96,xxxl:128};function H(e){let t=(0,L.useTheme)();return"string"==typeof e?e:e({theme:t})}var U=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};let B=e=>{var{size:t="md",fill:n="currentColor"}=e,o=U(e,["size","fill"]);let i=H(n),r="number"==typeof t?t:F[t];return(0,h.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:"none",viewBox:"0 0 32 33"},o,{children:[(0,h.jsx)("path",{fill:i,fillRule:"evenodd",d:"M6.128 26.433H2.724A2.723 2.723 0 0 1 0 23.71V3.285A2.723 2.723 0 0 1 2.724.562h26.553A2.723 2.723 0 0 1 32 3.285V23.71a2.723 2.723 0 0 1-2.723 2.723H15.206l-7.989 5.992a.68.68 0 0 1-1.089-.545zm8.442-1.226a.68.68 0 0 1 .409-.136h14.298c.752 0 1.361-.609 1.361-1.361V3.285c0-.752-.61-1.361-1.361-1.361H2.724c-.753 0-1.362.609-1.362 1.361V23.71c0 .752.61 1.361 1.362 1.361h4.085a.68.68 0 0 1 .68.681v4.766z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:i,fillRule:"evenodd",d:"M6.7 15.19a3.724 3.724 0 0 0 6.685-.042.68.68 0 1 0-1.226-.593 2.364 2.364 0 0 1-4.24.027.68.68 0 1 0-1.22.608m12.25-.021a3.724 3.724 0 0 0 6.685 0 .681.681 0 0 0-1.222-.6 2.362 2.362 0 0 1-4.241 0 .68.68 0 1 0-1.222.6m2.942 5.564a8.51 8.51 0 0 0-11.461-.175.684.684 0 0 0-.058.961.68.68 0 0 0 .962.06 7.145 7.145 0 0 1 9.626.147.686.686 0 0 0 .963-.03.68.68 0 0 0-.032-.963",clipRule:"evenodd"})]}))};var G=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};let z=e=>{var{fill:t="currentColor"}=e,n=G(e,["fill"]);let o=H(t);return(0,h.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 25 24"},n,{children:[(0,h.jsx)("path",{fill:o,fillRule:"evenodd",d:"M.5 2.75A2.75 2.75 0 0 1 3.25 0h18.5a2.75 2.75 0 0 1 2.75 2.75v13.887a2.75 2.75 0 0 1-2.75 2.75h-9.679l-5.814 4.456a.75.75 0 0 1-1.207-.595v-3.86h-1.8a2.75 2.75 0 0 1-2.75-2.75zM3.25 1.5C2.56 1.5 2 2.06 2 2.75v13.887c0 .69.56 1.25 1.25 1.25H5.8a.75.75 0 0 1 .75.75v3.091l4.81-3.686a.75.75 0 0 1 .457-.155h9.933c.69 0 1.25-.56 1.25-1.25V2.75c0-.69-.56-1.25-1.25-1.25z",clipRule:"evenodd"}),(0,h.jsx)("path",{fill:o,fillRule:"evenodd",d:"M8.02 6.623a1.5 1.5 0 0 0-1.366.88.75.75 0 0 1-1.365-.622 3 3 0 0 1 5.462 0 .75.75 0 0 1-1.365.621 1.5 1.5 0 0 0-1.366-.879M17.167 6.623a1.5 1.5 0 0 0-1.366.88.75.75 0 0 1-1.365-.622 3 3 0 0 1 5.463 0 .75.75 0 0 1-1.366.621 1.5 1.5 0 0 0-1.366-.879M8.094 11.89a.75.75 0 0 1 1.06-.017c.901.87 2.126 1.406 3.476 1.406s2.576-.535 3.476-1.406a.75.75 0 1 1 1.043 1.078 6.48 6.48 0 0 1-4.519 1.828 6.48 6.48 0 0 1-4.518-1.828.75.75 0 0 1-.018-1.06",clipRule:"evenodd"})]}))},q=(0,L.default)(W.PrimaryButton)({transition:"box-shadow 300ms, transform 300ms",transitionTimingFunction:"cubic-bezier(.19, 1, .22, 1)",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.2)","&&:hover":{transform:"translateY(-4px)",boxShadow:"0px 8px 16px rgba(0, 0, 0, 0.1)"},"@media(max-width: 640px)":{display:"flex",alignItems:"center",justifyContent:"center",height:50,width:50,padding:0,span:{display:"none"},'[data-mesh-component="COLUMNS"]':{margin:0,gap:0}}}),V=({id:e,onClick:t})=>(0,h.jsx)(q,{icon:(0,h.jsx)(z,{}),iconPlacement:"left",onClick:t,id:e,"data-testid":e,"aria-label":"Start a live chat with us",children:(0,h.jsx)("span",{children:"Chat now"})});var K=function(){var e=1,t=new WeakMap,n=function(o,i){return"number"==typeof o||"string"==typeof o?i?"idx-".concat(i):"val-".concat(o):t.has(o)?"uid"+t.get(o):(t.set(o,e++),n(o))};return n};K();var X=function(e){return void 0===e&&(e=""),{value:1,prefix:e,uid:K()}},Y=X(),Z=m.createContext(X()),J=function(e){var t=e||Y,n=(t?t.prefix:"")+t.value++;return{uid:n,gen:function(e){return n+t.uid(e)}}},Q=function(){var e=(0,m.useContext)(Z);return(0,m.useState)(function(){return J(e)})[0]},ee=e.i(267699);let et=L.default.div` 2 ${({isFullWidth:e})=>!e&&L.css` 3 display: inline-flex; 4 `} 5`,en=250,eo=({isOpen:e,duration:t=en,id:n,isFullWidth:o=!0,onOpen:i,onClose:r,children:a})=>{let l=E();return(0,h.jsx)(et,{isFullWidth:o,children:(0,h.jsx)(ee.default,{id:n,height:e?"auto":0,duration:l?0:t,style:{willChange:"height"},onAnimationEnd:({newHeight:e})=>{O(0===e?r:i)},"aria-expanded":e,"data-testid":"ExpandCollapse__TestId",children:a})})};
5var ei=e.i(398679),er=e.i(510631),ea=e.i(178858);let el=200,es=(0,ei.token)("theme.dimension.border.radius"),eu=(0,ea.p)(2),ec=(0,er.mt)(3),ed="14px",ef=(0,ei.token)("theme.color.fg"),ep=(0,ei.token)("theme.color.fg.link"),eh=(0,ei.token)("common.color.white"),em=(0,ei.token)("theme.color.bg"),ev=(0,ei.token)("theme.color.bg"),eg=(0,ei.token)("common.color.white"),ey=(0,ei.token)("common.color.white"),eb=(0,ei.token)("theme.color.fg"),eO=(0,ei.token)("common.color.white"),eS=(0,ei.token)("theme.color.fg.brand"),ew=(0,ei.token)("theme.color.fg.brand"),eE=(0,ei.token)("theme.color.fg.error"),eC=(0,ei.token)("theme.color.fg");e.s(["BASE_TRANSITION",0,el,"BORDER_RADIUS",0,es,"BOX_SHADOW",0,"0px 0px 8px 3px rgba(0, 0, 0, 0.25)","ERROR_BG_TEXT_COLOR",0,"#FFF","ERROR_COLOR",0,eE,"ERROR_DISCONNECTED_COLOR",0,eC,"ERROR_FONT_SIZE",0,ed,"ERROR_FONT_WEIGHT",0,400,"GLOBAL_COLOR",0,ef,"GLOBAL_FONT_SIZE",0,ed,"GLOBAL_HYPERLINK",0,ep,"GLOBAL_HYPERLINK_INVERSE",0,eh,"MESSAGES_CONTAINER_BG",0,em,"MESSAGE_BUBBLE_MINE_BG",0,ev,"MESSAGE_BUBBLE_MINE_COLOR",0,eg,"MESSAGE_BUBBLE_NOT_MINE_BG",0,ey,"MESSAGE_BUBBLE_NOT_MINE_COLOR",0,eb,"MESSAGE_MARGIN",0,ec,"MESSAGE_MAX_WIDTH",0,"300px","MESSAGE_PADDING",0,eu,"MESSAGE_THIN_MARGIN",0,"1px","SCROLL_TO_BOTTOM_BG",0,eO,"SCROLL_TO_BOTTOM_COLOR",0,eS,"SYSTEM_MESSAGE_COLOR",0,ew,"UNREAD_MESSAGE_BORDER_RADIUS",0,es,"UNREAD_NOTIFICATION_COLOR",0,"crimson","Z_IDX_INLINE_CHAT_WINDOW",0,99999],979515);let e_=L.css` 6 margin: 0; 7 padding: 0; 8 list-style: none; 9`,ex=L.css` 10 appearance: none; 11 padding: 0; 12 border: none; 13 background: none; 14 15 &:not(:disabled) { 16 cursor: pointer; 17 } 18`,eT=e=>L.css` 19 width: ${e}; 20 height: ${e}; 21`,ej=L.css` 22 content: ""; 23 position: absolute; 24`,eN=L.css` 25 position: absolute; 26 top: 50%; 27 left: 50%; 28 transform: translate(-50%, -50%); 29`,eA=L.css` 30 position: absolute; 31 top: 50%; 32 transform: translateY(-50%); 33`,eR=L.css` 34 position: absolute; 35 left: 50%; 36 transform: translateX(-50%); 37`,eI=L.css` 38 border-width: 0; 39 clip: rect(0, 0, 0, 0); 40 height: 1px; 41 margin: -1px; 42 overflow: hidden; 43 padding: 0; 44 position: absolute; 45 white-space: nowrap; 46 width: 1px; 47`,eM=L.css` 48 clip: auto; 49 height: auto; 50 margin: 0; 51 overflow: visible; 52 padding: 0; 53 position: static; 54 white-space: normal; 55 width: auto; 56`,ek=L.css` 57 outline: ${(0,ei.token)("theme.focus.outline.width")} 58 ${(0,ei.token)("theme.focus.outline.style")} ${(0,ei.token)("theme.color.border.focus")}; 59 outline-offset: ${(0,ei.token)("theme.focus.outline.offset")}; 60`,e$=(e,t)=>L.css` 61 transition-property: ${e}; 62 transition-duration: ${E()?"0ms":`${null!=t?t:el}ms`}; 63 will-change: ${e}; 64`;e.s(["accessibleTransition",0,e$,"alignCentre",0,eN,"alignHorizontal",0,eR,"alignVertical",0,eA,"buttonReset",0,ex,"circle",0,e=>L.css` 65 ${eT(e)} 66 border-radius: 50%; 67`,"focusOutline",0,ek,"listReset",0,e_,"pseudo",0,ej,"square",0,eT,"undoVisuallyHidden",0,eM,"visuallyHidden",0,eI],878150);let eD=L.default.div` 68 ${eI} 69 ${({isVisible:e})=>e&&eM}
69 70`,eP=({text:e,isVisible:t})=>e?(0,h.jsx)(eD,{isVisible:t,children:e}):null;var eL=e.i(823559),eW=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};let eF=({toggle:e,duration:t=el,unmountWhen:n,render:o})=>{let[i,r]=(0,m.useState)(n!==e),a=(0,m.useRef)(setTimeout(()=>void 0)),[l,s]=(0,m.useState)(e);return(0,m.useEffect)(()=>{let o=n===e,l=!i&&!o,u=i&&o;clearTimeout(a.current),l?(a.current=setTimeout(()=>void 0),r(!0),setTimeout(()=>s(e),1)):u?(s(e),a.current=setTimeout(()=>{r(n!==e)},t)):s(e)},[n,e]),(0,h.jsx)(h.Fragment,{children:i&&o(l)})},eH=e=>[t=>{var{activate:n}=t,o=eW(t,["activate"]);return(0,h.jsx)(e,Object.assign({toggle:n},o))},t=>{var{activate:n,unmountWhen:o}=t,i=eW(t,["activate","unmountWhen"]);return(0,h.jsx)(e,Object.assign({toggle:!n,unmountWhen:"boolean"==typeof o?!o:void 0},i))}],eU=L.default.div` 71 ${({duration:e})=>e$("opacity",e)} 72 opacity: 1; 73 74 ${({toggle:e})=>e&&L.css` 75 opacity: 0; 76 `} 77`;e.s(["Wrapper",0,eU],877356);var eB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};let[eG,ez]=eH(e=>{var{children:t}=e,n=eB(e,["children"]);let{duration:o}=n;return(0,h.jsx)(eF,Object.assign({},n,{render:e=>(0,h.jsx)(eU,{toggle:e,duration:o,children:t})}))});var eq=e.i(877356),eq=eq;let eV=(e,t)=>[].concat(eK(e),eX(t)).join(" "),eK=e=>null!=e?`translateX(${e})`:[],eX=e=>null!=e?`translateY(${e})`:[],eY=(0,L.default)(eq.Wrapper)` 78 ${({duration:e})=>e$("transform, opacity",e)}; 79 position: relative; 80 81 ${({toggle:e,animX:t,animY:n})=>L.css` 82 transform: ${eV(null==t?void 0:t.in,null==n?void 0:n.in)}; 83 84 ${e&&L.css` 85 transform: ${eV(null==t?void 0:t.out,null==n?void 0:n.out)}; 86 `}; 87 `} 88`;var eZ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};let[eJ,eQ]=eH(e=>{var{animX:t,animY:n,children:o}=e,i=eZ(e,["animX","animY","children"]);let{duration:r}=i;return(0,h.jsx)(eF,Object.assign({},i,{render:e=>(0,h.jsx)(eY,{toggle:e,duration:r,animX:t,animY:n,children:o})}))});var e0=e.i(979515),e0=e0,e1=e.i(878150),e1=e1,e0=e0;let e2=L.default.div` 89 ${(0,ea.pl)(3)} 90 ${(0,ea.pr)(3)} 91 ${e1.square("100%")} 92 display: flex; 93 justify-content: center; 94 align-items: center; 95 flex-direction: column; 96 margin: auto; 97 max-width: 360px; 98 text-align: center; 99`,e5=L.default.div` 100 ${e1.square("45px")} 101 ${(0,er.mb)(5)} 102`,e6=L.default.h2` 103 font-weight: normal; 104`,e7=L.default.p` 105 font-size: ${e0.ERROR_FONT_SIZE}; 106 ${(0,er.mt)(0)} 107`,e4=(0,L.default)(W.PrimaryButton)` 108 height: 60px; 109 width: 100%; 110 ${(0,er.mt)(4)} 111 112 svg { 113 position: relative; 114 top: 2px; 115 } 116`,e3="Oops! Something went wrong",e8="Check your internet connection and try again.",e9="Retry",te=({title:e=e3,text:t=e8,callback:n,buttonText:o=e9,buttonProps:i={}})=>{let[r,a]=(0,m.useState)(!1);return(0,h.jsxs)(e2,{"data-testid":"SplashError__TestId",children:[(0,h.jsx)(e5,{children:(0,h.jsx)(B,{})}),(0,h.jsx)(e6,{children:e}),(0,h.jsx)(e7,{children:t}),n&&(0,h.jsx)(e4,Object.assign({onClick:()=>{a(!0),setTimeout(()=>{var e,t,o,i;return e=void 0,t=void 0,o=void 0,i=function*(){yield((e,t=Promise.resolve(),...n)=>{let o=O(e,...n);return o&&("object"==typeof o||"function"==typeof o)&&"function"==typeof o.then?o:t})(n),a(!1)},new(o||(o=Promise))(function(n,r){function a(e){try{s(i.next(e))}catch(e){r(e)}}function l(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?n(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(a,l)}s((i=i.apply(e,t||[])).next())})},1e3)}},i,{children:r?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(eP,{text:"Retrying, please wait..."}),"â",(0,h.jsx)(eL.Loader,{size:"sm",fill:e0.ERROR_BG_TEXT_COLOR})]}):o}))]})};var tt=e.i(385694),tn=e.i(192459),to=e.i(834915),e1=e1;let ti=L.default.div` 117 ${e1.square("100%")} 118 position: absolute; 119 top: 0; 120 left: 0; 121 display: flex; 122 align-items: center; 123 justify-content: center; 124 background: ${(0,ei.token)("theme.color.bg")}; 125 z-index: 1; 126`,tr=L.default.div` 127 align-items: center; 128 display: flex; 129 flex-direction: column; 130`,ta=L.default.div` 131 display: flex; 132 flex-direction: column; 133 align-items: center; 134 justify-content: space-between; 135 height: 60px; 136 margin: 10px 0 100px; 137 138 * { 139 font-family: inherit; 140 } 141`,tl=()=>(0,h.jsx)(ti,{"data-sentiment":"default","data-prominence":"default","data-testid":"LoadingOverlay__TestId",children:(0,h.jsxs)(tr,{children:[(0,h.jsx)(tt.default,{height:"80px"}),(0,h.jsxs)(ta,{children:[(0,h.jsx)(to.default,{size:3,children:"Loading chat"}),(0,h.jsx)(tn.default,{children:"This shouldn't take long..."})]}),(0,h.jsx)(eL.Loader,{size:"md"})]})});(i=u||(u={})).Inline="inline",i.PopOut="pop-out",(r=c||(c={})).Bot="bot",r.User="customer",r.Agent="liveAgent",r.System="system",r.SystemHidden="systemHidden",(a=d||(d={})).Idle="Idle",a.Sending="Sending",a.Received="Received",a.Error="Error",(l=f||(f={}))[l.NotStarted=0]="NotStarted",l[l.TalkingToBot=1]="TalkingToBot",l[l.Transferring=2]="Transferring",l[l.TalkingToAgent=3]="TalkingToAgent",l[l.Ended=4]="Ended",l[l.Expired=5]="Expired",(s=p||(p={})).Bot="bot",s.Waiting="waiting",s.LiveAgent="liveAgent",s.Ended="ended";let ts=e=>{let t=(0,m.useRef)();return(0,m.useEffect)(()=>{t.current=e},[e]),t.current},tu=(e,t="")=>{R({msgKey:j.CROSS_WINDOW_LOCALSTORAGE,payload:{key:e,value:t}})},tc=({key:e,crossWindow:t=!1})=>{let n="u">typeof window?window.localStorage:void 0;return[()=>null==n?void 0:n.getItem(e),o=>{null==n||n.setItem(e,o),t&&tu(e,o)},()=>{null==n||n.removeItem(e),t&&tu(e)}]},td="chat-data--",tf={CROSS_WINDOW:{SESSION_ID:`${td}session-id`,ACTIVE_CHAT_TIMESTAMP:`${td}active-chat-timestamp`,POP_OUT_ACTIVE_TIMESTAMP:`${td}pop-out-active-timestamp`,RECEIVED_MESSAGES:`${td}received-messages`,THEME_NAME:`${td}theme-name`,MOST_RECENT_PAGE_NAME:`${td}most-recent-page-name`,MOST_RECENT_PAGE_LINK:`${td}most-recent-page-link`},SAME_WINDOW:{INLINE_CHAT_MINIMISED_STATE:`${td}inline-chat-minimised`,CLIENT_CONTEXT:`${td}client-context`,HAS_INFORMED_AGENT_OF_INLINE:`${td}has-informed-agent-of-inline`,HAS_INFORMED_AGENT_OF_POPOUT:`${td}has-informed-agent-of-popout`,CHAT_START_TIME:`${td}chat-start-time`}},[tp,th,tm]=tc({key:tf.CROSS_WINDOW.SESSION_ID,crossWindow:!0}),[tv,tg,ty]=tc({key:tf.CROSS_WINDOW.ACTIVE_CHAT_TIMESTAMP,crossWindow:!0}),[tb,tO,tS]=tc({key:tf.CROSS_WINDOW.POP_OUT_ACTIVE_TIMESTAMP,crossWindow:!0}),[tw,tE,tC]=tc({key:tf.CROSS_WINDOW.RECEIVED_MESSAGES,crossWindow:!0}),[t_,tx,tT]=tc({key:tf.CROSS_WINDOW.MOST_RECENT_PAGE_LINK,crossWindow:!0}),[tj,tN,tA]=tc({key:tf.CROSS_WINDOW.MOST_RECENT_PAGE_NAME,crossWindow:!0}),[tR,tI,tM]=tc({key:tf.SAME_WINDOW.INLINE_CHAT_MINIMISED_STATE}),[tk,t$,tD]=tc({key:tf.SAME_WINDOW.CLIENT_CONTEXT}),[tP,tL,tW]=tc({key:tf.SAME_WINDOW.HAS_INFORMED_AGENT_OF_INLINE}),[tF,tH,tU]=tc({key:tf.SAME_WINDOW.HAS_INFORMED_AGENT_OF_POPOUT}),[tB,tG,tz]=tc({key:tf.SAME_WINDOW.CHAT_START_TIME});var tq=e.i(729105),tV=e.i(522481),tK=e.i(445391),e1=e1,e0=e0;let tX="35px",tY=L.default.div` 142 display: flex; 143 justify-content: space-between; 144 position: relative; 145 border-top-left-radius: ${(0,ei.token)("theme.dimension.border.radiu
145s")}; 146 border-top-right-radius: ${(0,ei.token)("theme.dimension.border.radius")}; 147 background: ${(0,ei.token)("theme.color.bg")}; 148 color: ${(0,ei.token)("theme.color.fg")}; 149 width: 100%; 150 min-height: ${tX}; 151`,tZ=L.default.div` 152 --unread-notification-color: crimson; 153 --text-shadow-color: ${(0,ei.token)("common.color.black")}; 154 155 ${e1.circle(tX)} 156 position: absolute; 157 display: flex; 158 align-items: center; 159 justify-content: center; 160 box-shadow: ${e0.BOX_SHADOW}; 161 background-color: var(--unread-notification-color); 162 color: ${(0,ei.token)("common.color.white")}; 163 text-shadow: 1px 1px var(--text-shadow-color); 164 top: -${parseInt(tX)/2}px; 165 left: -${parseInt(tX)/2}px; 166 font-weight: 700; 167 font-size: 16px; 168 z-index: 2; 169`,tJ=L.default.div` 170 padding-left: 15px; 171 display: flex; 172 align-items: center; 173 z-index: 1; 174 font-size: 14px; 175`,tQ=L.default.div` 176 ${e1.accessibleTransition("transform")} 177 transform: rotate(0); 178 179 ${({shouldFlip:e})=>e&&L.css` 180 transform: rotate(180deg); 181 `} 182`,t0=L.default.div` 183 border-top-right-radius: ${e0.BORDER_RADIUS}; 184 display: flex; 185 overflow: hidden; 186`,t1=L.default.button` 187 ${e1.buttonReset} 188 ${e1.square(tX)}; 189 ${e1.accessibleTransition("background")} 190 position: relative; 191 color: ${(0,ei.token)("theme.color.fg")}; 192 193 &:hover, 194 &:focus-visible { 195 background: ${(0,ei.token)("theme.color.bg.hover")}; 196 } 197 198 svg { 199 ${e1.accessibleTransition("transform")} 200 ${e1.alignCentre} 201 } 202`,t2="Minimise chat window",t5="Show chat window",t6=({isMinimised:e,unreadMessages:t=0,statusText:n,StatusIconComponent:o=null,onToggleClick:i,onPopoutClick:r,onCloseClick:a,toggleControlId:l})=>(0,h.jsxs)(tY,{"data-sentiment":"hero",onClick:i,children:[(0,h.jsxs)(tJ,{children:[t>0&&(0,h.jsxs)(tZ,{tabIndex:0,title:"You have unread messages",children:[t,(0,h.jsx)(eP,{text:"unread messages"})]}),null!==o&&(0,h.jsx)(o,{}),n]}),(0,h.jsxs)(t0,{children:[(0,b.default)(r)&&(0,h.jsx)(t1,{type:"button",onClick:S(r),title:"Pop-out chat window",children:(0,h.jsx)(tK.default,{size:14})}),"boolean"==typeof e&&(0,b.default)(i)&&(0,h.jsx)(t1,{type:"button",onClick:S(i),"data-testid":"MinimiseButton__TestId","aria-expanded":!e,"aria-controls":l,title:e?t5:t2,children:(0,h.jsx)(tQ,{shouldFlip:!!e,children:(0,h.jsx)(tq.default,{size:"xs"})})}),(0,b.default)(a)&&(0,h.jsx)(t1,{type:"button",onClick:S(a),title:"Close and end the chat",children:(0,h.jsx)(tV.default,{size:12})})]})]});var t7=e.i(799403),e0=e0;let t4="Are you sure?";var t3=e.i(719507),t8=e.i(561612),e1=e1,e0=e0;let t9=L.default.div` 203 display: flex; 204 flex-direction: column; 205 margin-top: 20px; 206 207 button { 208 margin: 5px 0; 209 } 210 211 ${(0,t8.breakpoint)("md")` 212 flex-direction: row; 213 214 button { 215 margin: 0 5px; 216 } 217 `} 218`,ne=(0,L.default)(t3.default)` 219 ${e1.alignCentre} 220 box-shadow: ${e0.BOX_SHADOW}; 221 border-radius: 4px; 222 background: ${(0,ei.token)("theme.color.bg")}; 223 color: ${(0,ei.token)("theme.color.fg")}; 224 width: 300px; 225 display: flex; 226 flex-direction: column; 227 justify-content: space-between; 228 align-items: center; 229 padding: 20px; 230 231 ${(0,t8.breakpoint)("md")` 232 height: 150px; 233 width: 350px; 234 `} 235`,nt=({isOpen:e,onConfirm:t,onCancel:n})=>(0,h.jsxs)(ne,{isOpen:e,contentLabel:t4,onRequestClose:n,style:{overlay:{zIndex:e0.Z_IDX_INLINE_CHAT_WINDOW}},children:[(0,h.jsx)(to.default,{size:3,children:t4}),(0,h.jsxs)(t9,{children:[(0,h.jsx)(W.PrimaryButton,{onClick:t,children:"Close chat"}),(0,h.jsx)(t7.SecondaryButton,{onClick:n,children:"Cancel"})]})]});var e1=e1;let nn="10px",no=L.keyframes` 236 0% { 237 transform: translateY(-50%) scale(1); 238 opacity: 0.75; 239 } 240 241 100% { 242 transform: translateY(-50%) scale(2); 243 opacity: 0; 244 } 245`,ni=L.default.span` 246 position: relative; 247 height: 100%; 248 width: ${nn}; 249 margin-right: 10px; 250 251 &::before, 252 &::after { 253 ${e1.pseudo} 254 ${e1.circle(nn)} 255 ${e1.alignVertical} 256 background-color: ${(0,ei.token)("common.color.white")}; 257 } 258 259 // Note this animation purposefully doesn't have a 260 // "prefers-reduced-motion" flag, as it's very low-impact 261 &::before { 262 animation: ${no} 2s infinite ease-in-out; 263 will-change: opacity, transform; 264 } 265`,nr=()=>(0,h.jsx)(ni,{}),na=L.default.div` 266 display: flex; 267 justify-content: center; 268 align-items: center; 269 margin-right: 5px; 270`,nl=()=>(0,h.jsx)(na,{children:(0,h.jsx)(eL.Loader,{size:"xs",fill:"#FFF"})});var ns=e.i(851135);let nu=L.default.div` 271 display: flex; 272 justify-content: center; 273 align-items: center; 274 margin-right: 5px; 275`,nc=()=>(0,h.jsx)(nu,{children:(0,h.jsx)(ns.default,{size:"xs",fill:"#FFF"})}),nd="calc(100vw - 40px)",nf="calc(80vh)",np="400px",nh="550px",nm="465px",nv="645px",ng="Connecting...",ny="Resuming...",nb="Something went wrong",nO={[f.TalkingToBot]:"Connected",[f.Transferring]:"Transferring...",[f.TalkingToAgent]:(e="")=>`Chatting to ${""===e?"a human":e}`,[f.Ended]:"Thanks for chatting!",[f.NotStarted]:"",[f.Expired]:"Session expired"};var e0=e0;let nS=L.default.div` 276 box-shadow: ${e0.BOX_SHADOW}; 277 border-top-left-radius: 4px; 278 border-top-right-radius: 4px; 279 280 /* Note it is necessary to have width and height 281 on separate elements to include the Toolbar etc */ 282 width: ${nd}; 283 284 ${(0,t8.breakpoint)("md")` 285 width: ${np}; 286 `} 287 288 ${(0,t8.breakpoint)("xl")` 289 width: ${nm}; 290 `} 291`,nw=L.default.div` 292 position: relative; 293 display: flex; 294 background: ${(0,ei.token)("theme.color.bg")}; 295 color: ${(0,ei.token)("theme.color.fg")}; 296 297 /* Note it is necessary to have width and height 298 on separate elements to include the Toolbar etc */ 299 height: ${nf}; 300 max-height: ${nv}; 301 302 ${(0,t8.breakpoint)("md")` 303 height: ${nh}; 304 `} 305 306 ${(0,t8.breakpoint)("xl")` 307 height: ${nv}; 308 `}; 309`,nE=L.default.iframe` 310 border: none; 311 width: 100%; 312 height: 100%; 313`,nC="Iframe__TestId",n_=({url:e,chatConfig:t,startMinimised:n=!1,isResuming:o=!1,resetChatState:i})=>{let r,a,l,s=(0,m.useRef)(null),[c,d]=(0,m.useState)(!0),[p,b]=(0,m.useState)(!1),O
313=Q().uid,[S,w]=(0,m.useState)(o||n),[E,C]=(0,m.useState)(0),_=ts(E),[x,T]=(0,m.useState)(!0),[A,I]=(0,m.useState)(!1),[L,W]=(0,m.useState)(!1),[F,H]=(0,m.useState)(void 0),U=ts(F),[B,G]=(0,m.useState)(""),z=(0,m.useRef)(null),[q,V]=(0,m.useState)(!1),[K,X]=(0,m.useState)(!1),Y=(r=(0,m.useRef)(),l=(a="u">typeof document)?null==document?void 0:document.title:void 0,(0,m.useEffect)(()=>{a&&l&&!r.current&&(r.current=l)},[a,l]),r.current),Z=K||q,J=void 0!==F&&F!==f.NotStarted&&F!==f.Ended;(0,m.useEffect)(()=>{let e=U===f.Transferring,t=F===f.TalkingToAgent;(!n&&t&&!e||e&&t)&&(w(!1),tM())},[F,U]);let ee=()=>{N({msgKey:j.RECEIVED_MESSAGES_LENGTH,onSuccess:(e,t)=>{let n=null==t?void 0:t.unreadMessages;C("number"==typeof n?n:0)}}),N({msgKey:j.CHAT_STATUS_CHANGE,onSuccess:(e,t)=>{let n=null==t?void 0:t.chatStatus;n&&(H(n),G(null==t?void 0:t.agentName))}}),T(!0),W(!1),I(!1),V(!1),X(!1),z.current&&(clearTimeout(z.current),z.current=null),C(0),Y&&(document.title=Y),I(!1),setTimeout(()=>{I(!0)},2e3),V(!1),z.current&&(clearTimeout(z.current),z.current=null),z.current=setTimeout(()=>{V(!0),T(!1)},15e3),P({initialLoadCallback:()=>{var e,n;z.current&&(clearTimeout(z.current),z.current=null);let o=!!t,i=null!=(n=null==(e=s.current)?void 0:e.contentWindow)?n:null;i&&o&&R({msgKey:j.TRANSMIT_CONFIG,payload:t,targetWindow:i})},readyToRenderCallback:()=>{W(!0)}})};return(0,m.useEffect)(ee,[]),(0,m.useEffect)(()=>{A&&L&&T(!1)},[A,L]),(0,m.useEffect)(()=>{(K||q)&&C(E+1)},[K,q]),(0,m.useEffect)(()=>{if(E!==_&&c)if(E>0){var e,t;void 0===(e=Y)&&(e=null!=(t=null==document?void 0:document.title)?t:v),y.start({on:g(E,"New chat message"),off:g(E,e),reset:e})}else y.stop(),Y&&(document.title=Y)},[E,_]),(0,m.useEffect)(()=>{var e,t;let n=F===f.TalkingToAgent;if(L){let i=null==document?void 0:document.title,r=window.location.href,a=null!=(t=null==(e=s.current)?void 0:e.contentWindow)?t:null;if(o&&n){let e=tj(),t=t_(),n=r!==t;t&&e&&n&&R({msgKey:j.PAGE_NAVIGATION_CHANGE,targetWindow:a,payload:{pageName:i,pageLink:r}})}tN(i),tx(r)}},[F,L]),(0,h.jsx)(eG,{activate:!c,unmountWhen:!0,children:(0,h.jsxs)(nS,{children:[(0,h.jsx)(t6,{onToggleClick:()=>{let e;w(t=>e=!t),tI(null!=e?e:!S)},onPopoutClick:L?()=>{var t,n,o,i,r,a,l,c;let{height:f,width:p,top:h,left:m}=null!=(n=null==(t=s.current)?void 0:t.getBoundingClientRect())?n:{};d(!1);let g=(o={height:f,width:p,top:h,left:m},window.open(e,v,(i=screen,`resizable, height=${null!=(r=null==o?void 0:o.height)?r:M}, width=${null!=(a=null==o?void 0:o.width)?a:k}, top=${null!=(l=null==o?void 0:o.top)?l:i.width-M-$}, left=${null!=(c=null==o?void 0:o.left)?c:i.width-M-D}`)));P({initialLoadCallback:()=>{R({msgKey:j.INFORM_CLIENT_CONTEXT_CHANGE,targetWindow:g,payload:{context:u.PopOut}})}})}:void 0,onCloseClick:()=>{b(!0)},StatusIconComponent:Z?nc:L&&F!==f.NotStarted?J?nr:null:nl,statusText:Z?nb:L&&F!==f.NotStarted?F===f.TalkingToAgent?nO[f.TalkingToAgent](B):nO[F]:o?ny:ng,unreadMessages:E,toggleControlId:O,isMinimised:S}),(0,h.jsx)(nt,{isOpen:p,onCancel:()=>b(!1),onConfirm:()=>{var e,t;let n=null!=(t=null==(e=s.current)?void 0:e.contentWindow)?t:null;R({msgKey:j.CLIENT_END_CHAT,targetWindow:n}),b(!1),d(!1),i()}}),(0,h.jsx)(eo,{isOpen:!S,id:O,children:(0,h.jsxs)(nw,{children:[(0,h.jsx)(eG,{activate:!x,unmountWhen:!0,children:(0,h.jsx)(tl,{})}),Z?(0,h.jsx)(te,{callback:()=>(ee(),Promise.resolve())}):(0,h.jsx)(nE,{"data-testid":nC,id:nC,ref:s,src:e,title:"Inline chat window"})]})})]})})};var nx=e.i(594425),e0=e0;let nT=L.default.div` 314 position: fixed; 315 z-index: ${e0.Z_IDX_INLINE_CHAT_WINDOW}; 316 317 ${({bottom:e,right:t})=>L.css` 318 bottom: ${"string"==typeof e?e:null==e?void 0:e.mobile}; 319 right: ${"string"==typeof t?t:null==t?void 0:t.mobile}; 320 321 ${"string"!=typeof e&&(0,nx.default)(e)&&L.css` 322 ${(0,t8.breakpoint)("md")` 323 bottom: ${null==e?void 0:e.tablet}; 324 `} 325 326 ${(0,t8.breakpoint)("xl")` 327 bottom: ${null==e?void 0:e.desktop}; 328 `} 329 `} 330 331 ${"string"!=typeof t&&(0,nx.default)(t)&&L.css` 332 ${(0,t8.breakpoint)("md")` 333 right: ${null==t?void 0:t.tablet}; 334 `} 335 336 ${(0,t8.breakpoint)("xl")` 337 right: ${null==t?void 0:t.desktop}; 338 `} 339 `} 340 `} 341`,nj=({bottom:e="0",right:t="0",children:n})=>(0,h.jsx)(nT,{bottom:e,right:t,children:n}),nN=["my.nib.com.au","my.nib-cf-test.com"],nA=(e,t)=>{if(!e)return!1;let n=new Date(e).getTime();return Date.now()-n<t};e.s(["ChatLauncher",0,({path:e="/chat",config:t})=>{var n,o;let[i,r]=(0,m.useState)(!1),[a,l]=(0,m.useState)(!1),[s,c]=(0,m.useState)(!1),[d,f]=(0,m.useState)(!1),[p,v]=(0,m.useState)(""),g="u">typeof window;(0,m.useEffect)(()=>
341{if(g){var n,o,i;let r,a,l,s,u;v((n=null==t?void 0:t.clientPath,r="?loadExternalConfig",a=null!=(o=window.location.protocol)?o:"https:",l=null!=(i=window.location.hostname)?i:"www.nib.com.au",s=`${a}//${l}`,u=null!=n?n:`${s}${e}`,`${u}${r}`))}},[g,t,e]),(0,m.useEffect)(()=>{var e;let t=!!tp(),n=(null!=(e=parseInt(tw()))?e:0)>1,o=nA(tv(),864e5),i=nA(tb(),6e4),a=tR(),s="true"===a,u=t&&o&&!i&&(n||!!a);l(i),c(u),u&&(s&&f(s),r(!0)),N({msgKey:j.CROSS_WINDOW_LOCALSTORAGE,onSuccess:(e,t={})=>{let{key:n,value:o}=t;o?localStorage.setItem(n,o):localStorage.removeItem(n)}})},[]);let y=g&&!!p&&!a,b=y&&nN.includes(window.location.hostname)?"os":void 0;return y?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(nj,{bottom:{tablet:"40px",mobile:"20px"},right:{tablet:"40px",mobile:"20px"},children:(0,h.jsx)(eG,{activate:i,unmountWhen:!0,children:(0,h.jsx)(V,{id:"chatbot-launcher-btn",onClick:()=>{r(!0)}})})}),(0,h.jsx)(nj,{bottom:"0",right:{mobile:"20px",tablet:"40px"},children:(0,h.jsx)(eQ,{activate:i,unmountWhen:!1,animY:{in:"0",out:"100px"},children:(0,h.jsx)(n_,{url:p,chatConfig:Object.assign(Object.assign({clientContext:u.Inline},t),{channel:null!=(n=null==t?void 0:t.channel)?n:b,started_on_page:null!=(o=null==t?void 0:t.started_on_page)?o:window.location.pathname}),isResuming:s,startMinimised:d,resetChatState:()=>{r(!1),l(!1),c(!1),f(!1)}})})})]}):null}],623996)},290808,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]).filter(i)};var o=/^(input|select|textarea|button|object|iframe)$/;function i(e){var t,n,i=e.getAttribute("tabindex");null===i&&(i=void 0);var r=isNaN(i);return(r||i>=0)&&(t=!r,n=e.nodeName.toLowerCase(),(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e),o=n.getPropertyValue("display");return t?"contents"!==o&&("visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0):"none"===o}catch(e){return console.warn("Failed to inspect element style"),!1}}(t))return!1;t=t.parentNode}return!0}(e))}t.exports=n.default},779197,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),n.resetState=function(){r=[]},n.log=function(){},n.handleBlur=s,n.handleFocus=u,n.markForFocusLater=function(){r.push(document.activeElement)},n.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{0!==r.length&&(t=r.pop()).focus({preventScroll:e});return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},n.popWithoutFocus=function(){r.length>0&&r.pop()},n.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",u))},n.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",u))};var o,i=(o=e.r(290808))&&o.__esModule?o:{default:o},r=[],a=null,l=!1;function s(){l=!0}function u(){l&&(l=!1,a&&setTimeout(function(){a.contains(document.activeElement)||((0,i.default)(a)[0]||a).focus()},0))}},474136,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var o=void 0,r=t.shiftKey,a=n[0],l=n[n.length-1],s=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===s){if(!r)return;o=l}if(l!==s||r||(o=a),a===s&&r&&(o=l),o){t.preventDefault(),o.focus();return}var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var c=n.indexOf(s);if(c>-1&&(c+=r?-1:1),void 0===(o=n[c])){t.preventDefault(),(o=r?l:a).focus();return}t.preventDefault(),o.focus()}};var o,i=(o=e.r(290808))&&o.__esModule?o:{default:o};t.exports=n.default},442656,(e,t,n)=>{"use strict";e.i(247167),t.exports=function(){}},447378,(e,t,n)=>{!function(){"use strict";var n=!!("u">typeof window&&window.document&&window.document.createElement),o={canUseDOM:n,canUseWorkers:"u">typeof Worker,canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseVie
341wport:n&&!!window.screen};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)e.r,void 0!==o&&e.v(o);else t.exports?t.exports=o:window.ExecutionEnvironment=o}()},123028,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.canUseDOM=n.SafeNodeList=n.SafeHTMLCollection=void 0;var o,i=((o=e.r(447378))&&o.__esModule?o:{default:o}).default,r=i.canUseDOM?window.HTMLElement:{};n.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},n.SafeNodeList=i.canUseDOM?window.NodeList:{},n.canUseDOM=i.canUseDOM,n.default=r},749633,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),n.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(a).forEach(function(e){return e.removeAttribute("aria-hidden")})),a=null},n.log=function(){},n.assertNodeList=l,n.setElement=function(e){var t=e;if("string"==typeof t&&r.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return a=t||a},n.validateElement=s,n.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var i,r=s(e)[Symbol.iterator]();!(t=(i=r.next()).done);t=!0)i.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&r.return&&r.return()}finally{if(n)throw o}}},n.show=function(e){var t=!0,n=!1,o=void 0;try{for(var i,r=s(e)[Symbol.iterator]();!(t=(i=r.next()).done);t=!0)i.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&r.return&&r.return()}finally{if(n)throw o}}},n.documentNotReadyOrSSRTesting=function(){a=null};var o,i=(o=e.r(442656))&&o.__esModule?o:{default:o},r=e.r(123028),a=null;function l(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}},162807,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),n.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in o)r(e,o[t]);var n=document.body;for(var a in i)r(n,i[a]);o={},i={}},n.log=function(){};var o={},i={};function r(e,t){e.classList.remove(t)}var a=function(e,t,n){n.forEach(function(n){t[n]||(t[n]=0),t[n]+=1,e.add(n)})},l=function(e,t,n){n.forEach(function(n){t[n]&&(t[n]-=1),0===t[n]&&e.remove(n)})};n.add=function(e,t){return a(e.classList,"html"==e.nodeName.toLowerCase()?o:i,t.split(" "))},n.remove=function(e,t){return l(e.classList,"html"==e.nodeName.toLowerCase()?o:i,t.split(" "))}},372811,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),n.log=function(){console.log("portalOpenInstances ----------"),console.log(i.openInstances.length),i.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},n.resetState=function(){i=new o};var o=function e(){var t=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.register=function(e){-1!==t.openInstances.indexOf(e)||(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1===n||(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},i=new o;n.default=i},943146,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),n.resetState=function(){for(var e=[r,a],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}r=a=null,l=[]},n.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[r,a],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var o,i=(o=e.r(372811))&&o.__esModule?o:{default:o},r=void 0,a=void 0,l=[];function s(){0===l.length||l[l.length-1].focusContent()}i.default.subscribe(function(e,t){r||a||((r=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),r.style.position="absolute",r.style.opacity="0",r.setAttribute("tabindex","0"),r.addEventListener("focus",s),(a=r.cloneNode()).addEventListener("focus",s)),(l=t).length>0?(document.body.firstChild!==r&&document.body.insertBefore(r,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(r.parentElement&&r.parentElement.removeChild(r),a.parentElement&&a.parentElement.removeChild(a))})},62245,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=e.r(271645),l=v(e.r(745009)),s=m(e.r(779197)),u=v(e.r(474136)),c=m(e.r(749633)),d=m(e.r(162807)),f=e.r(123028),p=v(f),h=v(e.r(372811));
341function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function v(e){return e&&e.__esModule?e:{default:e}}e.r(943146);var g={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,b=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,o=e.ariaHideApp,i=e.htmlOpenClassName,r=e.bodyOpenClassName,a=e.parentSelector,l=a&&a().ownerDocument||document;r&&d.remove(l.body,r),i&&d.remove(l.getElementsByTagName("html")[0],i),o&&y>0&&0==(y-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(s.returnFocus(n.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(s.setupScopedFocus(n.node),s.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){("Tab"===e.code||9===e.keyCode)&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&("Escape"===e.code||27===e.keyCode)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o=(void 0===t?"undefined":i(t))==="object"?t:{base:g[e],afterOpen:g[e]+"--after-open",beforeClose:g[e]+"--before-close"},r=o.base;return n.state.afterOpen&&(r=r+" "+o.afterOpen),n.state.beforeClose&&(r=r+" "+o.beforeClose),"string"==typeof t&&t?r+" "+t:r},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,o){return n[e+"-"+o]=t[o],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,r=e.parentSelector,a=r&&r().ownerDocument||document;i&&d.add(a.body,i),o&&d.add(a.getElementsByTagName("html")[0],o),n&&(y+=1,c.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,r=e.defaultStyles,a=e.children,l=n?{}:r.content,s=i?{}:r.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:o({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=o({id:t,ref:this.setContentRef,style:o({},l,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(c,a);return this.props.overlayElement(u,d)}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}}
341,b.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),parentSelector:l.default.func,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.oneOfType([l.default.instanceOf(p.default),l.default.instanceOf(f.SafeHTMLCollection),l.default.instanceOf(f.SafeNodeList),l.default.arrayOf(l.default.instanceOf(p.default))]),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func,testId:l.default.string},n.default=b,t.exports=n.default},758161,e=>{"use strict";function t(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function n(e){this.setState((function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}).bind(this))}function o(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}t.__suppressDeprecationWarning=!0,n.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,e.s(["polyfill",0,function(e){var i=e.prototype;if(!i||!i.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof i.getSnapshotBeforeUpdate)return e;var r=null,a=null,l=null;if("function"==typeof i.componentWillMount?r="componentWillMount":"function"==typeof i.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof i.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof i.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof i.componentWillUpdate?l="componentWillUpdate":"function"==typeof i.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==r||null!==a||null!==l)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==a?"\n "+a:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(i.componentWillMount=t,i.componentWillReceiveProps=n),"function"==typeof i.getSnapshotBeforeUpdate){if("function"!=typeof i.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");i.componentWillUpdate=o;var s=i.componentDidUpdate;i.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,o)}}return e}])},963749,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),n.bodyOpenClassName=n.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=e.r(271645),a=h(r),l=h(e.r(174080)),s=h(e.r(745009)),u=h(e.r(62245)),c=function(e){if(e&&e.__esMo
341dule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(e.r(749633)),d=e.r(123028),f=h(d),p=e.r(758161);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var v=n.portalClassName="ReactModalPortal",g=n.bodyOpenClassName="ReactModal__Body--open",y=d.canUseDOM&&void 0!==l.default.createPortal,b=function(e){return document.createElement(e)},O=function(){return y?l.default.createPortal:l.default.unstable_renderSubtreeIntoContainer},S=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var e,n,i,r=arguments.length,s=Array(r),c=0;c<r;c++)s[c]=arguments[c];return n=i=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.removePortal=function(){y||l.default.unmountComponentAtNode(i.node);var e=(0,i.props.parentSelector)();e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var n=O()(i,a.default.createElement(u.default,o({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(n)},m(i,n)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),i(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(y||(this.node=b("div")),this.node.className=this.props.portalClassName,(0,this.props.parentSelector)().appendChild(this.node),y||this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:(0,e.parentSelector)(),nextParent:(0,this.props.parentSelector)()}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var o=this.props,i=o.isOpen,r=o.portalClassName;e.portalClassName!==r&&(this.node.className=r);var a=n.prevParent,l=n.nextParent;l!==a&&(a.removeChild(this.node),l.appendChild(this.node)),(e.isOpen||i)&&(y||this.renderPortal(this.props))}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&y?(!this.node&&y&&(this.node=b("div")),O()(a.default.createElement(u.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(r.Component);S.propTypes={isOpen:s.default.bool.isRequired,style:s.default.shape({content:s.default.object,overlay:s.default.object}),portalClassName:s.default.string,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,className:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),overlayClassName:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(d.SafeHTMLCollection),s.default.instanceOf(d.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,ariaHideApp:s.default.bool,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,parentSelector:s.default.func,aria:s.default.object,data:s.default.object,role:s.default.string,contentLabel:s.default.string,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func},S.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:g,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},S.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(S),n.default=S},719507,(e,t,n)=>{"use strict";var o;Object.defineProperty(n,"__esModule",{value:!0}),n.default=((o=e.r(963749))&&o.__esModule?o:{default:o}).default,t.exports=n.default}]);
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.