1"use strict";(self.webpackChunkranking=self.webpackChunkranking||[]).push([[769],{2005(e,t,n){n.d(t,{Pk:()=>r,f$:()=>l,hA:()=>a,of:()=>u,pQ:()=>d,pX:()=>c,p_:()=>s,uA:()=>i,wx:()=>p,x_:()=>h});var o=n(541);const r=["Lehrkraft","Schulleitung","Fachschaftsleitung","Konrektor","Rektor","Eltern"],i=[{id:"school_pilot",label:"Schulweiter Pilot"},{id:"own_class",label:"Eigene Klasse"},{id:"own_children",label:"Eigene Kinder"},{id:"other",label:"Weiteres Interesse"}],c=e=>String(e||"").toLocaleLowerCase("de").normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\xdf/g,"ss"),s=e=>[null===e||void 0===e?void 0:e.name,null===e||void 0===e?void 0:e.city].filter(Boolean).join(" \xb7 "),a=o.jw.filter(e=>"DE"===e.country);function l(e){return"AT"===(null===e||void 0===e?void 0:e.country)?"\xd6sterreich":"CH"===(null===e||void 0===e?void 0:e.country)?"Schweiz":(null===e||void 0===e?void 0:e.region_name)||""}function u(e){var t;const n=c(null===e||void 0===e?void 0:e.school_type),r=(null===e||void 0===e?void 0:e.country)||"DE",i=o.HK.filter(e=>e.country===r).find(e=>c(e.name)===n||e.id===n);if(i)return i.id;return(null===(t=("DE"===r?[["grund","grundschule"],["gymn","gymnasium"],["realsch","realschule"],["forderung","foerderschule"],["forder","foerderschule"],["sonder","foerderschule"],["gesamt","gesamtschule"],["gemeinschaft","gesamtschule"],["beruf","berufsschule"],["haupt","hauptschule"],["mittel","hauptschule"],["sekundar","oberschule"],["ober","oberschule"],["regel","oberschule"],["waldorf","waldorf_montessori"],["montessori","waldorf_montessori"]]:"AT"===r?[["volks","volksschule"],["mittel","mittelschule"],["ahs","ahs_unterstufe"],["berufssch","berufsschule"],["poly","polytechnische_schule"],["sonder","sonderschule"]]:[["primar","primarschule"],["sekundar","sekundarschule"],["gymn","gymnasium"],["kanton","gymnasium"],["berufs","berufsfachschule"],["fachmittel","fachmittelschule"]]).find(e=>{let[t]=e;return n.includes(t)}))||void 0===t?void 0:t[1])||""}function h(e,t){let{country:n="DE",curriculum:o="Nordrhein-Westfalen",schoolType:r="grundschule"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=e||{name:t.trim(),country:n},c=i.website||"";return{name:i.name,directory_id:i.id&&"manual"!==i.id?i.id:null,country:i.country||n,region:i.region||o,city:i.city||"",school_type:i.school_type||"",website:/^https?:\/\//i.test(c)?c:"",startchancen:"c
1onfirmed"===i.startchancen?"confirmed":"unknown",curriculum:e&&l(e)||o,school_type_id:e&&u(e)||r}}const d=(e,t)=>e?(0,o.S3)(e):o.HK.filter(e=>e.country===t);function p(){var e;if(null!==(e=window.crypto)&&void 0!==e&&e.randomUUID)return window.crypto.randomUUID();const t=new Uint8Array(16);window.crypto.getRandomValues(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;const n=[...t].map(e=>e.toString(16).padStart(2,"0")).join("");return"".concat(n.slice(0,8),"-").concat(n.slice(8,12),"-").concat(n.slice(12,16),"-").concat(n.slice(16,20),"-").concat(n.slice(20))}},2180(e,t,n){n.d(t,{A_:()=>k,B6:()=>y,CJ:()=>_,F6:()=>m,IJ:()=>b,L9:()=>w,NA:()=>h,aS:()=>d,g_:()=>v,oD:()=>f,oO:()=>A,xR:()=>g,yd:()=>p});var o=n(9379),r=n(6568);const i=new Map,c=new Map;let s;const a=new Map,l=new Map,u=async e=>{const t=await fetch("".concat("").concat(e));if(!t.ok)throw new Error("HTTP ".concat(t.status));return t.json()},h=()=>(s||(s=u("/data/outreach-dach/index.json").catch(e=>{throw s=null,e})),s),d=e=>(i.has(e.url)||i.set(e.url,u(e.url).then(t=>{if(t.region!==e.id||!Array.isArray(t.schools)||t.schools.length!==e.school_count)throw new Error("Unvollst\xe4ndiges Datenpaket: ".concat(e.label));return t.schools}).catch(t=>{throw i.delete(e.url),t})),i.get(e.url)),p=e=>{const t=e.generated_at_utc;return c.has(t)||c.set(t,u("/data/outreach-dach/price-reference.json?v=".concat(encodeURIComponent(t))).then(t=>(0,r.uC)(t,e)).catch(e=>{throw c.delete(t),e})),c.get(t)},g=async(e,t)=>{const n=e.generated_at_utc;l.has(n)||l.set(n,u("/data/outreach-dach/bearer-finances.json?v=".concat(encodeURIComponent(n))).then(e=>{if(1!==e.schema_version||e.directory_version!==n||!Array.isArray(e.regions))throw new Error("Finanzdaten passen nicht zur Verzeichnisversion.");return e}).catch(e=>{throw l.delete(n),e}));const r=await l.get(n);return(await Promise.all(t.map(e=>{const t=r.regions.find(t=>t.id===e.id);if(!t)throw new Error("Finanzdaten fehlen f\xfcr ".concat(e.label,"."));return l.has(t.url)||l.set(t.url,u(t.url).then(t=>{if(1!==t.schema_version||t.directory_version!==n||t.region!==e.id||!t.entities||!t.schools)throw new Error("Ung\xfcltiges Finanzpaket: ".concat(e.label));return t}).catch(e=>{throw l.delete(t.url),e})),l.get(t.url)}))).reduce((e,t)=>({entities:(0,o.A)((0,o.A)({},e.entities),t.entities),schools:(0,o.A)((0,o.A)({},e.schools),t.schools),locations:(0,o.A)((0,o.A)({},e.locations),t.locations)}),{entities:{},schools:{},locations:{}})},m=e=>{const t=e.generated_at_utc;return a.has(t)||a.set(t,u("/data/outreach-dach/private-operators.json?v=".concat(encodeURIComponent(t))).then(e=>{if(1!==e.schema_version||e.directory_version!==t||!Array.isArray(e.operators)||!e.memberships)throw new Error("Tr\xe4gerdaten passen nicht zur aktuellen Verzeichnisversion.");return e}).catch(e=>{throw a.delete(t),e})),a.get(t)},f=(e,t)=>{const n=null===e||void 0===e?void 0:e.memberships[t];return n?e.operators.find(e=>e.id===n.operator_id):null},_=e=>(i.has(e.schools_url)||i.set(e.schools_url,u(e.schools_url).then(t=>{if(t.operator_id!==e.id||!Array.isArray(t.schools)||t.schools.length!==e.directory_count)throw new Error("Unvollst\xe4ndige Schulprofile f\xfcr ".concat(e.name));return t.schools}).catch(t=>{throw i.delete(e.schools_url),t})),i.get(e.schools_url)),w=(e,t)=>t?e.filter(e=>t.region_counts[e.id]>0):e,y=(e,t,n)=>e.regions.filter(e=>(!t||e.country===t)&&(!n||e.id===n)),v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8e5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;const i=[];let c=[];const s=e=>new Blob([e]).size,a=s('{"schools":[]}');let l=a;return(e||[]).forEach(e=>{const u=(0,o.A)((0,o.A)({source_feature_id:e.source_feature_id||e.id,name:e.name,city:e.city,postal_code:e.postal_code,groups:e.groups||[]},e.website?{website:e.website}:{}),t.has(e.id)?{directory_id:e.id}:{}),h=s(JSON.stringify(u)),d=l+h+(c.length?1:0);if(c.length&&(c.length>=r||d>n)&&(i.push(c),c=[],l=a),c.push(u),l+=h+(c.length>1?1:0),l>n)throw new Error("Schulprofil ist zu gro\xdf f\xfcr den HubSpot-Abgleich: ".concat(e.name))}),c.length&&i.push(c),i},b=(e,t,n)=>{const r=n.flat(),i={},c={};
1return r.forEach(e=>e.groups.forEach(t=>{i[t]=(i[t]||0)+1,e.profile_verified&&(c[t]=(c[t]||0)+1)})),(0,o.A)((0,o.A)({},e.bayern_context),{},{generated_at_utc:e.generated_at_utc,source_date:e.source_date,groups:Object.fromEntries(Object.entries(e.groups).filter(e=>{let[t]=e;return i[t]})),file_counts:i,profiles:{verified_count:r.filter(e=>e.profile_verified).length,source_count:r.length,by_group:c},schools:r,regions:t,school_count:r.length})},A=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:850,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:28;const i=t.width/n*r,c=new Map;return e.forEach(e=>{const n=e.map_point;if(!n||n[0]<t.x||n[0]>t.x+t.width||n[1]<t.y||n[1]>t.y+t.height)return;const o="".concat(Math.floor((n[0]-t.x)/i),":").concat(Math.floor((n[1]-t.y)/i));c.has(o)||c.set(o,{key:o,x:0,y:0,schools:[]});const r=c.get(o);r.x+=n[0],r.y+=n[1],r.schools.push(e)}),[...c.values()].map(e=>(0,o.A)((0,o.A)({},e),{},{x:e.x/e.schools.length,y:e.y/e.schools.length}))},k=(e,t,n)=>{const o=new Map;return(t||[]).forEach(e=>{if(e.public_directory_id){const t=o.get(e.public_directory_id)||[];t.push(e),o.set(e.public_directory_id,t)}}),new Map(e.map(e=>{const r=o.get(e.id),i=1===(null===r||void 0===r?void 0:r.length)?{school:r[0],confidence:"manual"}:(null===r||void 0===r?void 0:r.length)>1?{ambiguous:!0,candidates:r}:"DE-BY"===e.region?n(e,t):null;return[e.id,i]}))}},5645(e,t,n){n.d(t,{Dr:()=>s,P8:()=>r,eB:()=>c,re:()=>i});var o=n(9379);const r=[{min:1,max:250,label:"bis 250",sublabel:"Sch\xfcler",price:499},{min:251,max:500,label:"bis 500",sublabel:"Sch\xfcler",price:899},{min:501,max:800,label:"bis 800",sublabel:"Sch\xfcler",price:1199},{min:801,max:1499,label:"801\u20131.499",sublabel:"Sch\xfcler",price:1499}];function i(e){if(""===e||null===e||void 0===e)return null;const t=Number(e);return!Number.isInteger(t)||t<=0?null:r.find(e=>t>=e.min&&t<=e.max)||null}function c(e){if(e.pupil_count_scope&&"Schule"!==e.pupil_count_scope)return null;const t=i(e.pupil_count),n=Number(e.pupil_count_rounding_margin||0),o=Number(e.pupil_count);return t&&n>0&&(o-n<t.min||o+n>t.max)?null:t}function s(e){const t=new Map;return e.forEach(e=>{const n="".concat(e.region,":").concat(e.parent_official_id||e.official_id||e.id);t.has(n)||t.set(n,new Set),t.get(n).add(c(e))}),r.map(e=>{const n=[...t.values()].filter(t=>1===t.size&&t.has(e)).length;return(0,o.A)((0,o.A)({},e),{},{count:n,total:n*e.price})})}},6568(e,t,n){n.d(t,{DL:()=>l,uC:()=>a});var o=n(5645);const r=e=>{const t=[...new Set(e.groups||[])].sort();return t.length&&!t.includes("weitere")?t.join("|"):null};function i(e){const t=new Map;return e.forEach(e=>{const n=(e=>"".concat(e.region,":").concat(e.parent_official_id||e.official_id||e.id))(e);t.has(n)||t.set(n,[]),t.get(n).push(e)}),t}function c(e){const t=new Set(e.map(o.eB));return 1!==t.size||t.has(null)?null:[...t][0].price}function s(e){const t=new Set(e.map(r));return 1===t.size?[...t][0]:null}function a(e,t){const n=o.P8.map(e=>{let{min:t,max:n,price:o}=e;return{min:t,max:n,price:o}});if(1!==e.schema_version||e.directory_version!==t.generated_at_utc||JSON.stringify(e.pricing_tiers)!==JSON.stringify(n)||!e.source_packs||Object.keys(e.source_packs).length!==t.regions.length||t.regions.some(t=>e.source_packs[t.id]!==t.sha256))throw new Error("Preisvergleichsdaten passen nicht zur Verzeichnisversion oder Preisstaffel.");const r=e=>{if(!Array.isArray(e)||e.some(e=>!Array.isArray(e)||2!==e.length||"string"!==typeof e[0]||!e[1]||!Number.isInteger(e[1].count)||e[1].count<=0||!Number.isFinite(e[1].total)||e[1].total<=0)||new Set(e.map(e=>e[0])).size!==e.length)throw new Error("Ung\xfcltige Preisvergleichsdaten.");return new Map(e)};return{regional:r(e.regional),germany:r(e.germany)}}function l(e,t){const n={knownCount:0,knownTotal:0,estimatedCount:0,estimatedTotal:0,regionalCount:0,germanyCount:0,openCount:0,schoolCount:0,total:0,estimatedShare:0};return i(e).forEach(e=>{n.schoolCount+=1;const r=c(e);if(null!==r)return n.knownCount+=1,void(n.knownTotal+=r);const i=e=>!e.pupil_count_scope||"Schule"===e.pupil_count_scope,a=new Set(e.filter(i).map(e=>{var t;return null===(t=(0,o.eB)(e))||void 0===t?void 0:t.price}
1).filter(Boolean)).size>1,l=e.some(e=>i(e)&&Number(e.pupil_count)>=1500),u=e.some(e=>i(e)&&null!=e.pupil_count&&""!==e.pupil_count&&0===Number(e.pupil_count)),h=s(e),d=h&&(null===t||void 0===t?void 0:t.regional.get("".concat(e[0].region,":").concat(h))),p=h&&e[0].region.startsWith("DE-")&&(null===t||void 0===t?void 0:t.germany.get(h)),g=d||p;a||l||u||!g?n.openCount+=1:(n.estimatedCount+=1,n.estimatedTotal+=g.total/g.count,n[d?"regionalCount":"germanyCount"]+=1)}),n.total=n.knownTotal+n.estimatedTotal,n.estimatedShare=n.total?100*n.estimatedTotal/n.total:0,n}},8678(e,t,n){n.d(t,{DB:()=>s,ER:()=>g,LE:()=>p,jJ:()=>u,my:()=>a,qM:()=>h,qq:()=>d,xi:()=>l});var o=n(9379),r=n(486),i=n(7901);async function c(e){let{method:t="GET",body:n,username:c,password:s,authenticated:a=!1,signal:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u={"Content-Type":"application/json"};void 0!==c&&(u.Authorization="Basic ".concat(btoa("".concat(c,":").concat(s)))),a&&(u.Authorization="Bearer ".concat((0,i.$E)("token")||""));const h=await fetch("".concat((0,r.Qqt)().httpUrl).concat(e),(0,o.A)({method:t,headers:u,signal:l},void 0!==n?{body:JSON.stringify(n)}:{}));if(!h.ok){var d,p,g;const e=await h.json().catch(()=>({})),t="string"===typeof e.detail?e.detail:null===(d=e.detail)||void 0===d||null===(p=d[0])||void 0===p||null===(g=p.msg)||void 0===g?void 0:g.replace(/^Value error, /,"");throw new Error(t||"Speichern nicht m\xf6glich. Bitte die Verbindung pr\xfcfen und erneut versuchen.")}return h.json()}const s=e=>c("/pilot/enroll",{method:"POST",body:e}),a=e=>c("/pilot/fair-leads",{method:"POST",body:e}),l=e=>c("/pilot/access/".concat(encodeURIComponent(e))),u=e=>c("/pilot/access/".concat(encodeURIComponent(e),"/join"),{method:"POST",body:{},authenticated:!0}),h=(e,t,n,o)=>c("/admin/fair-leads?".concat(new URLSearchParams(n)),{username:e,password:t,signal:o}),d=(e,t,n,o)=>c("/admin/fair-leads/".concat(n),{username:e,password:t,method:"PATCH",body:o}),p=(e,t,n)=>c("/admin/fair-leads/".concat(n,"/invitation"),{username:e,password:t,method:"POST",body:{}});async function g(e,t,n){const o=await fetch("".concat((0,r.Qqt)().httpUrl,"/admin/fair-leads-export?").concat(new URLSearchParams(n)),{headers:{Authorization:"Basic ".concat(btoa("".concat(e,":").concat(t)))}});if(!o.ok)throw new Error("Export nicht m\xf6glich. Bitte die Filter eingrenzen und erneut versuchen.");const i=URL.createObjectURL(await o.blob()),c=document.createElement("a");c.href=i,c.download="livinglines-messekontakte.csv",c.click(),setTimeout(()=>URL.revokeObjectURL(i),1e3)}}}]);
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.