@drfed/web 0.0.0-stage → 0.1.0-dev.561
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/.output/nitro.json +17 -0
- package/.output/public/.vite/manifest.json +483 -0
- package/.output/public/_build/assets/ActorDetailQuery.graphql-D96mwq1k.js +60 -0
- package/.output/public/_build/assets/ActorDetailQuery.graphql-DrxSNh1X.js +60 -0
- package/.output/public/_build/assets/CompleteLoginChallenge.graphql-C5Zq3wNh.js +10 -0
- package/.output/public/_build/assets/CopyButton-B2l484wE.js +1 -0
- package/.output/public/_build/assets/CopyButton-Bi-ZR8x9.css +1 -0
- package/.output/public/_build/assets/CreateInstanceMutation.graphql-B4CRy6cl.js +19 -0
- package/.output/public/_build/assets/CreateObjectMutation.graphql-B4A01dgV.js +23 -0
- package/.output/public/_build/assets/GenerateActorsMutation.graphql-mlHJNIbe.js +23 -0
- package/.output/public/_build/assets/GetHostQuery.graphql-CuzDdOdW.js +17 -0
- package/.output/public/_build/assets/GetHostQuery.graphql-o9K0Qkg0.js +17 -0
- package/.output/public/_build/assets/HomeViewerQuery.graphql-B903WWKs.js +8 -0
- package/.output/public/_build/assets/HttpStatusCode-bgaVzuLy.js +1 -0
- package/.output/public/_build/assets/InstanceActorListQuery.graphql-DmNwiEhM.js +24 -0
- package/.output/public/_build/assets/InstanceActorListQuery.graphql-paa7teUO.js +24 -0
- package/.output/public/_build/assets/InstanceDetailQuery.graphql-B52nR132.js +66 -0
- package/.output/public/_build/assets/InstanceDetailQuery.graphql-DSA2BcAV.js +66 -0
- package/.output/public/_build/assets/JNCCF6MP-CNMywyiC.js +1 -0
- package/.output/public/_build/assets/LP6E37CW-Cwv6G3n1.js +1 -0
- package/.output/public/_build/assets/SignInMutation.graphql-BalZYNFu.js +9 -0
- package/.output/public/_build/assets/TSB6MOZK-CpiH97G1.js +1 -0
- package/.output/public/_build/assets/Toast-3-eXCAKc.css +1 -0
- package/.output/public/_build/assets/Toast-C1zr9crB.js +1 -0
- package/.output/public/_build/assets/WorkspaceQuery.graphql-UoI7QDs4.js +23 -0
- package/.output/public/_build/assets/_...404_-WZ8kAljY.js +1 -0
- package/.output/public/_build/assets/_challengeId_-Dk-0l7zl.js +1 -0
- package/.output/public/_build/assets/_id_-YcZZShAv.css +1 -0
- package/.output/public/_build/assets/_id_-bpxdclBj.js +1 -0
- package/.output/public/_build/assets/_slug_-CyTA2aW7.css +1 -0
- package/.output/public/_build/assets/_slug_-DXfRknzJ.js +200 -0
- package/.output/public/_build/assets/about-DIrbzRsi.js +1 -0
- package/.output/public/_build/assets/actors-HfZh_afh.js +24 -0
- package/.output/public/_build/assets/client-CGFoRcqH.js +3 -0
- package/.output/public/_build/assets/components-5MVu7IcD.js +1 -0
- package/.output/public/_build/assets/dist-BrJ_B8nU.js +1 -0
- package/.output/public/_build/assets/dist-DVo0HS5G.js +1 -0
- package/.output/public/_build/assets/dist-WrlGlK67.js +1 -0
- package/.output/public/_build/assets/entry-client-BurSTYr9.css +1 -0
- package/.output/public/_build/assets/entry-client-Do7ocrsL.js +8 -0
- package/.output/public/_build/assets/form-BxigYd7J.css +1 -0
- package/.output/public/_build/assets/form.module-BecmEfV_.js +1 -0
- package/.output/public/_build/assets/index-BHn6sAgH.js +23 -0
- package/.output/public/_build/assets/index-BSLqnqN7.js +8 -0
- package/.output/public/_build/assets/index-B_xLBDOo.css +1 -0
- package/.output/public/_build/assets/instance-tpMrvJNZ.js +35 -0
- package/.output/public/_build/assets/label-Mv8GZ4jc.js +1 -0
- package/.output/public/_build/assets/objects-DPb8DI8A.css +1 -0
- package/.output/public/_build/assets/objects-DR9TfL-V.js +25 -0
- package/.output/public/_build/assets/relay-runtime-BX3uubtA.js +7 -0
- package/.output/public/_build/assets/routing-DMN2NHu6.js +1 -0
- package/.output/public/_build/assets/sign-in-B67sv7z8.js +10 -0
- package/.output/public/_build/assets/web-DB_Nkq2D.js +1 -0
- package/.output/public/apple-touch-icon.png +0 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/icon-192.png +0 -0
- package/.output/public/icon-512.png +0 -0
- package/.output/public/icon-mask.png +0 -0
- package/.output/public/icon.svg +395 -0
- package/.output/public/manifest.webmanifest +13 -0
- package/.output/server/_...404_-DDEH5apf.mjs +16 -0
- package/.output/server/_challengeId_-C_n_Bww9.mjs +100 -0
- package/.output/server/_chunks/ssr-renderer.mjs +26 -0
- package/.output/server/_id_-DqytvZEf.mjs +505 -0
- package/.output/server/_libs/@shikijs/core+[...].mjs +7173 -0
- package/.output/server/_libs/@shikijs/engine-javascript+[...].mjs +3110 -0
- package/.output/server/_libs/babel__runtime.mjs +243 -0
- package/.output/server/_libs/dequal.mjs +25 -0
- package/.output/server/_libs/faker-js__faker.mjs +13150 -0
- package/.output/server/_libs/fbjs.mjs +115 -0
- package/.output/server/_libs/h3+rou3+srvx.mjs +650 -0
- package/.output/server/_libs/hookable.mjs +41 -0
- package/.output/server/_libs/invariant.mjs +36 -0
- package/.output/server/_libs/relay-runtime.mjs +9704 -0
- package/.output/server/_libs/seroval-plugins.mjs +563 -0
- package/.output/server/_libs/seroval.mjs +2956 -0
- package/.output/server/_libs/shikijs__langs.mjs +3 -0
- package/.output/server/_libs/shikijs__themes.mjs +7 -0
- package/.output/server/_libs/solid-js.mjs +1248 -0
- package/.output/server/_libs/solid-relay+tiny-invariant.mjs +1029 -0
- package/.output/server/_libs/ufo.mjs +64 -0
- package/.output/server/_libs/valibot.mjs +711 -0
- package/.output/server/_runtime.mjs +33 -0
- package/.output/server/_slug_-CBOaSqoF.mjs +978 -0
- package/.output/server/_ssr/ActorDetailQuery.graphql-C1mWRP1B.mjs +283 -0
- package/.output/server/_ssr/CompleteLoginChallenge.graphql-CM7o_Md1.mjs +78 -0
- package/.output/server/_ssr/CopyButton-CQNR5D1y.mjs +43 -0
- package/.output/server/_ssr/CreateInstanceMutation.graphql-C-h2lGxz.mjs +116 -0
- package/.output/server/_ssr/CreateObjectMutation.graphql-C393Hp7q.mjs +166 -0
- package/.output/server/_ssr/GenerateActorsMutation.graphql-D2ADtn1j.mjs +163 -0
- package/.output/server/_ssr/GetHostQuery.graphql-C45XQo1i.mjs +127 -0
- package/.output/server/_ssr/HomeViewerQuery.graphql-Dote4Pkz.mjs +81 -0
- package/.output/server/_ssr/InstanceActorListQuery.graphql-DgItgN5t.mjs +167 -0
- package/.output/server/_ssr/InstanceDetailQuery.graphql-DP5wWWjX.mjs +367 -0
- package/.output/server/_ssr/JNCCF6MP-BAZlBnvx.mjs +419 -0
- package/.output/server/_ssr/LP6E37CW-D2Ih_b_K.mjs +163 -0
- package/.output/server/_ssr/SignInMutation.graphql-BBXmiay6.mjs +72 -0
- package/.output/server/_ssr/TSB6MOZK-D06WZb6o.mjs +166 -0
- package/.output/server/_ssr/Toast-Bb1gcxED.mjs +947 -0
- package/.output/server/_ssr/WorkspaceQuery.graphql-DnCO8t-4.mjs +153 -0
- package/.output/server/_ssr/about-CD3QIgf_.mjs +14 -0
- package/.output/server/_ssr/actors-CMWf-xQU.mjs +1160 -0
- package/.output/server/_ssr/dist-D6rgyh-L.mjs +81 -0
- package/.output/server/_ssr/dist-I7KRMRbA.mjs +432 -0
- package/.output/server/_ssr/form.module-CTvIl1lm.mjs +192 -0
- package/.output/server/_ssr/index-C4crD6q-.mjs +347 -0
- package/.output/server/_ssr/index-yuhuc6-X.mjs +111 -0
- package/.output/server/_ssr/instance-ZYWGeWd3.mjs +280 -0
- package/.output/server/_ssr/label-DAXzanI9.mjs +9 -0
- package/.output/server/_ssr/objects-D5MVukzB.mjs +4316 -0
- package/.output/server/_ssr/routing-DKTLkkbY.mjs +620 -0
- package/.output/server/_ssr/sign-in-CNHZb_zL.mjs +264 -0
- package/.output/server/_ssr/ssr.mjs +6121 -0
- package/.output/server/index.mjs +684 -0
- package/LICENSE +661 -0
- package/README.md +143 -2
- package/dist/bridge.d.mts +39 -0
- package/dist/bridge.mjs +104 -0
- package/dist/bridge.mjs.map +1 -0
- package/dist/request-policy.d.mts +8 -0
- package/dist/request-policy.mjs +94 -0
- package/dist/request-policy.mjs.map +1 -0
- package/dist/runtime.d.mts +14 -0
- package/dist/runtime.mjs +44 -0
- package/dist/runtime.mjs.map +1 -0
- package/package.json +123 -3
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import { r as __toESM } from "../_runtime.mjs";
|
|
2
|
+
import { n as require_relay_runtime } from "../_libs/relay-runtime.mjs";
|
|
3
|
+
import { D as Show, K as mergeProps, N as createComponent, V as createSignal, g as ssrAttribute, h as ssr, u as escape, v as ssrHydrationKey } from "../_libs/solid-js.mjs";
|
|
4
|
+
import { n as Title } from "./dist-D6rgyh-L.mjs";
|
|
5
|
+
import { y as useNavigate } from "./routing-DKTLkkbY.mjs";
|
|
6
|
+
import { t as Button } from "./JNCCF6MP-BAZlBnvx.mjs";
|
|
7
|
+
import { b as string, d as object, g as regex, h as pipe, n as check, o as maxLength, s as minLength, x as trim } from "../_libs/valibot.mjs";
|
|
8
|
+
import { i as createMutation } from "../_libs/solid-relay+tiny-invariant.mjs";
|
|
9
|
+
import { n as Form, r as createForm, t as Field } from "./dist-I7KRMRbA.mjs";
|
|
10
|
+
import { m as form_module_default } from "./form.module-CTvIl1lm.mjs";
|
|
11
|
+
import { t as TextField } from "./TSB6MOZK-D06WZb6o.mjs";
|
|
12
|
+
import { t as r } from "../_libs/faker-js__faker.mjs";
|
|
13
|
+
//#region node_modules/.nitro/vite/services/ssr/_build/assets/instance-ZYWGeWd3.js
|
|
14
|
+
var import_relay_runtime = /* @__PURE__ */ __toESM(require_relay_runtime());
|
|
15
|
+
/**
|
|
16
|
+
* @generated SignedSource<<84600ea91878a2fddd7b9f0de02c8ba1>>
|
|
17
|
+
* @lightSyntaxTransform
|
|
18
|
+
*/
|
|
19
|
+
var { ConcreteRequest } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
20
|
+
var node = function() {
|
|
21
|
+
var v0 = [{
|
|
22
|
+
"defaultValue": null,
|
|
23
|
+
"kind": "LocalArgument",
|
|
24
|
+
"name": "slug"
|
|
25
|
+
}], v1 = [{
|
|
26
|
+
"kind": "Variable",
|
|
27
|
+
"name": "slug",
|
|
28
|
+
"variableName": "slug"
|
|
29
|
+
}], v2 = {
|
|
30
|
+
"alias": "resultType",
|
|
31
|
+
"args": null,
|
|
32
|
+
"kind": "ScalarField",
|
|
33
|
+
"name": "__typename",
|
|
34
|
+
"storageKey": null
|
|
35
|
+
}, v3 = [{
|
|
36
|
+
"alias": null,
|
|
37
|
+
"args": null,
|
|
38
|
+
"kind": "ScalarField",
|
|
39
|
+
"name": "id",
|
|
40
|
+
"storageKey": null
|
|
41
|
+
}], v4 = {
|
|
42
|
+
"kind": "InlineFragment",
|
|
43
|
+
"selections": v3,
|
|
44
|
+
"type": "Instance",
|
|
45
|
+
"abstractKey": null
|
|
46
|
+
}, v5 = {
|
|
47
|
+
"kind": "InlineFragment",
|
|
48
|
+
"selections": [{
|
|
49
|
+
"alias": null,
|
|
50
|
+
"args": null,
|
|
51
|
+
"kind": "ScalarField",
|
|
52
|
+
"name": "message",
|
|
53
|
+
"storageKey": null
|
|
54
|
+
}],
|
|
55
|
+
"type": "CreateInstanceError",
|
|
56
|
+
"abstractKey": null
|
|
57
|
+
};
|
|
58
|
+
return {
|
|
59
|
+
"fragment": {
|
|
60
|
+
"argumentDefinitions": v0,
|
|
61
|
+
"kind": "Fragment",
|
|
62
|
+
"metadata": null,
|
|
63
|
+
"name": "CreateInstanceMutation",
|
|
64
|
+
"selections": [{
|
|
65
|
+
"alias": null,
|
|
66
|
+
"args": v1,
|
|
67
|
+
"concreteType": null,
|
|
68
|
+
"kind": "LinkedField",
|
|
69
|
+
"name": "createInstance",
|
|
70
|
+
"plural": false,
|
|
71
|
+
"selections": [
|
|
72
|
+
v2,
|
|
73
|
+
v4,
|
|
74
|
+
v5
|
|
75
|
+
],
|
|
76
|
+
"storageKey": null
|
|
77
|
+
}],
|
|
78
|
+
"type": "Mutation",
|
|
79
|
+
"abstractKey": null
|
|
80
|
+
},
|
|
81
|
+
"kind": "Request",
|
|
82
|
+
"operation": {
|
|
83
|
+
"argumentDefinitions": v0,
|
|
84
|
+
"kind": "Operation",
|
|
85
|
+
"name": "CreateInstanceMutation",
|
|
86
|
+
"selections": [{
|
|
87
|
+
"alias": null,
|
|
88
|
+
"args": v1,
|
|
89
|
+
"concreteType": null,
|
|
90
|
+
"kind": "LinkedField",
|
|
91
|
+
"name": "createInstance",
|
|
92
|
+
"plural": false,
|
|
93
|
+
"selections": [
|
|
94
|
+
{
|
|
95
|
+
"alias": null,
|
|
96
|
+
"args": null,
|
|
97
|
+
"kind": "ScalarField",
|
|
98
|
+
"name": "__typename",
|
|
99
|
+
"storageKey": null
|
|
100
|
+
},
|
|
101
|
+
v2,
|
|
102
|
+
v4,
|
|
103
|
+
v5,
|
|
104
|
+
{
|
|
105
|
+
"kind": "InlineFragment",
|
|
106
|
+
"selections": v3,
|
|
107
|
+
"type": "Node",
|
|
108
|
+
"abstractKey": "__isNode"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"storageKey": null
|
|
112
|
+
}]
|
|
113
|
+
},
|
|
114
|
+
"params": {
|
|
115
|
+
"cacheID": "603c9261f4a5f208776a425c778c5113",
|
|
116
|
+
"id": null,
|
|
117
|
+
"metadata": {},
|
|
118
|
+
"name": "CreateInstanceMutation",
|
|
119
|
+
"operationKind": "mutation",
|
|
120
|
+
"text": "mutation CreateInstanceMutation(\n $slug: String!\n) {\n createInstance(slug: $slug) {\n __typename\n resultType: __typename\n ... on Instance {\n id\n }\n ... on CreateInstanceError {\n message\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n}\n"
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}();
|
|
124
|
+
node.hash = "5ad12b89f55cfc92ed482ab731cd0d5e";
|
|
125
|
+
var { graphql } = import_relay_runtime?.default?.default?.__esModule ? import_relay_runtime.default.default : import_relay_runtime?.default?.__esModule ? import_relay_runtime.default : import_relay_runtime;
|
|
126
|
+
var _tmpl$ = [
|
|
127
|
+
"<p",
|
|
128
|
+
" class=\"",
|
|
129
|
+
"\" role=\"alert\">",
|
|
130
|
+
"</p>"
|
|
131
|
+
];
|
|
132
|
+
var _tmpl$2 = [
|
|
133
|
+
"<main",
|
|
134
|
+
"><!--$-->",
|
|
135
|
+
"<!--/--><section",
|
|
136
|
+
" aria-labelledby=\"create-instance-title\"><header",
|
|
137
|
+
"><h1 id=\"create-instance-title\">Create an instance</h1><p>Review the generated identifier for your new instance.</p></header><!--$-->",
|
|
138
|
+
"<!--/--><!--$-->",
|
|
139
|
+
"<!--/--></section></main>"
|
|
140
|
+
];
|
|
141
|
+
var _tmpl$3 = ["<span", ">Generated · Read only</span>"];
|
|
142
|
+
var _tmpl$4 = [
|
|
143
|
+
"<span",
|
|
144
|
+
" id=\"slug-error\" class=\"",
|
|
145
|
+
"\" role=\"alert\">",
|
|
146
|
+
"</span>"
|
|
147
|
+
];
|
|
148
|
+
var id$$ = "src/routes/workspace/create/instance.tsx?pick=default&pick=$css&lang.tsx";
|
|
149
|
+
var createInstanceMutation = node;
|
|
150
|
+
var createInstanceSchema = object({ slug: pipe(string(), trim(), minLength(4, "The slug must contain at least 4 characters."), maxLength(63, "The slug must contain at most 63 characters."), regex(/^[a-z0-9][a-z0-9-]*[a-z0-9]$/u, "The slug can contain only lowercase letters, numbers, and hyphens, and must start and end with a letter or a number."), check((slug) => !/^..--/u.test(slug) || slug.startsWith("xn--"), "The slug cannot have two hyphens as its third and fourth characters, unless it begins with `xn--`.")) });
|
|
151
|
+
var generateSlugWord = () => r.word.noun({ length: {
|
|
152
|
+
min: 1,
|
|
153
|
+
max: 20
|
|
154
|
+
} });
|
|
155
|
+
function CreateInstancePage() {
|
|
156
|
+
const navigate = useNavigate();
|
|
157
|
+
const [errorMessage, setErrorMessage] = createSignal();
|
|
158
|
+
const [commitCreateInstance, isCreatingInstance] = createMutation(createInstanceMutation);
|
|
159
|
+
const createInstanceForm = createForm({
|
|
160
|
+
schema: createInstanceSchema,
|
|
161
|
+
initialInput: { slug: [
|
|
162
|
+
generateSlugWord(),
|
|
163
|
+
generateSlugWord(),
|
|
164
|
+
generateSlugWord()
|
|
165
|
+
].join("-").toLowerCase() }
|
|
166
|
+
});
|
|
167
|
+
const submit = ({ slug }) => {
|
|
168
|
+
setErrorMessage(void 0);
|
|
169
|
+
commitCreateInstance({
|
|
170
|
+
variables: { slug },
|
|
171
|
+
onCompleted: (response, errors) => {
|
|
172
|
+
const graphQLErrors = errors ?? [];
|
|
173
|
+
if (graphQLErrors.length > 0) {
|
|
174
|
+
setErrorMessage(graphQLErrors.map((error) => error.message).join("\n"));
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
switch (response.createInstance.resultType) {
|
|
178
|
+
case "CreateInstanceError":
|
|
179
|
+
setErrorMessage(response.createInstance.message);
|
|
180
|
+
return;
|
|
181
|
+
case "Instance":
|
|
182
|
+
navigate("/workspace/");
|
|
183
|
+
return;
|
|
184
|
+
case "%other":
|
|
185
|
+
setErrorMessage("Unable to create the instance.");
|
|
186
|
+
return;
|
|
187
|
+
default: setErrorMessage("Unable to create the instance.");
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
onError: (error) => {
|
|
191
|
+
setErrorMessage(error.message);
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
const buttonLabel = () => {
|
|
196
|
+
if (isCreatingInstance()) return "Creating instance…";
|
|
197
|
+
return "Create instance";
|
|
198
|
+
};
|
|
199
|
+
return ssr(_tmpl$2, ssrHydrationKey() + ssrAttribute("class", escape(form_module_default.page, true), false), escape(createComponent(Title, { children: "Create an instance — DrFed" })), ssrAttribute("class", escape(form_module_default.panel, true), false), ssrAttribute("class", escape(form_module_default.header, true), false), escape(createComponent(Form, {
|
|
200
|
+
get ["class"]() {
|
|
201
|
+
return form_module_default.form;
|
|
202
|
+
},
|
|
203
|
+
of: createInstanceForm,
|
|
204
|
+
onSubmit: submit,
|
|
205
|
+
get children() {
|
|
206
|
+
return [createComponent(Field, {
|
|
207
|
+
of: createInstanceForm,
|
|
208
|
+
path: ["slug"],
|
|
209
|
+
children: (field) => createComponent(TextField, {
|
|
210
|
+
get ["class"]() {
|
|
211
|
+
return form_module_default.field;
|
|
212
|
+
},
|
|
213
|
+
get name() {
|
|
214
|
+
return field.props.name;
|
|
215
|
+
},
|
|
216
|
+
get value() {
|
|
217
|
+
return field.input ?? "";
|
|
218
|
+
},
|
|
219
|
+
readOnly: true,
|
|
220
|
+
get children() {
|
|
221
|
+
return [
|
|
222
|
+
createComponent(TextField.Label, {
|
|
223
|
+
get ["class"]() {
|
|
224
|
+
return form_module_default.fieldHeading;
|
|
225
|
+
},
|
|
226
|
+
get children() {
|
|
227
|
+
return ["Slug", ssr(_tmpl$3, ssrHydrationKey() + ssrAttribute("class", escape(form_module_default.fieldStatus, true), false))];
|
|
228
|
+
}
|
|
229
|
+
}),
|
|
230
|
+
createComponent(TextField.Input, mergeProps(() => field.props, {
|
|
231
|
+
get ["class"]() {
|
|
232
|
+
return form_module_default.input;
|
|
233
|
+
},
|
|
234
|
+
get ["aria-invalid"]() {
|
|
235
|
+
return Boolean(field.errors);
|
|
236
|
+
},
|
|
237
|
+
get ["aria-describedby"]() {
|
|
238
|
+
return field.errors ? "slug-hint slug-error" : "slug-hint";
|
|
239
|
+
}
|
|
240
|
+
})),
|
|
241
|
+
createComponent(TextField.Description, {
|
|
242
|
+
id: "slug-hint",
|
|
243
|
+
get ["class"]() {
|
|
244
|
+
return form_module_default.hint;
|
|
245
|
+
},
|
|
246
|
+
children: "DrFed generates this identifier automatically. It cannot be edited."
|
|
247
|
+
}),
|
|
248
|
+
createComponent(Show, {
|
|
249
|
+
get when() {
|
|
250
|
+
return field.errors;
|
|
251
|
+
},
|
|
252
|
+
children: (errors) => ssr(_tmpl$4, ssrHydrationKey(), `${escape(form_module_default.notice, true)} ${escape(form_module_default.error, true)}`, escape(errors()[0]))
|
|
253
|
+
})
|
|
254
|
+
];
|
|
255
|
+
}
|
|
256
|
+
})
|
|
257
|
+
}), createComponent(Button, {
|
|
258
|
+
get ["class"]() {
|
|
259
|
+
return form_module_default.button;
|
|
260
|
+
},
|
|
261
|
+
type: "submit",
|
|
262
|
+
get disabled() {
|
|
263
|
+
return isCreatingInstance();
|
|
264
|
+
},
|
|
265
|
+
get children() {
|
|
266
|
+
return buttonLabel();
|
|
267
|
+
}
|
|
268
|
+
})];
|
|
269
|
+
}
|
|
270
|
+
})), escape(createComponent(Show, {
|
|
271
|
+
get when() {
|
|
272
|
+
return errorMessage();
|
|
273
|
+
},
|
|
274
|
+
get children() {
|
|
275
|
+
return ssr(_tmpl$, ssrHydrationKey(), `${escape(form_module_default.notice, true)} ${escape(form_module_default.error, true)}`, escape(errorMessage()));
|
|
276
|
+
}
|
|
277
|
+
})));
|
|
278
|
+
}
|
|
279
|
+
//#endregion
|
|
280
|
+
export { CreateInstancePage as default, id$$ };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/.nitro/vite/services/ssr/_build/assets/label-DAXzanI9.js
|
|
2
|
+
/**
|
|
3
|
+
* What names an actor to a reader: its handle, or its IRI for a remote actor
|
|
4
|
+
* that has no `preferredUsername`.
|
|
5
|
+
* @returns The handle or the IRI.
|
|
6
|
+
*/
|
|
7
|
+
var actorLabel = (actor) => actor.handle ?? actor.iri;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { actorLabel as t };
|