const n={property:"animation",transform:n=>{if(["none","spin","ping","pulse","bounce"].includes(n))return{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"}[n]},additional:n=>{if(!document.querySelector(`style#cj-animation-${n}`)){const i=document.createElement("style");i.id="cj-animation-"+n,"spin"===n&&(i.innerHTML="\n            @keyframes spin {\n                from {\n                  transform: rotate(0deg);\n                }\n                to {\n                  transform: rotate(360deg);\n                }\n              }\n            "),"ping"===n&&(i.innerHTML="@keyframes ping {\n          0% {\n            transform: scale(1);\n            opacity: 1;\n          }\n          75%, 100% {\n            transform: scale(2);\n            opacity: 0;\n          }\n        }"),"pulse"===n&&(i.innerHTML="\n            @keyframes pulse {\n                0%, 100% {\n                  opacity: 1;\n                }\n                50% {\n                  opacity: .5;\n                }\n              }\n            "),"bounce"===n&&(i.innerHTML="\n            @keyframes bounce {\n                0%, 100% {\n                  transform: translateY(-25%);\n                  animationTimingFunction: cubic-bezier(0.8, 0, 1, 1);\n                }\n                50% {\n                  transform: translateY(0);\n                  animationTimingFunction: cubic-bezier(0, 0, 0.2, 1);\n                }\n              }\n            "),document.head.appendChild(i)}return[]}};export default n;