PageSourceSearch

https://savemart.com/build/_shared/chunk-JHYR5QDS.js

js savemart.com collected 2026-10-02 06:23:01 UTC 12,439 bytes, 1 lines download raw bytes

1import{C as Ot,a as xt,b as K,ba as H,e as gt,h as vt,ha as Rt,l as bt,o as Pt,q as Ct,t as T,u as _t}from"/build/_shared/chunk-FES3B5QL.js";import{a as Zt,c as yt,j as St,m as Nt,w as Tt}from"/build/_shared/chunk-XC7SPKRF.js";import{a as Et}from"/build/_shared/chunk-G3QUQOKW.js";import{a as N}from"/build/_shared/chunk-F3RAJA4O.js";import{e as d}from"/build/_shared/chunk-O3BUCIVF.js";var Mt=d(N(),1);function tt(n){let r=n,s=!1,o=new Set;return{getState(){return r},updateState(t){r=typeof t=="function"?t(r):t},setState(t){this.updateState(t),o.forEach(e=>e(r))},initialize(t){s||(r=t,s=!0)},subscribe(t){return o.add(t),()=>o.delete(t)}}}function et(n){return(0,Mt.useSyncExternalStore)(n.subscribe,()=>n.getState(),()=>n.getState())}function Jt(n,r,s){let o=[],t=[],e={};for(let i of n){let a=i.position||r;e[a]=e[a]||0,e[a]+=1,e[a]<=s?t.push(i):o.push(i)}return{notifications:t,queue:o}}var Dt=()=>tt({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),m=Dt(),nt=(n=m)=>et(n);function b(n,r){let s=n.getState(),o=r([...s.notifications,...s.queue]),t=Jt(o,s.defaultPosition,s.limit);n.setState({notifications:t.notifications,queue:t.queue,limit:s.limit,defaultPosition:s.defaultPosition})}function wt(n,r=m){let s=n.id||yt();return b(r,o=>n.id&&o.some(t=>t.id===n.id)?o:[...o,{...n,id:s}]),s}function X(n,r=m){return b(r,s=>s.filter(o=>o.id===n?(o.onClose?.(o),!1):!0)),n}function kt(n,r=m){return b(r,s=>s.map(o=>o.id===n.id?{...o,...n}:o)),n.id}function It(n=m){b(n,()=>[])}function Lt(n=m){b(n,r=>r.slice(0,n.getState().limit))}var g={show:wt,hide:X,update:kt,clean:It,cleanQueue:Lt,updateState:b};var l=d(Et(),1),j=d(N(),1);function Q(n,r){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},Q(n,r)}function $(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,Q(n,r)}var F=d(N()),G=d(Zt());var ot={disabled:!1};var Ft=d(N()),D=Ft.default.createContext(null);var Gt=function(r){return r.scrollTop};var U="unmounted",P="exited",C="entering",k="entered",it="exiting",h=function(n){$(r,n);function r(o,t){var e;e=n.call(this,o,t)||this;var i=t,a=i&&!i.isMounting?o.enter:o.appear,u;return e.appearStatus=null,o.in?a?(u=P,e.appearStatus=C):u=k:o.unmountOnExit||o.mountOnEnter?u=U:u=P,e.state={status:u},e.nextCallback=null,e}r.getDerivedStateFromProps=function(t,e){var i=t.in;return i&&e.status===U?{status:P}:null};var s=r.prototype;return s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(t){var e=null;if(t!==this.props){var i=this.state.status;this.props.in?i!==C&&i!==k&&(e=C):(i===C||i===k)&&(e=it)}this.updateStatus(!1,e)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var t=this.props.timeout,e,i,a;return e=i=a=t,t!=null&&typeof t!="number"&&(e=t.exit,i=t.enter,a=t.appear!==void 0?t.appear:i),{exit:e,enter:i,appear:a}},s.updateStatus=function(t,e){if(t===void 0&&(t=!1),e!==null)if(this.cancelNextCallback(),e===C){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:G.default.findDOMNode(this);i&&Gt(i)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===P&&this.setState({status:U})},s.performEnter=function(t){var e=this,i=this.props.enter,a=this.context?this.context.isMounting:t,u=this.props.nodeRef?[a]:[G.default.findDOMNode(this),a],p=u[0],c=u[1],E=this.getTimeouts(),R=a?E.appear:E.enter;if(!t&&!i||ot.disabled){this.safeSetState({status:k},function(){e.props.onEntered(p)});return}this.props.onEnter(p,c),this.safeSetState({status:C},function(){e.props.onEntering(p,c),e.onTransitionEnd(R,function(){e.safeSetState({status:k},function(){e.props.onEntered(p,c)})})})},s.performExit=function(){var t=this,e=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:G.default.findDOMNode(this);if(!e||ot.disabled){this.safeSetState({status:P},function(){t.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:it},function(){t.props.onExiting(a),t.onTransitionEnd(i.exit,function(){t.safeSetState({status:P},function(){t.props.onExited(a)})})})},s.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},s.setNextCallback=function(t){var e=this,i=!0;
vendor: 4,996 bytes, line 1
1return this.nextCallback=function(a){i&&(i=!1,e.nextCallback=null,t(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},s.onTransitionEnd=function(t,e){this.setNextCallback(e);var i=this.props.nodeRef?this.props.nodeRef.current:G.default.findDOMNode(this),a=t==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],p=u[0],c=u[1];this.props.addEndListener(p,c)}t!=null&&setTimeout(this.nextCallback,t)},s.render=function(){var t=this.state.status;if(t===U)return null;var e=this.props,i=e.children,a=e.in,u=e.mountOnEnter,p=e.unmountOnExit,c=e.appear,E=e.enter,R=e.exit,ct=e.timeout,Y=e.addEndListener,Qt=e.onEnter,z=e.onEntering,lt=e.onEntered,ft=e.onExit,y=e.onExiting,dt=e.onExited,I=e.nodeRef,W=H(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return F.default.createElement(D.Provider,{value:null},typeof i=="function"?i(t,W):F.default.cloneElement(F.default.Children.only(i),W))},r}(F.default.Component);h.contextType=D;h.propTypes={};function w(){}h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:w,onEntering:w,onEntered:w,onExit:w,onExiting:w,onExited:w};h.UNMOUNTED=U;h.EXITED=P;h.ENTERING=C;h.ENTERED=k;h.EXITING=it;var rt=h;function Ut(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}var V=d(N());var f=d(N());function A(n,r){var s=function(e){return r&&(0,f.isValidElement)(e)?r(e):e},o=Object.create(null);return n&&f.Children.map(n,function(t){return t}).forEach(function(t){o[t.key]=s(t)}),o}function Kt(n,r){n=n||{},r=r||{};function s(c){return c in r?r[c]:n[c]}var o=Object.create(null),t=[];for(var e in n)e in r?t.length&&(o[e]=t,t=[]):t.push(e);var i,a={};for(var u in r){if(o[u])for(i=0;i<o[u].length;i++){var p=o[u][i];a[o[u][i]]=s(p)}a[u]=s(u)}for(i=0;i<t.length;i++)a[t[i]]=s(t[i]);return a}function _(n,r,s){return s[r]!=null?s[r]:n.props[r]}function Vt(n,r){return A(n.children,function(s){return(0,f.cloneElement)(s,{onExited:r.bind(null,s),in:!0,appear:_(s,"appear",n),enter:_(s,"enter",n),exit:_(s,"exit",n)})})}function jt(n,r,s){var o=A(n.children),t=Kt(r,o);return Object.keys(t).forEach(function(e){var i=t[e];if((0,f.isValidElement)(i)){var a=e in r,u=e in o,p=r[e],c=(0,f.isValidElement)(p)&&!p.props.in;u&&(!a||c)?t[e]=(0,f.cloneElement)(i,{onExited:s.bind(null,i),in:!0,exit:_(i,"exit",n),enter:_(i,"enter",n)}):!u&&a&&!c?t[e]=(0,f.cloneElement)(i,{in:!1}):u&&a&&(0,f.isValidElement)(p)&&(t[e]=(0,f.cloneElement)(i,{onExited:s.bind(null,i),in:p.props.in,exit:_(i,"exit",n),enter:_(i,"enter",n)}))}}),t}var te=Object.values||function(n){return Object.keys(n).map(function(r){return n[r]})},ee={component:"div",childFactory:function(r){return r}},st=function(n){$(r,n);function r(o,t){var e;e=n.call(this,o,t)||this;var i=e.handleExited.bind(Ut(e));return e.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},e}var s=r.prototype;return s.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},s.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,e){var i=e.children,a=e.handleExited,u=e.firstRender;return{children:u?Vt(t,a):jt(t,i,a),firstRender:!1}},s.handleExited=function(t,e){var i=A(this.props.children);t.key in i||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState(function(a){var u=xt({},a.children);return delete u[t.key],{children:u}}))},s.render=function(){var t=this.props,e=t.component,i=t.childFactory,a=H(t,["component","childFactory"]),u=this.state.contextValue,p=te(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,e===null?V.default.createElement(D.Provider,{value:u},p):V.default.createElement(D.Provider,{value:u},V.default.createElement(e,a,p))},r}(V.default.Component);st.propTypes={};st.defaultProps=ee;var v=st;var at=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function zt(n,r){return n.reduce((s,o)=>(s[o.position||r].push(o),s),at.reduce((s,o)=>(s[o]=[],s),{}))}var Wt={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},ne={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function qt({state:n,maxHeight:r,position:s,transitionDuration:o}){let[t,e]=s.split("-"),i=e==="center"?`${t}-center`:e,a={opacity:0,maxHeight:r,transform:Wt[i],transitionDuration:`${o}ms, ${o}ms, ${o}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},u={opacity:1,transform:ne[i]},p={opacity:0,maxHeight:0,transform:Wt[i]};return{...a,...{entering:u,entered:u,exiting:p,exited:p}[n]}}
1var Xt=d(Et(),1),O=d(N(),1);function Ht(n,r){return typeof r=="number"?r:r===!1||n===!1?!1:n}var ut=(0,O.forwardRef)(({data:n,onHide:r,autoClose:s,...o},t)=>{let{autoClose:e,message:i,...a}=n,u=Ht(s,n.autoClose),p=(0,O.useRef)(-1),c=()=>window.clearTimeout(p.current),E=()=>{r(n.id),c()},R=()=>{typeof u=="number"&&(p.current=window.setTimeout(E,u))};return(0,O.useEffect)(()=>{n.onOpen?.(n)},[]),(0,O.useEffect)(()=>(R(),c),[u]),(0,Xt.jsx)(Rt,{...o,...a,onClose:E,ref:t,onMouseEnter:c,onMouseLeave:R,children:i})});ut.displayName="@mantine/notifications/NotificationContainer";var pt={root:"m_b37d9ac7",notification:"m_5ed0edd0"};var oe=rt,ie={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:vt("overlay"),store:m,withinPortal:!0},re=(n,{zIndex:r,containerWidth:s})=>({root:{"--notifications-z-index":r?.toString(),"--notifications-container-width":gt(s)}}),x=_t((n,r)=>{let s=Ct("Notifications",ie,n),{classNames:o,className:t,style:e,styles:i,unstyled:a,vars:u,position:p,autoClose:c,transitionDuration:E,containerWidth:R,notificationMaxHeight:ct,limit:Y,zIndex:Qt,store:z,portalProps:lt,withinPortal:ft,...y}=s,dt=bt(),I=nt(z),W=Nt(),$t=Tt(),B=(0,j.useRef)({}),mt=(0,j.useRef)(0),ht=(dt.respectReducedMotion?$t:!1)?1:E,S=Pt({name:"Notifications",classes:pt,props:s,className:t,style:e,classNames:o,styles:i,unstyled:a,vars:u,varsResolver:re});(0,j.useEffect)(()=>{z?.updateState(q=>({...q,limit:Y||5,defaultPosition:p}))},[Y,p]),St(()=>{I.notifications.length>mt.current&&setTimeout(()=>W(),0),mt.current=I.notifications.length},[I.notifications]);let At=zt(I.notifications,p),M=at.reduce((q,Z)=>(q[Z]=At[Z].map(({style:Yt,...L})=>(0,l.jsx)(oe,{timeout:ht,onEnter:()=>B.current[L.id].offsetHeight,nodeRef:{current:B.current[L.id]},children:Bt=>(0,l.jsx)(ut,{ref:J=>{B.current[L.id]=J},data:L,onHide:J=>X(J,z),autoClose:c,...S("notification",{style:{...qt({state:Bt,position:Z,transitionDuration:ht,maxHeight:ct}),...Yt}})})},L.id)),q),{});return(0,l.jsxs)(Ot,{withinPortal:ft,...lt,children:[(0,l.jsx)(T,{...S("root"),"data-position":"top-center",ref:r,...y,children:(0,l.jsx)(v,{children:M["top-center"]})}),(0,l.jsx)(T,{...S("root"),"data-position":"top-left",...y,children:(0,l.jsx)(v,{children:M["top-left"]})}),(0,l.jsx)(T,{...S("root",{className:K.classNames.fullWidth}),"data-position":"top-right",...y,children:(0,l.jsx)(v,{children:M["top-right"]})}),(0,l.jsx)(T,{...S("root",{className:K.classNames.fullWidth}),"data-position":"bottom-right",...y,children:(0,l.jsx)(v,{children:M["bottom-right"]})}),(0,l.jsx)(T,{...S("root"),"data-position":"bottom-left",...y,children:(0,l.jsx)(v,{children:M["bottom-left"]})}),(0,l.jsx)(T,{...S("root"),"data-position":"bottom-center",...y,children:(0,l.jsx)(v,{children:M["bottom-center"]})})]})});x.classes=pt;x.displayName="@mantine/notifications/Notifications";x.show=g.show;x.hide=g.hide;x.update=g.update;x.clean=g.clean;x.cleanQueue=g.cleanQueue;x.updateState=g.updateState;export{g as a,$ as b,Ut as c,x as d};

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.