import{_ as $}from"./qNSOYSvs.js";import{B as C,i as o,x as v,o as p,c as f,p as B,e as z,a as c,q as n,s as i,h as _,y as g,av as H,b as m,w as S,I as L,u as O,k as W,l as R,R as V,j}from"./By0a1H9j.js";import{_ as w}from"./DlAUqK2U.js";import{_ as A}from"./DbzBLAxm.js";const x=s=>(B("data-v-71e8316b"),s=s(),z(),s),D={xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 36 36"},E=x(()=>c("circle",{cx:"16",cy:"16",r:"15.9155",class:"progress-background"},null,-1)),K=x(()=>c("circle",{cx:"16",cy:"16",r:"15.9155",class:"progress-progress duration-500"},null,-1)),N=[E,K],F={__name:"Circle",props:["size","percent"],setup(s){C(e=>({"143e8dd8":o(l),"389d7f32":o(a)}));const t=s,l=v(()=>`${50*+t.size}px`),a=v(()=>100-t.percent);return(e,r)=>(p(),f("svg",D,N))}},M=w(F,[["__scopeId","data-v-71e8316b"]]),P={class:"max-w-[1500px] w-full mx-auto"},T={class:"kw_header-height-mobile max-w-7xl flex justify-between items-center pr-8 pl-7 xs:pr-10 mx-auto sm:kw_header-height-desktop md:justify-center"},q={class:"md:hidden"},G={__name:"Form",props:["percent"],setup(s){const t=n(),l=n("KreditiWeb logo"),{isOnIframe:a}=i(_("iframe")),{affiliateData:e}=i(_("affiliate")),r=n("144px"),u=n("24px"),d=n(!0);return g(()=>{if(!e.value||!a.value){t.value=H;return}e.value.logo&&(t.value=e.value.logo),e.value.name&&(l.value=e.value.name),e.value.logo_width&&(r.value=e.value.logo_width+"px",u.value="auto"),d.value=e.value.display_logo}),(y,h)=>{const I=$,b=M,k=A;return p(),f("header",P,[c("div",T,[m(I,{logo:o(t),alt:o(l),logoWidth:o(r),show:o(d),logoHeight:o(u)},null,8,["logo","alt","logoWidth","show","logoHeight"]),c("div",q,[m(k,null,{default:S(()=>[m(b,{size:"0.5",percent:s.percent},null,8,["percent"])]),_:1})])])])}}},U={class:"flex flex-col max-w-[1500px] mx-auto relative"},J={__name:"native",setup(s){const{progressPercentage:t}=i(_("native")),{locale:l}=L();O({title:"Kreditiweb",htmlAttrs:{lang:l.value}});const a=n(!0),e=n(null),{isOnIframe:r}=i(_("iframe")),{affiliateData:u}=i(_("affiliate"));return g(()=>{e.value&&window.self===window.parent&&e.value.classList.add("custom-gradient"),window.self!==window.parent&&!u.value.display_logo&&(a.value=!1)}),(d,y)=>{const h=G;return p(),f("div",{class:j(["min-h-dvh",{"pt-2 md:pt-4":o(r)&&!o(a)}])},[c("div",{ref_key:"overlayContainer",ref:e,class:"absolute h-[90vh] w-full -z-50"},null,512),c("main",U,[o(a)?(p(),W(h,{key:0,percent:o(t)?o(t):0},null,8,["percent"])):R("",!0),V(d.$slots,"default",{},void 0,!0)])],2)}}},ee=w(J,[["__scopeId","data-v-8f45deeb"]]);export{ee as default};