phirepass-widgets 0.0.4 → 0.0.6
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/cjs/{index-DEqYBozk.js → index-CrktD-u4.js} +111 -67
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/phirepass-sftp-client.cjs.entry.js +1 -1
- package/dist/cjs/phirepass-terminal.cjs.entry.js +13 -10
- package/dist/cjs/phirepass-widgets.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/phirepass-terminal/phirepass-terminal.js +2 -2
- package/dist/collection/phirepass-channel_bg.wasm +0 -0
- package/dist/components/index.js +1 -1
- package/dist/components/phirepass-terminal.js +1 -1
- package/dist/esm/{index-DvJqTeLJ.js → index-elO6rcMK.js} +111 -67
- package/dist/esm/loader.js +2 -2
- package/dist/esm/phirepass-sftp-client.entry.js +1 -1
- package/dist/esm/phirepass-terminal.entry.js +13 -10
- package/dist/esm/phirepass-widgets.js +3 -3
- package/dist/phirepass-widgets/{p-5bdfe1f8.entry.js → p-1201eb0d.entry.js} +2 -2
- package/dist/phirepass-widgets/p-37426f4b.entry.js +1 -0
- package/dist/phirepass-widgets/p-elO6rcMK.js +2 -0
- package/dist/phirepass-widgets/phirepass-channel_bg.wasm +0 -0
- package/dist/phirepass-widgets/phirepass-widgets.esm.js +1 -1
- package/dist/types/components.d.ts +12 -3
- package/dist/types/stencil-public-runtime.d.ts +20 -1
- package/package.json +8 -8
- package/dist/phirepass-widgets/p-DvJqTeLJ.js +0 -2
- package/dist/phirepass-widgets/p-b070cf72.entry.js +0 -1
|
@@ -4,7 +4,7 @@ const NAMESPACE = 'phirepass-widgets';
|
|
|
4
4
|
const BUILD = /* phirepass-widgets */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, prop: true, propChangeCallback: true, updatable: true};
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
|
-
Stencil Client Platform v4.
|
|
7
|
+
Stencil Client Platform v4.43.0 | MIT Licensed | https://stenciljs.com
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
var reWireGetterSetter = (instance, hostRef) => {
|
|
@@ -437,7 +437,37 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
437
437
|
}
|
|
438
438
|
let isProp = isMemberInElement(elm, memberName);
|
|
439
439
|
memberName.toLowerCase();
|
|
440
|
-
if (memberName === "key") ; else {
|
|
440
|
+
if (memberName === "key") ; else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
441
|
+
const propName = memberName.slice(5);
|
|
442
|
+
let attrName;
|
|
443
|
+
{
|
|
444
|
+
const hostRef = getHostRef(elm);
|
|
445
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
446
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
447
|
+
if (memberMeta && memberMeta[1]) {
|
|
448
|
+
attrName = memberMeta[1];
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
if (!attrName) {
|
|
453
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
454
|
+
}
|
|
455
|
+
if (newValue == null || newValue === false) {
|
|
456
|
+
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
457
|
+
elm.removeAttribute(attrName);
|
|
458
|
+
}
|
|
459
|
+
} else {
|
|
460
|
+
elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
461
|
+
}
|
|
462
|
+
return;
|
|
463
|
+
} else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
464
|
+
const propName = memberName.slice(5);
|
|
465
|
+
try {
|
|
466
|
+
elm[propName] = newValue;
|
|
467
|
+
} catch (e) {
|
|
468
|
+
}
|
|
469
|
+
return;
|
|
470
|
+
} else {
|
|
441
471
|
const isComplex = isComplexType(newValue);
|
|
442
472
|
if ((isProp || isComplex && newValue !== null) && true) {
|
|
443
473
|
try {
|
|
@@ -445,7 +475,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
445
475
|
const n = newValue == null ? "" : newValue;
|
|
446
476
|
if (memberName === "list") {
|
|
447
477
|
isProp = false;
|
|
448
|
-
} else if (oldValue == null || elm[memberName]
|
|
478
|
+
} else if (oldValue == null || elm[memberName] !== n) {
|
|
449
479
|
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
450
480
|
elm[memberName] = n;
|
|
451
481
|
} else {
|
|
@@ -827,7 +857,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
827
857
|
if (childrenPromises.length === 0) {
|
|
828
858
|
postUpdate();
|
|
829
859
|
} else {
|
|
830
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
860
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
831
861
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
832
862
|
childrenPromises.length = 0;
|
|
833
863
|
}
|
|
@@ -951,13 +981,16 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
951
981
|
});
|
|
952
982
|
}
|
|
953
983
|
}
|
|
954
|
-
if (
|
|
984
|
+
if (flags & 2 /* hasRendered */) {
|
|
955
985
|
if (instance.componentShouldUpdate) {
|
|
956
|
-
|
|
986
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
987
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
957
988
|
return;
|
|
958
989
|
}
|
|
959
990
|
}
|
|
960
|
-
|
|
991
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
992
|
+
scheduleUpdate(hostRef, false);
|
|
993
|
+
}
|
|
961
994
|
}
|
|
962
995
|
}
|
|
963
996
|
};
|
|
@@ -1111,73 +1144,84 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1111
1144
|
// src/runtime/initialize-component.ts
|
|
1112
1145
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1113
1146
|
let Cstr;
|
|
1114
|
-
|
|
1115
|
-
hostRef.$flags$
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1147
|
+
try {
|
|
1148
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1149
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1150
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1151
|
+
if (bundleId) {
|
|
1152
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1153
|
+
if (CstrImport && "then" in CstrImport) {
|
|
1154
|
+
const endLoad = uniqueTime();
|
|
1155
|
+
Cstr = await CstrImport;
|
|
1156
|
+
endLoad();
|
|
1157
|
+
} else {
|
|
1158
|
+
Cstr = CstrImport;
|
|
1159
|
+
}
|
|
1160
|
+
if (!Cstr) {
|
|
1161
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1162
|
+
}
|
|
1163
|
+
if (!Cstr.isProxied) {
|
|
1164
|
+
{
|
|
1165
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1166
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1167
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1168
|
+
}
|
|
1169
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1170
|
+
Cstr.isProxied = true;
|
|
1171
|
+
}
|
|
1172
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1130
1173
|
{
|
|
1131
|
-
|
|
1132
|
-
cmpMeta.$serializers$ = Cstr.serializers;
|
|
1133
|
-
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
1174
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1134
1175
|
}
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
{
|
|
1151
|
-
|
|
1176
|
+
try {
|
|
1177
|
+
new Cstr(hostRef);
|
|
1178
|
+
} catch (e) {
|
|
1179
|
+
consoleError(e, elm);
|
|
1180
|
+
}
|
|
1181
|
+
{
|
|
1182
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1183
|
+
}
|
|
1184
|
+
{
|
|
1185
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1186
|
+
}
|
|
1187
|
+
endNewInstance();
|
|
1188
|
+
{
|
|
1189
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1190
|
+
}
|
|
1191
|
+
} else {
|
|
1192
|
+
Cstr = elm.constructor;
|
|
1193
|
+
const cmpTag = elm.localName;
|
|
1194
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1152
1195
|
}
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1196
|
+
if (Cstr && Cstr.style) {
|
|
1197
|
+
let style;
|
|
1198
|
+
if (typeof Cstr.style === "string") {
|
|
1199
|
+
style = Cstr.style;
|
|
1200
|
+
}
|
|
1201
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
1202
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
|
|
1203
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1204
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1205
|
+
endRegisterStyles();
|
|
1206
|
+
}
|
|
1156
1207
|
}
|
|
1208
|
+
}
|
|
1209
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1210
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1211
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1212
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
1157
1213
|
} else {
|
|
1158
|
-
|
|
1159
|
-
const cmpTag = elm.localName;
|
|
1160
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1214
|
+
schedule();
|
|
1161
1215
|
}
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1171
|
-
endRegisterStyles();
|
|
1172
|
-
}
|
|
1216
|
+
} catch (e) {
|
|
1217
|
+
consoleError(e, elm);
|
|
1218
|
+
if (hostRef.$onRenderResolve$) {
|
|
1219
|
+
hostRef.$onRenderResolve$();
|
|
1220
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
1221
|
+
}
|
|
1222
|
+
if (hostRef.$onReadyResolve$) {
|
|
1223
|
+
hostRef.$onReadyResolve$(elm);
|
|
1173
1224
|
}
|
|
1174
|
-
}
|
|
1175
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1176
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1177
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1178
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
1179
|
-
} else {
|
|
1180
|
-
schedule();
|
|
1181
1225
|
}
|
|
1182
1226
|
};
|
|
1183
1227
|
var fireConnectedCallback = (instance, elm) => {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CrktD-u4.js');
|
|
4
4
|
|
|
5
5
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
6
6
|
/**
|
|
@@ -249,11 +249,14 @@ class Channel {
|
|
|
249
249
|
}
|
|
250
250
|
/**
|
|
251
251
|
* @param {string} endpoint
|
|
252
|
+
* @param {string} node_id
|
|
252
253
|
*/
|
|
253
|
-
constructor(endpoint) {
|
|
254
|
+
constructor(endpoint, node_id) {
|
|
254
255
|
const ptr0 = passStringToWasm0(endpoint, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
255
256
|
const len0 = WASM_VECTOR_LEN;
|
|
256
|
-
const
|
|
257
|
+
const ptr1 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
258
|
+
const len1 = WASM_VECTOR_LEN;
|
|
259
|
+
const ret = wasm.channel_new(ptr0, len0, ptr1, len1);
|
|
257
260
|
this.__wbg_ptr = ret >>> 0;
|
|
258
261
|
ChannelFinalization.register(this, this.__wbg_ptr, this);
|
|
259
262
|
return this;
|
|
@@ -525,10 +528,6 @@ function __wbg_get_imports() {
|
|
|
525
528
|
const ret = getObject(arg0).length;
|
|
526
529
|
return ret;
|
|
527
530
|
},
|
|
528
|
-
__wbg_new_057993d5b5e07835: function() { return handleError(function (arg0, arg1) {
|
|
529
|
-
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
530
|
-
return addHeapObject(ret);
|
|
531
|
-
}, arguments); },
|
|
532
531
|
__wbg_new_361308b2356cecd0: function() {
|
|
533
532
|
const ret = new Object();
|
|
534
533
|
return addHeapObject(ret);
|
|
@@ -541,6 +540,10 @@ function __wbg_get_imports() {
|
|
|
541
540
|
const ret = new Uint8Array(getObject(arg0));
|
|
542
541
|
return addHeapObject(ret);
|
|
543
542
|
},
|
|
543
|
+
__wbg_new_with_str_8406051fb31dddaa: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
544
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
545
|
+
return addHeapObject(ret);
|
|
546
|
+
}, arguments); },
|
|
544
547
|
__wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
|
|
545
548
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
546
549
|
},
|
|
@@ -576,7 +579,7 @@ function __wbg_get_imports() {
|
|
|
576
579
|
__wbg_set_onopen_b7b52d519d6c0f11: function(arg0, arg1) {
|
|
577
580
|
getObject(arg0).onopen = getObject(arg1);
|
|
578
581
|
},
|
|
579
|
-
|
|
582
|
+
__wbg_warn_c98fcea8b5580ed2: function(arg0, arg1) {
|
|
580
583
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
581
584
|
},
|
|
582
585
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
@@ -1110,7 +1113,7 @@ const PhirepassTerminal = class {
|
|
|
1110
1113
|
}
|
|
1111
1114
|
}
|
|
1112
1115
|
open_comms() {
|
|
1113
|
-
this.channel = new Channel(`${this.createWebSocketEndpoint()}/api/web/ws
|
|
1116
|
+
this.channel = new Channel(`${this.createWebSocketEndpoint()}/api/web/ws`, this.nodeId);
|
|
1114
1117
|
this.channel.on_connection_open(() => {
|
|
1115
1118
|
this.channel.start_heartbeat(this.heartbeatInterval <= 15_000 ? 30_000 : this.heartbeatInterval);
|
|
1116
1119
|
this.channel.open_ssh_tunnel(this.nodeId);
|
|
@@ -1336,7 +1339,7 @@ const PhirepassTerminal = class {
|
|
|
1336
1339
|
this.usernameBuffer = "";
|
|
1337
1340
|
}
|
|
1338
1341
|
render() {
|
|
1339
|
-
return (index.h(index.Host, { key: '
|
|
1342
|
+
return (index.h(index.Host, { key: 'f554548d90e01c4a8ce0a326ebb37d53eea1f376' }, index.h("div", { key: 'afcc37241238d79e4781db3a5f5570c219647db5', id: "ccc" })));
|
|
1340
1343
|
}
|
|
1341
1344
|
static get watchers() { return {
|
|
1342
1345
|
"nodeId": [{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CrktD-u4.js');
|
|
4
4
|
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
5
5
|
|
|
6
6
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.
|
|
8
|
+
Stencil Client Patch Browser v4.43.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
var patchBrowser = () => {
|
|
@@ -161,7 +161,7 @@ export class PhirepassTerminal {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
open_comms() {
|
|
164
|
-
this.channel = new PhirepassChannel(`${this.createWebSocketEndpoint()}/api/web/ws
|
|
164
|
+
this.channel = new PhirepassChannel(`${this.createWebSocketEndpoint()}/api/web/ws`, this.nodeId);
|
|
165
165
|
this.channel.on_connection_open(() => {
|
|
166
166
|
this.channel.start_heartbeat(this.heartbeatInterval <= 15_000 ? 30_000 : this.heartbeatInterval);
|
|
167
167
|
this.channel.open_ssh_tunnel(this.nodeId);
|
|
@@ -387,7 +387,7 @@ export class PhirepassTerminal {
|
|
|
387
387
|
this.usernameBuffer = "";
|
|
388
388
|
}
|
|
389
389
|
render() {
|
|
390
|
-
return (h(Host, { key: '
|
|
390
|
+
return (h(Host, { key: 'f554548d90e01c4a8ce0a326ebb37d53eea1f376' }, h("div", { key: 'afcc37241238d79e4781db3a5f5570c219647db5', id: "ccc" })));
|
|
391
391
|
}
|
|
392
392
|
static get is() { return "phirepass-terminal"; }
|
|
393
393
|
static get encapsulation() { return "shadow"; }
|
|
Binary file
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var t,e=(t,e)=>{var n;Object.entries(null!=(n=e.l.t)?n:{}).map((([n,[l]])=>{if(31&l||32&l){const l=t[n],o=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);o&&Object.defineProperty(t,n,{get(){return o.get.call(this)},set(t){o.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.o.has(n)?e.o.get(n):l}}))},n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},l=(t,e)=>(0,console.error)(t,e),o=new Map,s="undefined"!=typeof window?window:{},i=s.HTMLElement||class{},r={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},c=(()=>{try{return!!s.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),u=!!c&&(()=>!!s.document&&Object.getOwnPropertyDescriptor(s.document.adoptedStyleSheets,"length").writable)(),f=!1,a=[],d=[],h=(t,e)=>n=>{t.push(n),f||(f=!0,e&&4&r.i?$(m):r.raf(m))},p=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},m=()=>{p(a),p(d),(f=a.length>0)&&r.raf(m)},$=t=>Promise.resolve(void 0).then(t),y=h(d,!0),b=t=>{const e=new URL(t,r.u);return e.origin!==s.location.origin?e.href:e.pathname},v=t=>r.u=t;function w(){const e=this.attachShadow({mode:"open"});void 0===t&&(t=null),t&&(u?e.adoptedStyleSheets.push(t):e.adoptedStyleSheets=[...e.adoptedStyleSheets,t])}var j,g=new WeakMap,O=t=>"sc-"+t.h,S=t=>"object"==(t=typeof t)||"function"===t,k=(t,e,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!S(l))&&(l+=""),s&&i?r[r.length-1].p+=l:r.push(s?M(null,l):l),i=s)};c(n),e&&e.key&&(o=e.key);const u=M(t,null);return u.m=e,r.length>0&&(u.$=r),u.v=o,u},M=(t,e)=>({i:0,j:t,p:null!=e?e:null,O:null,$:null,m:null,v:null}),E={},A=(t,e)=>null==t||S(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,C=(t,e,n,l,o,s)=>{if(n===l)return;let i=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"key"===e);else{const r=S(l);if(i||r&&null!==l)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&s||o)&&!r&&1===t.nodeType&&t.setAttribute(e,l=!0===l?"":l)}},N=(t,e,n)=>{const l=11===e.O.nodeType&&e.O.host?e.O.host:e.O,o=t&&t.m||{},s=e.m||{};for(const t of _(Object.keys(o)))t in s||C(l,t,o[t],void 0,n,e.i);for(const t of _(Object.keys(s)))C(l,t,o[t],s[t],n,e.i)};function _(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var x=!1,D=!1,P=(t,e,n)=>{const l=e.$[n];let o,i,r=0;if(!s.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=l.O=s.document.createElement(l.j),N(null,l,D),l.$){const e="template"===l.j?o.content:o;for(r=0;r<l.$.length;++r)i=P(t,l,r),i&&e.appendChild(i)}return o["s-hn"]=j,o},U=(t,e,n,l,o,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===j&&(r=r.shadowRoot),"template"===n.j&&(r=r.content);o<=s;++o)l[o]&&(i=P(null,n,o),i&&(l[o].O=i,F(r,i,e)))},L=(t,e,n)=>{for(let l=e;l<=n;++l){const e=t[l];if(e){const t=e.O;t&&t.remove()}}},R=(t,e,n=!1)=>t.j===e.j&&(n?(n&&!t.v&&e.v&&(t.v=e.v),!0):t.v===e.v),W=(t,e,n=!1)=>{const l=e.O=t.O,o=t.$,s=e.$;"slot"!==e.j||x||t.S!==e.S&&(e.O["s-sn"]=e.S||"",(t=>{r.i|=1;const e=t.closest(j.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),l=Array.from(t.__childNodes||t.childNodes);for(const t of n?l.reverse():l)null!=t["s-sh"]&&(F(e,t,null!=n?n:null),t["s-sh"]=void 0)}r.i&=-2})(e.O.parentElement)),N(t,e,D),null!==o&&null!==s?((t,e,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=l.length-1,m=l[0],$=l[p];const y="template"===n.j?t.content:t;for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==m)m=l[++c];else if(null==$)$=l[--p];else if(R(d,m,o))W(d,m,o),d=e[++r],m=l[++c];else if(R(h,$,o))W(h,$,o),h=e[--a],$=l[--p];else if(R(d,$,o))W(d,$,o),F(y,d.O,h.O.nextSibling),d=e[++r],$=l[--p];else if(R(h,m,o))W(h,m,o),F(y,h.O,d.O),h=e[--a],m=l[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].v&&e[f].v===m.v){u=f;break}u>=0?(i=e[u],i.j!==m.j?s=P(e&&e[c],n,u):(W(i,m,o),e[u]=void 0,s=i.O),m=l[++c]):(s=P(e&&e[c],n,c),m=l[++c]),s&&F(d.O.parentNode,s,d.O)}r>a?U(t,null==l[p+1]?null:l[p+1].O,n,l,c,p):c>p&&L(e,r,a)})(l,o,e,s,n):null!==s?U(l,null,e,s,0,s.length-1):!n&&null!==o&&L(o,0,o.length-1)},F=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),H=(t,e,n=!1)=>{const l=t.$hostElement$,o=t.l,s=t.k||M(null,null),i=(t=>t&&t.j===E)(e)?e:k(null,null,e);if(j=l.tagName,n&&i.m)for(const t of Object.keys(i.m))l.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.m[t]=l[t]);i.j=null,i.i|=4,t.k=i,i.O=s.O=l.shadowRoot||l,x=!(!(1&o.i)||128&o.i),W(s,i,n)},q=(t,e)=>{if(e&&!t.M&&e["s-p"]){const n=e["s-p"].push(new Promise((l=>t.M=()=>{e["s-p"].splice(n-1,1),l()})))}},V=(t,e)=>{if(t.i|=16,4&t.i)return void(t.i|=512);q(t,t.A);const n=()=>z(t,e);if(!e)return y(n);queueMicrotask((()=>{n()}))},z=(t,e)=>{const n=t.$hostElement$,l=n;if(!l)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return o=Q(l,e?"componentWillLoad":"componentWillUpdate",void 0,n),o=Y(o,(()=>Q(l,"componentWillRender",void 0,n))),Y(o,(()=>G(t,l,e)))},Y=(t,e)=>B(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),B=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,G=async(t,e,n)=>{var l;const i=t.$hostElement$,f=i["s-rc"];n&&(t=>{const e=t.l,n=t.$hostElement$,l=e.i,i=((t,e)=>{var n,l,i;const f=O(e),a=o.get(f);if(!s.document)return f;if(t=11===t.nodeType?t:s.document,a)if("string"==typeof a){let o,i=g.get(t=t.head||t);if(i||g.set(t,i=new Set),!i.has(f)){o=s.document.createElement("style"),o.textContent=a;const d=null!=(n=r.C)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=s.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=d&&o.setAttribute("nonce",d),!(1&e.i))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(o,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(c){const e=new(null!=(l=t.defaultView)?l:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(a),u?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=a+e.textContent:t.prepend(o)}else t.append(o);1&e.i&&t.insertBefore(o,null),4&e.i&&(o.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),i&&i.add(f)}}else{let e=g.get(t);if(e||g.set(t,e=new Set),!e.has(f)){const n=null!=(i=t.defaultView)?i:t.ownerDocument.defaultView;let l;if(a.constructor===n.CSSStyleSheet)l=a;else{l=new n.CSSStyleSheet;for(let t=0;t<a.cssRules.length;t++)l.insertRule(a.cssRules[t].cssText,t)}u?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l],e.add(f)}}return f})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=i,n.classList.add(i+"-h"))})(t);I(t,e,i,n),f&&(f.map((t=>t())),i["s-rc"]=void 0);{const e=null!=(l=i["s-p"])?l:[],n=()=>J(t);0===e.length?n():(Promise.all(e).then(n),t.i|=4,e.length=0)}},I=(t,e,n,o)=>{try{e=e.render(),t.i&=-17,t.i|=2,H(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},J=t=>{const e=t.$hostElement$,n=e,l=t.A;Q(n,"componentDidRender",void 0,e),64&t.i?Q(n,"componentDidUpdate",void 0,e):(t.i|=64,T(e),Q(n,"componentDidLoad",void 0,e),t.N(e),l||K()),t.M&&(t.M(),t.M=void 0),512&t.i&&$((()=>V(t,!1))),t.i&=-517},K=()=>{$((()=>(t=>{const e=r.ce("appload",{detail:{namespace:"phirepass-widgets"}});return t.dispatchEvent(e),e})(s)))},Q=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},T=t=>t.classList.add("hydrated"),X=(t,e,o,s)=>{const i=n(t);if(!i)return;const r=t,c=i.o.get(e),u=i.i,f=r;if(!((o=A(o,s.t[e][0]))===c||Number.isNaN(c)&&Number.isNaN(o))){if(i.o.set(e,o),s._){const t=s._[e];t&&t.map((t=>{try{const[[n,l]]=Object.entries(t);(128&u||1&l)&&(f?f[n](o,c,e):i.D.push((()=>{i.P[n](o,c,e)})))}catch(t){l(t,r)}}))}if(2==(18&u)){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(o,c,e))return;V(i,!1)}}},Z=(t,e)=>{var l,o;const s=t.prototype;{t.watchers&&!e._&&(e._=t.watchers),t.deserializers&&!e.U&&(e.U=t.deserializers),t.serializers&&!e.L&&(e.L=t.serializers);const i=Object.entries(null!=(l=e.t)?l:{});i.map((([t,[l]])=>{if(31&l||32&l){const{get:o,set:i}=Object.getOwnPropertyDescriptor(s,t)||{};o&&(e.t[t][0]|=2048),i&&(e.t[t][0]|=4096),Object.defineProperty(s,t,{get(){return o?o.apply(this):((t,e)=>n(this).o.get(e))(0,t)},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(o){const s=n(this);if(s){if(i)return void 0===(32&l?this[t]:s.$hostElement$[t])&&s.o.get(t)&&(o=s.o.get(t)),i.call(this,A(o,l)),void X(this,t,o=32&l?this[t]:s.$hostElement$[t],e);X(this,t,o,e)}}})}}));{const l=new Map;s.attributeChangedCallback=function(t,o,c){r.jmp((()=>{var r;const u=l.get(t),f=n(this);if(this.hasOwnProperty(u),s.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==c)return;if(null==u){const n=null==f?void 0:f.i;if(f&&n&&!(8&n)&&c!==o){const l=this,s=null==(r=e._)?void 0:r[t];null==s||s.forEach((e=>{const[[s,i]]=Object.entries(e);null!=l[s]&&(128&n||1&i)&&l[s].call(l,c,o,t)}))}return}const a=i.find((([t])=>t===u));a&&4&a[1][0]&&(c=null!==c&&"false"!==c);const d=Object.getOwnPropertyDescriptor(s,u);c==this[u]||d.get&&!d.set||(this[u]=c)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=e._)?o:{}),...i.filter((([t,e])=>31&e[0])).map((([t,e])=>{const n=e[1]||t;return l.set(n,t),n}))]))}}return t},tt=(t,l)=>{const s={i:l[0],h:l[1]};s.t=l[2],s._=t._,s.U=t.U,s.L=t.L;const i=t.prototype.connectedCallback,u=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,n)=>{const l={i:0,$hostElement$:t,l:n,o:new Map,R:new Map};l.W=new Promise((t=>l.N=t)),t["s-p"]=[],t["s-rc"]=[];const o=l;t.__stencil__getHostRef=()=>o,512&n.i&&e(t,l)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!n(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&r.i)){const e=n(t);if(!e)return;const l=e.l,s=()=>{};if(1&e.i)(null==e?void 0:e.P)||(null==e?void 0:e.W)&&e.W.then((()=>{}));else{e.i|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){q(e,e.A=n);break}}l.t&&Object.entries(l.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let l;if(!(32&e.i)&&(e.i|=32,l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.i|=128)),l&&l.style)){let t;"string"==typeof l.style&&(t=l.style);const e=O(n);if(!o.has(e)){const l=()=>{};((t,e,n)=>{let l=o.get(t);c&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,o.set(t,l)})(e,t,!!(1&n.i)),l()}}const s=e.A,i=()=>V(e,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(t,e,l)}s()}})(this),i&&i.call(this)},disconnectedCallback(){(async t=>{g.has(t)&&g.delete(t),t.shadowRoot&&g.has(t.shadowRoot)&&g.delete(t.shadowRoot)})(this),u&&u.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${s.h}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else w.call(this,s)}}),t.is=s.h,Z(t,s)},et=t=>r.C=t,nt=t=>Object.assign(r,t);function lt(t,e){H({l:{i:0,h:e.tagName},$hostElement$:e},t)}function ot(t){return t}export{i as H,E as a,b as getAssetPath,k as h,tt as p,lt as render,v as setAssetPath,et as setNonce,nt as setPlatformOptions,ot as t}
|
|
1
|
+
var t,e=(t,e)=>{var n;Object.entries(null!=(n=e.l.t)?n:{}).map((([n,[l]])=>{if(31&l||32&l){const l=t[n],o=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);o&&Object.defineProperty(t,n,{get(){return o.get.call(this)},set(t){o.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.o.has(n)?e.o.get(n):l}}))},n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},l=(t,e)=>(0,console.error)(t,e),o=new Map,s="undefined"!=typeof window?window:{},i=s.HTMLElement||class{},r={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},c=(()=>{try{return!!s.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),u=!!c&&(()=>!!s.document&&Object.getOwnPropertyDescriptor(s.document.adoptedStyleSheets,"length").writable)(),f=!1,a=[],d=[],h=(t,e)=>n=>{t.push(n),f||(f=!0,e&&4&r.i?$(m):r.raf(m))},p=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},m=()=>{p(a),p(d),(f=a.length>0)&&r.raf(m)},$=t=>Promise.resolve(void 0).then(t),y=h(d,!0),b=t=>{const e=new URL(t,r.u);return e.origin!==s.location.origin?e.href:e.pathname},v=t=>r.u=t;function w(){const e=this.attachShadow({mode:"open"});void 0===t&&(t=null),t&&(u?e.adoptedStyleSheets.push(t):e.adoptedStyleSheets=[...e.adoptedStyleSheets,t])}var j,g=new WeakMap,O=t=>"sc-"+t.h,S=t=>"object"==(t=typeof t)||"function"===t,k=(t,e,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!S(l))&&(l+=""),s&&i?r[r.length-1].p+=l:r.push(s?M(null,l):l),i=s)};c(n),e&&e.key&&(o=e.key);const u=M(t,null);return u.m=e,r.length>0&&(u.$=r),u.v=o,u},M=(t,e)=>({i:0,j:t,p:null!=e?e:null,O:null,$:null,m:null,v:null}),A={},E=(t,e)=>null==t||S(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,C=(t,e,l,o,s,i)=>{if(l===o)return;let r=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"key"===e);else{if("a"===e[0]&&e.startsWith("attr:")){const l=e.slice(5);let s;{const e=n(t);if(e&&e.l&&e.l.t){const t=e.l.t[l];t&&t[1]&&(s=t[1])}}return s||(s=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(s)||t.removeAttribute(s):t.setAttribute(s,!0===o?"":o))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=o}catch(t){}return}{const n=S(o);if(r||n&&null!==o)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const n=null==o?"":o;"list"===e?r=!1:null!=l&&t[e]===n||("function"==typeof t.__lookupSetter__(e)?t[e]=n:t.setAttribute(e,n))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!n&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}}},N=(t,e,n)=>{const l=11===e.O.nodeType&&e.O.host?e.O.host:e.O,o=t&&t.m||{},s=e.m||{};for(const t of _(Object.keys(o)))t in s||C(l,t,o[t],void 0,n,e.i);for(const t of _(Object.keys(s)))C(l,t,o[t],s[t],n,e.i)};function _(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var x=!1,D=!1,P=(t,e,n)=>{const l=e.$[n];let o,i,r=0;if(!s.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=l.O=s.document.createElement(l.j),N(null,l,D),l.$){const e="template"===l.j?o.content:o;for(r=0;r<l.$.length;++r)i=P(t,l,r),i&&e.appendChild(i)}return o["s-hn"]=j,o},U=(t,e,n,l,o,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===j&&(r=r.shadowRoot),"template"===n.j&&(r=r.content);o<=s;++o)l[o]&&(i=P(null,n,o),i&&(l[o].O=i,F(r,i,e)))},L=(t,e,n)=>{for(let l=e;l<=n;++l){const e=t[l];if(e){const t=e.O;t&&t.remove()}}},R=(t,e,n=!1)=>t.j===e.j&&(n?(n&&!t.v&&e.v&&(t.v=e.v),!0):t.v===e.v),W=(t,e,n=!1)=>{const l=e.O=t.O,o=t.$,s=e.$;"slot"!==e.j||x||t.S!==e.S&&(e.O["s-sn"]=e.S||"",(t=>{r.i|=1;const e=t.closest(j.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),l=Array.from(t.__childNodes||t.childNodes);for(const t of n?l.reverse():l)null!=t["s-sh"]&&(F(e,t,null!=n?n:null),t["s-sh"]=void 0)}r.i&=-2})(e.O.parentElement)),N(t,e,D),null!==o&&null!==s?((t,e,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=l.length-1,m=l[0],$=l[p];const y="template"===n.j?t.content:t;for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==m)m=l[++c];else if(null==$)$=l[--p];else if(R(d,m,o))W(d,m,o),d=e[++r],m=l[++c];else if(R(h,$,o))W(h,$,o),h=e[--a],$=l[--p];else if(R(d,$,o))W(d,$,o),F(y,d.O,h.O.nextSibling),d=e[++r],$=l[--p];else if(R(h,m,o))W(h,m,o),F(y,h.O,d.O),h=e[--a],m=l[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].v&&e[f].v===m.v){u=f;break}u>=0?(i=e[u],i.j!==m.j?s=P(e&&e[c],n,u):(W(i,m,o),e[u]=void 0,s=i.O),m=l[++c]):(s=P(e&&e[c],n,c),m=l[++c]),s&&F(d.O.parentNode,s,d.O)}r>a?U(t,null==l[p+1]?null:l[p+1].O,n,l,c,p):c>p&&L(e,r,a)})(l,o,e,s,n):null!==s?U(l,null,e,s,0,s.length-1):!n&&null!==o&&L(o,0,o.length-1)},F=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),H=(t,e,n=!1)=>{const l=t.$hostElement$,o=t.l,s=t.k||M(null,null),i=(t=>t&&t.j===A)(e)?e:k(null,null,e);if(j=l.tagName,n&&i.m)for(const t of Object.keys(i.m))l.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.m[t]=l[t]);i.j=null,i.i|=4,t.k=i,i.O=s.O=l.shadowRoot||l,x=!(!(1&o.i)||128&o.i),W(s,i,n)},q=(t,e)=>{if(e&&!t.M&&e["s-p"]){const n=e["s-p"].push(new Promise((l=>t.M=()=>{e["s-p"].splice(n-1,1),l()})))}},z=(t,e)=>{if(t.i|=16,4&t.i)return void(t.i|=512);q(t,t.A);const n=()=>V(t,e);if(!e)return y(n);queueMicrotask((()=>{n()}))},V=(t,e)=>{const n=t.$hostElement$,l=n;if(!l)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return o=K(l,e?"componentWillLoad":"componentWillUpdate",void 0,n),o=Y(o,(()=>K(l,"componentWillRender",void 0,n))),Y(o,(()=>B(t,l,e)))},Y=(t,e)=>Z(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Z=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,B=async(t,e,n)=>{var l;const i=t.$hostElement$,f=i["s-rc"];n&&(t=>{const e=t.l,n=t.$hostElement$,l=e.i,i=((t,e)=>{var n,l,i;const f=O(e),a=o.get(f);if(!s.document)return f;if(t=11===t.nodeType?t:s.document,a)if("string"==typeof a){let o,i=g.get(t=t.head||t);if(i||g.set(t,i=new Set),!i.has(f)){o=s.document.createElement("style"),o.textContent=a;const d=null!=(n=r.C)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=s.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=d&&o.setAttribute("nonce",d),!(1&e.i))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(o,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(c){const e=new(null!=(l=t.defaultView)?l:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(a),u?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=a+e.textContent:t.prepend(o)}else t.append(o);1&e.i&&t.insertBefore(o,null),4&e.i&&(o.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),i&&i.add(f)}}else{let e=g.get(t);if(e||g.set(t,e=new Set),!e.has(f)){const n=null!=(i=t.defaultView)?i:t.ownerDocument.defaultView;let l;if(a.constructor===n.CSSStyleSheet)l=a;else{l=new n.CSSStyleSheet;for(let t=0;t<a.cssRules.length;t++)l.insertRule(a.cssRules[t].cssText,t)}u?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l],e.add(f)}}return f})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=i,n.classList.add(i+"-h"))})(t);G(t,e,i,n),f&&(f.map((t=>t())),i["s-rc"]=void 0);{const e=null!=(l=i["s-p"])?l:[],n=()=>I(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.i|=4,e.length=0)}},G=(t,e,n,o)=>{try{e=e.render(),t.i&=-17,t.i|=2,H(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},I=t=>{const e=t.$hostElement$,n=e,l=t.A;K(n,"componentDidRender",void 0,e),64&t.i?K(n,"componentDidUpdate",void 0,e):(t.i|=64,Q(e),K(n,"componentDidLoad",void 0,e),t.N(e),l||J()),t.M&&(t.M(),t.M=void 0),512&t.i&&$((()=>z(t,!1))),t.i&=-517},J=()=>{$((()=>(t=>{const e=r.ce("appload",{detail:{namespace:"phirepass-widgets"}});return t.dispatchEvent(e),e})(s)))},K=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},Q=t=>t.classList.add("hydrated"),T=(t,e,o,s)=>{const i=n(t);if(!i)return;const r=t,c=i.o.get(e),u=i.i,f=r;if(!((o=E(o,s.t[e][0]))===c||Number.isNaN(c)&&Number.isNaN(o))){if(i.o.set(e,o),s._){const t=s._[e];t&&t.map((t=>{try{const[[n,l]]=Object.entries(t);(128&u||1&l)&&(f?f[n](o,c,e):i.D.push((()=>{i.P[n](o,c,e)})))}catch(t){l(t,r)}}))}if(2&u){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(o,c,e)&&!(16&u))return;16&u||z(i,!1)}}},X=(t,e)=>{var l,o;const s=t.prototype;{t.watchers&&!e._&&(e._=t.watchers),t.deserializers&&!e.U&&(e.U=t.deserializers),t.serializers&&!e.L&&(e.L=t.serializers);const i=Object.entries(null!=(l=e.t)?l:{});i.map((([t,[l]])=>{if(31&l||32&l){const{get:o,set:i}=Object.getOwnPropertyDescriptor(s,t)||{};o&&(e.t[t][0]|=2048),i&&(e.t[t][0]|=4096),Object.defineProperty(s,t,{get(){return o?o.apply(this):((t,e)=>n(this).o.get(e))(0,t)},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(o){const s=n(this);if(s){if(i)return void 0===(32&l?this[t]:s.$hostElement$[t])&&s.o.get(t)&&(o=s.o.get(t)),i.call(this,E(o,l)),void T(this,t,o=32&l?this[t]:s.$hostElement$[t],e);T(this,t,o,e)}}})}}));{const l=new Map;s.attributeChangedCallback=function(t,o,c){r.jmp((()=>{var r;const u=l.get(t),f=n(this);if(this.hasOwnProperty(u),s.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==c)return;if(null==u){const n=null==f?void 0:f.i;if(f&&n&&!(8&n)&&c!==o){const l=this,s=null==(r=e._)?void 0:r[t];null==s||s.forEach((e=>{const[[s,i]]=Object.entries(e);null!=l[s]&&(128&n||1&i)&&l[s].call(l,c,o,t)}))}return}const a=i.find((([t])=>t===u));a&&4&a[1][0]&&(c=null!==c&&"false"!==c);const d=Object.getOwnPropertyDescriptor(s,u);c==this[u]||d.get&&!d.set||(this[u]=c)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=e._)?o:{}),...i.filter((([t,e])=>31&e[0])).map((([t,e])=>{const n=e[1]||t;return l.set(n,t),n}))]))}}return t},tt=(t,s)=>{const i={i:s[0],h:s[1]};try{i.t=s[2],i._=t._,i.U=t.U,i.L=t.L;const u=t.prototype.connectedCallback,f=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,n)=>{const l={i:0,$hostElement$:t,l:n,o:new Map,R:new Map};l.W=new Promise((t=>l.N=t)),t["s-p"]=[],t["s-rc"]=[];const o=l;t.__stencil__getHostRef=()=>o,512&n.i&&e(t,l)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!n(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&r.i)){const e=n(t);if(!e)return;const s=e.l,i=()=>{};if(1&e.i)(null==e?void 0:e.P)||(null==e?void 0:e.W)&&e.W.then((()=>{}));else{e.i|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){q(e,e.A=n);break}}s.t&&Object.entries(s.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let s;try{if(!(32&e.i)&&(e.i|=32,s=t.constructor,customElements.whenDefined(t.localName).then((()=>e.i|=128)),s&&s.style)){let t;"string"==typeof s.style&&(t=s.style);const e=O(n);if(!o.has(e)){const l=()=>{};((t,e,n)=>{let l=o.get(t);c&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,o.set(t,l)})(e,t,!!(1&n.i)),l()}}const l=e.A,i=()=>z(e,!0);l&&l["s-rc"]?l["s-rc"].push(i):i()}catch(n){l(n,t),e.M&&(e.M(),e.M=void 0),e.N&&e.N(t)}})(t,e,s)}i()}})(this),u&&u.call(this)},disconnectedCallback(){(async t=>{g.has(t)&&g.delete(t),t.shadowRoot&&g.has(t.shadowRoot)&&g.delete(t.shadowRoot)})(this),f&&f.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${i.h}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else w.call(this,i)}}),Object.defineProperty(t,"is",{value:i.h,configurable:!0}),X(t,i)}catch(e){return l(e),t}},et=t=>r.C=t,nt=t=>Object.assign(r,t);function lt(t,e){H({l:{i:0,h:e.tagName},$hostElement$:e},t)}function ot(t){return t}export{i as H,A as a,b as getAssetPath,k as h,tt as p,lt as render,v as setAssetPath,et as setNonce,nt as setPlatformOptions,ot as t}
|