PageSourceSearch

https://www.autohaus24.de/_next/static/chunks/6142.88b4fba0475e2c93.js

js autohaus24.de collected 2026-10-02 10:32:03 UTC 12,251 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6142,2608],{30585:function(a,b,c){var d=c(45987),e=c(87462),f=c(67294),g=c(86010),h=c(89345),i=c(22601),j=c(52543),k=function(a){return{root:(0,e.Z)({color:a.palette.text.secondary},a.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:a.palette.text.disabled},"&$error":{color:a.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}},l=f.forwardRef(function(a,b){var c=a.children,j=a.classes,k=a.className,l=a.component,m=(a.disabled,a.error,a.filled,a.focused,a.margin,a.required,a.variant,(0,d.Z)(a,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),n=(0,i.Z)(),o=(0,h.Z)({props:a,muiFormControl:n,states:["variant","margin","disabled","error","filled","focused","required"]});return f.createElement(void 0===l?"p":l,(0,e.Z)({className:(0,g.default)(j.root,("filled"===o.variant||"outlined"===o.variant)&&j.contained,k,o.disabled&&j.disabled,o.error&&j.error,o.filled&&j.filled,o.focused&&j.focused,o.required&&j.required,"dense"===o.margin&&j.marginDense),ref:b},m)," "===c?f.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):c)});b.Z=(0,j.Z)(k,{name:"MuiFormHelperText"})(l)},39803:function(a,b,c){var d=c(87462),e=c(45987),f=c(67294),g=c(86010),h=c(38799),i=c(59446),j=c(74061),k=c(85161),l=c(64436),m=c(30585),n=c(55296),o=c(52543),p={standard:h.Z,filled:i.Z,outlined:j.Z},q=f.forwardRef(function(a,b){var c=a.autoComplete,h=a.autoFocus,i=a.children,j=a.classes,o=a.className,q=a.color,r=a.defaultValue,s=a.disabled,t=a.error,u=a.FormHelperTextProps,v=a.fullWidth,w=void 0!==v&&v,x=a.helperText,y=a.hiddenLabel,z=a.id,A=a.InputLabelProps,B=a.inputProps,C=a.InputProps,D=a.inputRef,E=a.label,F=a.multiline,G=a.name,H=a.onBlur,I=a.onChange,J=a.onFocus,K=a.placeholder,L=a.required,M=void 0!==L&&L,N=a.rows,O=a.rowsMax,P=a.maxRows,Q=a.minRows,R=a.select,S=void 0!==R&&R,T=a.SelectProps,U=a.type,V=a.value,W=a.variant,X=void 0===W?"standard":W,Y=(0,e.Z)(a,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]),Z={};if("outlined"===X&&(A&& void 0!==A.shrink&&(Z.notched=A.shrink),E)){var $,_=null!==($=null==A?void 0:A.required)&& void 0!==$?$:M;Z.label=f.createElement(f.Fragment,null,E,_&&"\xa0*")}S&&(T&&T.native||(Z.id=void 0),Z["aria-describedby"]=void 0);var aa=x&&z?"".concat(z,"-helper-text"):void 0,ab=E&&z?"".concat(z,"-label"):void 0,ac=p[X],ad=f.createElement(ac,(0,d.Z)({"aria-describedby":aa,autoComplete:c,autoFocus:void 0!==h&&h,defaultValue:r,fullWidth:w,multiline:void 0!==F&&F,name:G,rows:N,rowsMax:O,maxRows:P,minRows:Q,type:U,value:V,id:z,inputRef:D,onBlur:H,onChange:I,onFocus:J,placeholder:K,inputProps:B},Z,C));return f.createElement(l.Z,(0,d.Z)({className:(0,g.default)(j.root,o),disabled:void 0!==s&&s,error:void 0!==t&&t,fullWidth:w,hiddenLabel:y,ref:b,required:M,color:void 0===q?"primary":q,variant:X},Y),E&&f.createElement(k.Z,(0,d.Z)({htmlFor:z,id:ab},A),E),S?f.createElement(n.Z,(0,d.Z)({"aria-describedby":aa,id:z,labelId:ab,value:V,input:ad},T),i):ad,x&&f.createElement(m.Z,(0,d.Z)({id:aa},u),x))});b.Z=(0,o.Z)({root:{}},{name:"MuiTextField"})(q)},46142:function(a,b,c){c.r(b),c.d(b,{default:function(){return w}});var d=c(47568),e=c(14924),f=c(26042),g=c(69396),h=c(34051),i=c.n(h),j=c(85893),k=c(67294),l=c(39803),m=c(11163),n=c(11752),o=c(95477),p=c(7297),q=c(19521);function r(){var a=(0,p.Z)(["\n        div.checkbox {\n        display: block;\n        cursor: pointer;\n        position: relative;\n        padding: 5px;\n        margin-bottom: 2px;\n        &.selected {\n            border-radius: ",";\n            background-color: ",";\n          }\n          label {\n              color: ",";\n              display: inline-block;\n              vertical-align: middle;  \n              margin-bottom: 0;\n              position: relative;\n              span {\n                vertical-align: top;\n                display: inline-block;\n                max-width: calc(100% - 40px);\n                font-size: 10px;\n                letter-spacing: 0;\n                line-height: 13px;\n                font-weight: ",';\n              }\n          }\n          input[type="radio"], input[type="checkbox"] {\n            display: none;\n          }\n          label.with-checkbox:before {\n            content: "";\n            display: inline-block;\n            height: 23px;\n            width: 23px;\n            border: 1px solid #ACACAC;\n            border-radius: 4px;\n            background-color: #FFFFFF;\n            vertical-align: middle;\n            margin-right: 15px;\n            box-shadow: inset 0 1px 3px 0 #EAEDF4;\n            }\n            label.active:before {\n              border-color: ',"\n            }\n            label.with-checkbox.active:after {\n              content: '';\n              width: 9px;\n              height: 5px;\n              left: 8px;\n              top: 8px;\n              position: absolute;\n              transform: rotate(-45deg);\n              border-left: 1px solid ",";\n              border-bottom: 1px solid ",";\n            }\n          }\n        }\n        .apply-filters-btn {\n        border-radius: 30px;\n        background-color: #E4001E;\n        max-width: 340px;\n        color: ",";\n        padding: 10px 70px;\n        cursor: pointer;\n        font-family: Roboto;\n        font-size: 14px;\n        font-weight: bold;\n        letter-spacing: 0;\n        line-height: 19px;\n        text-align: center;\n        border: none;\n        &:focus {\n          outline: none;\n        }\n         @media (max-width: 767px) {\n          padding: 10px 30px;\n         }\n      }\n      .MuiFormHelperText-root.Mui-error, .error {\n        color: #ff1744;\n        font-size: 12px;\n        font-weight: 400;\n      }\n"]);return r=function(){return a},a}var s=q.ZP.div.withConfig({componentId:"sc-7706ef59-0"})(r(),function(a){return a.theme.borderRadius.switchButtonBorderRadius},function(a){return a.theme.colors.selectedLabelBG},function(a){return a.theme.colors.labelText},function(a){return a.theme.fontWeight.regular},function(a){return a.theme.colors.activeSwitch},function(a){return a.theme.colors.activeSwitch},function(a){return a.theme.colors.activeSwitch}
1,function(a){return a.theme.colors.sectionBackground}),t=c(30527),u=c(70986),v=c(94569),w=function(a){var b,c=a.setOpen,h=a.setSnackbarOpen,p=a.setSnackbarSuccessMessage,q=a.jsonQuery,r=a.brandsList,w=a.modelsList,x=a.locationsList,y=(0,k.useState)(""),z=y[0],A=y[1],B=(0,m.useRouter)(),C=(0,n.default)().publicRuntimeConfig,D=B.asPath.replace(/offset=\d+/gm,"offset=0");switch(C.env){case"production":b="https://autohaus24.de".concat(D);break;case"stage":default:b="https://autohaus.stage.central.mblty-cloud.services".concat(D);break;case"new_dev":b="https://autohaus.dev.central.mblty-cloud.services".concat(D)}var E,F,G=(0,k.useState)(!1),H=G[0],I=G[1],J=(0,k.useState)(!1),K=J[0],L=J[1],M=(0,k.useState)({}),N=M[0],O=M[1],P=(E=(0,d.Z)(i().mark(function a(d){var j,k,l;return i().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,(0,u.Z)();case 3:return j=a.sent,a.next=6,fetch("/api/search-agent",{method:"POST",body:JSON.stringify({link:b,conditions:d,email:z,token:j})});case 6:return k=a.sent,a.next=9,k.json();case 9:if(422!==(l=a.sent).code){a.next=12;break}throw new v.p(l.message);case 12:401===l.code&&(p("Ihr Suchagent wurde erstellt. Bitte best\xe4tigen Sie ihre E-Mail Adresse."),c&&c(!1),h(!0)),200===l.code&&(h(!0),c&&c(!1)),L(!1),a.next=21;break;case 17:a.prev=17,a.t0=a.catch(0),L(!1),Object.keys(a.t0.errors).forEach(function(b){O((0,g.Z)((0,f.Z)({},N),(0,e.Z)({},b,a.t0.errors[b])))});case 21:case"end":return a.stop()}},a,null,[[0,17]])})),function(a){return E.apply(this,arguments)}),Q=(F=(0,d.Z)(i().mark(function a(b){var c,d,j,k,l,m,n,o;return i().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(b.preventDefault(),L(!0),h(!1),p("Ihr Suchagent wurde erstellt."),j={},H||(j=(0,g.Z)((0,f.Z)({},j),{privacy:"Pflichtfeld"})),z||(j=(0,g.Z)((0,f.Z)({},j),{email:"Pflichtfeld"})),q.conditions.length||(j=(0,g.Z)((0,f.Z)({},j),{conditions:"Bitte w\xe4hlen Sie f\xfcr den Suchagenten einen Filter aus."})),O(j),!(Object.keys(j).length>0)){a.next=13;break}return L(!1),a.abrupt("return");case 13:return k=q.conditions.map(function(a){return"fuel"===a.property?{property:"fuel",in:a.in.join(",")}:a}),l=function(){return k.sort(function(a,b){return a.property>b.property?1:b.property>a.property?-1:0}).map(function(a){try{if("regensensor"===a.property)return{property:"regensensor",value:"".concat(a.value)};if("brandId"===a.property)return{property:"brandId",value:null===(b=r.find(function(b){return Number(a.value)===b.id}))|| void 0===b?void 0:b.name};if("locationId"===a.property)return{property:"locationId",value:null===(c=x.find(function(b){return Number(null==a?void 0:a.value)===b.id}))|| void 0===c?void 0:c.name.replace(/ /g,"")};if("exportFinancingParams"===a.property)return{property:"exportFinancingParams",in:"1"===a.in?"leasing":"financing"};if("modelId"===a.property)return{property:"modelId",in:a.in.split(",").map(function(a){var b;return null===(b=w.find(function(b){return Number(a)===b.id}))|| void 0===b?void 0:b.name}).join(",")};if("min"in a||"max"in a){var b,c,d="min"in a?"min":"max";return(0,g.Z)((0,f.Z)({},a),(0,e.Z)({},d,"".concat(d,"-").concat(a[d])))}}catch(h){}return a}).map(function(a){return Object.values(a).filter(function(a){return 1!==a}).join("-").replace(/ /g,"").toLowerCase()}).join("_")},(0,t.Ih)({route:B.route,filters:l()}),a.next=18,fetch("/api/search-agent?email=".concat(z));case 18:return m=a.sent,a.next=21,m.json();case 21:if(!(404===(n=a.sent).code||(null==n?void 0:null===(c=n.data)|| void 0===c?void 0:null===(d=c.conditions)|| void 0===d?void 0:d.length)<3)){a.next=26;break}return a.next=25,P(k);case 25:case 30:return a.abrupt("return");case 26:if(!(o=confirm("Sie haben bereits 3 aktive Suchagenten. Soll der \xe4lteste \xfcberschrieben werden?"))){a.next=31;break}return a.next=30,P(k);case 31:L(!1);case 32:case"end":return a.stop()}},a)})),function(a){return F.apply(this,arguments)}),R=function(a){O((0,g.Z)((0,f.Z)({},N),{email:""})),A(a.target.value)},S=function(){O((0,g.Z)((0,f.Z)({},N),{privacy:""})),I(!H)};return(0,j.jsx)(s,{children:(0,j.jsxs)("form",{onSubmit:Q,children:[(0,j.jsx)(l.Z,{value:z,error:!!N.email,"aria-label":"email input",fullWidth:!0,helperText:N.email,onChange:R,label:"Deine E-Mail Adresse",inputProps:{"aria-label":"Deine E-Mail Adresse"},style:{marginBottom:20,marginTop:25}}),(0,j.jsxs)("div",{className:"checkbox",style:{marginBottom:20},children:[(0,j.jsx)("input",{id:"privacy",type:"checkbox",checked:H,onChange:S,"aria-describedby":N.privacy?"privacy-error":void 0,"aria-invalid":!!N.privacy}),(0,j.jsx)("label",{htmlFor:"privacy",className:"".concat(H?"active":""," with-checkbox"),children:(0,j.jsxs)("span",{children:["Ich akzeptiere die"," ",(0,j.jsx)("a",{style:{color:"#AA0016",textDecoration:"underline"},href:"https://www.autohaus24.de/datenschutz",target:"_blank",rel:"noreferrer",children:"Datenschutzbestimmungen"})," ","und bin damit einverstanden per E-Mail zur Angebotsberatung kontaktiert zu werden. Ich bin damit einverstanden, dass meine Daten f\xfcr die Erstellung eines Angebots an die Allane SE weitergegeben werden."]})}),!!N.privacy&&(0,j.jsx)("span",{id:"privacy-error",className:"error",role:"alert",children:N.privacy})]}),!!N.conditions&&(0,j.jsx)("span",{className:"error",children:N.conditions}),(0,j.jsx)("div",{className:"d-flex justify-content-center",children:(0,j.jsx)("button",{type:"submit",className:"apply-filters-btn center-block",children:K?(0,j.jsx)(o.Z,{"aria-label":"loading",style:{height:20,width:20,color:"white"}}):"Anmelden"})})]})})}}}])

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.