PageSourceSearch

https://hhbro.ru/build/assets/ConfirmModal-CDL_8qJc.js

js hhbro.ru collected 2026-10-06 07:05:06 UTC 1,822 bytes, 1 lines download raw bytes

1import{k as t,f as e,z as a,a as o,o as n,e as r,t as s,n as d,w as l}from"./vue-vendor-GK5YwCPv.js";const i={class:"text-xl font-semibold mb-4 text-gray-900 dark:text-gray-100"},c={class:"text-gray-700 dark:text-gray-300 mb-6"},m={class:"flex space-x-3"},u={__name:"ConfirmModal",props:{show:{type:Boolean,default:!1},title:{type:String,default:"Подтверждение"},message:{type:String,required:!0},confirmText:{type:String,default:"Подтвердить"},cancelText:{type:String,default:"Отмена"},danger:{type:Boolean,default:!1}},emits:["confirm","cancel","update:show"],setup(u,{emit:p}){const f=u,g=p,x=()=>{g("confirm"),g("update:show",!1)},b=()=>{g("cancel"),g("update:show",!1)};return t(()=>f.show,t=>{if(t){const t=e=>{"Escape"===e.key&&(b(),document.removeEventListener("keydown",t))};document.addEventListener("keydown",t)}}),(t,p)=>e((n(),o("div",{"data-test":"confirm-modal",class:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-[70] p-4",onClick:l(b,["self"])},[r("div",{class:"glass-card rounded-3xl shadow-2xl max-w-md w-full p-6",onClick:p[0]||(p[0]=l(()=>{},["stop"]))},[r("h3",i,s(u.title),1),r("p",c,s(u.message),1),r("div",m,[r("button",{type:"button","data-test":"cancel-button",onClick:b,class:"flex-1 px-4 py-2.5 border border-gray-300 dark:border-slate-600 rounded-2xl hover:bg-gray-50 dark:hover:bg-slate-700 transition font-medium text-gray-700 dark:text-gray-300 magnetic-button"},s(u.cancelText),1),r("button",{type:"button","data-test":"confirm-button",onClick:x,class:d(["flex-1 px-4 py-2.5 rounded-2xl transition font-medium magnetic-button",u.danger?"bg-red-600 text-white hover:bg-red-700":"bg-gradient-to-r from-indigo-500 to-purple-600 text-white hover:shadow-lg"])},s(u.confirmText),3)])])],512)),[[a,u.show]])}};export{u 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.