@clickview/library-editor 1.8.0 → 1.8.1-dev.0
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/{3803-library-editor-c08c7cc096.chunk.css → 1132-library-editor-c1a116496b.chunk.css} +1 -1
- package/dist/css/{8343-library-editor-10baca49f5.chunk.css → 1521-library-editor-b3d6d791c2.chunk.css} +4 -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/2011-library-editor-9b9cd091d0.chunk.css +62 -0
- package/dist/css/2119-library-editor-1d6a95fb9f.chunk.css +4 -0
- package/dist/css/{409-library-editor-38562d76cd.chunk.css → 2284-library-editor-436a0d1ce1.chunk.css} +1 -1
- package/dist/css/3969-library-editor-3382f0875b.chunk.css +4 -0
- package/dist/css/3987-library-editor-2271e5262a.chunk.css +56 -0
- package/dist/css/{5248-library-editor-c06823703f.chunk.css → 4177-library-editor-4cba18186c.chunk.css} +4 -8
- package/dist/css/5891-library-editor-76fe7e394b.chunk.css +2 -0
- package/dist/css/{5047-library-editor-3ed99ac07f.chunk.css → 6181-library-editor-db9baf23c2.chunk.css} +4 -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/{1819-library-editor-69e8f4675f.chunk.css → 8179-library-editor-df33c921f0.chunk.css} +3 -5
- package/dist/css/{9195-library-editor-14f7d9be38.chunk.css → 8929-library-editor-2cba3474fe.chunk.css} +1 -1
- package/dist/css/{library-editor-app-4e790b757d.css → library-editor-app-1cd9634b7b.css} +10 -10
- package/dist/en.json +1 -1
- package/dist/scripts/101-98e020bd6f.chunk.js +1 -0
- package/dist/scripts/{1010-f5821049de.chunk.js → 1010-cd4e715098.chunk.js} +1 -1
- package/dist/scripts/{1086-ba954c2a70.chunk.js → 1086-b559030dcf.chunk.js} +1 -1
- package/dist/scripts/1132-3f29e51c9d.chunk.js +1 -0
- package/dist/scripts/1203-b828105755.chunk.js +1 -0
- package/dist/scripts/1409-8f5c1c9d0e.chunk.js +1 -0
- package/dist/scripts/{8343-774860a655.chunk.js → 1521-0c23d44c5e.chunk.js} +1 -1
- package/dist/scripts/1832-d4427bb6f5.chunk.js +1 -0
- package/dist/scripts/{5356-4583545486.chunk.js → 1887-d306fab87c.chunk.js} +1 -1
- package/dist/scripts/{6625-a31763e7ef.chunk.js → 1911-41bf677d7e.chunk.js} +1 -1
- package/dist/scripts/2011-f178a6dabf.chunk.js +1 -0
- package/dist/scripts/{2098-30b7db58a5.chunk.js → 2098-31d99bc407.chunk.js} +1 -1
- package/dist/scripts/2119-cbaa6000b1.chunk.js +1 -0
- package/dist/scripts/2284-a57db3563f.chunk.js +1 -0
- package/dist/scripts/2417-48687b3eeb.chunk.js +1 -0
- package/dist/scripts/243-c9fdd938fd.chunk.js +1 -0
- package/dist/scripts/259-e1d9ce07f4.chunk.js +1 -0
- package/dist/scripts/{2692-15c761ec3d.chunk.js → 2692-9ebe6d1ea4.chunk.js} +1 -1
- package/dist/scripts/{2733-6b607b5143.chunk.js → 2733-e8cc6e3610.chunk.js} +1 -1
- package/dist/scripts/2803-86fc1b1e3f.chunk.js +1 -0
- package/dist/scripts/{2888-7396d60be2.chunk.js → 2888-80050720b2.chunk.js} +1 -1
- package/dist/scripts/{299-921c177109.chunk.js → 299-d19e77b508.chunk.js} +1 -1
- package/dist/scripts/3096-ca9e2f0dfd.chunk.js +1 -0
- package/dist/scripts/{3639-8e4d2c9b84.chunk.js → 3639-36a34d483b.chunk.js} +1 -1
- package/dist/scripts/3746-46e0073a46.chunk.js +1 -0
- package/dist/scripts/{3763-0095e75c1a.chunk.js → 3763-3bef6ac728.chunk.js} +1 -1
- package/dist/scripts/3969-258fca82a8.chunk.js +1 -0
- package/dist/scripts/3987-e3a4ade0c9.chunk.js +1 -0
- package/dist/scripts/4177-0be8ceed3c.chunk.js +1 -0
- package/dist/scripts/{4201-973ee89615.chunk.js → 4201-25e82e2429.chunk.js} +1 -1
- package/dist/scripts/{435-fbb6b4b01e.chunk.js → 435-fb19753c8d.chunk.js} +1 -1
- package/dist/scripts/{4353-1d4ec918e6.chunk.js → 4353-c7a0df4214.chunk.js} +1 -1
- package/dist/scripts/{4591-3fa9999f29.chunk.js → 4591-9a2868f8a0.chunk.js} +1 -1
- package/dist/scripts/{4860-56e7955cd4.chunk.js → 4860-b3e5cb9cbd.chunk.js} +1 -1
- package/dist/scripts/{4885-3a35265eab.chunk.js → 4885-9e4ce006c8.chunk.js} +1 -1
- package/dist/scripts/{514-923fb794ae.chunk.js → 514-59d9a9a7bd.chunk.js} +1 -1
- package/dist/scripts/5173-e1b904c06c.chunk.js +1 -0
- package/dist/scripts/5235-abc8ea83ed.chunk.js +1 -0
- package/dist/scripts/5263-38198ed595.chunk.js +1 -0
- package/dist/scripts/{5412-51a270fe11.chunk.js → 5412-a1721cffc4.chunk.js} +1 -1
- package/dist/scripts/{5418-bc46c939fc.chunk.js → 5418-bfa546cf33.chunk.js} +1 -1
- package/dist/scripts/{546-6736b53bcd.chunk.js → 546-81473f1035.chunk.js} +1 -1
- package/dist/scripts/5664-d6cbc77d63.chunk.js +1 -0
- package/dist/scripts/{5747-913fcc6f9c.chunk.js → 5747-8a168b816b.chunk.js} +1 -1
- package/dist/scripts/5891-63973f5678.chunk.js +1 -0
- package/dist/scripts/6093-a62d8ebc86.chunk.js +1 -0
- package/dist/scripts/6181-fa5e7bcbf9.chunk.js +1 -0
- package/dist/scripts/{5248-c1cfd861cc.chunk.js → 6220-984f02c732.chunk.js} +1 -1
- package/dist/scripts/{6420-6bae432c6b.chunk.js → 6420-1537f8f587.chunk.js} +1 -1
- package/dist/scripts/{6774-580a63bbeb.chunk.js → 6774-185468f6f5.chunk.js} +1 -1
- package/dist/scripts/{6788-4bd780e50b.chunk.js → 6788-2368a122f1.chunk.js} +1 -1
- package/dist/scripts/6963-a576fd9c4d.chunk.js +1 -0
- package/dist/scripts/6999-1fe379ca99.chunk.js +1 -0
- package/dist/scripts/7002-9b2aad8369.chunk.js +1 -0
- package/dist/scripts/7053-643499a3a6.chunk.js +1 -0
- package/dist/scripts/708-9e2ef23c87.chunk.js +1 -0
- package/dist/scripts/7295-96fcbaa176.chunk.js +1 -0
- package/dist/scripts/7376-21f5de2ce6.chunk.js +1 -0
- package/dist/scripts/{8074-e02348d9c5.chunk.js → 8074-b610b1ba63.chunk.js} +1 -1
- package/dist/scripts/8179-f5cc87ded7.chunk.js +2 -0
- package/dist/scripts/{8362-ea6c7521b8.chunk.js → 8362-195c5ba6c3.chunk.js} +1 -1
- package/dist/scripts/8495-0a9a71f2dc.chunk.js +1 -0
- package/dist/scripts/8727-20ae545e12.chunk.js +1 -0
- package/dist/scripts/{8762-264adb9817.chunk.js → 8762-b445a592a5.chunk.js} +1 -1
- package/dist/scripts/{8906-a5aa3d1286.chunk.js → 8906-efcc846fad.chunk.js} +1 -1
- package/dist/scripts/8929-6fac19a7a3.chunk.js +1 -0
- package/dist/scripts/{8947-563b287016.chunk.js → 8947-4df5e81810.chunk.js} +1 -1
- package/dist/scripts/{9167-0e451c25a3.chunk.js → 9167-9c54b36e3a.chunk.js} +1 -1
- package/dist/scripts/{9298-33d2ab886e.chunk.js → 9298-d8c9ed5471.chunk.js} +1 -1
- package/dist/scripts/{9357-22395b794f.chunk.js → 9357-2e288289f3.chunk.js} +1 -1
- package/dist/scripts/9383-6d0392b17f.chunk.js +1 -0
- package/dist/scripts/{9695-72bc239f92.chunk.js → 9695-4bb132be57.chunk.js} +1 -1
- package/dist/scripts/9770-9eaef2c966.chunk.js +1 -0
- package/dist/scripts/9927-25579dff18.chunk.js +1 -0
- package/dist/scripts/995-3a6de1eec1.chunk.js +1 -0
- package/dist/scripts/bundle-2b73fa6c21.min.js +2 -0
- package/package.json +1 -1
- package/dist/css/4810-library-editor-740619bb9d.chunk.css +0 -24
- package/dist/scripts/1203-c5dbf7e172.chunk.js +0 -1
- package/dist/scripts/1409-333eff67cc.chunk.js +0 -1
- package/dist/scripts/1819-5e97050377.chunk.js +0 -2
- package/dist/scripts/1832-9528386bfe.chunk.js +0 -1
- package/dist/scripts/2417-ce05495ed5.chunk.js +0 -1
- package/dist/scripts/243-224b5eea73.chunk.js +0 -1
- package/dist/scripts/259-fb7e645a88.chunk.js +0 -1
- package/dist/scripts/2803-f91683764c.chunk.js +0 -1
- package/dist/scripts/3096-f61a91545d.chunk.js +0 -1
- package/dist/scripts/3427-1bd7b5956b.chunk.js +0 -1
- package/dist/scripts/3746-7fca58c2db.chunk.js +0 -1
- package/dist/scripts/3803-d2a02a86eb.chunk.js +0 -1
- package/dist/scripts/409-fbe70b4df9.chunk.js +0 -1
- package/dist/scripts/4703-1cefcae29b.chunk.js +0 -1
- package/dist/scripts/4810-908fe3f045.chunk.js +0 -1
- package/dist/scripts/5047-c22a3ab8f7.chunk.js +0 -1
- package/dist/scripts/5431-50ab5a6a35.chunk.js +0 -1
- package/dist/scripts/5665-38506a938a.chunk.js +0 -1
- package/dist/scripts/5967-5d8ab696d0.chunk.js +0 -1
- package/dist/scripts/6093-67352f9ba1.chunk.js +0 -1
- package/dist/scripts/7002-596b9b3c71.chunk.js +0 -1
- package/dist/scripts/7053-312e4779fe.chunk.js +0 -1
- package/dist/scripts/8420-77604e5dd5.chunk.js +0 -1
- package/dist/scripts/8727-4be0c05629.chunk.js +0 -1
- package/dist/scripts/9195-db9407692d.chunk.js +0 -1
- package/dist/scripts/9355-633de33fc9.chunk.js +0 -1
- package/dist/scripts/9383-afe019b90c.chunk.js +0 -1
- package/dist/scripts/9927-6933b86ad4.chunk.js +0 -1
- package/dist/scripts/bundle-c7ed16f629.min.js +0 -2
- /package/dist/css/{5967-library-editor-7417a89428.chunk.css → 708-library-editor-7417a89428.chunk.css} +0 -0
- /package/dist/scripts/{400-228bfe98a2.chunk.js → 400-00070f1714.chunk.js} +0 -0
- /package/dist/scripts/{4245-30ea8edd8c.chunk.js → 4245-4d98c3f676.chunk.js} +0 -0
- /package/dist/scripts/{693-780241d5a9.chunk.js → 693-0ae38e2ba5.chunk.js} +0 -0
- /package/dist/scripts/{7173-28ec11155c.chunk.js → 7173-a4f745b0ed.chunk.js} +0 -0
- /package/dist/scripts/{7190-8c67f0b2c5.chunk.js → 7190-d294d5b67c.chunk.js} +0 -0
- /package/dist/scripts/{1819-5e97050377.chunk.js.LICENSE.txt → 8179-f5cc87ded7.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-c7ed16f629.min.js.LICENSE.txt → bundle-2b73fa6c21.min.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -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 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1203],{74269:function(e,t,n){n.r(t),n.d(t,{DialogHelper:function(){return P}});var r,o=n(1024),i=n.n(o),a=n(30314),u=n(53808),c=n(80325),l=n(51934),s=n.n(l),p=n(85610),h=n(88483);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=(d(r={},h.__.Thumbnails,{width:1280,height:720}),d(r,h.__.Banners,{width:1200,height:222}),d(r,h.__.Covers,{width:512,height:512}),d(r,h.__.Posters,{width:1e3,height:1500}),d(r,h.__.TallPosters,{width:1080,height:1920}),d(r,h.__.HeroBanners,{width:1920,height:640}),d(r,h.__.None,{width:1,height:1}),d(r,h.__.Avatars,{width:256,height:256}),d(r,h.__.Logos,{width:128,height:128}),r),m=n(57857);function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e,t)||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.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var v=m.T.encloseNamespace("shared.imageCropper"),C=/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/;function w(e){var t=g(i().useState(!1),2),n=t[0],r=t[1],o=g(i().useState(!1),2),a=o[0],u=o[1],l=i().useRef(),h=i().useRef();return i().useEffect((function(){var t=new Image;t.src=e.src;var n=l.current.offsetWidth/t.width,o=f[e.imageType],i={viewMode:2,autoCropArea:1,ready:function(){return r(!0)}};return o&&(i.minCropBoxWidth=o.width*n,i.minCropBoxHeight=o.height*n,i.aspectRatio=o.width/o.height),h.current=new(s())(l.current,i),function(){h.current.destroy()}}),[]),i().createElement(c.G,{title:v("title"),closePopup:e.closePopup,size:e.popupSize},i().createElement("div",null,i().createElement("img",{src:e.src,alt:e.alt,ref:l,className:"img img-fluid"})),i().createElement(p.u,null,i().createElement(p.u.Cancel,{onClick:e.closePopup}),i().createElement(p.u.Submit,{onClick:function(){if(n){var t=h.current.getCroppedCanvas().toDataURL(function(e){var t=e.match(C);if(t)return t[1]}(e.src));u(!0),e.onClickCrop(t,e.closePopup)}},text:v("crop"),variant:"dark",showSpinner:a})))}w.defaultProps={popupSize:"lg"};var y="shared.shared-utils",_=function(){return document.getElementById("dialog-region")},P={render:function(e,t){var n=_();function r(){u.q.isFunction(t.cancelButtonProps.onClick)&&t.cancelButtonProps.onClick(),(0,a.unmountComponentAtNode)(n)}var o=Object.assign(Object.assign({},t.submitButtonProps?t.submitButtonProps:{}),{onClick:function(){u.q.isFunction(t.submitButtonProps.onClick)&&t.submitButtonProps.onClick(),(0,a.unmountComponentAtNode)(n),r()}}),l=Object.assign(Object.assign({},t.cancelButtonProps?t.cancelButtonProps:{}),{onClick:function(){r()}});(0,a.render)(i().createElement(c.G,{title:t.title,closePopup:r,size:t.size,centered:t.centered,bodyClassName:"overflow-hidden",dialogClassName:t.dialogClassName},e,!t.hideButtons&&i().createElement(p.u,{className:t.buttonContainerClassName},t.cancelButtonProps&&i().createElement(p.u.Cancel,Object.assign({},l)),t.submitButtonProps&&i().createElement(p.u.Submit,Object.assign({},o)))),n)},renderCropper:function(e){var t=_();(0,a.render)(i().createElement(w,Object.assign({},e,{closePopup:function(){return(0,a.unmountComponentAtNode)(t)}})),t)},getDefaultSubmitButton:function(){return{variant:"dark",text:m.T.getPhrase(y,"confirm")}},getDefaultCancelButton:function(){return{variant:"light",text:m.T.getPhrase(y,"cancel")}}}}}]);
|
|
@@ -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 f}});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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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"===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 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,r,i,f=(r=p,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=a(r);if(i){var n=a(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){return c(this,p),f.apply(this,arguments)}return t=p,(n=[{key:"defaults",value:function(){return e={},!0,(t=o.ZV.Disabled)in e?Object.defineProperty(e,t,{value:true,enumerable:!0,configurable:!0,writable:!0}):e[t]=true,e;var e,t}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(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),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.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 H(e){return H="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},H(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"===H(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 z;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})}}]);
|