PageSourceSearch

https://www.innaturale.com/_next/static/chunks/pages/users/registration-ff2c3e7abf9982fc.js

js innaturale.com collected 2026-10-02 11:40:23 UTC 22,181 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[503],{28409:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/users/registration",function(){return n(95290)}])},1061:function(e,t,n){"use strict";n.d(t,{y:function(){return f}});var s=n(85893),a=n(97101),o=n(96021),i=n(15895),r=n(71878),l=n(83380),c=n(9008),u=n.n(c),d=n(11163),m=n(67294),p=n(55678);let f=e=>{let{children:t,...n}=e,{userInfo:c,isAuthenticated:f,checkAuthIsLoading:h,profileIsActive:g}=(0,i.aC)(),v=(0,d.useRouter)(),{locale:y}=(0,r.bU)(),x=v.pathname.includes("/".concat(l.TX.basePath)),T=(null==c?void 0:c.type)==="premium_user"&&x&&v.pathname!=="/".concat(l.TX.home),E=(null==c?void 0:c.type)==="seller"&&!g&&x&&v.pathname!=="/".concat(l.TX.profile),b=!f&&x;return((0,m.useEffect)(()=>{!h&&(b&&v.push("/".concat((0,l.K0)(y),"?login=true&path=").concat(v.pathname)),T&&v.push("/".concat(l.TX.home)),E&&v.push("/".concat(l.TX.profile)))},[h]),h||T||E||b)?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a.A,{children:(0,s.jsx)("div",{className:"-mx-layout-mobile flex h-screen bg-[#F6F6F6] md:-mx-layout",children:(0,s.jsx)(o.Z,{className:"mx-auto my-auto h-20 w-20 animate-spin"})})})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u(),{children:(0,s.jsx)("link",{rel:"shortcut icon",href:"/images/favicon.png",type:"image/png"})}),(0,s.jsx)(a.A,{...n,children:t}),(0,s.jsx)(p.Ix,{position:"top-right",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!1,draggable:!1,pauseOnHover:!1,theme:"light",limit:1})]})}},95290:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return w}});var s=n(85893),a=n(86247),o=n(33670),i=n(11655),r=n(93233),l=n(36890),c=n(1061),u=n(43255),d=n(58478),m=n(15895),p=n(12354),f=n(36262),h=n(71878),g=n(83380),v=n(41664),y=n.n(v),x=n(11163),T=n(67294),E=n(87536),b=n(55678),_=n(95598);let N=e=>{let{locale:t,languageInfo:n,instanceInfo:a,allInstances:o}=e;return(0,s.jsx)(_.OptionContext.Provider,{value:{links:{},locale:t,languageInfo:n,instanceInfo:a,allInstances:o},children:(0,s.jsx)(C,{})})},C=()=>{var e;let t=(0,E.cI)(),{fetchAndSetUserInfo:n}=(0,m.aC)(),v=(0,p.g)(),_=(0,x.useRouter)(),{locale:N}=(0,h.bU)(),{submitData:C,loadingSubmit:w}=(0,f.K)(),[j,I]=(0,T.useState)(""),O=e=>b.Am.promise(C("/".concat(N,"/auth/register"),e).then(async e=>{gtag("event","sign_up",{method:"inNaturale"}),(0,m.pC)(e.token),(0,m.Oj)(e.refresh_token),n(),_.push("/".concat((0,g.K0)(N)).concat(g.TX.home))}),{success:v.registrationSuccessful,error:v.checkRedFields},{toastId:"signUp"}),L=t.watch("flag_privacy"),R=t.watch("commercial_communications"),k=t.watch("terms_conditions");return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.y,{children:(0,s.jsxs)("div",{className:"-mx-layout-mobile md:-mx-layout",children:[(0,s.jsx)("div",{className:"w-100 flex h-80 items-center justify-center bg-[url('/fixtures/registration-bg.png')] bg-cover px-layout-mobile md:px-layout",children:(0,s.jsx)("span",{className:"text-4xl font-semibold text-white md:text-5xl lg:text-6xl",children:v.userRegistration})}),(0,s.jsx)("div",{className:"px-layout-mobile pt-8 md:px-layout lg:pt-14",children:(0,s.jsxs)("div",{className:"container grid grid-cols-1 lg:grid-cols-3 lg:gap-x-20",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mb-4 text-4xl font-semibold",children:v.registrationPremiumUserTitle}),(0,s.jsx)("div",{className:"text-xl",children:v.registrationPremiumUserDescription})]}),(0,s.jsxs)("div",{className:"pt-8 lg:col-span-2 lg:pt-0",children:[(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("div",{className:"text-lg font-semibold",children:v.registerWith}),(0,s.jsxs)("div",{className:"w-100 flex flex-col gap-x-10 gap-y-4 md:flex-row",children:[(0,s.jsx)(u.cf,{type:"registration",setSocialMessageError:I,children:(0,s.jsxs)("div",{className:"mx-auto flex h-10 w-[300px] items-center justify-center gap-x-4 border border-[#325FB9] bg-[#325FB9] md:mx-0",children:[(0,s.jsx)("span",{className:"uppercase text-white",children:"Facebook"}),(0,s.jsx)("div",{className:"overflow-hidden rounded-full",children:(0,s.jsx)(d.Z,{className:"bg-white p-1 text-[#325FB9]"})})]})}),(0,s.jsx)("div",{className:"mx-auto h-14 md:mx-0",children:(0,s.jsx)(u.cs,{type:"registration",setSocialMessageError:I})})]}),j&&(0,s.jsx)("div",{className:"w-full text-center text-lg text-red-500",children:null!==(e=v[j])&&void 0!==e?e:j})]}),(0,s.jsxs)("div",{className:"space-y-4 pb-16 pt-8 lg:pb-24",children:[(0,s.jsx)("div",{className:"text-lg font-semibold",children:v.orWithEmail}),(0,s.jsxs)(r.l,{form:t,onSubmit:O,children:[(0,s.jsxs)("div",{className:"grid gap-x-6 gap-y-6 lg:grid-cols-2",children:[(0,s.jsx)(i.n,{type:"text",name:"name",placeholder:v.name+" *"}),(0,s.jsx)(i.n,{type:"text",name:"surname",placeholder:v.surname+" *"}),(0,s.jsx)(i.n,{type:"email",name:"email",placeholder:v.email+" *"}),(0,s.jsx)(a.Z,{type:"password",name:"password",placeholder:v.password+" *"}),(0,s.jsx)(a.Z,{type:"password",name:"password_confirmation",placeholder:v.passwordConfirm+" *"})]}),(0,s.jsx)("div",{className:"lg:pb-4 lg:pt-8",children:[{name:"flag_privacy",title:"Privacy",subTitle:"Dichiaro di aver letto la nota informativa e di essere a conoscenza dei miei diritti secondo la legge 196/03 e il Regolamento Europeo Privacy 2016/679."},{name:"commercial_communications",title:"Comunicazioni Commerciali",subTitle:"Dichiaro di aver letto la nota informativa e di essere a conoscenza dei miei diritti secondo la legge 196/03 e il Regolamento Europeo Privacy"},{name:"terms_conditions",title:"Termini E Condizioni",subTitle:"Dichiaro di aver letto la nota informativa e di essere a conoscenza dei miei diritti secondo la legge 196/03 e il Regolamento Europeo Privacy 2016/679."}].map((e,t)=>(0,s.jsxs)("div",{className:"space-y-3 py-4",children:[(0,s.jsxs)("div",{className:"space-x-2 lg:max-w-xl",children:[(0,s.jsxs)(y(),{href:"https://www.iubenda.com/privacy-policy/51807200",target:"_blank",className:"cursor-pointer pr-1 uppercase text-blue-500 underline",children:[e.title,":"]}
1),e.subTitle]}),(0,s.jsx)(o.o,{name:e.name,children:(0,s.jsx)("div",{children:(0,s.jsx)("span",{className:"lg:max-w-xl",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"pr-1 font-medium underline",children:v.handlingRequestBold}),v.referredToAbove,":*"]})})})})]},t))}),(0,s.jsx)(l.Z,{className:"w-1/2 uppercase xl:w-1/3",variant:+L&&R&&k?"primary":"disabled",loadingSubmit:w,children:v.subscribe})]})]})]})]})})]})})})};var w=!0;t.default=N},55678:function(e,t,n){"use strict";n.d(t,{Am:function(){return L},Ix:function(){return b}});var s=n(67294),a=n(86010);let o=e=>"number"==typeof e&&!isNaN(e),i=e=>"string"==typeof e,r=e=>"function"==typeof e,l=e=>i(e)||r(e)?e:null,c=e=>(0,s.isValidElement)(e)||i(e)||r(e)||o(e);function u(e){let{enter:t,exit:n,appendPosition:a=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(e){let{children:r,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:m}=e,p=a?`${t}--${l}`:t,f=a?`${n}--${l}`:n,h=(0,s.useRef)(0);return(0,s.useLayoutEffect)(()=>{let e=d.current,t=p.split(" "),n=s=>{s.target===d.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)(()=>{let e=d.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,n){void 0===n&&(n=300);let{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,u,i):u()};m||(c?t():(h.current=1,e.className+=` ${f}`,e.addEventListener("animationend",t)))},[m]),s.createElement(s.Fragment,null,r)}}function d(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}:{}}let 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){let n=this.list.get(e).filter(e=>e!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){let 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=>{let n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},p=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})},f={info:function(e){return s.createElement(p,{...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(p,{...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(p,{...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(p,{...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 h(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function g(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function v(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:o,type:i="default",hide:l,className:c,style:u,controlledProgress:d,progress:m,rtl:p,isIn:f,theme:h}=e,g=l||d&&0===m,v={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:g?0:1};d&&(v.transform=`scaleX(${m})`);let y=(0,a.Z)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":p}),x=r(c)?c({rtl:p,type:i,defaultClassName:y}):(0,a.Z)(y,c);return s.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:x,style:v,[d&&m>=1?"onTransitionEnd":"onAnimationEnd"]:d&&m<1?null:()=>{f&&o()}})}let x=e=>{let{isRunning:t,preventExitTransition:n,toastRef:o,eventHandlers:i}
1=function(e){let[t,n]=(0,s.useState)(!1),[a,o]=(0,s.useState)(!1),i=(0,s.useRef)(null),l=(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:u,pauseOnHover:d,closeToast:m,onClick:p,closeOnClick:f}=e;function v(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),l.didMove=!1,document.addEventListener("mousemove",E),document.addEventListener("mouseup",b),document.addEventListener("touchmove",E),document.addEventListener("touchend",b);let n=i.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=n.getBoundingClientRect(),n.style.transition="",l.x=h(t.nativeEvent),l.y=g(t.nativeEvent),"x"===e.draggableDirection?(l.start=l.x,l.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(l.start=l.y,l.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function y(t){if(l.boundingRect){let{top:n,bottom:s,left:a,right:o}=l.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&l.x>=a&&l.x<=o&&l.y>=n&&l.y<=s?T():x()}}function x(){n(!0)}function T(){n(!1)}function E(n){let s=i.current;l.canDrag&&s&&(l.didMove=!0,t&&T(),l.x=h(n),l.y=g(n),l.delta="x"===e.draggableDirection?l.x-l.start:l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),s.style.transform=`translate${e.draggableDirection}(${l.delta}px)`,s.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function b(){document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",b);let t=i.current;if(l.canDrag&&l.didMove&&t){if(l.canDrag=!1,Math.abs(l.delta)>l.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)(()=>(i.current&&i.current.addEventListener("d",x,{once:!0}),r(e.onOpen)&&e.onOpen((0,s.isValidElement)(e.children)&&e.children.props),()=>{let e=c.current;r(e.onClose)&&e.onClose((0,s.isValidElement)(e.children)&&e.children.props)}),[]),(0,s.useEffect)(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||T(),window.addEventListener("focus",x),window.addEventListener("blur",T)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",x),window.removeEventListener("blur",T))}),[e.pauseOnFocusLoss]);let _={onMouseDown:v,onTouchStart:v,onMouseUp:y,onTouchEnd:y};return u&&d&&(_.onMouseEnter=T,_.onMouseLeave=x),f&&(_.onClick=e=>{p&&p(e),l.canCloseOnClick&&m()}),{playToast:x,pauseToast:T,isRunning:t,preventExitTransition:a,toastRef:i,eventHandlers:_}}(e),{closeButton:l,children:c,autoClose:u,onClick:d,type:m,hideProgressBar:p,closeToast:f,transition:x,position:T,className:E,style:b,bodyClassName:_,bodyStyle:N,progressClassName:C,progressStyle:w,updateId:j,role:I,progress:O,rtl:L,toastId:R,deleteToast:k,isIn:P,isLoading:M,iconOut:B,closeOnClick:D,theme:F}=e,A=(0,a.Z)("Toastify__toast",`Toastify__toast-theme--${F}`,`Toastify__toast--${m}`,{"Toastify__toast--rtl":L},{"Toastify__toast--close-on-click":D}),$=r(E)?E({rtl:L,position:T,type:m,defaultClassName:A}):(0,a.Z)(A,E),z=!!O||!u,S={closeToast:f,type:m,theme:F},Z=null;return!1===l||(Z=r(l)?l(S):(0,s.isValidElement)(l)?(0,s.cloneElement)(l,S):v(S)),s.createElement(x,{isIn:P,done:k,position:T,preventExitTransition:n,nodeRef:o},s.createElement("div",{id:R,onClick:d,className:$,...i,style:b,ref:o},s.createElement("div",{...P&&{role:I},className:r(_)?_({type:m}):(0,a.Z)("Toastify__toast-body",_),style:N},null!=B&&s.createElement("div",{className:(0,a.Z)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!M})},B),s.createElement("div",null,c)),Z,s.createElement(y,{...j&&!z?{key:`pb-${j}`}:{},rtl:L,theme:F,delay:u,isRunning:t,isIn:P,closeToast:f,hide:p,type:m,style:w,className:C,controlledProgress:z,progress:O||0})))}
1,T=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},E=u(T("bounce",!0)),b=(u(T("slide",!0)),u(T("zoom")),u(T("flip")),(0,s.forwardRef)((e,t)=>{let{getToastToRender:n,containerRef:u,isToastActive:p}=function(e){let[,t]=(0,s.useReducer)(e=>e+1,0),[n,a]=(0,s.useState)([]),u=(0,s.useRef)(null),p=(0,s.useRef)(new Map).current,h=e=>-1!==n.indexOf(e),g=(0,s.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:h,getToast:e=>p.get(e)}).current;function v(e){let{containerId:t}=e,{limit:n}=g.props;!n||t&&g.containerId!==t||(g.count-=g.queue.length,g.queue=[])}function y(e){a(t=>null==e?[]:t.filter(t=>t!==e))}function x(){let{toastContent:e,toastProps:t,staleId:n}=g.queue.shift();E(e,t,n)}function T(e,n){var a,h;let{delay:v,staleId:T,...b}=n;if(!c(e)||!u.current||g.props.enableMultiContainer&&b.containerId!==g.props.containerId||p.has(b.toastId)&&null==b.updateId)return;let{toastId:_,updateId:N,data:C}=b,{props:w}=g,j=()=>y(_),I=null==N;I&&g.count++;let O={...w,style:w.toastStyle,key:g.toastKey++,...Object.fromEntries(Object.entries(b).filter(e=>{let[t,n]=e;return null!=n})),toastId:_,updateId:N,data:C,closeToast:j,isIn:!1,className:l(b.className||w.toastClassName),bodyClassName:l(b.bodyClassName||w.bodyClassName),progressClassName:l(b.progressClassName||w.progressClassName),autoClose:!b.isLoading&&(a=b.autoClose,h=w.autoClose,!1===a||o(a)&&a>0?a:h),deleteToast(){let e=d(p.get(_),"removed");p.delete(_),m.emit(4,e);let n=g.queue.length;if(g.count=null==_?g.count-g.displayedToast:g.count-1,g.count<0&&(g.count=0),n>0){let e=null==_?g.props.limit:1;if(1===n||1===e)g.displayedToast++,x();else{let t=e>n?n:e;g.displayedToast=t;for(let e=0;e<t;e++)x()}}else t()}};O.iconOut=function(e){let{theme:t,type:n,isLoading:a,icon:l}=e,c=null,u={theme:t,type:n};return!1===l||(r(l)?c=l(u):(0,s.isValidElement)(l)?c=(0,s.cloneElement)(l,u):i(l)||o(l)?c=l:a?c=f.spinner():n in f&&(c=f[n](u))),c}(O),r(b.onOpen)&&(O.onOpen=b.onOpen),r(b.onClose)&&(O.onClose=b.onClose),O.closeButton=w.closeButton,!1===b.closeButton||c(b.closeButton)?O.closeButton=b.closeButton:!0===b.closeButton&&(O.closeButton=!c(w.closeButton)||w.closeButton);let L=e;(0,s.isValidElement)(e)&&!i(e.type)?L=(0,s.cloneElement)(e,{closeToast:j,toastProps:O,data:C}):r(e)&&(L=e({closeToast:j,toastProps:O,data:C})),w.limit&&w.limit>0&&g.count>w.limit&&I?g.queue.push({toastContent:L,toastProps:O,staleId:T}):o(v)?setTimeout(()=>{E(L,O,T)},v):E(L,O,T)}function E(e,t,n){let{toastId:s}=t;n&&p.delete(n);let o={content:e,props:t};p.set(s,o),a(e=>[...e,s].filter(e=>e!==n)),m.emit(4,d(o,null==o.props.updateId?"added":"updated"))}return(0,s.useEffect)(()=>(g.containerId=e.containerId,m.cancelEmit(3).on(0,T).on(1,e=>u.current&&y(e)).on(5,v).emit(2,g),()=>{p.clear(),m.emit(3,g)}),[]),(0,s.useEffect)(()=>{g.props=e,g.isToastActive=h,g.displayedToast=n.length}),{getToastToRender:function(t){let n=new Map,s=Array.from(p.values());return e.newestOnTop&&s.reverse(),s.forEach(e=>{let{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:u,isToastActive:h}}(e),{className:h,style:g,rtl:v,containerId:y}=e;return(0,s.useEffect)(()=>{t&&(t.current=u.current)},[]),s.createElement("div",{ref:u,className:"Toastify",id:y},n((e,t)=>{let n=t.length?{...g}:{...g,pointerEvents:"none"};return s.createElement("div",{className:function(e){let t=(0,a.Z)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":v});return r(h)?h({position:e,rtl:v,defaultClassName:t}):(0,a.Z)(t,l(h))}(e),style:n,key:`container-${e}`},t.map((e,n)=>{let{content:a,props:o}=e;return s.createElement(x,{...o,isIn:p(o.toastId),style:{...o.style,"--nth":n+1,"--len":t.length},key:`toast-${o.key}`},a)}))}))}));b.displayName="ToastContainer",b.defaultProps={position:"top-right",transition:E,autoClose:5e3,closeButton:v,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let _,N=new Map,C=[],w=1;function j(e,t){return N.size>0?m.emit(0,e,t):C.push({content:e,options:t}),t.toastId}function I(e,t){return{...t,type:t&&t.type||e,toastId:t&&(i(t.toastId)||o(t.toastId))?t.toastId:""+w++}}function O(e){return(t,n)=>j(t,I(e,n))}function L(e,t){return j(e,I("default",t))}L.loading=(e,t)=>
1j(e,I("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),L.promise=function(e,t,n){let s,{pending:a,error:o,success:l}=t;a&&(s=i(a)?L.loading(a,n):L.loading(a.render,{...n,...a}));let c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,a)=>{if(null==t)return void L.dismiss(s);let o={type:e,...c,...n,data:a},r=i(t)?{render:t}:t;return s?L.update(s,{...o,...r}):L(r.render,{...o,...r}),a},d=r(e)?e():e;return d.then(e=>u("success",l,e)).catch(e=>u("error",o,e)),d},L.success=O("success"),L.info=O("info"),L.error=O("error"),L.warning=O("warning"),L.warn=L.warning,L.dark=(e,t)=>j(e,I("default",{theme:"dark",...t})),L.dismiss=e=>{N.size>0?m.emit(1,e):C=C.filter(t=>null!=e&&t.options.toastId!==e)},L.clearWaitingQueue=function(e){return void 0===e&&(e={}),m.emit(5,e)},L.isActive=e=>{let t=!1;return N.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},L.update=function(e,t){void 0===t&&(t={}),setTimeout(()=>{let n=function(e,t){let{containerId:n}=t,s=N.get(n||_);return s&&s.getToast(e)}(e,t);if(n){let{props:s,content:a}=n,o={delay:100,...s,...t,toastId:t.toastId||e,updateId:""+w++};o.toastId!==e&&(o.staleId=e);let i=o.render||a;delete o.render,j(i,o)}},0)},L.done=e=>{L.update(e,{progress:1})},L.onChange=e=>(m.on(4,e),()=>{m.off(4,e)}),L.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"},L.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},m.on(2,e=>{_=e.containerId||e,N.set(_,e),C.forEach(e=>{m.emit(0,e.content,e.options)}),C=[]}).on(3,e=>{N.delete(e.containerId||e),0===N.size&&m.off(0).off(1).off(5)})}},function(e){e.O(0,[774,888,179],function(){return e(e.s=28409)}),_N_E=e.O()}]);

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.