PageSourceSearch

https://medon.lv/assets/AppConfig-BRa25XxW.js

js medon.lv collected 2026-09-25 07:41:43 UTC 3,525 bytes, 1 lines download raw bytes

1var c=(e=>(e.Development="development",e.Staging="staging",e.Production="production",e))(c||{}),r={};class a{APP_CONFIG;envConfigMap;constructor(t){this.envConfigMap=t}set(t){if(this.APP_CONFIG)throw Error("APP_CONFIG can only be set once");this.APP_CONFIG=t}initialize(t){const o=this.envConfigMap[t];console.log(`Using '${t}' mode config: `,o),this.set(o)}initializeFromEnv(){const t=r.APP_ENV;if(t===null)throw new Error("APP_ENV is not defined");this.initialize(t)}isInitialized(){return!!this.APP_CONFIG}get(){return this.APP_CONFIG}async getAndMaybeInitialize(){return this.isInitialized()||await this.initializeFromEnv(),this.APP_CONFIG}}const n=e=>()=>typeof window<"u"&&window.appConfig?window.appConfig:e;function i(e,t){const o=new a(e);return o.initialize(t),o.get()}const s=(e,t)=>{const o=i(e,t);return{getConfig:n(o)}},l=(e,t)=>s({[c.Development]:e.development,[c.Staging]:e.staging,[c.Production]:e.production},t),d="http://localhost:8080/api",p="http://localhost:5175",g="http://localhost:3001/doctor",f="https://space-medon-stage.ams3.digitaloceanspaces.com",b="https://astra.citadele.lv/amai/start.htm",m="1x00000000000000000000AA",u=null,v="a718ca3f-4163-4aea-8027-2a2ed95d4139",h={scriptUrl:"https://cdn.cookie-script.com/s/986c4e5cc2bb5f939f86e8a28095803a.js",reportUrl:"https://report.cookie-script.com/r/986c4e5cc2bb5f939f86e8a28095803a.js"},P={enabled:!1,gtmId:"GTM-5B52D32",serverSideGtmId:"GTM-MGW5SCCL"},U={accessToken:"d5bb1d7b7cdd49d794f1c133b8c5e4c9",environment:"development"},A={weightProgrammePages:!0,faceScanner:!0,cookiePolicyPage:!0,privacyTab:!0},C={backendBaseUrl:d,siteBaseUrl:p,doctorPortalUrl:g,objectStoreBaseUrl:f,citadeleUrl:b,turnstileSiteKey:m,metaPixelId:u,veriffApiKey:v,cookieScript:h,googleTagManager:P,rollbar:U,featureFlags:A},S="https://medon.lv/api",$="https://medon.lv",k="https://medon.lv/doctor",I="https://d.medon.lv",G="https://online.citadele.lv/amai/start.htm",y="0x4AAAAAAFCMami_u8IG48-u",B="1131390590941758",M="10bdb611-1af5-4ba7-b7cf-229c007518f0",T={scriptUrl:"https://cdn.cookie-script.com/s/986c4e5cc2bb5f939f86e8a28095803a.js",reportUrl:"https://report.cookie-script.com/r/986c4e5cc2bb5f939f86e8a28095803a.js"},F={enabled:!0,gtmId:"GTM-5B52D32",serverSideGtmId:"GTM-MGW5SCCL"},w={accessToken:"d5bb1d7b7cdd49d794f1c133b8c5e4c9",environment:"production"},_={weightProgrammePages:!0,faceScanner:!0,cookiePolicyPage:!1,privacyTab:!1},j={backendBaseUrl:S,siteBaseUrl:$,doctorPortalUrl:k,objectStoreBaseUrl:I,citadeleUrl:G,turnstileSiteKey:y,metaPixelId:B,veriffApiKey:M,cookieScript:T,googleTagManager:F,rollbar:w,featureFlags:_},K="https://dev.medon.lv/api",x="https://dev.medon.lv",N="https://dev.medon.lv/doctor",z="https://space-medon-stage.ams3.digitaloceanspaces.com",E="https://astra.citadele.lv/amai/start.htm",O="0x4AAAAAAFCLk1H8a7ELgQJY",D=null,L="10bdb611-1af5-4ba7-b7cf-229c007518f0",W={scriptUrl:"https://cdn.cookie-script.com/s/986c4e5cc2bb5f939f86e8a28095803a.js",reportUrl:"https://report.cookie-script.com/r/986c4e5cc2bb5f939f86e8a28095803a.js"},H={enabled:!1,gtmId:"GTM-5B52D32",serverSideGtmId:"GTM-MGW5SCCL"},J={accessToken:"d5bb1d7b7cdd49d794f1c133b8c5e4c9",environment:"staging"},Q={weightProgrammePages:!0,faceScanner:!0,cookiePolicyPage:!0,privacyTab:!0},Y={backendBaseUrl:K,siteBaseUrl:x,doctorPortalUrl:N,objectStoreBaseUrl:z,citadeleUrl:E,turnstileSiteKey:O,metaPixelId:D,veriffApiKey:L,cookieScript:W,googleTagManager:H,rollbar:J,featureFlags:Q},{getConfig:R}=l({development:C,staging:Y,production:j},"production");export{R as g};

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.