PageSourceSearch

https://www.smokinginengland.info/_nuxt/CzkfvRs8.js

js smokinginengland.info collected 2026-10-02 16:40:00 UTC 6,271 bytes, 1 lines download raw bytes

1import{g as C,I as M,a1 as N,M as U,ar as q,as as x,aq as j,f as w,r as b,aC as V,at as F,ap as B,az as E,a2 as z,aD as G,aG as g,aH as k,aI as $,o as p,l as f,d as D,w as S,i as l,e as v,A as P,t as m,x as Q,T as J,B as T,E as _,K as W,a9 as X}from"./B_VmgU6Y.js";import{u as Y}from"./C09VR8kH.js";import"./BeRzwz5v.js";var Z=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(Z||{});let A=Symbol("DisclosureContext");function O(t){let u=z(A,null);if(u===null){let c=new Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(c,O),c}return u}let K=Symbol("DisclosurePanelContext");function ee(){return z(K,null)}let te=C({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(t,{slots:u,attrs:c}){let r=b(t.defaultOpen?0:1),e=b(null),a=b(null),o={buttonId:b(`headlessui-disclosure-button-${B()}`),panelId:b(`headlessui-disclosure-panel-${B()}`),disclosureState:r,panel:e,button:a,toggleDisclosure(){r.value=E(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(s){o.closeDisclosure();let i=s?s instanceof HTMLElement?s:s.value instanceof HTMLElement?x(s):x(o.button):x(o.button);i?.focus()}};return V(A,o),G(w(()=>E(r.value,{0:k.Open,1:k.Closed}))),()=>{let{defaultOpen:s,...i}=t,d={open:r.value===0,close:o.close};return j({theirProps:i,ourProps:{},slot:d,slots:u,attrs:c,name:"Disclosure"})}}}),ae=C({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(t,{attrs:u,slots:c,expose:r}){let e=O("DisclosureButton"),a=ee(),o=w(()=>a===null?!1:a.value===e.panelId.value);M(()=>{o.value||t.id!==null&&(e.buttonId.value=t.id)}),N(()=>{o.value||(e.buttonId.value=null)});let s=b(null);r({el:s,$el:s}),o.value||U(()=>{e.button.value=s.value});let i=q(w(()=>({as:t.as,type:u.type})),s);function d(){var n;t.disabled||(o.value?(e.toggleDisclosure(),(n=x(e.button))==null||n.focus()):e.toggleDisclosure())}function y(n){var h;if(!t.disabled)if(o.value)switch(n.key){case g.Space:case g.Enter:n.preventDefault(),n.stopPropagation(),e.toggleDisclosure(),(h=x(e.button))==null||h.focus();break}else switch(n.key){case g.Space:case g.Enter:n.preventDefault(),n.stopPropagation(),e.toggleDisclosure();break}}function I(n){n.key===g.Space&&n.preventDefault()}return()=>{var n;let h={open:e.disclosureState.value===0},{id:R,...H}=t,L=o.value?{ref:s,type:i.value,onClick:d,onKeydown:y}:{id:(n=e.buttonId.value)!=null?n:R,ref:s,type:i.value,"aria-expanded":e.disclosureState.value===0,"aria-controls":e.disclosureState.value===0||x(e.panel)?e.panelId.value:void 0,disabled:t.disabled?!0:void 0,onClick:d,onKeydown:y,onKeyup:I};return j({ourProps:L,theirProps:H,slot:h,attrs:u,slots:c,name:"DisclosureButton"})}}}),se=C({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(t,{attrs:u,slots:c,expose:r}){let e=O("DisclosurePanel");M(()=>{t.id!==null&&(e.panelId.value=t.id)}),N(()=>{e.panelId.value=null}),r({el:e.panel,$el:e.panel}),V(K,e.panelId);let a=F(),o=w(()=>a!==null?(a.value&k.Open)===k.Open:e.disclosureState.value===0);return()=>{var s;let i={open:e.disclosureState.value===0,close:e.close},{id:d,...y}=t,I={id:(s=e.panelId.value)!=null?s:d,ref:e.panel};return j({ourProps:I,theirProps:y,slot:i,attrs:u,slots:c,features:$.RenderStrategy|$.Static,visible:o.value,name:"DisclosurePanel"})}}});const le={class:"mx-auto w-full bg-white border-1 border-grey-light"},oe={class:"flex-1 px-6 md:px-12 py-4 md:py-6.5"},ne={class:"text-base md:text-xl text-font-primary"},re={class:"text-sm md:text-md"},ue={key:1,class:"text-base md:text-xl text-font-primary"},ie={key:0,class:"mb-4"},ce={key:1,class:"grid gap-4"},de={key:0,class:"text-md"},pe=C({__name:"PubmedArticle",props:{iri:{}},setup(t,{expose:u}){const c=t,{getResource:r,exposeMeta:e}=Y(X(c,"iri")),a=r();return u(e),(o,s)=>(p(),f("div",le,[D(l(te),null,{default:S(({open:i})=>[D(l(ae),{class:"flex w-full justify-between text-left text-sm font-medium focus:outline-none"},{default:S(()=>[v("div",oe,[l(a)?.data?.pubMedUrl&&l(a)?.data?.articleTitle?(p(),f(P,{key:0},[v("p",ne,m(l(a)?.data?.articleTitle),1),v("p",re," Published "+m(l(a)?.data?.publishedDate),1)],64)):(p(),f("p",ue,"[No data]"))]),v("div",{class:Q(["px-12 py-7 flex items-center justify-center hover:text-font-primary transition-all duration-200 cursor-pointer",i?"rotate-180 transform":""])},[...s[0]||(s[0]=[v("svg",{class:"size-4 md:size-6","aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 23 14"},[v("path",{fill:"currentColor",d:"m10.60618,13.62867l-10.23593,-10.26682c-0.49367,-0.49516 -0.49367,-1.29793 0,-1.79304l1.19386,-1.19745c0.49283,-0.49432 1.29156,-0.49527 1.78554,-0.00212l8.15038,8.13664l8.15032,-8.13664c0.49398,-0.49315 1.29271,-0.4922 1.785
154,0.00212l1.19386,1.19745c0.49367,0.49516 0.49367,1.29793 0,1.79304l-10.23587,10.26682c-0.49367,0.49511 -1.29404,0.49511 -1.78771,0l0.00001,0z",class:""})],-1)])],2)]),_:2},1024),D(J,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"transform scale-y-95 opacity-0","enter-to-class":"transform scale-y-100 opacity-100","leave-active-class":"transition duration-100 ease-out","leave-from-class":"transform scale-y-100 opacity-100","leave-to-class":"transform scale-y-95 opacity-0"},{default:S(()=>[D(l(se),{class:"px-6 md:px-12 pb-7 md:text-md"},{default:S(()=>[l(a)?.data?.journalTitle?(p(),f("p",ie,[T(m(l(a)?.data?.journalTitle)+" ["+m(l(a)?.data?.journalIssueVolume)+"("+m(l(a)?.data?.journalIssueIssue)+")",1),l(a)?.data?.journalIssn?(p(),f(P,{key:0},[T(":"+m(l(a)?.data?.journalIssn),1)],64)):_("",!0),s[1]||(s[1]=T("] ",-1))])):_("",!0),l(a)?.data?.abstractText?.length?(p(),f("div",ce,[(p(!0),f(P,null,W(l(a)?.data?.abstractText,(d,y)=>(p(),f("div",{key:t.iri+"-abstractText-"+y},[v("p",null,m(d.label),1),v("p",null,m(d.content),1)]))),128)),l(a)?.data?.abstractCopyright?(p(),f("p",de,m(l(a)?.data?.abstractCopyright),1)):_("",!0)])):_("",!0)]),_:1})]),_:1})]),_:1})]))}}),ye=Object.assign(pe,{__name:"CwaComponentPubmedArticle"});export{ye as default};

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.