@wellesley/store 1.0.40 → 1.0.48

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.
Files changed (2) hide show
  1. package/index.mjs +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1 +1 @@
1
- import{createSlice as y,createSelector as u,combineSlices as te,configureStore as se}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import{api as z}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.41";const ne={data:null,isPending:!1,isSuccess:!1},re=y({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}}),U={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!1,isAuthenticated:!1},ie=y({name:"auth",initialState:U,reducers:{logout:()=>U,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}}),j={data:null,isError:!1,isPending:!1,isSuccess:!1},oe=y({name:"user",initialState:j,reducers:{reset:e=>{Object.assign(e,j)},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 B,T={};function ce(){return B||(B=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],s=[],n=[],i=[],r=(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=>r(e,t),e.subscribeAfter=e=>r(e,s);const o=(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)=>o({action:e,listener:t},n),e.subscribeActionAfter=(e,t)=>o({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)}},l=(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=>r=>{c(r,t),l(r,n);const o=e(r);return c(r,s),l(r,i),o},e.default=e.subscribeActionMiddleware}(T)),T}var ue=ce();const le=ae(ue),O=e=>e,D=u(O,(e=>e.data)),de=u(O,(e=>e.error)),_e=u(O,(e=>e.isPending)),b=u(D,(e=>null==e?void 0:e.configuration)),me=u(b,(e=>null==e?void 0:e.media_attachments)),M=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}))),pe=u([M,(e,t)=>t],((e,t)=>e[t])),he=u(M,(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(D,(e=>null==e?void 0:e.rules)),Ee={data:null,isPending:!1},ve=y({name:"instanceInfo",initialState:Ee,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:D,selectPostPinsLimit:be,selectInstanceInfoError:de,selectInstanceInfoPending:_e,selectPostSizeLimit:fe,selectConfiguration:b,selectAttachmentsLimit:ge,selectSupportedExtensions:M,selectFullExtensionsList:he,selectPlatformRules:Se,selectMediaConfiguration:me,selectSupportedExtensionsFor:pe,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),ye={data:null,isPending:!1,isSuccess:!1},Ie=y({name:"profileSettings",initialState:ye,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}}),E="8.48.0",l=globalThis;function N(e,t,s){const n=l,i=n.__SENTRY__=n.__SENTRY__||{},r=i[E]=i[E]||{};return r[e]||(r[e]=t())}const q=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ae="Sentry Logger ",x=["debug","info","warn","error","log","assert","trace"],F={};function Te(e){if(!("console"in l))return e();const t=l.console,s={},n=Object.keys(F);n.forEach((e=>{const n=F[e];s[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=s[e]}))}}function we(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return q?x.forEach((s=>{t[s]=(...t)=>{e&&Te((()=>{l.console[s](`${Ae}[${s}]:`,...t)}))}})):x.forEach((e=>{t[e]=()=>{}})),t}const A=N("logger",we);function L(){return R(l),l}function R(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||E,t[E]=t[E]||{}}const Pe=Object.prototype.toString;function Oe(e,t){return Pe.call(e)===`[object ${t}]`}function De(e){return Oe(e,"Object")}function Me(e){return!(!e||!e.then||"function"!=typeof e.then)}function Ne(e,t,s){try{Object.defineProperty(e,t,{value:s,writable:!0,configurable:!0})}catch{q&&A.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const W=1e3;function $(){return Date.now()/W}function Le(){const{performance:e}=l;if(!e||!e.now)return $;const t=Date.now()-e.now(),s=null==e.timeOrigin?t:e.timeOrigin;return()=>(s+e.now())/W}const Re=Le();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 ke(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||Re(),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 H(){return g()}function Y(){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,r=i<t,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+s-n):t;(r||a<t)&&(i<=a&&e.timeOrigin)})();const w="_sentrySpan";function G(e,t){t?Ne(e,w,t):delete e[w]}function V(e){return e[w]}const Ce=100;class k{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:H(),spanId:Y()}}clone(){const e=new k;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,G(e,V(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&&ke(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()]:De(t)?[e,e.requestSession]:[],{tags:i,extra:r,user:o,contexts:a,level:c,fingerprint:l=[],propagationContext:u}=s||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...r},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),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,G(this,void 0),this._attachments=[],this.setPropagationContext({traceId:H()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const s="number"==typeof t?t:Ce;if(s<=0)return this;const n={timestamp:$(),...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:V(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=X(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:Y(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const s=t&&t.event_id?t.event_id:g();if(!this._client)return A.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 A.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):(A.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=k;function Ue(){return N("defaultCurrentScope",(()=>new v))}function je(){return N("defaultIsolationScope",(()=>new v))}class Be{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 Me(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=R(L());return e.stack=e.stack||new Be(Ue(),je())}function xe(e){return f().withScope(e)}function Fe(e,t){const s=f();return s.withScope((()=>(s.getStackTop().scope=e,t(e))))}function J(e){return f().withScope((()=>e(f().getIsolationScope())))}function He(){return{withIsolationScope:J,withScope:xe,withSetScope:Fe,withSetIsolationScope:(e,t)=>J(t),getCurrentScope:()=>f().getScope(),getIsolationScope:()=>f().getIsolationScope()}}function Q(e){const t=R(e);return t.acs?t.acs:He()}function Z(){return Q(L()).getCurrentScope()}function Ye(){return Q(L()).getIsolationScope()}function Ge(e,t){return Z().captureException(e,void 0)}function Ve(e,t){const s={captureContext:t};return Z().captureMessage(e,void 0,s)}function Je(e,t){Ye().setExtra(e,t)}const Ke=(...e)=>{let t="";for(const s of e){if(s instanceof Error){const e=s;return Je("exceptionMessage",t),void Ge(e)}if("object"!=typeof s)t+=s;else try{t+=" "+JSON.stringify(s)}catch{t+=" "+s}}Ve(t)},ze=()=>"object"!=typeof window,K=["debug","info","warn","error"],qe=(e,t)=>{const s=K.indexOf(e);return K.indexOf(t)>=s},I=(e,t,s,...n)=>{qe(t,e)&&console.log(`[${e}] ${s}`,...n)},We=(e=!ze()&&(null==window?void 0:window.localStorage.getItem("logger_lvl"))||"warn")=>{let t=e;return{debug:(e,...s)=>I("debug",t,e,...s),info:(e,...s)=>I("info",t,e,...s),warn:(e,...s)=>I("warn",t,e,...s),error:(e,...s)=>(Ke(e,...s),I("error",t,e,...s)),setLevel:e=>{t=e},getLevel:()=>t}},P=We(),C="redux:persist:store",$e="redux:persist:status",ee=()=>{try{const e=localStorage.getItem($e)||"allowed";return localStorage.removeItem(C),"none"!==e}catch{return!1}},Xe=e=>{e.subscribe((()=>(e=>{if(ee())try{const t=JSON.stringify(e);localStorage.setItem(C,t),P.debug("Saved state to local storage",t)}catch(e){P.warn("persistState save error",e)}})(e.getState())))},Qe=()=>{if(ee())try{const e=localStorage.getItem(C);return null===e?void 0:JSON.parse(e)}catch(e){return void P.warn("persistState load error",e)}};var Ze={DISTRIB_RELEASE:"24.04",JDK_18:"/usr/lib/jvm/java-1.8.0-amazon-corretto",TEAMCITY_PROJECT_NAME:"Web Apps",USER:"teamcity",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/false ci/teamcity",rvm_pretty_print_flag:"0",NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS:"20",TEAMCITY_PROCESS_PARENT_FLOW_ID:"",ANDROID_SDK_HOME:"/home/teamcity/android-sdk-linux",DOTNET_CLI_TELEMETRY_OPTOUT:"true",JDK_11_x64:"/usr/lib/jvm/java-11-amazon-corretto",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v20.16.0/bin/node",SHLVL:"0",npm_config_noproxy:"",BUILD_VCS_NUMBER:"883a999bc6d839072b2c0367dee9e2af4c7280fd",HOME:"/home/teamcity",OLDPWD:"/",BUILD_URL:"https://wellesley.teamcity.com/build/13031",JRE_HOME:"/usr/lib/jvm/java-21-amazon-corretto",npm_package_json:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store/package.json",ANDROID_SDKMANAGER_PATH:"/home/teamcity/android-sdk-linux/cmdline-tools/latest/bin/sdkmanager",TEAMCITY_BUILD_PROPERTIES_FILE:"/mnt/agent/temp/buildTmp/teamcity.build.parameters",npm_package_engines_node:">=20.2.0",rvm_stored_umask:"0022",GRADLE_HOME:"/opt/gradle",npm_config_local_prefix:"/mnt/agent/work/a9beceb47246ff20/apps",npm_config_userconfig:"/home/teamcity/.npmrc",rvm_user_install_flag:"1",GOROOT:"/opt/go",JDK_18_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",SYSTEMD_EXEC_PID:"1291",COLOR:"1",TEAMCITY_BUILDCONF_NAME:"Apps",DISTRIB_DESCRIPTION:"Ubuntu 24.04.1 LTS",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"true",TMPDIR:"/mnt/agent/temp/buildTmp",LOGNAME:"teamcity",JOURNAL_STREAM:"8:8158",TEMP:"/mnt/agent/temp/buildTmp",_:"/usr/bin/nohup",npm_config_npm_version:"10.8.1",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v20.16.0",rvm_bin_path:"/home/teamcity/.rvm/bin",BUILD_VCS_NUMBER_WebApps_WellesleyApps:"883a999bc6d839072b2c0367dee9e2af4c7280fd",IRBRC:"/home/teamcity/.rvm/rubies/ruby-3.3.6/.irbrc",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/teamcity-agent.service/memory.pressure",P4CONFIG:".p4config",RUBY_VERSION:"ruby-3.3.6",npm_config_cache:"/home/teamcity/.npm",DOTNET_ROOT:"/usr/share/dotnet",JDK_1_8:"/usr/lib/jvm/java-1.8.0-amazon-corretto",MNT_MOUNT:"/dev/nvme0n1 on /mnt type ext4 (rw,noatime)",TEAMCITY_GIT_PATH:"/usr/bin/git",AWS_SHARED_CREDENTIALS_FILE:"/mnt/agent/temp/agentTmp/aws.credentials",DISTRIB_ID:"Ubuntu",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",INVOCATION_ID:"aeaef0b4e3f24e3daa0c6831f83036c8",JDK_11_0:"/usr/lib/jvm/java-11-amazon-corretto",NODE:"/home/teamcity/.nvm/versions/node/v20.16.0/bin/node",TEAMCITY_CAPTURE_ENV:'"/usr/lib/jvm/java-17-amazon-corretto/bin/java" -jar "/home/teamcity/agent/plugins/environment-fetcher/lib/environment-fetcher-bin-2024.12-174331-jar-with-dependencies.jar"',TURBO_HASH:"209ef1da178ad496",npm_package_name:"@wellesley/store",DISTRIB_CODENAME:"noble",JDK_21_0:"/usr/lib/jvm/java-21-amazon-corretto",npm_config_color:"always",DOMAIN_ENV:"test",MY_RUBY_HOME:"/home/teamcity/.rvm/rubies/ruby-3.3.6",TEAMCITY_VERSION:"2024.12 (build 174331)",LANG:"en_US.UTF-8",GROOVY_HOME:"/opt/groovy",TMP:"/mnt/agent/temp/buildTmp",npm_lifecycle_script:"tsc && vite build",BUILD_NUMBER:"1896",NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS:"20",UID:"1001",AWS_PROFILE:"default",GOPATH:"/home/teamcity/go",JDK_17_0:"/usr/lib/jvm/java-17-amazon-corretto",SHELL:"/bin/bash",TEAMCITY_AGENT_OPTS:"-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../logs/agent_%p.hprof -Dteamcity.internal.hosted.server.technicalName=PREINIT_AGENT",npm_lifecycle_event:"build",npm_package_version:"1.0.40",JDK_1_8_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",rvm_loaded_flag:"1",rvm_prefix:"/home/teamcity",GEM_HOME:"/home/teamcity/.rvm/gems/ruby-3.3.6",TURBO_INVOCATION_DIR:"/mnt/agent/work/a9beceb47246ff20/apps",JDK_11_0_x64:"/usr/lib/jvm/java-11-amazon-corretto",JDK_21_0_x64:"/usr/lib/jvm/java-21-amazon-corretto",rvm_version:"1.29.12 (latest)",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",GEM_PATH:"/home/teamcity/.rvm/gems/ruby-3.3.6:/home/teamcity/.rvm/gems/ruby-3.3.6@global",JAVA_HOME:"/usr/lib/jvm/java-17-amazon-corretto",PWD:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store",TEAMCITY_AGENT_MEM_OPTS:"-Xmx512m",npm_execpath:"/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",ANDROID_HOME:"/home/teamcity/android-sdk-linux",JDK_11:"/usr/lib/jvm/java-11-amazon-corretto",TEAMCITY_GIT_VERSION:"2.48.1.0",XDG_DATA_DIRS:"/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v20.16.0",TEAMCITY_PROCESS_FLOW_ID:"1345877776026",npm_command:"run-script",JDK_17_0_x64:"/usr/lib/jvm/java-17-amazon-corretto",rvm_ruby_string:"ruby-3.3.6",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",rvm_path:"/home/teamcity/.rvm",EDITOR:"vi",INIT_CWD:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store",JDK_HOME:"/usr/lib/jvm/java-21-amazon-corretto",rvm_delete_flag:"0",NODE_ENV:"production",APP_NAME:"@wellesley/store"};const et=te(z,ie,oe,re,ve,Ie),tt=e=>se({devTools:{name:Ze.APP_NAME},reducer:et,preloadedState:{...e,...Qe()},middleware:e=>e().concat(z.middleware,le)});let S;const rt=e=>S||(S=tt(e),Xe(S),S);export{tt as createStore,rt as getStore,et as rootReducer};
1
+ import{createSlice as y,createSelector as u,combineSlices as te,configureStore as se}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import{api as z}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.49";const ne={data:null,isPending:!1,isSuccess:!1},re=y({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}}),U={forgotPasswordStep:"request",forgotPasswordFields:null,signupStep:"rules",signupFields:null,token:null,newEmail:null,isAuthBlockVisible:!0,isPending:!1,isAuthenticated:!1},ie=y({name:"auth",initialState:U,reducers:{logout:()=>U,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}}),j={data:null,isError:!1,isPending:!1,isSuccess:!1},oe=y({name:"user",initialState:j,reducers:{reset:e=>{Object.assign(e,j)},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 B,T={};function ce(){return B||(B=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],s=[],n=[],i=[],r=(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=>r(e,t),e.subscribeAfter=e=>r(e,s);const o=(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)=>o({action:e,listener:t},n),e.subscribeActionAfter=(e,t)=>o({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)}},l=(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=>r=>{c(r,t),l(r,n);const o=e(r);return c(r,s),l(r,i),o},e.default=e.subscribeActionMiddleware}(T)),T}var ue=ce();const le=ae(ue),O=e=>e,D=u(O,(e=>e.data)),de=u(O,(e=>e.error)),_e=u(O,(e=>e.isPending)),b=u(D,(e=>null==e?void 0:e.configuration)),me=u(b,(e=>null==e?void 0:e.media_attachments)),M=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}))),pe=u([M,(e,t)=>t],((e,t)=>e[t])),he=u(M,(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(D,(e=>null==e?void 0:e.rules)),Ee={data:null,isPending:!1},ve=y({name:"instanceInfo",initialState:Ee,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:D,selectPostPinsLimit:be,selectInstanceInfoError:de,selectInstanceInfoPending:_e,selectPostSizeLimit:fe,selectConfiguration:b,selectAttachmentsLimit:ge,selectSupportedExtensions:M,selectFullExtensionsList:he,selectPlatformRules:Se,selectMediaConfiguration:me,selectSupportedExtensionsFor:pe,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),ye={data:null,isPending:!1,isSuccess:!1},Ie=y({name:"profileSettings",initialState:ye,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}}),E="8.48.0",l=globalThis;function N(e,t,s){const n=l,i=n.__SENTRY__=n.__SENTRY__||{},r=i[E]=i[E]||{};return r[e]||(r[e]=t())}const q=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ae="Sentry Logger ",x=["debug","info","warn","error","log","assert","trace"],F={};function Te(e){if(!("console"in l))return e();const t=l.console,s={},n=Object.keys(F);n.forEach((e=>{const n=F[e];s[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=s[e]}))}}function we(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return q?x.forEach((s=>{t[s]=(...t)=>{e&&Te((()=>{l.console[s](`${Ae}[${s}]:`,...t)}))}})):x.forEach((e=>{t[e]=()=>{}})),t}const A=N("logger",we);function L(){return R(l),l}function R(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||E,t[E]=t[E]||{}}const Pe=Object.prototype.toString;function Oe(e,t){return Pe.call(e)===`[object ${t}]`}function De(e){return Oe(e,"Object")}function Me(e){return!(!e||!e.then||"function"!=typeof e.then)}function Ne(e,t,s){try{Object.defineProperty(e,t,{value:s,writable:!0,configurable:!0})}catch{q&&A.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const W=1e3;function $(){return Date.now()/W}function Le(){const{performance:e}=l;if(!e||!e.now)return $;const t=Date.now()-e.now(),s=null==e.timeOrigin?t:e.timeOrigin;return()=>(s+e.now())/W}const Re=Le();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 ke(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||Re(),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 H(){return g()}function Y(){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,r=i<t,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+s-n):t;(r||a<t)&&(i<=a&&e.timeOrigin)})();const w="_sentrySpan";function G(e,t){t?Ne(e,w,t):delete e[w]}function V(e){return e[w]}const Ce=100;class k{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:H(),spanId:Y()}}clone(){const e=new k;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,G(e,V(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&&ke(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()]:De(t)?[e,e.requestSession]:[],{tags:i,extra:r,user:o,contexts:a,level:c,fingerprint:l=[],propagationContext:u}=s||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...r},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),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,G(this,void 0),this._attachments=[],this.setPropagationContext({traceId:H()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const s="number"==typeof t?t:Ce;if(s<=0)return this;const n={timestamp:$(),...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:V(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=X(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:Y(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const s=t&&t.event_id?t.event_id:g();if(!this._client)return A.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 A.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):(A.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=k;function Ue(){return N("defaultCurrentScope",(()=>new v))}function je(){return N("defaultIsolationScope",(()=>new v))}class Be{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 Me(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=R(L());return e.stack=e.stack||new Be(Ue(),je())}function xe(e){return f().withScope(e)}function Fe(e,t){const s=f();return s.withScope((()=>(s.getStackTop().scope=e,t(e))))}function J(e){return f().withScope((()=>e(f().getIsolationScope())))}function He(){return{withIsolationScope:J,withScope:xe,withSetScope:Fe,withSetIsolationScope:(e,t)=>J(t),getCurrentScope:()=>f().getScope(),getIsolationScope:()=>f().getIsolationScope()}}function Q(e){const t=R(e);return t.acs?t.acs:He()}function Z(){return Q(L()).getCurrentScope()}function Ye(){return Q(L()).getIsolationScope()}function Ge(e,t){return Z().captureException(e,void 0)}function Ve(e,t){const s={captureContext:t};return Z().captureMessage(e,void 0,s)}function Je(e,t){Ye().setExtra(e,t)}const Ke=(...e)=>{let t="";for(const s of e){if(s instanceof Error){const e=s;return Je("exceptionMessage",t),void Ge(e)}if("object"!=typeof s)t+=s;else try{t+=" "+JSON.stringify(s)}catch{t+=" "+s}}Ve(t)},ze=()=>"object"!=typeof window,K=["debug","info","warn","error"],qe=(e,t)=>{const s=K.indexOf(e);return K.indexOf(t)>=s},I=(e,t,s,...n)=>{qe(t,e)&&console.log(`[${e}] ${s}`,...n)},We=(e=!ze()&&(null==window?void 0:window.localStorage.getItem("logger_lvl"))||"warn")=>{let t=e;return{debug:(e,...s)=>I("debug",t,e,...s),info:(e,...s)=>I("info",t,e,...s),warn:(e,...s)=>I("warn",t,e,...s),error:(e,...s)=>(Ke(e,...s),I("error",t,e,...s)),setLevel:e=>{t=e},getLevel:()=>t}},P=We(),C="redux:persist:store",$e="redux:persist:status",ee=()=>{try{const e=localStorage.getItem($e)||"allowed";return localStorage.removeItem(C),"none"!==e}catch{return!1}},Xe=e=>{e.subscribe((()=>(e=>{if(ee())try{const t=JSON.stringify(e);localStorage.setItem(C,t),P.debug("Saved state to local storage",t)}catch(e){P.warn("persistState save error",e)}})(e.getState())))},Qe=()=>{if(ee())try{const e=localStorage.getItem(C);return null===e?void 0:JSON.parse(e)}catch(e){return void P.warn("persistState load error",e)}};var Ze={DISTRIB_RELEASE:"24.04",JDK_18:"/usr/lib/jvm/java-1.8.0-amazon-corretto",TEAMCITY_PROJECT_NAME:"Web Apps",USER:"teamcity",npm_config_user_agent:"npm/10.8.1 node/v20.16.0 linux x64 workspaces/false ci/teamcity",rvm_pretty_print_flag:"0",NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS:"20",TEAMCITY_PROCESS_PARENT_FLOW_ID:"",ANDROID_SDK_HOME:"/home/teamcity/android-sdk-linux",DOTNET_CLI_TELEMETRY_OPTOUT:"true",JDK_11_x64:"/usr/lib/jvm/java-11-amazon-corretto",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v20.16.0/bin/node",SHLVL:"0",npm_config_noproxy:"",BUILD_VCS_NUMBER:"24e5b53d8acf620df5d84ae961ec9a3f185a171e",HOME:"/home/teamcity",OLDPWD:"/",BUILD_URL:"https://wellesley.teamcity.com/build/13100",JRE_HOME:"/usr/lib/jvm/java-21-amazon-corretto",npm_package_json:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store/package.json",ANDROID_SDKMANAGER_PATH:"/home/teamcity/android-sdk-linux/cmdline-tools/latest/bin/sdkmanager",TEAMCITY_BUILD_PROPERTIES_FILE:"/mnt/agent/temp/buildTmp/teamcity.build.parameters",npm_package_engines_node:">=20.2.0",rvm_stored_umask:"0022",GRADLE_HOME:"/opt/gradle",npm_config_local_prefix:"/mnt/agent/work/a9beceb47246ff20/apps",npm_config_userconfig:"/home/teamcity/.npmrc",rvm_user_install_flag:"1",GOROOT:"/opt/go",JDK_18_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",SYSTEMD_EXEC_PID:"1290",COLOR:"1",TEAMCITY_BUILDCONF_NAME:"Apps",DISTRIB_DESCRIPTION:"Ubuntu 24.04.1 LTS",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"true",TMPDIR:"/mnt/agent/temp/buildTmp",LOGNAME:"teamcity",JOURNAL_STREAM:"8:10649",TEMP:"/mnt/agent/temp/buildTmp",_:"/usr/bin/nohup",npm_config_npm_version:"10.8.1",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v20.16.0",rvm_bin_path:"/home/teamcity/.rvm/bin",BUILD_VCS_NUMBER_WebApps_WellesleyApps:"24e5b53d8acf620df5d84ae961ec9a3f185a171e",IRBRC:"/home/teamcity/.rvm/rubies/ruby-3.3.6/.irbrc",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/teamcity-agent.service/memory.pressure",P4CONFIG:".p4config",RUBY_VERSION:"ruby-3.3.6",npm_config_cache:"/home/teamcity/.npm",DOTNET_ROOT:"/usr/share/dotnet",JDK_1_8:"/usr/lib/jvm/java-1.8.0-amazon-corretto",MNT_MOUNT:"/dev/nvme1n1 on /mnt type ext4 (rw,noatime)",TEAMCITY_GIT_PATH:"/usr/bin/git",AWS_SHARED_CREDENTIALS_FILE:"/mnt/agent/temp/agentTmp/aws.credentials",DISTRIB_ID:"Ubuntu",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",INVOCATION_ID:"2f7d5828d9b544c99b0cb6165d305ef6",JDK_11_0:"/usr/lib/jvm/java-11-amazon-corretto",NODE:"/home/teamcity/.nvm/versions/node/v20.16.0/bin/node",TEAMCITY_CAPTURE_ENV:'"/usr/lib/jvm/java-17-amazon-corretto/bin/java" -jar "/home/teamcity/agent/plugins/environment-fetcher/lib/environment-fetcher-bin-2024.12-174331-jar-with-dependencies.jar"',TURBO_HASH:"9017ae42f1b87014",npm_package_name:"@wellesley/store",DISTRIB_CODENAME:"noble",JDK_21_0:"/usr/lib/jvm/java-21-amazon-corretto",npm_config_color:"always",DOMAIN_ENV:"test",MY_RUBY_HOME:"/home/teamcity/.rvm/rubies/ruby-3.3.6",TEAMCITY_VERSION:"2024.12 (build 174331)",LANG:"en_US.UTF-8",GROOVY_HOME:"/opt/groovy",TMP:"/mnt/agent/temp/buildTmp",npm_lifecycle_script:"tsc && vite build",BUILD_NUMBER:"1905",NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS:"20",UID:"1001",AWS_PROFILE:"default",GOPATH:"/home/teamcity/go",JDK_17_0:"/usr/lib/jvm/java-17-amazon-corretto",SHELL:"/bin/bash",TEAMCITY_AGENT_OPTS:"-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../logs/agent_%p.hprof -Dteamcity.internal.hosted.server.technicalName=PREINIT_AGENT",npm_lifecycle_event:"build",npm_package_version:"1.0.48",JDK_1_8_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",rvm_loaded_flag:"1",rvm_prefix:"/home/teamcity",GEM_HOME:"/home/teamcity/.rvm/gems/ruby-3.3.6",TURBO_INVOCATION_DIR:"/mnt/agent/work/a9beceb47246ff20/apps",JDK_11_0_x64:"/usr/lib/jvm/java-11-amazon-corretto",JDK_21_0_x64:"/usr/lib/jvm/java-21-amazon-corretto",rvm_version:"1.29.12 (latest)",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v20.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",GEM_PATH:"/home/teamcity/.rvm/gems/ruby-3.3.6:/home/teamcity/.rvm/gems/ruby-3.3.6@global",JAVA_HOME:"/usr/lib/jvm/java-17-amazon-corretto",PWD:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store",TEAMCITY_AGENT_MEM_OPTS:"-Xmx512m",npm_execpath:"/home/teamcity/.nvm/versions/node/v20.16.0/lib/node_modules/npm/bin/npm-cli.js",ANDROID_HOME:"/home/teamcity/android-sdk-linux",JDK_11:"/usr/lib/jvm/java-11-amazon-corretto",TEAMCITY_GIT_VERSION:"2.48.1.0",XDG_DATA_DIRS:"/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v20.16.0",TEAMCITY_PROCESS_FLOW_ID:"2338933016939",npm_command:"run-script",JDK_17_0_x64:"/usr/lib/jvm/java-17-amazon-corretto",rvm_ruby_string:"ruby-3.3.6",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",rvm_path:"/home/teamcity/.rvm",EDITOR:"vi",INIT_CWD:"/mnt/agent/work/a9beceb47246ff20/apps/packages/store",JDK_HOME:"/usr/lib/jvm/java-21-amazon-corretto",rvm_delete_flag:"0",NODE_ENV:"production",APP_NAME:"@wellesley/store"};const et=te(z,ie,oe,re,ve,Ie),tt=e=>se({devTools:{name:Ze.APP_NAME},reducer:et,preloadedState:{...e,...Qe()},middleware:e=>e().concat(z.middleware,le)});let S;const rt=e=>S||(S=tt(e),Xe(S),S);export{tt as createStore,rt as getStore,et as rootReducer};
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.40",
2
+ "version": "1.0.48",
3
3
  "name": "@wellesley/store",
4
4
  "main": "index.mjs",
5
5
  "files": [