PageSourceSearch

https://www.buesum-travel.com/_nuxt/mOUhqIMD.js

js buesum-travel.com collected 2026-10-03 01:10:45 UTC 5,337 bytes, 1 lines download raw bytes

1import{d as P,l as y,ae as D,p as q,H as B,o as v,c as K,z as A,B as h,az as U,aA as J,v as W,r as Y,aR as E,i as x,af as G,q as Q,j as c,F as _,k as f,C as H,y as z,b as R}from"./CvaQmXZC.js";import{_ as X}from"./DlAUqK2U.js";const L="--vc-auto-duration",Z=`height var(${L}) cubic-bezier(0.33, 1, 0.68, 1)`,C={padding:0},ee=300,te={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"};function T(o){return o.value?parseFloat(getComputedStyle(o.value).height):0}function I(o){if(!o.value)return{};const{transition:n}=getComputedStyle(o.value);return n==="all 0s ease 0s"||n==="all"?{transition:Z}:{transition:n}}function M(o){if(!o.value)return!0;const{transition:n}=getComputedStyle(o.value);return typeof window.requestAnimationFrame>"u"||window.matchMedia("(prefers-reduced-motion: reduce)").matches||n.includes("none")||n.includes("height 0s")}function ae(o=0){if(o===0)return 0;const n=o/36,d=Math.round((4+15*n**.25+n/5)*10);return Number.isFinite(d)?d:0}const O=P({inheritAttrs:!0,__name:"Collapse",props:{when:{type:Boolean},baseHeight:{default:0},as:{default:"div"}},emits:["collapse","expand","collapsed","expanded"],setup(o,{emit:n}){const d=o,e=n,s=E(d,"when"),u=E(d,"baseHeight"),p=x(()=>({overflow:"hidden",height:`${u.value}px`})),m=x(()=>({...C,...u.value===0?{display:"none"}:p.value})),t=y(null),g=y(s.value?"expanded":"collapsed"),a=l=>g.value=l;function i(){return s.value?C:u.value===0?te:m.value}const r=D(i()),w=l=>r.value=l,b=l=>w({...r.value,...l}),N=y(ee),V=l=>N.value=l,F=x(()=>({[L]:`${N.value}ms`}));let k=NaN;function $(){w(C),a("expanded"),e("expanded")}function S(){w(m.value),a("collapsed"),e("collapsed")}q(()=>{if(!t.value)return;const l=ae(t.value.scrollHeight-u.value);l>0&&V(l),!s.value&&u.value===0&&w(m.value)}),B(s,l=>{if(t.value)if(k=NaN,l){if(M(t))return $();a("expanding"),e("expand"),w({...C,...p.value,...F.value}),requestAnimationFrame(()=>{if(t.value){if(t.value.scrollHeight===0)return $();k=t.value.scrollHeight,b({...I(t),height:`${k}px`,willChange:"height"})}})}else{if(M(t)||(a("collapsing"),e("collapse"),b({...F.value,height:`${t.value.scrollHeight}px`}),t.value.scrollHeight===0))return S();requestAnimationFrame(()=>{t.value&&b({...p.value,...I(t),willChange:"height"})})}}),B(u,l=>{s.value||(l>0?b({display:void 0,height:`${l}px`}):b({display:"none"}))});function j(l){t.value&&l.target&&l.target===t.value&&l.propertyName==="height"&&(s.value?Math.abs(t.value.scrollHeight-T(t))<1?$():k<t.value.scrollHeight&&b({height:`${t.value.scrollHeight}px`}):Math.abs(u.value-T(t))<1&&S())}return(l,ue)=>(v(),K(Y(d.as),{ref_key:"collapseRef",ref:t,style:W(r.value),onTransitionend:j,"data-collapse":g.value},{default:A(()=>[h(l.$slots,"default",U(J({state:g.value})))]),_:3},40,["style","data-collapse"]))}}),le=["aria-expanded","title"],oe=["aria-expanded","title"],ne=["aria-expanded","title"],se=["aria-expanded"],ie=P({__name:"UiCollapsed",props:{outsideClick:{type:Boolean,default:!1},absolutePosition:{type:String,default:""},buttonTitle:{type:String,default:""}},setup(o,{expose:n}){const d=o,e=y(!1),s=`collapsed-panel-${G().replace(/\W/g,"")}`,u=y(),p=y(),m=a=>{var i,r;d.outsideClick&&!((i=u.value)!=null&&i.contains(a.target))&&!((r=p.value)!=null&&r.contains(a.target))&&(e.value=!1)},t=()=>{e.value=!0},g=a=>{a.key==="Escape"&&e.value&&(e.value=!1)};return n({isExpanded:e,open:t}),q(()=>{window.addEventListener("mouseup",m),window.addEventListener("keydown",g)}),Q(()=>{window.removeEventListener("mouseup",m),window.removeEventListener("keydown",g)}),(a,i)=>(v(),c(_,null,[a.$slots.buttonActive&&a.$slots.buttonInactive?(v(),c(_,{key:0},[e.value?(v(),c("button",{key:0,ref_key:"buttonOutsideClick",ref:p,type:"button",class:"active cursor-pointer w-full","aria-expanded":e.value,"aria-controls":s,title:o.buttonTitle,onClick:i[0]||(i[0]=r=>e.value=!e.value)},[h(a.$slots,"buttonActive",{},void 0,!0)],8,le)):f("",!0),e.value?f("",!0):(v(),c("button",{key:1,ref_key:"buttonOutsideClick",ref:p,type:"button",class:"inactive cursor-pointer w-full","aria-expanded":e.value,"aria-controls":s,title:o.buttonTitle,onClick:i[1]||(i[1]=r=>e.value=!e.value)},[h(a.$slots,"buttonInactive",{},void 0,!0)],8,oe))],64)):f("",!0),a.$slots.head?(v(),c("button",{key:1,type:"button",class:H([{active:e.value},{inactive:!e.value},"cursor-pointer w-full"]),"aria-expanded":e.value,"aria-controls":s,title:o.buttonTitle,onClick:i[2]||(i[2]=r=>e.value=!e.value)},[h(a.$slots,"head",{},void 0,!0)],10,ne)):f("",!0),a.$slots.collapse?(v(),c("div",{key:2,id:s,role:"region"},[z(R(O),{when:e.value,class:"v-collapse"},{default:A(()=>[h(a.$slots,"collapse",{},void 0,!0)]),_:3},8,["when"])])):f("",!0),a.$slots.collapseAbsolute?(v(),c("div",{key:3,id:s,ref_key:"onOutsideClick",ref:u,class:H(["absolute",d.absolutePosition]),role:"region"},[z(R(O),{when:e.value,class:"v-collapse"},{default:A(()=>[h(a.$slots,"collapseAbsolute",{},void 0,!0)]),_:3},8,["when"])],2)):f("",!0),a.$slots.bottom?(v(),c("button",{key:4,type:"button",class:H([{active:e.value},{inactive:!e.value},"cursor-pointer w-full"]),"aria-expanded":e.value,"aria-controls":s,onClick:i[3]||(i[3]=r=>e.value=!e.value)},[h(a.$slots,"bottom",{},void 0,!0)],10,se)):f("",!0)],64))}}
1),ve=X(ie,[["__scopeId","data-v-755ee1fe"]]);export{ve as _};

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.