@hippovideo/video-sdk 0.0.0-experimental-36287cf0d6ca-20230530 → 0.0.0-experimental-7c419ae6bbd3-20230530

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.
@@ -4,12 +4,6 @@ object-assign
4
4
  @license MIT
5
5
  */
6
6
 
7
- /*!
8
- Copyright (c) 2018 Jed Watson.
9
- Licensed under the MIT License (MIT), see
10
- http://jedwatson.github.io/classnames
11
- */
12
-
13
7
  /*!
14
8
  * https://github.com/furf/jquery-ui-touch-punch
15
9
  * jQuery UI Touch Punch 0.2.3
@@ -34,35 +28,6 @@ object-assign
34
28
  * jquery.ui.mouse.js
35
29
  */
36
30
 
37
- /*!
38
- * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2020
39
- * @version 1.3.6
40
- *
41
- * Date formatter utility library that allows formatting date/time variables or Date objects using PHP DateTime format.
42
- * This library is a standalone javascript library and does not depend on other libraries or plugins like jQuery. The
43
- * library also adds support for Universal Module Definition (UMD).
44
- *
45
- * @see http://php.net/manual/en/function.date.php
46
- *
47
- * For more JQuery plugins visit http://plugins.krajee.com
48
- * For more Yii related demos visit http://demos.krajee.com
49
- */
50
-
51
- /*!
52
- * @overview es6-promise - a tiny implementation of Promises/A+.
53
- * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
54
- * @license Licensed under MIT license
55
- * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
56
- * @version v4.2.8+1e68dce6
57
- */
58
-
59
- /*!
60
- * Quill Editor v1.3.7
61
- * https://quilljs.com/
62
- * Copyright (c) 2014, Jason Chen
63
- * Copyright (c) 2013, salesforce.com
64
- */
65
-
66
31
  /*!
67
32
  * Sizzle CSS Selector Engine v2.3.6
68
33
  * https://sizzlejs.com/
@@ -88,17 +53,6 @@ object-assign
88
53
  * Licensed MIT © Zeno Rocha
89
54
  */
90
55
 
91
- /*!
92
- * jQuery Color Animations v2.2.0
93
- * https://github.com/jquery/jquery-color
94
- *
95
- * Copyright OpenJS Foundation and other contributors
96
- * Released under the MIT license.
97
- * http://jquery.org/license
98
- *
99
- * Date: Sun May 10 09:02:36 2020 +0200
100
- */
101
-
102
56
  /*!
103
57
  * jQuery JavaScript Library v3.6.0
104
58
  * https://jquery.com/
@@ -162,60 +116,6 @@ object-assign
162
116
  * http://jquery.org/license
163
117
  */
164
118
 
165
- /*!
166
- * jQuery UI Droppable 1.13.2
167
- * http://jqueryui.com
168
- *
169
- * Copyright jQuery Foundation and other contributors
170
- * Released under the MIT license.
171
- * http://jquery.org/license
172
- */
173
-
174
- /*!
175
- * jQuery UI Effects 1.13.2
176
- * http://jqueryui.com
177
- *
178
- * Copyright jQuery Foundation and other contributors
179
- * Released under the MIT license.
180
- * http://jquery.org/license
181
- */
182
-
183
- /*!
184
- * jQuery UI Effects Blind 1.13.2
185
- * http://jqueryui.com
186
- *
187
- * Copyright jQuery Foundation and other contributors
188
- * Released under the MIT license.
189
- * http://jquery.org/license
190
- */
191
-
192
- /*!
193
- * jQuery UI Effects Fade 1.13.2
194
- * http://jqueryui.com
195
- *
196
- * Copyright jQuery Foundation and other contributors
197
- * Released under the MIT license.
198
- * http://jquery.org/license
199
- */
200
-
201
- /*!
202
- * jQuery UI Effects Size 1.13.2
203
- * http://jqueryui.com
204
- *
205
- * Copyright jQuery Foundation and other contributors
206
- * Released under the MIT license.
207
- * http://jquery.org/license
208
- */
209
-
210
- /*!
211
- * jQuery UI Effects Slide 1.13.2
212
- * http://jqueryui.com
213
- *
214
- * Copyright jQuery Foundation and other contributors
215
- * Released under the MIT license.
216
- * http://jquery.org/license
217
- */
218
-
219
119
  /*!
220
120
  * jQuery UI Keycode 1.13.2
221
121
  * http://jqueryui.com
@@ -279,98 +179,6 @@ object-assign
279
179
  * http://jquery.org/license
280
180
  */
281
181
 
282
- /*!
283
- * jQuery Validation Plugin v1.19.5
284
- *
285
- * https://jqueryvalidation.org/
286
- *
287
- * Copyright (c) 2022 Jörn Zaefferer
288
- * Released under the MIT license
289
- */
290
-
291
- /*! *****************************************************************************
292
- Copyright (c) Microsoft Corporation. All rights reserved.
293
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
294
- this file except in compliance with the License. You may obtain a copy of the
295
- License at http://www.apache.org/licenses/LICENSE-2.0
296
-
297
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
298
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
299
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
300
- MERCHANTABLITY OR NON-INFRINGEMENT.
301
-
302
- See the Apache Version 2.0 License for specific language governing permissions
303
- and limitations under the License.
304
- ***************************************************************************** */
305
-
306
- /*! ../demux/demuxer-inline */
307
-
308
- /*! ../demux/demuxer-worker.js */
309
-
310
- /*! ../events */
311
-
312
- /*! ../utils/get-self-scope */
313
-
314
- /*! ../utils/logger */
315
-
316
- /*! ./get-self-scope */
317
-
318
- /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
319
-
320
- /*! DataTables 1.10.18
321
- * ©2008-2018 SpryMedia Ltd - datatables.net/license
322
- */
323
-
324
- /*! DataTables 1.11.3
325
- * ©2008-2021 SpryMedia Ltd - datatables.net/license
326
- */
327
-
328
- /*! DataTables Foundation integration
329
- * ©2011-2015 SpryMedia Ltd - datatables.net/license
330
- */
331
-
332
- /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/eventemitter3/index.js (<- Module is not an ECMAScript module) */
333
-
334
- /*! ModuleConcatenation bailout: Cannot concat with ./node_modules/url-toolkit/src/url-toolkit.js (<- Module is not an ECMAScript module) */
335
-
336
- /*! ModuleConcatenation bailout: Cannot concat with ./src/crypt/decrypter.js because of ./src/demux/demuxer-worker.js */
337
-
338
- /*! ModuleConcatenation bailout: Cannot concat with ./src/crypt/decrypter.js because of ./src/hls.ts */
339
-
340
- /*! ModuleConcatenation bailout: Cannot concat with ./src/demux/demuxer-inline.js because of ./src/demux/demuxer-worker.js */
341
-
342
- /*! ModuleConcatenation bailout: Cannot concat with ./src/demux/id3.js because of ./src/demux/demuxer-worker.js */
343
-
344
- /*! ModuleConcatenation bailout: Cannot concat with ./src/demux/id3.js because of ./src/hls.ts */
345
-
346
- /*! ModuleConcatenation bailout: Cannot concat with ./src/demux/mp4demuxer.js because of ./src/demux/demuxer-worker.js */
347
-
348
- /*! ModuleConcatenation bailout: Cannot concat with ./src/demux/mp4demuxer.js because of ./src/hls.ts */
349
-
350
- /*! ModuleConcatenation bailout: Cannot concat with ./src/errors.ts because of ./src/demux/demuxer-worker.js */
351
-
352
- /*! ModuleConcatenation bailout: Cannot concat with ./src/errors.ts because of ./src/hls.ts */
353
-
354
- /*! ModuleConcatenation bailout: Cannot concat with ./src/events.js because of ./src/demux/demuxer-worker.js */
355
-
356
- /*! ModuleConcatenation bailout: Cannot concat with ./src/events.js because of ./src/hls.ts */
357
-
358
- /*! ModuleConcatenation bailout: Cannot concat with ./src/polyfills/number.js because of ./src/demux/demuxer-worker.js */
359
-
360
- /*! ModuleConcatenation bailout: Cannot concat with ./src/polyfills/number.js because of ./src/hls.ts */
361
-
362
- /*! ModuleConcatenation bailout: Cannot concat with ./src/utils/get-self-scope.js because of ./src/demux/demuxer-worker.js */
363
-
364
- /*! ModuleConcatenation bailout: Cannot concat with ./src/utils/get-self-scope.js because of ./src/hls.ts */
365
-
366
- /*! ModuleConcatenation bailout: Cannot concat with ./src/utils/logger.js because of ./src/demux/demuxer-worker.js */
367
-
368
- /*! ModuleConcatenation bailout: Cannot concat with ./src/utils/logger.js because of ./src/hls.ts */
369
-
370
- /*! ModuleConcatenation bailout: Module is not an ECMAScript module */
371
-
372
- /*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./src/demux/demuxer.js (referenced with require.resolve) */
373
-
374
182
  /*! Player.js - v0.1.0 - 2017-10-24
375
183
  * http://github.com/embedly/player.js
376
184
  * Copyright (c) 2017 Embedly; Licensed BSD */
