1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[387],{93188:function(e,t){"use strict";/*! 2 * cookie 3 * Copyright(c) 2012-2014 Roman Shtylman 4 * Copyright(c) 2015 Douglas Christopher Wilson 5 * MIT Licensed 6 */t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var i={},o=e.split(";"),n=(t||{}).decode||r,s=0;s<o.length;s++){var a=o[s],c=a.indexOf("=");if(!(c<0)){var p=a.substring(0,c).trim();if(void 0==i[p]){var f=a.substring(c+1,a.length).trim();'"'===f[0]&&(f=f.slice(1,-1)),i[p]=function(e,t){try{return t(e)}catch(t){return e}}(f,n)}}}return i},t.serialize=function(e,t,r){var n=r||{},s=n.encode||i;if("function"!=typeof s)throw TypeError("option encode is invalid");if(!o.test(e))throw TypeError("argument name is invalid");var a=s(t);if(a&&!o.test(a))throw TypeError("argument val is invalid");var c=e+"="+a;if(null!=n.maxAge){var p=n.maxAge-0;if(isNaN(p)||!isFinite(p))throw TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(p)}if(n.domain){if(!o.test(n.domain))throw TypeError("option domain is invalid");c+="; Domain="+n.domain}if(n.path){if(!o.test(n.path))throw TypeError("option path is invalid");c+="; Path="+n.path}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw TypeError("option expires is invali
6d");c+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(c+="; HttpOnly"),n.secure&&(c+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c};var r=decodeURIComponent,i=encodeURIComponent,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},5332:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tcloader",function(){return r(1523)}])},44658:function(e,t,r){"use strict";var i=r(11527),o=r(50959),n=r(18858),s=r(17034);let a=e=>{let{redirectUrl:t,delay:r}=e,a=(0,n.useRouter)();return(0,o.useEffect)(()=>{let e=setTimeout(()=>{a.push(t)},r);return()=>clearTimeout(e)},[]),(0,i.jsx)(s.Z,{})};t.Z=a},17034:function(e,t,r){"use strict";var i=r(11527),o=r(31675),n=r.n(o);r(50959);var s=r(6560);let a=()=>(0,i.jsxs)("div",{className:"jsx-1703b7cb50db6011 loading-spinner",children:[(0,i.jsx)("div",{className:"jsx-1703b7cb50db6011 spinner"}),(0,i.jsx)(s.x,{fontSize:"sm",children:"Loading..."}),(0,i.jsx)(n(),{id:"1703b7cb50db6011",children:".loading-spinner.jsx-1703b7cb50db6011{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;height:100vh}.spinner.jsx-1703b7cb50db6011{width:40px;height:40px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;border:4px solid#f3f3f3;border-top:4px solid#3498db;-webkit-animation:spin 1s linear infinite;-moz-animation:spin 1s linear infinite;-o-animation:spin 1s linear infinite;animation:spin 1s linear infinite;margin-bottom:16px}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg);transform:rotate(0deg)}100%{-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}"})]});t.Z=a},1523:function(e,t,r){"use strict";r.r(t);var i=r(11527),o=r(44658),n=r(50959),s=r(68225),a=r(73669),c=r(18858);let p=()=>{let e=(0,c.useRouter)(),t=async()=>{let t=await a.Z.get("https://api.mhealth.ai/v1.0/getTranformationChallenge?challengerZoneId=123&page=0&size=10",{headers:{Authorization:"Bearer ".concat(localStorage.token),timeStamp:"timestamp",accept:"*/*","Access-Control-Allow-Origin":"*",withCredentials:!0,"Access-Control-Allow-Methods":"GET,PUT,POST,DELETE,OPTIONS","Access-Control-Allow-Headers":"accept, content-type, x-access-token, x-requested-with"}});if(t.data.response.responseData){let r=t.data.response.responseData.tcList,i=r.find(e=>2===e.idMstTransformationChallenges);i&&!0===i.registered?e.push("/tc/programs/sucessfully-registered"):(console.log("Not Found"),e.push("/tc/programs/pcos"))}};return(0,n.useEffect)(()=>{let e=new s.Z,r=localStorage.getItem("token");r&&(e.set("tokenCookie",r,{path:"/"}),t())},[]),(0,i.jsx)(o.Z,{redirectUrl:"/tc/programs/pcos",delay:2e3})};t.default=p},68225:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var i=r(93188);function o(e,t){void 0===t&&(t={});var r,i=e&&"j"===e[0]&&":"===e[1]?e.substr(2):e;if(void 0===(r=t.doNotParse)&&(r=!i||"{"!==i[0]&&"["!==i[0]&&'"'!==i[0]),!r)try{return JSON.parse(i)}catch(e){}return e}var n=function(){return(n=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=function(){function e(e,t){var r=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof e?i.parse(e,t):"object"==typeof e&&null!==e?e:{},new Promise(function(){r.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=i.parse(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,r){return void 0===t&&(t={}),this._updateBrowserValues(r),o(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var r={};for(var i in this.cookies)r[i]=o(this.cookies[i],e);return r},e.prototype.set=function(e,t,r){var o;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=n(n({},this.cookies),((o={}
6)[e]=t,o)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.serialize(e,t,r)),this._emitChange({name:e,value:t,options:r})},e.prototype.remove=function(e,t){var r=t=n(n({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=n({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.serialize(e,"",r)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}()}},function(e){e.O(0,[1675,9774,2888,179],function(){return e(e.s=5332)}),_N_E=e.O()}]);
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.