@photoroom/ui 0.1.617 → 0.1.619

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.
@@ -1,4 +1,4 @@
1
1
  import * as RadixDialog from "@radix-ui/react-dialog";
2
2
  export type ContentProps = Readonly<React.ComponentProps<typeof RadixDialog.Content>>;
3
- export declare const Content: ({ className, children, ...rest }: ContentProps) => import("react").JSX.Element;
3
+ export declare const Content: ({ className, children, onPointerDownOutside, ...rest }: ContentProps) => import("react").JSX.Element;
4
4
  //# sourceMappingURL=Content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/DialogPrimitive/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AAItD,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;AAEtF,eAAO,MAAM,OAAO,qCAAsC,YAAY,gCAarE,CAAC"}
1
+ {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/DialogPrimitive/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AAItD,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;AAEtF,eAAO,MAAM,OAAO,2DAA4D,YAAY,gCA0B3F,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/DialogPrimitive/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AAItD,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;AAEtF,eAAO,MAAM,OAAO,qCAAsC,YAAY,gCAcrE,CAAC"}
1
+ {"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/DialogPrimitive/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AAItD,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;AAEtF,eAAO,MAAM,OAAO,qCAAsC,YAAY,gCAerE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/LegacyDialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAK7D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,eAAe;;8EAsB3B,CAAC;AAGF,eAAO,MAAM,eAAe;;8EAmC3B,CAAC;AAEF,gGAAgG;AAChG,MAAM,MAAM,WAAW,GAAG,QAAQ,CAChC;IACE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+FAA+F;IAC/F,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACnD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;CAClD,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,aAAa,CAAC,GAC9C,YAAY,CAAC,OAAO,eAAe,CAAC,CACvC,CAAC;+BAGqB,EACrB,IAAY,EACZ,SAAgB,EAChB,eAAuB,EACvB,SAAS,EACT,UAAiB,EACjB,MAAM,EACN,QAAQ,EACR,eAAe,EACf,SAAS,EACT,cAAc,EACd,YAAY,EACZ,MAAM,EACN,MAAM,EACN,OAAO,EACP,gBAAgB,EAChB,eAAe,GAChB,EAAE,WAAW;;aA8EA,UAAU;aACR,YAAY;aACV,cAAc;aACZ,gBAAgB;aACf,iBAAiB"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/LegacyDialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAK7D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,eAAe;;8EAsB3B,CAAC;AAGF,eAAO,MAAM,eAAe;;8EAmC3B,CAAC;AAEF,gGAAgG;AAChG,MAAM,MAAM,WAAW,GAAG,QAAQ,CAChC;IACE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+FAA+F;IAC/F,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACnD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;CAClD,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,aAAa,CAAC,GAC9C,YAAY,CAAC,OAAO,eAAe,CAAC,CACvC,CAAC;+BAGqB,EACrB,IAAY,EACZ,SAAgB,EAChB,eAAuB,EACvB,SAAS,EACT,UAAiB,EACjB,MAAM,EACN,QAAQ,EACR,eAAe,EACf,SAAS,EACT,cAAc,EACd,YAAY,EACZ,MAAM,EACN,MAAM,EACN,OAAO,EACP,gBAAgB,EAChB,eAAe,GAChB,EAAE,WAAW;;aA+EA,UAAU;aACR,YAAY;aACV,cAAc;aACZ,gBAAgB;aACf,iBAAiB"}
@@ -2,6 +2,7 @@ export type ToolDialogProps = Readonly<{
2
2
  open?: boolean;
3
3
  defaultOpen?: boolean;
4
4
  onOpenChange?: (open: boolean) => void;
5
+ onEscapeKeyDown?: (event: KeyboardEvent) => void;
5
6
  trigger?: React.ReactNode;
6
7
  sidePanel?: React.ReactNode;
7
8
  toolbar?: React.ReactNode;
@@ -17,5 +18,5 @@ export type ToolDialogProps = Readonly<{
17
18
  *
18
19
  * https://www.figma.com/design/cHgANa7dtzDDGXk7dKuAOQ/Prism?node-id=76519-18261&m=dev
19
20
  */
20
- export declare const ToolDialog: ({ open, defaultOpen, onOpenChange, trigger, sidePanel, toolbar, footer, hideCloseButton, className, testId, children, }: ToolDialogProps) => import("react").JSX.Element;
21
+ export declare const ToolDialog: ({ open, defaultOpen, onOpenChange, onEscapeKeyDown, trigger, sidePanel, toolbar, footer, hideCloseButton, className, testId, children, }: ToolDialogProps) => import("react").JSX.Element;
21
22
  //# sourceMappingURL=ToolDialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/ToolDialog/ToolDialog.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,UAAU,4HAYpB,eAAe,gCA6DjB,CAAC"}
1
+ {"version":3,"file":"ToolDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/ToolDialog/ToolDialog.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACjD,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,UAAU,6IAapB,eAAe,gCA8DjB,CAAC"}
package/index.mjs CHANGED
@@ -3382,7 +3382,7 @@ function Ts({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3382
3382
  });
3383
3383
  }
3384
3384
  updateSnapshot() {
3385
- this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !zo(this.snapshot.measuredBox.x) && !zo(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
3385
+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !zo(this.snapshot.measuredBox.x) && !zo(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
3386
3386
  }
3387
3387
  updateLayout() {
3388
3388
  if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
@@ -3484,7 +3484,7 @@ function Ts({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3484
3484
  if (!this.layout || !(r || i)) return;
3485
3485
  this.resolvedRelativeTargetAt = yn.timestamp;
3486
3486
  let a = this.getClosestProjectingParent();
3487
- a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = Ha(), this.targetWithTransforms = Ha()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), tre(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : Lo(this.target, this.layout.layoutBox), fo(this.target, this.targetDelta)) : Lo(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), Ra.value && ys.calculatedTargetDeltas++);
3487
+ a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = Ha(), this.targetWithTransforms = Ha()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), tre(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : Lo(this.target, this.layout.layoutBox), fo(this.target, this.targetDelta)) : Lo(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), Ra.value && ys.calculatedTargetDeltas++);
3488
3488
  }
3489
3489
  getClosestProjectingParent() {
3490
3490
  if (!(!this.parent || io(this.parent.latestValues) || oo(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
@@ -3532,7 +3532,7 @@ function Ts({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3532
3532
  setAnimationOrigin(e, t = !1, n) {
3533
3533
  let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Ba();
3534
3534
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
3535
- let s = Ha(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !!(c && !u && this.options.crossfade === !0 && !this.path.some(Ws));
3535
+ let s = Ha(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(Ws));
3536
3536
  this.animationProgress = 0;
3537
3537
  let f, p = n?.interpolateProjection(e);
3538
3538
  this.mixTargetDelta = (t) => {
@@ -3565,7 +3565,7 @@ function Ts({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
3565
3565
  }
3566
3566
  applyTransformsToTarget() {
3567
3567
  let e = this.getLead(), { targetWithTransforms: t, target: n, layout: r, latestValues: i } = e;
3568
- if (!(!t || !n || !r)) {
3568
+ if (t && n && r) {
3569
3569
  if (this !== e && this.layout && r && Xs(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
3570
3570
  n = this.target || Ha();
3571
3571
  let t = zo(this.layout.layoutBox.x);
@@ -5022,10 +5022,10 @@ var Ul = class extends to {
5022
5022
  } catch {
5023
5023
  e = !0;
5024
5024
  }
5025
- !e || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
5025
+ e && this.node.animationState && (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
5026
5026
  }
5027
5027
  onBlur() {
5028
- !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
5028
+ this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
5029
5029
  }
5030
5030
  mount() {
5031
5031
  this.unmount = It(fs(this.node.current, "focus", () => this.onFocus()), fs(this.node.current, "blur", () => this.onBlur()));
@@ -11804,7 +11804,7 @@ function Gh({ threshold: e, delay: t, trackVisibility: n, rootMargin: r, scrollM
11804
11804
  entry: void 0
11805
11805
  }), m = Uh((e, t) => {
11806
11806
  let n = d.current;
11807
- d.current = e, !(n === void 0 && !e) && (p({
11807
+ d.current = e, (n !== void 0 || e) && (p({
11808
11808
  inView: e,
11809
11809
  entry: t
11810
11810
  }), u?.(e, t));
@@ -13965,7 +13965,7 @@ var Ob = /*@__PURE__*/ K("$ZodArray", (e, t) => {
13965
13965
  });
13966
13966
  function kb(e, t, n, r, i, a) {
13967
13967
  let o = n in r, s = a === "optional";
13968
- if (!(!o && s && i === "optional")) {
13968
+ if (o || !s || i !== "optional") {
13969
13969
  if (e.issues.length) {
13970
13970
  if (i !== void 0 && s && !o) return;
13971
13971
  t.issues.push(...q_(n, e.issues));
@@ -14516,7 +14516,7 @@ function fx(e, t) {
14516
14516
  let t = Object.getOwnPropertyDescriptor(a, e);
14517
14517
  if (!t || t.get) continue;
14518
14518
  let n = t.value;
14519
- if (!(!n || typeof n != "object")) {
14519
+ if (n && typeof n == "object") {
14520
14520
  if (n._zod) i(n);
14521
14521
  else if (Array.isArray(n)) for (let e of n) i(e);
14522
14522
  }
@@ -18433,7 +18433,7 @@ var ile = "__AMPLITUDE_SCRIPT_URL__", ale = "sdk.error.uncaught", ole = function
18433
18433
  typeof t == "string" ? [t] : [];
18434
18434
  }, sle = function(e) {
18435
18435
  var t = XS();
18436
- if (!(!t || typeof t.addEventListener != "function")) {
18436
+ if (t && typeof t.addEventListener == "function") {
18437
18437
  var n = function(e) {
18438
18438
  var t = e.error instanceof Error ? e.error : void 0, n = t?.stack, r = NC({
18439
18439
  filename: e.filename,
@@ -19522,7 +19522,7 @@ var rw = new (function() {
19522
19522
  };
19523
19523
  }, e.prototype.observeFetch = function(e) {
19524
19524
  var t = this;
19525
- !this.globalScope || !e || (this.globalScope.fetch = function(n, r) {
19525
+ this.globalScope && e && (this.globalScope.fetch = function(n, r) {
19526
19526
  return q(t, void 0, void 0, function() {
19527
19527
  var t, i, a, o, s = this;
19528
19528
  return J(this, function(c) {
@@ -19574,7 +19574,7 @@ var rw = new (function() {
19574
19574
  return null;
19575
19575
  };
19576
19576
  }, e.prototype.observeXhr = function(t, n, r) {
19577
- if (!(!this.globalScope || !t || !n)) {
19577
+ if (this.globalScope && t && n) {
19578
19578
  var i = this.globalScope.XMLHttpRequest.prototype, a = this;
19579
19579
  i.open = function() {
19580
19580
  var e = [...arguments], n = this, r = yS(e, 2), i = r[0], o = r[1];
@@ -20429,7 +20429,7 @@ function xw(e, t, n) {
20429
20429
  }
20430
20430
  function eue(e, t) {
20431
20431
  var n, r;
20432
- if (!(typeof e != "object" || !e || !e.captureRules?.length)) {
20432
+ if (typeof e == "object" && e && e.captureRules?.length) {
20433
20433
  var i = Y({}, e), a = i.captureRules ?? [];
20434
20434
  try {
20435
20435
  for (var o = vS(a), s = o.next(); !s.done; s = o.next()) {
@@ -20450,7 +20450,7 @@ function eue(e, t) {
20450
20450
  }
20451
20451
  function Sw(e) {
20452
20452
  var t, n, r, i, a, o;
20453
- if (!(typeof e != "object" || !e) && !Array.isArray(e)) {
20453
+ if (typeof e == "object" && e && !Array.isArray(e)) {
20454
20454
  var s = Object.keys(e);
20455
20455
  try {
20456
20456
  for (var c = vS(s), l = c.next(); !l.done; l = c.next()) {
@@ -20476,7 +20476,7 @@ function Sw(e) {
20476
20476
  try {
20477
20477
  for (var h = (a = void 0, vS(["responseHeaders", "requestHeaders"])), g = h.next(); !g.done; g = h.next()) {
20478
20478
  var _ = g.value, v = m[_] ?? {}, y = v.captureSafeHeaders, b = v.allowlist;
20479
- if (!(!y && !b)) {
20479
+ if (y || b) {
20480
20480
  if (b !== void 0 && !Array.isArray(b)) {
20481
20481
  delete m[_];
20482
20482
  continue;
@@ -20850,7 +20850,7 @@ var wue = function(e, t, n) {
20850
20850
  var t = parseInt(e, 32);
20851
20851
  if (!isNaN(t)) return t;
20852
20852
  }, Tue = function(e) {
20853
- if (!(!atob || !escape || !e)) try {
20853
+ if (atob && escape && e) try {
20854
20854
  return decodeURIComponent(escape(atob(e)));
20855
20855
  } catch {
20856
20856
  return;
@@ -21063,7 +21063,7 @@ var Gue = function(e) {
21063
21063
  var a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T;
21064
21064
  return J(this, function(E) {
21065
21065
  switch (E.label) {
21066
- case 0: return a = t.identityStorage || "cookie", o = "", a === "cookie" && !t.cookieOptions?.domain && t.cookieOptions?.domain !== "" ? [4, Yue(void 0, r)] : [3, 2];
21066
+ case 0: return a = t.identityStorage || "cookie", o = "", a !== "cookie" || t.cookieOptions?.domain || t.cookieOptions?.domain === "" ? [3, 2] : [4, Yue(void 0, r)];
21067
21067
  case 1: o = E.sent(), E.label = 2;
21068
21068
  case 2: return s = Y({
21069
21069
  domain: t.cookieOptions?.domain ?? o,
@@ -22813,7 +22813,7 @@ function Hfe(e, t, n) {
22813
22813
  if (!Bfe.includes(String(e.getAttribute("type"))) && !zfe.includes(o)) try {
22814
22814
  for (var h = vS(p), g = h.next(); !g.done; g = h.next()) {
22815
22815
  var _ = g.value;
22816
- if (!(m && !Rfe.includes(_.name))) {
22816
+ if (!m || Rfe.includes(_.name)) {
22817
22817
  if (t.has(_.name)) {
22818
22818
  f[_.name] = ow;
22819
22819
  continue;
@@ -23045,7 +23045,7 @@ var ZT = function() {
23045
23045
  }(), Jfe = "configs.analyticsSDK.browserSDK.autocapture.elementSelector";
23046
23046
  function QT(e, t) {
23047
23047
  var n = e.remoteConfigClient;
23048
- if (!(!e.fetchRemoteConfig || !n)) {
23048
+ if (e.fetchRemoteConfig && n) {
23049
23049
  var r = n.subscribe(Jfe, "all", function(n, r) {
23050
23050
  e.loggerProvider.debug(`@amplitude/element-selector: remote-config delivery (source=${String(r)}) ${JSON.stringify(n)}`), t.updateSelectorConfig(n, e.loggerProvider);
23051
23051
  });
@@ -23595,7 +23595,7 @@ var pE = 5, mE = 4e3, ppe = function(e) {
23595
23595
  return e.next();
23596
23596
  }
23597
23597
  var i = window.getSelection();
23598
- if (!(!i || i.isCollapsed)) return e.next();
23598
+ if (i && !i.isCollapsed) return e.next();
23599
23599
  };
23600
23600
  return window.document.addEventListener("selectionchange", t), function() {
23601
23601
  window.document.removeEventListener("selectionchange", t);
@@ -23852,11 +23852,11 @@ function vE(e, t) {
23852
23852
  return !1;
23853
23853
  }
23854
23854
  function Cpe(e, t, n, r, i) {
23855
- if (!(e.hosts && !e.hosts.find(function(e) {
23855
+ if ((!e.hosts || e.hosts.find(function(e) {
23856
23856
  return _E(t, e);
23857
23857
  })) && !(r && e.urls && !bC(r, e.urls)) && !(i && e.methods && !e.methods.find(function(e) {
23858
23858
  return i.toLowerCase() === e.toLowerCase() || e === "*";
23859
- }))) return !((n || n === 0) && !vE(n, e.statusCodeRange || gE));
23859
+ }))) return !n && n !== 0 || !!vE(n, e.statusCodeRange || gE);
23860
23860
  }
23861
23861
  function wpe(e) {
23862
23862
  var t = e.indexOf("#"), n = t >= 0 ? e.slice(t + 1) : "", r = t >= 0 ? e.slice(0, t) : e, i = r.indexOf("?"), a = i >= 0 ? r.slice(i + 1) : "", o = i >= 0 ? r.slice(0, i) : r;
@@ -29341,14 +29341,14 @@ var MI = typeof kI == "function" ? jI : OI, NI = Object.defineProperty, PI = (e,
29341
29341
  }, "RovingFocusGroupImpl")), qI = "RovingFocusGroupItem", JI = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ PI(function(e, t) {
29342
29342
  let { __scopeRovingFocusGroup: n, focusable: r = !0, active: i = !1, tabStopId: a, children: o, ...s } = e, c = cf(), l = a || c, u = WI(qI, n), d = u.currentTabStopId === l, f = zI(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: h } = u, g = MI();
29343
29343
  return sf(() => {
29344
- if (!(!g || !r)) return p(), () => m();
29344
+ if (g && r) return p(), () => m();
29345
29345
  }, [
29346
29346
  g,
29347
29347
  r,
29348
29348
  p,
29349
29349
  m
29350
29350
  ]), R.useEffect(() => {
29351
- if (!(g || !r)) return p(), () => m();
29351
+ if (!g && r) return p(), () => m();
29352
29352
  }, [
29353
29353
  g,
29354
29354
  r,
@@ -29438,11 +29438,11 @@ var eL = GI, tL = JI, nL = function(e) {
29438
29438
  var i = cL(t, Array.isArray(e) ? e : [e]);
29439
29439
  aL[n] || (aL[n] = /* @__PURE__ */ new WeakMap());
29440
29440
  var a = aL[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
29441
- !e || s.has(e) || (s.add(e), l(e.parentNode));
29441
+ e && !s.has(e) && (s.add(e), l(e.parentNode));
29442
29442
  };
29443
29443
  i.forEach(l);
29444
29444
  var u = function(e) {
29445
- !e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
29445
+ e && !c.has(e) && Array.prototype.forEach.call(e.children, function(e) {
29446
29446
  if (s.has(e)) u(e);
29447
29447
  else try {
29448
29448
  var t = e.getAttribute(r), i = t !== null && t !== "false", c = (rL.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
@@ -29883,7 +29883,7 @@ function fR(e) {
29883
29883
  return iR(h, t, e, h === "h" ? s : c, !0);
29884
29884
  }, []), c = R.useCallback(function(e) {
29885
29885
  var n = e;
29886
- if (!(!dR.length || dR[dR.length - 1] !== a)) {
29886
+ if (dR.length && dR[dR.length - 1] === a) {
29887
29887
  var r = "deltaY" in n ? oR(n) : aR(n), i = t.current.filter(function(e) {
29888
29888
  return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && cR(e.delta, r);
29889
29889
  })[0];
@@ -32165,7 +32165,7 @@ function KH(e = {}) {
32165
32165
  //#region src/hooks/useWindowDragEvents.ts
32166
32166
  var qH = ({ enabled: e, onDragEnter: t, onDragOver: n, onDrop: r, onDragLeave: i }) => {
32167
32167
  De(() => {
32168
- if (!(!e || !t)) return window.addEventListener("dragenter", t), () => {
32168
+ if (e && t) return window.addEventListener("dragenter", t), () => {
32169
32169
  window.removeEventListener("dragenter", t);
32170
32170
  };
32171
32171
  }, [e, t]), De(() => {
@@ -36366,6 +36366,7 @@ var MJ = ({ children: e }) => /* @__PURE__ */ L("div", {
36366
36366
  asChild: !0,
36367
36367
  children: /* @__PURE__ */ I("div", {
36368
36368
  ref: _,
36369
+ "data-dialog-overlay": "",
36369
36370
  className: LJ({
36370
36371
  layout: d,
36371
36372
  class: s
@@ -36417,11 +36418,15 @@ var BJ = (e) => /* @__PURE__ */ I(EJ, {
36417
36418
  "data-testid": "dialog-close-button",
36418
36419
  ...e
36419
36420
  })
36420
- }), VJ = ({ className: e, children: t, ...n }) => /* @__PURE__ */ I(_J, {
36421
+ }), VJ = ({ className: e, children: t, onPointerDownOutside: n, ...r }) => /* @__PURE__ */ I(_J, {
36422
+ onPointerDownOutside: (e) => {
36423
+ n?.(e), !e.defaultPrevented && e.target instanceof Element && (!e.target.closest("[data-dialog-overlay]") || e.target.closest("[data-sonner-toast]")) && e.preventDefault();
36424
+ },
36421
36425
  className: U("bg-surface-high shadow-700 misc-dialog-rounding relative h-full w-full outline-hidden", "radix-state-closed:animate-dialog-leave radix-state-open:animate-dialog-enter", e),
36422
- ...n,
36426
+ ...r,
36423
36427
  children: t
36424
36428
  }), HJ = ({ className: e, children: t, ...n }) => /* @__PURE__ */ I(pJ, {
36429
+ "data-dialog-overlay": "",
36425
36430
  className: U("misc-dialog-overlay mobile:p-4 fixed inset-0 z-50 h-screen w-screen overflow-y-auto p-6 supports-[height:100dvh]:h-dvh", "radix-state-closed:animate-dialog-overlay-leave radix-state-open:animate-dialog-overlay-enter", e),
36426
36431
  ...n,
36427
36432
  children: /* @__PURE__ */ I("div", {
@@ -36691,47 +36696,48 @@ var aY = (e) => /* @__PURE__ */ I("svg", {
36691
36696
  clipRule: "evenodd",
36692
36697
  d: "M4.16667 3.33333C2.78595 3.33333 1.66667 4.45262 1.66667 5.83333L1.66667 14.1667C1.66667 15.5474 2.78595 16.6667 4.16667 16.6667L15.8333 16.6667C17.214 16.6667 18.3333 15.5474 18.3333 14.1667L18.3333 5.83333C18.3333 4.45262 17.214 3.33333 15.8333 3.33333L4.16667 3.33333ZM3.33333 5.83333C3.33333 5.3731 3.70643 5 4.16667 5L6.66667 5L6.66667 15L4.16667 15C3.70643 15 3.33333 14.6269 3.33333 14.1667L3.33333 5.83333ZM8.33333 15L15.8333 15C16.2936 15 16.6667 14.6269 16.6667 14.1667L16.6667 5.83333C16.6667 5.37309 16.2936 5 15.8333 5L8.33333 5L8.33333 15Z"
36693
36698
  })
36694
- }), oY = ({ open: e, defaultOpen: t, onOpenChange: n, trigger: r, sidePanel: i, toolbar: a, footer: o, hideCloseButton: s = !1, className: c, testId: l, children: u }) => {
36695
- let [d, f] = Pe(!1);
36699
+ }), oY = ({ open: e, defaultOpen: t, onOpenChange: n, onEscapeKeyDown: r, trigger: i, sidePanel: a, toolbar: o, footer: s, hideCloseButton: c = !1, className: l, testId: u, children: d }) => {
36700
+ let [f, p] = Pe(!1);
36696
36701
  return /* @__PURE__ */ L(aJ, {
36697
36702
  open: e,
36698
36703
  defaultOpen: t,
36699
36704
  onOpenChange: n,
36700
- children: [r && /* @__PURE__ */ I(sJ, {
36705
+ children: [i && /* @__PURE__ */ I(sJ, {
36701
36706
  asChild: !0,
36702
- children: r
36707
+ children: i
36703
36708
  }), /* @__PURE__ */ I(dJ, { children: /* @__PURE__ */ I(HJ, { children: /* @__PURE__ */ L(VJ, {
36704
- className: U("flex flex-col overflow-hidden", c),
36705
- "data-testid": l,
36709
+ className: U("flex flex-col overflow-hidden", l),
36710
+ "data-testid": u,
36711
+ onEscapeKeyDown: r,
36706
36712
  children: [
36707
36713
  /* @__PURE__ */ L("div", {
36708
36714
  className: "relative flex min-h-0 flex-1",
36709
- children: [i && /* @__PURE__ */ I("div", {
36710
- className: H("bg-surface-high border-misc-divider flex w-80 shrink-0 flex-col overflow-y-auto border-e", "max-[800px]:border-misc-border max-[800px]:rounded-500 max-[800px]:absolute max-[800px]:inset-y-3 max-[800px]:start-3 max-[800px]:z-10 max-[800px]:w-74 max-[800px]:border", !d && "max-[800px]:hidden"),
36711
- children: i
36715
+ children: [a && /* @__PURE__ */ I("div", {
36716
+ className: H("bg-surface-high border-misc-divider flex w-80 shrink-0 flex-col overflow-y-auto border-e", "max-[800px]:border-misc-border max-[800px]:rounded-500 max-[800px]:absolute max-[800px]:inset-y-3 max-[800px]:start-3 max-[800px]:z-10 max-[800px]:w-74 max-[800px]:border", !f && "max-[800px]:hidden"),
36717
+ children: a
36712
36718
  }), /* @__PURE__ */ L("div", {
36713
36719
  className: "bg-surface-low relative min-w-0 flex-1",
36714
- children: [(a || i) && /* @__PURE__ */ I("div", {
36715
- className: H("absolute start-3 top-3 z-20", i && d && "max-[800px]:start-80"),
36720
+ children: [(o || a) && /* @__PURE__ */ I("div", {
36721
+ className: H("absolute start-3 top-3 z-20", a && f && "max-[800px]:start-80"),
36716
36722
  children: /* @__PURE__ */ L(iY, {
36717
- className: H(!a && "hidden max-[800px]:flex"),
36718
- children: [i && /* @__PURE__ */ L("div", {
36723
+ className: H(!o && "hidden max-[800px]:flex"),
36724
+ children: [a && /* @__PURE__ */ L("div", {
36719
36725
  className: "hidden items-center gap-1 max-[800px]:flex",
36720
36726
  children: [/* @__PURE__ */ I(iY.Button, {
36721
36727
  icon: /* @__PURE__ */ I(aY, { className: "size-5" }),
36722
36728
  tooltip: "Toggle sidebar",
36723
- onClick: () => f((e) => !e)
36724
- }), a && /* @__PURE__ */ I(iY.Divider, {})]
36725
- }), a]
36729
+ onClick: () => p((e) => !e)
36730
+ }), o && /* @__PURE__ */ I(iY.Divider, {})]
36731
+ }), o]
36726
36732
  })
36727
36733
  }), /* @__PURE__ */ I("div", {
36728
36734
  className: "h-full",
36729
- children: u
36735
+ children: d
36730
36736
  })]
36731
36737
  })]
36732
36738
  }),
36733
- o,
36734
- !s && /* @__PURE__ */ I("div", {
36739
+ s,
36740
+ !c && /* @__PURE__ */ I("div", {
36735
36741
  className: "absolute inset-e-3 top-3 z-30",
36736
36742
  children: /* @__PURE__ */ I(BJ, {})
36737
36743
  })
@@ -37208,29 +37214,28 @@ var xY = ({ title: e, avatar: t, badgeLabel: n, className: r, ref: i, ...a }) =>
37208
37214
  ref: i,
37209
37215
  ...a,
37210
37216
  className: H("shrink-0 cursor-pointer outline-hidden", "rounded-500 flex h-14 w-full items-center gap-3 p-2", "data-radix-collection-item:focus:bg-background-borderless-subdued-hover", "data-radix-collection-item:active:bg-background-borderless-subdued-down", "[&:not([data-radix-collection-item])]:hover:bg-background-borderless-subdued-hover", "[&:not([data-radix-collection-item])]:focus-visible:bg-background-borderless-subdued-hover", "[&:not([data-radix-collection-item])]:active:bg-background-borderless-subdued-down", "[&:not([data-radix-collection-item])]:focus-visible:misc-border-size-focus-ring", "[&:not([data-radix-collection-item])]:focus-visible:ring-misc-focus-indicator", "aria-expanded:bg-background-borderless-subdued-hover", r),
37211
- children: [
37212
- /* @__PURE__ */ I(mh, {
37213
- ...t,
37214
- size: 40
37215
- }),
37216
- /* @__PURE__ */ L("div", {
37217
- className: "flex min-w-0 grow flex-col gap-[3px] text-start",
37217
+ children: [/* @__PURE__ */ I(mh, {
37218
+ ...t,
37219
+ size: 40
37220
+ }), /* @__PURE__ */ L("div", {
37221
+ className: "flex min-w-0 grow flex-col gap-[3px] text-start",
37222
+ children: [/* @__PURE__ */ L("div", {
37223
+ className: "flex min-w-0 items-center gap-1",
37218
37224
  children: [/* @__PURE__ */ I("span", {
37219
37225
  className: "component-semi-strong-500 text-content-primary min-w-0 truncate",
37220
37226
  children: e
37221
- }), !!n && /* @__PURE__ */ I("div", {
37222
- className: "flex items-center gap-1.5",
37223
- children: /* @__PURE__ */ I(kh, {
37224
- size: "small",
37225
- children: n
37226
- })
37227
+ }), /* @__PURE__ */ I("span", {
37228
+ className: "text-content-tertiary h-4 w-4 shrink-0",
37229
+ children: /* @__PURE__ */ I(d, {})
37227
37230
  })]
37228
- }),
37229
- /* @__PURE__ */ I("span", {
37230
- className: "text-content-tertiary h-4 w-4 shrink-0",
37231
- children: /* @__PURE__ */ I(d, {})
37232
- })
37233
- ]
37231
+ }), !!n && /* @__PURE__ */ I("div", {
37232
+ className: "flex items-center gap-1.5",
37233
+ children: /* @__PURE__ */ I(kh, {
37234
+ size: "small",
37235
+ children: n
37236
+ })
37237
+ })]
37238
+ })]
37234
37239
  });
37235
37240
  xY.displayName = "SpacePullDownButton";
37236
37241
  //#endregion
@@ -38072,7 +38077,7 @@ var vme = {
38072
38077
  e,
38073
38078
  l.value
38074
38079
  ]), f = B(() => {
38075
- !o || !u.current || (o(), u.current.focus());
38080
+ o && u.current && (o(), u.current.focus());
38076
38081
  }, [o]);
38077
38082
  return /* @__PURE__ */ L("div", {
38078
38083
  className: H("relative", s),
@@ -39614,7 +39619,7 @@ function YZ(e, t) {
39614
39619
  hhe(n, r, i, t, n[a]);
39615
39620
  for (var o = 0; o < t; ++o) {
39616
39621
  var s = o, c = n[o + i * t];
39617
- !FZ(c, 1e-7) || i === o || phe(n, r, s, i, t, -c);
39622
+ FZ(c, 1e-7) && i !== o && phe(n, r, s, i, t, -c);
39618
39623
  }
39619
39624
  }
39620
39625
  return r;
@@ -40267,7 +40272,7 @@ var Ihe = /*#__PURE__*/ function(e) {
40267
40272
  var t = e !== null && e.apply(this, arguments) || this;
40268
40273
  return t._startRect = null, t._startPos = [], t._prevTime = 0, t._timer = 0, t._prevScrollPos = [0, 0], t._isWait = !1, t._flag = !1, t._currentOptions = null, t._lock = !1, t._unregister = null, t._onScroll = function() {
40269
40274
  var e = t._currentOptions;
40270
- t._lock || !e || t.emit("scrollDrag", { next: function(n) {
40275
+ !t._lock && e && t.emit("scrollDrag", { next: function(n) {
40271
40276
  t.checkScroll({
40272
40277
  container: e.container,
40273
40278
  inputEvent: n
@@ -40701,7 +40706,7 @@ var GQ = /* @__PURE__ */ function() {
40701
40706
  n === void 0 && (n = {});
40702
40707
  var r = e.call(this) || this;
40703
40708
  r.options = {}, r.flag = !1, r.pinchFlag = !1, r.data = {}, r.isDrag = !1, r.isPinch = !1, r.clientStores = [], r.targets = [], r.prevTime = 0, r.doubleFlag = !1, r._useMouse = !1, r._useTouch = !1, r._useDrag = !1, r._dragFlag = !1, r._isTrusted = !1, r._isMouseEvent = !1, r._isSecondaryButton = !1, r._preventMouseEvent = !1, r._prevInputEvent = null, r._isDragAPI = !1, r._isIdle = !0, r._preventMouseEventId = 0, r._window = window, r.onDragStart = function(e, t) {
40704
- if (t === void 0 && (t = !0), !(!r.flag && e.cancelable === !1)) {
40709
+ if (t === void 0 && (t = !0), r.flag || e.cancelable !== !1) {
40705
40710
  var n = e.type.indexOf("drag") >= -1;
40706
40711
  if (!(r.flag && n)) {
40707
40712
  r._isDragAPI = !0;
@@ -42935,11 +42940,11 @@ var I1 = {
42935
42940
  var ne = nQ(te, g), re = nQ(P, g), ie = nQ(re, m), ae = nQ(ne, h);
42936
42941
  n.prevDist = re, n.prevBeforeDist = ne, n.passDelta = ie, n.passDist = re;
42937
42942
  var oe = n.left + ne[0], se = n.top + ne[1], ce = n.right - ne[0], le = n.bottom - ne[1], F = v$(n, `translate(${P[0]}px, ${P[1]}px)`, `translate(${re[0]}px, ${re[1]}px)`);
42938
- if (k$(t, F), e.state.dragInfo.dist = r ? [0, 0] : re, !(!r && !v && ie.every(function(e) {
42943
+ if (k$(t, F), e.state.dragInfo.dist = r ? [0, 0] : re, r || v || !ie.every(function(e) {
42939
42944
  return !e;
42940
- }) && ae.some(function(e) {
42945
+ }) || !ae.some(function(e) {
42941
42946
  return !e;
42942
- }))) {
42947
+ })) {
42943
42948
  var ue = e.state, de = ue.width, fe = ue.height, pe = H0(e, t, X({
42944
42949
  transform: F,
42945
42950
  dist: re,
@@ -43221,7 +43226,7 @@ var z1 = a2("resizable"), B1 = {
43221
43226
  },
43222
43227
  dragControlAfter: function(e, t) {
43223
43228
  var n = t.datas, r = n.isResize, i = n.startOffsetWidth, a = n.startOffsetHeight, o = n.prevWidth, s = n.prevHeight;
43224
- if (!(!r || e.props.checkResizableError === !1)) {
43229
+ if (r && e.props.checkResizableError !== !1) {
43225
43230
  var c = e.state, l = c.width, u = c.height, d = l - (i + o), f = u - (a + s), p = $(d) > 3, m = $(f) > 3;
43226
43231
  if (p && (n.startWidth += d, n.startOffsetWidth += d, n.prevWidth += d), m && (n.startHeight += f, n.startOffsetHeight += f, n.prevHeight += f), p || m) return this.dragControl(e, t);
43227
43232
  }
@@ -43565,7 +43570,7 @@ var d_e = {
43565
43570
  setRotation: function(e) {
43566
43571
  O = e - N, T = O, j = O;
43567
43572
  }
43568
- }, !0)), n = Z(W1(e, y, m, T, N, te), 3), w = n[0], T = n[1], E = n[2], r = Z(W1(e, y, h, O, N, te), 3), D = r[0], O = r[1], k = r[2], i = Z(W1(e, y, g, j, ee, te), 3), A = i[0], j = i[1], M = i[2], !(!A && !D && !w && !C && !f)) {
43573
+ }, !0)), n = Z(W1(e, y, m, T, N, te), 3), w = n[0], T = n[1], E = n[2], r = Z(W1(e, y, h, O, N, te), 3), D = r[0], O = r[1], k = r[2], i = Z(W1(e, y, g, j, ee, te), 3), A = i[0], j = i[1], M = i[2], A || D || w || C || f) {
43569
43574
  var ie = v$(a, `rotate(${k}deg)`, `rotate(${O}deg)`);
43570
43575
  f && (a.fixedPosition = F$(e, a.targetAllTransform, a.fixedDirection, a.fixedOffset, a));
43571
43576
  var ae = Age(e, O, a), oe = nQ(tQ(d || [0, 0], ae), a.prevInverseDist || [0, 0]);
@@ -46341,7 +46346,7 @@ function uve(e, t, n, r, i) {
46341
46346
  var r = t === "n" || t === "s";
46342
46347
  e.forEach(function(e, i) {
46343
46348
  var a = e.direction, o = e.horizontal, s = e.vertical;
46344
- !a || a.indexOf(t) === -1 || (c[i] = [r || !o ? 0 : n[0], !r || !s ? 0 : n[1]]);
46349
+ a && a.indexOf(t) !== -1 && (c[i] = [r || !o ? 0 : n[0], !r || !s ? 0 : n[1]]);
46345
46350
  });
46346
46351
  }) : c[t] = n;
46347
46352
  return c;
@@ -46756,7 +46761,7 @@ function hve(e, t, n, r) {
46756
46761
  var t = e.virtual;
46757
46762
  return e.vertical && !t;
46758
46763
  }).length, o = -1;
46759
- if (t === 0 && (i === 0 ? o = 0 : i === 1 && (o = 1)), t === 2 && (i <= 2 ? o = 2 : i <= 3 && (o = 3)), t === 3 && (a === 0 ? o = 4 : a < 4 && (o = 7)), t === 1 && (a <= 1 ? o = 5 : a <= 2 && (o = 6)), !(o === -1 || !e[o].virtual)) {
46764
+ if (t === 0 && (i === 0 ? o = 0 : i === 1 && (o = 1)), t === 2 && (i <= 2 ? o = 2 : i <= 3 && (o = 3)), t === 3 && (a === 0 ? o = 4 : a < 4 && (o = 7)), t === 1 && (a <= 1 ? o = 5 : a <= 2 && (o = 6)), o !== -1 && e[o].virtual) {
46760
46765
  var s = e[o];
46761
46766
  gve(e, o), o < 4 ? s.pos[0] = n : s.pos[1] = r;
46762
46767
  }
@@ -47747,7 +47752,7 @@ var X2 = /* @__PURE__ */ function(e) {
47747
47752
  }, t.prototype.checkUpdate = function() {
47748
47753
  this._isPropTargetChanged = !1;
47749
47754
  var e = this.props, t = e.target, n = e.container, r = e.parentMoveable, i = this.state, a = i.target, o = i.container;
47750
- if (!(!a && !t)) {
47755
+ if (a || t) {
47751
47756
  this.updateAbles();
47752
47757
  var s = !J0(a, t);
47753
47758
  if (s || !J0(o, n)) {
@@ -48053,7 +48058,7 @@ var X2 = /* @__PURE__ */ function(e) {
48053
48058
  },
48054
48059
  dragGroupEnd: function(e, t) {
48055
48060
  var n = t.inputEvent, r = t.inputTarget;
48056
- if (!(!n || !r || t.isDrag || e.isMoveableElement(r) || t.datas.inputTarget === r)) {
48061
+ if (n && r && !t.isDrag && !e.isMoveableElement(r) && t.datas.inputTarget !== r) {
48057
48062
  var i = e.props.targets, a = i.indexOf(r), o = a > -1, s = !1;
48058
48063
  a === -1 && (a = CZ(i, function(e) {
48059
48064
  return e.contains(r);
@@ -49125,7 +49130,7 @@ var Hve = W(["component-500 text-content-primary flex flex-row items-center"], {
49125
49130
  return /* @__PURE__ */ L("form", {
49126
49131
  className: U("misc-dropdown-inner-rounding flex w-full shrink-0 items-center gap-2", "[&:not(:focus-within)]:hover:bg-background-subdued-hover", s),
49127
49132
  onSubmit: (e) => {
49128
- e.preventDefault(), !(!d || o) && i();
49133
+ e.preventDefault(), d && !o && i();
49129
49134
  },
49130
49135
  children: [/* @__PURE__ */ I("input", {
49131
49136
  type: "text",
@@ -50117,15 +50122,15 @@ var l3 = (e) => e.isFile === !0, u3 = (e) => e.isDirectory === !0, wye = new Int
50117
50122
  if (!r || r.disabled) return;
50118
50123
  let i = r.multiple, a = r.accept;
50119
50124
  r.accept = t.join(","), r.multiple = e, f.current = (e) => {
50120
- r.multiple = i, r.accept = a, !(!e || !e.length) && n(e);
50125
+ r.multiple = i, r.accept = a, e && e.length && n(e);
50121
50126
  }, r.click();
50122
50127
  }), [r]), m = B(async ({ accept: e = r ?? l_ } = {}) => (await p({
50123
50128
  multiple: !1,
50124
50129
  accept: e
50125
50130
  }))[0], [p, r]), h = B((e, n = !1, r = !1, i) => {
50126
- t || !e || !e.length || a?.(e, n, r, i);
50131
+ !t && e && e.length && a?.(e, n, r, i);
50127
50132
  }, [t, a]), g = B((e) => {
50128
- e.preventDefault(), !(t || !e.dataTransfer?.types.includes("Files")) && (i?.(), c(!0));
50133
+ e.preventDefault(), !t && e.dataTransfer?.types.includes("Files") && (i?.(), c(!0));
50129
50134
  }, [t, i]), _ = B((e) => {
50130
50135
  e.preventDefault(), c(!1);
50131
50136
  }, []), v = B((e) => {
@@ -50210,7 +50215,7 @@ var l3 = (e) => e.isFile === !0, u3 = (e) => e.isDirectory === !0, wye = new Int
50210
50215
  }
50211
50216
  }, [h]);
50212
50217
  return GH((n) => {
50213
- t || !e || h(n);
50218
+ !t && e && h(n);
50214
50219
  }), {
50215
50220
  isDragging: s,
50216
50221
  inputRef: l,
@@ -52724,7 +52729,7 @@ var F6 = ({ isSearchable: e = !0, value: t, defaultValue: n = "", onValueChange:
52724
52729
  o
52725
52730
  ]), O = B(() => E(""), [E]), k = Ne(() => T.findIndex(({ item: e }) => e.value === C), [T, C]);
52726
52731
  return w4(() => {
52727
- !b || k === -1 || (S.current?.scrollToIndex(k), setTimeout(() => {
52732
+ b && k !== -1 && (S.current?.scrollToIndex(k), setTimeout(() => {
52728
52733
  document.querySelector("[data-radix-select-item][data-state=checked]")?.focus({ preventScroll: !0 });
52729
52734
  }, 0));
52730
52735
  }, [b, k]), /* @__PURE__ */ L(P6, {
@@ -55443,10 +55448,10 @@ var aCe = (e) => {
55443
55448
  te(!1), D(null), xe.current = null;
55444
55449
  },
55445
55450
  onPointerDown: (e) => {
55446
- e.button !== 2 && (De || !he || (F.current = /* @__PURE__ */ new Date(), oe(ye.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (te(!0), xe.current = {
55451
+ e.button !== 2 && !De && he && (F.current = /* @__PURE__ */ new Date(), oe(ye.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (te(!0), xe.current = {
55447
55452
  x: e.clientX,
55448
55453
  y: e.clientY
55449
- })));
55454
+ }));
55450
55455
  },
55451
55456
  onPointerUp: () => {
55452
55457
  if (P || !he) return;
@@ -55713,7 +55718,7 @@ var sCe = /*#__PURE__*/ z.forwardRef(function(e, t) {
55713
55718
  t = {
55714
55719
  ...t,
55715
55720
  ...e
55716
- }, !(!this.getNotifications().some((e) => e.id === n) && t.type === "progress") && this.#t(t, { id: n });
55721
+ }, (this.getNotifications().some((e) => e.id === n) || t.type !== "progress") && this.#t(t, { id: n });
55717
55722
  },
55718
55723
  dismiss: () => this.dismissNotification(n)
55719
55724
  };
@@ -56519,7 +56524,7 @@ function UCe({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRe
56519
56524
  typeof document > "u" || document.querySelector("[data-vaul-drawer]") || u();
56520
56525
  };
56521
56526
  }, [t, u]), z.useEffect(() => {
56522
- n || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && l(), t || window.setTimeout(() => {
56527
+ !n && r && (e ? (!window.matchMedia("(display-mode: standalone)").matches && l(), t || window.setTimeout(() => {
56523
56528
  u();
56524
56529
  }, 500)) : u());
56525
56530
  }, [
@@ -56570,7 +56575,7 @@ function f7({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
56570
56575
  return (window.innerWidth - s7) / window.innerWidth;
56571
56576
  }
56572
56577
  function Ce(e) {
56573
- !u && !a || fe.current && !fe.current.contains(e.target) || (pe.current = fe.current?.getBoundingClientRect().height || 0, me.current = fe.current?.getBoundingClientRect().width || 0, ee(!0), ie.current = /* @__PURE__ */ new Date(), B5() && window.addEventListener("touchend", () => se.current = !1, { once: !0 }), e.target.setPointerCapture(e.pointerId), le.current = e7(b) ? e.pageY : e.pageX);
56578
+ (u || a) && (!fe.current || fe.current.contains(e.target)) && (pe.current = fe.current?.getBoundingClientRect().height || 0, me.current = fe.current?.getBoundingClientRect().width || 0, ee(!0), ie.current = /* @__PURE__ */ new Date(), B5() && window.addEventListener("touchend", () => se.current = !1, { once: !0 }), e.target.setPointerCapture(e.pointerId), le.current = e7(b) ? e.pageY : e.pageX);
56574
56579
  }
56575
56580
  function we(e, t) {
56576
56581
  let n = e, r = window.getSelection()?.toString(), i = fe.current ? t7(fe.current, b) : null, a = /* @__PURE__ */ new Date();
@@ -56678,7 +56683,7 @@ function f7({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
56678
56683
  }, !0);
56679
56684
  }
56680
56685
  function De() {
56681
- !N || !fe.current || (fe.current.classList.remove(c7), se.current = !1, ee(!1), ae.current = /* @__PURE__ */ new Date());
56686
+ N && fe.current && (fe.current.classList.remove(c7), se.current = !1, ee(!1), ae.current = /* @__PURE__ */ new Date());
56682
56687
  }
56683
56688
  function Oe(e) {
56684
56689
  if (!N || !fe.current) return;
@@ -56750,7 +56755,7 @@ function f7({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
56750
56755
  }, [g]), /*#__PURE__*/ z.createElement(aJ, {
56751
56756
  defaultOpen: x,
56752
56757
  onOpenChange: (e) => {
56753
- !u && !e || (e ? M(!0) : B(!0), A(e));
56758
+ (u || e) && (e ? M(!0) : B(!0), A(e));
56754
56759
  },
56755
56760
  open: k
56756
56761
  }, /*#__PURE__*/ z.createElement(L5.Provider, { value: {
@@ -59419,7 +59424,7 @@ var NTe = ({ lang: e, monthlyProcessedImages: t = 1e3, items: n, partnerCard: r,
59419
59424
  localizedPrice: a,
59420
59425
  localizedCurrency: r,
59421
59426
  pricePerImage: Ne(() => {
59422
- if (!(!r || !a)) return Dh({
59427
+ if (r && a) return Dh({
59423
59428
  locale: e,
59424
59429
  currency: r,
59425
59430
  value: a / 100
@@ -62679,8 +62684,7 @@ var TDe = /* @__PURE__ */ _t(((e) => {
62679
62684
  e.enable("");
62680
62685
  }
62681
62686
  function s(t) {
62682
- var n, r;
62683
- for (n = 0, r = e.skips.length; n < r; n++) if (e.skips[n].test(t)) return !1;
62687
+ for (var n = 0, r = e.skips.length; n < r; n++) if (e.skips[n].test(t)) return !1;
62684
62688
  for (n = 0, r = e.names.length; n < r; n++) if (e.names[n].test(t)) return !0;
62685
62689
  return !1;
62686
62690
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.617",
3
+ "version": "0.1.619",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [