1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98069],{98069:(e,t,r)=>{r.r(t),r.d(t,{default:()=>f});var n=r(95155),l=r(12115),s=r(20063),a=r(716),i=r(79898),o=r(60080),u=r(52923),c=r(87484),d=r(41046),m=r(6251);let x={promotion_id:"login_nudge",promotion_name:"GiriÅ tÉklifi",creative_name:"bottom_sheet"},h=["fav","chat","alert","post"];function f(){let{t:e}=(0,a.s)(),t=(0,s.usePathname)(),{user:r,ready:f}=(0,i.A)(),[g,p]=(0,l.useState)(!1),[v,b]=(0,l.useState)(!1),[k,N]=(0,l.useState)("nudge"),[j,w]=(0,l.useState)(0),[_,T]=(0,l.useState)(0),[y,C]=(0,l.useState)(0),E=(0,l.useRef)(null),S=(0,l.useRef)(null),R=(0,l.useRef)(0),L=(0,l.useRef)(null),W=(0,l.useRef)(t);W.current=t;let A=(0,l.useRef)(!1);A.current=f&&!r;let B=(0,l.useCallback)(e=>{S.current&&clearTimeout(S.current),e&&(0,m.h8)(),C(0),b(!1),setTimeout(()=>p(!1),320)},[]),M=(0,l.useCallback)(e=>{let t=(0,m.QZ)();if(!t){var r;if(!A.current||!(0,m.i_)()||(0,m.db)()||(r=(0,u.l1)(W.current)).startsWith("/cabinet")||r.startsWith("/create-post")||r.startsWith("/new-listing")||document.querySelector("[data-login-modal]"))return;if((0,m.XO)()){R.current<10&&(R.current+=1,setTimeout(()=>{var t;return null==(t=L.current)?void 0:t.call(L,e)},5e3));return}(0,m.R_)()}N(e),w((0,c.AU)()),T(0),p(!0),requestAnimationFrame(()=>requestAnimationFrame(()=>b(!0))),(0,o.$m)("view_promotion",{...x,creative_slot:e}),t||(S.current=setTimeout(()=>B(!1),14e3))},[B]);L.current=M,(0,l.useEffect)(()=>{if(!(0,m.QZ)())return;let e=setTimeout(()=>M("nudge"),800);return()=>clearTimeout(e)},[M]),(0,l.useEffect)(()=>{let e=null,t=(0,m.VR)(t=>{e&&clearTimeout(e),e=setTimeout(()=>M(t),2900)}),r=setTimeout(()=>M("nudge"),75e3);return()=>{t(),e&&clearTimeout(e),clearTimeout(r)}},[M]),(0,l.useEffect)(()=>{var e,r,n;let l=null!=(e=(0,u.l1)(t).split("/").filter(Boolean)[0])?e:"";if((null!=(r=(0,u.eK)(l))?r:l)==="listing")try{Number(null!=(n=sessionStorage.getItem("praykListingViews"))?n:"0")>=3&&(0,m.eO)("nudge")}catch(e){}},[t]),(0,l.useEffect)(()=>{if(!g)return;let e=setInterval(()=>T(e=>(e+1)%h.length),3200);return()=>clearInterval(e)},[g]),(0,l.useEffect)(()=>{r&&g&&B(!1)},[r,g,B]),(0,l.useEffect)(()=>()=>{S.current&&clearTimeout(S.current)},[]);let q=()=>{(0,o.$m)("login_nudge_dismiss",{...x,creative_slot:k}),B(!0)};if(!g||r)return null;let I=j>0?e("loginNudge.savedNote",{count:j}):null;return(0,n.jsx)("div",{"data-login-nudge":"",className:"fixed inset-x-3 bottom-20 z-[95] transition-all duration-300 ease-out sm:bottom-4 sm:left-auto sm:right-4 sm:w-[360px] ".concat(v?"translate-y-0 opacity-100":"pointer-events-none translate-y-8 opacity-0"),style:y?{transform:"translateY(".concat(y,"px)"),transition:"none"}:void 0,role:"complementary","aria-label":e("loginNudge.title"),onTouchStart:e=>{var t,r;E.current=null!=(r=null==(t=e.touches[0])?void 0:t.clientY)?r:null,S.current&&clearTimeout(S.current)},onTouchMove:e=>{var t,r;if(null==E.current)return;let n=(null!=(r=null==(t=e.touches[0])?void 0:t.clientY)?r:0)-E.current;n>0&&C(n)},onTouchEnd:()=>{y>55?q():C(0),E.current=null},children:(0,n.jsxs)("div",{className:"relative overflow-hidden rounded-[22px] border border-slate-200/80 bg-white/92 px-3.5 pb-3.5 pt-2 shadow-[0_18px_45px_-18px_rgba(15,23,42,0.5)] backdrop-blur-xl dark:border-white/10 dark:bg-[#16171b]/92",children:[(0,n.jsx)("div",{className:"mx-auto mb-2.5 h-1 w-9 rounded-full bg-slate-200 sm:hidden dark:bg-white/15","aria-hidden":"true"}),(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("div",{className:"flex h-[52px] w-[52px] shrink-0 items-center justify-center rounded-[15px] bg-[#0075ff]/10 text-[#0075ff]",children:(0,n.jsxs)("svg",{viewBox:"0 0 24 24",className:"h-7 w-7",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,n.jsx)("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),(0,n.jsx)("circle",{cx:"12",cy:"7",r:"4"})]})}),(0,n.jsxs)("div",{className:"min-w-0 flex-1 pt-0.5",children:[(0,n.jsx)("div",{className:"truncate pr-7 text-[15px] font-bold leading-tight tracking-[-0.01em] text-slate-900 dark:text-white",children:e("loginNudge.title")}),(0,n.jsx)("div",{className:"mt-1.5 flex h-[18px] items-center",children:I?(0,n.jsx)("span",{className:"truncate text-[12.5px] leading-none text-slate-600 dar
1k:text-slate-300",children:I}):(0,n.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[(0,n.jsx)("span",{className:"shrink-0 text-[#0075ff]","aria-hidden":"true",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("path",{d:"m5 12 5 5L20 7"})})}),(0,n.jsx)("span",{className:"truncate text-[12.5px] leading-none text-slate-600 dark:text-slate-300",children:e("loginNudge.benefit.".concat(h[_]))})]},_)}),(0,n.jsxs)("div",{className:"mt-2.5 flex items-center gap-2",children:[(0,n.jsx)("button",{type:"button",onClick:()=>{(0,o.$m)("select_promotion",{...x,creative_slot:k}),B(!1),(0,d.sC)("nudge")},className:"h-9 flex-1 rounded-full bg-[#0075ff] px-4 text-[13.5px] font-semibold text-white transition-colors hover:bg-[#0062d6]",children:e("loginNudge.cta")}),(0,n.jsx)("button",{type:"button",onClick:q,className:"h-9 shrink-0 rounded-full px-3 text-[13px] font-medium text-slate-500 transition-colors hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200",children:e("loginNudge.later")})]})]})]}),(0,n.jsx)("button",{type:"button",onClick:q,"aria-label":e("loginNudge.close"),className:"absolute right-2 top-2 flex h-7 w-7 items-center justify-center rounded-full text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600 dark:hover:bg-white/10 dark:hover:text-slate-200",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})})})]})})}}}]);
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.