@clickview/exchange 0.24.0 → 0.25.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 (78) hide show
  1. package/package.json +1 -1
  2. package/dist/bundles.json +0 -4
  3. package/dist/css/201-exchange-c77aa0cc5c.chunk.css +0 -8
  4. package/dist/css/243-exchange-06944bdfa4.chunk.css +0 -1
  5. package/dist/css/302-exchange-d71527fc65.chunk.css +0 -1
  6. package/dist/css/332-exchange-e3c83a9d46.chunk.css +0 -1
  7. package/dist/css/421-exchange-93caaafc51.chunk.css +0 -14
  8. package/dist/css/468-exchange-52ec59e0af.chunk.css +0 -25
  9. package/dist/css/508-exchange-dc71f8697a.chunk.css +0 -73
  10. package/dist/css/613-exchange-e80affded9.chunk.css +0 -1
  11. package/dist/css/636-exchange-471c89d673.chunk.css +0 -2
  12. package/dist/css/647-exchange-ee4e1eb60b.chunk.css +0 -33
  13. package/dist/css/706-exchange-480c7079ee.chunk.css +0 -38
  14. package/dist/css/812-exchange-f3b6d6e7e5.chunk.css +0 -11
  15. package/dist/css/846-exchange-eb44655b13.chunk.css +0 -11
  16. package/dist/css/899-exchange-ea8c83006f.chunk.css +0 -10
  17. package/dist/css/907-exchange-688d5d1933.chunk.css +0 -55
  18. package/dist/css/947-exchange-dcc4afd084.chunk.css +0 -35
  19. package/dist/css/953-exchange-edfb542b10.chunk.css +0 -5
  20. package/dist/css/979-exchange-e80affded9.chunk.css +0 -1
  21. package/dist/css/lite-exchange-7915deb5d9.css +0 -14
  22. package/dist/languages/en.json +0 -1
  23. package/dist/scripts/125-00c4300d92-exchange.chunk.js +0 -2
  24. package/dist/scripts/125-00c4300d92-exchange.chunk.js.LICENSE.txt +0 -32
  25. package/dist/scripts/127-8fd37834d6-exchange.chunk.js +0 -1
  26. package/dist/scripts/173-832aad1ea6-exchange.chunk.js +0 -1
  27. package/dist/scripts/201-2cc2a58411-exchange.chunk.js +0 -1
  28. package/dist/scripts/203-d1ff93f396-exchange.chunk.js +0 -1
  29. package/dist/scripts/21-1cfd2ebe08-exchange.chunk.js +0 -1
  30. package/dist/scripts/239-b0aa0437f3-exchange.chunk.js +0 -1
  31. package/dist/scripts/243-64bacbb297-exchange.chunk.js +0 -1
  32. package/dist/scripts/267-e3804a73d0-exchange.chunk.js +0 -1
  33. package/dist/scripts/302-86db33210b-exchange.chunk.js +0 -1
  34. package/dist/scripts/305-05a7de5fea-exchange.chunk.js +0 -1
  35. package/dist/scripts/332-e81c459847-exchange.chunk.js +0 -1
  36. package/dist/scripts/351-253988b249-exchange.chunk.js +0 -1
  37. package/dist/scripts/421-3e0cde419a-exchange.chunk.js +0 -2
  38. package/dist/scripts/421-3e0cde419a-exchange.chunk.js.LICENSE.txt +0 -1
  39. package/dist/scripts/430-0499fb5d43-exchange.chunk.js +0 -1
  40. package/dist/scripts/439-4923978a67-exchange.chunk.js +0 -1
  41. package/dist/scripts/442-901db4bc9f-exchange.chunk.js +0 -1
  42. package/dist/scripts/455-7bcae2e9ec-exchange.chunk.js +0 -1
  43. package/dist/scripts/468-6ea55b77e4-exchange.chunk.js +0 -1
  44. package/dist/scripts/507-2600e5cf34-exchange.chunk.js +0 -1
  45. package/dist/scripts/508-493b9b3157-exchange.chunk.js +0 -2
  46. package/dist/scripts/508-493b9b3157-exchange.chunk.js.LICENSE.txt +0 -1
  47. package/dist/scripts/544-c0bfbacbab-exchange.chunk.js +0 -1
  48. package/dist/scripts/599-b3c08098d3-exchange.chunk.js +0 -1
  49. package/dist/scripts/601-b4332186e7-exchange.chunk.js +0 -1
  50. package/dist/scripts/613-9e67335d7a-exchange.chunk.js +0 -2
  51. package/dist/scripts/613-9e67335d7a-exchange.chunk.js.LICENSE.txt +0 -1
  52. package/dist/scripts/619-6cb70d4445-exchange.chunk.js +0 -1
  53. package/dist/scripts/622-d4e173dee6-exchange.chunk.js +0 -1
  54. package/dist/scripts/636-5437fe9820-exchange.chunk.js +0 -2
  55. package/dist/scripts/636-5437fe9820-exchange.chunk.js.LICENSE.txt +0 -1
  56. package/dist/scripts/647-7b14b3fb97-exchange.chunk.js +0 -1
  57. package/dist/scripts/648-16c7244c4d-exchange.chunk.js +0 -1
  58. package/dist/scripts/706-a14bb2ec4d-exchange.chunk.js +0 -1
  59. package/dist/scripts/725-67ae1cc17c-exchange.chunk.js +0 -1
  60. package/dist/scripts/812-533ae40167-exchange.chunk.js +0 -1
  61. package/dist/scripts/846-258c5599e5-exchange.chunk.js +0 -1
  62. package/dist/scripts/851-2c8c9e324e-exchange.chunk.js +0 -2
  63. package/dist/scripts/851-2c8c9e324e-exchange.chunk.js.LICENSE.txt +0 -1
  64. package/dist/scripts/87-3f42df9a7e-exchange.chunk.js +0 -1
  65. package/dist/scripts/877-84aa4edc8a-exchange.chunk.js +0 -1
  66. package/dist/scripts/880-52aa3d5a22-exchange.chunk.js +0 -1
  67. package/dist/scripts/899-a62c27946f-exchange.chunk.js +0 -1
  68. package/dist/scripts/907-f90f93b64f-exchange.chunk.js +0 -1
  69. package/dist/scripts/925-72dcee8b93-exchange.chunk.js +0 -1
  70. package/dist/scripts/927-c8233f1fa7-exchange.chunk.js +0 -1
  71. package/dist/scripts/940-c3cc6ac9d0-exchange.chunk.js +0 -1
  72. package/dist/scripts/947-05a0c3cbfa-exchange.chunk.js +0 -1
  73. package/dist/scripts/953-59cfca5c38-exchange.chunk.js +0 -1
  74. package/dist/scripts/965-73f28979b1-exchange.chunk.js +0 -1
  75. package/dist/scripts/979-d932b4c659-exchange.chunk.js +0 -2
  76. package/dist/scripts/979-d932b4c659-exchange.chunk.js.LICENSE.txt +0 -1
  77. package/dist/scripts/bundle-be49b24ce4.min.js +0 -2
  78. package/dist/scripts/bundle-be49b24ce4.min.js.LICENSE.txt +0 -108
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[442],{69834:(e,t,r)=>{r.d(t,{r:()=>_});var n=r(50242),o=r(81886),a=r(67058),i=r(23481),u=r(64364);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 l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.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+""}function f(e,t,r){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,r||[],p(e).constructor):t.apply(e,r))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var v="shared.privateResourceError",m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,t,[i.T.getPhrase(v,"title")])}return 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&&y(e,t)}(t,e),r=t,(n=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return i.T.getPhrase(v,"heading")}},{key:"description",get:function(){return i.T.getPhrase(v,"description")}}])&&l(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(u.H);function b(e){return b="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},b(e)}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h(n.key),n)}}function h(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b(t)?t:t+""}function w(e,t,r){return t=k(t),function(e,t){if(t&&("object"==b(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,O()?Reflect.construct(t,r||[],k(e).constructor):t.apply(e,r))}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O=function(){return!!e})()}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}var P="shared.regionLockedResourceError",S=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),w(this,t,[i.T.getPhrase(P,"title")])}return 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&&j(e,t)}(t,e),r=t,(n=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return i.T.getPhrase(P,"heading")}},{key:"description",get:function(){return i.T.getPhrase(P,"description")}}])&&g(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(u.H),T=r(49075),C={notFound:a.d,forbidden:{rating:m,yearLevel:m,region:S,privacy:m},badRequest:T._};function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var a;a="number"==typeof e?e:e.status;var i=Object.assign(Object.assign({},C),t);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))}}},5353:(e,t,r)=>{r.d(t,{i:()=>f});var n,o=r(99940),a=r(97395),i=r(110);!function(e){e[e.AllResults=0]="AllResults",e[e.Subtitles=1]="Subtitles",e[e.TitleAndDescription=2]="TitleAndDescription"}(n||(n={}));var u=r(55812);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return Object.entries(e).reduce((function(e,t){var r,n,o=(n=2,function(e){if(Array.isArray(e))return e}(r=t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,u=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(r,n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.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)?c(e,t):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 e[a.charAt(0).toLowerCase()+a.slice(1)]=i,e}),{})}function s(e){return e?Array.isArray(e)?function(e){return e.map(l)}(e):l(e):null}var f={regions:function(){return{url:"/api/tv/api/v2/regions",key:"tv:regions",normalize:!1,formatData:s}},region:function(e){return{url:"/api/tv/api/v2/regions/".concat(e),key:"tv:region:".concat(e),normalize:!1,formatData:s}},dateRange:function(e){return{url:"/api/tv/api/v2/regions/".concat(e,"/daterange"),key:"tv:region:".concat(e,":daterange"),normalize:!1,formatData:s}},channels:function(e){return{url:a._.urlBuilder("/api/tv/api/v2/channels",{region:e}),key:"tv:channels:".concat(e),normalize:!1,formatData:function(e){return s(e).sort((function(e,t){return e.sortOrder-t.sortOrder}))}}},payTvChannels:function(){return{url:"/api/tv/v1/pay-tv/channels/all",key:"pay:tv:channels",normalize:!1,formatData:s}},programsByChannel:function(e,t,r,n){return{url:a._.urlBuilder("/api/tv/api/v3/regions/".concat(e,"/channels/programs"),{channel:t,startDate:r,endDate:n}),key:["tv:programs:by:channel",e,t,r,n].join(":"),normalize:!1,formatData:s}},programsByLetter:function(e,t,r,n){return{url:a._.urlBuilder("/api/tv/api/v2/Programs",{regionCode:e,startsWith:t,startDate:r,endDate:n}),key:["tv:programs:by:letter",e,t,r,n].join(":"),normalize:!1,formatData:s}},program:function(e){return{url:"/api/tv/api/v3/programs/".concat(e),key:"tv:programs:".concat(e),normalize:!1,formatData:function(e){var t=s(e);return t.region=s(e.Region),t}}},search:function(e,t,r){var o=t.query,i=t.dateBroadcast,c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(t,["query","dateBroadcast"]),l=r||1,f=c.filter||n.AllResults;return{url:a._.urlBuilder("/api/tv/api/v4/search",Object.assign(Object.assign(Object.assign({region:e,query:o,filter:f},u.a.getDateBroadcastParams(i)),c),{page:l,size:25})),key:["tv:search",o,e,Object.values(Object.assign({filter:f,dateBroadcast:i},c)).join(":"),l].join(":"),normalize:!1,formatData:function(e){var t=s(e);return t.results=s(e.Results),t.page=l,t}}},addFullVideo:function(e,t){return{url:"/api/tv/api/v2/workspace/video",key:"tv:add:full:video",normalize:!1,type:o.k.POST,data:e,invalidationKeys:"tv:workspace:video:".concat(t)}},addAdFreeVideo:function(e,t){return{url:a._.urlBuilder("/api/tv/v4/programs/".concat(e.id,"/ad-free"),{customerId:e.customerId,userId:e.userId}),key:"tv:add:ad:free:video",normalize:!1,type:o.k.POST,invalidationKeys:"tv:workspace:video:".concat(t)}},adFreeCredits:function(e,t){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:e,region:t,from:i.O.convertUTCToLocal(r).toISOString(),to:i.O.convertUTCToLocal(n).toISOString()}),key:"tv:add:free:credits",normalize:!1,formatData:s}},createAdFreeRequest:function(e){return{url:a._.urlBuilder("/api/tv/v4/user-requests/ad-free",{userId:e.userId,customerId:e.customerId}),key:"tv:create:add:free:request",normalize:!1,type:o.k.POST,data:{programId:e.programId,regionCode:e.regionCode},invalidationKeys:["tv:add:free:credits"]}},workspaceVideo:function(e,t,r){return{url:a._.urlBuilder("/api/tv/v4/workspace/programs/".concat(e),{userId:t,customerId:r}),key:"tv:workspace:video:".concat(e),formatData:s}},requestProgram:function(e){return{url:"/api/tv/v1/pay-tv/user-requests",key:"tv:request:program",type:o.k.POST,data:e}},requestProgramUk:function(e){return{url:"/api/tv/api/v1/user-requests/program",key:"tv:request:program:uk",type:o.k.POST,data:e}}}},85949:(e,t,r)=>{r.d(t,{Y:()=>y});var n=r(81886),o=r(23481),a=r(97395),i=r(20354),u=r(65858),c=r(12754),l=r(39151),s=r(35223),f=r(73818),d=r(82329),p=o.T.encloseNamespace("tv.addRequests");function y(e,t,r){var o=i.a.useBasicFetch(l.L.config());return function(i){var l;if(!t)return[];var y="preview"===e,v={id:i.id,name:i.title},m=y?u.LZ.VideoItemPreview:u.LZ.VideoListItem;return[{label:y?p("addVideo"):"",svgName:y?void 0:s.vn.AddVideo,tooltip:y?"":p("addVideo"),className:y?"btn btn-dark me-2 text-nowrap":"btn",button:!0,onClick:function(){n.Q.C$.trigger({application:d.O.TV,action:f.e.Tv.ADD,args:[t.code,i.id],params:{currentTime:Math.floor(+(null==r?void 0:r.currentTime()))||void 0}})},analyticsData:v,analyticsOptions:{actionType:u.Vw.Click,entity:u.py.Video,descriptor:u.XX.AddToWorkspace,location:m,workflowPhase:u.eu.Start}},{label:p("editVideo"),href:a._.urlBuilder("".concat(null===(l=o.data)||void 0===l?void 0:l.cloudEditorUrl,"/tv/").concat(i.globalId),{product:c.x.Exchange}),openInNewTab:!0,analyticsData:v,analyticsOptions:{actionType:u.Vw.Click,entity:u.py.Video,location:m,descriptor:u.XX.EditVideo}}]}}},8519:(e,t,r)=>{r.d(t,{e:()=>c});var n=r(32735),o=r(50242),a=r(81886),i=r(20470),u=r(69834);function c(e,t){n.useEffect((function(){e.hasCompleted&&(e.data||(e.hasError&&(0,u.r)(e.statusCode),t?a.Q.Ry.throw(new i.x):(0,u.r)(o.o.BadRequest)))}),[e.hasCompleted,e.data])}},55812:(e,t,r)=>{r.d(t,{a:()=>o});var n=r(110),o={getFormattedDateRange:function(e,t){return"".concat(n.O.format(e,"Do MMMM YYYY")," - ").concat(n.O.format(t,"Do MMMM YYYY"))},getDateBroadcastParams:function(e){var t=function(e){return n.O.format(e,"YYYY-MM-DD")},r=t(new Date);switch(e){case"yesterday":return{from:t(n.O.subtract(r,1,"day")),to:r};case"last-week":return{from:t(n.O.subtract(r,7,"days")),to:r};case"last-2-weeks":return{from:t(n.O.subtract(r,14,"days")),to:r}}}}},70442:(e,t,r)=>{r.r(t),r.d(t,{TvPreviewView:()=>b});var n=r(32735),o=r(20354),a=r(33025),i=r(39151),u=r(31949),c=r(23455),l=r(84979),s=r(57264),f=r(15899),d=r(5353),p=r(85949),y=r(8519),v=r(97395);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(e){var t,r,b=o.a.useBasicFetch(d.i.region(e.region)),g=o.a.useBasicFetch(i.L.config()),h=o.a.useBasicFetch(d.i.program(e.id)),w=o.a.useBasicFetch(u.N.currentUser()),O=(t=n.useState(),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 n,o,a,i,u=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return u}}(t,r)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var r={}.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)?m(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.")}()),k=O[0],j=O[1],P=(0,p.Y)("preview",b.data,k);(0,y.e)(b,!0),(0,c.h)(h.statusCode);var S=b.hasCompleted&&h.hasCompleted&&g.hasCompleted&&w.hasCompleted,T=S&&function(e){var t=e.currentUser,r=e.region,n=e.config,o=e.program,a=n.tvPreviewUrls[r.code],i=o.globalId.replace(/-/g,""),u=v._.safeUrlConcat(a,"/thumbnail/".concat(i,".jpg")),c=v._.safeUrlConcat(a,"/144p/".concat(i.toUpperCase(),"_144p.mp4")),l=v._.safeUrlConcat(a,"/subtitle/".concat(i.toUpperCase(),".srt")),s=v._.urlBuilder(v._.safeUrlConcat(n.playerApiUrl,"/api/srt-to-vtt"),{url:l});return{videoId:null,episodeNumber:0,seriesName:null,mediaId:null,mediaType:null,ratingCode:null,region:t.instanceRegion,seasonNumber:null,viewerId:t.id,viewerCustomerId:t.customerId,files:{fileToken:"",progressive:[{mimeType:"video/mp4",profile:"144",url:c}]},chapters:{list:[]},instanceRegion:t.instanceRegion,localCacheAddresses:[],posterUrl:u,resources:{list:[]},settings:{showSubtitles:!1,playbackProfile:"144",playbackProfileLocalCache:"144",playbackSubtitleSizeDefault:"medium"},subtitles:{list:[{url:s,isDefault:!1,language:"en-AU",mimeType:"text/vtt",label:"English"}]},title:o.title}}({currentUser:w.data,region:b.data,config:g.data,program:h.data});return n.createElement(a.G,{closePopup:e.closePopup,showLoadingSpinner:!S,size:"lg",bodyClassName:"p-0 rounded-3 position-relative"},S&&n.createElement(n.Fragment,null,n.createElement("div",{className:"overflow-hidden rounded-top-lg"},n.createElement(l.L,{viewKey:null,offlinePlaybackObject:T,playerApi:new URL(g.data.playerApiUrl),autoplay:!0,hotkeyElQuerySelector:"body",onReady:function(t){j(t),e.currentTime&&t.currentTime(e.currentTime)},allowFullscreen:!1})),n.createElement(f.d,{program:h.data,title:h.data.title,description:h.data.description,videoActions:P(h.data)}),n.createElement(s.$,{closePopup:e.closePopup})))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[455],{20455:(e,t,n)=>{n.d(t,{LB:()=>He,y9:()=>ct,g4:()=>te,Lg:()=>ae,we:()=>de,pE:()=>R,ey:()=>S,VK:()=>I,_8:()=>E,hI:()=>B,Cj:()=>_e,O1:()=>Ge,Zj:()=>Ze,VT:()=>g,Dy:()=>p});var r=n(32735),o=n(12788),i=n(17592);const a={display:"none"};function l(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:a},n)}function s(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return r.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},n)}const c=(0,r.createContext)(null),u={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},d={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function f(e){let{announcements:t=d,container:n,hiddenTextDescribedById:a,screenReaderInstructions:f=u}=e;const{announce:v,announcement:h}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),g=(0,i.Ld)("DndLiveRegion"),[p,b]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{b(!0)}),[]),function(e){const t=(0,r.useContext)(c);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;v(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&v(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;v(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;v(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;v(t.onDragCancel({active:n,over:r}))}})),[v,t])),!p)return null;const m=r.createElement(r.Fragment,null,r.createElement(l,{id:a,value:f.draggable}),r.createElement(s,{id:g,announcement:h}));return n?(0,o.createPortal)(m,n):m}var v;function h(){}function g(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(v||(v={}));const b=Object.freeze({x:0,y:0});function m(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function y(e,t){const n=(0,i.DC)(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function w(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function x(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function C(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function E(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function D(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const R=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=D(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=m(D(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(w)},S=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=C(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=C(r),a=o.reduce(((e,t,r)=>e+m(n[r],t)),0),l=Number((a/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:l}})}}return i.sort(w)};function M(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const N=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=M(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(x)};function k(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:b}function L(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const O=L(1);function T(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const A={ignoreTransform:!1};function I(e,t){void 0===t&&(t=A);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{getComputedStyle:t}=(0,i.Jj)(e),{transform:r,transformOrigin:o}=t(e);r&&(n=function(e,t,n){const r=T(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,s=e.left-a-(1-o)*parseFloat(n),c=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s}}(n,r,o))}const{top:r,left:o,width:a,height:l,bottom:s,right:c}=n;return{top:r,left:o,width:a,height:l,bottom:s,right:c}}function j(e){return I(e,{ignoreTransform:!0})}function B(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,i.qk)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,i.Re)(o)||(0,i.vZ)(o))return n;if(n.includes(o))return n;const{getComputedStyle:a}=(0,i.Jj)(o),l=a(o);return o!==e&&function(e,t){void 0===t&&(t=(0,i.Jj)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,l)&&n.push(o),function(e,t){return void 0===t&&(t=(0,i.Jj)(e).getComputedStyle(e)),"fixed"===t.position}(o,l)?n:r(o.parentNode)}(e):n}function z(e){const[t]=B(e,1);return null!=t?t:null}function X(e){return i.Nq&&e?(0,i.FJ)(e)?e:(0,i.UG)(e)?(0,i.qk)(e)||e===(0,i.r3)(e).scrollingElement?window:(0,i.Re)(e)?e:null:null:null}function P(e){return(0,i.FJ)(e)?e.scrollX:e.scrollLeft}function F(e){return(0,i.FJ)(e)?e.scrollY:e.scrollTop}function J(e){return{x:P(e),y:F(e)}}var Y;function U(e){return!(!i.Nq||!e)&&e===document.scrollingElement}function H(e){const t={x:0,y:0},n=U(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Y||(Y={}));const K={x:.2,y:.2};function q(e,t,n,r,o){let{top:i,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===o&&(o=K);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=H(e),v={x:0,y:0},h={x:0,y:0},g=t.height*o.y,p=t.width*o.x;return!c&&i<=t.top+g?(v.y=Y.Backward,h.y=r*Math.abs((t.top+g-i)/g)):!u&&s>=t.bottom-g&&(v.y=Y.Forward,h.y=r*Math.abs((t.bottom-g-s)/g)),!f&&l>=t.right-p?(v.x=Y.Forward,h.x=r*Math.abs((t.right-p-l)/p)):!d&&a<=t.left+p&&(v.x=Y.Backward,h.x=r*Math.abs((t.left+p-a)/p)),{direction:v,speed:h}}function W(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function G(e){return e.reduce(((e,t)=>(0,i.IH)(e,J(t))),b)}function _(e,t){if(void 0===t&&(t=I),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);z(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const V=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+P(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+F(t)),0)}]];class ${constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=B(t),r=G(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of V)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Z{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Q(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var ee,te;function ne(e){e.preventDefault()}function re(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(ee||(ee={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(te||(te={}));const oe={start:[te.Space,te.Enter],cancel:[te.Esc],end:[te.Space,te.Enter]},ie=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case te.Right:return{...n,x:n.x+25};case te.Left:return{...n,x:n.x-25};case te.Down:return{...n,y:n.y+25};case te.Up:return{...n,y:n.y-25}}};class ae{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Z((0,i.r3)(t)),this.windowListeners=new Z((0,i.Jj)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ee.Resize,this.handleCancel),this.windowListeners.add(ee.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(ee.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&_(n),t(b)}handleKeyDown(e){if((0,i.vd)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=oe,coordinateGetter:a=ie,scrollBehavior:l="smooth"}=r,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:c}=n.current,u=c?{x:c.left,y:c.top}:b;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,i.$X)(d,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:a,isLeft:s,isBottom:c,maxScroll:u,minScroll:f}=H(n),v=W(n),h={x:Math.min(o===te.Right?v.right-v.width/2:v.right,Math.max(o===te.Right?v.left:v.left+v.width/2,d.x)),y:Math.min(o===te.Down?v.bottom-v.height/2:v.bottom,Math.max(o===te.Down?v.top:v.top+v.height/2,d.y))},g=o===te.Right&&!a||o===te.Left&&!s,p=o===te.Down&&!c||o===te.Up&&!i;if(g&&h.x!==d.x){const e=n.scrollLeft+t.x,i=o===te.Right&&e<=u.x||o===te.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});r.x=i?n.scrollLeft-e:o===te.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:l});break}if(p&&h.y!==d.y){const e=n.scrollTop+t.y,i=o===te.Down&&e<=u.y||o===te.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});r.y=i?n.scrollTop-e:o===te.Down?n.scrollTop-u.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:l});break}}this.handleMove(e,(0,i.IH)((0,i.$X)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function le(e){return Boolean(e&&"distance"in e)}function se(e){return Boolean(e&&"delay"in e)}ae.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=oe,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class ce{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,i.Jj)(e);return e instanceof t?e:(0,i.r3)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:a}=o;this.props=e,this.events=t,this.document=(0,i.r3)(a),this.documentListeners=new Z(this.document),this.listeners=new Z(n),this.windowListeners=new Z((0,i.Jj)(a)),this.initialCoordinates=null!=(r=(0,i.DC)(o))?r:b,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(ee.Resize,this.handleCancel),this.windowListeners.add(ee.DragStart,ne),this.windowListeners.add(ee.VisibilityChange,this.handleCancel),this.windowListeners.add(ee.ContextMenu,ne),this.documentListeners.add(ee.Keydown,this.handleKeydown),t){if(le(t))return;if(se(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ee.Click,re,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ee.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:a,options:{activationConstraint:l}}=o;if(!r)return;const s=null!=(t=(0,i.DC)(e))?t:b,c=(0,i.$X)(r,s);if(!n&&l){if(se(l))return Q(c,l.tolerance)?this.handleCancel():void 0;if(le(l))return null!=l.tolerance&&Q(c,l.tolerance)?this.handleCancel():Q(c,l.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),a(s)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===te.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ue={move:{name:"pointermove"},end:{name:"pointerup"}};class de extends ce{constructor(e){const{event:t}=e,n=(0,i.r3)(t.target);super(e,ue,n)}}de.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const fe={move:{name:"mousemove"},end:{name:"mouseup"}};var ve;!function(e){e[e.RightClick=2]="RightClick"}(ve||(ve={})),class extends ce{constructor(e){super(e,fe,(0,i.r3)(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==ve.RightClick&&(null==r||r({event:n}),!0)}}];const he={move:{name:"touchmove"},end:{name:"touchend"}};var ge,pe;(class extends ce{constructor(e){super(e,he)}static setup(){return window.addEventListener(he.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(he.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(ge||(ge={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(pe||(pe={}));const be={x:{[Y.Backward]:!1,[Y.Forward]:!1},y:{[Y.Backward]:!1,[Y.Forward]:!1}};var me,ye;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(me||(me={})),function(e){e.Optimized="optimized"}(ye||(ye={}));const we=new Map;function xe(e,t){return(0,i.Gj)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function Ce(e){let{callback:t,disabled:n}=e;const o=(0,i.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}function Ee(e){return new $(I(e),e)}function De(e,t,n){void 0===t&&(t=Ee);const[o,a]=(0,r.useReducer)((function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i}),null),l=function(e){let{callback:t,disabled:n}=e;const o=(0,i.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=Ce({callback:a});return(0,i.LI)((()=>{a(),e?(null==s||s.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==l||l.disconnect())}),[e]),o}const Re=[];function Se(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==b;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,i.$X)(e,n.current):b}function Me(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Ne=[];function ke(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,i.Re)(t)?t:e}const Le=[{sensor:de,options:{}},{sensor:ae,options:{}}],Oe={current:{}},Te={draggable:{measure:j},droppable:{measure:j,strategy:me.WhileDragging,frequency:ye.Optimized},dragOverlay:{measure:I}};class Ae extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Ie={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ae,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:h},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Te,measureDroppableContainers:h,windowRect:null,measuringScheduled:!1},je={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:h,draggableNodes:new Map,over:null,measureDroppableContainers:h},Be=(0,r.createContext)(je),ze=(0,r.createContext)(Ie);function Xe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ae}}}function Pe(e,t){switch(t.type){case v.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case v.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case v.DragEnd:case v.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case v.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Ae(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case v.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Ae(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case v.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Ae(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Fe(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:a}=(0,r.useContext)(Be),l=(0,i.D9)(o),s=(0,i.D9)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!o&&l&&null!=s){if(!(0,i.vd)(l))return;if(document.activeElement===l.target)return;const e=a.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,i.so)(e);if(t){t.focus();break}}}))}}),[o,t,a,s,l]),null}function Je(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Ye=(0,r.createContext)({...b,scaleX:1,scaleY:1});var Ue;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ue||(Ue={}));const He=(0,r.memo)((function(e){var t,n,a,l;let{id:s,accessibility:u,autoScroll:d=!0,children:h,sensors:g=Le,collisionDetection:p=N,measuring:m,modifiers:y,...w}=e;const x=(0,r.useReducer)(Pe,void 0,Xe),[C,D]=x,[R,S]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[M,L]=(0,r.useState)(Ue.Uninitialized),T=M===Ue.Initialized,{draggable:{active:A,nodes:j,translate:P},droppable:{containers:F}}=C,H=A?j.get(A):null,K=(0,r.useRef)({initial:null,translated:null}),W=(0,r.useMemo)((()=>{var e;return null!=A?{id:A,data:null!=(e=null==H?void 0:H.data)?e:Oe,rect:K}:null}),[A,H]),_=(0,r.useRef)(null),[V,Z]=(0,r.useState)(null),[Q,ee]=(0,r.useState)(null),te=(0,i.Ey)(w,Object.values(w)),ne=(0,i.Ld)("DndDescribedBy",s),re=(0,r.useMemo)((()=>F.getEnabled()),[F]),oe=(ie=m,(0,r.useMemo)((()=>({draggable:{...Te.draggable,...null==ie?void 0:ie.draggable},droppable:{...Te.droppable,...null==ie?void 0:ie.droppable},dragOverlay:{...Te.dragOverlay,...null==ie?void 0:ie.dragOverlay}})),[null==ie?void 0:ie.draggable,null==ie?void 0:ie.droppable,null==ie?void 0:ie.dragOverlay]));var ie;const{droppableRects:ae,measureDroppableContainers:le,measuringScheduled:se}=function(e,t){let{dragging:n,dependencies:o,config:a}=t;const[l,s]=(0,r.useState)(null),c=null!=l,{frequency:u,measure:d,strategy:f}=a,v=(0,r.useRef)(e),h=function(){switch(f){case me.Always:return!1;case me.BeforeDragging:return n;default:return!n}}(),g=(0,i.Ey)(h),p=(0,r.useCallback)((function(e){void 0===e&&(e=[]),g.current||s((t=>t?t.concat(e):e))}),[g]),b=(0,r.useRef)(null),m=(0,i.Gj)((t=>{if(h&&!n)return we;const r=l;if(!t||t===we||v.current!==e||null!=r){const t=new Map;for(let n of e){if(!n)continue;if(r&&r.length>0&&!r.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,o=e?new $(d(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t}),[e,l,n,h,d]);return(0,r.useEffect)((()=>{v.current=e}),[e]),(0,r.useEffect)((()=>{h||requestAnimationFrame((()=>p()))}),[n,h]),(0,r.useEffect)((()=>{c&&s(null)}),[c]),(0,r.useEffect)((()=>{h||"number"!=typeof u||null!==b.current||(b.current=setTimeout((()=>{p(),b.current=null}),u))}),[u,h,p,...o]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:c}}(re,{dragging:T,dependencies:[P.x,P.y],config:oe.droppable}),ce=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,i.Gj)((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(j,A),ue=(0,r.useMemo)((()=>Q?(0,i.DC)(Q):null),[Q]),de=function(){const e=!1===(null==V?void 0:V.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,n=T&&!e&&!t;return"object"==typeof d?{...d,enabled:n}:{enabled:n}}(),fe=function(e,t){return xe(e,t)}(ce,oe.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:a=!0}=e;const l=(0,r.useRef)(!1),{x:s,y:c}="boolean"==typeof a?{x:a,y:a}:a;(0,i.LI)((()=>{if(!s&&!c||!t)return void(l.current=!1);if(l.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=k(n(e),o);if(s||(r.x=0),c||(r.y=0),l.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=z(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,s,c,o,n])}({activeNode:A?j.get(A):null,config:de.layoutShiftCompensation,initialRect:fe,measure:oe.draggable.measure});const ve=De(ce,oe.draggable.measure,fe),he=De(ce?ce.parentElement:null),ye=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ce,collisionRect:null,collisions:null,droppableRects:ae,draggableNodes:j,draggingNode:null,draggingNodeRect:null,droppableContainers:F,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ee=F.getNodeFor(null==(t=ye.current.over)?void 0:t.id),Ae=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),a=Ce({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,i.Re)(n)){o((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),l=(0,r.useCallback)((e=>{const n=ke(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),o(n?t(n):null)}),[t,a]),[s,c]=(0,i.wm)(l);return(0,r.useMemo)((()=>({nodeRef:s,rect:n,setRef:c})),[n,s,c])}({measure:oe.dragOverlay.measure}),Ie=null!=(n=Ae.nodeRef.current)?n:ce,je=T?null!=(a=Ae.rect)?a:ve:null,He=Boolean(Ae.nodeRef.current&&Ae.rect),Ke=k(qe=He?null:ve,xe(qe));var qe;const We=Me(Ie?(0,i.Jj)(Ie):null),Ge=function(e){const t=(0,r.useRef)(e),n=(0,i.Gj)((n=>e?n&&n!==Re&&e&&t.current&&e.parentNode===t.current.parentNode?n:B(e):Re),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(T?null!=Ee?Ee:ce:null),_e=function(e,t){void 0===t&&(t=I);const[n]=e,o=Me(n?(0,i.Jj)(n):null),[a,l]=(0,r.useReducer)((function(){return e.length?e.map((e=>U(e)?o:new $(t(e),e))):Ne}),Ne),s=Ce({callback:l});return e.length>0&&a===Ne&&l(),(0,i.LI)((()=>{e.length?e.forEach((e=>null==s?void 0:s.observe(e))):(null==s||s.disconnect(),l())}),[e]),a}(Ge),Ve=Je(y,{transform:{x:P.x-Ke.x,y:P.y-Ke.y,scaleX:1,scaleY:1},activatorEvent:Q,active:W,activeNodeRect:ve,containerNodeRect:he,draggingNodeRect:je,over:ye.current.over,overlayNodeRect:Ae.rect,scrollableAncestors:Ge,scrollableAncestorRects:_e,windowRect:We}),$e=ue?(0,i.IH)(ue,P):null,Ze=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),a=(0,r.useCallback)((e=>{const t=X(e.target);t&&n((e=>e?(e.set(t,J(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=o.current;if(e!==t){r(t);const i=e.map((e=>{const t=X(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,J(t)]):null})).filter((e=>null!=e));n(i.length?new Map(i):null),o.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=X(e);null==t||t.removeEventListener("scroll",a)}))}}),[a,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,i.IH)(e,t)),b):G(e):b),[e,t])}(Ge),Qe=Se(Ze),et=Se(Ze,[ve]),tt=(0,i.IH)(Ve,Qe),nt=je?O(je,Ve):null,rt=W&&nt?p({active:W,collisionRect:nt,droppableRects:ae,droppableContainers:re,pointerCoordinates:$e}):null,ot=E(rt,"id"),[it,at]=(0,r.useState)(null),lt=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(He?Ve:(0,i.IH)(Ve,et),null!=(l=null==it?void 0:it.rect)?l:null,ve),st=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==_.current)return;const i=j.get(_.current);if(!i)return;const a=e.nativeEvent,l=new n({active:_.current,activeNode:i,event:a,options:r,context:ye,onStart(e){const t=_.current;if(null==t)return;const n=j.get(t);if(!n)return;const{onDragStart:r}=te.current,i={active:{id:t,data:n.data,rect:K}};(0,o.unstable_batchedUpdates)((()=>{null==r||r(i),L(Ue.Initializing),D({type:v.DragStart,initialCoordinates:e,active:t}),R({type:"onDragStart",event:i})}))},onMove(e){D({type:v.DragMove,coordinates:e})},onEnd:s(v.DragEnd),onCancel:s(v.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=ye.current;let l=null;if(t&&i){const{cancelDrop:o}=te.current;l={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===v.DragEnd&&"function"==typeof o&&await Promise.resolve(o(l))&&(e=v.DragCancel)}_.current=null,(0,o.unstable_batchedUpdates)((()=>{D({type:e}),L(Ue.Uninitialized),at(null),Z(null),ee(null);const t=e===v.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=te.current[t];null==e||e(l),R({type:t,event:l})}}))}}(0,o.unstable_batchedUpdates)((()=>{Z(l),ee(e.nativeEvent)}))}),[j]),ct=(0,r.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=j.get(r);if(null!==_.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},_.current=r,st(n,t))}),[j,st]),ut=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(g,ct);!function(e){(0,r.useEffect)((()=>{if(!i.Nq)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(g),(0,i.LI)((()=>{ve&&M===Ue.Initializing&&L(Ue.Initialized)}),[ve,M]),(0,r.useEffect)((()=>{const{onDragMove:e}=te.current,{active:t,activatorEvent:n,collisions:r,over:i}=ye.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:tt.x,y:tt.y},over:i};(0,o.unstable_batchedUpdates)((()=>{null==e||e(a),R({type:"onDragMove",event:a})}))}),[tt.x,tt.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=ye.current;if(!e||null==_.current||!t||!i)return;const{onDragOver:a}=te.current,l=r.get(ot),s=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,o.unstable_batchedUpdates)((()=>{at(s),null==a||a(c),R({type:"onDragOver",event:c})}))}),[ot]),(0,i.LI)((()=>{ye.current={activatorEvent:Q,active:W,activeNode:ce,collisionRect:nt,collisions:rt,droppableRects:ae,draggableNodes:j,draggingNode:Ie,draggingNodeRect:je,droppableContainers:F,over:it,scrollableAncestors:Ge,scrollAdjustedTranslate:tt},K.current={initial:je,translated:nt}}),[W,ce,rt,nt,j,Ie,je,ae,F,it,Ge,tt]),function(e){let{acceleration:t,activator:n=ge.Pointer,canScroll:o,draggingRect:a,enabled:l,interval:s=5,order:c=pe.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:f,delta:v,threshold:h}=e;const g=function(e){let{delta:t,disabled:n}=e;const r=(0,i.D9)(t);return(0,i.Gj)((e=>{if(n||!r||!e)return be;const o=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[Y.Backward]:e.x[Y.Backward]||-1===o,[Y.Forward]:e.x[Y.Forward]||1===o},y:{[Y.Backward]:e.y[Y.Backward]||-1===i,[Y.Forward]:e.y[Y.Forward]||1===i}}}),[n,t,r])}({delta:v,disabled:!l}),[p,b]=(0,i.Yz)(),m=(0,r.useRef)({x:0,y:0}),y=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case ge.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case ge.DraggableRect:return a}}),[n,a,u]),x=(0,r.useRef)(null),C=(0,r.useCallback)((()=>{const e=x.current;if(!e)return;const t=m.current.x*y.current.x,n=m.current.y*y.current.y;e.scrollBy(t,n)}),[]),E=(0,r.useMemo)((()=>c===pe.TreeOrder?[...d].reverse():d),[c,d]);(0,r.useEffect)((()=>{if(l&&d.length&&w){for(const e of E){if(!1===(null==o?void 0:o(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:i,speed:a}=q(e,r,w,t,h);for(const e of["x","y"])g[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return b(),x.current=e,p(C,s),m.current=a,void(y.current=i)}m.current={x:0,y:0},y.current={x:0,y:0},b()}else b()}),[t,C,o,b,l,s,JSON.stringify(w),JSON.stringify(g),p,d,E,f,JSON.stringify(h)])}({...de,delta:P,draggingRect:nt,pointerCoordinates:$e,scrollableAncestors:Ge,scrollableAncestorRects:_e});const dt=(0,r.useMemo)((()=>({active:W,activeNode:ce,activeNodeRect:ve,activatorEvent:Q,collisions:rt,containerNodeRect:he,dragOverlay:Ae,draggableNodes:j,droppableContainers:F,droppableRects:ae,over:it,measureDroppableContainers:le,scrollableAncestors:Ge,scrollableAncestorRects:_e,measuringConfiguration:oe,measuringScheduled:se,windowRect:We})),[W,ce,ve,Q,rt,he,Ae,j,F,ae,it,le,Ge,_e,oe,se,We]),ft=(0,r.useMemo)((()=>({activatorEvent:Q,activators:ut,active:W,activeNodeRect:ve,ariaDescribedById:{draggable:ne},dispatch:D,draggableNodes:j,over:it,measureDroppableContainers:le})),[Q,ut,W,ve,D,ne,j,it,le]);return r.createElement(c.Provider,{value:S},r.createElement(Be.Provider,{value:ft},r.createElement(ze.Provider,{value:dt},r.createElement(Ye.Provider,{value:lt},h)),r.createElement(Fe,{disabled:!1===(null==u?void 0:u.restoreFocus)})),r.createElement(f,{...u,hiddenTextDescribedById:ne}))})),Ke=(0,r.createContext)(null),qe="button",We="Droppable";function Ge(e){let{id:t,data:n,disabled:o=!1,attributes:a}=e;const l=(0,i.Ld)(We),{activators:s,activatorEvent:c,active:u,activeNodeRect:d,ariaDescribedById:f,draggableNodes:v,over:h}=(0,r.useContext)(Be),{role:g=qe,roleDescription:p="draggable",tabIndex:b=0}=null!=a?a:{},m=(null==u?void 0:u.id)===t,y=(0,r.useContext)(m?Ye:Ke),[w,x]=(0,i.wm)(),[C,E]=(0,i.wm)(),D=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(s,t),R=(0,i.Ey)(n);return(0,i.LI)((()=>(v.set(t,{id:t,key:l,node:w,activatorNode:C,data:R}),()=>{const e=v.get(t);e&&e.key===l&&v.delete(t)})),[v,t]),{active:u,activatorEvent:c,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:g,tabIndex:b,"aria-disabled":o,"aria-pressed":!(!m||g!==qe)||void 0,"aria-roledescription":p,"aria-describedby":f.draggable})),[o,g,b,m,p,f.draggable]),isDragging:m,listeners:o?void 0:D,node:w,over:h,setNodeRef:x,setActivatorNodeRef:E,transform:y}}function _e(){return(0,r.useContext)(ze)}const Ve="Droppable",$e={timeout:25};function Ze(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:a}=e;const l=(0,i.Ld)(Ve),{active:s,dispatch:c,over:u,measureDroppableContainers:d}=(0,r.useContext)(Be),f=(0,r.useRef)({disabled:n}),h=(0,r.useRef)(!1),g=(0,r.useRef)(null),p=(0,r.useRef)(null),{disabled:b,updateMeasurementsFor:m,timeout:y}={...$e,...a},w=(0,i.Ey)(null!=m?m:o),x=Ce({callback:(0,r.useCallback)((()=>{h.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),p.current=null}),y)):h.current=!0}),[y]),disabled:b||!s}),C=(0,r.useCallback)(((e,t)=>{x&&(t&&(x.unobserve(t),h.current=!1),e&&x.observe(e))}),[x]),[E,D]=(0,i.wm)(C),R=(0,i.Ey)(t);return(0,r.useEffect)((()=>{x&&E.current&&(x.disconnect(),h.current=!1,x.observe(E.current))}),[E,x]),(0,i.LI)((()=>(c({type:v.RegisterDroppable,element:{id:o,key:l,disabled:n,node:E,rect:g,data:R}}),()=>c({type:v.UnregisterDroppable,key:l,id:o}))),[o]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(c({type:v.SetDroppableDisabled,id:o,key:l,disabled:n}),f.current.disabled=n)}),[o,l,n,c]),{active:s,rect:g,isOver:(null==u?void 0:u.id)===o,node:E,over:u,setNodeRef:D}}function Qe(e){let{animation:t,children:n}=e;const[o,a]=(0,r.useState)(null),[l,s]=(0,r.useState)(null),c=(0,i.D9)(n);return n||o||!c||a(c),(0,i.LI)((()=>{if(!l)return;const e=null==o?void 0:o.key,n=null==o?void 0:o.props.id;null!=e&&null!=n?Promise.resolve(t(n,l)).then((()=>{a(null)})):a(null)}),[t,o,l]),r.createElement(r.Fragment,null,n,o?(0,r.cloneElement)(o,{ref:s}):null)}const et={x:0,y:0,scaleX:1,scaleY:1};function tt(e){let{children:t}=e;return r.createElement(Be.Provider,{value:je},r.createElement(Ye.Provider,{value:et},t))}const nt={position:"fixed",touchAction:"none"},rt=e=>(0,i.vd)(e)?"transform 250ms ease":void 0,ot=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:o,adjustScale:a,children:l,className:s,rect:c,style:u,transform:d,transition:f=rt}=e;if(!c)return null;const v=a?d:{...d,scaleX:1,scaleY:1},h={...nt,width:c.width,height:c.height,top:c.top,left:c.left,transform:i.ux.Transform.toString(v),transformOrigin:a&&o?y(o,c):void 0,transition:"function"==typeof f?f(o):f,...u};return r.createElement(n,{className:s,style:h,ref:t},l)})),it=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:i,className:a}=e;if(null!=i&&i.active)for(const[e,t]of Object.entries(i.active))void 0!==t&&(o[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(const[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(o))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},at={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:i.ux.Transform.toString(t)},{transform:i.ux.Transform.toString(n)}]},sideEffects:it({styles:{active:{opacity:"0"}}})};let lt=0;function st(e){return(0,r.useMemo)((()=>{if(null!=e)return lt++,lt}),[e])}const ct=r.memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:a,transition:l,modifiers:s,wrapperElement:c="div",className:u,zIndex:d=999}=e;const{activatorEvent:f,active:v,activeNodeRect:h,containerNodeRect:g,draggableNodes:p,droppableContainers:b,dragOverlay:m,over:y,measuringConfiguration:w,scrollableAncestors:x,scrollableAncestorRects:C,windowRect:E}=_e(),D=(0,r.useContext)(Ye),R=st(null==v?void 0:v.id),S=Je(s,{activatorEvent:f,active:v,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:x,scrollableAncestorRects:C,transform:D,windowRect:E}),M=xe(h),N=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return(0,i.zX)(((e,a)=>{if(null===t)return;const l=n.get(e);if(!l)return;const s=l.node.current;if(!s)return;const c=ke(a);if(!c)return;const{transform:u}=(0,i.Jj)(a).getComputedStyle(a),d=T(u);if(!d)return;const f="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...at,...e};return e=>{let{active:i,dragOverlay:a,transform:l,...s}=e;if(!t)return;const c=a.rect.left-i.rect.left,u=a.rect.top-i.rect.top,d={scaleX:1!==l.scaleX?i.rect.width*l.scaleX/a.rect.width:1,scaleY:1!==l.scaleY?i.rect.height*l.scaleY/a.rect.height:1},f={x:l.x-c,y:l.y-u,...d},v=o({...s,active:i,dragOverlay:a,transform:{initial:l,final:f}}),[h]=v,g=v[v.length-1];if(JSON.stringify(h)===JSON.stringify(g))return;const p=null==r?void 0:r({active:i,dragOverlay:a,...s}),b=a.node.animate(v,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{b.onfinish=()=>{null==p||p(),e()}}))}}(t);return _(s,o.draggable.measure),f({active:{id:e,data:l.data,node:s,rect:o.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:o.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:o,transform:d})}))}({config:o,draggableNodes:p,droppableContainers:b,measuringConfiguration:w}),k=M?m.setRef:void 0;return r.createElement(tt,null,r.createElement(Qe,{animation:N},v&&R?r.createElement(ot,{key:R,id:v.id,ref:k,as:c,activatorEvent:f,adjustScale:t,className:u,transition:l,rect:M,style:{zIndex:d,...a},transform:S},n):null))}))},17592:(e,t,n)=>{n.d(t,{$X:()=>D,D9:()=>y,DC:()=>S,Ey:()=>p,FJ:()=>a,Gj:()=>b,HB:()=>o,IH:()=>E,Jj:()=>s,LI:()=>v,Ld:()=>x,Nq:()=>i,Re:()=>u,UG:()=>l,Yz:()=>g,qk:()=>c,r3:()=>f,so:()=>k,ux:()=>M,vZ:()=>d,vd:()=>R,wm:()=>m,zX:()=>h});var r=n(32735);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function s(e){var t,n;return e?a(e)?e:l(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){const{Document:t}=s(e);return e instanceof t}function u(e){return!a(e)&&e instanceof s(e).HTMLElement}function d(e){return e instanceof s(e).SVGElement}function f(e){return e?a(e)?e.document:l(e)?c(e)?e:u(e)||d(e)?e.ownerDocument:document:document:document}const v=i?r.useLayoutEffect:r.useEffect;function h(e){const t=(0,r.useRef)(e);return v((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function g(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function p(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return v((()=>{n.current!==e&&(n.current=e)}),t),n}function b(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function m(e){const t=h(e),n=(0,r.useRef)(null),o=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,o]}function y(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n}),[e,t])}function C(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const E=C(1),D=C(-1);function R(e){if(!e)return!1;const{KeyboardEvent:t}=s(e.target);return t&&e instanceof t}function S(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=s(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const M=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[M.Translate.toString(e),M.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),N="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function k(e){return e.matches(N)?e:e.querySelector(N)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[468],{52527:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(32735),a=n(83345);const i={adFreeBadge:"xUXHs",small:"rqFjv"};var o="tv.adFreeBadge";function l(e){return r.createElement("div",{className:"".concat(i.adFreeBadge," ").concat(e.small?i.small:""," ").concat(e.className||""," d-flex align-items-center rounded bg-red text-white fw-semibold px-1 font-size-sm")},r.createElement(a.x,{namespace:o,phrase:"adFree"}))}},89913:(e,t,n)=>{n.d(t,{J:()=>i});var r=n(32735);const a={channelBadge:"Ud_W9",small:"A0WD4"};function i(e){return r.createElement("div",{className:"".concat(a.channelBadge," ").concat(e.small?a.small:""," ").concat(e.className||"")},r.createElement("img",{className:"h-100 align-baseline",src:e.logoUrl}))}},7022:(e,t,n)=>{n.d(t,{B:()=>l});var r=n(32735),a=n(110),i=n(55667);const o={programTimeBadge:"Avu4L",small:"a1Wkd",hover:"fbzDz"};function l(e){var t=e.program.timeZone||e.program.region.timeZone,n=(0,i.h)(e.program.startTime,t),l=(0,i.h)(e.program.stopTime,t);return r.createElement("div",{className:"".concat(o.programTimeBadge," ").concat(e.small?"".concat(o.small," align-items-end"):"align-items-center"," ").concat(e.hover?o.hover:""," ").concat(e.className||""," d-flex bg-white text-nowrap border border-dark rounded-pill px-2")},r.createElement("span",null,e.showDate&&"".concat(a.O.format(n,"D MMM")," @ "),a.O.format(n,"hh:mma"),e.showEndTime&&" - ".concat(a.O.format(l,"hh:mma"))))}},62663:(e,t,n)=>{n.d(t,{R:()=>s});var r=n(32735),a=n(65858),i=n(57408),o=n(83914),l=n(35223);const c={select:"H5p_F"};function s(e){var t=e.currentRegion,n=e.regions,s=e.appLink;return r.createElement("div",{className:"d-flex align-items-center mb-3"},r.createElement("span",null,"Region: "),r.createElement("div",{className:"dropdown"},r.createElement("a",{className:"".concat(c.select," d-flex align-items-center btn btn-outline-dark ms-3"),id:"region-select",type:"button","data-bs-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},r.createElement("span",null,t.stateFull),r.createElement(o.x,{svgName:l.vn.ChevronDown})),r.createElement("div",{className:"dropdown-menu dropdown-menu-end","aria-labelledby":"region-select"},n.map((function(n,o){return n.id===t.id?r.createElement(r.Fragment,{key:o}):r.createElement(i.F,{key:o,className:"dropdown-item",appLink:Object.assign(Object.assign({},s),{args:[n.code]}),analyticsData:{region:t.code},analyticsOptions:{actionType:a.Vw.Select,entity:a.py.Region,location:a.LZ.Dropdown,descriptor:a.MI.RegionSelect},onClick:function(){return e.onClick(n)}},n.stateFull)})))))}},2330:(e,t,n)=>{n.d(t,{g:()=>i});var r=n(32735);const a={regionSelect:"Dod1u"};function i(){return r.createElement("div",{className:"".concat(a.regionSelect," partial-loading-background d-flex rounded mb-3")},r.createElement("div",{className:"svg-container std"}))}},55102:(e,t,n)=>{n.d(t,{u:()=>u});var r=n(32735),a=n(81886),i=n(83914),o=n(35223),l=n(73818),c=n(82329);const s={searchBar:"Ji3Ce"};function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e){var t,n,u,m=(n=r.useState(null!==(t=e.query)&&void 0!==t?t:""),u=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(n,u)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.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)?d(e,t):void 0}}(n,u)||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.")}()),p=m[0],g=m[1];return r.createElement("form",{onSubmit:function(t){var n;t.preventDefault(),p&&a.Q.C$.trigger({application:c.O.TV,action:l.e.Tv.SEARCH,args:[null===(n=e.region)||void 0===n?void 0:n.code],params:{query:p}})}},r.createElement("div",{className:"".concat(s.searchBar," d-flex border border-dark rounded align-items-center mb-3")},r.createElement(i.x,{svgName:o.vn.Search}),r.createElement("input",{type:"text",className:"form-control h-100 w-100 py-0 border-0 shadow-none",placeholder:"Search for programs on ClickView TV",value:p,onChange:function(e){return g(e.target.value)},autoComplete:"off"})))}},85949:(e,t,n)=>{n.d(t,{Y:()=>g});var r=n(81886),a=n(23481),i=n(97395),o=n(20354),l=n(65858),c=n(12754),s=n(39151),d=n(35223),u=n(73818),m=n(82329),p=a.T.encloseNamespace("tv.addRequests");function g(e,t,n){var a=o.a.useBasicFetch(s.L.config());return function(o){var s;if(!t)return[];var g="preview"===e,f={id:o.id,name:o.title},h=g?l.LZ.VideoItemPreview:l.LZ.VideoListItem;return[{label:g?p("addVideo"):"",svgName:g?void 0:d.vn.AddVideo,tooltip:g?"":p("addVideo"),className:g?"btn btn-dark me-2 text-nowrap":"btn",button:!0,onClick:function(){r.Q.C$.trigger({application:m.O.TV,action:u.e.Tv.ADD,args:[t.code,o.id],params:{currentTime:Math.floor(+(null==n?void 0:n.currentTime()))||void 0}})},analyticsData:f,analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Video,descriptor:l.XX.AddToWorkspace,location:h,workflowPhase:l.eu.Start}},{label:p("editVideo"),href:i._.urlBuilder("".concat(null===(s=a.data)||void 0===s?void 0:s.cloudEditorUrl,"/tv/").concat(o.globalId),{product:c.x.Exchange}),openInNewTab:!0,analyticsData:f,analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Video,location:h,descriptor:l.XX.EditVideo}}]}}},8519:(e,t,n)=>{n.d(t,{e:()=>c});var r=n(32735),a=n(50242),i=n(81886),o=n(20470),l=n(69834);function c(e,t){r.useEffect((function(){e.hasCompleted&&(e.data||(e.hasError&&(0,l.r)(e.statusCode),t?i.Q.Ry.throw(new o.x):(0,l.r)(a.o.BadRequest)))}),[e.hasCompleted,e.data])}},55667:(e,t,n)=>{n.d(t,{h:()=>i});var r=n(110),a={"AUS Eastern Standard Time":"Australia/Sydney","W. Australia Standard Time":"Australia/Perth","E. Australia Standard Time":"Australia/Brisbane","Cen. Australia Standard Time":"Australia/Adelaide","New Zealand Standard Time":"Pacific/Auckland","GMT Standard Time":"Europe/London"};function i(e,t){return r.O.getUtcTimeByTimezone(e,"YYYY-MM-DDTHH:mm:ss",a[t])}},12947:(e,t,n)=>{n.r(t),n.d(t,{TvSearchResultsView:()=>z});var r=n(32735),a=n(50242),i=n(20354),o=n(65858),l=n(73940),c=n(99581),s=n(63545),d=n(71471),u=n(69834),m=n(69883),p=n(91286),g=n(60115),f=n(79612),h=n(73818),v=n(82329),y=n(2330),b=n(62663),E=n(55102),w=n(5353),S=n(85949),T=n(8519),k=n(87439),x=n(15800),N=n(83345),A=n(99742),C="tv.searchResultsEmptyState";function V(e){return r.createElement(N.D.Provider,{value:C},r.createElement(x.u,null,r.createElement(x.u.Image,{src:A.W.EmptyStates.SEARCH}),r.createElement(x.u.Heading,null,e.query?r.createElement(N.x,{phrase:"headingWithQuery",options:{query:e.query}}):r.createElement(N.x,{phrase:"headingWithoutQuery"})),r.createElement(x.u.Info,null,r.createElement(N.x,{phrase:"info"}))))}var O=n(110),F=n(64887),R=n(57408),I=n(28203),B=n(17464),D=n(85473),M=n(85177),j=n(54610),L=n(52527),q=n(89913),H=n(7022),_=n(55667);const Z={highlight:"j6Jv2",badgeOverlay:"hIXgF"};function $(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||P(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,t){if(e){if("string"==typeof e)return U(e,t);var n={}.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)?U(e,t):void 0}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t){var n=new RegExp(t,"gi");return e.replace(n,(function(e){return"<span class=".concat(Z.highlight,">").concat(e,"</span>")}))}function Y(e){var t,n,a,i,o,l,c=e.program,s=e.query,d=e.region,u=e.getVideoActions,m=(o=r.useState(!1),l=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(o,l)||P(o,l)||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.")}()),p=m[0],g=m[1],f={application:v.O.TV,action:h.e.Tv.PREVIEW,args:[d.code,c.id]},y=(0,_.h)(c.startTime,c.timeZone),b=(0,_.h)(c.stopTime,c.timeZone),E=Math.abs(O.O.diffBetween(y,b,"milliseconds"));return r.createElement("div",{className:"row g-0 mb-3"},r.createElement("div",{className:"col-3 flex-column align-items-flex-start pe-2"},r.createElement("div",{className:"rounded rounded-3 overflow-hidden"},r.createElement(D.Z,{imageType:j.__.Thumbnails,data:c.thumbnailUrl,appLink:f},r.createElement(M.oy,{type:M.mS.Video}),r.createElement("div",{className:Z.badgeOverlay},r.createElement(I.C,{type:I.g.DurationApproximate,data:E}))))),r.createElement("div",{className:"col-9 pb-2"},r.createElement(F.e,{actions:u(c),className:"float-end mt-n1",actionsDropdownClassName:"btn btn-link ms-1"}),r.createElement(R.F,{appLink:f},r.createElement("h5",{className:"h4 mb-1 align-middle text-dark text-truncate",title:null!==(t=c.title)&&void 0!==t?t:""},r.createElement("span",{dangerouslySetInnerHTML:{__html:W(c.title,s)}}))),r.createElement(B.c,{className:"mb-1"},c.channelLogoUrl&&r.createElement(q.J,{logoUrl:c.channelLogoUrl,className:"me-1",small:!0}),r.createElement(H.B,{program:c,className:"me-1",showDate:!0,showEndTime:!0,small:!0}),c.hasAdsFree&&r.createElement(L.Z,{small:!0})),r.createElement("div",{className:"mb-1"},r.createElement("span",{dangerouslySetInnerHTML:{__html:W(c.description,s)}})),!!(null===(n=c.subtitleHits)||void 0===n?void 0:n.length)&&r.createElement("div",null,null===(a=c.subtitleHits)||void 0===a?void 0:a.map((function(e,t){return!p&&t>1?r.createElement(r.Fragment,{key:t}):r.createElement(R.F,{key:t,appLink:Object.assign(Object.assign({},f),{args:$(f.args),params:{currentTime:e.HitStartTime/1e3}}),className:"d-block text-dark"},r.createElement("span",{className:"fw-semibold"},"[",O.O.format(O.O.add(y,e.HitStartTime,"milliseconds"),"h:mm:ss a"),"]")," ",r.createElement("span",{dangerouslySetInnerHTML:{__html:W(e.SrtFragment,s)}}))})),!p&&(null===(i=c.subtitleHits)||void 0===i?void 0:i.length)>2&&r.createElement("div",{className:"text-info cursor-pointer",onClick:function(){return g(!0)}},"Show more"))))}function z(e){var t,n=e.queryParams,x=n.query,N=i.a.useGetFetch(),A=(0,m.Z)(),C=i.a.useBasicFetch(w.i.region(e.region)),O=i.a.useBasicFetch(w.i.regions()),F=i.a.useBasicFetch(C.data&&w.i.channels(C.data.code));C.hasCompleted&&!C.data&&(0,u.r)(a.o.BadRequest);var R=(0,k.K)().setRegion;(0,T.e)(C),(0,p.v)([O,F]),(0,f.M)({title:null!=x?x:""});var I=(0,g.K)(C.data&&L,q,(function(e,t){if(1===e)return(0,u.r)(t);A.error("Something went wrong")}),(function(e){return e.results}),(function(e){return 25*e.page>e.totalNumber?null:(e.page+1).toString()})),B=I.items,D=I.hasMore,M=I.isFetching,j=I.nextCursor;function L(e){return w.i.search(C.data.code,n,+e)}function q(e){return N(L(e))}var H=(0,S.Y)("video-list",C.data),_=C.hasCompleted&&O.hasCompleted&&F.hasCompleted,Z=[c.x$.TvChannel(F.data),c.x$.TvDateBroadcast(),c.x$.TvFields()];return r.createElement(r.Fragment,null,r.createElement(E.u,{query:x,region:C.data}),r.createElement("div",{className:"d-flex justify-content-between mb-2"},r.createElement(l.J,{queryParams:n,mainFilters:Z,analyticsOptions:{entity:o.py.SearchResults,location:o.LZ.SearchFilters},appLink:{application:v.O.TV,action:h.e.Tv.SEARCH,args:[null===(t=C.data)||void 0===t?void 0:t.code]},hideDivider:!0,isFetchingOptions:!_}),C.data&&O.data?r.createElement(b.R,{currentRegion:C.data,regions:O.data,appLink:{application:v.O.TV,action:h.e.Tv.SEARCH,params:{query:x}},onClick:R}):r.createElement(y.g,null)),_&&r.createElement(r.Fragment,null,(null==B?void 0:B.length)?r.createElement(r.Fragment,null,B.map((function(e,t){return r.createElement(Y,{key:t,program:e,query:x,region:C.data,getVideoActions:H})})),(D||M)&&r.createElement(s._,{isFetching:M,fetchNext:q,nextCursor:j})):r.createElement(r.Fragment,null,M?r.createElement("div",{className:"m-n2"},r.createElement(d.S,null)):r.createElement(V,{query:x}))))}z.defaultProps={queryParams:{}}},68050:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(95685),a=n.n(r),i=n(32735),o=n(46304),l=n(74512);const c=i.forwardRef((({bsPrefix:e,className:t,as:n="div",...r},i)=>{const c=(0,o.vE)(e,"row"),s=(0,o.pi)(),d=(0,o.zG)(),u=`${c}-cols`,m=[];return s.forEach((e=>{const t=r[e];let n;delete r[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const a=e!==d?`-${e}`:"";null!=n&&m.push(`${u}${a}-${n}`)})),(0,l.jsx)(n,{ref:i,...r,className:a()(t,c,...m)})}));c.displayName="Row";const s=c},34152:(e,t,n)=>{n.d(t,{YD:()=>s});var r=n(32735),a=(Object.defineProperty,new Map),i=new WeakMap,o=0,l=void 0;function c(e,t,n={},r=l){if(void 0===window.IntersectionObserver&&void 0!==r){const a=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:c,observer:s,elements:d}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(i.has(n)||(o+=1,i.set(n,o.toString())),i.get(n)):"0"):e[t]}`;var n})).toString()}(e);let n=a.get(t);if(!n){const r=new Map;let i;const o=new IntersectionObserver((t=>{t.forEach((t=>{var n;const a=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=a),null==(n=r.get(t.target))||n.forEach((e=>{e(a,t)}))}))}),e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:r},a.set(t,n)}return n}(n),u=d.get(e)||[];return d.has(e)||d.set(e,u),u.push(t),s.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(d.delete(e),s.unobserve(e)),0===d.size&&(s.disconnect(),a.delete(c))}}function s({threshold:e,delay:t,trackVisibility:n,rootMargin:a,root:i,triggerOnce:o,skip:l,initialInView:s,fallbackInView:d,onChange:u}={}){var m;const[p,g]=r.useState(null),f=r.useRef(),[h,v]=r.useState({inView:!!s,entry:void 0});f.current=u,r.useEffect((()=>{if(l||!p)return;let r;return r=c(p,((e,t)=>{v({inView:e,entry:t}),f.current&&f.current(e,t),t.isIntersecting&&o&&r&&(r(),r=void 0)}),{root:i,rootMargin:a,threshold:e,trackVisibility:n,delay:t},d),()=>{r&&r()}}),[Array.isArray(e)?e.toString():e,p,i,a,o,l,n,d,t]);const y=null==(m=h.entry)?void 0:m.target,b=r.useRef();p||!y||o||l||b.current===y||(b.current=y,v({inView:!!s,entry:void 0}));const E=[g,h.inView,h.entry];return E.ref=E[0],E.inView=E[1],E.entry=E[2],E}r.Component}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[507],{32119:(e,t,n)=>{n.d(t,{G:()=>o});var r=n(32735),a=n(71365);function o(e){var t,n;return t=e,n=a.u.getInstance(t),r.useEffect((function(){return function(){a.u.releaseInstance(t)}})),n}},66122:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(32735);function a(e){return r.createElement("span",{id:"".concat(e.name,"Error"),className:"".concat(e.className," invalid-feedback d-block"),role:"status"},e.children)}},1269:(e,t,n)=>{n.d(t,{n:()=>O,W:()=>S});var r=n(32735),a=n(80247),o=n(50132),i=n(92802),l=n(79014),c=n(1048),s=n(57408),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function m(e){var t=e.label,n=e.checkboxLabelClassName,a=e.checkboxLabelFontWeight,i=e.className,l=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return r.createElement(o.Z.Group,{className:"form-group"},r.createElement("div",{className:"form-check ".concat(i||"")},r.createElement(O,Object.assign({className:"form-check-input"},l)),r.createElement(o.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===a?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&r.createElement(r.Fragment,null,r.createElement("span",null," "),r.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var f=n(83914),p=n(83345),d={getCustomFormControlClassName:function(e,t,n,r,a,o){var l="";return l=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(o,r),(0,i.u9)(t,n)&&(0,i.u9)(e,n)&&(l+=" is-invalid"),a&&(l+=" ".concat(a)),l}},b=n(35223);function y(e){var t=(0,i.u6)().values[e.fieldName];return"string"!=typeof t?r.createElement(r.Fragment,null):r.createElement("div",{className:"float-end text-secondary fw-normal"},t.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},C="shared.formField";function O(e){var t,n,o=e.children,s=e.showLoadingSpinner,u=v(e,["children","showLoadingSpinner"]),m=(t=r.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.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)?g(e,t):void 0}}(t,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.")}()),p=m[0],d=m[1],y=l.q.isFunction(o)?function(e){return o(e)}:r.Children.count(o)?o:null;if("password"!==u.type)return s?r.createElement("div",{className:"position-relative"},r.createElement(i.gN,Object.assign({},c.t.omit(u,["formSize"])),y),r.createElement("div",{className:h.spinner},r.createElement(a.Z,{animation:"border",size:"sm"}))):r.createElement(i.gN,Object.assign({},c.t.omit(u,["formSize"])),y);var C="position-relative ".concat(h.passwordContainer);return u.className&&(C+=" ".concat(u.className)),u.disabled&&(C+=" ".concat(h.passwordContainerDisabled)),r.createElement("div",{className:C},r.createElement(i.gN,Object.assign({},c.t.omit(u,["formSize","type","className"]),{type:p,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),y),"password"===u.type&&r.createElement(f.x,{svgName:"password"===p?b.vn.VisibleOn:b.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){d("password"===p?"text":"password")}}))}function S(e){var t=e.label,n=e.className,a=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,g=e.infoText,S=e.formSize,w=e.showOptionalLabel,E=v(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),N=(0,i.u6)(),j=N.errors,x=N.touched,k=function(){};if("checkbox"===E.type){var P=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(P.onChange=k),r.createElement(m,Object.assign({},P))}var T=Object.assign(Object.assign({},E),{className:d.getCustomFormControlClassName(j,x,E.name,S,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(T.onChange=k),r.createElement(o.Z.Group,{className:"form-group"},!!t&&r.createElement(o.Z.Label,{htmlFor:E.id,className:"d-flex align-items-center"},t,l&&r.createElement("span",{className:"text-danger"},"*"),s&&r.createElement(f.x,{className:"svg-container text-secondary ".concat(h.infoTooltip),svgName:b.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),w&&r.createElement("span",{className:"text-secondary"}," ",r.createElement(p.x,{namespace:C,phrase:"optional"})),!!a&&!!E.maxLength&&r.createElement("div",{className:"ms-auto"},r.createElement(y,{fieldName:E.name,limit:E.maxLength}))),r.createElement(O,Object.assign({},T,{"aria-errormessage":"".concat(E.name,"Error")})),!!g&&r.createElement(o.Z.Text,{className:"text-secondary"},g),r.createElement(i.Bc,{name:E.name},(function(e){return r.createElement(o.Z.Control.Feedback,{id:"".concat(E.name,"Error"),type:"invalid",role:"status"},e)})))}O.defaultProps={autoComplete:"off"},S.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var r=n(32735),a=n(92802),o=n(79014),i=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,m=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),f=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=i.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(r){t.hasOwnProperty(r)&&(i.t.isObject(n[r])?e(n[r]):null===t[r]&&delete t[r])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return r.createElement(a.J9,Object.assign({enableReinitialize:!0},m,{initialValues:f,onSubmit:function(t,r){var a=r.setSubmitting,o=r.resetForm,i=r.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&o(),n.errors)for(var r=0,c=Object.entries(n.errors);r<c.length;r++){var s=(e=c[r],t=2,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,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.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)?l(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.")}()),u=s[0],m=s[1];i(u,m)}a(!1)}))},initialStatus:p}),o.q.isFunction(e.children)?function(t){return e.children(t)}:r.Children.count(e.children)?e.children:null)}function u(){return(0,a.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},4594:(e,t,n)=>{var r;n.d(t,{E:()=>r}),function(e){e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience",e[e.TallPoster=60]="TallPoster",e[e.Classroom=67]="Classroom",e[e.ClassroomGroup=68]="ClassroomGroup",e[e.UserProfile=74]="UserProfile"}(r||(r={}))},78417:(e,t,n)=>{var r;n.d(t,{r:()=>r}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(r||(r={}))},69883:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(79976),a=n(60139),o=n(32119);function i(){var e=(0,o.G)(r.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:a.NK.Warning,heading:a.R6.Warning,message:t})}}}}}]);