PageSourceSearch

https://podkluczyk.pl/_next/static/chunks/4026-fc060103875a2595.js

js podkluczyk.pl collected 2026-10-08 12:03:51 UTC 7,745 bytes, 3 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4026],{19152:(e,t,a)=>{function r(e){return"SUPER_ADMIN"===e||"ADMIN"===e||"TESTER"===e}function n(e){return"SUPER_ADMIN"===e}function s(e){let t=e?.toUpperCase();return"SUPER_ADMIN"===t?"SUPER_ADMIN":"ADMIN"===t?"ADMIN":"TESTER"===t?"TESTER":"INVESTOR"===t?"INVESTOR":"USER"}a.d(t,{GY:()=>s,OY:()=>r,eg:()=>i,hX:()=>n,qn:()=>o});let o=["SUPER_ADMIN","ADMIN","TESTER","USER","INVESTOR"],i={SUPER_ADMIN:"Super admin",ADMIN:"Admin",TESTER:"Tester",USER:"User",INVESTOR:"Inwestor"}},25003:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(61599)._)({resolverName:"getPanelSession",resolverType:"query",routePath:"/getPanelSession",httpMethod:"POST"})},78081:(e,t,a)=>{a.d(t,{$d:()=>s,cI:()=>o,sS:()=>n});var r=a(19152);let n="Podgląd konta użytkownika jest tylko do odczytu. Zakończ podgląd, aby wprowadzać zmiany.",s="min-h-11";function o(e){if(!(0,r.hX)("string"==typeof e.role?e.role:null))return!1;let t="number"==typeof e.viewAsUserId&&e.viewAsUserId>0?e.viewAsUserId:null;return null!=t&&"number"==typeof e.userId&&t!==e.userId}},90538:(e,t,a)=>{a.d(t,{$:()=>u});var r=a(43127),n=a(36567),s=a.n(n),o=a(50369);let i={primary:"bg-brand-500 text-navy-900 shadow-1 hover:bg-brand-400 hover:shadow-2 active:bg-brand-500",secondary:"bg-navy-900 text-navy-50 shadow-1 hover:bg-navy-800 hover:shadow-2 active:bg-navy-900",outline:"border border-navy-200 bg-white text-navy-900 hover:border-navy-300 hover:bg-navy-50",outlineInverse:"border border-navy-300/40 bg-white/0 text-navy-50 hover:border-navy-300/70 hover:bg-white/10",ghost:"text-navy-900 hover:bg-navy-50",link:"text-brand-700 underline decoration-brand-300 decoration-2 underline-offset-4 hover:decoration-brand-500"},l={sm:"h-11 gap-2 px-4 text-sm",md:"h-12 gap-2 px-5 text-base",lg:"h-14 gap-2.5 px-7 text-base sm:text-lg"};function d(){return(0,r.jsxs)("svg",{className:"h-4 w-4 shrink-0 animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"3"}),(0,r.jsx)("path",{d:"M21 12a9 9 0 0 0-9-9",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})}function u(e){let{variant:t="primary",size:a="md",block:n,loading:u,loadingLabel:c,className:m,children:h,...p}=e,f=(0,o.cn)("relative inline-flex select-none items-center justify-center rounded-md font-semibold transition-[background-color,border-color,box-shadow,transform] duration-fast ease-enter active:scale-[0.98] disabled:pointer-events-none disabled:opacity-50 [touch-action:manipulation] cursor-pointer",i[t],"link"===t?"h-auto gap-1 px-0":l[a],n&&"w-full",m),x=u?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d,{}),(0,r.jsx)("span",{children:c??h})]}):h;if("href"in p&&"string"==typeof p.href){let{href:e,...t}=p;return e.startsWith("/")&&!e.startsWith("//")?(0,r.jsx)(s(),{href:e,className:f,...t,children:x}):(0,r.jsx)("a",{href:e,className:f,...t,children:x})}let{type:w,disabled:b,...v}=p;return(0,r.jsx)("button",{type:w??"button",disabled:b||u,"aria-busy":u||void 0,className:f,...v,children:x})}},90826:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(61599)._)({resolverName:"logout",resolverType:"mutation",routePath:"/logout",httpMethod:"POST"})},96206:(e,t,a)=>{a.d(t,{o:()=>u});var r=a(43127),n=a(98591),s=a(4360),o=a(35221),i=a(83907),l=a(90538);let d=(0,a(61599)._)({resolverName:"copyUserPrefsToMe",resolverType:"mutation",routePath:"/copyUserPrefsToMe",httpMethod:"POST"});function u({sourceUserId:e,sourceEmail:t,filterCount:a,marketCount:u,variant:c="outline",size:m="sm",className:h,label:p="Kopiuj filtry na moje konto",stayOnPage:f=!1}){let x=(0,s.useRouter)(),[w,{isPending:b}]=(0,o.useMutation)(d),[v,y]=(0,n.useState)(null),[k,j]=(0,n.useState)(null),g=null!=a&&null!=u,N=g&&a+u===0;async function z(){if(y(null),j(null),N)return void y("Ten użytkownik nie ma filtr\xf3w ani lokalizacji do skopiowania.");let r=t?` użytkownika ${t}`:" tego użytkownika",n=g?` ${a} filtr\xf3w i ${u} lokalizacji`:" filtry i lokalizacje";if(window.confirm(`Skopiować${n}${r} na TWOJE konto?
2
3Konto użytkownika nie zostanie zmienione. Twoje obecne aktywne filtry i lokalizacje zostaną 
3wyłączone (nie usunięte), żeby lista ofert odpowiadała temu użytkownikowi.`))try{let t=await w({userId:e}),a=`Skopiowano ${t.filtersCopied} filtr\xf3w i ${t.marketsCopied} lokalizacji na Twoje konto`+(t.deactivatedFilters+t.deactivatedMarkets>0?` (wyłączono ${t.deactivatedFilters} Twoich filtr\xf3w i ${t.deactivatedMarkets} lokalizacji).`:".");if(f)return void j(a);x.push("/panel/oferty/sprzedaz"),x.refresh()}catch(e){y(e instanceof Error?e.message:"Nie udało się skopiować filtr\xf3w i lokalizacji.")}}return(0,r.jsxs)("div",{className:"flex min-w-0 flex-col items-stretch gap-1 sm:items-end",children:[(0,r.jsxs)(l.$,{type:"button",size:m,variant:c,loading:b,disabled:b||N,className:h,title:N?"Brak filtr\xf3w i lokalizacji do skopiowania":"Kopiuje filtry i lokalizacje na Twoje konto — konto użytkownika bez zmian",onClick:()=>void z(),children:[(0,r.jsx)(i.A,{className:"h-4 w-4","aria-hidden":"true"}),p]}),v?(0,r.jsx)("p",{className:"max-w-md text-xs text-danger-ink",role:"alert",children:v}):null,k?(0,r.jsxs)("p",{className:"max-w-md text-xs text-success-ink",role:"status",children:[k," ",(0,r.jsx)("a",{href:"/panel/oferty/sprzedaz",className:"font-semibold underline",children:"Otw\xf3rz m\xf3j panel ofert"})]}):null]})}},97381:(e,t,a)=>{a.d(t,{ViewAsBanner:()=>w});var r=a(43127),n=a(36567),s=a.n(n),o=a(4360),i=a(98591),l=a(40638),d=a(35221),u=a(51425),c=a(55802);let m=(0,a(61599)._)({resolverName:"stopViewAsUser",resolverType:"mutation",routePath:"/stopViewAsUser",httpMethod:"POST"});var h=a(25003),p=a(96206),f=a(90538),x=a(78081);function w(){let[e,t]=(0,i.useState)(!1);(0,i.useEffect)(()=>t(!0),[]);let a=(0,o.useRouter)(),n=(0,l.u)(),w=e&&(0,x.cI)(n),[b]=(0,d.useQuery)(h.A,void 0,{suspense:!1,throwOnError:!1,enabled:w}),[v,{isPending:y}]=(0,d.useMutation)(m);if(!w)return null;let k=b?.viewAs,j=k?.targetEmail,g=k?.actorEmail,N=k?.targetUserId??n.viewAsUserId;async function z(){await v(void 0),a.refresh()}return(0,r.jsx)("div",{className:`sticky top-0 z-50 ${x.$d} border-b border-amber-300/80 bg-amber-50 px-4 py-2.5 text-sm text-amber-950 sm:px-6`,role:"status","aria-live":"polite",children:(0,r.jsxs)("div",{className:"mx-auto flex max-w-[90rem] flex-wrap items-center justify-between gap-3",children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-start gap-2",children:[(0,r.jsx)(u.A,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),(0,r.jsxs)("p",{className:"min-w-0",children:[(0,r.jsx)("span",{className:"font-semibold",children:"Podgląd konta:"})," ",j?(0,r.jsx)("span",{className:"font-medium",children:j}):(0,r.jsx)("span",{className:"font-medium",children:"ładowanie…"}),(0,r.jsx)("span",{className:"text-amber-900/80",children:" \xb7 tylko odczyt"}),g?(0,r.jsxs)("span",{className:"hidden text-amber-900/70 sm:inline",children:[" ","(zalogowany jako ",g,")"]}):null]})]}),(0,r.jsxs)("div",{className:"flex shrink-0 flex-wrap items-center gap-2",children:["number"==typeof N?(0,r.jsx)(p.o,{sourceUserId:N,sourceEmail:j,variant:"secondary",size:"sm",className:"border-amber-400",label:"Kopiuj filtry na moje konto"}):null,"number"==typeof N?(0,r.jsx)(s(),{href:`/admin/users/${N}/`,className:"text-sm font-medium text-amber-950 underline underline-offset-2 hover:text-amber-900",children:"Karta użytkownika"}):null,(0,r.jsxs)(f.$,{type:"button",size:"sm",variant:"outline",loading:y,onClick:()=>void z(),className:"border-amber-400 bg-white text-amber-950 hover:bg-amber-100",children:[(0,r.jsx)(c.A,{className:"h-4 w-4","aria-hidden":"true"}),"Zakończ podgląd"]})]})]})})}}}]);

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.