PageSourceSearch

https://app.mihubformanufacturers.com/assets/saveByDataPath-BDZtY6ED.js

js mihubformanufacturers.com collected 2026-10-05 08:28:43 UTC 1,405 bytes, 1 lines download raw bytes

1import{aL as g,f0 as m,aI as h,aJ as y,aK as P,aM as d}from"./index-Bvuwlx66.js";import"./vendor-i18n-B6HYivoC.js";import"./vendor-framework-CobW1Mgl.js";import"./vendor-firebase-Bl-igiUH.js";import"./vendor-state-DA1MgQuN.js";import"./vendor-utils-CAEY8Ghx.js";let u=null;async function w(){if(!u){const n=h(y.getState())??null;u=P(d.MY_ACCOUNT,n).catch(o=>{throw u=null,o})}return u}function b(){u=null}function D(n,o){const f=Object.entries(n.questions).find(([,t])=>t.dataPath===o);if(!f)return null;const[i,s]=f,l=n.pages.find(t=>t.fields.some(e=>{var r;return typeof e=="string"?e===i:(r=e.fields)==null?void 0:r.includes(i)}));return l?{question:s,pageKey:l.key}:null}async function j(n){if(n.length===0)return{};const[o,f]=await Promise.all([w(),g()]),i=f.answers,s=new Map;for(const t of n){const e=D(o,t.dataPath);if(!e){console.warn(`[saveByDataPath] No question found for dataPath "${t.dataPath}" in my-account schema. Skipping.`);continue}const{question:r,pageKey:c}=e;s.has(c)||s.set(c,{}),s.get(c)[r.key]=t.value}if(s.size===0)return{};const l=await Promise.all([...s.entries()].map(([t,e])=>{const r=o.pages.find(a=>a.key===t);if(!r)return m(t,e);const c=r.fields.flatMap(a=>typeof a=="string"?[a]:a.fields??[]),p={};for(const a of c)a in i&&(p[a]=i[a]);return Object.assign(p,e),m(t,p)}));return Object.assign({},...l.map(t=>t.answers))}export{b as clearSchemaCache,j as saveByDataPath};

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.