{"version":3,"file":"animation.js","names":["animationElements","id","path","loop","forEach","element","animationContainer","document","getElementById","animationData","container","renderer","autoplay","rendererSettings","className","animationService","lottie","loadAnimation"],"sources":["animation.js"],"sourcesContent":["const animationElements = [\n  {\n    id: 'j-pen-animation',\n    path: './assets/images/front/animation/pen.json',\n    loop: false\n  }, {\n    id: 'j-service-marquee',\n    path: './assets/images/front/animation/service-marquee.json',\n    loop: true\n  }, {\n    id: 'j-balloon-animation',\n    path: './assets/images/front/animation/balloon.json',\n    loop: true\n  }, {\n    id: 'j-service-person',\n    path: './assets/images/front/animation/service-person.json',\n    loop: true\n  }, {\n    id: 'j-service-person-mobile',\n    path: './assets/images/front/animation/service-person.json',\n    loop: true\n  }, {\n    id: 'j-pig-animation',\n    path: './assets/images/front/animation/flying-pig.json',\n    loop: true\n  }, {\n    id: 'j-deposit-animation',\n    path: './assets/images/front/animation/deposit.json',\n    loop: true\n  }, {\n    id: 'j-sofa-animation',\n    path: './assets/images/front/animation/sofa.json',\n    loop: true\n  },\n];\n\nanimationElements.forEach((element) => {\n\n  const animationContainer = document.getElementById(element.id);\n\n  if (!animationContainer) {\n    return;\n  }\n\n  const animationData = {\n    container: animationContainer,\n    renderer: 'svg',\n    loop: element.loop,\n    autoplay: true,\n    path: element.path,\n    rendererSettings: {\n      className: 'c-animation',\n    },\n  };\n\n  const animationService = lottie.loadAnimation(animationData);\n});\n"],"mappings":"AAAA,MAAMA,iBAAiB,GAAG,CACxB;EACEC,EAAE,EAAE,iBAAiB;EACrBC,IAAI,EAAE,0CAA0C;EAChDC,IAAI,EAAE;AACR,CAAC,EAAE;EACDF,EAAE,EAAE,mBAAmB;EACvBC,IAAI,EAAE,sDAAsD;EAC5DC,IAAI,EAAE;AACR,CAAC,EAAE;EACDF,EAAE,EAAE,qBAAqB;EACzBC,IAAI,EAAE,8CAA8C;EACpDC,IAAI,EAAE;AACR,CAAC,EAAE;EACDF,EAAE,EAAE,kBAAkB;EACtBC,IAAI,EAAE,qDAAqD;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