1import{m,r as f,c as o,b as n,f as t,g as b,i as y,A as x,B as g}from"./index-BAF_Jm8G.js";const v={class:"p-4 w-sm max-w-[calc(100vw-1rem)]"},w={class:"flex flex-row items-center justify-end mt-2 gap-2"},_=["disabled"],k={key:0,class:"loading loading-spinner"},h={__name:"CityDeleteModal",props:{cityId:{type:Number,required:!0},emit:{type:Object,required:!1}},emits:["close"],setup(r,{emit:c}){const i=c;m();const l=r,d=()=>{i("close")},a=f(!1),u=async()=>{var s,e;a.value=!0;try{const{data:{message:p}}=await x.delete(`user-groups-locations/${l.cityId}/destroy-city`);i("close"),(e=(s=l.emit)==null?void 0:s.refresh)==null||e.call(s),g.success(p)}finally{a.value=!1}};return(s,e)=>(n(),o("div",v,[e[1]||(e[1]=t("h1",{class:"font-bold flex flex-row gap-2 items-center"},[t("span",{class:"text-2xl p-4 border border-gray-400 text-gray-600 rounded-full w-10 h-10 relative"},[t("span",{class:"absolute cep-center"},"?")]),t("span",null,"Emin Misiniz?")],-1)),e[2]||(e[2]=t("div",{class:"flex flex-row gap-2 items-center pt-4"}," Bu ili ve içindeki tüm ilçeleri silmek istediÄinize emin misiniz? ",-1)),t("div",w,[t("button",{class:"btn bg-[#ca2c31] text-white",type:"button",onClick:u,disabled:a.value},[a.value?(n(),o("span",k)):b("",!0),e[0]||(e[0]=y(" Evet Sil "))],8,_),t("button",{class:"btn",type:"button",onClick:d},"İptal")])]))}};export{h 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.