@clickview/exchange 0.0.1-dev.1 → 0.0.1-rc.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/.eslintrc.json +2 -2
- package/dist/bundles.json +2 -2
- package/dist/css/{lite-exchange-11da8fa6e3.css → lite-exchange-cec4c599f2.css} +1 -1
- package/dist/scripts/243-c8777a8497-exchange.chunk.js +2 -0
- package/dist/scripts/{267-c794745bc7-exchange.chunk.js → 267-addd5149dc-exchange.chunk.js} +1 -1
- package/dist/scripts/{498-f12ae3d243-exchange.chunk.js → 498-72f28b8849-exchange.chunk.js} +1 -1
- package/dist/scripts/{612-62874e57da-exchange.chunk.js → 612-32446c9c81-exchange.chunk.js} +1 -1
- package/dist/scripts/70-a50a233cd2-exchange.chunk.js +1 -0
- package/dist/scripts/bundle-64db375dab.min.js +2 -0
- package/jest.config.js +11 -11
- package/package.json +36 -36
- package/typings/libs/CVLanguages.d.ts +24 -24
- package/typings/libs/cloneDeep.d.ts +4 -4
- package/typings/libs/intersection-observer.d.ts +82 -82
- package/typings/libs/trackjs.d.ts +2 -2
- package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
- package/typings/utils/imports.d.ts +11 -11
- package/dist/scripts/243-1a6c42f0c1-exchange.chunk.js +0 -2
- package/dist/scripts/70-f24936c4d3-exchange.chunk.js +0 -1
- package/dist/scripts/bundle-59eb82b596.min.js +0 -2
- package/dist/scripts/bundle-900e34e13e.min.js +0 -2
- package/dist/scripts/bundle-900e34e13e.min.js.LICENSE.txt +0 -178
- /package/dist/scripts/{243-1a6c42f0c1-exchange.chunk.js.LICENSE.txt → 243-c8777a8497-exchange.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{267-c794745bc7-exchange.chunk.js.LICENSE.txt → 267-addd5149dc-exchange.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{442-f089c95007-exchange.chunk.js → 442-3d8d3d0567-exchange.chunk.js} +0 -0
- /package/dist/scripts/{611-8f619aff9d-exchange.chunk.js → 611-e8b4d1e217-exchange.chunk.js} +0 -0
- /package/dist/scripts/{612-62874e57da-exchange.chunk.js.LICENSE.txt → 612-32446c9c81-exchange.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{637-f312680f75-exchange.chunk.js → 637-487bd9da9b-exchange.chunk.js} +0 -0
- /package/dist/scripts/{725-c1517598e5-exchange.chunk.js → 725-9a3505a30b-exchange.chunk.js} +0 -0
- /package/dist/scripts/{851-d71bd07a22-exchange.chunk.js → 851-d150558adb-exchange.chunk.js} +0 -0
- /package/dist/scripts/{90-73fc8286c0-exchange.chunk.js → 90-f767d9f5c1-exchange.chunk.js} +0 -0
- /package/dist/scripts/{91-2e27cf99bd-exchange.chunk.js → 91-dcc31982be-exchange.chunk.js} +0 -0
- /package/dist/scripts/{925-f30ba100dc-exchange.chunk.js → 925-475287539a-exchange.chunk.js} +0 -0
- /package/dist/scripts/{952-245618ec68-exchange.chunk.js → 952-fab06105d8-exchange.chunk.js} +0 -0
- /package/dist/scripts/{967-2db4e1019e-exchange.chunk.js → 967-a3e29f266f-exchange.chunk.js} +0 -0
- /package/dist/scripts/{972-b81f6f8450-exchange.chunk.js → 972-6a9e78c990-exchange.chunk.js} +0 -0
- /package/dist/scripts/{bundle-59eb82b596.min.js.LICENSE.txt → bundle-64db375dab.min.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 267-
|
|
1
|
+
/*! For license information please see 267-addd5149dc-exchange.chunk.js.LICENSE.txt */
|
|
2
2
|
"use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[267],{55110:(t,e,r)=>{r.d(e,{Z:()=>c});var n=r(32735),a=r(71365);var o=r(60139),i=r(79976);function c(){var t,e,r,c=(t=i.P.ALERT,e=t,r=a.u.getInstance(e),n.useEffect((function(){return function(){a.u.releaseInstance(e)}})),r);return{success:function(t){c.success(t)()},error:function(t){c.error(t)()},warning:function(t){c.createAlert({type:o.NK.Warning,heading:o.R6.Warning,message:t})}}}},85854:(t,e,r)=>{r.d(e,{i:()=>l});var n=r(99940),a=r(97395),o=r(110);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t){return Object.entries(t).reduce((function(t,e){var r,n,a=(n=2,function(t){if(Array.isArray(t))return t}(r=e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,a,o,i,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,a=t}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw a}}return c}}(r,n)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(r,n)||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.")}()),o=a[0],c=a[1];return t[o.charAt(0).toLowerCase()+o.slice(1)]=c,t}),{})}function u(t){return t?Array.isArray(t)?function(t){return t.map(c)}(t):c(t):null}var l={regions:function(){return{url:"/api/tv/api/v2/regions",key:"tv:regions",normalize:!1,formatData:u}},region:function(t){return{url:"/api/tv/api/v2/regions/".concat(t),key:"tv:region:".concat(t),normalize:!1,formatData:u}},channels:function(t){return{url:a._.urlBuilder("/api/tv/api/v2/channels",{region:t}),key:"tv:channels:".concat(t),normalize:!1,formatData:function(t){return u(t).sort((function(t,e){return t.sortOrder-e.sortOrder}))}}},programsByChannel:function(t,e,r,n){return{url:a._.urlBuilder("/api/tv/api/v3/regions/".concat(t,"/channels/programs"),{channel:e,startDate:r,endDate:n}),key:["tv:programs:by:channel",t,e,r,n].join(":"),normalize:!1,formatData:u}},programsByLetter:function(t,e,r,n){return{url:a._.urlBuilder("/api/tv/api/v2/Programs",{regionCode:t,startsWith:e,startDate:r,endDate:n}),key:["tv:programs:by:letter",t,e,r,n].join(":"),normalize:!1,formatData:u}},program:function(t){return{url:"/api/tv/api/v3/programs/".concat(t),key:"tv:programs:".concat(t),normalize:!1,formatData:u}},search:function(t,e,r,n){var o=n||0;return{url:a._.urlBuilder("/api/tv/api/v3/search",{region:t,query:e,filter:r,page:o,size:25}),key:["tv:search",t,e,r,o].join(":"),normalize:!1,formatData:function(t){var e=u(t);return e.results=u(t.Results),e.page=o,e}}},addFullVideo:function(t){return{url:"/api/tv/api/v2/workspace/video",key:"tv:add:full:video",normalize:!1,type:n.k.POST,data:t}},adFreeCredits:function(t,e){var r=new Date;r.setHours(0,0,0,0),r.setMinutes(r.getMinutes()+r.getTimezoneOffset());var n=o.O.add(r,1,"day");return{url:a._.urlBuilder("/api/tv/api/v1/user-requests",{username:t,region:e,from:o.O.convertUTCToLocal(r).toISOString(),to:o.O.convertUTCToLocal(n).toISOString()}),key:"tv:add:free:credits",normalize:!1,formatData:u}},createAdFreeRequest:function(t){return{url:"/api/tv/api/v1/user-requests",key:"tv:create:add:free:request",normalize:!1,type:n.k.POST,data:t,invalidationKeys:["tv:add:free:credits"]}}}},45267:(t,e,r)=>{r.r(e),r.d(e,{TvAdFreeRequestView:()=>L});var n=r(32735),a=r(20354),o=r(85854),i=r(31949),c=r(21132),u=r(82329),l=r(73818),s=r(81886),f=r(83345),p=r(23481),h=r(75230),d=r(65185),v=r(60139),y=r(55110),m=r(99742);function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function w(){w=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,a){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new _(a||[]);return n(i,"_invoke",{value:L(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function p(){}function h(){}function d(){}var v={};u(v,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==e&&r.call(m,o)&&(v=m);var b=d.prototype=p.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function a(n,o,i,c){var u=s(t[n],t,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==g(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){a("next",t,i,c)}),(function(t){a("throw",t,i,c)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return a("throw",t,i,c)}))}c(u.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){a(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function L(t,e,r){var n="suspendedStart";return function(a,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw o;return{value:void 0,done:!0}}for(r.method=a,r.arg=o;;){var i=r.delegate;if(i){var c=k(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=s(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function k(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var a=s(n,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,f;var o=a.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function C(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=d,n(b,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=u(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(E.prototype),u(E.prototype,i,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new E(l(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(b),u(b,c,"Generator"),u(b,o,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=C,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;S(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var b=function(t,e,r,n){return new(r||(r=Promise))((function(a,o){function i(t){try{u(n.next(t))}catch(t){o(t)}}function c(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}u((n=n.apply(t,e||[])).next())}))},x="tv.adFreeRequest",E=p.T.encloseNamespace(x);function L(t){var e=a.a.useGetFetchAsync(),r=(0,y.Z)(),p=a.a.useBasicFetch(i.N.currentUser()),g=a.a.useBasicFetch(o.i.region(t.region)),L=a.a.useBasicFetch(o.i.program(t.id)),k=a.a.useBasicFetch(p.data&&g.data&&o.i.adFreeCredits(p.data.username,g.data.code)),O=p.hasCompleted&&g.hasCompleted&&L.hasCompleted&&k.hasCompleted,S=k.data.maxAvailableCredit-k.data.userRequests;return n.createElement(c.G,{title:E("title"),closePopup:t.closePopup,showLoadingSpinner:!O},O&&n.createElement(n.Fragment,null,n.createElement("img",{src:m.W.General.TICKET,className:"img-fluid py-3 px-4",draggable:!1}),n.createElement("h2",{className:"h6"},n.createElement(f.x,{namespace:x,phrase:"remaining",options:{smartCount:S}})),n.createElement("p",null,n.createElement(f.x,{namespace:x,phrase:"requestInfo",options:{dailyLimit:k.data.maxAvailableCredit}})),n.createElement("p",null,n.createElement(f.x,{namespace:x,phrase:"addInfo",options:{dailyLimit:k.data.maxAvailableCredit}})),n.createElement(h.u,null,n.createElement(h.u.Cancel,{text:E("back"),onClick:function(){s.Q.AppLinkHelper.trigger({application:u.O.TV,action:l.e.Tv.ADD,args:[g.data.code,L.data.id]})},variant:"link"}),n.createElement(h.u.Submit,{text:E("request"),onClick:function(){return b(this,void 0,void 0,w().mark((function n(){return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e(o.i.createAdFreeRequest({cost:1,globalId:L.data.globalId,name:L.data.title,programId:L.data.id,regionCode:g.data.code,username:p.data.username}));case 3:r.success({heading:d.R.Success,message:"<strong>".concat(L.data.title,"</strong> will be added to My Videos"),appLinkText:"Go to My Videos",appLink:{application:u.O.TV,action:l.e.Tv.INDEX},type:v.NK.Success}),n.next=9;break;case 6:n.prev=6,n.t0=n.catch(0),r.error("Something went wrong.");case 9:return n.prev=9,t.closePopup(),n.finish(9);case 12:case"end":return n.stop()}}),n,null,[[0,6,9,12]])})))},variant:"dark"}))))}}}]);
|