PageSourceSearch

https://navi-saras.jp/assets/post-modal-0d98c25f.js

js navi-saras.jp collected 2026-10-04 16:31:38 UTC 2,078 bytes, 1 lines download raw bytes

1var x=(i,d,a)=>new Promise((p,r)=>{var o=t=>{try{c(a.next(t))}catch(n){r(n)}},e=t=>{try{c(a.throw(t))}catch(n){r(n)}},c=t=>t.done?p(t.value):Promise.resolve(t.value).then(o,e);c((a=a.apply(i,d)).next())});import{N as f,t as N,m as h,n as k,f$ as I,g0 as S,c as y,b as _,j as s,g as A,ar as P,eo as T,dI as w,g1 as D,g2 as $,g3 as g,g4 as b,l as L}from"./index-7037e021.js";import{d as M}from"./post-57883dbb.js";import{B}from"./bottom-confirm-fd5c9000.js";function R({onDeleteSuccess:i,className:d}){const a=f(),p=N(),r=h(k),o=h(I),e=h(S),c=y(),{config:t}=_(),n=()=>{a($(null))},m=()=>{a(g(null))},j=l=>{a(g(l))},C=()=>{m(),p.push(`${b}?postId=${e.postId}`)},u=()=>{m(),c({action:()=>x(this,null,function*(){return yield M({token:r,post_id:e.postId,config:t})}),onSuccess:()=>i&&i()})},v=()=>x(this,null,function*(){if(e){const l=`${window.location.origin}/?postId=${e.postId}`;yield L(l),m()}});return s.jsxs(s.Fragment,{children:[o&&s.jsx(s.Fragment,{children:s.jsxs("div",{className:A("post-modal-container",{[d]:d}),onClick:n,children:[s.jsx("div",{className:"post-modal-close",children:s.jsx(P,{onClick:n})}),s.jsx("div",{className:"post-modal-position",children:s.jsxs("div",{className:"post-modal-wrapper",onClick:l=>l.stopPropagation(),children:[s.jsxs("div",{className:"post-modal-header",children:[s.jsx("img",{src:o.avatar||T,alt:"ava",className:"post-modal-avatar"}),s.jsxs("div",{className:"post-modal-title",children:[s.jsx("div",{className:"post-modal-name",children:o.title}),s.jsx("div",{className:"post-modal-date",children:o.postedAt})]}),s.jsx("div",{className:"top-page-action-btn",onClick:()=>j(o),children:s.jsx(w,{})})]}),s.jsxs("div",{className:"post-modal-content-wrapper",children:[s.jsx("div",{className:"post-modal-content",dangerouslySetInnerHTML:{__html:D(o.content||"")}}),o.imageUrl&&s.jsx("img",{src:o.imageUrl,alt:"postImage",className:"post-modal-image"})]})]})})]})}),e&&s.jsx(B,{buttonsConfig:[...e.isPostedAccount?[{click:C,text:"編集"},{click:u,text:"削除"}]:[],{click:v,text:"リンクをコピー"}],onCancel:m})]})}
1export{R as P};

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.