PageSourceSearch

https://bae.travel/assets/index-CQ5yhpU-.js

js bae.travel collected 2026-10-09 22:57:23 UTC 2,463 bytes, 1 lines download raw bytes

1import{c as n,o as s,b4 as C,d as N,f as w,ah as x,r as u,ai as T,l as S,b as m,a as i,q as p,u as c,t as f,F as B,e as I,C as g,Y as E,m as M,D as $,bW as z,bV as D,M as L,bX as P,_ as A}from"./index-Dl44lZ-k.js";const F={version:"1.1",xmlns:"http://www.w3.org/2000/svg",style:{width:"100%",height:"100%"},fill:"currentColor",stroke:"none",viewBox:"0 0 32 32"},O={__name:"voicePlay",setup(k){return(t,l)=>(s(),n("svg",F,l[0]||(l[0]=[C('<path d="M10.24 11.616l-4.224 4.192 4.224 4.192c1.088-1.056 1.76-2.56 1.76-4.192s-0.672-3.136-1.76-4.192z"></path><path d="M15.199 6.721l-1.791 1.76c1.856 1.888 3.008 4.48 3.008 7.328s-1.152 5.44-3.008 7.328l1.791 1.76c2.336-2.304 3.809-5.536 3.809-9.088s-1.473-6.784-3.809-9.088z"><animate attributeName="opacity" values="0;0;1;1" begin="0" dur="1" keyTimes="0;.333;.334;1" repeatCount="indefinite"></animate></path><path d="M20.129 1.793l-1.762 1.76c3.104 3.168 5.025 7.488 5.025 12.256s-1.921 9.088-5.025 12.256l1.762 1.76c3.648-3.616 5.887-8.544 5.887-14.016s-2.239-10.432-5.887-14.016z"><animate attributeName="opacity" values="0;0;1;1" begin="0" dur="1" keyTimes="0;.666;.667;1" repeatCount="indefinite"></animate></path>',3)])))}},Y={},q={class:"voice"},G={class:"top"},H={class:"title"},R={class:"main"},U={class:"grid"},W=["onClick"],X={key:0,class:"voice-play"},j=N({__name:"index",setup(k){const t=w(),l=E(),v=x(),{VITE_CITY:h}=Y;let _=u(!1),r=u([]),d=u(!1);async function y(){try{_.value=!0;const a=await P();r.value=a.voices.filter(o=>{let e="female";return h==="INDO"&&t.modelName==="mina_model"&&(e="male"),o.labels.gender===e}),r.value.find(o=>o.voice_id===t.voice_id)||t.toggleVoice(r.value[0].voice_id)}catch{}finally{_.value=!1}}function V(a){g(["Voice setting","Click","Play voice"]),d.value=!0;const e=`Hello ${v.userName?v.userName:""}, I'm Bae, nice to meet you!`;D.speak(e,a,()=>{d.value=!0},()=>{d.value=!1}),t.toggleVoice(a)}function b(){g(["Voice setting","Click","Back"]),l.go(-1)}return T(async()=>{await y()}),(a,o)=>(s(),n("div",q,[c(_)?(s(),S(L,{key:0})):m("",!0),i("div",G,[i("div",{class:"back btn g-icon",onClick:b}," arrow_back "),i("div",H,f(a.$t("VOICE_SETTINGS")),1)]),i("div",R,[i("div",U,[(s(!0),n(B,null,I(c(r),e=>(s(),n("div",{class:M(["btn",{sub:e.voice_id!==c(t).voice_id}]),onClick:J=>V(e.voice_id)},[$(f(e.name)+" ",1),e.voice_id===c(t).voice_id&&c(d)?(s(),n("div",X,[p(O)])):m("",!0)],10,W))),256))])]),p(z)]))}}),Q=A(j,[["__scopeId","data-v-490ac863"]]);export{Q 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.