@osovitny/anatoly 3.17.160 → 3.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/fesm2022/osovitny-anatoly.mjs +553 -522
  2. package/fesm2022/osovitny-anatoly.mjs.map +1 -1
  3. package/lib/billing/utils.d.ts +2 -1
  4. package/lib/core/converts/convert.d.ts +1 -1
  5. package/lib/core/guid.d.ts +1 -1
  6. package/lib/core/is.d.ts +5 -5
  7. package/lib/ui/components/base/components/component.d.ts +1 -1
  8. package/lib/ui/components/base/components/edit.component.d.ts +1 -1
  9. package/lib/ui/components/base/components/enum-edit.component.d.ts +1 -1
  10. package/lib/ui/components/data-grid/control-panel.component.d.ts +6 -5
  11. package/lib/ui/components/dropdownlists/country/country.dropdownlist.d.ts +1 -3
  12. package/lib/ui/directives/index.d.ts +1 -1
  13. package/lib/ui/directives/replacer/replacer.base.directive.d.ts +1 -1
  14. package/package.json +58 -60
  15. package/esm2022/lib/anatoly.module.mjs +0 -62
  16. package/esm2022/lib/billing/billing.module.mjs +0 -81
  17. package/esm2022/lib/billing/components/buttons/buyaccess-button.component.mjs +0 -104
  18. package/esm2022/lib/billing/components/buttons/subscribe-plan-button.component.mjs +0 -113
  19. package/esm2022/lib/billing/components/exports.mjs +0 -28
  20. package/esm2022/lib/billing/components/index.mjs +0 -31
  21. package/esm2022/lib/billing/components/order-summary/order-summary.component.mjs +0 -154
  22. package/esm2022/lib/billing/components/payment-methods/payment-methods.component.mjs +0 -106
  23. package/esm2022/lib/billing/components/payment-options/payment-options.component.mjs +0 -97
  24. package/esm2022/lib/billing/components/pm/braintree/braintree.component.mjs +0 -155
  25. package/esm2022/lib/billing/components/pm/paypal/paypal-button.component.mjs +0 -159
  26. package/esm2022/lib/billing/components/pm/paypal/paypal-subscribe-button.component.mjs +0 -149
  27. package/esm2022/lib/billing/components/pm/paypal/paypal.component.mjs +0 -317
  28. package/esm2022/lib/billing/components/pm/stripe/stripe.component.mjs +0 -109
  29. package/esm2022/lib/billing/exports.mjs +0 -19
  30. package/esm2022/lib/billing/models/paypal-models.mjs +0 -16
  31. package/esm2022/lib/billing/services/payments.service.mjs +0 -170
  32. package/esm2022/lib/billing/services/paypal-script.service.mjs +0 -90
  33. package/esm2022/lib/billing/utils.mjs +0 -28
  34. package/esm2022/lib/core/browser.mjs +0 -24
  35. package/esm2022/lib/core/consts/app-settings.mjs +0 -55
  36. package/esm2022/lib/core/consts/core-settings.mjs +0 -29
  37. package/esm2022/lib/core/consts/formats.mjs +0 -27
  38. package/esm2022/lib/core/consts/ga.mjs +0 -26
  39. package/esm2022/lib/core/consts/storageKeys.mjs +0 -23
  40. package/esm2022/lib/core/converts/convert.mjs +0 -103
  41. package/esm2022/lib/core/converts/dateConvert.mjs +0 -60
  42. package/esm2022/lib/core/converts/tz/tzParseTimezone.mjs +0 -122
  43. package/esm2022/lib/core/converts/tz/tzTokenizeDate.mjs +0 -101
  44. package/esm2022/lib/core/converts/xmlFormatter.mjs +0 -34
  45. package/esm2022/lib/core/core.module.mjs +0 -112
  46. package/esm2022/lib/core/dom.mjs +0 -153
  47. package/esm2022/lib/core/enums/billing.mjs +0 -56
  48. package/esm2022/lib/core/enums/enums.mjs +0 -35
  49. package/esm2022/lib/core/enums/index.mjs +0 -17
  50. package/esm2022/lib/core/exports.mjs +0 -67
  51. package/esm2022/lib/core/go/apps-go.service.mjs +0 -88
  52. package/esm2022/lib/core/go/go.service.mjs +0 -86
  53. package/esm2022/lib/core/guards/once-import.guard.mjs +0 -21
  54. package/esm2022/lib/core/guards/starter.guard.mjs +0 -46
  55. package/esm2022/lib/core/guid.mjs +0 -22
  56. package/esm2022/lib/core/interceptors/httpInterceptor.mjs +0 -161
  57. package/esm2022/lib/core/is.mjs +0 -98
  58. package/esm2022/lib/core/localization/localization.module.mjs +0 -45
  59. package/esm2022/lib/core/localization/localization.service.mjs +0 -164
  60. package/esm2022/lib/core/localization/localize.pipe.mjs +0 -83
  61. package/esm2022/lib/core/localization/settings.module.mjs +0 -103
  62. package/esm2022/lib/core/localization/utils.mjs +0 -41
  63. package/esm2022/lib/core/logging/globalErrorHandler.mjs +0 -41
  64. package/esm2022/lib/core/logging/logging.service.mjs +0 -40
  65. package/esm2022/lib/core/models/qs.mjs +0 -17
  66. package/esm2022/lib/core/notifications/alerts.mjs +0 -116
  67. package/esm2022/lib/core/notifications/interfaces/notification.mjs +0 -17
  68. package/esm2022/lib/core/notifications/services/notification-service.mjs +0 -83
  69. package/esm2022/lib/core/performance/stopwatch.mjs +0 -50
  70. package/esm2022/lib/core/services/appcontext.service.mjs +0 -186
  71. package/esm2022/lib/core/services/dm.service.mjs +0 -69
  72. package/esm2022/lib/core/services/google-analytics.service.mjs +0 -75
  73. package/esm2022/lib/core/services/idle.service.mjs +0 -77
  74. package/esm2022/lib/core/services/loading.service.mjs +0 -67
  75. package/esm2022/lib/core/services/script.service.mjs +0 -77
  76. package/esm2022/lib/core/services/starter.service.mjs +0 -85
  77. package/esm2022/lib/core/services/web-storage.service.mjs +0 -66
  78. package/esm2022/lib/core/subs.mjs +0 -31
  79. package/esm2022/lib/core/utils/qsutils.mjs +0 -84
  80. package/esm2022/lib/core/utils/utils.mjs +0 -112
  81. package/esm2022/lib/data/base/api.service.mjs +0 -94
  82. package/esm2022/lib/data/base/grid/grid-edit.service.mjs +0 -80
  83. package/esm2022/lib/data/base/grid/grid-read.service.mjs +0 -60
  84. package/esm2022/lib/data/data.module.mjs +0 -66
  85. package/esm2022/lib/data/exports.mjs +0 -29
  86. package/esm2022/lib/data/services/billing/currencies-api.service.mjs +0 -41
  87. package/esm2022/lib/data/services/billing/currencies-storage.service.mjs +0 -92
  88. package/esm2022/lib/data/services/billing/discountcodes-api.service.mjs +0 -37
  89. package/esm2022/lib/data/services/billing/payments-api.service.mjs +0 -64
  90. package/esm2022/lib/data/services/billing/subscriptions-api.service.mjs +0 -61
  91. package/esm2022/lib/data/services/billing/transactions-api.service.mjs +0 -43
  92. package/esm2022/lib/data/services/core-api.service.mjs +0 -44
  93. package/esm2022/lib/data/services/emails-api.service.mjs +0 -47
  94. package/esm2022/lib/external/fa.module.mjs +0 -45
  95. package/esm2022/lib/external/kendo.module.mjs +0 -179
  96. package/esm2022/lib/iam/b2c/b2c.mjs +0 -40
  97. package/esm2022/lib/iam/b2c/consts.mjs +0 -25
  98. package/esm2022/lib/iam/b2c/index.mjs +0 -21
  99. package/esm2022/lib/iam/configs.mjs +0 -109
  100. package/esm2022/lib/iam/consts.mjs +0 -22
  101. package/esm2022/lib/iam/exports.mjs +0 -22
  102. package/esm2022/lib/iam/guards/admin.guard.mjs +0 -46
  103. package/esm2022/lib/iam/guards/authentication.guard.mjs +0 -30
  104. package/esm2022/lib/iam/guards/index.mjs +0 -20
  105. package/esm2022/lib/iam/iam-pages.module.mjs +0 -57
  106. package/esm2022/lib/iam/iam-pages.routes.mjs +0 -45
  107. package/esm2022/lib/iam/iam.module.mjs +0 -84
  108. package/esm2022/lib/iam/pages/signin.page.mjs +0 -40
  109. package/esm2022/lib/iam/pages/signout.page.mjs +0 -40
  110. package/esm2022/lib/iam/pages/signup.page.mjs +0 -40
  111. package/esm2022/lib/iam/redirect.mjs +0 -29
  112. package/esm2022/lib/iam/services/auth.service.mjs +0 -436
  113. package/esm2022/lib/iam/storage.mjs +0 -42
  114. package/esm2022/lib/iam/utils.mjs +0 -49
  115. package/esm2022/lib/ui/components/base/components/component.mjs +0 -76
  116. package/esm2022/lib/ui/components/base/components/edit.component.mjs +0 -146
  117. package/esm2022/lib/ui/components/base/components/enum-edit.component.mjs +0 -92
  118. package/esm2022/lib/ui/components/base/dialog.mjs +0 -71
  119. package/esm2022/lib/ui/components/base/list.mjs +0 -100
  120. package/esm2022/lib/ui/components/base/pages/edit.page.mjs +0 -32
  121. package/esm2022/lib/ui/components/base/pages/page.mjs +0 -32
  122. package/esm2022/lib/ui/components/base/pages/paged.page.mjs +0 -68
  123. package/esm2022/lib/ui/components/card/card-body.component.mjs +0 -37
  124. package/esm2022/lib/ui/components/card/card-footer.component.mjs +0 -37
  125. package/esm2022/lib/ui/components/card/card-header.component.mjs +0 -51
  126. package/esm2022/lib/ui/components/card/card.component.mjs +0 -41
  127. package/esm2022/lib/ui/components/check-icon/check-icon.component.mjs +0 -43
  128. package/esm2022/lib/ui/components/copy-2-clipboard/copy-2-clipboard.component.mjs +0 -57
  129. package/esm2022/lib/ui/components/data-grid/control-panel.component.mjs +0 -201
  130. package/esm2022/lib/ui/components/datapager/datapager.component.mjs +0 -95
  131. package/esm2022/lib/ui/components/dropdownlists/country/country.dropdownlist.mjs +0 -96
  132. package/esm2022/lib/ui/components/dropdownlists/moderationstatus/moderationstatus.dropdownlist.mjs +0 -88
  133. package/esm2022/lib/ui/components/dropdownlists/publishstatus/publishstatus.dropdownlist.mjs +0 -88
  134. package/esm2022/lib/ui/components/dropdownlists/timezone/timezone.dropdownlist.mjs +0 -112
  135. package/esm2022/lib/ui/components/exports.mjs +0 -53
  136. package/esm2022/lib/ui/components/feature-will-be-ready/feature-will-be-ready.component.mjs +0 -55
  137. package/esm2022/lib/ui/components/html-editor/base-editor.component.mjs +0 -94
  138. package/esm2022/lib/ui/components/html-editor/defaultoptions.mjs +0 -87
  139. package/esm2022/lib/ui/components/html-editor/html-editor.component.mjs +0 -114
  140. package/esm2022/lib/ui/components/identity/signin-button.component.mjs +0 -105
  141. package/esm2022/lib/ui/components/identity/signout-button.component.mjs +0 -105
  142. package/esm2022/lib/ui/components/identity/signup-button.component.mjs +0 -105
  143. package/esm2022/lib/ui/components/index.mjs +0 -57
  144. package/esm2022/lib/ui/components/no-mobile-support/no-mobile-support.component.mjs +0 -45
  145. package/esm2022/lib/ui/components/nodata/nodata.component.mjs +0 -76
  146. package/esm2022/lib/ui/components/spinners/loading/loading.component.mjs +0 -53
  147. package/esm2022/lib/ui/components/spinners/pagespinner/pagespinner.component.mjs +0 -85
  148. package/esm2022/lib/ui/components/spinners/pagespinner/spinkits.mjs +0 -12
  149. package/esm2022/lib/ui/components/urlslug/urlslug.component.mjs +0 -130
  150. package/esm2022/lib/ui/components/you-agree-to-our-terms/you-agree-to-our-terms.component.mjs +0 -63
  151. package/esm2022/lib/ui/dialogs/contact-us/contact-us.dialog.mjs +0 -78
  152. package/esm2022/lib/ui/dialogs/exports.mjs +0 -16
  153. package/esm2022/lib/ui/dialogs/index.mjs +0 -19
  154. package/esm2022/lib/ui/directives/exports.mjs +0 -19
  155. package/esm2022/lib/ui/directives/hover.directive.mjs +0 -50
  156. package/esm2022/lib/ui/directives/index.mjs +0 -22
  157. package/esm2022/lib/ui/directives/native-element.directive.mjs +0 -37
  158. package/esm2022/lib/ui/directives/replacer/a-replacer.directive.mjs +0 -48
  159. package/esm2022/lib/ui/directives/replacer/image-replacer.directive.mjs +0 -44
  160. package/esm2022/lib/ui/directives/replacer/replacer.base.directive.mjs +0 -44
  161. package/esm2022/lib/ui/exports.mjs +0 -22
  162. package/esm2022/lib/ui/forms/components/address/address.component.mjs +0 -240
  163. package/esm2022/lib/ui/forms/components/company/company.component.mjs +0 -138
  164. package/esm2022/lib/ui/forms/contact-us/contact-us.mjs +0 -213
  165. package/esm2022/lib/ui/forms/exports.mjs +0 -20
  166. package/esm2022/lib/ui/forms/index.mjs +0 -21
  167. package/esm2022/lib/ui/pipes/exports.mjs +0 -19
  168. package/esm2022/lib/ui/pipes/filesize.pipe.mjs +0 -42
  169. package/esm2022/lib/ui/pipes/index.mjs +0 -22
  170. package/esm2022/lib/ui/pipes/replace-text.pipe.mjs +0 -37
  171. package/esm2022/lib/ui/pipes/safeHtml.pipe.mjs +0 -34
  172. package/esm2022/lib/ui/ui.module.mjs +0 -122
  173. package/esm2022/lib/ui/validation/exports.mjs +0 -19
  174. package/esm2022/lib/ui/validation/form-validation-summary.component.mjs +0 -90
  175. package/esm2022/lib/ui/validation/index.mjs +0 -21
  176. package/esm2022/lib/ui/validation/item-validation-summary.component.mjs +0 -53
  177. package/esm2022/lib/ui/validation/validation-summary.component.mjs +0 -124
  178. package/esm2022/osovitny-anatoly.mjs +0 -5
  179. package/esm2022/public-api.mjs +0 -22
