@foxford/navigation-widget 0.3.2 → 0.4.0-beta-a09b3b0-20261201
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/{Dialog-C-NW4eic.js → Dialog-BaCZ_Hdy.js} +1 -1
- package/city-dialog-Z72KhG8w.js +92 -0
- package/index.d.ts +2 -1
- package/index.js +175 -173
- package/modal-D3wUhD3o.js +1 -0
- package/package.json +5 -5
- package/city-dialog-b8mRH_bW.js +0 -92
- package/modal-DCOotOLc.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h as Le,g as Ye,r as ge,u as g,v as D,ae as Fe,af as Ft,ag as It,i as ve,F as Ht,M as oe,s as j,l as Ue,a4 as Wt,ah as mt,ai as Ut,aj as N,w as qt,x as Bt,ak as re,E as K,k as Xe,I as $t,j as jt,q as yt,Q as Yt,K as bt,a3 as Xt,H as me,ab as Gt,G as ye,R as Kt}from"./index.js";const _e={capture:!0,passive:!1},wt=typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("scrollbar-gutter: stable");var vt;const xt=typeof window<"u"&&((vt=window.navigator)==null?void 0:vt.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window.navigator.userAgent.includes("Macintosh")&&window.navigator.maxTouchPoints>1),Ie=[];let G=null,pe=null,ae=null,ie=null;function Se(){return Number(document.documentElement.dataset.scrollLockCount||0)}function Oe(e){document.documentElement.dataset.scrollLockCount=e.toString()}function ze(e,r=!0,l=document.documentElement){r&&l.dataset.prevOverflow===void 0&&(l.dataset.prevOverflow=l.style.overflow||""),e&&(o=>{if(wt&&!xt)o.style.scrollbarGutter="stable";else{const i=getComputedStyle(o),p=(v=>{if(v===document.documentElement)return window.innerWidth-document.documentElement.clientWidth;const t=getComputedStyle(v),w=(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0),m=v.style.overflow;v.style.overflow="scroll";const u=v.offsetWidth-v.clientWidth-w;return v.style.overflow=m,u})(o);if(o.dataset.prevPaddingRight===void 0&&(o.dataset.prevPaddingRight=o.style.paddingRight||""),p>0){const v=parseFloat(i.paddingRight)||0;o.style.paddingRight=`${v+p}px`}}})(l),r&&(l.style.overflow="hidden")}function qe(e=document.documentElement){e.dataset.prevOverflow!==void 0&&(e.style.overflow=e.dataset.prevOverflow),e.dataset.prevPaddingRight!==void 0&&(e.style.paddingRight=e.dataset.prevPaddingRight),delete e.dataset.prevOverflow,delete e.dataset.prevPaddingRight,wt&&(e.style.scrollbarGutter="")}function Vt(){const e=Se();if(e<=0)return;const r=e-1;Oe(r),r===0&&qe()}function Ge(e){const r=getComputedStyle(e);return(r.overflowY==="auto"||r.overflowY==="scroll")&&e.scrollHeight>e.clientHeight}function Zt(e,r){let l=e;for(;l&&l!==r.parentElement;){if(Ge(l))return l;l=l.parentElement}return Ge(r)?r:null}function Jt(){Ie.pop();const e=Se(),r=Math.max(0,e-1);Oe(r),r===0&&(qe(),ae&&(document.removeEventListener("touchstart",ae,_e),ae=null),ie&&(document.removeEventListener("touchmove",ie,_e),ie=null),G=null,pe=null)}function Ct(e){const{locked:r,iosAllowedScrollContainer:l=document.documentElement,target:o,reserveScrollbarGutter:i=!1}=e,p=o===void 0||o===document.documentElement||o===document.body;Le(()=>{if(!o||p)return;const v=Ye(o)[0];return v?((t,w,m)=>(ze(m,w,t),()=>qe(t)))(v,r,i):void 0},[o,r,p,i]),Le(()=>{if(r&&p){if(xt){const v=Ye(l)[0];return((t,w)=>{w&&Ie.push(w);const m=Se();return m===0&&(ze(t),ie||ae||(ae=u=>{var d,a;const s=u.target;if(!(s instanceof HTMLElement))return G=null,void(pe=null);pe=(a=(d=u.touches[0])==null?void 0:d.clientY)!=null?a:null,G=null;for(const f of Ie)if(f.contains(s)){const C=Zt(s,f);if(C){G=C;break}}},ie=u=>{const s=u.touches[0];if(!s||u.touches.length===2||(a=>{var C,E,T;if(!(a&&a instanceof HTMLElement))return!1;const f=(E=(C=a.ownerDocument)==null?void 0:C.defaultView)==null?void 0:E.getSelection();return!(!f||f.isCollapsed||!f.containsNode(a,!0))||"selectionStart"in a&&"selectionEnd"in a&&Number(a.selectionStart)<Number(a.selectionEnd)&&((T=a.ownerDocument)==null?void 0:T.activeElement)===a})(u.target)||!u.cancelable)return;if(!G||pe===null)return void u.preventDefault();const d=s.clientY-Number(pe);(G.scrollTop<=0&&d>0||G.scrollTop+G.clientHeight>=G.scrollHeight&&d<0)&&u.preventDefault()},document.addEventListener("touchstart",ae,_e),document.addEventListener("touchmove",ie,_e))),Oe(m+1),Jt})(i,v)}return(v=>{const t=Se();return t===0&&ze(v),Oe(t+1),Vt})(i)}},[l,p,r,i])}const Ke=ge((e,r)=>g("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentcolor",width:"1em",height:"1em",ref:r,...e,children:g("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})})),Qt=/^\d+:\d+$/,eo=e=>Qt.test(e)?`0 0 ${e.replace(":"," ")}`:"0 0 1 1",He=D.svg.withConfig({shouldForwardProp:e=>!["ratio"].includes(e)}).attrs(e=>({xmlns:"http://www.w3.org/2000/svg",viewBox:eo(e.ratio)})).withConfig({displayName:"AspectRatio__Placeholder",componentId:"ui__sc-1w8jdyj-0"})(["box-sizing:border-box;display:block;"]),to=D.div.withConfig({shouldForwardProp:e=>!["width","height"].includes(e)}).withConfig({displayName:"AspectRatio__Root",componentId:"ui__sc-1w8jdyj-1"})(["box-sizing:border-box;position:relative;"," & > :not(","){position:absolute !important;top:0 !important;left:0 !important;width:100% !important;height:100% !important;box-sizing:border-box !important;}"],e=>`
|
|
2
2
|
width: ${typeof e.width=="number"?`${e.width}px`:typeof e.width=="string"?e.width:"min-content"};
|
|
3
3
|
height: ${typeof e.height=="number"?`${e.height}px`:typeof e.height=="string"?e.height:"min-content"};
|
|
4
4
|
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import{h as ze,g as Gt,i as L,y as qt,q as Re,j as gr,k as j,l as Cr,m as wr,n as kt,$ as Vt,o as je,L as zr,p as rr,r as We,F as Zt,s as Yt,t as Se,v as re,w as ir,x as Ar,z as D,B as Kt,u as C,E as Ze,G as qr,H as tr,J as xr,K as Hr,X as Ot,M as Vr,_ as Jt,Q as Qt,R as $r,U as eo,V as fr,W as Et,Y as ro,Z as to,a0 as oo,a1 as no,a2 as io,a3 as ao,a4 as so,a5 as St,a6 as lo,a7 as zt,a8 as co,a9 as Zr}from"./index.js";import{C as uo,D as po}from"./Dialog-BaCZ_Hdy.js";const fo=(e,r,t)=>{const{enabled:o=!0,event:n="click",once:s,passive:c,signal:a,capture:i}=t!=null?t:{};ze(()=>{const d={once:s,passive:c,signal:a,capture:i},l=p=>{const u=Gt(e),f=p.target;f&&f.isConnected&&u.length>0&&u.every(b=>!b.contains(f))&&r(p)};return o&&document.addEventListener(n,l,d),()=>{document.removeEventListener(n,l,d)}},[e,r,o,n,s,c,a,i])},mo=({target:e,scrollThrottleMS:r=0,scrollEndDebounceMS:t=200,onScroll:o,onScrollStart:n,onScrollEnd:s,listenerOptions:c})=>{const a=L(null),i=L(null),d=L(!1);ze(()=>{const l=(u=>{let f=null;const b=document;return u?(u instanceof HTMLElement?f=u:typeof u=="string"?f=document.querySelector(u):u.current instanceof HTMLElement&&(f=u.current),f!=null?f:b):b})(e),p=u=>{n&&((f,b)=>{d.current||(b(f),d.current=!0)})(u,n),o&&((f,b)=>{r!==0?a.current||(a.current=setTimeout(()=>{a.current=null},r),b(f)):b(f)})(u,o),(n||s)&&(f=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{var b;i.current=null,b=f,n&&(d.current=!1),s&&s(b)},r+t)})(u)};return l.addEventListener("scroll",p,c),()=>{l.removeEventListener("scroll",p,c)}},[e,r,t,o,n,s,c])};var Q="top",se="bottom",le="right",ee="left",jr="auto",ar=[Q,se,le,ee],Be="start",or="end",bo="clippingParents",$t="viewport",Ye="popper",ho="reference",Yr=ar.reduce(function(e,r){return e.concat([r+"-"+Be,r+"-"+or])},[]),Rt=[].concat(ar,[jr]).reduce(function(e,r){return e.concat([r,r+"-"+Be,r+"-"+or])},[]),go="beforeRead",vo="read",yo="afterRead",Co="beforeMain",wo="main",xo="afterMain",ko="beforeWrite",Oo="write",Eo="afterWrite",So=[go,vo,yo,Co,wo,xo,ko,Oo,Eo];function ve(e){return e?(e.nodeName||"").toLowerCase():null}function oe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function Pe(e){var r=oe(e).Element;return e instanceof r||e instanceof Element}function ae(e){var r=oe(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function Br(e){if(typeof ShadowRoot>"u")return!1;var r=oe(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function zo(e){var r=e.state;Object.keys(r.elements).forEach(function(t){var o=r.styles[t]||{},n=r.attributes[t]||{},s=r.elements[t];!ae(s)||!ve(s)||(Object.assign(s.style,o),Object.keys(n).forEach(function(c){var a=n[c];a===!1?s.removeAttribute(c):s.setAttribute(c,a===!0?"":a)}))})}function $o(e){var r=e.state,t={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,t.popper),r.styles=t,r.elements.arrow&&Object.assign(r.elements.arrow.style,t.arrow),function(){Object.keys(r.elements).forEach(function(o){var n=r.elements[o],s=r.attributes[o]||{},c=Object.keys(r.styles.hasOwnProperty(o)?r.styles[o]:t[o]),a=c.reduce(function(i,d){return i[d]="",i},{});!ae(n)||!ve(n)||(Object.assign(n.style,a),Object.keys(s).forEach(function(i){n.removeAttribute(i)}))})}}const Ro={name:"applyStyles",enabled:!0,phase:"write",fn:zo,effect:$o,requires:["computeStyles"]};function ge(e){return e.split("-")[0]}var Le=Math.max,kr=Math.min,_e=Math.round;function Dr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function Tt(){return!/^((?!chrome|android).)*safari/i.test(Dr())}function Me(e,r,t){r===void 0&&(r=!1),t===void 0&&(t=!1);var o=e.getBoundingClientRect(),n=1,s=1;r&&ae(e)&&(n=e.offsetWidth>0&&_e(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&_e(o.height)/e.offsetHeight||1);var c=Pe(e)?oe(e):window,a=c.visualViewport,i=!Tt()&&t,d=(o.left+(i&&a?a.offsetLeft:0))/n,l=(o.top+(i&&a?a.offsetTop:0))/s,p=o.width/n,u=o.height/s;return{width:p,height:u,top:l,right:d+p,bottom:l+u,left:d,x:d,y:l}}function _r(e){var r=Me(e),t=e.offsetWidth,o=e.offsetHeight;return Math.abs(r.width-t)<=1&&(t=r.width),Math.abs(r.height-o)<=1&&(o=r.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:o}}function Nt(e,r){var t=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(t&&Br(t)){var o=r;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function we(e){return oe(e).getComputedStyle(e)}function To(e){return["table","td","th"].indexOf(ve(e))>=0}function $e(e){return((Pe(e)?e.ownerDocument:e.document)||window.document).documentElement}function Or(e){return ve(e)==="html"?e:e.assignedSlot||e.parentNode||(Br(e)?e.host:null)||$e(e)}function Kr(e){return!ae(e)||we(e).position==="fixed"?null:e.offsetParent}function No(e){var r=/firefox/i.test(Dr()),t=/Trident/i.test(Dr());if(t&&ae(e)){var o=we(e);if(o.position==="fixed")return null}var n=Or(e);for(Br(n)&&(n=n.host);ae(n)&&["html","body"].indexOf(ve(n))<0;){var s=we(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||r&&s.willChange==="filter"||r&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function sr(e){for(var r=oe(e),t=Kr(e);t&&To(t)&&we(t).position==="static";)t=Kr(t);return t&&(ve(t)==="html"||ve(t)==="body"&&we(t).position==="static")?r:t||No(e)||r}function Mr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qe(e,r,t){return Le(e,kr(r,t))}function Lo(e,r,t){var o=Qe(e,r,t);return o>t?t:o}function Lt(){return{top:0,right:0,bottom:0,left:0}}function Pt(e){return Object.assign({},Lt(),e)}function Dt(e,r){return r.reduce(function(t,o){return t[o]=e,t},{})}var Po=function(r,t){return r=typeof r=="function"?r(Object.assign({},t.rects,{placement:t.placement})):r,Pt(typeof r!="number"?r:Dt(r,ar))};function Do(e){var r,t=e.state,o=e.name,n=e.options,s=t.elements.arrow,c=t.modifiersData.popperOffsets,a=ge(t.placement),i=Mr(a),d=[ee,le].indexOf(a)>=0,l=d?"height":"width";if(!(!s||!c)){var p=Po(n.padding,t),u=_r(s),f=i==="y"?Q:ee,b=i==="y"?se:le,m=t.rects.reference[l]+t.rects.reference[i]-c[i]-t.rects.popper[l],w=c[i]-t.rects.reference[i],y=sr(s),E=y?i==="y"?y.clientHeight||0:y.clientWidth||0:0,S=m/2-w/2,g=p[f],x=E-u[l]-p[b],$=E/2-u[l]/2+S,z=Qe(g,$,x),T=i;t.modifiersData[o]=(r={},r[T]=z,r.centerOffset=z-$,r)}}function Io(e){var r=e.state,t=e.options,o=t.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=r.elements.popper.querySelector(n),!n)||Nt(r.elements.popper,n)&&(r.elements.arrow=n))}const Ao={name:"arrow",enabled:!0,phase:"main",fn:Do,effect:Io,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fe(e){return e.split("-")[1]}var Ho={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jo(e,r){var t=e.x,o=e.y,n=r.devicePixelRatio||1;return{x:_e(t*n)/n||0,y:_e(o*n)/n||0}}function Jr(e){var r,t=e.popper,o=e.popperRect,n=e.placement,s=e.variation,c=e.offsets,a=e.position,i=e.gpuAcceleration,d=e.adaptive,l=e.roundOffsets,p=e.isFixed,u=c.x,f=u===void 0?0:u,b=c.y,m=b===void 0?0:b,w=typeof l=="function"?l({x:f,y:m}):{x:f,y:m};f=w.x,m=w.y;var y=c.hasOwnProperty("x"),E=c.hasOwnProperty("y"),S=ee,g=Q,x=window;if(d){var $=sr(t),z="clientHeight",T="clientWidth";if($===oe(t)&&($=$e(t),we($).position!=="static"&&a==="absolute"&&(z="scrollHeight",T="scrollWidth")),$=$,n===Q||(n===ee||n===le)&&s===or){g=se;var k=p&&$===x&&x.visualViewport?x.visualViewport.height:$[z];m-=k-o.height,m*=i?1:-1}if(n===ee||(n===Q||n===se)&&s===or){S=le;var R=p&&$===x&&x.visualViewport?x.visualViewport.width:$[T];f-=R-o.width,f*=i?1:-1}}var I=Object.assign({position:a},d&&Ho),H=l===!0?jo({x:f,y:m},oe(t)):{x:f,y:m};if(f=H.x,m=H.y,i){var A;return Object.assign({},I,(A={},A[g]=E?"0":"",A[S]=y?"0":"",A.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",A))}return Object.assign({},I,(r={},r[g]=E?m+"px":"",r[S]=y?f+"px":"",r.transform="",r))}function Bo(e){var r=e.state,t=e.options,o=t.gpuAcceleration,n=o===void 0?!0:o,s=t.adaptive,c=s===void 0?!0:s,a=t.roundOffsets,i=a===void 0?!0:a,d={placement:ge(r.placement),variation:Fe(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:n,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,Jr(Object.assign({},d,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:c,roundOffsets:i})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,Jr(Object.assign({},d,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const _o={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Bo,data:{}};var mr={passive:!0};function Mo(e){var r=e.state,t=e.instance,o=e.options,n=o.scroll,s=n===void 0?!0:n,c=o.resize,a=c===void 0?!0:c,i=oe(r.elements.popper),d=[].concat(r.scrollParents.reference,r.scrollParents.popper);return s&&d.forEach(function(l){l.addEventListener("scroll",t.update,mr)}),a&&i.addEventListener("resize",t.update,mr),function(){s&&d.forEach(function(l){l.removeEventListener("scroll",t.update,mr)}),a&&i.removeEventListener("resize",t.update,mr)}}const Fo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mo,data:{}};var Wo={left:"right",right:"left",bottom:"top",top:"bottom"};function vr(e){return e.replace(/left|right|bottom|top/g,function(r){return Wo[r]})}var Xo={start:"end",end:"start"};function Qr(e){return e.replace(/start|end/g,function(r){return Xo[r]})}function Fr(e){var r=oe(e),t=r.pageXOffset,o=r.pageYOffset;return{scrollLeft:t,scrollTop:o}}function Wr(e){return Me($e(e)).left+Fr(e).scrollLeft}function Uo(e,r){var t=oe(e),o=$e(e),n=t.visualViewport,s=o.clientWidth,c=o.clientHeight,a=0,i=0;if(n){s=n.width,c=n.height;var d=Tt();(d||!d&&r==="fixed")&&(a=n.offsetLeft,i=n.offsetTop)}return{width:s,height:c,x:a+Wr(e),y:i}}function Go(e){var r,t=$e(e),o=Fr(e),n=(r=e.ownerDocument)==null?void 0:r.body,s=Le(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=Le(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-o.scrollLeft+Wr(e),i=-o.scrollTop;return we(n||t).direction==="rtl"&&(a+=Le(t.clientWidth,n?n.clientWidth:0)-s),{width:s,height:c,x:a,y:i}}function Xr(e){var r=we(e),t=r.overflow,o=r.overflowX,n=r.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+o)}function It(e){return["html","body","#document"].indexOf(ve(e))>=0?e.ownerDocument.body:ae(e)&&Xr(e)?e:It(Or(e))}function er(e,r){var t;r===void 0&&(r=[]);var o=It(e),n=o===((t=e.ownerDocument)==null?void 0:t.body),s=oe(o),c=n?[s].concat(s.visualViewport||[],Xr(o)?o:[]):o,a=r.concat(c);return n?a:a.concat(er(Or(c)))}function Ir(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qo(e,r){var t=Me(e,!1,r==="fixed");return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function et(e,r,t){return r===$t?Ir(Uo(e,t)):Pe(r)?qo(r,t):Ir(Go($e(e)))}function Vo(e){var r=er(Or(e)),t=["absolute","fixed"].indexOf(we(e).position)>=0,o=t&&ae(e)?sr(e):e;return Pe(o)?r.filter(function(n){return Pe(n)&&Nt(n,o)&&ve(n)!=="body"}):[]}function Zo(e,r,t,o){var n=r==="clippingParents"?Vo(e):[].concat(r),s=[].concat(n,[t]),c=s[0],a=s.reduce(function(i,d){var l=et(e,d,o);return i.top=Le(l.top,i.top),i.right=kr(l.right,i.right),i.bottom=kr(l.bottom,i.bottom),i.left=Le(l.left,i.left),i},et(e,c,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function At(e){var r=e.reference,t=e.element,o=e.placement,n=o?ge(o):null,s=o?Fe(o):null,c=r.x+r.width/2-t.width/2,a=r.y+r.height/2-t.height/2,i;switch(n){case Q:i={x:c,y:r.y-t.height};break;case se:i={x:c,y:r.y+r.height};break;case le:i={x:r.x+r.width,y:a};break;case ee:i={x:r.x-t.width,y:a};break;default:i={x:r.x,y:r.y}}var d=n?Mr(n):null;if(d!=null){var l=d==="y"?"height":"width";switch(s){case Be:i[d]=i[d]-(r[l]/2-t[l]/2);break;case or:i[d]=i[d]+(r[l]/2-t[l]/2);break}}return i}function nr(e,r){r===void 0&&(r={});var t=r,o=t.placement,n=o===void 0?e.placement:o,s=t.strategy,c=s===void 0?e.strategy:s,a=t.boundary,i=a===void 0?bo:a,d=t.rootBoundary,l=d===void 0?$t:d,p=t.elementContext,u=p===void 0?Ye:p,f=t.altBoundary,b=f===void 0?!1:f,m=t.padding,w=m===void 0?0:m,y=Pt(typeof w!="number"?w:Dt(w,ar)),E=u===Ye?ho:Ye,S=e.rects.popper,g=e.elements[b?E:u],x=Zo(Pe(g)?g:g.contextElement||$e(e.elements.popper),i,l,c),$=Me(e.elements.reference),z=At({reference:$,element:S,placement:n}),T=Ir(Object.assign({},S,z)),k=u===Ye?T:$,R={top:x.top-k.top+y.top,bottom:k.bottom-x.bottom+y.bottom,left:x.left-k.left+y.left,right:k.right-x.right+y.right},I=e.modifiersData.offset;if(u===Ye&&I){var H=I[n];Object.keys(R).forEach(function(A){var V=[le,se].indexOf(A)>=0?1:-1,G=[Q,se].indexOf(A)>=0?"y":"x";R[A]+=H[G]*V})}return R}function Yo(e,r){r===void 0&&(r={});var t=r,o=t.placement,n=t.boundary,s=t.rootBoundary,c=t.padding,a=t.flipVariations,i=t.allowedAutoPlacements,d=i===void 0?Rt:i,l=Fe(o),p=l?a?Yr:Yr.filter(function(b){return Fe(b)===l}):ar,u=p.filter(function(b){return d.indexOf(b)>=0});u.length===0&&(u=p);var f=u.reduce(function(b,m){return b[m]=nr(e,{placement:m,boundary:n,rootBoundary:s,padding:c})[ge(m)],b},{});return Object.keys(f).sort(function(b,m){return f[b]-f[m]})}function Ko(e){if(ge(e)===jr)return[];var r=vr(e);return[Qr(e),r,Qr(r)]}function Jo(e){var r=e.state,t=e.options,o=e.name;if(!r.modifiersData[o]._skip){for(var n=t.mainAxis,s=n===void 0?!0:n,c=t.altAxis,a=c===void 0?!0:c,i=t.fallbackPlacements,d=t.padding,l=t.boundary,p=t.rootBoundary,u=t.altBoundary,f=t.flipVariations,b=f===void 0?!0:f,m=t.allowedAutoPlacements,w=r.options.placement,y=ge(w),E=y===w,S=i||(E||!b?[vr(w)]:Ko(w)),g=[w].concat(S).reduce(function(W,M){return W.concat(ge(M)===jr?Yo(r,{placement:M,boundary:l,rootBoundary:p,padding:d,flipVariations:b,allowedAutoPlacements:m}):M)},[]),x=r.rects.reference,$=r.rects.popper,z=new Map,T=!0,k=g[0],R=0;R<g.length;R++){var I=g[R],H=ge(I),A=Fe(I)===Be,V=[Q,se].indexOf(H)>=0,G=V?"width":"height",_=nr(r,{placement:I,boundary:l,rootBoundary:p,altBoundary:u,padding:d}),q=V?A?le:ee:A?se:Q;x[G]>$[G]&&(q=vr(q));var P=vr(q),F=[];if(s&&F.push(_[H]<=0),a&&F.push(_[q]<=0,_[P]<=0),F.every(function(W){return W})){k=I,T=!1;break}z.set(I,F)}if(T)for(var B=b?3:1,X=function(M){var ke=g.find(function(pe){var ce=z.get(pe);if(ce)return ce.slice(0,M).every(function(te){return te})});if(ke)return k=ke,"break"},K=B;K>0;K--){var xe=X(K);if(xe==="break")break}r.placement!==k&&(r.modifiersData[o]._skip=!0,r.placement=k,r.reset=!0)}}const Qo={name:"flip",enabled:!0,phase:"main",fn:Jo,requiresIfExists:["offset"],data:{_skip:!1}};function rt(e,r,t){return t===void 0&&(t={x:0,y:0}),{top:e.top-r.height-t.y,right:e.right-r.width+t.x,bottom:e.bottom-r.height+t.y,left:e.left-r.width-t.x}}function tt(e){return[Q,le,se,ee].some(function(r){return e[r]>=0})}function en(e){var r=e.state,t=e.name,o=r.rects.reference,n=r.rects.popper,s=r.modifiersData.preventOverflow,c=nr(r,{elementContext:"reference"}),a=nr(r,{altBoundary:!0}),i=rt(c,o),d=rt(a,n,s),l=tt(i),p=tt(d);r.modifiersData[t]={referenceClippingOffsets:i,popperEscapeOffsets:d,isReferenceHidden:l,hasPopperEscaped:p},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}const rn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:en};function tn(e,r,t){var o=ge(e),n=[ee,Q].indexOf(o)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},r,{placement:e})):t,c=s[0],a=s[1];return c=c||0,a=(a||0)*n,[ee,le].indexOf(o)>=0?{x:a,y:c}:{x:c,y:a}}function on(e){var r=e.state,t=e.options,o=e.name,n=t.offset,s=n===void 0?[0,0]:n,c=Rt.reduce(function(l,p){return l[p]=tn(p,r.rects,s),l},{}),a=c[r.placement],i=a.x,d=a.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=i,r.modifiersData.popperOffsets.y+=d),r.modifiersData[o]=c}const nn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:on};function an(e){var r=e.state,t=e.name;r.modifiersData[t]=At({reference:r.rects.reference,element:r.rects.popper,placement:r.placement})}const sn={name:"popperOffsets",enabled:!0,phase:"read",fn:an,data:{}};function ln(e){return e==="x"?"y":"x"}function cn(e){var r=e.state,t=e.options,o=e.name,n=t.mainAxis,s=n===void 0?!0:n,c=t.altAxis,a=c===void 0?!1:c,i=t.boundary,d=t.rootBoundary,l=t.altBoundary,p=t.padding,u=t.tether,f=u===void 0?!0:u,b=t.tetherOffset,m=b===void 0?0:b,w=nr(r,{boundary:i,rootBoundary:d,padding:p,altBoundary:l}),y=ge(r.placement),E=Fe(r.placement),S=!E,g=Mr(y),x=ln(g),$=r.modifiersData.popperOffsets,z=r.rects.reference,T=r.rects.popper,k=typeof m=="function"?m(Object.assign({},r.rects,{placement:r.placement})):m,R=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),I=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,H={x:0,y:0};if($){if(s){var A,V=g==="y"?Q:ee,G=g==="y"?se:le,_=g==="y"?"height":"width",q=$[g],P=q+w[V],F=q-w[G],B=f?-T[_]/2:0,X=E===Be?z[_]:T[_],K=E===Be?-T[_]:-z[_],xe=r.elements.arrow,W=f&&xe?_r(xe):{width:0,height:0},M=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Lt(),ke=M[V],pe=M[G],ce=Qe(0,z[_],W[_]),te=S?z[_]/2-B-ce-ke-R.mainAxis:X-ce-ke-R.mainAxis,de=S?-z[_]/2+B+ce+pe+R.mainAxis:K+ce+pe+R.mainAxis,Oe=r.elements.arrow&&sr(r.elements.arrow),ye=Oe?g==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,fe=(A=I==null?void 0:I[g])!=null?A:0,Ue=q+te-fe-ye,Ge=q+de-fe,qe=Qe(f?kr(P,Ue):P,q,f?Le(F,Ge):F);$[g]=qe,H[g]=qe-q}if(a){var lr,cr=g==="x"?Q:ee,Sr=g==="x"?se:le,Ce=$[x],De=x==="y"?"height":"width",dr=Ce+w[cr],Ve=Ce-w[Sr],N=[Q,ee].indexOf(y)!==-1,U=(lr=I==null?void 0:I[x])!=null?lr:0,Ee=N?dr:Ce-z[De]-T[De]-U+R.altAxis,J=N?Ce+z[De]+T[De]-U-R.altAxis:Ve,ne=f&&N?Lo(Ee,Ce,J):Qe(f?Ee:dr,Ce,f?J:Ve);$[x]=ne,H[x]=ne-Ce}r.modifiersData[o]=H}}const dn={name:"preventOverflow",enabled:!0,phase:"main",fn:cn,requiresIfExists:["offset"]};function un(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pn(e){return e===oe(e)||!ae(e)?Fr(e):un(e)}function fn(e){var r=e.getBoundingClientRect(),t=_e(r.width)/e.offsetWidth||1,o=_e(r.height)/e.offsetHeight||1;return t!==1||o!==1}function mn(e,r,t){t===void 0&&(t=!1);var o=ae(r),n=ae(r)&&fn(r),s=$e(r),c=Me(e,n,t),a={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!t)&&((ve(r)!=="body"||Xr(s))&&(a=pn(r)),ae(r)?(i=Me(r,!0),i.x+=r.clientLeft,i.y+=r.clientTop):s&&(i.x=Wr(s))),{x:c.left+a.scrollLeft-i.x,y:c.top+a.scrollTop-i.y,width:c.width,height:c.height}}function bn(e){var r=new Map,t=new Set,o=[];e.forEach(function(s){r.set(s.name,s)});function n(s){t.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(a){if(!t.has(a)){var i=r.get(a);i&&n(i)}}),o.push(s)}return e.forEach(function(s){t.has(s.name)||n(s)}),o}function hn(e){var r=bn(e);return So.reduce(function(t,o){return t.concat(r.filter(function(n){return n.phase===o}))},[])}function gn(e){var r;return function(){return r||(r=new Promise(function(t){Promise.resolve().then(function(){r=void 0,t(e())})})),r}}function vn(e){var r=e.reduce(function(t,o){var n=t[o.name];return t[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,t},{});return Object.keys(r).map(function(t){return r[t]})}var ot={placement:"bottom",modifiers:[],strategy:"absolute"};function nt(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return!r.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function yn(e){e===void 0&&(e={});var r=e,t=r.defaultModifiers,o=t===void 0?[]:t,n=r.defaultOptions,s=n===void 0?ot:n;return function(a,i,d){d===void 0&&(d=s);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},ot,s),modifiersData:{},elements:{reference:a,popper:i},attributes:{},styles:{}},p=[],u=!1,f={state:l,setOptions:function(y){var E=typeof y=="function"?y(l.options):y;m(),l.options=Object.assign({},s,l.options,E),l.scrollParents={reference:Pe(a)?er(a):a.contextElement?er(a.contextElement):[],popper:er(i)};var S=hn(vn([].concat(o,l.options.modifiers)));return l.orderedModifiers=S.filter(function(g){return g.enabled}),b(),f.update()},forceUpdate:function(){if(!u){var y=l.elements,E=y.reference,S=y.popper;if(nt(E,S)){l.rects={reference:mn(E,sr(S),l.options.strategy==="fixed"),popper:_r(S)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(R){return l.modifiersData[R.name]=Object.assign({},R.data)});for(var g=0;g<l.orderedModifiers.length;g++){if(l.reset===!0){l.reset=!1,g=-1;continue}var x=l.orderedModifiers[g],$=x.fn,z=x.options,T=z===void 0?{}:z,k=x.name;typeof $=="function"&&(l=$({state:l,options:T,name:k,instance:f})||l)}}}},update:gn(function(){return new Promise(function(w){f.forceUpdate(),w(l)})}),destroy:function(){m(),u=!0}};if(!nt(a,i))return f;f.setOptions(d).then(function(w){!u&&d.onFirstUpdate&&d.onFirstUpdate(w)});function b(){l.orderedModifiers.forEach(function(w){var y=w.name,E=w.options,S=E===void 0?{}:E,g=w.effect;if(typeof g=="function"){var x=g({state:l,name:y,instance:f,options:S}),$=function(){};p.push(x||$)}})}function m(){p.forEach(function(w){return w()}),p=[]}return f}}var Cn=[Fo,sn,_o,Ro,nn,Qo,dn,Ao,rn],it=yn({defaultModifiers:Cn}),wn=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],xn=["bigint","boolean","null","number","string","symbol","undefined"];function Er(e){const r=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(r))return"HTMLElement";if(kn(r))return r}function ue(e){return r=>Er(r)===e}function kn(e){return wn.includes(e)}function Xe(e){return r=>typeof r===e}function On(e){return xn.includes(e)}var En=["innerHTML","ownerDocument","style","attributes","nodeValue"];function h(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(h.array(e))return"Array";if(h.plainFunction(e))return"Function";const r=Er(e);return r||"Object"}h.array=Array.isArray;h.arrayOf=(e,r)=>!h.array(e)&&!h.function(r)?!1:e.every(t=>r(t));h.asyncGeneratorFunction=e=>Er(e)==="AsyncGeneratorFunction";h.asyncFunction=ue("AsyncFunction");h.bigint=Xe("bigint");h.boolean=e=>e===!0||e===!1;h.date=ue("Date");h.defined=e=>!h.undefined(e);h.domElement=e=>h.object(e)&&!h.plainObject(e)&&e.nodeType===1&&h.string(e.nodeName)&&En.every(r=>r in e);h.empty=e=>h.string(e)&&e.length===0||h.array(e)&&e.length===0||h.object(e)&&!h.map(e)&&!h.set(e)&&Object.keys(e).length===0||h.set(e)&&e.size===0||h.map(e)&&e.size===0;h.error=ue("Error");h.function=Xe("function");h.generator=e=>h.iterable(e)&&h.function(e.next)&&h.function(e.throw);h.generatorFunction=ue("GeneratorFunction");h.instanceOf=(e,r)=>!e||!r?!1:Object.getPrototypeOf(e)===r.prototype;h.iterable=e=>!h.nullOrUndefined(e)&&h.function(e[Symbol.iterator]);h.map=ue("Map");h.nan=e=>Number.isNaN(e);h.null=e=>e===null;h.nullOrUndefined=e=>h.null(e)||h.undefined(e);h.number=e=>Xe("number")(e)&&!h.nan(e);h.numericString=e=>h.string(e)&&e.length>0&&!Number.isNaN(Number(e));h.object=e=>!h.nullOrUndefined(e)&&(h.function(e)||typeof e=="object");h.oneOf=(e,r)=>h.array(e)?e.indexOf(r)>-1:!1;h.plainFunction=ue("Function");h.plainObject=e=>{if(Er(e)!=="Object")return!1;const r=Object.getPrototypeOf(e);return r===null||r===Object.getPrototypeOf({})};h.primitive=e=>h.null(e)||On(typeof e);h.promise=ue("Promise");h.propertyOf=(e,r,t)=>{if(!h.object(e)||!r)return!1;const o=e[r];return h.function(t)?t(o):h.defined(o)};h.regexp=ue("RegExp");h.set=ue("Set");h.string=Xe("string");h.symbol=Xe("symbol");h.undefined=Xe("undefined");h.weakMap=ue("WeakMap");h.weakSet=ue("WeakSet");var v=h;function Ht(e){return r=>typeof r===e}var Sn=Ht("function"),zn=e=>e===null,at=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",st=e=>!$n(e)&&!zn(e)&&(Sn(e)||typeof e=="object"),$n=Ht("undefined");function Rn(e,r){const{length:t}=e;if(t!==r.length)return!1;for(let o=t;o--!==0;)if(!Y(e[o],r[o]))return!1;return!0}function Tn(e,r){if(e.byteLength!==r.byteLength)return!1;const t=new DataView(e.buffer),o=new DataView(r.buffer);let n=e.byteLength;for(;n--;)if(t.getUint8(n)!==o.getUint8(n))return!1;return!0}function Nn(e,r){if(e.size!==r.size)return!1;for(const t of e.entries())if(!r.has(t[0]))return!1;for(const t of e.entries())if(!Y(t[1],r.get(t[0])))return!1;return!0}function Ln(e,r){if(e.size!==r.size)return!1;for(const t of e.entries())if(!r.has(t[0]))return!1;return!0}function Y(e,r){if(e===r)return!0;if(e&&st(e)&&r&&st(r)){if(e.constructor!==r.constructor)return!1;if(Array.isArray(e)&&Array.isArray(r))return Rn(e,r);if(e instanceof Map&&r instanceof Map)return Nn(e,r);if(e instanceof Set&&r instanceof Set)return Ln(e,r);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(r))return Tn(e,r);if(at(e)&&at(r))return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();const t=Object.keys(e),o=Object.keys(r);if(t.length!==o.length)return!1;for(let n=t.length;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,t[n]))return!1;for(let n=t.length;n--!==0;){const s=t[n];if(!(s==="_owner"&&e.$$typeof)&&!Y(e[s],r[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(r)?!0:e===r}function Pn(...e){return e.every(r=>v.string(r)||v.array(r)||v.plainObject(r))}function Dn(e,r,t){return jt(e,r)?[e,r].every(v.array)?!e.some(pt(t))&&r.some(pt(t)):[e,r].every(v.plainObject)?!Object.entries(e).some(ut(t))&&Object.entries(r).some(ut(t)):r===t:!1}function lt(e,r,t){const{actual:o,key:n,previous:s,type:c}=t,a=he(e,n),i=he(r,n);let d=[a,i].every(v.number)&&(c==="increased"?a<i:a>i);return v.undefined(o)||(d=d&&i===o),v.undefined(s)||(d=d&&a===s),d}function ct(e,r,t){const{key:o,type:n,value:s}=t,c=he(e,o),a=he(r,o),i=n==="added"?c:a,d=n==="added"?a:c;if(!v.nullOrUndefined(s)){if(v.defined(i)){if(v.array(i)||v.plainObject(i))return Dn(i,d,s)}else return Y(d,s);return!1}return[c,a].every(v.array)?!d.every(Ur(i)):[c,a].every(v.plainObject)?In(Object.keys(i),Object.keys(d)):![c,a].every(l=>v.primitive(l)&&v.defined(l))&&(n==="added"?!v.defined(c)&&v.defined(a):v.defined(c)&&!v.defined(a))}function dt(e,r,{key:t}={}){let o=he(e,t),n=he(r,t);if(!jt(o,n))throw new TypeError("Inputs have different types");if(!Pn(o,n))throw new TypeError("Inputs don't have length");return[o,n].every(v.plainObject)&&(o=Object.keys(o),n=Object.keys(n)),[o,n]}function ut(e){return([r,t])=>v.array(e)?Y(e,t)||e.some(o=>Y(o,t)||v.array(t)&&Ur(t)(o)):v.plainObject(e)&&e[r]?!!e[r]&&Y(e[r],t):Y(e,t)}function In(e,r){return r.some(t=>!e.includes(t))}function pt(e){return r=>v.array(e)?e.some(t=>Y(t,r)||v.array(r)&&Ur(r)(t)):Y(e,r)}function Ke(e,r){return v.array(e)?e.some(t=>Y(t,r)):Y(e,r)}function Ur(e){return r=>e.some(t=>Y(t,r))}function jt(...e){return e.every(v.array)||e.every(v.number)||e.every(v.plainObject)||e.every(v.string)}function he(e,r){return v.plainObject(e)||v.array(e)?v.string(r)?r.split(".").reduce((o,n)=>o&&o[n],e):v.number(r)?e[r]:e:e}function ft(e,r){if([e,r].some(v.nullOrUndefined))throw new Error("Missing required parameters");if(![e,r].every(l=>v.plainObject(l)||v.array(l)))throw new Error("Expected plain objects or array");return{added:(l,p)=>{try{return ct(e,r,{key:l,type:"added",value:p})}catch{return!1}},changed:(l,p,u)=>{try{const f=he(e,l),b=he(r,l),m=v.defined(p),w=v.defined(u);if(m||w){const y=w?Ke(u,f):!Ke(p,f),E=Ke(p,b);return y&&E}return[f,b].every(v.array)||[f,b].every(v.plainObject)?!Y(f,b):f!==b}catch{return!1}},changedFrom:(l,p,u)=>{if(!v.defined(l))return!1;try{const f=he(e,l),b=he(r,l),m=v.defined(u);return Ke(p,f)&&(m?Ke(u,b):!m)}catch{return!1}},decreased:(l,p,u)=>{if(!v.defined(l))return!1;try{return lt(e,r,{key:l,actual:p,previous:u,type:"decreased"})}catch{return!1}},emptied:l=>{try{const[p,u]=dt(e,r,{key:l});return!!p.length&&!u.length}catch{return!1}},filled:l=>{try{const[p,u]=dt(e,r,{key:l});return!p.length&&!!u.length}catch{return!1}},increased:(l,p,u)=>{if(!v.defined(l))return!1;try{return lt(e,r,{key:l,actual:p,previous:u,type:"increased"})}catch{return!1}},removed:(l,p)=>{try{return ct(e,r,{key:l,type:"removed",value:p})}catch{return!1}}}}function mt(e){const r=L(e),t=Y(r.current,e),o=L(t),n=L(ft(r.current,e));return ze(()=>{r.current=e}),(o.current!==t||!t)&&(o.current=t,n.current=ft(r.current,e)),n.current}function An(e){const{arrowRef:r,placement:t,styles:o}=e,{arrow:{color:n,display:s,length:c,position:a,spread:i}}=o,d={display:s,position:a};let l,p=i,u=c;return t.startsWith("top")?l=`0,0 ${p/2},${u} ${p},0`:t.startsWith("bottom")?l=`${p},${u} ${p/2},0 0,${u}`:t.startsWith("left")?(u=i,p=c,l=`0,0 ${p},${u/2} 0,${u}`):t.startsWith("right")&&(u=i,p=c,l=`${p},${u} ${p},0 0,${u/2}`),j("span",{ref:r,className:"__floater__arrow",style:d},j("svg",{height:u,version:"1.1",width:p,xmlns:"http://www.w3.org/2000/svg"},j("polygon",{fill:n,points:l})))}function Hn({onClick:e,styles:r}){const{color:t,height:o,width:n,...s}=r;return j("button",{"aria-label":"close",onClick:e,style:s,type:"button"},j("svg",{height:`${o}px`,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:`${n}px`,xmlns:"http://www.w3.org/2000/svg"},j("g",null,j("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:t}))))}function jn(e){const{content:r,footer:t,onClick:o,open:n,positionWrapper:s,showCloseButton:c,styles:a,title:i}=e,d={content:je(r)?r:j("div",{className:"__floater__content",style:a.content},r)};return i&&(d.title=je(i)?i:j("div",{className:"__floater__title",style:a.title},i)),t&&(d.footer=je(t)?t:j("div",{className:"__floater__footer",style:a.footer},t)),(c||s)&&!v.boolean(n)&&(d.close=j(Hn,{onClick:o,styles:a.close})),j("div",{className:"__floater__container",style:a.container},d.close,d.title,d.content,d.footer)}var Bn=["position","top","right","bottom","left"],O={INIT:"init",IDLE:"idle",RENDER:"render",OPENING:"opening",OPEN:"open",CLOSING:"closing"},br="react-floater-portal";function Ne(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function bt(e){return{autoOpen:!1,debug:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1},...e}}function _n(e){if(e.startsWith("left"))return["top","bottom"];if(e.startsWith("right"))return["bottom","top"]}function Mn(e){return wr({flip:{name:"flip",enabled:!0,options:{padding:20}},preventOverflow:{name:"preventOverflow",enabled:!0,options:{padding:10}}},e!=null?e:{})}function Bt(e){if(!e)return!1;const{nodeName:r}=e;return r==="BODY"||r==="HTML"?!1:getComputedStyle(e).position==="fixed"?!0:e.parentNode instanceof HTMLElement?Bt(e.parentNode):!1}function Rr(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Fn(e){return je(e)}function hr({data:e,debug:r=!1,title:t}){const o=console.log;r&&t&&e&&(console.groupCollapsed(`%creact-floater: ${t}`,"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(n=>{v.plainObject(n)&&n.key?o.apply(console,[n.key,n.value]):o.apply(console,[n])}):o.apply(console,[e]),console.groupEnd())}function Tr(e,r){return wr(e,r!=null?r:{})}function Wn(e,r,t,o=!1){e.removeEventListener(r,t,o)}function Xn(e,r,t,o=!1){e.addEventListener(r,t,o)}function Un(e,r,t,o=!1){let n;n=s=>{t(s),Wn(e,r,n)},Xn(e,r,n,o)}function Gn(){return`rf-${Math.round(Math.random()*1e5)}`}function qn(e){const{component:r,content:t,floaterRef:o,hideArrow:n,id:s,onClick:c,placement:a,status:i,styles:d}=e,l=gr(()=>{const{arrow:{length:m},floater:w,floaterCentered:y,floaterClosing:E,floaterOpening:S,floaterWithComponent:g}=d;let x={...w};return n||(a.startsWith("top")?x.padding=`0 0 ${m}px`:a.startsWith("bottom")?x.padding=`${m}px 0 0`:a.startsWith("left")?x.padding=`0 ${m}px 0 0`:a.startsWith("right")&&(x.padding=`0 0 0 ${m}px`)),i===O.CLOSING&&(x={...x,...E}),(i===O.OPENING||i===O.OPEN)&&(x={...x,...S}),a==="center"&&(x={...x,...y}),r&&(x={...x,...g}),x},[r,n,a,i,d]),p=["render","open","opening","closing"].includes(i),u={},f=["__floater"],b={id:s,role:"tooltip"};if(r){const m={closeFn:c,...b};u.content=Fn(r)?rr(r,m):r(m)}else u.content=j(jn,{...e,content:t});return i===O.OPEN&&f.push("__floater__open"),n||(u.arrow=j(An,{...e})),p?j("div",{ref:o,style:{zIndex:d.options.zIndex}},j("div",{className:f.join(" "),style:l,...b},j("div",{className:"__floater__body"},u.content,u.arrow))):null}var Vn=kt(qn);function _t(e){ze(e,[])}function Gr(e){_t(e)}function Zn(e){const r=L(!1);r.current||(e(),r.current=!0)}function Mt(e){const r=L(e);r.current=e,_t(()=>()=>r.current())}function Yn(e,r){const t=L(!0);ze(()=>{t.current||e()},r),t.current&&(t.current=!1)}function Kn(e){const{children:r,hasChildren:t,internalId:o,placement:n,portalElement:s,target:c,zIndex:a}=e,i=L(null),d=Re(()=>{var l,p;if(Ne()){if(s&&(i.current=v.string(s)?document.querySelector(s):s),!s||!i.current){const u=document.getElementById(br);if(u){const f=(p=(l=u.dataset.ids)==null?void 0:l.split(",").filter(Boolean))!=null?p:[];!f.includes(o)&&o&&f.push(o),u.dataset.ids=f.join(","),i.current=u}else i.current=document.createElement("div"),i.current.id=br,i.current.dataset.ids=o,i.current.style.zIndex=`${a}`,document.body.appendChild(i.current)}!s&&!document.getElementById(br)&&i.current&&document.body.appendChild(i.current)}},[o,s,a]);return Gr(()=>{Ne&&d()}),ze(()=>{d()},[d]),Mt(()=>{var l,p;if(!(!Ne()||!i.current))try{if(i.current.id===br){const u=(p=(l=i.current.dataset.ids)==null?void 0:l.split(","))!=null?p:[];u.includes(o)&&(i.current.dataset.ids=u.filter(f=>f!==o).join(",")),u.length<=1&&(document.body.removeChild(i.current),i.current=null)}}catch{i.current=null}}),i.current?!t&&!c&&n!=="center"?null:Vt(r,i.current):null}function Jn(e){const{childRef:r,children:t,id:o,isControlled:n,onClick:s,onMount:c,onMouseEnter:a,onMouseLeave:i,status:d,style:l,styles:p,wrapperRef:u}=e;Gr(()=>{c()});let f;const b={...p,...l,...je(t)?t.props.style:void 0};let m={"aria-describedby":[O.OPENING,O.OPEN,O.CLOSING].includes(d)?o:void 0,"data-id":o,style:b};return n||(m={...m,onClick:s,onMouseEnter:a,onMouseLeave:i}),t&&(zr.count(t)===1&&je(t)&&t.type!==Cr?v.function(t.type)?f=j("span",{ref:u},rr(zr.only(t),{innerRef:r,...m})):f=rr(zr.only(t),{ref:u,...m}):f=j("span",{ref:u,...m},t)),f!=null?f:null}var Qn=kt(Jn),ei={zIndex:100};function ri(e){const{options:r={},...t}=e!=null?e:{};return wr({arrow:{color:"#fff",display:"inline-flex",length:16,position:"absolute",spread:32},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},content:{fontSize:15},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:r.zIndex},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},floaterClosing:{opacity:0,visibility:"visible"},floaterOpening:{opacity:1,visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},wrapper:{cursor:"help",zIndex:r.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},options:wr(ei,r)},t)}function ht(e){const{autoOpen:r=!1,callback:t,children:o,component:n,content:s,debug:c=!1,disableFlip:a=!1,disableHoverToClick:i=!1,event:d="click",eventDelay:l=.4,footer:p,getPopper:u,hideArrow:f=!1,id:b,modifiers:m,offset:w=15,open:y,placement:E="bottom",portalElement:S,showCloseButton:g=!1,style:x,styles:$,target:z,title:T,wrapperOptions:k}=bt(e),[R,I]=qt((N,U)=>({...N,...U}),{currentPlacement:E,positionWrapper:!!(k!=null&&k.position)&&!!z,status:O.INIT,statusWrapper:O.INIT}),H=L(null),A=L(null),V=L(),G=L(null),_=L(Gn()),q=L(!1),P=L(),F=L(R),B=L(),X=L(null),K=L({}),{currentPlacement:xe,positionWrapper:W,status:M,statusWrapper:ke}=R,{changed:pe}=mt(R),{changed:ce}=mt(e),te=Re((N,U)=>{q.current&&(I(N),F.current={...R,...N},U&&U())},[I,R]),de=Re(N=>{let U=F.current.status===O.OPEN?O.CLOSING:O.RENDER;v.undefined(N)||(U=N),te({status:U,statusWrapper:U===O.CLOSING?O.RENDER:O.IDLE})},[te]),Oe=L(()=>{var N;return Ne()?z?v.domElement(z)?z:document.querySelector(z):(N=A.current)!=null?N:X.current:null}),ye=gr(()=>Ne()&&(c||!!window.ReactFloaterDebug),[c]),fe=gr(()=>d==="hover"&&Rr()&&!i?"click":d,[i,d]),Ue=gr(()=>{var Ee;const N=ri($),U=Oe.current();if(W){let J;M!==O.IDLE?J=N.wrapperPosition:ke===O.RENDER&&(J=(Ee=B.current)==null?void 0:Ee.state.styles),N.wrapper={...N.wrapper,...J}}if(U){const J=window.getComputedStyle(U);K.current?N.wrapper={...N.wrapper,...K.current}:["relative","static"].includes(J.position)||(K.current={},W||(Bn.forEach(ne=>{K.current[ne]=J[ne]}),N.wrapper={...N.wrapper,...K.current}))}return N},[W,M,ke,$]),Ge=L(()=>{var Ee;const N=F.current.status===O.RENDER?O.OPENING:O.IDLE,U=Oe.current();if(E==="center")setTimeout(()=>{te({status:N})},100);else if(U){if(G.current){const{arrow:J,flip:ne,offset:ur,...Ut}=Mn(m);P.current=it(U,G.current,{placement:E,strategy:Bt(Oe.current())?"fixed":"absolute",modifiers:[Tr({name:"arrow",enabled:!f,options:{element:H.current,padding:8}},J),Tr({name:"flip",enabled:!a,options:{altAxis:!1,fallbackPlacements:_n(E||"bottom")}},ne),Tr({name:"offset",enabled:!0,options:{offset:[0,w]}},ur),{name:"updatePlacement",enabled:!0,phase:"afterWrite",fn:({instance:Ie,state:Z})=>{Z.placement!==F.current.currentPlacement&&(P.current=Ie,te({currentPlacement:Z.placement}))}},{name:"applyArrowStyle",enabled:!0,phase:"write",fn:({state:Ie})=>{const{elements:{arrow:Z},placement:pr}=Ie;Z&&(pr.startsWith("top")?(Z.style.bottom="0px",Z.style.right=""):pr.startsWith("bottom")?(Z.style.top="0px",Z.style.right=""):pr.startsWith("left")?(Z.style.right="0px",Z.style.bottom=""):pr.startsWith("right")&&(Z.style.left="0px",Z.style.bottom=""))}},...Object.values(Ut)],onFirstUpdate:Ie=>{te({currentPlacement:Ie.placement,status:N}),E!==Ie.placement&&setTimeout(()=>{var Z;(Z=P.current)==null||Z.forceUpdate()})}}),u&&P.current&&u(P.current,"floater")}else te({status:O.IDLE});if(X.current&&!B.current&&F.current.positionWrapper){const J=k!=null&&k.offset?k.offset:0;B.current=it(U,X.current,{placement:(Ee=k==null?void 0:k.placement)!=null?Ee:E,modifiers:[{name:"arrow",enabled:!1},{name:"offset",options:{offset:[0,J]}},{name:"flip",enabled:!1}],onFirstUpdate:ne=>{te({statusWrapper:O.RENDER}),E!==ne.placement&&setTimeout(()=>{var ur;(ur=B.current)==null||ur.forceUpdate()})}}),u&&u(B.current,"wrapper")}}}),qe=L(()=>{P.current&&P.current.forceUpdate(),B.current&&B.current.forceUpdate()}),lr=L(()=>{B.current&&B.current.forceUpdate(),te({status:F.current.status===O.OPENING?O.OPEN:O.IDLE},()=>{t&&t(F.current.status===O.OPEN?"open":"close",bt(e))})}),cr=Re(()=>{v.boolean(y)||(fe==="click"||fe==="hover"&&W)&&(hr({title:"click",data:[{event:d,status:M===O.OPEN?"closing":"opening"}],debug:ye}),de(M==="idle"?O.RENDER:void 0))},[ye,fe,d,y,W,M,de]),Sr=Re(()=>{v.boolean(y)||Rr()||fe!=="hover"||(hr({title:"mouseEnter",data:[{key:"originalEvent",value:d}],debug:ye}),M===O.IDLE&&(clearTimeout(V.current),V.current=void 0,de(O.RENDER)))},[ye,fe,d,y,M,de]),Ce=Re(()=>{if(!(v.boolean(y)||Rr())&&fe==="hover"){hr({title:"mouseLeave",data:[{key:"originalEvent",value:d}],debug:ye});const N=[O.OPENING,O.OPEN].includes(M);l?W||N&&(clearTimeout(V.current),V.current=window.setTimeout(()=>{de(),V.current=void 0},l*1e3)):de(M===O.CLOSING?O.IDLE:O.CLOSING)}},[ye,fe,d,l,y,W,M,de]),De=Re(()=>{W&&Ge.current()},[W]),dr=()=>{P.current&&(P.current.destroy(),P.current=void 0),B.current&&(B.current.destroy(),B.current=void 0)};Zn(()=>{Ne()&&window.addEventListener("load",qe.current)}),Gr(()=>{q.current=!0,hr({title:"init",data:{hasChildren:!!o,hasTarget:!!z,isControlled:v.boolean(y),positionWrapper:W,target:Oe.current(),floater:G.current},debug:ye}),Ge.current()}),Mt(()=>{q.current=!1,dr(),window.removeEventListener("load",qe.current)}),Yn(()=>{if(Ne()){if(ce("open")){let N;v.boolean(y)&&(N=y?O.RENDER:O.CLOSING),de(N)}(ce("wrapperOptions.position")||ce("target"))&&te({positionWrapper:!!(k!=null&&k.position)&&!!z}),(pe("status",O.IDLE)&&y||pe("status",O.IDLE,O.INIT)&&r)&&de(O.RENDER),pe("status",O.RENDER)&&(P.current&&P.current.destroy(),Ge.current()),G.current&&pe("status",[O.RENDER,O.CLOSING])&&Un(G.current,"transitionend",lr.current),pe("status",O.IDLE,O.CLOSING)&&P.current&&(P.current.destroy(),P.current=void 0,B.current&&B.current.forceUpdate())}});const Ve=j(Qn,{childRef:A,id:b!=null?b:_.current,isControlled:v.boolean(y),onClick:cr,onMount:De,onMouseEnter:Sr,onMouseLeave:Ce,status:M,style:x,styles:Ue.wrapper,wrapperRef:X},o);return j(Cr,null,j(Kn,{hasChildren:!!o,internalId:_.current,placement:xe,portalElement:S,target:z,zIndex:Ue.options.zIndex},j(Vn,{arrowRef:H,component:n,content:s,floaterRef:G,footer:p,hideArrow:f||xe==="center",id:b!=null?b:_.current,onClick:cr,placement:xe,positionWrapper:W,showCloseButton:g,status:M,styles:Ue,title:T}),W&&Ve),!W&&Ve)}const ti=(e,r,t)=>{ze(()=>{const o=n=>{r.includes(n.key)&&t(n)};return document.addEventListener(e,o),()=>{document.removeEventListener(e,o)}},[e,t,r])},oi=()=>{},ni=We((e,r)=>{const{closeFn:t=oi,closeOnClickOutside:o=!1,closeOnScroll:n=!1,id:s,role:c,children:a}=e,i=L(null),d=L(null),l=L(null);return Zt(r,()=>i.current,[]),ze(()=>{if(o&&i.current){const p=i.current.getAttribute("id");p&&(d.current=document.querySelector(`[data-id="${p}"]`))}},[o]),ti("keyup",Yt.Esc.key,t),fo(i,p=>{d.current&&d.current.contains(p.target)||(l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{t(),l.current=null},0))},{enabled:o}),mo({onScrollStart:()=>{n&&t()}}),typeof a=="function"?a({ref:i,id:s,role:c,closeFn:t}):rr(a,{ref:i,id:s,role:c,closeFn:t,...typeof a.props=="object"&&a.props!==null?a.props:{}})}),ii={wrapper:{display:"inline-flex",flexDirection:"column",zIndex:100},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 6px 6px rgba(0, 0, 0, 0.2))",WebkitFilter:"drop-shadow(0 6px 6px rgba(0, 0, 0, 0.2))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.2s",visibility:"hidden",zIndex:100},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.2s, transform 0.2s",visibility:"visible"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{boxSizing:"border-box",borderRadius:3,backgroundColor:"#fff",color:"var(--mineShaft)",minHeight:32,minWidth:180,padding:"16px",position:"relative",display:"flex",flexDirection:"column",justifyContent:"center"},title:{borderBottom:"1px solid var(--mineShaft)",color:"var(--mineShaft)",fontWeight:"bold",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:12,lineHeight:"16px"},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"var(--mineShaft)",fontSize:14,height:10,lineHeight:"16px",outline:"none",padding:0,position:"absolute",right:"4px",textAlign:"center",top:"4px",WebkitAppearance:"none",width:10},footer:{borderTop:"1px solid var(--mineShaft)",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:6,position:"absolute",spread:12},options:{zIndex:100}},Ft={l:{minWidth:48,maxWidth:400,borderRadius:8,"--tooltip-component-gap":"4px"},m:{minWidth:48,maxWidth:400,borderRadius:8,"--tooltip-component-gap":"4px"},s:{minWidth:48,maxWidth:208,borderRadius:8,"--tooltip-component-gap":"2px"}},yr={l:{paddingTop:12,paddingRight:16,paddingBottom:12,paddingLeft:16},m:{paddingTop:12,paddingRight:16,paddingBottom:12,paddingLeft:16},s:{paddingTop:8,paddingRight:8,paddingBottom:8,paddingLeft:8}},ai={l:{...yr.l,paddingRight:0},m:{...yr.m,paddingRight:0},s:{...yr.s,paddingRight:0}},gt={l:{fontSize:14},m:{fontSize:14},s:{fontSize:14}},si={l:Se.s,m:Se.s,s:Se.s},Wt=Ar(e=>!["black","contrast","elevated"].includes(e)),Nr=e=>`
|
|
2
|
+
color: ${e.color};
|
|
3
|
+
background-color: ${e.backgroundColor};
|
|
4
|
+
filter: drop-shadow(0 6px 10px ${e.shadowColor});
|
|
5
|
+
`,Lr={contrast:D(["",""],e=>Nr({color:e.theme.colors["content-oncolor-primary"],backgroundColor:e.theme.colors["bg-brand-primary-basic"],shadowColor:e.elevated?e.theme.colors["bg-oncolor-hover"]:e.theme.colors.transparent,...e.palette})),black:D(["",""],e=>Nr({color:e.theme.colors["content-onmain-inverse"],backgroundColor:e.theme.colors["bg-onmain-inverse"],shadowColor:e.elevated?e.theme.colors["bg-oncolor-hover"]:e.theme.colors.transparent,...e.palette})),primary:D(["",""],e=>Nr({color:e.theme.colors["content-onmain-primary"],backgroundColor:e.theme.colors["bg-onmain-primary"],shadowColor:e.elevated?e.theme.colors["bg-oncolor-hover"]:e.theme.colors.transparent,...e.palette}))},li=re.div.withConfig({shouldForwardProp:Wt}).withConfig({displayName:"TooltipComponent__Root",componentId:"ui__sc-1fjl2iv-0"})(["box-sizing:border-box;display:inline-flex;isolation:isolate;position:relative;cursor:default;"," ",""],e=>{let r=Lr.primary;return e.black&&(r=Lr.black),e.contrast&&(r=Lr.contrast),r},ir),ci=re.div.withConfig({shouldForwardProp:Wt}).withConfig({displayName:"TooltipComponent__Container",componentId:"ui__sc-1fjl2iv-1"})(["box-sizing:border-box;flex-grow:1;& > *:not(:last-child){margin-bottom:var(--tooltip-component-gap);}",""],ir),di=re.div.withConfig({displayName:"TooltipComponent__ButtonContainer",componentId:"ui__sc-1fjl2iv-2"})(["box-sizing:border-box;padding:4px;"]),vt=We((e,r)=>{const{size:t="s",titleProps:o={},contentProps:n={},closeButtonProps:s={},root:c,body:a,heading:i,title:d,text:l,content:p,closeButton:u,closeFn:f,showCloseButton:b,footer:m,sizeXXS:w,sizeXS:y,sizeS:E,sizeM:S,sizeL:g,sizeXL:x,...$}=Kt(e,{componentName:"TooltipComponent",sizes:Ft}),z={size:t,sizeXXS:w,sizeXS:y,sizeS:E,sizeM:S,sizeL:g,sizeXL:x},T={...z,sizes:gt,appearance:"body",color:"inherit",weight:700,wordBreak:"break-word"},k={...z,sizes:gt,appearance:"body",color:"inherit",wordBreak:"break-word"},R={...z,sizes:si,icon:C(uo,{}),square:!0,filled:$.black,contrast:$.contrast,onClick:()=>{typeof f=="function"&&f()}};return C(li,{...$,...z,ref:r,children:C(Ze,{render:c,props:{headingProps:T,textProps:k,closeButtonProps:R},fallback:C(Cr,{children:[C(ci,{...z,sizes:u||b?ai:yr,children:[C(Ze,{render:a,props:{headingProps:T,textProps:k},fallback:C(Cr,{children:[C(Ze,{render:i,props:T,fallback:qr(d)?null:C(tr,{...T,...o,children:d})}),C(Ze,{render:l,props:k,fallback:qr(p)?null:C(tr,{...k,...n,children:p})})]})}),typeof m=="function"?m(z):m]}),u||b?C(di,{children:C(Ze,{render:u,props:R,fallback:C(xr,{...R,...s,onClick:I=>{typeof R.onClick=="function"&&R.onClick(I),typeof s.onClick=="function"&&s.onClick(I)}})})}):null]})})})}),ui=Object.assign(Hr(We((e,r)=>{var B;const{placement:t="bottom",size:o="s",styles:n={},palette:s={},closeOnClickOutside:c=!1,closeOnScroll:a=!1,offset:i=8,autoOpen:d,callback:l,trigger:p,children:u,disableFlip:f,disableHoverToClick:b,event:m,eventDelay:w,hideArrow:y,open:E,position:S,portalElement:g,target:x,zIndex:$,getPopper:z,debug:T,wrapperOptions:k,component:R,preset:I,...H}=e,A=Ot(),[V,G]=Vr(null),[_,q]=Vr(null);if(Jt(()=>{if(g)G(null);else if(document.body){let X=document.querySelector("[data-popper-portal]");X||(X=document.createElement("div"),X.dataset.popperPortal="true",X.style.position="relative",document.body.appendChild(X)),G(X)}},[g]),Qt({target:document.body,onResize:()=>{_&&_.state.options.strategy==="absolute"&&_.update()}}),!g&&!V)return null;const P={autoOpen:d,callback:l,disableFlip:f,disableHoverToClick:b,event:m,eventDelay:w,hideArrow:y,offset:i,open:E,debug:T,wrapperOptions:k,placement:S!=null?S:t,portalElement:g!=null?g:V,target:x,styles:typeof $=="number"?$r(n,{options:{zIndex:$}}):n,getPopper:(X,K)=>{q(X),typeof z=="function"&&z(X,K)},modifiers:{flip:{enabled:!f}}};if(I!=="brand")return C(ht,{...P,styles:$r(ii,P.styles),title:H.title,content:H.content,showCloseButton:H.showCloseButton,footer:typeof H.footer!="function"?H.footer:void 0,component:R,children:C("span",{children:p!=null?p:u})});let F=A.colors["bg-onmain-primary"];return H.black&&(F=A.colors["bg-onmain-inverse"]),H.contrast&&(F=A.colors["bg-brand-primary-basic"]),s.backgroundColor&&(F=(B=A.colors[s.backgroundColor])!=null?B:s.backgroundColor),C(ht,{...P,styles:$r({arrow:{color:F,spread:16,length:8},floater:{filter:`drop-shadow(0 6px 10px ${A.colors["bg-oncolor-hover"]})`}},P.styles),component:C(ni,{ref:r,closeOnClickOutside:c,closeOnScroll:a,children:R!=null?R:C(vt,{...H,palette:s,size:o})}),children:p!=null?p:u})}),{displayName:"Tooltip",sizes:Ft}),{Component:vt}),Xt=Ar(e=>!["inline","clear","disabled","error","success","checked","onColored"].includes(e)),me=e=>`
|
|
6
|
+
color: ${e.color};
|
|
7
|
+
background-color: ${e.backgroundColor};
|
|
8
|
+
border-color: ${e.borderColor};
|
|
9
|
+
${Et(`
|
|
10
|
+
color: ${e.colorHover};
|
|
11
|
+
background-color: ${e.backgroundColorHover};
|
|
12
|
+
border-color: ${e.borderColorHover};
|
|
13
|
+
`)}
|
|
14
|
+
`,yt={default:{disabled:D(["",""],e=>me({color:e.theme.colors["content-disabled"],backgroundColor:e.theme.colors["bg-disabled-large"],borderColor:e.theme.colors["border-disabled"],colorHover:e.theme.colors["content-disabled"],backgroundColorHover:e.theme.colors["bg-disabled-large"],borderColorHover:e.theme.colors["border-disabled"],...e.palette})),error:D(["",""],e=>me({color:e.theme.colors["content-onmain-primary"],backgroundColor:e.theme.colors["alert-bg-error-100"],borderColor:e.theme.colors["alert-bg-error-500"],colorHover:e.theme.colors["content-onmain-primary"],backgroundColorHover:e.theme.colors["alert-bg-error-100"],borderColorHover:e.theme.colors["alert-bg-error-500"],...e.palette})),success:D(["",""],e=>me({color:e.theme.colors["content-onmain-primary"],backgroundColor:e.theme.colors["alert-bg-success-100"],borderColor:e.theme.colors["alert-success"],colorHover:e.theme.colors["content-onmain-primary"],backgroundColorHover:e.theme.colors["alert-bg-success-100"],borderColorHover:e.theme.colors["alert-success"],...e.palette})),checked:D(["",""],e=>me({color:e.theme.colors["content-onmain-primary"],backgroundColor:e.theme.colors["bg-brand-primary-100"],borderColor:e.theme.colors["border-brand-primary-active"],colorHover:e.theme.colors["content-onmain-primary"],backgroundColorHover:fr(e.theme.colors["bg-brand-primary-100"]).darken(3).toString(),borderColorHover:e.theme.colors["border-brand-primary-active"],...e.palette})),default:D(["",""],e=>me({color:e.theme.colors["content-onmain-primary"],backgroundColor:e.theme.colors["bg-onmain-secondary"],borderColor:e.theme.colors["border-onmain-default-large"],colorHover:e.theme.colors["content-onmain-primary"],backgroundColorHover:fr(e.theme.colors["bg-onmain-secondary"]).darken(6).toString(),borderColorHover:e.theme.colors["border-onmain-default-large"],...e.palette}))},contrast:{disabled:D(["",""],e=>me({color:e.theme.colors["content-disabled"],backgroundColor:e.theme.colors["bg-onmain-secondary"],borderColor:e.theme.colors["border-onmain-default-large"],colorHover:e.theme.colors["content-disabled"],backgroundColorHover:e.theme.colors["bg-onmain-secondary"],borderColorHover:e.theme.colors["border-onmain-default-large"],...e.palette})),error:D(["",""],e=>me({color:e.theme.colors["content-onmain-primary"],backgroundColor:e.theme.colors["alert-bg-error-200"],borderColor:e.theme.colors["alert-bg-error-500"],colorHover:e.theme.colors["content-onmain-primary"],backgroundColorHover:e.theme.colors["alert-bg-error-200"],borderColorHover:e.theme.colors["alert-bg-error-500"],...e.palette})),success:D(["",""],e=>me({color:e.theme.colors["content-onmain-primary"],backgroundColor:e.theme.colors["alert-bg-success-200"],borderColor:e.theme.colors["alert-success"],colorHover:e.theme.colors["content-onmain-primary"],backgroundColorHover:e.theme.colors["alert-bg-success-200"],borderColorHover:e.theme.colors["alert-success"],...e.palette})),checked:D(["",""],e=>me({color:e.theme.colors["content-onmain-primary"],backgroundColor:e.theme.colors["bg-onmain-primary"],borderColor:e.theme.colors["border-onmain-default-large"],colorHover:e.theme.colors["content-onmain-primary"],backgroundColorHover:fr(e.theme.colors["bg-onmain-primary"]).darken(3).toString(),borderColorHover:e.theme.colors["border-onmain-default-large"],...e.palette})),default:D(["",""],e=>me({color:e.theme.colors["content-onmain-primary"],backgroundColor:e.theme.colors["bg-onmain-secondary"],borderColor:e.theme.colors["border-onmain-default-large"],colorHover:e.theme.colors["content-onmain-primary"],backgroundColorHover:fr(e.theme.colors["bg-onmain-secondary"]).darken(6).toString(),borderColorHover:e.theme.colors["border-onmain-default-large"],...e.palette}))}},pi=re.label.withConfig({shouldForwardProp:Xt}).withConfig({displayName:"FormLabel__Root",componentId:"ui__sc-mry1kz-0"})([""," "," "," ",""],e=>`
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
isolation: isolate;
|
|
17
|
+
display: ${e.inline?"inline-flex":"flex"};
|
|
18
|
+
cursor: ${e.disabled?"not-allowed":"pointer"};
|
|
19
|
+
border: 1px solid transparent;
|
|
20
|
+
background-color: transparent;
|
|
21
|
+
transition-property: background-color;
|
|
22
|
+
transition-duration: 150ms;
|
|
23
|
+
transition-timing-function: ease-in;
|
|
24
|
+
`,e=>{if(e.clear)return"";const r=e.contrast||e.onColored?yt.contrast:yt.default;return e.disabled?r.disabled:e.error?r.error:e.success?r.success:e.checked?r.checked:r.default},ir,eo),fi=re.span.withConfig({displayName:"FormLabel__Control",componentId:"ui__sc-mry1kz-1"})(["margin:4px 0;height:fit-content;"]),mi=re.span.withConfig({displayName:"FormLabel__Content",componentId:"ui__sc-mry1kz-2"})(["box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;margin-left:12px;"]),bi=re.span.withConfig({shouldForwardProp:Xt}).withConfig({displayName:"FormLabel__Hint",componentId:"ui__sc-mry1kz-3"})(["display:flex;align-items:center;height:fit-content;",""],ir),Je={padding:"7px 11px",borderRadius:10,minWidth:"min-content"},hi={xl:{...Je,minHeight:56},l:{...Je,minHeight:52},m:{...Je,minHeight:48},s:{...Je,minHeight:44},xs:{...Je,minHeight:40}},gi={xl:{fontSize:20,marginTop:7},l:{fontSize:18,marginTop:6},m:{fontSize:18,marginTop:4},s:{fontSize:16,marginTop:4},xs:{fontSize:14,marginTop:4}},vi={xl:{fontSize:16,marginTop:8,marginBottom:8},l:{fontSize:16,marginTop:8,marginBottom:5},m:{fontSize:16,marginTop:7,marginBottom:4},s:{fontSize:14,marginTop:6,marginBottom:2},xs:{fontSize:12,marginTop:4,marginBottom:1}},yi={xl:{marginTop:4},l:{marginTop:4},m:{marginTop:2},s:{marginTop:2},xs:{marginTop:0}},Ct={xl:Se.xl,l:Se.l,m:Se.l,s:Se.m,xs:Se.m},wt=We((e,r)=>C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentcolor",width:"1em",height:"1em",ref:r,...e,children:C("path",{fillRule:"evenodd",d:"M12 3.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12m9.937-3.228a1.5 1.5 0 0 0-1.667.98.75.75 0 1 1-1.415-.499 2.998 2.998 0 0 1 5.827 1c0 1.146-.851 1.904-1.458 2.309a6 6 0 0 1-1.264.636l-.026.009-.008.003h-.003l-.002.001-.238-.711.239.711a.75.75 0 0 1-.476-1.422l.011-.004.056-.021c.05-.02.126-.05.217-.09.185-.082.426-.203.662-.36.516-.345.79-.711.79-1.062v-.001a1.5 1.5 0 0 0-1.245-1.48M11.21 15.5a.75.75 0 0 1 .75-.75h.01a.75.75 0 1 1 0 1.5h-.01a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})})),Ci=Hr(We(({size:e="m",textProps:r={},hint:t={},badgeProps:o={},sizeXXS:n,sizeXS:s,sizeS:c,sizeM:a,sizeL:i,sizeXL:d,disabled:l,error:p,success:u,checked:f,children:b,control:m,label:w,...y},E)=>{const S={size:e,sizeXXS:n,sizeXS:s,sizeS:c,sizeM:a,sizeL:i,sizeXL:d},g={disabled:l,error:p,success:u,checked:f},x=typeof m=="object"&&typeof m.props=="object"&&m.props!==null?m.props:{},{text:$,textProps:z={},buttonProps:T={},tooltipProps:k={}}=t,R=!!(k.title||k.content||k.heading||k.text||k.root||k.body);return C(pi,{...y,...S,...g,ref:E,children:[C(fi,{children:typeof m=="function"?m({...S,...g}):rr(m,{...S,...g,...x})}),C(mi,{children:[C(tr,{as:"span",appearance:"body",color:"inherit",wordBreak:"break-word",sizes:gi,...S,...r,children:w!=null?w:b}),$?C(tr,{as:"span",appearance:"caption",color:g.disabled?"content-disabled":"content-onmain-secondary",wordBreak:"break-word",sizes:vi,...S,...z,children:$}):null]}),C(bi,{sizes:yi,...S,children:[T.onClick&&!R?C(xr,{icon:C(wt,{}),marginLeft:2,...S,sizes:Ct,...T,disabled:g.disabled||T.disabled}):null,R?C(ui,{preset:"brand",placement:"top",styles:{wrapper:{cursor:"inherit"}},...k,children:C(xr,{icon:C(wt,{}),marginLeft:2,...S,sizes:Ct,...T,disabled:g.disabled||T.disabled})}):null,o.children?C(ro,{size:"s",cursor:"inherit",marginLeft:6,resetDefaultMargin:!0,shape:"rounded",...o}):null]})]})}),{displayName:"FormLabel",sizes:hi}),Pr=(e=14)=>D(["font-size:","px;svg{width:","px;height:","px;}"],e,e,e),wi=D(["cursor:not-allowed;color:#d4d4d4;svg{circle:nth-child(1){stroke:#d4d4d4;}circle:nth-child(2){fill:#d4d4d4;}}& > span{cursor:not-allowed;}"]),xi=D(["svg{circle{fill:#ffeef0;stroke:#ffa3a3;}circle:nth-child(2){fill:#ffa3a3;}}"]),Te=re.label.withConfig({shouldForwardProp:e=>["children","htmlFor"].includes(e)}).withConfig({displayName:"Radio__Root",componentId:"ui__sc-1u0nc40-0"})(["align-items:baseline;user-select:none;cursor:pointer;width:auto;svg{position:relative;top:2px;flex-shrink:0;circle:nth-child(2){opacity:0;transition:all 0.2s ease;}}& + &{margin-left:15px;}input{display:none;appearance:none;&:checked + svg{circle:nth-child(2){opacity:1;transform:scale(1);}","}}> span{margin-left:10px;cursor:pointer;}"," "," "," "," "," "," "," ",""],e=>e.error?null:D(["circle:not(:disabled){stroke:#48a1e6;}circle:not(:disabled):last-child{fill:#48a1e6;}"]),e=>e.size==="small"?Pr(14):null,e=>e.size==="medium"?Pr(16):null,e=>e.size==="large"?Pr(18):null,e=>e.disabled?wi:null,e=>e.error?xi:null,e=>e.display?to(e.display):null,e=>oo("width",e.fluid&&e.width!=="auto"&&!Array.isArray(e.width)?"max-width":"width"),e=>e.fluid?D(["width:100%;"]):null),ki=re.div.withConfig({shouldForwardProp:e=>e!=="inline"}).withConfig({displayName:"Radio__Group",componentId:"ui__sc-1u0nc40-1"})(["display:flex;flex-direction:column;line-height:normal;> ","{margin-left:0;&:not(:first-child){margin-top:15px;}}",""],Te,e=>e.inline?D(["flex-direction:row;&&& > ","{margin-top:0;}> "," + ","{margin-left:15px;}",""],Te,Te,Te,no()`
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
> &{Root} {
|
|
27
|
+
margin-top: 0;
|
|
28
|
+
}
|
|
29
|
+
> ${Te} + ${Te} {
|
|
30
|
+
margin-left: 0;
|
|
31
|
+
margin-top: 15px;
|
|
32
|
+
}
|
|
33
|
+
`):null);function Oi({children:e,...r}){return C(ki,{...r,children:e})}const Ei={xl:{width:32,height:32},l:{width:28,height:28},m:{width:24,height:24},s:{width:20,height:20},xs:{width:18,height:18}},Si=Ar(e=>!["inline","error","success","onColored","disabled"].includes(e)),be=re.input.withConfig({displayName:"InputRadio__Input",componentId:"ui__sc-rgocm7-0"})(["box-sizing:border-box;position:absolute;top:0;left:0;margin:0;border:none;opacity:0;width:100%;height:100%;z-index:1;&:focus{outline:none;}"]),ie=re.span.withConfig({displayName:"InputRadio__InputMask",componentId:"ui__sc-rgocm7-1"})(["box-sizing:border-box;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;border:1px solid transparent;&::before{content:'';position:absolute;width:40%;height:40%;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;opacity:0;}"]),Ae=e=>`
|
|
34
|
+
& > ${ie} {
|
|
35
|
+
background-color: ${e.backgroundColor};
|
|
36
|
+
border-color: ${e.borderColor};
|
|
37
|
+
}
|
|
38
|
+
& > ${ie}::before {
|
|
39
|
+
background-color: ${e.color};
|
|
40
|
+
}
|
|
41
|
+
${Et(`
|
|
42
|
+
background-color: ${e.backgroundColorHover};
|
|
43
|
+
border-color: ${e.borderColorHover};
|
|
44
|
+
&::before {
|
|
45
|
+
background-color: ${e.colorHover};
|
|
46
|
+
}
|
|
47
|
+
`,`&:hover > ${ie}`)}
|
|
48
|
+
& > ${be}:checked:not(:disabled) + ${ie} {
|
|
49
|
+
background-color: ${e.backgroundColorChecked};
|
|
50
|
+
border-color: ${e.borderColorChecked};
|
|
51
|
+
}
|
|
52
|
+
& > ${be}:checked:not(:disabled) + ${ie}::before {
|
|
53
|
+
background-color: ${e.colorChecked};
|
|
54
|
+
}
|
|
55
|
+
& > ${be}:disabled:not(:checked) + ${ie} {
|
|
56
|
+
background-color: ${e.backgroundColorDisabled};
|
|
57
|
+
border-color: ${e.borderColorDisabled};
|
|
58
|
+
}
|
|
59
|
+
& > ${be}:disabled:not(:checked) + ${ie}::before {
|
|
60
|
+
background-color: ${e.colorDisabled};
|
|
61
|
+
}
|
|
62
|
+
& > ${be}:disabled:checked + ${ie} {
|
|
63
|
+
background-color: ${e.backgroundColorDisabledChecked};
|
|
64
|
+
border-color: ${e.borderColorDisabledChecked};
|
|
65
|
+
}
|
|
66
|
+
& > ${be}:disabled:checked + ${ie}::before {
|
|
67
|
+
background-color: ${e.colorDisabledChecked};
|
|
68
|
+
}
|
|
69
|
+
`,xt={default:{error:D(["",""],e=>Ae({color:e.theme.colors["content-oncolor-primary"],backgroundColor:e.theme.colors["bg-onmain-primary"],borderColor:e.theme.colors["alert-bg-error-500"],colorHover:e.theme.colors["content-oncolor-primary"],backgroundColorHover:e.theme.colors["bg-onmain-primary"],borderColorHover:e.theme.colors["alert-bg-error-500"],colorChecked:e.theme.colors["content-oncolor-primary"],backgroundColorChecked:e.theme.colors["alert-bg-error-500"],borderColorChecked:e.theme.colors["alert-bg-error-500"],colorDisabled:e.theme.colors["bg-onmain-secondary"],backgroundColorDisabled:e.theme.colors["bg-disabled-large"],borderColorDisabled:e.theme.colors["border-disabled"],colorDisabledChecked:e.theme.colors["bg-onmain-secondary"],backgroundColorDisabledChecked:e.theme.colors["bg-disabled-active"],borderColorDisabledChecked:e.theme.colors["bg-disabled-active"],...e.palette})),success:D(["",""],e=>Ae({color:e.theme.colors["content-oncolor-primary"],backgroundColor:e.theme.colors["bg-onmain-primary"],borderColor:e.theme.colors["alert-bg-success-500"],colorHover:e.theme.colors["content-oncolor-primary"],backgroundColorHover:e.theme.colors["bg-onmain-primary"],borderColorHover:e.theme.colors["alert-bg-success-500"],colorChecked:e.theme.colors["content-oncolor-primary"],backgroundColorChecked:e.theme.colors["alert-bg-success-500"],borderColorChecked:e.theme.colors["alert-bg-success-500"],colorDisabled:e.theme.colors["bg-onmain-secondary"],backgroundColorDisabled:e.theme.colors["bg-disabled-large"],borderColorDisabled:e.theme.colors["border-disabled"],colorDisabledChecked:e.theme.colors["bg-onmain-secondary"],backgroundColorDisabledChecked:e.theme.colors["bg-disabled-active"],borderColorDisabledChecked:e.theme.colors["bg-disabled-active"],...e.palette})),default:D(["",""],e=>Ae({color:e.theme.colors["content-oncolor-primary"],backgroundColor:e.theme.colors["bg-onmain-primary"],borderColor:e.theme.colors["border-onmain-default-small"],colorHover:e.theme.colors["content-oncolor-primary"],backgroundColorHover:e.theme.colors["bg-onmain-primary"],borderColorHover:e.theme.colors["border-brand-primary"],colorChecked:e.theme.colors["content-oncolor-primary"],backgroundColorChecked:e.theme.colors["bg-brand-primary-basic"],borderColorChecked:e.theme.colors["bg-brand-primary-basic"],colorDisabled:e.theme.colors["bg-onmain-secondary"],backgroundColorDisabled:e.theme.colors["bg-disabled-large"],borderColorDisabled:e.theme.colors["border-disabled"],colorDisabledChecked:e.theme.colors["bg-onmain-secondary"],backgroundColorDisabledChecked:e.theme.colors["bg-disabled-active"],borderColorDisabledChecked:e.theme.colors["bg-disabled-active"],...e.palette}))},contrast:{error:D(["",""],e=>Ae({color:e.theme.colors["content-oncolor-primary"],backgroundColor:e.theme.colors["bg-onmain-secondary"],borderColor:e.theme.colors["alert-error"],colorHover:e.theme.colors["content-oncolor-primary"],backgroundColorHover:e.theme.colors["bg-onmain-secondary"],borderColorHover:e.theme.colors["alert-error"],colorChecked:e.theme.colors["content-oncolor-primary"],backgroundColorChecked:e.theme.colors["alert-bg-error-500"],borderColorChecked:e.theme.colors["alert-bg-error-500"],colorDisabled:e.theme.colors["bg-onmain-secondary"],backgroundColorDisabled:e.theme.colors["bg-disabled-small"],borderColorDisabled:e.theme.colors["border-disabled"],colorDisabledChecked:e.theme.colors["bg-onmain-secondary"],backgroundColorDisabledChecked:e.theme.colors["bg-disabled-active"],borderColorDisabledChecked:e.theme.colors["bg-disabled-active"],...e.palette})),success:D(["",""],e=>Ae({color:e.theme.colors["content-oncolor-primary"],backgroundColor:e.theme.colors["bg-onmain-secondary"],borderColor:e.theme.colors["alert-success"],colorHover:e.theme.colors["content-oncolor-primary"],backgroundColorHover:e.theme.colors["bg-onmain-secondary"],borderColorHover:e.theme.colors["alert-success"],colorChecked:e.theme.colors["content-oncolor-primary"],backgroundColorChecked:e.theme.colors["alert-bg-success-500"],borderColorChecked:e.theme.colors["alert-bg-success-500"],colorDisabled:e.theme.colors["bg-onmain-secondary"],backgroundColorDisabled:e.theme.colors["bg-disabled-small"],borderColorDisabled:e.theme.colors["border-disabled"],colorDisabledChecked:e.theme.colors["bg-onmain-secondary"],backgroundColorDisabledChecked:e.theme.colors["bg-disabled-active"],borderColorDisabledChecked:e.theme.colors["bg-disabled-active"],...e.palette})),default:D(["",""],e=>Ae({color:e.theme.colors["bg-brand-primary-basic"],backgroundColor:e.theme.colors["bg-onmain-primary"],borderColor:e.theme.colors["border-onmain-default-small"],colorHover:e.theme.colors["bg-brand-primary-basic"],backgroundColorHover:e.theme.colors["bg-onmain-primary"],borderColorHover:e.theme.colors["border-brand-primary"],colorChecked:e.theme.colors["bg-brand-primary-basic"],backgroundColorChecked:e.theme.colors["bg-oncolor-primary"],borderColorChecked:e.theme.colors["bg-oncolor-primary"],colorDisabled:e.theme.colors["bg-onmain-secondary"],backgroundColorDisabled:e.theme.colors["bg-disabled-small"],borderColorDisabled:e.theme.colors["border-disabled"],colorDisabledChecked:e.theme.colors["bg-onmain-secondary"],backgroundColorDisabledChecked:e.theme.colors["bg-disabled-active"],borderColorDisabledChecked:e.theme.colors["bg-disabled-active"],...e.palette}))}},zi=re.span.withConfig({shouldForwardProp:Si}).withConfig({displayName:"InputRadio__Root",componentId:"ui__sc-rgocm7-2"})([""," "," ",""],e=>`
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
isolation: isolate;
|
|
72
|
+
position: relative;
|
|
73
|
+
display: ${e.inline?"inline-flex":"flex"};
|
|
74
|
+
border-radius: 50%;
|
|
75
|
+
flex-shrink: 0;
|
|
76
|
+
cursor: ${e.disabled?"not-allowed":"pointer"};
|
|
77
|
+
& > ${be} {
|
|
78
|
+
cursor: inherit;
|
|
79
|
+
}
|
|
80
|
+
& > ${be}:checked + ${ie}::before {
|
|
81
|
+
opacity: 1;
|
|
82
|
+
}
|
|
83
|
+
& > ${be}:focus-visible + ${ie} {
|
|
84
|
+
box-shadow: 0 0 0 2px ${e.theme.colors["border-focus-inner"]}, 0 0 0 4px ${e.theme.colors["border-focus"]};
|
|
85
|
+
outline: 2px solid transparent;
|
|
86
|
+
outline-offset: 2px;
|
|
87
|
+
}
|
|
88
|
+
`,e=>{const r=e.contrast||e.onColored?xt.contrast:xt.default;return e.error?r.error:e.success?r.success:r.default},ir),$i=Hr(We(({size:e="m",sizeXXS:r,sizeXS:t,sizeS:o,sizeM:n,sizeL:s,sizeXL:c,sizes:a,sizeUnits:i,preset:d,inline:l,error:p,success:u,contrast:f,onColored:b,palette:m,style:w,className:y,disabled:E,...S},g)=>C(zi,{size:e,sizeXXS:r,sizeXS:t,sizeS:o,sizeM:n,sizeL:s,sizeXL:c,sizes:a,sizeUnits:i,preset:d,inline:l,error:p,success:u,contrast:f,onColored:b,palette:m,style:w,className:y,disabled:E,children:[C(be,{...S,disabled:E,type:"radio",ref:g}),C(ie,{})]})),{displayName:"InputRadio",sizes:Ei});function He(e){const r=e.checked===void 0,t=Ot(),{children:o,disabled:n,error:s,id:c,name:a,size:i,value:d,label:l,className:p,width:u=t.defaultInputControlsWidth,style:f,fluid:b,display:m,...w}=e,y=io(He.displayName),E=ao(y,p,e.checked&&!r?`${y}--checked`:null),S=`${y}__label`;return C(Te,{className:E,style:f,disabled:n,error:s,htmlFor:c||a,size:i,width:u,display:m,fluid:b,children:[C("input",{...w,id:c||a,name:a,type:"radio",value:d,disabled:n,...r?{defaultChecked:e.defaultChecked}:{checked:e.checked}}),C("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:[C("circle",{cx:"10",cy:"10",r:"9",stroke:"#727D8A",strokeWidth:"2",fill:"#fff"}),C("circle",{cx:"10",cy:"10",r:"5",fill:"#727D8A"})]}),l||o?C("span",{className:S,children:l||o}):null]})}He.defaultProps={disabled:!1,size:"medium",display:"inline-flex",onChange:e=>console.log(e,e.target.value)},He.Input=$i,He.Group=Oi,He.displayName="Radio";const Ri=re.div(["display:grid;grid-template-columns:1fr;",""],zt()`
|
|
89
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
90
|
+
`),Ti=re(Ci)(["padding:6px 0;color:",";&:hover{color:",";}",""],({theme:e})=>e.colors["content-onmain-primary"],({theme:e})=>e.colors["content-onmain-secondary"],zt()`
|
|
91
|
+
padding: 10px 0;
|
|
92
|
+
`),Ni=so([".","{z-index:",";}"],St,lo.MODAL);function Di({cities:e,currentValue:r,onClose:t,onSelect:o,open:n}){const s=co();return C(po,{closeButton:c=>C("span",{"data-fxa-path":"footer",children:C("span",{"data-fxa-kind":"modal","data-fxa-path":"city-dialog",children:C(xr,{...c,"data-fxa-action":"close",onClick:a=>{s({reason:"button",type:"footer.city.close"},Zr(a)),t()}})})}),open:n,overlayBlur:!0,overlayClassName:St,position:"center",positionS:"bottom-center",scrollable:!0,scrollFading:!0,size:"l",sizeM:"m",sizeS:"s",sizes:{m:{maxHeight:"760px",maxWidth:"440px"},s:{borderRadius:"20px 20px 0 0",maxHeight:"90vh",maxWidth:"100vw"}},title:c=>C(tr,{...c,fontFamily:"TT Foxford, sans-serif",lineHeight:1.2,size:24,weight:800,children:"Выберите свой город"}),children:[C(Ni,{}),C("div",{"data-fxa-path":"footer",children:C(Ri,{"data-fxa-kind":"modal","data-fxa-path":"city-dialog",children:e.map(c=>C(Ti,{checked:c.value===r,clear:!0,control:C(He.Input,{name:c.value,"data-fxa-path":"city",onChange:a=>{s({item:{title:c.name,url:c.value},type:"footer.city.select"},Zr(a)),o(c.value)},value:c.value}),label:c.name,size:"s",sizes:{s:{minHeight:0}}},c.value))})})]})}export{Di as CityDialog};
|
package/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export declare const NAV_LAYOUT: {
|
|
|
50
50
|
/** Id, на которые страницам можно опираться; остальные `SELECTOR_IDS` — деталь вёрстки. */
|
|
51
51
|
export declare const NAV_SELECTOR_IDS: {
|
|
52
52
|
readonly FOOTER: "foxNavFooter";
|
|
53
|
+
readonly MAIN_MENU: "foxNavMainMenu";
|
|
53
54
|
readonly NAVIGATION: "foxNav";
|
|
54
55
|
readonly SEARCH_PANEL_WRAPPER: "foxNavSearchPanelWrapper";
|
|
55
56
|
readonly TOP_MENU_ROOM: "foxNavUserPanelRoom";
|
|
@@ -72,7 +73,7 @@ declare const CONTEXT_OF_USE: {
|
|
|
72
73
|
readonly PORTAL: "portal";
|
|
73
74
|
};
|
|
74
75
|
export type ContextOfUse = (typeof CONTEXT_OF_USE)[keyof typeof CONTEXT_OF_USE];
|
|
75
|
-
export type NavigationSlotName = "aboveMenu" | "actionsButton" | "background" | "beforeEntry" | "belowMenu" | "
|
|
76
|
+
export type NavigationSlotName = "aboveMenu" | "actionsButton" | "background" | "beforeEntry" | "belowMenu" | "profileMenuBanner" | "searchPanel" | "sectionsBannerSide" | "sectionsBannerTop" | "supportButton" | "top";
|
|
76
77
|
export type FooterSlotName = "aboveLinks" | "banners" | "belowLinks" | "belowSubFooter";
|
|
77
78
|
export interface MountConfig extends NavigationAnalyticsOptions {
|
|
78
79
|
/** Origin бэкенда портала (например `https://foxford.ru`) — параметр РАНТАЙМА, не сборки. */
|