forked from Stock-control-supervisors/awesome-go
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
8158-07136c57de6190db.js.download
1 lines (1 loc) · 36.2 KB
/
8158-07136c57de6190db.js.download
1
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8158],{85824:function(e,n,t){"use strict";function r(e,n){if(n.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+n.length+" present")}t.d(n,{Z:function(){return r}})},16388:function(e,n,t){"use strict";var r=t(80344);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,s){if(s!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},54334:function(e,n,t){"use strict";e.exports=t(16388)()},80344:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},58564:function(e,n,t){"use strict";var r=t(91710),i=t(54334),o=t.n(i);function s(){return(s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var a=(0,r.forwardRef)(function(e,n){var t=e.color,i=e.size,o=void 0===i?24:i,a=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["color","size"]);return r.createElement("svg",s({ref:n,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===t?"currentColor":t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),r.createElement("line",{x1:"7",y1:"17",x2:"17",y2:"7"}),r.createElement("polyline",{points:"7 7 17 7 17 17"}))});a.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},a.displayName="ArrowUpRight",n.Z=a},23466:function(e,n,t){"use strict";var r=t(91710),i=t(54334),o=t.n(i);function s(){return(s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var a=(0,r.forwardRef)(function(e,n){var t=e.color,i=e.size,o=void 0===i?24:i,a=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["color","size"]);return r.createElement("svg",s({ref:n,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===t?"currentColor":t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),r.createElement("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),r.createElement("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),r.createElement("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"}))});a.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},a.displayName="Box",n.Z=a},11610:function(e,n,t){"use strict";var r=t(91710),i=t(54334),o=t.n(i);function s(){return(s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var a=(0,r.forwardRef)(function(e,n){var t=e.color,i=e.size,o=void 0===i?24:i,a=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["color","size"]);return r.createElement("svg",s({ref:n,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===t?"currentColor":t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),r.createElement("circle",{cx:"12",cy:"12",r:"10"}),r.createElement("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),r.createElement("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"}))});a.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},a.displayName="Globe",n.Z=a},67768:function(e,n,t){"use strict";var r=t(91710),i=t(54334),o=t.n(i);function s(){return(s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var a=(0,r.forwardRef)(function(e,n){var t=e.color,i=e.size,o=void 0===i?24:i,a=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],!(n.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,["color","size"]);return r.createElement("svg",s({ref:n,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:void 0===t?"currentColor":t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),r.createElement("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),r.createElement("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}))});a.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},a.displayName="Lock",n.Z=a},37437:function(e,n,t){"use strict";t.d(n,{p:function(){return i}});var r=t(75965);let i=e=>(0,r.jsxs)("svg",{fill:"none",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_1097_6119)",filter:"url(#filter0_d_1097_6119)",children:[(0,r.jsx)("rect",{fill:"url(#paint0_linear_1097_6119)",height:"48",rx:"9.33",shapeRendering:"crispEdges",width:"48",x:"1",y:"1"}),(0,r.jsx)("path",{clipRule:"evenodd",d:"M22.128 13.552a12.01 12.01 0 00-7.821 6.492c1.456-.647 3.156-1.131 4.974-1.456.656-1.845 1.603-3.562 2.847-5.036zm-8.95 11.098c.046-1.12.246-2.2.579-3.22 1.42-.779 3.204-1.367 5.177-1.76a19.845 19.845 0 00-.755 4.98h-5.001zm6.002 0a18.72 18.72 0 01.857-5.175 32.894 32.894 0 014.613-.384v5.559h-5.47zm6.47 0v-5.559c1.621.023 3.227.159 4.745.405.538 1.646.832 3.393.878 5.154H25.65zm0-6.56c1.47.021 2.94.132 4.354.335-.794-1.963-1.956-3.744-3.48-5.18a12.07 12.07 0 00-.874-.067v4.913zm6.624 6.56a19.295 19.295 0 00-.77-4.951c1.918.392 3.652.97 5.04 1.73.332 1.02.532 2.101.578 3.221h-4.848zm-1.128-6.04c1.77.325 3.425.802 4.847 1.434a12.01 12.01 0 00-7.78-6.481c1.282 1.477 2.259 3.199 2.933 5.048zm-10.73-.202a34.3 34.3 0 014.234-.317v-4.913c-.293.012-.584.035-.871.067-1.472 1.432-2.595 3.206-3.363 5.163zM18.18 25.65h-5.002c.039.95.188 1.87.436 2.75.02.009.041.019.061.03 1.406.785 3.18 1.38 5.143 1.78a19.922 19.922 0 01-.639-4.56zm.957 5.64c-1.856-.34-3.584-.85-5.05-1.53a12.01 12.01 0 008.04 6.988c-1.337-1.585-2.332-3.453-2.99-5.457zm1.121.184c1.426.206 2.909.319 4.392.34v5.308a12.138 12.138 0 01-.872-.068c-1.576-1.532-2.751-3.458-3.52-5.58zm4.392-.66a32.795 32.795 0 01-4.74-.404 18.813 18.813 0 01-.73-4.76h5.47v5.164zm1 1v5.308c.294-.012.585-.035.873-.068 1.634-1.537 2.85-3.47 3.644-5.598-1.464.218-2.99.336-4.517.358zm4.875-1.427c-1.555.26-3.207.403-4.875.427V25.65h5.623a18.27 18.27 0 01-.748 4.737zm.77.879c-.677 2.01-1.703 3.882-3.083 5.471a12.01 12.01 0 008-6.976c-1.43.664-3.111 1.164-4.917 1.505zm5.39-2.865a.492.492 0 00-.06.029c-1.372.766-3.094 1.352-5.002 1.751.396-1.472.612-3 .65-4.531h4.849c-.04.95-.189 1.87-.436 2.751zm-24.84-3.251c0-7.348 5.957-13.305 13.305-13.305s13.305 5.957 13.305 13.305-5.957 13.305-13.305 13.305-13.305-5.957-13.305-13.305z",fill:"#F7FDFA",fillRule:"evenodd"})]}),(0,r.jsxs)("defs",{children:[(0,r.jsxs)("filter",{colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",height:"50",id:"filter0_d_1097_6119",width:"50",x:"0",y:"1",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,r.jsx)("feOffset",{dy:"1"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5"}),(0,r.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,r.jsx)("feColorMatrix",{values:"0 0 0 0 0.001786 0 0 0 0 0.0294502 0 0 0 0 0.186214 0 0 0 0.275 0"}),(0,r.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1097_6119"}),(0,r.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1097_6119",result:"shape"})]}),(0,r.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint0_linear_1097_6119",x1:"25",x2:"25",y1:"1",y2:"49",children:[(0,r.jsx)("stop",{stopColor:"#53BEA5"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#249B81"})]}),(0,r.jsx)("clipPath",{id:"clip0_1097_6119",children:(0,r.jsx)("path",{d:"M0 0H50V50H0z",fill:"#fff"})})]})]})},31770:function(e,n,t){"use strict";t.d(n,{T:function(){return s}});var r=t(75965),i=t(20433),o=t.n(i);let s=e=>{let{className:n,size:t,logomark:i=!0,wordmark:s=!0,monochrome:a=!1}=e,l=a?"var(--gray-a8)":"currentColor";return(0,r.jsxs)(r.Fragment,{children:[s&&i&&(0,r.jsxs)("svg",{className:n,fill:"none",height:t,viewBox:"0 0 880 168",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{className:o()({"text-black dark:text-white":!a}),children:[(0,r.jsx)("path",{d:"M255.264 25.257H279.579L297.086 97.3994C300.332 111.016 300.976 119.125 300.976 119.125H301.304C301.304 119.125 302.435 111.186 305.681 97.3994L322.373 25.257H349.934L367.599 97.3994C371.003 111.502 371.818 119.125 371.818 119.125H372.304C372.304 119.125 372.632 111.502 375.866 97.3994L392.729 25.257H417.043L386.249 143.598H359.174L340.536 71.9417C336.646 56.3801 336.318 49.4139 336.318 49.4139H335.99C335.99 49.4139 335.661 56.3801 332.099 71.9417L314.592 143.598H286.715L255.264 25.257Z",fill:l}),(0,r.jsx)("path",{d:"M412.984 100.606C412.984 73.5314 430.491 56.0246 456.921 56.0246C483.181 56.0246 500.688 73.5314 500.688 100.606C500.688 127.839 483.181 145.516 456.921 145.516C430.503 145.504 412.984 127.839 412.984 100.606ZM477.99 100.606C477.99 83.0993 469.565 73.2031 456.921 73.2031C443.305 73.2031 435.682 84.2299 435.682 100.606C435.682 118.441 444.107 128.325 456.921 128.325C470.537 128.325 477.99 117.298 477.99 100.606Z",fill:l}),(0,r.jsx)("path",{d:"M511.546 57.3515H533.101V73.2413H533.587C537.319 64.9742 546.231 56.7072 561.464 56.7072C564.054 56.7072 565.683 57.0354 566.813 57.3515V78.9067H566.169C566.169 78.9067 564.224 78.2624 558.875 78.2624C542.182 78.2624 533.101 88.1464 533.101 106.626V143.584H511.546V57.3515Z",fill:l}),(0,r.jsx)("path",{d:"M576.868 25.257H598.423V63.1883C598.423 85.558 598.095 89.6065 598.095 89.6065H598.423L630.519 57.3527H657.424L619.833 94.6397L663.442 143.598H637.984L606.532 107.928L598.423 115.867V143.586H576.868V25.257Z",fill:l}),(0,r.jsx)("path",{d:"M663.757 84.8601C663.757 48.3876 686.455 24.0727 720.496 24.0727C754.537 24.0727 777.235 48.3876 777.235 84.8601C777.235 121.333 754.537 145.647 720.496 145.647C686.455 145.647 663.757 121.333 663.757 84.8601ZM753.722 84.8601C753.722 60.0588 740.434 43.3545 720.483 43.3545C700.533 43.3545 687.257 60.0588 687.257 84.8601C687.257 109.661 700.545 126.366 720.483 126.366C740.422 126.366 753.722 109.661 753.722 84.8601Z",fill:l}),(0,r.jsx)("path",{d:"M785.488 104.207H810.131C810.131 118.151 819.699 125.932 834.288 125.932C846.604 125.932 855.041 119.768 855.041 111.015C855.041 101.131 848.561 98.5292 827.966 94.4808C809.158 90.7484 789.22 84.4265 789.22 59.7833C789.22 39.2007 806.727 23.6392 833.473 23.6392C861.35 23.6392 878.541 38.2281 878.541 60.2696H853.898C853.898 49.5711 845.631 42.9209 833.473 42.9209C821.158 42.9209 813.535 48.9146 813.535 57.6679C813.535 66.9076 818.884 70.4698 835.419 73.8739C859.892 79.0651 880 81.8127 880 109.045C880 130.625 861.192 145.214 833.473 145.214C805.268 145.214 785.488 128.838 785.488 104.207Z",fill:l})]}),(0,r.jsxs)("g",{className:o()({"text-primary":!a}),children:[(0,r.jsx)("path",{d:"M0 83.8807C0 87.5586 0.967855 91.2364 2.83904 94.3981L36.7785 153.179C40.2628 159.18 45.5537 164.084 52.1351 166.277C65.1044 170.601 78.5253 165.051 84.9131 153.953L93.1076 139.758L60.7813 83.8807L94.9143 24.7126L103.109 10.5174C105.561 6.25879 108.851 2.77452 112.723 0H109.174H60.0715C50.8446 0 42.3275 4.9038 37.7463 12.9047L2.83904 73.3634C0.967855 76.525 0 80.2029 0 83.8807Z",fill:l}),(0,r.jsx)("path",{d:"M193.571 83.8802C193.571 80.2023 192.603 76.5245 190.732 73.3628L156.341 13.8075C149.953 2.77395 136.532 -2.77508 123.563 1.48348C116.982 3.67728 111.691 8.58108 108.206 14.5818L100.464 27.9382L132.79 83.8802L98.6569 143.048L90.4624 157.244C88.0105 161.438 84.7198 164.986 80.8484 167.761H84.3972H133.5C142.727 167.761 151.244 162.857 155.825 154.856L190.732 94.3975C192.603 91.2359 193.571 87.558 193.571 83.8802Z",fill:l})]})]}),s&&!i&&(0,r.jsx)("svg",{className:n,fill:"none",height:t,viewBox:"0 0 634 125",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsxs)("g",{className:o()({"text-black dark:text-white":!a}),children:[(0,r.jsx)("path",{d:"M0 2H24.6564L42.4089 75.1554C45.7005 88.9629 46.3539 97.1858 46.3539 97.1858H46.6868C46.6868 97.1858 47.8333 89.1355 51.1249 75.1554L68.0515 2H95.9995L113.912 75.1554C117.364 89.4561 118.19 97.1858 118.19 97.1858H118.683C118.683 97.1858 119.016 89.4561 122.296 75.1554L139.395 2H164.051L132.824 122.002H105.369L86.4698 49.3402C82.5248 33.5601 82.192 26.4961 82.192 26.4961H81.8591C81.8591 26.4961 81.5262 33.5601 77.9141 49.3402L60.1615 122.002H31.893L0 2Z",fill:l}),(0,r.jsx)("path",{d:"M159.934 78.5817C159.934 51.1268 177.687 33.3743 204.488 33.3743C231.117 33.3743 248.87 51.1268 248.87 78.5817C248.87 106.197 231.117 124.122 204.488 124.122C177.699 124.11 159.934 106.197 159.934 78.5817ZM225.853 78.5817C225.853 60.8291 217.309 50.794 204.488 50.794C190.681 50.794 182.951 61.9756 182.951 78.5817C182.951 96.6671 191.494 106.69 204.488 106.69C218.296 106.69 225.853 95.5083 225.853 78.5817Z",fill:l}),(0,r.jsx)("path",{d:"M259.88 34.72H281.737V50.833H282.23C286.015 42.4498 295.052 34.0667 310.499 34.0667C313.125 34.0667 314.777 34.3995 315.923 34.72V56.5779H315.27C315.27 56.5779 313.298 55.9245 307.873 55.9245C290.947 55.9245 281.737 65.9473 281.737 84.6861V122.164H259.88V34.72Z",fill:l}),(0,r.jsx)("path",{d:"M326.12 2.17383H347.977V40.6377C347.977 63.3216 347.645 67.4269 347.645 67.4269H347.977L380.524 34.7202H407.806L369.687 72.5307L413.909 122.176H388.093L356.2 86.0054L347.977 94.0557V122.164H326.12V2.17383Z",fill:l}),(0,r.jsx)("path",{d:"M414.229 62.615C414.229 25.6305 437.245 0.974121 471.764 0.974121C506.283 0.974121 529.3 25.6305 529.3 62.615C529.3 99.5995 506.283 124.256 471.764 124.256C437.245 124.256 414.229 99.5995 414.229 62.615ZM505.457 62.615C505.457 37.4655 491.982 20.5266 471.752 20.5266C451.521 20.5266 438.059 37.4655 438.059 62.615C438.059 87.7645 451.534 104.703 471.752 104.703C491.97 104.703 505.457 87.7645 505.457 62.615Z",fill:l}),(0,r.jsx)("path",{d:"M537.669 82.233H562.658C562.658 96.3734 572.36 104.263 587.154 104.263C599.642 104.263 608.198 98.013 608.198 89.1368C608.198 79.114 601.627 76.4757 580.743 72.3704C561.672 68.5857 541.453 62.175 541.453 37.1858C541.453 16.3142 559.206 0.53418 586.328 0.53418C614.596 0.53418 632.029 15.328 632.029 37.679H607.039C607.039 26.8302 598.656 20.0867 586.328 20.0867C573.84 20.0867 566.11 26.1645 566.11 35.0407C566.11 44.4101 571.534 48.0223 588.301 51.4742C613.117 56.7383 633.508 59.5245 633.508 87.1396C633.508 109.022 614.436 123.816 586.328 123.816C557.727 123.816 537.669 107.21 537.669 82.233Z",fill:l})]})}),i&&!s&&(0,r.jsx)("svg",{className:n,fill:"none",height:t,viewBox:"0 0 240 208",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsxs)("g",{className:o()({"text-primary":!a}),children:[(0,r.jsx)("path",{d:"M0 104C0 108.56 1.2 113.12 3.52 117.04L45.5999 189.92C49.9199 197.36 56.4799 203.44 64.6399 206.16C80.7199 211.52 97.3599 204.64 105.28 190.88L115.44 173.28L75.3599 104L117.68 30.64L127.84 13.04C130.88 7.75999 134.96 3.44 139.76 0H135.36H74.4799C63.0399 0 52.4799 6.07999 46.7999 16L3.52 90.9599C1.2 94.8799 0 99.4399 0 104Z",fill:l}),(0,r.jsx)("path",{d:"M240 103.999C240 99.4391 238.8 94.8791 236.48 90.9591L193.84 17.1192C185.92 3.43923 169.28 -3.44076 153.2 1.83923C145.04 4.55923 138.48 10.6392 134.16 18.0792L124.56 34.6392L164.64 103.999L122.32 177.359L112.16 194.959C109.12 200.159 105.04 204.559 100.24 207.999H104.64H165.52C176.96 207.999 187.52 201.919 193.2 191.999L236.48 117.039C238.8 113.119 240 108.559 240 103.999Z",fill:l})]})})]})}},14262:function(e,n,t){"use strict";t.d(n,{E:function(){return w},Z:function(){return j}});var r=t(75965),i=t(71978),o=t(18145),s=t(60031),a=t(91710),l=t(67768),c=t(23466),d=t(11610),h=t(58564),p=t(37437);let u=e=>{let{open:n,onOpenChange:t,onAccept:i,onCloseAutoFocus:o,title:c}=e,d=a.useRef(null);return(0,r.jsx)(s.Vq.fC,{open:n,onOpenChange:t,children:(0,r.jsxs)(s.Vq.VY,{style:{maxWidth:"550px"},onCloseAutoFocus:o,onOpenAutoFocus:e=>{var n;e.preventDefault(),null===(n=d.current)||void 0===n||n.focus()},children:[(0,r.jsx)(s.eB,{px:"current",side:"top",style:{boxShadow:"0 1px var(--gray-a4)",backgroundColor:"var(--gray-a2)"},children:(0,r.jsxs)(s.kC,{align:"center",gap:"2",justify:"between",py:"3",children:[(0,r.jsx)(s.Vq.Dx,{as:"h3",mb:"0",size:"3",trim:"both",children:c}),(0,r.jsxs)(s.xu,{position:"relative",children:[(0,r.jsx)(p.p,{height:"44",width:"44"}),(0,r.jsx)(s.xu,{mb:"-1",ml:"-1",p:"1",position:"absolute",style:{borderRadius:"var(--radius-6)",backgroundColor:"var(--gray-12)",left:0,bottom:0},children:(0,r.jsx)(l.Z,{color:"white",height:12,width:12})})]})]})}),(0,r.jsx)(s.xv,{as:"p",mb:"4",mt:"4",size:"2",children:"We collect your billing information now to prevent any billing-related service disruption when you onboard your enterprise customers."}),(0,r.jsx)(s.xv,{as:"p",size:"2",children:"You'll only be charged after creating your first active connection. This occurs when you onboard your first enterprise customer in production."}),(0,r.jsxs)(s.kC,{align:"center",justify:"between",mt:"5",children:[(0,r.jsx)(s.rU,{href:"https://workos.com/pricing",rel:"noreferrer",size:"2",target:"_blank",children:(0,r.jsxs)(s.kC,{align:"center",gap:"1",children:["Learn more about pricing",(0,r.jsx)(h.Z,{size:16})]})}),(0,r.jsxs)(s.kC,{gap:"2",children:[(0,r.jsx)(s.Vq.x8,{children:(0,r.jsx)(s.zx,{color:"gray","data-testid":"close-dialog-button",children:"Cancel"})}),(0,r.jsx)(s.Vq.x8,{children:(0,r.jsx)(s.zx,{ref:d,color:"purple",onClick:i,children:"Add your billing information"})})]})]})]})})};var x=t(84114),v=t(30468),f=t(47423),m=t(61726),C=t.n(m);let g={sandbox:"Free environment for integration and testing. Storage\xa0and usage limits apply.",production:"Highly available paid environment for production applications."},j=e=>{let{isProductionActive:n,isSandbox:t,...i}=e;if(!t&&!n)return(0,r.jsx)(l.Z,{...i});let o=t?c.Z:d.Z;return(0,r.jsx)(o,{color:t?"var(--blue-9)":"var(--green-9)",...i})},w=()=>{let{availableEnvironments:e,currentEnvironment:n,setCurrentEnvironment:t,environmentId:l}=(0,v.useCurrentEnvironment)(),{currentTeam:c}=(0,x.useAuth)(),[d,h]=a.useState(!1),p="Active"===c.productionState,[m,w]=a.useState(!1),[y,b]=a.useState(null),H=a.useRef(null);return n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.fC,{open:d,onOpenChange:e=>h(e),children:[(0,r.jsx)(i.xz,{ref:H,asChild:!0,children:(0,r.jsx)(s.zx,{"data-testid":"environment-dropdown-".concat(l),title:"Change environment context",style:{backgroundColor:"var(--gray-surface)",padding:"0 var(--space-2)"},children:(0,r.jsxs)(s.kC,{align:"center",justify:"between",width:"100%",children:[(0,r.jsxs)(s.kC,{align:"center",gap:"2",minWidth:"0",children:[(0,r.jsx)(s.xu,{flexShrink:"0",children:(0,r.jsx)(j,{isProductionActive:p,isSandbox:n.sandbox,size:16})}),(0,r.jsx)(s.xu,{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",lineHeight:"var(--space-6)"},children:n.name})]}),(0,r.jsx)(s.xu,{flexShrink:"0",style:{marginBottom:1},children:(0,r.jsx)(o.v4q,{color:"var(--gray-12)"})})]})})}),(0,r.jsx)(i.Uv,{children:(0,r.jsx)(s.Q2,{asChild:!0,children:(0,r.jsxs)(i.VY,{align:"start",className:C().EnvironmentDropdownContent,sideOffset:8,children:[(0,r.jsx)(i.__,{children:(0,r.jsxs)(s.xu,{children:[(0,r.jsx)(s.xu,{px:"3",py:"1",children:(0,r.jsx)(s.xv,{size:"2",weight:"bold",children:"Environment selection"})}),(0,r.jsx)(s.Z0,{size:"4"})]})}),(0,r.jsx)(i.Ee,{"aria-label":"Environment Selection",className:C().EnvironmentDropdownRadioGroup,value:n.name,children:e.map(e=>{let{id:o,name:a,sandbox:l}=e,d=l?g.sandbox:g.production;return(0,r.jsxs)(i.Rk,{className:C().EnvironmentDropdownRadioItem,"data-testid":"environment-dropdown-item-".concat(o),value:a,onSelect:()=>{let r=!l;r&&!p&&n.sandbox&&r?(b(e),h(!1),w(!0),(0,f.zN)({dialogName:"billing",environment:{id:n.id,isSandbox:n.sandbox},team:{id:c.id||""}})):t(e)},children:[(0,r.jsx)(s.xu,{style:{paddingTop:2},children:(0,r.jsx)(j,{isProductionActive:p,isSandbox:l,size:16})}),(0,r.jsxs)(s.kC,{direction:"column",width:"305px",children:[(0,r.jsx)(s.xv,{"data-testid":"environment-dropdown-item-title",size:"2",weight:"bold",children:a}),(0,r.jsxs)(s.xv,{color:"gray",size:"1",children:[d," ",!l&&!p&&(0,r.jsxs)(s.xv,{children:["To enable,"," ",(0,r.jsx)(s.xv,{color:"purple",children:"enter your billing information"}),"."]})]})]})]},"environment-".concat(o))})}),!p&&(0,r.jsxs)(s.xu,{children:[(0,r.jsx)(s.Z0,{size:"4"}),(0,r.jsx)(s.kC,{p:"3",children:(0,r.jsx)(s.kC,{asChild:!0,align:"center",display:"inline-flex",gap:"1",children:(0,r.jsxs)(s.rU,{color:"gray",href:"https://workos.com/pricing",rel:"noreferrer",size:"1",target:"_blank",trim:"both",children:["Learn more about pricing",(0,r.jsx)(o.h0n,{})]})})})]})]})})})]}),(0,r.jsx)(u,{open:m,title:"Add billing information to enable ".concat(null==y?void 0:y.name),onCloseAutoFocus:()=>{var e;return null===(e=H.current)||void 0===e?void 0:e.focus()},onOpenChange:e=>w(e),onAccept:()=>{y&&t(y)}})]}):null}},32659:function(e,n,t){"use strict";t.r(n),t.d(n,{Sidebar:function(){return B}});var r=t(75965),i=t(18145),o=t(60031),s=t(20433),a=t.n(s),l=t(52642),c=t(77058),d=t(91710),h=t(31770),p=t(634),u=t(73498),x=t(84114),v=t(14262),f=t(68948),m=t(14097),C=t(81724),g=t(30468),j=t(20804),w=t(89419),y=t.n(w);let b=e=>{let{children:n,state:t="normal",...i}=e;return(0,r.jsx)("li",{children:(0,r.jsx)(l.default,{prefetch:!0,passHref:"disabled"!==t,...i,legacyBehavior:!0,children:(0,r.jsx)("disabled"===t?"span":"a",{className:a()(y().SidebarLink,y()["state-".concat(t)]),children:n})})})},H=e=>(0,r.jsx)(o.xv,{...e,as:"p",color:"gray",size:"1",style:{textTransform:"uppercase",fontSize:11,letterSpacing:"0.8px",cursor:"default",marginLeft:"var(--space-2)",marginBottom:"var(--space-1)",WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}}),k=new Set([m.KWf.Admin,m.KWf.Member]),V=new Set([m.KWf.Admin,m.KWf.Member]),_=()=>{let{role:e}=(0,C.j)(),n=(0,c.usePathname)(),{environmentId:t,currentEnvironment:s}=(0,g.useCurrentEnvironment)(),{currentTeam:a}=(0,x.useAuth)(),l=(0,f.p)(),h=e&&k.has(e),p=e&&k.has(e),u=!s.sandbox,v=a.productionState,m=u&&"Active"!==v,w=e&&V.has(e),y=d.useMemo(()=>{let e={id:"main",items:[{name:"Overview",paths:["/get-started"],path:"/get-started",icon:(0,r.jsx)(i.QGC,{})},{name:"Organizations",paths:["/".concat(t,"/organizations"),"/organizations","/sso/connections","directory-sync/connections"],path:"/".concat(t,"/organizations"),icon:(0,r.jsx)(i.uQz,{})},{name:"Users",paths:["/".concat(t,"/users")],path:"/".concat(t,"/users"),icon:(0,r.jsx)(i.Tk0,{})}]},n={name:"Configuration",id:"configuration",items:[{name:"Authentication",paths:["/".concat(t,"/authentication")],path:"/".concat(t,"/authentication"),icon:(0,r.jsx)(L,{})},{name:"Directory Sync",paths:[],path:"/".concat(t,"/directory-sync"),icon:(0,r.jsx)(Z,{})},{name:"Roles",paths:["/".concat(t,"/roles")],path:"/".concat(t,"/roles"),icon:(0,r.jsx)(A,{})},{name:"Audit Logs",paths:["/".concat(t,"/audit-logs")],path:"/".concat(t,"/audit-logs"),icon:(0,r.jsx)(M,{})},...w?[{name:"Branding",paths:["/branding"],path:"/branding",icon:(0,r.jsx)(O,{})}]:[],{name:"Domains",paths:["/domains"],path:"/domains",icon:(0,r.jsx)(i.n9J,{})}]},o={name:"Developer",id:"developer",items:[{name:"Redirects",paths:["/redirects"],path:"/".concat(t,"/redirects"),icon:(0,r.jsx)(i.qDj,{})},{name:"API Keys",paths:["/api-keys"],path:"/".concat(t,"/api-keys"),icon:(0,r.jsx)(E,{})},{name:"API Logs",paths:["/api-logs"],path:"/".concat(t,"/api-logs"),icon:(0,r.jsx)(R,{})},{name:"Webhooks",paths:["/webhooks"],path:"/".concat(t,"/webhooks"),icon:(0,r.jsx)(z,{})},{name:"Events",paths:["/".concat(t,"/events")],path:"/".concat(t,"/events"),icon:(0,r.jsx)(S,{})},...l?[{name:"Test SSO",paths:["/".concat(t,"/test-sso")],path:"/".concat(t,"/test-sso"),icon:(0,r.jsx)(i.YGl,{})}]:[]]};return[e,h?n:null,p?o:null].filter(j.v)},[w,h,p,l,t]);return(0,r.jsx)("nav",{style:{display:"flex",flexDirection:"column",gap:"var(--space-5)"},children:y.map(e=>{let{name:t,id:i,items:s}=e;return(0,r.jsxs)(o.kC,{direction:"column",gap:"1",children:[t&&(0,r.jsx)(H,{children:t}),(0,r.jsx)("ul",{style:{display:"flex",flexDirection:"column",gap:"var(--space-1)"},children:s.map(e=>{let t=e.paths.some(e=>n.includes(e))||e.path===n;return(0,r.jsxs)(b,{href:e.path,state:m?"disabled":t?"active":"normal",children:[(0,r.jsx)("i",{"data-testid":"icon",children:e.icon})," ",e.name]},e.name)})})]},i)})})},L=e=>(0,r.jsx)("svg",{...e,fill:"none",height:16,width:16,xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{clipRule:"evenodd",d:"M3 2h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1ZM1 3a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3Zm6 1v2.414l.293.293.707.707v.172l-.707.707L7 8.586V12h2V9.414l.707-.707.293-.293V6.586l-.293-.293L9 5.586V4H7ZM3 3h1v1H3V3Zm10 0h-1v1h1V3Zm-1 9h1v1h-1v-1Zm-8 0H3v1h1v-1Z",fill:"currentColor",fillRule:"evenodd"})}),Z=e=>(0,r.jsx)("svg",{...e,fill:"none",height:16,width:16,xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{clipRule:"evenodd",d:"M5.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm0 1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm-4.162 2.705C1.133 12.104 1 12.674 1 13.5a.5.5 0 0 1-1 0c0-.924.147-1.666.448-2.252a2.777 2.777 0 0 1 1.299-1.26c.53-.257 1.136-.374 1.761-.431C4.13 9.5 4.806 9.5 5.486 9.5h.028c.68 0 1.357 0 1.978.057.625.057 1.231.174 1.761.43.542.262.992.664 1.299 1.261.3.586.448 1.328.448 2.252a.5.5 0 0 1-1 0c0-.826-.133-1.396-.338-1.795a1.779 1.779 0 0 0-.844-.817c-.375-.182-.846-.283-1.417-.335C6.83 10.5 6.196 10.5 5.5 10.5s-1.33 0-1.9.053c-.572.052-1.043.153-1.418.335-.363.175-.645.43-.844.817Zm13.326.795H11.94c-.077-.625-.237-1.198-.5-1.71a3.776 3.776 0 0 0-1.895-1.769c.297-.015.613-.021.948-.021 2.886 0 4.384.463 4.493 3.169a.321.321 0 0 1-.323.331Zm-4.17-4c-.49 0-.947-.14-1.332-.384A4.48 4.48 0 0 0 10 5.5c0-.655-.14-1.277-.392-1.839a2.5 2.5 0 1 1 .885 4.839Z",fill:"currentColor",fillRule:"evenodd"})}),O=e=>(0,r.jsxs)("svg",{...e,fill:"none",height:16,width:16,xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"m6.588 12.27 2.41-8.996a.353.353 0 0 0-.25-.433L4.924 1.816a.353.353 0 0 0-.432.25l-2.41 8.996a2.333 2.333 0 1 0 4.507 1.208Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M4.333 14h9.314a.353.353 0 0 0 .353-.353V9.686M4.333 11.733h.001v.002h-.001v-.002Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"m5.32 13.78 8.441-3.935a.353.353 0 0 0 .171-.47l-1.674-3.59a.353.353 0 0 0-.469-.17L8.02 7.373",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]}),M=e=>(0,r.jsx)("svg",{...e,fill:"none",height:16,width:16,xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{clipRule:"evenodd",d:"M2.5 2a.5.5 0 0 0-.5.5V6H1V2.5A1.5 1.5 0 0 1 2.5 1H6v1H2.5ZM4 4h1V3H3.52a.52.52 0 0 0-.52.52V5h1V4Zm1 8H4v-1H3v1.48c0 .287.233.52.52.52H5v-1Zm7-8h-1V3h1.48a.52.52 0 0 1 .52.52V5h-1V4Zm-1 8h1v-1h1v1.48a.52.52 0 0 1-.52.52H11v-1Zm2.5-10a.5.5 0 0 1 .5.5V6h1V2.5A1.5 1.5 0 0 0 13.5 1H10v1h3.5Zm.5 11.5a.5.5 0 0 1-.5.5H10v1h3.5a1.5 1.5 0 0 0 1.5-1.5V10h-1v3.5ZM2.5 14a.5.5 0 0 1-.5-.5V10H1v3.5A1.5 1.5 0 0 0 2.5 15H6v-1H2.5ZM4 8.5h8v-1H4v1Zm8-2H4v-1h8v1Zm-8 4h8v-1H4v1Z",fill:"currentColor",fillRule:"evenodd"})}),z=e=>(0,r.jsx)("svg",{...e,fill:"none",height:16,width:16,xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{clipRule:"evenodd",d:"M12 2.563V0h-1v2.563a2 2 0 0 0 .004 3.875A.508.508 0 0 0 11 6.5v.106L9.142 10.32a.4.4 0 1 0 .716.358L11 8.395V10.5a3.5 3.5 0 1 1-7 0V8h3L3 2v8.5a4.5 4.5 0 1 0 9 0V8.395l1.142 2.284a.4.4 0 0 0 .716-.358L12 6.606V6.5a.508.508 0 0 0-.004-.062A2 2 0 0 0 12 2.563Zm-.5.937a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor",fillRule:"evenodd"})}),S=e=>(0,r.jsxs)("svg",{fill:"currentcolor",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,r.jsx)("path",{clipRule:"evenodd",d:"M12.5 4H1.5C1.22386 4 1 3.77614 1 3.5V3.5C1 3.22386 1.22386 3 1.5 3H12.5V4Z",fillRule:"evenodd"}),(0,r.jsx)("path",{d:"M11.41 5.65829C11.2472 5.79399 11 5.6782 11 5.46624V1.53376C11 1.3218 11.2472 1.20601 11.41 1.3417L13.7695 3.30794C13.8895 3.40789 13.8895 3.59211 13.7695 3.69206L11.41 5.65829Z"}),(0,r.jsx)("path",{clipRule:"evenodd",d:"M1.5 14C1.22386 14 1 13.7761 1 13.5V8.5C1 8.22386 1.22386 8 1.5 8V8C1.77614 8 2 8.22386 2 8.5V13.5C2 13.7761 1.77614 14 1.5 14V14ZM3.5 9.5C3.77614 9.5 4 9.72386 4 10V13.5C4 13.7761 3.77614 14 3.5 14V14C3.22386 14 3 13.7761 3 13.5V10C3 9.72386 3.22386 9.5 3.5 9.5V9.5Z",fillRule:"evenodd"}),(0,r.jsx)("path",{clipRule:"evenodd",d:"M5.5 14C5.22386 14 5 13.7761 5 13.5V8.5C5 8.22386 5.22386 8 5.5 8V8C5.77614 8 6 8.22386 6 8.5V13.5C6 13.7761 5.77614 14 5.5 14V14ZM9.5 14C9.22386 14 9 13.7761 9 13.5V8.5C9 8.22386 9.22386 8 9.5 8V8C9.77614 8 10 8.22386 10 8.5V13.5C10 13.7761 9.77614 14 9.5 14V14ZM13.5 14C13.2239 14 13 13.7761 13 13.5V8.5C13 8.22386 13.2239 8 13.5 8V8C13.7761 8 14 8.22386 14 8.5V13.5C14 13.7761 13.7761 14 13.5 14V14ZM11.5 8.5C11.7761 8.5 12 8.72386 12 9V13.5C12 13.7761 11.7761 14 11.5 14V14C11.2239 14 11 13.7761 11 13.5V9C11 8.72386 11.2239 8.5 11.5 8.5V8.5ZM7.5 9.5C7.77614 9.5 8 9.72386 8 10V13.5C8 13.7761 7.77614 14 7.5 14V14C7.22386 14 7 13.7761 7 13.5V10C7 9.72386 7.22386 9.5 7.5 9.5V9.5Z",fillRule:"evenodd"})]}),E=e=>(0,r.jsxs)("svg",{...e,fill:"none",height:16,width:16,xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M12 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),(0,r.jsx)("path",{clipRule:"evenodd",d:"M6.193 7.807a4.5 4.5 0 1 1 3 3L4 16H1v-3l1-1h1v-1h1v-1h1V9l1.193-1.193ZM3.586 15H2v-1.586L2.414 13H4v-1h1v-1h1V9.414l1.324-1.323-.174-.574A3.5 3.5 0 1 1 9.483 9.85l-.574-.174L3.586 15Z",fill:"currentColor",fillRule:"evenodd"})]}),R=e=>(0,r.jsx)("svg",{...e,fill:"none",height:16,width:16,xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{clipRule:"evenodd",d:"M15 3a1 1 0 1 0-2 0v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-1h2V3.5A2.5 2.5 0 0 1 4.5 1H14a2 2 0 1 1-.5 3.937v-1.07A1 1 0 0 0 15 3ZM2 15a1 1 0 0 1-1-1h8c0 .364.097.706.268 1H2Zm9 0a1 1 0 0 1-1-1v-1H3V3.5A1.5 1.5 0 0 1 4.5 2h7.768c-.17.294-.268.636-.268 1v11a1 1 0 0 1-1 1Zm0-10H4v1h7V5ZM4 7h7v1H4V7Zm7 2H4v1h7V9Z",fill:"currentColor",fillRule:"evenodd"})}),A=e=>(0,r.jsx)("svg",{...e,fill:"none",height:16,viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{clipRule:"evenodd",d:"M1.5 2H14.5C14.7761 2 15 2.22386 15 2.5V9.5C15 9.77614 14.7761 10 14.5 10H1.5C1.22386 10 1 9.77614 1 9.5V2.5C1 2.22386 1.22386 2 1.5 2ZM0 2.5C0 1.67157 0.671573 1 1.5 1H14.5C15.3284 1 16 1.67157 16 2.5V9.5C16 10.3284 15.3284 11 14.5 11H1.5C0.671573 11 0 10.3284 0 9.5V2.5ZM5 5.3C5.44183 5.3 5.8 4.94183 5.8 4.5C5.8 4.05817 5.44183 3.7 5 3.7C4.55817 3.7 4.2 4.05817 4.2 4.5C4.2 4.94183 4.55817 5.3 5 5.3ZM5 6C5.82843 6 6.5 5.32843 6.5 4.5C6.5 3.67157 5.82843 3 5 3C4.17157 3 3.5 3.67157 3.5 4.5C3.5 5.32843 4.17157 6 5 6ZM2.72774 8.13155C2.69079 8.3744 2.69 8.65531 2.69 9H1.99L1.99 8.98369C1.98999 8.65858 1.98997 8.32683 2.0357 8.02626C2.08317 7.71425 2.18358 7.40574 2.40676 7.14244C2.85082 6.61855 3.66827 6.4 5.01 6.4C6.35173 6.4 7.16918 6.61855 7.61324 7.14244C7.83642 7.40574 7.93683 7.71425 7.9843 8.02626C8.03003 8.32683 8.03001 8.65859 8.03 8.98369V9H7.33C7.33 8.65531 7.32921 8.3744 7.29226 8.13155C7.25629 7.89513 7.18983 7.72551 7.07926 7.59506C6.85582 7.33145 6.33827 7.1 5.01 7.1C3.68173 7.1 3.16418 7.33145 2.94074 7.59506C2.83017 7.72551 2.76371 7.89513 2.72774 8.13155ZM14 4H9V5H14V4ZM9 6H14V7H9V6ZM1 11.5C1 12.3284 1.67157 13 2.5 13H13.5C14.3284 13 15 12.3284 15 11.5H14C14 11.7761 13.7761 12 13.5 12H2.5C2.22386 12 2 11.7761 2 11.5H1ZM3.5 15C2.67157 15 2 14.3284 2 13.5H3C3 13.7761 3.22386 14 3.5 14H12.5C12.7761 14 13 13.7761 13 13.5H14C14 14.3284 13.3284 15 12.5 15H3.5Z",fill:"currentColor",fillRule:"evenodd"})});var T=t(54532),N=t.n(T);let B=()=>{var e;let{currentTeam:n}=(0,x.useAuth)(),t=(0,c.usePathname)(),[s,f]=d.useState(!1),m=d.useCallback(()=>{f(e=>!e)},[]);return d.useEffect(()=>{let e=e=>{"Escape"===e.key&&(e.preventDefault(),f(!1))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[]),d.useEffect(()=>{f(!1)},[t]),(0,r.jsxs)(o.xu,{style:{flexShrink:0},children:[(0,r.jsx)(o.xr.Root,{asChild:!0,children:(0,r.jsxs)("aside",{className:a()(N().Sidebar,s&&N().open),style:{"--sidebar-width":"240px"},children:[(0,r.jsx)(o.xr.Viewport,{children:(0,r.jsxs)(o.kC,{direction:"column",height:"100%",justify:"between",style:{minHeight:"100vh"},children:[(0,r.jsxs)(o.kC,{className:N().Content,direction:"column",gap:"4",children:[(0,r.jsxs)(o.kC,{align:"start",gap:"3",justify:"between",children:[(0,r.jsx)(o.X6,{as:"h1",className:N().Heading,size:"3",trim:"both",children:null!==(e=n.name)&&void 0!==e?e:"WorkOS"}),(0,r.jsxs)(o.kC,{align:"center",gap:"2",children:[(0,r.jsx)(l.default,{legacyBehavior:!0,passHref:!0,prefetch:!0,href:"/settings/team",children:(0,r.jsx)(o.rU,{className:N().SettingsLink,color:"gray",size:"2",children:(0,r.jsx)(i.UG6,{})})}),s?(0,r.jsx)(o.hU,{"aria-label":"Close menu",className:N().Toggle,size:"1",onClick:m,children:(0,r.jsx)(i.ypG,{})}):(0,r.jsxs)(o.zx,{ghost:!0,className:N().Toggle,size:"2",style:{pointerEvents:"auto",marginTop:0},onClick:m,children:[(0,r.jsx)(i.RYk,{}),"Menu"]})]})]}),(0,r.jsxs)(o.kC,{className:N().Items,direction:"column",gap:"2",children:[(0,r.jsx)(v.E,{}),(0,r.jsx)(_,{})]}),(0,r.jsxs)(o.kC,{className:N().Footer,display:{sm:"none"},gap:"2",pt:"5",style:{marginTop:"auto"},children:[(0,r.jsx)(u.L,{children:(0,r.jsxs)(o.zx,{ghost:!0,color:"gray",size:"2",children:[(0,r.jsx)(i.pjG,{})," Help"]})}),(0,r.jsx)(p.A,{})]})]}),(0,r.jsx)(o.xu,{className:N().Logo,display:{initial:"none",sm:"block"},p:"5",children:(0,r.jsx)(h.T,{monochrome:!0,size:"30",wordmark:!1})})]})}),(0,r.jsx)(o.xr.Scrollbar,{})]})}),(0,r.jsx)(o.xu,{className:N().Backdrop,onMouseDown:m})]})}},68948:function(e,n,t){"use strict";t.d(n,{p:function(){return i}});var r=t(30468);let i=()=>{let{currentEnvironment:e}=(0,r.useCurrentEnvironment)();return e.sandbox}},81724:function(e,n,t){"use strict";t.d(n,{j:function(){return o}});var r=t(14097),i=t(84114);let o=()=>{var e;let{user:n}=(0,i.useAuth)(),t=null===(e=n.users_teams.find(e=>e.user.id===n.id))||void 0===e?void 0:e.role;return{isUserAdmin:t===r.KWf.Admin,role:t}}},20804:function(e,n,t){"use strict";t.d(n,{v:function(){return r}});let r=e=>null!=e},61726:function(e){e.exports={EnvironmentDropdownContent:"environment-dropdown_EnvironmentDropdownContent__VmUxb",EnvironmentDropdownRadioGroup:"environment-dropdown_EnvironmentDropdownRadioGroup__odTBC",EnvironmentDropdownRadioItem:"environment-dropdown_EnvironmentDropdownRadioItem__ZRsOl"}},89419:function(e){e.exports={SidebarLink:"sidebar-link_SidebarLink__dNQgq","state-normal":"sidebar-link_state-normal__0ElhN","state-active":"sidebar-link_state-active__KXDOm","state-disabled":"sidebar-link_state-disabled__jn_ZX"}},54532:function(e){e.exports={Sidebar:"sidebar_Sidebar___8Ruz",open:"sidebar_open__U0oxm",AnimateSidebarIn:"sidebar_AnimateSidebarIn__uKgXb",Backdrop:"sidebar_Backdrop__8uvCk",Items:"sidebar_Items__rftX4",Heading:"sidebar_Heading__vuHXP",Footer:"sidebar_Footer__V_IS_",Logo:"sidebar_Logo__3EQiB",SettingsLink:"sidebar_SettingsLink__OP3xz",Content:"sidebar_Content__k14aA",Toggle:"sidebar_Toggle____ZlM"}}}]);