@ututrust/web-components 1.1.15 → 1.1.18
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 +35 -30
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9707,8 +9707,10 @@
|
|
|
9707
9707
|
var ATTR_ENDORSEMENT_NETWORK = 'endorsement-network';
|
|
9708
9708
|
var ATTR_TRANSACTION_ID = "transaction-id"; // API BASE URLs
|
|
9709
9709
|
|
|
9710
|
-
var UTU_API_BASE_URL_PRODUCTION = "https://api.ututrust.com/
|
|
9711
|
-
var UTU_API_BASE_URL_TEST = "https://stage-api.ututrust.com/
|
|
9710
|
+
var UTU_API_BASE_URL_PRODUCTION = "https://api.ututrust.com/";
|
|
9711
|
+
var UTU_API_BASE_URL_TEST = "https://stage-api.ututrust.com/";
|
|
9712
|
+
var CORE_API_BASE = "core-api";
|
|
9713
|
+
var VIDEO_PUBLISHED_BASE = "published-video"; // API resource paths
|
|
9712
9714
|
|
|
9713
9715
|
var API_RANKING = "/ranking";
|
|
9714
9716
|
var API_FEEDBACK = "/feedback";
|
|
@@ -29523,7 +29525,7 @@
|
|
|
29523
29525
|
switch (_context.prev = _context.next) {
|
|
29524
29526
|
case 0:
|
|
29525
29527
|
_context.next = 2;
|
|
29526
|
-
return axios.get("".concat(apiUrl).concat(API_RANKING, "?").concat(queryParams), withAuthorizationHeader(accessToken));
|
|
29528
|
+
return axios.get("".concat(apiUrl).concat(CORE_API_BASE).concat(API_RANKING, "?").concat(queryParams), withAuthorizationHeader(accessToken));
|
|
29527
29529
|
|
|
29528
29530
|
case 2:
|
|
29529
29531
|
response = _context.sent;
|
|
@@ -29553,7 +29555,7 @@
|
|
|
29553
29555
|
var targetCriteria = createEntityCriteria(targetUuid);
|
|
29554
29556
|
|
|
29555
29557
|
var sendFeedback = function sendFeedback(feedbackData) {
|
|
29556
|
-
return axios.post("".concat(apiUrl).concat(API_FEEDBACK), {
|
|
29558
|
+
return axios.post("".concat(apiUrl).concat(CORE_API_BASE).concat(API_FEEDBACK), {
|
|
29557
29559
|
sourceCriteria: sourceCriteria,
|
|
29558
29560
|
targetCriteria: targetCriteria,
|
|
29559
29561
|
transactionId: transactionId,
|
|
@@ -29565,6 +29567,7 @@
|
|
|
29565
29567
|
});
|
|
29566
29568
|
};
|
|
29567
29569
|
|
|
29570
|
+
console.log("".concat(apiUrl).concat(CORE_API_BASE).concat(API_FEEDBACK));
|
|
29568
29571
|
return {
|
|
29569
29572
|
sendFeedback: sendFeedback
|
|
29570
29573
|
};
|
|
@@ -29591,7 +29594,7 @@
|
|
|
29591
29594
|
switch (_context2.prev = _context2.next) {
|
|
29592
29595
|
case 0:
|
|
29593
29596
|
_context2.next = 2;
|
|
29594
|
-
return axios.get("".concat(apiUrl).concat(API_BADGES), withAuthorizationHeader(accessToken));
|
|
29597
|
+
return axios.get("".concat(apiUrl).concat(CORE_API_BASE).concat(API_BADGES), withAuthorizationHeader(accessToken));
|
|
29595
29598
|
|
|
29596
29599
|
case 2:
|
|
29597
29600
|
response = _context2.sent;
|
|
@@ -29638,7 +29641,7 @@
|
|
|
29638
29641
|
switch (_context3.prev = _context3.next) {
|
|
29639
29642
|
case 0:
|
|
29640
29643
|
_context3.next = 2;
|
|
29641
|
-
return axios.get("".concat(apiUrl).concat(API_FEEDBACK_SUMMARY, "?").concat(queryParams), withAuthorizationHeader(accessToken));
|
|
29644
|
+
return axios.get("".concat(apiUrl).concat(CORE_API_BASE).concat(API_FEEDBACK_SUMMARY, "?").concat(queryParams), withAuthorizationHeader(accessToken));
|
|
29642
29645
|
|
|
29643
29646
|
case 2:
|
|
29644
29647
|
response = _context3.sent;
|
|
@@ -29660,7 +29663,7 @@
|
|
|
29660
29663
|
feedbackSummary: feedbackSummary
|
|
29661
29664
|
};
|
|
29662
29665
|
}
|
|
29663
|
-
function useUploadVideoApi(source) {
|
|
29666
|
+
function useUploadVideoApi(apiUrl, source) {
|
|
29664
29667
|
var _useAuth5 = useAuth(),
|
|
29665
29668
|
accessToken = _useAuth5.accessToken;
|
|
29666
29669
|
|
|
@@ -29681,7 +29684,7 @@
|
|
|
29681
29684
|
};
|
|
29682
29685
|
var options = {
|
|
29683
29686
|
resume: false,
|
|
29684
|
-
endpoint: "http://localhost:2080/uploads",
|
|
29687
|
+
endpoint: "http://localhost:2080/uploads" ,
|
|
29685
29688
|
headers: getAuthorizationHeader(accessToken),
|
|
29686
29689
|
chunkSize: 28 * 1024,
|
|
29687
29690
|
uploadLengthDeferred: true,
|
|
@@ -29697,7 +29700,7 @@
|
|
|
29697
29700
|
});
|
|
29698
29701
|
},
|
|
29699
29702
|
onSuccess: function onSuccess() {
|
|
29700
|
-
var publishedVideoUrl = getPublishedVideoUrl(upload.url);
|
|
29703
|
+
var publishedVideoUrl = getPublishedVideoUrl(apiUrl, upload.url);
|
|
29701
29704
|
var checkVideoInterval = setInterval(function () {
|
|
29702
29705
|
axios.head(publishedVideoUrl).then(function () {
|
|
29703
29706
|
setStatus({
|
|
@@ -29726,9 +29729,10 @@
|
|
|
29726
29729
|
return status;
|
|
29727
29730
|
}
|
|
29728
29731
|
|
|
29729
|
-
function getPublishedVideoUrl(uploadUrl) {
|
|
29732
|
+
function getPublishedVideoUrl(apiUrl, uploadUrl) {
|
|
29730
29733
|
var videoId = uploadUrl.split("/").pop();
|
|
29731
|
-
|
|
29734
|
+
var publishedUrl = "".concat("http://localhost:2080/files", "/").concat(videoId) || "".concat(apiUrl).concat(VIDEO_PUBLISHED_BASE).concat(videoId);
|
|
29735
|
+
return publishedUrl;
|
|
29732
29736
|
}
|
|
29733
29737
|
|
|
29734
29738
|
function createEntityCriteria(uuid) {
|
|
@@ -33569,7 +33573,7 @@
|
|
|
33569
33573
|
isDark = _useState2[0],
|
|
33570
33574
|
setIsDark = _useState2[1];
|
|
33571
33575
|
|
|
33572
|
-
var _useState3 = l$1(
|
|
33576
|
+
var _useState3 = l$1(""),
|
|
33573
33577
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
33574
33578
|
txError = _useState4[0],
|
|
33575
33579
|
setTxError = _useState4[1];
|
|
@@ -33584,10 +33588,11 @@
|
|
|
33584
33588
|
var _useForm = useForm(),
|
|
33585
33589
|
register = _useForm.register,
|
|
33586
33590
|
errors = _useForm.errors,
|
|
33587
|
-
handleSubmit = _useForm.handleSubmit; // @ts-
|
|
33591
|
+
handleSubmit = _useForm.handleSubmit; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
33592
|
+
// @ts-ignore
|
|
33588
33593
|
|
|
33589
33594
|
|
|
33590
|
-
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])) return null;
|
|
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;
|
|
33591
33596
|
|
|
33592
33597
|
var switchNetwork = /*#__PURE__*/function () {
|
|
33593
33598
|
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -33596,6 +33601,7 @@
|
|
|
33596
33601
|
while (1) {
|
|
33597
33602
|
switch (_context.prev = _context.next) {
|
|
33598
33603
|
case 0:
|
|
33604
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
33599
33605
|
// @ts-ignore
|
|
33600
33606
|
provider = window.ethereum;
|
|
33601
33607
|
network = String(props[ATTR_ENDORSEMENT_NETWORK]).toLowerCase().trim() || DEFAULT_NETWORK;
|
|
@@ -33637,7 +33643,7 @@
|
|
|
33637
33643
|
}();
|
|
33638
33644
|
|
|
33639
33645
|
var sendTransaction = /*#__PURE__*/function () {
|
|
33640
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(address, amount) {
|
|
33646
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(address, amount, transactionId) {
|
|
33641
33647
|
var web3Provider, signer, wei, contract, transaction;
|
|
33642
33648
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
33643
33649
|
while (1) {
|
|
@@ -33647,6 +33653,7 @@
|
|
|
33647
33653
|
return switchNetwork();
|
|
33648
33654
|
|
|
33649
33655
|
case 2:
|
|
33656
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
33650
33657
|
// @ts-ignore
|
|
33651
33658
|
web3Provider = new Web3Provider(window.ethereum);
|
|
33652
33659
|
signer = web3Provider.getSigner(); // Accounts now exposed
|
|
@@ -33654,7 +33661,7 @@
|
|
|
33654
33661
|
wei = String(Number(amount) * 10e17);
|
|
33655
33662
|
contract = new Contract(UTT_CONTRACT_ADDRESS, abi, signer);
|
|
33656
33663
|
_context2.next = 8;
|
|
33657
|
-
return contract.endorse(address, String(wei));
|
|
33664
|
+
return contract.endorse(address, String(wei), transactionId);
|
|
33658
33665
|
|
|
33659
33666
|
case 8:
|
|
33660
33667
|
transaction = _context2.sent;
|
|
@@ -33672,12 +33679,12 @@
|
|
|
33672
33679
|
}, _callee2);
|
|
33673
33680
|
}));
|
|
33674
33681
|
|
|
33675
|
-
return function sendTransaction(_x, _x2) {
|
|
33682
|
+
return function sendTransaction(_x, _x2, _x3) {
|
|
33676
33683
|
return _ref2.apply(this, arguments);
|
|
33677
33684
|
};
|
|
33678
33685
|
}();
|
|
33679
33686
|
|
|
33680
|
-
function onSubmit(
|
|
33687
|
+
function onSubmit(_x4) {
|
|
33681
33688
|
return _onSubmit.apply(this, arguments);
|
|
33682
33689
|
}
|
|
33683
33690
|
|
|
@@ -33698,23 +33705,21 @@
|
|
|
33698
33705
|
return _context3.abrupt("return");
|
|
33699
33706
|
|
|
33700
33707
|
case 3:
|
|
33701
|
-
setTxError(
|
|
33708
|
+
setTxError("");
|
|
33702
33709
|
_context3.prev = 4;
|
|
33703
33710
|
_context3.next = 7;
|
|
33704
|
-
return sendTransaction(props[ATTR_TARGET_UUID], amount);
|
|
33711
|
+
return sendTransaction(props[ATTR_TARGET_UUID], amount, props[ATTR_TRANSACTION_ID]);
|
|
33705
33712
|
|
|
33706
33713
|
case 7:
|
|
33707
|
-
_context3.next =
|
|
33714
|
+
_context3.next = 12;
|
|
33708
33715
|
break;
|
|
33709
33716
|
|
|
33710
33717
|
case 9:
|
|
33711
33718
|
_context3.prev = 9;
|
|
33712
33719
|
_context3.t0 = _context3["catch"](4);
|
|
33713
|
-
// User denied account access...
|
|
33714
|
-
console.log(_context3.t0);
|
|
33715
33720
|
setTxError(_context3.t0.data ? _context3.t0.data.message : _context3.t0.message);
|
|
33716
33721
|
|
|
33717
|
-
case
|
|
33722
|
+
case 12:
|
|
33718
33723
|
case "end":
|
|
33719
33724
|
return _context3.stop();
|
|
33720
33725
|
}
|
|
@@ -33781,15 +33786,15 @@
|
|
|
33781
33786
|
placeholder: "Your endorsement"
|
|
33782
33787
|
}), v$2("div", {
|
|
33783
33788
|
className: "mt-1 error"
|
|
33784
|
-
}, errors.amount && "* ".concat(showError(errors)))
|
|
33789
|
+
}, errors.amount && "* ".concat(showError(errors))), txError && v$2("div", {
|
|
33790
|
+
className: "mt-1 error"
|
|
33791
|
+
}, txError)), v$2("div", null, v$2("button", {
|
|
33785
33792
|
style: {
|
|
33786
33793
|
backgroundColor: props[ATTR_BTN_COLOR] === undefined ? null : "".concat(props[ATTR_BTN_COLOR])
|
|
33787
33794
|
},
|
|
33788
33795
|
className: "endor-btn btn btn-".concat(envCondition),
|
|
33789
33796
|
type: "submit"
|
|
33790
|
-
}, "Endorse")
|
|
33791
|
-
className: "mt-1 error"
|
|
33792
|
-
}, txError)))));
|
|
33797
|
+
}, "Endorse")))));
|
|
33793
33798
|
}
|
|
33794
33799
|
|
|
33795
33800
|
var preact = createCommonjsModule$1(function (module, exports) {
|
|
@@ -36196,7 +36201,7 @@
|
|
|
36196
36201
|
|
|
36197
36202
|
var e=0;function t(t){return "__private_"+e+++"_"+t}function i(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var r=function(e){this.value=e;},n=t("head"),o=t("end"),u=function(){function e(){Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0});}var t=e.prototype;return t.enqueue=function(e){var t=new r(e);i(this,o)[o]?(i(this,o)[o].next=t,i(this,o)[o]=t):i(this,n)[n]=i(this,o)[o]=t;},t.dequeue=function(){var e=i(this,n)[n];return i(this,n)[n]=null==e?void 0:e.next,i(this,n)[n]||(i(this,o)[o]=void 0),null==e?void 0:e.value},e}();function s(e){return {done:!1,value:e}}var h={done:!0},a=t("chunkQueue"),l=t("resolveQueue"),v=t("isInProgress"),c=t("isLocked"),d=function(){function e(){Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),this.url=null,i(this,a)[a]=new u,i(this,l)[l]=new u,i(this,v)[v]=!0,i(this,c)[c]=!1;}var t=e.prototype;return t.setUrl=function(e){this.url=e;},t.setBlobProperties=function(e){this.blobProperties=e;},t.storeChunk=function(e){i(this,v)[v]=!0;var t=i(this,l)[l].dequeue();t?t(s(e)):i(this,a)[a].enqueue(e);},t.stop=function(){i(this,v)[v]=!1;},t.reset=function(){i(this,v)[v]=!0,i(this,a)[a]=new u,i(this,l)[l]=new u,i(this,c)[c]=!1;},t.getUrl=function(){return this.url},t.getBlob=function(){},t.getReader=function(){if(i(this,c)[c])throw new Error("ReadableStorage is locked.");i(this,c)[c]=!0;var e=this;return {read:function(){var t=i(e,a)[a].dequeue();return t?Promise.resolve(s(t)):i(e,v)[v]?new Promise(function(t){return i(e,l)[l].enqueue(t)}):Promise.resolve(h)}}},e}();
|
|
36198
36203
|
|
|
36199
|
-
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 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}";
|
|
36204
|
+
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}";
|
|
36200
36205
|
styleInject(css_248z$c);
|
|
36201
36206
|
|
|
36202
36207
|
var RangeError$2 = global$1.RangeError; // `String.prototype.repeat` method implementation
|
|
@@ -36887,7 +36892,7 @@
|
|
|
36887
36892
|
facingMode: "user"
|
|
36888
36893
|
};
|
|
36889
36894
|
|
|
36890
|
-
var _useUploadVideoApi = useUploadVideoApi(activeReader),
|
|
36895
|
+
var _useUploadVideoApi = useUploadVideoApi(apiUrl, activeReader),
|
|
36891
36896
|
publishedVideoUrl = _useUploadVideoApi.publishedVideoUrl,
|
|
36892
36897
|
successMessage = _useUploadVideoApi.successMessage,
|
|
36893
36898
|
errorMessage = _useUploadVideoApi.errorMessage;
|