@ututrust/web-components 1.1.18 → 1.1.21

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/dist/index.js CHANGED
@@ -129,11 +129,11 @@
129
129
  return classofRaw(it) == 'String' ? split$1(it, '') : Object$5(it);
130
130
  } : Object$5;
131
131
 
132
- var TypeError$g = global$1.TypeError; // `RequireObjectCoercible` abstract operation
132
+ var TypeError$h = global$1.TypeError; // `RequireObjectCoercible` abstract operation
133
133
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
134
134
 
135
135
  var requireObjectCoercible = function (it) {
136
- if (it == undefined) throw TypeError$g("Can't call method on " + it);
136
+ if (it == undefined) throw TypeError$h("Can't call method on " + it);
137
137
  return it;
138
138
  };
139
139
 
@@ -229,11 +229,11 @@
229
229
  }
230
230
  };
231
231
 
232
- var TypeError$f = global$1.TypeError; // `Assert: IsCallable(argument) is true`
232
+ var TypeError$g = global$1.TypeError; // `Assert: IsCallable(argument) is true`
233
233
 
234
234
  var aCallable = function (argument) {
235
235
  if (isCallable(argument)) return argument;
236
- throw TypeError$f(tryToString(argument) + ' is not a function');
236
+ throw TypeError$g(tryToString(argument) + ' is not a function');
237
237
  };
238
238
 
239
239
  // `GetMethod` abstract operation
@@ -245,7 +245,7 @@
245
245
  return func == null ? undefined : aCallable(func);
246
246
  };
247
247
 
248
- var TypeError$e = global$1.TypeError; // `OrdinaryToPrimitive` abstract operation
248
+ var TypeError$f = global$1.TypeError; // `OrdinaryToPrimitive` abstract operation
249
249
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
250
250
 
251
251
  var ordinaryToPrimitive = function (input, pref) {
@@ -253,7 +253,7 @@
253
253
  if (pref === 'string' && isCallable(fn = input.toString) && !isObject$2(val = functionCall(fn, input))) return val;
254
254
  if (isCallable(fn = input.valueOf) && !isObject$2(val = functionCall(fn, input))) return val;
255
255
  if (pref !== 'string' && isCallable(fn = input.toString) && !isObject$2(val = functionCall(fn, input))) return val;
256
- throw TypeError$e("Can't convert object to primitive value");
256
+ throw TypeError$f("Can't convert object to primitive value");
257
257
  };
258
258
 
259
259
  // eslint-disable-next-line es/no-object-defineproperty -- safe
@@ -334,7 +334,7 @@
334
334
  return WellKnownSymbolsStore[name];
335
335
  };
336
336
 
337
- var TypeError$d = global$1.TypeError;
337
+ var TypeError$e = global$1.TypeError;
338
338
  var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); // `ToPrimitive` abstract operation
339
339
  // https://tc39.es/ecma262/#sec-toprimitive
340
340
 
@@ -347,7 +347,7 @@
347
347
  if (pref === undefined) pref = 'default';
348
348
  result = functionCall(exoticToPrim, input, pref);
349
349
  if (!isObject$2(result) || isSymbol$1(result)) return result;
350
- throw TypeError$d("Can't convert object to primitive value");
350
+ throw TypeError$e("Can't convert object to primitive value");
351
351
  }
352
352
 
353
353
  if (pref === undefined) pref = 'number';
@@ -419,14 +419,14 @@
419
419
  });
420
420
 
421
421
  var String$4 = global$1.String;
422
- var TypeError$c = global$1.TypeError; // `Assert: Type(argument) is Object`
422
+ var TypeError$d = global$1.TypeError; // `Assert: Type(argument) is Object`
423
423
 
424
424
  var anObject = function (argument) {
425
425
  if (isObject$2(argument)) return argument;
426
- throw TypeError$c(String$4(argument) + ' is not an object');
426
+ throw TypeError$d(String$4(argument) + ' is not an object');
427
427
  };
428
428
 
429
- var TypeError$b = global$1.TypeError; // eslint-disable-next-line es/no-object-defineproperty -- safe
429
+ var TypeError$c = global$1.TypeError; // eslint-disable-next-line es/no-object-defineproperty -- safe
430
430
 
431
431
  var $defineProperty = Object.defineProperty; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
432
432
 
@@ -464,7 +464,7 @@
464
464
  } catch (error) {
465
465
  /* empty */
466
466
  }
467
- if ('get' in Attributes || 'set' in Attributes) throw TypeError$b('Accessors not supported');
467
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError$c('Accessors not supported');
468
468
  if ('value' in Attributes) O[P] = Attributes.value;
469
469
  return O;
470
470
  };
@@ -502,7 +502,7 @@
502
502
  var hiddenKeys$1 = {};
503
503
 
504
504
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
505
- var TypeError$a = global$1.TypeError;
505
+ var TypeError$b = global$1.TypeError;
506
506
  var WeakMap$1 = global$1.WeakMap;
507
507
  var set$2, get$1, has$8;
508
508
 
@@ -515,7 +515,7 @@
515
515
  var state;
516
516
 
517
517
  if (!isObject$2(it) || (state = get$1(it)).type !== TYPE) {
518
- throw TypeError$a('Incompatible receiver, ' + TYPE + ' required');
518
+ throw TypeError$b('Incompatible receiver, ' + TYPE + ' required');
519
519
  }
520
520
 
521
521
  return state;
@@ -529,7 +529,7 @@
529
529
  var wmset = functionUncurryThis(store.set);
530
530
 
