PageSourceSearch

https://www.opel-hbl.de/_nuxt/zOyoa-57.js

js opel-hbl.de collected 2026-09-24 17:49:32 UTC 25,815 bytes, 1 lines download raw bytes

1import{ab as de,bM as Oe,bP as ie,c2 as Xe,c6 as Q,bQ as ve,b7 as fe,aH as Ye,aT as Ee,ce as Be,N as o,F as M,aP as Ze,aM as q,a4 as et,V as tt,L as Le,bn as se,x as S,be as D,t as lt,aO as re,aK as Ue,I as at,a6 as De,q as He,am as qe,aA as nt,ai as ut,a as ze,b as ot,c7 as st,a_ as it,aW as rt,z as ct,u as dt,ca as Ae,bk as vt,c4 as ft,U as mt,bO as pt,R as ht,b4 as A,G as ue,A as oe,bq as ke,D as H,c9 as be,bh as Pe,bu as W,B as E,aQ as J,c5 as yt,bc as gt,bS as bt,aN as Vt,br as Ie,o as kt}from"#entry";import{t as xt,s as St,l as Ct,h as xe,i as wt,V as Pt,v as It,u as Ge,p as je,q as _e,c as ce,k as Ke,a as Fe,b as We,j as At,m as Rt,r as Bt,f as Re,n as Dt,d as _t,g as Ut}from"./kFKjVrvE.js";import{f as Se,a as qt}from"./vjKzsfXz.js";import{V as Me}from"./DAuFPD67.js";import{u as zt,m as Mt}from"./Bm7VAWwz.js";import{a as Tt,c as Te,u as $t}from"./DeCF7aD-.js";import{V as $e}from"./D4rdR3ow.js";import{V as Nt}from"./BBLHN1Om.js";import{V as Qe}from"./BJFi5Tas.js";import{a as Ot,V as Ne}from"./yP5dz7Av.js";import{V as Et,b as Lt}from"./BwvLyI3M.js";import"./BqHq6rrA.js";import"./CrZYEssZ.js";import"./DT94rSX7.js";/* empty css        */import"./C1V44roZ.js";import"./CFAH_lGB.js";function Ht(e,V,f){if(V==null)return e;if(Array.isArray(V))throw new Error("Multiple matches is not implemented");return typeof V=="number"&&~V?o(M,null,[o("span",{class:"v-autocomplete__unmask"},[e.substr(0,V)]),o("span",{class:"v-autocomplete__mask"},[e.substr(V,f)]),o("span",{class:"v-autocomplete__unmask"},[e.substr(V+f)])]):e}const Gt=fe({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...Mt({filterKeys:["title"]}),...Ct(),...Ee(St({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Ye({transition:!1})},"VAutocomplete"),jt=de()({name:"VAutocomplete",props:Gt(),emits:{"update:focused":e=>!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,V){let{slots:f}=V;const{t:w}=Oe(),u=D(),m=se(!1),s=se(!0),R=se(!1),_=D(),P=D(),g=ie(e,"menu"),y=S({get:()=>g.value,set:n=>{g.value&&!n&&_.value?.ΨopenChildren.size||(g.value=n)}}),p=se(-1),U=S(()=>u.value?.color),G=S(()=>y.value?e.closeText:e.openText),{items:z,transformIn:F,transformOut:B}=$t(e),{textColorClasses:Y,textColorStyles:X}=Xe(U),k=ie(e,"search",""),r=ie(e,"modelValue",[],n=>F(n===null?[null]:Be(n)),n=>{const C=B(n);return e.multiple?C:C[0]??null}),L=S(()=>typeof e.counterValue=="function"?e.counterValue(r.value):typeof e.counterValue=="number"?e.counterValue:r.value.length),j=xt(),{filteredItems:T,getMatches:c}=zt(e,z,()=>s.value?"":k.value),x=S(()=>e.hideSelected?T.value.filter(n=>!r.value.some(C=>C.value===n.value)):T.value),h=S(()=>!!(e.chips||f.chip)),l=S(()=>h.value||!!f.selection),i=S(()=>r.value.map(n=>n.props.value)),t=S(()=>(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&k.value===x.value[0]?.title)&&x.value.length>0&&!s.value&&!R.value),a=S(()=>e.hideNoData&&!x.value.length||e.readonly||j?.isReadonly.value),v=D(),Z=It(v,u);function $(n){e.openOnClear&&(y.value=!0),k.value=""}function le(){a.value||(y.value=!0)}function ee(n){a.value||(m.value&&(n.preventDefault(),n.stopPropagation()),y.value=!y.value)}function ae(n){lt(n)&&u.value?.focus()}function me(n){if(e.readonly||j?.isReadonly.value)return;const C=u.value.selectionStart,I=r.value.length;if((p.value>-1||["Enter","ArrowDown","ArrowUp"].includes(n.key))&&n.preventDefault(),["Enter","ArrowDown"].includes(n.key)&&(y.value=!0),["Escape"].includes(n.key)&&(y.value=!1),t.value&&["Enter","Tab"].includes(n.key)&&!r.value.some(d=>{let{value:b}=d;return b===x.value[0].value})&&te(x.value[0]),n.key==="ArrowDown"&&t.value&&v.value?.focus("next"),["Backspace","Delete"].includes(n.key)){if(!e.multiple&&l.value&&r.value.length>0&&!k.value)return te(r.value[0],!1);if(~p.value){const d=p.value;te(r.value[p.value],!1),p.value=d>=I-1?I-2:d}else n.key==="Backspace"&&!k.value&&(p.value=I-1)}if(e.multiple){if(n.key==="ArrowLeft"){if(p.value<0&&C>0)return;const d=p.value>-1?p.value-1:I-1;r.value[d]?p.value=d:(p.value=-1,u.value.setSelectionRange(k.value?.length,k.value?.length))}if(n.key==="ArrowRight"){if(p.value<0)return;const d=p.value+1;r.value[d]?p.value=d:(p.value=-1,u.value.setSelectionRange(0,0))}}}function pe(n){if(Ue(u.value,":autofill")||Ue(u.value,":-webkit-autofill")){const C=z.value.find(I=>I.title===n.target.value);C&&te(C)}}function he(){e.eager&&P.value?.calculateVisibleItems()}function N(){m.value&&(s.value=!0,u.value?.focus())}function ne(n){m.value=!0,setTimeout(()=>{R.value=!0})}function Ce(n){R.value=!1}function Je(n){(n==null||n===""&&!e.multiple&&!l.value)&&(r.value=[])}const we=se(!1);function te(n){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!n||n.props.disabled))if(e.multiple){const I=r.value.findIndex(b=>e.valueComparator(b.value,n.value)),d=C??!~I;if(~I){const b=d?[...r.value,n]:[...r.value];b.splice(I,1),r.value=b}else d&&(r.value=[...r.value,n]);e.clearOnSelect&&(k.value="")}else{const I=C!==!1;r.value=I?[n]:[],k.value=I&&!l.value?n.title:"",re(()=>{y.value=!1,s.value=!0})}}
1return Q(m,(n,C)=>{n!==C&&(n?(we.value=!0,k.value=e.multiple||l.value?"":String(r.value.at(-1)?.props.title??""),s.value=!0,re(()=>we.value=!1)):(!e.multiple&&k.value==null&&(r.value=[]),y.value=!1,r.value.some(I=>{let{title:d}=I;return d===k.value})||(k.value=""),p.value=-1))}),Q(k,n=>{!m.value||we.value||(n&&(y.value=!0),s.value=!n)}),Q(y,()=>{if(!e.hideSelected&&y.value&&r.value.length){const n=x.value.findIndex(C=>r.value.some(I=>C.value===I.value));at&&window.requestAnimationFrame(()=>{n>=0&&P.value?.scrollToIndex(n)})}}),Q(()=>e.items,(n,C)=>{y.value||m.value&&!C.length&&n.length&&(y.value=!0)}),ve(()=>{const n=!!(!e.hideNoData||x.value.length||f["prepend-item"]||f["append-item"]||f["no-data"]),C=r.value.length>0,I=xe.filterProps(e);return o(xe,q({ref:u},I,{modelValue:k.value,"onUpdate:modelValue":[d=>k.value=d,Je],focused:m.value,"onUpdate:focused":d=>m.value=d,validationValue:r.externalValue,counterValue:L.value,dirty:C,onChange:pe,class:["v-autocomplete",`v-autocomplete--${e.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":y.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!l.value,"v-autocomplete--selecting-index":p.value>-1},e.class],style:e.style,readonly:e.readonly,placeholder:C?void 0:e.placeholder,"onClick:clear":$,"onMousedown:control":le,onKeydown:me}),{...f,default:()=>o(M,null,[o(qt,q({ref:_,modelValue:y.value,"onUpdate:modelValue":d=>y.value=d,activator:"parent",contentClass:"v-autocomplete__content",disabled:a.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:he,onAfterLeave:N},e.menuProps),{default:()=>[n&&o(Tt,q({ref:v,selected:i.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:d=>d.preventDefault(),onKeydown:ae,onFocusin:ne,onFocusout:Ce,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},Z,e.listProps),{default:()=>[f["prepend-item"]?.(),!x.value.length&&!e.hideNoData&&(f["no-data"]?.()??o(Te,{title:w(e.noDataText)},null)),o(wt,{ref:P,renderless:!0,items:x.value},{default:d=>{let{item:b,index:K,itemRef:Ve}=d;const ye=q(b.props,{ref:Ve,key:K,active:t.value&&K===0?!0:void 0,onClick:()=>te(b,null)});return f.item?.({item:b,index:K,props:ye})??o(Te,q(ye,{role:"option"}),{prepend:ge=>{let{isSelected:O}=ge;return o(M,null,[e.multiple&&!e.hideSelected?o(Pt,{key:b.value,modelValue:O,ripple:!1,tabindex:"-1"},null):void 0,b.props.prependAvatar&&o(Nt,{image:b.props.prependAvatar},null),b.props.prependIcon&&o($e,{icon:b.props.prependIcon},null)])},title:()=>s.value?b.title:Ht(b.title,c(b)?.title,k.value?.length??0)})}}),f["append-item"]?.()]})]}),r.value.map((d,b)=>{function K(O){O.stopPropagation(),O.preventDefault(),te(d,!1)}const Ve={"onClick:close":K,onKeydown(O){O.key!=="Enter"&&O.key!==" "||(O.preventDefault(),O.stopPropagation(),K(O))},onMousedown(O){O.preventDefault(),O.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ye=h.value?!!f.chip:!!f.selection,ge=ye?et(h.value?f.chip({item:d,index:b,props:Ve}):f.selection({item:d,index:b})):void 0;if(!(ye&&!ge))return o("div",{key:d.value,class:["v-autocomplete__selection",b===p.value&&["v-autocomplete__selection--selected",Y.value]],style:b===p.value?X.value:{}},[h.value?f.chip?o(tt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:d.title}}},{default:()=>[ge]}):o(Qe,q({key:"chip",closable:e.closableChips,size:"small",text:d.title,disabled:d.props.disabled},Ve),null):ge??o("span",{class:"v-autocomplete__selection-text"},[d.title,e.multiple&&b<r.value.length-1&&o("span",{class:"v-autocomplete__selection-comma"},[Le(",")])])])})]),"append-inner":function(){for(var d=arguments.length,b=new Array(d),K=0;K<d;K++)b[K]=arguments[K];return o(M,null,[f["append-inner"]?.(...b),e.menuIcon?o($e,{class:"v-autocomplete__menu-icon",icon:e.menuIcon,onMousedown:ee,onClick:Ze,"aria-label":w(G.value),title:w(G.value),tabindex:"-1"},null):void 0])}})}),Se({isFocused:m,isPristine:s,menu:y,search:k,filteredItems:T,select:te},u)}}),Kt=fe({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(Number(e))}
1,..._e({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>Be(e).every(V=>V!=null&&typeof V=="object")},...je({clearable:!0})},"VFileInput"),Ft=de()({name:"VFileInput",inheritAttrs:!1,props:Kt(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,V){let{attrs:f,emit:w,slots:u}=V;const{t:m}=Oe(),s=ie(e,"modelValue",e.modelValue,c=>Be(c),c=>!e.multiple&&Array.isArray(c)?c[0]:c),{isFocused:R,focus:_,blur:P}=Ge(e),g=S(()=>typeof e.showSize!="boolean"?e.showSize:void 0),y=S(()=>(s.value??[]).reduce((c,x)=>{let{size:h=0}=x;return c+h},0)),p=S(()=>qe(y.value,g.value)),U=S(()=>(s.value??[]).map(c=>{const{name:x="",size:h=0}=c;return e.showSize?`${x} (${qe(h,g.value)})`:x})),G=S(()=>{const c=s.value?.length??0;return e.showSize?m(e.counterSizeString,c,p.value):m(e.counterString,c)}),z=D(),F=D(),B=D(),Y=S(()=>R.value||e.active),X=S(()=>["plain","underlined"].includes(e.variant));function k(){B.value!==document.activeElement&&B.value?.focus(),R.value||_()}function r(c){B.value?.click()}function L(c){w("mousedown:control",c)}function j(c){B.value?.click(),w("click:control",c)}function T(c){c.stopPropagation(),k(),re(()=>{s.value=[],He(e["onClick:clear"],c)})}return Q(s,c=>{(!Array.isArray(c)||!c.length)&&B.value&&(B.value.value="")}
vendor: 4,246 bytes, line 1
1),ve(()=>{const c=!!(u.counter||e.counter),x=!!(c||u.details),[h,l]=De(f),{modelValue:i,...t}=ce.filterProps(e),a=Ke(e);return o(ce,q({ref:z,modelValue:s.value,"onUpdate:modelValue":v=>s.value=v,class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":X.value},e.class],style:e.style,"onClick:prepend":r},h,t,{centerAffix:!X.value,focused:R.value}),{...u,default:v=>{let{id:Z,isDisabled:$,isDirty:le,isReadonly:ee,isValid:ae}=v;return o(We,q({ref:F,"prepend-icon":e.prependIcon,onMousedown:L,onClick:j,"onClick:clear":T,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},a,{id:Z.value,active:Y.value||le.value,dirty:le.value||e.dirty,disabled:$.value,focused:R.value,error:ae.value===!1}),{...u,default:me=>{let{props:{class:pe,...he}}=me;return o(M,null,[o("input",q({ref:B,type:"file",readonly:ee.value,disabled:$.value,multiple:e.multiple,name:e.name,onClick:N=>{N.stopPropagation(),ee.value&&N.preventDefault(),k()},onChange:N=>{if(!N.target)return;const ne=N.target;s.value=[...ne.files??[]]},onFocus:k,onBlur:P},he,l),null),o("div",{class:pe},[!!s.value?.length&&!e.hideInput&&(u.selection?u.selection({fileNames:U.value,totalBytes:y.value,totalBytesReadable:p.value}):e.chips?U.value.map(N=>o(Qe,{key:N,size:"small",text:N},null)):U.value.join(", "))])])}})},details:x?v=>o(M,null,[u.details?.(v),c&&o(M,null,[o("span",null,null),o(Fe,{active:!!s.value?.length,value:G.value,disabled:e.disabled},u.counter)])]):void 0})}),Se({},z,F,B)}}),Wt=fe({...nt(),...Rt()},"VForm"),Qt=de()({name:"VForm",props:Wt(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,V){let{slots:f,emit:w}=V;const u=At(e),m=D();function s(_){_.preventDefault(),u.reset()}function R(_){const P=_,g=u.validate();P.then=g.then.bind(g),P.catch=g.catch.bind(g),P.finally=g.finally.bind(g),w("submit",P),P.defaultPrevented||g.then(y=>{let{valid:p}=y;p&&m.value?.submit()}),P.preventDefault()}return ve(()=>o("form",{ref:m,class:["v-form",e.class],style:e.style,novalidate:!0,onReset:s,onSubmit:R},[f.default?.(u)])),Se(u,m)}}),Jt=fe({...Bt({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),Xt=de()({name:"VRadio",props:Jt(),setup(e,V){let{slots:f}=V;return ve(()=>{const w=Re.filterProps(e);return o(Re,q(w,{class:["v-radio",e.class],style:e.style,type:"radio"}),f)}),{}}}),Yt=fe({height:{type:[Number,String],default:"auto"},..._e(),...Ee(Dt(),["multiple"]),trueIcon:{type:ze,default:"$radioOn"},falseIcon:{type:ze,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),Zt=de()({name:"VRadioGroup",inheritAttrs:!1,props:Yt(),emits:{"update:modelValue":e=>!0},setup(e,V){let{attrs:f,slots:w}=V;const u=ut(),m=S(()=>e.id||`radio-group-${u}`),s=ie(e,"modelValue");return ve(()=>{const[R,_]=De(f),P=ce.filterProps(e),g=Re.filterProps(e),y=w.label?w.label({label:e.label,props:{for:m.value}}):e.label;return o(ce,q({class:["v-radio-group",e.class],style:e.style},R,P,{modelValue:s.value,"onUpdate:modelValue":p=>s.value=p,id:m.value}),{...w,default:p=>{let{id:U,messagesId:G,isDisabled:z,isReadonly:F}=p;return o(M,null,[y&&o(_t,{id:U.value},{default:()=>[y]}),o(Ut,q(g,{id:U.value,"aria-describedby":G.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:z.value,readonly:F.value,"aria-labelledby":y?U.value:void 0,multiple:!1},_,{modelValue:s.value,"onUpdate:modelValue":B=>s.value=B}),w)])}})}),{}}}),el=fe({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,..._e(),...je()},"VTextarea"),tl=de()({name:"VTextarea",directives:{Intersect:ot},inheritAttrs:!1,props:el(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,V){let{attrs:f,emit:w,slots:u}=V;const m=ie(e,"modelValue"),{isFocused:s,focus:R,blur:_}=Ge(e),P=S(()=>typeof e.counterValue=="function"?e.counterValue(m.value):(m.value||"").toString().length),g=S(()=>
1{if(f.maxlength)return f.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter});function y(h,l){!e.autofocus||!h||l[0].target?.focus?.()}const p=D(),U=D(),G=se(""),z=D(),F=S(()=>e.persistentPlaceholder||s.value||e.active);function B(){z.value!==document.activeElement&&z.value?.focus(),s.value||R()}function Y(h){B(),w("click:control",h)}function X(h){w("mousedown:control",h)}function k(h){h.stopPropagation(),B(),re(()=>{m.value="",He(e["onClick:clear"],h)})}function r(h){const l=h.target;if(m.value=l.value,e.modelModifiers?.trim){const i=[l.selectionStart,l.selectionEnd];re(()=>{l.selectionStart=i[0],l.selectionEnd=i[1]})}}const L=D(),j=D(+e.rows),T=S(()=>["plain","underlined"].includes(e.variant));st(()=>{e.autoGrow||(j.value=+e.rows)});function c(){e.autoGrow&&re(()=>{if(!L.value||!U.value)return;const h=getComputedStyle(L.value),l=getComputedStyle(U.value.$el),i=parseFloat(h.getPropertyValue("--v-field-padding-top"))+parseFloat(h.getPropertyValue("--v-input-padding-top"))+parseFloat(h.getPropertyValue("--v-field-padding-bottom")),t=L.value.scrollHeight,a=parseFloat(h.lineHeight),v=Math.max(parseFloat(e.rows)*a+i,parseFloat(l.getPropertyValue("--v-input-control-height"))),Z=parseFloat(e.maxRows)*a+i||1/0,$=dt(t??0,v,Z);j.value=Math.floor(($-i)/a),G.value=ct($)})}it(c),Q(m,c),Q(()=>e.rows,c),Q(()=>e.maxRows,c),Q(()=>e.density,c);let x;return Q(L,h=>{h?(x=new ResizeObserver(c),x.observe(L.value)):x?.disconnect()}),rt(()=>{x?.disconnect()}),ve(()=>{const h=!!(u.counter||e.counter||e.counterValue),l=!!(h||u.details),[i,t]=De(f),{modelValue:a,...v}=ce.filterProps(e),Z=Ke(e);return o(ce,q({ref:p,modelValue:m.value,"onUpdate:modelValue":$=>m.value=$,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":T.value},e.class],style:e.style},i,v,{centerAffix:j.value===1&&!T.value,focused:s.value}),{...u,default:$=>{let{id:le,isDisabled:ee,isDirty:ae,isReadonly:me,isValid:pe}=$;return o(We,q({ref:U,style:{"--v-textarea-control-height":G.value},onClick:Y,onMousedown:X,"onClick:clear":k,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},Z,{id:le.value,active:F.value||ae.value,centerAffix:j.value===1&&!T.value,dirty:ae.value||e.dirty,disabled:ee.value,focused:s.value,error:pe.value===!1}),{...u,default:he=>{let{props:{class:N,...ne}}=he;return o(M,null,[e.prefix&&o("span",{class:"v-text-field__prefix"},[e.prefix]),Ae(o("textarea",q({ref:z,class:N,value:m.value,onInput:r,autofocus:e.autofocus,readonly:me.value,disabled:ee.value,placeholder:e.placeholder,rows:e.rows,name:e.name,onFocus:B,onBlur:_},ne,t),null),[[vt("intersect"),{handler:y},null,{once:!0}]]),e.autoGrow&&Ae(o("textarea",{class:[N,"v-textarea__sizer"],id:`${ne.id}-sizer`,"onUpdate:modelValue":Ce=>m.value=Ce,ref:L,readonly:!0,"aria-hidden":"true"},null),[[ft,m.value]]),e.suffix&&o("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:l?$=>o(M,null,[u.details?.($),h&&o(M,null,[o("span",null,null),o(Fe,{active:e.persistentCounter||s.value,value:P.value,max:g.value,disabled:e.disabled},u.counter)])]):void 0})}),Se({},p,U,z)}}),ll={class:"component-element form-builder-component"},al={class:"component-wrapper"},nl={key:0,class:"list-control-panel section-headline"},ul=["innerHTML"],ol={class:"d-flex flex-column"},sl=mt({__name:"DFormBuilder",props:{pageDataBySlug:{}},setup(e){const V=e,{$i18n:f}=pt(),w=V.pageDataBySlug.fields.config,u=gt({});w.forEach(l=>{l?.hide_label&&(l.label=""),["checkbox"].includes(l.type.value)?u[l.key]=[]:["upload"].includes(l.type.value)?u[l.key]=null:u[l.key]=""});const m=D(null),s=D(!1),R=D(!1),_=D(!1),P=ht.useReCaptcha(),g=S(()=>s.value||R.value||_.value);async function y(){return await P?.recaptchaLoaded(),await P?.executeRecaptcha("form")}async function p(){s.value=!0;try{if(!m.value)return;(await m.value.validate()).valid&&(await U()?(await X(),R.value=!0):_.value=!0)}catch(l){console.error(l)}finally{s.value=!1}}async function U(){const l=await y();if(!l)return console.error("[FormBuilder] reCAPTCHA token missing"),!1;const i=Y(),t=bt();console.warn("[FormBuilder] Sending form to /api/form/submit");try{const a=await fetch("/api/form/submit",{method:"POST",body:i,headers:{token:l,"x-requester":t.host}}),v=await a.json();return console.warn("[FormBuilder] Server response:",{status:a.status,data:v}),v.success===!0}catch(a){return console.error("[FormBuilder] Request failed:",a),!1}}function G(l){if(l instanceof File)return l;if(Array.isArray(l)&&l.length){const i=Ie(l[0]);return i instanceof File?i:null}return null}function z(l,i,t){if(t!=null){if(Array.isArray(t)){for(const a of t)l.append(i,a);return}l.append(i,String(t))}}function F(l,i,t){const a=Ie(t);console.warn(`[FormBuilder] Upload field "${i}":`,{value:a,type:a?typeof a:"null/undefined",isArray:Array.isArray(a),isFile:a instanceof File,length:Array.isArray(a)?a.length:void 0});const v=G(a);if(!v){console.warn(`[FormBuilder] Skipping upload field "${i}" — no file selected or empty value`);return}console.warn(`[FormBuilder] Appending file "${i}":`,{name:v.name,size:v.size,type:v.type,isFile:v instanceof File,isBlob:v instanceof Blob}),l.append(i,v,v.name)}function B(l){console.warn("[FormBuilder] Final FormData entries:");for(const[i,t]of l.entries())t instanceof Blob?console.warn(`  ${i}: [Blob] size=${t.size}, type=${t.type}`):console.warn(`  ${i}: ${t}`)}function Y(){const l=new FormData,i=Ie(u);i.id=V.pageDataBySlug.fields.id;for(const t in i)t.includes("upload")?F(l,t,i[t]):z(l,t,i[t]);return B(l),l}async function X(){const l=V.pageDataBySlug.fields?.redirectOnSuccess?.slug;l&&await Vt(l)}function k(l){if(typeof l!="string")return!1;const i=l.trim();if(i.length===0||i.length>254)return!1;const t=i.split("@");if(t.length!==2)return!1;const a=t[0],v=t[1];return!(a===void 0||v===void 0||a.length===0||a.length>64||v.length===0||v.length>253||!v.includes(".")||v.startsWith(".")||v.endsWith(".")||/\s/.test(a)||/\s/.test(v))}function r(l){const t={email:[a=>k(a)||f.t("form.email")],checkbox:[a=>!l.required||!("options"in l)||(Array.isArray(a)?a:[]).length===l.options.length?!0:l.label+f.t("form.required")]}[l.type.value]??[];return l.required&&t.push(a=>!!a||l.label+f.t("form.required")),t}function L(l){return l.map(i=>i.value)}function j(l){return l.type.value==="paragraph"}function T(l){return"options"in l}function c(l){return l.type.value==="upload"}function x(l){return u[l]}function h(l,i){u[l]=i??null}return(l,i)=>(A(),ue("div",ll,[oe("div",al,[e.pageDataBySlug.fields.headline&&!e.pageDataBySlug.hideTitle?(A(),ue("div",nl,[oe("h3",null,ke(e.pageDataBySlug.fields.headline),1)])):H("",!0),oe("div",{innerHTML:e.pageDataBySlug.fields.text},null,8,ul),o(Qt,{ref_key:"form",ref:m,"validate-on":"input"},{default:be(()=>[(A(!0),ue(M,null,Pe(W(w),t=>(A(),ue("div",{key:t.key},[t.type.value==="text"?(A(),E(xe,{key:0,modelValue:u[t.key],"onUpdate:modelValue":a=>u[t.key]=a,type:"input",class:J(t.required?"required":""),disabled:W(g),label:t.label,placeholder:t.placeholder,readonly:s.value,rules:r(t),hint:t.hint,"persistent-hint":!!t.hint},null,8,["modelValue","onUpdate:modelValue","class","disabled","label","placeholder","readonly","rules","hint","persistent-hint"])):H("",!0),t.type.value==="email"?(A(),E(xe,{key:1,modelValue:u[t.key],"onUpdate:modelValue":a=>u[t.key]=a,type:"email",class:J(t.required?"required":""),disabled:W(g),label:t.label,placeholder:t.placeholder,readonly:s.value,rules:r(t),hint:t.hint,"persistent-hint":!!t.hint},null,8,["modelValue","onUpdate:modelValue","class","disabled","label","placeholder","readonly","rules","hint","persistent-hint"])):H("",!0),t.type.value==="textarea"?(A(),E(tl,{key:2,modelValue:u[t.key],"onUpdate:modelValue":a=>u[t.key]=a,label:t.label,class:J(t.required?"required":""),disabled:W(g),placeholder:t.placeholder,readonly:s.value,rules:r(t),hint:t.hint,"persistent-hint":!!t.hint},null,8,["modelValue","onUpdate:modelValue","label","class","disabled","placeholder","readonly","rules","hint","persistent-hint"])):H("",!0),j(t)?(A(),E(Me,{key:3,class:J(t.required?"required":"")},{default:be(()=>
1[oe("b",null,ke(t.title),1),oe("p",null,ke(t.text),1)]),_:2},1032,["class"])):H("",!0),T(t)&&t.type.value==="select"?(A(),E(jt,{key:4,ref_for:!0,ref:t.key,modelValue:u[t.key],"onUpdate:modelValue":a=>u[t.key]=a,class:J(t.required?"required":""),disabled:W(g),items:L(t.options),label:t.label,placeholder:t.placeholder,readonly:s.value,rules:r(t),hint:t.hint,"persistent-hint":!!t.hint},null,8,["modelValue","onUpdate:modelValue","class","disabled","items","label","placeholder","readonly","rules","hint","persistent-hint"])):H("",!0),T(t)&&t.type.value==="radio"?(A(),E(Zt,{key:5,modelValue:u[t.key],"onUpdate:modelValue":a=>u[t.key]=a,class:J(t.required?"required":""),disabled:W(g),label:t.type.option,readonly:s.value,rules:r(t),hint:t.hint,"persistent-hint":!!t.hint},{default:be(()=>[(A(!0),ue(M,null,Pe(t.options,a=>(A(),E(Xt,{key:a.value,label:a.value,value:a.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","class","disabled","label","readonly","rules","hint","persistent-hint"])):H("",!0),T(t)&&t.type.value==="checkbox"?(A(),E(Me,{key:6,class:J(t.required?"required":"")},{default:be(()=>[(A(!0),ue(M,null,Pe(t.options,a=>(A(),E(Ot,{key:a.value,modelValue:u[t.key],"onUpdate:modelValue":v=>u[t.key]=v,disabled:W(g),label:a.value,readonly:s.value,rules:r(t),value:a.value,class:J(t.required?"required":"")},null,8,["modelValue","onUpdate:modelValue","disabled","label","readonly","rules","value","class"]))),128))]),_:2},1032,["class"])):H("",!0),c(t)?(A(),E(Ft,{key:7,"model-value":x(t.key),accept:"image/*",class:J(t.required?"required":""),disabled:W(g),label:t.label,rules:r(t),readonly:s.value,hint:t.hint,"persistent-hint":!!t.hint,"onUpdate:modelValue":a=>h(t.key,a)},null,8,["model-value","class","disabled","label","rules","readonly","hint","persistent-hint","onUpdate:modelValue"])):H("",!0)]))),128)),oe("div",ol,[Ae(o(Et,{class:"mt-4",color:"success",disabled:W(g),onClick:p},{default:be(()=>[Le(ke(l.$t("form.submit")),1)]),_:1},8,["disabled"]),[[yt,!W(g)]])]),s.value?(A(),E(Lt,{key:0,class:"form-loader",indeterminate:"",size:50})):H("",!0),R.value?(A(),E(Ne,{key:1,class:"form-alert",text:l.$t("form.success"),color:"success"},null,8,["text"])):H("",!0),_.value?(A(),E(Ne,{key:2,class:"form-alert",text:l.$t("form.error"),color:"error"},null,8,["text"])):H("",!0)]),_:1},512)])]))}}),wl=Object.assign(kt(sl,[["__scopeId","data-v-2d3cccbe"]]),{__name:"DFormBuilder"});export{wl as default};

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.