PageSourceSearch

https://kulturenvanteri.com/wp-content/themes/ke/dist/assets/author-page-DADV0TwR.js

js kulturenvanteri.com collected 2026-10-02 10:04:18 UTC 5,033 bytes, 20 lines download raw bytes

1import{a as k}from"./config-D9_cCUJD.js";const M={...k,trueOrder:!0,margin:15};function v(t){requestAnimationFrame(()=>requestAnimationFrame(t))}function d(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function g(t,s,c){if(c<=1){t.innerHTML="";return}const e=[];e.push(1);for(let n=Math.max(2,s-2);n<=Math.min(c-1,s+2);n++)e.push(n);c>1&&e.push(c);const i=[...new Set(e)].sort((n,o)=>n-o);let a='<div class="ke-pagination__inner">';a+=`<button class="btn-pagination ke-pagination__prev"
2                     ${s<=1?"disabled":""}
3                     data-page="${s-1}">
4                 <i class="ph ph-caret-left" aria-hidden="true"></i>
5             </button>`;let r=0;i.forEach(n=>{r&&n-r>1&&(a+='<span class="ke-pagination__ellipsis">…</span>'),a+=`<button class="btn-pagination ${n===s?"is-active":""}"
6                         data-page="${n}">${n}</button>`,r=n}),a+=`<button class="btn-pagination ke-pagination__next"
7                     ${s>=c?"disabled":""}
8                     data-page="${s+1}">
9                 <i class="ph ph-caret-right" aria-hidden="true"></i>
10             </button>`,a+="</div>",t.innerHTML=a}function A(){var c;const t=new Map;function s(e){if(e){if(t.has(e.id)){try{t.get(e.id).remove()}catch{}t.delete(e.id)}e.removeAttribute("style"),v(()=>{const i=window.Macy({...M,container:e});t.set(e.id,i);const a=()=>i.recalculate(!0,!0);e.querySelectorAll("img").forEach(r=>{r.complete||(r.addEventListener("load",a,{once:!0}),r.addEventListener("error",a,{once:!0}))}),setTimeout(a,150)})}}document.querySelectorAll(".tab-pane.active .ke-macy-grid").forEach(s),document.querySelectorAll(".ke-pagination").forEach(e=>{g(e,1,parseInt(e.dataset.total,10))}),document.addEventListener("click",e=>{const i=e.target.closest('[data-bs-toggle="tab"]');if(!i)return;const a=i.getAttribute("href")||i.dataset.bsTarget;a&&v(()=>{var n;const r=document.querySelector(a);r&&(r.querySelectorAll(".ke-macy-grid").forEach(o=>{t.has(o.id)||s(o)}),r.querySelectorAll(".ke-pagination").forEach(o=>{o.dataset.rendered||(g(o,1,parseInt(o.dataset.total,10)),o.dataset.rendered="1")}),(n=document.querySelector(".ke-author-tabs-wrap"))==null||n.scrollIntoView({behavior:"smooth",block:"start"}))})}),document.addEventListener("click",async e=>{var h,f,y;const i=e.target.closest(".btn-pagination");if(!i||i.disabled)return;const a=i.closest(".ke-pagination");if(!a)return;const r=parseInt(i.dataset.page,10),n=a.dataset.grid,o=a.dataset.author,u=a.dataset.status,$=a.dataset.nonce,w=parseInt(a.dataset.total,10),l=document.getElementById(n);if(l){l.style.opacity="0.4",l.style.pointerEvents="none";try{const p=((h=window.keSettings)==null?void 0:h.ajaxUrl)||"/wp-admin/admin-ajax.php",E=new URLSearchParams({action:"ke_author_load_more",author_id:o,status:u,page:r,nonce:$}),m=await(await fetch(p,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:E.toString()})).json();if(!m.success)throw new Error(((f=m.data)==null?void 0:f.message)||"Hata");l.innerHTML=m.data.items.map(b=>u==="image"?S(b):_(b,u)).join(""),a.dataset.current=r,g(a,r,w),l.style.opacity="",l.style.pointerEvents="",s(l),(y=document.querySelector(".ke-author-tabs-wrap"))==null||y.scrollIntoView({behavior:"smooth",block:"start"})}catch(p){console.error("[AuthorPage] pagination error:",p),l.style.opacity="",l.style.pointerEvents=""}}}),document.addEventListener("click",e=>{var n,o;const i=e.target.closest(".open-admin-iframe");if(!i)return;e.preventDefault();const a=i.dataset.adminUrl;if(!a)return;const r=document.getElementById("modal-draftbody");r&&(r.innerHTML=`<iframe src="${a}" style="width:100%;height:80vh;border:0;" title="${((o=(n=window.keSettings)==null?void 0:n.i18n)==null?void 0:o.editing)??"Düzenleme"}"></iframe>`,bootstrap.Modal.getOrCreateInstance(document.getElementById("placeDraftModal")).show())}),(c=document.getElementById("placeDraftModal"))==null||c.addEventListener("hidden.bs.modal",()=>{const e=document.getElementById("modal-draftbody");e&&(e.innerHTML="")})}function S(t){return`<div class="ms-item">
11        <a class="modal-link card p-1"
12           href="${d(t.link)}"
13           title="${d(t.title_attr)}">
14            ${t.thumb?`<img class="figure-img img-fluid" src="${d(t.thumb)}" alt="${d(t.caption)}" />`:""}
15        </a>
16    </div>`}function _(t,s){const c=t.thumb?`<div class="card-img-top"><img src="${d(t.thumb)}" class="figure-img img-fluid" alt="${d(t.title)}" /></div>`:'<div class="card-img-top card-img-top--empty"></div>',e=t.type?`<span class="text-xs p-1">${d(t.type)}</span>`:"";return s==="draft"&&t.admin_url?`<a class="ms-item open-admin-iframe" href="#" data-admin-url="${d(t.admin_url)}">
17            <div class="card p-1">${c}
18            <h5 class="card-title p-1">${d(t.title)}</h5>${e}</div></a>`:`<a class="ms-item" onclick="placeModalFunction('${t.id}')">
19        <div class="card p-1">${c}
20        <h5 class="card-title p-1">${d(t.title)}</h5>${e}</div></a>`}export{A as initAuthorPage};

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.