@clickview/library-editor 1.1.21-rc.1 → 1.1.21-rc.2
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/scripts/{bundle-59190acd1d.min.js → bundle-d9f54fa2e3.min.js} +1 -1
- package/dist/scripts/bundles.json +1 -1
- package/package.json +1 -1
- package/dist/css/1.chunk.css.map +0 -1
- package/dist/css/10.chunk.css.map +0 -1
- package/dist/css/11.chunk.css +0 -137
- package/dist/css/11.chunk.css.map +0 -1
- package/dist/css/12.chunk.css.map +0 -1
- package/dist/css/13.chunk.css.map +0 -1
- package/dist/css/14.chunk.css.map +0 -1
- package/dist/css/16.chunk.css.map +0 -1
- package/dist/css/17.chunk.css.map +0 -1
- package/dist/css/18.chunk.css +0 -20
- package/dist/css/18.chunk.css.map +0 -1
- package/dist/css/2.chunk.css +0 -145
- package/dist/css/2.chunk.css.map +0 -1
- package/dist/css/21.chunk.css.map +0 -1
- package/dist/css/22.chunk.css.map +0 -1
- package/dist/css/23.chunk.css.map +0 -1
- package/dist/css/25.chunk.css.map +0 -1
- package/dist/css/26.chunk.css.map +0 -1
- package/dist/css/28.chunk.css.map +0 -1
- package/dist/css/29.chunk.css.map +0 -1
- package/dist/css/3.chunk.css.map +0 -1
- package/dist/css/30.chunk.css.map +0 -1
- package/dist/css/31.chunk.css.map +0 -1
- package/dist/css/32.chunk.css.map +0 -1
- package/dist/css/33.chunk.css +0 -4
- package/dist/css/33.chunk.css.map +0 -1
- package/dist/css/34.chunk.css +0 -21
- package/dist/css/34.chunk.css.map +0 -1
- package/dist/css/35.chunk.css +0 -20
- package/dist/css/35.chunk.css.map +0 -1
- package/dist/css/36.chunk.css.map +0 -1
- package/dist/css/37.chunk.css.map +0 -1
- package/dist/css/38.chunk.css.map +0 -1
- package/dist/css/40.chunk.css.map +0 -1
- package/dist/css/41.chunk.css.map +0 -1
- package/dist/css/42.chunk.css.map +0 -1
- package/dist/css/43.chunk.css.map +0 -1
- package/dist/css/44.chunk.css.map +0 -1
- package/dist/css/45.chunk.css.map +0 -1
- package/dist/css/46.chunk.css.map +0 -1
- package/dist/css/47.chunk.css.map +0 -1
- package/dist/css/48.chunk.css +0 -2
- package/dist/css/48.chunk.css.map +0 -1
- package/dist/css/49.chunk.css.map +0 -1
- package/dist/css/50.chunk.css.map +0 -1
- package/dist/css/51.chunk.css +0 -2
- package/dist/css/51.chunk.css.map +0 -1
- package/dist/css/52.chunk.css +0 -66
- package/dist/css/52.chunk.css.map +0 -1
- package/dist/css/55.chunk.css.map +0 -1
- package/dist/css/56.chunk.css.map +0 -1
- package/dist/css/58.chunk.css.map +0 -1
- package/dist/css/59.chunk.css +0 -2
- package/dist/css/59.chunk.css.map +0 -1
- package/dist/css/6.chunk.css.map +0 -1
- package/dist/css/60.chunk.css.map +0 -1
- package/dist/css/62.chunk.css +0 -2
- package/dist/css/62.chunk.css.map +0 -1
- package/dist/css/63.chunk.css +0 -170
- package/dist/css/63.chunk.css.map +0 -1
- package/dist/css/67.chunk.css +0 -78
- package/dist/css/67.chunk.css.map +0 -1
- package/dist/css/68.chunk.css +0 -17
- package/dist/css/68.chunk.css.map +0 -1
- package/dist/css/69.chunk.css +0 -17
- package/dist/css/69.chunk.css.map +0 -1
- package/dist/css/7.chunk.css.map +0 -1
- package/dist/css/70.chunk.css +0 -23
- package/dist/css/70.chunk.css.map +0 -1
- package/dist/css/71.chunk.css +0 -40
- package/dist/css/71.chunk.css.map +0 -1
- package/dist/css/72.chunk.css +0 -16
- package/dist/css/72.chunk.css.map +0 -1
- package/dist/css/73.chunk.css +0 -37
- package/dist/css/73.chunk.css.map +0 -1
- package/dist/css/74.chunk.css +0 -29
- package/dist/css/74.chunk.css.map +0 -1
- package/dist/css/75.chunk.css +0 -6
- package/dist/css/75.chunk.css.map +0 -1
- package/dist/css/76.chunk.css +0 -6
- package/dist/css/76.chunk.css.map +0 -1
- package/dist/css/8.chunk.css.map +0 -1
- package/dist/css/library-editor-app.css.map +0 -1
- package/dist/projects/library-editor/src/polyfills.d.ts +0 -2
- package/dist/scripts/0-ca679202dc.chunk.js +0 -1
- package/dist/scripts/0.chunk.js +0 -1034
- package/dist/scripts/0.chunk.js.map +0 -1
- package/dist/scripts/1-e99f6a4b40.chunk.js +0 -1
- package/dist/scripts/1.chunk.js +0 -442
- package/dist/scripts/1.chunk.js.map +0 -1
- package/dist/scripts/10-db266215e5.chunk.js +0 -1
- package/dist/scripts/10.chunk.js +0 -820
- package/dist/scripts/10.chunk.js.map +0 -1
- package/dist/scripts/11-51ab13cf04.chunk.js +0 -11
- package/dist/scripts/11.chunk.js +0 -4091
- package/dist/scripts/11.chunk.js.map +0 -1
- package/dist/scripts/12-a8ad430f3a.chunk.js +0 -1
- package/dist/scripts/12.chunk.js +0 -555
- package/dist/scripts/12.chunk.js.map +0 -1
- package/dist/scripts/13-107ba2526f.chunk.js +0 -1
- package/dist/scripts/13.chunk.js +0 -373
- package/dist/scripts/13.chunk.js.map +0 -1
- package/dist/scripts/14-d19ac2872e.chunk.js +0 -1
- package/dist/scripts/14.chunk.js +0 -2386
- package/dist/scripts/14.chunk.js.map +0 -1
- package/dist/scripts/15-979015a718.chunk.js +0 -1
- package/dist/scripts/15.chunk.js +0 -314
- package/dist/scripts/15.chunk.js.map +0 -1
- package/dist/scripts/16-2a8bfb08cb.chunk.js +0 -1
- package/dist/scripts/16.chunk.js +0 -1290
- package/dist/scripts/16.chunk.js.map +0 -1
- package/dist/scripts/17-b7d5d41f7e.chunk.js +0 -1
- package/dist/scripts/17.chunk.js +0 -381
- package/dist/scripts/17.chunk.js.map +0 -1
- package/dist/scripts/18.chunk.js +0 -393
- package/dist/scripts/18.chunk.js.map +0 -1
- package/dist/scripts/19.chunk.js +0 -364
- package/dist/scripts/19.chunk.js.map +0 -1
- package/dist/scripts/2-4e0702e404.chunk.js +0 -1
- package/dist/scripts/2.chunk.js +0 -519
- package/dist/scripts/2.chunk.js.map +0 -1
- package/dist/scripts/20-3c3507043d.chunk.js +0 -1
- package/dist/scripts/20.chunk.js +0 -317
- package/dist/scripts/20.chunk.js.map +0 -1
- package/dist/scripts/21-e1b652cbbd.chunk.js +0 -1
- package/dist/scripts/21.chunk.js +0 -531
- package/dist/scripts/21.chunk.js.map +0 -1
- package/dist/scripts/22-6ff4c8acc9.chunk.js +0 -1
- package/dist/scripts/22.chunk.js +0 -354
- package/dist/scripts/22.chunk.js.map +0 -1
- package/dist/scripts/23-84f6d42051.chunk.js +0 -1
- package/dist/scripts/23.chunk.js +0 -604
- package/dist/scripts/23.chunk.js.map +0 -1
- package/dist/scripts/24-71d0e5af84.chunk.js +0 -1
- package/dist/scripts/24.chunk.js +0 -318
- package/dist/scripts/24.chunk.js.map +0 -1
- package/dist/scripts/25-63e55b94d1.chunk.js +0 -1
- package/dist/scripts/25.chunk.js +0 -365
- package/dist/scripts/25.chunk.js.map +0 -1
- package/dist/scripts/26-03148e2beb.chunk.js +0 -1
- package/dist/scripts/26.chunk.js +0 -442
- package/dist/scripts/26.chunk.js.map +0 -1
- package/dist/scripts/27-4c1566e168.chunk.js +0 -1
- package/dist/scripts/27.chunk.js +0 -3565
- package/dist/scripts/27.chunk.js.map +0 -1
- package/dist/scripts/28-8b6147f186.chunk.js +0 -1
- package/dist/scripts/28.chunk.js +0 -3173
- package/dist/scripts/28.chunk.js.map +0 -1
- package/dist/scripts/29-ab744bc76f.chunk.js +0 -1
- package/dist/scripts/29.chunk.js +0 -3088
- package/dist/scripts/29.chunk.js.map +0 -1
- package/dist/scripts/3-948dad23b7.chunk.js +0 -1
- package/dist/scripts/3.chunk.js +0 -833
- package/dist/scripts/3.chunk.js.map +0 -1
- package/dist/scripts/30-ca11897c8c.chunk.js +0 -1
- package/dist/scripts/30.chunk.js +0 -1852
- package/dist/scripts/30.chunk.js.map +0 -1
- package/dist/scripts/31-c52013832c.chunk.js +0 -1
- package/dist/scripts/31.chunk.js +0 -958
- package/dist/scripts/31.chunk.js.map +0 -1
- package/dist/scripts/32-800ff7a3d2.chunk.js +0 -1
- package/dist/scripts/32.chunk.js +0 -1235
- package/dist/scripts/32.chunk.js.map +0 -1
- package/dist/scripts/33-a78c3eebd5.chunk.js +0 -1
- package/dist/scripts/33.chunk.js +0 -792
- package/dist/scripts/33.chunk.js.map +0 -1
- package/dist/scripts/34-3c4c65d69b.chunk.js +0 -1
- package/dist/scripts/34.chunk.js +0 -990
- package/dist/scripts/34.chunk.js.map +0 -1
- package/dist/scripts/35-8f001c740f.chunk.js +0 -1
- package/dist/scripts/35.chunk.js +0 -518
- package/dist/scripts/35.chunk.js.map +0 -1
- package/dist/scripts/36-3aeb2db7b1.chunk.js +0 -1
- package/dist/scripts/36.chunk.js +0 -335
- package/dist/scripts/36.chunk.js.map +0 -1
- package/dist/scripts/37-f837b37da6.chunk.js +0 -1
- package/dist/scripts/37.chunk.js +0 -236
- package/dist/scripts/37.chunk.js.map +0 -1
- package/dist/scripts/38-96a70abc7e.chunk.js +0 -1
- package/dist/scripts/38.chunk.js +0 -315
- package/dist/scripts/38.chunk.js.map +0 -1
- package/dist/scripts/39-2c91ed5792.chunk.js +0 -1
- package/dist/scripts/39.chunk.js +0 -116
- package/dist/scripts/39.chunk.js.map +0 -1
- package/dist/scripts/4-47a1458dff.chunk.js +0 -1
- package/dist/scripts/4.chunk.js +0 -335
- package/dist/scripts/4.chunk.js.map +0 -1
- package/dist/scripts/40-f3651a4572.chunk.js +0 -1
- package/dist/scripts/40.chunk.js +0 -1782
- package/dist/scripts/40.chunk.js.map +0 -1
- package/dist/scripts/41-908d353ede.chunk.js +0 -1
- package/dist/scripts/41.chunk.js +0 -2347
- package/dist/scripts/41.chunk.js.map +0 -1
- package/dist/scripts/42-7de5d85207.chunk.js +0 -1
- package/dist/scripts/42.chunk.js +0 -2116
- package/dist/scripts/42.chunk.js.map +0 -1
- package/dist/scripts/43-f1361f956d.chunk.js +0 -1
- package/dist/scripts/43.chunk.js +0 -2243
- package/dist/scripts/43.chunk.js.map +0 -1
- package/dist/scripts/44-50769e406b.chunk.js +0 -1
- package/dist/scripts/44.chunk.js +0 -1024
- package/dist/scripts/44.chunk.js.map +0 -1
- package/dist/scripts/45-9a434a5bd6.chunk.js +0 -1
- package/dist/scripts/45.chunk.js +0 -1065
- package/dist/scripts/45.chunk.js.map +0 -1
- package/dist/scripts/46-a9ca193eb7.chunk.js +0 -1
- package/dist/scripts/46.chunk.js +0 -656
- package/dist/scripts/46.chunk.js.map +0 -1
- package/dist/scripts/47-a919e008e6.chunk.js +0 -1
- package/dist/scripts/47.chunk.js +0 -735
- package/dist/scripts/47.chunk.js.map +0 -1
- package/dist/scripts/48-8b8ad444c6.chunk.js +0 -1
- package/dist/scripts/48.chunk.js +0 -994
- package/dist/scripts/48.chunk.js.map +0 -1
- package/dist/scripts/49-1060332c94.chunk.js +0 -1
- package/dist/scripts/49.chunk.js +0 -759
- package/dist/scripts/49.chunk.js.map +0 -1
- package/dist/scripts/5-cbac37484e.chunk.js +0 -1
- package/dist/scripts/5.chunk.js +0 -15
- package/dist/scripts/5.chunk.js.map +0 -1
- package/dist/scripts/50-421fc85bef.chunk.js +0 -1
- package/dist/scripts/50.chunk.js +0 -528
- package/dist/scripts/50.chunk.js.map +0 -1
- package/dist/scripts/51-7677f7ff70.chunk.js +0 -1
- package/dist/scripts/51.chunk.js +0 -932
- package/dist/scripts/51.chunk.js.map +0 -1
- package/dist/scripts/52-d4c61c1996.chunk.js +0 -1
- package/dist/scripts/52.chunk.js +0 -408
- package/dist/scripts/52.chunk.js.map +0 -1
- package/dist/scripts/53-8ae575251b.chunk.js +0 -1
- package/dist/scripts/53.chunk.js +0 -754
- package/dist/scripts/53.chunk.js.map +0 -1
- package/dist/scripts/54-6068a4d6c5.chunk.js +0 -1
- package/dist/scripts/54.chunk.js +0 -681
- package/dist/scripts/54.chunk.js.map +0 -1
- package/dist/scripts/55-989847d37e.chunk.js +0 -1
- package/dist/scripts/55.chunk.js +0 -645
- package/dist/scripts/55.chunk.js.map +0 -1
- package/dist/scripts/56-1215f5b596.chunk.js +0 -1
- package/dist/scripts/56.chunk.js +0 -346
- package/dist/scripts/56.chunk.js.map +0 -1
- package/dist/scripts/57-862310acde.chunk.js +0 -1
- package/dist/scripts/57.chunk.js +0 -422
- package/dist/scripts/57.chunk.js.map +0 -1
- package/dist/scripts/58-15786678f5.chunk.js +0 -1
- package/dist/scripts/58.chunk.js +0 -437
- package/dist/scripts/58.chunk.js.map +0 -1
- package/dist/scripts/59-0eaa35b612.chunk.js +0 -1
- package/dist/scripts/59.chunk.js +0 -342
- package/dist/scripts/59.chunk.js.map +0 -1
- package/dist/scripts/6-c9648df42d.chunk.js +0 -1
- package/dist/scripts/6.chunk.js +0 -484
- package/dist/scripts/6.chunk.js.map +0 -1
- package/dist/scripts/60-fd82862934.chunk.js +0 -1
- package/dist/scripts/60.chunk.js +0 -254
- package/dist/scripts/60.chunk.js.map +0 -1
- package/dist/scripts/61-51fca2bf0e.chunk.js +0 -1
- package/dist/scripts/61.chunk.js +0 -409
- package/dist/scripts/61.chunk.js.map +0 -1
- package/dist/scripts/62-2a372f4810.chunk.js +0 -1
- package/dist/scripts/62.chunk.js +0 -142
- package/dist/scripts/62.chunk.js.map +0 -1
- package/dist/scripts/63-3efa945b24.chunk.js +0 -1
- package/dist/scripts/63.chunk.js +0 -147
- package/dist/scripts/63.chunk.js.map +0 -1
- package/dist/scripts/64-eafdec6ee2.chunk.js +0 -1
- package/dist/scripts/64.chunk.js +0 -439
- package/dist/scripts/64.chunk.js.map +0 -1
- package/dist/scripts/65-7de035024e.chunk.js +0 -1
- package/dist/scripts/65.chunk.js +0 -582
- package/dist/scripts/65.chunk.js.map +0 -1
- package/dist/scripts/66-b42ac9bb08.chunk.js +0 -1
- package/dist/scripts/66.chunk.js +0 -442
- package/dist/scripts/66.chunk.js.map +0 -1
- package/dist/scripts/67-07f4863ec4.chunk.js +0 -1
- package/dist/scripts/67.chunk.js +0 -295
- package/dist/scripts/67.chunk.js.map +0 -1
- package/dist/scripts/68-6c49662638.chunk.js +0 -1
- package/dist/scripts/68.chunk.js +0 -165
- package/dist/scripts/68.chunk.js.map +0 -1
- package/dist/scripts/69-30f7b9bd2b.chunk.js +0 -1
- package/dist/scripts/69.chunk.js +0 -248
- package/dist/scripts/69.chunk.js.map +0 -1
- package/dist/scripts/7-06de2dc87e.chunk.js +0 -1
- package/dist/scripts/7.chunk.js +0 -309
- package/dist/scripts/7.chunk.js.map +0 -1
- package/dist/scripts/70-9a7afc7f7c.chunk.js +0 -1
- package/dist/scripts/70.chunk.js +0 -207
- package/dist/scripts/70.chunk.js.map +0 -1
- package/dist/scripts/71-8b092d42ed.chunk.js +0 -1
- package/dist/scripts/71.chunk.js +0 -237
- package/dist/scripts/71.chunk.js.map +0 -1
- package/dist/scripts/72-f1b9669186.chunk.js +0 -1
- package/dist/scripts/72.chunk.js +0 -331
- package/dist/scripts/72.chunk.js.map +0 -1
- package/dist/scripts/73.chunk.js +0 -404
- package/dist/scripts/73.chunk.js.map +0 -1
- package/dist/scripts/74.chunk.js +0 -301
- package/dist/scripts/74.chunk.js.map +0 -1
- package/dist/scripts/75.chunk.js +0 -231
- package/dist/scripts/75.chunk.js.map +0 -1
- package/dist/scripts/76.chunk.js +0 -157
- package/dist/scripts/76.chunk.js.map +0 -1
- package/dist/scripts/77.chunk.js +0 -307
- package/dist/scripts/77.chunk.js.map +0 -1
- package/dist/scripts/78.chunk.js +0 -249
- package/dist/scripts/78.chunk.js.map +0 -1
- package/dist/scripts/79.chunk.js +0 -282
- package/dist/scripts/79.chunk.js.map +0 -1
- package/dist/scripts/8-7a1c9219fe.chunk.js +0 -1
- package/dist/scripts/8.chunk.js +0 -307
- package/dist/scripts/8.chunk.js.map +0 -1
- package/dist/scripts/80.chunk.js +0 -308
- package/dist/scripts/80.chunk.js.map +0 -1
- package/dist/scripts/81.chunk.js +0 -366
- package/dist/scripts/81.chunk.js.map +0 -1
- package/dist/scripts/82.chunk.js +0 -314
- package/dist/scripts/82.chunk.js.map +0 -1
- package/dist/scripts/83.chunk.js +0 -328
- package/dist/scripts/83.chunk.js.map +0 -1
- package/dist/scripts/84.chunk.js +0 -313
- package/dist/scripts/84.chunk.js.map +0 -1
- package/dist/scripts/85.chunk.js +0 -291
- package/dist/scripts/85.chunk.js.map +0 -1
- package/dist/scripts/86.chunk.js +0 -119
- package/dist/scripts/86.chunk.js.map +0 -1
- package/dist/scripts/87.chunk.js +0 -219
- package/dist/scripts/87.chunk.js.map +0 -1
- package/dist/scripts/88.chunk.js +0 -194
- package/dist/scripts/88.chunk.js.map +0 -1
- package/dist/scripts/89.chunk.js +0 -522
- package/dist/scripts/89.chunk.js.map +0 -1
- package/dist/scripts/9-5bc6861938.chunk.js +0 -1
- package/dist/scripts/9.chunk.js +0 -222
- package/dist/scripts/9.chunk.js.map +0 -1
- package/dist/scripts/90.chunk.js +0 -337
- package/dist/scripts/90.chunk.js.map +0 -1
- package/dist/scripts/91.chunk.js +0 -131
- package/dist/scripts/91.chunk.js.map +0 -1
- package/dist/scripts/92.chunk.js +0 -266
- package/dist/scripts/92.chunk.js.map +0 -1
- package/dist/scripts/bundle-d83d171bc0.min.js +0 -1
- package/dist/scripts/bundle.js +0 -60670
- package/dist/scripts/bundle.js.map +0 -1
- package/dist/scripts/polyfills-cf8a15183c.min.js +0 -1
- package/dist/scripts/polyfills.js +0 -14844
- package/dist/scripts/polyfills.js.map +0 -1
package/dist/scripts/37.chunk.js
DELETED
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
(window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[37],{
|
|
2
|
-
|
|
3
|
-
/***/ "./src/apps/library-editor/components/concatenate-request/ConcatenateRequest.hbs":
|
|
4
|
-
/*!***************************************************************************************!*\
|
|
5
|
-
!*** ./src/apps/library-editor/components/concatenate-request/ConcatenateRequest.hbs ***!
|
|
6
|
-
\***************************************************************************************/
|
|
7
|
-
/*! no static exports found */
|
|
8
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9
|
-
|
|
10
|
-
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
11
|
-
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
12
|
-
var stack1, alias1=container.propertyIsEnumerable;
|
|
13
|
-
|
|
14
|
-
return ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.progress : stack1),{"name":"if","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
|
|
15
|
-
},"2":function(container,depth0,helpers,partials,data) {
|
|
16
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
17
|
-
|
|
18
|
-
return " <span class=\"m-3 text-muted\">"
|
|
19
|
-
+ alias2(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.progress : stack1), depth0))
|
|
20
|
-
+ "</span>\r\n <p class=\"pt-2\">"
|
|
21
|
-
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"processing",{"name":"lang","hash":{},"data":data}))
|
|
22
|
-
+ "</p>\r\n";
|
|
23
|
-
},"4":function(container,depth0,helpers,partials,data) {
|
|
24
|
-
var stack1, alias1=container.propertyIsEnumerable;
|
|
25
|
-
|
|
26
|
-
return ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.failed : stack1),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
|
|
27
|
-
},"5":function(container,depth0,helpers,partials,data) {
|
|
28
|
-
var alias1=container.propertyIsEnumerable;
|
|
29
|
-
|
|
30
|
-
return "<p class=\"pt-2 text-danger\">"
|
|
31
|
-
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"failed",{"name":"lang","hash":{},"data":data}))
|
|
32
|
-
+ "</p>\r\n";
|
|
33
|
-
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
34
|
-
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
35
|
-
|
|
36
|
-
return "<h4>"
|
|
37
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.componentOptions : stack1)) != null ? stack1.heading : stack1), depth0))
|
|
38
|
-
+ "</h4>\r\n<p>"
|
|
39
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.componentOptions : stack1)) != null ? stack1.line1 : stack1), depth0))
|
|
40
|
-
+ "</p>\r\n<p>"
|
|
41
|
-
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.componentOptions : stack1)) != null ? stack1.line2 : stack1), depth0))
|
|
42
|
-
+ "</p>\r\n<div class=\"btn-region\"></div>\r\n"
|
|
43
|
-
+ ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.processing : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(4, data, 0),"data":data})) != null ? stack1 : "");
|
|
44
|
-
},"useData":true});
|
|
45
|
-
|
|
46
|
-
/***/ }),
|
|
47
|
-
|
|
48
|
-
/***/ "./src/apps/library-editor/components/concatenate-request/ConcatenateRequestComponent.ts":
|
|
49
|
-
/*!***********************************************************************************************!*\
|
|
50
|
-
!*** ./src/apps/library-editor/components/concatenate-request/ConcatenateRequestComponent.ts ***!
|
|
51
|
-
\***********************************************************************************************/
|
|
52
|
-
/*! exports provided: ConcatenateRequestComponent */
|
|
53
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
54
|
-
|
|
55
|
-
"use strict";
|
|
56
|
-
__webpack_require__.r(__webpack_exports__);
|
|
57
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConcatenateRequestComponent", function() { return ConcatenateRequestComponent; });
|
|
58
|
-
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
59
|
-
/* harmony import */ var _shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/components/spinner-button/SpinnerButtonComponent */ "./src/shared/components/spinner-button/SpinnerButtonComponent.ts");
|
|
60
|
-
/* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/utils */ "./src/shared/utils/index.ts");
|
|
61
|
-
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
62
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../enums */ "./src/apps/library-editor/enums/index.ts");
|
|
63
|
-
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../constants */ "./src/apps/library-editor/constants/index.ts");
|
|
64
|
-
/* harmony import */ var _ConcatenateRequest_hbs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ConcatenateRequest.hbs */ "./src/apps/library-editor/components/concatenate-request/ConcatenateRequest.hbs");
|
|
65
|
-
/* harmony import */ var _ConcatenateRequest_hbs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_ConcatenateRequest_hbs__WEBPACK_IMPORTED_MODULE_6__);
|
|
66
|
-
/* harmony import */ var _concatenate_request_scss__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./concatenate-request.scss */ "./src/apps/library-editor/components/concatenate-request/concatenate-request.scss");
|
|
67
|
-
/* harmony import */ var _concatenate_request_scss__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_concatenate_request_scss__WEBPACK_IMPORTED_MODULE_7__);
|
|
68
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
69
|
-
|
|
70
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
71
|
-
|
|
72
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
73
|
-
|
|
74
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
75
|
-
|
|
76
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
77
|
-
|
|
78
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
79
|
-
|
|
80
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
81
|
-
|
|
82
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
83
|
-
|
|
84
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
85
|
-
|
|
86
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
87
|
-
|
|
88
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
var ConcatenateRequestComponent = /*#__PURE__*/function (_Core$Component) {
|
|
99
|
-
_inherits(ConcatenateRequestComponent, _Core$Component);
|
|
100
|
-
|
|
101
|
-
var _super = _createSuper(ConcatenateRequestComponent);
|
|
102
|
-
|
|
103
|
-
function ConcatenateRequestComponent(options) {
|
|
104
|
-
_classCallCheck(this, ConcatenateRequestComponent);
|
|
105
|
-
|
|
106
|
-
return _super.call(this, options);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
_createClass(ConcatenateRequestComponent, [{
|
|
110
|
-
key: "initialize",
|
|
111
|
-
value: function initialize() {
|
|
112
|
-
this.spinnerModel = new _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Model({
|
|
113
|
-
showSpinner: this.isProcessing()
|
|
114
|
-
});
|
|
115
|
-
this.listenTo(this.options.channelName, _constants__WEBPACK_IMPORTED_MODULE_5__["LibraryEditorActions"].MergeChapters, this.onClickMergeChapters);
|
|
116
|
-
}
|
|
117
|
-
}, {
|
|
118
|
-
key: "regions",
|
|
119
|
-
value: function regions() {
|
|
120
|
-
return {
|
|
121
|
-
button: {
|
|
122
|
-
el: '.btn-region',
|
|
123
|
-
replaceElement: true
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
}, {
|
|
128
|
-
key: "onClickMergeChapters",
|
|
129
|
-
value: function onClickMergeChapters() {
|
|
130
|
-
this.spinnerModel.set(_shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_1__["SpinnerButtonModelAttributes"].ShowSpinner, true);
|
|
131
|
-
this.render();
|
|
132
|
-
}
|
|
133
|
-
}, {
|
|
134
|
-
key: "isProcessing",
|
|
135
|
-
value: function isProcessing() {
|
|
136
|
-
if (!this.model) return false;
|
|
137
|
-
return !!this.model.get('status') && (this.model.get('status') === _enums__WEBPACK_IMPORTED_MODULE_4__["MediaConcatenateStatus"].New || this.model.get('status') === _enums__WEBPACK_IMPORTED_MODULE_4__["MediaConcatenateStatus"].Concatenating);
|
|
138
|
-
}
|
|
139
|
-
}, {
|
|
140
|
-
key: "renderButton",
|
|
141
|
-
value: function renderButton() {
|
|
142
|
-
var copy = {
|
|
143
|
-
chapters: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__["LanguageService"].getPhrase(this.lang, 'mergeChapters'),
|
|
144
|
-
subtitles: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__["LanguageService"].getPhrase(this.lang, 'mergeChapters'),
|
|
145
|
-
clickViewSubtitles: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__["LanguageService"].getPhrase(this.lang, 'enabledCustomSubtitles')
|
|
146
|
-
};
|
|
147
|
-
var spinnerButtonComponent = new _shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_1__["SpinnerButtonComponent"]({
|
|
148
|
-
buttonText: copy[this.options.type],
|
|
149
|
-
extraButtonClass: "btn-primary ".concat(_concatenate_request_scss__WEBPACK_IMPORTED_MODULE_7___default.a.btn),
|
|
150
|
-
model: this.spinnerModel,
|
|
151
|
-
spinnerOptions: {
|
|
152
|
-
size: _shared_utils__WEBPACK_IMPORTED_MODULE_2__["SpinnerSize"].Small,
|
|
153
|
-
type: _shared_utils__WEBPACK_IMPORTED_MODULE_2__["SpinnerType"].Light,
|
|
154
|
-
extraClasses: 'mx-auto'
|
|
155
|
-
},
|
|
156
|
-
channelName: this.options.channelName,
|
|
157
|
-
saveEvent: _constants__WEBPACK_IMPORTED_MODULE_5__["LibraryEditorActions"].MergeChapters
|
|
158
|
-
});
|
|
159
|
-
this.showChildView('button', spinnerButtonComponent);
|
|
160
|
-
}
|
|
161
|
-
}, {
|
|
162
|
-
key: "viewOptions",
|
|
163
|
-
value: function viewOptions() {
|
|
164
|
-
var copy = {
|
|
165
|
-
chapters: {
|
|
166
|
-
heading: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__["LanguageService"].getPhrase(this.lang, 'chaptersHeading'),
|
|
167
|
-
line1: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__["LanguageService"].getPhrase(this.lang, 'chaptersInfo1'),
|
|
168
|
-
line2: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__["LanguageService"].getPhrase(this.lang, 'chaptersInfo2')
|
|
169
|
-
},
|
|
170
|
-
subtitles: {
|
|
171
|
-
heading: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__["LanguageService"].getPhrase(this.lang, 'subtitlesHeading'),
|
|
172
|
-
line1: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__["LanguageService"].getPhrase(this.lang, 'subtitlesInfo1'),
|
|
173
|
-
line2: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__["LanguageService"].getPhrase(this.lang, 'subtitlesInfo2')
|
|
174
|
-
},
|
|
175
|
-
clickViewSubtitles: {
|
|
176
|
-
heading: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__["LanguageService"].getPhrase(this.lang, 'cvSubtitlesHeading'),
|
|
177
|
-
line1: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__["LanguageService"].getPhrase(this.lang, 'cvSubtitlesInfo1'),
|
|
178
|
-
line2: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__["LanguageService"].getPhrase(this.lang, 'cvSubtitlesInfo2')
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
var progress = this.model && this.model.get('progress') && _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__["LanguageService"].getPhrase(this.lang, 'progress', {
|
|
182
|
-
progress: this.model.get('progress')
|
|
183
|
-
});
|
|
184
|
-
return {
|
|
185
|
-
progress: progress,
|
|
186
|
-
componentOptions: copy[this.options.type],
|
|
187
|
-
processing: this.spinnerModel.get(_shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_1__["SpinnerButtonModelAttributes"].ShowSpinner),
|
|
188
|
-
failed: this.model && this.model.get('status') && this.model.get('status') === _enums__WEBPACK_IMPORTED_MODULE_4__["MediaConcatenateStatus"].ConcatenationFailed
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
}, {
|
|
192
|
-
key: "onRender",
|
|
193
|
-
value: function onRender() {
|
|
194
|
-
this.renderButton();
|
|
195
|
-
}
|
|
196
|
-
}, {
|
|
197
|
-
key: "name",
|
|
198
|
-
get: function get() {
|
|
199
|
-
return 'ConcatenateRequestComponent';
|
|
200
|
-
}
|
|
201
|
-
}, {
|
|
202
|
-
key: "template",
|
|
203
|
-
get: function get() {
|
|
204
|
-
return _ConcatenateRequest_hbs__WEBPACK_IMPORTED_MODULE_6___default.a;
|
|
205
|
-
}
|
|
206
|
-
}, {
|
|
207
|
-
key: "lang",
|
|
208
|
-
get: function get() {
|
|
209
|
-
return 'libraryEditor.concatenateRequest';
|
|
210
|
-
}
|
|
211
|
-
}, {
|
|
212
|
-
key: "className",
|
|
213
|
-
get: function get() {
|
|
214
|
-
return 'mt-3';
|
|
215
|
-
}
|
|
216
|
-
}]);
|
|
217
|
-
|
|
218
|
-
return ConcatenateRequestComponent;
|
|
219
|
-
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
220
|
-
|
|
221
|
-
/***/ }),
|
|
222
|
-
|
|
223
|
-
/***/ "./src/apps/library-editor/components/concatenate-request/concatenate-request.scss":
|
|
224
|
-
/*!*****************************************************************************************!*\
|
|
225
|
-
!*** ./src/apps/library-editor/components/concatenate-request/concatenate-request.scss ***!
|
|
226
|
-
\*****************************************************************************************/
|
|
227
|
-
/*! no static exports found */
|
|
228
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
229
|
-
|
|
230
|
-
// extracted by mini-css-extract-plugin
|
|
231
|
-
module.exports = {"btn":"cv--btn--59zg9"};
|
|
232
|
-
|
|
233
|
-
/***/ })
|
|
234
|
-
|
|
235
|
-
}]);
|
|
236
|
-
//# sourceMappingURL=37.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/library-editor/components/concatenate-request/ConcatenateRequest.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/library-editor/components/concatenate-request/ConcatenateRequestComponent.ts","webpack://@clickview/library-editor/./src/apps/library-editor/components/concatenate-request/concatenate-request.scss?7001"],"names":[],"mappings":"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","file":"scripts/37.chunk.js","sourcesContent":["var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.progress : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;\n\n return \" <span class=\\\"m-3 text-muted\\\">\"\n + alias2(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.progress : stack1), depth0))\n + \"</span>\\r\\n <p class=\\\"pt-2\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"processing\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</p>\\r\\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.failed : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var alias1=container.propertyIsEnumerable;\n\n return \"<p class=\\\"pt-2 text-danger\\\">\"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"failed\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</p>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \"<h4>\"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.componentOptions : stack1)) != null ? stack1.heading : stack1), depth0))\n + \"</h4>\\r\\n<p>\"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.componentOptions : stack1)) != null ? stack1.line1 : stack1), depth0))\n + \"</p>\\r\\n<p>\"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.componentOptions : stack1)) != null ? stack1.line2 : stack1), depth0))\n + \"</p>\\r\\n<div class=\\\"btn-region\\\"></div>\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.processing : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(4, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport { SpinnerButtonModelAttributes, SpinnerButtonComponent } from 'shared/components/spinner-button/SpinnerButtonComponent';\r\nimport { SpinnerSize, SpinnerType } from 'shared/utils';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nimport { MediaConcatenateStatus } from 'apps/library-editor/enums';\r\nimport { LibraryEditorActions } from 'apps/library-editor/constants';\r\nimport { ChapterConcatenateRequest } from 'apps/library-editor/models';\r\n\r\nimport ConcatenateRequestTemplate from './ConcatenateRequest.hbs';\r\nimport styles from './concatenate-request.scss';\r\n\r\ninterface ConcatenateRequestComponentOptions extends Core.ComponentOptions<ChapterConcatenateRequest> {\r\n type: 'chapters' | 'subtitles' | 'clickViewSubtitles';\r\n model?: ChapterConcatenateRequest;\r\n}\r\n\r\nexport class ConcatenateRequestComponent extends Core.Component<ChapterConcatenateRequest> {\r\n public options: ConcatenateRequestComponentOptions;\r\n private spinnerModel: Core.Model;\r\n\r\n constructor(options: ConcatenateRequestComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.spinnerModel = new Core.Model({ showSpinner: this.isProcessing() });\r\n\r\n this.listenTo(this.options.channelName, LibraryEditorActions.MergeChapters, this.onClickMergeChapters);\r\n }\r\n\r\n public get name(): string {\r\n return 'ConcatenateRequestComponent';\r\n }\r\n\r\n public get template(): any {\r\n return ConcatenateRequestTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'libraryEditor.concatenateRequest';\r\n }\r\n\r\n public get className(): string {\r\n return 'mt-3';\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n button: {\r\n el: '.btn-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n private onClickMergeChapters(): void {\r\n this.spinnerModel.set(SpinnerButtonModelAttributes.ShowSpinner, true);\r\n\r\n this.render();\r\n }\r\n\r\n private isProcessing(): boolean {\r\n if (!this.model)\r\n return false;\r\n\r\n return !!this.model.get('status') && (this.model.get('status') === MediaConcatenateStatus.New\r\n || this.model.get('status') === MediaConcatenateStatus.Concatenating);\r\n }\r\n\r\n private renderButton(): void {\r\n const copy = {\r\n chapters: LanguageService.getPhrase(this.lang, 'mergeChapters'),\r\n subtitles: LanguageService.getPhrase(this.lang, 'mergeChapters'),\r\n clickViewSubtitles: LanguageService.getPhrase(this.lang, 'enabledCustomSubtitles')\r\n };\r\n\r\n const spinnerButtonComponent = new SpinnerButtonComponent({\r\n buttonText: copy[this.options.type],\r\n extraButtonClass: `btn-primary ${styles.btn}`,\r\n model: this.spinnerModel,\r\n spinnerOptions: {\r\n size: SpinnerSize.Small,\r\n type: SpinnerType.Light,\r\n extraClasses: 'mx-auto'\r\n },\r\n channelName: this.options.channelName,\r\n saveEvent: LibraryEditorActions.MergeChapters,\r\n });\r\n\r\n this.showChildView('button', spinnerButtonComponent);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n const copy = {\r\n chapters: {\r\n heading: LanguageService.getPhrase(this.lang, 'chaptersHeading'),\r\n line1: LanguageService.getPhrase(this.lang, 'chaptersInfo1'),\r\n line2: LanguageService.getPhrase(this.lang, 'chaptersInfo2')\r\n },\r\n subtitles: {\r\n heading: LanguageService.getPhrase(this.lang, 'subtitlesHeading'),\r\n line1: LanguageService.getPhrase(this.lang, 'subtitlesInfo1'),\r\n line2: LanguageService.getPhrase(this.lang, 'subtitlesInfo2')\r\n },\r\n clickViewSubtitles: {\r\n heading: LanguageService.getPhrase(this.lang, 'cvSubtitlesHeading'),\r\n line1: LanguageService.getPhrase(this.lang, 'cvSubtitlesInfo1'),\r\n line2: LanguageService.getPhrase(this.lang, 'cvSubtitlesInfo2')\r\n }\r\n };\r\n\r\n var progress = this.model && this.model.get('progress') &&\r\n LanguageService.getPhrase(this.lang, 'progress', { progress: this.model.get('progress') });\r\n\r\n return {\r\n progress,\r\n componentOptions: copy[this.options.type],\r\n processing: this.spinnerModel.get(SpinnerButtonModelAttributes.ShowSpinner),\r\n failed: this.model && this.model.get('status') && this.model.get('status') === MediaConcatenateStatus.ConcatenationFailed\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n this.renderButton();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"btn\":\"cv--btn--59zg9\"};"],"sourceRoot":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[38],{1005:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(2),i=n(237);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(u,e);var t,n,o,r=c(u);function u(){return a(this,u),r.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=i.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&s(t.prototype,n),o&&s(t,o),u}(o.a.Model)},1017:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(1),i=n(2),r=n(277);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(u,e);var t,n,i,a=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,o=e.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return r.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(e,this.options.childOptions)}}])&&s(t.prototype,n),i&&s(t,i),u}(i.a.ComponentCollection)},1059:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),i=n(7),r=n(2),a=n(1017),s=n(12),l=n(1060),c=n.n(l),u=n(1061),d=n.n(u);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,r,l=g(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=l.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(e){i.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),i.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){s.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(s.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(s.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),i.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=s.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=s.c.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(s.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=o.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=o.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var i=n[this.sameCharIndex];return i||(i=o.first(n),this.sameCharIndex=0),this.sameCharIndex++,i}return o.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){return!!e.get("divider")||!!o.isFunction(this.options.childOptions.isDisabled)&&this.options.childOptions.isDisabled.apply(this,arguments)}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=s.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:d.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new a.a({collection:this.collection,channelName:this.options.channelName,childOptions:o.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(d.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&p(t.prototype,n),r&&p(t,r),u}(r.a.Component)},1060:function(e,t,n){var o=n(9);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.disabled:r,t))},3:function(e,t,n,o,i){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,s=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectButton:r,t))+" "+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' \r\n name="'+s(a(null!=(r=null!=t?t.options:t)?r.inputName:r,t))+'"\r\n >\r\n '+s(a(null!=(r=null!=t?t.options:t)?r.placeholderText:r,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1061:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1284:function(e,t,n){var o=n(9);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression,s=e.lambda;return'<p class="font-weight-bold mb-0">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"currentType",{name:"lang",hash:{metadataType:null!=(r=null!=t?t.options:t)?r.metadataType:r},data:i}))+'</p>\r\n<p class="mb-3 '+a(s(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.metadataValue:r,t))+'">'+(null!=(r=s(null!=(r=null!=t?t.options:t)?r.metadataValue:r,t))?r:"")+"</p>\r\n"},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return' <textarea\r\n id="suggest-edit"\r\n placeholder="'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.suggestionPlaceholder:r,t))+'"\r\n class="form-control"\r\n name="suggestion"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression;return(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.isOtherType:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'\r\n<div class="dropdown-divider"></div>\r\n\r\n<div class="form-group">\r\n <label for="suggest-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(a,"suggestionSubheading",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="rating-select-region"></div>\r\n <div class="rating-form-feedback invalid-feedback"></div>\r\n'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.useRatingSelect:r,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'</div>\r\n\r\n<div class="form-group">\r\n <label for="reason-for-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(a,"reasoningSubheading",{name:"lang",hash:{},data:i}))+'</label>\r\n <textarea\r\n id="reason-for-edit"\r\n placeholder="'+l((n.lang||t&&t.lang||s).call(a,"reasoningPlaceholder",{name:"lang",hash:{},data:i}))+'"\r\n class="form-control"\r\n name="reason"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},1285:function(e,t,n){e.exports={metadataValue:"_3nkrW"}},1286:function(e,t,n){var o=n(9);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return"<p>"+s((n.lang||t&&t.lang||a).call(r,"guidelines",{name:"lang",hash:{},data:i}))+'</p>\r\n<p class="font-weight-bold mb-1">'+s((n.lang||t&&t.lang||a).call(r,"dropdownHeading",{name:"lang",hash:{},data:i}))+'</p>\r\n<div class="metadata-dropdown-region position-relative"></div>\r\n<div class="suggest-edit-region"></div>\r\n'},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return(null!=(r=e.lambda(null!=(r=null!=t?t.options:t)?r.spinnerEl:r,t))?r:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.dataFetched:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:""},useData:!0})},1434:function(e,t,n){"use strict";n.r(t);var o=n(1),i=n(3),r=n(2),a=n(5),s=n(28),l=n(4),c=n(40),u=n(12);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(n,e);var t=h(n);function n(){return f(this,n),t.apply(this,arguments)}return n}(r.a.Model),v=n(296),b=n(1005),w=n(129),S=n(180),k=n(0),O=n(1026),M=n(1059),T=n(237),x=n(273),E=n(6),C=n(7),R=n(27),P=n(1170),_=n(179),V=n(1009),N=n(1284),j=n.n(N),D=n(1285),I=n.n(D);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=H(e);if(t){var i=H(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return U(this,n)}}function U(e,t){return!t||"object"!==L(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var q,J=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(s,e);var t,n,o,a=F(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,e)}return t=s,(n=[{key:"regions",value:function(){return{ratingSelect:{el:".rating-select-region",replaceElement:!0}}}},{key:"getMetadataValue",value:function(){return this.options.metadataType===_.e.BroadcastDate?this.options.metadataValue?R(this.options.metadataValue).format(E.p.FULL_YEAR):i.a.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue instanceof r.a.Collection?this.options.metadataValue.length?this.options.metadataValue.map((function(e){return e.get("name")})).join(", "):i.a.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue||i.a.getPhrase(this.lang,"noMetadataValue")}},{key:"getSuggestionPlaceholder",value:function(){return this.options.metadataType===_.e.Other?i.a.getPhrase(this.lang,"otherSuggestionPlaceholder"):i.a.getPhrase(this.lang,"suggestionPlaceholder",{metadataType:V.i.translateMetadataName(this.options.metadataType).toLowerCase()})}},{key:"renderRatingSelect",value:function(){this.options.ratingValidationMessage?this.getUI("ratingValidation").text(this.options.ratingValidationMessage).attr("style","display: block;"):this.getUI("ratingValidation").hide(),this.options.metadataType===_.e.Rating&&this.showChildView("ratingSelect",new P.a({model:this.options.currentRating,collection:this.options.ratings,parentChannelName:this.options.channelName,hideHeaderText:!0,hideRemove:!0}))}},{key:"viewOptions",value:function(){return{styles:I.a,metadataValue:this.getMetadataValue(),useRatingSelect:this.options.metadataType===_.e.Rating,isOtherType:this.options.metadataType===_.e.Other,metadataType:V.i.translateMetadataName(this.options.metadataType).toLowerCase(),suggestionPlaceholder:this.getSuggestionPlaceholder()}}},{key:"onRender",value:function(){this.renderRatingSelect(),this.stickit(),C.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),C.Validation.unbind(this)}},{key:"name",get:function(){return"SuggestEditComponent"}},{key:"template",get:function(){return j.a}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"mt-3"}},{key:"lang",get:function(){return"libraryEditor.suggestEdit"}},{key:"bindings",get:function(){return{"[name=suggestion]":{observe:"suggestion",setOptions:{validate:!0}},"[name=reason]":{observe:"reason",setOptions:{validate:!0}}}}},{key:"elements",get:function(){return{ratingValidation:".rating-form-feedback"}}}])&&A(t.prototype,n),o&&A(t,o),s}(r.a.Component);!function(e){e[e.Email=0]="Email"}(q||(q={}));var z=n(148),G=n(55),K=Object.assign(Object.assign({},z.a),{createSuggestEditNotification:function(e){return{_type:G.a.SuggestEdit,groupId:e.groupId,receiverId:0,countryCode:e.countryCode,channels:[q.Email],data:{video:e.video,user:e.user,property:e.property,suggestion:e.suggestion,reason:e.reason,currentValue:e.currentValue}}}}),W=n(1286),$=n.n(W);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=te(e);if(t){var i=te(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ee(this,n)}}function ee(e,t){return!t||"object"!==Q(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"SuggestAnEditView",(function(){return ne}));var ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}(f,e);var t,n,r,d=Z(f);function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),d.call(this,e)}return t=f,(n=[{key:"initialize",value:function(){this.getViewModel(),this.videoDataService=a.a.getInstance(k.g.Video,this),this.ratingsDataService=a.a.getInstance(k.g.Ratings,this),this.notificationDataService=a.a.getInstance(k.g.Notifications,this),this.selectedMetadata=new m,this.metadataCollection=this.getMetadataCollection(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".metadata-dropdown-region",replaceElement:!1},suggestEdit:{el:".suggest-edit-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:option:selected",this.onMetadataSelect),this.listenTo(this.channelName,"select:rating",this.onSelectRating),this.listenTo(k.e.VIDEO,"".concat(k.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(k.e.NOTIFICATIONS,"".concat(k.f.SUGGEST_EDIT,":error"),this.onError)}},{key:"onSubmit",value:function(e){var t=this;if(this.validateForm()){this.spinnerModel.set(T.c.ShowSpinner,!0);var n=this.selectedMetadata.get("metadataType")===_.e.Rating?this.viewModel.get("ratingSuggestion"):this.viewModel.get("suggestion"),o=this.config.get("suggestEditMetadataGroupId"),i=K.createSuggestEditNotification({groupId:o,countryCode:this.currentUser.get("countryCode"),video:this.model.toJSON(),user:this.currentUser.toJSON(),property:this.selectedMetadata.get("metadataType").toLowerCase(),suggestion:n,reason:this.viewModel.get("reason"),currentValue:this.selectedMetadata.get("metadataValue")});this.notificationDataService.suggestEdit(i,(function(){t.triggerMethod("hide"),t.spinnerModel.set(T.c.ShowSpinner,!1),t.spinnerModel.set(T.c.Disabled,!0)})),this.logAction(),this.viewModel.clear()}}},{key:"onError",value:function(){this.spinnerModel.set(T.c.ShowSpinner,!1)}},{key:"onMetadataSelect",value:function(e){this.selectMetadata(e),this.renderSuggestEdit()}},{key:"onSelectRating",value:function(e){this.viewModel.set("ratingSuggestion",e.get("name")),this.renderSuggestEdit()}},{key:"selectMetadata",value:function(e){this.spinnerModel.set(T.c.Disabled,!1),u.c.setSelected(e.get("id"),this.metadataCollection),this.selectedMetadata.set({metadataType:e.get("name"),metadataValue:e.get("name")!==_.e.Other?this.model.get(e.get("property")):null}),e.get("name")!==_.e.Rating&&this.viewModel.set("ratingSuggestion","")}},{key:"getMetadataCollection",value:function(){return new O.a(Object.keys(_.f).map((function(e){return _.f[e]})))}},{key:"getMetadataByType",value:function(e){return this.metadataCollection.findWhere({name:e})}},{key:"getViewModel",value:function(){this.viewModel=s.a.get(this.viewModelName),this.viewModel.addValidation(V.h)}},{key:"validateForm",value:function(){this.renderSuggestEdit(),this.viewModel.validate();var e=this.viewModel.toJSON(),t=e.reason,n=e.suggestion;return!(this.getRatingValidationMessage()||this.selectedMetadata.get("metadataType")!==_.e.Rating&&!n||!t)}},{key:"getRatingValidationMessage",value:function(){if(this.selectedMetadata.get("metadataType")!==_.e.Rating)return"";var e=this.selectedMetadata.get("metadataValue"),t=this.viewModel.get("ratingSuggestion");return t?e===t?V.g.original():"":V.g.empty()}},{key:"checkPreselection",value:function(){if(!this.selectedMetadata.get("metadataType")&&this.options.metadata&&this.dataFetched()){var e=this.getMetadataByType(this.options.metadata);this.selectMetadata(e)}}},{key:"logAction",value:function(){var e=u.x.getSourceTypes(this.model);e=o.filter(e,(function(e){return e!==E.h.CustomLibrary}));var t={videoSourceTypes:o.sortBy(o.unique(e),(function(e){return e})).join(","),videoId:this.model.get("id"),metadataProperty:this.selectedMetadata.get("metadataType"),metadataPropertyValue:this.selectedMetadata.get("metadataValue"),suggestion:this.viewModel.get("suggestion"),reason:this.viewModel.get("reason")};c.a.logUserAction(t,{descriptor:l.p.Edit,location:l.k.Popup,actionType:l.q.Suggest,entity:l.e.Video})}},{key:"dataFetched",value:function(){return!!this.model&&!!this.ratingCollection}},{key:"renderMetadataDropdown",value:function(){this.showChildView("dropdown",new M.a({collection:V.i.translateMetadataCollectionNames(this.metadataCollection),channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click"},placeholderText:this.selectedMetadata.get("metadataType")||i.a.getPhrase(this.lang,"dropdownPlaceholder"),analyticsHelper:c.a}))}},{key:"renderSuggestEdit",value:function(){this.selectedMetadata.get("metadataType")&&this.showChildView("suggestEdit",new J({model:this.viewModel,channelName:this.channelName,ratings:this.ratingCollection,currentRating:this.viewModel.get("ratingSuggestion")?new v.a(this.ratingCollection.findWhere({name:this.viewModel.get("ratingSuggestion")})):null,metadataType:this.selectedMetadata.get("metadataType"),metadataValue:this.selectedMetadata.get("metadataValue"),ratingValidationMessage:this.getRatingValidationMessage()}))}},{key:"onBeforeRender",value:function(){this.dataFetched()||(this.model=this.videoDataService.getVideo(this.options.videoId),this.ratingCollection=this.ratingsDataService.getAllRatings()),this.checkPreselection()}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:u.q.getSpinner({size:u.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.dataFetched()&&(this.renderMetadataDropdown(),this.renderSuggestEdit())}},{key:"name",get:function(){return"SuggestAnEditView"}},{key:"template",get:function(){return $.a}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"lang",get:function(){return"libraryEditor.suggestAnEdit"}},{key:"title",get:function(){return i.a.getPhrase(this.lang,"title")}},{key:"channelName",get:function(){return u.k.generateUniqueChannelName(this)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.videoId)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:x.f,title:i.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new b.a,channelName:this.channelName,buttonText:i.a.getPhrase(this.lang,"submit"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"requiredResources",get:function(){return{config:S.b.config,currentUser:w.b.currentUser}}}])&&Y(t.prototype,n),r&&Y(t,r),f}(r.a.View)}}]);
|