@pelcro/react-pelcro-js 4.0.0-alpha.32 → 4.0.0-alpha.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +47 -64
- package/dist/index.esm.js +47 -64
- package/dist/pelcro.css +564 -563
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3715,7 +3715,7 @@ var passwordChange_en = {
|
|
|
3715
3715
|
weakPassword: weakPassword$3
|
|
3716
3716
|
};
|
|
3717
3717
|
|
|
3718
|
-
var title$w = "Passwordless
|
|
3718
|
+
var title$w = "Passwordless";
|
|
3719
3719
|
var email$9 = "Enter email";
|
|
3720
3720
|
var submit$c = "Submit";
|
|
3721
3721
|
var required$c = "Required";
|
|
@@ -4660,7 +4660,7 @@ var passwordChange_fr = {
|
|
|
4660
4660
|
weakPassword: weakPassword$2
|
|
4661
4661
|
};
|
|
4662
4662
|
|
|
4663
|
-
var title$n = "
|
|
4663
|
+
var title$n = "Sans mot de passe";
|
|
4664
4664
|
var email$6 = "Entrez votre adresse courriel";
|
|
4665
4665
|
var submit$8 = "Soumettre";
|
|
4666
4666
|
var required$8 = "Champs obligatoires";
|
|
@@ -5551,7 +5551,7 @@ var passwordChange_ko = {
|
|
|
5551
5551
|
weakPassword: weakPassword$1
|
|
5552
5552
|
};
|
|
5553
5553
|
|
|
5554
|
-
var title$e = "
|
|
5554
|
+
var title$e = "암호 없음";
|
|
5555
5555
|
var email$3 = "이메일 입력";
|
|
5556
5556
|
var submit$4 = "제출";
|
|
5557
5557
|
var required$4 = "필수 항목";
|
|
@@ -6489,7 +6489,7 @@ var passwordChange_es = {
|
|
|
6489
6489
|
weakPassword: weakPassword
|
|
6490
6490
|
};
|
|
6491
6491
|
|
|
6492
|
-
var title$5 = "
|
|
6492
|
+
var title$5 = "sin contraseña";
|
|
6493
6493
|
var email = "Ingresar correo";
|
|
6494
6494
|
var submit = "Enviar";
|
|
6495
6495
|
var required = "obligatorio";
|
|
@@ -6831,7 +6831,7 @@ var subscriptionSuspend_es = {
|
|
|
6831
6831
|
messages: messages
|
|
6832
6832
|
};
|
|
6833
6833
|
|
|
6834
|
-
var title$2 = "
|
|
6834
|
+
var title$2 = "QR code";
|
|
6835
6835
|
var qr_en = {
|
|
6836
6836
|
title: title$2
|
|
6837
6837
|
};
|
|
@@ -12727,15 +12727,6 @@ const AlertWithContext = ({
|
|
|
12727
12727
|
}, otherProps), alert.content));
|
|
12728
12728
|
};
|
|
12729
12729
|
|
|
12730
|
-
function VerticalSeparator({
|
|
12731
|
-
className = "",
|
|
12732
|
-
...otherProps
|
|
12733
|
-
}) {
|
|
12734
|
-
return /*#__PURE__*/React__default.createElement("span", Object.assign({
|
|
12735
|
-
className: `pelcro-vertical-separator ${className}`
|
|
12736
|
-
}, otherProps));
|
|
12737
|
-
}
|
|
12738
|
-
|
|
12739
12730
|
var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
|
|
12740
12731
|
!function(e,t){module.exports=t(React__default);}(commonjsGlobal,function(e){return function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){e.exports=o(4);},function(e,t,o){e.exports=o(6)();},function(t,o){t.exports=e;},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){return decodeURIComponent(e.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(t).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))};},function(e,t,o){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new 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);}Object.defineProperty(t,"__esModule",{value:!0});var a=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},c=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}}(),u=o(2),d=n(u),l=o(1),p=n(l),f=o(5),b=n(f),y=o(3),h=n(y),g=function(){var e=!1;try{e=!!(window.navigator&&window.navigator.standalone||navigator.userAgent.match("CriOS")||navigator.userAgent.match(/mobile/i));}catch(t){}return e},k=function(e){function t(){var e,o,n,s;r(this,t);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return o=n=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),n.state={isSdkLoaded:!1,isProcessing:!1},n.responseApi=function(e){window.FB.api("/me",{locale:n.props.language,fields:n.props.fields},function(t){a(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,s=t.returnScopes,a=t.responseType,c=t.redirectUri,u=t.disableMobileRedirect,d=t.authType,l=t.state;if("function"!=typeof i||(i(e),!e.defaultPrevented)){var p={client_id:r,redirect_uri:c,state:l,return_scopes:s,scope:o,response_type:a,auth_type:d};if(n.props.isMobile&&!u)window.location.href="https://www.facebook.com/dialog/oauth"+(0, b["default"])(p);else {if(!window.FB)return void(n.props.onFailure&&n.props.onFailure({status:"facebookNotLoaded"}));window.FB.login(n.checkLoginState,{scope:o,return_scopes:s,auth_type:p.auth_type});}}}},s=o,i(n,s)}return s(t,e),c(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"),e.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,s=t.autoLoad;window.fbAsyncInit=function(){window.FB.init({version:"v"+i,appId:o,xfbml:n,cookie:r}),e.setStateIfMounted({isSdkLoaded:!0}),(s||e.isRedirectedFromFb())&&window.FB.getLoginStatus(e.checkLoginAfterRefresh);};}},{key:"isRedirectedFromFb",value:function(){var e=window.location.search;return (0, h["default"])(e,"code")||(0, h["default"])(e,"granted_scopes")}},{key:"sdkLoaded",value:function(){this.setState({isSdkLoaded:!0});}},{key:"loadSdkAsynchronously",value:function(){var e=this.props.language;!function(t,o,n){var r=t.getElementsByTagName(o)[0],i=r,s=r;t.getElementById(n)||(s=t.createElement(o),s.id=n,s.src="https://connect.facebook.net/"+e+"/sdk.js",i.parentNode.insertBefore(s,i));}(document,"script","facebook-jssdk");}},{key:"render",value:function o(){var o=this.props.render;if(!o)throw new 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}(d["default"].Component);k.propTypes={isDisabled:p["default"].bool,callback:p["default"].func.isRequired,appId:p["default"].string.isRequired,xfbml:p["default"].bool,cookie:p["default"].bool,authType:p["default"].string,scope:p["default"].string,state:p["default"].string,responseType:p["default"].string,returnScopes:p["default"].bool,redirectUri:p["default"].string,autoLoad:p["default"].bool,disableMobileRedirect:p["default"].bool,isMobile:p["default"].bool,fields:p["default"].string,version:p["default"].string,language:p["default"].string,onClick:p["default"].func,onFailure:p["default"].func,render:p["default"].func.isRequired},k.defaultProps={redirectUri:"undefined"!=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:g(),onFailure:null,state:"facebookdirect",responseType:"code"},t["default"]=k;},function(e,t){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){function n(){}var r=o(7);e.exports=function(){function e(e,t,o,n,i,s){if(s!==r){var a=new 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 a.name="Invariant Violation",a}}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){var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=o;}])});
|
|
12741
12732
|
});
|
|
@@ -13020,7 +13011,7 @@ function SvgFacebookLogo(props) {
|
|
|
13020
13011
|
}
|
|
13021
13012
|
|
|
13022
13013
|
const FacebookLoginButton = ({
|
|
13023
|
-
label = "
|
|
13014
|
+
label = "Facebook",
|
|
13024
13015
|
className = "",
|
|
13025
13016
|
labelClassName = "",
|
|
13026
13017
|
iconClassName = ""
|
|
@@ -13189,7 +13180,7 @@ var gapi=window.gapi=window.gapi||{};gapi._bs=new Date().getTime();(function(){/
|
|
|
13189
13180
|
gapi.load("",{callback:window["gapi_onload"],_c:{"jsl":{"ci":{"deviceType":"desktop","oauth-flow":{"authUrl":"https://accounts.google.com/o/oauth2/auth","proxyUrl":"https://accounts.google.com/o/oauth2/postmessageRelay","disableOpt":true,"idpIframeUrl":"https://accounts.google.com/o/oauth2/iframe","usegapi":false},"debug":{"reportExceptionRate":0.05,"forceIm":false,"rethrowException":false,"host":"https://apis.google.com"},"enableMultilogin":true,"googleapis.config":{"auth":{"useFirstPartyAuthV2":true}},"isPlusUser":false,"inline":{"css":1},"disableRealtimeCallback":false,"drive_share":{"skipInitCommand":true},"csi":{"rate":0.01},"client":{"cors":false},"isLoggedIn":true,"signInDeprecation":{"rate":0.0},"include_granted_scopes":true,"llang":"pt","iframes":{"youtube":{"params":{"location":["search","hash"]},"url":":socialhost:/:session_prefix:_/widget/render/youtube?usegapi\u003d1","methods":["scroll","openwindow"]},"ytsubscribe":{"url":"https://www.youtube.com/subscribe_embed?usegapi\u003d1"},"plus_circle":{"params":{"url":""},"url":":socialhost:/:session_prefix::se:_/widget/plus/circle?usegapi\u003d1"},"plus_share":{"params":{"url":""},"url":":socialhost:/:session_prefix::se:_/+1/sharebutton?plusShare\u003dtrue\u0026usegapi\u003d1"},"rbr_s":{"params":{"url":""},"url":":socialhost:/:session_prefix::se:_/widget/render/recobarsimplescroller"},":source:":"3p","playemm":{"url":"https://play.google.com/work/embedded/search?usegapi\u003d1\u0026usegapi\u003d1"},"savetoandroidpay":{"url":"https://pay.google.com/gp/v/widget/save"},"blogger":{"params":{"location":["search","hash"]},"url":":socialhost:/:session_prefix:_/widget/render/blogger?usegapi\u003d1","methods":["scroll","openwindow"]},"evwidget":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/events/widget?usegapi\u003d1"},"partnersbadge":{"url":"https://www.gstatic.com/partners/badge/templates/badge.html?usegapi\u003d1"},"dataconnector":{"url":"https://dataconnector.corp.google.com/:session_prefix:ui/widgetview?usegapi\u003d1"},"surveyoptin":{"url":"https://www.google.com/shopping/customerreviews/optin?usegapi\u003d1"},":socialhost:":"https://apis.google.com","shortlists":{"url":""},"hangout":{"url":"https://talkgadget.google.com/:session_prefix:talkgadget/_/widget"},"plus_followers":{"params":{"url":""},"url":":socialhost:/_/im/_/widget/render/plus/followers?usegapi\u003d1"},"post":{"params":{"url":""},"url":":socialhost:/:session_prefix::im_prefix:_/widget/render/post?usegapi\u003d1"},":gplus_url:":"https://plus.google.com","signin":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/widget/render/signin?usegapi\u003d1","methods":["onauth"]},"rbr_i":{"params":{"url":""},"url":":socialhost:/:session_prefix::se:_/widget/render/recobarinvitation"},"share":{"url":":socialhost:/:session_prefix::im_prefix:_/widget/render/share?usegapi\u003d1"},"plusone":{"params":{"count":"","size":"","url":""},"url":":socialhost:/:session_prefix::se:_/+1/fastbutton?usegapi\u003d1"},"comments":{"params":{"location":["search","hash"]},"url":":socialhost:/:session_prefix:_/widget/render/comments?usegapi\u003d1","methods":["scroll","openwindow"]},":im_socialhost:":"https://plus.googleapis.com","backdrop":{"url":"https://clients3.google.com/cast/chromecast/home/widget/backdrop?usegapi\u003d1"},"visibility":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/widget/render/visibility?usegapi\u003d1"},"autocomplete":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/widget/render/autocomplete"},"additnow":{"url":"https://apis.google.com/marketplace/button?usegapi\u003d1","methods":["launchurl"]},":signuphost:":"https://plus.google.com","ratingbadge":{"url":"https://www.google.com/shopping/customerreviews/badge?usegapi\u003d1"},"appcirclepicker":{"url":":socialhost:/:session_prefix:_/widget/render/appcirclepicker"},"follow":{"url":":socialhost:/:session_prefix:_/widget/render/follow?usegapi\u003d1"},"community":{"url":":ctx_socialhost:/:session_prefix::im_prefix:_/widget/render/community?usegapi\u003d1"},"sharetoclassroom":{"url":"https://classroom.google.com/sharewidget?usegapi\u003d1"},"ytshare":{"params":{"url":""},"url":":socialhost:/:session_prefix:_/widget/render/ytshare?usegapi\u003d1"},"plus":{"url":":socialhost:/:session_prefix:_/widget/render/badge?usegapi\u003d1"},"family_creation":{"params":{"url":""},"url":"https://families.google.com/webcreation?usegapi\u003d1\u0026usegapi\u003d1"},"commentcount":{"url":":socialhost:/:session_prefix:_/widget/render/commentcount?usegapi\u003d1"},"configurator":{"url":":socialhost:/:session_prefix:_/plusbuttonconfigurator?usegapi\u003d1"},"zoomableimage":{"url":"https://ssl.gstatic.com/microscope/embed/"},"appfinder":{"url":"https://workspace.google.com/:session_prefix:marketplace/appfinder?usegapi\u003d1"},"savetowallet":{"url":"https://pay.google.com/gp/v/widget/save"},"person":{"url":":socialhost:/:session_prefix:_/widget/render/person?usegapi\u003d1"},"savetodrive":{"url":"https://drive.google.com/savetodrivebutton?usegapi\u003d1","methods":["save"]},"page":{"url":":socialhost:/:session_prefix:_/widget/render/page?usegapi\u003d1"},"card":{"url":":socialhost:/:session_prefix:_/hovercard/card"}}},"h":"m;/_/scs/apps-static/_/js/k\u003doz.gapi.pt_BR.l4Bv_WkVC6g.O/am\u003dwQE/d\u003d1/ct\u003dzgms/rs\u003dAGLTcCOuH5S2uqmF6E8zOW7n3yiqiwhzNQ/m\u003d__features__","u":"https://apis.google.com/js/platform.js","hee":true,"fp":"821a251b140e4add32f87f4a7a08f044a59aa0e9","dpo":false},"platform":["additnow","backdrop","blogger","comments","commentcount","community","donation","family_creation","follow","hangout","health","page","partnersbadge","person","playemm","playreview","plus","plusone","post","ratingbadge","savetoandroidpay","savetodrive","savetowallet","sharetoclassroom","shortlists","signin2","surveyoptin","visibility","youtube","ytsubscribe","zoomableimage"],"fp":"821a251b140e4add32f87f4a7a08f044a59aa0e9","annotation":["interactivepost","recobar","signin2","autocomplete","profile"],"bimodal":["signin","share"]}});
|
|
13190
13181
|
|
|
13191
13182
|
const GoogleLoginButton = ({
|
|
13192
|
-
label = "
|
|
13183
|
+
label = "Google",
|
|
13193
13184
|
className = "",
|
|
13194
13185
|
labelClassName = "",
|
|
13195
13186
|
iconClassName = ""
|
|
@@ -13272,7 +13263,7 @@ function SvgAuth0Logo(props) {
|
|
|
13272
13263
|
}
|
|
13273
13264
|
|
|
13274
13265
|
const Auth0LoginButton = ({
|
|
13275
|
-
label = "
|
|
13266
|
+
label = "Auth0",
|
|
13276
13267
|
className = "",
|
|
13277
13268
|
labelClassName = "",
|
|
13278
13269
|
iconClassName = ""
|
|
@@ -13409,7 +13400,8 @@ function LoginView(props) {
|
|
|
13409
13400
|
const {
|
|
13410
13401
|
t
|
|
13411
13402
|
} = useTranslation("login");
|
|
13412
|
-
const
|
|
13403
|
+
const auth0LoginEnabled = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.auth0_client_id;
|
|
13404
|
+
const socialLoginEnabled = ((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.facebook_app_id) || ((_window$Pelcro$site$r3 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.google_app_id) || auth0LoginEnabled;
|
|
13413
13405
|
const passwordlessEnabled = (_window$Pelcro$site$r4 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r4 === void 0 ? void 0 : _window$Pelcro$site$r4.passwordless_enabled;
|
|
13414
13406
|
const enableLoginWithUsername = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableLoginWithUsername;
|
|
13415
13407
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -13419,23 +13411,17 @@ function LoginView(props) {
|
|
|
13419
13411
|
className: "plc-mt-2 pelcro-form"
|
|
13420
13412
|
}, /*#__PURE__*/React__default.createElement(LoginContainer, props, /*#__PURE__*/React__default.createElement(AlertWithContext, null), socialLoginEnabled && /*#__PURE__*/React__default.createElement("div", {
|
|
13421
13413
|
className: "plc-my-5"
|
|
13422
|
-
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("
|
|
13423
|
-
className: "plc-block sm:plc-flex plc-flex-col sm:plc-flex-row plc-justify-center plc-flex-wrap plc-items-center
|
|
13424
|
-
}, /*#__PURE__*/React__default.createElement(GoogleLoginButton, {
|
|
13425
|
-
className: "plc-
|
|
13426
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
13427
|
-
className: "plc-
|
|
13428
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
13429
|
-
className: "plc-
|
|
13430
|
-
})), /*#__PURE__*/React__default.createElement("
|
|
13431
|
-
className: "plc-block sm:plc-flex plc-flex-col sm:plc-flex-row plc-justify-center plc-flex-wrap plc-items-center plc-mt-4"
|
|
13432
|
-
}, /*#__PURE__*/React__default.createElement(Auth0LoginButton, {
|
|
13433
|
-
className: `plc-block sm:plc-flex plc-w-full sm:plc-w-auto plc-mb-4 sm:plc-mb-0 ${passwordlessEnabled ? "plc-flex-1" : "plc-w-1/2"}`
|
|
13434
|
-
}), passwordlessEnabled && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(VerticalSeparator, {
|
|
13435
|
-
className: "plc-hidden sm:plc-inline-grid plc-mx-2 plc-h-8"
|
|
13436
|
-
}), /*#__PURE__*/React__default.createElement(LoginRequestLoginToken, {
|
|
13414
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("ul", {
|
|
13415
|
+
className: `${auth0LoginEnabled && !passwordlessEnabled || !auth0LoginEnabled && passwordlessEnabled ? "threeColumns" : "twoColumns"} loginOptions plc-block sm:plc-flex plc-flex-col sm:plc-flex-row plc-justify-center plc-flex-wrap plc-items-center`
|
|
13416
|
+
}, /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(GoogleLoginButton, {
|
|
13417
|
+
className: "plc-flex plc-w-full"
|
|
13418
|
+
})), /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(FacebookLoginButton, {
|
|
13419
|
+
className: "plc-flex plc-w-full"
|
|
13420
|
+
})), auth0LoginEnabled && /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(Auth0LoginButton, {
|
|
13421
|
+
className: "plc-flex plc-w-full"
|
|
13422
|
+
})), passwordlessEnabled && /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(LoginRequestLoginToken, {
|
|
13437
13423
|
onClick: props.onPasswordlessRequest,
|
|
13438
|
-
className: "
|
|
13424
|
+
className: "plc-flex plc-w-full"
|
|
13439
13425
|
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
13440
13426
|
className: "plc-flex plc-items-center plc-justify-between plc-mt-5"
|
|
13441
13427
|
}, /*#__PURE__*/React__default.createElement("hr", {
|
|
@@ -13896,7 +13882,8 @@ function RegisterView(props) {
|
|
|
13896
13882
|
t
|
|
13897
13883
|
} = useTranslation("register");
|
|
13898
13884
|
usePelcro();
|
|
13899
|
-
const
|
|
13885
|
+
const auth0LoginEnabled = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.auth0_client_id;
|
|
13886
|
+
const socialLoginEnabled = ((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.facebook_app_id) || ((_window$Pelcro$site$r3 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.google_app_id) || auth0LoginEnabled;
|
|
13900
13887
|
const showNameFields = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableNameFieldsInRegister;
|
|
13901
13888
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
13902
13889
|
id: "pelcro-register-view"
|
|
@@ -13905,19 +13892,15 @@ function RegisterView(props) {
|
|
|
13905
13892
|
className: "plc-mt-2 pelcro-form"
|
|
13906
13893
|
}, /*#__PURE__*/React__default.createElement(RegisterContainer, props, /*#__PURE__*/React__default.createElement(AlertWithContext, null), socialLoginEnabled && /*#__PURE__*/React__default.createElement("div", {
|
|
13907
13894
|
className: "plc-my-5"
|
|
13908
|
-
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("
|
|
13909
|
-
className: "plc-block sm:plc-flex plc-flex-col sm:plc-flex-row plc-justify-center plc-flex-wrap plc-items-center
|
|
13910
|
-
}, /*#__PURE__*/React__default.createElement(GoogleLoginButton, {
|
|
13911
|
-
className: "plc-
|
|
13912
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
13913
|
-
className: "plc-
|
|
13914
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
13915
|
-
className: "plc-
|
|
13916
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
13917
|
-
className: "plc-block sm:plc-flex plc-flex-col sm:plc-flex-row plc-justify-center plc-flex-wrap plc-items-center plc-mt-4"
|
|
13918
|
-
}, /*#__PURE__*/React__default.createElement(Auth0LoginButton, {
|
|
13919
|
-
className: "plc-block sm:plc-flex plc-w-full sm:plc-w-1/2 plc-mb-4 sm:plc-mb-0"
|
|
13920
|
-
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
13895
|
+
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("ul", {
|
|
13896
|
+
className: `${auth0LoginEnabled ? "threeColumns" : "twoColumns"} loginOptions plc-block sm:plc-flex plc-flex-col sm:plc-flex-row plc-justify-center plc-flex-wrap plc-items-center`
|
|
13897
|
+
}, /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(GoogleLoginButton, {
|
|
13898
|
+
className: "plc-flex plc-w-full"
|
|
13899
|
+
})), /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(FacebookLoginButton, {
|
|
13900
|
+
className: "plc-flex plc-w-full"
|
|
13901
|
+
})), auth0LoginEnabled && /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(Auth0LoginButton, {
|
|
13902
|
+
className: "plc-flex plc-w-full"
|
|
13903
|
+
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
13921
13904
|
className: "plc-flex plc-items-center plc-justify-between plc-mt-5"
|
|
13922
13905
|
}, /*#__PURE__*/React__default.createElement("hr", {
|
|
13923
13906
|
className: "plc-w-full plc-border-gray-300"
|
|
@@ -18842,26 +18825,26 @@ const NextArrow = ({
|
|
|
18842
18825
|
onClick,
|
|
18843
18826
|
className
|
|
18844
18827
|
}) => /*#__PURE__*/React__default.createElement("button", {
|
|
18845
|
-
className: `sm:plc-flex plc-hidden plc-text-
|
|
18828
|
+
className: `sm:plc-flex plc-hidden plc-text-gray-500 plc-w-11 plc-h-11 plc-items-center plc-justify-center plc-rounded-full plc-text-sm plc-absolute plc-top-1/2 plc--right-12 plc-transform plc--translate-y-1/2 hover:plc-text-gray-900 ${className}`,
|
|
18846
18829
|
onClick: onClick
|
|
18847
18830
|
}, /*#__PURE__*/React__default.createElement(SvgArrowThinRight, {
|
|
18848
18831
|
stroke: "currentColor",
|
|
18849
18832
|
"aria-hidden": "true",
|
|
18850
18833
|
focusable: "false",
|
|
18851
|
-
className: "plc-h-
|
|
18834
|
+
className: "plc-h-7 plc-w-7"
|
|
18852
18835
|
}));
|
|
18853
18836
|
|
|
18854
18837
|
const PrevArrow = ({
|
|
18855
18838
|
onClick,
|
|
18856
18839
|
className
|
|
18857
18840
|
}) => /*#__PURE__*/React__default.createElement("button", {
|
|
18858
|
-
className: `sm:plc-flex plc-hidden plc-text-
|
|
18841
|
+
className: `sm:plc-flex plc-hidden plc-text-gray-500 plc-w-11 plc-h-11 plc-items-center plc-justify-center plc-rounded-full plc-text-sm plc-absolute plc-top-1/2 plc--left-12 plc-transform plc--translate-y-1/2 hover:plc-text-gray-900 ${className}`,
|
|
18859
18842
|
onClick: onClick
|
|
18860
18843
|
}, /*#__PURE__*/React__default.createElement(SvgArrowThinLeft, {
|
|
18861
18844
|
stroke: "currentColor",
|
|
18862
18845
|
"aria-hidden": "true",
|
|
18863
18846
|
focusable: "false",
|
|
18864
|
-
className: "plc-h-
|
|
18847
|
+
className: "plc-h-7 plc-w-7"
|
|
18865
18848
|
}));
|
|
18866
18849
|
|
|
18867
18850
|
function Carousel({
|
|
@@ -18897,7 +18880,7 @@ function Carousel({
|
|
|
18897
18880
|
}]
|
|
18898
18881
|
};
|
|
18899
18882
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18900
|
-
className: "carousel-wrapper plc-relative sm:plc-px-
|
|
18883
|
+
className: "carousel-wrapper plc-relative sm:plc-px-8 plc-px-0"
|
|
18901
18884
|
}, /*#__PURE__*/React__default.createElement(Slider, Object.assign({
|
|
18902
18885
|
ref: ref
|
|
18903
18886
|
}, settings), children));
|
|
@@ -19128,9 +19111,9 @@ class SelectModal extends Component {
|
|
|
19128
19111
|
description
|
|
19129
19112
|
} = this.state.product;
|
|
19130
19113
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
19131
|
-
className: "productTabs"
|
|
19114
|
+
className: "productTabs plc-flex plc-flex-col plc-items-center"
|
|
19132
19115
|
}, /*#__PURE__*/React__default.createElement("ul", {
|
|
19133
|
-
className: "tabs plc-flex plc-items-center plc-text-center plc-border-b plc-border-gray-300 plc-mb-4 plc-overflow-x-auto"
|
|
19116
|
+
className: "tabs plc-w-full plc-flex plc-items-center plc-text-center plc-border-b plc-border-gray-300 plc-mb-4 plc-overflow-x-auto"
|
|
19134
19117
|
}, this.state.productList.map((product, index) => {
|
|
19135
19118
|
var _this$state$product;
|
|
19136
19119
|
|
|
@@ -19144,7 +19127,7 @@ class SelectModal extends Component {
|
|
|
19144
19127
|
className: "plc-px-4 plc-py-2 plc-rounded plc-text-gray-600 focus:plc-outline-none plc-whitespace-nowrap"
|
|
19145
19128
|
}, product.name));
|
|
19146
19129
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
19147
|
-
className: "selectedProduct plc-flex plc-flex-col plc-items-center plc-justify-center"
|
|
19130
|
+
className: "selectedProduct plc-flex plc-flex-col plc-items-center plc-justify-center plc-max-w-3xl"
|
|
19148
19131
|
}, image && /*#__PURE__*/React__default.createElement("figure", {
|
|
19149
19132
|
className: "plc-mb-2"
|
|
19150
19133
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
@@ -19195,7 +19178,7 @@ class SelectModal extends Component {
|
|
|
19195
19178
|
const isChecked = this.state.plan.id === plan.id ? true : false;
|
|
19196
19179
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
19197
19180
|
key: plan.id,
|
|
19198
|
-
className: `${((_this$state = this.state) === null || _this$state === void 0 ? void 0 : _this$state.plan.id) === plan.id ? "plc-border-2 plc-border-primary
|
|
19181
|
+
className: `${((_this$state = this.state) === null || _this$state === void 0 ? void 0 : _this$state.plan.id) === plan.id ? "plc-border-2 plc-border-primary" : "plc-border plc-border-gray-300"} plc-h-full plc-flex plc-flex-col plc-items-start plc-text-gray-900 plc-border-solid plc-rounded-md plc-bg-white pelcro-select-plan-wrapper`
|
|
19199
19182
|
}, /*#__PURE__*/React__default.createElement(Radio, {
|
|
19200
19183
|
wrapperClassName: "plc-w-full plc-flex plc-h-full",
|
|
19201
19184
|
className: "plc-hidden pelcro-select-plan-radio",
|
|
@@ -19206,13 +19189,13 @@ class SelectModal extends Component {
|
|
|
19206
19189
|
"data-key": plan.id,
|
|
19207
19190
|
onChange: this.selectPlan
|
|
19208
19191
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
19209
|
-
className: "plc-p-4 plc-text-center plc-flex plc-flex-col plc-justify-center plc-items-center plc-w-full
|
|
19192
|
+
className: "plc-p-4 plc-text-center plc-flex plc-flex-col plc-justify-center plc-items-center plc-w-full"
|
|
19210
19193
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
19211
19194
|
className: "pelcro-select-plan-title plc-font-medium plc-text-xl plc-break-all"
|
|
19212
19195
|
}, plan.nickname), /*#__PURE__*/React__default.createElement("p", {
|
|
19213
19196
|
className: "plc-text-sm plc-mt-1 pelcro-select-plan-description plc-text-gray-400"
|
|
19214
19197
|
}, plan.description)), /*#__PURE__*/React__default.createElement("div", {
|
|
19215
|
-
className: "plc-mt-auto plc-px-4 plc-mb-4"
|
|
19198
|
+
className: "plc-mt-auto plc-px-4 plc-mb-4 plc-border-t plc-border-gray-300"
|
|
19216
19199
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
19217
19200
|
className: "plc-pt-4 plc-mb-4 plc-font-semibold pelcro-select-plan-price plc-px-4 plc-text-center plc-flex plc-items-end plc-justify-center"
|
|
19218
19201
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
@@ -19224,7 +19207,7 @@ class SelectModal extends Component {
|
|
|
19224
19207
|
}, plan.currency), /*#__PURE__*/React__default.createElement("span", {
|
|
19225
19208
|
className: "plc-capitalize"
|
|
19226
19209
|
}, "/ ", plan.interval))), /*#__PURE__*/React__default.createElement("div", {
|
|
19227
|
-
className: `${((_this$state2 = this.state) === null || _this$state2 === void 0 ? void 0 : _this$state2.plan.id) === plan.id ? "plc-bg-primary
|
|
19210
|
+
className: `${((_this$state2 = this.state) === null || _this$state2 === void 0 ? void 0 : _this$state2.plan.id) === plan.id ? "plc-bg-primary plc-text-white" : "plc-text-primary-800"} plc-flex plc-items-center plc-justify-center plc-text-center plc-py-2 plc-px-4 plc-w-full plc-border-2 plc-rounded-md plc-border-primary`
|
|
19228
19211
|
}, this.locale("buttons.select")))));
|
|
19229
19212
|
});
|
|
19230
19213
|
return /*#__PURE__*/React__default.createElement(Carousel, {
|
|
@@ -19379,7 +19362,7 @@ class SelectModal extends Component {
|
|
|
19379
19362
|
}, this.state.mode === "plan" && /*#__PURE__*/React__default.createElement("button", {
|
|
19380
19363
|
type: "button",
|
|
19381
19364
|
onClick: this.goBack,
|
|
19382
|
-
className: "plc-absolute plc-w-6 plc-text-gray-500 focus:plc-text-black plc-z-max plc-top-1/2 plc-left-5 plc-transform plc--translate-y-1/2 plc-border-0 hover:plc-text-black hover:plc-shadow-none plc-bg-transparent hover:plc-bg-transparent focus:plc-bg-transparent"
|
|
19365
|
+
className: "plc-absolute plc-w-6 plc-text-gray-500 focus:plc-text-black plc-z-max plc-top-1/2 plc-left-2 sm:plc-left-5 plc-transform plc--translate-y-1/2 plc-border-0 hover:plc-text-black hover:plc-shadow-none plc-bg-transparent hover:plc-bg-transparent focus:plc-bg-transparent"
|
|
19383
19366
|
}, /*#__PURE__*/React__default.createElement(SvgArrowLeft, null)), /*#__PURE__*/React__default.createElement("h4", {
|
|
19384
19367
|
className: "plc-text-2xl plc-font-semibold"
|
|
19385
19368
|
}, this.product && this.product.paywall.select_title || ((_window$Pelcro$produc2 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc2 === void 0 ? void 0 : _window$Pelcro$produc2.paywall.select_title)), /*#__PURE__*/React__default.createElement("p", null, this.product && this.product.paywall.select_subtitle || ((_window$Pelcro$produc3 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc3 === void 0 ? void 0 : _window$Pelcro$produc3.paywall.select_subtitle)))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -19398,7 +19381,7 @@ class SelectModal extends Component {
|
|
|
19398
19381
|
disabled: this.state.disabled,
|
|
19399
19382
|
onClick: this.submitOption,
|
|
19400
19383
|
id: "pelcro-submit",
|
|
19401
|
-
className: "plc-w-full plc-
|
|
19384
|
+
className: "plc-mt-2 plc-w-full plc-max-w-sm plc-ml-auto plc-mr-auto plc-block"
|
|
19402
19385
|
}, this.locale("buttons.next"))))), /*#__PURE__*/React__default.createElement(ModalFooter, null, !window.Pelcro.user.isAuthenticated() && /*#__PURE__*/React__default.createElement("p", {
|
|
19403
19386
|
className: "plc-mb-9"
|
|
19404
19387
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -30177,7 +30160,7 @@ const GiftCreateModal = ({
|
|
|
30177
30160
|
}, t("gift.titles.firstTitle")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(GiftCreateView, Object.assign({}, otherProps, {
|
|
30178
30161
|
onSuccess: onSuccess
|
|
30179
30162
|
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement("p", {
|
|
30180
|
-
className: "plc-mb-
|
|
30163
|
+
className: "plc-mb-4"
|
|
30181
30164
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
30182
30165
|
className: "plc-font-medium"
|
|
30183
30166
|
}, t("messages.selectPlan") + " "), /*#__PURE__*/React__default.createElement(Link, {
|
|
@@ -35763,7 +35746,7 @@ class Dashboard extends Component {
|
|
|
35763
35746
|
icon: /*#__PURE__*/React__default.createElement(SvgQrcode, {
|
|
35764
35747
|
className: "plc-w-6 plc-h-6 plc-mr-2"
|
|
35765
35748
|
}),
|
|
35766
|
-
title: "
|
|
35749
|
+
title: this.locale("labels.myQRCode"),
|
|
35767
35750
|
setActiveDashboardLink: this.setActiveDashboardLink,
|
|
35768
35751
|
activeDashboardLink: this.state.activeDashboardLink
|
|
35769
35752
|
}), /*#__PURE__*/React__default.createElement(DashboardLink, {
|