@clickview/library-editor 1.8.1-rc.0 → 1.8.1-rc.1
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/bundles.json +2 -2
- package/dist/css/101-library-editor-808f785991.chunk.css +4 -0
- package/dist/css/1341-library-editor-8f2e8cbfe9.chunk.css +64 -0
- package/dist/css/1601-library-editor-ecad02e1a4.chunk.css +8 -0
- package/dist/css/{8420-library-editor-3bb4952bab.chunk.css → 1887-library-editor-2e57df189d.chunk.css} +4 -8
- package/dist/css/{6625-library-editor-89b6e935f3.chunk.css → 1911-library-editor-f7158ba599.chunk.css} +4 -0
- package/dist/css/3969-library-editor-3382f0875b.chunk.css +4 -0
- package/dist/css/{2417-library-editor-1232df0f0a.chunk.css → 4000-library-editor-8150c8f4ce.chunk.css} +2 -0
- package/dist/css/{5248-library-editor-c06823703f.chunk.css → 4177-library-editor-4cba18186c.chunk.css} +4 -8
- package/dist/css/4830-library-editor-1d6a95fb9f.chunk.css +4 -0
- package/dist/css/{2704-library-editor-8067d27c56.chunk.css → 4973-library-editor-df33c921f0.chunk.css} +0 -4
- package/dist/css/58-library-editor-727313a113.chunk.css +58 -0
- package/dist/css/5891-library-editor-76fe7e394b.chunk.css +2 -0
- package/dist/css/6220-library-editor-e66d80c18a.chunk.css +34 -0
- package/dist/css/6963-library-editor-76fe7e394b.chunk.css +2 -0
- package/dist/css/{5356-library-editor-075fbedf48.chunk.css → 6999-library-editor-c9c844221a.chunk.css} +12 -0
- package/dist/css/{3427-library-editor-8442ad6453.chunk.css → 7295-library-editor-b0c43d2c79.chunk.css} +1 -1
- package/dist/css/{3803-library-editor-c08c7cc096.chunk.css → 7634-library-editor-fe9fc69e35.chunk.css} +3 -3
- package/dist/css/{9195-library-editor-14f7d9be38.chunk.css → 8929-library-editor-2cba3474fe.chunk.css} +1 -1
- package/dist/css/9379-library-editor-76fe7e394b.chunk.css +2 -0
- package/dist/css/{5047-library-editor-3ed99ac07f.chunk.css → 9976-library-editor-db9baf23c2.chunk.css} +4 -0
- package/dist/css/{library-editor-app-4e790b757d.css → library-editor-app-8f64d67638.css} +10 -16
- package/dist/en.json +1 -1
- package/dist/scripts/1002-eedad4d1e2.chunk.js +1 -0
- package/dist/scripts/101-e0ab8c2ffa.chunk.js +1 -0
- package/dist/scripts/1010-cca9607505.chunk.js +1 -0
- package/dist/scripts/{1086-a8cf020218.chunk.js → 1086-53200b17d0.chunk.js} +1 -1
- package/dist/scripts/{1203-14ae840d6b.chunk.js → 1203-2fbc5898fa.chunk.js} +1 -1
- package/dist/scripts/1216-4563d51ee5.chunk.js +1 -0
- package/dist/scripts/1269-5ece71eeb9.chunk.js +1 -0
- package/dist/scripts/1341-edc88ba644.chunk.js +1 -0
- package/dist/scripts/1364-3692b00910.chunk.js +1 -0
- package/dist/scripts/1409-d946186bd3.chunk.js +1 -0
- package/dist/scripts/1601-52f8e3cec5.chunk.js +2 -0
- package/dist/scripts/1832-fdaaff5a29.chunk.js +1 -0
- package/dist/scripts/1887-4a4581b103.chunk.js +1 -0
- package/dist/scripts/1911-2776792a06.chunk.js +1 -0
- package/dist/scripts/{243-f01e965f4b.chunk.js → 243-5fae01d256.chunk.js} +1 -1
- package/dist/scripts/259-704ed09bf8.chunk.js +1 -0
- package/dist/scripts/{2692-61fa0956f7.chunk.js → 2692-960ba7e67f.chunk.js} +1 -1
- package/dist/scripts/2803-7570954088.chunk.js +1 -0
- package/dist/scripts/{2888-aa8575c95a.chunk.js → 2888-eb32d5080d.chunk.js} +1 -1
- package/dist/scripts/{299-f783c04b9f.chunk.js → 299-32a3414fbe.chunk.js} +1 -1
- package/dist/scripts/3096-80f7168798.chunk.js +1 -0
- package/dist/scripts/{3639-49cbb7726d.chunk.js → 3639-d119eeab5a.chunk.js} +1 -1
- package/dist/scripts/3746-5c295544de.chunk.js +1 -0
- package/dist/scripts/{3763-42330d8e14.chunk.js → 3763-7bc0f591a5.chunk.js} +1 -1
- package/dist/scripts/3969-b2512efce3.chunk.js +1 -0
- package/dist/scripts/4000-61e8eea600.chunk.js +1 -0
- package/dist/scripts/4177-c8f227c57c.chunk.js +1 -0
- package/dist/scripts/4201-95bf1e627c.chunk.js +1 -0
- package/dist/scripts/4353-eb7e1815d1.chunk.js +1 -0
- package/dist/scripts/{4591-5170be25a2.chunk.js → 4591-3bafdf04eb.chunk.js} +1 -1
- package/dist/scripts/4830-78b7f854d2.chunk.js +1 -0
- package/dist/scripts/{4860-59a185099c.chunk.js → 4860-b5a0c5a4f7.chunk.js} +1 -1
- package/dist/scripts/{4885-5e746feb33.chunk.js → 4885-5665393708.chunk.js} +1 -1
- package/dist/scripts/4973-f61032e6d9.chunk.js +2 -0
- package/dist/scripts/{514-4d8b3e1241.chunk.js → 514-6bbcc11ccd.chunk.js} +1 -1
- package/dist/scripts/5173-1375c05784.chunk.js +1 -0
- package/dist/scripts/5235-ad7fce4516.chunk.js +1 -0
- package/dist/scripts/{5412-f7addc660e.chunk.js → 5412-49e9416193.chunk.js} +1 -1
- package/dist/scripts/5424-95917d027e.chunk.js +1 -0
- package/dist/scripts/{546-0a0da54e49.chunk.js → 546-9118f60b37.chunk.js} +1 -1
- package/dist/scripts/5745-a8f263230f.chunk.js +2 -0
- package/dist/scripts/{5747-1c103faee6.chunk.js → 5747-4bbf211b9d.chunk.js} +1 -1
- package/dist/scripts/58-f573cef3f1.chunk.js +1 -0
- package/dist/scripts/5891-2384394abf.chunk.js +1 -0
- package/dist/scripts/6093-b7bb0fe8ff.chunk.js +1 -0
- package/dist/scripts/6220-24ae226c29.chunk.js +1 -0
- package/dist/scripts/6732-a203523ce8.chunk.js +1 -0
- package/dist/scripts/{6774-65575c493f.chunk.js → 6774-ed211c8b34.chunk.js} +1 -1
- package/dist/scripts/{6788-5a4f2eb9cc.chunk.js → 6788-e7b22ee5cf.chunk.js} +1 -1
- package/dist/scripts/6963-83e5a0386b.chunk.js +1 -0
- package/dist/scripts/6995-578fe09b1a.chunk.js +1 -0
- package/dist/scripts/6999-d783593ecd.chunk.js +1 -0
- package/dist/scripts/7002-a84edb1c55.chunk.js +1 -0
- package/dist/scripts/7053-58277bab40.chunk.js +1 -0
- package/dist/scripts/708-e426a1101a.chunk.js +1 -0
- package/dist/scripts/{7190-663dc02699.chunk.js → 7190-9bf273416d.chunk.js} +1 -1
- package/dist/scripts/7295-9a110bc5ab.chunk.js +1 -0
- package/dist/scripts/7376-4d9b431384.chunk.js +1 -0
- package/dist/scripts/7634-e4421c5635.chunk.js +1 -0
- package/dist/scripts/{8362-bd0a827fd1.chunk.js → 8362-e6279acee7.chunk.js} +1 -1
- package/dist/scripts/8495-718f82fe43.chunk.js +1 -0
- package/dist/scripts/8727-17faa28384.chunk.js +1 -0
- package/dist/scripts/{8762-44030384bd.chunk.js → 8762-e44f72c32c.chunk.js} +1 -1
- package/dist/scripts/{8906-9c897538cc.chunk.js → 8906-dddb217ad3.chunk.js} +1 -1
- package/dist/scripts/8929-0454971ba3.chunk.js +1 -0
- package/dist/scripts/{8947-361fa0bb45.chunk.js → 8947-7242c90cef.chunk.js} +1 -1
- package/dist/scripts/9228-110536ffde.chunk.js +1 -0
- package/dist/scripts/{9357-24309fbc82.chunk.js → 9357-f27151e9a5.chunk.js} +1 -1
- package/dist/scripts/9379-621391591b.chunk.js +1 -0
- package/dist/scripts/9383-4fd2e86d6e.chunk.js +1 -0
- package/dist/scripts/{9695-3b345f10c3.chunk.js → 9695-995f37e82e.chunk.js} +1 -1
- package/dist/scripts/9770-717c5d2e82.chunk.js +1 -0
- package/dist/scripts/9927-5fc9373f85.chunk.js +1 -0
- package/dist/scripts/9976-88ad110f6b.chunk.js +1 -0
- package/dist/scripts/bundle-60969796d5.min.js +2 -0
- package/dist/scripts/bundle-60969796d5.min.js.LICENSE.txt +1 -0
- package/package.json +1 -1
- package/dist/css/409-library-editor-38562d76cd.chunk.css +0 -10
- package/dist/css/4810-library-editor-740619bb9d.chunk.css +0 -24
- package/dist/css/8343-library-editor-10baca49f5.chunk.css +0 -20
- package/dist/scripts/1010-cb37772c49.chunk.js +0 -1
- package/dist/scripts/1409-32bd85885e.chunk.js +0 -1
- package/dist/scripts/1832-86cd9ad582.chunk.js +0 -1
- package/dist/scripts/2098-96f81af824.chunk.js +0 -1
- package/dist/scripts/2417-b87afd64a5.chunk.js +0 -1
- package/dist/scripts/259-004621af29.chunk.js +0 -1
- package/dist/scripts/2704-2acb36a8e6.chunk.js +0 -2
- package/dist/scripts/2733-b894e791d4.chunk.js +0 -1
- package/dist/scripts/2803-a61efc3928.chunk.js +0 -1
- package/dist/scripts/3019-756f3418e1.chunk.js +0 -1
- package/dist/scripts/3096-7b76aacf1b.chunk.js +0 -1
- package/dist/scripts/3427-69e041b58f.chunk.js +0 -1
- package/dist/scripts/3746-035d2a375b.chunk.js +0 -1
- package/dist/scripts/3803-ddb6cb3af0.chunk.js +0 -1
- package/dist/scripts/400-245e50bb8b.chunk.js +0 -1
- package/dist/scripts/409-4d3f47dde3.chunk.js +0 -1
- package/dist/scripts/4201-934449ecc8.chunk.js +0 -1
- package/dist/scripts/435-15245a31f0.chunk.js +0 -1
- package/dist/scripts/4353-2cc9f63986.chunk.js +0 -1
- package/dist/scripts/4703-d6f96abde3.chunk.js +0 -1
- package/dist/scripts/4810-abc1d10673.chunk.js +0 -1
- package/dist/scripts/5047-fede824a7a.chunk.js +0 -1
- package/dist/scripts/5248-f08a510a35.chunk.js +0 -1
- package/dist/scripts/5356-e72cc7d540.chunk.js +0 -1
- package/dist/scripts/5431-5878626ffc.chunk.js +0 -1
- package/dist/scripts/5665-652f2d5ce2.chunk.js +0 -1
- package/dist/scripts/5967-7f52d83b9d.chunk.js +0 -1
- package/dist/scripts/6093-e8c8ee685e.chunk.js +0 -1
- package/dist/scripts/6420-e6a2a2f8e1.chunk.js +0 -1
- package/dist/scripts/6625-dad5409d21.chunk.js +0 -1
- package/dist/scripts/693-4e5dfe0a0a.chunk.js +0 -1
- package/dist/scripts/7002-93a4fa2a41.chunk.js +0 -1
- package/dist/scripts/7053-367c9fd75e.chunk.js +0 -1
- package/dist/scripts/7173-f13a6eaf95.chunk.js +0 -1
- package/dist/scripts/7251-6f904debb4.chunk.js +0 -2
- package/dist/scripts/8074-f41783a736.chunk.js +0 -1
- package/dist/scripts/8343-744924c708.chunk.js +0 -1
- package/dist/scripts/8420-feedc1737c.chunk.js +0 -1
- package/dist/scripts/8727-bcd1353109.chunk.js +0 -1
- package/dist/scripts/9167-653b78f15a.chunk.js +0 -1
- package/dist/scripts/9195-86ea4a2c6e.chunk.js +0 -1
- package/dist/scripts/9298-e7d4c8cdcd.chunk.js +0 -1
- package/dist/scripts/9355-805decfc74.chunk.js +0 -1
- package/dist/scripts/9383-db31c7a3f4.chunk.js +0 -1
- package/dist/scripts/9927-e6b59f3a6c.chunk.js +0 -1
- package/dist/scripts/bundle-5523d17860.min.js +0 -2
- package/dist/css/{435-library-editor-2ea33d243e.chunk.css → 5424-library-editor-2ea33d243e.chunk.css} +0 -0
- package/dist/css/{9298-library-editor-e65d819068.chunk.css → 6732-library-editor-e65d819068.chunk.css} +0 -0
- package/dist/css/{5967-library-editor-7417a89428.chunk.css → 708-library-editor-7417a89428.chunk.css} +0 -0
- package/dist/css/{9383-library-editor-d5cab29692.chunk.css → 9383-library-editor-898835bbbe.chunk.css} +2 -2
- /package/dist/scripts/{2704-2acb36a8e6.chunk.js.LICENSE.txt → 1601-52f8e3cec5.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3400-77e28c9a26.chunk.js → 3400-bd718e889d.chunk.js} +0 -0
- /package/dist/scripts/{4245-7ca37805e2.chunk.js → 4245-a4ab06b0e3.chunk.js} +0 -0
- /package/dist/scripts/{bundle-5523d17860.min.js.LICENSE.txt → 4973-f61032e6d9.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5418-eab2a58869.chunk.js → 5418-e74c7fda2f.chunk.js} +0 -0
- /package/dist/scripts/{7251-6f904debb4.chunk.js.LICENSE.txt → 5745-a8f263230f.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
.SlCu8{background-color:#f1f1f1}.NlTKl{z-index:1}.hFe3U svg{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:20%;color:#D7D7D7}
|
|
2
|
-
|
|
3
|
-
.mtegw{width:1rem;height:1rem}.mtegw svg{vertical-align:top}
|
|
4
|
-
|
|
5
|
-
.aroLz:hover{text-decoration:none}.ynoP4{font-weight:500}
|
|
6
|
-
|
|
7
|
-
.XKFne{min-width:8rem;min-height:calc(2.5 * .875rem)}
|
|
8
|
-
|
|
9
|
-
.Ubazj p,.rOhrX p{color:#D7D7D7}.Ubazj{background-color:#f8f8f8}.SiNm3 svg{color:#84868D}.SiNm3 svg:hover{color:#313543}.rOhrX .SiNm3 svg:hover{color:#D7D7D7}.MOpQI{cursor:pointer}.MOpQI .rOhrX{cursor:default}
|
|
10
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
.ggsOm{background-color:#F8981D;color:#fff;cursor:default}.CPfqH{color:#fff;cursor:default}.lp1lA{width:1.75rem;height:1.75rem;cursor:default;margin:0 -0.25rem}.lp1lA svg{vertical-align:text-bottom}.Jh1rs>span{vertical-align:middle}.M6hY4{background-color:rgba(255,205,82,0.3);cursor:default}.wkjr7{background-color:rgba(255,205,82,0.3);color:#d29500;cursor:default}.rScjU{background-color:rgba(217,88,79,0.25);color:#D9584F;cursor:default}
|
|
2
|
-
|
|
3
|
-
.TczXY{cursor:default}
|
|
4
|
-
|
|
5
|
-
.I7AaK{cursor:default}.avSZT{width:1.25rem;height:1.25rem;cursor:default}.avSZT svg{vertical-align:text-bottom}
|
|
6
|
-
|
|
7
|
-
.IEOid{cursor:default}
|
|
8
|
-
|
|
9
|
-
.VXWM3{white-space:nowrap}.etJKo{width:1.5rem;height:1.5rem}.etJKo svg{color:#5B5E68}.kwNUa{width:1.25rem;height:1.25rem}.kwNUa svg{color:#5B5E68}.gbBGB{font-weight:500}.Ykm_2{cursor:default;color:#D7D7D7 !important}.Ykm_2 .etJKo svg{color:#D7D7D7 !important}.Ykm_2 .etJKo svg:hover{color:#D7D7D7 !important}.Ykm_2 .gbBGB{color:#D7D7D7}.xqFbC{padding-left:36px;position:relative}.xqFbC .etJKo{position:absolute;left:.53125rem;top:50%;margin-top:-.75rem}
|
|
10
|
-
|
|
11
|
-
.xyPxU{color:#D7D7D7}.XMkZv{visibility:hidden;font-weight:600}
|
|
12
|
-
|
|
13
|
-
.dE3WC{background-color:#f1f1f1;color:#B5B5B5}.dE3WC:hover{background-color:#f1f1f1;color:#B5B5B5}
|
|
14
|
-
|
|
15
|
-
.vMHcA{font-weight:600}.xw6kv{width:1.25rem;height:1.25rem}
|
|
16
|
-
|
|
17
|
-
.sfB6X{width:1.25rem}.u9oVV{width:8rem;height:4.5rem}.jnomD{width:calc(100% - 19.75rem);vertical-align:top}.BjK6Z{width:10.5rem}.VSdyH .jnomD{width:calc(100% - 21rem)}.p5AgE:hover{background-color:#eef8ff}.p5AgE:hover .video-item-show-preview{visibility:visible}.OOtNp .p5AgE{background-color:#f1f1f1}.OOtNp .p5AgE:hover{background-color:#f1f1f1}.OOtNp .p5AgE .u9oVV{position:relative}.OOtNp .p5AgE .u9oVV:after{position:absolute;top:0;left:0;right:0;bottom:0;display:block;content:" ";background:rgba(255,255,255,0.5);z-index:1}.OOtNp.VSdyH .IU_AK{width:2.25rem}.h4Ml1{transition:height 0.3s ease-in-out;height:0;overflow:hidden}
|
|
18
|
-
|
|
19
|
-
.GYPuI{background-color:#fff;font-weight:bold;z-index:60;width:18rem;display:inline-block;border-radius:.25rem;line-height:1.5rem;box-shadow:0.1875rem 0.125rem 10px rgba(51,51,51,0.3)}.olYDa{vertical-align:middle;display:inline-block;width:1.5rem;height:1.5rem}.O53FV{vertical-align:middle;display:inline-block}
|
|
20
|
-
|
|
21
|
-
.bimhO{background-color:#f1f1f1 !important;position:relative}.bimhO:after{content:' ';position:absolute;top:0;left:0;right:0;bottom:0;display:inline-block;z-index:2;background-color:rgba(255,255,255,0.5)}
|
|
22
|
-
|
|
23
|
-
.OJoTp{width:1rem;height:1rem}
|
|
24
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
.zc6Jm .bhDh_:last-child{margin-bottom:-0.0625rem}.Mwkkb{background-color:#979797;color:#fff}
|
|
2
|
-
|
|
3
|
-
.knYPJ{font-weight:600}.nBq4d{margin-bottom:1rem}.F9VfV{height:1.5rem;position:relative;margin-top:-0.25rem}.F9VfV svg{width:1.5rem;height:1.5rem}.igMNQ span:after{content:','}.igMNQ span:last-child:after{content:''}
|
|
4
|
-
|
|
5
|
-
.GYPuI{background-color:#fff;font-weight:bold;z-index:60;width:18rem;display:inline-block;border-radius:.25rem;line-height:1.5rem;box-shadow:0.1875rem 0.125rem 10px rgba(51,51,51,0.3)}.olYDa{vertical-align:middle;display:inline-block;width:1.5rem;height:1.5rem}.O53FV{vertical-align:middle;display:inline-block}
|
|
6
|
-
|
|
7
|
-
.uMzLG{background-color:#eaeaea}.C8gyn{opacity:0.5}
|
|
8
|
-
|
|
9
|
-
.JTT7V .ekgGD{padding-left:1.25rem}.JTT7V .tFpUT{left:1rem;right:auto}.JTT7V .JTT7V .ekgGD{padding-left:2.5rem}.JTT7V .JTT7V .tFpUT{left:2.25rem;right:auto}.JTT7V .JTT7V .JTT7V .ekgGD{padding-left:3.75rem}.JTT7V .JTT7V .JTT7V .tFpUT{left:3.5rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:5rem}.JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:4.75rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:6.25rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:6rem;right:auto}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .ekgGD{padding-left:7.5rem}.JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .JTT7V .tFpUT{left:7.25rem;right:auto}.VmDO7{cursor:pointer}.VmDO7:hover{background-color:#eef8ff}.gxCnr .VmDO7:hover{background-color:#f8f8f8}.tFpUT{color:black;width:1.5rem;height:1.5rem;top:50%;margin-top:-.75rem;right:100%;transform:rotate(270deg);left:0}.ekgGD{display:block;padding:.25rem 0;overflow-wrap:break-word;padding-right:.625rem}.VmDO7 .tFpUT{left:.375rem}.UotqF>.tFpUT,.WHPA5>.tFpUT,.S2QPI>.tFpUT{transform:rotate(0deg)}.tntwp a .ekgGD,.tntwp a .tFpUT{color:#979797}.UotqF>div>a>.tFpUT,.WHPA5>div>a>.tFpUT,.S2QPI>div>a>.tFpUT{transform:rotate(0deg)}.UotqF.Po9s7>div>a>.tFpUT,.S2QPI.Po9s7>div>a>.tFpUT{transform:rotate(270deg)}.VmDO7>a{font-weight:500;padding:0.125rem .625rem;display:block}.VmDO7>a .ekgGD{padding-left:1.25rem;position:relative}.Sf28U svg{display:none}.Sf28U:hover{background-color:rgba(0,0,0,0.4)}.Sf28U:hover svg{opacity:1;color:#fff}.VmDO7>.Sf28U svg{display:inline-block}.VmDO7 .Sf28U{right:0}.JTT7V{list-style:none}.JTT7V .vm17w{max-width:100%;display:block;box-sizing:border-box;padding:0.125rem 1.25rem}.JTT7V .vm17w:hover{text-decoration:none}.JTT7V div .show svg{display:block}.VmDO7:hover>.Sf28U svg{display:block}.JTT7V div:hover .Sf28U svg{display:block}._xoJs ul{padding-left:0}._xoJs li{padding-left:0}._xoJs ul,._xoJs li{list-style:none;margin:0}.aMuxi:hover{background-color:#eef8ff}.gxCnr .aMuxi:hover{background-color:#f8f8f8}.UotqF>.aMuxi{background-color:#f8f8f8}
|
|
10
|
-
|
|
11
|
-
.tZUtI{text-align:left}.MxlSt{padding-left:0;margin-bottom:0}.qHvbU{cursor:pointer;max-height:24.75rem;overflow-y:scroll;width:100%}.aJzJB{background-color:#fff}.aJzJB:hover{background-color:#eef8ff}
|
|
12
|
-
|
|
13
|
-
.oKdKI{max-width:100%;max-height:50vh;overflow-y:scroll}.fTeoW{padding-right:2rem;overflow-y:hidden;cursor:pointer}.fTeoW::after{position:absolute;right:.75rem;top:50%;margin-top:-.15em}.gZbQ4{color:#B5B5B5;cursor:default}.gZbQ4 .fTeoW::after{color:#B5B5B5}
|
|
14
|
-
|
|
15
|
-
.fONDA{background-color:#f8f8f8}.jgNKp{color:#fff;border-radius:1rem}.YExjW{width:6rem}
|
|
16
|
-
|
|
17
|
-
.X2btX{border-radius:50%;background-color:#40BCC3;display:inline-block;width:2.1875rem;height:2.1875rem;text-align:center;line-height:2.1875rem;background-size:cover;background-position:top center;vertical-align:top}.O0vox{border-left:0.125rem solid #40BCC3}.u4gzP{background-color:#F8981D;color:#fff}
|
|
18
|
-
|
|
19
|
-
.QuZ0B{width:20rem}.keZrR{width:calc(100% - 20rem);vertical-align:top;margin-left:-0.0625rem}
|
|
20
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1010],{51010:function(e,t,n){"use strict";n.r(t),n.d(t,{DisableReviewView:function(){return k}});var r=n(21679),o=n(57857),i=n(31647),a=n(70065),u=n(52076),l=n(88172),c=n(10101),s=n(61843),f=n(9484),p=n(30305),y=n(67670),h=n(17654),b=n.n(h);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function w(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(R,e);var t,n,h,v,k=(h=R,v=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=O(h);if(v){var n=O(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return w(this,e)});function R(){return d(this,R),k.apply(this,arguments)}return t=R,(n=[{key:"initialize",value:function(){this.bindListeners(),this.settingsDataService=r.u.getInstance(p.Or.Settings,this),this.contentUpdatesDataService=r.u.getInstance(p.Or.ContentUpdates,this)}},{key:"name",get:function(){return"DisableReviewView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"template",get:function(){return b()}},{key:"lang",get:function(){return"contentUpdates.disableReview"}},{key:"channelName",get:function(){return s.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:o.T.getPhrase(this.lang,"heading"),behaviorClass:c.Yw,spinnerButtonOptions:{model:this.spinnerModel=new y.v,channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"offBtn"),onClick:function(){return e.onClickDisable()}}}]}},{key:"bindListeners",value:function(){this.listenTo(p.Vk.VIDEO,"".concat(p.M_.VIDEOS_TO_REVIEW,":sync"),this.render)}},{key:"videosToReview",value:function(){return!!this.videoCollection&&!!this.videoCollection.length}},{key:"onClickDisable",value:function(){this.videosToReview()?this.approveAllThenDisableReview():this.disableReview(),this.triggerMethod("hide")}},{key:"approveAllThenDisableReview",value:function(){var e=this;this.contentUpdatesDataService.approveAllVideos((function(){return e.disableReview()}))}},{key:"disableReview",value:function(){var e=s.xN.getLibraryReviewOptions(!1);this.settingsDataService.updateSetting(this.currentUser.get("customerId"),e,o.T.getPhrase(this.lang,"disableSuccess"),this.redirectToPastReleases),this.logAction()}},{key:"redirectToPastReleases",value:function(){i.Q.AppLinkHelper.trigger({application:p.OV.CONTENT_UPDATES,action:p.eX.ContentUpdates.PAST_RELEASES})}},{key:"logAction",value:function(){var e={location:a.LocationContext.Popup,actionType:a.UserAction.Disable,entity:a.EntityType.CustomerSetting,descriptor:a.CustomerSettingDescriptor.LibraryReview,workflowPhase:a.WorkflowPhase.Complete},t={approvedCount:this.videoCollection.length};u.k.logUserAction(t,e)}},{key:"requiredResources",get:function(){return{currentUser:f.K.currentUser}}},{key:"onBeforeRender",value:function(){this.videoCollection=this.contentUpdatesDataService.getVideosToReview(),this.videoCollection&&this.spinnerModel.set(l.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{videosToReview:this.videosToReview(),dataFetched:!!this.videoCollection,spinnerEl:s.Kp.getSpinner({size:s.Ey.Large,extraClasses:"mx-auto"})}}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),R}(i.Q.View)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});var r=n(31647),o=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function s(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(y,e);var t,n,r,i,p=(r=y,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function y(){return u(this,y),p.apply(this,arguments)}return t=y,(n=[{key:"defaults",value:function(){var e;return a(e={},o.ZV.Disabled,!0),a(e,o.ZV.Hidden,!1),e}}])&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(r.Q.Model)},17654:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing,l=e.escapeExpression;return'<p class="m-0 pb-2">'+l((n.lang||t&&t.lang||u).call(a,"noReview",{name:"lang",hash:{},data:o}))+"</p>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.videosToReview:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+'<p class="m-0">'+l((n.lang||t&&t.lang||u).call(a,"undoInstructions",{name:"lang",hash:{},data:o}))+"</p>\r\n"},4:function(e,t,n,r,o){return e.propertyIsEnumerable,'<p class="m-0 pb-2">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"automaticApproval",{name:"lang",hash:{},data:o}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1409],{71641:function(e,t,n){"use strict";n.d(t,{w:function(){return f}});var r=n(39479),o=n(31647),i=n(55142);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function l(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(p,e);var t,n,o,c,f=(o=p,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=a(o);if(c){var n=a(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.call(this,e)}return t=p,n=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return i.N}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}],n&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.Q.ComponentCollection)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});var r=n(31647),o=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function a(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(d,e);var t,n,r,i,p=(r=d,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return a(this,e)});function d(){return u(this,d),p.apply(this,arguments)}return t=d,(n=[{key:"defaults",value:function(){var e;return c(e={},o.ZV.Disabled,!0),c(e,o.ZV.Hidden,!1),e}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(r.Q.Model)},31409:function(e,t,n){"use strict";n.r(t),n.d(t,{RestrictAccessView:function(){return be}});var r=n(39479),o=n(48088),i=n(31647),c=n(21679),u=n(57857),s=n(6681),l=n(56210),a=n(87262),f=n(25692),p=n(67670),d=n(10101),y=n(70065),h=n(52076),b=n(61843),g=n(13052),m=n(30305),v=n(9484),w=n(48404),O=n(17422),k=n(88172),S=n(71641),j=n(28492),C=n.n(j);function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function _(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(c,e);var t,n,r,o,i=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=I(r);if(o){var n=I(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _(this,e)});function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){var e=this.model?this.model.get("id"):"";b.yV.setSelected(e,this.collection),this.listenTo(this.options.channelName,this.options.eventName,this.onSelect)}},{key:"name",get:function(){return"DropdownComponent"}},{key:"template",get:function(){return C()}},{key:"className",get:function(){return this.options.buttonClass?"select-channel ".concat(this.options.buttonClass):"select-channel"}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"onSelect",value:function(e){b.yV.setSelected(e.get("id"),this.collection),this.render()}},{key:"viewOptions",value:function(){var e=b.yV.getSelected(this.collection);return Object.assign({selected:e&&e.get("name")},this.options)}},{key:"getIsOptionDisabledFn",value:function(){var e=b.yV.getSelected(this.collection),t=e&&e.id;return function(){return!!t&&(t=t.toString(),this.model.get("id").toString()===t)}}},{key:"renderChannelDropdown",value:function(){this.showChildView("dropdown",new S.w({collection:this.collection,channelName:this.options.channelName,childOptions:{titleProperty:this.options.titleProperty,isDisabled:this.getIsOptionDisabledFn(),eventName:this.options.eventName},displayOptions:this.options.displayOptions,analyticsHelper:this.options.analyticsHelper}))}},{key:"onRender",value:function(){this.renderChannelDropdown()}}])&&R(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.Q.Component),V={select:"iQmg0",selectButton:"T67RV",svgContainer:"bNfyr",groupButton:"YOe2E",groupButtons:"q45Xi",groupButtonSelected:"FU9Dm",buttonDisabled:"UTSW5",mediumWeight:"CexaV"},N=n(26033),x=n.n(N);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G(e,t,n){return t&&B(e.prototype,t),n&&B(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(e,t)}function U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},U(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q(e);if(t){var o=Q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Y(this,n)}}function Y(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Q(e){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Q(e)}var L=function(e){M(n,e);var t=F(n);function n(){return D(this,n),t.apply(this,arguments)}return G(n,[{key:"name",get:function(){return"RestrictAccessYearGroupItemView"}},{key:"className",get:function(){var e="btn text-center p-0 pb-1 pt-1 ".concat(V.groupButton);return this.model.get("selected")&&(e+=" ".concat(V.groupButtonSelected)),e}},{key:"tagName",get:function(){return"button"}},{key:"attributes",get:function(){var e=100/this.model.collection.length;return{type:"button",style:"width: ".concat(e,"%")}}},{key:"template",get:function(){var e=this.model.get("year");return"<span>".concat(e,"</span>")}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){o.Radio.channel(this.options.channelName).trigger("group:selected",this.model)}}]),n}(i.Q.Component),Z=function(e){M(n,e);var t=F(n);function n(){return D(this,n),t.apply(this,arguments)}return G(n,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"RestrictAccessYearGroupComponentCollection"}},{key:"className",get:function(){return"btn-group w-100 ".concat(V.groupButtons)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"childView",get:function(){return L}},{key:"childViewOptions",get:function(){return{channelName:this.channelName}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"group:selected",this.onYearGroupSelected)}},{key:"onYearGroupSelected",value:function(e){this.collection.each((function(t){return t.set("selected",t.get("groupId")<=e.get("groupId"))})),this.model.set("groupId",e.get("groupId")),this.model.set("yearGroup",e.get("groupId")),this.render()}},{key:"onBeforeRender",value:function(){var e=this.model.get("yearGroup")||this.model.get("groupId");e&&(this.collection.each((function(t){return t.set("selected",t.get("groupId")<=e)})),this.model.set("groupId",e))}}]),n}(i.Q.CollectionView),H=function(e){M(n,e);var t=F(n);function n(){return D(this,n),t.apply(this,arguments)}return G(n,[{key:"initialize",value:function(){this.configDataService=c.u.getInstance(m.Or.Config,this)}},{key:"name",get:function(){return"RestrictAccessGroupComponent"}},{key:"lang",get:function(){return"shared.restrictAccess"}},{key:"props",get:function(){return["configDataService","currentUser"]}},{key:"template",get:function(){return x()}},{key:"bindings",get:function(){var e=this;return{"[name=year]":{observe:"groupId",onGet:function(t){return e.buildGroupMessage(t)},updateMethod:"html",escape:!1}}}},{key:"regions",value:function(){return{yearGroupList:{replaceElement:!0,el:".year-group-region"}}}},{key:"requiredResources",get:function(){return{currentUser:v.K.currentUser}}},{key:"viewOptions",value:function(){return{styles:V}}},{key:"onBeforeRender",value:function(){var e=this;this.yearGroups||this.getYearGroups(),r.some(this.yearGroups,(function(t){return t.groupId===e.model.get("groupId")}))||this.model.set("groupId",void 0)}},{key:"onRender",value:function(){this.stickit(),this.showChildView("yearGroupList",new Z({model:this.model,collection:new i.Q.Collection(this.yearGroups)}))}},{key:"onBeforeDestroy",value:function(){this.unstickit()}},{key:"getYearGroups",value:function(){var e=this,t=this.configDataService.getCustomerYearGroups(this.currentUser.get("countryCode"));this.yearGroups=[],r.keys(O.lA).forEach((function(n){var o=parseInt(n,10);if(!r.isNaN(o)&&r.contains(t,o)){var i=o===O.lA.Kindergarten?"K":O.lA[o].replace("Year","Y");e.yearGroups.push({year:i,groupId:o})}}))}},{key:"buildGroupMessage",value:function(e){if(e){var t=b.S9.mapYearGroupToName(e);return u.T.getPhrase(this.lang,"selectedYearGroups",{classNames:V.mediumWeight,groupName:t})}return u.T.getPhrase(this.lang,"selectYearGroups")}}]),n}(i.Q.Component);function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e,t){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},W(e,t)}function $(e,t){if(t&&("object"===z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function J(e){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},J(e)}var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}(c,e);var t,n,r,o,i=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=J(r);if(o){var n=J(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return $(this,e)});function c(){return K(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"name",get:function(){return"RestrictAccessComponent"}},{key:"template",get:function(){return"<p>".concat(this.getTemplateText(),"</p>")}},{key:"lang",get:function(){return"shared.restrictAccess"}},{key:"getTemplateText",value:function(){return u.T.getPhrase(this.lang,"groupNoAccess",{groupName:b.S9.mapYearGroupToName(this.model.get("groupId"))})}}])&&q(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.Q.Component);function ee(e){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(e)}function te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function re(e,t){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},re(e,t)}function oe(e,t){if(t&&("object"===ee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ie(e)}var ce,ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&re(e,t)}(c,e);var t,n,r,o,i=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ie(r);if(o){var n=ie(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return oe(this,e)});function c(){return te(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"name",get:function(){return"RestrictAccessNoneComponent"}},{key:"template",get:function(){return"<p>".concat(this.getTemplateText(),"</p>")}},{key:"lang",get:function(){return"shared.restrictAccess"}},{key:"getTemplateText",value:function(){return u.T.getPhrase(this.lang,"noGroupSelected")}}])&&ne(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.Q.Component),se=n(59047),le=n.n(se),ae=n(264);function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e,t){return de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},de(e,t)}function ye(e,t){if(t&&("object"===fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function he(e){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},he(e)}!function(e){e.None="Select a group...",e.Students="Students",e.Groups="Certain year groups",e.All="Students and staff"}(ce||(ce={}));var be=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&de(e,t)}(P,e);var t,n,S,j,C=(S=P,j=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=he(S);if(j){var n=he(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ye(this,e)});function P(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,P),C.call(this,e)}return t=P,(n=[{key:"initialize",value:function(){this.restriction=new g.g({groupId:O.lA.Students}),this.selected=ce.None,this.bindListeners(),this.videoDataService=c.u.getInstance(m.Or.Video,this),this.restrictedVideoDataService=c.u.getInstance(m.Or.RestrictedVideo,this),this.videoMixinService=c.u.getInstance(m.K9.VideoMixin,this)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"dropdown:selected",this.onOptionSelected),this.listenTo(this.restriction,"change:groupId",this.onGroupChanged),this.listenTo(m.Vk.VIDEO,"".concat(m.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(m.Vk.RESTRICTED_VIDEO,"".concat(m.M_.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render)}},{key:"name",get:function(){return"RestrictAccessView"}},{key:"title",get:function(){return u.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"shared.restrictAccess"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"channelName",get:function(){return b.N0.generateUniqueChannelName(this)}},{key:"template",get:function(){return le()}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:d.Yw,title:u.T.getPhrase(this.lang,"popupHeading"),modalClasses:V.modal,hideCloseButton:!0,size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new p.v,buttonText:u.T.getPhrase(this.lang,"updateAccess"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}},buttons:[{text:u.T.getPhrase(this.lang,"allowFullAccess"),getClassName:function(){return e.getAllowFullAccessBtnClassName()}}]},{behaviorClass:l.H,selector:".".concat(V.svgContainer),title:u.T.getPhrase(this.lang,"findOutMore")}]}},{key:"elements",get:function(){return{submit:"submit"}}},{key:"events",value:function(){return{submit:"onSubmit","click .allow-full-access":"onAllowFullAccess"}}},{key:"regions",value:function(){return{dropdown:".dropdown-region",accessView:{replaceElement:!0,el:".access-view-region"}}}},{key:"getAllowFullAccessBtnClassName",value:function(){var e="btn btn-link cursor-pointer mr-2 allow-full-access";return this.dataFetched()&&!this.spinnerModel.get(k.ZV.ShowSpinner)||(e+=" disabled"),e}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.dataFetched()&&this.spinnerModel.get(k.ZV.Disabled))return{title:u.T.getPhrase(this.lang,"selectYear")}}},{key:"onOptionSelected",value:function(e){this.refreshRestriction();var t=this.getAccessView(e.get("name"));this.spinnerModel.set(k.ZV.Disabled,e.get("name")===ce.None),this.showChildView("accessView",new t({model:this.restriction,currentUser:this.currentUser})),this.renderDropdown()}},{key:"onGroupChanged",value:function(e){this.isRendered()&&this.spinnerModel.set(k.ZV.Disabled,r.isUndefined(e.get("groupId")))}},{key:"getAccessView",value:function(e){switch(this.selected=e,e){case ce.None:return ue;case ce.Students:return this.restriction.set("groupId",O.lA.Students),X;case ce.Groups:return H;case ce.All:return this.restriction.set("groupId",O.lA.All),X}}},{key:"getSelection",value:function(e){switch(e){case O.lA.All:case O.lA.Staff:return ce.All;case O.lA.Students:return ce.Students;default:return ce.Groups}}},{key:"refreshRestriction",value:function(){if(this.restrictedObjectCollection&&this.restrictedObjectCollection.length&&this.model){this.videoMixinService.mixinVideoRestriction(this.model,this.restrictedObjectCollection);var e=this.model.restrictions.last();e&&r.isNumber(e.get("groupId"))&&(this.restriction.set("groupId",e.get("groupId")),this.selected=this.getSelection(e.get("groupId")))}}},{key:"onSubmit",value:function(e){var t=this;if(e&&e.preventDefault(),r.isUndefined(this.restriction.get("groupId")))return!1;o.Radio.channel(this.channelName).trigger(k.I3.ShowSpinner),this.restrictedVideoDataService.updateVideoRestriction(this.options.videoId,this.restriction.get("groupId"),this.currentUser.get("customerId"),this.currentUser.get("id"),(function(){t.triggerMethod("hide"),o.Radio.channel(m.Vk.RESTRICTED_VIDEO).trigger("cache:cleared")})),this.logAction(this.restriction.get("groupId"))}},{key:"onAllowFullAccess",value:function(){this.dataFetched()&&!this.spinnerModel.get(k.ZV.ShowSpinner)&&(this.spinnerModel.set(k.ZV.Disabled,!0),this.restriction.set("groupId",O.lA.All),this.restrictedVideoDataService.deleteVideoRestriction(this.options.videoId,(function(){o.Radio.channel(m.Vk.RESTRICTED_VIDEO).trigger("cache:cleared")})),this.triggerMethod("hide"),this.logAction())}},{key:"logAction",value:function(e){var t={location:y.LocationContext.Popup,actionType:y.UserAction.SetAccess,entity:y.EntityType.Video,workflowPhase:y.WorkflowPhase.Complete},n={id:this.model.get("id"),restriction:!!r.isNumber(e)&&O.lA[e]};h.k.logUserAction(n,t)}},{key:"dataFetched",value:function(){return!!this.model&&!!this.restrictedObjectCollection}},{key:"renderDropdown",value:function(){var e=this;this.collection=new i.Q.Collection([{name:ce.None},{name:ce.Students},{name:ce.Groups},{name:ce.All}]),this.collection.each((function(t){return t.set("selected",t.get("name")===e.selected)})),this.showChildView("dropdown",new E({titleProperty:"name",eventName:"dropdown:selected",buttonId:"select-btn",collection:this.collection,channelName:this.channelName,buttonClass:V.selectButton,displayOptions:{extraClasses:"w-100"},analyticsHelper:h.k}))}},{key:"requiredResources",get:function(){return{config:w.p.config,currentUser:v.K.currentUser}}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId),this.restrictedObjectCollection=this.restrictedVideoDataService.getVideoRestrictions([this.options.videoId]),this.model&&this.restrictedObjectCollection&&this.refreshRestriction(),this.dataFetched()&&this.spinnerModel.set(k.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){var e,t;return{styles:V,supportUrl:!ae.g.hasLite&&a.o.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),f.w.VideoAccess,null===(t=this.currentUser)||void 0===t?void 0:t.get("countryCode")),svg:s.Nj.getSvg(s.vn.Info),dataFetched:this.dataFetched(),spinnerEl:b.Kp.getSpinner({size:b.Ey.Large,extraClasses:"mx-auto"}),restrictFromLabel:u.T.getPhrase(this.lang,"popupSubheading")}}},{key:"onRender",value:function(){this.dataFetched()&&(this.renderDropdown(),this.onOptionSelected(new i.Q.Model({name:this.selected})))}}])&&pe(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),P}(i.Q.View)},28492:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.lambda,u=e.escapeExpression;return'<label for="'+u(c(null!=(i=null!=t?t.options:t)?i.buttonId:i,t))+'" class="control-label">'+u(c(null!=(i=null!=t?t.options:t)?i.labelText:i,t))+"</label>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.lambda,u=e.escapeExpression;return(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.labelText:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<button class="dropdown-toggle form-control btn-block text-left '+u(c(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+'" type="button" id="'+u(c(null!=(i=null!=t?t.options:t)?i.buttonId:i,t))+'" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+u(c(null!=(i=null!=t?t.options:t)?i.selected:i,t))+'\r\n</button>\r\n<div class="dropdown-menu-region"></div>'},useData:!0})},59047:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.lambda,u=e.escapeExpression;return'<div class="d-flex align-items-center">\r\n<label class="control-label m-0 pb-2">'+u(c(null!=(i=null!=t?t.options:t)?i.restrictFromLabel:i,t))+"</label>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.supportUrl:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="dropdown-region '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.select:i,t))+' mb-3"></div>\r\n<div class="access-view-region"></div>\r\n'},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.lambda,u=e.escapeExpression;return'<a \r\n class="d-inline-block ml-1 mb-3 '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'"\r\n title="'+u((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"findOutMore",{name:"lang",hash:{},data:o}))+'"\r\n href="'+u(c(null!=(i=null!=t?t.options:t)?i.supportUrl:i,t))+'" \r\n target="_blank"\r\n>\r\n '+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"\r\n</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},26033:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="year-group-region"></div>\r\n<div name="year" class="mt-3"></div>'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1832],{21832:function(e,t,n){"use strict";n.r(t),n.d(t,{GeneratePdfView:function(){return _}});var r=n(48088),i=n(31647),o=n(21679),c=n(57857),a=n(70065),l=n(52076),s=n(77502),u=n(10101),f=n(88172),h=n(67670),p=n(9484),y=n(30305),d=n(61843),b=n(56906),v=n(44634),g=n.n(v),m={image:"Di3M6"};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}function E(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(T,e);var t,n,v,O,_=(v=T,O=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=k(v);if(O){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return E(this,e)});function T(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,T),_.call(this,e)}return t=T,(n=[{key:"initialize",value:function(){this.collectionIdentifier=this.options.collectionIdentifier,this.libraryDataService=o.u.getInstance(y.Or.Library,this),this.videoDataService=o.u.getInstance(y.Or.Video,this),this.exportDataService=o.u.getInstance(y.Or.Export,this),this.bindListeners()}},{key:"name",get:function(){return"GeneratePdfView"}},{key:"title",get:function(){return c.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.generatePdf"}},{key:"template",get:function(){return g()}},{key:"channelName",get:function(){return d.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return[{behaviorClass:u.Yw,title:c.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new h.v,saveEvent:"generate:pdf",channelName:this.channelName,buttonText:c.T.getPhrase(this.lang,"generate"),extraButtonClass:"btn-dark",spinnerOptions:{size:d.Ey.Small,type:d.dR.Light,extraClasses:"mx-auto"}}}]}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"generate:pdf",this.onClickGeneratePdf),this.listenTo(y.Vk.LIBRARY,"".concat(y.M_.FOLDER,":").concat(this.collectionIdentifier.id,":sync"),this.render),this.listenTo(y.Vk.VIDEO,"".concat(this.collectionIdentifier.toString(),":sync"),this.render),this.listenTo(y.Vk.EXPORT,"".concat(y.M_.GENERATE_COLLECTION_PDF,":").concat(this.collectionIdentifier.id,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"onClickGeneratePdf",value:function(){this.hasDataFetched()&&(r.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner),this.exportDataService.generateCollectionPdf(this.library.id,this.collectionIdentifier.id,this.currentUser,this.collectionIdentifier.sort),this.logAction(this.collectionIdentifier.id,this.collectionIdentifier.sort))}},{key:"fetchData",value:function(){var e=this;this.videos=this.videoDataService.getCollectionVideos(this.collectionIdentifier),this.model=this.libraryDataService.getFolder(this.collectionIdentifier.id),this.library||this.libraryDataService.getLibraries((function(t){e.library=d.PU.getLibrary(e.collectionIdentifier.id,t),e.render()}))}},{key:"logAction",value:function(e,t){var n={location:a.LocationContext.Popup,actionType:a.UserAction.Create,entity:a.EntityType.PDF,workflowPhase:a.WorkflowPhase.Complete},r={id:e,sort:s.E[t]};l.k.logUserAction(r,n)}},{key:"hasDataFetched",value:function(){return!!this.model&&!!this.videos&&!!this.library}},{key:"requiredResources",get:function(){return{currentUser:p.K.currentUser}}},{key:"onBeforeRender",value:function(){var e=this;return this.fetchData(),!!this.hasDataFetched()&&(this.videos&&!this.videos.length?(window.setTimeout((function(){e.triggerMethod("hide"),i.Q.ErrorHelper.throw(new b.Xz(c.T.getPhrase(e.lang,"errorHeading")))}),y.pA.POPUP_FADE_TIMEOUT),!1):(this.hasDataFetched()&&this.spinnerModel.set(f.ZV.Disabled,!1),!0))}},{key:"viewOptions",value:function(){return{dataFetched:this.hasDataFetched(),spinnerEl:d.Kp.getSpinner({size:d.Ey.Large,extraClasses:"mx-auto"}),imageUrl:y.Wn.Shared.GENERATE_PDF,infoText:c.T.getPhrase(this.lang,"info",{name:this.model.get("name"),email:this.currentUser.get("email"),escapeText:!0}),styles:m}}}])&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),T}(i.Q.View)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return h}});var r=n(31647),i=n(88172);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(p,e);var t,n,r,o,h=(r=p,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(o){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function p(){return a(this,p),h.apply(this,arguments)}return t=p,(n=[{key:"defaults",value:function(){var e;return c(e={},i.ZV.Disabled,!0),c(e,i.ZV.Hidden,!1),e}}])&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(r.Q.Model)},44634:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.spinnerEl:o,t))?o:"")+"\r\n"},3:function(e,t,n,r,i){e.propertyIsEnumerable;var o,c=e.lambda,a=e.escapeExpression;return'<div class="pb-3 text-center">\r\n <img src="'+a(c(null!=(o=null!=t?t.options:t)?o.imageUrl:o,t))+'" class="'+a(c(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.image:o,t))+'" />\r\n</div>\r\n<p class="m-0">'+(null!=(o=c(null!=(o=null!=t?t.options:t)?o.infoText:o,t))?o:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=n.unless.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.dataFetched:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?o:""},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2098],{44391:function(t,e,n){"use strict";n.d(e,{K:function(){return O}});var o=n(31647),i=n(11306),r=n(48088),a=n(30305),s=n(26457),l=n(15564),c=n.n(l);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function h(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(u,t);var e,n,o,i,l=(o=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=d(o);if(i){var n=d(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return h(this,t)});function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,t)}return e=u,(n=[{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===s.Dm.Link?"a":"span"}},{key:"className",get:function(){var t="".concat(this.options.orientation===s.zM.Vertical?"":" d-inline-flex"),e="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===s.Dm.Disabled?" ".concat("dE3WC"):""),o="".concat(this.options.behavior===s.Dm.Filter?" cursor-pointer":"");return"badge-pill tag py-1 px-2 my-1 mr-1".concat(o).concat(t).concat(e).concat(n)}},{key:"template",get:function(){return c()}},{key:"elements",get:function(){return{close:".close"}}},{key:"appLinks",get:function(){return this.options.behavior!==s.Dm.Link?{}:{"[this]":{application:a.OV.SEARCH,action:a.eX.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:s.Dm.Link,orientation:s.zM.Flex}}},{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===s.Dm.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==s.Dm.Filter){var t=this.model.pick("id","name","remove"),e=t.id,n=t.name;return!!t.remove||!e||!n}}},{key:"onRemoveTag",value:function(t){if(t.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),r.Radio.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(){this.options.behavior!==s.Dm.Filter||this.options.removeEvent||r.Radio.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent}}},{key:"onRender",value:function(){this.resetClassName()}}])&&p(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(o.Q.Component);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function v(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}var O=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(c,t);var e,n,r,a,l=(r=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=k(r);if(a){var n=k(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return v(this,t)});function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),l.call(this,t)}return e=c,(n=[{key:"initialize",value:function(){this.options.behavior!==s.Dm.Edit||this.options.removeEvent||o.Q.ErrorHelper.throw(new i.H("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:s.zM.Flex}}},{key:"className",get:function(){var t="".concat(this.options.orientation===s.zM.Vertical?" d-flex align-items-start flex-column":"");return"tags".concat(t)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return y}}])&&g(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),c}(o.Q.ComponentCollection)},66882:function(t,e,n){"use strict";n.d(e,{R:function(){return M}});var o=n(31647),i=n(57857),r=n(70065),a=n(52076),s=n(6681),l=n(39479),c=n(56210),u=n(37106),p=n.n(u),f={actions:"VXWM3",svgContainer:"etJKo",moreSvgContainer:"kwNUa",actionName:"gbBGB",disabled:"Ykm_2",iconButton:"xqFbC"};function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function g(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function k(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=w(t);if(e){var i=w(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return O(this,n)}}function O(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}var E=function(t){b(n,t);var e=k(n);function n(t){return y(this,n),e.call(this,t)}return g(n,[{key:"name",get:function(){return"VideoActionItemComponent"}},{key:"template",get:function(){return p()}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){if(!this.model.get("href"))return{}}},{key:"className",get:function(){var t="cursor-pointer";return this.options.showLabel?t+=" ".concat(f.iconButton," btn btn-outline-dark ml-2"):t+=" d-inline-block px-1 no-decoration",this.model.get("isDisabled")&&(t+=" ".concat(f.disabled)),t}},{key:"events",value:function(){return{click:"onClick"}}},{key:"behaviors",get:function(){var t=(!this.options.showLabel||this.options.model.get("isDisabled"))&&this.options.model.get("tooltipText");if(t)return[{behaviorClass:c.H,title:t}]}},{key:"appLinks",get:function(){return!this.model.get("appLink")||this.model.get("isDisabled")?{}:{"[this]":this.model.get("appLink")}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var t,e,n=this.model.get("appLink");if(l.isObject(n)){var o=(t=n.args,e=1,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,r=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(r.push(o.value),!e||r.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return r}}(t,e)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];a.k.logUserAction({id:o},this.model.get("analyticsOptions"))}}},{key:"viewOptions",value:function(){return{styles:f,showLabel:this.options.showLabel,additionalClassName:this.model.get("isDisabled")?"disabled":"cursor-pointer"}}}]),n}(o.Q.Component),S=function(t){b(n,t);var e=k(n);function n(t){return y(this,n),e.call(this,t)}return g(n,[{key:"name",get:function(){return"VideoActionsComponentCollection"}},{key:"childView",get:function(){return E}},{key:"childViewOptions",get:function(){return{showLabel:this.options.showActionLabels}}}]),n}(o.Q.ComponentCollection),C=n(71641),T=n(30305),P=n(61843),j=n(264),_=n(89707),A=n(26457),L=n(59168),D=n.n(L);function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function x(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function V(t,e){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},V(t,e)}function I(t,e){if(e&&("object"===R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function N(t){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},N(t)}var M=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&V(t,e)}(p,t);var e,n,l,c,u=(l=p,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=N(l);if(c){var n=N(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return I(this,t)});function p(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,t)}return e=p,(n=[{key:"name",get:function(){return"VideoActionsComponent"}},{key:"template",get:function(){return D()}},{key:"lang",get:function(){return"shared.videoActions"}},{key:"className",get:function(){return f.actions}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",moreActions:".more-actions-region"}}},{key:"regions",value:function(){return{actions:{el:".actions-region"},moreActions:{el:"@ui.moreActions",replaceElement:!1}}}},{key:"events",value:function(){return{click:"onClick","click @ui.dropdownToggle":"onClickMore","click @ui.moreActions":"onClickMore"}}},{key:"onClick",value:function(t){t.stopPropagation()}},{key:"onClickMore",value:function(){this.renderMoreActions(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"getActions",value:function(){return new o.Q.Collection([{title:i.T.getPhrase(this.lang,"share"),svg:s.Nj.getSvg(s.vn.Share2),isDisabled:!P.BK.canShareVideo(this.model,this.options.application),tooltipText:P.BK.canShareVideo(this.model,this.options.application)?i.T.getPhrase(this.lang,"share"):P.BK.getSharePermissionsMessage(this.model,this.options.application),appLink:j.g.hasLite?{application:this.options.application,action:T.eX.Shared.SHARE,args:[this.model.get("id")],params:{entityType:"video"}}:{application:this.options.application,action:T.eX.Shared.SHARE_VIDEO,args:[this.model.get("id")]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Share,eventVersion:r.EventVersion.V3})},{title:i.T.getPhrase(this.lang,"edit"),svg:P.BK.canEditVideo(this.model)?s.Nj.getSvg(s.vn.Edit):s.Nj.getSvg(s.vn.EditClickView),tooltipText:this.getEditTooltip(),appLink:{application:T.OV.LIBRARY_EDITOR,action:T.eX.LibraryEditor.EDIT_VIDEO,args:[this.model.get("id")]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Edit,workflowPhase:r.WorkflowPhase.Start})}])}},{key:"getEditTooltip",value:function(){return P.BK.canEditVideo(this.model)?i.T.getPhrase(this.lang,"edit"):P.M2.isExchangeVideo(this.model)?i.T.getPhrase(this.lang,"linkedToExchange"):i.T.getPhrase(this.lang,"linkedToCv")}},{key:"getFolderSourceId",value:function(){return this.options.collectionSource===A.x_.Folder?this.options.collectionIdentifier.id:this.model.get("categories").first().get("id")}},{key:"getMoreActions",value:function(){var t=[];this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"move"),appLink:{application:this.options.application,action:T.eX.Shared.MOVE_VIDEOS,args:[this.model.get("id").toString(),this.getFolderSourceId()]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Move,descriptor:r.OperationDescriptor.Single,workflowPhase:r.WorkflowPhase.Start})}),j.g.hasLite||t.push({title:i.T.getPhrase(this.lang,"manageAccess"),appLink:{application:this.options.application,action:T.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString()]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.SetAccess,workflowPhase:r.WorkflowPhase.Start})}),this.options.application===T.OV.CONTENT_UPDATES&&this.options.customerHasCustomLibrary&&t.push({title:i.T.getPhrase(this.lang,"addToLibrary"),appLink:{application:this.options.application,action:T.eX.ContentUpdates.ADD_TO_LIBRARY,args:[this.model.get("id").toString()]}});var e="videos/".concat(this.model.get("id"));if(t.push({title:i.T.getPhrase(this.lang,"openInStaffView"),href:_.k.getMainProductUrl(this.options.config,e,e),external:!0,icon:s.Nj.getSvg(s.vn.NewWindow),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Click,descriptor:r.ClickDescriptor.OpenInStaffView})}),this.options.application!==T.OV.CONTENT_UPDATES){var n=P.BK.canDownloadVideo(this.model);t.push({title:i.T.getPhrase(this.lang,"download"),disabled:!n,classes:n?"":"".concat(f.disabled),tooltip:n?null:{title:i.T.getPhrase(this.lang,"cannotDownload"),placement:"left"},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Download}),appLink:n?{application:this.options.application,action:T.eX.Shared.DOWNLOAD_VIDEO,args:[this.model.id.toString()]}:null})}return this.options.customerHasExchange&&P.BK.canAddToExchange(this.model)&&!j.g.hasLite&&t.push({title:i.T.getPhrase(this.lang,"addToExchange"),appLink:{application:this.options.application,action:T.eX.LibraryEditor.ADD_TO_EXCHANGE,args:[this.model.get("id").toString()]}}),this.options.customerHasLocalCache&&!j.g.hasLite&&t.push({title:i.T.getPhrase(this.lang,"localCache"),appLink:{application:this.options.application,action:T.eX.Shared.DOWNLOAD_TO_LOCAL_CACHE,args:[this.model.id.toString()]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.AddToLocalCache})}),this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"remove"),appLink:{application:this.options.application,action:T.eX.Shared.DELETE_VIDEOS,args:[this.getFolderSourceId(),this.model.get("id").toString()],params:{routeToFolderOnDelete:this.options.routeToFolderOnDelete}},classes:"text-danger",analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Delete,descriptor:r.OperationDescriptor.Single,workflowPhase:r.WorkflowPhase.Start})}),new o.Q.Collection(t)}},{key:"renderActions",value:function(){this.showChildView("actions",new S({collection:this.getActions(),showActionLabels:this.options.showActionLabels}))}},{key:"renderMoreActions",value:function(){this.moreActionsRendered||(this.moreActionsRendered=!0,this.showChildView("moreActions",new C.w({displayOptions:{alignment:"right"},channelName:this.channelName,collection:this.getMoreActions(),childOptions:{isDisabled:function(){return this.model.get("disabled")},getTooltip:function(){return this.options.model.get("tooltip")}},analyticsHelper:a.k})))}},{key:"viewOptions",value:function(){return{styles:f,moreSvg:s.Nj.getSvg(s.vn.More),showLabel:this.options.showActionLabels}}},{key:"onRender",value:function(){this.moreActionsRendered=!1,this.renderActions()}}])&&x(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),p}(o.Q.Component)},7427:function(t,e,n){"use strict";n.d(e,{V:function(){return d}});var o=n(31647),i=n(30305),r=n(61843),a=n(25205),s=n.n(a),l={sourceLabel:"TczXY"};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function f(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(d,t);var e,n,o,a,c=(o=d,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=h(o);if(a){var n=h(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return f(this,t)});function d(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.call(this,t)}return e=d,(n=[{key:"name",get:function(){return"VideoSourcesMetadataComponent"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"shared.videoSourcesMetadata"}},{key:"defaults",get:function(){return{showFolder:!1,highlight:!1}}},{key:"appLinks",get:function(){var t;return this.options.showFolder&&(null===(t=this.folders)||void 0===t?void 0:t.length)?this.folders.reduce((function(t,e){return t[".applink-folder-".concat(e.get("id"))]={application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.FOLDER,args:[e.get("id")]},t}),{}):{}}},{key:"events",value:function(){var t,e,n,o=Object.keys(this.appLinks),i=(t={},n="onClick",(e="click .".concat(l.sourceLabel))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t);return o.forEach((function(t){i["click ".concat(t)]="onClick"})),i}},{key:"onClick",value:function(t){t.stopPropagation()}},{key:"getFolderLinks",value:function(){var t,e=this;if(null===(t=this.folders)||void 0===t?void 0:t.length){var n={};return this.folders.forEach((function(t){var o=e.options.highlight?r.m$.wordsHighlighter(r.m$.escapeExpression(t.get("name")),e.model.get("_matchedWords")):r.m$.escapeExpression(t.get("name"));n[t.get("id")]=o})),Object.keys(n).map((function(t){return'<a class="info-link applink-folder-'.concat(t,'">').concat(n[t],"</a>")})).join(", ")}}},{key:"getCustomLibraryFolders",value:function(){var t;if(!(null===(t=this.model)||void 0===t?void 0:t.categories)||!this.options.libraries)return[];var e=this.options.libraries.reduce((function(t,e){return t[e.id]=!0,t}),{});return this.model.categories.filter((function(t){var n=t.libraries.first().get("id");return e[n]}))}},{key:"onBeforeRender",value:function(){var t;return this.folders||(this.folders=this.getCustomLibraryFolders()),this.options.showFolder&&!!(null===(t=this.folders)||void 0===t?void 0:t.length)}},{key:"viewOptions",value:function(){return{styles:l,folderCount:this.folders.length,folders:this.options.showFolder&&this.getFolderLinks(),hideLabel:this.options.hideLabel}}}])&&u(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),d}(o.Q.Component)},15564:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return'<span class="close cursor-pointer" aria-hidden="true">×</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,c="function",u=t.escapeExpression;return'<span class="clamp-1" title="'+u(typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:l)===c?a.call(s,{name:"name",hash:{},data:i}):a)+'">'+u(typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:l)===c?a.call(s,{name:"name",hash:{},data:i}):a)+"</span>\r\n"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.options:e)?r.removable:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},37106:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression("function"==typeof(r=null!=(r=n.title||(null!=e?e.title:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"title",hash:{},data:i}):r)},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a,s=t.lambda,l=t.escapeExpression,c=null!=e?e:t.nullContext||{};return' <span class="d-inline-block align-middle '+l(s(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" "+l(s(null!=(r=null!=e?e.options:e)?r.additionalClassName:r,e))+'">'+(null!=(r="function"==typeof(a=null!=(a=n.svg||(null!=e?e.svg:e))?a:t.hooks.helperMissing)?a.call(c,{name:"svg",hash:{},data:i}):a)?r:"")+"</span>\r\n"+(null!=(r=n.if.call(c,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},59168:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"btn btn-outline-dark px-0 ml-2"},3:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.moreSvgContainer:r,e))},5:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" align-middle"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=null!=e?e:t.nullContext||{};return'<div class="actions-region d-inline-block"></div><span class="position-relative d-inline-block dropdown">\r\n <span\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n class="'+(null!=(r=n.if.call(a,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+' ui-dropdown-toggle"\r\n >\r\n <span class="ui-more d-inline-block '+(null!=(r=n.if.call(a,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(3,i,0),inverse:t.program(5,i,0),data:i}))?r:"")+' cursor-pointer">'+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.moreSvg:r,e))?r:"")+'</span>\r\n </span>\r\n <div class="more-actions-region"></div>\r\n</span>\r\n'},useData:!0})},25205:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<span class="'+a(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.sourceLabel:r,e))+'">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"folder",{name:"lang",hash:{smartCount:null!=(r=null!=e?e.options:e)?r.folderCount:r},data:i}))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,(null!=(r=n.unless.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.hideLabel:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.folders:r,e))?r:"")},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2417],{98001:function(e,t,n){"use strict";n.d(t,{u:function(){return w}});var o=n(39479),r=n(48088),i=n(31647),c=n(11306),l=n(6681),a=n(30305),u=n(61843),s=n(57857),f=n(93421),p=n(40622),y="bimhO";function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(k,e);var t,n,d,w,O=(d=k,w=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(d);if(w){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function k(){return h(this,k),O.apply(this,arguments)}return t=k,(n=[{key:"initialize",value:function(){this.options.model||i.Q.ErrorHelper.throw(new c.H("DraggableVideoBehavior must be passed a Video model")),this.listenTo(a.jr.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(a.jr.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"lang",get:function(){return"libraryEditor.behaviors"}},{key:"helper",value:function(){var e=this.getVideoModels();return new f.ND({text:e.length>1?s.T.getPhrase(this.lang,"videos",{videoCount:e.length}):e[0].get("name"),svg:l.Nj.getSvg(l.vn.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(y)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(y)}},{key:"start",value:function(){var e=this.getVideoModels(),t=r.Radio.channel(a.jr.VIDEO_DRAG_DROP);t.trigger("drag:start",e,this.options.collectionIdentifier),o.each(e,(function(e){return t.trigger("drag:style:".concat(e.id))}))}},{key:"stop",value:function(){r.Radio.channel(a.jr.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var e=this,t=u.S0.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:p.CheckboxTypes.VIDEO_LIST,collection:this.view.model.collection});return o.any(t,(function(t){return t.id===e.view.model.id}))||(t=[this.view.model]),t.length?t:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":f.W2.draggable,"ui-draggable-disabled":f.W2.disabled,"ui-draggable-handle":f.W2.handle,"ui-draggable-dragging":f.W2.dragging}}},{key:"onRender",value:function(){var e=this.getSelector(),t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),e.draggable(o.extend({},f.wc,t))}},{key:"onBeforeDestroy",value:function(){var e=this.getSelector();e.draggable("instance")&&e.draggable("destroy")}}])&&b(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),k}(i.Q.Behavior)},93421:function(e,t,n){"use strict";n.d(t,{wc:function(){return p},ND:function(){return f},W2:function(){return o}});var o={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"},r=n(62699),i=n.n(r);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function u(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,c,f=(r=p,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(r);if(c){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.call(this,e)}return t=p,(n=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return i()}},{key:"className",get:function(){return"".concat(o.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:o},this.options)}}])&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(n(31647).Q.Component),p={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},43953:function(e,t,n){"use strict";n.d(t,{J:function(){return g}});var o=n(31647),r=n(6681),i=n(70065),c=n(52076),l=n(71641),a=n(30305),u=n(57857),s=n(8050),f=n.n(s);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(m,e);var t,n,s,p,g=(s=m,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(s);if(p){var n=b(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function m(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),g.call(this,e)}return t=m,(n=[{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return f()}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat("Qgopl"," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.showChildView("dropdownItems",new l.w({analyticsHelper:c.k,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.Q.Collection([{title:u.T.getPhrase(this.lang,"addFolder"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Create,entity:i.EntityType.Folder,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:a.OV.LIBRARY_EDITOR,action:a.eX.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"rename"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Rename,entity:i.EntityType.Library,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:a.OV.LIBRARY_EDITOR,action:a.eX.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"remove"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Delete,entity:i.EntityType.Library,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:a.OV.LIBRARY_EDITOR,action:a.eX.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}])}))}},{key:"onClickDropdownItem",value:function(e){e.stopPropagation(),e.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat("AAIc2"," ").concat(this.options.buttonClass),svg:r.Nj.getSvg(r.vn.More)}}}])&&y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(o.Q.Component)},55175:function(e,t,n){"use strict";n.r(t),n.d(t,{LibraryView:function(){return D}});var o=n(39479),r=n(31647),i=n(21679),c=n(57857),l=n(70065),a=n(6681),u=n(56371),s=n(77502),f=n(48404),p=n(30305),y=n(17422),d=n(3059),h=n(87002);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function g(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function v(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(c,e);var t,n,o,r,i=(o=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(o);if(r){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(this,e)});function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,(n=[{key:"name",get:function(){return"LibraryFolderListComponent"}},{key:"className",get:function(){return"row"}},{key:"childView",get:function(){return h.Y}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.Q.ComponentCollection),k=n(43953),j=n(32849),P=n.n(j),S={actions:"_12j8"};function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function R(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function T(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(g,e);var t,n,r,h,b=(r=g,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=C(r);if(h){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return T(this,e)});function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),b.call(this,e)}return t=g,(n=[{key:"initialize",value:function(){var e=this;this.libraryDataService=i.u.getInstance(p.Or.Library,this),this.listenTo(p.Vk.LIBRARY,"clear:library:folder:cache",(function(){e.folders=null,e.render()}))}},{key:"name",get:function(){return"LibraryView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.library"}},{key:"template",get:function(){return P()}},{key:"className",get:function(){return"bg-white px-3 pt-3 pb-2 position-relative rounded ".concat(S.library)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:u.o,region:"folders",type:y.ub.Library,shouldRender:function(){return e.model&&!e.model.children.length},componentOptions:{libraryId:this.options.libraryId,moreSvg:a.Nj.getSvg(a.vn.More),heading:c.T.getPhrase(this.lang,"emptyStateHeading"),description:c.T.getPhrase(this.lang,"emptyStateInfo",{moreSvg:'<span class="d-inline-block svg-container align-top">\n '.concat(a.Nj.getSvg(a.vn.More),"</span>")})},emptyStateComponents:p.aW}]}},{key:"regions",value:function(){return{folders:{el:".folders-region",replaceElement:!0,partialLoading:y.LP.LibraryFolders},actions:{el:".actions-region",replaceElement:!0}}}},{key:"renderFolders",value:function(){this.showChildView("folders",new O({collection:this.folders,childOptions:{location:"library"}}))}},{key:"renderActions",value:function(){this.showChildView("actions",new k.J({model:this.model,extraClasses:"".concat(S.actions," rounded-circle mr-2 mt-2"),analyticsOptions:{location:l.LocationContext.Banner}}))}},{key:"requiredResources",get:function(){return{config:f.p.config}}},{key:"bindScrollListener",value:function(){var e=this;if(!this.scrollBound){this.scrollBound=!0;var t=$(window),n=o.debounce((function(){if(t.scrollTop()+t.height()>e.$el.offset().top+e.$el.height()&&e.currentIdentifier){var n=e.libraryDataService.getFoldersCursors(e.currentIdentifier);n&&n.next&&e.libraryDataService.getFolders(e.getNewCollectionIdentifier(n.next),(function(t){e.folders.add(t.toJSON())}))}}),333);t.scroll(n),window.setTimeout(n,100)}}},{key:"getNewCollectionIdentifier",value:function(e){return this.currentIdentifier=new d.KX(this.model.categoryTree.get("id"),s.E.AtoZ,e)}},{key:"onBeforeRender",value:function(){var e=this;if(this.model)return this.folders||this.libraryDataService.getFolders(this.getNewCollectionIdentifier(),(function(t){e.folders=t,e.render()})),!!this.model&&!!this.folders;this.libraryDataService.getLibraries((function(t){e.model=t.get(e.options.libraryId),e.listenTo(e.model,"change:name",e.render),e.render()}))}},{key:"onRender",value:function(){this.renderFolders(),this.renderActions(),this.bindScrollListener()}}])&&R(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),g}(r.Q.View)},71641:function(e,t,n){"use strict";n.d(t,{w:function(){return f}});var o=n(39479),r=n(31647),i=n(55142);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function u(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(p,e);var t,n,r,c,f=(r=p,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(r);if(c){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.call(this,e)}return t=p,n=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return i.N}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,o=e.extraClasses,r="dropdown-menu-".concat(n);return o&&(r="".concat(r," ").concat(o)),r}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}],n&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(r.Q.ComponentCollection)},62699:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,c=e.lambda,l=e.escapeExpression;return'<span class="'+l(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' mr-2">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<span class="'+l(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dragText:i,t))+'">'+l(c(null!=(i=null!=t?t.options:t)?i.text:i,t))+"</span>"},useData:!0})},8050:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,c=e.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+e.escapeExpression(c(null!=(i=null!=t?t.options:t)?i.dropdownClass:i,t))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>'},useData:!0})},32849:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<h1 class="h3">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+'</h1>\r\n<div class="folders-region"></div>\r\n<div class="actions-region"></div>'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[259],{18582:function(e,t,n){"use strict";n.d(t,{u:function(){return c}});var r,o=n(57857),i=n(6681),a=n(75459);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(r||(r={}));var l="shared.shared-utils",c={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e){switch(e.type){case a.r.HostedLibrary:case a.r.CustomLibrary:return e.name;case a.r.Exchange:return o.T.getPhrase(l,"exchange");case a.r.Workspace:return o.T.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case a.r.HostedLibrary:case a.r.CustomLibrary:return"bg-info";case a.r.Exchange:return"bg-green";case a.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t,n=(u(t={},r.Pdf,i.vn.FilePDF),u(t,r.Image,i.vn.FileImg),u(t,r.PowerPoint,i.vn.FilePowerpoint),u(t,r.Document,i.vn.FileWord),u(t,r.Excel,i.vn.FileExcel),u(t,r.Zip,i.vn.FileZip),u(t,r.File,i.vn.File),t)[e];return n||(n=i.vn.Folder),n},mapTypeToClass:function(e){switch(e){case r.Pdf:return"icon-red";case r.Image:return"icon-purple";case r.Document:return"icon-blue";case r.Excel:return"icon-green";case r.PowerPoint:return"icon-orange";case r.Zip:return"icon-teal";case r.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case r.Pdf:return o.T.getPhrase(l,"pdf");case r.Image:return o.T.getPhrase(l,"image");case r.Document:return o.T.getPhrase(l,"document");case r.Excel:return o.T.getPhrase(l,"spreadsheet");case r.PowerPoint:return o.T.getPhrase(l,"presentation");case r.Zip:return o.T.getPhrase(l,"zipArchive");case r.File:return o.T.getPhrase(l,"file");default:return""}}}},68708:function(e,t,n){"use strict";n.d(t,{c:function(){return _}});var r=n(31647),o=n(48088),i=n(6681),a=n(70065),u=n(52076),l=n(61843),c=n(30305),s=n(76431),p=n.n(s),f={container:"vvTSf"},y=n(57857);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function b(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(v,e);var t,n,r,s,d=(r=v,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(r);if(s){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function v(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),d.call(this,e)}return t=v,(n=[{key:"name",get:function(){return"LinkItemComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"".concat(f.container," rounded p-2 mb-2 d-flex align-items-center")}},{key:"lang",get:function(){return"libraryEditor.editLinks"}},{key:"attributes",get:function(){return{title:this.model.get("name")}}},{key:"events",value:function(){return{"click .delete":"onClickDelete","click .edit":"onClickEdit"}}},{key:"appLinks",get:function(){return{".edit":{application:c.OV.LIBRARY_EDITOR,action:c.eX.LibraryEditor.EDIT_LINK,args:[this.options.videoId,this.model.get("id")]}}}},{key:"onClickEdit",value:function(){var e=u.k.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Edit,entity:a.EntityType.Resource,workflowPhase:a.WorkflowPhase.Start}),t={id:this.model.get("id"),parentId:+this.options.videoId};u.k.logUserAction(t,e)}},{key:"onClickDelete",value:function(){var e=this;new l.Mr({title:y.T.getPhrase(this.lang,"removeHeading"),text:y.T.getPhrase(this.lang,"removeConfirm",{name:l.m$.escapeExpression(this.model.get("name"))}),buttons:[{text:y.T.getPhrase(this.lang,"remove"),className:"btn btn-danger",success:!0},{text:y.T.getPhrase(this.lang,"cancel"),className:"btn btn-outline-dark",close:!0}],channelName:l.N0.generateUniqueChannelName(this)}).render().done((function(){o.Radio.channel(e.options.channelName).trigger("delete:link",e.model.get("id"))}))}},{key:"viewOptions",value:function(){return{styles:f,editable:this.options.editable,linkSvg:i.Nj.getSvg(i.vn.Link),editSvg:i.Nj.getSvg(i.vn.Edit),trashSvg:i.Nj.getSvg(i.vn.Delete)}}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),v}(r.Q.Component),k=n(52929),w=n.n(k);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t,n){return t&&P(e.prototype,t),n&&P(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=R(e);if(t){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}var _=function(e){x(n,e);var t=S(n);function n(e){return T(this,n),t.call(this,e)}return E(n,[{key:"name",get:function(){return"VideoLinksComponent"}},{key:"template",get:function(){return w()}},{key:"className",get:function(){return this.options.customCollection?"":"py-3 border-top"}},{key:"regions",value:function(){return{links:{el:".links-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return this.options}},{key:"onRender",value:function(){this.showChildView("links",new I({collection:this.options.customCollection||this.model.get("links"),channelName:this.options.channelName,analyticsOptions:this.options.analyticsOptions,editable:this.options.editable,videoId:this.options.videoId,headingText:this.options.headingText,emptyStateText:this.options.emptyStateText}))}}]),n}(r.Q.Component),I=function(e){x(n,e);var t=S(n);function n(e){return T(this,n),t.call(this,e)}return E(n,[{key:"name",get:function(){return"LinkItemComponentCollection"}},{key:"childViewOptions",get:function(){return this.options}},{key:"childView",get:function(){return v}}]),n}(r.Q.ComponentCollection)},77605:function(e,t,n){"use strict";n.d(t,{c:function(){return D},h:function(){return N}});var r=n(31647),o=n(48088),i=n(99114),a=n.n(i),u=n(53808),l=n(70065),c=n(52076),s=n(6681),p=n(18582),f=n(95117),y=n.n(f);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function b(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(r);if(o){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"name",get:function(){return"ResourceItemComponent"}},{key:"template",get:function(){return y()}},{key:"className",get:function(){return"".concat("CdlNn"," rounded p-2 mb-2")}},{key:"events",value:function(){return{"click .delete":"onClickDelete","click .edit":"onClickEdit"}}},{key:"appLinks",get:function(){return{".edit":this.options.getEditAppLink(this.model.get("id"))}}},{key:"onClickEdit",value:function(){var e=c.k.mergeOptions(this.options.analyticsOptions,{actionType:l.UserAction.Edit,entity:l.EntityType.Resource,workflowPhase:l.WorkflowPhase.Start}),t={id:this.model.get("id"),parentId:+this.options.videoId};c.k.logUserAction(t,e)}},{key:"onClickDelete",value:function(){u.q.isFunction(this.options.onClickDelete)&&this.options.onClickDelete(this.model)}},{key:"viewOptions",value:function(){var e=this.model.get("metadata"),t=e?e.type:"";return{editable:this.options.editable,extension:p.u.mapTypeToExtension(t),svg:s.Nj.getSvg(p.u.mapTypeToSvg(t)),iconClass:p.u.mapTypeToClass(t),resourceType:p.u.mapTypeToName(t),editSvg:s.Nj.getSvg(s.vn.Edit),trashSvg:s.Nj.getSvg(s.vn.Delete)}}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Q.Component),k=n(57857),w=n(25094),O=n(41934),T=n(54758);function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=I(e);if(t){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}var N=function(e){S(n,e);var t=R(n);function n(e){return E(this,n),t.call(this,e)}return C(n,[{key:"name",get:function(){return"VideoResourcesComponentCollection"}},{key:"className",get:function(){return"mt-3"}},{key:"lang",get:function(){return"libraryEditor.videoResources"}},{key:"childView",get:function(){return v}},{key:"childViewOptions",get:function(){var e=this;return{editable:this.options.editable,videoId:this.options.videoId,analyticsOptions:this.options.analyticsOptions,onClickDelete:function(t){return e.onClickDelete(t)},getEditAppLink:function(t){return{application:w.OV.LIBRARY_EDITOR,action:O.e.LibraryEditor.EDIT_RESOURCE,args:[e.options.videoId,t]}}}}},{key:"onClickDelete",value:function(e){var t=this;new T.M({title:k.T.getPhrase(this.lang,"removeHeading"),text:k.T.getPhrase(this.lang,"removeBody",{resourceName:e.get("name")}),buttons:[{text:k.T.getPhrase(this.lang,"remove"),className:"btn btn-danger",success:!0},{text:k.T.getPhrase(this.lang,"cancel"),className:"btn btn-outline-dark",close:!0}],channelName:"".concat(this.name).concat(this.cid)}).render().done((function(){o.Radio.channel(t.options.channelName).trigger("delete:resource",e.get("id"))}))}}]),n}(r.Q.ComponentCollection),D=function(e){S(n,e);var t=R(n);function n(e){return E(this,n),t.call(this,e)}return C(n,[{key:"name",get:function(){return"VideoResourcesComponent"}},{key:"template",get:function(){return a()}},{key:"lang",get:function(){return"libraryEditor.videoResources"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return this.options.customCollection?"":"py-3 border-top"}},{key:"regions",value:function(){return{resources:{replaceElement:!0,el:".resource-list-region"}}}},{key:"renderResources",value:function(){var e=new N({collection:this.options.customCollection||this.model.resources,editable:this.options.editable||!1,videoId:this.options.videoId||this.model.get("id"),channelName:this.options.parentChannelName||this.channelName});this.showChildView("resources",e)}},{key:"viewOptions",value:function(){return{resourcesHeadingText:this.options.headerText||k.T.getPhrase(this.lang,"heading"),emptyStateText:this.options.emptyStateText}}},{key:"onRender",value:function(){this.renderResources()}}]),n}(r.Q.Component)},95117:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<a class="float-right svg-container cursor-pointer text-muted delete">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.trashSvg:i,t))?i:"")+'</a>\r\n<a class="float-right svg-container cursor-pointer text-muted edit">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.editSvg:i,t))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,u=e.lambda,l=e.escapeExpression,c=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,p="function";return'<span title="'+l(u(null!=(i=null!=t?t.options:t)?i.resourceType:i,t))+'" class="d-inline-block align-middle mr-2 svg-container '+l(u(null!=(i=null!=t?t.options:t)?i.iconClass:i,t))+'">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<a href="'+l(typeof(a=null!=(a=n.url||(null!=t?t.url:t))?a:s)===p?a.call(c,{name:"url",hash:{},data:o}):a)+"?name="+l(typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:s)===p?a.call(c,{name:"name",hash:{},data:o}):a)+'" class="align-middle">\r\n '+l(typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:s)===p?a.call(c,{name:"name",hash:{},data:o}):a)+"\r\n</a>\r\n"+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},76431:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return' <a class="ml-auto mr-1 svg-container cursor-pointer text-muted edit">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.editSvg:i,t))?i:"")+'</a>\r\n <a class="svg-container cursor-pointer text-muted delete">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.trashSvg:i,t))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,u=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",s=e.escapeExpression;return'<span class="svg-container text-info mr-2">'+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.linkSvg:i,t))?i:"")+'</span>\r\n<a class="w-75 text-truncate" href="'+s(typeof(a=null!=(a=n.url||(null!=t?t.url:t))?a:l)===c?a.call(u,{name:"url",hash:{},data:o}):a)+'" target="_blank">'+s(typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:l)===c?a.call(u,{name:"name",hash:{},data:o}):a)+"</a>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},52929:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"<p>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.emptyStateText:i,t))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"<h5>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.headingText:i,t))+"</h5>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.emptyStateText:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'\r\n<div class="links-region"></div>'},useData:!0})},99114:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"<p>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.emptyStateText:i,t))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"<h5>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.resourcesHeadingText:i,t))+"</h5>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.emptyStateText:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'\r\n<div class="resource-list-region"></div>'},useData:!0})}}]);
|