@graphiql/plugin-query-builder 1.0.0-rc.1 → 1.0.0-rc.3

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.
@@ -34,7 +34,7 @@ function emptyDoc() {
34
34
  * external-edit sync, and all document-mutation handlers.
35
35
  */
36
36
  function useWorkingDocument() {
37
- const $ = c(105);
37
+ const $ = c(114);
38
38
  const schema = useGraphiQL(_temp);
39
39
  const queryEditor = useGraphiQL(_temp2);
40
40
  const variableEditor = useGraphiQL(_temp3);
@@ -116,23 +116,34 @@ function useWorkingDocument() {
116
116
  }
117
117
  useEffect(t5, t6);
118
118
  let t7;
119
- if ($[14] !== activeFragment || $[15] !== operationName) {
120
- t7 = activeFragment != null ? {
119
+ if ($[14] !== activeFragment || $[15] !== workingDoc) {
120
+ t7 = activeFragment != null && findDefinition(workingDoc, {
121
121
  kind: "fragment",
122
122
  name: activeFragment
123
- } : {
124
- kind: "operation",
125
- name: operationName
126
- };
123
+ }) ? activeFragment : null;
127
124
  $[14] = activeFragment;
128
- $[15] = operationName;
125
+ $[15] = workingDoc;
129
126
  $[16] = t7;
130
127
  } else t7 = $[16];
131
- const target = t7;
132
- const cursorPath = cursor.target != null && (activeFragment != null ? cursor.target.kind === "fragment" && cursor.target.name === activeFragment : cursor.target.kind === "operation") ? cursor.path : void 0;
128
+ const visibleFragment = t7;
133
129
  let t8;
134
- if ($[17] !== queryEditor) {
135
- t8 = function moveCursorToTarget(next) {
130
+ if ($[17] !== operationName || $[18] !== visibleFragment) {
131
+ t8 = visibleFragment != null ? {
132
+ kind: "fragment",
133
+ name: visibleFragment
134
+ } : {
135
+ kind: "operation",
136
+ name: operationName
137
+ };
138
+ $[17] = operationName;
139
+ $[18] = visibleFragment;
140
+ $[19] = t8;
141
+ } else t8 = $[19];
142
+ const target = t8;
143
+ const cursorPath = cursor.target != null && (visibleFragment != null ? cursor.target.kind === "fragment" && cursor.target.name === visibleFragment : cursor.target.kind === "operation") ? cursor.path : void 0;
144
+ let t9;
145
+ if ($[20] !== queryEditor) {
146
+ t9 = (next) => {
136
147
  setActiveFragment(next.kind === "fragment" ? next.name : null);
137
148
  if (!queryEditor) return;
138
149
  const model = queryEditor.getModel();
@@ -145,60 +156,86 @@ function useWorkingDocument() {
145
156
  }
146
157
  if (offset != null) queryEditor.setPosition(model.getPositionAt(offset));
147
158
  };
148
- $[17] = queryEditor;
149
- $[18] = t8;
150
- } else t8 = $[18];
151
- const moveCursorToTarget = t8;
152
- let t9;
153
- if ($[19] !== moveCursorToTarget) {
154
- t9 = function handleFocusFragment(fragmentName) {
159
+ $[20] = queryEditor;
160
+ $[21] = t9;
161
+ } else t9 = $[21];
162
+ const moveCursorToTarget = t9;
163
+ let t10;
164
+ let t11;
165
+ if ($[22] !== activeFragment || $[23] !== moveCursorToTarget || $[24] !== operationName || $[25] !== visibleFragment) {
166
+ t10 = () => {
167
+ if (activeFragment != null && visibleFragment == null) moveCursorToTarget({
168
+ kind: "operation",
169
+ name: operationName
170
+ });
171
+ };
172
+ t11 = [
173
+ activeFragment,
174
+ visibleFragment,
175
+ operationName,
176
+ moveCursorToTarget
177
+ ];
178
+ $[22] = activeFragment;
179
+ $[23] = moveCursorToTarget;
180
+ $[24] = operationName;
181
+ $[25] = visibleFragment;
182
+ $[26] = t10;
183
+ $[27] = t11;
184
+ } else {
185
+ t10 = $[26];
186
+ t11 = $[27];
187
+ }
188
+ useEffect(t10, t11);
189
+ let t12;
190
+ if ($[28] !== moveCursorToTarget) {
191
+ t12 = function handleFocusFragment(fragmentName) {
155
192
  moveCursorToTarget({
156
193
  kind: "fragment",
157
194
  name: fragmentName
158
195
  });
159
196
  };
160
- $[19] = moveCursorToTarget;
161
- $[20] = t9;
162
- } else t9 = $[20];
163
- const handleFocusFragment = t9;
164
- let t10;
165
- if ($[21] !== moveCursorToTarget || $[22] !== operationName) {
166
- t10 = function handleBackToQuery() {
197
+ $[28] = moveCursorToTarget;
198
+ $[29] = t12;
199
+ } else t12 = $[29];
200
+ const handleFocusFragment = t12;
201
+ let t13;
202
+ if ($[30] !== moveCursorToTarget || $[31] !== operationName) {
203
+ t13 = function handleBackToQuery() {
167
204
  moveCursorToTarget({
168
205
  kind: "operation",
169
206
  name: operationName
170
207
  });
171
208
  };
172
- $[21] = moveCursorToTarget;
173
- $[22] = operationName;
174
- $[23] = t10;
175
- } else t10 = $[23];
176
- const handleBackToQuery = t10;
177
- let t11;
178
- if ($[24] !== writeToEditor) {
179
- t11 = function applyDoc(next_0) {
209
+ $[30] = moveCursorToTarget;
210
+ $[31] = operationName;
211
+ $[32] = t13;
212
+ } else t13 = $[32];
213
+ const handleBackToQuery = t13;
214
+ let t14;
215
+ if ($[33] !== writeToEditor) {
216
+ t14 = function applyDoc(next_0) {
180
217
  setWorkingDoc(next_0);
181
218
  writeToEditor(print(next_0));
182
219
  };
183
- $[24] = writeToEditor;
184
- $[25] = t11;
185
- } else t11 = $[25];
186
- const applyDoc = t11;
187
- let t12;
188
- if ($[26] !== updateActiveTabValues || $[27] !== variableEditor) {
189
- t12 = function applyVariables(next_1) {
220
+ $[33] = writeToEditor;
221
+ $[34] = t14;
222
+ } else t14 = $[34];
223
+ const applyDoc = t14;
224
+ let t15;
225
+ if ($[35] !== updateActiveTabValues || $[36] !== variableEditor) {
226
+ t15 = function applyVariables(next_1) {
190
227
  const serialized = Object.keys(next_1).length ? JSON.stringify(next_1, null, 2) : "";
191
228
  if (variableEditor) variableEditor.setValue(serialized);
192
229
  else updateActiveTabValues({ variables: serialized });
193
230
  };
194
- $[26] = updateActiveTabValues;
195
- $[27] = variableEditor;
196
- $[28] = t12;
197
- } else t12 = $[28];
198
- const applyVariables = t12;
199
- let t13;
200
- if ($[29] !== applyVariables || $[30] !== variablesText) {
201
- t13 = function reconcileVariablesJson(next_2) {
231
+ $[35] = updateActiveTabValues;
232
+ $[36] = variableEditor;
233
+ $[37] = t15;
234
+ } else t15 = $[37];
235
+ const applyVariables = t15;
236
+ let t16;
237
+ if ($[38] !== applyVariables || $[39] !== variablesText) {
238
+ t16 = function reconcileVariablesJson(next_2) {
202
239
  const definedVars = /* @__PURE__ */ new Set();
203
240
  for (const def of next_2.definitions) if (def.kind === Kind.OPERATION_DEFINITION) for (const vd of def.variableDefinitions ?? []) definedVars.add(vd.variable.name.value);
204
241
  const vars = readVariables(variablesText);
@@ -208,28 +245,28 @@ function useWorkingDocument() {
208
245
  applyVariables(reconciled);
209
246
  }
210
247
  };
211
- $[29] = applyVariables;
212
- $[30] = variablesText;
213
- $[31] = t13;
214
- } else t13 = $[31];
215
- const reconcileVariablesJson = t13;
216
- let t14;
217
- if ($[32] !== applyDoc || $[33] !== reconcileVariablesJson || $[34] !== target || $[35] !== workingDoc) {
218
- t14 = function handleToggle(path) {
248
+ $[38] = applyVariables;
249
+ $[39] = variablesText;
250
+ $[40] = t16;
251
+ } else t16 = $[40];
252
+ const reconcileVariablesJson = t16;
253
+ let t17;
254
+ if ($[41] !== applyDoc || $[42] !== reconcileVariablesJson || $[43] !== target || $[44] !== workingDoc) {
255
+ t17 = function handleToggle(path) {
219
256
  const next_3 = toggleFieldSelection(workingDoc, path, target);
220
257
  applyDoc(next_3);
221
258
  reconcileVariablesJson(next_3);
222
259
  };
223
- $[32] = applyDoc;
224
- $[33] = reconcileVariablesJson;
225
- $[34] = target;
226
- $[35] = workingDoc;
227
- $[36] = t14;
228
- } else t14 = $[36];
229
- const handleToggle = t14;
230
- let t15;
231
- if ($[37] !== activeOpKind || $[38] !== schema || $[39] !== target || $[40] !== workingDoc) {
232
- t15 = function schemaArgFor(path_0, argName) {
260
+ $[41] = applyDoc;
261
+ $[42] = reconcileVariablesJson;
262
+ $[43] = target;
263
+ $[44] = workingDoc;
264
+ $[45] = t17;
265
+ } else t17 = $[45];
266
+ const handleToggle = t17;
267
+ let t18;
268
+ if ($[46] !== activeOpKind || $[47] !== schema || $[48] !== target || $[49] !== workingDoc) {
269
+ t18 = function schemaArgFor(path_0, argName) {
233
270
  if (!schema) return;
234
271
  if (target.kind === "operation") return resolveSchemaArg(schema, activeOpKind, path_0, argName);
235
272
  const def_0 = findDefinition(workingDoc, target);
@@ -237,31 +274,31 @@ function useWorkingDocument() {
237
274
  const rootType = rootTypeName ? schema.getType(rootTypeName) ?? void 0 : void 0;
238
275
  return resolveSchemaArgFromRoot(schema, rootType, path_0, argName);
239
276
  };
240
- $[37] = activeOpKind;
241
- $[38] = schema;
242
- $[39] = target;
243
- $[40] = workingDoc;
244
- $[41] = t15;
245
- } else t15 = $[41];
246
- const schemaArgFor = t15;
247
- let t16;
248
- if ($[42] !== applyDoc || $[43] !== schemaArgFor || $[44] !== target || $[45] !== workingDoc) {
249
- t16 = function handleSetArg(path_1, argName_0, value_0) {
277
+ $[46] = activeOpKind;
278
+ $[47] = schema;
279
+ $[48] = target;
280
+ $[49] = workingDoc;
281
+ $[50] = t18;
282
+ } else t18 = $[50];
283
+ const schemaArgFor = t18;
284
+ let t19;
285
+ if ($[51] !== applyDoc || $[52] !== schemaArgFor || $[53] !== target || $[54] !== workingDoc) {
286
+ t19 = function handleSetArg(path_1, argName_0, value_0) {
250
287
  const schemaArg = schemaArgFor(path_1, argName_0);
251
288
  if (!schemaArg) return;
252
289
  const valueNode = argValueToValueNode(schemaArg.type, value_0);
253
290
  applyDoc(setFieldArgument(workingDoc, path_1, argName_0, valueNode, target));
254
291
  };
255
- $[42] = applyDoc;
256
- $[43] = schemaArgFor;
257
- $[44] = target;
258
- $[45] = workingDoc;
259
- $[46] = t16;
260
- } else t16 = $[46];
261
- const handleSetArg = t16;
262
- let t17;
263
- if ($[47] !== applyDoc || $[48] !== applyVariables || $[49] !== operationName || $[50] !== schemaArgFor || $[51] !== variablesText || $[52] !== workingDoc) {
264
- t17 = function handlePromoteArg(path_2, argName_1, suggestedName) {
292
+ $[51] = applyDoc;
293
+ $[52] = schemaArgFor;
294
+ $[53] = target;
295
+ $[54] = workingDoc;
296
+ $[55] = t19;
297
+ } else t19 = $[55];
298
+ const handleSetArg = t19;
299
+ let t20;
300
+ if ($[56] !== applyDoc || $[57] !== applyVariables || $[58] !== operationName || $[59] !== schemaArgFor || $[60] !== variablesText || $[61] !== workingDoc) {
301
+ t20 = function handlePromoteArg(path_2, argName_1, suggestedName) {
265
302
  const schemaArg_0 = schemaArgFor(path_2, argName_1);
266
303
  if (!schemaArg_0) return;
267
304
  const namedType = getNamedType(schemaArg_0.type);
@@ -277,18 +314,18 @@ function useWorkingDocument() {
277
314
  });
278
315
  } catch {}
279
316
  };
280
- $[47] = applyDoc;
281
- $[48] = applyVariables;
282
- $[49] = operationName;
283
- $[50] = schemaArgFor;
284
- $[51] = variablesText;
285
- $[52] = workingDoc;
286
- $[53] = t17;
287
- } else t17 = $[53];
288
- const handlePromoteArg = t17;
289
- let t18;
290
- if ($[54] !== applyDoc || $[55] !== applyVariables || $[56] !== operationName || $[57] !== schemaArgFor || $[58] !== variablesText || $[59] !== workingDoc) {
291
- t18 = function handleDemoteArg(path_3, argName_2, varName_0) {
317
+ $[56] = applyDoc;
318
+ $[57] = applyVariables;
319
+ $[58] = operationName;
320
+ $[59] = schemaArgFor;
321
+ $[60] = variablesText;
322
+ $[61] = workingDoc;
323
+ $[62] = t20;
324
+ } else t20 = $[62];
325
+ const handlePromoteArg = t20;
326
+ let t21;
327
+ if ($[63] !== applyDoc || $[64] !== applyVariables || $[65] !== operationName || $[66] !== schemaArgFor || $[67] !== variablesText || $[68] !== workingDoc) {
328
+ t21 = function handleDemoteArg(path_3, argName_2, varName_0) {
292
329
  const vars_0 = readVariables(variablesText);
293
330
  const jsValue_0 = vars_0[varName_0];
294
331
  const schemaArg_1 = schemaArgFor(path_3, argName_2);
@@ -299,99 +336,99 @@ function useWorkingDocument() {
299
336
  delete rest[varName_0];
300
337
  applyVariables(rest);
301
338
  };
302
- $[54] = applyDoc;
303
- $[55] = applyVariables;
304
- $[56] = operationName;
305
- $[57] = schemaArgFor;
306
- $[58] = variablesText;
307
- $[59] = workingDoc;
308
- $[60] = t18;
309
- } else t18 = $[60];
310
- const handleDemoteArg = t18;
311
- let t19;
312
- if ($[61] !== applyDoc || $[62] !== target || $[63] !== workingDoc) {
313
- t19 = function handleAddInlineFragment(path_4, typeName) {
339
+ $[63] = applyDoc;
340
+ $[64] = applyVariables;
341
+ $[65] = operationName;
342
+ $[66] = schemaArgFor;
343
+ $[67] = variablesText;
344
+ $[68] = workingDoc;
345
+ $[69] = t21;
346
+ } else t21 = $[69];
347
+ const handleDemoteArg = t21;
348
+ let t22;
349
+ if ($[70] !== applyDoc || $[71] !== target || $[72] !== workingDoc) {
350
+ t22 = function handleAddInlineFragment(path_4, typeName) {
314
351
  applyDoc(addInlineFragment(workingDoc, path_4, typeName, target));
315
352
  };
316
- $[61] = applyDoc;
317
- $[62] = target;
318
- $[63] = workingDoc;
319
- $[64] = t19;
320
- } else t19 = $[64];
321
- const handleAddInlineFragment = t19;
322
- let t20;
323
- if ($[65] !== applyDoc || $[66] !== reconcileVariablesJson || $[67] !== target || $[68] !== workingDoc) {
324
- t20 = function handleRemoveInlineFragment(path_5, typeName_0) {
353
+ $[70] = applyDoc;
354
+ $[71] = target;
355
+ $[72] = workingDoc;
356
+ $[73] = t22;
357
+ } else t22 = $[73];
358
+ const handleAddInlineFragment = t22;
359
+ let t23;
360
+ if ($[74] !== applyDoc || $[75] !== reconcileVariablesJson || $[76] !== target || $[77] !== workingDoc) {
361
+ t23 = function handleRemoveInlineFragment(path_5, typeName_0) {
325
362
  const next_4 = removeInlineFragment(workingDoc, path_5, typeName_0, target);
326
363
  applyDoc(next_4);
327
364
  reconcileVariablesJson(next_4);
328
365
  };
329
- $[65] = applyDoc;
330
- $[66] = reconcileVariablesJson;
331
- $[67] = target;
332
- $[68] = workingDoc;
333
- $[69] = t20;
334
- } else t20 = $[69];
335
- const handleRemoveInlineFragment = t20;
336
- let t21;
337
- if ($[70] !== applyDoc || $[71] !== reconcileVariablesJson || $[72] !== target || $[73] !== workingDoc) {
338
- t21 = function handleRemoveFragmentSpread(path_6, fragmentName_0) {
366
+ $[74] = applyDoc;
367
+ $[75] = reconcileVariablesJson;
368
+ $[76] = target;
369
+ $[77] = workingDoc;
370
+ $[78] = t23;
371
+ } else t23 = $[78];
372
+ const handleRemoveInlineFragment = t23;
373
+ let t24;
374
+ if ($[79] !== applyDoc || $[80] !== reconcileVariablesJson || $[81] !== target || $[82] !== workingDoc) {
375
+ t24 = function handleRemoveFragmentSpread(path_6, fragmentName_0) {
339
376
  const next_5 = removeFragmentSpread(workingDoc, path_6, fragmentName_0, target);
340
377
  applyDoc(next_5);
341
378
  reconcileVariablesJson(next_5);
342
379
  };
343
- $[70] = applyDoc;
344
- $[71] = reconcileVariablesJson;
345
- $[72] = target;
346
- $[73] = workingDoc;
347
- $[74] = t21;
348
- } else t21 = $[74];
349
- const handleRemoveFragmentSpread = t21;
350
- let t22;
351
- if ($[75] !== applyDoc || $[76] !== target || $[77] !== workingDoc) {
352
- t22 = function handleExtractFragment(path_7, typeName_1) {
380
+ $[79] = applyDoc;
381
+ $[80] = reconcileVariablesJson;
382
+ $[81] = target;
383
+ $[82] = workingDoc;
384
+ $[83] = t24;
385
+ } else t24 = $[83];
386
+ const handleRemoveFragmentSpread = t24;
387
+ let t25;
388
+ if ($[84] !== applyDoc || $[85] !== target || $[86] !== workingDoc) {
389
+ t25 = function handleExtractFragment(path_7, typeName_1) {
353
390
  const base = `${typeName_1}Fields`;
354
391
  const existing = new Set(listFragments(workingDoc));
355
392
  let name_1 = base;
356
393
  for (let n = 2; existing.has(name_1); n++) name_1 = `${base}_${n}`;
357
394
  applyDoc(createFragmentFromSelection(workingDoc, path_7, name_1, typeName_1, target));
358
395
  };
359
- $[75] = applyDoc;
360
- $[76] = target;
361
- $[77] = workingDoc;
362
- $[78] = t22;
363
- } else t22 = $[78];
364
- const handleExtractFragment = t22;
365
- let t23;
366
- if ($[79] !== applyDoc || $[80] !== workingDoc) {
367
- t23 = function handleRenameFragment(oldName, newName) {
396
+ $[84] = applyDoc;
397
+ $[85] = target;
398
+ $[86] = workingDoc;
399
+ $[87] = t25;
400
+ } else t25 = $[87];
401
+ const handleExtractFragment = t25;
402
+ let t26;
403
+ if ($[88] !== applyDoc || $[89] !== workingDoc) {
404
+ t26 = function handleRenameFragment(oldName, newName) {
368
405
  applyDoc(renameFragment(workingDoc, oldName, newName));
369
406
  };
370
- $[79] = applyDoc;
371
- $[80] = workingDoc;
372
- $[81] = t23;
373
- } else t23 = $[81];
374
- const handleRenameFragment = t23;
375
- let t24;
376
- if ($[82] !== activeFragment || $[83] !== applyDoc || $[84] !== moveCursorToTarget || $[85] !== operationName || $[86] !== workingDoc) {
377
- t24 = function handleDeleteFragment(fragmentName_1) {
407
+ $[88] = applyDoc;
408
+ $[89] = workingDoc;
409
+ $[90] = t26;
410
+ } else t26 = $[90];
411
+ const handleRenameFragment = t26;
412
+ let t27;
413
+ if ($[91] !== activeFragment || $[92] !== applyDoc || $[93] !== moveCursorToTarget || $[94] !== operationName || $[95] !== workingDoc) {
414
+ t27 = function handleDeleteFragment(fragmentName_1) {
378
415
  applyDoc(inlineFragment(workingDoc, fragmentName_1));
379
416
  if (activeFragment === fragmentName_1) moveCursorToTarget({
380
417
  kind: "operation",
381
418
  name: operationName
382
419
  });
383
420
  };
384
- $[82] = activeFragment;
385
- $[83] = applyDoc;
386
- $[84] = moveCursorToTarget;
387
- $[85] = operationName;
388
- $[86] = workingDoc;
389
- $[87] = t24;
390
- } else t24 = $[87];
391
- const handleDeleteFragment = t24;
392
- let t25;
393
- if ($[88] !== activeOpKind || $[89] !== cursorPath || $[90] !== handleAddInlineFragment || $[91] !== handleBackToQuery || $[92] !== handleDeleteFragment || $[93] !== handleDemoteArg || $[94] !== handleExtractFragment || $[95] !== handleFocusFragment || $[96] !== handlePromoteArg || $[97] !== handleRemoveFragmentSpread || $[98] !== handleRemoveInlineFragment || $[99] !== handleRenameFragment || $[100] !== handleSetArg || $[101] !== handleToggle || $[102] !== target || $[103] !== workingDoc) {
394
- t25 = {
421
+ $[91] = activeFragment;
422
+ $[92] = applyDoc;
423
+ $[93] = moveCursorToTarget;
424
+ $[94] = operationName;
425
+ $[95] = workingDoc;
426
+ $[96] = t27;
427
+ } else t27 = $[96];
428
+ const handleDeleteFragment = t27;
429
+ let t28;
430
+ if ($[97] !== activeOpKind || $[98] !== cursorPath || $[99] !== handleAddInlineFragment || $[100] !== handleBackToQuery || $[101] !== handleDeleteFragment || $[102] !== handleDemoteArg || $[103] !== handleExtractFragment || $[104] !== handleFocusFragment || $[105] !== handlePromoteArg || $[106] !== handleRemoveFragmentSpread || $[107] !== handleRemoveInlineFragment || $[108] !== handleRenameFragment || $[109] !== handleSetArg || $[110] !== handleToggle || $[111] !== target || $[112] !== workingDoc) {
431
+ t28 = {
395
432
  workingDoc,
396
433
  activeOpKind,
397
434
  target,
@@ -409,25 +446,25 @@ function useWorkingDocument() {
409
446
  handleRenameFragment,
410
447
  handleDeleteFragment
411
448
  };
412
- $[88] = activeOpKind;
413
- $[89] = cursorPath;
414
- $[90] = handleAddInlineFragment;
415
- $[91] = handleBackToQuery;
416
- $[92] = handleDeleteFragment;
417
- $[93] = handleDemoteArg;
418
- $[94] = handleExtractFragment;
419
- $[95] = handleFocusFragment;
420
- $[96] = handlePromoteArg;
421
- $[97] = handleRemoveFragmentSpread;
422
- $[98] = handleRemoveInlineFragment;
423
- $[99] = handleRenameFragment;
424
- $[100] = handleSetArg;
425
- $[101] = handleToggle;
426
- $[102] = target;
427
- $[103] = workingDoc;
428
- $[104] = t25;
429
- } else t25 = $[104];
430
- return t25;
449
+ $[97] = activeOpKind;
450
+ $[98] = cursorPath;
451
+ $[99] = handleAddInlineFragment;
452
+ $[100] = handleBackToQuery;
453
+ $[101] = handleDeleteFragment;
454
+ $[102] = handleDemoteArg;
455
+ $[103] = handleExtractFragment;
456
+ $[104] = handleFocusFragment;
457
+ $[105] = handlePromoteArg;
458
+ $[106] = handleRemoveFragmentSpread;
459
+ $[107] = handleRemoveInlineFragment;
460
+ $[108] = handleRenameFragment;
461
+ $[109] = handleSetArg;
462
+ $[110] = handleToggle;
463
+ $[111] = target;
464
+ $[112] = workingDoc;
465
+ $[113] = t28;
466
+ } else t28 = $[113];
467
+ return t28;
431
468
  }
432
469
  function _temp6(state_4) {
433
470
  return state_4.tabs;