@wellesley/store 1.0.23 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createSlice as w,createSelector as u,combineSlices as te,configureStore as se}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import{api as J}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@latest";const ne={data:null,isPending:!1,isSuccess:!1},ie=w({name:"userNoHTML",initialState:ne,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),x={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!1,isAuthenticated:!1},re=w({name:"auth",initialState:x,reducers:{logout:()=>x,setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload},showAuthBlock:(e,t)=>{e.isAuthBlockVisible=t.payload},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload,e.isPending=!1}},selectors:{selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectAuthBlockVisible:e=>e.isAuthBlockVisible,selectIsAuthenticated:e=>e.isAuthenticated}}),B={data:null,isError:!1,isPending:!1,isSuccess:!1},oe=w({name:"user",initialState:B,reducers:{reset:e=>{Object.assign(e,B)},setData:(e,{payload:t})=>{e.data=t},updateData:(e,{payload:t})=>{e.data&&Object.assign(e.data,t)},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setPending:(e,{payload:t})=>{e.isPending=t},setIsError:(e,{payload:t})=>{e.isError=t},setError:(e,{payload:t})=>{e.error=t},updateUser:(e,{payload:t})=>{var s;null!=(s=e.data)&&s.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var s;return null==(s=e.data)?void 0:s.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var s;return t===(null==(s=e.data)?void 0:s.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess,selectIsAdmin:e=>{var t;return"ADMIN"===(null==(t=e.data)?void 0:t.account.role)}}});function ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R,A={};function ce(){return R||(R=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],s=[],n=[],i=[],o=(e,t)=>{if("function"!=typeof e)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const s=t.indexOf(e);t.splice(s,1)}};e.subscribeBefore=e=>o(e,t),e.subscribeAfter=e=>o(e,s);const r=(e,t)=>{if(!e.action)throw new Error("Expected the action to be a string.");if("function"!=typeof e.listener)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const s=t.indexOf(e);t.splice(s,1)}};e.subscribeActionBefore=(e,t)=>r({action:e,listener:t},n),e.subscribeActionAfter=(e,t)=>r({action:e,listener:t},i),e.unsubscribeBefore=()=>{t.length=0},e.unsubscribeActionsBefore=()=>{n.length=0},e.unsubscribeAfter=()=>{s.length=0},e.unsubscribeActionsAfter=()=>{i.length=0},e.unsubscribeAll=()=>{e.unsubscribeBefore(),e.unsubscribeActionsBefore(),e.unsubscribeAfter(),e.unsubscribeActionsAfter()};const a=(e,t)=>{const s=e.filter((({action:e})=>e!==t));e.length=0,e.concat(s)};e.unsubscribeActionBefore=e=>{a(n,e)},e.unsubscribeActionAfter=e=>{a(i,e)},e.unsubscribeActionAll=t=>{e.unsubscribeActionBefore(t),e.unsubscribeActionAfter(t)};const c=(e,t)=>{for(let s=t.length-1;s>=0;s--){const n=t[s];"object"==typeof e&&n(e)}},u=(e,t)=>{for(let s=t.length-1;s>=0;s--){const n=t[s];"object"==typeof e&&n.action===e.type&&n.listener(e)}};e.subscribeActionMiddleware=e=>e=>o=>{c(o,t),u(o,n);const r=e(o);return c(o,s),u(o,i),r},e.default=e.subscribeActionMiddleware}(A)),A}var ue=ce();const le=ae(ue),k=e=>e,N=u(k,(e=>e.data)),de=u(k,(e=>e.error)),pe=u(k,(e=>e.isPending)),b=u(N,(e=>null==e?void 0:e.configuration)),_e=u(b,(e=>null==e?void 0:e.media_attachments)),O=u(b,(e=>({IMAGE:null==e?void 0:e.media_attachments.image_extensions,VIDEO:null==e?void 0:e.media_attachments.video_extensions,AUDIO:null==e?void 0:e.media_attachments.audio_extensions,DOCUMENT:null==e?void 0:e.media_attachments.doc_extensions}))),he=u([O,(e,t)=>t],((e,t)=>e[t])),me=u(O,(e=>Object.keys(e).reduce(((t,s)=>[...t,...e[s]||[]]),[]))),ge=u(b,(e=>(null==e?void 0:e.posts.max_media_attachments)||0)),fe=u(b,(e=>(null==e?void 0:e.posts.max_characters)||0)),be=u(b,(e=>(null==e?void 0:e.posts.max_pins)||0)),Se=u(N,(e=>null==e?void 0:e.rules)),ye={data:null,isPending:!1},ve=w({name:"instanceInfo",initialState:ye,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:N,selectPostPinsLimit:be,selectInstanceInfoError:de,selectInstanceInfoPending:pe,selectPostSizeLimit:fe,selectConfiguration:b,selectAttachmentsLimit:ge,selectSupportedExtensions:O,selectFullExtensionsList:me,selectPlatformRules:Se,selectMediaConfiguration:_e,selectSupportedExtensionsFor:he,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),we={data:null,isPending:!1,isSuccess:!1},Ee=w({name:"profileSettings",initialState:we,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),y="8.48.0",l=globalThis;function M(e,t,s){const n=l,i=n.__SENTRY__=n.__SENTRY__||{},o=i[y]=i[y]||{};return o[e]||(o[e]=t())}const K=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Pe="Sentry Logger ",U=["debug","info","warn","error","log","assert","trace"],j={};function Ae(e){if(!("console"in l))return e();const t=l.console,s={},n=Object.keys(j);n.forEach((e=>{const n=j[e];s[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=s[e]}))}}function Ie(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return K?U.forEach((s=>{t[s]=(...t)=>{e&&Ae((()=>{l.console[s](`${Pe}[${s}]:`,...t)}))}})):U.forEach((e=>{t[e]=()=>{}})),t}const P=M("logger",Ie);function T(){return D(l),l}function D(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||y,t[y]=t[y]||{}}const Le=Object.prototype.toString;function ke(e,t){return Le.call(e)===`[object ${t}]`}function Ne(e){return ke(e,"Object")}function Oe(e){return!(!e||!e.then||"function"!=typeof e.then)}function Me(e,t,s){try{Object.defineProperty(e,t,{value:s,writable:!0,configurable:!0})}catch{K&&P.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const z=1e3;function W(){return Date.now()/z}function Te(){const{performance:e}=l;if(!e||!e.now)return W;const t=Date.now()-e.now(),s=null==e.timeOrigin?t:e.timeOrigin;return()=>(s+e.now())/z}const De=Te();function g(){const e=l,t=e.crypto||e.msCrypto;let s=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(s=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&s())>>e/4).toString(16)))}function Ce(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||De(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:g()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function q(){return g()}function $(){return g().substring(16)}function X(e,t,s=2){if(!t||"object"!=typeof t||s<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const n={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=X(n[e],t[e],s-1));return n}(()=>{const{performance:e}=l;if(!e||!e.now)return;const t=36e5,s=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+s-n):t,o=i<t,r=e.timing&&e.timing.navigationStart,a="number"==typeof r?Math.abs(r+s-n):t;(o||a<t)&&(i<=a&&e.timeOrigin)})();const I="_sentrySpan";function V(e,t){t?Me(e,I,t):delete e[I]}function H(e){return e[I]}const Fe=100;class C{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:q(),spanId:$()}}clone(){const e=new C;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,V(e,H(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ce(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[s,n]=t instanceof v?[t.getScopeData(),t.getRequestSession()]:Ne(t)?[e,e.requestSession]:[],{tags:i,extra:o,user:r,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=s||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},r&&Object.keys(r).length&&(this._user=r),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),n&&(this._requestSession=n),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,V(this,void 0),this._attachments=[],this.setPropagationContext({traceId:q()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const s="number"==typeof t?t:Fe;if(s<=0)return this;const n={timestamp:W(),...e},i=this._breadcrumbs;return i.push(n),this._breadcrumbs=i.length>s?i.slice(-s):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:H(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=X(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:$(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const s=t&&t.event_id?t.event_id:g();if(!this._client)return P.warn("No client configured on scope - will not capture exception!"),s;const n=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:s},this),s}captureMessage(e,t,s){const n=s&&s.event_id?s.event_id:g();if(!this._client)return P.warn("No client configured on scope - will not capture message!"),n;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...s,event_id:n},this),n}captureEvent(e,t){const s=t&&t.event_id?t.event_id:g();return this._client?(this._client.captureEvent(e,{...t,event_id:s},this),s):(P.warn("No client configured on scope - will not capture event!"),s)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const v=C;function xe(){return M("defaultCurrentScope",(()=>new v))}function Be(){return M("defaultIsolationScope",(()=>new v))}class Re{constructor(e,t){let s,n;s=e||new v,n=t||new v,this._stack=[{scope:s}],this._isolationScope=n}withScope(e){const t=this._pushScope();let s;try{s=e(t)}catch(e){throw this._popScope(),e}return Oe(s)?s.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),s)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function f(){const e=D(T());return e.stack=e.stack||new Re(xe(),Be())}function Ue(e){return f().withScope(e)}function je(e,t){const s=f();return s.withScope((()=>(s.getStackTop().scope=e,t(e))))}function Y(e){return f().withScope((()=>e(f().getIsolationScope())))}function qe(){return{withIsolationScope:Y,withScope:Ue,withSetScope:je,withSetIsolationScope:(e,t)=>Y(t),getCurrentScope:()=>f().getScope(),getIsolationScope:()=>f().getIsolationScope()}}function Q(e){const t=D(e);return t.acs?t.acs:qe()}function Z(){return Q(T()).getCurrentScope()}function $e(){return Q(T()).getIsolationScope()}function Ve(e,t){return Z().captureException(e,void 0)}function He(e,t){const s={captureContext:t};return Z().captureMessage(e,void 0,s)}function Ye(e,t){$e().setExtra(e,t)}const Ge=(...e)=>{let t="";for(const s of e){if(s instanceof Error){const e=s;return Ye("exceptionMessage",t),void Ve(e)}if("object"!=typeof s)t+=s;else try{t+=" "+JSON.stringify(s)}catch{t+=" "+s}}He(t)},Je=()=>"object"!=typeof window,G=["debug","info","warn","error"],Ke=(e,t)=>{const s=G.indexOf(e);return G.indexOf(t)>=s},E=(e,t,s,...n)=>{Ke(t,e)&&console.log(`[${e}] ${s}`,...n)},ze=(e=!Je()&&(null==window?void 0:window.localStorage.getItem("logger_lvl"))||"warn")=>{let t=e;return{debug:(e,...s)=>E("debug",t,e,...s),info:(e,...s)=>E("info",t,e,...s),warn:(e,...s)=>E("warn",t,e,...s),error:(e,...s)=>(Ge(e,...s),E("error",t,e,...s)),setLevel:e=>{t=e},getLevel:()=>t}},L=ze(),F="redux:persist:store",We="redux:persist:status",ee=()=>{try{const e=JSON.parse(localStorage.getItem(We)||"none");return localStorage.removeItem(F),"none"!==e}catch{return!1}},Xe=e=>{e.subscribe((()=>(e=>{if(ee())try{const t=JSON.stringify(e);localStorage.setItem(F,t),L.debug("Saved state to local storage",t)}catch(e){L.warn("persistState save error",e)}})(e.getState())))},Qe=()=>{if(ee())try{const e=localStorage.getItem(F);return null===e?void 0:JSON.parse(e)}catch(e){return void L.warn("persistState load error",e)}};var Ze={USER:"teamcity",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v20.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/a9beceb47246ff20/apps",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v20.16.0",npm_config_npm_version:"10.8.1",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/apps/packages/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.6/bin:/home/teamcity/.rvm/gems/ruby-3.3.6@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.6/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-17-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v20.16.0/bin",TURBO_HASH:"2000e104c7a2312d",NODE:"/home/teamcity/.nvm/versions/node/v20.16.0/bin/node",npm_package_name:"@wellesley/store",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TMP:"/mnt/agent/temp/buildTmp",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.23",npm_lifecycle_event:"build",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store",npm_execpath:"/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v20.16.0",npm_command:"run-script",INIT_CWD:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/store"};const et=te(J,re,oe,ie,ve,Ee),tt=e=>se({devTools:{name:Ze.APP_NAME},reducer:et,preloadedState:{...e,...Qe()},middleware:e=>e().concat(J.middleware,le)});let S;const it=e=>S||(S=tt(e),Xe(S),S);export{tt as createStore,it as getStore,et as rootReducer};
|
|
1
|
+
import{createSlice as w,createSelector as u,combineSlices as te,configureStore as se}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import{api as J}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@latest";const ne={data:null,isPending:!1,isSuccess:!1},ie=w({name:"userNoHTML",initialState:ne,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),x={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!1,isAuthenticated:!1},re=w({name:"auth",initialState:x,reducers:{logout:()=>x,setNewEmail:(e,t)=>{e.newEmail=t.payload},setForgotPasswordStep:(e,t)=>{e.forgotPasswordStep=t.payload},updateForgotPasswordFields:(e,t)=>{e.forgotPasswordFields={...e.forgotPasswordFields,...t.payload}},resetForgotPasswordFields:e=>{e.forgotPasswordFields=null},setSignupStep:(e,t)=>{e.signupStep=t.payload},updateSignupFields:(e,t)=>{e.signupFields={...e.signupFields,...t.payload}},resetSignupFields:e=>{e.signupFields=null},setPending:(e,t)=>{e.isPending=t.payload},showAuthBlock:(e,t)=>{e.isAuthBlockVisible=t.payload},login:(e,t)=>{e.isAuthenticated=!0,e.token=t.payload,e.isPending=!1}},selectors:{selectToken:e=>e.token,selectNewEmail:e=>e.newEmail,selectForgotPasswordStep:e=>e.forgotPasswordStep,selectForgotPasswordFields:e=>e.forgotPasswordFields,selectSignupStep:e=>e.signupStep,selectSignupFields:e=>e.signupFields,selectPending:e=>e.isPending,selectAuthBlockVisible:e=>e.isAuthBlockVisible,selectIsAuthenticated:e=>e.isAuthenticated}}),B={data:null,isError:!1,isPending:!1,isSuccess:!1},oe=w({name:"user",initialState:B,reducers:{reset:e=>{Object.assign(e,B)},setData:(e,{payload:t})=>{e.data=t},updateData:(e,{payload:t})=>{e.data&&Object.assign(e.data,t)},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setPending:(e,{payload:t})=>{e.isPending=t},setIsError:(e,{payload:t})=>{e.isError=t},setError:(e,{payload:t})=>{e.error=t},updateUser:(e,{payload:t})=>{var s;null!=(s=e.data)&&s.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var s;return null==(s=e.data)?void 0:s.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var s;return t===(null==(s=e.data)?void 0:s.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess,selectIsAdmin:e=>{var t;return"ADMIN"===(null==(t=e.data)?void 0:t.account.role)}}});function ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R,A={};function ce(){return R||(R=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],s=[],n=[],i=[],o=(e,t)=>{if("function"!=typeof e)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const s=t.indexOf(e);t.splice(s,1)}};e.subscribeBefore=e=>o(e,t),e.subscribeAfter=e=>o(e,s);const r=(e,t)=>{if(!e.action)throw new Error("Expected the action to be a string.");if("function"!=typeof e.listener)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const s=t.indexOf(e);t.splice(s,1)}};e.subscribeActionBefore=(e,t)=>r({action:e,listener:t},n),e.subscribeActionAfter=(e,t)=>r({action:e,listener:t},i),e.unsubscribeBefore=()=>{t.length=0},e.unsubscribeActionsBefore=()=>{n.length=0},e.unsubscribeAfter=()=>{s.length=0},e.unsubscribeActionsAfter=()=>{i.length=0},e.unsubscribeAll=()=>{e.unsubscribeBefore(),e.unsubscribeActionsBefore(),e.unsubscribeAfter(),e.unsubscribeActionsAfter()};const a=(e,t)=>{const s=e.filter((({action:e})=>e!==t));e.length=0,e.concat(s)};e.unsubscribeActionBefore=e=>{a(n,e)},e.unsubscribeActionAfter=e=>{a(i,e)},e.unsubscribeActionAll=t=>{e.unsubscribeActionBefore(t),e.unsubscribeActionAfter(t)};const c=(e,t)=>{for(let s=t.length-1;s>=0;s--){const n=t[s];"object"==typeof e&&n(e)}},u=(e,t)=>{for(let s=t.length-1;s>=0;s--){const n=t[s];"object"==typeof e&&n.action===e.type&&n.listener(e)}};e.subscribeActionMiddleware=e=>e=>o=>{c(o,t),u(o,n);const r=e(o);return c(o,s),u(o,i),r},e.default=e.subscribeActionMiddleware}(A)),A}var ue=ce();const le=ae(ue),k=e=>e,N=u(k,(e=>e.data)),de=u(k,(e=>e.error)),pe=u(k,(e=>e.isPending)),b=u(N,(e=>null==e?void 0:e.configuration)),_e=u(b,(e=>null==e?void 0:e.media_attachments)),O=u(b,(e=>({IMAGE:null==e?void 0:e.media_attachments.image_extensions,VIDEO:null==e?void 0:e.media_attachments.video_extensions,AUDIO:null==e?void 0:e.media_attachments.audio_extensions,DOCUMENT:null==e?void 0:e.media_attachments.doc_extensions}))),he=u([O,(e,t)=>t],((e,t)=>e[t])),me=u(O,(e=>Object.keys(e).reduce(((t,s)=>[...t,...e[s]||[]]),[]))),ge=u(b,(e=>(null==e?void 0:e.posts.max_media_attachments)||0)),fe=u(b,(e=>(null==e?void 0:e.posts.max_characters)||0)),be=u(b,(e=>(null==e?void 0:e.posts.max_pins)||0)),Se=u(N,(e=>null==e?void 0:e.rules)),ye={data:null,isPending:!1},ve=w({name:"instanceInfo",initialState:ye,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:N,selectPostPinsLimit:be,selectInstanceInfoError:de,selectInstanceInfoPending:pe,selectPostSizeLimit:fe,selectConfiguration:b,selectAttachmentsLimit:ge,selectSupportedExtensions:O,selectFullExtensionsList:me,selectPlatformRules:Se,selectMediaConfiguration:_e,selectSupportedExtensionsFor:he,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),we={data:null,isPending:!1,isSuccess:!1},Ee=w({name:"profileSettings",initialState:we,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),y="8.48.0",l=globalThis;function M(e,t,s){const n=l,i=n.__SENTRY__=n.__SENTRY__||{},o=i[y]=i[y]||{};return o[e]||(o[e]=t())}const K=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Pe="Sentry Logger ",U=["debug","info","warn","error","log","assert","trace"],j={};function Ae(e){if(!("console"in l))return e();const t=l.console,s={},n=Object.keys(j);n.forEach((e=>{const n=j[e];s[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=s[e]}))}}function Ie(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return K?U.forEach((s=>{t[s]=(...t)=>{e&&Ae((()=>{l.console[s](`${Pe}[${s}]:`,...t)}))}})):U.forEach((e=>{t[e]=()=>{}})),t}const P=M("logger",Ie);function T(){return D(l),l}function D(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||y,t[y]=t[y]||{}}const Le=Object.prototype.toString;function ke(e,t){return Le.call(e)===`[object ${t}]`}function Ne(e){return ke(e,"Object")}function Oe(e){return!(!e||!e.then||"function"!=typeof e.then)}function Me(e,t,s){try{Object.defineProperty(e,t,{value:s,writable:!0,configurable:!0})}catch{K&&P.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const z=1e3;function W(){return Date.now()/z}function Te(){const{performance:e}=l;if(!e||!e.now)return W;const t=Date.now()-e.now(),s=null==e.timeOrigin?t:e.timeOrigin;return()=>(s+e.now())/z}const De=Te();function g(){const e=l,t=e.crypto||e.msCrypto;let s=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(s=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&s())>>e/4).toString(16)))}function Ce(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||De(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:g()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function q(){return g()}function $(){return g().substring(16)}function X(e,t,s=2){if(!t||"object"!=typeof t||s<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const n={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=X(n[e],t[e],s-1));return n}(()=>{const{performance:e}=l;if(!e||!e.now)return;const t=36e5,s=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+s-n):t,o=i<t,r=e.timing&&e.timing.navigationStart,a="number"==typeof r?Math.abs(r+s-n):t;(o||a<t)&&(i<=a&&e.timeOrigin)})();const I="_sentrySpan";function V(e,t){t?Me(e,I,t):delete e[I]}function H(e){return e[I]}const Fe=100;class C{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:q(),spanId:$()}}clone(){const e=new C;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,V(e,H(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ce(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[s,n]=t instanceof v?[t.getScopeData(),t.getRequestSession()]:Ne(t)?[e,e.requestSession]:[],{tags:i,extra:o,user:r,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=s||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},r&&Object.keys(r).length&&(this._user=r),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),n&&(this._requestSession=n),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,V(this,void 0),this._attachments=[],this.setPropagationContext({traceId:q()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const s="number"==typeof t?t:Fe;if(s<=0)return this;const n={timestamp:W(),...e},i=this._breadcrumbs;return i.push(n),this._breadcrumbs=i.length>s?i.slice(-s):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:H(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=X(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:$(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const s=t&&t.event_id?t.event_id:g();if(!this._client)return P.warn("No client configured on scope - will not capture exception!"),s;const n=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:s},this),s}captureMessage(e,t,s){const n=s&&s.event_id?s.event_id:g();if(!this._client)return P.warn("No client configured on scope - will not capture message!"),n;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...s,event_id:n},this),n}captureEvent(e,t){const s=t&&t.event_id?t.event_id:g();return this._client?(this._client.captureEvent(e,{...t,event_id:s},this),s):(P.warn("No client configured on scope - will not capture event!"),s)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const v=C;function xe(){return M("defaultCurrentScope",(()=>new v))}function Be(){return M("defaultIsolationScope",(()=>new v))}class Re{constructor(e,t){let s,n;s=e||new v,n=t||new v,this._stack=[{scope:s}],this._isolationScope=n}withScope(e){const t=this._pushScope();let s;try{s=e(t)}catch(e){throw this._popScope(),e}return Oe(s)?s.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),s)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function f(){const e=D(T());return e.stack=e.stack||new Re(xe(),Be())}function Ue(e){return f().withScope(e)}function je(e,t){const s=f();return s.withScope((()=>(s.getStackTop().scope=e,t(e))))}function Y(e){return f().withScope((()=>e(f().getIsolationScope())))}function qe(){return{withIsolationScope:Y,withScope:Ue,withSetScope:je,withSetIsolationScope:(e,t)=>Y(t),getCurrentScope:()=>f().getScope(),getIsolationScope:()=>f().getIsolationScope()}}function Q(e){const t=D(e);return t.acs?t.acs:qe()}function Z(){return Q(T()).getCurrentScope()}function $e(){return Q(T()).getIsolationScope()}function Ve(e,t){return Z().captureException(e,void 0)}function He(e,t){const s={captureContext:t};return Z().captureMessage(e,void 0,s)}function Ye(e,t){$e().setExtra(e,t)}const Ge=(...e)=>{let t="";for(const s of e){if(s instanceof Error){const e=s;return Ye("exceptionMessage",t),void Ve(e)}if("object"!=typeof s)t+=s;else try{t+=" "+JSON.stringify(s)}catch{t+=" "+s}}He(t)},Je=()=>"object"!=typeof window,G=["debug","info","warn","error"],Ke=(e,t)=>{const s=G.indexOf(e);return G.indexOf(t)>=s},E=(e,t,s,...n)=>{Ke(t,e)&&console.log(`[${e}] ${s}`,...n)},ze=(e=!Je()&&(null==window?void 0:window.localStorage.getItem("logger_lvl"))||"warn")=>{let t=e;return{debug:(e,...s)=>E("debug",t,e,...s),info:(e,...s)=>E("info",t,e,...s),warn:(e,...s)=>E("warn",t,e,...s),error:(e,...s)=>(Ge(e,...s),E("error",t,e,...s)),setLevel:e=>{t=e},getLevel:()=>t}},L=ze(),F="redux:persist:store",We="redux:persist:status",ee=()=>{try{const e=JSON.parse(localStorage.getItem(We)||"none");return localStorage.removeItem(F),"none"!==e}catch{return!1}},Xe=e=>{e.subscribe((()=>(e=>{if(ee())try{const t=JSON.stringify(e);localStorage.setItem(F,t),L.debug("Saved state to local storage",t)}catch(e){L.warn("persistState save error",e)}})(e.getState())))},Qe=()=>{if(ee())try{const e=localStorage.getItem(F);return null===e?void 0:JSON.parse(e)}catch(e){return void L.warn("persistState load error",e)}};var Ze={USER:"teamcity",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v20.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/a9beceb47246ff20/apps",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v20.16.0",npm_config_npm_version:"10.8.1",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/apps/packages/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.6/bin:/home/teamcity/.rvm/gems/ruby-3.3.6@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.6/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-17-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v20.16.0/bin",TURBO_HASH:"927e8c22f307fc0f",NODE:"/home/teamcity/.nvm/versions/node/v20.16.0/bin/node",npm_package_name:"@wellesley/store",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TMP:"/mnt/agent/temp/buildTmp",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.25",npm_lifecycle_event:"build",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store",npm_execpath:"/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v20.16.0",npm_command:"run-script",INIT_CWD:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/store"};const et=te(J,re,oe,ie,ve,Ee),tt=e=>se({devTools:{name:Ze.APP_NAME},reducer:et,preloadedState:{...e,...Qe()},middleware:e=>e().concat(J.middleware,le)});let S;const it=e=>S||(S=tt(e),Xe(S),S);export{tt as createStore,it as getStore,et as rootReducer};
|
package/package.json
CHANGED