PageSourceSearch

https://dtp.bg/_next/static/chunks/pages/admin/cms/articles/[id]/urls/new-47e0c8f5c6768721.js

js dtp.bg collected 2026-10-02 21:06:41 UTC 2,303 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3675],{9869:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/cms/articles/[id]/urls/new",function(){return r(490)}])},490:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return c},default:function(){return i}});var n=r(7385),l=r(9111),s=r(9448);(0,s.R)(n.Ue,"article");let a=(0,s.E)("Article / {{TOKEN}} / Change URL",n.kE,"changeArticleSlug",{show:l.Z.articles.frontend.show,success:l.Z.articles.admin.show,back:l.Z.articles.admin.show});var c=!0,i=a},9448:function(e,t,r){"use strict";r.d(t,{E:function(){return w},R:function(){return g}});var n=r(5893),l=r(7294),s=r(1664),a=r.n(s),c=r(1163),i=r.n(c),u=r(6887),o=r.n(u),d=r(9544),h=r(1502),f=r(9788);let g=(e,t)=>async r=>{let{req:n,locale:l,query:s}=r,{id:a}=s,c=n.cookies[h.gE],i=await e.request(a,l,c);return i[t]?{props:{prefetchedData:{resource:i[t]},adminToken:c}}:{notFound:!0}},w=(e,t,r,s)=>(0,h.ew)(u=>{let{prefetchedData:g}=u,w=l.useContext(h.M0),_=(0,c.useRouter)(),{resource:p}=g,x=async(e,n)=>{let l={input:{id:p.id,locale:_.locale,slug:e.get("slug")}};"on"===e.get("create_redirect")&&(l.input.redirect={url:s.show(p.slug,_.locale,_.defaultLocale),destination:s.show(e.get("slug"),_.locale,_.defaultLocale),httpResponseCode:301});let a=await t.request(l,w);a[r].errors?n(a[r].errors):i().push(s.success(p.id,_.locale,_.defaultLocale))},j=e.replace("{{TOKEN}}",p.title);return(0,n.jsx)(f.Z,{title:j.replace("/","|"),languageSettings:{},children:(0,n.jsxs)(d.Container,{children:[(0,n.jsx)(d.PageTitle,{children:j}),(0,n.jsx)(d.Row,{style:{marginBottom:"1rem"},children:(0,n.jsxs)(d.Col,{s:3,children:[(0,n.jsxs)(d.P,{children:["Current URL: ",p.slug]}),(0,n.jsxs)(o(),{defaultValues:{},onSubmit:x,children:[(0,n.jsx)(o().Field,{name:"slug",label:"New URL",pattern:"[a-z0-9]+([a-z0-9\\-\\/]+)*[a-z0-9]+",required:!0}),(0,n.jsx)(o().Checkbox,{name:"create_redirect",label:"Create 301 redirect for the old URL"}),(0,n.jsxs)(d.Toolbar,{children:[(0,n.jsx)(o().Submit,{children:"Save"}),(0,n.jsx)(a(),{href:s.back(p.id,_.locale,_.defaultLocale),children:(0,n.jsx)(d.Button,{variant:"secondary",children:"Back"})})]})]})]})})]})})})}},function(e){e.O(0,[9451,545,5474,8717,9253,1664,142,9788,2888,9774,179],function(){return e(e.s=9869)}),_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.