@useloops/design-system 1.4.56 → 1.4.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as a,Fragment as r}from"react/jsx-runtime";import{useTheme as n,SvgIcon as i,Typography as o,Stack as s,Avatar as t,AvatarGroup as l,styled as c,CircularProgress as d,Button as u,Box as m,FormControlLabel as h,Checkbox as g,TextField as b,InputAdornment as p,FormGroup as k,alpha as y,Container as f,InputLabel as v,Radio as w,RadioGroup as z,Grid as j,useMediaQuery as x,MenuItem as q,Select as $,IconButton as C,ButtonGroup as S,Link as O,Slider as N,Rating as E,Paper as P,Switch as M,Tooltip as I,Menu as A,LinearProgress as T,linearProgressClasses as F,createTheme as R,GlobalStyles as _,CssBaseline as D}from"@mui/material";import{LockOutlined as L,MenuRounded as V,QueryBuilderRounded as B,WarningAmberRounded as H,LightbulbOutlined as U,ErrorOutlineOutlined as G,CheckCircleOutlineOutlined as W,InfoOutlined as Z,ExpandMore as K,ArrowForward as Y,Close as J,PlayCircle as X,Check as Q,Remove as ee,Info as ae,ErrorOutline as re,KeyboardArrowDown as ne,DragHandle as ie}from"@mui/icons-material";import*as oe from"react";import se,{createContext as te,useMemo as le,useContext as ce,useState as de,Fragment as ue,useEffect as me,useRef as he,useCallback as ge,forwardRef as be,useImperativeHandle as pe,createElement as ke,startTransition as ye}from"react";import{defaultDropAnimationSideEffects as fe,DragOverlay as ve,useSensors as we,useSensor as ze,KeyboardSensor as je,DndContext as xe,MeasuringStrategy as qe,MouseSensor as $e,TouchSensor as Ce}from"@dnd-kit/core";import{useSortable as Se,defaultAnimateLayoutChanges as Oe,sortableKeyboardCoordinates as Ne,arrayMove as Ee,SortableContext as Pe,horizontalListSortingStrategy as Me,verticalListSortingStrategy as Ie}from"@dnd-kit/sortable";import{CSS as Ae}from"@dnd-kit/utilities";import{createPortal as Te}from"react-dom";import{ThemeContext as Fe}from"@mui/styled-engine";import{CacheProvider as Re}from"@emotion/react";const _e=(...e)=>{const a=[];for(const r of e)if(r)if(Array.isArray(r))for(const e of r)a.push(e);else a.push(r);return a},De={sm:0,md:584,lg:812,lgNav:1e3,xl:1280,xxl:1728},Le=0,Ve=4,Be=8,He=16,Ue=24,Ge=32,We=40,Ze=48,Ke=Be,Ye={none:Le,xs:Ve/Ke,sm:Be/Ke,md:He/Ke,lg:Ge/Ke,xl:Ze/Ke,xxl:80/Ke,xxxl:160/Ke},Je={none:Le,xs:Ve/Ke,sm:Be/Ke,md:He/Ke,lg:Ge/Ke,xl:Ze/Ke},Xe={none:Le,xs:2/Ke,sm:Ve/Ke,md:Be/Ke,lg:He/Ke,xl:Ue/Ke,round:999},Qe={raised:"0px 0px 0px 1px rgba(255, 255, 255, 0.12), 0px 0px 4px 2px rgba(6, 4, 13, 0.04), 0px 1px 2px 0px rgba(6, 4, 13, 0.16)",overlay:"0px 0px 0px 1px rgba(255, 255, 255, 0.16), 0px 0px 4px 2px rgba(6, 4, 13, 0.04), 0px 16px 24px 0px rgba(6, 4, 13, 0.08), 0px 4px 8px 0px rgba(6, 4, 13, 0.08)"},ea={raised:"drop-shadow(0px 0px 0px rgba(255, 255, 255, 0.12)) drop-shadow(0px 0px 4px rgba(6, 4, 13, 0.04)) drop-shadow(0px 1px 2px rgba(6, 4, 13, 0.16))",overlay:"drop-shadow(0px 0px 0px rgba(255, 255, 255, 0.16)) drop-shadow(0px 0px 4px rgba(6, 4, 13, 0.04)) drop-shadow(0px 16px 24px rgba(6, 4, 13, 0.08)) drop-shadow(0px 4px 8px rgba(6, 4, 13, 0.08))"},aa={input:{focus:"0px 0px 0px 4px rgba(127, 76, 255, 0.24)"}},ra={default:"cubic-bezier(0.16, 1, 0.3, 1)",input:"all 200ms ease"},na={xs:2*Ke,sm:2*Ke,md:2*Ke,lg:2.5*Ke,xl:3*Ke},ia=({name:r,size:o,sx:s})=>{const t=n(),l=o||na.xl,c=o||na.xl;switch(r){case"loopsOfficial":return a(i,{viewBox:"0 0 106 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:_e(s,{"&.MuiSvgIcon-root path":{fill:"light"===t.palette.mode?t.custom.palette.icon.primary:t.custom.palette.icon.lockedWhite}}),children:a("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M11.8076 25.5073C10.0999 24.3082 9.74198 23.9512 9.74198 21.312V0H0.290527V0.399695L0.306001 0.409234C2.04234 1.47961 2.83235 1.96661 2.83235 4.59497V21.312C2.83235 23.9512 2.47443 24.3082 0.76674 25.5073V25.9069H11.8076V25.5073ZM12.3202 17.8947C13.3939 24.0305 18.9477 27.1823 24.7775 26.151C30.6043 25.1167 34.7507 20.2258 33.6769 14.1053C32.6032 7.98474 27.0494 4.81464 21.2196 5.84897C15.3898 6.88329 11.2464 11.759 12.3202 17.8947ZM19.518 16.6163C18.4897 10.7155 18.9052 8.04577 21.5229 7.582C24.1405 7.11518 25.4509 9.47368 26.4791 15.3745C27.5074 21.2754 27.0949 23.9329 24.4742 24.4089C21.8535 24.8848 20.5462 22.5172 19.518 16.6163ZM47.572 26.151C41.7453 27.1823 36.1915 24.0305 35.1147 17.8947C34.0379 11.759 38.1843 6.88329 44.0141 5.84897C49.8439 4.81464 55.3947 7.98474 56.4715 14.1053C57.5482 20.2258 53.3988 25.1167 47.572 26.151ZM44.3174 7.582C41.6967 8.04577 41.2842 10.7155 42.3125 16.6163C43.3407 22.5172 44.648 24.8848 47.2687 24.418C49.8894 23.9512 50.3019 21.2845 49.2737 15.3837C48.2454 9.48284 46.9381 7.11518 44.3174 7.582ZM68.4727 31.5116C66.4862 30.3817 65.7713 29.9751 65.7713 27.405L65.7773 22.6117C66.8086 24.6896 68.8742 26.328 72.2896 26.328C77.4521 26.328 81.5439 22.4012 81.5439 15.6491C81.5439 8.77803 77.5553 5.70252 73.0054 5.70252C69.2716 5.70252 66.6873 7.81998 65.7773 10.7368L65.6166 6.10221H56.4836V6.4836L56.4855 6.48484C58.1918 7.60063 58.8647 8.04064 58.8647 10.6789V27.405C58.8647 30.0412 58.5098 30.4012 56.7991 31.6003V32H68.6285V31.6003L68.4727 31.5116ZM70.0996 23.8963C67.6761 23.8963 65.7713 21.1411 65.7713 17.9466V15.0999C65.7713 11.5454 67.479 8.86651 70.0996 8.86651C72.8386 8.86651 74.1884 11.3867 74.1884 15.6583C74.1884 21.2998 72.7992 23.8963 70.0996 23.8963ZM103.38 26.2487C104.665 26.2487 105.706 25.2009 105.706 23.9085C105.706 22.616 104.665 21.5683 103.38 21.5683C102.095 21.5683 101.053 22.616 101.053 23.9085C101.053 25.2009 102.095 26.2487 103.38 26.2487ZM92.7131 12.3899C90.0531 11.6005 88.5566 11.1564 88.5566 9.56827C88.5566 8.23799 89.7699 7.64913 91.1045 7.64913C93.6888 7.64913 95.712 9.12891 98.0566 12.5645H98.6117V5.69337H98.2143L96.4278 7.01145C96.3499 6.97924 96.2721 6.94694 96.1943 6.91464C94.7242 6.30433 93.2525 5.69337 91.0257 5.69337C86.7762 5.69337 83.4002 8.32952 83.4002 12.2441C83.4002 15.759 85.0715 17.7574 91.0681 19.3166C93.2945 19.8749 94.8414 20.2746 94.8414 21.9924C94.8414 23.5912 93.2945 24.3478 91.426 24.3478C88.5566 24.3478 86.4607 22.3921 83.7035 18.6758H83.0969L83.5155 26.267H83.9522L85.5386 24.6682C86.8095 25.3089 88.7963 26.3066 91.4564 26.3066C96.54 26.3066 100.077 23.4691 100.077 19.4752C100.077 15.3593 97.6198 13.8429 92.7667 12.4058L92.7131 12.3899Z",fill:"#190F33"})});case"google":return e(i,{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:s,children:[a("path",{d:"M19.3 10.2085C19.3 9.5585 19.2417 8.9335 19.1334 8.3335H10.5V11.8835H15.4334C15.2167 13.0252 14.5667 13.9918 13.5917 14.6418V16.9502H16.5667C18.3 15.3502 19.3 13.0002 19.3 10.2085Z",fill:"#4285F4"}),a("path",{d:"M10.5 19.1668C12.975 19.1668 15.05 18.3502 16.5667 16.9502L13.5917 14.6418C12.775 15.1918 11.7334 15.5252 10.5 15.5252C8.11671 15.5252 6.09171 13.9168 5.36671 11.7502H2.31671V14.1168C3.82504 17.1085 6.91671 19.1668 10.5 19.1668Z",fill:"#34A853"}),a("path",{d:"M5.36671 11.7418C5.18337 11.1918 5.07504 10.6085 5.07504 10.0002C5.07504 9.39183 5.18337 8.8085 5.36671 8.2585V5.89183H2.31671C1.69171 7.12516 1.33337 8.51683 1.33337 10.0002C1.33337 11.4835 1.69171 12.8752 2.31671 14.1085L4.69171 12.2585L5.36671 11.7418Z",fill:"#FBBC05"}),a("path",{d:"M10.5 4.4835C11.85 4.4835 13.05 4.95016 14.0084 5.85016L16.6334 3.22516C15.0417 1.74183 12.975 0.833496 10.5 0.833496C6.91671 0.833496 3.82504 2.89183 2.31671 5.89183L5.36671 8.2585C6.09171 6.09183 8.11671 4.4835 10.5 4.4835Z",fill:"#EA4335"})]});case"linkedin-color":return e(i,{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:s,children:[a("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.37041 19.1668H17.6297C18.7547 19.1668 19.6667 18.2548 19.6667 17.1298V2.87053C19.6667 1.74551 18.7547 0.833496 17.6297 0.833496H3.37041C2.24539 0.833496 1.33337 1.74551 1.33337 2.87053V17.1298C1.33337 18.2548 2.24539 19.1668 3.37041 19.1668Z",fill:"#007EBB"}),a("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1204 16.6205H14.3999V11.9868C14.3999 10.7164 13.9171 10.0064 12.9116 10.0064C11.8176 10.0064 11.2461 10.7452 11.2461 11.9868V16.6205H8.62427V7.79337H11.2461V8.98239C11.2461 8.98239 12.0344 7.52369 13.9076 7.52369C15.78 7.52369 17.1204 8.66704 17.1204 11.0317V16.6205ZM5.4964 6.63753C4.60334 6.63753 3.87967 5.90818 3.87967 5.00866C3.87967 4.10914 4.60334 3.37979 5.4964 3.37979C6.38946 3.37979 7.1127 4.10914 7.1127 5.00866C7.1127 5.90818 6.38946 6.63753 5.4964 6.63753ZM4.14259 16.6205H6.87651V7.79337H4.14259V16.6205Z",fill:"white"})]});case"positive":return a(i,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",style:{height:o,width:o},sx:s,children:a("path",{d:"M7.25241 16.7949C6.47136 17.576 6.47136 18.8423 7.25241 19.6234L11.0236 23.3946C11.8047 24.1756 13.071 24.1756 13.8521 23.3946L25.1658 12.0809C25.9468 11.2998 25.9468 10.0335 25.1658 9.25246C24.3847 8.47141 23.1184 8.47141 22.3374 9.25246L12.4379 19.152L10.0808 16.7949C9.29979 16.0139 8.03346 16.0139 7.25241 16.7949Z",fill:"#48B244"})});case"negative":return a(i,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:s,children:a("path",{d:"M9.25241 9.25244C8.47136 10.0335 8.47136 11.2998 9.25241 12.0809L13.4951 16.3235L9.25241 20.5662C8.47136 21.3472 8.47136 22.6135 9.25241 23.3946C10.0335 24.1756 11.2998 24.1756 12.0808 23.3946L16.3235 19.1519L20.5661 23.3946C21.3472 24.1756 22.6135 24.1756 23.3945 23.3946C24.1756 22.6135 24.1756 21.3472 23.3945 20.5662L19.1519 16.3235L23.3945 12.0809C24.1756 11.2998 24.1756 10.0335 23.3945 9.25244C22.6135 8.47139 21.3472 8.4714 20.5661 9.25244L16.3235 13.4951L12.0808 9.25244C11.2998 8.47139 10.0335 8.47139 9.25241 9.25244Z",fill:"#FC5A4E"})});case"neutral":return a(i,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:s,children:a("path",{d:"M6 16C6 14.8954 6.89543 14 8 14L24 14C25.1046 14 26 14.8954 26 16C26 17.1046 25.1046 18 24 18H8C6.89543 18 6 17.1046 6 16Z",fill:"#8C8799"})});case"linkedin":return a(i,{style:{height:o,width:o},viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",sx:s,children:a("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.8889 30H5.11111C3.39289 30 2 28.6071 2 26.8889V5.11111C2 3.39289 3.39289 2 5.11111 2H26.8889C28.6071 2 30 3.39289 30 5.11111V26.8889C30 28.6071 28.6071 30 26.8889 30ZM21.9561 26.1109H26.1111V17.5753C26.1111 13.9637 24.0639 12.2175 21.2043 12.2175C18.3435 12.2175 17.1395 14.4454 17.1395 14.4454V12.6294H13.1352V26.1109H17.1395V19.0339C17.1395 17.1377 18.0123 16.0093 19.683 16.0093C21.2188 16.0093 21.9561 17.0936 21.9561 19.0339V26.1109ZM5.88889 8.3764C5.88889 9.75021 6.99413 10.8641 8.35808 10.8641C9.72202 10.8641 10.8266 9.75021 10.8266 8.3764C10.8266 7.00259 9.72202 5.88867 8.35808 5.88867C6.99413 5.88867 5.88889 7.00259 5.88889 8.3764ZM10.4659 26.1109H6.29043V12.6294H10.4659V26.1109Z"})});case"medium":return a(i,{viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:s,children:a("path",{d:"M9.89698 8.51543C14.2584 8.51543 17.7937 12.0754 17.7937 16.4666C17.7937 20.8578 14.2581 24.4175 9.89698 24.4175C5.53585 24.4175 2 20.8578 2 16.4666C2 12.0754 5.53558 8.51543 9.89698 8.51543ZM22.5079 8.98119C24.6886 8.98119 26.4564 12.3322 26.4564 16.4666H26.4566C26.4566 20.5999 24.6888 23.952 22.5082 23.952C20.3275 23.952 18.5597 20.5999 18.5597 16.4666C18.5597 12.3333 20.3272 8.98119 22.5079 8.98119ZM28.6113 9.76085C29.3781 9.76085 30 12.7631 30 16.4666C30 20.1691 29.3784 23.1723 28.6113 23.1723C27.8443 23.1723 27.2229 20.1699 27.2229 16.4666C27.2229 12.7633 27.8445 9.76085 28.6113 9.76085Z"})});case"navigation-arrow":return a(i,{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:s,children:a("path",{d:"M13.7929 8.46442L16.6083 11.2798L16.6213 11.2929L16.6235 11.2952C16.9631 11.6369 17.0053 12.1629 16.7494 12.5502C16.7128 12.6057 16.6701 12.6583 16.6213 12.7071L13.7929 15.5356C13.4025 15.9261 12.7692 15.9261 12.3788 15.5356C11.9882 15.145 11.9882 14.5119 12.3788 14.1213L13.5002 12.9999H8.0858C7.53352 12.9999 7.0858 12.5523 7.0858 11.9999C7.0858 11.4477 7.53352 10.9999 8.0858 10.9999H13.4999L12.3786 9.87872C11.9882 9.4881 11.9882 8.85504 12.3786 8.46442C12.7692 8.07391 13.4023 8.07391 13.7929 8.46442Z"})});case"unfold-more":return a(i,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:s,children:a("path",{d:"M5.83 12.0001L9 8.83009L7.59 7.42009L3 12.0001L7.59 16.5901L9 15.1701L5.83 12.0001ZM18.17 12.0001L15 15.1701L16.41 16.5801L21 12.0001L16.41 7.41009L15 8.83009L18.17 12.0001Z",fill:"#190F33"})});case"play":return a(X,{style:{height:l,width:c},sx:s});case"close":return a(J,{style:{height:l,width:c},sx:s});case"arrow-forward":return a(Y,{style:{height:l,width:c},sx:s});case"expand-more":return a(K,{style:{height:l,width:c},sx:s});case"info":return a(Z,{style:{height:l,width:c},sx:s});case"check-circle":return a(W,{style:{height:l,width:c},sx:s});case"error-outline":return a(G,{style:{height:l,width:c},sx:s});case"lightbulb":return a(U,{style:{height:l,width:c},sx:s});case"warning-amber":return a(H,{style:{height:l,width:c},sx:s});case"access-time":return a(B,{style:{height:l,width:c},sx:s});case"menu":return a(V,{style:{height:l,width:c},sx:s});case"lock":return a(L,{style:{height:l,width:c},sx:s});case"check":return e(i,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 25",style:{height:o,width:o},children:[a("rect",{width:"24",height:"24",y:".5",fill:"#48B244",rx:"12"}),a("path",{fill:"#fff",d:"M5.44 13.096a1.5 1.5 0 0 0 0 2.121l2.828 2.829a1.5 1.5 0 0 0 2.121 0l8.485-8.485a1.5 1.5 0 1 0-2.121-2.122l-7.425 7.425-1.767-1.768a1.5 1.5 0 0 0-2.122 0Z"})]});case"dash":return a(i,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{height:o,width:o},children:a("path",{fill:"#BAB7C2",d:"M4.5 12A1.5 1.5 0 0 1 6 10.5h12a1.5 1.5 0 0 1 0 3H6A1.5 1.5 0 0 1 4.5 12Z"})});case"gift":return e(i,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{height:o,width:o},children:[a("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"none",d:"M20.5 8h-16a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1ZM12.5 8v13"}),a("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"none",d:"M19.5 12v7a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2v-7M8 8a2.5 2.5 0 1 1 0-5c.965-.017 1.91.451 2.713 1.343.802.892 1.425 2.166 1.787 3.657.362-1.49.985-2.765 1.787-3.657C15.09 3.451 16.035 2.983 17 3a2.5 2.5 0 0 1 0 5"})]});default:return e(i,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 33",style:{height:o,width:o},sx:s,children:[a("path",{fill:"#C8E8C7",d:"M0 16.426c0-8.836 7.163-16 16-16s16 7.164 16 16-7.163 16-16 16-16-7.163-16-16"}),a("path",{fill:"#48B244",d:"M7.252 17.221a2 2 0 0 0 0 2.828l3.772 3.772a2 2 0 0 0 2.828 0l11.314-11.314a2 2 0 0 0-2.829-2.828l-9.9 9.9-2.356-2.358a2 2 0 0 0-2.829 0"})]})}},oa="#FFFFFF",sa="#F8F8F9",ta="#E8E7EB",la="#D1CFD6",ca="#BAB7C2",da="#A39FAD",ua="#756F85",ma="#5E5770",ha="#190F33",ga="#130B26",ba="#1C142F",pa="#2A223C",ka="#413A51",ya="#585267",fa="#6F697D",va="#9D98A8",wa="#B4AFBE",za="#F9F6FF",ja={0:"#190f3300",.01:"#190f3303",1:"#190F3308",2:"#190F330F",3:"#190F331F",4:"#190F333D",5:"#190f3380"},xa={0:"#F9F6FF00",.01:"#fff6ff03",1:"#F9F6FF0A",2:"#F9F6FF14",3:"#F9F6FF1F",4:"#F9F6FF3D",5:"#f9f6ff80"},qa={0:"#F2EDFF",100:"#D9C9FF",200:"#BFA5FF",300:"#A582FF",400:"#8C5EFF",500:"#7F4CFF",600:"#7648E9",700:"#6441BE",800:"#533992",900:"#413167",1e3:"#2F2A3C"},$a={0:"#FFEEED",100:"#FECDCA",200:"#FDACA6",300:"#FD8B83",400:"#FC6B60",500:"#FC5A4E",600:"#E7554A",700:"#BC4A42",800:"#91403A",900:"#663632",1e3:"#3B2B2A"},Ca={0:"#EDF7EC",100:"#C8E8C7",200:"#A3D9A1",300:"#7FC97C",400:"#5ABA57",500:"#48B244",600:"#44A441",700:"#3D883B",800:"#376C35",900:"#30502F",1e3:"#293429"},Sa={light:{0:oa,50:sa,100:ta,200:la,300:ca,400:da,500:"#8C8799",600:ua,700:ma,800:"#473F5C",900:"#302747",950:"#251B3D",1e3:ha,1100:"#0D081A"},dark:{0:ga,50:ba,100:pa,200:ka,300:ya,400:fa,500:"#868092",600:va,700:wa,800:"#CBC7D4",900:"#E2DEE9",950:"#EDEAF4",1e3:za,1100:"#FFFFFF"}},Oa=e=>({light:{0:e[0],100:e[100],200:e[200],300:e[300],400:e[400],500:e[500],600:e[600],700:e[700],800:e[800],900:e[900],1e3:e[1e3]},dark:{0:e[1e3],100:e[900],200:e[800],300:e[700],400:e[600],500:e[500],600:e[400],700:e[300],800:e[200],900:e[100],1e3:e[0]}}),Na=Oa(qa),Ea=Oa($a),Pa=Oa({0:"#FFF8F6",100:"#FFEBE4",200:"#FFDFD2",300:"#FFD2C0",400:"#FFC5AE",500:"#FFBEA5",600:"#E9AF98",700:"#BE907F",800:"#927266",900:"#67544C",1e3:"#3C3533"}),Ma=Oa({0:"#FFF9E5",100:"#FFECB2",200:"#FFECB2",300:"#FFD24D",400:"#FFC61A",500:"#FFBF00",600:"#E9B004",700:"#BE910B",800:"#927313",900:"#67541B",1e3:"#3C3522"}),Ia=Oa({0:"#EBF8FB",100:"#C4E9F3",200:"#9DDAEB",300:"#76CBE4",400:"#4FBCDC",500:"#3CB4D8",600:"#39A6C6",700:"#358AA2",800:"#316D7F",900:"#2C515B",1e3:"#283438"}),Aa=Oa(Ca),Ta={light:{surface:{sunken:sa,default:oa,raised:oa,overlay:oa,scrim:ja[3],transparent:ja[.01]},interaction:{none:ja[0],hover:ja[1],press:ja[2],hoverOnDark:ja[3],pressOnDark:ja[4],disabled:ja[2]},stroke:{default:la,focus:qa[500],disabled:ta},text:{primary:ha,secondary:ua,placeholder:da,disabled:ca,textLink:qa[800],textLinkHover:qa[900],primaryInverted:oa,secondaryInverted:da,placeholderInverted:ua,disabledInverted:ma,positive:Ca[800],negative:$a[700],lockedWhite:oa},icon:{primary:ha,secondary:ua,disabled:ca,primaryInverted:oa,secondaryInverted:da,disabledInverted:ma,positive:Ca[800],negative:$a[700],lockedWhite:oa},input:{default:oa,disabled:"#FFFFFF80"}},dark:{surface:{default:ba,sunken:ga,raised:pa,overlay:ka,scrim:xa[3],transparent:xa[.01]},interaction:{none:xa[0],hover:xa[1],press:xa[2],hoverOnDark:xa[3],pressOnDark:xa[4],disabled:xa[2]},stroke:{default:ka,focus:qa[500],disabled:pa},text:{primary:za,secondary:wa,placeholder:fa,disabled:ya,textLink:qa[100],textLinkHover:qa[0],primaryInverted:ga,secondaryInverted:fa,placeholderInverted:va,disabledInverted:wa,positive:Ca[300],negative:$a[300],lockedWhite:oa},icon:{primary:za,secondary:wa,disabled:ya,primaryInverted:ga,secondaryInverted:fa,disabledInverted:wa,positive:Ca[300],negative:$a[300],lockedWhite:oa},input:{default:pa,disabled:"#2A223C80"}}};var Fa;!function(e){e[e.DEFAULT=400]="DEFAULT",e[e.BOLD=500]="BOLD"}(Fa||(Fa={}));const Ra={name:"Domaine",default:{fileName:"DomaineRegular.woff2",weight:Fa.DEFAULT},bold:{fileName:"DomaineMedium.woff2",weight:Fa.BOLD}},_a={name:"FoundersGrotesk",default:{fileName:"FoundersGroteskRegular.woff2",weight:Fa.DEFAULT},bold:{fileName:"FoundersGroteskMedium.woff2",weight:Fa.BOLD}},Da={Serif:'"Domaine", Palatino, serif',SansSerif:'"FoundersGrotesk", Arial, sans-serif'},La=e=>"bold"===e?Fa.BOLD:Fa.DEFAULT,Va=({component:e,weight:r="default",variation:n,clamp:i=0,...s})=>a(o,{component:e,fontWeight:La(r),variant:n,...s,sx:_e(s.sx,i?{display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical",WebkitLineClamp:i}:null)}),Ba=({logo:r,headerText:i,subText:o})=>{const t=n();return e(s,{gap:t.spacing(t.custom.margin.md),alignItems:"center",mb:t.spacing(t.custom.margin.lg),children:[!1===r?null:r||a(ia,{name:"loopsOfficial",sx:{width:{sm:79,md:79,lg:106},height:{sm:24,md:24,lg:32}}}),e(s,{gap:t.spacing(t.custom.margin.md),children:[i&&a(Va,{variation:"sm",component:"h1",align:"center",weight:"bold",children:i}),function(){if(o)return"string"==typeof o?a(Va,{variation:"md",component:"p",align:"center",children:o}):o}()]})]})},Ha=({variation:e="lg",children:r,...i})=>{const{custom:o}=n();switch(e){case"sm":return a(t,{sx:{border:`1px solid ${o.palette.stroke.default}`,height:32,width:32},...i,children:r});case"lg":return a(t,{sx:{border:`1px solid ${o.palette.stroke.default}`,height:48,width:48},...i,children:r})}},Ua=({variation:e="primary",...r})=>{if("primary"===e)return a(l,{...r})},Ga=["xs","sm","md","lg","xl","xxl","xxxl"],Wa=(e,a=16)=>{const r=1/a*e;return Math.round(1e3*r)/1e3},Za=(e,a="xs")=>{const r=Ga.reduce(((r,n,i)=>{const o=Ga.indexOf(a)||0,s=Number((16*Math.pow(e,i-o)).toFixed(2));return r[n]=s,r}),{}),n={};for(const[e,a]of Object.entries(r))n[e]=Wa(a)+"rem";return n},Ka={lg:{headline:Za(1.309,"xs"),body:Za(1.125,"md")},sm:{headline:Za(1.125,"xs"),body:Za(1.1,"md")},button:Za(1.125,"md")},Ya=e=>{const a=Ga.map((a=>({props:{variant:a},style:{fontFamily:`${Da.Serif}`,fontSize:Ka[e].headline[a]}}))),r=Ga.map((a=>({props:{variant:a,component:"h5"},style:{fontFamily:`${Da.SansSerif}`,fontSize:Ka[e].body[a]}}))),n=Ga.map((a=>({props:{variant:a,component:"h6"},style:{fontFamily:`${Da.SansSerif}`,fontSize:Ka[e].body[a]}})));return[...a,...Ga.map((a=>({props:{variant:a,component:"p"},style:{fontFamily:`${Da.SansSerif}`,fontSize:Ka[e].body[a]}}))),...r,...n]},Ja={xs:Ka.button.xs,sm:Ka.button.sm,md:Ka.button.sm,lg:Ka.button.md,xl:Ka.button.lg},Xa=e=>({backgroundColor:e.custom.palette.surface.transparent,fontWeight:300,"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus}}),Qa=e=>({backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,"&:hover":{backgroundColor:e.custom.palette.surface.raised},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},"&:active":{backgroundColor:e.custom.palette.surface.raised},"&:disabled":{border:`1px solid ${e.custom.palette.stroke.disabled}`}}),er=e=>({backgroundColor:e.custom.palette.purple[0],"&:hover":{backgroundColor:e.custom.palette.purple[0]},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},"&:active":{backgroundColor:e.custom.palette.purple[0]}}),ar=e=>({backgroundColor:e.custom.palette.purple[500],color:e.custom.palette.text.lockedWhite,"&:hover":{backgroundColor:e.custom.palette.purple[500],color:e.custom.palette.text.lockedWhite,"&::before":{backgroundColor:e.custom.palette.interaction.hoverOnDark}},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus,"&::before":{backgroundColor:e.custom.palette.interaction.hoverOnDark}},"&:active":{backgroundColor:e.custom.palette.purple[500],color:e.custom.palette.text.lockedWhite,"&::before":{backgroundColor:e.custom.palette.interaction.pressOnDark}}}),rr={xs:3*Ke,sm:3.5*Ke,md:4*Ke,lg:5*Ke,xl:6*Ke},nr={xs:.5*Ke,sm:.5*Ke,md:Ke,lg:Ke,xl:Ke},ir=e=>({"& .MuiButton-icon":{margin:0,".MuiSvgIcon-root":{height:na[e],width:na[e]}}}),or=e=>({"& .MuiBox-root":{lineHeight:"120%",fontSize:Ja[e],paddingLeft:nr[e],paddingRight:nr[e]}}),sr=e=>({height:rr[e],paddingLeft:Ke,paddingRight:Ke}),tr=c(d)((()=>({color:"inherit",position:"absolute",padding:2}))),lr=({sizing:e,...r})=>a(tr,{size:e?na[e]:40,...r}),cr=c(u)((({theme:e,loading:a})=>({boxSizing:"border-box",position:"relative",overflow:"hidden",borderRadius:e.spacing(e.custom.radius.md),textTransform:"none",minWidth:52,"&::before":{content:'""',backgroundColor:"transparent",transition:"all 200ms ease",position:"absolute",inset:0,zIndex:1},"& > .MuiBox-root, & .MuiButton-icon":{overflowWrap:"normal",position:"relative",zIndex:2},"& > .MuiButton-startIcon, & > .MuiButton-endIcon":{visibility:a?"hidden":"visible"}}))),dr=c((({children:r,loading:n,sizing:i,...o})=>e(cr,{...o,sizing:i,loading:n,children:[n&&a(lr,{sizing:i}),a(m,{...n?{visibility:"hidden"}:void 0,children:r})]})))((({theme:e,variation:a,sizing:r})=>({color:e.custom.palette.text.primary,...r&&{...or(r)},...r&&{...sr(r)},...r&&{...ir(r)},"&:hover:before":{backgroundColor:e.custom.palette.interaction.hover},"&:focus:before":{backgroundColor:e.custom.palette.interaction.hover},"&:active:before":{backgroundColor:e.custom.palette.interaction.press},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,color:e.custom.palette.text.disabled},..."subtle"===a&&{...Xa(e)},..."outlined"===a&&{...Qa(e)},..."secondary"===a&&{...er(e)},..."primary"===a&&{...ar(e)}}))),ur=({sizing:e="lg",variation:r="primary",...n})=>a(dr,{variation:r,sizing:e,...n}),mr=({label:e,sx:r,...i})=>{const o=n();return a(h,{label:e||"",sx:_e({ml:0,"&.Mui-disabled":{color:o.custom.palette.text.disabled},"&.Mui-error":{color:o.custom.palette.text.negative},"& .MuiFormControlLabel-label":{ml:e?o.custom.margin.md:0,color:"inherit",fontSize:{xs:Ka.sm.body.md,sm:Ka.sm.body.md,md:Ka.sm.body.md,lg:Ka.lg.body.md,xl:Ka.lg.body.md}}},r),...i})},hr=c(g)((({theme:e,sizing:a})=>({height:"default"===a?Ue:Ge,width:"default"===a?Ue:Ge,padding:0,flex:"none",borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.input.default,position:"relative",transition:e.custom.easing.input,"& svg":{transition:e.custom.easing.input,fill:"none",width:"default"===a?na.sm:na.xl,height:"default"===a?na.sm:na.xl},"&:before":{content:'""',position:"absolute",inset:0},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled},"&.Mui-checked":{backgroundColor:e.custom.palette.purple[500],"& svg":{fill:e.custom.palette.icon.lockedWhite},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,"& svg":{fill:e.custom.palette.icon.disabled}}},"&.Mui-focusVisible":{borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}}}))),gr=e=>a(hr,{checkedIcon:a(Q,{}),indeterminateIcon:a(ee,{}),...e}),br=({internalChange:e,checkboxLabel:r,indeterminate:n,sizing:i,onChange:o,inputRef:s,...t})=>a(mr,{inputRef:s,label:r,control:a(gr,{sizing:i,indeterminate:n}),onChange:(a,r)=>{o&&o(a,r),e&&e()},...t}),pr=c(b)((({theme:e})=>({"& .MuiInputAdornment-root":{marginRight:0,"& .MuiSvgIcon-root":{width:na.xl,height:na.xl}},"& .MuiOutlinedInput-input":{padding:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},"& .MuiOutlinedInput-root":{backgroundColor:e.custom.palette.input.default,color:e.custom.palette.text.primary,borderRadius:e.spacing(e.custom.radius.md),lineHeight:"140%",[e.breakpoints.down("md")]:{minWidth:"100%"},paddingLeft:0,paddingRight:0,fontSize:Ka.sm.body.md,"&.Mui-focused":{"& fieldset":{transition:e.custom.easing.input,backgroundColor:e.custom.palette.interaction.press,borderColor:e.custom.palette.stroke.default},"& .MuiOutlinedInput-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.focus}`,boxShadow:e.custom.boxShadow.input.focus}},"&.Mui-disabled":{color:e.custom.palette.text.disabled,backgroundColor:e.custom.palette.input.disabled,"& fieldset":{transition:e.custom.easing.input,backgroundColor:e.custom.palette.interaction.none,borderColor:e.custom.palette.stroke.disabled},"& .MuiOutlinedInput-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.disabled}`,boxShadow:"none"}}},"&:hover":{"& .MuiOutlinedInput-root":{backgroundColor:e.custom.palette.input.default,"& fieldset":{backgroundColor:e.custom.palette.interaction.hover,borderColor:e.custom.palette.stroke.default},"&.Mui-focused":{"& fieldset":{backgroundColor:e.custom.palette.interaction.press,borderColor:e.custom.palette.stroke.default},"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${e.custom.palette.stroke.focus}`,boxShadow:e.custom.boxShadow.input.focus}},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,"& fieldset":{backgroundColor:e.custom.palette.interaction.none,borderColor:e.custom.palette.stroke.disabled},"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${e.custom.palette.stroke.disabled}`,boxShadow:"none"}}}}}))),kr=({startAdornment:e,endAdornment:r,placeholder:n,onChange:i,internalChange:o,inputRef:s,...t})=>a(pr,{placeholder:n,sx:{height:We,"& .MuiOutlinedInput-input":{pl:e?1:2,pr:e?1:2}},inputRef:s,InputProps:{startAdornment:e?a(p,{position:"start",sx:{pl:1},children:e}):null,endAdornment:r?a(p,{position:"start",sx:{pr:1},children:r}):null},...t,onChange:e=>{i&&i(e),o&&o()}}),yr=({sizing:n,options:i,other:o,internalChange:s,value:t,inputRef:l,onChange:c})=>{const d=o?.name||"other-option",u=`${d}-value-`,h=e=>`${u}${e}`,g=o?.enabled,b=t?.includes(d)&&g,p=t?.find((e=>e.includes(u)));if(!t)return a("div",{});const y=(e,a)=>{let r=t.includes(e)?t.filter((a=>a!==e)):a?[e]:[...new Set(t),e];if(a||(r=r.filter((e=>!i.find((a=>a?.exclusive&&e===a.value))))),o?.enabled){!t.includes(d)||e!==d||(r=r.filter((e=>!e.includes(u))))}c(r),s&&s()};return e(r,{children:[e(k,{sx:{display:"flex",gap:e=>e.custom.margin.sm,label:{"&:last-child":{mb:0},"&:hover":{"& .MuiCheckbox-root":{backgroundColor:e=>e.custom.palette.interaction.hover,"&.Mui-checked":{backgroundColor:e=>e.custom.palette.purple[500]}}}}},children:[i?i.map(((e,r)=>{const i=e.value;return a(mr,{sx:{"& .MuiButtonBase-root.MuiCheckbox-root":{alignSelf:"baseline"}},onChange:()=>y(i,e.exclusive),checked:t.includes(i),control:a(gr,{sizing:n}),label:e.label},i)})):null,g&&a(mr,{inputRef:l,onChange:()=>y(d),label:o?.label||"Other",checked:t.includes(d),control:a(gr,{sizing:n})},d)]}),b&&a(m,{sx:{mt:1},children:a(kr,{fullWidth:!0,autoFocus:!0,defaultValue:p?p.replace(u,""):"",placeholder:o?.placeholder,onChange:e=>{const a=t.find((e=>e.includes(u))),r=(a?t.map((a=>a.includes(u)?h(e.target.value):a)):[...t,h(e.target.value)]).filter((e=>e!==u));c(r),s&&s()},required:!0})})]})},fr=e=>`linear-gradient(135deg, ${e.custom.palette.purple[400]} 0%, ${e.custom.palette.purple[200]} 100%)`,vr=(e,a)=>{switch(a){case"tone1":default:return fr(e);case"tone2":return(e=>`linear-gradient(135deg, ${e.custom.palette.purple[0]} 0%, ${e.custom.palette.purple[100]} 100%)`)(e);case"tone3":return(e=>`linear-gradient(135deg, ${e.custom.palette.blue[400]} 0%, ${e.custom.palette.purple[600]} 100%)`)(e);case"tone4":return(e=>`radial-gradient(54.59% 50% at 0% 50.04%, ${y(e.custom.palette.blue[1e3],.2)} 0%, ${y(e.custom.palette.blue[500],.2)} 100%), linear-gradient(135deg, ${e.custom.palette.purple[500]} 0%, ${e.custom.palette.purple[1e3]} 100%)`)(e)}},wr=(e,a)=>{const r=vr(e,a.gradient),n=(e=>"noise1"===e?"url(https://useloops-public.s3.eu-west-2.amazonaws.com/public/static/misc/noise_tile.png)":null)(a.texture);return n?[n,r].join(","):[r].join(",")},zr=({sx:e,children:r,texture:i="noise1",gradient:o="tone1",...s})=>{const t=n();return a(f,{maxWidth:!1,disableGutters:!0,sx:_e({background:wr(t,{texture:i,gradient:o}),height:"100%",p:[0,0,0]},!!e&&{...e}),...s,children:r})},jr=c(v)((({theme:e,align:a})=>({fontWeight:400,lineHeight:"140%",whiteSpace:"normal",textAlign:a,color:"inherit","&.Mui-disabled":{color:e.custom.palette.text.disabled},"&.Mui-error":{color:e.custom.palette.text.negative}}))),xr=e=>a(jr,{...e}),qr=r=>{const{icon:i=null,state:o="default",disabled:s,showicon:t=!0}=r,l=n();return e(m,{sx:{display:"inline-flex",alignItems:"center",color:s?l.custom.palette.text.disabled:(()=>{switch(o){case"disabled":return l.custom.palette.text.disabled;case"positive":return l.custom.palette.text.positive;case"negative":return l.custom.palette.text.negative;default:return l.custom.palette.text.secondary}})(),"& svg":{marginRight:l.spacing(l.custom.margin.xs),width:na.xs,height:na.xs,color:"inherit"}},children:[(()=>{if(!t)return null;if(i)return i;switch(o){case"disabled":default:return a(m,{sx:{height:20,display:"flex",alignItems:"center",alignSelf:"flex-start"},children:a(ae,{})});case"positive":return a(m,{sx:{height:20,display:"flex",alignItems:"center",alignSelf:"flex-start"},children:a(Q,{})});case"negative":return a(m,{sx:{height:20,display:"flex",alignItems:"center",alignSelf:"flex-start"},children:a(re,{})})}})(),a(xr,{...r,sx:{fontSize:{xs:Ka.sm.body.sm,sm:Ka.sm.body.sm,md:Ka.sm.body.sm,lg:Ka.lg.body.sm,xl:Ka.lg.body.sm}}})]})},$r=c(m)((({theme:e})=>({"& .MuiGrid-item":{"&:first-of-type":{"& .MuiBox-root":{"& .MuiRadio-root":{"&:before":{content:'""',position:"absolute",width:Ve,height:Ve,top:`calc(100% + ${Ve}px)`,margin:"0 auto",background:e.custom.palette.stroke.default}}}},"&:last-of-type":{"& .MuiBox-root":{"& .MuiRadio-root":{"&:before":{content:'""',position:"absolute",width:Ve,height:Ve,top:`calc(100% + ${Ve}px)`,margin:"0 auto",background:e.custom.palette.stroke.default}}}}}}))),Cr=({children:e,width:r})=>a($r,{sx:{width:r,minWidth:300},children:e}),Sr=c(w)((({theme:e,sizing:a})=>({padding:0,backgroundColor:e.custom.palette.input.default,border:`1px solid ${e.custom.palette.stroke.default}`,position:"relative",transition:e.custom.easing.input,flexShrink:0,height:"default"===a?Ue:Ge,width:"default"===a?Ue:Ge,"& svg":{transition:e.custom.easing.input,fill:"none",width:"default"===a&&na.sm,height:"default"===a&&na.sm},"&:before":{content:'""',position:"absolute",inset:0,borderRadius:e.custom.radius.round},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& svg":{"&:first-of-type":{fill:"transparent"},fill:e.custom.palette.icon.disabled}},"&.Mui-focusVisible":{borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}},"&.Mui-checked":{backgroundColor:e.custom.palette.purple[500],"& svg":{"&:first-of-type":{fill:"transparent"},fill:e.custom.palette.icon.lockedWhite},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& svg":{"&:first-of-type":{fill:"transparent"},fill:e.custom.palette.icon.disabled}}}}))),Or=e=>a(Sr,{...e}),Nr=c(Or)((()=>({marginRight:0}))),Er=c(m)((({theme:e})=>({posiion:"relative","&:after":{content:'""',position:"absolute",top:"50%",right:"0",height:Ve,width:`calc(100% - ${Ge}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default}}))),Pr=e=>a(Er,{sx:{position:"relative"},children:a(Nr,{...e})}),Mr=({disabled:r=!1,onChange:n,labelLeft:i,labelRight:o,internalChange:s,labelCenter:t})=>{const l=[...Array(7).keys()];return a(z,{children:e(Cr,{children:[a(j,{container:!0,justifyContent:"space-between",children:l.map(((e,i)=>{const o=i+1!==l.length;return a(j,{item:!0,sm:o,children:a(Pr,{disabled:r,value:e,onChange:(e,a)=>{n&&n(e,a),s&&s()},name:`radio-option-${e}`},e)},e)}))}),e(j,{container:!0,justifyContent:"space-between",sx:{mt:1},children:[a(j,{item:!0,sm:!0,sx:{textAlign:"left"},children:a(qr,{disabled:r,showicon:!1,children:i})}),a(j,{item:!0,sm:!0,sx:{textAlign:"center"},children:a(qr,{disabled:r,align:"center",showicon:!1,children:t})}),a(j,{item:!0,sm:!0,sx:{textAlign:"right"},children:a(qr,{disabled:r,align:"right",showicon:!1,children:o})})]})]})})},Ir=({sx:e,...r})=>a(xr,{...r,sx:_e({fontSize:{xs:Ka.sm.body.md,sm:Ka.sm.body.md,md:Ka.sm.body.md,lg:Ka.lg.body.md,xl:Ka.lg.body.md}},!!e&&{...e})}),Ar=te({attributes:{},listeners:void 0,ref(){}}),Tr=e=>Oe({...e,wasDragging:!0});function Fr({children:r,top:n,bottom:i,id:o}){const{attributes:t,isDragging:l,listeners:c,setNodeRef:d,setActivatorNodeRef:u,transform:h,transition:g}=Se({id:o,animateLayoutChanges:Tr}),b=le((()=>({attributes:t,listeners:c,ref:u})),[t,c,u]),p={opacity:l?.4:void 0,transform:Ae.Translate.toString(h),transition:g};return a(Ar.Provider,{value:b,children:e(s,{className:"SortableItem",...t,sx:{position:"relative",...p,width:"100%"},ref:d,children:[n&&n,a(m,{...c,sx:{display:"flex",cursor:"grab"},children:r}),i&&i]})})}const Rr={sideEffects:fe({styles:{active:{opacity:"0.4"}}})};function _r({children:e}){return Te(a(ve,{zIndex:999999,dropAnimation:Rr,children:e}),document.body)}const Dr=({nativeEvent:e})=>{let a=e.target;for(;a;){if(a.dataset.noDnd)return!1;a=a.parentElement}return!0};class Lr extends $e{static activators=[{eventName:"onMouseDown",handler:Dr}]}class Vr extends Ce{static activators=[{eventName:"onTouchStart",handler:Dr}]}function Br({items:r,onChange:i,renderItem:o,disabled:t,direction:l}){if(!r)return;const[c,d]=de(null),u=le((()=>r.find((e=>e?.id===c?.id))),[c,r]),m=n(),h=x(m.breakpoints.down("md")),g=we(ze(Lr,{activationConstraint:{distance:5}}),ze(Vr,{activationConstraint:{delay:h?300:0,tolerance:8}}),ze(je,{coordinateGetter:Ne}));return e(xe,{measuring:{droppable:{strategy:qe.Always}},sensors:g,onDragStart:({active:e})=>{d(e)},onDragEnd:({active:e,over:a})=>{if(a&&e.id!==a?.id){const n=r.findIndex((({id:a})=>a===e.id)),o=r.findIndex((({id:e})=>e===a.id));i(Ee(r,n,o))}d(null)},onDragCancel:()=>{d(null)},children:[a(Pe,{items:r,disabled:t,strategy:"horizontal"===l?Me:Ie,children:a(s,{sx:{..."horizontal"===l&&{flexDirection:"row"},display:"flex",m:0,gap:1,padding:0,alignContent:"flex-start"},children:r.map((e=>a(ue,{children:o(e)},e.id)))})}),a(_r,{children:u?o(u,!0,!!c):null})]})}function Hr(e){let a="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)a+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+a+" for the full message."}Br.Item=Fr,Br.DragHandle=function(){const{attributes:e,listeners:r,ref:n}=ce(Ar);return a(m,{...e,...r,ref:n,children:a("svg",{viewBox:"0 0 20 20",width:"12",children:a("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})};var Ur="$$material";function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gr.apply(null,arguments)}function Wr(e,a){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(a.includes(n))continue;r[n]=e[n]}return r}function Zr(e){let a="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)a+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+a+" for the full message."}var Kr=Object.freeze({__proto__:null,default:Zr});function Yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jr(e){if(e.__esModule)return e;var a=e.default;if("function"==typeof a){var r=function e(){return this instanceof e?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};r.prototype=a.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})})),r}var Xr,Qr={exports:{}},en={exports:{}},an={};var rn,nn,on,sn,tn,ln,cn,dn,un,mn,hn,gn,bn,pn,kn={};
|
|
1
|
+
import{jsxs as e,jsx as a,Fragment as r}from"react/jsx-runtime";import{useTheme as n,SvgIcon as i,Typography as o,Stack as s,Avatar as t,AvatarGroup as l,styled as c,CircularProgress as d,Button as u,Box as m,FormControlLabel as h,Checkbox as g,TextField as b,InputAdornment as p,FormGroup as k,alpha as y,Container as f,InputLabel as v,Radio as w,RadioGroup as z,Grid as j,useMediaQuery as x,MenuItem as q,Select as $,IconButton as C,ButtonGroup as S,Link as O,Slider as N,Rating as E,Paper as P,Switch as M,Tooltip as I,Menu as A,LinearProgress as T,linearProgressClasses as F,createTheme as R,GlobalStyles as _,CssBaseline as D}from"@mui/material";import{LockOutlined as L,MenuRounded as V,QueryBuilderRounded as B,WarningAmberRounded as H,LightbulbOutlined as U,ErrorOutlineOutlined as G,CheckCircleOutlineOutlined as W,InfoOutlined as Z,ExpandMore as K,ArrowForward as Y,Close as J,PlayCircle as X,Check as Q,Remove as ee,Info as ae,ErrorOutline as re,KeyboardArrowDown as ne,DragHandle as ie}from"@mui/icons-material";import*as oe from"react";import se,{createContext as te,useMemo as le,useContext as ce,useState as de,Fragment as ue,useEffect as me,useRef as he,useCallback as ge,forwardRef as be,useImperativeHandle as pe,createElement as ke,startTransition as ye}from"react";import{defaultDropAnimationSideEffects as fe,DragOverlay as ve,useSensors as we,useSensor as ze,KeyboardSensor as je,DndContext as xe,MeasuringStrategy as qe,MouseSensor as $e,TouchSensor as Ce}from"@dnd-kit/core";import{useSortable as Se,defaultAnimateLayoutChanges as Oe,sortableKeyboardCoordinates as Ne,arrayMove as Ee,SortableContext as Pe,horizontalListSortingStrategy as Me,verticalListSortingStrategy as Ie}from"@dnd-kit/sortable";import{CSS as Ae}from"@dnd-kit/utilities";import{createPortal as Te}from"react-dom";import{ThemeContext as Fe}from"@mui/styled-engine";import{CacheProvider as Re}from"@emotion/react";const _e=(...e)=>{const a=[];for(const r of e)if(r)if(Array.isArray(r))for(const e of r)a.push(e);else a.push(r);return a},De={sm:0,md:584,lg:812,lgNav:1e3,xl:1280,xxl:1728},Le=0,Ve=4,Be=8,He=16,Ue=24,Ge=32,We=40,Ze=48,Ke=Be,Ye={none:Le,xs:Ve/Ke,sm:Be/Ke,md:He/Ke,lg:Ge/Ke,xl:Ze/Ke,xxl:80/Ke,xxxl:160/Ke},Je={none:Le,xs:Ve/Ke,sm:Be/Ke,md:He/Ke,lg:Ge/Ke,xl:Ze/Ke},Xe={none:Le,xs:2/Ke,sm:Ve/Ke,md:Be/Ke,lg:He/Ke,xl:Ue/Ke,round:999},Qe={raised:"0px 0px 0px 1px rgba(255, 255, 255, 0.12), 0px 0px 4px 2px rgba(6, 4, 13, 0.04), 0px 1px 2px 0px rgba(6, 4, 13, 0.16)",overlay:"0px 0px 0px 1px rgba(255, 255, 255, 0.16), 0px 0px 4px 2px rgba(6, 4, 13, 0.04), 0px 16px 24px 0px rgba(6, 4, 13, 0.08), 0px 4px 8px 0px rgba(6, 4, 13, 0.08)"},ea={raised:"drop-shadow(0px 0px 0px rgba(255, 255, 255, 0.12)) drop-shadow(0px 0px 4px rgba(6, 4, 13, 0.04)) drop-shadow(0px 1px 2px rgba(6, 4, 13, 0.16))",overlay:"drop-shadow(0px 0px 0px rgba(255, 255, 255, 0.16)) drop-shadow(0px 0px 4px rgba(6, 4, 13, 0.04)) drop-shadow(0px 16px 24px rgba(6, 4, 13, 0.08)) drop-shadow(0px 4px 8px rgba(6, 4, 13, 0.08))"},aa={input:{focus:"0px 0px 0px 4px rgba(127, 76, 255, 0.24)"}},ra={default:"cubic-bezier(0.16, 1, 0.3, 1)",input:"all 200ms ease"},na={xs:2*Ke,sm:2*Ke,md:2*Ke,lg:2.5*Ke,xl:3*Ke},ia=({name:r,size:o,sx:s})=>{const t=n(),l=o||na.xl,c=o||na.xl;switch(r){case"loopsOfficial":return a(i,{viewBox:"0 0 106 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:_e(s,{"&.MuiSvgIcon-root path":{fill:"light"===t.palette.mode?t.custom.palette.icon.primary:t.custom.palette.icon.lockedWhite}}),children:a("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M11.8076 25.5073C10.0999 24.3082 9.74198 23.9512 9.74198 21.312V0H0.290527V0.399695L0.306001 0.409234C2.04234 1.47961 2.83235 1.96661 2.83235 4.59497V21.312C2.83235 23.9512 2.47443 24.3082 0.76674 25.5073V25.9069H11.8076V25.5073ZM12.3202 17.8947C13.3939 24.0305 18.9477 27.1823 24.7775 26.151C30.6043 25.1167 34.7507 20.2258 33.6769 14.1053C32.6032 7.98474 27.0494 4.81464 21.2196 5.84897C15.3898 6.88329 11.2464 11.759 12.3202 17.8947ZM19.518 16.6163C18.4897 10.7155 18.9052 8.04577 21.5229 7.582C24.1405 7.11518 25.4509 9.47368 26.4791 15.3745C27.5074 21.2754 27.0949 23.9329 24.4742 24.4089C21.8535 24.8848 20.5462 22.5172 19.518 16.6163ZM47.572 26.151C41.7453 27.1823 36.1915 24.0305 35.1147 17.8947C34.0379 11.759 38.1843 6.88329 44.0141 5.84897C49.8439 4.81464 55.3947 7.98474 56.4715 14.1053C57.5482 20.2258 53.3988 25.1167 47.572 26.151ZM44.3174 7.582C41.6967 8.04577 41.2842 10.7155 42.3125 16.6163C43.3407 22.5172 44.648 24.8848 47.2687 24.418C49.8894 23.9512 50.3019 21.2845 49.2737 15.3837C48.2454 9.48284 46.9381 7.11518 44.3174 7.582ZM68.4727 31.5116C66.4862 30.3817 65.7713 29.9751 65.7713 27.405L65.7773 22.6117C66.8086 24.6896 68.8742 26.328 72.2896 26.328C77.4521 26.328 81.5439 22.4012 81.5439 15.6491C81.5439 8.77803 77.5553 5.70252 73.0054 5.70252C69.2716 5.70252 66.6873 7.81998 65.7773 10.7368L65.6166 6.10221H56.4836V6.4836L56.4855 6.48484C58.1918 7.60063 58.8647 8.04064 58.8647 10.6789V27.405C58.8647 30.0412 58.5098 30.4012 56.7991 31.6003V32H68.6285V31.6003L68.4727 31.5116ZM70.0996 23.8963C67.6761 23.8963 65.7713 21.1411 65.7713 17.9466V15.0999C65.7713 11.5454 67.479 8.86651 70.0996 8.86651C72.8386 8.86651 74.1884 11.3867 74.1884 15.6583C74.1884 21.2998 72.7992 23.8963 70.0996 23.8963ZM103.38 26.2487C104.665 26.2487 105.706 25.2009 105.706 23.9085C105.706 22.616 104.665 21.5683 103.38 21.5683C102.095 21.5683 101.053 22.616 101.053 23.9085C101.053 25.2009 102.095 26.2487 103.38 26.2487ZM92.7131 12.3899C90.0531 11.6005 88.5566 11.1564 88.5566 9.56827C88.5566 8.23799 89.7699 7.64913 91.1045 7.64913C93.6888 7.64913 95.712 9.12891 98.0566 12.5645H98.6117V5.69337H98.2143L96.4278 7.01145C96.3499 6.97924 96.2721 6.94694 96.1943 6.91464C94.7242 6.30433 93.2525 5.69337 91.0257 5.69337C86.7762 5.69337 83.4002 8.32952 83.4002 12.2441C83.4002 15.759 85.0715 17.7574 91.0681 19.3166C93.2945 19.8749 94.8414 20.2746 94.8414 21.9924C94.8414 23.5912 93.2945 24.3478 91.426 24.3478C88.5566 24.3478 86.4607 22.3921 83.7035 18.6758H83.0969L83.5155 26.267H83.9522L85.5386 24.6682C86.8095 25.3089 88.7963 26.3066 91.4564 26.3066C96.54 26.3066 100.077 23.4691 100.077 19.4752C100.077 15.3593 97.6198 13.8429 92.7667 12.4058L92.7131 12.3899Z",fill:"#190F33"})});case"google":return e(i,{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:s,children:[a("path",{d:"M19.3 10.2085C19.3 9.5585 19.2417 8.9335 19.1334 8.3335H10.5V11.8835H15.4334C15.2167 13.0252 14.5667 13.9918 13.5917 14.6418V16.9502H16.5667C18.3 15.3502 19.3 13.0002 19.3 10.2085Z",fill:"#4285F4"}),a("path",{d:"M10.5 19.1668C12.975 19.1668 15.05 18.3502 16.5667 16.9502L13.5917 14.6418C12.775 15.1918 11.7334 15.5252 10.5 15.5252C8.11671 15.5252 6.09171 13.9168 5.36671 11.7502H2.31671V14.1168C3.82504 17.1085 6.91671 19.1668 10.5 19.1668Z",fill:"#34A853"}),a("path",{d:"M5.36671 11.7418C5.18337 11.1918 5.07504 10.6085 5.07504 10.0002C5.07504 9.39183 5.18337 8.8085 5.36671 8.2585V5.89183H2.31671C1.69171 7.12516 1.33337 8.51683 1.33337 10.0002C1.33337 11.4835 1.69171 12.8752 2.31671 14.1085L4.69171 12.2585L5.36671 11.7418Z",fill:"#FBBC05"}),a("path",{d:"M10.5 4.4835C11.85 4.4835 13.05 4.95016 14.0084 5.85016L16.6334 3.22516C15.0417 1.74183 12.975 0.833496 10.5 0.833496C6.91671 0.833496 3.82504 2.89183 2.31671 5.89183L5.36671 8.2585C6.09171 6.09183 8.11671 4.4835 10.5 4.4835Z",fill:"#EA4335"})]});case"linkedin-color":return e(i,{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:s,children:[a("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.37041 19.1668H17.6297C18.7547 19.1668 19.6667 18.2548 19.6667 17.1298V2.87053C19.6667 1.74551 18.7547 0.833496 17.6297 0.833496H3.37041C2.24539 0.833496 1.33337 1.74551 1.33337 2.87053V17.1298C1.33337 18.2548 2.24539 19.1668 3.37041 19.1668Z",fill:"#007EBB"}),a("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1204 16.6205H14.3999V11.9868C14.3999 10.7164 13.9171 10.0064 12.9116 10.0064C11.8176 10.0064 11.2461 10.7452 11.2461 11.9868V16.6205H8.62427V7.79337H11.2461V8.98239C11.2461 8.98239 12.0344 7.52369 13.9076 7.52369C15.78 7.52369 17.1204 8.66704 17.1204 11.0317V16.6205ZM5.4964 6.63753C4.60334 6.63753 3.87967 5.90818 3.87967 5.00866C3.87967 4.10914 4.60334 3.37979 5.4964 3.37979C6.38946 3.37979 7.1127 4.10914 7.1127 5.00866C7.1127 5.90818 6.38946 6.63753 5.4964 6.63753ZM4.14259 16.6205H6.87651V7.79337H4.14259V16.6205Z",fill:"white"})]});case"positive":return a(i,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",style:{height:o,width:o},sx:s,children:a("path",{d:"M7.25241 16.7949C6.47136 17.576 6.47136 18.8423 7.25241 19.6234L11.0236 23.3946C11.8047 24.1756 13.071 24.1756 13.8521 23.3946L25.1658 12.0809C25.9468 11.2998 25.9468 10.0335 25.1658 9.25246C24.3847 8.47141 23.1184 8.47141 22.3374 9.25246L12.4379 19.152L10.0808 16.7949C9.29979 16.0139 8.03346 16.0139 7.25241 16.7949Z",fill:"#48B244"})});case"negative":return a(i,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:s,children:a("path",{d:"M9.25241 9.25244C8.47136 10.0335 8.47136 11.2998 9.25241 12.0809L13.4951 16.3235L9.25241 20.5662C8.47136 21.3472 8.47136 22.6135 9.25241 23.3946C10.0335 24.1756 11.2998 24.1756 12.0808 23.3946L16.3235 19.1519L20.5661 23.3946C21.3472 24.1756 22.6135 24.1756 23.3945 23.3946C24.1756 22.6135 24.1756 21.3472 23.3945 20.5662L19.1519 16.3235L23.3945 12.0809C24.1756 11.2998 24.1756 10.0335 23.3945 9.25244C22.6135 8.47139 21.3472 8.4714 20.5661 9.25244L16.3235 13.4951L12.0808 9.25244C11.2998 8.47139 10.0335 8.47139 9.25241 9.25244Z",fill:"#FC5A4E"})});case"neutral":return a(i,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:s,children:a("path",{d:"M6 16C6 14.8954 6.89543 14 8 14L24 14C25.1046 14 26 14.8954 26 16C26 17.1046 25.1046 18 24 18H8C6.89543 18 6 17.1046 6 16Z",fill:"#8C8799"})});case"linkedin":return a(i,{style:{height:o,width:o},viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",sx:s,children:a("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.8889 30H5.11111C3.39289 30 2 28.6071 2 26.8889V5.11111C2 3.39289 3.39289 2 5.11111 2H26.8889C28.6071 2 30 3.39289 30 5.11111V26.8889C30 28.6071 28.6071 30 26.8889 30ZM21.9561 26.1109H26.1111V17.5753C26.1111 13.9637 24.0639 12.2175 21.2043 12.2175C18.3435 12.2175 17.1395 14.4454 17.1395 14.4454V12.6294H13.1352V26.1109H17.1395V19.0339C17.1395 17.1377 18.0123 16.0093 19.683 16.0093C21.2188 16.0093 21.9561 17.0936 21.9561 19.0339V26.1109ZM5.88889 8.3764C5.88889 9.75021 6.99413 10.8641 8.35808 10.8641C9.72202 10.8641 10.8266 9.75021 10.8266 8.3764C10.8266 7.00259 9.72202 5.88867 8.35808 5.88867C6.99413 5.88867 5.88889 7.00259 5.88889 8.3764ZM10.4659 26.1109H6.29043V12.6294H10.4659V26.1109Z"})});case"medium":return a(i,{viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:s,children:a("path",{d:"M9.89698 8.51543C14.2584 8.51543 17.7937 12.0754 17.7937 16.4666C17.7937 20.8578 14.2581 24.4175 9.89698 24.4175C5.53585 24.4175 2 20.8578 2 16.4666C2 12.0754 5.53558 8.51543 9.89698 8.51543ZM22.5079 8.98119C24.6886 8.98119 26.4564 12.3322 26.4564 16.4666H26.4566C26.4566 20.5999 24.6888 23.952 22.5082 23.952C20.3275 23.952 18.5597 20.5999 18.5597 16.4666C18.5597 12.3333 20.3272 8.98119 22.5079 8.98119ZM28.6113 9.76085C29.3781 9.76085 30 12.7631 30 16.4666C30 20.1691 29.3784 23.1723 28.6113 23.1723C27.8443 23.1723 27.2229 20.1699 27.2229 16.4666C27.2229 12.7633 27.8445 9.76085 28.6113 9.76085Z"})});case"navigation-arrow":return a(i,{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:s,children:a("path",{d:"M13.7929 8.46442L16.6083 11.2798L16.6213 11.2929L16.6235 11.2952C16.9631 11.6369 17.0053 12.1629 16.7494 12.5502C16.7128 12.6057 16.6701 12.6583 16.6213 12.7071L13.7929 15.5356C13.4025 15.9261 12.7692 15.9261 12.3788 15.5356C11.9882 15.145 11.9882 14.5119 12.3788 14.1213L13.5002 12.9999H8.0858C7.53352 12.9999 7.0858 12.5523 7.0858 11.9999C7.0858 11.4477 7.53352 10.9999 8.0858 10.9999H13.4999L12.3786 9.87872C11.9882 9.4881 11.9882 8.85504 12.3786 8.46442C12.7692 8.07391 13.4023 8.07391 13.7929 8.46442Z"})});case"unfold-more":return a(i,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:o,width:o},sx:s,children:a("path",{d:"M5.83 12.0001L9 8.83009L7.59 7.42009L3 12.0001L7.59 16.5901L9 15.1701L5.83 12.0001ZM18.17 12.0001L15 15.1701L16.41 16.5801L21 12.0001L16.41 7.41009L15 8.83009L18.17 12.0001Z",fill:"#190F33"})});case"play":return a(X,{style:{height:l,width:c},sx:s});case"close":return a(J,{style:{height:l,width:c},sx:s});case"arrow-forward":return a(Y,{style:{height:l,width:c},sx:s});case"expand-more":return a(K,{style:{height:l,width:c},sx:s});case"info":return a(Z,{style:{height:l,width:c},sx:s});case"check-circle":return a(W,{style:{height:l,width:c},sx:s});case"error-outline":return a(G,{style:{height:l,width:c},sx:s});case"lightbulb":return a(U,{style:{height:l,width:c},sx:s});case"warning-amber":return a(H,{style:{height:l,width:c},sx:s});case"access-time":return a(B,{style:{height:l,width:c},sx:s});case"menu":return a(V,{style:{height:l,width:c},sx:s});case"lock":return a(L,{style:{height:l,width:c},sx:s});case"check":return e(i,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 25",style:{height:o,width:o},children:[a("rect",{width:"24",height:"24",y:".5",fill:"#48B244",rx:"12"}),a("path",{fill:"#fff",d:"M5.44 13.096a1.5 1.5 0 0 0 0 2.121l2.828 2.829a1.5 1.5 0 0 0 2.121 0l8.485-8.485a1.5 1.5 0 1 0-2.121-2.122l-7.425 7.425-1.767-1.768a1.5 1.5 0 0 0-2.122 0Z"})]});case"dash":return a(i,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{height:o,width:o},children:a("path",{fill:"#BAB7C2",d:"M4.5 12A1.5 1.5 0 0 1 6 10.5h12a1.5 1.5 0 0 1 0 3H6A1.5 1.5 0 0 1 4.5 12Z"})});case"gift":return e(i,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{height:o,width:o},children:[a("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"none",d:"M20.5 8h-16a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1ZM12.5 8v13"}),a("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"none",d:"M19.5 12v7a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2v-7M8 8a2.5 2.5 0 1 1 0-5c.965-.017 1.91.451 2.713 1.343.802.892 1.425 2.166 1.787 3.657.362-1.49.985-2.765 1.787-3.657C15.09 3.451 16.035 2.983 17 3a2.5 2.5 0 0 1 0 5"})]});default:return e(i,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 33",style:{height:o,width:o},sx:s,children:[a("path",{fill:"#C8E8C7",d:"M0 16.426c0-8.836 7.163-16 16-16s16 7.164 16 16-7.163 16-16 16-16-7.163-16-16"}),a("path",{fill:"#48B244",d:"M7.252 17.221a2 2 0 0 0 0 2.828l3.772 3.772a2 2 0 0 0 2.828 0l11.314-11.314a2 2 0 0 0-2.829-2.828l-9.9 9.9-2.356-2.358a2 2 0 0 0-2.829 0"})]})}},oa="#FFFFFF",sa="#F8F8F9",ta="#E8E7EB",la="#D1CFD6",ca="#BAB7C2",da="#A39FAD",ua="#756F85",ma="#5E5770",ha="#190F33",ga="#130B26",ba="#1C142F",pa="#2A223C",ka="#413A51",ya="#585267",fa="#6F697D",va="#9D98A8",wa="#B4AFBE",za="#F9F6FF",ja={0:"#190f3300",.01:"#190f3303",1:"#190F3308",2:"#190F330F",3:"#190F331F",4:"#190F333D",5:"#190f3380"},xa={0:"#F9F6FF00",.01:"#fff6ff03",1:"#F9F6FF0A",2:"#F9F6FF14",3:"#F9F6FF1F",4:"#F9F6FF3D",5:"#f9f6ff80"},qa={0:"#F2EDFF",100:"#D9C9FF",200:"#BFA5FF",300:"#A582FF",400:"#8C5EFF",500:"#7F4CFF",600:"#7648E9",700:"#6441BE",800:"#533992",900:"#413167",1e3:"#2F2A3C"},$a={0:"#FFEEED",100:"#FECDCA",200:"#FDACA6",300:"#FD8B83",400:"#FC6B60",500:"#FC5A4E",600:"#E7554A",700:"#BC4A42",800:"#91403A",900:"#663632",1e3:"#3B2B2A"},Ca={0:"#EDF7EC",100:"#C8E8C7",200:"#A3D9A1",300:"#7FC97C",400:"#5ABA57",500:"#48B244",600:"#44A441",700:"#3D883B",800:"#376C35",900:"#30502F",1e3:"#293429"},Sa={light:{0:oa,50:sa,100:ta,200:la,300:ca,400:da,500:"#8C8799",600:ua,700:ma,800:"#473F5C",900:"#302747",950:"#251B3D",1e3:ha,1100:"#0D081A"},dark:{0:ga,50:ba,100:pa,200:ka,300:ya,400:fa,500:"#868092",600:va,700:wa,800:"#CBC7D4",900:"#E2DEE9",950:"#EDEAF4",1e3:za,1100:"#FFFFFF"}},Oa=e=>({light:{0:e[0],100:e[100],200:e[200],300:e[300],400:e[400],500:e[500],600:e[600],700:e[700],800:e[800],900:e[900],1e3:e[1e3]},dark:{0:e[1e3],100:e[900],200:e[800],300:e[700],400:e[600],500:e[500],600:e[400],700:e[300],800:e[200],900:e[100],1e3:e[0]}}),Na=Oa(qa),Ea=Oa($a),Pa=Oa({0:"#FFF8F6",100:"#FFEBE4",200:"#FFDFD2",300:"#FFD2C0",400:"#FFC5AE",500:"#FFBEA5",600:"#E9AF98",700:"#BE907F",800:"#927266",900:"#67544C",1e3:"#3C3533"}),Ma=Oa({0:"#FFF9E5",100:"#FFECB2",200:"#FFECB2",300:"#FFD24D",400:"#FFC61A",500:"#FFBF00",600:"#E9B004",700:"#BE910B",800:"#927313",900:"#67541B",1e3:"#3C3522"}),Ia=Oa({0:"#EBF8FB",100:"#C4E9F3",200:"#9DDAEB",300:"#76CBE4",400:"#4FBCDC",500:"#3CB4D8",600:"#39A6C6",700:"#358AA2",800:"#316D7F",900:"#2C515B",1e3:"#283438"}),Aa=Oa(Ca),Ta={light:{surface:{sunken:sa,default:oa,raised:oa,overlay:oa,scrim:ja[3],transparent:ja[.01]},interaction:{none:ja[0],hover:ja[1],press:ja[2],hoverOnDark:ja[3],pressOnDark:ja[4],disabled:ja[2]},stroke:{default:la,focus:qa[500],disabled:ta},text:{primary:ha,secondary:ua,placeholder:da,disabled:ca,textLink:qa[800],textLinkHover:qa[900],primaryInverted:oa,secondaryInverted:da,placeholderInverted:ua,disabledInverted:ma,positive:Ca[800],negative:$a[700],lockedWhite:oa},icon:{primary:ha,secondary:ua,disabled:ca,primaryInverted:oa,secondaryInverted:da,disabledInverted:ma,positive:Ca[800],negative:$a[700],lockedWhite:oa},input:{default:oa,disabled:"#FFFFFF80"}},dark:{surface:{default:ba,sunken:ga,raised:pa,overlay:ka,scrim:xa[3],transparent:xa[.01]},interaction:{none:xa[0],hover:xa[1],press:xa[2],hoverOnDark:xa[3],pressOnDark:xa[4],disabled:xa[2]},stroke:{default:ka,focus:qa[500],disabled:pa},text:{primary:za,secondary:wa,placeholder:fa,disabled:ya,textLink:qa[100],textLinkHover:qa[0],primaryInverted:ga,secondaryInverted:fa,placeholderInverted:va,disabledInverted:wa,positive:Ca[300],negative:$a[300],lockedWhite:oa},icon:{primary:za,secondary:wa,disabled:ya,primaryInverted:ga,secondaryInverted:fa,disabledInverted:wa,positive:Ca[300],negative:$a[300],lockedWhite:oa},input:{default:pa,disabled:"#2A223C80"}}};var Fa;!function(e){e[e.DEFAULT=400]="DEFAULT",e[e.BOLD=500]="BOLD"}(Fa||(Fa={}));const Ra={name:"Domaine",default:{fileName:"DomaineRegular.woff2",weight:Fa.DEFAULT},bold:{fileName:"DomaineMedium.woff2",weight:Fa.BOLD}},_a={name:"FoundersGrotesk",default:{fileName:"FoundersGroteskRegular.woff2",weight:Fa.DEFAULT},bold:{fileName:"FoundersGroteskMedium.woff2",weight:Fa.BOLD}},Da={Serif:'"Domaine", Palatino, serif',SansSerif:'"FoundersGrotesk", Arial, sans-serif'},La=e=>"bold"===e?Fa.BOLD:Fa.DEFAULT,Va=({component:e,weight:r="default",variation:n,clamp:i=0,...s})=>a(o,{component:e,fontWeight:La(r),variant:n,...s,sx:_e(s.sx,i?{display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical",WebkitLineClamp:i}:null)}),Ba=({logo:r,headerText:i,subText:o})=>{const t=n();return e(s,{gap:t.spacing(t.custom.margin.md),alignItems:"center",mb:t.spacing(t.custom.margin.lg),children:[!1===r?null:r||a(ia,{name:"loopsOfficial",sx:{width:{sm:79,md:79,lg:106},height:{sm:24,md:24,lg:32}}}),e(s,{gap:t.spacing(t.custom.margin.md),children:[i&&a(Va,{variation:"sm",component:"h1",align:"center",weight:"bold",children:i}),function(){if(o)return"string"==typeof o?a(Va,{variation:"md",component:"p",align:"center",children:o}):o}()]})]})},Ha=({variation:e="lg",children:r,...i})=>{const{custom:o}=n();switch(e){case"sm":return a(t,{sx:{border:`1px solid ${o.palette.stroke.default}`,height:32,width:32},...i,children:r});case"lg":return a(t,{sx:{border:`1px solid ${o.palette.stroke.default}`,height:48,width:48},...i,children:r})}},Ua=({variation:e="primary",...r})=>{if("primary"===e)return a(l,{...r})},Ga=["xs","sm","md","lg","xl","xxl","xxxl"],Wa=(e,a=16)=>{const r=1/a*e;return Math.round(1e3*r)/1e3},Za=(e,a="xs")=>{const r=Ga.reduce(((r,n,i)=>{const o=Ga.indexOf(a)||0,s=Number((16*Math.pow(e,i-o)).toFixed(2));return r[n]=s,r}),{}),n={};for(const[e,a]of Object.entries(r))n[e]=Wa(a)+"rem";return n},Ka={lg:{headline:Za(1.309,"xs"),body:Za(1.125,"md")},sm:{headline:Za(1.125,"xs"),body:Za(1.1,"md")},button:Za(1.125,"md")},Ya=e=>{const a=Ga.map((a=>({props:{variant:a},style:{fontFamily:`${Da.Serif}`,fontSize:Ka[e].headline[a]}}))),r=Ga.map((a=>({props:{variant:a,component:"h5"},style:{fontFamily:`${Da.SansSerif}`,fontSize:Ka[e].body[a]}}))),n=Ga.map((a=>({props:{variant:a,component:"h6"},style:{fontFamily:`${Da.SansSerif}`,fontSize:Ka[e].body[a]}})));return[...a,...Ga.map((a=>({props:{variant:a,component:"p"},style:{fontFamily:`${Da.SansSerif}`,fontSize:Ka[e].body[a]}}))),...r,...n]},Ja={xs:Ka.button.xs,sm:Ka.button.sm,md:Ka.button.sm,lg:Ka.button.md,xl:Ka.button.lg},Xa=e=>({backgroundColor:e.custom.palette.surface.transparent,fontWeight:300,"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus}}),Qa=e=>({backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,"&:hover":{backgroundColor:e.custom.palette.surface.raised},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},"&:active":{backgroundColor:e.custom.palette.surface.raised},"&:disabled":{border:`1px solid ${e.custom.palette.stroke.disabled}`}}),er=e=>({backgroundColor:e.custom.palette.purple[0],"&:hover":{backgroundColor:e.custom.palette.purple[0]},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},"&:active":{backgroundColor:e.custom.palette.purple[0]}}),ar=e=>({backgroundColor:e.custom.palette.purple[500],color:e.custom.palette.text.lockedWhite,"&:hover":{backgroundColor:e.custom.palette.purple[500],color:e.custom.palette.text.lockedWhite,"&::before":{backgroundColor:e.custom.palette.interaction.hoverOnDark}},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus,"&::before":{backgroundColor:e.custom.palette.interaction.hoverOnDark}},"&:active":{backgroundColor:e.custom.palette.purple[500],color:e.custom.palette.text.lockedWhite,"&::before":{backgroundColor:e.custom.palette.interaction.pressOnDark}}}),rr={xs:3*Ke,sm:3.5*Ke,md:4*Ke,lg:5*Ke,xl:6*Ke},nr={xs:.5*Ke,sm:.5*Ke,md:Ke,lg:Ke,xl:Ke},ir=e=>({"& .MuiButton-icon":{margin:0,".MuiSvgIcon-root":{height:na[e],width:na[e]}}}),or=e=>({"& .MuiBox-root":{lineHeight:"120%",fontSize:Ja[e],paddingLeft:nr[e],paddingRight:nr[e]}}),sr=e=>({height:rr[e],paddingLeft:Ke,paddingRight:Ke}),tr=c(d)((()=>({color:"inherit",position:"absolute",padding:2}))),lr=({sizing:e,...r})=>a(tr,{size:e?na[e]:40,...r}),cr=c(u)((({theme:e,loading:a})=>({boxSizing:"border-box",position:"relative",overflow:"hidden",borderRadius:e.spacing(e.custom.radius.md),textTransform:"none",minWidth:52,"&::before":{content:'""',backgroundColor:"transparent",transition:"all 200ms ease",position:"absolute",inset:0,zIndex:1},"& > .MuiBox-root, & .MuiButton-icon":{overflowWrap:"normal",position:"relative",zIndex:2},"& > .MuiButton-startIcon, & > .MuiButton-endIcon":{visibility:a?"hidden":"visible"}}))),dr=c((({children:r,loading:n,sizing:i,...o})=>e(cr,{...o,sizing:i,loading:n,children:[n&&a(lr,{sizing:i}),a(m,{...n?{visibility:"hidden"}:void 0,children:r})]})))((({theme:e,variation:a,sizing:r})=>({color:e.custom.palette.text.primary,...r&&{...or(r)},...r&&{...sr(r)},...r&&{...ir(r)},"&:hover:before":{backgroundColor:e.custom.palette.interaction.hover},"&:focus:before":{backgroundColor:e.custom.palette.interaction.hover},"&:active:before":{backgroundColor:e.custom.palette.interaction.press},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,color:e.custom.palette.text.disabled},..."subtle"===a&&{...Xa(e)},..."outlined"===a&&{...Qa(e)},..."secondary"===a&&{...er(e)},..."primary"===a&&{...ar(e)}}))),ur=({sizing:e="lg",variation:r="primary",...n})=>a(dr,{variation:r,sizing:e,...n}),mr=({label:e,sx:r,...i})=>{const o=n();return a(h,{label:e||"",sx:_e({ml:0,"&.Mui-disabled":{color:o.custom.palette.text.disabled},"&.Mui-error":{color:o.custom.palette.text.negative},"& .MuiFormControlLabel-label":{ml:e?o.custom.margin.md:0,color:"inherit",fontSize:{xs:Ka.sm.body.md,sm:Ka.sm.body.md,md:Ka.sm.body.md,lg:Ka.lg.body.md,xl:Ka.lg.body.md}}},r),...i})},hr=c(g)((({theme:e,sizing:a})=>({height:"default"===a?Ue:Ge,width:"default"===a?Ue:Ge,padding:0,flex:"none",borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.input.default,position:"relative",transition:e.custom.easing.input,"& svg":{transition:e.custom.easing.input,fill:"none",width:"default"===a?na.sm:na.xl,height:"default"===a?na.sm:na.xl},"&:before":{content:'""',position:"absolute",inset:0},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled},"&.Mui-checked":{backgroundColor:e.custom.palette.purple[500],"& svg":{fill:e.custom.palette.icon.lockedWhite},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,"& svg":{fill:e.custom.palette.icon.disabled}}},"&.Mui-focusVisible":{borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}}}))),gr=e=>a(hr,{checkedIcon:a(Q,{}),indeterminateIcon:a(ee,{}),...e}),br=({internalChange:e,checkboxLabel:r,indeterminate:n,sizing:i,onChange:o,inputRef:s,value:t,...l})=>a(mr,{inputRef:s,label:r,checked:t,control:a(gr,{sizing:i,indeterminate:n}),onChange:(a,r)=>{o&&o(a,r),e&&e()},...l}),pr=c(b)((({theme:e})=>({"& .MuiInputAdornment-root":{marginRight:0,"& .MuiSvgIcon-root":{width:na.xl,height:na.xl}},"& .MuiOutlinedInput-input":{padding:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},"& .MuiOutlinedInput-root":{backgroundColor:e.custom.palette.input.default,color:e.custom.palette.text.primary,borderRadius:e.spacing(e.custom.radius.md),lineHeight:"140%",[e.breakpoints.down("md")]:{minWidth:"100%"},paddingLeft:0,paddingRight:0,fontSize:Ka.sm.body.md,"&.Mui-focused":{"& fieldset":{transition:e.custom.easing.input,backgroundColor:e.custom.palette.interaction.press,borderColor:e.custom.palette.stroke.default},"& .MuiOutlinedInput-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.focus}`,boxShadow:e.custom.boxShadow.input.focus}},"&.Mui-disabled":{color:e.custom.palette.text.disabled,backgroundColor:e.custom.palette.input.disabled,"& fieldset":{transition:e.custom.easing.input,backgroundColor:e.custom.palette.interaction.none,borderColor:e.custom.palette.stroke.disabled},"& .MuiOutlinedInput-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.disabled}`,boxShadow:"none"}}},"&:hover":{"& .MuiOutlinedInput-root":{backgroundColor:e.custom.palette.input.default,"& fieldset":{backgroundColor:e.custom.palette.interaction.hover,borderColor:e.custom.palette.stroke.default},"&.Mui-focused":{"& fieldset":{backgroundColor:e.custom.palette.interaction.press,borderColor:e.custom.palette.stroke.default},"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${e.custom.palette.stroke.focus}`,boxShadow:e.custom.boxShadow.input.focus}},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,"& fieldset":{backgroundColor:e.custom.palette.interaction.none,borderColor:e.custom.palette.stroke.disabled},"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${e.custom.palette.stroke.disabled}`,boxShadow:"none"}}}}}))),kr=({startAdornment:e,endAdornment:r,placeholder:n,onChange:i,internalChange:o,inputRef:s,...t})=>a(pr,{placeholder:n,sx:{height:We,"& .MuiOutlinedInput-input":{pl:e?1:2,pr:e?1:2}},inputRef:s,InputProps:{startAdornment:e?a(p,{position:"start",sx:{pl:1},children:e}):null,endAdornment:r?a(p,{position:"start",sx:{pr:1},children:r}):null},...t,onChange:e=>{i&&i(e),o&&o()}}),yr=({sizing:n,options:i,other:o,internalChange:s,value:t,inputRef:l,onChange:c})=>{const d=o?.name||"other-option",u=`${d}-value-`,h=e=>`${u}${e}`,g=o?.enabled,b=t?.includes(d)&&g,p=t?.find((e=>e.includes(u)));if(!t)return a("div",{});const y=(e,a)=>{let r=t.includes(e)?t.filter((a=>a!==e)):a?[e]:[...new Set(t),e];if(a||(r=r.filter((e=>!i.find((a=>a?.exclusive&&e===a.value))))),o?.enabled){!t.includes(d)||e!==d||(r=r.filter((e=>!e.includes(u))))}c(r),s&&s()};return e(r,{children:[e(k,{sx:{display:"flex",gap:e=>e.custom.margin.sm,label:{"&:last-child":{mb:0},"&:hover":{"& .MuiCheckbox-root":{backgroundColor:e=>e.custom.palette.interaction.hover,"&.Mui-checked":{backgroundColor:e=>e.custom.palette.purple[500]}}}}},children:[i?i.map(((e,r)=>{const i=e.value;return a(mr,{sx:{"& .MuiButtonBase-root.MuiCheckbox-root":{alignSelf:"baseline"}},onChange:()=>y(i,e.exclusive),checked:t.includes(i),control:a(gr,{sizing:n}),label:e.label},i)})):null,g&&a(mr,{inputRef:l,onChange:()=>y(d),label:o?.label||"Other",checked:t.includes(d),control:a(gr,{sizing:n})},d)]}),b&&a(m,{sx:{mt:1},children:a(kr,{fullWidth:!0,autoFocus:!0,defaultValue:p?p.replace(u,""):"",placeholder:o?.placeholder,onChange:e=>{const a=t.find((e=>e.includes(u))),r=(a?t.map((a=>a.includes(u)?h(e.target.value):a)):[...t,h(e.target.value)]).filter((e=>e!==u));c(r),s&&s()},required:!0})})]})},fr=e=>`linear-gradient(135deg, ${e.custom.palette.purple[400]} 0%, ${e.custom.palette.purple[200]} 100%)`,vr=(e,a)=>{switch(a){case"tone1":default:return fr(e);case"tone2":return(e=>`linear-gradient(135deg, ${e.custom.palette.purple[0]} 0%, ${e.custom.palette.purple[100]} 100%)`)(e);case"tone3":return(e=>`linear-gradient(135deg, ${e.custom.palette.blue[400]} 0%, ${e.custom.palette.purple[600]} 100%)`)(e);case"tone4":return(e=>`radial-gradient(54.59% 50% at 0% 50.04%, ${y(e.custom.palette.blue[1e3],.2)} 0%, ${y(e.custom.palette.blue[500],.2)} 100%), linear-gradient(135deg, ${e.custom.palette.purple[500]} 0%, ${e.custom.palette.purple[1e3]} 100%)`)(e)}},wr=(e,a)=>{const r=vr(e,a.gradient),n=(e=>"noise1"===e?"url(https://useloops-public.s3.eu-west-2.amazonaws.com/public/static/misc/noise_tile.png)":null)(a.texture);return n?[n,r].join(","):[r].join(",")},zr=({sx:e,children:r,texture:i="noise1",gradient:o="tone1",...s})=>{const t=n();return a(f,{maxWidth:!1,disableGutters:!0,sx:_e({background:wr(t,{texture:i,gradient:o}),height:"100%",p:[0,0,0]},!!e&&{...e}),...s,children:r})},jr=c(v)((({theme:e,align:a})=>({fontWeight:400,lineHeight:"140%",whiteSpace:"normal",textAlign:a,color:"inherit","&.Mui-disabled":{color:e.custom.palette.text.disabled},"&.Mui-error":{color:e.custom.palette.text.negative}}))),xr=e=>a(jr,{...e}),qr=r=>{const{icon:i=null,state:o="default",disabled:s,showicon:t=!0}=r,l=n();return e(m,{sx:{display:"inline-flex",alignItems:"center",color:s?l.custom.palette.text.disabled:(()=>{switch(o){case"disabled":return l.custom.palette.text.disabled;case"positive":return l.custom.palette.text.positive;case"negative":return l.custom.palette.text.negative;default:return l.custom.palette.text.secondary}})(),"& svg":{marginRight:l.spacing(l.custom.margin.xs),width:na.xs,height:na.xs,color:"inherit"}},children:[(()=>{if(!t)return null;if(i)return i;switch(o){case"disabled":default:return a(m,{sx:{height:20,display:"flex",alignItems:"center",alignSelf:"flex-start"},children:a(ae,{})});case"positive":return a(m,{sx:{height:20,display:"flex",alignItems:"center",alignSelf:"flex-start"},children:a(Q,{})});case"negative":return a(m,{sx:{height:20,display:"flex",alignItems:"center",alignSelf:"flex-start"},children:a(re,{})})}})(),a(xr,{...r,sx:{fontSize:{xs:Ka.sm.body.sm,sm:Ka.sm.body.sm,md:Ka.sm.body.sm,lg:Ka.lg.body.sm,xl:Ka.lg.body.sm}}})]})},$r=c(m)((({theme:e})=>({"& .MuiGrid-item":{"&:first-of-type":{"& .MuiBox-root":{"& .MuiRadio-root":{"&:before":{content:'""',position:"absolute",width:Ve,height:Ve,top:`calc(100% + ${Ve}px)`,margin:"0 auto",background:e.custom.palette.stroke.default}}}},"&:last-of-type":{"& .MuiBox-root":{"& .MuiRadio-root":{"&:before":{content:'""',position:"absolute",width:Ve,height:Ve,top:`calc(100% + ${Ve}px)`,margin:"0 auto",background:e.custom.palette.stroke.default}}}}}}))),Cr=({children:e,width:r})=>a($r,{sx:{width:r,minWidth:300},children:e}),Sr=c(w)((({theme:e,sizing:a})=>({padding:0,backgroundColor:e.custom.palette.input.default,border:`1px solid ${e.custom.palette.stroke.default}`,position:"relative",transition:e.custom.easing.input,flexShrink:0,height:"default"===a?Ue:Ge,width:"default"===a?Ue:Ge,"& svg":{transition:e.custom.easing.input,fill:"none",width:"default"===a&&na.sm,height:"default"===a&&na.sm},"&:before":{content:'""',position:"absolute",inset:0,borderRadius:e.custom.radius.round},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& svg":{"&:first-of-type":{fill:"transparent"},fill:e.custom.palette.icon.disabled}},"&.Mui-focusVisible":{borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}},"&.Mui-checked":{backgroundColor:e.custom.palette.purple[500],"& svg":{"&:first-of-type":{fill:"transparent"},fill:e.custom.palette.icon.lockedWhite},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& svg":{"&:first-of-type":{fill:"transparent"},fill:e.custom.palette.icon.disabled}}}}))),Or=e=>a(Sr,{...e}),Nr=c(Or)((()=>({marginRight:0}))),Er=c(m)((({theme:e})=>({posiion:"relative","&:after":{content:'""',position:"absolute",top:"50%",right:"0",height:Ve,width:`calc(100% - ${Ge}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default}}))),Pr=e=>a(Er,{sx:{position:"relative"},children:a(Nr,{...e})}),Mr=({disabled:r=!1,onChange:n,labelLeft:i,labelRight:o,internalChange:s,labelCenter:t})=>{const l=[...Array(7).keys()];return a(z,{children:e(Cr,{children:[a(j,{container:!0,justifyContent:"space-between",children:l.map(((e,i)=>{const o=i+1!==l.length;return a(j,{item:!0,sm:o,children:a(Pr,{disabled:r,value:e,onChange:(e,a)=>{n&&n(e,a),s&&s()},name:`radio-option-${e}`},e)},e)}))}),e(j,{container:!0,justifyContent:"space-between",sx:{mt:1},children:[a(j,{item:!0,sm:!0,sx:{textAlign:"left"},children:a(qr,{disabled:r,showicon:!1,children:i})}),a(j,{item:!0,sm:!0,sx:{textAlign:"center"},children:a(qr,{disabled:r,align:"center",showicon:!1,children:t})}),a(j,{item:!0,sm:!0,sx:{textAlign:"right"},children:a(qr,{disabled:r,align:"right",showicon:!1,children:o})})]})]})})},Ir=({sx:e,...r})=>a(xr,{...r,sx:_e({fontSize:{xs:Ka.sm.body.md,sm:Ka.sm.body.md,md:Ka.sm.body.md,lg:Ka.lg.body.md,xl:Ka.lg.body.md}},!!e&&{...e})}),Ar=te({attributes:{},listeners:void 0,ref(){}}),Tr=e=>Oe({...e,wasDragging:!0});function Fr({children:r,top:n,bottom:i,id:o}){const{attributes:t,isDragging:l,listeners:c,setNodeRef:d,setActivatorNodeRef:u,transform:h,transition:g}=Se({id:o,animateLayoutChanges:Tr}),b=le((()=>({attributes:t,listeners:c,ref:u})),[t,c,u]),p={opacity:l?.4:void 0,transform:Ae.Translate.toString(h),transition:g};return a(Ar.Provider,{value:b,children:e(s,{className:"SortableItem",...t,sx:{position:"relative",...p,width:"100%"},ref:d,children:[n&&n,a(m,{...c,sx:{display:"flex",cursor:"grab"},children:r}),i&&i]})})}const Rr={sideEffects:fe({styles:{active:{opacity:"0.4"}}})};function _r({children:e}){return Te(a(ve,{zIndex:999999,dropAnimation:Rr,children:e}),document.body)}const Dr=({nativeEvent:e})=>{let a=e.target;for(;a;){if(a.dataset.noDnd)return!1;a=a.parentElement}return!0};class Lr extends $e{static activators=[{eventName:"onMouseDown",handler:Dr}]}class Vr extends Ce{static activators=[{eventName:"onTouchStart",handler:Dr}]}function Br({items:r,onChange:i,renderItem:o,disabled:t,direction:l}){if(!r)return;const[c,d]=de(null),u=le((()=>r.find((e=>e?.id===c?.id))),[c,r]),m=n(),h=x(m.breakpoints.down("md")),g=we(ze(Lr,{activationConstraint:{distance:5}}),ze(Vr,{activationConstraint:{delay:h?300:0,tolerance:8}}),ze(je,{coordinateGetter:Ne}));return e(xe,{measuring:{droppable:{strategy:qe.Always}},sensors:g,onDragStart:({active:e})=>{d(e)},onDragEnd:({active:e,over:a})=>{if(a&&e.id!==a?.id){const n=r.findIndex((({id:a})=>a===e.id)),o=r.findIndex((({id:e})=>e===a.id));i(Ee(r,n,o))}d(null)},onDragCancel:()=>{d(null)},children:[a(Pe,{items:r,disabled:t,strategy:"horizontal"===l?Me:Ie,children:a(s,{sx:{..."horizontal"===l&&{flexDirection:"row"},display:"flex",m:0,gap:1,padding:0,alignContent:"flex-start"},children:r.map((e=>a(ue,{children:o(e)},e.id)))})}),a(_r,{children:u?o(u,!0,!!c):null})]})}function Hr(e){let a="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)a+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+a+" for the full message."}Br.Item=Fr,Br.DragHandle=function(){const{attributes:e,listeners:r,ref:n}=ce(Ar);return a(m,{...e,...r,ref:n,children:a("svg",{viewBox:"0 0 20 20",width:"12",children:a("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})};var Ur="$$material";function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gr.apply(null,arguments)}function Wr(e,a){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(a.includes(n))continue;r[n]=e[n]}return r}function Zr(e){let a="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)a+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+a+" for the full message."}var Kr=Object.freeze({__proto__:null,default:Zr});function Yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jr(e){if(e.__esModule)return e;var a=e.default;if("function"==typeof a){var r=function e(){return this instanceof e?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};r.prototype=a.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})})),r}var Xr,Qr={exports:{}},en={exports:{}},an={};var rn,nn,on,sn,tn,ln,cn,dn,un,mn,hn,gn,bn,pn,kn={};
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.development.js
|
|
4
4
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -694,7 +694,7 @@ interface BaseField {
|
|
|
694
694
|
multiline?: boolean;
|
|
695
695
|
fieldType: FieldType;
|
|
696
696
|
content?: ReactElement;
|
|
697
|
-
defaultValue?: string | number | string[] | undefined;
|
|
697
|
+
defaultValue?: string | number | string[] | boolean | undefined;
|
|
698
698
|
label?: string;
|
|
699
699
|
labelProps?: InputLabelProps;
|
|
700
700
|
helperText?: string;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),a=require("@mui/material"),r=require("@mui/icons-material"),n=require("react"),i=require("@dnd-kit/core"),o=require("@dnd-kit/sortable"),s=require("@dnd-kit/utilities"),t=require("react-dom"),l=require("@mui/styled-engine"),c=require("@emotion/react");function d(e){var a=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),a.default=e,Object.freeze(a)}var u=d(n);const m=(...e)=>{const a=[];for(const r of e)if(r)if(Array.isArray(r))for(const e of r)a.push(e);else a.push(r);return a},h={sm:0,md:584,lg:812,lgNav:1e3,xl:1280,xxl:1728},g=0,b=4,p=8,k=16,y=24,f=32,v=40,w=48,z=p,j={none:g,xs:b/z,sm:p/z,md:k/z,lg:f/z,xl:w/z,xxl:80/z,xxxl:160/z},x={none:g,xs:b/z,sm:p/z,md:k/z,lg:f/z,xl:w/z},q={none:g,xs:2/z,sm:b/z,md:p/z,lg:k/z,xl:y/z,round:999},$={raised:"0px 0px 0px 1px rgba(255, 255, 255, 0.12), 0px 0px 4px 2px rgba(6, 4, 13, 0.04), 0px 1px 2px 0px rgba(6, 4, 13, 0.16)",overlay:"0px 0px 0px 1px rgba(255, 255, 255, 0.16), 0px 0px 4px 2px rgba(6, 4, 13, 0.04), 0px 16px 24px 0px rgba(6, 4, 13, 0.08), 0px 4px 8px 0px rgba(6, 4, 13, 0.08)"},C={raised:"drop-shadow(0px 0px 0px rgba(255, 255, 255, 0.12)) drop-shadow(0px 0px 4px rgba(6, 4, 13, 0.04)) drop-shadow(0px 1px 2px rgba(6, 4, 13, 0.16))",overlay:"drop-shadow(0px 0px 0px rgba(255, 255, 255, 0.16)) drop-shadow(0px 0px 4px rgba(6, 4, 13, 0.04)) drop-shadow(0px 16px 24px rgba(6, 4, 13, 0.08)) drop-shadow(0px 4px 8px rgba(6, 4, 13, 0.08))"},S={input:{focus:"0px 0px 0px 4px rgba(127, 76, 255, 0.24)"}},O={default:"cubic-bezier(0.16, 1, 0.3, 1)",input:"all 200ms ease"},N={xs:2*z,sm:2*z,md:2*z,lg:2.5*z,xl:3*z},E=({name:n,size:i,sx:o})=>{const s=a.useTheme(),t=i||N.xl,l=i||N.xl;switch(n){case"loopsOfficial":return e.jsx(a.SvgIcon,{viewBox:"0 0 106 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:m(o,{"&.MuiSvgIcon-root path":{fill:"light"===s.palette.mode?s.custom.palette.icon.primary:s.custom.palette.icon.lockedWhite}}),children:e.jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M11.8076 25.5073C10.0999 24.3082 9.74198 23.9512 9.74198 21.312V0H0.290527V0.399695L0.306001 0.409234C2.04234 1.47961 2.83235 1.96661 2.83235 4.59497V21.312C2.83235 23.9512 2.47443 24.3082 0.76674 25.5073V25.9069H11.8076V25.5073ZM12.3202 17.8947C13.3939 24.0305 18.9477 27.1823 24.7775 26.151C30.6043 25.1167 34.7507 20.2258 33.6769 14.1053C32.6032 7.98474 27.0494 4.81464 21.2196 5.84897C15.3898 6.88329 11.2464 11.759 12.3202 17.8947ZM19.518 16.6163C18.4897 10.7155 18.9052 8.04577 21.5229 7.582C24.1405 7.11518 25.4509 9.47368 26.4791 15.3745C27.5074 21.2754 27.0949 23.9329 24.4742 24.4089C21.8535 24.8848 20.5462 22.5172 19.518 16.6163ZM47.572 26.151C41.7453 27.1823 36.1915 24.0305 35.1147 17.8947C34.0379 11.759 38.1843 6.88329 44.0141 5.84897C49.8439 4.81464 55.3947 7.98474 56.4715 14.1053C57.5482 20.2258 53.3988 25.1167 47.572 26.151ZM44.3174 7.582C41.6967 8.04577 41.2842 10.7155 42.3125 16.6163C43.3407 22.5172 44.648 24.8848 47.2687 24.418C49.8894 23.9512 50.3019 21.2845 49.2737 15.3837C48.2454 9.48284 46.9381 7.11518 44.3174 7.582ZM68.4727 31.5116C66.4862 30.3817 65.7713 29.9751 65.7713 27.405L65.7773 22.6117C66.8086 24.6896 68.8742 26.328 72.2896 26.328C77.4521 26.328 81.5439 22.4012 81.5439 15.6491C81.5439 8.77803 77.5553 5.70252 73.0054 5.70252C69.2716 5.70252 66.6873 7.81998 65.7773 10.7368L65.6166 6.10221H56.4836V6.4836L56.4855 6.48484C58.1918 7.60063 58.8647 8.04064 58.8647 10.6789V27.405C58.8647 30.0412 58.5098 30.4012 56.7991 31.6003V32H68.6285V31.6003L68.4727 31.5116ZM70.0996 23.8963C67.6761 23.8963 65.7713 21.1411 65.7713 17.9466V15.0999C65.7713 11.5454 67.479 8.86651 70.0996 8.86651C72.8386 8.86651 74.1884 11.3867 74.1884 15.6583C74.1884 21.2998 72.7992 23.8963 70.0996 23.8963ZM103.38 26.2487C104.665 26.2487 105.706 25.2009 105.706 23.9085C105.706 22.616 104.665 21.5683 103.38 21.5683C102.095 21.5683 101.053 22.616 101.053 23.9085C101.053 25.2009 102.095 26.2487 103.38 26.2487ZM92.7131 12.3899C90.0531 11.6005 88.5566 11.1564 88.5566 9.56827C88.5566 8.23799 89.7699 7.64913 91.1045 7.64913C93.6888 7.64913 95.712 9.12891 98.0566 12.5645H98.6117V5.69337H98.2143L96.4278 7.01145C96.3499 6.97924 96.2721 6.94694 96.1943 6.91464C94.7242 6.30433 93.2525 5.69337 91.0257 5.69337C86.7762 5.69337 83.4002 8.32952 83.4002 12.2441C83.4002 15.759 85.0715 17.7574 91.0681 19.3166C93.2945 19.8749 94.8414 20.2746 94.8414 21.9924C94.8414 23.5912 93.2945 24.3478 91.426 24.3478C88.5566 24.3478 86.4607 22.3921 83.7035 18.6758H83.0969L83.5155 26.267H83.9522L85.5386 24.6682C86.8095 25.3089 88.7963 26.3066 91.4564 26.3066C96.54 26.3066 100.077 23.4691 100.077 19.4752C100.077 15.3593 97.6198 13.8429 92.7667 12.4058L92.7131 12.3899Z",fill:"#190F33"})});case"google":return e.jsxs(a.SvgIcon,{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:o,children:[e.jsx("path",{d:"M19.3 10.2085C19.3 9.5585 19.2417 8.9335 19.1334 8.3335H10.5V11.8835H15.4334C15.2167 13.0252 14.5667 13.9918 13.5917 14.6418V16.9502H16.5667C18.3 15.3502 19.3 13.0002 19.3 10.2085Z",fill:"#4285F4"}),e.jsx("path",{d:"M10.5 19.1668C12.975 19.1668 15.05 18.3502 16.5667 16.9502L13.5917 14.6418C12.775 15.1918 11.7334 15.5252 10.5 15.5252C8.11671 15.5252 6.09171 13.9168 5.36671 11.7502H2.31671V14.1168C3.82504 17.1085 6.91671 19.1668 10.5 19.1668Z",fill:"#34A853"}),e.jsx("path",{d:"M5.36671 11.7418C5.18337 11.1918 5.07504 10.6085 5.07504 10.0002C5.07504 9.39183 5.18337 8.8085 5.36671 8.2585V5.89183H2.31671C1.69171 7.12516 1.33337 8.51683 1.33337 10.0002C1.33337 11.4835 1.69171 12.8752 2.31671 14.1085L4.69171 12.2585L5.36671 11.7418Z",fill:"#FBBC05"}),e.jsx("path",{d:"M10.5 4.4835C11.85 4.4835 13.05 4.95016 14.0084 5.85016L16.6334 3.22516C15.0417 1.74183 12.975 0.833496 10.5 0.833496C6.91671 0.833496 3.82504 2.89183 2.31671 5.89183L5.36671 8.2585C6.09171 6.09183 8.11671 4.4835 10.5 4.4835Z",fill:"#EA4335"})]});case"linkedin-color":return e.jsxs(a.SvgIcon,{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:o,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.37041 19.1668H17.6297C18.7547 19.1668 19.6667 18.2548 19.6667 17.1298V2.87053C19.6667 1.74551 18.7547 0.833496 17.6297 0.833496H3.37041C2.24539 0.833496 1.33337 1.74551 1.33337 2.87053V17.1298C1.33337 18.2548 2.24539 19.1668 3.37041 19.1668Z",fill:"#007EBB"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1204 16.6205H14.3999V11.9868C14.3999 10.7164 13.9171 10.0064 12.9116 10.0064C11.8176 10.0064 11.2461 10.7452 11.2461 11.9868V16.6205H8.62427V7.79337H11.2461V8.98239C11.2461 8.98239 12.0344 7.52369 13.9076 7.52369C15.78 7.52369 17.1204 8.66704 17.1204 11.0317V16.6205ZM5.4964 6.63753C4.60334 6.63753 3.87967 5.90818 3.87967 5.00866C3.87967 4.10914 4.60334 3.37979 5.4964 3.37979C6.38946 3.37979 7.1127 4.10914 7.1127 5.00866C7.1127 5.90818 6.38946 6.63753 5.4964 6.63753ZM4.14259 16.6205H6.87651V7.79337H4.14259V16.6205Z",fill:"white"})]});case"positive":return e.jsx(a.SvgIcon,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",style:{height:i,width:i},sx:o,children:e.jsx("path",{d:"M7.25241 16.7949C6.47136 17.576 6.47136 18.8423 7.25241 19.6234L11.0236 23.3946C11.8047 24.1756 13.071 24.1756 13.8521 23.3946L25.1658 12.0809C25.9468 11.2998 25.9468 10.0335 25.1658 9.25246C24.3847 8.47141 23.1184 8.47141 22.3374 9.25246L12.4379 19.152L10.0808 16.7949C9.29979 16.0139 8.03346 16.0139 7.25241 16.7949Z",fill:"#48B244"})});case"negative":return e.jsx(a.SvgIcon,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:o,children:e.jsx("path",{d:"M9.25241 9.25244C8.47136 10.0335 8.47136 11.2998 9.25241 12.0809L13.4951 16.3235L9.25241 20.5662C8.47136 21.3472 8.47136 22.6135 9.25241 23.3946C10.0335 24.1756 11.2998 24.1756 12.0808 23.3946L16.3235 19.1519L20.5661 23.3946C21.3472 24.1756 22.6135 24.1756 23.3945 23.3946C24.1756 22.6135 24.1756 21.3472 23.3945 20.5662L19.1519 16.3235L23.3945 12.0809C24.1756 11.2998 24.1756 10.0335 23.3945 9.25244C22.6135 8.47139 21.3472 8.4714 20.5661 9.25244L16.3235 13.4951L12.0808 9.25244C11.2998 8.47139 10.0335 8.47139 9.25241 9.25244Z",fill:"#FC5A4E"})});case"neutral":return e.jsx(a.SvgIcon,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:o,children:e.jsx("path",{d:"M6 16C6 14.8954 6.89543 14 8 14L24 14C25.1046 14 26 14.8954 26 16C26 17.1046 25.1046 18 24 18H8C6.89543 18 6 17.1046 6 16Z",fill:"#8C8799"})});case"linkedin":return e.jsx(a.SvgIcon,{style:{height:i,width:i},viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",sx:o,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.8889 30H5.11111C3.39289 30 2 28.6071 2 26.8889V5.11111C2 3.39289 3.39289 2 5.11111 2H26.8889C28.6071 2 30 3.39289 30 5.11111V26.8889C30 28.6071 28.6071 30 26.8889 30ZM21.9561 26.1109H26.1111V17.5753C26.1111 13.9637 24.0639 12.2175 21.2043 12.2175C18.3435 12.2175 17.1395 14.4454 17.1395 14.4454V12.6294H13.1352V26.1109H17.1395V19.0339C17.1395 17.1377 18.0123 16.0093 19.683 16.0093C21.2188 16.0093 21.9561 17.0936 21.9561 19.0339V26.1109ZM5.88889 8.3764C5.88889 9.75021 6.99413 10.8641 8.35808 10.8641C9.72202 10.8641 10.8266 9.75021 10.8266 8.3764C10.8266 7.00259 9.72202 5.88867 8.35808 5.88867C6.99413 5.88867 5.88889 7.00259 5.88889 8.3764ZM10.4659 26.1109H6.29043V12.6294H10.4659V26.1109Z"})});case"medium":return e.jsx(a.SvgIcon,{viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:o,children:e.jsx("path",{d:"M9.89698 8.51543C14.2584 8.51543 17.7937 12.0754 17.7937 16.4666C17.7937 20.8578 14.2581 24.4175 9.89698 24.4175C5.53585 24.4175 2 20.8578 2 16.4666C2 12.0754 5.53558 8.51543 9.89698 8.51543ZM22.5079 8.98119C24.6886 8.98119 26.4564 12.3322 26.4564 16.4666H26.4566C26.4566 20.5999 24.6888 23.952 22.5082 23.952C20.3275 23.952 18.5597 20.5999 18.5597 16.4666C18.5597 12.3333 20.3272 8.98119 22.5079 8.98119ZM28.6113 9.76085C29.3781 9.76085 30 12.7631 30 16.4666C30 20.1691 29.3784 23.1723 28.6113 23.1723C27.8443 23.1723 27.2229 20.1699 27.2229 16.4666C27.2229 12.7633 27.8445 9.76085 28.6113 9.76085Z"})});case"navigation-arrow":return e.jsx(a.SvgIcon,{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:o,children:e.jsx("path",{d:"M13.7929 8.46442L16.6083 11.2798L16.6213 11.2929L16.6235 11.2952C16.9631 11.6369 17.0053 12.1629 16.7494 12.5502C16.7128 12.6057 16.6701 12.6583 16.6213 12.7071L13.7929 15.5356C13.4025 15.9261 12.7692 15.9261 12.3788 15.5356C11.9882 15.145 11.9882 14.5119 12.3788 14.1213L13.5002 12.9999H8.0858C7.53352 12.9999 7.0858 12.5523 7.0858 11.9999C7.0858 11.4477 7.53352 10.9999 8.0858 10.9999H13.4999L12.3786 9.87872C11.9882 9.4881 11.9882 8.85504 12.3786 8.46442C12.7692 8.07391 13.4023 8.07391 13.7929 8.46442Z"})});case"unfold-more":return e.jsx(a.SvgIcon,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:o,children:e.jsx("path",{d:"M5.83 12.0001L9 8.83009L7.59 7.42009L3 12.0001L7.59 16.5901L9 15.1701L5.83 12.0001ZM18.17 12.0001L15 15.1701L16.41 16.5801L21 12.0001L16.41 7.41009L15 8.83009L18.17 12.0001Z",fill:"#190F33"})});case"play":return e.jsx(r.PlayCircle,{style:{height:t,width:l},sx:o});case"close":return e.jsx(r.Close,{style:{height:t,width:l},sx:o});case"arrow-forward":return e.jsx(r.ArrowForward,{style:{height:t,width:l},sx:o});case"expand-more":return e.jsx(r.ExpandMore,{style:{height:t,width:l},sx:o});case"info":return e.jsx(r.InfoOutlined,{style:{height:t,width:l},sx:o});case"check-circle":return e.jsx(r.CheckCircleOutlineOutlined,{style:{height:t,width:l},sx:o});case"error-outline":return e.jsx(r.ErrorOutlineOutlined,{style:{height:t,width:l},sx:o});case"lightbulb":return e.jsx(r.LightbulbOutlined,{style:{height:t,width:l},sx:o});case"warning-amber":return e.jsx(r.WarningAmberRounded,{style:{height:t,width:l},sx:o});case"access-time":return e.jsx(r.QueryBuilderRounded,{style:{height:t,width:l},sx:o});case"menu":return e.jsx(r.MenuRounded,{style:{height:t,width:l},sx:o});case"lock":return e.jsx(r.LockOutlined,{style:{height:t,width:l},sx:o});case"check":return e.jsxs(a.SvgIcon,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 25",style:{height:i,width:i},children:[e.jsx("rect",{width:"24",height:"24",y:".5",fill:"#48B244",rx:"12"}),e.jsx("path",{fill:"#fff",d:"M5.44 13.096a1.5 1.5 0 0 0 0 2.121l2.828 2.829a1.5 1.5 0 0 0 2.121 0l8.485-8.485a1.5 1.5 0 1 0-2.121-2.122l-7.425 7.425-1.767-1.768a1.5 1.5 0 0 0-2.122 0Z"})]});case"dash":return e.jsx(a.SvgIcon,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{height:i,width:i},children:e.jsx("path",{fill:"#BAB7C2",d:"M4.5 12A1.5 1.5 0 0 1 6 10.5h12a1.5 1.5 0 0 1 0 3H6A1.5 1.5 0 0 1 4.5 12Z"})});case"gift":return e.jsxs(a.SvgIcon,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{height:i,width:i},children:[e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"none",d:"M20.5 8h-16a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1ZM12.5 8v13"}),e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"none",d:"M19.5 12v7a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2v-7M8 8a2.5 2.5 0 1 1 0-5c.965-.017 1.91.451 2.713 1.343.802.892 1.425 2.166 1.787 3.657.362-1.49.985-2.765 1.787-3.657C15.09 3.451 16.035 2.983 17 3a2.5 2.5 0 0 1 0 5"})]});default:return e.jsxs(a.SvgIcon,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 33",style:{height:i,width:i},sx:o,children:[e.jsx("path",{fill:"#C8E8C7",d:"M0 16.426c0-8.836 7.163-16 16-16s16 7.164 16 16-7.163 16-16 16-16-7.163-16-16"}),e.jsx("path",{fill:"#48B244",d:"M7.252 17.221a2 2 0 0 0 0 2.828l3.772 3.772a2 2 0 0 0 2.828 0l11.314-11.314a2 2 0 0 0-2.829-2.828l-9.9 9.9-2.356-2.358a2 2 0 0 0-2.829 0"})]})}},P="#FFFFFF",M="#F8F8F9",I="#E8E7EB",A="#D1CFD6",T="#BAB7C2",F="#A39FAD",R="#756F85",_="#5E5770",D="#190F33",L="#130B26",B="#1C142F",V="#2A223C",G="#413A51",H="#585267",U="#6F697D",W="#9D98A8",Z="#B4AFBE",K="#F9F6FF",Y={0:"#190f3300",.01:"#190f3303",1:"#190F3308",2:"#190F330F",3:"#190F331F",4:"#190F333D",5:"#190f3380"},J={0:"#F9F6FF00",.01:"#fff6ff03",1:"#F9F6FF0A",2:"#F9F6FF14",3:"#F9F6FF1F",4:"#F9F6FF3D",5:"#f9f6ff80"},X={0:"#F2EDFF",100:"#D9C9FF",200:"#BFA5FF",300:"#A582FF",400:"#8C5EFF",500:"#7F4CFF",600:"#7648E9",700:"#6441BE",800:"#533992",900:"#413167",1e3:"#2F2A3C"},Q={0:"#FFEEED",100:"#FECDCA",200:"#FDACA6",300:"#FD8B83",400:"#FC6B60",500:"#FC5A4E",600:"#E7554A",700:"#BC4A42",800:"#91403A",900:"#663632",1e3:"#3B2B2A"},ee={0:"#EDF7EC",100:"#C8E8C7",200:"#A3D9A1",300:"#7FC97C",400:"#5ABA57",500:"#48B244",600:"#44A441",700:"#3D883B",800:"#376C35",900:"#30502F",1e3:"#293429"},ae={light:{0:P,50:M,100:I,200:A,300:T,400:F,500:"#8C8799",600:R,700:_,800:"#473F5C",900:"#302747",950:"#251B3D",1e3:D,1100:"#0D081A"},dark:{0:L,50:B,100:V,200:G,300:H,400:U,500:"#868092",600:W,700:Z,800:"#CBC7D4",900:"#E2DEE9",950:"#EDEAF4",1e3:K,1100:"#FFFFFF"}},re=e=>({light:{0:e[0],100:e[100],200:e[200],300:e[300],400:e[400],500:e[500],600:e[600],700:e[700],800:e[800],900:e[900],1e3:e[1e3]},dark:{0:e[1e3],100:e[900],200:e[800],300:e[700],400:e[600],500:e[500],600:e[400],700:e[300],800:e[200],900:e[100],1e3:e[0]}}),ne=re(X),ie=re(Q),oe=re({0:"#FFF8F6",100:"#FFEBE4",200:"#FFDFD2",300:"#FFD2C0",400:"#FFC5AE",500:"#FFBEA5",600:"#E9AF98",700:"#BE907F",800:"#927266",900:"#67544C",1e3:"#3C3533"}),se=re({0:"#FFF9E5",100:"#FFECB2",200:"#FFECB2",300:"#FFD24D",400:"#FFC61A",500:"#FFBF00",600:"#E9B004",700:"#BE910B",800:"#927313",900:"#67541B",1e3:"#3C3522"}),te=re({0:"#EBF8FB",100:"#C4E9F3",200:"#9DDAEB",300:"#76CBE4",400:"#4FBCDC",500:"#3CB4D8",600:"#39A6C6",700:"#358AA2",800:"#316D7F",900:"#2C515B",1e3:"#283438"}),le=re(ee),ce={light:{surface:{sunken:M,default:P,raised:P,overlay:P,scrim:Y[3],transparent:Y[.01]},interaction:{none:Y[0],hover:Y[1],press:Y[2],hoverOnDark:Y[3],pressOnDark:Y[4],disabled:Y[2]},stroke:{default:A,focus:X[500],disabled:I},text:{primary:D,secondary:R,placeholder:F,disabled:T,textLink:X[800],textLinkHover:X[900],primaryInverted:P,secondaryInverted:F,placeholderInverted:R,disabledInverted:_,positive:ee[800],negative:Q[700],lockedWhite:P},icon:{primary:D,secondary:R,disabled:T,primaryInverted:P,secondaryInverted:F,disabledInverted:_,positive:ee[800],negative:Q[700],lockedWhite:P},input:{default:P,disabled:"#FFFFFF80"}},dark:{surface:{default:B,sunken:L,raised:V,overlay:G,scrim:J[3],transparent:J[.01]},interaction:{none:J[0],hover:J[1],press:J[2],hoverOnDark:J[3],pressOnDark:J[4],disabled:J[2]},stroke:{default:G,focus:X[500],disabled:V},text:{primary:K,secondary:Z,placeholder:U,disabled:H,textLink:X[100],textLinkHover:X[0],primaryInverted:L,secondaryInverted:U,placeholderInverted:W,disabledInverted:Z,positive:ee[300],negative:Q[300],lockedWhite:P},icon:{primary:K,secondary:Z,disabled:H,primaryInverted:L,secondaryInverted:U,disabledInverted:Z,positive:ee[300],negative:Q[300],lockedWhite:P},input:{default:V,disabled:"#2A223C80"}}};var de;!function(e){e[e.DEFAULT=400]="DEFAULT",e[e.BOLD=500]="BOLD"}(de||(de={}));const ue={name:"Domaine",default:{fileName:"DomaineRegular.woff2",weight:de.DEFAULT},bold:{fileName:"DomaineMedium.woff2",weight:de.BOLD}},me={name:"FoundersGrotesk",default:{fileName:"FoundersGroteskRegular.woff2",weight:de.DEFAULT},bold:{fileName:"FoundersGroteskMedium.woff2",weight:de.BOLD}},he={Serif:'"Domaine", Palatino, serif',SansSerif:'"FoundersGrotesk", Arial, sans-serif'},ge=e=>"bold"===e?de.BOLD:de.DEFAULT,be=({component:r,weight:n="default",variation:i,clamp:o=0,...s})=>e.jsx(a.Typography,{component:r,fontWeight:ge(n),variant:i,...s,sx:m(s.sx,o?{display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:null)}),pe=["xs","sm","md","lg","xl","xxl","xxxl"],ke=(e,a=16)=>{const r=1/a*e;return Math.round(1e3*r)/1e3},ye=(e,a="xs")=>{const r=pe.reduce(((r,n,i)=>{const o=pe.indexOf(a)||0,s=Number((16*Math.pow(e,i-o)).toFixed(2));return r[n]=s,r}),{}),n={};for(const[e,a]of Object.entries(r))n[e]=ke(a)+"rem";return n},fe={lg:{headline:ye(1.309,"xs"),body:ye(1.125,"md")},sm:{headline:ye(1.125,"xs"),body:ye(1.1,"md")},button:ye(1.125,"md")},ve=e=>{const a=pe.map((a=>({props:{variant:a},style:{fontFamily:`${he.Serif}`,fontSize:fe[e].headline[a]}}))),r=pe.map((a=>({props:{variant:a,component:"h5"},style:{fontFamily:`${he.SansSerif}`,fontSize:fe[e].body[a]}}))),n=pe.map((a=>({props:{variant:a,component:"h6"},style:{fontFamily:`${he.SansSerif}`,fontSize:fe[e].body[a]}})));return[...a,...pe.map((a=>({props:{variant:a,component:"p"},style:{fontFamily:`${he.SansSerif}`,fontSize:fe[e].body[a]}}))),...r,...n]},we={xs:fe.button.xs,sm:fe.button.sm,md:fe.button.sm,lg:fe.button.md,xl:fe.button.lg},ze=e=>({backgroundColor:e.custom.palette.surface.transparent,fontWeight:300,"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus}}),je=e=>({backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,"&:hover":{backgroundColor:e.custom.palette.surface.raised},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},"&:active":{backgroundColor:e.custom.palette.surface.raised},"&:disabled":{border:`1px solid ${e.custom.palette.stroke.disabled}`}}),xe=e=>({backgroundColor:e.custom.palette.purple[0],"&:hover":{backgroundColor:e.custom.palette.purple[0]},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},"&:active":{backgroundColor:e.custom.palette.purple[0]}}),qe=e=>({backgroundColor:e.custom.palette.purple[500],color:e.custom.palette.text.lockedWhite,"&:hover":{backgroundColor:e.custom.palette.purple[500],color:e.custom.palette.text.lockedWhite,"&::before":{backgroundColor:e.custom.palette.interaction.hoverOnDark}},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus,"&::before":{backgroundColor:e.custom.palette.interaction.hoverOnDark}},"&:active":{backgroundColor:e.custom.palette.purple[500],color:e.custom.palette.text.lockedWhite,"&::before":{backgroundColor:e.custom.palette.interaction.pressOnDark}}}),$e={xs:3*z,sm:3.5*z,md:4*z,lg:5*z,xl:6*z},Ce={xs:.5*z,sm:.5*z,md:z,lg:z,xl:z},Se=e=>({"& .MuiButton-icon":{margin:0,".MuiSvgIcon-root":{height:N[e],width:N[e]}}}),Oe=e=>({"& .MuiBox-root":{lineHeight:"120%",fontSize:we[e],paddingLeft:Ce[e],paddingRight:Ce[e]}}),Ne=e=>({height:$e[e],paddingLeft:z,paddingRight:z}),Ee=a.styled(a.CircularProgress)((()=>({color:"inherit",position:"absolute",padding:2}))),Pe=({sizing:a,...r})=>e.jsx(Ee,{size:a?N[a]:40,...r}),Me=a.styled(a.Button)((({theme:e,loading:a})=>({boxSizing:"border-box",position:"relative",overflow:"hidden",borderRadius:e.spacing(e.custom.radius.md),textTransform:"none",minWidth:52,"&::before":{content:'""',backgroundColor:"transparent",transition:"all 200ms ease",position:"absolute",inset:0,zIndex:1},"& > .MuiBox-root, & .MuiButton-icon":{overflowWrap:"normal",position:"relative",zIndex:2},"& > .MuiButton-startIcon, & > .MuiButton-endIcon":{visibility:a?"hidden":"visible"}}))),Ie=a.styled((({children:r,loading:n,sizing:i,...o})=>e.jsxs(Me,{...o,sizing:i,loading:n,children:[n&&e.jsx(Pe,{sizing:i}),e.jsx(a.Box,{...n?{visibility:"hidden"}:void 0,children:r})]})))((({theme:e,variation:a,sizing:r})=>({color:e.custom.palette.text.primary,...r&&{...Oe(r)},...r&&{...Ne(r)},...r&&{...Se(r)},"&:hover:before":{backgroundColor:e.custom.palette.interaction.hover},"&:focus:before":{backgroundColor:e.custom.palette.interaction.hover},"&:active:before":{backgroundColor:e.custom.palette.interaction.press},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,color:e.custom.palette.text.disabled},..."subtle"===a&&{...ze(e)},..."outlined"===a&&{...je(e)},..."secondary"===a&&{...xe(e)},..."primary"===a&&{...qe(e)}}))),Ae=({sizing:a="lg",variation:r="primary",...n})=>e.jsx(Ie,{variation:r,sizing:a,...n}),Te=({label:r,sx:n,...i})=>{const o=a.useTheme();return e.jsx(a.FormControlLabel,{label:r||"",sx:m({ml:0,"&.Mui-disabled":{color:o.custom.palette.text.disabled},"&.Mui-error":{color:o.custom.palette.text.negative},"& .MuiFormControlLabel-label":{ml:r?o.custom.margin.md:0,color:"inherit",fontSize:{xs:fe.sm.body.md,sm:fe.sm.body.md,md:fe.sm.body.md,lg:fe.lg.body.md,xl:fe.lg.body.md}}},n),...i})},Fe=a.styled(a.Checkbox)((({theme:e,sizing:a})=>({height:"default"===a?y:f,width:"default"===a?y:f,padding:0,flex:"none",borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.input.default,position:"relative",transition:e.custom.easing.input,"& svg":{transition:e.custom.easing.input,fill:"none",width:"default"===a?N.sm:N.xl,height:"default"===a?N.sm:N.xl},"&:before":{content:'""',position:"absolute",inset:0},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled},"&.Mui-checked":{backgroundColor:e.custom.palette.purple[500],"& svg":{fill:e.custom.palette.icon.lockedWhite},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,"& svg":{fill:e.custom.palette.icon.disabled}}},"&.Mui-focusVisible":{borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}}}))),Re=a=>e.jsx(Fe,{checkedIcon:e.jsx(r.Check,{}),indeterminateIcon:e.jsx(r.Remove,{}),...a}),_e=({internalChange:a,checkboxLabel:r,indeterminate:n,sizing:i,onChange:o,inputRef:s,...t})=>e.jsx(Te,{inputRef:s,label:r,control:e.jsx(Re,{sizing:i,indeterminate:n}),onChange:(e,r)=>{o&&o(e,r),a&&a()},...t}),De=a.styled(a.TextField)((({theme:e})=>({"& .MuiInputAdornment-root":{marginRight:0,"& .MuiSvgIcon-root":{width:N.xl,height:N.xl}},"& .MuiOutlinedInput-input":{padding:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},"& .MuiOutlinedInput-root":{backgroundColor:e.custom.palette.input.default,color:e.custom.palette.text.primary,borderRadius:e.spacing(e.custom.radius.md),lineHeight:"140%",[e.breakpoints.down("md")]:{minWidth:"100%"},paddingLeft:0,paddingRight:0,fontSize:fe.sm.body.md,"&.Mui-focused":{"& fieldset":{transition:e.custom.easing.input,backgroundColor:e.custom.palette.interaction.press,borderColor:e.custom.palette.stroke.default},"& .MuiOutlinedInput-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.focus}`,boxShadow:e.custom.boxShadow.input.focus}},"&.Mui-disabled":{color:e.custom.palette.text.disabled,backgroundColor:e.custom.palette.input.disabled,"& fieldset":{transition:e.custom.easing.input,backgroundColor:e.custom.palette.interaction.none,borderColor:e.custom.palette.stroke.disabled},"& .MuiOutlinedInput-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.disabled}`,boxShadow:"none"}}},"&:hover":{"& .MuiOutlinedInput-root":{backgroundColor:e.custom.palette.input.default,"& fieldset":{backgroundColor:e.custom.palette.interaction.hover,borderColor:e.custom.palette.stroke.default},"&.Mui-focused":{"& fieldset":{backgroundColor:e.custom.palette.interaction.press,borderColor:e.custom.palette.stroke.default},"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${e.custom.palette.stroke.focus}`,boxShadow:e.custom.boxShadow.input.focus}},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,"& fieldset":{backgroundColor:e.custom.palette.interaction.none,borderColor:e.custom.palette.stroke.disabled},"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${e.custom.palette.stroke.disabled}`,boxShadow:"none"}}}}}))),Le=({startAdornment:r,endAdornment:n,placeholder:i,onChange:o,internalChange:s,inputRef:t,...l})=>e.jsx(De,{placeholder:i,sx:{height:v,"& .MuiOutlinedInput-input":{pl:r?1:2,pr:r?1:2}},inputRef:t,InputProps:{startAdornment:r?e.jsx(a.InputAdornment,{position:"start",sx:{pl:1},children:r}):null,endAdornment:n?e.jsx(a.InputAdornment,{position:"start",sx:{pr:1},children:n}):null},...l,onChange:e=>{o&&o(e),s&&s()}}),Be=({sizing:r,options:n,other:i,internalChange:o,value:s,inputRef:t,onChange:l})=>{const c=i?.name||"other-option",d=`${c}-value-`,u=e=>`${d}${e}`,m=i?.enabled,h=s?.includes(c)&&m,g=s?.find((e=>e.includes(d)));if(!s)return e.jsx("div",{});const b=(e,a)=>{let r=s.includes(e)?s.filter((a=>a!==e)):a?[e]:[...new Set(s),e];if(a||(r=r.filter((e=>!n.find((a=>a?.exclusive&&e===a.value))))),i?.enabled){!s.includes(c)||e!==c||(r=r.filter((e=>!e.includes(d))))}l(r),o&&o()};return e.jsxs(e.Fragment,{children:[e.jsxs(a.FormGroup,{sx:{display:"flex",gap:e=>e.custom.margin.sm,label:{"&:last-child":{mb:0},"&:hover":{"& .MuiCheckbox-root":{backgroundColor:e=>e.custom.palette.interaction.hover,"&.Mui-checked":{backgroundColor:e=>e.custom.palette.purple[500]}}}}},children:[n?n.map(((a,n)=>{const i=a.value;return e.jsx(Te,{sx:{"& .MuiButtonBase-root.MuiCheckbox-root":{alignSelf:"baseline"}},onChange:()=>b(i,a.exclusive),checked:s.includes(i),control:e.jsx(Re,{sizing:r}),label:a.label},i)})):null,m&&e.jsx(Te,{inputRef:t,onChange:()=>b(c),label:i?.label||"Other",checked:s.includes(c),control:e.jsx(Re,{sizing:r})},c)]}),h&&e.jsx(a.Box,{sx:{mt:1},children:e.jsx(Le,{fullWidth:!0,autoFocus:!0,defaultValue:g?g.replace(d,""):"",placeholder:i?.placeholder,onChange:e=>{const a=s.find((e=>e.includes(d))),r=(a?s.map((a=>a.includes(d)?u(e.target.value):a)):[...s,u(e.target.value)]).filter((e=>e!==d));l(r),o&&o()},required:!0})})]})},Ve=e=>`linear-gradient(135deg, ${e.custom.palette.purple[400]} 0%, ${e.custom.palette.purple[200]} 100%)`,Ge=(e,r)=>{switch(r){case"tone1":default:return Ve(e);case"tone2":return(e=>`linear-gradient(135deg, ${e.custom.palette.purple[0]} 0%, ${e.custom.palette.purple[100]} 100%)`)(e);case"tone3":return(e=>`linear-gradient(135deg, ${e.custom.palette.blue[400]} 0%, ${e.custom.palette.purple[600]} 100%)`)(e);case"tone4":return(e=>`radial-gradient(54.59% 50% at 0% 50.04%, ${a.alpha(e.custom.palette.blue[1e3],.2)} 0%, ${a.alpha(e.custom.palette.blue[500],.2)} 100%), linear-gradient(135deg, ${e.custom.palette.purple[500]} 0%, ${e.custom.palette.purple[1e3]} 100%)`)(e)}},He=(e,a)=>{const r=Ge(e,a.gradient),n=(e=>"noise1"===e?"url(https://useloops-public.s3.eu-west-2.amazonaws.com/public/static/misc/noise_tile.png)":null)(a.texture);return n?[n,r].join(","):[r].join(",")},Ue=a.styled(a.InputLabel)((({theme:e,align:a})=>({fontWeight:400,lineHeight:"140%",whiteSpace:"normal",textAlign:a,color:"inherit","&.Mui-disabled":{color:e.custom.palette.text.disabled},"&.Mui-error":{color:e.custom.palette.text.negative}}))),We=a=>e.jsx(Ue,{...a}),Ze=n=>{const{icon:i=null,state:o="default",disabled:s,showicon:t=!0}=n,l=a.useTheme();return e.jsxs(a.Box,{sx:{display:"inline-flex",alignItems:"center",color:s?l.custom.palette.text.disabled:(()=>{switch(o){case"disabled":return l.custom.palette.text.disabled;case"positive":return l.custom.palette.text.positive;case"negative":return l.custom.palette.text.negative;default:return l.custom.palette.text.secondary}})(),"& svg":{marginRight:l.spacing(l.custom.margin.xs),width:N.xs,height:N.xs,color:"inherit"}},children:[(()=>{if(!t)return null;if(i)return i;switch(o){case"disabled":default:return e.jsx(a.Box,{sx:{height:20,display:"flex",alignItems:"center",alignSelf:"flex-start"},children:e.jsx(r.Info,{})});case"positive":return e.jsx(a.Box,{sx:{height:20,display:"flex",alignItems:"center",alignSelf:"flex-start"},children:e.jsx(r.Check,{})});case"negative":return e.jsx(a.Box,{sx:{height:20,display:"flex",alignItems:"center",alignSelf:"flex-start"},children:e.jsx(r.ErrorOutline,{})})}})(),e.jsx(We,{...n,sx:{fontSize:{xs:fe.sm.body.sm,sm:fe.sm.body.sm,md:fe.sm.body.sm,lg:fe.lg.body.sm,xl:fe.lg.body.sm}}})]})},Ke=a.styled(a.Box)((({theme:e})=>({"& .MuiGrid-item":{"&:first-of-type":{"& .MuiBox-root":{"& .MuiRadio-root":{"&:before":{content:'""',position:"absolute",width:b,height:b,top:`calc(100% + ${b}px)`,margin:"0 auto",background:e.custom.palette.stroke.default}}}},"&:last-of-type":{"& .MuiBox-root":{"& .MuiRadio-root":{"&:before":{content:'""',position:"absolute",width:b,height:b,top:`calc(100% + ${b}px)`,margin:"0 auto",background:e.custom.palette.stroke.default}}}}}}))),Ye=({children:a,width:r})=>e.jsx(Ke,{sx:{width:r,minWidth:300},children:a}),Je=a.styled(a.Radio)((({theme:e,sizing:a})=>({padding:0,backgroundColor:e.custom.palette.input.default,border:`1px solid ${e.custom.palette.stroke.default}`,position:"relative",transition:e.custom.easing.input,flexShrink:0,height:"default"===a?y:f,width:"default"===a?y:f,"& svg":{transition:e.custom.easing.input,fill:"none",width:"default"===a&&N.sm,height:"default"===a&&N.sm},"&:before":{content:'""',position:"absolute",inset:0,borderRadius:e.custom.radius.round},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& svg":{"&:first-of-type":{fill:"transparent"},fill:e.custom.palette.icon.disabled}},"&.Mui-focusVisible":{borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}},"&.Mui-checked":{backgroundColor:e.custom.palette.purple[500],"& svg":{"&:first-of-type":{fill:"transparent"},fill:e.custom.palette.icon.lockedWhite},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& svg":{"&:first-of-type":{fill:"transparent"},fill:e.custom.palette.icon.disabled}}}}))),Xe=a=>e.jsx(Je,{...a}),Qe=a.styled(Xe)((()=>({marginRight:0}))),ea=a.styled(a.Box)((({theme:e})=>({posiion:"relative","&:after":{content:'""',position:"absolute",top:"50%",right:"0",height:b,width:`calc(100% - ${f}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default}}))),aa=a=>e.jsx(ea,{sx:{position:"relative"},children:e.jsx(Qe,{...a})}),ra=({disabled:r=!1,onChange:n,labelLeft:i,labelRight:o,internalChange:s,labelCenter:t})=>{const l=[...Array(7).keys()];return e.jsx(a.RadioGroup,{children:e.jsxs(Ye,{children:[e.jsx(a.Grid,{container:!0,justifyContent:"space-between",children:l.map(((i,o)=>{const t=o+1!==l.length;return e.jsx(a.Grid,{item:!0,sm:t,children:e.jsx(aa,{disabled:r,value:i,onChange:(e,a)=>{n&&n(e,a),s&&s()},name:`radio-option-${i}`},i)},i)}))}),e.jsxs(a.Grid,{container:!0,justifyContent:"space-between",sx:{mt:1},children:[e.jsx(a.Grid,{item:!0,sm:!0,sx:{textAlign:"left"},children:e.jsx(Ze,{disabled:r,showicon:!1,children:i})}),e.jsx(a.Grid,{item:!0,sm:!0,sx:{textAlign:"center"},children:e.jsx(Ze,{disabled:r,align:"center",showicon:!1,children:t})}),e.jsx(a.Grid,{item:!0,sm:!0,sx:{textAlign:"right"},children:e.jsx(Ze,{disabled:r,align:"right",showicon:!1,children:o})})]})]})})},na=({sx:a,...r})=>e.jsx(We,{...r,sx:m({fontSize:{xs:fe.sm.body.md,sm:fe.sm.body.md,md:fe.sm.body.md,lg:fe.lg.body.md,xl:fe.lg.body.md}},!!a&&{...a})}),ia=n.createContext({attributes:{},listeners:void 0,ref(){}}),oa=e=>o.defaultAnimateLayoutChanges({...e,wasDragging:!0});function sa({children:r,top:i,bottom:t,id:l}){const{attributes:c,isDragging:d,listeners:u,setNodeRef:m,setActivatorNodeRef:h,transform:g,transition:b}=o.useSortable({id:l,animateLayoutChanges:oa}),p=n.useMemo((()=>({attributes:c,listeners:u,ref:h})),[c,u,h]),k={opacity:d?.4:void 0,transform:s.CSS.Translate.toString(g),transition:b};return e.jsx(ia.Provider,{value:p,children:e.jsxs(a.Stack,{className:"SortableItem",...c,sx:{position:"relative",...k,width:"100%"},ref:m,children:[i&&i,e.jsx(a.Box,{...u,sx:{display:"flex",cursor:"grab"},children:r}),t&&t]})})}const ta={sideEffects:i.defaultDropAnimationSideEffects({styles:{active:{opacity:"0.4"}}})};function la({children:a}){return t.createPortal(e.jsx(i.DragOverlay,{zIndex:999999,dropAnimation:ta,children:a}),document.body)}const ca=({nativeEvent:e})=>{let a=e.target;for(;a;){if(a.dataset.noDnd)return!1;a=a.parentElement}return!0};class da extends i.MouseSensor{static activators=[{eventName:"onMouseDown",handler:ca}]}class ua extends i.TouchSensor{static activators=[{eventName:"onTouchStart",handler:ca}]}function ma({items:r,onChange:s,renderItem:t,disabled:l,direction:c}){if(!r)return;const[d,u]=n.useState(null),m=n.useMemo((()=>r.find((e=>e?.id===d?.id))),[d,r]),h=a.useTheme(),g=a.useMediaQuery(h.breakpoints.down("md")),b=i.useSensors(i.useSensor(da,{activationConstraint:{distance:5}}),i.useSensor(ua,{activationConstraint:{delay:g?300:0,tolerance:8}}),i.useSensor(i.KeyboardSensor,{coordinateGetter:o.sortableKeyboardCoordinates}));return e.jsxs(i.DndContext,{measuring:{droppable:{strategy:i.MeasuringStrategy.Always}},sensors:b,onDragStart:({active:e})=>{u(e)},onDragEnd:({active:e,over:a})=>{if(a&&e.id!==a?.id){const n=r.findIndex((({id:a})=>a===e.id)),i=r.findIndex((({id:e})=>e===a.id));s(o.arrayMove(r,n,i))}u(null)},onDragCancel:()=>{u(null)},children:[e.jsx(o.SortableContext,{items:r,disabled:l,strategy:"horizontal"===c?o.horizontalListSortingStrategy:o.verticalListSortingStrategy,children:e.jsx(a.Stack,{sx:{..."horizontal"===c&&{flexDirection:"row"},display:"flex",m:0,gap:1,padding:0,alignContent:"flex-start"},children:r.map((a=>e.jsx(n.Fragment,{children:t(a)},a.id)))})}),e.jsx(la,{children:m?t(m,!0,!!d):null})]})}function ha(e){let a="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)a+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+a+" for the full message."}ma.Item=sa,ma.DragHandle=function(){const{attributes:r,listeners:i,ref:o}=n.useContext(ia);return e.jsx(a.Box,{...r,...i,ref:o,children:e.jsx("svg",{viewBox:"0 0 20 20",width:"12",children:e.jsx("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})};var ga="$$material";function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ba.apply(null,arguments)}function pa(e,a){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(a.includes(n))continue;r[n]=e[n]}return r}function ka(e){let a="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)a+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+a+" for the full message."}var ya=Object.freeze({__proto__:null,default:ka});function fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function va(e){if(e.__esModule)return e;var a=e.default;if("function"==typeof a){var r=function e(){return this instanceof e?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};r.prototype=a.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})})),r}var wa,za={exports:{}},ja={exports:{}},xa={};var qa,$a,Ca,Sa,Oa,Na,Ea,Pa,Ma,Ia,Aa,Ta,Fa,Ra,_a={};
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),a=require("@mui/material"),r=require("@mui/icons-material"),n=require("react"),i=require("@dnd-kit/core"),o=require("@dnd-kit/sortable"),s=require("@dnd-kit/utilities"),t=require("react-dom"),l=require("@mui/styled-engine"),c=require("@emotion/react");function d(e){var a=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),a.default=e,Object.freeze(a)}var u=d(n);const m=(...e)=>{const a=[];for(const r of e)if(r)if(Array.isArray(r))for(const e of r)a.push(e);else a.push(r);return a},h={sm:0,md:584,lg:812,lgNav:1e3,xl:1280,xxl:1728},g=0,b=4,p=8,k=16,y=24,f=32,v=40,w=48,z=p,j={none:g,xs:b/z,sm:p/z,md:k/z,lg:f/z,xl:w/z,xxl:80/z,xxxl:160/z},x={none:g,xs:b/z,sm:p/z,md:k/z,lg:f/z,xl:w/z},q={none:g,xs:2/z,sm:b/z,md:p/z,lg:k/z,xl:y/z,round:999},$={raised:"0px 0px 0px 1px rgba(255, 255, 255, 0.12), 0px 0px 4px 2px rgba(6, 4, 13, 0.04), 0px 1px 2px 0px rgba(6, 4, 13, 0.16)",overlay:"0px 0px 0px 1px rgba(255, 255, 255, 0.16), 0px 0px 4px 2px rgba(6, 4, 13, 0.04), 0px 16px 24px 0px rgba(6, 4, 13, 0.08), 0px 4px 8px 0px rgba(6, 4, 13, 0.08)"},C={raised:"drop-shadow(0px 0px 0px rgba(255, 255, 255, 0.12)) drop-shadow(0px 0px 4px rgba(6, 4, 13, 0.04)) drop-shadow(0px 1px 2px rgba(6, 4, 13, 0.16))",overlay:"drop-shadow(0px 0px 0px rgba(255, 255, 255, 0.16)) drop-shadow(0px 0px 4px rgba(6, 4, 13, 0.04)) drop-shadow(0px 16px 24px rgba(6, 4, 13, 0.08)) drop-shadow(0px 4px 8px rgba(6, 4, 13, 0.08))"},S={input:{focus:"0px 0px 0px 4px rgba(127, 76, 255, 0.24)"}},O={default:"cubic-bezier(0.16, 1, 0.3, 1)",input:"all 200ms ease"},N={xs:2*z,sm:2*z,md:2*z,lg:2.5*z,xl:3*z},E=({name:n,size:i,sx:o})=>{const s=a.useTheme(),t=i||N.xl,l=i||N.xl;switch(n){case"loopsOfficial":return e.jsx(a.SvgIcon,{viewBox:"0 0 106 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:m(o,{"&.MuiSvgIcon-root path":{fill:"light"===s.palette.mode?s.custom.palette.icon.primary:s.custom.palette.icon.lockedWhite}}),children:e.jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M11.8076 25.5073C10.0999 24.3082 9.74198 23.9512 9.74198 21.312V0H0.290527V0.399695L0.306001 0.409234C2.04234 1.47961 2.83235 1.96661 2.83235 4.59497V21.312C2.83235 23.9512 2.47443 24.3082 0.76674 25.5073V25.9069H11.8076V25.5073ZM12.3202 17.8947C13.3939 24.0305 18.9477 27.1823 24.7775 26.151C30.6043 25.1167 34.7507 20.2258 33.6769 14.1053C32.6032 7.98474 27.0494 4.81464 21.2196 5.84897C15.3898 6.88329 11.2464 11.759 12.3202 17.8947ZM19.518 16.6163C18.4897 10.7155 18.9052 8.04577 21.5229 7.582C24.1405 7.11518 25.4509 9.47368 26.4791 15.3745C27.5074 21.2754 27.0949 23.9329 24.4742 24.4089C21.8535 24.8848 20.5462 22.5172 19.518 16.6163ZM47.572 26.151C41.7453 27.1823 36.1915 24.0305 35.1147 17.8947C34.0379 11.759 38.1843 6.88329 44.0141 5.84897C49.8439 4.81464 55.3947 7.98474 56.4715 14.1053C57.5482 20.2258 53.3988 25.1167 47.572 26.151ZM44.3174 7.582C41.6967 8.04577 41.2842 10.7155 42.3125 16.6163C43.3407 22.5172 44.648 24.8848 47.2687 24.418C49.8894 23.9512 50.3019 21.2845 49.2737 15.3837C48.2454 9.48284 46.9381 7.11518 44.3174 7.582ZM68.4727 31.5116C66.4862 30.3817 65.7713 29.9751 65.7713 27.405L65.7773 22.6117C66.8086 24.6896 68.8742 26.328 72.2896 26.328C77.4521 26.328 81.5439 22.4012 81.5439 15.6491C81.5439 8.77803 77.5553 5.70252 73.0054 5.70252C69.2716 5.70252 66.6873 7.81998 65.7773 10.7368L65.6166 6.10221H56.4836V6.4836L56.4855 6.48484C58.1918 7.60063 58.8647 8.04064 58.8647 10.6789V27.405C58.8647 30.0412 58.5098 30.4012 56.7991 31.6003V32H68.6285V31.6003L68.4727 31.5116ZM70.0996 23.8963C67.6761 23.8963 65.7713 21.1411 65.7713 17.9466V15.0999C65.7713 11.5454 67.479 8.86651 70.0996 8.86651C72.8386 8.86651 74.1884 11.3867 74.1884 15.6583C74.1884 21.2998 72.7992 23.8963 70.0996 23.8963ZM103.38 26.2487C104.665 26.2487 105.706 25.2009 105.706 23.9085C105.706 22.616 104.665 21.5683 103.38 21.5683C102.095 21.5683 101.053 22.616 101.053 23.9085C101.053 25.2009 102.095 26.2487 103.38 26.2487ZM92.7131 12.3899C90.0531 11.6005 88.5566 11.1564 88.5566 9.56827C88.5566 8.23799 89.7699 7.64913 91.1045 7.64913C93.6888 7.64913 95.712 9.12891 98.0566 12.5645H98.6117V5.69337H98.2143L96.4278 7.01145C96.3499 6.97924 96.2721 6.94694 96.1943 6.91464C94.7242 6.30433 93.2525 5.69337 91.0257 5.69337C86.7762 5.69337 83.4002 8.32952 83.4002 12.2441C83.4002 15.759 85.0715 17.7574 91.0681 19.3166C93.2945 19.8749 94.8414 20.2746 94.8414 21.9924C94.8414 23.5912 93.2945 24.3478 91.426 24.3478C88.5566 24.3478 86.4607 22.3921 83.7035 18.6758H83.0969L83.5155 26.267H83.9522L85.5386 24.6682C86.8095 25.3089 88.7963 26.3066 91.4564 26.3066C96.54 26.3066 100.077 23.4691 100.077 19.4752C100.077 15.3593 97.6198 13.8429 92.7667 12.4058L92.7131 12.3899Z",fill:"#190F33"})});case"google":return e.jsxs(a.SvgIcon,{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:o,children:[e.jsx("path",{d:"M19.3 10.2085C19.3 9.5585 19.2417 8.9335 19.1334 8.3335H10.5V11.8835H15.4334C15.2167 13.0252 14.5667 13.9918 13.5917 14.6418V16.9502H16.5667C18.3 15.3502 19.3 13.0002 19.3 10.2085Z",fill:"#4285F4"}),e.jsx("path",{d:"M10.5 19.1668C12.975 19.1668 15.05 18.3502 16.5667 16.9502L13.5917 14.6418C12.775 15.1918 11.7334 15.5252 10.5 15.5252C8.11671 15.5252 6.09171 13.9168 5.36671 11.7502H2.31671V14.1168C3.82504 17.1085 6.91671 19.1668 10.5 19.1668Z",fill:"#34A853"}),e.jsx("path",{d:"M5.36671 11.7418C5.18337 11.1918 5.07504 10.6085 5.07504 10.0002C5.07504 9.39183 5.18337 8.8085 5.36671 8.2585V5.89183H2.31671C1.69171 7.12516 1.33337 8.51683 1.33337 10.0002C1.33337 11.4835 1.69171 12.8752 2.31671 14.1085L4.69171 12.2585L5.36671 11.7418Z",fill:"#FBBC05"}),e.jsx("path",{d:"M10.5 4.4835C11.85 4.4835 13.05 4.95016 14.0084 5.85016L16.6334 3.22516C15.0417 1.74183 12.975 0.833496 10.5 0.833496C6.91671 0.833496 3.82504 2.89183 2.31671 5.89183L5.36671 8.2585C6.09171 6.09183 8.11671 4.4835 10.5 4.4835Z",fill:"#EA4335"})]});case"linkedin-color":return e.jsxs(a.SvgIcon,{viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:o,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.37041 19.1668H17.6297C18.7547 19.1668 19.6667 18.2548 19.6667 17.1298V2.87053C19.6667 1.74551 18.7547 0.833496 17.6297 0.833496H3.37041C2.24539 0.833496 1.33337 1.74551 1.33337 2.87053V17.1298C1.33337 18.2548 2.24539 19.1668 3.37041 19.1668Z",fill:"#007EBB"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1204 16.6205H14.3999V11.9868C14.3999 10.7164 13.9171 10.0064 12.9116 10.0064C11.8176 10.0064 11.2461 10.7452 11.2461 11.9868V16.6205H8.62427V7.79337H11.2461V8.98239C11.2461 8.98239 12.0344 7.52369 13.9076 7.52369C15.78 7.52369 17.1204 8.66704 17.1204 11.0317V16.6205ZM5.4964 6.63753C4.60334 6.63753 3.87967 5.90818 3.87967 5.00866C3.87967 4.10914 4.60334 3.37979 5.4964 3.37979C6.38946 3.37979 7.1127 4.10914 7.1127 5.00866C7.1127 5.90818 6.38946 6.63753 5.4964 6.63753ZM4.14259 16.6205H6.87651V7.79337H4.14259V16.6205Z",fill:"white"})]});case"positive":return e.jsx(a.SvgIcon,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",style:{height:i,width:i},sx:o,children:e.jsx("path",{d:"M7.25241 16.7949C6.47136 17.576 6.47136 18.8423 7.25241 19.6234L11.0236 23.3946C11.8047 24.1756 13.071 24.1756 13.8521 23.3946L25.1658 12.0809C25.9468 11.2998 25.9468 10.0335 25.1658 9.25246C24.3847 8.47141 23.1184 8.47141 22.3374 9.25246L12.4379 19.152L10.0808 16.7949C9.29979 16.0139 8.03346 16.0139 7.25241 16.7949Z",fill:"#48B244"})});case"negative":return e.jsx(a.SvgIcon,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:o,children:e.jsx("path",{d:"M9.25241 9.25244C8.47136 10.0335 8.47136 11.2998 9.25241 12.0809L13.4951 16.3235L9.25241 20.5662C8.47136 21.3472 8.47136 22.6135 9.25241 23.3946C10.0335 24.1756 11.2998 24.1756 12.0808 23.3946L16.3235 19.1519L20.5661 23.3946C21.3472 24.1756 22.6135 24.1756 23.3945 23.3946C24.1756 22.6135 24.1756 21.3472 23.3945 20.5662L19.1519 16.3235L23.3945 12.0809C24.1756 11.2998 24.1756 10.0335 23.3945 9.25244C22.6135 8.47139 21.3472 8.4714 20.5661 9.25244L16.3235 13.4951L12.0808 9.25244C11.2998 8.47139 10.0335 8.47139 9.25241 9.25244Z",fill:"#FC5A4E"})});case"neutral":return e.jsx(a.SvgIcon,{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:o,children:e.jsx("path",{d:"M6 16C6 14.8954 6.89543 14 8 14L24 14C25.1046 14 26 14.8954 26 16C26 17.1046 25.1046 18 24 18H8C6.89543 18 6 17.1046 6 16Z",fill:"#8C8799"})});case"linkedin":return e.jsx(a.SvgIcon,{style:{height:i,width:i},viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",sx:o,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.8889 30H5.11111C3.39289 30 2 28.6071 2 26.8889V5.11111C2 3.39289 3.39289 2 5.11111 2H26.8889C28.6071 2 30 3.39289 30 5.11111V26.8889C30 28.6071 28.6071 30 26.8889 30ZM21.9561 26.1109H26.1111V17.5753C26.1111 13.9637 24.0639 12.2175 21.2043 12.2175C18.3435 12.2175 17.1395 14.4454 17.1395 14.4454V12.6294H13.1352V26.1109H17.1395V19.0339C17.1395 17.1377 18.0123 16.0093 19.683 16.0093C21.2188 16.0093 21.9561 17.0936 21.9561 19.0339V26.1109ZM5.88889 8.3764C5.88889 9.75021 6.99413 10.8641 8.35808 10.8641C9.72202 10.8641 10.8266 9.75021 10.8266 8.3764C10.8266 7.00259 9.72202 5.88867 8.35808 5.88867C6.99413 5.88867 5.88889 7.00259 5.88889 8.3764ZM10.4659 26.1109H6.29043V12.6294H10.4659V26.1109Z"})});case"medium":return e.jsx(a.SvgIcon,{viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:o,children:e.jsx("path",{d:"M9.89698 8.51543C14.2584 8.51543 17.7937 12.0754 17.7937 16.4666C17.7937 20.8578 14.2581 24.4175 9.89698 24.4175C5.53585 24.4175 2 20.8578 2 16.4666C2 12.0754 5.53558 8.51543 9.89698 8.51543ZM22.5079 8.98119C24.6886 8.98119 26.4564 12.3322 26.4564 16.4666H26.4566C26.4566 20.5999 24.6888 23.952 22.5082 23.952C20.3275 23.952 18.5597 20.5999 18.5597 16.4666C18.5597 12.3333 20.3272 8.98119 22.5079 8.98119ZM28.6113 9.76085C29.3781 9.76085 30 12.7631 30 16.4666C30 20.1691 29.3784 23.1723 28.6113 23.1723C27.8443 23.1723 27.2229 20.1699 27.2229 16.4666C27.2229 12.7633 27.8445 9.76085 28.6113 9.76085Z"})});case"navigation-arrow":return e.jsx(a.SvgIcon,{viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:o,children:e.jsx("path",{d:"M13.7929 8.46442L16.6083 11.2798L16.6213 11.2929L16.6235 11.2952C16.9631 11.6369 17.0053 12.1629 16.7494 12.5502C16.7128 12.6057 16.6701 12.6583 16.6213 12.7071L13.7929 15.5356C13.4025 15.9261 12.7692 15.9261 12.3788 15.5356C11.9882 15.145 11.9882 14.5119 12.3788 14.1213L13.5002 12.9999H8.0858C7.53352 12.9999 7.0858 12.5523 7.0858 11.9999C7.0858 11.4477 7.53352 10.9999 8.0858 10.9999H13.4999L12.3786 9.87872C11.9882 9.4881 11.9882 8.85504 12.3786 8.46442C12.7692 8.07391 13.4023 8.07391 13.7929 8.46442Z"})});case"unfold-more":return e.jsx(a.SvgIcon,{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:i,width:i},sx:o,children:e.jsx("path",{d:"M5.83 12.0001L9 8.83009L7.59 7.42009L3 12.0001L7.59 16.5901L9 15.1701L5.83 12.0001ZM18.17 12.0001L15 15.1701L16.41 16.5801L21 12.0001L16.41 7.41009L15 8.83009L18.17 12.0001Z",fill:"#190F33"})});case"play":return e.jsx(r.PlayCircle,{style:{height:t,width:l},sx:o});case"close":return e.jsx(r.Close,{style:{height:t,width:l},sx:o});case"arrow-forward":return e.jsx(r.ArrowForward,{style:{height:t,width:l},sx:o});case"expand-more":return e.jsx(r.ExpandMore,{style:{height:t,width:l},sx:o});case"info":return e.jsx(r.InfoOutlined,{style:{height:t,width:l},sx:o});case"check-circle":return e.jsx(r.CheckCircleOutlineOutlined,{style:{height:t,width:l},sx:o});case"error-outline":return e.jsx(r.ErrorOutlineOutlined,{style:{height:t,width:l},sx:o});case"lightbulb":return e.jsx(r.LightbulbOutlined,{style:{height:t,width:l},sx:o});case"warning-amber":return e.jsx(r.WarningAmberRounded,{style:{height:t,width:l},sx:o});case"access-time":return e.jsx(r.QueryBuilderRounded,{style:{height:t,width:l},sx:o});case"menu":return e.jsx(r.MenuRounded,{style:{height:t,width:l},sx:o});case"lock":return e.jsx(r.LockOutlined,{style:{height:t,width:l},sx:o});case"check":return e.jsxs(a.SvgIcon,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 25",style:{height:i,width:i},children:[e.jsx("rect",{width:"24",height:"24",y:".5",fill:"#48B244",rx:"12"}),e.jsx("path",{fill:"#fff",d:"M5.44 13.096a1.5 1.5 0 0 0 0 2.121l2.828 2.829a1.5 1.5 0 0 0 2.121 0l8.485-8.485a1.5 1.5 0 1 0-2.121-2.122l-7.425 7.425-1.767-1.768a1.5 1.5 0 0 0-2.122 0Z"})]});case"dash":return e.jsx(a.SvgIcon,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{height:i,width:i},children:e.jsx("path",{fill:"#BAB7C2",d:"M4.5 12A1.5 1.5 0 0 1 6 10.5h12a1.5 1.5 0 0 1 0 3H6A1.5 1.5 0 0 1 4.5 12Z"})});case"gift":return e.jsxs(a.SvgIcon,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{height:i,width:i},children:[e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"none",d:"M20.5 8h-16a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1ZM12.5 8v13"}),e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",fill:"none",d:"M19.5 12v7a2 2 0 0 1-2 2h-10a2 2 0 0 1-2-2v-7M8 8a2.5 2.5 0 1 1 0-5c.965-.017 1.91.451 2.713 1.343.802.892 1.425 2.166 1.787 3.657.362-1.49.985-2.765 1.787-3.657C15.09 3.451 16.035 2.983 17 3a2.5 2.5 0 0 1 0 5"})]});default:return e.jsxs(a.SvgIcon,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 33",style:{height:i,width:i},sx:o,children:[e.jsx("path",{fill:"#C8E8C7",d:"M0 16.426c0-8.836 7.163-16 16-16s16 7.164 16 16-7.163 16-16 16-16-7.163-16-16"}),e.jsx("path",{fill:"#48B244",d:"M7.252 17.221a2 2 0 0 0 0 2.828l3.772 3.772a2 2 0 0 0 2.828 0l11.314-11.314a2 2 0 0 0-2.829-2.828l-9.9 9.9-2.356-2.358a2 2 0 0 0-2.829 0"})]})}},P="#FFFFFF",M="#F8F8F9",I="#E8E7EB",A="#D1CFD6",T="#BAB7C2",F="#A39FAD",R="#756F85",_="#5E5770",D="#190F33",L="#130B26",B="#1C142F",V="#2A223C",G="#413A51",H="#585267",U="#6F697D",W="#9D98A8",Z="#B4AFBE",K="#F9F6FF",Y={0:"#190f3300",.01:"#190f3303",1:"#190F3308",2:"#190F330F",3:"#190F331F",4:"#190F333D",5:"#190f3380"},J={0:"#F9F6FF00",.01:"#fff6ff03",1:"#F9F6FF0A",2:"#F9F6FF14",3:"#F9F6FF1F",4:"#F9F6FF3D",5:"#f9f6ff80"},X={0:"#F2EDFF",100:"#D9C9FF",200:"#BFA5FF",300:"#A582FF",400:"#8C5EFF",500:"#7F4CFF",600:"#7648E9",700:"#6441BE",800:"#533992",900:"#413167",1e3:"#2F2A3C"},Q={0:"#FFEEED",100:"#FECDCA",200:"#FDACA6",300:"#FD8B83",400:"#FC6B60",500:"#FC5A4E",600:"#E7554A",700:"#BC4A42",800:"#91403A",900:"#663632",1e3:"#3B2B2A"},ee={0:"#EDF7EC",100:"#C8E8C7",200:"#A3D9A1",300:"#7FC97C",400:"#5ABA57",500:"#48B244",600:"#44A441",700:"#3D883B",800:"#376C35",900:"#30502F",1e3:"#293429"},ae={light:{0:P,50:M,100:I,200:A,300:T,400:F,500:"#8C8799",600:R,700:_,800:"#473F5C",900:"#302747",950:"#251B3D",1e3:D,1100:"#0D081A"},dark:{0:L,50:B,100:V,200:G,300:H,400:U,500:"#868092",600:W,700:Z,800:"#CBC7D4",900:"#E2DEE9",950:"#EDEAF4",1e3:K,1100:"#FFFFFF"}},re=e=>({light:{0:e[0],100:e[100],200:e[200],300:e[300],400:e[400],500:e[500],600:e[600],700:e[700],800:e[800],900:e[900],1e3:e[1e3]},dark:{0:e[1e3],100:e[900],200:e[800],300:e[700],400:e[600],500:e[500],600:e[400],700:e[300],800:e[200],900:e[100],1e3:e[0]}}),ne=re(X),ie=re(Q),oe=re({0:"#FFF8F6",100:"#FFEBE4",200:"#FFDFD2",300:"#FFD2C0",400:"#FFC5AE",500:"#FFBEA5",600:"#E9AF98",700:"#BE907F",800:"#927266",900:"#67544C",1e3:"#3C3533"}),se=re({0:"#FFF9E5",100:"#FFECB2",200:"#FFECB2",300:"#FFD24D",400:"#FFC61A",500:"#FFBF00",600:"#E9B004",700:"#BE910B",800:"#927313",900:"#67541B",1e3:"#3C3522"}),te=re({0:"#EBF8FB",100:"#C4E9F3",200:"#9DDAEB",300:"#76CBE4",400:"#4FBCDC",500:"#3CB4D8",600:"#39A6C6",700:"#358AA2",800:"#316D7F",900:"#2C515B",1e3:"#283438"}),le=re(ee),ce={light:{surface:{sunken:M,default:P,raised:P,overlay:P,scrim:Y[3],transparent:Y[.01]},interaction:{none:Y[0],hover:Y[1],press:Y[2],hoverOnDark:Y[3],pressOnDark:Y[4],disabled:Y[2]},stroke:{default:A,focus:X[500],disabled:I},text:{primary:D,secondary:R,placeholder:F,disabled:T,textLink:X[800],textLinkHover:X[900],primaryInverted:P,secondaryInverted:F,placeholderInverted:R,disabledInverted:_,positive:ee[800],negative:Q[700],lockedWhite:P},icon:{primary:D,secondary:R,disabled:T,primaryInverted:P,secondaryInverted:F,disabledInverted:_,positive:ee[800],negative:Q[700],lockedWhite:P},input:{default:P,disabled:"#FFFFFF80"}},dark:{surface:{default:B,sunken:L,raised:V,overlay:G,scrim:J[3],transparent:J[.01]},interaction:{none:J[0],hover:J[1],press:J[2],hoverOnDark:J[3],pressOnDark:J[4],disabled:J[2]},stroke:{default:G,focus:X[500],disabled:V},text:{primary:K,secondary:Z,placeholder:U,disabled:H,textLink:X[100],textLinkHover:X[0],primaryInverted:L,secondaryInverted:U,placeholderInverted:W,disabledInverted:Z,positive:ee[300],negative:Q[300],lockedWhite:P},icon:{primary:K,secondary:Z,disabled:H,primaryInverted:L,secondaryInverted:U,disabledInverted:Z,positive:ee[300],negative:Q[300],lockedWhite:P},input:{default:V,disabled:"#2A223C80"}}};var de;!function(e){e[e.DEFAULT=400]="DEFAULT",e[e.BOLD=500]="BOLD"}(de||(de={}));const ue={name:"Domaine",default:{fileName:"DomaineRegular.woff2",weight:de.DEFAULT},bold:{fileName:"DomaineMedium.woff2",weight:de.BOLD}},me={name:"FoundersGrotesk",default:{fileName:"FoundersGroteskRegular.woff2",weight:de.DEFAULT},bold:{fileName:"FoundersGroteskMedium.woff2",weight:de.BOLD}},he={Serif:'"Domaine", Palatino, serif',SansSerif:'"FoundersGrotesk", Arial, sans-serif'},ge=e=>"bold"===e?de.BOLD:de.DEFAULT,be=({component:r,weight:n="default",variation:i,clamp:o=0,...s})=>e.jsx(a.Typography,{component:r,fontWeight:ge(n),variant:i,...s,sx:m(s.sx,o?{display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical",WebkitLineClamp:o}:null)}),pe=["xs","sm","md","lg","xl","xxl","xxxl"],ke=(e,a=16)=>{const r=1/a*e;return Math.round(1e3*r)/1e3},ye=(e,a="xs")=>{const r=pe.reduce(((r,n,i)=>{const o=pe.indexOf(a)||0,s=Number((16*Math.pow(e,i-o)).toFixed(2));return r[n]=s,r}),{}),n={};for(const[e,a]of Object.entries(r))n[e]=ke(a)+"rem";return n},fe={lg:{headline:ye(1.309,"xs"),body:ye(1.125,"md")},sm:{headline:ye(1.125,"xs"),body:ye(1.1,"md")},button:ye(1.125,"md")},ve=e=>{const a=pe.map((a=>({props:{variant:a},style:{fontFamily:`${he.Serif}`,fontSize:fe[e].headline[a]}}))),r=pe.map((a=>({props:{variant:a,component:"h5"},style:{fontFamily:`${he.SansSerif}`,fontSize:fe[e].body[a]}}))),n=pe.map((a=>({props:{variant:a,component:"h6"},style:{fontFamily:`${he.SansSerif}`,fontSize:fe[e].body[a]}})));return[...a,...pe.map((a=>({props:{variant:a,component:"p"},style:{fontFamily:`${he.SansSerif}`,fontSize:fe[e].body[a]}}))),...r,...n]},we={xs:fe.button.xs,sm:fe.button.sm,md:fe.button.sm,lg:fe.button.md,xl:fe.button.lg},ze=e=>({backgroundColor:e.custom.palette.surface.transparent,fontWeight:300,"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus}}),je=e=>({backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,"&:hover":{backgroundColor:e.custom.palette.surface.raised},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},"&:active":{backgroundColor:e.custom.palette.surface.raised},"&:disabled":{border:`1px solid ${e.custom.palette.stroke.disabled}`}}),xe=e=>({backgroundColor:e.custom.palette.purple[0],"&:hover":{backgroundColor:e.custom.palette.purple[0]},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},"&:active":{backgroundColor:e.custom.palette.purple[0]}}),qe=e=>({backgroundColor:e.custom.palette.purple[500],color:e.custom.palette.text.lockedWhite,"&:hover":{backgroundColor:e.custom.palette.purple[500],color:e.custom.palette.text.lockedWhite,"&::before":{backgroundColor:e.custom.palette.interaction.hoverOnDark}},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus,"&::before":{backgroundColor:e.custom.palette.interaction.hoverOnDark}},"&:active":{backgroundColor:e.custom.palette.purple[500],color:e.custom.palette.text.lockedWhite,"&::before":{backgroundColor:e.custom.palette.interaction.pressOnDark}}}),$e={xs:3*z,sm:3.5*z,md:4*z,lg:5*z,xl:6*z},Ce={xs:.5*z,sm:.5*z,md:z,lg:z,xl:z},Se=e=>({"& .MuiButton-icon":{margin:0,".MuiSvgIcon-root":{height:N[e],width:N[e]}}}),Oe=e=>({"& .MuiBox-root":{lineHeight:"120%",fontSize:we[e],paddingLeft:Ce[e],paddingRight:Ce[e]}}),Ne=e=>({height:$e[e],paddingLeft:z,paddingRight:z}),Ee=a.styled(a.CircularProgress)((()=>({color:"inherit",position:"absolute",padding:2}))),Pe=({sizing:a,...r})=>e.jsx(Ee,{size:a?N[a]:40,...r}),Me=a.styled(a.Button)((({theme:e,loading:a})=>({boxSizing:"border-box",position:"relative",overflow:"hidden",borderRadius:e.spacing(e.custom.radius.md),textTransform:"none",minWidth:52,"&::before":{content:'""',backgroundColor:"transparent",transition:"all 200ms ease",position:"absolute",inset:0,zIndex:1},"& > .MuiBox-root, & .MuiButton-icon":{overflowWrap:"normal",position:"relative",zIndex:2},"& > .MuiButton-startIcon, & > .MuiButton-endIcon":{visibility:a?"hidden":"visible"}}))),Ie=a.styled((({children:r,loading:n,sizing:i,...o})=>e.jsxs(Me,{...o,sizing:i,loading:n,children:[n&&e.jsx(Pe,{sizing:i}),e.jsx(a.Box,{...n?{visibility:"hidden"}:void 0,children:r})]})))((({theme:e,variation:a,sizing:r})=>({color:e.custom.palette.text.primary,...r&&{...Oe(r)},...r&&{...Ne(r)},...r&&{...Se(r)},"&:hover:before":{backgroundColor:e.custom.palette.interaction.hover},"&:focus:before":{backgroundColor:e.custom.palette.interaction.hover},"&:active:before":{backgroundColor:e.custom.palette.interaction.press},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,color:e.custom.palette.text.disabled},..."subtle"===a&&{...ze(e)},..."outlined"===a&&{...je(e)},..."secondary"===a&&{...xe(e)},..."primary"===a&&{...qe(e)}}))),Ae=({sizing:a="lg",variation:r="primary",...n})=>e.jsx(Ie,{variation:r,sizing:a,...n}),Te=({label:r,sx:n,...i})=>{const o=a.useTheme();return e.jsx(a.FormControlLabel,{label:r||"",sx:m({ml:0,"&.Mui-disabled":{color:o.custom.palette.text.disabled},"&.Mui-error":{color:o.custom.palette.text.negative},"& .MuiFormControlLabel-label":{ml:r?o.custom.margin.md:0,color:"inherit",fontSize:{xs:fe.sm.body.md,sm:fe.sm.body.md,md:fe.sm.body.md,lg:fe.lg.body.md,xl:fe.lg.body.md}}},n),...i})},Fe=a.styled(a.Checkbox)((({theme:e,sizing:a})=>({height:"default"===a?y:f,width:"default"===a?y:f,padding:0,flex:"none",borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.input.default,position:"relative",transition:e.custom.easing.input,"& svg":{transition:e.custom.easing.input,fill:"none",width:"default"===a?N.sm:N.xl,height:"default"===a?N.sm:N.xl},"&:before":{content:'""',position:"absolute",inset:0},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled},"&.Mui-checked":{backgroundColor:e.custom.palette.purple[500],"& svg":{fill:e.custom.palette.icon.lockedWhite},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,"& svg":{fill:e.custom.palette.icon.disabled}}},"&.Mui-focusVisible":{borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}}}))),Re=a=>e.jsx(Fe,{checkedIcon:e.jsx(r.Check,{}),indeterminateIcon:e.jsx(r.Remove,{}),...a}),_e=({internalChange:a,checkboxLabel:r,indeterminate:n,sizing:i,onChange:o,inputRef:s,value:t,...l})=>e.jsx(Te,{inputRef:s,label:r,checked:t,control:e.jsx(Re,{sizing:i,indeterminate:n}),onChange:(e,r)=>{o&&o(e,r),a&&a()},...l}),De=a.styled(a.TextField)((({theme:e})=>({"& .MuiInputAdornment-root":{marginRight:0,"& .MuiSvgIcon-root":{width:N.xl,height:N.xl}},"& .MuiOutlinedInput-input":{padding:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},"& .MuiOutlinedInput-root":{backgroundColor:e.custom.palette.input.default,color:e.custom.palette.text.primary,borderRadius:e.spacing(e.custom.radius.md),lineHeight:"140%",[e.breakpoints.down("md")]:{minWidth:"100%"},paddingLeft:0,paddingRight:0,fontSize:fe.sm.body.md,"&.Mui-focused":{"& fieldset":{transition:e.custom.easing.input,backgroundColor:e.custom.palette.interaction.press,borderColor:e.custom.palette.stroke.default},"& .MuiOutlinedInput-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.focus}`,boxShadow:e.custom.boxShadow.input.focus}},"&.Mui-disabled":{color:e.custom.palette.text.disabled,backgroundColor:e.custom.palette.input.disabled,"& fieldset":{transition:e.custom.easing.input,backgroundColor:e.custom.palette.interaction.none,borderColor:e.custom.palette.stroke.disabled},"& .MuiOutlinedInput-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.disabled}`,boxShadow:"none"}}},"&:hover":{"& .MuiOutlinedInput-root":{backgroundColor:e.custom.palette.input.default,"& fieldset":{backgroundColor:e.custom.palette.interaction.hover,borderColor:e.custom.palette.stroke.default},"&.Mui-focused":{"& fieldset":{backgroundColor:e.custom.palette.interaction.press,borderColor:e.custom.palette.stroke.default},"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${e.custom.palette.stroke.focus}`,boxShadow:e.custom.boxShadow.input.focus}},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,"& fieldset":{backgroundColor:e.custom.palette.interaction.none,borderColor:e.custom.palette.stroke.disabled},"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${e.custom.palette.stroke.disabled}`,boxShadow:"none"}}}}}))),Le=({startAdornment:r,endAdornment:n,placeholder:i,onChange:o,internalChange:s,inputRef:t,...l})=>e.jsx(De,{placeholder:i,sx:{height:v,"& .MuiOutlinedInput-input":{pl:r?1:2,pr:r?1:2}},inputRef:t,InputProps:{startAdornment:r?e.jsx(a.InputAdornment,{position:"start",sx:{pl:1},children:r}):null,endAdornment:n?e.jsx(a.InputAdornment,{position:"start",sx:{pr:1},children:n}):null},...l,onChange:e=>{o&&o(e),s&&s()}}),Be=({sizing:r,options:n,other:i,internalChange:o,value:s,inputRef:t,onChange:l})=>{const c=i?.name||"other-option",d=`${c}-value-`,u=e=>`${d}${e}`,m=i?.enabled,h=s?.includes(c)&&m,g=s?.find((e=>e.includes(d)));if(!s)return e.jsx("div",{});const b=(e,a)=>{let r=s.includes(e)?s.filter((a=>a!==e)):a?[e]:[...new Set(s),e];if(a||(r=r.filter((e=>!n.find((a=>a?.exclusive&&e===a.value))))),i?.enabled){!s.includes(c)||e!==c||(r=r.filter((e=>!e.includes(d))))}l(r),o&&o()};return e.jsxs(e.Fragment,{children:[e.jsxs(a.FormGroup,{sx:{display:"flex",gap:e=>e.custom.margin.sm,label:{"&:last-child":{mb:0},"&:hover":{"& .MuiCheckbox-root":{backgroundColor:e=>e.custom.palette.interaction.hover,"&.Mui-checked":{backgroundColor:e=>e.custom.palette.purple[500]}}}}},children:[n?n.map(((a,n)=>{const i=a.value;return e.jsx(Te,{sx:{"& .MuiButtonBase-root.MuiCheckbox-root":{alignSelf:"baseline"}},onChange:()=>b(i,a.exclusive),checked:s.includes(i),control:e.jsx(Re,{sizing:r}),label:a.label},i)})):null,m&&e.jsx(Te,{inputRef:t,onChange:()=>b(c),label:i?.label||"Other",checked:s.includes(c),control:e.jsx(Re,{sizing:r})},c)]}),h&&e.jsx(a.Box,{sx:{mt:1},children:e.jsx(Le,{fullWidth:!0,autoFocus:!0,defaultValue:g?g.replace(d,""):"",placeholder:i?.placeholder,onChange:e=>{const a=s.find((e=>e.includes(d))),r=(a?s.map((a=>a.includes(d)?u(e.target.value):a)):[...s,u(e.target.value)]).filter((e=>e!==d));l(r),o&&o()},required:!0})})]})},Ve=e=>`linear-gradient(135deg, ${e.custom.palette.purple[400]} 0%, ${e.custom.palette.purple[200]} 100%)`,Ge=(e,r)=>{switch(r){case"tone1":default:return Ve(e);case"tone2":return(e=>`linear-gradient(135deg, ${e.custom.palette.purple[0]} 0%, ${e.custom.palette.purple[100]} 100%)`)(e);case"tone3":return(e=>`linear-gradient(135deg, ${e.custom.palette.blue[400]} 0%, ${e.custom.palette.purple[600]} 100%)`)(e);case"tone4":return(e=>`radial-gradient(54.59% 50% at 0% 50.04%, ${a.alpha(e.custom.palette.blue[1e3],.2)} 0%, ${a.alpha(e.custom.palette.blue[500],.2)} 100%), linear-gradient(135deg, ${e.custom.palette.purple[500]} 0%, ${e.custom.palette.purple[1e3]} 100%)`)(e)}},He=(e,a)=>{const r=Ge(e,a.gradient),n=(e=>"noise1"===e?"url(https://useloops-public.s3.eu-west-2.amazonaws.com/public/static/misc/noise_tile.png)":null)(a.texture);return n?[n,r].join(","):[r].join(",")},Ue=a.styled(a.InputLabel)((({theme:e,align:a})=>({fontWeight:400,lineHeight:"140%",whiteSpace:"normal",textAlign:a,color:"inherit","&.Mui-disabled":{color:e.custom.palette.text.disabled},"&.Mui-error":{color:e.custom.palette.text.negative}}))),We=a=>e.jsx(Ue,{...a}),Ze=n=>{const{icon:i=null,state:o="default",disabled:s,showicon:t=!0}=n,l=a.useTheme();return e.jsxs(a.Box,{sx:{display:"inline-flex",alignItems:"center",color:s?l.custom.palette.text.disabled:(()=>{switch(o){case"disabled":return l.custom.palette.text.disabled;case"positive":return l.custom.palette.text.positive;case"negative":return l.custom.palette.text.negative;default:return l.custom.palette.text.secondary}})(),"& svg":{marginRight:l.spacing(l.custom.margin.xs),width:N.xs,height:N.xs,color:"inherit"}},children:[(()=>{if(!t)return null;if(i)return i;switch(o){case"disabled":default:return e.jsx(a.Box,{sx:{height:20,display:"flex",alignItems:"center",alignSelf:"flex-start"},children:e.jsx(r.Info,{})});case"positive":return e.jsx(a.Box,{sx:{height:20,display:"flex",alignItems:"center",alignSelf:"flex-start"},children:e.jsx(r.Check,{})});case"negative":return e.jsx(a.Box,{sx:{height:20,display:"flex",alignItems:"center",alignSelf:"flex-start"},children:e.jsx(r.ErrorOutline,{})})}})(),e.jsx(We,{...n,sx:{fontSize:{xs:fe.sm.body.sm,sm:fe.sm.body.sm,md:fe.sm.body.sm,lg:fe.lg.body.sm,xl:fe.lg.body.sm}}})]})},Ke=a.styled(a.Box)((({theme:e})=>({"& .MuiGrid-item":{"&:first-of-type":{"& .MuiBox-root":{"& .MuiRadio-root":{"&:before":{content:'""',position:"absolute",width:b,height:b,top:`calc(100% + ${b}px)`,margin:"0 auto",background:e.custom.palette.stroke.default}}}},"&:last-of-type":{"& .MuiBox-root":{"& .MuiRadio-root":{"&:before":{content:'""',position:"absolute",width:b,height:b,top:`calc(100% + ${b}px)`,margin:"0 auto",background:e.custom.palette.stroke.default}}}}}}))),Ye=({children:a,width:r})=>e.jsx(Ke,{sx:{width:r,minWidth:300},children:a}),Je=a.styled(a.Radio)((({theme:e,sizing:a})=>({padding:0,backgroundColor:e.custom.palette.input.default,border:`1px solid ${e.custom.palette.stroke.default}`,position:"relative",transition:e.custom.easing.input,flexShrink:0,height:"default"===a?y:f,width:"default"===a?y:f,"& svg":{transition:e.custom.easing.input,fill:"none",width:"default"===a&&N.sm,height:"default"===a&&N.sm},"&:before":{content:'""',position:"absolute",inset:0,borderRadius:e.custom.radius.round},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& svg":{"&:first-of-type":{fill:"transparent"},fill:e.custom.palette.icon.disabled}},"&.Mui-focusVisible":{borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus,"&:before":{backgroundColor:e.custom.palette.interaction.press}},"&.Mui-checked":{backgroundColor:e.custom.palette.purple[500],"& svg":{"&:first-of-type":{fill:"transparent"},fill:e.custom.palette.icon.lockedWhite},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& svg":{"&:first-of-type":{fill:"transparent"},fill:e.custom.palette.icon.disabled}}}}))),Xe=a=>e.jsx(Je,{...a}),Qe=a.styled(Xe)((()=>({marginRight:0}))),ea=a.styled(a.Box)((({theme:e})=>({posiion:"relative","&:after":{content:'""',position:"absolute",top:"50%",right:"0",height:b,width:`calc(100% - ${f}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default}}))),aa=a=>e.jsx(ea,{sx:{position:"relative"},children:e.jsx(Qe,{...a})}),ra=({disabled:r=!1,onChange:n,labelLeft:i,labelRight:o,internalChange:s,labelCenter:t})=>{const l=[...Array(7).keys()];return e.jsx(a.RadioGroup,{children:e.jsxs(Ye,{children:[e.jsx(a.Grid,{container:!0,justifyContent:"space-between",children:l.map(((i,o)=>{const t=o+1!==l.length;return e.jsx(a.Grid,{item:!0,sm:t,children:e.jsx(aa,{disabled:r,value:i,onChange:(e,a)=>{n&&n(e,a),s&&s()},name:`radio-option-${i}`},i)},i)}))}),e.jsxs(a.Grid,{container:!0,justifyContent:"space-between",sx:{mt:1},children:[e.jsx(a.Grid,{item:!0,sm:!0,sx:{textAlign:"left"},children:e.jsx(Ze,{disabled:r,showicon:!1,children:i})}),e.jsx(a.Grid,{item:!0,sm:!0,sx:{textAlign:"center"},children:e.jsx(Ze,{disabled:r,align:"center",showicon:!1,children:t})}),e.jsx(a.Grid,{item:!0,sm:!0,sx:{textAlign:"right"},children:e.jsx(Ze,{disabled:r,align:"right",showicon:!1,children:o})})]})]})})},na=({sx:a,...r})=>e.jsx(We,{...r,sx:m({fontSize:{xs:fe.sm.body.md,sm:fe.sm.body.md,md:fe.sm.body.md,lg:fe.lg.body.md,xl:fe.lg.body.md}},!!a&&{...a})}),ia=n.createContext({attributes:{},listeners:void 0,ref(){}}),oa=e=>o.defaultAnimateLayoutChanges({...e,wasDragging:!0});function sa({children:r,top:i,bottom:t,id:l}){const{attributes:c,isDragging:d,listeners:u,setNodeRef:m,setActivatorNodeRef:h,transform:g,transition:b}=o.useSortable({id:l,animateLayoutChanges:oa}),p=n.useMemo((()=>({attributes:c,listeners:u,ref:h})),[c,u,h]),k={opacity:d?.4:void 0,transform:s.CSS.Translate.toString(g),transition:b};return e.jsx(ia.Provider,{value:p,children:e.jsxs(a.Stack,{className:"SortableItem",...c,sx:{position:"relative",...k,width:"100%"},ref:m,children:[i&&i,e.jsx(a.Box,{...u,sx:{display:"flex",cursor:"grab"},children:r}),t&&t]})})}const ta={sideEffects:i.defaultDropAnimationSideEffects({styles:{active:{opacity:"0.4"}}})};function la({children:a}){return t.createPortal(e.jsx(i.DragOverlay,{zIndex:999999,dropAnimation:ta,children:a}),document.body)}const ca=({nativeEvent:e})=>{let a=e.target;for(;a;){if(a.dataset.noDnd)return!1;a=a.parentElement}return!0};class da extends i.MouseSensor{static activators=[{eventName:"onMouseDown",handler:ca}]}class ua extends i.TouchSensor{static activators=[{eventName:"onTouchStart",handler:ca}]}function ma({items:r,onChange:s,renderItem:t,disabled:l,direction:c}){if(!r)return;const[d,u]=n.useState(null),m=n.useMemo((()=>r.find((e=>e?.id===d?.id))),[d,r]),h=a.useTheme(),g=a.useMediaQuery(h.breakpoints.down("md")),b=i.useSensors(i.useSensor(da,{activationConstraint:{distance:5}}),i.useSensor(ua,{activationConstraint:{delay:g?300:0,tolerance:8}}),i.useSensor(i.KeyboardSensor,{coordinateGetter:o.sortableKeyboardCoordinates}));return e.jsxs(i.DndContext,{measuring:{droppable:{strategy:i.MeasuringStrategy.Always}},sensors:b,onDragStart:({active:e})=>{u(e)},onDragEnd:({active:e,over:a})=>{if(a&&e.id!==a?.id){const n=r.findIndex((({id:a})=>a===e.id)),i=r.findIndex((({id:e})=>e===a.id));s(o.arrayMove(r,n,i))}u(null)},onDragCancel:()=>{u(null)},children:[e.jsx(o.SortableContext,{items:r,disabled:l,strategy:"horizontal"===c?o.horizontalListSortingStrategy:o.verticalListSortingStrategy,children:e.jsx(a.Stack,{sx:{..."horizontal"===c&&{flexDirection:"row"},display:"flex",m:0,gap:1,padding:0,alignContent:"flex-start"},children:r.map((a=>e.jsx(n.Fragment,{children:t(a)},a.id)))})}),e.jsx(la,{children:m?t(m,!0,!!d):null})]})}function ha(e){let a="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)a+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+a+" for the full message."}ma.Item=sa,ma.DragHandle=function(){const{attributes:r,listeners:i,ref:o}=n.useContext(ia);return e.jsx(a.Box,{...r,...i,ref:o,children:e.jsx("svg",{viewBox:"0 0 20 20",width:"12",children:e.jsx("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})};var ga="$$material";function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ba.apply(null,arguments)}function pa(e,a){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(a.includes(n))continue;r[n]=e[n]}return r}function ka(e){let a="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)a+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+a+" for the full message."}var ya=Object.freeze({__proto__:null,default:ka});function fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function va(e){if(e.__esModule)return e;var a=e.default;if("function"==typeof a){var r=function e(){return this instanceof e?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};r.prototype=a.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})})),r}var wa,za={exports:{}},ja={exports:{}},xa={};var qa,$a,Ca,Sa,Oa,Na,Ea,Pa,Ma,Ia,Aa,Ta,Fa,Ra,_a={};
|
|
2
2
|
/** @license React v16.13.1
|
|
3
3
|
* react-is.development.js
|
|
4
4
|
*
|