PageSourceSearch

https://consierge-app.com/_next/static/chunks/756-155165714ed10ee2.js

js consierge-app.com collected 2026-10-02 01:26:24 UTC 13,165 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[756],{45095:function(e,n,t){t.d(n,{H:function(){return f},a:function(){return m}});var r=t(78756),a=t(56402),o=t(76097),s=t(57964),i=t(7476),u=t(15825),c=t(27247),l=t(89728);let d=e=>{let{onSwitchedToUser:n}=e,t=l.SX.useUtils(),r=l.SX.userSwitchToUser.useMutation(),o=(0,u.dU$)({onSwitchedToUser:n}),s=a.useCallback(async e=>{let{accessToken:n,refreshToken:a}=await r.mutateAsync({userId:e});if(n&&a){var s,i;await (null===(s=(i=o.current).onSwitchedToUser)||void 0===s?void 0:s.call(i,e,{accessToken:n,refreshToken:a})),await t.invalidate()}},[o,r,t]);return a.useMemo(()=>({switchToUser:s,switchToUserLoading:r.isLoading}),[s,r.isLoading])},v=a.createContext({switchToUserLoading:!1,signOutLoading:!1,signOut:async()=>{},switchToUser:async()=>{}}),f=e=>{let{children:n,needUpdateTokenPair:t,needSignOutFromExtension:l,needSwitchToUserInExtension:f,needUpdateCookies:m,extensionOptions:h,cookiesDomain:y}=e,{setTokenPair:g}=(0,o.m8)(),{setTokenPairCookies:C,removeTokenPairCookies:k}=(0,s.j)(y),{signOutInExtension:U}=function(e){let{showMessage:n}=(0,u.cYR)();return{signOutInExtension:(0,u.dU$)(async()=>{try{await (0,c.m)(e,{method:"sign.out.user"})}catch(e){e instanceof Error&&n({message:e.message,color:"danger"})}})}}(h),{switchToUserInExtension:w}=function(e){let{showMessage:n}=(0,u.cYR)();return{switchToUserInExtension:(0,u.dU$)(async t=>{try{await (0,c.m)(e,{method:"switch.to.user",data:{userId:t}})}catch(e){e instanceof Error&&n({message:e.message,color:"danger"})}})}}(h),{signOut:M,signOutLoading:E}=(0,i.Q)({onSignedOut:async()=>{t&&await g(null),m&&k(),l&&await U.current()}}),{switchToUser:S,switchToUserLoading:x}=d({onSwitchedToUser:async(e,n)=>{t&&await g(n),m&&C(n),f&&await w.current(e)}}),T=a.useMemo(()=>({switchToUserLoading:x,signOutLoading:E,signOut:M,switchToUser:S}),[x,E,M,S]);return(0,r.jsx)(v.Provider,{value:T,children:n})},m=()=>a.useContext(v)},7476:function(e,n,t){t.d(n,{Q:function(){return s}});
1var r=t(15825),a=t(56402),o=t(89728);let s=e=>{let{onSignedOut:n}=e,t=o.SX.userSignOut.useMutation(),s=(0,r.dU$)({onSignedOut:n}),i=a.useCallback(async()=>{var e,n;await t.mutateAsync(),await (null===(e=(n=s.current).onSignedOut)||void 0===e?void 0:e.call(n))},[t,s]);return a.useMemo(()=>({signOut:i,signOutLoading:t.isLoading}),[i,t.isLoading])}},76097:function(e,n,t){t.d(n,{de:function(){return y},m8:function(){return g}});var r=t(78756),a=t(87033),o=t(15825),s=t(22453),i=t(56402),u=t(89728),c=t(27247);let l=(e,n,t,r,a,s,u)=>{let[l,d]=i.useState(!n),v=(0,o.dU$)(l),{signInFromExtension:f}=function(e){let{showMessage:n}=(0,o.cYR)();return{signInFromExtension:(0,o.dU$)(async()=>{let t;try{t=await (0,c.m)(e,{method:"get.token.pair",data:null})}catch(e){e instanceof Error&&n({message:e.message,color:"danger"})}return t||null})}}(r),m=(0,o.dU$)({tokenPair:a,setTokenPair:s,onSignedIn:u});return(0,o.LIc)(()=>{t&&(v.current||(n&&!m.current.tokenPair?(async()=>{try{let e=await f.current();if(e){var n,t;m.current.setTokenPair(e),await (null===(n=(t=m.current).onSignedIn)||void 0===n?void 0:n.call(t,e))}}catch(n){n instanceof Error&&e.error("Cannot sign in from extension",n.message)}finally{d(!0)}})():d(!0)))},[n,t]),{extensionChecked:l}};var d=t(57964);let v=(e,n,t,r,a,s,u)=>{let[c,l]=i.useState(!n),v=(0,o.dU$)(c),f=(0,o.dU$)({tokenPair:a,setTokenPair:s,onSignedIn:u}),{getTokenPairCookies:m,removeTokenPairCookies:h}=(0,d.j)(r);return(0,o.LIc)(()=>{if(t&&!v.current){if(n&&!f.current.tokenPair)try{let e=m();if(e){var r,a;f.current.setTokenPair(e),null===(r=(a=f.current).onSignedIn)||void 0===r||r.call(a,e)}}catch(n){n instanceof Error&&e.error("Cannot sign in with cookies",n.message),h()}l(!0)}},[n,t,r]),{cookiesChecked:c}},f=i.createContext({tokenPair:null,setTokenPair:async()=>{},onNotAuthorized:()=>()=>{},isSignedIn:!1,ready:!1,extensionOptions:{chromeExtensionId:"",safariExtensionId:"",edgeExtensionId:"",firefoxExtensionId:""}}),m=(e,n,t)=>(0,u.s3)(e,[(0,u.jd)(n),(0,u.A6)(t)]),h="notAuthorized",y=e=>{let{children:n,logger:t,apiUrl:c,needSignInFromExtension:y,needSignInWithCookies:g,needUpdateCookiesOnSignInFromExtension:C,needUpdateCookiesIfNotSet:k,cookiesDomain:U,extensionOptions:w}=e,[M,E]=(0,o.Mht)("".concat(a.bF,"token-pair"),null,!0),{setTokenPairCookies:S,getTokenPairCookies:x}=(0,d.j)(U);(0,o.LIc)(()=>{(0,u._B)(null!=M?M:null)},[M]);let{cookiesChecked:T}=v(t,g,!0,U,M,E),{extensionChecked:I}=l(t,y,T,w,M,E,e=>{C&&S(e)}),{showMessage:b}=(0,o.cYR)(),A=i.useRef((0,a.Ok)()),O=(0,o.dU$)(e=>{let n={accessToken:(null==M?void 0:M.accessToken)||"",refreshToken:(null==M?void 0:M.refreshToken)||""};void 0!==e.accessToken&&(n.accessToken=e.accessToken),void 0!==e.refreshToken&&(n.refreshToken=e.refreshToken),E(n)}),P=(0,o.dU$)(()=>{E(null)}),p=i.useMemo(()=>(0,u.gf)(),[]),j=i.useMemo(()=>m(c,{onNewTokenPairReceived(e){O.current(e)},onNotAuthorized(){P.current(),A.current.emit(h)}},{onError:e=>{b({message:e,color:"danger"}),e.startsWith("Max number of")&&b({message:"Please [link] to upgrade to the next tier",color:"danger",link:{name:"contact us",url:"https://forms.gle/u35ZoLGs4gsqYKsw5"}})}}),[c,P,b,O]),X=i.useCallback(e=>A.current.on(h,e),[]),G=T&&I,L=!!(M&&M.accessToken&&M.refreshToken);i.useLayoutEffect(()=>{k&&G&&L&&M&&!x()&&S(M)},[G,L,M,x,S,k]);let $=i.useMemo(()=>({tokenPair:M,setTokenPair:E,onNotAuthorized:X,isSignedIn:L,ready:G,extensionOptions:w}),[M,E,X,L,G,w]);return(0,r.jsx)(f.Provider,{value:$,children:(0,r.jsx)(u.SX.Provider,{client:j,queryClient:p,children:(0,r.jsx)(s.aH,{client:p,children:n})})})},g=()=>i.useContext(f)},57964:function(e,n,t){t.d(n,{j:function(){return i}});var r=t(87033),a=t(87694),o=t(56402);let s="".concat(r.bF,"token-pair"),i=e=>({getTokenPairCookies:o.useCallback(()=>{let e=a.Z.get(s);return e?(0,r.zu)(e):null},[]),setTokenPairCookies:o.useCallback(n=>{a.Z.set(s,JSON.stringify(n),{domain:e})},[e]),removeTokenPairCookies:o.useCallback(()=>{a.Z.remove(s,{domain:e})},[e])})},89391:function(e,n,t){t.d(n,{Y:function(){return d},h:function(){return v}});var r=t(78756),a=t(15825),o=t(56402),s=t(89728),i=t(76097),u=t(52515),c=t(41273);let l=o.createContext({eventsUnseenCount:void 0,...c.NL}),d=e=>{var n;let{children:t}=e,c=s.SX.useUtils(),{isSignedIn:d,extensionOptions:v}=(0,i.m8)(),{renovateEventsUnseenCountInExtension:f}=(0,u.g)(v),m=s.SX.userEventsGetMineUnseenCount.useQuery(void 0,{enabled:d,refetchOnReconnect:!0,refetchOnWindowFocus:!0,refetchInterval:18e4,keepPreviousData:!0,cacheTime:0}),h=null===(n=m.data)||void 0===n?void 0:n.eventsUnseenCount,y=s.SX.userEventsMarkAsSeen.useMutation(),g=s.SX.userEventsAllMarkAsSeen.useMutation(),C=o.useCallback(async e=>{let n=await y.mutateAsync({userEventIdOrIds:e});if(n.result){var t;c.userEventsGetMineUnseenCount.setData(void 0,e=>({eventsUnseenCount:n.userEventsUnseenCount})),null===(t=f.current)||void 0===t||t.call(f)}},[y,f,c.userEventsGetMineUnseenCount]),k=o.useCallback(async()=>{let e=await g.mutateAsync();if(e.result){var n;c.userEventsGetMineUnseenCount.setData(void 0,n=>({eventsUnseenCount:e.userEventsUnseenCount})),null===(n=f.current)||void 0===n||n.call(f)}},[g,f,c.userEventsGetMineUnseenCount]),U=o.useCallback(async()=>{var e;
1await c.userEventsGetMineUnseenCount.invalidate(),null===(e=f.current)||void 0===e||e.call(f)},[f,c.userEventsGetMineUnseenCount]);(0,a.Iu7)(async()=>{d&&await m.refetch()});let w=o.useMemo(()=>({eventsUnseenCount:h,markEventsAsSeen:C,markAllEventsAsSeen:k,updateEventsUnseenCount:U}),[h,C,k,U]);return(0,r.jsx)(l.Provider,{value:w,children:t})},v=()=>o.useContext(l)},84107:function(e,n,t){t.d(n,{N:function(){return d},z:function(){return v}});var r=t(78756),a=t(15825),o=t(56402),s=t(89728),i=t(76097),u=t(26817),c=t(41273);let l=o.createContext({notificationsUnseenCount:void 0,...c.yM}),d=e=>{var n;let{children:t}=e,c=s.SX.useUtils(),{isSignedIn:d,extensionOptions:v}=(0,i.m8)(),{renovateNotificationsUnseenCountInExtension:f}=(0,u.A)(v),m=s.SX.notificationsGetMineUnseenCount.useQuery(void 0,{enabled:d,refetchOnReconnect:!0,refetchOnWindowFocus:!0,refetchInterval:18e4,keepPreviousData:!0,cacheTime:0}),h=null===(n=m.data)||void 0===n?void 0:n.notificationsUnseenCount,y=s.SX.notificationsMarkAsSeen.useMutation(),g=s.SX.notificationsAllMarkAsSeen.useMutation(),C=o.useCallback(async e=>{let n=await y.mutateAsync({userNotificationIdOrIds:e});if(n.result){var t;c.notificationsGetMineUnseenCount.setData(void 0,e=>({notificationsUnseenCount:n.notificationsUnseenCount})),null===(t=f.current)||void 0===t||t.call(f)}},[y,f,c.notificationsGetMineUnseenCount]),k=o.useCallback(async()=>{let e=await g.mutateAsync();if(e.result){var n;c.notificationsGetMineUnseenCount.setData(void 0,n=>({notificationsUnseenCount:e.notificationsUnseenCount})),null===(n=f.current)||void 0===n||n.call(f)}},[g,f,c.notificationsGetMineUnseenCount]),U=o.useCallback(async()=>{var e;await c.notificationsGetMineUnseenCount.invalidate(),null===(e=f.current)||void 0===e||e.call(f)},[f,c.notificationsGetMineUnseenCount]);(0,a.Iu7)(async()=>{d&&await m.refetch()});let w=o.useMemo(()=>({notificationsUnseenCount:h,markNotificationsAsSeen:C,markAllNotificationsAsSeen:k,updateNotificationsUnseenCount:U}),[h,C,k,U]);return(0,r.jsx)(l.Provider,{value:w,children:t})},v=()=>o.useContext(l)},27247:function(e,n,t){t.d(n,{k:function(){return i},m:function(){return s}});var r=t(83517),a=t.n(r),o=t(53143);let s=async(e,n)=>{let{chromeExtensionId:t,safariExtensionId:r,firefoxExtensionId:a,edgeExtensionId:s}=e;if(o.jU&&o.i7&&"chrome"in window&&chrome.runtime&&t)try{return await chrome.runtime.sendMessage(t,n)}catch(e){}if(o.jU&&o.G6&&"browser"in window&&browser.runtime&&r)try{return await browser.runtime.sendMessage(r,n)}catch(e){}if(o.jU&&o.vU&&"browser"in window&&browser.runtime&&a)try{return await browser.runtime.sendMessage(a,n)}catch(e){}if(o.jU&&o.un&&"chrome"in window&&chrome.runtime&&s)try{return await chrome.runtime.sendMessage(s,n)}catch(e){}},i=async e=>{let n=await s(e,{method:"check.user",data:null});return!!a()(n)}},52515:function(e,n,t){t.d(n,{g:function(){return o}});var r=t(15825),a=t(27247);function o(e){let{showMessage:n}=(0,r.cYR)();return{renovateEventsUnseenCountInExtension:(0,r.dU$)(async()=>{try{await (0,a.m)(e,{method:"renovate.events.unseen.count"})}catch(e){e instanceof Error&&n({message:e.message,color:"danger"})}})}}},26817:function(e,n,t){t.d(n,{A:function(){return o}});var r=t(15825),a=t(27247);function o(e){let{showMessage:n}=(0,r.cYR)();return{renovateNotificationsUnseenCountInExtension:(0,r.dU$)(async()=>{try{await (0,a.m)(e,{method:"renovate.notifications.unseen.count"})}catch(e){e instanceof Error&&n({message:e.message,color:"danger"})}})}}},40891:function(e,n,t){t.d(n,{y:function(){return o}});var r=t(15825),a=t(27247);function o(e){let{showMessage:n}=(0,r.cYR)();return{renovateUserInExtension:(0,r.dU$)(async()=>{try{await (0,a.m)(e,{method:"renovate.user"})}catch(e){e instanceof Error&&n({message:e.message,color:"danger"})}})}}},41273:function(e,n,t){t.d(n,{NL:function(){return i},RJ:function(){return r},Yf:function(){return o},kf:function(){return a},yM:function(){return s}});let r={addItem:async()=>null,getItem:async()=>null,removeItem:async()=>{},updateItemOrItems:async()=>{},moveItemOrItems:async()=>{},renovateItemsAndCollections:async()=>{}},a={addCollection:async()=>null,removeCollection:async()=>{},updateCollection:async()=>{},moveCollectionOrCollections:async()=>{}},o={updateSettings:async()=>{}},s={markNotificationsAsSeen:async()=>{},markAllNotificationsAsSeen:async()=>{},updateNotificationsUnseenCount:async()=>{}},i={markEventsAsSeen:async()=>{},markAllEventsAsSeen:async()=>{},updateEventsUnseenCount:async()=>{}}},89445:function(e,n,t){t.d(n,{a:function(){return m},d:function(){return f}});var r=t(78756),a=t(87033),o=t(91418),s=t(15825),i=t(56402),u=t(71218),c=t(89728),l=t(76097),d=t(40891);let v=i.createContext({loading:!1,locale:a.al,country:a.fs,currency:a.OM,user:void 0,updateUser:async()=>{}}),f=e=>{var n,t,f,m;let{extensionOptions:h,children:y}=e,{isSignedIn:g,ready:C}=(0,l.m8)(),{renovateUserInExtension:k}=(0,d.y)(h),U=c.SX.useUtils(),w=c.SX.userUpdateData.useMutation(),M=c.SX.userCheck.useQuery(void 0,{enabled:g,cacheTime:6e4}),E=null!==(t=null===(n=M.data)||void 0===n?void 0:n.user)&&void 0!==t?t:null,S=i.useMemo(()=>{var e,n;return null!==(n=null!==(e=(0,s.XuX)(null!=E?E:null))&&void 0!==e?e:(0,o.Uf)())&&void 0!==n?n:a.al},[E]),x=i.useMemo(()=>
1(0,a.ak)([null==E?void 0:E.country,(0,a.n6)()]),[E]),T=i.useMemo(()=>{var e,n;return null!==(n=null!==(e=null==E?void 0:E.currency)&&void 0!==e?e:(0,a.t5)((0,a.n6)()))&&void 0!==n?n:a.OM},[E]),I=i.useCallback(async e=>{let{result:n,user:t}=await w.mutateAsync({values:e});n&&t&&(U.userCheck.setData(void 0,{user:t}),k.current())},[k,w,U.userCheck]),b=i.useMemo(()=>({loading:M.isFetching,locale:S,country:x,currency:T,user:C?g?M.isFetching?void 0:null!=E?E:null:null:void 0,updateUser:I}),[M.isFetching,S,x,C,g,E,I,T]);return(0,r.jsx)(v.Provider,{value:b,children:(0,r.jsx)(u.Z,{locale:null!==(m=null!==(f=null==E?void 0:E.locale)&&void 0!==f?f:navigator.language)&&void 0!==m?m:a.al,children:y})})},m=()=>i.useContext(v)}}]);

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.