1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9962],{54900:(e,a,l)=>{l(38973),l(27237),l(49914)},77581:(e,a,l)=>{l.r(a),l.d(a,{default:()=>u});var i=l(2183),t=l(27861);l(54900);var n=l(97823),r=l(75083),o=l(98576);let s=new Set(["CarCompany","CarType","LegalTextForm","GoogleMapApiConfiguration","DynamicsLeadMode","DynamicsTitle","DynamicsLeadCategories","DynamicsLeadSources","DynamicsLeadDistributionMethods","DynamicsLeadChannels","DynamicsCountries","DynamicsImporters","ComHub","ComHubFormName","DynamicsLeadTypes","DynamicsPreferredContactMethods","DynamicsModelAvailibility","DynamicsModelTypes"]),u=(0,r.es)(e=>{let a,l,r,u,d,c=(0,t.c)(20),{fields:m,landingData:f,serverData:y,initialSelection:g,company:v}=e,{page:p}=(0,o.useSitecore)();c[0]!==m?(a=(e=>{let a=[];for(let[l,i]of Object.entries(e)){if(s.has(l))continue;let e=i&&"value"in i?i.value:void 0;"string"==typeof e&&""!==e.trim()&&a.push([l,e])}return Object.fromEntries(a)})(m),c[0]=m,c[1]=a):a=c[1];let C=a;if(c[2]!==m||c[3]!==p.locale||c[4]!==p.siteName){var D,L;let e,a,i,t;D=p.locale,L=p.siteName,e=function(e,a){let l=e?.filter(e=>e?.fields?.Value?.value!=null&&""!==e.fields.Value.value)??[];if(0===l.length)return null;if(1===l.length)return{countryId:String(l[0].fields?.Value?.value),countryLabel:String(l[0].fields?.Text?.value??"")};let i=(a??"").toLowerCase().replace(/_/g,"-"),t=i.split("-")[0]??"";for(let e of l){let a=String(e.fields?.Text?.value??"").toLowerCase();if(a&&t&&(a.includes(t)||i.includes(a)))return{countryId:String(e.fields?.Value?.value),countryLabel:String(e.fields?.Text?.value??"")}}return{countryId:String(l[0].fields?.Value?.value),countryLabel:String(l[0].fields?.Text?.value??"")}}(m.DynamicsCountries,D),i=null!=(a=m.DynamicsImporters?.fields?.Value?.value)?String(a):"",t=e?.countryId??"",l={enabled:("XpengChSite"===L||"FordSeSite"===L)&&""!==t.trim()&&""!==i.trim(),countryId:t,importerId:i,countryLabel:e?.countryLabel,sitecoreFields:{comHubFormName:String(m.ComHubFormName?.value??""),useComHubTestEnvironment:m.ComHub?.value??!1,leadCategory:String(m.DynamicsLeadCategories?.fields?.Value?.value??""),leadSource:String(m.DynamicsLeadSources?.fields?.Value?.value??""),leadChannel:String(m.DynamicsLeadChannels?.fields?.Value?.value??""),leadDistributionMethod:String(m.DynamicsLeadDistributionMethods?.fields?.Value?.value??""),leadType:String(m.DynamicsLeadTypes?.[0]?.fields?.Value?.value??""),preferredContactMethod:String(m.DynamicsPreferredContactMethods?.[0]?.fields?.Value?.value??"")}},c[2]=m,c[3]=p.locale,c[4]=p.siteName,c[5]=l}else l=c[5];let S=l;if(!f)return null;c[6]!==m.GoogleMapApiConfiguration?.fields?.ApiKey?.value?(r=m.GoogleMapApiConfiguration?.fields?.ApiKey?.value?.trim()||void 0,c[6]=m.GoogleMapApiConfiguration?.fields?.ApiKey?.value,c[7]=r):r=c[7];let b=r,h=v??void 0;return c[8]!==m.LegalTextForm?(u=m.LegalTextForm?(0,i.jsx)(o.RichText,{field:m.LegalTextForm}):void 0,c[8]=m.LegalTextForm,c[9]=u):u=c[9],c[10]!==S||c[11]!==b||c[12]!==g||c[13]!==f||c[14]!==p.locale||c[15]!==y||c[16]!==h||c[17]!==u||c[18]!==C?(d=(0,i.jsx)("section",{"data-component":"ConfiguratorV3",children:(0,i.jsx)(n.cn,{landingData:f,serverData:y,initialSelection:g,locale:p.locale,translations:C,company:h,googleMapsApiKey:b,dynamicsLead:S,legalTextNode:u})}),c[10]=S,c[11]=b,c[12]=g,c[13]=f,c[14]=p.locale,c[15]=y,c[16]=h,c[17]=u,c[18]=C,c[19]=d):d=c[19],d})}}]);
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.