@clickview/library-editor 1.1.21-rc.1 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scripts/{bundle-59190acd1d.min.js → bundle-f689e204ce.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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/awaiting-review-header/AwaitingReviewHeader.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/awaiting-review-header/AwaitingReviewHeaderComponent.ts","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/content-updates-header/ContentUpdatesHeader.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/content-updates-header/ContentUpdatesHeaderComponent.ts","webpack://@clickview/library-editor/./src/apps/content-updates/components/content-updates-header/content-updates-header.scss?40d9","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/content-updates-left-nav/ContentUpdatesLeftNav.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/content-updates-left-nav/ContentUpdatesLeftNavComponent.ts","webpack://@clickview/library-editor/./src/apps/content-updates/components/content-updates-left-nav/content-updates-left-nav.scss?e0ca","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/video-group-list/VideoGroupItem.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/video-group-list/VideoGroupList.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/video-group-list/VideoGroupListComponent.ts","webpack://@clickview/library-editor/./src/apps/content-updates/views/content-updates.scss?8aaa","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/shared/components/tabs/Tabs.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/shared/components/tabs/TabsComponent.ts","webpack://@clickview/library-editor/./src/shared/components/tabs/tabs.scss?0237"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE;;AAEA;AACA;AACA;AACA,+IAA+I,gBAAgB,sBAAsB,yGAAyG,aAAa;AAC3S;AACA,CAAC;AACD,uJAAuJ;;AAEvJ;AACA;AACA;AACA,2GAA2G,sBAAsB,yGAAyG,aAAa;AACvP;AACA,6IAA6I,qBAAqB,yEAAyE;AAC3O,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AClBjB;AAEA;AACA;AACA;AAGA;AACA;AAEA;AAEO,IAAM,6BAAb;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA,6BAiBe;AACX,aAAO;AACL,8BAAsB;AADjB,OAAP;AAGD;AArBH;AAAA;AAAA,wCAuB2B;AAAA;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ACD,OATD;AAWA,UAAI,KAAJ,EACE;;AAEF,UAAM,QAAQ,GAAG,iDAAQ,KAAK,OAAL,CAAa,IAArB,CAAjB;;AAEA,UAAI,QAAJ,EACE,QAAQ,CAAC,MAAT,GAAkB,IAAlB;AACH;AAtEH;AAAA;AAAA,qCAwEuB;AACnB,WAAK,YAAL;AACD;AA1EH;AAAA;AAAA,wBAOiB;AACb,aAAO,UAAP;AACD;AATH;AAAA;AAAA,wBAWsB;AAClB,UAAI,SAAS,GAAG,6BAAhB;AAEA,UAAI,KAAK,OAAL,CAAa,SAAjB,EACE,SAAS,eAAQ,KAAK,OAAL,CAAa,SAArB,CAAT;AAEF,aAAO,SAAP;AACD;AAlBH;AAAA;AAAA,wBAoBqB;AACjB,aAAO,gDAAP;AACD;AAtBH;AAAA;AAAA,wBAwBqB;AACjB,UAAM,KAAK,GAAiC,EAA5C;AAEA,WAAK,OAAL,CAAa,IAAb,CAAkB,OAAlB,CAA0B,UAAC,GAAD;AAAA,eAAc,KAAK,CAAC,GAAG,CAAC,IAAJ,CAAS,QAAV,CAAL,GAA2B,GAAG,CAAC,IAAJ,CAAS,OAAlD;AAAA,OAA1B;AAEA,aAAO,KAAP;AACD;AA9BH;;AAAA;AAAA,EAAmC,8DAAI,CAAC,SAAxC,E;;;;;;;;;;;ACzBA;AACA,kBAAkB,uD","file":"scripts/31.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, alias2=container.escapeExpression;\n\n return \"<button class=\\\"approve-all btn btn-success d-inline-block \"\n + alias2(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.btnClass : stack1), depth0))\n + \"\\\" type=\\\"button\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"approveBtn\",{\"name\":\"lang\",\"hash\":{\"smartCount\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.numVideos : stack1)},\"data\":data}))\n + \"</button>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<h5 class=\\\"d-inline-block m-0 \"\n + alias2(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.headingClass : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias3,\"heading\",{\"name\":\"lang\",\"hash\":{\"smartCount\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.numVideos : stack1)},\"data\":data}))\n + \"</h5>\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias3,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.videosToReview : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});","import { ObjectHash, Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { LocationContext, UserAction, EntityType, WorkflowPhase, OperationDescriptor } from 'libs/analytics/interfaces';\r\nimport { AnalyticsHelper } from 'libs/analytics/AnalyticsHelper';\r\n\r\nimport { DialogViewOptions } from 'shared/components/dialog/DialogView';\r\nimport { DialogHelper } from 'shared/utils';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nimport AwaitingReviewHeaderTemplate from './AwaitingReviewHeader.hbs';\r\n\r\nexport class AwaitingReviewHeaderComponent extends Core.Component {\r\n public get name(): string {\r\n return 'AwaitingReviewHeaderComponent';\r\n }\r\n\r\n public get className(): string {\r\n return 'd-flex justify-content-between align-items-center p-3 border-bottom';\r\n }\r\n\r\n public get template(): string {\r\n return AwaitingReviewHeaderTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'contentUpdates.awaitingReviewHeader';\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'click .approve-all': 'onClickApproveAll'\r\n };\r\n }\r\n\r\n private onClickApproveAll(): void {\r\n const dialog = new DialogHelper(this.getApproveAllDialogOptions());\r\n\r\n dialog.render()\r\n .done(() => this.onConfirmApproveAll());\r\n\r\n this.logAction(WorkflowPhase.Start);\r\n }\r\n\r\n private onConfirmApproveAll(): void {\r\n Radio.channel(this.options.channelName).trigger('approve:all');\r\n\r\n this.logAction(WorkflowPhase.Complete);\r\n }\r\n\r\n private getApproveAllDialogOptions(): DialogViewOptions {\r\n return {\r\n title: LanguageService.getPhrase(this.lang, 'dialogTitle'),\r\n text: LanguageService.getPhrase(this.lang, 'dialogBody'),\r\n buttons: [{\r\n text: LanguageService.getPhrase(this.lang, 'dialogButton'),\r\n className: 'btn btn-primary',\r\n success: true\r\n }]\r\n };\r\n }\r\n\r\n private logAction(workflowPhase: WorkflowPhase): void {\r\n const analyticsOptions = {\r\n location: LocationContext.AwaitingReviewVideoListHeader,\r\n actionType: UserAction.Approve,\r\n descriptor: OperationDescriptor.All,\r\n entity: EntityType.Video,\r\n workflowPhase\r\n };\r\n\r\n const data = {\r\n approvedCount: this.collection.length\r\n };\r\n\r\n AnalyticsHelper.logUserAction(data, analyticsOptions);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n videosToReview: !!this.collection.length,\r\n multipleVideos: this.collection.length > 1,\r\n numVideos: this.collection.length\r\n };\r\n }\r\n}","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"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 \"<div class=\\\"d-inline-block p-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.heading : stack1), depth0))\n + \"\\\"><h1 class=\\\"h3 m-0\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"contentUpdates\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h1></div><div class=\\\"tabs-region d-inline-flex align-items-end \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.tabsContainer : stack1), depth0))\n + \"\\\"></div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport ContentUpdatesHeaderTemplate from './ContentUpdatesHeader.hbs';\r\nimport { TabsComponent, Tab } from 'shared/components/tabs/TabsComponent';\r\nimport { ContentUpdatesTabs, ContentUpdateTabNames } from 'apps/content-updates/utils';\r\nimport styles from './content-updates-header.scss';\r\n\r\ninterface ContentUpdatesHeaderComponentOptions extends Core.ComponentOptions {\r\n activeTab: string;\r\n reviewEnabled: boolean;\r\n}\r\n\r\nexport class ContentUpdatesHeaderComponent extends Core.Component {\r\n protected options: ContentUpdatesHeaderComponentOptions;\r\n\r\n constructor(options: ContentUpdatesHeaderComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'ContentUpdatesHeaderComponent';\r\n }\r\n\r\n public get className(): string {\r\n return 'd-flex align-items-end border-bottom';\r\n }\r\n\r\n public get template(): string {\r\n return ContentUpdatesHeaderTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'contentUpdates.contentUpdatesHeader';\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n tabs: {\r\n el: '.tabs-region'\r\n }\r\n };\r\n }\r\n\r\n private getTabs(): Array<Tab> {\r\n const tabs = ContentUpdatesTabs;\r\n\r\n if (this.options.reviewEnabled) return tabs;\r\n\r\n return tabs.filter(t => t.name !== ContentUpdateTabNames.AwaitingReview);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n const tabs = this.getTabs();\r\n\r\n if (tabs.length <= 1) return;\r\n\r\n this.showChildView('tabs', new TabsComponent({\r\n tabs,\r\n activeTab: this.options.activeTab,\r\n className: 'border-0'\r\n }));\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"heading\":\"cv--heading--1SwZ2\",\"tabsContainer\":\"cv--tabsContainer--3f4T9\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression;\n\n return \"<div class=\\\"p-3 border-bottom\\\">\\r\\n <h5>\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"manualReviewHeading\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h5>\\r\\n <p>\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"manualReviewBody\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</p>\\r\\n <button class=\\\"btn btn-light text-center disable-review\\\" type=\\\"button\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"manualReviewOffBtn\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</button>\\r\\n</div>\\r\\n<div class=\\\"p-3 border-bottom\\\">\\r\\n <p class=\\\"m-0\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"noActionDisclaimer\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</p>\\r\\n <p class=\\\"m-0\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"learnMore\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \" <a href=\"\n + alias4(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.supportUrl : stack1), depth0))\n + \" target=\\\"_blank\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"learnMoreLink\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a></p>\\r\\n</div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\nimport { UrlHelper } from 'libs/common/backbone/utils/UrlHelper';\r\n\r\nimport { Actions, AppChannels, SupportArticles } from 'shared/constants';\r\nimport { LocationContext, UserAction, EntityType, WorkflowPhase, CustomerSettingDescriptor } from 'libs/analytics/interfaces';\r\nimport { AnalyticsHelper } from 'libs/analytics/AnalyticsHelper';\r\n\r\nimport ContentUpdatesLeftNavTemplate from './ContentUpdatesLeftNav.hbs';\r\nimport styles from './content-updates-left-nav.scss';\r\n\r\ninterface ContentUpdatesLeftNavComponentOptions extends Core.ComponentOptions {\r\n supportSiteUrl: string;\r\n}\r\n\r\nexport class ContentUpdatesLeftNavComponent extends Core.Component {\r\n public options: ContentUpdatesLeftNavComponentOptions;\r\n\r\n constructor(options: ContentUpdatesLeftNavComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'ContentUpdatesLeftNavComponent';\r\n }\r\n\r\n public get className(): string {\r\n return `d-inline-block ${styles.leftNav}`;\r\n }\r\n\r\n public get template(): string {\r\n return ContentUpdatesLeftNavTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'contentUpdates.contentUpdatesLeftNav';\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n return {\r\n '.disable-review': {\r\n application: AppChannels.CONTENT_UPDATES,\r\n action: Actions.ContentUpdates.DISABLE_REVIEW\r\n }\r\n };\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'click .disable-review': 'onClickDisableReview'\r\n };\r\n }\r\n\r\n private onClickDisableReview(): void {\r\n const analyticsOptions = {\r\n location: LocationContext.LeftNav,\r\n actionType: UserAction.Disable,\r\n entity: EntityType.CustomerSetting,\r\n descriptor: CustomerSettingDescriptor.LibraryReview,\r\n workflowPhase: WorkflowPhase.Start\r\n };\r\n\r\n AnalyticsHelper.logUserAction({}, analyticsOptions);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n supportUrl: UrlHelper.safeUrlConcat(this.options.supportSiteUrl, SupportArticles.LIBRARY_REVIEW)\r\n };\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"leftNav\":\"cv--leftNav--15vRB\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return \"<h4 class=\\\"pl-3\\\">\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.groupTitle : stack1), depth0))\n + \"</h4>\\r\\n<div class=\\\"video-list-region\\\"></div>\";\n},\"useData\":true});","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n return \"<div class=\\\"videos-region\\\"></div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\nimport { EmptyStateBehavior } from 'libs/shared/legacy/behaviors/empty-state/EmptyStateBehavior';\r\n\r\nimport { AppChannels, EmptyStateComponents, EmptyStateOptions } from 'shared/constants';\r\nimport { Config } from 'shared/models/Config';\r\nimport { EmptyState } from 'shared/enums';\r\nimport { VideoListComponent } from 'shared/components/video-list/VideoListComponent';\r\nimport { VideoItemComponentType } from 'shared/components/video-item/utils/VideoItemComponentTypes';\r\nimport { VideoSourcesMetadataComponentOptions } from 'shared/components/video-item/video-item-metadata/video-sources-metadata/VideoSourcesMetadataComponent';\r\nimport { VideoCollection } from 'shared/collections/VideoCollection';\r\n\r\nimport { VideoGroup } from 'apps/content-updates/models';\r\n\r\nimport VideoGroupListTemplate from './VideoGroupList.hbs';\r\nimport VideoGroupItemTemplate from './VideoGroupItem.hbs';\r\n\r\ninterface VideoGroupItemComponentOptions extends Core.ComponentOptions<VideoGroup> {\r\n videoItemComponentType?: VideoItemComponentType;\r\n videosWithMetadata?: VideoCollection;\r\n groupTitleAttr?: string;\r\n config: Config;\r\n sourceMetadataOptions?: VideoSourcesMetadataComponentOptions;\r\n customerHasCustomLibrary?: boolean;\r\n customerHasLocalCache?: boolean;\r\n collectionViewChannel?: string;\r\n}\r\n\r\nclass VideoGroupItemComponent extends Core.Component<VideoGroup> {\r\n protected options: VideoGroupItemComponentOptions;\r\n\r\n constructor(options: VideoGroupItemComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'VideoGroupItemComponent';\r\n }\r\n\r\n public get template(): string {\r\n return VideoGroupItemTemplate;\r\n }\r\n\r\n public get className(): string {\r\n return 'pt-3';\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n videoItemComponentType: VideoItemComponentType.Base\r\n };\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n videos: {\r\n el: '.video-list-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n private getGroupTitle(): string {\r\n const attr = this.options.groupTitleAttr || 'groupTitle';\r\n\r\n return this.model.get(attr);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n groupTitle: this.getGroupTitle()\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n this.showChildView('videos', new VideoListComponent({\r\n collection: this.model.videos,\r\n videosWithMetadata: this.options.videosWithMetadata,\r\n application: AppChannels.CONTENT_UPDATES,\r\n collectionIdentifier: null,\r\n videoItemComponentType: this.options.videoItemComponentType,\r\n config: this.options.config,\r\n sourceMetadataOptions: this.options.sourceMetadataOptions,\r\n collectionViewChannel: this.options.collectionViewChannel,\r\n customerHasLocalCache: this.options.customerHasLocalCache,\r\n customerHasCustomLibrary: this.options.customerHasCustomLibrary\r\n }));\r\n }\r\n}\r\n\r\ninterface VideoGroupItemComponentCollectionOptions extends Core.ComponentCollectionOptions {\r\n childOptions?: VideoGroupItemComponentOptions;\r\n}\r\n\r\nclass VideoGroupItemComponentCollection extends Core.ComponentCollection {\r\n public options: VideoGroupItemComponentCollectionOptions;\r\n\r\n constructor(options: VideoGroupItemComponentCollectionOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'VideoGroupItemComponentCollection';\r\n }\r\n\r\n public get childView(): any {\r\n return VideoGroupItemComponent;\r\n }\r\n\r\n public get childViewOptions(): ObjectHash {\r\n return this.options.childOptions;\r\n }\r\n}\r\n\r\ninterface VideoGroupListComponentOptions extends Core.ComponentOptions {\r\n childOptions?: VideoGroupItemComponentOptions;\r\n emptyStateType?: EmptyState;\r\n emptyStateOptions?: EmptyStateOptions;\r\n}\r\n\r\nexport class VideoGroupListComponent extends Core.Component {\r\n public options: VideoGroupListComponentOptions;\r\n\r\n constructor(options: VideoGroupListComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'VideoGroupListComponent';\r\n }\r\n\r\n public get template(): string {\r\n return VideoGroupListTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'contentUpdates.videoGroupList';\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n emptyState: EmptyState.Default\r\n };\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [\r\n {\r\n behaviorClass: EmptyStateBehavior,\r\n region: 'videos',\r\n type: this.options.emptyStateType,\r\n componentOptions: this.getEmptyStateComponentOptions(),\r\n emptyStateComponents: EmptyStateComponents\r\n }\r\n ];\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n videos: {\r\n el: '.videos-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n private getEmptyStateComponentOptions(): ObjectHash {\r\n if (this.options.emptyStateType === EmptyState.AwaitingReview) {\r\n return {\r\n heading: LanguageService.getPhrase(this.lang, 'awaitingReviewEmptyStateHeading'),\r\n description: LanguageService.getPhrase(this.lang, 'awaitingReviewEmptyStateBody')\r\n };\r\n }\r\n\r\n if (this.options.emptyStateType === EmptyState.PastReleases) {\r\n return {\r\n heading: LanguageService.getPhrase(this.lang, 'pastReleasesEmptyStateHeading')\r\n };\r\n }\r\n }\r\n\r\n public onRender(): void {\r\n this.showChildView('videos', new VideoGroupItemComponentCollection(this.options));\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"content\":\"cv--content--303Nb\",\"contentWithLeftNav\":\"cv--contentWithLeftNav--2ZCHY\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers.unless.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.hide : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(2, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <a class=\\\"\"\n + alias3(alias2(((stack1 = ((stack1 = (depths[1] != null ? depths[1].options : depths[1])) != null ? stack1.styles : stack1)) != null ? stack1.link : stack1), depth0))\n + \" p-2 \"\n + alias3(alias2((depth0 != null ? depth0.link : depth0), depth0))\n + \" \"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.active : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\">\"\n + alias3(alias2((depth0 != null ? depth0.name : depth0), depth0))\n + \"</a>\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depths[1] != null ? depths[1].options : depths[1])) != null ? stack1.styles : stack1)) != null ? stack1.active : stack1), depth0))\n + \" border-bottom border-primary text-primary\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.tabs : stack1),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true,\"useDepths\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport styles from './tabs.scss';\r\nimport TabsTemplate from './Tabs.hbs';\r\n\r\ninterface TabAppLink {\r\n selector: string;\r\n appLink: Object;\r\n}\r\n\r\nexport interface Tab {\r\n name: string | (() => string);\r\n active?: boolean;\r\n link: TabAppLink;\r\n hide?: boolean;\r\n}\r\n\r\ninterface TabsComponentOptions extends Core.ComponentOptions {\r\n tabs: Array<Tab>;\r\n activeTab: string;\r\n}\r\n\r\nexport class TabsComponent extends Core.Component {\r\n public options: TabsComponentOptions;\r\n\r\n constructor(options: TabsComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'TabsView';\r\n }\r\n\r\n public get className(): string {\r\n let className = 'bg-white py-2 border-bottom';\r\n\r\n if (this.options.className)\r\n className += ` ${this.options.className}`;\r\n\r\n return className;\r\n }\r\n\r\n public get template(): any {\r\n return TabsTemplate;\r\n }\r\n\r\n public get appLinks(): ObjectHash {\r\n const links: {[selector: string]: Object} = {};\r\n\r\n this.options.tabs.forEach((tab: Tab) => links[tab.link.selector] = tab.link.appLink);\r\n\r\n return links;\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n const { tabs } = this.options;\r\n\r\n const pageTabs = tabs.map((tab: Tab) => {\r\n return {\r\n ...tab,\r\n link: tab.link.selector.replace('.', '')\r\n };\r\n });\r\n\r\n return {\r\n styles,\r\n tabs: pageTabs\r\n };\r\n }\r\n\r\n private setActiveTab(): void {\r\n // Find active applink and set it as active if exists, or set first tab as active\r\n let found = false;\r\n\r\n this.options.tabs.forEach((t: Tab) => {\r\n // First reset all tabs to not active\r\n t.active = false;\r\n\r\n if (t.link.selector !== this.options.activeTab)\r\n return;\r\n\r\n t.active = true;\r\n found = true;\r\n });\r\n\r\n if (found)\r\n return;\r\n\r\n const firstTab = _.first(this.options.tabs);\r\n\r\n if (firstTab)\r\n firstTab.active = true;\r\n }\r\n\r\n public onBeforeRender(): void {\r\n this.setActiveTab();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"link\":\"cv--link--5idZs\",\"active\":\"cv--active--3Ty4M\"};"],"sourceRoot":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[32],{1005:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(237);function i(e){return(i="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 l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=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,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==i(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 f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=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&&s(e,t)}(u,e);var t,n,r,i=c(u);function u(){return l(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=o.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}}])&&a(t.prototype,n),r&&a(t,r),u}(r.a.Model)},1017:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(1),o=n(2),i=n(277);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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=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,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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 f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=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&&s(e,t)}(u,e);var t,n,o,l=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),l.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,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{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 i.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}}])&&a(t.prototype,n),o&&a(t,o),u}(o.a.ComponentCollection)},1022:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(7),o=n(2),i=n(3),l=n(1036),a=n(12),s=n(1023),c=n.n(s),u=n(1024),f=n.n(u);function p(e){return(p="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 d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(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 g=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,o,s=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&d(t.prototype,n),o&&d(t,o),u}(o.a.Component)},1023:function(e,t,n){var r=n(9);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1024:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1059:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(7),i=n(2),l=n(1017),a=n(12),s=n(1060),c=n.n(s),u=n(1061),f=n.n(u);function p(e){return(p="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 d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(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 g=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,i,s=y(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=s.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){o.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),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){a.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(a.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)||(a.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=a.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=a.c.getSelected(this.collection)||this.collection.first(),r=this.collection.indexOf(n);return(t=38===e?this.collection.at(r-this.optionStep):this.collection.at(r+this.optionStep))||(a.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=r.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=r.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var o=n[this.sameCharIndex];return o||(o=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.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")||!!r.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=a.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:f.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.a({collection:this.collection,channelName:this.options.channelName,childOptions:r.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(f.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"}}}])&&d(t.prototype,n),i&&d(t,i),u}(i.a.Component)},1060:function(e,t,n){var r=n(9);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,r,o){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" \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!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' \r\n name="'+a(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+a(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,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"}},1082:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(7),i=n(2),l=n(3),a=n(40),s=n(1059),c=n(12),u=n(1083),f=n.n(u);function p(e){return(p="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 d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(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 g=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)}(p,e);var t,n,i,u=y(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.bindListeners(),c.c.deselectAll(this.collection),c.c.setSelected(this.options.currentLibraryId,this.collection)}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){o.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new s.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||l.a.getPhrase(this.lang,"placeholder"),noOptionsText:l.a.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:a.a}))}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f.a}}])&&d(t.prototype,n),i&&d(t,i),p}(i.a.Component)},1083:function(e,t,n){var r=n(9);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1311:function(e,t,n){var r=n(9);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.foundLibraries:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasAvailableLibraries:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showNoFolderText:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"foundLibraries",{name:"lang",hash:{libraries:null!=(i=null!=t?t.options:t)?i.foundLibraries:i},data:o}))?i:"")+"</p>\r\n </div>\r\n"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return' <span class="d-block pb-2">'+s((n.lang||t&&t.lang||a).call(l,"selectFolder",{name:"lang",hash:{},data:o}))+"</span>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="mt-1 mb-2 library-dropdown-region"></div>\r\n\r\n <span class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+' folder-name">'+s((n.lang||t&&t.lang||a).call(l,"folder",{name:"lang",hash:{},data:o}))+'</span>\r\n <div class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folderSelector:i,t))+' mt-1 folder-selector-region"></div>\r\n'},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="'+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:o}))+"</span>\r\n"},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing;return" <p>"+e.escapeExpression((n.lang||t&&t.lang||a).call(l,"noFolders1",{name:"lang",hash:{},data:o}))+"</p>\r\n <p>"+(null!=(i=(n.lang||t&&t.lang||a).call(l,"noFolders2",{name:"lang",hash:{},data:o}))?i:"")+"</p>\r\n"},9:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(9,o,0),data:o}))?i:""},useData:!0})},1312:function(e,t,n){e.exports={header:"_1tdTv"}},1414:function(e,t,n){"use strict";n.r(t),n.d(t,"AddToLibraryView",(function(){return L}));var r=n(1),o=n(2),i=n(5),l=n(237),a=n(1022),s=n(273),c=n(6),u=n(59),f=n(1005),p=n(12),d=n(0),h=n(3),y=n(131),b=n(1082),m=n(1311),g=n.n(m),v=n(1312),w=n.n(v);function k(e){return(k="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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(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,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==k(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 C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=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&&O(e,t)}(v,e);var t,n,o,m=x(v);function v(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),m.call(this,e)}return t=v,(n=[{key:"initialize",value:function(){this.videoDataService=i.a.getInstance(d.g.Video,this),this.bindListeners()}},{key:"regions",value:function(){return{libraryDropdown:".library-dropdown-region",folderSelector:".folder-selector-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"bindListeners",value:function(){this.listenTo("".concat(this.channelName,":library"),"library:selected",this.onLibrarySelected),this.listenTo("".concat(this.channelName,":folder"),"folder:selected",this.onFolderSelected),this.listenTo(d.e.VIDEO,"".concat(d.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(d.e.VIDEO,"get:video:categories:libraries:".concat(this.options.videoId,":sync"),this.render)}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.spinnerModel.set(l.c.ShowSpinner,!0),this.addToLibrary()}},{key:"onLibrarySelected",value:function(e){this.spinnerModel.set(l.c.Disabled,!0),p.f.setSelected(this.libraryTreeKey,e.get("id"),this.customLibraries),this.renderFolderSelector()}},{key:"onFolderSelected",value:function(e){this.spinnerModel.set(l.c.Disabled,!1),p.f.setSelected(this.folderTreeKey,e,this.customLibraries)}},{key:"getVideosCustomLibraryNames",value:function(){if(!this.dataFetched())return null;var e=this.getVideoCustomLibraries();if(!e.length)return null;var t=r.map(e,(function(e){return"<strong>".concat(p.v.escapeExpression(e),"</strong>")}));if(1===t.length)return t[0];var n=h.a.getPhrase(this.lang,"and");return"".concat(t.slice(0,-1).join(", ")," ").concat(n," ").concat(t.slice(-1))}},{key:"addToLibrary",value:function(){var e,t,n=this,o=p.f.getSelected(this.folderTreeKey,this.customLibraries),i=o.get("id"),l=p.f.getSelected(this.libraryTreeKey,this.customLibraries).get("id"),a=this.model.libraries.filter((function(e){return e.get("type")===u.a.HostedLibrary})),s=this.model.categories;s&&s.last()&&(e=s.last().get("id")),a&&a.length&&(t=r.last(a).get("id"));var f={masterObjectId:this.options.videoId,masterObjectType:c.i.Video,metadata:{sourceLibraryId:t,sourceCategoryId:e,destinationLibraryId:l,destinationCategoryId:i}};this.videoDataService.addVideoToCustomLibrary(f,this.model,o,(function(){n.triggerMethod("hide")}))}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(l.c.Disabled)&&this.hasAvailableLibraries())return{title:h.a.getPhrase(this.lang,"heading")}}},{key:"getAvailableCustomLibraries",value:function(){if(!this.dataFetched())return null;var e=this.customLibraries.clone();e.remove(this.model.libraries.filter((function(e){return e.get("type")===u.a.CustomLibrary})));var t=e.filter((function(e){return 0===e.children.length}));return e.remove(t),e}},{key:"hasAvailableLibraries",value:function(){if(!this.customLibraries)return!1;var e=this.getAvailableCustomLibraries();return e&&e.length>0}},{key:"hasFolders",value:function(){return!!this.customLibraries&&!!this.customLibraries.find((function(e){return!!e.get("children").length}))}},{key:"getVideoCustomLibraries",value:function(){if(!this.model||!this.model.libraries||!this.model.libraries.length)return null;var e=this.model.libraries.filter((function(e){return e.get("type")===u.a.CustomLibrary}));return r.map(e,(function(e){return e.get("name")}))}},{key:"dataFetched",value:function(){return!!this.model}},{key:"renderLibraryDropdown",value:function(){if(this.customLibraries.length<=1)this.renderFolderSelector();else{var e=p.f.getSelected(this.libraryTreeKey,this.customLibraries),t=this.getUI("folderName");this.$(t).hide(),this.showChildView("libraryDropdown",new b.a({currentLibraryId:e?e.get("id"):null,collection:this.getAvailableCustomLibraries(),channelName:"".concat(this.channelName,":library")}))}}},{key:"renderFolderSelector",value:function(){var e=this.getAvailableCustomLibraries();1===e.length&&p.f.setSelected(this.libraryTreeKey,e.first().get("id"),e);var t=p.f.getSelected(this.libraryTreeKey,e),n=t.get("children")&&!!t.get("children").length,r=this.getUI("folderName");t&&n&&this.$(r).show(),this.showChildView("folderSelector",new a.a({collection:t.children,channelName:"".concat(this.channelName,":folder"),folderTreeKey:this.folderTreeKey}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){var e;return{styles:w.a,foundLibraries:this.getVideosCustomLibraryNames(),hasAvailableLibraries:this.hasAvailableLibraries(),hasMultipleLibraries:(null===(e=this.customLibraries)||void 0===e?void 0:e.length)>1,dataFetched:this.dataFetched(),spinnerEl:p.q.getSpinner({size:p.r.Large,extraClasses:"mx-auto"}),showNoFolderText:!this.hasFolders()}}},{key:"onRender",value:function(){this.dataFetched()&&this.hasAvailableLibraries()&&this.renderLibraryDropdown()}},{key:"name",get:function(){return"AddToLibraryView"}},{key:"title",get:function(){return h.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.addToLibrary"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"appLinks",get:function(){return{".library-editor-applink":{application:d.b.LIBRARY_EDITOR,action:d.a.LibraryEditor.HOME}}}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"template",get:function(){return g.a}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.f,title:h.a.getPhrase(this.lang,"submitTooltip"),size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new f.a,buttonText:h.a.getPhrase(this.lang,"addBtn"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}}}]}},{key:"elements",get:function(){return{folderName:".folder-name"}}},{key:"requiredResources",get:function(){return{customLibraries:y.b.libraries}}}])&&S(t.prototype,n),o&&S(t,o),v}(o.a.View)}}]);
|