@multiversx/sdk-web-wallet-cross-window-provider 2.0.0-alpha.1 → 2.0.0
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/README.md +6 -2
- package/out/CrossWindowProvider/CrossWindowProvider.mjs +2 -0
- package/out/CrossWindowProvider/CrossWindowProvider.mjs.map +7 -0
- package/out/CrossWindowProvider/PopupConsent/PopupConsent.mjs +2 -0
- package/out/CrossWindowProvider/PopupConsent/PopupConsent.mjs.map +7 -0
- package/out/CrossWindowProvider/PopupConsent/getStyles.mjs +2 -0
- package/out/CrossWindowProvider/PopupConsent/getStyles.mjs.map +7 -0
- package/out/CrossWindowProvider/PopupConsent/index.mjs +2 -0
- package/out/CrossWindowProvider/PopupConsent/index.mjs.map +7 -0
- package/out/CrossWindowProvider/index.mjs +2 -0
- package/out/CrossWindowProvider/index.mjs.map +7 -0
- package/out/WindowManager/WindowManager.mjs +2 -0
- package/out/WindowManager/WindowManager.mjs.map +7 -0
- package/out/WindowManager/index.mjs +2 -0
- package/out/WindowManager/index.mjs.map +7 -0
- package/out/__chunks__/chunk-67SNURO7.mjs +133 -0
- package/out/__chunks__/chunk-67SNURO7.mjs.map +7 -0
- package/out/__chunks__/chunk-7BAKJMGJ.mjs +2 -0
- package/out/__chunks__/chunk-7BAKJMGJ.mjs.map +7 -0
- package/out/__chunks__/chunk-7EG66KV4.mjs +2 -0
- package/out/__chunks__/chunk-7EG66KV4.mjs.map +7 -0
- package/out/__chunks__/chunk-ARPF4OON.mjs +2 -0
- package/out/__chunks__/chunk-ARPF4OON.mjs.map +7 -0
- package/out/__chunks__/chunk-CRKVTTK2.mjs +2 -0
- package/out/__chunks__/chunk-CRKVTTK2.mjs.map +7 -0
- package/out/__chunks__/chunk-IFJNPC67.mjs +1 -0
- package/out/__chunks__/chunk-IFJNPC67.mjs.map +7 -0
- package/out/__chunks__/chunk-ILRVZBDL.mjs +2 -0
- package/out/__chunks__/chunk-ILRVZBDL.mjs.map +7 -0
- package/out/__chunks__/chunk-LO6PRAW2.mjs +2 -0
- package/out/__chunks__/chunk-LO6PRAW2.mjs.map +7 -0
- package/out/__chunks__/chunk-MFDD33CC.mjs +2 -0
- package/out/__chunks__/chunk-MFDD33CC.mjs.map +7 -0
- package/out/__chunks__/chunk-P5U2NZJJ.mjs +2 -0
- package/out/__chunks__/chunk-P5U2NZJJ.mjs.map +7 -0
- package/out/__chunks__/chunk-PE2DWF25.mjs +20 -0
- package/out/__chunks__/chunk-PE2DWF25.mjs.map +7 -0
- package/out/__chunks__/chunk-UADEV64E.mjs +2 -0
- package/out/__chunks__/chunk-UADEV64E.mjs.map +7 -0
- package/out/__chunks__/chunk-UHIELAL2.mjs +102 -0
- package/out/__chunks__/chunk-UHIELAL2.mjs.map +7 -0
- package/out/__chunks__/chunk-X6LLUYE7.mjs +2 -0
- package/out/__chunks__/chunk-X6LLUYE7.mjs.map +7 -0
- package/out/errors.mjs +2 -0
- package/out/errors.mjs.map +7 -0
- package/out/index.mjs +2 -0
- package/out/index.mjs.map +7 -0
- package/out/test-utils/createMockTransaction.mjs +2 -0
- package/out/test-utils/createMockTransaction.mjs.map +7 -0
- package/out/test-utils/getWalletWindowMock.mjs +2 -0
- package/out/test-utils/getWalletWindowMock.mjs.map +7 -0
- package/out/test-utils/index.mjs +2 -0
- package/out/test-utils/index.mjs.map +7 -0
- package/out/test-utils/mockWindowManager.d.ts +2 -0
- package/out/test-utils/mockWindowManager.js +11 -0
- package/out/test-utils/mockWindowManager.js.map +1 -0
- package/out/test-utils/mockWindowManager.mjs +2 -0
- package/out/test-utils/mockWindowManager.mjs.map +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# mx-sdk-js-web-wallet-cross-window-provider
|
|
2
2
|
|
|
3
|
-
Signing provider for dApps: Cross Window.
|
|
3
|
+
Signing provider for dApps: Web Wallet Cross Window Provider.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This package is part of the MultiversX SDK, which is a set of tools and libraries that allow developers to build decentralized applications (dApps) on the MultiversX blockchain.
|
|
6
|
+
By using this package, developers can integrate the MultiversX Web Wallet into their dApps, allowing users to sign transactions and messages with their MultiversX account.
|
|
7
|
+
The connection between the dApp and the Web Wallet is established through a cross-window communication channel, which is managed by the Web Wallet Cross Window Provider.
|
|
8
|
+
|
|
9
|
+
Documentation is available on [docs.multiversx.com](https://docs.multiversx.com/sdk-and-tools/sdk-js/sdk-js-signing-providers/#the-web-wallet-cross-window-provider), while an integration example can be found [here](https://github.com/multiversx/mx-sdk-js-examples/tree/main/signing-providers).
|
|
6
10
|
|
|
7
11
|
Note that **we recommend using [sdk-dapp](https://github.com/multiversx/mx-sdk-dapp)** instead of integrating the signing provider on your own.
|
|
8
12
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../__chunks__/chunk-MFDD33CC.mjs";import"../__chunks__/chunk-IFJNPC67.mjs";import"../__chunks__/chunk-ILRVZBDL.mjs";import"../__chunks__/chunk-7BAKJMGJ.mjs";import"../__chunks__/chunk-UHIELAL2.mjs";import"../__chunks__/chunk-X6LLUYE7.mjs";import"../__chunks__/chunk-67SNURO7.mjs";import"../__chunks__/chunk-CRKVTTK2.mjs";import"../__chunks__/chunk-PE2DWF25.mjs";import"../__chunks__/chunk-ARPF4OON.mjs";export{a as CrossWindowProvider};
|
|
2
|
+
//# sourceMappingURL=CrossWindowProvider.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b,c}from"../../__chunks__/chunk-UHIELAL2.mjs";import"../../__chunks__/chunk-X6LLUYE7.mjs";import"../../__chunks__/chunk-67SNURO7.mjs";import"../../__chunks__/chunk-ARPF4OON.mjs";c();export{b as PopupConsent,a as confirmationDialogTag};
|
|
2
|
+
//# sourceMappingURL=PopupConsent.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as c}from"../../__chunks__/chunk-7BAKJMGJ.mjs";import{a,b}from"../../__chunks__/chunk-UHIELAL2.mjs";import"../../__chunks__/chunk-X6LLUYE7.mjs";import"../../__chunks__/chunk-67SNURO7.mjs";import"../../__chunks__/chunk-ARPF4OON.mjs";c();export{b as PopupConsent,a as confirmationDialogTag};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../__chunks__/chunk-7EG66KV4.mjs";import{a as c}from"../__chunks__/chunk-MFDD33CC.mjs";import"../__chunks__/chunk-IFJNPC67.mjs";import"../__chunks__/chunk-ILRVZBDL.mjs";import"../__chunks__/chunk-7BAKJMGJ.mjs";import{a,b}from"../__chunks__/chunk-UHIELAL2.mjs";import"../__chunks__/chunk-X6LLUYE7.mjs";import"../__chunks__/chunk-67SNURO7.mjs";import"../__chunks__/chunk-CRKVTTK2.mjs";import"../__chunks__/chunk-PE2DWF25.mjs";import"../__chunks__/chunk-ARPF4OON.mjs";export{c as CrossWindowProvider,b as PopupConsent,a as confirmationDialogTag};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import{b as _}from"./chunk-ARPF4OON.mjs";var Q,W=_(()=>{"use strict";Q=class{get shadowRoot(){return this.__host.__shadowRoot}constructor(t){this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBraileLabel="",this.ariaBraileRoleDescription="",this.ariaBusy="",this.ariaChecked="",this.ariaColCount="",this.ariaColIndex="",this.ariaColSpan="",this.ariaCurrent="",this.ariaDescription="",this.ariaDisabled="",this.ariaExpanded="",this.ariaHasPopup="",this.ariaHidden="",this.ariaInvalid="",this.ariaKeyShortcuts="",this.ariaLabel="",this.ariaLevel="",this.ariaLive="",this.ariaModal="",this.ariaMultiLine="",this.ariaMultiSelectable="",this.ariaOrientation="",this.ariaPlaceholder="",this.ariaPosInSet="",this.ariaPressed="",this.ariaReadOnly="",this.ariaRequired="",this.ariaRoleDescription="",this.ariaRowCount="",this.ariaRowIndex="",this.ariaRowSpan="",this.ariaSelected="",this.ariaSetSize="",this.ariaSort="",this.ariaValueMax="",this.ariaValueMin="",this.ariaValueNow="",this.ariaValueText="",this.role="",this.form=null,this.labels=[],this.states=new Set,this.validationMessage="",this.validity={},this.willValidate=!0,this.__host=t}checkValidity(){return console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true."),!0}reportValidity(){return!0}setFormValue(){}setValidity(){}}});var tt,x,wt,xt,et,Ct,Rt,it,st=_(()=>{"use strict";W();W();tt=new WeakMap,x=r=>{let t=tt.get(r);return t===void 0&&tt.set(r,t=new Map),t},wt=class{constructor(){this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}get attributes(){return Array.from(x(this)).map(([t,e])=>({name:t,value:e}))}get shadowRoot(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}setAttribute(t,e){x(this).set(t,String(e))}removeAttribute(t){x(this).delete(t)}toggleAttribute(t,e){if(this.hasAttribute(t)){if(e===void 0||!e)return this.removeAttribute(t),!1}else return e===void 0||e?(this.setAttribute(t,""),!0):!1;return!0}hasAttribute(t){return x(this).has(t)}attachShadow(t){let e={host:this};return this.__shadowRootMode=t.mode,t&&t.mode==="open"&&(this.__shadowRoot=e),e}attachInternals(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");let t=new Q(this);return this.__internals=t,t}getAttribute(t){return x(this).get(t)??null}},xt=class extends wt{},et=xt,Ct=class{constructor(){this.__definitions=new Map}define(t,e){if(this.__definitions.has(t))if(process.env.NODE_ENV==="development")console.warn(`'CustomElementRegistry' already has "${t}" defined. This may have been caused by live reload or hot module replacement in which case it can be safely ignored.
|
|
2
|
+
Make sure to test your application with a production build as repeat registrations will throw in production.`);else throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);this.__definitions.set(t,{ctor:e,observedAttributes:e.observedAttributes??[]})}get(t){return this.__definitions.get(t)?.ctor}},Rt=Ct,it=new Rt});var C,k,ot,rt,O,p,j,D,q=_(()=>{"use strict";C=globalThis,k=C.ShadowRoot&&(C.ShadyCSS===void 0||C.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ot=Symbol(),rt=new WeakMap,O=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==ot)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(k&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=rt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&rt.set(e,t))}return t}toString(){return this.cssText}},p=r=>new O(typeof r=="string"?r:r+"",void 0,ot),j=(r,t)=>{if(k)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),s=C.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)}},D=k||C.CSSStyleSheet===void 0?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return p(e)})(r):r});var Pt,Tt,Mt,Ht,Ut,Nt,P,at,Lt,Ot,R,F,ht,nt,$,z=_(()=>{"use strict";st();q();q();({is:Pt,defineProperty:Tt,getOwnPropertyDescriptor:Mt,getOwnPropertyNames:Ht,getOwnPropertySymbols:Ut,getPrototypeOf:Nt}=Object),P=globalThis;P.customElements??=it;at=P.trustedTypes,Lt=at?at.emptyScript:"",Ot=P.reactiveElementPolyfillSupport,R=(r,t)=>r,F={toAttribute(r,t){switch(t){case Boolean:r=r?Lt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},ht=(r,t)=>!Pt(r,t),nt={attribute:!0,type:String,converter:F,reflect:!1,hasChanged:ht};Symbol.metadata??=Symbol("metadata"),P.litPropertyMetadata??=new WeakMap;$=class extends(globalThis.HTMLElement??et){static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=nt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Tt(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){let{get:s,set:o}=Mt(this.prototype,t)??{get(){return this[e]},set(a){this[e]=a}};return{get(){return s?.call(this)},set(a){let u=s?.call(this);o.call(this,a),this.requestUpdate(t,u,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??nt}static _$Ei(){if(this.hasOwnProperty(R("elementProperties")))return;let t=Nt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(R("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(R("properties"))){let e=this.properties,i=[...Ht(e),...Ut(e)];for(let s of i)this.createProperty(s,e[s])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let s of i)e.unshift(D(s))}else t!==void 0&&e.push(D(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return j(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){let i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){let o=(i.converter?.toAttribute!==void 0?i.converter:F).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){let i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let o=i.getPropertyOptions(s),a=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:F;this._$Em=s,this[s]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??ht)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[s,o]of i)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],o)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EC(e,this[e])),this._$EU()}updated(t){}firstUpdated(t){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[R("elementProperties")]=new Map,$[R("finalized")]=new Map,Ot?.({ReactiveElement:$}),(P.reactiveElementVersions??=[]).push("2.0.4")});function gt(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return lt!==void 0?lt.createHTML(t):t}function b(r,t,e=r,i){if(t===v)return t;let s=i!==void 0?e._$Co?.[i]:e._$Cl,o=H(t)?void 0:t._$litDirective$;return s?.constructor!==o&&(s?._$AO?.(!1),o===void 0?s=void 0:(s=new o(r),s._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=s:e._$Cl=s),s!==void 0&&(t=b(r,s._$AS(r,t.values),s,i)),t}var V,I,lt,_t,y,$t,kt,S,M,H,ft,Dt,K,T,ct,dt,A,pt,ut,yt,At,ae,ne,v,c,mt,g,zt,U,Z,N,E,J,X,Y,G,It,St,B=_(()=>{"use strict";V=globalThis,I=V.trustedTypes,lt=I?I.createPolicy("lit-html",{createHTML:r=>r}):void 0,_t="$lit$",y=`lit$${(Math.random()+"").slice(9)}$`,$t="?"+y,kt=`<${$t}>`,S=V.document===void 0?{createTreeWalker:()=>({})}:document,M=()=>S.createComment(""),H=r=>r===null||typeof r!="object"&&typeof r!="function",ft=Array.isArray,Dt=r=>ft(r)||typeof r?.[Symbol.iterator]=="function",K=`[
|
|
3
|
+
\f\r]`,T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ct=/-->/g,dt=/>/g,A=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),pt=/'/g,ut=/"/g,yt=/^(?:script|style|textarea|title)$/i,At=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),ae=At(1),ne=At(2),v=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),mt=new WeakMap,g=S.createTreeWalker(S,129);zt=(r,t)=>{let e=r.length-1,i=[],s,o=t===2?"<svg>":"",a=T;for(let u=0;u<e;u++){let n=r[u],l,d,h=-1,m=0;for(;m<n.length&&(a.lastIndex=m,d=a.exec(n),d!==null);)m=a.lastIndex,a===T?d[1]==="!--"?a=ct:d[1]!==void 0?a=dt:d[2]!==void 0?(yt.test(d[2])&&(s=RegExp("</"+d[2],"g")),a=A):d[3]!==void 0&&(a=A):a===A?d[0]===">"?(a=s??T,h=-1):d[1]===void 0?h=-2:(h=a.lastIndex-d[2].length,l=d[1],a=d[3]===void 0?A:d[3]==='"'?ut:pt):a===ut||a===pt?a=A:a===ct||a===dt?a=T:(a=A,s=void 0);let f=a===A&&r[u+1].startsWith("/>")?" ":"";o+=a===T?n+kt:h>=0?(i.push(l),n.slice(0,h)+_t+n.slice(h)+y+f):n+y+(h===-2?u:f)}return[gt(r,o+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},U=class r{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,a=0,u=t.length-1,n=this.parts,[l,d]=zt(t,e);if(this.el=r.createElement(l,i),g.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=g.nextNode())!==null&&n.length<u;){if(s.nodeType===1){if(s.hasAttributes())for(let h of s.getAttributeNames())if(h.endsWith(_t)){let m=d[a++],f=s.getAttribute(h).split(y),L=/([.?@])?(.*)/.exec(m);n.push({type:1,index:o,name:L[2],strings:f,ctor:L[1]==="."?J:L[1]==="?"?X:L[1]==="@"?Y:E}),s.removeAttribute(h)}else h.startsWith(y)&&(n.push({type:6,index:o}),s.removeAttribute(h));if(yt.test(s.tagName)){let h=s.textContent.split(y),m=h.length-1;if(m>0){s.textContent=I?I.emptyScript:"";for(let f=0;f<m;f++)s.append(h[f],M()),g.nextNode(),n.push({type:2,index:++o});s.append(h[m],M())}}}else if(s.nodeType===8)if(s.data===$t)n.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(y,h+1))!==-1;)n.push({type:7,index:o}),h+=y.length-1}o++}}static createElement(t,e){let i=S.createElement("template");return i.innerHTML=t,i}};Z=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,s=(t?.creationScope??S).importNode(e,!0);g.currentNode=s;let o=g.nextNode(),a=0,u=0,n=i[0];for(;n!==void 0;){if(a===n.index){let l;n.type===2?l=new N(o,o.nextSibling,this,t):n.type===1?l=new n.ctor(o,n.name,n.strings,this,t):n.type===6&&(l=new G(o,this,t)),this._$AV.push(l),n=i[++u]}a!==n?.index&&(o=g.nextNode(),a++)}return g.currentNode=S,s}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},N=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=b(this,t,e),H(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==v&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Dt(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==c&&H(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=U.createElement(gt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(e);else{let o=new Z(s,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=mt.get(t.strings);return e===void 0&&mt.set(t.strings,e=new U(t)),e}k(t){ft(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,s=0;for(let o of t)s===e.length?e.push(i=new r(this.S(M()),this.S(M()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},E=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=c}_$AI(t,e=this,i,s){let o=this.strings,a=!1;if(o===void 0)t=b(this,t,e,0),a=!H(t)||t!==this._$AH&&t!==v,a&&(this._$AH=t);else{let u=t,n,l;for(t=o[0],n=0;n<o.length-1;n++)l=b(this,u[i+n],e,n),l===v&&(l=this._$AH[n]),a||=!H(l)||l!==this._$AH[n],l===c?t=c:t!==c&&(t+=(l??"")+o[n+1]),this._$AH[n]=l}a&&!s&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},J=class extends E{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}},X=class extends E{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}},Y=class extends E{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){if((t=b(this,t,e,0)??c)===v)return;let i=this._$AH,s=t===c&&i!==c||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==c&&(i===c||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},G=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){b(this,t)}},It=V.litHtmlPolyfillSupport;It?.(U,N),(V.litHtmlVersions??=[]).push("3.1.2");St=(r,t,e)=>{let i=e?.renderBefore??t,s=i._$litPart$;if(s===void 0){let o=e?.renderBefore??null;i._$litPart$=s=new N(t.insertBefore(M(),o),o,void 0,e??{})}return s._$AI(r),s}});var w,Vt,vt=_(()=>{"use strict";z();z();B();B();w=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=St(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return v}};w._$litElement$=!0,w.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:w});Vt=globalThis.litElementPolyfillSupport;Vt?.({LitElement:w});(globalThis.litElementVersions??=[]).push("4.0.4")});var bt=_(()=>{"use strict";});var Et=_(()=>{"use strict";z();B();vt();bt()});var Se,Bt=_(()=>{Et();Se=r=>`#${p(r)} {
|
|
5
|
+
position: fixed;
|
|
6
|
+
z-index: 9999;
|
|
7
|
+
padding-top: 100px;
|
|
8
|
+
left: 50%;
|
|
9
|
+
top: 50%;
|
|
10
|
+
transform: translate(-50%, -50%);
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
overflow: auto;
|
|
14
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#${p(r)}:modal {
|
|
20
|
+
max-width: 100vw;
|
|
21
|
+
width: 100vw;
|
|
22
|
+
max-height: 100vh;
|
|
23
|
+
height: 100vh;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
#${p(r)} .content {
|
|
27
|
+
background: #fff;
|
|
28
|
+
border-radius: 20px;
|
|
29
|
+
z-index: 9999;
|
|
30
|
+
max-width: 500px;
|
|
31
|
+
margin: auto;
|
|
32
|
+
padding: 0;
|
|
33
|
+
position: relative;
|
|
34
|
+
width: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
#${p(r)} .body {
|
|
38
|
+
padding: 50px 0;
|
|
39
|
+
color: #262525;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#${p(r)} .title {
|
|
43
|
+
text-align: center;
|
|
44
|
+
font-size: 1.5rem;
|
|
45
|
+
}
|
|
46
|
+
#${p(r)} .subtitle {
|
|
47
|
+
margin-top: 10px;
|
|
48
|
+
text-align: center;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
#${p(r)} .actions-container {
|
|
52
|
+
margin-top: 40px;
|
|
53
|
+
margin-bottom: 10px;
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
gap: 20px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
#${p(r)} .button {
|
|
60
|
+
max-width: 200px;
|
|
61
|
+
margin-top: 10px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
#${p(r)} button {
|
|
65
|
+
border-radius: 8px;
|
|
66
|
+
border: 1px solid transparent;
|
|
67
|
+
padding: 0.6em 1.2em;
|
|
68
|
+
font-size: 1em;
|
|
69
|
+
font-weight: 500;
|
|
70
|
+
font-family: inherit;
|
|
71
|
+
background-color: #efeeee;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
transition: border-color 0.25s;
|
|
74
|
+
}
|
|
75
|
+
#${p(r)} button:hover {
|
|
76
|
+
border-color: #cacaca;
|
|
77
|
+
}
|
|
78
|
+
#${p(r)} button:focus,
|
|
79
|
+
#${p(r)} button:focus-visible {
|
|
80
|
+
outline: 4px auto -webkit-focus-ring-color;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
#${p(r)} .btn-proceed {
|
|
84
|
+
background-color: #262626;
|
|
85
|
+
color: #fff;
|
|
86
|
+
padding-left: 40px;
|
|
87
|
+
padding-right: 40px;
|
|
88
|
+
}`});export{F as a,ht as b,z as c,ae as d,w as e,Et as f,Se as g,Bt as h};
|
|
89
|
+
/*! Bundled license information:
|
|
90
|
+
|
|
91
|
+
@lit-labs/ssr-dom-shim/lib/element-internals.js:
|
|
92
|
+
(**
|
|
93
|
+
* @license
|
|
94
|
+
* Copyright 2023 Google LLC
|
|
95
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
96
|
+
*)
|
|
97
|
+
|
|
98
|
+
@lit-labs/ssr-dom-shim/index.js:
|
|
99
|
+
(**
|
|
100
|
+
* @license
|
|
101
|
+
* Copyright 2019 Google LLC
|
|
102
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
103
|
+
*)
|
|
104
|
+
|
|
105
|
+
@lit/reactive-element/node/css-tag.js:
|
|
106
|
+
(**
|
|
107
|
+
* @license
|
|
108
|
+
* Copyright 2019 Google LLC
|
|
109
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
|
+
*)
|
|
111
|
+
|
|
112
|
+
lit-html/node/lit-html.js:
|
|
113
|
+
(**
|
|
114
|
+
* @license
|
|
115
|
+
* Copyright 2017 Google LLC
|
|
116
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
|
+
*)
|
|
118
|
+
|
|
119
|
+
lit-element/lit-element.js:
|
|
120
|
+
(**
|
|
121
|
+
* @license
|
|
122
|
+
* Copyright 2017 Google LLC
|
|
123
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
124
|
+
*)
|
|
125
|
+
|
|
126
|
+
lit-html/node/is-server.js:
|
|
127
|
+
(**
|
|
128
|
+
* @license
|
|
129
|
+
* Copyright 2022 Google LLC
|
|
130
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
131
|
+
*)
|
|
132
|
+
*/
|
|
133
|
+
//# sourceMappingURL=chunk-67SNURO7.mjs.map
|