PageSourceSearch

https://www.hockey.nl/_nuxt/7Pa7xHLZ.js

js hockey.nl collected 2026-10-02 04:49:04 UTC 1,549 bytes, 1 lines download raw bytes

1import{d as T,l as m,p as x,D as k,Z as s,r as f,ai as l,h as u,o as E,a3 as b,aF as w}from"#entry";const C=T({__name:"toggle",props:{openText:{default:""},closedText:{default:""},summaryPosition:{default:"bottom"},initialOpen:{type:Boolean,default:!1}},setup(n){const o=n,{trackContentInteraction:p}=w(),a=m(),e=m(o.initialOpen),v=t=>{e.value=t.target.open},g=t=>{const r=t.currentTarget;if(r&&p({element:r,interactionType:e.value?"open":"close",linkText:e.value?o.openText:o.closedText}),!e.value){e.value=!0;return}t.preventDefault();const i=a.value;if(i&&e.value){e.value=!1;const c=i.querySelector("div"),d=y=>{y.propertyName==="grid-template-rows"&&(c.removeEventListener("transitionend",d),i.removeAttribute("open"))};c.addEventListener("transitionend",d)}};return x(()=>{o.initialOpen&&a.value&&(a.value.open=!0,e.value=!0)}),(t,r)=>(E(),k("details",{ref_key:"detailsEl",ref:a,class:"ui-toggle flex flex-col",onToggle:v},[s("summary",{class:l(["cursor-pointer list-none select-none",n.summaryPosition==="bottom"?"order-2":""]),onClick:g},[f(t.$slots,"summary",{},()=>[s("span",null,b(u(e)?n.openText:n.closedText),1)])],2),s("div",{class:l(["grid overflow-hidden transition-[grid-template-rows] duration-300 ease-in-out",[u(e)?"grid-rows-[1fr]":"grid-rows-[0fr]",n.summaryPosition==="bottom"?"order-1":""]])},[s("div",{class:l(["min-h-0 transition-opacity ease-in-out",u(e)?"opacity-100 duration-150 delay-150":"opacity-0 duration-150"])},[f(t.$slots,"default")],2)],2)],544))}}),h=Object.assign(C,{__name:"UiToggle"});export{h 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.