@documenso/embed-vue 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.
- package/dist/direct-template.vue.d.ts +33 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +23 -0
- package/dist/index.mjs +1954 -0
- package/dist/sign-document.vue.d.ts +27 -0
- package/package.json +44 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type EmbedDirectTemplateProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
host?: string;
|
|
4
|
+
token: string;
|
|
5
|
+
externalId?: string;
|
|
6
|
+
css?: string | undefined;
|
|
7
|
+
cssVars?: Record<string, string> | undefined;
|
|
8
|
+
email?: string | undefined;
|
|
9
|
+
lockEmail?: boolean | undefined;
|
|
10
|
+
name?: string | undefined;
|
|
11
|
+
lockName?: boolean | undefined;
|
|
12
|
+
onDocumentReady?: () => void;
|
|
13
|
+
onDocumentCompleted?: (data: {
|
|
14
|
+
token: string;
|
|
15
|
+
documentId: number;
|
|
16
|
+
recipientId: number;
|
|
17
|
+
}) => void;
|
|
18
|
+
onDocumentError?: (error: string) => void;
|
|
19
|
+
onFieldSigned?: () => void;
|
|
20
|
+
onFieldUnsigned?: () => void;
|
|
21
|
+
};
|
|
22
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<EmbedDirectTemplateProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToOption<EmbedDirectTemplateProps>>>, {}, {}>;
|
|
23
|
+
export default _default;
|
|
24
|
+
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToOption<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: import('vue').PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
package/dist/index.d.mts
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/**
|
|
2
|
+
* @vue/shared v3.4.38
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function hn(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const I=process.env.NODE_ENV!=="production"?Object.freeze({}):{},_n=process.env.NODE_ENV!=="production"?Object.freeze([]):[],B=()=>{},mn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),R=Object.assign,gn=Object.prototype.hasOwnProperty,E=(e,t)=>gn.call(e,t),_=Array.isArray,k=e=>De(e)==="[object Map]",En=e=>De(e)==="[object Set]",w=e=>typeof e=="function",x=e=>typeof e=="string",ce=e=>typeof e=="symbol",O=e=>e!==null&&typeof e=="object",wn=e=>(O(e)||w(e))&&w(e.then)&&w(e.catch),Nn=Object.prototype.toString,De=e=>Nn.call(e),wt=e=>De(e).slice(8,-1),bn=e=>De(e)==="[object Object]",Je=e=>x(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Nt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},bt=Nt(e=>e.charAt(0).toUpperCase()+e.slice(1)),vn=Nt(e=>e?`on${bt(e)}`:""),H=(e,t)=>!Object.is(e,t),On=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})};let ot;const vt=()=>ot||(ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qe(e){if(_(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=x(r)?Vn(r):qe(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(x(e)||O(e))return e}const yn=/;(?![^(]*\))/g,Sn=/:([^]+)/,Rn=/\/\*[^]*?\*\//g;function Vn(e){const t={};return e.replace(Rn,"").split(yn).forEach(n=>{if(n){const r=n.split(Sn);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function le(e){let t="";if(x(e))t=e;else if(_(e))for(let n=0;n<e.length;n++){const r=le(e[n]);r&&(t+=r+" ")}else if(O(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}/**
|
|
6
|
+
* @vue/reactivity v3.4.38
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/function Q(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Dn;function xn(e,t=Dn){t&&t.active&&t.effects.push(e)}let J;class Ot{constructor(t,n,r,s){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,xn(this,s)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,ae();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Cn(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ue()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=L,n=J;try{return L=!0,J=this,this._runnings++,it(this),this.fn()}finally{ct(this),this._runnings--,J=n,L=t}}stop(){this.active&&(it(this),ct(this),this.onStop&&this.onStop(),this.active=!1)}}function Cn(e){return e.value}function it(e){e._trackId++,e._depsLength=0}function ct(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)yt(e.deps[t],e);e.deps.length=e._depsLength}}function yt(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let L=!0,Le=0;const St=[];function ae(){St.push(L),L=!1}function ue(){const e=St.pop();L=e===void 0?!0:e}function Ye(){Le++}function Ge(){for(Le--;!Le&&je.length;)je.shift()()}function Rt(e,t,n){var r;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&yt(s,e),e.deps[e._depsLength++]=t):e._depsLength++,process.env.NODE_ENV!=="production"&&((r=e.onTrack)==null||r.call(e,R({effect:e},n)))}}const je=[];function Vt(e,t,n){var r;Ye();for(const s of e.keys()){let o;s._dirtyLevel<t&&(o??(o=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(o??(o=e.get(s)===s._trackId))&&(process.env.NODE_ENV!=="production"&&((r=s.onTrigger)==null||r.call(s,R({effect:s},n))),s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&je.push(s.scheduler)))}Ge()}const Dt=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},He=new WeakMap,q=Symbol(process.env.NODE_ENV!=="production"?"iterate":""),Ue=Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");function b(e,t,n){if(L&&J){let r=He.get(e);r||He.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=Dt(()=>r.delete(n))),Rt(J,s,process.env.NODE_ENV!=="production"?{target:e,type:t,key:n}:void 0)}}function j(e,t,n,r,s,o){const i=He.get(e);if(!i)return;let c=[];if(t==="clear")c=[...i.values()];else if(n==="length"&&_(e)){const a=Number(r);i.forEach((u,h)=>{(h==="length"||!ce(h)&&h>=a)&&c.push(u)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":_(e)?Je(n)&&c.push(i.get("length")):(c.push(i.get(q)),k(e)&&c.push(i.get(Ue)));break;case"delete":_(e)||(c.push(i.get(q)),k(e)&&c.push(i.get(Ue)));break;case"set":k(e)&&c.push(i.get(q));break}Ye();for(const a of c)a&&Vt(a,4,process.env.NODE_ENV!=="production"?{target:e,type:t,key:n,newValue:r,oldValue:s,oldTarget:o}:void 0);Ge()}const In=hn("__proto__,__v_isRef,__isVue"),xt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ce)),lt=$n();function $n(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=f(this);for(let o=0,i=this.length;o<i;o++)b(r,"get",o+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(f)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){ae(),Ye();const r=f(this)[t].apply(this,n);return Ge(),ue(),r}}),e}function Pn(e){ce(e)||(e=String(e));const t=f(this);return b(t,"has",e),t.hasOwnProperty(e)}class Ct{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?Mt:Tt:o?Jn:Pt).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=_(t);if(!s){if(i&&E(lt,n))return Reflect.get(lt,n,r);if(n==="hasOwnProperty")return Pn}const c=Reflect.get(t,n,r);return(ce(n)?xt.has(n):In(n))||(s||b(t,"get",n),o)?c:S(c)?i&&Je(n)?c:c.value:O(c)?s?At(c):Ft(c):c}}class Tn extends Ct{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const a=T(o);if(!P(r)&&!T(r)&&(o=f(o),r=f(r)),!_(t)&&S(o)&&!S(r))return a?!1:(o.value=r,!0)}const i=_(t)&&Je(n)?Number(n)<t.length:E(t,n),c=Reflect.set(t,n,r,s);return t===f(s)&&(i?H(r,o)&&j(t,"set",n,r,o):j(t,"add",n,r)),c}deleteProperty(t,n){const r=E(t,n),s=t[n],o=Reflect.deleteProperty(t,n);return o&&r&&j(t,"delete",n,void 0,s),o}has(t,n){const r=Reflect.has(t,n);return(!ce(n)||!xt.has(n))&&b(t,"has",n),r}ownKeys(t){return b(t,"iterate",_(t)?"length":q),Reflect.ownKeys(t)}}class It extends Ct{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&Q(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&Q(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const Mn=new Tn,Fn=new It,An=new It(!0),Qe=e=>e,xe=e=>Reflect.getPrototypeOf(e);function de(e,t,n=!1,r=!1){e=e.__v_raw;const s=f(e),o=f(t);n||(H(t,o)&&b(s,"get",t),b(s,"get",o));const{has:i}=xe(s),c=r?Qe:n?ke:oe;if(i.call(s,t))return c(e.get(t));if(i.call(s,o))return c(e.get(o));e!==s&&e.get(t)}function pe(e,t=!1){const n=this.__v_raw,r=f(n),s=f(e);return t||(H(e,s)&&b(r,"has",e),b(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function he(e,t=!1){return e=e.__v_raw,!t&&b(f(e),"iterate",q),Reflect.get(e,"size",e)}function at(e,t=!1){!t&&!P(e)&&!T(e)&&(e=f(e));const n=f(this);return xe(n).has.call(n,e)||(n.add(e),j(n,"add",e,e)),this}function ut(e,t,n=!1){!n&&!P(t)&&!T(t)&&(t=f(t));const r=f(this),{has:s,get:o}=xe(r);let i=s.call(r,e);i?process.env.NODE_ENV!=="production"&&$t(r,s,e):(e=f(e),i=s.call(r,e));const c=o.call(r,e);return r.set(e,t),i?H(t,c)&&j(r,"set",e,t,c):j(r,"add",e,t),this}function ft(e){const t=f(this),{has:n,get:r}=xe(t);let s=n.call(t,e);s?process.env.NODE_ENV!=="production"&&$t(t,n,e):(e=f(e),s=n.call(t,e));const o=r?r.call(t,e):void 0,i=t.delete(e);return s&&j(t,"delete",e,void 0,o),i}function dt(){const e=f(this),t=e.size!==0,n=process.env.NODE_ENV!=="production"?k(e)?new Map(e):new Set(e):void 0,r=e.clear();return t&&j(e,"clear",void 0,void 0,n),r}function _e(e,t){return function(r,s){const o=this,i=o.__v_raw,c=f(i),a=t?Qe:e?ke:oe;return!e&&b(c,"iterate",q),i.forEach((u,h)=>r.call(s,a(u),a(h),o))}}function me(e,t,n){return function(...r){const s=this.__v_raw,o=f(s),i=k(o),c=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=s[e](...r),h=n?Qe:t?ke:oe;return!t&&b(o,"iterate",a?Ue:q),{next(){const{value:l,done:d}=u.next();return d?{value:l,done:d}:{value:c?[h(l[0]),h(l[1])]:h(l),done:d}},[Symbol.iterator](){return this}}}}function M(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";Q(`${bt(e)} operation ${n}failed: target is readonly.`,f(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Ln(){const e={get(o){return de(this,o)},get size(){return he(this)},has:pe,add:at,set:ut,delete:ft,clear:dt,forEach:_e(!1,!1)},t={get(o){return de(this,o,!1,!0)},get size(){return he(this)},has:pe,add(o){return at.call(this,o,!0)},set(o,i){return ut.call(this,o,i,!0)},delete:ft,clear:dt,forEach:_e(!1,!0)},n={get(o){return de(this,o,!0)},get size(){return he(this,!0)},has(o){return pe.call(this,o,!0)},add:M("add"),set:M("set"),delete:M("delete"),clear:M("clear"),forEach:_e(!0,!1)},r={get(o){return de(this,o,!0,!0)},get size(){return he(this,!0)},has(o){return pe.call(this,o,!0)},add:M("add"),set:M("set"),delete:M("delete"),clear:M("clear"),forEach:_e(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=me(o,!1,!1),n[o]=me(o,!0,!1),t[o]=me(o,!1,!0),r[o]=me(o,!0,!0)}),[e,n,t,r]}const[jn,Hn,Un,Kn]=Ln();function Xe(e,t){const n=t?e?Kn:Un:e?Hn:jn;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(E(n,s)&&s in r?n:r,s,o)}const zn={get:Xe(!1,!1)},Wn={get:Xe(!0,!1)},Bn={get:Xe(!0,!0)};function $t(e,t,n){const r=f(n);if(r!==n&&t.call(e,r)){const s=wt(e);Q(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Pt=new WeakMap,Jn=new WeakMap,Tt=new WeakMap,Mt=new WeakMap;function qn(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yn(e){return e.__v_skip||!Object.isExtensible(e)?0:qn(wt(e))}function Ft(e){return T(e)?e:Ze(e,!1,Mn,zn,Pt)}function At(e){return Ze(e,!0,Fn,Wn,Tt)}function ge(e){return Ze(e,!0,An,Bn,Mt)}function Ze(e,t,n,r,s){if(!O(e))return process.env.NODE_ENV!=="production"&&Q(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Yn(e);if(i===0)return e;const c=new Proxy(e,i===2?r:n);return s.set(e,c),c}function ee(e){return T(e)?ee(e.__v_raw):!!(e&&e.__v_isReactive)}function T(e){return!!(e&&e.__v_isReadonly)}function P(e){return!!(e&&e.__v_isShallow)}function Ke(e){return e?!!e.__v_raw:!1}function f(e){const t=e&&e.__v_raw;return t?f(t):e}function Gn(e){return Object.isExtensible(e)&&On(e,"__v_skip",!0),e}const oe=e=>O(e)?Ft(e):e,ke=e=>O(e)?At(e):e,Qn="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class Lt{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ot(()=>t(this._value),()=>Ne(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=f(this);return(!t._cacheable||t.effect.dirty)&&H(t._value,t._value=t.effect.run())&&Ne(t,4),jt(t),t.effect._dirtyLevel>=2&&(process.env.NODE_ENV!=="production"&&this._warnRecursive&&Q(Qn,`
|
|
10
|
+
|
|
11
|
+
getter: `,this.getter),Ne(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Xn(e,t,n=!1){let r,s;const o=w(e);o?(r=e,s=process.env.NODE_ENV!=="production"?()=>{Q("Write operation failed: computed value is readonly")}:B):(r=e.get,s=e.set);const i=new Lt(r,s,o||!s,n);return process.env.NODE_ENV!=="production"&&t&&!n&&(i.effect.onTrack=t.onTrack,i.effect.onTrigger=t.onTrigger),i}function jt(e){var t;L&&J&&(e=f(e),Rt(J,(t=e.dep)!=null?t:e.dep=Dt(()=>e.dep=void 0,e instanceof Lt?e:void 0),process.env.NODE_ENV!=="production"?{target:e,type:"get",key:"value"}:void 0))}function Ne(e,t=4,n,r){e=f(e);const s=e.dep;s&&Vt(s,t,process.env.NODE_ENV!=="production"?{target:e,type:"set",key:"value",newValue:n,oldValue:r}:void 0)}function S(e){return!!(e&&e.__v_isRef===!0)}function Ht(e){return Zn(e,!1)}function Zn(e,t){return S(e)?e:new kn(e,t)}class kn{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:f(t),this._value=n?t:oe(t)}get value(){return jt(this),this._value}set value(t){const n=this.__v_isShallow||P(t)||T(t);if(t=n?t:f(t),H(t,this._rawValue)){const r=this._rawValue;this._rawValue=t,this._value=n?t:oe(t),Ne(this,4,t,r)}}}function er(e){return S(e)?e.value:e}const tr={get:(e,t,n)=>er(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return S(s)&&!S(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function nr(e){return ee(e)?e:new Proxy(e,tr)}/**
|
|
12
|
+
* @vue/runtime-core v3.4.38
|
|
13
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14
|
+
* @license MIT
|
|
15
|
+
**/const Y=[];function rr(e){Y.push(e)}function sr(){Y.pop()}let Te=!1;function m(e,...t){if(Te)return;Te=!0,ae();const n=Y.length?Y[Y.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=or();if(r)G(r,n,11,[e+t.map(o=>{var i,c;return(c=(i=o.toString)==null?void 0:i.call(o))!=null?c:JSON.stringify(o)}).join(""),n&&n.proxy,s.map(({vnode:o})=>`at <${un(n,o.type)}>`).join(`
|
|
16
|
+
`),s]);else{const o=[`[Vue warn]: ${e}`,...t];s.length&&o.push(`
|
|
17
|
+
`,...ir(s)),console.warn(...o)}ue(),Te=!1}function or(){let e=Y[Y.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function ir(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
18
|
+
`],...cr(n))}),t}function cr({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${un(e.component,e.type,r)}`,o=">"+n;return e.props?[s,...lr(e.props),o]:[s+o]}function lr(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Ut(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Ut(e,t,n){return x(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:S(t)?(t=Ut(e,f(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):w(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=f(t),n?t:[`${e}=`,t])}const et={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update"};function G(e,t,n,r){try{return r?e(...r):e()}catch(s){tt(s,t,n)}}function re(e,t,n,r){if(w(e)){const s=G(e,t,n,r);return s&&wn(s)&&s.catch(o=>{tt(o,t,n)}),s}if(_(e)){const s=[];for(let o=0;o<e.length;o++)s.push(re(e[o],t,n,r));return s}else process.env.NODE_ENV!=="production"&&m(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function tt(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,c=process.env.NODE_ENV!=="production"?et[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const u=o.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,i,c)===!1)return}o=o.parent}const a=t.appContext.config.errorHandler;if(a){ae(),G(a,null,10,[e,i,c]),ue();return}}ar(e,n,s,r)}function ar(e,t,n,r=!0){if(process.env.NODE_ENV!=="production"){const s=et[t];if(n&&rr(n),m(`Unhandled error${s?` during execution of ${s}`:""}`),n&&sr(),r)throw e;console.error(e)}else console.error(e)}let Oe=!1,ze=!1;const V=[];let A=0;const te=[];let F=null,z=0;const Kt=Promise.resolve();let nt=null;const ur=100;function fr(e){const t=nt||Kt;return e?t.then(this?e.bind(this):e):t}function dr(e){let t=A+1,n=V.length;for(;t<n;){const r=t+n>>>1,s=V[r],o=ie(s);o<e||o===e&&s.pre?t=r+1:n=r}return t}function rt(e){(!V.length||!V.includes(e,Oe&&e.allowRecurse?A+1:A))&&(e.id==null?V.push(e):V.splice(dr(e.id),0,e),zt())}function zt(){!Oe&&!ze&&(ze=!0,nt=Kt.then(Bt))}function Wt(e){_(e)?te.push(...e):(!F||!F.includes(e,e.allowRecurse?z+1:z))&&te.push(e),zt()}function pr(e){if(te.length){const t=[...new Set(te)].sort((n,r)=>ie(n)-ie(r));if(te.length=0,F){F.push(...t);return}for(F=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),z=0;z<F.length;z++){const n=F[z];process.env.NODE_ENV!=="production"&&Jt(e,n)||n.active!==!1&&n()}F=null,z=0}}const ie=e=>e.id==null?1/0:e.id,hr=(e,t)=>{const n=ie(e)-ie(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Bt(e){ze=!1,Oe=!0,process.env.NODE_ENV!=="production"&&(e=e||new Map),V.sort(hr);const t=process.env.NODE_ENV!=="production"?n=>Jt(e,n):B;try{for(A=0;A<V.length;A++){const n=V[A];if(n&&n.active!==!1){if(process.env.NODE_ENV!=="production"&&t(n))continue;G(n,n.i,n.i?15:14)}}}finally{A=0,V.length=0,pr(e),Oe=!1,nt=null,(V.length||te.length)&&Bt(e)}}function Jt(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>ur){const r=t.i,s=r&&an(r.type);return tt(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,n+1)}}const Me=new Map;process.env.NODE_ENV!=="production"&&(vt().__VUE_HMR_RUNTIME__={createRecord:Fe(_r),rerender:Fe(mr),reload:Fe(gr)});const ye=new Map;function _r(e,t){return ye.has(e)?!1:(ye.set(e,{initialDef:Se(t),instances:new Set}),!0)}function Se(e){return fn(e)?e.__vccOpts:e}function mr(e,t){const n=ye.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,Se(r.type).render=t),r.renderCache=[],r.effect.dirty=!0,r.update()}))}function gr(e,t){const n=ye.get(e);if(!n)return;t=Se(t),pt(n.initialDef,t);const r=[...n.instances];for(let s=0;s<r.length;s++){const o=r[s],i=Se(o.type);let c=Me.get(i);c||(i!==n.initialDef&&pt(i,t),Me.set(i,c=new Set)),c.add(o),o.appContext.propsCache.delete(o.type),o.appContext.emitsCache.delete(o.type),o.appContext.optionsCache.delete(o.type),o.ceReload?(c.add(o),o.ceReload(t.styles),c.delete(o)):o.parent?(o.parent.effect.dirty=!0,rt(()=>{o.parent.update(),c.delete(o)})):o.appContext.reload?o.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Wt(()=>{Me.clear()})}function pt(e,t){R(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Fe(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Z,Ee=[];function qt(e,t){var n,r;Z=e,Z?(Z.enabled=!0,Ee.forEach(({event:s,args:o})=>Z.emit(s,...o)),Ee=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{qt(o,t)}),setTimeout(()=>{Z||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ee=[])},3e3)):Ee=[]}let $=null,Er=null;function Yt(e,t){e.shapeFlag&6&&e.component?Yt(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Gt(e,t){return w(e)?R({name:e.name},t,{setup:e}):e}function wr(e,t,n=X,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{ae();const c=ln(n),a=re(t,n,e,i);return c(),ue(),a});return r?s.unshift(o):s.push(o),o}else if(process.env.NODE_ENV!=="production"){const s=vn(et[e].replace(/ hook$/,""));m(`${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Qt=e=>(t,n=X)=>{(!Ce||e==="sp")&&wr(e,(...r)=>t(...r),n)},Xt=Qt("m"),Zt=Qt("um"),Nr=Symbol.for("v-ndc"),We=e=>e?Gr(e)?Qr(e):We(e.parent):null,se=R(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?ge(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?ge(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?ge(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?ge(e.refs):e.refs,$parent:e=>We(e.parent),$root:e=>We(e.root),$emit:e=>e.emit,$options:e=>Or(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,rt(e.update)}),$nextTick:e=>e.n||(e.n=fr.bind(e.proxy)),$watch:e=>Tr.bind(e)}),br=e=>e==="_"||e==="$",Ae=(e,t)=>e!==I&&!e.__isScriptSetup&&E(e,t),vr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:c,appContext:a}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let u;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Ae(r,t))return i[t]=1,r[t];if(s!==I&&E(s,t))return i[t]=2,s[t];if((u=e.propsOptions[0])&&E(u,t))return i[t]=3,o[t];if(n!==I&&E(n,t))return i[t]=4,n[t];i[t]=0}}const h=se[t];let l,d;if(h)return t==="$attrs"?(b(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&b(e,"get",t),h(e);if((l=c.__cssModules)&&(l=l[t]))return l;if(n!==I&&E(n,t))return i[t]=4,n[t];if(d=a.config.globalProperties,E(d,t))return d[t];process.env.NODE_ENV!=="production"&&$&&(!x(t)||t.indexOf("__v")!==0)&&(s!==I&&br(t[0])&&E(s,t)?m(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===$&&m(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Ae(s,t)?(s[t]=n,!0):process.env.NODE_ENV!=="production"&&s.__isScriptSetup&&E(s,t)?(m(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==I&&E(r,t)?(r[t]=n,!0):E(e.props,t)?(process.env.NODE_ENV!=="production"&&m(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&m(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(o,t,{enumerable:!0,configurable:!0,value:n}):o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let c;return!!n[i]||e!==I&&E(e,i)||Ae(t,i)||(c=o[0])&&E(c,i)||E(r,i)||E(se,i)||E(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:E(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(vr.ownKeys=e=>(m("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function ht(e){return _(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Or(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let a;return c?a=c:!s.length&&!n&&!r?a=t:(a={},s.length&&s.forEach(u=>Re(a,u,i,!0)),Re(a,t,i)),O(t)&&o.set(t,a),a}function Re(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Re(e,o,n,!0),s&&s.forEach(i=>Re(e,i,n,!0));for(const i in t)if(r&&i==="expose")process.env.NODE_ENV!=="production"&&m('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const c=yr[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const yr={data:_t,props:gt,emits:gt,methods:ne,computed:ne,beforeCreate:v,created:v,beforeMount:v,mounted:v,beforeUpdate:v,updated:v,beforeDestroy:v,beforeUnmount:v,destroyed:v,unmounted:v,activated:v,deactivated:v,errorCaptured:v,serverPrefetch:v,components:ne,directives:ne,watch:Rr,provide:_t,inject:Sr};function _t(e,t){return t?e?function(){return R(w(e)?e.call(this,this):e,w(t)?t.call(this,this):t)}:t:e}function Sr(e,t){return ne(mt(e),mt(t))}function mt(e){if(_(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function v(e,t){return e?[...new Set([].concat(e,t))]:t}function ne(e,t){return e?R(Object.create(null),e,t):t}function gt(e,t){return e?_(e)&&_(t)?[...new Set([...e,...t])]:R(Object.create(null),ht(e),ht(t??{})):t}function Rr(e,t){if(!e)return t;if(!t)return e;const n=R(Object.create(null),e);for(const r in t)n[r]=v(e[r],t[r]);return n}let Vr=null;function Dr(e,t,n=!1){const r=X||$;if(r||Vr){const s=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&w(t)?t.call(r&&r.proxy):t;process.env.NODE_ENV!=="production"&&m(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&m("inject() can only be used inside setup() or functional components.")}const xr={},kt=e=>Object.getPrototypeOf(e)===xr,Cr=e=>e.__isTeleport,Et=Ar,Ir=Symbol.for("v-scx"),$r=()=>{{const e=Dr(Ir);return e||process.env.NODE_ENV!=="production"&&m("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}},we={};function Pr(e,t,{immediate:n,deep:r,flush:s,once:o,onTrack:i,onTrigger:c}=I){if(t&&o){const p=t;t=(...Pe)=>{p(...Pe),$e()}}process.env.NODE_ENV!=="production"&&r!==void 0&&typeof r=="number"&&m('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),process.env.NODE_ENV!=="production"&&!t&&(n!==void 0&&m('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&m('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&m('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=p=>{m("Invalid watch source: ",p,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=X,h=p=>r===!0?p:W(p,r===!1?1:void 0);let l,d=!1,g=!1;if(S(e)?(l=()=>e.value,d=P(e)):ee(e)?(l=()=>h(e),d=!0):_(e)?(g=!0,d=e.some(p=>ee(p)||P(p)),l=()=>e.map(p=>{if(S(p))return p.value;if(ee(p))return h(p);if(w(p))return G(p,u,2);process.env.NODE_ENV!=="production"&&a(p)})):w(e)?t?l=()=>G(e,u,2):l=()=>(N&&N(),re(e,u,3,[C])):(l=B,process.env.NODE_ENV!=="production"&&a(e)),t&&r){const p=l;l=()=>W(p())}let N,C=p=>{N=y.onStop=()=>{G(p,u,4),N=y.onStop=void 0}},Ie;if(Ce)if(C=B,t?n&&re(t,u,3,[l(),g?[]:void 0,C]):l(),s==="sync"){const p=$r();Ie=p.__watcherHandles||(p.__watcherHandles=[])}else return B;let U=g?new Array(e.length).fill(we):we;const K=()=>{if(!(!y.active||!y.dirty))if(t){const p=y.run();(r||d||(g?p.some((Pe,pn)=>H(Pe,U[pn])):H(p,U)))&&(N&&N(),re(t,u,3,[p,U===we?void 0:g&&U[0]===we?[]:U,C]),U=p)}else y.run()};K.allowRecurse=!!t;let fe;s==="sync"?fe=K:s==="post"?fe=()=>Et(K,u&&u.suspense):(K.pre=!0,u&&(K.id=u.uid),fe=()=>rt(K));const y=new Ot(l,B,fe),$e=()=>{y.stop()};return process.env.NODE_ENV!=="production"&&(y.onTrack=i,y.onTrigger=c),t?n?K():U=y.run():s==="post"?Et(y.run.bind(y),u&&u.suspense):y.run(),Ie&&Ie.push($e),$e}function Tr(e,t,n){const r=this.proxy,s=x(e)?e.includes(".")?Mr(r,e):()=>r[e]:e.bind(r,r);let o;w(t)?o=t:(o=t.handler,n=t);const i=ln(this),c=Pr(s,o.bind(r),n);return i(),c}function Mr(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function W(e,t=1/0,n){if(t<=0||!O(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,S(e))W(e.value,t,n);else if(_(e))for(let r=0;r<e.length;r++)W(e[r],t,n);else if(En(e)||k(e))e.forEach(r=>{W(r,t,n)});else if(bn(e)){for(const r in e)W(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&W(e[r],t,n)}return e}const Fr=e=>e.__isSuspense;function Ar(e,t){t&&t.pendingBranch?_(e)?t.effects.push(...e):t.effects.push(e):Wt(e)}const en=Symbol.for("v-fgt"),Lr=Symbol.for("v-txt"),jr=Symbol.for("v-cmt"),be=[];let D=null;function tn(e=!1){be.push(D=e?null:[])}function Hr(){be.pop(),D=be[be.length-1]||null}function Ur(e){return e.dynamicChildren=D||_n,Hr(),D&&D.push(e),e}function nn(e,t,n,r,s,o){return Ur(sn(e,t,n,r,s,o,!0))}function Kr(e){return e?e.__v_isVNode===!0:!1}const zr=(...e)=>on(...e),rn=({key:e})=>e??null,ve=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?x(e)||S(e)||w(e)?{i:$,r:e,k:t,f:!!n}:e:null);function sn(e,t=null,n=null,r=0,s=null,o=e===en?0:1,i=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rn(t),ref:t&&ve(t),scopeId:Er,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:$};return c?(st(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=x(n)?8:16),process.env.NODE_ENV!=="production"&&a.key!==a.key&&m("VNode created with invalid key (NaN). VNode type:",a.type),!i&&D&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&D.push(a),a}const Wr=process.env.NODE_ENV!=="production"?zr:on;function on(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Nr)&&(process.env.NODE_ENV!=="production"&&!e&&m(`Invalid vnode type when creating vnode: ${e}.`),e=jr),Kr(e)){const c=Ve(e,t,!0);return n&&st(c,n),!o&&D&&(c.shapeFlag&6?D[D.indexOf(e)]=c:D.push(c)),c.patchFlag=-2,c}if(fn(e)&&(e=e.__vccOpts),t){t=Br(t);let{class:c,style:a}=t;c&&!x(c)&&(t.class=le(c)),O(a)&&(Ke(a)&&!_(a)&&(a=R({},a)),t.style=qe(a))}const i=x(e)?1:Fr(e)?128:Cr(e)?64:O(e)?4:w(e)?2:0;return process.env.NODE_ENV!=="production"&&i&4&&Ke(e)&&(e=f(e),m("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
19
|
+
Component that was made reactive: `,e)),sn(e,t,n,r,s,i,o,!0)}function Br(e){return e?Ke(e)||kt(e)?R({},e):e:null}function Ve(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:c,transition:a}=e,u=t?qr(s||{},t):s,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&rn(u),ref:t&&t.ref?n&&o?_(o)?o.concat(ve(t)):[o,ve(t)]:ve(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&i===-1&&_(c)?c.map(cn):c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==en?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ve(e.ssContent),ssFallback:e.ssFallback&&Ve(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Yt(h,a.clone(h)),h}function cn(e){const t=Ve(e);return _(e.children)&&(t.children=e.children.map(cn)),t}function Jr(e=" ",t=0){return Wr(Lr,null,e,t)}function st(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(_(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),st(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!kt(t)?t._ctx=$:s===3&&$&&($.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else w(t)?(t={default:t,_ctx:$},n=32):(t=String(t),r&64?(n=16,t=[Jr(t)]):n=8);e.children=t,e.shapeFlag|=n}function qr(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=le([t.class,r.class]));else if(s==="style")t.style=qe([t.style,r.style]);else if(mn(s)){const o=t[s],i=r[s];i&&o!==i&&!(_(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}let X=null;const Yr=()=>X||$;let Be;{const e=vt(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Be=t("__VUE_INSTANCE_SETTERS__",n=>X=n),t("__VUE_SSR_SETTERS__",n=>Ce=n)}const ln=e=>{const t=X;return Be(e),e.scope.on(),()=>{e.scope.off(),Be(t)}};function Gr(e){return e.vnode.shapeFlag&4}let Ce=!1;process.env.NODE_ENV;function Qr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(nr(Gn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in se)return se[n](e)},has(t,n){return n in t||n in se}})):e.proxy}const Xr=/(?:^|[-_])(\w)/g,Zr=e=>e.replace(Xr,t=>t.toUpperCase()).replace(/[-_]/g,"");function an(e,t=!0){return w(e)?e.displayName||e.name:e.name||t&&e.__name}function un(e,t,n=!1){let r=an(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e&&e.parent){const s=o=>{for(const i in o)if(o[i]===t)return i};r=s(e.components||e.parent.type.components)||s(e.appContext.components)}return r?Zr(r):n?"App":"Anonymous"}function fn(e){return w(e)&&"__vccOpts"in e}const dn=(e,t)=>{const n=Xn(e,t,Ce);if(process.env.NODE_ENV!=="production"){const r=Yr();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function kr(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(l){return O(l)?l.__isVue?["div",e,"VueInstance"]:S(l)?["div",{},["span",e,h(l)],"<",c(l.value),">"]:ee(l)?["div",{},["span",e,P(l)?"ShallowReactive":"Reactive"],"<",c(l),`>${T(l)?" (readonly)":""}`]:T(l)?["div",{},["span",e,P(l)?"ShallowReadonly":"Readonly"],"<",c(l),">"]:null:null},hasBody(l){return l&&l.__isVue},body(l){if(l&&l.__isVue)return["div",{},...o(l.$)]}};function o(l){const d=[];l.type.props&&l.props&&d.push(i("props",f(l.props))),l.setupState!==I&&d.push(i("setup",l.setupState)),l.data!==I&&d.push(i("data",f(l.data)));const g=a(l,"computed");g&&d.push(i("computed",g));const N=a(l,"inject");return N&&d.push(i("injected",N)),d.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:l}]]),d}function i(l,d){return d=R({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},l],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(g=>["div",{},["span",r,g+": "],c(d[g],!1)])]]:["span",{}]}function c(l,d=!0){return typeof l=="number"?["span",t,l]:typeof l=="string"?["span",n,JSON.stringify(l)]:typeof l=="boolean"?["span",r,l]:O(l)?["object",{object:d?f(l):l}]:["span",n,String(l)]}function a(l,d){const g=l.type;if(w(g))return;const N={};for(const C in l.ctx)u(g,C,d)&&(N[C]=l.ctx[C]);return N}function u(l,d,g){const N=l[g];if(_(N)&&N.includes(d)||O(N)&&d in N||l.extends&&u(l.extends,d,g)||l.mixins&&l.mixins.some(C=>u(C,d,g)))return!0}function h(l){return P(l)?"ShallowRef":l.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;/**
|
|
20
|
+
* vue v3.4.38
|
|
21
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
22
|
+
* @license MIT
|
|
23
|
+
**/function es(){kr()}process.env.NODE_ENV!=="production"&&es();const ts=["src"],ns=Gt({__name:"direct-template",props:{className:{},host:{},token:{},externalId:{},css:{},cssVars:{},email:{},lockEmail:{type:Boolean},name:{},lockName:{type:Boolean},onDocumentReady:{type:Function},onDocumentCompleted:{type:Function},onDocumentError:{type:Function},onFieldSigned:{type:Function},onFieldUnsigned:{type:Function}},setup(e){const t=e,n=Ht();Xt(()=>{window.addEventListener("message",s)}),Zt(()=>{window.removeEventListener("message",s)});const r=dn(()=>{const o=t.host||"https://app.documenso.com",i=btoa(JSON.stringify({name:t.name,lockName:t.lockName,email:t.email,lockEmail:t.lockEmail,css:t.css})),c=new URL(`/embed/direct/${t.token}`,o);return t.externalId&&c.searchParams.set("externalId",t.externalId),`${c}#${i}`});function s(o){var i,c,a,u,h,l;if(((i=n.value)==null?void 0:i.contentWindow)===o.source)switch(o.data.action){case"document-ready":(c=t.onDocumentReady)==null||c.call(t);break;case"document-completed":(a=t.onDocumentCompleted)==null||a.call(t,o.data.data);break;case"document-error":(u=t.onDocumentError)==null||u.call(t,o.data.data);break;case"field-signed":(h=t.onFieldSigned)==null||h.call(t);break;case"field-unsigned":(l=t.onFieldUnsigned)==null||l.call(t);break}}return(o,i)=>(tn(),nn("iframe",{ref_key:"__iframe",ref:n,class:le(o.className),src:r.value},null,10,ts))}}),rs=["src"],ss=Gt({__name:"sign-document",props:{className:{},host:{},token:{},css:{},cssVars:{},name:{},lockName:{type:Boolean},onDocumentReady:{type:Function},onDocumentCompleted:{type:Function},onDocumentError:{type:Function}},setup(e){const t=e,n=Ht();Xt(()=>{window.addEventListener("message",s)}),Zt(()=>{window.removeEventListener("message",s)});const r=dn(()=>{const o=t.host||"https://app.documenso.com",i=btoa(JSON.stringify({name:t.name,lockName:t.lockName,css:t.css}));return`${new URL(`/embed/sign/${t.token}`,o)}#${i}`});function s(o){var i,c,a,u;if(((i=n.value)==null?void 0:i.contentWindow)===o.source)switch(o.data.action){case"document-ready":(c=t.onDocumentReady)==null||c.call(t);break;case"document-completed":(a=t.onDocumentCompleted)==null||a.call(t,o.data.data);break;case"document-error":(u=t.onDocumentError)==null||u.call(t,o.data.data);break}}return(o,i)=>(tn(),nn("iframe",{ref_key:"__iframe",ref:n,class:le(o.className),src:r.value},null,10,rs))}});exports.EmbedDirectTemplate=ns;exports.EmbedSignDocument=ss;
|