pollination-react-io 1.88.0 → 1.89.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.
@@ -186,10 +186,10 @@ function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultCon
186
186
 
187
187
  /* -------------------------------------------------------------------------------------------------
188
188
  * Slot
189
- * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
189
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360$1 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
190
190
  const { children: children , ...slotProps } = props;
191
191
  const childrenArray = Children.toArray(children);
192
- const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
192
+ const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable$1);
193
193
  if (slottable) {
194
194
  // the new element to render is the one passed as a child of `Slottable`
195
195
  const newElement = slottable.props.children;
@@ -201,35 +201,35 @@ function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultCon
201
201
  return /*#__PURE__*/ isValidElement(newElement) ? newElement.props.children : null;
202
202
  } else return child;
203
203
  });
204
- return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends$L({}, slotProps, {
204
+ return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone$1, _extends$L({}, slotProps, {
205
205
  ref: forwardedRef
206
206
  }), /*#__PURE__*/ isValidElement(newElement) ? /*#__PURE__*/ cloneElement(newElement, undefined, newChildren) : null);
207
207
  }
208
- return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends$L({}, slotProps, {
208
+ return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone$1, _extends$L({}, slotProps, {
209
209
  ref: forwardedRef
210
210
  }), children);
211
211
  });
212
- $5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';
212
+ $5e63c961fc1ce211$export$8c6ed5c666ac1360$1.displayName = 'Slot';
213
213
  /* -------------------------------------------------------------------------------------------------
214
214
  * SlotClone
215
- * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
215
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone$1 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
216
216
  const { children: children , ...slotProps } = props;
217
217
  if (/*#__PURE__*/ isValidElement(children)) return /*#__PURE__*/ cloneElement(children, {
218
- ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
218
+ ...$5e63c961fc1ce211$var$mergeProps$1(slotProps, children.props),
219
219
  ref: $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref)
220
220
  });
221
221
  return Children.count(children) > 1 ? Children.only(null) : null;
222
222
  });
223
- $5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';
223
+ $5e63c961fc1ce211$var$SlotClone$1.displayName = 'SlotClone';
224
224
  /* -------------------------------------------------------------------------------------------------
225
225
  * Slottable
226
- * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{
226
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45$1 = ({ children: children })=>{
227
227
  return /*#__PURE__*/ createElement(Fragment$2, null, children);
228
228
  };
229
- /* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {
230
- return /*#__PURE__*/ isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
229
+ /* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable$1(child) {
230
+ return /*#__PURE__*/ isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45$1;
231
231
  }
232
- function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
232
+ function $5e63c961fc1ce211$var$mergeProps$1(slotProps, childProps) {
233
233
  // all child props should override
234
234
  const overrideProps = {
235
235
  ...childProps
@@ -257,7 +257,7 @@ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
257
257
  };
258
258
  }
259
259
 
260
- const $8927f6f2acc4f386$var$NODES = [
260
+ const $8927f6f2acc4f386$var$NODES$1 = [
261
261
  'a',
262
262
  'button',
263
263
  'div',
@@ -276,10 +276,10 @@ const $8927f6f2acc4f386$var$NODES = [
276
276
  // prettier-ignore
277
277
  /* -------------------------------------------------------------------------------------------------
278
278
  * Primitive
279
- * -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce((primitive, node)=>{
279
+ * -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034$1 = $8927f6f2acc4f386$var$NODES$1.reduce((primitive, node)=>{
280
280
  const Node = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
281
281
  const { asChild: asChild , ...primitiveProps } = props;
282
- const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
282
+ const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360$1 : node;
283
283
  useEffect(()=>{
284
284
  window[Symbol.for('radix-ui')] = true;
285
285
  }, []);
@@ -347,7 +347,7 @@ const $cddcb0b647441e34$export$e2255cf6045e8d47 = /*#__PURE__*/ forwardRef((prop
347
347
  scope: __scopeAvatar,
348
348
  imageLoadingStatus: imageLoadingStatus,
349
349
  onImageLoadingStatusChange: setImageLoadingStatus
350
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$L({}, avatarProps, {
350
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$L({}, avatarProps, {
351
351
  ref: forwardedRef
352
352
  })));
353
353
  });
@@ -368,7 +368,7 @@ const $cddcb0b647441e34$export$2cd8ae1985206fe8 = /*#__PURE__*/ forwardRef((prop
368
368
  imageLoadingStatus,
369
369
  handleLoadingStatusChange
370
370
  ]);
371
- return imageLoadingStatus === 'loaded' ? /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.img, _extends$L({}, imageProps, {
371
+ return imageLoadingStatus === 'loaded' ? /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.img, _extends$L({}, imageProps, {
372
372
  ref: forwardedRef,
373
373
  src: src
374
374
  })) : null;
@@ -390,7 +390,7 @@ const $cddcb0b647441e34$export$69fffb6a9571fbfe = /*#__PURE__*/ forwardRef((prop
390
390
  }, [
391
391
  delayMs
392
392
  ]);
393
- return canRender && context.imageLoadingStatus !== 'loaded' ? /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$L({}, fallbackProps, {
393
+ return canRender && context.imageLoadingStatus !== 'loaded' ? /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$L({}, fallbackProps, {
394
394
  ref: forwardedRef
395
395
  })) : null;
396
396
  });
@@ -6747,7 +6747,7 @@ const $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /*#__PURE__*/ forwardRef((prop
6747
6747
  'aria-orientation': ariaOrientation,
6748
6748
  role: 'separator'
6749
6749
  };
6750
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$L({
6750
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$L({
6751
6751
  "data-orientation": orientation
6752
6752
  }, semanticProps, domProps, {
6753
6753
  ref: forwardedRef
@@ -9092,7 +9092,7 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
9092
9092
  const { scope: scope , children: children } = props;
9093
9093
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
9094
9094
  const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.collectionRef);
9095
- return /*#__PURE__*/ React__default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, {
9095
+ return /*#__PURE__*/ React__default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1, {
9096
9096
  ref: composedRefs
9097
9097
  }, children);
9098
9098
  });
@@ -9113,7 +9113,7 @@ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
9113
9113
  return ()=>void context.itemMap.delete(ref)
9114
9114
  ;
9115
9115
  });
9116
- return /*#__PURE__*/ React__default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, {
9116
+ return /*#__PURE__*/ React__default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1, {
9117
9117
  [ITEM_DATA_ATTR]: '',
9118
9118
  ref: composedRefs
9119
9119
  }, children);
@@ -9266,7 +9266,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
9266
9266
  return ()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate)
9267
9267
  ;
9268
9268
  }, []);
