1"use strict";(self.webpackChunkmysports_web=self.webpackChunkmysports_web||[]).push([[907],{20907:function(e,n,t){t.r(n),t.d(n,{default:function(){return q}});var r=t(85608),o=t(31085),i=t(3838),a=t(48832),l=t(23495),s=t(36889),d=t(26802),c=t(99643),u=t(12582),h=t(48444),m=t(69565),p=t(74184),g=t(97793),b=t(81165),x=t(35286),w=t(9023),f=t(46951);function j(e){var n="https://www.youtube.com/embed/",t=e.match(/youtu\.be\/(.+)/i),r=e.match(/youtube\.\w+\/watch\?v=(.+)/i);return t?"".concat(n).concat(t[1]):r?"".concat(n).concat(r[1]):e}var y,v,k,_,C,N,A,S,I,P=(0,l.Ay)(s.PE).withConfig({displayName:"NewsBox",componentId:"-wzo117"})(k||(k=(0,r.__makeTemplateObject)(["\n background: ",";\n\n ",";\n"],["\n background: ",";\n\n ",";\n"])),(0,s.oU)("backgroundColor2"),(function(e){return e.mobile?(0,l.AH)(y||(y=(0,r.__makeTemplateObject)(["\n border-bottom: 1px solid ",";\n "],["\n border-bottom: 1px solid ",";\n "])),(0,s.oU)("hrColor")):(0,l.AH)(v||(v=(0,r.__makeTemplateOb
1ject)(["\n box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);\n border-radius: ",";\n "],["\n box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);\n border-radius: ",";\n "])),(0,s.Nb)("large"))})),T=l.Ay.img.withConfig({displayName:"MediaImg",componentId:"-13sbj2x"})(_||(_=(0,r.__makeTemplateObject)(["\n max-width: 100%;\n"],["\n max-width: 100%;\n"]))),U=(0,l.Ay)(s.QR).withConfig({displayName:"StudioCopy",componentId:"-1f0mibd"})(C||(C=(0,r.__makeTemplateObject)(["\n flex: 1;\n min-height: 19px;\n"],["\n flex: 1;\n min-height: 19px;\n"]))),O=(0,l.Ay)(s.oz).withConfig({displayName:"NewsMarkdown",componentId:"-1o8lq5l"})(N||(N=(0,r.__makeTemplateObject)(["\n > h1,\n h2,\n h3,\n h4,\n h5 {\n font-size: revert;\n font-weight: revert;\n }\n\n > p {\n margin: revert;\n }\n\n > ol,\n ul {\n list-style: revert;\n margin: revert;\n padding: revert;\n }\n"],["\n > h1,\n h2,\n h3,\n h4,\n h5 {\n font-size: revert;\n font-weight: revert;\n }\n\n > p {\n margin: revert;\n }\n\n > ol,\n ul {\n list-style: revert;\n margin: revert;\n padding: revert;\n }\n"]))),z=(0,i.PA)((function(e){var n=e.item,t=(0,x.g)(p.F).formatDate,r=(0,x.g)(c.t).mobile,i=(0,x.g)(d.j).isWhitelabel?"textColor":"coolgrey",a=n.publishDate>w.Ip.now((0,h.q4)()).subDays(1);return(0,o.jsxs)(P,{mobile:r,between:"32",padding:"16",stretch:!0,stack:!0,children:[(0,o.jsxs)(s.PE,{stack:!0,between:"16",stretch:!0,children:[(0,o.jsxs)(s.PE,{vAlign:"center",hAlign:"space-between",stretch:!0,children:[(0,o.jsx)(U,{extent:"L",color:i,whiteSpace:"nowrap",children:e.studio}),(0,o.jsx)(s.QR,{color:i,extent:"L",weight:a?"bold":"regular",whiteSpace:"nowrap",children:t(n.publishDate)})]}),(0,o.jsx)(s.H3,{color:"textColor",whiteSpace:"nowrap",children:n.title}),(0,o.jsx)(s.QR,{whiteSpace:"pre",color:"textColor",lineHeight:"broad",children:(0,o.jsx)(O,{children:n.message})})]}),(0,o.jsx)(D,{imageUrl:n.imageUrl,link:n.mediaLink})]})})),D=(0,i.PA)((function(e){var n,t=(0,x.g)(c.t).mobile;return e.link&&(n=e.link,/youtu\.?be/i.test(n))?(0,o.jsx)("iframe",{width:t?"100%":560,height:"315",title:(0,f.U)(f.t.youtube),src:j(e.link),frameBorder:0,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):e.imageUrl?(0,o.jsx)(T,(0,r.__assign)({src:e.imageUrl.url},(0,f.rg)(f.yt.img,f.t.photo))):null})),E=l.Ay.div.withConfig({displayName:"StudioWrapper",componentId:"-1a4gzwb"}
1)(A||(A=(0,r.__makeTemplateObject)(["\n flex: ",";\n"],["\n flex: ",";\n"])),(function(e){return e.mobile?"1":"0 0 360px"})),M=(0,l.Ay)(s.PE).withConfig({displayName:"StudioContainer",componentId:"-1q2jhg3"})(S||(S=(0,r.__makeTemplateObject)(["\n border-radius: ",";\n overflow: hidden;\n box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);\n background: ",";\n"],["\n border-radius: ",";\n overflow: hidden;\n box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);\n background: ",";\n"])),(function(e){return e.mobile?0:(0,s.Nb)(10)}),(0,s.oU)("backgroundColor2")),R=l.Ay.div.withConfig({displayName:"FullWidth",componentId:"-pokgiy"})(I||(I=(0,r.__makeTemplateObject)(["\n width: 100%;\n max-width: 840px;\n"],["\n width: 100%;\n max-width: 840px;\n"]))),q=(0,i.PA)((function(){var e=(0,x.g)(p.F).formatMessage,n=(0,x.g)(c.t).mobile,t=(0,x.g)(d.j).clientMlNox,i=(0,x.g)(h.TS).organizationUnitId,l=function(){var e=this,n=(0,x.g)(d.j).clientMlNox,t=(0,x.g)(h.TS).organizationUnitId;return(0,a.useWrapRequest)((function(t){return(0,r.__awaiter)(e,void 0,void 0,(function(){return(0,r.__generator)(this,(function(e){return t?[2,n.NoxPublicStudioNewsController.getNoxStudioNewsList({studioId:t,offset:0,maxResults:10})]:[2,[]]}))}))}),{defaultData:[],deps:[t]})}(),w=(0,a.useWrapRequest)((function(){return t.NoxStudioController.getStudioPublic(i)}),{deps:[]}),f=(0,x.g)(d.j).studio,j=l.loading||w.loading,y=f.match({error:function(e){return(0,o.jsx)("div",{children:(0,o.jsx)(m.K,{errors:[e]})})},fetched:function(e){return(0,o.jsx)(E,{mobile:n,children:(0,o.jsxs)(M,{stack:!0,padding:n?["32",0]:[0,0,"32"],between:"32",mobile:n,children:[(0,o.jsx)(b.g,{studio:e,showContact:n}),!n&&(0,o.jsx)(g.f,{studio:e})]})})}});return(0,o.jsxs)(s.HD,{extent:"1200",children:[(0,o.jsx)(u.p,{}),j?(0,o.jsx)(s.y$,{}):(0,o.jsxs)(s.PE,{stack:n,between:"32",hAlign:"space-between",children:[n&&y,l.match({error:function(e){return(0,o.jsx)("div",{children:(0,o.jsx)(m.K,{errors:[e]})})},empty:function(){return(0,o.jsx)(o.Fragment,{children:e({id:"commons.noentries",defaultMessage:"No entries."})})},fetched:function(e){return(0,o.jsx)(R,{children:(0,o.jsx)(s.PE,{between:n?0:"32",stretch:!0,stack:!0,children:e.map((function(e){var n;return(0,o.jsx)(z,{studio:null===(n=w.$)||void 0===n?void 0:n.name,item:e},e.id)}))})})}}),!n&&y]})]})}))}}]);
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.