@wellesley/settings 1.0.770 → 1.0.771
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,4 +1,4 @@
|
|
|
1
|
-
import{createAction as Du,createSlice as Uu,createSelector as Ct}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import Wy,{useState as Ty,useEffect as Ny,forwardRef as Fu,createElement as To,useCallback as Dy}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{Checkbox as Uy,RadioGroup as Fy,RadioGroupItem as By,TooltipProvider as zy,Tooltip as Vy,TooltipTrigger as qy,Label as $y,TooltipContent as Ky,Select as Gy,SelectTrigger as Jy,SelectValue as Qy,SelectContent as Yy,SelectGroup as Zy,SelectItem as Hy,Switch as Xy,Input as ev,cn as tv}from"https://cdn.jsdelivr.net/npm/@wellesley/ui@1.0.775";import{useForm as rv,FormProvider as nv}from"https://cdn.jsdelivr.net/npm/react-hook-form@7.51.0/+esm";import{useSelector as ht}from"https://cdn.jsdelivr.net/npm/react-redux@9.1.0/+esm";import{toast as $e}from"https://cdn.jsdelivr.net/npm/@wellesley/system-toast@1.0.157";import{api as kt,fetchInterceptor as iv,isSuccessResponse as ov,QueryTags as vu}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.813";import{getErrorMsg as Xn}from"https://cdn.jsdelivr.net/npm/@wellesley/error-kit@1.0.662";import{authSlice as Jr,useHasUserPermissions as av}from"https://cdn.jsdelivr.net/npm/@wellesley/auth@1.0.869";import{userSlice as mu}from"https://cdn.jsdelivr.net/npm/@wellesley/user@1.0.828";import{AppsLink as sv}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.739";import{useMatch as _u}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";const uv=t=>{if("object"!=typeof t||null===t)return!1;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||null===Object.getPrototypeOf(t)},cv=t=>uv(t)&&"type"in t&&"string"==typeof t.type,J=t=>{const e=e=>({type:t,payload:e});return e.toString=()=>`${t}`,e.type=t,e.match=e=>cv(e)&&e.type===t,e};J("remoteReady"),J("askLogin"),J("reselectUser"),J("requestLogout"),J("setConfirmLeavePage"),J("requestChangePath"),J("wsSubscribe"),J("wsUnSubscribe"),J("hostStoreConnect"),J("remoteLogin"),J("remoteLogout"),J("wsOnMessage"),J("setRouterPath"),J("setDeviceType"),J("setDeviceWidth"),J("setUserError"),J("setUserIsError"),J("setUserPending"),J("setUserSuccess"),J("setUserData"),J("updateAccountData"),J("updateUser"),J("addNotification"),J("markNotification"),J("setNotificationsError"),J("setNotificationsList"),J("setNotificationsPending"),J("setNotificationsTotalCount"),J("setNotificationsUnreadCount"),J("acceptAllFollowRequests"),J("resetNotificationsState"),J("undoNotification"),J("setInstanceInfo"),J("setInstanceInfoPending"),J("setInstanceInfoError");const No=J("setPlatformSettings"),ni=J("setProfileSettings");J("setGroupData"),J("setGroupLoading"),Du("requestMicroFrontendFetch"),Du("sendMicroFrontendFetchResponse");const lv={data:null,isPending:!1,isSuccess:!1},fv=Uu({name:"profileSettings",initialState:lv,reducers:{setPending:(t,e)=>{t.isPending=e.payload},setSuccess:(t,{payload:e})=>{t.isSuccess=e},setError:(t,{payload:e})=>{t.error=e}},extraReducers:t=>{t.addCase(ni,((t,{payload:e})=>{t.data=e}))},selectors:{selectProfileSettings:t=>t.data,selectPending:t=>t.isPending,selectError:t=>t.error,selectSuccess:t=>t.isSuccess}}),j={openaiConfigModel:"wellesley.openai.config.model",openaiConfigApiKey:"wellesley.openai.config.apiKey",uploadsProvider:"wellesley.uploads.provider",uploadsS3:"wellesley.uploads.s3",uploadsPolicyImageExtensions:"wellesley.uploads.policy.image.extensions",uploadsPolicyImageKeepOriginal:"wellesley.uploads.policy.image.keepOriginal",uploadsPolicyImageResolutions:"wellesley.uploads.policy.image.resolutions",uploadsPolicyImageMaxResolution:"wellesley.uploads.policy.image.maxResolution",uploadsPolicyImageMaxMatrix:"wellesley.uploads.policy.image.maxMatrix",uploadsPolicyImageMaxSize:"wellesley.uploads.policy.image.maxSize",uploadsPolicyVideoExtensions:"wellesley.uploads.policy.video.extensions",uploadsPolicyVideoResolutions:"wellesley.uploads.policy.video.resolutions",uploadsPolicyVideoKeepOriginal:"wellesley.uploads.policy.video.keepOriginal",uploadsPolicyVideoMaxResolution:"wellesley.uploads.policy.video.maxResolution",uploadsPolicyVideoMaxMatrix:"wellesley.uploads.policy.video.maxMatrix",uploadsPolicyVideoMaxSize:"wellesley.uploads.policy.video.maxSize",uploadsPolicyVideoMaxDuration:"wellesley.uploads.policy.video.maxDuration",uploadsPolicyVideoStreamingThreshold:"wellesley.uploads.policy.video.streamingThreshold",uploadsPolicyAudioExtensions:"wellesley.uploads.policy.audio.extensions",uploadsPolicyAudioKeepOriginal:"wellesley.uploads.policy.audio.keepOriginal",uploadsPolicyAudioMaxSize:"wellesley.uploads.policy.audio.maxSize",uploadsPolicyDocExtensions:"wellesley.uploads.policy.doc.extensions",uploadsPolicyDocMaxSize:"wellesley.uploads.policy.doc.maxSize",mediacacheEnabled:"wellesley.mediacache.enabled",mediacacheMaxTotalSize:"wellesley.mediacache.maxTotalSize",mediacacheMaxFileSize:"wellesley.mediacache.maxFileSize",mediacacheLimitPerRun:"wellesley.mediacache.limitPerRun",mediacacheSingleRun:"wellesley.mediacache.singleRun",mediacacheCheckInterval:"wellesley.mediacache.checkInterval",postsMaxMediaAttachments:"wellesley.posts.max_media_attachments",postsMaxCharacters:"wellesley.posts.max_characters",postsMaxPins:"wellesley.posts.max_pins",registrationMode:"wellesley.registration.mode",registrationInvitesEnabled:"wellesley.registration.invitesEnabled",registrationReasonToJoin:"wellesley.registration.reasonToJoin",registrationShowCaptcha:"wellesley.registration.showCaptcha",registrationNotAvailableMessage:"wellesley.registration.notAvailableMessage",captchaVerifyUrl:"wellesley.captcha.verifyUrl",captchaSecretKey:"wellesley.captcha.secretKey",captchaSiteKey:"wellesley.captcha.siteKey",confirmationCodeCodeExpirationMinutes:"wellesley.confirmationCode.codeExpirationMinutes",confirmationCodeCounterExpirationMinutes:"wellesley.confirmationCode.counterExpirationMinutes",confirmationCodeLimitStoreAttempts:"wellesley.confirmationCode.limitStoreAttempts",confirmationCodeLimitCheckAttempts:"wellesley.confirmationCode.limitCheckAttempts",translation:"wellesley.translation"},r_=[j.uploadsPolicyImageExtensions,j.uploadsPolicyImageKeepOriginal,j.uploadsPolicyImageResolutions,j.uploadsPolicyImageMaxResolution,j.uploadsPolicyImageMaxMatrix,j.uploadsPolicyImageMaxSize,j.uploadsPolicyVideoExtensions,j.uploadsPolicyVideoResolutions,j.uploadsPolicyVideoKeepOriginal,j.uploadsPolicyVideoMaxResolution,j.uploadsPolicyVideoMaxMatrix,j.uploadsPolicyVideoMaxSize,j.uploadsPolicyVideoMaxDuration,j.uploadsPolicyVideoStreamingThreshold,j.uploadsPolicyAudioExtensions,j.uploadsPolicyAudioKeepOriginal,j.uploadsPolicyAudioMaxSize,j.uploadsPolicyDocExtensions,j.uploadsPolicyDocMaxSize,j.mediacacheEnabled,j.mediacacheMaxTotalSize,j.mediacacheMaxFileSize,j.mediacacheLimitPerRun,j.mediacacheSingleRun,j.mediacacheCheckInterval,j.postsMaxMediaAttachments,j.postsMaxCharacters,j.postsMaxPins,j.registrationMode,j.registrationInvitesEnabled,j.registrationReasonToJoin,j.registrationShowCaptcha,j.registrationNotAvailableMessage],n_="wellesley",ne={followAutoAccept:"user.follow.autoAccept",notificationsPrefsEmailMuteEnabled:"user.notifications.prefs.email.mute.enabled",notificationsPrefsEmailMuteExpiresAt:"user.notifications.prefs.email.mute.expiresAt",notificationsPrefsEmailFollow:"user.notifications.prefs.email.follow",notificationsPrefsEmailFollowRequest:"user.notifications.prefs.email.followRequest",notificationsPrefsEmailLike:"user.notifications.prefs.email.like",notificationsPrefsEmailComment:"user.notifications.prefs.email.comment",notificationsPrefsEmailMention:"user.notifications.prefs.email.mention",notificationsPrefsEmailGroupInvite:"user.notifications.prefs.email.groupInvite",notificationsPrefsEmailRepost:"user.notifications.prefs.email.repost",notificationsPrefsEmailListPostCreate:"user.notifications.prefs.email.listPostCreate",notificationsPrefsEmailPostUpdate:"user.notifications.prefs.email.postUpdate",notificationsPrefsEmailPollVote:"user.notifications.prefs.email.pollVote",notificationsPrefsEmailEventInvite:"user.notifications.prefs.email.eventInvite",notificationsPrefsEmailEventCancel:"user.notifications.prefs.email.eventCancel",notificationsPrefsEmailEventJoin:"user.notifications.prefs.email.eventJoin",notificationsPrefsEmailEventUpdate:"user.notifications.prefs.email.eventUpdate",notificationsPrefsPushMuteEnabled:"user.notifications.prefs.push.mute.enabled",notificationsPrefsPushMuteExpiresAt:"user.notifications.prefs.push.mute.expiresAt",notificationsPrefsPushFollow:"user.notifications.prefs.push.follow",notificationsPrefsPushFollowRequest:"user.notifications.prefs.push.followRequest",notificationsPrefsPushLike:"user.notifications.prefs.push.like",notificationsPrefsPushComment:"user.notifications.prefs.push.comment",notificationsPrefsPushMention:"user.notifications.prefs.push.mention",notificationsPrefsPushGroupInvite:"user.notifications.prefs.push.groupInvite",notificationsPrefsPushRepost:"user.notifications.prefs.push.repost",notificationsPrefsPushListPostCreate:"user.notifications.prefs.push.listPostCreate",notificationsPrefsPushPostUpdate:"user.notifications.prefs.push.postUpdate",notificationsPrefsPushPollVote:"user.notifications.prefs.push.pollVote",notificationsPrefsPushEventInvite:"user.notifications.prefs.push.eventInvite",notificationsPrefsPushEventCancel:"user.notifications.prefs.push.eventCancel",notificationsPrefsPushEventJoin:"user.notifications.prefs.push.eventJoin",notificationsPrefsPushEventUpdate:"user.notifications.prefs.push.eventUpdate",notificationsPrefsSubscribeOnComment:"user.notifications.prefs.subscribeOnComment",notificationsPrefsSyncAcrossProfiles:"user.notifications.prefs.syncAcrossProfiles",notificationsShowPopup:"user.notifications.prefs.showPopup",notificationsPolicyBlockNonFollowers:"user.notifications.policy.blockNonFollowers",notificationsPolicyBlockNonFollowing:"user.notifications.policy.blockNonFollowing",notificationsPolicyBlockNonFollowingMessages:"user.notifications.policy.blockNonFollowingMessages",notificationsPolicyBlockNewAccounts:"user.notifications.policy.blockNewAccounts",privacyShowPublicPosts:"user.privacy.showPublicPosts",privacyShowProfilePage:"user.privacy.showProfilePage",privacyShowFollowers:"user.privacy.showFollowers",translation:"user.translation"},i_="user",pv=["wellesley.posts","wellesley.captcha","wellesley.registration","wellesley.access","wellesley.branding","wellesley.confirmationCode","wellesley.uploads.policy.doc","wellesley.uploads.policy.audio","wellesley.uploads.policy.image","wellesley.uploads.policy.video","wellesley.translation","wellesley.instance.admin","wellesley.instance.legal","wellesley.instance.domainBlocks","wellesley.instance.contacts"],hv=["wellesley.admin.sms","wellesley.admin.auth","wellesley.admin.openai","wellesley.admin.uploads","wellesley.admin.captcha","wellesley.admin.language","wellesley.admin.mediacache","wellesley.admin.translation","wellesley.admin.link_service"],dv={sms:"wellesley.admin.sms",auth:"wellesley.admin.auth",openai:"wellesley.admin.openai",uploads:"wellesley.admin.uploads",captcha:"wellesley.admin.captcha",language:"wellesley.admin.language",mediacache:"wellesley.admin.mediacache",translation:"wellesley.admin.translation",link_service:"wellesley.admin.link_service"},Do={posts:"wellesley.posts",translation:"wellesley.translation",registration:"wellesley.registration",confirmationCode:"wellesley.confirmationCode",uploadsPolicyDoc:"wellesley.uploads.policy.doc",uploadsPolicyAudio:"wellesley.uploads.policy.audio",uploadsPolicyImage:"wellesley.uploads.policy.image",uploadsPolicyVideo:"wellesley.uploads.policy.video",captcha:"wellesley.captcha",access:"wellesley.access",branding:"wellesley.branding",instanceAdmin:"wellesley.instance.admin",legal:"wellesley.instance.legal",domainBlocks:"wellesley.instance.domainBlocks",contacts:"wellesley.instance.contacts"},$r=t=>(null==t?void 0:t.map((t=>t.value||t)))||[],gv={data:null,isPending:!1},{posts:Eo,uploadsPolicyDoc:wu,uploadsPolicyAudio:Ro,uploadsPolicyImage:ei,uploadsPolicyVideo:Vr,registration:yv,captcha:vv,instanceAdmin:mv,branding:_v,translation:wv,domainBlocks:xv,access:Sv}=Do,{captcha:bv,language:Av,translation:Pv,openai:Iv,link_service:Ev}=dv,hr=t=>t.data,Rv=Ct(hr,(t=>{var e,n,r;return{max_characters:(null==(e=null==t?void 0:t[Eo])?void 0:e.max_characters)||0,max_media_attachments:(null==(n=null==t?void 0:t[Eo])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==t?void 0:t[Eo])?void 0:r.max_pins)||0}})),Fo=Ct(hr,(t=>{var e,n,r;return{...null==t?void 0:t[ei],maxSize:(null==(e=null==t?void 0:t[ei])?void 0:e.maxSize)||0,maxMatrix:(null==(n=null==t?void 0:t[ei])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==t?void 0:t[ei])?void 0:r.maxResolution)||0}})),kv=Ct(Fo,(t=>$r(t.extensions))),Bu=Ct(hr,(t=>{var e,n,r,i;return{...null==t?void 0:t[Vr],maxSize:(null==(e=null==t?void 0:t[Vr])?void 0:e.maxSize)||0,maxMatrix:(null==(n=null==t?void 0:t[Vr])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==t?void 0:t[Vr])?void 0:r.maxDuration)||0,maxResolution:(null==(i=null==t?void 0:t[Vr])?void 0:i.maxResolution)||0}})),zu=Ct(hr,(t=>{var e,n;return{...null==t?void 0:t[Ro],maxSize:null==(e=null==t?void 0:t[Ro])?void 0:e.maxSize,keepOriginal:(null==(n=null==t?void 0:t[Ro])?void 0:n.keepOriginal)||0}})),Vu=Ct(hr,(t=>{var e;return{...null==t?void 0:t[wu],maxSize:(null==(e=null==t?void 0:t[wu])?void 0:e.maxSize)||0}})),qu=Ct([Fo,Bu,zu,Vu],((t,e,n,r)=>({IMAGE:$r(null==t?void 0:t.extensions),VIDEO:$r(null==e?void 0:e.extensions),AUDIO:$r(null==n?void 0:n.extensions),DOCUMENT:$r(null==r?void 0:r.extensions)}))),Cv=Ct(qu,(t=>Object.keys(t).reduce(((e,n)=>[...e,...t[n]||[]]),[]))),ii=Uu({name:"platformSettings",initialState:gv,reducers:{setError:(t,e)=>{t.error=e.payload},setPending:(t,e)=>{t.isPending=e.payload}},extraReducers:t=>{t.addCase(No,((t,{payload:e})=>{t.data={...t.data,...e}}))},selectors:{selectSettings:hr,selectPostConfig:Rv,selectDocPolicy:Vu,selectImagePolicy:Fo,selectVideoPolicy:Bu,selectAudioPolicy:zu,selectImageExtensions:kv,selectSupportedExtensions:qu,selectFullExtensionsList:Cv,selectRegistration:t=>{var e;return null==(e=t.data)?void 0:e[yv]},selectLanguageDetection:t=>{var e;return null==(e=t.data)?void 0:e[Av]},selectLanguageTranslation:t=>{var e;return null==(e=t.data)?void 0:e[Pv]},selectOpenai:t=>{var e;return null==(e=t.data)?void 0:e[Iv]},selectCaptcha:t=>{var e;return null==(e=t.data)?void 0:e[vv]},selectAdminCaptcha:t=>{var e;return null==(e=t.data)?void 0:e[bv]},selectPlatformTranslation:t=>{var e;return null==(e=t.data)?void 0:e[wv]},selectAccess:t=>{var e;return null==(e=t.data)?void 0:e[Sv]},selectBranding:t=>{var e;return null==(e=t.data)?void 0:e[_v]},selectLinkService:t=>{var e;return null==(e=t.data)?void 0:e[Ev]},selectInstanceAdmin:t=>{var e;return null==(e=t.data)?void 0:e[mv]},selectLegal:t=>{var e;return null==(e=t.data)?void 0:e[Do.legal]},selectDomainBlocks:t=>{var e;return null==(e=t.data)?void 0:e[xv]},selectContacts:t=>{var e;return null==(e=t.data)?void 0:e[Do.contacts]}}});var xu,Su,ti=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ko={exports:{}},qr={};
|
|
1
|
+
import{createAction as Du,createSlice as Uu,createSelector as Ct}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import Wy,{useState as Ty,useEffect as Ny,forwardRef as Fu,createElement as To,useCallback as Dy}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{Checkbox as Uy,RadioGroup as Fy,RadioGroupItem as By,TooltipProvider as zy,Tooltip as Vy,TooltipTrigger as qy,Label as $y,TooltipContent as Ky,Select as Gy,SelectTrigger as Jy,SelectValue as Qy,SelectContent as Yy,SelectGroup as Zy,SelectItem as Hy,Switch as Xy,Input as ev,cn as tv}from"https://cdn.jsdelivr.net/npm/@wellesley/ui@1.0.776";import{useForm as rv,FormProvider as nv}from"https://cdn.jsdelivr.net/npm/react-hook-form@7.51.0/+esm";import{useSelector as ht}from"https://cdn.jsdelivr.net/npm/react-redux@9.1.0/+esm";import{toast as $e}from"https://cdn.jsdelivr.net/npm/@wellesley/system-toast@1.0.158";import{api as kt,fetchInterceptor as iv,isSuccessResponse as ov,QueryTags as vu}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.814";import{getErrorMsg as Xn}from"https://cdn.jsdelivr.net/npm/@wellesley/error-kit@1.0.663";import{authSlice as Jr,useHasUserPermissions as av}from"https://cdn.jsdelivr.net/npm/@wellesley/auth@1.0.870";import{userSlice as mu}from"https://cdn.jsdelivr.net/npm/@wellesley/user@1.0.829";import{AppsLink as sv}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.740";import{useMatch as _u}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";const uv=t=>{if("object"!=typeof t||null===t)return!1;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||null===Object.getPrototypeOf(t)},cv=t=>uv(t)&&"type"in t&&"string"==typeof t.type,J=t=>{const e=e=>({type:t,payload:e});return e.toString=()=>`${t}`,e.type=t,e.match=e=>cv(e)&&e.type===t,e};J("remoteReady"),J("askLogin"),J("reselectUser"),J("requestLogout"),J("setConfirmLeavePage"),J("requestChangePath"),J("wsSubscribe"),J("wsUnSubscribe"),J("hostStoreConnect"),J("remoteLogin"),J("remoteLogout"),J("wsOnMessage"),J("setRouterPath"),J("setDeviceType"),J("setDeviceWidth"),J("setUserError"),J("setUserIsError"),J("setUserPending"),J("setUserSuccess"),J("setUserData"),J("updateAccountData"),J("updateUser"),J("addNotification"),J("markNotification"),J("setNotificationsError"),J("setNotificationsList"),J("setNotificationsPending"),J("setNotificationsTotalCount"),J("setNotificationsUnreadCount"),J("acceptAllFollowRequests"),J("resetNotificationsState"),J("undoNotification"),J("setInstanceInfo"),J("setInstanceInfoPending"),J("setInstanceInfoError");const No=J("setPlatformSettings"),ni=J("setProfileSettings");J("setGroupData"),J("setGroupLoading"),Du("requestMicroFrontendFetch"),Du("sendMicroFrontendFetchResponse");const lv={data:null,isPending:!1,isSuccess:!1},fv=Uu({name:"profileSettings",initialState:lv,reducers:{setPending:(t,e)=>{t.isPending=e.payload},setSuccess:(t,{payload:e})=>{t.isSuccess=e},setError:(t,{payload:e})=>{t.error=e}},extraReducers:t=>{t.addCase(ni,((t,{payload:e})=>{t.data=e}))},selectors:{selectProfileSettings:t=>t.data,selectPending:t=>t.isPending,selectError:t=>t.error,selectSuccess:t=>t.isSuccess}}),j={openaiConfigModel:"wellesley.openai.config.model",openaiConfigApiKey:"wellesley.openai.config.apiKey",uploadsProvider:"wellesley.uploads.provider",uploadsS3:"wellesley.uploads.s3",uploadsPolicyImageExtensions:"wellesley.uploads.policy.image.extensions",uploadsPolicyImageKeepOriginal:"wellesley.uploads.policy.image.keepOriginal",uploadsPolicyImageResolutions:"wellesley.uploads.policy.image.resolutions",uploadsPolicyImageMaxResolution:"wellesley.uploads.policy.image.maxResolution",uploadsPolicyImageMaxMatrix:"wellesley.uploads.policy.image.maxMatrix",uploadsPolicyImageMaxSize:"wellesley.uploads.policy.image.maxSize",uploadsPolicyVideoExtensions:"wellesley.uploads.policy.video.extensions",uploadsPolicyVideoResolutions:"wellesley.uploads.policy.video.resolutions",uploadsPolicyVideoKeepOriginal:"wellesley.uploads.policy.video.keepOriginal",uploadsPolicyVideoMaxResolution:"wellesley.uploads.policy.video.maxResolution",uploadsPolicyVideoMaxMatrix:"wellesley.uploads.policy.video.maxMatrix",uploadsPolicyVideoMaxSize:"wellesley.uploads.policy.video.maxSize",uploadsPolicyVideoMaxDuration:"wellesley.uploads.policy.video.maxDuration",uploadsPolicyVideoStreamingThreshold:"wellesley.uploads.policy.video.streamingThreshold",uploadsPolicyAudioExtensions:"wellesley.uploads.policy.audio.extensions",uploadsPolicyAudioKeepOriginal:"wellesley.uploads.policy.audio.keepOriginal",uploadsPolicyAudioMaxSize:"wellesley.uploads.policy.audio.maxSize",uploadsPolicyDocExtensions:"wellesley.uploads.policy.doc.extensions",uploadsPolicyDocMaxSize:"wellesley.uploads.policy.doc.maxSize",mediacacheEnabled:"wellesley.mediacache.enabled",mediacacheMaxTotalSize:"wellesley.mediacache.maxTotalSize",mediacacheMaxFileSize:"wellesley.mediacache.maxFileSize",mediacacheLimitPerRun:"wellesley.mediacache.limitPerRun",mediacacheSingleRun:"wellesley.mediacache.singleRun",mediacacheCheckInterval:"wellesley.mediacache.checkInterval",postsMaxMediaAttachments:"wellesley.posts.max_media_attachments",postsMaxCharacters:"wellesley.posts.max_characters",postsMaxPins:"wellesley.posts.max_pins",registrationMode:"wellesley.registration.mode",registrationInvitesEnabled:"wellesley.registration.invitesEnabled",registrationReasonToJoin:"wellesley.registration.reasonToJoin",registrationShowCaptcha:"wellesley.registration.showCaptcha",registrationNotAvailableMessage:"wellesley.registration.notAvailableMessage",captchaVerifyUrl:"wellesley.captcha.verifyUrl",captchaSecretKey:"wellesley.captcha.secretKey",captchaSiteKey:"wellesley.captcha.siteKey",confirmationCodeCodeExpirationMinutes:"wellesley.confirmationCode.codeExpirationMinutes",confirmationCodeCounterExpirationMinutes:"wellesley.confirmationCode.counterExpirationMinutes",confirmationCodeLimitStoreAttempts:"wellesley.confirmationCode.limitStoreAttempts",confirmationCodeLimitCheckAttempts:"wellesley.confirmationCode.limitCheckAttempts",translation:"wellesley.translation"},r_=[j.uploadsPolicyImageExtensions,j.uploadsPolicyImageKeepOriginal,j.uploadsPolicyImageResolutions,j.uploadsPolicyImageMaxResolution,j.uploadsPolicyImageMaxMatrix,j.uploadsPolicyImageMaxSize,j.uploadsPolicyVideoExtensions,j.uploadsPolicyVideoResolutions,j.uploadsPolicyVideoKeepOriginal,j.uploadsPolicyVideoMaxResolution,j.uploadsPolicyVideoMaxMatrix,j.uploadsPolicyVideoMaxSize,j.uploadsPolicyVideoMaxDuration,j.uploadsPolicyVideoStreamingThreshold,j.uploadsPolicyAudioExtensions,j.uploadsPolicyAudioKeepOriginal,j.uploadsPolicyAudioMaxSize,j.uploadsPolicyDocExtensions,j.uploadsPolicyDocMaxSize,j.mediacacheEnabled,j.mediacacheMaxTotalSize,j.mediacacheMaxFileSize,j.mediacacheLimitPerRun,j.mediacacheSingleRun,j.mediacacheCheckInterval,j.postsMaxMediaAttachments,j.postsMaxCharacters,j.postsMaxPins,j.registrationMode,j.registrationInvitesEnabled,j.registrationReasonToJoin,j.registrationShowCaptcha,j.registrationNotAvailableMessage],n_="wellesley",ne={followAutoAccept:"user.follow.autoAccept",notificationsPrefsEmailMuteEnabled:"user.notifications.prefs.email.mute.enabled",notificationsPrefsEmailMuteExpiresAt:"user.notifications.prefs.email.mute.expiresAt",notificationsPrefsEmailFollow:"user.notifications.prefs.email.follow",notificationsPrefsEmailFollowRequest:"user.notifications.prefs.email.followRequest",notificationsPrefsEmailLike:"user.notifications.prefs.email.like",notificationsPrefsEmailComment:"user.notifications.prefs.email.comment",notificationsPrefsEmailMention:"user.notifications.prefs.email.mention",notificationsPrefsEmailGroupInvite:"user.notifications.prefs.email.groupInvite",notificationsPrefsEmailRepost:"user.notifications.prefs.email.repost",notificationsPrefsEmailListPostCreate:"user.notifications.prefs.email.listPostCreate",notificationsPrefsEmailPostUpdate:"user.notifications.prefs.email.postUpdate",notificationsPrefsEmailPollVote:"user.notifications.prefs.email.pollVote",notificationsPrefsEmailEventInvite:"user.notifications.prefs.email.eventInvite",notificationsPrefsEmailEventCancel:"user.notifications.prefs.email.eventCancel",notificationsPrefsEmailEventJoin:"user.notifications.prefs.email.eventJoin",notificationsPrefsEmailEventUpdate:"user.notifications.prefs.email.eventUpdate",notificationsPrefsPushMuteEnabled:"user.notifications.prefs.push.mute.enabled",notificationsPrefsPushMuteExpiresAt:"user.notifications.prefs.push.mute.expiresAt",notificationsPrefsPushFollow:"user.notifications.prefs.push.follow",notificationsPrefsPushFollowRequest:"user.notifications.prefs.push.followRequest",notificationsPrefsPushLike:"user.notifications.prefs.push.like",notificationsPrefsPushComment:"user.notifications.prefs.push.comment",notificationsPrefsPushMention:"user.notifications.prefs.push.mention",notificationsPrefsPushGroupInvite:"user.notifications.prefs.push.groupInvite",notificationsPrefsPushRepost:"user.notifications.prefs.push.repost",notificationsPrefsPushListPostCreate:"user.notifications.prefs.push.listPostCreate",notificationsPrefsPushPostUpdate:"user.notifications.prefs.push.postUpdate",notificationsPrefsPushPollVote:"user.notifications.prefs.push.pollVote",notificationsPrefsPushEventInvite:"user.notifications.prefs.push.eventInvite",notificationsPrefsPushEventCancel:"user.notifications.prefs.push.eventCancel",notificationsPrefsPushEventJoin:"user.notifications.prefs.push.eventJoin",notificationsPrefsPushEventUpdate:"user.notifications.prefs.push.eventUpdate",notificationsPrefsSubscribeOnComment:"user.notifications.prefs.subscribeOnComment",notificationsPrefsSyncAcrossProfiles:"user.notifications.prefs.syncAcrossProfiles",notificationsShowPopup:"user.notifications.prefs.showPopup",notificationsPolicyBlockNonFollowers:"user.notifications.policy.blockNonFollowers",notificationsPolicyBlockNonFollowing:"user.notifications.policy.blockNonFollowing",notificationsPolicyBlockNonFollowingMessages:"user.notifications.policy.blockNonFollowingMessages",notificationsPolicyBlockNewAccounts:"user.notifications.policy.blockNewAccounts",privacyShowPublicPosts:"user.privacy.showPublicPosts",privacyShowProfilePage:"user.privacy.showProfilePage",privacyShowFollowers:"user.privacy.showFollowers",translation:"user.translation"},i_="user",pv=["wellesley.posts","wellesley.captcha","wellesley.registration","wellesley.access","wellesley.branding","wellesley.confirmationCode","wellesley.uploads.policy.doc","wellesley.uploads.policy.audio","wellesley.uploads.policy.image","wellesley.uploads.policy.video","wellesley.translation","wellesley.instance.admin","wellesley.instance.legal","wellesley.instance.domainBlocks","wellesley.instance.contacts"],hv=["wellesley.admin.sms","wellesley.admin.auth","wellesley.admin.openai","wellesley.admin.uploads","wellesley.admin.captcha","wellesley.admin.language","wellesley.admin.mediacache","wellesley.admin.translation","wellesley.admin.link_service"],dv={sms:"wellesley.admin.sms",auth:"wellesley.admin.auth",openai:"wellesley.admin.openai",uploads:"wellesley.admin.uploads",captcha:"wellesley.admin.captcha",language:"wellesley.admin.language",mediacache:"wellesley.admin.mediacache",translation:"wellesley.admin.translation",link_service:"wellesley.admin.link_service"},Do={posts:"wellesley.posts",translation:"wellesley.translation",registration:"wellesley.registration",confirmationCode:"wellesley.confirmationCode",uploadsPolicyDoc:"wellesley.uploads.policy.doc",uploadsPolicyAudio:"wellesley.uploads.policy.audio",uploadsPolicyImage:"wellesley.uploads.policy.image",uploadsPolicyVideo:"wellesley.uploads.policy.video",captcha:"wellesley.captcha",access:"wellesley.access",branding:"wellesley.branding",instanceAdmin:"wellesley.instance.admin",legal:"wellesley.instance.legal",domainBlocks:"wellesley.instance.domainBlocks",contacts:"wellesley.instance.contacts"},$r=t=>(null==t?void 0:t.map((t=>t.value||t)))||[],gv={data:null,isPending:!1},{posts:Eo,uploadsPolicyDoc:wu,uploadsPolicyAudio:Ro,uploadsPolicyImage:ei,uploadsPolicyVideo:Vr,registration:yv,captcha:vv,instanceAdmin:mv,branding:_v,translation:wv,domainBlocks:xv,access:Sv}=Do,{captcha:bv,language:Av,translation:Pv,openai:Iv,link_service:Ev}=dv,hr=t=>t.data,Rv=Ct(hr,(t=>{var e,n,r;return{max_characters:(null==(e=null==t?void 0:t[Eo])?void 0:e.max_characters)||0,max_media_attachments:(null==(n=null==t?void 0:t[Eo])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==t?void 0:t[Eo])?void 0:r.max_pins)||0}})),Fo=Ct(hr,(t=>{var e,n,r;return{...null==t?void 0:t[ei],maxSize:(null==(e=null==t?void 0:t[ei])?void 0:e.maxSize)||0,maxMatrix:(null==(n=null==t?void 0:t[ei])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==t?void 0:t[ei])?void 0:r.maxResolution)||0}})),kv=Ct(Fo,(t=>$r(t.extensions))),Bu=Ct(hr,(t=>{var e,n,r,i;return{...null==t?void 0:t[Vr],maxSize:(null==(e=null==t?void 0:t[Vr])?void 0:e.maxSize)||0,maxMatrix:(null==(n=null==t?void 0:t[Vr])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==t?void 0:t[Vr])?void 0:r.maxDuration)||0,maxResolution:(null==(i=null==t?void 0:t[Vr])?void 0:i.maxResolution)||0}})),zu=Ct(hr,(t=>{var e,n;return{...null==t?void 0:t[Ro],maxSize:null==(e=null==t?void 0:t[Ro])?void 0:e.maxSize,keepOriginal:(null==(n=null==t?void 0:t[Ro])?void 0:n.keepOriginal)||0}})),Vu=Ct(hr,(t=>{var e;return{...null==t?void 0:t[wu],maxSize:(null==(e=null==t?void 0:t[wu])?void 0:e.maxSize)||0}})),qu=Ct([Fo,Bu,zu,Vu],((t,e,n,r)=>({IMAGE:$r(null==t?void 0:t.extensions),VIDEO:$r(null==e?void 0:e.extensions),AUDIO:$r(null==n?void 0:n.extensions),DOCUMENT:$r(null==r?void 0:r.extensions)}))),Cv=Ct(qu,(t=>Object.keys(t).reduce(((e,n)=>[...e,...t[n]||[]]),[]))),ii=Uu({name:"platformSettings",initialState:gv,reducers:{setError:(t,e)=>{t.error=e.payload},setPending:(t,e)=>{t.isPending=e.payload}},extraReducers:t=>{t.addCase(No,((t,{payload:e})=>{t.data={...t.data,...e}}))},selectors:{selectSettings:hr,selectPostConfig:Rv,selectDocPolicy:Vu,selectImagePolicy:Fo,selectVideoPolicy:Bu,selectAudioPolicy:zu,selectImageExtensions:kv,selectSupportedExtensions:qu,selectFullExtensionsList:Cv,selectRegistration:t=>{var e;return null==(e=t.data)?void 0:e[yv]},selectLanguageDetection:t=>{var e;return null==(e=t.data)?void 0:e[Av]},selectLanguageTranslation:t=>{var e;return null==(e=t.data)?void 0:e[Pv]},selectOpenai:t=>{var e;return null==(e=t.data)?void 0:e[Iv]},selectCaptcha:t=>{var e;return null==(e=t.data)?void 0:e[vv]},selectAdminCaptcha:t=>{var e;return null==(e=t.data)?void 0:e[bv]},selectPlatformTranslation:t=>{var e;return null==(e=t.data)?void 0:e[wv]},selectAccess:t=>{var e;return null==(e=t.data)?void 0:e[Sv]},selectBranding:t=>{var e;return null==(e=t.data)?void 0:e[_v]},selectLinkService:t=>{var e;return null==(e=t.data)?void 0:e[Ev]},selectInstanceAdmin:t=>{var e;return null==(e=t.data)?void 0:e[mv]},selectLegal:t=>{var e;return null==(e=t.data)?void 0:e[Do.legal]},selectDomainBlocks:t=>{var e;return null==(e=t.data)?void 0:e[xv]},selectContacts:t=>{var e;return null==(e=t.data)?void 0:e[Do.contacts]}}});var xu,Su,ti=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ko={exports:{}},qr={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
package/package.json
CHANGED