PageSourceSearch

https://homla.pl/build/assets/Welcome-BJnjiG8i.js

js homla.pl collected 2026-10-09 00:35:34 UTC 16,751 bytes, 1 lines download raw bytes

1import{e as M,i as G,k,N as q,f as E,p as P,c as g,a as o,b as e,n as $,u as d,l as z,w as s,F as T,q as B,d as f,t as v,j as S,g as C,o as r,G as J,x as K,av as Q,bc as U,bd as X,b4 as Y,b5 as ee,a4 as A,h as te,v as le,S as oe,E as se}from"./app-BzwN8A_H.js";import{b as re,a as ae,p as ne,g as ie,r as de}from"./common-CUb6qeoh.js";import{b as fe}from"./index-CrMtLWgl.js";import{_ as R}from"./PrimaryButton-C7YCaiZv.js";import{_ as ue,M as ce}from"./BurgerButton.vue_vue_type_script_setup_true_lang-Wp7XzzkC.js";import{_ as me}from"./SecondaryButton-kz1k4B1B.js";import{_ as pe}from"./ApplicationLogo-CcqhvWpM.js";import{_ as I,a as ge}from"./DropdownLink-ki5nM6aJ.js";import{_ as be}from"./RedirectModals.vue_vue_type_script_setup_true_lang-NLT7ppfx.js";import{_ as he}from"./Footer-BZER8hBz.js";import{_ as xe}from"./LocationInput-BnbHoxdb.js";import{_ as V}from"./NewCustomSelectInput-DUItMXyk.js";import{_ as N}from"./SectionDefaultLayout.vue_vue_type_script_setup_true_lang-Cd3ZUb9_.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ModalStandard-trHrlIR8.js";import"./simplebar-CfC_CRCA.js";import"./OFInputValidation-vssJRj5t.js";import"./RequiredAsterix-BDLQkbf-.js";import"./InputError-DuCQBXiN.js";import"./OFInputValid-051_v9SF.js";const ve={class:"flex items-center h-16"},we={class:"flex"},ye={class:"shrink-0 flex items-center"},_e={class:"page-main-nav md:ml-8 flex flex-col justify-center"},ke={class:"hidden lg:block"},$e={class:"w-full",type:"button"},ze={class:"main-nav_second-level py-1 whitespace-nowrap"},je={class:"hidden ml-auto lg:flex sm:items-center"},Ce={key:0,class:"mr-3 relative"},Te={class:"inline-flex rounded-md"},Se={type:"button",class:"inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 bg-white hover:text-gray-700 focus:outline-none transition ease-in-out duration-150"},Oe=M({__name:"Header",props:{response:Object,hiddenFooter:{type:Boolean,default:!1},variant:{type:String,default:"constrained"},mood:{type:String,default:"light"}},setup(l){const i=G("appSlug");k(!1);const b=k(!1),c=q().props,m=k(c.auth.user),j=[{name:"Ogłoszenia",href:route("offers"),current:route().current("offers")},{name:"Artykuły",href:route("article.index"),current:route().current("article.*")},{name:"Biura",children:[{name:"Agencje nieruchomości",href:route("business.agency.index"),current:route().current("business.agency.*")},{name:"Deweloperzy",href:route("business.developer.index"),current:route().current("business.developer.*")}],current:route().current("business.*")}],y=E(()=>c.auth.user==null),a=k(!1),t=k(!1),w=k(!1);function n(){re(t)}function p(){ae(a)}function h(){a.value=!1,t.value=!1,w.value=!1}return(_,u)=>{var F,H,L;const W=P("font-awesome-icon");return r(),g("div",null,[o(be,{beldomProfileRedirect:a.value,beldomDashboardRedirect:t.value,beldomOfferCreateRedirect:w.value,onClose:h},null,8,["beldomProfileRedirect","beldomDashboardRedirect","beldomOfferCreateRedirect"]),e("nav",{class:$(["py-4",{"bg-bd-main-500 border-none":d(i)==="homla"&&_.route().current("home"),"bg-bd-base-2 border":d(i)==="homla"&&!_.route().current("home"),"bg-white border-b border-gray-100 shadow-md":d(i)==="takidom"}])},[e("div",{class:$(["mx-auto px-4 sm:px-6 lg:px-8 text-bd-brand-2-dark",{"max-w-7xl":l.variant==="constrained","w-full":l.variant==="full","text-white":l.mood==="dark"}])},[e("div",ve,[e("div",we,[e("div",ye,[o(d(z),{href:_.route("home"),class:"flex flex-no-wrap"},{default:s(()=>[o(pe,{class:"block h-9 w-auto fill-current text-gray-800"})]),_:1},8,["href"])])]),e("div",_e,[e("ul",ke,[(r(),g(T,null,B(j,(x,O)=>e("li",{key:O,class:$(["inline-block mx-2 px-3 py-0.5 border rounded hover:border-gray-300 active:bg-bd-gray-light",[x.current?"bg-gray-200":"border-white/0"]])},[x.children?(r(),C(I,{key:0,align:"left"},{trigger:s(()=>[e("button",$e,v(x.name),1)]),content:s(()=>[e("ul",ze,[(r(!0),g(T,null,B(x.children,(D,Z)=>(r(),g("li",{key:Z,class:"hover:bg-gray-50 text-sm hover:text-bd-gray-dark"},[o(d(z),{class:$(["py-2 px-3 block",[D.current?"bg-gray-200":"border-white/0"]]),href:D.href},{default:s(()=>[f(v(D.name),1)]),_:2},1032,["href","class"])]))),128))])]),_:2},1024)):(r(),C(d(z),{key:1,class:"w-full h-full",href:x.href},{default:s(()=>[f(v(x.name),1)]),_:2},1032,["href"]))],2)),64))])]),e("div",je,[y.value?S("",!0):(r(),g("div",Ce,[o(I,{align:"right",width:"48"},{trigger:s(()=>{var x,O;return[e("span",Te,[e("button",Se,[f(v((O=(x=_.$page.props.auth)==null?void 0:x.user)==null?void 0:O.name)+" ",1),u[3]||(u[3]=e("svg",{class:"ml-2 -mr-0.5 h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1))])])]}),content:s(()=>[e("div",null,[e("button",{class:"block w-full px-4 py-2 text-left text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out",onClick:n}," Panel "),e("button",{class:"block w-full px-4 py-2 text-left text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out",onClick:p}," Profil "),o(ge,{href:_.route("logout_user"),method:"post",as:"button"},{default:s(()=>[...u[4]||(u[4]=[f(" Wyloguj ",-1)])]),_:1},8,["href"])])]),_:1})])),y.value?(r(),g("div",{key:1,class:$({"text-white":l.mood==="dark"})},[o(d(z),{href:_.route("login"),class:"my-2 text-sm mr-6 hover:text-bd-brand-2"},{default:s(()=>[o(W,{icon:["far","user"],class:"mr-1"}),u[5]||(u[5]=f(" Zaloguj się ",-1))]),_:1},8,["href"])],2)):S("",!0),e("div",null,[o(me,{onClick:u[0]||(u[0]=x=>w.value=!0),type:"button",class:$(["flex flex-no-wrap rounded-sm",{}]),disabled:((H=(F=m.value)==null?void 0:F.type)==null?void 0:H.slug)==="business"&&!((L=m.value)!=null&&L.is_active)},{default:s(()=>[...u[6]||(u[6]=[f(" Dodaj ogłoszenie ",-1)])]),_:1},8,["disabled"])])]),o(ue,{onToggleMenu:u[1]||(u[1]=x=>b.value=!b.value)})])],2)],2),o(ce,{show:b.value,"main-menu":j,"can-login":y.value,onClose:u[2]||(u[2]=x=>b.value=!1)},null,8,["show","can-login"])])}}}),Re={class:"bg-bd-gray-light"},Pe=M({__name:"HomepageLayout",setup(l){return(i,b)=>(r(),g("div",null,[o(Oe,{class:"absolute top-0 w-full z-20 bg-white",variant:"full"}),e("main",Re,[J(i.$slots,"default")]),o(he,{class:"bg-bd-main-500"})]))}}),Be={class:"text-white bg-bd-brand-2 uppercase tracking-widest font-bold text-xs p-4 group-hover:bg-bd-brand-2-dark transition-colors"},Me={class:"offer-img-wrapper min-h-[300px] overflow-hidden relative z-0"},De={class:"thumbnail-wrapper w-full h-full overflow-hidden"},Ae=["src"],Ne={class:"offer-details-wrapper grid grid-cols-4 p-4 pt-1 h-full"},Ee={class:"offer-price flex flex-col col-span-4"},Fe={class:"font-bold"},He={class:"text-sm mt-1"},Le={class:"mt-auto pt-2"},Ie={class:"text-2xl font-bold text-bd-gray-dark"},Ve={class:"offer-size flex items-center"},qe={class:"text-sm font-base text-bd-brand-2-dark"},We={__name:"OfferCard",props:["offer"],setup(l){const i=q().props;return(b,c)=>{const m=P("font-awesome-icon");return r(),C(d(z),{class:"group offer-card offer-item flex flex-col max-h-[500px] flex-1 border border-bd-brand-2-dark/10 w-full bg-white hover:bg-slate-50 hover:shadow-bd-brand-2/20 hover:shadow-lg transition rounded-sm overflow-hidden",href:"/oferty/"+l.offer.title_slug},{default:s(()=>[e("div",Be,v(l.offer.offer_type_title),1),e("div",Me,[e("div",De,[e
1("img",{src:l.offer.offer_thumbnail,alt:"offer-thumbnail",class:"object-cover object-center w-full h-full transition-transform duration-300"},null,8,Ae)]),c[0]||(c[0]=e("div",{class:"real_estate_type absolute top-[0.5rem] right-[1rem]"},null,-1))]),e("div",Ne,[e("div",Ee,[e("p",Fe,v(l.offer.title),1),e("p",He,[o(m,{icon:["far","location-dot"],class:"mr-2 text-bd-brand-1"}),e("span",null,v(l.offer.location.place.name),1)]),e("div",Le,[e("p",Ie,[f(v(d(ne)(l.offer.price.value))+" ",1),e("span",null,v(d(ie)("currencies",l.offer.price.select.value,d(i))),1)]),e("div",Ve,[e("p",qe,[f(v(l.offer.object_size),1),c[1]||(c[1]=e("span",null,[f("m"),e("sup",null,"2")],-1))])])])])])]),_:1},8,["href"])}}},Ze={class:"category-bg absolute w-full h-full left-0 top-0 overflow-hidden"},Ge=["src","alt"],Je=["innerHTML"],Ke={key:0,class:"text-sm ml-auto z-10 drop-shadow"};const Qe=M({__name:"ArticleCard",props:{index:Number,item:Object,gridType:String,itemType:String,withButtons:Boolean},setup(l){const i=l;function b(m){if(i.itemType==="category")return m.name;if(i.itemType==="article")return m.title.rendered}function c(m){return i.itemType==="category"?route("article.category_index",m):i.itemType==="article"?route("article.show",m):"#"}return(m,j)=>(r(),C(d(z),{class:$(["group article-category relative p-2 hover:shadow-xl hover:shadow-bd-brand-2/50 transition rounded-sm overflow-hidden",{"min-h-[300px] md:col-span-2 md:row-span-2":l.index===0&&l.gridType==="withHero","min-h-[192px] lg:min-h-[192px]":l.gridType==="withHero","min-h-[200px] lg:min-h-[248px]":l.gridType==="list","min-h-[300px]":l.gridType==="grid-narrow"}]),href:c(l.item.slug)},{default:s(()=>{var y,a,t,w,n,p,h;return[e("div",Ze,[e("img",{class:"w-full h-full object-cover transition",src:((t=(a=(y=l.item.image)==null?void 0:y.media_details)==null?void 0:a.sizes.large)==null?void 0:t.source_url)||((p=(n=(w=l.item.image)==null?void 0:w.media_details)==null?void 0:n.sizes.full)==null?void 0:p.source_url),alt:l.item.slug+"-image",loading:"lazy"},null,8,Ge)]),e("div",{class:$(["bg-bd-brand-2/85 group-hover:bg-bd-brand-2/100 transition item-content absolute left-0 p-4 bottom-0 w-full text-bd-main-500 flex flex-col",{"text-xl":l.index===0}])},[e("div",{class:"item-title text-xl leading-5 drop-shadow-[0_1px_1px_rgba(0,0,0,0.5)] z-10 mb-2 text-right",innerHTML:b(l.item)},null,8,Je),l.itemType==="article"?(r(),g("div",Ke,v((h=l.item.acf)!=null&&h.is_sponsored?"art. sponsorowany, ":"")+v(l.item.date),1)):S("",!0)],2),S("",!0),l.withButtons?(r(),C(R,{key:1,class:"absolute bottom-[1rem] right-[1rem] py-[0.3rem] text-sm"},{default:s(()=>[...j[0]||(j[0]=[f("Zobacz artykuły",-1)])]),_:1})):S("",!0)]}),_:1},8,["class","href"]))}}),Ue={class:"hero-section relative z-[1] w-full h-[100vh] min-h-[750px] max-h-[1200px] 2xl:min-h-[1050px] lg:min-h-[900px] flex justify-center items-center"},Xe={class:"hero-content-wrapper w-full h-full 2xl:max-w-7xl lg:max-w-6xl flex flex-col items-center px-2 xl:px-0"},Ye={class:"main-form-box flex flex-col justify-center relative z-[5] lg:top-[unset] lg:translate-y-[unset] top-[50%] translate-y-[-50%] w-full aspect-video lg:p-4 drop-shadow-2xl lg:mt-[clamp(150px,15vh,200px)] border-white"},et={class:"p-4 md:p-6 flex flex-col space-y-8"},tt={class:"main-form-fields-wrapper w-[100%] lg:w-[50%] flex flex-col relative z-[5]"},lt={class:"form-fields flex flex-col sm:flex-row sm:space-x-2 space-y-2 sm:space-y-0"},ot={class:"flex flex-row w-full md:w-full p-2 bg-white rounded-sm"},st={class:"flex flex-row w-full md:w-full p-2 bg-white rounded-sm"},rt={class:"form-fields md:flex space-y-2 md:space-y-0 gap-2 p-2 bg-white rounded-sm"},at={class:"flex flex-row w-full flex-grow relative"},nt={class:"flex w-full whitespace-nowrap"},it={class:"next-step-content-wrapper relative z-[0] mt-auto w-full lg:min-h-[150px] flex flex-col items-center"},dt={class:"offer-cards-wrapper relative"},ft={class:"offer-cards-grid grid lg:grid-cols-3 sm:grid-cols-2 gap-6 mt-8"},ut={class:"actions-row w-full flex justify-center mt-16"},ct={class:"section-tiled-separator"},mt={class:"articles-grid-wrapper py-7"},pt={key:0,class:"articles-grid grid lg:grid-cols-3 sm:grid-cols-2 gap-6"},gt={key:1},bt={class:"actions-row w-full flex justify-center mt-8"},Nt=M({__name:"Welcome",props:{canLogin:Boolean,canRegister:Boolean,offers:Array,promoOffers:Object,t
1itle:String,realEstateTypes:Array,offerTypes:Object,selectFields:Object,auth:Object,articles:Array},setup(l){K.add(Q,U,X,Y,ee);const i=l,b=k([]),c=k([]);E(()=>i.offers.slice(0,6));const m=E(()=>i.promoOffers.slice(0,6));i.realEstateTypes.forEach(a=>{b.value=[...b.value,{name:A(a.name),value:A(a.slug)}]}),i.offerTypes.forEach(a=>{c.value=[...c.value,{name:"na "+a.name,value:a.slug}]});function j(a){a.preventDefault();const t=oe({});[...a.target.elements].map(n=>{const p=["offer_type","real_estate_type","location_place","location_place_id","object_size_from"];if(n.value===void 0||!p.includes(n.id))return null;let h="";return n.dataset.optionValue!==void 0?h=n.dataset.optionValue:h=n.value,n.tagName.toLowerCase()==="input"?{name:n.name,value:h}:!1}).filter(n=>n).map(n=>{const p=n.name.replace(/offerForm|(\[)|(])/g,"");t.value={...t.value,[p]:n.value}}),se.get(route("offers"),A(t.value))}function y(a){const t=document.getElementById(a);t?t.scrollIntoView({behavior:"smooth"}):console.error(`Element with ID ${a} not found.`)}return(a,t)=>{const w=P("font-awesome-icon"),n=P("FontAwesomeIcon");return r(),g(T,null,[o(d(te),{title:"Znajdź swoje miejsce!"}),o(Pe,null,{default:s(()=>[e("div",Ue,[t[6]||(t[6]=e("div",{class:"hero-bg absolute w-full h-full km-gradient-bg z-[-1]"},[e("div",{class:"w-[inherit] h-[inherit] km-bg-gradient-overlay"})],-1)),e("div",Xe,[e("div",Ye,[t[4]||(t[4]=e("div",{class:"main-form-bg rounded-md overflow-hidden km-form-bg absolute left-0 top-0 w-full h-full z-[-1]"},[e("div",{class:"overlay bg-slate-900/35 w-full h-full z-[0]"})],-1)),e("div",et,[t[3]||(t[3]=e("h1",{class:"display font-light text-white text-left"},[f(" Wymarzone nieruchomości w "),e("span",{class:"font-extrabold"},"zasięgu kliknięcia.")],-1)),e("div",tt,[t[2]||(t[2]=e("div",{class:"spacer"},null,-1)),e("form",{id:"offer-search-form-small",class:"offer-search-form-small relative flex flex-col shadow-hMedium space-y-2 lg:space-y-2 rounded-lg",onSubmit:le(j,["prevent"])},[e("div",lt,[e("div",ot,[o(V,{id:"real_estate_type",name:"offerForm[real_estate_type]",label:"Nieruchomość",labelSROnly:"",required:"",requiredHidden:"",options:b.value,"onSignal:change":d(de),class:"w-full",variant:"styled-large"},null,8,["options","onSignal:change"])]),e("div",st,[o(V,{id:"offer_type",name:"offerForm[offer_type]",label:"Oferta",labelSROnly:"",required:"",requiredHidden:"",options:c.value,class:"w-full",variant:"styled-large"},null,8,["options"])])]),e("div",rt,[e("div",at,[o(xe,{placeholder:"Szukam nieruchomości w...",label:"Miejscowość",labelSROnly:"",class:"w-full",requiredHidden:"",variant:"styled-large"})])]),e("div",nt,[o(R,{flat:"",class:"!mt-4 sm:mt-0 w-full text-lg border-4 border-bd-brand-2-light/10 rounded-sm",variant:"large"},{default:s(()=>[t[1]||(t[1]=f(" Pokaż na mapie ",-1)),o(w,{class:"ml-3",icon:["fas","magnifying-glass"]})]),_:1})])],32)])])]),e("div",it,[e("button",{onClick:t[0]||(t[0]=()=>y("promowane")),class:"btn-outline-fill-animation relative text-white font-extrabold text-2xl px-5 py-3 border mb-4 lg:mb-0 border-white rounded-sm"},[o(n,{class:"mr-3",icon:d(fe).faes.bookmark,size:"xs"},null,8,["icon"]),t[5]||(t[5]=e("span",null,"Promowane oferty",-1))])])])]),o(N,{class:"py-12"},{default:s(()=>[t[8]||(t[8]=e("h2",{id:"promowane",class:"text-bd-brand-2 pt-8 -mt-8"}," Promowane oferty ",-1)),t[9]||(t[9]=e("div",{class:"km-separator-gradient mt-5"},null,-1)),e("div",dt,[e("div",ft,[(r(!0),g(T,null,B(m.value,(p,h)=>(r(),C(We,{key:h,offer:p},null,8,["offer"]))),128))])]),e("div",ut,[o(d(z),{href:"/oferty"},{default:s(()=>[o(R,null,{default:s(()=>[...t[7]||(t[7]=[f("Mapa ogłoszeń",-1)])]),_:1})]),_:1})])]),_:1}),e("div",ct,[o(N,{class:"py-12 flex flex-col items-center relative"},{default:s(()=>[...t[10]||(t[10]=[e("div",{class:"w-full flex justify-center items-center relative"},[e("h3",{class:"display text-shadow text-white p-2 max-w-[900px] text-center font-light"},[f(" Wygodne przeglądanie ogłoszeń "),e("span",{class:"font-bold"},"bezpośrednio na mapie.")])],-1)])]),_:1})]),o(N,{class:"pb-16"},{default:s(()=>{var p;return[t[13]||(t[13]=e("h2",{class:"text-bd-brand-2"},"Artykuły",-1)),t[14]||(t[14]=e("div",{class:"km-separator-gradient mt-5"},null,-1)),t[15]||(t[15]=e("p",{class:"mt-5 text-bd-brand-2-dark"}," Twoja dawka nowości związanych z nieruchomościami i tematów pochodnych. ",-1)),e("div",mt,[((p=l.articles)==null?void 0:p.length)>0?(r(),g("div",pt,[(r(!0),g(T,null,B(l.articles,(h,_)=>(r(),C(Qe,{key:_,"grid-type":"grid-narrow","item-type":"article",item:h},null,8,["item"]))),128))])):(r(),g("div",gt,[...t[11]||(t[11]=[e("p",{class:"py-4"},"Brak artykułów",-1)])]))]),e("div",bt,[o(d(z),{href:"/artykuly"},{default:s(()=>[o(R,null,{default:s(()=>[...t[12]||(t[12]=[f("Więcej artykułów",-1)])]),_:1})]),_:1})])]}),_:1})]),_:1})],64)}}});
1export{Nt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.