@clickview/library-editor 1.1.26-rc.0 → 1.1.26
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/css/1.chunk.css.map +1 -0
- package/dist/css/10.chunk.css.map +1 -0
- package/dist/css/11.chunk.css +137 -0
- package/dist/css/11.chunk.css.map +1 -0
- package/dist/css/12.chunk.css.map +1 -0
- package/dist/css/13.chunk.css.map +1 -0
- package/dist/css/14.chunk.css.map +1 -0
- package/dist/css/16.chunk.css.map +1 -0
- package/dist/css/17.chunk.css.map +1 -0
- package/dist/css/18.chunk.css +20 -0
- package/dist/css/18.chunk.css.map +1 -0
- package/dist/css/2.chunk.css +145 -0
- package/dist/css/2.chunk.css.map +1 -0
- package/dist/css/21.chunk.css.map +1 -0
- package/dist/css/22.chunk.css.map +1 -0
- package/dist/css/23.chunk.css.map +1 -0
- package/dist/css/25.chunk.css.map +1 -0
- package/dist/css/26.chunk.css.map +1 -0
- package/dist/css/28.chunk.css.map +1 -0
- package/dist/css/29.chunk.css.map +1 -0
- package/dist/css/3.chunk.css.map +1 -0
- package/dist/css/30.chunk.css.map +1 -0
- package/dist/css/31.chunk.css.map +1 -0
- package/dist/css/32.chunk.css.map +1 -0
- package/dist/css/33.chunk.css.map +1 -0
- package/dist/css/34.chunk.css +21 -0
- package/dist/css/34.chunk.css.map +1 -0
- package/dist/css/35.chunk.css +20 -0
- package/dist/css/35.chunk.css.map +1 -0
- package/dist/css/36.chunk.css +14 -0
- package/dist/css/36.chunk.css.map +1 -0
- package/dist/css/37.chunk.css.map +1 -0
- package/dist/css/38.chunk.css.map +1 -0
- package/dist/css/40.chunk.css.map +1 -0
- package/dist/css/41.chunk.css.map +1 -0
- package/dist/css/42.chunk.css.map +1 -0
- package/dist/css/43.chunk.css.map +1 -0
- package/dist/css/44.chunk.css.map +1 -0
- package/dist/css/45.chunk.css.map +1 -0
- package/dist/css/46.chunk.css.map +1 -0
- package/dist/css/47.chunk.css.map +1 -0
- package/dist/css/48.chunk.css.map +1 -0
- package/dist/css/49.chunk.css +35 -0
- package/dist/css/49.chunk.css.map +1 -0
- package/dist/css/50.chunk.css.map +1 -0
- package/dist/css/51.chunk.css.map +1 -0
- package/dist/css/52.chunk.css +66 -0
- package/dist/css/52.chunk.css.map +1 -0
- package/dist/css/55.chunk.css.map +1 -0
- package/dist/css/56.chunk.css.map +1 -0
- package/dist/css/58.chunk.css.map +1 -0
- package/dist/css/59.chunk.css.map +1 -0
- package/dist/css/6.chunk.css.map +1 -0
- package/dist/css/60.chunk.css +18 -0
- package/dist/css/60.chunk.css.map +1 -0
- package/dist/css/62.chunk.css.map +1 -0
- package/dist/css/63.chunk.css +170 -0
- package/dist/css/63.chunk.css.map +1 -0
- package/dist/css/67.chunk.css +78 -0
- package/dist/css/67.chunk.css.map +1 -0
- package/dist/css/68.chunk.css +17 -0
- package/dist/css/68.chunk.css.map +1 -0
- package/dist/css/69.chunk.css +17 -0
- package/dist/css/69.chunk.css.map +1 -0
- package/dist/css/7.chunk.css.map +1 -0
- package/dist/css/70.chunk.css +23 -0
- package/dist/css/70.chunk.css.map +1 -0
- package/dist/css/71.chunk.css +40 -0
- package/dist/css/71.chunk.css.map +1 -0
- package/dist/css/72.chunk.css +16 -0
- package/dist/css/72.chunk.css.map +1 -0
- package/dist/css/73.chunk.css +37 -0
- package/dist/css/73.chunk.css.map +1 -0
- package/dist/css/74.chunk.css +29 -0
- package/dist/css/74.chunk.css.map +1 -0
- package/dist/css/75.chunk.css +6 -0
- package/dist/css/75.chunk.css.map +1 -0
- package/dist/css/76.chunk.css +6 -0
- package/dist/css/76.chunk.css.map +1 -0
- package/dist/css/8.chunk.css.map +1 -0
- package/dist/css/library-editor-app.css.map +1 -0
- package/dist/libs/common/src/react/flight/enums/RequestStatus.d.ts +6 -0
- package/dist/libs/common/src/react/flight/enums/index.d.ts +1 -0
- package/dist/libs/common/src/react/flight/interfaces/FlightState.d.ts +22 -0
- package/dist/libs/common/src/react/flight/interfaces/NormalizeOptions.d.ts +4 -0
- package/dist/libs/common/src/react/flight/interfaces/Request.d.ts +29 -0
- package/dist/libs/common/src/react/flight/interfaces/UpdateStateOptions.d.ts +15 -0
- package/dist/libs/common/src/react/interfaces/ApplicationData.d.ts +3 -0
- package/dist/libs/common/src/react/interfaces/ApplicationState.d.ts +8 -0
- package/dist/libs/common/src/react/interfaces/BaseReducerActions.d.ts +4 -0
- package/dist/libs/common/src/react/interfaces/index.d.ts +4 -0
- package/dist/libs/shared/src/enums/MasterObjectTypes.d.ts +8 -0
- package/dist/libs/shared/src/enums/ObjectOwnerType.d.ts +4 -0
- package/dist/libs/shared/src/enums/UploadInteractionType.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +20 -0
- package/dist/libs/shared/src/interfaces/models/Language.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.d.ts +5 -0
- package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropBehavior.d.ts +19 -0
- package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropHelper.d.ts +4 -0
- package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropMaskBehavior.d.ts +19 -0
- package/dist/libs/shared/src/legacy/behaviors/file-select/FileSelectBehavior.d.ts +16 -0
- package/dist/libs/shared/src/legacy/components/file-select/FileSelectComponent.d.ts +29 -0
- package/dist/libs/shared/src/legacy/components/file-uploads/FileUploadComponent.d.ts +15 -0
- package/dist/libs/shared/src/legacy/components/resource-item/ResourceItemComponent.d.ts +22 -0
- package/dist/libs/shared/src/legacy/components/subtitle-item/SubtitleItemComponent.d.ts +17 -0
- package/dist/libs/shared/src/legacy/errors/too-many-files/TooManyFilesError.d.ts +7 -0
- package/dist/libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError.d.ts +8 -0
- package/dist/libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError.d.ts +8 -0
- package/dist/libs/shared/src/utils/SubtitleHelper.d.ts +9 -0
- package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +21 -0
- package/dist/scripts/0-1c2bb7e28a.chunk.js +1 -0
- package/dist/scripts/0-1dbc79e4e7.chunk.js +1 -0
- package/dist/scripts/0-93276429bf.chunk.js +1 -0
- package/dist/scripts/0.chunk.js +1039 -0
- package/dist/scripts/0.chunk.js.map +1 -0
- package/dist/scripts/1-480e5932a6.chunk.js +1 -0
- package/dist/scripts/1-6051b28de6.chunk.js +1 -0
- package/dist/scripts/1-b85c11fc30.chunk.js +1 -0
- package/dist/scripts/1.chunk.js +442 -0
- package/dist/scripts/1.chunk.js.map +1 -0
- package/dist/scripts/10-3ff370d548.chunk.js +1 -0
- package/dist/scripts/10-923c4b075a.chunk.js +1 -0
- package/dist/scripts/10-e2fea45a6c.chunk.js +1 -0
- package/dist/scripts/10.chunk.js +820 -0
- package/dist/scripts/10.chunk.js.map +1 -0
- package/dist/scripts/11-3dec7d2c7e.chunk.js +11 -0
- package/dist/scripts/11-74bc3f2d9f.chunk.js +11 -0
- package/dist/scripts/11.chunk.js +4091 -0
- package/dist/scripts/11.chunk.js.map +1 -0
- package/dist/scripts/12-07999b80e0.chunk.js +1 -0
- package/dist/scripts/12-24bd360be0.chunk.js +1 -0
- package/dist/scripts/12-e522e64a94.chunk.js +1 -0
- package/dist/scripts/12.chunk.js +555 -0
- package/dist/scripts/12.chunk.js.map +1 -0
- package/dist/scripts/13-081c0e5887.chunk.js +1 -0
- package/dist/scripts/13-54fe4fe53b.chunk.js +1 -0
- package/dist/scripts/13-958a8fd026.chunk.js +1 -0
- package/dist/scripts/13.chunk.js +380 -0
- package/dist/scripts/13.chunk.js.map +1 -0
- package/dist/scripts/14-16f84b2721.chunk.js +1 -0
- package/dist/scripts/14-45cd4dc6ef.chunk.js +1 -0
- package/dist/scripts/14-68c85d6674.chunk.js +1 -0
- package/dist/scripts/14.chunk.js +2386 -0
- package/dist/scripts/14.chunk.js.map +1 -0
- package/dist/scripts/15-12fa4c3471.chunk.js +1 -0
- package/dist/scripts/15-5544e6bde6.chunk.js +1 -0
- package/dist/scripts/15-8c96c3288e.chunk.js +1 -0
- package/dist/scripts/15.chunk.js +314 -0
- package/dist/scripts/15.chunk.js.map +1 -0
- package/dist/scripts/16-670c43d26f.chunk.js +1 -0
- package/dist/scripts/16-742a776f88.chunk.js +1 -0
- package/dist/scripts/16-7bcffb06e7.chunk.js +1 -0
- package/dist/scripts/16.chunk.js +1290 -0
- package/dist/scripts/16.chunk.js.map +1 -0
- package/dist/scripts/17-140fec014b.chunk.js +1 -0
- package/dist/scripts/17-b5e44e8b17.chunk.js +1 -0
- package/dist/scripts/17-f6b0159da3.chunk.js +1 -0
- package/dist/scripts/17.chunk.js +381 -0
- package/dist/scripts/17.chunk.js.map +1 -0
- package/dist/scripts/18.chunk.js +393 -0
- package/dist/scripts/18.chunk.js.map +1 -0
- package/dist/scripts/19.chunk.js +364 -0
- package/dist/scripts/19.chunk.js.map +1 -0
- package/dist/scripts/2-0c5fba8b60.chunk.js +1 -0
- package/dist/scripts/2-7cc9176e8a.chunk.js +1 -0
- package/dist/scripts/2.chunk.js +523 -0
- package/dist/scripts/2.chunk.js.map +1 -0
- package/dist/scripts/20-4d88ede0e0.chunk.js +1 -0
- package/dist/scripts/20-732a7a549d.chunk.js +1 -0
- package/dist/scripts/20-df9f6f7661.chunk.js +1 -0
- package/dist/scripts/20.chunk.js +317 -0
- package/dist/scripts/20.chunk.js.map +1 -0
- package/dist/scripts/21-0b84d33cef.chunk.js +1 -0
- package/dist/scripts/21-c9983ca8ad.chunk.js +1 -0
- package/dist/scripts/21-ee85b6d208.chunk.js +1 -0
- package/dist/scripts/21.chunk.js +531 -0
- package/dist/scripts/21.chunk.js.map +1 -0
- package/dist/scripts/22-151cf38018.chunk.js +1 -0
- package/dist/scripts/22-3b2207c8f6.chunk.js +1 -0
- package/dist/scripts/22-6e6ed9f607.chunk.js +1 -0
- package/dist/scripts/22.chunk.js +354 -0
- package/dist/scripts/22.chunk.js.map +1 -0
- package/dist/scripts/23-1af21bf234.chunk.js +1 -0
- package/dist/scripts/23-94f9fe4222.chunk.js +1 -0
- package/dist/scripts/23-ab8f73ee87.chunk.js +1 -0
- package/dist/scripts/23.chunk.js +604 -0
- package/dist/scripts/23.chunk.js.map +1 -0
- package/dist/scripts/24-74ab289589.chunk.js +1 -0
- package/dist/scripts/24-7aa9b43511.chunk.js +1 -0
- package/dist/scripts/24-d1ffdd4755.chunk.js +1 -0
- package/dist/scripts/24.chunk.js +318 -0
- package/dist/scripts/24.chunk.js.map +1 -0
- package/dist/scripts/25-5a38ce3533.chunk.js +1 -0
- package/dist/scripts/25-76d9011eea.chunk.js +1 -0
- package/dist/scripts/25-866cfc0ef5.chunk.js +1 -0
- package/dist/scripts/25.chunk.js +365 -0
- package/dist/scripts/25.chunk.js.map +1 -0
- package/dist/scripts/26-d166e3c313.chunk.js +1 -0
- package/dist/scripts/26-e53ba8e00f.chunk.js +1 -0
- package/dist/scripts/26-ea028a6276.chunk.js +1 -0
- package/dist/scripts/26.chunk.js +442 -0
- package/dist/scripts/26.chunk.js.map +1 -0
- package/dist/scripts/27-2109d41afa.chunk.js +1 -0
- package/dist/scripts/27-c1241fcd84.chunk.js +1 -0
- package/dist/scripts/27-ee88c84482.chunk.js +1 -0
- package/dist/scripts/27.chunk.js +3630 -0
- package/dist/scripts/27.chunk.js.map +1 -0
- package/dist/scripts/28-5c540e74cc.chunk.js +1 -0
- package/dist/scripts/28-76b9766891.chunk.js +1 -0
- package/dist/scripts/28-e490147f6b.chunk.js +1 -0
- package/dist/scripts/28.chunk.js +3172 -0
- package/dist/scripts/28.chunk.js.map +1 -0
- package/dist/scripts/29-2da59b1589.chunk.js +1 -0
- package/dist/scripts/29-69389908f8.chunk.js +1 -0
- package/dist/scripts/29-bb7e39304b.chunk.js +1 -0
- package/dist/scripts/29.chunk.js +3090 -0
- package/dist/scripts/29.chunk.js.map +1 -0
- package/dist/scripts/3-6e67dd4b74.chunk.js +1 -0
- package/dist/scripts/3-81b501ac1e.chunk.js +1 -0
- package/dist/scripts/3-c69e4454ce.chunk.js +1 -0
- package/dist/scripts/3.chunk.js +845 -0
- package/dist/scripts/3.chunk.js.map +1 -0
- package/dist/scripts/30-9d32d88d76.chunk.js +1 -0
- package/dist/scripts/30-a1df3e37da.chunk.js +1 -0
- package/dist/scripts/30-fa390c35f6.chunk.js +1 -0
- package/dist/scripts/30.chunk.js +1851 -0
- package/dist/scripts/30.chunk.js.map +1 -0
- package/dist/scripts/31-ce31250e42.chunk.js +1 -0
- package/dist/scripts/31-f15802825c.chunk.js +1 -0
- package/dist/scripts/31-fc63c4629d.chunk.js +1 -0
- package/dist/scripts/31.chunk.js +958 -0
- package/dist/scripts/31.chunk.js.map +1 -0
- package/dist/scripts/32-1ad8193581.chunk.js +1 -0
- package/dist/scripts/32-4173874dbe.chunk.js +1 -0
- package/dist/scripts/32-9bca57f408.chunk.js +1 -0
- package/dist/scripts/32.chunk.js +1235 -0
- package/dist/scripts/32.chunk.js.map +1 -0
- package/dist/scripts/33-20ac0ab4a1.chunk.js +1 -0
- package/dist/scripts/33-350334db4c.chunk.js +1 -0
- package/dist/scripts/33-7efae85b8b.chunk.js +1 -0
- package/dist/scripts/33.chunk.js +958 -0
- package/dist/scripts/33.chunk.js.map +1 -0
- package/dist/scripts/34-3adf309726.chunk.js +1 -0
- package/dist/scripts/34-c4f0495750.chunk.js +1 -0
- package/dist/scripts/34-f6eea83a09.chunk.js +1 -0
- package/dist/scripts/34.chunk.js +990 -0
- package/dist/scripts/34.chunk.js.map +1 -0
- package/dist/scripts/35-17b30890a5.chunk.js +1 -0
- package/dist/scripts/35-7f90628b77.chunk.js +1 -0
- package/dist/scripts/35-9c3899dfbd.chunk.js +1 -0
- package/dist/scripts/35.chunk.js +518 -0
- package/dist/scripts/35.chunk.js.map +1 -0
- package/dist/scripts/36-2ec95df618.chunk.js +1 -0
- package/dist/scripts/36-b5ad543fba.chunk.js +1 -0
- package/dist/scripts/36-cdbe95bd06.chunk.js +1 -0
- package/dist/scripts/36.chunk.js +335 -0
- package/dist/scripts/36.chunk.js.map +1 -0
- package/dist/scripts/37-3f3a603b60.chunk.js +1 -0
- package/dist/scripts/37-6fa4b8fc60.chunk.js +1 -0
- package/dist/scripts/37-c649a307d4.chunk.js +1 -0
- package/dist/scripts/37.chunk.js +236 -0
- package/dist/scripts/37.chunk.js.map +1 -0
- package/dist/scripts/38-1c98f19489.chunk.js +1 -0
- package/dist/scripts/38-6fc346f964.chunk.js +1 -0
- package/dist/scripts/38-7ffe535b0d.chunk.js +1 -0
- package/dist/scripts/38.chunk.js +315 -0
- package/dist/scripts/38.chunk.js.map +1 -0
- package/dist/scripts/39-13d6669c3f.chunk.js +1 -0
- package/dist/scripts/39-71c4bb46b2.chunk.js +1 -0
- package/dist/scripts/39-e5983a5d53.chunk.js +1 -0
- package/dist/scripts/39.chunk.js +107 -0
- package/dist/scripts/39.chunk.js.map +1 -0
- package/dist/scripts/4-435484d217.chunk.js +1 -0
- package/dist/scripts/4-7274621693.chunk.js +1 -0
- package/dist/scripts/4-85ba8523ad.chunk.js +1 -0
- package/dist/scripts/4.chunk.js +335 -0
- package/dist/scripts/4.chunk.js.map +1 -0
- package/dist/scripts/40-2ecbd41570.chunk.js +1 -0
- package/dist/scripts/40-a691a401ff.chunk.js +1 -0
- package/dist/scripts/40-f1d72b1049.chunk.js +1 -0
- package/dist/scripts/40.chunk.js +2493 -0
- package/dist/scripts/40.chunk.js.map +1 -0
- package/dist/scripts/41-0368ba16dc.chunk.js +1 -0
- package/dist/scripts/41-85fcb15184.chunk.js +1 -0
- package/dist/scripts/41-bb9aef24f7.chunk.js +1 -0
- package/dist/scripts/41.chunk.js +1782 -0
- package/dist/scripts/41.chunk.js.map +1 -0
- package/dist/scripts/42-389acb6e55.chunk.js +1 -0
- package/dist/scripts/42-3ef41f40f5.chunk.js +1 -0
- package/dist/scripts/42-61a626d7f4.chunk.js +1 -0
- package/dist/scripts/42.chunk.js +2327 -0
- package/dist/scripts/42.chunk.js.map +1 -0
- package/dist/scripts/43-2fe5b1c9cc.chunk.js +1 -0
- package/dist/scripts/43-49f13dab14.chunk.js +1 -0
- package/dist/scripts/43-a5b882d502.chunk.js +1 -0
- package/dist/scripts/43.chunk.js +1206 -0
- package/dist/scripts/43.chunk.js.map +1 -0
- package/dist/scripts/44-0703eb0ad8.chunk.js +1 -0
- package/dist/scripts/44-de22428999.chunk.js +1 -0
- package/dist/scripts/44-ee6a740a16.chunk.js +1 -0
- package/dist/scripts/44.chunk.js +2245 -0
- package/dist/scripts/44.chunk.js.map +1 -0
- package/dist/scripts/45-806dd5b78c.chunk.js +1 -0
- package/dist/scripts/45-da34a8b6b2.chunk.js +1 -0
- package/dist/scripts/45-e4a92a40fd.chunk.js +1 -0
- package/dist/scripts/45.chunk.js +1065 -0
- package/dist/scripts/45.chunk.js.map +1 -0
- package/dist/scripts/46-4aa05464fe.chunk.js +1 -0
- package/dist/scripts/46-cccef3e874.chunk.js +1 -0
- package/dist/scripts/46-ebf8eee4ac.chunk.js +1 -0
- package/dist/scripts/46.chunk.js +655 -0
- package/dist/scripts/46.chunk.js.map +1 -0
- package/dist/scripts/47-1e3d829757.chunk.js +1 -0
- package/dist/scripts/47-56d22af6ba.chunk.js +1 -0
- package/dist/scripts/47-c61fa52c53.chunk.js +1 -0
- package/dist/scripts/47.chunk.js +736 -0
- package/dist/scripts/47.chunk.js.map +1 -0
- package/dist/scripts/48-877e9e02b8.chunk.js +1 -0
- package/dist/scripts/48-e05ab3ecac.chunk.js +1 -0
- package/dist/scripts/48-fc96b968fc.chunk.js +1 -0
- package/dist/scripts/48.chunk.js +994 -0
- package/dist/scripts/48.chunk.js.map +1 -0
- package/dist/scripts/49-13c5f8e87d.chunk.js +1 -0
- package/dist/scripts/49-4a6c119f58.chunk.js +1 -0
- package/dist/scripts/49-f9151c7e06.chunk.js +1 -0
- package/dist/scripts/49.chunk.js +761 -0
- package/dist/scripts/49.chunk.js.map +1 -0
- package/dist/scripts/5-1ba89c4774.chunk.js +1 -0
- package/dist/scripts/5-515b264fbc.chunk.js +1 -0
- package/dist/scripts/5-d6a7d71167.chunk.js +1 -0
- package/dist/scripts/5.chunk.js +15 -0
- package/dist/scripts/5.chunk.js.map +1 -0
- package/dist/scripts/50-0741587a02.chunk.js +1 -0
- package/dist/scripts/50-3924907655.chunk.js +1 -0
- package/dist/scripts/50-4de0b758d5.chunk.js +1 -0
- package/dist/scripts/50.chunk.js +530 -0
- package/dist/scripts/50.chunk.js.map +1 -0
- package/dist/scripts/51-a5f1309ada.chunk.js +1 -0
- package/dist/scripts/51-dca2a9cc86.chunk.js +1 -0
- package/dist/scripts/51-ea33746146.chunk.js +1 -0
- package/dist/scripts/51.chunk.js +932 -0
- package/dist/scripts/51.chunk.js.map +1 -0
- package/dist/scripts/52-50230b48c8.chunk.js +1 -0
- package/dist/scripts/52-a3c8ed29ca.chunk.js +1 -0
- package/dist/scripts/52-bc48f1f9e8.chunk.js +1 -0
- package/dist/scripts/52.chunk.js +408 -0
- package/dist/scripts/52.chunk.js.map +1 -0
- package/dist/scripts/53-0e253f9f3e.chunk.js +1 -0
- package/dist/scripts/53-36007500cf.chunk.js +1 -0
- package/dist/scripts/53-d8f0dea552.chunk.js +1 -0
- package/dist/scripts/53.chunk.js +756 -0
- package/dist/scripts/53.chunk.js.map +1 -0
- package/dist/scripts/54-7cdbdcebf9.chunk.js +1 -0
- package/dist/scripts/54-d1bc70c7b5.chunk.js +1 -0
- package/dist/scripts/54-ead54d0b34.chunk.js +1 -0
- package/dist/scripts/54.chunk.js +681 -0
- package/dist/scripts/54.chunk.js.map +1 -0
- package/dist/scripts/55-3c60601030.chunk.js +1 -0
- package/dist/scripts/55-a5fa20b497.chunk.js +1 -0
- package/dist/scripts/55-e29d6a6ba9.chunk.js +1 -0
- package/dist/scripts/55.chunk.js +645 -0
- package/dist/scripts/55.chunk.js.map +1 -0
- package/dist/scripts/56-36d54fa08f.chunk.js +1 -0
- package/dist/scripts/56-370078d597.chunk.js +1 -0
- package/dist/scripts/56-df0a32000b.chunk.js +1 -0
- package/dist/scripts/56.chunk.js +346 -0
- package/dist/scripts/56.chunk.js.map +1 -0
- package/dist/scripts/57-6e622c6480.chunk.js +1 -0
- package/dist/scripts/57-a4f4d6fe41.chunk.js +1 -0
- package/dist/scripts/57-c1faec8b32.chunk.js +1 -0
- package/dist/scripts/57.chunk.js +422 -0
- package/dist/scripts/57.chunk.js.map +1 -0
- package/dist/scripts/58-17706ccb46.chunk.js +1 -0
- package/dist/scripts/58-a0fe201826.chunk.js +1 -0
- package/dist/scripts/58-e996405f2b.chunk.js +1 -0
- package/dist/scripts/58.chunk.js +437 -0
- package/dist/scripts/58.chunk.js.map +1 -0
- package/dist/scripts/59-0a7bdc86b0.chunk.js +1 -0
- package/dist/scripts/59-381a49ed7f.chunk.js +1 -0
- package/dist/scripts/59-4f2fcb6412.chunk.js +1 -0
- package/dist/scripts/59.chunk.js +342 -0
- package/dist/scripts/59.chunk.js.map +1 -0
- package/dist/scripts/6-40c8ba5007.chunk.js +1 -0
- package/dist/scripts/6-51a379e066.chunk.js +1 -0
- package/dist/scripts/6-b3d36065dc.chunk.js +1 -0
- package/dist/scripts/6.chunk.js +484 -0
- package/dist/scripts/6.chunk.js.map +1 -0
- package/dist/scripts/60-0d8896555f.chunk.js +1 -0
- package/dist/scripts/60-b4a91c86fa.chunk.js +1 -0
- package/dist/scripts/60-c57f161f18.chunk.js +1 -0
- package/dist/scripts/60.chunk.js +254 -0
- package/dist/scripts/60.chunk.js.map +1 -0
- package/dist/scripts/61-5d6e59d408.chunk.js +1 -0
- package/dist/scripts/61-7d81d27c31.chunk.js +1 -0
- package/dist/scripts/61-a342a0d501.chunk.js +1 -0
- package/dist/scripts/61.chunk.js +408 -0
- package/dist/scripts/61.chunk.js.map +1 -0
- package/dist/scripts/62-758f5e505b.chunk.js +1 -0
- package/dist/scripts/62-b572d8b80d.chunk.js +1 -0
- package/dist/scripts/62-f5fd35fdc0.chunk.js +1 -0
- package/dist/scripts/62.chunk.js +142 -0
- package/dist/scripts/62.chunk.js.map +1 -0
- package/dist/scripts/63-568008965e.chunk.js +1 -0
- package/dist/scripts/63-6700b4d00a.chunk.js +1 -0
- package/dist/scripts/63-c88b9860e9.chunk.js +1 -0
- package/dist/scripts/63.chunk.js +147 -0
- package/dist/scripts/63.chunk.js.map +1 -0
- package/dist/scripts/64-9c88ee6161.chunk.js +1 -0
- package/dist/scripts/64-e177d4c971.chunk.js +1 -0
- package/dist/scripts/64-fa2facacbb.chunk.js +1 -0
- package/dist/scripts/64.chunk.js +439 -0
- package/dist/scripts/64.chunk.js.map +1 -0
- package/dist/scripts/65-93567fe088.chunk.js +1 -0
- package/dist/scripts/65-e4568d1f06.chunk.js +1 -0
- package/dist/scripts/65-f750573f69.chunk.js +1 -0
- package/dist/scripts/65.chunk.js +582 -0
- package/dist/scripts/65.chunk.js.map +1 -0
- package/dist/scripts/66-c84a3a3c3f.chunk.js +1 -0
- package/dist/scripts/66-f325ff3187.chunk.js +1 -0
- package/dist/scripts/66-f6d213b33c.chunk.js +1 -0
- package/dist/scripts/66.chunk.js +442 -0
- package/dist/scripts/66.chunk.js.map +1 -0
- package/dist/scripts/67-3c9628d296.chunk.js +1 -0
- package/dist/scripts/67-97c694c3d5.chunk.js +1 -0
- package/dist/scripts/67-c5af18680c.chunk.js +1 -0
- package/dist/scripts/67.chunk.js +295 -0
- package/dist/scripts/67.chunk.js.map +1 -0
- package/dist/scripts/68-488cd1552f.chunk.js +1 -0
- package/dist/scripts/68-7b1d5e8e75.chunk.js +1 -0
- package/dist/scripts/68-eb8700aeb1.chunk.js +1 -0
- package/dist/scripts/68.chunk.js +165 -0
- package/dist/scripts/68.chunk.js.map +1 -0
- package/dist/scripts/69-3d2063cd0f.chunk.js +1 -0
- package/dist/scripts/69-b0ea71d7c5.chunk.js +1 -0
- package/dist/scripts/69-be2be90b7c.chunk.js +1 -0
- package/dist/scripts/69.chunk.js +248 -0
- package/dist/scripts/69.chunk.js.map +1 -0
- package/dist/scripts/7-3151397d74.chunk.js +1 -0
- package/dist/scripts/7-aac8c84ccb.chunk.js +1 -0
- package/dist/scripts/7-dfddb8ffa8.chunk.js +1 -0
- package/dist/scripts/7.chunk.js +309 -0
- package/dist/scripts/7.chunk.js.map +1 -0
- package/dist/scripts/70-27e9e5792a.chunk.js +1 -0
- package/dist/scripts/70-39dc936989.chunk.js +1 -0
- package/dist/scripts/70-e6ebb44667.chunk.js +1 -0
- package/dist/scripts/70.chunk.js +207 -0
- package/dist/scripts/70.chunk.js.map +1 -0
- package/dist/scripts/71-8e3682a7d7.chunk.js +1 -0
- package/dist/scripts/71-a80858069c.chunk.js +1 -0
- package/dist/scripts/71-c5923e2d2d.chunk.js +1 -0
- package/dist/scripts/71.chunk.js +237 -0
- package/dist/scripts/71.chunk.js.map +1 -0
- package/dist/scripts/72-245f28bf97.chunk.js +1 -0
- package/dist/scripts/72-550438db4e.chunk.js +1 -0
- package/dist/scripts/72-65364adff1.chunk.js +1 -0
- package/dist/scripts/72.chunk.js +331 -0
- package/dist/scripts/72.chunk.js.map +1 -0
- package/dist/scripts/73.chunk.js +404 -0
- package/dist/scripts/73.chunk.js.map +1 -0
- package/dist/scripts/74.chunk.js +301 -0
- package/dist/scripts/74.chunk.js.map +1 -0
- package/dist/scripts/75.chunk.js +231 -0
- package/dist/scripts/75.chunk.js.map +1 -0
- package/dist/scripts/76.chunk.js +157 -0
- package/dist/scripts/76.chunk.js.map +1 -0
- package/dist/scripts/77.chunk.js +307 -0
- package/dist/scripts/77.chunk.js.map +1 -0
- package/dist/scripts/78.chunk.js +249 -0
- package/dist/scripts/78.chunk.js.map +1 -0
- package/dist/scripts/79.chunk.js +282 -0
- package/dist/scripts/79.chunk.js.map +1 -0
- package/dist/scripts/8-c4955c2009.chunk.js +1 -0
- package/dist/scripts/8-d46f48d03c.chunk.js +1 -0
- package/dist/scripts/8-e5d19252c8.chunk.js +1 -0
- package/dist/scripts/8.chunk.js +307 -0
- package/dist/scripts/8.chunk.js.map +1 -0
- package/dist/scripts/80.chunk.js +308 -0
- package/dist/scripts/80.chunk.js.map +1 -0
- package/dist/scripts/81.chunk.js +366 -0
- package/dist/scripts/81.chunk.js.map +1 -0
- package/dist/scripts/82.chunk.js +314 -0
- package/dist/scripts/82.chunk.js.map +1 -0
- package/dist/scripts/83.chunk.js +328 -0
- package/dist/scripts/83.chunk.js.map +1 -0
- package/dist/scripts/84.chunk.js +313 -0
- package/dist/scripts/84.chunk.js.map +1 -0
- package/dist/scripts/85.chunk.js +291 -0
- package/dist/scripts/85.chunk.js.map +1 -0
- package/dist/scripts/86.chunk.js +119 -0
- package/dist/scripts/86.chunk.js.map +1 -0
- package/dist/scripts/87.chunk.js +219 -0
- package/dist/scripts/87.chunk.js.map +1 -0
- package/dist/scripts/88.chunk.js +194 -0
- package/dist/scripts/88.chunk.js.map +1 -0
- package/dist/scripts/89.chunk.js +522 -0
- package/dist/scripts/89.chunk.js.map +1 -0
- package/dist/scripts/9-4589726554.chunk.js +1 -0
- package/dist/scripts/9-66021549bd.chunk.js +1 -0
- package/dist/scripts/9-df99ba6ce1.chunk.js +1 -0
- package/dist/scripts/9.chunk.js +222 -0
- package/dist/scripts/9.chunk.js.map +1 -0
- package/dist/scripts/90.chunk.js +337 -0
- package/dist/scripts/90.chunk.js.map +1 -0
- package/dist/scripts/91.chunk.js +131 -0
- package/dist/scripts/91.chunk.js.map +1 -0
- package/dist/scripts/92.chunk.js +266 -0
- package/dist/scripts/92.chunk.js.map +1 -0
- package/dist/scripts/bundle-1b984e2fd9.min.js +8 -0
- package/dist/scripts/{bundle-8862b095c0.min.js → bundle-203920eb14.min.js} +1 -1
- package/dist/scripts/bundle-7d13ba933b.min.js +8 -0
- package/dist/scripts/bundle-d5b23160b1.min.js +8 -0
- package/dist/scripts/bundle.js +67100 -0
- package/dist/scripts/bundle.js.map +1 -0
- package/dist/scripts/bundles.json +2 -2
- package/dist/scripts/polyfills-9b0be1bd72.min.js +1 -0
- package/dist/scripts/polyfills-cd3d0a9f6d.min.js +1 -0
- package/dist/scripts/polyfills-d891a77823.min.js +1 -0
- package/dist/scripts/polyfills.js +14866 -0
- package/dist/scripts/polyfills.js.map +1 -0
- package/package.json +2 -2
- /package/dist/scripts/{0-1deffb42bf.chunk.js → 0-8b75adf540.chunk.js} +0 -0
- /package/dist/scripts/{1-a4065968c1.chunk.js → 1-22a3bd404f.chunk.js} +0 -0
- /package/dist/scripts/{10-0adc529f9b.chunk.js → 10-31317a2d02.chunk.js} +0 -0
- /package/dist/scripts/{12-18ae0dfa89.chunk.js → 12-6ecdd79b85.chunk.js} +0 -0
- /package/dist/scripts/{13-a9ed73e93d.chunk.js → 13-282f8add17.chunk.js} +0 -0
- /package/dist/scripts/{14-e0828acdfa.chunk.js → 14-5e443cb402.chunk.js} +0 -0
- /package/dist/scripts/{15-c67caabb0a.chunk.js → 15-1f779dd0d3.chunk.js} +0 -0
- /package/dist/scripts/{16-31fefb2cac.chunk.js → 16-427a8933c8.chunk.js} +0 -0
- /package/dist/scripts/{17-b9c5bbda43.chunk.js → 17-7093f50dff.chunk.js} +0 -0
- /package/dist/scripts/{20-2bca62d1c0.chunk.js → 20-a84733c89f.chunk.js} +0 -0
- /package/dist/scripts/{21-c70d40dc61.chunk.js → 21-9b28a13702.chunk.js} +0 -0
- /package/dist/scripts/{22-0e9dca307f.chunk.js → 22-082c94a39c.chunk.js} +0 -0
- /package/dist/scripts/{23-b4a5ffb3a6.chunk.js → 23-2b00ff99bf.chunk.js} +0 -0
- /package/dist/scripts/{24-88056bc5c9.chunk.js → 24-c94049500e.chunk.js} +0 -0
- /package/dist/scripts/{25-ec294abf37.chunk.js → 25-34c0406f50.chunk.js} +0 -0
- /package/dist/scripts/{26-2a038b6df5.chunk.js → 26-d19e3f755c.chunk.js} +0 -0
- /package/dist/scripts/{27-9f06d5bb5d.chunk.js → 27-3aa629dd67.chunk.js} +0 -0
- /package/dist/scripts/{28-4e62071464.chunk.js → 28-738b88c816.chunk.js} +0 -0
- /package/dist/scripts/{29-5ab940b23f.chunk.js → 29-3faa153e38.chunk.js} +0 -0
- /package/dist/scripts/{3-dbf1f0bdbc.chunk.js → 3-42e8af9f39.chunk.js} +0 -0
- /package/dist/scripts/{30-87ec7ee868.chunk.js → 30-109f8ddd5c.chunk.js} +0 -0
- /package/dist/scripts/{31-24f9dc350e.chunk.js → 31-639090fee3.chunk.js} +0 -0
- /package/dist/scripts/{32-a06209da52.chunk.js → 32-3de9c7454b.chunk.js} +0 -0
- /package/dist/scripts/{33-c33020ec6f.chunk.js → 33-675467f07d.chunk.js} +0 -0
- /package/dist/scripts/{34-116a50814d.chunk.js → 34-0a7f3b55fe.chunk.js} +0 -0
- /package/dist/scripts/{35-33ea39c18e.chunk.js → 35-4254e160f0.chunk.js} +0 -0
- /package/dist/scripts/{36-ccb493b3f6.chunk.js → 36-1fde696d6a.chunk.js} +0 -0
- /package/dist/scripts/{37-bb5a5bdad3.chunk.js → 37-97b84a8be5.chunk.js} +0 -0
- /package/dist/scripts/{38-64d5f34871.chunk.js → 38-0cf8029bec.chunk.js} +0 -0
- /package/dist/scripts/{39-14259bc6fe.chunk.js → 39-748eb61732.chunk.js} +0 -0
- /package/dist/scripts/{4-dbbff4289b.chunk.js → 4-5c50e71b83.chunk.js} +0 -0
- /package/dist/scripts/{40-ea678bbe5b.chunk.js → 40-2691dfbd5a.chunk.js} +0 -0
- /package/dist/scripts/{41-2d35060d0e.chunk.js → 41-1df587ee3a.chunk.js} +0 -0
- /package/dist/scripts/{42-898076e213.chunk.js → 42-3480033857.chunk.js} +0 -0
- /package/dist/scripts/{43-0616177a42.chunk.js → 43-72d1bc0ae2.chunk.js} +0 -0
- /package/dist/scripts/{44-861ac46f36.chunk.js → 44-756fd6622b.chunk.js} +0 -0
- /package/dist/scripts/{45-7446535f17.chunk.js → 45-610d098194.chunk.js} +0 -0
- /package/dist/scripts/{46-26620d2a5f.chunk.js → 46-cadf3f46ee.chunk.js} +0 -0
- /package/dist/scripts/{47-a4034122c9.chunk.js → 47-22a83e5974.chunk.js} +0 -0
- /package/dist/scripts/{48-76b2c74863.chunk.js → 48-e577124476.chunk.js} +0 -0
- /package/dist/scripts/{49-505e968070.chunk.js → 49-0f9a6a1782.chunk.js} +0 -0
- /package/dist/scripts/{5-2051149282.chunk.js → 5-06b97501c3.chunk.js} +0 -0
- /package/dist/scripts/{50-5fc4da3bc5.chunk.js → 50-0d5aed7730.chunk.js} +0 -0
- /package/dist/scripts/{51-fc0310c5cd.chunk.js → 51-cd37c8efa2.chunk.js} +0 -0
- /package/dist/scripts/{52-bf7eecfbac.chunk.js → 52-8b53a5c0b1.chunk.js} +0 -0
- /package/dist/scripts/{53-ec51fba164.chunk.js → 53-54b0df474f.chunk.js} +0 -0
- /package/dist/scripts/{54-d3990092dd.chunk.js → 54-dd4d101665.chunk.js} +0 -0
- /package/dist/scripts/{55-e4665da63e.chunk.js → 55-078bb9b0ea.chunk.js} +0 -0
- /package/dist/scripts/{56-21b33b42c3.chunk.js → 56-7a6c662f14.chunk.js} +0 -0
- /package/dist/scripts/{57-07deff9444.chunk.js → 57-0e126120b9.chunk.js} +0 -0
- /package/dist/scripts/{58-68ca09ffdf.chunk.js → 58-5729cbaa5c.chunk.js} +0 -0
- /package/dist/scripts/{59-c7705e6551.chunk.js → 59-333f38ee3b.chunk.js} +0 -0
- /package/dist/scripts/{6-9bc788ce4c.chunk.js → 6-1045293de4.chunk.js} +0 -0
- /package/dist/scripts/{60-319578f49a.chunk.js → 60-b17c6609cd.chunk.js} +0 -0
- /package/dist/scripts/{61-25fcfd00c9.chunk.js → 61-57fa6b5248.chunk.js} +0 -0
- /package/dist/scripts/{62-d07ddf14ff.chunk.js → 62-67458b7fb4.chunk.js} +0 -0
- /package/dist/scripts/{63-08c93c2e53.chunk.js → 63-420b10f5f2.chunk.js} +0 -0
- /package/dist/scripts/{64-ffead99364.chunk.js → 64-e6598113a7.chunk.js} +0 -0
- /package/dist/scripts/{65-86eee87750.chunk.js → 65-a7e499ceee.chunk.js} +0 -0
- /package/dist/scripts/{66-79a4d8629a.chunk.js → 66-f00f29ccae.chunk.js} +0 -0
- /package/dist/scripts/{67-bc34473155.chunk.js → 67-1ebaab7a2d.chunk.js} +0 -0
- /package/dist/scripts/{68-c3fe0c028e.chunk.js → 68-38a6d7fb50.chunk.js} +0 -0
- /package/dist/scripts/{69-f4f1f07045.chunk.js → 69-870856c6fb.chunk.js} +0 -0
- /package/dist/scripts/{7-74c0fcd6fe.chunk.js → 7-d41d3bf60c.chunk.js} +0 -0
- /package/dist/scripts/{70-4681989887.chunk.js → 70-6ef72cd9b6.chunk.js} +0 -0
- /package/dist/scripts/{71-8ae59fd304.chunk.js → 71-4e4a47d601.chunk.js} +0 -0
- /package/dist/scripts/{72-8615720ce0.chunk.js → 72-0a6c88f9fe.chunk.js} +0 -0
- /package/dist/scripts/{8-039e714b81.chunk.js → 8-7278f3247c.chunk.js} +0 -0
- /package/dist/scripts/{9-e76ba48df5.chunk.js → 9-576592d419.chunk.js} +0 -0
- /package/dist/scripts/{polyfills-57fccaae30.min.js → polyfills-5a81b67408.min.js} +0 -0
|
@@ -0,0 +1,2327 @@
|
|
|
1
|
+
(window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[42],{
|
|
2
|
+
|
|
3
|
+
/***/ "../../libs/shared/src/legacy/components/file-select/FileSelect.hbs":
|
|
4
|
+
/*!**************************************************************************************************************!*\
|
|
5
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/file-select/FileSelect.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 "<p class=\"alert alert-warning mb-0\">"
|
|
15
|
+
+ container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.limitText : stack1), depth0))
|
|
16
|
+
+ "</p>\r\n";
|
|
17
|
+
},"3":function(container,depth0,helpers,partials,data) {
|
|
18
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});
|
|
19
|
+
|
|
20
|
+
return "<div class=\"file-drop "
|
|
21
|
+
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.fileDrop : stack1), depth0))
|
|
22
|
+
+ " p-2"
|
|
23
|
+
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.limitText : stack1),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
24
|
+
+ "\">\r\n <button class=\"browse btn btn-secondary mr-2\">"
|
|
25
|
+
+ alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,"browse",{"name":"lang","hash":{},"data":data}))
|
|
26
|
+
+ "</button>\r\n <span class=\"text-muted align-middle\">"
|
|
27
|
+
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.alternateText : stack1), depth0))
|
|
28
|
+
+ "</span>\r\n</div>\r\n";
|
|
29
|
+
},"4":function(container,depth0,helpers,partials,data) {
|
|
30
|
+
return " col-6 ";
|
|
31
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
32
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda;
|
|
33
|
+
|
|
34
|
+
return "<h5>"
|
|
35
|
+
+ container.escapeExpression(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.title : stack1), depth0))
|
|
36
|
+
+ "</h5>\r\n<p>"
|
|
37
|
+
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.description : stack1), depth0)) != null ? stack1 : "")
|
|
38
|
+
+ "</p>\r\n"
|
|
39
|
+
+ ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.limitText : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "");
|
|
40
|
+
},"useData":true});
|
|
41
|
+
|
|
42
|
+
/***/ }),
|
|
43
|
+
|
|
44
|
+
/***/ "../../libs/shared/src/legacy/components/file-select/FileSelectComponent.ts":
|
|
45
|
+
/*!**********************************************************************************************************************!*\
|
|
46
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/file-select/FileSelectComponent.ts ***!
|
|
47
|
+
\**********************************************************************************************************************/
|
|
48
|
+
/*! exports provided: FileSelectComponent */
|
|
49
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
50
|
+
|
|
51
|
+
"use strict";
|
|
52
|
+
__webpack_require__.r(__webpack_exports__);
|
|
53
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileSelectComponent", function() { return FileSelectComponent; });
|
|
54
|
+
/* harmony import */ var _common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
55
|
+
/* harmony import */ var _common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
56
|
+
/* harmony import */ var _behaviors_file_select_FileSelectBehavior__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../behaviors/file-select/FileSelectBehavior */ "../../libs/shared/src/legacy/behaviors/file-select/FileSelectBehavior.ts");
|
|
57
|
+
/* harmony import */ var _behaviors_file_drop_FileDropBehavior__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../behaviors/file-drop/FileDropBehavior */ "../../libs/shared/src/legacy/behaviors/file-drop/FileDropBehavior.ts");
|
|
58
|
+
/* harmony import */ var _file_select_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./file-select.scss */ "../../libs/shared/src/legacy/components/file-select/file-select.scss");
|
|
59
|
+
/* harmony import */ var _file_select_scss__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_file_select_scss__WEBPACK_IMPORTED_MODULE_4__);
|
|
60
|
+
/* harmony import */ var _FileSelectDropMask_hbs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FileSelectDropMask.hbs */ "../../libs/shared/src/legacy/components/file-select/FileSelectDropMask.hbs");
|
|
61
|
+
/* harmony import */ var _FileSelectDropMask_hbs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_FileSelectDropMask_hbs__WEBPACK_IMPORTED_MODULE_5__);
|
|
62
|
+
/* harmony import */ var _FileSelect_hbs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./FileSelect.hbs */ "../../libs/shared/src/legacy/components/file-select/FileSelect.hbs");
|
|
63
|
+
/* harmony import */ var _FileSelect_hbs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_FileSelect_hbs__WEBPACK_IMPORTED_MODULE_6__);
|
|
64
|
+
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); }
|
|
65
|
+
|
|
66
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
67
|
+
|
|
68
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
69
|
+
|
|
70
|
+
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); } }
|
|
71
|
+
|
|
72
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
73
|
+
|
|
74
|
+
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); }
|
|
75
|
+
|
|
76
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
77
|
+
|
|
78
|
+
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); }; }
|
|
79
|
+
|
|
80
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
81
|
+
|
|
82
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
83
|
+
|
|
84
|
+
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; } }
|
|
85
|
+
|
|
86
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
var FileSelectComponent = /*#__PURE__*/function (_Core$Component) {
|
|
96
|
+
_inherits(FileSelectComponent, _Core$Component);
|
|
97
|
+
|
|
98
|
+
var _super = _createSuper(FileSelectComponent);
|
|
99
|
+
|
|
100
|
+
function FileSelectComponent(options) {
|
|
101
|
+
_classCallCheck(this, FileSelectComponent);
|
|
102
|
+
|
|
103
|
+
return _super.call(this, options);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
_createClass(FileSelectComponent, [{
|
|
107
|
+
key: "events",
|
|
108
|
+
value: function events() {
|
|
109
|
+
var dragLeave = "dragleave .".concat(_file_select_scss__WEBPACK_IMPORTED_MODULE_4___default.a.dropMask);
|
|
110
|
+
return _defineProperty({
|
|
111
|
+
'drop .file-drop': 'onDrop',
|
|
112
|
+
'dragover .file-drop': 'onDragOver'
|
|
113
|
+
}, dragLeave, 'onDragLeave');
|
|
114
|
+
}
|
|
115
|
+
}, {
|
|
116
|
+
key: "onDrop",
|
|
117
|
+
value: function onDrop() {
|
|
118
|
+
this.$el.removeClass(_file_select_scss__WEBPACK_IMPORTED_MODULE_4___default.a.dragOver);
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
key: "onDragOver",
|
|
122
|
+
value: function onDragOver(event) {
|
|
123
|
+
this.$el.addClass(_file_select_scss__WEBPACK_IMPORTED_MODULE_4___default.a.dragOver);
|
|
124
|
+
event.preventDefault();
|
|
125
|
+
}
|
|
126
|
+
}, {
|
|
127
|
+
key: "onDragLeave",
|
|
128
|
+
value: function onDragLeave() {
|
|
129
|
+
this.$el.removeClass(_file_select_scss__WEBPACK_IMPORTED_MODULE_4___default.a.dragOver);
|
|
130
|
+
}
|
|
131
|
+
}, {
|
|
132
|
+
key: "viewOptions",
|
|
133
|
+
value: function viewOptions() {
|
|
134
|
+
return Object.assign(Object.assign({}, this.options), {
|
|
135
|
+
styles: _file_select_scss__WEBPACK_IMPORTED_MODULE_4___default.a,
|
|
136
|
+
limitText: this.options.limitText,
|
|
137
|
+
isClickViewContent: this.options.isClickViewContent
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}, {
|
|
141
|
+
key: "onRender",
|
|
142
|
+
value: function onRender() {
|
|
143
|
+
this.getUI('dropArea').append(_FileSelectDropMask_hbs__WEBPACK_IMPORTED_MODULE_5___default()({
|
|
144
|
+
dropMask: _file_select_scss__WEBPACK_IMPORTED_MODULE_4___default.a.dropMask,
|
|
145
|
+
fileDropText: _common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__["LanguageService"].getPhrase(this.lang, 'drop')
|
|
146
|
+
}));
|
|
147
|
+
}
|
|
148
|
+
}, {
|
|
149
|
+
key: "name",
|
|
150
|
+
get: function get() {
|
|
151
|
+
return 'FileSelectComponent';
|
|
152
|
+
}
|
|
153
|
+
}, {
|
|
154
|
+
key: "template",
|
|
155
|
+
get: function get() {
|
|
156
|
+
return _FileSelect_hbs__WEBPACK_IMPORTED_MODULE_6___default.a;
|
|
157
|
+
}
|
|
158
|
+
}, {
|
|
159
|
+
key: "lang",
|
|
160
|
+
get: function get() {
|
|
161
|
+
return 'shared._fileSelect';
|
|
162
|
+
}
|
|
163
|
+
}, {
|
|
164
|
+
key: "elements",
|
|
165
|
+
get: function get() {
|
|
166
|
+
return {
|
|
167
|
+
dropArea: '.file-drop'
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
}, {
|
|
171
|
+
key: "defaults",
|
|
172
|
+
get: function get() {
|
|
173
|
+
return {
|
|
174
|
+
acceptMultiple: true
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
}, {
|
|
178
|
+
key: "behaviors",
|
|
179
|
+
get: function get() {
|
|
180
|
+
return [{
|
|
181
|
+
behaviorClass: _behaviors_file_select_FileSelectBehavior__WEBPACK_IMPORTED_MODULE_2__["FileSelectBehavior"],
|
|
182
|
+
buttonSelector: '.browse',
|
|
183
|
+
channelName: this.options.channelName,
|
|
184
|
+
acceptMultiple: this.options.acceptMultiple,
|
|
185
|
+
mimeType: this.options.mimeType
|
|
186
|
+
}, {
|
|
187
|
+
behaviorClass: _behaviors_file_drop_FileDropBehavior__WEBPACK_IMPORTED_MODULE_3__["FileDropBehavior"],
|
|
188
|
+
channelName: this.options.channelName,
|
|
189
|
+
acceptMultiple: this.options.acceptMultiple
|
|
190
|
+
}];
|
|
191
|
+
}
|
|
192
|
+
}]);
|
|
193
|
+
|
|
194
|
+
return FileSelectComponent;
|
|
195
|
+
}(_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
196
|
+
|
|
197
|
+
/***/ }),
|
|
198
|
+
|
|
199
|
+
/***/ "../../libs/shared/src/legacy/components/file-select/FileSelectDropMask.hbs":
|
|
200
|
+
/*!**********************************************************************************************************************!*\
|
|
201
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/file-select/FileSelectDropMask.hbs ***!
|
|
202
|
+
\**********************************************************************************************************************/
|
|
203
|
+
/*! no static exports found */
|
|
204
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
205
|
+
|
|
206
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
207
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
208
|
+
var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
209
|
+
|
|
210
|
+
return "<div class=\""
|
|
211
|
+
+ alias2(((helper = (helper = helpers.dropMask || (depth0 != null ? depth0.dropMask : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"dropMask","hash":{},"data":data}) : helper)))
|
|
212
|
+
+ "\">\r\n <h3>"
|
|
213
|
+
+ alias2(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.fileDropText : stack1), depth0))
|
|
214
|
+
+ "</h3>\r\n</div>";
|
|
215
|
+
},"useData":true});
|
|
216
|
+
|
|
217
|
+
/***/ }),
|
|
218
|
+
|
|
219
|
+
/***/ "../../libs/shared/src/legacy/components/file-select/file-select.scss":
|
|
220
|
+
/*!****************************************************************************************************************!*\
|
|
221
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/file-select/file-select.scss ***!
|
|
222
|
+
\****************************************************************************************************************/
|
|
223
|
+
/*! no static exports found */
|
|
224
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
225
|
+
|
|
226
|
+
// extracted by mini-css-extract-plugin
|
|
227
|
+
module.exports = {"fileDrop":"cv--fileDrop--3-Sp5","dropMask":"cv--dropMask--TuDHp","dragOver":"cv--dragOver--3Dz1H"};
|
|
228
|
+
|
|
229
|
+
/***/ }),
|
|
230
|
+
|
|
231
|
+
/***/ "../../libs/shared/src/legacy/components/file-uploads/FileUpload.hbs":
|
|
232
|
+
/*!***************************************************************************************************************!*\
|
|
233
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/file-uploads/FileUpload.hbs ***!
|
|
234
|
+
\***************************************************************************************************************/
|
|
235
|
+
/*! no static exports found */
|
|
236
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
237
|
+
|
|
238
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
239
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
240
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda;
|
|
241
|
+
|
|
242
|
+
return "<span class=\"d-inline-block align-middle mr-2 "
|
|
243
|
+
+ container.escapeExpression(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svgContainer : stack1), depth0))
|
|
244
|
+
+ " float-right text-success\">"
|
|
245
|
+
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.tickSvg : stack1), depth0)) != null ? stack1 : "")
|
|
246
|
+
+ "</span>\r\n";
|
|
247
|
+
},"3":function(container,depth0,helpers,partials,data) {
|
|
248
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
249
|
+
|
|
250
|
+
return "<span class=\"d-inline-block align-middle mr-2 "
|
|
251
|
+
+ container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svgContainer : stack1), depth0))
|
|
252
|
+
+ " cursor-pointer cancel-upload close float-right\">×</span>\r\n";
|
|
253
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
254
|
+
var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {}), alias5=container.hooks.helperMissing, alias6="function";
|
|
255
|
+
|
|
256
|
+
return "<span class=\"d-inline-block align-middle mr-2 "
|
|
257
|
+
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svgContainer : stack1), depth0))
|
|
258
|
+
+ "\">"
|
|
259
|
+
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.svg : stack1), depth0)) != null ? stack1 : "")
|
|
260
|
+
+ "</span>\r\n<span class=\"align-middle\">\r\n "
|
|
261
|
+
+ alias3(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias5),(typeof helper === alias6 ? helper.call(alias4,{"name":"name","hash":{},"data":data}) : helper)))
|
|
262
|
+
+ "\r\n</span>\r\n"
|
|
263
|
+
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.finished : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "")
|
|
264
|
+
+ "\r\n<div class=\"progress my-2 "
|
|
265
|
+
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.progress : stack1), depth0))
|
|
266
|
+
+ " mt-2\">\r\n <div class=\"progress-bar bg-info\" style=\"width: "
|
|
267
|
+
+ alias3(((helper = (helper = helpers.progress || (depth0 != null ? depth0.progress : depth0)) != null ? helper : alias5),(typeof helper === alias6 ? helper.call(alias4,{"name":"progress","hash":{},"data":data}) : helper)))
|
|
268
|
+
+ "%\" aria-valuenow=\""
|
|
269
|
+
+ alias3(((helper = (helper = helpers.progress || (depth0 != null ? depth0.progress : depth0)) != null ? helper : alias5),(typeof helper === alias6 ? helper.call(alias4,{"name":"progress","hash":{},"data":data}) : helper)))
|
|
270
|
+
+ "\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div>\r\n</div>";
|
|
271
|
+
},"useData":true});
|
|
272
|
+
|
|
273
|
+
/***/ }),
|
|
274
|
+
|
|
275
|
+
/***/ "../../libs/shared/src/legacy/components/file-uploads/FileUploadComponent.ts":
|
|
276
|
+
/*!***********************************************************************************************************************!*\
|
|
277
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/file-uploads/FileUploadComponent.ts ***!
|
|
278
|
+
\***********************************************************************************************************************/
|
|
279
|
+
/*! exports provided: FileUploadComponent */
|
|
280
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
281
|
+
|
|
282
|
+
"use strict";
|
|
283
|
+
__webpack_require__.r(__webpack_exports__);
|
|
284
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileUploadComponent", function() { return FileUploadComponent; });
|
|
285
|
+
/* harmony import */ var _common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
286
|
+
/* harmony import */ var _utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
287
|
+
/* harmony import */ var _FileUpload_hbs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FileUpload.hbs */ "../../libs/shared/src/legacy/components/file-uploads/FileUpload.hbs");
|
|
288
|
+
/* harmony import */ var _FileUpload_hbs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_FileUpload_hbs__WEBPACK_IMPORTED_MODULE_2__);
|
|
289
|
+
/* harmony import */ var _file_upload_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./file-upload.scss */ "../../libs/shared/src/legacy/components/file-uploads/file-upload.scss");
|
|
290
|
+
/* harmony import */ var _file_upload_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_file_upload_scss__WEBPACK_IMPORTED_MODULE_3__);
|
|
291
|
+
/* harmony import */ var _common_src_backbone_utils_FunctionHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../common/src/backbone/utils/FunctionHelper */ "../../libs/common/src/backbone/utils/FunctionHelper.ts");
|
|
292
|
+
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); }
|
|
293
|
+
|
|
294
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
295
|
+
|
|
296
|
+
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); } }
|
|
297
|
+
|
|
298
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
299
|
+
|
|
300
|
+
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); }
|
|
301
|
+
|
|
302
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
303
|
+
|
|
304
|
+
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); }; }
|
|
305
|
+
|
|
306
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
307
|
+
|
|
308
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
309
|
+
|
|
310
|
+
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; } }
|
|
311
|
+
|
|
312
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
var FileUploadComponent = /*#__PURE__*/function (_Core$Component) {
|
|
320
|
+
_inherits(FileUploadComponent, _Core$Component);
|
|
321
|
+
|
|
322
|
+
var _super = _createSuper(FileUploadComponent);
|
|
323
|
+
|
|
324
|
+
function FileUploadComponent(options) {
|
|
325
|
+
_classCallCheck(this, FileUploadComponent);
|
|
326
|
+
|
|
327
|
+
return _super.call(this, options);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
_createClass(FileUploadComponent, [{
|
|
331
|
+
key: "initialize",
|
|
332
|
+
value: function initialize() {
|
|
333
|
+
this.listenTo(this.model, 'change:progress', this.render);
|
|
334
|
+
}
|
|
335
|
+
}, {
|
|
336
|
+
key: "events",
|
|
337
|
+
value: function events() {
|
|
338
|
+
return {
|
|
339
|
+
'click .cancel-upload': 'onClickCancelUpload'
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
}, {
|
|
343
|
+
key: "onClickCancelUpload",
|
|
344
|
+
value: function onClickCancelUpload() {
|
|
345
|
+
if (!_common_src_backbone_utils_FunctionHelper__WEBPACK_IMPORTED_MODULE_4__["FunctionHelper"].isFunction(this.options.onClickCancelUpload)) return;
|
|
346
|
+
this.options.onClickCancelUpload(this.model.get('id'));
|
|
347
|
+
}
|
|
348
|
+
}, {
|
|
349
|
+
key: "viewOptions",
|
|
350
|
+
value: function viewOptions() {
|
|
351
|
+
return {
|
|
352
|
+
styles: _file_upload_scss__WEBPACK_IMPORTED_MODULE_3___default.a,
|
|
353
|
+
svg: _utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["SvgHelper"].getSvg(_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["cvSvgLibrary"].Folder),
|
|
354
|
+
tickSvg: _utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["SvgHelper"].getSvg(_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["cvSvgLibrary"].Check),
|
|
355
|
+
finished: this.model.get('progress') >= 100
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
}, {
|
|
359
|
+
key: "name",
|
|
360
|
+
get: function get() {
|
|
361
|
+
return 'FileUploadComponent';
|
|
362
|
+
}
|
|
363
|
+
}, {
|
|
364
|
+
key: "template",
|
|
365
|
+
get: function get() {
|
|
366
|
+
return _FileUpload_hbs__WEBPACK_IMPORTED_MODULE_2___default.a;
|
|
367
|
+
}
|
|
368
|
+
}]);
|
|
369
|
+
|
|
370
|
+
return FileUploadComponent;
|
|
371
|
+
}(_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
372
|
+
|
|
373
|
+
/***/ }),
|
|
374
|
+
|
|
375
|
+
/***/ "../../libs/shared/src/legacy/components/file-uploads/file-upload.scss":
|
|
376
|
+
/*!*****************************************************************************************************************!*\
|
|
377
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/file-uploads/file-upload.scss ***!
|
|
378
|
+
\*****************************************************************************************************************/
|
|
379
|
+
/*! no static exports found */
|
|
380
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
381
|
+
|
|
382
|
+
// extracted by mini-css-extract-plugin
|
|
383
|
+
module.exports = {"svgContainer":"cv--svgContainer--QNFLR","progress":"cv--progress--1q_ig"};
|
|
384
|
+
|
|
385
|
+
/***/ }),
|
|
386
|
+
|
|
387
|
+
/***/ "../../libs/shared/src/legacy/components/subtitle-item/Subtitle.hbs":
|
|
388
|
+
/*!**************************************************************************************************************!*\
|
|
389
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/subtitle-item/Subtitle.hbs ***!
|
|
390
|
+
\**************************************************************************************************************/
|
|
391
|
+
/*! no static exports found */
|
|
392
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
393
|
+
|
|
394
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
395
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
396
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
397
|
+
|
|
398
|
+
return "<a class=\"float-right "
|
|
399
|
+
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svgContainer : stack1), depth0))
|
|
400
|
+
+ " "
|
|
401
|
+
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.actionSvg : stack1), depth0))
|
|
402
|
+
+ " text-muted delete\">"
|
|
403
|
+
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.trashSvg : stack1), depth0)) != null ? stack1 : "")
|
|
404
|
+
+ "</a>\r\n";
|
|
405
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
406
|
+
var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});
|
|
407
|
+
|
|
408
|
+
return "<span class=\"d-inline-block align-middle mr-2 "
|
|
409
|
+
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svgContainer : stack1), depth0))
|
|
410
|
+
+ "\">"
|
|
411
|
+
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.svg : stack1), depth0)) != null ? stack1 : "")
|
|
412
|
+
+ "</span>\r\n<a href=\""
|
|
413
|
+
+ alias3(((helper = (helper = helpers.url || (depth0 != null ? depth0.url : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(alias4,{"name":"url","hash":{},"data":data}) : helper)))
|
|
414
|
+
+ "?name="
|
|
415
|
+
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.name : stack1), depth0))
|
|
416
|
+
+ "\" class=\"align-middle\">\r\n "
|
|
417
|
+
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.name : stack1), depth0))
|
|
418
|
+
+ "\r\n</a>\r\n"
|
|
419
|
+
+ ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.isClickViewContent : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
|
|
420
|
+
},"useData":true});
|
|
421
|
+
|
|
422
|
+
/***/ }),
|
|
423
|
+
|
|
424
|
+
/***/ "../../libs/shared/src/legacy/components/subtitle-item/SubtitleItemComponent.ts":
|
|
425
|
+
/*!**************************************************************************************************************************!*\
|
|
426
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/subtitle-item/SubtitleItemComponent.ts ***!
|
|
427
|
+
\**************************************************************************************************************************/
|
|
428
|
+
/*! exports provided: SubtitleItemComponent */
|
|
429
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
430
|
+
|
|
431
|
+
"use strict";
|
|
432
|
+
__webpack_require__.r(__webpack_exports__);
|
|
433
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubtitleItemComponent", function() { return SubtitleItemComponent; });
|
|
434
|
+
/* harmony import */ var _common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
435
|
+
/* harmony import */ var _utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
436
|
+
/* harmony import */ var _common_src_backbone_utils_FunctionHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../common/src/backbone/utils/FunctionHelper */ "../../libs/common/src/backbone/utils/FunctionHelper.ts");
|
|
437
|
+
/* harmony import */ var _utils_VideoDetailsHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../utils/VideoDetailsHelper */ "../../libs/shared/src/utils/VideoDetailsHelper.ts");
|
|
438
|
+
/* harmony import */ var _utils_SubtitleHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../utils/SubtitleHelper */ "../../libs/shared/src/utils/SubtitleHelper.ts");
|
|
439
|
+
/* harmony import */ var _Subtitle_hbs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Subtitle.hbs */ "../../libs/shared/src/legacy/components/subtitle-item/Subtitle.hbs");
|
|
440
|
+
/* harmony import */ var _Subtitle_hbs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Subtitle_hbs__WEBPACK_IMPORTED_MODULE_5__);
|
|
441
|
+
/* harmony import */ var _subtitle_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subtitle.scss */ "../../libs/shared/src/legacy/components/subtitle-item/subtitle.scss");
|
|
442
|
+
/* harmony import */ var _subtitle_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_subtitle_scss__WEBPACK_IMPORTED_MODULE_6__);
|
|
443
|
+
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); }
|
|
444
|
+
|
|
445
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
446
|
+
|
|
447
|
+
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); } }
|
|
448
|
+
|
|
449
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
450
|
+
|
|
451
|
+
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); }
|
|
452
|
+
|
|
453
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
454
|
+
|
|
455
|
+
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); }; }
|
|
456
|
+
|
|
457
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
458
|
+
|
|
459
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
460
|
+
|
|
461
|
+
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; } }
|
|
462
|
+
|
|
463
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
var SubtitleItemComponent = /*#__PURE__*/function (_Core$Component) {
|
|
473
|
+
_inherits(SubtitleItemComponent, _Core$Component);
|
|
474
|
+
|
|
475
|
+
var _super = _createSuper(SubtitleItemComponent);
|
|
476
|
+
|
|
477
|
+
function SubtitleItemComponent(options) {
|
|
478
|
+
_classCallCheck(this, SubtitleItemComponent);
|
|
479
|
+
|
|
480
|
+
return _super.call(this, options);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
_createClass(SubtitleItemComponent, [{
|
|
484
|
+
key: "events",
|
|
485
|
+
value: function events() {
|
|
486
|
+
return {
|
|
487
|
+
'click .delete': 'onClickDelete'
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
}, {
|
|
491
|
+
key: "getEnglishName",
|
|
492
|
+
value: function getEnglishName() {
|
|
493
|
+
return _utils_SubtitleHelper__WEBPACK_IMPORTED_MODULE_4__["SubtitleHelper"].getEnglishName(this.model.toJSON(), this.model.collection.toJSON());
|
|
494
|
+
}
|
|
495
|
+
}, {
|
|
496
|
+
key: "onClickDelete",
|
|
497
|
+
value: function onClickDelete() {
|
|
498
|
+
if (this.options.isClickViewContent || !_common_src_backbone_utils_FunctionHelper__WEBPACK_IMPORTED_MODULE_2__["FunctionHelper"].isFunction(this.options.onClickDelete)) return;
|
|
499
|
+
this.options.onClickDelete(this.model);
|
|
500
|
+
}
|
|
501
|
+
}, {
|
|
502
|
+
key: "viewOptions",
|
|
503
|
+
value: function viewOptions() {
|
|
504
|
+
return {
|
|
505
|
+
styles: _subtitle_scss__WEBPACK_IMPORTED_MODULE_6___default.a,
|
|
506
|
+
svg: _utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["SvgHelper"].getSvg(_utils_VideoDetailsHelper__WEBPACK_IMPORTED_MODULE_3__["VideoDetailsHelper"].mapTypeToSvg('subtitle')),
|
|
507
|
+
trashSvg: _utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["SvgHelper"].getSvg(_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_1__["cvSvgLibrary"].Delete),
|
|
508
|
+
name: this.getEnglishName(),
|
|
509
|
+
isClickViewContent: this.options.isClickViewContent
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
}, {
|
|
513
|
+
key: "name",
|
|
514
|
+
get: function get() {
|
|
515
|
+
return 'SubtitleItemComponent';
|
|
516
|
+
}
|
|
517
|
+
}, {
|
|
518
|
+
key: "template",
|
|
519
|
+
get: function get() {
|
|
520
|
+
return _Subtitle_hbs__WEBPACK_IMPORTED_MODULE_5___default.a;
|
|
521
|
+
}
|
|
522
|
+
}, {
|
|
523
|
+
key: "className",
|
|
524
|
+
get: function get() {
|
|
525
|
+
return this.options.className || 'mb-2';
|
|
526
|
+
}
|
|
527
|
+
}]);
|
|
528
|
+
|
|
529
|
+
return SubtitleItemComponent;
|
|
530
|
+
}(_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
531
|
+
|
|
532
|
+
/***/ }),
|
|
533
|
+
|
|
534
|
+
/***/ "../../libs/shared/src/legacy/components/subtitle-item/subtitle.scss":
|
|
535
|
+
/*!***************************************************************************************************************!*\
|
|
536
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/subtitle-item/subtitle.scss ***!
|
|
537
|
+
\***************************************************************************************************************/
|
|
538
|
+
/*! no static exports found */
|
|
539
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
540
|
+
|
|
541
|
+
// extracted by mini-css-extract-plugin
|
|
542
|
+
module.exports = {"svgContainer":"cv--svgContainer--186X3","actionSvg":"cv--actionSvg--3_l1b"};
|
|
543
|
+
|
|
544
|
+
/***/ }),
|
|
545
|
+
|
|
546
|
+
/***/ "../../libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError.ts":
|
|
547
|
+
/*!***************************************************************************************************************************!*\
|
|
548
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError.ts ***!
|
|
549
|
+
\***************************************************************************************************************************/
|
|
550
|
+
/*! exports provided: TooManyResourcesError */
|
|
551
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
552
|
+
|
|
553
|
+
"use strict";
|
|
554
|
+
__webpack_require__.r(__webpack_exports__);
|
|
555
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooManyResourcesError", function() { return TooManyResourcesError; });
|
|
556
|
+
/* harmony import */ var _errors_primitives_DialogError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../errors/primitives/DialogError */ "../../libs/shared/src/errors/primitives/DialogError.ts");
|
|
557
|
+
/* harmony import */ var _common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
558
|
+
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); }
|
|
559
|
+
|
|
560
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
561
|
+
|
|
562
|
+
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); } }
|
|
563
|
+
|
|
564
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
565
|
+
|
|
566
|
+
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); }
|
|
567
|
+
|
|
568
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
569
|
+
|
|
570
|
+
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); }; }
|
|
571
|
+
|
|
572
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
573
|
+
|
|
574
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
575
|
+
|
|
576
|
+
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; } }
|
|
577
|
+
|
|
578
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
var lang = 'shared.errors.tooManyResources';
|
|
583
|
+
var TooManyResourcesError = /*#__PURE__*/function (_DialogError) {
|
|
584
|
+
_inherits(TooManyResourcesError, _DialogError);
|
|
585
|
+
|
|
586
|
+
var _super = _createSuper(TooManyResourcesError);
|
|
587
|
+
|
|
588
|
+
function TooManyResourcesError(resourceLimit) {
|
|
589
|
+
var _this;
|
|
590
|
+
|
|
591
|
+
_classCallCheck(this, TooManyResourcesError);
|
|
592
|
+
|
|
593
|
+
_this = _super.call(this, 'Cannot add that many resources');
|
|
594
|
+
_this.resourceLimit = resourceLimit;
|
|
595
|
+
return _this;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
_createClass(TooManyResourcesError, [{
|
|
599
|
+
key: "name",
|
|
600
|
+
get: function get() {
|
|
601
|
+
return 'TooManyResourcesError';
|
|
602
|
+
}
|
|
603
|
+
}, {
|
|
604
|
+
key: "dialogOptions",
|
|
605
|
+
get: function get() {
|
|
606
|
+
return {
|
|
607
|
+
title: _common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__["LanguageService"].getPhrase(lang, 'heading'),
|
|
608
|
+
text: _common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__["LanguageService"].getPhrase(lang, 'body', {
|
|
609
|
+
resourceLimit: this.resourceLimit
|
|
610
|
+
}),
|
|
611
|
+
buttons: [{
|
|
612
|
+
text: _common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__["LanguageService"].getPhrase(lang, 'okay'),
|
|
613
|
+
className: 'btn btn-primary',
|
|
614
|
+
success: true
|
|
615
|
+
}]
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
}]);
|
|
619
|
+
|
|
620
|
+
return TooManyResourcesError;
|
|
621
|
+
}(_errors_primitives_DialogError__WEBPACK_IMPORTED_MODULE_0__["DialogError"]);
|
|
622
|
+
|
|
623
|
+
/***/ }),
|
|
624
|
+
|
|
625
|
+
/***/ "../../libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError.ts":
|
|
626
|
+
/*!***************************************************************************************************************************!*\
|
|
627
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError.ts ***!
|
|
628
|
+
\***************************************************************************************************************************/
|
|
629
|
+
/*! exports provided: TooManySubtitlesError */
|
|
630
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
631
|
+
|
|
632
|
+
"use strict";
|
|
633
|
+
__webpack_require__.r(__webpack_exports__);
|
|
634
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TooManySubtitlesError", function() { return TooManySubtitlesError; });
|
|
635
|
+
/* harmony import */ var _errors_primitives_DialogError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../errors/primitives/DialogError */ "../../libs/shared/src/errors/primitives/DialogError.ts");
|
|
636
|
+
/* harmony import */ var _common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
637
|
+
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); }
|
|
638
|
+
|
|
639
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
640
|
+
|
|
641
|
+
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); } }
|
|
642
|
+
|
|
643
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
644
|
+
|
|
645
|
+
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); }
|
|
646
|
+
|
|
647
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
648
|
+
|
|
649
|
+
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); }; }
|
|
650
|
+
|
|
651
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
652
|
+
|
|
653
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
654
|
+
|
|
655
|
+
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; } }
|
|
656
|
+
|
|
657
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
var lang = 'shared.errors.tooManySubtitles';
|
|
662
|
+
var TooManySubtitlesError = /*#__PURE__*/function (_DialogError) {
|
|
663
|
+
_inherits(TooManySubtitlesError, _DialogError);
|
|
664
|
+
|
|
665
|
+
var _super = _createSuper(TooManySubtitlesError);
|
|
666
|
+
|
|
667
|
+
function TooManySubtitlesError(subtitleLimit) {
|
|
668
|
+
var _this;
|
|
669
|
+
|
|
670
|
+
_classCallCheck(this, TooManySubtitlesError);
|
|
671
|
+
|
|
672
|
+
_this = _super.call(this, 'Cannot add that many subtitles');
|
|
673
|
+
_this.subtileLimit = subtitleLimit;
|
|
674
|
+
return _this;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
_createClass(TooManySubtitlesError, [{
|
|
678
|
+
key: "name",
|
|
679
|
+
get: function get() {
|
|
680
|
+
return 'TooManySubtitlesError';
|
|
681
|
+
}
|
|
682
|
+
}, {
|
|
683
|
+
key: "dialogOptions",
|
|
684
|
+
get: function get() {
|
|
685
|
+
return {
|
|
686
|
+
title: _common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__["LanguageService"].getPhrase(lang, 'heading'),
|
|
687
|
+
text: _common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__["LanguageService"].getPhrase(lang, 'body', {
|
|
688
|
+
subtitleLimit: this.subtileLimit
|
|
689
|
+
}),
|
|
690
|
+
buttons: [{
|
|
691
|
+
text: _common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__["LanguageService"].getPhrase(lang, 'okay'),
|
|
692
|
+
className: 'btn btn-primary',
|
|
693
|
+
success: true
|
|
694
|
+
}]
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
}]);
|
|
698
|
+
|
|
699
|
+
return TooManySubtitlesError;
|
|
700
|
+
}(_errors_primitives_DialogError__WEBPACK_IMPORTED_MODULE_0__["DialogError"]);
|
|
701
|
+
|
|
702
|
+
/***/ }),
|
|
703
|
+
|
|
704
|
+
/***/ "../../libs/shared/src/utils/SubtitleHelper.ts":
|
|
705
|
+
/*!*****************************************************************************************!*\
|
|
706
|
+
!*** C:/ClickView Projects/@clickview/packages/libs/shared/src/utils/SubtitleHelper.ts ***!
|
|
707
|
+
\*****************************************************************************************/
|
|
708
|
+
/*! exports provided: SubtitleHelper */
|
|
709
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
710
|
+
|
|
711
|
+
"use strict";
|
|
712
|
+
__webpack_require__.r(__webpack_exports__);
|
|
713
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubtitleHelper", function() { return SubtitleHelper; });
|
|
714
|
+
/* harmony import */ var _common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
715
|
+
|
|
716
|
+
var namespace = 'shared.shared-utils';
|
|
717
|
+
var SubtitleHelper = {
|
|
718
|
+
/**
|
|
719
|
+
*
|
|
720
|
+
* @param subtitle - the subtitle to get the English name for.
|
|
721
|
+
* @param allVideoSubtitles - the full list of subtitles on the video.
|
|
722
|
+
*/
|
|
723
|
+
getEnglishName: function getEnglishName(subtitle, allVideoSubtitles) {
|
|
724
|
+
var _a, _b;
|
|
725
|
+
|
|
726
|
+
var language = subtitle.language;
|
|
727
|
+
var differentNames = (_a = allVideoSubtitles) === null || _a === void 0 ? void 0 : _a.filter(function (s) {
|
|
728
|
+
return s.language !== language;
|
|
729
|
+
});
|
|
730
|
+
var name;
|
|
731
|
+
if (differentNames.length > 0) name = CVLanguages.getFullEnglishName(language);else name = CVLanguages.getEnglishName(language);
|
|
732
|
+
return ((_b = subtitle.metadata) === null || _b === void 0 ? void 0 : _b.autoGenerated) ? _common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_0__["LanguageService"].getPhrase(namespace, 'autoGeneratedSubtitle', {
|
|
733
|
+
name: name
|
|
734
|
+
}) : name;
|
|
735
|
+
}
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
/***/ }),
|
|
739
|
+
|
|
740
|
+
/***/ "./src/apps/library-editor/components/add-links/AddLinks.hbs":
|
|
741
|
+
/*!*******************************************************************!*\
|
|
742
|
+
!*** ./src/apps/library-editor/components/add-links/AddLinks.hbs ***!
|
|
743
|
+
\*******************************************************************/
|
|
744
|
+
/*! no static exports found */
|
|
745
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
746
|
+
|
|
747
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
748
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
749
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
750
|
+
|
|
751
|
+
return "<p class=\"alert alert-warning col-8\">"
|
|
752
|
+
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"limit",{"name":"lang","hash":{"limit":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.limit : stack1)},"data":data}))
|
|
753
|
+
+ "</p>\r\n";
|
|
754
|
+
},"3":function(container,depth0,helpers,partials,data) {
|
|
755
|
+
var alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression;
|
|
756
|
+
|
|
757
|
+
return "<p>"
|
|
758
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"subheading",{"name":"lang","hash":{},"data":data}))
|
|
759
|
+
+ "</p>\r\n<div class=\"form-group mb-1\">\r\n <label for=\"url\">"
|
|
760
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"urlLabel",{"name":"lang","hash":{},"data":data}))
|
|
761
|
+
+ "</label>\r\n <input name=\"url\" id=\"url\" class=\"form-control\" type=\"text\" placeholder=\""
|
|
762
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"urlPlaceholder",{"name":"lang","hash":{},"data":data}))
|
|
763
|
+
+ "\">\r\n <div class=\"form-feedback\"></div>\r\n</div>\r\n<div class=\"form-group mb-1\" id=\"name-container\" style=\"display: none;\">\r\n <input type=\"text\" class=\"form-control\" name=\"name\" placeholder=\""
|
|
764
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"namePlaceholder",{"name":"lang","hash":{},"data":data}))
|
|
765
|
+
+ "\">\r\n <div class=\"form-feedback\"></div>\r\n</div>\r\n<div class=\"attach-btn-region\"></div>\r\n";
|
|
766
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
767
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
768
|
+
|
|
769
|
+
return "<h5 class=\"pt-2\">Resource Links</h5>\r\n"
|
|
770
|
+
+ ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hide : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "");
|
|
771
|
+
},"useData":true});
|
|
772
|
+
|
|
773
|
+
/***/ }),
|
|
774
|
+
|
|
775
|
+
/***/ "./src/apps/library-editor/components/add-links/AddLinksComponent.ts":
|
|
776
|
+
/*!***************************************************************************!*\
|
|
777
|
+
!*** ./src/apps/library-editor/components/add-links/AddLinksComponent.ts ***!
|
|
778
|
+
\***************************************************************************/
|
|
779
|
+
/*! exports provided: AddLinksComponent */
|
|
780
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
781
|
+
|
|
782
|
+
"use strict";
|
|
783
|
+
__webpack_require__.r(__webpack_exports__);
|
|
784
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddLinksComponent", function() { return AddLinksComponent; });
|
|
785
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
|
|
786
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
|
|
787
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
788
|
+
/* harmony import */ var _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/ViewModelService */ "../../libs/common/src/backbone/services/ViewModelService.ts");
|
|
789
|
+
/* harmony import */ var _shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/components/spinner-button/SpinnerButtonComponent */ "./src/shared/components/spinner-button/SpinnerButtonComponent.ts");
|
|
790
|
+
/* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/utils */ "./src/shared/utils/index.ts");
|
|
791
|
+
/* harmony import */ var _shared_behaviors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/behaviors */ "./src/shared/behaviors/index.ts");
|
|
792
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils */ "./src/apps/library-editor/utils/index.ts");
|
|
793
|
+
/* harmony import */ var _AddLinks_hbs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./AddLinks.hbs */ "./src/apps/library-editor/components/add-links/AddLinks.hbs");
|
|
794
|
+
/* harmony import */ var _AddLinks_hbs__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_AddLinks_hbs__WEBPACK_IMPORTED_MODULE_7__);
|
|
795
|
+
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
796
|
+
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); }
|
|
797
|
+
|
|
798
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
799
|
+
|
|
800
|
+
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); } }
|
|
801
|
+
|
|
802
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
803
|
+
|
|
804
|
+
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); }
|
|
805
|
+
|
|
806
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
807
|
+
|
|
808
|
+
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); }; }
|
|
809
|
+
|
|
810
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
811
|
+
|
|
812
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
813
|
+
|
|
814
|
+
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; } }
|
|
815
|
+
|
|
816
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
var AddLinksComponent = /*#__PURE__*/function (_Core$Component) {
|
|
828
|
+
_inherits(AddLinksComponent, _Core$Component);
|
|
829
|
+
|
|
830
|
+
var _super = _createSuper(AddLinksComponent);
|
|
831
|
+
|
|
832
|
+
function AddLinksComponent(options) {
|
|
833
|
+
var _this;
|
|
834
|
+
|
|
835
|
+
_classCallCheck(this, AddLinksComponent);
|
|
836
|
+
|
|
837
|
+
_this = _super.call(this, options);
|
|
838
|
+
_this.showNameField = false;
|
|
839
|
+
_this.disableBtn = true;
|
|
840
|
+
return _this;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
_createClass(AddLinksComponent, [{
|
|
844
|
+
key: "initialize",
|
|
845
|
+
value: function initialize() {
|
|
846
|
+
this.model = _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_2__["ViewModelService"].get(this.viewModelName);
|
|
847
|
+
this.model.addValidation(_utils__WEBPACK_IMPORTED_MODULE_6__["ResourceLinkValidation"]);
|
|
848
|
+
this.bindListeners();
|
|
849
|
+
}
|
|
850
|
+
}, {
|
|
851
|
+
key: "regions",
|
|
852
|
+
value: function regions() {
|
|
853
|
+
return {
|
|
854
|
+
attachBtn: '.attach-btn-region'
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
}, {
|
|
858
|
+
key: "bindListeners",
|
|
859
|
+
value: function bindListeners() {
|
|
860
|
+
this.listenTo(this.model, 'change:url', this.onChangeUrl);
|
|
861
|
+
this.listenTo(this.model, 'change:name', this.onChangeName);
|
|
862
|
+
this.listenTo(this.options.channelName, 'attach:link', this.onClickAttach);
|
|
863
|
+
}
|
|
864
|
+
}, {
|
|
865
|
+
key: "onChangeUrl",
|
|
866
|
+
value: function onChangeUrl() {
|
|
867
|
+
if (this.showNameField && !this.model.isValid('url')) {
|
|
868
|
+
this.getUI('nameField').hide();
|
|
869
|
+
this.model.set('name', '');
|
|
870
|
+
this.showNameField = false;
|
|
871
|
+
} else if (!this.showNameField && this.model.isValid('url')) {
|
|
872
|
+
this.getUI('nameField').show();
|
|
873
|
+
this.showNameField = true;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}, {
|
|
877
|
+
key: "onChangeName",
|
|
878
|
+
value: function onChangeName() {
|
|
879
|
+
this.model.validate('name');
|
|
880
|
+
this.disableBtn = !this.model.isValid();
|
|
881
|
+
this.renderAttachButton();
|
|
882
|
+
}
|
|
883
|
+
}, {
|
|
884
|
+
key: "onClickAttach",
|
|
885
|
+
value: function onClickAttach() {
|
|
886
|
+
var link = this.model.toJSON();
|
|
887
|
+
this.model.clear();
|
|
888
|
+
backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(this.options.channelName).trigger('add:link', link);
|
|
889
|
+
this.render();
|
|
890
|
+
}
|
|
891
|
+
}, {
|
|
892
|
+
key: "renderAttachButton",
|
|
893
|
+
value: function renderAttachButton() {
|
|
894
|
+
if (this.options.hide) return;
|
|
895
|
+
this.showChildView('attachBtn', new _shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_3__["SpinnerButtonComponent"]({
|
|
896
|
+
saveEvent: 'attach:link',
|
|
897
|
+
channelName: this.options.channelName,
|
|
898
|
+
buttonText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_8__["LanguageService"].getPhrase(this.lang, 'attach'),
|
|
899
|
+
extraButtonClass: "btn-secondary attach",
|
|
900
|
+
disabled: this.disableBtn,
|
|
901
|
+
buttonType: 'submit',
|
|
902
|
+
spinnerOptions: {
|
|
903
|
+
size: _shared_utils__WEBPACK_IMPORTED_MODULE_4__["SpinnerSize"].Medium,
|
|
904
|
+
type: _shared_utils__WEBPACK_IMPORTED_MODULE_4__["SpinnerType"].Light,
|
|
905
|
+
extraClasses: 'mx-auto'
|
|
906
|
+
}
|
|
907
|
+
}));
|
|
908
|
+
}
|
|
909
|
+
}, {
|
|
910
|
+
key: "viewOptions",
|
|
911
|
+
value: function viewOptions() {
|
|
912
|
+
return {
|
|
913
|
+
limit: this.options.limit,
|
|
914
|
+
hide: this.options.hide
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
}, {
|
|
918
|
+
key: "onRender",
|
|
919
|
+
value: function onRender() {
|
|
920
|
+
this.renderAttachButton();
|
|
921
|
+
this.stickit();
|
|
922
|
+
backbone__WEBPACK_IMPORTED_MODULE_0__["Validation"].bind(this);
|
|
923
|
+
}
|
|
924
|
+
}, {
|
|
925
|
+
key: "onClose",
|
|
926
|
+
value: function onClose() {
|
|
927
|
+
this.unstickit();
|
|
928
|
+
backbone__WEBPACK_IMPORTED_MODULE_0__["Validation"].unbind(this);
|
|
929
|
+
}
|
|
930
|
+
}, {
|
|
931
|
+
key: "name",
|
|
932
|
+
get: function get() {
|
|
933
|
+
return 'AddLinksComponent';
|
|
934
|
+
}
|
|
935
|
+
}, {
|
|
936
|
+
key: "template",
|
|
937
|
+
get: function get() {
|
|
938
|
+
return _AddLinks_hbs__WEBPACK_IMPORTED_MODULE_7___default.a;
|
|
939
|
+
}
|
|
940
|
+
}, {
|
|
941
|
+
key: "lang",
|
|
942
|
+
get: function get() {
|
|
943
|
+
return 'libraryEditor.addLinks';
|
|
944
|
+
}
|
|
945
|
+
}, {
|
|
946
|
+
key: "tagName",
|
|
947
|
+
get: function get() {
|
|
948
|
+
return 'form';
|
|
949
|
+
}
|
|
950
|
+
}, {
|
|
951
|
+
key: "bindings",
|
|
952
|
+
get: function get() {
|
|
953
|
+
return {
|
|
954
|
+
'[name=url]': {
|
|
955
|
+
observe: 'url',
|
|
956
|
+
setOptions: {
|
|
957
|
+
validate: true
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
'[name=name]': {
|
|
961
|
+
observe: 'name',
|
|
962
|
+
setOptions: {
|
|
963
|
+
validate: true
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
};
|
|
967
|
+
}
|
|
968
|
+
}, {
|
|
969
|
+
key: "behaviors",
|
|
970
|
+
get: function get() {
|
|
971
|
+
return [{
|
|
972
|
+
behaviorClass: _shared_behaviors__WEBPACK_IMPORTED_MODULE_5__["StickitBehavior"]
|
|
973
|
+
}, {
|
|
974
|
+
behaviorClass: _shared_behaviors__WEBPACK_IMPORTED_MODULE_5__["BackboneValidationBehavior"]
|
|
975
|
+
}];
|
|
976
|
+
}
|
|
977
|
+
}, {
|
|
978
|
+
key: "elements",
|
|
979
|
+
get: function get() {
|
|
980
|
+
return {
|
|
981
|
+
nameField: '#name-container'
|
|
982
|
+
};
|
|
983
|
+
}
|
|
984
|
+
}, {
|
|
985
|
+
key: "viewModelName",
|
|
986
|
+
get: function get() {
|
|
987
|
+
return "".concat(this.name, ":").concat(this.cid);
|
|
988
|
+
}
|
|
989
|
+
}]);
|
|
990
|
+
|
|
991
|
+
return AddLinksComponent;
|
|
992
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
993
|
+
|
|
994
|
+
/***/ }),
|
|
995
|
+
|
|
996
|
+
/***/ "./src/apps/library-editor/components/file-uploads/FileUploadsComponentCollection.ts":
|
|
997
|
+
/*!*******************************************************************************************!*\
|
|
998
|
+
!*** ./src/apps/library-editor/components/file-uploads/FileUploadsComponentCollection.ts ***!
|
|
999
|
+
\*******************************************************************************************/
|
|
1000
|
+
/*! exports provided: FileUploadsComponentCollection */
|
|
1001
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1002
|
+
|
|
1003
|
+
"use strict";
|
|
1004
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1005
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileUploadsComponentCollection", function() { return FileUploadsComponentCollection; });
|
|
1006
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
|
|
1007
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
|
|
1008
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1009
|
+
/* harmony import */ var _libs_shared_src_legacy_components_file_uploads_FileUploadComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/legacy/components/file-uploads/FileUploadComponent */ "../../libs/shared/src/legacy/components/file-uploads/FileUploadComponent.ts");
|
|
1010
|
+
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); }
|
|
1011
|
+
|
|
1012
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1013
|
+
|
|
1014
|
+
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); } }
|
|
1015
|
+
|
|
1016
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1017
|
+
|
|
1018
|
+
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); }
|
|
1019
|
+
|
|
1020
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1021
|
+
|
|
1022
|
+
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); }; }
|
|
1023
|
+
|
|
1024
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1025
|
+
|
|
1026
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1027
|
+
|
|
1028
|
+
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; } }
|
|
1029
|
+
|
|
1030
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
var FileUploadsComponentCollection = /*#__PURE__*/function (_Core$ComponentCollec) {
|
|
1036
|
+
_inherits(FileUploadsComponentCollection, _Core$ComponentCollec);
|
|
1037
|
+
|
|
1038
|
+
var _super = _createSuper(FileUploadsComponentCollection);
|
|
1039
|
+
|
|
1040
|
+
function FileUploadsComponentCollection(options) {
|
|
1041
|
+
_classCallCheck(this, FileUploadsComponentCollection);
|
|
1042
|
+
|
|
1043
|
+
return _super.call(this, options);
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
_createClass(FileUploadsComponentCollection, [{
|
|
1047
|
+
key: "name",
|
|
1048
|
+
get: function get() {
|
|
1049
|
+
return 'FileUploadsComponentCollection';
|
|
1050
|
+
}
|
|
1051
|
+
}, {
|
|
1052
|
+
key: "childView",
|
|
1053
|
+
get: function get() {
|
|
1054
|
+
return _libs_shared_src_legacy_components_file_uploads_FileUploadComponent__WEBPACK_IMPORTED_MODULE_2__["FileUploadComponent"];
|
|
1055
|
+
}
|
|
1056
|
+
}, {
|
|
1057
|
+
key: "childViewOptions",
|
|
1058
|
+
get: function get() {
|
|
1059
|
+
var _this = this;
|
|
1060
|
+
|
|
1061
|
+
return {
|
|
1062
|
+
onClickCancelUpload: function onClickCancelUpload(id) {
|
|
1063
|
+
var channel = backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(_this.options.channelName);
|
|
1064
|
+
channel.trigger('cancel:upload', id);
|
|
1065
|
+
}
|
|
1066
|
+
};
|
|
1067
|
+
}
|
|
1068
|
+
}]);
|
|
1069
|
+
|
|
1070
|
+
return FileUploadsComponentCollection;
|
|
1071
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].ComponentCollection);
|
|
1072
|
+
|
|
1073
|
+
/***/ }),
|
|
1074
|
+
|
|
1075
|
+
/***/ "./src/apps/library-editor/components/language-select/LanguageSelect.hbs":
|
|
1076
|
+
/*!*******************************************************************************!*\
|
|
1077
|
+
!*** ./src/apps/library-editor/components/language-select/LanguageSelect.hbs ***!
|
|
1078
|
+
\*******************************************************************************/
|
|
1079
|
+
/*! no static exports found */
|
|
1080
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1081
|
+
|
|
1082
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
1083
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
1084
|
+
var alias1=container.propertyIsEnumerable;
|
|
1085
|
+
|
|
1086
|
+
return "<form>\r\n <div class=\"form-group\">\r\n <label for=\"language\">"
|
|
1087
|
+
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"label",{"name":"lang","hash":{},"data":data}))
|
|
1088
|
+
+ "</label>\r\n <div class=\"typahead-region\"></div>\r\n </div>\r\n</form>";
|
|
1089
|
+
},"useData":true});
|
|
1090
|
+
|
|
1091
|
+
/***/ }),
|
|
1092
|
+
|
|
1093
|
+
/***/ "./src/apps/library-editor/components/language-select/LanguageSelectComponent.ts":
|
|
1094
|
+
/*!***************************************************************************************!*\
|
|
1095
|
+
!*** ./src/apps/library-editor/components/language-select/LanguageSelectComponent.ts ***!
|
|
1096
|
+
\***************************************************************************************/
|
|
1097
|
+
/*! exports provided: LanguageSelectComponent */
|
|
1098
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1099
|
+
|
|
1100
|
+
"use strict";
|
|
1101
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1102
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LanguageSelectComponent", function() { return LanguageSelectComponent; });
|
|
1103
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1104
|
+
/* harmony import */ var _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/ViewModelService */ "../../libs/common/src/backbone/services/ViewModelService.ts");
|
|
1105
|
+
/* harmony import */ var _shared_behaviors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/behaviors */ "./src/shared/behaviors/index.ts");
|
|
1106
|
+
/* harmony import */ var _shared_components_typeahead_input_SearchTypeaheadComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/components/typeahead-input/SearchTypeaheadComponent */ "./src/shared/components/typeahead-input/SearchTypeaheadComponent.ts");
|
|
1107
|
+
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
1108
|
+
/* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/utils */ "./src/shared/utils/index.ts");
|
|
1109
|
+
/* harmony import */ var _LanguageSelectTypeaheadHelper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./LanguageSelectTypeaheadHelper */ "./src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.ts");
|
|
1110
|
+
/* harmony import */ var _LanguageSelect_hbs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./LanguageSelect.hbs */ "./src/apps/library-editor/components/language-select/LanguageSelect.hbs");
|
|
1111
|
+
/* harmony import */ var _LanguageSelect_hbs__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_LanguageSelect_hbs__WEBPACK_IMPORTED_MODULE_7__);
|
|
1112
|
+
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); }
|
|
1113
|
+
|
|
1114
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1115
|
+
|
|
1116
|
+
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); } }
|
|
1117
|
+
|
|
1118
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1119
|
+
|
|
1120
|
+
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); }
|
|
1121
|
+
|
|
1122
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1123
|
+
|
|
1124
|
+
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); }; }
|
|
1125
|
+
|
|
1126
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1127
|
+
|
|
1128
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1129
|
+
|
|
1130
|
+
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; } }
|
|
1131
|
+
|
|
1132
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
var LanguageSelectComponent = /*#__PURE__*/function (_Core$Component) {
|
|
1143
|
+
_inherits(LanguageSelectComponent, _Core$Component);
|
|
1144
|
+
|
|
1145
|
+
var _super = _createSuper(LanguageSelectComponent);
|
|
1146
|
+
|
|
1147
|
+
function LanguageSelectComponent(options) {
|
|
1148
|
+
_classCallCheck(this, LanguageSelectComponent);
|
|
1149
|
+
|
|
1150
|
+
return _super.call(this, options);
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
_createClass(LanguageSelectComponent, [{
|
|
1154
|
+
key: "initialize",
|
|
1155
|
+
value: function initialize(options) {
|
|
1156
|
+
this.model = _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_1__["ViewModelService"].get('subtitle:language', options.defaultLanguage);
|
|
1157
|
+
this.model.addValidation(_shared_utils__WEBPACK_IMPORTED_MODULE_5__["SubtitleLanguageValidation"]);
|
|
1158
|
+
this.listenTo(this.channelName, 'select:language', this.onLanguageSelected);
|
|
1159
|
+
}
|
|
1160
|
+
}, {
|
|
1161
|
+
key: "events",
|
|
1162
|
+
value: function events() {
|
|
1163
|
+
return {
|
|
1164
|
+
'click .submit': 'onClickSubmit',
|
|
1165
|
+
'submit': 'onClickSubmit'
|
|
1166
|
+
};
|
|
1167
|
+
}
|
|
1168
|
+
}, {
|
|
1169
|
+
key: "regions",
|
|
1170
|
+
value: function regions() {
|
|
1171
|
+
return {
|
|
1172
|
+
typeahead: '.typahead-region'
|
|
1173
|
+
};
|
|
1174
|
+
}
|
|
1175
|
+
}, {
|
|
1176
|
+
key: "getTypeaheadConfigs",
|
|
1177
|
+
value: function getTypeaheadConfigs() {
|
|
1178
|
+
var typeaheadConfig = _LanguageSelectTypeaheadHelper__WEBPACK_IMPORTED_MODULE_6__["LangugageSelectTypeaheadHelper"].getTypeaheadConfig();
|
|
1179
|
+
return [{
|
|
1180
|
+
name: 'languages',
|
|
1181
|
+
typeaheadConfig: typeaheadConfig
|
|
1182
|
+
}];
|
|
1183
|
+
}
|
|
1184
|
+
}, {
|
|
1185
|
+
key: "renderTypeahead",
|
|
1186
|
+
value: function renderTypeahead() {
|
|
1187
|
+
this.showChildView('typeahead', new _shared_components_typeahead_input_SearchTypeaheadComponent__WEBPACK_IMPORTED_MODULE_3__["SearchTypeaheadComponent"]({
|
|
1188
|
+
model: this.model,
|
|
1189
|
+
parentChannelName: this.channelName,
|
|
1190
|
+
inputId: 'language',
|
|
1191
|
+
selectEvent: 'select:language',
|
|
1192
|
+
typeaheadConfigs: this.getTypeaheadConfigs()
|
|
1193
|
+
}));
|
|
1194
|
+
}
|
|
1195
|
+
}, {
|
|
1196
|
+
key: "onLanguageSelected",
|
|
1197
|
+
value: function onLanguageSelected(selected) {
|
|
1198
|
+
this.model.set('code', selected.key);
|
|
1199
|
+
}
|
|
1200
|
+
}, {
|
|
1201
|
+
key: "onClickSubmit",
|
|
1202
|
+
value: function onClickSubmit() {
|
|
1203
|
+
this.model.validate();
|
|
1204
|
+
if (!this.model.isValid()) return;
|
|
1205
|
+
this.options.promise.resolve(this.model.toJSON());
|
|
1206
|
+
this.triggerMethod('hide');
|
|
1207
|
+
}
|
|
1208
|
+
}, {
|
|
1209
|
+
key: "onBeforeDestroy",
|
|
1210
|
+
value: function onBeforeDestroy() {
|
|
1211
|
+
if (this.options.promise.state() === 'pending') this.options.promise.reject();
|
|
1212
|
+
}
|
|
1213
|
+
}, {
|
|
1214
|
+
key: "onRender",
|
|
1215
|
+
value: function onRender() {
|
|
1216
|
+
this.renderTypeahead();
|
|
1217
|
+
}
|
|
1218
|
+
}, {
|
|
1219
|
+
key: "template",
|
|
1220
|
+
get: function get() {
|
|
1221
|
+
return _LanguageSelect_hbs__WEBPACK_IMPORTED_MODULE_7___default.a;
|
|
1222
|
+
}
|
|
1223
|
+
}, {
|
|
1224
|
+
key: "name",
|
|
1225
|
+
get: function get() {
|
|
1226
|
+
return 'LanguageSelectComponent';
|
|
1227
|
+
}
|
|
1228
|
+
}, {
|
|
1229
|
+
key: "lang",
|
|
1230
|
+
get: function get() {
|
|
1231
|
+
return 'libraryEditor.languageSelect';
|
|
1232
|
+
}
|
|
1233
|
+
}, {
|
|
1234
|
+
key: "behaviors",
|
|
1235
|
+
get: function get() {
|
|
1236
|
+
return [{
|
|
1237
|
+
behaviorClass: _shared_behaviors__WEBPACK_IMPORTED_MODULE_2__["PopupBehavior"],
|
|
1238
|
+
title: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'heading'),
|
|
1239
|
+
buttons: [{
|
|
1240
|
+
text: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'submit'),
|
|
1241
|
+
type: 'submit',
|
|
1242
|
+
className: 'btn btn-primary submit'
|
|
1243
|
+
}]
|
|
1244
|
+
}, {
|
|
1245
|
+
behaviorClass: _shared_behaviors__WEBPACK_IMPORTED_MODULE_2__["BackboneValidationBehavior"]
|
|
1246
|
+
}];
|
|
1247
|
+
}
|
|
1248
|
+
}, {
|
|
1249
|
+
key: "channelName",
|
|
1250
|
+
get: function get() {
|
|
1251
|
+
return "".concat(this.name).concat(this.cid);
|
|
1252
|
+
}
|
|
1253
|
+
}]);
|
|
1254
|
+
|
|
1255
|
+
return LanguageSelectComponent;
|
|
1256
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
1257
|
+
|
|
1258
|
+
/***/ }),
|
|
1259
|
+
|
|
1260
|
+
/***/ "./src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.ts":
|
|
1261
|
+
/*!*********************************************************************************************!*\
|
|
1262
|
+
!*** ./src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.ts ***!
|
|
1263
|
+
\*********************************************************************************************/
|
|
1264
|
+
/*! exports provided: LangugageSelectTypeaheadHelper */
|
|
1265
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1266
|
+
|
|
1267
|
+
"use strict";
|
|
1268
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1269
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LangugageSelectTypeaheadHelper", function() { return LangugageSelectTypeaheadHelper; });
|
|
1270
|
+
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
1271
|
+
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
1272
|
+
/* harmony import */ var _shared_utils_search_raw_search_templates__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/utils/search/raw-search-templates */ "./src/shared/utils/search/raw-search-templates/index.ts");
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
var LangugageSelectTypeaheadHelper = {
|
|
1276
|
+
handleQuery: function handleQuery() {
|
|
1277
|
+
return function (query, syncResults) {
|
|
1278
|
+
var matches = [];
|
|
1279
|
+
|
|
1280
|
+
if (!query) {
|
|
1281
|
+
syncResults();
|
|
1282
|
+
return;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
var lanByStr = CVLanguages.getEnglishNameContains(query); // do not show already selected languages
|
|
1286
|
+
|
|
1287
|
+
underscore__WEBPACK_IMPORTED_MODULE_0__["each"](lanByStr, function (ls, key) {
|
|
1288
|
+
matches.push({
|
|
1289
|
+
key: key,
|
|
1290
|
+
name: ls.englishName
|
|
1291
|
+
});
|
|
1292
|
+
});
|
|
1293
|
+
|
|
1294
|
+
return syncResults(matches);
|
|
1295
|
+
};
|
|
1296
|
+
},
|
|
1297
|
+
getTypeaheadConfig: function getTypeaheadConfig() {
|
|
1298
|
+
return function () {
|
|
1299
|
+
return {
|
|
1300
|
+
name: 'languages',
|
|
1301
|
+
source: LangugageSelectTypeaheadHelper.handleQuery(),
|
|
1302
|
+
limit: 5,
|
|
1303
|
+
display: function display(d) {
|
|
1304
|
+
return d.name;
|
|
1305
|
+
},
|
|
1306
|
+
templates: {
|
|
1307
|
+
suggestion: _shared_utils_search_raw_search_templates__WEBPACK_IMPORTED_MODULE_1__["ResultSuggestion"],
|
|
1308
|
+
pending: _shared_utils_search_raw_search_templates__WEBPACK_IMPORTED_MODULE_1__["Loading"],
|
|
1309
|
+
notFound: _shared_utils_search_raw_search_templates__WEBPACK_IMPORTED_MODULE_1__["NotFound"]
|
|
1310
|
+
}
|
|
1311
|
+
};
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
};
|
|
1315
|
+
|
|
1316
|
+
/***/ }),
|
|
1317
|
+
|
|
1318
|
+
/***/ "./src/apps/library-editor/components/video-subtitles/VideoSubtitles.hbs":
|
|
1319
|
+
/*!*******************************************************************************!*\
|
|
1320
|
+
!*** ./src/apps/library-editor/components/video-subtitles/VideoSubtitles.hbs ***!
|
|
1321
|
+
\*******************************************************************************/
|
|
1322
|
+
/*! no static exports found */
|
|
1323
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1324
|
+
|
|
1325
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
1326
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
1327
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
1328
|
+
|
|
1329
|
+
return container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.emptyStateText : stack1), depth0));
|
|
1330
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
1331
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
1332
|
+
|
|
1333
|
+
return "<h5>"
|
|
1334
|
+
+ container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.headerText : stack1), depth0))
|
|
1335
|
+
+ "</h5>\r\n"
|
|
1336
|
+
+ ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.emptyStateText : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1337
|
+
+ "\r\n<div class=\"subtitles-list-region\"></div>";
|
|
1338
|
+
},"useData":true});
|
|
1339
|
+
|
|
1340
|
+
/***/ }),
|
|
1341
|
+
|
|
1342
|
+
/***/ "./src/apps/library-editor/components/video-subtitles/VideoSubtitlesComponent.ts":
|
|
1343
|
+
/*!***************************************************************************************!*\
|
|
1344
|
+
!*** ./src/apps/library-editor/components/video-subtitles/VideoSubtitlesComponent.ts ***!
|
|
1345
|
+
\***************************************************************************************/
|
|
1346
|
+
/*! exports provided: VideoSubtitlesComponent, VideoSubtitlesComponentCollection */
|
|
1347
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1348
|
+
|
|
1349
|
+
"use strict";
|
|
1350
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1351
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoSubtitlesComponent", function() { return VideoSubtitlesComponent; });
|
|
1352
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VideoSubtitlesComponentCollection", function() { return VideoSubtitlesComponentCollection; });
|
|
1353
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
|
|
1354
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
|
|
1355
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1356
|
+
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
1357
|
+
/* harmony import */ var _libs_shared_src_legacy_components_subtitle_item_SubtitleItemComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/legacy/components/subtitle-item/SubtitleItemComponent */ "../../libs/shared/src/legacy/components/subtitle-item/SubtitleItemComponent.ts");
|
|
1358
|
+
/* harmony import */ var _libs_shared_src_utils_SubtitleHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/utils/SubtitleHelper */ "../../libs/shared/src/utils/SubtitleHelper.ts");
|
|
1359
|
+
/* harmony import */ var _shared_utils_DialogHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/utils/DialogHelper */ "./src/shared/utils/DialogHelper.ts");
|
|
1360
|
+
/* harmony import */ var _VideoSubtitles_hbs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./VideoSubtitles.hbs */ "./src/apps/library-editor/components/video-subtitles/VideoSubtitles.hbs");
|
|
1361
|
+
/* harmony import */ var _VideoSubtitles_hbs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_VideoSubtitles_hbs__WEBPACK_IMPORTED_MODULE_6__);
|
|
1362
|
+
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); }
|
|
1363
|
+
|
|
1364
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1365
|
+
|
|
1366
|
+
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); } }
|
|
1367
|
+
|
|
1368
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1369
|
+
|
|
1370
|
+
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); }
|
|
1371
|
+
|
|
1372
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1373
|
+
|
|
1374
|
+
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); }; }
|
|
1375
|
+
|
|
1376
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1377
|
+
|
|
1378
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1379
|
+
|
|
1380
|
+
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; } }
|
|
1381
|
+
|
|
1382
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
var VideoSubtitlesComponent = /*#__PURE__*/function (_Core$Component) {
|
|
1392
|
+
_inherits(VideoSubtitlesComponent, _Core$Component);
|
|
1393
|
+
|
|
1394
|
+
var _super = _createSuper(VideoSubtitlesComponent);
|
|
1395
|
+
|
|
1396
|
+
function VideoSubtitlesComponent(options) {
|
|
1397
|
+
_classCallCheck(this, VideoSubtitlesComponent);
|
|
1398
|
+
|
|
1399
|
+
return _super.call(this, options);
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
_createClass(VideoSubtitlesComponent, [{
|
|
1403
|
+
key: "regions",
|
|
1404
|
+
value: function regions() {
|
|
1405
|
+
return {
|
|
1406
|
+
subtitles: {
|
|
1407
|
+
el: '.subtitles-list-region',
|
|
1408
|
+
replaceElement: true
|
|
1409
|
+
}
|
|
1410
|
+
};
|
|
1411
|
+
}
|
|
1412
|
+
}, {
|
|
1413
|
+
key: "viewOptions",
|
|
1414
|
+
value: function viewOptions() {
|
|
1415
|
+
return {
|
|
1416
|
+
headerText: this.options.headerText,
|
|
1417
|
+
emptyStateText: this.options.emptyStateText
|
|
1418
|
+
};
|
|
1419
|
+
}
|
|
1420
|
+
}, {
|
|
1421
|
+
key: "onRender",
|
|
1422
|
+
value: function onRender() {
|
|
1423
|
+
this.showChildView('subtitles', new VideoSubtitlesComponentCollection({
|
|
1424
|
+
collection: this.collection,
|
|
1425
|
+
channelName: this.options.channelName,
|
|
1426
|
+
isClickViewContent: this.options.isClickViewContent
|
|
1427
|
+
}));
|
|
1428
|
+
}
|
|
1429
|
+
}, {
|
|
1430
|
+
key: "name",
|
|
1431
|
+
get: function get() {
|
|
1432
|
+
return 'VideoSubtitlesComponent';
|
|
1433
|
+
}
|
|
1434
|
+
}, {
|
|
1435
|
+
key: "template",
|
|
1436
|
+
get: function get() {
|
|
1437
|
+
return _VideoSubtitles_hbs__WEBPACK_IMPORTED_MODULE_6___default.a;
|
|
1438
|
+
}
|
|
1439
|
+
}]);
|
|
1440
|
+
|
|
1441
|
+
return VideoSubtitlesComponent;
|
|
1442
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
1443
|
+
var VideoSubtitlesComponentCollection = /*#__PURE__*/function (_Core$ComponentCollec) {
|
|
1444
|
+
_inherits(VideoSubtitlesComponentCollection, _Core$ComponentCollec);
|
|
1445
|
+
|
|
1446
|
+
var _super2 = _createSuper(VideoSubtitlesComponentCollection);
|
|
1447
|
+
|
|
1448
|
+
function VideoSubtitlesComponentCollection(options) {
|
|
1449
|
+
_classCallCheck(this, VideoSubtitlesComponentCollection);
|
|
1450
|
+
|
|
1451
|
+
return _super2.call(this, options);
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
_createClass(VideoSubtitlesComponentCollection, [{
|
|
1455
|
+
key: "onClickDelete",
|
|
1456
|
+
value: function onClickDelete(model) {
|
|
1457
|
+
var _this = this;
|
|
1458
|
+
|
|
1459
|
+
if (this.options.isClickViewContent) return;
|
|
1460
|
+
var dialogHelper = new _shared_utils_DialogHelper__WEBPACK_IMPORTED_MODULE_5__["DialogHelper"]({
|
|
1461
|
+
title: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_2__["LanguageService"].getPhrase(this.lang, 'removeHeading'),
|
|
1462
|
+
text: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_2__["LanguageService"].getPhrase(this.lang, 'removeBody', {
|
|
1463
|
+
language: this.getEnglishName(model)
|
|
1464
|
+
}),
|
|
1465
|
+
buttons: [{
|
|
1466
|
+
text: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_2__["LanguageService"].getPhrase(this.lang, 'remove'),
|
|
1467
|
+
className: 'btn btn-danger',
|
|
1468
|
+
success: true
|
|
1469
|
+
}, {
|
|
1470
|
+
text: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_2__["LanguageService"].getPhrase(this.lang, 'cancel'),
|
|
1471
|
+
className: 'btn btn-secondary',
|
|
1472
|
+
close: true
|
|
1473
|
+
}],
|
|
1474
|
+
channelName: "".concat(this.name).concat(this.cid)
|
|
1475
|
+
});
|
|
1476
|
+
dialogHelper.render().done(function () {
|
|
1477
|
+
var channel = backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(_this.options.channelName);
|
|
1478
|
+
channel.trigger('delete:subtitle', model.get('id'));
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
}, {
|
|
1482
|
+
key: "getEnglishName",
|
|
1483
|
+
value: function getEnglishName(model) {
|
|
1484
|
+
return _libs_shared_src_utils_SubtitleHelper__WEBPACK_IMPORTED_MODULE_4__["SubtitleHelper"].getEnglishName(model.toJSON(), model.collection.toJSON());
|
|
1485
|
+
}
|
|
1486
|
+
}, {
|
|
1487
|
+
key: "name",
|
|
1488
|
+
get: function get() {
|
|
1489
|
+
return 'VideoSubtitlesComponentCollection';
|
|
1490
|
+
}
|
|
1491
|
+
}, {
|
|
1492
|
+
key: "lang",
|
|
1493
|
+
get: function get() {
|
|
1494
|
+
return 'libraryEditor.videoSubtitles';
|
|
1495
|
+
}
|
|
1496
|
+
}, {
|
|
1497
|
+
key: "childView",
|
|
1498
|
+
get: function get() {
|
|
1499
|
+
return _libs_shared_src_legacy_components_subtitle_item_SubtitleItemComponent__WEBPACK_IMPORTED_MODULE_3__["SubtitleItemComponent"];
|
|
1500
|
+
}
|
|
1501
|
+
}, {
|
|
1502
|
+
key: "childViewOptions",
|
|
1503
|
+
get: function get() {
|
|
1504
|
+
var _this2 = this;
|
|
1505
|
+
|
|
1506
|
+
return {
|
|
1507
|
+
isClickViewContent: this.options.isClickViewContent,
|
|
1508
|
+
onClickDelete: function onClickDelete(model) {
|
|
1509
|
+
return _this2.onClickDelete(model);
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
}]);
|
|
1514
|
+
|
|
1515
|
+
return VideoSubtitlesComponentCollection;
|
|
1516
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].ComponentCollection);
|
|
1517
|
+
|
|
1518
|
+
/***/ }),
|
|
1519
|
+
|
|
1520
|
+
/***/ "./src/apps/library-editor/views/edit-resources/EditResources.hbs":
|
|
1521
|
+
/*!************************************************************************!*\
|
|
1522
|
+
!*** ./src/apps/library-editor/views/edit-resources/EditResources.hbs ***!
|
|
1523
|
+
\************************************************************************/
|
|
1524
|
+
/*! no static exports found */
|
|
1525
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1526
|
+
|
|
1527
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
1528
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
1529
|
+
return "col-5";
|
|
1530
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
1531
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});
|
|
1532
|
+
|
|
1533
|
+
return "<div class=\"tab-region\"></div>\r\n\r\n<div class=\"row py-3\">\r\n <div class=\""
|
|
1534
|
+
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.isClickViewContent : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1535
|
+
+ "\">\r\n <div class=\"clickview-subtitles-list-region\"></div>\r\n </div>\r\n <div class=\"col-7\">\r\n <div class=\"subtitles-upload-region\"></div>\r\n <div class=\"subtitles-upload-list-region p-0 col-8\"></div>\r\n <div class=\"customer-subtitles-list-region p-0 col-8\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"row border-top py-3\">\r\n <div class=\""
|
|
1536
|
+
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.isClickViewContent : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1537
|
+
+ "\">\r\n <div class=\"clickview-resources-list-region\"></div>\r\n </div>\r\n <div class=\"col-7\">\r\n <div class=\"resources-upload-region\"></div>\r\n <div class=\"resources-upload-list-region p-0 col-8\"></div>\r\n <div class=\"customer-resources-list-region p-0 col-8\"></div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"row border-top py-3\">\r\n <div class=\""
|
|
1538
|
+
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.isClickViewContent : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1539
|
+
+ "\">\r\n <div class=\"clickview-link-list-region\"></div>\r\n </div>\r\n <div class=\"col-7\">\r\n <div class=\"add-links-region mb-2\"></div>\r\n <div class=\"customer-link-list-region p-0 col-8\"></div>\r\n </div>\r\n</div>";
|
|
1540
|
+
},"useData":true});
|
|
1541
|
+
|
|
1542
|
+
/***/ }),
|
|
1543
|
+
|
|
1544
|
+
/***/ "./src/apps/library-editor/views/edit-resources/EditResourcesView.ts":
|
|
1545
|
+
/*!***************************************************************************!*\
|
|
1546
|
+
!*** ./src/apps/library-editor/views/edit-resources/EditResourcesView.ts ***!
|
|
1547
|
+
\***************************************************************************/
|
|
1548
|
+
/*! exports provided: EditResourcesView */
|
|
1549
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1550
|
+
|
|
1551
|
+
"use strict";
|
|
1552
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1553
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditResourcesView", function() { return EditResourcesView; });
|
|
1554
|
+
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
1555
|
+
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
1556
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! backbone */ "backbone");
|
|
1557
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);
|
|
1558
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1559
|
+
/* harmony import */ var _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/InstanceManager */ "../../libs/common/src/backbone/services/InstanceManager.ts");
|
|
1560
|
+
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
1561
|
+
/* harmony import */ var _libs_common_src_backbone_constants_CommonChannels__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/constants/CommonChannels */ "../../libs/common/src/backbone/constants/CommonChannels.ts");
|
|
1562
|
+
/* harmony import */ var _libs_common_src_backbone_enums_DataServiceErrorType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/enums/DataServiceErrorType */ "../../libs/common/src/backbone/enums/DataServiceErrorType.ts");
|
|
1563
|
+
/* harmony import */ var _libs_shared_src_apps_upload_services_UploadService__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/apps/upload/services/UploadService */ "../../libs/shared/src/apps/upload/services/UploadService.ts");
|
|
1564
|
+
/* harmony import */ var _libs_shared_src_apps_upload_constants_UploadConstants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/apps/upload/constants/UploadConstants */ "../../libs/shared/src/apps/upload/constants/UploadConstants.ts");
|
|
1565
|
+
/* harmony import */ var _libs_shared_src_apps_upload_utils_FileExtensionsHelper__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/apps/upload/utils/FileExtensionsHelper */ "../../libs/shared/src/apps/upload/utils/FileExtensionsHelper.ts");
|
|
1566
|
+
/* harmony import */ var _libs_shared_src_legacy_components_file_select_FileSelectComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/legacy/components/file-select/FileSelectComponent */ "../../libs/shared/src/legacy/components/file-select/FileSelectComponent.ts");
|
|
1567
|
+
/* harmony import */ var _shared_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/constants */ "./src/shared/constants/index.ts");
|
|
1568
|
+
/* harmony import */ var _shared_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../shared/utils */ "./src/shared/utils/index.ts");
|
|
1569
|
+
/* harmony import */ var _shared_models_Resource__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../shared/models/Resource */ "./src/shared/models/Resource.ts");
|
|
1570
|
+
/* harmony import */ var _shared_enums__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../shared/enums */ "./src/shared/enums/index.ts");
|
|
1571
|
+
/* harmony import */ var _shared_behaviors__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../shared/behaviors */ "./src/shared/behaviors/index.ts");
|
|
1572
|
+
/* harmony import */ var _shared_services_UserDataService__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../shared/services/UserDataService */ "./src/shared/services/UserDataService.ts");
|
|
1573
|
+
/* harmony import */ var _components_video_resources_VideoResourcesComponent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../components/video-resources/VideoResourcesComponent */ "./src/apps/library-editor/components/video-resources/VideoResourcesComponent.ts");
|
|
1574
|
+
/* harmony import */ var _components_concatenate_request_ConcatenateRequestComponent__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../components/concatenate-request/ConcatenateRequestComponent */ "./src/apps/library-editor/components/concatenate-request/ConcatenateRequestComponent.ts");
|
|
1575
|
+
/* harmony import */ var _components_file_uploads_FileUploadsComponentCollection__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../components/file-uploads/FileUploadsComponentCollection */ "./src/apps/library-editor/components/file-uploads/FileUploadsComponentCollection.ts");
|
|
1576
|
+
/* harmony import */ var _components_language_select_LanguageSelectComponent__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../components/language-select/LanguageSelectComponent */ "./src/apps/library-editor/components/language-select/LanguageSelectComponent.ts");
|
|
1577
|
+
/* harmony import */ var _components_edit_video_tabs_EditVideoTabsComponent__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../components/edit-video-tabs/EditVideoTabsComponent */ "./src/apps/library-editor/components/edit-video-tabs/EditVideoTabsComponent.ts");
|
|
1578
|
+
/* harmony import */ var _components_video_subtitles_VideoSubtitlesComponent__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../components/video-subtitles/VideoSubtitlesComponent */ "./src/apps/library-editor/components/video-subtitles/VideoSubtitlesComponent.ts");
|
|
1579
|
+
/* harmony import */ var _components_add_links_AddLinksComponent__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../components/add-links/AddLinksComponent */ "./src/apps/library-editor/components/add-links/AddLinksComponent.ts");
|
|
1580
|
+
/* harmony import */ var _components_edit_links_VideoLinksComponent__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../components/edit-links/VideoLinksComponent */ "./src/apps/library-editor/components/edit-links/VideoLinksComponent.ts");
|
|
1581
|
+
/* harmony import */ var _libs_shared_src_legacy_errors_too_many_resources_TooManyResourcesError__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError */ "../../libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError.ts");
|
|
1582
|
+
/* harmony import */ var _libs_shared_src_legacy_errors_too_many_subtitles_TooManySubtitlesError__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError */ "../../libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError.ts");
|
|
1583
|
+
/* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../../errors */ "./src/apps/library-editor/errors/index.ts");
|
|
1584
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../../constants */ "./src/apps/library-editor/constants/index.ts");
|
|
1585
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../../enums */ "./src/apps/library-editor/enums/index.ts");
|
|
1586
|
+
/* harmony import */ var _libs_shared_src_enums_ObjectOwnerType__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/enums/ObjectOwnerType */ "../../libs/shared/src/enums/ObjectOwnerType.ts");
|
|
1587
|
+
/* harmony import */ var _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../../../../../../../libs/analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
|
|
1588
|
+
/* harmony import */ var _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../../../../../../../libs/analytics/src/AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
|
|
1589
|
+
/* harmony import */ var _EditResources_hbs__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./EditResources.hbs */ "./src/apps/library-editor/views/edit-resources/EditResources.hbs");
|
|
1590
|
+
/* harmony import */ var _EditResources_hbs__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/__webpack_require__.n(_EditResources_hbs__WEBPACK_IMPORTED_MODULE_33__);
|
|
1591
|
+
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); }
|
|
1592
|
+
|
|
1593
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1594
|
+
|
|
1595
|
+
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); } }
|
|
1596
|
+
|
|
1597
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1598
|
+
|
|
1599
|
+
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); }
|
|
1600
|
+
|
|
1601
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1602
|
+
|
|
1603
|
+
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); }; }
|
|
1604
|
+
|
|
1605
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1606
|
+
|
|
1607
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1608
|
+
|
|
1609
|
+
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; } }
|
|
1610
|
+
|
|
1611
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
|
|
1626
|
+
|
|
1627
|
+
|
|
1628
|
+
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
|
|
1632
|
+
|
|
1633
|
+
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
var SUBTITLE_LIMIT = 5;
|
|
1649
|
+
var RESOURCE_LIMIT = 25;
|
|
1650
|
+
var LINK_LIMIT = 25;
|
|
1651
|
+
var EditResourcesView = /*#__PURE__*/function (_Core$View) {
|
|
1652
|
+
_inherits(EditResourcesView, _Core$View);
|
|
1653
|
+
|
|
1654
|
+
var _super = _createSuper(EditResourcesView);
|
|
1655
|
+
|
|
1656
|
+
function EditResourcesView(options) {
|
|
1657
|
+
_classCallCheck(this, EditResourcesView);
|
|
1658
|
+
|
|
1659
|
+
return _super.call(this, options);
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
_createClass(EditResourcesView, [{
|
|
1663
|
+
key: "initialize",
|
|
1664
|
+
value: function initialize() {
|
|
1665
|
+
this.initializeUploadServices();
|
|
1666
|
+
this.bindDataListeners();
|
|
1667
|
+
this.bindViewListeners();
|
|
1668
|
+
this.bindFileSelectListeners();
|
|
1669
|
+
_shared_utils__WEBPACK_IMPORTED_MODULE_12__["TabHelper"].initBackButton();
|
|
1670
|
+
this.chapterDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["DataServices"].Chapter, this);
|
|
1671
|
+
this.videoDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["DataServices"].Video, this);
|
|
1672
|
+
this.linkDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["DataServices"].Link, this);
|
|
1673
|
+
this.resourceDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["DataServices"].Resource, this);
|
|
1674
|
+
this.subtitleDataService = _libs_common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__["InstanceManager"].getInstance(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["DataServices"].Subtitle, this);
|
|
1675
|
+
this.resourceUploads = [];
|
|
1676
|
+
this.resourceUploadCount = 0;
|
|
1677
|
+
}
|
|
1678
|
+
}, {
|
|
1679
|
+
key: "initializeUploadServices",
|
|
1680
|
+
value: function initializeUploadServices() {
|
|
1681
|
+
this.resourceUploadService = new _libs_shared_src_apps_upload_services_UploadService__WEBPACK_IMPORTED_MODULE_7__["LearningResourceUploadService"]();
|
|
1682
|
+
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["ServiceChannels"].RESOURCE_UPLOAD, _libs_shared_src_apps_upload_constants_UploadConstants__WEBPACK_IMPORTED_MODULE_8__["UploadEventNames"].UPLOAD_COMPLETE, this.onResourceUploadComplete);
|
|
1683
|
+
this.subtitleUploadService = new _libs_shared_src_apps_upload_services_UploadService__WEBPACK_IMPORTED_MODULE_7__["SubtitleUploadService"]();
|
|
1684
|
+
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["ServiceChannels"].SUBTITLE_UPLOAD, _libs_shared_src_apps_upload_constants_UploadConstants__WEBPACK_IMPORTED_MODULE_8__["UploadEventNames"].UPLOAD_COMPLETE, this.onSubtitleUploadComplete);
|
|
1685
|
+
}
|
|
1686
|
+
}, {
|
|
1687
|
+
key: "bindDataListeners",
|
|
1688
|
+
value: function bindDataListeners() {
|
|
1689
|
+
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["DataChannels"].VIDEO, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["DataPrefixes"].VIDEOS, ":").concat(this.options.videoId, ":sync"), this.render);
|
|
1690
|
+
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["DataChannels"].VIDEO, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["DataPrefixes"].VIDEOS, ":").concat(this.options.videoId, ":error"), this.onVideoDataError);
|
|
1691
|
+
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["DataChannels"].VIDEO, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["DataPrefixes"].VIDEO_HAS_PHYSICAL_CHAPTERS, ":").concat(this.options.videoId, ":sync"), this.render);
|
|
1692
|
+
this.listenTo(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["DataChannels"].CHAPTER, "".concat(_shared_constants__WEBPACK_IMPORTED_MODULE_11__["DataPrefixes"].CONCATENATE_STATUS, ":").concat(this.options.videoId, ":error"), this.onConcatenateDataError);
|
|
1693
|
+
}
|
|
1694
|
+
}, {
|
|
1695
|
+
key: "bindViewListeners",
|
|
1696
|
+
value: function bindViewListeners() {
|
|
1697
|
+
this.listenTo(this.channelName, 'add:link', this.onAddLink);
|
|
1698
|
+
this.listenTo(this.channelName, 'delete:subtitle', this.onDeleteSubtitle);
|
|
1699
|
+
this.listenTo(this.channelName, 'delete:resource', this.onDeleteResource);
|
|
1700
|
+
this.listenTo(this.channelName, 'delete:link', this.onDeleteLink);
|
|
1701
|
+
this.listenTo(this.channelName, 'cancel:upload', this.onCancelUpload);
|
|
1702
|
+
this.listenTo(this.channelName, _constants__WEBPACK_IMPORTED_MODULE_28__["LibraryEditorActions"].MergeChapters, this.onMergeChapters);
|
|
1703
|
+
}
|
|
1704
|
+
}, {
|
|
1705
|
+
key: "bindFileSelectListeners",
|
|
1706
|
+
value: function bindFileSelectListeners() {
|
|
1707
|
+
this.listenTo(this.getSubtitleSelectChannelName(), _libs_shared_src_apps_upload_constants_UploadConstants__WEBPACK_IMPORTED_MODULE_8__["UploadEventNames"].FILES_SELECTED, this.onSubtitleFilesAdded);
|
|
1708
|
+
this.listenTo(this.getResourceSelectChannelName(), _libs_shared_src_apps_upload_constants_UploadConstants__WEBPACK_IMPORTED_MODULE_8__["UploadEventNames"].FILES_SELECTED, this.onResourceFilesAdded);
|
|
1709
|
+
}
|
|
1710
|
+
}, {
|
|
1711
|
+
key: "getSubtitleSelectChannelName",
|
|
1712
|
+
value: function getSubtitleSelectChannelName() {
|
|
1713
|
+
return "".concat(this.name).concat(this.cid, "subtitles");
|
|
1714
|
+
}
|
|
1715
|
+
}, {
|
|
1716
|
+
key: "getResourceSelectChannelName",
|
|
1717
|
+
value: function getResourceSelectChannelName() {
|
|
1718
|
+
return "".concat(this.name).concat(this.cid, "resources");
|
|
1719
|
+
}
|
|
1720
|
+
}, {
|
|
1721
|
+
key: "onVideoDataError",
|
|
1722
|
+
value: function onVideoDataError(error) {
|
|
1723
|
+
switch (error.type) {
|
|
1724
|
+
case _libs_common_src_backbone_enums_DataServiceErrorType__WEBPACK_IMPORTED_MODULE_6__["DataServiceErrorType"].NotFound:
|
|
1725
|
+
_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].ErrorHelper.throw(new _errors__WEBPACK_IMPORTED_MODULE_27__["VideoNotFoundError"]());
|
|
1726
|
+
break;
|
|
1727
|
+
|
|
1728
|
+
case _libs_common_src_backbone_enums_DataServiceErrorType__WEBPACK_IMPORTED_MODULE_6__["DataServiceErrorType"].Forbidden:
|
|
1729
|
+
_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].ErrorHelper.throw(new _errors__WEBPACK_IMPORTED_MODULE_27__["ForbiddenVideoError"]());
|
|
1730
|
+
break;
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
}, {
|
|
1734
|
+
key: "onConcatenateDataError",
|
|
1735
|
+
value: function onConcatenateDataError(error) {
|
|
1736
|
+
if (error.type !== _libs_common_src_backbone_enums_DataServiceErrorType__WEBPACK_IMPORTED_MODULE_6__["DataServiceErrorType"].NotFound) return;
|
|
1737
|
+
this.concatenateRequestNotFound = true;
|
|
1738
|
+
this.render();
|
|
1739
|
+
}
|
|
1740
|
+
}, {
|
|
1741
|
+
key: "onSubtitleFilesAdded",
|
|
1742
|
+
value: function onSubtitleFilesAdded(files, type) {
|
|
1743
|
+
if (files.length > SUBTITLE_LIMIT - this.model.subtitles.length) {
|
|
1744
|
+
_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].ErrorHelper.throw(new _libs_shared_src_legacy_errors_too_many_subtitles_TooManySubtitlesError__WEBPACK_IMPORTED_MODULE_26__["TooManySubtitlesError"](SUBTITLE_LIMIT));
|
|
1745
|
+
return;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
if (type) this.interactionType = type;
|
|
1749
|
+
this.subtitleUploadService.addFiles(files);
|
|
1750
|
+
}
|
|
1751
|
+
}, {
|
|
1752
|
+
key: "onResourceFilesAdded",
|
|
1753
|
+
value: function onResourceFilesAdded(files, type) {
|
|
1754
|
+
if (files.length > RESOURCE_LIMIT - this.model.resources.length) {
|
|
1755
|
+
_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].ErrorHelper.throw(new _libs_shared_src_legacy_errors_too_many_resources_TooManyResourcesError__WEBPACK_IMPORTED_MODULE_25__["TooManyResourcesError"](RESOURCE_LIMIT));
|
|
1756
|
+
return;
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
this.resourceUploadCount += files.length;
|
|
1760
|
+
if (type) this.interactionType = type;
|
|
1761
|
+
this.resourceUploadService.addFiles(files);
|
|
1762
|
+
}
|
|
1763
|
+
}, {
|
|
1764
|
+
key: "onAddLink",
|
|
1765
|
+
value: function onAddLink(link) {
|
|
1766
|
+
var _this = this;
|
|
1767
|
+
|
|
1768
|
+
if (this.model.links.length === LINK_LIMIT) return; // If they are about to reach the limit, immediately hide the link form.
|
|
1769
|
+
|
|
1770
|
+
if (this.model.links.length + 1 === LINK_LIMIT) this.renderAddLinks(true);
|
|
1771
|
+
this.linkDataService.addLink(this.model.get('id'), link, function (newLink) {
|
|
1772
|
+
_this.model.links.add(newLink);
|
|
1773
|
+
|
|
1774
|
+
_this.render();
|
|
1775
|
+
});
|
|
1776
|
+
}
|
|
1777
|
+
}, {
|
|
1778
|
+
key: "regions",
|
|
1779
|
+
value: function regions() {
|
|
1780
|
+
return {
|
|
1781
|
+
tabs: {
|
|
1782
|
+
el: '.tab-region',
|
|
1783
|
+
partialLoading: _shared_enums__WEBPACK_IMPORTED_MODULE_14__["PartialLoading"].EditVideoTabs
|
|
1784
|
+
},
|
|
1785
|
+
subtitlesUpload: {
|
|
1786
|
+
el: '.subtitles-upload-region',
|
|
1787
|
+
partialLoading: _shared_enums__WEBPACK_IMPORTED_MODULE_14__["PartialLoading"].EditVideoUploadArea
|
|
1788
|
+
},
|
|
1789
|
+
subtitlesUploadList: '.subtitles-upload-list-region',
|
|
1790
|
+
customerSubtitlesList: '.customer-subtitles-list-region',
|
|
1791
|
+
clickViewSubtitlesList: '.clickview-subtitles-list-region',
|
|
1792
|
+
resourcesUpload: {
|
|
1793
|
+
el: '.resources-upload-region',
|
|
1794
|
+
partialLoading: _shared_enums__WEBPACK_IMPORTED_MODULE_14__["PartialLoading"].EditVideoUploadArea
|
|
1795
|
+
},
|
|
1796
|
+
resourcesUploadList: '.resources-upload-list-region',
|
|
1797
|
+
customerResourcesList: '.customer-resources-list-region',
|
|
1798
|
+
clickViewResourcesList: '.clickview-resources-list-region',
|
|
1799
|
+
addLinks: {
|
|
1800
|
+
el: '.add-links-region',
|
|
1801
|
+
partialLoading: _shared_enums__WEBPACK_IMPORTED_MODULE_14__["PartialLoading"].EditVideoUploadArea
|
|
1802
|
+
},
|
|
1803
|
+
customerLinkList: '.customer-link-list-region',
|
|
1804
|
+
clickViewLinkList: '.clickview-link-list-region'
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
/**
|
|
1808
|
+
* We call this function in onRender to not start polling if we don't have a concatenateRequest
|
|
1809
|
+
* or if the concatenate request isn't currently concatenating.
|
|
1810
|
+
*/
|
|
1811
|
+
|
|
1812
|
+
}, {
|
|
1813
|
+
key: "startPollingConcatenation",
|
|
1814
|
+
value: function startPollingConcatenation() {
|
|
1815
|
+
if (!this.concatenateRequest) return;
|
|
1816
|
+
var ignoreStatuses = [_enums__WEBPACK_IMPORTED_MODULE_29__["MediaConcatenateStatus"].SingleFile, _enums__WEBPACK_IMPORTED_MODULE_29__["MediaConcatenateStatus"].ConcatenationFailed];
|
|
1817
|
+
if (underscore__WEBPACK_IMPORTED_MODULE_0__["contains"](ignoreStatuses, this.concatenateRequest.get('status'))) return;
|
|
1818
|
+
this.pollConcatenation();
|
|
1819
|
+
}
|
|
1820
|
+
/**
|
|
1821
|
+
* This function exists seperately from startPollingConcatenation() so that
|
|
1822
|
+
* we can force the polling to start when this.concatenateRequest is null
|
|
1823
|
+
*
|
|
1824
|
+
* This is done when the merge chapter button is clicked to request concatenation
|
|
1825
|
+
*/
|
|
1826
|
+
|
|
1827
|
+
}, {
|
|
1828
|
+
key: "pollConcatenation",
|
|
1829
|
+
value: function pollConcatenation() {
|
|
1830
|
+
var _this2 = this;
|
|
1831
|
+
|
|
1832
|
+
if (this.isDestroyed()) return;
|
|
1833
|
+
this.chapterDataService.getConcatenateRequest(this.options.videoId, function (data) {
|
|
1834
|
+
_this2.concatenateRequest = data;
|
|
1835
|
+
|
|
1836
|
+
if (_this2.concatenateRequest.get('status') !== _enums__WEBPACK_IMPORTED_MODULE_29__["MediaConcatenateStatus"].SingleFile) {
|
|
1837
|
+
setTimeout(function () {
|
|
1838
|
+
return _this2.pollConcatenation();
|
|
1839
|
+
}, 5000);
|
|
1840
|
+
|
|
1841
|
+
_this2.renderConcatenationRequest();
|
|
1842
|
+
|
|
1843
|
+
return;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
_this2.videoDataService.clearPhysicialChaptersCache();
|
|
1847
|
+
|
|
1848
|
+
_this2.videoDataService.hasPhysicalChapters(_this2.options.videoId, function (model) {
|
|
1849
|
+
_this2.hasPhysicalChapters = model;
|
|
1850
|
+
|
|
1851
|
+
_this2.renderSubtitleFileSelect();
|
|
1852
|
+
});
|
|
1853
|
+
});
|
|
1854
|
+
}
|
|
1855
|
+
}, {
|
|
1856
|
+
key: "onDeleteResource",
|
|
1857
|
+
value: function onDeleteResource(resourceId) {
|
|
1858
|
+
var _this3 = this;
|
|
1859
|
+
|
|
1860
|
+
this.resourceDataService.deleteResource(this.options.videoId, resourceId, function () {
|
|
1861
|
+
_this3.logDeleteAction(_libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_31__["EntityType"].Resource, resourceId);
|
|
1862
|
+
|
|
1863
|
+
_this3.render();
|
|
1864
|
+
});
|
|
1865
|
+
}
|
|
1866
|
+
}, {
|
|
1867
|
+
key: "onDeleteSubtitle",
|
|
1868
|
+
value: function onDeleteSubtitle(subtitleId) {
|
|
1869
|
+
var _this4 = this;
|
|
1870
|
+
|
|
1871
|
+
this.subtitleDataService.deleteSubtitle(this.options.videoId, subtitleId, function () {
|
|
1872
|
+
_this4.logDeleteAction(_libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_31__["EntityType"].Subtitle, subtitleId);
|
|
1873
|
+
|
|
1874
|
+
_this4.render();
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
}, {
|
|
1878
|
+
key: "onDeleteLink",
|
|
1879
|
+
value: function onDeleteLink(linkId) {
|
|
1880
|
+
var _this5 = this;
|
|
1881
|
+
|
|
1882
|
+
this.linkDataService.deleteLink(this.options.videoId, linkId, function () {
|
|
1883
|
+
_this5.logDeleteAction(_libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_31__["EntityType"].Link, linkId);
|
|
1884
|
+
|
|
1885
|
+
_this5.render();
|
|
1886
|
+
});
|
|
1887
|
+
}
|
|
1888
|
+
}, {
|
|
1889
|
+
key: "onCancelUpload",
|
|
1890
|
+
value: function onCancelUpload(uploadId) {
|
|
1891
|
+
/**
|
|
1892
|
+
* We don't know if it was a subtitle upload or resource upload
|
|
1893
|
+
* that was cancelled. But we do know that the uploadId will be unique
|
|
1894
|
+
* so we jsut blindly cancel it in both services.
|
|
1895
|
+
*
|
|
1896
|
+
* Bit hacky... sue me - Sha
|
|
1897
|
+
*/
|
|
1898
|
+
this.resourceUploadService.cancelUpload(uploadId);
|
|
1899
|
+
this.subtitleUploadService.cancelUpload(uploadId);
|
|
1900
|
+
}
|
|
1901
|
+
}, {
|
|
1902
|
+
key: "onResourceUploadComplete",
|
|
1903
|
+
value: function onResourceUploadComplete(upload) {
|
|
1904
|
+
var _this6 = this;
|
|
1905
|
+
|
|
1906
|
+
var uploadData = upload.toJSON();
|
|
1907
|
+
var data = {
|
|
1908
|
+
fileId: uploadData.fileInfo.id,
|
|
1909
|
+
uploadId: uploadData.file.cvUpload.uploadId,
|
|
1910
|
+
name: uploadData.fileInfo.name,
|
|
1911
|
+
type: _libs_shared_src_apps_upload_utils_FileExtensionsHelper__WEBPACK_IMPORTED_MODULE_9__["FileExtensionHelper"].getResourceType(uploadData.fileInfo.extension),
|
|
1912
|
+
extension: uploadData.fileInfo.extension,
|
|
1913
|
+
fileSize: uploadData.fileInfo.size,
|
|
1914
|
+
fileUrl: uploadData.fileInfo.url,
|
|
1915
|
+
ingestUrl: uploadData.file.cvUpload.ingestUrl,
|
|
1916
|
+
metaData: {
|
|
1917
|
+
type: _libs_shared_src_apps_upload_utils_FileExtensionsHelper__WEBPACK_IMPORTED_MODULE_9__["FileExtensionHelper"].getResourceType(uploadData.fileInfo.extension)
|
|
1918
|
+
},
|
|
1919
|
+
contribution: false,
|
|
1920
|
+
url: uploadData.fileInfo.url,
|
|
1921
|
+
fileIdType: 2 // FileApiv1
|
|
1922
|
+
|
|
1923
|
+
};
|
|
1924
|
+
this.resourceUploads.push(data);
|
|
1925
|
+
this.resourceUploadCount--;
|
|
1926
|
+
if (this.resourceUploadCount > 0) return; // This is only run once all resources have been uploaded.
|
|
1927
|
+
|
|
1928
|
+
this.resourceDataService.addResource(this.options.videoId, this.resourceUploads, function (resource) {
|
|
1929
|
+
_this6.model.resources.add(resource);
|
|
1930
|
+
|
|
1931
|
+
var uploadedResource = _this6.resourceUploadService.getCollection().filter(function (uploaded) {
|
|
1932
|
+
return uploaded.get('fileInfo').id === resource.get('fileId');
|
|
1933
|
+
});
|
|
1934
|
+
|
|
1935
|
+
_this6.resourceUploadService.getCollection().remove(uploadedResource);
|
|
1936
|
+
|
|
1937
|
+
_this6.logUploadAction(resource);
|
|
1938
|
+
|
|
1939
|
+
_this6.render();
|
|
1940
|
+
});
|
|
1941
|
+
this.resourceUploads = [];
|
|
1942
|
+
}
|
|
1943
|
+
}, {
|
|
1944
|
+
key: "onSubtitleUploadComplete",
|
|
1945
|
+
value: function onSubtitleUploadComplete(upload) {
|
|
1946
|
+
var _this7 = this;
|
|
1947
|
+
|
|
1948
|
+
var promise = $.Deferred();
|
|
1949
|
+
var languageSelector = new _components_language_select_LanguageSelectComponent__WEBPACK_IMPORTED_MODULE_20__["LanguageSelectComponent"]({
|
|
1950
|
+
/**
|
|
1951
|
+
* TODO: Pull the default language from the user's country.
|
|
1952
|
+
*/
|
|
1953
|
+
defaultLanguage: {
|
|
1954
|
+
code: 'en',
|
|
1955
|
+
name: 'English'
|
|
1956
|
+
},
|
|
1957
|
+
promise: promise
|
|
1958
|
+
});
|
|
1959
|
+
promise.done(function (language) {
|
|
1960
|
+
var uploadData = upload.toJSON();
|
|
1961
|
+
var data = {
|
|
1962
|
+
fileId: uploadData.fileInfo.id,
|
|
1963
|
+
name: language.name,
|
|
1964
|
+
language: language.code,
|
|
1965
|
+
type: _libs_shared_src_apps_upload_utils_FileExtensionsHelper__WEBPACK_IMPORTED_MODULE_9__["FileExtensionHelper"].getResourceType(uploadData.fileInfo.extension),
|
|
1966
|
+
fileIdType: 2 // FileApiv1
|
|
1967
|
+
|
|
1968
|
+
};
|
|
1969
|
+
|
|
1970
|
+
_this7.subtitleDataService.addSubtitle(_this7.options.videoId, data, function (subtitle) {
|
|
1971
|
+
_this7.model.subtitles.add(subtitle);
|
|
1972
|
+
|
|
1973
|
+
_this7.subtitleUploadService.getCollection().remove(upload);
|
|
1974
|
+
|
|
1975
|
+
_this7.logUploadAction(subtitle);
|
|
1976
|
+
|
|
1977
|
+
_this7.render();
|
|
1978
|
+
});
|
|
1979
|
+
}).fail(function () {
|
|
1980
|
+
_this7.subtitleUploadService.cancelUpload(upload.get('id'));
|
|
1981
|
+
});
|
|
1982
|
+
var channel = backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(_libs_common_src_backbone_constants_CommonChannels__WEBPACK_IMPORTED_MODULE_5__["CommonChannels"].POPUP);
|
|
1983
|
+
channel.trigger(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].EventNames.SHOW_POPUP, languageSelector);
|
|
1984
|
+
}
|
|
1985
|
+
}, {
|
|
1986
|
+
key: "logUploadAction",
|
|
1987
|
+
value: function logUploadAction(item) {
|
|
1988
|
+
var entity = item instanceof _shared_models_Resource__WEBPACK_IMPORTED_MODULE_13__["Resource"] ? _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_31__["EntityType"].Resource : _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_31__["EntityType"].Subtitle;
|
|
1989
|
+
var descriptor = _libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_32__["AnalyticsHelper"].mapInteractionType(this.interactionType);
|
|
1990
|
+
var analyticsOptions = {
|
|
1991
|
+
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_31__["LocationContext"].EditVideoResources,
|
|
1992
|
+
actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_31__["UserAction"].Upload,
|
|
1993
|
+
entity: entity,
|
|
1994
|
+
descriptor: descriptor
|
|
1995
|
+
};
|
|
1996
|
+
_libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_32__["AnalyticsHelper"].logUserAction(item, analyticsOptions);
|
|
1997
|
+
}
|
|
1998
|
+
}, {
|
|
1999
|
+
key: "logDeleteAction",
|
|
2000
|
+
value: function logDeleteAction(entity, id) {
|
|
2001
|
+
var analyticsOptions = {
|
|
2002
|
+
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_31__["LocationContext"].EditVideoResources,
|
|
2003
|
+
actionType: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_31__["UserAction"].Delete,
|
|
2004
|
+
entity: entity
|
|
2005
|
+
};
|
|
2006
|
+
var data = {
|
|
2007
|
+
id: id,
|
|
2008
|
+
parentId: +this.options.videoId
|
|
2009
|
+
};
|
|
2010
|
+
_libs_analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_32__["AnalyticsHelper"].logUserAction(data, analyticsOptions);
|
|
2011
|
+
}
|
|
2012
|
+
}, {
|
|
2013
|
+
key: "onMergeChapters",
|
|
2014
|
+
value: function onMergeChapters() {
|
|
2015
|
+
var _this8 = this;
|
|
2016
|
+
|
|
2017
|
+
this.chapterDataService.addConcatenateRequest(this.options.videoId, function () {
|
|
2018
|
+
_this8.pollConcatenation();
|
|
2019
|
+
});
|
|
2020
|
+
}
|
|
2021
|
+
}, {
|
|
2022
|
+
key: "renderTabs",
|
|
2023
|
+
value: function renderTabs() {
|
|
2024
|
+
var hideChaptersTab = !_shared_utils__WEBPACK_IMPORTED_MODULE_12__["PermissionsHelper"].canEditVideo(this.model);
|
|
2025
|
+
this.showChildView('tabs', new _components_edit_video_tabs_EditVideoTabsComponent__WEBPACK_IMPORTED_MODULE_21__["EditVideoTabsComponent"]({
|
|
2026
|
+
tabs: _shared_utils__WEBPACK_IMPORTED_MODULE_12__["TabHelper"].getEditVideoTabs(this.options.videoId, {
|
|
2027
|
+
hideChaptersTab: hideChaptersTab
|
|
2028
|
+
}),
|
|
2029
|
+
activeTab: '.edit-resources-subtitles-applink',
|
|
2030
|
+
goBackTab: _shared_utils__WEBPACK_IMPORTED_MODULE_12__["TabHelper"].getBackButton(this.options.videoId)
|
|
2031
|
+
}));
|
|
2032
|
+
}
|
|
2033
|
+
}, {
|
|
2034
|
+
key: "renderSubtitleFileSelect",
|
|
2035
|
+
value: function renderSubtitleFileSelect() {
|
|
2036
|
+
if (this.hasPhysicalChapters.get('value')) {
|
|
2037
|
+
this.renderConcatenationRequest();
|
|
2038
|
+
return;
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
var limitText = _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'subtitlesLimit', {
|
|
2042
|
+
limit: SUBTITLE_LIMIT
|
|
2043
|
+
});
|
|
2044
|
+
this.showChildView('subtitlesUpload', new _libs_shared_src_legacy_components_file_select_FileSelectComponent__WEBPACK_IMPORTED_MODULE_10__["FileSelectComponent"]({
|
|
2045
|
+
title: this.isClickViewContent ? _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'customerSubtitles') : _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'subtitles'),
|
|
2046
|
+
description: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'subtitlesInfo'),
|
|
2047
|
+
alternateText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'subtitlesAlternative'),
|
|
2048
|
+
mimeType: _libs_shared_src_apps_upload_utils_FileExtensionsHelper__WEBPACK_IMPORTED_MODULE_9__["FileExtensions"].SUBTITLES,
|
|
2049
|
+
channelName: this.getSubtitleSelectChannelName(),
|
|
2050
|
+
acceptMultiple: false,
|
|
2051
|
+
limitText: this.model.subtitles.length >= SUBTITLE_LIMIT ? limitText : null,
|
|
2052
|
+
isClickViewContent: this.isClickViewContent
|
|
2053
|
+
}));
|
|
2054
|
+
}
|
|
2055
|
+
}, {
|
|
2056
|
+
key: "renderSubtitleUploadList",
|
|
2057
|
+
value: function renderSubtitleUploadList() {
|
|
2058
|
+
var collection = this.subtitleUploadService.getCollection();
|
|
2059
|
+
this.showChildView('subtitlesUploadList', new _components_file_uploads_FileUploadsComponentCollection__WEBPACK_IMPORTED_MODULE_19__["FileUploadsComponentCollection"]({
|
|
2060
|
+
collection: collection,
|
|
2061
|
+
channelName: this.channelName
|
|
2062
|
+
}));
|
|
2063
|
+
}
|
|
2064
|
+
}, {
|
|
2065
|
+
key: "renderSubtitlesLists",
|
|
2066
|
+
value: function renderSubtitlesLists() {
|
|
2067
|
+
this.renderClickViewSubtitlesList();
|
|
2068
|
+
this.renderCustomerSubtitlesList();
|
|
2069
|
+
}
|
|
2070
|
+
}, {
|
|
2071
|
+
key: "renderClickViewSubtitlesList",
|
|
2072
|
+
value: function renderClickViewSubtitlesList() {
|
|
2073
|
+
if (!this.isClickViewContent) return;
|
|
2074
|
+
var subtitles = _shared_utils__WEBPACK_IMPORTED_MODULE_12__["PermissionsHelper"].filterObjectsByOwnerType(this.model.subtitles, _libs_shared_src_enums_ObjectOwnerType__WEBPACK_IMPORTED_MODULE_30__["ObjectOwnerType"].ClickView);
|
|
2075
|
+
this.showChildView('clickViewSubtitlesList', new _components_video_subtitles_VideoSubtitlesComponent__WEBPACK_IMPORTED_MODULE_22__["VideoSubtitlesComponent"]({
|
|
2076
|
+
collection: subtitles,
|
|
2077
|
+
channelName: this.channelName,
|
|
2078
|
+
isClickViewContent: true,
|
|
2079
|
+
headerText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'clickViewSubtitles'),
|
|
2080
|
+
emptyStateText: subtitles.models.length ? '' : _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'clickViewSubtitlesEmpty')
|
|
2081
|
+
}));
|
|
2082
|
+
}
|
|
2083
|
+
}, {
|
|
2084
|
+
key: "renderCustomerSubtitlesList",
|
|
2085
|
+
value: function renderCustomerSubtitlesList() {
|
|
2086
|
+
this.showChildView('customerSubtitlesList', new _components_video_subtitles_VideoSubtitlesComponent__WEBPACK_IMPORTED_MODULE_22__["VideoSubtitlesComponent"]({
|
|
2087
|
+
collection: _shared_utils__WEBPACK_IMPORTED_MODULE_12__["PermissionsHelper"].filterObjectsByOwnerType(this.model.subtitles, _libs_shared_src_enums_ObjectOwnerType__WEBPACK_IMPORTED_MODULE_30__["ObjectOwnerType"].Customer, this.currentUser.get('customerId')),
|
|
2088
|
+
channelName: this.channelName
|
|
2089
|
+
}));
|
|
2090
|
+
}
|
|
2091
|
+
}, {
|
|
2092
|
+
key: "renderConcatenationRequest",
|
|
2093
|
+
value: function renderConcatenationRequest() {
|
|
2094
|
+
if (!this.isRendered()) return;
|
|
2095
|
+
this.showChildView('subtitlesUpload', new _components_concatenate_request_ConcatenateRequestComponent__WEBPACK_IMPORTED_MODULE_18__["ConcatenateRequestComponent"]({
|
|
2096
|
+
type: this.isClickViewContent ? 'clickViewSubtitles' : 'subtitles',
|
|
2097
|
+
channelName: this.channelName,
|
|
2098
|
+
model: this.concatenateRequest
|
|
2099
|
+
}));
|
|
2100
|
+
}
|
|
2101
|
+
}, {
|
|
2102
|
+
key: "renderResourcesFileSelect",
|
|
2103
|
+
value: function renderResourcesFileSelect() {
|
|
2104
|
+
var limitText = _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'resourcesLimit', {
|
|
2105
|
+
limit: RESOURCE_LIMIT
|
|
2106
|
+
});
|
|
2107
|
+
this.showChildView('resourcesUpload', new _libs_shared_src_legacy_components_file_select_FileSelectComponent__WEBPACK_IMPORTED_MODULE_10__["FileSelectComponent"]({
|
|
2108
|
+
title: this.isClickViewContent ? _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'customerResources') : _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'resources'),
|
|
2109
|
+
description: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'resourcesDescription'),
|
|
2110
|
+
alternateText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'resourcesAlternative'),
|
|
2111
|
+
mimeType: _libs_shared_src_apps_upload_utils_FileExtensionsHelper__WEBPACK_IMPORTED_MODULE_9__["FileExtensions"].RESOURCES,
|
|
2112
|
+
channelName: this.getResourceSelectChannelName(),
|
|
2113
|
+
limitText: this.model.resources.length >= RESOURCE_LIMIT ? limitText : null,
|
|
2114
|
+
isClickViewContent: this.isClickViewContent
|
|
2115
|
+
}));
|
|
2116
|
+
}
|
|
2117
|
+
}, {
|
|
2118
|
+
key: "renderResourcesUploadList",
|
|
2119
|
+
value: function renderResourcesUploadList() {
|
|
2120
|
+
var collection = this.resourceUploadService.getCollection();
|
|
2121
|
+
this.showChildView('resourcesUploadList', new _components_file_uploads_FileUploadsComponentCollection__WEBPACK_IMPORTED_MODULE_19__["FileUploadsComponentCollection"]({
|
|
2122
|
+
collection: collection,
|
|
2123
|
+
channelName: this.channelName
|
|
2124
|
+
}));
|
|
2125
|
+
}
|
|
2126
|
+
}, {
|
|
2127
|
+
key: "renderResourcesLists",
|
|
2128
|
+
value: function renderResourcesLists() {
|
|
2129
|
+
this.renderClickViewResourcesList();
|
|
2130
|
+
this.renderCustomerResourcesList();
|
|
2131
|
+
}
|
|
2132
|
+
}, {
|
|
2133
|
+
key: "renderClickViewResourcesList",
|
|
2134
|
+
value: function renderClickViewResourcesList() {
|
|
2135
|
+
if (!this.isClickViewContent) return;
|
|
2136
|
+
var resources = _shared_utils__WEBPACK_IMPORTED_MODULE_12__["PermissionsHelper"].filterObjectsByOwnerType(this.model.resources, _libs_shared_src_enums_ObjectOwnerType__WEBPACK_IMPORTED_MODULE_30__["ObjectOwnerType"].ClickView);
|
|
2137
|
+
this.showChildView('clickViewResourcesList', new _components_video_resources_VideoResourcesComponent__WEBPACK_IMPORTED_MODULE_17__["VideoResourcesComponent"]({
|
|
2138
|
+
model: this.model,
|
|
2139
|
+
customCollection: resources,
|
|
2140
|
+
editable: false,
|
|
2141
|
+
videoId: this.options.videoId,
|
|
2142
|
+
parentChannelName: this.channelName,
|
|
2143
|
+
headerText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'clickViewResources'),
|
|
2144
|
+
emptyStateText: resources.models.length ? '' : _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_4__["LanguageService"].getPhrase(this.lang, 'clickViewResourcesEmpty'),
|
|
2145
|
+
analyticsOptions: {
|
|
2146
|
+
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_31__["LocationContext"].EditVideoResources
|
|
2147
|
+
}
|
|
2148
|
+
}));
|
|
2149
|
+
}
|
|
2150
|
+
}, {
|
|
2151
|
+
key: "renderCustomerResourcesList",
|
|
2152
|
+
value: function renderCustomerResourcesList() {
|
|
2153
|
+
this.showChildView('customerResourcesList', new _components_video_resources_VideoResourcesComponent__WEBPACK_IMPORTED_MODULE_17__["VideoResourcesComponentCollection"]({
|
|
2154
|
+
collection: _shared_utils__WEBPACK_IMPORTED_MODULE_12__["PermissionsHelper"].filterObjectsByOwnerType(this.model.resources, _libs_shared_src_enums_ObjectOwnerType__WEBPACK_IMPORTED_MODULE_30__["ObjectOwnerType"].Customer, this.currentUser.get('customerId')),
|
|
2155
|
+
editable: true,
|
|
2156
|
+
videoId: this.options.videoId,
|
|
2157
|
+
channelName: this.channelName,
|
|
2158
|
+
analyticsOptions: {
|
|
2159
|
+
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_31__["LocationContext"].EditVideoResources
|
|
2160
|
+
}
|
|
2161
|
+
}));
|
|
2162
|
+
}
|
|
2163
|
+
}, {
|
|
2164
|
+
key: "renderAddLinks",
|
|
2165
|
+
value: function renderAddLinks(hide) {
|
|
2166
|
+
this.showChildView('addLinks', new _components_add_links_AddLinksComponent__WEBPACK_IMPORTED_MODULE_23__["AddLinksComponent"]({
|
|
2167
|
+
collection: this.model.get('links'),
|
|
2168
|
+
channelName: this.channelName,
|
|
2169
|
+
hide: hide || this.model.get('links').length === LINK_LIMIT,
|
|
2170
|
+
limit: LINK_LIMIT
|
|
2171
|
+
}));
|
|
2172
|
+
}
|
|
2173
|
+
}, {
|
|
2174
|
+
key: "renderLinkLists",
|
|
2175
|
+
value: function renderLinkLists() {
|
|
2176
|
+
var sharedComponentOptions = {
|
|
2177
|
+
channelName: this.channelName,
|
|
2178
|
+
analyticsOptions: {
|
|
2179
|
+
location: _libs_analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_31__["LocationContext"].EditVideoResources
|
|
2180
|
+
},
|
|
2181
|
+
videoId: this.options.videoId
|
|
2182
|
+
};
|
|
2183
|
+
this.renderClickViewLinkList(sharedComponentOptions);
|
|
2184
|
+
this.renderCustomerLinkList(sharedComponentOptions);
|
|
2185
|
+
}
|
|
2186
|
+
}, {
|
|
2187
|
+
key: "renderClickViewLinkList",
|
|
2188
|
+
value: function renderClickViewLinkList(options) {
|
|
2189
|
+
if (!this.isClickViewContent) return;
|
|
2190
|
+
var links = _shared_utils__WEBPACK_IMPORTED_MODULE_12__["PermissionsHelper"].filterObjectsByOwnerType(this.model.links, _libs_shared_src_enums_ObjectOwnerType__WEBPACK_IMPORTED_MODULE_30__["ObjectOwnerType"].ClickView);
|
|
2191
|
+
this.showChildView('clickViewLinkList', new _components_edit_links_VideoLinksComponent__WEBPACK_IMPORTED_MODULE_24__["VideoLinksComponent"](Object.assign(Object.assign({}, options), {
|
|
2192
|
+
headingText: 'Resource Links by ClickView',
|
|
2193
|
+
emptyStateText: links.models.length ? '' : 'There are no ClickView links for this video',
|
|
2194
|
+
customCollection: links,
|
|
2195
|
+
editable: false
|
|
2196
|
+
})));
|
|
2197
|
+
}
|
|
2198
|
+
}, {
|
|
2199
|
+
key: "renderCustomerLinkList",
|
|
2200
|
+
value: function renderCustomerLinkList(options) {
|
|
2201
|
+
this.showChildView('customerLinkList', new _components_edit_links_VideoLinksComponent__WEBPACK_IMPORTED_MODULE_24__["VideoLinksComponent"](Object.assign(Object.assign({}, options), {
|
|
2202
|
+
customCollection: _shared_utils__WEBPACK_IMPORTED_MODULE_12__["PermissionsHelper"].filterObjectsByOwnerType(this.model.links, _libs_shared_src_enums_ObjectOwnerType__WEBPACK_IMPORTED_MODULE_30__["ObjectOwnerType"].Customer, this.currentUser.get('customerId')),
|
|
2203
|
+
editable: true
|
|
2204
|
+
})));
|
|
2205
|
+
}
|
|
2206
|
+
}, {
|
|
2207
|
+
key: "fetchData",
|
|
2208
|
+
value: function fetchData() {
|
|
2209
|
+
var _this9 = this;
|
|
2210
|
+
|
|
2211
|
+
this.model = this.videoDataService.getVideo(this.options.videoId);
|
|
2212
|
+
this.hasPhysicalChapters = this.videoDataService.hasPhysicalChapters(this.options.videoId);
|
|
2213
|
+
this.isClickViewContent = this.model && !_shared_utils__WEBPACK_IMPORTED_MODULE_12__["PermissionsHelper"].canEditVideo(this.model);
|
|
2214
|
+
/**
|
|
2215
|
+
* If this.hasPhysicalChapters.get('value') is false, we don't need to fetch the concatenate request.
|
|
2216
|
+
* Alternatively, if we have already sent a request to fetch the concatenate request, we don't need
|
|
2217
|
+
* to fetch it again.
|
|
2218
|
+
* A flag, getConcatenateRequestSent, is used as ChapterDataService.getConcatenateRequest() will
|
|
2219
|
+
* return null if a concatenate request hasn't been created.
|
|
2220
|
+
*/
|
|
2221
|
+
|
|
2222
|
+
if (!this.hasPhysicalChapters || !this.hasPhysicalChapters.get('value') || this.getConcatenateRequestSent) return;
|
|
2223
|
+
this.chapterDataService.getConcatenateRequest(this.options.videoId, function (data) {
|
|
2224
|
+
_this9.concatenateRequest = data;
|
|
2225
|
+
|
|
2226
|
+
_this9.render();
|
|
2227
|
+
});
|
|
2228
|
+
this.getConcatenateRequestSent = true;
|
|
2229
|
+
}
|
|
2230
|
+
}, {
|
|
2231
|
+
key: "shouldRender",
|
|
2232
|
+
value: function shouldRender() {
|
|
2233
|
+
if (!this.model || !this.hasPhysicalChapters) return false;
|
|
2234
|
+
if (this.hasPhysicalChapters.get('value') && !this.concatenateRequest && !this.concatenateRequestNotFound) return false;
|
|
2235
|
+
return true;
|
|
2236
|
+
}
|
|
2237
|
+
}, {
|
|
2238
|
+
key: "onBeforeRender",
|
|
2239
|
+
value: function onBeforeRender() {
|
|
2240
|
+
this.fetchData();
|
|
2241
|
+
return this.shouldRender();
|
|
2242
|
+
}
|
|
2243
|
+
}, {
|
|
2244
|
+
key: "viewOptions",
|
|
2245
|
+
value: function viewOptions() {
|
|
2246
|
+
return {
|
|
2247
|
+
isClickViewContent: this.isClickViewContent
|
|
2248
|
+
};
|
|
2249
|
+
}
|
|
2250
|
+
}, {
|
|
2251
|
+
key: "onRender",
|
|
2252
|
+
value: function onRender() {
|
|
2253
|
+
this.renderTabs();
|
|
2254
|
+
this.renderSubtitleFileSelect();
|
|
2255
|
+
this.renderSubtitleUploadList();
|
|
2256
|
+
this.renderSubtitlesLists();
|
|
2257
|
+
this.renderResourcesFileSelect();
|
|
2258
|
+
this.renderResourcesUploadList();
|
|
2259
|
+
this.renderResourcesLists();
|
|
2260
|
+
this.renderAddLinks();
|
|
2261
|
+
this.renderLinkLists();
|
|
2262
|
+
this.startPollingConcatenation();
|
|
2263
|
+
}
|
|
2264
|
+
}, {
|
|
2265
|
+
key: "onDestroy",
|
|
2266
|
+
value: function onDestroy() {
|
|
2267
|
+
this.subtitleUploadService.destroy();
|
|
2268
|
+
this.resourceUploadService.destroy();
|
|
2269
|
+
}
|
|
2270
|
+
}, {
|
|
2271
|
+
key: "name",
|
|
2272
|
+
get: function get() {
|
|
2273
|
+
return 'EditResourcesView';
|
|
2274
|
+
}
|
|
2275
|
+
}, {
|
|
2276
|
+
key: "lang",
|
|
2277
|
+
get: function get() {
|
|
2278
|
+
return 'libraryEditor.editResources';
|
|
2279
|
+
}
|
|
2280
|
+
}, {
|
|
2281
|
+
key: "title",
|
|
2282
|
+
get: function get() {
|
|
2283
|
+
return this.model && this.model.get('name') || 'Edit Resources';
|
|
2284
|
+
}
|
|
2285
|
+
}, {
|
|
2286
|
+
key: "template",
|
|
2287
|
+
get: function get() {
|
|
2288
|
+
return _EditResources_hbs__WEBPACK_IMPORTED_MODULE_33___default.a;
|
|
2289
|
+
}
|
|
2290
|
+
}, {
|
|
2291
|
+
key: "props",
|
|
2292
|
+
get: function get() {
|
|
2293
|
+
return ['videoDataService'];
|
|
2294
|
+
}
|
|
2295
|
+
}, {
|
|
2296
|
+
key: "className",
|
|
2297
|
+
get: function get() {
|
|
2298
|
+
return 'bg-white p-3';
|
|
2299
|
+
}
|
|
2300
|
+
}, {
|
|
2301
|
+
key: "channelName",
|
|
2302
|
+
get: function get() {
|
|
2303
|
+
return _shared_utils__WEBPACK_IMPORTED_MODULE_12__["RadioChannelHelper"].generateUniqueChannelName(this);
|
|
2304
|
+
}
|
|
2305
|
+
}, {
|
|
2306
|
+
key: "behaviors",
|
|
2307
|
+
get: function get() {
|
|
2308
|
+
return [{
|
|
2309
|
+
behaviorClass: _shared_behaviors__WEBPACK_IMPORTED_MODULE_15__["LockLayoutFileDropBehavior"]
|
|
2310
|
+
}];
|
|
2311
|
+
}
|
|
2312
|
+
}, {
|
|
2313
|
+
key: "requiredResources",
|
|
2314
|
+
get: function get() {
|
|
2315
|
+
return {
|
|
2316
|
+
currentUser: _shared_services_UserDataService__WEBPACK_IMPORTED_MODULE_16__["UserDataServiceHelper"].currentUser
|
|
2317
|
+
};
|
|
2318
|
+
}
|
|
2319
|
+
}]);
|
|
2320
|
+
|
|
2321
|
+
return EditResourcesView;
|
|
2322
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].View);
|
|
2323
|
+
|
|
2324
|
+
/***/ })
|
|
2325
|
+
|
|
2326
|
+
}]);
|
|
2327
|
+
//# sourceMappingURL=42.chunk.js.map
|