commerce-toolkit 0.1.0 → 0.2.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.
- package/dist/category-card-link-BqMAG9Op.js +211 -0
- package/dist/category-card-link-BqMAG9Op.js.map +1 -0
- package/dist/category-card-link-BwSFHFcd.cjs +2 -0
- package/dist/category-card-link-BwSFHFcd.cjs.map +1 -0
- package/dist/category-card.cjs +1 -1
- package/dist/category-card.cjs.map +1 -1
- package/dist/category-card.js +23 -218
- package/dist/category-card.js.map +1 -1
- package/dist/checkbox-indicator-GNoyS6OL.cjs +2 -0
- package/dist/checkbox-indicator-GNoyS6OL.cjs.map +1 -0
- package/dist/checkbox-indicator-os50dewx.js +18 -0
- package/dist/checkbox-indicator-os50dewx.js.map +1 -0
- package/dist/{checkbox-indicator-Cfw9uH_b.js → checkbox-root-B9W2Y8rY.js} +74 -85
- package/dist/checkbox-root-B9W2Y8rY.js.map +1 -0
- package/dist/checkbox-root-g9HcYZCP.cjs +2 -0
- package/dist/checkbox-root-g9HcYZCP.cjs.map +1 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +5 -4
- package/dist/checkbox.js.map +1 -1
- package/dist/compare-card-specs-empty-BMLUSqQL.js +281 -0
- package/dist/compare-card-specs-empty-BMLUSqQL.js.map +1 -0
- package/dist/compare-card-specs-empty-ar5CneZv.cjs +2 -0
- package/dist/compare-card-specs-empty-ar5CneZv.cjs.map +1 -0
- package/dist/compare-card.cjs +2 -0
- package/dist/compare-card.cjs.map +1 -0
- package/dist/compare-card.js +65 -0
- package/dist/compare-card.js.map +1 -0
- package/dist/components/accordion/index.d.ts.map +1 -1
- package/dist/components/alert/index.d.ts.map +1 -1
- package/dist/components/banner/index.d.ts.map +1 -1
- package/dist/components/blog-post-card/index.d.ts.map +1 -1
- package/dist/components/card/index.d.ts.map +1 -1
- package/dist/components/carousel/index.d.ts.map +1 -1
- package/dist/components/checkbox/index.d.ts.map +1 -1
- package/dist/components/chip/index.d.ts.map +1 -1
- package/dist/components/compare-card/compare-card.d.ts +45 -0
- package/dist/components/compare-card/compare-card.d.ts.map +1 -0
- package/dist/components/compare-card/index.d.ts +3 -0
- package/dist/components/compare-card/index.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-description-content.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-description-content.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-description-empty.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-description-empty.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-description-label.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-description-label.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-description.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-description.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-form-input.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-form-input.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-form.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-form.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-link.d.ts +5 -0
- package/dist/components/compare-card/primitives/compare-card-link.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-product.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-product.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-rating-empty.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-rating-empty.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-rating-label.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-rating-label.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-rating.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-rating.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-root.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-root.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-skeleton.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-skeleton.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-specs-definition.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-specs-definition.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-specs-empty.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-specs-empty.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-specs-label.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-specs-label.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-specs-list.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-specs-list.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-specs-term.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-specs-term.d.ts.map +1 -0
- package/dist/components/compare-card/primitives/compare-card-specs.d.ts +4 -0
- package/dist/components/compare-card/primitives/compare-card-specs.d.ts.map +1 -0
- package/dist/components/compare-card/primitives.d.ts +20 -0
- package/dist/components/compare-card/primitives.d.ts.map +1 -0
- package/dist/components/compare-drawer/index.d.ts.map +1 -1
- package/dist/components/cursor-pagination/index.d.ts +1 -1
- package/dist/components/cursor-pagination/index.d.ts.map +1 -1
- package/dist/components/dropdown-menu/index.d.ts.map +1 -1
- package/dist/components/favorite/index.d.ts.map +1 -1
- package/dist/components/icon/index.d.ts.map +1 -1
- package/dist/components/label/index.d.ts.map +1 -1
- package/dist/components/logo/index.d.ts.map +1 -1
- package/dist/components/modal/index.d.ts.map +1 -1
- package/dist/components/offset-pagination/index.d.ts +1 -1
- package/dist/components/offset-pagination/index.d.ts.map +1 -1
- package/dist/components/price/index.d.ts.map +1 -1
- package/dist/components/product-card/index.d.ts.map +1 -1
- package/dist/components/rating/index.d.ts.map +1 -1
- package/dist/components/reveal/index.d.ts.map +1 -1
- package/dist/components/scroll-area/index.d.ts.map +1 -1
- package/dist/components/side-panel/index.d.ts +3 -0
- package/dist/components/side-panel/index.d.ts.map +1 -0
- package/dist/components/side-panel/primitives/side-panel-body.d.ts +4 -0
- package/dist/components/side-panel/primitives/side-panel-body.d.ts.map +1 -0
- package/dist/components/side-panel/primitives/side-panel-close.d.ts +5 -0
- package/dist/components/side-panel/primitives/side-panel-close.d.ts.map +1 -0
- package/dist/components/side-panel/primitives/side-panel-content.d.ts +5 -0
- package/dist/components/side-panel/primitives/side-panel-content.d.ts.map +1 -0
- package/dist/components/side-panel/primitives/side-panel-header.d.ts +4 -0
- package/dist/components/side-panel/primitives/side-panel-header.d.ts.map +1 -0
- package/dist/components/side-panel/primitives/side-panel-overlay.d.ts +5 -0
- package/dist/components/side-panel/primitives/side-panel-overlay.d.ts.map +1 -0
- package/dist/components/side-panel/primitives/side-panel-portal.d.ts +5 -0
- package/dist/components/side-panel/primitives/side-panel-portal.d.ts.map +1 -0
- package/dist/components/side-panel/primitives/side-panel-root.d.ts +5 -0
- package/dist/components/side-panel/primitives/side-panel-root.d.ts.map +1 -0
- package/dist/components/side-panel/primitives/side-panel-title.d.ts +5 -0
- package/dist/components/side-panel/primitives/side-panel-title.d.ts.map +1 -0
- package/dist/components/side-panel/primitives/side-panel-trigger.d.ts +5 -0
- package/dist/components/side-panel/primitives/side-panel-trigger.d.ts.map +1 -0
- package/dist/components/side-panel/primitives.d.ts +10 -0
- package/dist/components/side-panel/primitives.d.ts.map +1 -0
- package/dist/components/side-panel/side-panel.d.ts +28 -0
- package/dist/components/side-panel/side-panel.d.ts.map +1 -0
- package/dist/components/skeleton/index.d.ts.map +1 -1
- package/dist/components/tabs/index.d.ts.map +1 -1
- package/dist/{dropdown-menu-node-C7Z-zRyr.js → dropdown-menu-node-4Pe3uXjC.js} +2 -2
- package/dist/{dropdown-menu-node-C7Z-zRyr.js.map → dropdown-menu-node-4Pe3uXjC.js.map} +1 -1
- package/dist/{dropdown-menu-node-BB7FJzMX.cjs → dropdown-menu-node-zOplWIzZ.cjs} +2 -2
- package/dist/{dropdown-menu-node-BB7FJzMX.cjs.map → dropdown-menu-node-zOplWIzZ.cjs.map} +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/index-BppAzNV8.cjs +6 -0
- package/dist/index-BppAzNV8.cjs.map +1 -0
- package/dist/index-ChSlzMYI.js +242 -0
- package/dist/index-ChSlzMYI.js.map +1 -0
- package/dist/index.cjs +10 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +26 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1275 -1133
- package/dist/index.js.map +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/modal-title-CuB6IpxH.cjs +2 -0
- package/dist/modal-title-CuB6IpxH.cjs.map +1 -0
- package/dist/modal-title-MIH3Xsp2.js +58 -0
- package/dist/modal-title-MIH3Xsp2.js.map +1 -0
- package/dist/modal.cjs +1 -1
- package/dist/modal.js +1 -1
- package/dist/offset-pagination-ellipsis-DWDhFCgW.js +79 -0
- package/dist/offset-pagination-ellipsis-DWDhFCgW.js.map +1 -0
- package/dist/offset-pagination-ellipsis-MCFHXB-5.cjs +2 -0
- package/dist/offset-pagination-ellipsis-MCFHXB-5.cjs.map +1 -0
- package/dist/offset-pagination.cjs +1 -1
- package/dist/offset-pagination.cjs.map +1 -1
- package/dist/offset-pagination.js +6 -76
- package/dist/offset-pagination.js.map +1 -1
- package/dist/product-card-label-CJmC9ICf.js +312 -0
- package/dist/product-card-label-CJmC9ICf.js.map +1 -0
- package/dist/product-card-label-D43AXtRL.cjs +2 -0
- package/dist/product-card-label-D43AXtRL.cjs.map +1 -0
- package/dist/product-card-root-4Xz4-pdL.js +43 -0
- package/dist/product-card-root-4Xz4-pdL.js.map +1 -0
- package/dist/product-card-root-BMTVhhFp.cjs +2 -0
- package/dist/product-card-root-BMTVhhFp.cjs.map +1 -0
- package/dist/product-card-skeleton-CCQkDMNl.cjs +2 -0
- package/dist/product-card-skeleton-CCQkDMNl.cjs.map +1 -0
- package/dist/product-card-skeleton-Dkqf-bfA.js +34 -0
- package/dist/product-card-skeleton-Dkqf-bfA.js.map +1 -0
- package/dist/product-card.cjs +1 -1
- package/dist/product-card.cjs.map +1 -1
- package/dist/product-card.js +25 -326
- package/dist/product-card.js.map +1 -1
- package/dist/{scroll-area-corner-DLTYMMl-.js → scroll-area-corner-Bq7PB1XK.js} +2 -2
- package/dist/{scroll-area-corner-DLTYMMl-.js.map → scroll-area-corner-Bq7PB1XK.js.map} +1 -1
- package/dist/{scroll-area-corner-CEc2oMZt.cjs → scroll-area-corner-DsyetkPH.cjs} +2 -2
- package/dist/{scroll-area-corner-CEc2oMZt.cjs.map → scroll-area-corner-DsyetkPH.cjs.map} +1 -1
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.js +1 -1
- package/dist/side-panel-close-Bjcn4BEE.cjs +2 -0
- package/dist/side-panel-close-Bjcn4BEE.cjs.map +1 -0
- package/dist/side-panel-close-DVJwOxdM.js +86 -0
- package/dist/side-panel-close-DVJwOxdM.js.map +1 -0
- package/dist/side-panel.cjs +2 -0
- package/dist/side-panel.cjs.map +1 -0
- package/dist/side-panel.js +13 -0
- package/dist/side-panel.js.map +1 -0
- package/package.json +21 -1
- package/dist/arrow-up-right-Cfau6CiE.cjs +0 -7
- package/dist/arrow-up-right-Cfau6CiE.cjs.map +0 -1
- package/dist/arrow-up-right-D7smpXBs.js +0 -16
- package/dist/arrow-up-right-D7smpXBs.js.map +0 -1
- package/dist/checkbox-indicator-BgXRGvAh.cjs +0 -2
- package/dist/checkbox-indicator-BgXRGvAh.cjs.map +0 -1
- package/dist/checkbox-indicator-Cfw9uH_b.js.map +0 -1
- package/dist/modal-title-B2Yr1KDi.js +0 -288
- package/dist/modal-title-B2Yr1KDi.js.map +0 -1
- package/dist/modal-title-CpD_Fors.cjs +0 -6
- package/dist/modal-title-CpD_Fors.cjs.map +0 -1
- package/dist/price-BwaeTmkR.js +0 -53
- package/dist/price-BwaeTmkR.js.map +0 -1
- package/dist/price-CdK2ye4P.cjs +0 -2
- package/dist/price-CdK2ye4P.cjs.map +0 -1
- package/dist/primitives--2McVg9Z.js +0 -15
- package/dist/primitives--2McVg9Z.js.map +0 -1
- package/dist/primitives-DmqzDKi2.cjs +0 -2
- package/dist/primitives-DmqzDKi2.cjs.map +0 -1
package/dist/dropdown-menu.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./dropdown-menu-node-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./dropdown-menu-node-zOplWIzZ.cjs");exports.CheckboxItem=o.DropdownMenuCheckboxItem;exports.Content=o.DropdownMenuContent;exports.Group=o.DropdownMenuGroup;exports.Item=o.DropdownMenuItem;exports.Label=o.DropdownMenuLabel;exports.Node=o.DropdownMenuNode;exports.Portal=o.DropdownMenuPortal;exports.Root=o.DropdownMenuRoot;exports.ScrollArea=o.DropdownMenuScrollArea;exports.Separator=o.DropdownMenuSeparator;exports.Sub=o.DropdownMenuSub;exports.SubContent=o.DropdownMenuSubContent;exports.SubTrigger=o.DropdownMenuSubTrigger;exports.Trigger=o.DropdownMenuTrigger;exports.useDropdownMenu=o.useDropdownMenu;
|
|
2
2
|
//# sourceMappingURL=dropdown-menu.cjs.map
|
package/dist/dropdown-menu.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as e, b as o, f as r, c as t, e as u, m as b, h as n, D as g, i as l, g as S, j as m, l as p, k as c, a as d, u as i } from "./dropdown-menu-node-
|
|
1
|
+
import { d as e, b as o, f as r, c as t, e as u, m as b, h as n, D as g, i as l, g as S, j as m, l as p, k as c, a as d, u as i } from "./dropdown-menu-node-4Pe3uXjC.js";
|
|
2
2
|
export {
|
|
3
3
|
e as CheckboxItem,
|
|
4
4
|
o as Content,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const L=require("react"),p=require("./index-BqyOu62e.cjs"),P=require("./index-_XxjJPRD.cjs"),D=require("./index-CnXYiTkW.cjs"),_=require("./index-BRcWOeqw.cjs"),H=require("./index-BwVkw1mh.cjs"),v=require("./Combination-DAFZFTdA.cjs"),B=require("./index-BgU5ZH3M.cjs"),f=require("./index-Bw7_huW8.cjs"),i=require("react/jsx-runtime");function V(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const a=V(L);var x="Dialog",[y]=D.createContextScope(x),[z,u]=y(x),N=e=>{const{__scopeDialog:t,children:o,open:r,defaultOpen:s,onOpenChange:n,modal:l=!0}=e,c=a.useRef(null),g=a.useRef(null),[C,R]=H.useControllableState({prop:r,defaultProp:s??!1,onChange:n,caller:x});return i.jsx(z,{scope:t,triggerRef:c,contentRef:g,contentId:_.useId(),titleId:_.useId(),descriptionId:_.useId(),open:C,onOpenChange:R,onOpenToggle:a.useCallback(()=>R(G=>!G),[R]),modal:l,children:o})};N.displayName=x;var I="DialogTrigger",b=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u(I,o),n=P.useComposedRefs(t,s.triggerRef);return i.jsx(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":O(s.open),...r,ref:n,onClick:p.composeEventHandlers(e.onClick,s.onOpenToggle)})});b.displayName=I;var E="DialogPortal",[K,j]=y(E,{forceMount:void 0}),T=e=>{const{__scopeDialog:t,forceMount:o,children:r,container:s}=e,n=u(E,t);return i.jsx(K,{scope:t,forceMount:o,children:a.Children.map(r,l=>i.jsx(D.Presence,{present:o||n.open,children:i.jsx(B.Portal,{asChild:!0,container:s,children:l})}))})};T.displayName=E;var m="DialogOverlay",A=a.forwardRef((e,t)=>{const o=j(m,e.__scopeDialog),{forceMount:r=o.forceMount,...s}=e,n=u(m,e.__scopeDialog);return n.modal?i.jsx(D.Presence,{present:r||n.open,children:i.jsx(Y,{...s,ref:t})}):null});A.displayName=m;var U=f.createSlot("DialogOverlay.RemoveScroll"),Y=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u(m,o);return i.jsx(v.ReactRemoveScroll,{as:U,allowPinchZoom:!0,shards:[s.contentRef],children:i.jsx(f.Primitive.div,{"data-state":O(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),d="DialogContent",M=a.forwardRef((e,t)=>{const o=j(d,e.__scopeDialog),{forceMount:r=o.forceMount,...s}=e,n=u(d,e.__scopeDialog);return i.jsx(D.Presence,{present:r||n.open,children:n.modal?i.jsx(Z,{...s,ref:t}):i.jsx(J,{...s,ref:t})})});M.displayName=d;var Z=a.forwardRef((e,t)=>{const o=u(d,e.__scopeDialog),r=a.useRef(null),s=P.useComposedRefs(t,o.contentRef,r);return a.useEffect(()=>{const n=r.current;if(n)return v.hideOthers(n)},[]),i.jsx(w,{...e,ref:s,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p.composeEventHandlers(e.onCloseAutoFocus,n=>{n.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:p.composeEventHandlers(e.onPointerDownOutside,n=>{const l=n.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&n.preventDefault()}),onFocusOutside:p.composeEventHandlers(e.onFocusOutside,n=>n.preventDefault())})}),J=a.forwardRef((e,t)=>{const o=u(d,e.__scopeDialog),r=a.useRef(!1),s=a.useRef(!1);return i.jsx(w,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{e.onCloseAutoFocus?.(n),n.defaultPrevented||(r.current||o.triggerRef.current?.focus(),n.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:n=>{e.onInteractOutside?.(n),n.defaultPrevented||(r.current=!0,n.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const l=n.target;o.triggerRef.current?.contains(l)&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&s.current&&n.preventDefault()}})}),w=a.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:n,...l}=e,c=u(d,o),g=a.useRef(null),C=P.useComposedRefs(t,g);return v.useFocusGuards(),i.jsxs(i.Fragment,{children:[i.jsx(v.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:n,children:i.jsx(v.DismissableLayer,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":O(c.open),...l,ref:C,onDismiss:()=>c.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(X,{titleId:c.titleId}),i.jsx(te,{contentRef:g,descriptionId:c.descriptionId})]})]})}),h="DialogTitle",S=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u(h,o);return i.jsx(f.Primitive.h2,{id:s.titleId,...r,ref:t})});S.displayName=h;var F="DialogDescription",Q=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u(F,o);return i.jsx(f.Primitive.p,{id:s.descriptionId,...r,ref:t})});Q.displayName=F;var W="DialogClose",q=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u(W,o);return i.jsx(f.Primitive.button,{type:"button",...r,ref:t,onClick:p.composeEventHandlers(e.onClick,()=>s.onOpenChange(!1))})});q.displayName=W;function O(e){return e?"open":"closed"}var $="DialogTitleWarning",[le,k]=D.createContext2($,{contentName:d,titleName:h,docsSlug:"dialog"}),X=({titleId:e})=>{const t=k($),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
|
+
|
|
3
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
|
+
|
|
5
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},ee="DialogDescriptionWarning",te=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${k(ee).contentName}}.`;return a.useEffect(()=>{const s=e.current?.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},oe=N,ne=b,re=T,se=A,ie=M,ae=S,ce=q;exports.Close=ce;exports.Content=ie;exports.Overlay=se;exports.Portal=re;exports.Root=oe;exports.Title=ae;exports.Trigger=ne;
|
|
6
|
+
//# sourceMappingURL=index-BppAzNV8.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BppAzNV8.cjs","sources":["../node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@19.2.2_@types+react@19.2.2__@types+react@19.2._aodnlqhr3elwsecxfyuv3mpycy/node_modules/@radix-ui/react-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContext, createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: DIALOG_NAME\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar Slot = createSlot(\"DialogOverlay.RemoveScroll\");\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: forwardedRef,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n useFocusGuards();\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: composedRefs,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ),\n /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })\n ] })\n ] });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar TITLE_WARNING_NAME = \"DialogTitleWarning\";\nvar [WarningProvider, useWarningContext] = createContext(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"dialog\"\n});\nvar TitleWarning = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n return null;\n};\nvar DESCRIPTION_WARNING_NAME = \"DialogDescriptionWarning\";\nvar DescriptionWarning = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute(\"aria-describedby\");\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n return null;\n};\nvar Root = Dialog;\nvar Trigger = DialogTrigger;\nvar Portal = DialogPortal;\nvar Overlay = DialogOverlay;\nvar Content = DialogContent;\nvar Title = DialogTitle;\nvar Description = DialogDescription;\nvar Close = DialogClose;\nexport {\n Close,\n Content,\n Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n Overlay,\n Portal,\n Root,\n Title,\n Trigger,\n WarningProvider,\n createDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DIALOG_NAME","createDialogContext","createContextScope","DialogProvider","useDialogContext","Dialog","props","__scopeDialog","children","openProp","defaultOpen","onOpenChange","modal","triggerRef","React","contentRef","open","setOpen","useControllableState","jsx","useId","prevOpen","TRIGGER_NAME","DialogTrigger","forwardedRef","triggerProps","context","composedTriggerRef","useComposedRefs","Primitive","getState","composeEventHandlers","PORTAL_NAME","PortalProvider","usePortalContext","DialogPortal","forceMount","container","child","Presence","PortalPrimitive","OVERLAY_NAME","DialogOverlay","portalContext","overlayProps","DialogOverlayImpl","Slot","createSlot","RemoveScroll","CONTENT_NAME","DialogContent","contentProps","DialogContentModal","DialogContentNonModal","composedRefs","content","hideOthers","DialogContentImpl","event","originalEvent","ctrlLeftClick","hasInteractedOutsideRef","hasPointerDownOutsideRef","target","trapFocus","onOpenAutoFocus","onCloseAutoFocus","useFocusGuards","jsxs","Fragment","FocusScope","DismissableLayer","TitleWarning","DescriptionWarning","TITLE_NAME","DialogTitle","titleProps","DESCRIPTION_NAME","DialogDescription","descriptionProps","CLOSE_NAME","DialogClose","closeProps","TITLE_WARNING_NAME","WarningProvider","useWarningContext","createContext","titleId","titleWarningContext","MESSAGE","DESCRIPTION_WARNING_NAME","descriptionId","describedById","Root","Trigger","Portal","Overlay","Content","Title","Close"],"mappings":"qnBAmBA,IAAIA,EAAc,SACd,CAACC,CAAsC,EAAIC,EAAAA,mBAAmBF,CAAW,EACzE,CAACG,EAAgBC,CAAgB,EAAIH,EAAoBD,CAAW,EACpEK,EAAUC,GAAU,CAC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C,EAChC,IACT,EACIE,GAAOxF,EACPyF,GAAUvE,EACVwE,GAAS5D,EACT6D,GAAUtD,EACVuD,GAAU/C,EACVgD,GAAQvB,EAERwB,GAAQlB","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { c as g } from "./index-B695uy69.js";
|
|
3
|
+
import { u as _ } from "./index-DLcqcWxM.js";
|
|
4
|
+
import { c as H, P as h, a as V } from "./index-Df-2-3xv.js";
|
|
5
|
+
import { u as R } from "./index-9BYBSfjb.js";
|
|
6
|
+
import { u as q } from "./index-Cn_ZXVPF.js";
|
|
7
|
+
import { R as K, h as U, u as Y, F as Z, D as z } from "./Combination-49q9aXeT.js";
|
|
8
|
+
import { P as J } from "./index-CM8VpmHn.js";
|
|
9
|
+
import { P as p, c as Q } from "./index-BzgbBl8b.js";
|
|
10
|
+
import { jsx as i, jsxs as N, Fragment as O } from "react/jsx-runtime";
|
|
11
|
+
var D = "Dialog", [I] = H(D), [X, u] = I(D), x = (e) => {
|
|
12
|
+
const {
|
|
13
|
+
__scopeDialog: t,
|
|
14
|
+
children: n,
|
|
15
|
+
open: a,
|
|
16
|
+
defaultOpen: r,
|
|
17
|
+
onOpenChange: o,
|
|
18
|
+
modal: l = !0
|
|
19
|
+
} = e, c = s.useRef(null), f = s.useRef(null), [v, C] = q({
|
|
20
|
+
prop: a,
|
|
21
|
+
defaultProp: r ?? !1,
|
|
22
|
+
onChange: o,
|
|
23
|
+
caller: D
|
|
24
|
+
});
|
|
25
|
+
return /* @__PURE__ */ i(
|
|
26
|
+
X,
|
|
27
|
+
{
|
|
28
|
+
scope: t,
|
|
29
|
+
triggerRef: c,
|
|
30
|
+
contentRef: f,
|
|
31
|
+
contentId: R(),
|
|
32
|
+
titleId: R(),
|
|
33
|
+
descriptionId: R(),
|
|
34
|
+
open: v,
|
|
35
|
+
onOpenChange: C,
|
|
36
|
+
onOpenToggle: s.useCallback(() => C((j) => !j), [C]),
|
|
37
|
+
modal: l,
|
|
38
|
+
children: n
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
x.displayName = D;
|
|
43
|
+
var A = "DialogTrigger", T = s.forwardRef(
|
|
44
|
+
(e, t) => {
|
|
45
|
+
const { __scopeDialog: n, ...a } = e, r = u(A, n), o = _(t, r.triggerRef);
|
|
46
|
+
return /* @__PURE__ */ i(
|
|
47
|
+
p.button,
|
|
48
|
+
{
|
|
49
|
+
type: "button",
|
|
50
|
+
"aria-haspopup": "dialog",
|
|
51
|
+
"aria-expanded": r.open,
|
|
52
|
+
"aria-controls": r.contentId,
|
|
53
|
+
"data-state": y(r.open),
|
|
54
|
+
...a,
|
|
55
|
+
ref: o,
|
|
56
|
+
onClick: g(e.onClick, r.onOpenToggle)
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
T.displayName = A;
|
|
62
|
+
var P = "DialogPortal", [ee, b] = I(P, {
|
|
63
|
+
forceMount: void 0
|
|
64
|
+
}), M = (e) => {
|
|
65
|
+
const { __scopeDialog: t, forceMount: n, children: a, container: r } = e, o = u(P, t);
|
|
66
|
+
return /* @__PURE__ */ i(ee, { scope: t, forceMount: n, children: s.Children.map(a, (l) => /* @__PURE__ */ i(h, { present: n || o.open, children: /* @__PURE__ */ i(J, { asChild: !0, container: r, children: l }) })) });
|
|
67
|
+
};
|
|
68
|
+
M.displayName = P;
|
|
69
|
+
var m = "DialogOverlay", w = s.forwardRef(
|
|
70
|
+
(e, t) => {
|
|
71
|
+
const n = b(m, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, o = u(m, e.__scopeDialog);
|
|
72
|
+
return o.modal ? /* @__PURE__ */ i(h, { present: a || o.open, children: /* @__PURE__ */ i(te, { ...r, ref: t }) }) : null;
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
w.displayName = m;
|
|
76
|
+
var oe = Q("DialogOverlay.RemoveScroll"), te = s.forwardRef(
|
|
77
|
+
(e, t) => {
|
|
78
|
+
const { __scopeDialog: n, ...a } = e, r = u(m, n);
|
|
79
|
+
return (
|
|
80
|
+
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
81
|
+
// ie. when `Overlay` and `Content` are siblings
|
|
82
|
+
/* @__PURE__ */ i(K, { as: oe, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
|
|
83
|
+
p.div,
|
|
84
|
+
{
|
|
85
|
+
"data-state": y(r.open),
|
|
86
|
+
...a,
|
|
87
|
+
ref: t,
|
|
88
|
+
style: { pointerEvents: "auto", ...a.style }
|
|
89
|
+
}
|
|
90
|
+
) })
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
), d = "DialogContent", F = s.forwardRef(
|
|
94
|
+
(e, t) => {
|
|
95
|
+
const n = b(d, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, o = u(d, e.__scopeDialog);
|
|
96
|
+
return /* @__PURE__ */ i(h, { present: a || o.open, children: o.modal ? /* @__PURE__ */ i(re, { ...r, ref: t }) : /* @__PURE__ */ i(ne, { ...r, ref: t }) });
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
F.displayName = d;
|
|
100
|
+
var re = s.forwardRef(
|
|
101
|
+
(e, t) => {
|
|
102
|
+
const n = u(d, e.__scopeDialog), a = s.useRef(null), r = _(t, n.contentRef, a);
|
|
103
|
+
return s.useEffect(() => {
|
|
104
|
+
const o = a.current;
|
|
105
|
+
if (o) return U(o);
|
|
106
|
+
}, []), /* @__PURE__ */ i(
|
|
107
|
+
S,
|
|
108
|
+
{
|
|
109
|
+
...e,
|
|
110
|
+
ref: r,
|
|
111
|
+
trapFocus: n.open,
|
|
112
|
+
disableOutsidePointerEvents: !0,
|
|
113
|
+
onCloseAutoFocus: g(e.onCloseAutoFocus, (o) => {
|
|
114
|
+
o.preventDefault(), n.triggerRef.current?.focus();
|
|
115
|
+
}),
|
|
116
|
+
onPointerDownOutside: g(e.onPointerDownOutside, (o) => {
|
|
117
|
+
const l = o.detail.originalEvent, c = l.button === 0 && l.ctrlKey === !0;
|
|
118
|
+
(l.button === 2 || c) && o.preventDefault();
|
|
119
|
+
}),
|
|
120
|
+
onFocusOutside: g(
|
|
121
|
+
e.onFocusOutside,
|
|
122
|
+
(o) => o.preventDefault()
|
|
123
|
+
)
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
), ne = s.forwardRef(
|
|
128
|
+
(e, t) => {
|
|
129
|
+
const n = u(d, e.__scopeDialog), a = s.useRef(!1), r = s.useRef(!1);
|
|
130
|
+
return /* @__PURE__ */ i(
|
|
131
|
+
S,
|
|
132
|
+
{
|
|
133
|
+
...e,
|
|
134
|
+
ref: t,
|
|
135
|
+
trapFocus: !1,
|
|
136
|
+
disableOutsidePointerEvents: !1,
|
|
137
|
+
onCloseAutoFocus: (o) => {
|
|
138
|
+
e.onCloseAutoFocus?.(o), o.defaultPrevented || (a.current || n.triggerRef.current?.focus(), o.preventDefault()), a.current = !1, r.current = !1;
|
|
139
|
+
},
|
|
140
|
+
onInteractOutside: (o) => {
|
|
141
|
+
e.onInteractOutside?.(o), o.defaultPrevented || (a.current = !0, o.detail.originalEvent.type === "pointerdown" && (r.current = !0));
|
|
142
|
+
const l = o.target;
|
|
143
|
+
n.triggerRef.current?.contains(l) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && r.current && o.preventDefault();
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
), S = s.forwardRef(
|
|
149
|
+
(e, t) => {
|
|
150
|
+
const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: o, ...l } = e, c = u(d, n), f = s.useRef(null), v = _(t, f);
|
|
151
|
+
return Y(), /* @__PURE__ */ N(O, { children: [
|
|
152
|
+
/* @__PURE__ */ i(
|
|
153
|
+
Z,
|
|
154
|
+
{
|
|
155
|
+
asChild: !0,
|
|
156
|
+
loop: !0,
|
|
157
|
+
trapped: a,
|
|
158
|
+
onMountAutoFocus: r,
|
|
159
|
+
onUnmountAutoFocus: o,
|
|
160
|
+
children: /* @__PURE__ */ i(
|
|
161
|
+
z,
|
|
162
|
+
{
|
|
163
|
+
role: "dialog",
|
|
164
|
+
id: c.contentId,
|
|
165
|
+
"aria-describedby": c.descriptionId,
|
|
166
|
+
"aria-labelledby": c.titleId,
|
|
167
|
+
"data-state": y(c.open),
|
|
168
|
+
...l,
|
|
169
|
+
ref: v,
|
|
170
|
+
onDismiss: () => c.onOpenChange(!1)
|
|
171
|
+
}
|
|
172
|
+
)
|
|
173
|
+
}
|
|
174
|
+
),
|
|
175
|
+
/* @__PURE__ */ N(O, { children: [
|
|
176
|
+
/* @__PURE__ */ i(ie, { titleId: c.titleId }),
|
|
177
|
+
/* @__PURE__ */ i(ce, { contentRef: f, descriptionId: c.descriptionId })
|
|
178
|
+
] })
|
|
179
|
+
] });
|
|
180
|
+
}
|
|
181
|
+
), E = "DialogTitle", W = s.forwardRef(
|
|
182
|
+
(e, t) => {
|
|
183
|
+
const { __scopeDialog: n, ...a } = e, r = u(E, n);
|
|
184
|
+
return /* @__PURE__ */ i(p.h2, { id: r.titleId, ...a, ref: t });
|
|
185
|
+
}
|
|
186
|
+
);
|
|
187
|
+
W.displayName = E;
|
|
188
|
+
var k = "DialogDescription", ae = s.forwardRef(
|
|
189
|
+
(e, t) => {
|
|
190
|
+
const { __scopeDialog: n, ...a } = e, r = u(k, n);
|
|
191
|
+
return /* @__PURE__ */ i(p.p, { id: r.descriptionId, ...a, ref: t });
|
|
192
|
+
}
|
|
193
|
+
);
|
|
194
|
+
ae.displayName = k;
|
|
195
|
+
var G = "DialogClose", L = s.forwardRef(
|
|
196
|
+
(e, t) => {
|
|
197
|
+
const { __scopeDialog: n, ...a } = e, r = u(G, n);
|
|
198
|
+
return /* @__PURE__ */ i(
|
|
199
|
+
p.button,
|
|
200
|
+
{
|
|
201
|
+
type: "button",
|
|
202
|
+
...a,
|
|
203
|
+
ref: t,
|
|
204
|
+
onClick: g(e.onClick, () => r.onOpenChange(!1))
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
);
|
|
209
|
+
L.displayName = G;
|
|
210
|
+
function y(e) {
|
|
211
|
+
return e ? "open" : "closed";
|
|
212
|
+
}
|
|
213
|
+
var $ = "DialogTitleWarning", [Ce, B] = V($, {
|
|
214
|
+
contentName: d,
|
|
215
|
+
titleName: E,
|
|
216
|
+
docsSlug: "dialog"
|
|
217
|
+
}), ie = ({ titleId: e }) => {
|
|
218
|
+
const t = B($), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
219
|
+
|
|
220
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
221
|
+
|
|
222
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
223
|
+
return s.useEffect(() => {
|
|
224
|
+
e && (document.getElementById(e) || console.error(n));
|
|
225
|
+
}, [n, e]), null;
|
|
226
|
+
}, se = "DialogDescriptionWarning", ce = ({ contentRef: e, descriptionId: t }) => {
|
|
227
|
+
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${B(se).contentName}}.`;
|
|
228
|
+
return s.useEffect(() => {
|
|
229
|
+
const r = e.current?.getAttribute("aria-describedby");
|
|
230
|
+
t && r && (document.getElementById(t) || console.warn(a));
|
|
231
|
+
}, [a, e, t]), null;
|
|
232
|
+
}, Re = x, _e = T, he = M, Pe = w, Ee = F, ye = W, Ne = L;
|
|
233
|
+
export {
|
|
234
|
+
Ee as C,
|
|
235
|
+
Pe as O,
|
|
236
|
+
he as P,
|
|
237
|
+
Re as R,
|
|
238
|
+
_e as T,
|
|
239
|
+
ye as a,
|
|
240
|
+
Ne as b
|
|
241
|
+
};
|
|
242
|
+
//# sourceMappingURL=index-ChSlzMYI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-ChSlzMYI.js","sources":["../node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@19.2.2_@types+react@19.2.2__@types+react@19.2._aodnlqhr3elwsecxfyuv3mpycy/node_modules/@radix-ui/react-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContext, createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: DIALOG_NAME\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar Slot = createSlot(\"DialogOverlay.RemoveScroll\");\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: forwardedRef,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n useFocusGuards();\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: composedRefs,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ),\n /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })\n ] })\n ] });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar TITLE_WARNING_NAME = \"DialogTitleWarning\";\nvar [WarningProvider, useWarningContext] = createContext(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"dialog\"\n});\nvar TitleWarning = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n return null;\n};\nvar DESCRIPTION_WARNING_NAME = \"DialogDescriptionWarning\";\nvar DescriptionWarning = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute(\"aria-describedby\");\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n return null;\n};\nvar Root = Dialog;\nvar Trigger = DialogTrigger;\nvar Portal = DialogPortal;\nvar Overlay = DialogOverlay;\nvar Content = DialogContent;\nvar Title = DialogTitle;\nvar Description = DialogDescription;\nvar Close = DialogClose;\nexport {\n Close,\n Content,\n Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n Overlay,\n Portal,\n Root,\n Title,\n Trigger,\n WarningProvider,\n createDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DIALOG_NAME","createDialogContext","createContextScope","DialogProvider","useDialogContext","Dialog","props","__scopeDialog","children","openProp","defaultOpen","onOpenChange","modal","triggerRef","React","contentRef","open","setOpen","useControllableState","jsx","useId","prevOpen","TRIGGER_NAME","DialogTrigger","forwardedRef","triggerProps","context","composedTriggerRef","useComposedRefs","Primitive","getState","composeEventHandlers","PORTAL_NAME","PortalProvider","usePortalContext","DialogPortal","forceMount","container","child","Presence","PortalPrimitive","OVERLAY_NAME","DialogOverlay","portalContext","overlayProps","DialogOverlayImpl","Slot","createSlot","RemoveScroll","CONTENT_NAME","DialogContent","contentProps","DialogContentModal","DialogContentNonModal","composedRefs","content","hideOthers","DialogContentImpl","event","originalEvent","ctrlLeftClick","hasInteractedOutsideRef","hasPointerDownOutsideRef","target","trapFocus","onOpenAutoFocus","onCloseAutoFocus","useFocusGuards","jsxs","Fragment","FocusScope","DismissableLayer","TitleWarning","DescriptionWarning","TITLE_NAME","DialogTitle","titleProps","DESCRIPTION_NAME","DialogDescription","descriptionProps","CLOSE_NAME","DialogClose","closeProps","TITLE_WARNING_NAME","WarningProvider","useWarningContext","createContext","titleId","titleWarningContext","MESSAGE","DESCRIPTION_WARNING_NAME","descriptionId","describedById","Root","Trigger","Portal","Overlay","Content","Title","Close"],"mappings":";;;;;;;;;;AAmBA,IAAIA,IAAc,UACd,CAACC,CAAsC,IAAIC,EAAmBF,CAAW,GACzE,CAACG,GAAgBC,CAAgB,IAAIH,EAAoBD,CAAW,GACpEK,IAAS,CAACC,MAAU;AACtB,QAAM;AAAA,IACJ,eAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAMC;AAAA,IACN,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,EACZ,IAAMN,GACEO,IAAaC,EAAM,OAAO,IAAI,GAC9BC,IAAaD,EAAM,OAAO,IAAI,GAC9B,CAACE,GAAMC,CAAO,IAAIC,EAAqB;AAAA,IAC3C,MAAMT;AAAA,IACN,aAAaC,KAAe;AAAA,IAC5B,UAAUC;AAAA,IACV,QAAQX;AAAA,EACZ,CAAG;AACD,SAAuB,gBAAAmB;AAAA,IACrBhB;AA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