PageSourceSearch

https://assets.medicalnewstoday.com/_next/chunks/widget-expand-547f8b0e.js

js medicalnewstoday.com collected 2026-09-24 07:25:11 UTC 3,645 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[4701],{82238(i,t,e){e.r(t),e.d(t,{default:()=>v,findAttributeNameValue:()=>b});var d=e(96540),o=(e(5556),e(77066)),n=e(93743),a=e(99313),s=e(99620),p=e(20949).h;function r(i){let{children:t,color:e="gray",className:d,isFullBleed:n}=i;const a=n?s.A:"div";return p(a,{className:(0,o.cx)((0,o.AH)({borderTop:`1px solid ${e}`,"&:last-child":{borderBottom:`1px solid ${e}`}}),d)},t)}var l=e(43287),c=e(20949).h;const x={display:"flex",alignItems:"center"},h={"& *":{marginRight:"20px","&:last-child":{marginRight:0}}},g={"&:first-child":{marginTop:"30px"},"&:last-child":{marginBottom:"45px"}},m={padding:["30px 20px","30px 30px 30px 20px"],img:{objectFit:"cover",width:["60px","80px"],height:["60px","80px"],borderRadius:"50%"},"h3, .h3":{display:"block",margin:"5px 0",padding:0},a:{color:"#231f20"},justifyContent:"space-between",".wide":{flex:2}},u={cursor:"pointer","&:hover *":{color:"#f0533a"}},f={padding:["30px 20px","30px 50px"],img:{objectFit:"cover",width:["100px","200px"],height:["75px","115px"],borderRadius:"initial"}};function b(i){let t;return function i(e){e.forEach(e=>{e.attributes&&e.attributes.name?t=e.attributes.name:e.children&&!t&&i(e.children)})}(i),t}class v extends d.Component{constructor(){super(...arguments),this.state={isExpanded:this.props.isExpanded||!1},this.toggleIsExpanded=()=>{this.setState(i=>({isExpanded:!i.isExpanded}))}}render(){const{visible:i,hidden:t}=this.props,{isExpanded:e}=this.state;return c(r,{color:void 0,isFullBleed:!0,className:(0,o.AH)((0,n.mq)(g))},c("div",{className:(0,o.AH)((0,n.mq)({...x,...h,...m,...u})),onClick:this.toggleIsExpanded},i.map(i=>(0,l.A)({data:i})),c(a.A,{isExpanded:e})),t&&t.map((i,t)=>c(r,{key:t,color:void 0,className:(0,o.AH)({display:e?"inherit  ":"none","&:last-child":{borderBottom:"none"}})},c("div",{className:(0,o.AH)((0,n.mq)({...u,"& > *":{...x,...h,...f}}))},(0,l.A)({data:i})))))}}},99313(i,t,e){e.d(t,{A:()=>a});var d=e(77066),o=e(93743),n=e(20949).h;function a(i){let{isExpanded:t,color:e}=i;const a="string"==typeof e&&o.Ay.colors[e]?o.Ay.colors[e]:e;return n("div",{tabIndex:"-1",role:"button",className:(0,d.cx)(t?"icon-hlvideo-minus":"icon-hlvideo-plus",(0,d.AH)({color:a,"&:hover":{cursor:"pointer",color:"#f0533a"}}))})}},34475(i,t,e){e.r(t),e.d(t,{default:()=>c});var d=e(77066),o=(e(5556),e(96540)),n=e(69064),a=e(43287),s=e(20949).h;const p=i=>({...n.UH,fontSize:["17px","18px"],fontWeight:700,color:void 0,width:["calc(100% - 40px)","calc(100% - 60px)"],height:"22px",paddingTop:"20px",paddingBottom:i?0:"20px",paddingLeft:["20px","30px"],paddingRight:["20px","30px"],textAlign:"left",boxSizing:"content-box","&:before":{float:"right"},"&:hover":{cursor:"pointer",color:"#f0533a"}}),r=(0,d.AH)({visibility:"hidden",height:0," > p":{margin:0}}),l=(0,d.AH)([{paddingLeft:"20px",paddingRight:"20px",paddingBottom:"30px",display:"inline-block","@media(min-width:768px)":{paddingLeft:"30px",paddingRight:"30px"}}]);class c extends o.Component{constructor(){super(...arguments),this.state={isExpanded:!1},this.toggle=()=>{this.setState(i=>({isExpanded:!i.isExpanded}))}}render(){const{children:i}=this.props,{isExpanded:t}=this.state;return s("div",{className:(0,d.AH)([{backgroundColor:void 0,marginLeft:"-20px",marginRight:"-20px","@media(min-width:768px)":{marginLeft:"-30px",marginRight:"-30px"}}])},s("button",{type:"button",onClick:this.toggle,className:(0,d.cx)(t?"icon-hlvideo-minus":"icon-hlvideo-plus",(0,d.AH)(p(t)))},t?"Hide details":"Show details"),s("div",{className:t?l:r},i&&(0,a.A)({data:i})))}}}}]);
2//# sourceMappingURL=widget-expand-547f8b0e.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.