@pelcro/react-pelcro-js 4.0.0-alpha.22 → 4.0.0-alpha.23
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 +486 -373
- package/dist/index.esm.js +544 -431
- package/dist/pelcro.css +17 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { useContext, useState, useRef, useEffect
|
|
2
|
+
import React__default, { useContext, useState, useRef, useEffect, useReducer, useLayoutEffect, Component, memo, createElement, Fragment, useMemo, forwardRef, createContext, useCallback, isValidElement, cloneElement } from 'react';
|
|
3
3
|
import ReactDOM, { render as render$1 } from 'react-dom';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
|
|
@@ -3119,7 +3119,7 @@ function useTranslation(ns) {
|
|
|
3119
3119
|
setT = _useState2[1];
|
|
3120
3120
|
|
|
3121
3121
|
var isMounted = useRef(true);
|
|
3122
|
-
useEffect
|
|
3122
|
+
useEffect(function () {
|
|
3123
3123
|
var bindI18n = i18nOptions.bindI18n,
|
|
3124
3124
|
bindI18nStore = i18nOptions.bindI18nStore;
|
|
3125
3125
|
isMounted.current = true;
|
|
@@ -3147,7 +3147,7 @@ function useTranslation(ns) {
|
|
|
3147
3147
|
};
|
|
3148
3148
|
}, [i18n, namespaces.join()]);
|
|
3149
3149
|
var isInitial = useRef(true);
|
|
3150
|
-
useEffect
|
|
3150
|
+
useEffect(function () {
|
|
3151
3151
|
if (isMounted.current && !isInitial.current) {
|
|
3152
3152
|
setT(getT);
|
|
3153
3153
|
}
|
|
@@ -6847,7 +6847,7 @@ function create$1(createState) {
|
|
|
6847
6847
|
}
|
|
6848
6848
|
|
|
6849
6849
|
const isSSR = typeof window === "undefined" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent);
|
|
6850
|
-
const useIsomorphicLayoutEffect = isSSR ? useEffect
|
|
6850
|
+
const useIsomorphicLayoutEffect = isSSR ? useEffect : useLayoutEffect;
|
|
6851
6851
|
function create(createState) {
|
|
6852
6852
|
const api = typeof createState === "function" ? create$1(createState) : createState;
|
|
6853
6853
|
const useStore = (selector = api.getState, equalityFn = Object.is) => {
|
|
@@ -6989,7 +6989,7 @@ exports.default = create;
|
|
|
6989
6989
|
|
|
6990
6990
|
var createStore = unwrapExports(vanilla);
|
|
6991
6991
|
|
|
6992
|
-
function c$1(c,r,d){const u={count:0},s=t=>{const o=useRef(u.count);return useEffect
|
|
6992
|
+
function c$1(c,r,d){const u={count:0},s=t=>{const o=useRef(u.count);return useEffect(()=>{o.current+=1,o.current===u.count+1&&(o.current-=1,r.setState(t));}),null};if(s.displayName=`((${c})) devtool`,!d){let t=document.getElementById("simple-zustand-devtools");t||(t=document.createElement("div"),t.id="simple-zustand-devtools"),document.body.appendChild(t),d=t;}const m=e=>{e&&(render$1(React__default.createElement(s,Object.assign({},e)),d),u.count+=1);};m(r.getState()),r.subscribe(m);}
|
|
6993
6993
|
|
|
6994
6994
|
var _extends_1 = createCommonjsModule(function (module) {
|
|
6995
6995
|
function _extends() {
|
|
@@ -8667,7 +8667,7 @@ const createPelcroHook = store => {
|
|
|
8667
8667
|
|
|
8668
8668
|
pelcroHook.override = fn => {
|
|
8669
8669
|
const partialState = fn(store.setState, store.getState);
|
|
8670
|
-
usePelcro
|
|
8670
|
+
usePelcro.setState(partialState);
|
|
8671
8671
|
};
|
|
8672
8672
|
|
|
8673
8673
|
pelcroHook.getStore = pelcroHook.getState;
|
|
@@ -8675,11 +8675,11 @@ const createPelcroHook = store => {
|
|
|
8675
8675
|
};
|
|
8676
8676
|
|
|
8677
8677
|
const pelcroStore = createPelcroStore();
|
|
8678
|
-
const usePelcro
|
|
8678
|
+
const usePelcro = createPelcroHook(pelcroStore);
|
|
8679
8679
|
/* istanbul ignore next */
|
|
8680
8680
|
|
|
8681
8681
|
if (process.env.NODE_ENV === "development") {
|
|
8682
|
-
c$1("Pelcro Store", usePelcro
|
|
8682
|
+
c$1("Pelcro Store", usePelcro);
|
|
8683
8683
|
}
|
|
8684
8684
|
|
|
8685
8685
|
/**
|
|
@@ -8884,7 +8884,7 @@ const trackSubscriptionOnGA = () => {
|
|
|
8884
8884
|
product,
|
|
8885
8885
|
plan,
|
|
8886
8886
|
couponCode
|
|
8887
|
-
} = usePelcro
|
|
8887
|
+
} = usePelcro.getStore();
|
|
8888
8888
|
/*
|
|
8889
8889
|
getting the latest subscription id from invoices instead of subscriptions
|
|
8890
8890
|
to handle gifted subs which are not added to subs list
|
|
@@ -9209,7 +9209,7 @@ class SaveToMetadataButtonClass {
|
|
|
9209
9209
|
_defineProperty$3(this, "unauthenticated", () => {
|
|
9210
9210
|
const {
|
|
9211
9211
|
switchView
|
|
9212
|
-
} = usePelcro
|
|
9212
|
+
} = usePelcro.getStore();
|
|
9213
9213
|
|
|
9214
9214
|
_classPrivateFieldGet(this, _onClick).call(this, () => switchView("login"));
|
|
9215
9215
|
|
|
@@ -9292,7 +9292,7 @@ class SaveToMetadataButtonClass {
|
|
|
9292
9292
|
const user = window.Pelcro.user.read();
|
|
9293
9293
|
const {
|
|
9294
9294
|
switchView
|
|
9295
|
-
} = usePelcro
|
|
9295
|
+
} = usePelcro.getStore();
|
|
9296
9296
|
const {
|
|
9297
9297
|
key,
|
|
9298
9298
|
...buttonMetadata
|
|
@@ -9424,8 +9424,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
|
|
|
9424
9424
|
|
|
9425
9425
|
let e={data:""},t=t=>"undefined"!=typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||e,l=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(})/g,a=/\/\*[^]*?\*\/|\s\s+|\n/g,n=(e,t)=>{let r,l="",a="",o="";for(let c in e){let s=e[c];"object"==typeof s?(r=t?t.replace(/([^,])+/g,e=>c.replace(/([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):c,a+="@"==c[0]?"f"==c[1]?n(s,c):c+"{"+n(s,"k"==c[1]?"":t)+"}":n(s,r)):"@"==c[0]&&"i"==c[1]?l=c+" "+s+";":(c=c.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=n.p?n.p(c,s):c+":"+s+";");}return o[0]?(r=t?t+"{"+o+"}":o,l+r+a):l+a},o={},c=e=>{let t="";for(let r in e)t+=r+("object"==typeof e[r]?c(e[r]):e[r]);return t},s=(e,t,r,s,i)=>{let p="object"==typeof e?c(e):e,u=o[p]||(o[p]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return "go"+r})(p));if(!o[u]){let t="object"==typeof e?e:(e=>{let t,r=[{}];for(;t=l.exec(e.replace(a,""));)t[4]&&r.shift(),t[3]?r.unshift(r[0][t[3]]=r[0][t[3]]||{}):t[4]||(r[0][t[1]]=t[2]);return r[0]})(e);o[u]=n(i?{["@keyframes "+u]:t}:t,r?"":"."+u);}return ((e,t,r)=>{-1==t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e);})(o[u],t,s),u},i$1=(e,t,r)=>e.reduce((e,l,a)=>{let o=t[a];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":n(e,""):e;}return e+l+(null==o?"":o)},"");function p(e){let r=this||{},l=e.call?e(r.p):e;return s(l.unshift?l.raw?i$1(l,[].slice.call(arguments,1),r.p):l.reduce((e,t)=>t?Object.assign(e,t.call?t(r.p):t):e,{}):l,t(r.target),r.g,r.o,r.k)}let u,f,d;p.bind({g:1});let b=p.bind({k:1});function h(e,t,r,l){n.p=t,u=e,f=r,d=l;}function y(e,t){let r=this||{};return function(){let l=arguments;function a(n,o){let c=Object.assign({},n),s=c.className||a.className;r.p=Object.assign({theme:f&&f()},c),r.o=/ *go\d+/.test(s),c.className=p.apply(r,l)+(s?" "+s:""),t&&(c.ref=o);let i=c.as||e;return d&&i[0]&&d(c),u(i,c)}return t?t(a):a}}
|
|
9426
9426
|
|
|
9427
|
-
function _extends$
|
|
9428
|
-
_extends$
|
|
9427
|
+
function _extends$D() {
|
|
9428
|
+
_extends$D = Object.assign || function (target) {
|
|
9429
9429
|
for (var i = 1; i < arguments.length; i++) {
|
|
9430
9430
|
var source = arguments[i];
|
|
9431
9431
|
|
|
@@ -9439,7 +9439,7 @@ function _extends$C() {
|
|
|
9439
9439
|
return target;
|
|
9440
9440
|
};
|
|
9441
9441
|
|
|
9442
|
-
return _extends$
|
|
9442
|
+
return _extends$D.apply(this, arguments);
|
|
9443
9443
|
}
|
|
9444
9444
|
|
|
9445
9445
|
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
@@ -9529,7 +9529,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
|
|
|
9529
9529
|
var reducer = function reducer(state, action) {
|
|
9530
9530
|
switch (action.type) {
|
|
9531
9531
|
case ActionType.ADD_TOAST:
|
|
9532
|
-
return _extends$
|
|
9532
|
+
return _extends$D({}, state, {
|
|
9533
9533
|
toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
|
|
9534
9534
|
});
|
|
9535
9535
|
|
|
@@ -9539,9 +9539,9 @@ var reducer = function reducer(state, action) {
|
|
|
9539
9539
|
clearFromRemoveQueue(action.toast.id);
|
|
9540
9540
|
}
|
|
9541
9541
|
|
|
9542
|
-
return _extends$
|
|
9542
|
+
return _extends$D({}, state, {
|
|
9543
9543
|
toasts: state.toasts.map(function (t) {
|
|
9544
|
-
return t.id === action.toast.id ? _extends$
|
|
9544
|
+
return t.id === action.toast.id ? _extends$D({}, t, action.toast) : t;
|
|
9545
9545
|
})
|
|
9546
9546
|
});
|
|
9547
9547
|
|
|
@@ -9568,9 +9568,9 @@ var reducer = function reducer(state, action) {
|
|
|
9568
9568
|
});
|
|
9569
9569
|
}
|
|
9570
9570
|
|
|
9571
|
-
return _extends$
|
|
9571
|
+
return _extends$D({}, state, {
|
|
9572
9572
|
toasts: state.toasts.map(function (t) {
|
|
9573
|
-
return t.id === toastId || toastId === undefined ? _extends$
|
|
9573
|
+
return t.id === toastId || toastId === undefined ? _extends$D({}, t, {
|
|
9574
9574
|
visible: false
|
|
9575
9575
|
}) : t;
|
|
9576
9576
|
})
|
|
@@ -9578,28 +9578,28 @@ var reducer = function reducer(state, action) {
|
|
|
9578
9578
|
|
|
9579
9579
|
case ActionType.REMOVE_TOAST:
|
|
9580
9580
|
if (action.toastId === undefined) {
|
|
9581
|
-
return _extends$
|
|
9581
|
+
return _extends$D({}, state, {
|
|
9582
9582
|
toasts: []
|
|
9583
9583
|
});
|
|
9584
9584
|
}
|
|
9585
9585
|
|
|
9586
|
-
return _extends$
|
|
9586
|
+
return _extends$D({}, state, {
|
|
9587
9587
|
toasts: state.toasts.filter(function (t) {
|
|
9588
9588
|
return t.id !== action.toastId;
|
|
9589
9589
|
})
|
|
9590
9590
|
});
|
|
9591
9591
|
|
|
9592
9592
|
case ActionType.START_PAUSE:
|
|
9593
|
-
return _extends$
|
|
9593
|
+
return _extends$D({}, state, {
|
|
9594
9594
|
pausedAt: action.time
|
|
9595
9595
|
});
|
|
9596
9596
|
|
|
9597
9597
|
case ActionType.END_PAUSE:
|
|
9598
9598
|
var diff = action.time - (state.pausedAt || 0);
|
|
9599
|
-
return _extends$
|
|
9599
|
+
return _extends$D({}, state, {
|
|
9600
9600
|
pausedAt: undefined,
|
|
9601
9601
|
toasts: state.toasts.map(function (t) {
|
|
9602
|
-
return _extends$
|
|
9602
|
+
return _extends$D({}, t, {
|
|
9603
9603
|
pauseDuration: t.pauseDuration + diff
|
|
9604
9604
|
});
|
|
9605
9605
|
})
|
|
@@ -9633,7 +9633,7 @@ var useStore = function useStore(toastOptions) {
|
|
|
9633
9633
|
state = _useState[0],
|
|
9634
9634
|
setState = _useState[1];
|
|
9635
9635
|
|
|
9636
|
-
useEffect
|
|
9636
|
+
useEffect(function () {
|
|
9637
9637
|
listeners.push(setState);
|
|
9638
9638
|
return function () {
|
|
9639
9639
|
var index = listeners.indexOf(setState);
|
|
@@ -9646,12 +9646,12 @@ var useStore = function useStore(toastOptions) {
|
|
|
9646
9646
|
var mergedToasts = state.toasts.map(function (t) {
|
|
9647
9647
|
var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
|
|
9648
9648
|
|
|
9649
|
-
return _extends$
|
|
9649
|
+
return _extends$D({}, toastOptions, toastOptions[t.type], t, {
|
|
9650
9650
|
duration: t.duration || ((_toastOptions$t$type = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type.duration) || ((_toastOptions = toastOptions) == null ? void 0 : _toastOptions.duration) || defaultTimeouts[t.type],
|
|
9651
|
-
style: _extends$
|
|
9651
|
+
style: _extends$D({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
|
|
9652
9652
|
});
|
|
9653
9653
|
});
|
|
9654
|
-
return _extends$
|
|
9654
|
+
return _extends$D({}, state, {
|
|
9655
9655
|
toasts: mergedToasts
|
|
9656
9656
|
});
|
|
9657
9657
|
};
|
|
@@ -9661,7 +9661,7 @@ var createToast = function createToast(message, type, opts) {
|
|
|
9661
9661
|
type = 'blank';
|
|
9662
9662
|
}
|
|
9663
9663
|
|
|
9664
|
-
return _extends$
|
|
9664
|
+
return _extends$D({
|
|
9665
9665
|
createdAt: Date.now(),
|
|
9666
9666
|
visible: true,
|
|
9667
9667
|
type: type,
|
|
@@ -9711,14 +9711,14 @@ toast.remove = function (toastId) {
|
|
|
9711
9711
|
};
|
|
9712
9712
|
|
|
9713
9713
|
toast.promise = function (promise, msgs, opts) {
|
|
9714
|
-
var id = toast.loading(msgs.loading, _extends$
|
|
9714
|
+
var id = toast.loading(msgs.loading, _extends$D({}, opts, opts == null ? void 0 : opts.loading));
|
|
9715
9715
|
promise.then(function (p) {
|
|
9716
|
-
toast.success(resolveValue(msgs.success, p), _extends$
|
|
9716
|
+
toast.success(resolveValue(msgs.success, p), _extends$D({
|
|
9717
9717
|
id: id
|
|
9718
9718
|
}, opts, opts == null ? void 0 : opts.success));
|
|
9719
9719
|
return p;
|
|
9720
9720
|
})["catch"](function (e) {
|
|
9721
|
-
toast.error(resolveValue(msgs.error, e), _extends$
|
|
9721
|
+
toast.error(resolveValue(msgs.error, e), _extends$D({
|
|
9722
9722
|
id: id
|
|
9723
9723
|
}, opts, opts == null ? void 0 : opts.error));
|
|
9724
9724
|
});
|
|
@@ -9730,7 +9730,7 @@ var useToaster = function useToaster(toastOptions) {
|
|
|
9730
9730
|
toasts = _useStore.toasts,
|
|
9731
9731
|
pausedAt = _useStore.pausedAt;
|
|
9732
9732
|
|
|
9733
|
-
useEffect
|
|
9733
|
+
useEffect(function () {
|
|
9734
9734
|
if (pausedAt) {
|
|
9735
9735
|
return;
|
|
9736
9736
|
}
|
|
@@ -10057,7 +10057,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
|
|
|
10057
10057
|
var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
10058
10058
|
return createElement(ToastBarBase, {
|
|
10059
10059
|
className: toast.className,
|
|
10060
|
-
style: _extends$
|
|
10060
|
+
style: _extends$D({}, animationStyle, style, toast.style)
|
|
10061
10061
|
}, typeof children === 'function' ? children({
|
|
10062
10062
|
icon: icon,
|
|
10063
10063
|
message: message
|
|
@@ -10087,7 +10087,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
|
|
|
10087
10087
|
} : position.includes('right') ? {
|
|
10088
10088
|
justifyContent: 'flex-end'
|
|
10089
10089
|
} : {};
|
|
10090
|
-
return _extends$
|
|
10090
|
+
return _extends$D({
|
|
10091
10091
|
left: 0,
|
|
10092
10092
|
right: 0,
|
|
10093
10093
|
display: 'flex',
|
|
@@ -10114,7 +10114,7 @@ var Toaster = function Toaster(_ref) {
|
|
|
10114
10114
|
handlers = _useToaster.handlers;
|
|
10115
10115
|
|
|
10116
10116
|
return createElement("div", {
|
|
10117
|
-
style: _extends$
|
|
10117
|
+
style: _extends$D({
|
|
10118
10118
|
position: 'fixed',
|
|
10119
10119
|
zIndex: 9999,
|
|
10120
10120
|
top: DEFAULT_OFFSET,
|
|
@@ -10149,82 +10149,82 @@ var Toaster = function Toaster(_ref) {
|
|
|
10149
10149
|
}));
|
|
10150
10150
|
};
|
|
10151
10151
|
|
|
10152
|
-
var _path$
|
|
10152
|
+
var _path$z;
|
|
10153
10153
|
|
|
10154
|
-
function _extends$
|
|
10154
|
+
function _extends$C() { _extends$C = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$C.apply(this, arguments); }
|
|
10155
10155
|
|
|
10156
10156
|
function SvgCheckSolid(props) {
|
|
10157
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10157
|
+
return /*#__PURE__*/React.createElement("svg", _extends$C({
|
|
10158
10158
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10159
10159
|
className: "h-5 w-5",
|
|
10160
10160
|
viewBox: "0 0 20 20",
|
|
10161
10161
|
fill: "currentColor"
|
|
10162
|
-
}, props), _path$
|
|
10162
|
+
}, props), _path$z || (_path$z = /*#__PURE__*/React.createElement("path", {
|
|
10163
10163
|
fillRule: "evenodd",
|
|
10164
10164
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
10165
10165
|
clipRule: "evenodd"
|
|
10166
10166
|
})));
|
|
10167
10167
|
}
|
|
10168
10168
|
|
|
10169
|
-
var _path$
|
|
10169
|
+
var _path$y;
|
|
10170
10170
|
|
|
10171
|
-
function _extends$
|
|
10171
|
+
function _extends$B() { _extends$B = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$B.apply(this, arguments); }
|
|
10172
10172
|
|
|
10173
10173
|
function SvgXIcon(props) {
|
|
10174
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10174
|
+
return /*#__PURE__*/React.createElement("svg", _extends$B({
|
|
10175
10175
|
width: 24,
|
|
10176
10176
|
height: 24,
|
|
10177
10177
|
fill: "none",
|
|
10178
10178
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10179
|
-
}, props), _path$
|
|
10179
|
+
}, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
|
|
10180
10180
|
clipRule: "evenodd",
|
|
10181
10181
|
d: "M4.227 4.227a.774.774 0 011.095 0L12 10.905l6.678-6.678a.774.774 0 111.095 1.095L13.095 12l6.678 6.678a.774.774 0 11-1.095 1.095L12 13.095l-6.678 6.678a.774.774 0 11-1.095-1.095L10.905 12 4.227 5.322a.774.774 0 010-1.095z"
|
|
10182
10182
|
})));
|
|
10183
10183
|
}
|
|
10184
10184
|
|
|
10185
|
-
var _path$
|
|
10185
|
+
var _path$x;
|
|
10186
10186
|
|
|
10187
|
-
function _extends$
|
|
10187
|
+
function _extends$A() { _extends$A = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$A.apply(this, arguments); }
|
|
10188
10188
|
|
|
10189
10189
|
function SvgXIconSolid(props) {
|
|
10190
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10190
|
+
return /*#__PURE__*/React.createElement("svg", _extends$A({
|
|
10191
10191
|
className: "plc-w-4 plc-h-4",
|
|
10192
10192
|
fill: "currentColor",
|
|
10193
10193
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10194
10194
|
viewBox: "0 0 100 100"
|
|
10195
|
-
}, props), _path$
|
|
10195
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
|
|
10196
10196
|
d: "M94.842 48.408c0 24.852-20.148 44.999-45.002 44.999-24.851 0-44.997-20.146-44.997-44.999 0-24.854 20.146-45 44.997-45 24.853 0 45.002 20.146 45.002 45zM71.073 64.841L54.73 48.497l16.344-16.344-4.979-4.979-16.343 16.345-16.343-16.344-4.799 4.799 16.344 16.344L28.61 64.661l4.979 4.978 16.344-16.344 16.343 16.344 4.797-4.798z"
|
|
10197
10197
|
})));
|
|
10198
10198
|
}
|
|
10199
10199
|
|
|
10200
|
-
var _path$
|
|
10200
|
+
var _path$w;
|
|
10201
10201
|
|
|
10202
|
-
function _extends$
|
|
10202
|
+
function _extends$z() { _extends$z = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$z.apply(this, arguments); }
|
|
10203
10203
|
|
|
10204
10204
|
function SvgExclamation(props) {
|
|
10205
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10205
|
+
return /*#__PURE__*/React.createElement("svg", _extends$z({
|
|
10206
10206
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
10207
10207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10208
10208
|
viewBox: "0 0 20 20",
|
|
10209
10209
|
fill: "currentColor"
|
|
10210
|
-
}, props), _path$
|
|
10210
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
|
|
10211
10211
|
fillRule: "evenodd",
|
|
10212
10212
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",
|
|
10213
10213
|
clipRule: "evenodd"
|
|
10214
10214
|
})));
|
|
10215
10215
|
}
|
|
10216
10216
|
|
|
10217
|
-
var _path$
|
|
10217
|
+
var _path$v, _path2$3;
|
|
10218
10218
|
|
|
10219
|
-
function _extends$
|
|
10219
|
+
function _extends$y() { _extends$y = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
|
|
10220
10220
|
|
|
10221
10221
|
function SvgSpinner(props) {
|
|
10222
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10222
|
+
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
10223
10223
|
className: "plc-animate-spin",
|
|
10224
10224
|
viewBox: "0 0 24 24",
|
|
10225
10225
|
fill: "currentColor",
|
|
10226
10226
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10227
|
-
}, props), _path$
|
|
10227
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
|
|
10228
10228
|
opacity: 0.2,
|
|
10229
10229
|
fill: "evenodd",
|
|
10230
10230
|
clipRule: "evenodd",
|
|
@@ -10428,7 +10428,7 @@ const init$1 = () => {
|
|
|
10428
10428
|
addToCart,
|
|
10429
10429
|
purchaseItem,
|
|
10430
10430
|
setSubscriptionToManageMembers
|
|
10431
|
-
} = usePelcro
|
|
10431
|
+
} = usePelcro.getStore();
|
|
10432
10432
|
const pelcroDashboardButtonsByClass = document.getElementsByClassName("pelcro-dashboard-button");
|
|
10433
10433
|
|
|
10434
10434
|
if (pelcroDashboardButtonsByClass.length !== 0) {
|
|
@@ -10731,7 +10731,7 @@ const init = () => {
|
|
|
10731
10731
|
const {
|
|
10732
10732
|
switchView,
|
|
10733
10733
|
set
|
|
10734
|
-
} = usePelcro
|
|
10734
|
+
} = usePelcro.getStore();
|
|
10735
10735
|
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
10736
10736
|
|
|
10737
10737
|
if (entitlementsProtectedElements.length === 0) {
|
|
@@ -10822,7 +10822,7 @@ function unblurElemWhenUserSubscribes(elem, entitlements) {
|
|
|
10822
10822
|
document.addEventListener("PelcroSubscriptionCreate", event => {
|
|
10823
10823
|
const {
|
|
10824
10824
|
isGift
|
|
10825
|
-
} = usePelcro
|
|
10825
|
+
} = usePelcro.getStore();
|
|
10826
10826
|
if (isGift) return;
|
|
10827
10827
|
const latestSub = event.detail.data.subscriptions[event.detail.data.subscriptions.length - 1];
|
|
10828
10828
|
const shouldUnblurContent = entitlements.some(ent => {
|
|
@@ -11160,7 +11160,7 @@ const initPaywalls = () => {
|
|
|
11160
11160
|
|
|
11161
11161
|
const {
|
|
11162
11162
|
switchView
|
|
11163
|
-
} = usePelcro
|
|
11163
|
+
} = usePelcro.getStore();
|
|
11164
11164
|
|
|
11165
11165
|
if (paywallMethods !== null && paywallMethods !== void 0 && paywallMethods.displayMeterPaywall()) {
|
|
11166
11166
|
/*
|
|
@@ -11182,7 +11182,7 @@ const loadPaymentSDKs = () => {
|
|
|
11182
11182
|
// Lazy load stripe's SDK
|
|
11183
11183
|
const {
|
|
11184
11184
|
whenUserReady
|
|
11185
|
-
} = usePelcro
|
|
11185
|
+
} = usePelcro.getStore();
|
|
11186
11186
|
whenUserReady(() => {
|
|
11187
11187
|
if (!window.Stripe) {
|
|
11188
11188
|
pure_1(window.Pelcro.environment.stripe);
|
|
@@ -11230,7 +11230,7 @@ const loadAuth0SDK = () => {
|
|
|
11230
11230
|
const initSecuritySdk = () => {
|
|
11231
11231
|
const {
|
|
11232
11232
|
whenSiteReady
|
|
11233
|
-
} = usePelcro
|
|
11233
|
+
} = usePelcro.getStore();
|
|
11234
11234
|
whenSiteReady(() => {
|
|
11235
11235
|
var _window$Pelcro$site$r2;
|
|
11236
11236
|
|
|
@@ -11266,7 +11266,7 @@ const dispatchModalDisplayEvents = modalName => {
|
|
|
11266
11266
|
const {
|
|
11267
11267
|
whenSiteReady,
|
|
11268
11268
|
whenEcommerceLoaded
|
|
11269
|
-
} = usePelcro
|
|
11269
|
+
} = usePelcro.getStore();
|
|
11270
11270
|
const renderShopView = shopComponent => {
|
|
11271
11271
|
whenEcommerceLoaded(() => {
|
|
11272
11272
|
const shopElement = document.getElementById("pelcro-shop");
|
|
@@ -11348,7 +11348,7 @@ const initViewFromURL = () => {
|
|
|
11348
11348
|
const {
|
|
11349
11349
|
switchView,
|
|
11350
11350
|
whenSiteReady
|
|
11351
|
-
} = usePelcro
|
|
11351
|
+
} = usePelcro.getStore();
|
|
11352
11352
|
|
|
11353
11353
|
if (isValidViewFromURL(view)) {
|
|
11354
11354
|
whenSiteReady(() => {
|
|
@@ -11406,7 +11406,7 @@ const initSubscriptionFromURL = () => {
|
|
|
11406
11406
|
switchView,
|
|
11407
11407
|
whenSiteReady,
|
|
11408
11408
|
set
|
|
11409
|
-
} = usePelcro
|
|
11409
|
+
} = usePelcro.getStore();
|
|
11410
11410
|
whenSiteReady(() => {
|
|
11411
11411
|
var _selectedProduct$plan;
|
|
11412
11412
|
|
|
@@ -11430,7 +11430,7 @@ const initSubscriptionFromURL = () => {
|
|
|
11430
11430
|
isAuthenticated,
|
|
11431
11431
|
switchToAddressView,
|
|
11432
11432
|
switchToPaymentView
|
|
11433
|
-
} = usePelcro
|
|
11433
|
+
} = usePelcro.getStore();
|
|
11434
11434
|
|
|
11435
11435
|
if (!isAuthenticated()) {
|
|
11436
11436
|
return switchView("register");
|
|
@@ -11462,7 +11462,7 @@ const initOfflineSubscriptionFromURL = offlinePlanId => {
|
|
|
11462
11462
|
switchToPaymentView,
|
|
11463
11463
|
switchToAddressView,
|
|
11464
11464
|
set
|
|
11465
|
-
} = usePelcro
|
|
11465
|
+
} = usePelcro.getStore();
|
|
11466
11466
|
whenSiteReady(() => {
|
|
11467
11467
|
window.Pelcro.plan.getPlan({
|
|
11468
11468
|
plan_id: offlinePlanId
|
|
@@ -11509,7 +11509,7 @@ const initPurchaseFromUrl = () => {
|
|
|
11509
11509
|
const {
|
|
11510
11510
|
whenEcommerceLoaded,
|
|
11511
11511
|
purchaseItem
|
|
11512
|
-
} = usePelcro
|
|
11512
|
+
} = usePelcro.getStore();
|
|
11513
11513
|
whenEcommerceLoaded(() => {
|
|
11514
11514
|
const skuId = window.Pelcro.helpers.getURLParameter("sku_id");
|
|
11515
11515
|
purchaseItem(skuId);
|
|
@@ -11525,7 +11525,7 @@ const initCartFromUrl = () => {
|
|
|
11525
11525
|
whenEcommerceLoaded,
|
|
11526
11526
|
addToCart,
|
|
11527
11527
|
switchView
|
|
11528
|
-
} = usePelcro
|
|
11528
|
+
} = usePelcro.getStore();
|
|
11529
11529
|
whenEcommerceLoaded(() => {
|
|
11530
11530
|
const skusIdsParam = window.Pelcro.helpers.getURLParameter("sku_id");
|
|
11531
11531
|
const skusIds = skusIdsParam === null || skusIdsParam === void 0 ? void 0 : skusIdsParam.split(",");
|
|
@@ -11546,7 +11546,7 @@ const verifyEmailTokenFromUrl = () => {
|
|
|
11546
11546
|
|
|
11547
11547
|
const {
|
|
11548
11548
|
whenSiteReady
|
|
11549
|
-
} = usePelcro
|
|
11549
|
+
} = usePelcro.getStore();
|
|
11550
11550
|
const translations = i18next.t("verifyEmail:messages", {
|
|
11551
11551
|
returnObjects: true
|
|
11552
11552
|
});
|
|
@@ -11575,7 +11575,7 @@ const verifyLinkTokenFromUrl = () => {
|
|
|
11575
11575
|
whenSiteReady,
|
|
11576
11576
|
resetView,
|
|
11577
11577
|
isAuthenticated
|
|
11578
|
-
} = usePelcro
|
|
11578
|
+
} = usePelcro.getStore();
|
|
11579
11579
|
const translations = i18next.t("verifyLinkToken:messages", {
|
|
11580
11580
|
returnObjects: true
|
|
11581
11581
|
});
|
|
@@ -11614,12 +11614,12 @@ const showPasswordlessRequestFromUrl = () => {
|
|
|
11614
11614
|
|
|
11615
11615
|
const {
|
|
11616
11616
|
isAuthenticated
|
|
11617
|
-
} = usePelcro
|
|
11617
|
+
} = usePelcro.getStore();
|
|
11618
11618
|
const passwordlessEnabled = (_window$Pelcro$site$r8 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r8 === void 0 ? void 0 : _window$Pelcro$site$r8.passwordless_enabled;
|
|
11619
11619
|
if (!passwordlessEnabled || isAuthenticated()) return;
|
|
11620
11620
|
const {
|
|
11621
11621
|
switchView
|
|
11622
|
-
} = usePelcro
|
|
11622
|
+
} = usePelcro.getStore();
|
|
11623
11623
|
return switchView("passwordless-request");
|
|
11624
11624
|
};
|
|
11625
11625
|
|
|
@@ -11629,7 +11629,7 @@ const showInvoiceDetailsFromUrl = () => {
|
|
|
11629
11629
|
setInvoice,
|
|
11630
11630
|
whenSiteReady,
|
|
11631
11631
|
switchView
|
|
11632
|
-
} = usePelcro
|
|
11632
|
+
} = usePelcro.getStore();
|
|
11633
11633
|
whenSiteReady(() => {
|
|
11634
11634
|
if (!isAuthenticated()) {
|
|
11635
11635
|
return switchView("login");
|
|
@@ -11647,7 +11647,7 @@ const showInvoiceDetailsFromUrl = () => {
|
|
|
11647
11647
|
|
|
11648
11648
|
const {
|
|
11649
11649
|
invoice
|
|
11650
|
-
} = usePelcro
|
|
11650
|
+
} = usePelcro.getStore();
|
|
11651
11651
|
|
|
11652
11652
|
if (invoice.total === 0) {
|
|
11653
11653
|
const errorMessage = i18next.t("messages:zeroTotalInvoice", {
|
|
@@ -11667,7 +11667,7 @@ const showSubscriptionManageMembersFromUrl = () => {
|
|
|
11667
11667
|
whenUserReady,
|
|
11668
11668
|
whenSiteReady,
|
|
11669
11669
|
switchView
|
|
11670
|
-
} = usePelcro
|
|
11670
|
+
} = usePelcro.getStore();
|
|
11671
11671
|
whenSiteReady(() => {
|
|
11672
11672
|
if (!isAuthenticated()) {
|
|
11673
11673
|
return switchView("login");
|
|
@@ -11707,7 +11707,7 @@ const PelcroModalController = ({
|
|
|
11707
11707
|
view,
|
|
11708
11708
|
isAuthenticated,
|
|
11709
11709
|
whenSiteReady
|
|
11710
|
-
} = usePelcro
|
|
11710
|
+
} = usePelcro();
|
|
11711
11711
|
React__default.useEffect(() => {
|
|
11712
11712
|
init$1();
|
|
11713
11713
|
renderShopView(React__default.Children.map(children, child => child).find(({
|
|
@@ -11959,6 +11959,9 @@ const SET_PASSWORD = "SET_PASSWORD";
|
|
|
11959
11959
|
const SET_EMAIL_ERROR = "SET_EMAIL_ERROR";
|
|
11960
11960
|
const SET_USERNAME_ERROR = "SET_USERNAME_ERROR";
|
|
11961
11961
|
const SET_PASSWORD_ERROR = "SET_PASSWORD_ERROR";
|
|
11962
|
+
const SET_FIRST_NAME_ERROR = "SET_FIRST_NAME_ERROR";
|
|
11963
|
+
const SET_LAST_NAME_ERROR = "SET_LAST_NAME_ERROR";
|
|
11964
|
+
const SET_PHONE_ERROR = "SET_PHONE_ERROR";
|
|
11962
11965
|
const SET_TEXT_FIELD = "SET_TEXT_FIELD";
|
|
11963
11966
|
const SET_TOKEN = "SET_TOKEN";
|
|
11964
11967
|
const SET_GIFT_CODE = "SET_GIFT_CODE";
|
|
@@ -12309,12 +12312,12 @@ function Email({
|
|
|
12309
12312
|
}
|
|
12310
12313
|
}
|
|
12311
12314
|
}, [dispatch, email, finishedTyping]);
|
|
12312
|
-
useEffect
|
|
12315
|
+
useEffect(() => {
|
|
12313
12316
|
if (!enableEmailEdit) {
|
|
12314
12317
|
loadEmailIntoField();
|
|
12315
12318
|
}
|
|
12316
12319
|
}, [enableEmailEdit]);
|
|
12317
|
-
useEffect
|
|
12320
|
+
useEffect(() => {
|
|
12318
12321
|
handleInputChange(email);
|
|
12319
12322
|
}, [finishedTyping, email, handleInputChange]); // Initialize email field with user's email
|
|
12320
12323
|
|
|
@@ -12322,7 +12325,7 @@ function Email({
|
|
|
12322
12325
|
handleInputChange(window.Pelcro.user.read().email);
|
|
12323
12326
|
};
|
|
12324
12327
|
|
|
12325
|
-
useEffect
|
|
12328
|
+
useEffect(() => {
|
|
12326
12329
|
if (initWithUserEmail) {
|
|
12327
12330
|
document.addEventListener("PelcroUserLoaded", () => {
|
|
12328
12331
|
loadEmailIntoField();
|
|
@@ -12382,7 +12385,7 @@ function UserNameInput({
|
|
|
12382
12385
|
});
|
|
12383
12386
|
}
|
|
12384
12387
|
}, [dispatch, username, finishedTyping]);
|
|
12385
|
-
useEffect
|
|
12388
|
+
useEffect(() => {
|
|
12386
12389
|
handleInputChange(username);
|
|
12387
12390
|
}, [finishedTyping, username, handleInputChange]);
|
|
12388
12391
|
return /*#__PURE__*/React__default.createElement(Input, Object.assign({
|
|
@@ -12426,7 +12429,7 @@ function Password({
|
|
|
12426
12429
|
});
|
|
12427
12430
|
}
|
|
12428
12431
|
}, [dispatch, password, finishedTyping]);
|
|
12429
|
-
useEffect
|
|
12432
|
+
useEffect(() => {
|
|
12430
12433
|
handleInputChange(password);
|
|
12431
12434
|
}, [finishedTyping, password, handleInputChange]);
|
|
12432
12435
|
return /*#__PURE__*/React__default.createElement(Input, Object.assign({
|
|
@@ -12459,7 +12462,7 @@ function ConfirmPassword({
|
|
|
12459
12462
|
} = useContext(store);
|
|
12460
12463
|
const [password, setPassword] = useState(stateConfirmPassword);
|
|
12461
12464
|
const [finishedTyping, setFinishedTyping] = useState(false);
|
|
12462
|
-
useEffect
|
|
12465
|
+
useEffect(() => dispatch({
|
|
12463
12466
|
type: CONFIRM_PASSWORD_USED,
|
|
12464
12467
|
payload: true
|
|
12465
12468
|
}), [dispatch]);
|
|
@@ -12478,7 +12481,7 @@ function ConfirmPassword({
|
|
|
12478
12481
|
});
|
|
12479
12482
|
}
|
|
12480
12483
|
}, [dispatch, password, finishedTyping]);
|
|
12481
|
-
useEffect
|
|
12484
|
+
useEffect(() => {
|
|
12482
12485
|
handleInputChange(password);
|
|
12483
12486
|
}, [finishedTyping, password, handleInputChange]);
|
|
12484
12487
|
return /*#__PURE__*/React__default.createElement(Input, Object.assign({
|
|
@@ -12532,7 +12535,7 @@ const LoginButton = ({
|
|
|
12532
12535
|
t
|
|
12533
12536
|
} = useTranslation("login");
|
|
12534
12537
|
const [isDisabled, setDisabled] = useState(true);
|
|
12535
|
-
useEffect
|
|
12538
|
+
useEffect(() => {
|
|
12536
12539
|
setDisabled(emailError || passwordError || usernameError || (!email.length || !username.length) && !password.length || buttonDisabled);
|
|
12537
12540
|
}, [emailError, passwordError, usernameError, email, password, username, buttonDisabled]);
|
|
12538
12541
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
@@ -12547,16 +12550,16 @@ const LoginButton = ({
|
|
|
12547
12550
|
}, otherProps), name !== null && name !== void 0 ? name : t("labels.login"));
|
|
12548
12551
|
};
|
|
12549
12552
|
|
|
12550
|
-
var _path$
|
|
12553
|
+
var _path$u, _path2$2;
|
|
12551
12554
|
|
|
12552
|
-
function _extends$
|
|
12555
|
+
function _extends$x() { _extends$x = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$x.apply(this, arguments); }
|
|
12553
12556
|
|
|
12554
12557
|
function SvgEmailVerify(props) {
|
|
12555
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
12558
|
+
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
12556
12559
|
className: "plc-w-6 plc-h-6",
|
|
12557
12560
|
viewBox: "0 0 700 700",
|
|
12558
12561
|
xmlns: "http://www.w3.org/2000/svg"
|
|
12559
|
-
}, props), _path$
|
|
12562
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
12560
12563
|
d: "M583.01 231.93a15.008 15.008 0 00-.887-3.875c-.562-1.254-1.129-2.508-1.695-3.762a14.686 14.686 0 00-1.898-1.789c-.438-.437-.653-1.027-1.153-1.414l-56.266-44.164v-52.484a15.555 15.555 0 00-15.554-15.555H434.56l-74.945-58.895a15.547 15.547 0 00-19.227 0l-74.945 58.895h-70.996a15.555 15.555 0 00-15.555 15.555v52.484l-56.266 44.16c-.496.39-.715.996-1.152 1.43v.004a13.37 13.37 0 00-1.898 1.773c-.22.426-.414.86-.59 1.305a14.158 14.158 0 00-1.106 2.457 15.009 15.009 0 00-.886 3.875c0 .48-.329.918-.329 1.398l.004 264.45a15.555 15.555 0 0015.555 15.555h435.55a15.555 15.555 0 0015.555-15.555v-264.45c0-.48-.278-.918-.325-1.398zm-41.176.809l-20.723 14.809v-31.11zm-191.83-150.73l34.223 26.883h-68.445zm-140 57.992h280v124.45c.07 1.593.383 3.168.934 4.664l-140.93 100.66-140.46-100.33c.214-.77.37-1.555.464-2.348zm-31.109 107.55l-20.719-14.81 20.719-16.27zm-31.113 234.67V263.56l193.18 137.99a15.562 15.562 0 0018.078 0l193.18-137.99v218.66z"
|
|
12561
12564
|
})), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
|
|
12562
12565
|
d: "M324.33 291.81a15.56 15.56 0 0020.582-.297l85.555-77.777a15.56 15.56 0 00-20.938-23.023l-75.398 68.539-44.023-37.723a15.54 15.54 0 00-11.46-4.106 15.553 15.553 0 00-8.758 27.718z"
|
|
@@ -12597,16 +12600,16 @@ const LoginPassword = props => /*#__PURE__*/React__default.createElement(Passwor
|
|
|
12597
12600
|
store: store$m
|
|
12598
12601
|
}, props));
|
|
12599
12602
|
|
|
12600
|
-
var _path$
|
|
12603
|
+
var _path$t;
|
|
12601
12604
|
|
|
12602
|
-
function _extends$
|
|
12605
|
+
function _extends$w() { _extends$w = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$w.apply(this, arguments); }
|
|
12603
12606
|
|
|
12604
12607
|
function SvgCheck(props) {
|
|
12605
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
12608
|
+
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
12606
12609
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12607
12610
|
fill: "currentColor",
|
|
12608
12611
|
viewBox: "0 0 20 20"
|
|
12609
|
-
}, props), _path$
|
|
12612
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
12610
12613
|
fillRule: "evenodd",
|
|
12611
12614
|
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
12612
12615
|
clipRule: "evenodd"
|
|
@@ -12710,7 +12713,7 @@ const RegisterContainer = ({
|
|
|
12710
12713
|
onDisplay = () => {},
|
|
12711
12714
|
children
|
|
12712
12715
|
}) => {
|
|
12713
|
-
useEffect
|
|
12716
|
+
useEffect(() => {
|
|
12714
12717
|
onDisplay();
|
|
12715
12718
|
}, []);
|
|
12716
12719
|
|
|
@@ -12942,15 +12945,15 @@ function hasSecurityTokenEnabled$1() {
|
|
|
12942
12945
|
return hasSecuritySdkLoaded;
|
|
12943
12946
|
}
|
|
12944
12947
|
|
|
12945
|
-
var _path$
|
|
12948
|
+
var _path$s;
|
|
12946
12949
|
|
|
12947
|
-
function _extends$
|
|
12950
|
+
function _extends$v() { _extends$v = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$v.apply(this, arguments); }
|
|
12948
12951
|
|
|
12949
12952
|
function SvgFacebookLogo(props) {
|
|
12950
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
12953
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
12951
12954
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12952
12955
|
viewBox: "88.428 12.828 107.543 207.085"
|
|
12953
|
-
}, props), _path$
|
|
12956
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
|
|
12954
12957
|
d: "M158.232 219.912v-94.461h31.707l4.747-36.813h-36.454V65.134c0-10.658 2.96-17.922 18.245-17.922l19.494-.009V14.278c-3.373-.447-14.944-1.449-28.406-1.449-28.106 0-47.348 17.155-47.348 48.661v27.149H88.428v36.813h31.788v94.461l38.016-.001z",
|
|
12955
12958
|
fill: "#3c5a9a"
|
|
12956
12959
|
})));
|
|
@@ -13024,15 +13027,15 @@ var googleLogin = createCommonjsModule(function (module, exports) {
|
|
|
13024
13027
|
unwrapExports(googleLogin);
|
|
13025
13028
|
var googleLogin_1 = googleLogin.GoogleLogin;
|
|
13026
13029
|
|
|
13027
|
-
var _path$
|
|
13030
|
+
var _path$r, _path2$1, _path3, _path4;
|
|
13028
13031
|
|
|
13029
|
-
function _extends$
|
|
13032
|
+
function _extends$u() { _extends$u = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
|
|
13030
13033
|
|
|
13031
13034
|
function SvgGoogleLogo(props) {
|
|
13032
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13035
|
+
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
13033
13036
|
viewBox: "0 0 24 24",
|
|
13034
13037
|
xmlns: "http://www.w3.org/2000/svg"
|
|
13035
|
-
}, props), _path$
|
|
13038
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
|
|
13036
13039
|
fill: "#4285F4",
|
|
13037
13040
|
d: "M23.745 12.27c0-.79-.07-1.54-.19-2.27h-11.3v4.51h6.47c-.29 1.48-1.14 2.73-2.4 3.58v3h3.86c2.26-2.09 3.56-5.17 3.56-8.82z"
|
|
13038
13041
|
})), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -13140,7 +13143,7 @@ const GoogleLoginButton = ({
|
|
|
13140
13143
|
const {
|
|
13141
13144
|
dispatch: registerDispatch
|
|
13142
13145
|
} = useContext(store$l);
|
|
13143
|
-
useEffect
|
|
13146
|
+
useEffect(() => {
|
|
13144
13147
|
gapi.load("client:auth2", () => {
|
|
13145
13148
|
gapi.auth2.init({
|
|
13146
13149
|
clientId: googleClientId
|
|
@@ -13195,15 +13198,15 @@ const GoogleLoginButton = ({
|
|
|
13195
13198
|
}) : null;
|
|
13196
13199
|
};
|
|
13197
13200
|
|
|
13198
|
-
var _path$
|
|
13201
|
+
var _path$q;
|
|
13199
13202
|
|
|
13200
|
-
function _extends$
|
|
13203
|
+
function _extends$t() { _extends$t = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
|
|
13201
13204
|
|
|
13202
13205
|
function SvgAuth0Logo(props) {
|
|
13203
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13206
|
+
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
13204
13207
|
viewBox: "0 0 256 285",
|
|
13205
13208
|
xmlns: "http://www.w3.org/2000/svg"
|
|
13206
|
-
}, props), _path$
|
|
13209
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
|
|
13207
13210
|
d: "M220.412 0h-92.415l28.562 89.006h92.416l-74.77 53.077 28.57 89.511c48.128-35.06 63.854-88.12 46.208-142.588L220.413 0zM7.018 89.006h92.416L127.997 0H35.589L7.019 89.006c-17.655 54.468-1.92 107.529 46.207 142.588l28.563-89.51-74.77-53.078zm46.208 142.588l74.77 52.97 74.77-52.97-74.77-53.847-74.77 53.847z"
|
|
13208
13211
|
})));
|
|
13209
13212
|
}
|
|
@@ -13414,10 +13417,10 @@ function LoginView(props) {
|
|
|
13414
13417
|
}))));
|
|
13415
13418
|
}
|
|
13416
13419
|
|
|
13417
|
-
function _extends$
|
|
13420
|
+
function _extends$s() { _extends$s = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$s.apply(this, arguments); }
|
|
13418
13421
|
|
|
13419
13422
|
function SvgPelcroAuthorship(props) {
|
|
13420
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
13423
|
+
return /*#__PURE__*/React.createElement("svg", _extends$s({
|
|
13421
13424
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13422
13425
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
13423
13426
|
width: 75.306,
|
|
@@ -13488,8 +13491,8 @@ const ModalHeader = ({
|
|
|
13488
13491
|
}) => {
|
|
13489
13492
|
var _window$Pelcro, _window$Pelcro$site$r;
|
|
13490
13493
|
|
|
13491
|
-
const resetView = usePelcro
|
|
13492
|
-
useEffect
|
|
13494
|
+
const resetView = usePelcro(state => state.resetView);
|
|
13495
|
+
useEffect(() => {
|
|
13493
13496
|
onDisplay === null || onDisplay === void 0 ? void 0 : onDisplay();
|
|
13494
13497
|
dispatchModalDisplayEvents(id);
|
|
13495
13498
|
}, []);
|
|
@@ -13552,7 +13555,7 @@ function LoginModal({
|
|
|
13552
13555
|
order,
|
|
13553
13556
|
switchToAddressView,
|
|
13554
13557
|
switchToPaymentView
|
|
13555
|
-
} = usePelcro
|
|
13558
|
+
} = usePelcro();
|
|
13556
13559
|
|
|
13557
13560
|
const onSuccess = res => {
|
|
13558
13561
|
var _props$onSuccess;
|
|
@@ -13651,7 +13654,7 @@ const RegisterButton = ({
|
|
|
13651
13654
|
t
|
|
13652
13655
|
} = useTranslation("register");
|
|
13653
13656
|
const [isDisabled, setDisabled] = useState(true);
|
|
13654
|
-
useEffect
|
|
13657
|
+
useEffect(() => {
|
|
13655
13658
|
setDisabled(buttonDisabled || emailError || passwordError || !email.length || !password.length);
|
|
13656
13659
|
}, [buttonDisabled, emailError, passwordError, email, password]);
|
|
13657
13660
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
@@ -13828,7 +13831,7 @@ function RegisterView(props) {
|
|
|
13828
13831
|
const {
|
|
13829
13832
|
t
|
|
13830
13833
|
} = useTranslation("register");
|
|
13831
|
-
usePelcro
|
|
13834
|
+
usePelcro();
|
|
13832
13835
|
const socialLoginEnabled = ((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.facebook_app_id) || ((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.google_app_id) || ((_window$Pelcro$site$r3 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.auth0_client_id);
|
|
13833
13836
|
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;
|
|
13834
13837
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -13976,7 +13979,7 @@ function RegisterModal(props) {
|
|
|
13976
13979
|
order,
|
|
13977
13980
|
giftCode,
|
|
13978
13981
|
isGift
|
|
13979
|
-
} = usePelcro
|
|
13982
|
+
} = usePelcro();
|
|
13980
13983
|
|
|
13981
13984
|
const onSuccess = res => {
|
|
13982
13985
|
var _props$onSuccess;
|
|
@@ -18732,34 +18735,34 @@ exports["default"] = _default;
|
|
|
18732
18735
|
|
|
18733
18736
|
var Slider = unwrapExports(lib$1);
|
|
18734
18737
|
|
|
18735
|
-
var _path$
|
|
18738
|
+
var _path$p;
|
|
18736
18739
|
|
|
18737
|
-
function _extends$
|
|
18740
|
+
function _extends$r() { _extends$r = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
|
|
18738
18741
|
|
|
18739
18742
|
function SvgArrowThinRight(props) {
|
|
18740
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
18743
|
+
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
18741
18744
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18742
18745
|
viewBox: "0 0 14.121 25.414",
|
|
18743
18746
|
fill: "none",
|
|
18744
18747
|
stroke: "#fff"
|
|
18745
|
-
}, props), _path$
|
|
18748
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
|
|
18746
18749
|
"data-name": "Path 25368",
|
|
18747
18750
|
d: "M.707.705l12 12-12 12",
|
|
18748
18751
|
strokeWidth: 2
|
|
18749
18752
|
})));
|
|
18750
18753
|
}
|
|
18751
18754
|
|
|
18752
|
-
var _path$
|
|
18755
|
+
var _path$o;
|
|
18753
18756
|
|
|
18754
|
-
function _extends$
|
|
18757
|
+
function _extends$q() { _extends$q = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
|
|
18755
18758
|
|
|
18756
18759
|
function SvgArrowThinLeft(props) {
|
|
18757
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
18760
|
+
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
18758
18761
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18759
18762
|
viewBox: "0 0 14.121 25.414",
|
|
18760
18763
|
fill: "none",
|
|
18761
18764
|
stroke: "#fff"
|
|
18762
|
-
}, props), _path$
|
|
18765
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
|
|
18763
18766
|
"data-name": "Path 25368",
|
|
18764
18767
|
d: "M13.414.705l-12 12 12 12",
|
|
18765
18768
|
strokeWidth: 2
|
|
@@ -18831,17 +18834,17 @@ function Carousel({
|
|
|
18831
18834
|
}, settings), children));
|
|
18832
18835
|
}
|
|
18833
18836
|
|
|
18834
|
-
var _path$
|
|
18837
|
+
var _path$n;
|
|
18835
18838
|
|
|
18836
|
-
function _extends$
|
|
18839
|
+
function _extends$p() { _extends$p = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
|
|
18837
18840
|
|
|
18838
18841
|
function SvgArrowLeft(props) {
|
|
18839
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
18842
|
+
return /*#__PURE__*/React.createElement("svg", _extends$p({
|
|
18840
18843
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18841
18844
|
fill: "none",
|
|
18842
18845
|
viewBox: "0 0 24 24",
|
|
18843
18846
|
stroke: "currentColor"
|
|
18844
|
-
}, props), _path$
|
|
18847
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
|
|
18845
18848
|
strokeLinecap: "round",
|
|
18846
18849
|
strokeLinejoin: "round",
|
|
18847
18850
|
strokeWidth: 2,
|
|
@@ -18868,7 +18871,7 @@ function SelectModalWithHook(props) {
|
|
|
18868
18871
|
resetView,
|
|
18869
18872
|
view,
|
|
18870
18873
|
set
|
|
18871
|
-
} = usePelcro
|
|
18874
|
+
} = usePelcro();
|
|
18872
18875
|
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
18873
18876
|
const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
|
|
18874
18877
|
return /*#__PURE__*/React__default.createElement(SelectModalWithTrans, {
|
|
@@ -19205,7 +19208,7 @@ class SelectModal extends Component {
|
|
|
19205
19208
|
const {
|
|
19206
19209
|
switchToAddressView,
|
|
19207
19210
|
switchToPaymentView
|
|
19208
|
-
} = usePelcro
|
|
19211
|
+
} = usePelcro.getStore();
|
|
19209
19212
|
|
|
19210
19213
|
if (!isAuthenticated) {
|
|
19211
19214
|
return setView("register");
|
|
@@ -21396,6 +21399,12 @@ const initialState$k = {
|
|
|
21396
21399
|
updatedPrice: null,
|
|
21397
21400
|
taxAmount: null,
|
|
21398
21401
|
currentPlan: null,
|
|
21402
|
+
firstName: "",
|
|
21403
|
+
lastName: "",
|
|
21404
|
+
phone: "",
|
|
21405
|
+
firstNameError: null,
|
|
21406
|
+
lastNameError: null,
|
|
21407
|
+
phoneError: null,
|
|
21399
21408
|
alert: {
|
|
21400
21409
|
type: "error",
|
|
21401
21410
|
content: ""
|
|
@@ -21422,13 +21431,16 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21422
21431
|
const {
|
|
21423
21432
|
t
|
|
21424
21433
|
} = useTranslation("payment");
|
|
21425
|
-
const pelcroStore = usePelcro
|
|
21434
|
+
const pelcroStore = usePelcro();
|
|
21426
21435
|
const {
|
|
21427
21436
|
set,
|
|
21428
21437
|
order,
|
|
21429
21438
|
selectedPaymentMethodId,
|
|
21430
21439
|
couponCode
|
|
21431
|
-
} = usePelcro
|
|
21440
|
+
} = usePelcro();
|
|
21441
|
+
const {
|
|
21442
|
+
whenUserReady
|
|
21443
|
+
} = usePelcro.getStore();
|
|
21432
21444
|
const product = (_props$product = props.product) !== null && _props$product !== void 0 ? _props$product : pelcroStore.product;
|
|
21433
21445
|
const plan = (_props$plan = props.plan) !== null && _props$plan !== void 0 ? _props$plan : pelcroStore.plan;
|
|
21434
21446
|
const subscriptionIdToRenew = (_props$subscriptionId = props.subscriptionIdToRenew) !== null && _props$subscriptionId !== void 0 ? _props$subscriptionId : pelcroStore.subscriptionIdToRenew;
|
|
@@ -21438,7 +21450,8 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21438
21450
|
const isRenewingGift = (_props$isRenewingGift = props.isRenewingGift) !== null && _props$isRenewingGift !== void 0 ? _props$isRenewingGift : pelcroStore.isRenewingGift;
|
|
21439
21451
|
const invoice = (_props$invoice = props.invoice) !== null && _props$invoice !== void 0 ? _props$invoice : pelcroStore.invoice;
|
|
21440
21452
|
const skipPayment = (_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.skipPaymentForFreePlans;
|
|
21441
|
-
|
|
21453
|
+
const cardProcessor = getSiteCardProcessor();
|
|
21454
|
+
useEffect(() => {
|
|
21442
21455
|
if (window.Pelcro.coupon.getFromUrl()) {
|
|
21443
21456
|
dispatch({
|
|
21444
21457
|
type: UPDATE_COUPON_CODE,
|
|
@@ -21459,7 +21472,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21459
21472
|
/*====== Start Tap integration ========*/
|
|
21460
21473
|
|
|
21461
21474
|
const submitUsingTap = () => {
|
|
21462
|
-
var _ref, _ref2, _state$updatedPrice;
|
|
21475
|
+
var _ref, _ref2, _ref3, _state$updatedPrice;
|
|
21463
21476
|
|
|
21464
21477
|
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
21465
21478
|
|
|
@@ -21492,7 +21505,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21492
21505
|
}, 0);
|
|
21493
21506
|
};
|
|
21494
21507
|
|
|
21495
|
-
const totalAmount = (_ref = (_ref2 = (_state$updatedPrice = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice !== void 0 ? _state$updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount) !== null &&
|
|
21508
|
+
const totalAmount = (_ref = (_ref2 = (_ref3 = (_state$updatedPrice = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice !== void 0 ? _state$updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref3 !== void 0 ? _ref3 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref2 !== void 0 ? _ref2 : getOrderItemsTotal()) !== null && _ref !== void 0 ? _ref : 10;
|
|
21496
21509
|
tapInstanceRef.current.createToken(tapInstanceCard.current).then(function (result) {
|
|
21497
21510
|
if (result.error) {
|
|
21498
21511
|
// Inform the user if there was an error
|
|
@@ -21513,9 +21526,11 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21513
21526
|
}
|
|
21514
21527
|
});
|
|
21515
21528
|
} else {
|
|
21516
|
-
console.log("Tap API Call result", result);
|
|
21517
21529
|
window.Pelcro.payment.authorize({
|
|
21518
21530
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
21531
|
+
first_name: window.Pelcro.user.read().first_name || state.firstName,
|
|
21532
|
+
last_name: window.Pelcro.user.read().last_name || state.lastName,
|
|
21533
|
+
phone: window.Pelcro.user.read().phone || state.phone,
|
|
21519
21534
|
site_id: window.Pelcro.siteid,
|
|
21520
21535
|
amount: totalAmount,
|
|
21521
21536
|
currency: (plan === null || plan === void 0 ? void 0 : plan.currency) || (invoice === null || invoice === void 0 ? void 0 : invoice.currency) || window.Pelcro.site.read().default_currency,
|
|
@@ -21552,6 +21567,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21552
21567
|
if (data.message === "3DS-authentication-complete") {
|
|
21553
21568
|
const tapID = data.tapID;
|
|
21554
21569
|
toggleAuthenticationPendingView(false);
|
|
21570
|
+
toggleAuthenticationSuccessPendingView(true);
|
|
21555
21571
|
window.removeEventListener("message", retrieveSourceInfoFromIframe);
|
|
21556
21572
|
dispatch({
|
|
21557
21573
|
type: SHOW_ALERT,
|
|
@@ -21576,21 +21592,6 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21576
21592
|
};
|
|
21577
21593
|
|
|
21578
21594
|
function handleTapPayment(paymentRequest) {
|
|
21579
|
-
// if (paymentRequest) {
|
|
21580
|
-
// const SUCCESS_STATUS = "870";
|
|
21581
|
-
// if (paymentRequest.response !== SUCCESS_STATUS) {
|
|
21582
|
-
// switch (paymentRequest.response) {
|
|
21583
|
-
// case "871":
|
|
21584
|
-
// return handlePaymentError({
|
|
21585
|
-
// error: new Error("Invalid account number")
|
|
21586
|
-
// });
|
|
21587
|
-
// default:
|
|
21588
|
-
// return handlePaymentError({
|
|
21589
|
-
// error: new Error(paymentRequest.message)
|
|
21590
|
-
// });
|
|
21591
|
-
// }
|
|
21592
|
-
// }
|
|
21593
|
-
// }
|
|
21594
21595
|
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
21595
21596
|
|
|
21596
21597
|
if (type === "createPayment") {
|
|
@@ -21723,6 +21724,52 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21723
21724
|
}
|
|
21724
21725
|
}
|
|
21725
21726
|
}
|
|
21727
|
+
|
|
21728
|
+
const initTapScript = () => {
|
|
21729
|
+
var _window$Pelcro$site$r;
|
|
21730
|
+
|
|
21731
|
+
const tapKey = window.Tapjsli((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.tap_gateway_settings.publishable_key);
|
|
21732
|
+
let elements = tapKey.elements({});
|
|
21733
|
+
let style = {
|
|
21734
|
+
base: {
|
|
21735
|
+
color: "#535353",
|
|
21736
|
+
lineHeight: "18px",
|
|
21737
|
+
fontFamily: "sans-serif",
|
|
21738
|
+
fontSmoothing: "antialiased",
|
|
21739
|
+
fontSize: "16px",
|
|
21740
|
+
"::placeholder": {
|
|
21741
|
+
color: "rgba(0, 0, 0, 0.26)",
|
|
21742
|
+
fontSize: "15px"
|
|
21743
|
+
}
|
|
21744
|
+
},
|
|
21745
|
+
invalid: {
|
|
21746
|
+
color: "red"
|
|
21747
|
+
}
|
|
21748
|
+
}; // input labels/placeholders
|
|
21749
|
+
|
|
21750
|
+
let labels = {
|
|
21751
|
+
cardNumber: "Card Number",
|
|
21752
|
+
expirationDate: "MM/YY",
|
|
21753
|
+
cvv: "CVV",
|
|
21754
|
+
cardHolder: "Card Holder Name"
|
|
21755
|
+
}; //payment options
|
|
21756
|
+
|
|
21757
|
+
let paymentOptions = {
|
|
21758
|
+
labels: labels,
|
|
21759
|
+
TextDirection: "ltr"
|
|
21760
|
+
}; //create element, pass style and payment options
|
|
21761
|
+
|
|
21762
|
+
let card = elements.create("card", {
|
|
21763
|
+
style: style
|
|
21764
|
+
}, paymentOptions); //mount element
|
|
21765
|
+
|
|
21766
|
+
card.mount("#tapPaymentIframe"); //card change event listener
|
|
21767
|
+
|
|
21768
|
+
card.addEventListener("change", function (event) {//If needed
|
|
21769
|
+
});
|
|
21770
|
+
tapInstanceRef.current = tapKey;
|
|
21771
|
+
tapInstanceCard.current = card;
|
|
21772
|
+
};
|
|
21726
21773
|
/*====== End Tap integration ========*/
|
|
21727
21774
|
|
|
21728
21775
|
|
|
@@ -21904,14 +21951,12 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21904
21951
|
const vantivInstanceRef = React__default.useRef(null);
|
|
21905
21952
|
const tapInstanceRef = React__default.useRef(null);
|
|
21906
21953
|
const tapInstanceCard = React__default.useRef(null);
|
|
21907
|
-
useEffect
|
|
21908
|
-
const cardProcessor = getSiteCardProcessor();
|
|
21909
|
-
|
|
21954
|
+
useEffect(() => {
|
|
21910
21955
|
if (cardProcessor === "vantiv" && !selectedPaymentMethodId) {
|
|
21911
|
-
var _window$Pelcro$site$
|
|
21956
|
+
var _window$Pelcro$site$r2, _window$Pelcro$site$r3;
|
|
21912
21957
|
|
|
21913
|
-
const payPageId = (_window$Pelcro$site$
|
|
21914
|
-
const reportGroup = (_window$Pelcro$site$
|
|
21958
|
+
const payPageId = (_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.vantiv_gateway_settings.pay_page_id;
|
|
21959
|
+
const reportGroup = (_window$Pelcro$site$r3 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.vantiv_gateway_settings.report_group;
|
|
21915
21960
|
vantivInstanceRef.current = new window.EprotectIframeClient({
|
|
21916
21961
|
paypageId: payPageId,
|
|
21917
21962
|
reportGroup: reportGroup,
|
|
@@ -21933,72 +21978,21 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
21933
21978
|
}
|
|
21934
21979
|
});
|
|
21935
21980
|
}
|
|
21981
|
+
}, [selectedPaymentMethodId]);
|
|
21982
|
+
useEffect(() => {
|
|
21983
|
+
whenUserReady(() => {
|
|
21984
|
+
if (cardProcessor === "tap" && !window.Tapjsli) {
|
|
21985
|
+
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
21986
|
+
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
21987
|
+
document.querySelector('script[src="https://secure.gosell.io/js/sdk/tap.min.js"]').addEventListener("load", () => {
|
|
21988
|
+
initTapScript();
|
|
21989
|
+
});
|
|
21990
|
+
}
|
|
21936
21991
|
|
|
21937
|
-
|
|
21938
|
-
|
|
21939
|
-
|
|
21940
|
-
|
|
21941
|
-
let elements = tapKey.elements({});
|
|
21942
|
-
let style = {
|
|
21943
|
-
base: {
|
|
21944
|
-
color: "#535353",
|
|
21945
|
-
lineHeight: "18px",
|
|
21946
|
-
fontFamily: "sans-serif",
|
|
21947
|
-
fontSmoothing: "antialiased",
|
|
21948
|
-
fontSize: "16px",
|
|
21949
|
-
"::placeholder": {
|
|
21950
|
-
color: "rgba(0, 0, 0, 0.26)",
|
|
21951
|
-
fontSize: "15px"
|
|
21952
|
-
}
|
|
21953
|
-
},
|
|
21954
|
-
invalid: {
|
|
21955
|
-
color: "red"
|
|
21956
|
-
}
|
|
21957
|
-
}; // input labels/placeholders
|
|
21958
|
-
|
|
21959
|
-
let labels = {
|
|
21960
|
-
cardNumber: "Card Number",
|
|
21961
|
-
expirationDate: "MM/YY",
|
|
21962
|
-
cvv: "CVV",
|
|
21963
|
-
cardHolder: "Card Holder Name"
|
|
21964
|
-
}; //payment options
|
|
21965
|
-
|
|
21966
|
-
let paymentOptions = {
|
|
21967
|
-
labels: labels,
|
|
21968
|
-
TextDirection: "ltr"
|
|
21969
|
-
}; //create element, pass style and payment options
|
|
21970
|
-
|
|
21971
|
-
let card = elements.create("card", {
|
|
21972
|
-
style: style
|
|
21973
|
-
}, paymentOptions); //mount element
|
|
21974
|
-
|
|
21975
|
-
card.mount("#tapPaymentIframe"); //card change event listener
|
|
21976
|
-
|
|
21977
|
-
card.addEventListener("change", function (event) {// if (event.error_interactive) {
|
|
21978
|
-
// onFailure(event.error_interactive);
|
|
21979
|
-
// return dispatch({
|
|
21980
|
-
// type: SHOW_ALERT,
|
|
21981
|
-
// payload: {
|
|
21982
|
-
// type: "error",
|
|
21983
|
-
// content: getErrorMessages(event.error_interactive)
|
|
21984
|
-
// }
|
|
21985
|
-
// });
|
|
21986
|
-
// } else {
|
|
21987
|
-
// dispatch({
|
|
21988
|
-
// type: SHOW_ALERT,
|
|
21989
|
-
// payload: { type: "error", content: "" }
|
|
21990
|
-
// });
|
|
21991
|
-
// }
|
|
21992
|
-
// let displayError = document.getElementById("error-handler");
|
|
21993
|
-
// if (event.error) {
|
|
21994
|
-
// displayError.textContent = event.error.message;
|
|
21995
|
-
// } else {
|
|
21996
|
-
// displayError.textContent = "";
|
|
21997
|
-
// }
|
|
21998
|
-
});
|
|
21999
|
-
tapInstanceRef.current = tapKey;
|
|
22000
|
-
tapInstanceCard.current = card;
|
|
22001
|
-
}
|
|
21992
|
+
if (cardProcessor === "tap" && !selectedPaymentMethodId && window.Tapjsli) {
|
|
21993
|
+
initTapScript();
|
|
21994
|
+
}
|
|
21995
|
+
});
|
|
22002
21996
|
}, [selectedPaymentMethodId]);
|
|
22003
21997
|
|
|
22004
21998
|
const initPaymentRequest = (state, dispatch) => {
|
|
@@ -22064,7 +22058,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
22064
22058
|
payload: paymentRequest
|
|
22065
22059
|
});
|
|
22066
22060
|
} catch {
|
|
22067
|
-
console.log("Google Pay/Apple pay isn't available in this country");
|
|
22061
|
+
console.log("Google Pay/Apple pay isn't available/supported in this country");
|
|
22068
22062
|
}
|
|
22069
22063
|
};
|
|
22070
22064
|
/**
|
|
@@ -22720,7 +22714,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
22720
22714
|
source,
|
|
22721
22715
|
error
|
|
22722
22716
|
}) => {
|
|
22723
|
-
var
|
|
22717
|
+
var _ref4, _ref5, _state$updatedPrice2;
|
|
22724
22718
|
|
|
22725
22719
|
if (error) {
|
|
22726
22720
|
return handlePaymentError(error);
|
|
@@ -22746,7 +22740,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
22746
22740
|
}, 0);
|
|
22747
22741
|
};
|
|
22748
22742
|
|
|
22749
|
-
(
|
|
22743
|
+
(_ref4 = (_ref5 = (_state$updatedPrice2 = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice2 !== void 0 ? _state$updatedPrice2 : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref5 !== void 0 ? _ref5 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref4 !== void 0 ? _ref4 : getOrderItemsTotal();
|
|
22750
22744
|
return handlePayment(source);
|
|
22751
22745
|
}).catch(error => {
|
|
22752
22746
|
return handlePaymentError(error);
|
|
@@ -22847,6 +22841,8 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
22847
22841
|
const handlePaymentError = error => {
|
|
22848
22842
|
var _getErrorMessages;
|
|
22849
22843
|
|
|
22844
|
+
toggleAuthenticationSuccessPendingView(false);
|
|
22845
|
+
|
|
22850
22846
|
if (error.type === "validation_error" && // Subscription creation & renewal
|
|
22851
22847
|
type === "createPayment") {
|
|
22852
22848
|
var _state$couponObject;
|
|
@@ -22916,6 +22912,18 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
22916
22912
|
}
|
|
22917
22913
|
};
|
|
22918
22914
|
|
|
22915
|
+
const toggleAuthenticationSuccessPendingView = show => {
|
|
22916
|
+
const cardAuthContainer = document.querySelector(".card-authentication-success-container");
|
|
22917
|
+
|
|
22918
|
+
if (show) {
|
|
22919
|
+
cardAuthContainer === null || cardAuthContainer === void 0 ? void 0 : cardAuthContainer.classList.remove("plc-hidden");
|
|
22920
|
+
cardAuthContainer === null || cardAuthContainer === void 0 ? void 0 : cardAuthContainer.classList.add("plc-flex");
|
|
22921
|
+
} else {
|
|
22922
|
+
cardAuthContainer === null || cardAuthContainer === void 0 ? void 0 : cardAuthContainer.classList.add("plc-hidden");
|
|
22923
|
+
cardAuthContainer === null || cardAuthContainer === void 0 ? void 0 : cardAuthContainer.classList.remove("plc-flex");
|
|
22924
|
+
}
|
|
22925
|
+
};
|
|
22926
|
+
|
|
22919
22927
|
const injectCardAuthenticationIframe = source => {
|
|
22920
22928
|
var _source$redirect;
|
|
22921
22929
|
|
|
@@ -23044,6 +23052,42 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
23044
23052
|
percentOff: action.payload
|
|
23045
23053
|
});
|
|
23046
23054
|
|
|
23055
|
+
case SET_FIRST_NAME:
|
|
23056
|
+
return lib_7({ ...state,
|
|
23057
|
+
firstName: action.payload,
|
|
23058
|
+
firstNameError: null
|
|
23059
|
+
});
|
|
23060
|
+
|
|
23061
|
+
case SET_LAST_NAME:
|
|
23062
|
+
return lib_7({ ...state,
|
|
23063
|
+
lastName: action.payload,
|
|
23064
|
+
lastNameError: null
|
|
23065
|
+
});
|
|
23066
|
+
|
|
23067
|
+
case SET_PHONE:
|
|
23068
|
+
return lib_7({ ...state,
|
|
23069
|
+
phone: action.payload,
|
|
23070
|
+
phoneError: null
|
|
23071
|
+
});
|
|
23072
|
+
|
|
23073
|
+
case SET_FIRST_NAME_ERROR:
|
|
23074
|
+
return lib_7({ ...state,
|
|
23075
|
+
firstNameError: action.payload,
|
|
23076
|
+
firstName: ""
|
|
23077
|
+
});
|
|
23078
|
+
|
|
23079
|
+
case SET_LAST_NAME_ERROR:
|
|
23080
|
+
return lib_7({ ...state,
|
|
23081
|
+
lastNameError: action.payload,
|
|
23082
|
+
lastName: ""
|
|
23083
|
+
});
|
|
23084
|
+
|
|
23085
|
+
case SET_PHONE_ERROR:
|
|
23086
|
+
return lib_7({ ...state,
|
|
23087
|
+
phoneError: action.payload,
|
|
23088
|
+
phone: null
|
|
23089
|
+
});
|
|
23090
|
+
|
|
23047
23091
|
case SHOW_ALERT:
|
|
23048
23092
|
return lib_7({ ...state,
|
|
23049
23093
|
alert: action.payload
|
|
@@ -23074,12 +23118,17 @@ const UnwrappedForm = es_12(PaymentMethodContainerWithoutStripe);
|
|
|
23074
23118
|
|
|
23075
23119
|
const PaymentMethodContainer = props => {
|
|
23076
23120
|
const [isStripeLoaded, setIsStripeLoaded] = useState(Boolean(window.Stripe));
|
|
23077
|
-
|
|
23078
|
-
|
|
23079
|
-
|
|
23080
|
-
|
|
23081
|
-
|
|
23082
|
-
|
|
23121
|
+
const {
|
|
23122
|
+
whenUserReady
|
|
23123
|
+
} = usePelcro.getStore();
|
|
23124
|
+
useEffect(() => {
|
|
23125
|
+
whenUserReady(() => {
|
|
23126
|
+
if (!window.Stripe) {
|
|
23127
|
+
document.querySelector('script[src="https://js.stripe.com/v3"]').addEventListener("load", () => {
|
|
23128
|
+
setIsStripeLoaded(true);
|
|
23129
|
+
});
|
|
23130
|
+
}
|
|
23131
|
+
});
|
|
23083
23132
|
}, []);
|
|
23084
23133
|
|
|
23085
23134
|
if (isStripeLoaded) {
|
|
@@ -23172,7 +23221,7 @@ const PelcroPaymentRequestButton = props => {
|
|
|
23172
23221
|
const CheckoutForm = () => {
|
|
23173
23222
|
const {
|
|
23174
23223
|
selectedPaymentMethodId
|
|
23175
|
-
} = usePelcro
|
|
23224
|
+
} = usePelcro();
|
|
23176
23225
|
const cardProcessor = getSiteCardProcessor();
|
|
23177
23226
|
|
|
23178
23227
|
if (selectedPaymentMethodId) {
|
|
@@ -23227,7 +23276,7 @@ const DiscountedPrice = props => {
|
|
|
23227
23276
|
const {
|
|
23228
23277
|
order,
|
|
23229
23278
|
plan
|
|
23230
|
-
} = usePelcro
|
|
23279
|
+
} = usePelcro();
|
|
23231
23280
|
const ecommOrderCurrency = (_order$currency = order === null || order === void 0 ? void 0 : order.currency) !== null && _order$currency !== void 0 ? _order$currency : order === null || order === void 0 ? void 0 : (_order$ = order[0]) === null || _order$ === void 0 ? void 0 : _order$.currency;
|
|
23232
23281
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
23233
23282
|
const discountedPriceWithoutTax = updatedPrice - taxAmount;
|
|
@@ -23262,7 +23311,7 @@ const SubmitPaymentMethod = ({
|
|
|
23262
23311
|
|
|
23263
23312
|
const {
|
|
23264
23313
|
plan
|
|
23265
|
-
} = usePelcro
|
|
23314
|
+
} = usePelcro();
|
|
23266
23315
|
const {
|
|
23267
23316
|
t
|
|
23268
23317
|
} = useTranslation("checkoutForm");
|
|
@@ -23368,17 +23417,17 @@ const CouponCodeField = props => {
|
|
|
23368
23417
|
}, props));
|
|
23369
23418
|
};
|
|
23370
23419
|
|
|
23371
|
-
var _path$
|
|
23420
|
+
var _path$m;
|
|
23372
23421
|
|
|
23373
|
-
function _extends$
|
|
23422
|
+
function _extends$o() { _extends$o = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
|
|
23374
23423
|
|
|
23375
23424
|
function SvgTicket(props) {
|
|
23376
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
23425
|
+
return /*#__PURE__*/React.createElement("svg", _extends$o({
|
|
23377
23426
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23378
23427
|
fill: "none",
|
|
23379
23428
|
viewBox: "0 0 24 24",
|
|
23380
23429
|
stroke: "currentColor"
|
|
23381
|
-
}, props), _path$
|
|
23430
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
|
|
23382
23431
|
strokeLinecap: "round",
|
|
23383
23432
|
strokeLinejoin: "round",
|
|
23384
23433
|
strokeWidth: 2,
|
|
@@ -23658,8 +23707,8 @@ const PaypalSubscribeButton = props => {
|
|
|
23658
23707
|
plan,
|
|
23659
23708
|
invoice,
|
|
23660
23709
|
selectedAddressId
|
|
23661
|
-
} = usePelcro
|
|
23662
|
-
useEffect
|
|
23710
|
+
} = usePelcro();
|
|
23711
|
+
useEffect(() => {
|
|
23663
23712
|
var _ref, _ref2, _state$updatedPrice, _props$plan, _props$selectedAddres;
|
|
23664
23713
|
|
|
23665
23714
|
// sometimes, price is updated. eg. Coupon codes.
|
|
@@ -23759,16 +23808,16 @@ const BankRedirection = () => {
|
|
|
23759
23808
|
}));
|
|
23760
23809
|
};
|
|
23761
23810
|
|
|
23762
|
-
var _path$
|
|
23811
|
+
var _path$l;
|
|
23763
23812
|
|
|
23764
|
-
function _extends$
|
|
23813
|
+
function _extends$n() { _extends$n = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$n.apply(this, arguments); }
|
|
23765
23814
|
|
|
23766
23815
|
function SvgLock(props) {
|
|
23767
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
23816
|
+
return /*#__PURE__*/React.createElement("svg", _extends$n({
|
|
23768
23817
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23769
23818
|
viewBox: "0 0 20 20",
|
|
23770
23819
|
fill: "currentColor"
|
|
23771
|
-
}, props), _path$
|
|
23820
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
|
|
23772
23821
|
fillRule: "evenodd",
|
|
23773
23822
|
d: "M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",
|
|
23774
23823
|
clipRule: "evenodd"
|
|
@@ -23789,7 +23838,7 @@ const SelectedPaymentMethod = () => {
|
|
|
23789
23838
|
const {
|
|
23790
23839
|
switchView,
|
|
23791
23840
|
selectedPaymentMethodId
|
|
23792
|
-
} = usePelcro
|
|
23841
|
+
} = usePelcro();
|
|
23793
23842
|
const paymentMethod = (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : (_window$Pelcro$user$r2 = _window$Pelcro$user$r.sources) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : (_window$Pelcro$user$r3 = _window$Pelcro$user$r2.find) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.call(_window$Pelcro$user$r2, source => {
|
|
23794
23843
|
return source.id == selectedPaymentMethodId;
|
|
23795
23844
|
});
|
|
@@ -23830,7 +23879,7 @@ const TaxAmount = () => {
|
|
|
23830
23879
|
} = useContext(store$k);
|
|
23831
23880
|
const {
|
|
23832
23881
|
plan
|
|
23833
|
-
} = usePelcro
|
|
23882
|
+
} = usePelcro();
|
|
23834
23883
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
23835
23884
|
const priceFormatted = getFormattedPriceByLocal(taxAmount * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
23836
23885
|
|
|
@@ -23897,7 +23946,7 @@ const SubscriptionCreateFreePlanButton = ({
|
|
|
23897
23946
|
t
|
|
23898
23947
|
} = useTranslation("common");
|
|
23899
23948
|
const [isDisabled, setDisabled] = useState(true);
|
|
23900
|
-
useEffect
|
|
23949
|
+
useEffect(() => {
|
|
23901
23950
|
setDisabled(disableSubmit);
|
|
23902
23951
|
}, [disableSubmit]);
|
|
23903
23952
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
@@ -23917,6 +23966,17 @@ const SubscriptionCreateFreePlanButton = ({
|
|
|
23917
23966
|
}, otherProps), t("buttons.subscribe"));
|
|
23918
23967
|
};
|
|
23919
23968
|
|
|
23969
|
+
const BankAuthenticationSuccess = () => {
|
|
23970
|
+
const {
|
|
23971
|
+
t
|
|
23972
|
+
} = useTranslation("checkoutForm");
|
|
23973
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
23974
|
+
className: "plc-absolute plc-inset-0 plc-flex-col plc-items-center plc-justify-center plc-hidden plc-text-lg plc-bg-white plc-z-max plc-text-primary-500 card-authentication-success-container"
|
|
23975
|
+
}, t("messages.bankAuthenticationSuccess"), /*#__PURE__*/React__default.createElement(SvgSpinner, {
|
|
23976
|
+
className: "plc-w-10 plc-h-10 plc-mt-5 plc-animate-spin"
|
|
23977
|
+
}));
|
|
23978
|
+
};
|
|
23979
|
+
|
|
23920
23980
|
/**
|
|
23921
23981
|
*
|
|
23922
23982
|
*/
|
|
@@ -23938,6 +23998,9 @@ function PaymentMethodView({
|
|
|
23938
23998
|
const cardProcessor = getSiteCardProcessor();
|
|
23939
23999
|
const supportsVantiv = Boolean((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.vantiv_gateway_settings);
|
|
23940
24000
|
const supportsTap = Boolean((_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.tap_gateway_settings);
|
|
24001
|
+
const isUserFirstName = Boolean(window.Pelcro.user.read().first_name);
|
|
24002
|
+
const isUserLastName = Boolean(window.Pelcro.user.read().last_name);
|
|
24003
|
+
const isUserPhone = Boolean(window.Pelcro.user.read().phone);
|
|
23941
24004
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
23942
24005
|
className: "plc-flex plc-flex-col plc-items-center plc-mt-4 sm:plc-px-8 pelcro-payment-block"
|
|
23943
24006
|
}, cardProcessor === "stripe" && !showSubscriptionButton && /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -23997,7 +24060,7 @@ const SubscriptionRenewView = ({
|
|
|
23997
24060
|
const {
|
|
23998
24061
|
product,
|
|
23999
24062
|
plan
|
|
24000
|
-
} = usePelcro
|
|
24063
|
+
} = usePelcro();
|
|
24001
24064
|
const skipPayment = (_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.skipPaymentForFreePlans;
|
|
24002
24065
|
const showSubscriptionButton = skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0;
|
|
24003
24066
|
|
|
@@ -24053,7 +24116,7 @@ function SubscriptionRenewModal({
|
|
|
24053
24116
|
const {
|
|
24054
24117
|
product,
|
|
24055
24118
|
switchView
|
|
24056
|
-
} = usePelcro
|
|
24119
|
+
} = usePelcro();
|
|
24057
24120
|
|
|
24058
24121
|
const onSuccess = res => {
|
|
24059
24122
|
var _otherProps$onSuccess, _ReactGA$event;
|
|
@@ -24139,18 +24202,18 @@ const SubscriptionCancelContainer = ({
|
|
|
24139
24202
|
})));
|
|
24140
24203
|
};
|
|
24141
24204
|
|
|
24142
|
-
var _path$
|
|
24205
|
+
var _path$k;
|
|
24143
24206
|
|
|
24144
|
-
function _extends$
|
|
24207
|
+
function _extends$m() { _extends$m = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
|
|
24145
24208
|
|
|
24146
24209
|
function SvgInfoCircle(props) {
|
|
24147
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24210
|
+
return /*#__PURE__*/React.createElement("svg", _extends$m({
|
|
24148
24211
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24149
24212
|
className: "plc-w-5 plc-h-5",
|
|
24150
24213
|
fill: "none",
|
|
24151
24214
|
viewBox: "0 0 24 24",
|
|
24152
24215
|
stroke: "currentColor"
|
|
24153
|
-
}, props), _path$
|
|
24216
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
|
|
24154
24217
|
strokeLinecap: "round",
|
|
24155
24218
|
strokeLinejoin: "round",
|
|
24156
24219
|
strokeWidth: 2,
|
|
@@ -24237,10 +24300,10 @@ const SubscriptionCancelReason = props => {
|
|
|
24237
24300
|
|
|
24238
24301
|
var _switch;
|
|
24239
24302
|
|
|
24240
|
-
function _extends$
|
|
24303
|
+
function _extends$l() { _extends$l = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
|
|
24241
24304
|
|
|
24242
24305
|
function SvgSubscription(props) {
|
|
24243
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24306
|
+
return /*#__PURE__*/React.createElement("svg", _extends$l({
|
|
24244
24307
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24245
24308
|
viewBox: "0 0 100 125",
|
|
24246
24309
|
fill: "currentColor"
|
|
@@ -24262,7 +24325,7 @@ const SubscriptionCancelNowButton = ({
|
|
|
24262
24325
|
}) => {
|
|
24263
24326
|
const {
|
|
24264
24327
|
switchView
|
|
24265
|
-
} = usePelcro
|
|
24328
|
+
} = usePelcro();
|
|
24266
24329
|
const {
|
|
24267
24330
|
state: {
|
|
24268
24331
|
cancelationReason
|
|
@@ -24334,7 +24397,7 @@ const SubscriptionCancelLaterButton = ({
|
|
|
24334
24397
|
}) => {
|
|
24335
24398
|
const {
|
|
24336
24399
|
switchView
|
|
24337
|
-
} = usePelcro
|
|
24400
|
+
} = usePelcro();
|
|
24338
24401
|
const {
|
|
24339
24402
|
state: {
|
|
24340
24403
|
cancelationReason
|
|
@@ -24402,7 +24465,7 @@ const SubscriptionCancelLaterButton = ({
|
|
|
24402
24465
|
const SubscriptionCancelView = props => {
|
|
24403
24466
|
const {
|
|
24404
24467
|
subscriptionToCancel
|
|
24405
|
-
} = usePelcro
|
|
24468
|
+
} = usePelcro();
|
|
24406
24469
|
const {
|
|
24407
24470
|
t
|
|
24408
24471
|
} = useTranslation("subscriptionCancel");
|
|
@@ -24433,7 +24496,7 @@ const SubscriptionCancelModal = ({
|
|
|
24433
24496
|
}) => {
|
|
24434
24497
|
const {
|
|
24435
24498
|
subscriptionToCancel
|
|
24436
|
-
} = usePelcro
|
|
24499
|
+
} = usePelcro();
|
|
24437
24500
|
const {
|
|
24438
24501
|
t
|
|
24439
24502
|
} = useTranslation("subscriptionCancel");
|
|
@@ -24562,7 +24625,7 @@ const SubscriptionSuspendDate = props => {
|
|
|
24562
24625
|
}
|
|
24563
24626
|
};
|
|
24564
24627
|
|
|
24565
|
-
useEffect
|
|
24628
|
+
useEffect(() => {
|
|
24566
24629
|
handleInputChange(dayFromNowDateISO);
|
|
24567
24630
|
}, []);
|
|
24568
24631
|
return /*#__PURE__*/React__default.createElement(DatePicker, Object.assign({
|
|
@@ -24582,7 +24645,7 @@ const SubscriptionSuspendButton = ({
|
|
|
24582
24645
|
}) => {
|
|
24583
24646
|
const {
|
|
24584
24647
|
switchView
|
|
24585
|
-
} = usePelcro
|
|
24648
|
+
} = usePelcro();
|
|
24586
24649
|
const {
|
|
24587
24650
|
state: {
|
|
24588
24651
|
suspendDate,
|
|
@@ -24646,7 +24709,7 @@ const SubscriptionSuspendButton = ({
|
|
|
24646
24709
|
const SubscriptionSuspendView = props => {
|
|
24647
24710
|
const {
|
|
24648
24711
|
subscriptionToSuspend
|
|
24649
|
-
} = usePelcro
|
|
24712
|
+
} = usePelcro();
|
|
24650
24713
|
const {
|
|
24651
24714
|
t
|
|
24652
24715
|
} = useTranslation("subscriptionSuspend");
|
|
@@ -24673,7 +24736,7 @@ function SubscriptionSuspendModal({
|
|
|
24673
24736
|
}) {
|
|
24674
24737
|
const {
|
|
24675
24738
|
subscriptionToSuspend
|
|
24676
|
-
} = usePelcro
|
|
24739
|
+
} = usePelcro();
|
|
24677
24740
|
const {
|
|
24678
24741
|
t
|
|
24679
24742
|
} = useTranslation("subscriptionSuspend");
|
|
@@ -24691,12 +24754,12 @@ function SubscriptionSuspendModal({
|
|
|
24691
24754
|
}
|
|
24692
24755
|
SubscriptionSuspendModal.viewId = "subscription-suspend";
|
|
24693
24756
|
|
|
24694
|
-
var _path$
|
|
24757
|
+
var _path$j;
|
|
24695
24758
|
|
|
24696
|
-
function _extends$
|
|
24759
|
+
function _extends$k() { _extends$k = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
|
|
24697
24760
|
|
|
24698
24761
|
function SvgGift(props) {
|
|
24699
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24762
|
+
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
24700
24763
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
24701
24764
|
fill: "none",
|
|
24702
24765
|
stroke: "currentColor",
|
|
@@ -24705,7 +24768,7 @@ function SvgGift(props) {
|
|
|
24705
24768
|
strokeWidth: 2,
|
|
24706
24769
|
viewBox: "0 0 24 24",
|
|
24707
24770
|
xmlns: "http://www.w3.org/2000/svg"
|
|
24708
|
-
}, props), _path$
|
|
24771
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
|
|
24709
24772
|
d: "M20 12v10H4V12M2 7h20v5H2zM12 22V7M12 7H7.5a2.5 2.5 0 010-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 000-5C13 2 12 7 12 7z"
|
|
24710
24773
|
})));
|
|
24711
24774
|
}
|
|
@@ -24745,7 +24808,7 @@ const getCurrentFlow = () => {
|
|
|
24745
24808
|
giftRecipient,
|
|
24746
24809
|
giftCode,
|
|
24747
24810
|
invoice
|
|
24748
|
-
} = usePelcro
|
|
24811
|
+
} = usePelcro.getStore();
|
|
24749
24812
|
|
|
24750
24813
|
if (invoice) {
|
|
24751
24814
|
return "invoicePayment";
|
|
@@ -24764,7 +24827,7 @@ const getSuccessContent = i18n => {
|
|
|
24764
24827
|
const flow = getCurrentFlow();
|
|
24765
24828
|
const {
|
|
24766
24829
|
product
|
|
24767
|
-
} = usePelcro
|
|
24830
|
+
} = usePelcro.getStore();
|
|
24768
24831
|
const wordingDictionary = {
|
|
24769
24832
|
subscriptionSuccess: {
|
|
24770
24833
|
successIcon: /*#__PURE__*/React__default.createElement(SvgCheckSolid, {
|
|
@@ -24808,7 +24871,7 @@ function PaymentSuccessModal({
|
|
|
24808
24871
|
}) {
|
|
24809
24872
|
const {
|
|
24810
24873
|
resetView
|
|
24811
|
-
} = usePelcro
|
|
24874
|
+
} = usePelcro();
|
|
24812
24875
|
|
|
24813
24876
|
const onClose = () => {
|
|
24814
24877
|
var _props$onClose;
|
|
@@ -24841,7 +24904,7 @@ function NewsletterWithHook(props) {
|
|
|
24841
24904
|
switchView,
|
|
24842
24905
|
resetView,
|
|
24843
24906
|
product
|
|
24844
|
-
} = usePelcro
|
|
24907
|
+
} = usePelcro();
|
|
24845
24908
|
return /*#__PURE__*/React__default.createElement(NewsLetter, {
|
|
24846
24909
|
onClose: () => {
|
|
24847
24910
|
var _props$onClose;
|
|
@@ -25179,7 +25242,7 @@ const NewsletterUpdateContainer = ({
|
|
|
25179
25242
|
return state;
|
|
25180
25243
|
}
|
|
25181
25244
|
}, initialState$h);
|
|
25182
|
-
useEffect
|
|
25245
|
+
useEffect(() => {
|
|
25183
25246
|
const getUserNewsletters = () => {
|
|
25184
25247
|
var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
|
|
25185
25248
|
|
|
@@ -25351,7 +25414,7 @@ const MeterView = () => {
|
|
|
25351
25414
|
switchView,
|
|
25352
25415
|
product,
|
|
25353
25416
|
isAuthenticated
|
|
25354
|
-
} = usePelcro
|
|
25417
|
+
} = usePelcro();
|
|
25355
25418
|
const paywallProduct = product !== null && product !== void 0 ? product : window.Pelcro.paywall.getProduct();
|
|
25356
25419
|
const visitsLeft = window.Pelcro.paywall.freeVisitsLeft();
|
|
25357
25420
|
const title = `${paywallProduct === null || paywallProduct === void 0 ? void 0 : (_paywallProduct$paywa = paywallProduct.paywall) === null || _paywallProduct$paywa === void 0 ? void 0 : _paywallProduct$paywa.meter_title}: ${visitsLeft}`;
|
|
@@ -25373,8 +25436,8 @@ const MeterView = () => {
|
|
|
25373
25436
|
const MeterModal = props => {
|
|
25374
25437
|
const {
|
|
25375
25438
|
resetView
|
|
25376
|
-
} = usePelcro
|
|
25377
|
-
useEffect
|
|
25439
|
+
} = usePelcro();
|
|
25440
|
+
useEffect(() => {
|
|
25378
25441
|
var _props$onDisplay;
|
|
25379
25442
|
|
|
25380
25443
|
(_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
|
|
@@ -25411,7 +25474,7 @@ const SubscriptionCreateView = ({
|
|
|
25411
25474
|
const {
|
|
25412
25475
|
product,
|
|
25413
25476
|
plan
|
|
25414
|
-
} = usePelcro
|
|
25477
|
+
} = usePelcro();
|
|
25415
25478
|
const skipPayment = (_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.skipPaymentForFreePlans;
|
|
25416
25479
|
const showSubscriptionButton = skipPayment && (plan === null || plan === void 0 ? void 0 : plan.amount) === 0;
|
|
25417
25480
|
|
|
@@ -25469,7 +25532,7 @@ function SubscriptionCreateModal({
|
|
|
25469
25532
|
const {
|
|
25470
25533
|
product,
|
|
25471
25534
|
switchView
|
|
25472
|
-
} = usePelcro
|
|
25535
|
+
} = usePelcro();
|
|
25473
25536
|
|
|
25474
25537
|
const onSuccess = res => {
|
|
25475
25538
|
var _otherProps$onSuccess;
|
|
@@ -25519,7 +25582,7 @@ const SubscriptionManageMembersContainer = ({
|
|
|
25519
25582
|
}) => {
|
|
25520
25583
|
const {
|
|
25521
25584
|
subscriptionToManageMembers
|
|
25522
|
-
} = usePelcro
|
|
25585
|
+
} = usePelcro();
|
|
25523
25586
|
const subscription_id = subscriptionToManageMembers === null || subscriptionToManageMembers === void 0 ? void 0 : subscriptionToManageMembers.id;
|
|
25524
25587
|
|
|
25525
25588
|
const handleListMembers = ({}, dispatch) => {
|
|
@@ -25681,7 +25744,7 @@ const SubscriptionManageMembersContainer = ({
|
|
|
25681
25744
|
return state;
|
|
25682
25745
|
}
|
|
25683
25746
|
}, initialState$g);
|
|
25684
|
-
useEffect
|
|
25747
|
+
useEffect(() => {
|
|
25685
25748
|
dispatch({
|
|
25686
25749
|
type: HANDLE_LIST_MEMBERS
|
|
25687
25750
|
});
|
|
@@ -25724,7 +25787,7 @@ const SubscriptionManageMembersButton = ({
|
|
|
25724
25787
|
t
|
|
25725
25788
|
} = useTranslation("subscriptionManageMembers");
|
|
25726
25789
|
const [isDisabled, setDisabled] = useState(true);
|
|
25727
|
-
useEffect
|
|
25790
|
+
useEffect(() => {
|
|
25728
25791
|
setDisabled(emailsError || !emails.length || buttonDisabled);
|
|
25729
25792
|
}, [emailsError, emails, buttonDisabled]);
|
|
25730
25793
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
@@ -25767,7 +25830,7 @@ function SubscriptionManageMembersEmails(props) {
|
|
|
25767
25830
|
});
|
|
25768
25831
|
}
|
|
25769
25832
|
}, [dispatch, emails, finishedTyping]);
|
|
25770
|
-
useEffect
|
|
25833
|
+
useEffect(() => {
|
|
25771
25834
|
handleInputChange(emails);
|
|
25772
25835
|
}, [finishedTyping, emails, handleInputChange]);
|
|
25773
25836
|
return /*#__PURE__*/React__default.createElement(Input, Object.assign({
|
|
@@ -25780,17 +25843,17 @@ function SubscriptionManageMembersEmails(props) {
|
|
|
25780
25843
|
}, props));
|
|
25781
25844
|
}
|
|
25782
25845
|
|
|
25783
|
-
var _path$
|
|
25846
|
+
var _path$i;
|
|
25784
25847
|
|
|
25785
|
-
function _extends$
|
|
25848
|
+
function _extends$j() { _extends$j = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
|
|
25786
25849
|
|
|
25787
25850
|
function SvgCheckMark(props) {
|
|
25788
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
25851
|
+
return /*#__PURE__*/React.createElement("svg", _extends$j({
|
|
25789
25852
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
25790
25853
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25791
25854
|
viewBox: "0 0 20 20",
|
|
25792
25855
|
fill: "currentColor"
|
|
25793
|
-
}, props), _path$
|
|
25856
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
25794
25857
|
fillRule: "evenodd",
|
|
25795
25858
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
25796
25859
|
clipRule: "evenodd"
|
|
@@ -25900,11 +25963,7 @@ function SubscriptionManageMembersView(props) {
|
|
|
25900
25963
|
} = useTranslation("subscriptionManageMembers");
|
|
25901
25964
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25902
25965
|
id: "pelcro-login-view"
|
|
25903
|
-
}, /*#__PURE__*/React__default.createElement("
|
|
25904
|
-
className: "plc-font-semibold plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
25905
|
-
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
25906
|
-
className: "plc-text-2xl"
|
|
25907
|
-
}, t("labels.inviteMembers")), /*#__PURE__*/React__default.createElement("p", null, "Comma-separated list e.g. 'john@example.com,jane@example.com'")), /*#__PURE__*/React__default.createElement("form", {
|
|
25966
|
+
}, /*#__PURE__*/React__default.createElement("form", {
|
|
25908
25967
|
action: "javascript:void(0);",
|
|
25909
25968
|
className: "plc-mt-2 pelcro-form"
|
|
25910
25969
|
}, /*#__PURE__*/React__default.createElement(SubscriptionManageMembersContainer, props, /*#__PURE__*/React__default.createElement(AlertWithContext, null), /*#__PURE__*/React__default.createElement(SubscriptionManageMembersEmails, {
|
|
@@ -25950,6 +26009,10 @@ function SubscriptionManageMembersModal({
|
|
|
25950
26009
|
onClose,
|
|
25951
26010
|
...props
|
|
25952
26011
|
}) {
|
|
26012
|
+
const {
|
|
26013
|
+
t
|
|
26014
|
+
} = useTranslation("subscriptionManageMembers");
|
|
26015
|
+
|
|
25953
26016
|
const onSuccess = res => {
|
|
25954
26017
|
var _props$onSuccess;
|
|
25955
26018
|
|
|
@@ -25961,9 +26024,13 @@ function SubscriptionManageMembersModal({
|
|
|
25961
26024
|
onDisplay: onDisplay,
|
|
25962
26025
|
onClose: onClose,
|
|
25963
26026
|
className: "plc-max-w-xl"
|
|
25964
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
26027
|
+
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, /*#__PURE__*/React__default.createElement("div", {
|
|
26028
|
+
className: "plc-text-center plc-text-gray-900 pelcro-title-wrapper plc-flex-1 plc-flex plc-flex-col plc-justify-center"
|
|
26029
|
+
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
26030
|
+
className: "plc-text-2xl plc-font-semibold"
|
|
26031
|
+
}, t("labels.inviteMembers")), /*#__PURE__*/React__default.createElement("p", null, "Comma-separated list e.g. 'john@example.com,jane@example.com'"))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(SubscriptionManageMembersView, Object.assign({}, props, {
|
|
25965
26032
|
onSuccess: onSuccess
|
|
25966
|
-
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null
|
|
26033
|
+
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null));
|
|
25967
26034
|
}
|
|
25968
26035
|
SubscriptionManageMembersModal.viewId = "manage-members";
|
|
25969
26036
|
|
|
@@ -26000,7 +26067,7 @@ const UserUpdateContainer = ({
|
|
|
26000
26067
|
const {
|
|
26001
26068
|
t
|
|
26002
26069
|
} = useTranslation("userEdit");
|
|
26003
|
-
useEffect
|
|
26070
|
+
useEffect(() => {
|
|
26004
26071
|
document.addEventListener("PelcroUserLoaded", () => {
|
|
26005
26072
|
loadUserDataIntoFields();
|
|
26006
26073
|
});
|
|
@@ -26177,17 +26244,17 @@ const UserUpdateContainer = ({
|
|
|
26177
26244
|
})));
|
|
26178
26245
|
};
|
|
26179
26246
|
|
|
26180
|
-
var _path$
|
|
26247
|
+
var _path$h;
|
|
26181
26248
|
|
|
26182
|
-
function _extends$
|
|
26249
|
+
function _extends$i() { _extends$i = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
26183
26250
|
|
|
26184
26251
|
function SvgEdit(props) {
|
|
26185
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
26252
|
+
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
26186
26253
|
className: "plc-w-6 plc-h-6",
|
|
26187
26254
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26188
26255
|
viewBox: "0 0 20 20",
|
|
26189
26256
|
fill: "currentColor"
|
|
26190
|
-
}, props), _path$
|
|
26257
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
26191
26258
|
d: "M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zm-2.207 2.207L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"
|
|
26192
26259
|
})));
|
|
26193
26260
|
}
|
|
@@ -26307,7 +26374,7 @@ function UpdateUserNameInput({
|
|
|
26307
26374
|
}
|
|
26308
26375
|
}
|
|
26309
26376
|
}, [dispatch, username, finishedTyping]);
|
|
26310
|
-
useEffect
|
|
26377
|
+
useEffect(() => {
|
|
26311
26378
|
handleInputChange(username);
|
|
26312
26379
|
}, [finishedTyping, username, handleInputChange]); // Initialize username field with user's username
|
|
26313
26380
|
|
|
@@ -26319,7 +26386,7 @@ function UpdateUserNameInput({
|
|
|
26319
26386
|
});
|
|
26320
26387
|
};
|
|
26321
26388
|
|
|
26322
|
-
useEffect
|
|
26389
|
+
useEffect(() => {
|
|
26323
26390
|
if (initWithUserName) {
|
|
26324
26391
|
document.addEventListener("PelcroUserLoaded", () => {
|
|
26325
26392
|
loadFirstNameIntoField();
|
|
@@ -26407,7 +26474,7 @@ function Tin({
|
|
|
26407
26474
|
});
|
|
26408
26475
|
}
|
|
26409
26476
|
}, [dispatch, tin, finishedTyping]);
|
|
26410
|
-
useEffect
|
|
26477
|
+
useEffect(() => {
|
|
26411
26478
|
handleInputChange(tin);
|
|
26412
26479
|
}, [finishedTyping, tin, handleInputChange]); // Initialize tin field with user's tin (Tax Identification Number)
|
|
26413
26480
|
|
|
@@ -26419,7 +26486,7 @@ function Tin({
|
|
|
26419
26486
|
});
|
|
26420
26487
|
};
|
|
26421
26488
|
|
|
26422
|
-
useEffect
|
|
26489
|
+
useEffect(() => {
|
|
26423
26490
|
if (initWithUserTin) {
|
|
26424
26491
|
document.addEventListener("PelcroUserLoaded", () => {
|
|
26425
26492
|
loadTinIntoField();
|
|
@@ -26541,7 +26608,7 @@ function UserUpdateModal({
|
|
|
26541
26608
|
}) {
|
|
26542
26609
|
const {
|
|
26543
26610
|
switchView
|
|
26544
|
-
} = usePelcro
|
|
26611
|
+
} = usePelcro();
|
|
26545
26612
|
const {
|
|
26546
26613
|
t
|
|
26547
26614
|
} = useTranslation("userEdit");
|
|
@@ -26626,10 +26693,10 @@ const AddressCreateContainer = ({
|
|
|
26626
26693
|
order,
|
|
26627
26694
|
set,
|
|
26628
26695
|
selectedMembership
|
|
26629
|
-
} = usePelcro
|
|
26696
|
+
} = usePelcro();
|
|
26630
26697
|
const giftCode = (_props$giftCode = props.giftCode) !== null && _props$giftCode !== void 0 ? _props$giftCode : giftCodeFromStore;
|
|
26631
26698
|
const subscriptionIdToRenew = (_ref = (_props$subscriptionId = props.subscriptionIdToRenew) !== null && _props$subscriptionId !== void 0 ? _props$subscriptionId : subscriptionIdToRenewFromStore) !== null && _ref !== void 0 ? _ref : undefined;
|
|
26632
|
-
useEffect
|
|
26699
|
+
useEffect(() => {
|
|
26633
26700
|
const getCountries = () => {
|
|
26634
26701
|
dispatch({
|
|
26635
26702
|
type: GET_COUNTRIES_FETCH
|
|
@@ -26847,7 +26914,7 @@ const AddressCreateContainer = ({
|
|
|
26847
26914
|
return state;
|
|
26848
26915
|
}
|
|
26849
26916
|
}, initialState$e);
|
|
26850
|
-
useEffect
|
|
26917
|
+
useEffect(() => {
|
|
26851
26918
|
const getStates = () => {
|
|
26852
26919
|
dispatch({
|
|
26853
26920
|
type: GET_STATES_FETCH
|
|
@@ -27384,7 +27451,7 @@ const AddressCreateModal = ({
|
|
|
27384
27451
|
switchToPaymentView,
|
|
27385
27452
|
resetView,
|
|
27386
27453
|
giftRecipient
|
|
27387
|
-
} = usePelcro
|
|
27454
|
+
} = usePelcro();
|
|
27388
27455
|
const {
|
|
27389
27456
|
t
|
|
27390
27457
|
} = useTranslation("address");
|
|
@@ -27482,10 +27549,10 @@ const AddressUpdateContainer = ({
|
|
|
27482
27549
|
|
|
27483
27550
|
const {
|
|
27484
27551
|
addressIdToEdit
|
|
27485
|
-
} = usePelcro
|
|
27552
|
+
} = usePelcro();
|
|
27486
27553
|
const addressId = (_props$addressId = props === null || props === void 0 ? void 0 : props.addressId) !== null && _props$addressId !== void 0 ? _props$addressId : addressIdToEdit;
|
|
27487
27554
|
const [t] = useTranslation("address");
|
|
27488
|
-
useEffect
|
|
27555
|
+
useEffect(() => {
|
|
27489
27556
|
const getCountries = () => {
|
|
27490
27557
|
dispatch({
|
|
27491
27558
|
type: GET_COUNTRIES_FETCH
|
|
@@ -27661,7 +27728,7 @@ const AddressUpdateContainer = ({
|
|
|
27661
27728
|
return state;
|
|
27662
27729
|
}
|
|
27663
27730
|
}, initialState$d);
|
|
27664
|
-
useEffect
|
|
27731
|
+
useEffect(() => {
|
|
27665
27732
|
const getStates = () => {
|
|
27666
27733
|
dispatch({
|
|
27667
27734
|
type: GET_STATES_FETCH
|
|
@@ -28225,7 +28292,7 @@ const PasswordResetContainer = ({
|
|
|
28225
28292
|
});
|
|
28226
28293
|
};
|
|
28227
28294
|
|
|
28228
|
-
useEffect
|
|
28295
|
+
useEffect(() => {
|
|
28229
28296
|
dispatch({
|
|
28230
28297
|
type: SET_EMAIL,
|
|
28231
28298
|
payload: window.Pelcro.helpers.getURLParameter("email")
|
|
@@ -28526,7 +28593,7 @@ const PasswordForgotButton = ({
|
|
|
28526
28593
|
t
|
|
28527
28594
|
} = useTranslation("passwordForgot");
|
|
28528
28595
|
const [isDisabled, setDisabled] = useState(true);
|
|
28529
|
-
useEffect
|
|
28596
|
+
useEffect(() => {
|
|
28530
28597
|
setDisabled(emailError || !email.length || buttonDisabled);
|
|
28531
28598
|
}, [emailError, email, buttonDisabled]);
|
|
28532
28599
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
@@ -28576,7 +28643,7 @@ const PasswordForgotModal = ({
|
|
|
28576
28643
|
} = useTranslation("passwordForgot");
|
|
28577
28644
|
const {
|
|
28578
28645
|
switchView
|
|
28579
|
-
} = usePelcro
|
|
28646
|
+
} = usePelcro();
|
|
28580
28647
|
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
28581
28648
|
id: "pelcro-password-forgot-modal",
|
|
28582
28649
|
onDisplay: onDisplay,
|
|
@@ -28721,7 +28788,7 @@ const PasswordlessRequestViewButton = ({
|
|
|
28721
28788
|
t
|
|
28722
28789
|
} = useTranslation("passwordlessRequest");
|
|
28723
28790
|
const [isDisabled, setDisabled] = useState(true);
|
|
28724
|
-
useEffect
|
|
28791
|
+
useEffect(() => {
|
|
28725
28792
|
setDisabled(emailError || !email.length || buttonDisabled);
|
|
28726
28793
|
}, [emailError, email, buttonDisabled]);
|
|
28727
28794
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
@@ -29175,11 +29242,11 @@ const CartContainer = ({
|
|
|
29175
29242
|
const {
|
|
29176
29243
|
cartItems,
|
|
29177
29244
|
set
|
|
29178
|
-
} = usePelcro
|
|
29245
|
+
} = usePelcro();
|
|
29179
29246
|
const {
|
|
29180
29247
|
t
|
|
29181
29248
|
} = useTranslation("shop");
|
|
29182
|
-
useEffect
|
|
29249
|
+
useEffect(() => {
|
|
29183
29250
|
dispatch({
|
|
29184
29251
|
type: DISABLE_SUBMIT,
|
|
29185
29252
|
payload: false
|
|
@@ -29280,15 +29347,16 @@ const CartRemoveItemButton = ({
|
|
|
29280
29347
|
}) => {
|
|
29281
29348
|
const {
|
|
29282
29349
|
removeFromCart
|
|
29283
|
-
} = usePelcro
|
|
29350
|
+
} = usePelcro();
|
|
29284
29351
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
29285
29352
|
variant: "icon",
|
|
29286
29353
|
"data-key": itemId,
|
|
29287
29354
|
icon: /*#__PURE__*/React__default.createElement(SvgXIcon, {
|
|
29288
29355
|
"aria-hidden": "true",
|
|
29289
|
-
focusable: "false"
|
|
29356
|
+
focusable: "false",
|
|
29357
|
+
className: "plc-fill-current"
|
|
29290
29358
|
}),
|
|
29291
|
-
className: "plc-bg-transparent plc-w-9 plc-h-9 plc-p-2",
|
|
29359
|
+
className: "plc-bg-transparent plc-w-9 plc-h-9 plc-p-2 hover:plc-text-red-500 hover:plc-bg-transparent",
|
|
29292
29360
|
onClick: () => {
|
|
29293
29361
|
removeFromCart(itemId);
|
|
29294
29362
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
@@ -29343,7 +29411,7 @@ const CartTotalPrice = () => {
|
|
|
29343
29411
|
} = useContext(store$8);
|
|
29344
29412
|
const {
|
|
29345
29413
|
cartItems
|
|
29346
|
-
} = usePelcro
|
|
29414
|
+
} = usePelcro();
|
|
29347
29415
|
const totalPriceCurrency = cartItems[0].currency;
|
|
29348
29416
|
const {
|
|
29349
29417
|
t
|
|
@@ -29363,11 +29431,11 @@ const CartTotalPrice = () => {
|
|
|
29363
29431
|
const CartView = props => {
|
|
29364
29432
|
const {
|
|
29365
29433
|
cartItems
|
|
29366
|
-
} = usePelcro
|
|
29434
|
+
} = usePelcro();
|
|
29367
29435
|
const {
|
|
29368
29436
|
t
|
|
29369
29437
|
} = useTranslation("cart");
|
|
29370
|
-
useEffect
|
|
29438
|
+
useEffect(() => {
|
|
29371
29439
|
document.dispatchEvent(cartOpened(cartItems));
|
|
29372
29440
|
}, []);
|
|
29373
29441
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -29422,7 +29490,7 @@ const CartModal = ({
|
|
|
29422
29490
|
switchView,
|
|
29423
29491
|
switchToAddressView,
|
|
29424
29492
|
isAuthenticated
|
|
29425
|
-
} = usePelcro
|
|
29493
|
+
} = usePelcro();
|
|
29426
29494
|
const {
|
|
29427
29495
|
t
|
|
29428
29496
|
} = useTranslation("cart");
|
|
@@ -29461,7 +29529,7 @@ const ShopSelectProductButton = ({
|
|
|
29461
29529
|
}) => {
|
|
29462
29530
|
const {
|
|
29463
29531
|
addToCart
|
|
29464
|
-
} = usePelcro
|
|
29532
|
+
} = usePelcro();
|
|
29465
29533
|
const {
|
|
29466
29534
|
t
|
|
29467
29535
|
} = useTranslation("shop");
|
|
@@ -29493,7 +29561,7 @@ const ShopPurchaseButton = ({
|
|
|
29493
29561
|
}) => {
|
|
29494
29562
|
const {
|
|
29495
29563
|
purchaseItem
|
|
29496
|
-
} = usePelcro
|
|
29564
|
+
} = usePelcro();
|
|
29497
29565
|
const {
|
|
29498
29566
|
t
|
|
29499
29567
|
} = useTranslation("shop");
|
|
@@ -29564,7 +29632,7 @@ const OrderCreateModal = ({
|
|
|
29564
29632
|
}) => {
|
|
29565
29633
|
const {
|
|
29566
29634
|
switchView
|
|
29567
|
-
} = usePelcro
|
|
29635
|
+
} = usePelcro();
|
|
29568
29636
|
const {
|
|
29569
29637
|
t
|
|
29570
29638
|
} = useTranslation("payment");
|
|
@@ -29601,7 +29669,7 @@ const OrderConfirmModal = props => {
|
|
|
29601
29669
|
} = useTranslation("shop");
|
|
29602
29670
|
const {
|
|
29603
29671
|
resetView
|
|
29604
|
-
} = usePelcro
|
|
29672
|
+
} = usePelcro();
|
|
29605
29673
|
|
|
29606
29674
|
const onClose = () => {
|
|
29607
29675
|
var _props$onClose;
|
|
@@ -29693,7 +29761,7 @@ const GiftCreateContainer = ({
|
|
|
29693
29761
|
} = useTranslation("register");
|
|
29694
29762
|
const {
|
|
29695
29763
|
set
|
|
29696
|
-
} = usePelcro
|
|
29764
|
+
} = usePelcro();
|
|
29697
29765
|
|
|
29698
29766
|
const handleSubmit = (state, dispatch) => {
|
|
29699
29767
|
const giftRecipient = {
|
|
@@ -29981,7 +30049,7 @@ const GiftCreateModal = ({
|
|
|
29981
30049
|
switchToAddressView,
|
|
29982
30050
|
switchToPaymentView,
|
|
29983
30051
|
product
|
|
29984
|
-
} = usePelcro
|
|
30052
|
+
} = usePelcro();
|
|
29985
30053
|
|
|
29986
30054
|
const onSuccess = giftRecipient => {
|
|
29987
30055
|
var _otherProps$onSuccess;
|
|
@@ -30046,15 +30114,15 @@ const GiftRedeemContainer = ({
|
|
|
30046
30114
|
} = useTranslation("register");
|
|
30047
30115
|
const {
|
|
30048
30116
|
set
|
|
30049
|
-
} = usePelcro
|
|
30117
|
+
} = usePelcro();
|
|
30050
30118
|
const {
|
|
30051
30119
|
switchView,
|
|
30052
30120
|
switchToAddressView,
|
|
30053
30121
|
isAuthenticated,
|
|
30054
30122
|
subscriptionIdToRenew: subscriptionIdToRenewFromStore
|
|
30055
|
-
} = usePelcro
|
|
30123
|
+
} = usePelcro();
|
|
30056
30124
|
const subscriptionIdToRenew = (_ref = (_props$subscriptionId = props.subscriptionIdToRenew) !== null && _props$subscriptionId !== void 0 ? _props$subscriptionId : subscriptionIdToRenewFromStore) !== null && _ref !== void 0 ? _ref : undefined;
|
|
30057
|
-
useEffect
|
|
30125
|
+
useEffect(() => {
|
|
30058
30126
|
onDisplay();
|
|
30059
30127
|
}, []);
|
|
30060
30128
|
|
|
@@ -30176,7 +30244,7 @@ function GiftCode({
|
|
|
30176
30244
|
});
|
|
30177
30245
|
};
|
|
30178
30246
|
|
|
30179
|
-
useEffect
|
|
30247
|
+
useEffect(() => {
|
|
30180
30248
|
const giftCode = window.Pelcro.helpers.getURLParameter("gift_code") ? window.Pelcro.helpers.getURLParameter("gift_code") : "";
|
|
30181
30249
|
handleInputChange(giftCode);
|
|
30182
30250
|
}, []);
|
|
@@ -30260,7 +30328,7 @@ const GiftRedeemModal = ({
|
|
|
30260
30328
|
switchView,
|
|
30261
30329
|
switchToAddressView,
|
|
30262
30330
|
isAuthenticated
|
|
30263
|
-
} = usePelcro
|
|
30331
|
+
} = usePelcro();
|
|
30264
30332
|
|
|
30265
30333
|
const onSuccess = giftCode => {
|
|
30266
30334
|
var _otherProps$onSuccess;
|
|
@@ -30337,7 +30405,7 @@ const AddressSelectContainer = ({
|
|
|
30337
30405
|
subscriptionIdToRenew: subscriptionIdToRenewFromStore,
|
|
30338
30406
|
set,
|
|
30339
30407
|
selectedMembership
|
|
30340
|
-
} = usePelcro
|
|
30408
|
+
} = usePelcro();
|
|
30341
30409
|
const giftCode = (_props$giftCode = props.giftCode) !== null && _props$giftCode !== void 0 ? _props$giftCode : giftCodeFromStore;
|
|
30342
30410
|
const subscriptionIdToRenew = (_ref = (_props$subscriptionId = props.subscriptionIdToRenew) !== null && _props$subscriptionId !== void 0 ? _props$subscriptionId : subscriptionIdToRenewFromStore) !== null && _ref !== void 0 ? _ref : undefined;
|
|
30343
30411
|
|
|
@@ -30452,7 +30520,7 @@ const AddressSelectContainer = ({
|
|
|
30452
30520
|
return state;
|
|
30453
30521
|
}
|
|
30454
30522
|
}, initialState$5);
|
|
30455
|
-
useEffect
|
|
30523
|
+
useEffect(() => {
|
|
30456
30524
|
var _window$Pelcro$user$r;
|
|
30457
30525
|
|
|
30458
30526
|
dispatch({
|
|
@@ -30576,7 +30644,7 @@ const AddressSelectModal = ({
|
|
|
30576
30644
|
switchView,
|
|
30577
30645
|
switchToPaymentView,
|
|
30578
30646
|
resetView
|
|
30579
|
-
} = usePelcro
|
|
30647
|
+
} = usePelcro();
|
|
30580
30648
|
const {
|
|
30581
30649
|
t
|
|
30582
30650
|
} = useTranslation("address");
|
|
@@ -30661,7 +30729,7 @@ const PaymentMethodSelectContainer = ({
|
|
|
30661
30729
|
const {
|
|
30662
30730
|
set,
|
|
30663
30731
|
selectedPaymentMethodId: selectedPaymentMethodIdFromStore
|
|
30664
|
-
} = usePelcro
|
|
30732
|
+
} = usePelcro();
|
|
30665
30733
|
|
|
30666
30734
|
const submitPaymentMethod = ({
|
|
30667
30735
|
selectedPaymentMethodId
|
|
@@ -30710,7 +30778,7 @@ const PaymentMethodSelectContainer = ({
|
|
|
30710
30778
|
return state;
|
|
30711
30779
|
}
|
|
30712
30780
|
}, initialState$4);
|
|
30713
|
-
useEffect
|
|
30781
|
+
useEffect(() => {
|
|
30714
30782
|
var _window$Pelcro$user$r3;
|
|
30715
30783
|
|
|
30716
30784
|
dispatch({
|
|
@@ -30840,7 +30908,7 @@ const PaymentMethodSelectModal = ({
|
|
|
30840
30908
|
switchToCheckoutForm,
|
|
30841
30909
|
set,
|
|
30842
30910
|
plan
|
|
30843
|
-
} = usePelcro
|
|
30911
|
+
} = usePelcro();
|
|
30844
30912
|
const {
|
|
30845
30913
|
t
|
|
30846
30914
|
} = useTranslation("paymentMethod");
|
|
@@ -30881,8 +30949,8 @@ const PaymentMethodSelectModal = ({
|
|
|
30881
30949
|
};
|
|
30882
30950
|
PaymentMethodSelectModal.viewId = "payment-method-select";
|
|
30883
30951
|
|
|
30884
|
-
function _extends$
|
|
30885
|
-
_extends$
|
|
30952
|
+
function _extends$h() {
|
|
30953
|
+
_extends$h = Object.assign || function (target) {
|
|
30886
30954
|
for (var i = 1; i < arguments.length; i++) {
|
|
30887
30955
|
var source = arguments[i];
|
|
30888
30956
|
|
|
@@ -30896,7 +30964,7 @@ function _extends$g() {
|
|
|
30896
30964
|
return target;
|
|
30897
30965
|
};
|
|
30898
30966
|
|
|
30899
|
-
return _extends$
|
|
30967
|
+
return _extends$h.apply(this, arguments);
|
|
30900
30968
|
}
|
|
30901
30969
|
|
|
30902
30970
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -30956,7 +31024,7 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
|
30956
31024
|
return it.next.bind(it);
|
|
30957
31025
|
}
|
|
30958
31026
|
|
|
30959
|
-
var useIsoMorphicEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect
|
|
31027
|
+
var useIsoMorphicEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
|
|
30960
31028
|
|
|
30961
31029
|
// didn't take care of the Suspense case. To fix this we used the approach the @reach-ui/auto-id
|
|
30962
31030
|
// uses.
|
|
@@ -30980,7 +31048,7 @@ function useId() {
|
|
|
30980
31048
|
useIsoMorphicEffect(function () {
|
|
30981
31049
|
if (id === null) setId(generateId());
|
|
30982
31050
|
}, [id]);
|
|
30983
|
-
useEffect
|
|
31051
|
+
useEffect(function () {
|
|
30984
31052
|
if (state.serverHandoffComplete === false) state.serverHandoffComplete = true;
|
|
30985
31053
|
}, []);
|
|
30986
31054
|
return id != null ? '' + id : undefined;
|
|
@@ -30988,7 +31056,7 @@ function useId() {
|
|
|
30988
31056
|
|
|
30989
31057
|
function useIsInitialRender() {
|
|
30990
31058
|
var initial = useRef(true);
|
|
30991
|
-
useEffect
|
|
31059
|
+
useEffect(function () {
|
|
30992
31060
|
initial.current = false;
|
|
30993
31061
|
}, []);
|
|
30994
31062
|
return initial.current;
|
|
@@ -31014,7 +31082,7 @@ function match(value, lookup) {
|
|
|
31014
31082
|
|
|
31015
31083
|
function useIsMounted() {
|
|
31016
31084
|
var mounted = useRef(true);
|
|
31017
|
-
useEffect
|
|
31085
|
+
useEffect(function () {
|
|
31018
31086
|
return function () {
|
|
31019
31087
|
mounted.current = false;
|
|
31020
31088
|
};
|
|
@@ -31080,7 +31148,7 @@ function render(props, propsBag, defaultTag, features, visible) {
|
|
|
31080
31148
|
return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
|
|
31081
31149
|
return null;
|
|
31082
31150
|
}, _match[RenderStrategy.Hidden] = function () {
|
|
31083
|
-
return _render(_extends$
|
|
31151
|
+
return _render(_extends$h({}, _rest, {
|
|
31084
31152
|
hidden: true,
|
|
31085
31153
|
style: {
|
|
31086
31154
|
display: 'none'
|
|
@@ -31421,7 +31489,7 @@ function useNesting(done) {
|
|
|
31421
31489
|
var doneRef = useRef(done);
|
|
31422
31490
|
var transitionableChildren = useRef([]);
|
|
31423
31491
|
var mounted = useIsMounted();
|
|
31424
|
-
useEffect
|
|
31492
|
+
useEffect(function () {
|
|
31425
31493
|
doneRef.current = done;
|
|
31426
31494
|
}, [done]);
|
|
31427
31495
|
var unregister = useCallback(function (childId, strategy) {
|
|
@@ -31487,7 +31555,7 @@ function ensureEventHooksExist(events) {
|
|
|
31487
31555
|
|
|
31488
31556
|
function useEvents(events) {
|
|
31489
31557
|
var eventsRef = useRef(ensureEventHooksExist(events));
|
|
31490
|
-
useEffect
|
|
31558
|
+
useEffect(function () {
|
|
31491
31559
|
eventsRef.current = ensureEventHooksExist(events);
|
|
31492
31560
|
}, [events]);
|
|
31493
31561
|
return eventsRef;
|
|
@@ -31572,7 +31640,7 @@ function TransitionChild(props) {
|
|
|
31572
31640
|
beforeLeave: beforeLeave,
|
|
31573
31641
|
afterLeave: afterLeave
|
|
31574
31642
|
});
|
|
31575
|
-
useEffect
|
|
31643
|
+
useEffect(function () {
|
|
31576
31644
|
if (state === TreeStates.Visible && container.current === null) {
|
|
31577
31645
|
throw new Error('Did you forget to passthrough the `ref` to the actual DOM node?');
|
|
31578
31646
|
}
|
|
@@ -31608,7 +31676,7 @@ function TransitionChild(props) {
|
|
|
31608
31676
|
var passthroughProps = rest;
|
|
31609
31677
|
return React__default.createElement(NestingContext.Provider, {
|
|
31610
31678
|
value: nesting
|
|
31611
|
-
}, render(_extends$
|
|
31679
|
+
}, render(_extends$h({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
|
|
31612
31680
|
}
|
|
31613
31681
|
|
|
31614
31682
|
function Transition(props) {
|
|
@@ -31637,7 +31705,7 @@ function Transition(props) {
|
|
|
31637
31705
|
appear: appear || !initial
|
|
31638
31706
|
};
|
|
31639
31707
|
}, [show, appear, initial]);
|
|
31640
|
-
useEffect
|
|
31708
|
+
useEffect(function () {
|
|
31641
31709
|
if (show) {
|
|
31642
31710
|
setState(TreeStates.Visible);
|
|
31643
31711
|
} else if (!hasChildren(nestingBag)) {
|
|
@@ -31652,7 +31720,7 @@ function Transition(props) {
|
|
|
31652
31720
|
value: nestingBag
|
|
31653
31721
|
}, React__default.createElement(TransitionContext.Provider, {
|
|
31654
31722
|
value: transitionBag
|
|
31655
|
-
}, render(_extends$
|
|
31723
|
+
}, render(_extends$h({}, sharedProps, {
|
|
31656
31724
|
as: Fragment,
|
|
31657
31725
|
children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
|
|
31658
31726
|
}), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
|
|
@@ -31779,12 +31847,12 @@ var ActionTypes;
|
|
|
31779
31847
|
})(ActionTypes || (ActionTypes = {}));
|
|
31780
31848
|
|
|
31781
31849
|
(_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
|
|
31782
|
-
return _extends$
|
|
31850
|
+
return _extends$h({}, state, {
|
|
31783
31851
|
activeItemIndex: null,
|
|
31784
31852
|
menuState: MenuStates.Closed
|
|
31785
31853
|
});
|
|
31786
31854
|
}, _reducers[ActionTypes.OpenMenu] = function (state) {
|
|
31787
|
-
return _extends$
|
|
31855
|
+
return _extends$h({}, state, {
|
|
31788
31856
|
menuState: MenuStates.Open
|
|
31789
31857
|
});
|
|
31790
31858
|
}, _reducers[ActionTypes.GoToItem] = function (state, action) {
|
|
@@ -31803,7 +31871,7 @@ var ActionTypes;
|
|
|
31803
31871
|
}
|
|
31804
31872
|
});
|
|
31805
31873
|
if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
|
|
31806
|
-
return _extends$
|
|
31874
|
+
return _extends$h({}, state, {
|
|
31807
31875
|
searchQuery: '',
|
|
31808
31876
|
activeItemIndex: activeItemIndex
|
|
31809
31877
|
});
|
|
@@ -31814,19 +31882,19 @@ var ActionTypes;
|
|
|
31814
31882
|
|
|
31815
31883
|
return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
|
|
31816
31884
|
});
|
|
31817
|
-
if (match === -1 || match === state.activeItemIndex) return _extends$
|
|
31885
|
+
if (match === -1 || match === state.activeItemIndex) return _extends$h({}, state, {
|
|
31818
31886
|
searchQuery: searchQuery
|
|
31819
31887
|
});
|
|
31820
|
-
return _extends$
|
|
31888
|
+
return _extends$h({}, state, {
|
|
31821
31889
|
searchQuery: searchQuery,
|
|
31822
31890
|
activeItemIndex: match
|
|
31823
31891
|
});
|
|
31824
31892
|
}, _reducers[ActionTypes.ClearSearch] = function (state) {
|
|
31825
|
-
return _extends$
|
|
31893
|
+
return _extends$h({}, state, {
|
|
31826
31894
|
searchQuery: ''
|
|
31827
31895
|
});
|
|
31828
31896
|
}, _reducers[ActionTypes.RegisterItem] = function (state, action) {
|
|
31829
|
-
return _extends$
|
|
31897
|
+
return _extends$h({}, state, {
|
|
31830
31898
|
items: [].concat(state.items, [{
|
|
31831
31899
|
id: action.id,
|
|
31832
31900
|
dataRef: action.dataRef
|
|
@@ -31839,7 +31907,7 @@ var ActionTypes;
|
|
|
31839
31907
|
return a.id === action.id;
|
|
31840
31908
|
});
|
|
31841
31909
|
if (idx !== -1) nextItems.splice(idx, 1);
|
|
31842
|
-
return _extends$
|
|
31910
|
+
return _extends$h({}, state, {
|
|
31843
31911
|
items: nextItems,
|
|
31844
31912
|
activeItemIndex: function () {
|
|
31845
31913
|
if (idx === state.activeItemIndex) return null;
|
|
@@ -31878,19 +31946,19 @@ var ActionTypes$1;
|
|
|
31878
31946
|
(_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
|
|
31879
31947
|
if (state.disabled) return state;
|
|
31880
31948
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
31881
|
-
return _extends$
|
|
31949
|
+
return _extends$h({}, state, {
|
|
31882
31950
|
activeOptionIndex: null,
|
|
31883
31951
|
listboxState: ListboxStates.Closed
|
|
31884
31952
|
});
|
|
31885
31953
|
}, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
|
|
31886
31954
|
if (state.disabled) return state;
|
|
31887
31955
|
if (state.listboxState === ListboxStates.Open) return state;
|
|
31888
|
-
return _extends$
|
|
31956
|
+
return _extends$h({}, state, {
|
|
31889
31957
|
listboxState: ListboxStates.Open
|
|
31890
31958
|
});
|
|
31891
31959
|
}, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
|
|
31892
31960
|
if (state.disabled === action.disabled) return state;
|
|
31893
|
-
return _extends$
|
|
31961
|
+
return _extends$h({}, state, {
|
|
31894
31962
|
disabled: action.disabled
|
|
31895
31963
|
});
|
|
31896
31964
|
}, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
|
|
@@ -31911,7 +31979,7 @@ var ActionTypes$1;
|
|
|
31911
31979
|
}
|
|
31912
31980
|
});
|
|
31913
31981
|
if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
|
|
31914
|
-
return _extends$
|
|
31982
|
+
return _extends$h({}, state, {
|
|
31915
31983
|
searchQuery: '',
|
|
31916
31984
|
activeOptionIndex: activeOptionIndex
|
|
31917
31985
|
});
|
|
@@ -31924,10 +31992,10 @@ var ActionTypes$1;
|
|
|
31924
31992
|
|
|
31925
31993
|
return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
|
|
31926
31994
|
});
|
|
31927
|
-
if (match === -1 || match === state.activeOptionIndex) return _extends$
|
|
31995
|
+
if (match === -1 || match === state.activeOptionIndex) return _extends$h({}, state, {
|
|
31928
31996
|
searchQuery: searchQuery
|
|
31929
31997
|
});
|
|
31930
|
-
return _extends$
|
|
31998
|
+
return _extends$h({}, state, {
|
|
31931
31999
|
searchQuery: searchQuery,
|
|
31932
32000
|
activeOptionIndex: match
|
|
31933
32001
|
});
|
|
@@ -31935,11 +32003,11 @@ var ActionTypes$1;
|
|
|
31935
32003
|
if (state.disabled) return state;
|
|
31936
32004
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
31937
32005
|
if (state.searchQuery === '') return state;
|
|
31938
|
-
return _extends$
|
|
32006
|
+
return _extends$h({}, state, {
|
|
31939
32007
|
searchQuery: ''
|
|
31940
32008
|
});
|
|
31941
32009
|
}, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
|
|
31942
|
-
return _extends$
|
|
32010
|
+
return _extends$h({}, state, {
|
|
31943
32011
|
options: [].concat(state.options, [{
|
|
31944
32012
|
id: action.id,
|
|
31945
32013
|
dataRef: action.dataRef
|
|
@@ -31952,7 +32020,7 @@ var ActionTypes$1;
|
|
|
31952
32020
|
return a.id === action.id;
|
|
31953
32021
|
});
|
|
31954
32022
|
if (idx !== -1) nextOptions.splice(idx, 1);
|
|
31955
|
-
return _extends$
|
|
32023
|
+
return _extends$h({}, state, {
|
|
31956
32024
|
options: nextOptions,
|
|
31957
32025
|
activeOptionIndex: function () {
|
|
31958
32026
|
if (idx === state.activeOptionIndex) return null;
|
|
@@ -31970,13 +32038,31 @@ Features.RenderStrategy | Features.Static;
|
|
|
31970
32038
|
var GroupContext = /*#__PURE__*/createContext(null);
|
|
31971
32039
|
GroupContext.displayName = 'GroupContext';
|
|
31972
32040
|
|
|
32041
|
+
var _path$g;
|
|
32042
|
+
|
|
32043
|
+
function _extends$g() { _extends$g = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
32044
|
+
|
|
32045
|
+
function SvgExit(props) {
|
|
32046
|
+
return /*#__PURE__*/React.createElement("svg", _extends$g({
|
|
32047
|
+
className: "plc-w-6 plc-h-6",
|
|
32048
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
32049
|
+
fill: "none",
|
|
32050
|
+
viewBox: "0 0 24 24",
|
|
32051
|
+
stroke: "currentColor"
|
|
32052
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
32053
|
+
strokeLinecap: "round",
|
|
32054
|
+
strokeLinejoin: "round",
|
|
32055
|
+
strokeWidth: 2,
|
|
32056
|
+
d: "M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"
|
|
32057
|
+
})));
|
|
32058
|
+
}
|
|
32059
|
+
|
|
31973
32060
|
var _path$f;
|
|
31974
32061
|
|
|
31975
32062
|
function _extends$f() { _extends$f = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
|
|
31976
32063
|
|
|
31977
|
-
function
|
|
32064
|
+
function SvgUser(props) {
|
|
31978
32065
|
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
31979
|
-
className: "plc-w-6 plc-h-6",
|
|
31980
32066
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31981
32067
|
fill: "none",
|
|
31982
32068
|
viewBox: "0 0 24 24",
|
|
@@ -31985,7 +32071,7 @@ function SvgExit(props) {
|
|
|
31985
32071
|
strokeLinecap: "round",
|
|
31986
32072
|
strokeLinejoin: "round",
|
|
31987
32073
|
strokeWidth: 2,
|
|
31988
|
-
d: "
|
|
32074
|
+
d: "M16 7a4 4 0 11-8 0 4 4 0 018 0zm-4 7a7 7 0 00-7 7h14a7 7 0 00-7-7z"
|
|
31989
32075
|
})));
|
|
31990
32076
|
}
|
|
31991
32077
|
|
|
@@ -31993,9 +32079,10 @@ var _path$e;
|
|
|
31993
32079
|
|
|
31994
32080
|
function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
|
|
31995
32081
|
|
|
31996
|
-
function
|
|
32082
|
+
function SvgNewsletter(props) {
|
|
31997
32083
|
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
31998
32084
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32085
|
+
className: "plc-h-5 plc-w-5",
|
|
31999
32086
|
fill: "none",
|
|
32000
32087
|
viewBox: "0 0 24 24",
|
|
32001
32088
|
stroke: "currentColor"
|
|
@@ -32003,7 +32090,7 @@ function SvgUser(props) {
|
|
|
32003
32090
|
strokeLinecap: "round",
|
|
32004
32091
|
strokeLinejoin: "round",
|
|
32005
32092
|
strokeWidth: 2,
|
|
32006
|
-
d: "
|
|
32093
|
+
d: "M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"
|
|
32007
32094
|
})));
|
|
32008
32095
|
}
|
|
32009
32096
|
|
|
@@ -32011,10 +32098,10 @@ var _path$d;
|
|
|
32011
32098
|
|
|
32012
32099
|
function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
32013
32100
|
|
|
32014
|
-
function
|
|
32101
|
+
function SvgRefresh(props) {
|
|
32015
32102
|
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
32103
|
+
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
32016
32104
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32017
|
-
className: "plc-h-5 plc-w-5",
|
|
32018
32105
|
fill: "none",
|
|
32019
32106
|
viewBox: "0 0 24 24",
|
|
32020
32107
|
stroke: "currentColor"
|
|
@@ -32022,7 +32109,7 @@ function SvgNewsletter(props) {
|
|
|
32022
32109
|
strokeLinecap: "round",
|
|
32023
32110
|
strokeLinejoin: "round",
|
|
32024
32111
|
strokeWidth: 2,
|
|
32025
|
-
d: "
|
|
32112
|
+
d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
|
|
32026
32113
|
})));
|
|
32027
32114
|
}
|
|
32028
32115
|
|
|
@@ -32030,10 +32117,10 @@ var _path$c;
|
|
|
32030
32117
|
|
|
32031
32118
|
function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
32032
32119
|
|
|
32033
|
-
function
|
|
32120
|
+
function SvgDocument(props) {
|
|
32034
32121
|
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
32035
|
-
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
32036
32122
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32123
|
+
className: "plc-h-6 plc-w-6 plc-mr-2",
|
|
32037
32124
|
fill: "none",
|
|
32038
32125
|
viewBox: "0 0 24 24",
|
|
32039
32126
|
stroke: "currentColor"
|
|
@@ -32041,7 +32128,7 @@ function SvgRefresh(props) {
|
|
|
32041
32128
|
strokeLinecap: "round",
|
|
32042
32129
|
strokeLinejoin: "round",
|
|
32043
32130
|
strokeWidth: 2,
|
|
32044
|
-
d: "
|
|
32131
|
+
d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
|
|
32045
32132
|
})));
|
|
32046
32133
|
}
|
|
32047
32134
|
|
|
@@ -32049,10 +32136,10 @@ var _path$b;
|
|
|
32049
32136
|
|
|
32050
32137
|
function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
|
|
32051
32138
|
|
|
32052
|
-
function
|
|
32139
|
+
function SvgPaymentCard(props) {
|
|
32053
32140
|
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
32141
|
+
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
32054
32142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32055
|
-
className: "plc-h-6 plc-w-6 plc-mr-2",
|
|
32056
32143
|
fill: "none",
|
|
32057
32144
|
viewBox: "0 0 24 24",
|
|
32058
32145
|
stroke: "currentColor"
|
|
@@ -32060,15 +32147,15 @@ function SvgDocument(props) {
|
|
|
32060
32147
|
strokeLinecap: "round",
|
|
32061
32148
|
strokeLinejoin: "round",
|
|
32062
32149
|
strokeWidth: 2,
|
|
32063
|
-
d: "
|
|
32150
|
+
d: "M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"
|
|
32064
32151
|
})));
|
|
32065
32152
|
}
|
|
32066
32153
|
|
|
32067
|
-
var _path$a;
|
|
32154
|
+
var _path$a, _path2;
|
|
32068
32155
|
|
|
32069
32156
|
function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
|
|
32070
32157
|
|
|
32071
|
-
function
|
|
32158
|
+
function SvgLocationPin(props) {
|
|
32072
32159
|
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
32073
32160
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
32074
32161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -32079,15 +32166,20 @@ function SvgPaymentCard(props) {
|
|
|
32079
32166
|
strokeLinecap: "round",
|
|
32080
32167
|
strokeLinejoin: "round",
|
|
32081
32168
|
strokeWidth: 2,
|
|
32082
|
-
d: "
|
|
32169
|
+
d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"
|
|
32170
|
+
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
32171
|
+
strokeLinecap: "round",
|
|
32172
|
+
strokeLinejoin: "round",
|
|
32173
|
+
strokeWidth: 2,
|
|
32174
|
+
d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z"
|
|
32083
32175
|
})));
|
|
32084
32176
|
}
|
|
32085
32177
|
|
|
32086
|
-
var _path$9
|
|
32178
|
+
var _path$9;
|
|
32087
32179
|
|
|
32088
32180
|
function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
32089
32181
|
|
|
32090
|
-
function
|
|
32182
|
+
function SvgShopping(props) {
|
|
32091
32183
|
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
32092
32184
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
32093
32185
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -32098,12 +32190,7 @@ function SvgLocationPin(props) {
|
|
|
32098
32190
|
strokeLinecap: "round",
|
|
32099
32191
|
strokeLinejoin: "round",
|
|
32100
32192
|
strokeWidth: 2,
|
|
32101
|
-
d: "
|
|
32102
|
-
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
32103
|
-
strokeLinecap: "round",
|
|
32104
|
-
strokeLinejoin: "round",
|
|
32105
|
-
strokeWidth: 2,
|
|
32106
|
-
d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z"
|
|
32193
|
+
d: "M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"
|
|
32107
32194
|
})));
|
|
32108
32195
|
}
|
|
32109
32196
|
|
|
@@ -32111,7 +32198,7 @@ var _path$8;
|
|
|
32111
32198
|
|
|
32112
32199
|
function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
32113
32200
|
|
|
32114
|
-
function
|
|
32201
|
+
function SvgBookmark(props) {
|
|
32115
32202
|
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
32116
32203
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
32117
32204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -32122,7 +32209,7 @@ function SvgShopping(props) {
|
|
|
32122
32209
|
strokeLinecap: "round",
|
|
32123
32210
|
strokeLinejoin: "round",
|
|
32124
32211
|
strokeWidth: 2,
|
|
32125
|
-
d: "
|
|
32212
|
+
d: "M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"
|
|
32126
32213
|
})));
|
|
32127
32214
|
}
|
|
32128
32215
|
|
|
@@ -32130,9 +32217,9 @@ var _path$7;
|
|
|
32130
32217
|
|
|
32131
32218
|
function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
|
32132
32219
|
|
|
32133
|
-
function
|
|
32220
|
+
function SvgPlus(props) {
|
|
32134
32221
|
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
32135
|
-
className: "plc-w-
|
|
32222
|
+
className: "plc-w-5 plc-h-5",
|
|
32136
32223
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32137
32224
|
fill: "none",
|
|
32138
32225
|
viewBox: "0 0 24 24",
|
|
@@ -32141,7 +32228,7 @@ function SvgBookmark(props) {
|
|
|
32141
32228
|
strokeLinecap: "round",
|
|
32142
32229
|
strokeLinejoin: "round",
|
|
32143
32230
|
strokeWidth: 2,
|
|
32144
|
-
d: "
|
|
32231
|
+
d: "M12 6v6m0 0v6m0-6h6m-6 0H6"
|
|
32145
32232
|
})));
|
|
32146
32233
|
}
|
|
32147
32234
|
|
|
@@ -32149,18 +32236,15 @@ var _path$6;
|
|
|
32149
32236
|
|
|
32150
32237
|
function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
|
|
32151
32238
|
|
|
32152
|
-
function
|
|
32239
|
+
function SvgKey(props) {
|
|
32153
32240
|
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
32154
|
-
className: "plc-w-5 plc-h-5",
|
|
32155
32241
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32156
|
-
|
|
32157
|
-
|
|
32158
|
-
stroke: "currentColor"
|
|
32242
|
+
viewBox: "0 0 20 20",
|
|
32243
|
+
fill: "currentColor"
|
|
32159
32244
|
}, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
|
|
32160
|
-
|
|
32161
|
-
|
|
32162
|
-
|
|
32163
|
-
d: "M12 6v6m0 0v6m0-6h6m-6 0H6"
|
|
32245
|
+
fillRule: "evenodd",
|
|
32246
|
+
d: "M18 8a6 6 0 01-7.743 5.743L10 14l-1 1-1 1H6v2H2v-4l4.257-4.257A6 6 0 1118 8zm-6-4a1 1 0 100 2 2 2 0 012 2 1 1 0 102 0 4 4 0 00-4-4z",
|
|
32247
|
+
clipRule: "evenodd"
|
|
32164
32248
|
})));
|
|
32165
32249
|
}
|
|
32166
32250
|
|
|
@@ -32285,7 +32369,7 @@ const SavedItems = ({
|
|
|
32285
32369
|
const [isLoading, setLoading] = useState(false);
|
|
32286
32370
|
const {
|
|
32287
32371
|
isAuthenticated
|
|
32288
|
-
} = usePelcro
|
|
32372
|
+
} = usePelcro();
|
|
32289
32373
|
|
|
32290
32374
|
const removeItemFromMetadata = (category, title) => {
|
|
32291
32375
|
const user = window.Pelcro.user.read();
|
|
@@ -32456,7 +32540,7 @@ const SubscriptionsItems = ({
|
|
|
32456
32540
|
setSubscriptionToCancel,
|
|
32457
32541
|
setSubscriptionToSuspend,
|
|
32458
32542
|
set
|
|
32459
|
-
} = usePelcro
|
|
32543
|
+
} = usePelcro();
|
|
32460
32544
|
const subs = getNonDonationSubs();
|
|
32461
32545
|
if (subs.length === 0) return null;
|
|
32462
32546
|
return subs.sort((a, b) => a.expires_at - b.expires_at).sort((a, b) => a.renews_at - b.renews_at).map(sub => {
|
|
@@ -32874,7 +32958,7 @@ const DonationsMenu = ({
|
|
|
32874
32958
|
const {
|
|
32875
32959
|
t
|
|
32876
32960
|
} = useTranslation("dashboard");
|
|
32877
|
-
usePelcro
|
|
32961
|
+
usePelcro();
|
|
32878
32962
|
const subscriptions = getDonationSubs().sort((a, b) => a.expires_at - b.expires_at).sort((a, b) => a.renews_at - b.renews_at).map(sub => {
|
|
32879
32963
|
|
|
32880
32964
|
return /*#__PURE__*/React__default.createElement("tr", {
|
|
@@ -32952,7 +33036,7 @@ const InvoicesItems = () => {
|
|
|
32952
33036
|
const {
|
|
32953
33037
|
setInvoice,
|
|
32954
33038
|
switchView
|
|
32955
|
-
} = usePelcro
|
|
33039
|
+
} = usePelcro();
|
|
32956
33040
|
const invoices = (_window$Pelcro$invoic = (_window$Pelcro$invoic2 = window.Pelcro.invoice.list()) === null || _window$Pelcro$invoic2 === void 0 ? void 0 : _window$Pelcro$invoic2.filter(invoice => invoice.total > 0)) !== null && _window$Pelcro$invoic !== void 0 ? _window$Pelcro$invoic : [];
|
|
32957
33041
|
|
|
32958
33042
|
const showInvoiceDetails = event => {
|
|
@@ -33101,7 +33185,7 @@ const MembershipsItems = props => {
|
|
|
33101
33185
|
switchView,
|
|
33102
33186
|
setSelectedMembership,
|
|
33103
33187
|
switchToAddressView
|
|
33104
|
-
} = usePelcro
|
|
33188
|
+
} = usePelcro();
|
|
33105
33189
|
const memberships = getActiveMemberships();
|
|
33106
33190
|
|
|
33107
33191
|
const onChangeAddressClick = membershipId => {
|
|
@@ -33329,7 +33413,7 @@ const AddressesItems = props => {
|
|
|
33329
33413
|
useTranslation("dashboard");
|
|
33330
33414
|
const {
|
|
33331
33415
|
switchView
|
|
33332
|
-
} = usePelcro
|
|
33416
|
+
} = usePelcro();
|
|
33333
33417
|
const [selectedAddressId, setSelectedAddressId] = useState(null);
|
|
33334
33418
|
const allAddresses = (_window$Pelcro$user$r = window.Pelcro.user.read().addresses) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [];
|
|
33335
33419
|
|
|
@@ -33349,7 +33433,7 @@ const AddressesItems = props => {
|
|
|
33349
33433
|
|
|
33350
33434
|
const addresses = moveDefaultAddressToStart(allAddresses);
|
|
33351
33435
|
if (addresses.length === 0) return null;
|
|
33352
|
-
useEffect
|
|
33436
|
+
useEffect(() => {
|
|
33353
33437
|
var _getDefaultAddress;
|
|
33354
33438
|
|
|
33355
33439
|
setSelectedAddressId(String((_getDefaultAddress = getDefaultAddress(addresses)) === null || _getDefaultAddress === void 0 ? void 0 : _getDefaultAddress.id));
|
|
@@ -34873,7 +34957,7 @@ const ProfileMenu = props => {
|
|
|
34873
34957
|
} = useTranslation("dashboard");
|
|
34874
34958
|
const {
|
|
34875
34959
|
switchView
|
|
34876
|
-
} = usePelcro
|
|
34960
|
+
} = usePelcro();
|
|
34877
34961
|
|
|
34878
34962
|
const onPictureClick = () => {
|
|
34879
34963
|
switchView("profile-picture");
|
|
@@ -34988,7 +35072,7 @@ const NewslettersMenu = props => {
|
|
|
34988
35072
|
}
|
|
34989
35073
|
};
|
|
34990
35074
|
|
|
34991
|
-
useEffect
|
|
35075
|
+
useEffect(() => {
|
|
34992
35076
|
window.Pelcro.newsletter.getByEmail(email, (err, res) => {
|
|
34993
35077
|
var _res$data$lists$split, _res$data$lists;
|
|
34994
35078
|
|
|
@@ -35038,9 +35122,21 @@ const NewsLettersItems = ({
|
|
|
35038
35122
|
});
|
|
35039
35123
|
};
|
|
35040
35124
|
|
|
35125
|
+
const PasswordChangeMenu = () => {
|
|
35126
|
+
const {
|
|
35127
|
+
t
|
|
35128
|
+
} = useTranslation("dashboard");
|
|
35129
|
+
return /*#__PURE__*/React__default.createElement(Card, {
|
|
35130
|
+
id: "pelcro-dashboard-profile-menu",
|
|
35131
|
+
className: "plc-max-w-100% md:plc-max-w-80% plc-m-auto",
|
|
35132
|
+
title: t("labels.changePassword")
|
|
35133
|
+
}, /*#__PURE__*/React__default.createElement(PasswordChangeView, null));
|
|
35134
|
+
};
|
|
35135
|
+
|
|
35041
35136
|
const SUB_MENUS = {
|
|
35042
35137
|
PROFILE: "profile",
|
|
35043
35138
|
QRCODE: "qr-code",
|
|
35139
|
+
PASSWORDCHANGE: "passwordChange",
|
|
35044
35140
|
SUBSCRIPTIONS: "subscriptions",
|
|
35045
35141
|
DONATIONS: "donations",
|
|
35046
35142
|
MEMBERSHIPS: "memberships",
|
|
@@ -35068,7 +35164,7 @@ function DashboardWithHook(props) {
|
|
|
35068
35164
|
resetView,
|
|
35069
35165
|
logout,
|
|
35070
35166
|
set
|
|
35071
|
-
} = usePelcro
|
|
35167
|
+
} = usePelcro();
|
|
35072
35168
|
return /*#__PURE__*/React__default.createElement(DashboardWithTrans, {
|
|
35073
35169
|
setAddress: addressIdToEdit => set({
|
|
35074
35170
|
addressIdToEdit
|
|
@@ -35447,7 +35543,16 @@ class Dashboard extends Component {
|
|
|
35447
35543
|
className: "plc-font-bold"
|
|
35448
35544
|
}, this.user.first_name, " ", this.user.last_name), /*#__PURE__*/React__default.createElement("p", {
|
|
35449
35545
|
className: `plc-m-0 plc-text-sm ${userHasName ? "plc-text-sm" : "plc-text-lg plc-font-bold plc-mt-auto"}`
|
|
35450
|
-
}, this.user.email))
|
|
35546
|
+
}, this.user.email)), /*#__PURE__*/React__default.createElement("div", {
|
|
35547
|
+
className: "lg:plc-hidden"
|
|
35548
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
35549
|
+
variant: "ghost",
|
|
35550
|
+
type: "button",
|
|
35551
|
+
className: "plc-text-gray-500 plc-rounded-2xl plc-absolute plc-z-max plc-top-5 plc-right-10",
|
|
35552
|
+
onClick: this.closeDashboard
|
|
35553
|
+
}, /*#__PURE__*/React__default.createElement(SvgXIcon, {
|
|
35554
|
+
className: "plc-fill-current"
|
|
35555
|
+
}))))), /*#__PURE__*/React__default.createElement("section", {
|
|
35451
35556
|
className: "plc-mt-6 plc-shadow-sm"
|
|
35452
35557
|
}, /*#__PURE__*/React__default.createElement("header", {
|
|
35453
35558
|
className: "plc-pl-4 plc-mb-2 sm:plc-pl-8"
|
|
@@ -35469,6 +35574,14 @@ class Dashboard extends Component {
|
|
|
35469
35574
|
title: "My QR code",
|
|
35470
35575
|
setActiveDashboardLink: this.setActiveDashboardLink,
|
|
35471
35576
|
activeDashboardLink: this.state.activeDashboardLink
|
|
35577
|
+
}), /*#__PURE__*/React__default.createElement(DashboardLink, {
|
|
35578
|
+
name: SUB_MENUS.PASSWORDCHANGE,
|
|
35579
|
+
icon: /*#__PURE__*/React__default.createElement(SvgKey, {
|
|
35580
|
+
className: "plc-w-6 plc-h-6 plc-mr-2"
|
|
35581
|
+
}),
|
|
35582
|
+
title: "Change password",
|
|
35583
|
+
setActiveDashboardLink: this.setActiveDashboardLink,
|
|
35584
|
+
activeDashboardLink: this.state.activeDashboardLink
|
|
35472
35585
|
}), /*#__PURE__*/React__default.createElement(DashboardLink, {
|
|
35473
35586
|
name: SUB_MENUS.SAVED_ITEMS,
|
|
35474
35587
|
icon: /*#__PURE__*/React__default.createElement(SvgBookmark, null),
|
|
@@ -35556,7 +35669,7 @@ class Dashboard extends Component {
|
|
|
35556
35669
|
}))), this.state.activeDashboardLink && isOpen && /*#__PURE__*/React__default.createElement("div", {
|
|
35557
35670
|
id: "pelcro-view-dashboard-submenus",
|
|
35558
35671
|
className: "plc-fixed plc-inset-y-0 plc-right-0 plc-h-full lg:plc-w-9/12 plc-w-full plc-bg-gray-100 plc-z-max plc-overflow-auto"
|
|
35559
|
-
}, this.state.activeDashboardLink === SUB_MENUS.PROFILE && /*#__PURE__*/React__default.createElement(ProfileMenu, null), this.state.activeDashboardLink === SUB_MENUS.QRCODE && /*#__PURE__*/React__default.createElement(QRCodeMenu, null), this.state.activeDashboardLink === SUB_MENUS.SAVED_ITEMS && /*#__PURE__*/React__default.createElement(SavedItemsMenu, null), this.state.activeDashboardLink === SUB_MENUS.PAYMENT_CARDS && /*#__PURE__*/React__default.createElement(PaymentCardsMenu, {
|
|
35672
|
+
}, this.state.activeDashboardLink === SUB_MENUS.PROFILE && /*#__PURE__*/React__default.createElement(ProfileMenu, null), this.state.activeDashboardLink === SUB_MENUS.QRCODE && /*#__PURE__*/React__default.createElement(QRCodeMenu, null), this.state.activeDashboardLink === SUB_MENUS.PASSWORDCHANGE && /*#__PURE__*/React__default.createElement(PasswordChangeMenu, null), this.state.activeDashboardLink === SUB_MENUS.SAVED_ITEMS && /*#__PURE__*/React__default.createElement(SavedItemsMenu, null), this.state.activeDashboardLink === SUB_MENUS.PAYMENT_CARDS && /*#__PURE__*/React__default.createElement(PaymentCardsMenu, {
|
|
35560
35673
|
displaySourceCreate: this.displaySourceCreate
|
|
35561
35674
|
}), this.state.activeDashboardLink === SUB_MENUS.ADDRESSES && /*#__PURE__*/React__default.createElement(AddressesMenu, {
|
|
35562
35675
|
displayAddressCreate: this.displayAddressCreate,
|
|
@@ -35617,7 +35730,7 @@ const DashboardWithTrans = withTranslation("dashboard")(Dashboard);
|
|
|
35617
35730
|
const DashboardOpenButton = () => {
|
|
35618
35731
|
const {
|
|
35619
35732
|
switchView
|
|
35620
|
-
} = usePelcro
|
|
35733
|
+
} = usePelcro();
|
|
35621
35734
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
35622
35735
|
className: "plc-fixed plc-left-4 plc-bottom-4 pelcro-open-dashboard-btn"
|
|
35623
35736
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
@@ -37375,7 +37488,7 @@ const ProfilePicChangeRemoveButton = ({
|
|
|
37375
37488
|
} = useTranslation("userEdit");
|
|
37376
37489
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
37377
37490
|
icon: /*#__PURE__*/React__default.createElement(SvgXIcon, {
|
|
37378
|
-
className: "plc-h-6 plc-w-6"
|
|
37491
|
+
className: "plc-h-6 plc-w-6 plc-fill-current"
|
|
37379
37492
|
}),
|
|
37380
37493
|
isLoading: isSubmitting,
|
|
37381
37494
|
onClick: () => {
|
|
@@ -37610,9 +37723,9 @@ const EmailVerifyModal = ({
|
|
|
37610
37723
|
} = usePelcro();
|
|
37611
37724
|
|
|
37612
37725
|
const onSuccess = res => {
|
|
37613
|
-
var
|
|
37726
|
+
var _otherProps$onSuccess;
|
|
37614
37727
|
|
|
37615
|
-
(
|
|
37728
|
+
otherProps === null || otherProps === void 0 ? void 0 : (_otherProps$onSuccess = otherProps.onSuccess) === null || _otherProps$onSuccess === void 0 ? void 0 : _otherProps$onSuccess.call(otherProps, res);
|
|
37616
37729
|
|
|
37617
37730
|
if (product) {
|
|
37618
37731
|
if (product.address_required) {
|
|
@@ -37728,7 +37841,7 @@ const VerifyLinkTokenContainer = ({
|
|
|
37728
37841
|
};
|
|
37729
37842
|
|
|
37730
37843
|
const VerifyLinkTokenLoader = () => {
|
|
37731
|
-
useEffect
|
|
37844
|
+
useEffect(() => {
|
|
37732
37845
|
dispatch({
|
|
37733
37846
|
type: LINK_TOKEN_VERIFY
|
|
37734
37847
|
});
|
|
@@ -37771,7 +37884,7 @@ function VerifyLinkTokenModal({
|
|
|
37771
37884
|
} = useTranslation("verifyLinkToken");
|
|
37772
37885
|
const {
|
|
37773
37886
|
resetView
|
|
37774
|
-
} = usePelcro
|
|
37887
|
+
} = usePelcro();
|
|
37775
37888
|
|
|
37776
37889
|
const onSuccess = res => {
|
|
37777
37890
|
var _props$onSuccess;
|
|
@@ -37820,7 +37933,7 @@ const InvoicePaymentModal = ({
|
|
|
37820
37933
|
}) => {
|
|
37821
37934
|
const {
|
|
37822
37935
|
switchView
|
|
37823
|
-
} = usePelcro
|
|
37936
|
+
} = usePelcro();
|
|
37824
37937
|
const {
|
|
37825
37938
|
t
|
|
37826
37939
|
} = useTranslation("payment");
|
|
@@ -37904,7 +38017,7 @@ const InvoiceDetailsDownloadButton = ({
|
|
|
37904
38017
|
} = useTranslation("invoiceDetails");
|
|
37905
38018
|
const {
|
|
37906
38019
|
invoice
|
|
37907
|
-
} = usePelcro
|
|
38020
|
+
} = usePelcro();
|
|
37908
38021
|
return /*#__PURE__*/React__default.createElement(Link, Object.assign({
|
|
37909
38022
|
className: `plc-px-6 plc-py-2 plc-uppercase plc-bg-transparent plc-text-primary-500 plc-border plc-border-primary-500 plc-rounded focus:plc-outline-none focus:plc-ring-2 focus:plc-ring-primary-300 plc-tracking-wider hover:plc-bg-primary-600 focus:plc-bg-primary-600 hover:plc-text-white focus:plc-text-white hover:plc-shadow-none plc-no-underline ${className}`,
|
|
37910
38023
|
id: "pelcro-download-invoice-link",
|
|
@@ -37941,7 +38054,7 @@ const InvoiceDetailsView = props => {
|
|
|
37941
38054
|
} = useTranslation("invoiceDetails");
|
|
37942
38055
|
const {
|
|
37943
38056
|
invoice
|
|
37944
|
-
} = usePelcro
|
|
38057
|
+
} = usePelcro();
|
|
37945
38058
|
const showPayButton = canPayInvoice(invoice);
|
|
37946
38059
|
const showDownloadButton = Boolean(invoice === null || invoice === void 0 ? void 0 : invoice.invoice_pdf);
|
|
37947
38060
|
const hasPlanDetails = Boolean(invoice.plan);
|
|
@@ -38005,7 +38118,7 @@ const InvoiceDetailsModal = ({
|
|
|
38005
38118
|
}) => {
|
|
38006
38119
|
const {
|
|
38007
38120
|
switchToPaymentView
|
|
38008
|
-
} = usePelcro
|
|
38121
|
+
} = usePelcro();
|
|
38009
38122
|
const {
|
|
38010
38123
|
t
|
|
38011
38124
|
} = useTranslation("invoiceDetails");
|
|
@@ -38064,4 +38177,4 @@ const QrCodeModal = ({
|
|
|
38064
38177
|
};
|
|
38065
38178
|
QrCodeModal.viewId = "qrcode";
|
|
38066
38179
|
|
|
38067
|
-
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateSetDefault, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateSetDefault, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, ModalHeader, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PasswordlessRequestContainer, PasswordlessRequestEmail, PasswordlessRequestModal, PasswordlessRequestView, PasswordlessRequestViewButton, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, QrCodeModal, QrCodeView, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCancelModal, SubscriptionCreateContainer, SubscriptionCreateFreePlanButton, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionManageMembersButton, SubscriptionManageMembersContainer, SubscriptionManageMembersEmails, SubscriptionManageMembersList, SubscriptionManageMembersModal, SubscriptionManageMembersView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, Tooltip, UserNameInput, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateTin, UserUpdateUsername, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro
|
|
38180
|
+
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateSetDefault, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateSetDefault, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, ModalHeader, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PasswordlessRequestContainer, PasswordlessRequestEmail, PasswordlessRequestModal, PasswordlessRequestView, PasswordlessRequestViewButton, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, QrCodeModal, QrCodeView, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCancelModal, SubscriptionCreateContainer, SubscriptionCreateFreePlanButton, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionManageMembersButton, SubscriptionManageMembersContainer, SubscriptionManageMembersEmails, SubscriptionManageMembersList, SubscriptionManageMembersModal, SubscriptionManageMembersView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, Tooltip, UserNameInput, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateTin, UserUpdateUsername, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
|