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

/*************************************************************************
*
* ADOBE CONFIDENTIAL
* ___________________
*
*  Copyright 2017 Adobe Systems Incorporated
*  All Rights Reserved.
*
* NOTICE:  All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any.  The intellectual and technical concepts contained
* herein are proprietary to Adobe Systems Incorporated and its
* suppliers and may be covered by U.S. and Foreign Patents,
* patents in process, and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe Systems Incorporated.
**************************************************************************/

/*************************************************************************
 * ADOBE CONFIDENTIAL
 * ___________________
 *
 *  Copyright 2017 Adobe Systems Incorporated
 *  All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Adobe Systems Incorporated and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Adobe Systems Incorporated 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 Systems Incorporated.
 **************************************************************************/

define("pdmplugins/app-center/js/ac-app-center",["plugins-common/ac-plugins"],function(e){var t=e.AppCenter;return t||(t=e.AppCenter={}),t.PLUGIN_ID||(t.PLUGIN_ID="app_center"),t}),define("pdmplugins/app-center/js/ops/op-factory",["core/ac-core-init","pdmplugins/app-center/js/ac-app-center"],function(e,t){t.OpFactory=e.Op.extend({create:function(e,n){var p=t[e];return p?new p(n):void LOG(0,"AcAppCenter.OpFactory.create: Unrecognized class: "+e)}})}),define("pdmplugins/app-center/js/templates/app-center-card-template",[],function(){return'<div class = "sampleFile theme-list-item" aria-label="<%= name %>" tabIndex="0"><div class="fileImg file-icon-pdf collection-item-thumb"></div><div class="fileName theme-list-item-text"><%= name %></div></div>'}),define("pdmplugins/app-center/js/views/app-center-card-view",["core/ac-core-init","pdmplugins/app-center/js/ac-app-center","pdmplugins/app-center/js/templates/app-center-card-template","core/utils/view-util","core/utils/focus-util","core/utils/truncate","core/utils/css-util","core/views/plugin-content-view"],function(e,t,n){return t.FileView=e.View.extend({tagName:"div",initialize:function(){e.View.prototype.initialize.call(this),this._template=_.template(n)},render:function(){return 0===this.$el.children().length&&this.$el.html(this._template({name:this._getName()})),this},_getName:function(){return this.model.get("name")}}),t.FileView}),define("pdmplugins/app-center/js/nls/ui-strings",{root:!0,"xx-xx":!0,"ar-ae":!0,"ca-es":!0,"cs-cz":!0,"da-dk":!0,"de-de":!0,"en-ae":!0,"en-gb":!0,"en-il":!0,"es-es":!0,"eu-es":!0,"fi-fi":!0,"fr-fr":!0,"fr-ma":!0,"he-il":!0,"hr-hr":!0,"hu-hu":!0,"it-it":!0,"ja-jp":!0,"ko-kr":!0,"nb-no":!0,"nl-nl":!0,"pl-pl":!0,"pt-br":!0,"ro-ro":!0,"ru-ru":!0,"sk-sk":!0,"sl-si":!0,"sl-sl":!0,"sv-se":!0,"tr-tr":!0,"uk-ua":!0,"zh-cn":!0,"zh-tw":!0,"bg-bg":!0}),define("pdmplugins/app-center/js/nls/root/ui-strings",{SELECTOR_LABEL:"app_center",APP_CENTER:"App Center",app_center_TITLE:"Do more with Adobe Document Cloud",app_center_CONTENT:"Work where you want - desktop, online, or mobile.",app_center_DESKTOP_APPS:"Desktop apps",app_center_ACROBAT_PRO_DC_HEADER:"Acrobat Pro",app_center_ACROBAT_PRO_DC_CONTENT:"Start a free trial of Acrobat Pro that includes tools to create, export, and edit PDFs.",app_center_WEB_APPS:"Web apps & services",app_center_DOCUMENT_CLOUD_HEADER:"Document Cloud",app_center_DOCUMENT_CLOUD_CONTENT_READER:"Use your favorite Acrobat Reader tools in any browser.",app_center_DOCUMENT_CLOUD_CONTENT_ACROBAT:"Use your favorite Acrobat tools in any browser.",app_center_MOBILE_APPS:"Mobile apps",app_center_ACROBAT_READER_HEADER:"Acrobat Reader",app_center_ACROBAT_READER_CONTENT_READER:"Comment on, sign, and share files right on your phone or tablet.",app_center_ACROBAT_READER_CONTENT_ACROBAT:"Create, export, fill, sign, and share files right on your phone or tablet.",app_center_ADOBE_SCAN_HEADER:"Adobe Scan",app_center_ADOBE_SCAN_CONTENT:"Scan anything - receipts, notes, documents, and more - to PDF.",app_center_FILL_SIGN_HEADER:"Fill & Sign",app_center_FILL_SIGN_CONTENT:"Easily fill in forms and sign them on the go.",app_center_TRY:"Try",app_center_LAUNCH:"Launch",app_center_DOWNLOAD:"Download",app_center_GET_APP:"Get App",app_center_card_ADOBE_SCAN:"Adobe Scan",app_center_card_ADOBE_SCAN_TITLE:"Get the free Adobe Scan app",app_center_card_ADOBE_SCAN_DESCRIPTION:"Turn your phone or tablet into a portable scanner to scan anything to PDF. Download now.",app_center_card_ADOBE_ACROBAT_READER:"Adobe Acrobat Reader",app_center_card_ADOBE_ACROBAT_READER_TITLE:"Get the free Adobe Acrobat Reader app",app_center_card_ADOBE_ACROBAT_READER_DESCRIPTION:"Use your favorite PDF and signing tools on your phone or tablet. Download now.",app_center_card_ADOBE_FILL_SIGN:"Adobe Fill & Sign",app_center_card_ADOBE_FILL_SIGN_TITLE:"Get the free Adobe Fill & Sign app",app_center_card_ADOBE_FILL_SIGN_DESCRIPTION:"Fill, sign, and send any form fast on your phone or tablet. Download now.",app_center_qr_code_card_ADOBE_SCAN:"Adobe Scan",app_center_qr_code_card_GET_ADOBE_SCAN_TITLE:"Get the free Adobe Scan app",app_center_qr_code_card_OPEN_ADOBE_SCAN_TITLE:"Open the Adobe Scan app",app_center_qr_code_card_GET_ADOBE_SCAN_DESCRIPTION:"Scan the QR code to turn documents, receipts, and more into PDFs using the Adobe Scan mobile app.",app_center_qr_code_card_OPEN_ADOBE_SCAN_DESCRIPTION:"Scan the QR code to turn documents, receipts, and more into PDFs using the Adobe Scan app.",app_center_qr_code_card_ADOBE_ACROBAT_READER:"Adobe Acrobat Reader",app_center_qr_code_card_GET_ADOBE_ACROBAT_READER_TITLE:"Get the free Acrobat Reader app",app_center_qr_code_card_OPEN_ADOBE_ACROBAT_READER_TITLE:"Open the Acrobat Reader app",app_center_qr_code_card_GET_ADOBE_ACROBAT_READER_DESCRIPTION:"Scan the QR code to view and edit PDFs using the Adobe Acrobat Reader mobile app.",app_center_qr_code_card_OPEN_ADOBE_ACROBAT_READER_DESCRIPTION:"Scan the QR code to view and work with PDFs using the Acrobat Reader mobile app.",app_center_qr_code_card_OK_BUTTON:"OK"}),define("pdmplugins/app-center/js/views/app-center-view",["core/ac-core-init","backbone","pdmplugins/app-center/js/ac-app-center","pdmplugins/app-center/js/views/app-center-card-view","i18n!pdmplugins/app-center/js/nls/ui-strings"],function(e,t,n){return n.FilesView=e.View.extend({tagName:"div",render:function(){return this.collection.each(this.addFile,this),this},addFile:function(e){var t=new n.FileView({model:e});this.$el.append(t.render().el)}}),n.FilesView}),define("pdmplugins/app-center/js/templates/app-center-template",[],function(){return'<div class = "full-plugin-conatiner"><div class = "app-center-container"><div class = "app-center-top-banner theme-achromatic-box"><div class="top-banner-title theme-text"><%= app_center_TITLE %></div><div class="top-banner-content theme-text"><%= app_center_CONTENT %></div></div><div class="app-center-section-header1 theme-text"><%= app_center_DESKTOP_APPS %><hr class = "app-center-seperator"/><div class = "app-center-section-part"><div class = "app-center-section-parts app-center-section-list-logo desktop_acrobat"></div><div class = "app-center-section-parts app-center-list-item"><div class = "app-center-section-list-header theme-text"><%= app_center_ACROBAT_PRO_DC_HEADER %></div><div class = "app-center-section-list-content theme-text"><%= app_center_ACROBAT_PRO_DC_CONTENT %></div></div><div role = "button" class = "app-center-section-parts app-center-section-list-cta try  theme-list-item-text theme-primary-button theme-primary-button-label"><%= app_center_TRY %></div></div><hr class = "app-center-seperator"/></div><div class = "app-center-section-header2 theme-text"><%= app_center_WEB_APPS %><hr class = "app-center-seperator"/><div class = "app-center-section-part"><div class = "app-center-section-parts app-center-section-list-logo web_documentcloud"></div><div class = "app-center-section-parts app-center-list-item"><div class = "app-center-section-list-header theme-text"><%= app_center_DOCUMENT_CLOUD_HEADER %></div><div class = "app-center-section-list-content theme-text"><%= app_center_DOCUMENT_CLOUD_CONTENT %></div></div><div role = "button" class = "app-center-section-parts app-center-section-list-cta launch  theme-list-item-text theme-primary-button theme-primary-button-label"><%= app_center_LAUNCH %></div></div><hr class = "app-center-seperator"/></div><div class = "app-center-section-header3 theme-text"><%= app_center_MOBILE_APPS %><hr class = "app-center-seperator"/><div class = "app-center-section-part"><div class = "app-center-section-parts app-center-section-list-logo mobile_reader"></div><div class = "app-center-section-parts app-center-list-item"><div class = "app-center-section-list-header theme-text"><%= app_center_ACROBAT_READER_HEADER %></div><div class = "app-center-section-list-content theme-text"><%= app_center_ACROBAT_READER_CONTENT %></div></div><div role = "button" class = "app-center-section-parts app-center-section-list-cta acrobatreader theme-list-item-text theme-primary-button theme-primary-button-label"><%= app_center_GET_APP %></div></div><hr class = "app-center-seperator"/><div class = "app-center-section-part"><div class = "app-center-section-parts app-center-section-list-logo mobile_scan"></div><div class = "app-center-section-parts app-center-list-item"><div class = "app-center-section-list-header theme-text"><%= app_center_ADOBE_SCAN_HEADER %></div><div class = "app-center-section-list-content theme-text"><%= app_center_ADOBE_SCAN_CONTENT %></div></div><div role = "button" class = "app-center-section-parts app-center-section-list-cta adobescan theme-list-item-text theme-primary-button theme-primary-button-label"><%= app_center_GET_APP %></div></div><hr class = "app-center-seperator"/><div class = "app-center-section-part"><div class = "app-center-section-parts app-center-section-list-logo mobile_fillsign"></div><div class = "app-center-section-parts app-center-list-item"><div class = "app-center-section-list-header theme-text"><%= app_center_FILL_SIGN_HEADER %></div><div class = "app-center-section-list-content theme-text"><%= app_center_FILL_SIGN_CONTENT %></div></div><div role = "button" class = "app-center-section-parts app-center-section-list-cta fillsign theme-list-item-text theme-primary-button theme-primary-button-label"><%= app_center_GET_APP %></div></div><hr class = "app-center-seperator"/></div></div></div>'}),define("pdmplugins/app-center/js/models/file-model",["pdmplugins/app-center/js/ac-app-center","core/ac-core-init"],function(e,t){return e.FileModel=t.Model.extend({defaults:{name:"Sample File"},fetch:function(){return $.Deferred().resolve().promise()},save:function(){return $.Deferred().resolve().promise()},destroy:function(){return $.Deferred().resolve().promise()}}),e.FileModel}),define("pdmplugins/app-center/js/collection/file-collection",["pdmplugins/app-center/js/ac-app-center","core/ac-core-init","i18n!pdmplugins/app-center/js/nls/ui-strings"],function(e,t){return e.FileCollection=t.Collection.extend({model:e.FileModel}),e.FileCollection}),define("pdmplugins/app-center/js/views/plugin-view",["core/ac-core-init","pdmplugins/app-center/js/ac-app-center","pdmplugins/app-center/js/views/app-center-view","pdmplugins/app-center/js/templates/app-center-template","core/utils/view-util","i18n!pdmplugins/app-center/js/nls/ui-strings","pdmplugins/app-center/js/models/file-model","pdmplugins/app-center/js/collection/file-collection","core/utils/focus-util","core/utils/sc-analytics","core/views/plugin-content-view"],function(e,t,n,p,a,i,r,c,o){return t.PluginView=e.PluginContentView.extend({events:{"click .app-center-section-list-cta.fillsign":"_onFillSignClick","click .app-center-section-list-cta.adobescan":"_onAdobeScanClick","click .app-center-section-list-cta.acrobatreader":"_onAcrobatReaderClick","click .app-center-section-list-cta.try":"_onTryClick","click .app-center-section-list-cta.launch":"_onLaunchClick","click .sampleFile":"_onFileClick","keydown .sampleFile":"_onKeyDown"},initialize:function(){e.PluginContentView.prototype.initialize.call(this),this._template=_.template(p),this.goLinks={DESKTOP_SECTION_TRY_Reader:"http://www.adobe.com/go/AppCenter2018Acrobat_",WEB_SECTION_LAUNCH:"http://www.adobe.com/go/acrodtappcenter_"}},teardown:function(){this.$el.empty()},render:function(){if(e.PluginContentView.prototype.render.call(this),!(this.$el.children().length>0)){var t=e.Util.isReader()?i.app_center_DOCUMENT_CLOUD_CONTENT_READER:i.app_center_DOCUMENT_CLOUD_CONTENT_ACROBAT,n=e.Util.isReader()?i.app_center_ACROBAT_READER_CONTENT_READER:i.app_center_ACROBAT_READER_CONTENT_ACROBAT;0===this.$el.children().length&&this.$el.html(this._template({app_center_TITLE:i.app_center_TITLE,app_center_CONTENT:i.app_center_CONTENT,app_center_DESKTOP_APPS:i.app_center_DESKTOP_APPS,app_center_ACROBAT_PRO_DC_HEADER:i.app_center_ACROBAT_PRO_DC_HEADER,app_center_ACROBAT_PRO_DC_CONTENT:i.app_center_ACROBAT_PRO_DC_CONTENT,app_center_WEB_APPS:i.app_center_WEB_APPS,app_center_DOCUMENT_CLOUD_HEADER:i.app_center_DOCUMENT_CLOUD_HEADER,app_center_DOCUMENT_CLOUD_CONTENT:t,app_center_MOBILE_APPS:i.app_center_MOBILE_APPS,app_center_ACROBAT_READER_HEADER:i.app_center_ACROBAT_READER_HEADER,app_center_ACROBAT_READER_CONTENT:n,app_center_ADOBE_SCAN_HEADER:i.app_center_ADOBE_SCAN_HEADER,app_center_ADOBE_SCAN_CONTENT:i.app_center_ADOBE_SCAN_CONTENT,app_center_FILL_SIGN_HEADER:i.app_center_FILL_SIGN_HEADER,app_center_FILL_SIGN_CONTENT:i.app_center_FILL_SIGN_CONTENT,app_center_TRY:i.app_center_TRY,app_center_LAUNCH:i.app_center_LAUNCH,app_center_DOWNLOAD:i.app_center_DOWNLOAD,app_center_GET_APP:i.app_center_GET_APP})),this.$appCenterSectionHeader1=this.$(".app-center-section-header1"),e.Util.isReader()?this.$appCenterSectionHeader1.show():this.$appCenterSectionHeader1.hide()}},selectPlugin:function(){{var e=this.options;e.appApi}this.options.appApi.displayApi.applyUIThemeStyles(this.$el).then(_.bind(function(){this.render(),this.options.appApi.displayApi.showSpinner(!1)},this))},_startPlugin:function(){var e=this._getResolvedPromise();return e},_openFile:function(e){console.log(e),this.options.appApi.rnaApi.done(_.bind(function(t){t.fileApi({methodName:"AppCenter",methodArgs:[e]})}))},_onKeyDown:function(e){13===e.which?this._onFileClick(e):32===e.which?this._onFileClick(e):o.nextElem(e)},_onFileClick:function(e){var t=$(e.currentTarget),n=t.find(".fileName").text();this._openFile(n)},_onFillSignClick:function(){this.options.appApi.rnaApi.done(function(e){e.rnaFteAPI.invokeMethod({methodName:"launchDCAppCenterCard",methodArgs:["AdobeFillSign"]})})},_onAdobeScanClick:function(){this.options.appApi.rnaApi.done(function(e){e.rnaFteAPI.invokeMethod({methodName:"launchDCAppCenterCard",methodArgs:["AdobeScan"]})})},_onAcrobatReaderClick:function(){this.options.appApi.rnaApi.done(function(e){e.rnaFteAPI.invokeMethod({methodName:"launchDCAppCenterCard",methodArgs:["AdobeAcrobatReader"]})})},_onTryClick:function(){var t="false";if(this.options.appApi.rnaApi.done(_.bind(function(e){e.rnaFteAPI.invokeMethod({methodName:"launchAcrobatFromReaderAPI",methodArgs:["launchAcrobat"]}).done(_.bind(function(e){t=e.AcrobatLaunched},this))},this)),"false"==t){var n=e.Locale.getLocale();5==n.length&&(n="".concat(n.slice(0,2)));var p=this.goLinks.DESKTOP_SECTION_TRY_Reader+n;this._openLinkInBrowser(p)}},_onLaunchClick:function(){var t=e.Locale.getLocale(),n="";5==t.length&&(n="".concat(t.slice(0,2)),n=n+"_"+"".concat(t.slice(3,5).toUpperCase()));var p=this.goLinks.WEB_SECTION_LAUNCH+n;this._openLinkInBrowser(p)},_openLinkInBrowser:function(e){this.options.appApi.rnaApi.done(function(t){t.rnaFteAPI.invokeMethod({methodName:"openLinkInExternalBrowser",methodArgs:[e]})}),event.preventDefault(),event.stopPropagation()}}),t.PluginView}),define("pdmplugins/app-center/js/app-center",["pdmplugins/app-center/js/ac-app-center","pdmplugins/app-center/js/ops/op-factory","pdmplugins/app-center/js/views/plugin-view"],function(e){_.extend(e,{init:function(){e.opFactory=new e.OpFactory}})}),define("acplugins/app-center/js/plugin",["core/ac-core-init","files/ac-files-init","pdmplugins/app-center/js/ac-app-center","pdmplugins/app-center/js/app-center"],function(e,t,n){n.init()});