mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-12-25 12:52:30 -05:00
1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
!function(){var e,t={463:function(e,t,n){"use strict";n.d(t,{c:function(){return s}});var a=n(4571),r=n.n(a);function s(e,t){let n=r()(e,{});return""!==n.origin&&"null"!==n.origin&&n.origin||(n=r()(t+"/"+e.replace(/^\//g,""),{})),n.toString()}},512:function(e,t,n){"use strict";var a=n(2985),r=n(9471),s=n(8713),i=n.n(s),o=n(8790),l=n(7460),u=n(285),d=n(2855),c=n(1177),h=n(239),g=n(7731),m=n(3160),f=n(9294),p=n(4473),S=(n(6371),n(9479));function y(e){return r.createElement(o.LinksConsumer,null,(e=>r.createElement("div",{className:"empty-media empty-channel-media"},r.createElement("div",{className:"welcome-title"},"No shared media"),r.createElement("div",{className:"start-uploading"},"Media that others have shared with you will show up here."))))}class b extends S.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,filterArgs:"",availableTags:[],selectedTag:"all",selectedSort:"date_added_desc"},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.onFiltersUpdate=this.onFiltersUpdate.bind(this),this.onTagSelect=this.onTagSelect.bind(this),this.onSortSelect=this.onSortSelect.bind(this),this.onResponseDataLoaded=this.onResponseDataLoaded.bind(this),l.ProfilePageStore.on("load-author-data",this.authorDataLoad)}componentDidMount(){u.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 n=this.state.title;""===e&&(n=this.props.title),this.setState({requestUrl:t,query:e,title:n})}onToggleFiltersClick(){this.setState({hiddenFilters:!this.state.hiddenFilters,hiddenTags:!0,hiddenSorting:!0})}onToggleTagsClick(){this.setState({hiddenFilters:!0,hiddenTags:!this.state.hiddenTags,hiddenSorting:!0})}onToggleSortingClick(){this.setState({hiddenFilters:!0,hiddenTags:!0,hiddenSorting:!this.state.hiddenSorting})}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})}))}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})}))}onFiltersUpdate(e){const t={media_type:null,upload_date:null,duration:null,publish_state:null,sort_by:null,ordering:null,t: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);const n=[];for(let e in t)null!==t[e]&&n.push(e+"="+t[e]);this.setState({filterArgs:n.length?"&"+n.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})}}pageContent(){const e=l.ProfilePageStore.get("author-data"),t=e&&e.username===o.MemberContext._currentValue.username,n=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?r.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,hasActiveFilters:n,hasActiveTags:"all"!==this.state.selectedTag,hasActiveSort:"date_added_desc"!==this.state.selectedSort}):null,this.state.author?r.createElement(h.A,{key:"ProfilePagesContent"},r.createElement(d.MediaListWrapper,{title:this.state.title,className:"items-list-ver"},r.createElement(m.F,{hidden:this.state.hiddenFilters,tags:this.state.availableTags,onFiltersUpdate:this.onFiltersUpdate}),r.createElement(f.L,{hidden:this.state.hiddenTags,tags:this.state.availableTags,onTagSelect:this.onTagSelect}),r.createElement(p.s,{hidden:this.state.hiddenSorting,onSortSelect:this.onSortSelect}),r.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}),t&&0===this.state.channelMediaCount&&!this.state.query?r.createElement(y,{name:this.state.author.name}):null)):null]}}b.propTypes={title:i().string.isRequired},b.defaultProps={title:"Shared with me"},(0,a.C)("page-profile-shared-with-me",b)},977:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var a=n(7143);function r(e,t){return a.register(e[t].bind(e)),e}},1936:function(e,t,n){"use strict";n.d(t,{PageHeader:function(){return a.z},PageMain:function(){return r.P},PageSidebar:function(){return s.E}});var a=n(1254),r=n(3212),s=n(795);n(1470)},4853:function(e,t,n){"use strict";n.r(t),n.d(t,{useBulkActions:function(){return s}});var a=n(9471),r=n(6371);function s(){const[e,t]=(0,a.useState)(new Set),[n,s]=(0,a.useState)([]),[i,o]=(0,a.useState)(!1),[l,u]=(0,a.useState)(null),[d,c]=(0,a.useState)(""),[h,g]=(0,a.useState)(0),[m,f]=(0,a.useState)(""),[p,S]=(0,a.useState)(!1),[y,b]=(0,a.useState)("success"),[_,w]=(0,a.useState)(!1),[v,C]=(0,a.useState)(null),[k,T]=(0,a.useState)(!1),[P,A]=(0,a.useState)(!1),[I,q]=(0,a.useState)(!1),[M,F]=(0,a.useState)(!1),[E,R]=(0,a.useState)(!1),O=()=>{let e=null;if(document.cookie&&""!==document.cookie){const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const a=t[n].trim();if("csrftoken="===a.substring(0,10)){e=decodeURIComponent(a.substring(10));break}}}return e},U=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success";f(e),S(!0),b(t),setTimeout((()=>{S(!1)}),5e3)},x=()=>{t(new Set)},L=()=>{t(new Set),g((e=>e+1))};return{selectedMedia:e,availableMediaIds:n,listKey:h,showConfirmModal:i,confirmMessage:d,notificationMessage:m,showNotification:p,notificationType:y,showPermissionModal:_,permissionType:v,showPlaylistModal:k,showChangeOwnerModal:P,showPublishStateModal:I,showCategoryModal:M,showTagModal:E,handleMediaSelection:(e,n)=>{t((t=>{const a=new Set(t);return n?a.add(e):a.delete(e),a}))},handleItemsUpdate:e=>{const t=e.map((e=>e.friendly_token||e.uid||e.id));s(t)},handleSelectAll:()=>{t(new Set(n))},handleDeselectAll:()=>{t(new Set)},handleBulkAction:t=>{const n=e.size;0!==n&&("delete-media"===t?(o(!0),u(t),c((0,r.translateString)("You are going to delete")+` ${n} `+(0,r.translateString)("media, are you sure?"))):"enable-comments"===t?(o(!0),u(t),c((0,r.translateString)("You are going to enable comments to")+` ${n} `+(0,r.translateString)("media, are you sure?"))):"disable-comments"===t?(o(!0),u(t),c((0,r.translateString)("You are going to disable comments to")+` ${n} `+(0,r.translateString)("media, are you sure?"))):"enable-download"===t?(o(!0),u(t),c((0,r.translateString)("You are going to enable download for")+` ${n} `+(0,r.translateString)("media, are you sure?"))):"disable-download"===t?(o(!0),u(t),c((0,r.translateString)("You are going to disable download for")+` ${n} `+(0,r.translateString)("media, are you sure?"))):"copy-media"===t?(o(!0),u(t),c((0,r.translateString)("You are going to copy")+` ${n} `+(0,r.translateString)("media, are you sure?"))):"add-remove-coviewers"===t?(w(!0),C("viewer")):"add-remove-coeditors"===t?(w(!0),C("editor")):"add-remove-coowners"===t?(w(!0),C("owner")):"add-remove-playlist"===t?T(!0):"change-owner"===t?A(!0):"publish-state"===t?q(!0):"add-remove-category"===t?F(!0):"add-remove-tags"===t&&R(!0))},handleConfirmCancel:()=>{o(!1),u(null),c("")},handleConfirmProceed:()=>{const t=l;o(!1),u(null),c(""),"delete-media"===t?(()=>{const t=Array.from(e),n=t.length;fetch("/api/v1/media/user/bulk_actions",{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":O()},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===n?(0,r.translateString)("The media was deleted successfully."):(0,r.translateString)("Successfully deleted")+` ${n} `+(0,r.translateString)("media.");U(t),L()})).catch((e=>{U((0,r.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":O()},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=>{U((0,r.translateString)("Successfully Enabled comments")),x()})).catch((e=>{U((0,r.translateString)("Failed to enable comments."),"error"),x()}))})():"disable-comments"===t?(()=>{const t=Array.from(e);fetch("/api/v1/media/user/bulk_actions",{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":O()},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=>{U((0,r.translateString)("Successfully Disabled comments")),x()})).catch((e=>{U((0,r.translateString)("Failed to disable comments."),"error"),x()}))})():"enable-download"===t?(()=>{const t=Array.from(e);fetch("/api/v1/media/user/bulk_actions",{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":O()},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=>{U((0,r.translateString)("Successfully Enabled Download")),x()})).catch((e=>{U((0,r.translateString)("Failed to enable download."),"error"),x()}))})():"disable-download"===t?(()=>{const t=Array.from(e);fetch("/api/v1/media/user/bulk_actions",{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":O()},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=>{U((0,r.translateString)("Successfully Disabled Download")),x()})).catch((e=>{U((0,r.translateString)("Failed to disable download."),"error"),x()}))})():"copy-media"===t&&(()=>{const t=Array.from(e);fetch("/api/v1/media/user/bulk_actions",{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":O()},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=>{U((0,r.translateString)("Successfully Copied")),L()})).catch((e=>{U((0,r.translateString)("Failed to copy media."),"error"),x()}))})()},handlePermissionModalCancel:()=>{w(!1),C(null)},handlePermissionModalSuccess:e=>{U(e),x(),w(!1),C(null)},handlePermissionModalError:e=>{U(e,"error"),w(!1),C(null)},handlePlaylistModalCancel:()=>{T(!1)},handlePlaylistModalSuccess:e=>{U(e),x(),T(!1)},handlePlaylistModalError:e=>{U(e,"error"),T(!1)},handleChangeOwnerModalCancel:()=>{A(!1)},handleChangeOwnerModalSuccess:e=>{U(e),L(),A(!1)},handleChangeOwnerModalError:e=>{U(e,"error"),A(!1)},handlePublishStateModalCancel:()=>{q(!1)},handlePublishStateModalSuccess:e=>{U(e),L(),q(!1)},handlePublishStateModalError:e=>{U(e,"error"),q(!1)},handleCategoryModalCancel:()=>{F(!1)},handleCategoryModalSuccess:e=>{U(e),x(),F(!1)},handleCategoryModalError:e=>{U(e,"error"),F(!1)},handleTagModalCancel:()=>{R(!1)},handleTagModalSuccess:e=>{U(e),x(),R(!1)},handleTagModalError:e=>{U(e,"error"),R(!1)},getCsrfToken:O,clearSelection:x,clearSelectionAndRefresh:L}}},5633:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var a=n(7460),r=n(6371);function s(e,t,n,s,i,o,l){const u={maxItems:t||255,pageItems:e?Math.min(t,e):1},d={totalItems:0,totalPages:0,nextRequestUrl:(0,r.formatInnerLink)(s,a.PageStore.get("config-site").url)},c={pageItems:0,requestResponse:!1};let h=null;const g=[],m=[];function f(e){let t,n;if(e=isNaN(e)?u.pageItems:e,c.pageItems&&c.pageItems<=m.length?(t=c.pageItems,n=!1,c.pageItems=0):(t=Math.min(e,m.length),n=e>m.length&&!!d.nextRequestUrl,c.pageItems=n?e-m.length:0),t){let e=0;for(;e<t;)g.push(m.shift()),e+=1;"function"==typeof o&&o(g)}n&&p()}function p(e){c.requestResponse=!0,(0,r.getRequest)(d.nextRequestUrl,!1,(function(t){if(c.requestResponse=!1,!t||!t.data)return;let n=t.data,a=void 0!==n.results?n.results:n,r=0;for(;r<a.length&&u.maxItems>m.length;)null!==h&&h===a[r].url||m.push(a[r]),r+=1;d.nextRequestUrl=n.next&&u.maxItems>m.length?n.next:null,e&&(d.totalItems=n.count?n.count:m.length,d.totalItems=Math.min(u.maxItems,d.totalItems),d.totalPages=Math.ceil(d.totalItems/u.pageItems),"function"==typeof i&&i(d.totalItems),"function"==typeof l&&l(n)),f()})),d.nextRequestUrl=null}return null!=n?(0,r.getRequest)((0,r.formatInnerLink)(n,a.PageStore.get("config-site").url),!1,(function(e){if(e&&e.data){let t=e.data,n=void 0!==t.results?t.results:t;n.length&&(h=n[0].url,g.push(n[0]))}p(!0)})):p(!0),{loadItems:function(e){!c.requestResponse&&g.length<d.totalItems&&f(e)},totalPages:function(){return d.totalPages},loadedAllItems:function(){return g.length===d.totalItems},cancelAll:function(){i=null,o=null}}}},6371:function(e,t,n){"use strict";n.r(t),n.d(t,{BrowserEvents:function(){return a.GT},PositiveInteger:function(){return m},PositiveIntegerOrZero:function(){return g},addClassname:function(){return a.zc},cancelAnimationFrame:function(){return a.uU},csrfToken:function(){return u.G},deleteRequest:function(){return S.Fb},error:function(){return c.z},exportStore:function(){return s.A},formatInnerLink:function(){return i.c},formatManagementTableDate:function(){return o.n},formatViewsNumber:function(){return l.A},getRequest:function(){return S.iq},greaterCommonDivision:function(){return h.p7},hasClassname:function(){return a.CX},imageExtension:function(){return d.t},isGt:function(){return h.en},isInteger:function(){return h.Fq},isNumber:function(){return h.Et},isPositive:function(){return h.ep},isPositiveInteger:function(){return h.q6},isPositiveIntegerOrZero:function(){return h.tR},isPositiveNumber:function(){return h.F5},isZero:function(){return h.be},logErrorAndReturnError:function(){return r.m},logWarningAndReturnError:function(){return r.g},postRequest:function(){return S.MB},publishedOnDate:function(){return f.A},putRequest:function(){return S.zi},quickSort:function(){return p.g},removeClassname:function(){return a.qk},replaceString:function(){return b.u},requestAnimationFrame:function(){return a.xi},supportsSvgAsImg:function(){return a.kN},translateString:function(){return y.g},warn:function(){return c.R}});var a=n(1134),r=n(6403),s=n(977),i=n(463),o=n(8482),l=n(4632),u=n(5393),d=n(1554),c=n(8004),h=n(8354);const g=function(e,t,n){return void 0===e[t]||(0,h.tR)(e[t])?null:(0,r.m)(["Invalid prop `"+t+"` of type `"+typeof e[t]+"` supplied to `"+(n||"N/A")+"`, expected `positive integer or zero` ("+e[t]+")."])},m=function(e,t,n){return void 0===e[t]||(0,h.q6)(e[t])?null:(0,r.m)(["Invalid prop `"+t+"` of type `"+typeof e[t]+"` supplied to `"+(n||"N/A")+"`, expected `positive integer` ("+e[t]+")."])};var f=n(7673),p=n(1453),S=n(9659),y=n(4036),b=n(4470)},6403:function(e,t,n){"use strict";n.d(t,{g:function(){return i},m:function(){return s}});var a=n(8004);function r(e,t,n){let a;switch(n){case TypeError:case RangeError:case SyntaxError:case ReferenceError:a=new n(t[0]);break;default:a=new Error(t[0])}return e(a.message,...t.slice(1)),a}function s(e,t){return r(a.z,e,t)}function i(e,t){return r(a.R,e,t)}},7143:function(e,t,n){const a=n(2063).Dispatcher;e.exports=new a},7731:function(e,t,n){"use strict";n.d(t,{LazyLoadItemListAsync:function(){return c}});var a=n(9471),r=n(7460),s=n(5338),i=n(4685),o=n(2495),l=n(4433),u=n(5633);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},d.apply(null,arguments)}function c(e){const[t,n,i,c,h,g,m,f,p,S,y,b,_]=(0,s.useItemListLazyLoad)(e);return(0,a.useEffect)((()=>(c(new u.B(e.pageItems,e.maxItems,e.firstItemRequestUrl,e.requestUrl,g,m,e.onResponseDataLoaded)),r.PageStore.on("window_scroll",f),r.PageStore.on("document_visibility_change",p),f(),()=>{r.PageStore.removeListener("window_scroll",f),r.PageStore.removeListener("document_visibility_change",p),i&&(i.cancelAll(),c(null))})),[]),(0,a.useEffect)((()=>{e.onItemsUpdate&&t.length>0&&e.onItemsUpdate(t)}),[t]),n?t.length?a.createElement("div",{className:h.listOuter},b(),a.createElement("div",{ref:S,className:"items-list-wrap"},a.createElement("div",{ref:y,className:h.list},t.map(((t,n)=>a.createElement(l.c,d({key:n},(0,l.k)(e,t,n),{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})))))),_()):null:a.createElement(o.e,{className:h.listOuter})}c.propTypes={...i.ItemListAsync.propTypes},c.defaultProps={...i.ItemListAsync.defaultProps,pageItems:2}},8004:function(e,t,n){"use strict";n.d(t,{R:function(){return s},z:function(){return i}});var a=n(8974);const r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a[t[0]](...t.slice(1))},s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r("warn",...t)},i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r("error",...t)}}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var s=n[e]={exports:{}};return t[e].call(s.exports,s,s.exports,a),s.exports}a.m=t,e=[],a.O=function(t,n,r,s){if(!n){var i=1/0;for(d=0;d<e.length;d++){n=e[d][0],r=e[d][1],s=e[d][2];for(var o=!0,l=0;l<n.length;l++)(!1&s||i>=s)&&Object.keys(a.O).every((function(e){return a.O[e](n[l])}))?n.splice(l--,1):(o=!1,s<i&&(i=s));if(o){e.splice(d--,1);var u=r();void 0!==u&&(t=u)}}return t}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[n,r,s]},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.j=92,function(){var e={92:0};a.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,s,i=n[0],o=n[1],l=n[2],u=0;if(i.some((function(t){return 0!==e[t]}))){for(r in o)a.o(o,r)&&(a.m[r]=o[r]);if(l)var d=l(a)}for(t&&t(n);u<i.length;u++)s=i[u],a.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return a.O(d)},n=self.webpackChunkmediacms_frontend=self.webpackChunkmediacms_frontend||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var r=a.O(void 0,[276],(function(){return a(512)}));r=a.O(r)}(); |