@skyux/layout 5.0.0 → 5.2.0

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 (104) hide show
  1. package/bundles/skyux-layout-testing.umd.js +10 -5
  2. package/bundles/skyux-layout-testing.umd.js.map +1 -1
  3. package/bundles/skyux-layout.umd.js +687 -648
  4. package/bundles/skyux-layout.umd.js.map +1 -1
  5. package/documentation.json +936 -436
  6. package/esm2015/modules/action-button/action-button-adapter-service.js +5 -5
  7. package/esm2015/modules/action-button/action-button-container.component.js +9 -13
  8. package/esm2015/modules/action-button/action-button-details.component.js +5 -5
  9. package/esm2015/modules/action-button/action-button-header.component.js +5 -5
  10. package/esm2015/modules/action-button/action-button-icon.component.js +5 -5
  11. package/esm2015/modules/action-button/action-button-permalink.js +1 -1
  12. package/esm2015/modules/action-button/action-button.component.js +6 -6
  13. package/esm2015/modules/action-button/action-button.module.js +10 -10
  14. package/esm2015/modules/action-button/types/action-button-container-align-items.js +1 -1
  15. package/esm2015/modules/back-to-top/back-to-top-adapter.service.js +7 -8
  16. package/esm2015/modules/back-to-top/back-to-top.component.js +6 -8
  17. package/esm2015/modules/back-to-top/back-to-top.directive.js +12 -12
  18. package/esm2015/modules/back-to-top/back-top-top.module.js +11 -21
  19. package/esm2015/modules/back-to-top/models/back-to-top-message-type.js +1 -1
  20. package/esm2015/modules/back-to-top/models/back-to-top-message.js +1 -1
  21. package/esm2015/modules/back-to-top/models/back-to-top-options.js +1 -1
  22. package/esm2015/modules/box/box-content.component.js +18 -0
  23. package/esm2015/modules/box/box-controls.component.js +17 -0
  24. package/esm2015/modules/box/box-header.component.js +17 -0
  25. package/esm2015/modules/box/box.component.js +26 -0
  26. package/esm2015/modules/box/box.module.js +38 -0
  27. package/esm2015/modules/card/card-actions.component.js +5 -5
  28. package/esm2015/modules/card/card-content.component.js +5 -5
  29. package/esm2015/modules/card/card-title.component.js +5 -5
  30. package/esm2015/modules/card/card.component.js +8 -8
  31. package/esm2015/modules/card/card.module.js +10 -10
  32. package/esm2015/modules/definition-list/definition-list-content.component.js +5 -5
  33. package/esm2015/modules/definition-list/definition-list-heading.component.js +5 -5
  34. package/esm2015/modules/definition-list/definition-list-label.component.js +5 -5
  35. package/esm2015/modules/definition-list/definition-list-value.component.js +5 -5
  36. package/esm2015/modules/definition-list/definition-list.component.js +5 -5
  37. package/esm2015/modules/definition-list/definition-list.module.js +10 -20
  38. package/esm2015/modules/definition-list/definition-list.service.js +4 -4
  39. package/esm2015/modules/description-list/description-list-adapter-service.js +7 -6
  40. package/esm2015/modules/description-list/description-list-content.component.js +5 -5
  41. package/esm2015/modules/description-list/description-list-description.component.js +7 -7
  42. package/esm2015/modules/description-list/description-list-term.component.js +7 -7
  43. package/esm2015/modules/description-list/description-list.component.js +9 -15
  44. package/esm2015/modules/description-list/description-list.module.js +10 -10
  45. package/esm2015/modules/description-list/description-list.service.js +4 -4
  46. package/esm2015/modules/description-list/types/description-list-mode-type.js +1 -1
  47. package/esm2015/modules/description-list/types/description-list-mode.js +1 -1
  48. package/esm2015/modules/fluid-grid/column.component.js +11 -10
  49. package/esm2015/modules/fluid-grid/fluid-grid-gutter-size.js +1 -1
  50. package/esm2015/modules/fluid-grid/fluid-grid.component.js +5 -7
  51. package/esm2015/modules/fluid-grid/fluid-grid.module.js +8 -24
  52. package/esm2015/modules/fluid-grid/row.component.js +5 -5
  53. package/esm2015/modules/fluid-grid/types/fluid-grid-gutter-size-type.js +1 -1
  54. package/esm2015/modules/format/format-item.js +1 -1
  55. package/esm2015/modules/format/format.component.js +6 -6
  56. package/esm2015/modules/format/format.module.js +8 -16
  57. package/esm2015/modules/inline-delete/inline-delete-adapter.service.js +19 -15
  58. package/esm2015/modules/inline-delete/inline-delete-type.js +1 -1
  59. package/esm2015/modules/inline-delete/inline-delete.component.js +28 -34
  60. package/esm2015/modules/inline-delete/inline-delete.module.js +9 -13
  61. package/esm2015/modules/page/page-theme-adapter.service.js +4 -4
  62. package/esm2015/modules/page/page.component.js +5 -5
  63. package/esm2015/modules/page/page.module.js +7 -11
  64. package/esm2015/modules/page-summary/page-summary-adapter.service.js +4 -4
  65. package/esm2015/modules/page-summary/page-summary-alert.component.js +5 -5
  66. package/esm2015/modules/page-summary/page-summary-content.component.js +5 -5
  67. package/esm2015/modules/page-summary/page-summary-image.component.js +5 -5
  68. package/esm2015/modules/page-summary/page-summary-key-info.component.js +5 -5
  69. package/esm2015/modules/page-summary/page-summary-status.component.js +5 -5
  70. package/esm2015/modules/page-summary/page-summary-subtitle.component.js +5 -5
  71. package/esm2015/modules/page-summary/page-summary-title.component.js +5 -5
  72. package/esm2015/modules/page-summary/page-summary.component.js +10 -8
  73. package/esm2015/modules/page-summary/page-summary.module.js +9 -13
  74. package/esm2015/modules/shared/sky-layout-resources.module.js +31 -12
  75. package/esm2015/modules/text-expand/text-expand-adapter.service.js +5 -5
  76. package/esm2015/modules/text-expand/text-expand-modal.component.js +5 -5
  77. package/esm2015/modules/text-expand/text-expand.component.js +21 -25
  78. package/esm2015/modules/text-expand/text-expand.module.js +10 -18
  79. package/esm2015/modules/text-expand-repeater/text-expand-repeater-adapter.service.js +5 -5
  80. package/esm2015/modules/text-expand-repeater/text-expand-repeater.component.js +16 -13
  81. package/esm2015/modules/text-expand-repeater/text-expand-repeater.module.js +8 -22
  82. package/esm2015/modules/text-expand-repeater/types/text-expand-repeater-list-style-type.js +2 -0
  83. package/esm2015/modules/toolbar/toolbar-item.component.js +5 -5
  84. package/esm2015/modules/toolbar/toolbar-section.component.js +5 -5
  85. package/esm2015/modules/toolbar/toolbar-view-actions.component.js +5 -5
  86. package/esm2015/modules/toolbar/toolbar.component.js +6 -6
  87. package/esm2015/modules/toolbar/toolbar.module.js +9 -13
  88. package/esm2015/public-api.js +7 -1
  89. package/esm2015/testing/action-button-fixture.js +6 -3
  90. package/esm2015/testing/card-fixture.js +4 -2
  91. package/esm2015/testing/page-summary-fixture.js +1 -1
  92. package/fesm2015/skyux-layout-testing.js +8 -3
  93. package/fesm2015/skyux-layout-testing.js.map +1 -1
  94. package/fesm2015/skyux-layout.js +534 -513
  95. package/fesm2015/skyux-layout.js.map +1 -1
  96. package/modules/box/box-content.component.d.ts +8 -0
  97. package/modules/box/box-controls.component.d.ts +8 -0
  98. package/modules/box/box-header.component.d.ts +8 -0
  99. package/modules/box/box.component.d.ts +29 -0
  100. package/modules/box/box.module.d.ts +12 -0
  101. package/modules/text-expand-repeater/text-expand-repeater.component.d.ts +7 -1
  102. package/modules/text-expand-repeater/types/text-expand-repeater-list-style-type.d.ts +1 -0
  103. package/package.json +13 -13
  104. package/public-api.d.ts +6 -0
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/platform-browser'), require('@skyux-sdk/testing')) :
3
3
  typeof define === 'function' && define.amd ? define('@skyux/layout/testing', ['exports', '@angular/platform-browser', '@skyux-sdk/testing'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux.layout = global.skyux.layout || {}, global.skyux.layout.testing = {}), global.ng.platformBrowser, global.testing));
