mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-04-24 00:08:07 -04:00
1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
!function(){var e,t={463:function(e,t,a){"use strict";a.d(t,{c:function(){return n}});var s=a(4571),i=a.n(s);function n(e,t){let a=i()(e,{});return""!==a.origin&&"null"!==a.origin&&a.origin||(a=i()(t+"/"+e.replace(/^\//g,""),{})),a.toString()}},512:function(e,t,a){"use strict";var s=a(2985),i=a(9471),n=a(8713),r=a.n(n),o=a(8790),l=a(7460),d=a(285),h=a(2855),c=a(1177),u=a(239),g=a(7731),m=a(3160),p=a(9294),S=a(7670),f=a(4473),y=a(9200),_=a(9479),b=a(8974);function w(e){return i.createElement(o.LinksConsumer,null,(e=>i.createElement("div",{className:"empty-media empty-channel-media"},i.createElement("div",{className:"welcome-title"},"No shared media"),i.createElement("div",{className:"start-uploading"},"Media that others have shared with you will show up here."))))}class v extends _.Y{constructor(e,t){super(e,"string"==typeof t?t:"author-shared-with-me"),this.profilePageSlug="string"==typeof t?t:"author-shared-with-me",this.state={channelMediaCount:-1,author:l.ProfilePageStore.get("author-data"),uploadsPreviewItemsCount:0,title:this.props.title,query:l.ProfilePageStore.get("author-query"),requestUrl:null,hiddenFilters:!0,hiddenTags:!0,hiddenSorting:!0,hiddenSharing:!0,filterArgs:"",availableTags:[],selectedTag:"all",selectedSort:"date_added_desc",selectedMedia:new Set,sharedUsers:[],sharedGroups:[],selectedSharingType:null,selectedSharingValue:null},this.authorDataLoad=this.authorDataLoad.bind(this),this.onAuthorPreviewItemsCountCallback=this.onAuthorPreviewItemsCountCallback.bind(this),this.getCountFunc=this.getCountFunc.bind(this),this.changeRequestQuery=this.changeRequestQuery.bind(this),this.onToggleFiltersClick=this.onToggleFiltersClick.bind(this),this.onToggleTagsClick=this.onToggleTagsClick.bind(this),this.onToggleSortingClick=this.onToggleSortingClick.bind(this),this.onToggleSharingClick=this.onToggleSharingClick.bind(this),this.onFiltersUpdate=this.onFiltersUpdate.bind(this),this.onTagSelect=this.onTagSelect.bind(this),this.onSortSelect=this.onSortSelect.bind(this),this.onSharingSelect=this.onSharingSelect.bind(this),this.onResponseDataLoaded=this.onResponseDataLoaded.bind(this),this.handleMediaSelection=this.handleMediaSelection.bind(this),l.ProfilePageStore.on("load-author-data",this.authorDataLoad)}componentDidMount(){d.ProfilePageActions.load_author_data()}authorDataLoad(){const e=l.ProfilePageStore.get("author-data");let t=this.state.requestUrl;e&&(t=this.state.query?o.ApiUrlContext._currentValue.media+"?author="+e.id+"&show=shared_with_me&q="+encodeURIComponent(this.state.query)+this.state.filterArgs:o.ApiUrlContext._currentValue.media+"?author="+e.id+"&show=shared_with_me"+this.state.filterArgs),this.setState({author:e,requestUrl:t})}onAuthorPreviewItemsCountCallback(e){this.setState({uploadsPreviewItemsCount:e})}getCountFunc(e){this.setState({channelMediaCount:e},(()=>{if(this.state.query){let t="";t=e?1===e?'1 result for "'+this.state.query+'"':e+' results for "'+this.state.query+'"':'No results for "'+this.state.query+'"',this.setState({title:t})}}))}changeRequestQuery(e){if(!this.state.author)return;let t;t=e?o.ApiUrlContext._currentValue.media+"?author="+this.state.author.id+"&show=shared_with_me&q="+encodeURIComponent(e)+this.state.filterArgs:o.ApiUrlContext._currentValue.media+"?author="+this.state.author.id+"&show=shared_with_me"+this.state.filterArgs;let a=this.state.title;""===e&&(a=this.props.title),this.setState({requestUrl:t,query:e,title:a})}onToggleFiltersClick(){this.setState({hiddenFilters:!this.state.hiddenFilters,hiddenTags:!0,hiddenSorting:!0,hiddenSharing:!0})}onToggleTagsClick(){this.setState({hiddenFilters:!0,hiddenTags:!this.state.hiddenTags,hiddenSorting:!0,hiddenSharing:!0})}onToggleSortingClick(){this.setState({hiddenFilters:!0,hiddenTags:!0,hiddenSorting:!this.state.hiddenSorting,hiddenSharing:!0})}onToggleSharingClick(){this.setState({hiddenFilters:!0,hiddenTags:!0,hiddenSorting:!0,hiddenSharing:!this.state.hiddenSharing})}onTagSelect(e){this.setState({selectedTag:e},(()=>{this.onFiltersUpdate({media_type:this.state.filterArgs.match(/media_type=([^&]+)/)?.[1],upload_date:this.state.filterArgs.match(/upload_date=([^&]+)/)?.[1],duration:this.state.filterArgs.match(/duration=([^&]+)/)?.[1],publish_state:this.state.filterArgs.match(/publish_state=([^&]+)/)?.[1],sort_by:this.state.selectedSort,tag:e,sharing_type:this.state.selectedSharingType,sharing_value:this.state.selectedSharingValue})}))}onSortSelect(e){this.setState({selectedSort:e},(()=>{this.onFiltersUpdate({media_type:this.state.filterArgs.match(/media_type=([^&]+)/)?.[1],upload_date:this.state.filterArgs.match(/upload_date=([^&]+)/)?.[1],duration:this.state.filterArgs.match(/duration=([^&]+)/)?.[1],publish_state:this.state.filterArgs.match(/publish_state=([^&]+)/)?.[1],sort_by:e,tag:this.state.selectedTag,sharing_type:this.state.selectedSharingType,sharing_value:this.state.selectedSharingValue})}))}onSharingSelect(e,t){this.setState({selectedSharingType:e,selectedSharingValue:t},(()=>{this.onFiltersUpdate({media_type:this.state.filterArgs.match(/media_type=([^&]+)/)?.[1],upload_date:this.state.filterArgs.match(/upload_date=([^&]+)/)?.[1],duration:this.state.filterArgs.match(/duration=([^&]+)/)?.[1],publish_state:this.state.filterArgs.match(/publish_state=([^&]+)/)?.[1],sort_by:this.state.selectedSort,tag:this.state.selectedTag,sharing_type:e,sharing_value:t})}))}onFiltersUpdate(e){const t={media_type:null,upload_date:null,duration:null,publish_state:null,sort_by:null,ordering:null,t:null,shared_user:null,shared_group:null};switch(e.media_type){case"video":case"audio":case"image":case"pdf":t.media_type=e.media_type}switch(e.upload_date){case"today":case"this_week":case"this_month":case"this_year":t.upload_date=e.upload_date}switch(e.duration&&"all"!==e.duration&&(t.duration=e.duration),e.publish_state&&"all"!==e.publish_state&&(t.publish_state=e.publish_state),e.sort_by){case"date_added_desc":break;case"date_added_asc":t.ordering="asc";break;case"alphabetically_asc":t.sort_by="title_asc";break;case"alphabetically_desc":t.sort_by="title_desc";break;case"plays_least":t.sort_by="views_asc";break;case"plays_most":t.sort_by="views_desc";break;case"likes_least":t.sort_by="likes_asc";break;case"likes_most":t.sort_by="likes_desc"}e.tag&&"all"!==e.tag&&(t.t=e.tag),"user"===e.sharing_type&&e.sharing_value?t.shared_user=e.sharing_value:"group"===e.sharing_type&&e.sharing_value&&(t.shared_group=e.sharing_value);const a=[];for(let e in t)null!==t[e]&&a.push(e+"="+t[e]);this.setState({filterArgs:a.length?"&"+a.join("&"):""},(function(){if(!this.state.author)return;let e;e=this.state.query?o.ApiUrlContext._currentValue.media+"?author="+this.state.author.id+"&show=shared_with_me&q="+encodeURIComponent(this.state.query)+this.state.filterArgs:o.ApiUrlContext._currentValue.media+"?author="+this.state.author.id+"&show=shared_with_me"+this.state.filterArgs,this.setState({requestUrl:e})}))}onResponseDataLoaded(e){if(e&&e.tags){const t=e.tags.split(",").map((e=>e.trim())).filter((e=>e));this.setState({availableTags:t})}e&&void 0!==e.shared_users&&this.setState({sharedUsers:e.shared_users||[],sharedGroups:e.shared_groups||[]})}handleMediaSelection(e,t){const a=(0,y.inSelectMediaEmbedMode)();this.setState((s=>{const i=new Set;if(a){if(t&&(i.add(e),b.log("Selected media item:",e),window.parent!==window)){const t=`${window.location.origin}/embed?m=${e}`;window.parent.postMessage({type:"videoSelected",embedUrl:t,videoId:e},"*"),b.log("Sent postMessage to parent:",{embedUrl:t,videoId:e})}}else i.clear(),s.selectedMedia.forEach((e=>i.add(e))),t?i.add(e):i.delete(e);return{selectedMedia:i}}))}pageContent(){const e=l.ProfilePageStore.get("author-data"),t=e&&e.username===o.MemberContext._currentValue.username,a=(0,y.inSelectMediaEmbedMode)(),s=this.state.filterArgs&&(this.state.filterArgs.includes("media_type=")||this.state.filterArgs.includes("upload_date=")||this.state.filterArgs.includes("duration=")||this.state.filterArgs.includes("publish_state="));return[this.state.author?i.createElement(c.A,{key:"ProfilePagesHeader",author:this.state.author,type:"shared_with_me",onQueryChange:this.changeRequestQuery,onToggleFiltersClick:this.onToggleFiltersClick,onToggleTagsClick:this.onToggleTagsClick,onToggleSortingClick:this.onToggleSortingClick,onToggleSharingClick:this.onToggleSharingClick,hasActiveFilters:s,hasActiveTags:"all"!==this.state.selectedTag,hasActiveSort:"date_added_desc"!==this.state.selectedSort,hasActiveSharing:!!this.state.selectedSharingValue,hideChannelBanner:(0,y.inEmbeddedApp)()}):null,this.state.author?i.createElement(u.A,{key:"ProfilePagesContent"},i.createElement(h.MediaListWrapper,{title:(0,y.inEmbeddedApp)()?void 0:this.state.title,className:"items-list-ver",style:(0,y.inEmbeddedApp)()?{marginTop:"24px"}:void 0},i.createElement(m.F,{hidden:this.state.hiddenFilters,tags:this.state.availableTags,onFiltersUpdate:this.onFiltersUpdate}),i.createElement(p.L,{hidden:this.state.hiddenTags,tags:this.state.availableTags,onTagSelect:this.onTagSelect}),i.createElement(f.s,{hidden:this.state.hiddenSorting,onSortSelect:this.onSortSelect}),i.createElement(S.W,{hidden:this.state.hiddenSharing,sharedUsers:this.state.sharedUsers,sharedGroups:this.state.sharedGroups,onSharingSelect:this.onSharingSelect,selectedSharingType:this.state.selectedSharingType,selectedSharingValue:this.state.selectedSharingValue}),i.createElement(g.LazyLoadItemListAsync,{key:this.state.requestUrl,requestUrl:this.state.requestUrl,hideAuthor:!0,itemsCountCallback:this.state.requestUrl?this.getCountFunc:null,hideViews:!l.PageStore.get("config-media-item").displayViews,hideDate:!l.PageStore.get("config-media-item").displayPublishDate,canEdit:!1,onResponseDataLoaded:this.onResponseDataLoaded,showSelection:a,hasAnySelection:this.state.selectedMedia.size>0,selectedMedia:this.state.selectedMedia,onMediaSelection:this.handleMediaSelection}),t&&0===this.state.channelMediaCount&&!this.state.query?i.createElement(w,{name:this.state.author.name}):null)):null]}}v.propTypes={title:r().string.isRequired},v.defaultProps={title:"Shared with me"},(0,s.C)("page-profile-shared-with-me",v)},977:function(e,t,a){"use strict";a.d(t,{A:function(){return i}});var s=a(7143);function i(e,t){return s.register(e[t].bind(e)),e}},1702:function(e,t,a){"use strict";a.d(t,{R:function(){return i},e:function(){return n}});var s=a(6403);const i=function(e,t,a){return void 0===e[t]||(i=e[t])===Math.trunc(i)&&i>=0?null:(0,s.m)(["Invalid prop `"+t+"` of type `"+typeof e[t]+"` supplied to `"+(a||"N/A")+"`, expected `positive integer or zero` ("+e[t]+")."]);var i},n=function(e,t,a){return void 0===e[t]||(i=e[t])===Math.trunc(i)&&i>0?null:(0,s.m)(["Invalid prop `"+t+"` of type `"+typeof e[t]+"` supplied to `"+(a||"N/A")+"`, expected `positive integer` ("+e[t]+")."]);var i}},1936:function(e,t,a){"use strict";a.d(t,{PageHeader:function(){return s.z},PageMain:function(){return i.P},PageSidebar:function(){return n.E}});var s=a(1254),i=a(3212),n=a(795);a(1470)},4853:function(e,t,a){"use strict";a.r(t),a.d(t,{useBulkActions:function(){return n}});var s=a(9471),i=a(9200);function n(){const[e,t]=(0,s.useState)(new Set),[a,n]=(0,s.useState)([]),[r,o]=(0,s.useState)(!1),[l,d]=(0,s.useState)(null),[h,c]=(0,s.useState)(""),[u,g]=(0,s.useState)(0),[m,p]=(0,s.useState)(""),[S,f]=(0,s.useState)(!1),[y,_]=(0,s.useState)("success"),[b,w]=(0,s.useState)(!1),[v,T]=(0,s.useState)(null),[C,k]=(0,s.useState)(!1),[A,M]=(0,s.useState)(!1),[P,E]=(0,s.useState)(!1),[F,U]=(0,s.useState)(!1),[O,q]=(0,s.useState)(!1),R=()=>{let e=null;if(document.cookie&&""!==document.cookie){const t=document.cookie.split(";");for(let a=0;a<t.length;a++){const s=t[a].trim();if("csrftoken="===s.substring(0,10)){e=decodeURIComponent(s.substring(10));break}}}return e},I=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success";p(e),f(!0),_(t),setTimeout((()=>{f(!1)}),5e3)},j=()=>{t(new Set)},L=()=>{t(new Set),g((e=>e+1))};return{selectedMedia:e,availableMediaIds:a,listKey:u,showConfirmModal:r,confirmMessage:h,notificationMessage:m,showNotification:S,notificationType:y,showPermissionModal:b,permissionType:v,showPlaylistModal:C,showChangeOwnerModal:A,showPublishStateModal:P,showCategoryModal:F,showTagModal:O,handleMediaSelection:(e,a)=>{t((t=>{const s=new Set(t);return a?s.add(e):s.delete(e),s}))},handleItemsUpdate:e=>{const t=e.map((e=>e.friendly_token||e.uid||e.id));n(t)},handleSelectAll:()=>{t(new Set(a))},handleDeselectAll:()=>{t(new Set)},handleBulkAction:t=>{const a=e.size;0!==a&&("delete-media"===t?(o(!0),d(t),c((0,i.translateString)("You are going to delete")+` ${a} `+(0,i.translateString)("media, are you sure?"))):"enable-comments"===t?(o(!0),d(t),c((0,i.translateString)("You are going to enable comments to")+` ${a} `+(0,i.translateString)("media, are you sure?"))):"disable-comments"===t?(o(!0),d(t),c((0,i.translateString)("You are going to disable comments to")+` ${a} `+(0,i.translateString)("media, are you sure?"))):"delete-comments"===t?(o(!0),d(t),c((0,i.translateString)("You are going to delete all comments from")+` ${a} `+(0,i.translateString)("media, are you sure?"))):"enable-download"===t?(o(!0),d(t),c((0,i.translateString)("You are going to enable download for")+` ${a} `+(0,i.translateString)("media, are you sure?"))):"disable-download"===t?(o(!0),d(t),c((0,i.translateString)("You are going to disable download for")+` ${a} `+(0,i.translateString)("media, are you sure?"))):"copy-media"===t?(o(!0),d(t),c((0,i.translateString)("You are going to copy")+` ${a} `+(0,i.translateString)("media, are you sure?"))):"add-remove-coviewers"===t?(w(!0),T("viewer")):"add-remove-coeditors"===t?(w(!0),T("editor")):"add-remove-coowners"===t?(w(!0),T("owner")):"add-remove-playlist"===t?k(!0):"change-owner"===t?M(!0):"publish-state"===t?E(!0):"add-remove-category"===t?U(!0):"add-remove-tags"===t&&q(!0))},handleConfirmCancel:()=>{o(!1),d(null),c("")},handleConfirmProceed:()=>{const t=l;o(!1),d(null),c(""),"delete-media"===t?(()=>{const t=Array.from(e),a=t.length;fetch("/api/v1/media/user/bulk_actions",{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":R()},body:JSON.stringify({action:"delete_media",media_ids:t})}).then((e=>{if(!e.ok)throw new Error("Failed to delete media");return e.json()})).then((e=>{const t=1===a?(0,i.translateString)("The media was deleted successfully."):(0,i.translateString)("Successfully deleted")+` ${a} `+(0,i.translateString)("media.");I(t),L()})).catch((e=>{I((0,i.translateString)("Failed to delete media. Please try again."),"error"),L()}))})():"enable-comments"===t?(()=>{const t=Array.from(e);fetch("/api/v1/media/user/bulk_actions",{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":R()},body:JSON.stringify({action:"enable_comments",media_ids:t})}).then((e=>{if(!e.ok)throw new Error("Failed to enable comments");return e.json()})).then((e=>{I((0,i.translateString)("Successfully Enabled comments")),j()})).catch((e=>{I((0,i.translateString)("Failed to enable comments."),"error"),j()}))})():"disable-comments"===t?(()=>{const t=Array.from(e);fetch("/api/v1/media/user/bulk_actions",{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":R()},body:JSON.stringify({action:"disable_comments",media_ids:t})}).then((e=>{if(!e.ok)throw new Error("Failed to disable comments");return e.json()})).then((e=>{I((0,i.translateString)("Successfully Disabled comments")),j()})).catch((e=>{I((0,i.translateString)("Failed to disable comments."),"error"),j()}))})():"delete-comments"===t?(()=>{const t=Array.from(e);fetch("/api/v1/media/user/bulk_actions",{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":R()},body:JSON.stringify({action:"delete_comments",media_ids:t})}).then((e=>{if(!e.ok)throw new Error("Failed to delete comments");return e.json()})).then((e=>{I((0,i.translateString)("Successfully deleted comments")),j()})).catch((e=>{I((0,i.translateString)("Failed to delete comments."),"error"),j()}))})():"enable-download"===t?(()=>{const t=Array.from(e);fetch("/api/v1/media/user/bulk_actions",{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":R()},body:JSON.stringify({action:"enable_download",media_ids:t})}).then((e=>{if(!e.ok)throw new Error("Failed to enable download");return e.json()})).then((e=>{I((0,i.translateString)("Successfully Enabled Download")),j()})).catch((e=>{I((0,i.translateString)("Failed to enable download."),"error"),j()}))})():"disable-download"===t?(()=>{const t=Array.from(e);fetch("/api/v1/media/user/bulk_actions",{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":R()},body:JSON.stringify({action:"disable_download",media_ids:t})}).then((e=>{if(!e.ok)throw new Error("Failed to disable download");return e.json()})).then((e=>{I((0,i.translateString)("Successfully Disabled Download")),j()})).catch((e=>{I((0,i.translateString)("Failed to disable download."),"error"),j()}))})():"copy-media"===t&&(()=>{const t=Array.from(e);fetch("/api/v1/media/user/bulk_actions",{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":R()},body:JSON.stringify({action:"copy_media",media_ids:t})}).then((e=>{if(!e.ok)throw new Error("Failed to copy media");return e.json()})).then((e=>{I((0,i.translateString)("Successfully Copied")),L()})).catch((e=>{I((0,i.translateString)("Failed to copy media."),"error"),j()}))})()},handlePermissionModalCancel:()=>{w(!1),T(null)},handlePermissionModalSuccess:e=>{I(e),j(),w(!1),T(null)},handlePermissionModalError:e=>{I(e,"error"),w(!1),T(null)},handlePlaylistModalCancel:()=>{k(!1)},handlePlaylistModalSuccess:e=>{I(e),j(),k(!1)},handlePlaylistModalError:e=>{I(e,"error"),k(!1)},handleChangeOwnerModalCancel:()=>{M(!1)},handleChangeOwnerModalSuccess:e=>{I(e),L(),M(!1)},handleChangeOwnerModalError:e=>{I(e,"error"),M(!1)},handlePublishStateModalCancel:()=>{E(!1)},handlePublishStateModalSuccess:e=>{I(e),L(),E(!1)},handlePublishStateModalError:e=>{I(e,"error"),E(!1)},handleCategoryModalCancel:()=>{U(!1)},handleCategoryModalSuccess:e=>{I(e),j(),U(!1)},handleCategoryModalError:e=>{I(e,"error"),U(!1)},handleTagModalCancel:()=>{q(!1)},handleTagModalSuccess:e=>{I(e),j(),q(!1)},handleTagModalError:e=>{I(e,"error"),q(!1)},getCsrfToken:R,clearSelection:j,clearSelectionAndRefresh:L}}},6403:function(e,t,a){"use strict";a.d(t,{g:function(){return r},m:function(){return n}});var s=a(8004);function i(e,t,a){let s;switch(a){case TypeError:case RangeError:case SyntaxError:case ReferenceError:s=new a(t[0]);break;default:s=new Error(t[0])}return e(s.message,...t.slice(1)),s}function n(e,t){return i(s.z,e,t)}function r(e,t){return i(s.R,e,t)}},7143:function(e,t,a){const s=a(2063).Dispatcher;e.exports=new s},7731:function(e,t,a){"use strict";a.d(t,{LazyLoadItemListAsync:function(){return c}});var s=a(9471),i=a(7460),n=a(5338),r=a(4685),o=a(2495),l=a(4433),d=a(5633);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},h.apply(null,arguments)}function c(e){const[t,a,r,c,u,g,m,p,S,f,y,_,b]=(0,n.useItemListLazyLoad)(e);return(0,s.useEffect)((()=>(c(new d.B(e.pageItems,e.maxItems,e.firstItemRequestUrl,e.requestUrl,g,m,e.onResponseDataLoaded)),i.PageStore.on("window_scroll",p),i.PageStore.on("document_visibility_change",S),p(),()=>{i.PageStore.removeListener("window_scroll",p),i.PageStore.removeListener("document_visibility_change",S),r&&(r.cancelAll(),c(null))})),[]),(0,s.useEffect)((()=>{e.onItemsUpdate&&t.length>0&&e.onItemsUpdate(t)}),[t]),a?t.length?s.createElement("div",{className:u.listOuter},_(),s.createElement("div",{ref:f,className:"items-list-wrap"},s.createElement("div",{ref:y,className:u.list},t.map(((t,a)=>s.createElement(l.c,h({key:a},(0,l.k)(e,t,a),{showSelection:e.showSelection,hasAnySelection:e.hasAnySelection,isSelected:e.selectedMedia&&e.selectedMedia.has(t.friendly_token||t.uid||t.id),onSelectionChange:e.onMediaSelection,mediaId:t.friendly_token||t.uid||t.id})))))),b()):null:s.createElement(o.e,{className:u.listOuter})}c.propTypes={...r.ItemListAsync.propTypes},c.defaultProps={...r.ItemListAsync.defaultProps,pageItems:2}},8004:function(e,t,a){"use strict";a.d(t,{R:function(){return n},z:function(){return r}});var s=a(8974);const i=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return s[t[0]](...t.slice(1))},n=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return i("warn",...t)},r=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return i("error",...t)}}},a={};function s(e){var i=a[e];if(void 0!==i)return i.exports;var n=a[e]={exports:{}};return t[e].call(n.exports,n,n.exports,s),n.exports}s.m=t,e=[],s.O=function(t,a,i,n){if(!a){var r=1/0;for(h=0;h<e.length;h++){a=e[h][0],i=e[h][1],n=e[h][2];for(var o=!0,l=0;l<a.length;l++)(!1&n||r>=n)&&Object.keys(s.O).every((function(e){return s.O[e](a[l])}))?a.splice(l--,1):(o=!1,n<r&&(r=n));if(o){e.splice(h--,1);var d=i();void 0!==d&&(t=d)}}return t}n=n||0;for(var h=e.length;h>0&&e[h-1][2]>n;h--)e[h]=e[h-1];e[h]=[a,i,n]},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var a in t)s.o(t,a)&&!s.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.j=92,function(){var e={92:0};s.O.j=function(t){return 0===e[t]};var t=function(t,a){var i,n,r=a[0],o=a[1],l=a[2],d=0;if(r.some((function(t){return 0!==e[t]}))){for(i in o)s.o(o,i)&&(s.m[i]=o[i]);if(l)var h=l(s)}for(t&&t(a);d<r.length;d++)n=r[d],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return s.O(h)},a=self.webpackChunkmediacms_frontend=self.webpackChunkmediacms_frontend||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))}();var i=s.O(void 0,[276],(function(){return s(512)}));i=s.O(i)}(); |