@@ -1,3 +1,4 @@
1
1
  export declare class BillingUtils {
2
- static convert2AmountWithCurrency(amount: any, currency: any): any;
2
+ private static readonly CURRENCY_SYMBOLS;
3
+ static convert2AmountWithCurrency(amount: number | string, currency: string): string;
3
4
  }
@@ -12,5 +12,5 @@ export declare class Convert {
12
12
  static stringToIntArray(str: string, separator?: string): number[];
13
13
  static company2String(comp: any): string;
14
14
  static address2String(adr: any): string;
15
- static stringToBoolean(value: any): any;
15
+ static stringToBoolean(value: any): boolean;
16
16
  }
@@ -1,3 +1,3 @@
1
1
  export declare class Guid {
2
- static newGuid(): any;
2
+ static newGuid(): string;
3
3
  }
package/lib/core/is.d.ts CHANGED
@@ -11,13 +11,13 @@ export declare class is {
11
11
  static dateValid(date: any): boolean;
12
12
  static dateInvalid(date: any): boolean;
13
13
  static objectNullOrEmpty(obj: any): boolean;
14
- static string(value: any): boolean;
14
+ static string(value: any): value is string | String;
15
15
  static emptyString(value: any): boolean;
16
16
  static notEmptyString(value: any): boolean;
17
- static number(value: any): boolean;
18
- static boolean(value: any): boolean;
19
- static array(value: any): boolean;
17
+ static number(value: any): value is number;
18
+ static boolean(value: any): value is boolean;
19
+ static array(value: any): value is any[];
20
20
  static emptyArray(value: any): boolean;
21
21
  static notEmptyArray(value: any): boolean;
22
- static undefined(value: any): boolean;
22
+ static undefined(value: any): value is undefined;
23
23
  }
