PageSourceSearch

https://uttarakhandtourism.gov.in/build/assets/ToastNotification-BhTNdAie.js

js uttarakhandtourism.gov.in collected 2026-10-02 06:31:00 UTC 16,164 bytes, 1 lines download raw bytes

1import{r as T,R as v,X as ve}from"./app-Ha4X7SlF.js";function de(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=de(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function F(){for(var e,t,n=0,s="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=de(e))&&(s&&(s+=" "),s+=t);return s}const J=e=>typeof e=="number"&&!isNaN(e),j=e=>typeof e=="string",P=e=>typeof e=="function",ne=e=>j(e)||P(e)?e:null,ie=e=>T.isValidElement(e)||j(e)||P(e)||J(e);function he(e,t,n){n===void 0&&(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)})})}function se(e){let{enter:t,exit:n,appendPosition:s=!1,collapse:a=!0,collapseDuration:u=300}=e;return function(o){let{children:E,position:p,preventExitTransition:I,done:d,nodeRef:C,isIn:_,playToast:N}=o;const g=s?`${t}--${p}`:t,c=s?`${n}--${p}`:n,b=T.useRef(0);return T.useLayoutEffect(()=>{const m=C.current,l=g.split(" "),r=y=>{y.target===C.current&&(N(),m.removeEventListener("animationend",r),m.removeEventListener("animationcancel",r),b.current===0&&y.type!=="animationcancel"&&m.classList.remove(...l))};m.classList.add(...l),m.addEventListener("animationend",r),m.addEventListener("animationcancel",r)},[]),T.useEffect(()=>{const m=C.current,l=()=>{m.removeEventListener("animationend",l),a?he(m,d,u):d()};_||(I?l():(b.current=1,m.className+=` ${c}`,m.addEventListener("animationend",l)))},[_]),v.createElement(v.Fragment,null,E)}}function ce(e,t){return e!=null?{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 w=new Map;let K=[];const le=new Set,Ee=e=>le.forEach(t=>t(e)),fe=()=>w.size>0;function pe(e,t){var n;if(t)return!((n=w.get(t))==null||!n.isToastActive(e));let s=!1;return w.forEach(a=>{a.isToastActive(e)&&(s=!0)}),s}function me(e,t){ie(e)&&(fe()||K.push({content:e,options:t}),w.forEach(n=>{n.buildToast(e,t)}))}function ue(e,t){w.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function Te(e){const{subscribe:t,getSnapshot:n,setProps:s}=T.useRef(function(u){const o=u.containerId||1;return{subscribe(E){const p=function(d,C,_){let N=1,g=0,c=[],b=[],m=[],l=C;const r=new Map,y=new Set,x=()=>{m=Array.from(r.values()),y.forEach(i=>i())},R=i=>{b=i==null?[]:b.filter(h=>h!==i),x()},L=i=>{const{toastId:h,onOpen:$,updateId:B,children:D}=i.props,q=B==null;i.staleId&&r.delete(i.staleId),r.set(h,i),b=[...b,i.props.toastId].filter(z=>z!==i.staleId),x(),_(ce(i,q?"added":"updated")),q&&P($)&&$(T.isValidElement(D)&&D.props)};return{id:d,props:l,observe:i=>(y.add(i),()=>y.delete(i)),toggle:(i,h)=>{r.forEach($=>{h!=null&&h!==$.props.toastId||P($.toggle)&&$.toggle(i)})},removeToast:R,toasts:r,clearQueue:()=>{g-=c.length,c=[]},buildToast:(i,h)=>{if((A=>{let{containerId:k,toastId:M,updateId:O}=A;const V=k?k!==d:d!==1,U=r.has(M)&&O==null;return V||U})(h))return;const{toastId:$,updateId:B,data:D,staleId:q,delay:z}=h,Y=()=>{R($)},Z=B==null;Z&&g++;const S={...l,style:l.toastStyle,key:N++,...Object.fromEntries(Object.entries(h).filter(A=>{let[k,M]=A;return M!=null})),toastId:$,updateId:B,data:D,closeToast:Y,isIn:!1,className:ne(h.className||l.toastClassName),bodyClassName:ne(h.bodyClassName||l.bodyClassName),progressClassName:ne(h.progressClassName||l.progressClassName),autoClose:!h.isLoading&&(H=h.autoClose,Q=l.autoClose,H===!1||J(H)&&H>0?H:Q),deleteToast(){const A=r.get($),{onClose:k,children:M}=A.props;P(k)&&k(T.isValidElement(M)&&M.props),_(ce(A,"removed")),r.delete($),g--,g<0&&(g=0),c.length>0?L(c.shift()):x()}};var H,Q;S.closeButton=l.closeButton,h.closeButton===!1||ie(h.closeButton)?S.closeButton=h.closeButton:h.closeButton===!0&&(S.closeButton=!ie(l.closeButton)||l.closeButton);let W=i;T.isValidElement(i)&&!j(i.type)?W=T.cloneElement(i,{closeToast:Y,toastProps:S,data:D}):P(i)&&(W=i({closeToast:Y,toastProps:S,data:D}));const X={content:W,props:S,staleId:q};l.limit&&l.limit>0&&g>l.limit&&Z?c.push(X):J(z)?setTimeout(()=>{L(X)},z):L(X)},setProps(i){l=i},setToggle:(i,h)=>{r.get(i).toggle=h},isToastActive:i=>b.some(h=>h===i),getSnapshot:()=>m}}(o,u,Ee);w.set(o,p);const I=p.observe(E);
1return K.forEach(d=>me(d.content,d.options)),K=[],()=>{I(),w.delete(o)}},setProps(E){var p;(p=w.get(o))==null||p.setProps(E)},getSnapshot(){var E;return(E=w.get(o))==null?void 0:E.getSnapshot()}}}(e)).current;s(e);const a=T.useSyncExternalStore(t,n,n);return{getToastToRender:function(u){if(!a)return[];const o=new Map;return e.newestOnTop&&a.reverse(),a.forEach(E=>{const{position:p}=E.props;o.has(p)||o.set(p,[]),o.get(p).push(E)}),Array.from(o,E=>u(E[0],E[1]))},isToastActive:pe,count:a==null?void 0:a.length}}function be(e){const[t,n]=T.useState(!1),[s,a]=T.useState(!1),u=T.useRef(null),o=T.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:E,pauseOnHover:p,closeToast:I,onClick:d,closeOnClick:C}=e;var _,N;function g(){n(!0)}function c(){n(!1)}function b(r){const y=u.current;o.canDrag&&y&&(o.didMove=!0,t&&c(),o.delta=e.draggableDirection==="x"?r.clientX-o.start:r.clientY-o.start,o.start!==r.clientX&&(o.canCloseOnClick=!1),y.style.transform=`translate3d(${e.draggableDirection==="x"?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`},0)`,y.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function m(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",m);const r=u.current;if(o.canDrag&&o.didMove&&r){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return a(!0),e.closeToast(),void e.collapseAll();r.style.transition="transform 0.2s, opacity 0.2s",r.style.removeProperty("transform"),r.style.removeProperty("opacity")}}(N=w.get((_={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.setToggle(_.id,_.fn),T.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||c(),window.addEventListener("focus",g),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",c)}},[e.pauseOnFocusLoss]);const l={onPointerDown:function(r){if(e.draggable===!0||e.draggable===r.pointerType){o.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",m);const y=u.current;o.canCloseOnClick=!0,o.canDrag=!0,y.style.transition="none",e.draggableDirection==="x"?(o.start=r.clientX,o.removalDistance=y.offsetWidth*(e.draggablePercent/100)):(o.start=r.clientY,o.removalDistance=y.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(r){const{top:y,bottom:x,left:R,right:L}=u.current.getBoundingClientRect();r.nativeEvent.type!=="touchend"&&e.pauseOnHover&&r.clientX>=R&&r.clientX<=L&&r.clientY>=y&&r.clientY<=x?c():g()}};return E&&p&&(l.onMouseEnter=c,e.stacked||(l.onMouseLeave=g)),C&&(l.onClick=r=>{d&&d(r),o.canCloseOnClick&&I()}),{playToast:g,pauseToast:c,isRunning:t,preventExitTransition:s,toastRef:u,eventHandlers:l}}function _e(e){let{delay:t,isRunning:n,closeToast:s,type:a="default",hide:u,className:o,style:E,controlledProgress:p,progress:I,rtl:d,isIn:C,theme:_}=e;const N=u||p&&I===0,g={...E,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};p&&(g.transform=`scaleX(${I})`);const c=F("Toastify__progress-bar",p?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${_}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":d}),b=P(o)?o({rtl:d,type:a,defaultClassName:c}):F(c,o),m={[p&&I>=1?"onTransitionEnd":"onAnimationEnd"]:p&&I<1?null:()=>{C&&s()}};return v.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":N},v.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${_} Toastify__progress-bar--${a}`}),v.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:b,style:g,...m}))}let Ie=1;const ge=()=>""+Ie++;function Ce(e){return e&&(j(e.toastId)||J(e.toastId))?e.toastId:ge()}function G(e,t){return me(e,t),t.toastId}function oe(e,t){return{...t,type:t&&t.type||e,toastId:Ce(t)}}function ee(e){return(t,n)=>G(t,oe(e,n))}function f(e,t){return G(e,oe("default",t))}f.loading=(e,t)=>
1G(e,oe("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),f.promise=function(e,t,n){let s,{pending:a,error:u,success:o}=t;a&&(s=j(a)?f.loading(a,n):f.loading(a.render,{...n,...a}));const E={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},p=(d,C,_)=>{if(C==null)return void f.dismiss(s);const N={type:d,...E,...n,data:_},g=j(C)?{render:C}:C;return s?f.update(s,{...N,...g}):f(g.render,{...N,...g}),_},I=P(e)?e():e;return I.then(d=>p("success",o,d)).catch(d=>p("error",u,d)),I},f.success=ee("success"),f.info=ee("info"),f.error=ee("error"),f.warning=ee("warning"),f.warn=f.warning,f.dark=(e,t)=>G(e,oe("default",{theme:"dark",...t})),f.dismiss=function(e){(function(t){var n;if(fe()){if(t==null||j(n=t)||J(n))w.forEach(s=>{s.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const s=w.get(t.containerId);s?s.removeToast(t.id):w.forEach(a=>{a.removeToast(t.id)})}}else K=K.filter(s=>t!=null&&s.options.toastId!==t)})(e)},f.clearWaitingQueue=function(e){e===void 0&&(e={}),w.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},f.isActive=pe,f.update=function(e,t){t===void 0&&(t={});const n=((s,a)=>{var u;let{containerId:o}=a;return(u=w.get(o||1))==null?void 0:u.toasts.get(s)})(e,t);if(n){const{props:s,content:a}=n,u={delay:100,...s,...t,toastId:t.toastId||e,updateId:ge()};u.toastId!==e&&(u.staleId=e);const o=u.render||a;delete u.render,G(o,u)}},f.done=e=>{f.update(e,{progress:1})},f.onChange=function(e){return le.add(e),()=>{le.delete(e)}},f.play=e=>ue(!0,e),f.pause=e=>ue(!1,e);const Le=typeof window<"u"?T.useLayoutEffect:T.useEffect,te=e=>{let{theme:t,type:n,isLoading:s,...a}=e;return v.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...a})},re={info:function(e){return v.createElement(te,{...e},v.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 v.createElement(te,{...e},v.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 v.createElement(te,{...e},v.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 v.createElement(te,{...e},v.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 v.createElement("div",{className:"Toastify__spinner"})}},Ne=e=>{const{isRunning:t,preventExitTransition:n,toastRef:s,eventHandlers:a,playToast:u}=be(e),{closeButton:o,children:E,autoClose:p,onClick:I,type:d,hideProgressBar:C,closeToast:_,transition:N,position:g,className:c,style:b,bodyClassName:m,bodyStyle:l,progressClassName:r,progressStyle:y,updateId:x,role:R,progress:L,rtl:i,toastId:h,deleteToast:$,isIn:B,isLoading:D,closeOnClick:q,theme:z}=e,Y=F("Toastify__toast",`Toastify__toast-theme--${z}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":i},{"Toastify__toast--close-on-click":q}),Z=P(c)?c({rtl:i,position:g,type:d,defaultClassName:Y}):F(Y,c),S=function(X){let{theme:A,type:k,isLoading:M,icon:O}=X,V=null;const U={theme:A,type:k};return O===!1||(P(O)?V=O({...U,isLoading:M}):T.isValidElement(O)?V=T.cloneElement(O,U):M?V=re.spinner():(ye=>ye in re)(k)&&(V=re[k](U))),V}(e),H=!!L||!p,Q={closeToast:_,type:d,theme:z};let W=null;return o===!1||(W=P(o)?o(Q):T.isValidElement(o)?T.cloneElement(o,Q):function(X){let{closeToast:A,theme:k,ariaLabel:M="close"}=X;return v.createElement("button",{className:`Toastify__close-button Toastify__close-button--${k}`,type:"button",onClick:O=>{O.stopPropagation(),A(O)},"aria-label":M},v.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},v.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"})))}(Q)),v.createElement(N,{isIn:B,done:$,position:g,preventExitTransition:n,nodeRef:s,playToast:u},v.createElement("div",{id:h,onClick:I,"data-in":B,className:Z,...a,style:b,ref:s},v.createElement("div",{...B&&{role:R},className:P(m)?m({type:d}):F("Toastify__toast-body",m),style:l},S!=null&&v.createElement("div",{className:F("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter"
1:!D})},S),v.createElement("div",null,E)),W,v.createElement(_e,{...x&&!H?{key:`pb-${x}`}:{},rtl:i,theme:z,delay:p,isRunning:t,isIn:B,closeToast:_,hide:C,type:d,style:y,className:r,controlledProgress:H,progress:L||0})))},ae=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},we=se(ae("bounce",!0));se(ae("slide",!0));se(ae("zoom"));se(ae("flip"));const $e={position:"top-right",transition:we,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Me(e){let t={...$e,...e};const n=e.stacked,[s,a]=T.useState(!0),u=T.useRef(null),{getToastToRender:o,isToastActive:E,count:p}=Te(t),{className:I,style:d,rtl:C,containerId:_}=t;function N(c){const b=F("Toastify__toast-container",`Toastify__toast-container--${c}`,{"Toastify__toast-container--rtl":C});return P(I)?I({position:c,rtl:C,defaultClassName:b}):F(b,ne(I))}function g(){n&&(a(!0),f.play())}return Le(()=>{if(n){var c;const b=u.current.querySelectorAll('[data-in="true"]'),m=12,l=(c=t.position)==null?void 0:c.includes("top");let r=0,y=0;Array.from(b).reverse().forEach((x,R)=>{const L=x;L.classList.add("Toastify__toast--stacked"),R>0&&(L.dataset.collapsed=`${s}`),L.dataset.pos||(L.dataset.pos=l?"top":"bot");const i=r*(s?.2:1)+(s?0:m*R);L.style.setProperty("--y",`${l?i:-1*i}px`),L.style.setProperty("--g",`${m}`),L.style.setProperty("--s",""+(1-(s?y:0))),r+=L.offsetHeight,y+=.025})}},[s,p,n]),v.createElement("div",{ref:u,className:"Toastify",id:_,onMouseEnter:()=>{n&&(a(!1),f.pause())},onMouseLeave:g},o((c,b)=>{const m=b.length?{...d}:{...d,pointerEvents:"none"};return v.createElement("div",{className:N(c),style:m,key:`container-${c}`},b.map(l=>{let{content:r,props:y}=l;return v.createElement(Ne,{...y,stacked:n,collapseAll:g,isIn:E(y.toastId,y.containerId),style:y.style,key:`toast-${y.key}`},r)}))}))}const Pe=()=>{const{flash:e}=ve().props,t=e||{};return T.useEffect(()=>{t.success&&f.success(t.success),t.error&&f.error(t.error),t.info&&f.info(t.info),t.warning&&f.warn(t.warning)},[e]),null},xe=Object.freeze(Object.defineProperty({__proto__:null,default:Pe},Symbol.toStringTag,{value:"Module"}));export{f as B,Me as Q,Pe as T,xe as a};

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.