import{_ as y}from"./D0POG8DB.js";import{q as n,s as r,h as e,I as k,f as w,a1 as q,u as x,y as I,o as u,c as b,a as c,i as B,k as H,l as M,R as S}from"./By0a1H9j.js";import{_ as C}from"./DlAUqK2U.js";import"./qNSOYSvs.js";const R={class:"min-h-dvh"},g={class:"flex flex-col items-center"},D={__name:"default",setup(F){const o=n(null),{isOnIframe:s,isAffiliateLead:f}=r(e("iframe")),{comparatorFilterMethods:d}=e("comparatorFilter"),{newsletterMethods:l}=e("newsletter");r(e("services"));const{simpleQuery:_,extra_fields:m}=r(e("redirect")),{t:v}=k(),i=n(!0),t=w(),a=q("query",()=>t.query);return a.value.service_id&&t.path=="/pt/rank/typ"&&d.setDefaultService(a.value.service_id),a.value.to_service&&t.path=="/pt/newsletter"&&(l.setQueryParams(a.value),l.setIsHasOffers(!0)),x(()=>{if(!s.value)return t.query.il||_.value.il||m.value.il?{title:v("loading.label"),link:[{rel:"icon",href:"data:,"}]}:{title:"Kreditiweb"}}),I(()=>{s.value&&(i.value=!1),!s.value&&!f.value&&o.value.classList.add("custom-gradient")}),(p,L)=>{const h=y;return u(),b("div",R,[c("div",{ref_key:"overlayContainer",ref:o,class:"absolute h-[90vh] w-full -z-50"},null,512),B(i)?(u(),H(h,{key:0})):M("",!0),c("main",g,[S(p.$slots,"default",{},void 0,!0)])])}}},$=C(D,[["__scopeId","data-v-b097c3aa"]]);export{$ as default};