PageSourceSearch

https://www.mobility.siemens.com/_nuxt/DHc_Pel3.js

js siemens.com collected 2026-09-24 08:24:07 UTC 6,211 bytes, 1 lines download raw bytes

1import{c as g,aM as U,a1 as H,V as D,a8 as q,w as b,r as T,aK as w,bb as V,a3 as W,Y as $,L as M,W as j}from"#entry";import{S as I}from"./B9XbH20T.js";import{b as G,d as x}from"./ClHWHaFT.js";const B=()=>{const e=U(new Set);function s(n){n&&e.add(typeof n=="object"?n.uuid:n)}return{addFetchedFragment:s,fetchedFragments:g(()=>Array.from(e))}},O={PARTNER_DETAIL:"PARTNER_DETAIL_OVERVIEW",ROI_CALCULATOR:"ROI_CALCULATOR",TAGNAVIGATOR:"TAGNAVIGATOR"};function K(e){return"uuid"in e}function Y(e){return"component"in e}function Z(e){return"category"in e}function z(e){return!!(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^siem:[a-zA-Z0-9]+$/.test(e))}function J(e){const s=[],[n,...o]=e;let u=0;n&&(s.push({entries:[n],insertionPosition:u}),u++),s.push({entries:o,insertionPosition:u});const c=s.map((t,r)=>({...t,entries:t.entries.map(a=>({fragment:a,fragmentGroup:r}))})),d=[];return c.forEach(({entries:t,insertionPosition:r})=>{d.splice(r,0,...t)}),d}const X=()=>{const{pageConfig:e}=H(),s=new Set(Object.values(O));function n(u){return z(u)}function o(u){return s.has(u)}return g(()=>{const u=e.value?.pageStructure||[];return J(u).map(({fragment:d,fragmentGroup:t},r)=>{const a=`${t}-${d}`,i={fragmentGroup:t,key:a,position:r};return n(d)?{...i,uuid:d}:o(d)?{...i,component:d}:{...i,category:d}})})},A=e=>`h${e}`,R=1,ee=6,S=e=>{const s=Number.parseInt(e?.charAt(1),10),n=Math.min(s+1,ee);return A(n)};function te(e){return Object.entries(e).reduce((s,[n,o])=>(o&&(s[n]=o),s),{})}const ne=(e,s)=>{const n=s?S(e):e;return o=>o||n},re=(e,s)=>{const{autoIncrementHeadlineRank:n=!0,firstComponentShouldBeH1:o=!1,headlinesAreDisabled:u=!1}=s||{};let c=!!e,d=o;const t=ne(e||A(R),n),r=l=>typeof l=="string",a=l=>!!(l||c),i=(l,p)=>{if(r(p)&&a(l))return c=!0,t(p)},f=(l,p,h,F)=>{if(r(F)&&a(h))return c=!0,l&&!u?S(p):t(F)},m=l=>{d&&(d=!1,l())},v=l=>{const p=A(R);return{headlineTag:p,titleTag:l?S(p):p}},Q=new Set(Object.values(O)),k=l=>!Q.has(l.category);function L(l){if(!l)return l;if(k(l)){const{metadata:h}=l,{headline:F,headlineRank:N,title:_}=h;let{titleRank:C}=h;"title"in h&&!("titleRank"in h)&&(C="");let y=i(F,N),E=f(F,y,_,C);return m(()=>{(r(y)||r(E))&&({headlineTag:y,titleTag:E}=v(y))}),!y&&!E?l:{...l,metadata:{...h,...te({headlineRank:y,titleRank:E})}}}let p=t("");return m(()=>{({headlineTag:p}=v(p))}),{...l,metadata:{headlineRank:p}}}return L},se=(e,s,n)=>{function o(u){return s.fragmentPositionMap.value.get(u)||[]}return g(()=>{const u=e.value||[];n.systemFragmentsQueries.value;const c=u.map(t=>Y(t)?{category:t.component,uuid:t.component}:"loading");(n.systemFragmentsQueries.value||[]).forEach(([t,r])=>{if(!r.result)return;const a=new Set(t);r.result?.fluidFragments?.fluidFragments?.forEach(i=>{if(!i)return;const f=o(i.uuid);f.forEach(m=>{c[m]=i}),f.length&&a.delete(i.uuid)}),a.forEach(i=>{o(i).forEach(m=>{c[m]="missing"})})}),(n.recommendationQueries.value||[]).forEach(([t,r])=>{if(!r.result)return;const a=[...s.fragmentPositionMap.value?.get(t)||[]];r.result?.recommendations?.fluidFragments?.forEach(i=>{const f=a.shift();!i||f===void 0||(c[f]=i)}),a.forEach(i=>{c[i]="missing"})});const d=re("",{firstComponentShouldBeH1:!0});return c.map(t=>t==="loading"||t==="missing"?t:d(t))})},oe=e=>{const s=D();let n;try{n=q()}catch{n={}}const o=g(()=>Array.from(e.systemFragmentUuids.chunks.value).map(r=>[r,x({filter:G({uuid:r}),deploymentConfig:n})])),u=P(ae,o,s),c=g(()=>Array.from(e.groupedRecommendationsMap?.value||[]).map(([t,r])=>[t,{category:t,excludedUuids:e.systemFragmentUuids.all.value,limit:r,deploymentConfig:n}]));return{recommendationQueries:P(ie,c,s),systemFragmentsQueries:u}};function ae(e,s){const n=T(s),o=w(I,n,{fetchPolicy:"cache-first"});return[e,o,n]}function ie(e,s){const{category:n,excludedUuids:o,limit:u,deploymentConfig:c}=s,d=G({category:[n]},o||[]),t=x({filter:d,limit:u,deploymentConfig:c}),r=T(t),a=w(I,r);return[e,a,r]}function P(e,s,n){const o=T([]),u=W(),c=n.path.startsWith("/demo");function d(t,r){const i=V().run(()=>u?.appContext?.app?.runWithContext?u.appContext.app.runWithContext(r):r());t.value.push(i)}return b(s,t=>{c||t.forEach(([r,a],i)=>{const f=o.value[i];if(!f){d(o,()=>e(r,a));return}const[,,m]=f;m.value=a})},{immediate:!0}),o}function ue(e,s){const n=[];for(let o=0;o<e.length;o+=s)n.push(e.slice(o,o+s));return n}const ce=e=>{const s=g(()=>(e.value||[]).filter(K)),n=g(()=>s.value.map(({uuid:t})=>t)),o=64,u=g(()=>{const t=new Map;return s.value.forEach(({fragmentGroup:a,uuid:i,position:f})=>{let m=t.get(a);m||(m=[],t.set(a,m)),m.push(i)}),Array.from(t).sort(([a],[i])=>a-i).flatMap(([,a])=>[...ue(a,o)])}),c=g(()=>{const t=new Map;
1return(e.value||[]).filter(Z).forEach(({category:a})=>{let i=t.get(a)||0;i++,t.set(a,i)}),t});return{fragmentPositionMap:g(()=>{const t=new Map;return(e.value||[]).forEach(r=>{const a=r.uuid||r.category||r.component;let i=t.get(a);i||(i=[],t.set(a,i));const f=i.findIndex(m=>m.fragmentGroup<r.fragmentGroup);i.splice(f+1,0,{fragmentGroup:r.fragmentGroup,position:r.position})}),new Map(Array.from(t).map(([r,a])=>[r,a.map(({position:i})=>i)]))}),groupedRecommendationsMap:c,systemFragmentUuids:{all:n,chunks:u}}},de=(e,s)=>{const{pageConfig:n}=H();let o;try{o=$().datalayer}catch{}M(()=>{const u=[...n.value?.pageStructure||[]];(s.recommendationQueries.value||[]).forEach(([c,d])=>{if(!d.result)return;const t=[...e.fragmentPositionMap.value?.get(c)||[]];d.result?.recommendations?.fluidFragments?.forEach(r=>{const a=t.shift();!r||a===void 0||(u[a]=r.uuid)}),o&&(o.pageStructure=u),typeof window<"u"&&window.siemens?.datalayer&&(window.siemens.datalayer.pageStructure=u)})})},pe=j("contentTree",()=>{const e=B(),s=X(),n=ce(s),o=oe(n),u=se(s,n,o);return M(()=>{const c=o.recommendationQueries.value;c&&c.forEach(([,d])=>{d.result?.recommendations?.fluidFragments?.forEach(e.addFetchedFragment)})}),b(()=>n.systemFragmentUuids.all.value,c=>{c&&c.forEach(e.addFetchedFragment)}),de(n,o),{fragmentPositionMap:n.fragmentPositionMap,mappedPageStructure:s,orderedFragments:u,stageUuids:g(()=>{const c=u.value;return c?c.flatMap(d=>d==="missing"||d==="loading"?[]:d.category!=="STAGE"&&d.category!=="CONTENT_SEARCH"?[]:[d.uuid]):[]}),...e}});export{O as P,re as a,pe as u};

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.