@@ -21,5 +21,5 @@ export declare abstract class ComponentBase implements OnInit, OnDestroy {
21
21
  dataLoadedAndNothingFound(): void;
22
22
  dataLoadedAndFound(found?: boolean): void;
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<ComponentBase, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<ComponentBase, "ng-component", never, { "classes": { "alias": "classes"; "required": false; }; "title": { "alias": "title"; "required": false; }; "isTitleVisible": { "alias": "isTitleVisible"; "required": false; }; "isRequired": { "alias": "isRequired"; "required": false; }; }, {}, never, never, false, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<ComponentBase, "ng-component", never, { "classes": { "alias": "classes"; "required": false; }; "title": { "alias": "title"; "required": false; }; "isTitleVisible": { "alias": "isTitleVisible"; "required": false; }; "isRequired": { "alias": "isRequired"; "required": false; }; }, {}, never, never, true, never>;
25
25
  }
@@ -57,5 +57,5 @@ export declare abstract class EditComponentBase extends ComponentBase {
57
57
  };
58
58
  get isNgModelBased(): boolean;
59
59
  static ɵfac: i0.ɵɵFactoryDeclaration<EditComponentBase, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<EditComponentBase, "ng-component", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "formSubmitted": { "alias": "formSubmitted"; "required": false; }; "controlName": { "alias": "controlName"; "required": false; }; "controlTitle": { "alias": "controlTitle"; "required": false; }; }, {}, never, never, false, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditComponentBase, "ng-component", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "formSubmitted": { "alias": "formSubmitted"; "required": false; }; "controlName": { "alias": "controlName"; "required": false; }; "controlTitle": { "alias": "controlTitle"; "required": false; }; }, {}, never, never, true, never>;
