PageSourceSearch

https://www.diakonie-katastrophenhilfe.de/_assets/ae55d6236701f0e7…/Dist/chunks/usercentrics-Cyuobn39.js

js diakonie-katastrophenhilfe.de collected 2026-10-02 17:58:27 UTC 1,576 bytes, 1 lines download raw bytes

1const c=new CustomEvent("asuc-updated"),e={v:null,services:{},consent:{}},v=()=>{typeof usercentrics<"u"?e.v=1:typeof __ucCmp<"u"?e.v=3:typeof UC_UI<"u"&&(e.v=2)},a=async()=>{e.v===3&&await __ucCmp.getConsentDetails().then(t=>{e.consent=t.consent,e.services=t.services})},r=t=>{var i,s;if(e.v!==1){if(e.v===2){let n=UC_UI.getServicesBaseInfo().find(d=>d.id===t);return!!(n&&n.consent.status)}else if(e.v===3)return(s=(i=e.services[t])==null?void 0:i.consent)==null?void 0:s.given}},o=async()=>{let t=!1;return e.v===1||(e.v===2?window.UC_UI&&window.UC_UI.isInitialized()&&(t=!0):e.v===3&&(t=await __ucCmp.isInitialized())),t},u=async t=>{if(v(),e.v===1)usercentrics.updateConsents([{templateId:t,status:!0}]);else if(e.v===2)UC_UI.acceptService(t),document.dispatchEvent(c);else if(e.v===3&&e.services[t]!==void 0){let s=[{id:t,consent:!0}];await __ucCmp.updateServicesConsents(s),await __ucCmp.saveConsents(),await __ucCmp.refreshScripts(),await a(),document.dispatchEvent(c)}},f=()=>{v(),a(),document.querySelectorAll(".asuc-accept").forEach(n=>{n.addEventListener("click",async()=>{await u(n.dataset.id)})});let i=0;const s=async()=>{v(),!(++i>30)&&(await o()?(document.dispatchEvent(c),e.v===2?(window.addEventListener("ucEvent",function(n){a(),document.dispatchEvent(c)}),window.addEventListener("UC_UI_CMP_EVENT",function(n){a(),document.dispatchEvent(c)})):e.v===3&&window.addEventListener("UC_CONSENT",function(n){a(),document.dispatchEvent(c)})):setTimeout(()=>s(),500))};s()};export{u as acceptUcService,o as checkUcInit,a as getUcData,r as getUcService,f as init};

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.