@fluentui/react-button 0.0.0-nightlyc9ccb6f37d20211122.1 → 0.0.0-nightlycbf184efa720211222.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/CHANGELOG.json +98 -21
  2. package/CHANGELOG.md +31 -13
  3. package/lib/components/Button/renderButton.js +4 -1
  4. package/lib/components/Button/renderButton.js.map +1 -1
  5. package/lib/components/Button/useButton.js +2 -1
  6. package/lib/components/Button/useButton.js.map +1 -1
  7. package/lib/components/Button/useButtonStyles.js +92 -58
  8. package/lib/components/Button/useButtonStyles.js.map +1 -1
  9. package/lib/components/CompoundButton/renderCompoundButton.js +6 -1
  10. package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
  11. package/lib/components/CompoundButton/useCompoundButtonStyles.js +4 -3
  12. package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  13. package/lib/components/MenuButton/renderMenuButton.js +4 -1
  14. package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
  15. package/lib/components/SplitButton/renderSplitButton.js +4 -1
  16. package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
  17. package/lib/components/ToggleButton/useToggleButtonStyles.js +31 -31
  18. package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  19. package/lib-commonjs/components/Button/renderButton.js +4 -1
  20. package/lib-commonjs/components/Button/renderButton.js.map +1 -1
  21. package/lib-commonjs/components/Button/useButton.js +2 -1
  22. package/lib-commonjs/components/Button/useButton.js.map +1 -1
  23. package/lib-commonjs/components/Button/useButtonStyles.js +91 -57
  24. package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
  25. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +6 -1
  26. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
  27. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +3 -2
  28. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  29. package/lib-commonjs/components/MenuButton/renderMenuButton.js +4 -1
  30. package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
  31. package/lib-commonjs/components/SplitButton/renderSplitButton.js +4 -1
  32. package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
  33. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +30 -30
  34. package/package.json +14 -13
  35. package/lib/common/isConformant.d.ts +0 -4
  36. package/lib/common/isConformant.js +0 -13
  37. package/lib/common/isConformant.js.map +0 -1
  38. package/lib-commonjs/common/isConformant.d.ts +0 -4
  39. package/lib-commonjs/common/isConformant.js +0 -24
  40. package/lib-commonjs/common/isConformant.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,17 +2,94 @@
2
2
  "name": "@fluentui/react-button",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 22 Nov 2021 04:15:06 GMT",
