PageSourceSearch

https://fuenfeinhalb.de/_app/immutable/chunks/D66UDtUw.js

js fuenfeinhalb.de collected 2026-10-08 05:59:30 UTC 3,372 bytes, 5 lines download raw bytes

1import{y as h,T as $,aC as q,aD as k,aE as _}from"./lZnVDAjw.js";import{_ as v,a as E,b as T}from"./xKSSolmh.js";import{f as p}from"./CEzY3m30.js";import{b as g,s as j,d as y,g as D}from"./DjwCnQFv.js";import{a as f}from"./Cxq5FRqZ.js";function N(e,t,r=t){var a=e==="x",o=()=>k(()=>{i=!0,clearTimeout(n),n=setTimeout(l,100),r(window[a?"scrollX":"scrollY"])});addEventListener("scroll",o,{passive:!0});var i=!1,n,l=()=>{i=!1},u=!0;h(()=>{var c=t();u?u=!1:!i&&c!=null&&(i=!0,clearTimeout(n),scrollTo(window.scrollX,c),n=setTimeout(l,100))}),$(o),q(()=>{removeEventListener("scroll",o)})}const d=[{id:"name_first",type:"input",value:"",is_valid:!0,wrapper_classes:"col-md-6 mb-3",required:!0},{id:"name_last",type:"input",value:"",is_valid:!0,wrapper_classes:"col-md-6 mb-3",required:!0},{id:"company",type:"input",value:"",is_valid:!0,wrapper_classes:"col-md-12 mb-3",required:!1},{id:"email",type:"input",value:"",is_valid:!0,wrapper_classes:"col-md-6 mb-3",required:!0},{id:"phone",type:"input",value:"",is_valid:!0,wrapper_classes:"col-md-6 mb-3",required:!0},{id:"subject",type:"input",value:"",is_valid:!0,wrapper_classes:"col-12 mb-3",required:!1},{id:"message",type:"textarea",value:"",is_valid:!0,wrapper_classes:"col-12 mb-4",required:!0}],m={name_first:function(e){return typeof e=="string"&&e!==""},name_last:function(e){return typeof e=="string"&&e!==""},company:function(){return!0},email:function(e){return typeof e=="string"&&new RegExp(`^([!#-'*+/-9=?A-Z^-~-]+(\\.[!#-'*+/-9=?A-Z^-~-]+)*|"([]!#-[^-~ 	]|(\\[	 -~]))+")@([!#-'*+/-9=?A-Z^-~-]+(\\.[!#-'*+/-9=?A-Z^-~-]+)*|[[	 -Z^-~]*])$`).test(e)},phone:function(e){return typeof e=="string"&&(e===""||/^[0-9\s\(\)\+]*$/.test(e))},subject:function(){return!0},message:function(e){return typeof e=="string"&&e!==""}};function Z(e){const t=v.cloneDeep(d);for(const r of t){const a=e.findIndex(o=>o.id===r.id);a!==-1&&(r.value=e[a].value)}return t}function O(e){for(let t=0;t<e.length;t++)e[t].is_valid=m[e[t].id](e[t].value);return e}function R(e){for(let t=0;t<e.length;t++)if(!m[e[t].id](e[t].value))return!1;return!0}function X(e,t=null){const r=e.reduce((a,o)=>({...a,[o.id]:o.value}),{});if(t){const a=t.map(o=>E(o)).map(o=>(console.log(o),o)).map(({quantity:o,collection:i,product:n,unit_price:l})=>{const u=_(f)(n?.[0]?.selected_option?.name_key,{locale:"de"});let c=`• ${o}x ${[i,u].join(" ")} (Stückpreis: ${p(l,"DE")})`;const w=n.slice(1);for(const s of w){const b="category_key"in s?_(f)(s.category_key,{locale:"de"}):s.category,x="name_key"in s.selected_option?_(f)(s.selected_option.name_key,{locale:"de"}):s.selected_option.name_key;c+=`
2  - ${b}: ${x}`}return c}).join(`
3`)+`
4--------------------
5Gesamtvolumen: `+p(T(t),"DE");r.cart=a}return r}async function G(){let e=v.cloneDeep(d),t=D("contact-form");if(t)try{t=JSON.parse(t),e=Z(t)}catch(r){console.error("Could not parse cart from local_storage",r)}for(const r of e){const a=d.findIndex(o=>o.id===r.id);if(a===-1)throw new Error(`Row with id ${r.id} not found in contact_form_blueprint. This should never happen because the contact form was validated above.`);r.value!==d[a].value&&(r.is_valid=m[r.id](r.value))}g.update(()=>e),y.update(()=>!0)}g.subscribe(e=>{_(y)&&A(e)});function A(e){const t=e.map(r=>({id:r.id,value:r.value}));j({name:"contact-form",value:JSON.stringify(t),days:14})}export{X as a,N as b,m as c,O as e,R as i,G as s};

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.