PageSourceSearch

https://www.bobovita.pl/_next/static/chunks/aws-amplify-0b30ee83-77ff47a236494003.js

js bobovita.pl collected 2026-10-02 06:36:32 UTC 13,602 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72929],{54040:function(e,t,n){n.d(t,{l4:function(){return u},a4:function(){return c}});var o,r,i=n(23906),s=n(35069);(o=r||(r={})).DEFAULT_MSG="Authentication Error",o.EMPTY_EMAIL="Email cannot be empty",o.EMPTY_PHONE="Phone number cannot be empty",o.EMPTY_USERNAME="Username cannot be empty",o.INVALID_USERNAME="The username should either be a string or one of the sign in types",o.EMPTY_PASSWORD="Password cannot be empty",o.EMPTY_CODE="Confirmation code cannot be empty",o.SIGN_UP_ERROR="Error creating account",o.NO_MFA="No valid MFA method provided",o.INVALID_MFA="Invalid MFA type",o.EMPTY_CHALLENGE="Challenge response cannot be empty",o.NO_USER_SESSION="Failed to get the session because the user is empty",o.NETWORK_ERROR="Network Error",o.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",o.AUTOSIGNIN_ERROR="Please use your credentials to sign in";var a=new s.k("AuthError"),u=function(e){function t(n){var o=this,r=p[n],i=r.message,s=r.log;return(o=e.call(this,i)||this).constructor=t,Object.setPrototypeOf(o,t.prototype),o.name="AuthError",o.log=s||i,a.error(o.log),o}return(0,i.ZT)(t,e),t}(Error),c=function(e){function t(n){var o=e.call(this,n)||this;return o.constructor=t,Object.setPrototypeOf(o,t.prototype),o.name="NoUserPoolError",o}return(0,i.ZT)(t,e),t}(u),p={noConfig:{message:r.DEFAULT_MSG,log:"\n            Error: Amplify has not been configured correctly.\n            This error is typically caused by one of the following scenarios:\n\n            1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point\n                See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information\n            \n            2. There might be multiple conflicting versions of amplify packages in your node_modules.\n				Refer to our docs site for help upgrading Amplify packages (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js)\n        "},missingAuthConfig:{message:r.DEFAULT_MSG,log:"\n            Error: Amplify has not been configured correctly. \n            The configuration object is missing required auth properties.\n            This error is typically caused by one of the following scenarios:\n\n            1. Did you run `amplify push` after adding auth via `amplify add auth`?\n                See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information\n\n            2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.\n        "},emptyUsername:{message:r.EMPTY_USERNAME},invalidUsername:{message:r.INVALID_USERNAME},emptyPassword:{message:r.EMPTY_PASSWORD},emptyCode:{message:r.EMPTY_CODE},signUpError:{message:r.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:r.NO_MFA},invalidMFA:{message:r.INVALID_MFA},emptyChallengeResponse:{message:r.EMPTY_CHALLENGE},noUserSession:{message:r.NO_USER_SESSION},deviceConfig:{message:r.DEVICE_CONFIG},networkError:{message:r.NETWORK_ERROR},autoSignInError:{message:r.AUTOSIGNIN_ERROR},default:{message:r.DEFAULT_MSG}}},50092:function(e,t,n){n.d(t,{Z:function(){return S}});var o=n(23906),r=n(11987),i=function(e){var t=window.open(e,"_self");return t?Promise.resolve(t):Promise.reject()},s=function(e){window.sessionStorage.setItem("oauth_state",e)},a=function(){var e=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),e},u=function(e){window.sessionStorage.setItem("ouath_pkce_key",e)},c=function(){var e=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),e},p=n(48764),f=n(71672),l=n(20490),h=n(35069),d=n(37439),g=n(89841),m=n(88229),y=n(92752),_=n(41938),v="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",E=function(e,t,n){l.X.dispatch("auth",{event:e,data:t,message:n},"Auth",v)},w=new h.k("OAuth"),S=function(){function e(e){var t=e.config,n=e.cognitoClientId,o=e.scopes,r=void 0===o?[]:o;if(this._urlOpener=t.urlOpener||i,this._config=t,this._cognitoClientId=n,!this.isValidScopes(r))throw Error("scopes must be a String Array");this._scopes=r}return e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every(function(e){return"string"==typeof e})},e.prototype.oauthSignIn=function(e,t,n,r,i,a){void 0===e&&(e="code"),void 0===i&&(i=f.JG.Cognito);var c=this._generateState(32),p=a?c+"-"+(0,d.T)(a):c;s(p);var l=this._generateRandom(128);u(l);var h=this._generateChallenge(l),g=this._scopes.join(" "),m="https://"+t+"/oauth2/authorize?"+Object.entries((0,o.pi)((0,o.pi)({redirect_uri:n,response_type:e,client_id:r,identity_provider:i,scope:g,state:p},"code"===e?{code_challenge:h}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map(function(e){var t=(0,o.CR)(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)}).join("&");w.debug("Redirecting to "+m),this._urlOpener(m,n)},e.prototype._handleCodeFlow=function(e){return(0,o.mG)(this,void 0,void 0,function(){var t,n,i,s,a,u,p,l,h,d,_,v,S,b,A,O;return(0,o.Jh)(this,function(I){switch(I.label){case 0:if(t=((0,r.parse)(e).query||"").split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var n,r=(0,o.CR)(t,2),i=r[0],s=r[1];return(0,o.pi)((0,o.pi)({},e),((n={})[i]=s,n))},{code:void 0}).code,n=(0,r.parse)(e).pathname||"/",i=(0,r.parse)(this._config.redirectSignIn).pathname||"/",!t||n!==i)return[2];return E("codeFlow",{},"Retrieving tokens from "+(s="https://"+this._config.domain+"/oauth2/token")),a=(0,f.ic)(this._config)?this._cognitoClientId:this._config.clientID,u=(0,f.ic)(this._config)?this._config.redirectSignIn:this._config.redirectUri,p=c(),l=(0,o.pi)({grant_type:"authorization_code",code:t,client_id:a,redirect_uri:u},p?{code_verifier:p}:{}),w.debug("Calling token endpoint: "+s+" with",l),h=Object.entries(l).map(function(e){var t=(0,o.CR)(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)}).join("&"),d={category:g.WD.Auth,action:g.g4.FederatedSignIn},[4,fetch(s,{method:"POST",headers:((O={"Content-Type":"application/x-www-form-urlencoded"})[m.M]=(0,y.Zm)(d),O),body:h})];case 1:return[4,I.sent().json()];case 2:if(v=(_=I.sent()).access_token,S=_.refresh_token,b=_.id_token,A=_.error)throw Error(A);return[2,{accessToken:v,refreshToken:S,idToken:b}]}})})},e.prototype._handleImplicitFlow=function(e){return(0,o.mG)(this,void 0,void 0,function(){var t,n,i;return(0,o.Jh)(this,function(s){return n=(t=((0,r.parse)(e).hash||"#").substr(1).split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var n,r=(0,o.CR)(t,2),i=r[0],s=r[1];return(0,o.pi)((0,o.pi)({},e),((n={})[i]=s,n))},{id_token:void 0,access_token:void 0})).id_token,i=t.access_token,E("implicitFlow",{},"Got tokens from "+e),w.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:i,idToken:n,refreshToken:null}]})})},e.prototype.handleAuthResponse=function(e){return(0,o.mG)(this,void 0,void 0,function(){var t,n,i,s,a,u,c;return(0,o.Jh)(this,function(p){switch(p.label){case 0:if(p.trys.push([0,5,,6]),n=(t=e?(0,o.pi)((0,o.pi)({},((0,r.parse)(e).hash||"#").substr(1).split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var n=(0,o.CR)(t,2),r=n[0],i=n[1];return e[r]=i,e},{})),((0,r.parse)(e).query||"").split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var n=(0,o.CR)(t,2),r=n[0],i=n[1];return e[r]=i,e},{})):{}
1).error,i=t.error_description,n)throw Error(i);if(s=this._validateState(t),w.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType)return[3,2];return a=[{}],[4,this._handleCodeFlow(e)];case 1:return[2,o.pi.apply(void 0,[o.pi.apply(void 0,a.concat([p.sent()])),{state:s}])];case 2:return u=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,o.pi.apply(void 0,[o.pi.apply(void 0,u.concat([p.sent()])),{state:s}])];case 4:return[3,6];case 5:throw c=p.sent(),w.debug("Error handling auth response.",c),c;case 6:return[2]}})})},e.prototype._validateState=function(e){if(e){var t=a(),n=e.state;if(t&&t!==n)throw Error("Invalid state in OAuth flow");return n}},e.prototype.signOut=function(){return(0,o.mG)(this,void 0,void 0,function(){var e,t,n;return(0,o.Jh)(this,function(r){return e="https://"+this._config.domain+"/logout?",t=(0,f.ic)(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=(0,f.ic)(this._config)?this._config.redirectSignOut:this._config.returnTo,E("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+(e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(n)}).map(function(e){var t=(0,o.CR)(e,2);return t[0]+"="+t[1]}).join("&"))),w.debug("Signing out from "+e),[2,this._urlOpener(e,n)]})})},e.prototype._generateState=function(e){for(var t="",n=e,o="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";n>0;--n)t+=o[Math.round(Math.random()*(o.length-1))];return t},e.prototype._generateChallenge=function(e){var t=new _.Sha256;t.update(e);var n=t.digestSync(),o=p.lW.from(n).toString("base64");return this._base64URL(o)},e.prototype._base64URL=function(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(e){var t=new Uint8Array(e);if("undefined"!=typeof window&&window.crypto)window.crypto.getRandomValues(t);else for(var n=0;n<e;n+=1)t[n]=66*Math.random()|0;return this._bufferToString(t)},e.prototype._bufferToString=function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],o=0;o<e.byteLength;o+=1){var r=e[o]%t.length;n.push(t[r])}return n.join("")},e}()},71672:function(e,t,n){var o,r,i,s,a,u;function c(e){return e&&!!["provider"].find(function(t){return e.hasOwnProperty(t)})}function p(e){return e&&!!["customProvider"].find(function(t){return e.hasOwnProperty(t)})}function f(e){return e&&!!["customState"].find(function(t){return e.hasOwnProperty(t)})}function l(e){return void 0!==e.redirectSignIn}function h(e){return!!e.username}n.d(t,{Ay:function(){return f},JG:function(){return o},Qg:function(){return r},SU:function(){return c},ic:function(){return l},lg:function(){return h},zB:function(){return p}}),(s=o||(o={})).Cognito="COGNITO",s.Google="Google",s.Facebook="Facebook",s.Amazon="LoginWithAmazon",s.Apple="SignInWithApple",(a=r||(r={})).NoConfig="noConfig",a.MissingAuthConfig="missingAuthConfig",a.EmptyUsername="emptyUsername",a.InvalidUsername="invalidUsername",a.EmptyPassword="emptyPassword",a.EmptyCode="emptyCode",a.SignUpError="signUpError",a.NoMFA="noMFA",a.InvalidMFA="invalidMFA",a.EmptyChallengeResponse="emptyChallengeResponse",a.NoUserSession="noUserSession",a.Default="default",a.DeviceConfig="deviceConfig",a.NetworkError="networkError",a.AutoSignInError="autoSignInError",(u=i||(i={})).API_KEY="API_KEY",u.AWS_IAM="AWS_IAM",u.OPENID_CONNECT="OPENID_CONNECT",u.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",u.AWS_LAMBDA="AWS_LAMBDA"},14284:function(e,t,n){var o=n(59222);t.Z=function(e){if((0,o.lC)().isBrowser&&window.location)e({url:window.location.href});else if((0,o.lC)().isNode);else throw Error("Not supported")}},23906:function(e,t,n){n.d(t,{CR:function(){return u},Jh:function(){return a},ZT:function(){return r},mG:function(){return s},pi:function(){return i}});var o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};
1function s(e,t,n,o){return new(n||(n=Promise))(function(r,i){function s(e){try{u(o.next(e))}catch(e){i(e)}}function a(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((o=o.apply(e,t||[])).next())})}function a(e,t){var n,o,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,o=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}}}]);

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.