@wellesley/settings 1.0.735 → 1.0.737
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 Fu,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 Uu,createElement as To,useCallback as Dy}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{Checkbox as Fy,RadioGroup as Uy,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.740";import{useForm as rv,FormProvider as nv}from"https://cdn.jsdelivr.net/npm/react-hook-form@7.51.0/+esm";import{useSelector as dt}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.122";import{api as Ze,QueryTags as vu}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.778";import{getErrorMsg as Xn}from"https://cdn.jsdelivr.net/npm/@wellesley/error-kit@1.0.627";import{authSlice as Jr,useHasUserPermissions as iv}from"https://cdn.jsdelivr.net/npm/@wellesley/auth@1.0.834";import{userSlice as mu}from"https://cdn.jsdelivr.net/npm/@wellesley/user@1.0.793";import{AppsLink as ov}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.704";import{useMatch as _u}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";const av=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)},sv=t=>av(t)&&"type"in t&&"string"==typeof t.type,Y=t=>{const e=e=>({type:t,payload:e});return e.toString=()=>`${t}`,e.type=t,e.match=e=>sv(e)&&e.type===t,e};Y("remoteReady"),Y("askLogin"),Y("reselectUser"),Y("requestLogout"),Y("setConfirmLeavePage"),Y("requestChangePath"),Y("wsSubscribe"),Y("wsUnSubscribe"),Y("hostStoreConnect"),Y("remoteLogin"),Y("remoteLogout"),Y("wsOnMessage"),Y("setRouterPath"),Y("setDeviceType"),Y("setDeviceWidth"),Y("setUserError"),Y("setUserIsError"),Y("setUserPending"),Y("setUserSuccess"),Y("setUserData"),Y("updateAccountData"),Y("updateUser"),Y("addNotification"),Y("markNotification"),Y("setNotificationsError"),Y("setNotificationsList"),Y("setNotificationsPending"),Y("setNotificationsTotalCount"),Y("setNotificationsUnreadCount"),Y("resetNotificationsState"),Y("undoNotification"),Y("setInstanceInfo"),Y("setInstanceInfoPending"),Y("setInstanceInfoError");const No=Y("setPlatformSettings"),Do=Y("setProfileSettings");Y("setGroupData"),Y("setGroupLoading"),Du("requestMicroFrontendFetch"),Du("sendMicroFrontendFetchResponse");const uv={data:null,isPending:!1,isSuccess:!1},cv=Fu({name:"profileSettings",initialState:uv,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(Do,((t,{payload:e})=>{t.data=e}))},selectors:{selectProfileSettings:t=>t.data,selectPending:t=>t.isPending,selectError:t=>t.error,selectSuccess:t=>t.isSuccess}}),L={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"},Xm=[L.uploadsPolicyImageExtensions,L.uploadsPolicyImageKeepOriginal,L.uploadsPolicyImageResolutions,L.uploadsPolicyImageMaxResolution,L.uploadsPolicyImageMaxMatrix,L.uploadsPolicyImageMaxSize,L.uploadsPolicyVideoExtensions,L.uploadsPolicyVideoResolutions,L.uploadsPolicyVideoKeepOriginal,L.uploadsPolicyVideoMaxResolution,L.uploadsPolicyVideoMaxMatrix,L.uploadsPolicyVideoMaxSize,L.uploadsPolicyVideoMaxDuration,L.uploadsPolicyVideoStreamingThreshold,L.uploadsPolicyAudioExtensions,L.uploadsPolicyAudioKeepOriginal,L.uploadsPolicyAudioMaxSize,L.uploadsPolicyDocExtensions,L.uploadsPolicyDocMaxSize,L.mediacacheEnabled,L.mediacacheMaxTotalSize,L.mediacacheMaxFileSize,L.mediacacheLimitPerRun,L.mediacacheSingleRun,L.mediacacheCheckInterval,L.postsMaxMediaAttachments,L.postsMaxCharacters,L.postsMaxPins,L.registrationMode,L.registrationInvitesEnabled,L.registrationReasonToJoin,L.registrationShowCaptcha,L.registrationNotAvailableMessage],e_="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"},t_="user",lv=["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"],fv=["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"],pv={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"},ni={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)))||[],hv={data:null,isPending:!1},{posts:Ro,uploadsPolicyDoc:wu,uploadsPolicyAudio:Eo,uploadsPolicyImage:ei,uploadsPolicyVideo:Vr,registration:dv,captcha:gv,instanceAdmin:yv,branding:vv,translation:mv,access:_v}=ni,{captcha:wv,language:xv,translation:Sv,openai:bv,link_service:Av}=pv,hr=t=>t.data,Pv=Ct(hr,(t=>{var e,n,r;return{max_characters:(null==(e=null==t?void 0:t[Ro])?void 0:e.max_characters)||0,max_media_attachments:(null==(n=null==t?void 0:t[Ro])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==t?void 0:t[Ro])?void 0:r.max_pins)||0}})),Uo=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}})),Iv=Ct(Uo,(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[Eo],maxSize:null==(e=null==t?void 0:t[Eo])?void 0:e.maxSize,keepOriginal:(null==(n=null==t?void 0:t[Eo])?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([Uo,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)}))),Rv=Ct(qu,(t=>Object.keys(t).reduce(((e,n)=>[...e,...t[n]||[]]),[]))),ii=Fu({name:"platformSettings",initialState:hv,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:Pv,selectDocPolicy:Vu,selectImagePolicy:Uo,selectVideoPolicy:Bu,selectAudioPolicy:zu,selectImageExtensions:Iv,selectSupportedExtensions:qu,selectFullExtensionsList:Rv,selectRegistration:t=>{var e;return null==(e=t.data)?void 0:e[dv]},selectLanguageDetection:t=>{var e;return null==(e=t.data)?void 0:e[xv]},selectLanguageTranslation:t=>{var e;return null==(e=t.data)?void 0:e[Sv]},selectOpenai:t=>{var e;return null==(e=t.data)?void 0:e[bv]},selectCaptcha:t=>{var e;return null==(e=t.data)?void 0:e[gv]},selectAdminCaptcha:t=>{var e;return null==(e=t.data)?void 0:e[wv]},selectPlatformTranslation:t=>{var e;return null==(e=t.data)?void 0:e[mv]},selectAccess:t=>{var e;return null==(e=t.data)?void 0:e[_v]},selectBranding:t=>{var e;return null==(e=t.data)?void 0:e[vv]},selectLinkService:t=>{var e;return null==(e=t.data)?void 0:e[Av]},selectInstanceAdmin:t=>{var e;return null==(e=t.data)?void 0:e[yv]},selectLegal:t=>{var e;return null==(e=t.data)?void 0:e[ni.legal]},selectDomainBlocks:t=>{var e;return null==(e=t.data)?void 0:e[ni.domainBlocks]},selectContacts:t=>{var e;return null==(e=t.data)?void 0:e[ni.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 Fu,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 Uu,createElement as To,useCallback as Dy}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{Checkbox as Fy,RadioGroup as Uy,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.742";import{useForm as rv,FormProvider as nv}from"https://cdn.jsdelivr.net/npm/react-hook-form@7.51.0/+esm";import{useSelector as dt}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.124";import{api as Ze,QueryTags as vu}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.780";import{getErrorMsg as Xn}from"https://cdn.jsdelivr.net/npm/@wellesley/error-kit@1.0.629";import{authSlice as Jr,useHasUserPermissions as iv}from"https://cdn.jsdelivr.net/npm/@wellesley/auth@1.0.836";import{userSlice as mu}from"https://cdn.jsdelivr.net/npm/@wellesley/user@1.0.795";import{AppsLink as ov}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.706";import{useMatch as _u}from"https://cdn.jsdelivr.net/npm/react-router-dom@6.22.2/+esm";const av=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)},sv=t=>av(t)&&"type"in t&&"string"==typeof t.type,Y=t=>{const e=e=>({type:t,payload:e});return e.toString=()=>`${t}`,e.type=t,e.match=e=>sv(e)&&e.type===t,e};Y("remoteReady"),Y("askLogin"),Y("reselectUser"),Y("requestLogout"),Y("setConfirmLeavePage"),Y("requestChangePath"),Y("wsSubscribe"),Y("wsUnSubscribe"),Y("hostStoreConnect"),Y("remoteLogin"),Y("remoteLogout"),Y("wsOnMessage"),Y("setRouterPath"),Y("setDeviceType"),Y("setDeviceWidth"),Y("setUserError"),Y("setUserIsError"),Y("setUserPending"),Y("setUserSuccess"),Y("setUserData"),Y("updateAccountData"),Y("updateUser"),Y("addNotification"),Y("markNotification"),Y("setNotificationsError"),Y("setNotificationsList"),Y("setNotificationsPending"),Y("setNotificationsTotalCount"),Y("setNotificationsUnreadCount"),Y("resetNotificationsState"),Y("undoNotification"),Y("setInstanceInfo"),Y("setInstanceInfoPending"),Y("setInstanceInfoError");const No=Y("setPlatformSettings"),Do=Y("setProfileSettings");Y("setGroupData"),Y("setGroupLoading"),Du("requestMicroFrontendFetch"),Du("sendMicroFrontendFetchResponse");const uv={data:null,isPending:!1,isSuccess:!1},cv=Fu({name:"profileSettings",initialState:uv,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(Do,((t,{payload:e})=>{t.data=e}))},selectors:{selectProfileSettings:t=>t.data,selectPending:t=>t.isPending,selectError:t=>t.error,selectSuccess:t=>t.isSuccess}}),L={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"},Xm=[L.uploadsPolicyImageExtensions,L.uploadsPolicyImageKeepOriginal,L.uploadsPolicyImageResolutions,L.uploadsPolicyImageMaxResolution,L.uploadsPolicyImageMaxMatrix,L.uploadsPolicyImageMaxSize,L.uploadsPolicyVideoExtensions,L.uploadsPolicyVideoResolutions,L.uploadsPolicyVideoKeepOriginal,L.uploadsPolicyVideoMaxResolution,L.uploadsPolicyVideoMaxMatrix,L.uploadsPolicyVideoMaxSize,L.uploadsPolicyVideoMaxDuration,L.uploadsPolicyVideoStreamingThreshold,L.uploadsPolicyAudioExtensions,L.uploadsPolicyAudioKeepOriginal,L.uploadsPolicyAudioMaxSize,L.uploadsPolicyDocExtensions,L.uploadsPolicyDocMaxSize,L.mediacacheEnabled,L.mediacacheMaxTotalSize,L.mediacacheMaxFileSize,L.mediacacheLimitPerRun,L.mediacacheSingleRun,L.mediacacheCheckInterval,L.postsMaxMediaAttachments,L.postsMaxCharacters,L.postsMaxPins,L.registrationMode,L.registrationInvitesEnabled,L.registrationReasonToJoin,L.registrationShowCaptcha,L.registrationNotAvailableMessage],e_="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"},t_="user",lv=["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"],fv=["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"],pv={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"},ni={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)))||[],hv={data:null,isPending:!1},{posts:Ro,uploadsPolicyDoc:wu,uploadsPolicyAudio:Eo,uploadsPolicyImage:ei,uploadsPolicyVideo:Vr,registration:dv,captcha:gv,instanceAdmin:yv,branding:vv,translation:mv,access:_v}=ni,{captcha:wv,language:xv,translation:Sv,openai:bv,link_service:Av}=pv,hr=t=>t.data,Pv=Ct(hr,(t=>{var e,n,r;return{max_characters:(null==(e=null==t?void 0:t[Ro])?void 0:e.max_characters)||0,max_media_attachments:(null==(n=null==t?void 0:t[Ro])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==t?void 0:t[Ro])?void 0:r.max_pins)||0}})),Uo=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}})),Iv=Ct(Uo,(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[Eo],maxSize:null==(e=null==t?void 0:t[Eo])?void 0:e.maxSize,keepOriginal:(null==(n=null==t?void 0:t[Eo])?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([Uo,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)}))),Rv=Ct(qu,(t=>Object.keys(t).reduce(((e,n)=>[...e,...t[n]||[]]),[]))),ii=Fu({name:"platformSettings",initialState:hv,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:Pv,selectDocPolicy:Vu,selectImagePolicy:Uo,selectVideoPolicy:Bu,selectAudioPolicy:zu,selectImageExtensions:Iv,selectSupportedExtensions:qu,selectFullExtensionsList:Rv,selectRegistration:t=>{var e;return null==(e=t.data)?void 0:e[dv]},selectLanguageDetection:t=>{var e;return null==(e=t.data)?void 0:e[xv]},selectLanguageTranslation:t=>{var e;return null==(e=t.data)?void 0:e[Sv]},selectOpenai:t=>{var e;return null==(e=t.data)?void 0:e[bv]},selectCaptcha:t=>{var e;return null==(e=t.data)?void 0:e[gv]},selectAdminCaptcha:t=>{var e;return null==(e=t.data)?void 0:e[wv]},selectPlatformTranslation:t=>{var e;return null==(e=t.data)?void 0:e[mv]},selectAccess:t=>{var e;return null==(e=t.data)?void 0:e[_v]},selectBranding:t=>{var e;return null==(e=t.data)?void 0:e[vv]},selectLinkService:t=>{var e;return null==(e=t.data)?void 0:e[Av]},selectInstanceAdmin:t=>{var e;return null==(e=t.data)?void 0:e[yv]},selectLegal:t=>{var e;return null==(e=t.data)?void 0:e[ni.legal]},selectDomainBlocks:t=>{var e;return null==(e=t.data)?void 0:e[ni.domainBlocks]},selectContacts:t=>{var e;return null==(e=t.data)?void 0:e[ni.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