!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]="4f96fcc3-7070-39f9-9c68-61ac44028a77")}catch(e){}}(); define(["require","exports","react","./e_file_viewer_static_scl_page_folder","./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_react-use_misc_util","./c_core_i18n","metaserver/static/js/langpack","./c_core_notify","react-dom"],(function(e,n,o,i,t,r,l,_,s,a,c,g,d,u,p,f,h,m,E){"use strict";function v(e){return e&&e.__esModule?e:{default:e}}var S=v(o);const T=()=>{i.Modal.close()};n.closeLoginOrRegisterModal=T,n.openLoginOrRegisterModal=async({signupTag:n,folderShareToken:o,linkUrl:t,origin:r,encryptionOptions:l,loginContinuationUrl:_,mode:s,kind:a,folder:c,implicitTOSVariant:g,onAuthenticateSuccess:d,webSignInTag:u,onSignUpSuccess:p,postUpsellRedirectUrl:f,customFooterContent:h,onCancel:m=(()=>{}),isFolderAction:E,authDialogPreviousElement:v,sharedLinkInfo:I,experiments:k})=>{const R=(null==o?void 0:o.linkType)===i.SharedLinkType.Content?i.ShareTibEventLogger.get_scl_extra_for_logging(o,t):i.ShareTibEventLogger.get_shmodel_extra_for_logging(o,t);i.ShareTibEventLogger.log_unauth("VIEW_AUTH_PAGE",null!=r?r:i.SHARE_ACTION_ORIGIN_TYPE.PREVIEW_PAGE,{...R,...i.getContentExtraForLogging(c),signup_tag:n}),new Promise((function(n,o){e(["./c_auth_login_or_register_modal"],n,o)})).then((({LoginOrRegisterModal:e})=>{i.Modal.showInstance(S.default.createElement(e,{authDialogPreviousElement:v,downloadAction:null,id:"folder-preview-modal",initialMode:null!=s?s:i.Mode.REGISTER,kind:null!=a?a:i.LoginOrRegisterKind.IMMEDIATE,encryptionOptions:l,signup_tag:n,loggingExtra:{source:"shared_link_folder"},loginContinuationUrl:_,googleRegisterProps:{signupContinuationUrl:_},onAuthenticateSuccess:d,onSignUpSuccess:()=>p(),onCancel:()=>{m(),T()},webSignInTag:u,postUpsellRedirectUrl:f,customFooterContent:h,isFolderAction:E,sharedLinkInfo:I,experiments:k}))}))}})); //# sourceMappingURL=c_components_login-modal_login_or_register_modal.after-display.js-vflMmBkKN.map //# debugId=4f96fcc3-7070-39f9-9c68-61ac44028a77