e.put("src/components/binding/bindApplicationForm.html",'<div class="bind-form">\n <form>\n <div class="form-group">\n <label>\n <h3>Create a binding for application <strong>{{ctrl.applicationName}}</strong></h3>\n </label>\n <span class="help-block">\n Bindings create a secret containing the necessary information for an application to use a service.\n </span>\n </div>\n </form>\n\n <label ng-if="!ctrl.allowNoBinding">\n Select a service:\n </label>\n <form name="ctrl.formName">\n <fieldset>\n <div class="radio">\n <div ng-if="ctrl.allowNoBinding" class="bind-service-selection">\n <label>\n <input type="radio" ng-model="ctrl.serviceToBind" ng-value="null">\n Do not bind at this time.\n </label>\n <div class="bind-description">\n <span class="help-block service-instance-name">\n Bindings can be created later from within a project.\n </span>\n </div>\n </div>\n <div ng-repeat="serviceInstance in ctrl.bindableServiceInstances" class="bind-service-selection">\n <label>\n <input type="radio" ng-model="ctrl.serviceToBind" ng-value="serviceInstance">\n {{ctrl.serviceClasses[serviceInstance.spec.clusterServiceClassRef.name].spec.externalMetadata.displayName || serviceInstance.spec.clusterServiceClassRef.name}}\n </label>\n <div class="bind-description">\n <span class="pficon pficon-info"\n ng-if="!(serviceInstance | isServiceInstanceReady)"\n data-content="This service is not yet ready. If you bind to it, then the binding will be pending until the service is ready."\n data-toggle="popover"\n data-trigger="hover">\n </span>\n <span class="help-block service-instance-name">\n {{serviceInstance.metadata.name}}\n </span>\n </div>\n </div>\n <h4 ng-if="!ctrl.bindableServiceInstances.length">\n <span class="pficon pficon-info" aria-hidden="true"></span>\n <span class="help-block service-instance-name">\n There are no bindable services in this project\n </span>\n </h4>\n </div>\n </fieldset>\n </form>\n</div>\n'),
e.put("src/components/binding/bindResults.html",'<div ng-if="!ctrl.error && !(ctrl.binding | isBindingFailed)">\n <div ng-if="ctrl.binding && !(ctrl.binding | isBindingReady)" class="results-status">\n <span class="fa fa-clock-o text-muted" aria-hidden="true"></span>\n <span class="sr-only">Pending</span>\n <div class="results-message">\n <h3>\n The binding is being created.\n </h3>\n <p class="results-message-details">This may take several minutes.</p>\n </div>\n </div>\n <div ng-if="(ctrl.binding | isBindingReady)">\n <div class="results-status">\n <span class="pficon pficon-ok" aria-hidden="true"></span>\n <span class="sr-only">Success</span>\n <div class="results-message">\n <h3>\n <span ng-if="ctrl.bindType === \'application\'">\n <strong>{{ctrl.serviceToBind}}</strong> has been bound to\n <strong>{{ctrl.applicationToBind}}</strong> successfully.\n </span>\n <span ng-if="ctrl.bindType !== \'application\'">\n The binding <strong>{{ctrl.binding.metadata.name}}</strong> has been created successfully.\n </span>\n </h3>\n <p class="results-message-details">\n The binding operation created the secret\n <a ng-if="ctrl.secretHref" ng-href="{{ctrl.secretHref}}">{{ctrl.binding.spec.secretName}}</a>\n <span ng-if="!ctrl.secretHref">{{ctrl.binding.spec.secretName}}</span>\n that you may need to reference in your application.\n <span ng-if="ctrl.showPodPresets">Its data will be available to your application as environment variables.</span>\n </p>\n </div>\n </div>\n <div class="alert alert-info results-info" ng-if="ctrl.bindType === \'application\'">\n <span class="pficon pficon-info" aria-hidden="true"></span>\n <span class="sr-only">Info</span>\n The binding secret will only be available to new pods. You will need to redeploy your application.\n </div>\n </div>\n</div>\n<div ng-if="ctrl.error || (ctrl.binding | isBindingFailed)">\n <div class="results-status">\n <span class="pficon pficon-error-circle-o text-danger" aria-hidden="true"></span>\n <span class="sr-only">Error</span>\n <div class="results-message">\n <h3>\n The binding could not be created.\n </h3>\n </div>\n </div>\n <div ng-if="ctrl.error" class="sub-title">\n <span ng-if="ctrl.error.data.message">\n {{ctrl.error.data.message | upperFirst}}\n </span>\n <span ng-if="!ctrl.error.data.message">\n An error occurred creating the binding.\n </span>\n </div>\n <div ng-if="!ctrl.error" class="sub-title">\n {{ctrl.binding | bindingFailedMessage}}\n </div>\n</div>\n'),
m.setUser(e,n),m.setToken(t,n),s.user=e,(r&&r.metadata&&r.metadata.name)!==(e&&e.metadata&&e.metadata.name)&&(u.log("AuthService.setUser(), user changed",r,e),f.fire(e));
varr=h.getUser();
h.setUser(e,n),h.setToken(t,n),s.user=e,(r&&r.metadata&&r.metadata.name)!==(e&&e.metadata&&e.metadata.name)&&(u.log("AuthService.setUser(), user changed",r,e),f.fire(e));
returne&&e.auth&&e.auth.token?(t=e.auth.token,u.log("AuthService.addAuthToRequest(), using token from request config",t)):(t=m.getToken(),u.log("AuthService.addAuthToRequest(), using token from user store",t)),t?("WATCH"===e.method?(e.protocols=e.protocols||[],_.isArray(e.protocols)||(e.protocols=[e.protocols]),0==e.protocols.length&&e.protocols.unshift("undefined"),e.protocols.unshift("base64url.bearer.authorization.k8s.io."+l.urlencode(t)),u.log("AuthService.addAuthToRequest(), added token protocol",e.protocols)):(e.headers.Authorization="Bearer "+t,u.log("AuthService.addAuthToRequest(), added token header",e.headers.Authorization)),!0):(u.log("AuthService.addAuthToRequest(), no token available"),!1);
returne&&e.auth&&e.auth.token?(t=e.auth.token,u.log("AuthService.addAuthToRequest(), using token from request config",t)):(t=h.getToken(),u.log("AuthService.addAuthToRequest(), using token from user store",t)),t?("WATCH"===e.method?(e.protocols=e.protocols||[],_.isArray(e.protocols)||(e.protocols=[e.protocols]),0==e.protocols.length&&e.protocols.unshift("undefined"),e.protocols.unshift("base64url.bearer.authorization.k8s.io."+l.urlencode(t)),u.log("AuthService.addAuthToRequest(), added token protocol",e.protocols)):(e.headers.Authorization="Bearer "+t,u.log("AuthService.addAuthToRequest(), added token header",e.headers.Authorization)),!0):(u.log("AuthService.addAuthToRequest(), no token available"),!1);
return!!t&&(g(t)?(s.log("Too many websocket open or close events for resource/context in a short period",e,t),!0):!!h(t)&&(s.log("Too many consecutive websocket close events for resource/context",e,t),!0));
return!!t&&(g(t)?(s.log("Too many websocket open or close events for resource/context in a short period",e,t),!0):!!m(t)&&(s.log("Too many consecutive websocket close events for resource/context",e,t),!0));