PageSourceSearch

https://www.chobani.com/_next/static/chunks/2_25hluekeb04.js

js chobani.com collected 2026-10-02 02:16:08 UTC 55,856 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,82618,(e,t,o)=>{e.e,t.exports=function(e){var t=[function(e,t,o){e.exports=o(8)},function(e,t,o){e.exports=o(6)()},function(t,o){t.exports=e},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return decodeURIComponent(e.replace(RegExp("^(?:.*[&\\?]"+encodeURIComponent(t).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},a=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),l=n(o(2)),s=n(o(1)),d=n(o(5)),c=n(o(3)),u=function(e){function t(){var e,o,n;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");for(var a=arguments.length,l=Array(a),s=0;s<a;s++)l[s]=arguments[s];return o=n=r(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),n.state={isSdkLoaded:!1,isProcessing:!1},n.responseApi=function(e){window.FB.api("/me",{locale:n.props.language,fields:n.props.fields},function(t){i(t,e),n.props.callback(t)})},n.checkLoginState=function(e){n.setStateIfMounted({isProcessing:!1}),e.authResponse?n.responseApi(e.authResponse):n.props.onFailure?n.props.onFailure({status:e.status}):n.props.callback({status:e.status})},n.checkLoginAfterRefresh=function(e){"connected"===e.status?n.checkLoginState(e):window.FB.login(function(e){return n.checkLoginState(e)},!0)},n.click=function(e){if(n.state.isSdkLoaded&&!n.state.isProcessing&&!n.props.isDisabled){n.setState({isProcessing:!0});var t=n.props,o=t.scope,r=t.appId,i=t.onClick,a=t.returnScopes,l=t.responseType,s=t.redirectUri,c=t.disableMobileRedirect,u=t.authType,p=t.state;if("function"!=typeof i||(i(e),!e.defaultPrevented)){var h={client_id:r,redirect_uri:s,state:p,return_scopes:a,scope:o,response_type:l,auth_type:u};if(n.props.isMobile&&!c)window.location.href="https://www.facebook.com/dialog/oauth"+(0,d.default)(h);else{if(!window.FB)return void(n.props.onFailure&&n.props.onFailure({status:"facebookNotLoaded"}));window.FB.login(n.checkLoginState,{scope:o,return_scopes:a,auth_type:h.auth_type})}}}},r(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1(t,e),a(t,[{key:"componentDidMount",value:function(){if(this._isMounted=!0,document.getElementById("facebook-jssdk"))return void this.sdkLoaded();this.setFbAsyncInit(),this.loadSdkAsynchronously();var e=document.getElementById("fb-root");e||((e=document.createElement("div")).id="fb-root",document.body.appendChild(e))}},{key:"componentWillReceiveProps",value:function(e){this.state.isSdkLoaded&&e.autoLoad&&!this.props.autoLoad&&window.FB.getLoginStatus(this.checkLoginAfterRefresh)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"setStateIfMounted",value:function(e){this._isMounted&&this.setState(e)}},{key:"setFbAsyncInit",value:function(){var e=this,t=this.props,o=t.appId,n=t.xfbml,r=t.cookie,i=t.version,a=t.autoLoad;window.fbAsyncInit=function(){window.FB.init({version:"v"+i,appId:o,xfbml:n,cookie:r}),e.setStateIfMounted({isSdkLoaded:!0}),(a||e.isRedirectedFromFb())&&window.FB.getLoginStatus(e.checkLoginAfterRefresh)}}},{key:"isRedirectedFromFb",value:function(){var e=window.location.search;return(0,c.default)(e,"code")||(0,c.default)(e,"granted_scopes")}},{key:"sdkLoaded",value:function(){this.setState({isSdkLoaded:!0})}},{key:"loadSdkAsynchronously",value:function(){var e,t,o,n=this.props.language;o=t=(e=document).getElementsByTagName("script")[0],e.getElementById("facebook-jssdk")||((o=e.createElement("script")).id="facebook-jssdk",o.src="https://connect.facebook.net/"+n+"/sdk.js",t.parentNode.insertBefore(o,t))}},{key:"render",value:function(){if(!this.props.render)throw Error("ReactFacebookLogin requires a render prop to render");var e={onClick:this.click,isDisabled:!!this.props.isDisabled,isProcessing:this.state.isProcessing,isSdkLoaded:this.state.isSdkLoaded};return this.props.render(e)}}]),t}(l.default.Component);u.propTypes={isDisabled:s.default.bool,callback:s.default.func.isRequired,appId:s.default.string.isRequired,xfbml:s.default.bool,cookie:s.default.bool,authType:s.default.string,scope:s.default.string,state:s.default.string,responseType:s.default.string,returnScopes:s.default.bool,redirectUri:s.default.string,autoLoad:s.default.bool,disableMobileRedirect:s.default.bool,isMobile:s.default.bool,fields:s.default.string,version:s.default.string,language:s.default.string,onClick:s.default.func,onFailure:s.default.func,render:s.default.func.isRequired},u.defaultProps={redirectUri:"u">typeof window?window.location.href:"/",scope:"public_profile,email",returnScopes:!1,xfbml:!1,cookie:!1,authType:"",fields:"name",version:"2.3",language:"en_US",disableMobileRedirect:!1,isMobile:function(){var e=!1;try{e=!!(window.navigator&&window.navigator.standalone||navigator.userAgent.match("CriOS")||navigator.userAgent.match(/mobile/i))}catch(e){}return e}(),onFailure:null,state:"facebookdirect",responseType:"code"},t.default=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"?"+Object.keys(e).map(function(t){return t+"="+encodeURIComponent(e[t])}).join("&")}},function(e,t,o){"use strict";function n(){}var r=o(7);e.exports=function(){function e(e,t,o,n,i,a){if(a!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return o.checkPropTypes=n,o.PropTypes=o,o}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},i=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),a=n(o(2)),l=n(o(1)),s=n(o(9)),d=n(o(4)),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"style",value:function(){var e=this.constructor.defaultProps.cssClass;return this.props.cssClass===e&&a.default.createElement("style",{dangerouslySetInnerHTML:{__html:s.default}})}},{key:"containerStyle",value:function(e){var t=e.isProcessing,o=e.isSdkLoaded,n=e.isDisabled,i={transition:"opacity 0.5s"};return(t||!o||n)&&(i.opacity=.6),r(i,this.props.containerStyle)}},{key:"renderOwnButton",value:function(e){var t=this.props,o=t.cssClass,n=t.size,i=t.icon,l=t.textButton,s=t.typeButton,d=t.buttonStyle,c=e.onClick,u=e.isDisabled,p="str
1ing"==typeof i,h={};return u&&["button","input","select","textarea","optgroup","option","fieldset"].indexOf((this.props.tag+"").toLowerCase())>=0&&(h.disabled=!0),a.default.createElement("span",{style:this.containerStyle(e)},p&&a.default.createElement("link",{rel:"stylesheet",href:"https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"}),a.default.createElement(this.props.tag,r({type:s,className:o+" "+n,style:d,onClick:c},h),i&&p&&a.default.createElement("i",{className:"fa "+i}),i&&!p&&i,l),this.style())}},{key:"render",value:function(){var e=this;return a.default.createElement(d.default,r({},this.props,{render:function(t){return e.renderOwnButton(t)}}))}}]),t}(a.default.Component);c.propTypes={textButton:l.default.string,typeButton:l.default.string,size:l.default.string,cssClass:l.default.string,icon:l.default.any,containerStyle:l.default.object,buttonStyle:l.default.object,tag:l.default.oneOfType([l.default.node,l.default.func])},c.defaultProps={textButton:"Login with Facebook",typeButton:"button",size:"metro",fields:"name",cssClass:"kep-login-facebook",tag:"button"},t.default=c},function(e,t,o){(t=e.exports=o(10)()).push([e.id,".kep-login-facebook{font-family:Helvetica,sans-serif;font-weight:700;-webkit-font-smoothing:antialiased;color:#fff;cursor:pointer;display:inline-block;font-size:calc(.27548vw + 12.71074px);text-decoration:none;text-transform:uppercase;transition:background-color .3s,border-color .3s;background-color:#4c69ba;border:calc(.06887vw + .67769px) solid #4c69ba;padding:calc(.34435vw + 13.38843px) calc(.34435vw + 18.38843px)}.kep-login-facebook.small{padding:calc(.34435vw + 3.38843px) calc(.34435vw + 8.38843px)}.kep-login-facebook.medium{padding:calc(.34435vw + 8.38843px) calc(.34435vw + 13.38843px)}.kep-login-facebook.metro{border-radius:0}.kep-login-facebook .fa{margin-right:calc(.34435vw + 3.38843px)}",""]),t.locals={"kep-login-facebook":"kep-login-facebook",small:"small",medium:"medium",metro:"metro",fa:"fa"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var o=this[t];o[2]?e.push("@media "+o[2]+"{"+o[1]+"}"):e.push(o[1])}return e.join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(n[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&n[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),e.push(a))}},e}}];function o(e){if(n[e])return n[e].exports;var r=n[e]={exports:{},id:e,loaded:!1};return t[e].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}var n={};return o.m=t,o.c=n,o.p="",o(0)}(e.r(91788))},57626,e=>{"use strict";var t=e.i(91398),o=e.i(18572),n=e.i(90680),r=e.i(62416),i=e.i(22924),a=e.i(49825),l=e.i(85558),s=e.i(92960),d=e.i(37170),c=e.i(83310),u=e.i(57246),p=e.i(67493),h=e.i(56194),f=e.i(81753),m=e.i(26432),g=e.i(3660),x=e.i(70938),y=e.i(82404),b=e.i(84760),v=e.i(16350),w=e.i(42659),C=e.i(78121),k=e.i(55632),S=e.i(96488),j=e.i(40410),A=e.i(68489),I=e.i(3828),T=e.i(91788),F=function(e){var t="";if(e){var o=Object.keys(e);o.forEach(function(o){e[o]&&e[o].toString().length&&(t+=o+"="+e[o]+"&")}),o.length>0&&"&"===t[t.length-1]&&(t=t.slice(0,-1))}return t},E=[],O=function(e){var t=(0,T.useState)({loaded:!1,error:!1}),o=t[0],n=t[1];return(0,T.useEffect)(function(){if(E.includes(e))return n({loaded:!0,error:!1}),function(){};E.push(e);var t=document.createElement("script");t.src=e,t.async=!0;var o=function(){n({loaded:!0,error:!1})},r=function(){var o=E.indexOf(e);o>=0&&E.splice(o,1),t.remove(),n({loaded:!0,error:!0})};return t.addEventListener("load",o),t.addEventListener("error",r),document.body.appendChild(t),function(){t.removeEventListener("load",o),t.removeEventListener("error",r)}},[e]),[o.loaded,o.error]},L=void 0;let _=function(e){var t=e.clientId,o=e.redirectURI,n=e.state,r=void 0===n?"":n,i=e.render,a=e.designProp,l=e.responseMode,s=void 0===l?"query":l,d=e.responseType,c=void 0===d?"code":d,u=e.nonce,p=e.callback,h=e.scope,f=e.autoLoad,m=void 0!==f&&f,g=e.usePopup,x=void 0!==g&&g,y=O("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/"+(e&&e.designProp&&e.designProp.locale||"en_US")+"/appleid.auth.js")[0],b=function(e){var n,i,a;return void 0===e&&(e=null),n=void 0,i=void 0,a=function(){var n,i;return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
1,trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){var s=[i,l];if(o)throw TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{o=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}(this,function(a){switch(a.label){case 0:if(e&&e.preventDefault(),x)return[3,1];return window.location.href="https://appleid.apple.com/auth/authorize?"+F({response_type:c,response_mode:s,client_id:t,redirect_uri:encodeURIComponent(o),state:r,nonce:u,scope:"query"===s?"":h}),[3,4];case 1:return a.trys.push([1,3,,4]),[4,AppleID.auth.signIn()];case 2:return n=a.sent(),"function"==typeof p&&n&&p(n),[3,4];case 3:return i=a.sent(),"function"==typeof p&&p({error:i}),[3,4];case 4:return[2]}})},new(i||(i=Promise))(function(e,t){function o(e){try{l(a.next(e))}catch(e){t(e)}}function r(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){t.done?e(t.value):new i(function(e){e(t.value)}).then(o,r)}l((a=a.apply(L,n||[])).next())})};return((0,T.useEffect)(function(){if(!x&&(m&&b(),"function"==typeof p&&"query"===s&&"code"===c&&window&&window.location)){for(var e=void 0,t=/\+/g,o=/([^&=]+)=?([^&]*)/g,n=function(e){return decodeURIComponent(e.replace(t," "))},r=window.location.search.substring(1),i={};e=o.exec(r);)i[n(e[1])]=n(e[2]);i.code&&p({code:i.code})}return function(){}},[]),(0,T.useEffect)(function(){return x&&y&&(AppleID.auth.init({clientId:t,scope:h,redirectURI:o||location.protocol+"//"+location.host+location.pathname,state:r,nonce:u,usePopup:x}),m&&b()),function(){}},[y,x]),"function"==typeof i)?i({onClick:b}):T.default.createElement("div",{id:"appleid-signin",onClick:b},T.default.createElement("img",{src:"https://appleid.cdn-apple.com/appleid/button?"+F(void 0===a?{locale:"en_US"}:a)}))};var P=e.i(48530),R=e.i(47254);let M=(0,T.createContext)(null);function B({clientId:e,onScriptLoadSuccess:t,onScriptLoadError:o,children:n}){let r=function(e={}){let{onScriptLoadSuccess:t,onScriptLoadError:o}=e,[n,r]=(0,T.useState)(!1),i=(0,T.useRef)(t);i.current=t;let a=(0,T.useRef)(o);return a.current=o,(0,T.useEffect)(()=>{let e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.onload=()=>{var e;r(!0),null==(e=i.current)||e.call(i)},e.onerror=()=>{var e;r(!1),null==(e=a.current)||e.call(a)},document.body.appendChild(e),()=>{document.body.removeChild(e)}},[]),n}({onScriptLoadSuccess:t,onScriptLoadError:o}),i=(0,T.useMemo)(()=>({clientId:e,scriptLoadedSuccessfully:r}),[e,r]);return T.default.createElement(M.Provider,{value:i},n)}var z=e.i(22859);let D=z.apiConfig.app.clientId;function N({children:e}){return(0,t.jsx)(B,{clientId:D,children:e})}var G=e.i(64144),H=e.i(76828),U=e.i(93437);let $=(0,U.default)((0,t.jsx)("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"}),"Apple");var q=e.i(80946),W=e.i(82503);function J(e){this.message=e}J.prototype=Error(),J.prototype.name="InvalidCharacterError";var V="u">typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new J("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,n,r=0,i=0,a="";n=t.charAt(i++);~n&&(o=r%4?64*o+n:n,r++%4)&&(a+=String.fromCharCode(255&o>>(-2*r&6))))n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/=".indexOf(n);return a};function Z(e){this.message=e}Z.prototype=Error(),Z.prototype.name="InvalidTokenError";let K=function(e,t){if("string"!=typeof e)throw new Z("Invalid token specified");var o=+(!0!==(t=t||{}).header);try{return JSON.parse(function(e){var t,o=e.replace(/-/g,"+").replace(/_/g,"/");switch(o.length%4){case 0:break;case 2:o+="==";break;case 3:o+="=";break;default:throw"Illegal base64url string!"}try{return t=o,decodeURIComponent(V(t).replace(/(.)/g,function(e,t){var o=t.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}catch(e){return V(o)}}(e.split(".")[o]))}catch(e){throw new Z("Invalid token specified: "+e.message)}};e.i(82618);var Y=e.i(64897),Q=e.i(92544);let X=(0,U.default)((0,t.jsx)("path",{d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"}),"Facebook"),ee=function({onResponse:e}){return(0,S.useTheme)(),(0,T.useEffect)(()=>{var e,t,o;o=(e=document).getElementsByTagName("script")[0],e.getElementById("facebook-jssdk")||((t=e.createElement("script")).id="facebook-jssdk",t.src="https://connect.facebook.net/en_US/sdk.js",o.parentNode.insertBefore(t,o)),window.fbAsyncInit=function(){FB.init({appId:z.apiConfig.integrations.FACEBOOKID,xfbml:!0,version:"v23.0"})}},[]),(0,t.jsx)(r.Button,{variant:"outlined",onClick:()=>{FB.login(function(t){t.authResponse&&FB.api("/me",{fields:"name, email"},function(t){e(t)})},{scope:"public_profile,email"})},startIcon:(0,t.jsx)(X,{sx:{color:"#4267B2",fontSize:"25px !important"}}),sx:{padding:"18px 16px",maxWidth:"500px",display:"flex",width:"100%",height:"100%",borderRadius:"0.6rem",justifyContent:"flex-start",alignItems:"center",border:"1px solid #1A3C34",backgroundColor:"transparent","&:hover":{display:"flex",width:"100%",height:"100%",borderRadius:"0.6rem",border:"1px solid #1A3C34",backgroundColor:"transparent",alignItems:"center",justifyContent:"flex-start",color:"#1A3C34"}
1,color:"#1A3C34",fontFamily:"Chobani-Serif-Regular",cursor:"pointer"},children:(0,t.jsx)(y.Typography,{display:"block",variant:"d2c_h3",textAlign:"left",textTransform:"none",sx:{color:"#1A3C34",fontFamily:"Chobani-Serif-Regular",marginLeft:"15px"},children:"Continue with Facebook"})})};var et=e.i(64961);let eo=T.default.forwardRef(function(e,o){return(0,t.jsx)(W.default,{direction:"up",ref:o,...e})}),en=({setIsAcknowledge:o,setError:n,closeRecipeLogin:i,fromPage:a,bveventid:l})=>{let s,d,c,p=(0,S.useTheme)(),[h,f]=(0,T.useState)(""),[m,g]=(0,T.useState)(""),[b,j]=(0,T.useState)(!1),[A,F]=(0,T.useState)(!1),[E,O]=(0,T.useState)(null),[L,P]=(0,T.useState)(null),[R,B]=(0,T.useState)(null),{setUser:D,cookBookLogin:N}=(0,T.useContext)(Q.default),G=()=>{j(!1)},H=e.r(18749),U=z.apiConfig.app.clientId,W=z.apiConfig.app.scope,J=z.apiConfig.app.pkceRedirectUri,V=z.apiConfig.integrations.APPLEID,Z=z.apiConfig.integrations.APPLEREDIRECT,X=z.apiConfig.app.getUserEndpoint,en=z.apiConfig.app.socialLoginEndpoint,er=z.apiConfig.app.pkceTokenEndpoint;function ei(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ea(e){return H.createHash("sha256").update(e).digest()}let el=e=>{let t,o,n,r=e?.authorization,i=r?.id_token;i&&(t=K(i),o=t?.email,n=t?.sub);try{if(o)fetch(X,{method:"POST",credentials:"include",headers:(0,Y.getHeaders)(),body:JSON.stringify({emailid:o,mobile:""})}).then(function(e){return 200==e.status?e.json():null}).then(e=>{null!=e&&(e?(O({email:o,userID:n}),es({provider:"apple",value:{email:o,userID:n},isExistingUser:!0})):(O({email:o,userID:n}),j(!0),F(!0)))});else throw Error("Not able to get email")}catch(e){}},es=({provider:e,value:t,isExistingUser:r})=>{let i=r||!1;o(!0),i||j(!1);let{email:a,name:l,userID:u,expiresIn:p,id:f}=t||E;d=ei(H.randomBytes(32)),c=ei(H.randomBytes(32)),d&&(s=ei(ea(d))),fetch(en,{method:"POST",credentials:"include",headers:(0,Y.getHeaders)(),body:JSON.stringify({firstName:h||"",lastName:m||"",userName:l||h||"",emailid:a,provider:[e],active:!0,isadmin:!1,issuer:"https://securetoken.google.com/retbgbm",expiresIn:p,audience:"retbgbm",socialUId:u||f,clientId:U,redirectURI:J,scope:W,responseType:"code",state:c,codeChallenge:s,codeChallengeMethod:"SHA256",storeid:"001",storename:""})}).then(function(e){i?200==e.status?e.json().then(e=>{let t=e?.zipCode;e?.state==c?fetch(er,{method:"POST",credentials:"include",headers:(0,Y.getHeaders)(),body:JSON.stringify({clientId:U,redirectUri:J,grantType:"authorization_code",responseType:"token",authCode:e.authorizationCode,codeVerifier:d})}).then(function(e){return 200==e.status?e.json():null}).then(e=>{null!=e?(D(e.firstName),window.localStorage.setItem("checkCart","true"),window.localStorage.setItem("user",(0,et.encryptData)(e.firstName)),window.localStorage.setItem("dvt",(0,et.encryptData)(e.devicetoken)),window.localStorage.setItem("crt",(0,et.encryptData)(e.csrftoken)),window.localStorage.setItem("bvtoken",(0,et.encryptData)(e.bvtoken)),window.localStorage.setItem("loggedin",!0),window.localStorage.setItem("zip",t),eu()):n("Something went wrong ")}):n("Something went wrong ")}):(n("Something went wrong "),403==e.status?e.json().then(e=>{e?.error?.message&&n("Your account locked")}):401==e.status?n("Please enter valid credentials"):n("Something went wrong")):200==e.status?e.json().then(e=>{let t=e?.zipCode;e?.state==c?fetch(er,{method:"POST",credentials:"include",headers:(0,Y.getHeaders)(),body:JSON.stringify({clientId:U,redirectUri:J,grantType:"authorization_code",responseType:"token",authCode:e.authorizationCode,codeVerifier:d})}).then(function(e){return 200==e.status?e.json():null}).then(e=>{null!=e?(D(e.firstName),window.localStorage.setItem("checkCart","true"),window.localStorage.setItem("user",(0,et.encryptData)(e.firstName)),window.localStorage.setItem("dvt",(0,et.encryptData)(e.devicetoken)),window.localStorage.setItem("crt",(0,et.encryptData)(e.csrftoken)),window.localStorage.setItem("bvtoken",(0,et.encryptData)(e.bvtoken)),window.localStorage.setItem("loggedin",!0),window.localStorage.setItem("zip",t),eu()):n("Something went wrong ")}):ed(e)}):n("Something went wrong ")})},ed=e=>
1{if(e?.fieldErrors){if("password"==e.fieldErrors[0].field)n(e.fieldErrors[0].message.split(","));else{let t=e.fieldErrors[0].field,o=t.charAt(0).toUpperCase()+t.slice(1)+" "+e.fieldErrors[0].message;t&&n(o.split(","))}window.scrollTo(0,0)}else n(e?.error?.message),e?.error?.message=="email already exists"&&e?.fieldErrors==null?n("Email Address Already Exists"):e?.error?.message==null&&e?.fieldErrors==null?n("Something went wrong"):n(e?.error?.message),window.scrollTo(0,0)},ec=function({flow:e="implicit",scope:t="",onSuccess:o,onError:n,...r}){let{clientId:i,scriptLoadedSuccessfully:a}=function(){let e=(0,T.useContext)(M);if(!e)throw Error("Google OAuth components must be used within GoogleOAuthProvider");return e}(),l=(0,T.useRef)(),s=(0,T.useRef)(o);s.current=o;let d=(0,T.useRef)(n);d.current=n,(0,T.useEffect)(()=>{var o;if(!a)return;let n="implicit"===e?"initTokenClient":"initCodeClient";l.current=null==(o=window.google)?void 0:o.accounts.oauth2[n]({client_id:i,scope:`openid profile email ${t}`,callback:e=>{var t,o;if(e.error)return null==(t=d.current)?void 0:t.call(d,e);null==(o=s.current)||o.call(s,e)},...r})},[i,a,e,t]);let c=(0,T.useCallback)(e=>l.current.requestAccessToken(e),[]),u=(0,T.useCallback)(()=>l.current.requestCode(),[]);return"implicit"===e?c:u}({onSuccess:e=>(function(e){o(!0);let{access_token:t,exp:r}=e;fetch("https://www.googleapis.com/oauth2/v3/userinfo?access_token="+t).then(function(e){200===e.status?e.json().then(e=>{let{sub:t,email:o,given_name:i,family_name:a}=e;d=ei(H.randomBytes(32)),c=ei(H.randomBytes(32)),d&&(s=ei(ea(d))),fetch(en,{method:"POST",credentials:"include",headers:(0,Y.getHeaders)(),body:JSON.stringify({firstName:i||"",lastName:a||"",userName:i,emailid:o,provider:["google"],active:!0,isadmin:!1,issuer:"https://securetoken.google.com/retbgbm",expiresIn:r,audience:"retbgbm",socialUId:t,clientId:U,redirectURI:J,scope:W,responseType:"code",state:c,codeChallenge:s,codeChallengeMethod:"SHA256",storeid:"001",storename:""})}).then(function(e){200===e.status?e.json().then(e=>{let t=e?.zipCode;e?.state==c?fetch(er,{method:"POST",credentials:"include",headers:(0,Y.getHeaders)(),body:JSON.stringify({clientId:U,redirectUri:J,grantType:"authorization_code",responseType:"token",authCode:e.authorizationCode,codeVerifier:d})}).then(function(e){return 200==e.status?e.json():null}).then(e=>{null!=e?(D(e.firstName),window.localStorage.setItem("checkCart","true"),window.localStorage.setItem("user",(0,et.encryptData)(e.firstName)),window.localStorage.setItem("dvt",(0,et.encryptData)(e.devicetoken)),window.localStorage.setItem("crt",(0,et.encryptData)(e.csrftoken)),window.localStorage.setItem("bvtoken",(0,et.encryptData)(e.bvtoken)),window.localStorage.setItem("loggedin",!0),window.localStorage.setItem("zip",t),eu()):n("Something went wrong ")}):n("Something went wrong ")}):(n("Something went wrong "),403==e.status?e.json().then(e=>{e?.error?.message&&n("Your account locked")}):401==e.status?n("Please enter valid credentials"):n("Something went wrong"))})}):n("Not able to fetch details for the requested User")})})(e)}),eu=()=>{let e=(0,et.decryptData)(window.localStorage.getItem("bvtoken"))||"",t=/^[A-Za-z0-9\-_\.]+$/.test(e)?e:"",o=/^[A-Za-z0-9\-]+$/.test(l)?l:"";return void 0==a&&o?window.open(`/container.html?bveventid=${o}&bvuserToken=${t}`,"_self"):void 0==a&&void 0==l?I.default.back():"dialog"==a&&N?I.default.push("/account?tabValue=cookbook"):void i(!0)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("link",{rel:"stylesheet",href:"https://use.fontawesome.com/releases/v5.12.0/css/all.css"}),(0,t.jsx)(u.GridLegacy,{container:!0,sx:{position:"relative",marginTop:p.spacing(1.5)},children:(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,md:12,children:(0,t.jsxs)(u.GridLegacy,{container:!0,spacing:1.5,children:[(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,md:12,children:(0,t.jsx)(ee,{onResponse:e=>{let{email:t}=e;if(!e.hasOwnProperty("error")&&null!=t&&void 0!=t)try{fetch(X,{method:"POST",credentials:"include",headers:(0,Y.getHeaders)(),body:JSON.stringify({emailid:t.toLowerCase(),mobile:""})}).then(function(e){return 200==e.status?e.json():null}).then(t=>{null!=t&&(t?(O(e),es({provider:"facebook",value:e,isExistingUser:!0})):(O(e),j(!0)))})}catch(e){}}})}),(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,md:12,children:(0,t.jsx)(_,{clientId:V,redirectURI:Z,usePopup:!0,scope:"name email",responseType:"code id_token",responseMode:"form_post",callback:el,onFailure:el,render:e=>(0,t.jsxs)(r.Button,{"aria-label":"Continue with Apple",variant:"outlined",sx:{width:"100%",height:"100%",maxWidth:"500px",borderRadius:"0.6rem",justifyContent:"flex-start !important",alignItems:"center",border:"1px solid #1A3C34 !important",background:"#F3F4F0 !important",padding:"18px 16px !important",lineHeight:"1",boxShadow:"none !important",outline:"none !important","&:hover, &:focus, &:active":{border:"1px solid #1A3C34 !important",background:"#F3F4F0 !important",padding:"18px 16px !important",boxShadow:"none !important",outline:"none !important",lineHeight:"1",alignItems:"center",justifyContent:"flex-start !important"}},onClick:e.onClick,children:[" ",(0,t.jsx)($,{sx:{color:"black",fontSize:"25px !important"}}),(0,t.jsx)(y.Typography,{display:"block",variant:"d2c_h3",textAlign:"left",textTransform:"none",sx:{color:"#1A3C34",fontFamily:"Chobani-Serif-Regular",marginLeft:"15px"},children:"Continue with Apple"})]})})}),(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,md:12,children:(0,t.jsxs)(r.Button,{"aria-label":"Continue with Google",variant:"outlined",sx:{width:"100%",height:"100%",maxWidth:"500px",borderRadius:"0.6rem",justifyContent:"flex-start !important",alignItems:"center",border:"1px solid #1A3C34 !important",background:"#F3F4F0 !important",padding:"18px 16px !important",lineHeight:"1",boxShadow:"none !important",outline:"none !important","&:hover, &:focus, &:active":{border:"1px solid #1A3C34 !important",background:"#F3F4F0 !important",padding:"18px 16px !important",boxShadow:"none !important",outline:"none !important",lineHeight:"1",alignItems:"center",justifyContent:"flex-start !important"}},onClick:e=>ec(),children:[(0,t.jsx)("i",{className:"fab fa-google",style:{height:"25px",width:"25px",paddingTop:"3px"}}),(0,t.jsx)(y.Typography,{display:"block",variant:"d2c_h3",textAlign:"left",textTransform:"none",sx:{color:"#1A3C34",fontFamily:"Chobani-Serif-Regular",marginLeft:"15px"},children:"Continue with Google"})]})})]})})}),(0,t.jsxs)(v.default,{open:b,TransitionComponent:eo,keepMounted:!0,onClose:G,fullWidth:!0,maxWidth:"sm",children:[(0,t.jsx)(k.default,{children:(0,t.jsx)(y.Typography,{display:"block",variant:"d2c_h3",textTransform:"none",fontFamily:"Chobani-Serif-Regular",sx:{color:"#1A3C34"},children:"Need Few details!"})}),(0,t.jsx)(w.default,{children:(0,t.jsx)(C.default,{component:"div",id:"alert-dialog-slide-description",children:(0,t.jsxs)(u.GridLegacy,{container:!0,spacing:2,children:[(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,md:6,children:(0,t.jsxs)(u.GridLegacy,{container:!0,direction:"column",children:[(0,t.jsx)(u.GridLegacy,{item:!0,children:(0,t.jsx)(y.Typography,{variant:"d2c_p",display:"block",style:{color:"#1A3C34",fontFamily:"Chobani-Serif-Regular"},children:"First Name"})}),(0,t.jsx)(u.GridLegacy,{item:!0,children:(0,t.jsx)(x.TextField,{required:!0,id:"firstname",alt:"Enter your FirstName",sx:{marginTop:"3%",width:"100%",color:"#1A3C34 !important","& .MuiOutlinedInput-root:hover":{"& > fieldset":{borderColor:"#1A3C34"}},"& .MuiOutlinedInput-root":{"& > fieldset":{borderColor:"#1A3C34"}},"& .MuiInputLabel-root":{color:"#1A3C34"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"0.6rem"},"& .MuiOutlinedInput-root.Mui-focused":{"& > fieldset":{borderColor:"#1A3C34"}}},inputProps:{style:{color:"#1A3C34",fontFamily:"Chobani-Serif-Regular"}},onChange:function(e){null!=e.target.value.match("^[a-zA-Z -]*$")?(f(e.target.value),P(null)):P("Enter Alphabets Only")},value:h,onBlur:function(e){null!=e.target.value.match("^[a-zA-Z -]*$")?(f(e.target.value),P(null)):P("Enter Letters Only")},error:L})}),(0,t.jsxs)(u.GridLegacy,{item:!0,marginTop:"0.8rem",children:[(0,t.jsx)(y.Typography,{variant:"d2c_link",display:"block",sx:{color:"red",visibility:L?"visible":"hidden"},children:L}),(0,t.jsx)(y.Typography,{variant:"d2c_link",display:"block",sx:{visibility:"hidden",display:L?"none":"inherit"},children:"placeholder"})]})]})}),(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,md:6,children:(0,t.jsxs)(u.GridLegacy,{container:!0,direction:"column",children:[(0,t.jsx)(u.GridLegacy,{item:!0,children:(0,t.jsx)(y.Typography,{variant:"d2c_p",display:"block",style:{color:"#1A3C34",fontFamily:"Chobani-Serif-Regular"},children:"Last Name"})}),(0,t.jsx)(u.GridLegacy,{item:!0,children:(0,t.jsx)(x.TextField,{required:!0,id:"lastname",alt:"Enter your LastName",sx:{marginTop:"3%",width:"100%",color:"#1A3C34","& .MuiOutlinedInput-root:hover":{"& > fieldset":{borderColor:"#1A3C34"}},"& .MuiOutlinedInput-root":{"& > fieldset":{borderColor:"#1A3C34"}},"& .MuiInputLabel-root":{color:"#1A3C34"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"0.6rem"},"& .MuiOutlinedInput-root.Mui-focused":{"& > fieldset":{borderColor:"#1A3C34"}}},inputProps:{style:{color:"#1A3C34",fontFamily:"Chobani-Serif-Regular"}},onChange:function(e){null!=e.target.value.match("^[a-zA-Z -]*$")?(g(e.target.value),B(null)):B("Enter Alphabets Only")},onBlur:function(e){null!=e.target.value.match("^[a-zA-Z -]*$")?(g(e.target.value),B(null)):B("Enter Letters Only")},value:m,error:R})}),(0,t.jsxs)(u.GridLegacy,{item:!0,marginTop:"0.8rem",children:[(0,t.jsx)(y.Typography,{variant:"d2c_link",display:"block",sx:{color:"red",visibility:R?"visible":"hidden"},children:R}),(0,t.jsx)(y.Typography,{variant:"d2c_link",display:"block",sx:{visibility:"hidden",display:R?"none":"inherit"},children:"placeholder"})]})]})})]})})}),(0,t.jsxs)(q.default,{children:[(0,t.jsx)(r.Button,{"aria-label":"Cancel",sx:{borderColor:"#1B3A32",color:"#E8E6DF",background:"#1B3A32",borderRadius:"0.6rem","&:hover":{borderColor:"#1B3A32",color:"#E8E6DF",background:"#1B3A32",borderRadius:"0.6rem"}},onClick:G,children:(0,t.jsx)(y.Typography,{display:"block",variant:"d2c_link",textTransform:"none",fontFamily:"Chobani-Serif-Regular",children:"Cancel"})}),(0,t.jsx)(r.Button,{"aria-label":"Proceed",sx:{borderColor:"#1B3A32",color:"#E8E6DF",background:"#1B3A32",borderRadius:"0.6rem","&:hover":{borderColor:"#1B3A32",color:"#E8E6DF",background:"#1B3A32",borderRadius:"0.6rem"}},onClick:()=>void(h?.length==0&&P("Enter a proper value"),m?.length==0&&B("Enter a proper value"),null!=L&&P("Cannot proceed with error!"),null!=R&&B("Cannot proceed with error!"),h?.length>0&&m?.length>0&&null==L&&null==R&&es({provider:A?"apple":"facebook"})),children:(0,t.jsx)(y.Typography,{display:"block",variant:"d2c_link",textTransform:"none",fontFamily:"Chobani-Serif-Regular",children:"Proceed"})})]})]})]})};var er=e.i(58678),ei=e.i(98092),ea=e.i(17433);let el=T.default.forwardRef(function(e,o){return(0,t.jsx)(b.default,{ref:o,elevation:6,variant:"filled",...e})}),es=e.r(18749),ed=e=>({top:{color:"#1B3A32",animationDuration:"550ms",position:"absolute"},circle:{strokeLinecap:"round"}}),ec=({fromPage:e,setShowRegister:b,closeRecipeLogin:A})=>{let F,E,[O,L]=(0,T.useState)(),[M,B]=(0,T.useState)(!1),[D,U]=(0,T.useState)(""),[$,q]=(0,T.useState)(""),[W,J]=(0,T.useState)(""),[V,Z]=(0,T.useState)(""),[K,X]=(0,T.useState)(!1),[ee,eo]=(0,T.useState)(""),{user:ec,setUser:eu,cookBookLogin:ep,setShowCursor:eh,isMobileOnly:ef,isDesktop:em}=(0,T.useContext)(Q.default),[eg,ex]=(0,T.useState)(!1),[ey,eb]=(0,T.useState)(!1),[ev,ew]=T.default.useState(!1),[eC,ek]=(0,T.useState)(""),[eS,ej]=T.default.useState(!1),[eA,eI]=(0,T.useState)(!1),[eT,eF]=(0,T.useState)(!0),[eE,eO]=(0,T.useState)(!1),eL=(0,I.useRouter)(),e_=(0,S.useTheme)(),eP=e_?.breakpoints?e_:(0,j.createTheme)(),eR=ed(eP),eM=e=>{U(e.target.value)},eB=()=>{B(!M)},ez=e=>{e.preventDefault()};function eD(e){R.default.isEmail(e.target.value)?(J(e.target.value),Z(null)):(J(e.target.value),Z("Please enter a valid email address"))}function eN(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}async function eG(e,t,o){if(e&&t){let o=eN(es.randomBytes(32)),n=eN(es.randomBytes(32)),r=z.apiConfig.app.pkceLoginEndpoint,i=z.apiConfig.app.pkceTokenEndpoint,a=z.apiConfig.app.clientId,l=z.apiConfig.app.scope,s=z.apiConfig.app.pkceRedirectUri;o&&(F=eN(es.createHash("sha256").update(o).digest())),await fetch(r,{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json","x-loggedin":"false","x-site":"chobanid2c|en-US|GBP"},body:JSON.stringify({emailid:e.toLowerCase(),password:t,clientId:a,redirectURI:s,scope:l,responseType:"code",state:n,codeChallenge:F,codeChallengeMethod:"SHA256",client_id:a,redirect_uri:s,code_challenge:F,code_challenge_method:"SHA256"})}).then(e=>e.json().then(t=>({data:t,status:e.status})).then(e=>{if(200==e.status){let t=e.data.zipCode;e?.data?.snacksPreference?.dietary&&localStorage.setItem("dietary",JSON.stringify(e?.data?.snacksPreference?.dietary)),e?.data?.snacksPreference?.favSnacks&&localStorage.setItem("favSnacks",JSON.stringify(e?.data?.snacksPreference?.favSnacks)),e.data.state==n?fetch(i,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","x-loggedin":"false","x-site":"chobanid2c|en-US|GBP"},credentials:"include",body:JSON.stringify({clientId:a,redirectUri:s,grantType:"authorization_code",responseType:"token",authCode:e.data.authorizationCode,codeVerifier:o})}).then(e=>e.json().then(t=>({data:t,status:e.status})).then(e=>{200==e.status?(eu(e.data.firstName),window.localStorage.setItem("user",(0,et.encryptData)(e.data.firstName)),eu(e.data.firstName),window.localStorage.setItem("checkCart","true"),window.localStorage.setItem("dvt",(0,et.encryptData)(e.data.devicetoken)),window.localStorage.setItem("bvtoken",(0,et.encryptData)(e.data.bvtoken)),window.localStorage.setItem("crt",(0,et.encryptData)(e.data.csrftoken)),window.localStorage.setItem("loggedin",!0),window.localStorage.setItem("kmli",JSON.stringify(K)),window.localStorage.setItem("zip",t),eH()):eo("Please enter valid email or password")})):eo("Please enter valid email or password")}else eo("Please enter valid email or password"),403==e.status&&e.data.errorMessage?eo("Your account is locked, please reset your password"):(e.status,eo("Please enter valid email or password"))}))}else e?q("Please enter password"):(t||q("Please enter password"),Z("Please enter a valid email address"))}(0,T.useEffect)(()=>{eL?.query?.bveventid&&L(eL?.query?.bveventid),eh(!1)},[eL.query]),(0,T.useEffect)(()=>{"Guest"!=ec&&(0,et.decryptData)(localStorage.getItem("loggedin"))&&void 0!=ec&&eL.push("/account")},[]);let eH=()=>{E=(0,et.decryptData)(window.localStorage.getItem("bvtoken"))||"";let t=/^[A-Za-z0-9\-_\.]+$/.test(E)?E:"",o=/^[A-Za-z0-9\-]+$/.test(O)?O:"",{from:n}=eL.query;return void 0!=n?eL.push("/"):void 0==e&&o?window.open(`/container.html?bveventid=${o}&bvuserToken=${t}`,"_self"):void 0==e&&void 0==O?I.default.back():"dialog"==e&&void 0==O&&ep?I.default.push("/"):void A(!0)},eU=()=>{ex(!0)},e$=()=>{ej(!1),ew(!1)},[eq,eW]=(0,T.useState)(""),[eJ,eV]=(0,T.useState)(),[eZ,eK]=(0,T.useState)(!1),[eY,eQ]=(0,T.useState)(""),{observe:eX,width:e0,height:e1}=(0,P.default)(),e3=ed(eP);(0,T.useEffect)(()=>{setTimeout(()=>
1{[...document.getElementsByTagName("script")].filter(e=>e.src.includes("appleid")).length>0&&eF(!1)},1e3)},[]);let e2=e=>{"Enter"===e.key&&eG(W,D)};return(0,t.jsxs)(l.Container,{maxWidth:"xl",sx:"dialog"!=e?{padding:"0 !important",margin:"auto",top:"65px",position:"absolute",height:"calc(100vh - 65px)",background:"#F3F4F0 !important"}:{padding:"0px 8px 0px 8px"},ref:eX,children:[(0,t.jsx)(er.default,{children:(0,t.jsx)("title",{children:"Login | Chobani®"})}),eT&&(0,t.jsxs)(u.GridLegacy,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:[(0,t.jsx)(a.CircularProgress,{variant:"indeterminate",disableShrink:!0,className:e3.top,classes:{circle:e3.circle},size:40,thickness:4}),(0,t.jsx)(u.GridLegacy,{sx:{display:"none"},children:(0,t.jsx)(_,{clientId:"",redirectURI:""})})]}),!eT&&(0,t.jsxs)(m.Paper,{elevation:0,sx:"dialog"!=e?{width:`${Math.round(e0)}px`,height:{md:`${Math.round(e1)}px`,sm:`${Math.round(e1)}px`},background:"#F3F4F0 !important"}:{width:`${Math.round(e0)}px`,background:"#F3F4F0 !important"},children:[(0,t.jsxs)(u.GridLegacy,{item:!0,sm:12,xs:12,md:12,sx:{height:"100%"},children:[!eA&&(0,t.jsxs)(u.GridLegacy,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",sx:{height:"dialog"!=e&&"100%"},children:[em||!ef?(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,sm:12,md:12,children:(0,t.jsxs)(y.Typography,{textAlign:"center",display:"block",variant:"d2c_h2",sx:{[eP.breakpoints.down("sm")]:{paddingTop:"dialog"==e?"30px":"
115%"},color:"#1A3C34",lineHeight:"1em",paddingTop:"dialog"==e?"50px":"1%",fontFamily:"Chobani-Serif-Regular"},children:["Log in with your email address",(0,t.jsx)("br",{}),"or create an account."]})}):(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,sm:12,md:12,children:(0,t.jsx)(y.Typography,{textAlign:"center",display:"block",variant:"d2c_h2",sx:{color:"#1A3C34",padding:"2rem 1rem 0rem 1rem",lineHeight:"1em",fontFamily:"Chobani-Serif-Regular"},children:"Log in with your email address or create an account."})}),(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,sm:12,md:12,sx:{[eP.breakpoints.down("sm")]:{paddingTop:"dialog"==e?"0px":"1%",margin:"dialog"==e?"30px 0px 0px 0px":"30px 0px"},margin:"dialog"==e?"50px 0px 0px 0px":"2% 0%",paddingTop:"dialog"==e?"0px":"1% !important","@media all and (min-width:1920px)":{margin:"dialog"==e?"50px 0rem 0px 0rem":"1rem 0rem 8rem 0rem"},"@media all and (min-width:2560px)":{margin:"dialog"==e?"50px 0rem 0px 0rem":"1rem 0rem 13rem 0rem"}},children:(0,t.jsxs)(u.GridLegacy,{container:!0,md:12,sx:{paddingTop:"0%",paddingLeft:{xs:"4%"},paddingRight:"4%",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"stretch","@media all and (max-width:500px)":{maxWidth:"500px"}},children:[(0,t.jsxs)(u.GridLegacy,{item:!0,xs:12,sm:12,md:5.5,sx:{maxWidth:"500px !important"},children:[(0,t.jsxs)(u.GridLegacy,{container:!0,spacing:1,children:[(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,md:12,sx:{display:{md:"block",sm:"none",xs:"none"}},children:(0,t.jsx)(x.TextField,{variant:"outlined",id:"emailid",placeholder:"Email Address",alt:"Enter your email address",color:"success",size:"medium",sx:{width:"100%",color:"#1A3C34","& .MuiOutlinedInput-root:hover":{"& > fieldset":{borderColor:"#1A3C34"}},"& .MuiOutlinedInput-root":{"& > fieldset":{borderColor:"#1A3C34"}},"& .MuiInputLabel-root":{color:"#1A3C34"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"0.6rem"},"& .MuiOutlinedInput-root.Mui-focused":{"& > fieldset":{borderColor:"#1A3C34"}}},inputProps:{sx:{color:"#1A3C34",fontFamily:"Chobani-Serif-Regular","@media all and (max-width: 899px)":{fontSize:"1.3rem",lineHeight:"1",letterSpacing:"-.1px"},"@media all and (min-width:900px) and (max-width:1199px)":{fontSize:"1.4rem",lineHeight:"1",letterSpacing:"-.1px"},"@media all and (min-width:1200px)":{fontSize:"1.6rem",lineHeight:"1",letterSpacing:"-.2px"}},className:eR.input},value:W,onChange:eD,error:V})}),(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,sm:12,md:12,sx:{display:{md:"none",sm:"block",xs:"block"}},children:(0,t.jsx)(x.TextField,{variant:"outlined",id:"emailid",placeholder:"Email Address",alt:"Enter your email address",color:"success",size:"small",sx:{width:"100%",color:"#1A3C34","& .MuiOutlinedInput-root:hover":{"& > fieldset":{borderColor:"#1A3C34"}},"& .MuiOutlinedInput-root":{"& > fieldset":{borderColor:"#1A3C34"}},"& .MuiInputLabel-root":{color:"#1A3C34"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"0.6rem"},"& .MuiOutlinedInput-root.Mui-focused":{"& > fieldset":{borderColor:"#1A3C34"}},"-webkit-box-shadow":"0 0 0px 1000px #f3f4f0 inset"},inputProps:{sx:{color:"#1A3C34",fontFamily:"Chobani-Serif-Regular","@media all and (max-width: 899px)":{fontSize:"1.3rem",lineHeight:"1",letterSpacing:"-.1px"},"@media all and (min-width:900px) and (max-width:1199px)":{fontSize:"1.4rem",lineHeight:"1",letterSpacing:"-.1px"},"@media all and (min-width:1200px)":{fontSize:"1.6rem",lineHeight:"1",letterSpacing:"-.2px"}},className:eR.input},value:W,onChange:eD,error:V})}),(0,t.jsxs)(u.GridLegacy,{item:!0,sm:12,md:12,sx:{"@media (max-width:600px) and (min-width:400px)":{marginTop:"-1%"},"@media (max-width:400px)":{marginTop:"-2%"}},children:[(0,t.jsx)(y.Typography,{variant:"d2c_link",display:"block",sx:{color:"red",visibility:V?"visible":"hidden"},children:V}),(0,t.jsx)(y.Typography,{variant:"d2c_link",display:"block",sx:{visibility:"hidden",display:V?"none":"inherit"},children:"placeholder"})]}),(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,md:12,paddingTop:"0%",sx:{display:{md:"block",sm:"none",xs:"none"}},children:(0,t.jsx)(x.TextField,{id:"password",variant:"outlined",placeholder:"Enter Password",alt:"Enter your Password",type:M?"text":"password",color:"success",size:"medium",sx:{width:"100%",color:"#1A3C34","& .MuiOutlinedInput-root:hover":{"& > fieldset":{borderColor:"#1A3C34"}},"& .MuiOutlinedInput-root":{"& > fieldset":{borderColor:"#1A3C34"}},"& .MuiInputLabel-root":{color:"#1A3C34"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"0.6rem"},"& .MuiOutlinedInput-root.Mui-focused":{"& > fieldset":{borderColor:"#1A3C34"}}},inputProps:{sx:{color:"#1A3C34",fontFamily:"Chobani-Serif-Regular","@media all and (max-width: 899px)":{fontSize:"1.3rem",lineHeight:"1",letterSpacing:"-.1px"}
1,"@media all and (min-width:900px) and (max-width:1199px)":{fontSize:"1.4rem",lineHeight:"1",letterSpacing:"-.1px"},"@media all and (min-width:1200px)":{fontSize:"1.6rem",lineHeight:"1",letterSpacing:"-.2px"}},className:eR.input},value:D,onChange:eM,error:$,InputProps:{endAdornment:(0,t.jsx)(h.InputAdornment,{position:"end",children:(0,t.jsx)(p.IconButton,{"aria-label":"toggle password visibility",onClick:eB,onMouseDown:ez,children:M?(0,t.jsx)(o.default,{}):(0,t.jsx)(n.default,{})})})},onKeyPress:e=>e2(e)})}),(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,sm:12,md:12,paddingTop:"0%",sx:{display:{md:"none",sm:"block",xs:"block"}},children:(0,t.jsx)(x.TextField,{id:"password",variant:"outlined",placeholder:"Enter Password",alt:"Enter your Password",type:M?"text":"password",color:"success",size:"small",sx:{width:"100%",color:"#1A3C34","& .MuiOutlinedInput-root:hover":{"& > fieldset":{borderColor:"#1A3C34"}},"& .MuiOutlinedInput-root":{"& > fieldset":{borderColor:"#1A3C34"}},"& .MuiInputLabel-root":{color:"#1A3C34"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"0.6rem"},"& .MuiOutlinedInput-root.Mui-focused":{"& > fieldset":{borderColor:"#1A3C34"}}},inputProps:{sx:{color:"#1A3C34",fontFamily:"Chobani-Serif-Regular","@media all and (max-width: 899px)":{fontSize:"1.3rem",lineHeight:"1",letterSpacing:"-.1px"},"@media all and (min-width:900px) and (max-width:1199px)":{fontSize:"1.4rem",lineHeight:"1",letterSpacing:"-.1px"},"@media all and (min-width:1200px)":{fontSize:"1.6rem",lineHeight:"1",letterSpacing:"-.2px"}},className:eR.input},value:D,onChange:eM,error:$,InputProps:{endAdornment:(0,t.jsx)(h.InputAdornment,{position:"end",children:(0,t.jsx)(p.IconButton,{"aria-label":"toggle password visibility",onClick:eB,onMouseDown:ez,children:M?(0,t.jsx)(o.default,{}):(0,t.jsx)(n.default,{})})})},onKeyPress:e=>e2(e)})}),(0,t.jsxs)(u.GridLegacy,{item:!0,xs:12,sm:12,md:12,sx:{"@media (max-width:600px) and (min-width:400px)":{marginTop:"-1.5%"},"@media (max-width:400px)":{marginTop:"-2%"}},children:[(0,t.jsx)(y.Typography,{variant:"d2c_link",display:"block",sx:{color:"red",visibility:$||ee?"visible":"hidden"},children:$||ee}),(0,t.jsx)(y.Typography,{variant:"d2c_link",display:"block",sx:{visibility:"hidden",display:$||ee?"none":"inherit"},children:"placeholder"})]})]}),(0,t.jsxs)(u.GridLegacy,{container:!0,spacing:1,sx:{justifyContent:"center",alignItems:"center","@media all and (max-width:899px)":{paddingBottom:"1rem"},"@media (max-width:600px)":{marginTop:"-4%"}},children:[(0,t.jsx)(u.GridLegacy,{item:!0,xs:6,md:6,children:(0,t.jsx)(c.FormControlLabel,{control:(0,t.jsx)(i.Checkbox,{disableFocusRipple:!0,disableRipple:!0,disableTouchRipple:!0,size:"16px",icon:(0,t.jsx)(ei.default,{}),checkedIcon:(0,t.jsx)(ea.default,{}),sx:{padding:"0px 0px 0px 11px",color:"#1A3C34","&.Mui-checked":{color:"#1A3C34"},"&:hover":{backgroundColor:"transparent"}},checked:K,onChange:e=>{X(e.target.checked)}}),label:(0,t.jsx)(y.Typography,{display:"block",variant:"d2c_link",sx:{color:"#1A3C34",fontFamily:"Chobani-Sans-Regular",padding:"1px 0px 0px 10px"},children:"Remember me"})})}),(0,t.jsx)(u.GridLegacy,{item:!0,xs:6,md:6,children:(0,t.jsx)(f.Link,{onClick:()=>{ew(!0)},style:{color:"#1A3C34",textDecorationColor:"#1A3C34",cursor:"pointer"},children:(0,t.jsx)(y.Typography,{align:"right",display:"block",variant:"d2c_link",sx:{color:"#1A3C34",fontFamily:"Chobani-Sans-Regular"},children:"Forgot your password?"})})})]}),(0,t.jsx)(u.GridLegacy,{item:!0,sm:12,xs:12,sx:{mt:{md:"5%",xs:"2%"}},children:(0,t.jsx)(r.Button,{"aria-label":"Log in",sx:[eR.loginbutton,{background:"#1A3C34",color:"#F6F2F1",borderColor:"#1A3C34","&:hover":{background:"#1A3C34",color:"#F6F2F1",borderColor:"#1A3C34"}}],variant:"outlined",onClick:e=>{eG(W,D)},children:(0,t.jsx)(y.Typography,{display:"block",variant:"d2c_link",textTransform:"none",children:"Log in"})})})]}),(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,sm:12,md:.5,sx:{display:{md:"block",sm:"none",xs:"none"}},children:(0,t.jsx)(d.Divider,{orientation:"vertical",color:"black",children:(0,t.jsx)(y.Typography,{display:"block",variant:"d2c_link",textAlign:"center",style:{color:"#1A3C34",lineHeight:"1em"},children:"or"})})}),(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,sm:12,sx:{width:"90%",mb:"1%",display:{md:"none",sm:"block",xs:"block"},padding:"dialog"==e?"30px 0px":"10% 0% 6% 0%"},children:(0,t.jsx)(d.Divider,{children:(0,t.jsx)(y.Typography,{textAlign:"center",display:"block",variant:"d2c_link",sx:{color:"#1A3C34",lineHeight:"1em"},children:"or"})})}),(0,t.jsxs)(u.GridLegacy,{item:!0,xs:!0,md:5.7,sx:{maxWidth:"500px !important"},children:[(0,t.jsx)(r.Button,{"aria-label":"Create a new account",variant:"outlined",sx:{padding:"18px 16px 18px 16px",
1width:"100%",alignItems:"left",borderColor:"#1A3C34",maxWidth:"500px",borderRadius:"0.6rem",backgroundColor:"#1A3C34",justifyContent:"flex-start","&:hover":{backgroundColor:"#1A3C34",borderColor:"#1A3C34",borderRadius:"0.6rem"}},onClick:t=>(function(){if(void 0==e)return I.default.push("/register");b(!0)})(),children:(0,t.jsx)(y.Typography,{display:"block",variant:"d2c_h3",textAlign:"left",textTransform:"none",sx:{color:"#EAE8E1"},children:"Create a new account"})}),(0,t.jsx)(N,{children:(0,t.jsx)(en,{setIsAcknowledge:eI,setError:eo,closeRecipeLogin:A,fromPage:e,bveventid:O})})]})]})}),(0,t.jsx)(u.GridLegacy,{item:!0,xs:12,sm:12,md:12,sx:{[eP.breakpoints.up("sm")]:{paddingBottom:"50px",margin:"dialog"==e?"50px 0px 0px 0px":"2% auto"},[eP.breakpoints.down("sm")]:{paddingBottom:"30px",margin:"dialog"==e?"30px 0px 0px 0px":"2% auto"},maxWidth:"96%"},children:(0,t.jsxs)(y.Typography,{textAlign:"center",display:"block",variant:"d2c_link",sx:{color:"#1A3C34",fontFamily:"Chobani-Sans-Regular",padding:"0 !important"},children:["By continuing, you agree to the ",(0,t.jsx)(f.Link,{style:{color:"#1A3C34",cursor:"pointer",textDecorationColor:"#1A3C34"},onClick:()=>{eU(),eb(!0)},children:"Terms of Service"})," and acknowledge our ",(0,t.jsx)(f.Link,{onClick:eU,style:{color:"#1A3C34",textDecorationColor:"#1A3C34",cursor:"pointer"},children:"Privacy Policy"}),"."]})})]}),eA&&(0,t.jsx)(u.GridLegacy,{container:!0,alignItems:"center",justifyContent:"center",sx:{padding:"2% 10%"},children:(0,t.jsx)(u.GridLegacy,{item:!0,sx:{marginBottom:"3%"},children:(0,t.jsx)(H.default,{errorregister:ee})})})]}),(0,t.jsx)(G.default,{open:eg,setOpen:ex,handleClose:()=>{ex(!1),eb(!1)},term:ey}),(0,t.jsx)(v.default,{open:ev,onClose:()=>{ew(!1)},"aria-labelledby":"form-dialog-title",sx:{maxWidth:"750px",margin:"auto"},fullWidth:!0,disableEnforceFocus:!0,children:(0,t.jsxs)(m.Paper,{elevation:0,sx:{padding:"2rem",background:"#F3F4F0 !important"},children:[(0,t.jsx)(k.default,{id:"form-dialog-title",sx:{padding:0},children:(0,t.jsx)(y.Typography,{display:"block",variant:"d2c_h3",textTransform:"none",fontFamily:"Chobani-Serif-Regular",sx:{color:"#1A3C34"},children:"Forgot Password?"})}),(0,t.jsxs)(w.default,{sx:{background:"#F3F4F0 !important",padding:"3rem 0rem 2rem 0rem !important"},children:[(0,t.jsx)(x.TextField,{id:"Email_Address",placeholder:"Email Address",alt:"Enter your Email Address",value:eC,error:eq,onChange:e=>{R.default.isEmail(e.target.value)?(ek(e.target.value),eW(null)):(ek(e.target.value),eW("Please enter a valid email address"))},required:!0,size:"medium",sx:{height:"100%",width:"100%",color:"#1A3C34","& .MuiOutlinedInput-root:hover":{"& > fieldset":{borderColor:"#1A3C34"}},"& .MuiOutlinedInput-root":{"& > fieldset":{borderColor:"#1A3C34"}},"& .MuiInputLabel-root":{color:"#1A3C34"},"& .MuiOutlinedInput-notchedOutline":{borderRadius:"0.6rem"},"& .MuiOutlinedInput-root.Mui-focused":{"& > fieldset":{borderColor:"#1A3C34"}}},inputProps:{sx:{color:"#1A3C34",fontFamily:"Chobani-Serif-Regular","@media all and (max-width: 899px)":{fontSize:"1.3rem",lineHeight:"1",letterSpacing:"-.1px"},"@media all and (min-width:900px) and (max-width:1199px)":{fontSize:"1.4rem",lineHeight:"1",letterSpacing:"-.1px"},"@media all and (min-width:1200px)":{fontSize:"1.6rem",lineHeight:"1",letterSpacing:"-.2px"}},className:eR.input}}),(0,t.jsxs)(u.GridLegacy,{item:!0,sm:12,md:12,sx:{marginTop:"1%"},children:[(0,t.jsx)(y.Typography,{variant:"d2c_link",display:"block",sx:{color:"red",visibility:eq?"visible":"hidden"},children:eq}),(0,t.jsx)(y.Typography,{variant:"d2c_link",display:"block",sx:{visibility:"hidden",display:eq?"none":"inherit"},children:"placeholder"})]}),(0,t.jsx)(r.Button,{"aria-label":"Send link",onClick:()=>{""==eC||eq?eW("Please enter a valid email address"):fetch(z.apiConfig.app.resetMailEndpoint,{method:"POST",credentials:"include",withCredentials:!0,crossDomain:!0,headers:(0,Y.getHeaders)(),body:JSON.stringify({emailid:eC})}).then(e=>e.text().then(t=>({response:t,status:e.status})).then(e=>{"Reset Email password sent"==e.response?(eQ("success"),eV("Link sent to your email"),eO(!0),setTimeout(()=>{eO(!1),ew(!1)},6e3),setEmailidFp(""),eW("")):"No Email Address present"==e.response?(eV("Please enter your registered email"),eO(!0),setTimeout(()=>{eO(!1),ew(!1)},6e3),eQ("error"),ew(!0)):"No data Present in the auth store"==e.response&&(eV("Account not found"),eO(!0),setTimeout(()=>{eO(!1),ew(!1)},6e3),eQ("error"),ew(!0))}))},variant:"outlined",justifyContent:"center",sx:{background:"#1A3C34",color:"#F6F2F1",borderColor:"#1A3C34",borderRadius:"5px","&:hover":{background:"#1A3C34",color:"#F6F2F1",borderColor:"#1A3C34",borderRadius:"5px"}},children:(0,t.jsx)(y.Typography,{display:"block",variant:"d2c_link",sx:{fontFamily:"Chobani-Sans-Regular"},textTransform:"capitalize",children:"Send link"})}),eJ&&(0,t.jsx)(u.GridLegacy,{xs:12,sm:12,md:12,sx:{alignItems:"center",mt:"30px"},children:(0,t.jsx)(g.Snackbar,{open:eE,anchorOrigin:{vertical:"bottom",horizontal:"center"},autoHideDuration:7e3,onClose:e=>{eO(!1)},sx:{position:"absolute",left:"50%","@media all and (max-width:599px)":{position:"absolute",left:"5%"}},children:(0,t.jsx)(el,{severity:eY,role:"alert",tabIndex:-1,"aria-live":"assertive","aria-atomic":"true",children:eJ})})})]})]})}),(0,t.jsxs)(v.default,{open:eS,onClose:e$,"aria-labelledby":"form-dialog-title",children:[(0,t.jsx)(k.default,{id:"form-dialog-title",sx:{background:"#F3F4F0 !important"}}),(0,t.jsx)(w.default,{sx:{background:"#F3F4F0 !important"},children:(0,t.jsx)(C.default,{sx:{[eP.breakpoints.up("sm")]:{color:"#1A3C34"},[eP.breakpoints.down("sm")]:{color:"#1A3C34"}},children:"Password reset"})}),(0,t.jsx)(s.DialogActions,{sx:{background:"#F3F4F0 !important"},children:(0,t.jsx)(r.Button,{"aria-label":"ok",onClick:e$,color:"secondary",sx:{background:"#1A3C34",color:"#F6F2F1",borderColor:"#1A3C34","&:hover":{background:"#1A3C34",color:"#F6F2F1",borderColor:"#1A3C34"}},children:"ok"})})]})]})]})},eu=(0,A.default)(()=>Promise.resolve(ec),{ssr:!1});e.s(["default",0,eu],57626)}]);

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.