import{d as t,e,r as o,g as n,X as l,P as r,c as a,a as s,u as i,z as c,t as u,F as d,h,A as f,o as p}from"./vendor-63c60e35.js";import{_ as y}from"./index-8800b505.js";const v={class:"storyInfo"},m={autoplay:"",loop:""},_=["src"],w={class:"crawl-container stretch"},E={class:"whitespace-pre-line"},I=y(t({name:"OurStory",setup(t){const{t:y}=e(),I=o(null),S=o(null),T=o(null),g=n({prevTime:0,stars:[],storyHeight:0,storyWidth:0,crawlPos:0}),b=(t,e,o)=>{if(null===T.value)return;const n=T.value.getContext("2d");if(n){const l=255*o,r=`rgb(${l},${l},${l})`;n.fillStyle=r,n.fillRect(t,e,1,1)}},P=t=>{const e=t-g.prevTime;g.prevTime=t,(t=>{const e=g.stars.length;for(let o=0;o<e;o+=1){const e=g.stars[o];e.z-=t,e.z<=1&&(e.z+=999)}})(.02*e),(t=>{var e;const o=null==(e=S.value)?void 0:e.style;g.crawlPos-=t,o&&(o.top=`${g.crawlPos}px`,g.crawlPos<-S.value.clientHeight&&(g.crawlPos=I.value.clientHeight))})(.06*e),(()=>{if(null!==T.value){const t=T.value.getContext("2d");t&&(t.fillStyle="black",t.fillRect(0,0,T.value.width,T.value.height))}})(),(()=>{if(null===T.value)return;const t=T.value.width/2,e=T.value.height/2,o=g.stars.length;for(let n=0;n<o;n+=1){const o=g.stars[n],l=t+o.x/(.001*o.z),r=e+o.y/(.001*o.z);if(l>=0&&l<g.storyWidth&&r>=0&&r<g.storyHeight){const t=o.z/1e3;b(l,r,1-t*t)}}})(),window.requestAnimationFrame(P)},A=t=>{g.prevTime=t,window.requestAnimationFrame(P)},k=()=>{g.storyWidth=document.body.clientWidth,g.storyHeight=document.body.clientHeight,null!==T.value&&(T.value.width=Math.min(1600,g.storyWidth),T.value.height=Math.min(900,g.storyHeight))};l((()=>{var t,e;window.requestAnimationFrame(A),k(),window.onresize=()=>{k()},g.stars=(t=>{const e=[];for(let o=0;o<t;o+=1){const t={x:1600*Math.random()-800,y:900*Math.random()-450,z:1e3*Math.random()};e.push(t)}return e})(2e3),g.crawlPos=null!=(e=null==(t=I.value)?void 0:t.clientHeight)?e:0}));const V=n({VITE_BASE:"/",VITE_APP_DESCRIPTION:"A powerful digital whiteboard \\n that runs both locally with secure file storage on device and collaboratively online with all the latest AI tools.",VITE_APP_KEYWORDS:"Fabrie",VITE_APP_TITLE:"Fabrie - Online collaboration platform for designers",VITE_API_BASEURL:"/api",VITE_APP_API_BASE_URL:"http://47.102.185.210:11000/",VITE_SENSORS:"https://kebuxi.datasink.sensorsdata.cn/sa?token=4df9a9cefe5494f7&project=production",VITE_LANG:"en",VITE_SITE:"com",VITE_SEGMENT_WRITE_KEY:"W0HnFjYlIkdW7JVfMzchniUb7H2ZerVH",BASE_URL:"/",MODE:"prod-com",DEV:!0,PROD:!1});return(t,e)=>{const o=r("router-link");return p(),a("div",v,[s("canvas",{ref_key:"canvas",ref:T,class:"stretch"},null,512),s("audio",m,[s("source",{src:i("/static/mp3/neptuno-c05a5f35.mp3"),type:"audio/mpeg"},null,8,_),c(" Your browser does not support the audio element. ")]),s("div",w,[s("div",{ref_key:"crawl",ref:I,class:"crawl"},[s("div",{ref_key:"crawlContent",ref:S,class:"crawl-content"},[s("h1",E,u(i(y)("content.ourStory.info.title")),1),"com"===V.VITE_SITE?(p(),a(d,{key:0},[s("p",null,u(i(y)("content.ourStory.info.com1")),1),s("p",null,u(i(y)("content.ourStory.info.com2")),1),s("p",null,u(i(y)("content.ourStory.info.com3")),1)],64)):(p(),a(d,{key:1},[s("p",null,u(i(y)("content.ourStory.info.cn1")),1),s("p",null,u(i(y)("content.ourStory.info.cn2")),1),s("p",null,u(i(y)("content.ourStory.info.cn3")),1)],64))],512)],512)]),h(o,{to:"/home",class:"backBtn"},{default:f((()=>[c(u(i(y)("content.ourStory.back")),1)])),_:1})])}}}),[["__scopeId","data-v-bc541eb8"],["__file","/home/kebuxi/layout/frontend/deploy/fabrie-site/src/views/our-story/index.vue"]]);export{I as default};