
/*************************************************************************
 * ADOBE CONFIDENTIAL
 * ___________________
 *
 * Copyright 2019 Adobe. All Rights Reserved.
 *
 * NOTICE: All information contained herein is, and remains
 * the property of Adobe and its suppliers, if any. The intellectual
 * and technical concepts contained herein are proprietary to Adobe
 * and its suppliers and are protected by all applicable intellectual
 * property laws, including trade secret and copyright laws.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe.
 **************************************************************************/

(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"/o1Y":function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_ja.jpg"},"0XM2":function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_sv.jpg"},"2BIK":function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_sv.jpg"},"3otC":function(e,t){e.exports="1.89.3"},"4NXA":function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_pt.jpg"},"4dXS":function(e,t,o){"use strict";o.r(t);var n=o("q1tI"),a=o.n(n),s=o("i8i4"),c=o("EcEN"),i=o.n(c),r=o("JRPe");const l="en",d="doc-picker-service",p=3e3,u="doc-picker-service",h={event:{category:"DESKTOP"},source:{name:"CCX-Document-Picker"}};var m;!function(e){e.cloudProjects="cloudProjects",e.cloudProjectSharing="cloudProjectSharing",e.cloudProjectsLinkedSymbols="cloudProjectsLinkedSymbols"}(m||(m={}));const g=2;var f=o("t+6E"),b=o("j6Ri"),k=o.n(b),v=o("bUsb"),_=o.n(v),C=o("2oH+"),E=o.n(C),O=o("okNM"),y=o("OQA9"),D=o("WgUl"),S=o.n(D),w=function(e,t,o,n){var a,s=arguments.length,c=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var i=e.length-1;i>=0;i--)(a=e[i])&&(c=(s<3?a(c):s>3?a(t,o,c):a(t,o))||c);return s>3&&c&&Object.defineProperty(t,o,c),c};const P=o("KoSV");let x=class extends n.Component{render(){const{value:e,errorMessage:t,onInputChange:o,onPrimaryButtonClick:a,isDialogOpen:s}=this.props,c=n.createElement(r.b,{id:"pickerView.saveAsInput"}),i=t===f.r.invalidChar?{characters:f.q}:{},l=""!==t,d=l?`pickerView.error.saveAs.${t}`:"pickerView.error.saveAs.default";return n.createElement("div",{className:P.root},n.createElement("div",{className:P.input},n.createElement("div",{className:P.label},c),n.createElement("div",{className:P.textField},n.createElement(S.a,{autoFocus:!0,placeholder:"",validationState:l?"invalid":"",className:P.textChild,value:e,onChange:e=>o(e),onKeyDown:e=>{"Enter"===e.key&&a()},disableOnOverlay:s}))),n.createElement("div",{className:P.error},n.createElement("div",{className:P.label+" "+P.indentFix},c),n.createElement("div",{className:P.errorMessage+(l?" "+P.show:"")},n.createElement(r.b,{id:d,values:i,defaultMessage:d}))))}};x=w([O.c],x);var T=Object(r.g)(x),j=o("Cn9g"),I=o.n(j);const A=o("orUL");class L extends n.Component{constructor(){super(...arguments),this._renderButton=({name:e,className:t="spectrum-Button",style:o={},onClickHandler:a,variant:s="primary",quiet:c=!1,disabled:i=!1,icon:l=null})=>n.createElement("div",{key:e,className:A.button,id:`PickerViewFooter_ActionButton${e}`},n.createElement(I.a,{className:t,variant:s,style:o,quiet:c,icon:l,disabled:i,onClick:a},n.createElement(r.b,{id:`pickerViewFooter.button.${e}`})))}render(){const{primaryButtonLabel:e,cancelButtonLabel:t,switchToOSPickerLabel:o,onPrimaryButtonClick:a,onCancel:s,onSwitchToOSPicker:c,platform:i,primaryButtonDisabled:r}=this.props,l=i===f.k.win,d=this._renderButton({name:t,onClickHandler:s,style:{paddingLeft:"7px",paddingRight:"7px"}}),p=a?this._renderButton({className:r?"spectrum-Button--cta is-disabled":"spectrum-Button--cta",disabled:r,name:e,onClickHandler:a,style:{paddingLeft:"7px",paddingRight:"7px"},variant:"cta"}):void 0;return n.createElement("div",{className:A.root},c&&n.createElement("div",{className:A.left},this._renderButton({name:o,onClickHandler:c,variant:"secondary"})),n.createElement("div",{className:A.right},l?n.createElement(n.Fragment,null,p,s&&d):n.createElement(n.Fragment,null,s&&d,p)))}}var N=L,U=o("L+OI"),F=o.n(U),R=o("lC2T"),B=function(e,t,o,n){var a,s=arguments.length,c=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var i=e.length-1;i>=0;i--)(a=e[i])&&(c=(s<3?a(c):s>3?a(t,o,c):a(t,o))||c);return s>3&&c&&Object.defineProperty(t,o,c),c},V=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const M=o("c56M");let H=class extends n.Component{constructor(e){super(e),this.locale=this.props.intl.locale.substr(0,2),this._renderButton=({name:e,onClickHandler:t,variant:o="primary",quiet:a=!1,disabled:s=!1})=>{const{intl:c}=this.props;return n.createElement("div",{key:e,id:`OnboardingView_ActionButton_${e}`},n.createElement(I.a,{className:"spectrum-Button",variant:o,style:{paddingLeft:"0",paddingRight:"0"},quiet:a,disabled:s,onClick:t,label:c.formatMessage({defaultMessage:e,id:`onboardingCdp.button.${e}`})}))};const{ccxIngest:t}=this.props;t&&t.fireEvent({event:{subcategory:"Onboarding",subtype:"page",type:"render",workflow:"Main"}},!1).catch(e=>{console.warn(`[OnboardingView] ccxIngest.fireEvent failed ${e}`)}),this.state={},this.loadImages()}async loadImages(){const e=await this._require(`./Onboarding_Cloud_${this.locale}.jpg`),t=await this._require(`./Onboarding_Local_${this.locale}.jpg`);this.setState({cloudDocImageSrc:e,localDiskImageSrc:t})}render(){const{dontShowCheckValue:e,onToggleDismissal:t,onSwitchToCDOPicker:o,onSwitchToOSPicker:a,intl:s}=this.props,{cloudDocImageSrc:c,localDiskImageSrc:i}=this.state;return n.createElement("div",{className:M.root},n.createElement("div",{className:M.main},n.createElement("div",{className:M.header},n.createElement(r.b,{id:"onboardingCdp.header"}),n.createElement("div",{className:M.subheader},n.createElement(r.b,{id:"onboardingCdp.subheader"}))),n.createElement("div",{className:M.panels},n.createElement("div",{className:M.panel},n.createElement("div",{className:M.panelImage},n.createElement("img",{src:c})),n.createElement("div",{className:M.panelBody},n.createElement("div",{className:M.panelHeader},n.createElement(r.b,{id:"onboardingCdp.panel.header.saveToCloud"}),n.createElement("div",{className:M.label},n.createElement(r.b,{id:"onboardingCdp.label.new"}))),n.createElement("div",{className:M.panelContent},n.createElement(r.b,{id:"onboardingCdp.panel.body.saveToCloud"})),this._renderButton({name:"saveToCloud",onClickHandler:o,quiet:!0,variant:"primary"}))),n.createElement("div",{className:M.panel},n.createElement("div",{className:M.panelImage},n.createElement("img",{src:i})),n.createElement("div",{className:M.panelBody},n.createElement("div",{className:M.panelHeader},n.createElement(r.b,{id:"onboardingCdp.panel.header.saveToLocal"})),n.createElement("div",{className:M.panelContent},n.createElement(r.b,{id:"onboardingCdp.panel.body.saveToLocal"})),this._renderButton({name:"saveToLocal",onClickHandler:a})))),n.createElement("div",{id:"OnboardingView_CheckboxButton"},n.createElement(F.a,{onClick:t,label:s.formatMessage({id:"onboardingCdp.checkbox.doNotShowAgain"}),checked:e}))))}_require(e){try{return R(e)}catch(t){return R(e.replace(new RegExp(`${this.locale}.jpg$`),"en.jpg"))}}};H=B([O.c,V("design:paramtypes",[Object])],H);var K=Object(b.ccxIngest)(u)(Object(r.g)(H)),$=function(e,t,o,n){var a,s=arguments.length,c=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var i=e.length-1;i>=0;i--)(a=e[i])&&(c=(s<3?a(c):s>3?a(t,o,c):a(t,o))||c);return s>3&&c&&Object.defineProperty(t,o,c),c},q=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const z=o("5HZb"),G=[{component:a.a.createElement(f.b,null),defaultLabel:"Cloud Documents",enabled:!0,id:"cloud",ingestSubcategory:"Cloud Documents",label:"pickerView.cloud_docs"}];var J,X;!function(e){e.saveAs="save",e.saveToFolder="choose",e.cancel="cancel",e.switchToOSPicker="switchToOSPicker"}(J||(J={})),function(e){e.DontShow="DontShow",e.CloudDocs="CloudDocs",e.LocalDocs="LocalDocs"}(X||(X={}));let W=class extends a.a.Component{constructor(e,...t){super(e,...t),this.state={activeTab:this.props.defaultTab||0,dontShowCheckboxValue:!this.props.showInterstitial,errorMessage:"",platform:this.props.cdoStore.hostProductData.platform,saveAsName:this.props.saveAsName||"",selectedAction:"",showOnboarding:this.props.showInterstitial},this.callbacks=this.props.callbacks,this.cdoStore=this.props.cdoStore,this.docStore=this.cdoStore.docStore,this.focusEl=a.a.createRef(),this.renderTabView=()=>{const{activeTab:e,platform:t}=this.state,o=G[e],n=a.a.createElement("div",{className:z.tabHeader},a.a.createElement(y.TabList,{variant:"compact",onChange:this._handleTabChange,className:z.tabs,selectedIndex:e},G.map(e=>e.enabled?a.a.createElement(y.Tab,{key:e.id},a.a.createElement(r.b,{id:e.label,defaultMessage:e.defaultLabel})):a.a.createElement(y.Tab,{key:e.id,disabled:!0},a.a.createElement(r.b,{id:e.label,defaultMessage:e.defaultLabel}))))),s=a.a.createElement("div",{className:z.tabHeaderEmpty}),c=o.component&&o.component,i=a.a.createElement(N,{switchToOSPickerLabel:J.switchToOSPicker,onSwitchToOSPicker:this.onSwitchToOSPicker,cancelButtonLabel:J.cancel,onCancel:this.onCancel,platform:t});return a.a.createElement(a.a.Fragment,null,G.length>1?n:s,c,i)},this.renderSaveAsView=()=>{const{isUserLoggedOut:e}=this.docStore,t=""===this.state.saveAsName,o=this.isCloudOnlyFolderAndOffline(),n=e||t||o,{platform:s}=this.state,{isDialogOpen:c,onDialogStateChange:i}=this.props,r=a.a.createElement(T,{value:this.state.saveAsName,errorMessage:this.state.errorMessage,onInputChange:this.handleSaveAsInputChange,onPrimaryButtonClick:this.onSaveAs,isDialogOpen:c}),l=a.a.createElement(f.b,{onBeforeItemClicked:this.onBeforeItemClicked,onDialogStateChange:i}),d=a.a.createElement(N,{primaryButtonLabel:J.saveAs,cancelButtonLabel:J.cancel,switchToOSPickerLabel:J.switchToOSPicker,onCancel:this.onCancel,onPrimaryButtonClick:this.onSaveAs,onSwitchToOSPicker:this.onSwitchToOSPicker,platform:s,primaryButtonDisabled:n});return a.a.createElement(a.a.Fragment,null,r,l,d)},this.renderSaveToFolderView=()=>{const e=a.a.createElement(f.b,{onBeforeItemClicked:this.onBeforeItemClicked}),t=this.isCloudOnlyFolderAndOffline(),{platform:o}=this.state,n=a.a.createElement(N,{primaryButtonLabel:J.saveToFolder,cancelButtonLabel:J.cancel,onPrimaryButtonClick:this.onSaveToFolder,platform:o,primaryButtonDisabled:t,onCancel:this.onCancel});return a.a.createElement(a.a.Fragment,null,e,n)},this._handleTabChange=e=>{const t=G[e];this._fireIngestEvent({event:{subtype:t.ingestSubcategory,type:"click",workflow:"Navigation"}},!1),this.setState({activeTab:e})},this.onSaveAs=()=>{const{saveAsName:e}=this.state,t=Object(f.s)(e);t===f.r.valid?this.executeValidAction(J.saveAs):this.setState({errorMessage:t})},this.onSaveToFolder=()=>{this.executeValidAction(J.saveToFolder)},this.onCancel=()=>{this.executeValidAction(J.cancel)},this.onSwitchToOSPicker=()=>{this._fireIngestEvent({event:{subtype:"Your Computer",type:"click",workflow:"Navigation"}},!0),this.executeValidAction(J.switchToOSPicker)},this.executeValidAction=e=>{const{view:t}=this.cdoStore;e!==J.saveAs&&e!==J.saveToFolder||this._fireIngestEvent({event:{subcategory:"Save as Cloud Document",subtype:"save-as",type:"click",workflow:"Document-Operation"},ui:{view_type:t}},!0),this.setState({selectedAction:e,errorMessage:""},()=>{const{selectedAction:e,saveAsName:t,dontShowCheckboxValue:o}=this.state,n={action:e,dismissInterstitial:o,folder:this.docStore.currentPath,mode:this.cdoStore.mode,name:t};n.folder&&""!==n.folder&&"/"!==n.folder.charAt(0)&&(n.folder=`/${n.folder}`),this.callbacks.onExecutePickerAction&&this.callbacks.onExecutePickerAction(n)})},this.handleSaveAsInputChange=e=>{this.setState({saveAsName:e})},this.onBeforeItemClicked=e=>{const{mode:t}=this.cdoStore;switch(t){case f.j.open:case f.j.relink:return!0;case f.j.saveAs:this.setState({saveAsName:e.title});break;case f.j.saveToFolder:}return!1},this._handleOnboardingAction=e=>{const{ccxIngest:t}=this.props,{dontShowCheckboxValue:o}=this.state;let n={subcategory:"Onboarding",type:"click",workflow:"Main"};switch(e){case X.CloudDocs:this.setState({showOnboarding:!1}),n={...n,subtype:"save-cloud",value:o};break;case X.LocalDocs:const e={action:"switchToOSPicker",dismissInterstitial:o,mode:"saveAs"};this.callbacks.onExecutePickerAction(e),this.setState({showOnboarding:!1}),n={...n,subtype:"save-local",value:o};break;case X.DontShow:const t=!o;this.setState({dontShowCheckboxValue:t}),n={...n,subtype:"dont-show",value:t}}this._fireIngestEvent({event:n},!1)},this._fireIngestEvent({event:{subcategory:"Init",subtype:"component",type:"init",workflow:"Initialize"}},!1)}componentDidMount(){const{folder:e}=this.props;e&&this.docStore.setCurrentPath(e);setTimeout(()=>{const{isSaveAsPicker:e}=this.cdoStore;!e&&this.focusEl.current&&this.focusEl.current.focus()},500),this._fireIngestEvent({event:{subcategory:"Landing",subtype:"page",type:"render",workflow:"Main"}},!1)}componentDidUpdate(e){const{saveAsName:t,folder:o}=this.props;t!==e.saveAsName&&this.setState({errorMessage:"",saveAsName:t}),o!==e.folder&&o!==this.docStore.currentPath&&this.docStore.setCurrentPath(o)}render(){const{isTabViewPicker:e,isSaveAsPicker:t,isSaveToFolderPicker:o}=this.cdoStore,{dontShowCheckboxValue:n}=this.state,s=this.state.showOnboarding&&t?a.a.createElement(K,{dontShowCheckValue:n,onSwitchToCDOPicker:()=>this._handleOnboardingAction(X.CloudDocs),onSwitchToOSPicker:()=>this._handleOnboardingAction(X.LocalDocs),onToggleDismissal:()=>this._handleOnboardingAction(X.DontShow)}):a.a.createElement(a.a.Fragment,null,e&&this.renderTabView(),t&&this.renderSaveAsView(),o&&this.renderSaveToFolderView());return a.a.createElement("div",{className:z.root+" PickerView",tabIndex:-1,ref:this.focusEl},s)}_fireIngestEvent(e,t){const{ccxIngest:o}=this.props;o&&o.fireEvent(e,t).catch(e=>{console.warn(`[PickerView] ccxIngest.fireEvent failed ${e}`)})}isCloudOnlyFolderAndOffline(){const{currentFolderCollection:e,isOnline:t}=this.docStore;return e&&!e.hasOfflineContent&&!t}};W=$([Object(O.b)("cdoStore","callbacks"),O.c,q("design:paramtypes",[Object,Object])],W);var Q=Object(b.ccxIngest)(u)(Object(r.g)(W)),Y=o("ybeB"),Z=o.n(Y),ee=o("3otC"),te=o.n(ee),oe=o("FBjV"),ne=o("TK9y"),ae=o("Kjsf");o("lx0c"),o("uOys"),o("e4zO"),o("rHX9"),o("yNAW");const se={default:Z.a};let ce,ie;const re=window;let le,de;if("undefined"!=typeof cdoHost)ce=cdoHost,ie=re.require("uxp").host,le=re.require("os").release();else{le="Unknown";try{ce=re.require("cdoHost")}catch(e){console.warn("No host app provided, using web as the host and loading configuration from .config/")}}const pe={environment:(de=ce?{analyticsProjectKey:ce.analyticsProjectKey,apiKey:ce.apiKey,callbacks:{onFeatureEnabled:e=>ce.featureEnabled(e),onGetLocalRecents:async()=>ce.getLocalRecents()},cloudStorageEnabled:()=>!0,dcxId:ce.dcxAppId,defaultDocumentIcons:se,defaultTab:0,documentFilter:ce.documentFilter,environment:ce.environment,featureFlags:{disableACPL:!1,disableCloudDocPrefetch:!0,emptyViewLoggedOutMessage:!0,enableCDPOnboarding:ce.featureEnabled("CloudDocCDPOnboarding"),enableCloudDocExport:!1,enableCloudDocFolders:ce.featureEnabled("CloudDocFolders"),enableCloudDocMultiSelectOpen:!1,enableCloudDocPinning:!1,enableCloudDocRename:!1,focusManagementEnabled:!0,useAdobeReactVirtualized:ce.featureEnabled("CloudDocUseARVS")},fetchToken:async e=>{try{return await ce.getUserAccessToken(e)}catch(e){return console.error(`[CDP] fetchToken: ${e}`),""}},fetchUserEmail:()=>"",fetchUserId:()=>ce.getUserId(),locale:ce.locale,platform:Object(f.t)(ce.platform),productBuildNumber:ie.buildNumber,productId:ce.sapCode,productName:ce.name,productVersion:ce.version,subscriptionType:()=>"type1",theme:async()=>{switch(await ce.getTheme()){case"dark":return f.m.Themes.dark;case"darkest":return f.m.Themes.darkest;case"light":return f.m.Themes.light;case"lightest":return f.m.Themes.lightest}},uiLocale:ce.locale}:{...ne,...oe,callbacks:{onFeatureEnabled:e=>!0,onGetLocalRecents:async()=>Promise.resolve([])},cloudStorageEnabled:()=>ne.cloudStorageEnabled,defaultDocumentIcons:se,defaultTab:0,featureFlags:ae.featureFlags,fetchToken:()=>("undefined"===oe.accessToken&&console.warn("accessToken has not been defined in ./config/imsData.json"),oe.accessToken),fetchUserId:()=>("undefined"===oe.userProfileId&&console.warn("userProfileId has not been defined in ./config/imsData.json"),oe.userProfileId),locale:"en",subscriptionType:()=>oe.subscriptionType,theme:async()=>f.m.Themes.dark}).environment,fetchToken:de.fetchToken,fetchUserEmail:de.fetchUserEmail,fetchUserId:de.fetchUserId,subscriptionType:de.subscriptionType()},ue={analyticsProjectKey:de.analyticsProjectKey,apiKey:de.apiKey,dcxId:de.dcxId,defaultDocumentIcons:de.defaultDocumentIcons,documentFilter:de.documentFilter,featureFlags:de.featureFlags,platform:de.platform,productBuildNumber:de.productBuildNumber,productId:de.productId,productLocation:"com.adobe.ccx.document-picker",productName:de.productName,productVersion:de.productVersion,uiLocale:de.uiLocale};class he extends n.Component{constructor(e){super(e),this.onDialogStateChange=e=>{this.setState({isDialogOpen:e})},this._handleGetLocalRecents=()=>{try{if(this._isInApp)return ce.getLocalRecents()}catch(e){const t=`[ccx-document-picker] Error: Unable to fetch recent documents ${JSON.stringify(e,null,g)}`;return Promise.reject(t)}return Promise.resolve([])},this._handleOpenDocuments=e=>{this._isInApp?(ce.openDocuments(e),this.props.closeDialog&&this.props.closeDialog()):console.info(`[ccx-document-picker] open document on host ${JSON.stringify(e)}`)},this._handleUpdateUserDocuments=()=>{this._cdoProviderRef.current.onUpdateDocuments()},this._handleThemeChange=()=>{de.theme().then(e=>this.setState({theme:e},()=>{console.info(`[ccx-document-picker] Theme changed to: ${e}`)}))},this._isInApp=void 0!==ce,this._defaultTab=de.defaultTab,this._cdoProviderRef=n.createRef(),this._ingestProviderRef=n.createRef(),this._callbacks={...de.callbacks,onExecutePickerAction:e=>this._handleExecutePickerAction(e),onOpenDocuments:e=>this._handleOpenDocuments(e),onStatusChange:e=>{this._cdoProviderRef.current.onUpdateDocuments()}},this.state={isDialogOpen:!1,theme:this.props.initialTheme},de.theme().then(e=>this.setState({theme:e},()=>{console.info(`[ccx-document-picker] Initial theme set to: ${e}`)})),this._hostProductData=ue,this._imsData=pe,f.m.initializeFromHostProductData(this._hostProductData),this._isInApp&&(ie?(ie.addEventListener("MRUFileListChanged",this._handleUpdateUserDocuments),ie.addEventListener("UPDATEUSERDOCUMENTS",this._handleUpdateUserDocuments),ie.addEventListener("com.adobe.cdp.events.UpdateUserDocuments",this._handleUpdateUserDocuments),ie.addEventListener("themechanged",this._handleThemeChange)):(ce.addEventListener("MRUFileListChanged",this._handleUpdateUserDocuments),ce.addEventListener("UPDATEUSERDOCUMENTS",this._handleUpdateUserDocuments),ce.addEventListener("com.adobe.cdp.events.UpdateUserDocuments",this._handleUpdateUserDocuments),ce.addEventListener("themechanged",this._handleThemeChange)))}get locale(){return f.g.normalizeLocale(de.locale)}componentDidUpdate(e){this._handleUpdateUserDocuments()}render(){const{theme:e,isDialogOpen:t}=this.state,{pickerInfo:o,openedSessionGuid:a}=this.props,{enableCDPOnboarding:s=!1}=this._hostProductData.featureFlags,c=this._getIngestProviderData(),i="dark"===e||"darkest"===e?"dark":"light",r=s&&(!o.showInterstitial||"true"===o.showInterstitial);return n.createElement("div",{className:`cdpTheme-${i} theme-${i} picker-container cdoCoreVariables`},n.createElement(k.a,{allowNoToken:!0,apiKey:d,env:this._imsData.environment,data:c,debounce:p,product:te.a,project:u,ref:this._ingestProviderRef},n.createElement(_.a,{theme:i,disableNativeControls:t,productId:this._hostProductData.productId},n.createElement(f.a,{analyticsData:c,imsData:this._imsData,hostProductData:this._hostProductData,locale:this.locale,callbacks:this._callbacks,mode:this.props.pickerInfo.mode,ref:this._cdoProviderRef},n.createElement(Q,{key:a,defaultTab:this._defaultTab,saveAsName:o.name,folder:o.folder,onDialogStateChange:this.onDialogStateChange,isDialogOpen:t,showInterstitial:r})))))}_handleExecutePickerAction(e){if(this._isInApp){const t=this.props.pickerInfo;t.name=e.name,t.folder=e.folder,ce.executePickerAction&&ce.executePickerAction(e),this.props.closeDialog&&this.props.closeDialog()}else console.info(`[ccx-document-picker] execute action: ${JSON.stringify(e)}`)}_getIngestProviderData(){const e=this._imsData.fetchUserId(),t=this._imsData.subscriptionType;return"unavailable"===t&&(this._imsData.subscriptionType=ce.subscriptionType()),E()(h,{env:{fw:{name:"CDOPicker",version:te.a}},event:{build:this._hostProductData.productBuildNumber,language:this.locale,user_agent:navigator.userAgent,user_guid:e},source:{client_id:this._hostProductData.productId,os_version:le,platform:this._hostProductData.platform,version:this._hostProductData.productVersion},user:{service_code:e?"sign-in":"",service_level:t}})}}he.defaultProps={initialTheme:f.m.Themes.lightest};var me=Object(r.g)(he);o("DtKy");const ge=r.d;class fe extends n.Component{componentDidCatch(e,t){console.error("CDP_App.CatchError: ",e),console.error("CDP_App.CatchInfo: ",t)}render(){const{closeDialog:e,openedSessionGuid:t,pickerInfo:o}=this.props;return n.createElement(ge,{locale:l},n.createElement(me,{openedSessionGuid:t,pickerInfo:o,closeDialog:e}))}}var be=fe;let ke;function ve(e){let t={mode:e};"undefined"!=typeof cdoHost&&((t=cdoHost.getPickerInfo(e)).mode=e),ke||((ke=document.createElement("dialog")).id="ccx-document-picker",document.body.appendChild(ke)),s.render(n.createElement(be,{openedSessionGuid:i.a.v1(),pickerInfo:t,closeDialog:()=>{ke.close()}}),ke),ke.showModal()}function _e(e){ve("open")}function Ce(e){ve("saveAs")}o.d(t,"showModalDocPicker",(function(){return ve})),o.d(t,"openDocumentPicker",(function(){return _e})),o.d(t,"saveAsDocumentPicker",(function(){return Ce}))},"7Ors":function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_zh.jpg"},"9b0s":function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_fi.jpg"},C14O:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_es.jpg"},CakO:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_cs.jpg"},Eahm:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_fr.jpg"},FBjV:function(e){e.exports={environment:"stage",accessToken:"",userProfileId:"",subscriptionType:"paid"}},FSmD:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_fr.jpg"},Fuwh:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_hu.jpg"},JN8N:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_hu.jpg"},KcPt:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_fi.jpg"},Kjsf:function(e){e.exports={host:"cdo",uxp:{windowSize:{height:768,width:1024},uiMapping:{cdo:""},islandType:"welcome",usePlugin:"cdo"},debug:!0,loggingLevel:"debug",featureFlags:{cloudProjects:!0,cloudProjectSharing:!0,focusManagementEnabled:!0}}},Mg2M:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_it.jpg"},NvGw:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_pt.jpg"},OaqH:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_ru.jpg"},OiFS:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_it.jpg"},Pnq4:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_pl.jpg"},"Q5j/":function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_de.jpg"},Qkrc:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_da.jpg"},TK9y:function(e){e.exports={apiKey:"CometDesktop3",dcxId:"Adobe.CC.CDO.Dev",platform:"web",productId:"CDOSAMPLEAPP-WEB",productLocation:"com.adobe.ccx.cdo.web",productName:"CDOSAMPLEAPP-WEB",productVersion:"1.0.0",cloudStorageEnabled:!0,isEnterpriseUser:!1,isLicenseAvailable:!0,cloudURLProtocol:"",locale:"en",uiLocale:"en_US",quota:{quotaUsed:100,quotaTotal:0},documentFilter:[],docTypeIcons:{default:"assets/default-file-icon@4x.png"}}},URsw:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_es.jpg"},VT8i:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_de.jpg"},VwGg:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_tr.jpg"},Zlv5:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_cs.jpg"},dfNC:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_en.jpg"},dmm0:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_zh.jpg"},f3hR:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_ko.jpg"},"gRo+":function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_ru.jpg"},i5uM:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_tr.jpg"},izj8:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_nb.jpg"},kuiv:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_ko.jpg"},lbVO:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_uk.jpg"},m5bt:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_nb.jpg"},oGk3:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_en.jpg"},of9E:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_da.jpg"},rYtH:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_nl.jpg"},"tRi/":function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_ja.jpg"},u3Xu:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_uk.jpg"},wnOR:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Cloud_pl.jpg"},ybeB:function(e,t,o){e.exports=o.p+"assets/picker/default-file-icon.png"},zXFJ:function(e,t,o){e.exports=o.p+"assets/picker/Onboarding_Local_nl.jpg"}}]);