9269
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$L({}, layerProps, {
9269
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$L({}, layerProps, {
9270
9270
  ref: composedRefs,
9271
9271
  style: {
9272
9272
  pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? 'auto' : 'none' : undefined,
@@ -9538,7 +9538,7 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /*#__PURE__*/ forwardRef((prop
9538
9538
  trapped,
9539
9539
  focusScope.paused
9540
9540
  ]);
9541
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$L({
9541
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$L({
9542
9542
  tabIndex: -1
9543
9543
  }, scopeProps, {
9544
9544
  ref: composedRefs,
@@ -11313,7 +11313,7 @@ const arrow = options => {
11313
11313
 
11314
11314
  const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
11315
11315
  const { children: children , width: width = 10 , height: height = 5 , ...arrowProps } = props;
11316
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.svg, _extends$L({}, arrowProps, {
11316
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.svg, _extends$L({}, arrowProps, {
11317
11317
  ref: forwardedRef,
11318
11318
  width: width,
11319
11319
  height: height,
@@ -11400,7 +11400,7 @@ const $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d = /*#__PURE__*/ forwardRef((props
11400
11400
  // `anchorRef` with their virtual ref in this case.
11401
11401
  context.onAnchorChange((virtualRef === null || virtualRef === void 0 ? void 0 : virtualRef.current) || ref.current);
11402
11402
  });
11403
- return virtualRef ? null : /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$L({}, anchorProps, {
11403
+ return virtualRef ? null : /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$L({}, anchorProps, {
11404
11404
  ref: composedRefs
11405
11405
  }));
11406
11406
  });
@@ -11556,7 +11556,7 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /*#__PURE__*/ forwardRef((props
11556
11556
  scope: __scopePopper,
11557
11557
  hasParent: true,
11558
11558
  positionUpdateFns: positionUpdateFns
11559
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, commonProps)) : /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, commonProps)));
11559
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, commonProps)) : /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, commonProps)));
11560
11560
  });
11561
11561
  /* -------------------------------------------------------------------------------------------------
11562
11562
  * PopperArrow
@@ -11846,7 +11846,7 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /*#__PURE__*/ forwardRef((prop
11846
11846
  ]),
11847
11847
  onItemShiftTab: useCallback(()=>setIsTabbingBackOut(true)
11848
11848
  , [])
11849
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$L({
11849
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$L({
11850
11850
  tabIndex: isTabbingBackOut ? -1 : 0,
11851
11851
  "data-orientation": orientation
11852
11852
  }, groupProps, {
@@ -11904,7 +11904,7 @@ const $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /*#__PURE__*/ forwardRef((props
11904
11904
  id: id,
11905
11905
  focusable: focusable,
11906
11906
  active: active
11907
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$L({
11907
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$L({
11908
11908
  tabIndex: isCurrentTabStop ? 0 : -1,
11909
11909
  "data-orientation": context.orientation
11910
11910
  }, itemProps, {
@@ -12897,7 +12897,7 @@ const $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ forwardRef((
12897
12897
  const lastPointerXRef = useRef(0);
12898
12898
  const ScrollLockWrapper = disableOutsideScroll ? $epM9y$RemoveScroll : Fragment$2;
12899
12899
  const scrollLockWrapperProps = disableOutsideScroll ? {
12900
- as: $5e63c961fc1ce211$export$8c6ed5c666ac1360,
12900
+ as: $5e63c961fc1ce211$export$8c6ed5c666ac1360$1,
12901
12901
  allowPinchZoom: true
12902
12902
  } : undefined;
12903
12903
  const handleTypeaheadSearch = (key)=>{
@@ -13046,7 +13046,7 @@ const $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ forwardRef((
13046
13046
  });
13047
13047
  const $6cc32821e9371a1c$export$22a631d1f72787bb = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
13048
13048
  const { __scopeMenu: __scopeMenu , ...groupProps } = props;
13049
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$L({
13049
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$L({
13050
13050
  role: "group"
13051
13051
  }, groupProps, {
13052
13052
  ref: forwardedRef
@@ -13054,7 +13054,7 @@ const $6cc32821e9371a1c$export$22a631d1f72787bb = /*#__PURE__*/ forwardRef((prop
13054
13054
  });
13055
13055
  const $6cc32821e9371a1c$export$dd37bec0e8a99143 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
13056
13056
  const { __scopeMenu: __scopeMenu , ...labelProps } = props;
13057
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$L({}, labelProps, {
13057
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$L({}, labelProps, {
13058
13058
  ref: forwardedRef
13059
13059
  }));
13060
13060
  });
@@ -13141,7 +13141,7 @@ const $6cc32821e9371a1c$export$2ce376c2cc3355c8 = /*#__PURE__*/ forwardRef((prop
13141
13141
  asChild: true
13142
13142
  }, rovingFocusGroupScope, {
13143
13143
  focusable: !disabled
13144
- }), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$L({
13144
+ }), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$L({
13145
13145
  role: "menuitem",
13146
13146
  "data-highlighted": isFocused ? '' : undefined,
13147
13147
  "aria-disabled": disabled || undefined,
@@ -13236,7 +13236,7 @@ const $6cc32821e9371a1c$export$a2593e23056970a3 = /*#__PURE__*/ forwardRef((prop
13236
13236
  const indicatorContext = $6cc32821e9371a1c$var$useItemIndicatorContext($6cc32821e9371a1c$var$ITEM_INDICATOR_NAME, __scopeMenu);
13237
13237
  return /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
13238
13238
  present: forceMount || indicatorContext.checked
13239
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$L({}, itemIndicatorProps, {
13239
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$L({}, itemIndicatorProps, {
13240
13240
  ref: forwardedRef,
13241
13241
  "data-state": $6cc32821e9371a1c$var$getCheckedState(indicatorContext.checked)
13242
13242
  })));
@@ -13388,7 +13388,7 @@ const $d08ef79370b62062$export$d2469213b3befba9 = /*#__PURE__*/ forwardRef((prop
13388
13388
  const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
13389
13389
  return /*#__PURE__*/ createElement($6cc32821e9371a1c$export$b688253958b8dfe7, _extends$L({
13390
13390
  asChild: true
13391
- }, menuScope), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$L({
13391
+ }, menuScope), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$L({
13392
13392
  type: "button",
13393
13393
  id: context.triggerId,
13394
13394
  "aria-haspopup": "menu",
@@ -15322,7 +15322,7 @@ const $409067139f391064$export$6eb0f7ddcda6131f = /*#__PURE__*/ forwardRef((prop
15322
15322
  , [
15323
15323
  setOpen
15324
15324
  ])
15325
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$L({
15325
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$L({
15326
15326
  "data-state": $409067139f391064$var$getState(open),
15327
15327
  "data-disabled": disabled ? '' : undefined
15328
15328
  }, collapsibleProps, {
@@ -15335,7 +15335,7 @@ const $409067139f391064$export$6eb0f7ddcda6131f = /*#__PURE__*/ forwardRef((prop
15335
15335
  const $409067139f391064$export$c135dce7b15bbbdc = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
15336
15336
  const { __scopeCollapsible: __scopeCollapsible , ...triggerProps } = props;
15337
15337
  const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME, __scopeCollapsible);
15338
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$L({
15338
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$L({
15339
15339
  type: "button",
15340
15340
  "aria-controls": context.contentId,
15341
15341
  "aria-expanded": context.open || false,
@@ -15411,7 +15411,7 @@ const $409067139f391064$export$aadde00976f34151 = /*#__PURE__*/ forwardRef((prop
15411
15411
  context.open,
15412
15412
  present
15413
15413
  ]);
15414
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$L({
15414
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$L({
15415
15415
  "data-state": $409067139f391064$var$getState(context.open),
15416
15416
  "data-disabled": context.disabled ? '' : undefined,
15417
15417
  id: context.contentId,
@@ -15620,7 +15620,7 @@ const $ce77a8961b41be9e$export$d7b12c4107be0d61 = /*#__PURE__*/ forwardRef((prop
15620
15620
  scope: __scopeRadio,
15621
15621
  checked: checked,
15622
15622
  disabled: disabled
15623
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$L({
15623
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$L({
15624
15624
  type: "button",
15625
15625
  role: "radio",
15626
15626
  "aria-checked": checked,
@@ -15663,7 +15663,7 @@ const $ce77a8961b41be9e$export$d35a9ffa9a04f9e7 = /*#__PURE__*/ forwardRef((prop
15663
15663
  const context = $ce77a8961b41be9e$var$useRadioContext($ce77a8961b41be9e$var$INDICATOR_NAME, __scopeRadio);
15664
15664
  return /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
15665
15665
  present: forceMount || context.checked
15666
- }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$L({
15666
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$L({
15667
15667
  "data-state": $ce77a8961b41be9e$var$getState(context.checked),
15668
15668
  "data-disabled": context.disabled ? '' : undefined
15669
15669
  }, indicatorProps, {
@@ -15753,7 +15753,7 @@ const $f99a8c78507165f7$export$a98f0dcb43a68a25 = /*#__PURE__*/ forwardRef((prop
15753
15753
  orientation: orientation,
15754
15754
  dir: direction,
15755
15755
  loop: loop
15756
- }), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$L({
15756
+ }), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$L({
15757
15757
  role: "radiogroup",
15758
15758
  "aria-required": required,
15759
15759
  "aria-orientation": orientation,
@@ -15943,7 +15943,7 @@ var TextInput = function (_a) {
15943
15943
  };
15944
15944
 
15945
15945
  const $ea1ef594cf570d83$export$439d29a4e110a164 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
15946
- return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$L({}, props, {
15946
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$L({}, props, {
15947
15947
  ref: forwardedRef,
15948
15948
  style: {
15949
15949
  // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
@@ -16080,7 +16080,7 @@ const $a093c7e1ec25a057$export$8c610744efcf8a1d = /*#__PURE__*/ forwardRef((prop
16080
16080
  ]);
16081
16081
  return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$L({
16082
16082
  asChild: true
16083
- }, popperScope), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$L({
16083
+ }, popperScope), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$L({
16084
16084
  // We purposefully avoid adding `type=button` here because tooltip triggers are also
16085
16085
  // commonly anchors and the anchor `type` attribute signifies MIME type.
16086
16086
  "aria-describedby": context.open ? context.contentId : undefined,
@@ -16288,7 +16288,7 @@ const $a093c7e1ec25a057$var$TooltipContentImpl = /*#__PURE__*/ forwardRef((props
16288
16288
  // re-namespace exposed content custom property
16289
16289
  ['--radix-tooltip-content-transform-origin']: 'var(--radix-popper-transform-origin)'
16290
16290
  }
16291
- }), /*#__PURE__*/ createElement($5e63c961fc1ce211$export$d9f1ccf0bdb05d45, null, children), /*#__PURE__*/ createElement($a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider, {
16291
+ }), /*#__PURE__*/ createElement($5e63c961fc1ce211$export$d9f1ccf0bdb05d45$1, null, children), /*#__PURE__*/ createElement($a093c7e1ec25a057$var$VisuallyHiddenContentContextProvider, {
16292
16292
  scope: __scopeTooltip,
16293
16293
  isInside: true
16294
16294
  }, /*#__PURE__*/ createElement($ea1ef594cf570d83$export$be92b6f5f03c0fe9, {
@@ -45245,589 +45245,237 @@ var generateSchema = function (inputs) {
45245
45245
  });
45246
45246
  };
45247
45247
 
45248
- var index_prod = createCommonjsModule(function (module, exports) {
45249
- Object.defineProperty(exports,"__esModule",{value:!0});function i(){return i=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n]);}return t},i.apply(this,arguments)}var s=React__default.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},React__default.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),n=React__default.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},React__default.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function o(t){if(7===t.length)return t;for(var i="#",s=1;s<4;s+=1)i+=t[s]+t[s];return i}function h(t,i,s,n,h){return function(t,i,s,n,o){var h=(t-s)/(i-s);if(0===h)return n;if(1===h)return o;for(var e="#",a=1;a<6;a+=2){var r=parseInt(n.substr(a,2),16),l=parseInt(o.substr(a,2),16),u=Math.round((1-h)*r+h*l).toString(16);1===u.length&&(u="0"+u),e+=u;}return e}(t,i,s,o(n),o(h))}var e=function(s){function n(t){s.call(this,t);var i=t.height,n=t.width,o=t.checked;this.t=t.handleDiameter||i-2,this.i=Math.max(n-i,n-(i+this.t)/2),this.o=Math.max(0,(i-this.t)/2),this.state={h:o?this.i:this.o},this.l=0,this.u=0,this.p=this.p.bind(this),this.v=this.v.bind(this),this.g=this.g.bind(this),this.k=this.k.bind(this),this.M=this.M.bind(this),this.m=this.m.bind(this),this.T=this.T.bind(this),this.$=this.$.bind(this),this.C=this.C.bind(this),this.O=this.O.bind(this),this.D=this.D.bind(this),this.S=this.S.bind(this);}return s&&(n.__proto__=s),(n.prototype=Object.create(s&&s.prototype)).constructor=n,n.prototype.componentDidMount=function(){this.W=!0;},n.prototype.componentDidUpdate=function(t){t.checked!==this.props.checked&&this.setState({h:this.props.checked?this.i:this.o});},n.prototype.componentWillUnmount=function(){this.W=!1;},n.prototype.I=function(t){this.H.focus(),this.setState({j:t,R:!0,B:Date.now()});},n.prototype.L=function(t){var i=this.state,s=i.j,n=i.h,o=(this.props.checked?this.i:this.o)+t-s;i.N||t===s||this.setState({N:!0});var h=Math.min(this.i,Math.max(this.o,o));h!==n&&this.setState({h:h});},n.prototype.U=function(t){var i=this.state,s=i.h,n=i.N,o=i.B,h=this.props.checked,e=(this.i+this.o)/2;this.setState({h:this.props.checked?this.i:this.o});var a=Date.now()-o;(!n||a<250||(h&&s<=e||!h&&s>=e))&&this.A(t),this.W&&this.setState({N:!1,R:!1}),this.l=Date.now();},n.prototype.p=function(t){t.preventDefault(),"number"==typeof t.button&&0!==t.button||(this.I(t.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g));},n.prototype.v=function(t){t.preventDefault(),this.L(t.clientX);},n.prototype.g=function(t){this.U(t),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g);},n.prototype.k=function(t){this.X=null,this.I(t.touches[0].clientX);},n.prototype.M=function(t){this.L(t.touches[0].clientX);},n.prototype.m=function(t){t.preventDefault(),this.U(t);},n.prototype.$=function(t){Date.now()-this.l>50&&(this.A(t),Date.now()-this.u>50&&this.W&&this.setState({R:!1}));},n.prototype.C=function(){this.u=Date.now();},n.prototype.O=function(){this.setState({R:!0});},n.prototype.D=function(){this.setState({R:!1});},n.prototype.S=function(t){this.H=t;},n.prototype.T=function(t){t.preventDefault(),this.H.focus(),this.A(t),this.W&&this.setState({R:!1});},n.prototype.A=function(t){var i=this.props;(0, i.onChange)(!i.checked,t,i.id);},n.prototype.render=function(){var s=this.props,n=s.checked,o=s.disabled,e=s.className,a=s.offColor,r=s.onColor,l=s.offHandleColor,u=s.onHandleColor,c=s.checkedIcon,d=s.uncheckedIcon,f=s.checkedHandleIcon,p=s.uncheckedHandleIcon,b=s.boxShadow,v=s.activeBoxShadow,g=s.height,y=s.width,w=s.borderRadius,k=function(t,i){var s={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&-1===i.indexOf(n)&&(s[n]=t[n]);return s}(s,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),M=this.state,m=M.h,T=M.N,x=M.R,$={position:"relative",display:"inline-block",textAlign:"left",opacity:o?.5:1,direction:"ltr",borderRadius:g/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},C={height:g,width:y,margin:Math.max(0,(this.t-g)/2),position:"relative",background:h(m,this.i,this.o,a,r),borderRadius:"number"==typeof w?w:g/2,cursor:o?"default":"pointer",WebkitTransition:T?null:"background 0.25s",MozTransition:T?null:"background 0.25s",transition:T?null:"background 0.25s"},O={height:g,width:Math.min(1.5*g,y-(this.t+g)/2+1),position:"relative",opacity:(m-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:T?null:"opacity 0.25s",MozTransition:T?null:"opacity 0.25s",transition:T?null:"opacity 0.25s"},D={height:g,width:Math.min(1.5*g,y-(this.t+g)/2+1),position:"absolute",opacity:1-(m-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:T?null:"opacity 0.25s",MozTransition:T?null:"opacity 0.25s",transition:T?null:"opacity 0.25s"},S={height:this.t,width:this.t,background:h(m,this.i,this.o,l,u),display:"inline-block",cursor:o?"default":"pointer",borderRadius:"number"==typeof w?w-1:"50%",position:"absolute",transform:"translateX("+m+"px)",top:Math.max(0,(g-this.t)/2),outline:0,boxShadow:x?v:b,border:0,WebkitTransition:T?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:T?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:T?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},W={height:this.t,width:this.t,opacity:Math.max(2*(1-(m-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:T?null:"opacity 0.25s",MozTransition:T?null:"opacity 0.25s",transition:T?null:"opacity 0.25s"},z={height:this.t,width:this.t,opacity:Math.max(2*((m-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:T?null:"opacity 0.25s",MozTransition:T?null:"opacity 0.25s",transition:T?null:"opacity 0.25s"};return React__default.createElement("div",{className:e,style:$},React__default.createElement("div",{className:"react-switch-bg",style:C,onClick:o?null:this.T,onMouseDown:function(t){return t.preventDefault()}},c&&React__default.createElement("div",{style:O},c),d&&React__default.createElement("div",{style:D},d)),React__default.createElement("div",{className:"react-switch-handle",style:S,onClick:function(t){return t.preventDefault()},onMouseDown:o?null:this.p,onTouchStart:o?null:this.k,onTouchMove:o?null:this.M,onTouchEnd:o?null:this.m,onTouchCancel:o?null:this.D},p&&React__default.createElement("div",{style:W},p),f&&React__default.createElement("div",{style:z},f)),React__default.createElement("input",i({},{type:"checkbox",role:"switch","aria-checked":n,checked:n,disabled:o,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},k,{ref:this.S,onFocus:this.O,onBlur:this.D,onKeyUp:this.C,onChange:this.$})))},n}(React__default.Component);e.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:s,checkedIcon:n,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56},exports.default=e;
45250
- });
45251
-
45252
- var index_dev = createCommonjsModule(function (module, exports) {
45253
- Object.defineProperty(exports, '__esModule', { value: true });
45254
-
45255
-
45256
-
45257
-
45258
- function _extends() {
45259
- _extends = Object.assign ? Object.assign.bind() : function (target) {
45260
- for (var i = 1; i < arguments.length; i++) {
45261
- var source = arguments[i];
45262
-
45263
- for (var key in source) {
45264
- if (Object.prototype.hasOwnProperty.call(source, key)) {
45265
- target[key] = source[key];
45266
- }
45267
- }
45268
- }
45269
-
45270
- return target;
45271
- };
45272
- return _extends.apply(this, arguments);
45273
- }
45274
-
45275
- /*
45276
- The MIT License (MIT)
45277
-
45278
- Copyright (c) 2015 instructure-react
45279
-
45280
- Permission is hereby granted, free of charge, to any person obtaining a copy
45281
- of this software and associated documentation files (the "Software"), to deal
45282
- in the Software without restriction, including without limitation the rights
45283
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
45284
- copies of the Software, and to permit persons to whom the Software is
45285
- furnished to do so, subject to the following conditions:
45286
-
45287
- The above copyright notice and this permission notice shall be included in all
45288
- copies or substantial portions of the Software.
45289
-
45290
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45291
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45292
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
45293
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45294
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
45295
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
45296
- SOFTWARE.
45297
- */
45298
- var uncheckedIcon = React__default.createElement('svg', {
45299
- viewBox: "-2 -5 14 20",
45300
- height: "100%",
45301
- width: "100%",
45302
- style: {
45303
- position: "absolute",
45304
- top: 0
45305
- }
45306
- }, React__default.createElement('path', {
45307
- d: "M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",
45308
- fill: "#fff",
45309
- fillRule: "evenodd"
45310
- }));
45311
- var checkedIcon = React__default.createElement('svg', {
45312
- height: "100%",
45313
- width: "100%",
45314
- viewBox: "-2 -5 17 21",
45315
- style: {
45316
- position: "absolute",
45317
- top: 0
45318
- }
45319
- }, React__default.createElement('path', {
45320
- d: "M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",
45321
- fill: "#fff",
45322
- fillRule: "evenodd"
45323
- }));
45324
-
45325
- function createBackgroundColor(pos, checkedPos, uncheckedPos, offColor, onColor) {
45326
- var relativePos = (pos - uncheckedPos) / (checkedPos - uncheckedPos);
45327
-
45328
- if (relativePos === 0) {
45329
- return offColor;
45330
- }
45331
-
45332
- if (relativePos === 1) {
45333
- return onColor;
45334
- }
45335
-
45336
- var newColor = "#";
45337
-
45338
- for (var i = 1; i < 6; i += 2) {
45339
- var offComponent = parseInt(offColor.substr(i, 2), 16);
45340
- var onComponent = parseInt(onColor.substr(i, 2), 16);
45341
- var weightedValue = Math.round((1 - relativePos) * offComponent + relativePos * onComponent);
45342
- var newComponent = weightedValue.toString(16);
45343
-
45344
- if (newComponent.length === 1) {
45345
- newComponent = "0" + newComponent;
45248
+ /* -------------------------------------------------------------------------------------------------
45249
+ * Slot
45250
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
45251
+ const { children: children , ...slotProps } = props;
45252
+ const childrenArray = Children.toArray(children);
45253
+ const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
45254
+ if (slottable) {
45255
+ // the new element to render is the one passed as a child of `Slottable`
45256
+ const newElement = slottable.props.children;
45257
+ const newChildren = childrenArray.map((child)=>{
45258
+ if (child === slottable) {
45259
+ // because the new element will be the one rendered, we are only interested
45260
+ // in grabbing its children (`newElement.props.children`)
45261
+ if (Children.count(newElement) > 1) return Children.only(null);
45262
+ return /*#__PURE__*/ isValidElement(newElement) ? newElement.props.children : null;
45263
+ } else return child;
45264
+ });
45265
+ return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends$L({}, slotProps, {
45266
+ ref: forwardedRef
45267
+ }), /*#__PURE__*/ isValidElement(newElement) ? /*#__PURE__*/ cloneElement(newElement, undefined, newChildren) : null);
45346
45268
  }
45347
-
45348
- newColor += newComponent;
45349
- }
45350
-
45351
- return newColor;
45352
- }
45353
-
45354
- function convertShorthandColor(color) {
45355
- if (color.length === 7) {
45356
- return color;
45357
- }
45358
-
45359
- var sixDigitColor = "#";
45360
-
45361
- for (var i = 1; i < 4; i += 1) {
45362
- sixDigitColor += color[i] + color[i];
45363
- }
45364
-
45365
- return sixDigitColor;
45366
- }
45367
-
45368
- function getBackgroundColor(pos, checkedPos, uncheckedPos, offColor, onColor) {
45369
- var sixDigitOffColor = convertShorthandColor(offColor);
45370
- var sixDigitOnColor = convertShorthandColor(onColor);
45371
- return createBackgroundColor(pos, checkedPos, uncheckedPos, sixDigitOffColor, sixDigitOnColor);
45372
- }
45373
-
45374
- // Make sure color props are strings that start with "#" since other ways to write colors are not supported.
45375
- var hexColorPropType = function (props, propName, componentName) {
45376
- var prop = props[propName];
45377
-
45378
- if (typeof prop !== "string" || prop[0] !== "#" || prop.length !== 4 && prop.length !== 7) {
45379
- return new Error("Invalid prop '" + propName + "' supplied to '" + componentName + "'. '" + propName + "' has to be either a 3-digit or 6-digit hex-color string. Valid examples: '#abc', '#123456'");
45380
- }
45381
-
45382
- return null;
45269
+ return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends$L({}, slotProps, {
45270
+ ref: forwardedRef
45271
+ }), children);
45272
+ });
45273
+ $5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot';
45274
+ /* -------------------------------------------------------------------------------------------------
45275
+ * SlotClone
45276
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
45277
+ const { children: children , ...slotProps } = props;
45278
+ if (/*#__PURE__*/ isValidElement(children)) return /*#__PURE__*/ cloneElement(children, {
45279
+ ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
45280
+ ref: $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref)
45281
+ });
45282
+ return Children.count(children) > 1 ? Children.only(null) : null;
45283
+ });
45284
+ $5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone';
45285
+ /* -------------------------------------------------------------------------------------------------
45286
+ * Slottable
45287
+ * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{
45288
+ return /*#__PURE__*/ createElement(Fragment$2, null, children);
45383
45289
  };
45384
-
45385
- function objectWithoutProperties(obj, exclude) {
45386
- var target = {};
45387
-
45388
- for (var k in obj) if (Object.prototype.hasOwnProperty.call(obj, k) && exclude.indexOf(k) === -1) target[k] = obj[k];
45389
-
45390
- return target;
45290
+ /* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) {
45291
+ return /*#__PURE__*/ isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
45391
45292
  }
45392
-
45393
- var ReactSwitch = /*@__PURE__*/function (Component) {
45394
- function ReactSwitch(props) {
45395
- Component.call(this, props);
45396
- var height = props.height;
45397
- var width = props.width;
45398
- var handleDiameter = props.handleDiameter;
45399
- var checked = props.checked;
45400
- this.$handleDiameter = handleDiameter || height - 2;
45401
- this.$checkedPos = Math.max(width - height, width - (height + this.$handleDiameter) / 2);
45402
- this.$uncheckedPos = Math.max(0, (height - this.$handleDiameter) / 2);
45403
- this.state = {
45404
- $pos: checked ? this.$checkedPos : this.$uncheckedPos
45293
+ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
45294
+ // all child props should override
45295
+ const overrideProps = {
45296
+ ...childProps
45405
45297
  };
45406
- this.$lastDragAt = 0;
45407
- this.$lastKeyUpAt = 0;
45408
- this.$onMouseDown = this.$onMouseDown.bind(this);
45409
- this.$onMouseMove = this.$onMouseMove.bind(this);
45410
- this.$onMouseUp = this.$onMouseUp.bind(this);
45411
- this.$onTouchStart = this.$onTouchStart.bind(this);
45412
- this.$onTouchMove = this.$onTouchMove.bind(this);
45413
- this.$onTouchEnd = this.$onTouchEnd.bind(this);
45414
- this.$onClick = this.$onClick.bind(this);
45415
- this.$onInputChange = this.$onInputChange.bind(this);
45416
- this.$onKeyUp = this.$onKeyUp.bind(this);
45417
- this.$setHasOutline = this.$setHasOutline.bind(this);
45418
- this.$unsetHasOutline = this.$unsetHasOutline.bind(this);
45419
- this.$getInputRef = this.$getInputRef.bind(this);
45420
- }
45421
-
45422
- if (Component) ReactSwitch.__proto__ = Component;
45423
- ReactSwitch.prototype = Object.create(Component && Component.prototype);
45424
- ReactSwitch.prototype.constructor = ReactSwitch;
45425
-
45426
- ReactSwitch.prototype.componentDidMount = function componentDidMount() {
45427
- this.$isMounted = true;
45428
- };
45429
-
45430
- ReactSwitch.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {
45431
- if (prevProps.checked === this.props.checked) {
45432
- return;
45298
+ for(const propName in childProps){
45299
+ const slotPropValue = slotProps[propName];
45300
+ const childPropValue = childProps[propName];
45301
+ const isHandler = /^on[A-Z]/.test(propName);
45302
+ if (isHandler) {
45303
+ // if the handler exists on both, we compose them
45304
+ if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{
45305
+ childPropValue(...args);
45306
+ slotPropValue(...args);
45307
+ };
45308
+ else if (slotPropValue) overrideProps[propName] = slotPropValue;
45309
+ } else if (propName === 'style') overrideProps[propName] = {
45310
+ ...slotPropValue,
45311
+ ...childPropValue
45312
+ };
45313
+ else if (propName === 'className') overrideProps[propName] = [
45314
+ slotPropValue,
45315
+ childPropValue
45316
+ ].filter(Boolean).join(' ');
45433
45317
  }
45318
+ return {
45319
+ ...slotProps,
45320
+ ...overrideProps
45321
+ };
45322
+ }
45434
45323
 
45435
- var $pos = this.props.checked ? this.$checkedPos : this.$uncheckedPos;
45436
- this.setState({
45437
- $pos: $pos
45324
+ const $8927f6f2acc4f386$var$NODES = [
45325
+ 'a',
45326
+ 'button',
45327
+ 'div',
45328
+ 'form',
45329
+ 'h2',
45330
+ 'h3',
45331
+ 'img',
45332
+ 'input',
45333
+ 'label',
45334
+ 'li',
45335
+ 'nav',
45336
+ 'ol',
45337
+ 'p',
45338
+ 'span',
45339
+ 'svg',
45340
+ 'ul'
45341
+ ]; // Temporary while we await merge of this fix:
45342
+ // https://github.com/DefinitelyTyped/DefinitelyTyped/pull/55396
45343
+ // prettier-ignore
45344
+ /* -------------------------------------------------------------------------------------------------
45345
+ * Primitive
45346
+ * -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce((primitive, node)=>{
45347
+ const Node = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
45348
+ const { asChild: asChild , ...primitiveProps } = props;
45349
+ const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
45350
+ useEffect(()=>{
45351
+ window[Symbol.for('radix-ui')] = true;
45352
+ }, []);
45353
+ return /*#__PURE__*/ createElement(Comp, _extends$L({}, primitiveProps, {
45354
+ ref: forwardedRef
45355
+ }));
45438
45356
  });
45439
- };
45440
-
45441
- ReactSwitch.prototype.componentWillUnmount = function componentWillUnmount() {
45442
- this.$isMounted = false;
45443
- };
45357
+ Node.displayName = `Primitive.${node}`;
45358
+ return {
45359
+ ...primitive,
45360
+ [node]: Node
45361
+ };
45362
+ }, {});
45444
45363
 
45445
- ReactSwitch.prototype.$onDragStart = function $onDragStart(clientX) {
45446
- this.$inputRef.focus();
45447
- this.setState({
45448
- $startX: clientX,
45449
- $hasOutline: true,
45450
- $dragStartingTime: Date.now()
45364
+ /* -------------------------------------------------------------------------------------------------
45365
+ * Switch
45366
+ * -----------------------------------------------------------------------------------------------*/ const $6be4966fd9bbc698$var$SWITCH_NAME = 'Switch';
45367
+ const [$6be4966fd9bbc698$var$createSwitchContext, $6be4966fd9bbc698$export$cf7f5f17f69cbd43] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($6be4966fd9bbc698$var$SWITCH_NAME);
45368
+ const [$6be4966fd9bbc698$var$SwitchProvider, $6be4966fd9bbc698$var$useSwitchContext] = $6be4966fd9bbc698$var$createSwitchContext($6be4966fd9bbc698$var$SWITCH_NAME);
45369
+ const $6be4966fd9bbc698$export$b5d5cf8927ab7262 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
45370
+ const { __scopeSwitch: __scopeSwitch , name: name , checked: checkedProp , defaultChecked: defaultChecked , required: required , disabled: disabled , value: value = 'on' , onCheckedChange: onCheckedChange , ...switchProps } = props;
45371
+ const [button, setButton] = useState(null);
45372
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setButton(node)
45373
+ );
45374
+ const hasConsumerStoppedPropagationRef = useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)
45375
+ const isFormControl = button ? Boolean(button.closest('form')) : true;
45376
+ const [checked = false, setChecked] = $71cd76cc60e0454e$export$6f32135080cb4c3({
45377
+ prop: checkedProp,
45378
+ defaultProp: defaultChecked,
45379
+ onChange: onCheckedChange
45451
45380
  });
45452
- };
45453
-
45454
- ReactSwitch.prototype.$onDrag = function $onDrag(clientX) {
45455
- var ref = this.state;
45456
- var $startX = ref.$startX;
45457
- var $isDragging = ref.$isDragging;
45458
- var $pos = ref.$pos;
45459
- var ref$1 = this.props;
45460
- var checked = ref$1.checked;
45461
- var startPos = checked ? this.$checkedPos : this.$uncheckedPos;
45462
- var mousePos = startPos + clientX - $startX; // We need this check to fix a windows glitch where onDrag is triggered onMouseDown in some cases
45463
-
45464
- if (!$isDragging && clientX !== $startX) {
45465
- this.setState({
45466
- $isDragging: true
45467
- });
45468
- }
45469
-
45470
- var newPos = Math.min(this.$checkedPos, Math.max(this.$uncheckedPos, mousePos)); // Prevent unnecessary rerenders
45471
-
45472
- if (newPos !== $pos) {
45473
- this.setState({
45474
- $pos: newPos
45475
- });
45476
- }
45477
- };
45478
-
45479
- ReactSwitch.prototype.$onDragStop = function $onDragStop(event) {
45480
- var ref = this.state;
45481
- var $pos = ref.$pos;
45482
- var $isDragging = ref.$isDragging;
45483
- var $dragStartingTime = ref.$dragStartingTime;
45484
- var ref$1 = this.props;
45485
- var checked = ref$1.checked;
45486
- var halfwayCheckpoint = (this.$checkedPos + this.$uncheckedPos) / 2;
45487
- /*
45488
- Set position state back to the previous position even if user drags the switch with intention to change the state.
45489
- This is to prevent the switch from getting stuck in the middle if the event isn't handled in the onChange callback.
45490
- */
45491
-
45492
- var prevPos = this.props.checked ? this.$checkedPos : this.$uncheckedPos;
45493
- this.setState({
45494
- $pos: prevPos
45495
- }); // Act as if the user clicked the handle if they didn't drag it _or_ the dragged it for less than 250ms
45496
-
45497
- var timeSinceStart = Date.now() - $dragStartingTime;
45498
- var isSimulatedClick = !$isDragging || timeSinceStart < 250; // Handle when the user has dragged the switch more than halfway from either side
45499
-
45500
- var isDraggedHalfway = checked && $pos <= halfwayCheckpoint || !checked && $pos >= halfwayCheckpoint;
45501
-
45502
- if (isSimulatedClick || isDraggedHalfway) {
45503
- this.$onChange(event);
45504
- }
45505
-
45506
- if (this.$isMounted) {
45507
- this.setState({
45508
- $isDragging: false,
45509
- $hasOutline: false
45510
- });
45511
- }
45512
-
45513
- this.$lastDragAt = Date.now();
45514
- };
45515
-
45516
- ReactSwitch.prototype.$onMouseDown = function $onMouseDown(event) {
45517
- event.preventDefault(); // Ignore right click and scroll
45518
-
45519
- if (typeof event.button === "number" && event.button !== 0) {
45520
- return;
45521
- }
45522
-
45523
- this.$onDragStart(event.clientX);
45524
- window.addEventListener("mousemove", this.$onMouseMove);
45525
- window.addEventListener("mouseup", this.$onMouseUp);
45526
- };
45527
-
45528
- ReactSwitch.prototype.$onMouseMove = function $onMouseMove(event) {
45529
- event.preventDefault();
45530
- this.$onDrag(event.clientX);
45531
- };
45532
-
45533
- ReactSwitch.prototype.$onMouseUp = function $onMouseUp(event) {
45534
- this.$onDragStop(event);
45535
- window.removeEventListener("mousemove", this.$onMouseMove);
45536
- window.removeEventListener("mouseup", this.$onMouseUp);
45537
- };
45538
-
45539
- ReactSwitch.prototype.$onTouchStart = function $onTouchStart(event) {
45540
- this.$checkedStateFromDragging = null;
45541
- this.$onDragStart(event.touches[0].clientX);
45542
- };
45543
-
45544
- ReactSwitch.prototype.$onTouchMove = function $onTouchMove(event) {
45545
- this.$onDrag(event.touches[0].clientX);
45546
- };
45547
-
45548
- ReactSwitch.prototype.$onTouchEnd = function $onTouchEnd(event) {
45549
- event.preventDefault();
45550
- this.$onDragStop(event);
45551
- };
45552
-
45553
- ReactSwitch.prototype.$onInputChange = function $onInputChange(event) {
45554
- // This condition is unfortunately needed in some browsers where the input's change event might get triggered
45555
- // right after the dragstop event is triggered (occurs when dropping over a label element)
45556
- if (Date.now() - this.$lastDragAt > 50) {
45557
- this.$onChange(event); // Prevent clicking label, but not key activation from setting outline to true - yes, this is absurd
45558
-
45559
- if (Date.now() - this.$lastKeyUpAt > 50) {
45560
- if (this.$isMounted) {
45561
- this.setState({
45562
- $hasOutline: false
45563
- });
45381
+ return /*#__PURE__*/ createElement($6be4966fd9bbc698$var$SwitchProvider, {
45382
+ scope: __scopeSwitch,
45383
+ checked: checked,
45384
+ disabled: disabled
45385
+ }, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$L({
45386
+ type: "button",
45387
+ role: "switch",
45388
+ "aria-checked": checked,
45389
+ "aria-required": required,
45390
+ "data-state": $6be4966fd9bbc698$var$getState(checked),
45391
+ "data-disabled": disabled ? '' : undefined,
45392
+ disabled: disabled,
45393
+ value: value
45394
+ }, switchProps, {
45395
+ ref: composedRefs,
45396
+ onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, (event)=>{
45397
+ setChecked((prevChecked)=>!prevChecked
45398
+ );
45399
+ if (isFormControl) {
45400
+ hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if switch is in a form, stop propagation from the button so that we only propagate
45401
+ // one click event (from the input). We propagate changes from an input so that native
45402
+ // form validation works and form events reflect switch updates.
45403
+ if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
45404
+ }
45405
+ })
45406
+ })), isFormControl && /*#__PURE__*/ createElement($6be4966fd9bbc698$var$BubbleInput, {
45407
+ control: button,
45408
+ bubbles: !hasConsumerStoppedPropagationRef.current,
45409
+ name: name,
45410
+ value: value,
45411
+ checked: checked,
45412
+ required: required,
45413
+ disabled: disabled // We transform because the input is absolutely positioned but we have
45414
+ ,
45415
+ style: {
45416
+ transform: 'translateX(-100%)'
45564
45417
  }
45565
- }
45566
- }
45567
- };
45568
-
45569
- ReactSwitch.prototype.$onKeyUp = function $onKeyUp() {
45570
- this.$lastKeyUpAt = Date.now();
45571
- };
45572
-
45573
- ReactSwitch.prototype.$setHasOutline = function $setHasOutline() {
45574
- this.setState({
45575
- $hasOutline: true
45576
- });
45577
- };
45578
-
45579
- ReactSwitch.prototype.$unsetHasOutline = function $unsetHasOutline() {
45580
- this.setState({
45581
- $hasOutline: false
45582
- });
45583
- };
45584
-
45585
- ReactSwitch.prototype.$getInputRef = function $getInputRef(el) {
45586
- this.$inputRef = el;
45587
- };
45588
-
45589
- ReactSwitch.prototype.$onClick = function $onClick(event) {
45590
- event.preventDefault();
45591
- this.$inputRef.focus();
45592
- this.$onChange(event);
45593
-
45594
- if (this.$isMounted) {
45595
- this.setState({
45596
- $hasOutline: false
45597
- });
45598
- }
45599
- };
45600
-
45601
- ReactSwitch.prototype.$onChange = function $onChange(event) {
45602
- var ref = this.props;
45603
- var checked = ref.checked;
45604
- var onChange = ref.onChange;
45605
- var id = ref.id;
45606
- onChange(!checked, event, id);
45607
- };
45608
-
45609
- ReactSwitch.prototype.render = function render() {
45610
- var ref = this.props;
45611
- var checked = ref.checked;
45612
- var disabled = ref.disabled;
45613
- var className = ref.className;
45614
- var offColor = ref.offColor;
45615
- var onColor = ref.onColor;
45616
- var offHandleColor = ref.offHandleColor;
45617
- var onHandleColor = ref.onHandleColor;
45618
- var checkedIcon = ref.checkedIcon;
45619
- var uncheckedIcon = ref.uncheckedIcon;
45620
- var checkedHandleIcon = ref.checkedHandleIcon;
45621
- var uncheckedHandleIcon = ref.uncheckedHandleIcon;
45622
- var boxShadow = ref.boxShadow;
45623
- var activeBoxShadow = ref.activeBoxShadow;
45624
- var height = ref.height;
45625
- var width = ref.width;
45626
- var borderRadius = ref.borderRadius;
45627
- ref.handleDiameter;
45628
- var rest$1 = objectWithoutProperties(ref, ["checked", "disabled", "className", "offColor", "onColor", "offHandleColor", "onHandleColor", "checkedIcon", "uncheckedIcon", "checkedHandleIcon", "uncheckedHandleIcon", "boxShadow", "activeBoxShadow", "height", "width", "borderRadius", "handleDiameter"]);
45629
- var rest = rest$1;
45630
- var ref$1 = this.state;
45631
- var $pos = ref$1.$pos;
45632
- var $isDragging = ref$1.$isDragging;
45633
- var $hasOutline = ref$1.$hasOutline;
45634
- var rootStyle = {
45635
- position: "relative",
45636
- display: "inline-block",
45637
- textAlign: "left",
45638
- opacity: disabled ? 0.5 : 1,
45639
- direction: "ltr",
45640
- borderRadius: height / 2,
45641
- WebkitTransition: "opacity 0.25s",
45642
- MozTransition: "opacity 0.25s",
45643
- transition: "opacity 0.25s",
45644
- touchAction: "none",
45645
- WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
45646
- WebkitUserSelect: "none",
45647
- MozUserSelect: "none",
45648
- msUserSelect: "none",
45649
- userSelect: "none"
45650
- };
45651
- var backgroundStyle = {
45652
- height: height,
45653
- width: width,
45654
- margin: Math.max(0, (this.$handleDiameter - height) / 2),
45655
- position: "relative",
45656
- background: getBackgroundColor($pos, this.$checkedPos, this.$uncheckedPos, offColor, onColor),
45657
- borderRadius: typeof borderRadius === "number" ? borderRadius : height / 2,
45658
- cursor: disabled ? "default" : "pointer",
45659
- WebkitTransition: $isDragging ? null : "background 0.25s",
45660
- MozTransition: $isDragging ? null : "background 0.25s",
45661
- transition: $isDragging ? null : "background 0.25s"
45662
- };
45663
- var checkedIconStyle = {
45664
- height: height,
45665
- width: Math.min(height * 1.5, width - (this.$handleDiameter + height) / 2 + 1),
45666
- position: "relative",
45667
- opacity: ($pos - this.$uncheckedPos) / (this.$checkedPos - this.$uncheckedPos),
45668
- pointerEvents: "none",
45669
- WebkitTransition: $isDragging ? null : "opacity 0.25s",
45670
- MozTransition: $isDragging ? null : "opacity 0.25s",
45671
- transition: $isDragging ? null : "opacity 0.25s"
45672
- };
45673
- var uncheckedIconStyle = {
45674
- height: height,
45675
- width: Math.min(height * 1.5, width - (this.$handleDiameter + height) / 2 + 1),
45676
- position: "absolute",
45677
- opacity: 1 - ($pos - this.$uncheckedPos) / (this.$checkedPos - this.$uncheckedPos),
45678
- right: 0,
45679
- top: 0,
45680
- pointerEvents: "none",
45681
- WebkitTransition: $isDragging ? null : "opacity 0.25s",
45682
- MozTransition: $isDragging ? null : "opacity 0.25s",
45683
- transition: $isDragging ? null : "opacity 0.25s"
45684
- };
45685
- var handleStyle = {
45686
- height: this.$handleDiameter,
45687
- width: this.$handleDiameter,
45688
- background: getBackgroundColor($pos, this.$checkedPos, this.$uncheckedPos, offHandleColor, onHandleColor),
45689
- display: "inline-block",
45690
- cursor: disabled ? "default" : "pointer",
45691
- borderRadius: typeof borderRadius === "number" ? borderRadius - 1 : "50%",
45692
- position: "absolute",
45693
- transform: "translateX(" + $pos + "px)",
45694
- top: Math.max(0, (height - this.$handleDiameter) / 2),
45695
- outline: 0,
45696
- boxShadow: $hasOutline ? activeBoxShadow : boxShadow,
45697
- border: 0,
45698
- WebkitTransition: $isDragging ? null : "background-color 0.25s, transform 0.25s, box-shadow 0.15s",
45699
- MozTransition: $isDragging ? null : "background-color 0.25s, transform 0.25s, box-shadow 0.15s",
45700
- transition: $isDragging ? null : "background-color 0.25s, transform 0.25s, box-shadow 0.15s"
45701
- };
45702
- var uncheckedHandleIconStyle = {
45703
- height: this.$handleDiameter,
45704
- width: this.$handleDiameter,
45705
- opacity: Math.max((1 - ($pos - this.$uncheckedPos) / (this.$checkedPos - this.$uncheckedPos) - 0.5) * 2, 0),
45706
- position: "absolute",
45707
- left: 0,
45708
- top: 0,
45709
- pointerEvents: "none",
45710
- WebkitTransition: $isDragging ? null : "opacity 0.25s",
45711
- MozTransition: $isDragging ? null : "opacity 0.25s",
45712
- transition: $isDragging ? null : "opacity 0.25s"
45713
- };
45714
- var checkedHandleIconStyle = {
45715
- height: this.$handleDiameter,
45716
- width: this.$handleDiameter,
45717
- opacity: Math.max((($pos - this.$uncheckedPos) / (this.$checkedPos - this.$uncheckedPos) - 0.5) * 2, 0),
45718
- position: "absolute",
45719
- left: 0,
45720
- top: 0,
45721
- pointerEvents: "none",
45722
- WebkitTransition: $isDragging ? null : "opacity 0.25s",
45723
- MozTransition: $isDragging ? null : "opacity 0.25s",
45724
- transition: $isDragging ? null : "opacity 0.25s"
45725
- };
45726
- var inputStyle = {
45727
- border: 0,
45728
- clip: "rect(0 0 0 0)",
45729
- height: 1,
45730
- margin: -1,
45731
- overflow: "hidden",
45732
- padding: 0,
45733
- position: "absolute",
45734
- width: 1
45735
- };
45736
- return React__default.createElement('div', {
45737
- className: className,
45738
- style: rootStyle
45739
- }, React__default.createElement('div', {
45740
- className: "react-switch-bg",
45741
- style: backgroundStyle,
45742
- onClick: disabled ? null : this.$onClick,
45743
- onMouseDown: function (e) {
45744
- return e.preventDefault();
45745
- }
45746
- }, checkedIcon && React__default.createElement('div', {
45747
- style: checkedIconStyle
45748
- }, checkedIcon), uncheckedIcon && React__default.createElement('div', {
45749
- style: uncheckedIconStyle
45750
- }, uncheckedIcon)), React__default.createElement('div', {
45751
- className: "react-switch-handle",
45752
- style: handleStyle,
45753
- onClick: function (e) {
45754
- return e.preventDefault();
45755
- },
45756
- onMouseDown: disabled ? null : this.$onMouseDown,
45757
- onTouchStart: disabled ? null : this.$onTouchStart,
45758
- onTouchMove: disabled ? null : this.$onTouchMove,
45759
- onTouchEnd: disabled ? null : this.$onTouchEnd,
45760
- onTouchCancel: disabled ? null : this.$unsetHasOutline
45761
- }, uncheckedHandleIcon && React__default.createElement('div', {
45762
- style: uncheckedHandleIconStyle
45763
- }, uncheckedHandleIcon), checkedHandleIcon && React__default.createElement('div', {
45764
- style: checkedHandleIconStyle
45765
- }, checkedHandleIcon)), React__default.createElement('input', _extends({}, {
45766
- type: "checkbox",
45767
- role: "switch",
45768
- 'aria-checked': checked,
45769
- checked: checked,
45770
- disabled: disabled,
45771
- style: inputStyle
45772
- }, rest, {
45773
- ref: this.$getInputRef,
45774
- onFocus: this.$setHasOutline,
45775
- onBlur: this.$unsetHasOutline,
45776
- onKeyUp: this.$onKeyUp,
45777
- onChange: this.$onInputChange
45778
- })));
45779
- };
45780
-
45781
- return ReactSwitch;
45782
- }(React__default.Component);
45783
-
45784
- ReactSwitch.propTypes = {
45785
- checked: require$$7$1.bool.isRequired,
45786
- onChange: require$$7$1.func.isRequired,
45787
- disabled: require$$7$1.bool,
45788
- offColor: hexColorPropType,
45789
- onColor: hexColorPropType,
45790
- offHandleColor: hexColorPropType,
45791
- onHandleColor: hexColorPropType,
45792
- handleDiameter: require$$7$1.number,
45793
- uncheckedIcon: require$$7$1.oneOfType([require$$7$1.bool, require$$7$1.element]),
45794
- checkedIcon: require$$7$1.oneOfType([require$$7$1.bool, require$$7$1.element]),
45795
- boxShadow: require$$7$1.string,
45796
- borderRadius: require$$7$1.number,
45797
- activeBoxShadow: require$$7$1.string,
45798
- uncheckedHandleIcon: require$$7$1.element,
45799
- checkedHandleIcon: require$$7$1.element,
45800
- height: require$$7$1.number,
45801
- width: require$$7$1.number,
45802
- id: require$$7$1.string,
45803
- className: require$$7$1.string
45804
- };
45805
- ReactSwitch.defaultProps = {
45806
- disabled: false,
45807
- offColor: "#888",
45808
- onColor: "#080",
45809
- offHandleColor: "#fff",
45810
- onHandleColor: "#fff",
45811
- uncheckedIcon: uncheckedIcon,
45812
- checkedIcon: checkedIcon,
45813
- boxShadow: null,
45814
- activeBoxShadow: "0 0 2px 3px #3bf",
45815
- height: 28,
45816
- width: 56
45817
- };
45818
-
45819
- exports["default"] = ReactSwitch;
45418
+ }));
45820
45419
  });
45821
-
45822
- var reactSwitch = createCommonjsModule(function (module) {
45823
- if (process.env.NODE_ENV === "production") {
45824
- module.exports = index_prod;
45825
- } else {
45826
- module.exports = index_dev;
45827
- }
45420
+ /* -------------------------------------------------------------------------------------------------
45421
+ * SwitchThumb
45422
+ * -----------------------------------------------------------------------------------------------*/ const $6be4966fd9bbc698$var$THUMB_NAME = 'SwitchThumb';
45423
+ const $6be4966fd9bbc698$export$4d07bf653ea69106 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
45424
+ const { __scopeSwitch: __scopeSwitch , ...thumbProps } = props;
45425
+ const context = $6be4966fd9bbc698$var$useSwitchContext($6be4966fd9bbc698$var$THUMB_NAME, __scopeSwitch);
45426
+ return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$L({
45427
+ "data-state": $6be4966fd9bbc698$var$getState(context.checked),
45428
+ "data-disabled": context.disabled ? '' : undefined
45429
+ }, thumbProps, {
45430
+ ref: forwardedRef
45431
+ }));
45828
45432
  });
45433
+ /* ---------------------------------------------------------------------------------------------- */ const $6be4966fd9bbc698$var$BubbleInput = (props)=>{
45434
+ const { control: control , checked: checked , bubbles: bubbles = true , ...inputProps } = props;
45435
+ const ref = useRef(null);
45436
+ const prevChecked = $010c2913dbd2fe3d$export$5cae361ad82dce8b(checked);
45437
+ const controlSize = $db6c3485150b8e66$export$1ab7ae714698c4b8(control); // Bubble checked change to parents (e.g form change event)
45438
+ useEffect(()=>{
45439
+ const input = ref.current;
45440
+ const inputProto = window.HTMLInputElement.prototype;
45441
+ const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');
45442
+ const setChecked = descriptor.set;
45443
+ if (prevChecked !== checked && setChecked) {
45444
+ const event = new Event('click', {
45445
+ bubbles: bubbles
45446
+ });
45447
+ setChecked.call(input, checked);
45448
+ input.dispatchEvent(event);
45449
+ }
45450
+ }, [
45451
+ prevChecked,
45452
+ checked,
45453
+ bubbles
45454
+ ]);
45455
+ return /*#__PURE__*/ createElement("input", _extends$L({
45456
+ type: "checkbox",
45457
+ "aria-hidden": true,
45458
+ defaultChecked: checked
45459
+ }, inputProps, {
45460
+ tabIndex: -1,
45461
+ ref: ref,
45462
+ style: {
45463
+ ...props.style,
45464
+ ...controlSize,
45465
+ position: 'absolute',
45466
+ pointerEvents: 'none',
45467
+ opacity: 0,
45468
+ margin: 0
45469
+ }
45470
+ }));
45471
+ };
45472
+ function $6be4966fd9bbc698$var$getState(checked) {
45473
+ return checked ? 'checked' : 'unchecked';
45474
+ }
45475
+ const $6be4966fd9bbc698$export$be92b6f5f03c0fe9 = $6be4966fd9bbc698$export$b5d5cf8927ab7262;
45476
+ const $6be4966fd9bbc698$export$6521433ed15a34db = $6be4966fd9bbc698$export$4d07bf653ea69106;
45829
45477
 
45830
- var css_248z$9 = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n --primary3: #000;\n --success: #46A758;\n --warning: #F76809;\n --danger: #FF4616;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n@keyframes Animation {\n 0% {\n background-position: 200%;\n }\n 50% {\n background-position: 100%;\n }\n 100% {\n background-position: 0%;\n }\n}\n.loading {\n background: linear-gradient(45deg, transparent, var(--primary), 12%, transparent);\n background-size: 200%;\n animation: Animation 3s ease infinite;\n}\n\n@keyframes open {\n from {\n height: 0;\n }\n to {\n height: var(--radix-collapsible-content-height);\n }\n}\n@keyframes close {\n from {\n height: var(--radix-collapsible-content-height);\n }\n to {\n height: 0;\n }\n}\n.collapse-content {\n overflow: hidden;\n font-size: inherit;\n color: inherit;\n}\n\n.collapse-content[data-state=open] {\n animation: open 300ms ease-out;\n}\n\n.collapse-content[data-state=closed] {\n animation: close 300ms ease-out;\n}\n\n.cards-recipe {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));\n grid-auto-rows: auto;\n grid-gap: 1rem;\n}\n\n.cards-recipe-header {\n display: grid;\n grid-template-columns: repeat(auto-fill, 1fr);\n grid-auto-rows: auto;\n grid-gap: 0.75rem;\n}\n\n.cards-container-recipe {\n border: 1px solid rgba(0, 0, 0, 0.125);\n padding: 10px 0 0 0;\n margin: 10px 0 0 0;\n border-radius: 6px;\n}\n\n.cards-container-title-recipe {\n margin: 0 0 10px 0;\n font-size: 17px !important;\n}";
45478
+ var css_248z$9 = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n --primary3: #000;\n --success: #46A758;\n --warning: #F76809;\n --danger: #FF4616;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n@keyframes Animation {\n 0% {\n background-position: 200%;\n }\n 50% {\n background-position: 100%;\n }\n 100% {\n background-position: 0%;\n }\n}\n.loading {\n background: linear-gradient(45deg, transparent, var(--primary), 12%, transparent);\n background-size: 200%;\n animation: Animation 3s ease infinite;\n}\n\n@keyframes open {\n from {\n height: 0;\n }\n to {\n height: var(--radix-collapsible-content-height);\n }\n}\n@keyframes close {\n from {\n height: var(--radix-collapsible-content-height);\n }\n to {\n height: 0;\n }\n}\n.collapse-content {\n overflow: hidden;\n font-size: inherit;\n color: inherit;\n}\n\n.collapse-content[data-state=open] {\n animation: open 300ms ease-out;\n}\n\n.collapse-content[data-state=closed] {\n animation: close 300ms ease-out;\n}\n\n.cards-recipe {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));\n grid-auto-rows: auto;\n grid-gap: 1rem;\n}\n\n.cards-recipe-header {\n display: grid;\n grid-template-columns: repeat(auto-fill, 1fr);\n grid-auto-rows: auto;\n grid-gap: 0.75rem;\n}\n\n.cards-container-recipe {\n border: 1px solid rgba(0, 0, 0, 0.125);\n padding: 10px 0 0 0;\n margin: 10px 0 0 0;\n border-radius: 6px;\n}\n\n.cards-container-title-recipe {\n margin: 0 0 10px 0;\n font-size: 17px !important;\n}\n\n.SwitchRoot {\n all: unset;\n width: 42px;\n height: 25px;\n background-color: var(--slate11);\n border-radius: 9999px;\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.SwitchRoot:focus {\n border: none !important;\n}\n\n.SwitchRoot[data-state=checked] {\n background-color: #1890ff;\n}\n\n.SwitchThumb {\n all: unset;\n display: block;\n width: 21px;\n height: 21px;\n background-color: white;\n border-radius: 100%;\n box-shadow: 0 2px 2px var(--slate11);\n transition: transform 100ms;\n transform: translateX(2px);\n will-change: transform;\n}\n\n.SwitchThumb[data-state=checked] {\n transform: translateX(19px);\n}";
45831
45479
  styleInject(css_248z$9);
45832
45480
 
45833
45481
  var IconContext = /*#__PURE__*/createContext({});
@@ -47355,6 +47003,19 @@ var InputType;
47355
47003
  InputType["DAGArrayInput"] = "DAGArrayInput";
47356
47004
  InputType["DAGJSONObjectInput"] = "DAGJSONObjectInput";
47357
47005
  })(InputType || (InputType = {}));
47006
+ var InputTypeAlias;
47007
+ (function (InputTypeAlias) {
47008
+ InputTypeAlias["DAGGenericInputAlias"] = "DAGGenericInputAlias";
47009
+ InputTypeAlias["DAGStringInputAlias"] = "DAGStringInputAlias";
47010
+ InputTypeAlias["DAGIntegerInputAlias"] = "DAGIntegerInputAlias";
47011
+ InputTypeAlias["DAGNumberInputAlias"] = "DAGNumberInputAlias";
47012
+ InputTypeAlias["DAGBooleanInputAlias"] = "DAGBooleanInputAlias";
47013
+ InputTypeAlias["DAGFolderInputAlias"] = "DAGFolderInputAlias";
47014
+ InputTypeAlias["DAGFileInputAlias"] = "DAGFileInputAlias";
47015
+ InputTypeAlias["DAGPathInputAlias"] = "DAGPathInputAlias";
47016
+ InputTypeAlias["DAGArrayInputAlias"] = "DAGArrayInputAlias";
47017
+ InputTypeAlias["DAGJSONObjectInputAlias"] = "DAGJSONObjectInputAlias";
47018
+ })(InputTypeAlias || (InputTypeAlias = {}));
47358
47019
  var RecipeForm = function (_a) {
47359
47020
  var _b, _c;
47360
47021
  var recipe = _a.recipe, projectName = _a.projectName, projectOwner = _a.projectOwner, client = _a.client, onSubmit = _a.onSubmit, _d = _a.style, style = _d === void 0 ? {} : _d, _e = _a.initAsLocal, initAsLocal = _e === void 0 ? false : _e;
@@ -47365,6 +47026,11 @@ var RecipeForm = function (_a) {
47365
47026
  */
47366
47027
  var _h = useState(false), displaySettings = _h[0], setDisplaySettings = _h[1];
47367
47028
  var _j = useState(false), overSettings = _j[0], setOverSettings = _j[1];
47029
+ /**
47030
+ * Local study
47031
+ */
47032
+ var _k = useState(true), handlers = _k[0], setHandlers = _k[1];
47033
+ var _l = useState(__assign(__assign({}, _defaultConfig), { isLocalJob: initAsLocal, cloudProjectName: projectName, cloudProjectOwner: projectOwner, localRunFolder: simulationPath, useHandlers: handlers })), localConfig = _l[0], setLocalConfig = _l[1];
47368
47034
  /**
47369
47035
  * Input mapping
47370
47036
  */
@@ -47372,9 +47038,10 @@ var RecipeForm = function (_a) {
47372
47038
  if (!recipe)
47373
47039
  return;
47374
47040
  var data = recipe.inputs.map(function (i) {
47375
- var _a;
47041
+ var _a, _b;
47376
47042
  var customTab = (_a = i === null || i === void 0 ? void 0 : i.annotations['group_identifier']) !== null && _a !== void 0 ? _a : undefined;
47377
- return {
47043
+ var alias = handlers && ((_b = i === null || i === void 0 ? void 0 : i.alias) === null || _b === void 0 ? void 0 : _b.find(function (a) { return a.platform.includes(host); }));
47044
+ var inputInfo = {
47378
47045
  type: InputType[i.type],
47379
47046
  required: i.required,
47380
47047
  name: i.name,
@@ -47385,9 +47052,21 @@ var RecipeForm = function (_a) {
47385
47052
  i['extensions'] : [],
47386
47053
  customTab: customTab
47387
47054
  };
47055
+ alias && Object.keys(alias).forEach(function (key) {
47056
+ if (key in inputInfo) {
47057
+ // if the alias is DAGGenericInputAlias use the native input type
47058
+ if (key == 'type') {
47059
+ if (alias[key] == 'DAGGenericInputAlias') {
47060
+ return;
47061
+ }
47062
+ }
47063
+ inputInfo[key] = alias[key];
47064
+ }
47065
+ });
47066
+ return inputInfo;
47388
47067
  });
47389
47068
  return data;
47390
- }, [recipe]);
47069
+ }, [recipe, handlers]);
47391
47070
  var schema = generateSchema(inputs);
47392
47071
  var customTabs = useMemo(function () {
47393
47072
  if (!inputs)
@@ -47405,10 +47084,10 @@ var RecipeForm = function (_a) {
47405
47084
  /**
47406
47085
  * Hooks
47407
47086
  */
47408
- var _k = useForm({
47087
+ var _m = useForm({
47409
47088
  resolver: Oe(schema),
47410
47089
  mode: 'onChange'
47411
- }), control = _k.control, register = _k.register, handleSubmit = _k.handleSubmit, resetField = _k.resetField, watch = _k.watch, _l = _k.formState, errors = _l.errors, isValid = _l.isValid;
47090
+ }), control = _m.control, register = _m.register, handleSubmit = _m.handleSubmit, resetField = _m.resetField, watch = _m.watch, _o = _m.formState, errors = _o.errors, isValid = _o.isValid;
47412
47091
  var watchStudyName = watch('study-name');
47413
47092
  /**
47414
47093
  * Form actions
@@ -47454,12 +47133,15 @@ var RecipeForm = function (_a) {
47454
47133
  var _a, _b, _c, _d, _e;
47455
47134
  switch (i.type) {
47456
47135
  case InputType.DAGNumberInput:
47136
+ case InputTypeAlias.DAGNumberInputAlias:
47457
47137
  return React__default.createElement(NumberInput, { inputProps: __assign(__assign({}, register(i.name, { valueAsNumber: true })), { required: i.required, defaultValue: i.default, min: (_a = i.spec) === null || _a === void 0 ? void 0 : _a.minimum, max: (_b = i.spec) === null || _b === void 0 ? void 0 : _b.maximum, step: 0.1 }), key: i.name, reset: function () { return handleReset(i); } });
47458
47138
  case InputType.DAGIntegerInput:
47139
+ case InputTypeAlias.DAGIntegerInputAlias:
47459
47140
  return React__default.createElement(NumberInput, { key: i.name, icon: i.name.startsWith('cpu')
47460
47141
  ? React__default.createElement(Cpu$1, null)
47461
47142
  : undefined, inputProps: __assign(__assign({}, register(i.name, { valueAsNumber: true })), { required: i.required, defaultValue: i.default, min: (_c = i.spec) === null || _c === void 0 ? void 0 : _c.minimum, max: (_d = i.spec) === null || _d === void 0 ? void 0 : _d.maximum, step: 1 }), reset: function () { return handleReset(i); } });
47462
47143
  case InputType.DAGStringInput:
47144
+ case InputTypeAlias.DAGStringInputAlias:
47463
47145
  return ((_e = i.spec) === null || _e === void 0 ? void 0 : _e.enum)
47464
47146
  ? React__default.createElement(Controller, { name: i.name, control: control, defaultValue: i.default, render: function (_a) {
47465
47147
  var _b = _a.field, onChange = _b.onChange, value = _b.value; __rest(_b, ["onChange", "value"]);
@@ -47467,6 +47149,7 @@ var RecipeForm = function (_a) {
47467
47149
  } })
47468
47150
  : React__default.createElement(TextInput, { key: i.name, inputProps: __assign(__assign({}, register(i.name)), { defaultValue: i.default }), reset: function () { return handleReset(i); } });
47469
47151
  case InputType.DAGFileInput:
47152
+ case InputTypeAlias.DAGFileInputAlias:
47470
47153
  return React__default.createElement(Controller, { name: i.name, control: control, defaultValue: i.default, render: function (_a) {
47471
47154
  var _b, _c;
47472
47155
  var _d = _a.field, value = _d.value, onChange = _d.onChange, field = __rest(_d, ["value", "onChange"]);
@@ -47483,11 +47166,6 @@ var RecipeForm = function (_a) {
47483
47166
  return React__default.createElement(TextInput, { key: i.name, inputProps: __assign(__assign({}, register(i.name)), { defaultValue: i.default }), reset: function () { return handleReset(i); } });
47484
47167
  }
47485
47168
  };
47486
- /**
47487
- * Local study
47488
- */
47489
- var _m = useState(true), handlers = _m[0], setHandlers = _m[1];
47490
- var _o = useState(__assign(__assign({}, _defaultConfig), { isLocalJob: initAsLocal, cloudProjectName: projectName, cloudProjectOwner: projectOwner, localRunFolder: simulationPath, useHandlers: handlers })), localConfig = _o[0], setLocalConfig = _o[1];
47491
47169
  /**
47492
47170
  * Warning for local study folder
47493
47171
  */
@@ -47531,7 +47209,7 @@ var RecipeForm = function (_a) {
47531
47209
  " ",
47532
47210
  recipe.metadata.name,
47533
47211
  " study"),
47534
- React__default.createElement("span", { style: { display: 'inline', float: 'right' }, title: 'Show settings' },
47212
+ host != 'web' && React__default.createElement("span", { style: { display: 'inline', float: 'right' }, title: 'Show settings' },
47535
47213
  React__default.createElement(SettingOutlined$1, { onMouseOver: function () { return setOverSettings(true); }, onMouseLeave: function () { return setOverSettings(false); }, onClick: function () { return setDisplaySettings(function (prev) { return !prev; }); }, style: {
47536
47214
  fontSize: '18px',
47537
47215
  cursor: 'pointer',
@@ -47546,7 +47224,8 @@ var RecipeForm = function (_a) {
47546
47224
  React__default.createElement(TextInput, { inputProps: __assign(__assign({}, register('study-description')), { defaultValue: '' }), asTextArea: true, reset: function () { return handleReset({ name: 'study-description',
47547
47225
  default: '' }); } })),
47548
47226
  host !== 'web' && displaySettings && React__default.createElement(FormInput, { name: 'load-input-aliases', description: 'Enable handlers for an additional validation and/or to convert inputs to objects that are needed by the recipe.' },
47549
- React__default.createElement(reactSwitch, { checked: handlers, onChange: setHandlers, onColor: '#86d3ff', onHandleColor: '#1890ff', handleDiameter: 20, uncheckedIcon: false, checkedIcon: false, boxShadow: '0px 1px 5px rgba(0, 0, 0, 0.6)', activeBoxShadow: '0px 0px 1px 10px rgba(0, 0, 0, 0.2)', height: 20, width: 48, className: 'react-switch', id: 'po-material-switch' })))),
47227
+ React__default.createElement($6be4966fd9bbc698$export$be92b6f5f03c0fe9, { className: 'SwitchRoot', id: 'po-material-switch', checked: handlers, onClick: function (e) { return setHandlers(function (prev) { return !prev; }); } },
47228
+ React__default.createElement($6be4966fd9bbc698$export$6521433ed15a34db, { className: 'SwitchThumb' }))))),
47550
47229
  React__default.createElement(Tabs, { forceRenderTabPanel: true },
47551
47230
  React__default.createElement(TabList, { style: {
47552
47231
  flex: 1,
@@ -55727,7 +55406,10 @@ var SendGeometry = function (_a) {
55727
55406
  options: geometryOptions
55728
55407
  });
55729
55408
  } },
55730
- !disabled && (currOption === null || currOption === void 0 ? void 0 : currOption.icon),
55409
+ !disabled && React__default.createElement("span", { style: {
55410
+ flexShrink: 0,
55411
+ display: 'flex'
55412
+ } }, currOption === null || currOption === void 0 ? void 0 : currOption.icon),
55731
55413
  !disabled && ((_b = currOption === null || currOption === void 0 ? void 0 : currOption.label) !== null && _b !== void 0 ? _b : 'Pollination'),
55732
55414
  disabled && React__default.createElement("span", { style: { color: 'red' } }, "Enabled in Pollination CAD plugins")));
55733
55415
  };
@@ -55861,7 +55543,10 @@ var SendModel = function (_a) {
55861
55543
  options: {},
55862
55544
  });
55863
55545
  } },
55864
- !disabled && (currOption === null || currOption === void 0 ? void 0 : currOption.icon),
55546
+ !disabled && React__default.createElement("span", { style: {
55547
+ flexShrink: 0,
55548
+ display: 'flex'
55549
+ } }, currOption === null || currOption === void 0 ? void 0 : currOption.icon),
55865
55550
  !disabled && ((_b = currOption === null || currOption === void 0 ? void 0 : currOption.label) !== null && _b !== void 0 ? _b : 'Pollination'),
55866
55551
  disabled && React__default.createElement("span", { style: { color: 'red' } }, "Enabled in Pollination CAD plugins")));
55867
55552
  };
@@ -56048,10 +55733,14 @@ var SendResults = function (_a) {
56048
55733
  border: 'solid 1px #fff',
56049
55734
  flexShrink: '0',
56050
55735
  }, placement: 'bottomRight', activeId: defaultAction, action: 'click', disabled: disabled, onSelect: onSelect, options: values },
56051
- React__default.createElement(Button, { title: helpTextButton[currOption === null || currOption === void 0 ? void 0 : currOption.id], disabled: disabled, style: {
55736
+ React__default.createElement(Button, { title: (((currOption === null || currOption === void 0 ? void 0 : currOption.id) === Action.preview
55737
+ || (currOption === null || currOption === void 0 ? void 0 : currOption.id) === Action.subscribePreview)
55738
+ && (dataSets.length >= 1)
55739
+ ? dataSets === null || dataSets === void 0 ? void 0 : dataSets.map(function (d, index) { return "".concat(d.labels[initialIds[index]]); }).join(' & ')
55740
+ : helpTextButton[currOption === null || currOption === void 0 ? void 0 : currOption.id]), disabled: disabled, style: {
56052
55741
  width: '100%',
56053
55742
  fontSize: '14px',
56054
- border: 'solid 1px #fff'
55743
+ border: 'solid 1px #fff',
56055
55744
  }, onClick: function (e) {
56056
55745
  e.stopPropagation();
56057
55746
  if (disabled)
@@ -56064,15 +55753,22 @@ var SendResults = function (_a) {
56064
55753
  options: geometryOptions,
56065
55754
  });
56066
55755
  } },
56067
- !disabled && (currOption === null || currOption === void 0 ? void 0 : currOption.icon),
55756
+ !disabled && React__default.createElement("span", { style: {
55757
+ flexShrink: 0,
55758
+ display: 'flex'
55759
+ } }, currOption === null || currOption === void 0 ? void 0 : currOption.icon),
56068
55760
  !disabled &&
56069
55761
  ((currOption === null || currOption === void 0 ? void 0 : currOption.id) !== Action.preview && (currOption === null || currOption === void 0 ? void 0 : currOption.id) !== Action.subscribePreview)
56070
55762
  && ((_b = currOption === null || currOption === void 0 ? void 0 : currOption.label) !== null && _b !== void 0 ? _b : 'Pollination'),
56071
55763
  !disabled &&
56072
55764
  ((currOption === null || currOption === void 0 ? void 0 : currOption.id) === Action.preview || (currOption === null || currOption === void 0 ? void 0 : currOption.id) === Action.subscribePreview)
56073
- && (dataSets.length >= 1
55765
+ && React__default.createElement("span", { style: {
55766
+ textOverflow: 'ellipsis',
55767
+ whiteSpace: 'nowrap',
55768
+ overflow: 'hidden',
55769
+ } }, (dataSets.length >= 1
56074
55770
  ? dataSets === null || dataSets === void 0 ? void 0 : dataSets.map(function (d, index) { return "".concat(d.labels[initialIds[index]]); }).join(' & ')
56075
- : ((_c = currOption === null || currOption === void 0 ? void 0 : currOption.label) !== null && _c !== void 0 ? _c : 'Pollination')),
55771
+ : ((_c = currOption === null || currOption === void 0 ? void 0 : currOption.label) !== null && _c !== void 0 ? _c : 'Pollination'))),
56076
55772
  disabled && React__default.createElement("span", { style: { color: 'red' } }, "Enabled in Pollination CAD plugins")),
56077
55773
  (currOption === null || currOption === void 0 ? void 0 : currOption.id)
56078
55774
  && ((currOption === null || currOption === void 0 ? void 0 : currOption.id) === Action.preview || (currOption === null || currOption === void 0 ? void 0 : currOption.id) === Action.subscribePreview)