PageSourceSearch

https://dtp.bg/_next/static/chunks/pages/profile-27cba4dc1e84b8a9.js

js dtp.bg collected 2026-10-02 21:07:17 UTC 2,605 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[277],{1969:function(e,a,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile",function(){return i(1523)}])},1523:function(e,a,i){"use strict";i.r(a),i.d(a,{__N_SSP:function(){return u},default:function(){return h}});var r=i(5893),n=i(7294),l=i(6314),t=i(1935);i(62),i(135),i(8305);var s=i(9111),o=i(4701),c=i(1163);let d={en:{profile:"Profile",name:"Name",city:"City",privacyPolicy:"The information you provided will be used only for internal purposes, and your email and data will not be shared with third parties without your consent. The full terms you can ",readHere:"read here",save:"Save"},bg:{profile:"Профил",name:"Име",city:"Населено място",privacyPolicy:"Предоставената от Вас информация ще бъде използвана само за вътрешна употреба и имейлът и данните Ви няма да бъдат предоставяни на трети лица без Вашето съгласие. Пълните условия може да ",readHere:"прочетете тук",save:"Запази"}};var u=!0,h=e=>{var a,i;let{prefetchedData:u}=e,{locale:h,defaultLocale:f}=(0,c.useRouter)(),{userData:{profile:p}}=u,m=async(e,a)=>{let{errors:i}=(await fetch("/api/profile/edit",{method:"POST",body:JSON.stringify({city:e.get("
1city"),name:e.get("name")})}).then(e=>e.json())).updateProfile;i.length>0?a(i):window.location.href=s.Z.pages.frontend.show("profile",h,f)},y=n.useMemo(()=>[{label:"",value:""}].concat(o.Z.map(e=>({label:e.label,value:e.label}))),[]);return(0,r.jsx)(t.Z,{prefetchedData:u,children:(0,r.jsx)("div",{className:"register-page",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)("div",{className:"spacing-both-lg",children:(0,r.jsx)("div",{className:"row",children:(0,r.jsxs)("div",{className:"shift-4",children:[(0,r.jsx)("h1",{className:"title",children:d[h].profile}),(0,r.jsxs)(l.Z,{onSubmit:m,children:[(0,r.jsx)(l.Z.Field,{required:!0,type:"text",name:"name",label:d[h].name,defaultValue:null===(a=p.user)||void 0===a?void 0:a.name}),(0,r.jsx)(l.Z.Select,{required:!0,label:d[h].city,name:"city",defaultValue:null===(i=p.user)||void 0===i?void 0:i.city,options:y}),(0,r.jsxs)("p",{className:"spacing-bottom-sm",children:[d[h].privacyPolicy,(0,r.jsx)("a",{href:s.Z.pages.frontend.show("privacy-policy",h,f),children:d[h].readHere}),"."]}),(0,r.jsx)(l.Z.Submit,{children:d[h].save})]})]})})})})})})}}},function(e){e.O(0,[545,5474,5776,259,3965,4988,2888,9774,179],function(){return e(e.s=1969)}),_N_E=e.O()}]);

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.