@streamlayer/react 1.21.3 → 1.22.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 (168) hide show
  1. package/lib/app/masters.d.ts +2 -5
  2. package/lib/app/pause-ad.d.ts +1 -10
  3. package/lib/app/useStreamLayerApp.d.ts +1 -23
  4. package/lib/cjs/Question.js +1 -0
  5. package/lib/cjs/advertisement.js +40 -40
  6. package/lib/cjs/analytics.js +1 -0
  7. package/lib/cjs/auth.js +1 -1
  8. package/lib/cjs/bet-pack.js +1 -1
  9. package/lib/cjs/gamification-feature.js +1 -1
  10. package/lib/cjs/hooks-B0Qttldg.js +1 -0
  11. package/lib/cjs/index-DSi8Qgfs.js +1 -0
  12. package/lib/cjs/index.js +1 -1
  13. package/lib/cjs/index10.js +1 -0
  14. package/lib/cjs/index11.js +4 -0
  15. package/lib/cjs/index12.js +1 -0
  16. package/lib/cjs/index13.js +1 -0
  17. package/lib/cjs/index14.js +1 -0
  18. package/lib/cjs/index15.js +1 -0
  19. package/lib/cjs/index16.js +5 -0
  20. package/lib/cjs/index2.js +1 -5
  21. package/lib/cjs/index3.js +1 -0
  22. package/lib/cjs/index4.js +5 -0
  23. package/lib/cjs/index5.js +1 -0
  24. package/lib/cjs/index6.js +1 -0
  25. package/lib/cjs/index7.js +5 -0
  26. package/lib/cjs/index8.js +1 -0
  27. package/lib/cjs/index9.js +1 -0
  28. package/lib/cjs/insight.js +1 -1
  29. package/lib/cjs/masters.js +1 -1
  30. package/lib/cjs/masters2.js +6 -6
  31. package/lib/cjs/notification.js +1 -1
  32. package/lib/cjs/pause-ad.js +1 -1
  33. package/lib/cjs/points.js +1 -1
  34. package/lib/cjs/sl-types.js +15 -0
  35. package/lib/cjs/storage.js +1 -0
  36. package/lib/cjs/theme.js +17 -0
  37. package/lib/cjs/useStreamLayerApp.js +1 -1
  38. package/lib/cjs/useStreamLayerApp2.js +17 -16
  39. package/lib/cjs/utils.js +47 -0
  40. package/lib/cjs/vast-client.min.js +1 -0
  41. package/lib/classic/app/masters.d.ts +2 -5
  42. package/lib/classic/app/pause-ad.d.ts +1 -10
  43. package/lib/classic/app/useStreamLayerApp.d.ts +1 -23
  44. package/lib/classic/cjs/Question.js +1 -0
  45. package/lib/classic/cjs/advertisement.js +40 -40
  46. package/lib/classic/cjs/analytics.js +1 -0
  47. package/lib/classic/cjs/auth.js +1 -1
  48. package/lib/classic/cjs/bet-pack.js +4 -4
  49. package/lib/classic/cjs/gamification-feature.js +1 -1
  50. package/lib/classic/cjs/hooks-B0Qttldg.js +1 -0
  51. package/lib/classic/cjs/index-DSi8Qgfs.js +1 -0
  52. package/lib/classic/cjs/index.js +1 -1
  53. package/lib/classic/cjs/index10.js +1 -0
  54. package/lib/classic/cjs/index11.js +1 -0
  55. package/lib/classic/cjs/index12.js +1 -0
  56. package/lib/classic/cjs/index13.js +4 -0
  57. package/lib/classic/cjs/index2.js +5 -0
  58. package/lib/classic/cjs/index3.js +1 -0
  59. package/lib/classic/cjs/index4.js +1 -0
  60. package/lib/classic/cjs/index5.js +1 -0
  61. package/lib/classic/cjs/index6.js +5 -0
  62. package/lib/classic/cjs/index7.js +1 -0
  63. package/lib/classic/cjs/index8.js +1 -0
  64. package/lib/classic/cjs/index9.js +1 -0
  65. package/lib/classic/cjs/insight.js +1 -1
  66. package/lib/classic/cjs/notification.js +1 -1
  67. package/lib/classic/cjs/notification2.js +1 -0
  68. package/lib/classic/cjs/pause-ad.js +1 -1
  69. package/lib/classic/cjs/points.js +1 -1
  70. package/lib/classic/cjs/sl-types.js +15 -0
  71. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  72. package/lib/classic/cjs/useStreamLayerApp2.js +17 -16
  73. package/lib/classic/cjs/utils.js +47 -0
  74. package/lib/classic/cjs/vast-client.min.js +1 -0
  75. package/lib/classic/es/Question.js +392 -0
  76. package/lib/classic/es/advertisement.js +10375 -10374
  77. package/lib/classic/es/analytics.js +28 -0
  78. package/lib/classic/es/auth.js +4 -4
  79. package/lib/classic/es/bet-pack.js +55 -51
  80. package/lib/classic/es/gamification-feature.js +1 -1
  81. package/lib/classic/es/hooks-B0Qttldg.js +98 -0
  82. package/lib/classic/es/index-DSi8Qgfs.js +65 -0
  83. package/lib/classic/es/index.js +14 -15
  84. package/lib/classic/es/index10.js +87 -0
  85. package/lib/classic/es/index11.js +2355 -0
  86. package/lib/classic/es/index12.js +183 -0
  87. package/lib/classic/es/index13.js +835 -0
  88. package/lib/classic/es/index2.js +2621 -0
  89. package/lib/classic/es/index3.js +64 -0
  90. package/lib/classic/es/index4.js +19 -0
  91. package/lib/classic/es/index5.js +285 -0
  92. package/lib/classic/es/{index-l-eyvmpL.js → index6.js} +937 -937
  93. package/lib/classic/es/index7.js +7 -0
  94. package/lib/classic/es/index8.js +11 -0
  95. package/lib/classic/es/index9.js +319 -0
  96. package/lib/classic/es/insight.js +31 -32
  97. package/lib/classic/es/notification.js +7 -1006
  98. package/lib/classic/es/notification2.js +1117 -0
  99. package/lib/classic/es/pause-ad.js +139 -138
  100. package/lib/classic/es/points.js +39 -38
  101. package/lib/classic/es/sl-types.js +258 -0
  102. package/lib/classic/es/useStreamLayerApp.js +1 -2
  103. package/lib/classic/es/useStreamLayerApp2.js +4798 -2735
  104. package/lib/classic/es/utils.js +76 -0
  105. package/lib/{es/vast-client.min-B0NUra1B.js → classic/es/vast-client.min.js} +338 -338
  106. package/lib/classic/index.d.ts +5 -13
  107. package/lib/classic/masters.d.ts +1 -1
  108. package/lib/dist/cjs/index.js +1 -1
  109. package/lib/dist/cjs/masters.js +34 -33
  110. package/lib/dist/es/index.js +2 -2
  111. package/lib/dist/es/masters.js +10563 -8870
  112. package/lib/dist/index.d.ts +1332 -0
  113. package/lib/dist/style.css +1 -1
  114. package/lib/es/Question.js +136 -0
  115. package/lib/es/advertisement.js +10375 -10374
  116. package/lib/es/analytics.js +28 -0
  117. package/lib/es/auth.js +4 -4
  118. package/lib/es/bet-pack.js +7 -6
  119. package/lib/es/gamification-feature.js +1 -1
  120. package/lib/es/hooks-B0Qttldg.js +98 -0
  121. package/lib/es/index-DSi8Qgfs.js +65 -0
  122. package/lib/es/index.js +13 -14
  123. package/lib/es/index10.js +267 -0
  124. package/lib/es/index11.js +835 -0
  125. package/lib/es/index12.js +183 -0
  126. package/lib/es/index13.js +319 -0
  127. package/lib/es/index14.js +87 -0
  128. package/lib/es/index15.js +2355 -0
  129. package/lib/es/index16.js +1254 -0
  130. package/lib/es/index2.js +1349 -3364
  131. package/lib/es/index3.js +64 -0
  132. package/lib/es/index4.js +3418 -0
  133. package/lib/es/index5.js +19 -0
  134. package/lib/es/index6.js +285 -0
  135. package/lib/es/{index-l-eyvmpL.js → index7.js} +937 -937
  136. package/lib/es/index8.js +7 -0
  137. package/lib/es/index9.js +11 -0
  138. package/lib/es/insight.js +31 -32
  139. package/lib/es/masters.js +6 -5
  140. package/lib/es/masters2.js +189 -176
  141. package/lib/es/notification.js +141 -136
  142. package/lib/es/pause-ad.js +140 -139
  143. package/lib/es/points.js +40 -38
  144. package/lib/es/sl-types.js +277 -0
  145. package/lib/es/storage.js +113 -0
  146. package/lib/es/theme.js +47 -0
  147. package/lib/es/useStreamLayerApp.js +1 -2
  148. package/lib/es/useStreamLayerApp2.js +4798 -2735
  149. package/lib/es/utils.js +76 -0
  150. package/lib/{classic/es/vast-client.min-B0NUra1B.js → es/vast-client.min.js} +338 -338
  151. package/lib/index.d.ts +5 -13
  152. package/lib/masters.d.ts +1 -1
  153. package/lib/style.css +1 -1
  154. package/package.json +16 -51
  155. package/lib/app/event.d.ts +0 -6
  156. package/lib/app/provider.d.ts +0 -49
  157. package/lib/cjs/index-l-eyvmpL.js +0 -5
  158. package/lib/cjs/provider.js +0 -84
  159. package/lib/cjs/vast-client.min-B0NUra1B.js +0 -1
  160. package/lib/classic/app/event.d.ts +0 -6
  161. package/lib/classic/app/provider.d.ts +0 -49
  162. package/lib/classic/cjs/index-l-eyvmpL.js +0 -5
  163. package/lib/classic/cjs/provider.js +0 -68
  164. package/lib/classic/cjs/vast-client.min-B0NUra1B.js +0 -1
  165. package/lib/classic/es/provider.js +0 -7619
  166. package/lib/dist/cjs/gamification-feature2.js +0 -1
  167. package/lib/dist/es/gamification-feature2.js +0 -285
  168. package/lib/es/provider.js +0 -7695
