1import{u as e,k as C,J as w}from"./jsxRuntime.module-B-KL8CSq.js";import{d as m,y as B}from"./hooks.module-Csg2KNhZ.js";/* empty css */window.CESIUM_BASE_URL="/static/frontend/cesium/";const P=[{label:"ProSorgu",desc:"Parsel ve bölge sorgularını profesyonelce yapın.",icon:"prosorgu"},{label:"Basit Sorgu",desc:"Hızlı ve kolay parsel sorgulama aracı.",icon:"search"},{label:"3D Model",desc:"Araziyi 3D ortamda inceleyin.",icon:"cube"},{label:"Hisseli Parsel",desc:"Hisseli parselleri analiz edin.",icon:"split"},{label:"AI Drone",desc:"Yapay zeka destekli drone görüntü analizi.",icon:"drone"},{label:"Mahalle Analizi",desc:"Demografik ve yatırım verileri.",icon:"chart"},{label:"SatıŠGridleri",desc:"Bölgesel fiyat ve satıŠyoÄunluÄu analizi.",icon:"grid"},{label:"AI Video",desc:"Arazi videolarını otomatik oluÅturun.",icon:"video"}];function S(){return e("div",{class:"pp-auth-capabilities","aria-labelledby":"auth-capabilities-heading",children:[e("h2",{id:"auth-capabilities-heading",class:"pp-auth-capabilities__title",children:"Yapabilecekleriniz"}),e("div",{class:"pp-auth-capabilities__grid",role:"list",children:P.map(t=>e("div",{class:"pp-auth-capabilities__card pp-landing-hero-capabilities__card",role:"listitem",children:[e("div",{class:"pp-landing-hero-capabilities__top",children:[e("span",{class:`pp-landing-hero-capabilities__icon pp-landing-hero-capabilities__icon--${t.icon}`,"aria-hidden":"true"}),e("strong",{children:t.label})]}),e("div",{class:"pp-landing-hero-capabilities__body",children:e("p",{children:t.desc})})]},t.label))})]})}function L({favicon:t,registerUrl:a,registrationCredits:r=0}){const i=Number(r)||0,n=i>0;return e("div",{class:"pp-auth-branding pp-auth-branding--enter",children:[e("a",{class:"pp-auth-branding__logo",href:"/","aria-label":"ProParcel ana sayfa",children:[e("img",{src:t,alt:"",width:36,height:36,decoding:"async"}),e("span",{children:"PROPARCEL"})]}),e("div",{class:"pp-auth-branding__panel",children:[e("div",{class:"pp-auth-branding__hero",children:[e("h1",{class:"pp-auth-branding__title",children:[e("span",{children:"Arazi Yatırımının"}),e("span",{class:"pp-auth-branding__title-accent",children:"Yeni Platformu"})]}),e("p",{class:"pp-auth-branding__sub",children:"Araziyi keÅfet, analiz et, böl, yatırım kararını ver."})]}),n?e("div",{class:"pp-auth-gift",role:"region","aria-label":"Yeni üyelere baÅlangıç hediyesi",children:[e("div",{class:"pp-auth-gift__icon","aria-hidden":"true",children:e("i",{class:"fas fa-gift"})}),e("p",{class:"pp-auth-gift__eyebrow",children:"Yeni üyelere baÅlangıç hediyesi"}),e("p",{class:"pp-auth-gift__credit","aria-label":`${i} Kredi`,children:[e("span",{class:"pp-auth-gift__amount",children:i}),e("span",{class:"pp-auth-gift__unit",children:"Kredi"})]}),e("a",{class:"pp-auth-gift__cta",href:"/harita/",children:"BaÅla"}),e("p",{class:"pp-auth-gift__foot",children:["Ãcretsiz ",e("strong",{children:"ProSorgu"})," deneyimi"]})]}):null,e(S,{}),a?e("p",{class:"pp-auth-branding__hint",children:e("a",{href:a,children:"Ãcretsiz hesap oluÅturun"})}):null]})]})}const y="https://accounts.google.com/gsi/client";let g=null;function z(){return typeof window>"u"?Promise.reject(new Error("Tarayıcı ortamı gerekli")):window.google?.accounts?.id?Promise.resolve(window.google):g||(g=new Promise((t,a)=>{const r=document.querySelector(`script[src="${y}"]`);if(r){r.addEventListener("load",()=>t(window.google)),r.addEventListener("error",()=>a(new Error("Google script yüklenemedi")));return}const i=document.createElement("script");i.src=y,i.async=!0,i.defer=!0,i.onload=()=>t(window.google),i.onerror=()=>a(new Error("Google script yüklenemedi")),document.head.appendChild(i)}),g)}async function E(t){if(!t)throw new Error("Google OAuth yapılandırılmamıÅ");const a=await z();return new Promise((r,i)=>{let n=!1;const o=(l,s)=>{n||(n=!0,s?i(s):r(l))};a.accounts.id.initialize({client_id:t,callback:l=>{l?.credential?o(l.credential,null):o(null,new Error("Google oturumu alınamadı"))},auto_select:!1,cancel_on_tap_outside:!0,itp_support:!0}),a.accounts.id.prompt(l=>{n||(l.isNotDisplayed()||l.isSkippedMoment())&&o(null,new Error("Google oturumu açılamadı. Lütfen tekrar deneyin veya popup engelini kaldırın."))})})}async function k(t,a,r){const i=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":r,"X-Requested-With":"XMLHttpRequest"},credentials:"same-origin",body:JSON.stringify({id_token:a})}),n=await i.json().catch(()=>({}));if(!i.ok||n.success===!1){const o=n.message||"Google iÅlemi baÅarısız",l=new Error(o);throw l.code=n.code,l.registerUrl=n.register_url,l}return n}function b({id:t,name:a,placeholder:r,error:i,autoComplete:n}){const[o,l]=m(!1);return e("div",{class:"pp-auth-field",children:[e("span",{class:"pp-auth-field__icon","aria-hidden":"true",children:e("i",{class:"fas fa-lock"})}),e("input",{type:o?"text":"password",id:t,name:a,class:`pp-auth-input${i?" pp-auth-input--error":""}`,placeholder:r,required:!0,autoComplete:n}),e("button",{type:"button",class:"pp-auth-field__toggle",onClick:()=>l(s=>!s),"aria-label":o?"Åifreyi gizle":"Åifreyi göster",children:e("i",{class:`fas ${o?"fa-eye-slash":"fa-eye"}`,"aria-hidden":"true"})})]})}function q({config:t}){const[a,r]=m("email"),[i,n]=m(""),[o,l]=m(!1),s=t.loginUrl+(t.nextUrl?`?next=${encodeURIComponent(t.nextUrl)}`:""),u=!!(t.googleAuthEnabled&&t.googleClientId);async function h(){if(!(!u||!t.loginGoogleUrl)){n(""),l(!0);try{const d=await E(t.googleClientId),G=(await k(t.loginGoogleUrl,d,t.csrfToken)).redirect_url||"/";window.location.href=G}catch(d){let c=d.message||"Google ile giriÅ yapılamadı.";
1(d.code==="not_found"||d.code==="phone_required")&&(c+=" Kayıt sayfasında Google ile devam ederek üye olabilirsiniz."),n(c)}finally{l(!1)}}}return B(()=>{const d=document.getElementById("phone_number");if(!d)return;const c=()=>{d.value=d.value.replace(/\D/g,"").slice(0,10)};return d.addEventListener("input",c),()=>d.removeEventListener("input",c)},[a]),e("div",{class:"pp-auth-panel pp-auth-panel--enter",children:[e("header",{class:"pp-auth-panel__head",children:[e("h1",{class:"pp-auth-panel__title",children:"Hesabınıza GiriÅ Yapın"}),e("p",{class:"pp-auth-panel__lead",children:"ProParcel'e katılın, profesyonel analiz araçlarını kullanın."})]}),t.error?e("div",{class:"pp-auth-alert pp-auth-alert--error",role:"alert",children:t.error}):null,e("div",{class:"pp-auth-tabs",role:"tablist","aria-label":"GiriÅ yöntemi",children:[e("button",{type:"button",role:"tab",class:`pp-auth-tabs__btn${a==="email"?" is-active":""}`,"aria-selected":a==="email",onClick:()=>r("email"),children:[e("i",{class:"fas fa-envelope","aria-hidden":"true"})," E-posta"]}),e("button",{type:"button",role:"tab",class:`pp-auth-tabs__btn${a==="phone"?" is-active":""}`,"aria-selected":a==="phone",onClick:()=>r("phone"),children:[e("i",{class:"fas fa-mobile-alt","aria-hidden":"true"})," Telefon"]})]}),a==="email"?e("form",{class:"pp-auth-form",method:"post",action:s,children:[e("input",{type:"hidden",name:"csrfmiddlewaretoken",value:t.csrfToken}),e("input",{type:"hidden",name:"login_type",value:"email"}),e("input",{type:"hidden",name:"next",value:t.nextUrl||""}),e("div",{class:"pp-auth-field",children:[e("span",{class:"pp-auth-field__icon","aria-hidden":"true",children:e("i",{class:"fas fa-envelope"})}),e("input",{type:"email",id:"email",name:"email",class:`pp-auth-input${t.formErrors?.email?" pp-auth-input--error":""}`,placeholder:"E-posta adresiniz",value:t.email||"",required:!0,autoComplete:"email"})]}),t.formErrors?.email?e("p",{class:"pp-auth-field-error",children:t.formErrors.email}):null,e(b,{id:"password",name:"password",placeholder:"Åifre",error:t.formErrors?.password,autoComplete:"current-password"}),t.formErrors?.password?e("p",{class:"pp-auth-field-error",children:t.formErrors.password}):null,e("button",{type:"submit",class:"pp-auth-btn pp-auth-btn--primary",children:[e("i",{class:"fas fa-sign-in-alt","aria-hidden":"true"})," GiriÅ Yap"]})]}):e("form",{class:"pp-auth-form",method:"post",action:s,children:[e("input",{type:"hidden",name:"csrfmiddlewaretoken",value:t.csrfToken}),e("input",{type:"hidden",name:"login_type",value:"phone"}),e("input",{type:"hidden",name:"next",value:t.nextUrl||""}),e("div",{class:"pp-auth-field pp-auth-field--phone",children:[e("span",{class:"pp-auth-field__prefix",children:"+90"}),e("input",{type:"tel",id:"phone_number",name:"phone_number",class:`pp-auth-input${t.formErrors?.phone_number?" pp-auth-input--error":""}`,placeholder:"5XX XXX XX XX",value:t.phoneNumber||"",maxLength:10,pattern:"[0-9]{10}",required:!0,autoComplete:"tel"})]}),t.formErrors?.phone_number?e("p",{class:"pp-auth-field-error",children:t.formErrors.phone_number}):null,e(b,{id:"password_phone",name:"password",placeholder:"Åifre",error:t.formErrors?.password,autoComplete:"current-password"}),e("button",{type:"submit",class:"pp-auth-btn pp-auth-btn--primary",children:[e("i",{class:"fas fa-sign-in-alt","aria-hidden":"true"})," GiriÅ Yap"]})]}),e("p",{class:"pp-auth-panel__link-row",children:e("a",{href:t.forgotPasswordUrl,children:"Åifremi unuttum"})}),e("div",{class:"pp-auth-divider",children:e("span",{children:"veya"})}),i?e("div",{class:"pp-auth-alert pp-auth-alert--error",role:"alert",children:[i,i.includes("Kayıt")?null:e(C,{children:[" ",e("a",{href:t.registerUrl,children:"Kayıt olun"})]})]}):null,u?e("button",{type:"button",class:"pp-auth-btn pp-auth-btn--google",disabled:o,onClick:h,children:[e("span",{class:"pp-auth-btn__google-icon","aria-hidden":"true"}),o?"Google baÄlanıyorâ¦":"Google ile devam et"]}):e("button",{type:"button",class:"pp-auth-btn pp-auth-btn--google",disabled:!0,title:"YapılandırılmamıÅ",children:[e("span",{class:"pp-auth-btn__google-icon","aria-hidden":"true"}),"Google ile devam et"]}),e("p",{class:"pp-auth-panel__footer",children:["Hesabınız yok mu?"," ",e("a",{href:t.registerUrl,children:"Yeni Hesap OluÅtur"})]})]})}function I(t=document){const a=t.querySelector(".pp-auth-legacy-register")||t;a.querySelectorAll('input[type="password"]').forEach(r=>{if(!r.id||r.closest(".password-input-wrap"))return;const i=document.createElement("div");i.className="password-input-wrap",r.parentNode.insertBefore(i,r),i.appendChild(r);const n=document.createElement("button");n.type="button",n.className="password-toggle",n.dataset.target=r.id,n.setAttribute("aria-label","Åifreyi göster"),n.setAttribute("title","Åifreyi göster"),n.innerHTML='<i class="fas fa-eye" aria-hidden="true"></i>',i.appendChild(n)}),a.querySelectorAll(".password-toggle").forEach(r=>{r.dataset.ppPwdToggleBound||(r.dataset.ppPwdToggleBound="1",r.addEventListener("click",()=>{const i=document.getElementById(r.dataset.target),n=r.querySelector("i");!i||!n||(i.type==="password"?(i.type="text",n.classList.remove("fa-eye"),n.classList.add("fa-eye-slash"),r.setAttribute("aria-label","Åifreyi gizle"),r.setAttribute("title","Åifreyi gizle")):(i.type="password",n.classList.remove("fa-eye-slash"),n.classList.add("fa-eye"),r.setAttribute("aria-label","Åifreyi göster"),r.setAttribute("title","Åifreyi göster")))}))})}function T(){const t=document.getElementById("auth-register-bootstrap");if(!t?.textContent)return null;try{return JSON.parse(t.textContent)}catch{return null}}function f(t,a){document.body.classList.toggle("pp-register-google-mode",!!t),document.querySelectorAll(".pp-auth-reg-password-row").forEach(l=>{l.style.display=t?"none":"",l.querySelectorAll("input").forEach(s=>{t?(s.removeAttribute("required"),s.value=""):s.setAttribute("required","required")})}),document.querySelectorAll(".pp-auth-reg-google-banner").forEach(l=>{l.hidden=!t}),document.querySelectorAll("#email_individual, #email_consultant, #email_corporate").forEach(l=>{l&&(t&&a?.email?(l.value=a.email,l.readOnly=!0,l.setAttribute("aria-readonly","true")):t||(l.readOnly=!1,l.removeAttribute("aria-readonly")))});const i=a?.first_name||a?.given_name||"",n=a?.last_name||a?.family_name||"";[["#first_name_individual","#first_name_consultant","#first_name_corporate",i],["#last_name_individual","#last_name_consultant","#last_name_corporate",n]].forEac
1h(([l,s,u,h])=>{[l,s,u].forEach(d=>{const c=document.querySelector(d);c&&t&&h&&(c.value=h)})})}function x(){const t=T();if(!t?.googleAuthEnabled||!t.googleClientId)return;const a=document.getElementById("pp-register-google-btn"),r=document.getElementById("pp-register-google-clear");a&&(t.registerGoogle&&f(!0,t.registerGoogle),a.addEventListener("click",async()=>{a.disabled=!0;try{const i=await E(t.googleClientId),n=await k(t.registerGooglePrefillUrl,i,t.csrfToken);f(!0,n.profile)}catch(i){window.alert(i.message||"Google ile devam edilemedi.")}finally{a.disabled=!1}}),r&&r.addEventListener("click",async()=>{try{await fetch(t.registerGoogleClearUrl,{method:"POST",headers:{"X-CSRFToken":t.csrfToken,"X-Requested-With":"XMLHttpRequest"},credentials:"same-origin"}),f(!1,null)}catch{}}))}function U(){const t=document.getElementById("auth-portal-bootstrap");if(!t?.textContent)return{};try{return JSON.parse(t.textContent)}catch{return{}}}function R(){const t=document.getElementById("auth-portal-page");return t?{favicon:(t.dataset.favicon||"/static/img/favicon.ico").trim(),heroBg:(t.dataset.heroBg||"/media/landingpage/sluet3.png").trim(),mode:(t.dataset.mode||"login").trim()}:{favicon:"/static/img/favicon.ico",heroBg:"/media/landingpage/sluet3.png",mode:"login"}}const p=R(),A=U();document.documentElement.style.setProperty("--pp-auth-hero-bg",`url("${p.heroBg}")`);const _=document.getElementById("auth-portal-branding");async function X(){if(!_)return;let t=0;try{const a=await fetch("/api/gifts/");if(a.ok){const r=await a.json();t=Number(r?.registration?.default)||0}}catch{t=0}w(e(L,{favicon:p.favicon,registerUrl:p.mode==="login"?A.registerUrl||"/accounts/register/":null,registrationCredits:t}),_)}X();const v=document.getElementById("auth-portal-login-root");v&&p.mode==="login"&&w(e(q,{config:A}),v);if(p.mode==="register"){const t=()=>{I(),x()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t):t()} 2//# sourceMappingURL=authPortal-DhKHRlaw.js.map
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.