@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,3090 @@
|
|
|
1
|
+
(window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[29],{
|
|
2
|
+
|
|
3
|
+
/***/ "./src/shared/components/clear-button/ClearButton.hbs":
|
|
4
|
+
/*!************************************************************!*\
|
|
5
|
+
!*** ./src/shared/components/clear-button/ClearButton.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({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
12
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda;
|
|
13
|
+
|
|
14
|
+
return "<span class=\"svg-container "
|
|
15
|
+
+ container.escapeExpression(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.clearSvg : stack1), depth0))
|
|
16
|
+
+ " clear-button\">"
|
|
17
|
+
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.svgClear : stack1), depth0)) != null ? stack1 : "")
|
|
18
|
+
+ "</span>";
|
|
19
|
+
},"useData":true});
|
|
20
|
+
|
|
21
|
+
/***/ }),
|
|
22
|
+
|
|
23
|
+
/***/ "./src/shared/components/clear-button/ClearButtonComponent.ts":
|
|
24
|
+
/*!********************************************************************!*\
|
|
25
|
+
!*** ./src/shared/components/clear-button/ClearButtonComponent.ts ***!
|
|
26
|
+
\********************************************************************/
|
|
27
|
+
/*! exports provided: ClearButtonComponent */
|
|
28
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29
|
+
|
|
30
|
+
"use strict";
|
|
31
|
+
__webpack_require__.r(__webpack_exports__);
|
|
32
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClearButtonComponent", function() { return ClearButtonComponent; });
|
|
33
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
|
|
34
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
|
|
35
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
36
|
+
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
37
|
+
/* harmony import */ var _ClearButton_hbs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ClearButton.hbs */ "./src/shared/components/clear-button/ClearButton.hbs");
|
|
38
|
+
/* harmony import */ var _ClearButton_hbs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_ClearButton_hbs__WEBPACK_IMPORTED_MODULE_3__);
|
|
39
|
+
/* harmony import */ var _clear_button_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./clear-button.scss */ "./src/shared/components/clear-button/clear-button.scss");
|
|
40
|
+
/* harmony import */ var _clear_button_scss__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_clear_button_scss__WEBPACK_IMPORTED_MODULE_4__);
|
|
41
|
+
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); }
|
|
42
|
+
|
|
43
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
44
|
+
|
|
45
|
+
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); } }
|
|
46
|
+
|
|
47
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
48
|
+
|
|
49
|
+
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); }
|
|
50
|
+
|
|
51
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
52
|
+
|
|
53
|
+
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); }; }
|
|
54
|
+
|
|
55
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
56
|
+
|
|
57
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
58
|
+
|
|
59
|
+
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; } }
|
|
60
|
+
|
|
61
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
var ClearButtonComponent = /*#__PURE__*/function (_Core$Component) {
|
|
69
|
+
_inherits(ClearButtonComponent, _Core$Component);
|
|
70
|
+
|
|
71
|
+
var _super = _createSuper(ClearButtonComponent);
|
|
72
|
+
|
|
73
|
+
function ClearButtonComponent(options) {
|
|
74
|
+
_classCallCheck(this, ClearButtonComponent);
|
|
75
|
+
|
|
76
|
+
return _super.call(this, options);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
_createClass(ClearButtonComponent, [{
|
|
80
|
+
key: "events",
|
|
81
|
+
value: function events() {
|
|
82
|
+
return {
|
|
83
|
+
click: 'onClick'
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}, {
|
|
87
|
+
key: "onClick",
|
|
88
|
+
value: function onClick() {
|
|
89
|
+
backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(this.options.channelName).trigger('clear:date');
|
|
90
|
+
}
|
|
91
|
+
}, {
|
|
92
|
+
key: "onBeforeRender",
|
|
93
|
+
value: function onBeforeRender() {
|
|
94
|
+
return !!this.options.shouldRender;
|
|
95
|
+
}
|
|
96
|
+
}, {
|
|
97
|
+
key: "viewOptions",
|
|
98
|
+
value: function viewOptions() {
|
|
99
|
+
return {
|
|
100
|
+
styles: _clear_button_scss__WEBPACK_IMPORTED_MODULE_4___default.a,
|
|
101
|
+
svgClear: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["cvSvgLibrary"].Close)
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
}, {
|
|
105
|
+
key: "name",
|
|
106
|
+
get: function get() {
|
|
107
|
+
return 'ClearButtonComponent';
|
|
108
|
+
}
|
|
109
|
+
}, {
|
|
110
|
+
key: "className",
|
|
111
|
+
get: function get() {
|
|
112
|
+
return "".concat(_clear_button_scss__WEBPACK_IMPORTED_MODULE_4___default.a.clearButton);
|
|
113
|
+
}
|
|
114
|
+
}, {
|
|
115
|
+
key: "template",
|
|
116
|
+
get: function get() {
|
|
117
|
+
return _ClearButton_hbs__WEBPACK_IMPORTED_MODULE_3___default.a;
|
|
118
|
+
}
|
|
119
|
+
}]);
|
|
120
|
+
|
|
121
|
+
return ClearButtonComponent;
|
|
122
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
123
|
+
|
|
124
|
+
/***/ }),
|
|
125
|
+
|
|
126
|
+
/***/ "./src/shared/components/clear-button/clear-button.scss":
|
|
127
|
+
/*!**************************************************************!*\
|
|
128
|
+
!*** ./src/shared/components/clear-button/clear-button.scss ***!
|
|
129
|
+
\**************************************************************/
|
|
130
|
+
/*! no static exports found */
|
|
131
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
132
|
+
|
|
133
|
+
// extracted by mini-css-extract-plugin
|
|
134
|
+
module.exports = {"clearSvg":"cv--clearSvg--2-D4Z"};
|
|
135
|
+
|
|
136
|
+
/***/ }),
|
|
137
|
+
|
|
138
|
+
/***/ "./src/shared/components/date-picker/DatePicker.hbs":
|
|
139
|
+
/*!**********************************************************!*\
|
|
140
|
+
!*** ./src/shared/components/date-picker/DatePicker.hbs ***!
|
|
141
|
+
\**********************************************************/
|
|
142
|
+
/*! no static exports found */
|
|
143
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
144
|
+
|
|
145
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
146
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
147
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
148
|
+
|
|
149
|
+
return " <label for=\""
|
|
150
|
+
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.modelAttr : stack1), depth0))
|
|
151
|
+
+ "\">"
|
|
152
|
+
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.label : stack1), depth0))
|
|
153
|
+
+ "</label>\r\n "
|
|
154
|
+
+ ((stack1 = helpers.unless.call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
155
|
+
+ "\r\n";
|
|
156
|
+
},"2":function(container,depth0,helpers,partials,data) {
|
|
157
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
158
|
+
|
|
159
|
+
return "<span class=\""
|
|
160
|
+
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))
|
|
161
|
+
+ "\">- <a class=\"suggest-broadcast-date\">"
|
|
162
|
+
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"suggestEdit",{"name":"lang","hash":{},"data":data}))
|
|
163
|
+
+ "</a></span>";
|
|
164
|
+
},"4":function(container,depth0,helpers,partials,data) {
|
|
165
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
166
|
+
|
|
167
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.disabled : stack1), depth0));
|
|
168
|
+
},"6":function(container,depth0,helpers,partials,data) {
|
|
169
|
+
return "disabled";
|
|
170
|
+
},"8":function(container,depth0,helpers,partials,data) {
|
|
171
|
+
return "cursor-pointer";
|
|
172
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
173
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});
|
|
174
|
+
|
|
175
|
+
return "<div class=\""
|
|
176
|
+
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.datePicker : stack1), depth0))
|
|
177
|
+
+ " "
|
|
178
|
+
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.broadcastDate : stack1), depth0))
|
|
179
|
+
+ "\">\r\n"
|
|
180
|
+
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.label : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
181
|
+
+ " <input\r\n name=\""
|
|
182
|
+
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.modelAttr : stack1), depth0))
|
|
183
|
+
+ "\"\r\n class=\"form-control datetimepicker-input "
|
|
184
|
+
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.instanceClass : stack1), depth0))
|
|
185
|
+
+ " "
|
|
186
|
+
+ ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
187
|
+
+ "\"\r\n id=\""
|
|
188
|
+
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.modelAttr : stack1), depth0))
|
|
189
|
+
+ "\"\r\n placeholder=\""
|
|
190
|
+
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.placeholderText : stack1), depth0))
|
|
191
|
+
+ "\"\r\n data-toggle=\"datetimepicker\"\r\n data-target=\"."
|
|
192
|
+
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.instanceClass : stack1), depth0))
|
|
193
|
+
+ "\"\r\n autocomplete=\"off\"\r\n "
|
|
194
|
+
+ ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
195
|
+
+ "\r\n />\r\n <span class=\"clear-button-region clear-svg\"></span>\r\n <span class=\"svg-container "
|
|
196
|
+
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.calendarSvg : stack1), depth0))
|
|
197
|
+
+ " "
|
|
198
|
+
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"if","hash":{},"fn":container.program(8, data, 0),"inverse":container.program(4, data, 0),"data":data})) != null ? stack1 : "")
|
|
199
|
+
+ "\">"
|
|
200
|
+
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.svgCalendar : stack1), depth0)) != null ? stack1 : "")
|
|
201
|
+
+ "</span>\r\n <div class=\"form-feedback\"></div>\r\n</div>";
|
|
202
|
+
},"useData":true});
|
|
203
|
+
|
|
204
|
+
/***/ }),
|
|
205
|
+
|
|
206
|
+
/***/ "./src/shared/components/date-picker/DatePickerComponent.ts":
|
|
207
|
+
/*!******************************************************************!*\
|
|
208
|
+
!*** ./src/shared/components/date-picker/DatePickerComponent.ts ***!
|
|
209
|
+
\******************************************************************/
|
|
210
|
+
/*! exports provided: DatePickerComponent */
|
|
211
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
212
|
+
|
|
213
|
+
"use strict";
|
|
214
|
+
__webpack_require__.r(__webpack_exports__);
|
|
215
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatePickerComponent", function() { return DatePickerComponent; });
|
|
216
|
+
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
217
|
+
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
218
|
+
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
|
|
219
|
+
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
|
|
220
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
221
|
+
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
222
|
+
/* harmony import */ var _behaviors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../behaviors */ "./src/shared/behaviors/index.ts");
|
|
223
|
+
/* harmony import */ var _clear_button_ClearButtonComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../clear-button/ClearButtonComponent */ "./src/shared/components/clear-button/ClearButtonComponent.ts");
|
|
224
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../constants */ "./src/shared/constants/index.ts");
|
|
225
|
+
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
226
|
+
/* harmony import */ var _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../apps/library-editor/constants */ "./src/apps/library-editor/constants/index.ts");
|
|
227
|
+
/* harmony import */ var _DatePicker_hbs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./DatePicker.hbs */ "./src/shared/components/date-picker/DatePicker.hbs");
|
|
228
|
+
/* harmony import */ var _DatePicker_hbs__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_DatePicker_hbs__WEBPACK_IMPORTED_MODULE_9__);
|
|
229
|
+
/* harmony import */ var _date_picker_scss__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./date-picker.scss */ "./src/shared/components/date-picker/date-picker.scss");
|
|
230
|
+
/* harmony import */ var _date_picker_scss__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_date_picker_scss__WEBPACK_IMPORTED_MODULE_10__);
|
|
231
|
+
/* harmony import */ var _edit_video_base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../edit-video/base/edit-video-info.scss */ "./src/shared/components/edit-video/base/edit-video-info.scss");
|
|
232
|
+
/* harmony import */ var _edit_video_base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_edit_video_base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_11__);
|
|
233
|
+
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); }
|
|
234
|
+
|
|
235
|
+
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; }
|
|
236
|
+
|
|
237
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
238
|
+
|
|
239
|
+
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); } }
|
|
240
|
+
|
|
241
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
242
|
+
|
|
243
|
+
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); }
|
|
244
|
+
|
|
245
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
246
|
+
|
|
247
|
+
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); }; }
|
|
248
|
+
|
|
249
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
250
|
+
|
|
251
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
252
|
+
|
|
253
|
+
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; } }
|
|
254
|
+
|
|
255
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
var DatePickerComponent = /*#__PURE__*/function (_Core$Component) {
|
|
270
|
+
_inherits(DatePickerComponent, _Core$Component);
|
|
271
|
+
|
|
272
|
+
var _super = _createSuper(DatePickerComponent);
|
|
273
|
+
|
|
274
|
+
function DatePickerComponent(options) {
|
|
275
|
+
_classCallCheck(this, DatePickerComponent);
|
|
276
|
+
|
|
277
|
+
return _super.call(this, options);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
_createClass(DatePickerComponent, [{
|
|
281
|
+
key: "initialize",
|
|
282
|
+
value: function initialize() {
|
|
283
|
+
this.listenTo(this.model, "change:".concat(this.options.modelAttr), this.renderClearDateButton);
|
|
284
|
+
this.listenTo(this.channelName, 'clear:date', this.onClearDate);
|
|
285
|
+
}
|
|
286
|
+
}, {
|
|
287
|
+
key: "regions",
|
|
288
|
+
value: function regions() {
|
|
289
|
+
return {
|
|
290
|
+
clearButton: {
|
|
291
|
+
el: '.clear-button-region'
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
}, {
|
|
296
|
+
key: "events",
|
|
297
|
+
value: function events() {
|
|
298
|
+
return _defineProperty({
|
|
299
|
+
'keydown @ui.date': 'onKeyDownDate'
|
|
300
|
+
}, "click .".concat(_date_picker_scss__WEBPACK_IMPORTED_MODULE_10___default.a.calendarSvg), 'onClickCalendarIcon');
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* We use an instance class name to distinguish between
|
|
304
|
+
* multiple datepicker inputs that are rendered on the same document.
|
|
305
|
+
*/
|
|
306
|
+
|
|
307
|
+
}, {
|
|
308
|
+
key: "getInstanceClassName",
|
|
309
|
+
value: function getInstanceClassName() {
|
|
310
|
+
return "datetimepicker-".concat(this.cid);
|
|
311
|
+
}
|
|
312
|
+
}, {
|
|
313
|
+
key: "initDatePicker",
|
|
314
|
+
value: function initDatePicker() {
|
|
315
|
+
this.getUI('date').datetimepicker({
|
|
316
|
+
format: this.options.displayedTimeFormat,
|
|
317
|
+
minDate: moment__WEBPACK_IMPORTED_MODULE_1__().year(this.options.minYear),
|
|
318
|
+
maxDate: moment__WEBPACK_IMPORTED_MODULE_1__(),
|
|
319
|
+
icons: {
|
|
320
|
+
previous: _date_picker_scss__WEBPACK_IMPORTED_MODULE_10___default.a.previous,
|
|
321
|
+
next: _date_picker_scss__WEBPACK_IMPORTED_MODULE_10___default.a.next
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
}, {
|
|
326
|
+
key: "getFormattedDisplayDate",
|
|
327
|
+
value: function getFormattedDisplayDate(val) {
|
|
328
|
+
if (!val) return;
|
|
329
|
+
if (underscore__WEBPACK_IMPORTED_MODULE_0__["isFunction"](this.options.formatDisplayDate)) return this.options.formatDisplayDate(val);
|
|
330
|
+
return moment__WEBPACK_IMPORTED_MODULE_1__["utc"](val).local().format(this.options.displayedTimeFormat);
|
|
331
|
+
}
|
|
332
|
+
}, {
|
|
333
|
+
key: "getFormattedSavedDate",
|
|
334
|
+
value: function getFormattedSavedDate(val) {
|
|
335
|
+
if (!val) return;
|
|
336
|
+
if (underscore__WEBPACK_IMPORTED_MODULE_0__["isFunction"](this.options.formatSavedDate)) return this.options.formatSavedDate(val);
|
|
337
|
+
return this.options.savedTimeFormat ? moment__WEBPACK_IMPORTED_MODULE_1__["utc"](val).format(this.options.savedTimeFormat) : moment__WEBPACK_IMPORTED_MODULE_1__["utc"](val).format();
|
|
338
|
+
}
|
|
339
|
+
}, {
|
|
340
|
+
key: "onClickCalendarIcon",
|
|
341
|
+
value: function onClickCalendarIcon() {
|
|
342
|
+
if (!this.options.editable) return;
|
|
343
|
+
this.getUI('date').datetimepicker('toggle');
|
|
344
|
+
return true;
|
|
345
|
+
}
|
|
346
|
+
}, {
|
|
347
|
+
key: "onClearDate",
|
|
348
|
+
value: function onClearDate() {
|
|
349
|
+
if (!this.options.allowClearDate) return true;
|
|
350
|
+
this.model.set(_defineProperty({}, "".concat(this.options.modelAttr), null));
|
|
351
|
+
return true;
|
|
352
|
+
}
|
|
353
|
+
}, {
|
|
354
|
+
key: "onKeyDownDate",
|
|
355
|
+
value: function onKeyDownDate(e) {
|
|
356
|
+
if (this.options.allowTextInput) return;
|
|
357
|
+
/**
|
|
358
|
+
* Prevent the user from typing a date
|
|
359
|
+
*/
|
|
360
|
+
|
|
361
|
+
e.preventDefault();
|
|
362
|
+
}
|
|
363
|
+
}, {
|
|
364
|
+
key: "renderClearDateButton",
|
|
365
|
+
value: function renderClearDateButton() {
|
|
366
|
+
this.showChildView('clearButton', new _clear_button_ClearButtonComponent__WEBPACK_IMPORTED_MODULE_5__["ClearButtonComponent"]({
|
|
367
|
+
channelName: this.channelName,
|
|
368
|
+
shouldRender: this.options.allowClearDate && !!this.model.get('dateBroadcast')
|
|
369
|
+
}));
|
|
370
|
+
}
|
|
371
|
+
}, {
|
|
372
|
+
key: "viewOptions",
|
|
373
|
+
value: function viewOptions() {
|
|
374
|
+
return {
|
|
375
|
+
styles: underscore__WEBPACK_IMPORTED_MODULE_0__["extend"](_edit_video_base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_11___default.a, _date_picker_scss__WEBPACK_IMPORTED_MODULE_10___default.a),
|
|
376
|
+
label: this.options.label,
|
|
377
|
+
modelAttr: this.options.modelAttr,
|
|
378
|
+
instanceClass: this.getInstanceClassName(),
|
|
379
|
+
placeholderText: this.options.placeholderText,
|
|
380
|
+
displayedTimeFormat: this.options.displayedTimeFormat,
|
|
381
|
+
svgCalendar: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["cvSvgLibrary"].Calendar),
|
|
382
|
+
svgClear: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["cvSvgLibrary"].Close),
|
|
383
|
+
editable: this.options.editable
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
}, {
|
|
387
|
+
key: "onRender",
|
|
388
|
+
value: function onRender() {
|
|
389
|
+
this.initDatePicker();
|
|
390
|
+
this.renderClearDateButton();
|
|
391
|
+
}
|
|
392
|
+
}, {
|
|
393
|
+
key: "name",
|
|
394
|
+
get: function get() {
|
|
395
|
+
return 'DatePickerComponent';
|
|
396
|
+
}
|
|
397
|
+
}, {
|
|
398
|
+
key: "template",
|
|
399
|
+
get: function get() {
|
|
400
|
+
return _DatePicker_hbs__WEBPACK_IMPORTED_MODULE_9___default.a;
|
|
401
|
+
}
|
|
402
|
+
}, {
|
|
403
|
+
key: "lang",
|
|
404
|
+
get: function get() {
|
|
405
|
+
return 'shared.datePicker';
|
|
406
|
+
}
|
|
407
|
+
}, {
|
|
408
|
+
key: "channelName",
|
|
409
|
+
get: function get() {
|
|
410
|
+
return "".concat(this.name, ":").concat(this.cid);
|
|
411
|
+
}
|
|
412
|
+
}, {
|
|
413
|
+
key: "elements",
|
|
414
|
+
get: function get() {
|
|
415
|
+
return {
|
|
416
|
+
date: "#".concat(this.options.modelAttr)
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
}, {
|
|
420
|
+
key: "appLinks",
|
|
421
|
+
get: function get() {
|
|
422
|
+
return {
|
|
423
|
+
'.suggest-broadcast-date': {
|
|
424
|
+
application: _constants__WEBPACK_IMPORTED_MODULE_6__["AppChannels"].LIBRARY_EDITOR,
|
|
425
|
+
action: _constants__WEBPACK_IMPORTED_MODULE_6__["Actions"].LibraryEditor.SUGGEST_AN_EDIT,
|
|
426
|
+
args: [this.model.get('id')],
|
|
427
|
+
params: {
|
|
428
|
+
metadata: _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_8__["MetadataType"].BroadcastDate
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
}, {
|
|
434
|
+
key: "defaults",
|
|
435
|
+
get: function get() {
|
|
436
|
+
return {
|
|
437
|
+
placeholderText: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_7__["LanguageService"].getPhrase(this.lang, 'placeholder'),
|
|
438
|
+
allowTextInput: false,
|
|
439
|
+
allowClearDate: true,
|
|
440
|
+
minYear: 1900,
|
|
441
|
+
editable: true
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
}, {
|
|
445
|
+
key: "behaviors",
|
|
446
|
+
get: function get() {
|
|
447
|
+
return [{
|
|
448
|
+
behaviorClass: _behaviors__WEBPACK_IMPORTED_MODULE_4__["BackboneValidationBehavior"]
|
|
449
|
+
}, {
|
|
450
|
+
behaviorClass: _behaviors__WEBPACK_IMPORTED_MODULE_4__["StickitBehavior"]
|
|
451
|
+
}];
|
|
452
|
+
}
|
|
453
|
+
}, {
|
|
454
|
+
key: "bindings",
|
|
455
|
+
get: function get() {
|
|
456
|
+
var _this = this;
|
|
457
|
+
|
|
458
|
+
return _defineProperty({}, "[name=".concat(this.options.modelAttr, "]"), {
|
|
459
|
+
observe: this.options.modelAttr,
|
|
460
|
+
setOptions: {
|
|
461
|
+
validate: true
|
|
462
|
+
},
|
|
463
|
+
onGet: function onGet(val) {
|
|
464
|
+
return _this.getFormattedDisplayDate(val);
|
|
465
|
+
},
|
|
466
|
+
onSet: function onSet(val) {
|
|
467
|
+
return _this.getFormattedSavedDate(val);
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
}]);
|
|
472
|
+
|
|
473
|
+
return DatePickerComponent;
|
|
474
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Component);
|
|
475
|
+
|
|
476
|
+
/***/ }),
|
|
477
|
+
|
|
478
|
+
/***/ "./src/shared/components/date-picker/date-picker.scss":
|
|
479
|
+
/*!************************************************************!*\
|
|
480
|
+
!*** ./src/shared/components/date-picker/date-picker.scss ***!
|
|
481
|
+
\************************************************************/
|
|
482
|
+
/*! no static exports found */
|
|
483
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
484
|
+
|
|
485
|
+
// extracted by mini-css-extract-plugin
|
|
486
|
+
module.exports = {"next":"cv--next--1sAku","previous":"cv--previous--3zc5V","datePicker":"cv--datePicker--1j_H7","calendarSvg":"cv--calendarSvg--3ViTN","disabled":"cv--disabled--DzdxT"};
|
|
487
|
+
|
|
488
|
+
/***/ }),
|
|
489
|
+
|
|
490
|
+
/***/ "./src/shared/components/edit-video/edit-additional-info/EditAdditionalInfo.hbs":
|
|
491
|
+
/*!**************************************************************************************!*\
|
|
492
|
+
!*** ./src/shared/components/edit-video/edit-additional-info/EditAdditionalInfo.hbs ***!
|
|
493
|
+
\**************************************************************************************/
|
|
494
|
+
/*! no static exports found */
|
|
495
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
496
|
+
|
|
497
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
498
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
499
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
500
|
+
|
|
501
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.seriesTitle : stack1), depth0));
|
|
502
|
+
},"3":function(container,depth0,helpers,partials,data) {
|
|
503
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
504
|
+
|
|
505
|
+
return "<span class=\""
|
|
506
|
+
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))
|
|
507
|
+
+ "\">- <a class=\"suggest-series-title\">"
|
|
508
|
+
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"suggestEdit",{"name":"lang","hash":{},"data":data}))
|
|
509
|
+
+ "</a></span>";
|
|
510
|
+
},"5":function(container,depth0,helpers,partials,data) {
|
|
511
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
512
|
+
|
|
513
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.seasonNumber : stack1), depth0));
|
|
514
|
+
},"7":function(container,depth0,helpers,partials,data) {
|
|
515
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
516
|
+
|
|
517
|
+
return "<span class=\""
|
|
518
|
+
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))
|
|
519
|
+
+ "\">- <a class=\"suggest-season-number\">"
|
|
520
|
+
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"suggestEdit",{"name":"lang","hash":{},"data":data}))
|
|
521
|
+
+ "</a></span>";
|
|
522
|
+
},"9":function(container,depth0,helpers,partials,data) {
|
|
523
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
524
|
+
|
|
525
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.episodeNumber : stack1), depth0));
|
|
526
|
+
},"11":function(container,depth0,helpers,partials,data) {
|
|
527
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
528
|
+
|
|
529
|
+
return "<span class=\""
|
|
530
|
+
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))
|
|
531
|
+
+ "\">- <a class=\"suggest-episode-number\">"
|
|
532
|
+
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"suggestEdit",{"name":"lang","hash":{},"data":data}))
|
|
533
|
+
+ "</a></span>";
|
|
534
|
+
},"13":function(container,depth0,helpers,partials,data) {
|
|
535
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
536
|
+
|
|
537
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.disabled : stack1), depth0));
|
|
538
|
+
},"15":function(container,depth0,helpers,partials,data) {
|
|
539
|
+
return "disabled";
|
|
540
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
541
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression;
|
|
542
|
+
|
|
543
|
+
return "<h5>"
|
|
544
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"heading",{"name":"lang","hash":{},"data":data}))
|
|
545
|
+
+ "</h5>\r\n<div class=\"container-fluid\">\r\n <div class=\"row\">\r\n <div class=\"form-group col-6 p-0 "
|
|
546
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
547
|
+
+ "\">\r\n <label for=\"edit-title\">"
|
|
548
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"series",{"name":"lang","hash":{},"data":data}))
|
|
549
|
+
+ "</label>\r\n "
|
|
550
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
551
|
+
+ "\r\n <div class=\"edit-series-region\"></div>\r\n <div class=\"form-feedback\"></div>\r\n </div>\r\n\r\n <div class=\"form-group col-3 pr-0 "
|
|
552
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
553
|
+
+ "\">\r\n <label for=\"edit-season-number\">"
|
|
554
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"season",{"name":"lang","hash":{},"data":data}))
|
|
555
|
+
+ "</label>\r\n "
|
|
556
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
557
|
+
+ "\r\n <div class=\"edit-season-region\"></div>\r\n <div class=\"form-feedback\"></div>\r\n </div>\r\n \r\n <div class=\"form-group col-3 pr-0 "
|
|
558
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
559
|
+
+ "\">\r\n <label for=\"edit-episode-number\">"
|
|
560
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"episode",{"name":"lang","hash":{},"data":data}))
|
|
561
|
+
+ "</label>\r\n "
|
|
562
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(11, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
563
|
+
+ "\r\n <input\r\n name=\"episodeNumber\"\r\n type=\"number\"\r\n class=\"form-control episode-number "
|
|
564
|
+
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.lockEpisodeNumber : stack1),{"name":"if","hash":{},"fn":container.program(13, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
565
|
+
+ "\"\r\n id=\"edit-episode-number\"\r\n placeholder=\""
|
|
566
|
+
+ alias4(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.episodeNumberPlaceholderText : stack1), depth0))
|
|
567
|
+
+ "\"\r\n autocomplete=\"off\"\r\n min=\"1\"\r\n "
|
|
568
|
+
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.lockEpisodeNumber : stack1),{"name":"if","hash":{},"fn":container.program(15, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
569
|
+
+ "\r\n >\r\n <div class=\"form-feedback\"></div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"edit-broadcast-region\"></div>";
|
|
570
|
+
},"useData":true});
|
|
571
|
+
|
|
572
|
+
/***/ }),
|
|
573
|
+
|
|
574
|
+
/***/ "./src/shared/components/edit-video/edit-additional-info/EditAdditionalInfoComponent.ts":
|
|
575
|
+
/*!**********************************************************************************************!*\
|
|
576
|
+
!*** ./src/shared/components/edit-video/edit-additional-info/EditAdditionalInfoComponent.ts ***!
|
|
577
|
+
\**********************************************************************************************/
|
|
578
|
+
/*! exports provided: EditAdditionalInfoComponent */
|
|
579
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
580
|
+
|
|
581
|
+
"use strict";
|
|
582
|
+
__webpack_require__.r(__webpack_exports__);
|
|
583
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditAdditionalInfoComponent", function() { return EditAdditionalInfoComponent; });
|
|
584
|
+
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
585
|
+
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
586
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! backbone */ "backbone");
|
|
587
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);
|
|
588
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
589
|
+
/* harmony import */ var _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/apps/search/utils/TypeaheadHelper */ "../../libs/shared/src/apps/search/utils/TypeaheadHelper.ts");
|
|
590
|
+
/* harmony import */ var _behaviors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../behaviors */ "./src/shared/behaviors/index.ts");
|
|
591
|
+
/* harmony import */ var _typeahead_input_SearchTypeaheadComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../typeahead-input/SearchTypeaheadComponent */ "./src/shared/components/typeahead-input/SearchTypeaheadComponent.ts");
|
|
592
|
+
/* harmony import */ var _edit_broadcast_ToggleBroadcastComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../edit-broadcast/ToggleBroadcastComponent */ "./src/shared/components/edit-video/edit-broadcast/ToggleBroadcastComponent.ts");
|
|
593
|
+
/* harmony import */ var _edit_season_info_EditSeasonInfoComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../edit-season-info/EditSeasonInfoComponent */ "./src/shared/components/edit-video/edit-season-info/EditSeasonInfoComponent.ts");
|
|
594
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../constants */ "./src/shared/constants/index.ts");
|
|
595
|
+
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
596
|
+
/* harmony import */ var _collections_SeasonCollection__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../collections/SeasonCollection */ "./src/shared/collections/SeasonCollection.ts");
|
|
597
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../utils */ "./src/shared/utils/index.ts");
|
|
598
|
+
/* harmony import */ var _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../apps/library-editor/constants */ "./src/apps/library-editor/constants/index.ts");
|
|
599
|
+
/* harmony import */ var _EditAdditionalInfo_hbs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./EditAdditionalInfo.hbs */ "./src/shared/components/edit-video/edit-additional-info/EditAdditionalInfo.hbs");
|
|
600
|
+
/* harmony import */ var _EditAdditionalInfo_hbs__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_EditAdditionalInfo_hbs__WEBPACK_IMPORTED_MODULE_13__);
|
|
601
|
+
/* harmony import */ var _base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../base/edit-video-info.scss */ "./src/shared/components/edit-video/base/edit-video-info.scss");
|
|
602
|
+
/* harmony import */ var _base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_14__);
|
|
603
|
+
/* harmony import */ var _edit_additional_info_scss__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./edit-additional-info.scss */ "./src/shared/components/edit-video/edit-additional-info/edit-additional-info.scss");
|
|
604
|
+
/* harmony import */ var _edit_additional_info_scss__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_edit_additional_info_scss__WEBPACK_IMPORTED_MODULE_15__);
|
|
605
|
+
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); }
|
|
606
|
+
|
|
607
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
608
|
+
|
|
609
|
+
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); } }
|
|
610
|
+
|
|
611
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
612
|
+
|
|
613
|
+
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); }
|
|
614
|
+
|
|
615
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
616
|
+
|
|
617
|
+
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); }; }
|
|
618
|
+
|
|
619
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
620
|
+
|
|
621
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
622
|
+
|
|
623
|
+
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; } }
|
|
624
|
+
|
|
625
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
var EditAdditionalInfoComponent = /*#__PURE__*/function (_Core$Component) {
|
|
644
|
+
_inherits(EditAdditionalInfoComponent, _Core$Component);
|
|
645
|
+
|
|
646
|
+
var _super = _createSuper(EditAdditionalInfoComponent);
|
|
647
|
+
|
|
648
|
+
function EditAdditionalInfoComponent(options) {
|
|
649
|
+
_classCallCheck(this, EditAdditionalInfoComponent);
|
|
650
|
+
|
|
651
|
+
return _super.call(this, options);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
_createClass(EditAdditionalInfoComponent, [{
|
|
655
|
+
key: "initialize",
|
|
656
|
+
value: function initialize() {
|
|
657
|
+
this.listenTo(this.options.channelName, 'select:season', this.onSelectSeason);
|
|
658
|
+
this.listenTo(this.options.channelName, 'clear:series', this.onSeriesChange);
|
|
659
|
+
this.listenTo(this.model, 'change:series', this.onSeriesChange);
|
|
660
|
+
this.lockSeasonAndEpisode = !this.options.editable || !this.model.get('series.id');
|
|
661
|
+
}
|
|
662
|
+
}, {
|
|
663
|
+
key: "events",
|
|
664
|
+
value: function events() {
|
|
665
|
+
return {
|
|
666
|
+
submit: function submit(e) {
|
|
667
|
+
return e.preventDefault();
|
|
668
|
+
}
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
}, {
|
|
672
|
+
key: "regions",
|
|
673
|
+
value: function regions() {
|
|
674
|
+
return {
|
|
675
|
+
series: {
|
|
676
|
+
el: '.edit-series-region',
|
|
677
|
+
replaceElement: true
|
|
678
|
+
},
|
|
679
|
+
season: {
|
|
680
|
+
el: '.edit-season-region',
|
|
681
|
+
replaceElement: true
|
|
682
|
+
},
|
|
683
|
+
broadcast: {
|
|
684
|
+
el: '.edit-broadcast-region',
|
|
685
|
+
replaceElement: true
|
|
686
|
+
}
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
}, {
|
|
690
|
+
key: "onSelectSeason",
|
|
691
|
+
value: function onSelectSeason(season) {
|
|
692
|
+
if (season) this.getUI('episodeNumberField').focus();
|
|
693
|
+
backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.options.channelName).trigger('add:season', season);
|
|
694
|
+
}
|
|
695
|
+
}, {
|
|
696
|
+
key: "onSeriesChange",
|
|
697
|
+
value: function onSeriesChange(series) {
|
|
698
|
+
this.lockSeasonAndEpisode = !series || !series.get('id');
|
|
699
|
+
this.renderEditSeason(); // Prevent need for complete re-render. This prevents the series typeahead from losing focus.
|
|
700
|
+
|
|
701
|
+
var episodeNumber = this.getUI('episodeNumberField');
|
|
702
|
+
|
|
703
|
+
if (this.lockSeasonAndEpisode) {
|
|
704
|
+
episodeNumber.attr('disabled', 'disabled');
|
|
705
|
+
episodeNumber.attr('class', "form-control ".concat(_edit_additional_info_scss__WEBPACK_IMPORTED_MODULE_15___default.a.disabled));
|
|
706
|
+
} else {
|
|
707
|
+
episodeNumber.removeAttr('disabled');
|
|
708
|
+
episodeNumber.attr('class', "form-control");
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
}, {
|
|
712
|
+
key: "getLibraryIds",
|
|
713
|
+
value: function getLibraryIds(libraryCollection) {
|
|
714
|
+
return libraryCollection && libraryCollection.map(function (l) {
|
|
715
|
+
return l.id;
|
|
716
|
+
}).join(',');
|
|
717
|
+
}
|
|
718
|
+
}, {
|
|
719
|
+
key: "getTypeaheadConfigs",
|
|
720
|
+
value: function getTypeaheadConfigs() {
|
|
721
|
+
var typeaheadConfig = _utils__WEBPACK_IMPORTED_MODULE_11__["RawSearchHelper"].getTypeaheadConfig();
|
|
722
|
+
var bloodhoundConfig = _utils__WEBPACK_IMPORTED_MODULE_11__["RawSearchHelper"].getBloodhoundConfig();
|
|
723
|
+
var rawSearchOptions = {
|
|
724
|
+
hideEmptyResults: true
|
|
725
|
+
};
|
|
726
|
+
var newSeriesOptions = {
|
|
727
|
+
newType: _constants__WEBPACK_IMPORTED_MODULE_8__["SearchQueryType"].Series
|
|
728
|
+
};
|
|
729
|
+
var emptySuggestionOptions = {
|
|
730
|
+
newType: _constants__WEBPACK_IMPORTED_MODULE_8__["SearchQueryType"].Series,
|
|
731
|
+
footerTemplate: _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_3__["TypeaheadHelper"].getConfirmSelectionTemplate()
|
|
732
|
+
}; // The order here is important. It reflects how suggestions will be rendered in the typeahead.
|
|
733
|
+
|
|
734
|
+
return [{
|
|
735
|
+
name: _constants__WEBPACK_IMPORTED_MODULE_8__["SearchQueryType"].Series,
|
|
736
|
+
typeaheadConfig: typeaheadConfig,
|
|
737
|
+
bloodhoundConfig: bloodhoundConfig,
|
|
738
|
+
options: rawSearchOptions
|
|
739
|
+
}, {
|
|
740
|
+
name: 'add-new',
|
|
741
|
+
typeaheadConfig: typeaheadConfig,
|
|
742
|
+
bloodhoundConfig: bloodhoundConfig,
|
|
743
|
+
options: newSeriesOptions
|
|
744
|
+
}, {
|
|
745
|
+
name: 'empty-suggestion',
|
|
746
|
+
typeaheadConfig: typeaheadConfig,
|
|
747
|
+
bloodhoundConfig: bloodhoundConfig,
|
|
748
|
+
options: emptySuggestionOptions
|
|
749
|
+
}];
|
|
750
|
+
}
|
|
751
|
+
}, {
|
|
752
|
+
key: "renderSeriesTypeahead",
|
|
753
|
+
value: function renderSeriesTypeahead() {
|
|
754
|
+
var series = this.model.series || new _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Model();
|
|
755
|
+
this.showChildView('series', new _typeahead_input_SearchTypeaheadComponent__WEBPACK_IMPORTED_MODULE_5__["SearchTypeaheadComponent"]({
|
|
756
|
+
model: series,
|
|
757
|
+
editable: this.options.editable,
|
|
758
|
+
parentChannelName: this.options.channelName,
|
|
759
|
+
inputId: 'series-search',
|
|
760
|
+
selectEvent: 'select:series',
|
|
761
|
+
placeholderText: this.options.editable ? _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_9__["LanguageService"].getPhrase(this.lang, 'searchSeries') : '',
|
|
762
|
+
typeaheadConfigs: this.getTypeaheadConfigs(),
|
|
763
|
+
typeaheadOptions: {
|
|
764
|
+
hint: false
|
|
765
|
+
},
|
|
766
|
+
callbacks: {
|
|
767
|
+
onRender: _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_3__["TypeaheadHelper"].selectFirstResult,
|
|
768
|
+
onInput: _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_3__["TypeaheadHelper"].emitEventOnInput(this.options.channelName, _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_12__["LibraryEditorActions"].DetectInput, 'series'),
|
|
769
|
+
onBlur: _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_3__["TypeaheadHelper"].resetAssociationOnBlur(series.toJSON())
|
|
770
|
+
},
|
|
771
|
+
removeEvent: 'remove:series'
|
|
772
|
+
}));
|
|
773
|
+
}
|
|
774
|
+
}, {
|
|
775
|
+
key: "renderEditSeason",
|
|
776
|
+
value: function renderEditSeason() {
|
|
777
|
+
var _this = this;
|
|
778
|
+
|
|
779
|
+
var seasons = this.model.get('series.seasons') || new _collections_SeasonCollection__WEBPACK_IMPORTED_MODULE_10__["SeasonCollection"]();
|
|
780
|
+
var collection = new _collections_SeasonCollection__WEBPACK_IMPORTED_MODULE_10__["SeasonCollection"](seasons.map(function (season) {
|
|
781
|
+
return season.set('displayName', _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_9__["LanguageService"].getPhrase(_this.lang, 'seasonNumber', {
|
|
782
|
+
number: season.get('number')
|
|
783
|
+
}));
|
|
784
|
+
}));
|
|
785
|
+
this.showChildView('season', new _edit_season_info_EditSeasonInfoComponent__WEBPACK_IMPORTED_MODULE_7__["EditSeasonInfoComponent"]({
|
|
786
|
+
model: this.model,
|
|
787
|
+
collection: collection,
|
|
788
|
+
channelName: this.options.channelName,
|
|
789
|
+
disabled: !this.options.editable || this.lockSeasonAndEpisode,
|
|
790
|
+
isSuggestEdit: !this.options.editable
|
|
791
|
+
}));
|
|
792
|
+
}
|
|
793
|
+
}, {
|
|
794
|
+
key: "renderEditBroadcast",
|
|
795
|
+
value: function renderEditBroadcast() {
|
|
796
|
+
this.showChildView('broadcast', new _edit_broadcast_ToggleBroadcastComponent__WEBPACK_IMPORTED_MODULE_6__["ToggleBroadcastComponent"]({
|
|
797
|
+
model: this.model,
|
|
798
|
+
channelName: this.options.channelName,
|
|
799
|
+
hideToggle: true,
|
|
800
|
+
editable: this.options.editable
|
|
801
|
+
}));
|
|
802
|
+
}
|
|
803
|
+
}, {
|
|
804
|
+
key: "viewOptions",
|
|
805
|
+
value: function viewOptions() {
|
|
806
|
+
return {
|
|
807
|
+
styles: underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, _base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_14___default.a, _edit_additional_info_scss__WEBPACK_IMPORTED_MODULE_15___default.a),
|
|
808
|
+
editable: this.options.editable,
|
|
809
|
+
lockEpisodeNumber: this.lockSeasonAndEpisode,
|
|
810
|
+
episodeNumberPlaceholderText: this.options.editable ? _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_9__["LanguageService"].getPhrase(this.lang, 'epNumberPlaceholder') : ''
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
}, {
|
|
814
|
+
key: "onRender",
|
|
815
|
+
value: function onRender() {
|
|
816
|
+
this.stickit();
|
|
817
|
+
backbone__WEBPACK_IMPORTED_MODULE_1__["Validation"].bind(this);
|
|
818
|
+
this.renderSeriesTypeahead();
|
|
819
|
+
this.renderEditSeason();
|
|
820
|
+
this.renderEditBroadcast();
|
|
821
|
+
}
|
|
822
|
+
}, {
|
|
823
|
+
key: "onClose",
|
|
824
|
+
value: function onClose() {
|
|
825
|
+
this.unstickit();
|
|
826
|
+
backbone__WEBPACK_IMPORTED_MODULE_1__["Validation"].unbind(this);
|
|
827
|
+
}
|
|
828
|
+
}, {
|
|
829
|
+
key: "name",
|
|
830
|
+
get: function get() {
|
|
831
|
+
return 'EditAdditionalInfoComponent';
|
|
832
|
+
}
|
|
833
|
+
}, {
|
|
834
|
+
key: "tagName",
|
|
835
|
+
get: function get() {
|
|
836
|
+
return 'form';
|
|
837
|
+
}
|
|
838
|
+
}, {
|
|
839
|
+
key: "lang",
|
|
840
|
+
get: function get() {
|
|
841
|
+
return 'shared.editAdditionalInfo';
|
|
842
|
+
}
|
|
843
|
+
}, {
|
|
844
|
+
key: "template",
|
|
845
|
+
get: function get() {
|
|
846
|
+
return _EditAdditionalInfo_hbs__WEBPACK_IMPORTED_MODULE_13___default.a;
|
|
847
|
+
}
|
|
848
|
+
}, {
|
|
849
|
+
key: "className",
|
|
850
|
+
get: function get() {
|
|
851
|
+
return 'edit-additional-info border-top pt-3';
|
|
852
|
+
}
|
|
853
|
+
}, {
|
|
854
|
+
key: "elements",
|
|
855
|
+
get: function get() {
|
|
856
|
+
return {
|
|
857
|
+
episodeNumberField: '.episode-number',
|
|
858
|
+
seriesTypeahead: '.tt-input'
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
}, {
|
|
862
|
+
key: "appLinks",
|
|
863
|
+
get: function get() {
|
|
864
|
+
return {
|
|
865
|
+
'.suggest-series-title': {
|
|
866
|
+
application: _constants__WEBPACK_IMPORTED_MODULE_8__["AppChannels"].LIBRARY_EDITOR,
|
|
867
|
+
action: _constants__WEBPACK_IMPORTED_MODULE_8__["Actions"].LibraryEditor.SUGGEST_AN_EDIT,
|
|
868
|
+
args: [this.model.get('id')],
|
|
869
|
+
params: {
|
|
870
|
+
metadata: _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_12__["MetadataType"].SeriesTitle
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
'.suggest-season-number': {
|
|
874
|
+
application: _constants__WEBPACK_IMPORTED_MODULE_8__["AppChannels"].LIBRARY_EDITOR,
|
|
875
|
+
action: _constants__WEBPACK_IMPORTED_MODULE_8__["Actions"].LibraryEditor.SUGGEST_AN_EDIT,
|
|
876
|
+
args: [this.model.get('id')],
|
|
877
|
+
params: {
|
|
878
|
+
metadata: _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_12__["MetadataType"].Season
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
'.suggest-episode-number': {
|
|
882
|
+
application: _constants__WEBPACK_IMPORTED_MODULE_8__["AppChannels"].LIBRARY_EDITOR,
|
|
883
|
+
action: _constants__WEBPACK_IMPORTED_MODULE_8__["Actions"].LibraryEditor.SUGGEST_AN_EDIT,
|
|
884
|
+
args: [this.model.get('id')],
|
|
885
|
+
params: {
|
|
886
|
+
metadata: _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_12__["MetadataType"].EpisodeNumber
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
}, {
|
|
892
|
+
key: "behaviors",
|
|
893
|
+
get: function get() {
|
|
894
|
+
return [{
|
|
895
|
+
behaviorClass: _behaviors__WEBPACK_IMPORTED_MODULE_4__["StickitBehavior"]
|
|
896
|
+
}, {
|
|
897
|
+
behaviorClass: _behaviors__WEBPACK_IMPORTED_MODULE_4__["BackboneValidationBehavior"]
|
|
898
|
+
}];
|
|
899
|
+
}
|
|
900
|
+
}, {
|
|
901
|
+
key: "bindings",
|
|
902
|
+
get: function get() {
|
|
903
|
+
return {
|
|
904
|
+
'[name=episodeNumber]': {
|
|
905
|
+
observe: 'episodeNumber',
|
|
906
|
+
setOptions: {
|
|
907
|
+
validate: true
|
|
908
|
+
},
|
|
909
|
+
onSet: function onSet(val) {
|
|
910
|
+
return val ? +val : null;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
};
|
|
914
|
+
}
|
|
915
|
+
}]);
|
|
916
|
+
|
|
917
|
+
return EditAdditionalInfoComponent;
|
|
918
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Component);
|
|
919
|
+
|
|
920
|
+
/***/ }),
|
|
921
|
+
|
|
922
|
+
/***/ "./src/shared/components/edit-video/edit-additional-info/edit-additional-info.scss":
|
|
923
|
+
/*!*****************************************************************************************!*\
|
|
924
|
+
!*** ./src/shared/components/edit-video/edit-additional-info/edit-additional-info.scss ***!
|
|
925
|
+
\*****************************************************************************************/
|
|
926
|
+
/*! no static exports found */
|
|
927
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
928
|
+
|
|
929
|
+
// extracted by mini-css-extract-plugin
|
|
930
|
+
module.exports = {"disabled":"cv--disabled--tOHRz"};
|
|
931
|
+
|
|
932
|
+
/***/ }),
|
|
933
|
+
|
|
934
|
+
/***/ "./src/shared/components/edit-video/edit-basic-info/EditBasicInfo.hbs":
|
|
935
|
+
/*!****************************************************************************!*\
|
|
936
|
+
!*** ./src/shared/components/edit-video/edit-basic-info/EditBasicInfo.hbs ***!
|
|
937
|
+
\****************************************************************************/
|
|
938
|
+
/*! no static exports found */
|
|
939
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
940
|
+
|
|
941
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
942
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
943
|
+
return "d-inline-block";
|
|
944
|
+
},"3":function(container,depth0,helpers,partials,data) {
|
|
945
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.lambda, alias4=container.escapeExpression;
|
|
946
|
+
|
|
947
|
+
return " "
|
|
948
|
+
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showingSaveButton : stack1),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
949
|
+
+ "\r\n <a class=\""
|
|
950
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showingSaveButton : stack1),{"name":"unless","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
951
|
+
+ "cursor-pointer applink-publisher-video\">\r\n <span class=\"d-inline-block align-middle "
|
|
952
|
+
+ alias4(alias3(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.icon : stack1), depth0))
|
|
953
|
+
+ "\">"
|
|
954
|
+
+ ((stack1 = alias3(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.publisherArchiveSvg : stack1), depth0)) != null ? stack1 : "")
|
|
955
|
+
+ "</span> "
|
|
956
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias2,"viewInPublisherArchive",{"name":"lang","hash":{},"data":data}))
|
|
957
|
+
+ "\r\n </a>\r\n";
|
|
958
|
+
},"4":function(container,depth0,helpers,partials,data) {
|
|
959
|
+
return "-";
|
|
960
|
+
},"6":function(container,depth0,helpers,partials,data) {
|
|
961
|
+
return "float-right ";
|
|
962
|
+
},"8":function(container,depth0,helpers,partials,data) {
|
|
963
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
964
|
+
|
|
965
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.programTitle : stack1), depth0));
|
|
966
|
+
},"10":function(container,depth0,helpers,partials,data) {
|
|
967
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
968
|
+
|
|
969
|
+
return "<span class=\""
|
|
970
|
+
+ container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.requiredStar : stack1), depth0))
|
|
971
|
+
+ "\">*</span>";
|
|
972
|
+
},"12":function(container,depth0,helpers,partials,data) {
|
|
973
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
974
|
+
|
|
975
|
+
return "<span class=\""
|
|
976
|
+
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))
|
|
977
|
+
+ "\">- <a class=\"suggest-title\">"
|
|
978
|
+
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"suggestEdit",{"name":"lang","hash":{},"data":data}))
|
|
979
|
+
+ "</a></span>";
|
|
980
|
+
},"14":function(container,depth0,helpers,partials,data) {
|
|
981
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
982
|
+
|
|
983
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.disabled : stack1), depth0));
|
|
984
|
+
},"16":function(container,depth0,helpers,partials,data) {
|
|
985
|
+
return "disabled";
|
|
986
|
+
},"18":function(container,depth0,helpers,partials,data) {
|
|
987
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
988
|
+
|
|
989
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.description : stack1), depth0));
|
|
990
|
+
},"20":function(container,depth0,helpers,partials,data) {
|
|
991
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
992
|
+
|
|
993
|
+
return "<span class=\""
|
|
994
|
+
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))
|
|
995
|
+
+ "\">- <a class=\"suggest-description\">"
|
|
996
|
+
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"suggestEdit",{"name":"lang","hash":{},"data":data}))
|
|
997
|
+
+ "</a></span>";
|
|
998
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
999
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression;
|
|
1000
|
+
|
|
1001
|
+
return "<div class=\"position-relative "
|
|
1002
|
+
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showingSaveButton : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1003
|
+
+ "\">\r\n <h5 class=\"d-inline-block\">"
|
|
1004
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"heading",{"name":"lang","hash":{},"data":data}))
|
|
1005
|
+
+ "</h5>\r\n\r\n"
|
|
1006
|
+
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showPublisherVideoDetails : stack1),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1007
|
+
+ "</div>\r\n<div class=\"form-group "
|
|
1008
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(8, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1009
|
+
+ "\">\r\n <label for=\"edit-title\">"
|
|
1010
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"title",{"name":"lang","hash":{},"data":data}))
|
|
1011
|
+
+ ((stack1 = helpers["if"].call(alias2,((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.requiredFields : stack1)) != null ? stack1.programTitle : stack1),{"name":"if","hash":{},"fn":container.program(10, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1012
|
+
+ "</label>\r\n "
|
|
1013
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(12, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1014
|
+
+ "\r\n <input\r\n name=\"name\"\r\n type=\"text\"\r\n class=\"form-control "
|
|
1015
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(14, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1016
|
+
+ "\"\r\n placeholder=\""
|
|
1017
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"titlePlaceholder",{"name":"lang","hash":{},"data":data}))
|
|
1018
|
+
+ "\"\r\n id=\"edit-title\"\r\n autocomplete=\"off\"\r\n "
|
|
1019
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(16, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1020
|
+
+ "\r\n >\r\n <div class=\"form-feedback\"></div>\r\n</div>\r\n<div class=\"form-group "
|
|
1021
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(18, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1022
|
+
+ "\">\r\n <label for=\"edit-description\">"
|
|
1023
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"description",{"name":"lang","hash":{},"data":data}))
|
|
1024
|
+
+ "</label>\r\n "
|
|
1025
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(20, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1026
|
+
+ "\r\n <div class=\"description-region\"></div>\r\n <div class=\"form-feedback\"></div>\r\n</div>\r\n<div class=\"ratings-region\"></div>";
|
|
1027
|
+
},"useData":true});
|
|
1028
|
+
|
|
1029
|
+
/***/ }),
|
|
1030
|
+
|
|
1031
|
+
/***/ "./src/shared/components/edit-video/edit-basic-info/EditBasicInfoComponent.ts":
|
|
1032
|
+
/*!************************************************************************************!*\
|
|
1033
|
+
!*** ./src/shared/components/edit-video/edit-basic-info/EditBasicInfoComponent.ts ***!
|
|
1034
|
+
\************************************************************************************/
|
|
1035
|
+
/*! exports provided: EditBasicInfoComponent */
|
|
1036
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1037
|
+
|
|
1038
|
+
"use strict";
|
|
1039
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1040
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditBasicInfoComponent", function() { return EditBasicInfoComponent; });
|
|
1041
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
|
|
1042
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
|
|
1043
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1044
|
+
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
1045
|
+
/* harmony import */ var _select_rating_SelectRatingComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../select-rating/SelectRatingComponent */ "./src/shared/components/edit-video/select-rating/SelectRatingComponent.ts");
|
|
1046
|
+
/* harmony import */ var _resizing_text_area_ResizingTextAreaComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../resizing-text-area/ResizingTextAreaComponent */ "./src/shared/components/resizing-text-area/ResizingTextAreaComponent.ts");
|
|
1047
|
+
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
1048
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../constants */ "./src/shared/constants/index.ts");
|
|
1049
|
+
/* harmony import */ var _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../apps/library-editor/constants */ "./src/apps/library-editor/constants/index.ts");
|
|
1050
|
+
/* harmony import */ var _EditBasicInfo_hbs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./EditBasicInfo.hbs */ "./src/shared/components/edit-video/edit-basic-info/EditBasicInfo.hbs");
|
|
1051
|
+
/* harmony import */ var _EditBasicInfo_hbs__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_EditBasicInfo_hbs__WEBPACK_IMPORTED_MODULE_8__);
|
|
1052
|
+
/* harmony import */ var _base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base/edit-video-info.scss */ "./src/shared/components/edit-video/base/edit-video-info.scss");
|
|
1053
|
+
/* harmony import */ var _base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_9__);
|
|
1054
|
+
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); }
|
|
1055
|
+
|
|
1056
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1057
|
+
|
|
1058
|
+
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); } }
|
|
1059
|
+
|
|
1060
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1061
|
+
|
|
1062
|
+
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); }
|
|
1063
|
+
|
|
1064
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1065
|
+
|
|
1066
|
+
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); }; }
|
|
1067
|
+
|
|
1068
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1069
|
+
|
|
1070
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1071
|
+
|
|
1072
|
+
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; } }
|
|
1073
|
+
|
|
1074
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
var EditBasicInfoComponent = /*#__PURE__*/function (_Core$Component) {
|
|
1087
|
+
_inherits(EditBasicInfoComponent, _Core$Component);
|
|
1088
|
+
|
|
1089
|
+
var _super = _createSuper(EditBasicInfoComponent);
|
|
1090
|
+
|
|
1091
|
+
function EditBasicInfoComponent(options) {
|
|
1092
|
+
_classCallCheck(this, EditBasicInfoComponent);
|
|
1093
|
+
|
|
1094
|
+
return _super.call(this, options);
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
_createClass(EditBasicInfoComponent, [{
|
|
1098
|
+
key: "events",
|
|
1099
|
+
value: function events() {
|
|
1100
|
+
return {
|
|
1101
|
+
submit: function submit(e) {
|
|
1102
|
+
return e.preventDefault();
|
|
1103
|
+
}
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
}, {
|
|
1107
|
+
key: "regions",
|
|
1108
|
+
value: function regions() {
|
|
1109
|
+
return {
|
|
1110
|
+
description: {
|
|
1111
|
+
el: '.description-region',
|
|
1112
|
+
replaceElement: true
|
|
1113
|
+
},
|
|
1114
|
+
ratings: {
|
|
1115
|
+
el: '.ratings-region',
|
|
1116
|
+
replaceElement: true
|
|
1117
|
+
}
|
|
1118
|
+
};
|
|
1119
|
+
}
|
|
1120
|
+
}, {
|
|
1121
|
+
key: "renderDescription",
|
|
1122
|
+
value: function renderDescription() {
|
|
1123
|
+
this.showChildView('description', new _resizing_text_area_ResizingTextAreaComponent__WEBPACK_IMPORTED_MODULE_4__["ResizingTextAreaComponent"]({
|
|
1124
|
+
name: 'description',
|
|
1125
|
+
class: "form-control ".concat(!this.options.editable && _base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_9___default.a.disabled),
|
|
1126
|
+
placeholder: this.options.editable ? _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_5__["LanguageService"].getPhrase(this.lang, 'descriptionPlaceholder') : '',
|
|
1127
|
+
id: 'edit-description',
|
|
1128
|
+
disabled: !this.options.editable
|
|
1129
|
+
}));
|
|
1130
|
+
}
|
|
1131
|
+
}, {
|
|
1132
|
+
key: "renderRatings",
|
|
1133
|
+
value: function renderRatings() {
|
|
1134
|
+
this.showChildView('ratings', new _select_rating_SelectRatingComponent__WEBPACK_IMPORTED_MODULE_3__["SelectRatingComponent"]({
|
|
1135
|
+
model: this.model.rating,
|
|
1136
|
+
collection: this.options.ratings,
|
|
1137
|
+
parentChannelName: this.options.channelName,
|
|
1138
|
+
editable: this.options.editable,
|
|
1139
|
+
videoId: this.model.get('id')
|
|
1140
|
+
}));
|
|
1141
|
+
}
|
|
1142
|
+
}, {
|
|
1143
|
+
key: "viewOptions",
|
|
1144
|
+
value: function viewOptions() {
|
|
1145
|
+
return {
|
|
1146
|
+
styles: _base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_9___default.a,
|
|
1147
|
+
requiredFields: this.options.requiredFields,
|
|
1148
|
+
videoTitlePlaceholder: this.options.editable ? _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_5__["LanguageService"].getPhrase(this.lang, 'titlePlaceholder') : '',
|
|
1149
|
+
editable: this.options.editable,
|
|
1150
|
+
publisherArchiveSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["cvSvgLibrary"].PublisherArchive),
|
|
1151
|
+
showPublisherVideoDetails: this.options.showPublisherVideoDetails,
|
|
1152
|
+
showingSaveButton: this.options.showingSaveButton
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
}, {
|
|
1156
|
+
key: "onRender",
|
|
1157
|
+
value: function onRender() {
|
|
1158
|
+
this.renderDescription();
|
|
1159
|
+
this.renderRatings();
|
|
1160
|
+
this.stickit();
|
|
1161
|
+
backbone__WEBPACK_IMPORTED_MODULE_0__["Validation"].bind(this);
|
|
1162
|
+
}
|
|
1163
|
+
}, {
|
|
1164
|
+
key: "onDestroy",
|
|
1165
|
+
value: function onDestroy() {
|
|
1166
|
+
this.unstickit();
|
|
1167
|
+
backbone__WEBPACK_IMPORTED_MODULE_0__["Validation"].unbind(this);
|
|
1168
|
+
}
|
|
1169
|
+
}, {
|
|
1170
|
+
key: "name",
|
|
1171
|
+
get: function get() {
|
|
1172
|
+
return 'EditBasicInfoComponent';
|
|
1173
|
+
}
|
|
1174
|
+
}, {
|
|
1175
|
+
key: "tagName",
|
|
1176
|
+
get: function get() {
|
|
1177
|
+
return 'form';
|
|
1178
|
+
}
|
|
1179
|
+
}, {
|
|
1180
|
+
key: "template",
|
|
1181
|
+
get: function get() {
|
|
1182
|
+
return _EditBasicInfo_hbs__WEBPACK_IMPORTED_MODULE_8___default.a;
|
|
1183
|
+
}
|
|
1184
|
+
}, {
|
|
1185
|
+
key: "lang",
|
|
1186
|
+
get: function get() {
|
|
1187
|
+
return 'shared.editBasicInfo';
|
|
1188
|
+
}
|
|
1189
|
+
}, {
|
|
1190
|
+
key: "channelName",
|
|
1191
|
+
get: function get() {
|
|
1192
|
+
return this.options.channelName;
|
|
1193
|
+
}
|
|
1194
|
+
}, {
|
|
1195
|
+
key: "className",
|
|
1196
|
+
get: function get() {
|
|
1197
|
+
return 'edit-basic-info';
|
|
1198
|
+
}
|
|
1199
|
+
}, {
|
|
1200
|
+
key: "appLinks",
|
|
1201
|
+
get: function get() {
|
|
1202
|
+
return {
|
|
1203
|
+
'.suggest-title': {
|
|
1204
|
+
application: _constants__WEBPACK_IMPORTED_MODULE_6__["AppChannels"].LIBRARY_EDITOR,
|
|
1205
|
+
action: _constants__WEBPACK_IMPORTED_MODULE_6__["Actions"].LibraryEditor.SUGGEST_AN_EDIT,
|
|
1206
|
+
args: [this.model.get('id')],
|
|
1207
|
+
params: {
|
|
1208
|
+
metadata: _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_7__["MetadataType"].VideoTitle
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
'.suggest-description': {
|
|
1212
|
+
application: _constants__WEBPACK_IMPORTED_MODULE_6__["AppChannels"].LIBRARY_EDITOR,
|
|
1213
|
+
action: _constants__WEBPACK_IMPORTED_MODULE_6__["Actions"].LibraryEditor.SUGGEST_AN_EDIT,
|
|
1214
|
+
args: [this.model.get('id')],
|
|
1215
|
+
params: {
|
|
1216
|
+
metadata: _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_7__["MetadataType"].Description
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
'.applink-publisher-video': {
|
|
1220
|
+
application: _constants__WEBPACK_IMPORTED_MODULE_6__["AppChannels"].LIBRARY_EDITOR,
|
|
1221
|
+
action: _constants__WEBPACK_IMPORTED_MODULE_6__["Actions"].LibraryEditor.SHOW_PUBLISHER_VIDEO,
|
|
1222
|
+
args: [this.model.get('id')]
|
|
1223
|
+
}
|
|
1224
|
+
};
|
|
1225
|
+
}
|
|
1226
|
+
}, {
|
|
1227
|
+
key: "bindings",
|
|
1228
|
+
get: function get() {
|
|
1229
|
+
return {
|
|
1230
|
+
'[name=name]': {
|
|
1231
|
+
observe: 'name',
|
|
1232
|
+
setOptions: {
|
|
1233
|
+
validate: true
|
|
1234
|
+
}
|
|
1235
|
+
},
|
|
1236
|
+
'[name=description]': {
|
|
1237
|
+
observe: 'description',
|
|
1238
|
+
setOptions: {
|
|
1239
|
+
validate: true
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
}]);
|
|
1245
|
+
|
|
1246
|
+
return EditBasicInfoComponent;
|
|
1247
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
1248
|
+
|
|
1249
|
+
/***/ }),
|
|
1250
|
+
|
|
1251
|
+
/***/ "./src/shared/components/edit-video/edit-broadcast/EditBroadcast.hbs":
|
|
1252
|
+
/*!***************************************************************************!*\
|
|
1253
|
+
!*** ./src/shared/components/edit-video/edit-broadcast/EditBroadcast.hbs ***!
|
|
1254
|
+
\***************************************************************************/
|
|
1255
|
+
/*! no static exports found */
|
|
1256
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1257
|
+
|
|
1258
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
1259
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
1260
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
1261
|
+
|
|
1262
|
+
return "<span class=\""
|
|
1263
|
+
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))
|
|
1264
|
+
+ "\">- <a class=\"suggest-channel\">"
|
|
1265
|
+
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"suggestEdit",{"name":"lang","hash":{},"data":data}))
|
|
1266
|
+
+ "</a></span>";
|
|
1267
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
1268
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {});
|
|
1269
|
+
|
|
1270
|
+
return "<div class=\"container-fluid\">\r\n <div class=\"row\">\r\n <div class=\"form-group col-6 px-0\">\r\n <div class=\"date-broadcast-region\"></div>\r\n </div>\r\n <div class=\"form-group col-6 pr-0 "
|
|
1271
|
+
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.channel : stack1), depth0))
|
|
1272
|
+
+ "\">\r\n <label for=\"channel-search\">"
|
|
1273
|
+
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias3,"channel",{"name":"lang","hash":{},"data":data}))
|
|
1274
|
+
+ "</label>\r\n "
|
|
1275
|
+
+ ((stack1 = helpers.unless.call(alias3,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1276
|
+
+ "\r\n <div class=\"channel-search-region\"></div>\r\n </div>\r\n </div>\r\n</div>";
|
|
1277
|
+
},"useData":true});
|
|
1278
|
+
|
|
1279
|
+
/***/ }),
|
|
1280
|
+
|
|
1281
|
+
/***/ "./src/shared/components/edit-video/edit-broadcast/EditBroadcastComponent.ts":
|
|
1282
|
+
/*!***********************************************************************************!*\
|
|
1283
|
+
!*** ./src/shared/components/edit-video/edit-broadcast/EditBroadcastComponent.ts ***!
|
|
1284
|
+
\***********************************************************************************/
|
|
1285
|
+
/*! exports provided: EditBroadcastComponent */
|
|
1286
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1287
|
+
|
|
1288
|
+
"use strict";
|
|
1289
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1290
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditBroadcastComponent", function() { return EditBroadcastComponent; });
|
|
1291
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1292
|
+
/* harmony import */ var _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/apps/search/utils/TypeaheadHelper */ "../../libs/shared/src/apps/search/utils/TypeaheadHelper.ts");
|
|
1293
|
+
/* harmony import */ var _models_Channel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../models/Channel */ "./src/shared/models/Channel.ts");
|
|
1294
|
+
/* harmony import */ var _typeahead_input_SearchTypeaheadComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../typeahead-input/SearchTypeaheadComponent */ "./src/shared/components/typeahead-input/SearchTypeaheadComponent.ts");
|
|
1295
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../constants */ "./src/shared/constants/index.ts");
|
|
1296
|
+
/* harmony import */ var _date_picker_DatePickerComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../date-picker/DatePickerComponent */ "./src/shared/components/date-picker/DatePickerComponent.ts");
|
|
1297
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../enums */ "./src/shared/enums/index.ts");
|
|
1298
|
+
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
1299
|
+
/* harmony import */ var _utils_search_RawSearchHelper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../utils/search/RawSearchHelper */ "./src/shared/utils/search/RawSearchHelper.ts");
|
|
1300
|
+
/* harmony import */ var _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../apps/library-editor/constants */ "./src/apps/library-editor/constants/index.ts");
|
|
1301
|
+
/* harmony import */ var _EditBroadcast_hbs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./EditBroadcast.hbs */ "./src/shared/components/edit-video/edit-broadcast/EditBroadcast.hbs");
|
|
1302
|
+
/* harmony import */ var _EditBroadcast_hbs__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_EditBroadcast_hbs__WEBPACK_IMPORTED_MODULE_10__);
|
|
1303
|
+
/* harmony import */ var _base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../base/edit-video-info.scss */ "./src/shared/components/edit-video/base/edit-video-info.scss");
|
|
1304
|
+
/* harmony import */ var _base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_11__);
|
|
1305
|
+
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); }
|
|
1306
|
+
|
|
1307
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1308
|
+
|
|
1309
|
+
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); } }
|
|
1310
|
+
|
|
1311
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1312
|
+
|
|
1313
|
+
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); }
|
|
1314
|
+
|
|
1315
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1316
|
+
|
|
1317
|
+
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); }; }
|
|
1318
|
+
|
|
1319
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1320
|
+
|
|
1321
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1322
|
+
|
|
1323
|
+
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; } }
|
|
1324
|
+
|
|
1325
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
var EditBroadcastComponent = /*#__PURE__*/function (_Core$Component) {
|
|
1340
|
+
_inherits(EditBroadcastComponent, _Core$Component);
|
|
1341
|
+
|
|
1342
|
+
var _super = _createSuper(EditBroadcastComponent);
|
|
1343
|
+
|
|
1344
|
+
function EditBroadcastComponent(options) {
|
|
1345
|
+
_classCallCheck(this, EditBroadcastComponent);
|
|
1346
|
+
|
|
1347
|
+
return _super.call(this, options);
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
_createClass(EditBroadcastComponent, [{
|
|
1351
|
+
key: "regions",
|
|
1352
|
+
value: function regions() {
|
|
1353
|
+
return {
|
|
1354
|
+
dateBroadcast: {
|
|
1355
|
+
el: '.date-broadcast-region',
|
|
1356
|
+
replaceElement: true
|
|
1357
|
+
},
|
|
1358
|
+
channelSearch: {
|
|
1359
|
+
el: '.channel-search-region',
|
|
1360
|
+
replaceElement: true
|
|
1361
|
+
}
|
|
1362
|
+
};
|
|
1363
|
+
}
|
|
1364
|
+
}, {
|
|
1365
|
+
key: "buildTypeaheadConfig",
|
|
1366
|
+
value: function buildTypeaheadConfig() {
|
|
1367
|
+
return {
|
|
1368
|
+
name: _constants__WEBPACK_IMPORTED_MODULE_4__["SearchQueryType"].ChannelRaw,
|
|
1369
|
+
typeaheadConfig: _utils_search_RawSearchHelper__WEBPACK_IMPORTED_MODULE_8__["RawSearchHelper"].getTypeaheadConfig(),
|
|
1370
|
+
bloodhoundConfig: _utils_search_RawSearchHelper__WEBPACK_IMPORTED_MODULE_8__["RawSearchHelper"].getBloodhoundConfig()
|
|
1371
|
+
};
|
|
1372
|
+
}
|
|
1373
|
+
}, {
|
|
1374
|
+
key: "renderBroadcastDate",
|
|
1375
|
+
value: function renderBroadcastDate() {
|
|
1376
|
+
this.showChildView('dateBroadcast', new _date_picker_DatePickerComponent__WEBPACK_IMPORTED_MODULE_5__["DatePickerComponent"]({
|
|
1377
|
+
model: this.model,
|
|
1378
|
+
label: _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_7__["LanguageService"].getPhrase(this.lang, 'broadcastDate'),
|
|
1379
|
+
modelAttr: 'dateBroadcast',
|
|
1380
|
+
displayedTimeFormat: _enums__WEBPACK_IMPORTED_MODULE_6__["TimeType"].FULL_YEAR,
|
|
1381
|
+
placeholderText: this.options.editable ? _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_7__["LanguageService"].getPhrase(this.lang, 'selectBroadcastDate') : '',
|
|
1382
|
+
allowClearDate: this.options.editable,
|
|
1383
|
+
editable: this.options.editable
|
|
1384
|
+
}));
|
|
1385
|
+
}
|
|
1386
|
+
}, {
|
|
1387
|
+
key: "renderChannelTypeahead",
|
|
1388
|
+
value: function renderChannelTypeahead() {
|
|
1389
|
+
if (!this.model.get('channel')) this.model.set('channel', new _models_Channel__WEBPACK_IMPORTED_MODULE_2__["Channel"]());
|
|
1390
|
+
this.showChildView('channelSearch', new _typeahead_input_SearchTypeaheadComponent__WEBPACK_IMPORTED_MODULE_3__["SearchTypeaheadComponent"]({
|
|
1391
|
+
model: this.model.get('channel'),
|
|
1392
|
+
parentChannelName: this.options.channelName,
|
|
1393
|
+
inputId: 'channel-search',
|
|
1394
|
+
selectEvent: 'select:channel',
|
|
1395
|
+
placeholderText: this.options.editable ? _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_7__["LanguageService"].getPhrase(this.lang, 'searchChannels') : '',
|
|
1396
|
+
typeaheadConfigs: this.buildTypeaheadConfig(),
|
|
1397
|
+
callbacks: {
|
|
1398
|
+
onInput: _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_1__["TypeaheadHelper"].emitEventOnInput(this.options.channelName, _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_9__["LibraryEditorActions"].DetectInput, 'channel'),
|
|
1399
|
+
onBlur: _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_1__["TypeaheadHelper"].resetAssociationOnBlur(this.model.get('channel').toJSON())
|
|
1400
|
+
},
|
|
1401
|
+
editable: this.options.editable,
|
|
1402
|
+
removeEvent: 'remove:channel'
|
|
1403
|
+
}));
|
|
1404
|
+
}
|
|
1405
|
+
}, {
|
|
1406
|
+
key: "viewOptions",
|
|
1407
|
+
value: function viewOptions() {
|
|
1408
|
+
return {
|
|
1409
|
+
styles: _base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_11___default.a,
|
|
1410
|
+
editable: this.options.editable
|
|
1411
|
+
};
|
|
1412
|
+
}
|
|
1413
|
+
}, {
|
|
1414
|
+
key: "onRender",
|
|
1415
|
+
value: function onRender() {
|
|
1416
|
+
this.renderBroadcastDate();
|
|
1417
|
+
this.renderChannelTypeahead();
|
|
1418
|
+
}
|
|
1419
|
+
}, {
|
|
1420
|
+
key: "name",
|
|
1421
|
+
get: function get() {
|
|
1422
|
+
return 'EditBroadcastComponent';
|
|
1423
|
+
}
|
|
1424
|
+
}, {
|
|
1425
|
+
key: "template",
|
|
1426
|
+
get: function get() {
|
|
1427
|
+
return _EditBroadcast_hbs__WEBPACK_IMPORTED_MODULE_10___default.a;
|
|
1428
|
+
}
|
|
1429
|
+
}, {
|
|
1430
|
+
key: "lang",
|
|
1431
|
+
get: function get() {
|
|
1432
|
+
return 'shared.editBroadcast';
|
|
1433
|
+
}
|
|
1434
|
+
}, {
|
|
1435
|
+
key: "className",
|
|
1436
|
+
get: function get() {
|
|
1437
|
+
return 'edit-broadcast';
|
|
1438
|
+
}
|
|
1439
|
+
}, {
|
|
1440
|
+
key: "appLinks",
|
|
1441
|
+
get: function get() {
|
|
1442
|
+
return {
|
|
1443
|
+
'.suggest-channel': {
|
|
1444
|
+
application: _constants__WEBPACK_IMPORTED_MODULE_4__["AppChannels"].LIBRARY_EDITOR,
|
|
1445
|
+
action: _constants__WEBPACK_IMPORTED_MODULE_4__["Actions"].LibraryEditor.SUGGEST_AN_EDIT,
|
|
1446
|
+
args: [this.model.get('id')],
|
|
1447
|
+
params: {
|
|
1448
|
+
metadata: _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_9__["MetadataType"].Channel
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
}]);
|
|
1454
|
+
|
|
1455
|
+
return EditBroadcastComponent;
|
|
1456
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
1457
|
+
|
|
1458
|
+
/***/ }),
|
|
1459
|
+
|
|
1460
|
+
/***/ "./src/shared/components/edit-video/edit-broadcast/ToggleBroadcast.hbs":
|
|
1461
|
+
/*!*****************************************************************************!*\
|
|
1462
|
+
!*** ./src/shared/components/edit-video/edit-broadcast/ToggleBroadcast.hbs ***!
|
|
1463
|
+
\*****************************************************************************/
|
|
1464
|
+
/*! no static exports found */
|
|
1465
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1466
|
+
|
|
1467
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
1468
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
1469
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});
|
|
1470
|
+
|
|
1471
|
+
return "<div class=\"form-group\"> \r\n <div class=\"custom-control custom-checkbox\">\r\n <input\r\n name=\"toggleBroadcast\"\r\n type=\"checkbox\"\r\n class=\"custom-control-input "
|
|
1472
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1473
|
+
+ "\"\r\n id=\"toggle-broadcast\"\r\n "
|
|
1474
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1475
|
+
+ "\r\n >\r\n <label class=\"custom-control-label\" for=\"toggle-broadcast\">"
|
|
1476
|
+
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias2,"tv",{"name":"lang","hash":{},"data":data}))
|
|
1477
|
+
+ "</label>\r\n </div>\r\n</div>\r\n";
|
|
1478
|
+
},"2":function(container,depth0,helpers,partials,data) {
|
|
1479
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
1480
|
+
|
|
1481
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.disabled : stack1), depth0));
|
|
1482
|
+
},"4":function(container,depth0,helpers,partials,data) {
|
|
1483
|
+
return "disabled";
|
|
1484
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
1485
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
1486
|
+
|
|
1487
|
+
return ((stack1 = helpers.unless.call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hideToggle : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1488
|
+
+ "<div class=\"broadcast-region\"></div>\r\n";
|
|
1489
|
+
},"useData":true});
|
|
1490
|
+
|
|
1491
|
+
/***/ }),
|
|
1492
|
+
|
|
1493
|
+
/***/ "./src/shared/components/edit-video/edit-broadcast/ToggleBroadcastComponent.ts":
|
|
1494
|
+
/*!*************************************************************************************!*\
|
|
1495
|
+
!*** ./src/shared/components/edit-video/edit-broadcast/ToggleBroadcastComponent.ts ***!
|
|
1496
|
+
\*************************************************************************************/
|
|
1497
|
+
/*! exports provided: ToggleBroadcastComponent */
|
|
1498
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1499
|
+
|
|
1500
|
+
"use strict";
|
|
1501
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1502
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToggleBroadcastComponent", function() { return ToggleBroadcastComponent; });
|
|
1503
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1504
|
+
/* harmony import */ var _behaviors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../behaviors */ "./src/shared/behaviors/index.ts");
|
|
1505
|
+
/* harmony import */ var _EditBroadcastComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EditBroadcastComponent */ "./src/shared/components/edit-video/edit-broadcast/EditBroadcastComponent.ts");
|
|
1506
|
+
/* harmony import */ var _ToggleBroadcast_hbs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ToggleBroadcast.hbs */ "./src/shared/components/edit-video/edit-broadcast/ToggleBroadcast.hbs");
|
|
1507
|
+
/* harmony import */ var _ToggleBroadcast_hbs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_ToggleBroadcast_hbs__WEBPACK_IMPORTED_MODULE_3__);
|
|
1508
|
+
/* harmony import */ var _toggle_broadcast_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./toggle-broadcast.scss */ "./src/shared/components/edit-video/edit-broadcast/toggle-broadcast.scss");
|
|
1509
|
+
/* harmony import */ var _toggle_broadcast_scss__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_toggle_broadcast_scss__WEBPACK_IMPORTED_MODULE_4__);
|
|
1510
|
+
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); }
|
|
1511
|
+
|
|
1512
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1513
|
+
|
|
1514
|
+
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); } }
|
|
1515
|
+
|
|
1516
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1517
|
+
|
|
1518
|
+
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); }
|
|
1519
|
+
|
|
1520
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1521
|
+
|
|
1522
|
+
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); }; }
|
|
1523
|
+
|
|
1524
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1525
|
+
|
|
1526
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1527
|
+
|
|
1528
|
+
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; } }
|
|
1529
|
+
|
|
1530
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
|
|
1537
|
+
var ToggleBroadcastComponent = /*#__PURE__*/function (_Core$Component) {
|
|
1538
|
+
_inherits(ToggleBroadcastComponent, _Core$Component);
|
|
1539
|
+
|
|
1540
|
+
var _super = _createSuper(ToggleBroadcastComponent);
|
|
1541
|
+
|
|
1542
|
+
function ToggleBroadcastComponent(options) {
|
|
1543
|
+
_classCallCheck(this, ToggleBroadcastComponent);
|
|
1544
|
+
|
|
1545
|
+
return _super.call(this, options);
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
_createClass(ToggleBroadcastComponent, [{
|
|
1549
|
+
key: "regions",
|
|
1550
|
+
value: function regions() {
|
|
1551
|
+
return {
|
|
1552
|
+
broadcast: {
|
|
1553
|
+
el: '.broadcast-region',
|
|
1554
|
+
replaceElement: true
|
|
1555
|
+
}
|
|
1556
|
+
};
|
|
1557
|
+
}
|
|
1558
|
+
}, {
|
|
1559
|
+
key: "initialize",
|
|
1560
|
+
value: function initialize() {
|
|
1561
|
+
this.listenTo(this.model, 'change:hasBroadcast', this.render);
|
|
1562
|
+
this.initBroadcast();
|
|
1563
|
+
}
|
|
1564
|
+
}, {
|
|
1565
|
+
key: "initBroadcast",
|
|
1566
|
+
value: function initBroadcast() {
|
|
1567
|
+
// Set broadcast state if we are have a broadcast date or channel
|
|
1568
|
+
var channel = this.model.get('channel');
|
|
1569
|
+
var hasBroadcast = this.model.get('dateBroadcast') || channel && channel.get('id'); // Must be a bool to set checkbox
|
|
1570
|
+
|
|
1571
|
+
this.model.set('hasBroadcast', !!hasBroadcast, {
|
|
1572
|
+
silent: true
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
}, {
|
|
1576
|
+
key: "renderEditBroadcast",
|
|
1577
|
+
value: function renderEditBroadcast() {
|
|
1578
|
+
if (!this.model.get('hasBroadcast') && !this.options.hideToggle) {
|
|
1579
|
+
this.getRegion('broadcast').empty();
|
|
1580
|
+
return;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
this.showChildView('broadcast', new _EditBroadcastComponent__WEBPACK_IMPORTED_MODULE_2__["EditBroadcastComponent"]({
|
|
1584
|
+
model: this.model,
|
|
1585
|
+
channelName: this.options.channelName,
|
|
1586
|
+
editable: this.options.editable
|
|
1587
|
+
}));
|
|
1588
|
+
}
|
|
1589
|
+
}, {
|
|
1590
|
+
key: "viewOptions",
|
|
1591
|
+
value: function viewOptions() {
|
|
1592
|
+
return Object.assign({
|
|
1593
|
+
styles: _toggle_broadcast_scss__WEBPACK_IMPORTED_MODULE_4___default.a
|
|
1594
|
+
}, this.options);
|
|
1595
|
+
}
|
|
1596
|
+
}, {
|
|
1597
|
+
key: "onRender",
|
|
1598
|
+
value: function onRender() {
|
|
1599
|
+
this.renderEditBroadcast();
|
|
1600
|
+
}
|
|
1601
|
+
}, {
|
|
1602
|
+
key: "name",
|
|
1603
|
+
get: function get() {
|
|
1604
|
+
return 'ToggleBroadcastComponent';
|
|
1605
|
+
}
|
|
1606
|
+
}, {
|
|
1607
|
+
key: "template",
|
|
1608
|
+
get: function get() {
|
|
1609
|
+
return _ToggleBroadcast_hbs__WEBPACK_IMPORTED_MODULE_3___default.a;
|
|
1610
|
+
}
|
|
1611
|
+
}, {
|
|
1612
|
+
key: "lang",
|
|
1613
|
+
get: function get() {
|
|
1614
|
+
return 'shared.toggleBroadcast';
|
|
1615
|
+
}
|
|
1616
|
+
}, {
|
|
1617
|
+
key: "className",
|
|
1618
|
+
get: function get() {
|
|
1619
|
+
return 'toggle-broadcast';
|
|
1620
|
+
}
|
|
1621
|
+
}, {
|
|
1622
|
+
key: "behaviors",
|
|
1623
|
+
get: function get() {
|
|
1624
|
+
if (this.options.hideToggle) return [];
|
|
1625
|
+
return [{
|
|
1626
|
+
behaviorClass: _behaviors__WEBPACK_IMPORTED_MODULE_1__["BackboneValidationBehavior"]
|
|
1627
|
+
}, {
|
|
1628
|
+
behaviorClass: _behaviors__WEBPACK_IMPORTED_MODULE_1__["StickitBehavior"]
|
|
1629
|
+
}];
|
|
1630
|
+
}
|
|
1631
|
+
}, {
|
|
1632
|
+
key: "bindings",
|
|
1633
|
+
get: function get() {
|
|
1634
|
+
return {
|
|
1635
|
+
'[name=toggleBroadcast]': {
|
|
1636
|
+
observe: 'hasBroadcast'
|
|
1637
|
+
}
|
|
1638
|
+
};
|
|
1639
|
+
}
|
|
1640
|
+
}]);
|
|
1641
|
+
|
|
1642
|
+
return ToggleBroadcastComponent;
|
|
1643
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
1644
|
+
|
|
1645
|
+
/***/ }),
|
|
1646
|
+
|
|
1647
|
+
/***/ "./src/shared/components/edit-video/edit-broadcast/toggle-broadcast.scss":
|
|
1648
|
+
/*!*******************************************************************************!*\
|
|
1649
|
+
!*** ./src/shared/components/edit-video/edit-broadcast/toggle-broadcast.scss ***!
|
|
1650
|
+
\*******************************************************************************/
|
|
1651
|
+
/*! no static exports found */
|
|
1652
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1653
|
+
|
|
1654
|
+
// extracted by mini-css-extract-plugin
|
|
1655
|
+
module.exports = {"disabled":"cv--disabled--3TIct"};
|
|
1656
|
+
|
|
1657
|
+
/***/ }),
|
|
1658
|
+
|
|
1659
|
+
/***/ "./src/shared/components/edit-video/edit-production-info/EditProductionInfo.hbs":
|
|
1660
|
+
/*!**************************************************************************************!*\
|
|
1661
|
+
!*** ./src/shared/components/edit-video/edit-production-info/EditProductionInfo.hbs ***!
|
|
1662
|
+
\**************************************************************************************/
|
|
1663
|
+
/*! no static exports found */
|
|
1664
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1665
|
+
|
|
1666
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
1667
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
1668
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
1669
|
+
|
|
1670
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.productionYear : stack1), depth0));
|
|
1671
|
+
},"3":function(container,depth0,helpers,partials,data) {
|
|
1672
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
1673
|
+
|
|
1674
|
+
return "<span class=\""
|
|
1675
|
+
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))
|
|
1676
|
+
+ "\">- <a class=\"suggest-production-year\">"
|
|
1677
|
+
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"suggestEdit",{"name":"lang","hash":{},"data":data}))
|
|
1678
|
+
+ "</a></span>";
|
|
1679
|
+
},"5":function(container,depth0,helpers,partials,data) {
|
|
1680
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
1681
|
+
|
|
1682
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.disabled : stack1), depth0));
|
|
1683
|
+
},"7":function(container,depth0,helpers,partials,data) {
|
|
1684
|
+
return "disabled";
|
|
1685
|
+
},"9":function(container,depth0,helpers,partials,data) {
|
|
1686
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
1687
|
+
|
|
1688
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.productionCompanies : stack1), depth0));
|
|
1689
|
+
},"11":function(container,depth0,helpers,partials,data) {
|
|
1690
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
1691
|
+
|
|
1692
|
+
return "<span class=\""
|
|
1693
|
+
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))
|
|
1694
|
+
+ "\">- <a class=\"suggest-production-companies\">"
|
|
1695
|
+
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"suggestEdit",{"name":"lang","hash":{},"data":data}))
|
|
1696
|
+
+ "</a></span>";
|
|
1697
|
+
},"13":function(container,depth0,helpers,partials,data) {
|
|
1698
|
+
var alias1=container.propertyIsEnumerable;
|
|
1699
|
+
|
|
1700
|
+
return " <p class=\"info-link pb-0 new-production-company\">"
|
|
1701
|
+
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"newProductionCompany",{"name":"lang","hash":{},"data":data}))
|
|
1702
|
+
+ "</p>\r\n";
|
|
1703
|
+
},"15":function(container,depth0,helpers,partials,data) {
|
|
1704
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
1705
|
+
|
|
1706
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.distributors : stack1), depth0));
|
|
1707
|
+
},"17":function(container,depth0,helpers,partials,data) {
|
|
1708
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
1709
|
+
|
|
1710
|
+
return "<span class=\""
|
|
1711
|
+
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))
|
|
1712
|
+
+ "\">- <a class=\"suggest-distributors\">"
|
|
1713
|
+
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"suggestEdit",{"name":"lang","hash":{},"data":data}))
|
|
1714
|
+
+ "</a></span>";
|
|
1715
|
+
},"19":function(container,depth0,helpers,partials,data) {
|
|
1716
|
+
var alias1=container.propertyIsEnumerable;
|
|
1717
|
+
|
|
1718
|
+
return " <p class=\"info-link pb-0 new-distributor\">"
|
|
1719
|
+
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"newDistributor",{"name":"lang","hash":{},"data":data}))
|
|
1720
|
+
+ "</p>\r\n";
|
|
1721
|
+
},"21":function(container,depth0,helpers,partials,data) {
|
|
1722
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
1723
|
+
|
|
1724
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.producers : stack1), depth0));
|
|
1725
|
+
},"23":function(container,depth0,helpers,partials,data) {
|
|
1726
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
1727
|
+
|
|
1728
|
+
return "<span class=\""
|
|
1729
|
+
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))
|
|
1730
|
+
+ "\">- <a class=\"suggest-producers\">"
|
|
1731
|
+
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"suggestEdit",{"name":"lang","hash":{},"data":data}))
|
|
1732
|
+
+ "</a></span>";
|
|
1733
|
+
},"25":function(container,depth0,helpers,partials,data) {
|
|
1734
|
+
var alias1=container.propertyIsEnumerable;
|
|
1735
|
+
|
|
1736
|
+
return " <p class=\"info-link pb-0 new-producer\">"
|
|
1737
|
+
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"newProducer",{"name":"lang","hash":{},"data":data}))
|
|
1738
|
+
+ "</p>\r\n";
|
|
1739
|
+
},"27":function(container,depth0,helpers,partials,data) {
|
|
1740
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
1741
|
+
|
|
1742
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.directors : stack1), depth0));
|
|
1743
|
+
},"29":function(container,depth0,helpers,partials,data) {
|
|
1744
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;
|
|
1745
|
+
|
|
1746
|
+
return "<span class=\""
|
|
1747
|
+
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.suggestEdit : stack1), depth0))
|
|
1748
|
+
+ "\">- <a class=\"suggest-directors\">"
|
|
1749
|
+
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"suggestEdit",{"name":"lang","hash":{},"data":data}))
|
|
1750
|
+
+ "</a></span>";
|
|
1751
|
+
},"31":function(container,depth0,helpers,partials,data) {
|
|
1752
|
+
var alias1=container.propertyIsEnumerable;
|
|
1753
|
+
|
|
1754
|
+
return " <p class=\"info-link pb-0 new-director\">"
|
|
1755
|
+
+ container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"newDirector",{"name":"lang","hash":{},"data":data}))
|
|
1756
|
+
+ "</p>\r\n";
|
|
1757
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
1758
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression, alias5=container.lambda;
|
|
1759
|
+
|
|
1760
|
+
return "<h5>"
|
|
1761
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"heading",{"name":"lang","hash":{},"data":data}))
|
|
1762
|
+
+ "</h5>\r\n\r\n<div class=\"container-fluid p-0\">\r\n <div class=\"row\">\r\n <div class=\"form-group col-4 pr-0 "
|
|
1763
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1764
|
+
+ "\">\r\n <label for=\"edit-production-year\">"
|
|
1765
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"productionYear",{"name":"lang","hash":{},"data":data}))
|
|
1766
|
+
+ "</label>\r\n "
|
|
1767
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1768
|
+
+ "\r\n <input\r\n name=\"productionYear\"\r\n type=\"number\"\r\n class=\"form-control "
|
|
1769
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1770
|
+
+ "\"\r\n id=\"edit-production-year\"\r\n placeholder=\""
|
|
1771
|
+
+ alias4(alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.productionYearPlaceholderText : stack1), depth0))
|
|
1772
|
+
+ "\"\r\n autocomplete=\"off\"\r\n "
|
|
1773
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1774
|
+
+ "\r\n >\r\n <div class=\"form-feedback\"></div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row\">\r\n <div class=\"form-group col-6 "
|
|
1775
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1776
|
+
+ "\">\r\n <label for=\"production-company-search\">\r\n "
|
|
1777
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"productionCompanies",{"name":"lang","hash":{},"data":data}))
|
|
1778
|
+
+ "\r\n <span class=\""
|
|
1779
|
+
+ alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.infoSvgContainer : stack1), depth0))
|
|
1780
|
+
+ " info-tooltip\" \r\n title=\""
|
|
1781
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"productionCompanyInfo",{"name":"lang","hash":{},"data":data}))
|
|
1782
|
+
+ "\"\r\n >"
|
|
1783
|
+
+ ((stack1 = alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.infoSvg : stack1), depth0)) != null ? stack1 : "")
|
|
1784
|
+
+ "</span>\r\n </label>\r\n "
|
|
1785
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(11, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1786
|
+
+ "\r\n <div class=\"production-company-region\"></div>\r\n"
|
|
1787
|
+
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.allowAdditionalProductionCompany : stack1),{"name":"if","hash":{},"fn":container.program(13, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1788
|
+
+ " </div>\r\n\r\n <div class=\"form-group col-6 pr-0 "
|
|
1789
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(15, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1790
|
+
+ "\">\r\n <label for=\"distributor-search\">\r\n "
|
|
1791
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"distributors",{"name":"lang","hash":{},"data":data}))
|
|
1792
|
+
+ "\r\n <span class=\""
|
|
1793
|
+
+ alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.infoSvgContainer : stack1), depth0))
|
|
1794
|
+
+ " info-tooltip\"\r\n title=\""
|
|
1795
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"distributorInfo",{"name":"lang","hash":{},"data":data}))
|
|
1796
|
+
+ "\"\r\n >"
|
|
1797
|
+
+ ((stack1 = alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.infoSvg : stack1), depth0)) != null ? stack1 : "")
|
|
1798
|
+
+ "</span>\r\n </label>\r\n "
|
|
1799
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(17, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1800
|
+
+ "\r\n <div class=\"distributor-region\"></div>\r\n"
|
|
1801
|
+
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.allowAdditionalDistributor : stack1),{"name":"if","hash":{},"fn":container.program(19, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1802
|
+
+ " </div>\r\n </div>\r\n\r\n <div class=\"row\">\r\n <div class=\"form-group col-6 "
|
|
1803
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(21, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1804
|
+
+ "\">\r\n <label for=\"producer-search\">\r\n "
|
|
1805
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"producers",{"name":"lang","hash":{},"data":data}))
|
|
1806
|
+
+ "\r\n <span class=\""
|
|
1807
|
+
+ alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.infoSvgContainer : stack1), depth0))
|
|
1808
|
+
+ " info-tooltip\"\r\n title=\""
|
|
1809
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"producerInfo",{"name":"lang","hash":{},"data":data}))
|
|
1810
|
+
+ "\"\r\n >"
|
|
1811
|
+
+ ((stack1 = alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.infoSvg : stack1), depth0)) != null ? stack1 : "")
|
|
1812
|
+
+ "</span>\r\n </label>\r\n "
|
|
1813
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(23, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1814
|
+
+ "\r\n <div class=\"producers-region\"></div>\r\n"
|
|
1815
|
+
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.allowAdditionalProducer : stack1),{"name":"if","hash":{},"fn":container.program(25, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1816
|
+
+ " </div>\r\n\r\n <div class=\"form-group col-6 pr-0 "
|
|
1817
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(27, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1818
|
+
+ "\">\r\n <label for=\"director-search\">\r\n "
|
|
1819
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"directors",{"name":"lang","hash":{},"data":data}))
|
|
1820
|
+
+ "\r\n <span class=\""
|
|
1821
|
+
+ alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.infoSvgContainer : stack1), depth0))
|
|
1822
|
+
+ " info-tooltip\"\r\n title=\""
|
|
1823
|
+
+ alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"directorInfo",{"name":"lang","hash":{},"data":data}))
|
|
1824
|
+
+ "\"\r\n >"
|
|
1825
|
+
+ ((stack1 = alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.infoSvg : stack1), depth0)) != null ? stack1 : "")
|
|
1826
|
+
+ "</span>\r\n </label>\r\n "
|
|
1827
|
+
+ ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{"name":"unless","hash":{},"fn":container.program(29, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1828
|
+
+ "\r\n <div class=\"directors-region\"></div>\r\n"
|
|
1829
|
+
+ ((stack1 = helpers["if"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.allowAdditionalDirector : stack1),{"name":"if","hash":{},"fn":container.program(31, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
1830
|
+
+ " </div>\r\n </div>\r\n</div>";
|
|
1831
|
+
},"useData":true});
|
|
1832
|
+
|
|
1833
|
+
/***/ }),
|
|
1834
|
+
|
|
1835
|
+
/***/ "./src/shared/components/edit-video/edit-production-info/EditProductionInfoComponent.ts":
|
|
1836
|
+
/*!**********************************************************************************************!*\
|
|
1837
|
+
!*** ./src/shared/components/edit-video/edit-production-info/EditProductionInfoComponent.ts ***!
|
|
1838
|
+
\**********************************************************************************************/
|
|
1839
|
+
/*! exports provided: EditProductionInfoComponent */
|
|
1840
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1841
|
+
|
|
1842
|
+
"use strict";
|
|
1843
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1844
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditProductionInfoComponent", function() { return EditProductionInfoComponent; });
|
|
1845
|
+
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
1846
|
+
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
1847
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! backbone */ "backbone");
|
|
1848
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);
|
|
1849
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
1850
|
+
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
1851
|
+
/* harmony import */ var _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/apps/search/utils/TypeaheadHelper */ "../../libs/shared/src/apps/search/utils/TypeaheadHelper.ts");
|
|
1852
|
+
/* harmony import */ var _behaviors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../behaviors */ "./src/shared/behaviors/index.ts");
|
|
1853
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../constants */ "./src/shared/constants/index.ts");
|
|
1854
|
+
/* harmony import */ var _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
|
|
1855
|
+
/* harmony import */ var _typeahead_list_TypeaheadListComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../typeahead-list/TypeaheadListComponent */ "./src/shared/components/typeahead-list/TypeaheadListComponent.ts");
|
|
1856
|
+
/* harmony import */ var _utils_search_RawSearchHelper__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../utils/search/RawSearchHelper */ "./src/shared/utils/search/RawSearchHelper.ts");
|
|
1857
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../enums */ "./src/shared/enums/index.ts");
|
|
1858
|
+
/* harmony import */ var _collections_DistributorCollection__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../collections/DistributorCollection */ "./src/shared/collections/DistributorCollection.ts");
|
|
1859
|
+
/* harmony import */ var _collections_ProducerCollection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../collections/ProducerCollection */ "./src/shared/collections/ProducerCollection.ts");
|
|
1860
|
+
/* harmony import */ var _collections_ProductionCompanyCollection__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../collections/ProductionCompanyCollection */ "./src/shared/collections/ProductionCompanyCollection.ts");
|
|
1861
|
+
/* harmony import */ var _collections_DirectorCollection__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../collections/DirectorCollection */ "./src/shared/collections/DirectorCollection.ts");
|
|
1862
|
+
/* harmony import */ var _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../apps/library-editor/constants */ "./src/apps/library-editor/constants/index.ts");
|
|
1863
|
+
/* harmony import */ var _EditProductionInfo_hbs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./EditProductionInfo.hbs */ "./src/shared/components/edit-video/edit-production-info/EditProductionInfo.hbs");
|
|
1864
|
+
/* harmony import */ var _EditProductionInfo_hbs__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_EditProductionInfo_hbs__WEBPACK_IMPORTED_MODULE_16__);
|
|
1865
|
+
/* harmony import */ var _base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../base/edit-video-info.scss */ "./src/shared/components/edit-video/base/edit-video-info.scss");
|
|
1866
|
+
/* harmony import */ var _base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_17__);
|
|
1867
|
+
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); }
|
|
1868
|
+
|
|
1869
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1870
|
+
|
|
1871
|
+
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); } }
|
|
1872
|
+
|
|
1873
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
1874
|
+
|
|
1875
|
+
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); }
|
|
1876
|
+
|
|
1877
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1878
|
+
|
|
1879
|
+
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); }; }
|
|
1880
|
+
|
|
1881
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
1882
|
+
|
|
1883
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
1884
|
+
|
|
1885
|
+
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; } }
|
|
1886
|
+
|
|
1887
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1888
|
+
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
|
|
1898
|
+
|
|
1899
|
+
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
var MAX_PERSON_OBJECTS = 5;
|
|
1908
|
+
var EditProductionInfoComponent = /*#__PURE__*/function (_Core$Component) {
|
|
1909
|
+
_inherits(EditProductionInfoComponent, _Core$Component);
|
|
1910
|
+
|
|
1911
|
+
var _super = _createSuper(EditProductionInfoComponent);
|
|
1912
|
+
|
|
1913
|
+
function EditProductionInfoComponent(options) {
|
|
1914
|
+
_classCallCheck(this, EditProductionInfoComponent);
|
|
1915
|
+
|
|
1916
|
+
return _super.call(this, options);
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
_createClass(EditProductionInfoComponent, [{
|
|
1920
|
+
key: "initialize",
|
|
1921
|
+
value: function initialize() {
|
|
1922
|
+
var channelName = this.options.channelName;
|
|
1923
|
+
this.listenTo(channelName, 'select:distributor', this.onSelectDistributor);
|
|
1924
|
+
this.listenTo(channelName, 'select:production:company', this.onSelectProductionCompany);
|
|
1925
|
+
this.listenTo(channelName, 'select:director', this.onSelectDirector);
|
|
1926
|
+
this.listenTo(channelName, 'select:producer', this.onSelectProducer);
|
|
1927
|
+
this.listenTo(channelName, 'remove:distributor', this.onRemoveDistributor);
|
|
1928
|
+
this.listenTo(channelName, 'remove:production:company', this.onRemoveProductionCompany);
|
|
1929
|
+
this.listenTo(channelName, 'remove:director', this.onRemoveDirector);
|
|
1930
|
+
this.listenTo(channelName, 'remove:producer', this.onRemoveProducer);
|
|
1931
|
+
}
|
|
1932
|
+
}, {
|
|
1933
|
+
key: "events",
|
|
1934
|
+
value: function events() {
|
|
1935
|
+
return {
|
|
1936
|
+
'submit': function submit(e) {
|
|
1937
|
+
return e.preventDefault();
|
|
1938
|
+
},
|
|
1939
|
+
'click .new-producer': 'onClickAddNewProducer',
|
|
1940
|
+
'click .new-director': 'onClickAddNewDirector',
|
|
1941
|
+
'click .new-distributor': 'onClickAddNewDistributor',
|
|
1942
|
+
'click .new-production-company': 'onClickAddNewProductionCompany'
|
|
1943
|
+
};
|
|
1944
|
+
}
|
|
1945
|
+
}, {
|
|
1946
|
+
key: "regions",
|
|
1947
|
+
value: function regions() {
|
|
1948
|
+
return {
|
|
1949
|
+
distributors: {
|
|
1950
|
+
el: '.distributor-region',
|
|
1951
|
+
replaceElement: true
|
|
1952
|
+
},
|
|
1953
|
+
productionCompanies: {
|
|
1954
|
+
el: '.production-company-region',
|
|
1955
|
+
replaceElement: true
|
|
1956
|
+
},
|
|
1957
|
+
directors: {
|
|
1958
|
+
el: '.directors-region',
|
|
1959
|
+
replaceElement: true
|
|
1960
|
+
},
|
|
1961
|
+
producers: {
|
|
1962
|
+
el: '.producers-region',
|
|
1963
|
+
replaceElement: true
|
|
1964
|
+
}
|
|
1965
|
+
};
|
|
1966
|
+
}
|
|
1967
|
+
}, {
|
|
1968
|
+
key: "onClickAddNewProducer",
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* Click event handlers to expand a citation list
|
|
1972
|
+
*/
|
|
1973
|
+
value: function onClickAddNewProducer() {
|
|
1974
|
+
this.expandPersonList(_enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].Producer);
|
|
1975
|
+
}
|
|
1976
|
+
}, {
|
|
1977
|
+
key: "onClickAddNewDirector",
|
|
1978
|
+
value: function onClickAddNewDirector() {
|
|
1979
|
+
this.expandPersonList(_enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].Director);
|
|
1980
|
+
}
|
|
1981
|
+
}, {
|
|
1982
|
+
key: "onClickAddNewDistributor",
|
|
1983
|
+
value: function onClickAddNewDistributor() {
|
|
1984
|
+
this.expandPersonList(_enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].Distributor);
|
|
1985
|
+
}
|
|
1986
|
+
}, {
|
|
1987
|
+
key: "onClickAddNewProductionCompany",
|
|
1988
|
+
value: function onClickAddNewProductionCompany() {
|
|
1989
|
+
this.expandPersonList(_enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].ProductionCompany);
|
|
1990
|
+
}
|
|
1991
|
+
}, {
|
|
1992
|
+
key: "expandPersonList",
|
|
1993
|
+
value: function expandPersonList(property) {
|
|
1994
|
+
var collection = this.model.get(property);
|
|
1995
|
+
if (collection.length !== MAX_PERSON_OBJECTS) collection.add({});
|
|
1996
|
+
this.render();
|
|
1997
|
+
}
|
|
1998
|
+
/**
|
|
1999
|
+
* Selection event handlers for each citation
|
|
2000
|
+
*/
|
|
2001
|
+
|
|
2002
|
+
}, {
|
|
2003
|
+
key: "onSelectDistributor",
|
|
2004
|
+
value: function onSelectDistributor(model) {
|
|
2005
|
+
this.onSelect(model, _enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].Distributor);
|
|
2006
|
+
}
|
|
2007
|
+
}, {
|
|
2008
|
+
key: "onSelectProductionCompany",
|
|
2009
|
+
value: function onSelectProductionCompany(model) {
|
|
2010
|
+
this.onSelect(model, _enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].ProductionCompany);
|
|
2011
|
+
}
|
|
2012
|
+
}, {
|
|
2013
|
+
key: "onSelectDirector",
|
|
2014
|
+
value: function onSelectDirector(model) {
|
|
2015
|
+
this.onSelect(model, _enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].Director);
|
|
2016
|
+
}
|
|
2017
|
+
}, {
|
|
2018
|
+
key: "onSelectProducer",
|
|
2019
|
+
value: function onSelectProducer(model) {
|
|
2020
|
+
this.onSelect(model, _enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].Producer);
|
|
2021
|
+
}
|
|
2022
|
+
}, {
|
|
2023
|
+
key: "onSelect",
|
|
2024
|
+
value: function onSelect(model, modelType) {
|
|
2025
|
+
backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.options.channelName).trigger("add:".concat(modelType), model);
|
|
2026
|
+
this.render();
|
|
2027
|
+
}
|
|
2028
|
+
/**
|
|
2029
|
+
* Removal event handlers for each citation
|
|
2030
|
+
*/
|
|
2031
|
+
|
|
2032
|
+
}, {
|
|
2033
|
+
key: "onRemoveDistributor",
|
|
2034
|
+
value: function onRemoveDistributor(model) {
|
|
2035
|
+
this.onRemove(model, _enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].Distributor);
|
|
2036
|
+
}
|
|
2037
|
+
}, {
|
|
2038
|
+
key: "onRemoveProductionCompany",
|
|
2039
|
+
value: function onRemoveProductionCompany(model) {
|
|
2040
|
+
this.onRemove(model, _enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].ProductionCompany);
|
|
2041
|
+
}
|
|
2042
|
+
}, {
|
|
2043
|
+
key: "onRemoveDirector",
|
|
2044
|
+
value: function onRemoveDirector(model) {
|
|
2045
|
+
this.onRemove(model, _enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].Director);
|
|
2046
|
+
}
|
|
2047
|
+
}, {
|
|
2048
|
+
key: "onRemoveProducer",
|
|
2049
|
+
value: function onRemoveProducer(model) {
|
|
2050
|
+
this.onRemove(model, _enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].Producer);
|
|
2051
|
+
}
|
|
2052
|
+
}, {
|
|
2053
|
+
key: "onRemove",
|
|
2054
|
+
value: function onRemove(model, modelType) {
|
|
2055
|
+
this.model.get(modelType).remove(model);
|
|
2056
|
+
backbone__WEBPACK_IMPORTED_MODULE_1__["Radio"].channel(this.options.channelName).trigger("remove:".concat(modelType), model);
|
|
2057
|
+
this.render();
|
|
2058
|
+
}
|
|
2059
|
+
}, {
|
|
2060
|
+
key: "buildTypeaheadConfig",
|
|
2061
|
+
value: function buildTypeaheadConfig(queryType) {
|
|
2062
|
+
var typeaheadConfig = _utils_search_RawSearchHelper__WEBPACK_IMPORTED_MODULE_9__["RawSearchHelper"].getTypeaheadConfig();
|
|
2063
|
+
var bloodhoundConfig = _utils_search_RawSearchHelper__WEBPACK_IMPORTED_MODULE_9__["RawSearchHelper"].getBloodhoundConfig();
|
|
2064
|
+
var rawObjectOptions = {
|
|
2065
|
+
hideEmptyResults: true
|
|
2066
|
+
};
|
|
2067
|
+
var newObjectOptions = {
|
|
2068
|
+
newType: queryType
|
|
2069
|
+
};
|
|
2070
|
+
var emptySuggestionOptions = {
|
|
2071
|
+
newType: queryType,
|
|
2072
|
+
footerTemplate: _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_4__["TypeaheadHelper"].getConfirmSelectionTemplate()
|
|
2073
|
+
};
|
|
2074
|
+
return [{
|
|
2075
|
+
name: queryType,
|
|
2076
|
+
typeaheadConfig: typeaheadConfig,
|
|
2077
|
+
bloodhoundConfig: bloodhoundConfig,
|
|
2078
|
+
options: rawObjectOptions
|
|
2079
|
+
}, {
|
|
2080
|
+
name: 'add-new',
|
|
2081
|
+
typeaheadConfig: typeaheadConfig,
|
|
2082
|
+
bloodhoundConfig: bloodhoundConfig,
|
|
2083
|
+
options: newObjectOptions
|
|
2084
|
+
}, {
|
|
2085
|
+
name: 'empty-suggestion',
|
|
2086
|
+
typeaheadConfig: typeaheadConfig,
|
|
2087
|
+
bloodhoundConfig: bloodhoundConfig,
|
|
2088
|
+
options: emptySuggestionOptions
|
|
2089
|
+
}];
|
|
2090
|
+
}
|
|
2091
|
+
}, {
|
|
2092
|
+
key: "allowAdditional",
|
|
2093
|
+
value: function allowAdditional(objectType) {
|
|
2094
|
+
if (!this.options.editable) return false;
|
|
2095
|
+
return this.model.get(objectType) && this.model.get(objectType).length !== MAX_PERSON_OBJECTS;
|
|
2096
|
+
}
|
|
2097
|
+
/**
|
|
2098
|
+
* Render methods
|
|
2099
|
+
*/
|
|
2100
|
+
|
|
2101
|
+
}, {
|
|
2102
|
+
key: "renderDistributors",
|
|
2103
|
+
value: function renderDistributors() {
|
|
2104
|
+
this.showChildView('distributors', new _typeahead_list_TypeaheadListComponent__WEBPACK_IMPORTED_MODULE_8__["TypeaheadListComponentCollection"]({
|
|
2105
|
+
collection: this.model.get('distributors'),
|
|
2106
|
+
channelName: this.options.channelName,
|
|
2107
|
+
typeaheadConfig: this.buildTypeaheadConfig(_constants__WEBPACK_IMPORTED_MODULE_6__["SearchQueryType"].Distributors),
|
|
2108
|
+
removeEvent: 'remove:distributor',
|
|
2109
|
+
selectEvent: 'select:distributor',
|
|
2110
|
+
inputId: 'distributor-search',
|
|
2111
|
+
editable: this.options.editable,
|
|
2112
|
+
placeholderText: 'Search content distributors',
|
|
2113
|
+
modelType: 'distributors'
|
|
2114
|
+
}));
|
|
2115
|
+
}
|
|
2116
|
+
}, {
|
|
2117
|
+
key: "renderProductionCompanies",
|
|
2118
|
+
value: function renderProductionCompanies() {
|
|
2119
|
+
this.showChildView('productionCompanies', new _typeahead_list_TypeaheadListComponent__WEBPACK_IMPORTED_MODULE_8__["TypeaheadListComponentCollection"]({
|
|
2120
|
+
collection: this.model.get('productionCompanies'),
|
|
2121
|
+
channelName: this.options.channelName,
|
|
2122
|
+
typeaheadConfig: this.buildTypeaheadConfig(_constants__WEBPACK_IMPORTED_MODULE_6__["SearchQueryType"].ProductionCompanies),
|
|
2123
|
+
removeEvent: 'remove:production:company',
|
|
2124
|
+
selectEvent: 'select:production:company',
|
|
2125
|
+
inputId: 'production-company-search',
|
|
2126
|
+
editable: this.options.editable,
|
|
2127
|
+
placeholderText: 'Search content production companies',
|
|
2128
|
+
modelType: 'productionCompanies'
|
|
2129
|
+
}));
|
|
2130
|
+
}
|
|
2131
|
+
}, {
|
|
2132
|
+
key: "renderDirectors",
|
|
2133
|
+
value: function renderDirectors() {
|
|
2134
|
+
this.showChildView('directors', new _typeahead_list_TypeaheadListComponent__WEBPACK_IMPORTED_MODULE_8__["TypeaheadListComponentCollection"]({
|
|
2135
|
+
collection: this.model.get('directors'),
|
|
2136
|
+
channelName: this.options.channelName,
|
|
2137
|
+
typeaheadConfig: this.buildTypeaheadConfig(_constants__WEBPACK_IMPORTED_MODULE_6__["SearchQueryType"].Directors),
|
|
2138
|
+
removeEvent: 'remove:director',
|
|
2139
|
+
selectEvent: 'select:director',
|
|
2140
|
+
inputId: 'director-search',
|
|
2141
|
+
editable: this.options.editable,
|
|
2142
|
+
placeholderText: 'Search content directors',
|
|
2143
|
+
modelType: 'directors'
|
|
2144
|
+
}));
|
|
2145
|
+
}
|
|
2146
|
+
}, {
|
|
2147
|
+
key: "renderProducers",
|
|
2148
|
+
value: function renderProducers() {
|
|
2149
|
+
this.showChildView('producers', new _typeahead_list_TypeaheadListComponent__WEBPACK_IMPORTED_MODULE_8__["TypeaheadListComponentCollection"]({
|
|
2150
|
+
collection: this.model.get('producers'),
|
|
2151
|
+
channelName: this.options.channelName,
|
|
2152
|
+
typeaheadConfig: this.buildTypeaheadConfig(_constants__WEBPACK_IMPORTED_MODULE_6__["SearchQueryType"].Producers),
|
|
2153
|
+
removeEvent: 'remove:producer',
|
|
2154
|
+
selectEvent: 'select:producer',
|
|
2155
|
+
inputId: 'producer-search',
|
|
2156
|
+
editable: this.options.editable,
|
|
2157
|
+
placeholderText: 'Search content producers',
|
|
2158
|
+
modelType: 'producers'
|
|
2159
|
+
}));
|
|
2160
|
+
}
|
|
2161
|
+
}, {
|
|
2162
|
+
key: "onBeforeRender",
|
|
2163
|
+
value: function onBeforeRender() {
|
|
2164
|
+
// These four lines are the for the upload form
|
|
2165
|
+
if (!this.model.get('distributors')) this.model.set('distributors', new _collections_DistributorCollection__WEBPACK_IMPORTED_MODULE_11__["DistributorCollection"]([{}]));
|
|
2166
|
+
if (!this.model.get('productionCompanies')) this.model.set('productionCompanies', new _collections_ProductionCompanyCollection__WEBPACK_IMPORTED_MODULE_13__["ProductionCompanyCollection"]([{}]));
|
|
2167
|
+
if (!this.model.get('directors')) this.model.set('directors', new _collections_DirectorCollection__WEBPACK_IMPORTED_MODULE_14__["DirectorCollection"]([{}]));
|
|
2168
|
+
if (!this.model.get('producers')) this.model.set('producers', new _collections_ProducerCollection__WEBPACK_IMPORTED_MODULE_12__["ProducerCollection"]([{}])); // These four lines are for the editing form
|
|
2169
|
+
|
|
2170
|
+
if (!this.model.get('distributors').length) this.model.get('distributors').add({});
|
|
2171
|
+
if (!this.model.get('productionCompanies').length) this.model.get('productionCompanies').add({});
|
|
2172
|
+
if (!this.model.get('directors').length) this.model.get('directors').add({});
|
|
2173
|
+
if (!this.model.get('producers').length) this.model.get('producers').add({});
|
|
2174
|
+
}
|
|
2175
|
+
}, {
|
|
2176
|
+
key: "viewOptions",
|
|
2177
|
+
value: function viewOptions() {
|
|
2178
|
+
return {
|
|
2179
|
+
styles: _base_edit_video_info_scss__WEBPACK_IMPORTED_MODULE_17___default.a,
|
|
2180
|
+
editable: this.options.editable,
|
|
2181
|
+
productionYearPlaceholderText: this.options.editable ? _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_7__["LanguageService"].getPhrase(this.lang, 'productionYearPlaceholder') : '',
|
|
2182
|
+
allowAdditionalDirector: this.allowAdditional(_enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].Director),
|
|
2183
|
+
allowAdditionalProducer: this.allowAdditional(_enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].Producer),
|
|
2184
|
+
allowAdditionalDistributor: this.allowAdditional(_enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].Distributor),
|
|
2185
|
+
allowAdditionalProductionCompany: this.allowAdditional(_enums__WEBPACK_IMPORTED_MODULE_10__["CitationType"].ProductionCompany),
|
|
2186
|
+
infoSvg: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["cvSvgLibrary"].Info)
|
|
2187
|
+
};
|
|
2188
|
+
}
|
|
2189
|
+
}, {
|
|
2190
|
+
key: "onRender",
|
|
2191
|
+
value: function onRender() {
|
|
2192
|
+
this.renderDistributors();
|
|
2193
|
+
this.renderProductionCompanies();
|
|
2194
|
+
this.renderDirectors();
|
|
2195
|
+
this.renderProducers();
|
|
2196
|
+
this.getUI('tooltips').tooltip();
|
|
2197
|
+
}
|
|
2198
|
+
}, {
|
|
2199
|
+
key: "onBeforeDestroy",
|
|
2200
|
+
value: function onBeforeDestroy() {
|
|
2201
|
+
this.getUI('tooltips').tooltip('dispose');
|
|
2202
|
+
}
|
|
2203
|
+
}, {
|
|
2204
|
+
key: "name",
|
|
2205
|
+
get: function get() {
|
|
2206
|
+
return 'EditProductionInfoComponent';
|
|
2207
|
+
}
|
|
2208
|
+
}, {
|
|
2209
|
+
key: "tagName",
|
|
2210
|
+
get: function get() {
|
|
2211
|
+
return 'form';
|
|
2212
|
+
}
|
|
2213
|
+
}, {
|
|
2214
|
+
key: "template",
|
|
2215
|
+
get: function get() {
|
|
2216
|
+
return _EditProductionInfo_hbs__WEBPACK_IMPORTED_MODULE_16___default.a;
|
|
2217
|
+
}
|
|
2218
|
+
}, {
|
|
2219
|
+
key: "lang",
|
|
2220
|
+
get: function get() {
|
|
2221
|
+
return 'shared.editProductionInfo';
|
|
2222
|
+
}
|
|
2223
|
+
}, {
|
|
2224
|
+
key: "className",
|
|
2225
|
+
get: function get() {
|
|
2226
|
+
return 'edit-production-info border-top pt-3';
|
|
2227
|
+
}
|
|
2228
|
+
}, {
|
|
2229
|
+
key: "elements",
|
|
2230
|
+
get: function get() {
|
|
2231
|
+
return {
|
|
2232
|
+
tooltips: '.info-tooltip'
|
|
2233
|
+
};
|
|
2234
|
+
}
|
|
2235
|
+
}, {
|
|
2236
|
+
key: "bindings",
|
|
2237
|
+
get: function get() {
|
|
2238
|
+
return {
|
|
2239
|
+
'[name=productionYear]': {
|
|
2240
|
+
observe: 'productionYear',
|
|
2241
|
+
setOptions: {
|
|
2242
|
+
validate: true
|
|
2243
|
+
},
|
|
2244
|
+
onSet: function onSet(val) {
|
|
2245
|
+
return val;
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
};
|
|
2249
|
+
}
|
|
2250
|
+
}, {
|
|
2251
|
+
key: "behaviors",
|
|
2252
|
+
get: function get() {
|
|
2253
|
+
return [{
|
|
2254
|
+
behaviorClass: _behaviors__WEBPACK_IMPORTED_MODULE_5__["BackboneValidationBehavior"]
|
|
2255
|
+
}, {
|
|
2256
|
+
behaviorClass: _behaviors__WEBPACK_IMPORTED_MODULE_5__["StickitBehavior"]
|
|
2257
|
+
}];
|
|
2258
|
+
}
|
|
2259
|
+
}, {
|
|
2260
|
+
key: "appLinks",
|
|
2261
|
+
get: function get() {
|
|
2262
|
+
var baseApplink = {
|
|
2263
|
+
application: _constants__WEBPACK_IMPORTED_MODULE_6__["AppChannels"].LIBRARY_EDITOR,
|
|
2264
|
+
action: _constants__WEBPACK_IMPORTED_MODULE_6__["Actions"].LibraryEditor.SUGGEST_AN_EDIT,
|
|
2265
|
+
args: [this.model.get('id')]
|
|
2266
|
+
};
|
|
2267
|
+
return {
|
|
2268
|
+
'.suggest-production-year': underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, baseApplink, {
|
|
2269
|
+
params: {
|
|
2270
|
+
metadata: _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_15__["MetadataType"].ProductionYear
|
|
2271
|
+
}
|
|
2272
|
+
}),
|
|
2273
|
+
'.suggest-distributors': underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, baseApplink, {
|
|
2274
|
+
params: {
|
|
2275
|
+
metadata: _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_15__["MetadataType"].Distributors
|
|
2276
|
+
}
|
|
2277
|
+
}),
|
|
2278
|
+
'.suggest-production-companies': underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, baseApplink, {
|
|
2279
|
+
params: {
|
|
2280
|
+
metadata: _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_15__["MetadataType"].ProductionCompanies
|
|
2281
|
+
}
|
|
2282
|
+
}),
|
|
2283
|
+
'.suggest-directors': underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, baseApplink, {
|
|
2284
|
+
params: {
|
|
2285
|
+
metadata: _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_15__["MetadataType"].Directors
|
|
2286
|
+
}
|
|
2287
|
+
}),
|
|
2288
|
+
'.suggest-producers': underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, baseApplink, {
|
|
2289
|
+
params: {
|
|
2290
|
+
metadata: _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_15__["MetadataType"].Producers
|
|
2291
|
+
}
|
|
2292
|
+
})
|
|
2293
|
+
};
|
|
2294
|
+
}
|
|
2295
|
+
}]);
|
|
2296
|
+
|
|
2297
|
+
return EditProductionInfoComponent;
|
|
2298
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_2__["Core"].Component);
|
|
2299
|
+
|
|
2300
|
+
/***/ }),
|
|
2301
|
+
|
|
2302
|
+
/***/ "./src/shared/components/edit-video/edit-season-info/CreateSeason.hbs":
|
|
2303
|
+
/*!****************************************************************************!*\
|
|
2304
|
+
!*** ./src/shared/components/edit-video/edit-season-info/CreateSeason.hbs ***!
|
|
2305
|
+
\****************************************************************************/
|
|
2306
|
+
/*! no static exports found */
|
|
2307
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2308
|
+
|
|
2309
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
2310
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
2311
|
+
return "<div class=\"\">\r\n <button class=\"btn btn-light create w-100\">+ Create a season</button>\r\n</div>\r\n";
|
|
2312
|
+
},"3":function(container,depth0,helpers,partials,data) {
|
|
2313
|
+
return "<div class=\"form-group mb-2\">\r\n <input type=\"number\" class=\"form-control\" name=\"number\" min=\"1\" placeholder=\"Season number\">\r\n <div class=\"form-feedback\"></div>\r\n</div>\r\n";
|
|
2314
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
2315
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
2316
|
+
|
|
2317
|
+
return ((stack1 = helpers.unless.call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.show : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "")
|
|
2318
|
+
+ "<div class=\"text-right\">\r\n <div class=\"button-region\"></div>\r\n</div>";
|
|
2319
|
+
},"useData":true});
|
|
2320
|
+
|
|
2321
|
+
/***/ }),
|
|
2322
|
+
|
|
2323
|
+
/***/ "./src/shared/components/edit-video/edit-season-info/EditSeasonInfo.hbs":
|
|
2324
|
+
/*!******************************************************************************!*\
|
|
2325
|
+
!*** ./src/shared/components/edit-video/edit-season-info/EditSeasonInfo.hbs ***!
|
|
2326
|
+
\******************************************************************************/
|
|
2327
|
+
/*! no static exports found */
|
|
2328
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2329
|
+
|
|
2330
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
2331
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
2332
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
2333
|
+
|
|
2334
|
+
return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.disabled : stack1), depth0));
|
|
2335
|
+
},"3":function(container,depth0,helpers,partials,data) {
|
|
2336
|
+
return "selected";
|
|
2337
|
+
},"5":function(container,depth0,helpers,partials,data) {
|
|
2338
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
|
|
2339
|
+
|
|
2340
|
+
return " <option value=\""
|
|
2341
|
+
+ alias3(alias2((depth0 != null ? depth0.number : depth0), depth0))
|
|
2342
|
+
+ "\" "
|
|
2343
|
+
+ ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.selected : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
2344
|
+
+ ">"
|
|
2345
|
+
+ alias3(alias2((depth0 != null ? depth0.displayName : depth0), depth0))
|
|
2346
|
+
+ "</option>\r\n";
|
|
2347
|
+
},"7":function(container,depth0,helpers,partials,data) {
|
|
2348
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda;
|
|
2349
|
+
|
|
2350
|
+
return "<span class=\"svg-container mb-2 "
|
|
2351
|
+
+ container.escapeExpression(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svg : stack1), depth0))
|
|
2352
|
+
+ " remove\">"
|
|
2353
|
+
+ ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.svgRemove : stack1), depth0)) != null ? stack1 : "")
|
|
2354
|
+
+ "</span>\r\n";
|
|
2355
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
2356
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {});
|
|
2357
|
+
|
|
2358
|
+
return "<div\r\n data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\"\r\n aria-expanded=\"false\"\r\n class=\"cursor-pointer w-100 dropdown-btn btn btn-link "
|
|
2359
|
+
+ alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.button : stack1), depth0))
|
|
2360
|
+
+ " "
|
|
2361
|
+
+ ((stack1 = helpers["if"].call(alias3,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
2362
|
+
+ "\"\r\n name=\"season\"\r\n></div>\r\n<div class=\"dropdown-menu dropdown-menu-right dropdown-arrow w-100\">\r\n <div class=\"text-center px-2\">\r\n <select name=\"season\" class=\"custom-select\">\r\n <option value=\"-1\" "
|
|
2363
|
+
+ ((stack1 = helpers.unless.call(alias3,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.hasSelected : stack1),{"name":"unless","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
2364
|
+
+ ">"
|
|
2365
|
+
+ alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias3,"selectASeason",{"name":"lang","hash":{},"data":data}))
|
|
2366
|
+
+ "</option>\r\n"
|
|
2367
|
+
+ ((stack1 = helpers.each.call(alias3,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.seasons : stack1),{"name":"each","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
2368
|
+
+ " </select>\r\n </div>\r\n\r\n <div class=\"dropdown-divider\"></div>\r\n\r\n <div class=\"create-region\"></div>\r\n</div>\r\n"
|
|
2369
|
+
+ ((stack1 = helpers["if"].call(alias3,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showRemoveIcon : stack1),{"name":"if","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
|
|
2370
|
+
},"useData":true});
|
|
2371
|
+
|
|
2372
|
+
/***/ }),
|
|
2373
|
+
|
|
2374
|
+
/***/ "./src/shared/components/edit-video/edit-season-info/EditSeasonInfoComponent.ts":
|
|
2375
|
+
/*!**************************************************************************************!*\
|
|
2376
|
+
!*** ./src/shared/components/edit-video/edit-season-info/EditSeasonInfoComponent.ts ***!
|
|
2377
|
+
\**************************************************************************************/
|
|
2378
|
+
/*! exports provided: EditSeasonInfoComponent */
|
|
2379
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2380
|
+
|
|
2381
|
+
"use strict";
|
|
2382
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2383
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditSeasonInfoComponent", function() { return EditSeasonInfoComponent; });
|
|
2384
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
|
|
2385
|
+
/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
|
|
2386
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
2387
|
+
/* 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");
|
|
2388
|
+
/* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
|
|
2389
|
+
/* harmony import */ var _spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../spinner-button/SpinnerButtonComponent */ "./src/shared/components/spinner-button/SpinnerButtonComponent.ts");
|
|
2390
|
+
/* harmony import */ var _behaviors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../behaviors */ "./src/shared/behaviors/index.ts");
|
|
2391
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../constants */ "./src/shared/constants/index.ts");
|
|
2392
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../utils */ "./src/shared/utils/index.ts");
|
|
2393
|
+
/* 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");
|
|
2394
|
+
/* harmony import */ var _apps_library_editor_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../apps/library-editor/utils */ "./src/apps/library-editor/utils/index.ts");
|
|
2395
|
+
/* harmony import */ var _CreateSeason_hbs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CreateSeason.hbs */ "./src/shared/components/edit-video/edit-season-info/CreateSeason.hbs");
|
|
2396
|
+
/* harmony import */ var _CreateSeason_hbs__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_CreateSeason_hbs__WEBPACK_IMPORTED_MODULE_10__);
|
|
2397
|
+
/* harmony import */ var _EditSeasonInfo_hbs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./EditSeasonInfo.hbs */ "./src/shared/components/edit-video/edit-season-info/EditSeasonInfo.hbs");
|
|
2398
|
+
/* harmony import */ var _EditSeasonInfo_hbs__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_EditSeasonInfo_hbs__WEBPACK_IMPORTED_MODULE_11__);
|
|
2399
|
+
/* harmony import */ var _edit_season_info_scss__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./edit-season-info.scss */ "./src/shared/components/edit-video/edit-season-info/edit-season-info.scss");
|
|
2400
|
+
/* harmony import */ var _edit_season_info_scss__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_edit_season_info_scss__WEBPACK_IMPORTED_MODULE_12__);
|
|
2401
|
+
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); }
|
|
2402
|
+
|
|
2403
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2404
|
+
|
|
2405
|
+
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); } }
|
|
2406
|
+
|
|
2407
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2408
|
+
|
|
2409
|
+
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); }
|
|
2410
|
+
|
|
2411
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2412
|
+
|
|
2413
|
+
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); }; }
|
|
2414
|
+
|
|
2415
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2416
|
+
|
|
2417
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2418
|
+
|
|
2419
|
+
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; } }
|
|
2420
|
+
|
|
2421
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
|
|
2425
|
+
|
|
2426
|
+
|
|
2427
|
+
|
|
2428
|
+
|
|
2429
|
+
|
|
2430
|
+
|
|
2431
|
+
|
|
2432
|
+
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
|
|
2437
|
+
var CreateSeasonComponent = /*#__PURE__*/function (_Core$Component) {
|
|
2438
|
+
_inherits(CreateSeasonComponent, _Core$Component);
|
|
2439
|
+
|
|
2440
|
+
var _super = _createSuper(CreateSeasonComponent);
|
|
2441
|
+
|
|
2442
|
+
function CreateSeasonComponent(options) {
|
|
2443
|
+
var _this;
|
|
2444
|
+
|
|
2445
|
+
_classCallCheck(this, CreateSeasonComponent);
|
|
2446
|
+
|
|
2447
|
+
_this = _super.call(this, options);
|
|
2448
|
+
_this.showSpinner = false;
|
|
2449
|
+
_this.disableBtn = true;
|
|
2450
|
+
return _this;
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
_createClass(CreateSeasonComponent, [{
|
|
2454
|
+
key: "initialize",
|
|
2455
|
+
value: function initialize() {
|
|
2456
|
+
this.bindListeners();
|
|
2457
|
+
}
|
|
2458
|
+
}, {
|
|
2459
|
+
key: "regions",
|
|
2460
|
+
value: function regions() {
|
|
2461
|
+
return {
|
|
2462
|
+
button: {
|
|
2463
|
+
el: '.button-region',
|
|
2464
|
+
replaceElement: true
|
|
2465
|
+
}
|
|
2466
|
+
};
|
|
2467
|
+
}
|
|
2468
|
+
}, {
|
|
2469
|
+
key: "bindListeners",
|
|
2470
|
+
value: function bindListeners() {
|
|
2471
|
+
this.listenTo(this.model, 'change', this.onChange);
|
|
2472
|
+
this.listenTo(this.options.channelName, 'create:season', this.onCreateSeason);
|
|
2473
|
+
this.listenTo(_constants__WEBPACK_IMPORTED_MODULE_6__["DataChannels"].SERIES, "".concat(_constants__WEBPACK_IMPORTED_MODULE_6__["DataPrefixes"].CREATE_SEASON, ":").concat(this.options.seriesId, ":sync"), this.onSync);
|
|
2474
|
+
}
|
|
2475
|
+
}, {
|
|
2476
|
+
key: "onChange",
|
|
2477
|
+
value: function onChange() {
|
|
2478
|
+
this.disableBtn = !this.model.isValid();
|
|
2479
|
+
this.renderButton();
|
|
2480
|
+
}
|
|
2481
|
+
}, {
|
|
2482
|
+
key: "onCreateSeason",
|
|
2483
|
+
value: function onCreateSeason() {
|
|
2484
|
+
if (this.disableBtn) return;
|
|
2485
|
+
this.model.validate();
|
|
2486
|
+
if (!this.model.isValid()) return;
|
|
2487
|
+
this.showSpinner = true;
|
|
2488
|
+
this.renderButton();
|
|
2489
|
+
this.model.set('number', parseInt(this.model.get('number')));
|
|
2490
|
+
backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(this.options.channelName).trigger('select:season', this.model.toJSON());
|
|
2491
|
+
}
|
|
2492
|
+
}, {
|
|
2493
|
+
key: "onSync",
|
|
2494
|
+
value: function onSync() {
|
|
2495
|
+
this.disableBtn = true;
|
|
2496
|
+
this.showSpinner = false;
|
|
2497
|
+
this.model.clear();
|
|
2498
|
+
this.renderButton();
|
|
2499
|
+
}
|
|
2500
|
+
}, {
|
|
2501
|
+
key: "viewOptions",
|
|
2502
|
+
value: function viewOptions() {
|
|
2503
|
+
return {
|
|
2504
|
+
model: this.model,
|
|
2505
|
+
show: this.options.show
|
|
2506
|
+
};
|
|
2507
|
+
}
|
|
2508
|
+
}, {
|
|
2509
|
+
key: "renderButton",
|
|
2510
|
+
value: function renderButton() {
|
|
2511
|
+
if (!this.options.show) return;
|
|
2512
|
+
this.showChildView('button', new _spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_4__["SpinnerButtonComponent"]({
|
|
2513
|
+
channelName: this.options.channelName,
|
|
2514
|
+
saveEvent: 'create:season',
|
|
2515
|
+
extraButtonClass: 'btn btn-primary',
|
|
2516
|
+
buttonText: 'Create',
|
|
2517
|
+
buttonType: 'submit',
|
|
2518
|
+
showSpinner: this.showSpinner,
|
|
2519
|
+
disabled: this.disableBtn,
|
|
2520
|
+
spinnerOptions: {
|
|
2521
|
+
size: _utils__WEBPACK_IMPORTED_MODULE_7__["SpinnerSize"].Small
|
|
2522
|
+
}
|
|
2523
|
+
}));
|
|
2524
|
+
}
|
|
2525
|
+
}, {
|
|
2526
|
+
key: "onRender",
|
|
2527
|
+
value: function onRender() {
|
|
2528
|
+
this.stickit();
|
|
2529
|
+
this.renderButton();
|
|
2530
|
+
}
|
|
2531
|
+
}, {
|
|
2532
|
+
key: "onClose",
|
|
2533
|
+
value: function onClose() {
|
|
2534
|
+
this.unstickit();
|
|
2535
|
+
}
|
|
2536
|
+
}, {
|
|
2537
|
+
key: "name",
|
|
2538
|
+
get: function get() {
|
|
2539
|
+
return 'CreateSeasonComponent';
|
|
2540
|
+
}
|
|
2541
|
+
}, {
|
|
2542
|
+
key: "template",
|
|
2543
|
+
get: function get() {
|
|
2544
|
+
return _CreateSeason_hbs__WEBPACK_IMPORTED_MODULE_10___default.a;
|
|
2545
|
+
}
|
|
2546
|
+
}, {
|
|
2547
|
+
key: "className",
|
|
2548
|
+
get: function get() {
|
|
2549
|
+
return 'px-2';
|
|
2550
|
+
}
|
|
2551
|
+
}, {
|
|
2552
|
+
key: "bindings",
|
|
2553
|
+
get: function get() {
|
|
2554
|
+
return {
|
|
2555
|
+
'[name=number]': {
|
|
2556
|
+
observe: 'number',
|
|
2557
|
+
setOptions: {
|
|
2558
|
+
validate: true
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
};
|
|
2562
|
+
}
|
|
2563
|
+
}, {
|
|
2564
|
+
key: "behaviors",
|
|
2565
|
+
get: function get() {
|
|
2566
|
+
return [{
|
|
2567
|
+
behaviorClass: _behaviors__WEBPACK_IMPORTED_MODULE_5__["StickitBehavior"]
|
|
2568
|
+
}, {
|
|
2569
|
+
behaviorClass: _behaviors__WEBPACK_IMPORTED_MODULE_5__["BackboneValidationBehavior"]
|
|
2570
|
+
}];
|
|
2571
|
+
}
|
|
2572
|
+
}]);
|
|
2573
|
+
|
|
2574
|
+
return CreateSeasonComponent;
|
|
2575
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
2576
|
+
|
|
2577
|
+
var EditSeasonInfoComponent = /*#__PURE__*/function (_Core$Component2) {
|
|
2578
|
+
_inherits(EditSeasonInfoComponent, _Core$Component2);
|
|
2579
|
+
|
|
2580
|
+
var _super2 = _createSuper(EditSeasonInfoComponent);
|
|
2581
|
+
|
|
2582
|
+
function EditSeasonInfoComponent(options) {
|
|
2583
|
+
_classCallCheck(this, EditSeasonInfoComponent);
|
|
2584
|
+
|
|
2585
|
+
return _super2.call(this, options);
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
_createClass(EditSeasonInfoComponent, [{
|
|
2589
|
+
key: "initialize",
|
|
2590
|
+
value: function initialize() {
|
|
2591
|
+
this.model.get('season.id') && _utils__WEBPACK_IMPORTED_MODULE_7__["CollectionHelpers"].setSelected(this.model.get('season.id'), this.collection);
|
|
2592
|
+
this.viewModel = _libs_common_src_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_2__["ViewModelService"].get("".concat(this.name, ":").concat(this.model.get('id')));
|
|
2593
|
+
|
|
2594
|
+
if (!this.options.disabled) {
|
|
2595
|
+
this.viewModel.addValidation(_apps_library_editor_utils__WEBPACK_IMPORTED_MODULE_9__["SeasonValidation"]);
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
}, {
|
|
2599
|
+
key: "events",
|
|
2600
|
+
value: function events() {
|
|
2601
|
+
return {
|
|
2602
|
+
'click .dropdown-btn': 'onToggleDropdown',
|
|
2603
|
+
'click .dropdown-menu': 'onClickPopover',
|
|
2604
|
+
'click .create': 'onClickCreateNewSeason',
|
|
2605
|
+
'change .custom-select': 'onSelectOption',
|
|
2606
|
+
'click .remove': 'onClickRemove'
|
|
2607
|
+
};
|
|
2608
|
+
}
|
|
2609
|
+
}, {
|
|
2610
|
+
key: "regions",
|
|
2611
|
+
value: function regions() {
|
|
2612
|
+
return {
|
|
2613
|
+
create: {
|
|
2614
|
+
el: '.create-region',
|
|
2615
|
+
replaceElement: true
|
|
2616
|
+
}
|
|
2617
|
+
};
|
|
2618
|
+
}
|
|
2619
|
+
}, {
|
|
2620
|
+
key: "onToggleDropdown",
|
|
2621
|
+
value: function onToggleDropdown(e) {
|
|
2622
|
+
if (this.options.disabled) {
|
|
2623
|
+
e.stopPropagation();
|
|
2624
|
+
return;
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
this.renderCreate();
|
|
2628
|
+
}
|
|
2629
|
+
}, {
|
|
2630
|
+
key: "onClickPopover",
|
|
2631
|
+
value: function onClickPopover(e) {
|
|
2632
|
+
e.stopPropagation();
|
|
2633
|
+
}
|
|
2634
|
+
}, {
|
|
2635
|
+
key: "onClickCreateNewSeason",
|
|
2636
|
+
value: function onClickCreateNewSeason(e) {
|
|
2637
|
+
e.preventDefault();
|
|
2638
|
+
this.showCreateForm = true;
|
|
2639
|
+
this.renderCreate();
|
|
2640
|
+
}
|
|
2641
|
+
}, {
|
|
2642
|
+
key: "onSelectOption",
|
|
2643
|
+
value: function onSelectOption(e) {
|
|
2644
|
+
var value = e.target.value; // The "null" option for seasons has a value of -1. In that case, we unset season.
|
|
2645
|
+
|
|
2646
|
+
var season = value === '-1' ? null : this.collection.findWhere({
|
|
2647
|
+
number: +value
|
|
2648
|
+
}).toJSON();
|
|
2649
|
+
this.setButtonText(value);
|
|
2650
|
+
backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(this.options.channelName).trigger('select:season', season);
|
|
2651
|
+
this.showCreateForm = false;
|
|
2652
|
+
this.render();
|
|
2653
|
+
}
|
|
2654
|
+
}, {
|
|
2655
|
+
key: "onClickRemove",
|
|
2656
|
+
value: function onClickRemove(e) {
|
|
2657
|
+
e.stopPropagation();
|
|
2658
|
+
backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(this.options.channelName).trigger('select:season', null);
|
|
2659
|
+
this.showCreateForm = false;
|
|
2660
|
+
this.render();
|
|
2661
|
+
}
|
|
2662
|
+
}, {
|
|
2663
|
+
key: "setButtonText",
|
|
2664
|
+
value: function setButtonText(num) {
|
|
2665
|
+
if (this.options.isSuggestEdit) {
|
|
2666
|
+
var phrase = num && num !== '-1' ? _libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_8__["LanguageService"].getPhrase(this.lang, 'season', {
|
|
2667
|
+
number: num
|
|
2668
|
+
}) : '';
|
|
2669
|
+
this.getUI('dropdownBtn').text(phrase);
|
|
2670
|
+
return;
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
var phraseKey = num && num !== '-1' ? 'season' : 'placeholder';
|
|
2674
|
+
this.getUI('dropdownBtn').text(_libs_common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_8__["LanguageService"].getPhrase(this.lang, phraseKey, {
|
|
2675
|
+
number: num
|
|
2676
|
+
}));
|
|
2677
|
+
}
|
|
2678
|
+
}, {
|
|
2679
|
+
key: "renderCreate",
|
|
2680
|
+
value: function renderCreate() {
|
|
2681
|
+
this.showChildView('create', new CreateSeasonComponent({
|
|
2682
|
+
model: this.viewModel,
|
|
2683
|
+
channelName: this.options.channelName,
|
|
2684
|
+
show: this.showCreateForm,
|
|
2685
|
+
seriesId: this.model.get('series.id')
|
|
2686
|
+
}));
|
|
2687
|
+
}
|
|
2688
|
+
}, {
|
|
2689
|
+
key: "viewOptions",
|
|
2690
|
+
value: function viewOptions() {
|
|
2691
|
+
return {
|
|
2692
|
+
styles: _edit_season_info_scss__WEBPACK_IMPORTED_MODULE_12___default.a,
|
|
2693
|
+
disabled: this.options.disabled,
|
|
2694
|
+
seasons: this.collection.toJSON(),
|
|
2695
|
+
svgRemove: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_3__["cvSvgLibrary"].Close),
|
|
2696
|
+
showRemoveIcon: !!this.model.get('season.id') && !this.options.isSuggestEdit
|
|
2697
|
+
};
|
|
2698
|
+
}
|
|
2699
|
+
}, {
|
|
2700
|
+
key: "onRender",
|
|
2701
|
+
value: function onRender() {
|
|
2702
|
+
this.renderCreate();
|
|
2703
|
+
this.setButtonText(this.model.get('season.number'));
|
|
2704
|
+
}
|
|
2705
|
+
}, {
|
|
2706
|
+
key: "name",
|
|
2707
|
+
get: function get() {
|
|
2708
|
+
return 'EditSeasonInfoComponent';
|
|
2709
|
+
}
|
|
2710
|
+
}, {
|
|
2711
|
+
key: "template",
|
|
2712
|
+
get: function get() {
|
|
2713
|
+
return _EditSeasonInfo_hbs__WEBPACK_IMPORTED_MODULE_11___default.a;
|
|
2714
|
+
}
|
|
2715
|
+
}, {
|
|
2716
|
+
key: "className",
|
|
2717
|
+
get: function get() {
|
|
2718
|
+
return _edit_season_info_scss__WEBPACK_IMPORTED_MODULE_12___default.a.seasonContainer;
|
|
2719
|
+
}
|
|
2720
|
+
}, {
|
|
2721
|
+
key: "lang",
|
|
2722
|
+
get: function get() {
|
|
2723
|
+
return 'shared.editSeasonInfo';
|
|
2724
|
+
}
|
|
2725
|
+
}, {
|
|
2726
|
+
key: "elements",
|
|
2727
|
+
get: function get() {
|
|
2728
|
+
return {
|
|
2729
|
+
dropdownBtn: '.dropdown-btn'
|
|
2730
|
+
};
|
|
2731
|
+
}
|
|
2732
|
+
}]);
|
|
2733
|
+
|
|
2734
|
+
return EditSeasonInfoComponent;
|
|
2735
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
2736
|
+
|
|
2737
|
+
/***/ }),
|
|
2738
|
+
|
|
2739
|
+
/***/ "./src/shared/components/edit-video/edit-season-info/edit-season-info.scss":
|
|
2740
|
+
/*!*********************************************************************************!*\
|
|
2741
|
+
!*** ./src/shared/components/edit-video/edit-season-info/edit-season-info.scss ***!
|
|
2742
|
+
\*********************************************************************************/
|
|
2743
|
+
/*! no static exports found */
|
|
2744
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2745
|
+
|
|
2746
|
+
// extracted by mini-css-extract-plugin
|
|
2747
|
+
module.exports = {"button":"cv--button--39NvM","svg":"cv--svg--2Tl0W","disabled":"cv--disabled--2julA","seasonContainer":"cv--seasonContainer--_SpZq"};
|
|
2748
|
+
|
|
2749
|
+
/***/ }),
|
|
2750
|
+
|
|
2751
|
+
/***/ "./src/shared/components/resizing-text-area/ResizingTextArea.hbs":
|
|
2752
|
+
/*!***********************************************************************!*\
|
|
2753
|
+
!*** ./src/shared/components/resizing-text-area/ResizingTextArea.hbs ***!
|
|
2754
|
+
\***********************************************************************/
|
|
2755
|
+
/*! no static exports found */
|
|
2756
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2757
|
+
|
|
2758
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
2759
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
|
|
2760
|
+
return "required";
|
|
2761
|
+
},"3":function(container,depth0,helpers,partials,data) {
|
|
2762
|
+
return "readonly";
|
|
2763
|
+
},"5":function(container,depth0,helpers,partials,data) {
|
|
2764
|
+
return "disabled";
|
|
2765
|
+
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
2766
|
+
var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});
|
|
2767
|
+
|
|
2768
|
+
return "<textarea\r\n name=\""
|
|
2769
|
+
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.name : stack1), depth0))
|
|
2770
|
+
+ "\"\r\n id=\""
|
|
2771
|
+
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.id : stack1), depth0))
|
|
2772
|
+
+ "\"\r\n autocomplete=\"false\"\r\n class=\""
|
|
2773
|
+
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1["class"] : stack1), depth0))
|
|
2774
|
+
+ " event-selector "
|
|
2775
|
+
+ alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.resizingTextarea : stack1), depth0))
|
|
2776
|
+
+ "\"\r\n placeholder=\""
|
|
2777
|
+
+ alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.placeholder : stack1), depth0))
|
|
2778
|
+
+ "\"\r\n "
|
|
2779
|
+
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.required : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
2780
|
+
+ "\r\n "
|
|
2781
|
+
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.readonly : stack1),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
2782
|
+
+ "\r\n "
|
|
2783
|
+
+ ((stack1 = helpers["if"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
|
|
2784
|
+
+ "\r\n></textarea>";
|
|
2785
|
+
},"useData":true});
|
|
2786
|
+
|
|
2787
|
+
/***/ }),
|
|
2788
|
+
|
|
2789
|
+
/***/ "./src/shared/components/resizing-text-area/ResizingTextAreaComponent.ts":
|
|
2790
|
+
/*!*******************************************************************************!*\
|
|
2791
|
+
!*** ./src/shared/components/resizing-text-area/ResizingTextAreaComponent.ts ***!
|
|
2792
|
+
\*******************************************************************************/
|
|
2793
|
+
/*! exports provided: ResizingTextAreaComponent */
|
|
2794
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2795
|
+
|
|
2796
|
+
"use strict";
|
|
2797
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2798
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResizingTextAreaComponent", function() { return ResizingTextAreaComponent; });
|
|
2799
|
+
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
|
|
2800
|
+
/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
|
|
2801
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
2802
|
+
/* harmony import */ var _ResizingTextArea_hbs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ResizingTextArea.hbs */ "./src/shared/components/resizing-text-area/ResizingTextArea.hbs");
|
|
2803
|
+
/* harmony import */ var _ResizingTextArea_hbs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_ResizingTextArea_hbs__WEBPACK_IMPORTED_MODULE_2__);
|
|
2804
|
+
/* harmony import */ var _resizing_text_area_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./resizing-text-area.scss */ "./src/shared/components/resizing-text-area/resizing-text-area.scss");
|
|
2805
|
+
/* harmony import */ var _resizing_text_area_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_resizing_text_area_scss__WEBPACK_IMPORTED_MODULE_3__);
|
|
2806
|
+
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); }
|
|
2807
|
+
|
|
2808
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2809
|
+
|
|
2810
|
+
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); } }
|
|
2811
|
+
|
|
2812
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2813
|
+
|
|
2814
|
+
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); }
|
|
2815
|
+
|
|
2816
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2817
|
+
|
|
2818
|
+
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); }; }
|
|
2819
|
+
|
|
2820
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2821
|
+
|
|
2822
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2823
|
+
|
|
2824
|
+
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; } }
|
|
2825
|
+
|
|
2826
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2827
|
+
|
|
2828
|
+
|
|
2829
|
+
|
|
2830
|
+
|
|
2831
|
+
|
|
2832
|
+
var ResizingTextAreaComponent = /*#__PURE__*/function (_Core$Component) {
|
|
2833
|
+
_inherits(ResizingTextAreaComponent, _Core$Component);
|
|
2834
|
+
|
|
2835
|
+
var _super = _createSuper(ResizingTextAreaComponent);
|
|
2836
|
+
|
|
2837
|
+
function ResizingTextAreaComponent(options) {
|
|
2838
|
+
_classCallCheck(this, ResizingTextAreaComponent);
|
|
2839
|
+
|
|
2840
|
+
return _super.call(this, options);
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
_createClass(ResizingTextAreaComponent, [{
|
|
2844
|
+
key: "events",
|
|
2845
|
+
value: function events() {
|
|
2846
|
+
return {
|
|
2847
|
+
'input .event-selector': 'onInput'
|
|
2848
|
+
};
|
|
2849
|
+
}
|
|
2850
|
+
/**
|
|
2851
|
+
* https://gomakethings.com/automatically-expand-a-textarea-as-the-user-types-using-vanilla-javascript/
|
|
2852
|
+
*/
|
|
2853
|
+
|
|
2854
|
+
}, {
|
|
2855
|
+
key: "onInput",
|
|
2856
|
+
value: function onInput(event) {
|
|
2857
|
+
var field = event.target; // Reset field height
|
|
2858
|
+
|
|
2859
|
+
field.style.height = 'inherit'; // Get the computed styles for the element
|
|
2860
|
+
|
|
2861
|
+
var computed = window.getComputedStyle(field); // Calculate the height
|
|
2862
|
+
|
|
2863
|
+
var height = parseInt(computed.getPropertyValue('border-top-width'), 10) + parseInt(computed.getPropertyValue('padding-top'), 10) + field.scrollHeight + parseInt(computed.getPropertyValue('padding-bottom'), 10) + parseInt(computed.getPropertyValue('border-bottom-width'), 10);
|
|
2864
|
+
field.style.height = height + 'px';
|
|
2865
|
+
}
|
|
2866
|
+
}, {
|
|
2867
|
+
key: "viewOptions",
|
|
2868
|
+
value: function viewOptions() {
|
|
2869
|
+
return underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, this.options, {
|
|
2870
|
+
styles: _resizing_text_area_scss__WEBPACK_IMPORTED_MODULE_3___default.a
|
|
2871
|
+
});
|
|
2872
|
+
}
|
|
2873
|
+
}, {
|
|
2874
|
+
key: "name",
|
|
2875
|
+
get: function get() {
|
|
2876
|
+
return 'ResizingTextAreaComponent';
|
|
2877
|
+
}
|
|
2878
|
+
}, {
|
|
2879
|
+
key: "template",
|
|
2880
|
+
get: function get() {
|
|
2881
|
+
return _ResizingTextArea_hbs__WEBPACK_IMPORTED_MODULE_2___default.a;
|
|
2882
|
+
}
|
|
2883
|
+
}]);
|
|
2884
|
+
|
|
2885
|
+
return ResizingTextAreaComponent;
|
|
2886
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
|
|
2887
|
+
|
|
2888
|
+
/***/ }),
|
|
2889
|
+
|
|
2890
|
+
/***/ "./src/shared/components/resizing-text-area/resizing-text-area.scss":
|
|
2891
|
+
/*!**************************************************************************!*\
|
|
2892
|
+
!*** ./src/shared/components/resizing-text-area/resizing-text-area.scss ***!
|
|
2893
|
+
\**************************************************************************/
|
|
2894
|
+
/*! no static exports found */
|
|
2895
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2896
|
+
|
|
2897
|
+
// extracted by mini-css-extract-plugin
|
|
2898
|
+
module.exports = {"resizingTextarea":"cv--resizingTextarea--qKxbV"};
|
|
2899
|
+
|
|
2900
|
+
/***/ }),
|
|
2901
|
+
|
|
2902
|
+
/***/ "./src/shared/components/typeahead-list/TypeaheadList.hbs":
|
|
2903
|
+
/*!****************************************************************!*\
|
|
2904
|
+
!*** ./src/shared/components/typeahead-list/TypeaheadList.hbs ***!
|
|
2905
|
+
\****************************************************************/
|
|
2906
|
+
/*! no static exports found */
|
|
2907
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2908
|
+
|
|
2909
|
+
var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
|
|
2910
|
+
module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
2911
|
+
var stack1, alias1=container.propertyIsEnumerable;
|
|
2912
|
+
|
|
2913
|
+
return "<div class=\"typeahead-region "
|
|
2914
|
+
+ container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.typeahead : stack1), depth0))
|
|
2915
|
+
+ "\"></div>";
|
|
2916
|
+
},"useData":true});
|
|
2917
|
+
|
|
2918
|
+
/***/ }),
|
|
2919
|
+
|
|
2920
|
+
/***/ "./src/shared/components/typeahead-list/TypeaheadListComponent.ts":
|
|
2921
|
+
/*!************************************************************************!*\
|
|
2922
|
+
!*** ./src/shared/components/typeahead-list/TypeaheadListComponent.ts ***!
|
|
2923
|
+
\************************************************************************/
|
|
2924
|
+
/*! exports provided: TypeaheadListComponentCollection */
|
|
2925
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2926
|
+
|
|
2927
|
+
"use strict";
|
|
2928
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2929
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TypeaheadListComponentCollection", function() { return TypeaheadListComponentCollection; });
|
|
2930
|
+
/* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
|
|
2931
|
+
/* harmony import */ var _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../libs/shared/src/apps/search/utils/TypeaheadHelper */ "../../libs/shared/src/apps/search/utils/TypeaheadHelper.ts");
|
|
2932
|
+
/* harmony import */ var _typeahead_input_SearchTypeaheadComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../typeahead-input/SearchTypeaheadComponent */ "./src/shared/components/typeahead-input/SearchTypeaheadComponent.ts");
|
|
2933
|
+
/* harmony import */ var _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../apps/library-editor/constants */ "./src/apps/library-editor/constants/index.ts");
|
|
2934
|
+
/* harmony import */ var _TypeaheadList_hbs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TypeaheadList.hbs */ "./src/shared/components/typeahead-list/TypeaheadList.hbs");
|
|
2935
|
+
/* harmony import */ var _TypeaheadList_hbs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_TypeaheadList_hbs__WEBPACK_IMPORTED_MODULE_4__);
|
|
2936
|
+
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); }
|
|
2937
|
+
|
|
2938
|
+
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; }
|
|
2939
|
+
|
|
2940
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
2941
|
+
|
|
2942
|
+
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); } }
|
|
2943
|
+
|
|
2944
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
2945
|
+
|
|
2946
|
+
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); }
|
|
2947
|
+
|
|
2948
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
2949
|
+
|
|
2950
|
+
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); }; }
|
|
2951
|
+
|
|
2952
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
2953
|
+
|
|
2954
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
2955
|
+
|
|
2956
|
+
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; } }
|
|
2957
|
+
|
|
2958
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2959
|
+
|
|
2960
|
+
|
|
2961
|
+
|
|
2962
|
+
|
|
2963
|
+
|
|
2964
|
+
|
|
2965
|
+
var TypeaheadListComponentCollection = /*#__PURE__*/function (_Core$ComponentCollec) {
|
|
2966
|
+
_inherits(TypeaheadListComponentCollection, _Core$ComponentCollec);
|
|
2967
|
+
|
|
2968
|
+
var _super = _createSuper(TypeaheadListComponentCollection);
|
|
2969
|
+
|
|
2970
|
+
function TypeaheadListComponentCollection(options) {
|
|
2971
|
+
_classCallCheck(this, TypeaheadListComponentCollection);
|
|
2972
|
+
|
|
2973
|
+
return _super.call(this, options);
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
_createClass(TypeaheadListComponentCollection, [{
|
|
2977
|
+
key: "name",
|
|
2978
|
+
get: function get() {
|
|
2979
|
+
return 'TypeaheadListComponentCollection';
|
|
2980
|
+
}
|
|
2981
|
+
}, {
|
|
2982
|
+
key: "childViewOptions",
|
|
2983
|
+
get: function get() {
|
|
2984
|
+
return Object.assign({}, this.options);
|
|
2985
|
+
}
|
|
2986
|
+
}, {
|
|
2987
|
+
key: "childView",
|
|
2988
|
+
get: function get() {
|
|
2989
|
+
return TypeaheadListComponent;
|
|
2990
|
+
}
|
|
2991
|
+
}]);
|
|
2992
|
+
|
|
2993
|
+
return TypeaheadListComponentCollection;
|
|
2994
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].ComponentCollection);
|
|
2995
|
+
|
|
2996
|
+
var TypeaheadListComponent = /*#__PURE__*/function (_Core$Component) {
|
|
2997
|
+
_inherits(TypeaheadListComponent, _Core$Component);
|
|
2998
|
+
|
|
2999
|
+
var _super2 = _createSuper(TypeaheadListComponent);
|
|
3000
|
+
|
|
3001
|
+
function TypeaheadListComponent(options) {
|
|
3002
|
+
_classCallCheck(this, TypeaheadListComponent);
|
|
3003
|
+
|
|
3004
|
+
return _super2.call(this, options);
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
_createClass(TypeaheadListComponent, [{
|
|
3008
|
+
key: "regions",
|
|
3009
|
+
value: function regions() {
|
|
3010
|
+
return {
|
|
3011
|
+
typeahead: {
|
|
3012
|
+
el: '.typeahead-region',
|
|
3013
|
+
replaceElement: false
|
|
3014
|
+
}
|
|
3015
|
+
};
|
|
3016
|
+
}
|
|
3017
|
+
}, {
|
|
3018
|
+
key: "renderTypeahead",
|
|
3019
|
+
value: function renderTypeahead() {
|
|
3020
|
+
this.showChildView('typeahead', new _typeahead_input_SearchTypeaheadComponent__WEBPACK_IMPORTED_MODULE_2__["SearchTypeaheadComponent"]({
|
|
3021
|
+
model: this.model,
|
|
3022
|
+
parentChannelName: this.options.channelName,
|
|
3023
|
+
inputId: this.options.inputId,
|
|
3024
|
+
selectEvent: this.options.selectEvent,
|
|
3025
|
+
typeaheadConfigs: this.options.typeaheadConfig,
|
|
3026
|
+
placeholderText: this.options.editable ? this.options.placeholderText : '',
|
|
3027
|
+
callbacks: {
|
|
3028
|
+
onRender: _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_1__["TypeaheadHelper"].selectFirstResult,
|
|
3029
|
+
onInput: _libs_shared_src_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_1__["TypeaheadHelper"].emitEventOnInput(this.options.channelName, _apps_library_editor_constants__WEBPACK_IMPORTED_MODULE_3__["LibraryEditorActions"].DetectInput, this.options.modelType, {
|
|
3030
|
+
isCollection: true
|
|
3031
|
+
})
|
|
3032
|
+
},
|
|
3033
|
+
editable: this.options.editable,
|
|
3034
|
+
actionOptions: {
|
|
3035
|
+
clearOnSelect: true
|
|
3036
|
+
},
|
|
3037
|
+
|
|
3038
|
+
/**
|
|
3039
|
+
* Hide the remove button if we only have 1 item and it doesn't have a value
|
|
3040
|
+
*/
|
|
3041
|
+
removeEvent: this.options.removeEvent,
|
|
3042
|
+
forceShowRemoveButton: this.collection.length > 1 || !!this.model.get('name')
|
|
3043
|
+
}));
|
|
3044
|
+
}
|
|
3045
|
+
}, {
|
|
3046
|
+
key: "viewOptions",
|
|
3047
|
+
value: function viewOptions() {
|
|
3048
|
+
return {
|
|
3049
|
+
id: this.modelId
|
|
3050
|
+
};
|
|
3051
|
+
}
|
|
3052
|
+
}, {
|
|
3053
|
+
key: "onRender",
|
|
3054
|
+
value: function onRender() {
|
|
3055
|
+
this.renderTypeahead();
|
|
3056
|
+
}
|
|
3057
|
+
}, {
|
|
3058
|
+
key: "name",
|
|
3059
|
+
get: function get() {
|
|
3060
|
+
return 'TypeaheadListComponent';
|
|
3061
|
+
}
|
|
3062
|
+
}, {
|
|
3063
|
+
key: "template",
|
|
3064
|
+
get: function get() {
|
|
3065
|
+
return _TypeaheadList_hbs__WEBPACK_IMPORTED_MODULE_4___default.a;
|
|
3066
|
+
}
|
|
3067
|
+
}, {
|
|
3068
|
+
key: "modelId",
|
|
3069
|
+
get: function get() {
|
|
3070
|
+
return this.model.get('id') || 'new-model';
|
|
3071
|
+
}
|
|
3072
|
+
}, {
|
|
3073
|
+
key: "bindings",
|
|
3074
|
+
get: function get() {
|
|
3075
|
+
return _defineProperty({}, "[name=".concat(this.modelId, "]"), {
|
|
3076
|
+
observe: 'name',
|
|
3077
|
+
setOptions: {
|
|
3078
|
+
validate: true
|
|
3079
|
+
}
|
|
3080
|
+
});
|
|
3081
|
+
}
|
|
3082
|
+
}]);
|
|
3083
|
+
|
|
3084
|
+
return TypeaheadListComponent;
|
|
3085
|
+
}(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
|
|
3086
|
+
|
|
3087
|
+
/***/ })
|
|
3088
|
+
|
|
3089
|
+
}]);
|
|
3090
|
+
//# sourceMappingURL=29.chunk.js.map
|