@@ -0,0 +1,258 @@
1
+ import s from "react";
2
+ import { listenKeys as y } from "nanostores";
3
+ var v = function() {
4
+ const t = Array.prototype.slice.call(arguments).filter(Boolean), r = {}, a = [];
5
+ t.forEach((n) => {
6
+ (n ? n.split(" ") : []).forEach((o) => {
7
+ if (o.startsWith("atm_")) {
8
+ const [, f] = o.split("_");
9
+ r[f] = o;
10
+ } else
11
+ a.push(o);
12
+ });
13
+ });
14
+ const i = [];
15
+ for (const n in r)
16
+ Object.prototype.hasOwnProperty.call(r, n) && i.push(r[n]);
17
+ return i.push(...a), i.join(" ");
18
+ }, N = v;
19
+ const P = {
20
+ BLUE_QUESTION_ACTION_BTN: "#1589ee",
21
+ WHITE: "#FFFFFF",
22
+ BLUE: "#2d6ffd",
23
+ GREY_PRIMARY: "#909395",
24
+ GREY_PRIMARY_ONBOARDING_INAPP: "#B5B7B8",
25
+ PRIMARY_1: "#1D7BFF",
26
+ // main
27
+ PRIMARY_2: "#095CD1",
28
+ // hover, active, ...etc (darken 10%)
29
+ PRIMARY_TEXT: "#090E13",
30
+ SECONDARY_TEXT: "rgba(10, 14, 19, 0.70)",
31
+ QUESTION_TYPE_ICON: "#1D7BFF",
32
+ QUESTION_BODY_TEXT: "#090E13",
33
+ PRESENTED_BY_TEXT: "#090E13",
34
+ SUCCESS: "#107D57",
35
+ UNSUCCESS: "#DF2F3B",
36
+ SECONDARY_RED1: "#DF2F3B",
37
+ NEUTRALS_WHITE: "#FFFFFF",
38
+ NEUTRALS_WHITE1: "#FFFFFF",
39
+ NEUTRALS_GRAY1: "#F7F7F7",
40
+ NEUTRALS_GRAY2: "#F2F2F1",
41
+ NEUTRALS_GRAY3: "#E8E8E8",
42
+ NEUTRALS_GRAY4: "#D9D9D6",
43
+ NEUTRALS_GRAY5: "#B1B3B3",
44
+ NEUTRALS_GRAY6: "#888B8D",
45
+ NEUTRALS_GRAY7: "#6B6F73",
46
+ NEUTRALS_GRAY9: "#25282A",
47
+ SDK_CONTAINER_BG: "#F7F7F7",
48
+ SDK_WHITE_CONTAINER_BG: "#fff",
49
+ SDK_DARK_CONTAINER_BG: "#fff",
50
+ SDK_PREDICTION_RESULT_SUCCESS_BG: "#fff",
51
+ SDK_PREDICTION_RESULT_INCORRECT_BG: "#fff",
52
+ SDK_PREDICTION_RESULT_SUCCESS_TEXT: "#107D57",
53
+ SDK_PREDICTION_RESULT_ERROR_TITLE: "#090E13",
54
+ SDK_PREDICTION_RESULT_ERROR_SUBTITLE: "#DF2F3B",
55
+ SDK_PREDICTION_RESULT_CLOSE_ICON: "#6B6F73",
56
+ SDK_PREDICTION_FEEDBACK_SUCCESS_ICON: "#107D57",
57
+ SDK_PREDICTION_FEEDBACK_INCORRECT_RECT1: "#CD2525",
58
+ SDK_PREDICTION_FEEDBACK_INCORRECT_RECT2: "#fff",
59
+ PREDICTION_BG_LINES_CORRECT: "#01AB58",
60
+ PREDICTION_BG_LINES_INCORRECT: "#888B8D",
61
+ SKELETON_COLOR_1: "#f1efef",
62
+ SKELETON_COLOR_2: "#f9f8f8",
63
+ TABS_CONTAINER_BG: "#F2F2F1",
64
+ TABS_ACTIVE_BG: "#FFFFFF",
65
+ TABS_COLOR: "#6B6F73",
66
+ TABS_ACTIVE_COLOR: "#1D7BFF",
67
+ CARD_BG: "#FFFFFF",
68
+ CARD_BORDER: "#fff",
69
+ BORDER: "#E8E8E8",
70
+ VOTE_BTN_BG: "#F7F7F7",
71
+ VOTE_BTN_BORDER: "rgb(232, 232, 232)",
72
+ VOTE_BTN_DISABLED_BORDER: "#B1B3B3",
73
+ VOTE_BTN_SELECTED_BORDER: "#25282A",
74
+ VOTE_BTN_NOT_SELECTED_BORDER: "#E8E8E8",
75
+ VOTE_BTN_SELECTED_BG: "#FFFFFF",
76
+ VOTE_BTN_SELECTED_BG_AD_UNIT: "#FFFFFF",
77
+ VOTE_BTN_NOT_SELECTED_BG: "#FFFFFF",
78
+ VOTE_BTN_NOT_SELECTED_BG_UNSET: "rgb(196, 196, 196)",
79
+ VOTED_ANSWER_BG: "#FFFFFF",
80
+ VOTED_BTN_RCT_BG: "#2d5694",
81
+ IN_APP_BG: "rgba(255, 255, 255, 0.90)",
82
+ IN_APP_QUESTION_TYPE_ICON: "#1D7BFF",
83
+ IN_APP_QUESTION_TYPE_LABEL: "#82899E",
84
+ IN_APP_QUESTION_QUOTE: "rgba(10, 14, 19, 0.70)",
85
+ IN_APP_QUESTION_RESULT_SUBTITLE_BG: "#1D7BFF",
86
+ IN_APP_QUESTION_RESULT_LINE: "#babfc5",
87
+ QUOTE_BORDER: "#E8E8E8",
88
+ QUOTE_TEXT: "rgba(10, 14, 19, 0.70)"
89
+ }, L = {
90
+ BG_PRIMARY: "#13212b",
91
+ BG_SECONDARY: "#152430",
92
+ BG_SECONDARY1: "#435059",
93
+ BORDER_PRIMARY: "rgba(255, 255, 255, 0.1)",
94
+ TEXT_PRIMARY: "#f9f9f9",
95
+ TEXT_PRIMARY1: "#f9f9f9",
96
+ TEXT_SECONDARY: "rgba(255, 255, 255, 0.8)",
97
+ TEXT_SECONDARY1: "#878787",
98
+ WHITE: "#fff"
99
+ }, te = ["#107D57", "#DF2F3B", "#DF2F3B", "#E8E8E8"], re = "#cee5de", ne = "#f9d6d8", ae = "#E8E8E8", ie = {
100
+ xs: 324,
101
+ sm: 576,
102
+ md: 768,
103
+ lg: 992,
104
+ xl: 1200,
105
+ xxl: 1440
106
+ };
107
+ Object.entries(P).reduce((e, [t, r]) => `
108
+ ${e}
109
+ --color-${t.toLowerCase().replaceAll("_", "-")}: ${r};
110
+ `, "");
111
+ Object.entries(L).reduce((e, [t, r]) => `
112
+ ${e}
113
+ --color-adv-${t.toLowerCase().replaceAll("_", "-")}: ${r};
114
+ `, "");
115
+ function x(e) {
116
+ var t = /* @__PURE__ */ Object.create(null);
117
+ return function(r) {
118
+ return t[r] === void 0 && (t[r] = e(r)), t[r];
119
+ };
120
+ }
121
+ var U = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, R = /* @__PURE__ */ x(
122
+ function(e) {
123
+ return U.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
124
+ }
125
+ /* Z+1 */
126
+ ), b = (e) => e.toUpperCase() === e, k = (e) => (t) => e.indexOf(t) === -1, A = (e, t) => {
127
+ const r = {};
128
+ return Object.keys(e).filter(k(t)).forEach((a) => {
129
+ r[a] = e[a];
130
+ }), r;
131
+ };
132
+ function w(e, t, r) {
133
+ const a = A(t, r);
134
+ if (!e) {
135
+ const i = typeof R == "function" ? { default: R } : R;
136
+ Object.keys(a).forEach((n) => {
137
+ i.default(n) || delete a[n];
138
+ });
139
+ }
140
+ return a;
141
+ }
142
+ var G = (e, t) => {
143
+ };
144
+ function Y(e) {
145
+ let t = "";
146
+ return (r) => {
147
+ const a = (n, c) => {
148
+ const { as: o = e, class: f = t } = n, B = r.propsAsIs === void 0 ? !(typeof o == "string" && o.indexOf("-") === -1 && !b(o[0])) : r.propsAsIs, l = w(B, n, [
149
+ "as",
150
+ "class"
151
+ ]);
152
+ l.ref = c, l.className = r.atomic ? N(r.class, l.className || f) : N(l.className || f, r.class);
153
+ const { vars: _ } = r;
154
+ if (_) {
155
+ const d = {};
156
+ for (const u in _) {
157
+ const F = _[u], T = F[0], g = F[1] || "", h = typeof T == "function" ? T(n) : T;
158
+ G(h, r.name), d[`--${u}`] = `${h}${g}`;
159
+ }
160
+ const m = l.style || {}, O = Object.keys(m);
161
+ O.length > 0 && O.forEach((u) => {
162
+ d[u] = m[u];
163
+ }), l.style = d;
164
+ }
165
+ return e.__wyw_meta && e !== o ? (l.as = o, s.createElement(e, l)) : s.createElement(o, l);
166
+ }, i = s.forwardRef ? s.forwardRef(a) : (
167
+ // React.forwardRef won't available on older React versions and in Preact
168
+ // Fallback to a innerRef prop in that case
169
+ (n) => {
170
+ const c = A(n, ["innerRef"]);
171
+ return a(c, n.innerRef);
172
+ }
173
+ );
174
+ return i.displayName = r.name, i.__wyw_meta = {
175
+ className: r.class || t,
176
+ extends: e
177
+ }, i;
178
+ };
179
+ }
180
+ var oe = Y, I = { exports: {} }, D = {};
181
+ /**
182
+ * @license React
183
+ * use-sync-external-store-shim.production.js
184
+ *
185
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
186
+ *
187
+ * This source code is licensed under the MIT license found in the
188
+ * LICENSE file in the root directory of this source tree.
189
+ */
190
+ var E = s;
191
+ function V(e, t) {
192
+ return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
193
+ }
194
+ var M = typeof Object.is == "function" ? Object.is : V, K = E.useState, H = E.useEffect, X = E.useLayoutEffect, Q = E.useDebugValue;
195
+ function $(e, t) {
196
+ var r = t(), a = K({ inst: { value: r, getSnapshot: t } }), i = a[0].inst, n = a[1];
197
+ return X(
198
+ function() {
199
+ i.value = r, i.getSnapshot = t, S(i) && n({ inst: i });
200
+ },
201
+ [e, r, t]
202
+ ), H(
203
+ function() {
204
+ return S(i) && n({ inst: i }), e(function() {
205
+ S(i) && n({ inst: i });
206
+ });
207
+ },
208
+ [e]
209
+ ), Q(r), r;
210
+ }
211
+ function S(e) {
212
+ var t = e.getSnapshot;
213
+ e = e.value;
214
+ try {
215
+ var r = t();
216
+ return !M(e, r);
217
+ } catch {
218
+ return !0;
219
+ }
220
+ }
221
+ function j(e, t) {
222
+ return t();
223
+ }
224
+ var W = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? j : $;
225
+ D.useSyncExternalStore = E.useSyncExternalStore !== void 0 ? E.useSyncExternalStore : W;
226
+ I.exports = D;
227
+ var z = I.exports;
228
+ const p = (e, t) => (r) => {
229
+ e.current !== r && (e.current = r, t());
230
+ };
231
+ function q(e, { keys: t, deps: r = [e, t] } = {}) {
232
+ const a = s.useRef();
233
+ a.current = e.get();
234
+ const i = s.useCallback((c) => (p(a, c)(e.value), (t == null ? void 0 : t.length) > 0 ? y(e, t, p(a, c)) : e.listen(p(a, c))), r), n = () => a.current;
235
+ return s.useSyncExternalStore ? s.useSyncExternalStore(i, n, n) : z.useSyncExternalStore(i, n, n);
236
+ }
237
+ const se = q, Z = () => [
238
+ !1,
239
+ (e) => {
240
+ window.requestAnimationFrame(() => e());
241
+ }
242
+ ], le = s.useTransition || Z;
243
+ var C;
244
+ (function(e) {
245
+ e[e.ONBOARDING = 1] = "ONBOARDING", e[e.QUESTION = 2] = "QUESTION", e[e.QUESTION_RESOLVED = 3] = "QUESTION_RESOLVED";
246
+ })(C || (C = {}));
247
+ export {
248
+ ie as A,
249
+ te as I,
250
+ ne as N,
251
+ re as O,
252
+ ae as S,
253
+ C as a,
254
+ le as b,
255
+ N as c,
256
+ oe as s,
257
+ se as u
258
+ };
@@ -1,5 +1,4 @@
1
- import { u as a } from "./useStreamLayerApp2.js";
2
- import "react";
1
+ import { $ as a } from "./useStreamLayerApp2.js";
3
2
  export {
4
3
  a as useStreamLayerApp
5
4
  };