@clickview/exchange 0.11.0 → 0.11.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.
Files changed (64) hide show
  1. package/README.md +1 -1
  2. package/dist/bundles.json +2 -2
  3. package/dist/css/{lite-exchange-87023e1663.css → lite-exchange-876cb1e0e9.css} +1 -1
  4. package/dist/languages/en.json +1 -1
  5. package/dist/scripts/127-7145ff6264-exchange.chunk.js +1 -0
  6. package/dist/scripts/20-5d4e259d16-exchange.chunk.js +2 -0
  7. package/dist/scripts/{229-a6024de4fb-exchange.chunk.js → 249-f8c8a33e23-exchange.chunk.js} +2 -2
  8. package/dist/scripts/254-8e73f1e8d3-exchange.chunk.js +1 -0
  9. package/dist/scripts/{351-ea6cd751b6-exchange.chunk.js → 351-746d645d3f-exchange.chunk.js} +1 -1
  10. package/dist/scripts/36-792fff69c6-exchange.chunk.js +1 -0
  11. package/dist/scripts/{393-6f24ce4374-exchange.chunk.js → 393-7f85c576ba-exchange.chunk.js} +1 -1
  12. package/dist/scripts/426-1ae5a48dad-exchange.chunk.js +1 -0
  13. package/dist/scripts/497-f670818102-exchange.chunk.js +2 -0
  14. package/dist/scripts/544-94a1c1a908-exchange.chunk.js +1 -0
  15. package/dist/scripts/{599-b861392d6f-exchange.chunk.js → 599-0fc9797d96-exchange.chunk.js} +1 -1
  16. package/dist/scripts/607-0b1a3059b7-exchange.chunk.js +1 -0
  17. package/dist/scripts/63-29dab0a558-exchange.chunk.js +1 -0
  18. package/dist/scripts/636-a17ab6dc3a-exchange.chunk.js +2 -0
  19. package/dist/scripts/638-f220187960-exchange.chunk.js +1 -0
  20. package/dist/scripts/665-78bf8d8f99-exchange.chunk.js +1 -0
  21. package/dist/scripts/{690-7ae4a5a80f-exchange.chunk.js → 690-4a6b69adc6-exchange.chunk.js} +1 -1
  22. package/dist/scripts/776-5db70612d9-exchange.chunk.js +1 -0
  23. package/dist/scripts/{838-d9d72e26d5-exchange.chunk.js → 838-d8f1ca99dd-exchange.chunk.js} +1 -1
  24. package/dist/scripts/{85-67040d94eb-exchange.chunk.js → 85-bd9b08fe3e-exchange.chunk.js} +1 -1
  25. package/dist/scripts/851-366508ea69-exchange.chunk.js +2 -0
  26. package/dist/scripts/854-10af815c77-exchange.chunk.js +1 -0
  27. package/dist/scripts/859-70804d7835-exchange.chunk.js +1 -0
  28. package/dist/scripts/{869-da39d0b3ca-exchange.chunk.js → 869-b73667b2e5-exchange.chunk.js} +1 -1
  29. package/dist/scripts/{87-7f90f293c5-exchange.chunk.js → 87-a20dd40b09-exchange.chunk.js} +1 -1
  30. package/dist/scripts/979-dc397b2938-exchange.chunk.js +2 -0
  31. package/dist/scripts/bundle-12adc48dbb.min.js +2 -0
  32. package/package.json +1 -1
  33. package/dist/scripts/127-76640be9b5-exchange.chunk.js +0 -1
  34. package/dist/scripts/20-d1ba522ce6-exchange.chunk.js +0 -2
  35. package/dist/scripts/254-0282b72783-exchange.chunk.js +0 -1
  36. package/dist/scripts/36-28d52be61e-exchange.chunk.js +0 -1
  37. package/dist/scripts/426-69f3e11fec-exchange.chunk.js +0 -1
  38. package/dist/scripts/497-ce66d21cf0-exchange.chunk.js +0 -2
  39. package/dist/scripts/544-bedcb5f1c5-exchange.chunk.js +0 -1
  40. package/dist/scripts/607-efff1695ec-exchange.chunk.js +0 -1
  41. package/dist/scripts/63-aa5a5e9bf5-exchange.chunk.js +0 -1
  42. package/dist/scripts/636-3b2c777459-exchange.chunk.js +0 -2
  43. package/dist/scripts/638-61b2cdb379-exchange.chunk.js +0 -1
  44. package/dist/scripts/665-2a7a092a86-exchange.chunk.js +0 -1
  45. package/dist/scripts/776-4903820027-exchange.chunk.js +0 -1
  46. package/dist/scripts/851-0103abed0c-exchange.chunk.js +0 -2
  47. package/dist/scripts/854-cb8f40b266-exchange.chunk.js +0 -1
  48. package/dist/scripts/859-3ba770adbc-exchange.chunk.js +0 -1
  49. package/dist/scripts/979-497aeb2f4e-exchange.chunk.js +0 -2
  50. package/dist/scripts/bundle-82979ed938.min.js +0 -2
  51. /package/dist/scripts/{149-322257f852-exchange.chunk.js → 149-ed2c8d67e8-exchange.chunk.js} +0 -0
  52. /package/dist/scripts/{20-d1ba522ce6-exchange.chunk.js.LICENSE.txt → 20-5d4e259d16-exchange.chunk.js.LICENSE.txt} +0 -0
  53. /package/dist/scripts/{243-693d76b16e-exchange.chunk.js → 243-2a22a047bf-exchange.chunk.js} +0 -0
  54. /package/dist/scripts/{229-a6024de4fb-exchange.chunk.js.LICENSE.txt → 249-f8c8a33e23-exchange.chunk.js.LICENSE.txt} +0 -0
  55. /package/dist/scripts/{267-4210b5c2a3-exchange.chunk.js → 267-d043a16a1a-exchange.chunk.js} +0 -0
  56. /package/dist/scripts/{374-dbc80eb1a4-exchange.chunk.js → 374-c9187b608b-exchange.chunk.js} +0 -0
  57. /package/dist/scripts/{442-6ab38f559c-exchange.chunk.js → 442-0c6086afd0-exchange.chunk.js} +0 -0
  58. /package/dist/scripts/{445-8a517de5b7-exchange.chunk.js → 445-84611f3c06-exchange.chunk.js} +0 -0
  59. /package/dist/scripts/{497-ce66d21cf0-exchange.chunk.js.LICENSE.txt → 497-f670818102-exchange.chunk.js.LICENSE.txt} +0 -0
  60. /package/dist/scripts/{636-3b2c777459-exchange.chunk.js.LICENSE.txt → 636-a17ab6dc3a-exchange.chunk.js.LICENSE.txt} +0 -0
  61. /package/dist/scripts/{851-0103abed0c-exchange.chunk.js.LICENSE.txt → 851-366508ea69-exchange.chunk.js.LICENSE.txt} +0 -0
  62. /package/dist/scripts/{958-10ea80c1e0-exchange.chunk.js → 958-627cc6c34d-exchange.chunk.js} +0 -0
  63. /package/dist/scripts/{979-497aeb2f4e-exchange.chunk.js.LICENSE.txt → 979-dc397b2938-exchange.chunk.js.LICENSE.txt} +0 -0
  64. /package/dist/scripts/{bundle-82979ed938.min.js.LICENSE.txt → bundle-12adc48dbb.min.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/exchange",
3
- "version": "0.11.0",
3
+ "version": "0.11.1-rc.0",
4
4
  "description": "ClickView exchange",
5
5
  "main": "dist/scripts/bundle.js",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[127],{69834:(t,e,r)=>{r.d(e,{r:()=>j});var n=r(50242),o=r(81886),a=r(67058),i=r(23481),u=r(64364);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==c(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===c(o)?o:String(o)),n)}var o}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var p="shared.privateResourceError",y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(u,t);var e,r,n,o,a=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=f(n);if(o){var r=f(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,i.T.getPhrase(p,"title"))}return e=u,(r=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return i.T.getPhrase(p,"heading")}},{key:"description",get:function(){return i.T.getPhrase(p,"description")}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(u.H);function d(t){return d="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},d(t)}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==d(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===d(o)?o:String(o)),n)}var o}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}var g="shared.regionLockedResourceError",h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(u,t);var e,r,n,o,a=(n=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=b(n);if(o){var r=b(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,i.T.getPhrase(g,"title"))}return e=u,(r=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return i.T.getPhrase(g,"heading")}},{key:"description",get:function(){return i.T.getPhrase(g,"description")}}])&&v(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(u.H),O=r(49075),w={notFound:a.d,forbidden:{rating:y,yearLevel:y,region:h,privacy:y},badRequest:O._};function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){var a;a="number"==typeof t?t:t.status;var i=Object.assign(Object.assign({},w),e);a&&o.Q.Ry.isStatusCodeError(a)&&(a!==n.o.NotFound?a!==n.o.Forbidden?r.badRequest||o.Q.Ry.throw(new i.badRequest):r.forbidden||o.Q.Ry.throw(new i.forbidden.privacy):r.notFound||o.Q.Ry.throw(new i.notFound))}}},91286:(t,e,r)=>{r.d(e,{v:()=>i});var n=r(32735),o=r(69834);function a(t){return t.map((function(t){return t.statusCode})).join(":")}function i(t,e,r){var i=Array.isArray(t)?t:[t];(0,n.useEffect)((function(){i.forEach((function(t){(0,o.r)(t.statusCode,e,r)}))}),[a(i),e,r])}},5353:(t,e,r)=>{r.d(e,{i:()=>f});var n,o=r(99940),a=r(97395),i=r(110);!function(t){t[t.AllResults=0]="AllResults",t[t.Subtitles=1]="Subtitles",t[t.TitleAndDescription=2]="TitleAndDescription"}(n||(n={}));var u=r(55812);function c(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 s(t){return Object.entries(t).reduce((function(t,e){var r,n,o=(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,o,a,i,u=[],c=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return u}}(r,n)||function(t,e){if(t){if("string"==typeof t)return c(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)?c(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.")}()),a=o[0],i=o[1];return t[a.charAt(0).toLowerCase()+a.slice(1)]=i,t}),{})}function l(t){return t?Array.isArray(t)?function(t){return t.map(s)}(t):s(t):null}var f={regions:function(){return{url:"/api/tv/api/v2/regions",key:"tv:regions",normalize:!1,formatData:l}},region:function(t){return{url:"/api/tv/api/v2/regions/".concat(t),key:"tv:region:".concat(t),normalize:!1,formatData:l}},dateRange:function(t){return{url:"/api/tv/api/v2/regions/".concat(t,"/daterange"),key:"tv:region:".concat(t,":daterange"),normalize:!1,formatData:l}},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 l(t).sort((function(t,e){return t.sortOrder-e.sortOrder}))}}},payTvChannels:function(){return{url:"/api/tv/v1/pay-tv/channels/all",key:"pay:tv:channels",normalize:!1,formatData:l}},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:l}},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:l}},program:function(t){return{url:"/api/tv/api/v3/programs/".concat(t),key:"tv:programs:".concat(t),normalize:!1,formatData:function(t){var e=l(t);return e.region=l(t.Region),e}}},search:function(t,e,r){var o=e.query,i=e.dateBroadcast,c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(e,["query","dateBroadcast"]),s=r||1,f=c.filter||n.AllResults;return{url:a._.urlBuilder("/api/tv/api/v4/search",Object.assign(Object.assign(Object.assign({region:t,query:o,filter:f},u.a.getDateBroadcastParams(i)),c),{page:s,size:25})),key:["tv:search",o,t,Object.values(Object.assign({filter:f,dateBroadcast:i},c)).join(":"),s].join(":"),normalize:!1,formatData:function(t){var e=l(t);return e.results=l(t.Results),e.page=s,e}}},addFullVideo:function(t,e){return{url:"/api/tv/api/v2/workspace/video",key:"tv:add:full:video",normalize:!1,type:o.k.POST,data:t,invalidationKeys:"tv:workspace:video:".concat(e)}},addAdFreeVideo:function(t,e){return{url:a._.urlBuilder("/api/tv/v4/programs/".concat(t.id,"/ad-free"),{customerId:t.customerId,userId:t.userId}),key:"tv:add:ad:free:video",normalize:!1,type:o.k.POST,invalidationKeys:"tv:workspace:video:".concat(e)}},adFreeCredits:function(t,e){var r=new Date;r.setHours(0,0,0,0),r.setMinutes(r.getMinutes()+r.getTimezoneOffset());var n=i.O.add(r,1,"day");return{url:a._.urlBuilder("/api/tv/api/v1/user-requests",{username:t,region:e,from:i.O.convertUTCToLocal(r).toISOString(),to:i.O.convertUTCToLocal(n).toISOString()}),key:"tv:add:free:credits",normalize:!1,formatData:l}},createAdFreeRequest:function(t){return{url:a._.urlBuilder("/api/tv/v4/user-requests/ad-free",{userId:t.userId,customerId:t.customerId}),key:"tv:create:add:free:request",normalize:!1,type:o.k.POST,data:{programId:t.programId,regionCode:t.regionCode},invalidationKeys:["tv:add:free:credits"]}},workspaceVideo:function(t,e,r){return{url:a._.urlBuilder("/api/tv/v4/workspace/programs/".concat(t),{userId:e,customerId:r}),key:"tv:workspace:video:".concat(t),formatData:l}},requestProgram:function(t){return{url:"/api/tv/v1/pay-tv/user-requests",key:"tv:request:program",type:o.k.POST,data:t}},requestProgramUk:function(t){return{url:"/api/tv/api/v1/user-requests/program",key:"tv:request:program:uk",type:o.k.POST,data:t}}}},55812:(t,e,r)=>{r.d(e,{a:()=>o});var n=r(110),o={getFormattedDateRange:function(t,e){return"".concat(n.O.format(t,"Do MMMM yyyy")," - ").concat(n.O.format(e,"Do MMMM yyyy"))},getDateBroadcastParams:function(t){var e=function(t){return n.O.format(t,"YYYY-MM-DD")},r=e(new Date);switch(t){case"yesterday":return{from:e(n.O.subtract(r,1,"day")),to:r};case"last-week":return{from:e(n.O.subtract(r,7,"days")),to:r};case"last-2-weeks":return{from:e(n.O.subtract(r,14,"days")),to:r}}}}},82127:(t,e,r)=>{r.r(e),r.d(e,{TvHomeView:()=>l});var n=r(32735),o=r(81886),a=r(20354),i=r(91286),u=r(73818),c=r(82329),s=r(5353);function l(){var t=a.a.useBasicFetch(s.i.regions());return(0,i.v)(t),n.useEffect((function(){var e;(null===(e=t.data)||void 0===e?void 0:e.length)&&o.Q.C$.trigger({application:c.O.TV,action:u.e.Tv.CHANNELS,args:[t.data[0].code]},{replace:!0})}),[t.data]),n.createElement(n.Fragment,null)}}}]);