1import{P as e,r as i,aa as l,p as d,bP as u,dK as P,dL as j,cG as I,b0 as A,h as R,j as a,cH as S,I as T,cI as y,cJ as w,cK as D,cL as E,as as M}from"./automationAxios-iy0n8IC9.js";import{E as L,T as b}from"./context-BJwopkbC.js";const k={dedupingInterval:1e4,focusThrottleInterval:6e4};function p({children:g,name:x,exploreInstanceConfiguration:h,initialStoreEntities:t={},i18nConfig:s,swrConfig:m=k,apiServiceConfig:c={}}){const v=i.useMemo(()=>{if(s){const{languageCode:o,translations:n}=s;l.setLanguageCode(o),l.setTranslations(l.shortLanguageCode,n||window.ODSTranslations||{})}return{i18n:l}},[s]);d.locale()!==s.languageCode&&d.locale(s.languageCode),u.locale()!==s.languageCode&&u.locale(s.languageCode);const r=i.useMemo(()=>P({entities:{...t,domain:t.domain?j(t.domain):void 0}}),[t]),C=i.useMemo(()=>I(),[]),f=i.useMemo(()=>new A({onError:(o,n)=>{!r.getState().notifications.ignored&&!n.isCancel&&(!o.response||o.response.status!==400)&&r.dispatch(R({type:"error",title:"Error",message:n&&n.message||o.message}))},...c}),[r,c]);return a.jsx(S,{store:r,children:a.jsx(T.Provider,{value:v,children:a.jsx(y.Provider,{value:C,children:a.jsx(w,{analyticsId:x,axiosConfiguration:h,children:a.jsx(D.Provider,{value:f,children:a.jsx(L,{children:a.jsx(E,{value:m,children:a.jsx(b,{children:a.jsx(M,{children:g})})})})})})})})})}p.propTypes={children:e.element.isRequired,name:e.string,exploreInstanceConfiguration:e.shape(),initialStoreEntities:e.shape(),i18nConfig:e.shape({languageCode:e.string.isRequired,translations:e.shape()}),swrConfig:e.shape(),apiServiceConfig:e.shape()};p.defaultProps={name:void 0,exploreInstanceConfiguration:{},i18nConfig:null};export{p as R,k as 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.