"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),S="0.1.2",l=(e,c)=>{const a=e.__vccOpts||e;for(const[o,n]of c)a[o]=n;return a},$=e=>(t.pushScopeId("data-v-62ed2725"),e=e(),t.popScopeId(),e),C={class:"container"},w=$(()=>t.createElementVNode("span",{class:"loading"},null,-1)),I=[w],M={__name:"Loading",props:{size:{tyepe:Number}},setup(e){const c=e;return t.onMounted(()=>{if(c.size){const a=document.querySelector(".loading");a&&a.style.setProperty("--radius",`${c.size}px`)}else{const a=document.querySelector(".container");a&&(a.style.height="100vh",a.style.width="100vw")}}),(a,o)=>(t.openBlock(),t.createElementBlock("div",C,I))}},m=l(M,[["__scopeId","data-v-62ed2725"]]),q={class:"body"},N=t.createStaticVNode('
',1),O=[N],V=Object.assign({name:"bgSilder"},{__name:"index",setup(e){function c(){document.body.style.backgroundImage=""}return t.onMounted(()=>{const a=document.body,o=document.querySelectorAll(".slide"),n=document.getElementById("left"),s=document.getElementById("right");let i=0;s.addEventListener("click",()=>{i++,i>o.length-1&&(i=0),d(),r()}),n.addEventListener("click",()=>{i--,i<0&&(i=o.length-1),d(),r()}),d();function d(){a.style.backgroundImage=o[i].style.backgroundImage}function r(){o.forEach(p=>p.classList.remove("active")),o[i].classList.add("active")}}),t.onUnmounted(()=>{c()}),(a,o)=>(t.openBlock(),t.createElementBlock("div",q,O))}}),u=l(V,[["__scopeId","data-v-56ee7f38"]]);u.install=e=>{e.component("hBgSilder",u)};const B=e=>(t.pushScopeId("data-v-382e345c"),e=e(),t.popScopeId(),e),j={class:"body"},H=B(()=>t.createElementVNode("div",{class:"bg"},[t.createElementVNode("section",{style:{"background-image":"url('https://images.unsplash.com/photo-1576161787924-01bb08dad4a4?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2104&q=80')"}})],-1)),P=B(()=>t.createElementVNode("div",{class:"loading-text"},"0%",-1)),W=[H,P],T=Object.assign({name:"blurLoading"},{__name:"index",setup(e){return t.onMounted(()=>{D()}),(c,a)=>(t.openBlock(),t.createElementBlock("div",j,W))}}),h=l(T,[["__scopeId","data-v-382e345c"]]),D=()=>{const e=document.querySelector(".loading-text"),c=document.querySelector(".bg");let a=0,o=setInterval(n,30);function n(){a++,a>99&&clearInterval(o),e.innerText=`${a}%`,e.style.opacity=s(a,0,100,1,0),c.style.filter=`blur(${s(a,0,100,30,0)}px)`}const s=(i,d,r,p,k)=>(i-d)*(k-p)/(r-d)+p};h.install=e=>{e.component("h-BlurLoading",h)};const J={class:"body"},Q=t.createStaticVNode('',1),A=[Q],z=Object.assign({name:"bg-placeholder"},{__name:"index",props:{hidden:{type:Boolean,default:!1}},setup(e){const c=()=>{const o=document.querySelectorAll(".animated-bg"),n=document.querySelectorAll(".animated-bg-text");o.forEach(s=>s.classList.remove("animated-bg")),n.forEach(s=>s.classList.remove("animated-bg-text"))},a=e;return t.watch(()=>a.hidden,(o,n)=>{console.log("Hidden changed from",n,"to",o),o&&c()}),(o,n)=>(t.openBlock(),t.createElementBlock("div",J,A))}}),f=l(z,[["__scopeId","data-v-b5bff66c"]]);f.install=e=>{e.component("h-BgPlaceholder",f)};function Z(e,c){var a;return function(){var o=this,n=arguments;a||(a=setTimeout(function(){e.apply(o,n),a=null},c))}}const F={class:"body"},K=t.createStaticVNode('Explore The World
Wild Forest
Sunny Beach
City on Winter
Mountains - Clouds
',1),R=[K],U=Object.assign({name:"expandCard"},{__name:"index",setup(e){return t.onMounted(()=>{const c=document.querySelectorAll(".panel"),o=Z(s=>{n(),s.classList.add("active")},100);c.forEach(s=>{s.addEventListener("click",()=>{o(s)})});function n(){c.forEach(s=>{s.classList.remove("active")})}}),(c,a)=>(t.openBlock(),t.createElementBlock("div",F,R))}}),v=l(U,[["__scopeId","data-v-0c7c89c1"]]);v.install=e=>{e.component("hExpandCard",v)};const E=e=>(t.pushScopeId("data-v-9b5ff75d"),e=e(),t.popScopeId(),e),X={class:"container"},Y={class:"normal",href:"#"},G=E(()=>t.createElementVNode("svg",{viewBox:"0 0 80 76",x:"0px",y:"0px"},[t.createElementVNode("g",null,[t.createElementVNode("path",{d:"M 68.9708 24.8623 L 60.4554 2.3018 C 59.9641 0.7017 58.1628 -0.2583 56.5252 0.3817 L 1.9822 20.2222 C 0.3822 20.7022 -0.4179 22.6222 0.2222 24.2223 L 8.8624 47.7797 L 8.8624 35.1484 C 8.8624 29.5024 13.3425 24.8623 18.8857 24.8623 L 32.9442 24.8623 L 50.63 12.862 L 60.7829 24.8623 L 68.9708 24.8623 L 68.9708 24.8623 ZM 77.098 32.0625 L 18.8857 32.0625 C 17.2512 32.0625 16.0625 33.4511 16.0625 35.1484 L 16.0625 72.8491 C 16.0625 74.5477 17.2512 75.9375 18.8857 75.9375 L 77.098 75.9375 C 78.742 75.9375 79.9376 74.5477 79.9376 72.8491 L 79.9376 35.1484 C 79.9376 33.4511 78.742 32.0625 77.098 32.0625 L 77.098 32.0625 ZM 73.0626 68.0625 L 23.9375 68.0625 L 23.9375 61.0852 L 31.4704 43.7232 L 42.7696 57.6777 L 53.4138 46.8062 L 67.1695 41.9375 L 73.0626 55.0815 L 73.0626 68.0625 L 73.0626 68.0625 Z"})])],-1)),ee={class:"info"},te=E(()=>t.createElementVNode("h3",null,"in a rapidly deleloping society",-1)),ae=E(()=>t.createElementVNode("p",null,"what can i say",-1)),oe=Object.assign({name:"hoverCard"},{__name:"hoverCard",setup(e){const c=function(o,n){let s=n.offsetWidth,i=n.offsetHeight,d=o.pageX-n.offsetLeft-s/2*(s>i?i/s:1),r=o.pageY-n.offsetTop-i/2*(i>s?s/i:1);return Math.round(Math.atan2(r,d)/1.57079633+5)%4},a=function(o,n,s){var i=c(o,n),d="";switch(n.className="",i){case 0:d="-top";break;case 1:d="-right";break;case 2:d="-bottom";break;case 3:d="-left";break}n.classList.add(s+d)};return t.onMounted(()=>{const o=document.querySelectorAll("li");[].slice.call(o,0).forEach(function(s){s.addEventListener("mouseover",function(i){a(i,this,"in")},!1),s.addEventListener("mouseout",function(i){a(i,this,"out")},!1)})}),(o,n)=>(t.openBlock(),t.createElementBlock("div",X,[t.createElementVNode("ul",null,[t.createElementVNode("li",null,[t.createElementVNode("a",Y,[t.renderSlot(o.$slots,"svg",{},()=>[G],!0)]),t.createElementVNode("div",ee,[t.renderSlot(o.$slots,"info",{},()=>[te,ae],!0)])])])]))}}),g=l(oe,[["__scopeId","data-v-9b5ff75d"]]);g.install=function(e){e.component("HoverCard",g)};const ce={class:"body"},se=t.createStaticVNode('',1),ne=[se],ie=Object.assign({name:"ProgressBar"},{__name:"index",setup(e){return t.onMounted(()=>{de()}),(c,a)=>(t.openBlock(),t.createElementBlock("div",ce,ne))}}),b=l(ie,[["__scopeId","data-v-908c2092"]]),de=()=>{const e=document.getElementById("prev"),c=document.getElementById("next"),a=document.querySelectorAll(".circle");let o=1;c.addEventListener("click",()=>{o++,o>a.length&&(o=a.length),n()}),e.addEventListener("click",()=>{o--,o<1&&(o=1),n()});function n(){a.forEach((s,i)=>{i{e.component("hProgressBar",b)};const le=e=>(t.pushScopeId("data-v-17105ee3"),e=e(),t.popScopeId(),e),re=le(()=>t.createElementVNode("svg",{id:"icon",viewBox:"0 0 800 600"},[t.createElementVNode("path",{d:"M300,220 C300,220 520,220 540,220 C740,220 640,540 520,420 C440,340 300,200 300,200",id:"top"}),t.createElementVNode("path",{d:"M300,320 L540,320",id:"middle"}),t.createElementVNode("path",{d:"M300,210 C300,210 520,210 540,210 C740,210 640,530 520,410 C440,330 300,190 300,190",id:"bottom",transform:"translate(480, 320) scale(1, -1) translate(-480, -318) "})],-1)),pe=[re],me=Object.assign({name:"Tab"},{__name:"Tab",props:{width:{type:Number,default:100},height:{type:Number,default:70}},setup(e){const c=t.ref(),a=()=>{c.value.classList.toggle("cross")},o=e;return t.onMounted(()=>{o.width&&c.value.style.setProperty("--h-width",`${o.width}px`),o.height&&c.value.style.setProperty("--h-height",`${o.height}px`)}),(n,s)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"con",ref:c,onClick:a},pe,512))}}),_=l(me,[["__scopeId","data-v-17105ee3"]]);_.install=e=>{e.component("hTab",_)};const ue=m,he=u,fe=h,ve=f,ge=v,be=g,_e=b,ye=_,y={Loading:m,bgSilder:u,blurLoading:h,bgPlaceholder:f,expandCard:v,hoverCard:g,ProgressBar:b,Tab:_};m.install=function(e){e.component("h-Loading",m)};const xe={display:"grid",position:"relative",flexDirection:"row",flexWrap:"nowrap",alignContent:"center",justifyContent:"center",alignItems:"center"};function Ee(e,c){for(let a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e.style[a]=c[a])}const L={mounted:function(e,c){const{height:a}=e.getBoundingClientRect();Ee(e,xe);const o=t.h(m,{size:a/2,style:{position:"absolute"}});t.render(o,e),c.value===!0?e.querySelector("span.loading").style.display="block":e.querySelector("span.loading").style.display="none"},updated(e,c){c.value===!0?e.querySelector("span.loading").style.display="block":e.querySelector("span.loading").style.display="none"},unmounted(e){e.lastElementChild.remove()}},Be=Object.freeze(Object.defineProperty({__proto__:null,default:L},Symbol.toStringTag,{value:"Module"})),x={loading:L},Le=e=>{Object.keys(y).forEach(c=>{const a=y[c];a&&a.install?a.install(e):(console.log(a[c]),console.error(`Component ${c} is missing an install method`))});for(const c in x){const a=x[c];e.directive(c,a)}},ke={version:S,install:Le};exports.HoverCard=be;exports.components=y;exports.default=ke;exports.directives=x;exports.hBgPlaceholder=ve;exports.hBgSilder=he;exports.hBlurLoading=fe;exports.hExpandCard=ge;exports.hLoading=ue;exports.hProgressBar=_e;exports.hTab=ye;exports.loading=Be;