Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@plasmicapp/react-web

Package Overview
Dependencies
Maintainers
1
Versions
362
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plasmicapp/react-web - npm Package Compare versions

Comparing version 0.2.108 to 0.2.109

skinny/dist/ssr-b1615b80.js

2

dist/all.d.ts

@@ -98,2 +98,4 @@ import * as React from 'react';

importPath: string;
isRepeatable: boolean;
styleSections: boolean;
props: {

@@ -100,0 +102,0 @@ title: {

2

dist/react-web.cjs.production.min.js

@@ -1,2 +0,2 @@

"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("classnames")),r=require("react"),n=e(r),a=require("react-dom"),i=e(a),o=require("@react-aria/ssr"),s=require("@react-aria/focus"),l=require("@react-aria/checkbox"),u=require("@react-aria/visually-hidden"),c=require("@react-stately/toggle"),p=require("@react-aria/menu"),d=require("@react-stately/tree"),f=require("@react-stately/collections"),v=require("@react-aria/separator"),m=require("@react-stately/menu"),h=require("@react-aria/interactions"),y=require("@react-aria/select"),g=require("@react-aria/listbox"),b=require("@react-stately/select"),P=require("@react-aria/switch"),w=require("@react-aria/overlays"),S=e(require("dlv")),E=require("dset");function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function V(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return O(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function k(e){return null!=e}function M(e){if(0===Object.keys(e).length)return e;for(var t={},r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];for(var i=0,o=n;i<o.length;i++){var s=o[i];s in e&&(t[s]=e[s])}return t}function I(e){if(0===Object.keys(e).length)return e;for(var t={},r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];for(var i=0,o=Object.keys(e);i<o.length;i++){var s=o[i];n.includes(s)||(t[s]=e[s])}return t}function F(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0!==t.length)return function(e){for(var r,n=e,a=C(t);!(r=a()).done;)n=(0,r.value)(n);return n}}function j(e,t){for(var r,n={},a=C(e);!(r=a()).done;){var i=r.value,o=t(i);o in n?n[o].push(i):n[o]=[i]}return n}function A(e,t){var r={};for(var n in e)r[n]=t(e[n]);return r}var T="undefined"!=typeof window,R=Symbol("NONE"),D=T?n.useLayoutEffect:n.useEffect;function N(e,t,r){return Array.isArray(r)?n.createElement.apply(n,[e,t].concat(r)):r||"children"in t?n.createElement(e,t,r):n.createElement(e,t)}function W(e){return n.isValidElement(t=e)||function(e){return"string"==typeof e||"number"==typeof e}(t)?[e]:Array.isArray(e)?e.flatMap(W):[];var t}function _(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(r.every((function(e){return 0===Object.keys(e).length})))return e;for(var a=x({},e),i=0,o=r;i<o.length;i++)for(var s=o[i],l=0,u=Object.keys(s);l<u.length;l++){var c=u[l];a[c]=H(c,a[c],s[c])}return a}function q(e,t){e&&("function"==typeof e?e(t):Object.isFrozen(e)||(e.current=t))}function K(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r,n=C(t);!(r=n()).done;)q(r.value,e)}}function H(e,r,n){return r===R||n===R?null:null==r?n:null==n?r:"className"===e?t(r,n):"style"===e?x({},r,n):"ref"===e?K(r,n):typeof r!=typeof n?n:e.startsWith("on")&&"function"==typeof r?function(){var e;return"function"==typeof r&&(e=r.apply(void 0,arguments)),"function"==typeof n&&(e=n.apply(void 0,arguments)),e}:n}function U(e,t,r,n){var a=t.children,i=V(t,["children"]),o=B(a,null!=r&&r);return N(e,x({ref:n},i),o)}function L(e,t){var r=e.as,n=e.hasGap;return U(null!=r?r:"div",V(e,["as","hasGap"]),n,t)}var z=function(e){return r.forwardRef((function(t,r){var n=t.hasGap,a=V(t,["hasGap"]);return U(e,a,n,r)}))},G=Object.assign(r.forwardRef(L),{div:z("div"),a:z("a"),button:z("button"),h1:z("h1"),h2:z("h2"),h3:z("h3"),h4:z("h4"),h5:z("h5"),h6:z("h6"),label:z("label"),form:z("form"),section:z("section"),head:z("head"),main:z("main"),nav:z("nav")});function B(e,t){var n=t?"__wab_flex-container":"__wab_passthrough";return e?Array.isArray(e)?r.createElement.apply(r,["div",{className:n}].concat(e)):r.createElement("div",{className:n},e):null}function J(e,t,r,a){if(!e||0===Object.keys(e).length)return N(t,r,r.children);var i=Z(e),o=X(r,i.props);if("render"===i.type)return i.render(o,t);var s=t;"as"===i.type&&i.as&&(t===G?o.as=i.as:s=i.as);var l=o.children;i.wrapChildren&&(l=i.wrapChildren(function(e){return Array.isArray(e)?1===e.length?e[0]:n.createElement.apply(n,[n.Fragment,{}].concat(e)):e}(l))),a&&(l=B(l,!0));var u=N(s,o,l);return i.wrap&&(u=i.wrap(u)),u}var Y=new Map;function $(e,t){var r,n=t["data-plasmic-override"],a=t["data-plasmic-wrap-flex-child"],i=null!=(r=t["data-plasmic-trigger-props"])?r:[];delete t["data-plasmic-override"],delete t["data-plasmic-wrap-flex-child"],delete t["data-plasmic-trigger-props"];for(var o=arguments.length,s=new Array(o>2?o-2:0),l=2;l<o;l++)s[l-2]=arguments[l];return J(n,e,_.apply(void 0,[t,0===s.length?{}:{children:1===s.length?s[0]:s}].concat(i)),a)}var Q=Symbol("UNSET");function X(e,t){if(!t)return e;for(var r=x({},e),n=0,a=Object.keys(t);n<a.length;n++){var i=a[n],o=e[i],s=t[i];s===Q?delete r[i]:(null!=s||"className"===i||"style"===i||i.startsWith("on")&&"function"==typeof o||(s=R),r[i]=H(i,o,s))}return r}function Z(e){if(!e)return{type:"default",props:{}};if(function(e){return"string"==typeof e||"number"==typeof e||n.isValidElement(e)}(e))return{type:"default",props:{children:e}};if("object"==typeof e)return"as"in e?x({},e,{props:e.props||{},type:"as"}):"render"in e?x({},e,{type:"render"}):"props"in e?x({},e,{props:e.props||{},type:"default"}):(t=Object.keys(e),r=["wrap","wrapChildren"],t.every((function(e){return r.includes(e)}))?x({},e,{props:{},type:"default"}):{type:"default",props:e});if("function"==typeof e)return{type:"render",render:e};var t,r;throw new Error("Unexpected override: "+e)}function ee(e,t){if(!t)return e;for(var r={},n=0,a=Array.from(new Set([].concat(Object.keys(e),Object.keys(t))));n<a.length;n++){var i=a[n];r[i]=te(e[i],t[i])}return r}function te(e,t){var r,n;if(!e)return t;if(!t)return e;var a=Z(e),i=Z(t),o=F.apply(void 0,[a.wrap,i.wrap].filter(k)),s=F.apply(void 0,[a.wrapChildren,i.wrapChildren].filter(k)),l=X(null!=(r=a.props)?r:{},i.props);if("render"===i.type)return{render:i.render,props:l,wrap:o,wrapChildren:s};if("render"===a.type)return{render:a.render,props:l,wrap:o,wrapChildren:s};var u=null!=(n="as"===i.type?i.as:void 0)?n:"as"===a.type?a.as:void 0;return x({props:l,wrap:o,wrapChildren:s},u?{as:u}:{})}var re=r.createContext(void 0),ne=[640,750,828,1080,1200,1920,2048,3840],ae=[].concat([16,32,48,64,96,128,256,384],ne),ie=n.forwardRef((function(e,r){var a=e.src,i=e.className,o=e.displayWidth,s=e.displayHeight,l=e.displayMinWidth,u=e.displayMinHeight,c=e.displayMaxWidth,p=e.displayMaxHeight,d=e.quality,f=e.loader,v=e.imgRef,m=e.style,h=e.loading,y=V(e,["src","className","displayWidth","displayHeight","displayMinWidth","displayMinHeight","displayMaxWidth","displayMaxHeight","quality","loader","imgRef","style","loading"]),g=Object.assign({},y,{loading:null!=h?h:"lazy"}),b="string"!=typeof a&&a?a:{fullWidth:void 0,fullHeight:void 0,aspectRatio:void 0},P=b.fullWidth,w=b.fullHeight,S=b.aspectRatio,E=a?"string"==typeof a?a:"string"==typeof a.src?a.src:a.src.src:"";if(null==w||null==P)return n.createElement("img",Object.assign({src:E,className:i,style:m},g,{loading:h,ref:K(v,r)}));!se(E)||null!=s&&"auto"!==s||null!=o&&"auto"!==o||(o="100%");var O=o;P&&w&&(!o||"auto"===o)&&ue(s)&&(se(E)||(O=ue(s)*P/w));var C=P,k=w;S&&isFinite(S)&&se(E)&&(C=oe,k=Math.round(C/S));var I=function(e,t,r){var n=null==r?void 0:r.minWidth,a=ue(e),i=ue(n);if(null!=a&&(!n||null!=i))return{widthDescs:[{width:le(Math.max(a,null!=i?i:0),t),desc:"1x"},{width:le(2*Math.max(a,null!=i?i:0),t),desc:"2x"}],sizes:void 0};var o=ne.filter((function(e){return!t||e<t}));return t&&0===o.length?{widthDescs:[{width:le(t,t),desc:"1x"}],sizes:void 0}:{widthDescs:o.map((function(e){return{width:le(e,t),desc:e+"w"}})),sizes:"100vw"}}(O,P,{minWidth:l}),F=I.sizes,j=I.widthDescs,A=function(e){return null==e?void 0:"plasmic"===e?ce:e}(f),T='<svg width="'+C+'" height="'+k+'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>',R="undefined"==typeof window?Buffer.from(T).toString("base64"):window.btoa(T),D=x({},m||{}),N=x({},M(m||{},"objectFit","objectPosition"));return null!=o&&"auto"!==o?N.width="100%":(N.width=o,D.width="auto",l&&(N.minWidth="100%"),null!=c&&"none"!==c&&(N.maxWidth="100%")),null!=s&&"auto"!==s?N.height="100%":(N.height=s,D.height="auto",u&&(N.minHeight="100%"),null!=p&&"none"!==p&&(N.maxHeight="100%")),n.createElement("div",{className:t(i,"__wab_img-wrapper"),ref:r,style:D},n.createElement("img",{alt:"","aria-hidden":!0,className:"__wab_img-spacer-svg",src:"data:image/svg+xml;base64,"+R,style:N}),function(e){var t=e.imageLoader,r=e.widthDescs,a=e.src,i=e.quality,o=e.style,s=e.className,l=e.sizes,u=e.imgProps,c=e.ref;return n.createElement("picture",{className:"__wab_picture"},t&&t.supportsUrl(a)&&n.createElement("source",{type:"image/webp",srcSet:r.map((function(e){return t.transformUrl({src:a,quality:i,width:e.width,format:"webp"})+" "+e.desc})).join(", ")}),n.createElement("img",Object.assign({},u,{ref:c,className:s,decoding:"async",src:t&&t.supportsUrl(a)?t.transformUrl({src:a,quality:i,width:r[r.length-1].width}):a,srcSet:t&&t.supportsUrl(a)?r.map((function(e){return t.transformUrl({src:a,quality:i,width:e.width})+" "+e.desc})).join(", "):void 0,sizes:t&&t.supportsUrl(a)?l:void 0,style:x({},o?M(o,"objectFit","objectPosition"):{},{width:0,height:0})})))}({imageLoader:A,widthDescs:j,sizes:F,src:E,quality:d,ref:v,style:m?M(m,"objectFit","objectPosition"):void 0,imgProps:g,className:"__wab_img"}))})),oe=1e4;function se(e){return e.endsWith(".svg")||e.startsWith("data:image/svg")}function le(e,t){var r,n=null!=(r=ae.findIndex((function(t){return t>=e})))?r:ae.length-1,a=ae[n];if(!(a>=t||n+1<ae.length&&t<=ae[n+1]))return a}function ue(e){if(null!=e&&""!=e){if("number"==typeof e)return e;var t=function(e){var t=e.match(/^\s*(-?(?:\d+\.\d*|\d*\.\d+|\d+))\s*([a-z]*|%)\s*(?:\/\*.*)?$/i);if(null!=t)return{num:+t[1],units:t[2]}}(e);return!t||t.units&&"px"!==t.units?void 0:t.num}}var ce={supportsUrl:function(e){return e.startsWith("https://img.plasmic.app")&&!se(e)},transformUrl:function(e){var t,r=[e.width?"w="+e.width:void 0,"q="+(null!=(t=e.quality)?t:75),e.format?"f="+e.format:void 0].filter((function(e){return!!e}));return e.src+"?"+r.join("&")}},pe=n.forwardRef((function(e,t){if("nextjs"===e.platform&&e.href){var r=["href","replace","scroll","shallow","passHref","prefetch","locale"];return n.createElement(e.component,M.apply(void 0,[e].concat(r)),n.createElement("a",Object.assign({},I.apply(void 0,[e,"component","platform"].concat(r)),{ref:t})))}return"gatsby"===e.platform&&/^\/(?!\/)/.test(e.href)?n.createElement(e.component,x({},I(e,"component","platform","href"),{to:e.href,ref:t})):n.createElement("a",Object.assign({},I(e,"component","platform"),{ref:t}))})),de=n.createContext(void 0);function fe(e){var t={},r=0;return{str:function e(a){if(!a)return"";if("number"==typeof a||"boolean"==typeof a||"string"==typeof a)return a.toString();if("object"!=typeof a)return"";if(Array.isArray(a)||null!=(i=a)&&"function"==typeof i[Symbol.iterator])return Array.from(a).map((function(t){return e(t)})).filter((function(e){return!!e})).join("");var i,o=he(a,"props")&&he(a.props,"children")&&a.props.children||he(a,"children")&&a.children||[],s=""+n.Children.toArray(o).map((function(t){return e(t)})).filter((function(e){return!!e})).join("");if(n.isValidElement(a)&&a.type===n.Fragment)return s;var l=r+1;return r++,t[l]=n.isValidElement(a)?n.cloneElement(a,{key:l,children:void 0}):a,"<"+l+">"+s+"</"+l+">"}(e),components:t,componentsCount:r}}function ve(e){var t=e.children,r=n.useContext(de);if(!r)return me||(console.warn("Using Plasmic Translation but no translation function has been provided"),me=!0),t;var a=fe(t);return r(a.str,a.componentsCount>0?{components:a.components}:void 0)}var me=!1;function he(e,t){return"object"==typeof e&&null!==e&&t in e}function ye(e){var t=e.as,n=e.defaultContents,a=e.value,i=V(e,["as","defaultContents","value"]),o=void 0===a?n:a;if(!o||Array.isArray(o)&&0===o.length)return null;var s=function e(t){return!r.isValidElement(t)||t.type!==r.Fragment&&t.type!==ve?"string"==typeof t?t:Array.isArray(t)&&1===t.length&&"string"==typeof t[0]?t[0]:void 0:e(t.props.children)}(o);return s&&(o=r.createElement("div",{className:"__wab_slot-string-wrapper"},s)),0===Object.keys(i).filter((function(e){return!!i[e]})).length?r.createElement(r.Fragment,null,o):r.createElement(t||"div",_({className:"__wab_slot"},i),o)}var ge=[],be={};function Pe(){return T?Object.entries(be).filter((function(e){return window.matchMedia(e[1]).matches})).map((function(e){return e[0]})):[]}var we=void 0;T&&window.addEventListener("resize",(function(){var e=Pe();we&&e.join("")===we.join("")||(we=e,i.unstable_batchedUpdates((function(){return ge.forEach((function(e){return e()}))})))}));var Se=r.createContext(void 0),Ee=o.useIsSSR;function xe(){r.useContext(Se)}var Ve={useHover:function(){var e=r.useState(!1),t=e[1];return[e[0],{onMouseEnter:function(){return t(!0)},onMouseLeave:function(){return t(!1)}}]},useFocused:function(e){var t=s.useFocusRing({within:!1,isTextInput:e.isTextInput});return[t.isFocused,t.focusProps]},useFocusVisible:function(e){var t=s.useFocusRing({within:!1,isTextInput:e.isTextInput});return[t.isFocusVisible,t.focusProps]},useFocusedWithin:function(e){var t=s.useFocusRing({within:!0,isTextInput:e.isTextInput});return[t.isFocused,t.focusProps]},useFocusVisibleWithin:function(e){var t=s.useFocusRing({within:!0,isTextInput:e.isTextInput});return[t.isFocusVisible,t.focusProps]},usePressed:function(){var e=r.useState(!1),t=e[1];return[e[0],{onMouseDown:function(){return t(!0)},onMouseUp:function(){return t(!1)}}]}},Oe=t,Ce=!0;function ke(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter((function(e){return!!e.def})),a=j(n,(function(e){return e.def.group}));return A(a,(function(e){return Object.fromEntries(e.map((function(e){return[e.def.variant,!!e.active]})))}))}function Me(e){if(r.isValidElement(e)){var t=e.type;return t.__plumeType||(null==t.getPlumeType?void 0:t.getPlumeType(e.props))}}function Ie(e){return M(e,"className","style")}function Fe(e,t){return{plasmicProps:{variants:M.apply(void 0,[t].concat(e.internalVariantProps)),args:M.apply(void 0,[t].concat(e.internalArgProps)),overrides:{}}}}var je=/^(data-.*)$/;function Ae(e,t){var r=t.itemPlumeType,a=t.sectionPlumeType,i=t.invalidChildError,o=t.requireItemValue;return n.useMemo((function(){return function(e,t){if(!e)return{items:[],disabledKeys:[]};var r=t.itemPlumeType,a=t.sectionPlumeType,i=t.invalidChildError,o=0,s=0,l=[];return{items:function e(u){return W(u).flatMap((function(u){if(n.isValidElement(u)){if(u.type===n.Fragment)return e(u.props.children);var c,p=Me(u);if(p===r){var d=De(u=function(e){if(We(e,"value"))return o++,e;if(t.requireItemValue&&Ce)throw new Error('Must specify a "value" prop for '+function(e){if("string"==typeof e.type)return e.type;var t,r,n,a,i=e.type;return null!=(t=null!=(r=null!=(n=i.displayName)?n:i.name)?r:null==(a=i.render)?void 0:a.name)?t:"Component"}(e));return _e(e,{value:""+o++})}(u));return Ne(u,"isDisabled")&&d&&l.push(d),[u]}if(p===a)return[_e(u,{key:null!=(c=u.key)?c:"section-"+s++,children:e(Ne(u,"children"))})]}if(Ce)throw new Error(null!=i?i:"Unexpected child");return[]}))}(e),disabledKeys:l}}(e,{itemPlumeType:r,sectionPlumeType:a,invalidChildError:i,requireItemValue:o})}),[e,r,a,i,o])}function Te(e){return _e(e.rendered,{_node:e,key:e.key})}function Re(e,t){if(Me(e)===t.itemPlumeType){var r,a=e,i=Ne(a,"children");return n.createElement(f.Item,{key:De(a),textValue:null!=(r=Ne(a,"textValue"))?r:(o=i,"string"==typeof o?i:We(a,"value")?Ne(a,"value"):a.key),"aria-label":Ne(a,"aria-label")},a)}var o,s=e;return n.createElement(f.Section,{title:s,"aria-label":Ne(s,"aria-label"),items:Ne(s,"children")},(function(e){return Re(e,t)}))}function De(e){var t;return null!=(t=Ne(e,"value"))?t:e.key}function Ne(e,t){return"componentProps"in e.props?e.props.componentProps[t]:e.props[t]}function We(e,t){return"componentProps"in e.props?t in e.props.componentProps:t in e.props}function _e(e,t){return n.cloneElement(e,e.type.getPlumeType?x({componentProps:x({},e.props.componentProps,t)},t.key?{key:t.key}:{}):t)}var qe=r.createContext(void 0),Ke=r.createContext(void 0),He={itemPlumeType:"menu-item",sectionPlumeType:"menu-group"};function Ue(e,t){var n=e.triggerRef,a=e.isDisabled,i=e.placement,o=e.menuMatchTriggerWidth,s=e.menuWidth,l=e.menu,u=p.useMenuTrigger({type:"menu",isDisabled:a},t,n),c=u.menuProps;return{triggerProps:h.usePress(x({},u.menuTriggerProps,{isDisabled:a})).pressProps,makeMenu:function(){var e="function"==typeof l?l():l;if(!e)return null;if("menu"!==Me(e)){if(Ce)throw new Error("Must use an instance of the Menu component.");return null}return r.cloneElement(e,_(e.props,c))},triggerContext:r.useMemo((function(){var e;return{triggerRef:n,state:t,autoFocus:null==(e=t.focusStrategy)||e,placement:i,overlayMatchTriggerWidth:o,overlayMinTriggerWidth:!0,overlayWidth:s}}),[n,t,i,o,s])}}var Le=r.createContext(void 0),ze={itemPlumeType:"select-option",sectionPlumeType:"select-option-group"};function Ge(e){var t=e.state,n=e.menuProps,a=e.children,i=r.useRef(null),o=g.useListBox(x({},n,{isVirtualized:!1,autoFocus:t.focusStrategy||!0,disallowEmptySelection:!0}),t,i);return r.cloneElement(a,_(a.props,o.listBoxProps,{style:{outline:"none"},ref:i}))}var Be=Symbol("plasmic.unitialized");function Je(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Ye=function(e){return"symbol"!=typeof e&&!isNaN(+e)};function $e(e,t){var r=null!=t?t:function(){return{get:function(e,t){return e[t]},set:function(e,t,r){return(e[t]=r)||!0}}},n=function(t){return Object.fromEntries(Object.values(e).filter((function(e){return Je(t.map((function(e){return Ye(e)?"[]":e})),e.path.slice(0,t.length))})).map((function(e){var r=e.path[t.length];return e.path.length===t.length+1?[r,{isLast:!0,specKey:e.pathStr}]:[r,{isLast:!1,specKey:e.pathStr}]})))};return function e(t){var a=n(t);return new Proxy("[]"in a?[]:{},{deleteProperty:function(e,n){if(!("[]"in a)||!Ye(n))throw new Error("You can't delete a non-repeated property in the middle of the path");var i,o;return delete e[n],null==r||null==(i=(o=r({path:[].concat(t,[+n]),specKey:a["[]"].specKey})).deleteProperty)||i.call(o,e,n),!0},get:function(n,i,o){if("[]"in a&&Ye(i))i in n||(n[i]=e([].concat(t,[+i])));else if(i in a){var s,l;if(a[i].isLast)return n[i]=null==r||null==(s=(l=r({path:[].concat(t,[i]),specKey:a[i].specKey})).get)?void 0:s.call(l,n,i,o);i in n||(n[i]=e([].concat(t,[i])))}return n[i]},set:function(i,o,s,l){if("[]"in a&&Ye(o))o in i||(i[o]=e([].concat(t,[+o])));else if(o in a){var u,c,p;if(a[o].isLast)return i[o]=s,null!=(u=null==(c=(p=r({path:[].concat(t,[o]),specKey:a[o].specKey})).set)?void 0:c.call(p,i,o,s,l))&&u}return"registerInitFunc"===o?i[o]=s:"object"==typeof s&&function e(t,a,i){if("object"==typeof i)for(var o=n(a),s=0,l=Object.entries(o);s<l.length;s++){var u=l[s],c=u[0],p=u[1],d=p.isLast,f=p.specKey;if("[]"===c&&Array.isArray(i))for(var v=0;v<i.length;v++)e(t[v],[].concat(a,[v]),i[v]);else if(c in i){var m,h;d?null==r||null==(m=(h=r({specKey:f,path:[].concat(a,[c])})).set)||m.call(h,t,c,i[c],void 0):e(t[c],[].concat(a,[c]),i[c])}}}(i[o],[].concat(t,[Ye(o)?+o:o]),s),!0}})}([])}function Qe(e,t,r){var n=$e(e);return Object.values(t).forEach((function(e){var t=e.path;E.dset(n,t,S(r,t))})),n}function Xe(e,t){t[JSON.stringify(e.path)]=e}function Ze(e,t,r,n){for(var a=[new Set],i={},o=Object.assign($e(e,(function(n){return{get:function(s,l){var u=e[n.specKey];if(u.valueProp)return u.isRepeated?S(t[u.valueProp],n.path.slice(1)):t[u.valueProp];var c=S(r,n.path);return c===Be&&(c=function(r){a.push(new Set);var n=e[r.specKey].initFunc(t,o),s=a.pop();return i[JSON.stringify(r.path)]=[].concat(s.values()),n}(n),E.dset(r,n.path,c)),a[a.length-1].add(JSON.stringify(n.path)),c},set:function(){throw new Error("Cannot update state values during initialization")}}})),{registerInitFunc:function(){}}),s=0,l=Object.values(n);s<l.length;s++){var u=l[s].path;S(r,u)===Be&&S(o,u)}return i}exports.DropdownMenu=function(e){var t=e.isOpen,n=e.defaultOpen,a=e.onOpenChange,i=e.children,o=e.placement,s=e.menu,l=r.useRef(null),u=m.useMenuTriggerState({isOpen:t,defaultOpen:n,onOpenChange:a,shouldFlip:!0}),c=Ue({triggerRef:l,placement:o,menu:s},u),p=c.makeMenu;return r.createElement(qe.Provider,{value:c.triggerContext},r.cloneElement(i,_(i.props,c.triggerProps,{ref:l})),u.isOpen&&p())},exports.PlasmicHead=function(e){var t=r.useContext(re);return t?r.createElement(t,null,e.image?r.createElement(r.Fragment,null,r.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),r.createElement("meta",{key:"og:image",property:"og:image",content:e.image}),r.createElement("meta",{key:"twitter:image",name:"twitter:image",content:e.image})):r.createElement("meta",{name:"twitter:card",content:"summary"}),e.title&&r.createElement(r.Fragment,null,r.createElement("title",{key:"title"},e.title),r.createElement("meta",{key:"og:title",property:"og:title",content:e.title}),r.createElement("meta",{key:"twitter:title",property:"twitter:title",content:e.title})),e.description&&r.createElement(r.Fragment,null,r.createElement("meta",{key:"description",name:"description",content:e.description}),r.createElement("meta",{key:"og:description",property:"og:description",content:e.description}),r.createElement("meta",{key:"twitter:description",name:"twitter:description",content:e.description})),e.canonical&&r.createElement("link",{ref:"canonical",href:e.canonical})):(console.warn("Plasmic: Head meta tags are being ignored. To make them work, pass a Head component into PlasmicRootProvider."),null)},exports.PlasmicIcon=function(e){var t=e.PlasmicIconType,n=V(e,["PlasmicIconType"]);return r.createElement(t,Object.assign({},n))},exports.PlasmicImg=ie,exports.PlasmicLink=pe,exports.PlasmicRootProvider=function(e){var t=e.platform,n=e.children,a=r.useMemo((function(){return{platform:t}}),[t]);return r.createElement(Se.Provider,{value:a},r.createElement(o.SSRProvider,null,r.createElement(de.Provider,{value:e.translator},r.createElement(re.Provider,{value:e.Head},n))))},exports.PlasmicSlot=function(e){return ye(e)},exports.SelectContext=Le,exports.Stack=G,exports.Trans=ve,exports.TriggeredOverlayContext=qe,exports.classNames=Oe,exports.createPlasmicElementProxy=function(e,t){null==t&&(t={});var r=t["data-plasmic-name"],n=t["data-plasmic-root"],a=t["data-plasmic-for-node"];delete t["data-plasmic-name"],delete t["data-plasmic-root"],delete t["data-plasmic-for-node"];for(var i=arguments.length,o=new Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];var l=$.apply(void 0,[e,t].concat(o));if(r&&Y.set(r,l),n){var u,c=a?null!=(u=Y.get(a))?u:null:l;return Y.clear(),c}return l},exports.createUseScreenVariants=function(e,t){return Object.assign(be,t),we=void 0,function(){var t=r.useState()[1],n=r.useRef(we||[]);return D((function(){var e=function(){we&&n.current.join("")!==we.join("")&&(n.current=we,t({}))};return ge.push(e),void 0===we&&(we=Pe()),e(),function(){ge.splice(ge.indexOf(e),1)}}),[]),e?we||[]:we?we[we.length-1]:void 0}},exports.deriveRenderOpts=function(e,t){var r,n,a,i,o,s=t.name,l=t.descendantNames,u=t.internalVariantPropNames,c=t.internalArgPropNames,p=["variants","args","overrides"],d=(r=I.apply(void 0,[M.apply(void 0,[e].concat(u))].concat(p)),n=e.variants,r&&n?x({},r,n):r||n||{}),f=(a=I.apply(void 0,[M.apply(void 0,[e].concat(c))].concat(p)),i=e.args,a&&i?x({},a,i):a||i||{}),v=ee(I.apply(void 0,[M.apply(void 0,[e].concat(l))].concat(c,u,p)),e.overrides),m=I.apply(void 0,[e,"variants","args","overrides"].concat(l,u,c));return Object.keys(m).length>0&&(v=ee(v,((o={})[s]={props:m},o))),{variants:d,args:f,overrides:v}},exports.ensureGlobalVariants=function(e){return Object.entries(e).filter((function(e){return"PLEASE_RENDER_INSIDE_PROVIDER"===e[1]})).forEach((function(t){e[t[0]]=void 0})),e},exports.genTranslatableString=fe,exports.generateStateOnChangeProp=function(e,t,r){return function(n,a){return E.dset(e,[t].concat(r,a),n)}},exports.generateStateValueProp=function(e,t){return S(e,t)},exports.getDataProps=function(e){return function(e,t){for(var r={},n=0,a=Object.entries(e);n<a.length;n++){var i=a[n][0];je.test(i)&&(r[i]=e[i])}return r}(e)},exports.hasVariant=function(e,t,r){if(null==e)return!1;var n=e[t];return null!=n&&(!0===n?r===t:!1!==n&&(Array.isArray(n)?n.includes(r):"string"==typeof n?n===r:void 0!==n[r]&&!1!==n[r]))},exports.makeFragment=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.createElement.apply(r,[r.Fragment,{}].concat(t))},exports.omit=I,exports.pick=M,exports.plasmicHeadMeta={name:"hostless-plasmic-head",displayName:"Head",description:"Used to add page metadata to HEAD tag",importName:"PlasmicHead",importPath:"@plasmicapp/react-web",props:{title:{type:"string",displayName:"Title"},description:{type:"string",displayName:"Description"},image:{type:"imageUrl",displayName:"Image"},canonical:{type:"string",displayName:"Canonical URL"}}},exports.renderPlasmicSlot=ye,exports.setPlumeStrictMode=function(e){Ce=e},exports.useButton=function(e,t,r,n){var a,i,o,s;void 0===n&&(n=null);var l=t.link,u=t.isDisabled,c=t.startIcon,p=t.endIcon,d=t.showStartIcon,f=t.showEndIcon,v=t.children,m=V(t,["link","isDisabled","startIcon","endIcon","showStartIcon","showEndIcon","children"]);return{plasmicProps:{variants:x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:r.showStartIconVariant,active:d},{def:r.showEndIconVariant,active:f},{def:r.isDisabledVariant,active:u})),args:x({},M.apply(void 0,[t].concat(e.internalArgProps)),r.startIconSlot&&((a={})[r.startIconSlot]=c,a),r.endIconSlot&&((i={})[r.endIconSlot]=p,i),((o={})[r.contentSlot]=v,o)),overrides:((s={})[r.root]={as:l?"a":"button",props:x({},I.apply(void 0,[m].concat(e.internalArgProps,e.internalVariantProps)),{ref:n,disabled:u},!!l&&{href:l})},s)}}},exports.useCheckbox=function(e,t,n,a){var i,o;void 0===a&&(a=null);var s=t.children,p=t.isDisabled,d=t.isIndeterminate;xe();var f=r.useRef(null),v=r.useRef(null),m=function(e){var t=x({},e,{isSelected:e.isChecked,defaultSelected:e.defaultChecked});return delete t.isChecked,delete t.defaultChecked,t}(t),h=c.useToggleState(m),y=l.useCheckbox(m,h,f).inputProps,g=x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.isDisabledVariant,active:p},{def:n.isCheckedVariant,active:h.isSelected},{def:n.isIndeterminateVariant,active:d},{def:n.noLabelVariant,active:!s})),b=((i={})[n.root]={as:"label",props:_(Ie(t),{ref:v}),wrapChildren:function(e){return r.createElement(r.Fragment,null,r.createElement(u.VisuallyHidden,{isFocusable:!0},r.createElement("input",Object.assign({},y,{ref:f}))),e)}},i),P=x({},M.apply(void 0,[t].concat(e.internalArgProps)),n.labelSlot?((o={})[n.labelSlot]=s,o):{}),w=r.useMemo((function(){return{setChecked:function(e){return h.setSelected(e)}}}),[h]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return v.current},focus:function(){var e;return null==(e=f.current)?void 0:e.focus()},blur:function(){var e;return null==(e=f.current)?void 0:e.blur()},setChecked:function(e){return w.setChecked(e)}}}),[v,f,w]),{plasmicProps:{variants:g,overrides:b,args:P},state:w}},exports.useDollarState=function(e,t){for(var r=n.useState(0)[1],a=n.useMemo((function(){var t=Object.fromEntries(e.map((function(e){var t,r=e.path;return[r,x({},V(e,["path"]),{pathStr:r,path:(t=r,t.split(".").flatMap((function e(t){return t.endsWith("[]")?[].concat(e(t.slice(0,-2)),["[]"]):[t]}))),isRepeated:r.split(".").some((function(e){return e.endsWith("[]")}))})]})));return{stateValues:$e(t),initStateDeps:{},initStateValues:$e(t),states:{},specs:t}}),[]),i=Object.assign($e(a.specs,(function(e){return{deleteProperty:function(t,n){for(var i=e.path,o=0,s=Object.entries(a.states);o<s.length;o++){var l=s[o],u=l[0],c=l[1];c.path.length>=i.length&&Je(c.path.slice(0,i.length),i)&&delete a.states[u]}return r((function(e){return e+1})),!0},get:function(n,o){var s=a.specs[e.specKey];if(s.valueProp)return s.isRepeated?S(t[s.valueProp],e.path.slice(1)):t[s.valueProp];if(!function(e,t){return JSON.stringify(e.path)in t}(e,a.states)){var l;Xe(e,a.states),E.dset(a.stateValues,e.path,s.initFunc?Be:null!=(l=s.initVal)?l:void 0);var u=s.initFunc?Ze(a.specs,t,a.stateValues,a.states):{};return E.dset(a.initStateValues,e.path,S(a.stateValues,e.path)),a.initStateDeps=x({},a.initStateDeps,u),r((function(e){return e+1})),s.initFunc?s.initFunc(t,i):s.initVal}return S(a.stateValues,e.path)},set:function(n,i,o){if(o!==S(a.stateValues,e.path)){Xe(e,a.states),E.dset(a.stateValues,e.path,o);for(var s=0,l=Object.entries(a.initStateDeps);s<l.length;s++){var u=l[s],c=u[0];u[1].includes(JSON.stringify(e.path))&&E.dset(a.stateValues,JSON.parse(c),Be)}var p=Ze(a.specs,t,a.stateValues,a.states);a.initStateDeps=x({},a.initStateDeps,p),r((function(e){return e+1}))}var d,f=a.specs[e.specKey];return f.onChangeProp&&(null==(d=t[f.onChangeProp])||d.call(t,o,e.path)),!0}}})),{registerInitFunc:function(e,n){Object.values(a.states).filter((function(t){return t.specKey===e})).some((function(e){return S(a.stateValues,e.path)!==n(t,i)}))&&(a.specs[e]=x({},a.specs[e],{initFunc:n}),r((function(e){return e+1})))}}),o=void 0,s=[],l=0,u=Object.values(a.states);l<u.length;l++){var c=u[l],p=c.path,d=c.specKey,f=a.specs[d];if(f.initFunc){var v=f.initFunc(t,i);v!==S(a.initStateValues,p)&&(console.log("init changed for "+JSON.stringify(p)+" from "+S(a.initStateValues,p)+" to "+v+"; resetting state"),s.push({path:p,specKey:d}),o||(o=Qe(a.specs,a.states,a.stateValues)),E.dset(o,p,Be))}}n.useLayoutEffect((function(){if(void 0!==o){var e=Ze(a.specs,t,o,a.states),n=Qe(a.specs,a.states,a.initStateValues);s.forEach((function(e){var t=e.path;E.dset(n,t,S(o,t))})),a.stateValues=Qe(a.specs,a.states,o),a.initStateValues=n,a.initStateDeps=x({},a.initStateDeps,e),r((function(e){return e+1}));for(var i,l=C(s);!(i=l()).done;){var u,c=i.value,p=c.path,d=a.specs[c.specKey];d.onChangeProp&&(console.log("Firing onChange for reset init value: "+d.path,S(o,p)),null==(u=t[d.onChangeProp])||u.call(t,S(o,p)))}}}),[o,t,s,a.specs]);for(var m=0,h=Object.values(a.states);m<h.length;m++)S(i,h[m].path);return i},exports.useIsSSR=Ee,exports.useMenu=function(e,t,n,a){var i,o;void 0===a&&(a=null),xe();var s=function(e){var t=e.children,n=V(e,["children"]),a=Ae(t,x({},He,{invalidChildError:"Can only use Menu.Item and Menu.Group as children to Menu",requireItemValue:!1})),i=a.items,o=a.disabledKeys;return{ariaProps:x({},n,{children:r.useCallback((function(e){return Re(e,He)}),[]),items:i,disabledKeys:o})}}(t).ariaProps,l=r.useContext(qe),u=r.useRef(null),c=d.useTreeState(s),f=r.useRef(null),v=p.useMenu(x({},s,{autoFocus:null==l?void 0:l.autoFocus}),c,f).menuProps,m=r.useMemo((function(){return{state:c,menuProps:t}}),[c,t]),h=x({},M.apply(void 0,[t].concat(e.internalVariantProps))),y=((i={})[n.root]={props:_(Ie(t),{ref:u})},i[n.itemsContainer]={as:"ul",props:_(v,{ref:f,style:x({},{outline:"none"})})},i),g=x({},M.apply(void 0,[t].concat(e.internalArgProps)),((o={})[n.itemsSlot]=r.createElement(Ke.Provider,{value:m},Array.from(c.collection).map((function(e){return Te(e)}))),o)),b=r.useMemo((function(){return{getFocusedValue:function(){return c.selectionManager.focusedKey},setFocusedValue:function(e){return c.selectionManager.setFocusedKey(e)}}}),[c]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return u.current},getFocusedValue:function(){return b.getFocusedValue()},setFocusedValue:function(e){return b.setFocusedValue(e)}}}),[u,b]),{plasmicProps:{variants:h,args:g,overrides:y},state:b}},exports.useMenuButton=function(e,t,n,a){var i,o;void 0===a&&(a=null);var l=t.placement,u=t.isOpen,c=t.defaultOpen,p=t.onOpenChange,d=t.isDisabled,f=t.menu,v=t.autoFocus,h=t.menuMatchTriggerWidth,y=t.menuWidth;xe();var g=r.useRef(null),b=r.useRef(null),P=m.useMenuTriggerState({isOpen:u,defaultOpen:c,onOpenChange:p,shouldFlip:!0}),w=Ue({isDisabled:d,triggerRef:b,placement:l,menuMatchTriggerWidth:h,menuWidth:y,menu:f},P),S=w.triggerProps,E=w.makeMenu,V=w.triggerContext,O=s.useFocusable(t,b).focusableProps,C=x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.isOpenVariant,active:P.isOpen},{def:n.isDisabledVariant,active:d})),k=x({},M.apply(void 0,[t].concat(e.internalArgProps)),((i={})[n.menuSlot]=P.isOpen?E():void 0,i)),I=((o={})[n.root]={wrapChildren:function(e){return r.createElement(qe.Provider,{value:V},e)},props:{ref:g}},o[n.trigger]={props:_(S,O,Ie(t),M(t,"title"),{ref:b,autoFocus:v,disabled:!!d,type:"button"})},o),F=r.useMemo((function(){return{open:function(){return P.open()},close:function(){return P.close()},isOpen:function(){return P.isOpen}}}),[P]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return g.current},getTrigger:function(){return b.current},focus:function(){return b.current&&b.current.focus()},blur:function(){return b.current&&b.current.blur()},open:F.open,close:F.close,isOpen:F.isOpen}}),[g,b,F]),{plasmicProps:{variants:C,args:k,overrides:I},state:F}},exports.useMenuGroup=function(e,t,n){var a,i,o=r.useContext(Ke),s=t._node;if(!o||!s){if(Ce)throw new Error("You can only use a Menu.Group within a Menu component.");return Fe(e,t)}var l=p.useMenuSection({heading:t.title,"aria-label":t["aria-label"]}),u=l.headingProps,c=l.groupProps,d=v.useSeparator({elementType:"li"}).separatorProps;return{plasmicProps:{variants:x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.noTitleVariant,active:!t.title},{def:n.isFirstVariant,active:o.state.collection.getFirstKey()===s.key})),args:x({},M.apply(void 0,[t].concat(e.internalArgProps)),((a={})[n.titleSlot]=t.title,a[n.itemsSlot]=Array.from(s.childNodes).map((function(e){return Te(e)})),a)),overrides:((i={})[n.root]={props:Ie(t)},i[n.separator]={props:x({},d),as:"li"},i[n.titleContainer]=x({props:x({role:"presentation"},u)},!t.title&&{render:function(){return null}}),i[n.itemsContainer]={props:x({},c),as:"ul"},i)}}},exports.useMenuItem=function(e,t,n){var a,i,o=r.useContext(Ke),s=r.useContext(qe);if(!o){if(Ce)throw new Error("You can only use a Menu.Item within a Menu component.");return Fe(e,t)}var l=t.children,u=t.onAction,c=o.state,d=o.menuProps,f=t._node,v=c.disabledKeys.has(f.key),m=c.selectionManager.isFocused&&c.selectionManager.focusedKey===f.key,h=r.useRef(null),y=p.useMenuItem(_({onAction:u},{onAction:d.onAction,onClose:null==s?void 0:s.state.close},{isDisabled:v,"aria-label":f&&f["aria-label"],key:f.key,isVirtualized:!1,closeOnSelect:!0}),c,h),g=y.menuItemProps,b=y.labelProps;return{plasmicProps:{variants:x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.isDisabledVariant,active:v},{def:n.isHighlightedVariant,active:m})),args:x({},M.apply(void 0,[t].concat(e.internalArgProps)),((a={})[n.labelSlot]=l,a)),overrides:((i={})[n.root]={as:"li",props:_(g,{ref:h,style:{outline:"none"}})},i[n.labelContainer]={props:x({},b)},i)}}},exports.useSelect=function(e,t,n,a){var i,o;void 0===a&&(a=null),xe();var s=function(e){var t=e.value,n=e.defaultValue,a=e.children,i=e.onChange,o=V(e,["value","defaultValue","children","onChange","placement","menuMatchTriggerWidth","menuWidth"]),s=Ae(a,x({},ze,{invalidChildError:"Can only use Select.Option and Select.OptionGroup as children to Select",requireItemValue:!0})),l=s.items,u=s.disabledKeys;return{ariaProps:x({},o,{children:r.useCallback((function(e){return Re(e,ze)}),[]),onSelectionChange:r.useMemo((function(){return i?function(e){return i(null==e||"null"===e?null:e)}:void 0}),[i]),items:l,disabledKeys:u,defaultSelectedKey:n},"value"in e&&{selectedKey:null!=t?t:null})}}(t).ariaProps,l=t.placement,u=b.useSelectState(s),c=r.useRef(null),p=r.useRef(null),d=t.isDisabled,f=t.name,v=t.menuWidth,m=t.menuMatchTriggerWidth,g=t.autoFocus,P=t.placeholder,w=t.selectedContent,S=y.useSelect(s,u,c),E=S.menuProps,O=h.usePress(x({},S.triggerProps,{isDisabled:d})).pressProps,C=u.selectedItem?null!=w?w:Ne(u.selectedItem.value,"children"):null,k=x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.isOpenVariant,active:u.isOpen},{def:n.placeholderVariant,active:!u.selectedItem},{def:n.isDisabledVariant,active:d})),I=r.useMemo((function(){return{triggerRef:c,state:u,placement:l,overlayMatchTriggerWidth:m,overlayMinTriggerWidth:!0,overlayWidth:v}}),[c,u,l,m,v]),F=((i={})[n.root]={props:_(Ie(t),{ref:p}),wrapChildren:function(e){return r.createElement(r.Fragment,null,r.createElement(y.HiddenSelect,{state:u,triggerRef:c,name:f,isDisabled:d}),e)}},i[n.trigger]={props:_(O,{ref:c,autoFocus:g,disabled:!!d,type:"button"})},i[n.overlay]={wrap:function(e){return r.createElement(qe.Provider,{value:I},e)}},i[n.optionsContainer]={wrap:function(e){return r.createElement(Ge,{state:u,menuProps:E},e)}},i),j=x({},M.apply(void 0,[t].concat(e.internalArgProps)),((o={})[n.triggerContentSlot]=C,o[n.placeholderSlot]=P,o[n.optionsSlot]=r.createElement(Le.Provider,{value:u},Array.from(u.collection).map((function(e){return Te(e)}))),o)),A=r.useMemo((function(){return{open:function(){return u.open()},close:function(){return u.close()},isOpen:function(){return u.isOpen},getSelectedValue:function(){return u.selectedKey?""+u.selectedKey:null},setSelectedValue:function(e){return u.setSelectedKey(e)}}}),[u]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return p.current},getTrigger:function(){return c.current},focus:function(){var e;return null==(e=c.current)?void 0:e.focus()},blur:function(){var e;return null==(e=c.current)?void 0:e.blur()},open:function(){return A.open()},close:function(){return A.close()},isOpen:function(){return A.isOpen()},getSelectedValue:function(){return A.getSelectedValue()},setSelectedValue:function(e){return A.setSelectedValue(e)}}}),[p,c,A]),{plasmicProps:{variants:k,args:j,overrides:F},state:A}},exports.useSelectOption=function(e,t,n,a){var i,o;void 0===a&&(a=null);var s=r.useContext(Le);if(!s){if(Ce)throw new Error("You can only use a Select.Option within a Select component.");return Fe(e,t)}var l=t.children,u=r.useRef(null),c=K(u,a),p=t._node,d=s.selectionManager.isSelected(p.key),f=s.disabledKeys.has(p.key),v=s.selectionManager.isFocused&&s.selectionManager.focusedKey===p.key,m=g.useOption({isSelected:d,isDisabled:f,"aria-label":p&&p["aria-label"],key:p.key,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,isVirtualized:!1},s,u),h=m.optionProps,y=m.labelProps;return{plasmicProps:{variants:x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.isSelectedVariant,active:d},{def:n.isDisabledVariant,active:f},{def:n.isHighlightedVariant,active:v})),args:x({},M.apply(void 0,[t].concat(e.internalArgProps)),((i={})[n.labelSlot]=l,i)),overrides:((o={})[n.root]={props:_(h,Ie(t),{ref:c,style:{outline:"none"}})},o[n.labelContainer]={props:y},o)}}},exports.useSelectOptionGroup=function(e,t,n){var a,i,o=r.useContext(Le),s=t._node;if(!o||!s){if(Ce)throw new Error("You can only use a Select.OptionGroup within a Select component.");return Fe(e,t)}var l=g.useListBoxSection({heading:t.title,"aria-label":t["aria-label"]}),u=l.headingProps,c=l.groupProps,p=v.useSeparator({elementType:"li"}).separatorProps;return{plasmicProps:{variants:x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.noTitleVariant,active:!t.title},{def:n.isFirstVariant,active:o.collection.getFirstKey()===s.key})),args:x({},M.apply(void 0,[t].concat(e.internalArgProps)),((a={})[n.titleSlot]=t.title,a[n.optionsSlot]=Array.from(s.childNodes).map((function(e){return Te(e)})),a)),overrides:((i={})[n.root]={props:Ie(t)},i[n.separator]={props:x({},p)},i[n.titleContainer]=x({props:x({role:"presentation"},u)},!t.title&&{render:function(){return null}}),i[n.optionsContainer]={props:x({},c)},i)}}},exports.useSwitch=function(e,t,n,a){var i,o;void 0===a&&(a=null);var s=t.children,l=t.isDisabled;xe();var p=r.useRef(null),d=r.useRef(null),f=function(e){var t=x({},e,{isSelected:e.isChecked,defaultSelected:e.defaultChecked});return delete t.isChecked,delete t.defaultChecked,t}(t),v=c.useToggleState(f),m=P.useSwitch(f,v,p).inputProps,h=x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.isDisabledVariant,active:l},{def:n.isCheckedVariant,active:v.isSelected},{def:n.noLabelVariant,active:!s})),y=((i={})[n.root]={as:"label",props:_(Ie(t),{ref:d}),wrapChildren:function(e){return r.createElement(r.Fragment,null,r.createElement(u.VisuallyHidden,{isFocusable:!0},r.createElement("input",Object.assign({},m,{ref:p}))),e)}},i),g=x({},M.apply(void 0,[t].concat(e.internalArgProps)),n.labelSlot?((o={})[n.labelSlot]=s,o):{}),b=r.useMemo((function(){return{setChecked:function(e){return v.setSelected(e)}}}),[v]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return d.current},focus:function(){var e;return null==(e=p.current)?void 0:e.focus()},blur:function(){var e;return null==(e=p.current)?void 0:e.blur()},setChecked:function(e){return b.setChecked(e)}}}),[d,p,b]),{plasmicProps:{variants:h,overrides:y,args:g},state:b}},exports.useTextInput=function(e,t,n,a){var i,o,s;void 0===a&&(a=null);var l=t.isDisabled,u=t.startIcon,c=t.endIcon,p=t.showStartIcon,d=t.showEndIcon,f=t.className,v=t.style,m=t.inputClassName,h=t.inputStyle,y=V(t,["isDisabled","startIcon","endIcon","showStartIcon","showEndIcon","className","style","inputClassName","inputStyle"]),g=r.useRef(null),b=r.useRef(null);return r.useImperativeHandle(a,(function(){return{focus:function(){var e;null==(e=b.current)||e.focus()},blur:function(){var e;null==(e=b.current)||e.blur()},getRoot:function(){return g.current},getInput:function(){return b.current}}}),[g,b]),{plasmicProps:{variants:x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.showStartIconVariant,active:p},{def:n.showEndIconVariant,active:d},{def:n.isDisabledVariant,active:l})),args:x({},M.apply(void 0,[t].concat(e.internalArgProps)),n.startIconSlot&&((i={})[n.startIconSlot]=u,i),n.endIconSlot&&((o={})[n.endIconSlot]=c,o)),overrides:((s={})[n.root]={props:{ref:g,className:f,style:v}},s[n.input]={props:x({},I.apply(void 0,[y].concat(e.internalArgProps.filter((function(e){return"required"!==e})),e.internalVariantProps)),{disabled:l,ref:b,className:m,style:h})},s)}}},exports.useTrigger=function(e,t){return Ve[e](t)},exports.useTriggeredOverlay=function(e,t,n,i,o){var l,u;void 0===i&&(i=null),void 0===o&&(o=!0);var c=r.useRef(null),p=K(c,i),d=r.useContext(qe);if(!d){if(Ce)throw new Error("You can only use a triggered overlay with a TriggeredOverlayContext");return Fe(e,t)}var f=t.children,v=d.triggerRef,m=d.placement,h=d.overlayMatchTriggerWidth,y=d.overlayMinTriggerWidth,g=d.overlayWidth,b=d.state,P=r.useState(!1),S=P[0],E=P[1],V=v.current&&(h||y)?v.current.offsetWidth:void 0;D((function(){!S&&v.current&&(h||y)&&E(!0)}),[v,S,h,y]);var O=w.useOverlay({isOpen:b.isOpen,onClose:b.close,isDismissable:o,shouldCloseOnBlur:!0},c).overlayProps,C=w.useOverlayPosition({targetRef:v,overlayRef:c,placement:null!=m?m:"bottom left",shouldFlip:!0,isOpen:b.isOpen,onClose:b.close,containerPadding:0}),k=C.overlayProps,I=C.updatePosition,F=C.placement;D((function(){b.isOpen&&requestAnimationFrame((function(){I()}))}),[b.isOpen,I]);var j=_({style:{left:"auto",right:"auto",top:"auto",bottom:"auto",position:"absolute",width:null!=g?g:h?V:"auto",minWidth:y?V:"auto"}},O,k);return{plasmicProps:{variants:x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.isPlacedTopVariant,active:"top"===F},{def:n.isPlacedBottomVariant,active:"bottom"===F},{def:n.isPlacedLeftVariant,active:"left"===F},{def:n.isPlacedRightVariant,active:"right"===F})),args:x({},M.apply(void 0,[t].concat(e.internalArgProps)),((l={})[n.contentSlot]=r.createElement(s.FocusScope,{restoreFocus:!0},r.createElement(w.DismissButton,{onDismiss:b.close}),f),l)),overrides:((u={})[n.root]={props:_(j,Ie(t),{ref:p}),wrap:function(e){return"undefined"!=typeof document?a.createPortal(e,document.body):e}},u)}}},exports.wrapWithClassName=function(e,t){var n=r.isValidElement(e)&&e.key||void 0;return r.createElement("div",{key:n,className:t,style:{display:"grid"}},e)};
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("classnames")),r=require("react"),n=e(r),a=require("react-dom"),i=e(a),o=require("@react-aria/ssr"),s=require("@react-aria/focus"),l=require("@react-aria/checkbox"),u=require("@react-aria/visually-hidden"),c=require("@react-stately/toggle"),p=require("@react-aria/menu"),d=require("@react-stately/tree"),f=require("@react-stately/collections"),v=require("@react-aria/separator"),m=require("@react-stately/menu"),h=require("@react-aria/interactions"),y=require("@react-aria/select"),g=require("@react-aria/listbox"),b=require("@react-stately/select"),P=require("@react-aria/switch"),w=require("@react-aria/overlays"),S=e(require("dlv")),E=require("dset");function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function V(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(a[r]=e[r]);return a}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return O(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function k(e){return null!=e}function M(e){if(0===Object.keys(e).length)return e;for(var t={},r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];for(var i=0,o=n;i<o.length;i++){var s=o[i];s in e&&(t[s]=e[s])}return t}function I(e){if(0===Object.keys(e).length)return e;for(var t={},r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];for(var i=0,o=Object.keys(e);i<o.length;i++){var s=o[i];n.includes(s)||(t[s]=e[s])}return t}function F(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(0!==t.length)return function(e){for(var r,n=e,a=C(t);!(r=a()).done;)n=(0,r.value)(n);return n}}function j(e,t){for(var r,n={},a=C(e);!(r=a()).done;){var i=r.value,o=t(i);o in n?n[o].push(i):n[o]=[i]}return n}function A(e,t){var r={};for(var n in e)r[n]=t(e[n]);return r}var T="undefined"!=typeof window,R=Symbol("NONE"),D=T?n.useLayoutEffect:n.useEffect;function N(e,t,r){return Array.isArray(r)?n.createElement.apply(n,[e,t].concat(r)):r||"children"in t?n.createElement(e,t,r):n.createElement(e,t)}function W(e){return n.isValidElement(t=e)||function(e){return"string"==typeof e||"number"==typeof e}(t)?[e]:Array.isArray(e)?e.flatMap(W):[];var t}function _(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(r.every((function(e){return 0===Object.keys(e).length})))return e;for(var a=x({},e),i=0,o=r;i<o.length;i++)for(var s=o[i],l=0,u=Object.keys(s);l<u.length;l++){var c=u[l];a[c]=H(c,a[c],s[c])}return a}function q(e,t){e&&("function"==typeof e?e(t):Object.isFrozen(e)||(e.current=t))}function K(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r,n=C(t);!(r=n()).done;)q(r.value,e)}}function H(e,r,n){return r===R||n===R?null:null==r?n:null==n?r:"className"===e?t(r,n):"style"===e?x({},r,n):"ref"===e?K(r,n):typeof r!=typeof n?n:e.startsWith("on")&&"function"==typeof r?function(){var e;return"function"==typeof r&&(e=r.apply(void 0,arguments)),"function"==typeof n&&(e=n.apply(void 0,arguments)),e}:n}function U(e,t,r,n){var a=t.children,i=V(t,["children"]),o=B(a,null!=r&&r);return N(e,x({ref:n},i),o)}function L(e,t){var r=e.as,n=e.hasGap;return U(null!=r?r:"div",V(e,["as","hasGap"]),n,t)}var z=function(e){return r.forwardRef((function(t,r){var n=t.hasGap,a=V(t,["hasGap"]);return U(e,a,n,r)}))},G=Object.assign(r.forwardRef(L),{div:z("div"),a:z("a"),button:z("button"),h1:z("h1"),h2:z("h2"),h3:z("h3"),h4:z("h4"),h5:z("h5"),h6:z("h6"),label:z("label"),form:z("form"),section:z("section"),head:z("head"),main:z("main"),nav:z("nav")});function B(e,t){var n=t?"__wab_flex-container":"__wab_passthrough";return e?Array.isArray(e)?r.createElement.apply(r,["div",{className:n}].concat(e)):r.createElement("div",{className:n},e):null}function J(e,t,r,a){if(!e||0===Object.keys(e).length)return N(t,r,r.children);var i=Z(e),o=X(r,i.props);if("render"===i.type)return i.render(o,t);var s=t;"as"===i.type&&i.as&&(t===G?o.as=i.as:s=i.as);var l=o.children;i.wrapChildren&&(l=i.wrapChildren(function(e){return Array.isArray(e)?1===e.length?e[0]:n.createElement.apply(n,[n.Fragment,{}].concat(e)):e}(l))),a&&(l=B(l,!0));var u=N(s,o,l);return i.wrap&&(u=i.wrap(u)),u}var Y=new Map;function $(e,t){var r,n=t["data-plasmic-override"],a=t["data-plasmic-wrap-flex-child"],i=null!=(r=t["data-plasmic-trigger-props"])?r:[];delete t["data-plasmic-override"],delete t["data-plasmic-wrap-flex-child"],delete t["data-plasmic-trigger-props"];for(var o=arguments.length,s=new Array(o>2?o-2:0),l=2;l<o;l++)s[l-2]=arguments[l];return J(n,e,_.apply(void 0,[t,0===s.length?{}:{children:1===s.length?s[0]:s}].concat(i)),a)}var Q=Symbol("UNSET");function X(e,t){if(!t)return e;for(var r=x({},e),n=0,a=Object.keys(t);n<a.length;n++){var i=a[n],o=e[i],s=t[i];s===Q?delete r[i]:(null!=s||"className"===i||"style"===i||i.startsWith("on")&&"function"==typeof o||(s=R),r[i]=H(i,o,s))}return r}function Z(e){if(!e)return{type:"default",props:{}};if(function(e){return"string"==typeof e||"number"==typeof e||n.isValidElement(e)}(e))return{type:"default",props:{children:e}};if("object"==typeof e)return"as"in e?x({},e,{props:e.props||{},type:"as"}):"render"in e?x({},e,{type:"render"}):"props"in e?x({},e,{props:e.props||{},type:"default"}):(t=Object.keys(e),r=["wrap","wrapChildren"],t.every((function(e){return r.includes(e)}))?x({},e,{props:{},type:"default"}):{type:"default",props:e});if("function"==typeof e)return{type:"render",render:e};var t,r;throw new Error("Unexpected override: "+e)}function ee(e,t){if(!t)return e;for(var r={},n=0,a=Array.from(new Set([].concat(Object.keys(e),Object.keys(t))));n<a.length;n++){var i=a[n];r[i]=te(e[i],t[i])}return r}function te(e,t){var r,n;if(!e)return t;if(!t)return e;var a=Z(e),i=Z(t),o=F.apply(void 0,[a.wrap,i.wrap].filter(k)),s=F.apply(void 0,[a.wrapChildren,i.wrapChildren].filter(k)),l=X(null!=(r=a.props)?r:{},i.props);if("render"===i.type)return{render:i.render,props:l,wrap:o,wrapChildren:s};if("render"===a.type)return{render:a.render,props:l,wrap:o,wrapChildren:s};var u=null!=(n="as"===i.type?i.as:void 0)?n:"as"===a.type?a.as:void 0;return x({props:l,wrap:o,wrapChildren:s},u?{as:u}:{})}var re=r.createContext(void 0),ne=[640,750,828,1080,1200,1920,2048,3840],ae=[].concat([16,32,48,64,96,128,256,384],ne),ie=n.forwardRef((function(e,r){var a=e.src,i=e.className,o=e.displayWidth,s=e.displayHeight,l=e.displayMinWidth,u=e.displayMinHeight,c=e.displayMaxWidth,p=e.displayMaxHeight,d=e.quality,f=e.loader,v=e.imgRef,m=e.style,h=e.loading,y=V(e,["src","className","displayWidth","displayHeight","displayMinWidth","displayMinHeight","displayMaxWidth","displayMaxHeight","quality","loader","imgRef","style","loading"]),g=Object.assign({},y,{loading:null!=h?h:"lazy"}),b="string"!=typeof a&&a?a:{fullWidth:void 0,fullHeight:void 0,aspectRatio:void 0},P=b.fullWidth,w=b.fullHeight,S=b.aspectRatio,E=a?"string"==typeof a?a:"string"==typeof a.src?a.src:a.src.src:"";if(null==w||null==P)return n.createElement("img",Object.assign({src:E,className:i,style:m},g,{loading:h,ref:K(v,r)}));!se(E)||null!=s&&"auto"!==s||null!=o&&"auto"!==o||(o="100%");var O=o;P&&w&&(!o||"auto"===o)&&ue(s)&&(se(E)||(O=ue(s)*P/w));var C=P,k=w;S&&isFinite(S)&&se(E)&&(C=oe,k=Math.round(C/S));var I=function(e,t,r){var n=null==r?void 0:r.minWidth,a=ue(e),i=ue(n);if(null!=a&&(!n||null!=i))return{widthDescs:[{width:le(Math.max(a,null!=i?i:0),t),desc:"1x"},{width:le(2*Math.max(a,null!=i?i:0),t),desc:"2x"}],sizes:void 0};var o=ne.filter((function(e){return!t||e<t}));return t&&0===o.length?{widthDescs:[{width:le(t,t),desc:"1x"}],sizes:void 0}:{widthDescs:o.map((function(e){return{width:le(e,t),desc:e+"w"}})),sizes:"100vw"}}(O,P,{minWidth:l}),F=I.sizes,j=I.widthDescs,A=function(e){return null==e?void 0:"plasmic"===e?ce:e}(f),T='<svg width="'+C+'" height="'+k+'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>',R="undefined"==typeof window?Buffer.from(T).toString("base64"):window.btoa(T),D=x({},m||{}),N=x({},M(m||{},"objectFit","objectPosition"));return null!=o&&"auto"!==o?N.width="100%":(N.width=o,D.width="auto",l&&(N.minWidth="100%"),null!=c&&"none"!==c&&(N.maxWidth="100%")),null!=s&&"auto"!==s?N.height="100%":(N.height=s,D.height="auto",u&&(N.minHeight="100%"),null!=p&&"none"!==p&&(N.maxHeight="100%")),n.createElement("div",{className:t(i,"__wab_img-wrapper"),ref:r,style:D},n.createElement("img",{alt:"","aria-hidden":!0,className:"__wab_img-spacer-svg",src:"data:image/svg+xml;base64,"+R,style:N}),function(e){var t=e.imageLoader,r=e.widthDescs,a=e.src,i=e.quality,o=e.style,s=e.className,l=e.sizes,u=e.imgProps,c=e.ref;return n.createElement("picture",{className:"__wab_picture"},t&&t.supportsUrl(a)&&n.createElement("source",{type:"image/webp",srcSet:r.map((function(e){return t.transformUrl({src:a,quality:i,width:e.width,format:"webp"})+" "+e.desc})).join(", ")}),n.createElement("img",Object.assign({},u,{ref:c,className:s,decoding:"async",src:t&&t.supportsUrl(a)?t.transformUrl({src:a,quality:i,width:r[r.length-1].width}):a,srcSet:t&&t.supportsUrl(a)?r.map((function(e){return t.transformUrl({src:a,quality:i,width:e.width})+" "+e.desc})).join(", "):void 0,sizes:t&&t.supportsUrl(a)?l:void 0,style:x({},o?M(o,"objectFit","objectPosition"):{},{width:0,height:0})})))}({imageLoader:A,widthDescs:j,sizes:F,src:E,quality:d,ref:v,style:m?M(m,"objectFit","objectPosition"):void 0,imgProps:g,className:"__wab_img"}))})),oe=1e4;function se(e){return e.endsWith(".svg")||e.startsWith("data:image/svg")}function le(e,t){var r,n=null!=(r=ae.findIndex((function(t){return t>=e})))?r:ae.length-1,a=ae[n];if(!(a>=t||n+1<ae.length&&t<=ae[n+1]))return a}function ue(e){if(null!=e&&""!=e){if("number"==typeof e)return e;var t=function(e){var t=e.match(/^\s*(-?(?:\d+\.\d*|\d*\.\d+|\d+))\s*([a-z]*|%)\s*(?:\/\*.*)?$/i);if(null!=t)return{num:+t[1],units:t[2]}}(e);return!t||t.units&&"px"!==t.units?void 0:t.num}}var ce={supportsUrl:function(e){return e.startsWith("https://img.plasmic.app")&&!se(e)},transformUrl:function(e){var t,r=[e.width?"w="+e.width:void 0,"q="+(null!=(t=e.quality)?t:75),e.format?"f="+e.format:void 0].filter((function(e){return!!e}));return e.src+"?"+r.join("&")}},pe=n.forwardRef((function(e,t){if("nextjs"===e.platform&&e.href){var r=["href","replace","scroll","shallow","passHref","prefetch","locale"];return n.createElement(e.component,M.apply(void 0,[e].concat(r)),n.createElement("a",Object.assign({},I.apply(void 0,[e,"component","platform"].concat(r)),{ref:t})))}return"gatsby"===e.platform&&/^\/(?!\/)/.test(e.href)?n.createElement(e.component,x({},I(e,"component","platform","href"),{to:e.href,ref:t})):n.createElement("a",Object.assign({},I(e,"component","platform"),{ref:t}))})),de=n.createContext(void 0);function fe(e){var t={},r=0;return{str:function e(a){if(!a)return"";if("number"==typeof a||"boolean"==typeof a||"string"==typeof a)return a.toString();if("object"!=typeof a)return"";if(Array.isArray(a)||null!=(i=a)&&"function"==typeof i[Symbol.iterator])return Array.from(a).map((function(t){return e(t)})).filter((function(e){return!!e})).join("");var i,o=he(a,"props")&&he(a.props,"children")&&a.props.children||he(a,"children")&&a.children||[],s=""+n.Children.toArray(o).map((function(t){return e(t)})).filter((function(e){return!!e})).join("");if(n.isValidElement(a)&&a.type===n.Fragment)return s;var l=r+1;return r++,t[l]=n.isValidElement(a)?n.cloneElement(a,{key:l,children:void 0}):a,"<"+l+">"+s+"</"+l+">"}(e),components:t,componentsCount:r}}function ve(e){var t=e.children,r=n.useContext(de);if(!r)return me||(console.warn("Using Plasmic Translation but no translation function has been provided"),me=!0),t;var a=fe(t);return r(a.str,a.componentsCount>0?{components:a.components}:void 0)}var me=!1;function he(e,t){return"object"==typeof e&&null!==e&&t in e}function ye(e){var t=e.as,n=e.defaultContents,a=e.value,i=V(e,["as","defaultContents","value"]),o=void 0===a?n:a;if(!o||Array.isArray(o)&&0===o.length)return null;var s=function e(t){return!r.isValidElement(t)||t.type!==r.Fragment&&t.type!==ve?"string"==typeof t?t:Array.isArray(t)&&1===t.length&&"string"==typeof t[0]?t[0]:void 0:e(t.props.children)}(o);return s&&(o=r.createElement("div",{className:"__wab_slot-string-wrapper"},s)),0===Object.keys(i).filter((function(e){return!!i[e]})).length?r.createElement(r.Fragment,null,o):r.createElement(t||"div",_({className:"__wab_slot"},i),o)}var ge=[],be={};function Pe(){return T?Object.entries(be).filter((function(e){return window.matchMedia(e[1]).matches})).map((function(e){return e[0]})):[]}var we=void 0;T&&window.addEventListener("resize",(function(){var e=Pe();we&&e.join("")===we.join("")||(we=e,i.unstable_batchedUpdates((function(){return ge.forEach((function(e){return e()}))})))}));var Se=r.createContext(void 0),Ee=o.useIsSSR;function xe(){r.useContext(Se)}var Ve={useHover:function(){var e=r.useState(!1),t=e[1];return[e[0],{onMouseEnter:function(){return t(!0)},onMouseLeave:function(){return t(!1)}}]},useFocused:function(e){var t=s.useFocusRing({within:!1,isTextInput:e.isTextInput});return[t.isFocused,t.focusProps]},useFocusVisible:function(e){var t=s.useFocusRing({within:!1,isTextInput:e.isTextInput});return[t.isFocusVisible,t.focusProps]},useFocusedWithin:function(e){var t=s.useFocusRing({within:!0,isTextInput:e.isTextInput});return[t.isFocused,t.focusProps]},useFocusVisibleWithin:function(e){var t=s.useFocusRing({within:!0,isTextInput:e.isTextInput});return[t.isFocusVisible,t.focusProps]},usePressed:function(){var e=r.useState(!1),t=e[1];return[e[0],{onMouseDown:function(){return t(!0)},onMouseUp:function(){return t(!1)}}]}},Oe=t,Ce=!0;function ke(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter((function(e){return!!e.def})),a=j(n,(function(e){return e.def.group}));return A(a,(function(e){return Object.fromEntries(e.map((function(e){return[e.def.variant,!!e.active]})))}))}function Me(e){if(r.isValidElement(e)){var t=e.type;return t.__plumeType||(null==t.getPlumeType?void 0:t.getPlumeType(e.props))}}function Ie(e){return M(e,"className","style")}function Fe(e,t){return{plasmicProps:{variants:M.apply(void 0,[t].concat(e.internalVariantProps)),args:M.apply(void 0,[t].concat(e.internalArgProps)),overrides:{}}}}var je=/^(data-.*)$/;function Ae(e,t){var r=t.itemPlumeType,a=t.sectionPlumeType,i=t.invalidChildError,o=t.requireItemValue;return n.useMemo((function(){return function(e,t){if(!e)return{items:[],disabledKeys:[]};var r=t.itemPlumeType,a=t.sectionPlumeType,i=t.invalidChildError,o=0,s=0,l=[];return{items:function e(u){return W(u).flatMap((function(u){if(n.isValidElement(u)){if(u.type===n.Fragment)return e(u.props.children);var c,p=Me(u);if(p===r){var d=De(u=function(e){if(We(e,"value"))return o++,e;if(t.requireItemValue&&Ce)throw new Error('Must specify a "value" prop for '+function(e){if("string"==typeof e.type)return e.type;var t,r,n,a,i=e.type;return null!=(t=null!=(r=null!=(n=i.displayName)?n:i.name)?r:null==(a=i.render)?void 0:a.name)?t:"Component"}(e));return _e(e,{value:""+o++})}(u));return Ne(u,"isDisabled")&&d&&l.push(d),[u]}if(p===a)return[_e(u,{key:null!=(c=u.key)?c:"section-"+s++,children:e(Ne(u,"children"))})]}if(Ce)throw new Error(null!=i?i:"Unexpected child");return[]}))}(e),disabledKeys:l}}(e,{itemPlumeType:r,sectionPlumeType:a,invalidChildError:i,requireItemValue:o})}),[e,r,a,i,o])}function Te(e){return _e(e.rendered,{_node:e,key:e.key})}function Re(e,t){if(Me(e)===t.itemPlumeType){var r,a=e,i=Ne(a,"children");return n.createElement(f.Item,{key:De(a),textValue:null!=(r=Ne(a,"textValue"))?r:(o=i,"string"==typeof o?i:We(a,"value")?Ne(a,"value"):a.key),"aria-label":Ne(a,"aria-label")},a)}var o,s=e;return n.createElement(f.Section,{title:s,"aria-label":Ne(s,"aria-label"),items:Ne(s,"children")},(function(e){return Re(e,t)}))}function De(e){var t;return null!=(t=Ne(e,"value"))?t:e.key}function Ne(e,t){return"componentProps"in e.props?e.props.componentProps[t]:e.props[t]}function We(e,t){return"componentProps"in e.props?t in e.props.componentProps:t in e.props}function _e(e,t){return n.cloneElement(e,e.type.getPlumeType?x({componentProps:x({},e.props.componentProps,t)},t.key?{key:t.key}:{}):t)}var qe=r.createContext(void 0),Ke=r.createContext(void 0),He={itemPlumeType:"menu-item",sectionPlumeType:"menu-group"};function Ue(e,t){var n=e.triggerRef,a=e.isDisabled,i=e.placement,o=e.menuMatchTriggerWidth,s=e.menuWidth,l=e.menu,u=p.useMenuTrigger({type:"menu",isDisabled:a},t,n),c=u.menuProps;return{triggerProps:h.usePress(x({},u.menuTriggerProps,{isDisabled:a})).pressProps,makeMenu:function(){var e="function"==typeof l?l():l;if(!e)return null;if("menu"!==Me(e)){if(Ce)throw new Error("Must use an instance of the Menu component.");return null}return r.cloneElement(e,_(e.props,c))},triggerContext:r.useMemo((function(){var e;return{triggerRef:n,state:t,autoFocus:null==(e=t.focusStrategy)||e,placement:i,overlayMatchTriggerWidth:o,overlayMinTriggerWidth:!0,overlayWidth:s}}),[n,t,i,o,s])}}var Le=r.createContext(void 0),ze={itemPlumeType:"select-option",sectionPlumeType:"select-option-group"};function Ge(e){var t=e.state,n=e.menuProps,a=e.children,i=r.useRef(null),o=g.useListBox(x({},n,{isVirtualized:!1,autoFocus:t.focusStrategy||!0,disallowEmptySelection:!0}),t,i);return r.cloneElement(a,_(a.props,o.listBoxProps,{style:{outline:"none"},ref:i}))}var Be=Symbol("plasmic.unitialized");function Je(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Ye=function(e){return"symbol"!=typeof e&&!isNaN(+e)};function $e(e,t){var r=null!=t?t:function(){return{get:function(e,t){return e[t]},set:function(e,t,r){return(e[t]=r)||!0}}},n=function(t){return Object.fromEntries(Object.values(e).filter((function(e){return Je(t.map((function(e){return Ye(e)?"[]":e})),e.path.slice(0,t.length))})).map((function(e){var r=e.path[t.length];return e.path.length===t.length+1?[r,{isLast:!0,specKey:e.pathStr}]:[r,{isLast:!1,specKey:e.pathStr}]})))};return function e(t){var a=n(t);return new Proxy("[]"in a?[]:{},{deleteProperty:function(e,n){if(!("[]"in a)||!Ye(n))throw new Error("You can't delete a non-repeated property in the middle of the path");var i,o;return delete e[n],null==r||null==(i=(o=r({path:[].concat(t,[+n]),specKey:a["[]"].specKey})).deleteProperty)||i.call(o,e,n),!0},get:function(n,i,o){if("[]"in a&&Ye(i))i in n||(n[i]=e([].concat(t,[+i])));else if(i in a){var s,l;if(a[i].isLast)return n[i]=null==r||null==(s=(l=r({path:[].concat(t,[i]),specKey:a[i].specKey})).get)?void 0:s.call(l,n,i,o);i in n||(n[i]=e([].concat(t,[i])))}return n[i]},set:function(i,o,s,l){if("[]"in a&&Ye(o))o in i||(i[o]=e([].concat(t,[+o])));else if(o in a){var u,c,p;if(a[o].isLast)return i[o]=s,null!=(u=null==(c=(p=r({path:[].concat(t,[o]),specKey:a[o].specKey})).set)?void 0:c.call(p,i,o,s,l))&&u}return"registerInitFunc"===o?i[o]=s:"object"==typeof s&&function e(t,a,i){if("object"==typeof i)for(var o=n(a),s=0,l=Object.entries(o);s<l.length;s++){var u=l[s],c=u[0],p=u[1],d=p.isLast,f=p.specKey;if("[]"===c&&Array.isArray(i))for(var v=0;v<i.length;v++)e(t[v],[].concat(a,[v]),i[v]);else if(c in i){var m,h;d?null==r||null==(m=(h=r({specKey:f,path:[].concat(a,[c])})).set)||m.call(h,t,c,i[c],void 0):e(t[c],[].concat(a,[c]),i[c])}}}(i[o],[].concat(t,[Ye(o)?+o:o]),s),!0}})}([])}function Qe(e,t,r){var n=$e(e);return Object.values(t).forEach((function(e){var t=e.path;E.dset(n,t,S(r,t))})),n}function Xe(e,t){t[JSON.stringify(e.path)]=e}function Ze(e,t,r,n){for(var a=[new Set],i={},o=Object.assign($e(e,(function(n){return{get:function(s,l){var u=e[n.specKey];if(u.valueProp)return u.isRepeated?S(t[u.valueProp],n.path.slice(1)):t[u.valueProp];var c=S(r,n.path);return c===Be&&(c=function(r){a.push(new Set);var n=e[r.specKey].initFunc(t,o),s=a.pop();return i[JSON.stringify(r.path)]=[].concat(s.values()),n}(n),E.dset(r,n.path,c)),a[a.length-1].add(JSON.stringify(n.path)),c},set:function(){throw new Error("Cannot update state values during initialization")}}})),{registerInitFunc:function(){}}),s=0,l=Object.values(n);s<l.length;s++){var u=l[s].path;S(r,u)===Be&&S(o,u)}return i}exports.DropdownMenu=function(e){var t=e.isOpen,n=e.defaultOpen,a=e.onOpenChange,i=e.children,o=e.placement,s=e.menu,l=r.useRef(null),u=m.useMenuTriggerState({isOpen:t,defaultOpen:n,onOpenChange:a,shouldFlip:!0}),c=Ue({triggerRef:l,placement:o,menu:s},u),p=c.makeMenu;return r.createElement(qe.Provider,{value:c.triggerContext},r.cloneElement(i,_(i.props,c.triggerProps,{ref:l})),u.isOpen&&p())},exports.PlasmicHead=function(e){var t=r.useContext(re);return t?r.createElement(t,null,e.image?r.createElement(r.Fragment,null,r.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),r.createElement("meta",{key:"og:image",property:"og:image",content:e.image}),r.createElement("meta",{key:"twitter:image",name:"twitter:image",content:e.image})):r.createElement("meta",{name:"twitter:card",content:"summary"}),e.title&&r.createElement(r.Fragment,null,r.createElement("title",{key:"title"},e.title),r.createElement("meta",{key:"og:title",property:"og:title",content:e.title}),r.createElement("meta",{key:"twitter:title",property:"twitter:title",content:e.title})),e.description&&r.createElement(r.Fragment,null,r.createElement("meta",{key:"description",name:"description",content:e.description}),r.createElement("meta",{key:"og:description",property:"og:description",content:e.description}),r.createElement("meta",{key:"twitter:description",name:"twitter:description",content:e.description})),e.canonical&&r.createElement("link",{ref:"canonical",href:e.canonical})):(console.warn("Plasmic: Head meta tags are being ignored. To make them work, pass a Head component into PlasmicRootProvider."),null)},exports.PlasmicIcon=function(e){var t=e.PlasmicIconType,n=V(e,["PlasmicIconType"]);return r.createElement(t,Object.assign({},n))},exports.PlasmicImg=ie,exports.PlasmicLink=pe,exports.PlasmicRootProvider=function(e){var t=e.platform,n=e.children,a=r.useMemo((function(){return{platform:t}}),[t]);return r.createElement(Se.Provider,{value:a},r.createElement(o.SSRProvider,null,r.createElement(de.Provider,{value:e.translator},r.createElement(re.Provider,{value:e.Head},n))))},exports.PlasmicSlot=function(e){return ye(e)},exports.SelectContext=Le,exports.Stack=G,exports.Trans=ve,exports.TriggeredOverlayContext=qe,exports.classNames=Oe,exports.createPlasmicElementProxy=function(e,t){null==t&&(t={});var r=t["data-plasmic-name"],n=t["data-plasmic-root"],a=t["data-plasmic-for-node"];delete t["data-plasmic-name"],delete t["data-plasmic-root"],delete t["data-plasmic-for-node"];for(var i=arguments.length,o=new Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];var l=$.apply(void 0,[e,t].concat(o));if(r&&Y.set(r,l),n){var u,c=a?null!=(u=Y.get(a))?u:null:l;return Y.clear(),c}return l},exports.createUseScreenVariants=function(e,t){return Object.assign(be,t),we=void 0,function(){var t=r.useState()[1],n=r.useRef(we||[]);return D((function(){var e=function(){we&&n.current.join("")!==we.join("")&&(n.current=we,t({}))};return ge.push(e),void 0===we&&(we=Pe()),e(),function(){ge.splice(ge.indexOf(e),1)}}),[]),e?we||[]:we?we[we.length-1]:void 0}},exports.deriveRenderOpts=function(e,t){var r,n,a,i,o,s=t.name,l=t.descendantNames,u=t.internalVariantPropNames,c=t.internalArgPropNames,p=["variants","args","overrides"],d=(r=I.apply(void 0,[M.apply(void 0,[e].concat(u))].concat(p)),n=e.variants,r&&n?x({},r,n):r||n||{}),f=(a=I.apply(void 0,[M.apply(void 0,[e].concat(c))].concat(p)),i=e.args,a&&i?x({},a,i):a||i||{}),v=ee(I.apply(void 0,[M.apply(void 0,[e].concat(l))].concat(c,u,p)),e.overrides),m=I.apply(void 0,[e,"variants","args","overrides"].concat(l,u,c));return Object.keys(m).length>0&&(v=ee(v,((o={})[s]={props:m},o))),{variants:d,args:f,overrides:v}},exports.ensureGlobalVariants=function(e){return Object.entries(e).filter((function(e){return"PLEASE_RENDER_INSIDE_PROVIDER"===e[1]})).forEach((function(t){e[t[0]]=void 0})),e},exports.genTranslatableString=fe,exports.generateStateOnChangeProp=function(e,t,r){return function(n,a){return E.dset(e,[t].concat(r,a),n)}},exports.generateStateValueProp=function(e,t){return S(e,t)},exports.getDataProps=function(e){return function(e,t){for(var r={},n=0,a=Object.entries(e);n<a.length;n++){var i=a[n][0];je.test(i)&&(r[i]=e[i])}return r}(e)},exports.hasVariant=function(e,t,r){if(null==e)return!1;var n=e[t];return null!=n&&(!0===n?r===t:!1!==n&&(Array.isArray(n)?n.includes(r):"string"==typeof n?n===r:void 0!==n[r]&&!1!==n[r]))},exports.makeFragment=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.createElement.apply(r,[r.Fragment,{}].concat(t))},exports.omit=I,exports.pick=M,exports.plasmicHeadMeta={name:"hostless-plasmic-head",displayName:"Head",description:"Used to add page metadata to HEAD tag",importName:"PlasmicHead",importPath:"@plasmicapp/react-web",isRepeatable:!1,styleSections:!1,props:{title:{type:"string",displayName:"Title"},description:{type:"string",displayName:"Description"},image:{type:"imageUrl",displayName:"Image"},canonical:{type:"string",displayName:"Canonical URL"}}},exports.renderPlasmicSlot=ye,exports.setPlumeStrictMode=function(e){Ce=e},exports.useButton=function(e,t,r,n){var a,i,o,s;void 0===n&&(n=null);var l=t.link,u=t.isDisabled,c=t.startIcon,p=t.endIcon,d=t.showStartIcon,f=t.showEndIcon,v=t.children,m=V(t,["link","isDisabled","startIcon","endIcon","showStartIcon","showEndIcon","children"]);return{plasmicProps:{variants:x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:r.showStartIconVariant,active:d},{def:r.showEndIconVariant,active:f},{def:r.isDisabledVariant,active:u})),args:x({},M.apply(void 0,[t].concat(e.internalArgProps)),r.startIconSlot&&((a={})[r.startIconSlot]=c,a),r.endIconSlot&&((i={})[r.endIconSlot]=p,i),((o={})[r.contentSlot]=v,o)),overrides:((s={})[r.root]={as:l?"a":"button",props:x({},I.apply(void 0,[m].concat(e.internalArgProps,e.internalVariantProps)),{ref:n,disabled:u},!!l&&{href:l})},s)}}},exports.useCheckbox=function(e,t,n,a){var i,o;void 0===a&&(a=null);var s=t.children,p=t.isDisabled,d=t.isIndeterminate;xe();var f=r.useRef(null),v=r.useRef(null),m=function(e){var t=x({},e,{isSelected:e.isChecked,defaultSelected:e.defaultChecked});return delete t.isChecked,delete t.defaultChecked,t}(t),h=c.useToggleState(m),y=l.useCheckbox(m,h,f).inputProps,g=x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.isDisabledVariant,active:p},{def:n.isCheckedVariant,active:h.isSelected},{def:n.isIndeterminateVariant,active:d},{def:n.noLabelVariant,active:!s})),b=((i={})[n.root]={as:"label",props:_(Ie(t),{ref:v}),wrapChildren:function(e){return r.createElement(r.Fragment,null,r.createElement(u.VisuallyHidden,{isFocusable:!0},r.createElement("input",Object.assign({},y,{ref:f}))),e)}},i),P=x({},M.apply(void 0,[t].concat(e.internalArgProps)),n.labelSlot?((o={})[n.labelSlot]=s,o):{}),w=r.useMemo((function(){return{setChecked:function(e){return h.setSelected(e)}}}),[h]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return v.current},focus:function(){var e;return null==(e=f.current)?void 0:e.focus()},blur:function(){var e;return null==(e=f.current)?void 0:e.blur()},setChecked:function(e){return w.setChecked(e)}}}),[v,f,w]),{plasmicProps:{variants:g,overrides:b,args:P},state:w}},exports.useDollarState=function(e,t){for(var r=n.useState(0)[1],a=n.useMemo((function(){var t=Object.fromEntries(e.map((function(e){var t,r=e.path;return[r,x({},V(e,["path"]),{pathStr:r,path:(t=r,t.split(".").flatMap((function e(t){return t.endsWith("[]")?[].concat(e(t.slice(0,-2)),["[]"]):[t]}))),isRepeated:r.split(".").some((function(e){return e.endsWith("[]")}))})]})));return{stateValues:$e(t),initStateDeps:{},initStateValues:$e(t),states:{},specs:t}}),[]),i=Object.assign($e(a.specs,(function(e){return{deleteProperty:function(t,n){for(var i=e.path,o=0,s=Object.entries(a.states);o<s.length;o++){var l=s[o],u=l[0],c=l[1];c.path.length>=i.length&&Je(c.path.slice(0,i.length),i)&&delete a.states[u]}return r((function(e){return e+1})),!0},get:function(n,o){var s=a.specs[e.specKey];if(s.valueProp)return s.isRepeated?S(t[s.valueProp],e.path.slice(1)):t[s.valueProp];if(!function(e,t){return JSON.stringify(e.path)in t}(e,a.states)){var l;Xe(e,a.states),E.dset(a.stateValues,e.path,s.initFunc?Be:null!=(l=s.initVal)?l:void 0);var u=s.initFunc?Ze(a.specs,t,a.stateValues,a.states):{};return E.dset(a.initStateValues,e.path,S(a.stateValues,e.path)),a.initStateDeps=x({},a.initStateDeps,u),r((function(e){return e+1})),s.initFunc?s.initFunc(t,i):s.initVal}return S(a.stateValues,e.path)},set:function(n,i,o){if(o!==S(a.stateValues,e.path)){Xe(e,a.states),E.dset(a.stateValues,e.path,o);for(var s=0,l=Object.entries(a.initStateDeps);s<l.length;s++){var u=l[s],c=u[0];u[1].includes(JSON.stringify(e.path))&&E.dset(a.stateValues,JSON.parse(c),Be)}var p=Ze(a.specs,t,a.stateValues,a.states);a.initStateDeps=x({},a.initStateDeps,p),r((function(e){return e+1}))}var d,f=a.specs[e.specKey];return f.onChangeProp&&(null==(d=t[f.onChangeProp])||d.call(t,o,e.path)),!0}}})),{registerInitFunc:function(e,n){Object.values(a.states).filter((function(t){return t.specKey===e})).some((function(e){return S(a.stateValues,e.path)!==n(t,i)}))&&(a.specs[e]=x({},a.specs[e],{initFunc:n}),r((function(e){return e+1})))}}),o=void 0,s=[],l=0,u=Object.values(a.states);l<u.length;l++){var c=u[l],p=c.path,d=c.specKey,f=a.specs[d];if(f.initFunc){var v=f.initFunc(t,i);v!==S(a.initStateValues,p)&&(console.log("init changed for "+JSON.stringify(p)+" from "+S(a.initStateValues,p)+" to "+v+"; resetting state"),s.push({path:p,specKey:d}),o||(o=Qe(a.specs,a.states,a.stateValues)),E.dset(o,p,Be))}}n.useLayoutEffect((function(){if(void 0!==o){var e=Ze(a.specs,t,o,a.states),n=Qe(a.specs,a.states,a.initStateValues);s.forEach((function(e){var t=e.path;E.dset(n,t,S(o,t))})),a.stateValues=Qe(a.specs,a.states,o),a.initStateValues=n,a.initStateDeps=x({},a.initStateDeps,e),r((function(e){return e+1}));for(var i,l=C(s);!(i=l()).done;){var u,c=i.value,p=c.path,d=a.specs[c.specKey];d.onChangeProp&&(console.log("Firing onChange for reset init value: "+d.path,S(o,p)),null==(u=t[d.onChangeProp])||u.call(t,S(o,p)))}}}),[o,t,s,a.specs]);for(var m=0,h=Object.values(a.states);m<h.length;m++)S(i,h[m].path);return i},exports.useIsSSR=Ee,exports.useMenu=function(e,t,n,a){var i,o;void 0===a&&(a=null),xe();var s=function(e){var t=e.children,n=V(e,["children"]),a=Ae(t,x({},He,{invalidChildError:"Can only use Menu.Item and Menu.Group as children to Menu",requireItemValue:!1})),i=a.items,o=a.disabledKeys;return{ariaProps:x({},n,{children:r.useCallback((function(e){return Re(e,He)}),[]),items:i,disabledKeys:o})}}(t).ariaProps,l=r.useContext(qe),u=r.useRef(null),c=d.useTreeState(s),f=r.useRef(null),v=p.useMenu(x({},s,{autoFocus:null==l?void 0:l.autoFocus}),c,f).menuProps,m=r.useMemo((function(){return{state:c,menuProps:t}}),[c,t]),h=x({},M.apply(void 0,[t].concat(e.internalVariantProps))),y=((i={})[n.root]={props:_(Ie(t),{ref:u})},i[n.itemsContainer]={as:"ul",props:_(v,{ref:f,style:x({},{outline:"none"})})},i),g=x({},M.apply(void 0,[t].concat(e.internalArgProps)),((o={})[n.itemsSlot]=r.createElement(Ke.Provider,{value:m},Array.from(c.collection).map((function(e){return Te(e)}))),o)),b=r.useMemo((function(){return{getFocusedValue:function(){return c.selectionManager.focusedKey},setFocusedValue:function(e){return c.selectionManager.setFocusedKey(e)}}}),[c]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return u.current},getFocusedValue:function(){return b.getFocusedValue()},setFocusedValue:function(e){return b.setFocusedValue(e)}}}),[u,b]),{plasmicProps:{variants:h,args:g,overrides:y},state:b}},exports.useMenuButton=function(e,t,n,a){var i,o;void 0===a&&(a=null);var l=t.placement,u=t.isOpen,c=t.defaultOpen,p=t.onOpenChange,d=t.isDisabled,f=t.menu,v=t.autoFocus,h=t.menuMatchTriggerWidth,y=t.menuWidth;xe();var g=r.useRef(null),b=r.useRef(null),P=m.useMenuTriggerState({isOpen:u,defaultOpen:c,onOpenChange:p,shouldFlip:!0}),w=Ue({isDisabled:d,triggerRef:b,placement:l,menuMatchTriggerWidth:h,menuWidth:y,menu:f},P),S=w.triggerProps,E=w.makeMenu,V=w.triggerContext,O=s.useFocusable(t,b).focusableProps,C=x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.isOpenVariant,active:P.isOpen},{def:n.isDisabledVariant,active:d})),k=x({},M.apply(void 0,[t].concat(e.internalArgProps)),((i={})[n.menuSlot]=P.isOpen?E():void 0,i)),I=((o={})[n.root]={wrapChildren:function(e){return r.createElement(qe.Provider,{value:V},e)},props:{ref:g}},o[n.trigger]={props:_(S,O,Ie(t),M(t,"title"),{ref:b,autoFocus:v,disabled:!!d,type:"button"})},o),F=r.useMemo((function(){return{open:function(){return P.open()},close:function(){return P.close()},isOpen:function(){return P.isOpen}}}),[P]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return g.current},getTrigger:function(){return b.current},focus:function(){return b.current&&b.current.focus()},blur:function(){return b.current&&b.current.blur()},open:F.open,close:F.close,isOpen:F.isOpen}}),[g,b,F]),{plasmicProps:{variants:C,args:k,overrides:I},state:F}},exports.useMenuGroup=function(e,t,n){var a,i,o=r.useContext(Ke),s=t._node;if(!o||!s){if(Ce)throw new Error("You can only use a Menu.Group within a Menu component.");return Fe(e,t)}var l=p.useMenuSection({heading:t.title,"aria-label":t["aria-label"]}),u=l.headingProps,c=l.groupProps,d=v.useSeparator({elementType:"li"}).separatorProps;return{plasmicProps:{variants:x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.noTitleVariant,active:!t.title},{def:n.isFirstVariant,active:o.state.collection.getFirstKey()===s.key})),args:x({},M.apply(void 0,[t].concat(e.internalArgProps)),((a={})[n.titleSlot]=t.title,a[n.itemsSlot]=Array.from(s.childNodes).map((function(e){return Te(e)})),a)),overrides:((i={})[n.root]={props:Ie(t)},i[n.separator]={props:x({},d),as:"li"},i[n.titleContainer]=x({props:x({role:"presentation"},u)},!t.title&&{render:function(){return null}}),i[n.itemsContainer]={props:x({},c),as:"ul"},i)}}},exports.useMenuItem=function(e,t,n){var a,i,o=r.useContext(Ke),s=r.useContext(qe);if(!o){if(Ce)throw new Error("You can only use a Menu.Item within a Menu component.");return Fe(e,t)}var l=t.children,u=t.onAction,c=o.state,d=o.menuProps,f=t._node,v=c.disabledKeys.has(f.key),m=c.selectionManager.isFocused&&c.selectionManager.focusedKey===f.key,h=r.useRef(null),y=p.useMenuItem(_({onAction:u},{onAction:d.onAction,onClose:null==s?void 0:s.state.close},{isDisabled:v,"aria-label":f&&f["aria-label"],key:f.key,isVirtualized:!1,closeOnSelect:!0}),c,h),g=y.menuItemProps,b=y.labelProps;return{plasmicProps:{variants:x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.isDisabledVariant,active:v},{def:n.isHighlightedVariant,active:m})),args:x({},M.apply(void 0,[t].concat(e.internalArgProps)),((a={})[n.labelSlot]=l,a)),overrides:((i={})[n.root]={as:"li",props:_(g,{ref:h,style:{outline:"none"}})},i[n.labelContainer]={props:x({},b)},i)}}},exports.useSelect=function(e,t,n,a){var i,o;void 0===a&&(a=null),xe();var s=function(e){var t=e.value,n=e.defaultValue,a=e.children,i=e.onChange,o=V(e,["value","defaultValue","children","onChange","placement","menuMatchTriggerWidth","menuWidth"]),s=Ae(a,x({},ze,{invalidChildError:"Can only use Select.Option and Select.OptionGroup as children to Select",requireItemValue:!0})),l=s.items,u=s.disabledKeys;return{ariaProps:x({},o,{children:r.useCallback((function(e){return Re(e,ze)}),[]),onSelectionChange:r.useMemo((function(){return i?function(e){return i(null==e||"null"===e?null:e)}:void 0}),[i]),items:l,disabledKeys:u,defaultSelectedKey:n},"value"in e&&{selectedKey:null!=t?t:null})}}(t).ariaProps,l=t.placement,u=b.useSelectState(s),c=r.useRef(null),p=r.useRef(null),d=t.isDisabled,f=t.name,v=t.menuWidth,m=t.menuMatchTriggerWidth,g=t.autoFocus,P=t.placeholder,w=t.selectedContent,S=y.useSelect(s,u,c),E=S.menuProps,O=h.usePress(x({},S.triggerProps,{isDisabled:d})).pressProps,C=u.selectedItem?null!=w?w:Ne(u.selectedItem.value,"children"):null,k=x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.isOpenVariant,active:u.isOpen},{def:n.placeholderVariant,active:!u.selectedItem},{def:n.isDisabledVariant,active:d})),I=r.useMemo((function(){return{triggerRef:c,state:u,placement:l,overlayMatchTriggerWidth:m,overlayMinTriggerWidth:!0,overlayWidth:v}}),[c,u,l,m,v]),F=((i={})[n.root]={props:_(Ie(t),{ref:p}),wrapChildren:function(e){return r.createElement(r.Fragment,null,r.createElement(y.HiddenSelect,{state:u,triggerRef:c,name:f,isDisabled:d}),e)}},i[n.trigger]={props:_(O,{ref:c,autoFocus:g,disabled:!!d,type:"button"})},i[n.overlay]={wrap:function(e){return r.createElement(qe.Provider,{value:I},e)}},i[n.optionsContainer]={wrap:function(e){return r.createElement(Ge,{state:u,menuProps:E},e)}},i),j=x({},M.apply(void 0,[t].concat(e.internalArgProps)),((o={})[n.triggerContentSlot]=C,o[n.placeholderSlot]=P,o[n.optionsSlot]=r.createElement(Le.Provider,{value:u},Array.from(u.collection).map((function(e){return Te(e)}))),o)),A=r.useMemo((function(){return{open:function(){return u.open()},close:function(){return u.close()},isOpen:function(){return u.isOpen},getSelectedValue:function(){return u.selectedKey?""+u.selectedKey:null},setSelectedValue:function(e){return u.setSelectedKey(e)}}}),[u]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return p.current},getTrigger:function(){return c.current},focus:function(){var e;return null==(e=c.current)?void 0:e.focus()},blur:function(){var e;return null==(e=c.current)?void 0:e.blur()},open:function(){return A.open()},close:function(){return A.close()},isOpen:function(){return A.isOpen()},getSelectedValue:function(){return A.getSelectedValue()},setSelectedValue:function(e){return A.setSelectedValue(e)}}}),[p,c,A]),{plasmicProps:{variants:k,args:j,overrides:F},state:A}},exports.useSelectOption=function(e,t,n,a){var i,o;void 0===a&&(a=null);var s=r.useContext(Le);if(!s){if(Ce)throw new Error("You can only use a Select.Option within a Select component.");return Fe(e,t)}var l=t.children,u=r.useRef(null),c=K(u,a),p=t._node,d=s.selectionManager.isSelected(p.key),f=s.disabledKeys.has(p.key),v=s.selectionManager.isFocused&&s.selectionManager.focusedKey===p.key,m=g.useOption({isSelected:d,isDisabled:f,"aria-label":p&&p["aria-label"],key:p.key,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,isVirtualized:!1},s,u),h=m.optionProps,y=m.labelProps;return{plasmicProps:{variants:x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.isSelectedVariant,active:d},{def:n.isDisabledVariant,active:f},{def:n.isHighlightedVariant,active:v})),args:x({},M.apply(void 0,[t].concat(e.internalArgProps)),((i={})[n.labelSlot]=l,i)),overrides:((o={})[n.root]={props:_(h,Ie(t),{ref:c,style:{outline:"none"}})},o[n.labelContainer]={props:y},o)}}},exports.useSelectOptionGroup=function(e,t,n){var a,i,o=r.useContext(Le),s=t._node;if(!o||!s){if(Ce)throw new Error("You can only use a Select.OptionGroup within a Select component.");return Fe(e,t)}var l=g.useListBoxSection({heading:t.title,"aria-label":t["aria-label"]}),u=l.headingProps,c=l.groupProps,p=v.useSeparator({elementType:"li"}).separatorProps;return{plasmicProps:{variants:x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.noTitleVariant,active:!t.title},{def:n.isFirstVariant,active:o.collection.getFirstKey()===s.key})),args:x({},M.apply(void 0,[t].concat(e.internalArgProps)),((a={})[n.titleSlot]=t.title,a[n.optionsSlot]=Array.from(s.childNodes).map((function(e){return Te(e)})),a)),overrides:((i={})[n.root]={props:Ie(t)},i[n.separator]={props:x({},p)},i[n.titleContainer]=x({props:x({role:"presentation"},u)},!t.title&&{render:function(){return null}}),i[n.optionsContainer]={props:x({},c)},i)}}},exports.useSwitch=function(e,t,n,a){var i,o;void 0===a&&(a=null);var s=t.children,l=t.isDisabled;xe();var p=r.useRef(null),d=r.useRef(null),f=function(e){var t=x({},e,{isSelected:e.isChecked,defaultSelected:e.defaultChecked});return delete t.isChecked,delete t.defaultChecked,t}(t),v=c.useToggleState(f),m=P.useSwitch(f,v,p).inputProps,h=x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.isDisabledVariant,active:l},{def:n.isCheckedVariant,active:v.isSelected},{def:n.noLabelVariant,active:!s})),y=((i={})[n.root]={as:"label",props:_(Ie(t),{ref:d}),wrapChildren:function(e){return r.createElement(r.Fragment,null,r.createElement(u.VisuallyHidden,{isFocusable:!0},r.createElement("input",Object.assign({},m,{ref:p}))),e)}},i),g=x({},M.apply(void 0,[t].concat(e.internalArgProps)),n.labelSlot?((o={})[n.labelSlot]=s,o):{}),b=r.useMemo((function(){return{setChecked:function(e){return v.setSelected(e)}}}),[v]);return r.useImperativeHandle(a,(function(){return{getRoot:function(){return d.current},focus:function(){var e;return null==(e=p.current)?void 0:e.focus()},blur:function(){var e;return null==(e=p.current)?void 0:e.blur()},setChecked:function(e){return b.setChecked(e)}}}),[d,p,b]),{plasmicProps:{variants:h,overrides:y,args:g},state:b}},exports.useTextInput=function(e,t,n,a){var i,o,s;void 0===a&&(a=null);var l=t.isDisabled,u=t.startIcon,c=t.endIcon,p=t.showStartIcon,d=t.showEndIcon,f=t.className,v=t.style,m=t.inputClassName,h=t.inputStyle,y=V(t,["isDisabled","startIcon","endIcon","showStartIcon","showEndIcon","className","style","inputClassName","inputStyle"]),g=r.useRef(null),b=r.useRef(null);return r.useImperativeHandle(a,(function(){return{focus:function(){var e;null==(e=b.current)||e.focus()},blur:function(){var e;null==(e=b.current)||e.blur()},getRoot:function(){return g.current},getInput:function(){return b.current}}}),[g,b]),{plasmicProps:{variants:x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.showStartIconVariant,active:p},{def:n.showEndIconVariant,active:d},{def:n.isDisabledVariant,active:l})),args:x({},M.apply(void 0,[t].concat(e.internalArgProps)),n.startIconSlot&&((i={})[n.startIconSlot]=u,i),n.endIconSlot&&((o={})[n.endIconSlot]=c,o)),overrides:((s={})[n.root]={props:{ref:g,className:f,style:v}},s[n.input]={props:x({},I.apply(void 0,[y].concat(e.internalArgProps.filter((function(e){return"required"!==e})),e.internalVariantProps)),{disabled:l,ref:b,className:m,style:h})},s)}}},exports.useTrigger=function(e,t){return Ve[e](t)},exports.useTriggeredOverlay=function(e,t,n,i,o){var l,u;void 0===i&&(i=null),void 0===o&&(o=!0);var c=r.useRef(null),p=K(c,i),d=r.useContext(qe);if(!d){if(Ce)throw new Error("You can only use a triggered overlay with a TriggeredOverlayContext");return Fe(e,t)}var f=t.children,v=d.triggerRef,m=d.placement,h=d.overlayMatchTriggerWidth,y=d.overlayMinTriggerWidth,g=d.overlayWidth,b=d.state,P=r.useState(!1),S=P[0],E=P[1],V=v.current&&(h||y)?v.current.offsetWidth:void 0;D((function(){!S&&v.current&&(h||y)&&E(!0)}),[v,S,h,y]);var O=w.useOverlay({isOpen:b.isOpen,onClose:b.close,isDismissable:o,shouldCloseOnBlur:!0},c).overlayProps,C=w.useOverlayPosition({targetRef:v,overlayRef:c,placement:null!=m?m:"bottom left",shouldFlip:!0,isOpen:b.isOpen,onClose:b.close,containerPadding:0}),k=C.overlayProps,I=C.updatePosition,F=C.placement;D((function(){b.isOpen&&requestAnimationFrame((function(){I()}))}),[b.isOpen,I]);var j=_({style:{left:"auto",right:"auto",top:"auto",bottom:"auto",position:"absolute",width:null!=g?g:h?V:"auto",minWidth:y?V:"auto"}},O,k);return{plasmicProps:{variants:x({},M.apply(void 0,[t].concat(e.internalVariantProps)),ke({def:n.isPlacedTopVariant,active:"top"===F},{def:n.isPlacedBottomVariant,active:"bottom"===F},{def:n.isPlacedLeftVariant,active:"left"===F},{def:n.isPlacedRightVariant,active:"right"===F})),args:x({},M.apply(void 0,[t].concat(e.internalArgProps)),((l={})[n.contentSlot]=r.createElement(s.FocusScope,{restoreFocus:!0},r.createElement(w.DismissButton,{onDismiss:b.close}),f),l)),overrides:((u={})[n.root]={props:_(j,Ie(t),{ref:p}),wrap:function(e){return"undefined"!=typeof document?a.createPortal(e,document.body):e}},u)}}},exports.wrapWithClassName=function(e,t){var n=r.isValidElement(e)&&e.key||void 0;return r.createElement("div",{key:n,className:t,style:{display:"grid"}},e)};
//# sourceMappingURL=react-web.cjs.production.min.js.map

