вот код, где это происходит
Токен 'ng' является неожиданным токеном в номере столбца выражения. [vm.configurationSettable ('sftp', 'authenticationModeName') ng-init =], начиная с [ng-init =].
$templateCache.put('application/frontend/templates/modal-login-sftp.html','
<form>\n
<div class="input-wrapper float-fix" ng-if="vm.configurationSettable(\'sftp\', \'host\')">\n
<div style="display: none;" class="float-left width-host">\n {{ \'HOST\'|translate }}:\n
<br>\n
<input type="text" ng-model="configuration.sftp.host" ng-init="configuration.sftp.host =\'regnsftpdev.regeneron.com\'" readonly required ng-keypress="handleLoginKeyPress($event)" ng-if="vm.hostEntryIsText(\'sftp\')">\n
<select ng-if="!vm.hostEntryIsText(\'sftp\')" ng-model="configuration.sftp.host" class="form-control">\n
<option ng-repeat="host in vm.getHostOptions(\'sftp\')" ng-value="host">{{ host }}</option>\n </select>\n </div>\n
<div style="display: none;" class="spacer"></div>\n
<div style="display: none;" class="float-right width-port" ng-if="vm.configurationSettable(\'sftp\', \'port\')">\n {{ \'PORT\'|translate }}:\n
<br>
<input type="text" ng-model="configuration.sftp.port" placeholder="{{ defaults.sftp.port }}" ng-keypress="handleLoginKeyPress($event)">\n </div>\n </div>\n\n
<div id="username" class="input-wrapper" ng-if="vm.configurationSettable(\'sftp\', \'remoteUsername\')">\n
<label> {{ \'USERNAME\'|translate }}:\n </label>
<br>
<input pattern="^[^.]*$" id="remoteUserId" onkeydown="handleInputField()" type="text" ng-model="configuration.sftp.remoteUsername" name="user" required ng-keypress="handleLoginKeyPress($event)">\n </div>\n\n
<div id="password" class="input-wrapper" ng-if="vm.configurationSettable(\'sftp\', \'password\')">\n
<label> {{ \'PASSWORD\'|translate }}:\n </label>
<br>
<input ng-init="configuration.sftp.authenticationModeName = \'Password\'" type="password" ng-model="configuration.sftp.password" required ng-keypress="handleLoginKeyPress($event)">\n </div>\n\n
<div class="input-wrapper" ng-if="vm.configurationSettable(\'sftp\', \'initialDirectory\')">\n
<label id="directory-label"> {{ \'INITIAL_DIRECTORY\'|translate }}: (Optional)\n </label>
<br>
<input type="text" ng-model="configuration.sftp.initialDirectory" required ng-keypress="handleLoginKeyPress($event)">\n </div>\n\n
<div style="display: none;" class="input-wrapper" ng-if="vm.configurationSettable(\'sftp\', \'authenticationModeName\') ng-init=" configuration.sftp.authenticationModeName=\ 'Password\' "">\n {{ \'AUTHENTICATION_TYPE\'|translate }}:\n
<br>\n
<select ng-model="configuration.sftp.authenticationModeName" ng-init="configuration.sftp.authenticationModeName = \'Password\'" class="form-control">\n
<option value="Password" translate>PASSWORD</option>\n
<option value="PublicKeyFile" translate>SSH_AUTH_MODE_PUBLIC_KEY_FILE</option>\n </select>\n </div>\n
<div style="display: none;" ng-show="vm.showDisabledSFTPAuthMessage()">\n <span translate>SFTP_AUTHENTICATION_DISABLED_MESSAGE</span>\n <a href="http://redirect.monstaftp.com/enable-ssh-auth" \n target="mftp-new" rel="noopener noreferrer" translate>SFTP_AUTHENTICATION_ENABLED_INSTRUCTIONS_MESSAGE</a>\n </div>\n
<div style="display: none;" class="input-wrapper" ng-if="vm.configurationSettable(\'sftp\', \'password\')" \n ng-show="configuration.sftp.authenticationModeName == \'Password\' || configuration.sftp.authenticationModeName == \'PublicKeyFile\'">\n <span ng-show="configuration.sftp.authenticationModeName == \'PublicKeyFile\'">{{ \'PRIVATE_KEY\'|translate }} </span>\n {{ \'PASSWORD\'|translate }}<span ng-show="configuration.sftp.authenticationModeName == \'PublicKeyFile\'"> {{ \'OPTIONAL_OPTIONAL\'|translate }}</span>:\n
<br>
<input type="password" ng-model="configuration.sftp.password" ng-keypress="handleLoginKeyPress($event)">\n </div>\n\n
<div style="display: none;" class="input-wrapper" ng-if="vm.configurationSettable(\'sftp\', \'privateKeyFilePath\')" \n ng-show="configuration.sftp.authenticationModeName == \'PublicKeyFile\' || configuration.sftp.authenticationModeName == \'HostKeyFile\'">\n {{ \'PRIVATE_KEY\'|translate }}:\n
<br>
<input type="text" ng-model="configuration.sftp.privateKeyFilePath" ng-keypress="handleLoginKeyPress($event)">\n </div>\n\n
<div style="display: none;" class="input-wrapper" ng-if="vm.configurationSettable(\'sftp\', \'publicKeyFilePath\')" \n ng-show="configuration.sftp.authenticationModeName == \'PublicKeyFile\' || configuration.sftp.authenticationModeName == \'HostKeyFile\'">\n {{ \'PUBLIC_KEY\'|translate }}:\n
<br>
<input type="text" ng-model="configuration.sftp.publicKeyFilePath" ng-keypress="handleLoginKeyPress($event)">\n </div>\n\n
<div id="logged-in" class="input-wrapper" ng-hide="vm.loginItemHidden(\'remember-login\')">\n
<input type="checkbox" ng-model="metaConfiguration.rememberLogin" name="login_save" value="1" tabindex="-1" id="id_sftp_login_save" ng-click="vm.rememberLoginToggle()">\n
<label class="login-cb-label" for="id_sftp_login_save">{{ \'KEEP_ME_LOGGED_IN\'|translate }}</label>\n </div>\n</form>');