"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("gsap");function d(e,o){try{const a=t.timeline();a.delay(1),a.addLabel("camera",.2),a.addLabel("pathLine",.5),a.addLabel("focusMap",1),a.addLabel("focusMap2",2),a.addLabel("border",2.5),a.add(t.to(e.camera.instance.position,{duration:2,delay:0,x:o.camera.position.x+(o.scene.translateX||0),y:o.camera.position.y+(o.scene.translateY||0),z:o.camera.position.z+(o.scene.translateZ||0),ease:"circ.out",onComplete:()=>{e.camera.controls.saveState(),e.onCallBack.onMapAnimationSuccess(),e.isMapAnimationSuccess=!0}}),"camera"),e.pathLine&&a.add(t.to(e.pathLine.options.material,{duration:.2,opacity:1}),"pathLine"),a.add(t.to(e.areaMapGroup,{duration:1,delay:.5,visible:!0}),"focusMap"),a.add(t.to(e.areaMapGroup.position,{duration:1,delay:.5,x:0,y:0,z:0}),"focusMap"),a.add(t.to(e.areaMapGroup.scale,{duration:1,delay:.5,x:1,y:1,z:1,ease:"circ.out"}),"focusMap"),a.add(t.to(e.rotateBorder1.scale,{duration:.6,x:1,y:1,z:1,ease:"circ.out"}),"border"),a.add(t.to(e.rotateBorder2.scale,{duration:1.2,x:1,y:1,z:1,ease:"circ.out"}),"border"),e.option.map.arealabel.show&&(e.allAreaLabel.map((r,c)=>{const l=r.element.querySelector(".area-label>p.label");l.style.opacity=0}),e.allAreaLabel.map((r,c)=>{const l=r.element.querySelector(".area-label>p.label");a.add(t.to(l,{duration:.5,delay:.03*c,opacity:1,ease:"circ.out"}),"focusMap2")})),setTimeout(()=>{try{if(e.option.map.titleLabel.show){e.mapTitleLabel.element.style.opacity=0,a.add(t.to(e.mapTitleLabel.element,{duration:.5,delay:.03,opacity:1,ease:"circ.out"}),"focusMap2");const r=e.mapTitleLabel.element.querySelector(".map-label>.other-label");a.add(t.to(r,{duration:.5,delay:.03,translateY:0,ease:"circ.out"}),"focusMap2")}}catch{}},2e3)}catch{}}exports.createTimeLine=d;