@@ -379,200 +187,18 @@ and limitations under the License.
379
187
  * http://dustjs.com/
380
188
  * Copyright (c) 2016 Aleksander Williams; Released under the MIT License */
381
189
 
382
- /*! eventemitter3 */
383
-
384
- /*! exports provided: ErrorTypes, ErrorDetails */
385
-
386
- /*! exports provided: default */
387
-
388
- /*! exports provided: default, utf8ArrayToStr */
389
-
390
- /*! exports provided: enableLogs, logger */
391
-
392
- /*! exports provided: getSelfScope */
393
-
394
- /*! exports provided: isFiniteNumber, MAX_SAFE_INTEGER */
395
-
396
190
  /*! https://mths.be/punycode v1.3.2 by @mathias */
397
191
 
398
192
  /*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */
399
193
 
400
- /*! no static exports found */
401
-
402
194
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
403
195
 
404
- /*!***********************!*\
405
- !*** ./src/errors.ts ***!
406
- \***********************/
407
-
408
- /*!***********************!*\
409
- !*** ./src/events.js ***!
410
- \***********************/
411
-
412
- /*!**************************!*\
413
- !*** ./src/demux/id3.js ***!
414
- \**************************/
415
-
416
- /*!*****************************!*\
417
- !*** ./src/utils/logger.js ***!
418
- \*****************************/
419
-
420
- /*!*********************************!*\
421
- !*** ./src/demux/mp4demuxer.js ***!
422
- \*********************************/
423
-
424
- /*!*********************************!*\
425
- !*** ./src/hls.ts + 50 modules ***!
426
- \*********************************/
427
-
428
- /*!*********************************!*\
429
- !*** ./src/polyfills/number.js ***!
430
- \*********************************/
431
-
432
- /*!*************************************!*\
433
- !*** ./src/demux/demuxer-worker.js ***!
434
- \*************************************/
435
-
436
- /*!*************************************!*\
437
- !*** ./src/utils/get-self-scope.js ***!
438
- \*************************************/
439
-
440
- /*!********************************************!*\
441
- !*** ./src/crypt/decrypter.js + 3 modules ***!
442
- \********************************************/
443
-
444
- /*!*********************************************!*\
445
- !*** ./node_modules/eventemitter3/index.js ***!
446
- \*********************************************/
447
-
448
- /*!**************************************************!*\
449
- !*** ./node_modules/webworkify-webpack/index.js ***!
450
- \**************************************************/
451
-
452
- /*!**************************************************!*\
453
- !*** ./src/demux/demuxer-inline.js + 12 modules ***!
454
- \**************************************************/
455
-
456
- /*!*****************************************************!*\
457
- !*** ./node_modules/url-toolkit/src/url-toolkit.js ***!
458
- \*****************************************************/
459
-
460
- /**
461
- * @license
462
- * Copyright 2017 Google Inc.
463
- *
464
- * Licensed under the Apache License, Version 2.0 (the "License");
465
- * you may not use this file except in compliance with the License.
466
- * You may obtain a copy of the License at
467
- *
468
- * http://www.apache.org/licenses/LICENSE-2.0
469
- *
470
- * Unless required by applicable law or agreed to in writing, software
471
- * distributed under the License is distributed on an "AS IS" BASIS,
472
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
473
- * See the License for the specific language governing permissions and
474
- * limitations under the License.
475
- */
476
-
477
- /**
478
- * @license
479
- * Copyright 2017 Google LLC
480
- *
481
- * Licensed under the Apache License, Version 2.0 (the "License");
482
- * you may not use this file except in compliance with the License.
483
- * You may obtain a copy of the License at
484
- *
485
- * http://www.apache.org/licenses/LICENSE-2.0
486
- *
487
- * Unless required by applicable law or agreed to in writing, software
488
- * distributed under the License is distributed on an "AS IS" BASIS,
489
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
490
- * See the License for the specific language governing permissions and
491
- * limitations under the License.
492
- */
493
-
494
- /**
495
- * @license
496
- * Copyright 2018 Google Inc.
497
- *
498
- * Licensed under the Apache License, Version 2.0 (the "License");
499
- * you may not use this file except in compliance with the License.
500
- * You may obtain a copy of the License at
501
- *
502
- * http://www.apache.org/licenses/LICENSE-2.0
503
- *
504
- * Unless required by applicable law or agreed to in writing, software
505
- * distributed under the License is distributed on an "AS IS" BASIS,
506
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
507
- * See the License for the specific language governing permissions and
508
- * limitations under the License.
509
- */
510
-
511
- /**
512
- * @license
513
- * Copyright 2019 Google Inc.
514
- *
515
- * Licensed under the Apache License, Version 2.0 (the "License");
516
- * you may not use this file except in compliance with the License.
517
- * You may obtain a copy of the License at
518
- *
519
- * http://www.apache.org/licenses/LICENSE-2.0
520
- *
521
- * Unless required by applicable law or agreed to in writing, software
522
- * distributed under the License is distributed on an "AS IS" BASIS,
523
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
524
- * See the License for the specific language governing permissions and
525
- * limitations under the License.
526
- */
527
-
528
- /**
529
- * @license Complex.js v2.0.11 11/02/2016
530
- *
531
- * Copyright (c) 2016, Robert Eisele (robert@xarg.org)
532
- * Dual licensed under the MIT or GPL Version 2 licenses.
533
- **/
534
-
535
- /**
536
- * @license Fraction.js v4.0.12 09/09/2015
537
- * http://www.xarg.org/2014/03/rational-numbers-in-javascript/
538
- *
539
- * Copyright (c) 2015, Robert Eisele (robert@xarg.org)
540
- * Dual licensed under the MIT or GPL Version 2 licenses.
541
- **/
542
-
543
196
  /**
544
197
  * @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
545
198
  * Available via the MIT or new BSD license.
546
199
  * see: http://github.com/jrburke/almond for details
547
200
  */
548
201
 
