PageSourceSearch

https://acatiste-web.vercel.app/_next/static/chunks/app/admin/acatiste/page-79e758283fba55c6.js

js acatiste-web.vercel.app collected 2026-10-03 06:04:18 UTC 11,937 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4653],{2667:(e,r,t)=>{"use strict";t.d(r,{DeleteAcatistButton:()=>d});var i=t(4568),n=t(9748),a=t(7620),s=t(5974);let l=(0,s.createServerReference)("4045794de81afdae249466fddeb17b3bc2fe00886b",s.callServer,void 0,s.findSourceMapURL,"deleteAcatistAction");var o=t(3944),u=t(7037);function d({id:e,title:r,redirectTo:t}){let s=(0,n.useRouter)(),[c,h]=(0,a.useTransition)();return(0,i.jsx)(o.V,{label:c?"Se șterge...":"Șterge",variant:"danger",onClick:function(){window.confirm(`Ștergi acatistul „${r}”? Această acțiune nu poate fi anulată.`)&&h(async()=>{let r=await l(e);r.ok?(null!==t&&s.push(t??"/admin/acatiste"),s.refresh()):window.alert(r.error)})},disabled:c,children:(0,i.jsx)(u.xV,{})})}},2990:(e,r,t)=>{"use strict";t.d(r,{XS:()=>d,YS:()=>a,Zc:()=>n,bE:()=>s,hh:()=>l,mH:()=>i,rU:()=>u});let i=["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"],n={ianuarie:"Ianuarie",februarie:"Februarie",martie:"Martie",aprilie:"Aprilie",mai:"Mai",iunie:"Iunie",iulie:"Iulie",august:"August",septembrie:"Septembrie",octombrie:"Octombrie",noiembrie:"Noiembrie",decembrie:"Decembrie"};function a(e){return i.includes(e)}function s(e){if(!(e<1)&&!(e>12))return i[e-1]}function l(e){return i.indexOf(e)+1}function o(e){var r;let t;if(e.monthSlugs?.length)return e.monthSlugs;let i=(r=e.structured,Array.isArray(t=r?.monthSlugs)?t.filter(e=>"string"==typeof e&&a(e)):[]);if(i.length>0)return i;if(e.feastMonth){let r=s(e.feastMonth);return r?[r]:[]}let n=e.monthSlug;return n&&a(n)?[n]:[]}function u(e){return o(e)[0]}function d(e,r){return o(e).includes(r)}},3944:(e,r,t)=>{"use strict";t.d(r,{V:()=>o,z:()=>l});var i=t(4568),n=t(5587),a=t.n(n);function s(e,r){let t=["admin-icon-btn"];return"ghost"===e&&t.push("admin-icon-btn--ghost"),"danger"===e&&t.push("admin-icon-btn--danger"),r&&t.push("is-disabled"),t.join(" ")}function l({href:e,label:r,variant:t="ghost",external:n,children:o}){return n?(0,i.jsx)("a",{href:e,className:s(t),target:"_blank",rel:"noreferrer","aria-label":r,title:r,children:o}):(0,i.jsx)(a(),{href:e,className:s(t),"aria-label":r,title:r,children:o})}function o({onClick:e,label:r,variant:t="ghost",disabled:n,type:a="button",children:l}){return(0,i.jsx)("button",{type:a,className:s(t,n),onClick:e,disabled:n,"aria-label":r,title:r,children:l})}},5974:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={callServer:function(){return a.callServer},createServerReference:function(){return l.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=t(4273),s=t(6409),l=t(7102)},7037:(e,r,t)=>{"use strict";t.d(r,{AX:()=>o,Dl:()=>u,GI:()=>a,L9:()=>c,Ln:()=>n,XJ:()=>h,fq:()=>l,wY:()=>d,xV:()=>s});var i=t(4568);function n({className:e}){return(0,i.jsxs)("svg",{className:e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":!0,children:[(0,i.jsx)("path",{d:"M1.5 9s2.75-5 7.5-5 7.5 5 7.5 5-2.75 5-7.5 5-7.5-5-7.5-5z",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round"}),(0,i.jsx)("circle",{cx:"9",cy:"9",r:"2.25",stroke:"currentColor",strokeWidth:"1.4"})]})}function a({className:e}){return(0,i.jsx)("svg",{className:e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":!0,children:(0,i.jsx)("path",{d:"M11.5 3.5l3 3L6 15H3v-3l8.5-8.5z",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round"})})}function s({className:e}){return(0,i.jsxs)("svg",{className:e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":!0,children:[(0,i.jsx)("path",{d:"M3.5 5.5h11",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M6.5 5.5V4a1 1 0 011-1h3a1 1 0 011 1v1.5M7 8v4.5M11 8v4.5M5 5.5l.5 9a1 1 0 001 1h5a1 1 0 001-1l.5-9",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]})}function l({className:e}){return(0,i.jsxs)("svg",{className:e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":!0,
1children:[(0,i.jsx)("path",{d:"M7.5 4.5H4.5a1 1 0 00-1 1v8a1 1 0 001 1h8a1 1 0 001-1v-3",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M10 3.5h4.5V8M7.5 10.5L14 4",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]})}function o({className:e}){return(0,i.jsxs)("svg",{className:e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":!0,children:[(0,i.jsx)("path",{d:"M7.2 10.8a3 3 0 004.2 0l2.1-2.1a3 3 0 00-4.2-4.2l-.8.8",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M10.8 7.2a3 3 0 00-4.2 0L4.5 9.3a3 3 0 004.2 4.2l.8-.8",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]})}function u({className:e}){return(0,i.jsxs)("svg",{className:e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":!0,children:[(0,i.jsx)("path",{d:"M6 5.5L3 9l3 3.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M12 5.5l3 3.5-3 3.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]})}function d({className:e}){return(0,i.jsxs)("svg",{className:e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":!0,children:[(0,i.jsx)("rect",{x:"2.5",y:"3.5",width:"13",height:"11",rx:"1.5",stroke:"currentColor",strokeWidth:"1.4"}),(0,i.jsx)("path",{d:"M2.5 7h13",stroke:"currentColor",strokeWidth:"1.4"}),(0,i.jsx)("circle",{cx:"5",cy:"5.25",r:"0.75",fill:"currentColor"}),(0,i.jsx)("circle",{cx:"7",cy:"5.25",r:"0.75",fill:"currentColor"})]})}function c({className:e}){return(0,i.jsx)("svg",{className:e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":!0,children:(0,i.jsx)("path",{d:"M4.5 7V4.5H7M11 4.5H13.5V7M13.5 11v2.5H11M7 13.5H4.5V11",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function h({className:e}){return(0,i.jsx)("svg",{className:e,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":!0,children:(0,i.jsx)("path",{d:"M7 4.5H4.5V7M11 4.5h2.5V7M11 13.5h2.5V11M7 13.5H4.5V11",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}},7268:(e,r,t)=>{"use strict";t.d(r,{AcatistListTool:()=>x});var i=t(4568),n=t(7620),a=t(2667),s=t(3944),l=t(7037);let o={doxologia:"Doxologia","ziarul-lumina":"Ziarul Lumina",marturie:"Marturie Athonita",wordpress:"WordPress",manual:"Manual",other:"Altele"},u=["doxologia","wordpress","ziarul-lumina","marturie","manual","other"];function d({sourceUrl:e,wpId:r}){return e?/doxologia\.ro/i.test(e)?"doxologia":/ziarullumina\.ro/i.test(e)?"ziarul-lumina":/marturieathonita\.ro/i.test(e)?"marturie":"other":r?"wordpress":"manual"}function c({sourceUrl:e,wpId:r}){let t=d({sourceUrl:e,wpId:r});if("manual"===t)return null;if("other"===t&&e)try{return new URL(e).hostname.replace(/^www\./,"")}catch{return o.other}return o[t]}var h=t(2990);function x({items:e,siteUrl:r}){let[t,m]=(0,n.useState)(""),[f,p]=(0,n.useState)("all"),[j,g]=(0,n.useState)("all"),[v,b]=(0,n.useState)("all"),k=(0,n.useMemo)(()=>[...new Set(e.map(e=>(0,h.rU)(e)).filter(e=>!!e))].sort((e,r)=>h.mH.indexOf(e)-h.mH.indexOf(r)),[e]),w=(0,n.useMemo)(()=>({all:e.length,published:e.filter(e=>"published"===e.status).length,draft:e.filter(e=>"draft"===e.status).length}),[e]),L=(0,n.useMemo)(()=>{let r=new Map;for(let t of e){let e=d({sourceUrl:t.sourceUrl,wpId:t.wpId});r.set(e,(r.get(e)??0)+1)}return u.filter(e=>(r.get(e)??0)>0).map(e=>({id:e,label:o[e],count:r.get(e)??0}))},[e]),M=(0,n.useMemo)(()=>{let r=t.trim().toLowerCase();return e.filter(e=>{if("all"!==j&&e.status!==j||"all"!==f&&(0,h.rU)(e)!==f||"all"!==v&&d({sourceUrl:e.sourceUrl,wpId:e.wpId})!==v)return!1;if(!r)return!0;let t=c({sourceUrl:e.sourceUrl,wpId:e.wpId})?.toLowerCase();return e.title.toLowerCase().includes(r)||e.slug.toLowerCase().includes(r)||(e.feastDateLabel?.toLowerCase().includes(r)??!1)||(t?.includes(r)??!1)})},[e,f,t,v,j]);return(0,i.jsxs)("div",{className:"admin-grid",children:[(0,i.jsxs)("div",{className:"admin-toolbar",style:{flexWrap:"wrap"},children:[(0,i.jsx)("input",{className:"admin-input admin-search",placeholder:"Caută după titlu, slug, dată sau sursă...",value:t,onChange:e=>m(e.target.value)}),(0,i.jsxs)("select",{className:"admin-input",value:j,onChange:e=>g(e.target.value),style:{maxWidth:180},"aria-label":"Filtrează după status",children:[(0,i.jsxs)("option",{value:"all",children:["Status: toate (",w.all,")"]}),(0,i.jsxs)("option",{value:"published",children:["Status: publicate (",w.published,")"]}),(0,i.jsxs)("option",{value:"draft",children:["Status: drafturi (",w.draft,")"]})]}),(0,i.jsxs)("select",{className:"admin-input",value:f,onChange:e=>p(e.target.value),style:{maxWidth:180},"aria-label":"Filtrează după lună",children:[(0,i.jsx)("option",{value:"all",children:"Lună: toate"}),k.map(e=>(0,i.jsxs)("option",{value:e,children:["Lună: ",h.Zc[e]]},e))]}
1),(0,i.jsxs)("select",{className:"admin-input",value:v,onChange:e=>b(e.target.value),style:{maxWidth:200},"aria-label":"Filtrează după sursă",children:[(0,i.jsxs)("option",{value:"all",children:["Sursă: toate (",e.length,")"]}),L.map(e=>(0,i.jsxs)("option",{value:e.id,children:["Sursă: ",e.label," (",e.count,")"]},e.id))]}),(0,i.jsxs)("span",{className:"admin-muted",children:[M.length," rezultate"]})]}),(0,i.jsxs)("div",{className:"admin-card",style:{padding:0,overflow:"hidden"},children:[(0,i.jsxs)("table",{className:"admin-table",children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"Titlu"}),(0,i.jsx)("th",{children:"Data"}),(0,i.jsx)("th",{children:"Lună"}),(0,i.jsx)("th",{children:"Categorii"}),(0,i.jsx)("th",{children:"Status"}),(0,i.jsx)("th",{children:"Sursă"}),(0,i.jsx)("th",{children:"Articole"}),(0,i.jsx)("th",{children:"Acțiuni"})]})}),(0,i.jsx)("tbody",{children:M.map(e=>{let t,n;return(0,i.jsxs)("tr",{children:[(0,i.jsxs)("td",{children:[(0,i.jsx)("div",{children:e.title}),(0,i.jsx)("div",{className:"admin-muted",children:e.slug})]}),(0,i.jsx)("td",{children:e.feastDateLabel??"—"}),(0,i.jsx)("td",{children:(t=(0,h.rU)(e))?h.Zc[t]:"—"}),(0,i.jsx)("td",{children:e.categories.length>0?e.categories.map(e=>e.title).join(", "):"—"}),(0,i.jsx)("td",{children:(0,i.jsx)("span",{className:`admin-badge admin-badge--${e.status}`,children:e.status})}),(0,i.jsx)("td",{children:(n=c({sourceUrl:e.sourceUrl,wpId:e.wpId}))?e.sourceUrl?(0,i.jsx)("a",{href:e.sourceUrl,target:"_blank",rel:"noreferrer",children:n}):n:"—"}),(0,i.jsx)("td",{children:e.relatedArticleCount??0}),(0,i.jsx)("td",{children:(0,i.jsxs)("div",{className:"admin-row-actions",children:[(0,i.jsx)(s.z,{href:`/admin/acatiste/${e.id}`,label:"Vezi",children:(0,i.jsx)(l.Ln,{})}),(0,i.jsx)(s.z,{href:`/admin/acatiste/${e.id}/edit`,label:"Editează",children:(0,i.jsx)(l.GI,{})}),"published"===e.status?(0,i.jsx)(s.z,{href:`${r}/${e.slug}/`,label:"Vezi pe site",external:!0,children:(0,i.jsx)(l.fq,{})}):null,e.sourceUrl?(0,i.jsx)(s.z,{href:e.sourceUrl,label:`Sursă ${c({sourceUrl:e.sourceUrl})??"externă"}`,external:!0,children:(0,i.jsx)(l.AX,{})}):null,(0,i.jsx)(a.DeleteAcatistButton,{id:e.id,title:e.title,redirectTo:null})]})})]},e.id)})})]}),0===M.length?(0,i.jsx)("p",{className:"admin-muted",style:{padding:16},children:"Niciun acatist nu corespunde filtrelor."}):null]})]})}},8015:(e,r,t)=>{Promise.resolve().then(t.bind(t,7268)),Promise.resolve().then(t.t.bind(t,5587,23))},9748:(e,r,t)=>{"use strict";var i=t(9796);t.o(i,"usePathname")&&t.d(r,{usePathname:function(){return i.usePathname}}),t.o(i,"useRouter")&&t.d(r,{useRouter:function(){return i.useRouter}}),t.o(i,"useSearchParams")&&t.d(r,{useSearchParams:function(){return i.useSearchParams}})}},e=>{e.O(0,[5587,587,5239,7358],()=>e(e.s=8015)),_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.