PageSourceSearch

https://www.lechmuseum.de/dist/client/4523207fe8ac.chunk.js

js lechmuseum.de collected 2026-10-02 20:02:06 UTC 17,510 bytes, 1 lines download raw bytes

1"use strict";(self["webpackJsonp[chunkhash]´"]=self["webpackJsonp[chunkhash]´"]||[]).push([[4523],{22975:(e,t,s)=>{s.d(t,{F:()=>a,Y:()=>o});const o=e=>{const t=document.createEvent("HTMLEvents");t.initEvent("message",!0,!0),t.eventName="message",t.data=JSON.stringify({type:"formReady",data:{id:e,name:e}}),globalThis.dispatchEvent(t)},a=(e,t)=>{const s=document.createEvent("HTMLEvents");s.initEvent("message",!0,!0),s.eventName="message",s.data=JSON.stringify({type:"init",data:{id:e,module:t}}),globalThis.dispatchEvent(s)}},50374:(e,t,s)=>{s.d(t,{F:()=>a});var o=s(72505);const a=s.n(o)().create();a.interceptors.request.use((e=>(e.headers.common["X-XSRF-TOKEN"]=(document.querySelectorAll("[name='__RequestVerificationToken']")[0]||{}).value,e.withCredentials=!0,e.baseURL="/umbraco/api",e)),(e=>e))},56156:(e,t,s)=>{s.d(t,{k:()=>c});var o=s(87451),a=s(96540),i=s(99879),n=s(71164),r=s(79987),l=s(4213),d=s(75231),h=s(74848);const c=e=>{let{ctaText:t,getBlobFile:s,onDownload:c=()=>null}=e;const[p,u]=(0,a.useState)(i.A.newGuid()),[m,v]=(0,a.useState)(!1),[g,f]=(0,a.useState)();return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(o.A,{loading:m,text:t,handleClick:async()=>{v(!0);try{const t=await s(p);switch(null===t||void 0===t?void 0:t.status){case 200:try{const e=t.data,s=t.headers;if(!!new Blob){const t=new Blob([e]),o=(0,n.parse)(s["content-disposition"]);(0,l.saveAs)(t,o.parameters.filename),f(r.j.Success),c()}v(!1),u(i.A.newGuid())}catch(e){f(e),u(i.A.newGuid())}break;case 401:case 400:case 404:v(!1),f(r.j.NotValid);break;case 500:v(!1),f(r.j.Error)}}catch{v(!1),f(r.j.Error)}v(!1)},color:d.d.CTA_3}),g!==r.j.Success&&g&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("br",{}),(0,h.jsx)("span",{className:"error-block",children:"Bitte versuchen Sie es erneut"})]})]})}},60102:(e,t,s)=>{s.d(t,{A:()=>c});var o=s(96540),a=s(65048),i=s(99879),n=s(79618),r=s(53547),l=s(74848);const d=e=>{const t=t=>{t.preventDefault(),e.onClick(e.index,e.option)},s=(0,o.useRef)(null);return(0,o.useEffect)((()=>{var t;e.focused&&(null===(t=s.current)||void 0===t||t.scrollIntoView({behavior:"smooth",block:"nearest"}))}),[e.focused]),(0,l.jsx)("div",{ref:s,onMouseDown:t,onTouchStart:t,onMouseOver:()=>{e.onFocus(e.index,e.option)},className:"option","data-key":e.index,"data-value":e.option.value,id:`${e.name}_option-item-${e.index}`,"aria-selected":e.focused,children:e.option.text})},h={maxHeight:"320px"};class c extends o.Component{constructor(e){super(e),this.selectRef=o.createRef(),this.toggleList=e=>{var t,s;(e.preventDefault(),this.selectRef.current===document.activeElement)?this.state.ariaExpanded?this.handleBlur():(null===(t=this.selectRef.current)||void 0===t||t.focus(),this.handleFocus()):null===(s=this.selectRef.current)||void 0===s||s.focus()},this.handleFocus=()=>{this.props.options.length>=1&&this.setState({ariaExpanded:!0})},this.handleBlur=()=>{this.setState({ariaExpanded:!1})},this.showError=e=>!!(e&&e.length>0),this.handleChange=(e,t)=>
1{var s;null===(s=this.selectRef.current)||void 0===s||s.focus(),this.setState({touched:!0,ariaExpanded:!1},(()=>this.props.handleChange(t.value,t.text)))},this.handleSelect=e=>{e.preventDefault();const t=e.target.value;let s="";e.target.options[e.target.options.selectedIndex].text&&(s=e.target.options[e.target.options.selectedIndex].text),this.props.handleChange(t,s),this.setState({touched:!0})},this.handleKeyPressed=e=>{switch(e.key){case"ArrowRight":case"ArrowDown":if(e.preventDefault(),this.props.options.length>1)if(this.state.ariaExpanded){const e=Math.min(this.state.optionFocusIndex+1,this.props.options.length-1);this.setState({optionFocusIndex:e});const t=this.props.options[e];this.props.handleChange(t.value,t.text)}else this.setState({touched:!0,ariaExpanded:!0});break;case"ArrowLeft":case"ArrowUp":if(e.preventDefault(),this.props.options.length>1)if(this.state.ariaExpanded){const e=Math.max(this.state.optionFocusIndex-1,0);this.setState({optionFocusIndex:e});const t=this.props.options[e];this.props.handleChange(t.value,t.text)}else this.setState({touched:!0,ariaExpanded:!0});break;case" ":case"Enter":if(e.preventDefault(),this.props.options.length>1)if(this.state.ariaExpanded){const e=this.props.options[this.state.optionFocusIndex];this.props.handleChange(e.value,e.text),this.setState({touched:!0,ariaExpanded:!1})}else this.setState({touched:!0,ariaExpanded:!0});break;case"Escape":e.preventDefault(),this.props.options.length>1&&this.setState({touched:!0,ariaExpanded:!1})}},this.handleFocusOption=e=>{this.setState({optionFocusIndex:e})},this.markAsError=()=>{const e=this.props.errors[this.props.name];return this.props.hideValidIcon?r.I.markAsError(this.state.touched||this.props.isGloablValidation,e):r.I.markAsErrorValid(this.state.touched||this.props.isGloablValidation,e,this.props.value)},this.getOptionText=e=>{if(!e)return n.Y.form_selection_default;const t=this.props.options.find((t=>t.value===e));return t?t.text:""};const t=this.props.options.findIndex((e=>e.value===this.props.value));this.state={touched:!1,selectId:i.A.newGuid(),ariaExpanded:!1,optionFocusIndex:null!==t&&void 0!==t?t:0}}componentDidMount(){const{options:e,enableSingleOption:t,handleChange:s}=this.props;e&&t&&1===e.length&&(s(e[0].value,e[0].text),this.setState({touched:!0}))}componentDidUpdate(e){const{options:t,enableSingleOption:s,handleChange:o,value:a,shouldOpen:i}=this.props,{ariaExpanded:n}=this.state;if(t&&s&&(JSON.stringify(t)!==JSON.stringify(e.options)||s!==e.enableSingleOption)){if(1===t.length)return o(t[0].value,t[0].text),void this.setState({touched:!0});t.length>1&&!a&&i&&this.setState({ariaExpanded:!0}),0===t.length&&n&&this.setState({ariaExpanded:!1})}}render(){const e=!!this.props.options&&Array.isArray(this.props.options)&&this.props.options.length>0,t=(this.props.isGloablValidation||this.state.touched)&&this.props.errors&&this.props.errors.length>0,s=`${this.props.id||this.props.name}-error`,o=this.props.disabled||!e;return(0,l.jsxs)("div",{className:`field-group select-replace ${this.markAsError()} ${r.I.markAsRequired(this.props.name,this.props.validation)}`,"data-element":"form-element","data-no-js":"true",onBlur:this.handleBlur,children:[(0,l.jsx)("label",{htmlFor:this.state.selectId,children:this.props.label}),(0,l.jsx)("div",{className:"field-group__container field-group__container--has-inner",children:(0,l.jsxs)("label",{className:"form-control__container",children:[(0,l.jsxs)("select",{id:this.props.id||this.state.selectId,ref:this.selectRef,"aria-describedby":t?s:void 0,name:this.props.name,className:"form-control__field",disabled:o,spellCheck:!1,onFocus:this.handleFocus,onChange:this.handleSelect,placeholder:this.props.value,onKeyDown:this.handleKeyPressed,defaultValue:"-1","aria-required":r.I.isRequired(this.props.name,this.props.validation),...e?{"aria-controls":`${this.props.name}_custom-options`,...-1===this.state.optionFocusIndex?{}:{"aria-activedescendant":`${this.props.name}_option-item-${this.state.optionFocusIndex}`}}:{},...e&&this.state.ariaExpanded?{"aria-expanded":!0}:{},children:[(0,l.jsx)("option",{disabled:!0,value:"-1",children:n.Y.form_selection_default}),e&&this.props.options.map(((e,t)=>(0,l.jsx)("option",{value:e.value,onMouseDown:()=>this.handleChange(t,e),onTouchStart:()=>this.handleChange(t,e),children:e.text},t)))]}),(0,l.jsx)("div",{id:`${this.state.selectId}-value`,className:"select-replace-container form-control__field","data-value":this.props.value,placeholder:this.props.value,onMouseDown:this.toggleList,onTouchStart:this.toggleList,children:this.getOptionText(this.props.value)}),e&&(0,l.jsx)("div",{className:"custom-options",id:`${this.props.name}_custom-options`,children:(0,l.jsx)("div",{className:"custom-options-wrapper",style:h,children:this.props.options.map(((e,t)=>(0,l.jsx)(d,{name:this.props.name,option:e,index:t,onClick:this.handleChange,focused:t===this.state.optionFocusIndex,onFocus:()=>this.handleFocusOption(t),children:e.text},t)))})}),(0,l.jsx)("div",{role:"button",className:"form-control__btns",onMouseDown:this.toggleList,onTouchStart:this.toggleList,"aria-label":this.state.ariaExpanded?"Dropdown schließen":"Dropdown öffnen",children:e&&this.props.options.length>1&&(0,l.jsx)("div",{"aria-controls":this.props.id||this.state.selectId,className:"trigger select-trigger",children:(0,l.jsx)("span",{className:"icon icon-dropdown","aria-hidden":"true","aria-label":this.state.ariaExpanded?"Dropdown schließen":"Dropdown öffnen"})})})]})}),this.props.errors&&!this.props.borderErrorOnly&&(this.state.touched||this.props.isGloablValidation)&&(0,l.jsx)(a.A,{error:this.props.errors[this.props.name],show:this.showError(this.props.errors[this.props.name]),errorId:s})]})}}},61517:(e,t,s)=>{s.d(t,{h:()=>n});var o=s(96540),a=s(22975),i=s(74848);const n=e=>((0,o.useEffect)((()=>{(0,a.F)(e.formId,"form-v2"),(0,a.Y)(e.formId)}),[]),(0,i.jsx)("div",{"data-tpl":"form-v2","data-module":"form-v2","data-module-config":"",children:(0,i.jsx)("form",{id:e.formId,className:e.className,name:e.formId,children:e.children})}))},64757:(e,t,s)=>{s.d(t,{A:()=>c});var o=s(96540),a=s(99879),i=s(65048),n=s(77007),r=s(53547),l=s(74848);let d={monthsFull:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],weekdaysFull:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],weekdaysShort:["So","Mo","Di","Mi","Do","Fr","Sa"],today:"Heute",labelMonthNext:"Nächster Monat",labelMonthPrev:"Vorheriger Monat",labelMonthSelect:"Monat auswählen",labelYearSelect:"Jahr auswählen",format:"dd.mm.yyyy",formatSubmit:"dd.mm.yyyy",hiddenPrefix:!1,hiddenSuffix:!1,hiddenName:"{{HIDDEN_INPUT_NAME}}",firstDay:1,editable:!0};const h=a.A.newGuid(),c=e=>{const[t,s]=(0,o.useState)(!1),a=(0,o.useRef)(null),c=e=>{const t=e.split(/[\.\-\/]/);return`${t[2]}-${t[1]}-${t[0]}`},p=e=>{const t=(e=>{const t=e.split(/[\.\-\/]/),s=parseInt(t[2],10),o=parseInt(t[1],10),a=parseInt(t[0],10);return new Date(s,o-1,a,0,0,0,0)})(e);return[t.getFullYear(),t.getMonth(),t.getDate()]};return(()=>{let t=d;const s={selectYears:e.selectYears?e.selectYears:100};t={...d,...s},e.min&&(t={...t,min:p(e.min)}),e.max&&(t={...t,max:p(e.max)}),d=t})(),(0,o.useEffect)((()=>{e.globalValidation||s(e.globalValidation)}),[e.globalValidation]),(0,l.jsxs)("div",{className:`field-group datepicker ${r.I.markAsError(e.globalValidation||t,e.errors)}`,"data-element":"form-element","data-element-config":JSON.stringify({datePicker:d}),ref:a,children:[(0,l.jsx)("label",{htmlFor:h+e.name,className:r.I.markAsRequired(e.name,e.validation),children:e.label}),(0,l.jsxs)("div",{className:"field-group__container field-group__container--has-inner",children:[(0,l.jsxs)("label",{className:"form-control__c
1ontainer",children:[(0,l.jsx)("input",{id:h+e.name,name:e.name,type:"date",className:"form-control__field",placeholder:e.placeholder,autoCorrect:"off",spellCheck:!1,value:e.value||"","data-date":e.value||"TT.MM.JJJJ","data-value":e.value,onChange:()=>{},onInput:t=>{s(!0),e.handleChange(t)},maxLength:10,min:e.min?c(e.min):"",max:e.max?c(e.max):"",disabled:e.disabled,onBlur:t=>{s(!0),e.handleBlur&&e.handleBlur(t)},"aria-required":r.I.isRequired(e.name,e.validation)}),(0,l.jsx)("span",{className:"datevalueinput",children:e.value}),(0,l.jsx)("div",{className:"form-control__btns",children:(0,l.jsx)("button",{type:"button","aria-controls":h+e.name,className:"trigger datepicker-trigger",children:(0,l.jsx)("div",{className:"icon icon-calendar"})})})]}),e.tooltipDescription&&(0,l.jsx)(n.A,{className:(()=>{let t="field-group__btns--outer ";return e.shouldTooltipPositionedOnBottom&&(t+="tooltip--bottom "),e.shouldTooltipPositionedOnRight&&(t+="tooltip--right "),t})(),content:e.tooltipDescription})]}),(0,l.jsx)(i.A,{error:e.errors,show:e.globalValidation||t})]})}},75231:(e,t,s)=>{let o;s.d(t,{d:()=>o}),function(e){e.CTA_1="color-cta-1",e.CTA_2="color-cta-2",e.CTA_3="color-cta-3",e.CTA_4="color-cta-4",e.CTA_15="color-cta-15",e.CTA_17="color-cta-17",e.CTA_21="color-cta-21"}(o||(o={}))},79987:(e,t,s)=>{let o;s.d(t,{j:()=>o}),function(e){e[e.Start=0]="Start",e[e.Success=1]="Success",e[e.Locked=2]="Locked",e[e.NotValid=3]="NotValid",e[e.Error=4]="Error",e[e.NotFound=5]="NotFound"}(o||(o={}))},93451:(e,t,s)=>{s.d(t,{O:()=>l});var o=s(96540),a=s(65048),i=s(53547),n=s(77007),r=s(74848);const l=e=>{const[t,s]=o.useState(!1);return(0,r.jsxs)("div",{className:`field-group ${e.className} ${i.I.markAsError(e.globalValidation||t,e.errors)} `,children:[(0,r.jsx)("label",{htmlFor:e.id||e.name,className:e.label&&i.I.markAsRequired(e.name,e.validation),children:e.label}),(0,r.jsxs)("div",{className:"field-group__container field-group__container--has-inner",children:[(0,r.jsxs)("div",{className:"form-control__container",children:[(0,r.jsx)("input",{id:e.id||e.name,name:e.name,type:"text",className:"form-control__field",placeholder:e.label?e.placeholder:`${e.placeholder} ${i.I.isRequired(e.name,e.validation)&&"*"}`,value:e.value,onChange:t=>{s(!0),e.handleChange(t)},autoComplete:"off",onBlur:t=>{s(!0),e.handleBlur&&e.handleBlur(t)},maxLength:e.maxLength,disabled:e.disabled,onKeyDown:t=>{s(!0),e.onKeyPress&&e.onKeyPress(t)},"aria-required":i.I.isRequired(e.name,e.validation)}),(0,r.jsx)("div",{className:"form-control__btns",children:e.innerSuffix&&(0,r.jsx)("div",{className:"no-button plain-text form-control__inner-suffix",children:e.innerSuffix})})]}),(0,r.jsx)("div",{className:"field-group__btns field-group__btns--outer",children:(0,r.jsx)(n.A,{content:e.tooltipDescription,className:"tooltip--left tooltip--bottom"})})]}),!!e.validation&&!e.borderErrorOnly&&(0,r.jsx)(a.A,{error:e.errors,show:e.globalValidation||t})]})}},94569:(e,t,s)=>{s.d(t,{A:()=>l,u:()=>r});var o=s(96540),a=s(46123),i=s(77282);const n=function(e){const[t,s]=(0,o.useReducer)(((e,t)=>({...e,...t})),{validation:void 0,isError:!1,isLoading:!0});return(0,o.useEffect)((()=>{e&&async function(){const t=await i.T.validationServerAsync(e);200===(null===t||void 0===t?void 0:t.status)?s({validation:t.data,isError:!1,isLoading:!1}):s({validation:void 0,isError:!0,isLoading:!1})}()}),[e]),{validation:t.validation,setValidation:e=>s({validation:e}),isLoading:t.isLoading,isError:t.isError}};function r(e,t){const[s,i]=(0,o.useState)({}),[r,l]=(0,o.useState)(!1),{validation:d,setValidation:h,isError:c,isLoading:p}=n(e),u=()=>{const e={};let s=!0;if(!d)return setTimeout((()=>u()),500),!1;if(!t)return!1;for(const o of Object.keys(d))e[o]=a.v.validateProperty(t[o],o,d),s=s&&0===e[o].length;return i(e),s};return(0,o.useEffect)((()=>{t&&d&&u()}),[t]),{errors:s,validation:d,isGlobalValidation:r,isErrorGetValidation:c,isLoadingGetValidation:p,triggerValidation:function(){return l(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]),u()},addValidationProperty:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"required",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Pflichtfeld",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";h(a.v.addValidation(d,e,t,o,s)),u()},removeValidationProperty:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"required",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Pflichtfeld",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";h(a.v.removeValidation(d,e,t,o,s)),u()},isFieldClean:e=>{var t;return 0===(null===(t=s[e])||void 0===t?void 0:t.length)}}}const l=(e,t)=>
1{const{errors:s,validation:o,isGlobalValidation:a,triggerValidation:i,addValidationProperty:n,removeValidationProperty:l,isFieldClean:d}=r(e,t);return[s,o,a,i,n,l,d]}},96904:(e,t,s)=>{s.d(t,{A:()=>l});var o=s(96540),a=s(65048),i=s(77007),n=s(53547),r=s(74848);class l extends o.Component{constructor(e){super(e),this.handleChange=e=>{this.setState({touched:!0}),e.target.name=this.props.name,this.props.handleChange(e)},this.state={touched:!1},this.handleChange=this.handleChange.bind(this)}render(){var e;const{split:t,options:s,label:o,validation:l,globalValidation:d,errors:h}=this.props,c=(this.props.globalValidation||this.state.touched)&&this.props.errors&&this.props.errors.length>0,p=this.props.id||this.props.name,u=`${p}-error`,m=t?{width:100/(null!==(e=null===s||void 0===s?void 0:s.length)&&void 0!==e?e:1)+"%"}:void 0;return(0,r.jsxs)("div",{className:"radio-container",children:[(0,r.jsxs)("fieldset",{className:"field-group "+(this.props.marginStyles?"radio-group--margin":""),role:"radiogroup",children:[o&&(0,r.jsx)("legend",{className:`${n.I.markAsRequired(p,l)} ${this.props.tooltipDescription?"legendWithTooltip":""}`,children:o}),this.props.tooltipDescription&&(0,r.jsx)(i.A,{content:this.props.tooltipDescription,className:"tooltip--left tooltip--bottom"}),(0,r.jsx)("div",{id:p,className:"radio-group "+(!0===this.props.displayHorizontal?"":"radio-group--inline"),"aria-describedby":c?u:void 0,children:null===s||void 0===s?void 0:s.map((e=>{const t=`${p}-${e.value}`;return(0,r.jsxs)("div",{className:`radio ${n.I.markAsError(d||this.state.touched,h)}`,style:m,children:[(0,r.jsx)("input",{id:t,name:this.props.name,value:e.value,type:"radio",checked:this.props.value===e.value,onChange:this.handleChange,disabled:this.props.disabled}),(0,r.jsx)("label",{htmlFor:t,className:"icon",children:void 0!==e.text?e.text:e.value}),e.info&&(0,r.jsx)(i.A,{content:e.info,className:"tooltip--bottom  tooltip--right"})]},t)}))})]}),(0,r.jsx)(a.A,{errorId:u,error:h,show:d||this.state.touched})]})}}}}]);

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.