549
- /**
550
- * math.js
551
- * https://github.com/josdejong/mathjs
552
- *
553
- * Math.js is an extensive math library for JavaScript and Node.js,
554
- * It features real and complex numbers, units, matrices, a large set of
555
- * mathematical functions, and a flexible expression parser.
556
- *
557
- * @version 7.1.0
558
- * @date 2020-07-13
559
- *
560
- * @license
561
- * Copyright (C) 2013-2020 Jos de Jong <wjosdejong@gmail.com>
562
- *
563
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
564
- * use this file except in compliance with the License. You may obtain a copy
565
- * of the License at
566
- *
567
- * https://www.apache.org/licenses/LICENSE-2.0
568
- *
569
- * Unless required by applicable law or agreed to in writing, software
570
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
571
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
572
- * License for the specific language governing permissions and limitations under
573
- * the License.
574
- */
575
-
576
202
  /** @license React v0.19.1
577
203
  * scheduler.production.min.js
578
204
  *
@@ -608,27 +234,3 @@ and limitations under the License.
608
234
  * This source code is licensed under the MIT license found in the
609
235
  * LICENSE file in the root directory of this source tree.
610
236
  */
611
-
612
- /** @preserve
613
- * Counter block mode compatible with Dr Brian Gladman fileenc.c
614
- * derived from CryptoJS.mode.CTR
615
- * Jan Hruby jhruby.web@gmail.com
616
- */
617
-
618
- /** @preserve
619
- (c) 2012 by Cédric Mesnil. All rights reserved.
620
-
621
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
622
-
623
- - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
624
- - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
625
-
626
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
627
- */
628
-
629
- /**!
630
- * Sortable 1.15.0
631
- * @author RubaXa <trash@rubaxa.org>
632
- * @author owenm <owen23355@gmail.com>
633
- * @license MIT
634
- */
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "recorder_api.css": "/hv_recorder.css",
3
3
  "recorder_api.js": "/hv_recorder.js",
4
- "kinesis_util-dyn.js": "/188-bundle-hippo-e9pqx5lypdh-b0e470050ed64c1ef410.js",
5
- "697-bundle-hippo-e9pqx5lypdh-js": "/697-bundle-hippo-e9pqx5lypdh-c9c93afb84459f3f11eb.js",
6
- "949-bundle-hippo-e9pqx5lypdh-js": "/949-bundle-hippo-e9pqx5lypdh-ff94c2441c4508c1ccdf.js",
7
- "dash-dyn.js": "/520-bundle-hippo-e9pqx5lypdh-58aa36989fc5762828db.js",
8
- "DownloadRatioRule-dyn.js": "/881-bundle-hippo-e9pqx5lypdh-1e41c84326fac8446b66.js",
9
- "custom_tracking_delivery-dyn.js": "/307-bundle-hippo-e9pqx5lypdh-df96d02d7be681b608e1.js"
4
+ "kinesis_util-dyn.js": "/188-bundle-hippo-wnc6mcn911-1036786bf949fd672026.js",
5
+ "697-bundle-hippo-wnc6mcn911-js": "/697-bundle-hippo-wnc6mcn911-b0d8971a5c657b55f78a.js",
6
+ "617-bundle-hippo-wnc6mcn911-js": "/617-bundle-hippo-wnc6mcn911-31236a6ebf8563294331.js",
7
+ "dash-dyn.js": "/520-bundle-hippo-wnc6mcn911-d649afed109229af01af.js",
8
+ "DownloadRatioRule-dyn.js": "/881-bundle-hippo-wnc6mcn911-1e41c84326fac8446b66.js",
9
+ "hls-dyn.js": "/245-bundle-hippo-wnc6mcn911-2c804883a63b0d60ceed.js",
10
+ "232-bundle-hippo-wnc6mcn911-js": "/232-bundle-hippo-wnc6mcn911-6a479bccb22e87f886e8.js"
10
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hippovideo/video-sdk",
3
- "version": "0.0.0-experimental-36287cf0d6ca-20230530",
3
+ "version": "0.0.0-experimental-7c419ae6bbd3-20230530",
4
4
  "description": "",
