@clickview/library-editor 1.59.0 → 1.60.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 +1 -1
- package/dist/css/{2598-library-editor-5a1c6fc3b4.chunk.css → 1318-library-editor-2057616496.chunk.css} +0 -1
- package/dist/css/{9471-library-editor-bedf22a9d5.chunk.css → 336-library-editor-7d9a513301.chunk.css} +1 -3
- package/dist/css/{4796-library-editor-79cb533f4b.chunk.css → 4796-library-editor-46f948b590.chunk.css} +10 -0
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1318-f4d0d64cb0.chunk.js +1 -0
- package/dist/scripts/1752-111d0ad14d.chunk.js +1 -0
- package/dist/scripts/3305-dc6932b39d.chunk.js +1 -0
- package/dist/scripts/336-bb4dc3d019.chunk.js +2 -0
- package/dist/scripts/3664-dbf5958416.chunk.js +1 -0
- package/dist/scripts/4096-884ca2d342.chunk.js +1 -0
- package/dist/scripts/4796-0f43bd8c15.chunk.js +2 -0
- package/dist/scripts/5513-77d89142ce.chunk.js +1 -0
- package/dist/scripts/{576-5204b27645.chunk.js → 576-c984785d03.chunk.js} +1 -1
- package/dist/scripts/{5972-d637eea712.chunk.js → 5972-988de17e3f.chunk.js} +1 -1
- package/dist/scripts/6567-02b07e94bc.chunk.js +2 -0
- package/dist/scripts/6591-bff920cc4e.chunk.js +1 -0
- package/dist/scripts/6697-efdc49a3ce.chunk.js +1 -0
- package/dist/scripts/7115-42b569dd15.chunk.js +2 -0
- package/dist/scripts/7153-9718a4ebaa.chunk.js +1 -0
- package/dist/scripts/{7182-9378cbae60.chunk.js → 7182-e45ad5e0fe.chunk.js} +1 -1
- package/dist/scripts/7197-faf24e915d.chunk.js +2 -0
- package/dist/scripts/{777-1b328a0073.chunk.js → 777-1328221d09.chunk.js} +1 -1
- package/dist/scripts/777-1328221d09.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/7925-b80cab7a7a.chunk.js +2 -0
- package/dist/scripts/8542-a96ff58cda.chunk.js +1 -0
- package/dist/scripts/9082-c3c4b347ad.chunk.js +1 -0
- package/dist/scripts/9090-42d71ef295.chunk.js +1 -0
- package/dist/scripts/9096-ebb6d8925e.chunk.js +1 -0
- package/dist/scripts/9219-a867c84112.chunk.js +1 -0
- package/dist/scripts/9376-fa6bc20209.chunk.js +1 -0
- package/dist/scripts/968-ba17f0be6f.chunk.js +1 -0
- package/dist/scripts/9743-db6b1a198e.chunk.js +1 -0
- package/dist/scripts/{9766-753d188467.chunk.js → 9766-da39830c71.chunk.js} +1 -1
- package/dist/scripts/bundle-ae75dee45b.min.js +2 -0
- package/package.json +1 -1
- package/typings/libs/trackjs.d.ts +9 -1
- package/dist/scripts/1015-fde8b5ba1e.chunk.js +0 -2
- package/dist/scripts/1973-47ac2859c2.chunk.js +0 -1
- package/dist/scripts/2598-1eda830a73.chunk.js +0 -1
- package/dist/scripts/2614-41c946fcb2.chunk.js +0 -1
- package/dist/scripts/2648-3893c6b865.chunk.js +0 -1
- package/dist/scripts/3305-b4175d4211.chunk.js +0 -1
- package/dist/scripts/4027-fd3b5a0220.chunk.js +0 -1
- package/dist/scripts/416-4c125a286a.chunk.js +0 -1
- package/dist/scripts/463-f5f80e35df.chunk.js +0 -2
- package/dist/scripts/4719-8c6ca32259.chunk.js +0 -1
- package/dist/scripts/4796-cf965f7d93.chunk.js +0 -2
- package/dist/scripts/4851-da66f6b7c2.chunk.js +0 -1
- package/dist/scripts/5182-a4c92e2987.chunk.js +0 -2
- package/dist/scripts/546-36e1e11039.chunk.js +0 -1
- package/dist/scripts/5736-83fa0776d5.chunk.js +0 -1
- package/dist/scripts/5814-b2c068e5ee.chunk.js +0 -1
- package/dist/scripts/7153-b8a8099148.chunk.js +0 -1
- package/dist/scripts/7416-4d6b9b9a5b.chunk.js +0 -1
- package/dist/scripts/7696-8d0c3a508a.chunk.js +0 -1
- package/dist/scripts/8542-6f5077cb9a.chunk.js +0 -1
- package/dist/scripts/9217-3332ab3162.chunk.js +0 -1
- package/dist/scripts/9471-48cf12a8aa.chunk.js +0 -2
- package/dist/scripts/bundle-08100e0c8f.min.js +0 -2
- /package/dist/css/{2614-library-editor-46e4b6af59.chunk.css → 3664-library-editor-46e4b6af59.chunk.css} +0 -0
- /package/dist/css/{5814-library-editor-46e4b6af59.chunk.css → 4096-library-editor-46e4b6af59.chunk.css} +0 -0
- /package/dist/css/{7696-library-editor-cc4c4155eb.chunk.css → 5513-library-editor-cc4c4155eb.chunk.css} +0 -0
- /package/dist/css/{5182-library-editor-e354d61dfe.chunk.css → 7115-library-editor-e354d61dfe.chunk.css} +0 -0
- /package/dist/css/{463-library-editor-911bfc41fe.chunk.css → 7925-library-editor-911bfc41fe.chunk.css} +0 -0
- /package/dist/css/{5736-library-editor-34087db2b0.chunk.css → 9082-library-editor-34087db2b0.chunk.css} +0 -0
- /package/dist/css/{4719-library-editor-7e2ac516b4.chunk.css → 9096-library-editor-7e2ac516b4.chunk.css} +0 -0
- /package/dist/css/{9217-library-editor-46e4b6af59.chunk.css → 968-library-editor-46e4b6af59.chunk.css} +0 -0
- /package/dist/scripts/{1010-a34c5ba546.chunk.js → 1010-0051447919.chunk.js} +0 -0
- /package/dist/scripts/{1080-78e6c18aa7.chunk.js → 1080-9f6ad917d8.chunk.js} +0 -0
- /package/dist/scripts/{1115-c6cc1353bd.chunk.js → 1115-538343833e.chunk.js} +0 -0
- /package/dist/scripts/{1200-193f4b5bbd.chunk.js → 1200-9c85c3d5ca.chunk.js} +0 -0
- /package/dist/scripts/{1524-1e4a0330df.chunk.js → 1524-2f444ac3ec.chunk.js} +0 -0
- /package/dist/scripts/{2035-d874bdac26.chunk.js → 2035-4bf3392b3a.chunk.js} +0 -0
- /package/dist/scripts/{2591-fba291a9c0.chunk.js → 2591-384c8c6cac.chunk.js} +0 -0
- /package/dist/scripts/{2803-7a2cdecd93.chunk.js → 2803-d7cf29380f.chunk.js} +0 -0
- /package/dist/scripts/{2888-3298161a61.chunk.js → 2888-97c3b4f37c.chunk.js} +0 -0
- /package/dist/scripts/{299-df09594cf4.chunk.js → 299-e0377b8731.chunk.js} +0 -0
- /package/dist/scripts/{3288-ab3ca0da7f.chunk.js → 3288-bab20aa94e.chunk.js} +0 -0
- /package/dist/scripts/{4796-cf965f7d93.chunk.js.LICENSE.txt → 336-bb4dc3d019.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3373-3286d26d40.chunk.js → 3373-39774fb619.chunk.js} +0 -0
- /package/dist/scripts/{3391-469c93ab2c.chunk.js → 3391-79af5afacd.chunk.js} +0 -0
- /package/dist/scripts/{3450-ad966a93e7.chunk.js → 3450-2b77dc7d81.chunk.js} +0 -0
- /package/dist/scripts/{3475-d6fd75feeb.chunk.js → 3475-896a4bf034.chunk.js} +0 -0
- /package/dist/scripts/{3639-631906e5be.chunk.js → 3639-a0854003d2.chunk.js} +0 -0
- /package/dist/scripts/{3643-a191b71123.chunk.js → 3643-647269f7ba.chunk.js} +0 -0
- /package/dist/scripts/{3873-42f43a345f.chunk.js → 3873-f1118739a9.chunk.js} +0 -0
- /package/dist/scripts/{4245-bcb3d8e3e4.chunk.js → 4245-9844cc284b.chunk.js} +0 -0
- /package/dist/scripts/{4591-9ea0b32ac6.chunk.js → 4591-7f81bdcc51.chunk.js} +0 -0
- /package/dist/scripts/{5182-a4c92e2987.chunk.js.LICENSE.txt → 4796-0f43bd8c15.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5180-37c1d4f9bd.chunk.js → 5180-542a42cb27.chunk.js} +0 -0
- /package/dist/scripts/{5193-163f49c462.chunk.js → 5193-978a428611.chunk.js} +0 -0
- /package/dist/scripts/{5327-9b16f6b411.chunk.js → 5327-22e2dcce4b.chunk.js} +0 -0
- /package/dist/scripts/{5346-6ecbb5b2b1.chunk.js → 5346-e31d4e982b.chunk.js} +0 -0
- /package/dist/scripts/{5412-bc03f5a901.chunk.js → 5412-9a31b69a02.chunk.js} +0 -0
- /package/dist/scripts/{5424-fa6c668f42.chunk.js → 5424-2dd236e148.chunk.js} +0 -0
- /package/dist/scripts/{6239-92a0bebbeb.chunk.js → 6239-f2b11c31b2.chunk.js} +0 -0
- /package/dist/scripts/{6350-b859c77d91.chunk.js → 6350-a70b088cd8.chunk.js} +0 -0
- /package/dist/scripts/{6450-a3ca4cdb2a.chunk.js → 6450-8de9792b20.chunk.js} +0 -0
- /package/dist/scripts/{6467-db60883ef6.chunk.js → 6467-48cc8b5479.chunk.js} +0 -0
- /package/dist/scripts/{1015-fde8b5ba1e.chunk.js.LICENSE.txt → 6567-02b07e94bc.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6587-eed4f0308b.chunk.js → 6587-2e97f69e7a.chunk.js} +0 -0
- /package/dist/scripts/{6677-66b4b60478.chunk.js → 6677-4118a57ece.chunk.js} +0 -0
- /package/dist/scripts/{6768-5f9040eac8.chunk.js → 6768-aab63a1809.chunk.js} +0 -0
- /package/dist/scripts/{6788-d3b052f1a9.chunk.js → 6788-5ad863550d.chunk.js} +0 -0
- /package/dist/scripts/{7071-4b42b6a81f.chunk.js → 7071-0aae4f6004.chunk.js} +0 -0
- /package/dist/scripts/{777-1b328a0073.chunk.js.LICENSE.txt → 7115-42b569dd15.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7182-9378cbae60.chunk.js.LICENSE.txt → 7182-e45ad5e0fe.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7190-35f785a3e3.chunk.js → 7190-3b8aefddee.chunk.js} +0 -0
- /package/dist/scripts/{9471-48cf12a8aa.chunk.js.LICENSE.txt → 7197-faf24e915d.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7366-1132e85416.chunk.js → 7366-2f7da593c6.chunk.js} +0 -0
- /package/dist/scripts/{7384-29be02029c.chunk.js → 7384-80e81af49f.chunk.js} +0 -0
- /package/dist/scripts/{775-2c991c9c6e.chunk.js → 775-96028af5a8.chunk.js} +0 -0
- /package/dist/scripts/{463-f5f80e35df.chunk.js.LICENSE.txt → 7925-b80cab7a7a.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8113-e17a857adc.chunk.js → 8113-fa8be2fe60.chunk.js} +0 -0
- /package/dist/scripts/{8362-a48a464bd6.chunk.js → 8362-976c6b3cfc.chunk.js} +0 -0
- /package/dist/scripts/{8862-0ce7a20f11.chunk.js → 8862-152ab78afc.chunk.js} +0 -0
- /package/dist/scripts/{8915-53b71a635d.chunk.js → 8915-75cddb9442.chunk.js} +0 -0
- /package/dist/scripts/{8989-258e7f8a87.chunk.js → 8989-1ca7a01335.chunk.js} +0 -0
- /package/dist/scripts/{95-bd02e086ac.chunk.js → 95-999936425e.chunk.js} +0 -0
- /package/dist/scripts/{9734-37ab55da4e.chunk.js → 9734-bf7adc8154.chunk.js} +0 -0
- /package/dist/scripts/{9766-753d188467.chunk.js.LICENSE.txt → 9766-da39830c71.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9928-f43d6de0a3.chunk.js → 9928-f23b5324b7.chunk.js} +0 -0
- /package/dist/scripts/{bundle-08100e0c8f.min.js.LICENSE.txt → bundle-ae75dee45b.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9743],{77037:function(e,t,n){n.d(t,{q:function(){return l}});var i=n(32735),r=n(68003),a=n(88483),o=n(87013),c=n(85475),u=n(39396),s={avatar:"Gvwzj",dot:"JJHBJ"};function l(e){var t,n,l=!e.anonymiseUsers&&e.imageUrl||(t=e.imageCdnUrl,(n=e.initials)?o.j.createUrl(r._.safeUrlConcat(t,"/v1/profile-images?initials=".concat(n)),{size:a.h2.Small}):"");return i.createElement("div",{className:"position-relative h-100 w-100"},e.showAnonymousUser?i.createElement("div",{className:"".concat(s.avatar," ").concat((null==e?void 0:e.extraClasses)||""," bg-gray-700 text-light")},i.createElement(u.x,{svgName:c.vn.Anonymous,size:e.anonymousSvgSize||u.S.Large,className:"svg-container w-100 h-100"})):i.createElement("div",{className:"".concat(s.avatar," ").concat((null==e?void 0:e.extraClasses)||""),style:{backgroundImage:"url('".concat(l,"')")}}," "),e.showDot&&i.createElement("div",{className:"".concat(s.dot," rounded-circle bg-danger")}))}},41087:function(e,t,n){n.d(t,{C:function(){return b},g:function(){return s}});var i,r=n(32735),a=n(57857),o=n(39396),c=n(21326),u=n(50028);!function(e){e.Exchange="exchange",e.Streamable="streamable",e.MoviesAndTv="movies_and_tv",e.Twig="twig"}(i||(i={}));var s,l=n(27866),d=n(45428),v=n(85475),p=n(21974),m=n(6665),g=a.T.encloseNamespace("shared.badges");!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction",e.Source="source"}(s||(s={}));var f={xs:o.S.ExtraSmall,sm:o.S.Small,std:o.S.Standard,lg:o.S.Large},y={xs:"badge-xs",sm:"badge-sm",std:"badge-std",lg:"badge-lg"};function b(e){var t=e.type,n=e.data,a=e.size,b=void 0===a?"std":a;if(!function(e,t){var n,i;return"boolean"==typeof t?!!t:e===s.Rating?t&&!!t.value:e===s.Interactive?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===s.Captions?!!(null==t?void 0:t.length)||!!(null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.length):e===s.Status?"number"==typeof t:!!t}(t,n))return r.createElement(r.Fragment,null);var h=function(e,t,n){var r,a=y[n],o="";if(e===s.DurationApproximate&&(o="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===s.DurationExact&&(o="duration-badge"),e===s.Interactive&&(o="interactive-badge"),e===s.Rating&&(o="rating-badge text-shadow ".concat(p.u.mapRatingToClass(t.value))),e===s.ProductionYear&&(o="production-year-badge text-shadow"),e===s.Captions)return"p-0";if(e===s.Status)return"badge ".concat(function(e){switch(e){case u.X.Published:return"bg-success";case u.X.Archived:case u.X.Rejected:return"bg-danger";case u.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case u.X.Pending:case u.X.Processing:return"bg-warning"}}(t));if(e===s.Trending)return"trending-badge px-1 d-flex align-items-center ".concat(a);if(e===s.Count&&(o="count-badge px-1 rounded"),e===s.Restriction){var c=d.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(c)}return e===s.Source&&(o=(r=t).includes(i.Streamable)?"px-1 text-nowrap d-flex align-items-center ".concat(m.Z.streamable):r.includes(i.MoviesAndTv)?"bg-indigo text-white px-1 text-nowrap d-flex align-items-center":r.includes(i.Exchange)?"bg-orange text-white px-1 text-nowrap d-flex align-items-center":r.includes(i.Twig)?"bg-pink text-white px-1 text-nowrap d-flex align-items-center":""),"".concat("badge"," ").concat(o)}(t,n,b);h="".concat(h," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var C=function(e,t,n){if(e===s.Interactive)return g("interactive");if(e===s.DurationApproximate)return l.T.ToDisplayDurationNewStyle(t);if(e===s.DurationExact)return l.T.ToDisplayDuration(t);if(e===s.Rating)return t.code;if(e===s.ProductionYear)return t;if(e===s.Captions)return r.createElement(o.x,{svgName:v.vn.CloseCaptionBadge});if(e===s.Status)return u.X[t];if(e===s.Trending)return r.createElement(r.Fragment,null,r.createElement(o.x,{svgName:v.vn.Trending,size:f[n]}),r.createElement("span",{className:"ps-1"},t));if(e===s.Count)return t;if(e===s.Restriction)return r.createElement(r.Fragment,null,r.createElement(o.x,{svgName:d.l.mapRestrictionToSvg(t.restrictions)}),r.createElement("span",null,d.l.mapRestrictionToText(t.restrictions,t.yearGroups)));if(e===s.Source){var a=t;return a.includes(i.Streamable)?"streamable":a.includes(i.MoviesAndTv)?"movies + tv":a.includes(i.Exchange)?"exchange":a.includes(i.Twig)?"twig":"-"}}(t,n,b),w=function(e,t){return e===s.Rating?{title:t.name,placement:"top"}:null}(t,n),T=e.inline&&"d-inline-block";return w?r.createElement("div",{className:"badge-wrapper d-inline"},r.createElement(c.u,Object.assign({},w,{spanHack:!0,spanHackClassName:T}),r.createElement("span",{className:h},C))):r.createElement("span",{className:"".concat(h," badge-wrapper")},C)}},44550:function(e,t,n){n.d(t,{c:function(){return a}});var i=n(32735),r=n(6665);function a(e){var t="d-flex align-items-center badge-list ".concat(r.Z.minHeight);return e.className&&(t+=" ".concat(e.className)),i.createElement("div",{className:t},e.children)}},90547:function(e,t,n){var i;n.d(t,{r:function(){return i}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(i||(i={}))},34254:function(e,t,n){var i;n.d(t,{r:function(){return i}}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(i||(i={}))},86257:function(e,t,n){var i;n.d(t,{L:function(){return i}}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(i||(i={}))},87648:function(e,t,n){var i;n.d(t,{c:function(){return i}}),function(e){e.Custom="custom",e.User="year_group"}(i||(i={}))},90335:function(e,t,n){var i;n.d(t,{D:function(){return i}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series",e.ProductionYear="production_year"}(i||(i={}))},332:function(e,t,n){n.d(t,{e:function(){return c}});var i=n(2248),r=n(68003),a=n(84657),o=n(34254),c={clip:function(e,t){return{key:"clip:".concat(e,":").concat(t),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.CLIP,permissionFilterOption:t})}},videoClips:function(e,t,n){return{key:"video:".concat(e,":clips:").concat(t,":").concat(n),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e,"/clips"),{query:a.v.CLIP_COLLECTION,permissionFilterOption:t,cursor:n})}},clipWithAllInteractives:function(e,t){return{key:"clip:".concat(e,":").concat(t,":interactives"),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"".concat(a.v.CLIP,",interactives{status:[0,1]}"),permissionFilterOption:t}),normalize:!1}},publicClip:function(e,t,n,i){return{key:"clip:".concat(e,":public:").concat(t),url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo,_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),bootstrapName:"shared:object:".concat(e),success:n,error:i}},sharedClip:function(e,t,n,i){return{key:"shared:clip:".concat(e),url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.CLIP}),success:n,error:i}},createClip:function(e,t,n,r,a){return{key:"create:clip",url:"{gateway}/v1/objects/".concat(e,"/clips"),data:t,type:i.k.POST,invalidationKeys:["videos:".concat(e),"my:videos"],success:n,error:r,always:a}},updateClip:function(e,t,n,r,a){return{key:"update:clip",url:"{gateway}/v1/objects/".concat(e),data:t,type:i.k.PUT,success:n,error:r,always:a}},deleteClip:function(e,t,n,r,a){return{key:"delete:clip",url:"{gateway}/v1/objects/".concat(e),type:i.k.DELETE,invalidationKeys:["videos:".concat(t),"my:videos","videos"],success:n,error:r,always:a}}}},91432:function(e,t,n){n.d(t,{b:function(){return c}});var i=n(2248),r=n(68003),a=n(84657),o=n(34254),c={interactiveMetadata:function(e,t){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.INTERACTIVE,permissionFilterOption:t}),key:"interactive:metadata:".concat(e,":").concat(t)}},videoInteractives:function(e,t,n){return{key:"video:".concat(e,":interactives:").concat(t,":").concat(n),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e,"/interactives"),{query:a.v.INTERACTIVE_COLLECTION,cursor:n}),publicUrl:r._.urlBuilder("/api/objects/".concat(e,"/interactives"),{query:a.v.INTERACTIVE_COLLECTION,cursor:n})}},sharedInteractiveMetadata:function(e,t,n,i){return{url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.INTERACTIVE}),key:"shared:interactive:metadata:".concat(e),success:n,error:i}},publicInteractiveMetadata:function(e,t,n,i){return{url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo[rating],_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),key:"interactive:metadata:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:i}},interactive:function(e){return{url:"/api/domain/v1/interactives/".concat(e),key:"interactive:".concat(e),normalize:!1}},createInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives",key:"create:interactive",type:i.k.POST,invalidationKeys:["my:videos"],data:e,success:t,error:n}},createInteractiveMetadata:function(e,t,n,r){return{url:"{gateway}/v1/objects/".concat(e,"/interactives"),key:"create:interactive:metadata",type:i.k.POST,data:t,success:n,error:r}},updateInteractive:function(e,t,n,r){return{url:"/api/domain/v1/interactives/".concat(e),key:"update:interactive",type:i.k.PUT,data:t,success:n,error:r,formatData:function(){return t}}},updateInteractiveMetadata:function(e,t,n,r){return{url:"{gateway}/v1/objects/".concat(e),key:"update:interactive:metadata",type:i.k.PUT,data:t,success:n,error:r}},interactiveResultSet:function(e,t){return{url:"/api/domain/v1/analytics/interactives/".concat(e,"/metadata/").concat(t),key:"interactive:result:set:".concat(e,":").concat(t)}},copyInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives/".concat(e,"/copy"),key:"copy:interactive",type:i.k.POST,invalidationKeys:["interactive:".concat(e),"my:videos"],success:t,error:n}},deleteInteractiveMetadata:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:interactive",type:i.k.DELETE,invalidationKeys:["interactive:".concat(e),"my:videos","videos"],success:t,error:n}},removeInteractiveMetadata:function(e){var t=e.libraryId,n=e.categoryId,a=e.interactiveMetadataId;return{url:r._.urlBuilder("/api/domain/v1/libraries/".concat(t,"/videos"),{categoryId:n,videoIds:a}),key:"remove:interactive:metadata:".concat(a),type:i.k.DELETE,invalidationKeys:["interactive:".concat(a),"my:videos","videos"]}},contributeToCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:i.k.POST}},revokefromCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:i.k.DELETE}},isContributed:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contributed"),key:"iscontributed:".concat(e),normalize:!1}},updateInteraction:function(e){return{url:"/api/domain/v1/interactions/bulk/".concat(e.id),key:"contribute:interactive",data:e,type:i.k.PUT,invalidationKeys:["interactive:".concat(e.interactiveId)]}}}},77131:function(e,t,n){n.d(t,{R:function(){return g}});var i,r=n(2248),a=n(68003),o=n(84657),c=n(50028),u=n(74421),s=n(34254);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget",e.Folder="category",e.CategoryTree="categoryTree"}(i||(i={}));var l=n(15970),d=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:o.v.VIDEO})},v=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating,libraries{typeId:[17]}",permissionFilterOption:s.r.StripMetadata,shareId:t})},p=function(e){return a._.urlBuilder("{gateway}/v1/objects",{"query.video":o.v.VIDEO_COLLECTION,"query.clip":o.v.CLIP_COLLECTION,"query.interactive":o.v.INTERACTIVE_COLLECTION,id:e})},m=function(e){var t=e.videoId,n=e.context,r=e.collectionId,c=e.moviesAndTv,u={videoId:t,limit:e.limit,query:o.v.VIDEO_COLLECTION};return n&&(n===i.Widget?u["context.widgetId"]=r:(u["context.collectionType"]=n,u["context.collectionId"]=r)),c&&(u["context.moviesAndTv"]=!0),a._.urlBuilder("{gateway}/v1/suggestions/related-videos",u)},g={video:function(e,t){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.VIDEO,permissionFilterOption:t}),publicUrl:a._.urlBuilder("/api/objects/".concat(e),{query:o.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t)}},publicVideo:function(e,t,n,i){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:i}},sharedVideo:function(e,t,n,i){return{url:d(e,t),key:"shared:video:".concat(e),success:n,error:i}},myVideos:function(e,t){var n=o.v.VIDEO_COLLECTION,i=o.v.CLIP_COLLECTION,r=o.v.INTERACTIVE,l="videos[".concat(n,"]{libraries.typeid:").concat(u.E.WorkspaceCollection,"}"),d="clips[".concat(i,"]"),v="interactives[".concat(r,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),p={query:"(".concat(l,"|").concat(d,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:s.r.StripMetadata};return t&&(p.cursor=t),{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:p(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:p(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,n,i,a){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:r.k.PUT,data:t,success:n,error:i,always:a}},videoRatings:function(e,t){var n=e.map((function(e){return"id=".concat(e)}));if(n.length)return{url:"/api/domain/v2/objects?query=rating&".concat(n.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},videoMixinAssocs:function(e,t){if(e.map((function(e){return"id=".concat(e)})).length)return{url:a._.urlBuilder("{gateway}/v1/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},_hasCurriculumLinks",id:e}),publicUrl:a._.urlBuilder("/api/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},_hasCurriculumLinks",id:e}),key:"video:mixin:assocs:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(u.E.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video:".concat(e),type:r.k.DELETE,success:t,error:n,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,n,i,a){var o=e.map((function(e){return"videoIds=".concat(e)})).join("&"),c=["categoryId=".concat(n),"".concat(o)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(c),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(n),type:r.k.DELETE,success:i,error:a,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,n=e.context,i=e.collectionId,r=e.moviesAndTv;return{url:m(e),key:"related:videos:".concat(t,":").concat(n,":").concat(i,":").concat(r)}},collectionVideos:function(e,t,n,i,r,u){var d=l.d.getVideoSortParam(t),v=o.v.VIDEO_COLLECTION,p=o.v.CLIP_COLLECTION,m=o.v.INTERACTIVE,g="videos[".concat(v,"]"),f="clips[".concat(p,"]"),y="interactives[".concat(m,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),b=Object.assign({query:"(".concat(g,"|").concat(f,"|").concat(y,")").concat(d?"{".concat(d,"}"):""),permissionFilterOption:s.r.FilterOut},n?{cursor:n}:{}),h=["folder","videos",e,n,t].filter((function(e){return!!e})).join(":");return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),b),key:h,success:i,error:r,always:u}},pointsOfInterest:function(e,t,n,i,r){var o={query:"{limit:100}",cursor:t};return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),o),publicUrl:a._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),o),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:n,error:i,always:r}},regionAlternatives:function(e,t,n,i){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:i}}}},45428:function(e,t,n){n.d(t,{l:function(){return g}});var i=n(57857),r=n(10657),a=n(6665),o=n(87648),c=n(85475);function u(e){return u="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},u(e)}function s(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=i.T.encloseNamespace("shared.shared-utils"),d=s(s({},o.c.Custom,a.Z.restrictionBadgeCustom),o.c.User,a.Z.restrictionBadgeUser),v=s(s({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=s(s({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),m=s(s({},o.c.Custom,200),o.c.User,100),g={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var n=g.getWeightedRestriction(e.value);return d[n.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var n=g.getWeightedRestriction(e.value);return v[n.type]},mapRestrictionToText:function(e,t){var n;if(!(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.length)||!(null==t?void 0:t.length))return"";var i=g.getWeightedRestriction(e.value),r=t.find((function(e){return e.value===i.yearGroup})),a=p[i.type];if(i.type===o.c.User)return null===i.yearGroup?l("restrictionStaff"):r?1===t.length?l("restrictionStudents"):l(a,{yearGroup:r.name}):"";if(i.type===o.c.Custom){var c=g.getRestrictionDuration(i);return c?l(a,{duration:c,smartCount:c}):l("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(null==e?void 0:e.length)return 1===e.length?e[0]:e.reduce((function(e,n){var i=m[e.type],r=m[n.type];return"highest"===t&&i>r||"lowest"===t&&i<r?e:n}))},getRestrictionByType:function(e,t){if(!g.hasRestrictions(e))return null;var n=Array.isArray(t)?t:[t],i=e._restrictions.value.filter((function(e){return n.includes(e.type)}));return g.getWeightedRestriction(i)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=r.O.convertUTCToLocal(e.expiresOn);if(t)return r.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!g.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===n?void 0:n.length)}}},21974:function(e,t,n){n.d(t,{u:function(){return l}});var i=n(57857),r=n(75459),a=n(86257),o=n(85475);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,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="shared.shared-utils",l={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-blue";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case r.r.HostedLibrary:case r.r.CustomLibrary:return e.name;case r.r.Exchange:return i.T.getPhrase(s,"exchange");case r.r.Workspace:return i.T.getPhrase(s,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case r.r.HostedLibrary:case r.r.CustomLibrary:return"bg-blue";case r.r.Exchange:return"bg-green";case r.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=u(u(u(u(u(u(u({},a.L.Pdf,o.vn.FilePDF),a.L.Image,o.vn.FileImg),a.L.PowerPoint,o.vn.FilePowerpoint),a.L.Document,o.vn.FileWord),a.L.Excel,o.vn.FileExcel),a.L.Zip,o.vn.FileZip),a.L.File,o.vn.File)[e];return t||(t=o.vn.Folder),t},mapTypeToClass:function(e){switch(e){case a.L.Pdf:return"icon-red";case a.L.Image:return"icon-purple";case a.L.Document:return"icon-blue";case a.L.Excel:return"icon-green";case a.L.PowerPoint:return"icon-orange";case a.L.Zip:return"icon-teal";case a.L.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 a.L.Pdf:return i.T.getPhrase(s,"pdf");case a.L.Image:return i.T.getPhrase(s,"image");case a.L.Document:return i.T.getPhrase(s,"document");case a.L.Excel:return i.T.getPhrase(s,"spreadsheet");case a.L.PowerPoint:return i.T.getPhrase(s,"presentation");case a.L.Zip:return i.T.getPhrase(s,"zipArchive");case a.L.File:return i.T.getPhrase(s,"file");default:return""}}}},11275:function(e,t,n){n.d(t,{M:function(){return b}});var i,r=n(11306),a=n(57857),o=n(31647),c=n(10657),u=n(70065);!function(e){e.Screenrights="screenrights",e.Era="era",e.ClickView="clickview"}(i||(i={}));var s=n(50028),l=n(74421),d=n(87648),v=n(332),p=n(91432),m=n(77131),g=n(45428),f=n(13034),y=a.T.encloseNamespace("shared.shared-utils"),b={isVideo:function(e){return(null==e?void 0:e.typeId)===l.E.Video},isClip:function(e){return(null==e?void 0:e.typeId)===l.E.Clip},isInteractive:function(e){return(null==e?void 0:e.typeId)===l.E.Interactive},isVideoTypeArchived:function(e){return(null==e?void 0:e.status)===s.X.Archived},isVideoType:function(e){return b.isVideo(e)||b.isInteractive(e)||b.isClip(e)},hasSeries:function(e){var t;return!!(null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.id)},showVideoGuidance:function(e){return!e(f.C.StudentExperience)},showInteractivesGuidance:function(e){var t,n;return!(!e||b.isInteractive(e)||!(null===(n=null===(t=e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length))},showResourcesGuidance:function(e){var t,n,i,r;return!(!e||b.isInteractive(e)||!(((null===(n=null===(t=e.resources)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)||0)+((null===(r=null===(i=e.links)||void 0===i?void 0:i.data)||void 0===r?void 0:r.length)||0)))},getVideoProgress:function(e){var t,n;return(null==e?void 0:e.lastProgressPoint)?null==e?void 0:e.lastProgressPoint:(null===(t=null==e?void 0:e._videoProgress)||void 0===t?void 0:t.progress)?null===(n=null==e?void 0:e._videoProgress)||void 0===n?void 0:n.progress:0},getThumbnail:function(e){var t,n,i;return e?b.isVideo(e)?e.thumbnail:(null==e?void 0:e._thumbnail)?e._thumbnail:b.isClip(e)?e.thumbnail||(null===(t=e._parentVideo)||void 0===t?void 0:t.thumbnail):b.isInteractive(e)?(null===(n=e._parentVideo)||void 0===n?void 0:n.thumbnail)||(null===(i=e._parentClip)||void 0===i?void 0:i.thumbnail):void 0:null},getDuration:function(e){var t,n;if(e){if(b.isVideo(e))return e.duration;if(b.isInteractive(e)){if(null===(t=e._parentClip)||void 0===t?void 0:t.id)return 1e3*(e._parentClip.endTime-e._parentClip.startTime);if(null===(n=e._parentVideo)||void 0===n?void 0:n.duration)return e._parentVideo.duration}return b.isClip(e)?1e3*(e.endTime-e.startTime):void 0}},getAnalyticsEntity:function(e){return b.isVideo(e)?u.py.Video:b.isInteractive(e)?u.py.Interactive:b.isClip(e)?u.py.Clip:void 0},getAnalyticsData:function(e){var t,n,i,r,a,o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b.isVideo(e))return Object.assign(Object.assign({},c||{}),{id:e.id,name:e.name});if(b.isClip(e)){var u=Object.assign(Object.assign({},c||{}),{id:e.id,name:e.name});return(null===(t=e._parentVideo)||void 0===t?void 0:t.id)&&(u.video={id:null===(n=e._parentVideo)||void 0===n?void 0:n.id,name:e._parentVideo.name}),u}var s=Object.assign(Object.assign({},c),{id:e.id,interactiveId:e.interactiveId,name:e.name,status:e.status,originType:e.originType});return(null===(i=null==e?void 0:e._parentClip)||void 0===i?void 0:i.id)&&(s.clip={id:null===(r=null==e?void 0:e._parentClip)||void 0===r?void 0:r.id,name:null==e?void 0:e._parentClip.name}),(null===(a=null==e?void 0:e._parentVideo)||void 0===a?void 0:a.id)&&(s.video={id:null===(o=null==e?void 0:e._parentVideo)||void 0===o?void 0:o.id,name:null==e?void 0:e._parentVideo.name}),s},getCanBeConsumed:function(e){var t,n;return e&&b.isVideoType(e)?e._canBeConsumed?{canNavigate:"login-required"===(null===(t=e._canBeConsumed)||void 0===t?void 0:t.reason)&&b.isVideo(e)||!0===e._canBeConsumed.value,canConsume:e._canBeConsumed.value,reason:null===(n=e._canBeConsumed)||void 0===n?void 0:n.reason}:{canNavigate:!0,canConsume:!0}:{canNavigate:!1,canConsume:!1}},getPrivacyReasoning:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=b.getCanBeConsumed(e),r=i.canConsume,a=i.canNavigate,o=i.reason,c=function(){return b.isClip(e)?y("clipLoginRequired"):b.isInteractive(e)?y("interactiveLoginRequired"):y("videoLoginRequired")};if(!r&&!a){if(n)return c();switch(o){case"rating-not-allowed":return y("ratingNotAllowed");case"video-deleted":return b.isClip(e)?y("clipParentDeleted"):b.isInteractive(e)?y("interactiveParentDeleted"):y("videoDeleted");case"clickview-private":return y("clickViewPrivate");case"private":default:return y("genericCannotAccess");case"login-required":return c();case"restricted-access":var u=g.l.getWeightedRestriction(null===(t=e._restrictions)||void 0===t?void 0:t.value);return(null==u?void 0:u.type)===d.c.Custom?y("awaitingApproval"):y("restrictedAccess")}}return b.isInteractive(e)&&e.status===s.X.Draft?y("draftInteractive"):""},getTitle:function(e){if(e.name)return b.isInteractive(e)&&e.status===s.X.Draft?y("draftInteractiveTitle",{name:e.name}):e.name;var t=b.getCanBeConsumed(e),n=t.canConsume,i=t.reason;return y(n||"private"!==i?n||"video-deleted"!==i?"privateVideo":"videoUnavailable":"privateVideo")},getParentVideo:function(e){return b.isVideo(e)?e:b.isClip(e)||b.isInteractive(e)?e._parentVideo:void 0},getRating:function(e){var t;return b.isVideo(e)?e.rating:null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t.rating},getVideoRequest:function(e,t,n){if(n){switch(t){case l.E.Video:return m.R.sharedVideo(e,n);case l.E.Clip:return v.e.sharedClip(e,n);case l.E.Interactive:return p.b.sharedInteractiveMetadata(e,n)}o.Q.Ry.throw(new r.H("Unsupported master type"))}switch(t){case l.E.Video:return m.R.video(e);case l.E.Clip:return v.e.clip(e);case l.E.Interactive:return p.b.interactiveMetadata(e)}o.Q.Ry.throw(new r.H("Unsupported master type"))},isBroadcast:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.contentLicences)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.systemName===i.Era||e.systemName===i.Screenrights})))},getReleaseDate:function(e){return e&&e.dateReleased&&b.isBroadcast(e)?c.O.format(e.dateReleased,"DD/MM/YYYY"):""},canViewOriginalVideo:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t._canBeConsumed)||void 0===n?void 0:n.value)},getTrackingCode:function(e){return b.isVideo(e)?e.trackingCode:b.isClip(e)||b.isInteractive(e)?e._parentVideo.trackingCode:void 0},isInExchange:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.libraries)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.typeId===l.E.ExchangeCollection})))},canViewUploadDate:function(e){return!(!e||!e.dateCreated||!e._isClickViewCurated||e._isClickViewCurated.value)}}},15970:function(e,t,n){n.d(t,{d:function(){return o}});var i=n(4705),r=n(90335),a=r.D.RecentlyAdded,o={getValidSortTypeFromParam:function(e){return Object.values(r.D).includes(e)?e:r.D.Newest},getOrSetSortType:function(e,t,n,r){var o=function(e,t){return"".concat(t?"".concat(t,":"):"","video:sort:").concat(e)}(e,r);return!t&&i.SG.cacheExists(o)||i.SG.cacheSet(o,t||n||a),t||(t=i.SG.cacheGet(o)),t},getVideoSortParam:function(e){switch(e){case r.D.AtoZ:return"orderby:name";case r.D.ZtoA:return"orderbydesc:name";case r.D.Newest:return"orderbydesc:datecreated";case r.D.Oldest:return"orderby:datecreated";case r.D.RecentlyAdded:return"orderbydesc:timestamp";case r.D.Series:return"orderby:seriessort";case r.D.ProductionYear:return"orderbydesc:productionyear";default:return}}}},6665:function(e,t){t.Z={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 9766-
|
|
1
|
+
/*! For license information please see 9766-da39830c71.chunk.js.LICENSE.txt */
|
|
2
2
|
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9766],{42905:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var o=n(57857),i=n(68003),r="shared.shared-utils",a={getEmbedResolutions:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=[{label:o.T.getPhrase(r,"small"),width:"640",height:"360"},{label:o.T.getPhrase(r,"medium"),width:"1014",height:"576"},{label:o.T.getPhrase(r,"large"),width:"1280",height:"720"}];return e&&t.unshift({label:o.T.getPhrase(r,"responsive"),width:"100%",height:"100%"}),t},getEmbedString:function(e){var t=e.url,n=e.size,o="100%"===n.width,i=o?'style="position:absolute; top:0; left:0; width:100%; height:100%;"':'width="'.concat(n.width,'" height="').concat(n.height,'"'),r='src="'.concat(t,'"'),a="<iframe ".concat(i," ").concat('frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen allow="autoplay"'," ").concat(r,"></iframe>");return o?'<div style="padding:56.25% 0 0 0; position:relative;">'.concat(a,"</div>"):a},buildEmbedUrl:function(e){var t=e.embedUrl,n=e.host,o=e.shareId,r=e.autoplay,a=e.consumerKey,l=t;l||(l=i._.safeUrlConcat(n,"share/embed/".concat(o)));var s={};return r&&(s.a=!0),a&&(s.consumerKey=a),i._.urlBuilder(l,s)}}},39766:function(e,t,n){"use strict";n.r(t),n.d(t,{ShareView:function(){return L}});var o=n(15922),i=n(21161),r=n(21679),a=n(57857),l=n(99249),s=n(68003),c=n(31647),u=n(42905),f=n(10101),h=n(45390),d=n(33800),p=n(29457),y=n(48404),b=n(93569),m=n(721),v=n.n(m),g=n(98723),k=n.n(g),w=n(151),S=n.n(w),E={container:"UHvy5",shareInput:"YMGwr",footerText:"D4m9G"};function x(e){return x="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},x(e)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(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,P(o.key),o)}}function O(e,t,n){return t&&C(e.prototype,t),n&&C(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function P(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}function _(e,t,n){return t=M(t),function(e,t){if(t&&("object"==x(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)}(e,j()?Reflect.construct(t,n||[],M(e).constructor):t.apply(e,n))}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(j=function(){return!!e})()}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function I(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)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}var z=function(e){function t(e){return T(this,t),_(this,t,[e])}return I(t,e),O(t,[{key:"name",get:function(){return"ShareFooterComponent"}},{key:"className",get:function(){return"modal-footer bg-light rounded-bottom"}},{key:"template",get:function(){return S()}},{key:"viewOptions",value:function(){return{footerTextClass:E.footerText,privacyDescription:this.options.privacyDescription}}}])}(c.Q.wA),L=function(e){function t(e){var n;return T(this,t),(n=_(this,t,[e])).clipboards=[],n}return I(t,e),O(t,[{key:"initialize",value:function(){this.setUpViewModel(),this.bindListeners(),this.videoDataService=r.u.getInstance(d.O.Video,this)}},{key:"name",get:function(){return"ShareView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return k()}},{key:"lang",get:function(){return"sharedLe.share"}},{key:"props",get:function(){return["videoId"]}},{key:"elements",get:function(){return{copy:".copy",embedToggle:".embed-toggle"}}},{key:"events",value:function(){return{"click @ui.copy":"onClickCopy","click @ui.embedToggle":"onClickEmbed"}}},{key:"regions",value:function(){return{container:{el:".".concat(E.container),replaceElement:!1},footer:{el:".modal-footer",replaceElement:!0}}}},{key:"defaults",get:function(){return{autoplay:!1,selectedVideoSize:0,videoSizes:u.i.getEmbedResolutions()}}},{key:"behaviors",get:function(){return[{behaviorClass:f.Yw,title:a.T.getPhrase(this.lang,"share"),hideCloseButton:!0},{behaviorClass:f.Bp,bindViewModel:!0}]}},{key:"bindListeners",value:function(){this.listenTo(this.viewModel,"change:autoplay change:selectedVideoSize",this.render),this.listenTo(this.viewModel,"change:public",this.onTogglePublic),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render)}},{key:"bindings",get:function(){var e=this;return{"[name=autoplay]":"autoplay","[name=selectedVideoSize]":{observe:"selectedVideoSize",selectOptions:{collection:function(){return i.map(e.options.videoSizes,(function(e,t){return{label:e.label,value:t}}))}}},"[name=public]":"public"}}},{key:"setUpViewModel",value:function(){this.viewModel=l.r.get("share:".concat(this.options.videoId),this.options)}},{key:"onTogglePublic",value:function(){var e=this,t=this.viewModel.get("public")?p.F2.Public:p.F2.SchoolOnly;this.videoDataService.getSharedResource(this.videoId,t,(function(n){n.set("privacyId",t),e.onSharedResourceSync(n)}))}},{key:"updateViewModel",value:function(){this.viewModel.set("public",this.model.get("privacyId")===p.F2.Public,{silent:!0})}},{key:"onSharedResourceSync",value:function(e){this.model=e,this.updateViewModel(),this.render()}},{key:"fetchData",value:function(){this.video=this.videoDataService.getVideo(this.videoId),this.model||this.videoDataService.getSharedResource(this.videoId,null,i.bind(this.onSharedResourceSync,this))}},{key:"buildEmbedString",value:function(){var e=i.extend({},this.model.toJSON(),this.viewModel.toJSON()),t=this.options.videoSizes[e.selectedVideoSize],n="100%"===t.height&&"100%"===t.width;e.videoSize=t,e.baseUrl=s._.safeUrlConcat(this.config.get("onlineUrl"),"/share/embed"),e.isResponsive=n;var o=v()(e);return n?'<div style="padding:56.25% 0 0 0; position:relative;">'.concat(o,"</div>"):o}},{key:"onClickEmbed",value:function(){this.viewModel.set("showEmbed",!0),this.render()}},{key:"onClickCopy",value:function(e){this.$(e.currentTarget).text(a.T.getPhrase(this.lang,"copied"))}},{key:"getPrivacyDescription",value:function(e){switch(e){case p.F2[p.F2.Private]:return a.T.getPhrase(this.lang,"private");case p.F2[p.F2.SchoolOnly]:return a.T.getPhrase(this.lang,"schoolOnly");case p.F2[p.F2.Public]:return a.T.getPhrase(this.lang,"public");default:return""}}},{key:"initClipboards",value:function(){var e=this;this.destroyClipboards(),this.getUI("copy").each((function(t,n){e.clipboards.push(new o(n))}))}},{key:"destroyClipboards",value:function(){i.each(this.clipboards,(function(e){return e.destroy()})),this.clipboards=[]}},{key:"requiredResources",get:function(){return{config:y.p.config}}},{key:"getCannotPublicShareText",value:function(){return this.video?b.M2.isExchangeVideo(this.video)?a.T.getPhrase(this.lang,"cannotShareExchange"):a.T.getPhrase(this.lang,"cannotShareClickView"):""}},{key:"onBeforeDestroy",value:function(){this.destroyClipboards()}},{key:"renderFooter",value:function(){var e=this.model&&this.getPrivacyDescription(this.model.get("privacy"));this.showChildView("footer",new z({privacyDescription:e}))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:E},this.viewModel.toJSON()),{embedString:this.model&&this.buildEmbedString(),spinnerEl:b.Kp.getSpinner({size:b.Ey.Large,extraClasses:"mx-auto"}),showLoader:!this.model||!this.video,canPublicShare:this.video&&b.BK.canPublicShare(this.video),cannotPublicShareText:this.getCannotPublicShareText()})}},{key:"onBeforeRender",value:function(){this.fetchData()}},{key:"onRender",value:function(){this.initClipboards(),this.renderFooter()}}])}(c.Q.G7)},15922:function(e){var t;t=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var 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},i=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=s(n(1)),a=s(n(3)),l=s(n(4));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.resolveOptions(n),o.listenClick(e),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===o(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,l.default)(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new r.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return u("action",e)}},{key:"defaultTarget",value:function(e){var t=u("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return u("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(a.default);function u(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=c},function(e,t,n){"use strict";var o,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},r=function(){function e(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)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=(o=n(2))&&o.__esModule?o:{default:o},l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return r(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=l},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var o=window.getSelection(),i=document.createRange();i.selectNodeContents(e),o.removeAllRanges(),o.addRange(i),t=o.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function i(){o.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,i=n.length;o<i;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],i=[];if(o&&t)for(var r=0,a=o.length;r<a;r++)o[r].fn!==t&&o[r].fn._!==t&&i.push(o[r]);return i.length?n[e]=i:delete n[e],this}},e.exports=n},function(e,t,n){var o=n(5),i=n(6);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!o.string(t))throw new TypeError("Second argument must be a String");if(!o.fn(n))throw new TypeError("Third argument must be a Function");if(o.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(o.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(o.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var o=n(7);function i(e,t,n,o,i){var a=r.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function r(e,t,n,i){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,o,r){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,o,r)})))}},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}}])},e.exports=t()},721:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return'style="position:absolute; top:0; left:0; width:100%; height:100%;"'},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return'width="'+l(a(null!=(r=null!=t?t.videoSize:t)?r.width:r,t))+'" height="'+l(a(null!=(r=null!=t?t.videoSize:t)?r.height:r,t))+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c="function",u=e.escapeExpression;return'<iframe frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen '+(null!=(r=n.if.call(l,null!=t?t.isResponsive:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+' src="'+u(typeof(a=null!=(a=n.baseUrl||(null!=t?t.baseUrl:t))?a:s)===c?a.call(l,{name:"baseUrl",hash:{},data:i}):a)+"?shareCode="+u(typeof(a=null!=(a=n.shortCode||(null!=t?t.shortCode:t))?a:s)===c?a.call(l,{name:"shortCode",hash:{},data:i}):a)+"&a="+u(typeof(a=null!=(a=n.autoplay||(null!=t?t.autoplay:t))?a:s)===c?a.call(l,{name:"autoplay",hash:{},data:i}):a)+'"></iframe>'},useData:!0})},98723:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,(null!=(r=e.lambda(null!=(r=null!=t?t.options:t)?r.spinnerEl:r,t))?r:"")+"\n"},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'\n<div class="'+s(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.container:r,t))+'">\n <label for="share-input" class="mb-0 h6">'+s((n.lang||t&&t.lang||u).call(c,"shareLink",{name:"lang",hash:{},data:i}))+'</label>\n <div class="input-group mb-2">\n <input type="text" autocomplete="off" class="form-control '+s(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.shareInput:r,t))+'" id="share-input" spellcheck="false" readonly="true" value='+s("function"==typeof(a=null!=(a=n.shortUrl||(null!=t?t.shortUrl:t))?a:u)?a.call(c,{name:"shortUrl",hash:{},data:i}):a)+'>\n <button class="btn btn-outline-dark copy" type="button" data-clipboard-target="#share-input">'+s((n.lang||t&&t.lang||u).call(c,"copy",{name:"lang",hash:{},data:i}))+"</button>\n </div>\n\n"+(null!=(r=n.unless.call(c,null!=(r=null!=t?t.options:t)?r.showEmbed:r,{name:"unless",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?r:"")+"\n"+(null!=(r=n.if.call(c,null!=(r=null!=t?t.options:t)?r.showEmbed:r,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?r:"")+"</div>\n"},4:function(e,t,n,o,i){return e.propertyIsEnumerable,' <small class="embed-toggle"><a class="text-info cursor-pointer hover-text-underline">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"showOptions",{name:"lang",hash:{},data:i}))+"</a></small>\n"},6:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return' <hr class="mt-4">\n <label for="link-options-input" class="mb-2 h6">'+s((n.lang||t&&t.lang||l).call(a,"linkOptions",{name:"lang",hash:{},data:i}))+'</label>\n <div class="form-check mb-2">\n <input type="checkbox" autocomplete="off" class="form-check-input public-checkbox" id="public-checkbox" name="public" '+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.canPublicShare:r,{name:"unless",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?r:"")+'>\n <label class="form-check-label" for="public-checkbox">'+s((n.lang||t&&t.lang||l).call(a,"publicCheckbox",{name:"lang",hash:{},data:i}))+"</label>\n "+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.canPublicShare:r,{name:"unless",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+'\n </div>\n <hr class="mt-4">\n <label for="embed-input" class="mb-0 mt-2 h6">'+s((n.lang||t&&t.lang||l).call(a,"embed",{name:"lang",hash:{},data:i}))+'</label>\n <div class="input-group mb-2 '+s(c(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.textareaContainer:r,t))+'">\n <textarea type="text" class="form-control rounded w-100 h-100 z-0" id="embed-input" spellcheck="false" rows="6" readonly>'+s(c(null!=(r=null!=t?t.options:t)?r.embedString:r,t))+'</textarea>\n <div class="position-absolute bottom-0 end-0"><button class="btn btn-outline-dark copy" type="button" data-clipboard-target="#embed-input">'+s((n.lang||t&&t.lang||l).call(a,"copy",{name:"lang",hash:{},data:i}))+"</button></div>\n </div>\n"+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.videoSizes:r,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="form-check d-inline-block">\n <input type="checkbox" autocomplete="off" class="form-check-input autoplay-checkbox" id="autoplay-checkbox" name="autoplay">\n <label class="form-check-label" for="autoplay-checkbox">'+s((n.lang||t&&t.lang||l).call(a,"autoplay",{name:"lang",hash:{},data:i}))+"</label>\n </div>\n"},7:function(e,t,n,o,i){return"disabled"},9:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<div class="text-secondary">'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.cannotPublicShareText:r,t))+"</div>"},11:function(e,t,n,o,i){return e.propertyIsEnumerable,' <label for="size-select" class="d-block pt-2 h6">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"playerSize",{name:"lang",hash:{},data:i}))+'</label>\n <select class="form-select me-4 size-select w-50 d-inline-block" id="#size-select" name="selectedVideoSize"></select>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.showLoader:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:""},useData:!0})},151:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return'<small class="text-start w-100 mb-0 '+l(a(null!=(r=null!=t?t.options:t)?r.footerTextClass:r,t))+'">'+l(a(null!=(r=null!=t?t.options:t)?r.privacyDescription:r,t))+"</small>"},useData:!0})}}]);
|