define("metaserver/static/js/modules/clean/react/file_viewer/data/reducer",["require","exports","metaserver/static/js/modules/clean/react/file_viewer/data/types"],(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileViewerReducer=t.defaultState=void 0,t.defaultState={currentFileId:void 0},t.fileViewerReducer=function(e=t.defaultState,a){switch(a.type){case r.Actions.CloseFile:return Object.assign(Object.assign({},e),{currentFileId:void 0});case r.Actions.OpenFile:{const{payload:t}=a;return Object.assign(Object.assign({},e),{currentFileId:t.fileId})}case r.Actions.DismissAppDownloadInterstitial:return Object.assign(Object.assign({},e),{appDownloadInterstitialDismissed:!0});default:return e}}})),define("metaserver/static/js/modules/clean/react/file_viewer/data/store",["require","exports","metaserver/static/js/modules/clean/redux/store","metaserver/static/js/modules/clean/redux/namespaces","metaserver/static/js/modules/clean/file_store/reducer","metaserver/static/js/modules/clean/react/file_viewer/data/reducer","metaserver/static/js/modules/clean/previews/data/reducer","metaserver/static/js/modules/clean/previews/data/actions","metaserver/static/js/modules/clean/file_store/actions","metaserver/static/js/modules/clean/react/file_viewer/data/actions","metaserver/static/js/modules/clean/react/extensions/data/store"],(function(e,t,r,a,s,i,o,n,l,c,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateFileStore=t.hydrateFileStore=t.hydrateFileViewerNamespace=t.getStoreForFileViewer=t.fileViewerReducerMap=void 0,t.fileViewerReducerMap={[a.FILE_NAMESPACE_KEY]:s.fileNamespaceReducer,[a.FILE_VIEWER_NAMESPACE_KEY]:i.fileViewerReducer,[a.PREVIEW_NAMESPACE_KEY]:o.reducer},t.getStoreForFileViewer=()=>(u.getStore(),r.getStoreAndRegisterReducers(t.fileViewerReducerMap)),t.hydrateFileViewerNamespace=function(e,{file:t},r){t&&e.dispatch(c.openFile(t)),r&&e.dispatch(c.registerUser(r))},t.hydrateFileStore=function(e,t){e.dispatch(n.populateFilesPreviewData(t)),e.dispatch(l.putFiles(t))},t.updateFileStore=function(e,t){e.dispatch(l.putFiles(t))}})),define("metaserver/static/js/modules/clean/react/size_class/size_class",["require","exports","tslib","react","classnames","hoist-non-react-statics","spectrum/match/index","metaserver/static/js/modules/clean/react/size_class/constants","metaserver/static/js/modules/clean/react/components/helpers"],(function(e,t,r,a,s,i,o,n,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withSizeClass=t.SizeClass=void 0,a=r.__importDefault(a),s=r.__importDefault(s),i=r.__importDefault(i),Object.defineProperty(t,"SizeClass",{enumerable:!0,get:function(){return n.SizeClass}}),t.withSizeClass=function(e,t={}){const r=class extends a.default.Component{constructor(t){super(t),this.displayName=`WithSizeClass(${l.getDisplayName(e)}`,this.onMatchSmall=()=>this.setState({sizeClass:n.SizeClass.Small}),this.onMatchMedium=()=>this.setState({sizeClass:n.SizeClass.Medium}),this.onMatchLarge=()=>this.setState({sizeClass:n.SizeClass.Large}),this.onMatchExtraLarge=()=>this.setState({sizeClass:n.SizeClass.ExtraLarge}),window.matchMedia(n.MEDIA_SIZE_CLASS_EXTRA_LARGE).matches?this.state={sizeClass:n.SizeClass.ExtraLarge}:window.matchMedia(n.MEDIA_SIZE_CLASS_LARGE).matches?this.state={sizeClass:n.SizeClass.Large}:window.matchMedia(n.MEDIA_SIZE_CLASS_MEDIUM).matches?this.state={sizeClass:n.SizeClass.Medium}:this.state={sizeClass:n.SizeClass.Small}}render(){const{isResponsiveEnabled:r,responsiveClassName:i=""}=t,l=!r||r();return a.default.createElement("div",{className:s.default({[i]:l})},a.default.createElement(o.Match,{media:n.MEDIA_SIZE_CLASS_SMALL,onMatch:this.onMatchSmall}),a.default.createElement(o.Match,{media:n.MEDIA_SIZE_CLASS_MEDIUM,onMatch:this.onMatchMedium}),a.default.createElement(o.Match,{media:n.MEDIA_SIZE_CLASS_LARGE,onMatch:this.onMatchLarge}),a.default.createElement(o.Match,{media:n.MEDIA_SIZE_CLASS_EXTRA_LARGE,onMatch:this.onMatchExtraLarge}),a.default.createElement(e,Object.assign({},this.props,{sizeClass:l?this.state.sizeClass:n.SizeClass.Large})))}};return i.default(r,e)}})),define("metaserver/static/js/modules/clean/react/open_in_app/button",["require","exports","tslib","react","dig-components/buttons","metaserver/static/js/modules/clean/open_in_app/actions","metaserver/static/js/modules/core/i18n"],(function(e,t,r,a,s,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenInAppButton=void 0,a=r.__importDefault(a);class n extends a.default.Component{constructor(e){super(e),this.handleClick=()=>{i.openInApp(this.props.urls)}}componentWillUnmount(){i.cleanUp()}render(){return a.default.createElement(s.Button,{className:"control__button open-in-app-button",variant:"primary",onClick:this.handleClick},o.intl.formatMessage({id:"Zosqxj",defaultMessage:"Open in app"}))}}t.OpenInAppButton=n,n.displayName="OpenInAppButton"})),define("metaserver/static/js/modules/clean/react/branding/branding_modal_controller",["require","exports","tslib","react","dig-components/modal","typescript/component_libraries/pro-ui/src/components/branding/background/index","typescript/component_libraries/pro-ui/src/components/branding/prop_utils","metaserver/static/js/modules/clean/react/components/css","metaserver/static/js/modules/clean/react/hooks/storage","typescript/component_libraries/pro-ui/src/components/branding/cover_modal/index"],(function(e,t,r,a,s,i,o,n,l,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrandingModalController=t.UnstyledBrandingModalController=t.canBrandingModalRender=void 0,a=r.__importDefault(a);const u={initialValue:{isModalOpen:!0},key:"BRANDING_MODAL_CONTROLLER"};t.canBrandingModalRender=function(e,t){return o.areModalPropsSet(o.mapToBrandingProps(e,t))},t.UnstyledBrandingModalController=({brandingInfo:e,closeButtonText:t,sharedLinkInfo:r})=>{if(null==e?void 0:e.isEnhancedBrandingEnabled)return null;const n=o.mapToBrandingProps(r,e),[{isModalOpen:p},d]=l.useSessionStorage(u);return a.default.useEffect(()=>s.Modal.setAppElement(document.getElementById("embedded-app")||document.body),[]),o.areModalPropsSet(n)?a.default.createElement(c.CoverModal,{onClose:function(){d({isModalOpen:!1})},open:p,background:a.default.createElement(i.ImageBackground,{src:n.orgBackgroundUrl}),orgLogoUrl:n.orgLogoUrl,orgName:n.orgName,closeButtonText:t}):null},t.UnstyledBrandingModalController.displayName="UnstyledBrandingModalController",t.BrandingModalController=n.requireCssWithComponent(t.UnstyledBrandingModalController,["/static/css/dig-components/index.web-vflDvlKi_.css","/static/js/typescript/component_libraries/pro-ui/src/index.web-vfl7fyKnY.css"]),t.BrandingModalController.displayName="BrandingModalController"})),define("typescript/component_libraries/pro-ui/src/components/branding/branding_block/optional_branding_block",["require","exports","tslib","react","typescript/component_libraries/pro-ui/src/components/branding/branding_block/index","typescript/component_libraries/pro-ui/src/components/branding/prop_utils"],(function(e,t,r,a,s,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalBrandingBlock=void 0,a=r.__importDefault(a),t.OptionalBrandingBlock=({brandingInfo:e,className:t,sharedLinkInfo:r})=>{const{orgLogoUrl:o,orgName:n}=i.mapToBrandingProps(r,e);return o&&n&&!(null==e?void 0:e.isEnhancedBrandingEnabled)?a.default.createElement(s.BrandingBlock,{className:t,orgLogoUrl:o,orgName:n}):null},t.OptionalBrandingBlock.displayName="OptionalBrandingBlock",t.OptionalBrandingBlock.displayName="OptionalBrandingBlock"})),define("typescript/component_libraries/pro-ui/src/components/branding/prop_utils",["require","exports","typescript/component_libraries/pro-ui/src/common/premium_kit/asset_utils"],(function(e,t,r){"use strict";function a(e){const t=null==e?void 0:e.backgroundAsset;let a=void 0;if(t&&r.isAssetTypeImage(t)){a=t.graphic.value.original_url}return{orgBackgroundUrl:a,orgLogoUrl:null==e?void 0:e.logoUrl,orgName:null==e?void 0:e.organizationName}}Object.defineProperty(t,"__esModule",{value:!0}),t.areModalPropsSet=t.mapToBrandingProps=void 0,t.mapToBrandingProps=function(e,t){return(null==e?void 0:e.ownerTeamName)?(null==e?void 0:e.teamMemberBrandingPolicyEnabled)?a(t):(function(e){return{orgBackgroundUrl:null==e?void 0:e.ownerTeamBackground,orgLogoUrl:null==e?void 0:e.ownerTeamLogo,orgName:null==e?void 0:e.ownerTeamName}})(e):a(t)},t.areModalPropsSet=function(e){return Boolean((null==e?void 0:e.orgBackgroundUrl)&&(null==e?void 0:e.orgLogoUrl)&&(null==e?void 0:e.orgName))}})),define("metaserver/static/js/modules/clean/react/file_viewer/location_utils",["require","exports","tslib","metaserver/static/js/modules/clean/react/file_viewer/constants","metaserver/static/js/modules/clean/history","metaserver/static/js/modules/core/exception"],(function(e,t,r,a,s,i){"use strict";function o(e,t){if(e&&!(t<=0))return e.split("/").slice(0,t+1).join("/")}function n(e,t){const r=s.default.get_uri();return t?r.updateQuery(e,t):r.removeQuery(e),r}function l(e){s.default.push_state(e.getPath(),e.getQuery())}Object.defineProperty(t,"__esModule",{value:!0}),t.updatePageQuery=t.getPageQuery=t.getFileSubpath=t.updateFileSubpathQuery=t.shortenFileSubpathBy=t.truncateFileSubpath=t.addToFileSubpath=t.getFilenameFromLocation=void 0,s=r.__importDefault(s),i=r.__importStar(i),t.getFilenameFromLocation=function(e){return e?e.query.preview:""},t.addToFileSubpath=function(e,t){return e?`${e}/${t}`:`/${t}`},t.truncateFileSubpath=o,t.shortenFileSubpathBy=function(e,t){if(!e)return;if(t<=0)return e;const r=e.split("/");return o(e,r.length-t-1)},t.updateFileSubpathQuery=function(e){l(n(a.SubpathQueryKey,e))},t.getFileSubpath=function(e){const t=e.query[a.SubpathQueryKey];let r;if(r=t instanceof Array?t.length?t[0]:void 0:t,!r||0===r.indexOf("/"))return r;i.reportStack("path malformed",{severity:i.SEVERITY.NONCRITICAL,exc_extra:{fileSubpath:r}})},t.getPageQuery=function(e){const t=e.query[a.PageQueryKey];if(!t)return;const r=+t;return r||void 0},t.updatePageQuery=function(e){e?e>0&&l(n(a.PageQueryKey,e.toString())):l(n(a.PageQueryKey,null))}})),define("metaserver/static/js/modules/clean/react/file_viewer/url_utils",["require","exports","tslib","metaserver/static/js/modules/clean/history","metaserver/static/js/modules/core/browser"],(function(e,t,r,a,s){"use strict";function i(e){a.default.push_state(e.getPath(),e.getQuery())}Object.defineProperty(t,"__esModule",{value:!0}),t.openFile=t.closeFile=t.getCurrentFolderHref=t.linkClickHandler=void 0,a=r.__importDefault(a),s=r.__importStar(s),t.linkClickHandler=function(e){return t=>{t.ctrlKey||t.metaKey||e(t)}},t.getCurrentFolderHref=function(){const e=s.get_uri();return e.removeQuery("preview"),e},t.closeFile=function(){(function(e){const t=a.default.get_uri();t.removeQuery(e),i(t)})("preview")},t.openFile=function(e){(function(e,t){const r={};r[e]=t;const s=a.default.get_uri();s.updateQuery(r),i(s)})("preview",e.filename)}})),define("metaserver/static/js/modules/clean/react/hooks/storage",["require","exports","tslib","react"],(function(e,t,r,a){"use strict";function s(e,{decode:t=JSON.parse,encode:r=JSON.stringify,initialValue:s,key:i}){const[o,n]=a.default.useState(()=>{try{const r=null==e?void 0:e.getItem(i);return null!==r?t(r):s}catch(e){return s}});return[o,function(t){try{null==e||e.setItem(i,r(t)),n(t)}catch(e){}}]}Object.defineProperty(t,"__esModule",{value:!0}),t.useSessionStorage=t.useLocalStorage=void 0,a=r.__importDefault(a),t.useLocalStorage=function(e){let t;try{t=window.localStorage}catch(e){t={}}return s(t,e)},t.useSessionStorage=function(e){let t;try{t=window.sessionStorage}catch(e){t={}}return s(t,e)}})),define("metaserver/static/js/modules/clean/react/location/with_location",["require","exports","tslib","react","metaserver/static/js/modules/clean/react/location/types","metaserver/static/js/modules/core/browser","metaserver/static/js/modules/clean/history","metaserver/static/js/modules/clean/react/components/helpers"],(function(e,t,r,a,s,i,o,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withLocation=void 0,a=r.__importDefault(a),i=r.__importStar(i),o=r.__importDefault(o);const l=e=>({location:e});t.withLocation=function(e,t=l){var r;return(r=class extends a.default.PureComponent{constructor(e){super(e),this.onLocationChange=(e,r)=>{this.setState(t(new s.Location(`${this.basePathComponent}/${decodeURIComponent(e)}`,r),this.props))};const r=i.get_uri(),a=r.getPath();this.basePathComponent=`/${a.split("/")[1]}`,this.state=t(s.Location.fromURI(r),e)}componentDidMount(){o.default.add_callback(this.basePathComponent,this.onLocationChange,!0)}componentWillUnmount(){o.default.remove_callback(this.basePathComponent,this.onLocationChange)}render(){return a.default.createElement(e,Object.assign({},this.props,this.state))}}).displayName=`WithLocation(${n.getDisplayName(e)})`,r}})),define("typescript/component_libraries/pro-ui/src/common/premium_kit/asset_utils",["require","exports","typescript/component_libraries/pro-ui/src/common/premium_kit/types"],(function(e,t,r){"use strict";function a(e){return!!e.color_hex&&!e.graphic}function s(e){var t,r;return!!e.color_hex&&"video"===(null===(r=null===(t=e.graphic)||void 0===t?void 0:t.value)||void 0===r?void 0:r[".tag"])}function i(e){var t,r;return!!e.color_hex&&"image"===(null===(r=null===(t=e.graphic)||void 0===t?void 0:t.value)||void 0===r?void 0:r[".tag"])}Object.defineProperty(t,"__esModule",{value:!0}),t.isAssetTypeImage=t.isAssetTypeVideo=t.isAssetTypeColor=t.getAssetType=void 0,t.getAssetType=function(e){return a(e)?r.AssetType.Color:s(e)?r.AssetType.Video:i(e)?r.AssetType.Image:r.AssetType.Other},t.isAssetTypeColor=a,t.isAssetTypeVideo=s,t.isAssetTypeImage=i})),define("typescript/component_libraries/pro-ui/src/common/premium_kit/types",["require","exports"],(function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AssetType=void 0,(r=t.AssetType||(t.AssetType={})).Image="image",r.Video="video",r.Color="color",r.Other="other"})),define("metaserver/static/js/modules/clean/react/premium_kit/errors",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PremiumKitValidationError=t.PremiumKitError=void 0;class r{constructor(e){this.message=e}}t.PremiumKitError=r;t.PremiumKitValidationError=class extends r{constructor(e){super("Validation errors found."),this.errors=e}}})),define("metaserver/static/js/modules/clean/react/premium_kit/upload_provider",["require","exports","tslib","metaserver/static/js/modules/clean/react/premium_kit/api","metaserver/static/js/modules/clean/react/premium_kit/errors","metaserver/static/js/modules/clean/react/premium_kit/types","metaserver/static/js/modules/clean/react/upload_kit/lib/processors","metaserver/static/js/modules/clean/react/upload_kit/lib/upload_block","metaserver/static/js/modules/clean/react/upload_kit/uploader/context","metaserver/static/js/modules/clean/viewer","react"],(function(e,t,r,a,s,i,o,n,l,c,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UploadProvider=t.DEFAULT_MAX_FILE_SIZE_IN_MB=void 0,u=r.__importDefault(u);const p=[".ai",".bmp",".eps",".gif",".indd",".jpeg",".jpg",".otf",".png",".psd",".svg",".svgz",".tif",".tiff",".ttf",".wbmp",".webp"];t.DEFAULT_MAX_FILE_SIZE_IN_MB=5;const d={[i.AssetLibraryId.BrandingBackground]:{maxFileSize:1048576*t.DEFAULT_MAX_FILE_SIZE_IN_MB,selectMultiple:!1,fileExtensions:p},[i.AssetLibraryId.BrandingLogo]:{maxFileSize:1048576*t.DEFAULT_MAX_FILE_SIZE_IN_MB,selectMultiple:!1,fileExtensions:p},[i.AssetLibraryId.CustomLogo]:{maxFileSize:1048576*t.DEFAULT_MAX_FILE_SIZE_IN_MB,selectMultiple:!1,fileExtensions:p}};class m extends u.default.Component{constructor(){super(...arguments),this.uploadBlock=(e,t)=>{const r=c.Viewer.get_viewer().get_user_by_id(this.props.userId);return n.uploadBlock(r.id,r.root_ns_id,e.bytes,t)},this.commitBlocksBatch=e=>Promise.all(e.map(e=>a.addAssetByBlock(this.props.userId,this.props.assetId,e.tokens,this.props.assetLibraryId).then(e=>{this.props.onBlocksCommitted&&this.props.onBlocksCommitted(e)}))),this.processFiles=(e,t,r)=>{if(t.length)throw new s.PremiumKitValidationError(t);return o.processFilesWithRenaming(e,t,r)}}render(){return u.default.createElement(l.UploadProvider,Object.assign({processFiles:this.processFiles,commitBlocksBatch:this.commitBlocksBatch,uploadBlock:this.uploadBlock},d[this.props.assetLibraryId],this.props),this.props.children)}}t.UploadProvider=m,m.displayName="PremiumKitUploadProvider"})),define("metaserver/static/js/modules/clean/react/workflows/i18n/apply_translation",["require","exports","metaserver/static/js/modules/core/i18n"],(function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyTranslation=void 0,t.applyTranslation=function(e){return"Test string"===e.text&&"this is an unused string for sample purposes only"===e.description?r.intl.formatMessage({id:"yZXoct",defaultMessage:"Test string"}):"Upgrade"===e.text&&"Upgrade Dropbox account"===e.description?r.intl.formatMessage({id:"Mc+U9E",defaultMessage:"Upgrade"}):"You’re in trial mode."===e.text&&"This will be shown to basic and plus users when they test out watermarking"===e.description&&"watermarking"===e.project?r.intl.formatMessage({id:"0jP5B/",defaultMessage:"You’re in trial mode."}):"Upgrade to Professional to apply your watermark."===e.text&&"When basic or plus users test out a professional feature such as watermarking, they will not be able to save their changes until they upgrade"===e.description&&"watermarking"===e.project?r.intl.formatMessage({id:"XAmQfp",defaultMessage:"Upgrade to Professional to apply your watermark."}):"Upgrade to Professional for advanced features"===e.text&&"When basic or plus users test out a professional feature such as watermarking, they will not be able to save their changes until they upgrade"===e.description&&"watermarking"===e.project?r.intl.formatMessage({id:"GlPgxg",defaultMessage:"Upgrade to Professional for advanced features"}):"Upgrade to Professional to get watermarking"===e.text&&"When basic or plus users test out a professional feature such as watermarking, they will not be able to save their changes until they upgrade"===e.description&&"watermarking"===e.project?r.intl.formatMessage({id:"VlErup",defaultMessage:"Upgrade to Professional to get watermarking"}):"Protect work right in Dropbox"===e.text&&"Value prop: Users can protect their images/pdfs by watermarking them right in Dropbox"===e.description&&"watermarking"===e.project?r.intl.formatMessage({id:"8h+ZVh",defaultMessage:"Protect work right in Dropbox"}):"Apply watermarks quickly"===e.text&&"Value prop: Users can apply watermarks to their pdf/images quickly"===e.description&&"watermarking"===e.project?r.intl.formatMessage({id:"uPK3Ke",defaultMessage:"Apply watermarks quickly"}):"Create custom watermarks"===e.text&&"Value prop: Users can create custom watermarks (e.g. changing text, uploading an image)"===e.description&&"watermarking"===e.project?r.intl.formatMessage({id:"STI9Ug",defaultMessage:"Create custom watermarks"}):"Protect work with watermarking"===e.text&&"Value prop: Users can protect their images/pdfs by watermarking them in Dropbox"===e.description&&"watermarking"===e.project?r.intl.formatMessage({id:"0e5Pxx",defaultMessage:"Protect work with watermarking"}):"Get %(pro_space_limit)s of storage"===e.text&&"Value prop: Users get more storage if they upgrade to Professional"===e.description&&"watermarking"===e.project?r.intl.formatMessage({id:"SSoF5o",defaultMessage:"Get {pro_space_limit} of storage"},{pro_space_limit:e.pro_space_limit}):"Free up hard drive space"===e.text&&"Value prop: Users can free up hard drive space if they upgrade to Professional"===e.description&&"watermarking"===e.project?r.intl.formatMessage({id:"oG1J+2",defaultMessage:"Free up hard drive space"}):"Make a copy"===e.text&&"As in: save the markup file as a copy"===e.description&&"watermarking"===e.project?r.intl.formatMessage({id:"NhIxxD",defaultMessage:"Make a copy"}):"Replace original"===e.text&&"As in: overwrite this file with markup file"===e.description&&"watermarking"===e.project?r.intl.formatMessage({id:"kOdY2i",defaultMessage:"Replace original"}):"Save"===e.text&&"Save the file"===e.description&&"watermarking"===e.project?r.intl.formatMessage({id:"T45O2I",defaultMessage:"Save"}):"Try Professional free"===e.text&&"Try Dropbox Professional for free"===e.description?r.intl.formatMessage({id:"EwtFU3",defaultMessage:"Try Professional free"}):"Set expiration dates for file requests"===e.text&&"Value prop: Users can set expiration dates for their file requests"===e.description?r.intl.formatMessage({id:"M2xkJm",defaultMessage:"Set expiration dates for file requests"}):"Add an image or text watermark to save"===e.text&&"As in: notifying user they cannot save watermark if no image uploaded or text set"===e.description&&"watermarking"===e.project?r.intl.formatMessage({id:"RwsOX3",defaultMessage:"Add an image or text watermark to save"}):null}})),define("metaserver/static/js/modules/clean/react/workflows/i18n/with_translations",["require","exports","tslib","react","typescript/component_libraries/pro-ui/src/common/i18n/index","metaserver/static/js/modules/core/i18n","metaserver/static/js/modules/clean/react/components/helpers","metaserver/static/js/modules/clean/react/workflows/i18n/apply_translation","metaserver/static/js/modules/clean/display_format"],(function(e,t,r,a,s,i,o,n,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withTranslations=void 0,a=r.__importDefault(a),t.withTranslations=function(e){const t=t=>a.default.createElement(s.TranslationProvider,{applyTranslation:n.applyTranslation,formatBytes:l.format_bytes,formatPercent:e=>i.intl.formatNumber(e/100,{style:"percent"}),isEnvExternal:!0},a.default.createElement(e,Object.assign({},t)));return t.displayName=`WithTranslations(${o.getDisplayName(e)})`,t}})),define("typescript/component_libraries/pro-ui/src/common/i18n/index",["require","exports","tslib","react","prop-types"],(function(e,t,r,a,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TranslationProvider=t.IntlPluralString=t.IntlString=void 0,a=r.__importStar(a),s=r.__importDefault(s),t.IntlString=(e,t)=>{if(t.applyTranslation?t.applyTranslation(e):null)return a.createElement("span",null,t.applyTranslation(e));{let r={};return t.isEnvExternal||(r={textShadow:"2px 2px 0px red"}),a.createElement("span",{style:r},e.text)}},t.IntlString.displayName="IntlString",t.IntlString.contextTypes={applyTranslation:s.default.func},t.IntlPluralString=(e,r)=>t.IntlString(e,r),t.IntlPluralString.displayName="IntlPluralString",t.IntlPluralString.contextTypes={applyTranslation:s.default.func};class i extends a.Component{getChildContext(){return{applyTranslation:this.props.applyTranslation,formatBytes:this.props.formatBytes,formatPercent:this.props.formatPercent,isEnvExternal:this.props.isEnvExternal}}render(){return a.createElement("div",null,this.props.children)}}t.TranslationProvider=i,i.displayName="TranslationProvider",i.childContextTypes={applyTranslation:s.default.func,formatBytes:s.default.func,formatPercent:s.default.func,isEnvExternal:s.default.bool}})),define("typescript/component_libraries/pro-ui/src/components/trial/trial_popover_content/index",["require","exports","tslib","react","prop-types","typescript/component_libraries/pro-ui/src/common/i18n/index","spectrum/button/index","spectrum/icon_form/index"],(function(e,t,r,a,s,i,o,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TrialPopoverContent=t.ValueProp=t.ValueProp3=t.ValueProp2=t.ValueProp1=t.Title=void 0,a=r.__importStar(a),s=r.__importDefault(s),t.Title=({variant:e})=>{switch(e){case"watermarking_wm":return a.createElement(i.IntlString,{text:"Upgrade to Professional to get watermarking",description:"When basic or plus users test out a professional feature such as watermarking, they will not be able to save their changes until they upgrade",project:"watermarking"});case"file_requests":return a.createElement(i.IntlString,{text:"Upgrade to Professional for advanced features",description:"When basic or plus users test out a professional feature such as watermarking, they will not be able to save their changes until they upgrade",project:"watermarking"});default:return null}},t.ValueProp1=({variant:e})=>{switch(e){case"watermarking_wm":return a.createElement(i.IntlString,{text:"Protect work right in Dropbox",description:"Value prop: Users can protect their images/pdfs by watermarking them right in Dropbox",project:"watermarking"});case"file_requests":return a.createElement(i.IntlString,{text:"Set expiration dates for file requests",description:"Value prop: Users can set expiration dates for their file requests"});default:return null}},t.ValueProp2=e=>{switch(e.variant){case"watermarking_wm":return a.createElement(i.IntlString,{text:"Apply watermarks quickly",description:"Value prop: Users can apply watermarks to their pdf/images quickly",project:"watermarking"});case"file_requests":return a.createElement(i.IntlString,{text:"Get %(pro_space_limit)s of storage",pro_space_limit:e.proSpaceLimit||"",description:"Value prop: Users get more storage if they upgrade to Professional",project:"watermarking"});default:return null}},t.ValueProp2.contextTypes={formatBytes:s.default.func},t.ValueProp3=({variant:e})=>{switch(e){case"watermarking_wm":return a.createElement(i.IntlString,{text:"Create custom watermarks",description:"Value prop: Users can create custom watermarks (e.g. changing text, uploading an image)",project:"watermarking"});case"file_requests":return a.createElement(i.IntlString,{text:"Free up hard drive space",description:"Value prop: Users can free up hard drive space if they upgrade to Professional",project:"watermarking"});default:return null}},t.ValueProp=({children:e})=>a.createElement("span",{className:"value-prop"},a.createElement(n.IconForm,{className:"value-prop__check",name:"check"}),e),t.TrialPopoverContent=({variant:e,proSpaceLimit:r,onClick:s})=>a.createElement("div",{className:"trial-popover-content",tabIndex:0},a.createElement("div",{className:"trial-popover-content__title"},a.createElement(t.Title,{variant:e})),a.createElement("div",{className:"trial-popover-content__value-props"},a.createElement(t.ValueProp,null,a.createElement(t.ValueProp1,{variant:e})),a.createElement(t.ValueProp,null,a.createElement(t.ValueProp2,{variant:e,proSpaceLimit:r})),a.createElement(t.ValueProp,null,a.createElement(t.ValueProp3,{variant:e}))),a.createElement(o.Button,{variant:"primary",onClick:s,shouldWrapContent:!0},a.createElement(i.IntlString,{text:"Try Professional free",description:"Try Dropbox Professional for free"})))})); //# sourceMappingURL=pkg-pro-ui.min.js-vflS_vJQE.map