61
61
  }
@@ -17,5 +17,5 @@ export declare abstract class EnumEditComponentBase extends EditComponentBase im
17
17
  get selectedValue(): any;
18
18
  set selectedValue(value: any);
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<EnumEditComponentBase, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<EnumEditComponentBase, "ng-component", never, { "defaultValue": { "alias": "defaultValue"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<EnumEditComponentBase, "ng-component", never, { "defaultValue": { "alias": "defaultValue"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
21
21
  }
@@ -1,10 +1,11 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
+ import { DataViewType } from '../../../core/enums';
2
3
  import { ComponentBase } from '../base/components/component';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class ControlPanelComponent extends ComponentBase implements OnInit {
5
- filterVisible: any;
6
- selectedSortBy: any;
7
- viewTypeDefault: any;
6
+ filterVisible: boolean;
7
+ selectedSortBy: number;
8
+ viewTypeDefault: DataViewType;
8
9
  sortByItems: any;
9
10
  viewType: any;
10
11
  filterButtonVisible: boolean;
@@ -20,8 +21,8 @@ export declare class ControlPanelComponent extends ComponentBase implements OnIn
20
21
  private fireAdd;
21
22
  resetSettings(): void;
22
23
  getSettings(): {
23
- filterVisible: any;
24
- sortBy: any;
24
+ filterVisible: boolean;
25
+ sortBy: number;
25
26
  viewType: any;
26
27
  };
27
28
  onFilterToggle(): void;
@@ -1,13 +1,11 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { EditComponentBase } from '../../base/components/edit.component';
3
- import { AppContextService } from '../../../../core/services/appcontext.service';
4
3
  import { CoreApiService } from '../../../../data/services/core-api.service';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class CountryDropdownlist extends EditComponentBase implements OnInit {
7
6
  private api;
8
- private appContext;
9
7
  items: any;
10
- constructor(api: CoreApiService, appContext: AppContextService);
8
+ constructor(api: CoreApiService);
11
9
  ngOnInit(): void;
12
10
  setValues(): void;
13
11
  static ɵfac: i0.ɵɵFactoryDeclaration<CountryDropdownlist, never>;
@@ -1,2 +1,2 @@
1
1
  import { HoveringDirective, AReplacerDirective, ImageReplacerDirective, NativeElementDirective } from './exports';
2
- export declare const DIRECTIVES: (typeof AReplacerDirective | typeof HoveringDirective | typeof ImageReplacerDirective | typeof NativeElementDirective)[];
2
+ export declare const DIRECTIVES: (typeof HoveringDirective | typeof AReplacerDirective | typeof ImageReplacerDirective | typeof NativeElementDirective)[];
@@ -6,5 +6,5 @@ export declare abstract class ReplacerDirectiveBase {
6
6
  constructor(el: ElementRef, renderer: Renderer2);
7
7
  protected setAttribute(name: string, value: any): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<ReplacerDirectiveBase, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<ReplacerDirectiveBase, never, never, {}, {}, never, never, false, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ReplacerDirectiveBase, never, never, {}, {}, never, never, true, never>;
10
10
  }
package/package.json CHANGED
@@ -1,65 +1,65 @@
1
1
  {
2
2
  "name": "@osovitny/anatoly",
3
- "version": "3.17.160",
3
+ "version": "3.19.1",
4
4
  "peerDependencies": {
5
- "@angular/common": "17.1.2",
6
- "@angular/core": "17.1.2",
7
- "rxjs": "7.8.1",
8
- "zone.js": "0.14.3",
9
- "@progress/kendo-angular-buttons": "15.0.1",
10
- "@progress/kendo-angular-charts": "15.0.1",
11
- "@progress/kendo-angular-common": "15.0.1",
12
- "@progress/kendo-angular-dateinputs": "15.0.1",
13
- "@progress/kendo-angular-dialog": "15.0.1",
14
- "@progress/kendo-angular-dropdowns": "15.0.1",
15
- "@progress/kendo-angular-excel-export": "15.0.1",
16
- "@progress/kendo-angular-gauges": "15.0.1",
17
- "@progress/kendo-angular-grid": "15.0.1",
18
- "@progress/kendo-angular-icons": "15.0.1",
19
- "@progress/kendo-angular-inputs": "15.0.1",
20
- "@progress/kendo-angular-intl": "15.0.1",
21
- "@progress/kendo-angular-l10n": "15.0.1",
22
- "@progress/kendo-angular-label": "15.0.1",
23
- "@progress/kendo-angular-layout": "15.0.1",
24
- "@progress/kendo-angular-pager": "15.0.1",
25
- "@progress/kendo-angular-pdf-export": "15.0.1",
26
- "@progress/kendo-angular-popup": "15.0.1",
27
- "@progress/kendo-angular-progressbar": "15.0.1",
28
- "@progress/kendo-angular-ripple": "15.0.1",
29
- "@progress/kendo-angular-tooltip": "15.0.1",
30
- "@progress/kendo-angular-treeview": "15.0.1",
31
- "@progress/kendo-angular-upload": "15.0.1",
32
- "@progress/kendo-data-query": "1.7.0",
33
- "@progress/kendo-drawing": "1.19.0",
34
- "@progress/kendo-angular-scrollview": "15.0.1",
35
- "@progress/kendo-svg-icons": "^2.1.0",
36
- "@progress/kendo-angular-scheduler": "15.0.1",
37
- "@progress/kendo-theme-default": "7.2.0",
38
- "@progress/kendo-font-icons": "4.0.0",
39
- "@progress/kendo-licensing": "1.4.0",
40
- "hammerjs": "2.0.8",
41
- "@azure/msal-angular": "3.1.0",
42
- "@azure/msal-browser": "3.28.0",
43
- "@fortawesome/angular-fontawesome": "0.14.1",
44
- "@fortawesome/fontawesome-free": "6.5.1",
45
- "@fortawesome/fontawesome-svg-core": "6.5.1",
46
- "@fortawesome/free-brands-svg-icons": "6.5.1",
47
- "@fortawesome/free-solid-svg-icons": "6.5.1",
48
- "@microsoft/signalr": "8.0.0",
49
- "@ngx-translate/core": "15.0.0",
50
- "@ngx-translate/http-loader": "8.0.0",
51
- "core-js": "3.35.1",
52
- "date-fns": "3.3.1",
53
- "js-beautify": "1.14.11",
5
+ "@angular/common": "19.2.11",
6
+ "@angular/core": "19.2.11",
7
+ "rxjs": "7.8.2",
8
+ "zone.js": "0.15.0",
9
+ "@progress/kendo-angular-buttons": "18.5.2",
10
+ "@progress/kendo-angular-charts": "18.5.2",
11
+ "@progress/kendo-angular-common": "18.5.2",
12
+ "@progress/kendo-angular-dateinputs": "18.5.2",
13
+ "@progress/kendo-angular-dialog": "18.5.2",
14
+ "@progress/kendo-angular-dropdowns": "18.5.2",
15
+ "@progress/kendo-angular-excel-export": "18.5.2",
16
+ "@progress/kendo-angular-gauges": "18.5.2",
17
+ "@progress/kendo-angular-grid": "18.5.2",
18
+ "@progress/kendo-angular-icons": "18.5.2",
19
+ "@progress/kendo-angular-inputs": "18.5.2",
20
+ "@progress/kendo-angular-intl": "18.5.2",
21
+ "@progress/kendo-angular-l10n": "18.5.2",
22
+ "@progress/kendo-angular-label": "18.5.2",
23
+ "@progress/kendo-angular-layout": "18.5.2",
24
+ "@progress/kendo-angular-pager": "18.5.2",
25
+ "@progress/kendo-angular-pdf-export": "18.5.2",
26
+ "@progress/kendo-angular-popup": "18.5.2",
27
+ "@progress/kendo-angular-progressbar": "18.5.2",
28
+ "@progress/kendo-angular-ripple": "18.5.2",
29
+ "@progress/kendo-angular-tooltip": "18.5.2",
30
+ "@progress/kendo-angular-treeview": "18.5.2",
31
+ "@progress/kendo-angular-upload": "18.5.2",
32
+ "@progress/kendo-data-query": "1.7.1",
33
+ "@progress/kendo-drawing": "1.21.2",
34
+ "@progress/kendo-angular-scrollview": "18.5.2",
35
+ "@progress/kendo-svg-icons": "^4.3.0",
36
+ "@progress/kendo-angular-scheduler": "18.5.2",
37
+ "@progress/kendo-theme-default": "11.0.2",
38
+ "@progress/kendo-font-icons": "4.3.0",
39
+ "@progress/kendo-licensing": "1.6.0",
40
+ "@azure/msal-angular": "4.0.12",
41
+ "@azure/msal-browser": "4.12.0",
42
+ "@fortawesome/angular-fontawesome": "1.0.0",
43
+ "@fortawesome/fontawesome-free": "6.7.2",
44
+ "@fortawesome/fontawesome-svg-core": "6.7.2",
45
+ "@fortawesome/free-brands-svg-icons": "6.7.2",
46
+ "@fortawesome/free-solid-svg-icons": "6.7.2",
47
+ "@microsoft/signalr": "8.0.7",
48
+ "@ngx-translate/core": "16.0.4",
49
+ "@ngx-translate/http-loader": "16.0.1",
50
+ "core-js": "3.42.0",
51
+ "date-fns": "4.1.0",
52
+ "js-beautify": "1.15.4",
54
53
  "ngx-captcha": "13.0.0",
55
- "ngx-toastr": "18.0.0",
56
- "ngx-sharebuttons": "13.0.0",
57
- "sweetalert2": "11.10.5",
58
- "uuid": "9.0.1",
59
- "@stripe/stripe-js": "4.2.0",
60
- "braintree-web-drop-in": "1.42.0",
61
- "angular-froala-wysiwyg": "4.4.0",
62
- "froala-editor": "4.4.0"
54
+ "ngx-toastr": "19.0.0",
55
+ "ngx-sharebuttons": "17.0.0",
56
+ "ngx-scrollbar": "^18.0.0",
57
+ "sweetalert2": "11.21.2",
58
+ "uuid": "11.1.0",
59
+ "@stripe/stripe-js": "7.3.0",
60
+ "braintree-web-drop-in": "1.44.1",
61
+ "angular-froala-wysiwyg": "4.5.2",
62
+ "froala-editor": "4.5.2"
63
63
  },
64
64
  "sideEffects": false,
65
65
  "module": "fesm2022/osovitny-anatoly.mjs",
@@ -70,8 +70,6 @@
70
70
  },
71
71
  ".": {
72
72
  "types": "./index.d.ts",
73
- "esm2022": "./esm2022/osovitny-anatoly.mjs",
74
- "esm": "./esm2022/osovitny-anatoly.mjs",
75
73
  "default": "./fesm2022/osovitny-anatoly.mjs"
76
74
  }
77
75
  },
@@ -1,62 +0,0 @@
1
- /*
2
- <file>
3
- Project:
4
- @osovitny/anatoly
5
-
6
- Authors:
7
- Vadim Osovitny vadim.osovitny@osovitny.com
8
-
9
- Created:
10
- 29 Aug 2022
11
-
12
- Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
13
- </file>
14
- */
15
- //Node
16
- import { NgModule } from '@angular/core';
17
- import { CommonModule } from "@angular/common";
18
- //Modules
19
- import { AnatolyCoreModule } from './core/core.module';
20
- import { AnatolyDataModule } from './data/data.module';
21
- import { AnatolyIAMModule } from './iam/iam.module';
22
- import { AnatolyUIModule } from './ui/ui.module';
23
- import * as i0 from "@angular/core";
24
- export class AnatolyModule {
25
- static { this.ɵfac = function AnatolyModule_Factory(t) { return new (t || AnatolyModule)(); }; }
26
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: AnatolyModule }); }
27
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
28
- AnatolyCoreModule,
29
- AnatolyDataModule,
30
- AnatolyIAMModule,
31
- AnatolyUIModule, AnatolyCoreModule,
32
- AnatolyDataModule,
33
- AnatolyIAMModule,
34
- AnatolyUIModule] }); }
35
- }
36
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnatolyModule, [{
37
- type: NgModule,
38
- args: [{
39
- imports: [
40
- CommonModule,
41
- AnatolyCoreModule,
42
- AnatolyDataModule,
43
- AnatolyIAMModule,
44
- AnatolyUIModule
45
- ],
46
- exports: [
47
- AnatolyCoreModule,
48
- AnatolyDataModule,
49
- AnatolyIAMModule,
50
- AnatolyUIModule
51
- ]
52
- }]
53
- }], null, null); })();
54
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AnatolyModule, { imports: [CommonModule,
55
- AnatolyCoreModule,
56
- AnatolyDataModule,
57
- AnatolyIAMModule,
58
- AnatolyUIModule], exports: [AnatolyCoreModule,
59
- AnatolyDataModule,
60
- AnatolyIAMModule,
61
- AnatolyUIModule] }); })();
62
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5hdG9seS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvYW5hdG9seS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7RUFhRTtBQUVGLE1BQU07QUFDTixPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUUvQyxTQUFTO0FBQ1QsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sb0JBQW9CLENBQUE7QUFDdEQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sb0JBQW9CLENBQUE7QUFDdEQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sa0JBQWtCLENBQUE7QUFDbkQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGdCQUFnQixDQUFBOztBQWlCaEQsTUFBTSxPQUFPLGFBQWE7OEVBQWIsYUFBYTttRUFBYixhQUFhO3VFQWJ0QixZQUFZO1lBQ1osaUJBQWlCO1lBQ2pCLGlCQUFpQjtZQUN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sgQW5hdG9seUNvcmVNb2R1bGUgfSBmcm9tICcuL2NvcmUvY29yZS5tb2R1bGUnXHJcbmltcG9ydCB7IEFuYXRvbHlEYXRhTW9kdWxlIH0gZnJvbSAnLi9kYXRhL2RhdGEubW9kdWxlJ1xyXG5pbXBvcnQgeyBBbmF0b2x5SUFNTW9kdWxlIH0gZnJvbSAnLi9pYW0vaWFtLm1vZHVsZSdcclxuaW1wb3J0IHsgQW5hdG9seVVJTW9kdWxlIH0gZnJvbSAnLi91aS91aS5tb2R1bGUnXHJcblxyXG5ATmdNb2R1bGUoe1xyXG4gIGltcG9ydHM6IFtcclxuICAgIENvbW1vbk1vZHVsZSxcclxuICAgIEFuYXRvbHlDb3JlTW9kdWxlLFxyXG4gICAgQW5hdG9seURhdGFNb2R1bGUsXHJcbiAgICBBbmF0b2x5SUFNTW9kdWxlLFxyXG4gICAgQW5hdG9seVVJTW9kdWxlXHJcbiAgXSxcclxuICBleHBvcnRzOiBbXHJcbiAgICBBbmF0b2x5Q29yZU1vZHVsZSxcclxuICAgIEFuYXRvbHlEYXRhTW9kdWxlLFxyXG4gICAgQW5hdG9seUlBTU1vZHVsZSxcclxuICAgIEFuYXRvbHlVSU1vZHVsZVxyXG4gIF1cclxufSlcclxuZXhwb3J0IGNsYXNzIEFuYXRvbHlNb2R1bGUge1xyXG59XHJcbiJdfQ==
@@ -1,81 +0,0 @@
1
- /*
2
- <file>
3
- Project:
4
- @osovitny/anatoly
5
-
6
- Authors:
7
- Vadim Osovitny vadim.osovitny@osovitny.com
8
- Anatoly Osovitny anatoly.osovitny@osovitny.com
9
-
10
- Created:
11
- 14 Jun 2024
12
-
13
- Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
14
- </file>
15
- */
16
- //Node
17
- import { NgModule } from '@angular/core';
18
- import { CommonModule } from '@angular/common';
19
- import { FormsModule, ReactiveFormsModule } from "@angular/forms";
20
- //Modules
21
- import { FaModule } from '../external/fa.module';
22
- import { KendoModule } from '../external/kendo.module';
23
- import { AnatolyUIModule } from '../ui/ui.module';
24
- //App
25
- import { PayPalScriptService } from './services/paypal-script.service';
26
- import { PaymentsService } from './services/payments.service';
27
- import { COMPONENTS } from './components';
28
- import * as i0 from "@angular/core";
29
- import * as i1 from "./components/buttons/buyaccess-button.component";
30
- import * as i2 from "./components/buttons/subscribe-plan-button.component";
31
- import * as i3 from "./components/order-summary/order-summary.component";
32
- import * as i4 from "./components/payment-methods/payment-methods.component";
33
- import * as i5 from "./components/payment-options/payment-options.component";
34
- import * as i6 from "./components/pm/braintree/braintree.component";
35
- import * as i7 from "./components/pm/paypal/paypal-button.component";
36
- import * as i8 from "./components/pm/paypal/paypal-subscribe-button.component";
37
- import * as i9 from "./components/pm/paypal/paypal.component";
38
- import * as i10 from "./components/pm/stripe/stripe.component";
39
- export class AnatolyBillingModule {
40
- static { this.ɵfac = function AnatolyBillingModule_Factory(t) { return new (t || AnatolyBillingModule)(); }; }
41
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: AnatolyBillingModule }); }
42
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
43
- PayPalScriptService,
44
- PaymentsService
45
- ], imports: [CommonModule,
46
- ReactiveFormsModule,
47
- FormsModule,
48
- FaModule,
49
- KendoModule,
50
- AnatolyUIModule] }); }
51
- }
52
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnatolyBillingModule, [{
53
- type: NgModule,
54
- args: [{
55
- imports: [
56
- CommonModule,
57
- ReactiveFormsModule,
58
- FormsModule,
59
- FaModule,
60
- KendoModule,
61
- AnatolyUIModule
62
- ],
63
- declarations: [
64
- COMPONENTS
65
- ],
66
- exports: [
67
- COMPONENTS
68
- ],
69
- providers: [
70
- PayPalScriptService,
71
- PaymentsService
72
- ]
73
- }]
74
- }], null, null); })();
75
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AnatolyBillingModule, { declarations: [i1.BuyAccessButtonComponent, i2.SubscribePlanButtonComponent, i3.OrderSummaryComponent, i4.PaymentMethodsComponent, i5.PaymentOptionsComponent, i6.BraintreeDialog, i7.PaypalButtonComponent, i8.PaypalSubscribeButtonComponent, i9.PayPalComponent, i10.StripeDialog], imports: [CommonModule,
76
- ReactiveFormsModule,
77
- FormsModule,
78
- FaModule,
79
- KendoModule,
80
- AnatolyUIModule], exports: [i1.BuyAccessButtonComponent, i2.SubscribePlanButtonComponent, i3.OrderSummaryComponent, i4.PaymentMethodsComponent, i5.PaymentOptionsComponent, i6.BraintreeDialog, i7.PaypalButtonComponent, i8.PaypalSubscribeButtonComponent, i9.PayPalComponent, i10.StripeDialog] }); })();
81
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmlsbGluZy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvYmlsbGluZy9iaWxsaW5nLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRTtBQUVGLE1BQU07QUFDTixPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsV0FBVyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFbEUsU0FBUztBQUNULE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQTtBQUNoRCxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sMEJBQTBCLENBQUE7QUFDdEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGlCQUFpQixDQUFBO0FBRWpELEtBQUs7QUFDTCxPQUFPL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LFxyXG5cclxuICAgIEZhTW9kdWxlLFxyXG4gICAgS2VuZG9Nb2R1bGUsXHJcbiAgICBBbmF0b2x5VUlNb2R1bGVcclxuICBdLFxyXG4gIGRlY2xhcmF0aW9uczogW1xyXG4gICAgQ09NUE9ORU5UU1xyXG4gIF0sXHJcbiAgZXhwb3J0czogW1xyXG4gICAgQ09NUE9ORU5UU1xyXG4gIF0sXHJcbiAgcHJvdmlkZXJzOiBbXHJcbiAgICBQYXlQYWxTY3JpcHRTZXJ2aWNlLFxyXG4gICAgUGF5bWVudHNTZXJ2aWNlXHJcbiAgXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgQW5hdG9seUJpbGxpbmdNb2R1bGUge1xyXG59XHJcbiJdfQ==
@@ -1,104 +0,0 @@
1
- /*
2
- <file>
3
- Project:
4
- @osovitny/anatoly
5
-
6
- Authors:
7
- Vadim Osovitny vadim.osovitny@osovitny.com
8
- Anatoly Osovitny anatoly.osovitny@osovitny.com
9
-
10
- Created:
11
- 14 Aug 2018
12
-
13
- Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
14
- </file>
15
- */
16
- //Node
17
- import { Component, EventEmitter, Input, Output } from '@angular/core';
18
- import * as i0 from "@angular/core";
19
- import * as i1 from "../../../core/services/appcontext.service";
20
- import * as i2 from "@angular/common";
21
- function BuyAccessButtonComponent_div_0_div_1_button_1_Template(rf, ctx) { if (rf & 1) {
22
- i0.ɵɵelementStart(0, "button", 3);
23
- i0.ɵɵtext(1, " Your Plan ");
24
- i0.ɵɵelementEnd();
25
- } }
26
- function BuyAccessButtonComponent_div_0_div_1_button_2_Template(rf, ctx) { if (rf & 1) {
27
- const _r5 = i0.ɵɵgetCurrentView();
28
- i0.ɵɵelementStart(0, "button", 4);
29
- i0.ɵɵlistener("click", function BuyAccessButtonComponent_div_0_div_1_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r4.onPlanSelect()); });
30
- i0.ɵɵtext(1, " Buy Now ");
31
- i0.ɵɵelementEnd();
32
- } }
33
- function BuyAccessButtonComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
34
- i0.ɵɵelementStart(0, "div");
35
- i0.ɵɵtemplate(1, BuyAccessButtonComponent_div_0_div_1_button_1_Template, 2, 0, "button", 1)(2, BuyAccessButtonComponent_div_0_div_1_button_2_Template, 2, 0, "button", 2);
36
- i0.ɵɵelementEnd();
37
- } if (rf & 2) {
38
- const ctx_r1 = i0.ɵɵnextContext(2);
39
- i0.ɵɵadvance();
40
- i0.ɵɵproperty("ngIf", ctx_r1.plan == ctx_r1.currentPlan);
41
- i0.ɵɵadvance();
42
- i0.ɵɵproperty("ngIf", ctx_r1.plan != ctx_r1.currentPlan);
43
- } }
44
- function BuyAccessButtonComponent_div_0_Template(rf, ctx) { if (rf & 1) {
45
- i0.ɵɵelementStart(0, "div");
46
- i0.ɵɵtemplate(1, BuyAccessButtonComponent_div_0_div_1_Template, 3, 2, "div", 0);
47
- i0.ɵɵelementEnd();
48
- } if (rf & 2) {
49
- const ctx_r0 = i0.ɵɵnextContext();
50
- i0.ɵɵadvance();
51
- i0.ɵɵproperty("ngIf", ctx_r0.isUserSignedIn && ctx_r0.visibleIfUserSignedIn);
52
- } }
53
- export class BuyAccessButtonComponent {
54
- constructor(appContext) {
55
- this.appContext = appContext;
56
- this.contextUpdated = false;
57
- this.isUserSignedIn = false;
58
- this.currentPlan = -1;
59
- this.visibleIfUserSignedIn = false;
60
- //Outputs
61
- this.planselect = new EventEmitter();
62
- }
63
- ngOnInit() {
64
- this.setDefaults();
65
- this.setValues();
66
- }
67
- setDefaults() {
68
- }
69
- setValues() {
70
- this.appContext.updated$.subscribe((context) => {
71
- if (!context) {
72
- return;
73
- }
74
- this.isUserSignedIn = context.isUserSignedIn;
75
- if (this.isUserSignedIn) {
76
- let billing = context.billing.profile;
77
- this.currentPlan = billing.billingPlan;
78
- }
79
- this.contextUpdated = true;
80
- });
81
- }
82
- //Events
83
- onPlanSelect() {
84
- this.planselect.emit(this.plan);
85
- }
86
- static { this.ɵfac = function BuyAccessButtonComponent_Factory(t) { return new (t || BuyAccessButtonComponent)(i0.ɵɵdirectiveInject(i1.AppContextService)); }; }
87
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BuyAccessButtonComponent, selectors: [["anatoly-billing-buyaccess-button"]], inputs: { plan: "plan", visibleIfUserSignedIn: "visibleIfUserSignedIn" }, outputs: { planselect: "planselect" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["class", "btn btn-block btn-success selectPlan", 4, "ngIf"], ["class", "btn btn-block btn-warning selectPlan", 3, "click", 4, "ngIf"], [1, "btn", "btn-block", "btn-success", "selectPlan"], [1, "btn", "btn-block", "btn-warning", "selectPlan", 3, "click"]], template: function BuyAccessButtonComponent_Template(rf, ctx) { if (rf & 1) {
88
- i0.ɵɵtemplate(0, BuyAccessButtonComponent_div_0_Template, 2, 1, "div", 0);
89
- } if (rf & 2) {
90
- i0.ɵɵproperty("ngIf", ctx.contextUpdated);
91
- } }, dependencies: [i2.NgIf], encapsulation: 2 }); }
92
- }
93
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BuyAccessButtonComponent, [{
94
- type: Component,
95
- args: [{ selector: 'anatoly-billing-buyaccess-button', template: "<div *ngIf=\"contextUpdated\">\r\n <!--\r\n <div *ngIf=\"!isUserSignedIn\">\r\n <anatoly-signup-button classes=\"btn btn-block btn-primary\" />\r\n </div>\r\n -->\r\n\r\n <div *ngIf=\"isUserSignedIn && visibleIfUserSignedIn\">\r\n <button class=\"btn btn-block btn-success selectPlan\" *ngIf=\"plan == currentPlan\">\r\n Your Plan\r\n </button>\r\n\r\n <button class=\"btn btn-block btn-warning selectPlan\" *ngIf=\"plan != currentPlan\"\r\n (click)=\"onPlanSelect()\">\r\n Buy Now\r\n </button>\r\n </div>\r\n</div>\r\n" }]
96
- }], () => [{ type: i1.AppContextService }], { plan: [{
97
- type: Input
98
- }], visibleIfUserSignedIn: [{
99
- type: Input
100
- }], planselect: [{
101
- type: Output
102
- }] }); })();
103
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BuyAccessButtonComponent, { className: "BuyAccessButtonComponent", filePath: "lib\\billing\\components\\buttons\\buyaccess-button.component.ts", lineNumber: 27 }); })();
104
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV5YWNjZXNzLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvYmlsbGluZy9jb21wb25lbnRzL2J1dHRvbnMvYnV5YWNjZXNzLWJ1dHRvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvYmlsbGluZy9jb21wb25lbnRzL2J1dHRvbnMvYnV5YWNjZXNzLWJ1dHRvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRTtBQUVGLE1BQU07QUFDTixPQUFPLEVBQUMsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQVUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7OztJQ1R6RSxpQ0FBaUY7SUFDL0UsMkJBQ0Y7SUFBQSxpQkFBUzs7OztJQUVULGlDQUNpQztJQUF6QixxTEFBUyxlQUFBLHFCQUFjLENBQUEsSUFBQztJQUM5Qix5QkFDRjtJQUFBLGlCQUFTOzs7SUFSWCwyQkFBcUQ7SUFDbkQsMkZBRVMsOEVBQUE7SUFNWCxpQkFBTTs7O0lBUmtELGNBQXlCO0lBQXpCLHdEQUF5QjtJQUl4QixjQUF5QjtJ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