6
- "tag": "@fluentui/react-button_v0.0.0-nightlyc9ccb6f37d20211122.1",
7
- "version": "0.0.0-nightlyc9ccb6f37d20211122.1",
5
+ "date": "Wed, 22 Dec 2021 04:13:37 GMT",
6
+ "tag": "@fluentui/react-button_v0.0.0-nightlycbf184efa720211222.1",
7
+ "version": "0.0.0-nightlycbf184efa720211222.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-button",
13
- "commit": "485cdebc9d90401363f72f87d647689444cdaba4",
13
+ "commit": "28b9baaabf69c84b88a540aa640694c468cb98e0",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "ololubek@microsoft.com",
18
+ "package": "@fluentui/react-button",
19
+ "commit": "7cb2a5d8db1b6a1ddb638aa82d5815ab5ae84e69",
20
+ "comment": "(fix): Update react-icons dependency to latest version"
21
+ },
22
+ {
23
+ "author": "olfedias@microsoft.com",
24
+ "package": "@fluentui/react-button",
25
+ "commit": "54118b29fde686ef15fe95a3a97f3fd7edca34a3",
26
+ "comment": "update styles to not use CSS shorthands"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-button",
31
+ "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlycbf184efa720211222.1",
32
+ "commit": "28b9baaabf69c84b88a540aa640694c468cb98e0"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-button",
37
+ "comment": "Bump @fluentui/react-aria to v0.0.0-nightlycbf184efa720211222.1",
38
+ "commit": "28b9baaabf69c84b88a540aa640694c468cb98e0"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-button",
43
+ "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlycbf184efa720211222.1",
44
+ "commit": "28b9baaabf69c84b88a540aa640694c468cb98e0"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-button",
49
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlycbf184efa720211222.1",
50
+ "commit": "28b9baaabf69c84b88a540aa640694c468cb98e0"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-button",
55
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlycbf184efa720211222.1",
56
+ "commit": "28b9baaabf69c84b88a540aa640694c468cb98e0"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-button",
61
+ "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlycbf184efa720211222.1",
62
+ "commit": "28b9baaabf69c84b88a540aa640694c468cb98e0"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@fluentui/react-button",
67
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlycbf184efa720211222.1",
68
+ "commit": "28b9baaabf69c84b88a540aa640694c468cb98e0"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@fluentui/react-button",
73
+ "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlycbf184efa720211222.1",
74
+ "commit": "28b9baaabf69c84b88a540aa640694c468cb98e0"
75
+ }
76
+ ],
77
+ "none": [
78
+ {
79
+ "author": "tkrasniqi@microsoft.com",
80
+ "package": "@fluentui/react-button",
81
+ "commit": "ca886fed17b4a73b9bb3b5a9e54d143062cbfa99",
82
+ "comment": "Migration to new tsconfig"
83
+ }
84
+ ]
85
+ }
86
+ },
87
+ {
88
+ "date": "Thu, 25 Nov 2021 08:34:12 GMT",
89
+ "tag": "@fluentui/react-button_v9.0.0-beta.5",
90
+ "version": "9.0.0-beta.5",
91
+ "comments": {
92
+ "prerelease": [
16
93
  {
17
94
  "author": "Humberto.Morimoto@microsoft.com",
18
95
  "package": "@fluentui/react-button",
@@ -20,52 +97,52 @@
20
97
  "comment": "MenuButton: Removing tight coupling with Menu by replicating type locally."
21
98
  },
22
99
  {
23
- "author": "beachball",
100
+ "author": "ololubek@microsoft.com",
24
101
  "package": "@fluentui/react-button",
25
- "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlyc9ccb6f37d20211122.1",
26
- "commit": "485cdebc9d90401363f72f87d647689444cdaba4"
102
+ "commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
103
+ "comment": "update react-icons dependency"
27
104
  },
28
105
  {
29
106
  "author": "beachball",
30
107
  "package": "@fluentui/react-button",
31
- "comment": "Bump @fluentui/react-aria to v0.0.0-nightlyc9ccb6f37d20211122.1",
32
- "commit": "485cdebc9d90401363f72f87d647689444cdaba4"
108
+ "comment": "Bump @fluentui/react-aria to v9.0.0-beta.4",
109
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
33
110
  },
34
111
  {
35
112
  "author": "beachball",
36
113
  "package": "@fluentui/react-button",
37
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyc9ccb6f37d20211122.1",
38
- "commit": "485cdebc9d90401363f72f87d647689444cdaba4"
114
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
115
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
39
116
  },
40
117
  {
41
118
  "author": "beachball",
42
119
  "package": "@fluentui/react-button",
43
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyc9ccb6f37d20211122.1",
44
- "commit": "485cdebc9d90401363f72f87d647689444cdaba4"
120
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
121
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
45
122
  },
46
123
  {
47
124
  "author": "beachball",
48
125
  "package": "@fluentui/react-button",
49
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyc9ccb6f37d20211122.1",
50
- "commit": "485cdebc9d90401363f72f87d647689444cdaba4"
126
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
127
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
51
128
  },
52
129
  {
53
130
  "author": "beachball",
54
131
  "package": "@fluentui/react-button",
55
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyc9ccb6f37d20211122.1",
56
- "commit": "485cdebc9d90401363f72f87d647689444cdaba4"
132
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
133
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
57
134
  },
58
135
  {
59
136
  "author": "beachball",
60
137
  "package": "@fluentui/react-button",
61
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyc9ccb6f37d20211122.1",
62
- "commit": "485cdebc9d90401363f72f87d647689444cdaba4"
138
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
139
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
63
140
  },
64
141
  {
65
142
  "author": "beachball",
66
143
  "package": "@fluentui/react-button",
67
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyc9ccb6f37d20211122.1",
68
- "commit": "485cdebc9d90401363f72f87d647689444cdaba4"
144
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
145
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
69
146
  }
70
147
  ]
71
148
  }
package/CHANGELOG.md CHANGED
@@ -1,26 +1,44 @@
1
1
  # Change Log - @fluentui/react-button
2
2
 
3
- This log was last generated on Mon, 22 Nov 2021 04:15:06 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 22 Dec 2021 04:13:37 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlyc9ccb6f37d20211122.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightlyc9ccb6f37d20211122.1)
7
+ ## [0.0.0-nightlycbf184efa720211222.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightlycbf184efa720211222.1)
8
8
 
