{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/uLfig1vckZnXiVJJ4Kp9/EPSMDF6tAJjYtest2GLm/LoginRedirectPage.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useLayoutEffect}from\"react\";const getEnvironment=()=>{const{host}=document.location;if(host===\"toloka.ai\"||host===\"toloka.framer.website\"){return\"production\";}if(host===\"regress-release.toloka-test.ai\"){return\"testing\";}return\"development\";};// Tolokers\nconst tolokersLoginDomains={production:\"we.toloka.ai\",development:\"prestable.we.toloka-test.ai\",testing:\"regress-release.we.toloka-test.ai\"};const getTolokersPortalLoginLink=(environment=getEnvironment())=>{return`https://${tolokersLoginDomains[environment]}/auth?role=TOLOKER`;};export function withRedirectToTolokersPortal(Component){return props=>{useLayoutEffect(()=>{window.location.replace(getTolokersPortalLoginLink());},[]);return /*#__PURE__*/_jsx(Component,{...props});};}// Requesters\nconst requestersLoginDomains={production:\"console.toloka.ai\",development:\"prestable.console.toloka-test.ai\",testing:\"regress-release.console.toloka-test.ai\"};const getRequestersPortalLoginLink=(environment=getEnvironment())=>{return`https://${requestersLoginDomains[environment]}/auth`;};export function withRedirectToRequestersPortal(Component){return props=>{useLayoutEffect(()=>{window.location.replace(getRequestersPortalLoginLink());},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRedirectToRequestersPortal\":{\"type\":\"reactHoc\",\"name\":\"withRedirectToRequestersPortal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRedirectToTolokersPortal\":{\"type\":\"reactHoc\",\"name\":\"withRedirectToTolokersPortal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LoginRedirectPage.map"],
  "mappings": "yFAA8E,IAAMA,EAAe,IAAI,CAAC,GAAK,CAAC,KAAAC,CAAI,EAAE,SAAS,SAAS,OAAGA,IAAO,aAAaA,IAAO,wBAA+B,aAAiBA,IAAO,iCAAwC,UAAiB,aAAc,EAC5RC,EAAqB,CAAC,WAAW,eAAe,YAAY,8BAA8B,QAAQ,mCAAmC,EAAQC,EAA2B,CAACC,EAAYJ,EAAe,IAAW,WAAWE,EAAqBE,CAAW,sBAA+B,SAASC,EAA6BC,EAAU,CAAC,OAAOC,IAAQC,EAAgB,IAAI,CAACC,EAAO,SAAS,QAAQN,EAA2B,CAAC,CAAE,EAAE,CAAC,CAAC,EAAsBO,EAAKJ,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAI,CACje,IAAMI,EAAuB,CAAC,WAAW,oBAAoB,YAAY,mCAAmC,QAAQ,wCAAwC,EAAQC,EAA6B,CAACR,EAAYJ,EAAe,IAAW,WAAWW,EAAuBP,CAAW,SAAkB,SAASS,EAA+BP,EAAU,CAAC,OAAOC,IAAQC,EAAgB,IAAI,CAACC,EAAO,SAAS,QAAQG,EAA6B,CAAC,CAAE,EAAE,CAAC,CAAC,EAAsBF,EAAKJ,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAI",
  "names": ["getEnvironment", "host", "tolokersLoginDomains", "getTolokersPortalLoginLink", "environment", "withRedirectToTolokersPortal", "Component", "props", "fe", "window", "p", "requestersLoginDomains", "getRequestersPortalLoginLink", "withRedirectToRequestersPortal"]
}
