PageSourceSearch

https://cm-hexagon-octave.pages.dev/_nuxt/accordion-C2H2pFXE.js

js cm-hexagon-octave.pages.dev collected 2026-10-03 06:40:29 UTC 3,193 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"0bfac350aac122216092cf771ef7a856d43104f1"};var o=(new e.Error).stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="de473359-45d1-4261-9d82-24d6e2a5c62b",e._sentryDebugIdIdentifier="sentry-dbid-de473359-45d1-4261-9d82-24d6e2a5c62b")}catch(a){}}();import{T as e}from"./entry-DmxFJkbl.js";import{$ as o,m as a,a as t,a6 as n,j as r,q as i,ad as d,r as s,M as l,ai as c,J as p,ay as u,aA as f,aw as y,ax as v,as as h,a7 as g,c as m,a5 as w}from"./vendor-forms-CQbgu4mV.js";import{U as b}from"./utility-carat-down-WwYLX6vj.js";import"./vendor-contentful-ZZqf-mXZ.js";const x=["id","aria-controls","aria-expanded","onMouseup","onTouchend","onKeydown"],I=["id","aria-labelledby"],_={class:"accordion-panel-content"},D={__name:"Accordion",props:{items:{type:Array,default:()=>[]},group:{type:Boolean,default:!1},itemInspectorProps:{type:Object,default:()=>({})},openPanel:{type:String,default:null},externalControl:{type:Boolean,default:!1}},emits:["panel-toggle"],setup(D,{emit:E}){const P=D,S=E,T=P.items??[],j=w(new Set),$=e=>P.externalControl?P.openPanel===e:j.value.has(e),A=w(0),B=w(!1),M=()=>{B.value||(A.value=Date.now())},C=()=>{B.value=!0,A.value=Date.now()},H=e=>{if(P.externalControl)return void S("panel-toggle",e);((e,o)=>{if(P.group)return void(j.value=o?new Set:new Set([e]));const a=new Set(j.value);o&&a.delete(e),o||a.add(e),j.value=a})(e,$(e))};return(w,E)=>{const S=e;return o(),a("div",{class:l(["accordion",""+(D.group?"accordion-group":"")])},[(o(!0),a(t,null,n(c(T),e=>(o(),a("div",{key:e.id,class:"accordion-item"},[r("div",p({id:`accordion-header-${e.id}`},{ref_for:!0},P.itemInspectorProps[e.id]?.question||P.itemInspectorProps[e.id]?.title||{},{class:["accordion-header",{active:$(e.id)}],role:"button",tabindex:"0","aria-controls":`accordion-panel-${e.id}`,"aria-expanded":$(e.id),onMousedown:M,onMouseup:()=>(e=>{if(B.value)return void(B.value=!1);Date.now()-A.value<300&&H(e)})(e.id),onTouchstart:C,onTouchend:()=>{return o=e.id,void(Date.now()-A.value<300&&H(o));var o},onKeydown:[u(f(o=>H(e.id),["prevent"]),["space"]),u(f(o=>H(e.id),["prevent"]),["enter"])]}),[i(d(e.title)+" ",1),s(c(b),{height:"24px",width:"24px",class:l(["accordion-chevron",{"accordion-rotate":$(e.id)}]),"aria-hidden":"true"},null,8,["class"])],16,x),s(m,{onBeforeEnter:E[0]||(E[0]=e=>e.style.height="0px"),onEnter:E[1]||(E[1]=e=>e.style.height=e.scrollHeight+"px"),onAfterEnter:E[2]||(E[2]=e=>e.style.height="auto"),onBeforeLeave:E[3]||(E[3]=e=>e.style.height=e.scrollHeight+"px"),onLeave:E[4]||(E[4]=e=>{e.offsetHeight,e.style.height="0px"})},{default:y(()=>[v(r("div",{id:`accordion-panel-${e.id}`,class:"accordion-panel",role:"region","aria-labelledby":`accordion-header-${e.id}`},[r("div",_,[g(w.$slots,e.id,{},()=>[s(S,{copy:e.content,"copy-inspector-props":P.itemInspectorProps[e.id]?.answer||P.itemInspectorProps[e.id]?.content||{},"copy-type-class":"type-2xs"},null,8,["copy","copy-inspector-props"])])])],8,I),[[h,$(e.id)]])]),_:2},1024)]))),128))],2)}}};export{D 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.