@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.cjs.js
CHANGED
|
@@ -3745,7 +3745,7 @@ var passwordChange_en = {
|
|
|
3745
3745
|
weakPassword: weakPassword$3
|
|
3746
3746
|
};
|
|
3747
3747
|
|
|
3748
|
-
var title$w = "Passwordless
|
|
3748
|
+
var title$w = "Passwordless";
|
|
3749
3749
|
var email$9 = "Enter email";
|
|
3750
3750
|
var submit$c = "Submit";
|
|
3751
3751
|
var required$c = "Required";
|
|
@@ -4690,7 +4690,7 @@ var passwordChange_fr = {
|
|
|
4690
4690
|
weakPassword: weakPassword$2
|
|
4691
4691
|
};
|
|
4692
4692
|
|
|
4693
|
-
var title$n = "
|
|
4693
|
+
var title$n = "Sans mot de passe";
|
|
4694
4694
|
var email$6 = "Entrez votre adresse courriel";
|
|
4695
4695
|
var submit$8 = "Soumettre";
|
|
4696
4696
|
var required$8 = "Champs obligatoires";
|
|
@@ -5581,7 +5581,7 @@ var passwordChange_ko = {
|
|
|
5581
5581
|
weakPassword: weakPassword$1
|
|
5582
5582
|
};
|
|
5583
5583
|
|
|
5584
|
-
var title$e = "
|
|
5584
|
+
var title$e = "암호 없음";
|
|
5585
5585
|
var email$3 = "이메일 입력";
|
|
5586
5586
|
var submit$4 = "제출";
|
|
5587
5587
|
var required$4 = "필수 항목";
|
|
@@ -6519,7 +6519,7 @@ var passwordChange_es = {
|
|
|
6519
6519
|
weakPassword: weakPassword
|
|
6520
6520
|
};
|
|
6521
6521
|
|
|
6522
|
-
var title$5 = "
|
|
6522
|
+
var title$5 = "sin contraseña";
|
|
6523
6523
|
var email = "Ingresar correo";
|
|
6524
6524
|
var submit = "Enviar";
|
|
6525
6525
|
var required = "obligatorio";
|
|
@@ -6861,7 +6861,7 @@ var subscriptionSuspend_es = {
|
|
|
6861
6861
|
messages: messages
|
|
6862
6862
|
};
|
|
6863
6863
|
|
|
6864
|
-
var title$2 = "
|
|
6864
|
+
var title$2 = "QR code";
|
|
6865
6865
|
var qr_en = {
|
|
6866
6866
|
title: title$2
|
|
6867
6867
|
};
|
|
@@ -12757,15 +12757,6 @@ const AlertWithContext = ({
|
|
|
12757
12757
|
}, otherProps), alert.content));
|
|
12758
12758
|
};
|
|
12759
12759
|
|
|
12760
|
-
function VerticalSeparator({
|
|
12761
|
-
className = "",
|
|
12762
|
-
...otherProps
|
|
12763
|
-
}) {
|
|
12764
|
-
return /*#__PURE__*/React__default['default'].createElement("span", Object.assign({
|
|
12765
|
-
className: `pelcro-vertical-separator ${className}`
|
|
12766
|
-
}, otherProps));
|
|
12767
|
-
}
|
|
12768
|
-
|
|
12769
12760
|
var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
|
|
12770
12761
|
!function(e,t){module.exports=t(React__default['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;}])});
|
|
12771
12762
|
});
|
|
@@ -13050,7 +13041,7 @@ function SvgFacebookLogo(props) {
|
|
|
13050
13041
|
}
|
|
13051
13042
|
|
|
13052
13043
|
const FacebookLoginButton = ({
|
|
13053
|
-
label = "
|
|
13044
|
+
label = "Facebook",
|
|
13054
13045
|
className = "",
|
|
13055
13046
|
labelClassName = "",
|
|
13056
13047
|
iconClassName = ""
|
|
@@ -13219,7 +13210,7 @@ var gapi=window.gapi=window.gapi||{};gapi._bs=new Date().getTime();(function(){/
|
|
|
13219
13210
|
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"]}});
|
|
13220
13211
|
|
|
13221
13212
|
const GoogleLoginButton = ({
|
|
13222
|
-
label = "
|
|
13213
|
+
label = "Google",
|
|
13223
13214
|
className = "",
|
|
13224
13215
|
labelClassName = "",
|
|
13225
13216
|
iconClassName = ""
|
|
@@ -13302,7 +13293,7 @@ function SvgAuth0Logo(props) {
|
|
|
13302
13293
|
}
|
|
13303
13294
|
|
|
13304
13295
|
const Auth0LoginButton = ({
|
|
13305
|
-
label = "
|
|
13296
|
+
label = "Auth0",
|
|
13306
13297
|
className = "",
|
|
13307
13298
|
labelClassName = "",
|
|
13308
13299
|
iconClassName = ""
|
|
@@ -13439,7 +13430,8 @@ function LoginView(props) {
|
|
|
13439
13430
|
const {
|
|
13440
13431
|
t
|
|
13441
13432
|
} = useTranslation("login");
|
|
13442
|
-
const
|
|
13433
|
+
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;
|
|
13434
|
+
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;
|
|
13443
13435
|
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;
|
|
13444
13436
|
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;
|
|
13445
13437
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -13449,23 +13441,17 @@ function LoginView(props) {
|
|
|
13449
13441
|
className: "plc-mt-2 pelcro-form"
|
|
13450
13442
|
}, /*#__PURE__*/React__default['default'].createElement(LoginContainer, props, /*#__PURE__*/React__default['default'].createElement(AlertWithContext, null), socialLoginEnabled && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13451
13443
|
className: "plc-my-5"
|
|
13452
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("
|
|
13453
|
-
className: "plc-block sm:plc-flex plc-flex-col sm:plc-flex-row plc-justify-center plc-flex-wrap plc-items-center
|
|
13454
|
-
}, /*#__PURE__*/React__default['default'].createElement(GoogleLoginButton, {
|
|
13455
|
-
className: "plc-
|
|
13456
|
-
}), /*#__PURE__*/React__default['default'].createElement(
|
|
13457
|
-
className: "plc-
|
|
13458
|
-
}), /*#__PURE__*/React__default['default'].createElement(
|
|
13459
|
-
className: "plc-
|
|
13460
|
-
})), /*#__PURE__*/React__default['default'].createElement("
|
|
13461
|
-
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"
|
|
13462
|
-
}, /*#__PURE__*/React__default['default'].createElement(Auth0LoginButton, {
|
|
13463
|
-
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"}`
|
|
13464
|
-
}), passwordlessEnabled && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(VerticalSeparator, {
|
|
13465
|
-
className: "plc-hidden sm:plc-inline-grid plc-mx-2 plc-h-8"
|
|
13466
|
-
}), /*#__PURE__*/React__default['default'].createElement(LoginRequestLoginToken, {
|
|
13444
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("ul", {
|
|
13445
|
+
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`
|
|
13446
|
+
}, /*#__PURE__*/React__default['default'].createElement("li", null, /*#__PURE__*/React__default['default'].createElement(GoogleLoginButton, {
|
|
13447
|
+
className: "plc-flex plc-w-full"
|
|
13448
|
+
})), /*#__PURE__*/React__default['default'].createElement("li", null, /*#__PURE__*/React__default['default'].createElement(FacebookLoginButton, {
|
|
13449
|
+
className: "plc-flex plc-w-full"
|
|
13450
|
+
})), auth0LoginEnabled && /*#__PURE__*/React__default['default'].createElement("li", null, /*#__PURE__*/React__default['default'].createElement(Auth0LoginButton, {
|
|
13451
|
+
className: "plc-flex plc-w-full"
|
|
13452
|
+
})), passwordlessEnabled && /*#__PURE__*/React__default['default'].createElement("li", null, /*#__PURE__*/React__default['default'].createElement(LoginRequestLoginToken, {
|
|
13467
13453
|
onClick: props.onPasswordlessRequest,
|
|
13468
|
-
className: "
|
|
13454
|
+
className: "plc-flex plc-w-full"
|
|
13469
13455
|
})))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13470
13456
|
className: "plc-flex plc-items-center plc-justify-between plc-mt-5"
|
|
13471
13457
|
}, /*#__PURE__*/React__default['default'].createElement("hr", {
|
|
@@ -13926,7 +13912,8 @@ function RegisterView(props) {
|
|
|
13926
13912
|
t
|
|
13927
13913
|
} = useTranslation("register");
|
|
13928
13914
|
usePelcro();
|
|
13929
|
-
const
|
|
13915
|
+
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;
|
|
13916
|
+
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;
|
|
13930
13917
|
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;
|
|
13931
13918
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13932
13919
|
id: "pelcro-register-view"
|
|
@@ -13935,19 +13922,15 @@ function RegisterView(props) {
|
|
|
13935
13922
|
className: "plc-mt-2 pelcro-form"
|
|
13936
13923
|
}, /*#__PURE__*/React__default['default'].createElement(RegisterContainer, props, /*#__PURE__*/React__default['default'].createElement(AlertWithContext, null), socialLoginEnabled && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13937
13924
|
className: "plc-my-5"
|
|
13938
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("
|
|
13939
|
-
className: "plc-block sm:plc-flex plc-flex-col sm:plc-flex-row plc-justify-center plc-flex-wrap plc-items-center
|
|
13940
|
-
}, /*#__PURE__*/React__default['default'].createElement(GoogleLoginButton, {
|
|
13941
|
-
className: "plc-
|
|
13942
|
-
}), /*#__PURE__*/React__default['default'].createElement(
|
|
13943
|
-
className: "plc-
|
|
13944
|
-
}), /*#__PURE__*/React__default['default'].createElement(
|
|
13945
|
-
className: "plc-
|
|
13946
|
-
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13947
|
-
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"
|
|
13948
|
-
}, /*#__PURE__*/React__default['default'].createElement(Auth0LoginButton, {
|
|
13949
|
-
className: "plc-block sm:plc-flex plc-w-full sm:plc-w-1/2 plc-mb-4 sm:plc-mb-0"
|
|
13950
|
-
}))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13925
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("ul", {
|
|
13926
|
+
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`
|
|
13927
|
+
}, /*#__PURE__*/React__default['default'].createElement("li", null, /*#__PURE__*/React__default['default'].createElement(GoogleLoginButton, {
|
|
13928
|
+
className: "plc-flex plc-w-full"
|
|
13929
|
+
})), /*#__PURE__*/React__default['default'].createElement("li", null, /*#__PURE__*/React__default['default'].createElement(FacebookLoginButton, {
|
|
13930
|
+
className: "plc-flex plc-w-full"
|
|
13931
|
+
})), auth0LoginEnabled && /*#__PURE__*/React__default['default'].createElement("li", null, /*#__PURE__*/React__default['default'].createElement(Auth0LoginButton, {
|
|
13932
|
+
className: "plc-flex plc-w-full"
|
|
13933
|
+
})))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13951
13934
|
className: "plc-flex plc-items-center plc-justify-between plc-mt-5"
|
|
13952
13935
|
}, /*#__PURE__*/React__default['default'].createElement("hr", {
|
|
13953
13936
|
className: "plc-w-full plc-border-gray-300"
|
|
@@ -18872,26 +18855,26 @@ const NextArrow = ({
|
|
|
18872
18855
|
onClick,
|
|
18873
18856
|
className
|
|
18874
18857
|
}) => /*#__PURE__*/React__default['default'].createElement("button", {
|
|
18875
|
-
className: `sm:plc-flex plc-hidden plc-text-
|
|
18858
|
+
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}`,
|
|
18876
18859
|
onClick: onClick
|
|
18877
18860
|
}, /*#__PURE__*/React__default['default'].createElement(SvgArrowThinRight, {
|
|
18878
18861
|
stroke: "currentColor",
|
|
18879
18862
|
"aria-hidden": "true",
|
|
18880
18863
|
focusable: "false",
|
|
18881
|
-
className: "plc-h-
|
|
18864
|
+
className: "plc-h-7 plc-w-7"
|
|
18882
18865
|
}));
|
|
18883
18866
|
|
|
18884
18867
|
const PrevArrow = ({
|
|
18885
18868
|
onClick,
|
|
18886
18869
|
className
|
|
18887
18870
|
}) => /*#__PURE__*/React__default['default'].createElement("button", {
|
|
18888
|
-
className: `sm:plc-flex plc-hidden plc-text-
|
|
18871
|
+
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}`,
|
|
18889
18872
|
onClick: onClick
|
|
18890
18873
|
}, /*#__PURE__*/React__default['default'].createElement(SvgArrowThinLeft, {
|
|
18891
18874
|
stroke: "currentColor",
|
|
18892
18875
|
"aria-hidden": "true",
|
|
18893
18876
|
focusable: "false",
|
|
18894
|
-
className: "plc-h-
|
|
18877
|
+
className: "plc-h-7 plc-w-7"
|
|
18895
18878
|
}));
|
|
18896
18879
|
|
|
18897
18880
|
function Carousel({
|
|
@@ -18927,7 +18910,7 @@ function Carousel({
|
|
|
18927
18910
|
}]
|
|
18928
18911
|
};
|
|
18929
18912
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18930
|
-
className: "carousel-wrapper plc-relative sm:plc-px-
|
|
18913
|
+
className: "carousel-wrapper plc-relative sm:plc-px-8 plc-px-0"
|
|
18931
18914
|
}, /*#__PURE__*/React__default['default'].createElement(Slider, Object.assign({
|
|
18932
18915
|
ref: ref
|
|
18933
18916
|
}, settings), children));
|
|
@@ -19158,9 +19141,9 @@ class SelectModal extends React.Component {
|
|
|
19158
19141
|
description
|
|
19159
19142
|
} = this.state.product;
|
|
19160
19143
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19161
|
-
className: "productTabs"
|
|
19144
|
+
className: "productTabs plc-flex plc-flex-col plc-items-center"
|
|
19162
19145
|
}, /*#__PURE__*/React__default['default'].createElement("ul", {
|
|
19163
|
-
className: "tabs plc-flex plc-items-center plc-text-center plc-border-b plc-border-gray-300 plc-mb-4 plc-overflow-x-auto"
|
|
19146
|
+
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"
|
|
19164
19147
|
}, this.state.productList.map((product, index) => {
|
|
19165
19148
|
var _this$state$product;
|
|
19166
19149
|
|
|
@@ -19174,7 +19157,7 @@ class SelectModal extends React.Component {
|
|
|
19174
19157
|
className: "plc-px-4 plc-py-2 plc-rounded plc-text-gray-600 focus:plc-outline-none plc-whitespace-nowrap"
|
|
19175
19158
|
}, product.name));
|
|
19176
19159
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19177
|
-
className: "selectedProduct plc-flex plc-flex-col plc-items-center plc-justify-center"
|
|
19160
|
+
className: "selectedProduct plc-flex plc-flex-col plc-items-center plc-justify-center plc-max-w-3xl"
|
|
19178
19161
|
}, image && /*#__PURE__*/React__default['default'].createElement("figure", {
|
|
19179
19162
|
className: "plc-mb-2"
|
|
19180
19163
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
@@ -19225,7 +19208,7 @@ class SelectModal extends React.Component {
|
|
|
19225
19208
|
const isChecked = this.state.plan.id === plan.id ? true : false;
|
|
19226
19209
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19227
19210
|
key: plan.id,
|
|
19228
|
-
className: `${((_this$state = this.state) === null || _this$state === void 0 ? void 0 : _this$state.plan.id) === plan.id ? "plc-border-2 plc-border-primary
|
|
19211
|
+
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`
|
|
19229
19212
|
}, /*#__PURE__*/React__default['default'].createElement(Radio, {
|
|
19230
19213
|
wrapperClassName: "plc-w-full plc-flex plc-h-full",
|
|
19231
19214
|
className: "plc-hidden pelcro-select-plan-radio",
|
|
@@ -19236,13 +19219,13 @@ class SelectModal extends React.Component {
|
|
|
19236
19219
|
"data-key": plan.id,
|
|
19237
19220
|
onChange: this.selectPlan
|
|
19238
19221
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19239
|
-
className: "plc-p-4 plc-text-center plc-flex plc-flex-col plc-justify-center plc-items-center plc-w-full
|
|
19222
|
+
className: "plc-p-4 plc-text-center plc-flex plc-flex-col plc-justify-center plc-items-center plc-w-full"
|
|
19240
19223
|
}, /*#__PURE__*/React__default['default'].createElement("h4", {
|
|
19241
19224
|
className: "pelcro-select-plan-title plc-font-medium plc-text-xl plc-break-all"
|
|
19242
19225
|
}, plan.nickname), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
19243
19226
|
className: "plc-text-sm plc-mt-1 pelcro-select-plan-description plc-text-gray-400"
|
|
19244
19227
|
}, plan.description)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19245
|
-
className: "plc-mt-auto plc-px-4 plc-mb-4"
|
|
19228
|
+
className: "plc-mt-auto plc-px-4 plc-mb-4 plc-border-t plc-border-gray-300"
|
|
19246
19229
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19247
19230
|
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"
|
|
19248
19231
|
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
@@ -19254,7 +19237,7 @@ class SelectModal extends React.Component {
|
|
|
19254
19237
|
}, plan.currency), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19255
19238
|
className: "plc-capitalize"
|
|
19256
19239
|
}, "/ ", plan.interval))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19257
|
-
className: `${((_this$state2 = this.state) === null || _this$state2 === void 0 ? void 0 : _this$state2.plan.id) === plan.id ? "plc-bg-primary
|
|
19240
|
+
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`
|
|
19258
19241
|
}, this.locale("buttons.select")))));
|
|
19259
19242
|
});
|
|
19260
19243
|
return /*#__PURE__*/React__default['default'].createElement(Carousel, {
|
|
@@ -19409,7 +19392,7 @@ class SelectModal extends React.Component {
|
|
|
19409
19392
|
}, this.state.mode === "plan" && /*#__PURE__*/React__default['default'].createElement("button", {
|
|
19410
19393
|
type: "button",
|
|
19411
19394
|
onClick: this.goBack,
|
|
19412
|
-
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"
|
|
19395
|
+
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"
|
|
19413
19396
|
}, /*#__PURE__*/React__default['default'].createElement(SvgArrowLeft, null)), /*#__PURE__*/React__default['default'].createElement("h4", {
|
|
19414
19397
|
className: "plc-text-2xl plc-font-semibold"
|
|
19415
19398
|
}, 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['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['default'].createElement(ModalBody, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -19428,7 +19411,7 @@ class SelectModal extends React.Component {
|
|
|
19428
19411
|
disabled: this.state.disabled,
|
|
19429
19412
|
onClick: this.submitOption,
|
|
19430
19413
|
id: "pelcro-submit",
|
|
19431
|
-
className: "plc-w-full plc-
|
|
19414
|
+
className: "plc-mt-2 plc-w-full plc-max-w-sm plc-ml-auto plc-mr-auto plc-block"
|
|
19432
19415
|
}, this.locale("buttons.next"))))), /*#__PURE__*/React__default['default'].createElement(ModalFooter, null, !window.Pelcro.user.isAuthenticated() && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
19433
19416
|
className: "plc-mb-9"
|
|
19434
19417
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
@@ -30207,7 +30190,7 @@ const GiftCreateModal = ({
|
|
|
30207
30190
|
}, t("gift.titles.firstTitle")))), /*#__PURE__*/React__default['default'].createElement(ModalBody, null, /*#__PURE__*/React__default['default'].createElement(GiftCreateView, Object.assign({}, otherProps, {
|
|
30208
30191
|
onSuccess: onSuccess
|
|
30209
30192
|
}))), /*#__PURE__*/React__default['default'].createElement(ModalFooter, null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
30210
|
-
className: "plc-mb-
|
|
30193
|
+
className: "plc-mb-4"
|
|
30211
30194
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
30212
30195
|
className: "plc-font-medium"
|
|
30213
30196
|
}, t("messages.selectPlan") + " "), /*#__PURE__*/React__default['default'].createElement(Link, {
|
|
@@ -35793,7 +35776,7 @@ class Dashboard extends React.Component {
|
|
|
35793
35776
|
icon: /*#__PURE__*/React__default['default'].createElement(SvgQrcode, {
|
|
35794
35777
|
className: "plc-w-6 plc-h-6 plc-mr-2"
|
|
35795
35778
|
}),
|
|
35796
|
-
title: "
|
|
35779
|
+
title: this.locale("labels.myQRCode"),
|
|
35797
35780
|
setActiveDashboardLink: this.setActiveDashboardLink,
|
|
35798
35781
|
activeDashboardLink: this.state.activeDashboardLink
|
|
35799
35782
|
}), /*#__PURE__*/React__default['default'].createElement(DashboardLink, {
|