@@ -16,2 +16,4 @@ import * as React from "react";

importPath: string;
isRepeatable: boolean;
styleSections: boolean;
props: {

@@ -18,0 +20,0 @@ title: {

{
"name": "@plasmicapp/react-web",
"version": "0.2.108",
"version": "0.2.109",
"description": "plasmic library for rendering in the presentational style",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -9,4 +9,4 @@ import classNames$1 from 'classnames';

export { PlasmicImg } from './render/PlasmicImg/index.js';
import { T as Trans } from './ssr-84e27ffb.js';
export { P as PlasmicRootProvider, T as Trans, g as genTranslatableString, u as useIsSSR } from './ssr-84e27ffb.js';
import { T as Trans } from './ssr-b1615b80.js';
export { P as PlasmicRootProvider, T as Trans, g as genTranslatableString, u as useIsSSR } from './ssr-b1615b80.js';
import ReactDOM__default from 'react-dom';

@@ -13,0 +13,0 @@ import { useFocusRing } from '@react-aria/focus';

@@ -7,3 +7,3 @@ import { a as __assign, p as pick, b as __spreadArray, c as __read } from '../../common-182a0b0c.js';

import { m as mergeProps } from '../../react-utils-35cb2a4e.js';
import { a as useEnsureSSRProvider } from '../../ssr-84e27ffb.js';
import { a as useEnsureSSRProvider } from '../../ssr-b1615b80.js';
import { m as mergeVariantToggles } from '../../plume-utils-623b91cc.js';

@@ -10,0 +10,0 @@ import { g as getStyleProps } from '../../props-utils-b2ad4997.js';

@@ -10,3 +10,3 @@ import * as React from 'react';

import { useFocusable } from '@react-aria/focus';
import { a as useEnsureSSRProvider } from '../../ssr-84e27ffb.js';
import { a as useEnsureSSRProvider } from '../../ssr-b1615b80.js';
import { g as getStyleProps } from '../../props-utils-b2ad4997.js';

@@ -13,0 +13,0 @@ import 'classnames';

@@ -6,3 +6,3 @@ import { a as __assign, p as pick, b as __spreadArray, c as __read, _ as __rest } from '../../common-182a0b0c.js';

import { m as mergeProps } from '../../react-utils-35cb2a4e.js';
import { a as useEnsureSSRProvider } from '../../ssr-84e27ffb.js';
import { a as useEnsureSSRProvider } from '../../ssr-b1615b80.js';
import { r as renderCollectionNode, u as useDerivedItemsFromChildren, a as renderAsCollectionChild } from '../../collection-utils-57c273dc.js';

@@ -9,0 +9,0 @@ import { n as noOutline, m as mergeVariantToggles } from '../../plume-utils-623b91cc.js';

@@ -8,3 +8,3 @@ import { a as __assign, p as pick, b as __spreadArray, c as __read, _ as __rest } from '../../common-182a0b0c.js';

import { m as mergeProps, d as mergeRefs } from '../../react-utils-35cb2a4e.js';
import { a as useEnsureSSRProvider } from '../../ssr-84e27ffb.js';
import { a as useEnsureSSRProvider } from '../../ssr-b1615b80.js';
import { g as getChildProp, r as renderCollectionNode, u as useDerivedItemsFromChildren, a as renderAsCollectionChild } from '../../collection-utils-57c273dc.js';

@@ -11,0 +11,0 @@ import { m as mergeVariantToggles, n as noOutline } from '../../plume-utils-623b91cc.js';

@@ -7,3 +7,3 @@ import { a as __assign, p as pick, b as __spreadArray, c as __read } from '../../common-182a0b0c.js';

import { m as mergeProps } from '../../react-utils-35cb2a4e.js';
import { a as useEnsureSSRProvider } from '../../ssr-84e27ffb.js';
import { a as useEnsureSSRProvider } from '../../ssr-b1615b80.js';
import { m as mergeVariantToggles } from '../../plume-utils-623b91cc.js';

@@ -10,0 +10,0 @@ import { g as getStyleProps } from '../../props-utils-b2ad4997.js';

@@ -16,2 +16,4 @@ import * as React from "react";

importPath: string;
isRepeatable: boolean;
styleSections: boolean;
props: {

@@ -18,0 +20,0 @@ title: {

@@ -32,2 +32,4 @@ import * as React from 'react';

importPath: "@plasmicapp/react-web",
isRepeatable: false,
styleSections: false,
props: {

@@ -34,0 +36,0 @@ title: {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc