@streamlayer/react 0.8.2 → 0.8.4

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.
package/lib/esm/index.js CHANGED
@@ -239,14 +239,6 @@ var init_process = __esm({
239
239
  }
240
240
  });
241
241
 
242
- // external-global-plugin:react
243
- var require_react = __commonJS({
244
- "external-global-plugin:react"(exports, module) {
245
- init_process();
246
- module.exports = window.React;
247
- }
248
- });
249
-
250
242
  // node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
251
243
  var require_react_is_development = __commonJS({
252
244
  "node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(exports) {
@@ -3858,7 +3850,7 @@ init_process();
3858
3850
 
3859
3851
  // packages/react-ui/src/lib/gamification/inapp/index.tsx
3860
3852
  init_process();
3861
- var import_react = __toESM(require_react(), 1);
3853
+ import { useCallback } from "react";
3862
3854
 
3863
3855
  // packages/react-ui/src/assets/icons/icon-exit.svg
3864
3856
  var icon_exit_default = 'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <rect width="24" height="24" rx="12" fill="white" fill-opacity="0.1"/>%0A <rect x="8.25" y="7" width="12.3744" height="1.76777" rx="0.883884" transform="rotate(45 8.25 7)" fill="white"/>%0A <rect x="7" y="15.75" width="12.3744" height="1.76777" rx="0.883884" transform="rotate(-45 7 15.75)" fill="white"/>%0A</svg>%0A';
@@ -3942,7 +3934,7 @@ var CloseIcon = styled.img`
3942
3934
  // packages/react-ui/src/lib/gamification/inapp/index.tsx
3943
3935
  import { jsx, jsxs } from "@emotion/react/jsx-runtime";
3944
3936
  var InApp = ({ title: title3 = "", icon, color, openVoiting, closeInApp }) => {
3945
- const _closeInApp = (0, import_react.useCallback)(
3937
+ const _closeInApp = useCallback(
3946
3938
  (e) => {
3947
3939
  e.stopPropagation();
3948
3940
  closeInApp();
@@ -3960,7 +3952,7 @@ var InApp = ({ title: title3 = "", icon, color, openVoiting, closeInApp }) => {
3960
3952
 
3961
3953
  // packages/react-ui/src/lib/gamification/login/index.tsx
3962
3954
  init_process();
3963
- var import_react17 = __toESM(require_react(), 1);
3955
+ import { useState } from "react";
3964
3956
 
3965
3957
  // node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/min/index.js
3966
3958
  init_process();
@@ -3974,22 +3966,22 @@ init_process();
3974
3966
 
3975
3967
  // node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/PhoneInputWithCountry.js
3976
3968
  init_process();
3977
- var import_react10 = __toESM(require_react(), 1);
3978
3969
  var import_prop_types9 = __toESM(require_prop_types(), 1);
3979
3970
  var import_classnames4 = __toESM(require_classnames(), 1);
3971
+ import React8 from "react";
3980
3972
 
3981
3973
  // node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InputSmart.js
3982
3974
  init_process();
3983
- var import_react3 = __toESM(require_react(), 1);
3984
3975
  var import_prop_types2 = __toESM(require_prop_types(), 1);
3976
+ import React2, { useCallback as useCallback3 } from "react";
3985
3977
 
3986
3978
  // node_modules/.pnpm/input-format@0.3.8/node_modules/input-format/react/index.js
3987
3979
  init_process();
3988
3980
 
3989
3981
  // node_modules/.pnpm/input-format@0.3.8/node_modules/input-format/modules/react/Input.js
3990
3982
  init_process();
3991
- var import_react2 = __toESM(require_react(), 1);
3992
3983
  var import_prop_types = __toESM(require_prop_types(), 1);
3984
+ import React, { useCallback as useCallback2, useRef } from "react";
3993
3985
 
3994
3986
  // node_modules/.pnpm/input-format@0.3.8/node_modules/input-format/modules/inputControl.js
3995
3987
  init_process();
@@ -4381,8 +4373,8 @@ function _objectWithoutPropertiesLoose(source, excluded) {
4381
4373
  }
4382
4374
  function Input(_ref, ref) {
4383
4375
  var value = _ref.value, parse3 = _ref.parse, format4 = _ref.format, InputComponent = _ref.inputComponent, onChange2 = _ref.onChange, onKeyDown2 = _ref.onKeyDown, rest = _objectWithoutProperties(_ref, _excluded);
4384
- var internalRef = (0, import_react2.useRef)();
4385
- var setRef = (0, import_react2.useCallback)(function(instance) {
4376
+ var internalRef = useRef();
4377
+ var setRef = useCallback2(function(instance) {
4386
4378
  internalRef.current = instance;
4387
4379
  if (ref) {
4388
4380
  if (typeof ref === "function") {
@@ -4392,23 +4384,23 @@ function Input(_ref, ref) {
4392
4384
  }
4393
4385
  }
4394
4386
  }, [ref]);
4395
- var _onChange = (0, import_react2.useCallback)(function(event) {
4387
+ var _onChange = useCallback2(function(event) {
4396
4388
  return onChange(event, internalRef.current, parse3, format4, onChange2);
4397
4389
  }, [internalRef, parse3, format4, onChange2]);
4398
- var _onKeyDown = (0, import_react2.useCallback)(function(event) {
4390
+ var _onKeyDown = useCallback2(function(event) {
4399
4391
  if (onKeyDown2) {
4400
4392
  onKeyDown2(event);
4401
4393
  }
4402
4394
  return onKeyDown(event, internalRef.current, parse3, format4, onChange2);
4403
4395
  }, [internalRef, parse3, format4, onChange2, onKeyDown2]);
4404
- return /* @__PURE__ */ import_react2.default.createElement(InputComponent, _extends({}, rest, {
4396
+ return /* @__PURE__ */ React.createElement(InputComponent, _extends({}, rest, {
4405
4397
  ref: setRef,
4406
4398
  value: format4(isEmptyValue(value) ? "" : value).text,
4407
4399
  onKeyDown: _onKeyDown,
4408
4400
  onChange: _onChange
4409
4401
  }));
4410
4402
  }
4411
- Input = /* @__PURE__ */ import_react2.default.forwardRef(Input);
4403
+ Input = /* @__PURE__ */ React.forwardRef(Input);
4412
4404
  Input.propTypes = {
4413
4405
  // Parses a single characher of `<input/>` text.
4414
4406
  parse: import_prop_types.default.func.isRequired,
@@ -8911,7 +8903,7 @@ function _objectWithoutPropertiesLoose2(source, excluded) {
8911
8903
  function createInput(defaultMetadata) {
8912
8904
  function InputSmart(_ref, ref) {
8913
8905
  var country = _ref.country, international = _ref.international, withCountryCallingCode = _ref.withCountryCallingCode, _ref$metadata = _ref.metadata, metadata2 = _ref$metadata === void 0 ? defaultMetadata : _ref$metadata, rest = _objectWithoutProperties2(_ref, _excluded2);
8914
- var format4 = (0, import_react3.useCallback)(function(value) {
8906
+ var format4 = useCallback3(function(value) {
8915
8907
  var formatter = new AsYouType(country, metadata2);
8916
8908
  var prefix = getInputValuePrefix({
8917
8909
  country,
@@ -8932,13 +8924,13 @@ function createInput(defaultMetadata) {
8932
8924
  template
8933
8925
  };
8934
8926
  }, [country, metadata2]);
8935
- return /* @__PURE__ */ import_react3.default.createElement(Input_default, _extends2({}, rest, {
8927
+ return /* @__PURE__ */ React2.createElement(Input_default, _extends2({}, rest, {
8936
8928
  ref,
8937
8929
  parse: parsePhoneNumberCharacter,
8938
8930
  format: format4
8939
8931
  }));
8940
8932
  }
8941
- InputSmart = /* @__PURE__ */ import_react3.default.forwardRef(InputSmart);
8933
+ InputSmart = /* @__PURE__ */ React2.forwardRef(InputSmart);
8942
8934
  InputSmart.propTypes = {
8943
8935
  /**
8944
8936
  * The parsed phone number.
@@ -8993,8 +8985,8 @@ var InputSmart_default = createInput();
8993
8985
 
8994
8986
  // node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InputBasic.js
8995
8987
  init_process();
8996
- var import_react5 = __toESM(require_react(), 1);
8997
8988
  var import_prop_types3 = __toESM(require_prop_types(), 1);
8989
+ import React3, { useCallback as useCallback4 } from "react";
8998
8990
  var _excluded3 = ["value", "onChange", "country", "international", "withCountryCallingCode", "metadata", "inputComponent"];
8999
8991
  function _extends3() {
9000
8992
  _extends3 = Object.assign ? Object.assign.bind() : function(target) {
@@ -9051,7 +9043,7 @@ function createInput2(defaultMetadata) {
9051
9043
  withCountryCallingCode,
9052
9044
  metadata: metadata2
9053
9045
  });
9054
- var _onChange = (0, import_react5.useCallback)(function(event) {
9046
+ var _onChange = useCallback4(function(event) {
9055
9047
  var newValue = parseIncompletePhoneNumber(event.target.value);
9056
9048
  if (newValue === value) {
9057
9049
  var newValueFormatted = format2(prefix, newValue, country, metadata2);
@@ -9061,13 +9053,13 @@ function createInput2(defaultMetadata) {
9061
9053
  }
9062
9054
  onChange2(newValue);
9063
9055
  }, [prefix, value, onChange2, country, metadata2]);
9064
- return /* @__PURE__ */ import_react5.default.createElement(Input2, _extends3({}, rest, {
9056
+ return /* @__PURE__ */ React3.createElement(Input2, _extends3({}, rest, {
9065
9057
  ref,
9066
9058
  value: format2(prefix, value, country, metadata2),
9067
9059
  onChange: _onChange
9068
9060
  }));
9069
9061
  }
9070
- InputBasic = /* @__PURE__ */ import_react5.default.forwardRef(InputBasic);
9062
+ InputBasic = /* @__PURE__ */ React3.forwardRef(InputBasic);
9071
9063
  InputBasic.propTypes = {
9072
9064
  /**
9073
9065
  * The parsed phone number.
@@ -9129,9 +9121,9 @@ function format2(prefix, value, country, metadata2) {
9129
9121
 
9130
9122
  // node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/CountrySelect.js
9131
9123
  init_process();
9132
- var import_react6 = __toESM(require_react(), 1);
9133
9124
  var import_prop_types4 = __toESM(require_prop_types(), 1);
9134
9125
  var import_classnames = __toESM(require_classnames(), 1);
9126
+ import React4, { useCallback as useCallback5, useMemo } from "react";
9135
9127
 
9136
9128
  // node_modules/.pnpm/country-flag-icons@1.5.7/node_modules/country-flag-icons/unicode/index.js
9137
9129
  init_process();
@@ -9233,19 +9225,19 @@ function _objectWithoutPropertiesLoose4(source, excluded) {
9233
9225
  }
9234
9226
  function CountrySelect(_ref) {
9235
9227
  var value = _ref.value, onChange2 = _ref.onChange, options = _ref.options, rest = _objectWithoutProperties4(_ref, _excluded4);
9236
- var onChange_ = (0, import_react6.useCallback)(function(event) {
9228
+ var onChange_ = useCallback5(function(event) {
9237
9229
  var value2 = event.target.value;
9238
9230
  onChange2(value2 === "ZZ" ? void 0 : value2);
9239
9231
  }, [onChange2]);
9240
- var selectedOption = (0, import_react6.useMemo)(function() {
9232
+ var selectedOption = useMemo(function() {
9241
9233
  return getSelectedOption(options, value);
9242
9234
  }, [options, value]);
9243
- return /* @__PURE__ */ import_react6.default.createElement("select", _extends4({}, rest, {
9235
+ return /* @__PURE__ */ React4.createElement("select", _extends4({}, rest, {
9244
9236
  value: value || "ZZ",
9245
9237
  onChange: onChange_
9246
9238
  }), options.map(function(_ref2) {
9247
9239
  var value2 = _ref2.value, label = _ref2.label, divider = _ref2.divider;
9248
- return /* @__PURE__ */ import_react6.default.createElement("option", {
9240
+ return /* @__PURE__ */ React4.createElement("option", {
9249
9241
  key: divider ? "|" : value2 || "ZZ",
9250
9242
  value: divider ? "|" : value2 || "ZZ",
9251
9243
  disabled: divider ? true : false,
@@ -9278,23 +9270,23 @@ var DIVIDER_STYLE = {
9278
9270
  };
9279
9271
  function CountrySelectWithIcon(_ref3) {
9280
9272
  var value = _ref3.value, options = _ref3.options, className = _ref3.className, Icon3 = _ref3.iconComponent, getIconAspectRatio = _ref3.getIconAspectRatio, _ref3$arrowComponent = _ref3.arrowComponent, Arrow = _ref3$arrowComponent === void 0 ? DefaultArrowComponent : _ref3$arrowComponent, unicodeFlags = _ref3.unicodeFlags, rest = _objectWithoutProperties4(_ref3, _excluded22);
9281
- var selectedOption = (0, import_react6.useMemo)(function() {
9273
+ var selectedOption = useMemo(function() {
9282
9274
  return getSelectedOption(options, value);
9283
9275
  }, [options, value]);
9284
- return /* @__PURE__ */ import_react6.default.createElement("div", {
9276
+ return /* @__PURE__ */ React4.createElement("div", {
9285
9277
  className: "PhoneInputCountry"
9286
- }, /* @__PURE__ */ import_react6.default.createElement(CountrySelect, _extends4({}, rest, {
9278
+ }, /* @__PURE__ */ React4.createElement(CountrySelect, _extends4({}, rest, {
9287
9279
  value,
9288
9280
  options,
9289
9281
  className: (0, import_classnames.default)("PhoneInputCountrySelect", className)
9290
- })), unicodeFlags && value && /* @__PURE__ */ import_react6.default.createElement("div", {
9282
+ })), unicodeFlags && value && /* @__PURE__ */ React4.createElement("div", {
9291
9283
  className: "PhoneInputCountryIconUnicode"
9292
- }, getCountryFlag(value)), !(unicodeFlags && value) && /* @__PURE__ */ import_react6.default.createElement(Icon3, {
9284
+ }, getCountryFlag(value)), !(unicodeFlags && value) && /* @__PURE__ */ React4.createElement(Icon3, {
9293
9285
  "aria-hidden": true,
9294
9286
  country: value,
9295
9287
  label: selectedOption && selectedOption.label,
9296
9288
  aspectRatio: unicodeFlags ? 1 : void 0
9297
- }), /* @__PURE__ */ import_react6.default.createElement(Arrow, null));
9289
+ }), /* @__PURE__ */ React4.createElement(Arrow, null));
9298
9290
  }
9299
9291
  CountrySelectWithIcon.propTypes = {
9300
9292
  // Country flag component.
@@ -9305,7 +9297,7 @@ CountrySelectWithIcon.propTypes = {
9305
9297
  unicodeFlags: import_prop_types4.default.bool
9306
9298
  };
9307
9299
  function DefaultArrowComponent() {
9308
- return /* @__PURE__ */ import_react6.default.createElement("div", {
9300
+ return /* @__PURE__ */ React4.createElement("div", {
9309
9301
  className: "PhoneInputCountrySelectArrow"
9310
9302
  });
9311
9303
  }
@@ -9320,9 +9312,9 @@ function getSelectedOption(options, value) {
9320
9312
 
9321
9313
  // node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/Flag.js
9322
9314
  init_process();
9323
- var import_react7 = __toESM(require_react(), 1);
9324
9315
  var import_prop_types5 = __toESM(require_prop_types(), 1);
9325
9316
  var import_classnames2 = __toESM(require_classnames(), 1);
9317
+ import React5 from "react";
9326
9318
  var _excluded5 = ["country", "countryName", "flags", "flagUrl"];
9327
9319
  function _extends5() {
9328
9320
  _extends5 = Object.assign ? Object.assign.bind() : function(target) {
@@ -9377,7 +9369,7 @@ function FlagComponent(_ref) {
9377
9369
  title: countryName
9378
9370
  });
9379
9371
  }
9380
- return /* @__PURE__ */ import_react7.default.createElement("img", _extends5({}, rest, {
9372
+ return /* @__PURE__ */ React5.createElement("img", _extends5({}, rest, {
9381
9373
  alt: countryName,
9382
9374
  role: countryName ? void 0 : "presentation",
9383
9375
  src: flagUrl.replace("{XX}", country).replace("{xx}", country.toLowerCase())
@@ -9404,8 +9396,8 @@ FlagComponent.propTypes = {
9404
9396
 
9405
9397
  // node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InternationalIcon.js
9406
9398
  init_process();
9407
- var import_react8 = __toESM(require_react(), 1);
9408
9399
  var import_prop_types6 = __toESM(require_prop_types(), 1);
9400
+ import React6 from "react";
9409
9401
  var _excluded6 = ["aspectRatio"];
9410
9402
  var _excluded23 = ["title"];
9411
9403
  var _excluded32 = ["title"];
@@ -9458,9 +9450,9 @@ function _objectWithoutPropertiesLoose6(source, excluded) {
9458
9450
  function InternationalIcon(_ref) {
9459
9451
  var aspectRatio = _ref.aspectRatio, rest = _objectWithoutProperties6(_ref, _excluded6);
9460
9452
  if (aspectRatio === 1) {
9461
- return /* @__PURE__ */ import_react8.default.createElement(InternationalIcon1x1, rest);
9453
+ return /* @__PURE__ */ React6.createElement(InternationalIcon1x1, rest);
9462
9454
  } else {
9463
- return /* @__PURE__ */ import_react8.default.createElement(InternationalIcon3x2, rest);
9455
+ return /* @__PURE__ */ React6.createElement(InternationalIcon3x2, rest);
9464
9456
  }
9465
9457
  }
9466
9458
  InternationalIcon.propTypes = {
@@ -9469,37 +9461,37 @@ InternationalIcon.propTypes = {
9469
9461
  };
9470
9462
  function InternationalIcon3x2(_ref2) {
9471
9463
  var title3 = _ref2.title, rest = _objectWithoutProperties6(_ref2, _excluded23);
9472
- return /* @__PURE__ */ import_react8.default.createElement("svg", _extends6({}, rest, {
9464
+ return /* @__PURE__ */ React6.createElement("svg", _extends6({}, rest, {
9473
9465
  xmlns: "http://www.w3.org/2000/svg",
9474
9466
  viewBox: "0 0 75 50"
9475
- }), /* @__PURE__ */ import_react8.default.createElement("title", null, title3), /* @__PURE__ */ import_react8.default.createElement("g", {
9467
+ }), /* @__PURE__ */ React6.createElement("title", null, title3), /* @__PURE__ */ React6.createElement("g", {
9476
9468
  className: "PhoneInputInternationalIconGlobe",
9477
9469
  stroke: "currentColor",
9478
9470
  fill: "none",
9479
9471
  strokeWidth: "2",
9480
9472
  strokeMiterlimit: "10"
9481
- }, /* @__PURE__ */ import_react8.default.createElement("path", {
9473
+ }, /* @__PURE__ */ React6.createElement("path", {
9482
9474
  strokeLinecap: "round",
9483
9475
  d: "M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"
9484
- }), /* @__PURE__ */ import_react8.default.createElement("path", {
9476
+ }), /* @__PURE__ */ React6.createElement("path", {
9485
9477
  d: "M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"
9486
- }), /* @__PURE__ */ import_react8.default.createElement("line", {
9478
+ }), /* @__PURE__ */ React6.createElement("line", {
9487
9479
  x1: "26",
9488
9480
  y1: "25",
9489
9481
  x2: "74",
9490
9482
  y2: "25"
9491
- }), /* @__PURE__ */ import_react8.default.createElement("line", {
9483
+ }), /* @__PURE__ */ React6.createElement("line", {
9492
9484
  x1: "50",
9493
9485
  y1: "1",
9494
9486
  x2: "50",
9495
9487
  y2: "49"
9496
- }), /* @__PURE__ */ import_react8.default.createElement("path", {
9488
+ }), /* @__PURE__ */ React6.createElement("path", {
9497
9489
  strokeLinecap: "round",
9498
9490
  d: "M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"
9499
- }), /* @__PURE__ */ import_react8.default.createElement("path", {
9491
+ }), /* @__PURE__ */ React6.createElement("path", {
9500
9492
  strokeLinecap: "round",
9501
9493
  d: "M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"
9502
- })), /* @__PURE__ */ import_react8.default.createElement("path", {
9494
+ })), /* @__PURE__ */ React6.createElement("path", {
9503
9495
  className: "PhoneInputInternationalIconPhone",
9504
9496
  stroke: "none",
9505
9497
  fill: "currentColor",
@@ -9511,34 +9503,34 @@ InternationalIcon3x2.propTypes = {
9511
9503
  };
9512
9504
  function InternationalIcon1x1(_ref3) {
9513
9505
  var title3 = _ref3.title, rest = _objectWithoutProperties6(_ref3, _excluded32);
9514
- return /* @__PURE__ */ import_react8.default.createElement("svg", _extends6({}, rest, {
9506
+ return /* @__PURE__ */ React6.createElement("svg", _extends6({}, rest, {
9515
9507
  xmlns: "http://www.w3.org/2000/svg",
9516
9508
  viewBox: "0 0 50 50"
9517
- }), /* @__PURE__ */ import_react8.default.createElement("title", null, title3), /* @__PURE__ */ import_react8.default.createElement("g", {
9509
+ }), /* @__PURE__ */ React6.createElement("title", null, title3), /* @__PURE__ */ React6.createElement("g", {
9518
9510
  className: "PhoneInputInternationalIconGlobe",
9519
9511
  stroke: "currentColor",
9520
9512
  fill: "none",
9521
9513
  strokeWidth: "2",
9522
9514
  strokeLinecap: "round"
9523
- }, /* @__PURE__ */ import_react8.default.createElement("path", {
9515
+ }, /* @__PURE__ */ React6.createElement("path", {
9524
9516
  d: "M8.45,13A21.44,21.44,0,1,1,37.08,41.56"
9525
- }), /* @__PURE__ */ import_react8.default.createElement("path", {
9517
+ }), /* @__PURE__ */ React6.createElement("path", {
9526
9518
  d: "M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"
9527
- }), /* @__PURE__ */ import_react8.default.createElement("path", {
9519
+ }), /* @__PURE__ */ React6.createElement("path", {
9528
9520
  d: "M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"
9529
- }), /* @__PURE__ */ import_react8.default.createElement("path", {
9521
+ }), /* @__PURE__ */ React6.createElement("path", {
9530
9522
  d: "M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"
9531
- }), /* @__PURE__ */ import_react8.default.createElement("line", {
9523
+ }), /* @__PURE__ */ React6.createElement("line", {
9532
9524
  x1: "27.8",
9533
9525
  y1: "0.85",
9534
9526
  x2: "27.8",
9535
9527
  y2: "34.61"
9536
- }), /* @__PURE__ */ import_react8.default.createElement("line", {
9528
+ }), /* @__PURE__ */ React6.createElement("line", {
9537
9529
  x1: "15.2",
9538
9530
  y1: "22.23",
9539
9531
  x2: "49.15",
9540
9532
  y2: "22.23"
9541
- })), /* @__PURE__ */ import_react8.default.createElement("path", {
9533
+ })), /* @__PURE__ */ React6.createElement("path", {
9542
9534
  className: "PhoneInputInternationalIconPhone",
9543
9535
  stroke: "transparent",
9544
9536
  fill: "currentColor",
@@ -9662,9 +9654,9 @@ function getSupportedCountries(countries, metadata2) {
9662
9654
 
9663
9655
  // node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/CountryIcon.js
9664
9656
  init_process();
9665
- var import_react9 = __toESM(require_react(), 1);
9666
9657
  var import_prop_types7 = __toESM(require_prop_types(), 1);
9667
9658
  var import_classnames3 = __toESM(require_classnames(), 1);
9659
+ import React7 from "react";
9668
9660
  var _excluded7 = ["country", "label", "aspectRatio"];
9669
9661
  function _extends7() {
9670
9662
  _extends7 = Object.assign ? Object.assign.bind() : function(target) {
@@ -9717,18 +9709,18 @@ function createCountryIconComponent(_ref) {
9717
9709
  function CountryIcon(_ref2) {
9718
9710
  var country = _ref2.country, label = _ref2.label, aspectRatio = _ref2.aspectRatio, rest = _objectWithoutProperties7(_ref2, _excluded7);
9719
9711
  var _aspectRatio = InternationalIcon2 === InternationalIcon ? aspectRatio : void 0;
9720
- return /* @__PURE__ */ import_react9.default.createElement("div", _extends7({}, rest, {
9712
+ return /* @__PURE__ */ React7.createElement("div", _extends7({}, rest, {
9721
9713
  className: (0, import_classnames3.default)("PhoneInputCountryIcon", {
9722
9714
  "PhoneInputCountryIcon--square": _aspectRatio === 1,
9723
9715
  "PhoneInputCountryIcon--border": country
9724
9716
  })
9725
- }), country ? /* @__PURE__ */ import_react9.default.createElement(FlagComponent2, {
9717
+ }), country ? /* @__PURE__ */ React7.createElement(FlagComponent2, {
9726
9718
  country,
9727
9719
  countryName: label,
9728
9720
  flags,
9729
9721
  flagUrl,
9730
9722
  className: "PhoneInputCountryIconImg"
9731
- }) : /* @__PURE__ */ import_react9.default.createElement(InternationalIcon2, {
9723
+ }) : /* @__PURE__ */ React7.createElement(InternationalIcon2, {
9732
9724
  title: label,
9733
9725
  aspectRatio: _aspectRatio,
9734
9726
  className: "PhoneInputCountryIconImg"
@@ -10497,7 +10489,7 @@ var PhoneNumberInput_ = /* @__PURE__ */ function(_React$PureComponent) {
10497
10489
  }
10498
10490
  }
10499
10491
  });
10500
- _this.inputRef = /* @__PURE__ */ import_react10.default.createRef();
10492
+ _this.inputRef = /* @__PURE__ */ React8.createRef();
10501
10493
  var _this$props3 = _this.props, _value = _this$props3.value, labels2 = _this$props3.labels, _international = _this$props3.international, _addInternationalOption = _this$props3.addInternationalOption, displayInitialValueAsLocalNumber = _this$props3.displayInitialValueAsLocalNumber, initialValueFormat = _this$props3.initialValueFormat, _metadata = _this$props3.metadata;
10502
10494
  var _this$props4 = _this.props, _defaultCountry = _this$props4.defaultCountry, _countries = _this$props4.countries;
10503
10495
  if (_defaultCountry) {
@@ -10631,14 +10623,14 @@ var PhoneNumberInput_ = /* @__PURE__ */ function(_React$PureComponent) {
10631
10623
  var countrySelectOptions = this.getCountrySelectOptions({
10632
10624
  countries
10633
10625
  });
10634
- return /* @__PURE__ */ import_react10.default.createElement(ContainerComponent, {
10626
+ return /* @__PURE__ */ React8.createElement(ContainerComponent, {
10635
10627
  style,
10636
10628
  className: (0, import_classnames4.default)(className, "PhoneInput", {
10637
10629
  "PhoneInput--focus": isFocused,
10638
10630
  "PhoneInput--disabled": disabled,
10639
10631
  "PhoneInput--readOnly": readOnly
10640
10632
  })
10641
- }, /* @__PURE__ */ import_react10.default.createElement(CountrySelectComponent, _extends8({
10633
+ }, /* @__PURE__ */ React8.createElement(CountrySelectComponent, _extends8({
10642
10634
  name: name ? "".concat(name, "Country") : void 0,
10643
10635
  "aria-label": labels2.country
10644
10636
  }, countrySelectProps, {
@@ -10650,7 +10642,7 @@ var PhoneNumberInput_ = /* @__PURE__ */ function(_React$PureComponent) {
10650
10642
  disabled: disabled || countrySelectProps && countrySelectProps.disabled,
10651
10643
  readOnly: readOnly || countrySelectProps && countrySelectProps.readOnly,
10652
10644
  iconComponent: this.CountryIcon
10653
- })), /* @__PURE__ */ import_react10.default.createElement(InputComponent, _extends8({
10645
+ })), /* @__PURE__ */ React8.createElement(InputComponent, _extends8({
10654
10646
  ref: this.setInputRef,
10655
10647
  type: "tel",
10656
10648
  autoComplete
@@ -10685,9 +10677,9 @@ var PhoneNumberInput_ = /* @__PURE__ */ function(_React$PureComponent) {
10685
10677
  )
10686
10678
  }]);
10687
10679
  return PhoneNumberInput_2;
10688
- }(import_react10.default.PureComponent);
10689
- var PhoneNumberInput = /* @__PURE__ */ import_react10.default.forwardRef(function(props, ref) {
10690
- return /* @__PURE__ */ import_react10.default.createElement(PhoneNumberInput_, _extends8({}, withDefaultProps(props), {
10680
+ }(React8.PureComponent);
10681
+ var PhoneNumberInput = /* @__PURE__ */ React8.forwardRef(function(props, ref) {
10682
+ return /* @__PURE__ */ React8.createElement(PhoneNumberInput_, _extends8({}, withDefaultProps(props), {
10691
10683
  inputRef: ref
10692
10684
  }));
10693
10685
  });
@@ -11157,7 +11149,7 @@ function formatPhoneNumberIntl(value, metadata2) {
11157
11149
 
11158
11150
  // node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/PhoneInputWithCountryDefault.js
11159
11151
  init_process();
11160
- var import_react11 = __toESM(require_react(), 1);
11152
+ import React9 from "react";
11161
11153
 
11162
11154
  // node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/locale/en.json.js
11163
11155
  init_process();
@@ -11471,9 +11463,9 @@ function _objectWithoutPropertiesLoose9(source, excluded) {
11471
11463
  return target;
11472
11464
  }
11473
11465
  function createPhoneInput(defaultMetadata) {
11474
- var PhoneInputDefault = /* @__PURE__ */ import_react11.default.forwardRef(function(_ref, ref) {
11466
+ var PhoneInputDefault = /* @__PURE__ */ React9.forwardRef(function(_ref, ref) {
11475
11467
  var _ref$metadata = _ref.metadata, metadata2 = _ref$metadata === void 0 ? defaultMetadata : _ref$metadata, _ref$labels = _ref.labels, labels2 = _ref$labels === void 0 ? en_json_default : _ref$labels, rest = _objectWithoutProperties9(_ref, _excluded9);
11476
- return /* @__PURE__ */ import_react11.default.createElement(PhoneInputWithCountry_default, _extends9({}, rest, {
11468
+ return /* @__PURE__ */ React9.createElement(PhoneInputWithCountry_default, _extends9({}, rest, {
11477
11469
  ref,
11478
11470
  metadata: metadata2,
11479
11471
  labels: labels2
@@ -15962,17 +15954,17 @@ var login = async (host, phone, code) => {
15962
15954
 
15963
15955
  // packages/react-ui/src/lib/gamification/vote/components/voting-header/components/timer/index.tsx
15964
15956
  init_process();
15965
- var import_react16 = __toESM(require_react(), 1);
15957
+ import { useEffect } from "react";
15966
15958
 
15967
15959
  // node_modules/.pnpm/react-countdown-circle-timer@3.2.1_react@18.2.0/node_modules/react-countdown-circle-timer/lib/index.module.js
15968
15960
  init_process();
15969
- var import_react12 = __toESM(require_react());
15970
- var import_react13 = __toESM(require_react());
15971
- var import_react14 = __toESM(require_react());
15972
- var import_react15 = __toESM(require_react());
15973
- var G = typeof window == "undefined" ? import_react15.useEffect : import_react15.useLayoutEffect;
15961
+ import x from "react";
15962
+ import { useRef as U } from "react";
15963
+ import { useState as E, useRef as b, useCallback as q } from "react";
15964
+ import { useEffect as M, useLayoutEffect as L } from "react";
15965
+ var G = typeof window == "undefined" ? M : L;
15974
15966
  var I = ({ isPlaying: o, duration: e, startAt: n = 0, updateInterval: t = 0, onComplete: s, onUpdate: r }) => {
15975
- let [i, c] = (0, import_react14.useState)(n), m = (0, import_react14.useRef)(0), p = (0, import_react14.useRef)(n), f = (0, import_react14.useRef)(n * -1e3), u = (0, import_react14.useRef)(null), a = (0, import_react14.useRef)(null), h = (0, import_react14.useRef)(null), w = (g) => {
15967
+ let [i, c] = E(n), m = b(0), p = b(n), f = b(n * -1e3), u = b(null), a = b(null), h = b(null), w = (g) => {
15976
15968
  let l = g / 1e3;
15977
15969
  if (a.current === null) {
15978
15970
  a.current = l, u.current = requestAnimationFrame(w);
@@ -15984,7 +15976,7 @@ var I = ({ isPlaying: o, duration: e, startAt: n = 0, updateInterval: t = 0, onC
15984
15976
  c(v ? e : k), v || (u.current = requestAnimationFrame(w));
15985
15977
  }, $ = () => {
15986
15978
  u.current && cancelAnimationFrame(u.current), h.current && clearTimeout(h.current), a.current = null;
15987
- }, y = (0, import_react14.useCallback)((g) => {
15979
+ }, y = q((g) => {
15988
15980
  $(), m.current = 0;
15989
15981
  let l = typeof g == "number" ? g : n;
15990
15982
  p.current = l, c(l), o && (u.current = requestAnimationFrame(w));
@@ -16028,7 +16020,7 @@ var j = (o, e) => {
16028
16020
  return `rgb(${m.map((a, h) => F(i, a, p[h] - a, c, f) | 0).join(",")})`;
16029
16021
  };
16030
16022
  var S = (o) => {
16031
- let { duration: e, initialRemainingTime: n, updateInterval: t, size: s = 180, strokeWidth: r = 12, trailStrokeWidth: i, isPlaying: c = false, isGrowing: m = false, rotation: p = "clockwise", onComplete: f, onUpdate: u } = o, a = (0, import_react13.useRef)(), h = Math.max(r, i != null ? i : 0), { path: w, pathLength: $ } = A(s, h, p), { elapsedTime: y } = I({ isPlaying: c, duration: e, startAt: T(e, n), updateInterval: t, onUpdate: typeof u == "function" ? (l) => {
16023
+ let { duration: e, initialRemainingTime: n, updateInterval: t, size: s = 180, strokeWidth: r = 12, trailStrokeWidth: i, isPlaying: c = false, isGrowing: m = false, rotation: p = "clockwise", onComplete: f, onUpdate: u } = o, a = U(), h = Math.max(r, i != null ? i : 0), { path: w, pathLength: $ } = A(s, h, p), { elapsedTime: y } = I({ isPlaying: c, duration: e, startAt: T(e, n), updateInterval: t, onUpdate: typeof u == "function" ? (l) => {
16032
16024
  let d = Math.ceil(e - l);
16033
16025
  d !== a.current && (a.current = d, u(d));
16034
16026
  } : void 0, onComplete: typeof f == "function" ? (l) => {
@@ -16041,7 +16033,7 @@ var S = (o) => {
16041
16033
  };
16042
16034
  var D = (o) => {
16043
16035
  let { children: e, strokeLinecap: n, trailColor: t, trailStrokeWidth: s } = o, { path: r, pathLength: i, stroke: c, strokeDashoffset: m, remainingTime: p, elapsedTime: f, size: u, strokeWidth: a } = S(o);
16044
- return import_react12.default.createElement("div", { style: B(u) }, import_react12.default.createElement("svg", { viewBox: `0 0 ${u} ${u}`, width: u, height: u, xmlns: "http://www.w3.org/2000/svg" }, import_react12.default.createElement("path", { d: r, fill: "none", stroke: t != null ? t : "#d9d9d9", strokeWidth: s != null ? s : a }), import_react12.default.createElement("path", { d: r, fill: "none", stroke: c, strokeLinecap: n != null ? n : "round", strokeWidth: a, strokeDasharray: i, strokeDashoffset: m })), typeof e == "function" && import_react12.default.createElement("div", { style: P }, e({ remainingTime: p, elapsedTime: f, color: c })));
16036
+ return x.createElement("div", { style: B(u) }, x.createElement("svg", { viewBox: `0 0 ${u} ${u}`, width: u, height: u, xmlns: "http://www.w3.org/2000/svg" }, x.createElement("path", { d: r, fill: "none", stroke: t != null ? t : "#d9d9d9", strokeWidth: s != null ? s : a }), x.createElement("path", { d: r, fill: "none", stroke: c, strokeLinecap: n != null ? n : "round", strokeWidth: a, strokeDasharray: i, strokeDashoffset: m })), typeof e == "function" && x.createElement("div", { style: P }, e({ remainingTime: p, elapsedTime: f, color: c })));
16045
16037
  };
16046
16038
  D.displayName = "CountdownCircleTimer";
16047
16039
 
@@ -16100,7 +16092,7 @@ var STROKE_WIDTH = 4;
16100
16092
  var TRAIL_STROKE_WIDTH = 0;
16101
16093
  var Timer = ({ isPlaying = true, duration = DEFAULT_DURATION, setTimeToExpire }) => {
16102
16094
  const renderTime = ({ remainingTime }) => /* @__PURE__ */ jsx2(RemainingTime, { remainingTime, children: remainingTime });
16103
- (0, import_react16.useEffect)(() => {
16095
+ useEffect(() => {
16104
16096
  setTimeToExpire(false);
16105
16097
  }, [setTimeToExpire]);
16106
16098
  return /* @__PURE__ */ jsx2(
@@ -16191,9 +16183,9 @@ var Digits = styled3.div`
16191
16183
  // packages/react-ui/src/lib/gamification/login/index.tsx
16192
16184
  import { jsx as jsx3, jsxs as jsxs2 } from "@emotion/react/jsx-runtime";
16193
16185
  var Login = ({ login: login2, anonymousLogin, host }) => {
16194
- const [phoneInput, setPhoneInput] = (0, import_react17.useState)("");
16195
- const [phone, setPhone] = (0, import_react17.useState)("");
16196
- const [code, setCode] = (0, import_react17.useState)("");
16186
+ const [phoneInput, setPhoneInput] = useState("");
16187
+ const [phone, setPhone] = useState("");
16188
+ const [code, setCode] = useState("");
16197
16189
  const digits = useDigitInput({
16198
16190
  acceptedCharacters: /^[0-9]$/,
16199
16191
  length: 4,
@@ -20252,7 +20244,7 @@ var UserStatistics = ({
20252
20244
 
20253
20245
  // packages/react-ui/src/lib/gamification/vote/index.tsx
20254
20246
  init_process();
20255
- var import_react18 = __toESM(require_react(), 1);
20247
+ import { useState as useState2, useEffect as useEffect2, useCallback as useCallback6 } from "react";
20256
20248
 
20257
20249
  // packages/react-ui/src/assets/icons/icon-check.svg
20258
20250
  var icon_check_default = 'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Checkmark">%0A<path id="Selected" fill-rule="evenodd" clip-rule="evenodd" d="M24 12.002C24 18.6294 18.6274 24.002 12 24.002C5.37258 24.002 0 18.6294 0 12.002C0 5.37454 5.37258 0.00195312 12 0.00195312C18.6274 0.00195312 24 5.37454 24 12.002ZM17.4086 8.15357C16.94 7.68494 16.1802 7.68494 15.7116 8.15357L10.4072 14.9579L7.62573 13.1036C7.07429 12.736 6.32925 12.885 5.96163 13.4365C5.59401 13.9879 5.74301 14.7329 6.29445 15.1006L9.89445 17.5006C10.3704 17.8179 11.0041 17.7551 11.4086 17.3506L17.4086 9.85063C17.8772 9.382 17.8772 8.6222 17.4086 8.15357Z" fill="%2300BD60"/>%0A</g>%0A</svg>%0A';
@@ -20485,14 +20477,14 @@ var Vote = ({
20485
20477
  questionAnsweredCorrectly,
20486
20478
  questionType
20487
20479
  }) => {
20488
- const [isLoadingSubmitAnswer, setIsLoadingSubmitAnswer] = (0, import_react18.useState)(false);
20489
- const toggleIsLoadingSubmitAnswer = (0, import_react18.useCallback)(
20480
+ const [isLoadingSubmitAnswer, setIsLoadingSubmitAnswer] = useState2(false);
20481
+ const toggleIsLoadingSubmitAnswer = useCallback6(
20490
20482
  (flag) => {
20491
20483
  setIsLoadingSubmitAnswer(flag);
20492
20484
  },
20493
20485
  [setIsLoadingSubmitAnswer]
20494
20486
  );
20495
- (0, import_react18.useEffect)(() => {
20487
+ useEffect2(() => {
20496
20488
  toggleIsLoadingSubmitAnswer(false);
20497
20489
  }, [options, toggleIsLoadingSubmitAnswer]);
20498
20490
  return /* @__PURE__ */ jsxs10(Container8, { children: [
@@ -20889,14 +20881,14 @@ var map = (value = {}) => {
20889
20881
  };
20890
20882
 
20891
20883
  // node_modules/.pnpm/@nanostores+react@0.7.1_nanostores@0.9.4_react@18.2.0/node_modules/@nanostores/react/index.js
20892
- var import_react19 = __toESM(require_react(), 1);
20884
+ import { useCallback as useCallback7, useSyncExternalStore } from "react";
20893
20885
  function useStore(store2, opts = {}) {
20894
- let subscribe2 = (0, import_react19.useCallback)(
20886
+ let subscribe2 = useCallback7(
20895
20887
  (onChange2) => opts.keys ? listenKeys(store2, opts.keys, onChange2) : store2.listen(onChange2),
20896
20888
  [opts.keys, store2]
20897
20889
  );
20898
20890
  let get = store2.get.bind(store2);
20899
- return (0, import_react19.useSyncExternalStore)(subscribe2, get, get);
20891
+ return useSyncExternalStore(subscribe2, get, get);
20900
20892
  }
20901
20893
 
20902
20894
  // packages/react-ui/src/lib/demo/Gamification.tsx
@@ -20944,7 +20936,7 @@ var QuestionsList = ({ store: store2, openQuestion }) => {
20944
20936
  // packages/react-ui/src/lib/demo/components/Question.tsx
20945
20937
  init_process();
20946
20938
  import styled14 from "@emotion/styled";
20947
- var import_react23 = __toESM(require_react(), 1);
20939
+ import { useState as useState3, useCallback as useCallback8, useMemo as useMemo2 } from "react";
20948
20940
 
20949
20941
  // packages/react-ui/src/lib/gamification/vote/components/voting-header/index.tsx
20950
20942
  init_process();
@@ -21127,18 +21119,18 @@ var QuestionContainer = styled14.div`
21127
21119
  `;
21128
21120
  var Question3 = ({ store: store2, closeQuestion, vote }) => {
21129
21121
  const { data: openedQuestion } = useStore(store2);
21130
- const [answerTimeExpired, setAnswerTimeExpired] = (0, import_react23.useState)(false);
21131
- const setTimeToExpire = (0, import_react23.useCallback)(
21122
+ const [answerTimeExpired, setAnswerTimeExpired] = useState3(false);
21123
+ const setTimeToExpire = useCallback8(
21132
21124
  (flag) => {
21133
21125
  setAnswerTimeExpired(flag);
21134
21126
  },
21135
21127
  [setAnswerTimeExpired]
21136
21128
  );
21137
- const questionAnswered = (0, import_react23.useMemo)(
21129
+ const questionAnswered = useMemo2(
21138
21130
  () => openedQuestion?.answers.find((answer) => answer.youVoted === true),
21139
21131
  [openedQuestion]
21140
21132
  );
21141
- const hasCorrectAnswer = (0, import_react23.useMemo)(
21133
+ const hasCorrectAnswer = useMemo2(
21142
21134
  () => !!openedQuestion?.answers.find((answer) => answer.correct === true),
21143
21135
  [openedQuestion]
21144
21136
  );
@@ -21187,13 +21179,13 @@ var Question3 = ({ store: store2, closeQuestion, vote }) => {
21187
21179
 
21188
21180
  // packages/react-ui/src/lib/demo/components/Notifications.tsx
21189
21181
  init_process();
21190
- var import_react25 = __toESM(require_react(), 1);
21182
+ import { useEffect as useEffect3, useRef as useRef2, useState as useState4 } from "react";
21191
21183
  import { jsx as jsx17 } from "@emotion/react/jsx-runtime";
21192
21184
  var Notifications = ({ notificationsStore, openQuestion }) => {
21193
- const timeout = (0, import_react25.useRef)();
21194
- const [lastNotification, setLastNotification] = (0, import_react25.useState)();
21185
+ const timeout = useRef2();
21186
+ const [lastNotification, setLastNotification] = useState4();
21195
21187
  const notifications2 = useStore(notificationsStore);
21196
- (0, import_react25.useEffect)(() => {
21188
+ useEffect3(() => {
21197
21189
  if (notifications2) {
21198
21190
  setLastNotification(notifications2[notifications2.length - 1]?.data);
21199
21191
  timeout.current = setTimeout(() => {
@@ -21334,7 +21326,7 @@ import { jsx as jsx22 } from "@emotion/react/jsx-runtime";
21334
21326
  var StreamLayerThemeProvider = ({ children }) => /* @__PURE__ */ jsx22(ThemeProvider, { theme, children });
21335
21327
 
21336
21328
  // packages/react/src/app/provider.tsx
21337
- var import_react30 = __toESM(require_react(), 1);
21329
+ import { createContext, useMemo as useMemo3 } from "react";
21338
21330
 
21339
21331
  // packages/react/src/app/useStreamLayerApp.ts
21340
21332
  init_process();
@@ -28322,11 +28314,11 @@ function StreamLayer(sdkKey, production = true) {
28322
28314
  }
28323
28315
 
28324
28316
  // packages/react/src/app/useStreamLayerApp.ts
28325
- var import_react29 = __toESM(require_react(), 1);
28317
+ import { useState as useState5, useEffect as useEffect4 } from "react";
28326
28318
  window.instance = null;
28327
28319
  var useStreamLayerApp = (sdkKey, plugins, production) => {
28328
- const [sdk, setSdk] = (0, import_react29.useState)(null);
28329
- (0, import_react29.useEffect)(() => {
28320
+ const [sdk, setSdk] = useState5(null);
28321
+ useEffect4(() => {
28330
28322
  let ignore = false;
28331
28323
  if (!sdkKey) {
28332
28324
  throw new Error("sdk key should be provided");
@@ -28356,7 +28348,7 @@ var useStreamLayerApp = (sdkKey, plugins, production) => {
28356
28348
 
28357
28349
  // packages/react/src/app/provider.tsx
28358
28350
  import { jsx as jsx23 } from "@emotion/react/jsx-runtime";
28359
- var StreamLayerContext3 = (0, import_react30.createContext)({
28351
+ var StreamLayerContext3 = createContext({
28360
28352
  status: 0 /* UNSET */
28361
28353
  });
28362
28354
  if (true) {
@@ -28369,7 +28361,7 @@ var StreamLayerProvider = ({
28369
28361
  production = true
28370
28362
  }) => {
28371
28363
  const streamLayer = useStreamLayerApp(sdkKey, plugins, production);
28372
- const value = (0, import_react30.useMemo)(() => {
28364
+ const value = useMemo3(() => {
28373
28365
  if (!streamLayer) {
28374
28366
  return { status: 1 /* CONNECTED */ };
28375
28367
  }
@@ -28380,14 +28372,14 @@ var StreamLayerProvider = ({
28380
28372
 
28381
28373
  // packages/react/src/app/app.tsx
28382
28374
  init_process();
28383
- var import_react31 = __toESM(require_react(), 1);
28375
+ import { useContext } from "react";
28384
28376
  import { jsx as jsx24 } from "@emotion/react/jsx-runtime";
28385
28377
  var useStreamLayer = () => {
28386
- const { sdk } = (0, import_react31.useContext)(StreamLayerContext3);
28378
+ const { sdk } = useContext(StreamLayerContext3);
28387
28379
  return sdk;
28388
28380
  };
28389
28381
  var StreamLayerSDKReact = () => {
28390
- const { sdk, status } = (0, import_react31.useContext)(StreamLayerContext3);
28382
+ const { sdk, status } = useContext(StreamLayerContext3);
28391
28383
  if (status === 0 /* UNSET */) {
28392
28384
  throw new Error("Wrap app in `StreamLayerProvider`");
28393
28385
  }