PageSourceSearch

https://video.adullact.org/client/en-US/chunk-DIz81XYY.js

js adullact.org collected 2026-10-01 10:42:59 UTC 10,115 bytes, 3 lines download raw bytes

1import{Cc as xM,Es as qe,Hn as O,Ir as Tt,Ls as se,Ms as rd,Nr as Te,Or as T,Pc as yn,Qa as he,Ro as m,Wa as gAe,Xr as Vc,Yn as Og,Yt as Je,Zn as Oje,_t as Gc,di as Wn,io as i8,ja as er,lr as Pje,ls as on,mc as w2e,na as b2e,on as Kt,pi as X2e,ra as bd,t as $,vn as Lje,y as Am,yo as je}from"./chunk-CBGwcTR3.js";import{t as a}from"./chunk-BTHGypmd.js";var C=class r{authHttp=m(Wn);restExtractor=m(er);static BASE_ACCOUNT_URL=se.apiUrl+`/api/v1/accounts/`;accountLoaded=new qe(1);getAccount(t){return this.authHttp.get(r.BASE_ACCOUNT_URL+t).pipe($(e=>new bd(e)),Tt(e=>this.accountLoaded.next(e)),he(e=>this.restExtractor.handleError(e)))}static ɵfac=function(e){return new(e||r)};static ɵprov=T({token:r,factory:r.ɵfac})};var G=class r{authHttp=m(Wn);restService=m(Og);restExtractor=m(er);serverService=m(Kt);confirmService=m(Gc);static BASE_VIDEO_CHANNEL_URL=se.apiUrl+`/api/v1/video-channels/`;videoChannelLoaded=new qe(1);static extractVideoChannels(t){let e=[];for(let i of t.data)e.push(new a(i));return{data:e,total:t.total}}get(t){return this.authHttp.get(r.BASE_VIDEO_CHANNEL_URL+t).pipe($(e=>new a(e)),Tt(e=>this.videoChannelLoaded.next(e)),he(e=>this.restExtractor.handleError(e)))}listAccountChannels(t){let{account:e,componentPagination:i,withStats:n=!1,statsDays:o,sort:p,search:m,includeCollaborations:Y=!1}=t,$$1=Math.min(this.serverService.getHTMLConfig().videoChannels.maxPerUser,100),z=i?this.restService.componentToRestPagination(i):{start:0,count:$$1},l=new yn;l=this.restService.addRestGetParams(l,z,p),l=l.set(`withStats`,n+``),o!==void 0&&(l=l.set(`statsDays`,o+``)),m&&(l=l.set(`search`,m)),Y&&(l=l.set(`includeCollaborations`,`true`));let K=C.BASE_ACCOUNT_URL+e.nameWithHost+`/video-channels`;return this.authHttp.get(K,{params:l}).pipe($(f=>r.extractVideoChannels(f)),he(f=>this.restExtractor.handleError(f)))}create(t){return this.authHttp.post(r.BASE_VIDEO_CHANNEL_URL,t).pipe(he(e=>this.restExtractor.handleError(e)))}update(t,e){return this.authHttp.put(r.BASE_VIDEO_CHANNEL_URL+t,e).pipe(he(i=>this.restExtractor.handleError(i)))}removeWithConfirmation(t){let e=`Do you really want to delete ${t.displayName}?`+`<br />`+b2e(`It will delete {count, plural, =1 {1 video} other {{count} videos}} uploaded in this channel, and you will not be able to create another channel or account with the same name (${t.name})!`,{count:t.videosCount});return Te(this.confirmService.confirmWithExpectedInput(e,`Please type the name of the video channel (${t.name}) to confirm`,t.name,"Delete video channel","Delete")).pipe(je(n=>n?this.authHttp.delete(r.BASE_VIDEO_CHANNEL_URL+t.nameWithHost).pipe($(()=>({removed:!0})),he(o=>this.restExtractor.handleError(o))):O({removed:!1})))}changeImage(t,e,i){let n=r.BASE_VIDEO_CHANNEL_URL+t+`/`+i+`/pick`;return this.authHttp.post(n,e).pipe(he(o=>this.restExtractor.handleError(o)))}deleteImage(t,e){let i=r.BASE_VIDEO_CHANNEL_URL+t+`/`+e;return this.authHttp.delete(i).pipe(he(n=>this.restExtractor.handleError(n)))}importVideos(t,e,i){let n=r.BASE_VIDEO_CHANNEL_URL+t+`/import-videos`,o={externalChannelUrl:e,videoChannelSyncId:i};return this.authHttp.post(n,o).pipe(he(p=>this.restExtractor.handleError(p)))}listCollaborators(t){let e=r.BASE_VIDEO_CHANNEL_URL+t+`/collaborators`;return this.authHttp.get(e).pipe(he(i=>this.restExtractor.handleError(i)))}inviteCollaborator(t,e){let i=r.BASE_VIDEO_CHANNEL_URL+t+`/collaborators/invite`;return this.authHttp.post(i,{accountHandle:e}).pipe($(({collaborator:n})=>n),he(n=>this.restExtractor.handleError(n)))}acceptCollaboratorInvitation(t,e){let i=r.BASE_VIDEO_CHANNEL_URL+t+`/collaborators/`+e+`/accept`;return this.authHttp.post(i,{}).pipe(he(n=>this.restExtractor.handleError(n)))}rejectCollaboratorInvitation(t,e){let i=r.BASE_VIDEO_CHANNEL_URL+t+`/collaborators/`+e+`/reject`;return this.authHttp.post(i,{}).pipe(he(n=>this.restExtractor.handleError(n)))}removeCollaborator(t,e){let i=r.BASE_VIDEO_CHANNEL_URL+t+`/collaborators/`+e;return this.authHttp.delete(i).pipe(he(n=>this.restExtractor.handleError(n)))}listActivities(t){let{channelName:e,componentPagination:i}=t,n=this.restService.componentToRestPagination(i),o=new yn;o=this.restService.addRestGetParams(o,n);let p=r.BASE_VIDEO_CHANNEL_URL+e+`/activities`;return this.authHttp.get(p,{params:o}).pipe(he(m=>this.restExtractor.handleError(m)))}static ɵfac=function(e){return new(e||r)};static ɵprov=T({token:r,factory:r.ɵfac,providedIn:`root`})};var j=class r{byVideoChannel;byAccount;createdAt;updatedAt;publishedAt;originallyPublishedAt;category;licence;language;privacy;truncatedDescription;description;duration;durationLabel;id;uuid;shortUUID;isLocal;name;serverHost;thumbnailPath;thumbnailUrl;previewPath;previewUrl;thumbnails;aspectRatio;isLive;liveSchedules;embedPath;embedUrl;url;views;viewers;downloads;likes;dislikes;nsfw;nsfwFlags;nsfwSummary;originInstanceUrl;originInstanceHost;waitTranscoding;state;scheduledUpdate;blacklisted;blacklistedReason;blockedOwner;blockedServer;account;channel;userHistory;pluginData;streamingPlaylists;files;videoSource;tags;automaticTags;comments;static buildWatchUrl(t){return i8({shortUUID:t.shortUUID||t.uuid})}static buildManageUrl(t){return`/videos/manage/`+(t.shortUUID||t.uuid)}static buildDurationLabel(t){return w2e(t.duration)}constructor(t,e={}){this.createdAt=new Date(t.createdAt.toString()),this.publishedAt=new Date(t.publishedAt.toString()),this.category=t.category,this.licence=t.licence,this.language=t.language,this.privacy=t.privacy,this.waitTranscoding=t.waitTranscoding,this.state=t.state,this.truncatedDescription=t.truncatedDescription,this.description=t.description,this.isLive=t.isLive,this.liveSchedules=t.liveSchedules?t.liveSchedules.map(i=>({startAt:new Date(i.startAt.toString())})):null,this.thumbnails=t.thumbnails,this.duration=t.duration,this.durationLabel=r.buildDurationLabel(this),this.id=t.id,this.uuid=t.uuid,this.shortUUID=t.shortUUID,this.isLocal=t.isLocal,this.name=t.name,this.embedPath=t.embedPath,this.embedUrl=t.embedUrl||X2e()+t.embedPath,this.url=t.url,this.views=t.views,this.viewers=t.viewers,this.likes=t.likes,this.dislikes=t.dislikes,this.downloads=t.downloads,this.nsfw=t.nsfw,this.nsfwFlags=t.nsfwFlags,this.nsfwSummary=t.nsfwSummary,this.account=t.account,this.channel=t.channel,this.byAccount=Vc.CREATE_BY_STRING(t.account.name,t.account.host),this.byVideoChannel=Vc.CREATE_BY_STRING(t.channel.name,t.channel.host),this.category.label=Am(this.category.label,e),this.licence.label=Am(this.licence.label,e),this.language.label=Am(this.language.label,e),this.privacy.label=Am(this.privacy.label,e),this.scheduledUpdate=t.scheduledUpdate,this.originallyPublishedAt=t.originallyPublishedAt?new Date(t.originallyPublishedAt.toString()):null,this.state&&(this.state.label=Am(this.state.label,e)),this.blackl
1isted=t.blacklisted,this.blacklistedReason=t.blacklistedReason,this.streamingPlaylists=t.streamingPlaylists,this.files=t.files;for(let i of this.getAllVideoFiles())i.resolution.label=Am(i.resolution.label,e);this.videoSource=t.videoSource,this.userHistory=t.userHistory,this.originInstanceHost=this.account.host,this.originInstanceUrl=`https://`+this.originInstanceHost,this.pluginData=t.pluginData,this.aspectRatio=t.aspectRatio,this.tags=t.tags,this.automaticTags=t.automaticTags,this.comments=t.comments}isNSFWWarnedForUser(t,e){return Oje(this,e,t)}isNSFWBlurForUser(t,e){return Lje(this,e,t)}isNSFWHiddenForUser(t,e){return Pje(this,e,t)}isNSFWHiddenOrWarned(t,e){return this.isNSFWHiddenForUser(t,e)||this.isNSFWWarnedForUser(t,e)}canBeBlockedBy(t){return this.blacklisted!==!0&&t?.hasRight(Je.MANAGE_VIDEO_BLACKLIST)===!0}canBeUnblockedBy(t){return this.blacklisted===!0&&t?.hasRight(Je.MANAGE_VIDEO_BLACKLIST)===!0}canBeUpdatedBy(t){return t&&this.isLocal===!0&&(t.isOwnerOfChannel(this.channel)||t.isEditorOfChannel(this.channel)||t.hasRight(Je.UPDATE_ANY_VIDEO))}canBeStudioEditedBy(t){return t.studioEnabled&&this.state?.id===rd.PUBLISHED&&this.canBeUpdatedBy(t.user)}canBeRemovedBy(t){return t&&this.isLocal===!0&&(t.isOwnerOfChannel(this.channel)||t.isEditorOfChannel(this.channel)||t.hasRight(Je.REMOVE_ANY_VIDEO))}canBypassDisabledDownload(t){return t&&this.isLocal===!0&&(t.isOwnerOfChannel(this.channel)||t.isEditorOfChannel(this.channel)||t.hasRight(Je.SEE_ALL_VIDEOS))}canGetOriginalFile(t){return t&&this.isLocal===!0&&(t.isOwnerOfChannel(this.channel)||t.isEditorOfChannel(this.channel)||t.hasRight(Je.UPDATE_ANY_VIDEO)&&t.hasRight(Je.SEE_ALL_VIDEOS))}canBypassPassword(t){return this.privacy.id===on.PASSWORD_PROTECTED&&t&&this.isLocal===!0&&(t.isOwnerOfChannel(this.channel)||t.isEditorOfChannel(this.channel)||t.hasRight(Je.SEE_ALL_VIDEOS))}canDisplayLiveInfoBy(t){return this.isLive&&t&&this.isLocal===!0&&(t.isOwnerOfChannel(this.channel)||t.isEditorOfChannel(this.channel)||t.hasRight(Je.GET_ANY_LIVE))}canBeReportedBy(t){return t?t.isOwnerOfChannel(this.channel)===!1&&t.isEditorOfChannel(this.channel)===!1:!1}canRemoveOneFile(t){return this.isLocal&&t&&t.hasRight(Je.MANAGE_VIDEO_FILES)&&this.state.id!==rd.TO_TRANSCODE&&gAe(this).length>1}canRemoveAllHLSOrWebFiles(t){return this.isLocal&&t&&t.hasRight(Je.MANAGE_VIDEO_FILES)&&this.state.id!==rd.TO_TRANSCODE&&this.hasHLS()&&this.hasWebVideos()}canBeDuplicatedBy(t){return t&&this.isLocal===!1&&t.hasRight(Je.MANAGE_VIDEOS_REDUNDANCIES)}canRunTranscoding(t){return this.isLocal&&!this.isLive&&t?.hasRight(Je.RUN_VIDEO_TRANSCODING)&&this.state?.id&&!this.transcodingAndTranscriptionIncompatibleStates().has(this.state.id)}canGenerateTranscription(t,e){return e&&this.isLocal&&!this.isLive&&t.hasRight(Je.UPDATE_ANY_VIDEO)&&this.state?.id&&!this.transcodingAndTranscriptionIncompatibleStates().has(this.state.id)}transcodingAndTranscriptionIncompatibleStates(){return new Set([rd.TO_IMPORT,rd.TO_IMPORT_FAILED,rd.TO_EDIT,rd.TO_MOVE_TO_EXTERNAL_STORAGE,rd.TO_MOVE_TO_FILE_SYSTEM])}hasHLS(){return this.streamingPlaylists?.some(t=>t.type===xM.HLS)}hasWebVideos(){return this.files&&this.files.length!==0}getAllVideoFiles(){return gAe(this)}};export{G as n,j as r,C as t};
2//# debugId=4194bf3e-c8d3-572c-ac16-5f331a4bd29f
3//# sourceMappingURL=chunk-DIz81XYY.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.