5
- }(this, (function (exports, platformBrowser, testing) { 'use strict';
5
+ })(this, (function (exports, platformBrowser, testing) { 'use strict';
6
6
 
7
7
  /**
8
8
  * Allows interaction with a SKY UX action button component.
@@ -36,7 +36,8 @@
36
36
  * The action button's current icon type.
37
37
  */
38
38
  get: function () {
39
- var classList = this.debugEl.query(platformBrowser.By.css('.fa.sky-icon')).nativeElement.classList;
39
+ var classList = this.debugEl.query(platformBrowser.By.css('.fa.sky-icon')).nativeElement
40
+ .classList;
40
41
  for (var i = 0, n = classList.length; i < n; i++) {
41
42
  var cls = classList.item(i);
42
43
  if (cls.indexOf('fa-') === 0) {
@@ -51,7 +52,9 @@
51
52
  * Clicks the action button.
52
53
  */
53
54
  SkyActionButtonFixture.prototype.actionClick = function () {
54
- this.debugEl.query(platformBrowser.By.css('.sky-action-button')).triggerEventHandler('click', {});
55
+ this.debugEl
56
+ .query(platformBrowser.By.css('.sky-action-button'))
57
+ .triggerEventHandler('click', {});
55
58
  };
56
59
  return SkyActionButtonFixture;
57
60
  }());
@@ -124,7 +127,9 @@
124
127
  }
125
128
  };
126
129
  SkyCardFixture.prototype.clickCheckLabelEl = function () {
127
- this.debugEl.query(platformBrowser.By.css('.sky-card-check label.sky-checkbox-wrapper')).nativeElement.click();
130
+ this.debugEl
131
+ .query(platformBrowser.By.css('.sky-card-check label.sky-checkbox-wrapper'))
132
+ .nativeElement.click();
128
133
  };
129
134
  SkyCardFixture.prototype.getCheckInputEl = function () {
130
135
  return this.debugEl.query(platformBrowser.By.css('.sky-card-check .sky-checkbox-wrapper input'));
@@ -182,5 +187,5 @@
182
187
 
183
188
  Object.defineProperty(exports, '__esModule', { value: true });
184
189
 
185
- })));
190
+ }));
186
191
  //# sourceMappingURL=skyux-layout-testing.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skyux-layout-testing.umd.js","sources":["../../../projects/layout/testing/src/action-button-fixture.ts","../../../projects/layout/testing/src/card-fixture.ts","../../../projects/layout/testing/src/page-summary-fixture.ts","../../../projects/layout/testing/src/skyux-layout-testing.ts"],"sourcesContent":["import {\n ComponentFixture\n} from '@angular/core/testing';\n\nimport {\n DebugElement\n} from '@angular/core';\n\nimport {\n By\n} from '@angular/platform-browser';\n\nimport {\n SkyAppTestUtility\n} from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX action button component.\n */\nexport class SkyActionButtonFixture {\n\n /**\n * The action button's current header text.\n */\n public get headerText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(By.css('.sky-action-button-header'))\n );\n }\n\n /**\n * The action button's current details text.\n */\n public get detailsText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(By.css('sky-action-button-details'))\n );\n }\n\n /**\n * The action button's current icon type.\n */\n public get iconType(): string {\n const classList = this.debugEl.query(\n By.css('.fa.sky-icon')\n ).nativeElement.classList;\n\n for (let i = 0, n = classList.length; i < n; i++) {\n const cls = classList.item(i);\n\n if (cls.indexOf('fa-') === 0) {\n return cls.substr(3);\n }\n }\n }\n\n private debugEl: DebugElement;\n\n constructor(\n fixture: ComponentFixture<any>,\n skyTestId: string\n ) {\n this.debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-action-button'\n );\n }\n\n /**\n * Clicks the action button.\n */\n public actionClick(): void {\n this.debugEl.query(By.css('.sky-action-button')).triggerEventHandler('click', {});\n }\n\n}\n","import {\n ComponentFixture\n} from '@angular/core/testing';\n\nimport {\n DebugElement\n} from '@angular/core';\n\nimport {\n By\n} from '@angular/platform-browser';\n\nimport {\n SkyAppTestUtility\n} from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX avatar component.\n */\nexport class SkyCardFixture {\n\n /**\n * The card's current title.\n */\n public get titleText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(By.css('sky-card-title'))\n );\n }\n\n /**\n * The card's current content text.\n */\n public get contentText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(By.css('sky-card-content'))\n );\n }\n\n /**\n * A flag indicating whether the user can select the card.\n */\n public get selectable(): boolean {\n return !!this.debugEl.query(By.css('.sky-card-check'));\n }\n\n /**\n * A flag indicating whether the card is currently selected. If the card\n * is not selectable, an error is thrown.\n */\n public get selected(): boolean {\n if (this.selectable) {\n return this.getCheckInputEl().nativeElement.checked;\n }\n\n throw new Error('The card is not selectable.');\n }\n\n private debugEl: DebugElement;\n\n constructor(\n fixture: ComponentFixture<any>,\n skyTestId: string\n ) {\n this.debugEl = SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-card');\n }\n\n /**\n * Selects the card.\n */\n public select(): void {\n if (!this.selected) {\n this.clickCheckLabelEl();\n }\n }\n\n /**\n * Deselects the card.\n */\n public deselect(): void {\n if (this.selected) {\n this.clickCheckLabelEl();\n }\n }\n\n private clickCheckLabelEl(): void {\n this.debugEl.query(\n By.css('.sky-card-check label.sky-checkbox-wrapper')\n ).nativeElement.click();\n }\n\n private getCheckInputEl(): DebugElement {\n return this.debugEl.query(\n By.css('.sky-card-check .sky-checkbox-wrapper input')\n );\n }\n\n}\n","import {\n ComponentFixture\n} from '@angular/core/testing';\n\nimport {\n DebugElement\n} from '@angular/core';\n\nimport {\n By\n} from '@angular/platform-browser';\n\nimport {\n SkyAppTestUtility\n} from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX page summary component.\n */\nexport class SkyPageSummaryFixture {\n\n /**\n * The page summary's current title text.\n */\n public get titleText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(By.css('sky-page-summary-title .sky-page-summary-title'))\n );\n }\n\n /**\n * The page summary's current subtitle text.\n */\n public get subtitleText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(By.css('sky-page-summary-subtitle .sky-page-summary-subtitle'))\n );\n }\n\n /**\n * The page summary's current content text.\n */\n public get contentText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(By.css('sky-page-summary-content .sky-page-summary-content'))\n );\n }\n\n private debugEl: DebugElement;\n\n constructor(\n fixture: ComponentFixture<any>,\n skyTestId: string\n ) {\n this.debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-page-summary'\n );\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["SkyAppTestUtility","By"],"mappings":";;;;;;IAgBA;;;;QA0CE,gCACE,OAA8B,EAC9B,SAAiB;YAEjB,IAAI,CAAC,OAAO,GAAGA,yBAAiB,CAAC,uBAAuB,CACtD,OAAO,EACP,SAAS,EACT,mBAAmB,CACpB,CAAC;SACH;QA3CD,sBAAW,8CAAU;;;;iBAArB;gBACE,OAAOA,yBAAiB,CAAC,OAAO,CAC9B,IAAI,CAAC,OAAO,CAAC,KAAK,CAACC,kBAAE,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,CACxD,CAAC;aACH;;;WAAA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B;gBACE,OAAOA,yBAAiB,CAAC,OAAO,CAC9B,IAAI,CAAC,OAAO,CAAC,KAAK,CAACC,kBAAE,CAAC,GAAG,CAAC,gDAAgD,CAAC,CAAC,CAC7E,CAAC;aACH;;;WAAA;QAKD,sBAAW,+CAAY;;;;iBAAvB;gBACE,OAAOD,yBAAiB,CAAC,OAAO,CAC9B,IAAI,CAAC,OAAO,CAAC,KAAK,CAACC,kBAAE,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC,CACnF,CAAC;aACH;;;WAAA;QAKD,sBAAW,8CAAW;;;;iBAAtB;gBACE,OAAOD,yBAAiB,CAAC,OAAO,CAC9B,IAAI,CAAC,OAAO,CAAC,KAAK,CAACC,kBAAE,CAAC,GAAG,CAAC,oDAAoD,CAAC,CAAC,CACjF,CAAC;aACH;;;WAAA;oCAeF;KAAA;;IC7DD;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"skyux-layout-testing.umd.js","sources":["../../../projects/layout/testing/src/action-button-fixture.ts","../../../projects/layout/testing/src/card-fixture.ts","../../../projects/layout/testing/src/page-summary-fixture.ts","../../../projects/layout/testing/src/skyux-layout-testing.ts"],"sourcesContent":["import { ComponentFixture } from '@angular/core/testing';\n\nimport { DebugElement } from '@angular/core';\n\nimport { By } from '@angular/platform-browser';\n\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX action button component.\n */\nexport class SkyActionButtonFixture {\n /**\n * The action button's current header text.\n */\n public get headerText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(By.css('.sky-action-button-header'))\n );\n }\n\n /**\n * The action button's current details text.\n */\n public get detailsText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(By.css('sky-action-button-details'))\n );\n }\n\n /**\n * The action button's current icon type.\n */\n public get iconType(): string {\n const classList = this.debugEl.query(By.css('.fa.sky-icon')).nativeElement\n .classList;\n\n for (let i = 0, n = classList.length; i < n; i++) {\n const cls = classList.item(i);\n\n if (cls.indexOf('fa-') === 0) {\n return cls.substr(3);\n }\n }\n }\n\n private debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-action-button'\n );\n }\n\n /**\n * Clicks the action button.\n */\n public actionClick(): void {\n this.debugEl\n .query(By.css('.sky-action-button'))\n .triggerEventHandler('click', {});\n }\n}\n","import { ComponentFixture } from '@angular/core/testing';\n\nimport { DebugElement } from '@angular/core';\n\nimport { By } from '@angular/platform-browser';\n\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX avatar component.\n */\nexport class SkyCardFixture {\n /**\n * The card's current title.\n */\n public get titleText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(By.css('sky-card-title'))\n );\n }\n\n /**\n * The card's current content text.\n */\n public get contentText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(By.css('sky-card-content'))\n );\n }\n\n /**\n * A flag indicating whether the user can select the card.\n */\n public get selectable(): boolean {\n return !!this.debugEl.query(By.css('.sky-card-check'));\n }\n\n /**\n * A flag indicating whether the card is currently selected. If the card\n * is not selectable, an error is thrown.\n */\n public get selected(): boolean {\n if (this.selectable) {\n return this.getCheckInputEl().nativeElement.checked;\n }\n\n throw new Error('The card is not selectable.');\n }\n\n private debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-card'\n );\n }\n\n /**\n * Selects the card.\n */\n public select(): void {\n if (!this.selected) {\n this.clickCheckLabelEl();\n }\n }\n\n /**\n * Deselects the card.\n */\n public deselect(): void {\n if (this.selected) {\n this.clickCheckLabelEl();\n }\n }\n\n private clickCheckLabelEl(): void {\n this.debugEl\n .query(By.css('.sky-card-check label.sky-checkbox-wrapper'))\n .nativeElement.click();\n }\n\n private getCheckInputEl(): DebugElement {\n return this.debugEl.query(\n By.css('.sky-card-check .sky-checkbox-wrapper input')\n );\n }\n}\n","import { ComponentFixture } from '@angular/core/testing';\n\nimport { DebugElement } from '@angular/core';\n\nimport { By } from '@angular/platform-browser';\n\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX page summary component.\n */\nexport class SkyPageSummaryFixture {\n /**\n * The page summary's current title text.\n */\n public get titleText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(\n By.css('sky-page-summary-title .sky-page-summary-title')\n )\n );\n }\n\n /**\n * The page summary's current subtitle text.\n */\n public get subtitleText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(\n By.css('sky-page-summary-subtitle .sky-page-summary-subtitle')\n )\n );\n }\n\n /**\n * The page summary's current content text.\n */\n public get contentText(): string {\n return SkyAppTestUtility.getText(\n this.debugEl.query(\n By.css('sky-page-summary-content .sky-page-summary-content')\n )\n );\n }\n\n private debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-page-summary'\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["SkyAppTestUtility","By"],"mappings":";;;;;;IAQA;;;;QAwCE,gCAAY,OAA8B,EAAE,SAAiB;YAC3D,IAAI,CAAC,OAAO,GAAGA,yBAAiB,CAAC,uBAAuB,CACtD,OAAO,EACP,SAAS,EACT,mBAAmB,CACpB,CAAC;SACH;QAvCD,sBAAW,8CAAU;;;;iBAArB;gBACE,OAAOA,yBAAiB,CAAC,OAAO,CAC9B,IAAI,CAAC,OAAO,CAAC,KAAK,CAACC,kBAAE,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,CACxD,CAAC;aACH;;;WAAA;QAKD,sBAAW,+CAAW;;;;iBAAtB;gBACE,OAAOD,yBAAiB,CAAC,OAAO,CAC9B,IAAI,CAAC,OAA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