PageSourceSearch

https://0x.kz/build/assets/ProjectCreate-CoRbPWR2.js

js 0x.kz collected 2026-10-09 04:37:46 UTC 3,360 bytes, 1 lines download raw bytes

1import{o as g,g as w,h as o,b as l,u as s,a as e,e as d,v as c,t as _,f as u}from"./app-DVhk9hEg.js";import{Y as k,G as j}from"./dialog-B1KZN6xf.js";import{h as p,S as C}from"./transition-CLaDrR5O.js";import{r as V}from"./XMarkIcon-B221X_Ru.js";/* empty css            */import"./keyboard-BzxerdJT.js";const B={class:"fixed inset-0 z-10 w-screen overflow-y-auto"},S={class:"flex md:min-h-full md:mt-0 mt-20 items-end justify-center p-4 text-center sm:items-center sm:p-0"},z={class:"absolute right-0 top-0 hidden pr-4 pt-4 sm:block"},D={class:"mt-10"},G={class:"flex flex-col py-1 gap-4"},N={class:"mt-5 sm:mt-6"},$={__name:"ProjectCreate",props:{load:Function},emits:["close","load"],setup(f,{emit:m}){const i=u(""),a=u(""),v=u(!0),y=m,b=f,n=()=>{y("close",!1)};function h(){i.value===""||a.value===""||(api.post("/api/project",{name:i.value,key:a.value}).then(b.load),n())}return(x,t)=>(g(),w(s(C),{as:"template",show:v.value},{default:o(()=>[l(s(k),{class:"relative z-10",onClose:n},{default:o(()=>[l(s(p),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:o(()=>[...t[2]||(t[2]=[e("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"},null,-1)])]),_:1}),e("div",B,[e("div",S,[l(s(p),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:o(()=>[l(s(j),{class:"relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-sm sm:p-8"},{default:o(()=>[e("div",z,[e("button",{type:"button",class:"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:n},[t[3]||(t[3]=e("span",{class:"sr-only"},"Close",-1)),l(s(V),{class:"h-6 w-6","aria-hidden":"true"})])]),e("div",D,[e("div",G,[d(e("input",{type:"text",placeholder:"Название","onUpdate:modelValue":t[0]||(t[0]=r=>i.value=r),class:"outline-none placeholder:pl-1 text-dark placeholder:text-dark bg-white-blue inline-flex w-full justify-center rounded-md px-3 py-3 shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},null,512),[[c,i.value]]),d(e("input",{type:"text",class:"outline-none placeholder:pl-1 text-dark placeholder:text-dark bg-white-blue inline-flex w-full justify-center rounded-md px-3 py-3 shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",placeholder:"Ключ","onUpdate:modelValue":t[1]||(t[1]=r=>a.value=r)},null,512),[[c,a.value]])])]),e("div",N,[e("button",{type:"button",class:"inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",onClick:h},_(x.$page.props.translations.messages.create_project),1)])]),_:1})]),_:1})])])]),_:1})]),_:1},8,["show"]))}};export{$ 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.