PageSourceSearch

https://tsn.ua/static/build/js/chunks/ConfirmCommentDeletionModal.DL0as_0b.js

js tsn.ua collected 2026-09-24 07:02:16 UTC 1,773 bytes, 1 lines download raw bytes

1import{w as p}from"./runtime-dom.esm-bundler.hR_rE5am.js";import{t as o}from"./translate.C4wggBpu.js";import{u as f}from"./useCommentsApi.CesjDEaI.js";import{m as i}from"./useProfileApi.BbSHL9GU.js";import{J as b,L as _,M as y,O as g,P as C,S as t,Q as l,W as e,F as S}from"./runtime-core.esm-bundler.B6keTsmA.js";import"./convertToUrlSearchParams.D6QR1eDk.js";import"./index.D_5av9BF.js";const h={class:"m-header"},v={class:"c-title text-2xl mb-5"},k={class:"opacity-60"},w=["aria-label"],x={class:"m-body"},D={class:"mb-4"},B=["disabled"],N=b({__name:"ConfirmCommentDeletionModal",props:{articleUuid:{},commentId:{},onDelete:{type:Function}},setup(c){const a=c,n=_({isSending:!1}),{deleteComment:m}=f(),d=async()=>{if(!n.isSending){n.isSending=!0;try{await m({articleUuid:a.articleUuid,commentId:a.commentId}),a.onDelete(),i.close()}finally{n.isSending=!1}}},u=y(()=>n.isSending?o("Видалення")+"…":o("Видалити"));return(F,s)=>(g(),C(S,null,[t("div",h,[t("hgroup",null,[t("h2",v,l(e(o)("Видалити коментар")),1),t("p",k,l(e(o)("Ви впевнені, що хочете видалити свій коментар?")),1)]),t("button",{type:"button",class:"m-close","aria-label":e(o)("Закрити модальне вікно"),onClick:s[0]||(s[0]=(...r)=>e(i).close&&e(i).close(...r))},s[2]||(s[2]=[t("i",{class:"i-icon i-icon-close"},null,-1)]),8,w)]),t("div",x,[t("div",D,[t("button",{type:"submit",class:"f-btn f-btn--primary w-full rounded-full normal-case",disabled:n.isSending,onClick:p(d,["prevent"])},l(u.value),9,B),t("button",{class:"f-btn f-btn--outline-primary w-full rounded-full normal-case mt-2",onClick:s[1]||(s[1]=(...r)=>e(i).close&&e(i).close(...r))},l(e(o)("Скасувати")),1)])])],64))}});export{N as default};

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.