@prismicio/editor-ui 0.4.49-alpha.feat-onboarding-guide.0 → 0.4.49-alpha.feat-onboarding-guide.1
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/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -318,7 +318,7 @@ Defaulting to \`null\`.`}var eb=Y4,tb=X4;const CE="_root_bnxem_1",wE="_circularR
|
|
|
318
318
|
`)},Bb=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,a=k.useMemo(function(){return NA(o)},[o]);return k.createElement(LA,{styles:jA(a,!t,o,n?"":"!important")})},Yf=!1;if(typeof window<"u")try{var Vl=Object.defineProperty({},"passive",{get:function(){return Yf=!0,!0}});window.addEventListener("test",Vl,Vl),window.removeEventListener("test",Vl,Vl)}catch{Yf=!1}var jo=Yf?{passive:!1}:!1,zA=function(e){return e.tagName==="TEXTAREA"},Ib=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!zA(e)&&n[t]==="visible")},VA=function(e){return Ib(e,"overflowY")},HA=function(e){return Ib(e,"overflowX")},Mg=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ob(e,r);if(o){var a=Fb(e,r),i=a[1],l=a[2];if(i>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},WA=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},KA=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ob=function(e,t){return e==="v"?VA(t):HA(t)},Fb=function(e,t){return e==="v"?WA(t):KA(t)},UA=function(e,t){return e==="h"&&t==="rtl"?-1:1},ZA=function(e,t,n,r,o){var a=UA(e,window.getComputedStyle(t).direction),i=a*r,l=n.target,s=t.contains(l),c=!1,u=i>0,d=0,h=0;do{var p=Fb(e,l),m=p[0],g=p[1],b=p[2],y=g-b-a*m;(m||y)&&Ob(e,l)&&(d+=y,h+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(u&&(o&&Math.abs(d)<1||!o&&i>d)||!u&&(o&&Math.abs(h)<1||!o&&-i>h))&&(c=!0),c},Hl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ag=function(e){return[e.deltaX,e.deltaY]},Tg=function(e){return e&&"current"in e?e.current:e},GA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qA=function(e){return`
|
|
319
319
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
320
320
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
321
|
-
`)},YA=0,zo=[];function JA(e){var t=k.useRef([]),n=k.useRef([0,0]),r=k.useRef(),o=k.useState(YA++)[0],a=k.useState(Lp)[0],i=k.useRef(e);k.useEffect(function(){i.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Eb([e.lockRef.current],(e.shards||[]).map(Tg),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=k.useCallback(function(g,b){if("touches"in g&&g.touches.length===2)return!i.current.allowPinchZoom;var y=Hl(g),x=n.current,v="deltaX"in g?g.deltaX:x[0]-y[0],w="deltaY"in g?g.deltaY:x[1]-y[1],S,_=g.target,M=Math.abs(v)>Math.abs(w)?"h":"v";if("touches"in g&&M==="h"&&_.type==="range")return!1;var D=Mg(M,_);if(!D)return!0;if(D?S=M:(S=M==="v"?"h":"v",D=Mg(M,_)),!D)return!1;if(!r.current&&"changedTouches"in g&&(v||w)&&(r.current=S),!S)return!0;var E=r.current||S;return ZA(E,b,g,E==="h"?v:w,!0)},[]),s=k.useCallback(function(g){var b=g;if(!(!zo.length||zo[zo.length-1]!==a)){var y="deltaY"in b?Ag(b):Hl(b),x=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&GA(S.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var v=(i.current.shards||[]).map(Tg).filter(Boolean).filter(function(S){return S.contains(b.target)}),w=v.length>0?l(b,v[0]):!i.current.noIsolation;w&&b.cancelable&&b.preventDefault()}}},[]),c=k.useCallback(function(g,b,y,x){var v={name:g,delta:b,target:y,should:x,shadowParent:XA(y)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(w){return w!==v})},1)},[]),u=k.useCallback(function(g){n.current=Hl(g),r.current=void 0},[]),d=k.useCallback(function(g){c(g.type,Ag(g),g.target,l(g,e.lockRef.current))},[]),h=k.useCallback(function(g){c(g.type,Hl(g),g.target,l(g,e.lockRef.current))},[]);k.useEffect(function(){return zo.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",s,jo),document.addEventListener("touchmove",s,jo),document.addEventListener("touchstart",u,jo),function(){zo=zo.filter(function(g){return g!==a}),document.removeEventListener("wheel",s,jo),document.removeEventListener("touchmove",s,jo),document.removeEventListener("touchstart",u,jo)}},[]);var p=e.removeScrollBar,m=e.inert;return k.createElement(k.Fragment,null,m?k.createElement(a,{styles:qA(o)}):null,p?k.createElement(Bb,{gapMode:e.gapMode}):null)}function XA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const QA=Rb(Pb,JA);var Nb=k.forwardRef(function(e,t){return k.createElement(jc,et({},e,{ref:t,sideCar:QA}))});Nb.classNames=jc.classNames;const zc=Nb;var jp="Popover",[Lb,nse]=Le(jp,[Ar]),ll=Ar(),[eT,Tr]=Lb(jp),jb=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,l=ll(t),s=k.useRef(null),[c,u]=k.useState(!1),[d=!1,h]=st({prop:r,defaultProp:o,onChange:a});return f.jsx(Oc,{...l,children:f.jsx(eT,{scope:t,contentId:Ft(),triggerRef:s,open:d,onOpenChange:h,onOpenToggle:k.useCallback(()=>h(p=>!p),[h]),hasCustomAnchor:c,onCustomAnchorAdd:k.useCallback(()=>u(!0),[]),onCustomAnchorRemove:k.useCallback(()=>u(!1),[]),modal:i,children:n})})};jb.displayName=jp;var zb="PopoverAnchor",zp=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Tr(zb,n),a=ll(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=o;return k.useEffect(()=>(i(),()=>l()),[i,l]),f.jsx(il,{...a,...r,ref:t})});zp.displayName=zb;var Vb="PopoverTrigger",tT=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Tr(Vb,n),a=ll(n),i=pe(t,o.triggerRef),l=f.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Kb(o.open),...r,ref:i,onClick:J(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:f.jsx(il,{asChild:!0,...a,children:l})});tT.displayName=Vb;var Vp="PopoverPortal",[nT,rT]=Lb(Vp,{forceMount:void 0}),Hp=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Tr(Vp,t);return f.jsx(nT,{scope:t,forceMount:n,children:f.jsx(ft,{present:n||a.open,children:f.jsx(Ao,{asChild:!0,container:o,children:r})})})};Hp.displayName=Vp;var xa="PopoverContent",Wp=k.forwardRef((e,t)=>{const n=rT(xa,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Tr(xa,e.__scopePopover);return f.jsx(ft,{present:r||a.open,children:a.modal?f.jsx(oT,{...o,ref:t}):f.jsx(aT,{...o,ref:t})})});Wp.displayName=xa;var oT=k.forwardRef((e,t)=>{const n=Tr(xa,e.__scopePopover),r=k.useRef(null),o=pe(t,r),a=k.useRef(!1);return k.useEffect(()=>{const i=r.current;if(i)return Lc(i)},[]),f.jsx(zc,{as:$r,allowPinchZoom:!0,children:f.jsx(Hb,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:J(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),a.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:J(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,c=l.button===2||s;a.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:J(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),aT=k.forwardRef((e,t)=>{const n=Tr(xa,e.__scopePopover),r=k.useRef(!1),o=k.useRef(!1);return f.jsx(Hb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,l;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var s,c;(s=e.onInteractOutside)==null||s.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Hb=k.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:u,...d}=e,h=Tr(xa,n),p=ll(n);return Pc(),f.jsx(Ra,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:f.jsx(ol,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:f.jsx(Fc,{"data-state":Kb(h.open),role:"dialog",id:h.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Wb="PopoverClose",iT=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Tr(Wb,n);return f.jsx(ee.button,{type:"button",...r,ref:t,onClick:J(e.onClick,()=>o.onOpenChange(!1))})});iT.displayName=Wb;var lT="PopoverArrow",sT=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ll(n);return f.jsx(Nc,{...o,...r,ref:t})});sT.displayName=lT;function Kb(e){return e?"open":"closed"}var Ub=jb,cT=zp,uT=Hp,dT=Wp;const fT="_cardContent_1vpic_1",hT={cardContent:fT,"fade-in":"_fade-in_1vpic_1","slide-in-top":"_slide-in-top_1vpic_1","slide-in-bottom":"_slide-in-bottom_1vpic_1","fade-out":"_fade-out_1vpic_1","slide-out-top":"_slide-out-top_1vpic_1","slide-out-bottom":"_slide-out-bottom_1vpic_1"};function Ba(e){const{align:t,focusOnEnter:n=!0,sideOffset:r,anchor:o,children:a,open:i,openDelay:l=0,closeDelay:s=0,onOpenChange:c,onMouseOverChange:u,onInteractOutside:d,onEscapeKeyDown:h}=e;function p(m){n||m.preventDefault()}return f.jsxs(Ub,{open:i,onOpenChange:c,children:[f.jsx(cT,{asChild:!0,children:o}),f.jsx(uT,{children:f.jsx(dT,{className:hT.cardContent,style:{"--Popover-open-delay":`${l}ms`,"--Popover-close-delay":`${s}ms`},align:t,collisionPadding:parseFloat(_e.space[16]),sideOffset:r,onOpenAutoFocus:p,onMouseEnter:u&&(()=>u(!0)),onMouseLeave:u&&(()=>u(!1)),onInteractOutside:d,onEscapeKeyDown:h,onWheel:m=>m.stopPropagation(),children:a})})]})}const Zb=C.createContext({showAlert:()=>{},containerRef:null});function pT(e){const{children:t}=e,[n,r]=C.useState([]),o=C.useRef(null),a=C.useMemo(()=>({showAlert:l=>r(s=>[...s,l]),containerRef:o}),[]);function i(l){const s=n.filter(c=>c.id!==l);r(s)}return f.jsxs(f.Fragment,{children:[f.jsx(Ba,{open:n.length>0,align:"end",anchor:f.jsx(Ce,{position:"fixed",top:16,right:16}),focusOnEnter:!1,children:f.jsx(Ce,{ref:o,width:Rg,children:f.jsx(Tp,{ariaLabel:"Alert Container",items:n,getItemKey:l=>l.id??"",stacked:{offset:8,scaleFactor:.05,maxDepth:4},children:l=>f.jsx(Ce,{width:Rg,children:f.jsx(nb,{title:l.title,subtitle:l.subtitle,rightButton:{type:"close",onClick:()=>i(l.id)},color:l.color??"error",footerButtons:gT({alertConfig:l,onClose:()=>i(l.id)})})})})})}),f.jsx(Zb.Provider,{value:a,children:t})]})}function mT(){const e=C.useContext(Zb);if(e===void 0)throw new Error("useAlert must be used within a AlertProvider");return e}function gT(e){const{alertConfig:t,onClose:n}=e,{onRetry:r,buttons:o}=t;function a(){open("https://prismic.io/docs/help-center")}return o||{dismiss:{text:"Contact support",onClick:()=>{a(),n()}},action:r&&{text:"Retry",onClick:()=>{n(),r()}}}}const Rg=600,bT="_animatedElement_stg60_1",vT="_animationCommon_stg60_10",yT="_animationExpandCommon_stg60_15",xT="_fadeEnter_stg60_1",CT="_slideEnter_stg60_1",wT="_expandEnter_stg60_1",kT="_fadeExit_stg60_1",ST="_slideExit_stg60_1",DT="_expandExit_stg60_1",Hu={animatedElement:bT,animationCommon:vT,animationExpandCommon:yT,"entering-fade":"_entering-fade_stg60_26 _animationCommon_stg60_10",fadeEnter:xT,"entering-slide":"_entering-slide_stg60_31 _animationCommon_stg60_10",slideEnter:CT,"entering-expand":"_entering-expand_stg60_36 _animationExpandCommon_stg60_15",expandEnter:wT,"exiting-fade":"_exiting-fade_stg60_41 _animationCommon_stg60_10",fadeExit:kT,"exiting-slide":"_exiting-slide_stg60_46 _animationCommon_stg60_10",slideExit:ST,"exiting-expand":"_exiting-expand_stg60_51 _animationExpandCommon_stg60_15",expandExit:DT},qs=C.forwardRef(function(t,n){const{children:r,animation:o={name:"fade"},enterDuration:a=300,exitDuration:i=a,focusable:l,sx:s}=t,[c,u]=C.useState(_T(r)),d=ET(c,t);d!==c&&u(d);const h=c.type==="absent"?null:c.child,p=U(Hu.animatedElement,c.type==="entering"&&Hu[`entering-${o.name}`],c.type==="exiting"&&Hu[`exiting-${o.name}`]),m=o.name==="slide"?o.offset??40:0,g={...s,"--AnimatedElement-offset":`${m}px`,animationDuration:$T(c,a,i)};function b(y){y.target===y.currentTarget&&(c.type==="entering"?u({type:"present",child:c.child}):c.type==="exiting"&&u({type:"absent"}))}return f.jsx("div",{ref:n,className:p,tabIndex:l?-1:void 0,style:g,onAnimationEnd:b,children:h})});function Pg(e){return e.key??"__KEY__"}function _T(e){return e?{type:"present",child:e}:{type:"absent"}}function $T(e,t,n){if(e.type==="entering")return _e.transitionDuration[t];if(e.type==="exiting")return _e.transitionDuration[n]}function ET(e,t){const{children:n,exitDuration:r}=t;if(!n)return e.type==="entering"||e.type==="present"?Bg(e.child,r):e;if(e.type==="absent")return{type:"entering",child:n};const o=Pg(e.child),a=Pg(n);return o===a?e.type==="present"&&e.child!==n?{type:"present",child:n}:e:e.type==="exiting"?e:Bg(e.child,r)}function Bg(e,t){return t===0?{type:"absent"}:{type:"exiting",child:e}}var Kp="Avatar",[MT,rse]=Le(Kp),[AT,Gb]=MT(Kp),qb=k.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=k.useState("idle");return f.jsx(AT,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:f.jsx(ee.span,{...r,ref:t})})});qb.displayName=Kp;var Yb="AvatarImage",Jb=k.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=Gb(Yb,n),l=TT(r),s=$n(c=>{o(c),i.onImageLoadingStatusChange(c)});return Ze(()=>{l!=="idle"&&s(l)},[l,s]),l==="loaded"?f.jsx(ee.img,{...a,ref:t,src:r}):null});Jb.displayName=Yb;var Xb="AvatarFallback",Qb=k.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Gb(Xb,n),[i,l]=k.useState(r===void 0);return k.useEffect(()=>{if(r!==void 0){const s=window.setTimeout(()=>l(!0),r);return()=>window.clearTimeout(s)}},[r]),i&&a.imageLoadingStatus!=="loaded"?f.jsx(ee.span,{...o,ref:t}):null});Qb.displayName=Xb;function TT(e){const[t,n]=k.useState("idle");return Ze(()=>{if(!e){n("error");return}let r=!0;const o=new window.Image,a=i=>()=>{r&&n(i)};return n("loading"),o.onload=a("loaded"),o.onerror=a("error"),o.src=e,()=>{r=!1}},[e]),t}var RT=qb,PT=Jb,BT=Qb;const IT="_root_3mvor_1",OT="_border_3mvor_11",FT="_image_3mvor_17",Wu={root:IT,border:OT,image:FT};function NT(e){const{imageUrl:t,firstName:n,lastName:r,hasBorder:o=!0,size:a=32}=e,i=(n.charAt(0)+r.charAt(0)).toUpperCase();return f.jsxs(RT,{className:U(Wu.root,o&&Wu.border),style:{width:a,height:a},children:[f.jsx(PT,{src:t,className:Wu.image}),f.jsx(BT,{delayMs:600,children:f.jsx(Q,{color:"grey11",variant:"smallBold",children:i})})]})}const LT="_root_1mjw6_1 _variant-normal_17xe9_12 _base_17xe9_8",jT="_selected_1mjw6_24",zT="_disablePointerEvents_1mjw6_138",VT="_enablePointerEvents_1mjw6_142",HT="_editable_1mjw6_146",or={root:LT,"color-grey":"_color-grey_1mjw6_14",selected:jT,"color-green":"_color-green_1mjw6_31","color-amber":"_color-amber_1mjw6_48","color-purple":"_color-purple_1mjw6_65","color-tomato":"_color-tomato_1mjw6_82","color-indigo":"_color-indigo_1mjw6_99","size-large":"_size-large_1mjw6_116","size-medium":"_size-medium_1mjw6_120","size-small":"_size-small_1mjw6_124","width-150":"_width-150_1mjw6_130","width-250":"_width-250_1mjw6_134",disablePointerEvents:zT,enablePointerEvents:VT,editable:HT},Dt=C.forwardRef(function(t,n){const{title:r,color:o="grey",size:a="large",maxWidth:i,icon:l,selected:s=!1,sx:c,onClick:u,onClose:d,onMouseEnter:h,onMouseLeave:p,onEdit:m,...g}=t,b=!!m,y=!!u||b,x=U(or.root,or[`color-${o}`],or[`size-${a}`],i&&or[`width-${i}`],!y&&or.disablePointerEvents,s&&or.selected,b&&or.editable),v=C.useRef(null),[w,S]=C.useState(!1);async function _(){var R;if(!m)return;const E=((R=v.current)==null?void 0:R.innerText)||"";E!==r&&E!==""&&await m(E),S($=>!$)}function M(E){if(E.stopPropagation(),E.code==="Enter"&&b){_();return}(E.code==="Enter"||E.code==="Space")&&(u==null||u())}const D=typeof r=="string"?f.jsx(Q,{variant:s?"smallBold":"small",color:`${o}11`,noWrap:!0,children:r}):r;return C.createElement("div",{...g,key:String(w),contentEditable:b,suppressContentEditableWarning:!0,onBlur:_,role:"button",tabIndex:y?0:-1,className:x,style:c,onClick:u,onKeyDown:M,"data-marker":"badge",ref:ge.composeRefs(n,v),onMouseEnter:h,onMouseLeave:p},l&&f.jsx(de,{name:l,size:"extraSmall",color:`${o}11`}),D,b&&f.jsx(de,{name:"edit",size:"extraSmall",color:`${o}11`}),d&&f.jsx("div",{className:or.enablePointerEvents,children:f.jsx(rt,{icon:"close",size:"small",color:o,hasPadding:!1,onClick:d})}))}),WT="_root_enlhf_1",KT="_fadeIn_enlhf_1",UT="_icon_enlhf_20",ZT="_iconChildren_enlhf_29",GT="_image_enlhf_73",qT="_imageFixedHeight_enlhf_77",so={root:WT,fadeIn:KT,"variant-vertical":"_variant-vertical_enlhf_10","variant-horizontal":"_variant-horizontal_enlhf_15",icon:UT,iconChildren:ZT,"icon-small":"_icon-small_enlhf_33","icon-medium":"_icon-medium_enlhf_43","icon-large":"_icon-large_enlhf_53","icon-xlarge":"_icon-xlarge_enlhf_63",image:GT,imageFixedHeight:qT};function e5(e){const{sx:t,variant:n="vertical",...r}=e;return f.jsx("article",{...r,style:t,className:U(so.root,so[`variant-${n}`])})}function YT(e){const{name:t,lineColor:n="grey11",backgroundColor:r="grey7",borderColor:o,borderStyle:a,size:i="medium",...l}=e;return f.jsx("div",{...l,className:U(so.icon,so[`icon-${i}`]),style:{backgroundColor:_e.color[r],borderColor:o?_e.color[o]:void 0,borderStyle:a,borderWidth:1},children:f.jsx(de,{className:so.iconChildren,color:n,name:t})})}const JT={regular:"normal",big:"h2"};function t5(e){const{size:t="regular",...n}=e;return f.jsx(Q,{...n,noSelect:!0,align:"center",variant:JT[t]})}function n5(e){const{width:t}=e;return f.jsx(Q,{...e,noSelect:!0,align:"center",variant:"normal",color:"grey11",sx:{width:t}})}function r5(e){const{fixedHeight:t=!0,...n}=e;return f.jsx("div",{...n,className:U(so.image,t&&so.imageFixedHeight)})}function o5(e){return f.jsx(_n,{...e,size:"large",color:"grey"})}const XT="_loading_12t51_1",QT="_loaded_12t51_5",eR="_noSelect_12t51_17",Ya={loading:XT,loaded:QT,"fade-in":"_fade-in_12t51_1","background-transparent":"_background-transparent_12t51_12",noSelect:eR,"sizing-contain":"_sizing-contain_12t51_21","sizing-cover":"_sizing-cover_12t51_27","border-radius-4":"_border-radius-4_12t51_33","border-radius-8":"_border-radius-8_12t51_37"};function sl(e){const{["aria-label"]:t,src:n,alt:r,onLoad:o,sizing:a="none",borderRadius:i=0,boxShadow:l,animateOnLoad:s=!0,sx:c,background:u,...d}=e,[h,p]=C.useState(!1),m=tR({animateOnLoad:s,isLoaded:h});function g(){p(!0),o==null||o()}return f.jsx("img",{...d,"aria-label":t,className:U(Ya.noSelect,a!=="none"&&Ya[`sizing-${a}`],i!==0&&Ya[`border-radius-${i}`],m&&Ya[m],u&&Ya[`background-${u}`]),style:{...c,boxShadow:l&&_e.boxShadow[l]},src:n,alt:r,onLoad:g})}function tR(e){const{animateOnLoad:t,isLoaded:n}=e;if(t)return n?"loaded":"loading"}function Up(e){const{src:t,...n}=e;return vo.useRequest(a5,[t]),f.jsx(sl,{...n,src:t})}function a5(e){const t=XS.delay(1e4).then(()=>1),n=new Promise(r=>{const o=new Image;o.onload=()=>r(1),o.src=e});return Promise.race([t,n])}vo.cache.registerFetcherConfig(a5,{cacheCapacity:1e4});const nR="_skeleton_1rejs_1",rR="_pulse_1rejs_1",oR="_hasChildren_1rejs_6",Wl={skeleton:nR,pulse:rR,hasChildren:oR,"color-grey1":"_color-grey1_1rejs_15","color-grey5":"_color-grey5_1rejs_18","radius-0":"_radius-0_1rejs_22","radius-4":"_radius-4_1rejs_25","radius-6":"_radius-6_1rejs_28","radius-12":"_radius-12_1rejs_31","radius-100%":"_radius-100%_1rejs_34"};function Ca(e){const{height:t,component:n="span",width:r,color:o="grey5",borderRadius:a=6,children:i,sx:l}=e;return C.createElement(n,{className:U(Wl.skeleton,i&&Wl.hasChildren,Wl[`radius-${a}`],Wl[`color-${o}`]),style:{...l,width:r,height:t}},i)}const aR="_card_1vn0i_1",iR="_interactive_1vn0i_9",lR="_closeable_1vn0i_23",sR="_closeButton_1vn0i_27",cR="_footer_1vn0i_62",uR="_rotate_1vn0i_1",dR="_pulse_1vn0i_1",fR="_paddingInline_1vn0i_135",hR="_header_1vn0i_140 _paddingInline_1vn0i_135",pR="_content_1vn0i_147 _paddingInline_1vn0i_135",mR="_imageContainer_1vn0i_154",gR="_footerPadding_1vn0i_165 _paddingInline_1vn0i_135",gt={card:aR,interactive:iR,closeable:lR,closeButton:sR,"paddingBlock-0":"_paddingBlock-0_1vn0i_40","paddingBlock-8":"_paddingBlock-8_1vn0i_44","paddingBlock-12":"_paddingBlock-12_1vn0i_48","paddingBlock-16":"_paddingBlock-16_1vn0i_52","paddingBlock-28":"_paddingBlock-28_1vn0i_57",footer:cR,"color-grey1":"_color-grey1_1vn0i_66","color-grey2":"_color-grey2_1vn0i_70","color-grey3":"_color-grey3_1vn0i_74","color-indigo2":"_color-indigo2_1vn0i_78","color-purple1":"_color-purple1_1vn0i_82","variant-animated":"_variant-animated_1vn0i_87",rotate:uR,pulse:dR,"variant-animated-light":"_variant-animated-light_1vn0i_95 _variant-animated_1vn0i_87","variant-animated-dark":"_variant-animated-dark_1vn0i_104 _variant-animated_1vn0i_87","variant-dashed":"_variant-dashed_1vn0i_113","variant-elevated":"_variant-elevated_1vn0i_116","variant-outlined":"_variant-outlined_1vn0i_120","variant-selected":"_variant-selected_1vn0i_123","radius-4":"_radius-4_1vn0i_128","radius-6":"_radius-6_1vn0i_131",paddingInline:fR,header:hR,content:pR,imageContainer:mR,footerPadding:gR,"footerSeparator-solid":"_footerSeparator-solid_1vn0i_170","footerSeparator-dashed":"_footerSeparator-dashed_1vn0i_174"},bR=C.forwardRef(function(t,n){const{color:r="grey1",variant:o="elevated",radius:a=6,paddingBlock:i=8,paddingInline:l=16,padding:s,sx:c,children:u,onSelect:d,onClose:h}=t,p=!!d,m=!!h,g=s??i,b=s??l;function y(v){(v.code==="Enter"||v.code==="Space")&&(d==null||d(v))}function x(v){d==null||d(v)}return f.jsxs("div",{ref:n,role:p?"button":"article",tabIndex:p?0:-1,className:U(gt.card,gt[`variant-${o}`],gt[`color-${r}`],gt[`radius-${a}`],gt[`paddingBlock-${g}`],p&>.interactive,m&>.closeable),style:{...c,"--Card-padding-inline":`${b}px`},onKeyDown:y,onClick:x,children:[m&&f.jsx(rt,{icon:"close",size:"small",variant:"solid",radius:"full",color:"darkGrey",className:gt.closeButton,onClick:h}),u]})});function vR(e){const{children:t,sx:n}=e;return f.jsx("header",{className:gt.header,style:n,children:t})}function yR(e){const{children:t,variant:n,sx:r}=e;return f.jsx(Q,{...e,noSelect:!0,sx:r,variant:n,children:t})}function xR(e){const{sx:t,children:n}=e;return f.jsx(_n,{sx:t,size:"small",color:"grey",children:n})}function i5(e){const{sx:t,children:n,padding:r}=e;return f.jsx("section",{className:gt.content,style:{...t,padding:r},children:n})}function CR(e){const{height:t,...n}=e;return f.jsx("div",{className:gt.imageContainer,style:{height:t},children:f.jsx(C.Suspense,{fallback:f.jsx(Ca,{width:"100%",height:"100%",sx:{borderRadius:0}}),children:f.jsx(Up,{sizing:"cover",...n})})})}function wR(e){const{sx:t,hasPadding:n=!0,children:r,separator:o="solid"}=e;return f.jsx("footer",{className:U(gt.footer,n&>.footerPadding,o!=="none"&>[`footerSeparator-${o}`]),style:t,children:r})}const kR="_previewCard_f5ski_1",SR="_selected_f5ski_12",DR="_compact_f5ski_17",_R="_large_f5ski_22",$R="_clickable_f5ski_26",ER="_thumbnail_f5ski_39",MR="_framed_f5ski_45",AR="_content_f5ski_65",vn={previewCard:kR,selected:SR,compact:DR,large:_R,clickable:$R,thumbnail:ER,framed:MR,"thumbnail-1-1":"_thumbnail-1-1_f5ski_55","thumbnail-16-9":"_thumbnail-16-9_f5ski_60",content:AR};function TR(e){const{children:t,selected:n=!1,variant:r="compact",onClick:o}=e,a=!!o,i=a?{role:"button",tabIndex:0,onClick:o,onKeyDown:l}:{};function l(s){(s.code==="Enter"||s.code==="Space")&&(o==null||o())}return f.jsx("div",{className:U(vn.previewCard,n&&vn.selected,r==="compact"&&vn.compact,r==="large"&&vn.large,a&&vn.clickable),role:"note",...i,children:t})}function RR(e){const{src:t,aspectRatio:n,framed:r,width:o,height:a,alt:i}=e;return f.jsx("div",{className:U(vn.thumbnail,r&&vn.framed,n==="1:1"&&vn["thumbnail-1-1"],n==="16:9"&&vn["thumbnail-16-9"]),style:{width:o,height:a},children:f.jsx(sl,{src:t,alt:i,sizing:"cover",animateOnLoad:!1})})}function PR(e){const{children:t}=e;return f.jsx("div",{className:vn.content,children:t})}const BR="_checkerboard_19dw7_1",IR={checkerboard:BR};function Vc(e){const{children:t}=e;return f.jsx("div",{className:IR.checkerboard,children:t})}const OR="_root_1yqsh_1",FR="_button_1yqsh_7",NR="_buttonIcon_1yqsh_47",ks={root:OR,button:FR,"fade-in":"_fade-in_1yqsh_1","buttonSize-small":"_buttonSize-small_1yqsh_37","buttonSize-medium":"_buttonSize-medium_1yqsh_42",buttonIcon:NR};function LR(e){const{items:t,children:n,getItemSource:r,page:o,buttonSize:a="medium",renderPrevTooltip:i,renderNextTooltip:l,onPageChange:s,...c}=e,u=t[o],d=C.useMemo(()=>t.map(r),[t,r]),[h,p]=zR(d),[m,g]=C.useState(!1);C.useEffect(()=>jR(d),[d]);function b(){p("prev"),s==null||s(o===0?t.length-1:o-1)}function y(){p("next"),s==null||s(o===t.length-1?0:o+1)}return f.jsx(Vc,{children:f.jsx(l5.Provider,{value:{direction:h},children:f.jsxs("div",{...c,className:U(ks.root),onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:[u?n(u,o):null,m&&t.length>1&&f.jsxs(f.Fragment,{children:[f.jsx(Ig,{sx:{left:a==="small"?8:16},iconName:"arrowBack",size:a,renderTooltip:i,onClick:b}),f.jsx(Ig,{sx:{right:a==="small"?8:16},size:a,iconName:"arrowForward",renderTooltip:l,onClick:y})]})]})})})}function jR(e){e.filter(Sp.isDefined).forEach(t=>new Image().src=t)}function zR(e){const t=C.useRef("idle"),n=ge.useForceUpdate(),r=e.join(`
|
|
321
|
+
`)},YA=0,zo=[];function JA(e){var t=k.useRef([]),n=k.useRef([0,0]),r=k.useRef(),o=k.useState(YA++)[0],a=k.useState(Lp)[0],i=k.useRef(e);k.useEffect(function(){i.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Eb([e.lockRef.current],(e.shards||[]).map(Tg),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=k.useCallback(function(g,b){if("touches"in g&&g.touches.length===2)return!i.current.allowPinchZoom;var y=Hl(g),x=n.current,v="deltaX"in g?g.deltaX:x[0]-y[0],w="deltaY"in g?g.deltaY:x[1]-y[1],S,_=g.target,M=Math.abs(v)>Math.abs(w)?"h":"v";if("touches"in g&&M==="h"&&_.type==="range")return!1;var D=Mg(M,_);if(!D)return!0;if(D?S=M:(S=M==="v"?"h":"v",D=Mg(M,_)),!D)return!1;if(!r.current&&"changedTouches"in g&&(v||w)&&(r.current=S),!S)return!0;var E=r.current||S;return ZA(E,b,g,E==="h"?v:w,!0)},[]),s=k.useCallback(function(g){var b=g;if(!(!zo.length||zo[zo.length-1]!==a)){var y="deltaY"in b?Ag(b):Hl(b),x=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&GA(S.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var v=(i.current.shards||[]).map(Tg).filter(Boolean).filter(function(S){return S.contains(b.target)}),w=v.length>0?l(b,v[0]):!i.current.noIsolation;w&&b.cancelable&&b.preventDefault()}}},[]),c=k.useCallback(function(g,b,y,x){var v={name:g,delta:b,target:y,should:x,shadowParent:XA(y)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(w){return w!==v})},1)},[]),u=k.useCallback(function(g){n.current=Hl(g),r.current=void 0},[]),d=k.useCallback(function(g){c(g.type,Ag(g),g.target,l(g,e.lockRef.current))},[]),h=k.useCallback(function(g){c(g.type,Hl(g),g.target,l(g,e.lockRef.current))},[]);k.useEffect(function(){return zo.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",s,jo),document.addEventListener("touchmove",s,jo),document.addEventListener("touchstart",u,jo),function(){zo=zo.filter(function(g){return g!==a}),document.removeEventListener("wheel",s,jo),document.removeEventListener("touchmove",s,jo),document.removeEventListener("touchstart",u,jo)}},[]);var p=e.removeScrollBar,m=e.inert;return k.createElement(k.Fragment,null,m?k.createElement(a,{styles:qA(o)}):null,p?k.createElement(Bb,{gapMode:e.gapMode}):null)}function XA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const QA=Rb(Pb,JA);var Nb=k.forwardRef(function(e,t){return k.createElement(jc,et({},e,{ref:t,sideCar:QA}))});Nb.classNames=jc.classNames;const zc=Nb;var jp="Popover",[Lb,nse]=Le(jp,[Ar]),ll=Ar(),[eT,Tr]=Lb(jp),jb=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,l=ll(t),s=k.useRef(null),[c,u]=k.useState(!1),[d=!1,h]=st({prop:r,defaultProp:o,onChange:a});return f.jsx(Oc,{...l,children:f.jsx(eT,{scope:t,contentId:Ft(),triggerRef:s,open:d,onOpenChange:h,onOpenToggle:k.useCallback(()=>h(p=>!p),[h]),hasCustomAnchor:c,onCustomAnchorAdd:k.useCallback(()=>u(!0),[]),onCustomAnchorRemove:k.useCallback(()=>u(!1),[]),modal:i,children:n})})};jb.displayName=jp;var zb="PopoverAnchor",zp=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Tr(zb,n),a=ll(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=o;return k.useEffect(()=>(i(),()=>l()),[i,l]),f.jsx(il,{...a,...r,ref:t})});zp.displayName=zb;var Vb="PopoverTrigger",tT=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Tr(Vb,n),a=ll(n),i=pe(t,o.triggerRef),l=f.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Kb(o.open),...r,ref:i,onClick:J(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:f.jsx(il,{asChild:!0,...a,children:l})});tT.displayName=Vb;var Vp="PopoverPortal",[nT,rT]=Lb(Vp,{forceMount:void 0}),Hp=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Tr(Vp,t);return f.jsx(nT,{scope:t,forceMount:n,children:f.jsx(ft,{present:n||a.open,children:f.jsx(Ao,{asChild:!0,container:o,children:r})})})};Hp.displayName=Vp;var xa="PopoverContent",Wp=k.forwardRef((e,t)=>{const n=rT(xa,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Tr(xa,e.__scopePopover);return f.jsx(ft,{present:r||a.open,children:a.modal?f.jsx(oT,{...o,ref:t}):f.jsx(aT,{...o,ref:t})})});Wp.displayName=xa;var oT=k.forwardRef((e,t)=>{const n=Tr(xa,e.__scopePopover),r=k.useRef(null),o=pe(t,r),a=k.useRef(!1);return k.useEffect(()=>{const i=r.current;if(i)return Lc(i)},[]),f.jsx(zc,{as:$r,allowPinchZoom:!0,children:f.jsx(Hb,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:J(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),a.current||(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:J(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,s=l.button===0&&l.ctrlKey===!0,c=l.button===2||s;a.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:J(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),aT=k.forwardRef((e,t)=>{const n=Tr(xa,e.__scopePopover),r=k.useRef(!1),o=k.useRef(!1);return f.jsx(Hb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,l;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var s,c;(s=e.onInteractOutside)==null||s.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Hb=k.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:u,...d}=e,h=Tr(xa,n),p=ll(n);return Pc(),f.jsx(Ra,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:f.jsx(ol,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:f.jsx(Fc,{"data-state":Kb(h.open),role:"dialog",id:h.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Wb="PopoverClose",iT=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Tr(Wb,n);return f.jsx(ee.button,{type:"button",...r,ref:t,onClick:J(e.onClick,()=>o.onOpenChange(!1))})});iT.displayName=Wb;var lT="PopoverArrow",sT=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ll(n);return f.jsx(Nc,{...o,...r,ref:t})});sT.displayName=lT;function Kb(e){return e?"open":"closed"}var Ub=jb,cT=zp,uT=Hp,dT=Wp;const fT="_cardContent_1vpic_1",hT={cardContent:fT,"fade-in":"_fade-in_1vpic_1","slide-in-top":"_slide-in-top_1vpic_1","slide-in-bottom":"_slide-in-bottom_1vpic_1","fade-out":"_fade-out_1vpic_1","slide-out-top":"_slide-out-top_1vpic_1","slide-out-bottom":"_slide-out-bottom_1vpic_1"};function Ba(e){const{align:t,focusOnEnter:n=!0,sideOffset:r,anchor:o,children:a,open:i,openDelay:l=0,closeDelay:s=0,onOpenChange:c,onMouseOverChange:u,onInteractOutside:d,onEscapeKeyDown:h}=e;function p(m){n||m.preventDefault()}return f.jsxs(Ub,{open:i,onOpenChange:c,children:[f.jsx(cT,{asChild:!0,children:o}),f.jsx(uT,{children:f.jsx(dT,{className:hT.cardContent,style:{"--Popover-open-delay":`${l}ms`,"--Popover-close-delay":`${s}ms`},align:t,collisionPadding:parseFloat(_e.space[16]),sideOffset:r,onOpenAutoFocus:p,onMouseEnter:u&&(()=>u(!0)),onMouseLeave:u&&(()=>u(!1)),onInteractOutside:d,onEscapeKeyDown:h,onWheel:m=>m.stopPropagation(),children:a})})]})}const Zb=C.createContext({showAlert:()=>{},containerRef:null});function pT(e){const{children:t}=e,[n,r]=C.useState([]),o=C.useRef(null),a=C.useMemo(()=>({showAlert:l=>r(s=>[...s,l]),containerRef:o}),[]);function i(l){const s=n.filter(c=>c.id!==l);r(s)}return f.jsxs(f.Fragment,{children:[f.jsx(Ba,{open:n.length>0,align:"end",anchor:f.jsx(Ce,{position:"fixed",top:16,right:16}),focusOnEnter:!1,children:f.jsx(Ce,{ref:o,width:Rg,children:f.jsx(Tp,{ariaLabel:"Alert Container",items:n,getItemKey:l=>l.id??"",stacked:{offset:8,scaleFactor:.05,maxDepth:4},children:l=>f.jsx(Ce,{width:Rg,children:f.jsx(nb,{title:l.title,subtitle:l.subtitle,rightButton:{type:"close",onClick:()=>i(l.id)},color:l.color??"error",footerButtons:gT({alertConfig:l,onClose:()=>i(l.id)})})})})})}),f.jsx(Zb.Provider,{value:a,children:t})]})}function mT(){const e=C.useContext(Zb);if(e===void 0)throw new Error("useAlert must be used within a AlertProvider");return e}function gT(e){const{alertConfig:t,onClose:n}=e,{onRetry:r,buttons:o}=t;function a(){open("https://prismic.io/docs/help-center")}return o||{dismiss:{text:"Contact support",onClick:()=>{a(),n()}},action:r&&{text:"Retry",onClick:()=>{n(),r()}}}}const Rg=600,bT="_animatedElement_stg60_1",vT="_animationCommon_stg60_10",yT="_animationExpandCommon_stg60_15",xT="_fadeEnter_stg60_1",CT="_slideEnter_stg60_1",wT="_expandEnter_stg60_1",kT="_fadeExit_stg60_1",ST="_slideExit_stg60_1",DT="_expandExit_stg60_1",Hu={animatedElement:bT,animationCommon:vT,animationExpandCommon:yT,"entering-fade":"_entering-fade_stg60_26 _animationCommon_stg60_10",fadeEnter:xT,"entering-slide":"_entering-slide_stg60_31 _animationCommon_stg60_10",slideEnter:CT,"entering-expand":"_entering-expand_stg60_36 _animationExpandCommon_stg60_15",expandEnter:wT,"exiting-fade":"_exiting-fade_stg60_41 _animationCommon_stg60_10",fadeExit:kT,"exiting-slide":"_exiting-slide_stg60_46 _animationCommon_stg60_10",slideExit:ST,"exiting-expand":"_exiting-expand_stg60_51 _animationExpandCommon_stg60_15",expandExit:DT},qs=C.forwardRef(function(t,n){const{children:r,animation:o={name:"fade"},enterDuration:a=300,exitDuration:i=a,focusable:l,sx:s}=t,[c,u]=C.useState(_T(r)),d=ET(c,t);d!==c&&u(d);const h=c.type==="absent"?null:c.child,p=U(Hu.animatedElement,c.type==="entering"&&Hu[`entering-${o.name}`],c.type==="exiting"&&Hu[`exiting-${o.name}`]),m=o.name==="slide"?o.offset??40:0,g={...s,"--AnimatedElement-offset":`${m}px`,animationDuration:$T(c,a,i)};function b(y){y.target===y.currentTarget&&(c.type==="entering"?u({type:"present",child:c.child}):c.type==="exiting"&&u({type:"absent"}))}return f.jsx("div",{ref:n,className:p,tabIndex:l?-1:void 0,style:g,onAnimationEnd:b,children:h})});function Pg(e){return e.key??"__KEY__"}function _T(e){return e?{type:"present",child:e}:{type:"absent"}}function $T(e,t,n){if(e.type==="entering")return _e.transitionDuration[t];if(e.type==="exiting")return _e.transitionDuration[n]}function ET(e,t){const{children:n,exitDuration:r}=t;if(!n)return e.type==="entering"||e.type==="present"?Bg(e.child,r):e;if(e.type==="absent")return{type:"entering",child:n};const o=Pg(e.child),a=Pg(n);return o===a?e.type==="present"&&e.child!==n?{type:"present",child:n}:e:e.type==="exiting"?e:Bg(e.child,r)}function Bg(e,t){return t===0?{type:"absent"}:{type:"exiting",child:e}}var Kp="Avatar",[MT,rse]=Le(Kp),[AT,Gb]=MT(Kp),qb=k.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=k.useState("idle");return f.jsx(AT,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:f.jsx(ee.span,{...r,ref:t})})});qb.displayName=Kp;var Yb="AvatarImage",Jb=k.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=Gb(Yb,n),l=TT(r),s=$n(c=>{o(c),i.onImageLoadingStatusChange(c)});return Ze(()=>{l!=="idle"&&s(l)},[l,s]),l==="loaded"?f.jsx(ee.img,{...a,ref:t,src:r}):null});Jb.displayName=Yb;var Xb="AvatarFallback",Qb=k.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Gb(Xb,n),[i,l]=k.useState(r===void 0);return k.useEffect(()=>{if(r!==void 0){const s=window.setTimeout(()=>l(!0),r);return()=>window.clearTimeout(s)}},[r]),i&&a.imageLoadingStatus!=="loaded"?f.jsx(ee.span,{...o,ref:t}):null});Qb.displayName=Xb;function TT(e){const[t,n]=k.useState("idle");return Ze(()=>{if(!e){n("error");return}let r=!0;const o=new window.Image,a=i=>()=>{r&&n(i)};return n("loading"),o.onload=a("loaded"),o.onerror=a("error"),o.src=e,()=>{r=!1}},[e]),t}var RT=qb,PT=Jb,BT=Qb;const IT="_root_3mvor_1",OT="_border_3mvor_11",FT="_image_3mvor_17",Wu={root:IT,border:OT,image:FT};function NT(e){const{imageUrl:t,firstName:n,lastName:r,hasBorder:o=!0,size:a=32}=e,i=(n.charAt(0)+r.charAt(0)).toUpperCase();return f.jsxs(RT,{className:U(Wu.root,o&&Wu.border),style:{width:a,height:a},children:[f.jsx(PT,{src:t,className:Wu.image}),f.jsx(BT,{delayMs:600,children:f.jsx(Q,{color:"grey11",variant:"smallBold",children:i})})]})}const LT="_root_1mjw6_1 _variant-normal_17xe9_12 _base_17xe9_8",jT="_selected_1mjw6_24",zT="_disablePointerEvents_1mjw6_138",VT="_enablePointerEvents_1mjw6_142",HT="_editable_1mjw6_146",or={root:LT,"color-grey":"_color-grey_1mjw6_14",selected:jT,"color-green":"_color-green_1mjw6_31","color-amber":"_color-amber_1mjw6_48","color-purple":"_color-purple_1mjw6_65","color-tomato":"_color-tomato_1mjw6_82","color-indigo":"_color-indigo_1mjw6_99","size-large":"_size-large_1mjw6_116","size-medium":"_size-medium_1mjw6_120","size-small":"_size-small_1mjw6_124","width-150":"_width-150_1mjw6_130","width-250":"_width-250_1mjw6_134",disablePointerEvents:zT,enablePointerEvents:VT,editable:HT},Dt=C.forwardRef(function(t,n){const{title:r,color:o="grey",size:a="large",maxWidth:i,icon:l,selected:s=!1,sx:c,onClick:u,onClose:d,onMouseEnter:h,onMouseLeave:p,onEdit:m,...g}=t,b=!!m,y=!!u||b,x=U(or.root,or[`color-${o}`],or[`size-${a}`],i&&or[`width-${i}`],!y&&or.disablePointerEvents,s&&or.selected,b&&or.editable),v=C.useRef(null),[w,S]=C.useState(!1);async function _(){var R;if(!m)return;const E=((R=v.current)==null?void 0:R.innerText)||"";E!==r&&E.trim()!==""&&await m(E),S($=>!$)}function M(E){if(E.stopPropagation(),E.code==="Enter"&&b){_();return}(E.code==="Enter"||E.code==="Space")&&(u==null||u())}const D=typeof r=="string"?f.jsx(Q,{variant:s?"smallBold":"small",color:`${o}11`,noWrap:!0,children:r}):r;return C.createElement("div",{...g,key:String(w),contentEditable:b,suppressContentEditableWarning:!0,onBlur:_,role:"button",tabIndex:y?0:-1,className:x,style:c,onClick:u,onKeyDown:M,"data-marker":"badge",ref:ge.composeRefs(n,v),onMouseEnter:h,onMouseLeave:p},l&&f.jsx(de,{name:l,size:"extraSmall",color:`${o}11`}),D,b&&f.jsx(de,{name:"edit",size:"extraSmall",color:`${o}11`}),d&&f.jsx("div",{className:or.enablePointerEvents,children:f.jsx(rt,{icon:"close",size:"small",color:o,hasPadding:!1,onClick:d})}))}),WT="_root_enlhf_1",KT="_fadeIn_enlhf_1",UT="_icon_enlhf_20",ZT="_iconChildren_enlhf_29",GT="_image_enlhf_73",qT="_imageFixedHeight_enlhf_77",so={root:WT,fadeIn:KT,"variant-vertical":"_variant-vertical_enlhf_10","variant-horizontal":"_variant-horizontal_enlhf_15",icon:UT,iconChildren:ZT,"icon-small":"_icon-small_enlhf_33","icon-medium":"_icon-medium_enlhf_43","icon-large":"_icon-large_enlhf_53","icon-xlarge":"_icon-xlarge_enlhf_63",image:GT,imageFixedHeight:qT};function e5(e){const{sx:t,variant:n="vertical",...r}=e;return f.jsx("article",{...r,style:t,className:U(so.root,so[`variant-${n}`])})}function YT(e){const{name:t,lineColor:n="grey11",backgroundColor:r="grey7",borderColor:o,borderStyle:a,size:i="medium",...l}=e;return f.jsx("div",{...l,className:U(so.icon,so[`icon-${i}`]),style:{backgroundColor:_e.color[r],borderColor:o?_e.color[o]:void 0,borderStyle:a,borderWidth:1},children:f.jsx(de,{className:so.iconChildren,color:n,name:t})})}const JT={regular:"normal",big:"h2"};function t5(e){const{size:t="regular",...n}=e;return f.jsx(Q,{...n,noSelect:!0,align:"center",variant:JT[t]})}function n5(e){const{width:t}=e;return f.jsx(Q,{...e,noSelect:!0,align:"center",variant:"normal",color:"grey11",sx:{width:t}})}function r5(e){const{fixedHeight:t=!0,...n}=e;return f.jsx("div",{...n,className:U(so.image,t&&so.imageFixedHeight)})}function o5(e){return f.jsx(_n,{...e,size:"large",color:"grey"})}const XT="_loading_12t51_1",QT="_loaded_12t51_5",eR="_noSelect_12t51_17",Ya={loading:XT,loaded:QT,"fade-in":"_fade-in_12t51_1","background-transparent":"_background-transparent_12t51_12",noSelect:eR,"sizing-contain":"_sizing-contain_12t51_21","sizing-cover":"_sizing-cover_12t51_27","border-radius-4":"_border-radius-4_12t51_33","border-radius-8":"_border-radius-8_12t51_37"};function sl(e){const{["aria-label"]:t,src:n,alt:r,onLoad:o,sizing:a="none",borderRadius:i=0,boxShadow:l,animateOnLoad:s=!0,sx:c,background:u,...d}=e,[h,p]=C.useState(!1),m=tR({animateOnLoad:s,isLoaded:h});function g(){p(!0),o==null||o()}return f.jsx("img",{...d,"aria-label":t,className:U(Ya.noSelect,a!=="none"&&Ya[`sizing-${a}`],i!==0&&Ya[`border-radius-${i}`],m&&Ya[m],u&&Ya[`background-${u}`]),style:{...c,boxShadow:l&&_e.boxShadow[l]},src:n,alt:r,onLoad:g})}function tR(e){const{animateOnLoad:t,isLoaded:n}=e;if(t)return n?"loaded":"loading"}function Up(e){const{src:t,...n}=e;return vo.useRequest(a5,[t]),f.jsx(sl,{...n,src:t})}function a5(e){const t=XS.delay(1e4).then(()=>1),n=new Promise(r=>{const o=new Image;o.onload=()=>r(1),o.src=e});return Promise.race([t,n])}vo.cache.registerFetcherConfig(a5,{cacheCapacity:1e4});const nR="_skeleton_1rejs_1",rR="_pulse_1rejs_1",oR="_hasChildren_1rejs_6",Wl={skeleton:nR,pulse:rR,hasChildren:oR,"color-grey1":"_color-grey1_1rejs_15","color-grey5":"_color-grey5_1rejs_18","radius-0":"_radius-0_1rejs_22","radius-4":"_radius-4_1rejs_25","radius-6":"_radius-6_1rejs_28","radius-12":"_radius-12_1rejs_31","radius-100%":"_radius-100%_1rejs_34"};function Ca(e){const{height:t,component:n="span",width:r,color:o="grey5",borderRadius:a=6,children:i,sx:l}=e;return C.createElement(n,{className:U(Wl.skeleton,i&&Wl.hasChildren,Wl[`radius-${a}`],Wl[`color-${o}`]),style:{...l,width:r,height:t}},i)}const aR="_card_1vn0i_1",iR="_interactive_1vn0i_9",lR="_closeable_1vn0i_23",sR="_closeButton_1vn0i_27",cR="_footer_1vn0i_62",uR="_rotate_1vn0i_1",dR="_pulse_1vn0i_1",fR="_paddingInline_1vn0i_135",hR="_header_1vn0i_140 _paddingInline_1vn0i_135",pR="_content_1vn0i_147 _paddingInline_1vn0i_135",mR="_imageContainer_1vn0i_154",gR="_footerPadding_1vn0i_165 _paddingInline_1vn0i_135",gt={card:aR,interactive:iR,closeable:lR,closeButton:sR,"paddingBlock-0":"_paddingBlock-0_1vn0i_40","paddingBlock-8":"_paddingBlock-8_1vn0i_44","paddingBlock-12":"_paddingBlock-12_1vn0i_48","paddingBlock-16":"_paddingBlock-16_1vn0i_52","paddingBlock-28":"_paddingBlock-28_1vn0i_57",footer:cR,"color-grey1":"_color-grey1_1vn0i_66","color-grey2":"_color-grey2_1vn0i_70","color-grey3":"_color-grey3_1vn0i_74","color-indigo2":"_color-indigo2_1vn0i_78","color-purple1":"_color-purple1_1vn0i_82","variant-animated":"_variant-animated_1vn0i_87",rotate:uR,pulse:dR,"variant-animated-light":"_variant-animated-light_1vn0i_95 _variant-animated_1vn0i_87","variant-animated-dark":"_variant-animated-dark_1vn0i_104 _variant-animated_1vn0i_87","variant-dashed":"_variant-dashed_1vn0i_113","variant-elevated":"_variant-elevated_1vn0i_116","variant-outlined":"_variant-outlined_1vn0i_120","variant-selected":"_variant-selected_1vn0i_123","radius-4":"_radius-4_1vn0i_128","radius-6":"_radius-6_1vn0i_131",paddingInline:fR,header:hR,content:pR,imageContainer:mR,footerPadding:gR,"footerSeparator-solid":"_footerSeparator-solid_1vn0i_170","footerSeparator-dashed":"_footerSeparator-dashed_1vn0i_174"},bR=C.forwardRef(function(t,n){const{color:r="grey1",variant:o="elevated",radius:a=6,paddingBlock:i=8,paddingInline:l=16,padding:s,sx:c,children:u,onSelect:d,onClose:h}=t,p=!!d,m=!!h,g=s??i,b=s??l;function y(v){(v.code==="Enter"||v.code==="Space")&&(d==null||d(v))}function x(v){d==null||d(v)}return f.jsxs("div",{ref:n,role:p?"button":"article",tabIndex:p?0:-1,className:U(gt.card,gt[`variant-${o}`],gt[`color-${r}`],gt[`radius-${a}`],gt[`paddingBlock-${g}`],p&>.interactive,m&>.closeable),style:{...c,"--Card-padding-inline":`${b}px`},onKeyDown:y,onClick:x,children:[m&&f.jsx(rt,{icon:"close",size:"small",variant:"solid",radius:"full",color:"darkGrey",className:gt.closeButton,onClick:h}),u]})});function vR(e){const{children:t,sx:n}=e;return f.jsx("header",{className:gt.header,style:n,children:t})}function yR(e){const{children:t,variant:n,sx:r}=e;return f.jsx(Q,{...e,noSelect:!0,sx:r,variant:n,children:t})}function xR(e){const{sx:t,children:n}=e;return f.jsx(_n,{sx:t,size:"small",color:"grey",children:n})}function i5(e){const{sx:t,children:n,padding:r}=e;return f.jsx("section",{className:gt.content,style:{...t,padding:r},children:n})}function CR(e){const{height:t,...n}=e;return f.jsx("div",{className:gt.imageContainer,style:{height:t},children:f.jsx(C.Suspense,{fallback:f.jsx(Ca,{width:"100%",height:"100%",sx:{borderRadius:0}}),children:f.jsx(Up,{sizing:"cover",...n})})})}function wR(e){const{sx:t,hasPadding:n=!0,children:r,separator:o="solid"}=e;return f.jsx("footer",{className:U(gt.footer,n&>.footerPadding,o!=="none"&>[`footerSeparator-${o}`]),style:t,children:r})}const kR="_previewCard_f5ski_1",SR="_selected_f5ski_12",DR="_compact_f5ski_17",_R="_large_f5ski_22",$R="_clickable_f5ski_26",ER="_thumbnail_f5ski_39",MR="_framed_f5ski_45",AR="_content_f5ski_65",vn={previewCard:kR,selected:SR,compact:DR,large:_R,clickable:$R,thumbnail:ER,framed:MR,"thumbnail-1-1":"_thumbnail-1-1_f5ski_55","thumbnail-16-9":"_thumbnail-16-9_f5ski_60",content:AR};function TR(e){const{children:t,selected:n=!1,variant:r="compact",onClick:o}=e,a=!!o,i=a?{role:"button",tabIndex:0,onClick:o,onKeyDown:l}:{};function l(s){(s.code==="Enter"||s.code==="Space")&&(o==null||o())}return f.jsx("div",{className:U(vn.previewCard,n&&vn.selected,r==="compact"&&vn.compact,r==="large"&&vn.large,a&&vn.clickable),role:"note",...i,children:t})}function RR(e){const{src:t,aspectRatio:n,framed:r,width:o,height:a,alt:i}=e;return f.jsx("div",{className:U(vn.thumbnail,r&&vn.framed,n==="1:1"&&vn["thumbnail-1-1"],n==="16:9"&&vn["thumbnail-16-9"]),style:{width:o,height:a},children:f.jsx(sl,{src:t,alt:i,sizing:"cover",animateOnLoad:!1})})}function PR(e){const{children:t}=e;return f.jsx("div",{className:vn.content,children:t})}const BR="_checkerboard_19dw7_1",IR={checkerboard:BR};function Vc(e){const{children:t}=e;return f.jsx("div",{className:IR.checkerboard,children:t})}const OR="_root_1yqsh_1",FR="_button_1yqsh_7",NR="_buttonIcon_1yqsh_47",ks={root:OR,button:FR,"fade-in":"_fade-in_1yqsh_1","buttonSize-small":"_buttonSize-small_1yqsh_37","buttonSize-medium":"_buttonSize-medium_1yqsh_42",buttonIcon:NR};function LR(e){const{items:t,children:n,getItemSource:r,page:o,buttonSize:a="medium",renderPrevTooltip:i,renderNextTooltip:l,onPageChange:s,...c}=e,u=t[o],d=C.useMemo(()=>t.map(r),[t,r]),[h,p]=zR(d),[m,g]=C.useState(!1);C.useEffect(()=>jR(d),[d]);function b(){p("prev"),s==null||s(o===0?t.length-1:o-1)}function y(){p("next"),s==null||s(o===t.length-1?0:o+1)}return f.jsx(Vc,{children:f.jsx(l5.Provider,{value:{direction:h},children:f.jsxs("div",{...c,className:U(ks.root),onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:[u?n(u,o):null,m&&t.length>1&&f.jsxs(f.Fragment,{children:[f.jsx(Ig,{sx:{left:a==="small"?8:16},iconName:"arrowBack",size:a,renderTooltip:i,onClick:b}),f.jsx(Ig,{sx:{right:a==="small"?8:16},size:a,iconName:"arrowForward",renderTooltip:l,onClick:y})]})]})})})}function jR(e){e.filter(Sp.isDefined).forEach(t=>new Image().src=t)}function zR(e){const t=C.useRef("idle"),n=ge.useForceUpdate(),r=e.join(`
|
|
322
322
|
`),o=C.useRef(r);function a(i){t.current=i,n()}return o.current!==r&&(o.current=r,t.current="idle"),[t.current,a]}function Ig(e){const{sx:t,iconName:n,size:r,renderTooltip:o=i=>i,...a}=e;return f.jsx(f.Fragment,{children:o(f.jsx("button",{...a,className:U(ks.button,ks[`buttonSize-${r}`]),style:t,children:f.jsx(de,{className:ks.buttonIcon,name:n,size:r})}))})}const l5=C.createContext(null);function VR(){const e=C.useContext(l5);if(!e)throw new Error("useCarousel must be used within a CarouselContext provider");return e}const HR="_root_13nxx_1",WR="_loading_13nxx_9",KR="_loaded_13nxx_13",UR="_updating_13nxx_30",Ku={root:HR,loading:WR,loaded:KR,"direction-idle":"_direction-idle_13nxx_14","fade-in":"_fade-in_13nxx_1","direction-prev":"_direction-prev_13nxx_19","fade-in-right":"_fade-in-right_13nxx_1","direction-next":"_direction-next_13nxx_24","fade-in-left":"_fade-in-left_13nxx_1",updating:UR};function ZR(e){const{alt:t,isUpdating:n=!1,disableAnimation:r=!1,...o}=e,[a,i]=C.useState(!1),l=GR({isLoaded:a,isUpdating:n}),{direction:s}=VR();return f.jsx("div",{className:U(Ku.root,Ku[l],!r&&Ku[`direction-${s}`]),children:f.jsx(Up,{...o,alt:t,sizing:"contain",animateOnLoad:!1,onLoad:()=>i(!0)})})}function GR(e){const{isUpdating:t,isLoaded:n}=e;return t?"updating":n?"loaded":"loading"}function cl(e){const t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Zp="Checkbox",[qR,ose]=Le(Zp),[YR,JR]=qR(Zp),s5=k.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:l,value:s="on",onCheckedChange:c,...u}=e,[d,h]=k.useState(null),p=pe(t,v=>h(v)),m=k.useRef(!1),g=d?!!d.closest("form"):!0,[b=!1,y]=st({prop:o,defaultProp:a,onChange:c}),x=k.useRef(b);return k.useEffect(()=>{const v=d==null?void 0:d.form;if(v){const w=()=>y(x.current);return v.addEventListener("reset",w),()=>v.removeEventListener("reset",w)}},[d,y]),f.jsxs(YR,{scope:n,state:b,disabled:l,children:[f.jsx(ee.button,{type:"button",role:"checkbox","aria-checked":co(b)?"mixed":b,"aria-required":i,"data-state":d5(b),"data-disabled":l?"":void 0,disabled:l,value:s,...u,ref:p,onKeyDown:J(e.onKeyDown,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:J(e.onClick,v=>{y(w=>co(w)?!0:!w),g&&(m.current=v.isPropagationStopped(),m.current||v.stopPropagation())})}),g&&f.jsx(XR,{control:d,bubbles:!m.current,name:r,value:s,checked:b,required:i,disabled:l,style:{transform:"translateX(-100%)"}})]})});s5.displayName=Zp;var c5="CheckboxIndicator",u5=k.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=JR(c5,n);return f.jsx(ft,{present:r||co(a.state)||a.state===!0,children:f.jsx(ee.span,{"data-state":d5(a.state),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});u5.displayName=c5;var XR=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=k.useRef(null),i=cl(n),l=al(t);return k.useEffect(()=>{const s=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&d){const h=new Event("click",{bubbles:r});s.indeterminate=co(n),d.call(s,co(n)?!1:n),s.dispatchEvent(h)}},[i,n,r]),f.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:co(n)?!1:n,...o,tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function co(e){return e==="indeterminate"}function d5(e){return co(e)?"indeterminate":e?"checked":"unchecked"}var QR=s5,eP=u5;const tP="_root_m38nq_1",Og={root:tP,"variant-default":"_variant-default_m38nq_16","variant-error":"_variant-error_m38nq_36"};function f5(e){const{onCheckedChange:t,onClick:n,indeterminate:r,variant:o="default",...a}=e,[i,l]=C.useState(e.checked);function s(c){t==null||t(!i,c),l(!i),n==null||n(c)}return f.jsx(QR,{...a,className:U(Og.root,Og[`variant-${o}`]),onClick:s,children:f.jsx(eP,{asChild:!0,children:e.indeterminate?f.jsx(rP,{}):f.jsx(nP,{})})})}const nP=C.forwardRef(function(t,n){return f.jsx("svg",{...t,fill:"none",height:"18",ref:n,viewBox:"0 0 18 18",width:"18",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M5 9L8 12L13 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}),rP=C.forwardRef(function(t,n){return f.jsx("svg",{...t,fill:"none",height:"18",ref:n,viewBox:"0 0 18 18",width:"18",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M5 9H13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})});function oP(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function aP(e,t){if(e==null)return{};var n,r,o=oP(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Jf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function iP(e){if(Array.isArray(e))return Jf(e)}function lP(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sP(e,t){if(e){if(typeof e=="string")return Jf(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jf(e,t):void 0}}function cP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
323
323
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uP(e){return iP(e)||lP(e)||sP(e)||cP()}function Oi(e){"@babel/helpers - typeof";return Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oi(e)}function dP(e,t){if(Oi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Oi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fP(e){var t=dP(e,"string");return Oi(t)=="symbol"?t:t+""}function h5(e,t,n){return(t=fP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xf(){return Xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xf.apply(null,arguments)}function Fg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fg(Object(n),!0).forEach(function(r){h5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hP(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Uu={};function pP(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Uu[t]||(Uu[t]=hP(e)),Uu[t]}function mP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(a){return a!=="token"}),o=pP(r);return o.reduce(function(a,i){return ra(ra({},a),n[i])},t)}function Ng(e){return e.join(" ")}function gP(e,t){var n=0;return function(r){return n+=1,r.map(function(o,a){return p5({node:o,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(a)})})}}function p5(e){var t=e.node,n=e.stylesheet,r=e.style,o=r===void 0?{}:r,a=e.useInlineStyles,i=e.key,l=t.properties,s=t.type,c=t.tagName,u=t.value;if(s==="text")return u;if(c){var d=gP(n,a),h;if(!a)h=ra(ra({},l),{},{className:Ng(l.className)});else{var p=Object.keys(n).reduce(function(y,x){return x.split(".").forEach(function(v){y.includes(v)||y.push(v)}),y},[]),m=l.className&&l.className.includes("token")?["token"]:[],g=l.className&&m.concat(l.className.filter(function(y){return!p.includes(y)}));h=ra(ra({},l),{},{className:Ng(g)||void 0,style:mP(l.className,Object.assign({},l.style,o),n)})}var b=d(t.children);return C.createElement(c,Xf({key:i},h),b)}}const bP=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var vP=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Lg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(n),!0).forEach(function(r){h5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var yP=/\n/g;function xP(e){return e.match(yP)}function CP(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(o,a){var i=a+n;return C.createElement("span",{key:"line-".concat(a),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(i):r},"".concat(i,`
|
|
324
324
|
`))})}function wP(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,o=r===void 0?{float:"left",paddingRight:"10px"}:r,a=e.numberStyle,i=a===void 0?{}:a,l=e.startingLineNumber;return C.createElement("code",{style:Object.assign({},n,o)},CP({lines:t.replace(/\n$/,"").split(`
|
package/dist/index.es.js
CHANGED
|
@@ -5625,7 +5625,7 @@ const XT = "_root_1mjw6_1 _variant-normal_17xe9_12 _base_17xe9_8", QT = "_select
|
|
|
5625
5625
|
if (!m)
|
|
5626
5626
|
return;
|
|
5627
5627
|
const $ = ((T = v.current) == null ? void 0 : T.innerText) || "";
|
|
5628
|
-
$ !== r &&
|
|
5628
|
+
$ !== r && $.trim() !== "" && await m($), k((_) => !_);
|
|
5629
5629
|
}
|
|
5630
5630
|
function E($) {
|
|
5631
5631
|
if ($.stopPropagation(), $.code === "Enter" && b) {
|
package/package.json
CHANGED