PageSourceSearch

https://dom.santanadomaranhao.ma.gov.br/build/assets/LawInfo-KzKMzsAH.js

js santanadomaranhao.ma.gov.br collected 2026-09-25 02:09:02 UTC 3,879 bytes, 1 lines download raw bytes

1import{d as _,r as h,i as v,o as s,k as i,l as e,p as u,v as m,n,s as r,a as f,w as y,z as k}from"./app-GC03Gq4U.js";import{I as p}from"./IconLoading-nChL0Y9u.js";import{_ as D}from"./Select.vue_vue_type_script_setup_true_lang-a-MB7dxT.js";import{_ as g}from"./Editor.vue_vue_type_style_index_0_lang-7fn1MnTp.js";import{_ as V}from"./InputFile.vue_vue_type_style_index_0_lang-RTXVEbi6.js";import{s as I}from"./show-error-zM9JovDt.js";import{s as c}from"./show-success--uwFjSj5.js";import"./index-xsBlUFEN.js";const L={class:"flex flex-row items-start justify-start flex-wrap w-full"},U=e("div",{class:"px-2 w-full"},[e("div",{class:"border-b border-black/10 pb-1 mb-2"},[e("span",{class:"font-medium text-xs text-black/80"},"Identificação")])],-1),z={class:"w-full flex flex-wrap"},B={class:"w-full md:w-3/12 p-2 flex flex-wrap"},C=e("span",{class:"text-xs text-black font-semibold group-hover:text-primary duration-500"},"Título",-1),j={class:"w-full md:w-3/12 p-2 flex flex-wrap"},A=e("span",{class:"text-xs text-black font-semibold group-hover:text-primary duration-500"},"Documento (Anexo)",-1),N={class:"w-full md:w-3/12 p-2 flex flex-wrap"},S=e("span",{class:"text-xs text-black font-semibold group-hover:text-primary duration-500"},"Tipo de Lei",-1),T={class:"w-full md:w-3/12 p-2 flex flex-wrap"},$=e("span",{class:"text-xs text-black font-semibold group-hover:text-primary duration-500"},"Data",-1),E={class:"group w-full p-2 flex flex-col"},F=e("span",{class:"text-xs text-black font-semibold group-hover:text-primary duration-500"},"Descrição",-1),M={key:0,class:"group w-full p-2 flex justify-end border-t mt-4 pt-4"},q={class:"text-xs font-bold bg-primary duration-500 h-10 w-28 rounded-md text-white"},R={key:0},G={key:1,class:"group w-full p-2 flex justify-end border-t mt-4 pt-4"},H={class:"text-xs font-bold bg-primary duration-500 h-10 w-28 rounded-md text-white"},J={key:0},tt=_({__name:"LawInfo",props:{selecteds:{},formData:{},setLawId:{type:Function}},setup(b){const d=b,l=h(!1),w=v(),x=async()=>{l.value=!0;try{const t=await k.post("laws",{...d.formData,law_id:d.formData.id});if(t.status===200)return d.setLawId(t.data.data.law_id),d.formData.id==0?c("Cadastrado com sucesso","Lei foi cadastrada com sucesso"):c("Atualizado com sucesso","Lei foi atualizada com sucesso"),w.push("/dashboard/informacoes-institucionais/leis")}catch(t){I(t)}finally{l.value=!1}};return(t,o)=>(s(),i("form",{onSubmit:y(x,["prevent"]),class:"w-full"},[e("div",L,[U,e("div",z,[e("div",B,[C,u(e("input",{"onUpdate:modelValue":o[0]||(o[0]=a=>t.formData.title=a),class:"p-2 h-9 rounded-md bg-black/5 mt-1 text-xs text-black outline-0 border border-black/10 group-hover:border-primary duration-500 w-full"},null,512),[[m,t.formData.title]])]),e("div",j,[A,n(V,{class:"h-9",modelValue:t.formData.file,"onUpdate:modelValue":o[1]||(o[1]=a=>t.formData.file=a),label:t.formData.file?t.formData.file.name:"Selecione um arquivo..."},null,8,["modelValue","label"])]),e("div",N,[S,n(D,{options:t.selecteds.law_types,modelValue:t.formData.law_type_id,"onUpdate:modelValue":o[2]||(o[2]=a=>t.formData.law_type_id=a)},null,8,["options","modelValue"])]),e("div",T,[$,u(e("input",{type:"date","onUpdate:modelValue":o[3]||(o[3]=a=>t.formData.date=a),class:"p-2 h-9 rounded-md bg-black/5 mt-1 text-xs text-black outline-0 border border-black/10 group-hover:border-primary duration-500 w-full"},null,512),[[m,t.formData.date]])]),e("div",E,[F,n(g,{modelValue:t.formData.description,"onUpdate:modelValue":o[4]||(o[4]=a=>t.formData.description=a)},null,8,["modelValue"])])])]),t.formData.id==0?(s(),i("div",M,[e("button",q,[l.value?r("",!0):(s(),i("span",R,"Cadastrar")),l.value?(s(),f(p,{key:1})):r("",!0)])])):r("",!0),t.formData.id!=0?(s(),i("div",G,[e("button",H,[l.value?r("",!0):(s(),i("span",J,"Atualizar")),l.value?(s(),f(p,{key:1})):r("",!0)])])):r("",!0)],32))}});export{tt 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.