-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-whats-new-js-2408e922205a9b65ad56.js
2 lines (2 loc) · 3.81 KB
/
component---src-pages-whats-new-js-2408e922205a9b65ad56.js
1
2
"use strict";(self.webpackChunkopenousd=self.webpackChunkopenousd||[]).push([[287],{64449:function(e,t,a){var n=a(8580),l=a(1022);t.Z=void 0;var i=l(a(67294)),r=(0,n(a(58786)).default)(i.createElement("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");t.Z=r},57300:function(e,t,a){a.r(t),a.d(t,{default:function(){return D}});var n=a(67294),l=a(54038),i=a(81531),r=a(80732),o=a.n(r),c=(a(42473),a(25513)),s=a(99541),m=a(29912),d=a(64455),u=["bsPrefix","active","disabled","className","variant","action","as","onClick"],g={variant:void 0,active:!1,disabled:!1},h=n.forwardRef((function(e,t){var a=e.bsPrefix,r=e.active,c=e.disabled,m=e.className,g=e.variant,h=e.action,f=e.as,p=e.onClick,v=(0,i.Z)(e,u);a=(0,s.vE)(a,"list-group-item");var E=(0,n.useCallback)((function(e){if(c)return e.preventDefault(),void e.stopPropagation();p&&p(e)}),[c,p]);return c&&void 0===v.tabIndex&&(v.tabIndex=-1,v["aria-disabled"]=!0),n.createElement(d.Z,(0,l.Z)({ref:t},v,{as:f||(h?v.href?"a":"button":"div"),onClick:E,className:o()(m,a,r&&"active",c&&"disabled",g&&a+"-"+g,h&&a+"-action")}))}));h.defaultProps=g,h.displayName="ListGroupItem";var f=h,p=["className","bsPrefix","variant","horizontal","as"],v={variant:void 0,horizontal:void 0},E=n.forwardRef((function(e,t){var a,r=(0,c.Ch)(e,{activeKey:"onSelect"}),d=r.className,u=r.bsPrefix,g=r.variant,h=r.horizontal,f=r.as,v=void 0===f?"div":f,E=(0,i.Z)(r,p),N=(0,s.vE)(u,"list-group");return a=h?!0===h?"horizontal":"horizontal-"+h:null,n.createElement(m.Z,(0,l.Z)({ref:t},E,{as:v,className:o()(d,N,g&&N+"-"+g,a&&N+"-"+a)}))}));E.defaultProps=v,E.displayName="ListGroup",E.Item=f;var N,b=E,P=a(33639),C=a(20994),Z=a(7408),k=a(12349),w=a(71394),x=a(65761),L=a(39703),y=a(64449),z=function(e){return n.createElement("div",{className:"mt-4"},n.createElement("h3",null,e.heading),n.createElement("div",null,e.date),n.createElement(L.Link,{to:e.pagePath},n.createElement("img",{src:e.image,alt:e.image_titles,className:"mw-100 pt-3 border"})),n.createElement("div",{className:"pt-3"},e.description),e.pagePath?n.createElement("div",{className:"pt-3"},n.createElement(L.Link,{to:e.pagePath},e.pagePathLinkName," ",n.createElement(y.Z,null))):"")},R=a(18158),A=a(36179),I=function(e,t){return t.reduce((function(e,t){return e&&"undefined"!==e[t]?e[t]:void 0}),e)},_=function(e){return"#"+e.replace(/[\W_]+/g,"-").toLowerCase()},G={renderNode:(N={},N[w.RG.PARAGRAPH]=function(e,t){return t},N)},D=function(e){var t=e.data,a=e.pageContext,l=t.contentfulPage,i=l.title,r=(l.node_locale,t.allContentfulChangelogContent.nodes),o=function(e,t){return new Date(e).toLocaleDateString(a.language,{month:"long",day:"numeric",year:"numeric"})};return n.createElement(R.Z,{pageClassName:"whats-new-page"},n.createElement(A.Z,{title:i}),n.createElement(P.Z,null,n.createElement(C.Z,null,n.createElement(Z.Z,null,n.createElement("h1",null,t.contentfulPage.title))),n.createElement(C.Z,{className:"d-flex bd-highlight"},n.createElement(Z.Z,{md:4,className:"d-none d-sm-block p-2 w-100 bd-highlight",id:"left-dates"},n.createElement(b,{variant:"flush",className:"mt-3"},r.map((function(e,t){return n.createElement(k.rU,{key:t,className:"btn",activeClass:"active",spy:!0,smooth:!0,offset:-150,duration:550,to:_(o(e.date))},n.createElement(b.Item,{action:!0},o(e.date)))})))),n.createElement(Z.Z,{md:8,className:"px-3 flex-shrink-1 bd-highlight",id:"right-content"},r.map((function(e){return n.createElement(k.W_,{name:_(o(e.date)),style:{marginBottom:"80px"}},n.createElement(n.Fragment,null,n.createElement(z,{heading:e.heading,date:o(e.date),description:(0,x.Z)(e.description,G),pagePath:e.pagePath,pagePathLinkName:e.pagePathLinkName,image:e.imageChangelog?"https:"+I(e.imageChangelog,["file","url"]):"",image_title:e.imageChangelog?I(e.imageChangelog,["file","title"]):""})))}))))))}}}]);
//# sourceMappingURL=component---src-pages-whats-new-js-2408e922205a9b65ad56.js.map