-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-news-js-33ab50c62ed855c6dfce.js
2 lines (2 loc) · 14.6 KB
/
component---src-pages-news-js-33ab50c62ed855c6dfce.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{"0mN4":function(e,t,a){"use strict";a("OGtf")("fixed",(function(e){return function(){return e(this,"tt","","")}}))},As0B:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a("k1TG"),r=a("q1tI"),o=a.n(r),l=a("HR5l");function i(e,t){var a=o.a.memo(o.a.forwardRef((function(t,a){return o.a.createElement(l.a,Object(n.a)({},t,{ref:a}),e)})));return a.muiName=l.a.muiName,a}},FJi0:function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),r=a.n(n),o=a("9kay"),l=a("7t3Y"),i=a("7xaS"),c=a("ofer"),s=a("hlie"),d=a("6shs"),u=a("efpO"),f=a("yDJ3"),m=a.n(f),p=(a("rGqo"),a("yt8O"),a("Btvt"),a("RW0V"),a("f3/d"),a("91GP"),a("bXiM")),b=a("dfam"),v=a("JrkS"),h=a("hlFM"),g=a("vOnD");var w=Object(g.e)((function(e){var t=e.children,a=e.value,n=e.index,o=function(e,t){if(null==e)return{};var a,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)a=o[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,["children","value","index"]);return r.a.createElement(c.a,Object.assign({component:"div",role:"tabpanel",hidden:a!==n,id:"simple-tabpanel-"+n,"aria-labelledby":"simple-tab-"+n},o),a===n&&r.a.createElement(h.a,null,t))})).withConfig({displayName:"SimpleTabs__UnstyledTabPanel",componentId:"sc-1rvyoe4-0"})(["padding:16px 0 16px;"]),x=Object(g.e)(p.a).withConfig({displayName:"SimpleTabs__UnstyledAppBar",componentId:"sc-1rvyoe4-1"})(["background:transparent;box-shadow:none;button{text-transform:inherit;}"]);function y(e){var t=e.tabs,a=e.onTabChange,n=r.a.useState(0),o=n[0],l=n[1];return r.a.createElement(r.a.Fragment,null,r.a.createElement(x,{position:"static"},r.a.createElement(b.a,{value:o,onChange:function(e,t){l(t)},"aria-label":"simple tabs example",variant:"fullWidth",indicatorColor:"primary",textColor:"primary"},t.map((function(e,t){return r.a.createElement(v.a,Object.assign({onClick:function(t){return a(e.name)},key:t,label:e.title},{id:"simple-tab-"+(n=0),"aria-controls":"simple-tabpanel-"+n}));var n})))),t.map((function(e,t){return r.a.createElement(w,{key:t,value:o,index:t},e.content)})))}var O=a("Kfvu"),E=a("UPbg");a.d(t,"GoogleNewsQuery",(function(){return C}));var j=function(e){var t=e.node,a=e.i18n;return r.a.createElement(d.a,null,r.a.createElement("a",{href:Object(u.b)(a,t,"link"),rel:"noopener noreferrer",target:"_blank"},r.a.createElement(c.a,{variant:"body2",color:"textPrimary"},t.date),r.a.createElement(c.a,{variant:"h6",color:"textPrimary"},Object(u.b)(a,t,"title"))))},C=(t.default=function(e){var t=e.data,a=Object(o.b)(),n=a.i18n,d=a.t,u=t.allGovNews.edges.map((function(e){return e.node})),f=[{name:"gov_news",title:d("gov_news.title"),content:r.a.createElement(r.a.Fragment,null,r.a.createElement(c.a,{variant:"h2"},d("gov_news.title")),r.a.createElement(c.a,{variant:"body2"},r.a.createElement(s.a,{href:d("gov_news.url"),target:"_blank"},d("gov_news.source"))),r.a.createElement(c.a,{variant:"body2"},d("waiting_time.last_updated"),m()(u,"[0].date","")),r.a.createElement(E.a,null,u.map((function(e,t){return r.a.createElement(j,{key:t,node:e,i18n:n})}))))}];return r.a.createElement(i.a,null,r.a.createElement(l.a,{title:"NewsPage"}),r.a.createElement(y,{tabs:f,onTabChange:function(e){Object(O.trackCustomEvent)({category:"news",action:"tab_select",label:e})}}))},"3185561527")},JrkS:function(e,t,a){"use strict";var n=a("aXB2"),r=a("FqMR"),o=a("k1TG"),l=a("q1tI"),i=a.n(l),c=(a("17x9"),a("iuhU")),s=a("H2TA"),d=a("VD++"),u=a("NqtD"),f=i.a.forwardRef((function(e,t){var a=e.classes,r=e.className,l=e.disabled,s=void 0!==l&&l,f=e.disableFocusRipple,m=void 0!==f&&f,p=e.fullWidth,b=e.icon,v=e.indicator,h=e.label,g=e.onChange,w=e.onClick,x=e.selected,y=e.textColor,O=void 0===y?"inherit":y,E=e.value,j=e.wrapped,C=void 0!==j&&j,N=Object(n.a)(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","selected","textColor","value","wrapped"]);return i.a.createElement(d.a,Object(o.a)({focusRipple:!m,className:Object(c.a)(a.root,a["textColor".concat(Object(u.a)(O))],r,s&&a.disabled,x&&a.selected,h&&b&&a.labelIcon,p&&a.fullWidth,C&&a.wrapped),ref:t,role:"tab","aria-selected":x,disabled:s,onClick:function(e){g&&g(e,E),w&&w(e)}},N),i.a.createElement("span",{className:a.wrapper},b,h),v)}));t.a=Object(s.a)((function(e){var t;return{root:Object(o.a)({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},Object(r.a)(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),Object(r.a)(t,"overflow","hidden"),Object(r.a)(t,"whiteSpace","normal"),Object(r.a)(t,"textAlign","center"),Object(r.a)(t,e.breakpoints.up("sm"),{minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(f)},UPbg:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var n=a("vOnD"),r=a("AaR6"),o=n.e.div.withConfig({displayName:"ResponsiveWrapper",componentId:"a62aj7-0"})(["display:flex;flex-direction:column;",'{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;margin:0 -8px;> [class*="Stepper"]{flex:1 0 100%;}> [class*="Card"]{flex:0 0 calc(50% - 16px);margin-left:8px;margin-right:8px;}}','{> [class*="Card"]{flex:0 0 calc(33.3% - 16px);margin-left:8px;margin-right:8px;}}'],r.b.up("md"),r.b.up("lg"))},dfam:function(e,t,a){"use strict";a("0mN4"),a("bWfx"),a("HEwt"),a("rGqo"),a("yt8O"),a("Btvt"),a("XfO3"),a("9AAn");var n,r=a("k1TG"),o=a("aXB2"),l=a("FqMR"),i=a("q1tI"),c=a.n(i),s=(a("TOwV"),a("17x9"),a("iuhU")),d=a("l3Wi"),u=a("g+pH"),f=(a("xfY5"),!("undefined"==typeof window||!window.document||!window.document.createElement));function m(){if(n)return n;if(!f||!window.document.body)return"indeterminate";var e=window.document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),n="reverse",e.scrollLeft>0?n="default":(e.scrollLeft=1,0===e.scrollLeft&&(n="negative")),document.body.removeChild(e),n}function p(e,t){var a=e.scrollLeft;if("rtl"!==t)return a;var n=m();if("indeterminate"===n)return Number.NaN;switch(n){case"negative":return e.scrollWidth-e.clientWidth+a;case"reverse":return e.scrollWidth-e.clientWidth-a}return a}function b(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var v={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function h(e){var t=e.onChange,a=Object(o.a)(e,["onChange"]),n=c.a.useRef(),l=c.a.useRef(null),i=function(){n.current=l.current.offsetHeight-l.current.clientHeight};return c.a.useEffect((function(){var e=Object(d.a)((function(){var e=n.current;i(),e!==n.current&&t(n.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),c.a.useEffect((function(){i(),t(n.current)}),[t]),c.a.createElement("div",Object(r.a)({style:v,ref:l},a))}var g=a("H2TA"),w=a("NqtD"),x=c.a.forwardRef((function(e,t){var a=e.classes,n=e.className,l=e.color,i=e.orientation,d=Object(o.a)(e,["classes","className","color","orientation"]);return c.a.createElement("span",Object(r.a)({className:Object(s.a)(a.root,a["color".concat(Object(w.a)(l))],n,{vertical:a.vertical}[i]),ref:t},d))})),y=Object(g.a)((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(x),O=a("As0B"),E=Object(O.a)(c.a.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),j=Object(O.a)(c.a.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),C=a("VD++"),N=c.a.createElement(E,{fontSize:"small"}),k=c.a.createElement(j,{fontSize:"small"}),S=c.a.forwardRef((function(e,t){var a=e.classes,n=e.className,l=e.direction,i=e.orientation,d=e.visible,u=Object(o.a)(e,["classes","className","direction","orientation","visible"]),f=Object(s.a)(a.root,n,{vertical:a.vertical}[i]);return d?c.a.createElement(C.a,Object(r.a)({component:"div",className:f,ref:t,role:null,tabIndex:null},u),"left"===l?N:k):c.a.createElement("div",{className:f})})),B=Object(g.a)({root:{width:40,flexShrink:0},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}}},{name:"PrivateTabScrollButton"})(S),W=a("Ovef"),T=a("tr08"),R=c.a.forwardRef((function(e,t){var a=e.action,n=e.centered,i=void 0!==n&&n,f=e.children,v=e.classes,g=e.className,w=e.component,x=void 0===w?"div":w,O=e.indicatorColor,E=void 0===O?"secondary":O,j=e.onChange,C=e.orientation,N=void 0===C?"horizontal":C,k=e.ScrollButtonComponent,S=void 0===k?B:k,R=e.scrollButtons,M=void 0===R?"auto":R,I=e.TabIndicatorProps,L=void 0===I?{}:I,z=e.textColor,A=void 0===z?"inherit":z,H=e.value,P=e.variant,D=void 0===P?"standard":P,_=Object(o.a)(e,["action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","TabIndicatorProps","textColor","value","variant"]),q=Object(T.a)(),F="scrollable"===D,G="rtl"===q.direction,V="vertical"===N,$=V?"scrollTop":"scrollLeft",J=V?"top":"left",U=V?"bottom":"right",X=V?"clientHeight":"clientWidth",K=V?"height":"width";var Y=c.a.useState(!1),Q=Y[0],Z=Y[1],ee=c.a.useState({}),te=ee[0],ae=ee[1],ne=c.a.useState({start:!1,end:!1}),re=ne[0],oe=ne[1],le=c.a.useState({overflow:"hidden",marginBottom:null}),ie=le[0],ce=le[1],se=new Map,de=c.a.useRef(null),ue=c.a.useRef(null),fe=function(){var e,t,a=de.current;if(a){var n=a.getBoundingClientRect();e={clientWidth:a.clientWidth,scrollLeft:a.scrollLeft,scrollTop:a.scrollTop,scrollLeftNormalized:p(a,q.direction),scrollWidth:a.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(a&&!1!==H){var r=ue.current.children;if(r.length>0){var o=r[se.get(H)];0,t=o?o.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},me=Object(W.a)((function(){var e,t=fe(),a=t.tabsMeta,n=t.tabMeta,r=0;if(n&&a)if(V)r=n.top-a.top+a.scrollTop;else{var o=G?a.scrollLeftNormalized+a.clientWidth-a.scrollWidth:a.scrollLeft;r=n.left-a.left+o}var i=(e={},Object(l.a)(e,J,r),Object(l.a)(e,K,n?n[K]:0),e);if(isNaN(te[J])||isNaN(te[K]))ae(i);else{var c=Math.abs(te[J]-i[J]),s=Math.abs(te[K]-i[K]);(c>=1||s>=1)&&ae(i)}})),pe=function(e){!function(e,t,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},o=n.ease,l=void 0===o?b:o,i=n.duration,c=void 0===i?300:i,s=null,d=t[e],u=!1,f=function(){u=!0};d===a?r(new Error("Element already at target position")):requestAnimationFrame((function n(o){if(u)r(new Error("Animation cancelled"));else{null===s&&(s=o);var i=Math.min(1,(o-s)/c);t[e]=l(i)*(a-d)+d,i>=1?requestAnimationFrame((function(){r(null)})):requestAnimationFrame(n)}}))}($,de.current,e)},be=function(e){var t=de.current[$];V?t+=e:(t+=e*(G?-1:1),t*=G&&"reverse"===m()?-1:1),pe(t)},ve=function(){be(-de.current[X])},he=function(){be(de.current[X])},ge=c.a.useCallback((function(e){ce({overflow:null,marginBottom:-e})}),[]),we=Object(W.a)((function(){var e=fe(),t=e.tabsMeta,a=e.tabMeta;if(a&&t)if(a[J]<t[J]){var n=t[$]+(a[J]-t[J]);pe(n)}else if(a[U]>t[U]){var r=t[$]+(a[U]-t[U]);pe(r)}})),xe=Object(W.a)((function(){if(F&&"off"!==M){var e,t,a=de.current,n=a.scrollTop,r=a.scrollHeight,o=a.clientHeight,l=a.scrollWidth,i=a.clientWidth;if(V)e=n>1,t=n<r-o-1;else{var c=p(de.current,q.direction);e=G?c<l-i-1:c>1,t=G?c>1:c<l-i-1}e===re.start&&t===re.end||oe({start:e,end:t})}}));c.a.useEffect((function(){var e=Object(d.a)((function(){me(),xe()})),t=Object(u.a)(de.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[me,xe]);var ye=c.a.useCallback(Object(d.a)((function(){xe()})));c.a.useEffect((function(){return function(){ye.clear()}}),[ye]),c.a.useEffect((function(){Z(!0)}),[]),c.a.useEffect((function(){me(),xe()})),c.a.useEffect((function(){we()}),[we,te]),c.a.useImperativeHandle(a,(function(){return{updateIndicator:me,updateScrollButtons:xe}}),[me,xe]);var Oe=c.a.createElement(y,Object(r.a)({className:v.indicator,orientation:N,color:E},L,{style:Object(r.a)({},te,{},L.style)})),Ee=0,je=c.a.Children.map(f,(function(e){if(!c.a.isValidElement(e))return null;var t=void 0===e.props.value?Ee:e.props.value;se.set(t,Ee);var a=t===H;return Ee+=1,c.a.cloneElement(e,{fullWidth:"fullWidth"===D,indicator:a&&!Q&&Oe,selected:a,onChange:j,textColor:A,value:t})})),Ce=function(){var e={};e.scrollbarSizeListener=F?c.a.createElement(h,{className:v.scrollable,onChange:ge}):null;var t=re.start||re.end,a=F&&("auto"===M&&t||"desktop"===M||"on"===M);return e.scrollButtonStart=a?c.a.createElement(S,{orientation:N,direction:G?"right":"left",onClick:ve,visible:re.start,className:Object(s.a)(v.scrollButtons,"on"!==M&&v.scrollButtonsDesktop)}):null,e.scrollButtonEnd=a?c.a.createElement(S,{orientation:N,direction:G?"left":"right",onClick:he,visible:re.end,className:Object(s.a)(v.scrollButtons,"on"!==M&&v.scrollButtonsDesktop)}):null,e}();return c.a.createElement(x,Object(r.a)({className:Object(s.a)(v.root,g,V&&v.vertical),ref:t},_),Ce.scrollButtonStart,Ce.scrollbarSizeListener,c.a.createElement("div",{className:Object(s.a)(v.scroller,F?v.scrollable:v.fixed),style:ie,ref:de,onScroll:ye},c.a.createElement("div",{className:Object(s.a)(v.flexContainer,V&&v.flexContainerVertical,i&&!F&&v.centered),ref:ue,role:"tablist"},je),Q&&Oe),Ce.scrollButtonEnd)}));t.a=Object(g.a)((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:Object(l.a)({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(R)}}]);
//# sourceMappingURL=component---src-pages-news-js-33ab50c62ed855c6dfce.js.map