!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c5ed6b2f-02d4-310e-b190-b4ff1f3ac06a")}catch(e){}}(); define(["exports","./c_download_components_post-download-pre-susi-modal","./e_file_viewer_static_scl_page_folder","./c_core_i18n","react","./c_react-use_misc_util","./c_flux_action_type","./e_core_exception","./c_src_sink_index","./c_init_data_debug_panel","./c_lodash-es_lodash","./c_api_v2_routes_team_provider","./e_edison","./c_pap-events_enums_flexible_sharing_entry_point_variant-utils","./c_pap-events_browse_view_folder_picker","./e_data_modules_stormcrow","./c_core_notify","react-dom","metaserver/static/js/langpack"],(function(e,o,t,a,l,n,i,r,s,d,_,c,g,u,m,f,w,p,S){"use strict";function M(e){return e&&e.__esModule?e:{default:e}}var E=M(l);const D=({encryptionOptions:e,logUserAction:n,isFolder:i,shareToken:r,linkUrl:s,handleClick:d,implicitTOSVariant:_,webSignInTag:c})=>{const[g,u]=E.default.useState(!0),m=t.useEmitter();l.useEffect((()=>{m.select(t.ON_MOUNT_POST_DOWNLOAD_MODAL).emit(null)}),[m]);const f=()=>{u(!1),null==n||n("post_download_signin_modal_close","post_download_signin_modal")},w=a.intl.formatMessage({id:"RfGyPH",defaultMessage:"Close"});return E.default.createElement(t.Modal$1,{open:g,isCentered:!0,onRequestClose:f},E.default.createElement(t.Modal$1.Header,{hasBottomSpacing:"title-standard",className:"naming-conventions__header"},E.default.createElement(o.RemoteWorkHero,{aspectRatio:"16:9"})),E.default.createElement(t.Modal$1.Body,null,i?E.default.createElement(t.Title,null,a.intl.formatMessage({id:"gGscZD",defaultMessage:"Your folder is downloading"})):E.default.createElement(t.Title,null,a.intl.formatMessage({id:"I4X18Q",defaultMessage:"Your file is downloading"})),E.default.createElement("div",{style:{marginTop:"var(--dig-spacing__micro__large)"}},E.default.createElement(t.Text,null,a.intl.formatMessage({id:"F2Wlhv",defaultMessage:"In the meantime, sign up for Dropbox to have secure access to all your files. "}))),E.default.createElement(t.Text,{tagName:"span"},a.intl.formatMessage({id:"NoO24L",defaultMessage:"Collaborate with friends, family, and coworkers from any device."}))),E.default.createElement(t.Modal$1.Footer,null,E.default.createElement(t.Button,{variant:"transparent",onClick:f},w),E.default.createElement(t.Button,{variant:"opacity",onClick:()=>{d(t.Mode.LOGIN,t.AuthMode.LOGIN,r,s,e,_,c,t.AuthDialogPreviousElementTag.POST_DOWNLOAD_MODAL_LOG_IN)}},a.intl.formatMessage({id:"VbukJp",defaultMessage:"Log in"})),E.default.createElement(t.Button,{variant:"primary",onClick:()=>{d(t.Mode.REGISTER,t.AuthMode.REGISTER,r,s,e,_,c,t.AuthDialogPreviousElementTag.POST_DOWNLOAD_MODAL_SIGN_UP)}},a.intl.formatMessage({id:"5KEf7W",defaultMessage:"Sign up"}))))};const T=(e,o)=>{const a=e&&e.linkType===t.SharedLinkType.Content?t.ShareTibEventLogger.get_scl_extra_for_logging(e,o):t.ShareTibEventLogger.get_shmodel_extra_for_logging(e,o);return t.ShareTibEventLogger.log_unauth("VIEW_POST_DOWNLOAD_SIGNIN_SIGNUP_MODAL",t.SHARE_ACTION_ORIGIN_TYPE.PREVIEW_PAGE,a)};e.PostDownloadPreSUSIModal=o.PostDownloadPreSUSIModal,e.getIsTimeEligibleToShowPostDownloadPreSUSIModal=o.getIsTimeEligibleToShowPostDownloadPreSUSIModal,e.DownloadFormatting=t.formatting_esnext,e.DownloadWarningModal=t.DownloadWarningModal,e.PostSignupDownloadModal=t.PostSignupDownloadModal,e.PreDownloadSUSIModalFooter=t.PreDownloadSUSIModalFooter,e.downloadFileOrFolder=t.downloadFileOrFolder,e.fetchFileAsBytes=t.fetchFileAsBytes,e.isDownloadAllowed=t.isDownloadAllowed,e.showPostDownloadSignInModal=e=>{var o;const a="dbx_previews_log_out_download_modal";if(function(e){const o=window.localStorage.getItem(e);if(!o)return!0;const t=JSON.parse(o);if((new Date).getTime()>t)return window.localStorage.removeItem(e),!0;return!1}(a)){t.Modal.showInstance(E.default.createElement(D,{...e})),e.isFolder?T(e.shareToken,e.linkUrl):null===(o=e.logUserAction)||void 0===o||o.call(e,"show_post_download_signin_modal","download");const l=(new Date).getTime()+864e5;window.localStorage.setItem(a,JSON.stringify(l))}}})); //# sourceMappingURL=c_features_download_index.js-vflfZkd8s.map //# debugId=c5ed6b2f-02d4-310e-b190-b4ff1f3ac06a