@useloops/design-system 1.4.32 → 1.4.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -30,4 +30,4 @@ object-assign
30
30
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31
31
  * See the License for the specific language governing permissions and
32
32
  * limitations under the License.
33
- */!function(e,a){var r;function i(e,a){var r=[],i=0;function n(e){return r.push(e),a}function o(){return r[i++]}return{tokenize:function(a){return a.replace(e,n)},detokenize:function(e){return e.replace(new RegExp("("+a+")","g"),o)}}}r=new function(){var e="`TMP`",a="`COMMENT`",r="[^\\u0020-\\u007e]",n="(?:[0-9]*\\.[0-9]+|[0-9]+)",o="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",s="direction\\s*:\\s*",l="['\"]?\\s*",t="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",d="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",u="(?:[_a-z0-9-]|"+r+"|"+d+")",m=n+"(?:\\s*"+o+"|"+("-?"+("(?:[_a-z]|"+r+"|"+d+")")+u+"*")+")?",h="((?:-?"+m+")|(?:inherit|auto))",g="((?:-?"+m+")|(?:inherit|auto)|"+("(?:calc\\((?:"+("(?:(?:\\(|\\)|\\t| )|"+("(?:-?"+n+"(?:\\s*"+o+")?)")+"|(?:\\+|\\-|\\*|\\/)){3,}")+")\\))")+")",b="(#?"+u+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",p="(?:[!#$%&*-~]|"+r+"|"+d+")*?",k="(?![a-zA-Z])",y="(?!("+u+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+a+")*?{)",f="(?!"+p+l+"\\))",w="(?="+p+l+"\\))",v="(\\s*(?:!important\\s*)?[;}])",z=/`TMP`/g,j=/`TMPLTR`/g,x=/`TMPRTL`/g,q=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),C=new RegExp("("+c+y+"[^;}]+;?)","gi"),S=new RegExp("("+c+"[^\\}]*?})","gi"),M=new RegExp("("+s+")ltr","gi"),E=new RegExp("("+s+")rtl","gi"),_=new RegExp(t+"(left)"+k+f+y,"gi"),O=new RegExp(t+"(right)"+k+f+y,"gi"),$=new RegExp(t+"(left)"+w,"gi"),T=new RegExp(t+"(right)"+w,"gi"),A=/(:dir\( *)ltr( *\))/g,F=/(:dir\( *)rtl( *\))/g,I=new RegExp(t+"(ltr)"+w,"gi"),R=new RegExp(t+"(rtl)"+w,"gi"),L=new RegExp(t+"([ns]?)e-resize","gi"),D=new RegExp(t+"([ns]?)w-resize","gi"),V=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+g+"(\\s+)"+g+"(\\s+)"+g+"(\\s+)"+g+v,"gi"),B=new RegExp("((?:-color|border-style)\\s*:\\s*)"+b+"(\\s+)"+b+"(\\s+)"+b+"(\\s+)"+b+v,"gi"),P=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+m+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+n+"%)","gi"),H=new RegExp("(border-radius\\s*:\\s*)"+h+"(?:(?:\\s+"+h+")(?:\\s+"+h+")?(?:\\s+"+h+")?)?(?:(?:(?:\\s*\\/\\s*)"+h+")(?:\\s+"+h+")?(?:\\s+"+h+")?(?:\\s+"+h+")?)?"+v,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+h,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+h+"(\\s*)"+b,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+b+"(\\s*)"+h,"gi"),Z=new RegExp("(text-shadow\\s*:\\s*)"+h,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+h+"(\\s*\\))","gi"),K=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+h+"((?:\\s*,\\s*"+h+"){0,2}\\s*\\))","gi");function J(e,a,r){var i,n;return"%"===r.slice(-1)&&(-1!==(i=r.indexOf("."))?(n=r.length-i-2,r=(r=100-parseFloat(r)).toFixed(n)+"%"):r=100-parseFloat(r)+"%"),a+r}function X(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,a){var r=[].slice.call(arguments),i=r.slice(2,6).filter((function(e){return e})),n=r.slice(6,10).filter((function(e){return e})),o=r[10]||"";return a+(n.length?X(i)+" / "+X(n):X(i))+o}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function ae(e,a,r){return a+ee(r)}function re(e,a,r,i,n){return a+r+ee(i)+n}function ie(e,a,r,i,n){return a+r+i+ee(n)}return{transform:function(r,n){var o=new i(C,"`NOFLIP_SINGLE`"),s=new i(S,"`NOFLIP_CLASS`"),l=new i(q,a);return r=l.tokenize(s.tokenize(o.tokenize(r.replace("`","%60")))),n.transformDirInUrl&&(r=r.replace(A,"$1`TMPLTR`$2").replace(F,"$1`TMPRTL`$2").replace(I,"$1"+e).replace(R,"$1ltr").replace(z,"rtl").replace(j,"ltr").replace(x,"rtl")),n.transformEdgeInUrl&&(r=r.replace($,"$1"+e).replace(T,"$1left").replace(z,"right")),r=r.replace(M,"$1"+e).replace(E,"$1ltr").replace(z,"rtl").replace(_,"$1"+e).replace(O,"$1left").replace(z,"right").replace(L,"$1$2"+e).replace(D,"$1$2e-resize").replace(z,"w-resize").replace(H,Q).replace(W,ae).replace(U,ie).replace(G,ie).replace(Z,ae).replace(Y,re).replace(K,re).replace(V,"$1$2$3$8$5$6$7$4$9").replace(B,"$1$2$3$8$5$6$7$4$9").replace(P,J).replace(N,J),r=o.detokenize(s.detokenize(l.detokenize(r)))}}},e.exports?a.transform=function(e,a,i){var n;return"object"==typeof a?n=a:(n={},"boolean"==typeof a&&(n.transformDirInUrl=a),"boolean"==typeof i&&(n.transformEdgeInUrl=i)),r.transform(e,n)}:"undefined"!=typeof window&&(window.cssjanus=r)}(uu,uu.exports);var mu=y(uu.exports);function hu(e,a,r){switch(e.type){case"@import":case jd:case vd:return e.return=e.return||e.value;case zd:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===vd&&(e.children=e.value)}))}var i=du(Array.prototype.concat(e.children),hu);return Ad(i)?e.return=e.value+"{"+i+"}":""}function gu(e,a,r,i){if(e.type===xd||"@supports"===e.type||e.type===zd&&(!e.parent||"@media"===e.parent.type||e.parent.type===zd)){var n=mu.transform(hu(e));e.children=n?nu(n)[0].children:[],e.return=""}}Object.defineProperty(gu,"name",{value:"stylisRTLPlugin"});const bu=r.createContext(null),pu=Ks({key:"muirtl",stylisPlugins:[function(e,a,r,i){if(e.length>-1&&!e.return)switch(e.type){case jd:return void(e.return=cu(e.value,e.length,r));case xd:return du([Hd(e,{value:_d(e.value,"@","@"+wd)})],i);case zd:if(e.length)return function(e,a){return e.map(a).join("")}(r=e.props,(function(a){switch(Ed(a,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Wd(Hd(e,{props:[_d(a,/:(read-\w+)/,":-moz-$1")]})),Wd(Hd(e,{props:[a]})),Sd(e,{props:Id(r,i)});break;case"::placeholder":Wd(Hd(e,{props:[_d(a,/:(plac\w+)/,":"+wd+"input-$1")]})),Wd(Hd(e,{props:[_d(a,/:(plac\w+)/,":-moz-$1")]})),Wd(Hd(e,{props:[_d(a,/:(plac\w+)/,yd+"input-$1")]})),Wd(Hd(e,{props:[a]})),Sd(e,{props:Id(r,i)})}return""}))}},gu]}),ku=Ks({key:"mui"});exports.AnnualController=({body:r,currency:i,changeCurrencyEvent:n=()=>{},frequency:o,heading:s,setCurrency:l=()=>{},setFrequency:t=()=>{},togglePayAnnuallyEvent:c=()=>{}})=>{const d=a.useTheme(),u=ai(),m=[{value:"gbp",label:"£"},{value:"eur",label:"€"},{value:"usd",label:"$"}];return e.jsxs(a.Box,{sx:{alignItems:"center",backgroundColor:d.custom.palette.surface.default,borderRadius:d.custom.radius.round,boxShadow:d.custom.elevation.raised,display:"flex",gap:{sm:2,lg:4},mb:2,mt:4,px:{sm:2,lg:4},py:{sm:1,lg:2}},children:[e.jsxs(a.Box,{sx:{alignItems:"center",display:"flex",gap:1},children:[e.jsx(ul,{defaultChecked:!0,onChange:()=>(c(),void t("monthly"===o?"annual":"monthly")),role:"switch","aria-checked":"monthly"!==o,"aria-label":"Switch between monthly and annual billing",inputProps:{"aria-label":"Input for switch between monthly and annual billing"}}),e.jsxs(a.Stack,{sx:{alignItems:"flex-start",display:"flex"},children:[e.jsx(sn,{variation:"sm"===u||"md"===u?"md":"xxl",component:"p",children:s}),e.jsx(sn,{variation:"sm",component:"p",sx:{color:d.custom.palette.text.secondary},children:r})]})]}),e.jsx(go,{onChange:e=>{return a=e.target.value,n(a),void l(a);var a},selections:m,value:m.find((e=>e.value===i))?.value,sx:{minWidth:{sm:64,lg:72},height:{sm:ti,lg:ci}}})]})},exports.AuthContainerSurface=({children:r,headContent:i,sx:n,...o})=>{const s=a.useTheme();return console.warn(s),e.jsxs(dl,{sx:{mx:[s.spacing(s.custom.margin.md),0],width:1,maxWidth:[512]},...o,children:[i&&e.jsx(a.Box,{sx:{width:"100%",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",pt:s.spacing(s.custom.margin.md),px:s.spacing(s.custom.margin.md)},children:i}),e.jsx(a.Box,{sx:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",pt:i?[s.spacing(s.custom.margin.md)]:[s.spacing(s.custom.padding.lg),s.spacing(s.custom.padding.xl)],px:[s.spacing(s.custom.padding.lg),s.spacing(s.custom.padding.xl)],pb:[s.spacing(s.custom.padding.lg),s.spacing(s.custom.padding.xl)]},children:r})]})},exports.AuthFormHeader=({logo:r,headerText:i,subText:n})=>{const o=a.useTheme();return e.jsxs(a.Stack,{gap:o.spacing(o.custom.margin.md),alignItems:"center",mb:o.spacing(o.custom.margin.lg),children:[!1===r?null:r||e.jsx(vi,{name:"loopsOfficial",sx:{width:{sm:79,md:79,lg:106},height:{sm:24,md:24,lg:32}}}),e.jsxs(a.Stack,{gap:o.spacing(o.custom.margin.md),children:[i&&e.jsx(sn,{variation:"sm",component:"h1",align:"center",weight:"bold",children:i}),function(){if(n)return"string"==typeof n?e.jsx(sn,{variation:"md",component:"p",align:"center",children:n}):n}()]})]})},exports.Avatar=({variation:r="lg",...i})=>{const{custom:n}=a.useTheme();switch(r){case"sm":return e.jsx(a.Avatar,{sx:{border:`1px solid ${n.palette.stroke.default}`,height:32,width:32},...i});case"lg":return e.jsx(a.Avatar,{sx:{border:`1px solid ${n.palette.stroke.default}`,height:48,width:48},...i})}},exports.AvatarGroup=({variation:r="primary",...i})=>{if("primary"===r)return e.jsx(a.AvatarGroup,{...i})},exports.Button=Cn,exports.CheckBoxGroup=Tn,exports.Checkbox=_n,exports.ColorBackgroundContainer=({sx:r,children:i,texture:n="noise1",gradient:o="tone1",...s})=>{const l=a.useTheme();return e.jsx(a.Container,{maxWidth:!1,disableGutters:!0,sx:fi({background:In(l,{texture:n,gradient:o}),height:"100%",p:[0,0,0]},!!r&&{...r}),...s,children:i})},exports.DEFAULT_MAX_INPUT_LENGTH=bd,exports.Differential=Gn,exports.DragAndDropRanking=yo,exports.FormControlLabel=Sn,exports.FormGenerator=md,exports.GridOverlay=({breakpoint:r})=>{const i=a.useTheme(),n=Array.from({length:6},((e,a)=>a));return r||(r=ai()),e.jsxs(a.Stack,{sx:{alignItems:"center",height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:({zIndex:e})=>e.tooltip},children:[e.jsx(a.Container,{sx:{background:i.custom.palette.red[300],display:"flex",flex:1,opacity:.3,position:"relative"},children:e.jsx(a.Box,{sx:{background:i.custom.palette.purple[300],display:"flex",flex:1},children:e.jsxs(a.Grid,{container:!0,spacing:2,children:[n.map((r=>e.jsx(a.Grid,{item:!0,sm:!0,sx:{display:{sm:"none",md:"block"}},children:e.jsx(a.Box,{sx:{background:i.custom.palette.green[300],height:"100%"}})},`grid-1-${r}`))),n.map((r=>e.jsx(a.Grid,{item:!0,sm:!0,sx:{display:{sm:"block"}},children:e.jsx(a.Box,{sx:{background:i.custom.palette.green[300],height:"100%"}})},`grid-2-${r}`)))]})})}),!!r&&e.jsx(a.Box,{sx:{backgroundColor:i.custom.palette.surface.default,borderRadius:i.spacing(i.custom.radius.md),bottom:16,filter:i.custom.elevationFilter.raised,display:"block",left:16,position:"fixed",px:2,py:1},children:e.jsx(sn,{variation:"sm",component:"p",weight:"bold",children:r})})]})},exports.Icon=vi,exports.IconButton=({icon:a,loading:r,sizing:i,...n})=>e.jsx(Mo,{...n,sizing:i,children:r?e.jsx(jn,{sizing:i}):a}),exports.IconButtonGroup=({ButtonGroupProps:a,children:r,...i})=>e.jsx(Oo,{...i,...a,children:r}),exports.InputLabel=Zn,exports.InputLabelHelp=Dn,exports.Likert=Do,exports.Link=Bo,exports.Loader=()=>e.jsx(a.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100dvh - 80px)"},children:e.jsx("img",{src:"https://useloops-public.s3.eu-west-2.amazonaws.com/public/landing/brand/loading-animation.gif",width:125})}),exports.Logo=a=>e.jsx("svg",{viewBox:"0 0 80 25",fill:"currentColor",...a,children:e.jsx("path",{d:"M8.72886 20.0975C7.43461 19.1995 7.16357 18.9302 7.16357 16.9549V0.988281H-0.000106812V1.28748L0.0165316 1.29764C1.3293 2.09875 1.92633 2.46309 1.92633 4.43011V16.9549C1.92633 18.9302 1.65553 19.1995 0.361043 20.0975V20.3965H8.72886V20.0975ZM14.5709 13.437C13.7868 9.01598 14.1045 7.0153 16.0905 6.66718C18.0767 6.31907 19.0631 8.09095 19.8472 12.512C20.6311 16.933 20.3137 18.9335 18.3275 19.2816C16.3415 19.6299 15.3548 17.8578 14.5709 13.437ZM9.11663 14.3934C9.93203 18.9911 14.141 21.3529 18.5575 20.5785C22.9743 19.8041 26.1169 16.1534 25.3015 11.5559C24.4861 6.95793 20.2773 4.5961 15.8605 5.3705C11.444 6.14467 8.30123 9.79541 9.11663 14.3934ZM33.3669 6.66718C31.381 7.0153 31.0633 9.01598 31.8474 13.437C32.6313 17.8578 33.618 19.6299 35.6039 19.2816C37.5901 18.9335 37.9076 16.933 37.1237 12.512C36.3396 8.09095 35.3531 6.31907 33.3669 6.66718ZM35.834 20.5785C31.4175 21.3529 27.2085 18.9911 26.3931 14.3934C25.5777 9.79541 28.7205 6.14467 33.137 5.3705C37.5538 4.5961 41.7625 6.95793 42.5779 11.5559C43.3933 16.1534 40.2508 19.8041 35.834 20.5785ZM52.9075 18.9002C51.0712 18.9002 49.6266 16.8353 49.6266 14.441V12.3162C49.6266 9.6524 50.9209 7.64737 52.9075 7.64737C54.9843 7.64737 56.0078 9.53285 56.0078 12.7351C56.0078 16.955 54.9542 18.9002 52.9075 18.9002ZM51.6733 24.5936C50.1696 23.7488 49.6266 23.4437 49.6266 21.5189V17.9125C50.4091 19.4689 51.9744 20.6958 54.5629 20.6958C58.476 20.6958 61.5762 17.763 61.5762 12.7052C61.5762 7.55754 58.5663 5.25308 55.1047 5.25308C52.2753 5.25308 50.3187 6.83937 49.6266 9.02405L49.5063 5.55228H42.5833V5.85171L42.5873 5.85427C43.8786 6.69033 44.3891 7.02081 44.3891 8.99411V21.5189C44.3891 23.4942 44.1183 23.7637 42.824 24.6613V24.9605H51.7937V24.6613L51.6733 24.5936ZM79.8954 18.9002C79.8954 19.8689 79.1055 20.6543 78.1313 20.6543C77.157 20.6543 76.3671 19.8689 76.3671 18.9002C76.3671 17.9315 77.157 17.1462 78.1313 17.1462C79.1055 17.1462 79.8954 17.9315 79.8954 18.9002ZM70.0692 10.2734C68.0387 9.67975 66.9044 9.34812 66.9044 8.15614C66.9044 7.16849 67.8074 6.71957 68.8309 6.71957C70.7874 6.71957 72.3224 7.827 74.0985 10.4007H74.5196V5.25306H74.2187L72.8642 6.24072C72.8031 6.21577 72.742 6.19075 72.681 6.16573C71.5696 5.71024 70.454 5.25306 68.7707 5.25306C65.55 5.25306 62.9916 7.22837 62.9916 10.1612C62.9916 12.795 64.2557 14.2912 68.8008 15.4585C70.4863 15.8775 71.6601 16.1767 71.6601 17.4636C71.6601 18.6608 70.4863 19.2293 69.0718 19.2293C66.9044 19.2293 65.3093 17.763 63.2021 14.9797H62.7509L63.0819 20.6661H63.413L64.6169 19.4688C65.5801 19.9477 67.0851 20.6958 69.1019 20.6958C72.9546 20.6958 75.6334 18.571 75.6334 15.5783C75.6334 12.4956 73.7672 11.3584 70.095 10.2809L70.0692 10.2734Z"})}),exports.Pill=({body:r,variation:i="default",weight:n="heavy"})=>{const o=a.useTheme();return e.jsx(a.Box,{sx:{borderRadius:o.spacing(o.custom.radius.md),px:1,py:.5,...(e=>{switch(e){case"peach":return{backgroundColor:o.custom.palette.peach[100],color:"heavy"===n?o.custom.palette.peach[1e3]:o.custom.palette.peach[800]};case"peachDark":return{backgroundColor:o.custom.palette.peach[800],color:o.custom.palette.peach[0]};case"purple":return{backgroundColor:o.custom.palette.purple[100],color:"heavy"===n?o.custom.palette.purple[1e3]:o.custom.palette.purple[800]};default:return{backgroundColor:o.custom.palette.neutral[100],color:"heavy"===n?o.custom.palette.neutral[1e3]:o.custom.palette.neutral[800]}}})(i),...(e=>"light"===e?{fontWeight:400}:{fontWeight:500,textTransform:"uppercase"})(n)},children:e.jsx(sn,{variation:"sm",component:"p",weight:"heavy"===n?"bold":"default",color:"inherit",children:r})})},exports.PlanFeatureTable=({currencySymbol:r,data:i,starterPrice:n,starterRespondentPrice:o,teamPrice:s,teamRespondentPrice:l,plusPrice:t,plusRespondentPrice:c,scalePrice:d,scaleRespondentPrice:u,variation:m="default"})=>{const h=a.useTheme();i||(i=Po);const g=Object.values(i.headings).map((({heading:e,pricing:a})=>({heading:e,pricing:a.replace("{{currencySymbol}}",r).replace("{{starterPrice}}",n).replace("{{teamPrice}}",s).replace("{{plusPrice}}",t).replace("{{scalePrice}}",d)}))),b=e=>e.replace("{{currencySymbol}}",r).replace("{{starterRespondentPrice}}",o||"").replace("{{teamRespondentPrice}}",l||"").replace("{{plusRespondentPrice}}",c||"").replace("{{scaleRespondentPrice}}",u||""),p=[...Object.values(i.rows).map(((e,a)=>({key:`pricing-table-features-${a}`,type:"row",name:{heading:e.heading,description:e.description},starter:b(e.starter),team:b(e.team),plus:b(e.plus),scale:b(e.scale)})))];return e.jsxs(a.Stack,{sx:{backgroundColor:h.custom.palette.surface.default,borderRadius:h.spacing(h.custom.radius.xl),boxShadow:h.custom.elevation.raised,display:"flex",gap:2,pb:{sm:2,lg:4},px:{sm:2,lg:4},minWidth:{sm:680}},children:[e.jsxs(a.Box,{sx:{display:"flex",py:2,px:1,justifyContent:"space-between"},children:[e.jsx(a.Box,{sx:{width:160}}),g.map((({heading:r,pricing:i})=>e.jsxs(a.Stack,{sx:{alignItems:"center",display:"flex",justifyContent:"center",width:122},children:[e.jsx(sn,{variation:"platform"===m?"lg":"xxl",component:"p",weight:"bold",children:r}),e.jsx(sn,{variation:"platform"===m?"sm":"md",component:"p",sx:{color:h.custom.palette.text.secondary},children:i})]},r)))]}),p.map((r=>e.jsxs(a.Box,{sx:{display:"flex",justifyContent:"space-between",p:1,"&:nth-of-type(odd)":{backgroundColor:h.custom.palette.surface.sunken}},children:[e.jsx(a.Box,{sx:{display:"flex",alignItems:"center",width:160},children:e.jsxs(a.Box,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",flex:1,gap:1},children:[r.name.description&&e.jsx(pl,{message:r.name.description,children:e.jsx(a.Box,{sx:{alignItems:"center",color:h.custom.palette.icon.secondary,display:"flex"},children:e.jsx(vi,{name:"info",size:24})})}),e.jsx(sn,{variation:"platform"===m?"md":"lg",component:"p",children:r.name.heading})]})}),e.jsx(No,{text:r.starter}),e.jsx(No,{text:r.team}),e.jsx(No,{text:r.plus}),e.jsx(No,{text:r.scale})]},r.key)))]})},exports.PlanTierCard=({amount:i,billingType:n,body:o,ctaEvent:s=()=>{},ctaLink:l="#",ctaTarget:t="_self",ctaText:c,ctaVariation:d="primary",currencySymbol:u,currentPlan:m,features:h=[],freeTrialLength:g,freeTrialText:b,frequency:p,heading:k,label:y,largestHeaderHeight:f=0,perMonth:w,setLargestHeaderHeight:v=()=>{},variation:z="default"})=>{const j=a.useTheme(),x=ai(),{width:q}=Ho(),C=r.useRef(null),[S,M]=r.useState("sm");return r.useEffect((()=>{r.startTransition((()=>{M(x),x!==S&&v(0),C.current&&C.current.offsetHeight>f&&v(C.current.offsetHeight)}))}),[x,S,q]),e.jsxs(a.Stack,{sx:{display:"flex",flex:1,position:"relative"},children:[e.jsx(a.Stack,{sx:{alignItems:"center",backgroundColor:j.custom.palette.icon.primary,borderTopLeftRadius:j.spacing(j.custom.radius.lg),borderTopRightRadius:j.spacing(j.custom.radius.lg),boxShadow:j.custom.elevation.overlay,color:j.custom.palette.text.primaryInverted,justifyContent:"center",p:{sm:1,lg:2},textTransform:"uppercase",opacity:y?1:0,display:{sm:y?"flex":"none",md:"flex"}},children:e.jsx(sn,{variation:"md",component:"p",weight:"bold",sx:{color:j.custom.palette.white},children:y||"&nbsp;"})}),e.jsxs(a.Stack,{sx:{backgroundColor:j.custom.palette.surface.default,borderBottomLeftRadius:j.spacing(j.custom.radius.lg),borderBottomRightRadius:j.spacing(j.custom.radius.lg),borderTopLeftRadius:y?0:j.spacing(j.custom.radius.lg),borderTopRightRadius:y?0:j.spacing(j.custom.radius.lg),boxShadow:j.custom.elevation.overlay,display:"flex",flex:1},children:[e.jsxs(a.Stack,{sx:{display:"flex",gap:"sm"===x||"md"===x?1:2,textAlign:"center",minHeight:{sm:"none",md:f},px:2,py:{sm:2,lg:4}},ref:C,children:[e.jsx(sn,{variation:"sm"===x?"xxl":"platform"===z?"md":"lg",component:"h2",weight:"bold",children:k}),e.jsx(sn,{variation:"sm"===x?"md":"platform"===z?"md"===x?"sm":"md":"md"===x?"md":"lg",component:"p",sx:{color:j.custom.palette.text.secondary},children:o})]}),e.jsxs(a.Stack,{sx:{alignItems:"center",display:"flex",gap:2,minHeight:{sm:"none",md:168,lg:"platform"===z?184:240,xl:"platform"===z?184:226},px:2,py:{sm:2,md:2,lg:"platform"===z?2:6}},children:[e.jsxs(a.Box,{sx:{alignItems:"flex-end",display:"flex",gap:.5,justifyContent:"center"},children:[e.jsx(sn,{variation:"md"===x?"sm":"xxl",component:"p",weight:"bold",sx:{lineHeight:1,marginBottom:-.15,marginRight:-.4},children:u}),e.jsx(sn,{variation:"xxl",component:"p",weight:"bold",sx:{fontSize:{sm:48,md:26,lg:48},lineHeight:.8},children:i}),w&&e.jsx(sn,{variation:"sm",component:"p",sx:{color:j.custom.palette.text.secondary,lineHeight:1,marginLeft:-.5},children:w})]}),g&&b&&e.jsxs(a.Box,{sx:{alignItems:"center",backgroundColor:j.custom.palette.yellow[300],borderRadius:j.custom.radius.round,boxShadow:j.custom.elevation.raised,display:"flex",gap:{sm:.5,md:1},px:2,py:1},children:[e.jsx(vi,{name:"gift",size:24}),e.jsxs(a.Box,{sx:{display:"flex",flexDirection:{sm:"row",md:"column",lg:"row"},gap:{sm:.5,md:0,lg:.5}},children:[e.jsx(sn,{variation:"md",component:"p",weight:"bold",sx:{lineHeight:1},children:g}),e.jsx(sn,{variation:"md",component:"p",sx:{lineHeight:1},children:b})]})]}),n&&e.jsx(sn,{variation:"sm",component:"p",sx:{color:j.custom.palette.text.placeholder},children:n})]}),e.jsxs(a.Stack,{sx:{display:"flex",flexDirection:{sm:"column-reverse",md:"column"}},children:[e.jsx(a.Box,{sx:{py:{sm:2,md:0},px:{sm:2,lg:4}},children:e.jsx(Bo,{href:l,title:c,target:t,onClick:()=>{k&&s(k)},sx:{"&:hover":{cursor:m?"default":"pointer"}},children:e.jsx(Cn,{fullWidth:!0,variation:d,sizing:"lg",disabled:m,children:c})})}),h?.length&&e.jsx(a.Stack,{sx:{alignItems:"center",gap:.5,px:{sm:2,lg:4},py:{sm:2,md:4,lg:"platform"===z?4:6}},children:h.map(((r,i)=>e.jsxs(a.Box,{sx:{alignItems:"center",display:"flex",gap:1,maxWidth:200,width:"100%"},children:[e.jsx(vi,{name:"positive",size:24}),e.jsx(sn,{variation:"md",component:"p",children:r})]},`${k}-feature-${i}`)))})]})]})]})},exports.PlanTierCardScale=({body:r,ctaEvent:i=()=>{},ctaLink:n="",ctaTarget:o="_blank",ctaText:s,currencySymbol:l,heading:t,postText:c,preText:d,amount:u})=>{const m=a.useTheme();return e.jsxs(a.Box,{sx:{backgroundColor:m.custom.palette.purple[0],borderRadius:m.spacing(m.custom.radius.lg),display:"flex",flexDirection:{sm:"column",md:"row"},textAlign:{sm:"center",md:"left"},boxShadow:m.custom.elevation.overlay,flex:1,gap:{sm:4,md:2},p:{sm:2,lg:4}},children:[e.jsxs(a.Stack,{sx:{flex:1,gap:2,justifyContent:"center"},children:[e.jsx(sn,{variation:"md",component:"h2",sx:{fontWeight:500},children:t}),e.jsx(sn,{variation:"md",component:"p",sx:{color:m.custom.palette.text.secondary},children:r})]}),e.jsxs(a.Stack,{sx:{flex:1,gap:{sm:4,md:2},justifyContent:"center",maxWidth:{sm:"none",md:180,lg:320},p:{sm:0,md:2,lg:4}},children:[e.jsxs(a.Box,{sx:{alignItems:"flex-end",display:"flex",justifyContent:"center"},children:[e.jsx(sn,{variation:"md",component:"p",sx:{color:m.custom.palette.text.placeholder,pr:.5},children:d}),e.jsxs(a.Box,{sx:{alignItems:"flex-end",display:"flex"},children:[e.jsx(sn,{variation:"xxl",component:"p",sx:{fontWeight:500,lineHeight:1.2},children:l}),e.jsx(sn,{variation:"xxl",component:"p",sx:{fontWeight:500,fontSize:{sm:"1.6rem",lg:"2.2rem"},lineHeight:{sm:1.15,lg:1}},children:u})]}),e.jsx(sn,{variation:"md",component:"p",sx:{color:m.custom.palette.text.placeholder,pl:.1},children:c})]}),e.jsx(Bo,{href:n,title:s,target:o,onClick:()=>{t&&i(t)},children:e.jsx(Cn,{fullWidth:!0,variation:"outlined",sizing:"lg",children:s})})]})]})},exports.Portal=a=>{const[i,n]=r.useState(null),o=i?.contentWindow?.document?.body,s=Ks({key:"css",container:i?.contentWindow?.document?.head,prepend:!0});return e.jsx(Js,{ref:n,children:o&&t.createPortal(e.jsx(c.CacheProvider,{value:s,children:a.children}),o)})},exports.PoweredByWatermarkLogo=()=>e.jsxs(a.Stack,{gap:.5,flexDirection:"row",children:[e.jsx(a.SvgIcon,{sx:{width:67,height:12},viewBox:"0 0 67 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2.09034 4.64868H4.09536C5.65956 4.64868 6.41322 4.00878 6.41322 2.84274C6.41322 1.69092 5.65956 1.05102 4.09536 1.05102H2.09034V4.64868ZM2.09034 5.6583V9H0.86742V0.0413991H4.1238C6.34212 0.0413991 7.6077 1.09368 7.6077 2.84274C7.6077 4.60602 6.34212 5.6583 4.1238 5.6583H2.09034ZM9.27266 5.90004C9.27266 7.27938 9.96944 8.26056 11.2208 8.26056C12.4864 8.26056 13.1974 7.27938 13.1974 5.90004C13.1974 4.50648 12.4864 3.53952 11.2208 3.53952C9.96944 3.53952 9.27266 4.50648 9.27266 5.90004ZM14.4061 5.90004C14.4061 7.83396 13.0552 9.17064 11.2208 9.17064C9.40064 9.17064 8.06396 7.83396 8.06396 5.90004C8.06396 3.96612 9.40064 2.61522 11.2208 2.61522C13.0552 2.61522 14.4061 3.96612 14.4061 5.90004ZM19.9082 2.78586L21.2449 7.49268H21.3018L22.738 2.78586H23.8329L21.8564 9H20.7188L19.3963 4.36428H19.3394L18.0312 9H16.8936L14.9028 2.78586H16.083L17.5477 7.49268H17.6046L18.9128 2.78586H19.9082ZM29.4445 6.78168L30.4257 6.89544C30.1271 8.31744 29.0748 9.17064 27.5248 9.17064C25.6762 9.17064 24.3253 7.91928 24.3253 5.98536C24.3253 4.023 25.6762 2.61522 27.4679 2.61522C29.4445 2.61522 30.4541 4.023 30.4541 5.71518V6.17022H25.5056C25.5624 7.40736 26.4299 8.24634 27.539 8.24634C28.5771 8.24634 29.2028 7.74864 29.4445 6.78168ZM25.534 5.445H29.2454C29.217 4.43538 28.634 3.51108 27.4679 3.51108C26.3445 3.51108 25.662 4.40694 25.534 5.445ZM35.5059 2.89962L35.3921 3.96612C35.0509 3.78126 34.8091 3.71016 34.4252 3.71016C33.5293 3.71016 32.861 4.5207 32.861 5.71518V9H31.6807V2.78586H32.861V4.05144C33.0885 3.34044 33.7284 2.61522 34.6243 2.61522C35.0082 2.61522 35.2926 2.71476 35.5059 2.89962ZM40.9288 6.78168L41.91 6.89544C41.6114 8.31744 40.5591 9.17064 39.0091 9.17064C37.1605 9.17064 35.8096 7.91928 35.8096 5.98536C35.8096 4.023 37.1605 2.61522 38.9522 2.61522C40.9288 2.61522 41.9384 4.023 41.9384 5.71518V6.17022H36.9899C37.0468 7.40736 37.9142 8.24634 39.0233 8.24634C40.0614 8.24634 40.6871 7.74864 40.9288 6.78168ZM37.0183 5.445H40.7297C40.7013 4.43538 40.1183 3.51108 38.9522 3.51108C37.8289 3.51108 37.1463 4.40694 37.0183 5.445ZM47.8993 6.07068V5.71518C47.8993 4.36428 47.0461 3.56796 45.9227 3.56796C44.6998 3.56796 44.0172 4.47804 44.0172 5.90004C44.0172 7.32204 44.6998 8.23212 45.9227 8.23212C47.0461 8.23212 47.8993 7.4358 47.8993 6.07068ZM47.8851 9V7.70598C47.6007 8.47386 46.8186 9.17064 45.6525 9.17064C43.8039 9.17064 42.8085 7.73442 42.8085 5.90004C42.8085 4.06566 43.8039 2.61522 45.6525 2.61522C46.8186 2.61522 47.6007 3.32622 47.8851 4.0941V0.0413991H49.0653V9H47.8851ZM54.3847 5.71518V6.07068C54.3847 7.4358 55.2521 8.23212 56.3755 8.23212C57.5984 8.23212 58.2668 7.32204 58.2668 5.90004C58.2668 4.47804 57.5984 3.56796 56.3755 3.56796C55.2521 3.56796 54.3847 4.36428 54.3847 5.71518ZM54.3847 7.70598L54.1288 9H53.2329V0.0413991H54.4132V4.0941C54.6833 3.32622 55.4797 2.61522 56.6457 2.61522C58.4801 2.61522 59.4897 4.06566 59.4897 5.90004C59.4897 7.73442 58.4801 9.17064 56.6315 9.17064C55.4797 9.17064 54.6691 8.48808 54.3847 7.70598ZM62.6822 11.389H61.5304L62.54 8.98578L59.9235 2.78586H61.1607L63.1372 7.56378H63.1941L65.0996 2.78586H66.2656L62.6822 11.389Z",fill:"#473F5C"})}),e.jsxs(a.SvgIcon,{sx:{width:40,height:12},viewBox:"0 0 40 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("g",{id:"Brand/Wordmark",clipPath:"url(#clip0_900_1816)",children:e.jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M4.3189 9.56522C3.67851 9.11556 3.54429 8.98169 3.54429 7.99199V0H0V0.149886L0.00580287 0.153463C0.656931 0.554852 0.953183 0.737477 0.953183 1.72311V7.99199C0.953183 8.98169 0.818964 9.11556 0.17858 9.56522V9.7151H4.3189V9.56522ZM4.51113 6.71053C4.91378 9.01144 6.99646 10.1934 9.18264 9.80664C11.3677 9.41876 12.9226 7.58467 12.5199 5.28947C12.1173 2.99428 10.0346 1.80549 7.84841 2.19336C5.66223 2.58124 4.10847 4.40961 4.51113 6.71053ZM7.2103 6.23112C6.8247 4.01831 6.98053 3.01716 7.96215 2.84325C8.94377 2.66819 9.43515 3.55263 9.82074 5.76545C10.2063 7.97826 10.0516 8.97483 9.06889 9.15332C8.08613 9.33181 7.59589 8.44394 7.2103 6.23112ZM17.7306 9.80664C15.5455 10.1934 13.4629 9.01144 13.0591 6.71053C12.6553 4.40961 14.2102 2.58124 16.3963 2.19336C18.5825 1.80549 20.6641 2.99428 21.0678 5.28947C21.4716 7.58467 19.9156 9.41876 17.7306 9.80664ZM16.5101 2.84325C15.5273 3.01716 15.3726 4.01831 15.7582 6.23112C16.1438 8.44394 16.6341 9.33181 17.6168 9.15675C18.5996 8.98169 18.7543 7.98169 18.3687 5.76888C17.9831 3.55606 17.4928 2.66819 16.5101 2.84325ZM25.5683 11.8168C24.8234 11.3931 24.5553 11.2406 24.5553 10.2769L24.5575 8.4794C24.9443 9.25858 25.7189 9.873 26.9997 9.873C28.9356 9.873 30.47 8.40046 30.47 5.86842C30.47 3.29176 28.9743 2.13844 27.2681 2.13844C25.8679 2.13844 24.8988 2.93249 24.5575 4.02631L24.4973 2.28833H21.0724V2.43135L21.0731 2.43181C21.713 2.85024 21.9653 3.01524 21.9653 4.00458V10.2769C21.9653 11.2654 21.8322 11.4005 21.1907 11.8501V12H25.6267V11.8501L25.5683 11.8168ZM26.1784 8.9611C25.2696 8.9611 24.5553 7.92792 24.5553 6.72998V5.66247C24.5553 4.32952 25.1957 3.32494 26.1784 3.32494C27.2055 3.32494 27.7117 4.27002 27.7117 5.87185C27.7117 7.98741 27.1907 8.9611 26.1784 8.9611ZM38.6585 9.84325C39.1403 9.84325 39.5309 9.45034 39.5309 8.96567C39.5309 8.481 39.1403 8.0881 38.6585 8.0881C38.1767 8.0881 37.7861 8.481 37.7861 8.96567C37.7861 9.45034 38.1767 9.84325 38.6585 9.84325ZM34.6585 4.64621C33.661 4.35019 33.0998 4.18365 33.0998 3.5881C33.0998 3.08924 33.5548 2.86842 34.0552 2.86842C35.0244 2.86842 35.783 3.42334 36.6623 4.71167H36.8704V2.13501H36.7214L36.0515 2.62929C36.0223 2.61721 35.9931 2.6051 35.9639 2.59299C35.4126 2.36413 34.8607 2.13501 34.0257 2.13501C32.4321 2.13501 31.1661 3.12357 31.1661 4.59153C31.1661 5.90961 31.7929 6.65904 34.0416 7.24371C34.8765 7.45309 35.4566 7.60297 35.4566 8.24714C35.4566 8.84668 34.8765 9.13043 34.1758 9.13043C33.0998 9.13043 32.3138 8.39702 31.2799 7.00343H31.0524L31.2094 9.85011H31.3731L31.968 9.25057C32.4446 9.49085 33.1897 9.86499 34.1872 9.86499C36.0936 9.86499 37.4198 8.80091 37.4198 7.3032C37.4198 5.75973 36.4985 5.19107 34.6786 4.65217L34.6585 4.64621Z",fill:"#473F5C"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_900_1816",children:e.jsx("rect",{width:"39.5321",height:"12",fill:"white"})})})]})]}),exports.Progress=jn,exports.Radio=Nn,exports.RadioGroup=Xs,exports.Select=go,exports.Slider=il,exports.SortableList=io,exports.StarRating=ol,exports.Surface=dl,exports.Switch=ul,exports.TextArea=hl,exports.TextBarDivider=({typographyProps:r,text:i,sx:n})=>{const o=a.useTheme();return e.jsx(a.Box,{sx:fi(n,{width:"100%",position:"relative",display:"flex",gap:4,my:o.spacing(o.custom.margin.md),"&:before":{content:'""',width:"100%",background:o.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"},"&:after":{content:'""',width:"100%",background:o.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"}}),children:e.jsx(sn,{align:"center",variation:"sm",component:"p",...r,children:i})})},exports.TextField=$n,exports.ThemeProvider=({mode:i="light",screenSize:n="lg",direction:o="ltr",children:s})=>{const l=((e="light",i="lg",n="ltr")=>{const{width:o}=Ho(),[s,l]=r.useState(e),[t,c]=r.useState(i),[d,u]=r.useState(!1),[m,h]=r.useState(kd(s,t,n)),[g,b]=r.useState(kd("light"===s?"dark":"light",t,n)),[p,k]=r.useState("");r.useEffect((()=>{r.startTransition((()=>{c(o&&o<ri.lg?"sm":"lg")}))}),[o]),r.useEffect((()=>{r.startTransition((()=>{h(kd(s,t,n)),b(kd("light"===s?"dark":"light",t,n))}))}),[s,t]);const y=a.useMediaQuery(m.breakpoints.only("sm"),{noSsr:!0}),f=a.useMediaQuery(m.breakpoints.only("md"),{noSsr:!0}),w=a.useMediaQuery(m.breakpoints.between("lg","xl"),{noSsr:!0}),v=a.useMediaQuery(m.breakpoints.up("xl"),{noSsr:!0});return r.useEffect((()=>{r.startTransition((()=>{y&&k("sm"),f&&k("md"),w&&k("lg"),v&&k("xl")}))}),[y,f,w,v]),{breakpoint:p,darkTheme:g,gridOverlayVisible:d,mode:s,theme:m,toggleGridOverlay:()=>{r.startTransition((()=>{u((e=>!e))}))},toggleMode:e=>{r.startTransition((()=>{if(e)return l(e);l((e=>"light"===e?"dark":"light"))}))}}})(i,n,o);return r.useEffect((()=>{"rtl"===o&&(document.dir="rtl")}),[]),e.jsx(bu.Provider,{value:l,children:e.jsx(c.CacheProvider,{value:"rtl"===o?pu:ku,children:e.jsxs(ei,{theme:l.theme,children:[e.jsx(a.CssBaseline,{}),s]})})})},exports.TickGroup=({heading:r,ticks:i})=>(a.useTheme(),e.jsxs(a.Stack,{sx:{display:"flex",gap:{sm:2,lg:4},py:{sm:2,lg:4}},children:[e.jsx(sn,{variation:"xl",component:"p",sx:{textAlign:"center"},children:r}),e.jsx(a.Box,{sx:{columnGap:4,display:"flex",flex:1,flexWrap:"wrap",justifyContent:"center",rowGap:2},children:i.map(((i,n)=>e.jsxs(a.Box,{sx:{display:"flex",alignItems:"center",gap:1,px:{sm:0,lg:2}},children:[e.jsx(vi,{name:"positive",size:32}),e.jsx(sn,{variation:"xxl",component:"p",children:i})]},`tick-group-${r}-${n}`)))})]})),exports.Toast=({buttons:r,message:i,status:n="neutral",variation:o="sm"})=>{const s=a.useTheme();return e.jsx(a.Stack,{sx:{backgroundColor:s.custom.palette.surface.overlay,borderRadius:s.spacing(s.custom.radius.lg),boxShadow:s.custom.elevation.overlay,color:s.custom.palette.text.primaryInverted,display:"flex",flex:1,gap:1,p:2},children:e.jsxs(a.Box,{sx:{display:"flex",flex:1,flexDirection:"sm"===o?"row":"column",gap:2},children:[e.jsxs(a.Box,{sx:{display:"flex",flex:1,gap:1},children:["neutral"!==n&&e.jsx(gl,{status:n}),e.jsx(a.Box,{sx:{display:"flex"},children:e.jsx(sn,{variation:"md",component:"p",clamp:"sm"===o?3:0,sx:{px:1,pt:.5},children:i})})]}),r&&e.jsx(a.Box,{sx:{alignItems:"center",display:"flex",gap:2,justifyContent:"flex-end"},children:r})]})})},exports.Tooltip=pl,exports.Typography=sn,exports.chooseArticle=hd,exports.defaultInputValidation=gd,exports.emailValidation={pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,30}$/i,message:"Please enter a valid email"}},exports.passwordValidation=e=>({minLength:{value:e||8,message:`Password must have at least ${e||8} characters`},equal:{value:"password",message:"You cannot choose 'password' as your password"}});
33
+ */!function(e,a){var r;function i(e,a){var r=[],i=0;function n(e){return r.push(e),a}function o(){return r[i++]}return{tokenize:function(a){return a.replace(e,n)},detokenize:function(e){return e.replace(new RegExp("("+a+")","g"),o)}}}r=new function(){var e="`TMP`",a="`COMMENT`",r="[^\\u0020-\\u007e]",n="(?:[0-9]*\\.[0-9]+|[0-9]+)",o="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",s="direction\\s*:\\s*",l="['\"]?\\s*",t="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",d="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",u="(?:[_a-z0-9-]|"+r+"|"+d+")",m=n+"(?:\\s*"+o+"|"+("-?"+("(?:[_a-z]|"+r+"|"+d+")")+u+"*")+")?",h="((?:-?"+m+")|(?:inherit|auto))",g="((?:-?"+m+")|(?:inherit|auto)|"+("(?:calc\\((?:"+("(?:(?:\\(|\\)|\\t| )|"+("(?:-?"+n+"(?:\\s*"+o+")?)")+"|(?:\\+|\\-|\\*|\\/)){3,}")+")\\))")+")",b="(#?"+u+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",p="(?:[!#$%&*-~]|"+r+"|"+d+")*?",k="(?![a-zA-Z])",y="(?!("+u+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+a+")*?{)",f="(?!"+p+l+"\\))",w="(?="+p+l+"\\))",v="(\\s*(?:!important\\s*)?[;}])",z=/`TMP`/g,j=/`TMPLTR`/g,x=/`TMPRTL`/g,q=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),C=new RegExp("("+c+y+"[^;}]+;?)","gi"),S=new RegExp("("+c+"[^\\}]*?})","gi"),M=new RegExp("("+s+")ltr","gi"),E=new RegExp("("+s+")rtl","gi"),_=new RegExp(t+"(left)"+k+f+y,"gi"),O=new RegExp(t+"(right)"+k+f+y,"gi"),$=new RegExp(t+"(left)"+w,"gi"),T=new RegExp(t+"(right)"+w,"gi"),A=/(:dir\( *)ltr( *\))/g,F=/(:dir\( *)rtl( *\))/g,I=new RegExp(t+"(ltr)"+w,"gi"),R=new RegExp(t+"(rtl)"+w,"gi"),L=new RegExp(t+"([ns]?)e-resize","gi"),D=new RegExp(t+"([ns]?)w-resize","gi"),V=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+g+"(\\s+)"+g+"(\\s+)"+g+"(\\s+)"+g+v,"gi"),B=new RegExp("((?:-color|border-style)\\s*:\\s*)"+b+"(\\s+)"+b+"(\\s+)"+b+"(\\s+)"+b+v,"gi"),P=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+m+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+n+"%)","gi"),H=new RegExp("(border-radius\\s*:\\s*)"+h+"(?:(?:\\s+"+h+")(?:\\s+"+h+")?(?:\\s+"+h+")?)?(?:(?:(?:\\s*\\/\\s*)"+h+")(?:\\s+"+h+")?(?:\\s+"+h+")?(?:\\s+"+h+")?)?"+v,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+h,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+h+"(\\s*)"+b,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+b+"(\\s*)"+h,"gi"),Z=new RegExp("(text-shadow\\s*:\\s*)"+h,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+h+"(\\s*\\))","gi"),K=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+h+"((?:\\s*,\\s*"+h+"){0,2}\\s*\\))","gi");function J(e,a,r){var i,n;return"%"===r.slice(-1)&&(-1!==(i=r.indexOf("."))?(n=r.length-i-2,r=(r=100-parseFloat(r)).toFixed(n)+"%"):r=100-parseFloat(r)+"%"),a+r}function X(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,a){var r=[].slice.call(arguments),i=r.slice(2,6).filter((function(e){return e})),n=r.slice(6,10).filter((function(e){return e})),o=r[10]||"";return a+(n.length?X(i)+" / "+X(n):X(i))+o}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function ae(e,a,r){return a+ee(r)}function re(e,a,r,i,n){return a+r+ee(i)+n}function ie(e,a,r,i,n){return a+r+i+ee(n)}return{transform:function(r,n){var o=new i(C,"`NOFLIP_SINGLE`"),s=new i(S,"`NOFLIP_CLASS`"),l=new i(q,a);return r=l.tokenize(s.tokenize(o.tokenize(r.replace("`","%60")))),n.transformDirInUrl&&(r=r.replace(A,"$1`TMPLTR`$2").replace(F,"$1`TMPRTL`$2").replace(I,"$1"+e).replace(R,"$1ltr").replace(z,"rtl").replace(j,"ltr").replace(x,"rtl")),n.transformEdgeInUrl&&(r=r.replace($,"$1"+e).replace(T,"$1left").replace(z,"right")),r=r.replace(M,"$1"+e).replace(E,"$1ltr").replace(z,"rtl").replace(_,"$1"+e).replace(O,"$1left").replace(z,"right").replace(L,"$1$2"+e).replace(D,"$1$2e-resize").replace(z,"w-resize").replace(H,Q).replace(W,ae).replace(U,ie).replace(G,ie).replace(Z,ae).replace(Y,re).replace(K,re).replace(V,"$1$2$3$8$5$6$7$4$9").replace(B,"$1$2$3$8$5$6$7$4$9").replace(P,J).replace(N,J),r=o.detokenize(s.detokenize(l.detokenize(r)))}}},e.exports?a.transform=function(e,a,i){var n;return"object"==typeof a?n=a:(n={},"boolean"==typeof a&&(n.transformDirInUrl=a),"boolean"==typeof i&&(n.transformEdgeInUrl=i)),r.transform(e,n)}:"undefined"!=typeof window&&(window.cssjanus=r)}(uu,uu.exports);var mu=y(uu.exports);function hu(e,a,r){switch(e.type){case"@import":case jd:case vd:return e.return=e.return||e.value;case zd:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===vd&&(e.children=e.value)}))}var i=du(Array.prototype.concat(e.children),hu);return Ad(i)?e.return=e.value+"{"+i+"}":""}function gu(e,a,r,i){if(e.type===xd||"@supports"===e.type||e.type===zd&&(!e.parent||"@media"===e.parent.type||e.parent.type===zd)){var n=mu.transform(hu(e));e.children=n?nu(n)[0].children:[],e.return=""}}Object.defineProperty(gu,"name",{value:"stylisRTLPlugin"});const bu=r.createContext(null),pu=Ks({key:"muirtl",stylisPlugins:[function(e,a,r,i){if(e.length>-1&&!e.return)switch(e.type){case jd:return void(e.return=cu(e.value,e.length,r));case xd:return du([Hd(e,{value:_d(e.value,"@","@"+wd)})],i);case zd:if(e.length)return function(e,a){return e.map(a).join("")}(r=e.props,(function(a){switch(Ed(a,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Wd(Hd(e,{props:[_d(a,/:(read-\w+)/,":-moz-$1")]})),Wd(Hd(e,{props:[a]})),Sd(e,{props:Id(r,i)});break;case"::placeholder":Wd(Hd(e,{props:[_d(a,/:(plac\w+)/,":"+wd+"input-$1")]})),Wd(Hd(e,{props:[_d(a,/:(plac\w+)/,":-moz-$1")]})),Wd(Hd(e,{props:[_d(a,/:(plac\w+)/,yd+"input-$1")]})),Wd(Hd(e,{props:[a]})),Sd(e,{props:Id(r,i)})}return""}))}},gu]}),ku=Ks({key:"mui"});exports.AnnualController=({body:r,currency:i,changeCurrencyEvent:n=()=>{},frequency:o,heading:s,setCurrency:l=()=>{},setFrequency:t=()=>{},togglePayAnnuallyEvent:c=()=>{}})=>{const d=a.useTheme(),u=ai(),m=[{value:"gbp",label:"£"},{value:"eur",label:"€"},{value:"usd",label:"$"}];return e.jsxs(a.Box,{sx:{alignItems:"center",backgroundColor:d.custom.palette.surface.default,borderRadius:d.custom.radius.round,boxShadow:d.custom.elevation.raised,display:"flex",gap:{sm:2,lg:4},mb:2,mt:4,px:{sm:2,lg:4},py:{sm:1,lg:2}},children:[e.jsxs(a.Box,{sx:{alignItems:"center",display:"flex",gap:1},children:[e.jsx(ul,{defaultChecked:!0,onChange:()=>(c(),void t("monthly"===o?"annual":"monthly")),role:"switch","aria-checked":"monthly"!==o,"aria-label":"Switch between monthly and annual billing",inputProps:{"aria-label":"Input for switch between monthly and annual billing"}}),e.jsxs(a.Stack,{sx:{alignItems:"flex-start",display:"flex"},children:[e.jsx(sn,{variation:"sm"===u||"md"===u?"md":"xxl",component:"p",children:s}),e.jsx(sn,{variation:"sm",component:"p",sx:{color:d.custom.palette.text.secondary},children:r})]})]}),e.jsx(go,{onChange:e=>{return a=e.target.value,n(a),void l(a);var a},selections:m,value:m.find((e=>e.value===i))?.value,sx:{minWidth:{sm:64,lg:72},height:{sm:ti,lg:ci}}})]})},exports.AuthContainerSurface=({children:r,headContent:i,sx:n,...o})=>{const s=a.useTheme();return e.jsxs(dl,{sx:{mx:[s.spacing(s.custom.margin.md),0],width:1,maxWidth:[512]},...o,children:[i&&e.jsx(a.Box,{sx:{width:"100%",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",pt:s.spacing(s.custom.margin.md),px:s.spacing(s.custom.margin.md)},children:i}),e.jsx(a.Box,{sx:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",pt:i?[s.spacing(s.custom.margin.md)]:[s.spacing(s.custom.padding.lg),s.spacing(s.custom.padding.xl)],px:[s.spacing(s.custom.padding.lg),s.spacing(s.custom.padding.xl)],pb:[s.spacing(s.custom.padding.lg),s.spacing(s.custom.padding.xl)]},children:r})]})},exports.AuthFormHeader=({logo:r,headerText:i,subText:n})=>{const o=a.useTheme();return e.jsxs(a.Stack,{gap:o.spacing(o.custom.margin.md),alignItems:"center",mb:o.spacing(o.custom.margin.lg),children:[!1===r?null:r||e.jsx(vi,{name:"loopsOfficial",sx:{width:{sm:79,md:79,lg:106},height:{sm:24,md:24,lg:32}}}),e.jsxs(a.Stack,{gap:o.spacing(o.custom.margin.md),children:[i&&e.jsx(sn,{variation:"sm",component:"h1",align:"center",weight:"bold",children:i}),function(){if(n)return"string"==typeof n?e.jsx(sn,{variation:"md",component:"p",align:"center",children:n}):n}()]})]})},exports.Avatar=({variation:r="lg",...i})=>{const{custom:n}=a.useTheme();switch(r){case"sm":return e.jsx(a.Avatar,{sx:{border:`1px solid ${n.palette.stroke.default}`,height:32,width:32},...i});case"lg":return e.jsx(a.Avatar,{sx:{border:`1px solid ${n.palette.stroke.default}`,height:48,width:48},...i})}},exports.AvatarGroup=({variation:r="primary",...i})=>{if("primary"===r)return e.jsx(a.AvatarGroup,{...i})},exports.Button=Cn,exports.CheckBoxGroup=Tn,exports.Checkbox=_n,exports.ColorBackgroundContainer=({sx:r,children:i,texture:n="noise1",gradient:o="tone1",...s})=>{const l=a.useTheme();return e.jsx(a.Container,{maxWidth:!1,disableGutters:!0,sx:fi({background:In(l,{texture:n,gradient:o}),height:"100%",p:[0,0,0]},!!r&&{...r}),...s,children:i})},exports.DEFAULT_MAX_INPUT_LENGTH=bd,exports.Differential=Gn,exports.DragAndDropRanking=yo,exports.FormControlLabel=Sn,exports.FormGenerator=md,exports.GridOverlay=({breakpoint:r})=>{const i=a.useTheme(),n=Array.from({length:6},((e,a)=>a));return r||(r=ai()),e.jsxs(a.Stack,{sx:{alignItems:"center",height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:({zIndex:e})=>e.tooltip},children:[e.jsx(a.Container,{sx:{background:i.custom.palette.red[300],display:"flex",flex:1,opacity:.3,position:"relative"},children:e.jsx(a.Box,{sx:{background:i.custom.palette.purple[300],display:"flex",flex:1},children:e.jsxs(a.Grid,{container:!0,spacing:2,children:[n.map((r=>e.jsx(a.Grid,{item:!0,sm:!0,sx:{display:{sm:"none",md:"block"}},children:e.jsx(a.Box,{sx:{background:i.custom.palette.green[300],height:"100%"}})},`grid-1-${r}`))),n.map((r=>e.jsx(a.Grid,{item:!0,sm:!0,sx:{display:{sm:"block"}},children:e.jsx(a.Box,{sx:{background:i.custom.palette.green[300],height:"100%"}})},`grid-2-${r}`)))]})})}),!!r&&e.jsx(a.Box,{sx:{backgroundColor:i.custom.palette.surface.default,borderRadius:i.spacing(i.custom.radius.md),bottom:16,filter:i.custom.elevationFilter.raised,display:"block",left:16,position:"fixed",px:2,py:1},children:e.jsx(sn,{variation:"sm",component:"p",weight:"bold",children:r})})]})},exports.Icon=vi,exports.IconButton=({icon:a,loading:r,sizing:i,...n})=>e.jsx(Mo,{...n,sizing:i,children:r?e.jsx(jn,{sizing:i}):a}),exports.IconButtonGroup=({ButtonGroupProps:a,children:r,...i})=>e.jsx(Oo,{...i,...a,children:r}),exports.InputLabel=Zn,exports.InputLabelHelp=Dn,exports.Likert=Do,exports.Link=Bo,exports.Loader=()=>e.jsx(a.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100dvh - 80px)"},children:e.jsx("img",{src:"https://useloops-public.s3.eu-west-2.amazonaws.com/public/landing/brand/loading-animation.gif",width:125})}),exports.Logo=a=>e.jsx("svg",{viewBox:"0 0 80 25",fill:"currentColor",...a,children:e.jsx("path",{d:"M8.72886 20.0975C7.43461 19.1995 7.16357 18.9302 7.16357 16.9549V0.988281H-0.000106812V1.28748L0.0165316 1.29764C1.3293 2.09875 1.92633 2.46309 1.92633 4.43011V16.9549C1.92633 18.9302 1.65553 19.1995 0.361043 20.0975V20.3965H8.72886V20.0975ZM14.5709 13.437C13.7868 9.01598 14.1045 7.0153 16.0905 6.66718C18.0767 6.31907 19.0631 8.09095 19.8472 12.512C20.6311 16.933 20.3137 18.9335 18.3275 19.2816C16.3415 19.6299 15.3548 17.8578 14.5709 13.437ZM9.11663 14.3934C9.93203 18.9911 14.141 21.3529 18.5575 20.5785C22.9743 19.8041 26.1169 16.1534 25.3015 11.5559C24.4861 6.95793 20.2773 4.5961 15.8605 5.3705C11.444 6.14467 8.30123 9.79541 9.11663 14.3934ZM33.3669 6.66718C31.381 7.0153 31.0633 9.01598 31.8474 13.437C32.6313 17.8578 33.618 19.6299 35.6039 19.2816C37.5901 18.9335 37.9076 16.933 37.1237 12.512C36.3396 8.09095 35.3531 6.31907 33.3669 6.66718ZM35.834 20.5785C31.4175 21.3529 27.2085 18.9911 26.3931 14.3934C25.5777 9.79541 28.7205 6.14467 33.137 5.3705C37.5538 4.5961 41.7625 6.95793 42.5779 11.5559C43.3933 16.1534 40.2508 19.8041 35.834 20.5785ZM52.9075 18.9002C51.0712 18.9002 49.6266 16.8353 49.6266 14.441V12.3162C49.6266 9.6524 50.9209 7.64737 52.9075 7.64737C54.9843 7.64737 56.0078 9.53285 56.0078 12.7351C56.0078 16.955 54.9542 18.9002 52.9075 18.9002ZM51.6733 24.5936C50.1696 23.7488 49.6266 23.4437 49.6266 21.5189V17.9125C50.4091 19.4689 51.9744 20.6958 54.5629 20.6958C58.476 20.6958 61.5762 17.763 61.5762 12.7052C61.5762 7.55754 58.5663 5.25308 55.1047 5.25308C52.2753 5.25308 50.3187 6.83937 49.6266 9.02405L49.5063 5.55228H42.5833V5.85171L42.5873 5.85427C43.8786 6.69033 44.3891 7.02081 44.3891 8.99411V21.5189C44.3891 23.4942 44.1183 23.7637 42.824 24.6613V24.9605H51.7937V24.6613L51.6733 24.5936ZM79.8954 18.9002C79.8954 19.8689 79.1055 20.6543 78.1313 20.6543C77.157 20.6543 76.3671 19.8689 76.3671 18.9002C76.3671 17.9315 77.157 17.1462 78.1313 17.1462C79.1055 17.1462 79.8954 17.9315 79.8954 18.9002ZM70.0692 10.2734C68.0387 9.67975 66.9044 9.34812 66.9044 8.15614C66.9044 7.16849 67.8074 6.71957 68.8309 6.71957C70.7874 6.71957 72.3224 7.827 74.0985 10.4007H74.5196V5.25306H74.2187L72.8642 6.24072C72.8031 6.21577 72.742 6.19075 72.681 6.16573C71.5696 5.71024 70.454 5.25306 68.7707 5.25306C65.55 5.25306 62.9916 7.22837 62.9916 10.1612C62.9916 12.795 64.2557 14.2912 68.8008 15.4585C70.4863 15.8775 71.6601 16.1767 71.6601 17.4636C71.6601 18.6608 70.4863 19.2293 69.0718 19.2293C66.9044 19.2293 65.3093 17.763 63.2021 14.9797H62.7509L63.0819 20.6661H63.413L64.6169 19.4688C65.5801 19.9477 67.0851 20.6958 69.1019 20.6958C72.9546 20.6958 75.6334 18.571 75.6334 15.5783C75.6334 12.4956 73.7672 11.3584 70.095 10.2809L70.0692 10.2734Z"})}),exports.Pill=({body:r,variation:i="default",weight:n="heavy"})=>{const o=a.useTheme();return e.jsx(a.Box,{sx:{borderRadius:o.spacing(o.custom.radius.md),px:1,py:.5,...(e=>{switch(e){case"peach":return{backgroundColor:o.custom.palette.peach[100],color:"heavy"===n?o.custom.palette.peach[1e3]:o.custom.palette.peach[800]};case"peachDark":return{backgroundColor:o.custom.palette.peach[800],color:o.custom.palette.peach[0]};case"purple":return{backgroundColor:o.custom.palette.purple[100],color:"heavy"===n?o.custom.palette.purple[1e3]:o.custom.palette.purple[800]};default:return{backgroundColor:o.custom.palette.neutral[100],color:"heavy"===n?o.custom.palette.neutral[1e3]:o.custom.palette.neutral[800]}}})(i),...(e=>"light"===e?{fontWeight:400}:{fontWeight:500,textTransform:"uppercase"})(n)},children:e.jsx(sn,{variation:"sm",component:"p",weight:"heavy"===n?"bold":"default",color:"inherit",children:r})})},exports.PlanFeatureTable=({currencySymbol:r,data:i,starterPrice:n,starterRespondentPrice:o,teamPrice:s,teamRespondentPrice:l,plusPrice:t,plusRespondentPrice:c,scalePrice:d,scaleRespondentPrice:u,variation:m="default"})=>{const h=a.useTheme();i||(i=Po);const g=Object.values(i.headings).map((({heading:e,pricing:a})=>({heading:e,pricing:a.replace("{{currencySymbol}}",r).replace("{{starterPrice}}",n).replace("{{teamPrice}}",s).replace("{{plusPrice}}",t).replace("{{scalePrice}}",d)}))),b=e=>e.replace("{{currencySymbol}}",r).replace("{{starterRespondentPrice}}",o||"").replace("{{teamRespondentPrice}}",l||"").replace("{{plusRespondentPrice}}",c||"").replace("{{scaleRespondentPrice}}",u||""),p=[...Object.values(i.rows).map(((e,a)=>({key:`pricing-table-features-${a}`,type:"row",name:{heading:e.heading,description:e.description},starter:b(e.starter),team:b(e.team),plus:b(e.plus),scale:b(e.scale)})))];return e.jsxs(a.Stack,{sx:{backgroundColor:h.custom.palette.surface.default,borderRadius:h.spacing(h.custom.radius.xl),boxShadow:h.custom.elevation.raised,display:"flex",gap:2,pb:{sm:2,lg:4},px:{sm:2,lg:4},minWidth:{sm:680}},children:[e.jsxs(a.Box,{sx:{display:"flex",py:2,px:1,justifyContent:"space-between"},children:[e.jsx(a.Box,{sx:{width:160}}),g.map((({heading:r,pricing:i})=>e.jsxs(a.Stack,{sx:{alignItems:"center",display:"flex",justifyContent:"center",width:122},children:[e.jsx(sn,{variation:"platform"===m?"lg":"xxl",component:"p",weight:"bold",children:r}),e.jsx(sn,{variation:"platform"===m?"sm":"md",component:"p",sx:{color:h.custom.palette.text.secondary},children:i})]},r)))]}),p.map((r=>e.jsxs(a.Box,{sx:{display:"flex",justifyContent:"space-between",p:1,"&:nth-of-type(odd)":{backgroundColor:h.custom.palette.surface.sunken}},children:[e.jsx(a.Box,{sx:{display:"flex",alignItems:"center",width:160},children:e.jsxs(a.Box,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",flex:1,gap:1},children:[r.name.description&&e.jsx(pl,{message:r.name.description,children:e.jsx(a.Box,{sx:{alignItems:"center",color:h.custom.palette.icon.secondary,display:"flex"},children:e.jsx(vi,{name:"info",size:24})})}),e.jsx(sn,{variation:"platform"===m?"md":"lg",component:"p",children:r.name.heading})]})}),e.jsx(No,{text:r.starter}),e.jsx(No,{text:r.team}),e.jsx(No,{text:r.plus}),e.jsx(No,{text:r.scale})]},r.key)))]})},exports.PlanTierCard=({amount:i,billingType:n,body:o,ctaEvent:s=()=>{},ctaLink:l="#",ctaTarget:t="_self",ctaText:c,ctaVariation:d="primary",currencySymbol:u,currentPlan:m,features:h=[],freeTrialLength:g,freeTrialText:b,frequency:p,heading:k,label:y,largestHeaderHeight:f=0,perMonth:w,setLargestHeaderHeight:v=()=>{},variation:z="default"})=>{const j=a.useTheme(),x=ai(),{width:q}=Ho(),C=r.useRef(null),[S,M]=r.useState("sm");return r.useEffect((()=>{r.startTransition((()=>{M(x),x!==S&&v(0),C.current&&C.current.offsetHeight>f&&v(C.current.offsetHeight)}))}),[x,S,q]),e.jsxs(a.Stack,{sx:{display:"flex",flex:1,position:"relative"},children:[e.jsx(a.Stack,{sx:{alignItems:"center",backgroundColor:j.custom.palette.icon.primary,borderTopLeftRadius:j.spacing(j.custom.radius.lg),borderTopRightRadius:j.spacing(j.custom.radius.lg),boxShadow:j.custom.elevation.overlay,color:j.custom.palette.text.primaryInverted,justifyContent:"center",p:{sm:1,lg:2},textTransform:"uppercase",opacity:y?1:0,display:{sm:y?"flex":"none",md:"flex"}},children:e.jsx(sn,{variation:"md",component:"p",weight:"bold",sx:{color:j.custom.palette.white},children:y||"&nbsp;"})}),e.jsxs(a.Stack,{sx:{backgroundColor:j.custom.palette.surface.default,borderBottomLeftRadius:j.spacing(j.custom.radius.lg),borderBottomRightRadius:j.spacing(j.custom.radius.lg),borderTopLeftRadius:y?0:j.spacing(j.custom.radius.lg),borderTopRightRadius:y?0:j.spacing(j.custom.radius.lg),boxShadow:j.custom.elevation.overlay,display:"flex",flex:1},children:[e.jsxs(a.Stack,{sx:{display:"flex",gap:"sm"===x||"md"===x?1:2,textAlign:"center",minHeight:{sm:"none",md:f},px:2,py:{sm:2,lg:4}},ref:C,children:[e.jsx(sn,{variation:"sm"===x?"xxl":"platform"===z?"md":"lg",component:"h2",weight:"bold",children:k}),e.jsx(sn,{variation:"sm"===x?"md":"platform"===z?"md"===x?"sm":"md":"md"===x?"md":"lg",component:"p",sx:{color:j.custom.palette.text.secondary},children:o})]}),e.jsxs(a.Stack,{sx:{alignItems:"center",display:"flex",gap:2,minHeight:{sm:"none",md:168,lg:"platform"===z?184:240,xl:"platform"===z?184:226},px:2,py:{sm:2,md:2,lg:"platform"===z?2:6}},children:[e.jsxs(a.Box,{sx:{alignItems:"flex-end",display:"flex",gap:.5,justifyContent:"center"},children:[e.jsx(sn,{variation:"md"===x?"sm":"xxl",component:"p",weight:"bold",sx:{lineHeight:1,marginBottom:-.15,marginRight:-.4},children:u}),e.jsx(sn,{variation:"xxl",component:"p",weight:"bold",sx:{fontSize:{sm:48,md:26,lg:48},lineHeight:.8},children:i}),w&&e.jsx(sn,{variation:"sm",component:"p",sx:{color:j.custom.palette.text.secondary,lineHeight:1,marginLeft:-.5},children:w})]}),g&&b&&e.jsxs(a.Box,{sx:{alignItems:"center",backgroundColor:j.custom.palette.yellow[300],borderRadius:j.custom.radius.round,boxShadow:j.custom.elevation.raised,display:"flex",gap:{sm:.5,md:1},px:2,py:1},children:[e.jsx(vi,{name:"gift",size:24}),e.jsxs(a.Box,{sx:{display:"flex",flexDirection:{sm:"row",md:"column",lg:"row"},gap:{sm:.5,md:0,lg:.5}},children:[e.jsx(sn,{variation:"md",component:"p",weight:"bold",sx:{lineHeight:1},children:g}),e.jsx(sn,{variation:"md",component:"p",sx:{lineHeight:1},children:b})]})]}),n&&e.jsx(sn,{variation:"sm",component:"p",sx:{color:j.custom.palette.text.placeholder},children:n})]}),e.jsxs(a.Stack,{sx:{display:"flex",flexDirection:{sm:"column-reverse",md:"column"}},children:[e.jsx(a.Box,{sx:{py:{sm:2,md:0},px:{sm:2,lg:4}},children:e.jsx(Bo,{href:l,title:c,target:t,onClick:()=>{k&&s(k)},sx:{"&:hover":{cursor:m?"default":"pointer"}},children:e.jsx(Cn,{fullWidth:!0,variation:d,sizing:"lg",disabled:m,children:c})})}),h?.length&&e.jsx(a.Stack,{sx:{alignItems:"center",gap:.5,px:{sm:2,lg:4},py:{sm:2,md:4,lg:"platform"===z?4:6}},children:h.map(((r,i)=>e.jsxs(a.Box,{sx:{alignItems:"center",display:"flex",gap:1,maxWidth:200,width:"100%"},children:[e.jsx(vi,{name:"positive",size:24}),e.jsx(sn,{variation:"md",component:"p",children:r})]},`${k}-feature-${i}`)))})]})]})]})},exports.PlanTierCardScale=({body:r,ctaEvent:i=()=>{},ctaLink:n="",ctaTarget:o="_blank",ctaText:s,currencySymbol:l,heading:t,postText:c,preText:d,amount:u})=>{const m=a.useTheme();return e.jsxs(a.Box,{sx:{backgroundColor:m.custom.palette.purple[0],borderRadius:m.spacing(m.custom.radius.lg),display:"flex",flexDirection:{sm:"column",md:"row"},textAlign:{sm:"center",md:"left"},boxShadow:m.custom.elevation.overlay,flex:1,gap:{sm:4,md:2},p:{sm:2,lg:4}},children:[e.jsxs(a.Stack,{sx:{flex:1,gap:2,justifyContent:"center"},children:[e.jsx(sn,{variation:"md",component:"h2",sx:{fontWeight:500},children:t}),e.jsx(sn,{variation:"md",component:"p",sx:{color:m.custom.palette.text.secondary},children:r})]}),e.jsxs(a.Stack,{sx:{flex:1,gap:{sm:4,md:2},justifyContent:"center",maxWidth:{sm:"none",md:180,lg:320},p:{sm:0,md:2,lg:4}},children:[e.jsxs(a.Box,{sx:{alignItems:"flex-end",display:"flex",justifyContent:"center"},children:[e.jsx(sn,{variation:"md",component:"p",sx:{color:m.custom.palette.text.placeholder,pr:.5},children:d}),e.jsxs(a.Box,{sx:{alignItems:"flex-end",display:"flex"},children:[e.jsx(sn,{variation:"xxl",component:"p",sx:{fontWeight:500,lineHeight:1.2},children:l}),e.jsx(sn,{variation:"xxl",component:"p",sx:{fontWeight:500,fontSize:{sm:"1.6rem",lg:"2.2rem"},lineHeight:{sm:1.15,lg:1}},children:u})]}),e.jsx(sn,{variation:"md",component:"p",sx:{color:m.custom.palette.text.placeholder,pl:.1},children:c})]}),e.jsx(Bo,{href:n,title:s,target:o,onClick:()=>{t&&i(t)},children:e.jsx(Cn,{fullWidth:!0,variation:"outlined",sizing:"lg",children:s})})]})]})},exports.Portal=a=>{const[i,n]=r.useState(null),o=i?.contentWindow?.document?.body,s=Ks({key:"css",container:i?.contentWindow?.document?.head,prepend:!0});return e.jsx(Js,{ref:n,children:o&&t.createPortal(e.jsx(c.CacheProvider,{value:s,children:a.children}),o)})},exports.PoweredByWatermarkLogo=()=>e.jsxs(a.Stack,{gap:.5,flexDirection:"row",children:[e.jsx(a.SvgIcon,{sx:{width:67,height:12},viewBox:"0 0 67 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2.09034 4.64868H4.09536C5.65956 4.64868 6.41322 4.00878 6.41322 2.84274C6.41322 1.69092 5.65956 1.05102 4.09536 1.05102H2.09034V4.64868ZM2.09034 5.6583V9H0.86742V0.0413991H4.1238C6.34212 0.0413991 7.6077 1.09368 7.6077 2.84274C7.6077 4.60602 6.34212 5.6583 4.1238 5.6583H2.09034ZM9.27266 5.90004C9.27266 7.27938 9.96944 8.26056 11.2208 8.26056C12.4864 8.26056 13.1974 7.27938 13.1974 5.90004C13.1974 4.50648 12.4864 3.53952 11.2208 3.53952C9.96944 3.53952 9.27266 4.50648 9.27266 5.90004ZM14.4061 5.90004C14.4061 7.83396 13.0552 9.17064 11.2208 9.17064C9.40064 9.17064 8.06396 7.83396 8.06396 5.90004C8.06396 3.96612 9.40064 2.61522 11.2208 2.61522C13.0552 2.61522 14.4061 3.96612 14.4061 5.90004ZM19.9082 2.78586L21.2449 7.49268H21.3018L22.738 2.78586H23.8329L21.8564 9H20.7188L19.3963 4.36428H19.3394L18.0312 9H16.8936L14.9028 2.78586H16.083L17.5477 7.49268H17.6046L18.9128 2.78586H19.9082ZM29.4445 6.78168L30.4257 6.89544C30.1271 8.31744 29.0748 9.17064 27.5248 9.17064C25.6762 9.17064 24.3253 7.91928 24.3253 5.98536C24.3253 4.023 25.6762 2.61522 27.4679 2.61522C29.4445 2.61522 30.4541 4.023 30.4541 5.71518V6.17022H25.5056C25.5624 7.40736 26.4299 8.24634 27.539 8.24634C28.5771 8.24634 29.2028 7.74864 29.4445 6.78168ZM25.534 5.445H29.2454C29.217 4.43538 28.634 3.51108 27.4679 3.51108C26.3445 3.51108 25.662 4.40694 25.534 5.445ZM35.5059 2.89962L35.3921 3.96612C35.0509 3.78126 34.8091 3.71016 34.4252 3.71016C33.5293 3.71016 32.861 4.5207 32.861 5.71518V9H31.6807V2.78586H32.861V4.05144C33.0885 3.34044 33.7284 2.61522 34.6243 2.61522C35.0082 2.61522 35.2926 2.71476 35.5059 2.89962ZM40.9288 6.78168L41.91 6.89544C41.6114 8.31744 40.5591 9.17064 39.0091 9.17064C37.1605 9.17064 35.8096 7.91928 35.8096 5.98536C35.8096 4.023 37.1605 2.61522 38.9522 2.61522C40.9288 2.61522 41.9384 4.023 41.9384 5.71518V6.17022H36.9899C37.0468 7.40736 37.9142 8.24634 39.0233 8.24634C40.0614 8.24634 40.6871 7.74864 40.9288 6.78168ZM37.0183 5.445H40.7297C40.7013 4.43538 40.1183 3.51108 38.9522 3.51108C37.8289 3.51108 37.1463 4.40694 37.0183 5.445ZM47.8993 6.07068V5.71518C47.8993 4.36428 47.0461 3.56796 45.9227 3.56796C44.6998 3.56796 44.0172 4.47804 44.0172 5.90004C44.0172 7.32204 44.6998 8.23212 45.9227 8.23212C47.0461 8.23212 47.8993 7.4358 47.8993 6.07068ZM47.8851 9V7.70598C47.6007 8.47386 46.8186 9.17064 45.6525 9.17064C43.8039 9.17064 42.8085 7.73442 42.8085 5.90004C42.8085 4.06566 43.8039 2.61522 45.6525 2.61522C46.8186 2.61522 47.6007 3.32622 47.8851 4.0941V0.0413991H49.0653V9H47.8851ZM54.3847 5.71518V6.07068C54.3847 7.4358 55.2521 8.23212 56.3755 8.23212C57.5984 8.23212 58.2668 7.32204 58.2668 5.90004C58.2668 4.47804 57.5984 3.56796 56.3755 3.56796C55.2521 3.56796 54.3847 4.36428 54.3847 5.71518ZM54.3847 7.70598L54.1288 9H53.2329V0.0413991H54.4132V4.0941C54.6833 3.32622 55.4797 2.61522 56.6457 2.61522C58.4801 2.61522 59.4897 4.06566 59.4897 5.90004C59.4897 7.73442 58.4801 9.17064 56.6315 9.17064C55.4797 9.17064 54.6691 8.48808 54.3847 7.70598ZM62.6822 11.389H61.5304L62.54 8.98578L59.9235 2.78586H61.1607L63.1372 7.56378H63.1941L65.0996 2.78586H66.2656L62.6822 11.389Z",fill:"#473F5C"})}),e.jsxs(a.SvgIcon,{sx:{width:40,height:12},viewBox:"0 0 40 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("g",{id:"Brand/Wordmark",clipPath:"url(#clip0_900_1816)",children:e.jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M4.3189 9.56522C3.67851 9.11556 3.54429 8.98169 3.54429 7.99199V0H0V0.149886L0.00580287 0.153463C0.656931 0.554852 0.953183 0.737477 0.953183 1.72311V7.99199C0.953183 8.98169 0.818964 9.11556 0.17858 9.56522V9.7151H4.3189V9.56522ZM4.51113 6.71053C4.91378 9.01144 6.99646 10.1934 9.18264 9.80664C11.3677 9.41876 12.9226 7.58467 12.5199 5.28947C12.1173 2.99428 10.0346 1.80549 7.84841 2.19336C5.66223 2.58124 4.10847 4.40961 4.51113 6.71053ZM7.2103 6.23112C6.8247 4.01831 6.98053 3.01716 7.96215 2.84325C8.94377 2.66819 9.43515 3.55263 9.82074 5.76545C10.2063 7.97826 10.0516 8.97483 9.06889 9.15332C8.08613 9.33181 7.59589 8.44394 7.2103 6.23112ZM17.7306 9.80664C15.5455 10.1934 13.4629 9.01144 13.0591 6.71053C12.6553 4.40961 14.2102 2.58124 16.3963 2.19336C18.5825 1.80549 20.6641 2.99428 21.0678 5.28947C21.4716 7.58467 19.9156 9.41876 17.7306 9.80664ZM16.5101 2.84325C15.5273 3.01716 15.3726 4.01831 15.7582 6.23112C16.1438 8.44394 16.6341 9.33181 17.6168 9.15675C18.5996 8.98169 18.7543 7.98169 18.3687 5.76888C17.9831 3.55606 17.4928 2.66819 16.5101 2.84325ZM25.5683 11.8168C24.8234 11.3931 24.5553 11.2406 24.5553 10.2769L24.5575 8.4794C24.9443 9.25858 25.7189 9.873 26.9997 9.873C28.9356 9.873 30.47 8.40046 30.47 5.86842C30.47 3.29176 28.9743 2.13844 27.2681 2.13844C25.8679 2.13844 24.8988 2.93249 24.5575 4.02631L24.4973 2.28833H21.0724V2.43135L21.0731 2.43181C21.713 2.85024 21.9653 3.01524 21.9653 4.00458V10.2769C21.9653 11.2654 21.8322 11.4005 21.1907 11.8501V12H25.6267V11.8501L25.5683 11.8168ZM26.1784 8.9611C25.2696 8.9611 24.5553 7.92792 24.5553 6.72998V5.66247C24.5553 4.32952 25.1957 3.32494 26.1784 3.32494C27.2055 3.32494 27.7117 4.27002 27.7117 5.87185C27.7117 7.98741 27.1907 8.9611 26.1784 8.9611ZM38.6585 9.84325C39.1403 9.84325 39.5309 9.45034 39.5309 8.96567C39.5309 8.481 39.1403 8.0881 38.6585 8.0881C38.1767 8.0881 37.7861 8.481 37.7861 8.96567C37.7861 9.45034 38.1767 9.84325 38.6585 9.84325ZM34.6585 4.64621C33.661 4.35019 33.0998 4.18365 33.0998 3.5881C33.0998 3.08924 33.5548 2.86842 34.0552 2.86842C35.0244 2.86842 35.783 3.42334 36.6623 4.71167H36.8704V2.13501H36.7214L36.0515 2.62929C36.0223 2.61721 35.9931 2.6051 35.9639 2.59299C35.4126 2.36413 34.8607 2.13501 34.0257 2.13501C32.4321 2.13501 31.1661 3.12357 31.1661 4.59153C31.1661 5.90961 31.7929 6.65904 34.0416 7.24371C34.8765 7.45309 35.4566 7.60297 35.4566 8.24714C35.4566 8.84668 34.8765 9.13043 34.1758 9.13043C33.0998 9.13043 32.3138 8.39702 31.2799 7.00343H31.0524L31.2094 9.85011H31.3731L31.968 9.25057C32.4446 9.49085 33.1897 9.86499 34.1872 9.86499C36.0936 9.86499 37.4198 8.80091 37.4198 7.3032C37.4198 5.75973 36.4985 5.19107 34.6786 4.65217L34.6585 4.64621Z",fill:"#473F5C"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_900_1816",children:e.jsx("rect",{width:"39.5321",height:"12",fill:"white"})})})]})]}),exports.Progress=jn,exports.Radio=Nn,exports.RadioGroup=Xs,exports.Select=go,exports.Slider=il,exports.SortableList=io,exports.StarRating=ol,exports.Surface=dl,exports.Switch=ul,exports.TextArea=hl,exports.TextBarDivider=({typographyProps:r,text:i,sx:n})=>{const o=a.useTheme();return e.jsx(a.Box,{sx:fi(n,{width:"100%",position:"relative",display:"flex",gap:4,my:o.spacing(o.custom.margin.md),"&:before":{content:'""',width:"100%",background:o.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"},"&:after":{content:'""',width:"100%",background:o.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"}}),children:e.jsx(sn,{align:"center",variation:"sm",component:"p",...r,children:i})})},exports.TextField=$n,exports.ThemeProvider=({mode:i="light",screenSize:n="lg",direction:o="ltr",children:s})=>{const l=((e="light",i="lg",n="ltr")=>{const{width:o}=Ho(),[s,l]=r.useState(e),[t,c]=r.useState(i),[d,u]=r.useState(!1),[m,h]=r.useState(kd(s,t,n)),[g,b]=r.useState(kd("light"===s?"dark":"light",t,n)),[p,k]=r.useState("");r.useEffect((()=>{r.startTransition((()=>{c(o&&o<ri.lg?"sm":"lg")}))}),[o]),r.useEffect((()=>{r.startTransition((()=>{h(kd(s,t,n)),b(kd("light"===s?"dark":"light",t,n))}))}),[s,t]);const y=a.useMediaQuery(m.breakpoints.only("sm"),{noSsr:!0}),f=a.useMediaQuery(m.breakpoints.only("md"),{noSsr:!0}),w=a.useMediaQuery(m.breakpoints.between("lg","xl"),{noSsr:!0}),v=a.useMediaQuery(m.breakpoints.up("xl"),{noSsr:!0});return r.useEffect((()=>{r.startTransition((()=>{y&&k("sm"),f&&k("md"),w&&k("lg"),v&&k("xl")}))}),[y,f,w,v]),{breakpoint:p,darkTheme:g,gridOverlayVisible:d,mode:s,theme:m,toggleGridOverlay:()=>{r.startTransition((()=>{u((e=>!e))}))},toggleMode:e=>{r.startTransition((()=>{if(e)return l(e);l((e=>"light"===e?"dark":"light"))}))}}})(i,n,o);return r.useEffect((()=>{"rtl"===o&&(document.dir="rtl")}),[]),e.jsx(bu.Provider,{value:l,children:e.jsx(c.CacheProvider,{value:"rtl"===o?pu:ku,children:e.jsxs(ei,{theme:l.theme,children:[e.jsx(a.CssBaseline,{}),s]})})})},exports.TickGroup=({heading:r,ticks:i})=>(a.useTheme(),e.jsxs(a.Stack,{sx:{display:"flex",gap:{sm:2,lg:4},py:{sm:2,lg:4}},children:[e.jsx(sn,{variation:"xl",component:"p",sx:{textAlign:"center"},children:r}),e.jsx(a.Box,{sx:{columnGap:4,display:"flex",flex:1,flexWrap:"wrap",justifyContent:"center",rowGap:2},children:i.map(((i,n)=>e.jsxs(a.Box,{sx:{display:"flex",alignItems:"center",gap:1,px:{sm:0,lg:2}},children:[e.jsx(vi,{name:"positive",size:32}),e.jsx(sn,{variation:"xxl",component:"p",children:i})]},`tick-group-${r}-${n}`)))})]})),exports.Toast=({buttons:r,message:i,status:n="neutral",variation:o="sm"})=>{const s=a.useTheme();return e.jsx(a.Stack,{sx:{backgroundColor:s.custom.palette.surface.overlay,borderRadius:s.spacing(s.custom.radius.lg),boxShadow:s.custom.elevation.overlay,color:s.custom.palette.text.primaryInverted,display:"flex",flex:1,gap:1,p:2},children:e.jsxs(a.Box,{sx:{display:"flex",flex:1,flexDirection:"sm"===o?"row":"column",gap:2},children:[e.jsxs(a.Box,{sx:{display:"flex",flex:1,gap:1},children:["neutral"!==n&&e.jsx(gl,{status:n}),e.jsx(a.Box,{sx:{display:"flex"},children:e.jsx(sn,{variation:"md",component:"p",clamp:"sm"===o?3:0,sx:{px:1,pt:.5},children:i})})]}),r&&e.jsx(a.Box,{sx:{alignItems:"center",display:"flex",gap:2,justifyContent:"flex-end"},children:r})]})})},exports.Tooltip=pl,exports.Typography=sn,exports.chooseArticle=hd,exports.defaultInputValidation=gd,exports.emailValidation={pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,30}$/i,message:"Please enter a valid email"}},exports.passwordValidation=e=>({minLength:{value:e||8,message:`Password must have at least ${e||8} characters`},equal:{value:"password",message:"You cannot choose 'password' as your password"}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useloops/design-system",
3
- "version": "1.4.32",
3
+ "version": "1.4.34",
4
4
  "description": "The official React based Loops design system",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -92,7 +92,6 @@
92
92
  "eslint-plugin-prettier": "^5.2.1",
93
93
  "eslint-plugin-react": "^7.37.2",
94
94
  "eslint-plugin-storybook": "^0.11.0",
95
- "express": "^4.21.1",
96
95
  "gsap": "^3.12.5",
97
96
  "husky": "^9.1.6",
98
97
  "jest": "^29.7.0",
@@ -142,6 +141,7 @@
142
141
  "react-dom": "^18.3.1"
143
142
  },
144
143
  "dependencies": {
144
+ "express": "^4.21.1",
145
145
  "stylis": "^4.3.4",
146
146
  "stylis-plugin-rtl": "^2.1.1"
147
147
  }