PageSourceSearch

https://auth.newtheatre.org.uk/_nuxt/CqbjlrI-.js

js newtheatre.org.uk collected 2026-10-02 06:35:15 UTC 3,624 bytes, 1 lines download raw bytes

1import{At as e,G as t,Lt as n,M as r,Ot as i,P as a,Pn as o,U as s,Vn as c,Wn as l,_t as u,ln as d,wt as f}from"./CrnLkb7X.js";import{i as p,n as m}from"./BB1eZvL7.js";import{ct as h,j as g}from"./BVsv2vVa.js";import{i as _}from"./Dw6GyDeJ.js";import{f as v}from"./DE6hRnGG.js";import{a as y,i as b,n as x,o as S,t as C}from"./DgKFGcZc.js";var[w,T]=h(`RovingFocusGroup`),E=t({__name:`RovingFocusGroup`,props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`entryFocus`,`update:currentTabStopId`],setup(t,{expose:r,emit:i}){let u=t,f=i,{loop:m,orientation:h,dir:y}=c(u),S=p(y),w=v(u,`currentTabStopId`,f,{defaultValue:u.defaultCurrentTabStopId,passive:u.currentTabStopId===void 0}),E=o(!1),D=o(!1),O=o(0),{getItems:k,CollectionSlot:A}=_({isProvider:!0});function j(e){let t=!D.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!E.value){let t=new CustomEvent(C,x);if(e.currentTarget.dispatchEvent(t),f(`entryFocus`,t),!t.defaultPrevented){let e=k().map(e=>e.ref).filter(e=>e.dataset.disabled!==``),t=[e.find(e=>e.getAttribute(`data-active`)===``),e.find(e=>e.getAttribute(`data-highlighted`)===``),e.find(e=>e.id===w.value),...e].filter(Boolean);b(t,u.preventScrollOnEntryFocus)}}D.value=!1}function M(){setTimeout(()=>{D.value=!1},1)}return r({getItems:k}),T({loop:m,dir:S,orientation:h,currentTabStopId:w,onItemFocus:e=>{w.value=e},onItemShiftTab:()=>{E.value=!0},onFocusableItemAdd:()=>{O.value++},onFocusableItemRemove:()=>{O.value--}}),(t,r)=>(e(),a(l(A),null,{default:d(()=>[s(l(g),{tabindex:E.value||O.value===0?-1:0,"data-orientation":l(h),as:t.as,"as-child":t.asChild,dir:l(S),style:{outline:`none`},onMousedown:r[0]||=e=>D.value=!0,onMouseup:M,onFocus:j,onBlur:r[1]||=e=>E.value=!1},{default:d(()=>[n(t.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),D=t({__name:`RovingFocusItem`,props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(t){let o=t,c=w(),p=m(),h=r(()=>o.tabStopId||p),v=r(()=>c.currentTabStopId.value===h.value),{getItems:x,CollectionItem:C}=_();f(()=>{o.focusable&&c.onFocusableItemAdd()}),i(()=>{o.focusable&&c.onFocusableItemRemove()});function T(e){if(e.key===`Tab`&&e.shiftKey){c.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=y(e,c.orientation.value,c.dir.value);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||!o.allowShiftKey&&e.shiftKey)return;e.preventDefault();let n=[...x().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)];if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=c.loop.value?S(n,r+1):n.slice(r+1)}u(()=>b(n))}}return(t,r)=>(e(),a(l(C),null,{default:d(()=>[s(l(g),{tabindex:v.value?0:-1,"data-orientation":l(c).orientation.value,"data-active":t.active?``:void 0,"data-disabled":t.focusable?void 0:``,as:t.as,"as-child":t.asChild,onMousedown:r[0]||=e=>{t.focusable?l(c).onItemFocus(h.value):e.preventDefault()},onFocus:r[1]||=e=>l(c).onItemFocus(h.value),onKeydown:T},{default:d(()=>[n(t.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`data-active`,`data-disabled`,`as`,`as-child`])]),_:3}))}});export{E as n,D as t};

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.