@documenso/embed-react 0.0.1

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.
@@ -0,0 +1,24 @@
1
+ import * as React from "react";
2
+ export type EmbedDirectTemplateProps = {
3
+ className?: string;
4
+ host?: string;
5
+ token: string;
6
+ externalId?: string;
7
+ css?: string | undefined;
8
+ cssVars?: Record<string, string> | undefined;
9
+ email?: string | undefined;
10
+ lockEmail?: boolean | undefined;
11
+ name?: string | undefined;
12
+ lockName?: boolean | undefined;
13
+ onDocumentReady?: () => void;
14
+ onDocumentCompleted?: (data: {
15
+ token: string;
16
+ documentId: number;
17
+ recipientId: number;
18
+ }) => void;
19
+ onDocumentError?: (error: string) => void;
20
+ onFieldSigned?: () => void;
21
+ onFieldUnsigned?: () => void;
22
+ };
23
+ declare function EmbedDirectTemplate(props: EmbedDirectTemplateProps): React.JSX.Element;
24
+ export default EmbedDirectTemplate;
@@ -0,0 +1,2 @@
1
+ export { default as EmbedDirectTemplate } from './direct-template';
2
+ export { default as EmbedSignDocument } from './sign-document';
@@ -0,0 +1,2 @@
1
+ export { default as EmbedDirectTemplate } from './direct-template';
2
+ export { default as EmbedSignDocument } from './sign-document';
package/dist/index.js ADDED
@@ -0,0 +1,68 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Vr={exports:{}},Je={},Yr={exports:{}},g={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var pt;function Wt(){if(pt)return g;pt=1;var l=Symbol.for("react.element"),v=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),U=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),X=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),K=Symbol.iterator;function ae(n){return n===null||typeof n!="object"?null:(n=K&&n[K]||n["@@iterator"],typeof n=="function"?n:null)}var re={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fe=Object.assign,Fe={};function ue(n,i,_){this.props=n,this.context=i,this.refs=Fe,this.updater=_||re}ue.prototype.isReactComponent={},ue.prototype.setState=function(n,i){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,i,"setState")},ue.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function ie(){}ie.prototype=ue.prototype;function F(n,i,_){this.props=n,this.context=i,this.refs=Fe,this.updater=_||re}var ge=F.prototype=new ie;ge.constructor=F,fe(ge,ue.prototype),ge.isPureReactComponent=!0;var se=Array.isArray,V=Object.prototype.hasOwnProperty,ee={current:null},le={key:!0,ref:!0,__self:!0,__source:!0};function pe(n,i,_){var E,w={},A=null,P=null;if(i!=null)for(E in i.ref!==void 0&&(P=i.ref),i.key!==void 0&&(A=""+i.key),i)V.call(i,E)&&!le.hasOwnProperty(E)&&(w[E]=i[E]);var O=arguments.length-2;if(O===1)w.children=_;else if(1<O){for(var S=Array(O),Y=0;Y<O;Y++)S[Y]=arguments[Y+2];w.children=S}if(n&&n.defaultProps)for(E in O=n.defaultProps,O)w[E]===void 0&&(w[E]=O[E]);return{$$typeof:l,type:n,key:A,ref:P,props:w,_owner:ee.current}}function Se(n,i){return{$$typeof:l,type:n.type,key:i,ref:n.ref,props:n.props,_owner:n._owner}}function Te(n){return typeof n=="object"&&n!==null&&n.$$typeof===l}function Be(n){var i={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(_){return i[_]})}var Oe=/\/+/g;function Q(n,i){return typeof n=="object"&&n!==null&&n.key!=null?Be(""+n.key):i.toString(36)}function te(n,i,_,E,w){var A=typeof n;(A==="undefined"||A==="boolean")&&(n=null);var P=!1;if(n===null)P=!0;else switch(A){case"string":case"number":P=!0;break;case"object":switch(n.$$typeof){case l:case v:P=!0}}if(P)return P=n,w=w(P),n=E===""?"."+Q(P,0):E,se(w)?(_="",n!=null&&(_=n.replace(Oe,"$&/")+"/"),te(w,i,_,"",function(Y){return Y})):w!=null&&(Te(w)&&(w=Se(w,_+(!w.key||P&&P.key===w.key?"":(""+w.key).replace(Oe,"$&/")+"/")+n)),i.push(w)),1;if(P=0,E=E===""?".":E+":",se(n))for(var O=0;O<n.length;O++){A=n[O];var S=E+Q(A,O);P+=te(A,i,_,S,w)}else if(S=ae(n),typeof S=="function")for(n=S.call(n),O=0;!(A=n.next()).done;)A=A.value,S=E+Q(A,O++),P+=te(A,i,_,S,w);else if(A==="object")throw i=String(n),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.");return P}function H(n,i,_){if(n==null)return n;var E=[],w=0;return te(n,E,"","",function(A){return i.call(_,A,w++)}),E}function ce(n){if(n._status===-1){var i=n._result;i=i(),i.then(function(_){(n._status===0||n._status===-1)&&(n._status=1,n._result=_)},function(_){(n._status===0||n._status===-1)&&(n._status=2,n._result=_)}),n._status===-1&&(n._status=0,n._result=i)}if(n._status===1)return n._result.default;throw n._result}var d={current:null},de={transition:null},ke={ReactCurrentDispatcher:d,ReactCurrentBatchConfig:de,ReactCurrentOwner:ee};function ye(){throw Error("act(...) is not supported in production builds of React.")}return g.Children={map:H,forEach:function(n,i,_){H(n,function(){i.apply(this,arguments)},_)},count:function(n){var i=0;return H(n,function(){i++}),i},toArray:function(n){return H(n,function(i){return i})||[]},only:function(n){if(!Te(n))throw Error("React.Children.only expected to receive a single React element child.");return n}},g.Component=ue,g.Fragment=oe,g.Profiler=$,g.PureComponent=F,g.StrictMode=z,g.Suspense=k,g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ke,g.act=ye,g.cloneElement=function(n,i,_){if(n==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var E=fe({},n.props),w=n.key,A=n.ref,P=n._owner;if(i!=null){if(i.ref!==void 0&&(A=i.ref,P=ee.current),i.key!==void 0&&(w=""+i.key),n.type&&n.type.defaultProps)var O=n.type.defaultProps;for(S in i)V.call(i,S)&&!le.hasOwnProperty(S)&&(E[S]=i[S]===void 0&&O!==void 0?O[S]:i[S])}var S=arguments.length-2;if(S===1)E.children=_;else if(1<S){O=Array(S);for(var Y=0;Y<S;Y++)O[Y]=arguments[Y+2];E.children=O}return{$$typeof:l,type:n.type,key:w,ref:A,props:E,_owner:P}},g.createContext=function(n){return n={$$typeof:U,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},n.Provider={$$typeof:W,_context:n},n.Consumer=n},g.createElement=pe,g.createFactory=function(n){var i=pe.bind(null,n);return i.type=n,i},g.createRef=function(){return{current:null}},g.forwardRef=function(n){return{$$typeof:q,render:n}},g.isValidElement=Te,g.lazy=function(n){return{$$typeof:D,_payload:{_status:-1,_result:n},_init:ce}},g.memo=function(n,i){return{$$typeof:X,type:n,compare:i===void 0?null:i}},g.startTransition=function(n){var i=de.transition;de.transition={};try{n()}finally{de.transition=i}},g.unstable_act=ye,g.useCallback=function(n,i){return d.current.useCallback(n,i)},g.useContext=function(n){return d.current.useContext(n)},g.useDebugValue=function(){},g.useDeferredValue=function(n){return d.current.useDeferredValue(n)},g.useEffect=function(n,i){return d.current.useEffect(n,i)},g.useId=function(){return d.current.useId()},g.useImperativeHandle=function(n,i,_){return d.current.useImperativeHandle(n,i,_)},g.useInsertionEffect=function(n,i){return d.current.useInsertionEffect(n,i)},g.useLayoutEffect=function(n,i){return d.current.useLayoutEffect(n,i)},g.useMemo=function(n,i){return d.current.useMemo(n,i)},g.useReducer=function(n,i,_){return d.current.useReducer(n,i,_)},g.useRef=function(n){return d.current.useRef(n)},g.useState=function(n){return d.current.useState(n)},g.useSyncExternalStore=function(n,i,_){return d.current.useSyncExternalStore(n,i,_)},g.useTransition=function(){return d.current.useTransition()},g.version="18.3.1",g}var Qe={exports:{}};/**
10
+ * @license React
11
+ * react.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */Qe.exports;var yt;function Ut(){return yt||(yt=1,function(l,v){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var oe="18.3.1",z=Symbol.for("react.element"),$=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),X=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),Fe=Symbol.for("react.offscreen"),ue=Symbol.iterator,ie="@@iterator";function F(e){if(e===null||typeof e!="object")return null;var r=ue&&e[ue]||e[ie];return typeof r=="function"?r:null}var ge={current:null},se={transition:null},V={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},ee={current:null},le={},pe=null;function Se(e){pe=e}le.setExtraStackFrame=function(e){pe=e},le.getCurrentStack=null,le.getStackAddendum=function(){var e="";pe&&(e+=pe);var r=le.getCurrentStack;return r&&(e+=r()||""),e};var Te=!1,Be=!1,Oe=!1,Q=!1,te=!1,H={ReactCurrentDispatcher:ge,ReactCurrentBatchConfig:se,ReactCurrentOwner:ee};H.ReactDebugCurrentFrame=le,H.ReactCurrentActQueue=V;function ce(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];de("warn",e,a)}}function d(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];de("error",e,a)}}function de(e,r,a){{var o=H.ReactDebugCurrentFrame,c=o.getStackAddendum();c!==""&&(r+="%s",a=a.concat([c]));var p=a.map(function(f){return String(f)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var ke={};function ye(e,r){{var a=e.constructor,o=a&&(a.displayName||a.name)||"ReactClass",c=o+"."+r;if(ke[c])return;d("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",r,o),ke[c]=!0}}var n={isMounted:function(e){return!1},enqueueForceUpdate:function(e,r,a){ye(e,"forceUpdate")},enqueueReplaceState:function(e,r,a,o){ye(e,"replaceState")},enqueueSetState:function(e,r,a,o){ye(e,"setState")}},i=Object.assign,_={};Object.freeze(_);function E(e,r,a){this.props=e,this.context=r,this.refs=_,this.updater=a||n}E.prototype.isReactComponent={},E.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var w={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},A=function(e,r){Object.defineProperty(E.prototype,e,{get:function(){ce("%s(...) is deprecated in plain JavaScript React classes. %s",r[0],r[1])}})};for(var P in w)w.hasOwnProperty(P)&&A(P,w[P])}function O(){}O.prototype=E.prototype;function S(e,r,a){this.props=e,this.context=r,this.refs=_,this.updater=a||n}var Y=S.prototype=new O;Y.constructor=S,i(Y,E.prototype),Y.isPureReactComponent=!0;function _r(){var e={current:null};return Object.seal(e),e}var Ze=Array.isArray;function Le(e){return Ze(e)}function br(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Ne(e){try{return _e(e),!1}catch{return!0}}function _e(e){return""+e}function Pe(e){if(Ne(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",br(e)),_e(e)}function er(e,r,a){var o=e.displayName;if(o)return o;var c=r.displayName||r.name||"";return c!==""?a+"("+c+")":a}function je(e){return e.displayName||"Context"}function ve(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case $:return"Portal";case q:return"Profiler";case U:return"StrictMode";case K:return"Suspense";case ae:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X:var r=e;return je(r)+".Consumer";case k:var a=e;return je(a._context)+".Provider";case D:return er(e,e.render,"ForwardRef");case re:var o=e.displayName||null;return o!==null?o:ve(e.type)||"Memo";case fe:{var c=e,p=c._payload,f=c._init;try{return ve(f(p))}catch{return null}}}return null}var Ae=Object.prototype.hasOwnProperty,Me={key:!0,ref:!0,__self:!0,__source:!0},rr,tr,We;We={};function ze(e){if(Ae.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function be(e){if(Ae.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Er(e,r){var a=function(){rr||(rr=!0,d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}function nr(e,r){var a=function(){tr||(tr=!0,d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}function ar(e){if(typeof e.ref=="string"&&ee.current&&e.__self&&ee.current.stateNode!==e.__self){var r=ve(ee.current.type);We[r]||(d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r,e.ref),We[r]=!0)}}var De=function(e,r,a,o,c,p,f){var m={$$typeof:z,type:e,key:r,ref:a,props:f,_owner:p};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:c}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function Rr(e,r,a){var o,c={},p=null,f=null,m=null,R=null;if(r!=null){ze(r)&&(f=r.ref,ar(r)),be(r)&&(Pe(r.key),p=""+r.key),m=r.__self===void 0?null:r.__self,R=r.__source===void 0?null:r.__source;for(o in r)Ae.call(r,o)&&!Me.hasOwnProperty(o)&&(c[o]=r[o])}var j=arguments.length-2;if(j===1)c.children=a;else if(j>1){for(var x=Array(j),I=0;I<j;I++)x[I]=arguments[I+2];Object.freeze&&Object.freeze(x),c.children=x}if(e&&e.defaultProps){var N=e.defaultProps;for(o in N)c[o]===void 0&&(c[o]=N[o])}if(p||f){var B=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&Er(c,B),f&&nr(c,B)}return De(e,p,f,m,R,ee.current,c)}function wr(e,r){var a=De(e.type,r,e.ref,e._self,e._source,e._owner,e.props);return a}function Cr(e,r,a){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o,c=i({},e.props),p=e.key,f=e.ref,m=e._self,R=e._source,j=e._owner;if(r!=null){ze(r)&&(f=r.ref,j=ee.current),be(r)&&(Pe(r.key),p=""+r.key);var x;e.type&&e.type.defaultProps&&(x=e.type.defaultProps);for(o in r)Ae.call(r,o)&&!Me.hasOwnProperty(o)&&(r[o]===void 0&&x!==void 0?c[o]=x[o]:c[o]=r[o])}var I=arguments.length-2;if(I===1)c.children=a;else if(I>1){for(var N=Array(I),B=0;B<I;B++)N[B]=arguments[B+2];c.children=N}return De(e.type,p,f,m,R,j,c)}function Ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===z}var or=".",Sr=":";function Tr(e){var r=/[=:]/g,a={"=":"=0",":":"=2"},o=e.replace(r,function(c){return a[c]});return"$"+o}var Ue=!1,ur=/\/+/g;function me(e){return e.replace(ur,"$&/")}function xe(e,r){return typeof e=="object"&&e!==null&&e.key!=null?(Pe(e.key),Tr(""+e.key)):r.toString(36)}function Re(e,r,a,o,c){var p=typeof e;(p==="undefined"||p==="boolean")&&(e=null);var f=!1;if(e===null)f=!0;else switch(p){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case z:case $:f=!0}}if(f){var m=e,R=c(m),j=o===""?or+xe(m,0):o;if(Le(R)){var x="";j!=null&&(x=me(j)+"/"),Re(R,r,x,"",function(Mt){return Mt})}else R!=null&&(Ee(R)&&(R.key&&(!m||m.key!==R.key)&&Pe(R.key),R=wr(R,a+(R.key&&(!m||m.key!==R.key)?me(""+R.key)+"/":"")+j)),r.push(R));return 1}var I,N,B=0,J=o===""?or:o+Sr;if(Le(e))for(var gr=0;gr<e.length;gr++)I=e[gr],N=J+xe(I,gr),B+=Re(I,r,a,N,c);else{var Ur=F(e);if(typeof Ur=="function"){var lt=e;Ur===lt.entries&&(Ue||ce("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ue=!0);for(var Lt=Ur.call(lt),dt,Nt=0;!(dt=Lt.next()).done;)I=dt.value,N=J+xe(I,Nt++),B+=Re(I,r,a,N,c)}else if(p==="object"){var vt=String(e);throw new Error("Objects are not valid as a React child (found: "+(vt==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":vt)+"). If you meant to render a collection of children, use an array instead.")}}return B}function Ie(e,r,a){if(e==null)return e;var o=[],c=0;return Re(e,o,"","",function(p){return r.call(a,p,c++)}),o}function Or(e){var r=0;return Ie(e,function(){r++}),r}function ir(e,r,a){Ie(e,function(){r.apply(this,arguments)},a)}function kr(e){return Ie(e,function(r){return r})||[]}function sr(e){if(!Ee(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function cr(e){var r={$$typeof:X,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};r.Provider={$$typeof:k,_context:r};var a=!1,o=!1,c=!1;{var p={$$typeof:X,_context:r};Object.defineProperties(p,{Provider:{get:function(){return o||(o=!0,d("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(f){r.Provider=f}},_currentValue:{get:function(){return r._currentValue},set:function(f){r._currentValue=f}},_currentValue2:{get:function(){return r._currentValue2},set:function(f){r._currentValue2=f}},_threadCount:{get:function(){return r._threadCount},set:function(f){r._threadCount=f}},Consumer:{get:function(){return a||(a=!0,d("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(f){c||(ce("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",f),c=!0)}}}),r.Consumer=p}return r._currentRenderer=null,r._currentRenderer2=null,r}var $e=-1,qe=0,Ke=1,fr=2;function Pr(e){if(e._status===$e){var r=e._result,a=r();if(a.then(function(p){if(e._status===qe||e._status===$e){var f=e;f._status=Ke,f._result=p}},function(p){if(e._status===qe||e._status===$e){var f=e;f._status=fr,f._result=p}}),e._status===$e){var o=e;o._status=qe,o._result=a}}if(e._status===Ke){var c=e._result;return c===void 0&&d(`lazy: Expected the result of a dynamic import() call. Instead received: %s
18
+
19
+ Your code should look like:
20
+ const MyComponent = lazy(() => import('./MyComponent'))
21
+
22
+ Did you accidentally put curly braces around the import?`,c),"default"in c||d(`lazy: Expected the result of a dynamic import() call. Instead received: %s
23
+
24
+ Your code should look like:
25
+ const MyComponent = lazy(() => import('./MyComponent'))`,c),c.default}else throw e._result}function jr(e){var r={_status:$e,_result:e},a={$$typeof:fe,_payload:r,_init:Pr};{var o,c;Object.defineProperties(a,{defaultProps:{configurable:!0,get:function(){return o},set:function(p){d("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),o=p,Object.defineProperty(a,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return c},set:function(p){d("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),c=p,Object.defineProperty(a,"propTypes",{enumerable:!0})}}})}return a}function Ar(e){e!=null&&e.$$typeof===re?d("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?d("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&d("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&d("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var r={$$typeof:D,render:e};{var a;Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return a},set:function(o){a=o,!e.name&&!e.displayName&&(e.displayName=o)}})}return r}var lr;lr=Symbol.for("react.module.reference");function t(e){return!!(typeof e=="string"||typeof e=="function"||e===W||e===q||te||e===U||e===K||e===ae||Q||e===Fe||Te||Be||Oe||typeof e=="object"&&e!==null&&(e.$$typeof===fe||e.$$typeof===re||e.$$typeof===k||e.$$typeof===X||e.$$typeof===D||e.$$typeof===lr||e.getModuleId!==void 0))}function u(e,r){t(e)||d("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e);var a={$$typeof:re,type:e,compare:r===void 0?null:r};{var o;Object.defineProperty(a,"displayName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(c){o=c,!e.name&&!e.displayName&&(e.displayName=c)}})}return a}function s(){var e=ge.current;return e===null&&d(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
26
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
27
+ 2. You might be breaking the Rules of Hooks
28
+ 3. You might have more than one copy of React in the same app
29
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function y(e){var r=s();if(e._context!==void 0){var a=e._context;a.Consumer===e?d("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):a.Provider===e&&d("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e)}function C(e){var r=s();return r.useState(e)}function T(e,r,a){var o=s();return o.useReducer(e,r,a)}function b(e){var r=s();return r.useRef(e)}function h(e,r){var a=s();return a.useEffect(e,r)}function G(e,r){var a=s();return a.useInsertionEffect(e,r)}function L(e,r){var a=s();return a.useLayoutEffect(e,r)}function M(e,r){var a=s();return a.useCallback(e,r)}function ne(e,r){var a=s();return a.useMemo(e,r)}function we(e,r,a){var o=s();return o.useImperativeHandle(e,r,a)}function he(e,r){{var a=s();return a.useDebugValue(e,r)}}function Z(){var e=s();return e.useTransition()}function He(e){var r=s();return r.useDeferredValue(e)}function Dr(){var e=s();return e.useId()}function xr(e,r,a){var o=s();return o.useSyncExternalStore(e,r,a)}var Ge=0,Br,zr,qr,Kr,Hr,Gr,Jr;function Xr(){}Xr.__reactDisabledLog=!0;function _t(){{if(Ge===0){Br=console.log,zr=console.info,qr=console.warn,Kr=console.error,Hr=console.group,Gr=console.groupCollapsed,Jr=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Xr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ge++}}function bt(){{if(Ge--,Ge===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:i({},e,{value:Br}),info:i({},e,{value:zr}),warn:i({},e,{value:qr}),error:i({},e,{value:Kr}),group:i({},e,{value:Hr}),groupCollapsed:i({},e,{value:Gr}),groupEnd:i({},e,{value:Jr})})}Ge<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ir=H.ReactCurrentDispatcher,$r;function dr(e,r,a){{if($r===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);$r=o&&o[1]||""}return`
30
+ `+$r+e}}var Fr=!1,vr;{var Et=typeof WeakMap=="function"?WeakMap:Map;vr=new Et}function Qr(e,r){if(!e||Fr)return"";{var a=vr.get(e);if(a!==void 0)return a}var o;Fr=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=Ir.current,Ir.current=null,_t();try{if(r){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(J){o=J}Reflect.construct(e,[],f)}else{try{f.call()}catch(J){o=J}e.call(f.prototype)}}else{try{throw Error()}catch(J){o=J}e()}}catch(J){if(J&&o&&typeof J.stack=="string"){for(var m=J.stack.split(`
31
+ `),R=o.stack.split(`
32
+ `),j=m.length-1,x=R.length-1;j>=1&&x>=0&&m[j]!==R[x];)x--;for(;j>=1&&x>=0;j--,x--)if(m[j]!==R[x]){if(j!==1||x!==1)do if(j--,x--,x<0||m[j]!==R[x]){var I=`
33
+ `+m[j].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),typeof e=="function"&&vr.set(e,I),I}while(j>=1&&x>=0);break}}}finally{Fr=!1,Ir.current=p,bt(),Error.prepareStackTrace=c}var N=e?e.displayName||e.name:"",B=N?dr(N):"";return typeof e=="function"&&vr.set(e,B),B}function Rt(e,r,a){return Qr(e,!1)}function wt(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function pr(e,r,a){if(e==null)return"";if(typeof e=="function")return Qr(e,wt(e));if(typeof e=="string")return dr(e);switch(e){case K:return dr("Suspense");case ae:return dr("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case D:return Rt(e.render);case re:return pr(e.type,r,a);case fe:{var o=e,c=o._payload,p=o._init;try{return pr(p(c),r,a)}catch{}}}return""}var Zr={},et=H.ReactDebugCurrentFrame;function yr(e){if(e){var r=e._owner,a=pr(e.type,e._source,r?r.type:null);et.setExtraStackFrame(a)}else et.setExtraStackFrame(null)}function Ct(e,r,a,o,c){{var p=Function.call.bind(Ae);for(var f in e)if(p(e,f)){var m=void 0;try{if(typeof e[f]!="function"){var R=Error((o||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}m=e[f](r,f,o,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){m=j}m&&!(m instanceof Error)&&(yr(c),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",a,f,typeof m),yr(null)),m instanceof Error&&!(m.message in Zr)&&(Zr[m.message]=!0,yr(c),d("Failed %s type: %s",a,m.message),yr(null))}}}function Ve(e){if(e){var r=e._owner,a=pr(e.type,e._source,r?r.type:null);Se(a)}else Se(null)}var Lr;Lr=!1;function rt(){if(ee.current){var e=ve(ee.current.type);if(e)return`
34
+
35
+ Check the render method of \``+e+"`."}return""}function St(e){if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return`
36
+
37
+ Check your code at `+r+":"+a+"."}return""}function Tt(e){return e!=null?St(e.__source):""}var tt={};function Ot(e){var r=rt();if(!r){var a=typeof e=="string"?e:e.displayName||e.name;a&&(r=`
38
+
39
+ Check the top-level render call using <`+a+">.")}return r}function nt(e,r){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var a=Ot(r);if(!tt[a]){tt[a]=!0;var o="";e&&e._owner&&e._owner!==ee.current&&(o=" It was passed a child from "+ve(e._owner.type)+"."),Ve(e),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,o),Ve(null)}}}function at(e,r){if(typeof e=="object"){if(Le(e))for(var a=0;a<e.length;a++){var o=e[a];Ee(o)&&nt(o,r)}else if(Ee(e))e._store&&(e._store.validated=!0);else if(e){var c=F(e);if(typeof c=="function"&&c!==e.entries)for(var p=c.call(e),f;!(f=p.next()).done;)Ee(f.value)&&nt(f.value,r)}}}function ot(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===D||r.$$typeof===re))a=r.propTypes;else return;if(a){var o=ve(r);Ct(a,e.props,"prop",o,e)}else if(r.PropTypes!==void 0&&!Lr){Lr=!0;var c=ve(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",c||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function kt(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var o=r[a];if(o!=="children"&&o!=="key"){Ve(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),Ve(null);break}}e.ref!==null&&(Ve(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),Ve(null))}}function ut(e,r,a){var o=t(e);if(!o){var c="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var p=Tt(r);p?c+=p:c+=rt();var f;e===null?f="null":Le(e)?f="array":e!==void 0&&e.$$typeof===z?(f="<"+(ve(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,d("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,c)}var m=Rr.apply(this,arguments);if(m==null)return m;if(o)for(var R=2;R<arguments.length;R++)at(arguments[R],e);return e===W?kt(m):ot(m),m}var it=!1;function Pt(e){var r=ut.bind(null,e);return r.type=e,it||(it=!0,ce("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(r,"type",{enumerable:!1,get:function(){return ce("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),r}function jt(e,r,a){for(var o=Cr.apply(this,arguments),c=2;c<arguments.length;c++)at(arguments[c],o.type);return ot(o),o}function At(e,r){var a=se.transition;se.transition={};var o=se.transition;se.transition._updatedFibers=new Set;try{e()}finally{if(se.transition=a,a===null&&o._updatedFibers){var c=o._updatedFibers.size;c>10&&ce("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),o._updatedFibers.clear()}}}var st=!1,mr=null;function Dt(e){if(mr===null)try{var r=("require"+Math.random()).slice(0,7),a=l&&l[r];mr=a.call(l,"timers").setImmediate}catch{mr=function(c){st===!1&&(st=!0,typeof MessageChannel>"u"&&d("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var p=new MessageChannel;p.port1.onmessage=c,p.port2.postMessage(void 0)}}return mr(e)}var Ye=0,ct=!1;function ft(e){{var r=Ye;Ye++,V.current===null&&(V.current=[]);var a=V.isBatchingLegacy,o;try{if(V.isBatchingLegacy=!0,o=e(),!a&&V.didScheduleLegacyUpdate){var c=V.current;c!==null&&(V.didScheduleLegacyUpdate=!1,Wr(c))}}catch(N){throw hr(r),N}finally{V.isBatchingLegacy=a}if(o!==null&&typeof o=="object"&&typeof o.then=="function"){var p=o,f=!1,m={then:function(N,B){f=!0,p.then(function(J){hr(r),Ye===0?Nr(J,N,B):N(J)},function(J){hr(r),B(J)})}};return!ct&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){f||(ct=!0,d("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),m}else{var R=o;if(hr(r),Ye===0){var j=V.current;j!==null&&(Wr(j),V.current=null);var x={then:function(N,B){V.current===null?(V.current=[],Nr(R,N,B)):N(R)}};return x}else{var I={then:function(N,B){N(R)}};return I}}}}function hr(e){e!==Ye-1&&d("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ye=e}function Nr(e,r,a){{var o=V.current;if(o!==null)try{Wr(o),Dt(function(){o.length===0?(V.current=null,r(e)):Nr(e,r,a)})}catch(c){a(c)}else r(e)}}var Mr=!1;function Wr(e){if(!Mr){Mr=!0;var r=0;try{for(;r<e.length;r++){var a=e[r];do a=a(!0);while(a!==null)}e.length=0}catch(o){throw e=e.slice(r+1),o}finally{Mr=!1}}}var xt=ut,It=jt,$t=Pt,Ft={map:Ie,forEach:ir,count:Or,toArray:kr,only:sr};v.Children=Ft,v.Component=E,v.Fragment=W,v.Profiler=q,v.PureComponent=S,v.StrictMode=U,v.Suspense=K,v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,v.act=ft,v.cloneElement=It,v.createContext=cr,v.createElement=xt,v.createFactory=$t,v.createRef=_r,v.forwardRef=Ar,v.isValidElement=Ee,v.lazy=jr,v.memo=u,v.startTransition=At,v.unstable_act=ft,v.useCallback=M,v.useContext=y,v.useDebugValue=he,v.useDeferredValue=He,v.useEffect=h,v.useId=Dr,v.useImperativeHandle=we,v.useInsertionEffect=G,v.useLayoutEffect=L,v.useMemo=ne,v.useReducer=T,v.useRef=b,v.useState=C,v.useSyncExternalStore=xr,v.useTransition=Z,v.version=oe,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Qe,Qe.exports)),Qe.exports}process.env.NODE_ENV==="production"?Yr.exports=Wt():Yr.exports=Ut();var Ce=Yr.exports;/**
40
+ * @license React
41
+ * react-jsx-runtime.production.min.js
42
+ *
43
+ * Copyright (c) Facebook, Inc. and its affiliates.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE file in the root directory of this source tree.
47
+ */var mt;function Vt(){if(mt)return Je;mt=1;var l=Ce,v=Symbol.for("react.element"),oe=Symbol.for("react.fragment"),z=Object.prototype.hasOwnProperty,$=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,W={key:!0,ref:!0,__self:!0,__source:!0};function U(q,k,X){var D,K={},ae=null,re=null;X!==void 0&&(ae=""+X),k.key!==void 0&&(ae=""+k.key),k.ref!==void 0&&(re=k.ref);for(D in k)z.call(k,D)&&!W.hasOwnProperty(D)&&(K[D]=k[D]);if(q&&q.defaultProps)for(D in k=q.defaultProps,k)K[D]===void 0&&(K[D]=k[D]);return{$$typeof:v,type:q,key:ae,ref:re,props:K,_owner:$.current}}return Je.Fragment=oe,Je.jsx=U,Je.jsxs=U,Je}var Xe={};/**
48
+ * @license React
49
+ * react-jsx-runtime.development.js
50
+ *
51
+ * Copyright (c) Facebook, Inc. and its affiliates.
52
+ *
53
+ * This source code is licensed under the MIT license found in the
54
+ * LICENSE file in the root directory of this source tree.
55
+ */var ht;function Yt(){return ht||(ht=1,process.env.NODE_ENV!=="production"&&function(){var l=Ce,v=Symbol.for("react.element"),oe=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),q=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),re=Symbol.for("react.offscreen"),fe=Symbol.iterator,Fe="@@iterator";function ue(t){if(t===null||typeof t!="object")return null;var u=fe&&t[fe]||t[Fe];return typeof u=="function"?u:null}var ie=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function F(t){{for(var u=arguments.length,s=new Array(u>1?u-1:0),y=1;y<u;y++)s[y-1]=arguments[y];ge("error",t,s)}}function ge(t,u,s){{var y=ie.ReactDebugCurrentFrame,C=y.getStackAddendum();C!==""&&(u+="%s",s=s.concat([C]));var T=s.map(function(b){return String(b)});T.unshift("Warning: "+u),Function.prototype.apply.call(console[t],console,T)}}var se=!1,V=!1,ee=!1,le=!1,pe=!1,Se;Se=Symbol.for("react.module.reference");function Te(t){return!!(typeof t=="string"||typeof t=="function"||t===z||t===W||pe||t===$||t===X||t===D||le||t===re||se||V||ee||typeof t=="object"&&t!==null&&(t.$$typeof===ae||t.$$typeof===K||t.$$typeof===U||t.$$typeof===q||t.$$typeof===k||t.$$typeof===Se||t.getModuleId!==void 0))}function Be(t,u,s){var y=t.displayName;if(y)return y;var C=u.displayName||u.name||"";return C!==""?s+"("+C+")":s}function Oe(t){return t.displayName||"Context"}function Q(t){if(t==null)return null;if(typeof t.tag=="number"&&F("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case z:return"Fragment";case oe:return"Portal";case W:return"Profiler";case $:return"StrictMode";case X:return"Suspense";case D:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case q:var u=t;return Oe(u)+".Consumer";case U:var s=t;return Oe(s._context)+".Provider";case k:return Be(t,t.render,"ForwardRef");case K:var y=t.displayName||null;return y!==null?y:Q(t.type)||"Memo";case ae:{var C=t,T=C._payload,b=C._init;try{return Q(b(T))}catch{return null}}}return null}var te=Object.assign,H=0,ce,d,de,ke,ye,n,i;function _(){}_.__reactDisabledLog=!0;function E(){{if(H===0){ce=console.log,d=console.info,de=console.warn,ke=console.error,ye=console.group,n=console.groupCollapsed,i=console.groupEnd;var t={configurable:!0,enumerable:!0,value:_,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}H++}}function w(){{if(H--,H===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:te({},t,{value:ce}),info:te({},t,{value:d}),warn:te({},t,{value:de}),error:te({},t,{value:ke}),group:te({},t,{value:ye}),groupCollapsed:te({},t,{value:n}),groupEnd:te({},t,{value:i})})}H<0&&F("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var A=ie.ReactCurrentDispatcher,P;function O(t,u,s){{if(P===void 0)try{throw Error()}catch(C){var y=C.stack.trim().match(/\n( *(at )?)/);P=y&&y[1]||""}return`
56
+ `+P+t}}var S=!1,Y;{var _r=typeof WeakMap=="function"?WeakMap:Map;Y=new _r}function Ze(t,u){if(!t||S)return"";{var s=Y.get(t);if(s!==void 0)return s}var y;S=!0;var C=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var T;T=A.current,A.current=null,E();try{if(u){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(Z){y=Z}Reflect.construct(t,[],b)}else{try{b.call()}catch(Z){y=Z}t.call(b.prototype)}}else{try{throw Error()}catch(Z){y=Z}t()}}catch(Z){if(Z&&y&&typeof Z.stack=="string"){for(var h=Z.stack.split(`
57
+ `),G=y.stack.split(`
58
+ `),L=h.length-1,M=G.length-1;L>=1&&M>=0&&h[L]!==G[M];)M--;for(;L>=1&&M>=0;L--,M--)if(h[L]!==G[M]){if(L!==1||M!==1)do if(L--,M--,M<0||h[L]!==G[M]){var ne=`
59
+ `+h[L].replace(" at new "," at ");return t.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",t.displayName)),typeof t=="function"&&Y.set(t,ne),ne}while(L>=1&&M>=0);break}}}finally{S=!1,A.current=T,w(),Error.prepareStackTrace=C}var we=t?t.displayName||t.name:"",he=we?O(we):"";return typeof t=="function"&&Y.set(t,he),he}function Le(t,u,s){return Ze(t,!1)}function br(t){var u=t.prototype;return!!(u&&u.isReactComponent)}function Ne(t,u,s){if(t==null)return"";if(typeof t=="function")return Ze(t,br(t));if(typeof t=="string")return O(t);switch(t){case X:return O("Suspense");case D:return O("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case k:return Le(t.render);case K:return Ne(t.type,u,s);case ae:{var y=t,C=y._payload,T=y._init;try{return Ne(T(C),u,s)}catch{}}}return""}var _e=Object.prototype.hasOwnProperty,Pe={},er=ie.ReactDebugCurrentFrame;function je(t){if(t){var u=t._owner,s=Ne(t.type,t._source,u?u.type:null);er.setExtraStackFrame(s)}else er.setExtraStackFrame(null)}function ve(t,u,s,y,C){{var T=Function.call.bind(_e);for(var b in t)if(T(t,b)){var h=void 0;try{if(typeof t[b]!="function"){var G=Error((y||"React class")+": "+s+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw G.name="Invariant Violation",G}h=t[b](u,b,y,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(L){h=L}h&&!(h instanceof Error)&&(je(C),F("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",y||"React class",s,b,typeof h),je(null)),h instanceof Error&&!(h.message in Pe)&&(Pe[h.message]=!0,je(C),F("Failed %s type: %s",s,h.message),je(null))}}}var Ae=Array.isArray;function Me(t){return Ae(t)}function rr(t){{var u=typeof Symbol=="function"&&Symbol.toStringTag,s=u&&t[Symbol.toStringTag]||t.constructor.name||"Object";return s}}function tr(t){try{return We(t),!1}catch{return!0}}function We(t){return""+t}function ze(t){if(tr(t))return F("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",rr(t)),We(t)}var be=ie.ReactCurrentOwner,Er={key:!0,ref:!0,__self:!0,__source:!0},nr,ar,De;De={};function Rr(t){if(_e.call(t,"ref")){var u=Object.getOwnPropertyDescriptor(t,"ref").get;if(u&&u.isReactWarning)return!1}return t.ref!==void 0}function wr(t){if(_e.call(t,"key")){var u=Object.getOwnPropertyDescriptor(t,"key").get;if(u&&u.isReactWarning)return!1}return t.key!==void 0}function Cr(t,u){if(typeof t.ref=="string"&&be.current&&u&&be.current.stateNode!==u){var s=Q(be.current.type);De[s]||(F('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Q(be.current.type),t.ref),De[s]=!0)}}function Ee(t,u){{var s=function(){nr||(nr=!0,F("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};s.isReactWarning=!0,Object.defineProperty(t,"key",{get:s,configurable:!0})}}function or(t,u){{var s=function(){ar||(ar=!0,F("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};s.isReactWarning=!0,Object.defineProperty(t,"ref",{get:s,configurable:!0})}}var Sr=function(t,u,s,y,C,T,b){var h={$$typeof:v,type:t,key:u,ref:s,props:b,_owner:T};return h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(h,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(h,"_source",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h};function Tr(t,u,s,y,C){{var T,b={},h=null,G=null;s!==void 0&&(ze(s),h=""+s),wr(u)&&(ze(u.key),h=""+u.key),Rr(u)&&(G=u.ref,Cr(u,C));for(T in u)_e.call(u,T)&&!Er.hasOwnProperty(T)&&(b[T]=u[T]);if(t&&t.defaultProps){var L=t.defaultProps;for(T in L)b[T]===void 0&&(b[T]=L[T])}if(h||G){var M=typeof t=="function"?t.displayName||t.name||"Unknown":t;h&&Ee(b,M),G&&or(b,M)}return Sr(t,h,G,C,y,be.current,b)}}var Ue=ie.ReactCurrentOwner,ur=ie.ReactDebugCurrentFrame;function me(t){if(t){var u=t._owner,s=Ne(t.type,t._source,u?u.type:null);ur.setExtraStackFrame(s)}else ur.setExtraStackFrame(null)}var xe;xe=!1;function Re(t){return typeof t=="object"&&t!==null&&t.$$typeof===v}function Ie(){{if(Ue.current){var t=Q(Ue.current.type);if(t)return`
60
+
61
+ Check the render method of \``+t+"`."}return""}}function Or(t){return""}var ir={};function kr(t){{var u=Ie();if(!u){var s=typeof t=="string"?t:t.displayName||t.name;s&&(u=`
62
+
63
+ Check the top-level render call using <`+s+">.")}return u}}function sr(t,u){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var s=kr(u);if(ir[s])return;ir[s]=!0;var y="";t&&t._owner&&t._owner!==Ue.current&&(y=" It was passed a child from "+Q(t._owner.type)+"."),me(t),F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,y),me(null)}}function cr(t,u){{if(typeof t!="object")return;if(Me(t))for(var s=0;s<t.length;s++){var y=t[s];Re(y)&&sr(y,u)}else if(Re(t))t._store&&(t._store.validated=!0);else if(t){var C=ue(t);if(typeof C=="function"&&C!==t.entries)for(var T=C.call(t),b;!(b=T.next()).done;)Re(b.value)&&sr(b.value,u)}}}function $e(t){{var u=t.type;if(u==null||typeof u=="string")return;var s;if(typeof u=="function")s=u.propTypes;else if(typeof u=="object"&&(u.$$typeof===k||u.$$typeof===K))s=u.propTypes;else return;if(s){var y=Q(u);ve(s,t.props,"prop",y,t)}else if(u.PropTypes!==void 0&&!xe){xe=!0;var C=Q(u);F("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",C||"Unknown")}typeof u.getDefaultProps=="function"&&!u.getDefaultProps.isReactClassApproved&&F("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qe(t){{for(var u=Object.keys(t.props),s=0;s<u.length;s++){var y=u[s];if(y!=="children"&&y!=="key"){me(t),F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y),me(null);break}}t.ref!==null&&(me(t),F("Invalid attribute `ref` supplied to `React.Fragment`."),me(null))}}var Ke={};function fr(t,u,s,y,C,T){{var b=Te(t);if(!b){var h="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var G=Or();G?h+=G:h+=Ie();var L;t===null?L="null":Me(t)?L="array":t!==void 0&&t.$$typeof===v?(L="<"+(Q(t.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):L=typeof t,F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",L,h)}var M=Tr(t,u,s,C,T);if(M==null)return M;if(b){var ne=u.children;if(ne!==void 0)if(y)if(Me(ne)){for(var we=0;we<ne.length;we++)cr(ne[we],t);Object.freeze&&Object.freeze(ne)}else F("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else cr(ne,t)}if(_e.call(u,"key")){var he=Q(t),Z=Object.keys(u).filter(function(xr){return xr!=="key"}),He=Z.length>0?"{key: someKey, "+Z.join(": ..., ")+": ...}":"{key: someKey}";if(!Ke[he+He]){var Dr=Z.length>0?"{"+Z.join(": ..., ")+": ...}":"{}";F(`A props object containing a "key" prop is being spread into JSX:
64
+ let props = %s;
65
+ <%s {...props} />
66
+ React keys must be passed directly to JSX without using spread:
67
+ let props = %s;
68
+ <%s key={someKey} {...props} />`,He,he,Dr,he),Ke[he+He]=!0}}return t===z?qe(M):$e(M),M}}function Pr(t,u,s){return fr(t,u,s,!0)}function jr(t,u,s){return fr(t,u,s,!1)}var Ar=jr,lr=Pr;Xe.Fragment=z,Xe.jsx=Ar,Xe.jsxs=lr}()),Xe}process.env.NODE_ENV==="production"?Vr.exports=Vt():Vr.exports=Yt();var gt=Vr.exports;function Bt(l){const v=Ce.useRef(null);function oe(){const $=l.host||"https://app.documenso.com",W=btoa(JSON.stringify({name:l.name,lockName:l.lockName,email:l.email,lockEmail:l.lockEmail,css:l.css})),U=new URL(`/embed/direct/${l.token}`,$);return l.externalId&&U.searchParams.set("externalId",l.externalId),`${U}#${W}`}function z($){var W,U,q,k,X,D;if(((W=v.current)==null?void 0:W.contentWindow)===$.source)switch($.data.action){case"document-ready":(U=l.onDocumentReady)==null||U.call(l);break;case"document-completed":(q=l.onDocumentCompleted)==null||q.call(l,$.data.data);break;case"document-error":(k=l.onDocumentError)==null||k.call(l,$.data.data);break;case"field-signed":(X=l.onFieldSigned)==null||X.call(l);break;case"field-unsigned":(D=l.onFieldUnsigned)==null||D.call(l);break}}return Ce.useEffect(()=>{window.addEventListener("message",z)},[]),Ce.useEffect(()=>()=>{window.removeEventListener("message",z)},[]),gt.jsx("iframe",{ref:v,className:l.className,src:oe()})}function zt(l){const v=Ce.useRef(null);function oe(){const $=l.host||"https://app.documenso.com",W=btoa(JSON.stringify({name:l.name,lockName:l.lockName,css:l.css}));return`${new URL(`/embed/sign/${l.token}`,$)}#${W}`}function z($){var W,U,q,k;if(((W=v.current)==null?void 0:W.contentWindow)===$.source)switch($.data.action){case"document-ready":(U=l.onDocumentReady)==null||U.call(l);break;case"document-completed":(q=l.onDocumentCompleted)==null||q.call(l,$.data.data);break;case"document-error":(k=l.onDocumentError)==null||k.call(l,$.data.data);break}}return Ce.useEffect(()=>{window.addEventListener("message",z)},[]),Ce.useEffect(()=>()=>{window.removeEventListener("message",z)},[]),gt.jsx("iframe",{ref:v,className:l.className,src:oe()})}exports.EmbedDirectTemplate=Bt;exports.EmbedSignDocument=zt;