531
531
  set$2 = function (it, metadata) {
532
- if (wmhas(store, it)) throw new TypeError$a(OBJECT_ALREADY_INITIALIZED);
532
+ if (wmhas(store, it)) throw new TypeError$b(OBJECT_ALREADY_INITIALIZED);
533
533
  metadata.facade = it;
534
534
  wmset(store, it, metadata);
535
535
  return metadata;
@@ -547,7 +547,7 @@
547
547
  hiddenKeys$1[STATE] = true;
548
548
 
549
549
  set$2 = function (it, metadata) {
550
- if (hasOwnProperty_1(it, STATE)) throw new TypeError$a(OBJECT_ALREADY_INITIALIZED);
550
+ if (hasOwnProperty_1(it, STATE)) throw new TypeError$b(OBJECT_ALREADY_INITIALIZED);
551
551
  metadata.facade = it;
552
552
  createNonEnumerableProperty(it, STATE, metadata);
553
553
  return metadata;
@@ -2077,7 +2077,7 @@
2077
2077
  var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
2078
2078
  var MAX_SAFE_INTEGER$2 = 0x1FFFFFFFFFFFFF;
2079
2079
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
2080
- var TypeError$9 = global$1.TypeError; // We can't use this feature detection in V8 since it causes
2080
+ var TypeError$a = global$1.TypeError; // We can't use this feature detection in V8 since it causes
2081
2081
  // deoptimization and serious performance degradation
2082
2082
  // https://github.com/zloirock/core-js/issues/679
2083
2083
 
@@ -2115,11 +2115,11 @@
2115
2115
 
2116
2116
  if (isConcatSpreadable(E)) {
2117
2117
  len = lengthOfArrayLike(E);
2118
- if (n + len > MAX_SAFE_INTEGER$2) throw TypeError$9(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
2118
+ if (n + len > MAX_SAFE_INTEGER$2) throw TypeError$a(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
2119
2119
 
2120
2120
  for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
2121
2121
  } else {
2122
- if (n >= MAX_SAFE_INTEGER$2) throw TypeError$9(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
2122
+ if (n >= MAX_SAFE_INTEGER$2) throw TypeError$a(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
2123
2123
  createProperty(A, n++, E);
2124
2124
  }
2125
2125
  }
@@ -2535,19 +2535,19 @@
2535
2535
  if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
2536
2536
  };
2537
2537
 
2538
- var MATCH = wellKnownSymbol('match'); // `IsRegExp` abstract operation
2538
+ var MATCH$1 = wellKnownSymbol('match'); // `IsRegExp` abstract operation
2539
2539
  // https://tc39.es/ecma262/#sec-isregexp
2540
2540
 
2541
2541
  var isRegexp = function (it) {
2542
2542
  var isRegExp;
2543
- return isObject$2(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
2543
+ return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
2544
2544
  };
2545
2545
 
2546
- var TypeError$8 = global$1.TypeError; // `Assert: IsConstructor(argument) is true`
2546
+ var TypeError$9 = global$1.TypeError; // `Assert: IsConstructor(argument) is true`
2547
2547
 
2548
2548
  var aConstructor = function (argument) {
2549
2549
  if (isConstructor(argument)) return argument;
2550
- throw TypeError$8(tryToString(argument) + ' is not a constructor');
2550
+ throw TypeError$9(tryToString(argument) + ' is not a constructor');
2551
2551
  };
2552
2552
 
2553
2553
  var SPECIES$1 = wellKnownSymbol('species'); // `SpeciesConstructor` abstract operation
@@ -2607,7 +2607,7 @@
2607
2607
  return result;
2608
2608
  };
2609
2609
 
2610
- var TypeError$7 = global$1.TypeError; // `RegExpExec` abstract operation
2610
+ var TypeError$8 = global$1.TypeError; // `RegExpExec` abstract operation
2611
2611
  // https://tc39.es/ecma262/#sec-regexpexec
2612
2612
 
2613
2613
  var regexpExecAbstract = function (R, S) {
@@ -2620,7 +2620,7 @@
2620
2620
  }
2621
2621
 
2622
2622
  if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
2623
- throw TypeError$7('RegExp#exec called on incompatible receiver');
2623
+ throw TypeError$8('RegExp#exec called on incompatible receiver');
2624
2624
  };
2625
2625
 
2626
2626
  var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
@@ -3958,38 +3958,55 @@
3958
3958
  return config;
3959
3959
  };
3960
3960
 
3961
- var name = "axios";
3962
- var version$i = "0.21.4";
3963
- var description = "Promise based HTTP client for the browser and node.js";
3964
- var main = "index.js";
3965
- var scripts = {
3966
- test: "grunt test",
3967
- start: "node ./sandbox/server.js",
3968
- build: "NODE_ENV=production grunt build",
3969
- preversion: "npm test",
3970
- version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
3971
- postversion: "git push && git push --tags",
3972
- examples: "node ./examples/server.js",
3973
- coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
3974
- fix: "eslint --fix lib/**/*.js"
3961
+ var _args = [
3962
+ [
3963
+ "axios@0.21.4",
3964
+ "/Users/yannick/Projects/utu/utu-trust-sdk/packages/utu-web-components"
3965
+ ]
3966
+ ];
3967
+ var _from = "axios@0.21.4";
3968
+ var _id = "axios@0.21.4";
3969
+ var _inBundle = false;
3970
+ var _integrity = "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==";
3971
+ var _location = "/axios";
3972
+ var _phantomChildren = {
3973
+ };
3974
+ var _requested = {
3975
+ type: "version",
3976
+ registry: true,
3977
+ raw: "axios@0.21.4",
3978
+ name: "axios",
3979
+ escapedName: "axios",
3980
+ rawSpec: "0.21.4",
3981
+ saveSpec: null,
3982
+ fetchSpec: "0.21.4"
3983
+ };
3984
+ var _requiredBy = [
3985
+ "/",
3986
+ "/localtunnel"
3987
+ ];
3988
+ var _resolved = "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz";
3989
+ var _spec = "0.21.4";
3990
+ var _where = "/Users/yannick/Projects/utu/utu-trust-sdk/packages/utu-web-components";
3991
+ var author = {
3992
+ name: "Matt Zabriskie"
3975
3993
  };
3976
- var repository = {
3977
- type: "git",
3978
- url: "https://github.com/axios/axios.git"
3994
+ var browser = {
3995
+ "./lib/adapters/http.js": "./lib/adapters/xhr.js"
3979
3996
  };
3980
- var keywords = [
3981
- "xhr",
3982
- "http",
3983
- "ajax",
3984
- "promise",
3985
- "node"
3986
- ];
3987
- var author = "Matt Zabriskie";
3988
- var license = "MIT";
3989
3997
  var bugs = {
3990
3998
  url: "https://github.com/axios/axios/issues"
3991
3999
  };
3992
- var homepage = "https://axios-http.com";
4000
+ var bundlesize = [
4001
+ {
4002
+ path: "./dist/axios.min.js",
4003
+ threshold: "5kB"
4004
+ }
4005
+ ];
4006
+ var dependencies = {
4007
+ "follow-redirects": "^1.14.0"
4008
+ };
4009
+ var description = "Promise based HTTP client for the browser and node.js";
3993
4010
  var devDependencies = {
3994
4011
  coveralls: "^3.0.0",
3995
4012
  "es6-promise": "^4.2.4",
@@ -4025,40 +4042,67 @@
4025
4042
  webpack: "^4.44.2",
4026
4043
  "webpack-dev-server": "^3.11.0"
4027
4044
  };
4028
- var browser = {
4029
- "./lib/adapters/http.js": "./lib/adapters/xhr.js"
4030
- };
4045
+ var homepage = "https://axios-http.com";
4031
4046
  var jsdelivr = "dist/axios.min.js";
4032
- var unpkg = "dist/axios.min.js";
4033
- var typings = "./index.d.ts";
4034
- var dependencies = {
4035
- "follow-redirects": "^1.14.0"
4036
- };
4037
- var bundlesize = [
4038
- {
4039
- path: "./dist/axios.min.js",
4040
- threshold: "5kB"
4041
- }
4047
+ var keywords = [
4048
+ "xhr",
4049
+ "http",
4050
+ "ajax",
4051
+ "promise",
4052
+ "node"
4042
4053
  ];
4054
+ var license = "MIT";
4055
+ var main = "index.js";
4056
+ var name = "axios";
4057
+ var repository = {
4058
+ type: "git",
4059
+ url: "git+https://github.com/axios/axios.git"
4060
+ };
4061
+ var scripts = {
4062
+ build: "NODE_ENV=production grunt build",
4063
+ coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
4064
+ examples: "node ./examples/server.js",
4065
+ fix: "eslint --fix lib/**/*.js",
4066
+ postversion: "git push && git push --tags",
4067
+ preversion: "npm test",
4068
+ start: "node ./sandbox/server.js",
4069
+ test: "grunt test",
4070
+ version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"
4071
+ };
4072
+ var typings = "./index.d.ts";
4073
+ var unpkg = "dist/axios.min.js";
4074
+ var version$i = "0.21.4";
4043
4075
  var pkg = {
4044
- name: name,
4045
- version: version$i,
4046
- description: description,
4047
- main: main,
4048
- scripts: scripts,
4049
- repository: repository,
4050
- keywords: keywords,
4076
+ _args: _args,
4077
+ _from: _from,
4078
+ _id: _id,
4079
+ _inBundle: _inBundle,
4080
+ _integrity: _integrity,
4081
+ _location: _location,
4082
+ _phantomChildren: _phantomChildren,
4083
+ _requested: _requested,
4084
+ _requiredBy: _requiredBy,
4085
+ _resolved: _resolved,
4086
+ _spec: _spec,
4087
+ _where: _where,
4051
4088
  author: author,
4052
- license: license,
4089
+ browser: browser,
4053
4090
  bugs: bugs,
4054
- homepage: homepage,
4091
+ bundlesize: bundlesize,
4092
+ dependencies: dependencies,
4093
+ description: description,
4055
4094
  devDependencies: devDependencies,
4056
- browser: browser,
4095
+ homepage: homepage,
4057
4096
  jsdelivr: jsdelivr,
4058
- unpkg: unpkg,
4097
+ keywords: keywords,
4098
+ license: license,
4099
+ main: main,
4100
+ name: name,
4101
+ repository: repository,
4102
+ scripts: scripts,
4059
4103
  typings: typings,
4060
- dependencies: dependencies,
4061
- bundlesize: bundlesize
4104
+ unpkg: unpkg,
4105
+ version: version$i
4062
4106
  };
4063
4107
 
4064
4108
  var validators$1 = {}; // eslint-disable-next-line func-names
@@ -9710,6 +9754,7 @@
9710
9754
  var UTU_API_BASE_URL_PRODUCTION = "https://api.ututrust.com/";
9711
9755
  var UTU_API_BASE_URL_TEST = "https://stage-api.ututrust.com/";
9712
9756
  var CORE_API_BASE = "core-api";
9757
+ var UPLOADER_API_BASE = "uploader-api";
9713
9758
  var VIDEO_PUBLISHED_BASE = "published-video"; // API resource paths
9714
9759
 
9715
9760
  var API_RANKING = "/ranking";
@@ -9723,7 +9768,7 @@
9723
9768
 
9724
9769
  var LOCAL_STORAGE_KEY_UTU_IDENTITY_DATA = "utu-identity-data"; // UTT Endorsement
9725
9770
 
9726
- var UTT_CONTRACT_ADDRESS = "0xd3b7c928DD591f329f7013481bdB580595180429";
9771
+ var UTT_CONTRACT_ADDRESS = "0x155A7ec2C100108921855E612e98A50a13118777";
9727
9772
 
9728
9773
  function e$1(e) {
9729
9774
  this.message = e;
@@ -29446,7 +29491,7 @@
29446
29491
  case 8:
29447
29492
  address = _context.sent;
29448
29493
  _context.next = 11;
29449
- return signer.signMessage("utu-trust-api");
29494
+ return signer.signMessage("Sign in at UTU");
29450
29495
 
29451
29496
  case 11:
29452
29497
  signature = _context.sent;
@@ -29684,7 +29729,7 @@
29684
29729
  };
29685
29730
  var options = {
29686
29731
  resume: false,
29687
- endpoint: "http://localhost:2080/uploads" ,
29732
+ endpoint: "".concat(apiUrl).concat(UPLOADER_API_BASE),
29688
29733
  headers: getAuthorizationHeader(accessToken),
29689
29734
  chunkSize: 28 * 1024,
29690
29735
  uploadLengthDeferred: true,
@@ -29731,7 +29776,7 @@
29731
29776
 
29732
29777
  function getPublishedVideoUrl(apiUrl, uploadUrl) {
29733
29778
  var videoId = uploadUrl.split("/").pop();
29734
- var publishedUrl = "".concat("http://localhost:2080/files", "/").concat(videoId) || "".concat(apiUrl).concat(VIDEO_PUBLISHED_BASE).concat(videoId);
29779
+ var publishedUrl = "".concat(undefined, "/").concat(videoId) || "".concat(apiUrl).concat(VIDEO_PUBLISHED_BASE).concat(videoId);
29735
29780
  return publishedUrl;
29736
29781
  }
29737
29782
 
@@ -30095,7 +30140,7 @@
30095
30140
 
30096
30141
 
30097
30142
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
30098
- var TypeError$6 = global$1.TypeError;
30143
+ var TypeError$7 = global$1.TypeError;
30099
30144
 
30100
30145
  var createMethod$1 = function (TYPE) {
30101
30146
  var IS_TO_ARRAY = TYPE == 0;
@@ -30135,7 +30180,7 @@
30135
30180
  var loop = function () {
30136
30181
  try {
30137
30182
  if (IS_TO_ARRAY && index > MAX_SAFE_INTEGER && MAPPING) {
30138
- throw TypeError$6('The allowed number of iterations has been exceeded');
30183
+ throw TypeError$7('The allowed number of iterations has been exceeded');
30139
30184
  }
30140
30185
 
30141
30186
  Promise.resolve(anObject(functionCall(next, iterator))).then(function (step) {
@@ -30200,11 +30245,11 @@
30200
30245
  }
30201
30246
  });
30202
30247
 
30203
- var TypeError$5 = global$1.TypeError;
30248
+ var TypeError$6 = global$1.TypeError;
30204
30249
 
30205
30250
  var anInstance = function (it, Prototype) {
30206
30251
  if (objectIsPrototypeOf(Prototype, it)) return it;
30207
- throw TypeError$5('Incorrect invocation');
30252
+ throw TypeError$6('Incorrect invocation');
30208
30253
  };
30209
30254
 
30210
30255
  var correctPrototypeGetter = !fails(function () {
@@ -30316,12 +30361,12 @@
30316
30361
  if (it != undefined) return getMethod(it, ITERATOR) || getMethod(it, '@@iterator') || iterators[classof(it)];
30317
30362
  };
30318
30363
 
30319
- var TypeError$4 = global$1.TypeError;
30364
+ var TypeError$5 = global$1.TypeError;
30320
30365
 
30321
30366
  var getIterator = function (argument, usingIterator) {
30322
30367
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
30323
30368
  if (aCallable(iteratorMethod)) return anObject(functionCall(iteratorMethod, argument));
30324
- throw TypeError$4(tryToString(argument) + ' is not iterable');
30369
+ throw TypeError$5(tryToString(argument) + ' is not iterable');
30325
30370
  };
30326
30371
 
30327
30372
  var iteratorClose = function (iterator, kind, value) {
@@ -30348,7 +30393,7 @@
30348
30393
  return value;
30349
30394
  };
30350
30395
 
30351
- var TypeError$3 = global$1.TypeError;
30396
+ var TypeError$4 = global$1.TypeError;
30352
30397
 
30353
30398
  var Result = function (stopped, result) {
30354
30399
  this.stopped = stopped;
@@ -30383,7 +30428,7 @@
30383
30428
  iterator = iterable;
30384
30429
  } else {
30385
30430
  iterFn = getIteratorMethod(iterable);
30386
- if (!iterFn) throw TypeError$3(tryToString(iterable) + ' is not iterable'); // optimisation for array iterators
30431
+ if (!iterFn) throw TypeError$4(tryToString(iterable) + ' is not iterable'); // optimisation for array iterators
30387
30432
 
30388
30433
  if (isArrayIteratorMethod(iterFn)) {
30389
30434
  for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
@@ -32520,160 +32565,68 @@
32520
32565
  }
32521
32566
  });
32522
32567
 
32523
- var String$2 = global$1.String;
32524
- var TypeError$2 = global$1.TypeError;
32525
-
32526
- var aPossiblePrototype = function (argument) {
32527
- if (typeof argument == 'object' || isCallable(argument)) return argument;
32528
- throw TypeError$2("Can't set " + String$2(argument) + ' as a prototype');
32529
- };
32530
-
32531
- /* eslint-disable no-proto -- safe */
32532
-
32533
- // `Object.setPrototypeOf` method
32534
- // https://tc39.es/ecma262/#sec-object.setprototypeof
32535
- // Works with __proto__ only. Old v8 can't work with null proto objects.
32536
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
32568
+ var $includes = arrayIncludes.includes;
32537
32569
 
32570
+ // `Array.prototype.includes` method
32571
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
32538
32572
 
32539
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
32540
- var CORRECT_SETTER = false;
32541
- var test = {};
32542
- var setter;
32543
32573
 
32544
- try {
32545
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
32546
- setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
32547
- setter(test, []);
32548
- CORRECT_SETTER = test instanceof Array;
32549
- } catch (error) {
32550
- /* empty */
32574
+ _export({
32575
+ target: 'Array',
32576
+ proto: true
32577
+ }, {
32578
+ includes: function includes(el
32579
+ /* , fromIndex = 0 */
32580
+ ) {
32581
+ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
32551
32582
  }
32583
+ }); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
32552
32584
 
32553
- return function setPrototypeOf(O, proto) {
32554
- anObject(O);
32555
- aPossiblePrototype(proto);
32556
- if (CORRECT_SETTER) setter(O, proto);else O.__proto__ = proto;
32557
- return O;
32558
- };
32559
- }() : undefined);
32585
+ addToUnscopables('includes');
32560
32586
 
32561
- // makes subclassing work correct for wrapped built-ins
32587
+ var TypeError$3 = global$1.TypeError;
32562
32588
 
32589
+ var notARegexp = function (it) {
32590
+ if (isRegexp(it)) {
32591
+ throw TypeError$3("The method doesn't accept regular expressions");
32592
+ }
32563
32593
 
32564
- var inheritIfRequired = function ($this, dummy, Wrapper) {
32565
- var NewTarget, NewTargetPrototype;
32566
- if ( // it can work only with native `setPrototypeOf`
32567
- objectSetPrototypeOf && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
32568
- isCallable(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$2(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) objectSetPrototypeOf($this, NewTargetPrototype);
32569
- return $this;
32594
+ return it;
32570
32595
  };
32571
32596
 
32572
- // `thisNumberValue` abstract operation
32573
- // https://tc39.es/ecma262/#sec-thisnumbervalue
32574
-
32575
-
32576
- var thisNumberValue = functionUncurryThis(1.0.valueOf);
32577
-
32578
- var getOwnPropertyNames = objectGetOwnPropertyNames.f;
32579
-
32580
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
32581
-
32582
- var defineProperty$1 = objectDefineProperty.f;
32597
+ var MATCH = wellKnownSymbol('match');
32583
32598
 
32599
+ var correctIsRegexpLogic = function (METHOD_NAME) {
32600
+ var regexp = /./;
32584
32601
 
32585
-
32586
- var trim = stringTrim.trim;
32587
-
32588
- var NUMBER = 'Number';
32589
- var NativeNumber = global$1[NUMBER];
32590
- var NumberPrototype = NativeNumber.prototype;
32591
- var TypeError$1 = global$1.TypeError;
32592
- var arraySlice$1 = functionUncurryThis(''.slice);
32593
- var charCodeAt = functionUncurryThis(''.charCodeAt); // `ToNumeric` abstract operation
32594
- // https://tc39.es/ecma262/#sec-tonumeric
32595
-
32596
- var toNumeric = function (value) {
32597
- var primValue = toPrimitive(value, 'number');
32598
- return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
32599
- }; // `ToNumber` abstract operation
32600
- // https://tc39.es/ecma262/#sec-tonumber
32601
-
32602
-
32603
- var toNumber = function (argument) {
32604
- var it = toPrimitive(argument, 'number');
32605
- var first, third, radix, maxCode, digits, length, index, code;
32606
- if (isSymbol$1(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
32607
-
32608
- if (typeof it == 'string' && it.length > 2) {
32609
- it = trim(it);
32610
- first = charCodeAt(it, 0);
32611
-
32612
- if (first === 43 || first === 45) {
32613
- third = charCodeAt(it, 2);
32614
- if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
32615
- } else if (first === 48) {
32616
- switch (charCodeAt(it, 1)) {
32617
- case 66:
32618
- case 98:
32619
- radix = 2;
32620
- maxCode = 49;
32621
- break;
32622
- // fast equal of /^0b[01]+$/i
32623
-
32624
- case 79:
32625
- case 111:
32626
- radix = 8;
32627
- maxCode = 55;
32628
- break;
32629
- // fast equal of /^0o[0-7]+$/i
32630
-
32631
- default:
32632
- return +it;
32633
- }
32634
-
32635
- digits = arraySlice$1(it, 2);
32636
- length = digits.length;
32637
-
32638
- for (index = 0; index < length; index++) {
32639
- code = charCodeAt(digits, index); // parseInt parses a string to a first unavailable symbol
32640
- // but ToNumber should return NaN if a string contains unavailable symbols
32641
-
32642
- if (code < 48 || code > maxCode) return NaN;
32643
- }
32644
-
32645
- return parseInt(digits, radix);
32602
+ try {
32603
+ '/./'[METHOD_NAME](regexp);
32604
+ } catch (error1) {
32605
+ try {
32606
+ regexp[MATCH] = false;
32607
+ return '/./'[METHOD_NAME](regexp);
32608
+ } catch (error2) {
32609
+ /* empty */
32646
32610
  }
32647
32611
  }
32648
32612
 
32649
- return +it;
32650
- }; // `Number` constructor
32651
- // https://tc39.es/ecma262/#sec-number-constructor
32652
-
32653
-
32654
- if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
32655
- var NumberWrapper = function Number(value) {
32656
- var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
32657
- var dummy = this; // check on 1..constructor(foo) case
32613
+ return false;
32614
+ };
32658
32615
 
32659
- return objectIsPrototypeOf(NumberPrototype, dummy) && fails(function () {
32660
- thisNumberValue(dummy);
32661
- }) ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
32662
- };
32616
+ var stringIndexOf = functionUncurryThis(''.indexOf); // `String.prototype.includes` method
32617
+ // https://tc39.es/ecma262/#sec-string.prototype.includes
32663
32618
 
32664
- for (var keys = descriptors ? getOwnPropertyNames(NativeNumber) : ( // ES3:
32665
- 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES2015 (in case, if modules with ES2015 Number statics required before):
32666
- 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + // ESNext
32667
- 'fromString,range').split(','), j = 0, key; keys.length > j; j++) {
32668
- if (hasOwnProperty_1(NativeNumber, key = keys[j]) && !hasOwnProperty_1(NumberWrapper, key)) {
32669
- defineProperty$1(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
32670
- }
32619
+ _export({
32620
+ target: 'String',
32621
+ proto: true,
32622
+ forced: !correctIsRegexpLogic('includes')
32623
+ }, {
32624
+ includes: function includes(searchString
32625
+ /* , position = 0 */
32626
+ ) {
32627
+ return !!~stringIndexOf(toString$2(requireObjectCoercible(this)), toString$2(notARegexp(searchString)), arguments.length > 1 ? arguments[1] : undefined);
32671
32628
  }
32672
-
32673
- NumberWrapper.prototype = NumberPrototype;
32674
- NumberPrototype.constructor = NumberWrapper;
32675
- redefine(global$1, NUMBER, NumberWrapper);
32676
- }
32629
+ });
32677
32630
 
32678
32631
  var abi = [
32679
32632
  {
@@ -33549,14 +33502,14 @@
33549
33502
  mumbai: {
33550
33503
  chainId: 80001,
33551
33504
  // 80001
33552
- chainName: "Matic(Polygon) Mumbai Testnet",
33505
+ chainName: "Mumbai",
33553
33506
  nativeCurrency: {
33554
- name: "tMATIC",
33555
- symbol: "tMATIC",
33507
+ name: "MATIC",
33508
+ symbol: "MATIC",
33556
33509
  decimals: 18
33557
33510
  },
33558
33511
  rpcUrls: ["https://rpc-mumbai.maticvigil.com"],
33559
- blockExplorerUrls: ["https://mumbai.polygonscan.com/"]
33512
+ blockExplorerUrls: ["https://mumbai.polygonscan.com"]
33560
33513
  },
33561
33514
  goerli: {
33562
33515
  chainId: 5
@@ -33592,36 +33545,21 @@
33592
33545
  // @ts-ignore
33593
33546
 
33594
33547
 
33595
- if (!((_window = window) !== null && _window !== void 0 && _window.ethereum || (_window2 = window) !== null && _window2 !== void 0 && _window2.web3) || !props[ATTR_TARGET_UUID] || !isAddress(props[ATTR_TARGET_UUID]) || props[ATTR_TRANSACTION_ID]) return null;
33548
+ if (!((_window = window) !== null && _window !== void 0 && _window.ethereum || (_window2 = window) !== null && _window2 !== void 0 && _window2.web3 || window.utuWeb3Provider) || !props[ATTR_TARGET_UUID] || !isAddress(props[ATTR_TARGET_UUID]) || !props[ATTR_TRANSACTION_ID]) return null;
33596
33549
 
33597
- var switchNetwork = /*#__PURE__*/function () {
33598
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
33599
- var provider, network, selectedNetwork;
33550
+ var getProvider = function getProvider() {
33551
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
33552
+ // @ts-ignore
33553
+ return window.utuWeb3Provider || window.ethereum;
33554
+ };
33555
+
33556
+ var requestNetworkChange = /*#__PURE__*/function () {
33557
+ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(provider, selectedNetwork) {
33600
33558
  return regeneratorRuntime.wrap(function _callee$(_context) {
33601
33559
  while (1) {
33602
33560
  switch (_context.prev = _context.next) {
33603
33561
  case 0:
33604
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
33605
- // @ts-ignore
33606
- provider = window.ethereum;
33607
- network = String(props[ATTR_ENDORSEMENT_NETWORK]).toLowerCase().trim() || DEFAULT_NETWORK;
33608
- selectedNetwork = networks[network] || networks[DEFAULT_NETWORK];
33609
-
33610
- if (!(selectedNetwork.chainId === 80001)) {
33611
- _context.next = 6;
33612
- break;
33613
- }
33614
-
33615
- _context.next = 6;
33616
- return provider.request({
33617
- method: "wallet_addEthereumChain",
33618
- params: [_objectSpread2(_objectSpread2({}, selectedNetwork), {}, {
33619
- chainId: hexStripZeros(hexlify(selectedNetwork.chainId))
33620
- })]
33621
- });
33622
-
33623
- case 6:
33624
- _context.next = 8;
33562
+ _context.next = 2;
33625
33563
  return provider.request({
33626
33564
  method: "wallet_switchEthereumChain",
33627
33565
  params: [{
@@ -33629,7 +33567,7 @@
33629
33567
  }]
33630
33568
  });
33631
33569
 
33632
- case 8:
33570
+ case 2:
33633
33571
  case "end":
33634
33572
  return _context.stop();
33635
33573
  }
@@ -33637,100 +33575,178 @@
33637
33575
  }, _callee);
33638
33576
  }));
33639
33577
 
33640
- return function switchNetwork() {
33578
+ return function requestNetworkChange(_x, _x2) {
33641
33579
  return _ref.apply(this, arguments);
33642
33580
  };
33643
33581
  }();
33644
33582
 
33645
- var sendTransaction = /*#__PURE__*/function () {
33646
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(address, amount, transactionId) {
33647
- var web3Provider, signer, wei, contract, transaction;
33583
+ var addNetwork = /*#__PURE__*/function () {
33584
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(provider, selectedNetwork) {
33648
33585
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
33649
33586
  while (1) {
33650
33587
  switch (_context2.prev = _context2.next) {
33651
33588
  case 0:
33652
33589
  _context2.next = 2;
33653
- return switchNetwork();
33590
+ return provider.request({
33591
+ method: "wallet_addEthereumChain",
33592
+ params: [_objectSpread2(_objectSpread2({}, selectedNetwork), {}, {
33593
+ chainId: hexStripZeros(hexlify(selectedNetwork.chainId))
33594
+ })]
33595
+ });
33654
33596
 
33655
33597
  case 2:
33598
+ case "end":
33599
+ return _context2.stop();
33600
+ }
33601
+ }
33602
+ }, _callee2);
33603
+ }));
33604
+
33605
+ return function addNetwork(_x3, _x4) {
33606
+ return _ref2.apply(this, arguments);
33607
+ };
33608
+ }();
33609
+
33610
+ var switchNetwork = /*#__PURE__*/function () {
33611
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
33612
+ var provider, network, selectedNetwork;
33613
+ return regeneratorRuntime.wrap(function _callee3$(_context3) {
33614
+ while (1) {
33615
+ switch (_context3.prev = _context3.next) {
33616
+ case 0:
33656
33617
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
33657
33618
  // @ts-ignore
33658
- web3Provider = new Web3Provider(window.ethereum);
33659
- signer = web3Provider.getSigner(); // Accounts now exposed
33619
+ provider = getProvider();
33620
+ network = String(props[ATTR_ENDORSEMENT_NETWORK]).toLowerCase().trim() || DEFAULT_NETWORK;
33621
+ selectedNetwork = networks[network] || networks[DEFAULT_NETWORK];
33622
+ _context3.prev = 3;
33623
+ _context3.next = 6;
33624
+ return requestNetworkChange(provider, selectedNetwork);
33660
33625
 
33661
- wei = String(Number(amount) * 10e17);
33662
- contract = new Contract(UTT_CONTRACT_ADDRESS, abi, signer);
33663
- _context2.next = 8;
33664
- return contract.endorse(address, String(wei), transactionId);
33626
+ case 6:
33627
+ _context3.next = 16;
33628
+ break;
33665
33629
 
33666
33630
  case 8:
33667
- transaction = _context2.sent;
33668
- _context2.next = 11;
33669
- return transaction.wait();
33631
+ _context3.prev = 8;
33632
+ _context3.t0 = _context3["catch"](3);
33633
+ console.log(_context3.t0, _context3.t0.message);
33634
+
33635
+ if (!(_context3.t0.code === 4902 || _context3.t0.message.toLowerCase().includes("unrecognized"))) {
33636
+ _context3.next = 16;
33637
+ break;
33638
+ }
33639
+
33640
+ _context3.next = 14;
33641
+ return addNetwork(provider, selectedNetwork);
33642
+
33643
+ case 14:
33644
+ _context3.next = 16;
33645
+ return requestNetworkChange(provider, selectedNetwork);
33646
+
33647
+ case 16:
33648
+ case "end":
33649
+ return _context3.stop();
33650
+ }
33651
+ }
33652
+ }, _callee3, null, [[3, 8]]);
33653
+ }));
33654
+
33655
+ return function switchNetwork() {
33656
+ return _ref3.apply(this, arguments);
33657
+ };
33658
+ }();
33659
+
33660
+ var sendTransaction = /*#__PURE__*/function () {
33661
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(address, amount, transactionId) {
33662
+ var web3Provider, signer, contract, transaction;
33663
+ return regeneratorRuntime.wrap(function _callee4$(_context4) {
33664
+ while (1) {
33665
+ switch (_context4.prev = _context4.next) {
33666
+ case 0:
33667
+ _context4.next = 2;
33668
+ return switchNetwork();
33669
+
33670
+ case 2:
33671
+ _context4.next = 4;
33672
+ return new Web3Provider(getProvider());
33670
33673
 
33671
- case 11:
33672
- return _context2.abrupt("return", transaction);
33674
+ case 4:
33675
+ web3Provider = _context4.sent;
33676
+ signer = web3Provider.getSigner();
33677
+ contract = new Contract(UTT_CONTRACT_ADDRESS, abi, signer);
33678
+ _context4.next = 9;
33679
+ return contract.endorse(address, String(amount), transactionId);
33680
+
33681
+ case 9:
33682
+ transaction = _context4.sent;
33683
+ _context4.next = 12;
33684
+ return transaction.wait();
33673
33685
 
33674
33686
  case 12:
33687
+ return _context4.abrupt("return", transaction);
33688
+
33689
+ case 13:
33675
33690
  case "end":
33676
- return _context2.stop();
33691
+ return _context4.stop();
33677
33692
  }
33678
33693
  }
33679
- }, _callee2);
33694
+ }, _callee4);
33680
33695
  }));
33681
33696
 
33682
- return function sendTransaction(_x, _x2, _x3) {
33683
- return _ref2.apply(this, arguments);
33697
+ return function sendTransaction(_x5, _x6, _x7) {
33698
+ return _ref4.apply(this, arguments);
33684
33699
  };
33685
33700
  }();
33686
33701
 
33687
- function onSubmit(_x4) {
33702
+ function onSubmit(_x8) {
33688
33703
  return _onSubmit.apply(this, arguments);
33689
33704
  }
33690
33705
 
33691
33706
  function _onSubmit() {
33692
- _onSubmit = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(_ref3) {
33707
+ _onSubmit = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(_ref5) {
33693
33708
  var amount;
33694
- return regeneratorRuntime.wrap(function _callee3$(_context3) {
33709
+ return regeneratorRuntime.wrap(function _callee5$(_context5) {
33695
33710
  while (1) {
33696
- switch (_context3.prev = _context3.next) {
33711
+ switch (_context5.prev = _context5.next) {
33697
33712
  case 0:
33698
- amount = _ref3.amount;
33713
+ amount = _ref5.amount;
33699
33714
 
33700
33715
  if (amount) {
33701
- _context3.next = 3;
33716
+ _context5.next = 3;
33702
33717
  break;
33703
33718
  }
33704
33719
 
33705
- return _context3.abrupt("return");
33720
+ return _context5.abrupt("return");
33706
33721
 
33707
33722
  case 3:
33708
33723
  setTxError("");
33709
- _context3.prev = 4;
33710
- _context3.next = 7;
33724
+ _context5.prev = 4;
33725
+ _context5.next = 7;
33711
33726
  return sendTransaction(props[ATTR_TARGET_UUID], amount, props[ATTR_TRANSACTION_ID]);
33712
33727
 
33713
33728
  case 7:
33714
- _context3.next = 12;
33729
+ _context5.next = 13;
33715
33730
  break;
33716
33731
 
33717
33732
  case 9:
33718
- _context3.prev = 9;
33719
- _context3.t0 = _context3["catch"](4);
33720
- setTxError(_context3.t0.data ? _context3.t0.data.message : _context3.t0.message);
33733
+ _context5.prev = 9;
33734
+ _context5.t0 = _context5["catch"](4);
33735
+ console.log(_context5.t0);
33736
+ setTxError(_context5.t0.data ? _context5.t0.data.message : _context5.t0.message);
33721
33737
 
33722
- case 12:
33738
+ case 13:
33723
33739
  case "end":
33724
- return _context3.stop();
33740
+ return _context5.stop();
33725
33741
  }
33726
33742
  }
33727
- }, _callee3, null, [[4, 9]]);
33743
+ }, _callee5, null, [[4, 9]]);
33728
33744
  }));
33729
33745
  return _onSubmit.apply(this, arguments);
33730
33746
  }
33731
33747
 
33732
- var showError = function showError(_ref4) {
33733
- var amount = _ref4.amount;
33748
+ var showError = function showError(_ref6) {
33749
+ var amount = _ref6.amount;
33734
33750
 
33735
33751
  switch (amount === null || amount === void 0 ? void 0 : amount.type) {
33736
33752
  case "required":
@@ -36204,6 +36220,161 @@
36204
36220
  var css_248z$c = "@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);\nbody {\n overflow: scroll;\n}\n\nh3 {\n text-transform: capitalize;\n font-weight: 500;\n font-size: 14px;\n}\n\n.error {\n color: #e80054;\n}\n\n:host {\n margin: 0;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: #000000;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: #000000;\n}\n\n.utu-section-light {\n border-bottom: 1px solid #9b9898;\n background: #fdfdfd;\n}\n.utu-section-dark {\n border-bottom: 1px solid #ebe8e8;\n background: #242323;\n}\n.utu-section-no-border-light {\n background: #fdfdfd;\n}\n.utu-section-no-border-dark {\n background: #242323;\n}\n.utu-section-no-border-mid-light {\n background: #e5e5e5;\n}\n.utu-section-no-border-mid-dark {\n background: #494949;\n}\n\n.btn {\n padding: 12px;\n border: none;\n font-size: 14px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n}\n.btn-light {\n background-color: #fbc93d;\n color: #000000 !important;\n}\n.btn-dark {\n background-color: #fbc93d;\n color: #000000 !important;\n}\n.btn-round {\n color: \"white\" !important;\n}\n.btn-round-text {\n color: \"white\" !important;\n}\n\n.icon-btn {\n border: none;\n background: none;\n padding: 0;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-weight: 500;\n font-size: 14px;\n}\n.icon-btn svg {\n width: 60px;\n height: 60px;\n}\n\nbutton.p {\n color: \"white\";\n}\n\n.logo-position {\n position: absolute;\n top: -1rem;\n right: 6rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-details {\n position: absolute;\n top: -2rem;\n right: 6rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-video {\n position: absolute;\n top: 41.2rem;\n left: 21rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-position-player {\n position: absolute;\n bottom: -0.5rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem;\n}\n.logo-section {\n position: relative;\n}\n.logo-size {\n width: 3rem;\n}\n\n.text-area {\n resize: vertical;\n min-height: 8rem;\n border-radius: 10px;\n border: none;\n padding: 16px;\n font-weight: 300;\n font-size: 0.9rem;\n background-color: #fcf8e5;\n}\n\nsvg.video-icon {\n width: 1.5rem;\n height: 2.4rem;\n padding-top: 0.3rem;\n}\nsvg.video-icon-dark {\n fill: #000000;\n}\nsvg.video-icon-light {\n fill: #000000;\n}\n\n/* ----------- Large screens ----------- */\n@media only screen and (min-width: 768px) {\n .utu-section-light {\n border-bottom: 0px;\n background-color: #fcf8e5;\n }\n .utu-section-dark {\n border-bottom: 0px;\n background: #242323;\n background-color: #3d3d3c;\n }\n .utu-section-no-border-light {\n background-color: #fcf8e5;\n }\n .utu-section-no-border-dark {\n background-color: #3d3d3c;\n }\n .utu-section-no-border-mid-light {\n background-color: #fcf8e5;\n }\n .utu-section-no-border-mid-dark {\n background-color: #3d3d3c;\n }\n\n .text-area {\n background-color: #fdfdfd;\n }\n}\n.trust-video {\n left: 0;\n border: none;\n max-width: 100%;\n bottom: 1.4rem;\n position: relative;\n border-top-left-radius: 2%;\n border-top-right-radius: 2%;\n}\n.trust-video-wrapper {\n display: flex;\n align-items: center;\n}\n.trust-video-wrapper:hover .trust-video-controls {\n visibility: visible;\n opacity: 1;\n}\n.trust-video-msg {\n display: flex;\n align-items: center;\n}\n.trust-video-controls {\n position: absolute;\n bottom: 14px;\n padding-left: 36px;\n left: 14px;\n width: calc(100% - 28px);\n right: 0;\n border-radius: 10px;\n height: 4em;\n align-items: center;\n justify-content: space-between;\n visibility: hidden;\n opacity: 0;\n transition: all 0.25s ease-out;\n display: none;\n}\n.trust-video-controls.show {\n display: flex;\n}\n.trust-video-play {\n border-color: transparent;\n transition: 0.3s;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 3em;\n display: block;\n position: absolute;\n padding: 0;\n cursor: pointer;\n opacity: 1;\n background-color: #FFDD33;\n border-radius: 50%;\n font: normal normal normal 18px/1 FontAwesome;\n}\n.trust-video-play:before {\n content: \"\\f04b\";\n}\n.trust-video-play.paused:before {\n content: \"\\f04c\";\n}\n.trust-video-volume {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 2em;\n height: 1.5em;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n left: 20px;\n}\n.trust-video-volume:before {\n content: \"\\f028\";\n}\n.trust-video-volume.off:before {\n content: \"\\f026\";\n}\n.trust-video-fullscreen {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 1.5rem;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n right: 20px;\n}\n.trust-video-fullscreen:before {\n content: \"\\f065\";\n}\n\n.utu-screen-recording {\n max-height: 80rem;\n min-width: 20rem;\n width: 27rem;\n height: 43rem;\n margin: 5% auto 0;\n position: relative;\n z-index: 1;\n justify-content: center;\n border-bottom-left-radius: 2%;\n border-bottom-right-radius: 2%;\n border-bottom: 13px #fbc93d solid;\n}\n\n.btn-round {\n border: none;\n margin: 5px 0;\n width: 6rem;\n height: 6rem;\n border-radius: 90px;\n border: none;\n font-size: 9px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n z-index: 1;\n}\n.btn-round-light {\n background-color: #fbc93d;\n}\n.btn-round-dark {\n background-color: #fbc93d;\n}\n.btn-round-loading {\n position: absolute;\n bottom: 2.5rem;\n}\n.btn-round-spinner-light {\n fill: #000000;\n}\n.btn-round-spinner-dark {\n fill: #000000;\n}\n.btn-round-stop {\n position: absolute;\n bottom: 2.5rem;\n}\n.btn-round-stop-light {\n fill: #000000;\n}\n.btn-round-stop-dark {\n fill: #000000;\n}\n.btn-round-text-light {\n color: #000000;\n}\n.btn-round-text-dark {\n color: #000000;\n}\n.btn-container {\n display: flex;\n justify-content: center;\n}\n.btn-stop-icon {\n width: 30px;\n height: 30px;\n border-radius: 5px;\n}\n.btn-stop-icon-light {\n background: #000000;\n}\n.btn-stop-icon-dark {\n background: #000000;\n}\n\n.video-container {\n padding-top: 4rem;\n padding-bottom: 4rem;\n}\n\n.response-message {\n height: 3rem;\n line-height: 3rem;\n width: 100%;\n}\n\n/* ----------- Large screens ----------- */\n@media only screen and (min-width: 768px) {\n .video-container {\n padding-top: 4rem;\n padding-bottom: 4rem;\n }\n}";
36205
36221
  styleInject(css_248z$c);
36206
36222
 
36223
+ var String$2 = global$1.String;
36224
+ var TypeError$2 = global$1.TypeError;
36225
+
36226
+ var aPossiblePrototype = function (argument) {
36227
+ if (typeof argument == 'object' || isCallable(argument)) return argument;
36228
+ throw TypeError$2("Can't set " + String$2(argument) + ' as a prototype');
36229
+ };
36230
+
36231
+ /* eslint-disable no-proto -- safe */
36232
+
36233
+ // `Object.setPrototypeOf` method
36234
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
36235
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
36236
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
36237
+
36238
+
36239
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
36240
+ var CORRECT_SETTER = false;
36241
+ var test = {};
36242
+ var setter;
36243
+
36244
+ try {
36245
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
36246
+ setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
36247
+ setter(test, []);
36248
+ CORRECT_SETTER = test instanceof Array;
36249
+ } catch (error) {
36250
+ /* empty */
36251
+ }
36252
+
36253
+ return function setPrototypeOf(O, proto) {
36254
+ anObject(O);
36255
+ aPossiblePrototype(proto);
36256
+ if (CORRECT_SETTER) setter(O, proto);else O.__proto__ = proto;
36257
+ return O;
36258
+ };
36259
+ }() : undefined);
36260
+
36261
+ // makes subclassing work correct for wrapped built-ins
36262
+
36263
+
36264
+ var inheritIfRequired = function ($this, dummy, Wrapper) {
36265
+ var NewTarget, NewTargetPrototype;
36266
+ if ( // it can work only with native `setPrototypeOf`
36267
+ objectSetPrototypeOf && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
36268
+ isCallable(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$2(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) objectSetPrototypeOf($this, NewTargetPrototype);
36269
+ return $this;
36270
+ };
36271
+
36272
+ // `thisNumberValue` abstract operation
36273
+ // https://tc39.es/ecma262/#sec-thisnumbervalue
36274
+
36275
+
36276
+ var thisNumberValue = functionUncurryThis(1.0.valueOf);
36277
+
36278
+ var getOwnPropertyNames = objectGetOwnPropertyNames.f;
36279
+
36280
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
36281
+
36282
+ var defineProperty$1 = objectDefineProperty.f;
36283
+
36284
+
36285
+
36286
+ var trim = stringTrim.trim;
36287
+
36288
+ var NUMBER = 'Number';
36289
+ var NativeNumber = global$1[NUMBER];
36290
+ var NumberPrototype = NativeNumber.prototype;
36291
+ var TypeError$1 = global$1.TypeError;
36292
+ var arraySlice$1 = functionUncurryThis(''.slice);
36293
+ var charCodeAt = functionUncurryThis(''.charCodeAt); // `ToNumeric` abstract operation
36294
+ // https://tc39.es/ecma262/#sec-tonumeric
36295
+
36296
+ var toNumeric = function (value) {
36297
+ var primValue = toPrimitive(value, 'number');
36298
+ return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
36299
+ }; // `ToNumber` abstract operation
36300
+ // https://tc39.es/ecma262/#sec-tonumber
36301
+
36302
+
36303
+ var toNumber = function (argument) {
36304
+ var it = toPrimitive(argument, 'number');
36305
+ var first, third, radix, maxCode, digits, length, index, code;
36306
+ if (isSymbol$1(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
36307
+
36308
+ if (typeof it == 'string' && it.length > 2) {
36309
+ it = trim(it);
36310
+ first = charCodeAt(it, 0);
36311
+
36312
+ if (first === 43 || first === 45) {
36313
+ third = charCodeAt(it, 2);
36314
+ if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
36315
+ } else if (first === 48) {
36316
+ switch (charCodeAt(it, 1)) {
36317
+ case 66:
36318
+ case 98:
36319
+ radix = 2;
36320
+ maxCode = 49;
36321
+ break;
36322
+ // fast equal of /^0b[01]+$/i
36323
+
36324
+ case 79:
36325
+ case 111:
36326
+ radix = 8;
36327
+ maxCode = 55;
36328
+ break;
36329
+ // fast equal of /^0o[0-7]+$/i
36330
+
36331
+ default:
36332
+ return +it;
36333
+ }
36334
+
36335
+ digits = arraySlice$1(it, 2);
36336
+ length = digits.length;
36337
+
36338
+ for (index = 0; index < length; index++) {
36339
+ code = charCodeAt(digits, index); // parseInt parses a string to a first unavailable symbol
36340
+ // but ToNumber should return NaN if a string contains unavailable symbols
36341
+
36342
+ if (code < 48 || code > maxCode) return NaN;
36343
+ }
36344
+
36345
+ return parseInt(digits, radix);
36346
+ }
36347
+ }
36348
+
36349
+ return +it;
36350
+ }; // `Number` constructor
36351
+ // https://tc39.es/ecma262/#sec-number-constructor
36352
+
36353
+
36354
+ if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
36355
+ var NumberWrapper = function Number(value) {
36356
+ var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
36357
+ var dummy = this; // check on 1..constructor(foo) case
36358
+
36359
+ return objectIsPrototypeOf(NumberPrototype, dummy) && fails(function () {
36360
+ thisNumberValue(dummy);
36361
+ }) ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
36362
+ };
36363
+
36364
+ for (var keys = descriptors ? getOwnPropertyNames(NativeNumber) : ( // ES3:
36365
+ 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + // ES2015 (in case, if modules with ES2015 Number statics required before):
36366
+ 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' + // ESNext
36367
+ 'fromString,range').split(','), j = 0, key; keys.length > j; j++) {
36368
+ if (hasOwnProperty_1(NativeNumber, key = keys[j]) && !hasOwnProperty_1(NumberWrapper, key)) {
36369
+ defineProperty$1(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
36370
+ }
36371
+ }
36372
+
36373
+ NumberWrapper.prototype = NumberPrototype;
36374
+ NumberPrototype.constructor = NumberWrapper;
36375
+ redefine(global$1, NUMBER, NumberWrapper);
36376
+ }
36377
+
36207
36378
  var RangeError$2 = global$1.RangeError; // `String.prototype.repeat` method implementation
36208
36379
  // https://tc39.es/ecma262/#sec-string.prototype.repeat
36209
36380
 
@@ -37104,11 +37275,7 @@
37104
37275
 
37105
37276
  // const minLength = 5;
37106
37277
  function EndorsementsList(props) {
37107
- var _getBaseProps = getBaseProps(props, TAG_FEEDBACK_DETAILS_POPUP),
37108
- apiUrl = _getBaseProps.apiUrl;
37109
-
37110
- var targetUuid = props[ATTR_TARGET_UUID]; // environments
37111
-
37278
+ // environments
37112
37279
  var _useState = l$1(false),
37113
37280
  _useState2 = _slicedToArray(_useState, 2),
37114
37281
  isDark = _useState2[0],
@@ -37121,14 +37288,11 @@
37121
37288
 
37122
37289
  var envCondition = isDark ? "dark" : "light";
37123
37290
 
37124
- var _useFeedbackSummaryAp = useFeedbackSummaryApi(apiUrl, targetUuid),
37125
- feedbackSummary = _useFeedbackSummaryAp.feedbackSummary;
37126
-
37127
- if (!feedbackSummary) {
37291
+ if (!props.feedbackSummary) {
37128
37292
  return v$2(d$2, null);
37129
37293
  }
37130
37294
 
37131
- var endorsements = feedbackSummary.endorsements;
37295
+ var endorsements = props.feedbackSummary.endorsements;
37132
37296
 
37133
37297
  if (!endorsements) {
37134
37298
  return v$2(d$2, null);
@@ -37214,20 +37378,12 @@
37214
37378
  setIsDark(true);
37215
37379
  }
37216
37380
 
37217
- var _getBaseProps = getBaseProps(props, TAG_FEEDBACK_DETAILS_POPUP),
37218
- apiUrl = _getBaseProps.apiUrl;
37219
-
37220
- var targetUuid = props[ATTR_TARGET_UUID];
37221
-
37222
- var _useFeedbackSummaryAp = useFeedbackSummaryApi(apiUrl, targetUuid),
37223
- feedbackSummary = _useFeedbackSummaryAp.feedbackSummary;
37224
-
37225
- if (!feedbackSummary) {
37381
+ if (!props.feedbackSummary) {
37226
37382
  return v$2(d$2, null);
37227
37383
  } // star rating
37228
37384
 
37229
37385
 
37230
- var stars = feedbackSummary.stars.avg;
37386
+ var stars = props.feedbackSummary.stars.avg;
37231
37387
  return v$2(BaseComponent, {
37232
37388
  style: css_248z$5
37233
37389
  }, v$2("section", {
@@ -37276,20 +37432,12 @@
37276
37432
  setIsDark(true);
37277
37433
  }
37278
37434
 
37279
- var _getBaseProps = getBaseProps(props, TAG_FEEDBACK_DETAILS_POPUP),
37280
- apiUrl = _getBaseProps.apiUrl;
37281
-
37282
- var targetUuid = props[ATTR_TARGET_UUID];
37283
-
37284
- var _useFeedbackSummaryAp = useFeedbackSummaryApi(apiUrl, targetUuid),
37285
- feedbackSummary = _useFeedbackSummaryAp.feedbackSummary;
37286
-
37287
- if (!feedbackSummary) {
37435
+ if (!props.feedbackSummary) {
37288
37436
  return v$2(d$2, null);
37289
37437
  } // fet badges and keys
37290
37438
 
37291
37439
 
37292
- var fbBadges = feedbackSummary.badges;
37440
+ var fbBadges = props.feedbackSummary.badges;
37293
37441
  var keys = Object.keys(fbBadges); // returns the badge with image, counter and title
37294
37442
 
37295
37443
  var badgeGroup = keys.map(function (key, i) {
@@ -37373,15 +37521,7 @@
37373
37521
  setIsDark(true);
37374
37522
  }
37375
37523
 
37376
- var _getBaseProps = getBaseProps(props, TAG_FEEDBACK_DETAILS_POPUP),
37377
- apiUrl = _getBaseProps.apiUrl;
37378
-
37379
- var targetUuid = props[ATTR_TARGET_UUID];
37380
-
37381
- var _useFeedbackSummaryAp = useFeedbackSummaryApi(apiUrl, targetUuid),
37382
- feedbackSummary = _useFeedbackSummaryAp.feedbackSummary;
37383
-
37384
- if (!feedbackSummary) {
37524
+ if (!props.feedbackSummary) {
37385
37525
  return v$2(d$2, null);
37386
37526
  } // top image and video
37387
37527
 
@@ -37416,7 +37556,7 @@
37416
37556
  }, v$2(Logo, null)))));
37417
37557
  };
37418
37558
 
37419
- var video = feedbackSummary.video;
37559
+ var video = props.feedbackSummary.video;
37420
37560
  return v$2(BaseComponent, {
37421
37561
  style: css_248z$2,
37422
37562
  className: "video-section utu-section-no-border-".concat(isDark ? "dark" : "light"),
@@ -37438,7 +37578,7 @@
37438
37578
  styleInject(css_248z$1);
37439
37579
 
37440
37580
  function BadgesShow(props) {
37441
- var _feedbackSummary$revi, _feedbackSummary$revi2;
37581
+ var _props$feedbackSummar, _props$feedbackSummar2;
37442
37582
 
37443
37583
  // environments
37444
37584
  var _useState = l$1(false),
@@ -37453,21 +37593,13 @@
37453
37593
  setIsDark(true);
37454
37594
  }
37455
37595
 
37456
- var _getBaseProps = getBaseProps(props, TAG_FEEDBACK_DETAILS_POPUP),
37457
- apiUrl = _getBaseProps.apiUrl;
37458
-
37459
- var targetUuid = props[ATTR_TARGET_UUID];
37460
-
37461
- var _useFeedbackSummaryAp = useFeedbackSummaryApi(apiUrl, targetUuid),
37462
- feedbackSummary = _useFeedbackSummaryAp.feedbackSummary;
37463
-
37464
- if (!feedbackSummary) {
37596
+ if (!props.feedbackSummary) {
37465
37597
  return v$2(d$2, null);
37466
37598
  } // review
37467
37599
 
37468
37600
 
37469
- var fbReviewImg = (_feedbackSummary$revi = feedbackSummary.review) === null || _feedbackSummary$revi === void 0 ? void 0 : _feedbackSummary$revi.image;
37470
- var fbReviewContent = (_feedbackSummary$revi2 = feedbackSummary.review) === null || _feedbackSummary$revi2 === void 0 ? void 0 : _feedbackSummary$revi2.content;
37601
+ var fbReviewImg = (_props$feedbackSummar = props.feedbackSummary.review) === null || _props$feedbackSummar === void 0 ? void 0 : _props$feedbackSummar.image;
37602
+ var fbReviewContent = (_props$feedbackSummar2 = props.feedbackSummary.review) === null || _props$feedbackSummar2 === void 0 ? void 0 : _props$feedbackSummar2.content;
37471
37603
  return v$2(BaseComponent, {
37472
37604
  style: css_248z$1,
37473
37605
  className: "review-section utu-section-no-border-".concat(isDark ? "dark" : "light"),
@@ -37497,12 +37629,30 @@
37497
37629
  setIsDark(true);
37498
37630
  }
37499
37631
 
37632
+ var _getBaseProps = getBaseProps(props, TAG_FEEDBACK_DETAILS_POPUP),
37633
+ apiUrl = _getBaseProps.apiUrl;
37634
+
37635
+ var targetUuid = props[ATTR_TARGET_UUID];
37636
+
37637
+ var _useFeedbackSummaryAp = useFeedbackSummaryApi(apiUrl, targetUuid),
37638
+ feedbackSummary = _useFeedbackSummaryAp.feedbackSummary;
37639
+
37500
37640
  return v$2(BaseComponent, {
37501
37641
  style: css_248z$7,
37502
37642
  className: "utu-feedback-details"
37503
37643
  }, v$2("div", {
37504
37644
  className: "mobile-view"
37505
- }, v$2(VideoShow, props), v$2(StarRatingShow, props), v$2(BadgesShow$1, props), v$2(EndorsementsList, props), v$2(BadgesShow, props), v$2("section", {
37645
+ }, v$2(VideoShow, _extends$1({}, props, {
37646
+ feedbackSummary: feedbackSummary
37647
+ })), v$2(StarRatingShow, _extends$1({}, props, {
37648
+ feedbackSummary: feedbackSummary
37649
+ })), v$2(BadgesShow$1, _extends$1({}, props, {
37650
+ feedbackSummary: feedbackSummary
37651
+ })), v$2(EndorsementsList, _extends$1({}, props, {
37652
+ feedbackSummary: feedbackSummary
37653
+ })), v$2(BadgesShow, _extends$1({}, props, {
37654
+ feedbackSummary: feedbackSummary
37655
+ })), v$2("section", {
37506
37656
  className: "logo-section"
37507
37657
  }, v$2("div", {
37508
37658
  className: "logo-position"
@@ -37510,9 +37660,19 @@
37510
37660
  className: "desktop-view"
37511
37661
  }, v$2("div", {
37512
37662
  className: "desktop-view-block-1 desktop-view-block-1-".concat(isDark ? "dark" : "light")
37513
- }, v$2(VideoShow, props), v$2(StarRatingShow, props), v$2(BadgesShow, props)), v$2("div", {
37663
+ }, v$2(VideoShow, _extends$1({}, props, {
37664
+ feedbackSummary: feedbackSummary
37665
+ })), v$2(StarRatingShow, _extends$1({}, props, {
37666
+ feedbackSummary: feedbackSummary
37667
+ })), v$2(BadgesShow, _extends$1({}, props, {
37668
+ feedbackSummary: feedbackSummary
37669
+ }))), v$2("div", {
37514
37670
  className: "desktop-view-block-2 desktop-view-block-2-".concat(isDark ? "dark" : "light")
37515
- }, v$2(BadgesShow$1, props), v$2(EndorsementsList, props)), v$2("section", {
37671
+ }, v$2(BadgesShow$1, _extends$1({}, props, {
37672
+ feedbackSummary: feedbackSummary
37673
+ })), v$2(EndorsementsList, _extends$1({}, props, {
37674
+ feedbackSummary: feedbackSummary
37675
+ }))), v$2("section", {
37516
37676
  className: "logo-section"
37517
37677
  }, v$2("div", {
37518
37678
  className: "logo-position-details"