@clickview/lite 0.5.2 → 0.5.3-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/en.json +1 -1
- package/dist/scripts/{1725-e68dfaa8fb-lite.chunk.js → 1725-127a7dcf70-lite.chunk.js} +1 -1
- package/dist/scripts/2458-f79a9422c3-lite.chunk.js +1 -0
- package/dist/scripts/2562-a8f30f53ba-lite.chunk.js +1 -0
- package/dist/scripts/{2699-9d8c7c4d4b-lite.chunk.js → 2699-dcc2aa33b4-lite.chunk.js} +1 -1
- package/dist/scripts/27-ede00ff63d-lite.chunk.js +1 -0
- package/dist/scripts/{2780-158ed56ca0-lite.chunk.js → 2780-98f813893b-lite.chunk.js} +1 -1
- package/dist/scripts/{291-12c1b96eb0-lite.chunk.js → 291-70f615b5bb-lite.chunk.js} +1 -1
- package/dist/scripts/3216-b18e9fee81-lite.chunk.js +1 -0
- package/dist/scripts/4111-b2d86dfb53-lite.chunk.js +1 -0
- package/dist/scripts/{4182-821e7d5399-lite.chunk.js → 4182-2b06e2e71f-lite.chunk.js} +1 -1
- package/dist/scripts/4420-ad754733bc-lite.chunk.js +1 -0
- package/dist/scripts/{4767-77413c886d-lite.chunk.js → 4767-25eb067f08-lite.chunk.js} +1 -1
- package/dist/scripts/{4893-067d26b9ff-lite.chunk.js → 4893-e1c6c2c80f-lite.chunk.js} +1 -1
- package/dist/scripts/{5139-ac52a338da-lite.chunk.js → 5139-6f43978996-lite.chunk.js} +1 -1
- package/dist/scripts/{5974-4a78333392-lite.chunk.js → 5974-e62dbea137-lite.chunk.js} +1 -1
- package/dist/scripts/{7115-f54443ff3d-lite.chunk.js → 7115-c6e7b1de08-lite.chunk.js} +1 -1
- package/dist/scripts/7127-7dfe2d59c2-lite.chunk.js +1 -0
- package/dist/scripts/7318-c87689a1c7-lite.chunk.js +2 -0
- package/dist/scripts/{7498-8e406262d5-lite.chunk.js → 7498-3bc186fdc7-lite.chunk.js} +1 -1
- package/dist/scripts/7989-7805937c3c-lite.chunk.js +2 -0
- package/dist/scripts/{8252-f7762f2c9c-lite.chunk.js → 8252-2810fb9bc7-lite.chunk.js} +1 -1
- package/dist/scripts/8322-fb0ea317c2-lite.chunk.js +1 -0
- package/dist/scripts/{8687-949758944f-lite.chunk.js → 8687-d9017084c9-lite.chunk.js} +1 -1
- package/dist/scripts/{8868-fc6ae4d8b7-lite.chunk.js → 8868-2a60ab353a-lite.chunk.js} +1 -1
- package/dist/scripts/{8905-343ca9bee1-lite.chunk.js → 8905-a1fd102c54-lite.chunk.js} +1 -1
- package/dist/scripts/{9708-525003829c-lite.chunk.js → 9708-3568c38db2-lite.chunk.js} +1 -1
- package/dist/scripts/bundle-278b19b7c3.min.js +2 -0
- package/package.json +61 -61
- package/dist/css/1736-lite-70aac78870.chunk.css +0 -56
- package/dist/css/1874-lite-b70ba3e55c.chunk.css +0 -26
- package/dist/css/2109-lite-5600ffd35c.chunk.css +0 -26
- package/dist/css/2246-lite-9434ba512e.chunk.css +0 -60
- package/dist/css/2405-lite-f6e8a8bc16.chunk.css +0 -36
- package/dist/css/2711-lite-ee849b44db.chunk.css +0 -42
- package/dist/css/2780-lite-82ab4b0a3b.chunk.css +0 -66
- package/dist/css/3044-lite-f6f7ccd27d.chunk.css +0 -14
- package/dist/css/3601-lite-426b120700.chunk.css +0 -38
- package/dist/css/3994-lite-f48c952d11.chunk.css +0 -36
- package/dist/css/4512-lite-8ae16de67b.chunk.css +0 -46
- package/dist/css/5027-lite-37a1bfe443.chunk.css +0 -46
- package/dist/css/5266-lite-7a7ac74447.chunk.css +0 -36
- package/dist/css/5466-lite-1ca65f3fa2.chunk.css +0 -38
- package/dist/css/5942-lite-ed7f448bf3.chunk.css +0 -28
- package/dist/css/6167-lite-436097518f.chunk.css +0 -38
- package/dist/css/6285-lite-885b7ea1f0.chunk.css +0 -4
- package/dist/css/6355-lite-9dc5ba23e3.chunk.css +0 -50
- package/dist/css/6473-lite-436097518f.chunk.css +0 -38
- package/dist/css/6570-lite-435d27636f.chunk.css +0 -14
- package/dist/css/6715-lite-843cc4be75.chunk.css +0 -38
- package/dist/css/705-lite-8a0c6befc3.chunk.css +0 -40
- package/dist/css/7066-lite-edc09d2bf1.chunk.css +0 -38
- package/dist/css/7722-lite-37a1bfe443.chunk.css +0 -46
- package/dist/css/8072-lite-1e48afb701.chunk.css +0 -38
- package/dist/css/8383-lite-227bd1df53.chunk.css +0 -2
- package/dist/css/8414-lite-43f262c18d.chunk.css +0 -52
- package/dist/css/8416-lite-9434ba512e.chunk.css +0 -60
- package/dist/css/8584-lite-d98ca340e7.chunk.css +0 -42
- package/dist/css/8618-lite-7cf276d202.chunk.css +0 -26
- package/dist/css/8835-lite-43f262c18d.chunk.css +0 -52
- package/dist/css/898-lite-cc5552ac6a.chunk.css +0 -38
- package/dist/css/9096-lite-8e8ad037b8.chunk.css +0 -38
- package/dist/css/9200-lite-494992e1f0.chunk.css +0 -22
- package/dist/css/9476-lite-227bd1df53.chunk.css +0 -2
- package/dist/css/9490-lite-db834aaea4.chunk.css +0 -26
- package/dist/css/lite-app-20d839f193.css +0 -161
- package/dist/scripts/1106-7d203252ab-lite.chunk.js +0 -1
- package/dist/scripts/1235-ddd3083c87-lite.chunk.js +0 -1
- package/dist/scripts/1291-b8f30160e5-lite.chunk.js +0 -1
- package/dist/scripts/1592-d92f7c0840-lite.chunk.js +0 -1
- package/dist/scripts/160-42301e68e8-lite.chunk.js +0 -1
- package/dist/scripts/1628-e6ea2db77d-lite.chunk.js +0 -1
- package/dist/scripts/1725-21209f22ac-lite.chunk.js +0 -1
- package/dist/scripts/1726-116d81b612-lite.chunk.js +0 -1
- package/dist/scripts/1736-5d3350eace-lite.chunk.js +0 -1
- package/dist/scripts/1874-38c4a1834e-lite.chunk.js +0 -1
- package/dist/scripts/1913-2183c7ca80-lite.chunk.js +0 -1
- package/dist/scripts/2044-7be628bc71-lite.chunk.js +0 -1
- package/dist/scripts/2109-dddddb6312-lite.chunk.js +0 -1
- package/dist/scripts/2175-723b0b209d-lite.chunk.js +0 -1
- package/dist/scripts/2215-08998bd8fb-lite.chunk.js +0 -1
- package/dist/scripts/2229-74688cb3d0-lite.chunk.js +0 -1
- package/dist/scripts/2246-58022fb8e3-lite.chunk.js +0 -1
- package/dist/scripts/227-b167b3d0a9-lite.chunk.js +0 -1
- package/dist/scripts/2405-bcd5adfb90-lite.chunk.js +0 -1
- package/dist/scripts/2458-856fac87cf-lite.chunk.js +0 -1
- package/dist/scripts/2560-542bcd21c0-lite.chunk.js +0 -1
- package/dist/scripts/2561-bf72b53216-lite.chunk.js +0 -1
- package/dist/scripts/2562-17c7a32919-lite.chunk.js +0 -1
- package/dist/scripts/2562-f789f3ab41-lite.chunk.js +0 -1
- package/dist/scripts/2566-ed4351dc7a-lite.chunk.js +0 -1
- package/dist/scripts/2644-23e6823b34-lite.chunk.js +0 -1
- package/dist/scripts/2665-5f5c6ff6c9-lite.chunk.js +0 -1
- package/dist/scripts/2711-68fc1dd44e-lite.chunk.js +0 -1
- package/dist/scripts/2780-d662b75ff1-lite.chunk.js +0 -1
- package/dist/scripts/2802-a0fa50a638-lite.chunk.js +0 -2
- package/dist/scripts/2802-a0fa50a638-lite.chunk.js.LICENSE.txt +0 -17
- package/dist/scripts/3044-5e456718e6-lite.chunk.js +0 -1
- package/dist/scripts/3108-0e5c09f5a7-lite.chunk.js +0 -1
- package/dist/scripts/3171-a38ae5ebeb-lite.chunk.js +0 -1
- package/dist/scripts/3216-02d38d7df4-lite.chunk.js +0 -1
- package/dist/scripts/3216-25cdfa7669-lite.chunk.js +0 -1
- package/dist/scripts/3468-a5adbdb9b7-lite.chunk.js +0 -1
- package/dist/scripts/3601-72c3b7ea12-lite.chunk.js +0 -1
- package/dist/scripts/3732-5e72877fbb-lite.chunk.js +0 -1
- package/dist/scripts/3994-a9d50b2dfb-lite.chunk.js +0 -1
- package/dist/scripts/4067-1fea93ec7f-lite.chunk.js +0 -1
- package/dist/scripts/4111-80fea1a036-lite.chunk.js +0 -1
- package/dist/scripts/4182-7cb03a20bd-lite.chunk.js +0 -1
- package/dist/scripts/4512-5c37ad577c-lite.chunk.js +0 -1
- package/dist/scripts/4541-ba25b9e6e5-lite.chunk.js +0 -1
- package/dist/scripts/4632-ec79136629-lite.chunk.js +0 -1
- package/dist/scripts/4770-b7cfbdbed6-lite.chunk.js +0 -1
- package/dist/scripts/4893-0c19492eee-lite.chunk.js +0 -1
- package/dist/scripts/4895-333d5f3d08-lite.chunk.js +0 -1
- package/dist/scripts/5027-b40bef5a12-lite.chunk.js +0 -1
- package/dist/scripts/5266-760c910e3a-lite.chunk.js +0 -1
- package/dist/scripts/5466-faad2468f4-lite.chunk.js +0 -1
- package/dist/scripts/5606-3333d4d070-lite.chunk.js +0 -1
- package/dist/scripts/584-bb1c311390-lite.chunk.js +0 -1
- package/dist/scripts/5877-0cb46dc622-lite.chunk.js +0 -1
- package/dist/scripts/5914-1e321686f5-lite.chunk.js +0 -1
- package/dist/scripts/5942-5f49e048b9-lite.chunk.js +0 -1
- package/dist/scripts/5974-f5aa983720-lite.chunk.js +0 -1
- package/dist/scripts/5986-37ec610b54-lite.chunk.js +0 -1
- package/dist/scripts/6156-c8a26283cc-lite.chunk.js +0 -1
- package/dist/scripts/6167-7c9d16278a-lite.chunk.js +0 -1
- package/dist/scripts/6274-ee8382274b-lite.chunk.js +0 -1
- package/dist/scripts/6285-da86145f93-lite.chunk.js +0 -1
- package/dist/scripts/6355-1fffbda6b1-lite.chunk.js +0 -1
- package/dist/scripts/6370-73facccb88-lite.chunk.js +0 -1
- package/dist/scripts/6465-e9102df7a6-lite.chunk.js +0 -1
- package/dist/scripts/6570-b7bf9658d1-lite.chunk.js +0 -1
- package/dist/scripts/660-2debb59a5a-lite.chunk.js +0 -1
- package/dist/scripts/6715-2f720bfcc6-lite.chunk.js +0 -1
- package/dist/scripts/6736-f60da723db-lite.chunk.js +0 -2
- package/dist/scripts/6736-f60da723db-lite.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/6801-14cba66ade-lite.chunk.js +0 -1
- package/dist/scripts/6856-53ae5e3ed1-lite.chunk.js +0 -2
- package/dist/scripts/6856-53ae5e3ed1-lite.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/6864-c7caa65c2b-lite.chunk.js +0 -1
- package/dist/scripts/6866-4c96fad3fb-lite.chunk.js +0 -1
- package/dist/scripts/6873-a0a28a9bf2-lite.chunk.js +0 -1
- package/dist/scripts/6913-4413a87512-lite.chunk.js +0 -1
- package/dist/scripts/7045-dd37be1caa-lite.chunk.js +0 -1
- package/dist/scripts/705-132a0130aa-lite.chunk.js +0 -1
- package/dist/scripts/7066-72cdd0e88e-lite.chunk.js +0 -1
- package/dist/scripts/7115-9a443915cb-lite.chunk.js +0 -1
- package/dist/scripts/7128-d037b9d9c9-lite.chunk.js +0 -1
- package/dist/scripts/7172-d4f32a3d07-lite.chunk.js +0 -1
- package/dist/scripts/7318-2b9176a3df-lite.chunk.js +0 -2
- package/dist/scripts/7318-ff9c0bc9d2-lite.chunk.js +0 -2
- package/dist/scripts/7318-ff9c0bc9d2-lite.chunk.js.LICENSE.txt +0 -5
- package/dist/scripts/7385-eddeb8fd12-lite.chunk.js +0 -1
- package/dist/scripts/7498-abe2cd1b9a-lite.chunk.js +0 -1
- package/dist/scripts/7524-fbe88f8bcb-lite.chunk.js +0 -1
- package/dist/scripts/7545-4b21b7ff75-lite.chunk.js +0 -1
- package/dist/scripts/7713-0b8448661f-lite.chunk.js +0 -1
- package/dist/scripts/7760-2d4f4e766b-lite.chunk.js +0 -1
- package/dist/scripts/7804-b0fb78215e-lite.chunk.js +0 -1
- package/dist/scripts/7831-7549c0d54c-lite.chunk.js +0 -1
- package/dist/scripts/7901-1b4d52301c-lite.chunk.js +0 -1
- package/dist/scripts/7989-993b3d179f-lite.chunk.js +0 -2
- package/dist/scripts/7989-e7e6f77785-lite.chunk.js +0 -2
- package/dist/scripts/7989-e7e6f77785-lite.chunk.js.LICENSE.txt +0 -8
- package/dist/scripts/7997-39f6c684d3-lite.chunk.js +0 -1
- package/dist/scripts/8025-fa1abd761d-lite.chunk.js +0 -1
- package/dist/scripts/8056-f8bd03e2fc-lite.chunk.js +0 -1
- package/dist/scripts/8072-af8df53464-lite.chunk.js +0 -1
- package/dist/scripts/811-9ee0e01271-lite.chunk.js +0 -1
- package/dist/scripts/8320-d718df3e3f-lite.chunk.js +0 -1
- package/dist/scripts/8322-9706ad09cf-lite.chunk.js +0 -1
- package/dist/scripts/8383-32ea31d394-lite.chunk.js +0 -1
- package/dist/scripts/8414-188c1d3add-lite.chunk.js +0 -1
- package/dist/scripts/8416-0791d3e2f5-lite.chunk.js +0 -1
- package/dist/scripts/8584-a2e7b25a1f-lite.chunk.js +0 -1
- package/dist/scripts/8594-fc207eb0bb-lite.chunk.js +0 -1
- package/dist/scripts/8618-204eee61a2-lite.chunk.js +0 -1
- package/dist/scripts/8687-37c7693226-lite.chunk.js +0 -1
- package/dist/scripts/872-d0833f1c5e-lite.chunk.js +0 -1
- package/dist/scripts/8835-7b44462f86-lite.chunk.js +0 -1
- package/dist/scripts/8946-6cf7089c17-lite.chunk.js +0 -1
- package/dist/scripts/8955-4e5c6d5a55-lite.chunk.js +0 -1
- package/dist/scripts/8968-17e0d03ecb-lite.chunk.js +0 -1
- package/dist/scripts/898-5013a218c7-lite.chunk.js +0 -1
- package/dist/scripts/9005-61a64d23b5-lite.chunk.js +0 -1
- package/dist/scripts/9016-49b04c0ad3-lite.chunk.js +0 -1
- package/dist/scripts/9060-d4b5c726e6-lite.chunk.js +0 -1
- package/dist/scripts/9096-ce2875b0fb-lite.chunk.js +0 -1
- package/dist/scripts/9200-6d0f2c533e-lite.chunk.js +0 -1
- package/dist/scripts/9374-95e2a1f45a-lite.chunk.js +0 -1
- package/dist/scripts/9476-43d3dc6428-lite.chunk.js +0 -1
- package/dist/scripts/9490-261925b498-lite.chunk.js +0 -1
- package/dist/scripts/956-43e15a3db2-lite.chunk.js +0 -1
- package/dist/scripts/9607-ddab940183-lite.chunk.js +0 -1
- package/dist/scripts/9686-cb67f530b3-lite.chunk.js +0 -1
- package/dist/scripts/9798-addb88197f-lite.chunk.js +0 -1
- package/dist/scripts/bundle-9d7b1e093f.min.js +0 -2
- package/dist/scripts/bundle-a0d8236822.min.js +0 -2
- package/dist/scripts/bundle-a0d8236822.min.js.LICENSE.txt +0 -33
- package/typings/libs/Trackers.d.ts +0 -10
- /package/dist/css/{7997-lite-227bd1df53.chunk.css → 27-lite-227bd1df53.chunk.css} +0 -0
- /package/dist/css/{1913-lite-5e335456e5.chunk.css → 4420-lite-5e335456e5.chunk.css} +0 -0
- /package/dist/scripts/{7318-2b9176a3df-lite.chunk.js.LICENSE.txt → 7318-c87689a1c7-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7989-993b3d179f-lite.chunk.js.LICENSE.txt → 7989-7805937c3c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-9d7b1e093f.min.js.LICENSE.txt → bundle-278b19b7c3.min.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9686],{60051:(e,t,n)=>{var r;n.d(t,{f:()=>r}),function(e){e.Share="share",e.MasterObject="masterobject"}(r||(r={}))},47812:(e,t,n)=>{n.d(t,{k:()=>i});var r=n(99940),i={createViewKey:function(e,t,n){var i={mediaId:e.toString(),mediaIdType:t};return n&&(i.shareContextId=n),{url:"/api/player/create-view-key",key:"view:key:".concat(e,":").concat(t),type:r.k.POST,data:i,expiryTime:28800}}}},93264:(e,t,n)=>{n.d(t,{T:()=>o});var r=n(39479),i=function(e,t,n){var r=t-(e=e.toString()).length;return r<=0?e:new Array(r+1).join(n)+e},o={ToDisplayDuration:function(e){if(!r.isNumber(e))return"";var t=new Date(e),n=t.getUTCHours(),o=i(t.getUTCMinutes(),2,"0"),a=i(t.getUTCSeconds(),2,"0");return n>0?"".concat(n,":").concat(o,":").concat(a):"".concat(o,":").concat(a)}}},99686:(e,t,n)=>{n.r(t),n.d(t,{EditClipTimepointsView:()=>Me});var r=n(1024),i=n.n(r),o=n(20354),a=n(2948),c=n(81886),u=n(23481),l=n(23049),s=n(47812),f=n(39151),p=n(497),d=n(48420),y=n(16235);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 m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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 b(){return b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=g(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},b.apply(this,arguments)}function g(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function O(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 w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var S=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)}(a,e);var t,n,r,i,o=(r=a,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=w(r);if(i){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return O(this,e)});function a(){return m(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"buildCSSClass",value:function(){return"cv-clip-timepoint-handle ".concat(b(w(a.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(e,t,n){return b(w(a.prototype),"createEl",this).call(this,e,Object.assign(Object.assign({},t),{className:this.buildCSSClass(),innerHTML:'<svg viewBox="0 0 5 14" pointer-events="none"><g id="Clips" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Clip-2" transform="translate(-835.000000, -632.000000)" fill="#FFFFFF"><g id="Video-Copy" transform="translate(275.000000, 96.000000)"><g id="Handles" transform="translate(560.000000, 536.000000)"><circle id="Oval" cx="1" cy="1" r="1"></circle><circle id="Oval-Copy-2" cx="1" cy="5" r="1"></circle><circle id="Oval-Copy-4" cx="1" cy="9" r="1"></circle><circle id="Oval-Copy-8" cx="1" cy="13" r="1"></circle><circle id="Oval-Copy" cx="4" cy="1" r="1"></circle><circle id="Oval-Copy-3" cx="4" cy="5" r="1"></circle><circle id="Oval-Copy-5" cx="4" cy="9" r="1"></circle><circle id="Oval-Copy-9" cx="4" cy="13" r="1"></circle></g></g></g></g></svg>'}),n)}},{key:"isEventTarget",value:function(e){return this.el().contains(e.target)}}])&&v(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(y.Z.getComponent("Component"));function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(){return C="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=k(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},C.apply(this,arguments)}function k(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=D(e)););return e}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function j(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 D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(a,e);var t,n,r,i,o=(r=a,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=D(r);if(i){var n=D(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return j(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).dragStartActive=!1,n.dragEndActive=!1,n.dragSliderActive=!1,n.dragSliderCurrentPosition=null,n.minDuration=Math.min(e.duration(),n.options_.minDuration),n.setStartTime(t.startTime,!1),n.setEndTime(t.endTime,!1),n.startHandle=new S(n.player(),t),n.startHandle.addClass("cv-clip-start-handle"),n.addChild(n.startHandle),n.endHandle=new S(n.player(),t),n.endHandle.addClass("cv-clip-end-handle"),n.addChild(n.endHandle),n.on(n.player(),"update:clip:start:time",(function(e){var t=e.time;return n.setStartTime(t)})),n.on(n.player(),"update:clip:end:time",(function(e){var t=e.time;return n.setEndTime(t)})),n.bindListeners(),n.update(),n}return t=a,n=[{key:"createEl",value:function(){return C(D(a.prototype),"createEl",this).call(this,"div",{className:"cv-clip-timepoint-selector"},{})}},{key:"update",value:function(){var e=this;this.options_.onChangeStartTime(this.startTime),this.options_.onChangeEndTime(this.endTime),this.requestAnimationFrame((function(){e.setStartOffset(),e.setWidth()}))}},{key:"setStartTime",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!isNaN(e)){var n=this.hasStartTime()&&this.hasEndTime()&&this.endTime-this.startTime,r=this.player().duration()-this.minDuration;if(e>r&&(e=r),e<0&&(e=0),this.startTime=e,this.endTime&&this.endTime-this.startTime<this.minDuration){var i="number"==typeof n?this.startTime+n:this.startTime+this.minDuration;this.setEndTime(i)}this.player().currentTime(this.startTime),t&&this.update()}}},{key:"setEndTime",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!isNaN(e)){var n=this.hasStartTime()&&this.hasEndTime()&&this.endTime-this.startTime,r=this.minDuration;if(e<r&&(e=r),e>this.player().duration()&&(e=this.player().duration()),this.endTime=e,this.startTime&&this.endTime-this.startTime<this.minDuration){var i="number"==typeof n?this.endTime-n:this.endTime-this.minDuration;this.setStartTime(i)}t&&this.update()}}},{key:"bindListeners",value:function(){var e=this;this.onTimeupdate=this.onTimeupdate.bind(this),this.player().on("timeupdate",this.onTimeupdate),this.on("mousedown",this.dragStart),this.on("touchstart",this.dragStart),this.player().on("dispose",(function(){e.player().off("timeupdate",e.onTimeupdate),e.off("mousedown",e.dragStart),e.off("touchstart",e.dragStart)}))}},{key:"hasStartTime",value:function(){return"number"==typeof this.startTime}},{key:"hasEndTime",value:function(){return"number"==typeof this.endTime}},{key:"onTimeupdate",value:function(){var e=this.player().currentTime();e>this.endTime&&e<this.endTime+.5&&this.player().pause()}},{key:"dragStart",value:function(e){this.startHandle.isEventTarget(e)&&(e.stopImmediatePropagation(),this.dragStartActive=!0),this.endHandle.isEventTarget(e)&&(e.stopImmediatePropagation(),this.dragEndActive=!0),e.target===this.el()&&(e.stopImmediatePropagation(),this.dragSliderActive=!0,this.dragSliderCurrentPosition=this.getPosition(e));var t=this.el().ownerDocument;this.on(t,"mousemove",this.drag),this.on(t,"mouseup",this.dragEnd),this.on(t,"touchmove",this.drag),this.on(t,"touchend",this.dragEnd),this.drag(e)}},{key:"dragEnd",value:function(){this.dragStartActive=!1,this.dragEndActive=!1,this.dragSliderActive=!1,this.dragSliderCurrentPosition=null;var e=this.el().ownerDocument;this.off(e,"mousemove",this.drag),this.off(e,"mouseup",this.dragEnd),this.off(e,"touchmove",this.drag),this.off(e,"touchend",this.dragEnd)}},{key:"drag",value:function(e){if((this.dragStartActive||this.dragEndActive||this.dragSliderActive)&&y.Z.dom.isSingleLeftClick(e)){var t=this.getPosition(e),n=t*this.player().duration();this.dragStartActive&&this.handleStartHandleDrag(n),this.dragEndActive&&this.handleEndHandleDrag(n),this.dragSliderActive&&this.handleSliderDrag(t)}}},{key:"handleStartHandleDrag",value:function(e){this.setStartTime(e)}},{key:"handleEndHandleDrag",value:function(e){this.setEndTime(e)}},{key:"handleSliderDrag",value:function(e){var t=(e-this.dragSliderCurrentPosition)*this.player().duration(),n=this.startTime+t,r=this.endTime+t;n<=0||r>=this.player().duration()||(this.dragSliderCurrentPosition=e,this.setStartTime(n),this.setEndTime(r))}},{key:"getPosition",value:function(e){return y.Z.dom.getPointerPosition(this.el_.parentNode,e).x}},{key:"setStartOffset",value:function(){this.el_.style.marginLeft="".concat(this.getPercentage(this.startTime),"%")}},{key:"setWidth",value:function(){this.el_.style.width="".concat(this.getPercentage(this.endTime-this.startTime),"%")}},{key:"getPercentage",value:function(e){return+(e/this.player().duration()*100).toFixed(4)}}],n&&E(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(y.Z.getComponent("Component"));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 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 x(){return x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=N(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},x.apply(this,arguments)}function N(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=L(e)););return e}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}function I(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 L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(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&&M(e,t)}(a,e);var t,n,r,i,o=(r=a,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=L(r);if(i){var n=L(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return I(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).seekBar_=t.seekBar,n.playProgressBar_=t.playProgressBar,n.bindListeners(),n.player_.one("dispose",(function(){n.unbindListeners()})),n}return t=a,(n=[{key:"createEl",value:function(e,t,n){return x(L(a.prototype),"createEl",this).call(this,e,Object.assign(Object.assign({},t),{className:"cv-create-clip-progress-indicator"}),n)}},{key:"bindListeners",value:function(){this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown)}},{key:"unbindListeners",value:function(){var e=this.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp)}},{key:"handleMouseDown",value:function(e){if(y.Z.dom.isSingleLeftClick(e)){e.stopPropagation(),"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||y.Z.browser.IS_CHROME||e.preventDefault(),this.player_.scrubbing(!0),this.videoWasPlaying_=!this.player_.paused(),this.player_.pause(),y.Z.dom.blockTextSelection();var t=this.el_.ownerDocument;this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e),this.player_.addClass("cv-hide-mouse-time")}}},{key:"handleMouseMove",value:function(e){if(y.Z.dom.isSingleLeftClick(e)){var t=y.Z.dom.getPointerPosition(this.seekBar_.el_,e).x*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t),this.playProgressBar_.update()}}},{key:"handleMouseUp",value:function(e){y.Z.dom.unblockTextSelection();var t=this.el_.ownerDocument;this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),null==e||e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying_&&this.player_.play(),this.seekBar_.update(),this.player_.removeClass("cv-hide-mouse-time")}}])&&B(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(y.Z.getComponent("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 Z(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 U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},U(e,t)}function K(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 V(e){return V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},V(e)}y.Z.registerComponent("CreateClipProgressIndicator",F);var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(e,t)}(a,e);var t,n,r,i,o=(r=a,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=V(r);if(i){var n=V(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return K(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).addClass("cv-create-clip-seek-bar"),n}return t=a,(n=[{key:"initialize",value:function(e){var t=new R(this.player(),e);this.addChild(t);var n=this.getChild("playProgressBar"),r=new F(this.player_,{seekBar:this,playProgressBar:n});n.addChild(r)}}])&&Z(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(y.Z.getComponent("SeekBar"));function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Q(){return Q="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Y(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Q.apply(this,arguments)}function Y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=X(e)););return e}function $(e,t){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$(e,t)}function q(e,t){if(t&&("object"===z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return J(e)}function J(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X(e){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},X(e)}W.prototype.options_={children:["playProgressBar"],barName:"playProgressBar"},y.Z.browser.IS_IOS||y.Z.browser.IS_ANDROID||W.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),y.Z.registerComponent("CreateClipSeekBar",W);var ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$(e,t)}(a,e);var t,n,r,i,o=(r=a,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=X(r);if(i){var n=X(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return q(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).options=t,n.initCreateClipSeekBar=n.initCreateClipSeekBar.bind(J(n)),n.player.one("loadedmetadata",(function(){return n.player.ready(n.initCreateClipSeekBar)})),n}return t=a,(n=[{key:"initCreateClipSeekBar",value:function(){var e,t=null===(e=this.player.controlBar.getChild("ProgressControl"))||void 0===e?void 0:e.getChild("SeekBar");if(t){var n=!isNaN(this.options.startTime)&&this.options.startTime>=0?this.options.startTime:0,r=!isNaN(this.options.endTime)&&this.options.endTime<=this.player.duration()?this.options.endTime:this.player.duration(),i=Math.min(this.options.minDuration||5,this.player.duration());t.initialize({startTime:n,endTime:r,minDuration:i,onChangeStartTime:this.options.onChangeStartTime,onChangeEndTime:this.options.onChangeEndTime})}}},{key:"dispose",value:function(){this.player.off("loadedmetadata",this.initCreateClipSeekBar),Q(X(a.prototype),"dispose",this).call(this)}}])&&G(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(y.Z.getPlugin("plugin"));function te(e){return te="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},te(e)}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(){return re="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=ie(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},re.apply(this,arguments)}function ie(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ce(e)););return e}function oe(e,t){return oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oe(e,t)}function ae(e,t){if(t&&("object"===te(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 ce(e){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ce(e)}y.Z.registerPlugin("createClipPlugin",ee);var 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&&oe(e,t)}(a,e);var t,n,r,i,o=(r=a,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=ce(r);if(i){var n=ce(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ae(this,e)});function a(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e,Object.assign(Object.assign({},t),{playbackRates:null,enableLocalCache:!1}))}return t=a,(n=[{key:"getPlayerClassName",value:function(){return"cv-create-clip-player"}},{key:"configurePlugins",value:function(){var e=this.options,t=e.startTime,n=e.endTime,r=e.minDuration,i=e.onChangeStartTime,o=e.onChangeEndTime;this.player.createClipPlugin({startTime:t,endTime:n,minDuration:r,onChangeStartTime:i,onChangeEndTime:o})}},{key:"getPlayerOptions",value:function(){var e=re(ce(a.prototype),"getPlayerOptions",this).call(this);return e.inactivityTimeout=0,e}},{key:"getSeekBarName",value:function(){return"CreateClipSeekBar"}},{key:"getAnalyticsPlayerType",value:function(){return"create-clip-player"}}])&&ne(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(d.r);function le(e){var t=e.onReady,n=e.onDispose,r=i().useRef(),o=i().useRef();return i().useEffect((function(){var i;if(null===(i=o.current)||void 0===i||i.dispose(),r)return o.current=new ue(r.current,e),t&&o.current.ready((function(){t(o.current)})),n&&o.current.one("dispose",n),function(){var e;null===(e=o.current)||void 0===e||e.dispose()}}),[e.viewKey]),i().useEffect((function(){var t;null===(t=o.current)||void 0===t||t.trigger({type:"update:clip:start:time",time:e.startTime})}),[e.startTime]),i().useEffect((function(){var t;null===(t=o.current)||void 0===t||t.trigger({type:"update:clip:end:time",time:e.endTime})}),[e.endTime]),i().createElement("div",{ref:r})}var se=n(86702),fe=n(93264),pe=n(83345),de=n(95047);const ye="lFyGP";function he(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,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return me(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)?me(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 me(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 ve=/[^0-9]/g,be=/^0+/,ge=":";function Te(e){var t=function(e){var t=function(e){return fe.T.ToDisplayDuration(1e3*e)},n=he(r.useState(t(e.value)),2),i=n[0],o=n[1];return r.useEffect((function(){o(t(e.value))}),[e.value]),[i,o]}(e),n=he(t,2),i=n[0],o=n[1];function a(){var t=de.k.convertDurationToSeconds(i)+1;e.setTime(t)}function c(){var t=de.k.convertDurationToSeconds(i)-1;t<0||e.setTime(t)}return r.createElement("div",{className:"position-relative ".concat("xvpu6")},r.createElement("input",{className:"form-control form-control".concat("md"===e.formSize?"-md":"-lg"," ").concat(e.hasError?"is-invalid":""," text-center ").concat("vW_eV"),value:i,onChange:function(t){if(e.allowKeyboardInput){var n=function(e){var t=e.trim().replace(ve,"").replace(be,"").slice(0,6);if(!t)return"00:00";for(var n=t.split(""),r=[],i=n.length-1;i>=0;i--){var o=r.indexOf(ge);(-1===o&&2===r.length||2===o)&&r.unshift(ge),r.unshift(n[i])}return 1!==r.length&&1!==r.indexOf(ge)||r.unshift("0"),2===r.length&&r.unshift("00",ge),r.join("")}(t.target.value);n&&o(n)}},onBlur:function(){e.allowKeyboardInput&&e.setTime(de.k.convertDurationToSeconds(i))},onKeyDown:function(e){38===e.keyCode&&a(),40===e.keyCode&&c()}}),r.createElement("div",{className:"A8cSJ"},r.createElement("div",{className:ye,onClick:a},r.createElement("div",{className:"_zBG5"})),r.createElement("div",{className:ye,onClick:c},r.createElement("div",{className:"kuLky"}))))}Te.defaultProps={allowKeyboardInput:!0,size:"lg"};var Oe="shared.clipTimeForm",we=u.T.encloseNamespace(Oe);function Se(e){if(isNaN(e.startTime)||isNaN(e.endTime))return r.createElement(r.Fragment,null);var t=Math.floor(e.endTime)-Math.floor(e.startTime);return r.createElement("div",{className:"px-3"},r.createElement("form",{className:"form-inline justify-content-center pb-4"},r.createElement("div",{className:"form-group"},r.createElement(Te,{value:e.startTime,setTime:e.setStartTime})),r.createElement("span",{className:"px-2"},"-"),r.createElement("div",{className:"form-group mr-2"},r.createElement(Te,{value:e.endTime,setTime:e.setEndTime})),r.createElement("span",null,r.createElement("strong",null,r.createElement(pe.x,{namespace:Oe,phrase:"duration"}))," ",fe.T.ToDisplayDuration(1e3*t))),r.createElement("div",{className:"d-flex justify-content-end"},r.createElement("button",{className:"btn btn-link",onClick:e.onCancel},we("cancel")),r.createElement("button",{className:"btn btn-dark",onClick:e.onSubmit},we("next"))))}var Pe=n(97291),Ee=n(14070),Ce=n(43012),ke=n(1575),_e=n(89476),je=n(60051),De=n(28400);function Re(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,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ae(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)?Ae(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 Ae(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 Be="edit-clip-timepoints",xe="shared.editClipTimepoints",Ne=u.T.encloseNamespace(xe);function Me(e){var t,n,i,d,y=Re((0,a.D)(se.y.WEB_PLAYER_DATA),2),h=y[0],m=y[1],v=r.useRef(),b=e.startTime||(null===(t=null==h?void 0:h.playerRef)||void 0===t?void 0:t.currentTime())||0,g=Re(r.useState(b),2),T=g[0],O=g[1],w=Re(r.useState(b+30),2),S=w[0],P=w[1],E=o.a.useBasicFetch(f.L.config()),C=o.a.useBasicFetch(!!e.id&&Ce.e.clip(e.id)),k=(null===(i=null===(n=C.data)||void 0===n?void 0:n.video)||void 0===i?void 0:i.id)||e.videoId,_=o.a.useBasicFetch(!!k&&s.k.createViewKey(k,je.f.MasterObject)),j=o.a.useBasicFetch(!!k&&ke.R.video(k)),D=(0,_e.f)();return(0,l.o)(e.id?null===(d=C.data)||void 0===d?void 0:d.name:Ne("pageTitle")),r.useEffect((function(){m("allowFloatingPlayer",!1),D.lock({id:Be,title:u.T.getPhrase(xe,"navLockTitle"),text:u.T.getPhrase(xe,"navLockBody")})}),[]),r.useEffect((function(){C.data&&(O(C.data.startTime),P(C.data.endTime))}),[C.data]),e.id||e.videoId?r.createElement("div",{className:"px-3"},!!E.data&&!!_.data&&!!j.data&&(!e.id||!!C.data)&&r.createElement("div",{className:"pb-3"},r.createElement("div",{className:"mb-3"},r.createElement(le,{onReady:function(e){v.current=e},playerApi:new URL(E.data.playerApiUrl),viewKey:_.data.viewKey,startTime:T,endTime:S,onChangeStartTime:O,onChangeEndTime:P,minDuration:5,autoplay:!0})),r.createElement(Se,{startTime:T,endTime:S,setStartTime:O,setEndTime:P,onSubmit:function(){var t="";T>S&&(t=Ne("startTimeGreaterThanEndTime")),S-T<5&&(t=Ne("tooShort",{minDuration:5})),t?function(e){p.M.render(r.createElement("p",null,e),{title:Ne("errorHeading"),buttons:[{variant:"link",buttonText:Ne("close")}]})}(t):(D.unlock(Be),c.Q.AppLinkHelper.trigger({application:Pe.O.DEFAULT,action:e.id?Ee.e.Default.EDIT_CLIP_DETAILS:Ee.e.Default.CREATE_CLIP_DETAILS,args:e.id?[e.id]:[e.videoId],params:{startTime:T,endTime:S}}))},onCancel:function(){var e,t;v.current&&m("startTime",v.current.currentTime()),c.Q.AppLinkHelper.trigger({application:Pe.O.DEFAULT,action:Ee.e.Default.PLAY_VIDEO,args:[null===(e=j.data)||void 0===e?void 0:e.id,De.m.slugify(null===(t=j.data)||void 0===t?void 0:t.name)]})}}))):r.createElement(r.Fragment,null)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9798],{19798:(e,t,r)=>{r.r(t),r.d(t,{BulkActionSummaryView:()=>h});var o=r(1024),a=r.n(o),n=r(20354),c=r(23481),s=r(9111),u=r(110),l=r(76881),i=r(69883),p=r(13876),m=r(83345),y=r(93278);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var d="userManager.bulkActionSummary";function g(e){var t,r,o=(t=a().useState(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,a,n=[],c=!0,s=!1;try{for(r=r.call(e);!(c=(o=r.next()).done)&&(n.push(o.value),!t||n.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{c||null==r.return||r.return()}finally{if(s)throw a}}return n}}(t,r)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(t,r)||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.")}()),n=o[0],s=o[1],g=(0,i.Z)(),f=y.b.mapDataTypeToUserType(e.job.dataType);return a().createElement(m.D.Provider,{value:d},a().createElement("p",null,a().createElement(m.x,{phrase:f===l.Y.Learner?"detailsStudent":"detailsStaff",options:{name:e.job.submitterName,actionName:y.b.mapJobTypeToName(e.job.type),date:u.O.format(e.job.dateCreated,"Do MMMM YYYY"),smartCount:e.summary.totalProcessed}})),a().createElement("p",{className:"font-weight-bold"},a().createElement(m.x,{phrase:"summary"})),a().createElement("div",{className:"".concat("e6MNo"," rounded-lg p-3 mb-3")},a().createElement("p",{className:"mb-1"},a().createElement(m.x,{phrase:"totalProcessed",options:{count:e.summary.totalProcessed}})),a().createElement("p",{className:"mb-1"},a().createElement(m.x,{phrase:"totalSucceeded",options:{count:e.summary.totalSucceeded}})),a().createElement("p",{className:"mb-1"},a().createElement(m.x,{phrase:"totalErrored",options:{count:e.summary.totalErrored}})),a().createElement("p",{className:"mb-0"},a().createElement(m.x,{phrase:"totalNoAction",options:{count:e.summary.totalNoAction}}))),a().createElement(p.u,{buttons:[{buttonText:c.T.getPhrase(d,"close"),variant:"link",onClick:e.closePopup},{buttonText:c.T.getPhrase(d,"exportLog"),variant:"dark",onClick:function(){s(!0),e.onClickExportLog().then((function(){return g.success(c.T.getPhrase(d,"exportSuccess"))})).catch((function(){return g.error(c.T.getPhrase(d,"exportError"))})).finally((function(){return s(!1)}))},isSpinnerButton:!0,showSpinner:n}]}))}var f=r(29613);function h(e){var t=n.a.useBasicFetch(f.q.getJob(e.id)),r=n.a.useBasicFetch(f.q.getJobSummary(e.id)),o=n.a.useGetFetchAsync(),u=!!t.data&&!!r.data;return a().createElement(s.G,{title:c.T.getPhrase("userManager.bulkActionSummaryView","title"),closePopup:e.closePopup,showLoadingSpinner:!u},u&&a().createElement(g,{job:t.data,summary:r.data,onClickExportLog:function(){return o(f.q.sendJobReports([e.id]))},closePopup:e.closePopup}))}},29613:(e,t,r)=>{r.d(t,{q:()=>n});var o=r(99940),a=r(97395),n={createJob:function(e,t,r){return{url:"{gateway}/v1/batch/jobs",key:"create:job",type:o.k.POST,data:e,success:t,error:r}},getJobs:function(e){var t={},r=[],o=[];return e.cursor&&(t.cursor=e.cursor),e.sort&&("oldest"===e.sort?t.order="ASC":t.order="DESC"),e.bulkActionType&&(r=Array.isArray(e.bulkActionType)?e.bulkActionType:[e.bulkActionType],t.type=r),e.userType&&(o=Array.isArray(e.userType)?e.userType:[e.userType],t.dataType=o),{url:a._.urlBuilder("{gateway}/v1/batch/jobs",t),key:"batch:jobs:".concat(e.cursor,":").concat(e.sort,":").concat(r.sort().join(":"),":").concat(o.sort().join(":"))}},getJob:function(e){return{url:"{gateway}/v1/batch/jobs/".concat(e),key:"job:".concat(e)}},getJobProgress:function(e,t,r){return{url:"{gateway}/v1/batch/jobs/".concat(e,"/progress"),key:"job:".concat(e,":progress"),invalidationKeys:"job:".concat(e,":progress"),success:t,error:r}},getJobResults:function(e,t,r,o,n){var c={status:t};return r&&(c.cursor=r),{url:a._.urlBuilder("{gateway}/v1/batch/jobs/".concat(e,"/results"),c),key:"job:".concat(e,":results:").concat(t,":").concat(r),success:o,error:n}},getYearGroupRolloverStatus:function(e){return{url:"{gateway}/v1/batch/validations/customers/".concat(e,"/year-group-roll-over"),key:"year:group:rollover:status"}},sendJobReports:function(e){return{url:"{gateway}/v1/batch/results/export",key:"send:job:reports:".concat(e.sort().join(":")),type:o.k.POST,data:{jobIds:e}}},getJobSummary:function(e){return{url:"{gateway}/v1/batch/jobs/".concat(e,"/summary"),key:"job:summary:".concat(e)}}}}}]);
|