PageSourceSearch

https://avf.az/_next/static/chunks/pages/[lang]/admin/pages/[id]/edit-23ecbf9e375dec68.js

js avf.az collected 2026-10-02 22:57:46 UTC 14,743 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9672],{169:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("trophy",[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]])},276:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},935:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]])},1174:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},1355:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},1499:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("volleyball",[["path",{d:"M11.1 7.1a16.55 16.55 0 0 1 10.9 4",key:"2880wi"}],["path",{d:"M12 12a12.6 12.6 0 0 1-8.7 5",key:"113sja"}],["path",{d:"M16.8 13.6a16.55 16.55 0 0 1-9 7.5",key:"1qmsgl"}],["path",{d:"M20.7 17a12.8 12.8 0 0 0-8.7-5 13.3 13.3 0 0 1 0-10",key:"1bmeqp"}],["path",{d:"M6.3 3.8a16.55 16.55 0 0 0 1.9 11.5",key:"iekzv9"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},3200:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])},3478:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]])},3906:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},4041:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},4062:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]])},5818:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},6056:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]])},6262:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]])},6293:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},6380:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/admin/pages/[id]/edit",function(){return a(6644)}])},6644:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>f,default:()=>j});var s=a(7876),l=a(4232),r=a(9099),i=a(7328),d=a.n(i),n=a(8230),c=a.n(n),h=a(9926),o=a(1355),p=a(5818),u=a(6394),m=a(1397),y=a(3340),x=a(4535),g=a(3742),k=a(8324),v=a.n(k),f=!0;function j(){var e;let t=(0,r.useRouter)(),{lang:a,id:i}=t.query,n=a||"az",[k,f]=(0,l.useState)([]),[j,A]=(0,l.useState)(!0),[b,M]=(0,l.useState)(!1),[_,w]=(0,l.useState)(""),[N,S]=(0,l.useState)(""),[z,C]=(0,l.useState)({id:null,
1slug:"",template:"default",sort_order:0,title:"",content:"",meta_title:"",meta_description:"",meta_keywords:"",status:"draft",language_name:"",language_code:""});(0,l.useEffect)(()=>{if(!y.Wk.isLoggedIn())return void t.push((0,m.getAdminUrl)(n,"login"));i&&H()},[n,i,t]);let H=async()=>{try{let e=y.Wk.getToken(),t=await fetch("/api/admin/pages/".concat(i),{headers:{Authorization:"Bearer ".concat(e)}});if(t.ok){let e=(await t.json()).page;C({id:e.id,slug:e.slug,template:e.template,sort_order:e.sort_order,title:e.title||"",content:e.content||"",meta_title:e.meta_title||"",meta_description:e.meta_description||"",meta_keywords:e.meta_keywords||"",status:e.status||"draft",language_name:e.language_name||"",language_code:e.language_code||""})}else w("Səhifə tapılmadı");let a=await fetch("/api/admin/pages?grouped=true",{headers:{Authorization:"Bearer ".concat(e)}});if(a.ok){let e=await a.json();f(e.templates||[])}}catch(e){w("Server xətası")}finally{A(!1)}},q=async e=>{e.preventDefault(),w(""),S(""),M(!0);let a=y.Wk.getToken();try{let e=await fetch("/api/admin/pages/".concat(i),{method:"PUT",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(a)},body:JSON.stringify({title:z.title,content:z.content,meta_title:z.meta_title,meta_description:z.meta_description,meta_keywords:z.meta_keywords,template:z.template,sort_order:z.sort_order,status:z.status})});if(e.ok)S("Səhifə uğurla yeniləndi"),setTimeout(()=>{t.push((0,m.getAdminUrl)(n,"pages"))},1e3);else{let t=await e.json();w(t.message||"Xəta baş verdi")}}catch(e){w("Server xətası")}finally{M(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(d(),{children:[(0,s.jsx)("title",{children:"".concat(m.adminConfig.title," - Səhifə Redaktə")}),(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,s.jsxs)("div",{className:v().adminContainer,children:[(0,s.jsx)(x.A,{currentLang:n,activePage:"pages"}),(0,s.jsxs)("main",{className:v().mainContent,children:[(0,s.jsxs)("header",{className:v().header,children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[(0,s.jsx)(c(),{href:(0,m.getAdminUrl)(n,"pages"),className:v().backBtn,children:(0,s.jsx)(h.A,{size:20})}),(0,s.jsx)(o.A,{size:28,color:"#6366f1"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{children:"Səhifə Redaktə"}),z.language_code&&(0,s.jsxs)("span",{style:{fontSize:"0.85rem",color:"#64748b",display:"flex",alignItems:"center",gap:"8px",marginTop:"4px"},children:[(0,s.jsx)("span",{style:{padding:"2px 8px",background:"#6366f1",color:"#fff",borderRadius:"4px",fontSize:"0.75rem",fontWeight:"600"},children:null==(e=z.language_code)?void 0:e.toUpperCase()}),"/",z.slug]})]})]}),(0,s.jsxs)("div",{className:v().userInfo,children:[(0,s.jsx)("span",{children:"Admin"}),(0,s.jsxs)("button",{className:v().logoutBtn,onClick:()=>{y.Wk.logout(),t.push((0,m.getAdminUrl)(n,"login"))},children:[(0,s.jsx)(p.A,{size:16})," \xc7ıxış"]})]})]}),(0,s.jsxs)("div",{className:v().content,children:[_&&(0,s.jsx)("div",{className:"".concat(v().alert," ").concat(v().alertDanger),children:_}),N&&(0,s.jsx)("div",{className:"".concat(v().alert," ").concat(v().alertSuccess),children:N}),j?(0,s.jsxs)("div",{className:v().loading,children:[(0,s.jsx)("div",{className:v().spinner}),(0,s.jsx)("p",{children:"Y\xfcklənir..."})]}):(0,s.jsxs)("form",{onSubmit:q,children:[(0,s.jsxs)("div",{className:v().tableContainer,children:[(0,s.jsx)("div",{className:v().tableHeader,children:(0,s.jsxs)("div",{className:v().tableTitle,children:["Səhifə Məlumatları",z.language_name&&(0,s.jsx)("span",{style:{marginLeft:"12px",padding:"4px 12px",background:"linear-gradient(135deg, #6366f1 0%, #4f46e5 100%)",color:"#fff",borderRadius:"20px",fontSize:"0.8rem",fontWeight:"600"},children:z.language_name})]})}),(0,s.jsxs)("div",{style:{padding:"24px"},children:[(0,s.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 120px",gap:"16px",marginBottom:"24px"},children:[(0,s.jsxs)("div",{className:v().formGroup,style:{margin:0},children:[(0,s.jsx)("label",{children:"Slug"}),(0,s.jsx)("input",{type:"text",value:z.slug,disabled:!0,className:v().input,style:{background:"#f1f5f9",curs
1or:"not-allowed"}}),(0,s.jsx)("small",{style:{color:"#64748b",fontSize:"0.8rem"},children:"Slug dəyişdirilə bilməz"})]}),(0,s.jsxs)("div",{className:v().formGroup,style:{margin:0},children:[(0,s.jsx)("label",{children:"Şablon"}),(0,s.jsx)("select",{value:z.template,onChange:e=>C({...z,template:e.target.value}),className:v().select,children:k.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))})]}),(0,s.jsxs)("div",{className:v().formGroup,style:{margin:0},children:[(0,s.jsx)("label",{children:"Sıra"}),(0,s.jsx)("input",{type:"number",value:z.sort_order,onChange:e=>C({...z,sort_order:parseInt(e.target.value)||0}),className:v().input})]})]}),(0,s.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 150px",gap:"16px",marginBottom:"24px"},children:[(0,s.jsxs)("div",{className:v().formGroup,style:{margin:0},children:[(0,s.jsx)("label",{children:"Başlıq *"}),(0,s.jsx)("input",{type:"text",value:z.title,onChange:e=>C({...z,title:e.target.value}),required:!0,className:v().input,placeholder:"Səhifə başlığı"})]}),(0,s.jsxs)("div",{className:v().formGroup,style:{margin:0},children:[(0,s.jsx)("label",{children:"Status"}),(0,s.jsxs)("select",{value:z.status,onChange:e=>C({...z,status:e.target.value}),className:v().select,children:[(0,s.jsx)("option",{value:"draft",children:"Qaralama"}),(0,s.jsx)("option",{value:"published",children:"Aktiv"}),(0,s.jsx)("option",{value:"archived",children:"Arxiv"})]})]})]}),(0,s.jsxs)("div",{className:v().formGroup,style:{marginBottom:"24px"},children:[(0,s.jsx)("label",{children:"Məzmun"}),(0,s.jsx)(g.A,{value:z.content,onChange:e=>C({...z,content:e}),placeholder:"Səhifə məzmunu",minHeight:"400px"})]}),(0,s.jsxs)("div",{style:{padding:"20px",background:"linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%)",borderRadius:"16px",border:"1px solid #e2e8f0"},children:[(0,s.jsx)("h3",{style:{margin:"0 0 16px",fontSize:"1rem",color:"#475569"},children:"SEO Parametrləri"}),(0,s.jsxs)("div",{className:v().formGroup,style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:"SEO Title"}),(0,s.jsx)("input",{type:"text",value:z.meta_title,onChange:e=>C({...z,meta_title:e.target.value}),className:v().input,placeholder:"Axtarış nəticələrində g\xf6r\xfcnəcək başlıq"})]}),(0,s.jsxs)("div",{className:v().formGroup,style:{marginBottom:"16px"},children:[(0,s.jsx)("label",{children:"SEO Description"}),(0,s.jsx)("textarea",{value:z.meta_description,onChange:e=>C({...z,meta_description:e.target.value}),rows:3,className:v().textarea,placeholder:"Axtarış nəticələrində g\xf6r\xfcnəcək qısa təsvir"})]}),(0,s.jsxs)("div",{className:v().formGroup,style:{margin:0},children:[(0,s.jsx)("label",{children:"SEO Keywords"}),(0,s.jsx)("input",{type:"text",value:z.meta_keywords,onChange:e=>C({...z,meta_keywords:e.target.value}),className:v().input,placeholder:"voleybol, federasiya, azərbaycan"})]})]})]})]}),(0,s.jsxs)("div",{style:{display:"flex",gap:"12px",justifyContent:"flex-end",marginTop:"24px",padding:"20px",background:"#fff",borderRadius:"16px",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},children:[(0,s.jsx)(c(),{href:(0,m.getAdminUrl)(n,"pages"),className:"".concat(v().btn," ").concat(v().btnOutline),children:"Ləğv et"}),(0,s.jsxs)("button",{type:"submit",className:"".concat(v().btn," ").concat(v().btnPrimary),disabled:b,children:[(0,s.jsx)(u.A,{size:16})," ",b?"Saxlanılır...":"Yadda saxla"]})]})]})]})]})]})]})}},6762:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},6781:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},7586:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("newspaper",[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}
1],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]])},8628:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},8728:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},9926:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(7963).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])}},e=>{e.O(0,[6532,1383,4535,3742,636,6593,8792],()=>e(e.s=6380)),_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.