PageSourceSearch

https://www.allgaeuer-zeitung.de/static/68.chunk.27b29b1c7df06c91f622.js

js allgaeuer-zeitung.de collected 2026-10-01 11:50:52 UTC 6,784 bytes, 9 lines download raw bytes

1/*! @version: todo */
2"use strict";(self.webpackChunktemplate_renderer=self.webpackChunktemplate_renderer||[]).push([[68],{4936:(e,t,n)=>{n.d(t,{Y:()=>o});const o="btn-label"},9936:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(3049),l=n(6611);class a{constructor(){window.COPLA.console.log("MicroDialog()");const e=(0,o.m2)((({items:e})=>l.A`<div class="fixed bottom-0 left-[50%] z-50 w-0">
3    <div data-micro-container class="flex flex-col">${null!=e?e:""}</div>
4  </div>`)({}));this.root=document.body.appendChild(e),this.container=this.root.querySelector("[data-micro-container]")}static getInstance(){return this._instance||(this._instance=new this)}showNotification(e,{durationInMs:t=3e3,warning:n=!1}={}){const a=(0,o.m2)((({label:e,warning:t,initAnimateClasses:n=""})=>{const o=t?"bg-red text-white-always":"bg-secondary text-typo-on-secondary";return l.A`<div
5    class="${o} ${n} mx-4 mb-4 w-[90vw] self-center rounded-s p-3 text-center font-semibold uppercase shadow-xl transition-all duration-300  ease-in-out 
6                md:w-auto md:max-w-[90vw] md:whitespace-nowrap md:p-6"
7  >
8    ${e}
9  </div>`})({label:e,warning:n,initAnimateClasses:"opacity-0 translate-y-6"}));this.container.appendChild(a),window.setTimeout((()=>{a.classList.remove("opacity-0","translate-y-6"),window.setTimeout((()=>{a.classList.add("opacity-0","translate-y-6"),window.setTimeout((()=>{this.container.removeChild(a)}),300)}),t)}),20)}}},1068:(e,t,n)=>{n.r(t),n.d(t,{FormModule:()=>s});var o=n(4936),l=n(9936);const a="form-loading-icon",r="form-loading-layer";var i=(e,t,n)=>new Promise(((o,l)=>{var a=e=>{try{i(n.next(e))}catch(e){l(e)}},r=e=>{try{i(n.throw(e))}catch(e){l(e)}},i=e=>e.done?o(e.value):Promise.resolve(e.value).then(a,r);i((n=n.apply(e,t)).next())}));const s=e=>i(void 0,null,(function*(){var t;if(!(e instanceof HTMLFormElement))return void console.error("FormModule has to be HTMLFormElement");const n=l.A.getInstance(),s=e,{action:c,method:d,id:u}=s,{fetchdata:m}=s.dataset,{origin:h}=window.location,p=0===c.indexOf(h)?c.substring(h.length):c,f=s.querySelector(`template#${u}-${a}`);null==f&&console.warn("FormModule() missing loading icon template",{id:u,FORM_LOADING_ICON:a});const w=s.querySelector(`template#${u}-${r}`);null==w&&console.warn("FormModule() missing loading layer template",{id:u,FORM_LOADING_LAYER:r});const y=s.querySelector(`[data-form-submit-btn] [data-${o.Y}]`),b=null!=(t=s.dataset.submitlabel)?t:"Speichern",g=s.querySelectorAll('input[type="submit"], button[type="submit"], button:not([type]):not([type=""])'),v=0===g.length,A={};s.querySelectorAll("input[name]").forEach((e=>{const t=e.getAttribute("name");null!=t&&(null!=A[t]&&A[t]!==e.type&&console.warn("FormModule() duplicate name with different types",{name:t,type1:A[t],type2:e.type}),A[t]=e.type)})),window.COPLA.console.log("FormModule()",{action:c,cleanedAction:p,fetchdata:m,formEl:s,allFields:A});const C=()=>i(void 0,null,(function*(){try{L(!0,{initial:!0});const t=yield fetch(p,{method:"GET",headers:{"Content-Type":"application/json"}});if(t.status>=300)return void console.warn("fetchInitialData() failed",t);const n=yield t.json();window.COPLA.console.log("fetchInitialData() >>> response",n),"object"!=typeof(e=n)||Array.isArray(e)||null===e?console.warn("fetchInitialData() did not return object",n):Object.entries(n).forEach((([e,t])=>{if(null!=A[e]){s.querySelectorAll(`input[name="${e}"]`).forEach((e=>{switch(e.type){case"checkbox":e.checked=!0===t||!1===t?t:e.value===t;break;case"radio":e.checked=e.value===t;break;case"text":case"number":case"search":case"tel":case"url":e.value=`${t}`;break;default:console.warn("fetchInitialData() input type not handled yet",e.type)}}))}else console.warn("fetchInitialData() unknown name",e)}))}catch(e){console.error("fetchInitialData()",e)}finally{L(!1,{initial:!0})}var e})),E=(e,...t)=>i(void 0,[e,...t],(function*(e,{reason:t}={}){var o;try{L(!0,{reason:t}),window.COPLA.console.log("updateData()",{postData:e,cleanedAction:p,formMethod:d});const l=yield fetch(p,{method:d,headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),a=yield l.json();window.COPLA.console.log("updateData() >>> response",a);const{message:r,error:i}=a;if(l.status>=300||null!=i){const e=null!=(o=null!=i?i:r)?o:"Fehler beim Speichern der Daten";throw n.showNotification(e,{warning:!0}),new Error(e)}n.showNotification(null!=r?r:"Daten erfolgreich gespeichert")}catch(e){console.error("updateData()",e)}finally{L(!1)}})),L=(e,{reason:t,initial:n=!1}={})=>{const o=s.querySelectorAll("input");window.COPLA.console.log("toogleDisableInput()",{bool:e,reason:t,submitOnChange:v,inputs:o,submitEls:g,initial:n,submitBtnLabel:y}),o.forEach((t=>{t.disabled=e})),g.forEach((t=>{t.disabled=e})),s.setAttribute("aria-busy",`${e}`),n&&null!=y&&(y.textContent=e?"Lade Daten...":b),v&&F(e,{reason:t})},D=e=>e.content.cloneNode(!0).children[0];let O=null,x=null;const F=(e,{reason:t}={})=>
9{if(null!=x&&(x.remove(),x=null),null!=O&&(O.remove(),O=null),null!=f&&!0===e){let e=s,n=!0;const o=[];if(null!=t){const l=s.querySelector(`label[for="${t}"]`);null!=l&&(e=l.parentElement,o.push("ml-3"),n=!1)}n&&null!=w&&(O=D(w),e.appendChild(O)),x=D(f),o.length>0&&x.classList.add(...o),null!=O?O.children[0].appendChild(x):e.appendChild(x)}},I=()=>{const e=new FormData(s),t=Object.fromEntries(e),n={};for(const[e,o]of Object.entries(A))n[e]="checkbox"===o?null!=t[e]:"radio"===o?null!=t[e]?t[e]:void 0:null!=t[e]?t[e]:"";return window.COPLA.console.log("collectFormData())",{formDataObj:t,data:n}),n},M=e=>i(void 0,null,(function*(){var t;const n=null==(t=e.target)?void 0:t.id;console.log("onFormChange()",{inputId:n});const o=I();v&&(yield E(o,{reason:n}))})),S=e=>i(void 0,null,(function*(){e.preventDefault(),e.stopPropagation(),console.log("onFormSubmit()");const t=I();yield E(t)}));return"true"===m&&(yield C()),s.addEventListener("change",M),s.addEventListener("submit",S),()=>{s.removeEventListener("change",M),s.removeEventListener("submit",S)}}))},3049:(e,t,n)=>{n.d(t,{I:()=>l,V6:()=>o,m2:()=>a});const o=(e,t)=>{if(null===t)throw new Error("root was null");const n=t.querySelector(e);if(null===n)throw new Error(`element not found: ${e}`);return n},l=(e,t)=>{let n=e.parentNode;for(;null!=n;){const e=n;if(e.hasAttribute(t))return e;n=n.parentNode}return null},a=(e,t=!0)=>{if(!(e=t?e.trim():e))throw new Error("html string was empty");const n=document.createElement("template");n.innerHTML=e;const o=n.content.children;return 1===o.length?o[0]:o}},6611:(e,t,n)=>{function o(e,...t){const n=e.raw,o=arguments.length;let l,a,r="",i=1;for(;i<o;)l=n[i-1],a=t[i-1],r+=l+a,i++;return r+=n[n.length-1],r}n.d(t,{A:()=>o});o.each=(e,t)=>{let n;if(null==e)return"";if(Array.isArray(e))n=e.map(t);else{n=[];for(const o in e)n.push(t(o,e[o]))}return n.join("")}}}]);

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.