(this.webpackJsonpclient=this.webpackJsonpclient||[]).push([[0],{103:function(e,t){t.customStyles={rows:{style:{minHeight:"25px","font-family":"sans-serif","font-size":"14px"}},headCells:{style:{paddingLeft:"2px",paddingRight:"2px","font-family":"sans-serif","font-size":"15px","font-weight":"700"}},cells:{style:{paddingLeft:"3px",paddingRight:"3px"}}}},188:function(e,t,a){},223:function(e,t,a){},303:function(e,t,a){e.exports=a.p+"static/media/openathens.db80449d.png"},309:function(e,t,a){},310:function(e,t,a){},473:function(e,t,a){e.exports=a(938)},678:function(e,t,a){},679:function(e,t,a){},681:function(e,t,a){},727:function(e,t){},729:function(e,t){},765:function(e,t){},766:function(e,t){},772:function(e,t){},833:function(e,t,a){},859:function(e,t,a){e.exports=a.p+"static/media/trip_key_1.78e1dfda.png"},860:function(e,t,a){e.exports=a.p+"static/media/trip_key_2.2bada5dd.png"},861:function(e,t,a){e.exports=a.p+"static/media/trip_key_3.4f6f535f.png"},862:function(e,t,a){e.exports=a.p+"static/media/trip_key_4.1a0df1fa.png"},863:function(e,t,a){e.exports=a.p+"static/media/trip_key_5.a7e8bc79.png"},864:function(e,t,a){e.exports=a.p+"static/media/trip_pyramids_key.639d7b37.png"},865:function(e,t,a){e.exports=a.p+"static/media/trip_key_6.02f92447.png"},866:function(e,t,a){e.exports=a.p+"static/media/trip_key_7.dfed5faf.png"},867:function(e,t,a){e.exports=a.p+"static/media/trip_key_8.6131e3f5.png"},868:function(e,t,a){e.exports=a.p+"static/media/trip_key_9.706dbce8.png"},869:function(e,t,a){e.exports=a.p+"static/media/trip_key_10.aa5f4ad7.png"},870:function(e,t,a){e.exports=a.p+"static/media/trip_key_11.1f38b561.png"},871:function(e,t,a){e.exports=a.p+"static/media/trip_key_12.7136d890.png"},872:function(e,t,a){e.exports=a.p+"static/media/trip_key_13.398adbb0.png"},873:function(e,t,a){e.exports=a.p+"static/media/jackyensen.071d3717.jpg"},874:function(e,t,a){e.exports=a.p+"static/media/igorbrbre.d5a5f47b.jpg"},875:function(e,t,a){},877:function(e,t,a){},878:function(e,t,a){e.exports=a.p+"static/media/users.1ee08397.png"},879:function(e,t,a){e.exports=a.p+"static/media/publications.f975c5f8.png"},880:function(e,t,a){e.exports=a.p+"static/media/settings.72c9ce32.png"},881:function(e,t,a){e.exports=a.p+"static/media/emails.3cacfdf0.png"},938:function(e,t,a){"use strict";a.r(t);a(474),a(484);var n=a(0),l=a.n(n),r=a(42),i=a(965),c=a(456),s=a(457),o=a(470),m=a(458),d=a(471),u=a(967),E=(a(678),a(679),a(4)),f=a.n(E),p=a(10),h=a(1),b=a(959),v=(a(681),a(14)),y=a(29),g=a(2);function O(){return _.apply(this,arguments)}function _(){return(_=Object(p.a)(f.a.mark((function e(){var t=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.length>0&&void 0!==t[0]&&t[0],e.abrupt("return",v.get(g.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/AuthInstitution":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/AuthInstitution",{withCredentials:!0}).then((function(e){return 200===e.status&&(y.set("instution_auth_tokens",e.data),e.data)})).catch((function(e){return console.log("authinstition error",e),!1})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var S=a(948),N=a(55),w=Object(n.createContext)();function k(){return Object(n.useContext)(w)}var C=a(2),T=(a(14),a(29),function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=(a[0],a[1],k()),i=(r.setAuthTokens,r.authTokens,Object(n.useState)(!1)),c=Object(h.a)(i,2);c[0],c[1];return Object(n.useEffect)((function(){document.body.classList.add("homepage")}),[]),l.a.createElement("div",{className:"container homepage-content"},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col col-lg-6 mb-5"},l.a.createElement("div",{className:"card h-100"},l.a.createElement("div",{className:"card-body pt-5 pb-5 p-md-5"},l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 216.28 109"},l.a.createElement("g",null,l.a.createElement("g",null,l.a.createElement("path",{d:"M59.36,14.25V10.79q0-5.58-3.34-5.58H3.34Q0,5.21,0,10.79v3.46q0,5.57,3.34,5.57H21.05v61.9H38.31V19.82H56q3.34,0,3.34-5.57M78.13,26.38q-7.47,0-12.14,8.48a17,17,0,0,1-.39-1.79A17.79,17.79,0,0,0,65.1,31c-.15-.41-.38-.93-.67-1.56a3.23,3.23,0,0,0-1.17-1.4,6.56,6.56,0,0,0-2.95-.44,38.78,38.78,0,0,0-6.74.89q-4.51.9-4.51,2.68a32.78,32.78,0,0,0,.67,4A69.65,69.65,0,0,1,50.4,46.9V81.72H66.88V46.45c2.23-3.71,5.19-5.57,8.91-5.57a11.35,11.35,0,0,1,2.89.45,11.28,11.28,0,0,0,2.34.44c1,0,1.79-1.17,2.45-3.51a22.09,22.09,0,0,0,1-5.86,6.75,6.75,0,0,0-1.4-4.18c-.93-1.22-2.58-1.84-5-1.84m81.25,8q-5.79-8-15-8a17.23,17.23,0,0,0-9,2.34,15.67,15.67,0,0,0-6,6,16.76,16.76,0,0,1-.39-1.68,19.62,19.62,0,0,0-.5-2,14.55,14.55,0,0,0-.67-1.62,3.23,3.23,0,0,0-1.17-1.4,6.53,6.53,0,0,0-3-.44,38.78,38.78,0,0,0-6.74.89q-4.52.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71v57.18h16.48V83a18.85,18.85,0,0,0,11.36,3.46q11.13,0,17.32-8.09t6.18-22.08q0-14-5.79-22M138.11,73.44a15.68,15.68,0,0,1-7.8-2.12V46.45q3.78-6.57,9.13-6.57,9,0,9,16.78T138.11,73.44m-39-68.85H96c-4.46,0-6.68,1.19-6.68,3.57v8.11h16.48V8.16q0-3.57-6.68-3.57m0,22.85H96c-4.46,0-6.68,1.19-6.68,3.57V81.72h16.48V31q0-3.57-6.68-3.57",fill:"#533764",fillRule:"evenodd"}),l.a.createElement("path",{d:"M37.33,82.12v.58q0,3.9-6.36,3.9H27.26q-6.36,0-6.36-3.9v-.58Z",fill:"#63c608",fillRule:"evenodd"}),l.a.createElement("path",{d:"M67.19,82.12v.58q0,3.9-6.66,3.9h-3.1q-6.66,0-6.66-3.9v-.58Z",fill:"#0e6cbb",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,82.12V83c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#00a89d",fillRule:"evenodd"}),l.a.createElement("path",{d:"M130.7,104.65v.9q0,3.45-6.55,3.45h-3.06q-6.56,0-6.55-3.45v-.9Z",fill:"#eec82f",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,16.42v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#ba390d",fillRule:"evenodd"})),l.a.createElement("rect",{x:"146.1",width:"70.18",height:"35.84",rx:"8",fill:"#11b6a8"}),l.a.createElement("path",{d:"M202.11,18.49h-6.65a4.13,4.13,0,0,1,.29-1.27,3.51,3.51,0,0,1,.67-1,3.17,3.17,0,0,1,1-.71,3.37,3.37,0,0,1,1.34-.25,3.32,3.32,0,0,1,1.31.25,3.48,3.48,0,0,1,1,.7,3.26,3.26,0,0,1,.69,1A3.93,3.93,0,0,1,202.11,18.49ZM199,25.63a5.26,5.26,0,0,0,3.27-1A4.56,4.56,0,0,0,204,21.71h-1.88a2.75,2.75,0,0,1-1,1.7,3.27,3.27,0,0,1-2,.56,3.93,3.93,0,0,1-1.64-.31,3.26,3.26,0,0,1-1.14-.84,3.15,3.15,0,0,1-.65-1.21,4.91,4.91,0,0,1-.18-1.44h8.67a9.52,9.52,0,0,0-.19-2.22,6.41,6.41,0,0,0-.85-2.15,5.11,5.11,0,0,0-1.64-1.63,4.79,4.79,0,0,0-2.56-.63,5.29,5.29,0,0,0-2.19.44A5.11,5.11,0,0,0,195,15.24a5.74,5.74,0,0,0-1.13,1.9,6.94,6.94,0,0,0-.41,2.42,9.36,9.36,0,0,0,.4,2.44,5.36,5.36,0,0,0,1,1.93,4.68,4.68,0,0,0,1.71,1.25A5.92,5.92,0,0,0,199,25.63Zm-8.91-7.14h-6.66a4.13,4.13,0,0,1,.29-1.27,3.35,3.35,0,0,1,.68-1,3,3,0,0,1,1-.71,3.61,3.61,0,0,1,2.64,0,3.35,3.35,0,0,1,1,.7,3.26,3.26,0,0,1,.69,1A3.94,3.94,0,0,1,190.09,18.49ZM187,25.63a5.22,5.22,0,0,0,3.27-1,4.56,4.56,0,0,0,1.68-2.93H190a2.66,2.66,0,0,1-1,1.7,3.23,3.23,0,0,1-2,.56,4,4,0,0,1-1.64-.31,3.26,3.26,0,0,1-1.14-.84,3.29,3.29,0,0,1-.65-1.21,4.91,4.91,0,0,1-.18-1.44h8.67a9,9,0,0,0-.19-2.22,6.41,6.41,0,0,0-.85-2.15,5.11,5.11,0,0,0-1.64-1.63,4.76,4.76,0,0,0-2.56-.63,5.21,5.21,0,0,0-2.18.44A5.15,5.15,0,0,0,183,15.24a5.92,5.92,0,0,0-1.13,1.9,6.94,6.94,0,0,0-.4,2.42,9.37,9.37,0,0,0,.39,2.44,5.36,5.36,0,0,0,1,1.93,4.68,4.68,0,0,0,1.71,1.25A6,6,0,0,0,187,25.63Zm-10.14-.25V20.23a7.89,7.89,0,0,1,.22-2,3.89,3.89,0,0,1,.72-1.47,3.11,3.11,0,0,1,1.3-.92,5.52,5.52,0,0,1,1.94-.31v-2a4.25,4.25,0,0,0-2.55.62,5.12,5.12,0,0,0-1.7,2.09h0V13.8h-1.79V25.38Zm-12.26,0V18.06h7.35V16.27h-7.35V11.18H173V9.39h-10.5v16Z",fill:"#fff"}))),l.a.createElement(N.a,null,l.a.createElement("meta",{name:"description",content:"Trip - Evidence-based answers for health professionals | Searching sources such as systematic reviews, clinical guidelines and RCTs"})),l.a.createElement("h2",null,"Trusted Answers"),l.a.createElement("p",null,"A smart, fast tool to find high quality clinical research evidence."),l.a.createElement("ul",null,l.a.createElement("li",null,"Searched over 125,000,000 times"),l.a.createElement("li",null,"Over 70% of clinical questions answered"),l.a.createElement("li",null,"Millions of articles items indexed & uniquely ranked"),l.a.createElement("li",null,"Twenty years of learning & fine tuning")),l.a.createElement(S.a,{to:"/About",className:"btn btn-secondary",title:"About Trip"},"About Trip")))),l.a.createElement("div",{className:"col col-lg-6 mb-5"},l.a.createElement("div",{className:"card h-100"},l.a.createElement("div",{className:"card-body pt-5 pb-5 p-md-5"},l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 216.28 109"},l.a.createElement("g",null,l.a.createElement("path",{d:"M59.36,14.25V10.79q0-5.58-3.34-5.58H3.34Q0,5.21,0,10.79v3.46q0,5.57,3.34,5.57H21.05v61.9H38.31V19.82H56q3.34,0,3.34-5.57M78.13,26.38q-7.47,0-12.14,8.48a17,17,0,0,1-.39-1.79A17.79,17.79,0,0,0,65.1,31c-.15-.41-.38-.93-.67-1.56a3.23,3.23,0,0,0-1.17-1.4,6.56,6.56,0,0,0-2.95-.44,38.78,38.78,0,0,0-6.74.89q-4.51.9-4.51,2.68a32.78,32.78,0,0,0,.67,4A69.65,69.65,0,0,1,50.4,46.9V81.72H66.88V46.45c2.23-3.71,5.19-5.57,8.91-5.57a11.35,11.35,0,0,1,2.89.45,11.28,11.28,0,0,0,2.34.44c1,0,1.79-1.17,2.45-3.51a22.09,22.09,0,0,0,1-5.86,6.75,6.75,0,0,0-1.4-4.18c-.93-1.22-2.58-1.84-5-1.84m81.25,8q-5.79-8-15-8a17.23,17.23,0,0,0-9,2.34,15.67,15.67,0,0,0-6,6,16.76,16.76,0,0,1-.39-1.68,19.62,19.62,0,0,0-.5-2,14.55,14.55,0,0,0-.67-1.62,3.23,3.23,0,0,0-1.17-1.4,6.53,6.53,0,0,0-3-.44,38.78,38.78,0,0,0-6.74.89q-4.52.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71v57.18h16.48V83a18.85,18.85,0,0,0,11.36,3.46q11.13,0,17.32-8.09t6.18-22.08q0-14-5.79-22M138.11,73.44a15.68,15.68,0,0,1-7.8-2.12V46.45q3.78-6.57,9.13-6.57,9,0,9,16.78T138.11,73.44m-39-68.85H96c-4.46,0-6.68,1.19-6.68,3.57v8.11h16.48V8.16q0-3.57-6.68-3.57m0,22.85H96c-4.46,0-6.68,1.19-6.68,3.57V81.72h16.48V31q0-3.57-6.68-3.57",fill:"#533764",fillRule:"evenodd"}),l.a.createElement("path",{d:"M37.33,82.12v.58q0,3.9-6.36,3.9H27.26q-6.36,0-6.36-3.9v-.58Z",fill:"#63c608",fillRule:"evenodd"}),l.a.createElement("path",{d:"M67.19,82.12v.58q0,3.9-6.66,3.9h-3.1q-6.66,0-6.66-3.9v-.58Z",fill:"#0e6cbb",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,82.12V83c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#00a89d",fillRule:"evenodd"}),l.a.createElement("path",{d:"M130.7,104.65v.9q0,3.45-6.55,3.45h-3.06q-6.56,0-6.55-3.45v-.9Z",fill:"#eec82f",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,16.42v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#ba390d",fillRule:"evenodd"}),l.a.createElement("rect",{x:"146.1",width:"70.18",height:"35.84",rx:"8",fill:"#ffe300"}),l.a.createElement("path",{d:"M191.5,24.38A3.37,3.37,0,0,1,189,23.25a3.8,3.8,0,0,1-.77-1.37A5.66,5.66,0,0,1,187.9,20a5.7,5.7,0,0,1,.28-1.87,4,4,0,0,1,.77-1.38,3.41,3.41,0,0,1,1.15-.85,3.52,3.52,0,0,1,2.8,0,3.32,3.32,0,0,1,1.15.85,4.21,4.21,0,0,1,.78,1.38,6.38,6.38,0,0,1,0,3.74,4,4,0,0,1-.78,1.37,3.42,3.42,0,0,1-1.15.84A3.51,3.51,0,0,1,191.5,24.38Zm0,1.66a6.05,6.05,0,0,0,2.43-.46,4.94,4.94,0,0,0,1.76-1.28,5.19,5.19,0,0,0,1.07-1.91,8,8,0,0,0,0-4.76,5.28,5.28,0,0,0-1.07-1.93,5.22,5.22,0,0,0-1.76-1.29,6.49,6.49,0,0,0-4.85,0,5.26,5.26,0,0,0-1.77,1.29,5.59,5.59,0,0,0-1.07,1.93,8,8,0,0,0,0,4.76,5.5,5.5,0,0,0,1.07,1.91,5,5,0,0,0,1.77,1.28A6.11,6.11,0,0,0,191.5,26Zm-10.21-.25V20.64a8.32,8.32,0,0,1,.22-2,3.75,3.75,0,0,1,.72-1.47,3.11,3.11,0,0,1,1.3-.92,5.39,5.39,0,0,1,1.95-.31v-2a4.25,4.25,0,0,0-2.55.63,5.17,5.17,0,0,0-1.71,2.08h0V14.21h-1.79V25.79Zm-9.74-8.33h-4.17V11.59h4.17a3.9,3.9,0,0,1,2.65.75,2.77,2.77,0,0,1,.84,2.18,2.82,2.82,0,0,1-.84,2.2A3.8,3.8,0,0,1,171.55,17.46Zm-4.17,8.33V19.25h4.89A4.88,4.88,0,0,0,175.93,18a4.75,4.75,0,0,0,1.24-3.5A4.7,4.7,0,0,0,175.93,11a5,5,0,0,0-3.66-1.24h-7v16Z"}))),"homepage pro-user"===document.body.className?l.a.createElement("h2",null,"Congratulations you're using Pro"):l.a.createElement("h2",null,"Upgrade to Trip PRO"),l.a.createElement("p",null,"Trip Pro is the most advanced version of Trip it has extra content and functionality, including:"),l.a.createElement("ul",null,l.a.createElement("li",null,"100,000+ extra systematic reviews"),l.a.createElement("li",null,"Medical images and videos"),l.a.createElement("li",null,"Links to millions of full-text articles"),l.a.createElement("li",null,"Export facility to reference management software"),l.a.createElement("li",null,"Advanced search"),l.a.createElement("li",null,"Much more")),!("homepage pro-user"===document.body.className)&&l.a.createElement(S.a,{to:"/Pro",className:"btn btn-warning",title:"Get Pro"},"Get PRO"))))))}),j=a(949),P=a(950),A=a(462),D=a(714),R=a(968),U=a(961),L=a(951),x=a(463),I=a(197),M=(a(29),function(e){var t=k(),a=t.authTokens,n=(t.setAuthTokens,!C.default.isUndefined(e.isPro)&&e.isPro),r=!1;a&&(r=a.loggedin);var i=e.location,c=C.default.isUndefined(i.pathname)?"":i.pathname;return l.a.createElement(j.a,{className:"ml-0 mr-1",style:{zIndex:"2"}},r||n?l.a.createElement("div",{className:"account-sidebar sidebar-sticky col-md-12 d-md-block bg-light sidebar nav"},l.a.createElement("div",{className:"/Inbox"==c?"nav-item active":"nav-item"},l.a.createElement(S.a,{className:"nav-link",to:"/Inbox",eventkey:"inbox","data-rb-event-key":"/Inbox",title:"Latest"},l.a.createElement("i",{className:"fa fa-envelope feather"})," Latest"," ")),l.a.createElement("div",{className:"/History"==c?"nav-item active":"nav-item"},l.a.createElement(S.a,{className:"nav-link",to:"/History",eventkey:"history","data-rb-event-key":"/History",title:"History"},l.a.createElement("i",{className:"fa fa-history feather"})," History")),l.a.createElement("div",{className:"/Bookmarked"==c?"nav-item active":"nav-item"},l.a.createElement(S.a,{className:"nav-link",to:"/Bookmarked",eventkey:"starred","data-rb-event-key":"/Bookmarked",title:"Bookmarked"},l.a.createElement("i",{className:"fa fa-star feather"})," Bookmarked")),l.a.createElement("div",{className:"/Profile"==c?"nav-item active":"nav-item"},l.a.createElement(S.a,{className:"nav-link",to:"/Profile",eventkey:"profile","data-rb-event-key":"/Profile",title:"Edit Profile"},l.a.createElement("i",{className:"fa fa-edit feather"})," Edit Profile")),l.a.createElement("div",{className:"/Subscription"==c?"nav-item active":"nav-item"},l.a.createElement(S.a,{className:"nav-link",to:"/Subscription",eventkey:"subscription","data-rb-event-key":"/Subscription",title:"Upgrade Pro"},n&&"pro-user"===document.body.className?l.a.createElement("span",{className:"user-label"},l.a.createElement("i",{className:"fa fa-dollar feather"})," Renew Pro"):l.a.createElement("span",{className:"pro-label"},l.a.createElement("i",{className:"fa fa-dollar feather"})," Upgrade Pro"))),l.a.createElement("div",{className:"/Changepassword"==c?"nav-item active":"nav-item"},l.a.createElement(S.a,{className:"nav-link",to:"/Changepassword",eventkey:"changepassword","data-rb-event-key":"/Changepassword",title:"Change password"},l.a.createElement("i",{className:"fa fa-asterisk feather"})," Change Password")),l.a.createElement("div",{className:"/Logout"==c?"nav-item active":"nav-item"},l.a.createElement(S.a,{className:"nav-link",to:"/Logout?remember=false",eventkey:"logout","data-rb-event-key":"/Logout",title:"Logout"},l.a.createElement("i",{className:"fa fa-power-off feather"})," Logout"))):"")}),H=a(960),W=a(44),K=a.n(W),V=a(103).customStyles,q=function(e){var t=e.institution,a=e.statsData,n=e.statsDataTotal,r=void 0===n?0:n,i=e.handleClose,c=e.handleInstitutionPageChange,s=e.show;if(!a)return l.a.createElement("div",null,"Processing results...");var o=C.default.isUndefined(a.data)?[]:a.data;return l.a.createElement(H.a,{show:s,onHide:i,animation:!1,size:"xl"},l.a.createElement(U.a,{width:"100%"},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-success"},l.a.createElement("i",{className:"fa fa-book"})," Usage Report -"," ",C.default.isUndefined(t.name)?null:t.name)),l.a.createElement(H.a.Body,null,l.a.createElement(K.a,{striped:!0,customStyles:V,columns:[{name:"Period",selector:"dt",sortable:!1,wrap:!0,maxWidth:"100px"},{name:"Users",selector:"uid",sortable:!0,maxWidth:"600px",wrap:!0},{name:"Sessions",selector:"sid",sortable:!0,maxWidth:"600px",wrap:!0},{name:"Searches",selector:"cid",sortable:!0,maxWidth:"30px",wrap:!0},{name:"Documents",selector:"documents_viewed",sortable:!0,maxWidth:"400px",wrap:!0}],data:o,highlightOnHover:!0,pagination:!0,paginationServer:!0,paginationTotalRows:r,onChangePage:c})),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:i},l.a.createElement("i",{className:"fa fa-times"})," Close"))))},B=a(14),Z=a(29),F=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(!1),u=Object(h.a)(d,2),E=(u[0],u[1]),b=Object(n.useState)(!1),v=Object(h.a)(b,2),y=v[0],g=v[1],O=Object(n.useState)(!1),_=Object(h.a)(O,2),S=_[0],N=_[1],w=Object(n.useState)(""),k=Object(h.a)(w,2),T=k[0],H=k[1],W=Object(n.useState)({}),K=Object(h.a)(W,2),V=K[0],F=K[1],G=Object(n.useState)(!0),Y=Object(h.a)(G,2),z=Y[0],Q=Y[1],$=Object(n.useState)(""),J=Object(h.a)($,2),X=J[0],ee=J[1],te=Object(n.useState)(""),ae=Object(h.a)(te,2),ne=ae[0],le=ae[1],re=Object(n.useState)(""),ie=Object(h.a)(re,2),ce=ie[0],se=ie[1],oe=Object(n.useState)(0),me=Object(h.a)(oe,2),de=me[0],ue=me[1],Ee=Object(n.useState)(""),fe=Object(h.a)(Ee,2),pe=fe[0],he=fe[1],be=Object(n.useState)(0),ve=Object(h.a)(be,2),ye=ve[0],ge=ve[1],Oe=Object(n.useState)(0),_e=Object(h.a)(Oe,2),Se=_e[0],Ne=_e[1],we=Object(n.useState)(""),ke=Object(h.a)(we,2),Ce=ke[0],Te=ke[1],je=Object(n.useState)(""),Pe=Object(h.a)(je,2),Ae=Pe[0],De=Pe[1],Re=Object(n.useState)(""),Ue=Object(h.a)(Re,2),Le=Ue[0],xe=(Ue[1],Object(n.useState)("")),Ie=Object(h.a)(xe,2),Me=Ie[0],He=Ie[1],We=Object(n.useState)(0),Ke=Object(h.a)(We,2),Ve=Ke[0],qe=Ke[1],Be=Object(n.useState)(0),Ze=Object(h.a)(Be,2),Fe=Ze[0],Ge=Ze[1],Ye=Object(n.useState)(""),ze=Object(h.a)(Ye,2),Qe=ze[0],$e=ze[1],Je=Object(n.useState)(""),Xe=Object(h.a)(Je,2),et=Xe[0],tt=Xe[1],at=Object(n.useState)([]),nt=Object(h.a)(at,2),lt=nt[0],rt=nt[1],it=Object(n.useState)(0),ct=Object(h.a)(it,2),st=ct[0],ot=ct[1],mt=Object(n.useState)(!1),dt=Object(h.a)(mt,2),ut=dt[0],Et=dt[1],ft=Object(n.useState)(""),pt=Object(h.a)(ft,2),ht=pt[0],bt=pt[1],vt=Object(n.useState)(1),yt=Object(h.a)(vt,2),gt=(yt[0],yt[1]);function Ot(){return(Ot=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:B.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Auth/getProfileData":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Auth/getProfileData",{withCredentials:!0}).then((function(e){if(200===e.status)F(e.data),Q(!1),_t(e.data),Ge(1);else{new Error(e.message);m(e.message),Ge(0)}})).catch((function(e){C.default.isEmpty(e)||(m(e),Ge(0))}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _t(e){var t=C.default.first(e.user_data);if(t){if(qe(t.user_id),ee(t.firstname),le(t.lastname),se(t.email),ge(C.default.where(e.professions,{value:t.professionid})),ue(C.default.where(e.countries,{value:t.countryid})),!C.default.isEmpty(t.clinicalareaids)){var a=C.default.isEmpty(t.clinicalareaids)?[]:t.clinicalareaids.split(",");he(C.default.chain(a).map((function(t){return C.default.findWhere(e.clinical_areas,{value:parseInt(t,10)})})).value())}C.default.isUndefined(t.institutionids)||Ne(C.default.chain(t.institutionids).map((function(t){return!0===t.institution_admin&&Te(C.default.findWhere(e.institutions,{value:parseInt(t.institution_id,10)})),!0===t.institution_verified&&De(C.default.findWhere(e.institutions,{value:parseInt(t.institution_id,10)})),C.default.findWhere(e.institutions,{value:parseInt(t.institution_id,10)})})).value()),He(t.interests)}}function St(e){return Nt.apply(this,arguments)}function Nt(){return(Nt=Object(p.a)(f.a.mark((function e(t){var a,n=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.length>1&&void 0!==n[1]?n[1]:1,B.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getInstitutionStats":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getInstitutionStats",{params:{page:a,institution_id:t,rows:10},withCredentials:!0}).then((function(e){if(200===e.status)rt(e.data),ot(e.data.total),Et(!0);else{new Error(e.error_message);m(e.error_message),E(!0)}})).catch((function(e){m(e.message),E(!0),Q(!1)}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(n.useEffect)((function(){document.body.classList.remove("homepage"),!C.default.isUndefined(e.isPro)&&e.isPro?document.body.classList.add("pro-user"):document.body.classList.add("free-user"),function(){Ot.apply(this,arguments)}()}),[]);var wt=function(t){var a=t.currentTarget;!1===a.checkValidity()||!1===(C.default.isEmpty(ce)?(H("Missing mandatory field : Email!"),!1):C.default.isEmpty(X)?(H("Missing mandatory field : Firstname"),!1):C.default.isEmpty(ne)?(H("Missing mandatory field : Lastname"),!1):C.default.isEmpty(de)?(H("Missing mandatory field : Country!"),!1):!C.default.isEmpty(ye)||(H("Missing mandatory field : Profession!"),!1))?(t.preventDefault(),t.stopPropagation()):(H(""),B.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Auth/updateProfile":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Auth/updateProfile",{params:{userid:Ve,email:ce,firstname:X,lastname:ne,country:de,clinicalarea:pe,profession:ye,institution:Se,interests:Me,signupcode:Qe}},{withCredentials:!0}).then((function(t){if(200===t.status)if(!0===t.data.status){if(g(!0),N(!1),!C.default.isUndefined(Z.get("tokens"))){var n=C.default.isNull(Z.get("tokens"))||""===Z.get("tokens")?null:JSON.parse(Z.get("tokens"));C.default.isUndefined(t.data.verified_message)||t.data.verified_message>0&&(n.institution_pro=t.data.verified_message),C.default.isUndefined(n.firstname)||(n.firstname=X,n.lastname=ne,Z.set("tokens",JSON.stringify(n)))}"btnContinue"==a.getAttribute("data-source")?window.setTimeout((function(){g(!1),N(!1),e.history.push({pathname:"/Home"})}),2e3):window.setTimeout((function(){g(!1),N(!1),e.history.push({pathname:"/Profile"})}),2e3)}else N(!0)})).catch((function(e){console.log(e)})),t.preventDefault()),i(!0)},kt=[],Ct=[],Tt=[],jt=[];return C.default.isEmpty(V)||(V.user_data?V.user_data:{},kt=V.clinical_areas?V.clinical_areas:[],jt=V.countries?V.countries:[],Ct=V.professions?V.professions:[],Tt=V.institutions?V.institutions:[]),l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(j.a,null),o?l.a.createElement(P.a,{variant:"danger"},"Request Failed. Access Denied!"):l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"},l.a.createElement(M,e)),l.a.createElement(A.a,{md:"6"},z?l.a.createElement("div",{className:"pull-center"},l.a.createElement(D.a,{animation:"border",variant:"success"})):l.a.createElement("div",null,1==Fe?l.a.createElement(R.a,null,l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,{className:"label label-success"},l.a.createElement("h2",null,"Your Profile")," update and save"),l.a.createElement(U.a,{noValidate:!0,validated:r,onSubmit:wt,autoComplete:"Off"},l.a.createElement(U.a.Group,{controlId:"profile.email"},l.a.createElement(U.a.Label,null,"Email address"),l.a.createElement(U.a.Control,{type:"email",value:ce,onChange:function(e){return se(e.target.value)},placeholder:"email e.g. example@example.com",autoComplete:"off",required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"Please provide a correct email")),l.a.createElement(U.a.Group,{controlId:"ctrlfirstname"},l.a.createElement(U.a.Label,null,"Firstname"),l.a.createElement(U.a.Control,{type:"text",placeholder:"Firstname",name:"firstname",value:C.default.isEmpty(X)?"":X,onChange:function(e){return ee(e.target.value)},autoComplete:"off",required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"Please provide a correct firstname")),l.a.createElement(U.a.Group,{controlId:"ctrllastname"},l.a.createElement(U.a.Label,null,"Lastname"),l.a.createElement(U.a.Control,{type:"text",placeholder:"Lastname",name:"lastname",value:C.default.isEmpty(ne)?"":ne,onChange:function(e){return le(e.target.value)},required:!0,autoComplete:"off"}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"Please provide a correct lastname")),l.a.createElement(U.a.Group,{controlId:"exampleForm.ControlSelect1"},l.a.createElement(U.a.Label,null,"Country"),l.a.createElement(I.a,{className:"single-multi-select col-sm-6",classNamePrefix:"select",value:de,onChange:function(e){return ue(e)},isSearchable:!0,name:"countries",options:jt,style:{borderColor:"red"}})),l.a.createElement(U.a.Group,{controlId:"ctrl.clinicalarea"},l.a.createElement(U.a.Label,null,"Clinical Area"),l.a.createElement(I.a,{isMulti:!0,name:"clinicalarea",options:kt,onChange:function(e){return he(e)},value:pe,className:"basic-multi-select",classNamePrefix:"select"})),l.a.createElement(U.a.Group,{controlId:"ctrl.profession"},l.a.createElement(U.a.Label,null,"Profession"),l.a.createElement(I.a,{className:"basic-single col-sm-4",classNamePrefix:"select",onChange:function(e){return ge(e)},isSearchable:!0,name:"profession",value:ye,options:Ct,required:!0})),l.a.createElement(U.a.Group,{controlId:"ctrl.profession"},l.a.createElement(U.a.Label,null,"Institution (Optional): ",l.a.createElement("br",null),"Choose your institution(s) from the drop-down menu below.The system will search your institution as you type. NOTE: this is optional and can be ignored."),l.a.createElement(I.a,{isMulti:!0,name:"institution",options:Tt,onChange:function(e){return Ne(e)},value:Se,className:"basic-multi-select col-sm-6",classNamePrefix:"select"}),Ae?l.a.createElement(U.a.Group,{controlId:"ctrl.signup"},l.a.createElement("br",null),l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-check-circle alert-success"})," ","Verified Institution:"," ")," "," "+Ae.label,Le&&l.a.createElement("div",{className:"mb-2 alert alert-danger"},l.a.createElement("div",null,"Your institution has been verified. You will be redirected to login in order to use the institution Pro access."))):l.a.createElement(U.a.Group,{controlId:"ctrl.signup"},l.a.createElement("br",null),l.a.createElement(U.a.Label,null,"Institution Signup Code (Optional): ",l.a.createElement("br",null)),l.a.createElement(U.a.Control,{type:"text",name:"signupcode",value:Qe,onChange:function(e){return $e(e.target.value)},placeholder:"Signup Code"})),Ce&&l.a.createElement(L.a,null,l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",null,"Institution Admin Report"),l.a.createElement("th",null))),l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,Ce.label),l.a.createElement("td",null,l.a.createElement(x.a,{variant:"info",onClick:function(e){!function(e,t,a){tt(a),bt(t),St(t),Et(!1),e.preventDefault()}(e,Ce.value,Ce.label)},size:"sm"},"Usage Report"," ",l.a.createElement("i",{className:"fa fa-bar-chart"}))))))),l.a.createElement(U.a.Group,{controlId:"ctrl.search"},l.a.createElement(U.a.Label,null,"Automated search ",l.a.createElement("br",null)," Enter search terms of interest below and we'll send you new content, based on these terms, every month. An easy way to keep up to date with new evidence in your area"),l.a.createElement(U.a.Control,{as:"textarea",type:"text",name:"interests",value:C.default.isEmpty(Me)?"":Me,onChange:function(e){return He(e.target.value)},placeholder:"Automated search"})),l.a.createElement(U.a.Group,{controlId:"ctrl.save"},l.a.createElement(x.a,{className:"btn btn-primary btn-lg",onClick:wt,"data-source":"btnContinue"},l.a.createElement("i",{className:"fa fa-search"})," Save and Continue Search"),l.a.createElement(x.a,{type:"submit",className:"btn btn-success btn-lg pull-right","data-source":"btnSave"},l.a.createElement("i",{className:"fa fa-save"})," Save")),l.a.createElement("div",null," ",y?l.a.createElement(P.a,{variant:"success pull-left",dismissible:!0},l.a.createElement("div",null,"Profile Saved Successfully!")):"",T?l.a.createElement("div",{className:"mb-2 alert alert-danger"},l.a.createElement("div",null,T)):""),l.a.createElement("div",null," ",S&&l.a.createElement(P.a,{variant:"danger pull-left",dismissible:!0},l.a.createElement("div",null,"Email already used by another user!")))),l.a.createElement(q,{institution:{institution_id:ht,name:et},statsData:lt,statsDataTotal:st,handleClose:function(){Et(!1),gt(1)},handleInstitutionPageChange:function(e){gt(e),St(ht,e)},show:ut}))):""))))},G=a(14),Y=a.n(G),z=a(104),Q=a(103).customStyles,$=function(e){var t=e.currentPage,a=e.currentPerpage,r=e.currentSort,i=e.currentTotal,c=e.data,s=(e.error,e.errorshow,e.loading),o=e.setData,m=e.setErrors,d=e.setTotal,u=e.setLoading,E=e.setLoggedin,h=e.handlePerRowsChange,b=e.handlePageChange,v=e.handleSearch;function y(){return(y=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Y.a.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/User/getHistory":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/User/getHistory",{params:{page:t,sort:r,rows:a},withCredentials:!0}).then((function(e){if(200===e.status)o(e.data.results),d(e.data.total),u(!1),E(1);else{new Error(e.message);m(e.message),E(1)}})).catch((function(e){C.default.isEmpty(e)||E(1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(n.useEffect)((function(){document.body.classList.remove("homepage"),function(){y.apply(this,arguments)}()}),[t,a,r]);var g=[{name:"Date",selector:"createdAt",sortable:!0,wrap:!0,cell:function(e){return z(e.createdAt,"dd/mm/yyyy H:M:s")}},{name:"Search term",selector:"keywords",sortable:!0,wrap:!0,cell:function(e){return l.a.createElement("div",null,l.a.createElement("a",{href:"!/#",onClick:function(t){v(t,e.criteria)}},e.keywords))}},{name:"Articles Viewed",selector:"documents_viewed",sortable:!1,cell:function(e){return l.a.createElement("div",null,l.a.createElement("div",null,e.documents_viewed?JSON.parse(e.documents_viewed).length:0))}}];return l.a.createElement(K.a,{title:"My Search History",striped:!0,customStyles:Q,columns:g,data:c,progressPending:s,expandableRows:!0,highlightOnHover:!0,expandOnRowClicked:!0,expandableRowsComponent:l.a.createElement((function(e){var t=e.data,a=t.documents_viewed?JSON.parse(t.documents_viewed):[];return l.a.createElement(R.a,{variant:"info",border:"success"},l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,{className:"text text-success"},l.a.createElement("h4",null,"Articles Viewed/Starred")),C.default.isEmpty(a)?l.a.createElement("h5",{className:"text-warning"},"No Articles viewed"):l.a.createElement(j.a,{className:"mt-2"},l.a.createElement(A.a,null,l.a.createElement(L.a,null,l.a.createElement("tbody",null,a.map((function(e,t){return l.a.createElement("tr",{key:t},l.a.createElement("td",null,l.a.createElement("a",{href:"/Document/"+e.document_id,target:"_blank"},e.title?e.title:e.document_id)," ",1==e.activity?l.a.createElement("i",{className:"fa fa-star text-warning"}):""))}))))))))}),null),pagination:!0,paginationServer:!0,paginationTotalRows:i,onChangeRowsPerPage:h,onChangePage:b})},J=(a(14),a(88)),X=function(e){var t=Object(n.useState)(0),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)([]),u=Object(h.a)(d,2),E=u[0],f=u[1],p=Object(n.useState)(!0),b=Object(h.a)(p,2),v=b[0],y=b[1],g=Object(n.useState)(10),O=Object(h.a)(g,2),_=O[0],S=O[1],N=Object(n.useState)(0),w=Object(h.a)(N,2),k=(w[0],w[1]),T=Object(n.useState)(1),D=Object(h.a)(T,2),R=D[0],U=D[1];document.body.classList.remove("homepage"),!C.default.isUndefined(e.isPro)&&e.isPro?document.body.classList.add("pro-user"):document.body.classList.add("free-user");return l.a.createElement("main",{role:"main",className:"main mt-2"},o?l.a.createElement(P.a,{variant:"danger"},"Request Failed.Access Denied!"):l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"},l.a.createElement(M,e)),l.a.createElement(A.a,{md:"9"},l.a.createElement($,{currentPage:R,currentPerpage:_,currentTotal:r,data:E,error:o,loading:v,setData:f,setErrors:m,setLoading:y,setLoggedin:k,setTotal:i,handlePerRowsChange:function(e,t){y(!0),S(e),U(t)},handlePageChange:function(e){y(!0),U(e)},handleSearch:function(t,a){var n=a?"?"+J.stringify(JSON.parse(a)):"";e.history.push({pathname:"/Searchresult",search:n,state:a?JSON.parse(a):""}),t.preventDefault()}}))))},ee=(a(104),a(14)),te=(a(103).customStyles,function(e){var t=Object(n.useState)(0),a=Object(h.a)(t,2),r=(a[0],a[1],Object(n.useState)(!1)),i=Object(h.a)(r,2),c=i[0],s=i[1],o=Object(n.useState)([]),m=Object(h.a)(o,2),d=m[0],u=m[1],E=Object(n.useState)(0),b=Object(h.a)(E,2),v=(b[0],b[1],Object(n.useState)(!0)),y=Object(h.a)(v,2),g=(y[0],y[1]),O=Object(n.useState)(10),_=Object(h.a)(O,2),S=_[0],N=(_[1],Object(n.useState)()),w=Object(h.a)(N,2),k=w[0],T=(w[1],Object(n.useState)([])),D=Object(h.a)(T,2),R=(D[0],D[1],Object(n.useState)(!1)),U=Object(h.a)(R,2),L=(U[0],U[1],Object(n.useState)(0)),x=Object(h.a)(L,2),I=(x[0],x[1]),H=Object(n.useState)(1),W=Object(h.a)(H,2),K=W[0];W[1];function V(){return(V=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ee.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Searchlatest":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Searchlatest",{withCredentials:!0}).then((function(e){if(200===e.status)u(e.data.results),g(!1),I(1);else{new Error(e.message);s(e.message),I(0)}})).catch((function(e){C.default.isEmpty(e)||(s(e),I(0))}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(n.useEffect)((function(){document.title="Latest Articles",function(){V.apply(this,arguments)}()}),[K,S,k]);return l.a.createElement("main",{role:"main",className:"main mt-2"},c?l.a.createElement(P.a,{variant:"danger"},"Request Failed. Access Denied!"):l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"},l.a.createElement(M,e)),l.a.createElement(A.a,{md:"9"},l.a.createElement("div",{dangerouslySetInnerHTML:{__html:d}}))))}),ae=a(104),ne=a(103).customStyles,le=function(e){var t=e.currentPage,a=e.currentPerpage,r=e.currentSort,i=e.currentTotal,c=e.data,s=(e.error,e.errorshow,e.loading),o=e.setData,m=e.setErrors,d=e.setTotal,u=e.setLoading,E=e.setLoggedin,h=e.handlePerRowsChange,b=e.handlePageChange,v=e.handleSearch;function y(){return(y=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Y.a.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/User/getStarred":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/User/getStarred",{params:{page:t,sort:r,rows:a},withCredentials:!0}).then((function(e){if(200===e.status)o(e.data.results),d(e.data.total),u(!1),E(1);else{new Error(e.message);m(e.message),E(1)}})).catch((function(e){C.default.isEmpty(e)||E(1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var g=[{name:"Date",selector:"createdAt",sortable:!0,wrap:!0,cell:function(e){return ae(e.createdAt,"dd/mm/yyyy H:M:s")}},{name:"Bookmarked",selector:"document_id",sortable:!0,wrap:!0,cell:function(e){return l.a.createElement("div",null,l.a.createElement("a",{href:"!/#",onClick:function(t){v(t,e.document_id)}},e.title))}}];return Object(n.useEffect)((function(){document.body.classList.remove("homepage"),function(){y.apply(this,arguments)}()}),[t,a,r]),l.a.createElement(K.a,{title:"Bookmarked Articles",striped:!0,customStyles:ne,columns:g,data:c,progressPending:s,highlightOnHover:!0,pagination:!0,paginationServer:!0,paginationTotalRows:i,onChangeRowsPerPage:h,onChangePage:b})},re=function(e){var t=Object(n.useState)(0),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)([]),u=Object(h.a)(d,2),E=u[0],f=u[1],p=Object(n.useState)(!0),b=Object(h.a)(p,2),v=b[0],y=b[1],g=Object(n.useState)(10),O=Object(h.a)(g,2),_=O[0],S=O[1],N=Object(n.useState)(0),w=Object(h.a)(N,2),k=(w[0],w[1]),C=Object(n.useState)(1),T=Object(h.a)(C,2),D=T[0],R=T[1];return l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(j.a,null),o?l.a.createElement(P.a,{variant:"danger"},"Request Failed.Access Denied!"):l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"},l.a.createElement(M,e)),l.a.createElement(A.a,{md:"9"},l.a.createElement(le,{currentPage:D,currentPerpage:_,currentTotal:r,data:E,error:o,loading:v,setData:f,setErrors:m,setLoading:y,setLoggedin:k,setTotal:i,handlePerRowsChange:function(e,t){y(!0),S(e),R(t)},handlePageChange:function(e){y(!0),R(e)},handleSearch:function(t,a){e.history.push({pathname:"/r/"+a}),t.preventDefault()}}))))},ie=a(163),ce=a.n(ie),se=function(e){var t=e.error,a=e.show,n=e.setErrorShow;return l.a.createElement(H.a,{show:a,onHide:function(e){return n(!1)},animation:!1},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-danger"},l.a.createElement("i",{className:"fa fa-times-circle text-danger"})," Error")),l.a.createElement(H.a.Body,null,l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement("i",{className:"fa fa-file"})," ",C.default.isUndefined(t)?"":t.message))),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:function(e){return n(!1)}},l.a.createElement("i",{className:"fa fa-times"})," Close")))},oe=a(14),me=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(""),u=Object(h.a)(d,2),E=(u[0],u[1],Object(n.useState)("")),b=Object(h.a)(E,2),v=b[0],y=b[1],g=Object(n.useState)(""),O=Object(h.a)(g,2),_=O[0],S=O[1],N=Object(n.useState)(""),w=Object(h.a)(N,2),k=w[0],T=w[1],D=Object(n.useState)(!1),L=Object(h.a)(D,2),I=L[0],H=L[1],W=Object(n.useState)(!0),K=Object(h.a)(W,2),V=K[0],q=K[1];function B(){return(B=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:oe.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/User/getToken":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/User/getToken",{withCredentials:!0}).then((function(e){if(200===e.status)e.data.key?T(e.data.key):(i("Invalid password reset request"),m(!0));else{new Error(e.message);i(e.message),m(!0)}})).catch((function(e){C.default.isEmpty(e)||(i(e),m(!0))}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(){return(Z=Object(p.a)(f.a.mark((function t(){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:oe.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/User/UpdateToken":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/User/UpdateToken",{key:k,passkey:_},{withCredentials:!0}).then((function(t){t?C.default.isUndefined(t.status)||200!==t.status?(i(t.Error),m(!0)):e.history.push({pathname:"/Home",state:{withCredentials:!0}}):(i("Invalid User name or Password"),m(!0))})).catch((function(e){i(e),m(!0)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}Object(n.useEffect)((function(){!function(){B.apply(this,arguments)}()}),[V,I]);return l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(se,{error:r,setErrorShow:m,show:o}),l.a.createElement(j.a,null),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"},l.a.createElement(M,e)),l.a.createElement(A.a,{md:"6"},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(R.a,{variant:"info"},l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,null,l.a.createElement("h2",null,"Update Password!")),l.a.createElement(U.a,{onSubmit:function(e){!1===I&&(r||i({message:"Invalid Password"})),r?m(!0):(m(!1),function(){Z.apply(this,arguments)}()),e.preventDefault()}},l.a.createElement(U.a.Group,{controlId:"pass1"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-lock"})," Enter New Password"),l.a.createElement(ce.a,{isRequired:!0,password:v,minLength:5,minScore:2,changeCallback:function(e){y(e.password),H(e.isValid),e.isValid?i(!1):i({message:"Invalid Password"})},inputProps:{name:"password1",autoComplete:"off",required:!0,className:"form-control"}})),l.a.createElement(U.a.Group,{controlId:"pass2"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-lock"})," Re-type New Password"),l.a.createElement(ce.a,{isRequired:!0,password:_,minLength:5,minScore:2,changeCallback:function(e){S(e.password),H(e.isValid),i(e.isValid),v===e.password?(q(!0),console.log("it is now matched")):q(!1),!0===V?(H(!1),i({message:"Password mismatched!"})):(H(e.isValid),i(!1))},inputProps:{name:"password2",autoComplete:"off",required:!0,className:"form-control"}})),l.a.createElement(P.a,{variant:"info"},"You must specify a password of minimum 6 characters. You can choose any combination and the password strength meter is for information only."),l.a.createElement(P.a,{variant:"warning",hidden:V},"Password Mismatched"),l.a.createElement(x.a,{className:"btn btn-success btn-lg pull-right",type:"submit",disabled:r},"Update Password ",l.a.createElement("i",{className:"fa fa-sign-in"}))))))))))},de=a(322),ue=function(e){var t=e.setShow,a=e.show;return l.a.createElement(H.a,{show:a,onHide:function(){return t(!1)},dialogClassName:"modal-90w","aria-labelledby":"example-custom-modal-styling-title",size:"xl"},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{id:"example-custom-modal-styling-title"},"Institutional Price List")),l.a.createElement(H.a.Body,null,l.a.createElement("p",null,"Buying an institutional license is a cost-effective way of bringing the power of Trip to your organisation. Trip can be useful in many different ways, for instance:"),l.a.createElement("p",null,"Supporting clinical care by helping clinicians to easily find robust, evidence-based, answers to their clinical questions. Trip is widely used by systematic review producers."),l.a.createElement("p",null,"The evidence-based content of Trip supports the writing of clinical guidelines."),l.a.createElement("p",null,"Preparing research grants is made easier with easy access to pre-existing research."),l.a.createElement("p",null,"Pricing Pricing is based on size and type of institution. While not ideal it acts as a starting point for negotiations and if you feel you\u2019re disadvantaged by this method then please contact us to discuss further. NOTE: figures are in US Dollars and is the annual cost."),l.a.createElement("h5",null,"Academic Institution"),l.a.createElement("p",null,"Very small (","<","1,000 FTEs) \u2013 $995 Small (1-5,000) \u2013 $1,600 Medium (5-15,000 FTEs) \u2013 $2,300 Large (15,000+ FTEs) \u2013 $4,000"),l.a.createElement("h5",null,"Hospitals/health centres"),l.a.createElement("p",null,"Very small (","<","50 beds) \u2013 $600 Small (","<","250 beds) \u2013 $1,225 Medium (250-1,000 beds) \u2013 $2,300 Large (1,000+ beds) \u2013 $3,300"),l.a.createElement("h5",null,"Government, other public sector organisations and charities"),l.a.createElement("p",null,"Very small (","<","20 staff) \u2013 $390 Small (","<","75 staff) \u2013 $1,250 Medium (75-250 staff) \u2013 $2,300 Large (250+ staff) \u2013 $3,350"),l.a.createElement("h5",null,"Corporations"),l.a.createElement("p",null,"Small (","<","75 staff) \u2013 $2,000 Medium (75-500 staff) \u2013 $6,700 Large (500+ staff) \u2013 $13,500"),l.a.createElement("p",null,"Institutions from resource poor settings. For institutions based in the two lowest World Bank income classification (Low-income economies and Lower-middle-income economies) Trip is free while those classed as Upper-middle-income economies generous discounts are available. For further details contact: lmic@tripdatabase.com"),l.a.createElement("h5",null,"Authentication"),l.a.createElement("p",null,"Trip currently supports a number of methods including IP authentication. We are also using OpenAthens for subscribed institutions.")),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{className:"btn btn-primary",onClick:function(){return t(!1)}},"Close")))},Ee=function(){return l.a.createElement("div",{id:"feature-comparison",className:"pro-section pro-section--dark"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row feature-comparison"},l.a.createElement("div",{className:"col-12"},l.a.createElement("h2",{className:"pro-section-title text-center mb-5"},"What do I get with a Trip account?"),l.a.createElement("div",{className:"table-responsve"},l.a.createElement("table",{className:"table"},l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",{className:"blank"}),l.a.createElement("th",{className:"curved-corner--top-left column-headers-background cell-bg--l-teal"},l.a.createElement("div",null,l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 70.18 35.84"},l.a.createElement("rect",{width:"70.18",height:"35.84",rx:"8",fill:"#11b6a8"}),l.a.createElement("path",{d:"M56,18.49H49.36a4.13,4.13,0,0,1,.29-1.27,3.51,3.51,0,0,1,.67-1,3.17,3.17,0,0,1,1-.71,3.35,3.35,0,0,1,1.33-.25,3.26,3.26,0,0,1,1.31.25,3.4,3.4,0,0,1,1,.7,3.26,3.26,0,0,1,.69,1A3.93,3.93,0,0,1,56,18.49ZM52.9,25.63a5.26,5.26,0,0,0,3.27-1,4.65,4.65,0,0,0,1.68-2.93H56a2.75,2.75,0,0,1-1,1.7A3.27,3.27,0,0,1,53,24a3.93,3.93,0,0,1-1.64-.31,3.26,3.26,0,0,1-1.14-.84,3.15,3.15,0,0,1-.65-1.21,4.32,4.32,0,0,1-.18-1.44H58A9.52,9.52,0,0,0,57.84,18,6.41,6.41,0,0,0,57,15.8a5.11,5.11,0,0,0-1.64-1.63,4.79,4.79,0,0,0-2.56-.63A5.29,5.29,0,0,0,50.6,14a5.11,5.11,0,0,0-1.72,1.26,5.74,5.74,0,0,0-1.13,1.9,6.94,6.94,0,0,0-.41,2.42,9,9,0,0,0,.4,2.44,5.21,5.21,0,0,0,1,1.93,4.68,4.68,0,0,0,1.71,1.25A5.92,5.92,0,0,0,52.9,25.63ZM44,18.49H37.33a4.13,4.13,0,0,1,.29-1.27,3.35,3.35,0,0,1,.68-1,3,3,0,0,1,1-.71,3.37,3.37,0,0,1,1.34-.25,3.29,3.29,0,0,1,1.31.25,3.35,3.35,0,0,1,1,.7,3.26,3.26,0,0,1,.69,1A3.93,3.93,0,0,1,44,18.49Zm-3.11,7.14a5.22,5.22,0,0,0,3.27-1,4.56,4.56,0,0,0,1.68-2.93H43.94a2.66,2.66,0,0,1-1,1.7,3.25,3.25,0,0,1-2,.56,4,4,0,0,1-1.64-.31,3.26,3.26,0,0,1-1.14-.84,3.29,3.29,0,0,1-.65-1.21,4.91,4.91,0,0,1-.18-1.44H46A9,9,0,0,0,45.81,18,6.41,6.41,0,0,0,45,15.8a5.11,5.11,0,0,0-1.64-1.63,4.79,4.79,0,0,0-2.56-.63,5.21,5.21,0,0,0-2.18.44,5.15,5.15,0,0,0-1.73,1.26,5.92,5.92,0,0,0-1.13,1.9,6.94,6.94,0,0,0-.4,2.42A9.37,9.37,0,0,0,35.71,22a5.36,5.36,0,0,0,1,1.93,4.68,4.68,0,0,0,1.71,1.25A6,6,0,0,0,40.87,25.63Zm-10.14-.25V20.23a7.89,7.89,0,0,1,.22-2,3.89,3.89,0,0,1,.72-1.47A3.07,3.07,0,0,1,33,15.86a5.62,5.62,0,0,1,1.95-.31v-2a4.25,4.25,0,0,0-2.55.62,5.12,5.12,0,0,0-1.7,2.09h-.05V13.8H28.82V25.38Zm-12.26,0V18.06h7.35V16.27H18.47V11.18h8.38V9.39H16.35v16Z",fill:"#fff"})))),l.a.createElement("th",{className:"column-headers-background cell-bg--l-yellow"},l.a.createElement("div",null,l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 70.18 35.84"},l.a.createElement("rect",{width:"70.18",height:"35.84",rx:"8",fill:"#ffe300"}),l.a.createElement("path",{d:"M45.4,24.38a3.37,3.37,0,0,1-2.55-1.13,3.8,3.8,0,0,1-.77-1.37A5.66,5.66,0,0,1,41.8,20a5.7,5.7,0,0,1,.28-1.87,4,4,0,0,1,.77-1.38A3.41,3.41,0,0,1,44,15.91a3.52,3.52,0,0,1,2.8,0,3.32,3.32,0,0,1,1.15.85,4.21,4.21,0,0,1,.78,1.38,6.38,6.38,0,0,1,0,3.74A4,4,0,0,1,48,23.25a3.42,3.42,0,0,1-1.15.84A3.51,3.51,0,0,1,45.4,24.38Zm0,1.66a6.05,6.05,0,0,0,2.43-.46,5,5,0,0,0,1.76-1.28,5.34,5.34,0,0,0,1.07-1.91,8,8,0,0,0,0-4.76,5.43,5.43,0,0,0-1.07-1.93,5.32,5.32,0,0,0-1.76-1.29,6.49,6.49,0,0,0-4.85,0,5.26,5.26,0,0,0-1.77,1.29,5.59,5.59,0,0,0-1.07,1.93,8,8,0,0,0,0,4.76,5.5,5.5,0,0,0,1.07,1.91A5,5,0,0,0,43,25.58,6.11,6.11,0,0,0,45.4,26Zm-10.21-.25V20.64a7.83,7.83,0,0,1,.22-2,3.75,3.75,0,0,1,.72-1.47,3.11,3.11,0,0,1,1.3-.92,5.39,5.39,0,0,1,2-.31v-2a4.3,4.3,0,0,0-2.56.63,5.24,5.24,0,0,0-1.7,2.08h0V14.21H33.29V25.79Zm-9.74-8.33H21.28V11.59h4.17a3.9,3.9,0,0,1,2.65.75,2.77,2.77,0,0,1,.84,2.18,2.82,2.82,0,0,1-.84,2.2A3.8,3.8,0,0,1,25.45,17.46Zm-4.17,8.33V19.25h4.89A4.88,4.88,0,0,0,29.83,18a4.75,4.75,0,0,0,1.24-3.5A4.7,4.7,0,0,0,29.83,11,5,5,0,0,0,26.17,9.8h-7v16Z"})))),l.a.createElement("th",{className:"curved-corner--top-right column-headers-background cell-bg--l-yellow"},l.a.createElement("div",null,l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 70.18 35.84"},l.a.createElement("rect",{width:"70.18",height:"35.84",rx:"8",fill:"#ffe300"}),l.a.createElement("path",{d:"M45.4,24.38a3.37,3.37,0,0,1-2.55-1.13,3.8,3.8,0,0,1-.77-1.37A5.66,5.66,0,0,1,41.8,20a5.7,5.7,0,0,1,.28-1.87,4,4,0,0,1,.77-1.38A3.41,3.41,0,0,1,44,15.91a3.52,3.52,0,0,1,2.8,0,3.32,3.32,0,0,1,1.15.85,4.21,4.21,0,0,1,.78,1.38,6.38,6.38,0,0,1,0,3.74A4,4,0,0,1,48,23.25a3.42,3.42,0,0,1-1.15.84A3.51,3.51,0,0,1,45.4,24.38Zm0,1.66a6.05,6.05,0,0,0,2.43-.46,5,5,0,0,0,1.76-1.28,5.34,5.34,0,0,0,1.07-1.91,8,8,0,0,0,0-4.76,5.43,5.43,0,0,0-1.07-1.93,5.32,5.32,0,0,0-1.76-1.29,6.49,6.49,0,0,0-4.85,0,5.26,5.26,0,0,0-1.77,1.29,5.59,5.59,0,0,0-1.07,1.93,8,8,0,0,0,0,4.76,5.5,5.5,0,0,0,1.07,1.91A5,5,0,0,0,43,25.58,6.11,6.11,0,0,0,45.4,26Zm-10.21-.25V20.64a7.83,7.83,0,0,1,.22-2,3.75,3.75,0,0,1,.72-1.47,3.11,3.11,0,0,1,1.3-.92,5.39,5.39,0,0,1,2-.31v-2a4.3,4.3,0,0,0-2.56.63,5.24,5.24,0,0,0-1.7,2.08h0V14.21H33.29V25.79Zm-9.74-8.33H21.28V11.59h4.17a3.9,3.9,0,0,1,2.65.75,2.77,2.77,0,0,1,.84,2.18,2.82,2.82,0,0,1-.84,2.2A3.8,3.8,0,0,1,25.45,17.46Zm-4.17,8.33V19.25h4.89A4.88,4.88,0,0,0,29.83,18a4.75,4.75,0,0,0,1.24-3.5A4.7,4.7,0,0,0,29.83,11,5,5,0,0,0,26.17,9.8h-7v16Z"})),l.a.createElement("span",null,"Institutional"))))),l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",{className:"curved-corner--top-left"},"Easy to use"),l.a.createElement("td",{className:"cell-bg--l-teal"},l.a.createElement("i",{className:"fa fa-check fa-teal"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",{className:"s0 softmerge"},l.a.createElement("div",{className:"softmerge-inner"},"Tens of thousands of systematic reviews")),l.a.createElement("td",{className:"cell-bg--l-teal"},l.a.createElement("i",{className:"fa fa-check fa-teal"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Largest collection of clinical guidelines"),l.a.createElement("td",{className:"cell-bg--l-teal"},l.a.createElement("i",{className:"fa fa-check fa-teal"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"PICO search"),l.a.createElement("td",{className:"cell-bg--l-teal"},l.a.createElement("i",{className:"fa fa-check fa-teal"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",{className:"s0 softmerge"},"SmartSearch showing 3 related articles"),l.a.createElement("td",{className:"cell-bg--l-teal"},l.a.createElement("i",{className:"fa fa-check fa-teal"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",{className:"s0 softmerge"},"Email alerts for new evidence of interest"),l.a.createElement("td",{className:"cell-bg--l-teal"},l.a.createElement("i",{className:"fa fa-check fa-teal"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Answer engine \u2013 instant answers"),l.a.createElement("td",{className:"cell-bg--l-teal"},l.a.createElement("i",{className:"fa fa-check fa-teal"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Large collection of grey literature"),l.a.createElement("td",{className:"cell-bg--l-teal"},l.a.createElement("i",{className:"fa fa-check fa-teal"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Easy to use search refinement tool"),l.a.createElement("td",{className:"cell-bg--l-teal"},l.a.createElement("i",{className:"fa fa-check fa-teal"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Easy selection of RCTs"),l.a.createElement("td",{className:"cell-bg--l-teal"},l.a.createElement("i",{className:"fa fa-check fa-teal"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",{className:"s1 softmerge"},"Hundreds of thousands of systematic reviews"),l.a.createElement("td",{className:"cell-bg--dark s2"}),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Over 175,000 ongoing clinical trials"),l.a.createElement("td",{className:"cell-bg--dark"}),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Link to over a million full-text articles"),l.a.createElement("td",{className:"cell-bg--dark"}),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",{className:"s1"},"Export links to reference management software"),l.a.createElement("td",{className:"cell-bg--dark"}),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Advanced search"),l.a.createElement("td",{className:"cell-bg--dark"}),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Filter results by clinical area"),l.a.createElement("td",{className:"cell-bg--dark"}),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",{className:"s1 softmerge"},"Article views, see which articles are most popular"),l.a.createElement("td",{className:"cell-bg--dark s2"}),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",{className:"s1 softmerge"},"SmartSearch showing unlimited related articles"),l.a.createElement("td",{className:"cell-bg--dark s2"}),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"})),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",{className:"s1 softmerge"},"Link out to your organisation full-text subscription journals"),l.a.createElement("td",{className:"cell-bg--dark s3"}),l.a.createElement("td",{className:"cell-bg--dark"}),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"No need to login to get Pro features"),l.a.createElement("td",{className:"cell-bg--dark"}),l.a.createElement("td",{className:"cell-bg--dark"}),l.a.createElement("td",{className:"cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))),l.a.createElement("tr",null,l.a.createElement("td",{className:"curved-corner--bottom-left"},"Institutional usage stats"),l.a.createElement("td",{className:"cell-bg--dark"}),l.a.createElement("td",{className:"cell-bg--dark"}),l.a.createElement("td",{className:"curved-corner--bottom-right cell-bg--l-yellow"},l.a.createElement("i",{className:"fa fa-check fa-yellow"}))))))))))},fe=(a(104),a(88),a(14)),pe=Object(de.a)("pk_live_yU2xAbih3W42FcfcORUmCOWI"),he=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=(a[0],a[1],Object(n.useState)(!1)),i=Object(h.a)(r,2),c=i[0],s=i[1],o=Object(n.useState)(!1),m=Object(h.a)(o,2),d=m[0],u=m[1],E=Object(n.useState)(!1),b=Object(h.a)(E,2),v=b[0],y=b[1],g=Object(n.useState)(!1),O=Object(h.a)(g,2),_=(O[0],O[1],Object(n.useState)({})),S=Object(h.a)(_,2),N=(S[0],S[1],Object(n.useState)("")),w=Object(h.a)(N,2),k=w[0],T=w[1],D=Object(n.useState)(""),U=Object(h.a)(D,2),L=(U[0],U[1]),I=Object(n.useState)(!0),H=Object(h.a)(I,2);H[0],H[1];function W(){return K.apply(this,arguments)}function K(){return(K=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:fe.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Auth/Subscription":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Auth/Subscription",{withCredentials:!0}).then((function(e){L(e.data.sessionId),q(e.data.sessionId)})).catch((function(e){C.default.isEmpty(e)||s(e)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function V(){return(V=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:fe.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Auth/getSubscriptionExpiry":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Auth/getSubscriptionExpiry",{withCredentials:!0}).then((function(e){T(e.data)})).catch((function(e){C.default.isEmpty(e)||s(e)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(e){return B.apply(this,arguments)}function B(){return(B=Object(p.a)(f.a.mark((function e(t){var a,n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe;case 2:return a=e.sent,e.next=5,a.redirectToCheckout({sessionId:t});case 5:n=e.sent,n.error;case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(n.useEffect)((function(){document.body.classList.remove("homepage"),!C.default.isUndefined(e.isPro)&&e.isPro?document.body.classList.add("pro-user"):document.body.classList.add("free-user"),function(){V.apply(this,arguments)}()}),[]);var Z=function(){var e=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W();case 2:e.sent;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(j.a,null),c?l.a.createElement(P.a,{variant:"danger"},"You must login to access this page!"):l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"},l.a.createElement(M,e)),l.a.createElement(A.a,{md:"9"},!0===e.isPro?l.a.createElement(R.a,null,l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,{className:"label label-success"},l.a.createElement("h2",null,"Renew")," your ",l.a.createElement("span",{className:"pro-label"},"PRO")," ","Account"),l.a.createElement("br",null),k&&l.a.createElement("div",{className:"mb-2 alert alert-info",role:"alert",dangerouslySetInnerHTML:{__html:k.message}}),l.a.createElement(x.a,{className:"btn btn-default",onClick:Z},"Pay $55.00"))):l.a.createElement(R.a,null,l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,{className:"label label-success"},l.a.createElement("h2",null,"Upgrade")," to Trip"," ",l.a.createElement("span",{className:"pro-label"},"PRO")),l.a.createElement("p",null," ","You're one step away from becoming a Pro user The Trip Pro offering takes an already wonderful \u2013 and free \u2013 version of Trip and makes it even better. With more content, more functionality, no adverts and more, it really makes the Trip experience even better."," "),l.a.createElement("br",null),k&&l.a.createElement("div",{className:"mb-2 alert alert-info",role:"alert",dangerouslySetInnerHTML:{__html:k.message}}),l.a.createElement("p",null,"Institutional and personal subscriptions are available",l.a.createElement("a",{href:"https://blog.tripdatabase.com/2021/07/03/institutional-subscriptions/",className:"btn btn-primary",target:"_blank"},"click here to see Institutional price list"),". The table below highlights the main differences between the various offerings. You can upgrade in one of 2 ways: Institutional Subscription (VAT, where applicable, will apply) If your institution has not already purchased an upgrade, you can find out pricing details here, prices start at $215 per annum. To set this up or ask any further questions please get in touch via our \u2018Contact Us\u2018 page. Personal Subscription The annual subscription cost is $55 (US Dollars). If applicable, Trip Database will pay VAT at your home countries rate . If you are VAT registered you may claim this back. Any questions then please get in touch via our \u2018Contact Us\u2018 page. You can purchase your own professional/private subscription by payment card, and this will take effect IMMEDIATELY:"),l.a.createElement(x.a,{className:"btn btn-default",onClick:Z},"Pay $55.00"),l.a.createElement("br",null)),l.a.createElement(R.a.Footer,null,l.a.createElement("div",{className:"why-go-pro-content"},l.a.createElement(Ee,null)))))),l.a.createElement(se,{error:c,setErrorShow:u,show:d}),l.a.createElement(ue,{setShow:y,show:v}))},be=a(29);function ve(){var e=!1,t=!1,a=null,n=null,l="",r="",i=!1;(C.default.isUndefined(be.get("tokens"))||(l=C.default.isNull(be.get("tokens"))||""===be.get("tokens")?null:JSON.parse(be.get("tokens"))),C.default.isUndefined(be.get("instution_auth_tokens"))||(r=C.default.isUndefined(be.get("instution_auth_tokens"))?"":be.get("instution_auth_tokens"),C.default.isUndefined(r.institution_auth)||C.default.isNull(r.institution_auth)||(a=r.institution_auth.id,n=r.institution_auth.institution_shortname,C.default.isUndefined(r.institution_auth.oa_login)||(i=r.institution_auth.oa_login))),l)&&(C.default.findWhere(l.roles,{role:"Pro"})&&(e=!0),C.default.isUndefined(l.loggedin)||(t=l.loggedin));return{chkPro:e,chkLogin:t,chkInstitution:{institution_id:a,institution_name:n,oa_login:i}}}function ye(e,t,a){var n="";return e&&((n=e)[t]=a),n||e}var ge=a(88),Oe=a(14),_e=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=(a[1],Object(n.useState)({})),c=Object(h.a)(i,2),s=c[0],o=c[1],m=k(),d=m.authTokens,u=m.setAuthTokens,E=ge.parse(e.location.search),b=E.session_id&&!C.default.isEmpty(E.session_id)?E.session_id:"";return Object(n.useEffect)((function(){function t(){return(t=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=o,e.next=3,Oe.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Auth/Subscriptionsuccess":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Auth/Subscriptionsuccess",{params:{sessionId:b}},{withCredentials:!0}).then((function(e){return document.body.classList.add("pro-user"),u(ye(d,"isPro","1")),e.data}));case 3:e.t1=e.sent,(0,e.t0)(e.t1);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}document.body.classList.remove("homepage"),!C.default.isUndefined(e.isPro)&&e.isPro?document.body.classList.add("pro-user"):document.body.classList.add("free-user"),function(){t.apply(this,arguments)}()}),[b]),l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(j.a,null),r?l.a.createElement(P.a,{variant:"danger"},"Request Failed.Access Denied!"):l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"},l.a.createElement(M,e)),l.a.createElement(A.a,{md:"6"},l.a.createElement(R.a,null,l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,{className:"text-success"},l.a.createElement("h2",null,l.a.createElement("i",{className:"fa fa-check-circle"})," Payment Status")),l.a.createElement("div",{className:"sr-section completed-view"},l.a.createElement("div",{className:"sr-callout"},l.a.createElement(P.a,{variant:"success"},"Payment submitted successfully for Trip"," ",l.a.createElement("span",{className:"pro-label"}," PRO ")," account. Your unique payment reference is"," ",l.a.createElement("strong",null," ",s?s.payment_intent:""," "),". You will recieve a confirmation email on the email address provided ",s?s.customer_email:"",". You should now be able use the Trip"," ",l.a.createElement("span",{className:"pro-label"}," PRO ")," features.",l.a.createElement("br",null),l.a.createElement("br",null)," ",l.a.createElement(x.a,{href:"/Home",className:"btn btn-info"},l.a.createElement("i",{className:"fa fa-home"})," Continue to Trip")))))))))},Se=a(952),Ne=function(e){return l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(j.a,null),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"},l.a.createElement(M,e)),l.a.createElement(A.a,{md:"6"},l.a.createElement(R.a,null,l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,{className:"label label-success"},l.a.createElement("h2",null,"Upgrade")," to Trip",l.a.createElement(Se.a,{variant:"info"},"PRO")),l.a.createElement("p",null,"Payment Failed"),l.a.createElement("a",{href:"/Subscription"},"Go Back to Payment"))))))},we=function(e){return l.a.createElement("div",null,l.a.createElement(L.a,{striped:!0,bordered:!0,hover:!0,responsive:"sm"},l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",null),l.a.createElement("th",null,"Trip"),l.a.createElement("th",null,"Trip PRO"),l.a.createElement("th",null,"Trip PRO (Institutional)"))),l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,"Easy to use"),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-primary"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Tens of thousands of systematic reviews"),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-primary"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Largest collection of clinical guidelines"),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-primary"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"PICO search"),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-primary"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"SmartSearch showing 3 related articles"),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-primary"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Email alerts for new evidence of interest"),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-primary"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Answer engine \u2013 instant answers "),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-primary"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Large collection of grey literature "),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-primary"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Easy to use search refinement tool"),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-primary"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Easy selection of RCTs "),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-primary"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Hundreds of thousands of systematic reviews "),l.a.createElement("td",null),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Over 175,000 ongoing clinical trials "),l.a.createElement("td",null),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Massive database of medical images "),l.a.createElement("td",null),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Tens of thousands of clinical videos "),l.a.createElement("td",null),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Link to over a million full-text articles "),l.a.createElement("td",null),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Export links to reference management software"),l.a.createElement("td",null),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"No Adverts "),l.a.createElement("td",null),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Advanced search "),l.a.createElement("td",null),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Filter results by clinical area "),l.a.createElement("td",null),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Article views, see which articles are most popular "),l.a.createElement("td",null),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"SmartSearch showing unlimited related articles"),l.a.createElement("td",null),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-success"})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Link out to your organisation full-text subscription journals"," "),l.a.createElement("td",null),l.a.createElement("td",null),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"No need to login to get Pro features"),l.a.createElement("td",null),l.a.createElement("td",null),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))),l.a.createElement("tr",null,l.a.createElement("td",null,"Institutional usage stats "),l.a.createElement("td",null),l.a.createElement("td",null),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-check fa-lg text-info"}))))))},ke=(a(14),function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=(a[0],a[1],Object(n.useState)(!1)),i=Object(h.a)(r,2),c=(i[0],i[1],Object(n.useState)(!1)),s=Object(h.a)(c,2),o=s[0],m=s[1];return l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(j.a,null),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"},l.a.createElement(M,e),l.a.createElement(N.a,null,l.a.createElement("meta",{name:"description",content:"Evidence-based answers for health professionals | Searching sources such as systematic reviews, clinical guidelines and RCTs"}))),l.a.createElement(A.a,{md:"9"},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(R.a,null,l.a.createElement(R.a.Header,{as:"h4"},"You're one step away from becoming a Pro user"),l.a.createElement(R.a.Body,null,l.a.createElement("blockquote",{className:"blockquote mb-0"},l.a.createElement("p",null,"The Trip Pro offering takes an already wonderful \u2013 and free \u2013 version of Trip and makes it even better. With more content, more functionality, no adverts and more, it really makes the Trip experience even better. Institutional and personal subscriptions are available (",l.a.createElement(R.a.Link,{href:"!#",className:"text-success",onClick:function(e){m(!0),e.preventDefault()},title:"click here to see Institutional price list"},"click here to see Institutional price list")," ","). The table below highlights the main differences between the various offerings.")," ",l.a.createElement("br",null),l.a.createElement("b",null,"Institutional Subscription (VAT, where applicable, will apply)"),l.a.createElement("br",null),l.a.createElement("p",null," ","If your institution has not already purchased an upgrade, you can find out pricing details here, prices start at $215 per annum. To set this up or ask any further questions please get in touch via our \u2018Contact Us\u2018 page."),l.a.createElement("br",null),l.a.createElement("p",null,l.a.createElement("b",null,"Personal Subscription")," The annual subscription cost is $55 (US Dollars). If applicable, Trip Database will pay VAT at your home countries rate . If you are VAT registered you may claim this back."," "),l.a.createElement("br",null),l.a.createElement("p",null,"Any questions then please get in touch via our \u2018Contact Us\u2018 page. You can purchase your own professional/private subscription by payment card, and this will take effect IMMEDIATELY:")),l.a.createElement(x.a,{variant:"primary"},"Contact Us"))))),l.a.createElement(j.a,{className:"mt-2"},l.a.createElement(A.a,null,l.a.createElement(P.a,{variant:"info"},l.a.createElement(P.a.Heading,null,"Please,",l.a.createElement(P.a.Link,{href:"/Login"},"Login")," before paying, so we can credit your account")," "))),l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(we,null))))),l.a.createElement(ue,{setShow:m,show:o}))}),Ce=a(962),Te=a(953),je=a(29),Pe=a(216),Ae=a(14);function De(e,t,a){var n="";if(C.default.isUndefined(je.get("remember")))a(!1);else if(n=C.default.isNull(je.get("remember"))||""===je.get("remember")?null:je.get("remember"),C.default.isNull(n))a(!1);else{var l=Pe.decode(n,{complete:!0});C.default.isUndefined(l.payload)||(e(l.payload.username),t(l.payload.password),a(!0))}}function Re(e){return Ue.apply(this,arguments)}function Ue(){return(Ue=Object(p.a)(f.a.mark((function e(t){var a,n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("",C.default.isUndefined(je.get("remember"))){e.next=9;break}if(a=C.default.isNull(je.get("remember"))||""===je.get("remember")?null:je.get("remember"),C.default.isNull(a)){e.next=9;break}if(n=Pe.decode(a,{complete:!0}),C.default.isUndefined(n.payload)){e.next=9;break}return e.next=8,Ae.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Auth/Login":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Auth/Login",{username:n.payload.username,password:n.payload.password},{withCredentials:!0}).then((function(e){if(e&&!C.default.isUndefined(e.status)&&200===e.status)return t(e.data),e.data})).catch((function(e){}));case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Le(e,t){return xe.apply(this,arguments)}function xe(){return(xe=Object(p.a)(f.a.mark((function e(t,a){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ae.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Auth/checkLogin":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Auth/checkLogin",{withCredentials:!0}).then((function(e){var n=!1;return e&&(C.default.isUndefined(e.status)||200!==e.status&&304!==e.status||(n=e.data.login,je.set("auth_check",(new Date).getTime()+6e4))),!1===n&&t(""),a(n),n})).catch((function(e){return!1}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ie(e,t,a,n,l){return Me.apply(this,arguments)}function Me(){return(Me=Object(p.a)(f.a.mark((function e(t,a,n,l,r){var i,c,s,o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{t._wayfinder=t._wayfinder||function(){(t._wayfinder.q=t._wayfinder.q||[]).push(arguments)},i={oaDomain:"tripdatabase.com",oaAppId:r},t._wayfinder.settings=i,c=a.getElementsByTagName("head")[0],(s=a.createElement("script")).async=1,o=Object.keys(i).map((function(e){return e+"="+i[e]})).join("&"),s.src=n+"v1"+l+"?"+o,c.appendChild(s)}catch(m){console.log("wayfayless embedding function error")}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}a(14),a(29),a(216);var He=function(e){var t=Object(n.useState)(""),r=Object(h.a)(t,2),i=(r[0],r[1]),c=Object(n.useState)(""),s=Object(h.a)(c,2),o=(s[0],s[1]),m=Object(n.useState)(!1),d=Object(h.a)(m,2),u=(d[0],d[1]),E=Object(n.useState)(!1),f=Object(h.a)(E,2),p=f[0],b=(f[1],Object(n.useState)(!1)),v=Object(h.a)(b,2),y=v[0],g=v[1],O=(k().setAuthTokens,ve());document.getElementById("wayfinderEmbedded")&&window.location.reload();var _=!1;return C.default.isUndefined(O.chkInstitution)||(_=C.default.isUndefined(O.chkInstitution.oa_login)?_:O.chkInstitution.oa_login),Object(n.useEffect)((function(){document.title="Login - Trip Medical Database",document.body.classList.remove("homepage"),De(i,o,u),Ie(window,document,"https://wayfinder.openathens.net/embed/","/loader.js","c405b315-2492-403b-a8af-d279e7d52798")}),[]),l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(se,{error:p,setErrorShow:g,show:y}),l.a.createElement(j.a,null),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"},l.a.createElement(M,e)),l.a.createElement(A.a,{md:"9"},l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"9"},l.a.createElement("div",{className:"card"},l.a.createElement("div",{className:"card-body"},l.a.createElement("div",{className:"card-header"},l.a.createElement("h2",null,"Institution Login"," ",l.a.createElement("img",{style:{overflow:"hidden",maxHeight:"70px",maxWidth:"120px",align:"right"},src:a(303)}))),l.a.createElement("br",null),l.a.createElement("div",{className:"form-group row"},l.a.createElement("div",{className:"col-9"},l.a.createElement("div",{id:"wayfinder"},"Loading...")))," ",O.chkInstitution.institution_name&&l.a.createElement("div",null," ",l.a.createElement("div",{className:"mb-4 alert alert-secondary",role:"alert"},O.chkInstitution.institution_name," ",l.a.createElement("a",{className:"alert-link",href:"/Logout"},"Logout?"))),_?l.a.createElement("div",null,l.a.createElement("div",{className:"mb-4 alert alert-primary",role:"alert"},l.a.createElement(Ce.a,{key:"top",placement:"top",className:"pro-tooltip",overlay:l.a.createElement(Te.a,{id:"overlay-openathens-logut"},"OpenAthens caches your previous login details. Click here, if you would like to change or fully logout from your current institution"," ")},l.a.createElement("a",{href:"https://login.openathens.net/signout",target:"_blank",rel:"nofollow"}," ","Logout"," ",l.a.createElement("img",{style:{overflow:"hidden",maxHeight:"70px",maxWidth:"120px",align:"right"},src:a(303)}))))):"")),l.a.createElement("br",null))))))},We=function(e){var t=ve();return Object(n.useEffect)((function(){document.title="Login - Trip Medical Database",document.body.classList.remove("homepage"),Ie(window,document,"https://wayfinder.openathens.net/embed/","/loader.js","c405b315-2492-403b-a8af-d279e7d52798")}),[]),l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(j.a,null),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"}),l.a.createElement(A.a,{md:"6"},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement("div",{className:"card"},l.a.createElement("div",{className:"card-body"},l.a.createElement("div",{className:"card-header"},l.a.createElement("h2",null,"Institution Login")),l.a.createElement("br",null),l.a.createElement("div",{className:"form-group"},l.a.createElement("div",{className:"input-group"},l.a.createElement("div",{className:"input-group-prepend"}),l.a.createElement("div",null,l.a.createElement("a",{href:"#",onClick:function(e){return e.preventDefault()},className:"wayfinder-login btn btn-primary"},l.a.createElement("i",{className:"fa fa-university"})," Institution login")),l.a.createElement("br",null),t.chkInstitution.institution_name&&l.a.createElement("div",null," ",l.a.createElement("div",{className:"mb-4 alert alert-secondary",role:"alert"},t.chkInstitution.institution_name," ",l.a.createElement("a",{className:"alert-link",href:"/Logout"},"Logout?"))))))))))))},Ke=a(135),Ve=a(164),qe=a(88),Be=function(e){var t=window.location.protocol+"//"+window.location.host+window.location.pathname+e;window.history.pushState({path:t},"",t)},Ze=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.location.search,n=qe.parse(a),l=qe.stringify(Object(Ve.a)({},n,Object(Ke.a)({},e,t)));Be("?".concat(l))},Fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.search,a=qe.parse(t);return a[e]},Ge=a(14),Ye=a(29),ze=function(e){var t=Object(n.useState)(""),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=(s[0],s[1]),m=Object(n.useState)(!1),d=Object(h.a)(m,2),u=(d[0],d[1]),E=function(){var e=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ge.get("/api/oalogin").then((function(e){console.log(e),e?C.default.isUndefined(e.status)||200!==e.status?(o({message:"An unknown error occured, contact Trip Admin"}),u(!0)):(i(e.data.wayfless_uri),window.location.href=e.data.wayfless_uri):(o({message:"An unknown error occured, contact Trip Admin"}),u(!0))})).catch((function(e){o({message:"An unknown error occured, contact Trip Admin"}),u(!0)}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(n.useEffect)((function(){document.title="Login - Trip Medical Database",document.body.classList.remove("homepage"),Fe("target_link_uri")?Ye.set("target_link_uri",Fe("target_link_uri")):Ye.remove("target_link_uri"),E()}),[]),l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(j.a,null),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"}),l.a.createElement(A.a,{md:"6"},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement("div",{className:"spinner-border spinner-border-md text-warning"}),"\xa0\xa0Processing .....",r&&l.a.createElement("a",{href:r},"Click here if redirect is taking too long!!"))))))},Qe=a(88),$e=a(14),Je=a(29),Xe=function(e){var t=Object(n.useState)(""),a=Object(h.a)(t,2),r=a[0],i=(a[1],Qe.parse(e.location.search)),c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(!1),u=Object(h.a)(d,2),E=u[0],b=u[1],v=function(){var t=Object(p.a)(f.a.mark((function t(){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:$e.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/api/redirect":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/api/redirect",{params:{code:i.code}}).then((function(t){t?C.default.isUndefined(t.status)||200!==t.status?(m({message:"Your Organisation is not registered on TRIP for PRO Access"}),b(!0)):t.data.success?C.default.isUndefined(Je.get("target_link_uri"))||Je.get("target_link_uri").includes("/Login")?e.history.push({pathname:"/Home",state:{withCredentials:!0}}):(window.location.href=Je.get("target_link_uri"),Je.remove("target_link_uri")):(console.log("erroro here else"),m({message:"Your Organisation is not registered on TRIP for PRO Access"}),b(!0),setTimeout((function(){b(!1),e.history.push({pathname:"/Home",state:{withCredentials:!0}})}),3200)):(m({message:"Authentication failed!"}),b(!0))})).catch((function(e){m({message:"Authentication failed!"}),b(!0)}));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(n.useEffect)((function(){document.title="OpenAthens Login - Trip Medical Database",document.body.classList.remove("homepage"),v()}),[]),l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(se,{error:o,setErrorShow:b,show:E}),l.a.createElement(j.a,null),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"}),l.a.createElement(A.a,{md:"6"},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement("div",{className:"spinner-border spinner-border-md text-success"}),"\xa0\xa0Redirecting..... ",l.a.createElement("br",null),r&&l.a.createElement("a",{href:r},"Click here if the redirect is taking too long......"))))))},et=a(14),tt=a(29),at=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=k(),u=(d.authTokens,d.setAuthTokens),E=Object(n.useState)(!1),b=Object(h.a)(E,2),v=b[0];b[1];function y(){return(y=Object(p.a)(f.a.mark((function t(a){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:et.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Auth/Logout":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Auth/Logout",{withCredentials:!0}).then((function(t){if(u(""),C.default.isUndefined(tt.get("instution_auth_tokens"))||tt.set("instution_auth_tokens",{institution_auth:null}),!C.default.isUndefined(tt.get("remember"))&&a&&tt.remove("remember"),tt.remove("auth_check"),200===t.status)C.default.isUndefined(Fe("OA"))?e.history.push({pathname:"/Home",state:{withCredentials:!0}}):window.location.href="https://login.openathens.net/signout";else{new Error(t.error_message);m(t.error_message)}})).catch((function(e){console.log(e)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return Object(n.useEffect)((function(){var e=!C.default.isUndefined(Fe("remember"))&&Fe("remember");!function(e){y.apply(this,arguments)}(e="false"==e)}),[]),l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:o,setErrorShow:i,show:r}),l.a.createElement("div",null),v&&l.a.createElement("div",{className:"input-group"},l.a.createElement("div",{className:"input-group-prepend"},l.a.createElement("span",{className:"input-group-text",id:"prepend-oa-lgout"},l.a.createElement("i",{className:"fa fa-power-off"})," ")),l.a.createElement("div",null,l.a.createElement("a",{className:"btn btn-primary",href:"https://login.openathens.net/signout"},"Fully Logout from OpenAthens")," ",l.a.createElement("a",{className:"btn btn-primary",href:"/Home"},l.a.createElement("i",{className:"fa fa-home"})," Home"))))},nt=a(14),lt=function(e){var t=Object(n.useState)(""),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(!1),u=Object(h.a)(d,2),E=u[0],f=u[1],p=Object(n.useState)(!0),b=Object(h.a)(p,2),v=b[0],y=b[1],g=k().setAuthTokens;return l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(se,{error:o,setErrorShow:f,show:E}),l.a.createElement(j.a,null),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"},l.a.createElement(M,e)),l.a.createElement(A.a,{md:"6"},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(R.a,{variant:"info"},l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,null,l.a.createElement("h2",null,"Request password reset")),l.a.createElement("br",null),l.a.createElement(U.a,{onSubmit:function(e){g(""),nt.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/User/LoginResetEmail":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/User/LoginResetEmail",{username:r}).then((function(e){e?C.default.isUndefined(e.status)||200!==e.status?(m(e.Error),f(!0)):y(!1):(m("Invalid User name or Password"),f(!0))})).catch((function(e){m(e),f(!0)})),e.preventDefault()}},l.a.createElement(U.a.Group,{controlId:"Username"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-envelope"})," Enter Your Email Address"),l.a.createElement(U.a.Control,{type:"email",name:"Username",placeholder:"Enter email",value:r,onChange:function(e){return i(e.target.value)},required:!0}),l.a.createElement(P.a,{variant:"success",hidden:v},"Password reset email sent. If you missed the email, please check your spam/junk folder.")),l.a.createElement(x.a,{className:"btn btn-primary btn-lg pull-right",type:"submit"},"Reset Password ",l.a.createElement("i",{className:"fa fa-sign-in"}))))))))))},rt=a(14),it=function(e){var t=Object(n.useState)(!0),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(""),u=Object(h.a)(d,2),E=u[0],b=u[1],v=Object(n.useState)(""),y=Object(h.a)(v,2),g=y[0],O=y[1],_=Object(n.useState)(""),S=Object(h.a)(_,2),N=S[0],w=S[1],k=Object(n.useState)(!1),T=Object(h.a)(k,2),D=T[0],L=T[1],I=Object(n.useState)(!0),H=Object(h.a)(I,2),W=H[0],K=H[1],V=Object(n.useState)(!0),q=Object(h.a)(V,2),B=q[0],Z=q[1];function F(){return(F=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:rt.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/User/getCheck":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/User/getCheck",{params:{key:Fe("_t")},withCredentials:!0}).then((function(e){if(200===e.status)e.data.key?w(e.data.key):(i({message:e.data.message}),Z(!1),m(!0));else{new Error(e.message);i({message:e.message}),m(!0),Z(!1)}})).catch((function(e){C.default.isEmpty(e)||(i(e),m(!0),Z(!1))}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function G(){return(G=Object(p.a)(f.a.mark((function t(){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:rt.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/User/UpdateToken":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/User/UpdateToken",{key:N,passkey:g}).then((function(t){t?C.default.isUndefined(t.status)||200!==t.status?(i(t.Error),m(!0)):e.history.push({pathname:"/Home",state:{withCredentials:!0}}):(i({message:"Password mismatched!"}),m(!0))})).catch((function(e){i(e),m(!0)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}Object(n.useEffect)((function(){!function(){F.apply(this,arguments)}()}),[N,W,D]);return l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(se,{error:r,setErrorShow:m,show:o}),l.a.createElement(j.a,null),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"},l.a.createElement(M,e)),l.a.createElement(A.a,{md:"9"},l.a.createElement(j.a,null,l.a.createElement(A.a,null,B&&l.a.createElement(R.a,{variant:"info"},l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,null,l.a.createElement("h2",null,"Update Password!")),l.a.createElement(U.a,{onSubmit:function(e){!1===D&&(r||i({message:"Invalid Password"})),r?m(!0):(m(!1),function(){G.apply(this,arguments)}()),e.preventDefault()}},l.a.createElement(U.a.Group,{controlId:"pass1"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-lock"})," Enter New Password"),l.a.createElement(ce.a,{isRequired:!0,password:E,minLength:5,minScore:2,changeCallback:function(e){b(e.password),L(e.isValid),!0!==e.isValid||g!==e.password?i({message:"Invalid Password"}):i(!1)},inputProps:{name:"password1",autoComplete:"off",required:!0,className:"form-control"}})),l.a.createElement(U.a.Group,{controlId:"pass2"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-lock"})," Re-type New Password"),l.a.createElement(ce.a,{isRequired:!0,password:g,minLength:5,minScore:2,changeCallback:function(e){O(e.password),L(e.isValid),i(e.isValid),E===e.password&&E.length>=6?K(!0):K(!1),E!==e.password||E.length<6?(L(!1),i({message:"Password mismatched !"})):(L(e.isValid),i(!1))},inputProps:{name:"password2",autoComplete:"off",required:!0,className:"form-control"}})),l.a.createElement(P.a,{variant:"info"},"You must specify a password of"," ",l.a.createElement("b",null,"minimum 6 characters.")," You can choose any combination and the password strength meter is for information only."," "),l.a.createElement(P.a,{variant:"warning",hidden:W},"Password Mismatched"),l.a.createElement(x.a,{className:"btn btn-success btn-lg pull-right",type:"submit",disabled:r},"Update Password ",l.a.createElement("i",{className:"fa fa-sign-in"}))))))))))},ct=a(14),st=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(!1),u=Object(h.a)(d,2),E=u[0],b=u[1],v=Object(n.useState)(""),y=Object(h.a)(v,2),g=y[0],O=y[1],_=Object(n.useState)(""),S=Object(h.a)(_,2),w=S[0],T=S[1],L=Object(n.useState)(""),I=Object(h.a)(L,2),H=I[0],W=I[1],K=Object(n.useState)(""),V=Object(h.a)(K,2),q=V[0],B=V[1],Z=Object(n.useState)(""),F=Object(h.a)(Z,2),G=F[0],Y=F[1],z=Object(n.useState)(!1),Q=Object(h.a)(z,2),$=Q[0],J=Q[1],X=k().setAuthTokens;function ee(){return(ee=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ct.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Auth/Login":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Auth/Login",{username:H,password:g}).then((function(e){e?C.default.isUndefined(e.status)||200!==e.status?(m(e.Error),J(!0)):X(e.data):(m("Invalid User name or Password"),J(!0))})).catch((function(e){m(e),J(!0)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(n.useEffect)((function(){document.title="Signup - Trip Medical Database",document.body.classList.remove("homepage")}),[]),l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(se,{error:o,setErrorShow:J,show:$}),l.a.createElement(N.a,null,l.a.createElement("meta",{name:"description",content:"Evidence-based answers for health professionals | Searching sources such as systematic reviews, clinical guidelines and RCTs"})),l.a.createElement(j.a,null),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"},l.a.createElement(M,e)),l.a.createElement(A.a,{md:"6"},l.a.createElement(R.a,null,l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,null,l.a.createElement("h2",null,"Create your Trip Account")," It opens up a host of features and helps us to keep in touch with you"),l.a.createElement("br",null),l.a.createElement(U.a,{noValidate:!0,validated:r,onSubmit:function(t){!1===t.currentTarget.checkValidity()?t.stopPropagation():ct.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Registration/saveRegistration":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Registration/saveRegistration",{email:H,password:g,confirmpassword:w,terms:G,GDPR:q},{withCredentials:!0}).catch((function(e){console.log(e)})).then((function(t){if(200===t.status)0==t.data.status?(m(t.data),J(!0)):(b(!0),function(){ee.apply(this,arguments)}(),window.setTimeout((function(){b(!1),e.history.push({pathname:"/Profile",state:{withCredentials:!0}})}),2e3));else{var a=new Error(t.error_message);m(a),J(!0)}})),t.preventDefault(),i(!0)}},l.a.createElement(U.a.Group,{controlId:"Email"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-envelope"})," Email address"),l.a.createElement(U.a.Control,{type:"email",name:"Email",placeholder:"Enter email",value:H,onChange:function(e){return W(e.target.value)},required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"Please provide a valid email")),l.a.createElement(U.a.Group,{controlId:"Password"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-lock"})," Password"),l.a.createElement(U.a.Control,{type:"password",name:"Password",placeholder:"Password",value:g,onChange:function(e){return O(e.target.value)},minLength:8,required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"Please provide a password - minimum length 8 characters")),l.a.createElement(U.a.Group,{controlId:"ConfirmPassword"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-lock"})," Confirm Password"),l.a.createElement(U.a.Control,{type:"password",placeholder:"Confirm Password",name:"ConfirmPassword",value:w,onChange:function(e){return T(e.target.value)},minLength:8,required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"Please provide a password - minimum length 8 characters")),l.a.createElement(U.a.Group,{id:"GDPRcheckbox"},l.a.createElement(U.a.Check,{type:"checkbox",name:"GDPRcheckbox",onChange:function(e){return B(e.target.checked)},feedback:"You must agree to GDPR requirements in order to proceed",label:"Click here to allow Trip Database to send me occasional emails relating\r\nto Trip and its products (such as new features, evidence, etc).\r\nUnder GDPR this constitutes marketing so we need your permission"})),l.a.createElement(U.a.Group,{id:"Termscheckbox"},l.a.createElement(U.a.Check,{type:"checkbox",name:"Termscheckbox",onChange:function(e){return Y(e.target.checked)},label:"I accept the Terms of use",required:!0,feedback:"You must agree to the terms and condition in order to proceed"})),E?l.a.createElement("div",{className:"pull-center"},l.a.createElement(D.a,{animation:"border",variant:"success"})):l.a.createElement(x.a,{className:"btn btn-success pull-right btn-lg",type:"submit"},l.a.createElement("i",{className:"fa fa-register"})," Register"),E?l.a.createElement(P.a,{variant:"success pull-left",dismissible:!0},l.a.createElement("div",null,"Registration Successfull!")):""))))))},ot=function(){return l.a.createElement("div",{className:"footer mt-0"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row footer--row-one"},l.a.createElement("div",{className:"col footer--brand"},l.a.createElement("a",{href:"/"},l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 165.17 104.41"},l.a.createElement("g",null,l.a.createElement("path",{d:"M59.36,9.66V6.2Q59.36.62,56,.62H3.34Q0,.62,0,6.2V9.66q0,5.56,3.34,5.57H21.05v61.9H38.31V15.23H56q3.34,0,3.34-5.57M78.13,21.79q-7.47,0-12.14,8.48a17,17,0,0,1-.39-1.79,17.79,17.79,0,0,0-.5-2.06c-.15-.41-.38-.93-.67-1.56a3.23,3.23,0,0,0-1.17-1.4A6.56,6.56,0,0,0,60.31,23a38.78,38.78,0,0,0-6.74.89q-4.51.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71V77.13H66.88V41.87c2.23-3.72,5.19-5.58,8.91-5.58a11.35,11.35,0,0,1,2.89.45,11.28,11.28,0,0,0,2.34.44c1,0,1.79-1.17,2.45-3.51a22.09,22.09,0,0,0,1-5.86,6.75,6.75,0,0,0-1.4-4.18c-.93-1.22-2.58-1.84-5-1.84m81.25,8q-5.79-8-15-8a17.23,17.23,0,0,0-9,2.34,15.67,15.67,0,0,0-6,6,16.76,16.76,0,0,1-.39-1.68,19.62,19.62,0,0,0-.5-2,14.55,14.55,0,0,0-.67-1.62,3.23,3.23,0,0,0-1.17-1.4,6.53,6.53,0,0,0-3-.44,38.78,38.78,0,0,0-6.74.89q-4.52.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71V99.49h16.48v-21a18.85,18.85,0,0,0,11.36,3.46q11.13,0,17.32-8.09t6.18-22.08q0-14-5.79-22M138.11,68.85a15.68,15.68,0,0,1-7.8-2.12V41.87q3.78-6.59,9.13-6.58,9,0,9,16.78T138.11,68.85M99.08,0H96c-4.46,0-6.68,1.19-6.68,3.57v8.11h16.48V3.57Q105.76,0,99.08,0m0,22.85H96c-4.46,0-6.68,1.19-6.68,3.57V77.13h16.48V26.42q0-3.57-6.68-3.57",fill:"#a8a8a8",fillRule:"evenodd"}),l.a.createElement("path",{d:"M37.33,77.53v.58Q37.33,82,31,82H27.26q-6.36,0-6.36-3.9v-.58Z",fill:"#63c608",fillRule:"evenodd"}),l.a.createElement("path",{d:"M67.19,77.53v.58q0,3.9-6.66,3.9h-3.1q-6.66,0-6.66-3.9v-.58Z",fill:"#0e6cbb",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,77.53v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#00a89d",fillRule:"evenodd"}),l.a.createElement("path",{d:"M130.7,100.06v.9q0,3.45-6.55,3.45h-3.06q-6.56,0-6.55-3.45v-.9Z",fill:"#eec82f",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,11.83v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#ba390d",fillRule:"evenodd"}))))),l.a.createElement("div",{className:"col footer--main-nav"},l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement("a",{href:"/",title:"Home"},"Home")),l.a.createElement("li",null,l.a.createElement("a",{href:"/About",title:"About"},"About")),l.a.createElement("li",null,l.a.createElement("a",{href:"/Howtouse",title:"How to use"},"How To Use")),l.a.createElement("li",null,l.a.createElement("a",{href:"/Contact",title:"Contact us"},"Contact us")),l.a.createElement("li",null,l.a.createElement("a",{href:"/Popularsearches/",title:"Contact us"},"Popular Searches")),l.a.createElement("li",null,l.a.createElement("a",{href:"https://blog.tripdatabase.com/",title:"Blog",target:"_blank"},"Blog")),l.a.createElement("li",null,l.a.createElement("a",{href:"/Why",title:"Get Pro"},"Get Trip Pro")))),l.a.createElement("div",{className:"col footer--follow-us"},l.a.createElement("p",null,"Follow us"),l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement("a",{href:"https://twitter.com/tripdatabase",title:"Follow us on Twitter",target:"_blank"},l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 88.96 88.96"},l.a.createElement("title",null,"inline-icon-twitter"),l.a.createElement("path",{d:"M78.3,29.79c0-.75,0-1.51,0-2.26A35.67,35.67,0,0,0,87,18.44,34.78,34.78,0,0,1,76.93,21.2a17.64,17.64,0,0,0,7.71-9.71A35.2,35.2,0,0,1,73.5,15.76a17.55,17.55,0,0,0-30.36,12,17.73,17.73,0,0,0,.45,4A49.92,49.92,0,0,1,7.41,13.43a17.55,17.55,0,0,0,5.44,23.43,17.54,17.54,0,0,1-8-2.2v.22A17.56,17.56,0,0,0,19,52.09a17.52,17.52,0,0,1-4.62.62,17.92,17.92,0,0,1-3.3-.32,17.57,17.57,0,0,0,16.4,12.19A35.23,35.23,0,0,1,5.64,72.1a36.26,36.26,0,0,1-4.19-.25,49.71,49.71,0,0,0,26.91,7.89C60.65,79.74,78.3,53,78.3,29.79Z",fill:"#4a4a4a"})))),l.a.createElement("li",null,l.a.createElement("a",{href:"https://www.facebook.com/tripdatabase",title:"Our Facebook page",target:"_blank"},l.a.createElement("svg",{id:"ed8a37b8-c8d2-4b4e-8a12-0f1a38b0582f","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 88.96 88.96"},l.a.createElement("title",null,"inline-icon-facebook"),l.a.createElement("path",{d:"M34.58,21.84V32.22H24.67V44.48h9.91V81.26h16.5V44.48h12l1.19-12.26H51.08V27.11c0-2.93.64-4.09,3.68-4.09h9.53V7.7H51.72C39.85,7.7,34.58,12.55,34.58,21.84Z",fill:"#4a4a4a"})))),l.a.createElement("li",null,l.a.createElement("a",{href:"https://www.youtube.com/channel/UCK1DV5A9DzvyXEL1BsmAyjg",target:"_blank",title:"Our Youtube channel"},l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 121.48 85.04"},l.a.createElement("path",{d:"M119,13.28A15.23,15.23,0,0,0,108.21,2.54C98.73,0,60.74,0,60.74,0s-38,0-47.46,2.54A15.21,15.21,0,0,0,2.54,13.28C0,22.75,0,42.52,0,42.52S0,62.29,2.54,71.76A15.21,15.21,0,0,0,13.28,82.5C22.75,85,60.74,85,60.74,85s38,0,47.47-2.54A15.23,15.23,0,0,0,119,71.76c2.53-9.47,2.53-29.24,2.53-29.24S121.48,22.75,119,13.28ZM48.59,60.74V24.3L80.16,42.52Z",fill:"#4a4a4a"}))))))),l.a.createElement("hr",null),l.a.createElement("div",{className:"row footer--row-two"},l.a.createElement("div",{className:"col-md footer--sub-nav"},l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement("a",{href:"/Terms",title:"Terms of use"},"Terms of use")),l.a.createElement("li",null,l.a.createElement("a",{href:"/Privacy",title:"Privacy"},"Privacy")),l.a.createElement("li",null,l.a.createElement("a",{href:"/Acceptableuse",title:"Acceptable usage"},"Acceptable usage")),l.a.createElement("li",null,l.a.createElement("a",{href:"/Cookies",title:"Tripdatabase - Cookies Policy"},"Cookies Policy"))))),l.a.createElement("div",{className:"row footer--row-two"},l.a.createElement("div",{className:"col-md footer--sub-nav center"},l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement("p",{className:""},"\xa9 ",(new Date).getFullYear()," Trip Database Ltd. company number 04316414. Trip is proud to be made in the UK.")))))))},mt=(a(129),function(e){var t=e.currentPage,a=e.data,r=(e.error,e.errorshow,e.setData),i=(e.setErrors,e.setErrorShow,e.clsName);function c(){return(c=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Y.a.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/WPages":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/WPages",{params:{page:t},withCredentials:!0}).then((function(e){if(200===e.status)r(e.data.html);else{new Error(e.error);r("

Page not found!

")}})).catch((function(e){r("

Page not found!

")}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(n.useEffect)((function(){document.body.classList.remove("homepage"),function(){c.apply(this,arguments)}()}),[t]),l.a.createElement("div",{className:i,dangerouslySetInnerHTML:{__html:a}})}),dt=(a(14),function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)("contact-us"),u=Object(h.a)(d,2),E=u[0],f=(u[1],Object(n.useState)([])),p=Object(h.a)(f,2),b=p[0],v=p[1];return document.title="Contact Us: Trip Medical Database",l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:o,setErrorShow:i,show:r}),l.a.createElement("div",null,l.a.createElement(mt,{currentPage:E,data:b,error:o,errorsShow:r,setData:v,setErrors:m,setErrorShow:i})))}),ut=(a(14),function(e){e.props;var t=e.show,a=e.setProShow,r=e.setSignupShow;return Object(n.useEffect)((function(){document.title="Signup - Trip Medical Database",document.body.classList.remove("homepage")}),[]),l.a.createElement(l.a.Fragment,null,l.a.createElement(H.a,{size:"lg",id:"goPro-mdl",className:"go-pro-modal",show:t,onHide:function(e){return a(!1)},onShow:function(e){var t=document.getElementById("goPro-mdl");t&&t.classList.add("modal-dialog--login")},animation:!1,centered:!0},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement("div",{className:"logo"},l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 165.17 104.41"},l.a.createElement("g",null,l.a.createElement("path",{d:"M59.36,9.66V6.2Q59.36.62,56,.62H3.34Q0,.62,0,6.2V9.66q0,5.56,3.34,5.57H21.05v61.9H38.31V15.23H56q3.34,0,3.34-5.57M78.13,21.79q-7.47,0-12.14,8.48a17,17,0,0,1-.39-1.79,17.79,17.79,0,0,0-.5-2.06c-.15-.41-.38-.93-.67-1.56a3.23,3.23,0,0,0-1.17-1.4A6.56,6.56,0,0,0,60.31,23a38.78,38.78,0,0,0-6.74.89q-4.51.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71V77.13H66.88V41.87c2.23-3.72,5.19-5.58,8.91-5.58a11.35,11.35,0,0,1,2.89.45,11.28,11.28,0,0,0,2.34.44c1,0,1.79-1.17,2.45-3.51a22.09,22.09,0,0,0,1-5.86,6.75,6.75,0,0,0-1.4-4.18c-.93-1.22-2.58-1.84-5-1.84m81.25,8q-5.79-8-15-8a17.23,17.23,0,0,0-9,2.34,15.67,15.67,0,0,0-6,6,16.76,16.76,0,0,1-.39-1.68,19.62,19.62,0,0,0-.5-2,14.55,14.55,0,0,0-.67-1.62,3.23,3.23,0,0,0-1.17-1.4,6.53,6.53,0,0,0-3-.44,38.78,38.78,0,0,0-6.74.89q-4.52.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71V99.49h16.48v-21a18.85,18.85,0,0,0,11.36,3.46q11.13,0,17.32-8.09t6.18-22.08q0-14-5.79-22M138.11,68.85a15.68,15.68,0,0,1-7.8-2.12V41.87q3.78-6.59,9.13-6.58,9,0,9,16.78T138.11,68.85M99.08,0H96c-4.46,0-6.68,1.19-6.68,3.57v8.11h16.48V3.57Q105.76,0,99.08,0m0,22.85H96c-4.46,0-6.68,1.19-6.68,3.57V77.13h16.48V26.42q0-3.57-6.68-3.57",fill:"#533764",fillRule:"evenodd"}),l.a.createElement("path",{d:"M37.33,77.53v.58Q37.33,82,31,82H27.26q-6.36,0-6.36-3.9v-.58Z",fill:"#63c608",fillRule:"evenodd"}),l.a.createElement("path",{d:"M67.19,77.53v.58q0,3.9-6.66,3.9h-3.1q-6.66,0-6.66-3.9v-.58Z",fill:"#0e6cbb",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,77.53v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#00a89d",fillRule:"evenodd"}),l.a.createElement("path",{d:"M130.7,100.06v.9q0,3.45-6.55,3.45h-3.06q-6.56,0-6.55-3.45v-.9Z",fill:"#eec82f",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,11.83v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#ba390d",fillRule:"evenodd"}))))),l.a.createElement(H.a.Body,null,l.a.createElement("button",{"aria-label":"Close",className:"close","data-dismiss":"modal",type:"button",onClick:function(e){return a(!1)}},l.a.createElement("span",{"aria-hidden":"true"},"\xd7")),l.a.createElement("h2",{className:"modal-title",id:"loginModalLabel"},"Upgrade to Pro"),l.a.createElement("p",{className:"mt-2"},"Trip Pro offers more content, more functionality, no adverts and more"),l.a.createElement("h5",null,"Personal Subscription:"),l.a.createElement("button",{type:"button",className:"btn btn-default btn btn-primary",onClick:function(e){return window.location.href="/Subscription"}},"Become a pro user for just $55.00 a year"),l.a.createElement("p",{className:"small-print mt-3"},"Don\u2019t forget you can cancel subscription renewal at any time"),l.a.createElement("hr",null),l.a.createElement("h5",null,"Institutional Subscription"),l.a.createElement("a",{target:"_blank",href:"https://blog.tripdatabase.com/2021/07/03/institutional-subscriptions/",className:"btn btn-primary "},"Click here to see Institutional price list"),l.a.createElement("a",{href:"mailto:enquiries@tripdatabase.com",target:"_blank",className:"btn btn-primary btn-outline mt-3"},l.a.createElement("i",{className:"fa fa-envelope mr-2"}),"Contact us about Institutional Subscription"),l.a.createElement("hr",null),l.a.createElement("p",{className:"text-center text-muted mt-4 mb-2"},"Don't have an account yet?"," ",l.a.createElement("a",{className:"fw-bold text-body",href:"#!",onClick:function(e){document.getElementById("nav-signup").click(),a(!1),r(!0),e.preventDefault()}},l.a.createElement("u",null,"Sign up here"))))))}),Et=a(14),ft=function(e){e.props;var t=e.show,a=e.setLoginShow,r=e.setSignupShow,i=e.setErrorShow,c=e.setErrors,s=Object(n.useState)(!1),o=Object(h.a)(s,2),m=o[0],d=o[1],u=Object(n.useState)(!1),E=Object(h.a)(u,2),b=E[0],v=E[1],y=Object(n.useState)(!1),g=Object(h.a)(y,2),O=g[0],_=g[1],N=Object(n.useState)(""),w=Object(h.a)(N,2),T=w[0],j=w[1],A=Object(n.useState)(""),R=Object(h.a)(A,2),L=R[0],I=R[1],M=Object(n.useState)(""),W=Object(h.a)(M,2),K=W[0],V=W[1],q=Object(n.useState)(""),B=Object(h.a)(q,2),Z=B[0],F=B[1],G=Object(n.useState)(""),Y=Object(h.a)(G,2),z=Y[0],Q=Y[1],$=Object(n.useState)(""),J=Object(h.a)($,2),X=J[0],ee=J[1],te=Object(n.useState)(""),ae=Object(h.a)(te,2),ne=ae[0],le=ae[1],re=k().setAuthTokens;function ie(){return(ie=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Et.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Auth/Login":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Auth/Login",{username:K,password:T},{withCredentials:!0}).then((function(e){e?C.default.isUndefined(e.status)||200!==e.status?(c(e.Error),i(!0)):(re(e.data),window.setTimeout((function(){_(!1),window.location.href="/Profile"}),1100)):(c("Invalid User name or Password"),i(!0))})).catch((function(e){c(e),i(!0)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(n.useEffect)((function(){document.title="Trip Medical Database",document.body.classList.remove("homepage")}),[]),l.a.createElement(l.a.Fragment,null,l.a.createElement(H.a,{size:"lg",id:"signup-mdl",show:t,onHide:function(e){return r(!1)},onShow:function(e){var t=document.getElementById("signup-mdl");t&&t.classList.add("modal-dialog--login")},animation:!1,centered:!0},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement("div",{className:"logo"},l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 165.17 104.41"},l.a.createElement("g",null,l.a.createElement("path",{d:"M59.36,9.66V6.2Q59.36.62,56,.62H3.34Q0,.62,0,6.2V9.66q0,5.56,3.34,5.57H21.05v61.9H38.31V15.23H56q3.34,0,3.34-5.57M78.13,21.79q-7.47,0-12.14,8.48a17,17,0,0,1-.39-1.79,17.79,17.79,0,0,0-.5-2.06c-.15-.41-.38-.93-.67-1.56a3.23,3.23,0,0,0-1.17-1.4A6.56,6.56,0,0,0,60.31,23a38.78,38.78,0,0,0-6.74.89q-4.51.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71V77.13H66.88V41.87c2.23-3.72,5.19-5.58,8.91-5.58a11.35,11.35,0,0,1,2.89.45,11.28,11.28,0,0,0,2.34.44c1,0,1.79-1.17,2.45-3.51a22.09,22.09,0,0,0,1-5.86,6.75,6.75,0,0,0-1.4-4.18c-.93-1.22-2.58-1.84-5-1.84m81.25,8q-5.79-8-15-8a17.23,17.23,0,0,0-9,2.34,15.67,15.67,0,0,0-6,6,16.76,16.76,0,0,1-.39-1.68,19.62,19.62,0,0,0-.5-2,14.55,14.55,0,0,0-.67-1.62,3.23,3.23,0,0,0-1.17-1.4,6.53,6.53,0,0,0-3-.44,38.78,38.78,0,0,0-6.74.89q-4.52.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71V99.49h16.48v-21a18.85,18.85,0,0,0,11.36,3.46q11.13,0,17.32-8.09t6.18-22.08q0-14-5.79-22M138.11,68.85a15.68,15.68,0,0,1-7.8-2.12V41.87q3.78-6.59,9.13-6.58,9,0,9,16.78T138.11,68.85M99.08,0H96c-4.46,0-6.68,1.19-6.68,3.57v8.11h16.48V3.57Q105.76,0,99.08,0m0,22.85H96c-4.46,0-6.68,1.19-6.68,3.57V77.13h16.48V26.42q0-3.57-6.68-3.57",fill:"#533764",fillRule:"evenodd"}),l.a.createElement("path",{d:"M37.33,77.53v.58Q37.33,82,31,82H27.26q-6.36,0-6.36-3.9v-.58Z",fill:"#63c608",fillRule:"evenodd"}),l.a.createElement("path",{d:"M67.19,77.53v.58q0,3.9-6.66,3.9h-3.1q-6.66,0-6.66-3.9v-.58Z",fill:"#0e6cbb",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,77.53v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#00a89d",fillRule:"evenodd"}),l.a.createElement("path",{d:"M130.7,100.06v.9q0,3.45-6.55,3.45h-3.06q-6.56,0-6.55-3.45v-.9Z",fill:"#eec82f",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,11.83v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#ba390d",fillRule:"evenodd"}))))),l.a.createElement(H.a.Body,null,l.a.createElement("button",{"aria-label":"Close",className:"close","data-dismiss":"modal",type:"button",onClick:function(e){return r(!1)}},l.a.createElement("span",{"aria-hidden":"true"},"\xd7")),l.a.createElement("h2",{className:"modal-title",id:"loginModalLabel"},"Create a new Trip account"),l.a.createElement(U.a,{noValidate:!0,validated:m,onSubmit:function(e){!1===e.currentTarget.checkValidity()?e.stopPropagation():(v(!0),Et.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Registration/saveRegistration":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Registration/saveRegistration",{email:K,password:T,confirmpassword:L,firstname:Z,lastname:z,terms:ne,GDPR:X},{withCredentials:!0}).catch((function(e){console.log(e)})).then((function(e){if(200===e.status)0==e.data.status?(c(e.data),i(!0),v(!1)):(_(!0),function(){ie.apply(this,arguments)}());else{var t=new Error(e.error_message);c(t),i(!0),v(!1)}}))),e.preventDefault(),d(!0)}},l.a.createElement(U.a.Group,{controlId:"Firstname"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-user"})," Firstname"),l.a.createElement(U.a.Control,{type:"text",name:"firstname",placeholder:"Enter firstname",value:Z,autoComplete:"Off",onChange:function(e){return F(e.target.value)},required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"*Firstname required")),l.a.createElement(U.a.Group,{controlId:"Firstname"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-user"})," Lastname"),l.a.createElement(U.a.Control,{type:"text",name:"lastname",autoComplete:"Off",placeholder:"Enter lastname",value:z,onChange:function(e){return Q(e.target.value)},required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"*Lastname required")),l.a.createElement(U.a.Group,{controlId:"Email"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-envelope"})," Email address"),l.a.createElement(U.a.Control,{type:"email",name:"Email",autoComplete:"Off",placeholder:"Enter email",value:K,onChange:function(e){return V(e.target.value)},required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"Please provide a valid email")),l.a.createElement(U.a.Group,{controlId:"Password"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-lock"})," Password"),l.a.createElement(U.a.Control,{type:"password",name:"Password",autoComplete:"Off",placeholder:"Password",value:T,onChange:function(e){return j(e.target.value)},minLength:8,required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"Please provide a password - minimum length 8 characters")),l.a.createElement(U.a.Group,{controlId:"ConfirmPassword"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-lock"})," Confirm Password"),l.a.createElement(U.a.Control,{type:"password",autoComplete:"Off",placeholder:"Confirm Password",name:"ConfirmPassword",value:L,onChange:function(e){return I(e.target.value)},minLength:8,required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"Please provide a password - minimum length 8 characters")),l.a.createElement(U.a.Group,{id:"GDPRcheckbox"},l.a.createElement(U.a.Check,{type:"checkbox",name:"GDPRcheckbox",onChange:function(e){return ee(e.target.checked)},feedback:"You must agree to GDPR requirements in order to proceed",label:"Click here to allow Trip Database to send me occasional emails relating\r\nto Trip and its products (such as new features, evidence, etc).\r\nUnder GDPR this constitutes marketing so we need your permission"})),l.a.createElement(U.a.Group,{id:"Termscheckbox"},l.a.createElement(U.a.Check,{type:"checkbox",name:"Termscheckbox",onChange:function(e){return le(e.target.checked)},label:"I accept the Terms of use",required:!0,feedback:"You must agree to the terms and condition in order to proceed"})),O?l.a.createElement("div",{className:"pull-center"},l.a.createElement(D.a,{animation:"border",variant:"success"})," Processing request.."):l.a.createElement(x.a,{className:"btn btn-success pull-right btn-lg",type:"submit",disabled:b},l.a.createElement("i",{className:"fa fa-register"})," Register"),O?l.a.createElement(P.a,{variant:"success pull-left",dismissible:!0},l.a.createElement("div",null,"Registration Successfull!")):"",l.a.createElement("hr",null),l.a.createElement("p",{className:"text-center text-muted mt-4 mb-2"},l.a.createElement(S.a,{to:"/",onClick:function(e){document.getElementById("nav-login").click(),r(!1),a(!0),e.preventDefault()}},"Have already an account?"))))))},pt=a(464),ht=a(969),bt=function(e){var t=e.children,a=e.eventKey,n=e.callback,r=Object(pt.b)(a,(function(){return n&&n(a)}));return l.a.createElement("button",{className:"btn btn-link","data-toggle":"collapse",type:"button",onClick:r},t)},vt=function(){return l.a.createElement(ht.a,{defaultActiveKey:"0"},l.a.createElement(R.a,null,l.a.createElement(R.a.Header,null,l.a.createElement(bt,{eventKey:"0"}," ","How does the filtering system work?",l.a.createElement("i",{className:"fa fa-play-circle"}))),l.a.createElement(ht.a.Collapse,{eventKey:"0"},l.a.createElement(R.a.Body,{className:"card-body"}," ","The filters on left-hand side are intended to make it easier to find the most suitable content for your needs. Publishers are classified based on their output (e.g. Cochrane are classified in systematic reviews, NEJM as key primary research etc). By clicking on the systematic review filter you restrict the results to just systematic reviews."))),l.a.createElement(R.a,null,l.a.createElement(R.a.Header,null,l.a.createElement(bt,{eventKey:"1"}," ","What\u2019s the history of Trip?",l.a.createElement("i",{className:"fa fa-play-circle"}))),l.a.createElement(ht.a.Collapse,{eventKey:"1"},l.a.createElement(R.a.Body,{className:"card-body"}," ","Trip was launched in 1997. It was designed to help the two founders rapidly answer clinical questions. The idea was to bring together all the \u201cevidence based\u201d content in one place and to search that. Since its launch Trip has been searched over 175 million times.",l.a.createElement("br",null),"Trip became incorporated (a limited company) in 2001 with the two shareholders being Jon Brassey and Dr Chris Price. They remain the sole shareholders."))),l.a.createElement(R.a,null,l.a.createElement(R.a.Header,null,l.a.createElement(bt,{eventKey:"2"}," ","How does the Trip algorithm work?",l.a.createElement("i",{className:"fa fa-play-circle"}))),l.a.createElement(ht.a.Collapse,{eventKey:"2"},l.a.createElement(R.a.Body,{className:"card-body"},"The algorithm uses three main factors when deciding the position of particular search results:",l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("ul",null,l.a.createElement("li",null,"Text score, based on how relevant the document is to the search query."),l.a.createElement("li",null,"Publication score. As far as we know Trip is unique in using a publication score, based on quality, to help order results. So, a high quality resource (such as Cochrane) will have a higher score than say the BMJ and this again will score more highly than an eTextbook."),l.a.createElement("li",null,"Date. The more recent the document the higher the score.")),"These three elements are combined to give each document a score. The document with the highest score appears at the top of the results."))),l.a.createElement(R.a,null,l.a.createElement(R.a.Header,null,l.a.createElement(bt,{eventKey:"3"},"How are you financed?",l.a.createElement("i",{className:"fa fa-play-circle"}))),l.a.createElement(ht.a.Collapse,{eventKey:"3"},l.a.createElement(R.a.Body,{className:"card-body"}," ","Although we\u2019re a commercial company we operate more like a \u2018not for profit\u2019 company. Our income tends to go on wages, development or other associated costs. Our incomes comes from a number of different sources:",l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("ul",null,l.a.createElement("li",null,"Freemium access. All users get access to a great service, but for subscribers they get an even better one, with more content and more functionality."),l.a.createElement("li",null,"Rapid reviews. We undertake a number of bespoke, rapid reviews, for 3rd party organisations."),l.a.createElement("li",null,"Consultancy. We advise on many aspects of evidence, literature searching, reviewing and decision support."))))),l.a.createElement(R.a,null,l.a.createElement(R.a.Header,null,l.a.createElement(bt,{eventKey:"4"},"How is the content selected for Trip?",l.a.createElement("i",{className:"fa fa-play-circle"}))),l.a.createElement(ht.a.Collapse,{eventKey:"4"},l.a.createElement(R.a.Body,{className:"card-body"},"We identify new sources to add to Trip using two main methods:",l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("ol",null,l.a.createElement("li",null,"Our continued work in evidence reviewing; If we find a source that\u2019s useful and not in Trip we will attempt to add it to the index."),l.a.createElement("li",null,"Our network of users. Over the years we have developed a network of users who are keen to see Trip develop. They will often suggest sites and in these situations we typically take an in-house decision as to the suitability of the content.")),"NOTE: We typically do not consider sources where a person linked with the source suggest we include it!"))),l.a.createElement(R.a,null,l.a.createElement(R.a.Header,null,l.a.createElement(bt,{eventKey:"5"},"What does Trip stand for?",l.a.createElement("i",{className:"fa fa-play-circle"}))),l.a.createElement(ht.a.Collapse,{eventKey:"5"},l.a.createElement(R.a.Body,{className:"card-body"},"Initially Trip stood for Turning Research Into Practice. However, we do not use this anymore and simply use the name Trip!"))),l.a.createElement(R.a,null,l.a.createElement(R.a.Header,null,l.a.createElement(bt,{eventKey:"6"},"What are the benefits of registering?",l.a.createElement("i",{className:"fa fa-play-circle"}))),l.a.createElement(ht.a.Collapse,{eventKey:"6"},l.a.createElement(R.a.Body,{className:"card-body"},"Registering has a number of benefits to a user, these include:",l.a.createElement("br",null),l.a.createElement("br",null),l.a.createElement("ul",null,l.a.createElement("li",null,"Keeping up to date with new research based on your clinical speciality and/or specific topics of interest. Each month, we identify new content focussed on your interests and email these to you."),l.a.createElement("li",null,"If your institution has registered with Trip you can easily access your institution\u2019s full-text via Trip."),l.a.createElement("li",null,"Many clinicians find it useful to keep a record of activity they have spent on Trip. This may be for CPD/CME purposes or simple curiosity."),l.a.createElement("li",null,"Finally, we are currently planning a number of new features that are based on a user\u2019s history of usage. So, by registering we can start to better learn how you use Trip, which will better serve your future information/evidence needs."))))),l.a.createElement(R.a,null,l.a.createElement(R.a.Header,null,l.a.createElement(bt,{eventKey:"7"},"What does the automated search do?",l.a.createElement("i",{className:"fa fa-play-circle"}))),l.a.createElement(ht.a.Collapse,{eventKey:"7"},l.a.createElement(R.a.Body,{className:"card-body"}," ","When registering you are presented with the ability to add terms of interest. This is to allow us to highlight new research which might be of interest. So, every month, as new content is added we search this new content using your recorded keywords."))),l.a.createElement(R.a,null,l.a.createElement(R.a.Header,null,l.a.createElement(bt,{eventKey:"8"},"How can I find out more about Trip?",l.a.createElement("i",{className:"fa fa-play-circle"}))),l.a.createElement(ht.a.Collapse,{eventKey:"8"},l.a.createElement(R.a.Body,{className:"card-body"}," ","Make sure you watch both introductory videos and if you still have any questions, drop us a line at"," ",l.a.createElement("a",{href:"mailto:enquiries@tripdatabase.com",target:"_blank"},"enquiries@tripdatabase.com")))))},yt=(a(14),function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(!1),u=Object(h.a)(d,2),E=(u[0],u[1]),f=Object(n.useState)(!1),p=Object(h.a)(f,2),b=(p[0],p[1]),v=Object(n.useState)(!1),y=Object(h.a)(v,2),g=(y[0],y[1]),O=Object(n.useState)(!1),_=Object(h.a)(O,2),S=_[0],N=_[1],w=ve();return Object(n.useEffect)((function(){document.body.classList.remove("homepage"),N(1!==w.chkLogin&&!0!==w.chkPro)}),[]),l.a.createElement("div",{className:"about-content"},l.a.createElement("div",{className:"about-section"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row justify-content-center"},l.a.createElement("div",{className:"col-12 col-lg-8 text-center"},l.a.createElement("h1",null,"Unlock the full Trip medical database potential with a Pro Account"),l.a.createElement(ut,{props:e,setProShow:i,setSignupShow:m,show:r}),l.a.createElement(ft,{props:e,setLoginShow:E,setSignupShow:m,setErrorShow:g,setErrors:b,show:o}),l.a.createElement("p",null,"100,000s more results and article links, sophisticated search and hi-powered export features from just $55 per year"),!1===w.chkPro?l.a.createElement("a",{className:"btn btn-pro mb-5",type:"button",onClick:function(e){i(!r),e.preventDefault()}},"Upgrade to Pro today for just $55 per year"):"",l.a.createElement("iframe",{className:"mb-3",src:"https://www.youtube.com/embed/uzqUiiaAwtk",title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),l.a.createElement("div",{className:"mb-5"},l.a.createElement("a",{href:"https://www.youtube.com/watch?v=WfL92eSSqHA"},"Watch Part Two here")))))),l.a.createElement("div",{className:"about-section-divider"},l.a.createElement("i",{className:"fa fa-search"})),l.a.createElement("div",{className:"about-section about-section--dark"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col col-12 col-lg-4"},l.a.createElement("div",{className:"about-graphic mr-0 mr-lg-4"},l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 165.17 104.41"},l.a.createElement("g",null,l.a.createElement("path",{d:"M59.36,9.66V6.2Q59.36.62,56,.62H3.34Q0,.62,0,6.2V9.66q0,5.56,3.34,5.57H21.05v61.9H38.31V15.23H56q3.34,0,3.34-5.57M78.13,21.79q-7.47,0-12.14,8.48a17,17,0,0,1-.39-1.79,17.79,17.79,0,0,0-.5-2.06c-.15-.41-.38-.93-.67-1.56a3.23,3.23,0,0,0-1.17-1.4A6.56,6.56,0,0,0,60.31,23a38.78,38.78,0,0,0-6.74.89q-4.51.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71V77.13H66.88V41.87c2.23-3.72,5.19-5.58,8.91-5.58a11.35,11.35,0,0,1,2.89.45,11.28,11.28,0,0,0,2.34.44c1,0,1.79-1.17,2.45-3.51a22.09,22.09,0,0,0,1-5.86,6.75,6.75,0,0,0-1.4-4.18c-.93-1.22-2.58-1.84-5-1.84m81.25,8q-5.79-8-15-8a17.23,17.23,0,0,0-9,2.34,15.67,15.67,0,0,0-6,6,16.76,16.76,0,0,1-.39-1.68,19.62,19.62,0,0,0-.5-2,14.55,14.55,0,0,0-.67-1.62,3.23,3.23,0,0,0-1.17-1.4,6.53,6.53,0,0,0-3-.44,38.78,38.78,0,0,0-6.74.89q-4.52.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71V99.49h16.48v-21a18.85,18.85,0,0,0,11.36,3.46q11.13,0,17.32-8.09t6.18-22.08q0-14-5.79-22M138.11,68.85a15.68,15.68,0,0,1-7.8-2.12V41.87q3.78-6.59,9.13-6.58,9,0,9,16.78T138.11,68.85M99.08,0H96c-4.46,0-6.68,1.19-6.68,3.57v8.11h16.48V3.57Q105.76,0,99.08,0m0,22.85H96c-4.46,0-6.68,1.19-6.68,3.57V77.13h16.48V26.42q0-3.57-6.68-3.57",fill:"#fff",fillRule:"evenodd"}),l.a.createElement("path",{d:"M37.33,77.53v.58Q37.33,82,31,82H27.26q-6.36,0-6.36-3.9v-.58Z",fill:"#63c608",fillRule:"evenodd"}),l.a.createElement("path",{d:"M67.19,77.53v.58q0,3.9-6.66,3.9h-3.1q-6.66,0-6.66-3.9v-.58Z",fill:"#0e6cbb",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,77.53v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#00a89d",fillRule:"evenodd"}),l.a.createElement("path",{d:"M130.7,100.06v.9q0,3.45-6.55,3.45h-3.06q-6.56,0-6.55-3.45v-.9Z",fill:"#eec82f",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,11.83v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#ba390d",fillRule:"evenodd"}))))),l.a.createElement("div",{className:"col"},l.a.createElement("h3",{className:"about-section-title"},"What is Trip Database?"),l.a.createElement("p",null,"Trip is a clinical search engine designed to allow users to quickly and easily find and use high-quality research evidence to support their practice and/or care."),l.a.createElement("p",null,"Trip has been online since 1997 and in that time has developed into the internet\u2019s premier source of evidence-based content. Our motto is \u2018Find evidence fast\u2019 and this is something we aim to deliver for every single search."),l.a.createElement("p",null,"For any questions about Trip, please contact us via"," ",l.a.createElement("a",{href:"mailto:jon.brassey@tripdatabase.com"},"jon.brassey@tripdatabase.com")))),S&&l.a.createElement("div",{className:"row cta-outlined justify-content-center"},l.a.createElement("div",{className:"col col-10 col-lg-6"},l.a.createElement("p",null,"With a free account, you can save your searches and sign up to email alerts for new evidence of interest"),l.a.createElement("a",{className:"btn btn-pro",type:"button",onClick:function(e){i(!1),m(!0),e.preventDefault()}},"Sign up for a free Trip account"))))),l.a.createElement("div",{className:"about-section"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row justify-content-center"},l.a.createElement("div",{className:"col col-12 col-lg-10"},l.a.createElement("h3",{className:"about-section-title text-center"},"Answers to some key questions\u2026"),l.a.createElement(vt,null))),S&&l.a.createElement("div",{className:"row cta-outlined justify-content-center"},l.a.createElement("div",{className:"col col-10 col-lg-6"},l.a.createElement("p",null,"With a free account, you can save your searches and sign up to email alerts for new evidence of interest"),l.a.createElement("a",{className:"btn btn-pro",type:"button",onClick:function(e){i(!1),m(!0),e.preventDefault()}},"Sign up for a free Trip account"))))),l.a.createElement("div",{className:"about-section-divider"},l.a.createElement("i",{className:"fa fa-chart-bar"})),l.a.createElement("div",{className:"about-section about-section--dark"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row justify-content-center"},l.a.createElement("div",{className:"col col-10"},l.a.createElement("h3",{className:"about-section-title text-center"},"How big is Trip?"),l.a.createElement("ul",{className:"about-usps mt-5"},l.a.createElement("li",null,l.a.createElement("h4",{className:"about-usps-title"},"175 Million"),l.a.createElement("p",null,"Searched over 175 million times")),l.a.createElement("li",null,l.a.createElement("h4",{className:"about-usps-title"},"5 Million"),l.a.createElement("p",null,"Has an index of around 5 million documents")),l.a.createElement("li",null,l.a.createElement("h4",{className:"about-usps-title"},"Guidelines"),l.a.createElement("p",null,"Has the largest collection of clinical guidelines")),l.a.createElement("li",null,l.a.createElement("h4",{className:"about-usps-title"},"Evidence Based"),l.a.createElement("p",null,"Has an enviable collection of 'evidence-based' content")),l.a.createElement("li",null,l.a.createElement("h4",{className:"about-usps-title"},"Global Use"),l.a.createElement("p",null,"Trip is used globally and has subscribers from nearly 100 countries")),l.a.createElement("li",null,l.a.createElement("h4",{className:"about-usps-title"},"Codebase"),l.a.createElement("p",null,"Has around 500,000 lines of code"))))))),l.a.createElement("div",{className:"about-section"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col"},l.a.createElement("h2",{className:"about-section-title text-center"},"What do our Free users say?"),l.a.createElement("ul",{className:"quote-cards"},l.a.createElement("li",{className:"card card--quote"},l.a.createElement("p",null,"TRIP database is an excellent metasearch engine. You can search several information resources in one go, filter results easily, and export the references in several formats, including RIS. TRIP is very useful for quick searches as for exhaustive searches."),l.a.createElement("div",{className:"quote-author"},l.a.createElement("div",null,l.a.createElement("p",null,"Rocio Rodriguez"),l.a.createElement("p",null,"Information Specialist")))),l.a.createElement("li",{className:"card card--quote"},l.a.createElement("p",null,'TRIP searches return results from an impressively wide array of clinically useful resources, from primary literature to reviews, evidence-syntheses, and information for patients; TRIP is truly a "pan-search" tool.'),l.a.createElement("div",{className:"quote-author"},l.a.createElement("div",null,l.a.createElement("p",null,"Bill Cayley Jr"),l.a.createElement("p",null,"MD MDiv")))),l.a.createElement("li",{className:"card card--quote"},l.a.createElement("p",null,"Trip offers a user friendly master curation of available evidence on a huge range of topics. It is an indispensable tool for methodologists and clinicians alike"),l.a.createElement("div",{className:"quote-author"},l.a.createElement("div",null,l.a.createElement("p",null,"Christopher Buckle"),l.a.createElement("p",null,"MD FRCPC MBA"))))))))),S&&l.a.createElement("div",{className:"about-section bottom-cta-section"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row justify-content-center"},l.a.createElement("div",{className:"col-12 col-lg-8"},l.a.createElement("h4",{className:"about-section-title"},"Trip is and will always be free to use.",l.a.createElement("br",null),l.a.createElement("br",null),"Sign up for a free account to save your searches and keep track of your topics of interest"),l.a.createElement("a",{type:"button",className:"btn btn-pro",onClick:function(e){i(!1),m(!0),e.preventDefault()}},"Sign up for a free Trip account"),l.a.createElement("p",{className:"small-print"},l.a.createElement("a",{href:"#",type:"button",onClick:function(e){m(!1),i(!0),e.preventDefault()}},"Or click here if you\u2019re interested in our"," ",l.a.createElement("strong",null,"Pro")," service")))))),l.a.createElement("div",{className:"about--bottom-graphic"}))}),gt=a(966),Ot=a(970),_t=a(954),St=a(323),Nt=a(465),wt=a.n(Nt),kt=(a(833),a(88),a(29),a(63)),Ct=(a(88),a(29)),Tt=function(e){var t=e.props,a=e.getHistoryAdv,r=e.setAdvSearchbox,i=e.prepareRecentQuery,c=e.setAdvSearchboxField,s=Object(n.useState)(""),o=Object(h.a)(s,2),m=o[0],d=o[1],u=Object(n.useState)([]),E=Object(h.a)(u,2),f=E[0],p=E[1],b=Object(n.useState)([]),v=Object(h.a)(b,2),y=v[0],g=(v[1],Object(n.useState)(!1)),O=Object(h.a)(g,2),_=O[0],S=(O[1],Object(n.useState)("AND")),N=Object(h.a)(S,2),w=N[0],k=N[1],T=Object(n.useState)(!1),j=Object(h.a)(T,2),P=j[0],A=j[1],D=Object(n.useRef)(!0),R=[],U=[],L=function(e,t){var a;C.default.isEmpty(f)||(a=R=[]).push.apply(a,Object(kt.a)(f));k(t),x(t),e.preventDefault()},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"AND",t="",a=0;return R.map((function(n,l){n>=0&&a>0&&(C.default.isUndefined(e)||(t+=" "+e+" ")),m[n].criteria&&(t+=R.length>1?"(":"",t+=m[n].criteria,t+=R.length>1?")":""),a++})),r(t),t};return Object(n.useEffect)((function(){d(a().reverse()),function e(t){setTimeout((function(){return--t&&e(t),d(a().reverse()),function(){D.current=!1}}),200)}(13)}),[P]),t.isPro&&m&&l.a.createElement("div",{className:"advancedsearch--search-history"},l.a.createElement("ul",{className:"search-history-list"},l.a.createElement("li",{className:"search-history-list--title"},l.a.createElement("div",{className:"search-history-list--title--content"},l.a.createElement("div",{className:"search-history-list-copy"},l.a.createElement("h2",null,"Search History"),m&&l.a.createElement("a",{href:"!#",onClick:function(e){Ct.remove("advanced"),d(""),e.preventDefault()}},"Clear All")),l.a.createElement("div",{className:"search-history-list-results"},l.a.createElement("h3",null,"Results"))),l.a.createElement("div",{className:"search-history-list--title--actions"})),m.map((function(e,n){return n<20?l.a.createElement("li",{key:"checkboxlistitem"+n,id:"checkboxlistitem"+n,className:"search-history-list--single"},l.a.createElement("div",{className:"search-history-list--single--content"},l.a.createElement("div",{className:"search-history-list-copy"},l.a.createElement("input",{type:"checkbox",key:"chk"+n,name:"chkAdv[]",onChange:function(e){!function(e,t){var a;(c(""),C.default.isEmpty(y))||(a=U).push.apply(a,Object(kt.a)(y));C.default.isEmpty(f)?p(f):R=Object(kt.a)(f),!0===e.target.checked?(R.push(t),C.default.isEmpty(f)?p(R):p([].concat(Object(kt.a)(f),[t]))):(C.default.isEmpty(R)||R.splice(R.indexOf(t),1),C.default.isEmpty(f)||f.splice(R.indexOf(t),1),C.default.isEmpty(f)?p(R):p.apply(void 0,[R].concat(Object(kt.a)(f)))),x(w)}(e,n);var t="checkboxlistitem"+n;e.target.checked?document.getElementById(t).classList.add("active"):document.getElementById(t).classList.remove("active")},value:"checkboxitem"+n,id:"checkboxitem"+n}),l.a.createElement("label",{htmlFor:"checkboxitem"+n}," ",l.a.createElement("p",null,"# ",C.default.size(m)-n),l.a.createElement("p",null,function(e){var t="",a="";return C.default.isUndefined(e.search_type)||!C.default.isUndefined(e.criteria)&&C.default.isString(e.criteria)&&(a=e.criteria.split(" "),t+="("+("t"!=e.advsearchfield||e.criteria.includes("title:")?a.map((function(e){return e})).join(" "):a.map((function(e){return"title:"+e})).join(" "))+")"),t}(e)," ")," ")),l.a.createElement("div",{className:"search-history-list-results"},l.a.createElement("a",{key:"total-count"+n,className:"type-small",href:"#",onClick:function(a){!function(e,a){var n=i(a);Ct.set("key","advanced2");var l={criteria:n,advsearchfield:a.advsearchboxfield,search_type:"advanced2"};t.history.push({pathname:"/Searchresult",search:"?criteria="+n+(C.default.isUndefined(a.advsearchboxfield)?"":"&advsearchboxfield="+a.advsearchboxfield)+"&search_type=advanced2",state:l}),e.preventDefault()}(a,e),a.preventDefault()}},C.default.isUndefined(e.total)?"Not found":e.total))),l.a.createElement("div",{className:"search-history-list--single--actions"},l.a.createElement("a",{key:"deleteresults"+n,className:"type-small",href:"#",onClick:function(e){!function(e){var t="";C.default.isUndefined(Ct.get("advanced"))||((t=a().reverse()).splice(e,1),Ct.set("advanced",t.reverse()),A(!P))}(n),e.preventDefault()}},l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},l.a.createElement("path",{d:"M3 6l3 18h12l3-18h-18zm19-4v2h-20v-2h5.711c.9 0 1.631-1.099 1.631-2h5.316c0 .901.73 2 1.631 2h5.711z"}))))):null}))),l.a.createElement("div",{className:"results-list-actions"},l.a.createElement("a",{href:"#",onClick:function(e){e.preventDefault()}},_?"Hide":"Show all")),l.a.createElement("div",{className:"search-history-operator-actions"},l.a.createElement("ul",null,l.a.createElement("li",null,"Combine in a new search"),l.a.createElement("li",null,l.a.createElement("a",{href:"#",onClick:function(e){k("AND"),L(e,"AND")},className:"btn"},"AND")),l.a.createElement("li",null,l.a.createElement("a",{href:"#",onClick:function(e){k("OR"),L(e,"OR")},className:"btn"},"OR")),l.a.createElement("li",null,l.a.createElement("a",{href:"#",onClick:function(e){k("NOT"),L(e,"NOT")},className:"btn"},"NOT")))))},jt=(a(442),a(14)),Pt=a(29),At=a(88);function Dt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rt(e){return e.text}function Ut(e){return l.a.createElement("span",null,e.text)}var Lt=Object(gt.a)((function(e){var t=At.parse(e.location.search),a=null,r="standardsearch";"/Searchresult"==window.location.pathname&&(r=C.default.isUndefined(Pt.get("key"))?"standardsearch":Pt.get("key"));var i=Object(n.useState)(r),c=Object(h.a)(i,2),s=c[0],o=c[1],m=Object(n.useState)(Ze("")),d=Object(h.a)(m,2),u=d[0],E=d[1],b=Object(n.useState)(C.default.isUndefined(t.criteria)||"standard"!=t.search_type?"":t.criteria),v=Object(h.a)(b,2),y=v[0],g=v[1],O=Object(n.useState)(C.default.isUndefined(t.criteria)||"standard"!=t.search_type?"":t.criteria),_=Object(h.a)(O,2),S=_[0],N=_[1],w=Object(n.useState)(C.default.isUndefined(t.criteria)||"pico"!=t.search_type?"":t.criteria),k=Object(h.a)(w,2),T=k[0],j=k[1],P=Object(n.useState)(C.default.isUndefined(t.comparison)?"":t.comparison),A=Object(h.a)(P,2),D=A[0],R=A[1],L=Object(n.useState)(C.default.isUndefined(t.intervention)?"":t.intervention),I=Object(h.a)(L,2),M=I[0],H=I[1],W=Object(n.useState)(C.default.isUndefined(t.outcome)?"":t.outcome),K=Object(h.a)(W,2),V=K[0],q=K[1],B=Object(n.useState)(C.default.isUndefined(t.criteria)||"advanced"!=t.search_type?"":t.criteria),Z=Object(h.a)(B,2),F=(Z[0],Z[1],Object(n.useState)(C.default.isUndefined(t.anywords)?"":t.anywords)),G=Object(h.a)(F,2),Y=(G[0],G[1],Object(n.useState)(C.default.isUndefined(t.exactphrase)?"":t.exactphrase)),z=Object(h.a)(Y,2),Q=(z[0],z[1],Object(n.useState)(C.default.isUndefined(t.excludingwords)?"":t.excludingwords)),$=Object(h.a)(Q,2),J=($[0],$[1],Object(n.useState)(C.default.isUndefined(t.criteria)||"advanced2"!=t.search_type?"":t.criteria)),X=Object(h.a)(J,2),ee=X[0],te=X[1],ae=Object(n.useState)(C.default.isUndefined(t.advfrom)?"":t.advfrom),ne=Object(h.a)(ae,2),le=(ne[0],ne[1],Object(n.useState)(C.default.isUndefined(t.advto)?"":t.advto)),re=Object(h.a)(le,2),ie=(re[0],re[1],Object(n.useState)(C.default.isUndefined(t.from_date)?"":t.from_date)),ce=Object(h.a)(ie,2),se=(ce[0],ce[1],Object(n.useState)(C.default.isUndefined(t.to_date)?"":t.to_date)),oe=Object(h.a)(se,2),me=(oe[0],oe[1],Object(n.useState)(C.default.isUndefined(t.proximity)?"":t.proximity)),de=Object(h.a)(me,2),ue=(de[0],de[1],Object(n.useState)(C.default.isUndefined(t.proximity2)?"":t.proximity2)),Ee=Object(h.a)(ue,2),fe=Ee[0],pe=(Ee[1],Object(n.useState)(C.default.isUndefined(t.advsearchcondition)?"":t.advsearchcondition)),he=Object(h.a)(pe,2),be=he[0],ve=he[1],ye=Object(n.useState)(C.default.isUndefined(t.anywordsfield)?"tb":t.anywordsfield),ge=Object(h.a)(ye,2),Oe=(ge[0],ge[1],Object(n.useState)(C.default.isUndefined(t.allwordsfield)?"tb":t.allwordsfield)),_e=Object(h.a)(Oe,2),Se=(_e[0],_e[1],Object(n.useState)(C.default.isUndefined(t.exactphrasefield)?"tb":t.exactphrasefield)),Ne=Object(h.a)(Se,2),we=(Ne[0],Ne[1],Object(n.useState)(C.default.isUndefined(t.excludingwordsfield)?"tb":t.excludingwordsfield)),ke=Object(h.a)(we,2),Ce=(ke[0],ke[1],Object(n.useState)(C.default.isUndefined(t.advsearchboxfield)?"":t.advsearchboxfield)),Te=Object(h.a)(Ce,2),je=Te[0],Pe=Te[1],Ae=Object(n.useState)(C.default.isUndefined(t.criteria)||"recent"!=t.search_type?"":t.criteria),De=Object(h.a)(Ae,2),Re=(De[0],De[1],Object(n.useState)("")),Ue=Object(h.a)(Re,2),Le=(Ue[0],Ue[1],function(e){return e.toLowerCase().replace(/ not\(/gi," NOT (").replace(/ or\(/gi," OR (").replace(/ and\(/gi," AND (").replace(/\)not /gi,") NOT ").replace(/\)or /gi,") OR ").replace(/\)and /gi,") AND ").replace(/ or /gi," OR ").replace(/ not /gi," NOT ").replace(/ and /gi," AND ").replace(/\u201c/gi,'"').replace(/\u201d/gi,'"').trim()}),xe=function(e){return e.toLowerCase().replace(/\(/gi,"").replace(/\)/gi,"").replace(/ or /gi," ").replace(/[0-9]/g,"").replace(/ not /gi," ").replace(/ NOT /gi," ").replace(/ AND /gi," ").replace(/ and /gi," ").replace(/~/gi,"").replace(/title:/gi,"").replace(/"/gi,"").replace(/,/gi," ").replace(/'/gi,"").trim()},Ie={},Me=function(e){var t="",a="";if(!C.default.isUndefined(e.search_type))switch(e.search_type){case"standard":e.criteria&&(t=e.criteria);break;case"pico":t=function(e){return" title:"+e.criteria+" title:"+e.intervention+" title:"+e.outcome+" title:"+e.comparison}(e);break;case"advanced":e.criteria&&(a=e.criteria.split(" "),t+="("+("t"==e.allwordsfield?a.map((function(e){return"title:"+e})).join(" "):a.map((function(e){return e})).join(" "))+")"),e.anywords&&(a=e.anywords.split(" "),t+=" ("+("t"==e.anywordsfield?a.map((function(e){return"title:"+e})).reduce((function(e,t){return e+" OR "+t})):a.map((function(e){return e})).reduce((function(e,t){return e+" OR "+t})))+")"),e.exactphrase&&(a='"'+e.exactphrase+'"',t+=" ("+("t"==e.anywordsfield?"title:"+a:a)+")"),e.excludingwords&&(a=e.excludingwords.split(" "),t+=" NOT ("+("t"==e.excludingwordsfield?a.map((function(e){return"title:"+e})).join(" "):a.map((function(e){return e})).join(" "))+")"),e.advfrom&&(Ie.from_date=e.advfrom),e.advto&&(Ie.to_date=e.advto);break;case"advanced2":!C.default.isUndefined(e.criteria)&&C.default.isString(e.criteria)&&(a=e.criteria.split(" "),t+="("+("t"!=e.advsearchfield||e.criteria.includes("title:")?a.map((function(e){return e})).join(" "):a.map((function(e){return"title:"+e})).join(" "))+")")}return t},He=function(e){var t=[];t=We(),C.default.size(t)>17&&t.pop(),t.push(e),Pt.set("recent",t)},We=function(){var e="";return C.default.isUndefined(Pt.get("recent"))||(e=Pt.get("recent")),C.default.size(e)>0?e:[]},Ke=function(e){var t=[];t=Ve(),C.default.size(t)>17&&(t.reverse().pop(),t.reverse()),t.push(e),Pt.set("advanced",t)},Ve=function(){var e="";return C.default.isUndefined(Pt.get("advanced"))||(e=Pt.get("advanced")),C.default.size(e)>0?e:[]};function qe(e){return Be.apply(this,arguments)}function Be(){return(Be=Object(p.a)(f.a.mark((function e(t){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a=jt.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Searchsuggestions":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Searchsuggestions",{params:{keywords:t},withCredentials:!0}).then((function(e){if(n===a)return 200==e.status?e.data:[]})).catch((function(e){console.log("SEARCH ERROR")})),e.abrupt("return",n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ze(e){return Fe.apply(this,arguments)}function Fe(){return(Fe=Object(p.a)(f.a.mark((function e(t){var a;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==(a=Dt(t.trim()))){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,qe(a);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ge=function(){var e=Object(p.a)(f.a.mark((function e(t,a){var n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=a.newValue,a.method,g(n),N(n);case 3:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),Ye=function(){var e=Object(p.a)(f.a.mark((function e(t){var a;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.value,e.t0=E,e.next=4,Ze(a);case 4:e.t1=e.sent,(0,e.t0)(e.t1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ze=window.location.pathname,Qe={placeholder:"Search terms",value:y,onChange:Ge,id:"formStandardSearchtext",className:"form-control react-autosuggest__input",role:"search",autoFocus:"/Home"==ze||"/"==ze,required:!0},$e=function(){var e=Le(ee),t=e.replace(/title:\(/gi,"");if(ee&&be){t=(t=xe(t)).split(" ");switch(be){case"OR":e="("+("t"===je?t.map((function(e){return"title:"+e})).reduce((function(e,t){return e+" OR "+t})):t.map((function(e){return e})).reduce((function(e,t){return e+" OR "+t})))+")";break;case"AND":e="("+("t"==je?t.map((function(e){return"title:"+e})).reduce((function(e,t){return e+" AND "+t})):t.map((function(e){return e})).reduce((function(e,t){return e+" AND "+t})))+")";break;case"NOT":e=" NOT ("+("t"==je?t.map((function(e){return"title:"+e})).reduce((function(e,t){return e+" AND "+t})):t.map((function(e){return e})).reduce((function(e,t){return e+" AND "+t})))+")";break;case"phrase":t='"'+t.join(" ")+'"',e="t"===je?"title:"+t:t}}if(C.default.isEmpty(fe)||""!==be||(e='"'+(e=(e=xe(e)).replace(/title:\(/gi,""))+'"~'+fe,e="t"===je?"title:"+e:e),C.default.isEmpty(be)&&C.default.isEmpty(fe)&&"t"==je){var a=e.replace(/\(/gi,"").replace(/\)/gi,"");e=(a=a.split(" ")).map((function(e){return"AND"===e||"OR"===e||"NOT"===e?e:"title:"+e.replace(/title:/gi,"")})).join(" ")}if(e.includes("#")){var n=Ve(),l=e.split(" "),r="",i=!0,c=!1,s=void 0;try{for(var o,m=l[Symbol.iterator]();!(i=(o=m.next()).done);i=!0){var d=o.value;if(d.includes("#")){var u=d.replace(/\D/g,"");C.default.isUndefined(n[u-1])||(r+=Me(n[u-1]))}else r+=" "+d+" "}}catch(E){c=!0,s=E}finally{try{i||null==m.return||m.return()}finally{if(c)throw s}}e=r}return e};return l.a.createElement("div",{className:"site-search"},l.a.createElement(Ot.a,{id:"search-form",activeKey:s,onSelect:function(e){o(e)}},l.a.createElement(_t.a,{eventKey:"standardsearch",variant:"pills",title:" Search ",role:"tablist"},l.a.createElement(U.a,{onSubmit:function(t){t.preventDefault(),Pt.set("key",s);var a={criteria:Le(S),search_type:"standard"};He(a),e.history.push({pathname:"/Searchresult",search:"?criteria="+Le(S)+"&search_type=standard",state:a})}},l.a.createElement(U.a.Group,{controlId:"formStandardSearchtext"},l.a.createElement(St.a,null,l.a.createElement(wt.a,{suggestions:C.default.isArray(u)?u:[],onSuggestionsFetchRequested:Ye,onSuggestionsClearRequested:function(){E([])},getSuggestionValue:Rt,renderSuggestion:Ut,inputProps:Qe,onSuggestionSelected:function(t,a){N(a.suggestionValue),Pt.set("key",s);var n={criteria:Le(a.suggestionValue),search_type:"standard"};He(n),e.history.push({pathname:"/Searchresult",search:"?criteria="+Le(a.suggestionValue)+"&search_type=standard",state:n})}}),l.a.createElement(St.a.Append,null,l.a.createElement(x.a,{type:"submit"},l.a.createElement("i",{className:"fa fa-search"})," Search")))))),l.a.createElement(_t.a,{eventKey:"picosearch",title:" PICO "},l.a.createElement("form",{className:"",onSubmit:function(t){t.preventDefault(),Pt.set("key",s);var a={criteria:Le(T),intervention:Le(M),outcome:Le(V),comparison:Le(D),search_type:"pico"};He(a),e.history.push({pathname:"/Searchresult",search:"?criteria="+Le(T)+"&intervention="+Le(M)+"&comparison="+Le(D)+"&outcome="+Le(V)+"&search_type=pico",state:a})}},l.a.createElement("div",{className:"form-group-inputs"},l.a.createElement("div",{className:"form-group"},l.a.createElement("div",{className:"input-group"},l.a.createElement("div",{className:"input-group-prepend"},l.a.createElement("span",{className:"input-group-text",id:"population"},"Population \xa0\xa0")),l.a.createElement("input",{className:"form-control",type:"text",name:"population",placeholder:"e.g. diabetics",value:T,onChange:function(e){return j(e.target.value)}}))),l.a.createElement("div",{className:"form-group"},l.a.createElement("div",{className:"input-group"},l.a.createElement("div",{className:"input-group-prepend"},l.a.createElement("span",{className:"input-group-text",id:"intervention"},"Intervention\xa0")),l.a.createElement("input",{name:"intervention",placeholder:"e.g. a treatment, diagnostic test",type:"text",id:"formPicoIntervention",className:"form-control",value:M,onChange:function(e){return H(e.target.value)}}))),l.a.createElement("div",{className:"form-group"},l.a.createElement("div",{className:"input-group"},l.a.createElement("div",{className:"input-group-prepend"},l.a.createElement("span",{className:"input-group-text",id:"comparison"},"Comparison\xa0")),l.a.createElement("input",{className:"form-control",type:"text",name:"comparison",placeholder:"any comparison intervention",value:D,onChange:function(e){return R(e.target.value)}}))),l.a.createElement("div",{className:"form-group"},l.a.createElement("div",{className:"input-group"},l.a.createElement("div",{className:"input-group-prepend"},l.a.createElement("span",{className:"input-group-text",id:"outcome"},"Outcome\xa0\xa0\xa0\xa0\xa0\xa0")),l.a.createElement("input",{type:"text",className:"form-control",name:"outcome",placeholder:"e.g. mortality, blood pressure",value:V,onChange:function(e){return q(e.target.value)}})))),l.a.createElement("div",{className:"form-group-submit"},l.a.createElement("button",{type:"submit",className:"btn btn-primary"},l.a.createElement("i",{className:"fa fa-search"})," Search"))),l.a.createElement("div",null,l.a.createElement("i",{className:"fa fa-info-circle text-info"}),l.a.createElement("i",null,"PICO search is not designed for exhaustive searches,"," ",l.a.createElement("a",{href:"https://blog.tripdatabase.com/2023/01/25/pico-search-its-a-special-type-of-search/",target:"_new",rel:"nofollow"},"click here for more information")))),l.a.createElement(_t.a,{eventKey:"Advanced2",title:l.a.createElement("div",null,"Advanced",l.a.createElement("span",{className:"pro-label"},"Pro"))},e.isPro?l.a.createElement("div",{className:"tab-pane active show"},l.a.createElement("div",{className:"advancedsearch"},l.a.createElement(Tt,{props:e,getHistoryAdv:Ve,advsearchbox:ee,setAdvSearchbox:te,setAdvSearchboxField:Pe,prepareRecentQuery:Me}),l.a.createElement("div",{className:"advancedsearch--search-query"},l.a.createElement(U.a,{onSubmit:function(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.preventDefault();var n="";n=$e(),Pt.set("key",s);var l={criteria:n,proximity2:fe,advsearchcondition:be,advsearchfield:je,search_type:"advanced2"};a||Ke(l),e.history.push({pathname:"/Searchresult",search:"?criteria="+Le(n)+"&advsearchboxfield="+je+"&search_type=advanced2",state:l})}},l.a.createElement("div",{className:"advancedsearch--search-query--title"},l.a.createElement("h4",null,"New Search Query")),l.a.createElement("input",{type:"text",name:"advsearchbox",className:"form-control",placeholder:"Enter search term",value:ee,onChange:function(e){return te(e.target.value)}}),l.a.createElement("div",{className:"advancedsearch--search-query--actions"},l.a.createElement("p",null,"Search in"),l.a.createElement("select",{className:"btn dropdown-toggle",name:"where to search",value:je,onChange:function(e){return Pe(e.target.value)}},l.a.createElement("option",{value:""},"Where to search"),l.a.createElement("option",{value:"tb"},"Document Text"),l.a.createElement("option",{value:"t"},"Title Only")),l.a.createElement("select",{id:"searchtypeSelect",className:"btn dropdown-toggle",onChange:function(e){ve(e.target.value)},value:be},l.a.createElement("option",{value:""},"Search type"),l.a.createElement("option",{value:"AND"},"All of these words"),l.a.createElement("option",{value:"OR"},"Any of these words"),l.a.createElement("option",{value:"phrase"},"Exact Phrase")),l.a.createElement(x.a,{type:"submit",className:"btn btn-primary search-btn"},"Search")))),l.a.createElement("div",{className:"advancedsearch--small-print"},l.a.createElement("a",{href:"https://blog.tripdatabase.com/2023/11/17/how-to-use-advanced-search/",target:"_new"},"How to use Advanced Search")))):l.a.createElement("span",{className:"pro-label"},"Pro users only, ",l.a.createElement("a",{href:"/Why"},"Click here to upgrade ")))))})),xt=a(14),It=a(2),Mt=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)("Not Found!"),u=Object(h.a)(d,2),E=(u[0],u[1]),b=Object(n.useState)(!1),v=Object(h.a)(b,2),y=(v[0],v[1]),g=Object(n.useState)(!1),O=Object(h.a)(g,2),_=(O[0],O[1]),S=Object(n.useState)(!1),w=Object(h.a)(S,2),k=(w[0],w[1]),C=Object(n.useState)(!1),T=Object(h.a)(C,2),j=T[0],P=T[1],A=Object(n.useState)(""),D=Object(h.a)(A,2),R=D[0],U=D[1],L=Object(n.useState)([]),x=Object(h.a)(L,2),I=x[0],M=x[1],H=Object(n.useState)([]),W=Object(h.a)(H,2),K=W[0],V=W[1],q=Object(n.useState)([]),B=Object(h.a)(q,2),Z=B[0],F=B[1],G=ve();function Y(){return(Y=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:xt.get(It.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Pages":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Pages",{params:{page:t}}).then((function(e){200===e.status&&(E(e.data),U(e.data.title?e.data.title:""),M(e.data.keywords?e.data.keywords.split(","):""),V(e.data.meta?JSON.parse(e.data.meta):""),F(e.data.topics?JSON.parse(e.data.topics):""))})).catch((function(e){}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(n.useEffect)((function(){document.body.classList.remove("homepage");var t=It.isUndefined(e.match.params)?"":e.match.params.criteria,a=document.querySelector('meta[name="description"]');a&&a.remove(),function(e){Y.apply(this,arguments)}(t),P(1!==G.chkLogin&&!0!==G.chkPro)}),[]),l.a.createElement("div",{className:"seo-content"},l.a.createElement("div",{className:"seo-section"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row justify-content-center"},l.a.createElement("div",{className:"col-12 col-lg-8 text-center"},R&&l.a.createElement("h1",{className:"mb-5"},R),K&&!It.isEmpty(K)&&l.a.createElement(N.a,null,l.a.createElement("title",null,K[0].name),l.a.createElement("meta",{name:"description",content:K[0].content})),l.a.createElement("p",null,"The ",l.a.createElement("strong",null,"Trip Database")," allows you to search a huge range of topics including:"),I&&l.a.createElement("ul",{className:"seo-link-list mb-5"},I.map((function(e,t){return l.a.createElement("li",{key:"ke"+t},l.a.createElement("a",{href:"/Searchresult?criteria="+e+"&search_type=standard"},e))}))),l.a.createElement(ut,{props:e,setProShow:i,setSignupShow:m,show:r}),l.a.createElement(ft,{props:e,setLoginShow:y,setSignupShow:m,setErrorShow:k,setErrors:_,show:o})),Z&&Z.map((function(e,t){return l.a.createElement("div",{key:"topic-key-"+t,className:"col col-12 col-lg-6"},l.a.createElement("h1",null,e.header),l.a.createElement("p",null,e.description))}))))),l.a.createElement("div",{className:"seo-section searchbox-section"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row justify-content-center"},l.a.createElement("div",{className:"col col-10 col-lg-8"},l.a.createElement("h3",{className:"h1 searchbox-section-title"},l.a.createElement("span",{className:"bold"},"Try searching the Trip medical database"),l.a.createElement("br",null),"A smart, fast tool to find high quality clinical research evidence."),l.a.createElement(Lt,null))))),l.a.createElement("div",{className:"seo-section-divider"},l.a.createElement("i",{className:"fa fa-search"})),l.a.createElement("div",{className:"seo-section seo-section--dark"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col col-12 col-lg-4"},l.a.createElement("div",{className:"seo-graphic mr-0 mr-lg-4"},l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 165.17 104.41"},l.a.createElement("g",null,l.a.createElement("path",{d:"M59.36,9.66V6.2Q59.36.62,56,.62H3.34Q0,.62,0,6.2V9.66q0,5.56,3.34,5.57H21.05v61.9H38.31V15.23H56q3.34,0,3.34-5.57M78.13,21.79q-7.47,0-12.14,8.48a17,17,0,0,1-.39-1.79,17.79,17.79,0,0,0-.5-2.06c-.15-.41-.38-.93-.67-1.56a3.23,3.23,0,0,0-1.17-1.4A6.56,6.56,0,0,0,60.31,23a38.78,38.78,0,0,0-6.74.89q-4.51.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71V77.13H66.88V41.87c2.23-3.72,5.19-5.58,8.91-5.58a11.35,11.35,0,0,1,2.89.45,11.28,11.28,0,0,0,2.34.44c1,0,1.79-1.17,2.45-3.51a22.09,22.09,0,0,0,1-5.86,6.75,6.75,0,0,0-1.4-4.18c-.93-1.22-2.58-1.84-5-1.84m81.25,8q-5.79-8-15-8a17.23,17.23,0,0,0-9,2.34,15.67,15.67,0,0,0-6,6,16.76,16.76,0,0,1-.39-1.68,19.62,19.62,0,0,0-.5-2,14.55,14.55,0,0,0-.67-1.62,3.23,3.23,0,0,0-1.17-1.4,6.53,6.53,0,0,0-3-.44,38.78,38.78,0,0,0-6.74.89q-4.52.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71V99.49h16.48v-21a18.85,18.85,0,0,0,11.36,3.46q11.13,0,17.32-8.09t6.18-22.08q0-14-5.79-22M138.11,68.85a15.68,15.68,0,0,1-7.8-2.12V41.87q3.78-6.59,9.13-6.58,9,0,9,16.78T138.11,68.85M99.08,0H96c-4.46,0-6.68,1.19-6.68,3.57v8.11h16.48V3.57Q105.76,0,99.08,0m0,22.85H96c-4.46,0-6.68,1.19-6.68,3.57V77.13h16.48V26.42q0-3.57-6.68-3.57",fill:"#fff",fillRule:"evenodd"}),l.a.createElement("path",{d:"M37.33,77.53v.58Q37.33,82,31,82H27.26q-6.36,0-6.36-3.9v-.58Z",fill:"#63c608",fillRule:"evenodd"}),l.a.createElement("path",{d:"M67.19,77.53v.58q0,3.9-6.66,3.9h-3.1q-6.66,0-6.66-3.9v-.58Z",fill:"#0e6cbb",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,77.53v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#00a89d",fillRule:"evenodd"}),l.a.createElement("path",{d:"M130.7,100.06v.9q0,3.45-6.55,3.45h-3.06q-6.56,0-6.55-3.45v-.9Z",fill:"#eec82f",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,11.83v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#ba390d",fillRule:"evenodd"}))))),l.a.createElement("div",{className:"col"},l.a.createElement("h3",{className:"seo-section-title"},"What is Trip Database?"),l.a.createElement("p",null,"Trip is a clinical search engine designed to allow users to quickly and easily find and use high-quality research evidence to support their practice and/or care."),l.a.createElement("p",null,"Trip has been online since 1997 and in that time has developed into the internet\u2019s premier source of evidence-based content. Our motto is \u2018Find evidence fast\u2019 and this is something we aim to deliver for every single search."),l.a.createElement("p",null,"As well as research evidence we also allow clinicians to search across other content types including images, videos, patient information leaflets, educational courses and news."),l.a.createElement("p",null,"For any questions about Trip, please contact us via"," ",l.a.createElement("a",{href:"mailto:jon.brassey@tripdatabase.com"},"jon.brassey@tripdatabase.com")),l.a.createElement("iframe",{className:"mb-3",src:"https://www.youtube.com/embed/uzqUiiaAwtk",title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),l.a.createElement("div",{className:"mb-5"},l.a.createElement("a",{href:"https://www.youtube.com/watch?v=WfL92eSSqHA"},"Watch Part Two here")))),j&&l.a.createElement("div",{className:"row cta-outlined justify-content-center"},l.a.createElement("div",{className:"col col-10 col-lg-6"},l.a.createElement("p",null,"With a free account, you can save your searches and sign up to email alerts for new evidence of interest"),l.a.createElement("a",{className:"btn btn-pro",type:"button",onClick:function(e){i(!1),m(!0),e.preventDefault()}},"Sign up for a free Trip account"))))),l.a.createElement("div",{className:"about-section-divider"},l.a.createElement("i",{className:"fa fa-chart-bar"})),l.a.createElement("div",{className:"about-section"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col"},l.a.createElement("h2",{className:"about-section-title text-center"},"What do our Free users say?"),l.a.createElement("ul",{className:"quote-cards"},l.a.createElement("li",{className:"card card--quote"},l.a.createElement("p",null,"TRIP database is an excellent metasearch engine. You can search several information resources in one go, filter results easily, and export the references in several formats, including RIS. TRIP is very useful for quick searches as for exhaustive searches."),l.a.createElement("div",{className:"quote-author"},l.a.createElement("div",null,l.a.createElement("p",null,"Rocio Rodriguez"),l.a.createElement("p",null,"Information Specialist")))),l.a.createElement("li",{className:"card card--quote"},l.a.createElement("p",null,'TRIP searches return results from an impressively wide array of clinically useful resources, from primary literature to reviews, evidence-syntheses, and information for patients; TRIP is truly a "pan-search" tool.'),l.a.createElement("div",{className:"quote-author"},l.a.createElement("div",null,l.a.createElement("p",null,"Bill Cayley Jr"),l.a.createElement("p",null,"MD MDiv")))),l.a.createElement("li",{className:"card card--quote"},l.a.createElement("p",null,"Trip offers a user friendly master curation of available evidence on a huge range of topics. It is an indispensable tool for methodologists and clinicians alike"),l.a.createElement("div",{className:"quote-author"},l.a.createElement("div",null,l.a.createElement("p",null,"Christopher Buckle"),l.a.createElement("p",null,"MD FRCPC MBA"))))))))),j&&l.a.createElement("div",{className:"about-section bottom-cta-section"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row justify-content-center"},l.a.createElement("div",{className:"col-12 col-lg-8"},l.a.createElement("h4",{className:"about-section-title"},"Trip is and will always be free to use.",l.a.createElement("br",null),l.a.createElement("br",null),"Sign up for a free account to save your searches and keep track of your topics of interest"),l.a.createElement("a",{type:"button",className:"btn btn-pro",onClick:function(e){i(!1),m(!0),e.preventDefault()}},"Sign up for a free Trip account"),l.a.createElement("p",{className:"small-print"},l.a.createElement("a",{href:"#",type:"button",onClick:function(e){m(!1),i(!0),e.preventDefault()}},"Or click here if you\u2019re interested in our"," ",l.a.createElement("strong",null,"Pro")," service")))))),l.a.createElement("div",{className:"about--bottom-graphic"}))},Ht=a(14),Wt=a(2),Kt=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(""),u=Object(h.a)(d,2),E=u[0],b=u[1],v=Object(n.useState)(!1),y=Object(h.a)(v,2),g=(y[0],y[1]),O=Object(n.useState)(!1),_=Object(h.a)(O,2),S=(_[0],_[1]),w=Object(n.useState)(!1),k=Object(h.a)(w,2),C=(k[0],k[1]),T=Object(n.useState)(!1),j=Object(h.a)(T,2),P=j[0],A=j[1],D=ve();function R(){return(R=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ht.get(Wt.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Popularsearches":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Popularsearches",{withCredentials:!0}).then((function(e){200===e.status&&b(e.data)})).catch((function(e){}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(n.useEffect)((function(){document.body.classList.remove("homepage"),function(){R.apply(this,arguments)}(),A(1!==D.chkLogin&&!0!==D.chkPro)}),[]),l.a.createElement("div",{className:"seo-content"},l.a.createElement("div",{className:"seo-section"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row justify-content-center"},l.a.createElement("div",{className:"col-12 col-lg-8 text-center"},l.a.createElement("h1",{className:"mb-5"},"Popular Searches"),l.a.createElement("p",null,"Below is a non exhaustive list of"," ",l.a.createElement("strong",null,"popular searches"),":"),E&&l.a.createElement("ul",{className:"seo-link-list mb-5"},E.map((function(e,t){return l.a.createElement("li",{key:"keyitem"+e.id},l.a.createElement("a",{href:"/Popular/"+e.route},e.title))}))),l.a.createElement(N.a,null,l.a.createElement("meta",{name:"description",content:"Trip Popular Searches - Evidence-based answers for health professionals | Searching sources such as systematic reviews, clinical guidelines and RCTs"})),l.a.createElement(ut,{props:e,setProShow:i,setSignupShow:m,show:r}),l.a.createElement(ft,{props:e,setLoginShow:g,setSignupShow:m,setErrorShow:C,setErrors:S,show:o}))))),l.a.createElement("div",{className:"seo-section-divider"},l.a.createElement("i",{className:"fa fa-search"})),P&&l.a.createElement("div",{className:"about-section bottom-cta-section"},l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row justify-content-center"},l.a.createElement("div",{className:"col-12 col-lg-8"},l.a.createElement("h4",{className:"about-section-title"},"Trip is and will always be free to use.",l.a.createElement("br",null),l.a.createElement("br",null),"Sign up for a free account to save your searches and keep track of your topics of interest"),l.a.createElement("a",{type:"button",className:"btn btn-pro",onClick:function(e){i(!1),m(!0),e.preventDefault()}},"Sign up for a free Trip account"),l.a.createElement("p",{className:"small-print"},l.a.createElement("a",{href:"#",type:"button",onClick:function(e){m(!1),i(!0),e.preventDefault()}},"Or click here if you\u2019re interested in our"," ",l.a.createElement("strong",null,"Pro")," service")))))),l.a.createElement("div",{className:"about--bottom-graphic"}))},Vt=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)("how-to-use-trip"),u=Object(h.a)(d,2),E=u[0],f=(u[1],Object(n.useState)([])),p=Object(h.a)(f,2),b=p[0],v=p[1];return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:o,setErrorShow:i,show:r}),l.a.createElement("div",null,l.a.createElement(N.a,null,l.a.createElement("meta",{name:"description",content:"Evidence-based answers for health professionals | Searching sources such as systematic reviews, clinical guidelines and RCTs"})),l.a.createElement(mt,{currentPage:E,data:b,error:o,errorsShow:r,setData:v,setErrors:m,setErrorShow:i})))},qt=(a(14),function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)("addtrip"),u=Object(h.a)(d,2),E=u[0],f=(u[1],Object(n.useState)([])),p=Object(h.a)(f,2),b=p[0],v=p[1];return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:o,setErrorShow:i,show:r}),l.a.createElement("div",null,l.a.createElement(mt,{currentPage:E,data:b,error:o,errorsShow:r,setData:v,setErrors:m,setErrorShow:i})))}),Bt=(a(14),function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)("terms-of-use"),u=Object(h.a)(d,2),E=u[0],f=(u[1],Object(n.useState)([])),p=Object(h.a)(f,2),b=p[0],v=p[1];return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:o,setErrorShow:i,show:r}),l.a.createElement("div",null,l.a.createElement(mt,{currentPage:E,data:b,error:o,errorsShow:r,setData:v,setErrors:m,setErrorShow:i})))}),Zt=function(){return l.a.createElement("div",{className:"container"},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col"},l.a.createElement("h1",null,"New Trip Explained"),l.a.createElement("p",null,"The new trip icons and images are explained below."))),l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col-12 key-point"},l.a.createElement("img",{className:"key-image border border-info",src:a(859),alt:"Pro only features"}),l.a.createElement("h4",null,"Pro only Features"),l.a.createElement("p",null,"Yellow \u2018Pro\u2019 flashes highlight extra content or features you obtain with a Pro subscription"),l.a.createElement("hr",null)),l.a.createElement("div",{className:"col-12 key-point"},l.a.createElement("img",{className:"key-image border border-info",src:a(860),alt:"Ordering Results"}),l.a.createElement("h4",null,"Ordering Results"),l.a.createElement("p",null,"Alters how Trip orders the results"),l.a.createElement("hr",null)),l.a.createElement("div",{className:"col-12 key-point"},l.a.createElement("img",{className:"key-image border border-info",src:a(861),alt:"Document Snippets"}),l.a.createElement("h4",null,"Document Snippets"),l.a.createElement("p",null,"Turn on or off the document snippets "),l.a.createElement("hr",null)),l.a.createElement("div",{className:"col-12 key-point"},l.a.createElement("img",{className:"key-image border border-info",src:a(862),alt:"Filtering Search Results"}),l.a.createElement("h4",null,"Filtering Search Results"),l.a.createElement("p",null,"Filter your search by evidence type, clinical area etc."),l.a.createElement("hr",null)),l.a.createElement("div",{className:"col-12 key-point"},l.a.createElement("img",{className:"key-image border border-info",src:a(863),alt:"Article Evidence Type"}),l.a.createElement("h4",null,"Article Evidence Type"),l.a.createElement("p",null,"Highlights the \u2018evidence type\u2019 category for the article. this links to filter on the left-hand side"),l.a.createElement("hr",null)),l.a.createElement("div",{className:"col-12 key-point"},l.a.createElement("img",{className:"key-image border border-info",src:a(864),alt:"Pyramids"}),l.a.createElement("h4",null,"Pyramids"),l.a.createElement("p",null,"A simply tool to help convey the potential robustness of the evidence (for more information"," ",l.a.createElement("a",{href:"https://blog.tripdatabase.com/2021/09/26/pyramids-are-back/"},"click here"),")"),l.a.createElement("hr",null)),l.a.createElement("div",{className:"col-12 key-point"},l.a.createElement("img",{className:"key-image border border-info",src:a(865),alt:"Dead links"}),l.a.createElement("h4",null,"Dead links"),l.a.createElement("p",null,"If you come across a broken link please use this and Trip will try to fix it"),l.a.createElement("hr",null)),l.a.createElement("div",{className:"col-12 key-point"},l.a.createElement("img",{className:"key-image border border-info",src:a(866),alt:"Export Results"}),l.a.createElement("h4",null,"Export Results"),l.a.createElement("p",null,"Export articles in a variety of formats "),l.a.createElement("hr",null)),l.a.createElement("div",{className:"col-12 key-point"},l.a.createElement("img",{className:"key-image border border-info",src:a(867),alt:"Article Format / Length"}),l.a.createElement("h4",null,"Article Format / Length"),l.a.createElement("p",null,"Indicates if the article is available as full-text or abstract"),l.a.createElement("hr",null)),l.a.createElement("div",{className:"col-12 key-point"},l.a.createElement("img",{className:"key-image border border-info",src:a(868),alt:"Sharing on Twitter"}),l.a.createElement("h4",null,"Sharing on Twitter"),l.a.createElement("p",null,"Tweet the article from within Trip"),l.a.createElement("hr",null)),l.a.createElement("div",{className:"col-12 key-point"},l.a.createElement("img",{className:"key-image border border-info",src:a(869),alt:"Bookmarks"}),l.a.createElement("h4",null,"Bookmarks"),l.a.createElement("p",null,"Bookmark the article so you can view it later"),l.a.createElement("hr",null)),l.a.createElement("div",{className:"col-12 key-point"},l.a.createElement("img",{className:"key-image border border-info",src:a(870),alt:"Related articles"}),l.a.createElement("h4",null,"Related articles"),l.a.createElement("p",null,"Related articles"),l.a.createElement("hr",null)),l.a.createElement("div",{className:"col-12 key-point"},l.a.createElement("img",{className:"key-image border border-info",src:a(871),alt:"Risk of Bias"}),l.a.createElement("h4",null,"Risk of Bias"),l.a.createElement("p",null,"For Randomised Controlled Trials, using RobotReviewer, we estimate the Risk of Bias for the trial"),l.a.createElement("hr",null)),l.a.createElement("div",{className:"col-12 key-point"},l.a.createElement("img",{className:"key-image border border-info",src:a(872),alt:"Your Profile - Pro only Feature"}),l.a.createElement("h4",null,"Your Profile (Pro Feature)"),l.a.createElement("p",null,"Links to your profile, including bookmarks, search history, inbox and password reset"),l.a.createElement("hr",null))))},Ft=a(14),Gt=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)("Processing Request.."),u=Object(h.a)(d,2),E=u[0],b=u[1],v=k().setAuthTokens;function y(){return(y=Object(p.a)(f.a.mark((function t(){return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:Ft.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Auth/InstitutionHashAuth":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Auth/InstitutionHashAuth",{params:{instId:Fe("instId"),email:Fe("email"),name:Fe("name"),hash:Fe("hash")},withCredentials:!0}).then((function(t){C.default.isUndefined(t.status)||200!==t.status?b("Request failed!!"):v(t.data),e.history.push({pathname:"/Home",state:{withCredentials:!0}})})).catch((function(t){b("Authentication Request failed!!"),C.default.isEmpty(t)||(i("Authentication failed, resource Not found"),m(!0)),e.history.push({pathname:"/Home",state:{withCredentials:!0}})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return Object(n.useEffect)((function(){C.default.isUndefined(Fe("instId"))||C.default.isUndefined(Fe("email"))||C.default.isUndefined(Fe("hash"))||function(){y.apply(this,arguments)}()}),[]),l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(se,{error:r,setErrorShow:m,show:o}),l.a.createElement(j.a,null),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"}),l.a.createElement(A.a,{md:"9"},l.a.createElement(j.a,null,l.a.createElement(A.a,null,E&&l.a.createElement(R.a,{variant:"info"},l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,null,l.a.createElement("h2",null,"Processing...")),l.a.createElement("p",null,E))))))))},Yt=(a(14),function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)("acceptableuse"),u=Object(h.a)(d,2),E=u[0],f=(u[1],Object(n.useState)([])),p=Object(h.a)(f,2),b=p[0],v=p[1];return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:o,setErrorShow:i,show:r}),l.a.createElement("div",null,l.a.createElement(mt,{currentPage:E,data:b,error:o,errorsShow:r,setData:v,setErrors:m,setErrorShow:i})))}),zt=(a(14),function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)("cookie-policy"),u=Object(h.a)(d,2),E=u[0],f=(u[1],Object(n.useState)([])),p=Object(h.a)(f,2),b=p[0],v=p[1];return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:o,setErrorShow:i,show:r}),l.a.createElement("div",null,l.a.createElement(mt,{currentPage:E,data:b,error:o,errorsShow:r,setData:v,setErrors:m,setErrorShow:i})))}),Qt=(a(14),function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)("privacy"),u=Object(h.a)(d,2),E=u[0],f=(u[1],Object(n.useState)([])),p=Object(h.a)(f,2),b=p[0],v=p[1];return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:o,setErrorShow:i,show:r}),l.a.createElement("div",null,l.a.createElement(N.a,null,l.a.createElement("meta",{name:"description",content:"Evidence-based answers for health professionals | Searching sources such as systematic reviews, clinical guidelines and RCTs"})),l.a.createElement(mt,{currentPage:E,data:b,error:o,errorsShow:r,setData:v,setErrors:m,setErrorShow:i})))}),$t=(a(14),function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)("top"),u=Object(h.a)(d,2),E=u[0],f=(u[1],Object(n.useState)([])),p=Object(h.a)(f,2),b=p[0],v=p[1];return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:o,setErrorShow:i,show:r}),l.a.createElement("div",null,l.a.createElement(mt,{currentPage:E,data:b,error:o,errorsShow:r,setData:v,setErrors:m,setErrorShow:i})))}),Jt=function(e){var t=e.info,a=e.show,n=e.setInfoShow;return l.a.createElement(H.a,{show:a,onHide:function(e){return n(!1)},animation:!1},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-info"},l.a.createElement("i",{className:"fa fa-info-circle text-info"})," ",t.title?"Information":t.title)),l.a.createElement(H.a.Body,null,l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement("i",{className:"fa fa-info-o"})," ",C.default.isUndefined(t)?"":t.message))),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:function(e){return n(!1)}},l.a.createElement("i",{className:"fa fa-times"})," Close")))},Xt=(a(2),a(29)),ea=a(2),ta=function(){var e=!1,t="";return{getDismiss:function(){return ea.isUndefined(Xt.get("dismiss_tokens"))||(t=ea.isNull(Xt.get("dismiss_tokens"))||""===Xt.get("dismiss_tokens")?null:JSON.parse(Xt.get("dismiss_tokens"))),t&&(e=!ea.isUndefined(t.dismiss)&&t.dismiss),e},setDismiss:function(t){Xt.set("dismiss_tokens",JSON.stringify({dismiss:t})),e=t}}}(),aa=(a(2),function(e){e.isPro;var t=e.count,a=void 0===t?3:t,r=Object(n.useState)(!1),i=Object(h.a)(r,2),c=i[0],s=i[1],o=Object(n.useState)(""),m=Object(h.a)(o,2);m[0],m[1];return l.a.createElement(l.a.Fragment,null,!c&&3==a&&!ta.getDismiss()&&l.a.createElement("div",{className:"promo promo__pro"},l.a.createElement("div",{className:"promo--container"},l.a.createElement("div",{className:"promo--logo"},l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 216.28 109"},l.a.createElement("g",null,l.a.createElement("path",{d:"M59.36,14.25V10.79q0-5.58-3.34-5.58H3.34Q0,5.21,0,10.79v3.46q0,5.57,3.34,5.57H21.05v61.9H38.31V19.82H56q3.34,0,3.34-5.57M78.13,26.38q-7.47,0-12.14,8.48a17,17,0,0,1-.39-1.79A17.79,17.79,0,0,0,65.1,31c-.15-.41-.38-.93-.67-1.56a3.23,3.23,0,0,0-1.17-1.4,6.56,6.56,0,0,0-2.95-.44,38.78,38.78,0,0,0-6.74.89q-4.51.9-4.51,2.68a32.78,32.78,0,0,0,.67,4A69.65,69.65,0,0,1,50.4,46.9V81.72H66.88V46.45c2.23-3.71,5.19-5.57,8.91-5.57a11.35,11.35,0,0,1,2.89.45,11.28,11.28,0,0,0,2.34.44c1,0,1.79-1.17,2.45-3.51a22.09,22.09,0,0,0,1-5.86,6.75,6.75,0,0,0-1.4-4.18c-.93-1.22-2.58-1.84-5-1.84m81.25,8q-5.79-8-15-8a17.23,17.23,0,0,0-9,2.34,15.67,15.67,0,0,0-6,6,16.76,16.76,0,0,1-.39-1.68,19.62,19.62,0,0,0-.5-2,14.55,14.55,0,0,0-.67-1.62,3.23,3.23,0,0,0-1.17-1.4,6.53,6.53,0,0,0-3-.44,38.78,38.78,0,0,0-6.74.89q-4.52.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71v57.18h16.48V83a18.85,18.85,0,0,0,11.36,3.46q11.13,0,17.32-8.09t6.18-22.08q0-14-5.79-22M138.11,73.44a15.68,15.68,0,0,1-7.8-2.12V46.45q3.78-6.57,9.13-6.57,9,0,9,16.78T138.11,73.44m-39-68.85H96c-4.46,0-6.68,1.19-6.68,3.57v8.11h16.48V8.16q0-3.57-6.68-3.57m0,22.85H96c-4.46,0-6.68,1.19-6.68,3.57V81.72h16.48V31q0-3.57-6.68-3.57",fill:"#bfbfbf",fillRule:"evenodd"}),l.a.createElement("path",{d:"M37.33,82.12v.58q0,3.9-6.36,3.9H27.26q-6.36,0-6.36-3.9v-.58Z",fill:"#63c608",fillRule:"evenodd"}),l.a.createElement("path",{d:"M67.19,82.12v.58q0,3.9-6.66,3.9h-3.1q-6.66,0-6.66-3.9v-.58Z",fill:"#0e6cbb",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,82.12V83c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#00a89d",fillRule:"evenodd"}),l.a.createElement("path",{d:"M130.7,104.65v.9q0,3.45-6.55,3.45h-3.06q-6.56,0-6.55-3.45v-.9Z",fill:"#eec82f",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,16.42v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#ba390d",fillRule:"evenodd"}),l.a.createElement("rect",{x:"146.1",width:"70.18",height:"35.84",rx:"8",fill:"#ffe300"}),l.a.createElement("path",{d:"M191.5,24.38A3.37,3.37,0,0,1,189,23.25a3.8,3.8,0,0,1-.77-1.37A5.66,5.66,0,0,1,187.9,20a5.7,5.7,0,0,1,.28-1.87,4,4,0,0,1,.77-1.38,3.41,3.41,0,0,1,1.15-.85,3.52,3.52,0,0,1,2.8,0,3.32,3.32,0,0,1,1.15.85,4.21,4.21,0,0,1,.78,1.38,6.38,6.38,0,0,1,0,3.74,4,4,0,0,1-.78,1.37,3.42,3.42,0,0,1-1.15.84A3.51,3.51,0,0,1,191.5,24.38Zm0,1.66a6.05,6.05,0,0,0,2.43-.46,4.94,4.94,0,0,0,1.76-1.28,5.19,5.19,0,0,0,1.07-1.91,8,8,0,0,0,0-4.76,5.28,5.28,0,0,0-1.07-1.93,5.22,5.22,0,0,0-1.76-1.29,6.49,6.49,0,0,0-4.85,0,5.26,5.26,0,0,0-1.77,1.29,5.59,5.59,0,0,0-1.07,1.93,8,8,0,0,0,0,4.76,5.5,5.5,0,0,0,1.07,1.91,5,5,0,0,0,1.77,1.28A6.11,6.11,0,0,0,191.5,26Zm-10.21-.25V20.64a8.32,8.32,0,0,1,.22-2,3.75,3.75,0,0,1,.72-1.47,3.11,3.11,0,0,1,1.3-.92,5.39,5.39,0,0,1,1.95-.31v-2a4.25,4.25,0,0,0-2.55.63,5.17,5.17,0,0,0-1.71,2.08h0V14.21h-1.79V25.79Zm-9.74-8.33h-4.17V11.59h4.17a3.9,3.9,0,0,1,2.65.75,2.77,2.77,0,0,1,.84,2.18,2.82,2.82,0,0,1-.84,2.2A3.8,3.8,0,0,1,171.55,17.46Zm-4.17,8.33V19.25h4.89A4.88,4.88,0,0,0,175.93,18a4.75,4.75,0,0,0,1.24-3.5A4.7,4.7,0,0,0,175.93,11a5,5,0,0,0-3.66-1.24h-7v16Z"})))),l.a.createElement("div",{className:"promo--content"},l.a.createElement("h5",null,"Subscribe to Trip PRO for an enhanced experience"),l.a.createElement("ul",null,l.a.createElement("li",null,"Access to millions of Full-text articles where avaliable"),l.a.createElement("li",null,"Unlock 100,000+ extra articles with Systematic Reviews"),l.a.createElement("li",null,"Further Filtering Options"),l.a.createElement("li",null,"No adverts"),l.a.createElement("li",null,"Advanced Search Ability"),l.a.createElement("li",null,"Enhanced SmartSearch showing unlimited related articles")),l.a.createElement("a",{href:"/Why",style:{color:"black"},className:"btn btn-warning"},"Read more about Trip PRO"))),l.a.createElement("div",{className:"promo--dismiss"},l.a.createElement("a",{className:"js-dismiss",href:"#",onClick:function(e){ta.setDismiss(!0),function(e){s(!c),e.preventDefault()}(e)}},l.a.createElement("i",{className:"fa fa-times"})))))}),na=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.61 15.81"},l.a.createElement("defs",null,l.a.createElement("clipPath",{id:"clip-path"},l.a.createElement("rect",{x:"-171.45",y:"239.88",width:"666.55",height:"385.12",fill:"none"}))),l.a.createElement("g",null,l.a.createElement("path",{d:"M9.88,2.53l2.65,2.63H9.88ZM2.52,2.38H9.06V6h3.69v9H2.52Zm-.85-.76V15.81H13.61V5.16L10,1.62Z",fill:"#b3b3b3",fillRule:"evenodd"}),l.a.createElement("polygon",{points:"9.21 0.79 8.05 0 0 0 0 14.36 0.8 14.36 0.8 0.79 9.21 0.79",fill:"#b3b3b3",fillRule:"evenodd"})),l.a.createElement("g",null,l.a.createElement("path",{d:"M11.74,8.36V7.88H9.62l.23.48Z",fill:"#b3b3b2"}),l.a.createElement("path",{d:"M3.57,7.88v.48H5.45c.07-.16.15-.32.23-.48Z",fill:"#b3b3b2"}),l.a.createElement("path",{d:"M11.74,9.82V9.33h-1.5l.15.49Z",fill:"#b3b3b2"}),l.a.createElement("path",{d:"M3.57,9.33v.49H4.92c0-.16.09-.32.14-.49Z",fill:"#b3b3b2"}),l.a.createElement("path",{d:"M10.56,11.27h1.18v-.48H10.56c0,.08,0,.16,0,.24S10.56,11.19,10.56,11.27Z",fill:"#b3b3b2"}),l.a.createElement("path",{d:"M4.75,10.79H3.57v.48H4.76a1.94,1.94,0,0,1,0-.24C4.74,11,4.75,10.87,4.75,10.79Z",fill:"#b3b3b2"}),l.a.createElement("path",{d:"M11.74,12.73v-.49H10.3a2.6,2.6,0,0,1-.28.49Z",fill:"#b3b3b2"}),l.a.createElement("path",{d:"M3.57,12.24v.49H5.29A2.6,2.6,0,0,1,5,12.24Z",fill:"#b3b3b2"}),l.a.createElement("path",{d:"M6.49,13.7H3.57v.49h8.17V13.7H8.82a2.95,2.95,0,0,1-2.33,0Z",fill:"#b3b3b2"}),l.a.createElement("rect",{x:"3.57",y:"3.51",width:"4.62",height:"0.49",fill:"#b3b3b2"}),l.a.createElement("path",{d:"M3.57,5v.48H7.14L7.48,5Z",fill:"#b3b3b2"}),l.a.createElement("path",{d:"M8.2,5.45V5H7.82l.35.48Z",fill:"#b3b3b2"}),l.a.createElement("path",{d:"M11.74,6.91V6.42H8.8l.29.49Z",fill:"#b3b3b2"}),l.a.createElement("path",{d:"M3.57,6.42v.49H6.2l.3-.49Z",fill:"#b3b3b2"})),l.a.createElement("path",{d:"M7.66,5.68S5.19,8.82,5.19,11a2.47,2.47,0,1,0,4.93,0C10.12,8.89,7.66,5.68,7.66,5.68Zm0,6.48a1.2,1.2,0,0,1-1.17-1.29,3.22,3.22,0,0,1,1.3-2.73c-.74.76-.62,2.59.07,2.59s.45-1,.24-1.23A1.65,1.65,0,0,1,8.84,11,1.15,1.15,0,0,1,7.65,12.16Z",fill:"#ef8118"}))},la=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.61 15.81"},l.a.createElement("defs",null,l.a.createElement("clipPath",{id:"clip-path"},l.a.createElement("rect",{x:"-125.45",y:"239.88",width:"666.55",height:"385.12",fill:"none"}))),l.a.createElement("g",null,l.a.createElement("path",{d:"M9.88,2.53l2.65,2.63H9.88ZM2.52,2.38H9.06V6h3.69v9H2.52Zm-.85-.76V15.81H13.61V5.16L10,1.62Z",fill:"#b3b3b3",fillRule:"evenodd"}),l.a.createElement("polygon",{points:"9.21 0.79 8.05 0 0 0 0 14.36 0.8 14.36 0.8 0.79 9.21 0.79",fill:"#b3b3b3",fillRule:"evenodd"})),l.a.createElement("g",null,l.a.createElement("path",{d:"M7.78,8.52c.08,0,.08-.07.08-.13s0-.11-.17-.15H7.25a1.54,1.54,0,0,0-.78.43h.91A1.18,1.18,0,0,0,7.78,8.52Z",fill:"#b3b3b3"}),l.a.createElement("polygon",{points:"4.51 8.24 4.1 8.24 4.1 8.67 4.91 8.67 4.51 8.24",fill:"#b3b3b3"}),l.a.createElement("path",{d:"M11,8.35c0,.11,0,.22,0,.32h.41V8.24H11Z",fill:"#b3b3b3"}),l.a.createElement("path",{d:"M11.36,9.53h-.62a3,3,0,0,1-.21.44h.83Z",fill:"#b3b3b3"}),l.a.createElement("polygon",{points:"5.78 9.8 5.75 9.53 4.1 9.53 4.1 9.97 5.8 9.97 5.78 9.8",fill:"#b3b3b3"}),l.a.createElement("polygon",{points:"4.1 10.83 4.1 11.26 5.96 11.26 5.91 10.83 4.1 10.83",fill:"#b3b3b3"}),l.a.createElement("path",{d:"M8.77,11.26h2.59v-.43H9.67A3.75,3.75,0,0,1,8.77,11.26Z",fill:"#b3b3b3"}),l.a.createElement("polygon",{points:"4.1 12.56 5.67 12.56 5.67 12.39 5.67 12.13 4.1 12.13 4.1 12.56",fill:"#b3b3b3"}),l.a.createElement("polygon",{points:"8.91 12.39 8.91 12.56 11.36 12.56 11.36 12.13 8.91 12.13 8.91 12.39",fill:"#b3b3b3"}),l.a.createElement("rect",{x:"4.1",y:"13.42",width:"1.57",height:"0.43",fill:"#b3b3b3"}),l.a.createElement("rect",{x:"8.91",y:"13.42",width:"2.45",height:"0.43",fill:"#b3b3b3"}),l.a.createElement("rect",{x:"4.1",y:"4.35",width:"4.11",height:"0.43",fill:"#b3b3b3"}),l.a.createElement("path",{d:"M5.62,5.65H4.1v.43h.81A4.33,4.33,0,0,1,5.62,5.65Z",fill:"#b3b3b3"}),l.a.createElement("path",{d:"M11.36,7.37V6.94h-.72a3.25,3.25,0,0,1,.18.43Z",fill:"#b3b3b3"}),l.a.createElement("path",{d:"M9.6,6.94a2.66,2.66,0,0,0-2.09-.83,3.26,3.26,0,0,0-2.26.83,3.59,3.59,0,0,0-.39.39l0,0,.78.84A2.52,2.52,0,0,1,7.1,7.37a2.34,2.34,0,0,1,.38,0,2,2,0,0,1,.36,0,1,1,0,0,1,.89.87.76.76,0,0,1,0,.15,1.27,1.27,0,0,1,0,.28c-.11.42-.49.72-1.16.86a4,4,0,0,1-.84.1l-.06.06,0,.28.1.86.06.43,0,.21h.89l0-.21,0-.43,0-.25A3.18,3.18,0,0,0,9.36,10a1.81,1.81,0,0,0,.39-.44,1.92,1.92,0,0,0,.31-.86c0-.1,0-.21,0-.32a.41.41,0,0,0,0-.11,2.22,2.22,0,0,0-.2-.87A1.94,1.94,0,0,0,9.6,6.94Z",fill:"#b3b3b3"}),l.a.createElement("polygon",{points:"6.55 12.56 6.55 13.42 6.55 13.85 6.55 13.9 8.03 13.9 8.03 13.85 8.03 13.42 8.03 12.56 8.03 12.39 6.55 12.39 6.55 12.56",fill:"#b3b3b3"})))},ra=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.52 15.53"},l.a.createElement("g",null,l.a.createElement("path",{d:"M9.3,1l3,2.87h-3ZM1,.84H8.38v4h4.17V14.7H1ZM0,0V15.53H13.52V3.88L9.47,0Z",fill:"#b3b3b3",fillRule:"evenodd"}),l.a.createElement("rect",{x:"2.58",y:"2.94",width:"4.73",height:"0.47",fill:"#b3b3b3"}),l.a.createElement("rect",{x:"2.58",y:"4.34",width:"4.73",height:"0.47",fill:"#b3b3b3"}),l.a.createElement("rect",{x:"2.58",y:"5.74",width:"7.19",height:"0.47",fill:"#b3b3b3"})))},ia=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13.61 15.81"},l.a.createElement("g",null,l.a.createElement("path",{d:"M9.88,2.53l2.65,2.63H9.88ZM2.52,2.38H9.06V6h3.69v9H2.52Zm-.85-.76V15.81H13.61V5.16L10,1.62Z",fill:"#b3b3b3",fillRule:"evenodd"}),l.a.createElement("polygon",{points:"9.21 0.79 8.05 0 0 0 0 14.36 0.8 14.36 0.8 0.79 9.21 0.79",fill:"#b3b3b3",fillRule:"evenodd"}),l.a.createElement("rect",{x:"3.95",y:"8.14",width:"7.38",height:"0.43",fill:"#b3b3b3"}),l.a.createElement("rect",{x:"3.95",y:"9.42",width:"7.38",height:"0.43",fill:"#b3b3b3"}),l.a.createElement("rect",{x:"3.95",y:"10.7",width:"7.38",height:"0.43",fill:"#b3b3b3"}),l.a.createElement("rect",{x:"3.95",y:"11.98",width:"7.38",height:"0.43",fill:"#b3b3b3"}),l.a.createElement("rect",{x:"3.95",y:"13.26",width:"7.38",height:"0.43",fill:"#b3b3b3"}),l.a.createElement("rect",{x:"3.95",y:"4.3",width:"4.18",height:"0.43",fill:"#b3b3b3"}),l.a.createElement("rect",{x:"3.95",y:"5.58",width:"4.18",height:"0.43",fill:"#b3b3b3"}),l.a.createElement("rect",{x:"3.95",y:"6.86",width:"7.38",height:"0.43",fill:"#b3b3b3"})))},ca=a(2),sa=function(e){var t=e.data,a=e.idx,r=void 0===a?0:a,i=e.count,c=e.dotClass,s=e.isPro,o=e.libkeydata,m=e.linkResolver_url,d=e.handleArticleClick,u=Object(n.useState)(""),E=Object(h.a)(u,2),b=E[0],v=E[1];function y(){return(y=Object(p.a)(f.a.mark((function e(){var a,n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ca.isUndefined(o.libkeylibraryid)||ca.isUndefined(o.libkeyaccesstoken)||!o.libkeyaccesstoken||0!=t.fullText||(a=t.doi,n="https://public-api.thirdiron.com/public/v1/libraries/"+o.libkeylibraryid+"/articles/doi/"+a+"?access_token="+o.libkeyaccesstoken,Y.a.get(n).then((function(e){if(200===e.status&&!ca.isUndefined(e.data)){var t=ca.isEmpty(e.data.data.fullTextFile)?ca.isEmpty(e.data.data.contentLocation)?null:e.data.data.contentLocation:e.data.data.fullTextFile;v(t)}})).catch((function(e){console.log(e)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return!ca.isUndefined(o)&&o&&t.doi&&0==t.fullText&&function(){y.apply(this,arguments)}(t.doi),l.a.createElement("div",{className:"result--title"},l.a.createElement("div",{className:"result--title--dot-and-title"},l.a.createElement("span",{className:c}),l.a.createElement("a",{href:b||t.Url,target:"_blank",rel:"nofollow",pos:i,onClick:function(e){d(e,t,i)}},l.a.createElement("h5",null,t.Title))),l.a.createElement("div",{className:"text-indicators"},"(Abstract)"==t.Subtitle?l.a.createElement(Ce.a,{key:"top abstract-free-users"+r,placement:"top",overlay:l.a.createElement(Te.a,{id:"tooltip-top-abstract-free-users"+r},l.a.createElement("em",null,"Abstract available from PubMed"))},l.a.createElement("a",{className:"text-indicator text-indicator--abstract text-indicator__active","data-toggle":"tooltip","data-html":"true",title:"",pos:i,"data-original-title":"Abstract",href:t.Url,onClick:function(e){d(e,t,i)},target:"_blank"},l.a.createElement(ra,null)," ")):null,t.fullText?l.a.createElement(Ce.a,{key:"top full-text-key"+r,placement:"top",overlay:l.a.createElement(Te.a,{id:"tooltip-top-full-text"+r},l.a.createElement("em",null,"Fulltext Access"))},l.a.createElement("a",{className:"text-indicator text-indicator--abstract text-indicator__active","data-toggle":"tooltip","data-html":"true",title:"",pos:i,"data-original-title":"Abstract available from PubMed",href:t.Url,onClick:function(e){d(e,t,i)},target:"_blank"},l.a.createElement(ia,null))):null,t.fullText&&l.a.createElement("div",{className:"text-indicator-divider"}),t.OriginalUrl?l.a.createElement(Ce.a,{key:"top abstract"+r,placement:"top",overlay:l.a.createElement(Te.a,{id:"tooltip-top-abstract"+r},l.a.createElement("em",null,"Abstract available from PubMed"))},l.a.createElement("a",{className:"text-indicator text-indicator--abstract text-indicator__active","data-toggle":"tooltip","data-html":"true",title:"",pos:i,"data-original-title":"Abstract available from PubMed",href:t.OriginalUrl,onClick:function(e){d(e,t,i)},target:"_blank"},l.a.createElement(ra,null)," ")):null,t.OriginalUrl&&l.a.createElement("div",{className:"text-indicator-divider"}),t.Subtitle2&&l.a.createElement(Ce.a,{key:"top fulltext-pro"+r,placement:"top",className:"pro-tooltip ",overlay:l.a.createElement(Te.a,{id:"tooltip-top-fulltext-pro"+r},"Full Text available to Pro users")},l.a.createElement("a",{className:"text-indicator text-indicator--full-text test","data-custom-class":"pro-tooltip","data-toggle":"tooltip","data-html":"true",title:"",href:"/Why","data-original-title":"Full Text available to Pro users"},l.a.createElement(ia,null))),t.Subtitle2?l.a.createElement(Ce.a,{key:"top fulltext-pro-usersonly"+r,placement:"top",className:"pro-tooltip",overlay:l.a.createElement(Te.a,{id:"tooltip-top-fulltext-pro-useronly"+r},l.a.createElement("em",null,"Full Text available to Pro users"))},l.a.createElement("div",{dangerouslySetInnerHTML:{__html:t.Subtitle2}})):null,s&&0==t.fullText&&(t.doi||m)?l.a.createElement("span",{className:"text-indicator",key:"spntop"+r},b&&"(Abstract)"!==t.Subtitle?l.a.createElement("span",{className:"text-indicator",key:"spnabstract2"+r},l.a.createElement(Ce.a,{key:"top abstract-free-users"+r,placement:"top",overlay:l.a.createElement(Te.a,{id:"tooltip-top-abstract-free-users"+r},l.a.createElement("em",null,"Abstract available from PubMed"))},l.a.createElement("a",{className:"text-indicator text-indicator--abstract text-indicator__active","data-toggle":"tooltip","data-html":"true",title:"",pos:i,"data-original-title":"Abstract",href:t.Url,onClick:function(e){d(e,t,i)},target:"_blank"},l.a.createElement(ra,null)," "))):null,b?l.a.createElement("span",{className:"text-indicator",key:"spntoplibkey"+r},l.a.createElement("div",{className:"text-indicator-divider"}),l.a.createElement(Ce.a,{key:"top fulltext-pro-libkey"+r,placement:"top",className:"pro-tooltip ",overlay:l.a.createElement(Te.a,{id:"tooltip-top-fulltext-pro-libkey"+r},l.a.createElement("em",null,"Full Text with LibKey"))},l.a.createElement("a",{href:b,className:"text-indicator text-indicator--full-text text-indicator__active",target:"_blank","data-toggle":"tooltip","data-placement":"top",title:"Tooltip on top"},b?l.a.createElement(na,null):""))):m?l.a.createElement("span",{className:"text-indicator",key:"spnres"+r},l.a.createElement("div",{className:"text-indicator-divider"}),l.a.createElement(Ce.a,{key:"top fulltext-pro-libresolver"+r,placement:"top",className:"pro-tooltip ",overlay:l.a.createElement(Te.a,{id:"tooltip-top-fulltext-pro-libresolver"+r},l.a.createElement("em",null,"Full Text with LinkResolver"))},l.a.createElement("a",{className:"text-indicator text-indicator--full-text text-indicator__active","data-toggle":"tooltip","data-placement":"top",title:"Tooltip on top",href:m,target:"_blank"},l.a.createElement(la,null)))):""):""))},oa=function(e){return l.a.createElement(l.a.Fragment,null,l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15.55 15.55"},l.a.createElement("g",null,l.a.createElement("polygon",{points:"4.7 3.33 5.55 3.19 5.29 1.11 4.44 1.25 4.7 3.33",fill:"#b3b3b3"}),l.a.createElement("polygon",{points:"3.19 5.55 3.33 4.7 1.25 4.44 1.11 5.29 3.19 5.55",fill:"#b3b3b3"}),l.a.createElement("rect",{x:"2.83",y:"2.26",width:"1",height:"2.14",transform:"translate(-1.38 3.33) rotate(-44.98)",fill:"#b3b3b3"}),l.a.createElement("polygon",{points:"10.85 12.22 10 12.36 10.26 14.44 11.11 14.3 10.85 12.22",fill:"#b3b3b3"}),l.a.createElement("polygon",{points:"12.36 10 12.22 10.85 14.3 11.11 14.44 10.26 12.36 10",fill:"#b3b3b3"}),l.a.createElement("rect",{x:"11.72",y:"11.15",width:"1",height:"2.14",transform:"translate(-5.06 12.22) rotate(-45.01)",fill:"#b3b3b3"}),l.a.createElement("path",{d:"M14.45,1.1a3.78,3.78,0,0,1,0,5.34L12,8.89,11.11,8l2.45-2.45A2.52,2.52,0,1,0,10,2L7.56,4.44l-.89-.89L9.11,1.1A3.78,3.78,0,0,1,14.45,1.1Z",fill:"#b3b3b3"}),l.a.createElement("path",{d:"M8.89,12,6.46,14.44A3.78,3.78,0,1,1,1.11,9.09L3.54,6.67l.89.89L2,10a2.52,2.52,0,0,0,3.57,3.57L8,11.13Z",fill:"#b3b3b3"}))),e.text?e.text:"")},ma=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 88.96 88.96"},l.a.createElement("title",null,"inline-icon-twitter"),l.a.createElement("path",{d:"M78.3,29.79c0-.75,0-1.51,0-2.26A35.67,35.67,0,0,0,87,18.44,34.78,34.78,0,0,1,76.93,21.2a17.64,17.64,0,0,0,7.71-9.71A35.2,35.2,0,0,1,73.5,15.76a17.55,17.55,0,0,0-30.36,12,17.73,17.73,0,0,0,.45,4A49.92,49.92,0,0,1,7.41,13.43a17.55,17.55,0,0,0,5.44,23.43,17.54,17.54,0,0,1-8-2.2v.22A17.56,17.56,0,0,0,19,52.09a17.52,17.52,0,0,1-4.62.62,17.92,17.92,0,0,1-3.3-.32,17.57,17.57,0,0,0,16.4,12.19A35.23,35.23,0,0,1,5.64,72.1a36.26,36.26,0,0,1-4.19-.25,49.71,49.71,0,0,0,26.91,7.89C60.65,79.74,78.3,53,78.3,29.79Z",fill:"#4a4a4a"}))},da=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9.32 16.07"},l.a.createElement("polygon",{points:"0.5 0.5 0.5 15.05 4.66 11.86 8.82 15.05 8.82 0.5 0.5 0.5",fill:"none",stroke:"#b3b3b3",strokeMiterlimit:"10"}))},ua=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16.52 16.38"},l.a.createElement("path",{d:"M11,14.33a.69.69,0,1,1,.69.69A.69.69,0,0,1,11,14.33ZM6.84,11.57l2.9,2.16a2,2,0,0,0-.1.6,2.06,2.06,0,1,0,2.06-2,2,2,0,0,0-1.14.34L7.67,10.48A4.91,4.91,0,0,1,6.84,11.57ZM1.38,8.19a2.07,2.07,0,1,1,2.06,2.05A2.05,2.05,0,0,1,1.38,8.19ZM0,8.19A3.44,3.44,0,1,0,3.44,4.78,3.43,3.43,0,0,0,0,8.19Zm13.76,0a.69.69,0,1,1,.69.68A.69.69,0,0,1,13.76,8.23Zm.69,2a2.05,2.05,0,1,0-1.92-2.77H8.2a3.88,3.88,0,0,1,0,1.36h4.3A2.05,2.05,0,0,0,14.45,10.28ZM12.39,2.05a.69.69,0,1,1-.69-.68A.69.69,0,0,1,12.39,2.05Zm1.37,0a2.06,2.06,0,0,0-4.12,0,2,2,0,0,0,.1.6L6.84,4.81A4.91,4.91,0,0,1,7.67,5.9l2.89-2.15a2,2,0,0,0,1.14.35A2.05,2.05,0,0,0,13.76,2.05Z",fill:"#b3b3b3"}))},Ea=function(){return l.a.createElement("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 193.32 146.62"},l.a.createElement("polygon",{points:"96.66 0.24 65.03 48.73 128.29 48.73 96.66 0.24",fill:"#6cb52d"}),l.a.createElement("polygon",{points:"47.25 75.97 33.33 97.31 159.98 97.31 146.07 75.97 47.25 75.97",fill:"#dadada"}),l.a.createElement("polygon",{points:"1.32 146.38 192 146.38 177.76 124.56 15.55 124.56 1.32 146.38",fill:"#dadada"}),l.a.createElement("polygon",{points:"17.48 121.6 175.83 121.6 161.91 100.27 31.4 100.27 17.48 121.6",fill:"#dadada"}),l.a.createElement("polygon",{points:"130.22 51.68 63.1 51.68 49.18 73.02 144.14 73.02 130.22 51.68",fill:"#dadada"}))},fa=function(){return l.a.createElement("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 193.32 146.62"},l.a.createElement("polygon",{points:"96.66 0.24 65.03 48.73 128.29 48.73 96.66 0.24",fill:"#dadada"}),l.a.createElement("polygon",{points:"47.25 75.97 33.33 97.31 159.98 97.31 146.07 75.97 47.25 75.97",fill:"#dadada"}),l.a.createElement("polygon",{points:"1.32 146.38 192 146.38 177.76 124.56 15.55 124.56 1.32 146.38",fill:"#dadada"}),l.a.createElement("polygon",{points:"17.48 121.6 175.83 121.6 161.91 100.27 31.4 100.27 17.48 121.6",fill:"#dadada"}),l.a.createElement("polygon",{points:"130.22 51.68 63.1 51.68 49.18 73.02 144.14 73.02 130.22 51.68",fill:"#186cb4"}))},pa=function(){return l.a.createElement("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 193.32 146.62"},l.a.createElement("polygon",{points:"96.66 0.24 65.03 48.73 128.29 48.73 96.66 0.24",fill:"#dadada"}),l.a.createElement("polygon",{points:"47.25 75.97 33.33 97.31 159.98 97.31 146.07 75.97 47.25 75.97",fill:"#22b2a6"}),l.a.createElement("polygon",{points:"1.32 146.38 192 146.38 177.76 124.56 15.55 124.56 1.32 146.38",fill:"#dadada"}),l.a.createElement("polygon",{points:"17.48 121.6 175.83 121.6 161.91 100.27 31.4 100.27 17.48 121.6",fill:"#dadada"}),l.a.createElement("polygon",{points:"130.22 51.68 63.1 51.68 49.18 73.02 144.14 73.02 130.22 51.68",fill:"#dadada"}))},ha=function(){return l.a.createElement("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 193.32 146.62"},l.a.createElement("polygon",{points:"96.66 0.24 65.03 48.73 128.29 48.73 96.66 0.24",fill:"#dadada"}),l.a.createElement("polygon",{points:"47.25 75.97 33.33 97.31 159.98 97.31 146.07 75.97 47.25 75.97",fill:"#dadada"}),l.a.createElement("polygon",{points:"1.32 146.38 192 146.38 177.76 124.56 15.55 124.56 1.32 146.38",fill:"#dadada"}),l.a.createElement("polygon",{points:"17.48 121.6 175.83 121.6 161.91 100.27 31.4 100.27 17.48 121.6",fill:"#ba3a18"}),l.a.createElement("polygon",{points:"130.22 51.68 63.1 51.68 49.18 73.02 144.14 73.02 130.22 51.68",fill:"#dadada"}))},ba=function(){return l.a.createElement("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 193.32 146.62"},l.a.createElement("polygon",{points:"96.66 0.24 65.03 48.73 128.29 48.73 96.66 0.24",fill:"#dadada"}),l.a.createElement("polygon",{points:"47.25 75.97 33.33 97.31 159.98 97.31 146.07 75.97 47.25 75.97",fill:"#dadada"}),l.a.createElement("polygon",{points:"1.32 146.38 192 146.38 177.76 124.56 15.55 124.56 1.32 146.38",fill:"#ffe301"}),l.a.createElement("polygon",{points:"17.48 121.6 175.83 121.6 161.91 100.27 31.4 100.27 17.48 121.6",fill:"#dadada"}),l.a.createElement("polygon",{points:"130.22 51.68 63.1 51.68 49.18 73.02 144.14 73.02 130.22 51.68",fill:"#dadada"}))};var va=function(e){return function(e){switch(e){case 1:return l.a.createElement(Ea,null);case 2:return l.a.createElement(fa,null);case 3:return l.a.createElement(pa,null);case 4:return l.a.createElement(ha,null);case 5:return l.a.createElement(ba,null);default:return}}(e.grade)},ya=function(e){var t=e.score,a=e.handleGuidelines,n=e.publication_id;return l.a.createElement("div",{className:"trip-score"},l.a.createElement("span",{className:"trip-score--title"},"Trip Score"),l.a.createElement("div",{className:"trip-score--gauge"},l.a.createElement("span",{className:"trip-score--label__red"},"Narrative based"),l.a.createElement("div",{className:"trip-score-slider","data-trip-score":t>100?100:t}),l.a.createElement("span",{className:"trip-score--label__green"},"Evidence based")),l.a.createElement("a",{type:"button",className:"trip-score--explainer-link",href:"!/#",onClick:function(e){a(e,n)},target:"_blank"},"?"))},ga=function(){return l.a.createElement("svg",{version:"1.1",viewBox:"0 0 370.61 150",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("rect",{width:"370.61",height:"150",fill:"#005eb8",strokeWidth:"3.75"}),l.a.createElement("g",{transform:"scale(3.75)",fill:"#fff"},l.a.createElement("path",{d:"m9.66 3.86h10.75l6.59 22.33h0.1l4.52-22.33h8.12l-6.83 32.2h-10.7l-6.74-22.28h-0.09l-4.47 22.28h-8.12z"}),l.a.createElement("path",{d:"m42.91 3.86h8.63l-2.54 12.32h10.2l2.54-12.32h8.63l-6.69 32.2h-8.68l2.86-13.79h-10.15l-2.86 13.79h-8.62z"}),l.a.createElement("path",{d:"m93.06 11.15a16.18 16.18 0 0 0-7.06-1.48c-3.41 0-6.18 0.51-6.18 3.09 0 4.57 12.5 2.86 12.5 12.64 0 8.9-8.26 11.21-15.73 11.21a36 36 0 0 1-10-1.66l2-6.55c1.71 1.11 5.12 1.85 7.93 1.85s6.87-0.51 6.87-3.83c0-5.17-12.5-3.23-12.5-12.32 0-8.3 7.29-10.8 14.35-10.8 4 0 7.7 0.42 9.87 1.43z"})))},Oa=(a(29),a(2),function(){return l.a.createElement("div",{className:"trip-score"},l.a.createElement("span",{className:"trip-score--title"},"Trip Score"),l.a.createElement("div",{className:"trip-score--gauge"},l.a.createElement("span",null,"Not Yet Assessed")," "))}),_a=a(2),Sa=function(e){var t=e.score,a=e.handleGuidelines,n=e.publication_id,r=e.category_guideline,i=0;return t=_a.isArray(t)?t[0]:null,!_a.isNull(t)&&t>0&&(i=(i=100*t/8).toFixed()),_a.isNull(t)?r?l.a.createElement(Oa,null):null:l.a.createElement(ya,{score:i,publication_id:n,handleGuidelines:a})},Na=function(e){var t=e.handleClose,a=e.show,r=e.publication_id,i=Object(n.useState)({}),c=Object(h.a)(i,2),s=c[0],o=c[1],m=Object(n.useState)(""),d=Object(h.a)(m,2),u=d[0],E=d[1];function b(){return(b=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Y.a.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getGuidelinesScore":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getGuidelinesScore",{params:{pub_id:t}}).then((function(e){if(200===e.status&&!C.default.isUndefined(e.data)&&!C.default.isUndefined(e.data.results)){o(e.data.results);var t=0;t+=C.default.isUndefined(e.data.results.methodology)?0:parseInt(e.data.results.methodology),t+=C.default.isUndefined(e.data.results.evidence_grading)?0:parseInt(e.data.results.evidence_grading),t+=C.default.isUndefined(e.data.results.systematic_evidence)?0:parseInt(e.data.results.systematic_evidence),t+=C.default.isUndefined(e.data.results.funding)?0:parseInt(e.data.results.funding),t+=C.default.isUndefined(e.data.results.conflict)?0:parseInt(e.data.results.conflict),E(t)}})).catch((function(e){console.log(e)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(n.useEffect)((function(){r&&function(e){b.apply(this,arguments)}(r)}),[r]),l.a.createElement(H.a,{show:a,onHide:t,animation:!1,size:"lg",centered:!0},l.a.createElement(U.a,{width:"100%"},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-success"},l.a.createElement("i",{className:"fa fa-info-circle"})," Guidelines Score")),l.a.createElement(H.a.Body,null,l.a.createElement("p",null,"The guideline score is an attempt to classify guidelines based on how evidence-based we feel they are based on a 5-point scoring system."," ",l.a.createElement("a",{href:"https://blog.tripdatabase.com/2023/05/08/introducing-our-guideline-score/",target:"_new",rel:"nofollow"}," ","Click here for more information (including limitations)",l.a.createElement("i",{className:"fa fa-external-link"}))),l.a.createElement("p",null,"Do they publish their methodology (maximum score 2)?:"," ",s.methodology&&l.a.createElement("b",null,s.methodology)),l.a.createElement("p",null,"Do they use any evidence grading (maximum score 2)?:"," ",s.evidence_grading&&l.a.createElement("b",null,s.evidence_grading)),l.a.createElement("p",null,"Do they undertake a systematic evidence search (maximum score 2)?:"," ",s.systematic_evidence&&l.a.createElement("b",null,s.systematic_evidence)),l.a.createElement("p",null,"Are they clear about funding (maximum score 1)?:"," ",s.funding&&l.a.createElement("b",null,s.funding)),l.a.createElement("p",null,"Do they mention how they handle conflict of interest (maximum score 1)?: ",s.conflict&&l.a.createElement("b",null,s.conflict)),l.a.createElement("p",null,"Total Score : ",u&&l.a.createElement("b",null," "+u)),l.a.createElement("p",null,s.comments&&l.a.createElement("b",null,s.comments))),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:t},l.a.createElement("i",{className:"fa fa-times"})," Close"))))},wa=function(e){var t=e.handleClose,a=e.show;return l.a.createElement(H.a,{show:a,onHide:t,animation:!1,size:"lg",centered:!0},l.a.createElement(U.a,{width:"100%"},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-success"},l.a.createElement("i",{className:"fa fa-info-circle"})," Robot Reviewer Score")),l.a.createElement(H.a.Body,null,l.a.createElement("p",null,"We have worked with RobotReviewer"," ",l.a.createElement("a",{href:"https://www.robotreviewer.net/",target:"_blank"},"https://www.robotreviewer.net/"," "),"to automatically estimate the quality of clinical trials. ",l.a.createElement("br",null)),l.a.createElement("p",null,"In using this score it is important to understand the process, so we recommend you read the explainer"," ",l.a.createElement("a",{href:"https://blog.tripdatabase.com/2023/05/17/introducing-our-rct-score/",target:"_blank"}," ","'Introducing our RCT score'"))),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:t},l.a.createElement("i",{className:"fa fa-times"})," Close"))))},ka=function(e){var t=e.score,a=e.handleRob;return l.a.createElement("div",{className:"trip-score"},l.a.createElement("span",{className:"trip-score--title"},"Trip Score"),0==t?l.a.createElement("div",{className:"trip-score--gauge"},l.a.createElement("span",null,"Not Yet Assessed")):l.a.createElement("div",{className:"trip-score--gauge"},l.a.createElement("span",null,"Risk of Bias:"),l.a.createElement("span",{className:"trip-score--label__red"},"High"),l.a.createElement("div",{className:"trip-score-slider","data-trip-score":t>100?100:t}),l.a.createElement("span",{className:"trip-score--label__green"},"Low")),l.a.createElement("a",{type:"button",className:"trip-score--explainer-link",href:"!/#",onClick:function(e){a(e)},target:"_blank"},"?"))},Ca=a(2),Ta=function(e){var t=e.score,a=e.handleRob,n=(e.category_ct,0);return Ca.isNull(t)||(n=(n=100*t).toFixed()),Ca.isNull(t)?null:l.a.createElement(ka,{score:n,handleRob:a})},ja=a(14),Pa=(a(104),["(16 OR 18 OR 9 OR 10 OR 4 OR 36)","16","18","9","10","4","36"]),Aa=["27"],Da=function(e){var t=e.isPro,a=void 0===t?null:t,r=e.resultset,i=e.publicationset,c=e.start,s=(e.loading,e.publicationSelect),o=e.searchParams,m=e.setStarred,d=e.isStarred,u=e.snippetshow,E=e.articleChecked,f=e.setArticleChecked,p=e.articleClicked,b=void 0===p?null:p,v=e.setArticleClicked,y=e.libkeydata,g=void 0===y?null:y,O=e.categorySelect,_=(e.dois,e.currentCategory),S=e.showRelated,N=Object(n.useState)(!1),w=Object(h.a)(N,2),k=w[0],T=w[1],j=Object(n.useState)(!1),P=Object(h.a)(j,2),A=P[0],D=P[1],R=Object(n.useState)(!1),U=Object(h.a)(R,2),L=U[0],x=U[1],I=Object(n.useState)(""),M=Object(h.a)(I,2),H=M[0],W=M[1],K=Object(n.useState)([]),V=Object(h.a)(K,2),q=V[0],B=V[1],Z=Object(n.useState)({}),F=Object(h.a)(Z,2),G=(F[0],F[1]),Y=Object(n.useState)(!1),z=Object(h.a)(Y,2),Q=(z[0],z[1],Object(n.useState)(!1)),$=Object(h.a)(Q,2),J=($[0],$[1]),X=Object(n.useState)(""),ee=Object(h.a)(X,2),te=ee[0],ae=ee[1],ne=Object(n.useState)(!0),le=Object(h.a)(ne,2),re=(le[0],le[1]),ie=q||[],ce=d||[],se=c+1,oe={1:{cls:"badge badge-evidence-secondary is-active",clsdot:"evidence-dot evidence-dot--evidence-secondary"},2:{cls:"badge badge-evidence-key-primary is-active",clsdot:"evidence-dot evidence-dot--evidence-key-primary"},3:{cls:"badge badge-evidence-clinical-q-and-a is-active",clsdot:"evidence-dot evidence-dot--evidence-clinical-q-and-a"},4:{cls:"badge badge-evidence-all-primary is-active",clsdot:"evidence-dot evidence-dot--evidence-all-primary"},5:{cls:"badge badge-evidence-other is-active",clsdot:"evidence-dot evidence-dot--evidence-other"}};function me(){var e="";switch(o.search_type){case"standard":e=o.criteria;break;case"pico":e="("+o.criteria+")("+o.intervention+")("+o.comparison+")("+o.outcome+")";break;case"advanced":e="("+o.criteria+") ("+(o.anywords?" "+o.anywords:"")+") ("+(o.exactphrase?" "+o.exactphrase:"")+") ("+(o.excludingwords?" "+o.excludingwords:"")+")"}return e}var de=function(e,t,a){var n=b||[];t&&n.push(t),v(Object(kt.a)(n)),C.default.isEmpty(b)?re(""):(re(t),J(!1));var l=C.default.chain(r).map((function(e,t){return e.id+":"+Math.round(e.score,2)})).join().value(),i=a-1;ja.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/User/saveDocumentview":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/User/saveDocumentview",{document_id:t.id,documents:l,criteria:JSON.stringify(o),keywords:me(),activity:"",institution_id:null,pos:i},{withCredentials:!0}).catch((function(e){console.log(e)}))},ue=function(e,t){var a=C.default.chain(r).map((function(e,t){return e.id+":"+Math.round(e.score,2)})).join().value(),n=e.target.getAttribute("pos")-1;ja.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/User/setStar":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/User/setStar",{document_id:t.docId,documents:a,criteria:JSON.stringify(o),keywords:me(),activity:t.activity,institution_id:null,pos:n},{withCredentials:!0}).then((function(e){return!0})).catch((function(e){W({title:"Information",message:"Access denied - user must be logged in to bookmark articles!"}),T(!0)})),e.preventDefault()};function Ee(e){return i.filter((function(t){return t.id===e})).map((function(e,t){return C.default.isUndefined(e.guidelines_score)?null:e.guidelines_score}))}var fe=function(e,t){C.default.isUndefined(t)||ae(t),x(!L),e&&e.preventDefault()},pe=function(e){D(!A),e&&e.preventDefault()};return l.a.createElement(l.a.Fragment,null,l.a.createElement(Jt,{info:H,setInfoShow:T,show:k}),l.a.createElement(Na,{handleClose:fe,show:L,publication_id:te}),l.a.createElement(wa,{handleClose:pe,show:A}),r.map((function(e,t){return l.a.createElement("span",{key:"res-span"+t},l.a.createElement("div",{className:"result",key:"res"+t},l.a.createElement("div",{className:"result--checkbox"},l.a.createElement("input",{type:"checkbox",className:"chkbox pull-left",name:"chkArticles",onChange:function(t){!function(e,t){var a=E||[];!0===e.target.checked?a.push(t):a.pop(t),f(Object(kt.a)(a)),C.default.isEmpty(E)?re(""):(re(t),J(!1))}(t,e.id)},checked:E.includes(e.id)}),l.a.createElement("span",null,se++)),l.a.createElement("div",{className:"result--content"},l.a.createElement(sa,{data:e,idx:t,count:se,dotClass:oe[e.grade].clsdot,isPro:a,libkeydata:g,linkResolver_url:C.default.isNull(e.linkResolver)||C.default.isUndefined(e.linkResolver.resolver_url)?null:e.linkResolver.resolver_url,handleArticleClick:de}),l.a.createElement("div",{className:"result--taxonomies"},l.a.createElement(Ce.a,{key:"top",placement:"top",className:"pro-tooltip",overlay:l.a.createElement(Te.a,{id:"overlay-example"+t},"A simple tool to help convey the potential robustness of the evidence (for more information"," ",l.a.createElement("a",{href:"https://blog.tripdatabase.com/2021/09/26/pyramids-are-back/",target:"_blank",rel:"nofollow",style:{color:"yellow"}},"click here"),")"),delay:{show:40,hide:1800}},l.a.createElement("a",{href:"#","data-toggle":"tooltip","data-html":"true",title:"",onClick:function(t){return O(t,C.default.isUndefined(e.categories[0])?0:e.categories[0])}},l.a.createElement(va,{grade:e.grade}))),l.a.createElement("button",{className:oe[e.grade].cls,onClick:function(t){return O(t,C.default.isUndefined(e.categories[0])?0:e.categories[0])}},e.category),l.a.createElement("span",{className:"result--taxonomies--date",tabIndex:"0"},e.Date),l.a.createElement("span",{className:"result--taxonomies--pub"},l.a.createElement("a",{href:"#",onClick:function(t){return s(t,e.Publication_id)}},(n=e.Publication_id,i.filter((function(e){return e.id===n})).map((function(e,t){return e.publication}))))),l.a.createElement(Sa,{score:Ee(e.Publication_id),publication_id:e.Publication_id,handleGuidelines:fe,category_guideline:!!_&&Pa.includes(_.toString())}),l.a.createElement(Ta,{score:e.prob_low_rob,handleRob:pe,category_ct:!!_&&Aa.includes(_.toString())})),u&&l.a.createElement("div",{className:"result--snippet",dangerouslySetInnerHTML:{__html:e.snippet}}),l.a.createElement("div",{className:"result--actions"},l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement(Ce.a,{key:"top",placement:"top",className:"pro-tooltip",overlay:l.a.createElement(Te.a,{id:"tooltip-top-twitter"+t},"Share on Twitter")},l.a.createElement("a",{className:"result-action",href:"#","data-toggle":"tooltip","data-original-title":"Share on Twitter","data-html":"true",title:"",onClick:function(t){return function(e,t,a){var n="https://www.tripdatabase.com/Document/"+t;window.open("https://twitter.com/intent/tweet?text="+a.substring(0,100)+" "+n+"&via=tripdatabase","","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600"),e.preventDefault()}(t,e.id,e.Title)}},l.a.createElement(ma,null)))),l.a.createElement("li",null,!0===d.includes(parseInt(e.id,10))?l.a.createElement(Ce.a,{key:"top",placement:"top",className:"pro-tooltip",overlay:l.a.createElement(Te.a,{id:"tooltip-top-bookmark"+t},"Bookmark")},l.a.createElement("a",{href:"#",className:"result-action result-action__active","data-toggle":"tooltip","data-html":"true",title:"","data-original-title":"Bookmark",pos:se,activity:1,onClick:function(t){ce.pop(parseInt(e.id,10)),d.pop(parseInt(e.id,10)),m(ce),G((function(t){return Object(Ve.a)({},t,{id:e.id})})),ue(t,{docId:e.id,activity:-1,count:se})}},l.a.createElement(da,null))):l.a.createElement(Ce.a,{key:"top",placement:"top",className:"pro-tooltip",overlay:l.a.createElement(Te.a,{id:"tooltip-top-bookmark"+t},"Bookmark")},l.a.createElement("a",{href:"#",className:"result-action",pos:se,activity:1,onClick:function(t){ce.push(parseInt(e.id,10)),m(ce),G((function(t){return Object(Ve.a)({},t,{id:e.id})})),ue(t,{docId:e.id,activity:1,count:se})}},l.a.createElement(da,null)))),l.a.createElement("li",null,l.a.createElement(Ce.a,{key:"top",placement:"top",className:"related-tooltip",overlay:l.a.createElement(Te.a,{id:"tooltip-top-related"+t},"Related Articles")},l.a.createElement("a",{href:"#",className:"result-action",onClick:function(t){S(e),t.preventDefault()}},l.a.createElement(ua,null))))),l.a.createElement("a",{href:"!/#",className:"broken-link",onClick:function(t){var a,n;ie.push(e.id),B(ie),G((function(t){return Object(Ve.a)({},t,{id:e.id})})),a=t,n={docId:e.id,url:e.Url,title:e.Title},ja.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/User/reportLink":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/User/reportLink",{document_id:n.docId,title:n.title,link:n.url},{withCredentials:!0}).then((function(e){})).catch((function(e){})),a.preventDefault()}},!0===q.includes(e.id)?l.a.createElement("i",{className:"fa fa-thumbs-up text-success"}," Thank You!"):l.a.createElement(oa,{text:"Broken Link?"}))))),0==a&&3==se&&l.a.createElement(aa,{data:{isPro:a,count:se}}));var n})))},Ra=function(e){for(var t=e.postsPerPage,a=e.totalArticles,n=e.paginate,r=e.firstPage,i=e.setFirstPage,c=e.currentPage,s=e.showall,o=e.showallSelect,m=e.isPro,d=e.search_type,u=[],E=Math.ceil(a/t),f=a<=20?E:r+11,p=r;p<=f;p++)p<=E&&u.push(p);return a>20&&l.a.createElement("nav",{"aria-label":"..."},l.a.createElement("ul",{className:"pagination"},r>1?l.a.createElement("li",{key:E-1,className:"page-item"},l.a.createElement("span",{onClick:function(e){n(e,r-12),i(r-12)},className:"page-link"},"Previous")):"",u.map((function(e){return l.a.createElement("li",{key:e,className:e==c?"page-item active":"page-item"},l.a.createElement("a",{className:"page-link",href:"#!",onClick:function(t){return n(t,e)}},e," ",e==c&&l.a.createElement("span",{className:"sr-only"},"(current)")))})),E>12?l.a.createElement("li",{key:E,className:"page-item"},l.a.createElement("a",{onClick:function(e){return n(e,E)},href:"!#",className:"page-link"},".. ",E)):"",E>12&&fDocument not found!

");else{window.location.href=e.data.url;var t='

If redirect is taking longer, click '+e.data.title+"

";E(t)}g(!1)}else new Error(e.error_message)})).catch((function(e){console.log("error",e),g(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(n.useEffect)((function(){document.title="Document : Trip Medical Database",function(){H.apply(this,arguments)}()}),[]);var W=Va.isUndefined(e.match.params)?"":e.match.params.criteria;function K(){var e={criteria:W=W.replace("-"," "),search_type:"document",page:1,sort:"y",document_id:W};return N(e),e}var V="",q=[];if(u&&u.summary){var B=u.summary;B,V=u.documents,B.all_categories?B.all_categories:[],B.clinical_area?B.clinical_area:[],B.refinements?B.refinements:[],q=B.publications_data?B.publications_data:[]}return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:o,setErrorShow:i,show:r}),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"9"},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(Da,{resultset:V||[],publicationset:q,start:0,loading:y,publicationSelect:function(e,t){e.preventDefault()},searchParams:S,setStarred:T,isStarred:C,snippetshow:!0,articleChecked:R,setArticleChecked:U,articleClicked:I,setArticleClicked:M}))))))},Ba=a(14),Za=a(2),Fa=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=(s[1],Object(n.useState)("")),d=Object(h.a)(m,2),u=d[0],E=d[1],b=Object(n.useState)(!0),v=Object(h.a)(b,2),y=v[0],g=v[1];function O(){return(O=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ba.get(Za.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Search":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Search",{params:S()}).then((function(e){if(200===e.status){if(Za.isUndefined(e.data.url))E("

Document not found!

");else{window.location.href=e.data.url;var t='

If redirect is taking longer, click '+e.data.title+"

";E(t)}g(!1)}})).catch((function(e){g(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(n.useEffect)((function(){document.title="Document : Trip Medical Database",function(){O.apply(this,arguments)}()}),[]);var _=Za.isUndefined(e.match.params)?"":e.match.params.criteria;function S(){return{criteria:_=_.replace("-"," "),search_type:"document",page:1,sort:"y",document_id:_}}return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:o,setErrorShow:i,show:r}),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"9"},l.a.createElement(j.a,null,l.a.createElement(A.a,null,o?l.a.createElement(P.a,{variant:"danger",dismissible:!0},l.a.createElement(P.a.Heading,null,o,"!"),l.a.createElement("p",null,"We cannot process your request due to ",o,", please try again later!")):"",y&&l.a.createElement("div",null,l.a.createElement("div",{className:"spinner-border text-info"})," Processing request....."),l.a.createElement("div",{dangerouslySetInnerHTML:{__html:u}}))))))},Ga=a(29),Ya=a.n(Ga),za=a(14),Qa=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(""),u=Object(h.a)(d,2),E=u[0],b=u[1];function v(){return(v=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:za.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/User/unsubscribe":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/User/unsubscribe",{params:{key:Fe("_t")},withCredentials:!0}).then((function(e){if(200===e.status)e.data?b(e.data.message):(i({message:e.data.message}),m(!0));else{new Error(e.message);i({message:e.message}),m(!0)}})).catch((function(e){C.default.isEmpty(e)||(i(e),m(!0))}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(n.useEffect)((function(){!function(){v.apply(this,arguments)}()}),[]),l.a.createElement("main",{role:"main",className:"main mt-2"},l.a.createElement(se,{error:r,setErrorShow:m,show:o}),l.a.createElement(j.a,null),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"3"}),l.a.createElement(A.a,{md:"9"},l.a.createElement(j.a,null,l.a.createElement(A.a,null,E&&l.a.createElement(R.a,{variant:"info"},l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,null,l.a.createElement("h2",null,"Unsubscribe!")),l.a.createElement("p",null,E))))))))},$a=function(e){e.props;var t=e.totalArticles,a=e.loading,n=(e.keyword,e.sort,e.categories_pro),r=e.currentParams,i=void 0===r?null:r,c=C.default.where(n,{category_id:11}),s=C.default.isUndefined(c[0])?0:c[0].count,o="";return function(){var e="";if(C.default.isUndefined(Ya.a.get("advanced"))||(e=Ya.a.get("advanced")),t&&!C.default.isEmpty(e)){var a=e.pop();C.default.isUndefined(a.total)?a.total=t:a.total=a.total,e.push(a),Ya.a.set("advanced",e)}}(),l.a.createElement("div",{className:"col mt-0"},l.a.createElement("div",{className:"search-term"},l.a.createElement("h1",{style:{marginTop:"0"}},function(){if(C.default.isUndefined(i.search_type))return"";switch(i.search_type){case"standard":o+=C.default.isUndefined(i.criteria)?"":i.criteria,o+=C.default.isUndefined(i.clinical)?"":" "+i.clinical;break;case"pico":o+=C.default.isUndefined(i.criteria)?"":i.criteria,o+=!C.default.isUndefined(i.intervention)&&i.intervention?", "+i.intervention:"",o+=!C.default.isUndefined(i.comparison)&&i.comparison?", "+i.comparison:"",o+=!C.default.isUndefined(i.outcome)&&i.outcome?", "+i.outcome:"";break;case"advanced":o+=C.default.isUndefined(i.criteria)?"":i.criteria,o+=!C.default.isUndefined(i.anywords)&&i.anywords?", "+i.anywords:"",o+=!C.default.isUndefined(i.exactphrase)&&i.exactphrase?", "+i.exactphrase:"",o+=!C.default.isUndefined(i.excludingwords)&&i.excludingwords?", "+i.excludingwords:"",o+=!C.default.isUndefined(i.advfrom)&&i.advfrom?", "+i.advfrom:"",o+=!C.default.isUndefined(i.advto)&&i.advto?", "+i.advto:"";break;case"advanced2":o+=C.default.isUndefined(i.criteria)?"":i.criteria,o+=!C.default.isUndefined(i.advfrom)&&i.advfrom?", "+i.advfrom:"",o+=!C.default.isUndefined(i.advto)&&i.advto?", "+i.advto:""}return C.default.isUndefined(i.from_date)||(o+=i.from_date?" from_date:"+i.from_date:""),C.default.isUndefined(i.to_date)||(o+=i.to_date?" to_date:"+i.to_date:""),o}()),l.a.createElement("div",{className:"search-term--results-numbers"},a?l.a.createElement("div",{className:"pull-center"},l.a.createElement(D.a,{animation:"border",size:"sm",variant:"success"})," ","Processing results.."):l.a.createElement("span",null,t?l.a.createElement("span",{className:"bold"},t.toLocaleString()+" results"):"Results not found"),t?l.a.createElement("span",{className:"pro-label"},"Pro users have access to +",s," Systematic Reviews"):"")))},Ja=a(472),Xa=a(955),en=a(956),tn=a(99),an=function(e){var t=e.isPro,a=e.sort,n=e.sortSelection,r=e.setSnippetShow,i=e.snippetshow,c=e.setExportShow,s=e.setProNotification,o=e.exportshow,m=e.isdesktop,d=void 0===m||m,u=e.categoryshow,E=e.setCategoryShow,f="Quality",p=ve();switch(a){case"r":f="Quality";break;case"t":f="Relevance";break;case"y":f="Date";break;case"v12m":f="Popularity"}return!0===d?l.a.createElement("div",{className:"results-actions"},l.a.createElement("div",{className:"results-actions--left-group"},l.a.createElement("span",null,"Order By"),l.a.createElement(Ja.a,{activeKey:"r",onSelect:function(e){return n(e)}},l.a.createElement(Xa.a,{as:en.a,id:"sort-nav-dropdown",variant:"null",title:f},l.a.createElement(tn.a.Item,{eventKey:"r"},"Quality"),l.a.createElement(tn.a.Item,{eventKey:"t"},"Relevance"),l.a.createElement(tn.a.Item,{eventKey:"y"},"Date"))),l.a.createElement("div",{className:"show-snippets-wrapper"},l.a.createElement("span",null,"Show Snippets"),l.a.createElement("label",{className:"switch"},l.a.createElement("input",{type:"checkbox",checked:i,value:"1",onChange:function(e){return r(!i)}}),l.a.createElement("span",{className:"switch--slide-switch round"})))),p.chkInstitution.institution_name&&l.a.createElement("div",null,l.a.createElement("i",{className:"fa fa-university"})," ",p.chkInstitution.institution_name),l.a.createElement("div",{className:"results-actions--right-group"},l.a.createElement(S.a,{to:"/Key",className:"type-small",title:"results page key"},"Results page key"),l.a.createElement("button",{type:"button",className:"btn dropdown-toggle",title:"Export articles",onClick:function(e){c(!o),s(!t),e.preventDefault()}},"Export Articles ",l.a.createElement("span",{className:"sr-only"},"Toggle Dropdown")))):l.a.createElement("div",{className:"results-actions"},l.a.createElement("div",{className:"results-actions--main-options"},l.a.createElement("div",{className:"filter-results-toggle"},l.a.createElement(x.a,{className:"navbar-btn js-sidebar-toggle navbar-toggler navbar-dark",type:"button",title:"Filter results",onClick:function(e){E(!u),u?document.body.classList.add("result-filters--is-visible"):document.body.classList.remove("result-filters--is-visible")},"data-toggle":!0},l.a.createElement("span",{className:"navbar-toggler-icon"}),"Filter Results")),l.a.createElement("div",{className:"results-actions--order-by"},l.a.createElement("span",null,"Order By"),l.a.createElement(Ja.a,{activeKey:"r",onSelect:function(e){return n(e)}},l.a.createElement(Xa.a,{as:en.a,id:"sort-nav-dropdown",variant:"null",title:f},l.a.createElement(tn.a.Item,{eventKey:"r"},"Quality"),l.a.createElement(tn.a.Item,{eventKey:"t"},"Relevance"),l.a.createElement(tn.a.Item,{eventKey:"y"},"Date"),l.a.createElement(tn.a.Item,{eventKey:"v12m"},"Popularity")))),l.a.createElement("div",{className:"show-snippets-wrapper"},l.a.createElement("span",null,"Show Snippets"),l.a.createElement("label",{className:"switch"},l.a.createElement("input",{type:"checkbox",checked:i,value:"1",onChange:function(e){return r(!i)}}),l.a.createElement("span",{className:"switch--slide-switch round"}))),l.a.createElement(S.a,{to:"/Key",className:"type-small",title:"Results page key"},"Results page key")),l.a.createElement("div",{className:"results-actions--more-options"},l.a.createElement("button",{type:"button",className:"btn dropdown-toggle",title:"Export articles",onClick:function(e){c(!o),s(!t),e.preventDefault()}},"Export Articles ",l.a.createElement("span",{className:"sr-only"},"Toggle Dropdown"))))},nn=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 7.16 9.55"},l.a.createElement("polygon",{points:"7.17 4.78 0 0 0 9.55 7.17 4.78",fill:"#b3b3b3",fillRule:"evenodd"}))},ln=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14.05 14.05"},l.a.createElement("g",null,l.a.createElement("path",{d:"M7,11.54a4.51,4.51,0,1,1,3.19-1.32A4.5,4.5,0,0,1,7,11.54Z",fill:"#89be49",fillRule:"evenodd"}),l.a.createElement("path",{d:"M7,13.8a6.76,6.76,0,1,1,4.79-2A6.81,6.81,0,0,1,7,13.8Z",fill:"none",stroke:"#b3b3b3",strokeMiterlimit:"10",strokeWidth:"0.5",fillRule:"evenodd"})))},rn=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14.05 14.05"},l.a.createElement("g",null,l.a.createElement("path",{d:"M7,11.54a4.51,4.51,0,1,1,3.19-1.32A4.5,4.5,0,0,1,7,11.54Z",fill:"#89be49",fillRule:"evenodd"}),l.a.createElement("path",{d:"M7,13.8a6.76,6.76,0,1,1,4.79-2A6.81,6.81,0,0,1,7,13.8Z",fill:"none",stroke:"#b3b3b3",strokeMiterlimit:"10",strokeWidth:"0.5",fillRule:"evenodd"})))},cn=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14.05 14.05"},l.a.createElement("g",null,l.a.createElement("path",{d:"M7,11.54a4.51,4.51,0,1,1,3.19-1.32A4.5,4.5,0,0,1,7,11.54Z",fill:"#89be49",fillRule:"evenodd"}),l.a.createElement("path",{d:"M7,13.8a6.76,6.76,0,1,1,4.79-2A6.81,6.81,0,0,1,7,13.8Z",fill:"none",stroke:"#b3b3b3",strokeMiterlimit:"10",strokeWidth:"0.5",fillRule:"evenodd"})))},sn=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14.05 14.05"},l.a.createElement("g",null,l.a.createElement("path",{d:"M7,11.54a4.51,4.51,0,1,1,3.19-1.32A4.5,4.5,0,0,1,7,11.54Z",fill:"#89be49",fillRule:"evenodd"}),l.a.createElement("path",{d:"M7,13.8a6.76,6.76,0,1,1,4.79-2A6.81,6.81,0,0,1,7,13.8Z",fill:"none",stroke:"#b3b3b3",strokeMiterlimit:"10",strokeWidth:"0.5",fillRule:"evenodd"})))},on=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14.05 14.05"},l.a.createElement("g",null,l.a.createElement("path",{d:"M7,11.54a4.51,4.51,0,1,1,3.19-1.32A4.5,4.5,0,0,1,7,11.54Z",fill:"#89be49",fillRule:"evenodd"}),l.a.createElement("path",{d:"M7,13.8a6.76,6.76,0,1,1,4.79-2A6.81,6.81,0,0,1,7,13.8Z",fill:"none",stroke:"#b3b3b3",strokeMiterlimit:"10",strokeWidth:"0.5",fillRule:"evenodd"})))},mn=function(e){var t=e.isPro,a=e.isInstitutionPro,n=void 0===a?{}:a,r=e.categories_set,i=e.categories_set_child,c=e.categories_pro,s=e.clinical_area_set,o=e.refinements_set,m=e.current_selections,d=e.loading,u=e.catToggle,E=(e.from_date,e.to_date,e.categorySelect),f=e.clinicalareaSelect,p=e.refinementSelect,h=e.setCatToggle,b=e.setfromDate,v=e.settoDate,y=e.dateRangeSelect;if(d)return l.a.createElement("div",null,"Processing results...");var g=C.default.where(r,{quality:1}),O=C.default.where(r,{quality:2}),_=C.default.where(r,{quality:3}),S=C.default.where(r,{quality:4}),N=C.default.where(r,{quality:5}),w=C.default.where(c,{category_id:11}),k=C.default.isUndefined(w[0])?0:w[0].count;return function(){for(var e=0;e<=C.default.size(g)-1;e++)if(C.default.size(g[e].children)>0)for(var t=0;t<=C.default.size(g[e].children)-1;t++){var a=C.default.findWhere(i,{id:g[e].children[t].id});C.default.isUndefined(a)||(g[e].children[t].count=a.count)}}(),l.a.createElement("div",{className:"filter-results"},l.a.createElement("div",{className:"filter-results--group"},l.a.createElement("div",{className:"filter-results--group--intro"},l.a.createElement("h5",{className:"text-dark"},"Filter Results"),l.a.createElement("div",{className:"evidence-types-action-links"},l.a.createElement("div",{className:"form-check form-check-inline"},l.a.createElement("input",{name:"advfrom",placeholder:" FROM",size:"4",type:"text",className:"form-check-inline form-control",onChange:function(e){return b(e.target.value)}})),l.a.createElement("div",{className:"form-check form-check-inline"},l.a.createElement("input",{name:"advto",placeholder:" TO",size:"4",type:"text",className:"form-check-inline form-control",onChange:function(e){return v(e.target.value)}}),l.a.createElement("a",{href:"#",type:"submit",className:"form-check form-check-inline btn btn-sm btn-primary badge-primary",size:"sm",onClick:function(e){y(e),e.preventDefault()}},"Apply")))),l.a.createElement("ul",{className:"evidence-type-group sub-group-visible"},g.map((function(e){return l.a.createElement("li",{className:(m.currentCategory,e.query_category,"sub-group-visible"),key:e.id},l.a.createElement("button",{onClick:function(t){return E(t,e.query_category)},className:m.currentCategory==e.query_category?"toggle-dot js-toggle-dot toggle-dot--evidence-secondary is-active":m.currentCategory?"toggle-dot js-toggle-dot toggle-dot--evidence-secondary ":"toggle-dot js-toggle-dot toggle-dot--evidence-secondary is-active"},l.a.createElement(ln,null))," ",l.a.createElement("button",{className:m.currentCategory==e.query_category?"badge badge-evidence-secondary is-active":m.currentCategory?"badge badge-evidence-secondary":"badge badge-evidence-secondary is-active",onClick:function(t){return E(t,e.query_category)}},e.category_name,l.a.createElement("span",{className:"badge-count"}," ",0==e.children.length?11==e.id&&!0!==t?e.count-k:e.count:""," ")),e.children.length>0&&l.a.createElement("button",{className:"btn-reveal js-evidence-type-reveal",onClick:function(e){return h(!u)}},l.a.createElement(nn,null)),u&&l.a.createElement("ul",{className:"tree"},e.children.map((function(e){return l.a.createElement("li",{className:"",key:e.id},l.a.createElement("button",{className:m.currentCategory==e.id?"badge badge-evidence-secondary is-active":m.currentCategory?"badge badge-evidence-secondary":"badge badge-evidence-secondary is-active",onClick:function(a){(1!==e.prouser||1===e.prouser&&t)&&E(a,e.id)}},e.category_name,l.a.createElement("span",{className:"badge-count"},e.count))," ",1===e.prouser?l.a.createElement("span",{className:"pro-label"},"Pro"):"")}))))}))),l.a.createElement("ul",{className:"evidence-type-group sub-group-visible"},O.map((function(e){return l.a.createElement("li",{key:e.id},l.a.createElement("button",{className:m.currentCategory==e.id?"toggle-dot js-toggle-dot toggle-dot--evidence-key-primary":"toggle-dot js-toggle-dot toggle-dot--evidence-key-primary is-active",onClick:function(t){return E(t,e.id)}},l.a.createElement(rn,null))," ",l.a.createElement("button",{className:m.currentCategory==e.id?"badge badge-evidence-key-primary is-active":m.currentCategory?"badge badge-evidence-key-primary":"badge badge-evidence-key-primary is-active",onClick:function(t){return E(t,e.id)}},e.category_name," ",l.a.createElement("span",{className:"badge-count"},0==e.children.length?e.count:"")),e.children.length>0&&l.a.createElement("button",{className:"btn-reveal js-evidence-type-reveal",onClick:function(e){return h(!u)}},l.a.createElement(nn,null)),u&&l.a.createElement("ul",{className:"tree"},e.children.map((function(e){return l.a.createElement("li",{className:"",key:e.id,style:{color:"black"}},l.a.createElement("button",{className:m.currentCategory==e.id?"badge badge-evidence-primary is-active":m.currentCategory?"badge badge-evidence-key-primary":"badge badge-evidence-key-primary is-active",onClick:function(t){return E(t,e.id)}},e.category_name," ",l.a.createElement("span",{className:"badge-count"},e.count)))}))))}))),l.a.createElement("ul",{className:"evidence-type-group sub-group-visible"},_.map((function(e){return l.a.createElement("li",{key:e.id},l.a.createElement("button",{className:m.currentCategory==e.id?"toggle-dot js-toggle-dot toggle-dot--evidence-clinical-q-and-a":"toggle-dot js-toggle-dot toggle-dot--evidence-clinical-q-and-a is-active",onClick:function(t){return E(t,e.id)}},l.a.createElement(cn,null))," ",l.a.createElement("button",{className:m.currentCategory==e.id?"badge badge-evidence-clinical-q-and-a is-active":m.currentCategory?"badge badge-evidence-clinical-q-and-a":"badge badge-evidence-clinical-q-and-a is-active",onClick:function(t){return E(t,e.id)}},e.category_name," ",l.a.createElement("span",{className:"badge-count"},0==e.children.length?e.count:"")),l.a.createElement("ul",{className:"tree"},e.children.map((function(e){return l.a.createElement("li",{className:"",key:e.id},l.a.createElement("button",{className:m.currentCategory==e.id?"badge badge-evidence-clinical-q-and-a is-active":m.currentCategory?"badge badge-evidence-clinical-q-and-a":"badge badge-evidence-clinical-q-and-a is-active",onClick:function(t){return E(t,e.id)}},e.category_name,l.a.createElement("span",{className:"badge-count"},e.count)))}))))}))),l.a.createElement("ul",{className:"evidence-type-group sub-group-visible"},S.map((function(e){return l.a.createElement("li",{key:e.id,className:"sub-group-visible"},l.a.createElement("button",{className:m.currentCategory==e.id?"toggle-dot js-toggle-dot toggle-dot--evidence-all-primary":"toggle-dot js-toggle-dot toggle-dot--evidence-all-primary is-active",onClick:function(t){return E(t,e.id)}},l.a.createElement(sn,null))," ",l.a.createElement("button",{className:m.currentCategory==e.id?"badge badge-evidence-all-primary sub-group-visible is-active":m.currentCategory?"badge badge-evidence-all-primary sub-group-visible":"badge badge-evidence-all-primary sub-group-visible is-active",onClick:function(t){return E(t,e.id)}},e.category_name," ",l.a.createElement("span",{className:"badge-count"},e.count>0?e.count:"")),e.children.length>0&&l.a.createElement("button",{className:"btn-reveal js-evidence-type-reveal",onClick:function(e){return h(!u)}},l.a.createElement(nn,null)),u&&l.a.createElement("ul",{className:"tree"},e.children.map((function(e){return l.a.createElement("li",{className:"",key:e.id},l.a.createElement("button",{className:m.currentCategory==e.id?"badge badge-evidence-all-primary is-active":m.currentCategory?"badge badge-evidence-all-primary":"badge badge-evidence-all-primary is-active",onClick:function(t){return E(t,e.id)}},e.category_name,l.a.createElement("span",{className:"badge-count"},e.count)))}))))}))),l.a.createElement("ul",{className:"evidence-type-group sub-group-visible"},N.map((function(e){return l.a.createElement("li",{key:e.id,className:"sub-group-visible"},l.a.createElement("button",{className:m.currentCategory==e.query_category?"toggle-dot js-toggle-dot toggle-dot--evidence-other":"toggle-dot js-toggle-dot toggle-dot--evidence-other is-active",onClick:function(a){(1!==e.prouser||1===e.prouser&&t)&&E(a,e.query_category)}},l.a.createElement(on,null))," ",l.a.createElement("button",{className:m.currentCategory==e.query_category?"badge badge-evidence-other is-active":m.currentCategory?"badge badge-evidence-other":"badge badge-evidence-other is-active",onClick:function(a){(1!==e.prouser||1===e.prouser&&t)&&E(a,e.query_category)}},e.category_name,l.a.createElement("span",{className:"badge-count"},e.count>0?e.count:""))," ",1===e.prouser?l.a.createElement("span",{className:"pro-label"},"Pro"):"",e.children.length>0&&l.a.createElement("button",{className:"btn-reveal js-evidence-type-reveal",onClick:function(e){return h(!u)}},l.a.createElement(nn,null)),u&&l.a.createElement("ul",{className:"tree"},e.children.map((function(e){return l.a.createElement("li",{className:"",key:e.id},l.a.createElement("button",{className:m.currentCategory==e.id?"badge badge-evidence-other is-active":m.currentCategory?"badge badge-evidence-other":"badge badge-evidence-other is-active",onClick:function(t){return E(t,e.id)}},e.category_name," ",l.a.createElement("span",{className:"badge-count"},e.count)))}))))}))),l.a.createElement("hr",null)),l.a.createElement("div",{className:"filter-results--group filter-results--group__checkboxes"},l.a.createElement("h5",{className:"text-dark"},"Clinical Area"," ",t||!C.default.isEmpty(n)?"":l.a.createElement("span",{className:"pro-label"},"Pro")),(t||!C.default.isEmpty(n))&&l.a.createElement("ul",{className:""},s.map((function(e,a){return l.a.createElement("li",{key:a+"clinicalli"},l.a.createElement("div",{className:"custom-control custom-checkbox"},l.a.createElement("input",{type:"checkbox",className:"custom-control-input",id:a+"clinical",onChange:function(t){return f(t,e.area)},checked:m.currentArea===e.area,disabled:!(t||!C.default.isEmpty(n))}),l.a.createElement("label",{className:"custom-control-label",htmlFor:a+"clinical"},e.area," ")," "))})))),l.a.createElement("hr",null),l.a.createElement("div",{className:"filter-results--group filter-results--group__checkboxes"},l.a.createElement("h5",{className:"text-dark"},"Further Refinement"),l.a.createElement("ul",{className:""},o.map((function(e,t){return l.a.createElement("li",{key:t},l.a.createElement("div",{className:"custom-control custom-checkbox"},l.a.createElement("input",{type:"checkbox",className:"custom-control-input",tooltip:"tool tip",id:t+"ref",onChange:function(t){p(t,e.type,e.value)},checked:m.currentfromDate===e.value||m.currentTag===e.value}),l.a.createElement(Ce.a,{key:"top",placement:"top",className:"pro-tooltip",overlay:l.a.createElement(Te.a,{id:"tooltip-top-bookmark-refine"+t},C.default.isUndefined(e.description)?"Filter":e.description)},l.a.createElement("label",{className:"custom-control-label",htmlFor:t+"ref"},e.name))))})))))},dn=a(130),un=a.n(dn),En=a(131),fn=a.n(En),pn=(a(309),function(e){var t=e.user,a=e.handleClose,n=e.handleEmailExport,r=e.show,i=e.emailexportto,c=e.emailexportmessage,s=e.setEmailExportMessage,o=e.setEmailExportTo;return l.a.createElement(H.a,{show:r,onHide:a,animation:!1,size:"xl",enforceFocus:!1,"data-focus":"false"},l.a.createElement(U.a,{width:"100%",onSubmit:n},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-success"},l.a.createElement("i",{className:"fa fa-book"})," ")),l.a.createElement(H.a.Body,null,l.a.createElement(U.a.Group,{controlId:"template.code"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-envelope"})," From"),l.a.createElement(U.a.Control,{type:"text",name:"name",placeholder:"Sender Email",value:t&&!C.default.isUndefined(t.user)?t.user.email:"INVALID EMAIL",required:!0,disabled:!0})),l.a.createElement(U.a.Group,{controlId:"template.to"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-envelope-o"})," To:"),l.a.createElement(U.a.Control,{type:"text",name:"name",placeholder:"Email",value:i,onChange:function(e){return o(e.target.value)},required:!0})),l.a.createElement(U.a.Group,{controlId:"template.subject"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-info"})," Subject"),l.a.createElement(U.a.Control,{type:"text",name:"subject",placeholder:"Subject",value:t&&!C.default.isUndefined(t.email)?t.email.subject:"INVALID SUBJECT",disabled:!0,required:!0})),l.a.createElement(U.a.Group,{controlId:"template.body"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-copy"})," Body"),l.a.createElement(un.a,{style:{height:"500px"},editor:fn.a,data:c,onInit:function(e){},onChange:function(e,t){s(t.getData())},disabled:!0}))),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:a},l.a.createElement("i",{className:"fa fa-times"})," Close"),l.a.createElement(x.a,{variant:"primary",onClick:n},l.a.createElement("i",{className:"fa fa-envelope"})," Send Email"))))}),hn=a(29),bn=a(2),vn=function(e){e.data;var t=e.setLibkeyMdlShow,a=e.setChildInstitutions,r=e.institutionLibId,i=Object(n.useState)(!0),c=Object(h.a)(i,2),s=c[0],o=c[1];function m(){return(m=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Y.a.get(bn.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/childInstitutions":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/childInstitutions",{params:{institution_id:t}}).then((function(e){if(200===e.status&&!bn.isUndefined(e.data)){var t=s;bn.isUndefined(e.data.institutions)?(a([]),o(!0)):(a(e.data.institutions),t=!(bn.size(e.data.institutions)>0),bn.size(e.data.selected_childInstitutions)>0&&(t=!0),o(t))}})).catch((function(e){console.log(e)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(n.useEffect)((function(){var e="";bn.isUndefined(hn.get("instution_auth_tokens"))||(e=hn.get("instution_auth_tokens"),bn.isNull(e.institution_auth)||bn.isUndefined(e.institution_auth.id)||function(e){m.apply(this,arguments)}(e.institution_auth.id))}),[]),!s&&!r&&l.a.createElement("div",{className:"notification notification--nhs",style:{zIndex:"2"}},l.a.createElement("div",{className:"notification--content"},l.a.createElement("a",{className:"type-small",href:"#",onClick:function(e){t(!0),e.preventDefault()}},l.a.createElement("div",{className:"nhs-logo"},l.a.createElement(ga,null)),l.a.createElement("p",null,"NHS User? We can improve your results - select your institution"))),l.a.createElement("div",{className:"notification--dismiss"}))},yn=function(e){var t=e.childInstitutions,a=e.handleClose,r=e.show,i=e.setInstitutionLibId,c=Object(n.useState)(""),s=Object(h.a)(c,2),o=s[0],m=s[1],d=function(e){var n=t.find((function(e){return e.id===parseInt(o,10)}));C.default.isUndefined(n)||Y.a.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/changeLibkeyInstitution":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/changeLibkeyInstitution",{selected_institution:n}).then((function(e){200!==e.status||C.default.isUndefined(e.data)||i(o)})).catch((function(e){console.log(e)})),a(e)};return l.a.createElement(H.a,{show:r,onHide:a,animation:!1,size:"md",enforceFocus:!1,"data-focus":"false"},l.a.createElement(U.a,{width:"100%",onSubmit:d},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-success"},l.a.createElement("i",{className:"fa fa-book"})," Libkey Integration")),l.a.createElement(H.a.Body,null,l.a.createElement(U.a.Group,{controlId:"exampleForm.ControlSelect1"},l.a.createElement(U.a.Label,null,"Select Institution for Libkey Access:"),l.a.createElement(U.a.Control,{as:"select",onChange:function(e){m(e.target.value)}},l.a.createElement("option",null,"Select.."),t&&t.map((function(e,t){return l.a.createElement("option",{value:e.id,key:t},e.institution_name)}))))),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:a},l.a.createElement("i",{className:"fa fa-times"})," Close"),l.a.createElement(x.a,{variant:"success",onClick:d},l.a.createElement("i",{className:"fa fa-key"})," Select & Close"))))};a(875),a(2);function gn(e){if(null===e||void 0===e)return"";switch(Number(e)){case 1:case 11:case 16:case 18:case 10:case 9:case 4:case 34:return"evidence-dot--evidence-secondary";case 13:return"evidence-dot--evidence-key-primary";case 2:return"evidence-dot--evidence-clinical-q-and-a";case 14:case 27:return"evidence-dot--evidence-all-primary";default:return"evidence-dot evidence-dot--evidence-other"}}var On=function(e){var t=e.clicked,a=e.results,r=(e.factors,e.setFactors,e.onSubmit),i=e.onClick,c=e.isPro,s=e.onShowHide,o=a||{},m=(o.concepts,o.documents),d=o.summary,u=(o.metrics,Object(n.useState)(1==(null===t||void 0===t?void 0:t.length))),E=Object(h.a)(u,2),f=E[0],p=E[1];return l.a.createElement("div",{className:"trip-connected-wrapper slideInUp ".concat(f?"trip-connected-is-open":null)},l.a.createElement("div",{className:"trip-connected"},l.a.createElement("div",{className:"trip-connected--head"},l.a.createElement("div",{className:"trip-connected--head--main"},l.a.createElement("div",{className:"trip-connected-logo"},l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 165.17 104.41"},l.a.createElement("g",null,l.a.createElement("path",{d:"M59.36,9.66V6.2Q59.36.62,56,.62H3.34Q0,.62,0,6.2V9.66q0,5.56,3.34,5.57H21.05v61.9H38.31V15.23H56q3.34,0,3.34-5.57M78.13,21.79q-7.47,0-12.14,8.48a17,17,0,0,1-.39-1.79,17.79,17.79,0,0,0-.5-2.06c-.15-.41-.38-.93-.67-1.56a3.23,3.23,0,0,0-1.17-1.4A6.56,6.56,0,0,0,60.31,23a38.78,38.78,0,0,0-6.74.89q-4.51.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71V77.13H66.88V41.87c2.23-3.72,5.19-5.58,8.91-5.58a11.35,11.35,0,0,1,2.89.45,11.28,11.28,0,0,0,2.34.44c1,0,1.79-1.17,2.45-3.51a22.09,22.09,0,0,0,1-5.86,6.75,6.75,0,0,0-1.4-4.18c-.93-1.22-2.58-1.84-5-1.84m81.25,8q-5.79-8-15-8a17.23,17.23,0,0,0-9,2.34,15.67,15.67,0,0,0-6,6,16.76,16.76,0,0,1-.39-1.68,19.62,19.62,0,0,0-.5-2,14.55,14.55,0,0,0-.67-1.62,3.23,3.23,0,0,0-1.17-1.4,6.53,6.53,0,0,0-3-.44,38.78,38.78,0,0,0-6.74.89q-4.52.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71V99.49h16.48v-21a18.85,18.85,0,0,0,11.36,3.46q11.13,0,17.32-8.09t6.18-22.08q0-14-5.79-22M138.11,68.85a15.68,15.68,0,0,1-7.8-2.12V41.87q3.78-6.59,9.13-6.58,9,0,9,16.78T138.11,68.85M99.08,0H96c-4.46,0-6.68,1.19-6.68,3.57v8.11h16.48V3.57Q105.76,0,99.08,0m0,22.85H96c-4.46,0-6.68,1.19-6.68,3.57V77.13h16.48V26.42q0-3.57-6.68-3.57",fill:"#533764",fillRule:"evenodd"}),l.a.createElement("path",{d:"M37.33,77.53v.58Q37.33,82,31,82H27.26q-6.36,0-6.36-3.9v-.58Z",fill:"#63c608",fillRule:"evenodd"}),l.a.createElement("path",{d:"M67.19,77.53v.58q0,3.9-6.66,3.9h-3.1q-6.66,0-6.66-3.9v-.58Z",fill:"#0e6cbb",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,77.53v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#00a89d",fillRule:"evenodd"}),l.a.createElement("path",{d:"M130.7,100.06v.9q0,3.45-6.55,3.45h-3.06q-6.56,0-6.55-3.45v-.9Z",fill:"#eec82f",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,11.83v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#ba390d",fillRule:"evenodd"}))),"Connected"),l.a.createElement("p",null,a?d:"Discover results based on your ".concat(t.length," click").concat(1==t.length?"":"s"))),l.a.createElement("div",{className:"trip-connected--head--ctas"},l.a.createElement("a",{className:"btn btn-primary js-show-connected-results-toggle text-white",onClick:function(){var e=!f;e&&r(),p(e),s(e)}},f?"Hide":"Show"," Results"),l.a.createElement("a",{href:"https://blog.tripdatabase.com/2023/11/04/understanding-connected-articles/",target:"_blank"},"What is this?"))),l.a.createElement("div",{className:"trip-connected--body"},a?l.a.createElement("table",{className:"table table-sm table-responsive trip-connected--table"},l.a.createElement("tbody",null,m&&m.length?m.map((function(e,t){return l.a.createElement("tr",{key:e.id},l.a.createElement("td",{className:"trip-connected-results--title"},l.a.createElement("div",{className:"trip-connected-results--title--wrapper"},l.a.createElement("span",{className:"evidence-dot ".concat(gn(e.categoryId))}),l.a.createElement("a",{href:e.url,target:"_blank",onClick:function(){return i(e)}},e.title))),l.a.createElement("td",{className:"trip-connected-results--year"},void 0===(a=e.trip_date)||null===a?"":a.toString().split("-")[0]),l.a.createElement("td",{className:"trip-connected-results--institution"},e.publication||""));var a})):null,m&&!c&&l.a.createElement(l.a.Fragment,null,l.a.createElement("tr",null,l.a.createElement("td",{colSpan:"5"},l.a.createElement("a",{className:"not-underline",href:"/Why"},"Many more results with a"," ",l.a.createElement("span",{className:"pro-label"},"Pro")," account..."))),l.a.createElement("tr",{style:{filter:"blur(4px)"}},l.a.createElement("td",{className:"trip-connected-results--title"},l.a.createElement("div",{className:"trip-connected-results--title--wrapper"},l.a.createElement("span",{className:"evidence-dot evidence-dot--evidence-secondary"}),l.a.createElement("a",{href:"/Why",target:"_blank"},"OK, very clever, you can use debugging tools in your browser to reveal this!"))),l.a.createElement("td",{className:"trip-connected-results--year"},"2000"),l.a.createElement("td",{className:"trip-connected-results--institution"},"Abcradabra")),l.a.createElement("tr",{style:{filter:"blur(4px)"}},l.a.createElement("td",{className:"trip-connected-results--title"},l.a.createElement("div",{className:"trip-connected-results--title--wrapper"},l.a.createElement("span",{className:"evidence-dot evidence-dot--evidence-secondary"}),l.a.createElement("a",{href:"/Why",target:"_blank"},"If you upgraded to a Pro account, you wouldn't need to waste your time messing with developer tools"))),l.a.createElement("td",{className:"trip-connected-results--year"},"2000"),l.a.createElement("td",{className:"trip-connected-results--institution"},"Rumpelstiltskin"))))):null)))},_n=a(194),Sn=a(14),Nn=a(88),wn=a(29),kn=function(e){var t=Nn.parse(e.location.search),a=k(),r=a.authTokens,i=a.setAuthTokens,c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)({}),u=Object(h.a)(d,2),E=u[0],b=u[1],v=Object(n.useState)({}),y=Object(h.a)(v,2),g=y[0],O=y[1],_=Object(n.useState)(null),S=Object(h.a)(_,2),N=S[0],w=S[1],T=Object(n.useState)(!0),R=Object(h.a)(T,2),L=R[0],I=R[1],M=Object(n.useState)(!0),H=Object(h.a)(M,2),W=H[0],K=H[1],V=Object(n.useState)(C.default.isUndefined(t.page)?1:t.page),q=Object(h.a)(V,2),B=q[0],Z=q[1],F=Object(n.useState)(C.default.isUndefined(t.showall)?"":t.showall),G=Object(h.a)(F,2),Y=G[0],z=G[1],Q=Object(n.useState)(!0),$=Object(h.a)(Q,2),J=$[0],X=$[1],ee=Object(n.useState)(C.default.isUndefined(t.sort)?"r":t.sort),te=Object(h.a)(ee,2),ae=te[0],ne=te[1],le=Object(n.useState)(C.default.isUndefined(t.area)?"":t.area),re=Object(h.a)(le,2),ie=re[0],ce=re[1],se=Object(n.useState)(""),oe=Object(h.a)(se,2),me=oe[0],de=oe[1],ue=Object(n.useState)(C.default.isUndefined(t.tag)?null:t.tag),Ee=Object(h.a)(ue,2),fe=Ee[0],pe=Ee[1],he=Object(n.useState)(C.default.isUndefined(t.from_date)?null:t.from_date),be=Object(h.a)(he,2),ve=be[0],ge=be[1],Oe=Object(n.useState)(C.default.isUndefined(t.to_date)?null:t.to_date),_e=Object(h.a)(Oe,2),Se=_e[0],Ne=_e[1],we=Object(n.useState)(C.default.isUndefined(t.category)?null:t.category),ke=Object(h.a)(we,2),Ce=ke[0],Te=ke[1],je=Object(n.useState)(C.default.isUndefined(t.pub)?null:t.pub),Pe=Object(h.a)(je,2),Ae=Pe[0],De=Pe[1],Re=Object(n.useState)(1),Ue=Object(h.a)(Re,2),Le=Ue[0],xe=Ue[1],Ie=Object(n.useState)(!0),Me=Object(h.a)(Ie,2),He=Me[0],We=Me[1],Ke=Object(n.useState)([]),Ve=Object(h.a)(Ke,2),qe=Ve[0],Be=Ve[1],Ge=Object(n.useState)(!_n.isMobile),Ye=Object(h.a)(Ge,2),ze=Ye[0],Qe=Ye[1],$e=Object(n.useState)(!1),Je=Object(h.a)($e,2),Xe=Je[0],et=Je[1],tt=Object(n.useState)(!1),at=Object(h.a)(tt,2),nt=at[0],lt=at[1],rt=Object(n.useState)(!1),it=Object(h.a)(rt,2),ct=it[0],st=it[1],ot=Object(n.useState)(""),mt=Object(h.a)(ot,2),dt=mt[0],ut=mt[1],Et=Object(n.useState)(""),ft=Object(h.a)(Et,2),pt=ft[0],ht=ft[1],bt=Object(n.useState)(!0),vt=Object(h.a)(bt,2),yt=vt[0],gt=vt[1],Ot=Object(n.useState)([]),_t=Object(h.a)(Ot,2),St=_t[0],Nt=_t[1],wt=Object(n.useState)([]),kt=Object(h.a)(wt,2),Ct=kt[0],Tt=kt[1],jt=Object(n.useState)([]),Pt=Object(h.a)(jt,2),At=Pt[0],Dt=Pt[1],Rt=function(e){return e&&e.length>=2?Tt(e):Tt([]),Dt(e)};Object(n.useEffect)((function(){1===(null===Ct||void 0===Ct?void 0:Ct.length)&&Za()}),[Ct]);var Ut=Object(n.useState)(""),Lt=Object(h.a)(Ut,2),xt=Lt[0],It=Lt[1],Mt=Object(n.useState)(".CSV"),Ht=Object(h.a)(Mt,2),Wt=Ht[0],Kt=Ht[1],Vt=Object(n.useState)(!0),qt=Object(h.a)(Vt,2),Bt=qt[0],Zt=qt[1],Ft=Object(n.useState)(!1),Gt=Object(h.a)(Ft,2),Yt=Gt[0],zt=Gt[1],Qt=Object(n.useState)({}),$t=Object(h.a)(Qt,2),Jt=$t[0],Xt=$t[1],ea=Object(n.useState)(1),ta=Object(h.a)(ea,2),aa=ta[0],na=ta[1],la=Object(n.useState)(0),ra=Object(h.a)(la,2),ia=ra[0],ca=ra[1],sa=Object(n.useState)(!_n.isMobile),oa=Object(h.a)(sa,2),ma=oa[0],da=oa[1],ua=Object(n.useState)([]),Ea=Object(h.a)(ua,2),fa=Ea[0],pa=Ea[1],ha=Object(n.useState)(""),ba=Object(h.a)(ha,2),va=ba[0],ya=ba[1],ga=Object(n.useState)(""),Oa=Object(h.a)(ga,2),_a=Oa[0],Sa=Oa[1],Na=Object(n.useState)(null),wa=Object(h.a)(Na,2),ka=wa[0],Ca=(wa[1],Object(n.useState)(null)),Ta=Object(h.a)(Ca,2),ja=Ta[0],Pa=Ta[1],Aa=localStorage.getItem("connectedFactors"),Ua=Aa?JSON.parse(Aa):{top:5,clicks:1,referenced:1,related:1,cites:1,keywords:1,included:1},La=Object(n.useState)(Ua),xa=Object(h.a)(La,2),Ia=xa[0],Ma=xa[1],Ha=Object(n.useState)(null),Wa=Object(h.a)(Ha,2),Ka=Wa[0],Va=Wa[1],qa=!C.default.isUndefined(e.isPro)&&e.isPro||!C.default.isEmpty(Jt),Ba=C.default.isUndefined(e.location.state)?Fe("search_type"):e.location.state.search_type;function Za(){console.log("Posting to Connected service");var e=new Date;Ia.top=qa?100:3,Pa({summary:"Calculating..."}),Sn.post("https://wfu1t3sekd.execute-api.us-east-1.amazonaws.com/",{documents:Ct,keywords:me.criteria||"",userId:N,factors:Ia},{withCredentials:!1}).then((function(t){var a,n=(null===t||void 0===t||null===(a=t.data)||void 0===a?void 0:a.results)||{};Va(n.searchId),n.documents&&n.documents.length&&n.documents.map((function(e,t){e.index=t}));var l=new Date-e;n.metrics="Elapsed: ".concat(l,"ms"),Pa(n)})).catch((function(e){console.log(e)}))}var Fa=Object(n.useState)(!1),Ga=Object(h.a)(Fa,2),Ya=Ga[0],za=Ga[1];function Qa(){return(Qa=Object(p.a)(f.a.mark((function e(){var t;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=nn(),Sn.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Search":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Search",{params:t,withCredentials:!0},{withCredentials:!0}).then((function(e){if(200===e.status)b(e.data),X(!1),xe(C.default.isUndefined(e.data.summary.fvalue)?1:e.data.summary.fvalue),We(C.default.isUndefined(e.data.summary.repeat_pico)?1:e.data.summary.repeat_pico),Be(C.default.isUndefined(e.data.summary.starred_data)?[]:e.data.summary.starred_data),Xt(C.default.isUndefined(e.data.summary.institution_auth)?{}:e.data.summary.institution_auth),_a!==t.criteria&&(Rt([]),Sa(t.criteria)),Ja(e);else new Error(e.error_message)})).catch((function(e){X(!1)}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ja(e){C.default.isUndefined(e.data.summary.institution_auth)&&C.default.isUndefined(e.data.summary.isPro)||(e.data.summary.isPro||i(ye(r,"isPro","")),C.default.isNull(e.data.summary.institution_auth)&&wn.set("instution_auth_tokens",{institution_auth:null}),ca(e.data.summary),e.data.summary.isPro||(i(ye(r,"isPro","")),wn.remove("recent")),e.data.summary.user&&w(e.data.summary.user.user_id))}function Xa(){return(Xa=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Sn.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/exportSearch":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/exportSearch",{params:nn(),withCredentials:!0}).then((function(e){if(200===e.status){var t=window.URL.createObjectURL(new Blob([e.data])),a=document.createElement("a"),n=new Date;n="tripExport"+n.getFullYear()+n.getMonth()+1+n.getDate()+n.getHours()+n.getMinutes()+n.getSeconds();var l=".CSV"===Wt?n+".csv":n+".ris";a.href=t,a.setAttribute("download",l),document.body.appendChild(a),a.click(),gt(!0)}else{new Error(e.error_message);m(e.error_message)}})).catch((function(e){zt(!0),gt(!1),m("Access Denied! Unauthorized to perform this action."),X(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function en(){return(en=Object(p.a)(f.a.mark((function e(t){var a,n,l,r,i,c,s,o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a=nn(),n=[],l=!0,r=!1,i=void 0,e.prev=5,c=t[Symbol.iterator]();!(l=(s=c.next()).done);l=!0)o=s.value,n.push(o.id);e.next=13;break;case 9:e.prev=9,e.t0=e.catch(5),r=!0,i=e.t0;case 13:e.prev=13,e.prev=14,l||null==c.return||c.return();case 16:if(e.prev=16,!r){e.next=19;break}throw i;case 19:return e.finish(16);case 20:return e.finish(13);case 21:a.resultset=n,a.articlesChecked=St,Sn.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/emailSearch":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/emailSearch",{params:a},{withCredentials:!0}).then((function(e){200===e.status&&(C.default.isUndefined(e.data.error_message)?(ut(C.default.isUndefined(e.data.email)?"":e.data.email.message),gt(!0),O(e.data),lt(!0)):(m(e.data.error_message),gt(!0)))})).catch((function(e){gt(!0),zt(!0),m(e),X(!1)}));case 24:case"end":return e.stop()}}),e,null,[[5,9,13,21],[14,,16,20]])})))).apply(this,arguments)}function tn(){return(tn=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Sn.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/emailExportSend":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/emailExportSend",{params:{to:pt,message:dt}},{withCredentials:!0}).then((function(e){200===e.status&&(C.default.isUndefined(e.data.error_message)?O(e.data):(m(e.data.error_message),gt(!0)))})).catch((function(e){gt(!0),zt(!0),m(e),X(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function nn(){var t=C.default.isUndefined(e.location.state)?Fe("search_type"):e.location.state.search_type,a={criteria:C.default.isUndefined(e.location.state)?Fe("criteria"):e.location.state.criteria,search_type:C.default.isUndefined(t)?"standard":t,page:B,sort:ae,clinical:ie,category_id:Ce,tags:fe,from_date:ve,to_date:Se,publication_id:Ae,export_data:xt,export_type:Wt,articles:St,showall:Y,from_date_full:Fe("from_date_full")};switch(document.title=a.criteria+" - Trip Database",t){case"pico":a.intervention=C.default.isUndefined(e.location.state)?Fe("intervention"):e.location.state.intervention,a.comparison=C.default.isUndefined(e.location.state)?Fe("comparison"):e.location.state.comparison,a.outcome=C.default.isUndefined(e.location.state)?Fe("outcome"):e.location.state.outcome,a.f=Le,a.repeat_pico=He;break;case"advanced":a.allwordsfield=C.default.isUndefined(e.location.state)?Fe("allwordsfield"):e.location.state.allwordsfield,a.anywordsfield=C.default.isUndefined(e.location.state)?Fe("anywordsfield"):e.location.state.anywordsfield,a.exactphrasefield=C.default.isUndefined(e.location.state)?Fe("exactphrasefield"):e.location.state.exactphrasefield,a.excludingwordsfield=C.default.isUndefined(e.location.state)?Fe("excludingwordsfield"):e.location.state.excludingwordsfield,a.anywords=C.default.isUndefined(e.location.state)?Fe("anywords"):e.location.state.anywords,a.exactphrase=C.default.isUndefined(e.location.state)?Fe("exactphrase"):e.location.state.exactphrase,a.excludingwords=C.default.isUndefined(e.location.state)?Fe("excludingwords"):e.location.state.excludingwords,a.advfrom=C.default.isUndefined(e.location.state)?Fe("advfrom"):e.location.state.advfrom,a.advto=C.default.isUndefined(e.location.state)?Fe("advto"):e.location.state.advto,a.proximity=C.default.isUndefined(e.location.state)?Fe("proximity"):e.location.state.proximity}return de(a),a}Object(n.useEffect)((function(){Ya&&Za()}),[At]),Object(n.useEffect)((function(){document.body.classList.remove("homepage"),function(){Qa.apply(this,arguments)}(C.default.isUndefined(e.location.state)?"":e.location.state.criteria)}),[B,ae,ie,fe,Ce,Y,Ae,va,W]);var ln="",rn="",cn="",sn="",on="",dn="",un=[],En=[],fn=[];if(E&&E.summary){var hn=E.summary,bn=E.documents;ln=hn,rn=bn,cn=hn.all_categories?hn.all_categories:[],sn=hn.child_categories?hn.child_categories:[],on=hn.pro_categories?hn.pro_categories:[],un=hn.clinical_area?hn.clinical_area:[],En=hn.refinements?hn.refinements:[],dn=hn.libkeydata?hn.libkeydata:null,fn=hn.publications_data?hn.publications_data:[]}var gn=function(e){Ze("sort",e),ne(e)},kn=function(e,t){t==Ce&&(t=""),Ze("category",t),Ze("page",1),Te(t),Z(1),e.preventDefault()},Cn=function(t){(!C.default.isUndefined(e.isPro)&&e.isPro||!C.default.isEmpty(Jt))&&ia?(zt(!1),gt(!1),"Email"==Wt?function(e){en.apply(this,arguments)}(rn):function(e){Xa.apply(this,arguments)}()):zt(!0)},Tn=function(e){lt(!1),gt(!0),st(!1)},jn={currentArea:ie,currentTag:fe,currentfromDate:ve,currentCategory:Ce};return l.a.createElement("div",{className:"container-fluid"},l.a.createElement(pn,{user:g,handleClose:Tn,handleEmailExport:function(e){!function(){tn.apply(this,arguments)}(),lt(!1),e.preventDefault()},show:nt,emailexportto:pt,emailexportmessage:dt,setEmailExportMessage:ut,setEmailExportTo:ht}),l.a.createElement(yn,{childInstitutions:fa,handleClose:Tn,show:ct,setInstitutionLibId:ya}),l.a.createElement(j.a,{className:"row search-term-container mt-0"},l.a.createElement($a,{props:e,totalArticles:ln&&ln.total?ln.total:"",loading:J,keyword:C.default.isUndefined(e.location.state)?"":e.location.state.criteria,sort:ae,categories_pro:on,currentParams:me})),l.a.createElement("hr",null),l.a.createElement("div",{className:"row result-filters-row"},l.a.createElement("div",{className:"col-sm-auto result-filters-container"},l.a.createElement(mn,{isPro:qa,isInstitutionPro:Jt,categories_set:cn,categories_set_child:sn,categories_pro:on,clinical_area_set:un,refinements_set:En,current_selections:jn,loading:J,catToggle:L,from_date:ve,to_date:Se,categorySelect:kn,clinicalareaSelect:function(e,t){var a=e.target.checked?t:"";Ze("area",a),ce(a),Z(1),Ze("page",1),e.preventDefault()},refinementSelect:function(e,t,a){var n=e.target.checked?a:"";switch(t){case"activity":break;case"tag":Ze("tag",n),pe(n);break;case"from_date":Ze("from_date",n),ge(n)}e.preventDefault()},setCatToggle:I,setfromDate:ge,settoDate:Ne,dateRangeSelect:function(e){Ze("from_date",ve),Ze("to_date",Se),Z(1),Ze("page",1),K(!W),e.preventDefault()}})),l.a.createElement("div",{className:"col results-list-container"},l.a.createElement("div",{className:"results-list"},l.a.createElement("div",{className:"results-actions-container results-actions-container__desktop"},l.a.createElement(vn,{data:C.default.isObject(dn)?dn:{id:0},setLibkeyMdlShow:st,setChildInstitutions:pa,institutionLibId:va}),l.a.createElement(an,{isPro:qa,sort:ae,sortSelection:gn,setSnippetShow:Qe,snippetshow:ze,setExportShow:et,setProNotification:zt,exportshow:Xe,isdesktop:!0,categoryshow:ma,setCategoryShow:da}),l.a.createElement("hr",null)),l.a.createElement("div",{className:"results-actions-container results-actions-container__mobile"},l.a.createElement(an,{isPro:qa,sort:ae,sortSelection:gn,setSnippetShow:Qe,snippetshow:ze,setExportShow:et,setProNotification:zt,exportshow:Xe,isdesktop:!1,categoryshow:ma,setCategoryShow:da}),l.a.createElement("hr",null)),l.a.createElement("div",null,Xe&&l.a.createElement(A.a,{md:"12"},l.a.createElement(P.a,{onClose:function(){return et(!Xe)},dismissible:!0},l.a.createElement(P.a.Heading,null,"Export results"),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"8"},l.a.createElement("div",{key:"inline-radio",className:"mb-3"},l.a.createElement(U.a.Check,{inline:!0,name:"export_data",label:"Selected Results only",type:"radio",id:"inline-radio-1",value:"all_selected",onChange:function(e){It(e.target.value),Zt(!1)},checked:"all_selected"===xt}),l.a.createElement(U.a.Check,{inline:!0,name:"export_data",label:"All Results on this page",type:"radio",id:"inline-radio-2",value:"all_page",onChange:function(e){It(e.target.value),Zt(!1)},checked:"all_page"===xt}),l.a.createElement(U.a.Check,{inline:!0,name:"export_data",label:"All ",type:"radio",id:"inline-radio-3",value:"all_results",onChange:function(e){It(e.target.value),Zt(!1)},checked:"all_results"===xt}))),l.a.createElement(A.a,{md:"2"},l.a.createElement(U.a.Control,{as:"select",onChange:function(e){return Kt(e.target.value)}},l.a.createElement("option",null,".CSV"),l.a.createElement("option",null,".RIS"),l.a.createElement("option",null,"Email"))),l.a.createElement(A.a,{md:"2"},yt?l.a.createElement(x.a,{type:"submit",name:"submit",onClick:function(e){return Cn()},disabled:Bt},"Download ",l.a.createElement("i",{className:"fa fa-download"})):l.a.createElement(D.a,{animation:"border",variant:"success"})),l.a.createElement(A.a,{md:"12"},l.a.createElement("i",{className:"fa fa-arrow-down"})," Use check boxes to select individual results below"),Yt&&l.a.createElement(A.a,{md:"12 mt-1"},l.a.createElement(P.a,{key:"pronotification",variant:"warning"},"Only ",l.a.createElement("span",{className:"pro-label"},"PRO")," users can use the Export feature."," ",l.a.createElement(P.a.Link,{href:"/Pro"},"Get PRO Now ",l.a.createElement("i",{className:"fa fa-sign-in"})),".")))))),o?l.a.createElement(P.a,{variant:"danger",dismissible:!0},l.a.createElement(P.a.Heading,null,o,"!"),l.a.createElement("p",null,"We cannot process your request, review your search parameters and try again!")):"",l.a.createElement(Da,{isPro:qa,resultset:rn||[],publicationset:fn,start:ln.start,loading:J,publicationSelect:function(e,t){t==Ae&&(t=""),De(t),Z(1),Ze("pub",t),Ze("page",1),e.preventDefault()},searchParams:me,setStarred:Be,isStarred:qe,snippetshow:ze,articleChecked:St,setArticleChecked:Nt,articleClicked:At,setArticleClicked:Rt,libkeydata:dn,categorySelect:kn,dois:ka,currentCategory:Ce,showRelated:function(e){Tt([e])}}),l.a.createElement(Ra,{postsPerPage:20,totalArticles:ln&&ln.total?ln.total:0,paginate:function(e,t){Ze("page",t),Z(t),window.scrollTo({top:180,left:0,behavior:"smooth"}),e.preventDefault()},firstPage:aa,setFirstPage:na,currentPage:B,showall:Y,showallSelect:function(e,t){Ze("showall",t),Ze("page",1),z(t),Z(1),window.scrollTo({top:180,left:0,behavior:"smooth"}),e.preventDefault()},isPro:qa,search_type:Ba})),0!=(null===Ct||void 0===Ct?void 0:Ct.length)&&l.a.createElement(On,{clicked:Ct,results:ja,factors:Ia,setFactors:function(e){Ma(e),localStorage.setItem("connectedFactors",JSON.stringify(e))},onSubmit:Za,onClick:function(e){console.log("onClickConnected",e),Sn.post("https://wfu1t3sekd.execute-api.us-east-1.amazonaws.com/onclick",{document:e,searchId:Ka},{withCredentials:!1}).then((function(){console.log("onClick recorded")})).catch((function(e){console.log(e)}))},isPro:qa,onShowHide:za,search_type:C.default.isUndefined(e.location.state)?Fe("search_type"):e.location.state.search_type}))))},Cn=a(14),Tn=a(2),jn=function(e){var t=Object(n.useState)(!1),r=Object(h.a)(t,2),i=r[0],c=r[1],s=Object(n.useState)(!1),o=Object(h.a)(s,2),m=o[0],d=(o[1],Object(n.useState)("")),u=Object(h.a)(d,2),E=u[0],b=u[1],v=Object(n.useState)(""),y=Object(h.a)(v,2),g=y[0],O=y[1],_=Object(n.useState)(!0),S=Object(h.a)(_,2),N=S[0],w=S[1],k=a(104);function C(){return(C=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Cn.get(Tn.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Tripanswers":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Tripanswers",{params:j()}).then((function(e){if(200===e.status)Tn.isUndefined(e.data)?b("

Document not found!

"):(b(e.data),Tn.isObject(e.data)&&(Tn.isUndefined(e.data.search_terms)||O(e.data.search_terms))),w(!1);else new Error(e.error_message)})).catch((function(e){w(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(n.useEffect)((function(){document.title="Trip Answers (Q&A) : Trip Medical Database",function(){C.apply(this,arguments)}()}),[]);var T=Tn.isUndefined(e.match.params)?"":e.match.params.question;function j(){return{question:T=T.replace("-"," ")}}return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:m,setErrorShow:c,show:i}),l.a.createElement("hr",null),l.a.createElement("div",{className:"row result-filters-row"},l.a.createElement("div",{className:"col-sm-auto result-filters-container"},l.a.createElement("div",{className:"filter-results"},l.a.createElement("div",{className:"filter-results--group"},l.a.createElement("div",{className:"filter-results--group--intro"},l.a.createElement("h5",{className:"text-dark"},"Clinical Q&A")),l.a.createElement("p",null,"This question and answer form part of a large corpus of over 7,000 clinical Q&As that have been generated over the years by various services Trip Database have run or been involved in. Trip are keen to retain this collection for a historical and research reasons.")),l.a.createElement("hr",null),l.a.createElement("div",{className:"filter-results--group"},l.a.createElement("div",{className:"filter-results--group--intro"},l.a.createElement("h5",{className:"text-dark"},"More results")),l.a.createElement("p",null,g?l.a.createElement("a",{href:"#",onClick:function(t){var a={criteria:g};e.history.push({pathname:"/Searchresult",search:"?criteria="+g+"&search_type=standard",state:a})}}," ","As this is more than 2 years old, click here for more relevant results for ",g):"aa")),l.a.createElement("hr",null),l.a.createElement("div",{className:"filter-results--group"},l.a.createElement("div",{className:"filter-results--group--intro"},l.a.createElement("h5",{className:"text-dark"},"What is trip?")),l.a.createElement("p",null,"Trip is a clinical search engine designed to allow users to quickly and easily find and use high-quality research evidence to support their practice and/or care. Trip has been online since 1997 and in that time has developed into the internet\u2019s premier source of evidence-based content. Our motto is \u2018Find evidence fast\u2019 and this is something we aim to deliver for every single search. As well as research evidence we also allow clinicians to search across other content types including images, videos, patient information leaflets, educational courses and news. For further information on Trip click on any of the questions/sections on the left-hand side of this page. But if you still have questions please contact us via jon.brassey@tripdatabase.com")))),l.a.createElement("div",{className:"col results-list-container"},l.a.createElement("div",{className:"results-list"},N&&l.a.createElement("div",null,l.a.createElement("div",{className:"spinner-border text-info"})," Processing request....."),Tn.isObject(E)?l.a.createElement("div",null,l.a.createElement("h1",null,Tn.isUndefined(E.question_text)?"":E.question_text),Tn.isUndefined(E.answer_text)?"":l.a.createElement("div",{dangerouslySetInnerHTML:{__html:E.answer_text}}),l.a.createElement("h4",null," ",Tn.isUndefined(E.answer_date)?"":"Answered on "+k(E.answer_date,"d mmmm yyyy"))):l.a.createElement("div",{dangerouslySetInnerHTML:{__html:E}})))))},Pn=function(){return l.a.createElement("div",null,l.a.createElement("h1",null,"Page not found!!!!!!!!!"))},An=a(14),Dn=a(2),Rn=a(88),Un=function(e){var t=Rn.parse(e.location.search),a=Object(n.useState)(!1),l=Object(h.a)(a,2),r=(l[0],l[1],Object(n.useState)(!1)),i=Object(h.a)(r,2),c=(i[0],i[1],Object(n.useState)([])),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(!0),u=Object(h.a)(d,2),E=(u[0],u[1]),b=Object(n.useState)("standard"),v=Object(h.a)(b,2),y=v[0],g=(v[1],Object(n.useState)(Dn.isUndefined(t.skip)?1:t.skip/20)),O=Object(h.a)(g,2),_=O[0],S=(O[1],Object(n.useState)(Dn.isUndefined(t.sort)?"r":t.sort)),N=Object(h.a)(S,2),w=N[0],k=(N[1],Object(n.useState)(Dn.isUndefined(t.area)?"":t.area)),C=Object(h.a)(k,2),T=C[0],j=(C[1],Object(n.useState)("")),P=Object(h.a)(j,2),A=(P[0],P[1]),D=Object(n.useState)(Dn.isUndefined(t.tag)?null:t.tag),R=Object(h.a)(D,2),U=R[0],L=(R[1],Object(n.useState)(Dn.isUndefined(t.from_date)?null:t.from_date)),x=Object(h.a)(L,2),I=x[0],M=(x[1],Object(n.useState)(Dn.isUndefined(t.to_date)?null:t.to_date)),H=Object(h.a)(M,2),W=H[0],K=(H[1],Object(n.useState)(Dn.isUndefined(t.category)?null:t.category)),V=Object(h.a)(K,2),q=V[0],B=(V[1],Object(n.useState)(Dn.isUndefined(t.pub)?null:t.pub)),Z=Object(h.a)(B,2),F=Z[0],G=(Z[1],Object(n.useState)(1)),Y=Object(h.a)(G,2),z=Y[0],Q=(Y[1],Object(n.useState)(!0)),$=Object(h.a)(Q,2),J=$[0],X=($[1],Object(n.useState)([])),ee=Object(h.a)(X,2),te=(ee[0],ee[1],Object(n.useState)([])),ae=Object(h.a)(te,2),ne=ae[0],le=(ae[1],Object(n.useState)([])),re=Object(h.a)(le,2),ie=(re[0],re[1],Object(n.useState)("")),ce=Object(h.a)(ie,2),se=ce[0],oe=(ce[1],Object(n.useState)(".CSV")),me=Object(h.a)(oe,2),de=me[0],ue=(me[1],Object(n.useState)(1)),Ee=Object(h.a)(ue,2);Ee[0],Ee[1];function fe(){return(fe=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:An.get(Dn.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/api/Search":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/api/Search",{params:pe()}).then((function(e){if(200===e.status)m(e.data),E(!1);else new Error(e.error_message)})).catch((function(e){E(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pe(){var t={criteria:Dn.isUndefined(e.location.state)?Fe("criteria"):e.location.state.criteria,search_type:y||Fe("search_type"),page:_,sort:w,clinical:T,category_id:q,tags:U,from_date:I,to_date:W,publication_id:F,export_data:se,export_type:de,articles:ne,from_date_full:Fe("from_date_full")};switch(Dn.isUndefined(e.location.state)?y:e.location.state.search_type){case"pico":t.intervention=Dn.isUndefined(e.location.state)?Fe("intervention"):e.location.state.intervention,t.comparison=Dn.isUndefined(e.location.state)?Fe("comparison"):e.location.state.comparison,t.outcome=Dn.isUndefined(e.location.state)?Fe("outcome"):e.location.state.outcome,t.f=z,t.repeat_pico=J;break;case"advanced":t.allwordsfield=Dn.isUndefined(e.location.state)?Fe("allwordsfield"):e.location.state.allwordsfield,t.anywordsfield=Dn.isUndefined(e.location.state)?Fe("anywordsfield"):e.location.state.anywordsfield,t.exactphrasefield=Dn.isUndefined(e.location.state)?Fe("exactphrasefield"):e.location.state.exactphrasefield,t.excludingwordsfield=Dn.isUndefined(e.location.state)?Fe("excludingwordsfield"):e.location.state.excludingwordsfield,t.anywords=Dn.isUndefined(e.location.state)?Fe("anywords"):e.location.state.anywords,t.exactphrase=Dn.isUndefined(e.location.state)?Fe("exactphrase"):e.location.state.exactphrase,t.excludingwords=Dn.isUndefined(e.location.state)?Fe("excludingwords"):e.location.state.excludingwords,t.advfrom=Dn.isUndefined(e.location.state)?Fe("advfrom"):e.location.state.advfrom,t.advto=Dn.isUndefined(e.location.state)?Fe("advto"):e.location.state.advto,t.proximity=Dn.isUndefined(e.location.state)?Fe("proximity"):e.location.state.proximity}return A(t),t}return Object(n.useEffect)((function(){Fe("criteria")&&function(){fe.apply(this,arguments)}()}),[]),o},Ln=a(963),xn=a(957),In=(a(29),a(14)),Mn=function(e){var t=Object(n.useState)(""),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(""),s=Object(h.a)(c,2),o=(s[0],s[1],Object(n.useState)(!1)),m=Object(h.a)(o,2),d=m[0],u=m[1],E=Object(n.useState)(!1),b=Object(h.a)(E,2),v=b[0],y=b[1],g=k(),O=g.authTokens,_=g.setAuthTokens;function S(){return(S=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_(),In.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL:"/Auth/Logout",{withCredentials:!0}).then((function(e){if(200===e.status);else new Error(e.error_message)})).catch((function(e){console.log(e)}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var N=function(e){!function(){S.apply(this,arguments)}(),u(!1),e.preventDefault()};Object(n.useEffect)((function(){O&&(C.default.findWhere(O.roles,{role:"Admin"})&&y(1),i(C.default.isUndefined(O.firstname)?"":O.firstname+" "+O.lastname),u(!0))}),[d]);return l.a.createElement(Ln.a,{bg:"info",variant:"dark",collapseOnSelect:!0,expand:"lg"},l.a.createElement(Ln.a.Brand,{href:"/Admin"},"Trip (CMS)"),l.a.createElement(Ln.a.Toggle,{"aria-controls":"responsive-navbar-nav"}),l.a.createElement(Ln.a.Collapse,{id:"responsive-navbar-nav"},l.a.createElement(Ja.a,{className:"mr-auto"}),l.a.createElement(Ja.a,null,d?"":l.a.createElement(Ja.a.Link,{href:"/Registration"},l.a.createElement("i",{className:"fa fa-user-plus"})," Sign Up"),l.a.createElement(xn.a,{className:"dropdown-menu-right pull-right",title:l.a.createElement("span",null,l.a.createElement("i",{className:"fa fa-user fa-fw text-info"}),d?r:"Login",v?l.a.createElement(Se.a,{variant:"success"}," Admin "):""),id:"collasible-nav-dropdown"},d?"":l.a.createElement(xn.a.Item,{href:"/Admin/Login"},l.a.createElement("i",{className:"fa fa-sign-in"})," Sign in"),d?l.a.createElement(xn.a.Item,{href:"/Changepassword"},l.a.createElement("i",{className:"fa fa-lock fa-fw"})," Change Password"):"",l.a.createElement(xn.a.Item,{eventKey:6,href:"#",onClick:function(e){return N(e)}},l.a.createElement("i",{className:"fa fa-power-off"})," Logout")))))},Hn=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 216.28 109"},l.a.createElement("g",null,l.a.createElement("g",null,l.a.createElement("path",{d:"M59.36,14.25V10.79q0-5.58-3.34-5.58H3.34Q0,5.21,0,10.79v3.46q0,5.57,3.34,5.57H21.05v61.9H38.31V19.82H56q3.34,0,3.34-5.57M78.13,26.38q-7.47,0-12.14,8.48a17,17,0,0,1-.39-1.79A17.79,17.79,0,0,0,65.1,31c-.15-.41-.38-.93-.67-1.56a3.23,3.23,0,0,0-1.17-1.4,6.56,6.56,0,0,0-2.95-.44,38.78,38.78,0,0,0-6.74.89q-4.51.9-4.51,2.68a32.78,32.78,0,0,0,.67,4A69.65,69.65,0,0,1,50.4,46.9V81.72H66.88V46.45c2.23-3.71,5.19-5.57,8.91-5.57a11.35,11.35,0,0,1,2.89.45,11.28,11.28,0,0,0,2.34.44c1,0,1.79-1.17,2.45-3.51a22.09,22.09,0,0,0,1-5.86,6.75,6.75,0,0,0-1.4-4.18c-.93-1.22-2.58-1.84-5-1.84m81.25,8q-5.79-8-15-8a17.23,17.23,0,0,0-9,2.34,15.67,15.67,0,0,0-6,6,16.76,16.76,0,0,1-.39-1.68,19.62,19.62,0,0,0-.5-2,14.55,14.55,0,0,0-.67-1.62,3.23,3.23,0,0,0-1.17-1.4,6.53,6.53,0,0,0-3-.44,38.78,38.78,0,0,0-6.74.89q-4.52.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71v57.18h16.48V83a18.85,18.85,0,0,0,11.36,3.46q11.13,0,17.32-8.09t6.18-22.08q0-14-5.79-22M138.11,73.44a15.68,15.68,0,0,1-7.8-2.12V46.45q3.78-6.57,9.13-6.57,9,0,9,16.78T138.11,73.44m-39-68.85H96c-4.46,0-6.68,1.19-6.68,3.57v8.11h16.48V8.16q0-3.57-6.68-3.57m0,22.85H96c-4.46,0-6.68,1.19-6.68,3.57V81.72h16.48V31q0-3.57-6.68-3.57",fill:"#533764",fillRule:"evenodd"}),l.a.createElement("path",{d:"M37.33,82.12v.58q0,3.9-6.36,3.9H27.26q-6.36,0-6.36-3.9v-.58Z",fill:"#63c608",fillRule:"evenodd"}),l.a.createElement("path",{d:"M67.19,82.12v.58q0,3.9-6.66,3.9h-3.1q-6.66,0-6.66-3.9v-.58Z",fill:"#0e6cbb",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,82.12V83c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#00a89d",fillRule:"evenodd"}),l.a.createElement("path",{d:"M130.7,104.65v.9q0,3.45-6.55,3.45h-3.06q-6.56,0-6.55-3.45v-.9Z",fill:"#eec82f",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,16.42v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#ba390d",fillRule:"evenodd"})),l.a.createElement("rect",{x:"146.1",width:"70.18",height:"35.84",rx:"8",fill:"#11b6a8"}),l.a.createElement("path",{d:"M202.11,18.49h-6.65a4.13,4.13,0,0,1,.29-1.27,3.51,3.51,0,0,1,.67-1,3.17,3.17,0,0,1,1-.71,3.37,3.37,0,0,1,1.34-.25,3.32,3.32,0,0,1,1.31.25,3.48,3.48,0,0,1,1,.7,3.26,3.26,0,0,1,.69,1A3.93,3.93,0,0,1,202.11,18.49ZM199,25.63a5.26,5.26,0,0,0,3.27-1A4.56,4.56,0,0,0,204,21.71h-1.88a2.75,2.75,0,0,1-1,1.7,3.27,3.27,0,0,1-2,.56,3.93,3.93,0,0,1-1.64-.31,3.26,3.26,0,0,1-1.14-.84,3.15,3.15,0,0,1-.65-1.21,4.91,4.91,0,0,1-.18-1.44h8.67a9.52,9.52,0,0,0-.19-2.22,6.41,6.41,0,0,0-.85-2.15,5.11,5.11,0,0,0-1.64-1.63,4.79,4.79,0,0,0-2.56-.63,5.29,5.29,0,0,0-2.19.44A5.11,5.11,0,0,0,195,15.24a5.74,5.74,0,0,0-1.13,1.9,6.94,6.94,0,0,0-.41,2.42,9.36,9.36,0,0,0,.4,2.44,5.36,5.36,0,0,0,1,1.93,4.68,4.68,0,0,0,1.71,1.25A5.92,5.92,0,0,0,199,25.63Zm-8.91-7.14h-6.66a4.13,4.13,0,0,1,.29-1.27,3.35,3.35,0,0,1,.68-1,3,3,0,0,1,1-.71,3.61,3.61,0,0,1,2.64,0,3.35,3.35,0,0,1,1,.7,3.26,3.26,0,0,1,.69,1A3.94,3.94,0,0,1,190.09,18.49ZM187,25.63a5.22,5.22,0,0,0,3.27-1,4.56,4.56,0,0,0,1.68-2.93H190a2.66,2.66,0,0,1-1,1.7,3.23,3.23,0,0,1-2,.56,4,4,0,0,1-1.64-.31,3.26,3.26,0,0,1-1.14-.84,3.29,3.29,0,0,1-.65-1.21,4.91,4.91,0,0,1-.18-1.44h8.67a9,9,0,0,0-.19-2.22,6.41,6.41,0,0,0-.85-2.15,5.11,5.11,0,0,0-1.64-1.63,4.76,4.76,0,0,0-2.56-.63,5.21,5.21,0,0,0-2.18.44A5.15,5.15,0,0,0,183,15.24a5.92,5.92,0,0,0-1.13,1.9,6.94,6.94,0,0,0-.4,2.42,9.37,9.37,0,0,0,.39,2.44,5.36,5.36,0,0,0,1,1.93,4.68,4.68,0,0,0,1.71,1.25A6,6,0,0,0,187,25.63Zm-10.14-.25V20.23a7.89,7.89,0,0,1,.22-2,3.89,3.89,0,0,1,.72-1.47,3.11,3.11,0,0,1,1.3-.92,5.52,5.52,0,0,1,1.94-.31v-2a4.25,4.25,0,0,0-2.55.62,5.12,5.12,0,0,0-1.7,2.09h0V13.8h-1.79V25.38Zm-12.26,0V18.06h7.35V16.27h-7.35V11.18H173V9.39h-10.5v16Z",fill:"#fff"})))},Wn=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 216.28 109"},l.a.createElement("g",null,l.a.createElement("path",{d:"M59.36,14.25V10.79q0-5.58-3.34-5.58H3.34Q0,5.21,0,10.79v3.46q0,5.57,3.34,5.57H21.05v61.9H38.31V19.82H56q3.34,0,3.34-5.57M78.13,26.38q-7.47,0-12.14,8.48a17,17,0,0,1-.39-1.79A17.79,17.79,0,0,0,65.1,31c-.15-.41-.38-.93-.67-1.56a3.23,3.23,0,0,0-1.17-1.4,6.56,6.56,0,0,0-2.95-.44,38.78,38.78,0,0,0-6.74.89q-4.51.9-4.51,2.68a32.78,32.78,0,0,0,.67,4A69.65,69.65,0,0,1,50.4,46.9V81.72H66.88V46.45c2.23-3.71,5.19-5.57,8.91-5.57a11.35,11.35,0,0,1,2.89.45,11.28,11.28,0,0,0,2.34.44c1,0,1.79-1.17,2.45-3.51a22.09,22.09,0,0,0,1-5.86,6.75,6.75,0,0,0-1.4-4.18c-.93-1.22-2.58-1.84-5-1.84m81.25,8q-5.79-8-15-8a17.23,17.23,0,0,0-9,2.34,15.67,15.67,0,0,0-6,6,16.76,16.76,0,0,1-.39-1.68,19.62,19.62,0,0,0-.5-2,14.55,14.55,0,0,0-.67-1.62,3.23,3.23,0,0,0-1.17-1.4,6.53,6.53,0,0,0-3-.44,38.78,38.78,0,0,0-6.74.89q-4.52.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71v57.18h16.48V83a18.85,18.85,0,0,0,11.36,3.46q11.13,0,17.32-8.09t6.18-22.08q0-14-5.79-22M138.11,73.44a15.68,15.68,0,0,1-7.8-2.12V46.45q3.78-6.57,9.13-6.57,9,0,9,16.78T138.11,73.44m-39-68.85H96c-4.46,0-6.68,1.19-6.68,3.57v8.11h16.48V8.16q0-3.57-6.68-3.57m0,22.85H96c-4.46,0-6.68,1.19-6.68,3.57V81.72h16.48V31q0-3.57-6.68-3.57",fill:"#533764",fillRule:"evenodd"}),l.a.createElement("path",{d:"M37.33,82.12v.58q0,3.9-6.36,3.9H27.26q-6.36,0-6.36-3.9v-.58Z",fill:"#63c608",fillRule:"evenodd"}),l.a.createElement("path",{d:"M67.19,82.12v.58q0,3.9-6.66,3.9h-3.1q-6.66,0-6.66-3.9v-.58Z",fill:"#0e6cbb",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,82.12V83c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#00a89d",fillRule:"evenodd"}),l.a.createElement("path",{d:"M130.7,104.65v.9q0,3.45-6.55,3.45h-3.06q-6.56,0-6.55-3.45v-.9Z",fill:"#eec82f",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,16.42v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#ba390d",fillRule:"evenodd"}),l.a.createElement("rect",{x:"146.1",width:"70.18",height:"35.84",rx:"8",fill:"#ffe300"}),l.a.createElement("path",{d:"M191.5,24.38A3.37,3.37,0,0,1,189,23.25a3.8,3.8,0,0,1-.77-1.37A5.66,5.66,0,0,1,187.9,20a5.7,5.7,0,0,1,.28-1.87,4,4,0,0,1,.77-1.38,3.41,3.41,0,0,1,1.15-.85,3.52,3.52,0,0,1,2.8,0,3.32,3.32,0,0,1,1.15.85,4.21,4.21,0,0,1,.78,1.38,6.38,6.38,0,0,1,0,3.74,4,4,0,0,1-.78,1.37,3.42,3.42,0,0,1-1.15.84A3.51,3.51,0,0,1,191.5,24.38Zm0,1.66a6.05,6.05,0,0,0,2.43-.46,4.94,4.94,0,0,0,1.76-1.28,5.19,5.19,0,0,0,1.07-1.91,8,8,0,0,0,0-4.76,5.28,5.28,0,0,0-1.07-1.93,5.22,5.22,0,0,0-1.76-1.29,6.49,6.49,0,0,0-4.85,0,5.26,5.26,0,0,0-1.77,1.29,5.59,5.59,0,0,0-1.07,1.93,8,8,0,0,0,0,4.76,5.5,5.5,0,0,0,1.07,1.91,5,5,0,0,0,1.77,1.28A6.11,6.11,0,0,0,191.5,26Zm-10.21-.25V20.64a8.32,8.32,0,0,1,.22-2,3.75,3.75,0,0,1,.72-1.47,3.11,3.11,0,0,1,1.3-.92,5.39,5.39,0,0,1,1.95-.31v-2a4.25,4.25,0,0,0-2.55.63,5.17,5.17,0,0,0-1.71,2.08h0V14.21h-1.79V25.79Zm-9.74-8.33h-4.17V11.59h4.17a3.9,3.9,0,0,1,2.65.75,2.77,2.77,0,0,1,.84,2.18,2.82,2.82,0,0,1-.84,2.2A3.8,3.8,0,0,1,171.55,17.46Zm-4.17,8.33V19.25h4.89A4.88,4.88,0,0,0,175.93,18a4.75,4.75,0,0,0,1.24-3.5A4.7,4.7,0,0,0,175.93,11a5,5,0,0,0-3.66-1.24h-7v16Z"})))},Kn=function(){return l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2644 1886"},l.a.createElement("g",{id:"lines"},l.a.createElement("g",null,l.a.createElement("polyline",{points:"2122.55 516.45 1861.29 428.19 1814.56 380.46 1967.89 390.76 2088.22 368.23 1992.41 369.96 2177.68 230.88",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1233.71 72.39 1391.9 162.54 1421.2 234.54 1325.97 292.12 1335.47 327.69 1467.13 251.64 1501.42 349.32 1255.23 215.19 1191.88 299.14 1086.01 354.47 1185.83 454.93 1249.13 419.46 1269.77 419.46 1399.4 472.93 1434.57 399.88 1548.15 408.68 1739.53 296.39 1661.35 402.48 1697.83 422",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1297.35 1417.89 1388.59 1469.73 1466.06 1410.27 1230.2 1344.21 1185.57 1439.61 1067.15 1382.9 869.18 1434.83 941.97 1352.04 813.84 1392.78 681.27 1410.26 877.2 1252.86",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"2173.62 1367.53 1865.13 1344.21 1953.91 1385.72 1804.12 1459.3 1706.82 1373.91 1610.05 1317.16 1720.88 1288.32",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1550.37 1299.04 1612.38 1322.72 1555.43 1421.94 1496.75 1441.08 1462.99 1414.98 1553.41 1417.89 1633.65 1451.3 1711.38 1376.22 1725.77 1287.33",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1608.52 34.52 1594.44 186.04 1735.67 300.7 1559.66 246.23 1532.13 230.05",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1052.69 1230.75 1068.26 1352.04 1230.2 1348.39 1158.26 1374.88 1169.53 1242.09 1372.95 1282.43",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1169.53 1236.82 1119.99 1227.43 1132.51 1311.34 1279.02 1284.32",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("line",{x1:"2174.93",y1:"230.88",x2:"2057.54",y2:"152.81",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"1702.6 71.29 1608.5 42.5 1478.5 66.5",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1550.37 1299.04 1555.21 1421.94 1522.15 1299.34 1462.99 1412.8 1374.8 1282.43 1525.48 1299.34",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1987.01 -35.44 2112.5 92.5 2276.99 88.98 2202.01 145.47 2361.48 173.81 2368.98 95.93 2473.71 93.57 2522.26 38.2 2581.04 88.98 2499.49 169.05 2562.04 215.47 2509.41 298.67 2388.63 256.2 2406.08 384.07 2327.41 362.47 2210.01 395.31 2088.22 368.23 2174.93 230.88 1991.22 281.75 1992.41 369.96",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1548.15 408.68 1661.35 402.48 1559.66 246.23",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1967.89 390.76 1861.29 428.19 1697.83 422",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1501.42 349.32 1434.57 399.88 1335.47 327.69 1269.77 419.46 1255.23 215.19 1233.71 72.39 1350.12 -35.44 1608.5 42.5 1816.49 -55.39 1883.57 127.41 1789.49 182.24 1900.84 300.7 1991.22 281.75 2057.55 153.87 1900.84 305.29 1768.88 314.2 1789.49 177.56 1701.56 70.39 2112.5 92.5 2057.55 153.87 1883.57 127.41 1900.84 300.7",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("line",{x1:"1768.88",y1:"314.2",x2:"1735.67",y2:"300.7",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("line",{x1:"1595.86",y1:"187.19",x2:"1477.63",y2:"71.25",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"1119.99 1227.43 1045.2 1106.07 937.63 1157.31 811.77 1105.7 865.01 1042.47 735.63 935.31 872.63 842.31 728.01 720.47 845.48 749.7 872.63 647.31 675.63 574.31 841.48 522.7 770.43 516.64 831.01 441.47 726.01 354.47 811.48 234.31 921.01 240.03 973.63 349.32 1091.63 187.19 1191.88 299.14 1185.83 454.93 1255.23 215.19 1097.5 65.5 921.01 240.03 981.23 46.84 1086.01 354.47 1004.01 482.81 973.63 349.32 811.48 234.31 831.01 441.47 921.01 240.03 823.01 99.52 692.01 207.19 588.65 323.7 726.01 354.47 770.43 516.64 596.5 448.5 675.63 574.31 728.01 720.47 591.33 829.81 679.48 909.7 735.63 935.31 743.63 1160.67 811.77 1105.7 562.26 1004.81 865.01 1042.47 872.63 842.31 845.48 749.7 591.5 829.5",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1067.15 1382.9 1109.99 1630.88 990.48 1476.7 1243.17 1479.47 1185.57 1439.61 1296.25 1417.89 1279.02 1284.32 1230.2 1348.39 1372.29 1284.32 1282.06 1284.32",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1594.38 1601.13 1633.65 1451.3 1804.12 1459.3 1720.93 1587.86 1548.17 1498.7 1388.59 1469.73 1409.13 1587.86 1496.75 1441.08",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1572.01 1164.47 1839.63 1199.64 1688.05 1017.31 1725.77 1287.33",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"517.97 796.21 591.33 829.81 675.63 574.31 726.01 354.47 692.01 207.19 831.01 441.47 973.63 349.32",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1958.39 536.47 1830.55 566.31 1713.63 743.64 1824.49 847.7 1748.01 892.31 1688.05 1017.31 1907.63 841.31 1914.63 1052.31 1839.63 1199.64 1725.77 1287.33 1523.35 1230.75 1572.01 1164.47 1372.29 1284.32 1523.35 1230.75 1498.17 1122.2 1380.01 1160.67 1225.49 1092.77 1119.99 1227.43 1071.89 1352.04 1158.26 1374.88 1067.15 1382.9 1068.26 1352.04 946.41 1351.21 1052.69 1230.75 877.06 1249.33 941.97 1352.04 990.48 1476.7 904.5 1620.5 789.17 1471.47 869.18 1434.83",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polygon",{points:"1572.01 1164.47 1725.77 1287.33 1816.49 1039.81 1914.63 1052.31 1572.01 1164.47",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"1548.15 408.68 1576.49 480.7 1697.83 422 1749.63 536.47 1834.01 468.47 1830.55 566.31 1861.28 663.31 1839.63 763.47 1713.63 743.64 1748.01 892.31 1687.01 920.47 1688.05 1017.31 1816.49 1039.81 1907.63 841.31 1958.39 536.47 1996.63 657.31 1824.49 847.7 1984.13 989.47 1914.63 1052.31 1961.49 1134.7 1839.63 1199.64 1971.63 1261.31 2173.16 1365.32 1725.77 1287.33 1865.13 1344.21 1711.38 1376.22 1953.91 1385.72 1945.49 1461.7 1804.12 1459.3 1939.43 1620.5 2122.5 1451.5 2079.89 1571.25 2185.17 1631.65 2207.48 1553.8 2337.95 1511.79 2386.48 1637.7 2537.57 1543.93 2410.57 1523.85 2453.57 1435.93 2273.19 1411.12 2342.12 1378.48 2114.01 1270.31 2261.01 1202.06 2207.48 1266.7 2348.18 1206.79 2422.67 1282.81 2613.85 1241.68 2511.55 1298.07 2476.17 1182.35 2376.95 1128.64 2383.9 1035.3 2516.47 947.1 2499.55 1095.65 2568.41 1097.31 2516.47 947.1 2690.93 947.1 2514.55 853.81 2450.49 802.48 2424.71 729.34 2488.26 702.3 2562.04 743.31 2571.45 692.3 2568.13 625.01 2447.67 514.26 2447.67 640.57 2398.08 644.81 2367.54 508.31 2210.01 395.31 2227.01 602.47 2322.18 562.79 2122.55 516.45 2167.63 677.31 2072.5 735.5 1996.63 657.31",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1633.65 1451.3 1721.32 1590.61 1780.61 1627.97 1804.12 1459.3 1865.13 1344.21",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1421.2 234.54 1466.17 250.27 1477.63 71.25 1533.13 230.05 1389.62 162.54 1478.31 66.37",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1739.53 296.39 1789.49 182.24 1595.87 187.19 1559.66 246.23 1501.42 349.32 1548.15 408.68 1399.4 472.93 1335.47 327.69 1497.63 347.25",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"2173.16 1365.32 2122.5 1451.5 1953.91 1385.72 1971.63 1261.31 2064.32 1236.82 1961.49 1134.7 2075.5 1070.5 1984.13 989.47 2072.5 735.5 1907.63 841.31 1996.63 657.31 2122.55 516.45 1967.89 390.76 1992.41 369.96 1901.12 298.67 1814.56 380.46 1768.88 314.2 1697.83 422",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("line",{x1:"1861.28",y1:"428.19",x2:"1834.01",y2:"468.47",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("line",{x1:"1967.89",y1:"390.76",x2:"1958.39",y2:"536.47",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"841.5 522.5 831.01 441.47 1004.01 482.81 841.48 522.7 872.63 647.31 952.53 595.31",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"59.49 515.7 90.41 658.48 151.99 713.85 287.48 791.1 433.17 647.47 519.97 801.93 509.23 951.65 562.26 1004.81 735.63 935.31",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"789.17 1471.47 673.43 1602.98 681.27 1410.26 457 1412.5 593.74 1381.69 463.74 1299.69 308.57 1387.93 368.58 1502.07 550.74 1554.69 631.97 1544.22 566.5 1722.5 444.08 1601.07 356.08 1619.39 330.5 1720.5 243.59 1579.07 181.48 1461.7 116.97 1589.21 110.58 1475.07 45.01 1553.47 -35.5 1358.5 108.18 1361.79 224.57 1279.93 181.57 1368.93 407.7 1196.11 563.97 1201.22 517.73 1144.97 436.97 1050.79 542.67 1112.12 743.63 1160.67",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"845.48 749.7 679.48 909.7 743.63 1160.67 556.44 1314.39 681.27 1410.26 789.17 1471.47 813.84 1392.78 877.06 1249.33 726.01 1290.53 743.63 1160.67 777.17 1205.7 937.63 1157.31 1052.69 1230.75 1045.2 1106.07 1225.49 1092.77 1279.02 1284.32 1380.01 1160.67 1372.29 1284.32",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}})),l.a.createElement("path",{d:"M281.56,1142.07l-173.15,80.41,116.16,57.45-30.9-152.2H-18.62l137.8-77.51,128-23.87,23.38-59.67L148,971.51l-76.77-7.72L154.9,879.3l115.65,58.94,68.86,3.07L287.48,791.1l171.11,93.18-360.18-80L152,713.85l69.5-67.37,64.05,48.83L90.41,658.48l105.3-83.91,136.74,11.27,100.72,61.63,146.46-71.16L511.91,724.36l60.58-74.66L490.63,533.31l-148.18,3L339.13,469l260.78-19.7-135-62L218.67,357s-.54,123.2-.86,124.37S319.76,293.5,319.76,293.5l-60.5,254.13-74.17-64.18L93.18,405.18-60.5,454.5l120,61.2,136.22,62.07L-43.5,632.5l135,29.07L-33.5,850.5l129-44L152,876.72-21.5,922.5",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1939.43 1620.5 1780.61 1627.97 1663.5 1711.5 1594.38 1601.13 1548.17 1498.7 1477.38 1642.7 1271.01 1636.65 1388.59 1469.73 1230.17 1569.63 1243.17 1479.47 1109.99 1630.88 1216.34 1707.08 1225.19 1571.33 1266.87 1636.76",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"789.17 1471.47 794.63 1601.07 904.5 1620.5 1023.26 1556.21 960.5 1708.5 906.22 1624.64",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"93.18 405.18 -35.5 102.11 99.24 205.48 -71.49 327.7 177.08 229.6 319.76 293.5 280.41 142.31 159.63 100.2 299.98 -67.36 392.63 68.31 650.76 88.73 692.01 207.19",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"464.89 387.31 342.45 536.3 433.17 647.47 285.55 695.31 259.26 547.63 217.81 481.33",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"270.55 966.68 401.39 1060.19 247.17 1026.35 147.95 971.51 193.67 1127.73 119.18 1050.22 -72.5 987.5 71.18 963.79",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"193.67 1127.73 108.41 1222.48 -40.23 1279.93 108.18 1361.79 181.57 1368.93 181.48 1461.7 110.58 1475.07 243.59 1579.07 308.57 1387.93 407.7 1196.11 556.44 1314.39 563.97 1201.22 542.96 1118.22 562.26 1004.81",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("line",{x1:"517.73",y1:"1144.97",x2:"281.56",y2:"1142.07",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"401.39 1060.19 436.97 1050.79 407.7 1196.11 281.56 1142.07 401.39 1060.19 509.23 951.65 339.41 941.31",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("line",{x1:"509.23",y1:"951.65",x2:"679.48",y2:"909.7",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("line",{x1:"511.91",y1:"724.36",x2:"591.33",y2:"829.81",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"631.97 1544.22 593.74 1381.69 726.01 1290.53",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"550.74 1554.69 444.08 1601.07 368.58 1502.07 243.59 1579.07 102.5 1784.5 116.97 1589.21 -40.23 1637.91 45.01 1553.47",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"673.43 1602.98 722.5 1787.5 794.63 1601.07",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1477.38 1642.7 1396.01 1722.5 1409.13 1587.86 1243.17 1479.47",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1945.49 1461.7 1993.59 1637.7 1939.43 1620.5 1939.43 1701.31",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polygon",{points:"2514.55 853.81 2380.99 869.65 2450.49 802.48 2562.04 743.31 2681.95 843.31 2516.47 947.1 2514.55 853.81",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"2122.55 516.45 2088.22 368.23 2388.63 256.2 2174.93 230.88 2202.01 145.47 2057.55 153.87",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"2509.41 298.67 2548.76 448.33 2708.88 448.33",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"2473.71 93.57 2499.49 169.05 2276.99 88.98 2155.13 -70.35 2112.5 92.5 2400.01 -70.35 2368.98 95.93 2522.26 38.2 2593.54 -35.44 2696.5 -23.5 2690.93 79.89 2581.04 88.98 2696.5 214.31 2562.04 215.47 2548.76 448.33 2447.67 514.26 2367.54 508.31 2406.08 384.07 2398.08 644.81 2322.18 562.79 2237.48 683.7 2227.01 602.47 2424.71 729.34 2447.67 640.57 2488.26 702.3 2568.13 625.01 2678.18 669.81 2571.45 692.3 2450.49 802.48 2333.63 819.31 2279.57 799.48 2167.63 677.31 2124.01 881.66 2072.5 735.5 2241.48 910.7 2380.99 869.65 2516.47 947.1 2327.41 960.31 2383.9 1035.3 2300.18 1119.79 2268.63 1003.31 2131.63 1096.31 2075.5 1070.5 2124.01 881.66 2241.48 910.7 2327.41 960.31 2300.18 1119.79 2131.63 1096.31 2261.01 1202.06 2376.95 1128.64 2348.18 1206.79 2122.5 1451.5 2273.19 1411.12 2410.57 1523.85 2386.48 1637.7 2207.48 1553.8",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("line",{x1:"2361.48",y1:"173.81",x2:"2276.99",y2:"88.98",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"1097.5 65.5 1233.71 72.39 1142.5 -48.5 981.23 46.84 1091.63 187.19 823.01 99.52 801.13 -31.11 755.5 157.68 714.38 97.23 686.5 -24.5 534.63 26.42 509.5 -42.5 449.55 35.7 534.63 29.64 650.76 88.73 443.49 227.7 541.63 240.31 369.01 168.47 392.63 68.31 280.41 142.31 99.24 205.48 177.08 229.6 93.18 405.18 218.67 356.96",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"443.49 227.7 392.63 68.31 449.55 35.7",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"2453.57 1435.93 2696.5 1440.5 2511.55 1298.07 2568.41 1097.31 2690.93 1163.57 2696.5 1441.08",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"2696.5 1440.5 2537.57 1543.93 2567.54 1756.5 2386.48 1637.7 2207.77 1711.5 2185.17 1631.65 2057.35 1771.5",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1185.83 454.93 1203.19 573.12 1269.49 540.48 1267.95 675.07 1052.01 612.47",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1383.57 598.16 1399.4 472.93 1550.5 603.32 1576.49 480.7 1749.63 536.47 1713.63 743.64 1660.04 637.13 1550.5 603.32 1467.57 705.93 1383.57 598.16 1340.57 686.93 1427.27 731.29 1546.01 758.47 1619.09 831.77 1580.01 931.31 1515.51 886.47 1401.22 878.47 1475.08 1016.5 1397.49 994.48 1278.63 1028.31 1316.48 799.7 1195.81 778.9 1213.98 866.81 1157.03 1002.96 1045.2 1106.07 1036.89 1023.38 1061.42 1002.96 930.98 969.7 872.63 842.31 1027.13 889.31 1115.17 793.64 1137.77 715.8 1009.89 733.25 952.53 595.31 1052.01 612.47 1102.48 528.47 1004.01 482.81",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("line",{x1:"1115.17",y1:"793.64",x2:"1157.03",y2:"1002.96",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("line",{x1:"1278.63",y1:"1028.31",x2:"1380.01",y2:"1160.67",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("line",{x1:"1225.49",y1:"1092.77",x2:"1157.03",y2:"1002.96",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("path",{d:"M1009.5,733.5,1052,612l-48-129.19-51.48,112.5",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("path",{d:"M1017.86,730.43a8.45,8.45,0,1,0-5.14,10.78h0a8.44,8.44,0,0,0,5.12-10.78",fill:"#30b4ad",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1203.19 573.12 1102.48 528.47 1190.2 452.7",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1267.95 675.07 1137.77 715.8 1195.81 778.9 1267.95 675.07 1340.57 686.93 1401.22 878.47 1546.01 758.47 1660.04 637.13 1467.57 705.93 1427.27 731.29 1316.48 799.7 1213.98 866.81 1397.49 994.48 1580.01 931.31 1688.05 1017.31 1475.08 1016.5 1498.17 1122.2",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("polyline",{points:"1061.42 1002.96 1027.13 889.31 1009.89 733.25 872.63 842.31",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}}),l.a.createElement("line",{x1:"930.98",y1:"969.7",x2:"937.63",y2:"1157.31",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("line",{x1:"1572.01",y1:"1164.47",x2:"1580.01",y2:"931.31",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"1687.01 920.47 1619.09 831.77 1515.51 886.47",fill:"none",stroke:"#30b4ad",strokeMiterlimit:"10",style:{strokeDashoffset:0,strokeDasharray:"none"}})),l.a.createElement("g",{id:"dots"},l.a.createElement("path",{d:"M1492,352.68a10,10,0,1,0,6.06-12.78,10,10,0,0,0-6.06,12.78h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1383.49,164.72a6.5,6.5,0,1,0,4-8.31,6.51,6.51,0,0,0-4,8.31v0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1735.31,1285.43a10,10,0,1,0-6.69,12.47l.47-.16a9.77,9.77,0,0,0,6.22-12.31",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1702.47,1379.4a9.5,9.5,0,1,0,5.77-12.14h0a9.5,9.5,0,0,0-5.76,12.13",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1708.65,418.14a11.5,11.5,0,1,0-7,14.7h0a11.5,11.5,0,0,0,7-14.68h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1196.87,297.17a7.73,7.73,0,1,0-4.7,9.88h0a7.73,7.73,0,0,0,4.71-9.86h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1474.2,249.12a7.5,7.5,0,1,0-4.56,9.59,7.5,7.5,0,0,0,4.56-9.59",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1428.75,231.9a8,8,0,1,0-4.91,10.19h0a8,8,0,0,0,4.88-10.18",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1622.76,1318.18a13.5,13.5,0,1,0-8.18,17.25h0a13.5,13.5,0,0,0,8.19-17.24h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1384.86,474.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1079.86,190.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M961.86,351.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M801.86,238.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M759.86,520.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M860.86,651.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M723.86,939.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M860.86,846.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M925.86,1161.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M731.86,1162.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1819.86,570.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M663.86,578.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1849.86,667.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1895.86,845.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1940.86,1392.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1855.75,1348.14a8.37,8.37,0,1,0,5.06-10.71h0a8.38,8.38,0,0,0-5.06,10.71h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1701.86,747.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1677.86,1021.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1902.86,1056.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1737.86,896.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1827.86,1203.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1959.86,1265.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1984.86,661.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1564.15,1418.73a9.5,9.5,0,1,0-5.74,12.15,9.5,9.5,0,0,0,5.74-12.15h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M954.68,1347.5a13.5,13.5,0,1,0-8.21,17.3h0a13.49,13.49,0,0,0,8.17-17.25",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1671.23,399.65a10.5,10.5,0,1,0-6.36,13.42h0a10.51,10.51,0,0,0,6.37-13.42h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1570.48,242.37a11.5,11.5,0,1,0-7,14.69h0a11.48,11.48,0,0,0,7-14.66v0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1761.38,316a8,8,0,1,0,4.86-10.22h0a8,8,0,0,0-4.85,10.22",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1600.7,45.41a10,10,0,1,0,6-12.79h0a10,10,0,0,0-6,12.78",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1247.68,217.84a8,8,0,1,0,4.9-10.2h0a8,8,0,0,0-4.89,10.19",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1329.75,329.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1178.75,456.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M720.75,356.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M835.75,524.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M839.75,751.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M673.75,911.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M805.75,1107.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M770.75,1207.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M984.75,1478.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1541.75,1500.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1628.75,1452.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1939.75,1463.7a6.07,6.07,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2203.75,1712.7a6.07,6.07,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1955.75,1136.7a6.07,6.07,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1818.75,849.7a6.07,6.07,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1810.75,1041.7a6.07,6.07,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1952.75,535.7a6.07,6.07,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1570.75,482.7a6.07,6.07,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1855.57,430.19a6.05,6.05,0,1,0,3.71-7.72h0a6,6,0,0,0-3.73,7.62l0,.09",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1803.25,382.79a12,12,0,1,0,7.26-15.34h0a12,12,0,0,0-7.26,15.34h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1241.47,1344.35a12,12,0,1,0-7.26,15.34h0a12,12,0,0,0,7.26-15.34h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M800.47,1466.35a12,12,0,1,0-7.26,15.34h0a12,12,0,0,0,7.26-15.34h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1254.47,1474.35a12,12,0,1,0-7.26,15.34h0a12,12,0,0,0,7.26-15.34h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1817.47,1455.35a12,12,0,1,0-7.26,15.34h0a12,12,0,0,0,7.26-15.34h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1558.38,1296.17a8.5,8.5,0,1,0-5.15,10.87,8.49,8.49,0,0,0,5.15-10.87h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1239.64,1567.29a12,12,0,1,0-7.27,15.35,12,12,0,0,0,7.27-15.35v0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1363,1286.63a12.5,12.5,0,1,0,7.58-16h0a12.52,12.52,0,0,0-7.57,16",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1605.27,182.17a11.5,11.5,0,1,0-7,14.7h0a11.48,11.48,0,0,0,7-14.66v0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1230.86,63.46a8.5,8.5,0,1,0,10.87,5.14,8.51,8.51,0,0,0-10.87-5.14h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1726.73,302.35a9.5,9.5,0,1,0,5.75-12.15,9.5,9.5,0,0,0-5.75,12.15v0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1888.12,305.24A13.5,13.5,0,1,0,1896.3,288h0a13.51,13.51,0,0,0-8.17,17.25",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1785.63,171.41a11.5,11.5,0,1,0,14.7,7h0a11.49,11.49,0,0,0-14.67-7h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1872.74,131.29a11.51,11.51,0,1,0,7-14.71,11.5,11.5,0,0,0-7,14.71v0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1308.65,1413.86a12,12,0,1,0-7.27,15.34h0a12,12,0,0,0,7.27-15.33",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1167,1371.06a9.28,9.28,0,1,0-5.63,11.86h0a9.28,9.28,0,0,0,5.62-11.86h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1451.69,1419a12,12,0,1,0,7.26-15.34h0a12,12,0,0,0-7.26,15.34h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1317.5,295a8.5,8.5,0,1,0,5.15-10.87A8.51,8.51,0,0,0,1317.5,295h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1260.81,421.89a9.5,9.5,0,1,0,5.76-12.15,9.5,9.5,0,0,0-5.76,12.15v0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1964.69,381.43a9.5,9.5,0,1,0,12.15,5.75h0a9.48,9.48,0,0,0-12.1-5.76h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M814.47,1400.33a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1724,1597.15a8,8,0,1,0-10.25-4.85h0a8,8,0,0,0,10.21,4.87h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1524,1307.15a8,8,0,1,0-10.25-4.85h0a8,8,0,0,0,10.21,4.87h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1137,1317.15a8,8,0,1,0-10.25-4.85h0a8,8,0,0,0,10.21,4.87h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1074.83,1358.83a13.31,13.31,0,1,0-17-8.07h0a13.31,13.31,0,0,0,17,8.1l0,0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1545.45,403a8,8,0,1,0,10.25,4.85h0a8,8,0,0,0-10.21-4.86h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1069.85,1390.45a8,8,0,1,0-10.25-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1027.19,1567.2a11.67,11.67,0,1,0-14.92-7.06h0a11.67,11.67,0,0,0,14.89,7.07h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M726.19,1798.2a11.67,11.67,0,1,0-14.92-7.06h0a11.67,11.67,0,0,0,14.89,7.07h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M879.9,1257.65a8,8,0,1,0-10.25-4.85h0a8,8,0,0,0,10.22,4.86h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1281.71,1291.87a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1390.71,1479a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2378.15,92.73a9.5,9.5,0,1,0-5.74,12.15,9.5,9.5,0,0,0,5.74-12.15h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2355.75,174.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2068.47,148.35a12,12,0,1,0-7.26,15.34h0a12,12,0,0,0,7.26-15.34h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2122.65,87.86a12,12,0,1,0-7.27,15.34h0a12,12,0,0,0,7.27-15.33",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2265.69,93A12,12,0,1,0,2273,77.68h0A12,12,0,0,0,2265.69,93h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2204.71,153a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M867.71,1050a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1387.33,1169.92a12.5,12.5,0,1,0-17.67-.87h0a12.51,12.51,0,0,0,17.67.88h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1049.42,1110.6a6.06,6.06,0,1,0-8.56-.49h0a6.06,6.06,0,0,0,8.55.47",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1502.2,1126.73a6.06,6.06,0,1,0-8.56-.49h0a6,6,0,0,0,8.54.47",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1231.42,1087.4a8,8,0,1,0-.57,11.31h0a8,8,0,0,0,.58-11.3h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M730.71,728a8,8,0,1,0-10.24-4.85h0A8,8,0,0,0,730.69,728h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M833.71,449a8,8,0,1,0-10.24-4.85h0A8,8,0,0,0,833.69,449h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M923.71,245a8,8,0,1,0-10.24-4.85h0A8,8,0,0,0,923.69,245h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M694.71,215a8,8,0,1,0-10.24-4.85h0A8,8,0,0,0,694.69,215h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1750.71,544a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1088.71,362a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1006.71,492a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1836.71,476a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1840.71,771a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M380.86,72.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M522.86,33.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M567.86,580.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M482.75,536.14a8.37,8.37,0,1,0,5.06-10.71h0a8.38,8.38,0,0,0-5.06,10.71h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M529.86,244.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M454.86,391.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M586.86,453.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M566.75,651.7a6.07,6.07,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M582.75,324.7a6.07,6.07,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M445.75,37.7A6.07,6.07,0,1,0,449.48,30h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M437.75,229.7a6.07,6.07,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M444.47,643.35a12,12,0,1,0-7.26,15.34h0a12,12,0,0,0,7.26-15.34h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M371.71,176a8,8,0,1,0-10.24-4.85h0A8,8,0,0,0,371.69,176h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1689.71,928a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1989.71,997a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1574.71,1172a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1527.71,1238a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M728.71,1297a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1431.86,393.11a8,8,0,1,0,10.25,4.85h0a8,8,0,0,0-10.21-4.86h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M462,893.7a10,10,0,1,0-12.78-6.06A10,10,0,0,0,462,893.7h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M406.45,1188.83a7.73,7.73,0,1,0,9.88,4.7h0a7.73,7.73,0,0,0-9.87-4.7h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M567.81,1015.84a12.5,12.5,0,1,0-16-7.56h0a12.52,12.52,0,0,0,16,7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M460.81,1423.84a12.5,12.5,0,1,0-16-7.56h0a12.52,12.52,0,0,0,16,7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M677.81,1612.84a12.5,12.5,0,1,0-16-7.56h0a12.52,12.52,0,0,0,16,7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M570.81,1732.84a12.5,12.5,0,1,0-16-7.56h0a12.52,12.52,0,0,0,16,7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M106.81,1794.84a12.5,12.5,0,1,0-16-7.56h0a12.52,12.52,0,0,0,16,7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1220.81,1717.84a12.5,12.5,0,1,0-16-7.56h0a12.52,12.52,0,0,0,16,7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1402.81,1733.84a12.5,12.5,0,1,0-16-7.56h0a12.52,12.52,0,0,0,16,7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M372.81,1513.84a12.5,12.5,0,1,0-16-7.56h0a12.52,12.52,0,0,0,16,7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M508.92,714.47a10.5,10.5,0,1,0,13.42,6.36h0a10.48,10.48,0,0,0-13.41-6.36h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M439,1056a6.06,6.06,0,1,0-7.72-3.72h0a6.07,6.07,0,0,0,7.72,3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M566,1207a6.06,6.06,0,1,0-7.72-3.72h0a6.07,6.07,0,0,0,7.72,3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M447,1607a6.06,6.06,0,1,0-7.72-3.72h0a6.07,6.07,0,0,0,7.72,3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M634,1550a6.06,6.06,0,1,0-7.72-3.72h0a6.07,6.07,0,0,0,7.72,3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M520,802a6.07,6.07,0,1,0-7.72-3.72h0a6.07,6.07,0,0,0,7.72,3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M509.73,1147.84a8.5,8.5,0,1,0,5.14-10.87,8.5,8.5,0,0,0-5.14,10.87v0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M404.25,1068.2a8.5,8.5,0,1,0-10.87-5.15,8.5,8.5,0,0,0,10.87,5.15h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M546.16,1121.89a9.5,9.5,0,1,0-12.15-5.76,9.51,9.51,0,0,0,12.15,5.76h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M586,832.25A8,8,0,1,0,590.85,822h0A8,8,0,0,0,586,832.22h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M558.28,1552a8,8,0,1,0-4.85,10.24h0a8,8,0,0,0,4.85-10.22h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M471.28,1297a8,8,0,1,0-4.85,10.24h0a8,8,0,0,0,4.85-10.22h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M601.28,1379a8,8,0,1,0-4.85,10.24h0a8,8,0,0,0,4.85-10.22h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M114.81,1486.84a12.5,12.5,0,1,0-16-7.56h0a12.52,12.52,0,0,0,16,7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M247.81,1590.84a12.5,12.5,0,1,0-16-7.56h0a12.52,12.52,0,0,0,16,7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M119,1595a6.07,6.07,0,1,0-7.72-3.72h0a6.07,6.07,0,0,0,7.72,3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M502.38,953.84a8,8,0,1,0,4.85-10.25h0a8,8,0,0,0-4.85,10.22h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1983.67,284.39a8,8,0,1,0,4.92-10.19h0a8,8,0,0,0-4.88,10.18",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1982.52,373.48a10.5,10.5,0,1,0,6.38-13.41h0a10.49,10.49,0,0,0-6.36,13.4h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M691.86,1407.43a8.45,8.45,0,1,0-5.14,10.78h0a8.44,8.44,0,0,0,5.12-10.78",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2357.86,512.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2197.86,399.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2155.86,681.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2321.86,823.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2119.86,1100.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2256.86,1007.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2101.86,1274.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2059.86,739.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2350.68,1508.5a13.5,13.5,0,1,0-8.21,17.3h0a13.49,13.49,0,0,0,8.17-17.25",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2116.75,517.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2231.75,685.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2235.75,912.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2069.75,1072.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2201.75,1268.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2166.75,1368.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2380.75,1639.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2196.47,1627.35a12,12,0,1,0-7.26,15.34h0a12,12,0,0,0,7.26-15.34h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2210.47,1561.33a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2275.9,1418.65a8,8,0,1,0-10.25-4.85h0a8,8,0,0,0,10.22,4.86h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2263.71,1211a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2126.71,889a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2229.71,610a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2176.71,239a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2090.71,376a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2402.71,653a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1548.71,766a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2124.71,1458a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2059.71,1777a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2087.86,1568.43a8.45,8.45,0,1,0-5.14,10.78h0a8.44,8.44,0,0,0,5.12-10.78",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1181.3,1232.62a12.5,12.5,0,1,0-7.57,16h0a12.49,12.49,0,0,0,7.6-15.94l0-.06h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1059.75,1228.24a7.5,7.5,0,0,0-9.58-4.55h0a7.49,7.49,0,0,0-4.53,9.59h0a7.5,7.5,0,0,0,9.57,4.54h0a7.49,7.49,0,0,0,4.56-9.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1129.41,1224.07a10,10,0,1,0-6.06,12.78h0a10,10,0,0,0,6.06-12.78h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M639.51,96.06a13.5,13.5,0,1,0,3.79-18.71h0a13.5,13.5,0,0,0-3.8,18.7h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M707.3,101.94a8.5,8.5,0,1,0,2.38-11.79,8.49,8.49,0,0,0-2.38,11.79h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M834.21,93.19a12.5,12.5,0,1,0-3.5,17.36h0A12.52,12.52,0,0,0,834.2,93.2",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M976.87,39.54A8,8,0,1,0,988,41.79h0a8,8,0,0,0-11.09-2.25h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M751.06,151a8,8,0,1,0,11.11,2.24h0A8,8,0,0,0,751.08,151h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1088.59,72.89a12.5,12.5,0,1,0,3.5-17.35h0a12.48,12.48,0,0,0-3.54,17.29l0,.06h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1694.62,74.9A7.51,7.51,0,0,0,1705,77h0a7.51,7.51,0,0,0,2.09-10.4h0a7.5,7.5,0,0,0-10.39-2.1h0a7.49,7.49,0,0,0-2.12,10.38h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1469,76.71a10,10,0,1,0,2.81-13.86h0A10,10,0,0,0,1469,76.71h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M284.45,1151.62a10,10,0,1,0-12.47-6.69l.16.47a9.77,9.77,0,0,0,12.31,6.22",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M190.48,1118.78a9.5,9.5,0,1,0,12.14,5.77h0a9.49,9.49,0,0,0-12.13-5.76",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M251.7,1039.07a13.5,13.5,0,1,0-17.25-8.18h0a13.49,13.49,0,0,0,17.24,8.18h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M177.34,1357.17a12.5,12.5,0,1,0,16,7.56h0a12.5,12.5,0,0,0-16-7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M221.74,1272.06a8.37,8.37,0,1,0,10.71,5.06h0a8.37,8.37,0,0,0-10.71-5.06h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M304.34,1376.17a12.5,12.5,0,1,0,16,7.56h0a12.5,12.5,0,0,0-16-7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M151.15,980.46A9.5,9.5,0,1,0,139,974.72a9.5,9.5,0,0,0,12.15,5.74h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M222.38,371a13.5,13.5,0,1,0-17.3-8.21h0A13.51,13.51,0,0,0,222.33,371",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M91.18,401.06a6.06,6.06,0,1,0,7.72,3.72h0a6.05,6.05,0,0,0-7.72-3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M69.18,958.06a6.06,6.06,0,1,0,7.72,3.72h0a6.05,6.05,0,0,0-7.72-3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M117.18,1045.06a6.06,6.06,0,1,0,7.72,3.72h0a6.05,6.05,0,0,0-7.72-3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M106.18,1356.06a6.06,6.06,0,1,0,7.72,3.72h0a6.05,6.05,0,0,0-7.72-3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M225.53,657.78a12,12,0,1,0-15.34-7.26h0a12,12,0,0,0,15.34,7.26h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M103.53,216.78a12,12,0,1,0-15.34-7.26h0a12,12,0,0,0,15.34,7.26h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M95.53,670.78a12,12,0,1,0-15.34-7.26h0a12,12,0,0,0,15.34,7.26h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M114.53,1233.78a12,12,0,1,0-15.34-7.26h0a12,12,0,0,0,15.34,7.26h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M273.71,974.69a8.5,8.5,0,1,0-10.87-5.15,8.5,8.5,0,0,0,10.87,5.15h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M274.59,951a12,12,0,1,0-15.35-7.27A12,12,0,0,0,274.59,951h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M283.25,779.33a12.5,12.5,0,1,0,16,7.58h0a12.51,12.51,0,0,0-16-7.57",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M156,725a12,12,0,1,0-15.34-7.27h0A12,12,0,0,0,156,725",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M198.82,583.32A9.28,9.28,0,1,0,187,577.69h0a9.29,9.29,0,0,0,11.86,5.62h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M150.86,868a12,12,0,1,0,15.34,7.26h0A12,12,0,0,0,150.86,868h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M169.55,230.78a8,8,0,1,0,4.85-10.24h0a8,8,0,0,0-4.85,10.21v0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M251.73,550.34a8,8,0,1,0,4.85-10.25h0a8,8,0,0,0-4.87,10.21v0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M179.43,486.16a8,8,0,1,0,4.85-10.25h0a8,8,0,0,0-4.85,10.22h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M207.68,488.5a11.67,11.67,0,1,0,7.06-14.92h0a11.66,11.66,0,0,0-7.07,14.89h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M312.23,296.21A8,8,0,1,0,317.08,286h0a8,8,0,0,0-4.86,10.21v0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M278,698a8,8,0,1,0,4.85-10.24h0A8,8,0,0,0,278,698h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M90.88,807a8,8,0,1,0,4.85-10.24h0A8,8,0,0,0,90.88,807h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M331.88,944a8,8,0,1,0,4.85-10.24h0A8,8,0,0,0,331.88,944h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M272.88,145a8,8,0,1,0,4.85-10.24h0A8,8,0,0,0,272.88,145h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M162.45,108.17A8.45,8.45,0,1,0,151.67,103v0h0a8.44,8.44,0,0,0,10.78,5.12",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M337.26,597.61a12.5,12.5,0,1,0-16-7.57h0a12.5,12.5,0,0,0,15.94,7.59l.06,0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M341.64,476.06a7.49,7.49,0,0,0,4.55-9.58h0A7.49,7.49,0,0,0,336.6,462h0a7.49,7.49,0,0,0-4.54,9.57h0a7.49,7.49,0,0,0,9.56,4.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M345.81,545.72A10,10,0,1,0,333,539.66h0a10,10,0,0,0,12.78,6.06h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2513.45,1307.62a10,10,0,1,0-12.47-6.69l.16.47a9.77,9.77,0,0,0,12.31,6.22",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2419.48,1274.78a9.5,9.5,0,1,0,12.14,5.77h0a9.49,9.49,0,0,0-12.13-5.76",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2480.7,1195.07a13.5,13.5,0,1,0-17.25-8.18h0a13.49,13.49,0,0,0,17.24,8.18h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2406.34,1513.17a12.5,12.5,0,1,0,16,7.56h0a12.5,12.5,0,0,0-16-7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2450.74,1428.06a8.37,8.37,0,1,0,10.71,5.06h0a8.37,8.37,0,0,0-10.71-5.06h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2533.34,1532.17a12.5,12.5,0,1,0,16,7.56h0a12.5,12.5,0,0,0-16-7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2563.34,1750.17a12.5,12.5,0,1,0,16,7.56h0a12.5,12.5,0,0,0-16-7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2380.15,1136.46a9.5,9.5,0,1,0-12.15-5.74,9.5,9.5,0,0,0,12.15,5.74h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2451.38,527a13.5,13.5,0,1,0-17.3-8.21h0a13.51,13.51,0,0,0,17.25,8.17",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2320.18,557.06a6.06,6.06,0,1,0,7.72,3.72h0a6.05,6.05,0,0,0-7.72-3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2298.18,1114.06a6.06,6.06,0,1,0,7.72,3.72h0a6.05,6.05,0,0,0-7.72-3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2346.18,1201.06a6.06,6.06,0,1,0,7.72,3.72h0a6.05,6.05,0,0,0-7.72-3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2335.18,1512.06a6.06,6.06,0,1,0,7.72,3.72h0a6.05,6.05,0,0,0-7.72-3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2454.53,813.78a12,12,0,1,0-15.34-7.26h0a12,12,0,0,0,15.34,7.26h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2332.53,372.78a12,12,0,1,0-15.34-7.26h0a12,12,0,0,0,15.34,7.26h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2285.53,810.78a12,12,0,1,0-15.34-7.26h0a12,12,0,0,0,15.34,7.26h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2343.53,1389.78a12,12,0,1,0-15.34-7.26h0a12,12,0,0,0,15.34,7.26h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1280.68,670.5a13.5,13.5,0,1,0-8.21,17.3h0a13.49,13.49,0,0,0,8.17-17.25",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1096.75,530.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1310.75,801.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1126.47,789.35a12,12,0,1,0-7.26,15.34h0a12,12,0,0,0,7.26-15.34h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1140.47,723.33a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1205.9,580.65a8,8,0,1,0-10.25-4.85h0a8,8,0,0,0,10.22,4.86h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1054.71,620a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1336.34,675.17a12.5,12.5,0,1,0,16,7.56h0a12.5,12.5,0,0,0-16-7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1380.74,590.06a8.37,8.37,0,1,0,10.71,5.06h0a8.37,8.37,0,0,0-10.71-5.06h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1463.34,694.17a12.5,12.5,0,1,0,16,7.56h0a12.5,12.5,0,0,0-16-7.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1273.53,551.78a12,12,0,1,0-15.34-7.26h0a12,12,0,0,0,15.34,7.26h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M548.47,1317.4a9.5,9.5,0,1,0,5.77-12.14h0a9.5,9.5,0,0,0-5.76,12.13",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M892.86,1624.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M786.75,1605.14a8.37,8.37,0,1,0,5.06-10.71h0a8.38,8.38,0,0,0-5.06,10.71h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M175.75,1463.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M53.75,517.7A6.07,6.07,0,1,0,57.48,510h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M367.47,1615.35a12,12,0,1,0-7.26,15.34h0a12,12,0,0,0,7.26-15.34h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1104.75,1632.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M955.75,1708.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M324.75,1722.7a6.06,6.06,0,1,0,3.73-7.72h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1626.37,829.17a7.73,7.73,0,1,0-4.7,9.88h0a7.73,7.73,0,0,0,4.71-9.86h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1391.36,883.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1015.36,893.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1208.25,869.7A6.06,6.06,0,1,0,1212,862h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M925.25,971.7A6.06,6.06,0,1,0,929,964h0a6.06,6.06,0,0,0-3.7,7.72",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1518.21,894a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1439,727.07a12.5,12.5,0,1,0-7.56,16h0a12.51,12.51,0,0,0,7.56-16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1199.85,790.2a12,12,0,1,0-15.34-7.26h0a12,12,0,0,0,15.34,7.26h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1548.5,598.48a6.06,6.06,0,1,0,7.72,3.72h0a6.05,6.05,0,0,0-7.72-3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1411.9,1595.65a8,8,0,1,0-10.25-4.85h0a8,8,0,0,0,10.22,4.86h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1941.9,1709.65a8,8,0,1,0-10.25-4.85h0a8,8,0,0,0,10.22,4.86h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1666.9,1718.65a8,8,0,1,0-10.25-4.85h0a8,8,0,0,0,10.22,4.86h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M47.71,1561a8,8,0,1,0-10.24-4.85h0A8,8,0,0,0,47.69,1561h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1274.53,1646.78a12,12,0,1,0-15.34-7.26h0a12,12,0,0,0,15.34,7.26h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2616.71,1249.69a8.5,8.5,0,1,0-10.87-5.15,8.5,8.5,0,0,0,10.87,5.15h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2503.59,1107a12,12,0,1,0-15.35-7.27,12,12,0,0,0,15.35,7.27h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1936.85,1610a8,8,0,1,0,10.24,4.85h0a8,8,0,0,0-10.22-4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1589.85,1588.42a13.5,13.5,0,1,0,17.26,8.18h0a13.49,13.49,0,0,0-17.23-8.19h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1777.4,1619a9.5,9.5,0,1,0,12.15,5.74,9.51,9.51,0,0,0-12.15-5.74h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1997.38,1643.43a6.06,6.06,0,1,0-7.72-3.72h0a6.06,6.06,0,0,0,7.72,3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1479.38,1648.43a6.06,6.06,0,1,0-7.72-3.72h0a6.06,6.06,0,0,0,7.72,3.7",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2512.25,935.33a12.5,12.5,0,1,0,16,7.58h0a12.51,12.51,0,0,0-16-7.57",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2385,881a12,12,0,1,0-15.34-7.27h0A12,12,0,0,0,2385,881",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2427.82,739.32a9.28,9.28,0,1,0-11.86-5.63h0a9.29,9.29,0,0,0,11.86,5.62h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2379.86,1024a12,12,0,1,0,15.34,7.26h0a12,12,0,0,0-15.34-7.26h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2398.55,386.78a8,8,0,1,0,4.85-10.24h0a8,8,0,0,0-4.85,10.21v0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2480.73,706.34a8,8,0,1,0,4.85-10.25h0a8,8,0,0,0-4.87,10.21v0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2436.68,644.5a11.67,11.67,0,1,0,7.06-14.92h0a11.66,11.66,0,0,0-7.07,14.89h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2541.23,452.21a8,8,0,1,0,4.85-10.25h0a8,8,0,0,0-4.86,10.21v0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2507,854a8,8,0,1,0,4.85-10.24h0A8,8,0,0,0,2507,854h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2319.88,963a8,8,0,1,0,4.85-10.24h0a8,8,0,0,0-4.85,10.22h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M945,598a8,8,0,1,0,4.85-10.24h0A8,8,0,0,0,945,598h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2560.88,1100a8,8,0,1,0,4.85-10.24h0a8,8,0,0,0-4.85,10.22h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2501.88,301a8,8,0,1,0,4.85-10.24h0a8,8,0,0,0-4.85,10.22h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1033.69,1014.43a9.5,9.5,0,1,0,12.15,5.75h0a9.48,9.48,0,0,0-12.1-5.76h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1051.52,1006.48a10.5,10.5,0,1,0,6.38-13.41h0a10.49,10.49,0,0,0-6.36,13.4h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1266.86,1032.54a12.5,12.5,0,1,0,7.56-16h0a12.51,12.51,0,0,0-7.56,16h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1159.71,1009a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.22,4.85h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1401.53,1005.78a12,12,0,1,0-15.34-7.26h0a12,12,0,0,0,15.34,7.26h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1467.55,1019.78a8,8,0,1,0,4.85-10.24h0a8,8,0,0,0-4.85,10.21v0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1570.88,934a8,8,0,1,0,4.85-10.24h0a8,8,0,0,0-4.85,10.22h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2391.45,264.17a8.45,8.45,0,1,0-10.78-5.15v0h0a8.44,8.44,0,0,0,10.78,5.12",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2566.26,753.61a12.5,12.5,0,1,0-16-7.57h0a12.5,12.5,0,0,0,15.94,7.59l.06,0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M1664.26,649.61a12.5,12.5,0,1,0-16-7.57h0a12.5,12.5,0,0,0,15.94,7.59l.06,0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2570.64,632.06a7.49,7.49,0,0,0,4.55-9.58h0a7.49,7.49,0,0,0-9.59-4.53h0a7.49,7.49,0,0,0-4.54,9.57h0a7.49,7.49,0,0,0,9.56,4.56h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2574.81,701.72a10,10,0,1,0-12.78-6.06h0a10,10,0,0,0,12.78,6.06h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2503.53,176.78a12,12,0,1,0-15.34-7.26h0a12,12,0,0,0,15.34,7.26h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2476.82,102.32A9.28,9.28,0,1,0,2465,96.69h0a9.29,9.29,0,0,0,11.86,5.62h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2514.73,40.34a8,8,0,1,0,4.85-10.25h0a8,8,0,0,0-4.87,10.21v0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2556,217a8,8,0,1,0,4.85-10.24h0A8,8,0,0,0,2556,217h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}}),l.a.createElement("path",{d:"M2585.26,100.61a12.5,12.5,0,1,0-16-7.57h0a12.5,12.5,0,0,0,15.94,7.59l.06,0h0",fill:"#30b4ad",style:{opacity:1,visibility:"inherit"}})))};var Vn=a(29),qn=function(e){var t=e.logindata,a=e.handleLogin,n=e.setPassword,r=e.setUsername,i=e.setRememberme,c=e.rememberme;e.variant;return(l.a.createElement(U.a,{onSubmit:a},l.a.createElement(U.a.Group,{controlId:"Username"},l.a.createElement(St.a,null,l.a.createElement(St.a.Prepend,null,l.a.createElement(St.a.Text,{id:"prepend-email"},l.a.createElement("i",{className:"fa fa-envelope"}))),l.a.createElement(U.a.Control,{type:"email",name:"Username",placeholder:"Enter email",value:t.username,onChange:function(e){return r(e.target.value)},required:!0}))),l.a.createElement(U.a.Group,{controlId:"Password"},l.a.createElement(St.a,null,l.a.createElement(St.a.Prepend,null,l.a.createElement(St.a.Text,{id:"pre-password"},"\xa0\xa0 ",l.a.createElement("i",{className:"fa fa-lock"}))),l.a.createElement(U.a.Control,{type:"password",name:"Password",placeholder:"**********",value:t.password,onChange:function(e){return n(e.target.value)},required:!0}))),l.a.createElement("div",{className:"form-group"},l.a.createElement("div",{className:"form-check"},l.a.createElement(U.a.Check,{label:" Remember me",onChange:function(e){i(e.target.checked),!1===e.target.checked&&Vn.remove("remember")},checked:c}))),l.a.createElement("div",{className:"form-footer"},l.a.createElement(x.a,{className:"btn btn-primary btn-lg pull-right btn btn-primary",type:"submit"},l.a.createElement("i",{className:"fa fa-key"})," Login"),l.a.createElement(S.a,{to:"/Passwordreset",className:"forgotten-password-link",type:"button"},"Forgot Password?"))))},Bn=a(14),Zn=function(e){e.props;var t=e.show,r=e.setLoginShow,i=(e.setSignupShow,e.setErrorShow),c=e.setErrors,s=Object(n.useState)(""),o=Object(h.a)(s,2),m=o[0],d=o[1],u=Object(n.useState)(""),E=Object(h.a)(u,2),f=E[0],p=E[1],b=Object(n.useState)(!1),v=Object(h.a)(b,2),y=v[0],g=v[1],O=k().setAuthTokens,_=ve();return Object(n.useEffect)((function(){document.title="Trip Medical Database",document.body.classList.remove("homepage"),De(d,p,g)}),[]),l.a.createElement(l.a.Fragment,null,l.a.createElement(H.a,{size:"lg",id:"login-mdl",show:t,onHide:function(e){return r(!1)},onShow:function(e){var t=document.getElementById("login-mdl");t&&t.classList.add("modal-dialog--login")},animation:!1,centered:!0},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement("div",{className:"logo"},l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 165.17 104.41"},l.a.createElement("g",null,l.a.createElement("path",{d:"M59.36,9.66V6.2Q59.36.62,56,.62H3.34Q0,.62,0,6.2V9.66q0,5.56,3.34,5.57H21.05v61.9H38.31V15.23H56q3.34,0,3.34-5.57M78.13,21.79q-7.47,0-12.14,8.48a17,17,0,0,1-.39-1.79,17.79,17.79,0,0,0-.5-2.06c-.15-.41-.38-.93-.67-1.56a3.23,3.23,0,0,0-1.17-1.4A6.56,6.56,0,0,0,60.31,23a38.78,38.78,0,0,0-6.74.89q-4.51.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71V77.13H66.88V41.87c2.23-3.72,5.19-5.58,8.91-5.58a11.35,11.35,0,0,1,2.89.45,11.28,11.28,0,0,0,2.34.44c1,0,1.79-1.17,2.45-3.51a22.09,22.09,0,0,0,1-5.86,6.75,6.75,0,0,0-1.4-4.18c-.93-1.22-2.58-1.84-5-1.84m81.25,8q-5.79-8-15-8a17.23,17.23,0,0,0-9,2.34,15.67,15.67,0,0,0-6,6,16.76,16.76,0,0,1-.39-1.68,19.62,19.62,0,0,0-.5-2,14.55,14.55,0,0,0-.67-1.62,3.23,3.23,0,0,0-1.17-1.4,6.53,6.53,0,0,0-3-.44,38.78,38.78,0,0,0-6.74.89q-4.52.9-4.51,2.68a32.78,32.78,0,0,0,.67,4,69.65,69.65,0,0,1,.67,11.71V99.49h16.48v-21a18.85,18.85,0,0,0,11.36,3.46q11.13,0,17.32-8.09t6.18-22.08q0-14-5.79-22M138.11,68.85a15.68,15.68,0,0,1-7.8-2.12V41.87q3.78-6.59,9.13-6.58,9,0,9,16.78T138.11,68.85M99.08,0H96c-4.46,0-6.68,1.19-6.68,3.57v8.11h16.48V3.57Q105.76,0,99.08,0m0,22.85H96c-4.46,0-6.68,1.19-6.68,3.57V77.13h16.48V26.42q0-3.57-6.68-3.57",fill:"#533764",fillRule:"evenodd"}),l.a.createElement("path",{d:"M37.33,77.53v.58Q37.33,82,31,82H27.26q-6.36,0-6.36-3.9v-.58Z",fill:"#63c608",fillRule:"evenodd"}),l.a.createElement("path",{d:"M67.19,77.53v.58q0,3.9-6.66,3.9h-3.1q-6.66,0-6.66-3.9v-.58Z",fill:"#0e6cbb",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,77.53v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#00a89d",fillRule:"evenodd"}),l.a.createElement("path",{d:"M130.7,100.06v.9q0,3.45-6.55,3.45h-3.06q-6.56,0-6.55-3.45v-.9Z",fill:"#eec82f",fillRule:"evenodd"}),l.a.createElement("path",{d:"M106,11.83v.92c0,2.38-2.22,3.56-6.65,3.56H96.25c-4.44,0-6.66-1.18-6.66-3.56v-.92Z",fill:"#ba390d",fillRule:"evenodd"}))))),l.a.createElement(H.a.Body,null,l.a.createElement("button",{"aria-label":"Close",className:"close","data-dismiss":"modal",type:"button",onClick:function(e){return r(!1)}},l.a.createElement("span",{"aria-hidden":"true"},"\xd7")),l.a.createElement("h2",{className:"modal-title",id:"loginModalLabel"},"Login to your account"),l.a.createElement(qn,{logindata:{username:m,password:f},handleLogin:function(e){!function(e,t,a){var n;e?(n=Pe.sign({username:t,password:a},"9lsoo3-4924-4kkkka-llikh2",{expiresIn:"300d"}),je.set("remember",n)):je.remove("remember",null)}(y,m,f),Bn.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Auth/Login":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Auth/Login",{username:m,password:f,credentials:"include"},{withCredentials:!0}).then((function(e){e?C.default.isUndefined(e.status)||200!==e.status?(c({message:"Invalid Username or Password"}),i(!0)):(O(e.data),r(!1),window.location.href="/Home"):(c({message:"Invalid Username or Password"}),i(!0))})).catch((function(e){c({message:"Invalid Username or Password"}),i(!0)})),e.preventDefault()},setUsername:d,setPassword:p,setRememberme:g,rememberme:y,mdl:!0}),l.a.createElement("hr",null),l.a.createElement("h5",null," ","or"," ",l.a.createElement("img",{style:{overflow:"hidden",maxHeight:"70px",maxWidth:"120px",align:"right"},src:a(303)})),_.chkInstitution.institution_name?l.a.createElement("div",null," ",l.a.createElement("div",{className:"mt-2 alert alert-secondary",role:"alert"},_.chkInstitution.institution_name," ",l.a.createElement("a",{className:"alert-link",href:"/Logout"},"Logout?"))):l.a.createElement("div",{className:"form-footer"},l.a.createElement(S.a,{className:"btn btn-primary btn-lg pull-right btn btn-primary",to:"/Login"},l.a.createElement("i",{className:"fa fa-university"})," Institution Login")))))},Fn=(a(14),a(29),function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(!1),u=Object(h.a)(d,2),E=(u[0],u[1],Object(n.useState)(!1)),f=Object(h.a)(E,2),p=(f[0],f[1],Object(n.useState)(!1)),b=Object(h.a)(p,2),v=b[0],y=b[1],g=Object(n.useState)(!1),O=Object(h.a)(g,2),_=O[0],N=O[1],w=Object(n.useState)(!0),k=Object(h.a)(w,2),T=k[0],j=k[1],P=ve();var A=!0;Object(n.useEffect)((function(){return A&&_n.isMobile&&document.body.classList.add("hide-account-btn"),function(){A=!1}}),[]),e.isPro?(document.body.classList.remove("free-user"),document.body.classList.add("pro-user")):(document.body.classList.remove("pro-user"),document.body.classList.add("free-user"));var D=C.default.isUndefined(window.location.pathname)?"":window.location.pathname;return l.a.createElement("nav",{className:"navbar navbar-expand-lg mb-0"},l.a.createElement("div",{id:"navbar-bg",className:"navbar--bg",style:{opacity:"0.3"}},l.a.createElement(Kn,null)),l.a.createElement(Zn,{props:e,setLoginShow:i,setSignupShow:m,setErrorShow:N,setErrors:y,show:r}),l.a.createElement(ft,{props:e,setLoginShow:i,setSignupShow:m,setErrorShow:N,setErrors:y,show:o}),l.a.createElement(se,{error:v,setErrorShow:N,show:_}),l.a.createElement("div",{className:"navbar--brand-and-navigation"},l.a.createElement(S.a,{className:"navbar--brand",to:"/Home"},l.a.createElement("div",{className:"navbar--brand__free"},l.a.createElement(Hn,null)),l.a.createElement("div",{className:"navbar--brand__pro"},l.a.createElement(Wn,null))),l.a.createElement("div",{className:"navbar--navigation"},l.a.createElement("div",{className:"mobile_navigation_wrapper"},l.a.createElement("div",{className:"mobile_navigation mobile_navigation__admin"},l.a.createElement("ul",{className:"navbar-nav navbar-nav__admin-nav navbar-nav__my_account"},l.a.createElement("li",{className:"nav-item"},l.a.createElement(S.a,{className:"/Profile"==D?"nav-link btn btn-admin btn-primary":"nav-link btn btn-admin",title:"Profile",to:"/Profile"},l.a.createElement("i",{className:"fas fa-user-circle"}),"\xa0 My Account")))),l.a.createElement("div",{className:"mobile_navigation mobile_navigation__site_nav"},l.a.createElement("div",{className:"mobile-menu-toggle"},l.a.createElement("button",{className:"navbar-btn js-menu-toggle btn btn-primary navbar-dark",type:"button","data-toggle":"",onClick:function(e){j(!T),document.body.classList.contains("admin-page")?document.body.classList.remove("admin-page"):document.body.classList.add("admin-page"),document.body.classList.contains("mobile-off-canvas--is-visible")?document.body.classList.remove("mobile-off-canvas--is-visible"):document.body.classList.add("mobile-off-canvas--is-visible")}},l.a.createElement("span",{className:"navbar-toggler-icon"}),"Menu")))),l.a.createElement("div",{className:"desktop_navigation desktop_navigation__site-nav"},l.a.createElement("ul",{className:"navbar-nav navbar-nav__main-nav"},l.a.createElement("li",{className:"/About"==D?"nav-item active":"nav-item"},l.a.createElement(S.a,{className:"/About"==D?"nav-link btn btn-primary":"nav-link",to:"/About",title:"About"},"About")),l.a.createElement("li",{className:"nav-item"},l.a.createElement("a",{className:"nav-link",href:"https://blog.tripdatabase.com/",target:"_blank",rel:"noopener noreferrer",title:"Blog"},"Blog ",l.a.createElement("i",{className:"fa fa-external-link-alt"}))),l.a.createElement("li",{className:"nav-item"},l.a.createElement(S.a,{className:"nav-link pro-button",to:"/Why",title:"Why go Pro"},"Why Go Pro?")))),l.a.createElement("div",{className:"desktop_navigation desktop_navigation__admin"},l.a.createElement("div",{className:"navbar-divider"}),e.isLoggedin?l.a.createElement("ul",{className:"navbar-nav navbar-nav__admin-nav navbar-nav__my_account"},l.a.createElement("li",{className:"nav-item"},l.a.createElement(S.a,{className:"/Profile"==D?"nav-link btn btn-admin btn-primary":"nav-link btn btn-admin",to:"/Profile",title:"My Account"},l.a.createElement("i",{className:"fas fa-user-circle"}),"\xa0 My Account"))):l.a.createElement("ul",{className:"navbar-nav navbar-nav__admin-nav navbar-nav__sign-up-and-login"},l.a.createElement("li",{className:"nav-item"},l.a.createElement(S.a,{id:"nav-signup",className:"/Registration"==D?"nav-link btn btn-primary":"nav-link",to:"/Registration",title:"Sign up",onClick:function(e){y(""),m(!o),i(!1),e.preventDefault()}},"Sign Up")),!0===P.chkInstitution.oa_login?l.a.createElement("li",{className:"nav-item"},l.a.createElement(S.a,{id:"nav-login",className:"/Login"==D||"/Home"==D?"nav-link btn btn-primary":"nav-link",to:"/Login",title:"Login",onClick:function(e){y(""),i(!r),m(!1),e.preventDefault()}},"Trip Login")):l.a.createElement("li",{className:"nav-item"},l.a.createElement(S.a,{id:"nav-login",className:"/Login"==D||"/Home"==D?"nav-link btn btn-primary":"nav-link",to:"/Login",title:"Login",onClick:function(e){y(""),i(!r),m(!1),e.preventDefault()}},"Login")))))),l.a.createElement("div",{id:"navbar--search",className:"navbar--search"},l.a.createElement("div",{className:"navbar--search--homepage-intro"},l.a.createElement("h1",null,l.a.createElement("span",{className:"bold"},"Trip medical database"),l.a.createElement("br",null),"A smart, fast tool to find high quality clinical research evidence")),l.a.createElement(Lt,Object.assign({},e,{isPro:!C.default.isUndefined(e.isPro)&&e.isPro}))))}),Gn=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(!1),u=Object(h.a)(d,2),E=u[0],f=u[1],p=Object(n.useState)(!1),b=Object(h.a)(p,2),v=b[0],y=b[1],g=Object(n.useState)(!1),O=Object(h.a)(g,2),_=O[0],N=O[1],w=Object(n.useState)(!1),T=Object(h.a)(w,2),j=T[0],P=T[1],A=k(),D=(A.setAuthTokens,A.authTokens),R=function(){document.body.classList.remove("admin-page"),document.body.classList.remove("mobile-off-canvas--is-visible")};Object(n.useEffect)((function(){var e=function(e){var t=!1,a=!1;return e&&(C.default.findWhere(e.roles,{role:"Pro"})&&(t=!0),C.default.isUndefined(e.loggedin)||(a=e.loggedin)),{chkPro:t,chkLogin:a}}(D);m(e.chkPro),i(e.chkLogin)}),[r,o]);var U=C.default.isUndefined(window.location.pathname)?"":window.location.pathname;return l.a.createElement("div",{className:"mobile-off-canvas-menu"},l.a.createElement("div",{className:"mobile-off-canvas-menu--dismiss-area"},l.a.createElement("a",{className:"js-dismiss-mobile-off-canvas-menu",href:"#",title:"Close"})),l.a.createElement(Zn,{props:e,setLoginShow:f,setSignupShow:P,setErrorShow:N,setErrors:y,show:E}),l.a.createElement(ft,{props:e,setLoginShow:f,setSignupShow:P,setErrorShow:N,setErrors:y,show:j}),l.a.createElement(se,{error:v,setErrorShow:N,show:_}),l.a.createElement("div",{className:"mobile-off-canvas-menu--dismiss"},l.a.createElement("a",{className:"js-dismiss-mobile-off-canvas-menu",onClick:function(e){R(),e.preventDefault()},href:"#"},l.a.createElement("i",{className:"fa fa-times"}))),l.a.createElement("div",{className:"mobile-off-canvas-menu--content"},l.a.createElement("ul",{className:""},l.a.createElement("li",{className:"nav-item active"},l.a.createElement(S.a,{className:"/About"===U?"nav-link btn btn-primary":"nav-link",to:"/About",title:"About us",onClick:function(e){R()}},"About")),l.a.createElement("li",{className:"nav-item"},l.a.createElement("a",{className:"nav-link",href:"https://blog.tripdatabase.com/",target:"_blank",rel:"no referrer",title:"Blog",onClick:function(e){R()}},"Blog ",l.a.createElement("i",{className:"fa fa-external-link-alt"}))),l.a.createElement("li",{className:"nav-item"},l.a.createElement(S.a,{className:"nav-link pro-button",to:"/Why",title:"Why go Pro",onClick:function(e){R()}},"Why Go Pro?"))),l.a.createElement("hr",null),r?l.a.createElement("ul",{className:""},l.a.createElement("li",{className:"nav-item"},l.a.createElement(S.a,{className:"/Profile"===U?"nav-link btn btn-primary":"nav-link",to:"/Profile",title:"My Account",onClick:function(e){R()}},l.a.createElement("i",{className:"fas fa-user-circle"}),"\xa0 My Account")),l.a.createElement("li",{className:"nav-item"},l.a.createElement("a",{className:"nav-link",href:"/Logout?remember=false",title:"Logout",onClick:function(e){R()}},l.a.createElement("i",{className:"fa fa-power-off feather"})," Logout"))):l.a.createElement("ul",{className:""},l.a.createElement("li",{className:"nav-item"},l.a.createElement(S.a,{className:"/Login"===U||"/Home"===U?"nav-link btn btn-primary":"nav-link",to:"/Login",title:"Login",onClick:function(e){y(""),f(!E),P(!1),R(),e.preventDefault()}},"Login")),l.a.createElement("li",{className:"nav-item"},l.a.createElement(S.a,{className:"/Registration"===U?"nav-link btn btn-primary":"nav-link",onClick:function(e){y(""),P(!j),f(!1),R(),e.preventDefault()},to:"/Registration",title:"Sign up"},"Sign Up")))))},Yn=function(){return l.a.createElement("svg",{id:"lines_3_new",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1815 579"},l.a.createElement("g",{opacity:"0.4"},l.a.createElement("g",null,l.a.createElement("path",{d:"M1556.38,91.86a10,10,0,1,0-6.06,12.78,10,10,0,0,0,6.06-12.78h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1664.89,279.82a6.5,6.5,0,1,0-4,8.31,6.51,6.51,0,0,0,4-8.31",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1736.84,451.63a10,10,0,1,0-6.69,12.47l.47-.16a9.77,9.77,0,0,0,6.22-12.31",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1764.62,359a9.5,9.5,0,1,0-5.76,12.15,9.5,9.5,0,0,0,5.76-12.15",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1704,545.6a9.5,9.5,0,1,0,5.76-12.13h0A9.5,9.5,0,0,0,1704,545.6",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1339.73,26.4a11.5,11.5,0,1,0,7-14.7h0a11.5,11.5,0,0,0-7,14.69",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1574.18,195.42a7.5,7.5,0,1,0,4.56-9.59,7.51,7.51,0,0,0-4.56,9.59",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1619.63,212.64a8,8,0,1,0,4.91-10.19h0a8,8,0,0,0-4.88,10.18",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1624.29,484.38a13.5,13.5,0,1,0-8.18,17.25,13.49,13.49,0,0,0,8.18-17.25v0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1585.52,331a12.5,12.5,0,1,0-7.56,16h0a12.51,12.51,0,0,0,7.56-16",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1565.68,584.93a9.5,9.5,0,1,0-5.74,12.15,9.5,9.5,0,0,0,5.74-12.15v0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M956.21,513.7A13.5,13.5,0,1,0,948,531h0a13.5,13.5,0,0,0,8.17-17.25",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1377.15,44.89a10.5,10.5,0,1,0,6.36-13.42h0a10.5,10.5,0,0,0-6.36,13.42",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1477.9,202.17a11.5,11.5,0,1,0,7-14.69h0a11.49,11.49,0,0,0-7,14.68h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1287,128.56a8,8,0,1,0-4.85,10.22h0a8,8,0,0,0,4.85-10.22",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1525.68,211.13a10,10,0,1,0-6,12.78h0a10,10,0,0,0,6-12.78",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1800.7,226.7a8,8,0,1,0-4.9,10.2h0a8,8,0,0,0,4.89-10.19",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1718.63,114.84a6.06,6.06,0,1,0-3.72,7.72h0a6.06,6.06,0,0,0,3.7-7.72",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1192.81,14.35a6.05,6.05,0,1,0-3.71,7.72h0a6,6,0,0,0,3.7-7.71",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1245.13,61.75a12,12,0,1,0-7.26,15.34h0a12,12,0,0,0,7.26-15.34",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1243,510.55a12,12,0,1,0-7.26,15.34h0a12,12,0,0,0,7.26-15.34",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1454.87,339.93a8.5,8.5,0,1,0-5.15,10.87,8.5,8.5,0,0,0,5.15-10.87",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1559.91,462.37a8.5,8.5,0,1,0-5.15,10.87,8.5,8.5,0,0,0,5.15-10.87",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1536.17,461.49a12,12,0,1,0-7.27,15.35,12,12,0,0,0,7.27-15.35",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1364.55,452.83a12.5,12.5,0,1,0,7.58-16h0a12.52,12.52,0,0,0-7.57,16",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1443.11,262.37a11.5,11.5,0,1,0,7-14.7h0a11.49,11.49,0,0,0-7,14.68v0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1376.84,359.29a8.5,8.5,0,1,0-5.16,10.87,8.51,8.51,0,0,0,5.16-10.87h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1804.52,33.08a8.5,8.5,0,1,0-10.87-5.14,8.49,8.49,0,0,0,10.87,5.14h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1321.65,142.19a9.5,9.5,0,1,0-5.75,12.15,9.49,9.49,0,0,0,5.75-12.15h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1160.26,139.3a13.5,13.5,0,1,0-8.17,17.25h0a13.5,13.5,0,0,0,8.17-17.25",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1262.75,273.13a11.5,11.5,0,1,0-14.7-7h0a11.5,11.5,0,0,0,14.69,7",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1175.64,313.25a11.5,11.5,0,1,0-7,14.71,11.5,11.5,0,0,0,7-14.71v0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1310.18,580.06a12,12,0,1,0-7.27,15.34h0a12,12,0,0,0,7.27-15.33",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1168.54,537.26a9.28,9.28,0,1,0-5.63,11.86h0a9.28,9.28,0,0,0,5.62-11.86",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1453.22,585.22a12,12,0,1,0,7.26-15.34h0a12,12,0,0,0-7.26,15.34",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1730.88,149.56a8.5,8.5,0,1,0-5.15,10.87,8.5,8.5,0,0,0,5.15-10.87h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1787.57,22.65a9.5,9.5,0,1,0-5.76,12.15,9.5,9.5,0,0,0,5.76-12.15v0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1083.69,63.11a9.5,9.5,0,1,0-12.14-5.75h0a9.48,9.48,0,0,0,12.12,5.75h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M816,566.53a8,8,0,1,0-10.24-4.85h0A8,8,0,0,0,816,566.53h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1135.56,484.35a8,8,0,1,0-10.25-4.85h0a8,8,0,0,0,10.24,4.86h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1502.93,41.59a8,8,0,1,0-10.25-4.85h0a8,8,0,0,0,10.23,4.85h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1071.38,556.65a8,8,0,1,0-10.25-4.85h0a8,8,0,0,0,10.23,4.85h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1073.72,528.4a11.67,11.67,0,1,0-14.92-7.06h0a11.66,11.66,0,0,0,14.89,7.07h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M881.43,423.85A8,8,0,1,0,871.18,419h0a8,8,0,0,0,10.23,4.86h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1283.24,458.07a8,8,0,1,0-10.24-4.85h0a8,8,0,0,0,10.23,4.85h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1616.52,51.43a8,8,0,1,0-10.25-4.85h0a8,8,0,0,0,10.23,4.85h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1064.71,160.15a8,8,0,1,0-4.91,10.19h0a8,8,0,0,0,4.88-10.18",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1065.86,71.06a10.5,10.5,0,1,0-6.37,13.41h0a10.49,10.49,0,0,0,6.36-13.41",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M882.35,210.14A10.5,10.5,0,1,0,876,223.56h0a10.5,10.5,0,0,0,6.37-13.41",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M955.91,77.48a8.45,8.45,0,1,0-5.13,10.79h0a8.44,8.44,0,0,0,5.12-10.78",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M693.39,573.63a8.45,8.45,0,1,0-5.13,10.78h0a8.44,8.44,0,0,0,5.12-10.78",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1182.83,398.82a12.5,12.5,0,1,0-7.57,16h0a12.48,12.48,0,0,0,7.57-16h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1061.28,394.44a7.5,7.5,0,0,0-9.58-4.55h0a7.5,7.5,0,0,0-4.53,9.59h0a7.49,7.49,0,0,0,9.57,4.54h0a7.49,7.49,0,0,0,4.56-9.56h0",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1130.94,390.27a10,10,0,1,0-6.06,12.78h0a10,10,0,0,0,6.06-12.78",fill:"#8a5ea5"}),l.a.createElement("path",{d:"M1149.73,321.14a10.5,10.5,0,1,0-6.36,13.42h0a10.51,10.51,0,0,0,6.36-13.42",fill:"#8a5ea5"})),l.a.createElement("polyline",{points:"1164.82 317.13 1258.89 262.3 1147.55 143.84 1057.16 162.79 1139.84 324.67 1147.55 139.25 1279.5 130.34 1258.89 266.98 1368.83 362.15 1139.84 328.63 1171.06 403.02 1121.52 393.63 1134.04 477.54 1280.55 450.52 1054.22 396.95 1069.79 518.24 1231.73 514.59 1159.79 541.08 1171.06 408.29 1374.48 448.63 1446.87 345.02 1453.94 258.5 1312.71 143.84 1488.72 198.31 1516.26 214.49 1524.87 465.54 1573.75 335.18 1551.9 465.24 1613.91 488.92 1556.96 588.14 1498.28 607.28 1464.52 581.18 1554.94 584.09 1635.18 617.5 1712.91 542.42 1727.3 453.53 1755.67 362.15 1656.48 282 1627.18 210 1722.41 152.42 1712.91 116.85 1581.25 192.9 1546.96 95.22 1793.15 229.35 1856.5 145.4 1921.15 456.73 1866.66 510.41 1955.44 551.92 1805.65 625.5 1708.35 540.11 1611.58 483.36 1722.41 454.52 1577.55 335.18 1298.88 584.09 1390.12 635.93 1467.59 576.47 1231.73 510.41 1187.1 605.81 1068.68 549.1 870.71 601.03 943.5 518.24 815.37 558.98 682.8 576.46 878.73 419.06 870.71 213.66 1055.97 74.58 946.17 80.31 1080.49 53.78 1233.83 64.08 1187.1 16.35 995.84 -45.91 1350.56 22.54 1387.04 42.06 1308.86 148.15 1500.23 35.86 1613.82 44.66 1648.98 -28.39 1778.62 25.08 1799.25 25.08 1862.56 -10.39",fill:"none",stroke:"#8a5ea5",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"873.45 213.66 1139.84 325.73 1054.22 396.95 869.68 214.66 946.83 81.64 993.83 -45.91",fill:"none",stroke:"#8a5ea5",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"1297.78 584.09 1280.55 450.52 1231.73 514.59 1373.82 450.52 1283.59 450.52 1367.79 361.25 1448.97 342.79 1255.91 264.03 1171.06 403.02",fill:"none",stroke:"#8a5ea5",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"1611.58 488.92 1754.69 362.15 1551.9 465.24 1556.74 588.14 1523.68 465.54 1464.52 579 1376.33 448.63 1527.01 465.54",fill:"none",stroke:"#8a5ea5",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"995.84 -45.91 1080.49 53.78 1055.97 74.58 1147.27 145.87 1233.83 64.08 1279.5 130.34 1350.56 22.54 1308.86 148.15 1258.89 262.3 1452.52 257.35 1488.72 198.31 1546.96 95.22 1500.23 35.86 1648.98 -28.39 1712.91 116.85 1550.76 97.29 1627.18 210 1582.21 194.27 1573.75 334.29 1515.26 214.49 1658.77 282 1573.08 339.17",fill:"none",stroke:"#8a5ea5",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"943.5 518.24 878.59 415.53 1054.22 396.95 947.94 517.41 1069.79 518.24 1068.68 549.1 1159.79 541.08 1073.42 518.24 1121.52 393.63",fill:"none",stroke:"#8a5ea5",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"873.45 213.66 1057.16 162.79 1055.97 74.58",fill:"none",stroke:"#8a5ea5",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"1080.49 53.78 1187.1 16.35 1350.56 22.54 1500.23 35.86 1387.04 42.06 1488.72 198.31",fill:"none",stroke:"#8a5ea5",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"1546.96 95.22 1613.82 44.66 1712.91 116.85 1778.62 25.08 1793.15 229.35 1755.67 362.15 1920.69 454.52 1727.3 453.53 1866.66 510.41",fill:"none",stroke:"#8a5ea5",strokeMiterlimit:"10"}),l.a.createElement("polyline",{points:"1139.84 324.67 1164.82 317.13 1147.55 143.84",fill:"none",stroke:"#8a5ea5",strokeMiterlimit:"10"}),l.a.createElement("line",{x1:"1279.5",y1:"130.34",x2:"1312.71",y2:"143.84",fill:"none",stroke:"#8a5ea5",strokeMiterlimit:"10"}),l.a.createElement("line",{x1:"1452.52",y1:"257.35",x2:"1573.75",y2:"334.29",fill:"none",stroke:"#8a5ea5",strokeMiterlimit:"10"})))},zn=function(){return l.a.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 156.86 104.44"},l.a.createElement("g",null,l.a.createElement("path",{d:"M23.43,0A23.42,23.42,0,0,0,0,23.4V46.8A23.41,23.41,0,0,0,23.43,70.2H99.6A23.41,23.41,0,0,0,123,46.8V23.4A23.42,23.42,0,0,0,99.6,0Z",fill:"#ffe300",fillRule:"evenodd"}),l.a.createElement("g",null,l.a.createElement("path",{d:"M40,14.19q5.84,0,8.84,3t3,8.42q0,5.41-3,8.44c-2,2-5,3-8.84,3H28.18V52.84H23.05V14.19ZM38.24,32.7q4.38.06,6.41-1.79a6.78,6.78,0,0,0,2-5.3,6.73,6.73,0,0,0-2-5.28q-2-1.81-6.41-1.81H28.18V32.7Z",fillRule:"evenodd"}),l.a.createElement("path",{d:"M61.49,24.85v5.9h.11a12.33,12.33,0,0,1,4.11-5,10.26,10.26,0,0,1,6.16-1.52v4.87a13,13,0,0,0-4.7.76A7.48,7.48,0,0,0,64,32.05,9.21,9.21,0,0,0,62.3,35.6a19.14,19.14,0,0,0-.54,4.79V52.84h-4.6v-28Z",fillRule:"evenodd"}),l.a.createElement("path",{d:"M73.71,33.11a13,13,0,0,1,2.59-4.66,12.3,12.3,0,0,1,4.27-3.11,15.61,15.61,0,0,1,11.71,0,12.19,12.19,0,0,1,4.24,3.11,13,13,0,0,1,2.6,4.66,19.65,19.65,0,0,1,0,11.5,13.08,13.08,0,0,1-2.6,4.63,11.75,11.75,0,0,1-4.24,3.08,16,16,0,0,1-11.71,0,11.86,11.86,0,0,1-4.27-3.08,13.06,13.06,0,0,1-2.59-4.63,19.44,19.44,0,0,1,0-11.5m4.67,10.28a9.59,9.59,0,0,0,1.87,3.3,7.89,7.89,0,0,0,2.78,2,8.4,8.4,0,0,0,6.76,0,7.93,7.93,0,0,0,2.79-2,9.42,9.42,0,0,0,1.86-3.3,14,14,0,0,0,.68-4.52,14,14,0,0,0-.68-4.52A9.75,9.75,0,0,0,92.58,31,8,8,0,0,0,89.79,29,8.51,8.51,0,0,0,83,29,8,8,0,0,0,80.25,31a9.93,9.93,0,0,0-1.87,3.33,14,14,0,0,0-.67,4.52,14,14,0,0,0,.67,4.52",fillRule:"evenodd"})),l.a.createElement("path",{d:"M98.08,68.36A22.71,22.71,0,0,0,103,82.44a31,31,0,0,0,30-30.95V49.05A22.79,22.79,0,0,0,98.08,68.36Z",fill:"#ffe300",fillRule:"evenodd"}),l.a.createElement("path",{d:"M138.16,84.07a23.55,23.55,0,0,0,6.13-15.87,23.83,23.83,0,1,0-7.91,17.64l18.7,18.6,1.78-1.77Zm-17.72,5.65a21.5,21.5,0,1,1,21.62-21.5A21.57,21.57,0,0,1,120.44,89.72Z"})))},Qn=function(e){var t=e.isPro,a=Object(n.useState)(!0),r=Object(h.a)(a,2),i=r[0],c=r[1],s=ve(),o=t||s.chkPro;return l.a.createElement(l.a.Fragment,null,i&&!ta.getDismiss()&&!o&&l.a.createElement("div",{className:"advert advert__pro"},l.a.createElement("div",{className:"advert--dismiss"},l.a.createElement("a",{className:"js-dismiss",href:"#",title:"Close advertisement",onClick:function(e){c(!1),ta.setDismiss(!0),e.preventDefault()}},l.a.createElement("i",{className:"fa fa-times"}))),l.a.createElement("div",{className:"advert--content"},l.a.createElement("div",{className:"advert--pro-graphic"},l.a.createElement(zn,null)),l.a.createElement("div",{className:"advert--copy"},l.a.createElement("h2",null,"You're one step away from becoming a Pro user"),l.a.createElement("p",null,"The Trip Pro offering takes an already wonderful \u2013 and free \u2013 version of Trip and makes it even better. With more content, more functionality, no adverts and more, it really makes the Trip experience even better")),l.a.createElement("div",{className:"advert--cta"},l.a.createElement(S.a,{to:"/Pro",style:{color:"black"},className:"btn btn-warning",title:"Learn more about Pro"},"Learn more about Pro"))),l.a.createElement("div",{className:"advert--bg-graphic"},l.a.createElement(Yn,null))))},$n=a(29),Jn=a(2),Xn=function(){var e=!1,t="";return{getCookies:function(){return Jn.isUndefined($n.get("cookies_tokens"))||(t=Jn.isNull($n.get("cookies_tokens"))||""===$n.get("cookies_tokens")?null:JSON.parse($n.get("cookies_tokens"))),t&&(e=!Jn.isUndefined(t.dismiss)&&t.dismiss),e},setCookies:function(t){$n.set("cookies_tokens",JSON.stringify({dismiss:t})),e=t}}}(),el=function(e){e.isPro;var t=Object(n.useState)(!0),a=Object(h.a)(t,2),r=a[0],i=a[1];return l.a.createElement(l.a.Fragment,null,r&&!Xn.getCookies()&&l.a.createElement("div",{className:"CookieConsent"},l.a.createElement("div",{className:"type-small"},"By using this site you agree to our terms and conditions (see"," ",l.a.createElement("a",{href:"/Terms"},"'Terms of Use'"),","," ",l.a.createElement("a",{href:"/Privacy"},"'Privacy Policy'")," and"," ",l.a.createElement("a",{href:"/Acceptableuse"},"'Acceptable Use'"),"). Our site also uses cookies, both essential and non-essential (see"," ",l.a.createElement("a",{href:"/Cookies"},"Cookie Policy"),")."),l.a.createElement("div",{className:""},l.a.createElement("button",{className:"btn btn-primary type-small",id:"rcc-confirm-button","aria-label":"Accept cookies",onClick:function(e){i(!1),Xn.setCookies(!0),e.preventDefault()}},"I understand"))))},tl=a(958),al=(a(877),function(e){return l.a.createElement(j.a,{className:"ml-0 mr-1"},l.a.createElement(Ja.a,{className:"sidebar-sticky col-md-12 d-none d-md-block bg-light sidebar",activeKey:"/"},l.a.createElement(Ja.a.Item,null,l.a.createElement(Ja.a.Link,{href:"/Admin"},l.a.createElement("i",{className:"fa fa-home"})," Dashboard")),l.a.createElement(Ja.a.Item,null,l.a.createElement(Ja.a.Link,{href:"/Admin/Users",eventKey:"link-users"},l.a.createElement("i",{className:"fa fa-users"})," Users")),l.a.createElement(Ja.a.Item,null,l.a.createElement(Ja.a.Link,{href:"/Admin/Publications",eventKey:"link-publications"},l.a.createElement("i",{className:"fa fa-book"})," Publications")),l.a.createElement(Ja.a.Item,null,l.a.createElement(Ja.a.Link,{href:"/Admin/Emails",eventKey:"link-emails"},l.a.createElement("i",{className:"fa fa-envelope"})," Email Broadcast")),l.a.createElement(Ja.a.Item,null,l.a.createElement(Ja.a.Link,{href:"/Admin/Settings",eventKey:"link-settings"},l.a.createElement("i",{className:"fa fa-university"})," Institutions"))))}),nl=function(e){return Object(n.useEffect)((function(){document.title="CMS - Trip Medical Database",document.body.classList.add("admin-user")}),[]),l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(j.a,null,l.a.createElement(al,null),l.a.createElement(A.a,null,l.a.createElement(j.a,{className:"mt-2 ml-1"},l.a.createElement(tl.a,null,l.a.createElement(R.a,{style:{width:"18rem"}},l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Text,null,l.a.createElement(R.a.Img,{variant:"top",height:"240",width:"80",src:a(878)})),l.a.createElement(R.a.Link,{href:"/Admin/Users",className:"stretched-link"})),l.a.createElement(R.a.Footer,null,l.a.createElement("h5",null,l.a.createElement("i",{className:"fa fa-users fa-lg"})," Users"))),l.a.createElement(R.a,{style:{width:"18rem"}},l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Text,null,l.a.createElement(R.a.Img,{variant:"top",height:"240",width:"80",src:a(879)})),l.a.createElement(R.a.Link,{href:"/Admin/Publications",className:"stretched-link"})),l.a.createElement(R.a.Footer,null,l.a.createElement("h5",null,l.a.createElement("i",{className:"fa fa-clipboard fa-lg"})," Publications"))),l.a.createElement(R.a,{style:{width:"18rem"}},l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Text,null,l.a.createElement(R.a.Img,{variant:"top",height:"240",width:"80",src:a(880)})),l.a.createElement(R.a.Link,{href:"/Admin/Settings",className:"stretched-link"})),l.a.createElement(R.a.Footer,null,l.a.createElement("h5",null,l.a.createElement("i",{className:"fa fa-university fa-lg"})," Institutions"))),l.a.createElement(R.a,{style:{width:"18rem"}},l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Text,null,l.a.createElement(R.a.Img,{variant:"top",height:"240",width:"80",src:a(881)})),l.a.createElement(R.a.Link,{href:"/Admin/Emails",className:"stretched-link"})),l.a.createElement(R.a.Footer,null,l.a.createElement("h5",null,l.a.createElement("i",{className:"fa fa-envelope fa-lg"})," Emails"))))))))},ll=a(971),rl=function(e){var t=e.deletedata,a=e.deleteshow,n=e.setDeleteShow,r=e.handleDelete;return l.a.createElement(H.a,{show:a,onHide:function(e){return n(!1)},animation:!1},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-danger"},l.a.createElement("i",{className:"fa fa-times-circle text-danger"}),C.default.isUndefined(t.info)?"Delete":t.info)),l.a.createElement(H.a.Body,null,l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement("i",{className:"fa fa-file"})," ",C.default.isUndefined(t.info)?"Are you sure to delete ":t.info,l.a.createElement("b",null," ",C.default.isUndefined(t.description)?"":t.description," "),"?"))),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:function(e){return n(!1)}},"No"),l.a.createElement(x.a,{variant:"danger","data-value":t.id,"data-action":t.action,onClick:r},"Yes")))},il=(a(188),function(e){var t=e.data,a=e.setTitle,n=e.setRoute,r=e.setKeywords,i=e.setTopic1,c=e.setTopic2,s=e.setTopicHeading1,o=e.setTopicHeading2,m=e.setMetaname,d=e.setMetacontent,u=e.handleClose,E=e.handleUpdatePage,f=(e.handlePublish,e.show);return l.a.createElement(H.a,{show:f,onHide:u,size:"xl",animation:!1},l.a.createElement(U.a,{width:"100%"},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,null,"Modal heading")),l.a.createElement(H.a.Body,null,l.a.createElement(U.a.Group,{controlId:"exampleForm.ControlInput1"},l.a.createElement(U.a.Label,null,"Page Heading"),l.a.createElement(U.a.Control,{type:"text",name:"title",placeholder:"Enter page heading 1",value:t.title?t.title:"",onChange:function(e){return a(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"exampleForm.ControlInput2"},l.a.createElement(U.a.Label,null,"Route"),l.a.createElement(U.a.Control,{type:"text",name:"route",placeholder:"route name without /,?,",value:t.route?t.route:"",onChange:function(e){return n(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"topicheading1"},l.a.createElement(U.a.Label,null,"Topic 1 Heading"),l.a.createElement(U.a.Control,{type:"text",name:"topicheading1",placeholder:"Heading",value:t.topicheading1?t.topicheading1:"",onChange:function(e){return s(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"exampleForm.ControlInput3"},l.a.createElement(U.a.Label,null,"Topic 1 Description"),l.a.createElement(U.a.Control,{as:"textarea",rows:3,placeholder:"Topic Description",name:"topic1",value:t.topic1?t.topic1:"",onChange:function(e){return i(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"topic2heading"},l.a.createElement(U.a.Label,null,"Topic 2 Heading"),l.a.createElement(U.a.Control,{type:"text",name:"topicheading2",placeholder:"Topic 2 heading",value:t.topicheading2?t.topicheading2:"",onChange:function(e){return o(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"topi2"},l.a.createElement(U.a.Label,null,"Topic 2 Description"),l.a.createElement(U.a.Control,{name:"topic2",as:"textarea",placeholder:"Topic 2 description",rows:3,value:t.topic2?t.topic2:"",onChange:function(e){return c(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"keywords"},l.a.createElement(U.a.Label,null,"Keywords (separate by ,)"),l.a.createElement(U.a.Control,{as:"textarea",name:"keywords",rows:3,placeholder:"separate keywords by comma(,)",value:t.keywords?t.keywords:"",onChange:function(e){return r(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"metaid"},l.a.createElement(U.a.Label,null,"Page Title"),l.a.createElement(U.a.Control,{name:"metaname",type:"text",placeholder:"enter meta name",value:t.metaname?t.metaname:"",onChange:function(e){return m(e.target.value)}}),l.a.createElement(U.a.Label,null,"Meta Content (Description)"),l.a.createElement(U.a.Control,{name:"metacontent",type:"text",placeholder:"enter meta content",value:t.metacontent?t.metacontent:"",onChange:function(e){return d(e.target.value)}}))),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:u},"Close"),l.a.createElement(x.a,{variant:"primary",onClick:E},"Save Changes"))))}),cl=a(14),sl=a(2),ol=a(103).customStyles,ml=function(e){var t=["Publish","Unpublish"],a=Object(n.useState)(!1),r=Object(h.a)(a,2),i=r[0],c=r[1],s=Object(n.useState)(!1),o=Object(h.a)(s,2),m=(o[0],o[1]),d=Object(n.useState)(!1),u=Object(h.a)(d,2),E=u[0],b=u[1],v=Object(n.useState)(!1),y=Object(h.a)(v,2),g=y[0],O=y[1],_=Object(n.useState)(!1),S=Object(h.a)(_,2),N=S[0],w=S[1],k=Object(n.useState)([]),C=Object(h.a)(k,2),T=C[0],P=C[1],D=Object(n.useState)([]),R=Object(h.a)(D,2),U=(R[0],R[1],Object(n.useState)([])),L=Object(h.a)(U,2),I=L[0],M=L[1],H=Object(n.useState)(1),W=Object(h.a)(H,2),V=W[0],q=W[1],B=Object(n.useState)(""),Z=Object(h.a)(B,2),F=Z[0],G=(Z[1],Object(n.useState)(1)),Y=Object(h.a)(G,2),z=Y[0],Q=Y[1],$=Object(n.useState)(0),J=Object(h.a)($,2),X=J[0],ee=J[1],te=new Date;te.setFullYear(te.getFullYear()+1);var ae=Object(n.useState)(""),ne=Object(h.a)(ae,2),le=ne[0],re=ne[1],ie=Object(n.useState)(""),ce=Object(h.a)(ie,2),oe=ce[0],me=ce[1],de=Object(n.useState)(""),ue=Object(h.a)(de,2),Ee=ue[0],fe=ue[1],pe=Object(n.useState)(""),he=Object(h.a)(pe,2),be=he[0],ve=he[1],ye=Object(n.useState)(""),ge=Object(h.a)(ye,2),Oe=ge[0],_e=ge[1],Se=Object(n.useState)(""),Ne=Object(h.a)(Se,2),we=Ne[0],ke=Ne[1],Ce=Object(n.useState)(""),Te=Object(h.a)(Ce,2),je=Te[0],Pe=Te[1],Ae=Object(n.useState)(""),De=Object(h.a)(Ae,2),Re=(De[0],De[1]),Ue=Object(n.useState)(""),Le=Object(h.a)(Ue,2),xe=Le[0],Ie=Le[1],Me=Object(n.useState)(""),He=Object(h.a)(Me,2),We=He[0],Ke=He[1],Ve=Object(n.useState)(""),qe=Object(h.a)(Ve,2),Be=qe[0],Ze=qe[1],Fe=Object(n.useState)(""),Ge=Object(h.a)(Fe,2),Ye=Ge[0],ze=Ge[1],Qe=Object(n.useState)(!1),$e=Object(h.a)(Qe,2),Je=$e[0],Xe=$e[1],et=Object(n.useState)("none"),tt=Object(h.a)(et,2),at=(tt[0],tt[1]),nt=Object(n.useState)(10),lt=Object(h.a)(nt,2),rt=lt[0],it=lt[1],ct=Object(n.useState)(0),st=Object(h.a)(ct,2),ot=st[0],mt=st[1],dt=Object(n.useState)(!0),ut=Object(h.a)(dt,2),Et=ut[0],ft=ut[1],pt=Object(n.useState)(),ht=Object(h.a)(pt,2),bt=ht[0],vt=ht[1],yt=Object(n.useState)([]),gt=Object(h.a)(yt,2),St=(gt[0],gt[1],Object(n.useState)({})),Nt=Object(h.a)(St,2),wt=(Nt[0],Nt[1],Object(n.useState)(!1)),kt=Object(h.a)(wt,2),Ct=kt[0],Tt=kt[1];function jt(){return(jt=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:cl.get(sl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getPages":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getPages",{params:{page:z,sort:bt,rows:rt,search:Ye,deleted:F}}).then((function(e){if(200===e.status)P(e.data.results),mt(e.data.total),ft(!1);else{new Error(e.error_message);w(e.error_message),b(!0)}})).catch((function(e){w(e.message),b(!0),ft(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(n.useEffect)((function(){!function(){jt.apply(this,arguments)}()}),[z,bt,rt,Je,Ct]);var Pt=function(e){ft(!0),Q(e)};function At(){return ee(0),re(""),me(""),Pe(""),Ze(""),Ke(""),Ie(""),ve(""),ke(""),fe(""),_e(""),Re(""),!0}var Dt=function(e){switch(e.preventDefault(),e.target.getAttribute("data-action")){case"add-page":at(e.target.getAttribute("data-action")),ee(e.target.getAttribute("data-value"));var a=sl.findWhere(T,{id:parseInt(e.target.getAttribute("data-value"),10)});At(),c(!0);break;case"publish":a=sl.findWhere(T,{id:parseInt(e.target.getAttribute("data-value"),10)});ee(e.target.getAttribute("data-value")),Ze(e.target.getAttribute("publish-action")),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;cl.post(sl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/publishPage":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/publishPage",{id:e>0?e:X,page_status:t.includes(a)?a:Be}).then((function(e){if(200===e.status)c(!1),Tt(!Ct);else{new Error(e.error);w(e.error),b(!0)}})).catch((function(e){w(e),b(!0),ft(!1)}))}(e.target.getAttribute("data-value"),e.target.getAttribute("publish-action"));break;case"edit":at(e.target.getAttribute("data-action")),ee(e.target.getAttribute("data-value")),console.log(e.target.getAttribute("data-value"));a=sl.findWhere(T,{id:parseInt(e.target.getAttribute("data-value"),10)});console.log(a),re(a.title),me(a.route),Pe(a.keywords),Ze(a.page_status),"",a.topics&&JSON.parse(a.topics).map((function(e,t){switch(t){case 0:fe(e.header),ve(e.description);break;case 1:_e(e.header),ke(e.description)}}));a.meta&&JSON.parse(a.meta).map((function(e,t){switch(t){case 0:Ie(e.name),Ke(e.content)}})),c(!0);break;case"delete":a=sl.findWhere(T,{id:parseInt(e.target.getAttribute("data-value"),10)});M({id:e.target.getAttribute("data-value"),description:a.title,info:"1"==e.target.getAttribute("delete-action")?"Delete":"Activate"}),q(e.target.getAttribute("delete-action")),O(!0)}},Rt=[{name:"Page Heading",selector:"title",sortable:!0},{name:"Route",selector:"route",sortable:!0},{name:"Page Status",selector:"page_status",sortable:!0},{cell:function(e){return l.a.createElement(tn.a,null,l.a.createElement(tn.a.Toggle,{variant:"success",id:"dropdown-basic"},l.a.createElement("i",{className:"fa fa-cog"})),l.a.createElement(tn.a.Menu,null,l.a.createElement(tn.a.Item,{href:"#/edit",className:"edt-page",onClick:Dt,"data-value":e.id,"data-action":"edit"},l.a.createElement("i",{className:"fa fa-pen"})," Edit"),l.a.createElement(tn.a.Item,{href:"#/delete",onClick:Dt,"data-value":e.id,"data-action":"delete","delete-action":1==e.deleted?"0":"1"},l.a.createElement("i",{className:"fa fa-trash"})," ",1==e.deleted?"Activate":"Delete"),l.a.createElement(tn.a.Item,{href:"#/publish",onClick:Dt,"data-value":e.id,"data-action":"publish","publish-action":"Unpublish"==e.page_status?"Publish":"Unpublish"},l.a.createElement("i",{className:"fa fa-arrows"})," ","Unpublish"==e.page_status?"Publish":"Unpublish")))},ignoreRowClick:!0,allowOverflow:!0,button:!0}],Ut=function(){Xe(!Je),ze("")},Lt=function(){Tt(!Ct)},xt=Object(n.useMemo)((function(){return l.a.createElement("div",null,l.a.createElement(j.a,null,l.a.createElement(x.a,{type:"button",className:"round-left",onClick:Ut},"X"),l.a.createElement("input",{id:"search",type:"text",placeholder:"Search by Name or Email",value:Ye,onChange:function(e){return ze(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&Lt()}}),l.a.createElement(x.a,{className:"round-right",type:"button",onClick:Lt},l.a.createElement("i",{className:"fa fa-search"})),l.a.createElement(x.a,{type:"button",onClick:function(e){at("add-page"),At(),c(!0)},className:"round-all"},l.a.createElement("i",{className:"fa fa-plus-circle"})))," ")}),[Ye,Je]);return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:N,setErrorShow:b,show:E}),l.a.createElement(rl,{deletedata:I,setDeleteShow:O,deleteshow:g,handleDelete:function(e){O(!1),cl.post(sl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/deletePage":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/deletePage",{id:e.target.getAttribute("data-value"),deleted:V,withCredentials:!0}).then((function(e){if(200===e.status)Tt(!Ct);else{new Error(e.error);w(e.error),b(!0)}})).catch((function(e){w(e),b(!0),ft(!1)}))}}),l.a.createElement(il,{data:{route:oe,title:le,topic1:be,topic2:we,topicheading1:Ee,topicheading2:Oe,keywords:je,publish:Be,metaname:xe,metacontent:We},setTitle:re,setRoute:me,setKeywords:Pe,setTopicHeading1:fe,setTopicHeading2:_e,setTopic1:ve,setTopic2:ke,setMetaname:Ie,setMetacontent:Ke,setPublish:Ze,handleClose:function(e){c(!1),m(!1),b(!1)},handleUpdatePage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;cl.post(sl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/savePage":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/savePage",{id:X||null,title:le,route:oe,keywords:je,topic1:be,topic2:we,topicheading1:Ee,topicheading2:Oe,metaname:xe,metacontent:We,page_status:t.includes(e)?e:Be}).then((function(e){if(200===e.status)c(!1),Tt(!Ct);else{new Error(e.error);w(e.error),b(!0)}})).catch((function(e){w(e),b(!0),ft(!1)}))},handlePublish:function(e){t.includes(e)&&Pt(e)},show:i}),l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"12"},l.a.createElement(ll.a,null,l.a.createElement(ll.a.Item,{href:"/Admin/SEO/"},l.a.createElement("i",{className:"fa fa-home"})," Home"),l.a.createElement(ll.a.Item,{active:!0},l.a.createElement("i",{className:"fa fa-users"})," Pages")))),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"12"},l.a.createElement(Ot.a,{id:"tabs"},l.a.createElement(_t.a,{eventKey:"pro",title:l.a.createElement("div",null,l.a.createElement("i",{className:"fa fa-users"})," Pages")},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(K.a,{striped:!0,customStyles:ol,columns:Rt,data:T,progressPending:Et,highlightOnHover:!0,defaultSortField:"id",onSort:function(e,t){ft(!0),vt([e.selector,t])},sortServer:!0,pagination:!0,paginationServer:!0,paginationTotalRows:ot,onChangeRowsPerPage:function(e,t){ft(!0),it(e),Q(t)},onChangePage:Pt,subHeader:!0,subHeaderComponent:xt}))))))))))},dl=function(e){return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(j.a,null,l.a.createElement(al,null),l.a.createElement(A.a,null,l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"12"},l.a.createElement(ll.a,null,l.a.createElement(ll.a.Item,{href:"/Admin"},l.a.createElement("i",{className:"fa fa-home"})," Home"),l.a.createElement(ll.a.Item,{active:!0},l.a.createElement("i",{className:"fa fa-graph"})," Payment")))),l.a.createElement(j.a,{className:"mt-2 ml-1"},"Tabs"))))},ul=a(119),El=a(195),fl=a.n(El),pl=(a(310),function(e){var t=e.publication,a=e.categorydata,n=e.setCategoryid,r=e.setPublication,i=e.setDescription,c=e.setPubmedabbrev,s=e.setPuburl,o=e.setWeight,m=(e.setDatechecked,e.setPublicationtype),d=e.handleClose,u=e.handlePublication,E=e.validated,f=e.show,p=a.categories?a.categories:[];return l.a.createElement(H.a,{show:f,onHide:d,animation:!1,size:"xl"},l.a.createElement(U.a,{width:"100%",noValidate:!0,validated:E,onSubmit:u},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-success"},l.a.createElement("i",{className:"fa fa-book"})," ",t.currentaction&&"add-pub"==t.currentaction?"Add Publication":"Update Publication -"+t.pub_id)),l.a.createElement(H.a.Body,null,l.a.createElement(U.a.Group,{controlId:"publication"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-envelope"})," Publication"),l.a.createElement(U.a.Control,{type:"text",name:"publication",placeholder:"Publication Name",value:t.publication?t.publication:"",onChange:function(e){return r(e.target.value)},required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"*Publication name required")),l.a.createElement(U.a.Group,{controlId:"pubmedabbrev"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-calendar"})," Pubmed Abbrev"),l.a.createElement(U.a.Control,{type:"text",name:"pubmedabbrev",placeholder:"Pubmed Abbrev",value:t.pubmedabbrev?t.pubmedabbrev:"",onChange:function(e){return c(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"form.category"},l.a.createElement(U.a.Label,null,"Category"),l.a.createElement(U.a.Control,{as:"select",defaultValue:t.categoryid?t.categoryid:"",onChange:function(e){return n(e.target.value)},required:!0},l.a.createElement("option",{key:"",value:""},"Select"),C.default.map(p,(function(e,t){return l.a.createElement("option",{key:t,value:e.value},e.label)}))),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"*Category required")),l.a.createElement(U.a.Group,{controlId:"paymentForm.to"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-calendar"})," URL"),l.a.createElement(U.a.Control,{type:"text",name:"puburl",placeholder:"URL",value:t.url?t.url:"",onChange:function(e){return s(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"ctrl.weight"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-money"})," Weight"),l.a.createElement(U.a.Control,{type:"text",name:"weight",value:t.weight?t.weight:"",onChange:function(e){return o(e.target.value)},required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"*Weight required")),l.a.createElement(U.a.Group,{controlId:"description"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-comment"})," Description"),l.a.createElement(U.a.Control,{as:"textarea",rows:"3",name:"description",value:t.description?t.description:"",onChange:function(e){return i(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"pubtype"},l.a.createElement(U.a.Label,null,"Select Type"),l.a.createElement(U.a.Control,{as:"select",name:"pubtype",defaultValue:t.publication_type?t.publication_type:"",onChange:function(e){return m(e.target.value)},required:!0},l.a.createElement("option",{key:"pubtype-0",value:""},"Select Type"),l.a.createElement("option",{key:"Non Pubmed",value:"Non Pubmed"},"Non Pubmed"),l.a.createElement("option",{key:"Pubmed",value:"Pubmed"},"Pubmed"),l.a.createElement("option",{key:"RSS Feed",value:"RSS Feed"},"RSS Feed")),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"*Publication type required"))),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:d},l.a.createElement("i",{className:"fa fa-times"})," Close"),l.a.createElement(x.a,{variant:"primary success",type:"submit"},l.a.createElement("i",{className:"fa fa-disc"})," Save Changes"))))}),hl=function(e){var t=e.guidelines,a=e.setMethodology,n=e.setEvidenceGrading,r=e.setSystematicEvidence,i=e.setFunding,c=e.setConflict,s=e.setComments,o=e.handleClose,m=e.handleGuidelines,d=e.validated,u=e.show;return l.a.createElement(H.a,{show:u,onHide:o,animation:!1,size:"xl"},l.a.createElement(U.a,{width:"100%",noValidate:!0,validated:d,onSubmit:m},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-success"},l.a.createElement("i",{className:"fa fa-book"})," Add/Update Guidelines (",t.publication?t.publication:"",")")),l.a.createElement(H.a.Body,null,l.a.createElement(U.a.Group,{controlId:"guidelines"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-upload"})," Do they publish their methodology?"),l.a.createElement(U.a.Control,{type:"text",name:"methodology",placeholder:"Methodology",value:t.methodology?t.methodology:"0",onChange:function(e){return a(e.target.value)},required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"*Methodology score required")),l.a.createElement(U.a.Group,{controlId:"evidencegrading"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-compass"})," Do they use any evidence grading?"),l.a.createElement(U.a.Control,{type:"text",name:"evidencegrading",placeholder:"Evidence grading",value:t.evidencegrading?t.evidencegrading:"0",onChange:function(e){return n(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"form.sysevidence"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-link"})," Do they undertake a systematic evidence search?"),l.a.createElement(U.a.Control,{type:"text",defaultValue:t.systematicevidence?t.systematicevidence:"0",placeholder:"Systematic Evidence",onChange:function(e){return r(e.target.value)},required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"*Systematic Evidence required")),l.a.createElement(U.a.Group,{controlId:"funding"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-dollar-sign"})," Are they clear about funding?"),l.a.createElement(U.a.Control,{type:"text",name:"funding",placeholder:"Funding",value:t.funding?t.funding:"0",onChange:function(e){return i(e.target.value)},required:!0})),l.a.createElement(U.a.Group,{controlId:"conflict"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-anchor"})," Do they mention how they handle conflict of interest?"),l.a.createElement(U.a.Control,{type:"text",name:"conflict",value:t.conflict?t.conflict:"0",onChange:function(e){return c(e.target.value)},required:!0}),l.a.createElement(U.a.Control.Feedback,{type:"invalid"},"*Conflict score required")),l.a.createElement(U.a.Group,{controlId:"comments"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-anchor"})," Comments (optional)"),l.a.createElement(U.a.Control,{type:"text",name:"comments",value:t.comments?t.comments:"",onChange:function(e){return s(e.target.value)}}))),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:o},l.a.createElement("i",{className:"fa fa-times"})," Close"),l.a.createElement(x.a,{variant:"primary success",type:"submit"},l.a.createElement("i",{className:"fa fa-disc"})," Save Changes"))))},bl=a(14),vl=a(2),yl=function(e){return bl.get(vl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getAllPublications?search="+e:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getAllPublications?search="+e,{withCredentials:!0}).then((function(e){if(200===e.status)return e.data.lookupdata})).catch((function(e){console.log(e)}))},gl=function(e){var t=e.article,a=(e.publicationdata,e.setArticlePub),n=e.setArticlePubcurrent,r=e.setArticleTitle,i=e.setArticleURL,c=e.setArticleDate,s=e.setArticleIndexed,o=e.handleClose,m=e.handleArticle,d=e.handleArticleAction,u=e.show;return l.a.createElement(H.a,{show:u,onHide:o,animation:!1,size:"xl"},l.a.createElement(U.a,{width:"100%",onSubmit:m},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-success"},l.a.createElement("i",{className:"fa fa-book"})," ",t.currentaction&&"add-article"==t.currentaction?"Add Article":"Update Article -"+t.article_id)),l.a.createElement(H.a.Body,null,l.a.createElement(U.a.Group,{controlId:"article.title"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-info-circle"})," Title"),l.a.createElement(U.a.Control,{type:"text",name:"article",placeholder:"Title",value:t.title?t.title:"",onChange:function(e){return r(e.target.value)},required:!0})),l.a.createElement(U.a.Group,{controlId:"paymentForm.to"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-calendar"})," URL"),l.a.createElement(U.a.Control,{type:"text",name:"articleurl",placeholder:"URL",value:t.url?t.url:"",onChange:function(e){return i(e.target.value)}}),t.url&&l.a.createElement("a",{href:t.url,target:"_blank"},"Check")),l.a.createElement(U.a.Group,{controlId:"exampleForm.ControlSelect1"},l.a.createElement(U.a.Label,null,"Publication"),l.a.createElement(ul.a,{cacheOptions:!0,defaultOptions:!0,loadOptions:yl,value:t.articlepubcurrent?t.articlepubcurrent:"",onChange:function(e){return n(t=e),void(t.value&&a(t.value));var t}})),l.a.createElement(U.a.Group,{controlId:"article.date"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-calendar"})," Date"),l.a.createElement(U.a.Control,{type:"text",name:"weight",value:t.trip_date?t.trip_date:"",onChange:function(e){return c(e.target.value)}})),t.currentaction&&"edit-article"==t.currentaction?l.a.createElement(U.a.Group,{controlId:"exampleForm.ControlSelect1"},l.a.createElement(U.a.Label,null,"Status"),l.a.createElement(U.a.Control,{width:"100%",as:"select",defaultValue:t.indexed,onChange:function(e){return s(e.target.value)}},l.a.createElement("option",{value:"0"},"Indexed"),l.a.createElement("option",{value:"1"},"Needs Indexing"),l.a.createElement("option",{value:"-1"},"Removed Already"),l.a.createElement("option",{value:"-11"},"Remove/Index"),l.a.createElement("option",{value:"4"},"Update/Re-index"))):""),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"danger","data-value":t.article_id,"data-title":t.title?t.title:"","data-action":"delete-article",onClick:d},l.a.createElement("i",{className:"fa fa-trash"})," Delete"),l.a.createElement(x.a,{variant:"secondary",onClick:o},l.a.createElement("i",{className:"fa fa-times"})," Close"),l.a.createElement(x.a,{variant:"primary",onClick:m},l.a.createElement("i",{className:"fa fa-disc"})," Save Changes"))))},Ol=(a(104),a(14)),_l=a(2),Sl=a(103).customStyles,Nl=function(e){var t=Object(n.useState)(""),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(0),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useRef)(),u=Object(n.useState)(!1),E=Object(h.a)(u,2),b=(E[0],E[1]),v=Object(n.useState)(!1),y=Object(h.a)(v,2),g=y[0],O=y[1],_=Object(n.useState)(!1),S=Object(h.a)(_,2),N=S[0],w=S[1],k=Object(n.useState)(!1),C=Object(h.a)(k,2),T=C[0],P=C[1],D=Object(n.useState)(!1),I=Object(h.a)(D,2),M=I[0],H=I[1],W=Object(n.useState)(!1),V=Object(h.a)(W,2),q=V[0],B=V[1],Z=Object(n.useState)(new Date),F=Object(h.a)(Z,2),G=F[0],Y=F[1],z=Object(n.useState)("pub"),Q=Object(h.a)(z,2),$=Q[0],J=Q[1],X=Object(n.useState)(!1),ee=Object(h.a)(X,2),te=ee[0],ae=ee[1],ne=Object(n.useState)(0),le=Object(h.a)(ne,2),re=le[0],ie=le[1],ce=Object(n.useState)(0),oe=Object(h.a)(ce,2),me=oe[0],de=oe[1],ue=Object(n.useState)(0),Ee=Object(h.a)(ue,2),fe=Ee[0],pe=Ee[1],he=Object(n.useState)(0),be=Object(h.a)(he,2),ve=be[0],ye=be[1],ge=Object(n.useState)(0),Oe=Object(h.a)(ge,2),_e=Oe[0],Se=Oe[1],Ne=Object(n.useState)(""),we=Object(h.a)(Ne,2),ke=we[0],Ce=we[1],Te=Object(n.useState)(""),je=Object(h.a)(Te,2),Pe=je[0],Ae=je[1],De=Object(n.useState)(""),Re=Object(h.a)(De,2),Ue=Re[0],Le=Re[1],xe=Object(n.useState)(""),Ie=Object(h.a)(xe,2),Me=Ie[0],He=Ie[1],We=Object(n.useState)(""),Ke=Object(h.a)(We,2),Ve=Ke[0],qe=Ke[1],Be=Object(n.useState)(""),Ge=Object(h.a)(Be,2),Ye=Ge[0],ze=Ge[1],Qe=Object(n.useState)(""),$e=Object(h.a)(Qe,2),Je=$e[0],Xe=$e[1],et=Object(n.useState)(""),tt=Object(h.a)(et,2),at=tt[0],nt=tt[1],lt=Object(n.useState)(""),rt=Object(h.a)(lt,2),it=rt[0],ct=rt[1],st=Object(n.useState)(1),ot=Object(h.a)(st,2),mt=ot[0],dt=ot[1],ut=Object(n.useState)("All"),Et=Object(h.a)(ut,2),ft=Et[0],pt=Et[1],ht=Object(n.useState)(0),bt=Object(h.a)(ht,2),vt=bt[0],yt=bt[1],gt=Object(n.useState)(""),St=Object(h.a)(gt,2),Nt=(St[0],St[1],Object(n.useState)([])),wt=Object(h.a)(Nt,2),kt=wt[0],Ct=wt[1],Tt=Object(n.useState)(""),jt=Object(h.a)(Tt,2),Pt=jt[0],At=jt[1],Dt=Object(n.useState)([]),Rt=Object(h.a)(Dt,2),Ut=Rt[0],Lt=Rt[1],xt=Object(n.useState)([]),It=Object(h.a)(xt,2),Mt=It[0],Ht=It[1],Wt=Object(n.useState)([]),Kt=Object(h.a)(Wt,2),Vt=Kt[0],qt=Kt[1],Bt=Object(n.useState)(1),Zt=Object(h.a)(Bt,2),Ft=Zt[0],Gt=Zt[1],Yt=Object(n.useState)(""),zt=Object(h.a)(Yt,2),Qt=zt[0],$t=zt[1],Jt=Object(n.useState)(""),Xt=Object(h.a)(Jt,2),ea=Xt[0],ta=Xt[1],aa=Object(n.useState)(!1),na=Object(h.a)(aa,2),la=na[0],ra=na[1],ia=Object(n.useState)(!1),ca=Object(h.a)(ia,2),sa=ca[0],oa=ca[1],ma=Object(n.useState)("none"),da=Object(h.a)(ma,2),ua=da[0],Ea=da[1],fa=Object(n.useState)(10),pa=Object(h.a)(fa,2),ha=pa[0],ba=pa[1],va=Object(n.useState)(0),ya=Object(h.a)(va,2),ga=ya[0],Oa=ya[1],_a=Object(n.useState)(!0),Sa=Object(h.a)(_a,2),Na=Sa[0],wa=Sa[1],ka=Object(n.useState)(),Ca=Object(h.a)(ka,2),Ta=Ca[0],ja=Ca[1],Pa=Object(n.useState)(""),Aa=Object(h.a)(Pa,2),Da=Aa[0],Ra=Aa[1],Ua=Object(n.useState)([]),La=Object(h.a)(Ua,2),xa=La[0],Ia=La[1],Ma=Object(n.useState)([]),Ha=Object(h.a)(Ma,2),Wa=(Ha[0],Ha[1]),Ka=Object(n.useState)(1),Va=Object(h.a)(Ka,2),qa=Va[0],Ba=Va[1],Za=Object(n.useState)(10),Fa=Object(h.a)(Za,2),Ga=Fa[0],Ya=Fa[1],za=Object(n.useState)(0),Qa=Object(h.a)(za,2),$a=Qa[0],Ja=Qa[1],Xa=Object(n.useState)(!0),en=Object(h.a)(Xa,2),an=en[0],nn=en[1],ln=Object(n.useState)(),rn=Object(h.a)(ln,2),cn=rn[0],sn=rn[1],on=Object(n.useState)(""),mn=Object(h.a)(on,2),dn=mn[0],un=mn[1],En=Object(n.useState)(""),fn=Object(h.a)(En,2),pn=fn[0],hn=fn[1],bn=Object(n.useState)(""),vn=Object(h.a)(bn,2),yn=vn[0],gn=vn[1],On=Object(n.useState)(""),_n=Object(h.a)(On,2),Sn=_n[0],Nn=_n[1],wn=Object(n.useState)({}),kn=Object(h.a)(wn,2),Cn=kn[0],Tn=kn[1],jn=Object(n.useState)(""),Pn=Object(h.a)(jn,2),An=Pn[0],Dn=Pn[1],Rn=Object(n.useState)(1),Un=Object(h.a)(Rn,2),Ln=Un[0],xn=Un[1],In=Object(n.useState)(!1),Mn=Object(h.a)(In,2),Hn=Mn[0],Wn=Mn[1],Kn=Object(n.useState)(0),Vn=Object(h.a)(Kn,2),qn=Vn[0],Bn=Vn[1],Zn=Object(n.useState)(!1),Fn=Object(h.a)(Zn,2),Gn=Fn[0],Yn=Fn[1],zn=Object(n.useState)(!1),Qn=Object(h.a)(zn,2),$n=Qn[0],Jn=Qn[1];function Xn(){return(Xn=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ol.get(_l.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getDate":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getDate",{withCredentials:!0}).then((function(e){200===e.status&&(_l.isUndefined(e.data.cdate)||Y(new Date(e.data.cdate)))})).catch((function(e){}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function el(){return(el=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ol.post(_l.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/saveDate":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/saveDate",{cdate:G},{withCredentials:!0}).then((function(e){200===e.status?(Yn(!0),window.setTimeout((function(){Yn(!1)}),2e3)):(ae(e.error),P(!0))})).catch((function(e){ae(e.message),P(!0)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tl(){return nl.apply(this,arguments)}function nl(){return(nl=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ol.get(_l.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getPublications":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getPublications",{params:{page:Ft,sort:Ta,rows:ha,search:Qt,pubtype:ft,hidden:vt},withCredentials:!0}).then((function(e){200===e.status?(Ct(e.data.results),Ht(e.data.lookupdata),Oa(e.data.total),wa(!1)):(ae(e.error_message),P(!0))})).catch((function(e){ae(e.message),P(!0),wa(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function il(){return(il=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ol.get(_l.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/updatePublications":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/updatePublications",{params:{hidden:t.hidden,id:t.id},withCredentials:!0}).then((function(e){200===e.status?(tl(),wa(!1)):(ae(e.error),P(!0))})).catch((function(e){ae(e.message),P(!0),nn(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function cl(e){return sl.apply(this,arguments)}function sl(){return(sl=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ol.get(_l.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/deletePurgePublication":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/deletePurgePublication",{params:{id:t.id,mode:t.mode},withCredentials:!0}).then((function(e){200===e.status?(tl(),wa(!1)):(ae(e.error),P(!0))})).catch((function(e){ae(e.message),P(!0),nn(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ol(){return(ol=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ol.post(_l.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/deleteGuideline":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/deleteGuideline",{pub_id:t.id},{withCredentials:!0}).then((function(e){200===e.status?(tl(),wa(!1)):(ae(e.error),P(!0))})).catch((function(e){ae(e.message),P(!0),nn(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ml(e){return dl.apply(this,arguments)}function dl(){return(dl=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ol.get(_l.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getArticles":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getArticles",{params:{page:qa,sort:cn,rows:Ga,search:ea,deleted:0,pub_id:t},withCredentials:!0}).then((function(e){200===e.status?(Ia(e.data.results),Wa(e.data.lookupdata),Ja(e.data.total),nn(!1)):(ae(e.error_message),P(!0))})).catch((function(e){ae(e.message),P(!0),nn(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function El(){return(El=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ol.get(_l.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getAllPublications":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getAllPublications",{withCredentials:!0}).then((function(e){200===e.status?qt(e.data.lookupdata):(ae(e.error_message),P(!0))})).catch((function(e){ae(e.message),P(!0),nn(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function bl(){return(bl=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ol.get(_l.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getArticle":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getArticle",{params:{article_id:t},withCredentials:!0}).then((function(e){if(200===e.status){if(Ea("edit-article"),un(t),!_l.isUndefined(e.data.results)){var a="";e.data.results.trip_date&&(a=(a=new Date(e.data.results.trip_date)).toISOString().split("T")[0]),hn(e.data.results.title),Nn(e.data.results.publicationId),Tn({value:e.data.results.publiationId,label:e.data.results["publication.publication"]}),gn(e.data.results.url),Dn(a),xn(e.data.results.needs_indexing),Wn(!0)}}else ae(e.error_message),P(!0)})).catch((function(e){ae(e.message),P(!0),nn(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vl(){return(vl=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ol.post(_l.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/updateArticle":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/updateArticle",{article_id:dn,publicationId:Sn,title:pn,url:yn,trip_date:An,needs_indexing:Ln},{withCredentials:!0}).then((function(e){200===e.status?(Wn(!1),ml()):(ae(e.error),P(!0))})).catch((function(e){ae(e.message),P(!0),nn(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nl(){return(Nl=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ol.post(_l.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/deleteArticle":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/deleteArticle",{id:t.id,deleted:t.deleted},{withCredentials:!0}).then((function(e){200===e.status?(Wn(!1),ml()):(ae(e.error),P(!0))})).catch((function(e){ae(e.message),P(!0),nn(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(n.useEffect)((function(){var e=Fe("article_id");tl(),Da&&ml(Da),function(){El.apply(this,arguments)}(),e&&(!function(e){bl.apply(this,arguments)}(e),document.getElementById("tabs-tab-articles").click())}),[Ft,qa,Ta,Da,cn,ha,Ga,sa,la,ft,vt,q]);var wl=function(e){pt(e.target.value),wa(!0)},kl=function(e){yt(e.target.value),wa(!0)},Cl=function(e){b(!1),w(!1),O(!1),Wn(!1),P(!1),Ze("article_id","")},Tl=function(e){switch(e.preventDefault(),e.target.getAttribute("data-action")){case"add-pub":Ul(),Ea(e.target.getAttribute("data-action")),w(!0);break;case"edit-pub":Ul(),Ea(e.target.getAttribute("data-action")),Ra(e.target.getAttribute("data-value"));var t=_l.findWhere(kt,{id:parseInt(e.target.getAttribute("data-value"),10)});Le(t.publication),qe(t.pubmedabbrev),ct(t.publication_type),He(t.description),ze(t.url),Xe(t.weight),nt(t.date_checked),Ae(t.categoryId),w(!0);break;case"edit-guidelines":Ll(),Ra(e.target.getAttribute("data-value"));t=_l.findWhere(kt,{id:parseInt(e.target.getAttribute("data-value"),10)});Le(t.publication),At(t.guidelines_exist),t.guidelines_exist&&(ie(t.methodology),ye(t.funding),Se(t.conflict),Ce(t.comments),de(t.evidence_grading),pe(t.systematic_evidence)),O(!0);break;case"hide-pub":var a=_l.findWhere(kt,{id:parseInt(e.target.getAttribute("data-value"),10)});Lt({id:e.target.getAttribute("data-value"),info:"Hide",description:" will only hide the publication and keep the related articles for "+a.publication,action:e.target.getAttribute("data-action")}),H(!0),B(!q);break;case"delete-pub":a=_l.findWhere(kt,{id:parseInt(e.target.getAttribute("data-value"),10)});Lt({id:e.target.getAttribute("data-value"),description:" will hide the publication and permanently delete all the related articles for "+a.publication,info:" Delete ",action:e.target.getAttribute("data-action")}),H(!0),B(!q);break;case"delete-guidelines":a=_l.findWhere(kt,{id:parseInt(e.target.getAttribute("data-value"),10)});Lt({id:e.target.getAttribute("data-value"),description:" will delete guidelines score for "+a.publication,info:" Delete ",action:e.target.getAttribute("data-action")}),H(!0),B(!q);break;case"purge-pub":a=_l.findWhere(kt,{id:parseInt(e.target.getAttribute("data-value"),10)});Lt({id:e.target.getAttribute("data-value"),info:"Purge",description:" will retain the publication and permanently delete all the related articles for "+a.publication,action:e.target.getAttribute("data-action")}),H(!0),B(!q)}},jl=function(e){switch(e.preventDefault(),e.target.getAttribute("data-action")){case"add-article":Ea(e.target.getAttribute("data-action")),un(""),hn(""),Nn(""),gn(""),Dn(""),xn(1),Tn(""),Wn(!0);break;case"edit-article":Ea(e.target.getAttribute("data-action")),un(e.target.getAttribute("data-value"));var t=_l.findWhere(xa,{id:parseInt(e.target.getAttribute("data-value"),10)});hn(t.title),Nn(t.publicationId),Tn(t.publicationdata),gn(t.url),Dn(t.trip_date),xn(t.needs_indexing),Wn(!0);break;case"delete-article":t=_l.findWhere(xa,{id:parseInt(e.target.getAttribute("data-value"),10)});Lt({id:e.target.getAttribute("data-value"),description:_l.isUndefined(t)?e.target.getAttribute("data-title"):t.title,action:e.target.getAttribute("data-action")}),H(!0),B(!q)}},Pl=(new Date,[{name:"ID",selector:"id",sortable:!0,wrap:!0,maxWidth:"100px"},{name:"Publication Name",selector:"publication",sortable:!0,maxWidth:"600px",wrap:!0,cell:function(e){return l.a.createElement("div",null,l.a.createElement("a",{href:e.url,target:"_blank",rel:"noopener noreferrer"},l.a.createElement("i",{className:"fa fa-external-link"}))," ",l.a.createElement("b",null," ",e.publication))}},{name:"URL",selector:"url",sortable:!0,wrap:!0},{name:"Date checked",selector:"date_checked",sortable:!0,wrap:!0},{name:"Articles",button:!0,cell:function(e){return l.a.createElement("a",{href:"#/",onClick:Ml,"data-value":e.id,"data-action":"pubclick",rel:"noopener noreferrer"},"Articles (",e.total_articles,") ",l.a.createElement("i",{className:"fa fa-arrow-right"}))}},{cell:function(e){return l.a.createElement(tn.a,{align:{lg:"end"}},l.a.createElement(tn.a.Toggle,{variant:"success",id:"dropdown-basic"},l.a.createElement("i",{className:"fa fa-cog"})),l.a.createElement(tn.a.Menu,null,l.a.createElement(tn.a.Item,{href:"#/add-pub",onClick:Tl,"data-value":e.id,"data-action":"add-pub"},l.a.createElement("i",{className:"fa fa-plus-circle"})," Add"),l.a.createElement(tn.a.Item,{href:"#/edit",onClick:Tl,"data-value":e.id,"data-action":"edit-pub"},l.a.createElement("i",{className:"fa fa-pen"})," Edit"),l.a.createElement(tn.a.Item,{href:"#/hide",onClick:function(t){0===e.hidden?dt(1):dt(0),Tl(t),t.preventDefault()},"data-value":e.id,"data-action":"hide-pub"},l.a.createElement("i",{className:e.hidden?"fa fa-eye text-warning":"fa fa-eye-slash text-warning"})," ",e.hidden?"Unhide":"Hide"),l.a.createElement(tn.a.Item,{href:"#/deletepub",onClick:Tl,"data-value":e.id,"data-action":"delete-pub"},l.a.createElement("i",{className:"fa fa-trash text-danger"})," Delete Publication"),l.a.createElement(tn.a.Item,{href:"#/purgepub",onClick:Tl,"data-value":e.id,"data-action":"purge-pub"},l.a.createElement("i",{className:"fa fa-minus text-success"})," Purge Publication"),l.a.createElement(tn.a.Item,{href:"#/publication",onClick:Ml,"data-value":e.id,"data-action":"pubclick"},l.a.createElement("i",{className:"fa fa-arrow-right"})," Articles"),l.a.createElement(tn.a.Item,{href:"#/guidelines",onClick:Tl,"data-value":e.id,"data-action":"edit-guidelines"},l.a.createElement("i",{className:"fa fa-bars"})," ",null===e.guidelines_exist?"Add Guidelines Score":"Update Guidelines Score"),l.a.createElement(tn.a.Item,{href:"#/deletepub",onClick:Tl,"data-value":e.id,"data-action":"delete-guidelines",disabled:null===e.guidelines_exist},l.a.createElement("i",{className:"fa fa-times text-danger"})," Delete Guidelines")))},ignoreRowClick:!0,allowOverflow:!1,button:!0}]),Al=[{name:"ID",selector:"id",sortable:!0,maxWidth:"80px"},{name:"Article Title",selector:"title",sortable:!0,maxWidth:"600px",wrap:!0,cell:function(e){return l.a.createElement("div",null,l.a.createElement("a",{href:e.url,target:"_blank",rel:"noopener noreferrer"},l.a.createElement("i",{className:"fa fa-external-link"}))," ",e.title)}},{name:"Publication",selector:"publication",sortable:!1,maxWidth:"300px"},{name:"DOI",selector:"doi",sortable:!0,maxWidth:"120px"},{name:"Date ",selector:"trip_date",sortable:!0,maxWidth:"80px"},{cell:function(e){return l.a.createElement(tn.a,null,l.a.createElement(tn.a.Toggle,{variant:"success",id:"dropdown-basic"},l.a.createElement("i",{className:"fa fa-cog"})),l.a.createElement(tn.a.Menu,null,l.a.createElement(tn.a.Item,{href:"#/profile",onClick:jl,"data-value":e.id,"data-action":"add-article"},l.a.createElement("i",{className:"fa fa-plus-circle"})," Add New"),l.a.createElement(tn.a.Item,{href:"#/edit",onClick:jl,"data-value":e.id,"data-action":"edit-article"},l.a.createElement("i",{className:"fa fa-pen"})," Edit"),l.a.createElement(tn.a.Item,{href:"#/delete",onClick:jl,"data-value":e.id,"data-action":"delete-article"},l.a.createElement("i",{className:"fa fa-times text-danger"})," Delete")))},ignoreRowClick:!0,allowOverflow:!0,button:!0}],Dl=function(){oa(!sa),$t("")},Rl=function(){ra(!la),Ba(1),ta("")},Ul=function(){return Ra(""),Le(""),qe(""),He(""),Ae(""),ze(""),ct(""),Xe(""),!0},Ll=function(){return Ra(""),Le(""),ie(0),ye(0),Se(0),Ce(""),de(0),pe(0),!0},xl=function(){B(!q)},Il=function(){B(!q)},Ml=function(e){e.preventDefault();var t=e.target.getAttribute("data-value");Ra(t),J("articles"),ml(t)},Hl=Object(n.useMemo)((function(){return l.a.createElement("div",null,l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(U.a,null,l.a.createElement(U.a.Control,{width:"100%",as:"select",defaultValue:ft,onChange:wl},l.a.createElement("option",null,"All"),l.a.createElement("option",null,"Non Pubmed"),l.a.createElement("option",null,"Pubmed"),l.a.createElement("option",null,"RSS Feed")),l.a.createElement(U.a.Control,{width:"100%",as:"select",defaultValue:vt,onChange:kl},l.a.createElement("option",{value:"0"},"Active"),l.a.createElement("option",{value:"1"},"Show Hidden"))))),l.a.createElement(j.a,{className:"mt-1"},l.a.createElement(x.a,{type:"button",className:"round-left",onClick:Dl},"X"),l.a.createElement("input",{id:"search",type:"text",placeholder:"Search by Title or URL",value:Qt,onChange:function(e){return $t(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&xl()}}),l.a.createElement(x.a,{type:"button",className:"round-right",onClick:xl},l.a.createElement("i",{className:"fa fa-search"})),"\xa0",l.a.createElement(x.a,{type:"button",onClick:function(e){Ea("add-pub"),Ul(),w(!0)},className:"round-all"},l.a.createElement("i",{className:"fa fa-plus-circle"})),"\xa0"))}),[Qt,sa]),Wl=Object(n.useMemo)((function(){return l.a.createElement("div",null,l.a.createElement(j.a,null,l.a.createElement(A.a,{width:"100%"},l.a.createElement(ul.a,{cacheOptions:!0,defaultOptions:!0,loadOptions:yl,onChange:function(e){Ba(1),Ra(e.value)}}))),l.a.createElement(j.a,{className:"mt-1"},l.a.createElement(x.a,{type:"button",className:"round-left",onClick:Rl},"X"),l.a.createElement("input",{id:"search_article",type:"text",placeholder:"Title, DOI, URL",value:ea,onChange:function(e){return ta(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&Il()}}),l.a.createElement(x.a,{type:"button",className:"round-right",onClick:Il},l.a.createElement("i",{className:"fa fa-search"})),"\xa0",l.a.createElement(x.a,{type:"button",onClick:function(e){Ea("add-article"),un(""),hn(""),Nn(""),gn(""),Dn(""),xn(1),Tn(""),Wn(!0)},className:"round-all"},l.a.createElement("i",{className:"fa fa-plus-circle"}))))}),[ea,la]);return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2 mb-3"},l.a.createElement(se,{error:te,setErrorShow:P,show:T}),l.a.createElement(rl,{deletedata:Ut,setDeleteShow:H,deleteshow:M,handleDelete:function(e){switch(H(!1),e.target.getAttribute("data-action")){case"delete-pub":wa(!0),cl({id:e.target.getAttribute("data-value"),mode:"delete"});break;case"purge-pub":wa(!0),cl({id:e.target.getAttribute("data-value"),mode:"purge"});break;case"hide-pub":wa(!0),function(e){il.apply(this,arguments)}({id:e.target.getAttribute("data-value"),hidden:mt});break;case"delete-article":nn(!0),function(e){Nl.apply(this,arguments)}({id:e.target.getAttribute("data-value"),deleted:1}),Ze("article_id","");break;case"delete-guidelines":wa(!0),function(e){ol.apply(this,arguments)}({id:e.target.getAttribute("data-value")})}}}),l.a.createElement(pl,{publication:{pub_id:Da,categoryid:Pe,publication:Ue,description:Me,pubmedabbrev:Ve,url:Ye,weight:Je,date_checked:at,currentaction:ua,publication_type:it},categorydata:Mt,setCategoryid:Ae,setPublication:Le,setDescription:He,setPubmedabbrev:qe,setPuburl:ze,setWeight:Xe,setDatechecked:nt,setPublicationtype:ct,handleClose:Cl,handlePublication:function(e){!1===e.currentTarget.checkValidity()?e.stopPropagation():Ol.post(_l.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/createPublication":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/createPublication",{pub_id:Da,categoryid:Pe,publication:Ue,description:Me,pubmedabbrev:Ve,publication_type:it,puburl:Ye,weight:Je,date_checked:at},{withCredentials:!0}).then((function(e){if(200===e.status)w(!1),wa(!0),tl();else{new Error(e.error_message);ae(e.error_message),P(!0)}})).catch((function(e){console.log(e),ae(e),P(!0),wa(!1)})),e.preventDefault(),Jn(!0)},validated:$n,show:N}),l.a.createElement(hl,{guidelines:{pub_id:Da,publication:Ue,methodology:re,evidencegrading:me,systematicevidence:fe,funding:ve,conflict:_e,comments:ke,guidelinesexist:Pt},setMethodology:ie,setEvidenceGrading:de,setSystematicEvidence:pe,setFunding:ye,setConflict:Se,setComments:Ce,handleClose:Cl,handleGuidelines:function(e){console.log("caleed"),!1===e.currentTarget.checkValidity()?(console.log("not valid"),e.stopPropagation()):Ol.post(_l.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/createGuidelines":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/createGuidelines",{pub_id:Da,methodology:re,evidence_grading:me,systematic_evidence:fe,funding:ve,conflict:_e,comments:ke},{withCredentials:!0}).then((function(e){if(200===e.status)O(!1),wa(!0),tl();else{new Error(e.error_message);ae(e.error_message),P(!0)}})).catch((function(e){console.log(e),ae(e),P(!0),wa(!1)})),e.preventDefault(),Jn(!0)},show:g}),l.a.createElement(gl,{article:{article_id:dn,publicationId:Sn,title:pn,url:yn,trip_date:An,currentaction:ua,articlepubcurrent:Cn,indexed:Ln},publicationdata:Vt,setArticlePub:Nn,setArticlePubcurrent:Tn,setArticleTitle:hn,setArticleURL:gn,setArticleDate:Dn,setArticleIndexed:xn,handleClose:Cl,handleArticle:function(e){e.preventDefault(),function(){vl.apply(this,arguments)}()},handleArticleAction:jl,show:Hn}),l.a.createElement(j.a,null,l.a.createElement(al,null),l.a.createElement(A.a,null,l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"12"},l.a.createElement(ll.a,null,l.a.createElement(ll.a.Item,{href:"/Admin"},l.a.createElement("i",{className:"fa fa-home"})," Home"),l.a.createElement(ll.a.Item,{active:!0},l.a.createElement("i",{className:"fa fa-book"})," Publications")))),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"12"},l.a.createElement(Ot.a,{id:"tabs",activeKey:$,onSelect:function(e){J(e),"cutoff"===e&&function(){Xn.apply(this,arguments)}()}},l.a.createElement(_t.a,{eventKey:"pub",title:l.a.createElement("div",null,l.a.createElement("i",{className:"fa fa-book"})," Publications")},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(K.a,{striped:!0,customStyles:Sl,columns:Pl,data:kt,progressPending:Na,highlightOnHover:!0,onSort:function(e,t){wa(!0),ja([e.selector,t])},sortServer:!0,pagination:!0,paginationServer:!0,paginationTotalRows:ga,onChangeRowsPerPage:function(e,t){wa(!0),ba(e),Gt(t)},onChangePage:function(e){wa(!0),Gt(e)},subHeader:!0,subHeaderComponent:Hl})))),l.a.createElement(_t.a,{eventKey:"articles",title:l.a.createElement("div",null,l.a.createElement("i",{className:"fa fa-university"})," Articles")},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(K.a,{striped:!0,customStyles:Sl,columns:Al,data:xa,progressPending:!!Da&&an,highlightOnHover:!0,defaultSortField:"id",onSort:function(e,t){nn(!0),sn([e.selector,t])},sortServer:!0,pagination:!0,paginationServer:!0,paginationTotalRows:$a,onChangeRowsPerPage:function(e,t){nn(!0),Ya(e),Ba(t)},onChangePage:function(e){nn(!0),Ba(e)},subHeader:!0,subHeaderComponent:Wl})))),l.a.createElement(_t.a,{eventKey:"upload",title:l.a.createElement("div",null,l.a.createElement("i",{className:"fa fa-user-circle"})," Upload here")},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement("h4",null,"CSV File fromat"),l.a.createElement(L.a,null,l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",null,"publicationId/source"),l.a.createElement("th",null,"title"),l.a.createElement("th",null,"url"),l.a.createElement("th",null,"date"),l.a.createElement("th",null,"clinicalareas"))),l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,"44444"),l.a.createElement("td",null,"Title of the article goes here"),l.a.createElement("td",null,"www.articleurl.co.uk"),l.a.createElement("td",null,"2019"),l.a.createElement("td",null,"Primary care*")))),l.a.createElement("div",null,"*Optional - can be null value"),l.a.createElement(R.a,null,l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,null,l.a.createElement("h2",{className:"text-info"},"Upload Articles")),l.a.createElement("div",null,l.a.createElement("div",{className:"file-upload"},l.a.createElement("input",{type:"file",className:"btn btn-info",ref:d,onChange:function(e){m(0);var t=e.target.files[0];i(t)}})," ",l.a.createElement("div",{className:"progessBar mt-2",style:{width:o}},o),l.a.createElement(U.a.Check,{className:"mt-2",type:"checkbox",id:"default-checkbox",label:"Latest",onChange:function(e){return Bn(e.target.checked)}}),l.a.createElement("button",{onClick:function(){var e=new FormData;e.append("csvfile",r),e.append("latest",qn),e.append("withCredentials",!0),Ol.post(_l.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/uploadArticles":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/uploadArticles",e,{withCredentials:!0,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(e){var t=Math.round(e.loaded/e.total*100)+"%";m(t)}}).then((function(e){})).catch((function(e){return console.log(e)}))},className:"btn btn-success upbutton mt-2"}," ","Upload"),l.a.createElement("hr",null)))))))),l.a.createElement(_t.a,{eventKey:"cutoff",title:l.a.createElement("div",null,l.a.createElement("i",{className:"fa fa-user-circle"})," Cuttoff Date")},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement("h4",null,"Cutoff Date for Latest Articles"),l.a.createElement("div",null,l.a.createElement(fl.a,{name:"date_from",showPopperArrow:!0,selected:G,onChange:function(e){Y(e)},dateFormat:"dd/MM/yyyy"}),l.a.createElement("div",null," ",Gn?l.a.createElement("div",{role:"alert",className:"fade alert alert-success show"},"Date Saved!"):""),l.a.createElement(x.a,{className:"btn-default",onClick:function(e){!function(){el.apply(this,arguments)}()}},"Set Cut off Date")),l.a.createElement("div",null,"*Optional - can be null value"))))))))))},wl=function(e){var t=e.institution,a=e.setInstName,n=e.setInstshortName,r=e.setInstEmailRegex,i=(e.setInstLinkResolverImage,e.setInstLinkResolverName),c=e.setInstLinkResolverUrl,s=e.setInstSignupcode,o=e.setInstIpRegex,m=e.setLibkeyaccessid,d=e.setLibkeyaccesstoken,u=e.setOAscope,E=e.setOAorgid,f=e.setParentid,p=e.handleClose,h=e.handleInstitution,b=e.show;return l.a.createElement(H.a,{show:b,onHide:p,animation:!1,size:"xl"},l.a.createElement(U.a,{width:"100%",onSubmit:h},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-success"},l.a.createElement("i",{className:"fa fa-book"})," ",t.currentaction&&"add-institution"==t.currentaction?"Add Institution":"Update Institution -"+t.institution_id)),l.a.createElement(H.a.Body,null,l.a.createElement(U.a.Row,null,l.a.createElement(U.a.Group,{as:A.a,controlId:"institution.name"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-address-card"})," Name"),l.a.createElement(U.a.Control,{type:"text",name:"name",placeholder:"institution Name",value:t.name?t.name:"",onChange:function(e){return a(e.target.value)},required:!0})),l.a.createElement(U.a.Group,{as:A.a,controlId:"institution.short"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-clipboard"})," Shorter Name"),l.a.createElement(U.a.Control,{type:"text",name:"shortername",placeholder:"Shorter name",value:t.shortname?t.shortname:"",onChange:function(e){return n(e.target.value)},required:!0}))),l.a.createElement(U.a.Row,null,l.a.createElement(U.a.Group,{as:A.a,controlId:"email.suffix"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-envelope-circle"})," Email Suffix"),l.a.createElement(U.a.Control,{type:"text",name:"emailregex",placeholder:"Email Suffix",value:t.emailregex?t.emailregex:"",onChange:function(e){return r(e.target.value)},required:!0})),l.a.createElement(U.a.Group,{as:A.a,controlId:"inst.signupcode"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-code"})," Signup code"),l.a.createElement(U.a.Control,{type:"text",name:"signupcode",placeholder:"Sign up code",value:t.signupcode?t.signupcode:"",onChange:function(e){return s(e.target.value)},required:!0}))),l.a.createElement(U.a.Row,null,l.a.createElement(U.a.Group,{as:A.a,controlId:"inst.linkname"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-copy"})," Link Resolver Name"),l.a.createElement(U.a.Control,{type:"text",name:"linkresolvername",placeholder:"Link Resolver",value:t.link_resolver_name?t.link_resolver_name:"",onChange:function(e){return i(e.target.value)},required:!0})),l.a.createElement(U.a.Group,{as:A.a,controlId:"inst.linkurl"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-address-card-o"})," Link Resolver URL"),l.a.createElement(U.a.Control,{type:"text",name:"Linkresolverurl",placeholder:"Link Resolver URL",value:t.link_resolver_url?t.link_resolver_url:"",onChange:function(e){return c(e.target.value)},required:!0}))),l.a.createElement(U.a.Row,null,l.a.createElement(U.a.Group,{as:A.a,controlId:"inst.libkeyid"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-key"})," Libkey Id"),l.a.createElement(U.a.Control,{type:"text",name:"libkeyid",placeholder:"Libkey Library Id",value:t.libkeyaccessid?t.libkeyaccessid:"",onChange:function(e){return m(e.target.value)},required:!0})),l.a.createElement(U.a.Group,{as:A.a,controlId:"inst.libkeyaccesstoken"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-lock"})," Libkey Access Token"),l.a.createElement(U.a.Control,{type:"text",name:"Libkeyaccesstoken",placeholder:"Libkey Access Token",value:t.libkeyaccesstoken?t.libkeyaccesstoken:"",onChange:function(e){return d(e.target.value)},required:!0}))),l.a.createElement(U.a.Row,null,l.a.createElement(U.a.Group,{as:A.a,controlId:"oa.orgid"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-key"})," OpenAthens Org Id"),l.a.createElement(U.a.Control,{type:"text",name:"oaorgid",placeholder:"Organisation Id",value:t.oa_organisation_id?t.oa_organisation_id:"",onChange:function(e){return E(e.target.value)},required:!0})),l.a.createElement(U.a.Group,{as:A.a,controlId:"oa.scope"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-lock"})," OpenAthens Scope"),l.a.createElement(U.a.Control,{type:"text",name:"oascope",placeholder:"Scope",value:t.oa_scope?t.oa_scope:"",onChange:function(e){return u(e.target.value)},required:!0}))),l.a.createElement(U.a.Group,{controlId:"inst.ip"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-code"})," IP Addresse (one/line)"),l.a.createElement(U.a.Control,{type:"text",as:"textarea",rows:"4",name:"ipregex",placeholder:"IP",value:t.ip_regex?t.ip_regex:"",onChange:function(e){return o(e.target.value)},required:!0}),l.a.createElement("br",null),l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-key"})," Parent ID (Use integer id)"),l.a.createElement(U.a.Control,{type:"text",name:"parentid",placeholder:"parent id ",value:t.parentid?t.parentid:"",onChange:function(e){return f(e.target.value)},required:!0}))),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:p},l.a.createElement("i",{className:"fa fa-times"})," Close"),l.a.createElement(x.a,{variant:"primary",onClick:h},l.a.createElement("i",{className:"fa fa-disc"})," Save Changes"))))},kl=function(e){var t=e.user,a=e.startDate,n=e.endDate,r=e.setStartDate,i=e.setEndDate,c=e.setAmount,s=e.setPaid,o=e.setNotes,m=e.handleClose,d=e.handlePayment,u=e.show;return l.a.createElement(H.a,{show:u,onHide:m,animation:!1},l.a.createElement(U.a,{width:"100%",onSubmit:d},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-success"},l.a.createElement("i",{className:"fa fa-money"})," Add Payment - ",t.firstname," ",t.lastname)),l.a.createElement(H.a.Body,null,l.a.createElement(U.a.Group,{controlId:"paymentForm.email"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-info-circle-o"}),t.institution?" Institution Name":" Email address"),l.a.createElement(U.a.Control,{type:"email",name:"email",placeholder:"name@example.com",value:t.email?t.email:"",disabled:!0})),l.a.createElement(U.a.Group,{controlId:"paymentForm.from"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-calendar"})," From"),l.a.createElement("br",null),l.a.createElement(fl.a,{name:"date_from",showPopperArrow:!0,selected:a,onChange:function(e){return r(e)},dateFormat:"dd/MM/yyyy"})),l.a.createElement(U.a.Group,{controlId:"paymentForm.to"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-calendar"})," To"),l.a.createElement("br",null),l.a.createElement(fl.a,{name:"date_to",showPopperArrow:!0,selected:n,onChange:function(e){return i(e)},dateFormat:"dd/MM/yyyy"})),l.a.createElement(U.a.Group,{controlId:"amount"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-money"})," Amount"),l.a.createElement(U.a.Control,{type:"text",name:"amount",value:t.amount?t.amount:"",onChange:function(e){return c(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"paymentForm.paid"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-money"})," Paid"),l.a.createElement(U.a.Control,{type:"text",name:"paid",value:t.paid,onChange:function(e){return s(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"paymentForm.notes"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-comment"})," Notes"),l.a.createElement(U.a.Control,{type:"text",name:"notes",value:t.notes,onChange:function(e){return o(e.target.value)}}))),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:m},l.a.createElement("i",{className:"fa fa-times"})," Close"),l.a.createElement(x.a,{variant:"primary",onClick:d},l.a.createElement("i",{className:"fa fa-disc"})," Save Changes"))))},Cl=a(2),Tl=function(e){return Y.a.get(Cl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getInstitutionUsers?search="+e:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getInstitutionUsers?search="+e,{withCredentials:!0}).then((function(e){if(200===e.status)return e.data.users})).catch((function(e){console.log(e)}))},jl=function(e){var t=e.data,a=e.setEmail,n=e.setInstid,r=e.handleUserAdd,i=e.handleAdmin,c=e.handleUserRemove;return l.a.createElement(R.a,{variant:"info",border:"success"},l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,{className:"text text-success"},l.a.createElement("h4",null,t.institution_name)),l.a.createElement(j.a,{className:"mt-2"},l.a.createElement(A.a,null,Cl.isEmpty(t.payments)?l.a.createElement("h5",{className:"text-warning"},"No Payment Added"):l.a.createElement(L.a,null,l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",null,"From"),l.a.createElement("th",null,"To"),l.a.createElement("th",null,"Reminder Date"),l.a.createElement("th",null,"Amount"),l.a.createElement("th",null,"Paid"),l.a.createElement("th",null,"Active"),l.a.createElement("th",null,"Notes"))),l.a.createElement("tbody",null,t.payments.map((function(e,t){return l.a.createElement("tr",{key:t},l.a.createElement("td",null,e.date_from),l.a.createElement("td",null,e.date_to),l.a.createElement("td",null,e.date_reminded),l.a.createElement("td",null,e.amount),l.a.createElement("td",null,e.paid),l.a.createElement("td",null,1===e.active?l.a.createElement("i",{className:"fa fa-check-circle text-success"}):l.a.createElement("i",{className:"fa fa-times-circle text-danger"})),l.a.createElement("td",null,e.notes))})))))),l.a.createElement(j.a,{className:"mt-2"},l.a.createElement(A.a,null,Cl.isEmpty(t.users)?l.a.createElement("h5",{className:"text-warning"},"No Users Added"):l.a.createElement(L.a,null,l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",null,"email"),l.a.createElement("th",null,"First Name"),l.a.createElement("th",null,"Last Name"),l.a.createElement("th",null,"Admin"),l.a.createElement("th",null))),l.a.createElement("tbody",null,t.users.map((function(e,a){return l.a.createElement("tr",{key:a+"user"},l.a.createElement("td",null,e.email),l.a.createElement("td",null,e.firstname),l.a.createElement("td",null,e.lastname),l.a.createElement("td",null,e.isadmin?l.a.createElement("i",{className:"fa fa-toggle-on text-success",style:{cursor:"pointer"},onClick:function(a){return i(a,{user_id:e.user_id,institution_id:t.id,is_admin:0})}}):l.a.createElement("i",{className:"fa fa-toggle-off",style:{cursor:"pointer"},onClick:function(a){return i(a,{user_id:e.user_id,institution_id:t.id,is_admin:1})}})),l.a.createElement("td",null,l.a.createElement("i",{className:"fa fa-trash text-danger",style:{cursor:"pointer"},onClick:function(a){return c(a,{user_id:e.user_id,institution_id:t.id})}})))})))))),l.a.createElement(j.a,{className:"mt-2"},l.a.createElement(A.a,null,l.a.createElement(ul.a,{cacheOptions:!0,defaultOptions:!0,loadOptions:Tl,onChange:function(e){e.value&&(a(e.value),n(t.id))}})),l.a.createElement(A.a,null,l.a.createElement("button",{className:"btn btn-info all-round",institutionid:t.id,onClick:r},l.a.createElement("i",{className:"fa fa-plus"}))))))},Pl=(a(104),a(14)),Al=a(2),Dl=a(103).customStyles,Rl=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(!1),u=Object(h.a)(d,2),E=u[0],b=u[1],v=Object(n.useState)(!1),y=Object(h.a)(v,2),g=y[0],O=y[1],_=Object(n.useState)("institutions"),S=Object(h.a)(_,2),N=S[0],w=S[1],k=Object(n.useState)(!1),C=Object(h.a)(k,2),T=C[0],P=C[1],D=Object(n.useState)(""),R=Object(h.a)(D,2),U=R[0],L=R[1],I=Object(n.useState)(null),M=Object(h.a)(I,2),H=M[0],W=M[1],V=Object(n.useState)(""),B=Object(h.a)(V,2),Z=B[0],F=B[1],G=Object(n.useState)(""),Y=Object(h.a)(G,2),z=Y[0],Q=Y[1],$=Object(n.useState)(""),J=Object(h.a)($,2),X=J[0],ee=J[1],te=Object(n.useState)(""),ae=Object(h.a)(te,2),ne=ae[0],le=ae[1],re=Object(n.useState)(""),ie=Object(h.a)(re,2),ce=ie[0],oe=ie[1],me=Object(n.useState)(""),de=Object(h.a)(me,2),ue=de[0],Ee=de[1],fe=Object(n.useState)(""),pe=Object(h.a)(fe,2),he=pe[0],be=pe[1],ve=Object(n.useState)(""),ye=Object(h.a)(ve,2),ge=ye[0],Oe=ye[1],_e=Object(n.useState)(""),Se=Object(h.a)(_e,2),Ne=Se[0],we=Se[1],ke=Object(n.useState)(""),Ce=Object(h.a)(ke,2),Te=Ce[0],je=Ce[1],Pe=Object(n.useState)(""),Ae=Object(h.a)(Pe,2),De=Ae[0],Re=Ae[1],Ue=Object(n.useState)(!1),Le=Object(h.a)(Ue,2),xe=Le[0],Ie=Le[1],Me=Object(n.useState)(!1),He=Object(h.a)(Me,2),We=(He[0],He[1]),Ke=Object(n.useState)(!1),Ve=Object(h.a)(Ke,2),qe=Ve[0],Be=Ve[1],Ze=new Date;Ze.setFullYear(Ze.getFullYear()+1);var Fe=Object(n.useState)(""),Ge=Object(h.a)(Fe,2),Ye=Ge[0],ze=Ge[1],Qe=Object(n.useState)(""),$e=Object(h.a)(Qe,2),Je=$e[0],Xe=$e[1],et=Object(n.useState)(""),tt=Object(h.a)(et,2),at=tt[0],nt=tt[1],lt=Object(n.useState)(""),rt=Object(h.a)(lt,2),it=rt[0],ct=rt[1],st=Object(n.useState)(""),ot=Object(h.a)(st,2),mt=ot[0],dt=ot[1],ut=Object(n.useState)(""),Et=Object(h.a)(ut,2),ft=Et[0],pt=Et[1],ht=Object(n.useState)(new Date),bt=Object(h.a)(ht,2),vt=bt[0],yt=bt[1],gt=Object(n.useState)(Ze),St=Object(h.a)(gt,2),Nt=St[0],wt=St[1],kt=Object(n.useState)(""),Ct=Object(h.a)(kt,2),Tt=Ct[0],jt=(Ct[1],Object(n.useState)([])),Pt=Object(h.a)(jt,2),At=Pt[0],Dt=Pt[1],Rt=Object(n.useState)([]),Ut=Object(h.a)(Rt,2),Lt=Ut[0],xt=Ut[1],It=Object(n.useState)(0),Mt=Object(h.a)(It,2),Ht=Mt[0],Wt=Mt[1],Kt=Object(n.useState)([]),Vt=Object(h.a)(Kt,2),qt=Vt[0],Bt=(Vt[1],Object(n.useState)([])),Zt=Object(h.a)(Bt,2),Ft=(Zt[0],Zt[1]),Gt=Object(n.useState)(1),Yt=Object(h.a)(Gt,2),zt=Yt[0],Qt=Yt[1],$t=Object(n.useState)(1),Jt=Object(h.a)($t,2),Xt=(Jt[0],Jt[1]),ea=Object(n.useState)(""),ta=Object(h.a)(ea,2),aa=ta[0],na=ta[1],la=Object(n.useState)(!1),ra=Object(h.a)(la,2),ia=ra[0],ca=(ra[1],Object(n.useState)(!1)),sa=Object(h.a)(ca,2),oa=sa[0],ma=sa[1],da=Object(n.useState)("none"),ua=Object(h.a)(da,2),Ea=ua[0],fa=ua[1],pa=Object(n.useState)(10),ha=Object(h.a)(pa,2),ba=ha[0],va=ha[1],ya=Object(n.useState)(0),ga=Object(h.a)(ya,2),Oa=ga[0],_a=ga[1],Sa=Object(n.useState)(!0),Na=Object(h.a)(Sa,2),wa=Na[0],ka=Na[1],Ca=Object(n.useState)(),Ta=Object(h.a)(Ca,2),ja=Ta[0],Pa=Ta[1],Aa=Object(n.useState)(""),Da=Object(h.a)(Aa,2),Ra=Da[0],Ua=Da[1];function La(){return(La=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Pl.get(Al.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getInstitutions":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getInstitutions",{params:{page:zt,sort:ja,rows:ba,search:aa},withCredentials:!0}).then((function(e){if(200===e.status)Dt(e.data.results),Ft(e.data.lookupdata),_a(e.data.total),ka(!1);else{new Error(e.error_message);P(e.error_message),m(!0)}})).catch((function(e){P(e.message),m(!0),ka(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xa(e){return Ia.apply(this,arguments)}function Ia(){return(Ia=Object(p.a)(f.a.mark((function e(t){var a,n=arguments;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.length>1&&void 0!==n[1]?n[1]:1,Be(!0),Pl.get(Al.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getInstitutionStats":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getInstitutionStats",{params:{page:a,institution_id:t,rows:10},withCredentials:!0}).then((function(e){if(200===e.status)xt(e.data),Wt(e.data.total);else{new Error(e.error_message);P(e.error_message),m(!0)}})).catch((function(e){P(e.message),m(!0),ka(!1)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(n.useEffect)((function(){!function(){La.apply(this,arguments)}()}),[zt,ja,ba,oa,ia,g]);var Ma=function(){i(!1),Ie(!1),Be(!1),We(!1),m(!1),Xt(1)},Ha=function(e){switch(e.preventDefault(),e.target.getAttribute("data-action")){case"add-institution":fa(e.target.getAttribute("data-action")),Fa(),i(!0);break;case"edit-institution":fa(e.target.getAttribute("data-action")),Ua(e.target.getAttribute("data-value"));var t=Al.findWhere(At,{id:parseInt(e.target.getAttribute("data-value"),10)});L(t.institution_name),F(t.institution_shortname),Q(t.emailregex),oe(t.link_resolver_image),le(t.link_resolver_name),ee(t.link_resolver_url),Ee(t.signup_code),be(t.ip_regex),we(t.libkeyaccesstoken),Oe(t.libkeylibraryid),je(t.oa_organisation_id),Re(t.oa_scope),W(t.parentid),i(!0);break;case"delete-institution":O(!g);break;case"addpayment-institution":fa(e.target.getAttribute("data-action")),Ua(e.target.getAttribute("data-value"));t=Al.findWhere(At,{id:parseInt(e.target.getAttribute("data-value"),10)});ze(t.institution_shortname),Xe(""),nt(t.institution_shortname),Ie(!0);break;case"adduser-institution":fa(e.target.getAttribute("data-action")),Ua(e.target.getAttribute("data-value"));t=Al.findWhere(At,{id:parseInt(e.target.getAttribute("data-value"),10)});ze(""),Xe(""),nt(""),We(!0);break;case"stats-institution":Xt(1),fa(e.target.getAttribute("data-action")),Ua(e.target.getAttribute("data-value"));t=Al.findWhere(At,{id:parseInt(e.target.getAttribute("data-value"),10)});L(t.institution_name),xa(e.target.getAttribute("data-value"))}};function Wa(e){return Ka.apply(this,arguments)}function Ka(){return(Ka=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Pl.post(Al.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/createInstitutionUser":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/createInstitutionUser",t,{withCredentials:!0}).then((function(e){if(200===e.status)O(!g);else{new Error(e.error);P(e.error),m(!0)}})).catch((function(e){P(e),m(!0),ka(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Va=function(){ma(!oa),na("")},qa=function(e){console.log("oa",Te,De),Pl.post(Al.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/createInstitution":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/createInstitution",{institution_id:Ra,institution_shortname:Z,institution_name:U,emailregex:z,link_resolver_url:X,link_resolver_name:ne,link_resolver_img:ce,signup_code:ue,ip_regex:he,libkeylibraryid:ge,libkeyaccesstoken:Ne,parentid:H,oa_organisation_id:Te,oa_scope:De},{withCredentials:!0}).then((function(e){if(200===e.status)i(!1),O(!g);else{new Error(e.error_message);P(e.error_message),m(!0)}})).catch((function(e){P(e),m(!0),ka(!1)})),e.preventDefault()},Ba=function(){ka(!0),O(!g)},Za=[{name:"ID",selector:"id",sortable:!0,wrap:!0,maxWidth:"100px"},{name:"Full Name",selector:"institution_name",sortable:!0,maxWidth:"600px",wrap:!0},{name:"Short Name",selector:"institution_shortname",sortable:!0,maxWidth:"600px",wrap:!0},{name:"Email suffix",selector:"emailregex",sortable:!0,maxWidth:"30px",wrap:!0},{name:"Link Resolver Url",selector:"link_resolver_url",sortable:!0,maxWidth:"400px",wrap:!0},{cell:function(e){return l.a.createElement(tn.a,null,l.a.createElement(tn.a.Toggle,{variant:"success",id:"dropdown-basic"},l.a.createElement("i",{className:"fa fa-cog"})),l.a.createElement(tn.a.Menu,null,l.a.createElement(tn.a.Item,{href:"#/add-pub",onClick:Ha,"data-value":e.id,"data-action":"add-institution"},l.a.createElement("i",{className:"fa fa-plus-circle"})," Add New"),l.a.createElement(tn.a.Item,{href:"#/edit",onClick:Ha,"data-value":e.id,"data-action":"edit-institution"},l.a.createElement("i",{className:"fa fa-pencil"})," Edit"),l.a.createElement(tn.a.Item,{href:"#/stats",onClick:Ha,"data-value":e.id,"data-action":"stats-institution"},l.a.createElement("i",{className:"fa fa-bar-chart text-warning"})," Stats"),l.a.createElement(tn.a.Item,{href:"#/delete",onClick:Ha,"data-value":e.id,"data-action":"addpayment-institution"},l.a.createElement("i",{className:"fa fa-dollar text-success"})," Add Payment")))},ignoreRowClick:!0,allowOverflow:!0,button:!0}];function Fa(){return Ua(""),L(""),F(""),Q(""),oe(""),le(""),ee(""),Ee(""),be(""),we(""),Oe(""),Re(""),je(""),!0}var Ga=Object(n.useMemo)((function(){return l.a.createElement("div",null,l.a.createElement(j.a,{className:"mt-1"},l.a.createElement(x.a,{type:"button",className:"round-left",onClick:Va},"X"),l.a.createElement("input",{id:"search",type:"text",placeholder:"Full/Short Name,Email suffix",value:aa,onChange:function(e){return na(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&Ba()}}),l.a.createElement(x.a,{type:"button",className:"round-right",onClick:Ba},l.a.createElement("i",{className:"fa fa-search"})),"\xa0",l.a.createElement(x.a,{type:"button",onClick:function(e){fa("add-institution"),Fa(),i(!0)},className:"round-all"},l.a.createElement("i",{className:"fa fa-plus-circle"}))))}),[aa,oa]);return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:T,setErrorShow:m,show:o}),l.a.createElement(rl,{deletedata:qt,setDeleteShow:b,deleteshow:E,handleDelete:function(e){b(!1),O(!g)}}),l.a.createElement(kl,{user:{firstname:Ye,lastname:Je,email:at,amount:it,paid:mt,notes:ft,institution:Ra},startDate:vt,endDate:Nt,setStartDate:yt,setEndDate:wt,setAmount:ct,setPaid:dt,setNotes:pt,handleClose:Ma,handlePayment:function(e){Pl.post(Al.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/savePayment":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/savePayment",{user_id:null,institution_id:Ra,date_from:vt,date_to:Nt,amount:it,paid:mt,notes:ft},{withCredentials:!0}).then((function(e){if(200===e.status)Ie(!1),O(!g);else{new Error(e.error_message);P(e.error_message),m(!0)}})).catch((function(e){P(e),m(!0),ka(!1)})),e.preventDefault()},show:xe}),l.a.createElement(wl,{institution:{template_id:Ra,name:U,shortname:Z,emailregex:z,link_resolver_image:ce,link_resolver_name:ne,link_resolver_url:X,signupcode:ue,ip_regex:he,libkeyaccessid:ge,libkeyaccesstoken:Ne,oa_organisation_id:Te,oa_scope:De,parentid:H,currentaction:Ea},setInstName:L,setInstshortName:F,setInstEmailRegex:Q,setInstLinkResolverImage:oe,setInstLinkResolverName:le,setInstLinkResolverUrl:ee,setInstSignupcode:Ee,setInstIpRegex:be,setLibkeyaccessid:Oe,setLibkeyaccesstoken:we,setOAorgid:je,setOAscope:Re,setParentid:W,handleClose:Ma,handleInstitution:qa,show:r}),l.a.createElement(q,{institution:{institution_id:Ra,name:U},statsData:Lt,statsDataTotal:Ht,handleClose:Ma,handleInstitution:qa,handleInstitutionPageChange:function(e){Xt(e),xa(Ra,e)},show:qe}),l.a.createElement(j.a,null,l.a.createElement(al,null),l.a.createElement(A.a,null,l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"12"},l.a.createElement(ll.a,null,l.a.createElement(ll.a.Item,{href:"/Admin"},l.a.createElement("i",{className:"fa fa-home"})," Home"),l.a.createElement(ll.a.Item,{active:!0},l.a.createElement("i",{className:"fa fa-university"})," Institutions")))),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"12"},l.a.createElement(Ot.a,{id:"tabs",activeKey:N,onSelect:function(e){w(e)}},l.a.createElement(_t.a,{eventKey:"institutions",title:l.a.createElement("div",null,l.a.createElement("i",{className:"fa fa-university"})," Institutions")},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(K.a,{striped:!0,customStyles:Dl,columns:Za,data:At,progressPending:wa,expandableRows:!0,highlightOnHover:!0,expandOnRowClicked:!0,expandableRowsComponent:l.a.createElement(jl,{setEmail:nt,setInstid:Ua,handleUserAdd:function(e){Wa({institution_id:Ra,user_id:at,is_admin:Tt}),e.preventDefault()},handleAdmin:function(e,t){Wa({institution_id:t.institution_id,user_id:t.user_id,is_admin:t.is_admin}),e.preventDefault()},handleUserRemove:function(e,t){Pl.post(Al.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/deleteInstitutionUser":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/deleteInstitutionUser",t,{withCredentials:!0}).then((function(e){if(200===e.status)O(!g);else{new Error(e.error);P(e.error),m(!0)}})).catch((function(e){P(e),m(!0)})),e.preventDefault()}}),onSort:function(e,t){ka(!0),Pa([e.selector,t])},sortServer:!0,pagination:!0,paginationServer:!0,paginationTotalRows:Oa,onChangeRowsPerPage:function(e,t){ka(!0),va(e),Qt(t)},onChangePage:function(e){ka(!0),Qt(e)},subHeader:!0,subHeaderComponent:Ga}))))))))))},Ul=function(e){var t=e.user,a=e.setEmail,n=e.setFirstname,r=e.setLastname,i=e.handleClose,c=e.handleUpdateUser,s=e.show;return l.a.createElement(H.a,{show:s,onHide:i,size:"xl",animation:!1},l.a.createElement(U.a,{width:"100%"},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,null,"Modal heading")),l.a.createElement(H.a.Body,null,l.a.createElement(U.a.Group,{controlId:"exampleForm.ControlInput1"},l.a.createElement(U.a.Label,null,"Email address"),l.a.createElement(U.a.Control,{type:"email",name:"email",placeholder:"name@example.com",value:t.email?t.email:"",onChange:function(e){return a(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"exampleForm.ControlInput2"},l.a.createElement(U.a.Label,null,"First Name"),l.a.createElement(U.a.Control,{type:"text",name:"firstname",value:t.firstname?t.firstname:"",onChange:function(e){return n(e.target.value)}})),l.a.createElement(U.a.Group,{controlId:"exampleForm.ControlInput3"},l.a.createElement(U.a.Label,null,"Last Name"),l.a.createElement(U.a.Control,{type:"text",name:"lastname",value:t.lastname?t.lastname:"",onChange:function(e){return r(e.target.value)}}))),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:i},"Close"),l.a.createElement(x.a,{variant:"primary",onClick:c},"Save Changes"))))},Ll=a(14),xl=a(2),Il=a(103).customStyles,Ml=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(!1),u=Object(h.a)(d,2),E=u[0],b=u[1],v=Object(n.useState)(!1),y=Object(h.a)(v,2),g=y[0],O=y[1],_=Object(n.useState)(!1),S=Object(h.a)(_,2),N=S[0],w=S[1],k=Object(n.useState)([]),C=Object(h.a)(k,2),T=C[0],P=C[1],D=Object(n.useState)([]),I=Object(h.a)(D,2),M=I[0],H=I[1],W=Object(n.useState)([]),V=Object(h.a)(W,2),q=V[0],B=V[1],Z=Object(n.useState)(1),F=Object(h.a)(Z,2),G=F[0],Y=F[1],z=Object(n.useState)(""),Q=Object(h.a)(z,2),$=Q[0],J=Q[1],X=Object(n.useState)(1),ee=Object(h.a)(X,2),te=ee[0],ae=ee[1],ne=Object(n.useState)(0),le=Object(h.a)(ne,2),re=le[0],ie=le[1],ce=new Date;ce.setFullYear(ce.getFullYear()+1);var oe=Object(n.useState)(""),me=Object(h.a)(oe,2),de=me[0],ue=me[1],Ee=Object(n.useState)(""),fe=Object(h.a)(Ee,2),pe=fe[0],he=fe[1],be=Object(n.useState)(""),ve=Object(h.a)(be,2),ye=ve[0],ge=ve[1],Oe=Object(n.useState)(""),_e=Object(h.a)(Oe,2),Se=_e[0],Ne=_e[1],we=Object(n.useState)(""),ke=Object(h.a)(we,2),Ce=ke[0],Te=ke[1],je=Object(n.useState)(""),Pe=Object(h.a)(je,2),Ae=Pe[0],De=Pe[1],Re=Object(n.useState)(new Date),Ue=Object(h.a)(Re,2),Le=Ue[0],xe=Ue[1],Ie=Object(n.useState)(ce),Me=Object(h.a)(Ie,2),He=Me[0],We=Me[1],Ke=Object(n.useState)([]),Ve=Object(h.a)(Ke,2),qe=(Ve[0],Ve[1],Object(n.useState)("")),Be=Object(h.a)(qe,2),Ze=Be[0],Fe=Be[1],Ge=Object(n.useState)(!1),Ye=Object(h.a)(Ge,2),ze=Ye[0],Qe=Ye[1],$e=Object(n.useState)("none"),Je=Object(h.a)($e,2),Xe=(Je[0],Je[1]),et=Object(n.useState)(10),tt=Object(h.a)(et,2),at=tt[0],nt=tt[1],lt=Object(n.useState)(0),rt=Object(h.a)(lt,2),it=rt[0],ct=rt[1],st=Object(n.useState)(!0),ot=Object(h.a)(st,2),mt=ot[0],dt=ot[1],ut=Object(n.useState)(),Et=Object(h.a)(ut,2),ft=Et[0],pt=Et[1],ht=Object(n.useState)([]),bt=Object(h.a)(ht,2),vt=(bt[0],bt[1],Object(n.useState)({})),yt=Object(h.a)(vt,2),gt=(yt[0],yt[1],Object(n.useState)(!1)),St=Object(h.a)(gt,2),Nt=St[0],wt=St[1];function kt(){return(kt=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ll.get(xl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getData":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getData",{params:{page:te,sort:ft,rows:at,search:Ze,deleted:$},withCredentials:!0}).then((function(e){if(200===e.status)P(e.data.results),H(e.data.lookupdata),ct(e.data.total),dt(!1);else{new Error(e.error_message);w(e.error_message),b(!0)}})).catch((function(e){w(e.message),b(!0),dt(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(n.useEffect)((function(){!function(){kt.apply(this,arguments)}()}),[te,ft,at,ze,$,Nt]);var Ct=function(e){dt(!0),J(e.target.value),wt(!Nt)},Tt=function(e){i(!1),m(!1),b(!1)},jt=function(e){switch(e.preventDefault(),e.target.getAttribute("data-action")){case"edit":Xe(e.target.getAttribute("data-action")),ie(e.target.getAttribute("data-value"));var t=xl.findWhere(T,{id:parseInt(e.target.getAttribute("data-value"),10)});ue(t.firstname),he(t.lastname),ge(t.email),i(!0);break;case"payment":Xe(e.target.getAttribute("data-action")),ie(e.target.getAttribute("data-value"));t=xl.findWhere(T,{id:parseInt(e.target.getAttribute("data-value"),10)});ue(t.firstname),he(t.lastname),ge(t.email),m(!0);break;case"delete":t=xl.findWhere(T,{id:parseInt(e.target.getAttribute("data-value"),10)});B({id:e.target.getAttribute("data-value"),description:t.firstname+" "+t.lastname,info:"1"==e.target.getAttribute("delete-action")?"Delete":"Activate"}),Y(e.target.getAttribute("delete-action")),O(!0)}},Pt=[{name:"First Name",selector:"firstname",sortable:!0},{name:"Last Name",selector:"lastname",sortable:!0},{name:"Email",selector:"email",sortable:!0},{name:"Country",selector:"country_name",sortable:!1},{name:"Profession",selector:"title",sortable:!1,right:!0},{cell:function(e){return l.a.createElement(tn.a,null,l.a.createElement(tn.a.Toggle,{variant:"success",id:"dropdown-basic"},l.a.createElement("i",{className:"fa fa-cog"})),l.a.createElement(tn.a.Menu,null,l.a.createElement(tn.a.Item,{href:"#/edit",className:"edt-user",onClick:jt,"data-value":e.id,"data-action":"edit"},l.a.createElement("i",{className:"fa fa-pencil"})," Edit"),l.a.createElement(tn.a.Item,{href:"#/delete",onClick:jt,"data-value":e.id,"data-action":"delete","delete-action":1==e.deleted?"0":"1"},l.a.createElement("i",{className:"fa fa-trash"})," ",1==e.deleted?"Activate":"Delete"),l.a.createElement(tn.a.Item,{href:"#/payment",onClick:jt,"data-value":e.id,"data-action":"payment"},l.a.createElement("i",{className:"fa fa-user-o"})," Add Payment")))},ignoreRowClick:!0,allowOverflow:!0,button:!0}],At=function(){Qe(!ze),Fe("")},Dt=function(){wt(!Nt)},Rt=Object(n.useMemo)((function(){return l.a.createElement("div",null,l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(U.a,null,l.a.createElement(U.a.Control,{width:"100%",as:"select",defaultValue:$,onChange:Ct},l.a.createElement("option",{value:"0"},"Active Users"),l.a.createElement("option",{value:"1"},"Archived Users"))))),l.a.createElement(j.a,null,l.a.createElement(x.a,{type:"button",className:"round-left",onClick:At},"X"),l.a.createElement("input",{id:"search",type:"text",placeholder:"Search by Name or Email",value:Ze,onChange:function(e){return Fe(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&Dt()}}),l.a.createElement(x.a,{className:"round-right",type:"button",onClick:Dt},l.a.createElement("i",{className:"fa fa-search"})))," ")}),[Ze,ze]);return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:N,setErrorShow:b,show:E}),l.a.createElement(rl,{deletedata:q,setDeleteShow:O,deleteshow:g,handleDelete:function(e){O(!1),Ll.post(xl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/deleteUser":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/deleteUser",{user_id:e.target.getAttribute("data-value"),deleted:G},{withCredentials:!0}).then((function(e){if(200===e.status)wt(!Nt);else{new Error(e.error);w(e.error),b(!0)}})).catch((function(e){w(e),b(!0),dt(!1)}))}}),l.a.createElement(Ul,{user:{firstname:de,lastname:pe,email:ye},setEmail:ge,setFirstname:ue,setLastname:he,handleClose:Tt,handleUpdateUser:function(e){Ll.post(xl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/updateUser":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/updateUser",{user_id:re,firstname:de,lastname:pe,email:ye,withCredentials:!0},{withCredentials:!0}).then((function(e){if(200===e.status)i(!1),wt(!Nt);else{new Error(e.error);w(e.error),b(!0)}})).catch((function(e){w(e),b(!0),dt(!1)}))},show:r}),l.a.createElement(kl,{user:{firstname:de,lastname:pe,email:ye,amount:Se,paid:Ce,notes:Ae,institution:!1},startDate:Le,endDate:He,setStartDate:xe,setEndDate:We,setAmount:Ne,setPaid:Te,setNotes:De,handleClose:Tt,handlePayment:function(e){Ll.post(xl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/savePayment":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/savePayment",{user_id:re,date_from:Le,date_to:He,amount:Se,paid:Ce,notes:Ae},{withCredentials:!0}).then((function(e){if(200===e.status)m(!1),dt(!0),wt(!Nt);else{new Error(e.error_message);w(e.error_message),b(!0)}})).catch((function(e){w(e),b(!0),dt(!1)})),e.preventDefault()},show:o}),l.a.createElement(j.a,null,l.a.createElement(al,null),l.a.createElement(A.a,null,l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"12"},l.a.createElement(ll.a,null,l.a.createElement(ll.a.Item,{href:"/Admin"},l.a.createElement("i",{className:"fa fa-home"})," Home"),l.a.createElement(ll.a.Item,{active:!0},l.a.createElement("i",{className:"fa fa-users"})," Users")))),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"12"},l.a.createElement(Ot.a,{id:"tabs"},l.a.createElement(_t.a,{eventKey:"pro",title:l.a.createElement("div",null,l.a.createElement("i",{className:"fa fa-users"})," Users")},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(K.a,{striped:!0,customStyles:Il,columns:Pt,data:T,progressPending:mt,expandableRows:!0,highlightOnHover:!0,defaultSortField:"name",expandOnRowClicked:!0,expandableRowsComponent:l.a.createElement((function(e){var t,a=e.data;t=xl.isUndefined(M.clinical_areas)?[]:M.clinical_areas;var n="";if(!xl.isEmpty(a.clinicalareaids)){var r=xl.isEmpty(a.clinicalareaids)?[]:a.clinicalareaids.split(",");n=xl.chain(r).map((function(e){var a="",n=xl.findWhere(t,{value:parseInt(e,10)});return n&&(a+=n.label?n.label:""),a})).join(" , ").value()}return l.a.createElement(R.a,{variant:"info",border:"success"},l.a.createElement(R.a.Body,null,l.a.createElement(R.a.Header,{className:"text text-success"},l.a.createElement("h4",null,a.firstname," ",a.lastname)),l.a.createElement(j.a,{className:"mt-2"},l.a.createElement(A.a,{md:"2"},"Interests")," ",l.a.createElement(A.a,null,a.interests)),l.a.createElement(j.a,{className:"mt-2"},l.a.createElement(A.a,{md:"2"},"Clinical Area"),l.a.createElement(A.a,null,n)),xl.isEmpty(a.payments)?l.a.createElement("h5",{className:"text-warning"},"No Payment Added!"):l.a.createElement(j.a,{className:"mt-2"},l.a.createElement(A.a,null,l.a.createElement(L.a,null,l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",null,"From"),l.a.createElement("th",null,"To"),l.a.createElement("th",null,"Reminder Date"),l.a.createElement("th",null,"Amount"),l.a.createElement("th",null,"Paid"),l.a.createElement("th",null,"Active"),l.a.createElement("th",null,"Notes"))),l.a.createElement("tbody",null,a.payments.map((function(e,t){return l.a.createElement("tr",{key:t},l.a.createElement("td",null,e.date_from),l.a.createElement("td",null,e.date_to),l.a.createElement("td",null,e.date_reminded),l.a.createElement("td",null,e.amount),l.a.createElement("td",null,e.paid),l.a.createElement("td",null,1===e.active?l.a.createElement("i",{className:"fa fa-check-circle text-success"}):l.a.createElement("i",{className:"fa fa-times-circle text-danger"})),l.a.createElement("td",null,e.notes))}))))))))}),null),onSort:function(e,t){dt(!0),pt([e.selector,t])},sortServer:!0,pagination:!0,paginationServer:!0,paginationTotalRows:it,onChangeRowsPerPage:function(e,t){dt(!0),nt(e),ae(t)},onChangePage:function(e){dt(!0),ae(e)},subHeader:!0,subHeaderComponent:Rt}))))))))))},Hl=function(e){var t=e.template,a=e.setTemplateSubject,n=e.setTemplateName,r=e.setTemplateCode,i=e.setDescription,c=e.setTemplateType,s=e.handleClose,o=e.handleTemplate,m=e.show;return l.a.createElement(H.a,{show:m,onHide:s,animation:!1,size:"xl",enforceFocus:!1,"data-focus":"false"},l.a.createElement(U.a,{width:"100%",onSubmit:o},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-success"},l.a.createElement("i",{className:"fa fa-book"})," ",t.currentaction&&"add-template"==t.currentaction?"Add Email Template":"Update Email Template -"+t.template_id)),l.a.createElement(H.a.Body,null,l.a.createElement(U.a.Group,{controlId:"template.code"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-envelope"})," Code"),l.a.createElement(U.a.Control,{type:"text",name:"name",placeholder:"Template Code",value:t.code?t.code:"",onChange:function(e){return r(e.target.value)},required:!0})),l.a.createElement(U.a.Group,{controlId:"template.subject"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-envelope"})," Name"),l.a.createElement(U.a.Control,{type:"text",name:"name",placeholder:"Template Name",value:t.name?t.name:"",onChange:function(e){return n(e.target.value)},required:!0})),l.a.createElement(U.a.Group,{controlId:"template.subject"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-envelope"})," Subject"),l.a.createElement(U.a.Control,{type:"text",name:"subject",placeholder:"Subject",value:t.subject?t.subject:"",onChange:function(e){return a(e.target.value)},required:!0})),l.a.createElement(U.a.Group,{controlId:"template.body"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-copy"})," Body"),l.a.createElement(un.a,{style:{height:"500px"},editor:fn.a,data:t.description?t.description:"",onInit:function(e){},onChange:function(e,t){i(t.getData())}})),l.a.createElement(U.a.Group,{controlId:"template.type"},l.a.createElement(U.a.Label,null,"Select Type"),l.a.createElement(U.a.Control,{as:"select",defaultValue:t.templatetype?t.templatetype:"Broadcast",onChange:function(e){return c(e.target.value)}},l.a.createElement("option",null,"Auto"),l.a.createElement("option",null,"Broadcast")))),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:s},l.a.createElement("i",{className:"fa fa-times"})," Close"),l.a.createElement(x.a,{variant:"primary",onClick:o},l.a.createElement("i",{className:"fa fa-disc"})," Save Changes"))))},Wl=function(e){var t=e.batch,a=e.batchselectbody,r=e.batchselectsubject,i=e.setBatchselectbody,c=e.setBatchselectsubject,s=e.setBatchName,o=e.setBatchStatus,m=e.handleClose,d=e.handleBatch,u=e.show,E=Object(n.useState)(""),f=Object(h.a)(E,2),p=f[0],b=f[1];return l.a.createElement(H.a,{show:u,onHide:m,animation:!1,size:"xl"},l.a.createElement(U.a,{width:"100%",onSubmit:d},l.a.createElement(H.a.Header,{closeButton:!0},l.a.createElement(H.a.Title,{className:"text-success"},l.a.createElement("i",{className:"fa fa-book"})," ",t.currentaction&&"add-article"==t.currentaction?"Add New Batch":"Update Batch -"+t.batch_id)),l.a.createElement(H.a.Body,null,l.a.createElement(U.a.Group,{controlId:"batch.template"},l.a.createElement(U.a.Label,null,"Template"),l.a.createElement(ul.a,{cacheOptions:!0,defaultOptions:!0,loadOptions:function(e){return Y.a.get(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getAllTemplates?type=Broadcast&search="+e:Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getAllTemplates?type=Broadcast&search="+e,{withCredentials:!0}).then((function(e){if(200===e.status)return b(e.data.data),e.data.lookupdata})).catch((function(e){console.log(e)}))},onChange:function(e){return function(e){if(e.value){var t=C.default.findWhere(p,{id:e.value});c(t.subject),i(t.body),s(t.subject)}}(e)}})),l.a.createElement(U.a.Group,{controlId:"template.subject"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-envelope"})," Subject"),l.a.createElement(U.a.Control,{type:"text",name:"subject",placeholder:"Subject",value:r,onChange:function(e){c(e.target.value)},required:!0})),l.a.createElement(U.a.Group,{controlId:"template.body"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-copy"})," Body"),l.a.createElement(un.a,{editor:fn.a,data:a,onChange:function(e,t){i(t.getData())}})),l.a.createElement(U.a.Group,{controlId:"batch.title"},l.a.createElement(U.a.Label,null,l.a.createElement("i",{className:"fa fa-info-circle"})," Name"),l.a.createElement(U.a.Control,{type:"text",name:"batch_name",placeholder:"Name",value:t.batch_name?t.batch_name:"",onChange:function(e){return s(e.target.value)},required:!0})),t.currentaction&&"edit-article"==t.currentaction?l.a.createElement(U.a.Group,{controlId:"exampleForm.ControlSelect1"},l.a.createElement(U.a.Label,null,"Status"),l.a.createElement(U.a.Control,{width:"100%",as:"select",defaultValue:t.batch_status,onChange:function(e){return o(e.target.value)}},l.a.createElement("option",null,"Queued"),l.a.createElement("option",null,"Progress"),l.a.createElement("option",null,"Complete"),l.a.createElement("option",null,"Test"))):""),l.a.createElement(H.a.Footer,null,l.a.createElement(x.a,{variant:"secondary",onClick:m},l.a.createElement("i",{className:"fa fa-times"})," Close"),l.a.createElement(x.a,{variant:"danger",onClick:function(e){d(e,"Cancel")}},l.a.createElement("i",{className:"fa fa-back"})," Abort/Cancel Email"),l.a.createElement(x.a,{variant:"warning",onClick:function(e){d(e,"Test")}},l.a.createElement("i",{className:"fa fa-check"})," Test Email"),l.a.createElement(x.a,{variant:"success",onClick:function(e){d(e,"Queued")}},l.a.createElement("i",{className:"fa fa-envolope"})," Send Email"))))},Kl=(a(104),a(14)),Vl=a(2),ql=a(103).customStyles,Bl=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(!1),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(!1),u=Object(h.a)(d,2),E=u[0],b=u[1],v=Object(n.useState)(!1),y=Object(h.a)(v,2),g=y[0],O=y[1],_=Object(n.useState)("broadcast"),S=Object(h.a)(_,2),N=S[0],w=S[1],k=Object(n.useState)(!1),C=Object(h.a)(k,2),T=C[0],P=C[1],D=Object(n.useState)(""),R=Object(h.a)(D,2),U=R[0],L=R[1],I=Object(n.useState)(""),M=Object(h.a)(I,2),H=M[0],W=M[1],V=Object(n.useState)(""),q=Object(h.a)(V,2),B=q[0],Z=q[1],F=Object(n.useState)(""),G=Object(h.a)(F,2),Y=G[0],z=G[1],Q=Object(n.useState)(""),$=Object(h.a)(Q,2),J=$[0],X=$[1],ee=Object(n.useState)([]),te=Object(h.a)(ee,2),ae=te[0],ne=te[1],le=Object(n.useState)([]),re=Object(h.a)(le,2),ie=re[0],ce=re[1],oe=Object(n.useState)([]),me=Object(h.a)(oe,2),de=(me[0],me[1]),ue=Object(n.useState)(1),Ee=Object(h.a)(ue,2),fe=Ee[0],pe=Ee[1],he=Object(n.useState)(""),be=Object(h.a)(he,2),ve=be[0],ye=be[1],ge=Object(n.useState)(""),Oe=Object(h.a)(ge,2),_e=Oe[0],Se=Oe[1],Ne=Object(n.useState)(!1),we=Object(h.a)(Ne,2),ke=we[0],Ce=we[1],Te=Object(n.useState)(!1),je=Object(h.a)(Te,2),Pe=je[0],Ae=je[1],De=Object(n.useState)("none"),Re=Object(h.a)(De,2),Ue=Re[0],Le=Re[1],xe=Object(n.useState)(10),Ie=Object(h.a)(xe,2),Me=Ie[0],He=Ie[1],We=Object(n.useState)(0),Ke=Object(h.a)(We,2),Ve=Ke[0],qe=Ke[1],Be=Object(n.useState)(!0),Ze=Object(h.a)(Be,2),Fe=Ze[0],Ge=Ze[1],Ye=Object(n.useState)(),ze=Object(h.a)(Ye,2),Qe=ze[0],$e=ze[1],Je=Object(n.useState)(""),Xe=Object(h.a)(Je,2),et=Xe[0],tt=Xe[1],at=Object(n.useState)([]),nt=Object(h.a)(at,2),lt=nt[0],rt=nt[1],it=Object(n.useState)(1),ct=Object(h.a)(it,2),st=ct[0],ot=ct[1],mt=Object(n.useState)(20),dt=Object(h.a)(mt,2),ut=dt[0],Et=dt[1],ft=Object(n.useState)(0),pt=Object(h.a)(ft,2),ht=pt[0],bt=pt[1],vt=Object(n.useState)(!0),yt=Object(h.a)(vt,2),gt=yt[0],St=yt[1],Nt=Object(n.useState)(),wt=Object(h.a)(Nt,2),kt=wt[0],Ct=wt[1],Tt=Object(n.useState)(""),jt=Object(h.a)(Tt,2),Pt=jt[0],At=jt[1],Dt=Object(n.useState)(""),Rt=Object(h.a)(Dt,2),Ut=Rt[0],Lt=Rt[1],xt=Object(n.useState)("Queued"),It=Object(h.a)(xt,2),Mt=It[0],Ht=It[1],Wt=Object(n.useState)(!1),Kt=Object(h.a)(Wt,2),Vt=Kt[0],qt=Kt[1],Bt=Object(n.useState)(""),Zt=Object(h.a)(Bt,2),Ft=Zt[0],Gt=Zt[1],Yt=Object(n.useState)(""),zt=Object(h.a)(Yt,2),Qt=zt[0],$t=zt[1];function Jt(){return(Jt=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Kl.get(Vl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getEmailTemplates":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getEmailTemplates",{params:{page:fe,sort:Qe,rows:Me,search:ve},withCredentials:!0}).then((function(e){if(200===e.status)ne(e.data.results),de(e.data.lookupdata),qe(e.data.total),Ge(!1);else{new Error(e.error_message);P(e.error_message),m(!0)}})).catch((function(e){P(e.message),m(!0),Ge(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xt(e){return ea.apply(this,arguments)}function ea(){return(ea=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Kl.get(Vl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/getEmailBatches":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/getEmailBatches",{params:{page:st,sort:kt,rows:ut,search:_e,batch_status:t},withCredentials:!0}).then((function(e){if(200===e.status)rt(e.data.results),bt(e.data.total),St(!1);else{new Error(e.error);P(e.error),m(!0)}})).catch((function(e){P(e.message),m(!0),St(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ta(){return(ta=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Kl.post(Vl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/createEmailBatch":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/createEmailBatch",{batch_id:Pt,batch_name:Ut,batch_status:t,subject:Ft,body:Qt,withCredentials:!0},{withCredentials:!0}).then((function(e){if(200===e.status)qt(!1),Xt();else{new Error(e.error);P(e.error),m(!0)}})).catch((function(e){P(e.message),m(!0),St(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(n.useEffect)((function(){!function(){Jt.apply(this,arguments)}(),Xt()}),[fe,st,Qe,kt,Me,ut,Pe,ke,g]);var aa=function(){i(!1),qt(!1),m(!1)},na=function(e){switch(e.preventDefault(),Le(e.target.getAttribute("data-action")),e.target.getAttribute("data-action")){case"add-template":Z(""),L(""),W(""),z(""),X(""),i(!0);break;case"edit-template":tt(e.target.getAttribute("data-value"));var t=Vl.findWhere(ae,{id:parseInt(e.target.getAttribute("data-value"),10)});z(t.body),X(t.type),Z(t.subject),L(t.name),W(t.code),i(!0);break;case"delete-template":t=Vl.findWhere(ae,{id:parseInt(e.target.getAttribute("data-value"),10)});ce({id:e.target.getAttribute("data-value"),description:t.name,action:e.target.getAttribute("data-action")}),b(!0),O(!g)}},la=function(e){switch(e.preventDefault(),e.target.getAttribute("data-action")){case"add-batch":Le(e.target.getAttribute("data-action")),At(""),Lt(""),$t(""),Gt(""),Ht("Queued"),qt(!0);break;case"edit-batch":Le(e.target.getAttribute("data-action")),At(e.target.getAttribute("data-value"));var t=Vl.findWhere(lt,{id:parseInt(e.target.getAttribute("data-value"),10)});$t(t.message),Gt(t.subject),Lt(t.batch_name),Ht(t.batch_status),qt(!0);break;case"delete-batch":t=Vl.findWhere(lt,{id:parseInt(e.target.getAttribute("data-value"),10)});O(!g)}},ra=[{name:"ID",selector:"id",sortable:!0,wrap:!0,maxWidth:"60px"},{name:"Code",selector:"code",sortable:!0,maxWidth:"80px",wrap:!0},{name:"Name",selector:"name",sortable:!0,maxWidth:"100px",wrap:!0},{name:"Subject",selector:"subject",sortable:!0,maxWidth:"600px",wrap:!0},{name:"Type",selector:"type",sortable:!0,maxWidth:"30px",wrap:!0},{name:"Date Created",selector:"createdAt",sortable:!0,wrap:!0},{cell:function(e){return l.a.createElement(tn.a,null,l.a.createElement(tn.a.Toggle,{variant:"success",id:"dropdown-basic"},l.a.createElement("i",{className:"fa fa-cog"})),l.a.createElement(tn.a.Menu,null,l.a.createElement(tn.a.Item,{href:"#/add-pub",onClick:na,"data-value":e.id,"data-action":"add-template"},l.a.createElement("i",{className:"fa fa-plus-circle"})," Add New"),l.a.createElement(tn.a.Item,{href:"#/edit",onClick:na,"data-value":e.id,"data-action":"edit-template"},l.a.createElement("i",{className:"fa fa-pencil"})," Edit"),l.a.createElement(tn.a.Item,{href:"#/delete",onClick:na,"data-value":e.id,"data-action":"delete-template"},l.a.createElement("i",{className:"fa fa-trash text-danger"})," Delete")))},ignoreRowClick:!0,allowOverflow:!0,button:!0}],ia=[{name:"ID",selector:"id",sortable:!0,maxWidth:"80px"},{name:"Broadcast Batch",selector:"batch_name",sortable:!0,maxWidth:"600px",wrap:!0},{name:"Status",selector:"batch_status",sortable:!1,maxWidth:"300px"},{name:"Date Created",selector:"createdAt",sortable:!0,maxWidth:"80px"},{cell:function(e){return l.a.createElement(tn.a,null,l.a.createElement(tn.a.Toggle,{variant:"success",id:"dropdown-basic"},l.a.createElement("i",{className:"fa fa-cog"})),l.a.createElement(tn.a.Menu,null,l.a.createElement(tn.a.Item,{href:"#/profile",onClick:la,"data-value":e.id,"data-action":"add-batch"},l.a.createElement("i",{className:"fa fa-plus-circle"})," Add New"),l.a.createElement(tn.a.Item,{href:"#/edit",onClick:la,"data-value":e.id,"data-action":"edit-batch"},l.a.createElement("i",{className:"fa fa-pencil"})," Edit"),l.a.createElement(tn.a.Item,{href:"#/delete",onClick:la,"data-value":e.id,"data-action":"delete-batch"},l.a.createElement("i",{className:"fa fa-trash-o text-danger"})," Delete")))},ignoreRowClick:!0,allowOverflow:!0,button:!0}],ca=function(){Ae(!Pe),ye("")},sa=function(){Ce(!ke),Se("")},oa=function(){O(!g)},ma=function(){O(!g)};function da(){return(da=Object(p.a)(f.a.mark((function e(t){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Kl.post(Vl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/deleteEmailTemplate":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/deleteEmailTemplate",{template_id:t},{withCredentials:!0}).then((function(e){if(200===e.status)O(!g);else{new Error(e.error);P(e.error),m(!0)}})).catch((function(e){P(e),m(!0),Ge(!1)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ua=Object(n.useMemo)((function(){return l.a.createElement("div",null,l.a.createElement(j.a,{className:"mt-1"},l.a.createElement(x.a,{type:"button",className:"round-left",onClick:ca},"X"),l.a.createElement("input",{id:"search",type:"text",placeholder:"Search by Title or URL",value:ve,onChange:function(e){return ye(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&oa()}}),l.a.createElement(x.a,{type:"button",className:"round-right",onClick:oa},l.a.createElement("i",{className:"fa fa-search"})),"\xa0",l.a.createElement(x.a,{type:"button",onClick:function(e){Le("add-template"),Z(""),L(""),z(""),X(""),i(!0)},className:"round-all"},l.a.createElement("i",{className:"fa fa-plus-circle"}))))}),[ve,Pe]),Ea=Object(n.useMemo)((function(){return l.a.createElement("div",null,l.a.createElement(j.a,{className:"mt-1"},l.a.createElement(x.a,{type:"button",className:"round-left",onClick:sa},"X"),l.a.createElement("input",{id:"search_article",type:"text",placeholder:"Search by Title or URL",value:_e,onChange:function(e){return Se(e.target.value)},onKeyPress:function(e){"Enter"===e.key&&ma()}}),l.a.createElement(x.a,{type:"button",className:"round-right",onClick:ma},l.a.createElement("i",{className:"fa fa-search"})),"\xa0 \xa0",l.a.createElement(x.a,{type:"button",onClick:function(e){Le("add-batch"),Lt(""),$t(""),Gt(""),Ht("Test"),qt(!0)},className:"round-all"},l.a.createElement("i",{className:"fa fa-plus-circle"}))))}),[_e,ke]);return l.a.createElement("main",{role:"main",className:"container-fluid main mt-2"},l.a.createElement(se,{error:T,setErrorShow:m,show:o}),l.a.createElement(rl,{deletedata:ie,setDeleteShow:b,deleteshow:E,handleDelete:function(e){switch(b(!1),e.target.getAttribute("data-action")){case"delete-template":Ge(!0),function(e){da.apply(this,arguments)}(e.target.getAttribute("data-value"))}}}),l.a.createElement(Hl,{template:{template_id:et,subject:B,name:U,code:H,description:Y,templatetype:J,currentaction:Ue},setTemplateSubject:Z,setTemplateName:L,setTemplateCode:W,setDescription:z,setTemplateType:X,handleClose:aa,handleTemplate:function(e){Kl.post(Vl.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Administrator/createEmailTemplate":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Administrator/createEmailTemplate",{template_id:et,subject:B,name:U,description:Y,code:H,type:J||"Broadcast",withCredentials:!0},{withCredentials:!0}).then((function(e){if(200===e.status)i(!1),O(!g);else{new Error(e.error_message);P(e.error_message),m(!0)}})).catch((function(e){P(e),m(!0),Ge(!1)})),e.preventDefault()},show:r}),l.a.createElement(Wl,{batch:{batch_id:Pt,batch_name:Ut,batch_status:Mt,currentaction:Ue},batchselectbody:Qt,batchselectsubject:Ft,setBatchselectbody:$t,setBatchselectsubject:Gt,setBatchName:Lt,setBatchStatus:Ht,handleClose:aa,handleBatch:function(e,t){e.preventDefault(),function(e){ta.apply(this,arguments)}(t)},show:Vt}),l.a.createElement(j.a,null,l.a.createElement(al,null),l.a.createElement(A.a,null,l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"12"},l.a.createElement(ll.a,null,l.a.createElement(ll.a.Item,{href:"/Admin"},l.a.createElement("i",{className:"fa fa-home"})," Home"),l.a.createElement(ll.a.Item,{active:!0},l.a.createElement("i",{className:"fa fa-envelope"})," Emails")))),l.a.createElement(j.a,null,l.a.createElement(A.a,{md:"12"},l.a.createElement(Ot.a,{id:"tabs",activeKey:N,onSelect:function(e){O(!g),w(e)}},l.a.createElement(_t.a,{eventKey:"broadcast",title:l.a.createElement("div",null,l.a.createElement("i",{className:"fa fa-university"})," eBroadcast")},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(K.a,{striped:!0,customStyles:ql,columns:ia,data:lt,progressPending:gt,highlightOnHover:!0,defaultSortField:"date_entered",onSort:function(e,t){St(!0),Ct([e.selector,t])},sortServer:!0,pagination:!0,paginationServer:!0,paginationTotalRows:ht,onChangeRowsPerPage:function(e,t){St(!0),Et(e),ot(t)},onChangePage:function(e){St(!0),ot(e)},subHeader:!0,subHeaderComponent:Ea})))),l.a.createElement(_t.a,{eventKey:"templates",title:l.a.createElement("div",null,l.a.createElement("i",{className:"fa fa-book"})," Templates")},l.a.createElement(j.a,null,l.a.createElement(A.a,null,l.a.createElement(K.a,{striped:!0,customStyles:ql,columns:ra,data:ae,progressPending:Fe,highlightOnHover:!0,onSort:function(e,t){Ge(!0),$e([e.selector,t])},sortServer:!0,pagination:!0,paginationServer:!0,paginationTotalRows:Ve,onChangeRowsPerPage:function(e,t){Ge(!0),He(e),pe(t)},onChangePage:function(e){Ge(!0),pe(e)},subHeader:!0,subHeaderComponent:ua}))))))))))},Zl=a(14),Fl=a(29),Gl=a(216),Yl=function(e){var t=Object(n.useState)(""),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(""),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(""),u=Object(h.a)(d,2),E=u[0],f=u[1],p=Object(n.useState)(!1),b=Object(h.a)(p,2),v=b[0],y=b[1],g=k().setAuthTokens;return Object(n.useEffect)((function(){document.title="Login - CMS Trip Medical Database",document.body.classList.remove("homepage"),function(){var e="";if(C.default.isUndefined(Fl.get("remember")))y(!1);else if(e=C.default.isNull(Fl.get("remember"))||""===Fl.get("remember")?null:Fl.get("remember"),C.default.isNull(e))y(!1);else{var t=Gl.decode(e,{complete:!0});C.default.isUndefined(t.payload)||(i(t.payload.username),m(t.payload.password),y(!0))}}()}),[]),l.a.createElement("main",{role:"main",className:"main"},l.a.createElement("br",null),l.a.createElement(j.a,{className:"mt-4 mb-4"},l.a.createElement(A.a,{md:2}),l.a.createElement(A.a,{md:6},l.a.createElement("div",{className:"card"},l.a.createElement("div",{className:"card-body"},l.a.createElement("div",{className:"card-header mb-2"},l.a.createElement("h2",null,"Login")),l.a.createElement(qn,{logindata:{username:r,password:o},handleLogin:function(t){!function(e){if(e){var t;t=Gl.sign({username:r,password:o},"9lsoo3-4924-4kkkka-llikh2",{expiresIn:"300d"}),Fl.set("remember",t)}else Fl.set("remember",null)}(v),Zl.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Auth/Login":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Auth/Login",{username:r,password:o,credentials:"include"},{withCredentials:!0}).catch((function(e){console.log(e),f(e)})).then((function(t){t&&(C.default.isUndefined(t.status)||200!==t.status?f(t.status):(f(""),g(t.data),e.history.push({pathname:"/Admin",state:{withCredentials:!0},withCredentials:!0})))})),t.preventDefault()},setUsername:i,setPassword:m,variant:"info",setRememberme:y,rememberme:v}),E&&l.a.createElement("h5",{className:"text-danger"},"Access Denied"))))))},zl=a(14),Ql=a(29),$l=a(216),Jl=function(e){var t=Object(n.useState)(""),a=Object(h.a)(t,2),r=a[0],i=a[1],c=Object(n.useState)(""),s=Object(h.a)(c,2),o=s[0],m=s[1],d=Object(n.useState)(""),u=Object(h.a)(d,2),E=u[0],f=u[1],p=Object(n.useState)(!1),b=Object(h.a)(p,2),v=b[0],y=b[1],g=k().setAuthTokens;return Object(n.useEffect)((function(){document.title="Login - CMS Trip Medical Database",document.body.classList.remove("homepage"),function(){var e="";if(C.default.isUndefined(Ql.get("remember")))y(!1);else if(e=C.default.isNull(Ql.get("remember"))||""===Ql.get("remember")?null:Ql.get("remember"),C.default.isNull(e))y(!1);else{var t=$l.decode(e,{complete:!0});C.default.isUndefined(t.payload)||(i(t.payload.username),m(t.payload.password),y(!0))}}()}),[]),l.a.createElement("main",{role:"main",className:"main"},l.a.createElement("br",null),l.a.createElement(j.a,{className:"mt-4 mb-4"},l.a.createElement(A.a,{md:2}),l.a.createElement(A.a,{md:6},l.a.createElement("div",{className:"card"},l.a.createElement("div",{className:"card-body"},l.a.createElement("div",{className:"card-header mb-2"},l.a.createElement("h2",null,"Login SEO CMS")),l.a.createElement(qn,{logindata:{username:r,password:o},handleLogin:function(t){!function(e){if(e){var t;t=$l.sign({username:r,password:o},"9lsoo3-4924-4kkkka-llikh2",{expiresIn:"300d"}),Ql.set("remember",t)}else Ql.set("remember",null)}(v),zl.post(C.default.isUndefined(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL)?"/Auth/Login":Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_API_URL+"/Auth/Login",{username:r,password:o},{withCredentials:!0}).catch((function(e){console.log(e),f(e)})).then((function(t){t&&(C.default.isUndefined(t.status)||200!==t.status?f(t.status):(f(""),g(t.data),e.history.push({pathname:"/SEO",state:{withCredentials:!0}})))})),t.preventDefault()},setUsername:i,setPassword:m,variant:"info",setRememberme:y,rememberme:v}),E&&l.a.createElement("h5",{className:"text-danger"},"Access Denied"))))))},Xl=a(159),er=a(964);var tr=function(e){var t=e.component,a=Object(Xl.a)(e,["component"]),n=null,r=k().authTokens;r&&(n=C.default.findWhere(r.roles,{role:"Admin"}));var i=!1;return n&&(C.default.isUndefined(n.role)||(i="Admin"===n.role)),l.a.createElement(b.a,Object.assign({},a,{render:function(e){return i?l.a.createElement(t,e):l.a.createElement(er.a,{to:"/Admin/Login"})}}))};var ar=function(e){var t=e.component,a=Object(Xl.a)(e,["component"]),n=null,r=null,i=k().authTokens;i&&(n=C.default.findWhere(i.roles,{role:"Admin"}),r=C.default.findWhere(i.roles,{role:"SEO"}));var c=!1;return n&&(C.default.isUndefined(n.role)||(c="Admin"===n.role)),r&&!1===c&&(C.default.isUndefined(r.role)||(c="SEO"===r.role)),l.a.createElement(b.a,Object.assign({},a,{render:function(e){return c?l.a.createElement(t,e):l.a.createElement(er.a,{to:"/SEO/Login"})}}))};var nr=function(e){var t=e.component,a=Object(Xl.a)(e,["component"]),n=k().authTokens,r=!1;return n&&(!0,C.default.isUndefined(n.isPro)||(r=n.isPro>0),C.default.isUndefined(n.institution_pro)||n.institution_pro>0&&(r=!0)),l.a.createElement(b.a,Object.assign({},a,{render:function(e){return l.a.createElement(t,Object.assign({},e,{isPro:r}))}}))},lr=a(469),rr=a(29),ir=function(e){var t=Object(n.useState)(!1),a=Object(h.a)(t,2),r=(a[0],a[1]),i=Object(n.useState)(!1),c=Object(h.a)(i,2),s=c[0],o=c[1],m=Object(n.useState)(!1),d=Object(h.a)(m,2),E=d[0],v=d[1],y=Object(lr.a)({timeout:18e5,onActive:function(){r(!1),g()<=0&&(rr.set("tokens",null),rr.set("dismiss_tokens",null),rr.set("cookies_tokens",null),rr.set("instution_auth_tokens",{institution_auth:null}))},onIdle:function(){return r(!0)}}),g=y.getRemainingTime,_=(y.getLastActiveTime,null),S=null;C.default.isUndefined(rr.get("tokens"))||(_=C.default.isNull(rr.get("tokens"))||""===rr.get("tokens")?null:JSON.parse(rr.get("tokens"))),S=C.default.isUndefined(rr.get("instution_auth_tokens"))?"":rr.get("instution_auth_tokens");var N=Object(n.useState)(_),k=Object(h.a)(N,2),j=k[0],P=k[1],A=function(){var e=Object(p.a)(f.a.mark((function e(){var t;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Le(L,v);case 2:if(t=e.sent,0!=ve().chkLogin&&0!=t){e.next=7;break}return e.next=7,Re(L);case 7:return e.next=9,D();case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_&&!s&&o(j.isPro>0||j.institution_pro>0||!C.default.isNull(S.institution_auth)||s);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=Object(p.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!S||!C.default.isNull(j)){e.next=8;break}if(!C.default.isNull(S.institution_auth)){e.next=5;break}return e.next=4,O();case 4:S=e.sent;case 5:o(!C.default.isNull(S.institution_auth)||s),e.next=12;break;case 8:return e.next=10,O();case 10:S=e.sent,j?C.default.isUndefined(j.isPro)&&C.default.isUndefined(j.institution_pro)||o(!C.default.isNull(S.institution_auth)||j.isPro>0||j.institution_pro>0):o(!C.default.isNull(S.institution_auth));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),U=!0;Object(n.useEffect)((function(){return U&&(R(),A()),function(){U=!1}}),[_]);var L=function(e){rr.set("tokens",JSON.stringify(e)),P(e)};return l.a.createElement(u.a,null,l.a.createElement(b.a,{path:"/SEO"},l.a.createElement(w.Provider,{value:{authTokens:j,setAuthTokens:L}},l.a.createElement("div",null,l.a.createElement(Mn,null)),l.a.createElement(u.a,null,l.a.createElement(b.a,{path:"/SEO/Login",exact:!0,component:Jl}),l.a.createElement(ar,{path:"/SEO",exact:!0,component:ml})),l.a.createElement(ot,null))),l.a.createElement(b.a,{path:"/Admin"},l.a.createElement(w.Provider,{value:{authTokens:j,setAuthTokens:L}},l.a.createElement("div",null,l.a.createElement(Mn,null)),l.a.createElement(u.a,null,l.a.createElement(b.a,{path:"/Admin/Login",exact:!0,component:Yl}),l.a.createElement(tr,{path:"/Admin",exact:!0,component:nl}),l.a.createElement(ar,{path:"/Admin/SEO",exact:!0,component:ml}),l.a.createElement(tr,{path:"/Admin/Publications",exact:!0,component:Nl}),l.a.createElement(tr,{path:"/Admin/Access",exact:!0,component:dl}),l.a.createElement(tr,{path:"/Admin/Settings",exact:!0,component:Rl}),l.a.createElement(tr,{path:"/Admin/Users",exact:!0,component:Ml}),l.a.createElement(tr,{path:"/Admin/Emails",exact:!0,component:Bl}),l.a.createElement(b.a,{component:Pn})),l.a.createElement(ot,null))),l.a.createElement(b.a,{path:"/api"},l.a.createElement(u.a,null,l.a.createElement(b.a,{path:"/api/search",exact:!0,component:Un}))),l.a.createElement(b.a,null,l.a.createElement(w.Provider,{value:{authTokens:j,setAuthTokens:L}},l.a.createElement(Gn,{isPro:s}),l.a.createElement(Qn,{isPro:s}),l.a.createElement(Fn,{isPro:s,isLoggedin:E}),l.a.createElement(u.a,null,l.a.createElement(nr,{path:"/",exact:!0,component:T}),l.a.createElement(nr,{path:"/Home",component:T}),l.a.createElement(b.a,{path:"/About",component:yt}),l.a.createElement(b.a,{path:"/Howtouse",component:Vt}),l.a.createElement(b.a,{path:"/Addtrip",component:qt}),l.a.createElement(b.a,{path:"/Terms",component:Bt}),l.a.createElement(b.a,{path:"/Acceptableuse",component:Yt}),l.a.createElement(b.a,{path:"/Privacy",component:Qt}),l.a.createElement(b.a,{path:"/Cookies",component:zt}),l.a.createElement(b.a,{path:"/Latest",component:$t}),l.a.createElement(b.a,{path:"/Key",component:Zt}),l.a.createElement(nr,{path:"/Top/:criteria",component:xa}),l.a.createElement(b.a,{path:"/Document/:criteria",component:qa}),l.a.createElement(nr,{path:"/Popular/:criteria",component:Mt}),l.a.createElement(nr,{path:"/Popular",component:Mt}),l.a.createElement(nr,{path:"/Popularsearches",component:Kt}),l.a.createElement(b.a,{path:"/answers/:question",component:jn}),l.a.createElement(b.a,{path:"/r/:criteria",component:Fa}),l.a.createElement(b.a,{path:"/account/auth",component:Gt}),l.a.createElement(b.a,{path:"/Login",component:He}),l.a.createElement(b.a,{path:"/OA",exact:!0,component:We}),l.a.createElement(b.a,{path:"/oa_redirect",exact:!0,component:Xe}),l.a.createElement(b.a,{path:"/oa_login",exact:!0,component:ze}),l.a.createElement(b.a,{path:"/Passwordreset",component:lt}),l.a.createElement(b.a,{path:"/UpdateToken",component:it}),l.a.createElement(b.a,{path:"/Unsubscribe",component:Qa}),l.a.createElement(nr,{path:"/Profile",component:F}),l.a.createElement(nr,{path:"/Changepassword",component:me}),l.a.createElement(nr,{path:"/History",component:X}),l.a.createElement(nr,{path:"/Inbox",component:te}),l.a.createElement(nr,{path:"/Bookmarked",component:re}),l.a.createElement(nr,{path:"/Subscription",component:he}),l.a.createElement(b.a,{path:"/Checkoutsuccess",component:_e}),l.a.createElement(b.a,{path:"/Checkoutcancel",component:Ne}),l.a.createElement(b.a,{path:"/Upgrade",component:ke}),l.a.createElement(b.a,{path:"/Contact",component:dt}),l.a.createElement(b.a,{path:"/Logout",component:at}),l.a.createElement(nr,{path:"/Pro",component:Ma}),l.a.createElement(nr,{path:"/Why",component:Wa}),l.a.createElement(nr,{path:"/Registration",component:st}),l.a.createElement(nr,{path:"/Searchresult",component:kn}),l.a.createElement(nr,{path:"/Search",component:kn}),l.a.createElement(b.a,{component:Pn})),l.a.createElement(el,null),l.a.createElement(ot,null))))},cr=function(e){function t(){return Object(c.a)(this,t),Object(o.a)(this,Object(m.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return l.a.createElement(u.a,null,l.a.createElement((function(){return l.a.createElement(ir,null)}),null))}}]),t}(n.Component);Object(r.render)(l.a.createElement(i.a,null,l.a.createElement(cr,null)),document.getElementById("root"))}},[[473,1,2]]]); //# sourceMappingURL=main.ab22db02.chunk.js.map