PageSourceSearch

https://platform.gocrisp.com/dock/assets/Toasts-u27bCQX9.js

js gocrisp.com collected 2026-09-24 09:48:13 UTC 13,111 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-DiVRNtpo.js";import{b as n,c as r,f as i,y as a}from"./react-router-wdSc6GxP.js";import{t as o}from"./dist-DJifqJOB.js";import{t as s}from"./jsx-runtime-BdxMnOeJ.js";import{t as c}from"./clsx-DB0hHKMi.js";import{n as l,t as u}from"./Transition-CN7C8nlN.js";import{t as d}from"./close-DlKhCayZ.js";function f(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function p(e,t){e.classList?e.classList.add(t):f(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function m(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function h(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=m(e.className,t):e.setAttribute(`class`,m(e.className&&e.className.baseVal||``,t))}var g=e(t()),_=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return p(e,t)})},v=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return h(e,t)})},y=function(e){n(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];
1return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var r=t.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&l(e),r&&(this.appliedClasses[t][n]=r,_(e,r))},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&v(e,r),i&&v(e,i),a&&v(e,a)},r.render=function(){var e=this.props;e.classNames;var t=i(e,[`classNames`]);return g.createElement(u,a({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(g.Component);y.defaultProps={classNames:``},y.propTypes={};var b=o(),x=s(),S={scaleFactor:`.7`,translateDistance:`-400px`,appear:`_appear_87kvl_4`,enter:`_enter_87kvl_5`,"enter-done":`_enter-done_87kvl_10`,exit:`_exit_87kvl_15`,exitDone:`_exitDone_87kvl_16`},C={border:`#ebe8e3`,borderHover:`#bbbbbb`,subtle:`#929292`,defaultColor:`#393939`,toastWidth:`350px`,toastHeight:`80px`,shadowColor:`rgba(199, 199, 199, 0.5)`,borderRadius:`4px`,highlightSectionWidth:`40px`,m:`var(--space-m)`,s:`var(--space-s)`,toast:`_toast_1e1gb_12`,highlightSection:`_highlightSection_1e1gb_38`,iconSection:`_iconSection_1e1gb_51`,contentSection:`_contentSection_1e1gb_61`,dismissSection:`_dismissSection_1e1gb_73`,active:`_active_1e1gb_93`},w=((e=0)=>()=>++e)();function T({notification:e}){let{content:t,Icon:n,highlight:r,iconFill:i,iconWidth:a=18,onDismiss:o,state:s,onDismissAnimationComplete:l,onShowAnimationComplete:u,ariaLabel:f,autoDismissAfterMs:p}=e,m=!!p,h=s===E.Showing?o:void 0,_=(0,g.useCallback)(()=>r?(0,x.jsx)(`div`,{className:C.highlightSection,style:{backgroundColor:r},children:n&&(0,x.jsx)(n,{width:a,fill:i})}):n&&(0,x.jsx)(`div`,{className:C.iconSection,children:(0,x.jsx)(n,{width:18,fill:i})}),[r,n,i,a]),v=(0,g.useMemo)(()=>`notification-${String(w())}`,[t]),b=(0,g.useRef)(null);return(0,x.jsx)(y,{appear:!0,in:s===E.AnimatingShow||s===E.Showing,timeout:300,onEntered:u,onExited:l,classNames:{...S},nodeRef:b,children:(0,x.jsxs)(`div`,{ref:b,className:C.toast,role:m?`log`:`alertdialog`,"aria-live":m?`polite`:`off`,"aria-describedby":v,"aria-modal":`true`,"aria-label":f,children:[_(),(0,x.jsx)(`div`,{className:C.contentSection,id:v,children:t}),(0,x.jsx)(`button`,{className:c(C.dismissSection,{[C.active]:!!h}),onClick:h,type:`button`,"aria-label":m?` `:`Dismiss Notification`,children:(0,x.jsx)(d,{})})]})})}var E=function(e){return e[e.AnimatingShow=0]=`AnimatingShow`,e[e.Showing=1]=`Showing`,e[e.AnimatingDismiss=2]=`AnimatingDismiss`,e[e.Dismissed=3]=`Dismissed`,e}({}),D=Object.freeze({Icon:void 0,iconFill:void 0,highlight:void 0,autoDismissAfterMs:4e3,onShowAnimationComplete:void 0,onDismissAnimationComplete:void 0,onDismiss:void 0,dismissOnPathnameChange:!1,dismissOnHistoryChange:!1,dismissOnLocationChangeImmediate:!1}),O=window.setTimeout,k=({state:e})=>e===0||e===2,A=({pushToast:e,refreshToasts:t,removeToast:n,onPathnameChange:r,onHistoryChange:i})=>(a,o)=>{let s,c,l,u=()=>{c&&=(window.clearTimeout(c),void 0)},d={createdAt:+new Date,content:a,...D,...o,state:0,onDismiss:()=>{},onDismissAnimationComplete:()=>{},onShowAnimationComplete:()=>{}},f=(e=!1)=>d.state!==3&&(l&&=(l(),void 0),e?(n(d),d.state=3):(d.state=2,t(),u()),!0),p=(e=0)=>d.autoDismissAfterMs!==void 0&&!c&&(c=O(()=>f(),e+d.autoDismissAfterMs+300),!0),m=e=>{if(s){let{content:t,options:n}=s;return d.content=t,Object.assign(d,n,e(n)),s=void 0,!0}return!1},h=e=>({onDismissAnimationComplete:()=>(d.state=3,n(d),m(h),e?.onDismissAnimationComplete?.()),onShowAnimationComplete:()=>(d.state=1,m(h),t(),e?.onShowAnimationComplete?.()),onDismiss:()=>{u(),d.state=2,t(),e?.onDismiss?.()}});Object.assign(d,h(o));let g=()=>{d.state=0,e(d),p(),d.dismissOnHistoryChange?l=i(()=>f(d.dismissOnLocationChangeImmediate)):d.dismissOnPathnameChange&&(l=r(()=>f(d.dismissOnLocationChangeImmediate)))},_=(e,t)=>{s={content:e,options:t},k(d)||m(h)};return g(),{dismiss:f,showAgain:(e,n)=>((e||n)&&_(e||a,n),d.state===1?(u(),t(),p(-300),!0):d.state!==0&&(f(!0),g(),!0)),getState:()=>d.state}},j=g.createContext({show:()=>({dismiss:()=>!1,getState:()=>E.AnimatingShow,showAgain:()=>!1,update:()=>{}}),notifications:[],panelHasReducedOffset:!1,setPanelHasReducedOffset:b.noop});function M({children:e}){let[t,n]=(0,g.useState)([]),i=r(),a=(0,g.useRef)(A({pushToast:e=>{n(t=>[e,...t])},removeToast:e=>{n(t=>t.filter(t=>t!==e))},refreshToasts:()=>n(e=>[...e]),onHistoryChange:e=>i.listen(()=>e()),onPathnameChange:e=>i.listen(({pathname:t})=>{i.location.pathname!==t&&e()})})).current,[o,s]=(0,g.useState)(!1);return(0,x.jsx)(j.Provider,{value:{show:a,notifications:t,panelHasReducedOffset:o,setPanelHasReducedOffset:s},children:e})}var N=()=>(0,g.useContext)(j),P=e=>(0,x.jsx)(`svg`,{width:`20px`,height:`20px`,viewBox:`0 0 20 20`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,x.jsx)(`g`,{id:`Notifications,-alerts`,stroke:`none`,strokeWidth:1,fill:`none`,fillRule:`evenodd`,children:(0,x.jsx)(`g`,{id:`A2-Copy-15`,transform:`translate(-30.000000, -980.000000)`,fill:`#393939`,fillRule:`nonzero`,children:(0,x.jsx)(`g`,{id:`Group`,transform:`translate(20.000000, 680.000000)`,children:(0,x.jsx)(`g`,{id:`Group-5-Copy`,transform:`translate(0.000000, 180.000000)`,children:(0,x.jsx)(`g`,{id:`check-circle-1`,transform:`translate(10.000000, 120.000000)`,children:(0,x.jsx)(`path`,{d:`M10,0 C4.4771525,0 0,4.4771525 0,10 C0,15.5228475 4.4771525,20 10,20 C15.5228475,20 20,15.5228475 20,10 C19.993571,4.47981766 15.5201823,0.00642896858 10,0 Z M15.7725,6.83333333 L10.0683333,14.5741667 C9.93229466,14.754658 9.72944022,14.8729209 9.50535155,14.9023815 C9.28126289,14.9318421 9.05473421,14.8700296 8.87666667,14.7308333 L4.80333333,11.4741667 C4.44388801,11.1865184 4.38568503,10.6619453 4.67333333,10.3025 C4.96098164,9.94305468 5.48555468,9.88485169 5.845,10.1725 L9.24166667,12.89 L14.4308333,5.8475 C14.6009933,5.59215835 14.8977092,5.45098554 15.2031763,5.48003127 C15.5086433,5.50907699 15.7734353,5.70364148 15.892422,5.98647
1701 C16.0114087,6.26931254 15.9653375,6.59465473 15.7725,6.83333333 Z`,id:`Shape`})})})})})})}),F=e=>(0,x.jsx)(`svg`,{width:`20px`,height:`20px`,viewBox:`0 0 20 20`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,x.jsx)(`g`,{id:`Notifications,-alerts`,stroke:`none`,strokeWidth:1,fill:`none`,fillRule:`evenodd`,children:(0,x.jsx)(`g`,{id:`A2-Copy-15`,transform:`translate(-30.000000, -800.000000)`,fill:`#393939`,fillRule:`nonzero`,children:(0,x.jsx)(`path`,{d:`M40,800 C34.4771525,800 30,804.477153 30,810 C30,815.522847 34.4771525,820 40,820 C45.5228475,820 50,815.522847 50,810 C49.9940293,804.479628 45.5203725,800.005971 40,800 Z M40.2083333,804.166667 C40.8986893,804.166667 41.4583333,804.726311 41.4583333,805.416667 C41.4583333,806.107023 40.8986893,806.666667 40.2083333,806.666667 C39.5179774,806.666667 38.9583333,806.107023 38.9583333,805.416667 C38.9583333,804.726311 39.5179774,804.166667 40.2083333,804.166667 Z M42.0833333,815.416667 L38.75,815.416667 C38.2897627,815.416667 37.9166667,815.043571 37.9166667,814.583333 C37.9166667,814.123096 38.2897627,813.75 38.75,813.75 L39.375,813.75 C39.4900593,813.75 39.5833333,813.656726 39.5833333,813.541667 L39.5833333,809.791667 C39.5833333,809.676607 39.4900593,809.583333 39.375,809.583333 L38.75,809.583333 C38.2897627,809.583333 37.9166667,809.210237 37.9166667,808.75 C37.9166667,808.289763 38.2897627,807.916667 38.75,807.916667 L39.5833333,807.916667 C40.5038079,807.916667 41.25,808.662859 41.25,809.583333 L41.25,813.541667 C41.25,813.656726 41.343274,813.75 41.4583333,813.75 L42.0833333,813.75 C42.5435706,813.75 42.9166667,814.123096 42.9166667,814.583333 C42.9166667,815.043571 42.5435706,815.416667 42.0833333,815.416667 Z`,id:`Shape`})})})}),I=e=>(0,x.jsx)(`svg`,{width:`20px`,height:`20px`,viewBox:`0 0 20 20`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,x.jsx)(`g`,{id:`Notifications,-alerts`,stroke:`none`,strokeWidth:1,fill:`none`,fillRule:`evenodd`,children:(0,x.jsx)(`g`,{id:`A2-Copy-15`,transform:`translate(-30.000000, -890.000000)`,fill:`#393939`,fillRule:`nonzero`,children:(0,x.jsx)(`path`,{d:`M39.9871337,890.002235 C37.315136,890.045978 34.7676847,891.139497 32.8954671,893.046401 C31.002688,894.930852 29.9578953,897.504176 30.0013004,900.174735 C29.998196,902.783112 31.0333948,905.285464 32.8783441,907.129318 C34.7232934,908.973173 37.2262593,910.006887 39.8346337,910.00225 L40.0129671,910.00225 C45.5781604,909.944977 50.0466298,905.393371 50.0013004,899.828068 L50.0013004,899.828068 C50.0075124,897.18736 48.9482944,894.655782 47.0633861,892.806322 C45.1784778,890.956863 42.6272483,889.945894 39.9871337,890.002235 Z M38.7513004,903.787235 C38.7391652,903.457163 38.8602905,903.136079 39.0874101,902.896264 C39.3145297,902.656448 39.6285565,902.518054 39.9588004,902.512235 L39.9813004,902.512235 C40.6646511,902.513549 41.2249601,903.054359 41.250469,903.737235 C41.2628331,904.067369 41.1417849,904.388584 40.9146166,904.628451 C40.6874482,904.868319 40.3732858,905.006643 40.0429671,905.012235 L40.0204671,905.012235 C39.3374641,905.010063 38.7776523,904.469733 38.7513004,903.787235 Z M39.1679671,900.418901 L39.1679671,895.418901 C39.1679671,894.958664 39.5410631,894.585568 40.0013004,894.585568 C40.4615377,894.585568 40.8346337,894.958664 40.8346337,895.418901 L40.8346337,900.418901 C40.8346337,900.879139 40.4615377,901.252235 40.0013004,901.252235 C39.5410631,901.252235 39.1679671,900.879139 39.1679671,900.418901 Z`,id:`Shape-Copy`})})})});function L(e,t){let{show:n}=N(),r=(0,g.useRef)(void 0),i=(0,g.useRef)(void 0),a=(0,g.useCallback)((a,o)=>
1{let s=r.current,c=i.current,l=a??c?.content??e,u=t||o||c?.options?{...t,...c?.options,...o}:void 0;s?s.showAgain(l,u):r.current=n(l,u),i.current=void 0},[n,e,t]),o=(0,g.useCallback)((e,t)=>{let n=r.current?.getState();!n||n===E.Dismissed||n===E.AnimatingDismiss?i.current={content:e,options:t}:r.current?.showAgain(e,t)},[]),s=(0,g.useCallback)((e=!1)=>r.current?.dismiss(e)??!1,[]);return{show:(0,g.useCallback)((...e)=>setTimeout(()=>a(...e),0),[a]),dismiss:s,update:o}}var R=Object.freeze({Success:{Icon:P,highlight:`#49d29f`,ariaLabel:`Success`},Info:{Icon:F,highlight:`#69C5EC`,ariaLabel:`Info`},Warning:{Icon:I,highlight:`#FFCD03`,ariaLabel:`Warning`},Failure:{Icon:I,highlight:`#E87E96`,ariaLabel:`Failure`}}),z=e=>(t,n)=>L(t,(0,g.useMemo)(()=>({...e,...n}),[e,n])),B=(...e)=>z(R.Success)(...e),V=(...e)=>z(R.Info)(...e),H=(...e)=>z(R.Failure)(...e);export{z as a,E as c,B as i,T as l,H as n,M as o,V as r,N as s,R as t,y as u};

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.