(()=>{if(typeof window>"u"||!window.React)return;const n=window.React.createElement;typeof window.__ensureContextStream=="function"&&window.__ensureContextStream();const c=window.VIEWS&&window.VIEWS.financeForm;if(!c)return;function r({s:t}){const i=t.linkTo||"context.contextManager",o=t.linkLabel||"Open Context Suite";return n("div",{key:t.id,className:"fin-form-section"},n("div",{className:"fin-form-section-label mono"},t.label),t.hint?n("div",{className:"mono ink-faint",style:{marginBottom:"8px"}},t.hint):null,typeof window.EntityLink=="function"?n(window.EntityLink,{to:i,label:o}):n("a",{href:`#${i}`,className:"ent-link mono"},o))}function l(t){const i=t.kind||{},o=i.formSections||[],a=o.filter(e=>e&&e.kind==="context-link");if(!a.length)return n(c,t);const d=Object.assign({},i,{formSections:o.filter(e=>!(e&&e.kind==="context-link"))});return n("div",{className:"view view-financeForm-context-wrap"},n(c,Object.assign({},t,{kind:d})),n("div",{className:"fin-form-grid"},a.map(e=>n(r,{key:e.id,s:e}))))}window.VIEWS.financeForm=l,console.log("[account-context-link.patch] context reassert + financeForm context-link wrap applied.")})();
