1(()=>{(function(){try{var S=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},j=new S.Error().stack;j&&(S._sentryDebugIds=S._sentryDebugIds||{},S._sentryDebugIds[j]="2900d181-f6a6-4c39-aab5-a8564b576d96",S._sentryDebugIdIdentifier="sentry-dbid-2900d181-f6a6-4c39-aab5-a8564b576d96")}catch(g){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[5529],{7825:((S,j,g)=>{g.r(j),g.d(j,{default:()=>ae});var l=g(96540),x=g(68407),q=g(64759),z=function(t,s,e,n){function c(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function p(o){try{f(n.next(o))}catch(u){a(u)}}function O(o){try{f(n.throw(o))}catch(u){a(u)}}function f(o){o.done?i(o.value):c(o.value).then(p,O)}f((n=n.apply(t,s||[])).next())})};const R={timezone:"Z",groupsPerPage:5,itemsPerGroup:5,facet:{}};class H{constructor(s,e){this.http=s,this.timezone=e!=null?e:"Z"}fetchSchedule(s=R){return z(this,void 0,void 0,function*(){const e=`${this.http.baseUrl.replace("api/v2","api/v1")}/view/schedule`,n=Object.assign(Object.assign({},R),s),c=Object.assign(Object.assign({},n),{facet:Object.keys(n.facet).map(a=>`${a}:${n.facet[a]}`),groupsPerPage:n.groupsPerPage.toString(),itemsPerGroup:n.itemsPerGroup.toString()}),{parsedData:i}=yield this.http.get(e,{queryParams:c});return i})}fetchScheduleRow(s,e=R){return z(this,void 0,void 0,function*(){const n=`${this.http.baseUrl.replace("api/v2","api/v1")}/view/schedule/${s}`,c=Object.assign(Object.assign({},R),e),i=Object.assign(Object.assign({},c),{facet:Object.keys(c==null?void 0:c.facet).map(p=>`${p}:${c.facet[p]}`),groupsPerPage:c.groupsPerPage.toString(),itemsPerGroup:c.itemsPerGroup.toString()}),{parsedData:a}=yield this.http.get(n,{queryParams:i});return a})}}var C=function(t,s,e,n){function c(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function p(o){try{f(n.next(o))}catch(u){a(u)}}function O(o){try{f(n.throw(o))}catch(u){a(u)}}function f(o){o.done?i(o.value):c(o.value).then(p,O)}f((n=n.apply(t,s||[])).next())})};const N=()=>({$type:"card",attributes:{type:"vertical",header:[{$type:"image",attributes:{source:"https://dve-images.imggaming.com/original/p/2023/11/22/b9xazSoyPiuA46R0LXYDBSjQ9Nq90Wmg-1700637934498.jpg",width:350,height:197}}],content:[{$type:"textBlock",attributes:{text:"Mon 5th 10:00 AM"},style:{color:"rgba(255,255,255, 0.7)"}},{$type:"textBlock",attributes:{text:"S2 \u2022 The Name of a TV Series that spans three lines so may be truncated",numberOfLines:2},style:{color:"white",size:"1.2"}},{$type:"tagList",attributes:{tags:[{$type:"tag",attributes:{text:{$type:"textBlock",attributes:{text:"Dub Premiere "},style:{size:"0.8",color:"rgba(255,255,255, 0.7)"}},type:"default"}},{$type:"tag",attributes:{text:{$type:"textBlock",attributes:{text:"12 Episodes"},style:{size:"0.8",color:"rgba(255,255,255, 0.7)"}},icon:{$type:"icon",attributes:{icon:"SERIES"}},type:!1}}],separator:!1}},{$type:"textBlock",$zone:"header",attributes:{text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean consequat elit varius volutpat interdum. Quisque hendrerit pellentesque mi, in convallis tellus rutrum vel. Suspendisse id vestibulum tellus. Ut nunc odio, scelerisque eu aliquam ac, fringilla id turpis. Vivamus nisi justo, tempor placerat mattis eget, laoreet sed purus. Morbi dictum nisi vitae arcu sollicitudin consectetur. Quisque faucibus ligula ut ligula tempor, sed tincidunt risus molestie. Aliquam erat volutpat. Sed id pharetra nisl.",numberOfLines:2},style:{size:"0.8",color:"rgba(255,255,255, 0.7)"}}],groupingData:{scheduledAt:"{{scheduledAt}}",releaseState:"{{releaseState}}",computedState:"{{computedReleaseState}}",releaseType:"{{releaseType}}",description:"{{{description}}}",startTime:"{{startTime}}",endTime:"{{endTime}}"},action:{type:"route",data:{type:"{{type}}",title:"{{{title}}}",id:"{{id}}"}}}}),E=(t,s=4)=>{const e=[];for(let n=0;n<s;n++)e.push(N());return[{$type:"textBlock",attributes:{text:t},style:{color:"white",size:1.4}},{$type:"cardList",$zone:"header",attributes:{title:{$type:"textBlock",attributes:{text:"{{id}}"}},type:"horizontal",cards:e,actions:{next:{type:"GROUP_CARDLIST_PAGE_NEXT",data:{text:"Load More from Group",url:"https://dce-frontoffice-{{env}}.imggaming.com/api/v1/view/schedule/{{id}}?{{#facetsRequested}}facet={{.}}&{{/facetsRequested}}lastSeen={{lastSeen}}"}}}}}]},P=(t,s,e)=>
1[{$type:"gridBlock",$zone:"header",attributes:{elements:[{$type:"button",attributes:{type:"icon-primary",icon:{$type:"icon",attributes:{icon:"ARROWLEFT",size:14}},action:{type:"FETCH_VIEW",data:{from:s}}},style:{size:"1.5"}},{$type:"textBlock",attributes:{text:t},style:{color:"white",size:1}},{$type:"button",attributes:{type:"icon-secondary",icon:{$type:"icon",attributes:{icon:"ARROWRIGHT",size:14}},action:{type:"FETCH_VIEW",data:{from:e}}},style:{size:"1.5"}}]}}],T={elements:[...P("1st - 7th Aug","2024-07-23","2024-08-08"),{$type:"groupList",$zone:"A",attributes:{groups:[...E("Monday 1st August",3),...E("Tuesday 2nd August",4)],actions:{next:{type:"GROUP_PAGE_NEXT",data:{text:"Load More Groups",url:"https://dce-frontoffice-{{env}}.imggaming.com/api/v1/view/schedule?{{#facetsRequested}}facet={{.}}&{{/facetsRequested}}lastSeen={{lastSeen}}"}}}}}]},W={elements:[...P("8st - 14th Aug","2024-08-01",null),{$type:"groupList",$zone:"A",attributes:{groups:[...E("Monday 8th August",10),...E("Tuesday 9th August",4)],actions:{next:{type:"GROUP_PAGE_NEXT",data:{text:"Load More Groups",url:"https://dce-frontoffice-{{env}}.imggaming.com/api/v1/view/schedule?{{#facetsRequested}}facet={{.}}&{{/facetsRequested}}lastSeen={{lastSeen}}"}}}}}]},B={elements:[...P("23rd - 31st July",null,"2024-08-01"),{$type:"groupList",$zone:"A",attributes:{groups:[...E("Monday 23rd July",1),...E("Tuesday 24th July",2)],actions:{next:{type:"GROUP_PAGE_NEXT",data:{text:"Load More Groups",url:"https://dce-frontoffice-{{env}}.imggaming.com/api/v1/view/schedule?{{#facetsRequested}}facet={{.}}&{{/facetsRequested}}lastSeen={{lastSeen}}"}}}}}]},D={default:T,"2024-08-08":W,"2024-07-23":B};class re{constructor(){this.timezone="Z"}fetchSchedule(s){return C(this,void 0,void 0,function*(){const e=T;return s.from&&D[s.from]?D[s.from]:e})}fetchScheduleRow(){return C(this,void 0,void 0,function*(){return T})}}var v=function(t,s,e,n){function c(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function p(o){try{f(n.next(o))}catch(u){a(u)}}function O(o){try{f(n.throw(o))}catch(u){a(u)}}function f(o){o.done?i(o.value):c(o.value).then(p,O)}f((n=n.apply(t,s||[])).next())})};const F=t=>t.toISOString().split(".")[0],V=t=>t.endsWith("Z")?t:`${t}Z`,k=(t,s={})=>{const[e,n]=l.useState(new Date),[c,i]=l.useState(!1),[a,p]=l.useState(!1),[O,f]=l.useState(!1),[o,u]=l.useState({elements:[]}),A=l.useRef({}),L=l.useRef(new Date),U=l.useMemo(()=>({FETCH_VIEW:d=>v(void 0,void 0,void 0,function*(){if(d!=null&&d.from){const r=new Date(V(d.from));e.getTime()!==r.getTime()&&i(!0),n(r),L.current=r}p(!0);try{const r=yield t.fetchSchedule(Object.assign(Object.assign(Object.assign({},s),{timezone:t.timezone,facet:A.current}),d));u(r)}catch(r){console.warn("Failed to fetch Schedule view",r)}p(!1),i(!1)}),FETCH_VIEW_NEXT:({lastSeen:d})=>v(void 0,void 0,void 0,function*(){f(!0);try{const r=yield t.fetchSchedule(Object.assign(Object.assign({},s),{lastSeen:d,timezone:t.timezone}));u(w=>{const h=r.elements.find(b=>b.$type==="groupList");if(!h)return Object.assign(Object.assign({},w),r);const m=w.elements.map(b=>{if(b.$type!=="groupList")return b;const y={groups:[...b.attributes.groups,...h.attributes.groups]};return h.attributes.actions&&(y.actions=h.attributes.actions),Object.assign(Object.assign({},b),{attributes:y})});return Object.assign(Object.assign({},w),{elements:m})})}catch(r){console.warn("Failed to fetch next page for Schedule view",r)}f(!1)}),FETCH_ROW:({groupId:d})=>v(void 0,void 0,void 0,function*(){const r=yield t.fetchScheduleRow(d,Object.assign(Object.assign({},s),{timezone:t.timezone}));u(r)}),FETCH_ROW_NEXT:({groupId:d,lastSeen:r})=>v(void 0,void 0,void 0,function*(){const w=yield t.fetchScheduleRow(d,Object.assign(Object.assign({},s),{lastSeen:r,timezone:t.timezone}));u(h=>{const m=w.elements[0];if(!m||!m.id)return Object.assign(Object.assign({},h),{elements:[...h.elements,...w.elements]});const b=h.elements.map(y=>{if(y.$type!=="groupList")return y;const ce=y.attributes.groups.map($=>{if($.id!==m.id)return $;const M=Object.assign(Object.assign(Object.assign({},$.attributes),m.attributes),{cards:[...$.attributes.cards,...m.attributes.cards]});return m.attributes.actions||delete M.actions,Object.assign(Object.assign({},$),{attributes:M})});return Object.assign(Object.assign({},y),{attributes:Object.assign(Object.assign({},y.attributes),{groups:ce})})});return Object.assign(Object.assign({},h),{elements:b})})}),APPLY_VIEW_FILTER:({facets:d})=>v(void 0,void 0,void 0,function*(){A.current=d||{},i(!0);try{const r=yield t.fetchSchedule(Object.assign(Object.assign({},s),{timezone:t.timezone,facet:d,from:F(L.current)}));u(r)}catch(r){console.warn("Failed to fetch Schedule view",r)}i(!1)}),CLEAR_FILTERS:()=>v(void 0,void 0,void 0,function*(){A.current={},i(!0);try{const d=yield t.fetchSchedule(Object.assign(Object.assign({},s),{timezone:t.timezone,from:F(L.current)}));u(d)}catch(d){console.warn("Failed to fetch Schedule view",d)}i(!1)}),RESET:()=>v(void 0,void 0,void 0,function*(){u({elements:[]}),n(new Date)})}),[t,e,s]);return l.useEffect(()=>{U.FETCH_VIEW()},[]),{actions:U,date:e,state:{isFetching:c?!1:a,isFetchingNext:O,isUpdating:c},view:o}};var X=g(975),Z=g(16505),Q=g(48118),G=g(22296);const J={groupsPerPage:7,itemsPerGroup:7};var K=Object.defineProperty,Y=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,_=(t,s,e)=>s in t?K(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,ie=(t,s)=>{for(var e in s||(s={}))te.call(s,e)&&_(t,e,s[e]);if(I)for(var e of I(s))se.call(s,e)&&_(t,e,s[e]);return t},ne=(t,s)=>Y(t,ee(s));const oe=()=>{const t=(0,l.useRef)(new H(Z.LV,G.OG)),s={cardsGap:10,readCardWidthFromCss:!0},{view:e,actions:n,date:c,state:i}=k(t.current,ne(ie({},J),{timezone:G.OG})),a=!e||(e==null?void 0:e.isFetching);return a?l.createElement(q.a,{useRealmColor:!0}):l.createElement(X.IQ,{type:x.qi.SCHEDULE,view:e,id:x.qi.SCHEDULE,date:c,isFetching:i.isFetching||i.isUpdating,is
1FetchingNext:i.isFetchingNext,isUpdating:i.isUpdating,error:null,isLoading:a},l.createElement(Q.AC,{type:x.qi.SCHEDULE,id:x.qi.SCHEDULE,themeOptions:s,handlersOverride:n}))},ae=()=>l.createElement(oe,null)})}]);})(); 2 3//# sourceMappingURL=composed-schedule-page.1b9d127f08ad4f355fa1.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.