5
5
  "main": "app/hv_recorder.js",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[188],{32125:function(e,t,i){i.r(t);var a=i(85614),n=i.n(a),s=i(65759),o=i(96814),r=i.n(o),l=i(98405),d=i.n(l),p=i(64542),c=i.n(p),y=i(80300);let _={},u={},m={},T={},S={},A=[],k={},g={};g[n().analytics.VIDEO_STATS]={seconds:10,calls:20},g[n().analytics.FIRST_FRAME_LOAD]={calls:1},g[n().analytics.UPDATE_BANDWIDTH]={calls:1},g[n().analytics.CLOSE_EVENT]={calls:1};let D={};D[n().kinesisDataStreamType.VIDEO_ANALYTICS]=JSON.parse(s).videoAnalyticsIdentity,D[n().kinesisDataStreamType.VIDEO_PAGE_REPORTS]=JSON.parse(s).videoAnalyticsIdentity,D[n().kinesisDataStreamType.PERFORMANCE_STATS]=JSON.parse(s).metricLogIdentity;let O={};O[n().kinesisDataStreamType.VIDEO_ANALYTICS]=JSON.parse(s).videoAnalyticsFallback,O[n().kinesisDataStreamType.VIDEO_PAGE_REPORTS]=JSON.parse(s).videoAnalyticsFallback;let R=1e3*(window.HippoVideo&&window.HippoVideo.AppRegistry&&window.HippoVideo.AppRegistry.KinesisApiTimeout?Number(window.HippoVideo.AppRegistry.KinesisApiTimeout):10);window.onbeforeunload=()=>{for(let e in _)try{_[e].clearCachedId()}catch(e){}};let f={setAnalayticsCognito(e,t){if(e&&t)try{if(_[e])try{_[e].clearCachedId()}catch(e){}_[e]=new(c())({IdentityId:t.identity_id,Logins:{"cognito-identity.amazonaws.com":t.token}},{region:t.region,httpOptions:{timeout:R}}),S[e]=t.stream_name,u[e]=t.region,T[e]=t.bean_stalk_environment,m[e]=null,this._initKinesis(e)}catch(e){console.log(e)}},pushRecord(e,t,i,a){if(!this.isValidKinesisRequest(i))return;a=null==a||a,i.stream_type=e,T[e]&&(i.bean_stalk_environment=T[e]),"HippoVideo"in window&&HippoVideo.Delivery.visitorId&&(i.visitor_id=HippoVideo.Delivery.visitorId),i.recordCreatedTime=(new Date).getTime()/1e3,i.recordCreatedFrom="client";let n=this;_[e]?n._pushRecord(e,t,i,a,(e=>{}),(s=>{n._refreshToken(e,i,(s=>{n.setAnalayticsCognito(e,s),n._pushRecord(e,t,i,a,(e=>{}),(a=>{n._fallback(e,t,i)}))}),(a=>{n._fallback(e,t,i)}))})):n._fallback(e,t,i)},isValidKinesisRequest(e){if(!g[e.type])return!0;let t=e.video_uuid?e.video_uuid:e.page_uuid;if(t){if(k[t]&&k[t][e.type])return!1;let i=(new Date).getTime(),a=g[e.type].seconds?i-1e3*g[e.type].seconds:0;return A.filter((i=>i.id==t&&i.type==e.type&&i.time>a)).length>g[e.type].calls?(k[t]||(k[t]={}),k[t][e.type]=!0,!1):(A.push({id:t,type:e.type,time:i}),!0)}return!1},_refreshToken(e,t,i,a){let s=D[e],o={};e==n().kinesisDataStreamType.VIDEO_ANALYTICS?o.token=t.token:e!=n().kinesisDataStreamType.VIDEO_PAGE_REPORTS&&e!=n().kinesisDataStreamType.PERFORMANCE_STATS||(o.page_id=t.page_id),y.default.call({method:"POST",url:s,data:o,success:e=>{e.status?i(e):a&&a()},error:a})},_pushRecord(e,t,i,a,n,s){if(m[e]){m[e].config.update({httpOptions:{xhrAsync:a}});let o={Data:JSON.stringify(i),PartitionKey:String(t),StreamName:S[e]};m[e].putRecord(o,((e,t)=>{e?s&&s(e):n(t)}))}else s&&s()},_initKinesis(e){m[e]||(m[e]=new(r())({credentials:_[e],region:u[e],httpOptions:{timeout:R}}))},_fallback(e,t,i){let a=O[e];if(a){let s={data:i,partition_key:t};e==n().kinesisDataStreamType.VIDEO_ANALYTICS?s.token=i.token:e==n().kinesisDataStreamType.VIDEO_PAGE_REPORTS&&(s.page_id=i.page_id),y.default.call({method:"POST",url:a,data:s,success:e=>{},error:e=>{}})}},pushRecordToDeliveryStream(e,t,i){let a={...e};var n={DeliveryStreamName:t,Record:{Data:"_"+HippoVideo.getZuluTimeInUTC()+"_\t"+JSON.stringify(i)}};new(d())({region:"us-east-1",credentials:new(c())({IdentityId:a.identity_id,Logins:{"cognito-identity.amazonaws.com":a.token}}),httpOptions:{timeout:R}}).putRecord(n,(function(e,t){e?console.log(e,e.stack):console.log(t)}))}};t.default=f}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[307],{83223:function(e,t,a){var r,i;r=[a(45925),a(26619),a(79903),a(24417),a(85614),a(19755),a(13919),a(72316)],void 0===(i=function(e,t,a,r,i,d,n,c){return c.View.extend({el:d("#wizDelivery"),initialize:function(t){this.assetId=t.assetId,this._handleTrackerTimeupdate=this._handleTrackerTimeupdate.bind(this),this.added=!1,this.videoModel=new e,this.videoPlayerView=t.videoPlayerView,this.data=t.data,this.render()},render:function(){this.added=[];for(var e=0;e<this.data.length;e++){var c=this.data[e];this.added[c.tracking_id]=0,c.time_to_load||(this.added[c.tracking_id]=1,c.tracker==i.customTrackers.PIXEL?d(t(n.extend({},{pixel_tags:c.tags,pixel_tracker_id:c.tracking_id}))).appendTo(document.head):c.tracker==i.customTrackers.GA?d(a(n.extend({},{ga_tags:c.tags,ga_tracker_id:c.tracking_id}))).appendTo(document.head):c.tracker==i.customTrackers.LUCKY_ORANGE&&d(r(n.extend({},{lucky_orange_tracker_id:c.tracking_id}))).appendTo(document.head))}},_handleTrackerTimeupdate:function(e){for(var c=0;c<this.data.length;c++){var s=this.data[c];s.time_to_load&&!this.added[s.tracking_id]&&s.time_to_load<Math.round(this.videoPlayerView.mediaPlayer.currentTime)&&(this.added[s.tracking_id]=1,s.tracker==i.customTrackers.PIXEL?d(t(n.extend({},{pixel_tags:s.tags,pixel_tracker_id:s.tracking_id}))).appendTo(document.head):s.tracker==i.customTrackers.GA?d(a(n.extend({},{ga_tags:s.tags,ga_tracker_id:s.tracking_id}))).appendTo(document.head):s.tracker==i.customTrackers.LUCKY_ORANGE&&d(r(n.extend({},{lucky_orange_tracker_id:s.tracking_id}))).appendTo(document.head))}c+1==this.data.length&&this.videoPlayerView.mediaPlayer.addEventListener("timeupdate",this._handleTrackerTimeupdate,!1)},destroy:function(){this.undelegateEvents()}})}.apply(t,r))||(e.exports=i)},24417:function(e,t,a){var r,i;r=[a(11329),a(68446)],void 0===(i=function(e,t){return function(e){function t(e,t){return e.w("<script type='text/javascript'>window.__lo_site_id = ").f(t.get(["lucky_orange_tracker_id"],!1),t,"h").w(" || [];(function () {var wa = document.createElement('script'); wa.type = 'text/javascript'; wa.async = true;wa.src = 'https://d10lpsik1i8c69.cloudfront.net/w.js';var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wa, s);})();<\/script>")}e.register("templates/delivery/lucky_orange_tracker",t),t.__dustBody=!0}(e),function(t,a){var r;return e.render("templates/delivery/lucky_orange_tracker",t,(function(e,t){if("function"==typeof a)try{a(e,t)}catch(e){}if(e)throw e;r=t})),r}}.apply(t,r))||(e.exports=i)}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[949],{71854:function(t,e,i){var n,o;n=[i(11329),i(68446)],void 0===(o=function(t,e){return function(t){function e(t,e){return t.w('<div class="simple-edit-container hide ').x(e.get(["integrationType"],!1),e,{block:i},{}).w('"><div class="simple-edit-controls"><div class="se-control-detail default-control-detail clearfix hide"><span class="info-text"></span></div>').h("ne",e,{block:n},{key:e.get(["trim"],!1),value:"false"},"h").h("ne",e,{block:l},{key:e.get(["crop"],!1),value:"false"},"h").h("ne",e,{block:a},{key:e.get(["image"],!1),value:"false"},"h").h("ne",e,{block:p},{key:e.get(["text"],!1),value:"false"},"h").h("ne",e,{block:v},{key:e.get(["stickers"],!1),value:"false"},"h").h("ne",e,{block:h},{key:e.get(["callout"],!1),value:"false"},"h").h("ne",e,{block:k},{key:e.get(["blur"],!1),value:"false"},"h").h("ne",e,{block:_},{key:e.get(["resize"],!1),value:"false"},"h").w('<div class="simple-edit-buttons-box ').x(e.get(["integrationType"],!1),e,{block:E},{}).w('">').h("ne",e,{block:B},{key:e.get(["trim"],!1),value:"false"},"h").h("ne",e,{block:z},{key:e.get(["crop"],!1),value:"false"},"h").nx(e.get(["fromQuickRecord"],!1),e,{block:T},{}).h("ne",e,{block:R},{key:e.get(["stickers"],!1),value:"false"},"h").h("ne",e,{block:O},{key:e.get(["callouts"],!1),value:"false"},"h").h("ne",e,{block:j},{key:e.get(["blur"],!1),value:"false"},"h").h("ne",e,{block:H},{key:e.get(["resize"],!1),value:"false"},"h").w('</div></div></div><div class="modal-backdrop image-upload-progress-container" id="imageUploadProgessContainer"><div class="text-center loading-container"><div class="progress-text" id="imageUploadProgressText"> </div></div></div>')}function i(t,e){return t.f(e.get(["integrationType"],!1),e,"h").w("-simple-edit")}function n(t,e){return t.w('<div class="se-control-detail clearfix trim-control-detail hide"><img class="ruler ruler-static" src="').f(e.get(["origin"],!1),e,"h").w('/img/ruler-two.png"><canvas class="ruler ruler-dynamic hide" width="1000" height="15"></canvas><input type="text" class="sliderValue" style="display:none" data-index="0" value="0" /><input type="text" class="sliderValue" style="display:none" data-index="1" value="0" /><div class="trim-slider" id="trimSlider"></div>').h("ne",e,{block:o},{key:e.get(["shouldHideTrimTimer"],!1),value:"true"},"h").w('<div class="trim-preview-container"><video class="trim-preview-video"></video></div><div class="preview-trim-arrow"></div></div>')}function o(t,e){return t.w('<div class="trim-before-container"><div class="trim-before-time-element"><div class="arrow right-arrow"></div><span class="trim-before-time"></span></div><div class="trim-before-pop"><span>').f(e.getPath(!1,["simpleEdit","trimStartTime"]),e,"h").w('</span><input type="text" class="trim-before-input"><div class="before-trim-div"><div class="arrow up-arrow trim-input-btn trim-input-btn-plus"></div><div class="arrow down-arrow trim-input-btn trim-input-btn-minus"></div></div><div class="trim-arrow"></div></div></div><div class="trim-after-container"><div class="trim-after-time-element"><div class="arrow left-arrow"></div><span class="trim-after-time"></span></div><div class="trim-after-pop"><span>').f(e.getPath(!1,["simpleEdit","trimEndTime"]),e,"h").w('</span><input type="text" class="trim-after-input"><div class="after-trim-div"><div class="arrow up-arrow trim-input-btn trim-input-btn-plus"></div><div class="arrow down-arrow trim-input-btn trim-input-btn-minus"></div></div><div class="trim-arrow"></div></div></div>')}function l(t,e){return t.w('<div class="se-control-detail clearfix crop-control-detail hide"><div class="pull-left reposition-webcam-container"><input type="checkbox" class="reposition-webcam wiz-checkbox-blue" id="move" checked /><label for="move">').f(e.getPath(!1,["simpleEdit","moveWebcam"]),e,"h").w('</label></div><div class="pull-right text-right"><a class="apply-crop apply-btn" id="cropApplyBtn">').f(e.getPath(!1,["simpleEdit","apply"]),e,"h").w('</a><a class="reset-crop reset-btn" id="cropResetBtn">').f(e.getPath(!1,["simpleEdit","reset"]),e,"h").w("</a></div></div>")}function a(t,e){return t.w('<div class="se-control-detail clearfix addimage-control-detail hide">').nx(e.get(["fromQuickRecord"],!1),e,{else:r,block:d},{}).w('<div class="addimage-selected hide"><div class="left"><input type="checkbox" class="wiz-checkbox-blue" id="imageArLock" checked /><label for="imageArLock" class="image-ar-lock">').f(e.getPath(!1,["simpleEdit","lockAspectRatioResize"]),e,"h").w('</label></div><div class="left opacity-container"><span class="left">').f(e.getPath(!1,["simpleEdit","opacity"]),e,"h").w('</span><input class="left slider" type="range" min="0" max="100" id="imageOpacitySlider"><input class="left slider-ip" type="number" min="0" max="100" value="100" id="imageOpacityInput"></div><div class="right delete-btn-container"><div id="deleteImage" class="delete-btn">').f(e.getPath(!1,["simpleEdit","delete"]),e,"h").w("</div></div></div></div>")}function r(t,e){return t.w('\x3c!-- new quick record flow personalization --\x3e<div class="addimage-initial cpv-personalization hide"><div class="add-image-action left add-text hide">\t<img src="').f(e.get(["origin"],!1),e,"h").w('/svg/plus-ico-blue.svg"/><span id="addTextLink">\t').f(e.getPath(!1,["simpleEdit","addText"]),e,"h").w('\t</span>\t</div><div class="add-image-action left" id="addImageBtn"><img src="').f(e.get(["origin"],!1),e,"h").w('/svg/plus-ico-blue.svg"/><span>').f(e.getPath(!1,["simpleEdit","addImage"]),e,"h").w("</span></div>").x(e.get(["canShowPersonalization"],!1),e,{block:s},{}).w("</div>\x3c!-- end of new quick record flow personalization --\x3e")}function s(t,e){return t.w('<div class="add-image-action left" id="addPersonalizedImageBtn"><img src="').f(e.get(["origin"],!1),e,"h").w('/svg/plus-ico-blue.svg"/><span>').f(e.getPath(!1,["simpleEdit","addPersonalizedImage"]),e,"h").w('</span></div><div class="add-image-action left" id="addWebsiteImageBtn"><img src="').f(e.get(["origin"],!1),e,"h").w('/svg/plus-ico-blue.svg"/><span>').f(e.getPath(!1,["simpleEdit","addWebsiteImage"]),e,"h").w("</span></div>")}function d(t,e){return t.w('<div class="addimage-initial hide"><div class="add-image-action left add-text hide">\t<span id="addTextLink">\t').f(e.getPath(!1,["simpleEdit","addText"]),e,"h").w('\t</span>\t</div><div class="add-image-action left" id="addImageBtn"><span>').f(e.getPath(!1,["simpleEdit","addImage"]),e,"h").w("</span></div>").x(e.get(["canShowPersonalization"],!1),e,{block:c},{}).w("</div>")}function c(t,e){return t.w('<div class="add-image-action left" id="addPersonalizedImageBtn"><span>').f(e.getPath(!1,["simpleEdit","addPersonalizedImage"]),e,"h").w('</span></div><div class="left add-image-tooltip"><img src="').f(e.get(["origin"],!1),e,"h").w('/img/help.png"><div class="add-image-tooltip-content">').f(e.getPath(!1,["simpleEdit","addImageInfo"]),e,"h").w('<a href="https://help.hippovideo.io/support/solutions/articles/19000100178-image-personalization" target="_blank">').f(e.getPath(!1,["simpleEdit","learnMore"]),e,"h").w('</a></div></div><div class="add-image-action left" id="addWebsiteImageBtn"><span>').f(e.getPath(!1,["simpleEdit","addWebsiteImage"]),e,"h").w('</span></div><div class="left add-image-tooltip"><img src="').f(e.get(["origin"],!1),e,"h").w('/img/help.png"><div class="add-image-tooltip-content">').f(e.getPath(!1,["simpleEdit","addWebsiteImageInfo"]),e,"h").w('<a href="https://help.hippovideo.io/support/solutions/articles/19000100178-image-personalization" target="_blank">').f(e.getPath(!1,["simpleEdit","learnMore"]),e,"h").w("</a></div></div>")}function p(t,e){return t.w('<div class="se-control-detail clearfix addtext-control-detail hide"><div class="addtext-container"><div id="textPropertiesTab" style="display:none" class="sdk-top-wrap"><div class="sdk-text-wrap"><div class="padding-face se-font mf-custom-selector"><select class="se-text-properties se-font-selector"></select></div><div class="padding-face se-fontsize mf-custom-selector"><select class="se-text-properties se-fontsize-selector"><option value="15">15px</option><option value="17">17px</option><option value="20">20px</option><option value="25">25px</option><option value="35">35px</option><option value="40" selected>40px</option><option value="50">50px</option><option value="60">60px</option><option value="70">70px</option><option value="90">90px</option><option value="110">110px</option></select></div><div class="padding-face alignment-selector"><select class="se-text-properties se-textalign-selector"><option value="left">').f(e.getPath(!1,["simpleEdit","left"]),e,"h").w('</option><option value="center" selected>').f(e.getPath(!1,["simpleEdit","center"]),e,"h").w('</option><option value="right">').f(e.getPath(!1,["simpleEdit","right"]),e,"h").w('</option></select></div></div><div class="sdk-textstyle-wrap"><div class="se-bold-face"><input type="checkbox" id="c1" class="se-text-properties se-bold-toggle chk-btn" /><label for=\'c1\'><b>B</b></label></div><div class="italic-face"><input type="checkbox" id="c2" class="se-text-properties se-italic-toggle chk-btn" /><label for=\'c2\'><i>I</i></label></div><div class=""><div class="padding-face color-picker"><input type = "color" class="se-text-properties se-color-choose se-color-selector"/></div></div></div></div><div class="padding-face for-merge-field"><div class="mf-custom-selector mf-custom-selector-button merge-field-container">').x(e.get(["canShowPersonalization"],!1),e,{block:u},{}).w('</div><div class="padding-face se-add-text-btn text-right"><a class="add-text" id="addTextLink"><img src="').h("eq",e,{else:m,block:g},{key:e.get(["integrationType"],!1),value:"lessonly"},"h").w('" alt="plus" />').f(e.getPath(!1,["simpleEdit","addText"]),e,"h").w("</a></div></div></div></div>")}function u(t,e){return t.w('<div class="mf-selector"><select id="seMfSelector"><option selected>').f(e.getPath(!1,["simpleEdit","mergeFields"]),e,"h").w("</option>").s(e.get(["mfValues"],!1),e,{block:f},{}).w('</select></div><div class="text-right mf-label"><label><div><span class="mf-info-tooltip">').f(e.getPath(!1,["simpleEdit","mfInfoTooltip"]),e,"h").w('</span><img src="').f(e.get(["origin"],!1),e,"h").w('/svg/help1.svg" /></div></label></div>')}function f(t,e){return t.w("<option>").f(e.get(["mf"],!1),e,"h").w("</option>")}function m(t,e){return t.f(e.get(["origin"],!1),e,"h").w("/img/small-plus.png")}function g(t,e){return t.w("/img/small-plus-4a90e2.png")}function v(t,e){return t.w('<div class="se-control-detail clearfix addsticker-control-detail hide"><div class="addsticker-initial hide"><div class="sticker-btn-container clearfix"></div></div><div class="addsticker-selected hide"><div class=""><input type="checkbox" class="lock-aspect-ratio sticker-control wiz-checkbox-blue" id="sticker-lock" checked /><label for="sticker-lock">').f(e.getPath(!1,["simpleEdit","lockAspectRatioResize"]),e,"h").w('</label></div><div class=""><div class="text-right"><span>').f(e.getPath(!1,["simpleEdit","opacity"]),e,"h").w('</span></div><div class=""><select class="opacity-val sticker-control"><option value="0">0</option><option value="25">25</option><option value="50">50</option><option value="75">75</option><option value="100">100</option></select></div></div><div class="text-right"><a class="delete-sticker delete-label" id="deleteSticker">').f(e.getPath(!1,["simpleEdit","delete"]),e,"h").w("</a></div></div></div>")}function h(t,e){return t.w('<div class="se-control-detail clearfix addcallout-control-detail hide"><div class="addcallout-initial clearfix hide"><img class="callout-scroll-left pull-left" src="').h("eq",e,{else:b,block:w},{key:e.get(["integrationType"],!1),value:"lessonly"},"h").w('"><div class="callout-btn-scroll-container pull-left"><div class="callout-btn-container"></div></div><img class="callout-scroll-right pull-right" src="').h("eq",e,{else:x,block:y},{key:e.get(["integrationType"],!1),value:"lessonly"},"h").w('"><div class="callout-scroll-hide-layer"></div></div><div class="addcallout-selected hide"><div class=""><input type="checkbox" class="lock-aspect-ratio callout-control wiz-checkbox-blue" id="callout-lock" checked /><label for="callout-lock">').f(e.getPath(!1,["simpleEdit","lockAspectRatioResize"]),e,"h").w('</label></div><div class="se-callout-internal"><div class=""><span>').f(e.getPath(!1,["simpleEdit","opacity"]),e,"h").w('</span></div><div class=""><select class="opacity-val callout-control"><option value="0">0</option><option value="25">25</option><option value="50">50</option><option value="75">75</option><option value="100" selected>100</option></select></div></div><div class="se-callout-internal"><div class=""><span>').f(e.getPath(!1,["simpleEdit","color"]),e,"h").w('</span></div><div class=""><select class="callout-control callout-variation"><option value="0">').f(e.getPath(!1,["simpleEdit","default"]),e,"h").w('</option><option value="1">').f(e.getPath(!1,["simpleEdit","yellow"]),e,"h").w('</option><option value="2">').f(e.getPath(!1,["simpleEdit","orange"]),e,"h").w('</option><option value="3">').f(e.getPath(!1,["simpleEdit","green"]),e,"h").w('</option><option value="4">').f(e.getPath(!1,["simpleEdit","violet"]),e,"h").w('</option><option value="5">').f(e.getPath(!1,["simpleEdit","blue"]),e,"h").w('</option><option value="6">').f(e.getPath(!1,["simpleEdit","dark"]),e,"h").w('</option><option value="7">').f(e.getPath(!1,["simpleEdit","white"]),e,"h").w('</option></select></div></div><div class="text-right"><a class="delete-callout delete-label" id="deleteCallout">').f(e.getPath(!1,["simpleEdit","delete"]),e,"h").w("</a></div></div></div>")}function b(t,e){return t.f(e.get(["origin"],!1),e,"h").w("/img/sli-aro-left.png")}function w(t,e){return t.w("/img/sli-aro-left-4a90e2.png")}function x(t,e){return t.f(e.get(["origin"],!1),e,"h").w("/img/sli-aro-right.png")}function y(t,e){return t.w("/img/sli-aro-right-4a90e2.png")}function k(t,e){return t.w('<div class="se-control-detail clearfix blur-control-detail text-left hide"><div class="blur-initial hide" id="blurInitial">').f(e.getPath(!1,["simpleEdit","blurDescription"]),e,"h").w('<div class="outline-btn pull-right" id="applyBlur"> ').f(e.getPath(!1,["simpleEdit","addNewBlur"]),e,"h").w(' </div></div><div class="blur-selected clearfix hide" id="blurSelected"><div class="pull-left"><input type="checkbox" class="lock-aspect-ratio blur-control wiz-checkbox-blue" id="blurLock" /><label for="blurLock">').f(e.getPath(!1,["simpleEdit","lockAspectRatioResize"]),e,"h").w('</label></div><div class="pull-left content-box"><div class="props-label pull-left"><span> ').f(e.getPath(!1,["simpleEdit","strength"]),e,"h").w(' </span></div><div class="pull-left"><div class="blur-control" id="blurStrength"></div></div><div class="pull-left"><input type="number" step="1" min="0" max="100" value="25" class="blur-input" id="blurStrengthText" /></div></div><div class="pull-right text-right content-box"><a class="delete-blur delete-label" id="deleteblur">').f(e.getPath(!1,["simpleEdit","delete"]),e,"h").w("</a></div></div></div>")}function _(t,e){return t.w('<div class="se-resize-control-detail hide"><div class="se-control-detail clearfix primaryvid-control-detail hide"><input type="checkbox" class="lock-aspect-ratio primary-vid-control wiz-checkbox-blue" id="lock-three" checked /><label for="lock-three" class="cursor-pointer" >').f(e.getPath(!1,["simpleEdit","lockAspectRatioResize"]),e,"h").w('</label></div><div class="se-control-detail clearfix secondaryvid-control-detail hide"><input type="checkbox" class="lock-aspect-ratio secondary-vid-control wiz-checkbox-blue" id="lock-four" checked /><label for="lock-four">').f(e.getPath(!1,["simpleEdit","lockAspectRatioResize"]),e,"h").w("</label></div></div>")}function E(t,e){return t.f(e.get(["integrationType"],!1),e,"h").w("-se-icon-sprite")}function B(t,e){return t.w('<div class="wiz-simple-edit-btn trim-btn ').x(e.get(["isHideTrim"],!1),e,{block:P},{}).w('" id="trimBtn" tooltip="').f(e.getPath(!1,["simpleEdit","trim"]),e,"h").w('" tooltip-position="bottom"><span class="simple-edit-trim"></span></div>')}function P(t,e){return t.w(" disp-none ")}function z(t,e){return t.w('<div class="wiz-simple-edit-btn crop-btn ').x(e.get(["isHideCorp"],!1),e,{block:C},{}).w('" id="cropBtn" tooltip="').f(e.getPath(!1,["simpleEdit","crop"]),e,"h").w('" tooltip-position="bottom"><span class="simple-edit-crop"></span></div>')}function C(t,e){return t.w(" disp-none ")}function T(t,e){return t.h("ne",e,{block:I},{key:e.get(["text"],!1),value:"false"},"h").h("ne",e,{block:D},{key:e.get(["image"],!1),value:"false"},"h")}function I(t,e){return t.w('<div class="wiz-simple-edit-btn add-text-btn" id="addTextBtn" tooltip="').f(e.getPath(!1,["simpleEdit","text"]),e,"h").w('" tooltip-position="bottom"><span class="simple-edit-text"></span></div>')}function D(t,e){return t.w('<div class="wiz-simple-edit-btn add-image-btn" id="addImageMenuBtn" tooltip="').f(e.getPath(!1,["simpleEdit","image"]),e,"h").w('" tooltip-position="bottom"><span class="simple-edit-image-personalisation"></span></div>')}function R(t,e){return t.w('<div class="wiz-simple-edit-btn add-stickers-btn ').x(e.get(["isHideStickers"],!1),e,{block:S},{}).w('" id="addStickersBtn" tooltip="').f(e.getPath(!1,["simpleEdit","emoji"]),e,"h").w('" tooltip-position="bottom"><span class="simple-edit-sticker"></span></div>')}function S(t,e){return t.w(" disp-none ")}function O(t,e){return t.w('<div class="wiz-simple-edit-btn add-callouts-btn ').x(e.get(["isHideCallouts"],!1),e,{block:A},{}).w('" id="addCalloutsBtn" tooltip="').f(e.getPath(!1,["simpleEdit","callout"]),e,"h").w('" tooltip-position="bottom"><span class="simple-edit-callout"></span></div>')}function A(t,e){return t.w(" disp-none ")}function j(t,e){return t.w('<div class="wiz-simple-edit-btn add-blur-btn ').x(e.get(["isHideBlur"],!1),e,{block:L},{}).w('" id="blurBtn" tooltip="').f(e.getPath(!1,["simpleEdit","blur"]),e,"h").w('" tooltip-position="bottom"><span class="simple-edit-blur"></span></div>')}function L(t,e){return t.w(" disp-none ")}function H(t,e){return t.w('<div class="wiz-simple-edit-btn resize-draggable-btn ').x(e.get(["isResizableNotAllowed"],!1),e,{block:M},{}).w('" id="resizeDragBtn" tooltip="').f(e.getPath(!1,["simpleEdit","resize"]),e,"h").w('" tooltip-position="bottom"><span class="simple-edit-resize"></span></div>')}function M(t,e){return t.w(" disp-none ")}t.register("templates/simple_edit/sdk_controls",e),e.__dustBody=!0,i.__dustBody=!0,n.__dustBody=!0,o.__dustBody=!0,l.__dustBody=!0,a.__dustBody=!0,r.__dustBody=!0,s.__dustBody=!0,d.__dustBody=!0,c.__dustBody=!0,p.__dustBody=!0,u.__dustBody=!0,f.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,v.__dustBody=!0,h.__dustBody=!0,b.__dustBody=!0,w.__dustBody=!0,x.__dustBody=!0,y.__dustBody=!0,k.__dustBody=!0,_.__dustBody=!0,E.__dustBody=!0,B.__dustBody=!0,P.__dustBody=!0,z.__dustBody=!0,C.__dustBody=!0,T.__dustBody=!0,I.__dustBody=!0,D.__dustBody=!0,R.__dustBody=!0,S.__dustBody=!0,O.__dustBody=!0,A.__dustBody=!0,j.__dustBody=!0,L.__dustBody=!0,H.__dustBody=!0,M.__dustBody=!0}(t),function(e,i){var n;return t.render("templates/simple_edit/sdk_controls",e,(function(t,e){if("function"==typeof i)try{i(t,e)}catch(t){}if(t)throw t;n=e})),n}}.apply(e,n))||(t.exports=o)},24949:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return k}}),i(82526),i(41817),i(41539),i(32165),i(66992),i(78783),i(33948),i(47042),i(39714),i(68309),i(91038),i(74916),i(47941),i(57327),i(38880),i(54747),i(49337);var n,o=i(4942),l=i(71002),a=i(67294),r=i(95180),s=i(71854),d=i.n(s),c=i(85614),p=i.n(c),u=i(46044),f=i(40985),m=i.n(f),g=i(30168),v=i(61233).ZP.div(n||(n=(0,g.Z)(["\n width: ",";\n margin-top: ",';\n margin-left: auto;\n margin-right: auto;\n\n /* Because the css of image-upload-progress-container is not defined properly and you will need to import entire wiz-delivery.scss file for this to work */\n .image-upload-progress-container {\n display: none;\n }\n margin-top: 0;\n .simple-edit-container .addcallout-control-detail .callout-scroll-hide-layer{\n height: 12px;\n background-color: #262B37;\n }\n .simple-edit-container{\n .simple-edit-controls{\n position: relative;\n display: flex;\n flex-direction: row;\n align-items: center;\n padding-bottom: 36px;\n min-height: 136px;\n background-color: #262B37 !important;\n border: 1px solid #414B5C !important;\n .se-control-detail, .se-resize-control-detail{\n width: 100%;\n }\n .simple-edit-buttons-box{\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n background-color: #2E3542 !important;\n .wiz-simple-edit-btn{\n width: 38px;\n height: 32px;\n margin: 0 10px;\n padding-top: 3px;\n background-color: transparent !important;\n span{\n margin: 0;\n }\n }\n .se-control-selected{\n background-color: #222832 !important;\n border: 1px solid #404856;\n border-radius: 4px;\n }\n }\n .trim-control-detail{\n position: relative;\n align-self: flex-start;\n font-size: 0;\n .trim-slider{\n margin-top: 0 !important;\n background-color: #3B3A47 !important;\n .ui-slider-handle{\n margin-top: 0 !important;\n &:nth-child(3){\n transform: translateX(-10px);\n &:before{\n margin-left: 0 !important;\n }\n }\n }\n }\n .ui-slider-range{\n background-color: rgba(255, 255, 255, 0.3) !important;\n border-radius: 4px;\n }\n .trim-preview-container{\n top: 0;\n margin-top: -50px;\n transform: translateY(-100%);\n }\n .preview-trim-arrow{\n top: 0;\n margin-top: -50px;\n }\n .ruler{\n filter: invert(1);\n margin-top: 0 !important;\n }\n }\n .crop-control-detail{\n overflow: hidden;\n .reposition-webcam-container{\n label{\n margin-left: 8px;\n padding-top: 0;\n color: #C7CBD7;\n &:before{\n top: 0;\n }\n &:after{\n top: 3px;\n }\n }\n input{\n margin-top: 1px;\n vertical-align: top;\n }\n }\n .text-right{\n .apply-btn{\n color: #eb602d;\n }\n .apply-btn, .reset-btn{\n cursor: pointer;\n }\n }\n }\n .clearfix{\n &:after{\n content: "";\n display: block;\n clear: both;\n }\n }\n }\n .addtext-control-detail{\n .addtext-container{\n .sdk-top-wrap{\n width: calc(100% - 33.33%);\n .mf-custom-selector, .alignment-selector{\n .select2-selection{\n background-color: transparent;\n }\n }\n .alignment-selector{\n .select2-selection__rendered{\n line-height: 28px;\n }\n .select2-selection__arrow{\n position: static;\n b{\n right: 5px;\n left: auto;\n margin-top: 0;\n margin-left: 0;\n transform: translateY(-7px);\n }\n }\n }\n .se-font, .se-fontsize{\n .select2-selection__arrow{\n position: absolute;\n top: 0;\n right: 0;\n }\n }\n }\n .for-merge-field{\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: 33.33%;\n }\n }\n .color-picker{\n .sp-replacer{\n width: 18px !important;\n height: 18px !important;\n margin: 0;\n padding: 2px;\n line-height: 0;\n background-color: transparent !important;\n border: 0 !important;\n &:before{\n left: -1px !important;\n top: -1px !important;\n width: 18px !important;\n height: 18px !important;\n border: 1px solid #C7CBD7;\n box-sizing: border-box;\n }\n }\n .sp-preview{\n width: 12px;\n height: 12px;\n margin-top: 0;\n margin-left: 0;\n &-inner{\n width: 100% !important;\n height: 100% !important;\n }\n }\n }\n .mf-custom-selector-button .select2-selection .select2-selection__rendered{\n background-color: #484F61 !important;\n border: 0 !important;\n }\n .merge-field-container{\n width: calc(100% - 70px);\n padding-left: 10px;\n .mf-selector{\n width: calc(100% - 30px);\n .select2-container{\n width: 100% !important;\n }\n }\n }\n .se-add-text-btn{\n text-align: left !important;\n cursor: pointer;\n .add-text{\n color: #EB602D;\n white-space: nowrap;\n }\n img{\n filter: invert(1);\n }\n }\n .addtext-container{\n .select2-container .select2-selection--single .select2-selection__rendered{\n width: 100%;\n padding-right: 10px;\n color: #C7CBD7 !important;\n img{\n filter: invert(1);\n opacity: 0.7;\n }\n }\n .select2-selection__arrow b{\n border-color: #A1A6B4 transparent transparent transparent;\n }\n }\n .se-bold-face label, .italic-face label{\n height: auto;\n color: #C7CBD7;\n line-height: normal;\n background-color: transparent;\n cursor: pointer;\n }\n }\n .merge-field-container{\n .mf-label{\n position: relative;\n }\n }\n .select2-container--hippocategory{\n border: 0;\n }\n .se-resize-control-detail{\n label{\n margin-left: 8px;\n color: #C7CBD7;\n }\n input{\n margin-top: 1px;\n vertical-align: top;\n }\n }\n .blur-control-detail{\n .blur-initial{\n color: #C7CBD7;\n }\n .outline-btn{\n color: #EB602D;\n background-color: transparent;\n border-color: #EB602D;\n transform: translateY(-7px);\n }\n .blur-selected{\n color: #C7CBD7 !important;\n .blur-control.lock-aspect-ratio{\n width: 14px;\n margin-top: 5px;\n }\n label{\n color: #c7cbd7 !important;\n transform: translateY(-5px);\n }\n input[type=\'number\']{\n height: 28px;\n margin-top: 0;\n margin-bottom: 0 !important;\n color: #ffffff;\n background-color: #242b38;\n border-color: #ebebeb;\n }\n }\n .delete-blur{\n color: #EB602D;\n cursor: pointer;\n }\n }\n .addcallout-control-detail{\n .callout-btn-container{\n .se-callout-btn{\n filter: invert(1);\n }\n }\n }\n .addcallout-control-detail{\n .addcallout-selected{\n grid-template-columns: 2fr 1fr 1fr 0.6fr;\n }\n label[for="callout-lock"]{\n margin-left: 6px;\n color: #C7CBD7;\n }\n span{\n display: block;\n margin-top: 7px;\n color: #C7CBD7 !important;\n line-height: normal;\n }\n .se-callout-internal{\n grid-template-columns: 1fr 1.5fr;\n div{\n &:first-of-type{\n padding-right: 8px;\n text-align: right;\n }\n }\n select.callout-control{\n width: 100%;\n margin-bottom: 0;\n padding: 6px 4px;\n color: #ffffff;\n background-color: #1E2126;\n border: 1px solid #363E4E;\n border-radius: 4px;\n outline: none;\n -webkit-appearance: auto !important;\n -moz-appearance: auto !important;\n }\n }\n .delete-callout{\n color: #EB602D;\n cursor: pointer;\n }\n }\n .addsticker-control-detail{\n .addsticker-selected{\n &>div{\n display: inline-block;\n vertical-align: middle;\n &:first-of-type{\n width: 50%;\n }\n &:nth-of-type(2){\n width: 35%;\n &>div{\n display: inline-block;\n vertical-align: middle;\n }\n }\n &:last-of-type{\n width: 15%;\n }\n }\n label[for="sticker-lock"]{\n margin-left: 6px;\n color: #C7CBD7;\n }\n span{\n display: block;\n color: #C7CBD7 !important;\n line-height: normal;\n }\n select.sticker-control{\n width: 90px;\n margin-bottom: 0;\n padding: 6px 4px;\n color: #ffffff;\n background-color: #1E2126;\n border: 1px solid #363E4E;\n border-radius: 4px;\n outline: none;\n -webkit-appearance: auto !important;\n -moz-appearance: auto !important;\n }\n .delete-label{\n color: #EB602D;\n cursor: pointer;\n }\n }\n }\n }\n'])),(function(t){return t.isFromDynamicInteg?"100%":"85%"}),(function(t){return t.showSimpleEditor?"38px":"0"})),h=i(9198),b=i(13919);function w(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return x(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?x(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,l=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw l}}}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function y(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function k(t){var e=t.videoPlayerView,i=t.token,n=t.tokenType,s=t.recorder,c=t.recorderApiModel,f=t.isPersonalisationEnabled,g=t.customColors,x=t.footageUrls,k=t.showSimpleEditor,_=t.projectJson,E=t.integrationType,B=t.onSimpleEditorInitialize,P=t.videoDetails,z=t.isFromDynamicInteg,C=P||s.recordDetails,T=(0,a.useState)(C),I=T[0],D=T[1],R=(0,a.useContext)(u.Z).recorderInitOptions.edit,S=(0,h._e)(),O=(0,a.useRef)(!1),A=(0,a.useRef)(),j=(0,a.useRef)(_),L=(0,a.useRef)();return(0,a.useEffect)((function(){if(!I||!I.asset_id)return s.getRecordDetails().then((function(t){D(t)})).catch((function(t){console.error("ERROR IN GETTING RECORD DETAILS ",t)})),function(){s.cancelGetRecordDetails()}}),[s]),(0,a.useEffect)((function(){A.current&&(A.current.innerHTML+=d()(b.extend(m(),function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?y(Object(i),!0).forEach((function(e){(0,o.Z)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({shouldHideTrimTimer:"true",integrationType:E,canShowPersonalization:f,mfValues:p().personalization.defaultMergeFields,origin:S},function(){try{var t={};if(R&&"object"===(0,l.Z)(R)&&null!==R)for(var e in R)!1!==R[e]&&"false"!==R[e]||(t[e]="false");return t}catch(t){return{}}}()))),O.current=!0)}),[A]),(0,a.useEffect)((function(){e&&A.current&&I&&O.current&&function(){if(I.asset_id){var t={el:A.current,fromSDK:!0,videoPlayerView:e,integration_type:E,assetId:I&&I.asset_id,token:i,tokenType:n,recorder:s,recorderApiModel:c,isBlurEnabled:!0,embeddedDigest:I&&I.delivery_token,isPersonalizationEnabled:f,customColors:g,authoringId:I&&I.authoring_id,footageUrls:x};L.current?L.current.initialize(t):L.current=new r.default(t),B&&B(L.current)}}()}),[e,A,I,O]),(0,a.useEffect)((function(){if(L.current&&L.current.projectJson)if(k){L.current.enable();var t,e=w(A.current.getElementsByClassName("simple-edit-container"));try{for(e.s();!(t=e.n()).done;)t.value.classList.remove("hide")}catch(t){e.e(t)}finally{e.f()}L.current.height="140px"}else{var i,n=w(A.current.getElementsByClassName("simple-edit-container"));try{for(n.s();!(i=n.n()).done;)i.value.classList.add("hide")}catch(t){n.e(t)}finally{n.f()}L.current.height="0"}}),[k]),(0,a.useEffect)((function(){return j.current=_,_&&L.current&&e&&(setTimeout((function(){L.current.setProjectJson(_)}),300),e.show()),function(){}}),[_]),(0,a.useEffect)((function(){L.current&&e&&j.current&&(setTimeout((function(){L.current.setProjectJson(_)}),300),e.show())}),[L,e]),a.createElement(v,{showSimpleEditor:!0,ref:A,isFromDynamicInteg:z})}}}]);