@safe-stars/components
Version:
React component library for buying Telegram Stars in Telegram Mini Apps via Safe Stars.
7 lines (6 loc) • 1.03 kB
JavaScript
"use strict";const n=require("./index-DFmTudTt.cjs"),o=require("./if-defined-CdwTRez8.cjs");/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const c=()=>new r;class r{}const e=new WeakMap,l=o.e$1(class extends o.f{render(t){return n.E}update(t,[i]){var h;const s=i!==this.G;return s&&this.G!==void 0&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.G=i,this.ht=(h=t.options)==null?void 0:h.host,this.rt(this.ct=t.element)),n.E}rt(t){if(this.isConnected||(t=void 0),typeof this.G=="function"){const i=this.ht??globalThis;let s=e.get(i);s===void 0&&(s=new WeakMap,e.set(i,s)),s.get(this.G)!==void 0&&this.G.call(this.ht,void 0),s.set(this.G,t),t!==void 0&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){var t,i;return typeof this.G=="function"?(t=e.get(this.ht??globalThis))==null?void 0:t.get(this.G):(i=this.G)==null?void 0:i.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});exports.e=c;exports.n=l;
//# sourceMappingURL=ref-CWlZ6M3T.cjs.map