PageSourceSearch

https://my.dnb.com/src_components_pages_ResetPasswordPage_ResetPas…oastify_dist-49d7f4.d06a852dd99efdc2fa5a.js

js dnb.com collected 2026-09-24 09:07:58 UTC 42,597 bytes, 2 lines download raw bytes

1/*! For license information please see src_components_pages_ResetPasswordPage_ResetPasswordPage_tsx-node_modules_react-toastify_dist-49d7f4.d06a852dd99efdc2fa5a.js.LICENSE.txt */
2(self.webpackChunkmarketplace_portal_ui=self.webpackChunkmarketplace_portal_ui||[]).push([["src_components_pages_ResetPasswordPage_ResetPasswordPage_tsx-node_modules_react-toastify_dist-49d7f4"],{56460(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>G});var s=n(22104),a=n(82493),o=n(11411),r=n(43557),i=n(89751),l=n(96540),c=n(60961),d=n(70439),u=n(3068),p=n(90679),m=n(74143),f=n(18573),h=n(56347),g=n(20008),x=n(88868),w=n(7822),v=n(54625),b=n(72155),y=n(16876);const j=function(){var e,t=(e=new URLSearchParams(window.location.search).get("product")||"").includes("Essential")?"SSVI":["studiotrial","Analytics STD Trial"].includes(e)?"studiotrial":null!=e&&e.toLowerCase().includes("hoovers")?"HOOVERS":"ZETA",n=(0,b.$)(),s="https://www.dnb.com/marketing/analytics/dnb-analytics-studio-free-trial.html";if("ZETA"===t)switch(n){case"prod":s="https://www.dnb.com/products/small-business/rev-up-now-basic-demo.html";break;case"stg":s="https://".concat(y.Lz.STG,".dnb.com/products/small-business/rev-up-now-basic-demo.html");break;default:s="https://".concat(y.Lz.QA,".dnb.com/products/small-business/rev-up-now-basic-demo.html")}else if("SSVI"===t)switch(n){case"prod":s="https://www.dnb.com/products/marketing-sales/dnb-rev-up-cloud/rev-up-abx/web-essential.html";break;case"stg":s="https://".concat(y.Lz.STG,".dnb.com/products/marketing-sales/dnb-rev-up-cloud/rev-up-abx/web-essential.html");break;default:s="https://".concat(y.Lz.QA,".dnb.com/products/marketing-sales/dnb-rev-up-cloud/rev-up-abx/web-essential.html")}else if("studiotrial"===t)switch(n){case"prod":s="https://www.dnb.com/marketing/analytics/dnb-analytics-studio-free-trial.html";break;case"stg":s="https://".concat(y.Lz.STG,".dnb.com/marketing/analytics/dnb-analytics-studio-free-trial.html");break;default:s="https://".concat(y.Lz.QA,".dnb.com/marketing/analytics/dnb-analytics-studio-free-trial.html")}else"HOOVERS"===t&&(s="prod"===n?"https://www.dnb.com/en-us/products/featured/dnb-hoovers-now.html":"https://".concat(y.Lz.STG,".dnb.com/en-us/products/featured/dnb-hoovers-now.html"));return{expiredLinkURL:s,product:t}};var T=n(74848);function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}const I=function(e){var t,s,a=e.passwordResetState,o=void 0===a?"success":a,r=(t=(0,l.useState)(!1),s=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,a,o,r,i=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(s=o.call(n)).done)&&(i.push(s.value),i.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw a}}return i}}(t,s)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(t,s)||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.")}()),i=r[0],d=r[1],u=o,p=j(),m=p.expiredLinkURL,f=p.product;(0,l.useEffect)(function(){"success"!==u&&"userRegistrationSuccess"!==u||setTimeout(function(){d(!0)},5e3)},[]);var g=window.location.pathname,w="/confirmRegistration"===g||"/continueRegistration"===g?"registration-class":"";return i?(0,T.jsx)(h.rd,{to:(0,x.PX)("/login")}):(0,T.jsx)("div",{className:"m-auto box-border flex h-full w-full max-w-435p flex-col justify-between bg-white p-5 tablet:h-349p tablet:rounded-md tablet:p-30p ".concat("failure"===u?"tablet:h-300p":""),children:(0,T.jsxs)("div",{className:"".concat(w," ").concat("success"===u||"userRegistrationSuccess"===u?"py-12 px-16 text-center tablet:pt-4 tablet:px-12 tablet:pb-0":""," ").concat("userRegistrationSuccess"===u?"m-auto":""),children:["success"===u&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(c.Translate,{className:"text-xl",value:"password-reset:success-message"}),(0,T.jsx)("div",{className:"my-5",children:(0,T.jsx)(v.Link,{to:{pathname:(0,x.PX)("/login"),state:location.pathname},className:"text-bg-dark-blue hover:text-hover-color",children:(0,T.jsx)(c.Translate,{value:"return-login-with-new-password"})})}),(0,T.jsx)("img",{src:n(31404),alt:"success",className:"m-auto justify-self-center"})]}),"userRegistrationSuccess"===u&&(0,T.jsxs)("div",{className:"m-auto",children:[(0,T.jsx)(c.Translate,{className:"text-xl",value:"account-has-been-verified"}),(0,T.jsx)("div",{className:"my-5",children:(0,T.jsx)(v.Link,{to:{pathname:(0,x.PX)("/login"),state:location.pathname},className:"text-bg-dark-blue hover:text-hover-color",children:(0,T.jsx)(c.Translate,{value:"return-login-link-text"})})}),(0,T.jsx)("img",{src:n(31404),alt:"success",className:"m-auto justify-self-center"})]}),"failure"===u&&"/confirmRegistration"!==g&&"/continueRegistration"!==g&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("h1",{className:"heading",children:c.I18n.t("password-reset")}),(0,T.jsxs)("div",{className:"tablet:my-5",children:[(0,T.jsx)(c.Translate,{className:"text-sm",value:"password-reset:failure-message"})," ",(0,T.jsx)(v.Link,{to:"/forgot-password",className:"text-sm text-bg-dark-blue hover:text-hover-color",children:(0,T.jsx)(c.Translate,{value:"password-reset:reset-link"})})]})]}),"failure"===u&&("/confirmRegistration"===g||"/continueRegistration"===g)&&(0,T.jsxs)("div",{className:"m-auto max-w-[297px] text-center",children:[(0,T.jsx)(c.Translate,{className:"text-xl text-dark-grayish",value:"registration:expired-message"}),(0,T.jsx)("div",{className:"tablet:my-5",children:(0,T.jsx)("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-bg-dark-blue hover:text-hover-color",children:(0,T.jsx)(c.Translate,{value:"registration:expired-link:".concat(f),className:"whitespace-nowrap",dangerousHTML:!0})})})]})]})})};function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,a,o,r,i=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(s=o.call(n)).done)&&(i.push(s.value),i.length!==t);l=!0);}catch(e){c=!0,a=e}
2finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(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 N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}const E=function(){var e=(0,w.jL)(),t=(0,w.GV)(function(e){return e.app.profileDetails}),n=C((0,l.useState)(""),2),a=n[0],o=n[1],r=C((0,l.useState)(""),2),i=r[0],v=r[1],b=C((0,l.useState)(!0),2),y=b[0],j=b[1],k=C((0,l.useState)(!0),2),N=k[0],E=k[1],S=C((0,l.useState)(!1),2),L=S[0],R=S[1],_=C((0,l.useState)(!1),2),A=_[0],O=_[1],F=C((0,l.useState)(""),2),P=F[0],M=F[1],D=C((0,l.useState)("register:common-error-message"),2),U=D[0],$=D[1],z=C((0,l.useState)(!0),2),B=z[0],V=z[1],G=C((0,l.useState)(!1),2),H=G[0],K=G[1],q=C((0,l.useState)(!1),2),Q=q[0],X=q[1],W=C((0,l.useState)(!1),2),Y=W[0],Z=W[1],J=C((0,l.useState)(!1),2),ee=J[0],te=J[1],ne=C((0,l.useState)(!1),2),se=ne[0],ae=ne[1],oe=(0,g.A)("product").getSpecificValue,re=(0,g.A)("token").getSpecificValue,ie=(0,s.C)().flow,le="gtm-click-set-password".concat(ie?"-".concat(ie):"");(0,l.useEffect)(function(){"/continueRegistration"===window.location.pathname&&te(!0),"passwordExpired"===re?K(!0):function(t,n){e((0,f.F6)(!0)),(0,x.k9)(t).then(function(e){e.status?"/confirmRegistration"===window.location.pathname?(0,x.xW)(t,n).then(function(e){e.status?(ae(!0),M("valid")):M("not-valid")}).catch(function(){return M("not-valid")}):M("valid"):M("not-valid")}).catch(function(){return M("not-valid")}).finally(function(){return e((0,f.F6)(!1))})}(re,oe)},[]);var ce=function(){if(!a&&!i)return R(!0),j(!0),E(!0),Z(!1),void X(!1);var n,s;if(R(!1),(n=(0,m.A)(a,u.password,j))||Z(!0),s=de(i,a),n&&s){e((0,f.F6)(!0));var o={token:re,newPassword:a,retypePassword:i};H&&(o={emailId:t.email,newPassword:a,retypePassword:i,oldPassword:t.password}),(0,x.xw)(o,H,ee).then(function(e){null!=e&&e.redirectUrl?window.open(atob(e.redirectUrl),"_self"):200===e.status.code&&O(!0)}).catch(function(e){500==e.code?(R(!0),V(!1),$(c.I18n.t("change-password-error:generic"))):(R(!0),V(!1),$(c.I18n.t("change-password-error:code-".concat(e.errorCode))))}).finally(function(){return e((0,f.F6)(!1))})}},de=function(e,t){return e&&e===t?(E(!0),!0):(E(!1),!1)};return H&&void 0===t.email?(0,T.jsx)(h.rd,{to:"/login"}):(0,T.jsxs)("div",{className:"m-auto flex flex-1 desktop:w-435p desktop:flex-none desktop:h-fit ".concat(A?"desktop:m-auto":"desktop:m-[40px_auto]"),children:[!(A||se)&&("valid"===P||H&&t.email)&&(0,T.jsx)("div",{className:"m-auto box-border flex h-full w-full max-w-435p flex-col justify-between rounded-md bg-white p-5 desktop:block desktop:h-auto desktop:p-30p",children:(0,T.jsx)("form",{children:(0,T.jsxs)("div",{children:[(0,T.jsx)("div",{className:"mb-0 text-grayish-blue-font",children:(0,T.jsx)("h1",{className:"mt-0 text-xl font-normal text-dark-grayish",children:c.I18n.t("password-reset")})}),(0,T.jsx)("p",{className:"mb-0 text-sm text-grayish-blue-font",children:c.I18n.t("password-reset:info")}),(0,T.jsx)(p.A,{showErrorMessage:L,message:U,doTranslate:B}),(0,T.jsx)(d.A,{classOverride:"h-60p transition-all duration-300\n                                        ".concat(Q?"opacity-100 visible !h-140p transition-all duration-300 ease-in-out":"","\n                                        ").concat(Y?"!h-140p":""),label:c.I18n.t("password-reset:new-password"),labelFor:"newPassword",value:a,isValid:y,isLabelInside:!0,errorMessage:(0,T.jsx)(c.Translate,{value:"password:valid-password-helper-text",dangerousHTML:!0}),helperText:(0,T.jsx)(c.Translate,{value:"password:valid-password-helper-text",dangerousHTML:!0}),helperTextClass:"pl-4",inputType:"password",onChange:function(e){var t,n=null==e||null===(t=e.target)||void 0===t?void 0:t.value;o(n),R(!1),j(!0),Z(!1)},passwordTypeToggleFlag:!0,onKeyDown:function(e){(0,m.e)(e)&&ce()},onFocus:function(){X(!0)},onBlur:function(){X(!1)}}),(0,T.jsx)(d.A,{label:c.I18n.t("password-reset:retype-password"),labelFor:"reTypeNewPasssword",value:i,isValid:N,isLabelInside:!0,errorMessage:c.I18n.t("password:mismatch-error"),inputType:"password",onChange:function(e){var t,n=null==e||null===(t=e.target)||void 0===t?void 0:t.value;v(n),R(!1),E(!0)},passwordTypeToggleFlag:!0,onKeyDown:function(e){(0,m.e)(e)&&ce()}}),(0,T.jsx)("button",{type:"button",className:"btn full-width btn-pill-cyan","data-tracking-id":le,onClick:ce,children:c.I18n.t("password-reset:button-update")})]})})}),A&&(0,T.jsx)(I,{}),"valid"===P&&se&&(0,T.jsx)(I,{passwordResetState:"userRegistrationSuccess"}),!H&&"not-valid"===P&&(0,T.jsx)(I,{passwordResetState:"failure"})]})};var S=n(9072),L=n(92516),R=n(37733),_=n(21277);const A=function(e){var t=e.passwordResetState,a=void 0===t?"success":t,o=window.location.pathname,r="/confirmRegistration"===o||"/continueRegistration"===o?"registration-class":"",i=(0,s.C)(),l=i.flowParams,d=i.flow,u=j(),p=u.expiredLinkURL,m=u.product;return(0,T.jsx)("div",{className:"w-full max-w-435p box-border bg-bg-primary-light-blue mx-auto h-full flex flex-col p-5 justify-between md:rounded-5p md:h-349p md:p-30p",children:(0,T.jsxs)("div",{className:"".concat("success"===a?"text-center p-12 px-16 md:p-4 md:px-12 md:pb-0":""," ").concat("userRegistrationSuccess"===a?"m-auto text-center p-12 px-16 md:p-4 md:px-12 md:pb-0":""," ").concat("failure"===a&&r?"m-auto text-center max-w-[297px]":""," flex flex-col items-center"),children:["success"===a&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(c.Translate,{className:"text-xl",value:"password-reset:success-message"}),(0,T.jsx)("div",{className:"my-5",children:"FreemiumUKI"===d||"CIUKIFree"===d?(0,T.jsx)(T.Fragment,{}):(0,T.jsx)(v.Link,{to:(0,x.PX)("Hoovers"!==m||d?"/duns-application":"/login"),
2className:"hyper-link",children:(0,T.jsx)(c.Translate,{value:"return-login-with-new-password"})})}),(0,T.jsx)("img",{src:n(31404),alt:"success"})]}),"userRegistrationSuccess"===a&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(c.Translate,{className:"text-xl",value:"account-has-been-verified"}),(0,T.jsx)("div",{className:"my-5",children:(0,T.jsx)(v.Link,{to:{pathname:(0,x.PX)("/login"),state:location.pathname},className:"hyper-link",children:(0,T.jsx)(c.Translate,{value:"return-login-link-text"})})}),(0,T.jsx)("img",{src:n(31404),alt:"success"})]}),"failure"===a&&"/confirmRegistration"!==o&&"/continueRegistration"!==o&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("h1",{className:"heading",children:c.I18n.t("password-reset")}),(0,T.jsxs)("div",{className:"md:my-5",children:[(0,T.jsx)(c.Translate,{className:"text-sm",value:"password-reset:failure-message"}),(0,T.jsx)(v.Link,{to:(0,_.P)(d,l.forgotPasswordLink),className:"hyper-link text-sm",children:(0,T.jsx)(c.Translate,{value:"password-reset:reset-link"})})]})]}),"failure"===a&&("/confirmRegistration"===o||"/continueRegistration"===o)&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(c.Translate,{className:"text-xl text-dark-grayish",value:"registration:expired-message"}),(0,T.jsx)("div",{className:"md:my-5",children:(0,T.jsx)("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"hyper-link text-sm",children:(0,T.jsx)(c.Translate,{value:"registration:expired-link:".concat(m),className:"whitespace-nowrap",dangerousHTML:!0})})})]})]})})},O=function(e){var t=e.title,n=e.description,s=e.children;return(0,T.jsx)("div",{className:"main mx-auto font-defaultFontFamily desktop:max-w-[55rem] tablet:items-center mobile:p-[24px]",children:(0,T.jsxs)("div",{className:"desktop:grid desktop:grid-cols-2 desktop:gap-8 flex flex-col gap-8 mt-6 md:w-[500px] lg:w-[50rem] md:pt-[6.875rem] md:mx-auto",children:[(0,T.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[(0,T.jsx)("div",{className:"text-[2.25rem] font-normal leading-tight",children:(0,T.jsx)("label",{className:"text-[50px] font-[300] font-avenirProLight",children:t})}),n&&(0,T.jsx)("div",{className:"text-xl text-gray font-avenirProLight font-[400]",children:n})]}),(0,T.jsx)("div",{className:"flex flex-col items-center gap-6",children:s})]})})};function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,a,o,r,i=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(s=o.call(n)).done)&&(i.push(s.value),i.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(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 P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}var M=(0,T.jsxs)("ul",{className:"flex flex-col items-start gap-1 pl-3 text-dnb-cpl-box-shadow text-sm  leading-5 tracking-[0.1px]",children:[(0,T.jsx)("li",{children:"Ten characters"}),(0,T.jsx)("li",{children:"One uppercase"}),(0,T.jsx)("li",{children:"One lowercase"}),(0,T.jsx)("li",{children:"One number"}),(0,T.jsx)("li",{children:"One special character"}),(0,T.jsx)("li",{children:"And not been used in the past five passwords"})]}),D=(0,T.jsxs)("ul",{className:"list-disc list-inside",children:[(0,T.jsx)("li",{children:"Minimum 10 characters in length"}),(0,T.jsx)("li",{children:"At least One Lower Case "}),(0,T.jsx)("li",{children:"At least One Upper Case "}),(0,T.jsx)("li",{children:"At least One numeric"}),(0,T.jsx)("li",{children:"At least One Special Character"}),(0,T.jsx)("li",{children:"Not have been used in the last 5 passwords"})]});const U=function(){var e=(0,w.jL)(),t=(0,w.GV)(function(e){return e.app.profileDetails}),n=(0,s.C)(),a=n.flowParams,o=n.flow,r=n.isSpecialFlow,i=(0,g.A)("product").getSpecificValue,b=(0,g.A)("token").getSpecificValue,j=(0,g.A)("c
2ountryId").getSpecificValue,k=F((0,l.useState)(""),2),I=k[0],C=k[1],N=F((0,l.useState)(""),2),E=N[0],_=N[1],P=F((0,l.useState)(!0),2),U=P[0],$=P[1],z=F((0,l.useState)(!0),2),B=z[0],V=z[1],G=F((0,l.useState)(!1),2),H=G[0],K=G[1],q=F((0,l.useState)(!1),2),Q=q[0],X=q[1],W=F((0,l.useState)(""),2),Y=W[0],Z=W[1],J=F((0,l.useState)("register:common-error-message"),2),ee=J[0],te=J[1],ne=F((0,l.useState)(!0),2),se=ne[0],ae=ne[1],oe=F((0,l.useState)(!1),2),re=oe[0],ie=oe[1],le=F((0,l.useState)(!1),2),ce=le[0],de=le[1],ue=F((0,l.useState)(!1),2),pe=ue[0],me=ue[1],fe=F((0,l.useState)(!1),2),he=fe[0],ge=fe[1],xe=F((0,l.useState)(!1),2),we=xe[0],ve=xe[1],be="gtm-click-set-password".concat(o?"-".concat(o):""),ye=function(){return o===y.MD?(0,L.V4)():a.signinLink};(0,l.useEffect)(function(){"/continueRegistration"===window.location.pathname&&ge(!0),"passwordExpired"===b?ie(!0):function(t,n,s){e((0,f.F6)(!0)),(0,x.k9)(t).then(function(e){e.status?"/confirmRegistration"===window.location.pathname?(0,x.xW)(t,n).then(function(e){e.status?(ve(!0),Z("valid")):Z("not-valid")}).catch(function(){return Z("not-valid")}):"/continueRegistration"===window.location.pathname&&"Free Duns"===n&&"DUNS"===s?window.open("/set-password?token=".concat(t,"&product=Free%20Duns&flow=GAD"),"_self"):"/continueRegistration"===window.location.pathname&&"Existing Duns"===n&&"ExistDUNS"===s?window.open("/set-password?token=".concat(t,"&product=Existing%20Duns&flow=").concat(s),"_self"):"/continueRegistration"===window.location.pathname&&"Gated Content"===n&&"Gated Content"===s?window.open("/set-password?token=".concat(t,"&product=Gated%20Content&flow=Gated%20Content"),"_self"):"/continueRegistration"===window.location.pathname&&"Credit Signal"===n&&"FreemiumUKI"===s?window.open("/set-password?token=".concat(t,"&product=Credit%20Signal&flow=FreemiumUKI"),"_self"):"/continueRegistration"===window.location.pathname&&"Credit Insights Free"===n&&"CIUKIFree"===s?window.open("/set-password?token=".concat(t,"&product=Credit%20Insights%20Free&flow=CIUKIFree&countryId=").concat(j),"_self"):"/continueRegistration"===window.location.pathname&&"Credit Insights"===n&&"CI"===s?window.open("/set-password?token=".concat(t,"&product=Credit%20Insights&flow=CI"),"_self"):"/continueRegistration"===window.location.pathname&&"Credit Insights"===n&&"CreditInsights"===s?window.open("/set-password?token=".concat(t,"&product=Credit%20Insights&flow=CreditInsights"),"_self"):Z("valid"):Z("not-valid")}).catch(function(){return Z("not-valid")}).finally(function(){return e((0,f.F6)(!1))})}(b,i,o)},[]);var je=function(){if(!I&&!E)return K(!0),$(!0),V(!0),me(!1),void de(!1);var n,s;if(K(!1),(n=(0,m.A)(I,u.password,$))||me(!0),s=Te(E,I),n&&s){e((0,f.F6)(!0));var a={token:b,newPassword:I,retypePassword:E};re&&(a={emailId:t.email,newPassword:I,retypePassword:E,oldPassword:t.password}),(0,x.xw)(a,re,he).then(function(e){if(200===e.status.code){X(!0),(0,R.f)("Your password has been reset.","");var t=e.encryptedDuns?"?flow=".concat(o,"&dunsNumber=").concat(e.encryptedDuns):"?flow=".concat(o);setTimeout(function(){if("Hoovers"===i)window.open("/login","_self");else if(e.redirectUrl){var n;(null===(n=e.redirectUrl)||void 0===n?void 0:n.match({CIUKIFree:/\/signin\?flow=CIUKIFree&dunsNumber=[a-z0-9]*&countryId=(IE|GB)/,"Gated%20Content":/[\s\S]/}[o||"Gated%20Content"]).length)>0&&window.open("".concat(e.redirectUrl).concat("CIUKIFree"==o?"":"?flow=Gated%20Content"),"_self")}else o===y.MD?window.open((0,L.V4)(),"_self"):window.open("/signin".concat(t).concat("CIUKIFree"===o&&null!=e&&e.countryId?"&countryId=".concat(null==e?void 0:e.countryId):""),"_self")},5e3)}}).catch(function(e){500==e.code?(K(!0),ae(!1),te(c.I18n.t("change-password-error:generic"))):(K(!0),ae(!1),te(c.I18n.t("change-password-error:code-".concat(e.errorCode))))}).finally(function(){return e((0,f.F6)(!1))})}},Te=function(e,t){return e&&e===t?(V(!0),!0):(V(!1),!1)},ke=function(){return re&&void 0===t.email?(0,T.jsx)(h.rd,{to:"/login"}):(0,T.jsxs)("div",{className:"m-auto flex flex-1 desktop:w-435p desktop:flex-none desktop:h-fit ".concat(Q?"desktop:m-auto":"desktop:m-[40px_auto]","  ").concat(r?"!mt-0 !w-full":""),children:[!(Q||we)&&("valid"===Y||re&&t.email)&&(0,T.jsx)("div",{className:"".concat(r?"font-avenirProMedium":""," m-auto box-border flex h-full w-full max-w-435p flex-col justify-between rounded-md  p-5 desktop:block desktop:h-auto desktop:p-30p ").concat(r?"!p-0":""),children:(0,T.jsxs)("form",{children:[(0,T.jsxs)("div",{className:"flex flex-col ".concat(r?"flex flex-col items-start gap-6 flex-1 mb-6":""),children:[!r&&(0,T.jsx)("div",{className:"mb-0 text-grayish-blue-font",children:(0,T.jsx)("h1",{className:"mt-0 text-xl font-normal text-dark-grayish",children:c.I18n.t("password-reset")})}),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("div",{children:[(0,T.jsx)("p",{className:"text-dnb-cpl-box-shadow text-base leading-6 tracking-[0.1px]",children:r?c.I18n.t("password-reset:message-GAD"):c.I18n.t("password-reset:info-GAD")}),(0,T.jsx)("div",{className:"text-sm text-dark-grayish list-disc",children:r?M:"CIUKIFree"===o?D:(0,T.jsx)(c.Translate,{value:"password:valid-password-helper
2-text",dangerousHTML:!0})})]}),H&&(0,T.jsx)(p.A,{showErrorMessage:H,message:ee,doTranslate:se})]}),(0,T.jsxs)("div",{className:"w-full",children:[(0,T.jsx)("p",{className:"text-dnb-cpl-box-shadow text-base leading-6 tracking-[0.1px] mb-1.5 ".concat(H?"mt-4":""),children:"Password*"}),(0,T.jsx)(d.A,{classOverride:"transition-all duration-300 mb-5 ".concat(ce?"h-140p":""," ").concat(pe?"!h-140p":""," ").concat(r?"!mb-0":""),inputClassOverride:"".concat(r?"!h-11 !px-3 !py-2.5 !mb-0 !rounded-lg bg-white border border-black":"!rounded-lg border border-black !py-0"),labelFor:"newPassword",value:I,isValid:U,errorMessage:(0,T.jsx)(c.Translate,{value:"password:valid-password-helper-text",dangerousHTML:!0}),helperText:(0,T.jsx)(c.Translate,{value:"password:valid-password-helper-text",dangerousHTML:!0}),inputType:"password",onChange:function(e){var t=e.target.value;C(t),K(!1),$(!0),me(!1)},passwordTypeToggleFlag:!0,onKeyDown:function(e){(0,m.e)(e)&&je()},isGad:r,helperTextClass:"CIUKIFree"===o?"hidden":""})]}),(0,T.jsxs)("div",{className:"w-full",children:[(0,T.jsx)("p",{className:"text-dnb-cpl-box-shadow text-base leading-6 tracking-[0.1px] mb-1.5 ".concat(r?"":"mt-6"),children:"Verify Password*"}),(0,T.jsx)(d.A,{inputClassOverride:"".concat(r?"!h-11 !px-3 !py-2.5  !mb-0 !rounded-lg bg-white border border-black":"!rounded-lg border border-black !py-0"),classOverride:"".concat(r?"!mb-0":""),labelFor:"reTypeNewPasssword",value:E,isValid:B,errorMessage:c.I18n.t("password:mismatch-error"),inputType:"password",onChange:function(e){var t=e.target.value;_(t),K(!1),V(!0)},passwordTypeToggleFlag:!0,onKeyDown:function(e){(0,m.e)(e)&&je()},isGad:r})]}),(0,T.jsx)("button",{type:"button",className:r?"flex items-center bg-blue-dark text-white-color rounded-full cursor-pointer border-none font-[500] text-[18px] bg-hover-color text-white pt-[12px] pr-[48px] pl-[48px] pb-[10px] w-fit":"w-full h-11 rounded-lg my-6 inline-block font-normal text-center align-middle touch-manipulation cursor-pointer border border-transparent whitespace-nowrap px-4 py-2.5 text-sm leading-none bg-launch-text text-white hover:bg-blue-background active:bg-blue-active","data-tracking-id":be,onClick:je,children:c.I18n.t(r?"duns-application:password-button":"password-reset:button-update-GAD")})]}),(0,T.jsx)("div",{className:"text-center items-center",children:(0,T.jsx)("span",{className:"".concat(r?"flex underline underline-offset-4":"flex justify-center"),children:o===y.MD?(0,T.jsx)("a",{href:ye(),className:"flex justify-center no-underline",children:(0,T.jsx)("span",{"data-tracking-id":be,className:"ml-2.5",children:"Cancel"})}):(0,T.jsx)(v.Link,{to:ye(),className:"flex justify-center no-underline",children:(0,T.jsx)("span",{"data-tracking-id":be,className:"ml-2.5",children:"Cancel"})})})})]})}),Q&&(0,T.jsx)(A,{}),"valid"===Y&&we&&(0,T.jsx)(A,{passwordResetState:"userRegistrationSuccess"}),!re&&"not-valid"===Y&&(0,T.jsx)(A,{passwordResetState:"failure"}),(0,T.jsx)(S.N9,{position:"bottom-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!1,closeButton:!1,rtl:!1,pauseOnFocusLoss:!1,pauseOnHover:!1})]})};return r&&!we&&"valid"===Y?(0,T.jsx)(O,{title:c.I18n.t("duns-application:password-heading"),children:ke()}):ke()};var $=n(71607),z=n(49381),B=n(59635),V=function(){var e=(0,s.C)(),t=e.flow,n=e.isSpecialFlow;return(0,T.jsx)("section",{className:"reset-password-gad form-container !h-screen ".concat(n||"CIUKIFree"===t?"border-l-0 bg-bg-primary-light-blue":""),children:(0,T.jsx)(U,{})})};const G=function(){var e=(0,w.GV)(function(e){return e.app.isFullPageLoading}),t=(0,s.C)(),n=t.flow,l=t.isSpecialFlow;return n||l?(0,T.jsx)("div",{className:"gadApp",children:(0,T.jsxs)(r.A,{children:[(0,T.jsx)(z.d,{isShowDesktopLogo:l,source:n}),(0,T.jsx)($.A,{flow:n||y.CS,ShowComponent:V}),(0,T.jsx)(B.A,{isLoading:e})]})}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(r.A,{children:[(0,T.jsx)(a.A,{}),(0,T.jsx)(o.A,{children:(0,T.jsx)(E,{})}),(0,T.jsx)(B.A,{isLoading:e})]}),(0,T.jsx)(i.A,{})]})}},72155(e,t,n){"use strict";n.d(t,{$:()=>s});var s=function(){return window.location.href.indexOf("qa")>-1||window.location.href.indexOf("dev")>-1||window.location.href.indexOf("localhost")>-1?"qa":window.location.href.indexOf("stg")>-1?"stg":"prod"}},31404(e,t,n){e.exports=n.p+"languages/checkmark.svg"},83482(){},9072(e,t,n){"use strict";n.d(t,{N9:()=>I,oR:()=>F});var s=n(96540);function a(e){var t,n,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=a(e[t]))&&(s&&(s+=" "),s+=n);else for(t in e)e[t]&&(s&&(s+=" "),s+=t);return s}const o=function(){for(var e,t,n=0,s="";n<arguments.length;)(e=arguments[n++])&&(t=a(e))&&(s&&(s+=" "),s+=t);return s},r=e=>"number"==typeof e&&!isNaN(e),i=e=>"string"==typeof e,l=e=>"function"==typeof e,c=e=>i(e)||l(e)?e:null,d=e=>(0,s.isValidElement)(e)||i(e)||l(e)||r(e);function u(e){let{enter:t,exit:n,appendPosition:a=!1,collapse:o=!0,collapseDuration:r=300}=e;return function(e){let{children:i,position:l,preventExitTransition:c,done:d,nodeRef:u,isIn:p}=e;const m=a?`${t}--${l}`:t,f=a?`${n}--${l}
2`:n,h=(0,s.useRef)(0);return(0,s.useLayoutEffect)(()=>{const e=u.current,t=m.split(" "),n=s=>{s.target===u.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===h.current&&"animationcancel"!==s.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),(0,s.useEffect)(()=>{const e=u.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:s,style:a}=e;requestAnimationFrame(()=>{a.minHeight="initial",a.height=s+"px",a.transition=`all ${n}ms`,requestAnimationFrame(()=>{a.height="0",a.padding="0",a.margin="0",setTimeout(t,n)})})}(e,d,r):d()};p||(c?t():(h.current=1,e.className+=` ${f}`,e.addEventListener("animationend",t)))},[p]),s.createElement(s.Fragment,null,i)}}function p(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const m={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(e=>e!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},f=e=>{let{theme:t,type:n,...a}=e;return s.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...a})},h={info:function(e){return s.createElement(f,{...e},s.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return s.createElement(f,{...e},s.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return s.createElement(f,{...e},s.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return s.createElement(f,{...e},s.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return s.createElement("div",{className:"Toastify__spinner"})}};function g(e){const[,t]=(0,s.useReducer)(e=>e+1,0),[n,a]=(0,s.useState)([]),o=(0,s.useRef)(null),u=(0,s.useRef)(new Map).current,f=e=>-1!==n.indexOf(e),g=(0,s.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:f,getToast:e=>u.get(e)}).current;function x(e){let{containerId:t}=e;const{limit:n}=g.props;!n||t&&g.containerId!==t||(g.count-=g.queue.length,g.queue=[])}function w(e){a(t=>null==e?[]:t.filter(t=>t!==e))}function v(){const{toastContent:e,toastProps:t,staleId:n}=g.queue.shift();y(e,t,n)}function b(e,n){let{delay:a,staleId:f,...x}=n;if(!d(e)||function(e){return!o.current||g.props.enableMultiContainer&&e.containerId!==g.props.containerId||u.has(e.toastId)&&null==e.updateId}(x))return;const{toastId:b,updateId:j,data:T}=x,{props:k}=g,I=()=>w(b),C=null==j;C&&g.count++;const N={...k,style:k.toastStyle,key:g.toastKey++,...Object.fromEntries(Object.entries(x).filter(e=>{let[t,n]=e;return null!=n})),toastId:b,updateId:j,data:T,closeToast:I,isIn:!1,className:c(x.className||k.toastClassName),bodyClassName:c(x.bodyClassName||k.bodyClassName),progressClassName:c(x.progressClassName||k.progressClassName),autoClose:!x.isLoading&&(E=x.autoClose,S=k.autoClose,!1===E||r(E)&&E>0?E:S),deleteToast(){const e=p(u.get(b),"removed");u.delete(b),m.emit(4,e);const n=g.queue.length;if(g.count=null==b?g.count-g.displayedToast:g.count-1,g.count<0&&(g.count=0),n>0){const e=null==b?g.props.limit:1;if(1===n||1===e)g.displayedToast++,v();else{const t=e>n?n:e;g.displayedToast=t;for(let e=0;e<t;e++)v()}}else t()}};var E,S;N.iconOut=function(e){let{theme:t,type:n,isLoading:a,icon:o}=e,c=null;const d={theme:t,type:n};return!1===o||(l(o)?c=o(d):(0,s.isValidElement)(o)?c=(0,s.cloneElement)(o,d):i(o)||r(o)?c=o:a?c=h.spinner():(e=>e in h)(n)&&(c=h[n](d))),c}(N),l(x.onOpen)&&(N.onOpen=x.onOpen),l(x.onClose)&&(N.onClose=x.onClose),N.closeButton=k.closeButton,!1===x.closeButton||d(x.closeButton)?N.closeButton=x.closeButton:!0===x.closeButton&&(N.closeButton=!d(k.closeButton)||k.closeButton);let L=e;(0,s.isValidElement)(e)&&!i(e.type)?L=(0,s.cloneElement)(e,{closeToast:I,toastProps:N,data:T}):l(e)&&(L=e({closeToast:I,toastProps:N,data:T})),k.limit&&k.limit>0&&g.count>k.limit&&C?g.queue.push({toastContent:L,toastProps:N,staleId:f}):r(a)?setTimeout(()=>{y(L,N,f)},a):y(L,N,f)}function y(e,t,n){const{toastId:s}=t;n&&u.delete(n);const o={content:e,props:t};u.set(s,o),a(e=>[...e,s].filter(e=>e!==n)),m.emit(4,p(o,null==o.props.updateId?"added":"updated"))}return(0,s.useEffect)(()=>(g.containerId=e.containerId,m.cancelEmit(3).on(0,b).on(1,e=>o.current&&w(e)).on(5,x).emit(2,g),()=>{u.clear(),m.emit(3,g)}),[]),(0,s.useEffect)(()=>{g.props=e,g.isToastActive=f,g.displayedToast=n.length}),{getToastToRender:function(t){const n=new Map,s=Array.from(u.values());
2return e.newestOnTop&&s.reverse(),s.forEach(e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},containerRef:o,isToastActive:f}}function x(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function w(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function v(e){const[t,n]=(0,s.useState)(!1),[a,o]=(0,s.useState)(!1),r=(0,s.useRef)(null),i=(0,s.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,s.useRef)(e),{autoClose:d,pauseOnHover:u,closeToast:p,onClick:m,closeOnClick:f}=e;function h(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),i.didMove=!1,document.addEventListener("mousemove",y),document.addEventListener("mouseup",j),document.addEventListener("touchmove",y),document.addEventListener("touchend",j);const n=r.current;i.canCloseOnClick=!0,i.canDrag=!0,i.boundingRect=n.getBoundingClientRect(),n.style.transition="",i.x=x(t.nativeEvent),i.y=w(t.nativeEvent),"x"===e.draggableDirection?(i.start=i.x,i.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(i.start=i.y,i.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function g(t){if(i.boundingRect){const{top:n,bottom:s,left:a,right:o}=i.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&i.x>=a&&i.x<=o&&i.y>=n&&i.y<=s?b():v()}}function v(){n(!0)}function b(){n(!1)}function y(n){const s=r.current;i.canDrag&&s&&(i.didMove=!0,t&&b(),i.x=x(n),i.y=w(n),i.delta="x"===e.draggableDirection?i.x-i.start:i.y-i.start,i.start!==i.x&&(i.canCloseOnClick=!1),s.style.transform=`translate${e.draggableDirection}(${i.delta}px)`,s.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function j(){document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",j),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",j);const t=r.current;if(i.canDrag&&i.didMove&&t){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return o(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,s.useEffect)(()=>{c.current=e}),(0,s.useEffect)(()=>(r.current&&r.current.addEventListener("d",v,{once:!0}),l(e.onOpen)&&e.onOpen((0,s.isValidElement)(e.children)&&e.children.props),()=>{const e=c.current;l(e.onClose)&&e.onClose((0,s.isValidElement)(e.children)&&e.children.props)}),[]),(0,s.useEffect)(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||b(),window.addEventListener("focus",v),window.addEventListener("blur",b)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",v),window.removeEventListener("blur",b))}),[e.pauseOnFocusLoss]);const T={onMouseDown:h,onTouchStart:h,onMouseUp:g,onTouchEnd:g};return d&&u&&(T.onMouseEnter=b,T.onMouseLeave=v),f&&(T.onClick=e=>{m&&m(e),i.canCloseOnClick&&p()}),{playToast:v,pauseToast:b,isRunning:t,preventExitTransition:a,toastRef:r,eventHandlers:T}}function b(e){let{closeToast:t,theme:n,ariaLabel:a="close"}=e;return s.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":a},s.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},s.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function y(e){let{delay:t,isRunning:n,closeToast:a,type:r="default",hide:i,className:c,style:d,controlledProgress:u,progress:p,rtl:m,isIn:f,theme:h}=e;const g=i||u&&0===p,x={...d,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:g?0:1};u&&(x.transform=`scaleX(${p})`);const w=o("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":m}),v=l(c)?c({rtl:m,type:r,defaultClassName:w}):o(w,c);return s.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:v,style:x,[u&&p>=1?"onTransitionEnd":"onAnimationEnd"]:u&&p<1?null:()=>{f&&a()}})}const j=e=>{const{isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:r}=v(e),{closeButton:i,children:c,autoClose:d,onClick:u,type:p,hideProgressBar:m,closeToast:f,transition:h,position:g,className:x,style:w,bodyClassName:j,bodyStyle:T,progressClassName:k,progressStyle:I,updateId:C,role:N,progress:E,rtl:S,toastId:L,deleteToast:R,isIn:_,isLoading:A,iconOut:O,closeOnClick:F,theme:P}=e,M=o("Toastify__toast",`Toastify__toast-theme--${P}`,`Toastify__toast--${p}`,{"Toastify__toast--rtl":S},{"Toastify__toast--close-on-click":F}),D=l(x)?x({rtl:S,position:g,type:p,defaultClassName:M}
2):o(M,x),U=!!E||!d,$={closeToast:f,type:p,theme:P};let z=null;return!1===i||(z=l(i)?i($):(0,s.isValidElement)(i)?(0,s.cloneElement)(i,$):b($)),s.createElement(h,{isIn:_,done:R,position:g,preventExitTransition:n,nodeRef:a},s.createElement("div",{id:L,onClick:u,className:D,...r,style:w,ref:a},s.createElement("div",{..._&&{role:N},className:l(j)?j({type:p}):o("Toastify__toast-body",j),style:T},null!=O&&s.createElement("div",{className:o("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},O),s.createElement("div",null,c)),z,s.createElement(y,{...C&&!U?{key:`pb-${C}`}:{},rtl:S,theme:P,delay:d,isRunning:t,isIn:_,closeToast:f,hide:m,type:p,style:I,className:k,controlledProgress:U,progress:E||0})))},T=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},k=u(T("bounce",!0)),I=(u(T("slide",!0)),u(T("zoom")),u(T("flip")),(0,s.forwardRef)((e,t)=>{const{getToastToRender:n,containerRef:a,isToastActive:r}=g(e),{className:i,style:d,rtl:u,containerId:p}=e;function m(e){const t=o("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":u});return l(i)?i({position:e,rtl:u,defaultClassName:t}):o(t,c(i))}return(0,s.useEffect)(()=>{t&&(t.current=a.current)},[]),s.createElement("div",{ref:a,className:"Toastify",id:p},n((e,t)=>{const n=t.length?{...d}:{...d,pointerEvents:"none"};return s.createElement("div",{className:m(e),style:n,key:`container-${e}`},t.map((e,n)=>{let{content:a,props:o}=e;return s.createElement(j,{...o,isIn:r(o.toastId),style:{...o.style,"--nth":n+1,"--len":t.length},key:`toast-${o.key}`},a)}))}))}));I.displayName="ToastContainer",I.defaultProps={position:"top-right",transition:k,autoClose:5e3,closeButton:b,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let C,N=new Map,E=[],S=1;function L(){return""+S++}function R(e){return e&&(i(e.toastId)||r(e.toastId))?e.toastId:L()}function _(e,t){return N.size>0?m.emit(0,e,t):E.push({content:e,options:t}),t.toastId}function A(e,t){return{...t,type:t&&t.type||e,toastId:R(t)}}function O(e){return(t,n)=>_(t,A(e,n))}function F(e,t){return _(e,A("default",t))}F.loading=(e,t)=>
2_(e,A("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),F.promise=function(e,t,n){let s,{pending:a,error:o,success:r}=t;a&&(s=i(a)?F.loading(a,n):F.loading(a.render,{...n,...a}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(e,t,a)=>{if(null==t)return void F.dismiss(s);const o={type:e,...c,...n,data:a},r=i(t)?{render:t}:t;return s?F.update(s,{...o,...r}):F(r.render,{...o,...r}),a},u=l(e)?e():e;return u.then(e=>d("success",r,e)).catch(e=>d("error",o,e)),u},F.success=O("success"),F.info=O("info"),F.error=O("error"),F.warning=O("warning"),F.warn=F.warning,F.dark=(e,t)=>_(e,A("default",{theme:"dark",...t})),F.dismiss=e=>{N.size>0?m.emit(1,e):E=E.filter(t=>null!=e&&t.options.toastId!==e)},F.clearWaitingQueue=function(e){return void 0===e&&(e={}),m.emit(5,e)},F.isActive=e=>{let t=!1;return N.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},F.update=function(e,t){void 0===t&&(t={}),setTimeout(()=>{const n=function(e,t){let{containerId:n}=t;const s=N.get(n||C);return s&&s.getToast(e)}(e,t);if(n){const{props:s,content:a}=n,o={delay:100,...s,...t,toastId:t.toastId||e,updateId:L()};o.toastId!==e&&(o.staleId=e);const r=o.render||a;delete o.render,_(r,o)}},0)},F.done=e=>{F.update(e,{progress:1})},F.onChange=e=>(m.on(4,e),()=>{m.off(4,e)}),F.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},F.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},m.on(2,e=>{C=e.containerId||e,N.set(C,e),E.forEach(e=>{m.emit(0,e.content,e.options)}),E=[]}).on(3,e=>{N.delete(e.containerId||e),0===N.size&&m.off(0).off(1).off(5)})}}]);

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.