PageSourceSearch

https://app.gdprregister.eu/build/assets/QuickAddDataSubjectModal-BGRK7d_1.js

js gdprregister.eu collected 2026-10-02 05:44:19 UTC 1,806 bytes, 1 lines download raw bytes

1import{b as j,r as n,j as e}from"./app-DlfbqdF2.js";import{C as h}from"./tokens-D9CTjdA_.js";import{u as b}from"./useTranslate-1hT__Qbq.js";import{B as m}from"./Button-DBA1PDN9.js";import{F as v}from"./Field-x43IXuta.js";import{T as x}from"./TextInput-eN2UyZNO.js";import{M as _}from"./Modal-B9pXBIW8.js";import"./preload-helper-I4rgV-VL.js";import"./merge-WwJn_B7a.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./form.module-DRFqX35K.js";import"./Tooltip-DSQhSn89.js";import"./InfoHint-CkbawjVw.js";function O({open:u,onClose:a,onAdded:p}){const t=b(),f=j().props.csrf,[s,o]=n.useState(""),[r,l]=n.useState(!1),[d,i]=n.useState(null),g=async()=>{l(!0),i(null);try{(await fetch("/datasubject",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRF-TOKEN":f,"X-Requested-With":"XMLHttpRequest"},credentials:"same-origin",body:JSON.stringify({data_subject:s.trim()})})).ok?(o(""),p(),a()):i(t("general.save_failed","Could not save. Please check the fields and try again."))}catch{i(t("general.save_failed","Could not save. Please check the fields and try again."))}finally{l(!1)}};return e.jsxs(_,{open:u,onClose:a,title:t("register.add_data_subject","Add data subject"),size:"sm",footer:e.jsxs(e.Fragment,{children:[e.jsx(m,{variant:"secondary",onClick:a,disabled:r,children:t("general.cancel","Cancel")}),e.jsx(m,{variant:"primary",onClick:()=>{g()},disabled:r||!s.trim(),children:r?t("general.saving","Saving…"):t("general.add","Add")})]}),children:[e.jsx(v,{label:t("register.dataset_data_subject","Data set"),htmlFor:"qa_data_subject_name",required:!0,children:e.jsx(x,{id:"qa_data_subject_name",value:s,onChange:c=>o(c.target.value)})}),d?e.jsx("div",{role:"alert",style:{marginTop:8,fontSize:12,color:h.dangerText},children:d}):null]})}export{O 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.