Mini Kabibi Habibi
(()=>{var e={591519:(e,t,n)=>{"use strict";var o=n(322790);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function s(e,t){for(var n,o="",i=0,r=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(r===a-1||1===s);else if(r!==a-1&&2===s){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){var c=o.lastIndexOf("/");if(c!==o.length-1){-1===c?(o="",i=0):i=(o=o.slice(0,c)).length-1-o.lastIndexOf("/"),r=a,s=0;continue}}else if(2===o.length||1===o.length){o="",i=0,r=a,s=0;continue}t&&(o.length>0?o+="/..":o="..",i=2)}else o.length>0?o+="/"+e.slice(r+1,a):o=e.slice(r+1,a),i=a-r-1;r=a,s=0}else 46===n&&-1!==s?++s:s=-1}return o}var a={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var a;i>=0?a=arguments[i]:(void 0===e&&(e=o.cwd()),a=e),r(a),0!==a.length&&(t=a+"/"+t,n=47===a.charCodeAt(0))}return t=s(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(r(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=s(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return r(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];r(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":a.normalize(e)},relative:function(e,t){if(r(e),r(t),e===t)return"";if((e=a.resolve(e))===(t=a.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var o=e.length,i=o-n,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var c=t.length-s,l=i<c?i:c,d=-1,u=0;u<=l;++u){if(u===l){if(c>l){if(47===t.charCodeAt(s+u))return t.slice(s+u+1);if(0===u)return t.slice(s+u)}else i>l&&(47===e.charCodeAt(n+u)?d=u:0===u&&(d=0));break}var p=e.charCodeAt(n+u);if(p!==t.charCodeAt(s+u))break;47===p&&(d=u)}var h="";for(u=n+d+1;u<=o;++u)u!==o&&47!==e.charCodeAt(u)||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(s+d):(s+=d,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(r(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,o=-1,i=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!i){o=s;break}}else i=!1;return-1===o?n?"/":".":n&&1===o?"//":e.slice(0,o)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');r(e);var n,o=0,i=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var l=e.charCodeAt(n);if(47===l){if(!s){o=n+1;break}}else-1===c&&(s=!1,c=n+1),a>=0&&(l===t.charCodeAt(a)?-1==--a&&(i=n):(a=-1,i=c))}return o===i?i=c:-1===i&&(i=e.length),e.slice(o,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){o=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(o,i)},extname:function(e){r(e);for(var t=-1,n=0,o=-1,i=!0,s=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===o&&(i=!1,o=a+1),46===c?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!i){n=a+1;break}}return-1===t||-1===o||0===s||1===s&&t===o-1&&t===n+1?"":e.slice(t,o)},format:function(e){if(null===e||"object"!==i(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+i(e));return function(e,t){var n=t.dir||t.root,o=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+o:n+"/"+o:o}(0,e)},parse:function(e){r(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,o=e.charCodeAt(0),i=47===o;i?(t.root="/",n=1):n=0;for(var s=-1,a=0,c=-1,l=!0,d=e.length-1,u=0;d>=n;--d)if(47!==(o=e.charCodeAt(d)))-1===c&&(l=!1,c=d+1),46===o?-1===s?s=d:1!==u&&(u=1):-1!==s&&(u=-1);else if(!l){a=d+1;break}return-1===s||-1===c||0===u||1===u&&s===c-1&&s===a+1?-1!==c&&(t.base=t.name=0===a&&i?e.slice(1,c):e.slice(a,c)):(0===a&&i?(t.name=e.slice(1,s),t.base=e.slice(1,c)):(t.name=e.slice(a,s),t.base=e.slice(a,c)),t.ext=e.slice(s,c)),a>0?t.dir=e.slice(0,a-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,e.exports=a},322790:e=>{var t,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(e){n=r}}();var a,c=[],l=!1,d=-1;function u(){l&&a&&(l=!1,a.length?c=a.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=s(u);l=!0;for(var t=c.length;t;){for(a=c,c=[];++d<t;)a&&a[d].run();d=-1,t=c.length}a=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=f,o.addListener=f,o.once=f,o.off=f,o.removeListener=f,o.removeAllListeners=f,o.emit=f,o.prependListener=f,o.prependOnceListener=f,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},51301:(e,t,n)=>{const o=n(935557),{components:i}=n(319763);e.exports={components:{oneUpView:o.OneUpView,listView:o.ListView,teamView:o.TeamView,personalView:o.PersonalView},name:"Libs",initialize:o.initialize,id:i.Libs.id}},240231:(e,t,n)=>{"use strict";n.d(t,{j:()=>d});var o=n(106860),i=n(823595),r=n(117386),s=n(363823),a=n(2026);const c="CCDAssetsLibs:",l={light:{panelBackgroundColor:{color:{red:255,green:255,blue:255,alpha:1}}},darkest:{panelBackgroundColor:{color:{red:17,green:17,blue:17,alpha:1}}}},d=e=>{const{context:t}=e;return r.C.init(t),(({context:e,resourcePath:t,languageCode:n})=>{var d,u,p,h;d=void 0,u=void 0,h=function*(){try{a.i.init(e),(yield a.i.loadCEPPanel())||(console.log(`${c} falling back to load bundled panel`),yield a.i.loadBundledPanel(t));const d=e.get(i.cR.Vulcan),u=e.get(i.cR.Container),p=e.get(i.cR.SyncStore);if(p){const e=window.CCLibraries;p.libraries.sync=e.sync.bind(e),p.libraries.isProcessRunning=e.isProcessRunning.bind(e),p.libraries.isSyncingEnabled=e.isSyncingEnabled.bind(e),p.libraries.setSyncingEnabled=e.setSyncingEnabled.bind(e)}const h=u.currentTheme===i.rU.DARKEST?l.darkest:l.light;yield window.CCLibraries.init(e,d,h,n),console.debug(`${c} panel initialized successfully`),(0,o.reaction)((()=>u.currentTheme),(e=>{const t=e===i.rU.DARKEST?l.darkest:l.light;window.CCLibraries.updateTheme(t),console.log(`${c} Updating Libs theme to ${e}`)})),(0,s.K)("success"),r.C.setDesignLibraryInitComplete(!0)}catch(e){r.C.setInitializationFailed(!0),r.C.setDesignLibraryInitComplete(!1),(0,s.K)("error"),console.error(`${c} Error while loading libraries: ${e}`)}},new((p=void 0)||(p=Promise))((function(e,t){function n(e){try{i(h.next(e))}catch(e){t(e)}}function o(e){try{i(h.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof p?i:new p((function(e){e(i)}))).then(n,o)}i((h=h.apply(d,u||[])).next())}))})(e),r.C}},528965:(e,t,n)=>{"use strict";n.d(t,{B:()=>c});var o=n(123469),i=n.n(o),r=n(283275),s=n(823595),a=n(117386);let c=class extends o.Component{constructor(){super(...arguments),this.hideContextMenu=()=>{a.C.context.hideContextMenu()}}componentDidMount(){const e=document.querySelector("library-list-view");e.shadowRoot&&e.shadowRoot.addEventListener("scroll",this.hideContextMenu,!0)}componentWillUnmount(){const e=document.querySelector("library-list-view");e.shadowRoot&&e.shadowRoot.removeEventListener("scroll",this.hideContextMenu,!0)}render(){const{match:e}=this.props;if(!e)return console.error("CCDAssetsLibs: ListViewDeprecated: render, no route matched"),null;const t=e.url?e.url.split(s.Z5.AssetsRoot)[1]:"";return i().createElement("library-list-view",{route:t})}};c=function(e,t,n,o){var i,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,n,s):i(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}([r.withRouter],c)},935557:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ListView:()=>i.B,OneUpView:()=>s.d,PersonalView:()=>a.O,TeamView:()=>r.h,initialize:()=>d});var o=n(240231),i=n(528965),r=n(89848),s=n(419097),a=n(363681),c=n(823595),l=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function s(e){try{c(o.next(e))}catch(e){r(e)}}function a(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))};function d(e,t){return l(this,void 0,void 0,(function*(){try{const{locale:n}=e.get(c.cR.Locale),i={context:e.get(c.cR.LibsContext),resourcePath:t,languageCode:n};return(0,o.j)(i)}catch(e){console.error(`AssetsFiles: Error while initializing AssetsFiles component: ${e}`)}return Promise.reject()}))}},419097:(e,t,n)=>{"use strict";n.d(t,{d:()=>c});var o=n(123469),i=n.n(o),r=n(283275),s=n(823595),a=n(117386);let c=class extends o.Component{constructor(){super(...arguments),this.hideContextMenu=()=>{a.C.context.hideContextMenu()}}componentDidMount(){const e=document.querySelector("library-contents-view");e.shadowRoot&&e.shadowRoot.addEventListener("scroll",this.hideContextMenu,!0)}componentWillUnmount(){const e=document.querySelector("library-contents-view");e.shadowRoot&&e.shadowRoot.removeEventListener("scroll",this.hideContextMenu,!0)}render(){const{match:e}=this.props;if(!e)throw new Error("CCDAssetsLibs: OneUpView: render, no route matched");const t=e.url?e.url.split(s.Z5.AssetsRoot)[1]:"";return i().createElement("library-contents-view",{route:t})}};c=function(e,t,n,o){var i,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,n,s):i(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}([r.withRouter],c)},2026:(e,t,n)=>{"use strict";n.d(t,{i:()=>h});var o=n(823595),i=n(202807),r=n(363823),s=n(187893),a=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function s(e){try{c(o.next(e))}catch(e){r(e)}}function a(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))};const c="CCDAssetsLibs: PanelManager",l=s.Z.compareVersions,d="error",u="info",p=n(591519),h=new class{constructor(){this.cepPanels=new Map,this.libsPanelFESData=[],this.loadLatestPanelFromCEP=!1,this.getCEPExtPath=()=>p.join(this.fileSystem.getTokenPath("PATH_TYPE_CEP"),"extensions")}init(e){this.context=e,this.fileSystem=this.context.get(o.cR.FileSystem),this.featureFlagsStore=this.context.get(o.cR.FeatureFlags),this.getLibsPanelFESData()}getLibsPanelFESData(){try{const e=this.featureFlagsStore.getFESData(o.Gj.LIBS_PANEL_LOAD_FLAG_PREFIX,!0);if(!e)return void console.warn(`${c}: could not fetch '${o.Gj.LIBS_PANEL_LOAD_FLAG_PREFIX}' flags`);const{data:t}=e;this.libsPanelFESData=t;const n=this.featureFlagsStore.getFESData(o.Gj.LIBS_PANEL_LOAD_LATEST);this.loadLatestPanelFromCEP=n&&n.state}catch(e){console.error(`${c}: Error in panel loading related feature flag: ${e}`)}}fetchCEPPanels(){return a(this,void 0,void 0,(function*(){if(this.cepPanels.size>0)console.log(`${c}: CEP panels already fetched. Hence skipping.`);else try{console.debug(`${c}: fetching candidate libs panel from CEP`);const{appVersion:e}=window.appContext,t=this.context.get(o.cR.ExtensionManager),n=yield t.loadExtension("com.adobe.ccd.extension.fs"),i=this.getCEPExtPath(),r=(yield n.readdir(i)).filter((e=>e.startsWith("CC_LIBRARIES_PANEL_EXTENSION_"))),s=new Map;for(let t=0;t<r.length;t+=1){const o=p.join(i,r[t],"ccd_manifest.json");try{const i=yield n.readFile(o,{encoding:"utf8"}),a=JSON.parse(i);"com.adobe.cclibrariespanel"!==a.id?console.log(`${c}: Skipping incompatible panel ${r[t]}. Incompatible id: ${a.id}`):l(e,a.minCCDVersion)<0?console.log(`${c}: Skipping incompatible panel ${r[t]} CCD version incompatible. CCD Version:${e} minCCDVersion:${a.minCCDVersion}`):s.set(r[t],a)}catch(e){console.log(`${c}: Skipping incompatible panel ${r[t]} could not read ccd_manifest.json`)}}if(console.log(`${c}: Total CCD compatible CEP panels: ${s.size}`),s.size>0){const e=[...s.keys()];e.sort(((e,t)=>l(s.get(t).version,s.get(e).version))),e.forEach((e=>{this.cepPanels.set(e,s.get(e))})),console.debug(`${c}: Sorted candidate panels from CEP,`,this.cepPanels)}}catch(e){console.error(`${c}: Error while fetching libs panel from CEP: ${e}`)}}))}getCEPPanel(){if(!this.cepPanels||!this.cepPanels.size)return"";const{platform:e,appVersion:t}=window.appContext;if(this.loadLatestPanelFromCEP){for(const[e,n]of this.cepPanels)if(l(t,n.minCCDVersion)>=0)return console.log(`${c}: Latest compatible Panel: ${e}`),e;return console.log(`${c}: No panel compatible with CCD ${t} found`),""}try{for(const[n,o]of this.cepPanels){const i=o.version;for(const o of this.libsPanelFESData){const r=o[e]?o[e]:o.xplat;if(l(t,r.minCCDVersion)>=0&&0===l(i,r.libsPanelVersion))return console.debug(`${c}: FF matching Panel ${n} found`),n}}}catch(e){console.error(`${c}: Failed to finalize CEP panel version: '${e}'`)}return""}loadBundledPanel(e){return a(this,void 0,void 0,(function*(){const t="designLibraries";window.ccLibrariesPublicPath=`${e}/${t}/`,yield(0,i.fs)(`${e}/${t}/main.js`),console.log(`${c}: Loaded libs panel from bundled`),(0,r._)(u,"bundled_panel")}))}loadCEPPanel(){return a(this,void 0,void 0,(function*(){const e="CEP_panel";try{yield this.fetchCEPPanels();const t=this.getCEPPanel();if(t){const n=this.getCEPExtPath(),o=this.cepPanels.get(t).resources.js;return window.ccLibrariesPublicPath=`${n}/${t}/`,yield(0,i.fs)(`${n}/${t}/${o}`),console.log(`${c}: Loaded libs panel from CEP extensions: ${t}`),(0,r._)(u,e,t),!0}(0,r._)(d,e,"CEP_panel_not_found"),console.log(`${c}: Could not find any CEP panel`)}catch(t){console.error(`${c}: Could not load libs panel from CEP extensions: '${t}'`),(0,r._)(d,e,"exception_occured")}return!1}))}}},363681:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var o=n(123469),i=n.n(o),r=n(117386);class s extends o.Component{constructor(){super(...arguments),this.hideContextMenu=()=>{r.C.context.hideContextMenu()}}componentDidMount(){const e=document.querySelector("library-personal-view");e.shadowRoot&&e.shadowRoot.addEventListener("scroll",this.hideContextMenu,!0)}componentWillUnmount(){const e=document.querySelector("library-personal-view");e.shadowRoot&&e.shadowRoot.removeEventListener("scroll",this.hideContextMenu,!0)}render(){return i().createElement("library-personal-view",null)}}},117386:(e,t,n)=>{"use strict";n.d(t,{C:()=>d});var o=n(106860),i=n(823595),r=function(e,t,n,o){var i,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,n,s):i(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},s=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function s(e){try{c(o.next(e))}catch(e){r(e)}}function a(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))};const c="CCDAssetsLibs: AssetsLibsStore";class l{constructor(){this.context=null,this.isInitializationFailed=!1,this.designLibraryInitComplete=!1,this.handleRouteActions=e=>a(this,void 0,void 0,(function*(){e.startsWith(i.Z5.Libraries)&&(yield(0,o.when)((()=>this.designLibraryInitComplete)),e===i.Z5.LibrariesBrowseMore&&window.CCLibraries.openBrowseLibs(),e===i.Z5.LibrariesPublicLibs&&window.CCLibraries.openPublicLibs())})),this.actionHandler=e=>{e&&e.id&&setTimeout((()=>this.handleRouteActions(e.id)),0)},this.init=e=>{console.info(`${c} init`),this.context=e,e.onStoreRegister(i.cR.ActionsManager,(()=>{const t=e.get(i.cR.ActionsManager);t.registerActionHandler(i.Z5.LibrariesBrowseMore,this.actionHandler),t.registerActionHandler(i.Z5.LibrariesPublicLibs,this.actionHandler)})),e.registerStore(i.cR.AssetsLibs,this)},this.onBackClick=()=>{const e=this.context.get(i.cR.Router);if(!e)return;const{history:t}=e,{index:n,entries:o,location:r}=t,{pathname:s,search:a}=r,l=`${s}${a}`;let d=n-1;for(;d>0;){const{pathname:e,search:t}=o[d];if(`${e}${t}`!==l)break;d-=1}if(0===d||n-d<0)return console.error(`${c} onBackClick: indices: ${d} : ${n}.`),void e.push(i.Z5.Libraries);e.go(-1*(n-d))},this.createNewLibrary=e=>{window.CCLibraries.createNewLibrary(e)},this.browseAllLibraries=()=>{window.CCLibraries.openBrowseLibs()},this.getLibraryIdByUrn=e=>a(this,void 0,void 0,(function*(){if(void 0!==window.CCLibraries)try{const t=yield window.CCLibraries.asyncGetLibraryByAssetId(e);return t?t.id:(console.error(`${c} Unable to get Library ID for urn: ${e}`),"")}catch(e){console.error(`${c} Error from library process`)}return""}))}get initializationFailed(){return this.isInitializationFailed}setInitializationFailed(e){this.isInitializationFailed=e}setDesignLibraryInitComplete(e){this.designLibraryInitComplete=e}}r([o.observable,s("design:type",Object)],l.prototype,"isInitializationFailed",void 0),r([o.observable,s("design:type",Object)],l.prototype,"designLibraryInitComplete",void 0),r([o.action,s("design:type",Function),s("design:paramtypes",[Boolean]),s("design:returntype",void 0)],l.prototype,"setInitializationFailed",null),r([o.action,s("design:type",Function),s("design:paramtypes",[Boolean]),s("design:returntype",void 0)],l.prototype,"setDesignLibraryInitComplete",null);const d=new l},89848:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var o=n(123469),i=n.n(o),r=n(117386);class s extends o.Component{constructor(){super(...arguments),this.hideContextMenu=()=>{r.C.context.hideContextMenu()}}componentDidMount(){const e=document.querySelector("library-teams-view");e.shadowRoot&&e.shadowRoot.addEventListener("scroll",this.hideContextMenu,!0)}componentWillUnmount(){const e=document.querySelector("library-teams-view");e.shadowRoot&&e.shadowRoot.removeEventListener("scroll",this.hideContextMenu,!0)}render(){const{teamNames:e,teamId:t,filterBy:n,sortBy:o,sortOrder:r,viewType:s,theme:a}=this.props;return i().createElement("div",{style:{flexGrow:1,position:"relative"}},i().createElement("library-teams-view",{teamnames:e,teamid:t,filterby:n,sortby:o,sortorder:r,viewtype:s,theme:a}))}}},363823:(e,t,n)=>{"use strict";n.d(t,{K:()=>i,_:()=>r});var o=n(117386);function i(e){o.C.context.logEvent({"event.workflow":"Debug","event.subcategory":"CC Library","event.type":e,"event.subtype":"log","event.error_code":"ACCC_LIBRARIES_LOAD_STATUS"}),o.C.context.logETSEvent("ACCC_LIBRARIES_LOAD_STATUS","",{Status:e})}function r(e,t,n=""){o.C.context.logEvent({"event.workflow":"Debug","event.subcategory":"CC Library","event.type":e,"event.subtype":t,"event.value":n})}},202807:(e,t,n)=>{"use strict";function o(e,t=!0,n={}){const o=document.createElement("script");return o.src=e,Object.entries(n).forEach((e=>{o[e.key]=e.value})),new Promise(((n,i)=>{o.onload=n,o.onerror=()=>{const o=`CCDAssets: Script at path ${e} failed to load`;console.debug(o),t?i(o):n()},document.getElementsByTagName("body")[0].appendChild(o)}))}n.d(t,{fs:()=>o}),n(315930)},319763:e=>{e.exports={components:{Spaces:{id:"Spaces",output:"Spaces",globalReference:"CCDSpaces",loadCSS:!0},Libs:{id:"CCLibs",output:"CCLibs",globalReference:"CCDCCLibs"},Files:{id:"CloudDocs",output:"CloudDocs",globalReference:"CCDCloudDocs",loadCSS:!0},ShareSheet:{id:"ShareSheet",output:"ShareSheet",globalReference:"CCDShareSheet",loadCSS:!0},OneUp:{id:"OneUp",output:"OneUp",globalReference:"CCDOneUp",loadCSS:!0},UAB:{id:"UAB",output:"UAB",globalReference:"UniversalAssetBrowser",loadCSS:!1},Lightroom:{id:"Lightroom",output:"Lightroom",globalReference:"CCDLightroom",loadCSS:!0},Stock:{id:"StockAssets",output:"StockAssets",globalReference:"CCDStockAssets",loadCSS:!0}}}},823595:(e,t,n)=>{"use strict";n.d(t,{Gj:()=>l,Z5:()=>i,cR:()=>r,rU:()=>a,rn:()=>c});const{components:o}=n(319763);var i,r,s,a;!function(e){e.Libraries="/assets/libraries",e.LibrariesDefault="/assets/libraries/default",e.LibrariesBrowseMore="/assets/libraries/teamLibs",e.LibrariesPublicLibs="/assets/libraries/publicLibs",e.LibrariesSharesheet="/assets/libraries/sharesheet/:shareAction/:libId",e.LibrariesElement="/assets/libraries/:libId/elements/:elementId",e.LibrariesLegacyOneUp="/assets/libraries/:libId",e.LibrariesOneUp="/assets/libraries/id/:libId",e.Files="/assets/files",e.Projects="/assets/files/projects",e.ProjectContents="/assets/files/projects/:projectId",e.Spaces="/assets/spaces/:urn?",e.SpacesRoot="/assets/spaces",e.AssetsRoot="/assets",e.FilesOneUp="/assets/files/oneUp/id/:urn",e.FilesOneUpOnboarding="/assets/files/oneUp",e.SpacesOneUp="/assets/spaces/oneUp/id/:urn",e.Deleted="/assets/files/cloud-content-archive",e.SharedWithYou="/assets/files/shared-with-you",e.YourDocuments="/assets/files/cloud-content",e.LightRoomView="/assets/lightroom",e.Stock="/assets/stock",e.StockOneup="/assets/stock/oneUp"}(i||(i={})),function(e){e.ActionsManager="actionsManager",e.Analytics="analyticsStore",e.AppActionsManager="appActionsManager",e.Apps="appsStore",e.AppMenuManager="appMenuManager",e.Assets="assetsStore",e.AssetsFiles="assetsFiles",e.AssetsFilesPreview="assetsFilesPreviewStore",e.AssetsLibs="assetsLibsStore",e.AssetsSpaces="assetsSpacesStore",e.AssetsTranslation="AssetsTranslationUtilStore",e.CCUCore="CCUCore",e.ComponentLoaderACPC="componentLoaderACPC",e.Container="containerStore",e.DeeplinkHandler="deepLinkHandler",e.Dialogs="dialogManager",e.Events="events",e.ExtensionManager="extensionManager",e.ExternalGateway="externalGateway",e.ExpressStore="expressStore",e.FeatureFlags="featureFlags",e.FilesIMSStore="filesIMSStore",e.FilePicker="filePicker",e.Files="filesStore",e.FileSystem="fileSystem",e.FilesContext="FilesContextStore",e.FilteredAppsStore="filteredAppsStore",e.Identity="identityStore",e.LibsContext="LibsContextStore",e.LightroomContext="LightroomContextStore",e.LightroomGlobalStore="lightroomGlobalStore",e.Locale="localeStore",e.Network="networkState",e.NotificationStore="notificationStore",e.Onboarding="onboardingTourStore",e.OpenCore="openCoreStore",e.OpenCoreApp="openCoreAppStore",e.OpenCoreFFHelper="openCoreFFHelper",e.Preferences="preferencesStore",e.PreferenceManager="preferenceManager",e.Router="ccdRouter",e.SpacesContext="SpacesContextStore",e.SpacesOpenStore="spacesOpenStore",e.StockContext="StockContextStore",e.SyncStore="syncStore",e.Toasts="toastManager",e.UABContext="uabContext",e.Vulcan="vulcanStore",e.WebArticle="webArticle"}(r||(r={})),function(e){e.DELETED="cloud-content-archive",e.SHARED_WITH_YOU="shared-with-you",e.YOUR_DOCUMENTS="cloud-content"}(s||(s={})),function(e){e.LIGHTEST="lightest",e.LIGHT="light",e.DARK="dark",e.DARKEST="darkest"}(a||(a={}));const c={LIBRARIES:"application/vnd.adobe.library+dcx",AERO:"application/vnd.adobe.real+dcx",APPLE_NUMBERS:"application/vnd.apple.numbers",AURA:"application/vnd.adobe.hz.aura+dcx",CANVAS:"application/vnd.adobe.hz.canvas+dcx",EXPRESS:"application/vnd.adobe.hz.express+dcx",EXPRESS_PAGE:"application/vnd.adobe.hztemp.page+dcx",EXPRESS_DRAWING:"document/vnd.adobe.expressdrawing+dcx",EXPRESS_WEBPAGE:"application/vnd.adobe.hztemp.page+dcx",ILLUSTRATOR_CLOUD_DOCUMENT:"document/vnd.adobe.illustrator+dcx",FIREFLY_STYLE_KIT_MIMETYPE:"application/vnd.adobe.firefly-template+dcx",FIREFLY_RECIPE_MIMETYPE:"application/vnd.adobe.firefly-recipe+dcx",FONT_FILE:"application/x-font-type1",FR_CLOUD_DOCUMENT:"application/vnd.adobe.gemini+dcx",PS_CLOUD_DOCUMENT:"document/vnd.adobe.psdc+dcx",PS_CLOUD_DOCUMENT_DEP:"document/vnd.adobe.cpsd+dcx",PSDL_CLOUD_DOCUMENT:"document/vnd.adobe.cpsd.live+dcx",XD_CLOUD_DOCUMENT:"application/vnd.adobe.xd.cloudproject+dcx",XD_LOCAL:"application/vnd.adobe.sparkler.project+dcxucf",MIGRATED_GEMINI:"document/vnd.adobe.gemini+dcx",PS_LOCAL:"application/vnd.adobe.photoshop",ILLUSTRATOR_LOCAL:"application/vnd.adobe.illustrator",FOLDER:"application/vnd.adobe.directory+json",SPACE:"project",LIBRARY:"library",PDF:"application/pdf",PSX_MIX:"document/vnd.adobe.psxc.mix+dcx",PSX_EDIT:"document/vnd.adobe.psxc.edit+dcx",PSX_FIX:"document/vnd.adobe.psxc.fix+dcx",PSX_COLLAGE:"document/vnd.adobe.psxc.collage+dcx",SPARK_POST:"application/vnd.adobe.theo.document+dcx",SPARK_PAGE:"application/vnd.adobe.luca.document+dcx",SPARK_PAGE_PROJECT:"application/vnd.adobe.luca.project+dcx",SPARK_VIDEO:"application/vnd.adobe.ginger.document+dcx",SPARK_VIDEO_PROJECT:"application/vnd.adobe.ginger.project+dcx",INDD_CLOUD_DOC:"document/vnd.adobe.indesign+dcx",XD_SHAREDARTIFACT:"application/vnd.adobe.xd.sharedartifact+dcx",XD_PROTOTYPE:"application/vnd.adobe.uxdesign.prototype+dcx",GENERIC:"application/octet-stream",MODEL_3D:"application/vnd.adobe.obj.3d+zip",MATERIAL_3D:"application/vnd.adobe.mdl.material+zip",LIGHT_3D:"application/vnd.adobe.ibl.light+zip",PHOTOSHOP_TEMPLATE:"image/vnd.adobe.photoshop.template",ILLUSTRATOR_TEMPLATE:"application/illustrator.template",INDESIGN_TEMPLATE:"application/vnd.adobe.indesign.template",PPRT_GRAPHIC:"application/vnd.adobe.ppro.graphic+zip",AET_ZIP:"application/vnd.adobe.stock.aet+zip",MOGRT:"application/vnd.adobe.ae.graphic+zip",JPEG:"image/jpeg",JPG:"image/jpg",PNG:"image/png",QUICK_TIME:"video/quicktime",MOV:"video/mov",MP4:"video/mp4",MPEG:"video/mpeg",MPG:"video/mpg",GPP3:"video/3gpp",XM4V:"video/x-m4v",XMSVIDEO:"video/x-msvideo"},l=(c.EXPRESS,c.EXPRESS_PAGE,c.EXPRESS_WEBPAGE,c.EXPRESS_DRAWING,c.FIREFLY_STYLE_KIT_MIMETYPE,c.FIREFLY_RECIPE_MIMETYPE,c.SPARK_PAGE,c.SPARK_PAGE_PROJECT,c.SPARK_POST,c.SPARK_VIDEO,c.SPARK_VIDEO_PROJECT,c.AERO,c.CANVAS,c.ILLUSTRATOR_CLOUD_DOCUMENT,c.FR_CLOUD_DOCUMENT,c.PS_CLOUD_DOCUMENT,c.PS_CLOUD_DOCUMENT_DEP,c.XD_CLOUD_DOCUMENT,c.MIGRATED_GEMINI,c.PSX_MIX,c.PSX_EDIT,c.PSX_FIX,c.PSX_COLLAGE,c.INDD_CLOUD_DOC,c.PSDL_CLOUD_DOCUMENT,o.Files.id,o.Libs.id,o.Lightroom.id,o.Spaces.id,o.ShareSheet.id,o.OneUp.id,o.UAB.id,o.Stock.id,c.XD_CLOUD_DOCUMENT,c.ILLUSTRATOR_CLOUD_DOCUMENT,c.PS_CLOUD_DOCUMENT,c.PS_CLOUD_DOCUMENT_DEP,{LIBRARY_LOAD_FLAG:"ccd.fw.loading.CCLibs",LIBS_PANEL_LOAD_FLAG_PREFIX:"ccd.assets.loading.LibrariesPanel.",LIBS_PANEL_LOAD_LATEST:"ccd.assets.loading.LibrariesPanel.latest",CLOUD_DOCS_LOAD_FLAG:"ccd.fw.loading.CloudDocs",PROJECTS_LOAD_FLAG:"ccd.fw.loading.assets.projects",SPACES_LOAD_FLAG:"ccd.fw.loading.Spaces",ZERO_STORAGE_FLAG:"ccd.fw.filesPanelEnabled",ASSETS_UI_FLAG:"ccd.fw.visibility.CCDAssets",DC_ON_ACP_MIGRATION_FLAG:"ccd.assets.acpMigrationCompleted",ASSETS_URL_FLAG:"ccd.fw.loading.assets.url",EOL_NOTIFY_FLAG:"ccd.fw.ccf.eol.date",ASSETS_FEEDBACK_REDIRECTION_FLAG:"ccd.fw.loading.assets.feedbackButtonData",LIGHTROOM_LOAD_FLAG:"ccd.fw.loading.Lightroom",ASSETS_WEB_URL_DATA_FLAG:"ccd.assets.assetsWebURLData",LIBS_SYNC_PREF_FLAG:"ccd.assets.hide.libSyncPref",STOCK_LOAD_FLAG:"ccd.fw.loading.assets.stock",DC_ACP_FILES_SUPPORT_FLAG:"ccd.fw.checkFilesEnablementDcAcp",QUICK_ACTION_FEATURE_FLAG:"ccd.fw.loading.stock.quickAction",MODULE_CONFIG_FLAG:"ccd.fw.loading.assets.moduleConfig"});var d,u;!function(e){e.USER_CONTEXT_DATA="UserContextData",e.HIDE_ONBOARDING="HideOnboarding",e.SHOW_ONBOARDING="ShowOnboarding",e.CFU="Start24HrWorkflow"}(d||(d={})),function(e){e.viewInWeb="open-assets-web"}(u||(u={})),u.viewInWeb;var p,h,f,C,g,b,S,m,E,v,L;i.YourDocuments,i.SharedWithYou,function(e){e.StartTrial="startTrial",e.BuyNow="buy-now",e.Update="update",e.Try="try",e.Buy="buy",e.Retry="retry",e.Install="install",e.NotCompatible="not-compatible"}(p||(p={})),function(e){e.CCFEnabled="CCF_ENABLED",e.CCFNotify="CCF_NOTIFY",e.CCFDisbaled="CCF_DISABLED",e.CCFRemoved="CCF_REMOVED"}(h||(h={})),function(e){e.ResizeImage="resize-image",e.RemoveBackground="remove-background",e.TrimVideo="trim-video",e.ConvertToGif="convert-to-gif"}(f||(f={})),function(e){e.Image="image",e.Video="video"}(C||(C={})),s.YOUR_DOCUMENTS,s.SHARED_WITH_YOU,s.DELETED,function(e){e.YOUR_DOCUMENTS="YOUR_DOCUMENTS",e.SHARED_WITH_YOU="SHARED_WITH_YOU",e.STOCK_ASSETS="STOCK_ASSETS",e.LIGHTROOM="LIGHTROOM",e.LIBRARIES="LIBRARIES",e.TEAMS="TEAMS",e.DELETED="DELETED",e.PROJECTS="PROJECTS"}(g||(g={})),function(e){e.AssetBrowser="AssetBrowser",e.ShareSheet="ShareSheet"}(b||(b={})),b.AssetBrowser,b.ShareSheet,function(e){e.ASSET_ORGANIZER="cc-asset-organizer",e.DOCUMENT_PICKER="cc-document-picker",e.PROJECTS_ORGANIZER="cc-projects-organizer",e.PROJECT_CONTENTS="cc-project-contents"}(S||(S={})),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.PENDING=1]="PENDING",e[e.ERROR=2]="ERROR"}(m||(m={})),function(e){e.ModuleLoadError="moduleLoadError",e.UIComponentLoadError="uiComponentLoadError",e.UnknownError="unknownError"}(E||(E={})),function(e){e.CmTrainingSet="cm_training_set",e.Brand="brand"}(v||(v={})),function(e){e.CmTrainingSet="CmTrainingSet",e.Brand="Brand"}(L||(L={}))},187893:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o,i=n(823595);const r="assets-files: utilities:";class s{static searchCCDQueryParams(e){return String(new URL(String(document.location)).searchParams.get(e))}static getFileNameWithoutExtension(e){return e.replace(/\.[^/.]+$/,"")}static getExtensionFromFileName(e){return/(?:\.([^.]+))?$/.exec(e)[1]}static compareVersions(e,t){const n=e.split("."),o=t.split(".");let i=0;for(;i<Math.min(n.length,o.length);i+=1){const e=parseInt(n[i],10),t=parseInt(o[i],10);if(e>t)return 1;if(e<t)return-1}return n.length===o.length?0:n.length<o.length?-1:1}static getAvailableFileName(e,t,n){let o,i="";const r=n&&n.length;o=r?`${t}${i}.${n}`:`${t}${i}`;let s=1;for(;e.includes(o);)i=` (${s})`,o=r?`${t}${i}.${n}`:`${t}${i}`,s+=1;return o}static getLocalExtensionFromCloudMimeType(e){switch(e){case i.rn.PS_CLOUD_DOCUMENT_DEP:return"psd";case i.rn.XD_CLOUD_DOCUMENT:return"xd";case i.rn.ILLUSTRATOR_CLOUD_DOCUMENT:return"ai";case i.rn.INDD_CLOUD_DOC:return"indd";default:return""}}static getDefaultExtensionFromContentType(e){return{"image/gif":"gif","image/jpeg":"jpeg","image/png":"png","image/tiff":"tif","image/svg+xml":"svg","application/illustrator":"ai","application/illustrator.template":"ait","image/vnd.adobe.photoshop.template":"psdt","application/vnd.adobe.indesign.template":"indt","video/quicktime":"mov","audio/wav":"wav","application/vnd.adobe.ae.graphic+zip":"mogrt","application/vnd.adobe.ppro.graphic+zip":"mogrt","application/vnd.adobe.stock.aet+zip":"zip","application/vnd.adobe.ibl.light+zip":"zip","application/vnd.adobe.mdl.material+zip":"zip","application/vnd.adobe.stock.pproj+zip":"zip","application/vnd.adobe.obj.3d+zip":"zip"}[e]}static sleep(e){return new Promise((t=>setTimeout(t,1e3*e)))}static getServiceParam(e){let t="",n="";try{if(e)if(e instanceof Array){const{serviceCode:o,serviceLevel:i}=e[0];t=o,n=i}else{const{serviceCode:o,serviceLevel:i}=e;t=o,n=i}else console.error(`${r} getServiceParam: serviceAccount is undefined`)}catch(e){console.error(`${r} Unable to receive info from service account because of error : ${e}`)}return{serviceCode:t,serviceLevel:n}}}o=s,s.isOneUpRoute=(e=i.Z5.YourDocuments)=>{try{const t=i.Z5.FilesOneUp.lastIndexOf("/");return!!(null==e?void 0:e.includes(i.Z5.FilesOneUp.substring(0,t)))}catch(e){return console.error(`${r} error in parsing oneUp route due to > ${e}`),!1}},s.getProjectContentsRouteInfo=e=>{const t=new URL(e.substring(i.Z5.Files.length),"https://localhost"),[n,o]=t.pathname.slice(1).split("/");return{root:n,projectId:o||t.searchParams.get("projectId"),assetId:t.searchParams.get("folderId"),applyFilter:"false"!==t.searchParams.get("applyFilter")}},s.isProjectContentsRoute=e=>{try{const t=null==e?void 0:e.pathname,n=t+(null==e?void 0:e.search),r=i.Z5.ProjectContents.lastIndexOf("/"),s=!!(null==t?void 0:t.includes(i.Z5.ProjectContents.substring(0,r)));if(!s)return!1;const{projectId:a}=o.getProjectContentsRouteInfo(n);return s&&!!a}catch(e){return console.error(`${r} error in parsing project contents route due to > ${e}`),!1}},s.shouldSaveFilesLocation=e=>{const t=null==e?void 0:e.pathname;return!s.isOneUpRoute(t)&&!s.isProjectContentsRoute(e)};const a=s},123469:(e,t,n)=>{e.exports=n(612965)(0)},315930:(e,t,n)=>{e.exports=n(612965)(107)},106860:(e,t,n)=>{e.exports=n(612965)(22)},283275:(e,t,n)=>{e.exports=n(612965)(408)},612965:e=>{"use strict";e.exports=common}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o=n(51301);this.CCDCCLibs=o})();