define("metaserver/static/js/modules/clean/pnm/constants",["require","exports"],(function(_,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BACKUP_EXTS=e.EXTERNAL_DRIVE_EXT=e.COMPUTER_BACKUP_EXT=e.SUPPORTED_LINK_NODE_CLICK_ACTIONS=e.POST_SETUP_LINK_NODES=e.PRE_SETUP_LINK_NODES=e.PASSWORDS_POST_SETUP_ACTION=e.VAULT_POST_SETUP_ACTION=e.BACKUP_PRE_SETUP_ACTION=e.PASSWORDS_PRE_SETUP_ACTION=e.VAULT_PRE_SETUP_ACTION=void 0,e.VAULT_PRE_SETUP_ACTION="life_vault_pre_setup",e.PASSWORDS_PRE_SETUP_ACTION="passwords_pre_setup",e.BACKUP_PRE_SETUP_ACTION="device_folder_pre_setup",e.VAULT_POST_SETUP_ACTION="life_vault_post_setup",e.PASSWORDS_POST_SETUP_ACTION="passwords_post_setup",e.PRE_SETUP_LINK_NODES=[e.VAULT_PRE_SETUP_ACTION,e.PASSWORDS_PRE_SETUP_ACTION,e.BACKUP_PRE_SETUP_ACTION],e.POST_SETUP_LINK_NODES=[e.VAULT_POST_SETUP_ACTION,e.PASSWORDS_POST_SETUP_ACTION],e.SUPPORTED_LINK_NODE_CLICK_ACTIONS=[e.PASSWORDS_POST_SETUP_ACTION].concat(e.PRE_SETUP_LINK_NODES),e.COMPUTER_BACKUP_EXT="dbx-backup",e.EXTERNAL_DRIVE_EXT="dbx-external-drive",e.BACKUP_EXTS=[e.COMPUTER_BACKUP_EXT,e.EXTERNAL_DRIVE_EXT]})),define("metaserver/static/js/modules/clean/pnm/utils",["require","exports","tslib","metaserver/static/js/modules/clean/pnm/constants","metaserver/static/js/modules/clean/filepath/filepath"],(function(_,e,n,t,i){"use strict";function T(_){var e,n,t;const i=null===(e=null==_?void 0:_.link_node)||void 0===e?void 0:e.action;return null!==(t=null!==(n=null==i?void 0:i[".tag"])&&void 0!==n?n:i)&&void 0!==t?t:null}Object.defineProperty(e,"__esModule",{value:!0}),e.getDisplayedFilename=e.shouldHideExtension=e.isSupportedLinkNodeClickAction=e.hasValidLinkNode=e.isPreSetupLinkNode=e.getLinkNodeAction=void 0,i=n.__importStar(i),e.getLinkNodeAction=T,e.isPreSetupLinkNode=function(_){const e=T(_);return!(!e||""===e)&&t.PRE_SETUP_LINK_NODES.includes(e)},e.hasValidLinkNode=function(_){const e=T(_);return!(!e||"unknown_action"===e)},e.isSupportedLinkNodeClickAction=_=>{const e=T(_);return!(!e||""===e)&&t.SUPPORTED_LINK_NODE_CLICK_ACTIONS.includes(e)},e.shouldHideExtension=function(_){return!!(null==_?void 0:_.hide_extension)},e.getDisplayedFilename=_=>t.BACKUP_EXTS.includes(i.file_extension(_))?i.filename_without_extension(_):_})); //# sourceMappingURL=pkg-pnm.min.js-vfl-jeadC.map