a zip code crypto-currency system good for red ONLY

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. var __extends = (this && this.__extends) || (function () {
  2. var extendStatics = Object.setPrototypeOf ||
  3. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  4. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  5. return function (d, b) {
  6. extendStatics(d, b);
  7. function __() { this.constructor = d; }
  8. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  9. };
  10. })();
  11. (function (factory) {
  12. if (typeof module === "object" && typeof module.exports === "object") {
  13. var v = factory(require, exports);
  14. if (v !== undefined) module.exports = v;
  15. }
  16. else if (typeof define === "function" && define.amd) {
  17. define(["require", "exports", "../../util/util", "../app/app-constants", "./loading-component", "./loading-transitions", "../../navigation/view-controller"], factory);
  18. }
  19. })(function (require, exports) {
  20. "use strict";
  21. Object.defineProperty(exports, "__esModule", { value: true });
  22. var util_1 = require("../../util/util");
  23. var app_constants_1 = require("../app/app-constants");
  24. var loading_component_1 = require("./loading-component");
  25. var loading_transitions_1 = require("./loading-transitions");
  26. var view_controller_1 = require("../../navigation/view-controller");
  27. /**
  28. * @hidden
  29. */
  30. var Loading = (function (_super) {
  31. __extends(Loading, _super);
  32. function Loading(app, opts, config) {
  33. if (opts === void 0) { opts = {}; }
  34. var _this = this;
  35. opts.showBackdrop = util_1.isPresent(opts.showBackdrop) ? !!opts.showBackdrop : true;
  36. opts.enableBackdropDismiss = util_1.isPresent(opts.enableBackdropDismiss) ? !!opts.enableBackdropDismiss : false;
  37. opts.dismissOnPageChange = util_1.isPresent(opts.dismissOnPageChange) ? !!opts.dismissOnPageChange : false;
  38. _this = _super.call(this, loading_component_1.LoadingCmp, opts, null) || this;
  39. _this._app = app;
  40. _this.isOverlay = true;
  41. config.setTransition('loading-pop-in', loading_transitions_1.LoadingPopIn);
  42. config.setTransition('loading-pop-out', loading_transitions_1.LoadingPopOut);
  43. config.setTransition('loading-md-pop-in', loading_transitions_1.LoadingMdPopIn);
  44. config.setTransition('loading-md-pop-out', loading_transitions_1.LoadingMdPopOut);
  45. config.setTransition('loading-wp-pop-in', loading_transitions_1.LoadingWpPopIn);
  46. config.setTransition('loading-wp-pop-out', loading_transitions_1.LoadingWpPopOut);
  47. return _this;
  48. }
  49. /**
  50. * @hidden
  51. */
  52. Loading.prototype.getTransitionName = function (direction) {
  53. var key = (direction === 'back' ? 'loadingLeave' : 'loadingEnter');
  54. return this._nav && this._nav.config.get(key);
  55. };
  56. /**
  57. * @param {string} content sets the html content for the loading indicator.
  58. */
  59. Loading.prototype.setContent = function (content) {
  60. this.data.content = content;
  61. return this;
  62. };
  63. /**
  64. * @param {string} spinner sets the name of the SVG spinner for the loading indicator.
  65. */
  66. Loading.prototype.setSpinner = function (spinner) {
  67. this.data.spinner = spinner;
  68. return this;
  69. };
  70. /**
  71. * @param {string} cssClass sets additional classes for custom styles, separated by spaces.
  72. */
  73. Loading.prototype.setCssClass = function (cssClass) {
  74. this.data.cssClass = cssClass;
  75. return this;
  76. };
  77. /**
  78. * @param {boolean} showBackdrop sets whether to show the backdrop.
  79. */
  80. Loading.prototype.setShowBackdrop = function (showBackdrop) {
  81. this.data.showBackdrop = showBackdrop;
  82. return this;
  83. };
  84. /**
  85. * @param {number} dur how many milliseconds to wait before hiding the indicator.
  86. */
  87. Loading.prototype.setDuration = function (dur) {
  88. this.data.duration = dur;
  89. return this;
  90. };
  91. /**
  92. * Present the loading instance.
  93. *
  94. * @param {NavOptions} [navOptions={}] Nav options to go with this transition.
  95. * @returns {Promise} Returns a promise which is resolved when the transition has completed.
  96. */
  97. Loading.prototype.present = function (navOptions) {
  98. if (navOptions === void 0) { navOptions = {}; }
  99. return this._app.present(this, navOptions, app_constants_1.PORTAL_LOADING);
  100. };
  101. /**
  102. * Dismiss all loading components which have been presented.
  103. */
  104. Loading.prototype.dismissAll = function () {
  105. this._nav && this._nav.popAll();
  106. };
  107. return Loading;
  108. }(view_controller_1.ViewController));
  109. exports.Loading = Loading;
  110. });
  111. //# sourceMappingURL=loading.js.map