PageSourceSearch

https://therulesconsultancy.com/services/wix-thunderbolt/dist/siteMembers.27394d84.chunk.min.js

js therulesconsultancy.com collected 2026-09-29 21:54:00 UTC 35,864 bytes, 12 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opens = _____WB$wombat$assign$function_____("opens");
10(window.webpackJsonp__wix_thunderbolt_app=window.webpackJsonp__wix_thunderbolt_app||[]).push([[99],{232:function(e,t,n){"use strict";n.r(t),n.d(t,"site",(function(){return N})),n.d(t,"page",(function(){return x})),n.d(t,"SiteMembersApiSymbol",(function(){return P.b})),n.d(t,"BIEvents",(function(){return k})),n.d(t,"PrivacyStatus",(function(){return S.d})),n.d(t,"INTERACTIONS",(function(){return S.b})),n.d(t,"AUTH_RESULT_REASON",(function(){return S.a})),n.d(t,"memberDetailsFromDTO",(function(){return j.d})),n.d(t,"isLoginAcceptableError",(function(){return j.b})),n.d(t,"isSignupAcceptableError",(function(){return j.c}));var o=n(26),i=n(0),r=n(224),s=n(401),a=n(139),c=n(409),u=n(419),l=n(420),d=n(399),b=n(410),m=n(400),g=n(271),h=n(27),p=n(5),v=n(41),f=n(229),w=n(416),O=n(8),S=n(59),C=n(273),P=n(236),D=function(){function e(e,t,n){this.propsStore=e,this.structureApi=t,this.siteScrollBlocker=n}return e.prototype.displayDialog=function(e,t,n,o){return void 0===o&&(o={}),Object(i.b)(this,void 0,Promise,(function(){var r,s,a,c=this;return Object(i.d)(this,(function(u){switch(u.label){case 0:return r=function(){return Object(i.b)(c,void 0,void 0,(function(){var o,r;return Object(i.d)(this,(function(s){switch(s.label){case 0:return o=Object(O.uniqueId)(P.a),this.propsStore.update(((r={})[o]=Object(i.a)(Object(i.a)({},t),n),r)),Object(C.b)(),[4,this.structureApi.addComponentToDynamicStructure(o,{componentType:e,components:[]})];case 1:return s.sent(),this.currentCompId&&(this.structureApi.removeComponentFromDynamicStructure(this.currentCompId),this.siteScrollBlocker.setSiteScrollingBlocked(!1,this.currentCompId)),this.siteScrollBlocker.setSiteScrollingBlocked(!0,o),this.currentCompId=o,[2]}}))}))},s=o.shouldWaitForAppDidMount,a=o.registerToAppDidMount,s&&a?(a(r),[3,3]):[3,1];case 1:return[4,r()];case 2:u.sent(),u.label=3;case 3:return[2]}}
10))}))},e.prototype.hideDialog=function(){this.currentCompId&&(this.structureApi.removeComponentFromDynamicStructure(this.currentCompId),this.siteScrollBlocker.setSiteScrollingBlocked(!1,this.currentCompId),Object(C.a)()),this.currentCompId=void 0},e}(),j=n(239),k=function(e){var t=e.sessionManager,n=e.businessLogger,o=e.wixBiSession,r=e.viewMode,s=e.language,a=function(e,n){return{biToken:o.msId,context:e,ts:T(o),viewmode:r,visitor_id:t.getVisitorId(),site_member_id:t.getSiteMemberId(),vsi:o.viewerSessionId,site_settings_lng:s.siteLanguage,browser_lng:s.userLanguage,lng_mismatch:s.siteLanguage!==s.userLanguage,layout:n}};return{loginOrSignUpDialogLoaded:function(e,t){void 0===t&&(t="fullscreen"),n.logger.log(Object(i.a)({src:5,evid:658},a(e,t)),{endpoint:"site-members"})},closingDialog:function(e,t){void 0===t&&(t="fullscreen"),n.logger.log(Object(i.a)({src:5,evid:602,form_type:"default"},a(e,t)),{endpoint:"site-members"})},emailAuthSubmitClicked:function(e,t){n.logger.log(Object(i.a)({src:5,evid:603,form_type:"default"},a(e,t)),{endpoint:"site-members"})},siteMembersFeatureLoaded:function(){n.logger.log(Object(i.a)({src:5,evid:698},a()),{endpoint:"site-members"})},siteMembersSdkFeatureLoaded:function(){n.logger.log(Object(i.a)({src:5,evid:699},a()),{endpoint:"site-members"})}}},T=function(e){var t=e.initialTimestamp||0;return Date.now()-t},y=function(){function e(e){this.shouldRunCustomPopupCloseCallback=!0,this.popups=e}return e.prototype.openPopupPage=function(e,t,n){var o;return Object(i.b)(this,void 0,void 0,(function(){var r,s=this;return Object(i.d)(this,(function(i){switch(i.label){case 0:return r=this.shouldRunCustomPopupCloseCallback,this.shouldRunCustomPopupCloseCallback=!1,this.assignRequestAuthenticationRejection(t),[4,null===(o=this.popups)||void 0===o?void 0:o.openPopupPage(e,(function(){s.shouldRunCustomPopupCloseCallback&&(s.rejectAuthenticationRequest(),n&&n())}))];case 1:return i.sent(),this.shouldRunCustomPopupCloseCallback=r,[2]}}))}))},e.prototype.preventCustomPopupCloseCallback=function(){this.shouldRunCustomPopupCloseCallback=!1},e.prototype.allowCustomPopupCloseCallback=function(){this.shouldRunCustomPopupCloseCallback=!0},e.prototype.assignRequestAuthenticationRejection=function(e){this.requestAuthenticationRejection=this.requestAuthenticationRejection||e},e.prototype.rejectAuthenticationRequest=function(){this.requestAuthenticationRejection&&(this.requestAuthenticationRejection(S.a.CANCELED),this.requestAuthenticationRejection=void 0)},e}(),L=function(e,t,n){return function(o,r){void 0===r&&(r={});var s=Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)({},t.headers),r.body?{"Content-Type":"application/x-www-form-urlencoded"}:{}),r.headers),{"x-wix-client-artifact-id":"thunderbolt"}),a=Object(i.a)(Object(i.a)({},r),{headers:s}),c=new URL(o,n).href;return e.envFetch(c,Object(i.a)(Object(i.a)({},t),a)).then((function(e){return Object(i.b)(void 0,void 0,void 0,(function(){var t;return Object(i.d)(this,(function(n){switch(n.label){case 0:return[4,e.json()];case 1:if(t=n.sent(),!e.ok)throw t;return[2,t]}}))}))}))}},E=function(e,t,n){document.cookie=e+"=;max-age=0",document.cookie=e+"=;max-age=0;path="+t,document.cookie=e+"=;domain="+n+";max-age=0",document.cookie=e+"=;domain="+n+";max-age=0;path="+t},I=Object(o.h)([Object(o.f)(r.e,P.c),Object(o.f)(r.c,P.c),s.a,a.f,a.p,h.a,c.b,c.d,a.e,a.b,p.e,v.a,u.a,p.i,l.a,d.b,Object(o.g)(f.c),Object(o.g)(w.a),b.a,m.a],(function(e,t,n,o,r,s,a,c,u,l,d,b,m,h,p,v,f,w,C,P){var T,I;void 0===w&&(w={trackEvent:function(){return 0}});var A=e.collectionExposure,R=e.smcollectionId,_=e.svSession,M=e.smSessionCookie,U=e.protectedHomepage,N=e.isCommunityInstalled,x=e.memberInfoAppId,F=e.sm_efCookie,q="WixInternal"===A,W=s.getAppInstanceByAppDefId("22bef345-3c5b-4c18-b782-74d4085112ff"),B=null!==(T=s.getVisitorId())&&void 0!==T?T:"00000000-0000-0000-0000-000000000000",G=t.smSettings,V=t.tpaApplicationIds,H=t.policyLinks,z=x&&V[x],K=r.site,Y=K.siteRevision,J=K.metaSiteId,X=K.siteId,$=K.externalBaseUrl,Q=r.requestUrl,Z=r.viewMode,ee=-1!==S.f.findIndex((function(e){var t,n;return null===(n=null===(t=null==l?void 0:l.navigator)||void 0===t?void 0:t.userAgent)||void 0===n?void 0:n.includes(e)})),te=!(P["specs.thunderbolt.sm_socialAuthMessageInInAppBrowser"]&&ee),ne="/_a
10pi/wix-sm-webapp/tokens/verify/"+J+"/"+X,oe=$.replace(/\/$/,"")+"/api/wix-sm/v1/authorize/"+X+"/pages",ie="/_api/wix-sm-webapp/tokens/logout/"+J,re="/_api/wix-sm-webapp/member/changePasswordWithMailToken?metaSiteId="+J+"&collectionId="+R,se="/_api/wix-sm-webapp/social/token/handle?metaSiteId="+J+"&collectionId="+R,ae=$.replace(/\/$/,"")+"/_api/dynamicmodel",ce=G.smFirstDialogLogin?"login":"signup",ue=G.socialLoginFacebookEnabled,le=G.socialLoginGoogleEnabled,de=G.termsOfUse,be=G.privacyPolicy,me=G.codeOfConduct,ge=G.customSignUpPageId,he=G.customSignInPageId,pe=null===(I=G.joinCommunityCheckedByDefault)||void 0===I||I,ve=e.smToken,fe={},we=M,Oe=null,Se=!1,Ce=function(e){Oe=e},Pe=function(){var e=!C.getCurrentRouteInfo();return{registerToAppDidMount:Ce,shouldWaitForAppDidMount:!Se&&e}},De={},je={},ke=k({sessionManager:s,businessLogger:p,wixBiSession:v,viewMode:null==Z?void 0:Z.toUpperCase(),language:u});ke.siteMembersFeatureLoaded();var Te={},ye=L(n,{credentials:"same-origin",headers:{accept:"application/json","x-wix-site-revision":""+Y,"x-wix-client-artifact-id":"thunderbolt"}},r.requestUrl),Le=function(e,t,n){return new D(e,t,n)}(a,c,b),Ee=P["specs.thunderbolt.sm_googleAuthViaSDK"],Ie=new y(f),Ae={appDidMount:function(){Oe&&Oe(),Se=!0},login:function(e,t,n,o){return void 0===o&&(o=!1),Object(i.b)(this,void 0,Promise,(function(){var r,s,a;return Object(i.d)(this,(function(i){switch(i.label){case 0:w.trackEvent({eventName:"CustomEvent",params:{eventCategory:"Site members",eventAction:"Log in Submit",eventLabel:"Wix"}}),i.label=1;case 1:return i.trys.push([1,4,,5]),[4,Ae.performLogin(e,t,n)];case 2:return r=i.sent(),[4,Ae.handleLoginResponse(r,o)];case 3:return s=i.sent(),w.trackEvent({eventName:"CustomEvent",params:{eventCategory:"Site members",eventAction:"Log in Success",eventLabel:"Wix"}}),[2,s];case 4:throw a=i.sent(),w.trackEvent({eventName:"CustomEvent",params:{eventCategory:"Site members",eventAction:"Log in Failure",eventLabel:"Wix"}}),a;case 5:return[2]}}
10))}))},performLogin:function(e,t,n){var o;return Object(i.b)(this,void 0,Promise,(function(){var r,s,a,c,u,l,d,b,m;return Object(i.d)(this,(function(i){switch(i.label){case 0:return P["specs.thunderbolt.sm_platformizedLogin"]?[4,ye("/_api/wix-sm-webapp/v1/auth/login",{method:"POST",headers:{"Content-Type":"application/json",authorization:W||""},body:JSON.stringify({email:e,password:t,recaptchaToken:null==n?void 0:n.recaptchaToken})})]:[3,2];case 1:return[2,{member:(r=i.sent()).member,token:null===(o=null==r?void 0:r.session)||void 0===o?void 0:o.token}];case 2:return s=encodeURIComponent(e),a=encodeURIComponent(t),c="email="+s+"&password="+a+"&collectionId="+R+"&metaSiteId="+J+"&appUrl="+Q+"&svSession="+_,(null==n?void 0:n.recaptchaToken)&&(c=c+"&recaptchaToken="+n.recaptchaToken),[4,ye("/_api/wix-sm-webapp/member/login",{method:"POST",body:c})];case 3:if(u=i.sent(),l=u.errorCode,d=u.payload,l)throw l;return b=d.sessionToken,m=d.siteMemberDto,[2,{member:Object(j.d)(m),token:b}]}}))}))},handleOauthToken:function(e,t,n,r,a){return void 0===a&&(a=!1),Object(i.b)(this,void 0,Promise,(function(){var c,l,d,b,m,g,h,p;return Object(i.d)(this,(function(i){switch(i.label){case 0:return c=s.getVisitorId(),o.interactionStarted(S.b.SOCIAL_APP_LOGIN),w.trackEvent({eventName:"CustomEvent",params:{eventCategory:"Site members",eventAction:"Log in Submit",eventLabel:t}}),[4,ye(se,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({svSession:_,visitorId:c,token:e,provider:t,mode:n,lang:u.userLanguage,privacyStatus:r})})];case 1:if(l=i.sent(),d=l.errorCode,b=l.payload,d)throw w.trackEvent({eventName:"CustomEvent",params:{eventCategory:"Site members",eventAction:"Log in Failure",eventLabel:t}}),d;return o.interactionEnded(S.b.SOCIAL_APP_LOGIN),b.smSession&&(g=b.smSession.siteMemberDto,m=b.smSession.sessionToken),g=b.siteMemberDto,h=Object(j.d)(g),[4,Ae.handleLoginResponse({member:h,token:m},a)];case 2:return p=i.sent(),w.trackEvent({eventName:"CustomEvent",params:{eventCategory:"Site members",eventAction:"Log in Success",eventLabel:t}}),[2,p]}}))}))},handleSocialLoginResponse:function(e,t,n){return void 0===n&&(n=!1),Object(i.b)(this,void 0,Promise,(function(){var r,s,a,c;return Object(i.d)(this,(function(i){switch(i.label){case 0:return o.interactionStarted(S.b.SOCIAL_APP_LOGIN),o.interactionEnded(S.b.SOCIAL_APP_LOGIN),w.trackEvent({eventName:"CustomEvent",params:{eventCategory:"Site members",eventAction:"Log in Submit",eventLabel:t}}),e.smSession&&(s=e.smSession.siteMemberDto,r=e.smSession.sessionToken),s=e.siteMemberDto,a=Object(j.d)(s),[4,Ae.handleLoginResponse({member:a,token:r},n)];case 1:return c=i.sent(),w.trackEvent({eventName:"CustomEvent",params:{eventCategory:"Site members",eventAction:"Log in Success",eventLabel:t}}),[2,c]}}))}))},handleLoginResponse:function(e,t){var n=e.token,o=e.member;return void 0===t&&(t=!1),Object(i.b)(this,void 0,Promise,(function(){var e,r,s;return Object(i.d)(this,(function(a){switch(a.label){case 0:return e=o.emailVerified,n||e||"ACTIVE"!==o.status?[3,2]:[4,Ae.showConfirmationEmailDialog(o.id)];case 1:return a.sent(),[2,Object(j.a)()];case 2:return n?[3,5]:[4,m()];case 3:return r=a.sent(),[4,Ae.showNotificationDialog("",(r("siteMembersTranslations","SMApply_Success1","Success! Your member signup request has been sent and is awaiting approval.")+" "+r("siteMembersTranslations","SMApply_Success2","The site administrator will notify you via email ({0}) once your request has been approved.")).replace("{0}",o.loginEmail),r("siteMembersTranslations","SMContainer_OK","OK"))];case 4:return a.sent(),[2,Object(j.a)()];case 5:return[4,Ae.applySessionToken(n,o,t)];case 6:return s=a.sent(),[2,Object(i.a)({sessionToken:n,member:o},t?{pages:s}:{})]}}))}))},promptLogin:function(e,t,n){void 0===e&&(e={}),void 0===t&&(t=!0),void 0===n&&(n=!1);var o=e.mode,i=e.modal,r=null!=o?o:ce,s=i&&P["specs.thunderbolt.sm_displayLoginAsAPopup"]?"popup":"fullscreen";return"login"===r?Ae.showLoginDialog(t,s,n):Ae.showSignUpDialog(t,s,n)},promptForgotPassword:function(e){return void 0===e&&(e=!0),new Promise((function(t,n){Ie.assignRequestAuthenticationRejection(n);var o={isCloseable:e},r={onCloseDialogCallback:function(){ke.closingDialog("RequestResetPassword"),Le.hideDialog(),Ie.rejectAuthenticationRequest()},onSubmitCallback:function(e){var n=this;return Ae.sendForgotPasswordMail(e).then((function(){return Object(i.b)(n,void 0,void 0,(function(){var e;return Object(i.d)(this,(function(n){switch(n.label){case 0:return[4,m()];case 1:return e=n.sent(),Ae.showNotificationDialog(e("siteMembersTranslations","siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE","Please Check Your Email"),e("siteMembersTranslations","siteMembersTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT","We\u2019ve emailed you a link to reset your password."),e("siteMembersTranslations","siteMembersTranslations_Re
10set_Password_OK","Got It")),t(),[2]}}))}))}))}};Le.displayDialog("RequestPasswordResetDialog",o,r)}))},requestAuthentication:function(e){return void 0===e&&(e={}),Object(i.b)(this,void 0,Promise,(function(){var t;return Object(i.d)(this,(function(n){switch(n.label){case 0:if(we)return[2,{success:!0,token:we,reason:S.a.ALREADY_LOGGED_IN}];n.label=1;case 1:return n.trys.push([1,3,,4]),t=!U,[4,Ae.promptLogin(e,t)];case 2:return[2,{success:!0,token:n.sent().sessionToken,reason:S.a.SUCCESS}];case 3:return[2,{success:!1,reason:n.sent()}];case 4:return[2]}}))}))},requestAuthorizedPages:function(e){return void 0===e&&(e={}),Object(i.b)(this,void 0,Promise,(function(){var t,n;return Object(i.d)(this,(function(o){switch(o.label){case 0:return ve?(n={success:!0},[4,Ae.authorizeMemberPagesBySignedInstance(ve)]):[3,2];case 1:return[2,(n.pages=o.sent(),n)];case 2:return o.trys.push([2,4,,5]),t=!U,[4,Ae.promptLogin(e,t,!0)];case 3:return[2,{success:!0,pages:o.sent().pages}];case 4:return[2,{success:!1,reason:o.sent()}];case 5:return[2]}}
10))}))},applySessionToken:function(e,t,n){return void 0===n&&(n=!1),Object(i.b)(this,void 0,Promise,(function(){var r,a,c,u;return Object(i.d)(this,(function(l){switch(l.label){case 0:return o.interactionStarted(S.b.VERIFY_TOKEN),[4,ye(ne,{method:"POST",body:"token="+e})];case 1:if(r=l.sent(),a=r.payload,c=r.errorCode)throw c;return o.interactionEnded(S.b.VERIFY_TOKEN),[4,s.loadNewSession({reason:"memberLogin"})];case 2:return l.sent(),[4,Ae.getSmToken()];case 3:return ve=l.sent(),we=e,null==t?[3,4]:(u=t,[3,6]);case 4:return[4,Ae.getMemberDetails()];case 5:u=l.sent(),l.label=6;case 6:return fe=u,[4,Promise.all(Object.values(De).map((function(e){return Object(i.b)(void 0,void 0,void 0,(function(){var t;return Object(i.d)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return n.sent(),[3,3];case 2:return t=n.sent(),o.captureError(t,{tags:{feature:"site-members"}}),[3,3];case 3:return[2]}}))}))})))];case 7:return l.sent(),n?[2,a.pages]:[2]}}))}))},getSmToken:function(){return Object(i.b)(this,void 0,Promise,(function(){var e;return Object(i.d)(this,(function(t){switch(t.label){case 0:return[4,n.envFetch(ae).then((function(e){return e.json()}))];case 1:return e=t.sent().clientSpecMap,[2,Object.values(e).find((function(e){return"sitemembers"===e.type})).smtoken]}}))}))},authorizeMemberPagesByCookie:function(){return Object(i.b)(this,void 0,Promise,(function(){var e,t,n,o;return Object(i.d)(this,(function(i){switch(i.label){case 0:return e=Object(g.e)(l)?{headers:{cookie:"smSession="+M}}:void 0,[4,ye(oe,e)];case 1:if(t=i.sent(),n=t.authorizedPages,o=t.errorCode)throw o;return[2,n]}}))}))},authorizeMemberPagesByToken:function(e){return Object(i.b)(this,void 0,Promise,(function(){var t,n,o;return Object(i.d)(this,(function(i){switch(i.label){case 0:return e===M?[2,this.authorizeMemberPagesByCookie()]:[4,ye(ne,{method:"POST",body:"token="+e})];case 1:if(t=i.sent(),n=t.payload,o=t.errorCode)throw o;return[2,n.pages]}}))}))},authorizeMemberPagesBySignedInstance:function(e){return Object(i.b)(this,void 0,Promise,(function(){var t,n,o;return Object(i.d)(this,(function(i){switch(i.label){case 0:return[4,ye(oe,{headers:{authorization:e}})];case 1:if(t=i.sent(),n=t.authorizedPages,o=t.errorCode)throw o;return[2,n]}}))}))},getMemberDetails:function(e){return void 0===e&&(e=!1),Object(i.b)(this,void 0,Promise,(function(){var t,n,r;return Object(i.d)(this,(function(s){switch(s.label){case 0:return!fe.id||e?[3,1]:[2,fe];case 1:return ve?[4,ye("/_api/wix-sm-webapp/member/"+ve+"?collectionId="+R+"&metaSiteId="+J)]:[3,5];case 2:if(t=s.sent(),n=t.payload,r=t.errorCode)throw r;return fe=Object(j.d)(n),e?[4,Promise.all(Object.values(Te).map((function(e){return Object(i.b)(void 0,void 0,void 0,(function(){var t;return Object(i.d)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return n.sent(),[3,3];case 2:return t=n.sent(),o.captureError(t,{tags:{feature:"site-members"}}),[3,3];case 3:return[2]}}
10))}))})))]:[3,4];case 3:s.sent(),s.label=4;case 4:return[2,fe];case 5:return[2,null]}}))}))},register:function(e,t,n,r,s,a){return void 0===a&&(a=!1),Object(i.b)(this,void 0,Promise,(function(){var c,u,l,d,b,g,h,p,v,f,O;return Object(i.d)(this,(function(C){switch(C.label){case 0:return C.trys.push([0,9,,10]),o.interactionStarted(S.b.CODE_SIGNUP),w.trackEvent({eventName:"CustomEvent",params:{eventCategory:"Site members",eventAction:"Sign up Submit",eventLabel:"Wix"}}),c={email:e,password:t,profilePrivacyStatus:r,contactInfo:n,defaultFlow:s},[4,ye("/_api/wix-sm-webapp/v1/auth/signup",{method:"POST",headers:{"Content-Type":"application/json",authorization:W||""},body:JSON.stringify(c)})];case 1:return u=C.sent(),l=u.member,d=u.approvalToken,b=u.session,g=l.emailVerified,h=null==b?void 0:b.token,p="ACTIVE"===(null==l?void 0:l.status)?"ACTIVE":"PENDING",h||g||"ACTIVE"!==l.status?[3,3]:[4,Ae.showConfirmationEmailDialog(l.id)];case 2:return C.sent(),o.interactionEnded(S.b.CODE_SIGNUP),[2,{member:l,status:p}];case 3:return s&&"APPLICANT"===(null==l?void 0:l.status)||!h?[4,m()]:[3,6];case 4:return v=C.sent(),[4,Ae.showNotificationDialog("",(v("siteMembersTranslations","SMApply_Success1","Success! Your member login request has been sent and is awaiting approval.")+" "+v("siteMembersTranslations","SMApply_Success2","The site administrator will notify you via email ({0}) once your request has been approved.")).replace("{0}",e),v("siteMembersTranslations","SMContainer_OK","OK"))];case 5:return C.sent(),o.interactionEnded(S.b.CODE_SIGNUP),[2,{member:l,status:p,approvalToken:d}];case 6:return[4,Ae.applySessionToken(h,l,a)];case 7:return f=C.sent(),o.interactionEnded(S.b.CODE_SIGNUP),w.trackEvent({eventName:"CustomEvent",params:{eventCategory:"Site members",eventAction:"Sign up Success",eventLabel:"Wix"}}),[2,Object(i.a)({member:l,status:p,sessionToken:h},a&&f?{pages:f}:{})];case 8:return[3,10];case 9:throw O=C.sent(),w.trackEvent({eventName:"CustomEvent",params:{eventCategory:"Site members",eventAction:"Sign up Failure",eventLabel:"Wix"}}),Object(j.c)(O)&&o.interactionEnded(S.b.CODE_SIGNUP),O;case 10:return[2]}}
10))}))},sendForgotPasswordMail:function(e){return Object(i.b)(this,void 0,void 0,(function(){var t,n,r,s;return Object(i.d)(this,(function(i){switch(i.label){case 0:return o.interactionStarted(S.b.RESET_PASSWORD),t=u.userLanguage,n=encodeURIComponent(Q),r=encodeURIComponent(e),[4,ye("/_api/wix-sm-webapp/member/sendForgotPasswordMail",{method:"POST",body:"returnUrl="+n+"&collectionId="+R+"&metaSiteId="+J+"&lang="+t+"&email="+r})];case 1:if(s=i.sent().errorCode)throw s;return o.interactionEnded(S.b.RESET_PASSWORD),[2]}}))}))},changePassword:function(e,t){return Object(i.b)(this,void 0,void 0,(function(){var n,o;return Object(i.d)(this,(function(i){switch(i.label){case 0:return n=encodeURIComponent(e),[4,ye(re,{method:"POST",body:"newPassword="+n+"&forgotPasswordToken="+t})];case 1:if(o=i.sent().errorCode)throw o;return[2]}}))}))},resendEmailVerification:function(e){return Object(i.b)(this,void 0,void 0,(function(){var t;return Object(i.d)(this,(function(n){switch(n.label){case 0:return[4,ye("/_api/wix-sm-webapp/tokens/email/resend/"+e)];case 1:if(t=n.sent().errorCode)throw t;return[2]}}))}))},logout:function(e){return Object(i.b)(this,void 0,void 0,(function(){var t;return Object(i.d)(this,(function(n){switch(n.label){case 0:return ve?[4,ye(ie,{method:"POST"})]:[2];case 1:return n.sent(),[4,Promise.all(Object.values(je).map((function(e){return Object(i.b)(void 0,void 0,void 0,(function(){var t;return Object(i.d)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return n.sent(),[3,3];case 2:return t=n.sent(),o.captureError(t,{tags:{feature:"site-members"}}),[3,3];case 3:return[2]}}
10))}))})))];case 2:return n.sent(),e?(t="./"+e.replace(/^\//,""),[4,d.navigate(t)]):[3,4];case 3:n.sent(),n.label=4;case 4:return Object(g.e)(l)||l.document.location.reload(),[2]}}))}))},registerToUserLogin:function(e){var t=Object(O.uniqueId)("callback");return De[t]=e,t},unRegisterToUserLogin:function(e){delete De[e]},registerToMemberLogout:function(e){var t=Object(O.uniqueId)("logout_callback");return je[t]=e,t},unRegisterToMemberLogout:function(e){delete je[e]},registerToMemberDetailsRefresh:function(e){var t=Object(O.uniqueId)("mdrcb");return Te[t]=e,t},unRegisterToMemberDetailsRefresh:function(e){delete Te[e]},showWelcomeDialog:function(e){return void 0===e&&(e=!0),Object(i.b)(this,void 0,Promise,(function(){var t;return Object(i.d)(this,(function(n){return t={isCloseable:e},[2,new Promise((function(e,n){var o={onCloseDialogCallback:function(){e(),ke.closingDialog("WelcomeDialog");var t=new URL(r.requestUrl).hostname,n=0===t.indexOf("www")?t.substr(3):t;E("sm_ef","/",n),F="",Le.hideDialog()},onSubmitCallback:function(){var t=new URL(r.requestUrl).hostname,o=0===t.indexOf("www")?t.substr(3):t;E("sm_ef","/",o),F="",Le.hideDialog(),z&&(n(),d.navigate("./account/my-account")),e()}};Le.displayDialog("WelcomeDialog",t,o)}))]}))}))},showNoPermissionsToPageDialog:function(e){return Object(i.b)(this,void 0,void 0,(function(){var t;return Object(i.d)(this,(function(n){return t={onCloseDialogCallback:function(){Le.hideDialog(),e&&e()},onSwitchAccountLinkClick:function(){Ae.logout()}},Le.displayDialog("NoPermissionsToPageDialog",{},t),[2]}))}))},showResetPasswordDialog:function(e){return Object(i.b)(this,void 0,Promise,(function(){var t,n=this;return Object(i.d)(this,(function(o){return t={isCloseable:!0},[2,new Promise((function(o,s){return Object(i.b)(n,void 0,void 0,(function(){var n;return Object(i.d)(this,(function(a){return n={onCloseDialogCallback:function(){ke.closingDialog("ResetPasswordDialog");var e=h.getParsedUrl();e.searchParams.delete("forgotPasswordToken"),e.searchParams.delete("forgotPasswordLang"),h.pushUrlState(e),Le.hideDialog(),o()},onSubmitCallback:function(n){return Object(i.b)(this,void 0,void 0,(function(){var a,c,u,l=this;return Object(i.d)(this,(function(d){switch(d.label){case 0:return[4,m()];case 1:a=d.sent(),d.label=2;case 2:return d.trys.push([2,4,,5]),[4,Ae.changePassword(n,e)];case 3:return d.sent(),Ae.showNotificationDialog(a("siteMembersTranslations","siteMembersTranslations_Reset_Password_Sucess_Title","Your password has been changed."),"",a("siteMembersTranslations","SMContainer_OK","OK"),(function(){return Object(i.b)(l,void 0,void 0,(function(){var e;return Object(i.d)(this,(function(t){switch(t.label){case 0:return(e=h.getParsedUrl()).searchParams.delete("forgotPasswordToken"),e.searchParams.delete("forgotPasswordLang"),h.pushUrlState(e),[4,Ae.showLoginDialog()];case 1:return t.sent(),o(),[2]}}))}))})),[3,5];case 4:if(c=d.sent(),u=r.experiments["specs.thunderbolt.sm_redirectToResetPasswordLinkOnTokenExpired"],-19972!==c||!u)throw c;return-19972===c&&u&&Ae.showNotificationDialog(a("siteMembersTranslations","siteMembersTranslations_PASSWORD_HAS_EXPIRED_TITLE","Your link to create a new password has expired"),a("siteMembersTranslations","siteMembersTranslations_PASSWORD_HAS_EXPIRED_TEXT","To continue, resend a new link to your email."),a("siteMembersTranslations","siteMembersTranslations_PASSWORD_HAS_EXPIRED_OK","Resend Link"),(function(){return Ae.promptForgotPassword(t.isCloseable).then(o).catch(s)})),[3,5];case 5:return[2]}}
10))}))}},Le.displayDialog("ResetPasswordDialog",t,n),[2]}))}))}))]}))}))},showLoginDialog:function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t="fullscreen"),void 0===n&&(n=!1),Object(i.b)(this,void 0,Promise,(function(){var r=this;return Object(i.d)(this,(function(s){return he&&(null==f?void 0:f.isPopupPage(he))?[2,Ae.showCustomAuthenticationDialog(he,n)]:[2,new Promise((function(s,a){return Object(i.b)(r,void 0,void 0,(function(){var r,c;return Object(i.d)(this,(function(i){switch(i.label){case 0:return Ie.assignRequestAuthenticationRejection(a),r={displayMode:t,language:u.userLanguage,isCloseable:e,smCollectionId:R,svSession:_,biVisitorId:B,metaSiteId:J,isSocialLoginGoogleEnabled:le,isSocialLoginFacebookEnabled:!q&&ue,isEmailLoginEnabled:!q,isSocialAuthSupported:te,useGoogleSdk:Ee},c={onCloseDialogCallback:function(){Le.hideDialog(),ke.closingDialog("MemberLoginDialog",t),Ie.rejectAuthenticationRequest()},submit:function(e,i,r){return o.interactionStarted(S.b.DEFAULT_LOGIN),ke.emailAuthSubmitClicked("MemberLoginDialog",t),Ae.login(e,i,r,n).then((function(e){o.interactionEnded(S.b.DEFAULT_LOGIN),Le.hideDialog(),s(e)})).catch((function(e){throw Object(j.b)(e)&&o.interactionEnded(S.b.DEFAULT_LOGIN),e}))},onForgetYourPasswordClick:function(){Ae.promptForgotPassword(e)},onSwitchDialogLinkClick:function(){Ae.showSignUpDialog(e,t).then(s,(function(){Ie.rejectAuthenticationRequest()}))},onTokenMessage:function(e,t,o){void 0===o&&(o=!1);var i=o?"PUBLIC":"PRIVATE";return Ae.handleOauthToken(e,t,"memberLoginDialog",i,n).then((function(e){Le.hideDialog(),s(e)}))},onBackendSocialLogin:function(e,t){return Ae.handleSocialLoginResponse(e,t,n).then((function(e){Le.hideDialog(),s(e)}))},getHostReadyPayload:function(){return{visitorId:B,svSession:_}}},ke.loginOrSignUpDialogLoaded("MemberLoginDialog",t),[4,Le.displayDialog("MemberLoginDialog",r,c,Pe())];case 1:return i.sent(),Ae.closeCustomAuthenticationDialogs(!0),[2]}}))}))}))]}))}))},showSignUpDialog:function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t="fullscreen"),void 0===n&&(n=!1),Object(i.b)(this,void 0,Promise,(function(){var r=this;return Object(i.d)(this,(function(s){return ge&&(null==f?void 0:f.isPopupPage(ge))?[2,Ae.showCustomAuthenticationDialog(ge,n)]:[2,new Promise((function(s,a){return Object(i.b)(r,void 0,void 0,(function(){var r,c;return Object(i.d)(this,(function(l){switch(l.label){case 0:return Ie.assignRequestAuthenticationRejection(a),r={displayMode:t,language:u.userLanguage,isCloseable:e,smCollectionId:R,biVisitorId:B,svSession:_,metaSiteId:J,isSocialLoginGoogleEnabled:le,isSocialLoginFacebookEnabled:!q&&ue,isSocialAuthSupported:te,isEmailLoginEnabled:!q,isCommunityInstalled:N,joinCommunityCheckedByDefault:pe,isTermsOfUseNeeded:!(!(null==de?void 0:de.enabled)||!H.termsOfUse),isPrivacyPolicyNeeded:!(!(null==be?void 0:be.enabled)||!H.privacyPolicy),isCodeOfConductNeeded:!(!(null==me?void 0:me.enabled)||!H.codeOfConduct),termsOfUseLink:H.termsOfUse,privacyPolicyLink:H.privacyPolicy,codeOfConductLink:H.codeOfConduct,useGoogleSdk:Ee},c={onCloseDialogCallback:function(){Le.hideDialog(),ke.closingDialog("SignUpDialog",t),Ie.rejectAuthenticationRequest()},submit:function(e,r,a){var c="boolean"==typeof a?a:a.isCommunityChecked;o.interactionStarted(S.b.DEFAULT_SIGNUP),ke.emailAuthSubmitClicked("SignUpDialog",t);var u=c?S.d.PUBLIC:S.d.PRIVATE;return Ae.register(e,r,void 0,u,void 0,n).then((function(e){o.interactionEnded(S.b.DEFAULT_SIGNUP);var t=e.member,r=e.sessionToken,a=e.pages;r&&(Le.hideDialog(),s(Object(i.a)({member:t,sessionToken:r},n?{pages:a}:{})))})).catch((function(e){throw Object(j.c)(e)&&o.interactionEnded(S.b.DEFAULT_SIGNUP),e}))},onSwitchDialogLinkClick:function(){Ae.showLoginDialog(e,t,n).then(s,(function(){Ie.rejectAuthenticationRequest()}))},onTokenMessage:function(e,t,o){void 0===o&&(o=!1);var i=o?"PUBLIC":"PRIVATE";return Ae.handleOauthToken(e,t,"memberLoginDialog",i,n).then((function(e){Le.hideDialog(),s(e)}))},onBackendSocialLogin:function(e,t){return Ae.handleSocialLoginResponse(e,t,n).then((function(e){Le.hideDialog(),s(e)}))},getHostReadyPayload:function(){return{visitorId:B,svSession:_}}}
10,ke.loginOrSignUpDialogLoaded("SignUpDialog",t),[4,Le.displayDialog("SignUpDialog",r,c,Pe())];case 1:return l.sent(),Ae.closeCustomAuthenticationDialogs(!0),[2]}}))}))}))]}))}))},showNotificationDialog:function(e,t,n,o,r){return void 0===o&&(o=function(){return 0}),void 0===r&&(r=function(){return 0}),Object(i.b)(this,void 0,void 0,(function(){var s,a;return Object(i.d)(this,(function(i){switch(i.label){case 0:return s={isCloseable:!0,title:e,description:t,okButtonText:n},a={onCloseDialogCallback:function(){ke.closingDialog("NotificationDialog"),Le.hideDialog(),r()},onOkButtonClick:function(){Le.hideDialog(),o()}},[4,Le.displayDialog("NotificationDialog",s,a)];case 1:return i.sent(),[2]}}))}))},showConfirmationEmailDialog:function(e,t){return void 0===t&&(t=!0),Object(i.b)(this,void 0,void 0,(function(){var n,o;return Object(i.d)(this,(function(r){switch(r.label){case 0:return n={isCloseable:!0,isSignUp:t},o={onCloseDialogCallback:function(){ke.closingDialog("ConfirmationEmailDialog"),Le.hideDialog()},onResendConfirmationEmail:function(){return Object(i.b)(this,void 0,void 0,(function(){return Object(i.d)(this,(function(t){switch(t.label){case 0:return[4,Ae.resendEmailVerification(e)];case 1:return t.sent(),[4,Ae.showConfirmationEmailDialog(e,!1)];case 2:return t.sent(),[2]}}))}))}},[4,Le.displayDialog("ConfirmationEmailDialog",n,o)];case 1:return r.sent(),[2]}}))}))},showCustomAuthenticationDialog:function(e,t){return void 0===t&&(t=!1),Object(i.b)(this,void 0,Promise,(function(){var n=this;return Object(i.d)(this,(function(o){if(!f)throw new Error("popup unavailable");return[2,new Promise((function(o,r){return Object(i.b)(n,void 0,void 0,(function(){var n,s=this;return Object(i.d)(this,(function(a){switch(a.label){case 0:return n=Ae.registerToUserLogin((function(){return Object(i.b)(s,void 0,void 0,(function(){var r,s,a,c;return Object(i.d)(this,(function(u){switch(u.label){case 0:return r=o,s=[{member:fe,sessionToken:we}],t?(c={},[4,Ae.authorizeMemberPagesBySignedInstance(ve)]):[3,2];case 1:return c.pages=u.sent(),a=c,[3,3];case 2:a={},u.label=3;case 3:return r.apply(void 0,[i.a.apply(void 0,s.concat([a]))]),Ae.unRegisterToUserLogin(n),f.getCurrentPopupId()===e&&f.closePopupPage(),[2]}}))}))})),[4,Ie.openPopupPage(e,r,(function(){Ae.unRegisterToUserLogin(n)}))];case 1:return a.sent(),Le.hideDialog(),[2]}}))}))}))]}))}))},closeCustomAuthenticationDialogs:function(e){return void 0===e&&(e=!1),Object(i.b)(this,void 0,void 0,(function(){var t;return Object(i.d)(this,(function(n){switch(n.label){case 0:return(t=null==f?void 0:f.getCurrentPopupId())&&[ge,he].includes(t)?(e&&Ie.preventCustomPopupCloseCallback(),[4,f.closePopupPage()]):[3,2];case 1:n.sent(),Ie.allowCustomPopupCloseCallback(),n.label=2;case 2:return[2]}}
10))}))},getForgotPasswordToken:function(){return new URL(Object(g.e)(l)?r.requestUrl:location.href).searchParams.get("forgotPasswordToken")},shouldDisplayWelcomeDialog:function(){return F&&z},shouldDialogsBlockRendering:function(){return!(!Ae.getForgotPasswordToken()&&!Ae.shouldDisplayWelcomeDialog())},showRenderingBlockingDialogs:function(){var e=Ae.getForgotPasswordToken();return e?Ae.showResetPasswordDialog(e):Ae.shouldDisplayWelcomeDialog()?Ae.showWelcomeDialog():Promise.resolve()},appWillMount:function(){var e=Ae.getForgotPasswordToken();if(e)Ae.showResetPasswordDialog(e);else if(Ae.shouldDisplayWelcomeDialog())Ae.showWelcomeDialog();else{switch(new URL(r.requestUrl).searchParams.get("showDialog")){case"MemberLoginDialog":Ae.showLoginDialog();break;case"SignUpDialog":Ae.showSignUpDialog();break;case"RequestPasswordResetDialog":Ae.promptForgotPassword();break;case"ResetPasswordDialog":Ae.showResetPasswordDialog("faketoken");break;case"WelcomeDialog":Ae.showWelcomeDialog();break;case"NoPermissionsToPageDialog":Ae.showNoPermissionsToPageDialog();break;case"NotificationDialog":Ae.showNotificationDialog("title","description","ok");break;case"ConfirmationEmailDialog":Ae.showConfirmationEmailDialog("fakemember")}}},pageWillUnmount:function(e){var t=e.pageId;[ge,he].includes(t)||Le.hideDialog()},getSocialAuthComponentProps:function(e){return{biVisitorId:"00000000-0000-0000-0000-000000000000",svSession:_,smCollectionId:R,metaSiteId:J,onTokenMessage:function(e,t,n){void 0===n&&(n=!1);var o=n?"PUBLIC":"PRIVATE";return Ae.handleOauthToken(e,t,"socialAuthComponent",o)},onBackendSocialLogin:Ae.handleSocialLoginResponse,getHostReadyPayload:function(){return{visitorId:B,svSession:_}}}}};return Ae})),A=n(408),R=n(421),_=n(422),M=Object(o.h)([P.b,m.a],(function(e,t){return{getTpaHandlers:function(){var n=this,o=function(o,r,s){return Object(i.b)(n,void 0,Promise,(function(){var n,o,r,a;return Object(i.d)(this,(function(i){switch(i.label){case 0:return[4,e.getMemberDetails()];case 1:return(n=i.sent())?!(null===(o=s.appClientSpecMapData)||void 0===o?void 0:o.isWixTPA)&&t["specs.thunderbolt.removePiiFromSMTPAs"]?[2,{id:n.id,owner:n.owner,status:n.status}]:[2,{attributes:{firstName:null!==(r=n.firstName)&&void 0!==r?r:"",lastName:null!==(a=n.lastName)&&void 0!==a?a:"",privacyStatus:n.profilePrivacyStatus},name:n.memberName,email:n.loginEmail,id:n.id,owner:n.owner,status:n.status}]:[2,null]}}))}))},r=function(t,o){return void 0===o&&(o={}),Object(i.b)(n,void 0,Promise,(function(){var t,n,r;return Object(i.d)(this,(function(i){switch(i.label){case 0:return[4,e.promptLogin({mode:o.mode,modal:o.modal})];case 1:return t=i.sent().member,[2,{attributes:{firstName:null!==(n=t.firstName)&&void 0!==n?n:"",lastName:null!==(r=t.lastName)&&void 0!==r?r:"",privacyStatus:t.profilePrivacyStatus},name:t.memberName,email:t.loginEmail,id:t.id,owner:t.owner,status:t.status}]}}))}))};return{currentMember:o,smCurrentMember:o,logOutCurrentMember:Object(_.a)(["site"],(function(t,n){e.logout(null==n?void 0:n.url)})),requestLogin:Object(_.a)(["site"],r),smRequestLogin:Object(_.a)(["site"],r)}}}})),U=Object(o.h)([P.b,Object(o.f)(r.d,P.c),c.b],(function(e,t,n){var o=t.componentIds;return{pageWillMount:function(){return Object(i.b)(this,void 0,void 0,(function(){var t;return Object(i.d)(this,(function(r){return t=o.reduce((function(t,o){var r,s=e.getSocialAuthComponentProps(n.get(o));return Object(i.a)(Object(i.a)({},t),((r={})[o]=s,r))}),{}),n.update(t),[2]}))}))}}})),N=function(e){e(P.b,A.a.AppWillMountHandler,A.a.AppDidMountHandler).to(I)},x=function(e){e(R.a).to(M),e(A.a.PageWillMountHandler).to(U),e(A.a.PageWillUnmountHandler).to(Object(o.h)([P.b],(function(e){return{pageWillUnmount:function(t){return e.pageWillUnmount(t)}}})))}}}]);
11//# sourceMappingURL=https://static.parastorage.com/services/wix-thunderbolt/dist/siteMembers.27394d84.chunk.min.js.map
12}

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.