9
- Mon, 22 Nov 2021 04:15:06 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.4..@fluentui/react-button_v0.0.0-nightlyc9ccb6f37d20211122.1)
9
+ Wed, 22 Dec 2021 04:13:37 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.5..@fluentui/react-button_v0.0.0-nightlycbf184efa720211222.1)
11
+
12
+ ### Changes
13
+
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/28b9baaabf69c84b88a540aa640694c468cb98e0) by email not defined)
15
+ - (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
16
+ - update styles to not use CSS shorthands ([PR #20815](https://github.com/microsoft/fluentui/pull/20815) by olfedias@microsoft.com)
17
+ - Bump @fluentui/keyboard-keys to v0.0.0-nightlycbf184efa720211222.1 ([commit](https://github.com/microsoft/fluentui/commit/28b9baaabf69c84b88a540aa640694c468cb98e0) by beachball)
18
+ - Bump @fluentui/react-aria to v0.0.0-nightlycbf184efa720211222.1 ([commit](https://github.com/microsoft/fluentui/commit/28b9baaabf69c84b88a540aa640694c468cb98e0) by beachball)
19
+ - Bump @fluentui/react-make-styles to v0.0.0-nightlycbf184efa720211222.1 ([commit](https://github.com/microsoft/fluentui/commit/28b9baaabf69c84b88a540aa640694c468cb98e0) by beachball)
20
+ - Bump @fluentui/react-tabster to v0.0.0-nightlycbf184efa720211222.1 ([commit](https://github.com/microsoft/fluentui/commit/28b9baaabf69c84b88a540aa640694c468cb98e0) by beachball)
21
+ - Bump @fluentui/react-utilities to v0.0.0-nightlycbf184efa720211222.1 ([commit](https://github.com/microsoft/fluentui/commit/28b9baaabf69c84b88a540aa640694c468cb98e0) by beachball)
22
+ - Bump @fluentui/babel-make-styles to v0.0.0-nightlycbf184efa720211222.1 ([commit](https://github.com/microsoft/fluentui/commit/28b9baaabf69c84b88a540aa640694c468cb98e0) by beachball)
23
+ - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlycbf184efa720211222.1 ([commit](https://github.com/microsoft/fluentui/commit/28b9baaabf69c84b88a540aa640694c468cb98e0) by beachball)
24
+ - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlycbf184efa720211222.1 ([commit](https://github.com/microsoft/fluentui/commit/28b9baaabf69c84b88a540aa640694c468cb98e0) by beachball)
25
+
26
+ ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.5)
27
+
28
+ Thu, 25 Nov 2021 08:34:12 GMT
29
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.4..@fluentui/react-button_v9.0.0-beta.5)
11
30
 
12
31
  ### Changes
13
32
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/485cdebc9d90401363f72f87d647689444cdaba4) by email not defined)
15
33
  - MenuButton: Removing tight coupling with Menu by replicating type locally. ([PR #20635](https://github.com/microsoft/fluentui/pull/20635) by Humberto.Morimoto@microsoft.com)
16
- - Bump @fluentui/keyboard-keys to v0.0.0-nightlyc9ccb6f37d20211122.1 ([commit](https://github.com/microsoft/fluentui/commit/485cdebc9d90401363f72f87d647689444cdaba4) by beachball)
17
- - Bump @fluentui/react-aria to v0.0.0-nightlyc9ccb6f37d20211122.1 ([commit](https://github.com/microsoft/fluentui/commit/485cdebc9d90401363f72f87d647689444cdaba4) by beachball)
18
- - Bump @fluentui/react-make-styles to v0.0.0-nightlyc9ccb6f37d20211122.1 ([commit](https://github.com/microsoft/fluentui/commit/485cdebc9d90401363f72f87d647689444cdaba4) by beachball)
19
- - Bump @fluentui/react-tabster to v0.0.0-nightlyc9ccb6f37d20211122.1 ([commit](https://github.com/microsoft/fluentui/commit/485cdebc9d90401363f72f87d647689444cdaba4) by beachball)
20
- - Bump @fluentui/react-utilities to v0.0.0-nightlyc9ccb6f37d20211122.1 ([commit](https://github.com/microsoft/fluentui/commit/485cdebc9d90401363f72f87d647689444cdaba4) by beachball)
21
- - Bump @fluentui/babel-make-styles to v0.0.0-nightlyc9ccb6f37d20211122.1 ([commit](https://github.com/microsoft/fluentui/commit/485cdebc9d90401363f72f87d647689444cdaba4) by beachball)
22
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyc9ccb6f37d20211122.1 ([commit](https://github.com/microsoft/fluentui/commit/485cdebc9d90401363f72f87d647689444cdaba4) by beachball)
23
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyc9ccb6f37d20211122.1 ([commit](https://github.com/microsoft/fluentui/commit/485cdebc9d90401363f72f87d647689444cdaba4) by beachball)
34
+ - update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
35
+ - Bump @fluentui/react-aria to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
36
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
37
+ - Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
38
+ - Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
39
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
40
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
41
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
24
42
 
25
43
  ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.4)
26
44
 
@@ -13,6 +13,9 @@ export const renderButton = state => {
13
13
  iconOnly,
14
14
  iconPosition
15
15
  } = state;
16
- return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root), iconPosition !== 'after' && /*#__PURE__*/React.createElement(slots.icon, Object.assign({}, slotProps.icon)), !iconOnly && state.root.children, iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, Object.assign({}, slotProps.icon)));
16
+ return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
17
+ }, iconPosition !== 'after' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
18
+ }), !iconOnly && state.root.children, iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
19
+ }));
17
20
  };
18
21
  //# sourceMappingURL=renderButton.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Button/renderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,YAAY,GAAI,KAAD,IAAuB;AACjD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAc,KAAd,EAAqB,CAAC,MAAD,EAAS,MAAT,CAArB,CAArC;AACA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA6B,KAAnC;AAEA,sBACE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AAC;AAAf,GAAX,CAH/B,CADF;AAOD,CAXM","sourceRoot":""}
@@ -40,7 +40,8 @@ export const useButton = (props, ref) => {
40
40
  defaultProps: {
41
41
  // useARIAButton isn't working with React.Ref<HTMLButtonElement | HTMLAnchorElement>
42
42
  ref: ref,
43
- type: 'button'
43
+ type: 'button' // This is added because the default for type is 'submit'
44
+
44
45
  }
45
46
  })),
46
47
  icon: iconShorthand
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Button/useButton.ts"],"names":[],"mappings":"AACA,SAAS,aAAT,QAA8B,sBAA9B;AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;;;AAIG;;AACH,OAAO,MAAM,SAAS,GAAG,CAAC,KAAD,EAAqB,GAArB,KAA2F;AAClH,QAAM;AACJ,IAAA,UADI;AAEJ,IAAA,EAFI;AAGJ,IAAA,KAAK,GAAG,KAHJ;AAIJ,IAAA,QAAQ,GAAG,KAJP;AAKJ,IAAA,iBAAiB,GAAG,KALhB;AAMJ,IAAA,IANI;AAOJ,IAAA,YAAY,GAAG,QAPX;AAQJ,IAAA,KAAK,GAAG,SARJ;AASJ,IAAA,IAAI,GAAG;AATH,MAUF,KAVJ;AAWA,QAAM,aAAa,GAAG,gBAAgB,CAAC,IAAD,CAAtC;AAEA,SAAO;AACL;AACA,IAAA,UAFK;AAGL,IAAA,KAHK;AAIL,IAAA,QAJK;AAKL,IAAA,iBALK;AAML,IAAA,YANK;AAOL,IAAA,KAPK;AAQL,IAAA,IARK;AAUL;AACA,IAAA,QAAQ,EAAE,OAAO,CAAC,CAAA,aAAa,KAAA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAa,KAAA,CAAb,GAAA,aAAa,CAAE,QAAf,KAA2B,CAAC,KAAK,CAAC,QAAnC,CAXZ;AAaL;AACA,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,QADI;AAEV,MAAA,IAAI,EAAE;AAFI,KAdP;AAmBL,IAAA,IAA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