@saas-ui/forms 1.0.0-rc.11 → 1.0.0-rc.12
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +6 -0
- package/dist/ajv/index.js +7 -7
- package/dist/ajv/index.js.map +1 -1
- package/dist/ajv/index.modern.mjs +7 -7
- package/dist/ajv/index.modern.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/ajv/index.js
CHANGED
@@ -94,11 +94,11 @@ return F.createElement(ba.textarea,Dy({ref:r,rows:i},l,{className:t.cx("chakra-t
|
|
94
94
|
return F.forwardRef(e)}var xx=["styleConfig"];function Ex(e,r){var n;void 0===r&&(r={});var a,o=r.styleConfig,i=px(r,xx),s=ux({},function(){var e=F.useContext(Wy);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}(),{theme:function(){var e=F.useContext(Vt);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}()}),l=s.theme,c=s.colorMode,u=t.memoizedGet(l,"components."+e),d=o||u,p=t.mergeWith({theme:l,colorMode:c},null!=(n=null==d?void 0:d.defaultProps)?n:{},t.filterUndefined(t.omit(i,["children"]))),f=F.useRef({});if(d){var m=(a=d,function(e){var r,n=e.variant,o=e.size,i=function(e){var r=e.__breakpoints;return function(e,n,a,o){if(r){var i={},s=function(e,r){return t.isArray(e)?e:t.isObject(e)?r(e):null!=e?[e]:void 0}(a,r.toArrayValue);if(!s)return i;for(var l=s.length,c=1===l,u=!!e.parts,d=function(a){var l,d,p=r.details[a],f=r.details[function(e,t){for(var r=t+1;r<e.length;r++)if(null!=e[r])return r;return-1}(s,a)],m=t.toMediaQueryString(p.minW,null==f?void 0:f._minW),v=t.runIfFn(null==(l=e[n])?void 0:l[s[a]],o);return v?u?(null==(d=e.parts)||d.forEach(function(e){var r,n;t.mergeWith(i,((n={})[e]=c?v[e]:((r={})[m]=v[e],r),n))}),"continue"):u?void(i[m]=v):(c?t.mergeWith(i,v):i[m]=v,"continue"):"continue"},p=0;p<l;p++)d(p);return i}}}(e.theme);return t.mergeWith({},t.runIfFn(null!=(r=a.baseStyle)?r:{},e),i(a,"sizes",o,e),i(a,"variants",n,e))}),v=m(p);_r(f.current,v)||(f.current=v)}return f.current}function kx(e,t){return void 0===t&&(t={}),Ex(e,t)}var _x=function(){var e=new Map;return new Proxy(yx,{apply:function(e,t,r){return yx.apply(void 0,r)},get:function(t,r){return e.has(r)||e.set(r,yx(r)),e.get(r)}})}();function wx(){return wx=Object.assign?Object.assign.bind():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},wx.apply(this,arguments)}var Sx=["as","viewBox","color","focusable","children","className","__css"],Cx={path:/*#__PURE__*/F.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/F.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/F.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/F.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Ox=/*#__PURE__*/bx(function(e,r){var n=e.as,a=e.viewBox,o=e.color,i=void 0===o?"currentColor":o,s=e.focusable,l=void 0!==s&&s,c=e.children,u=e.className,d=e.__css,p=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,Sx),f={ref:r,focusable:l,className:t.cx("chakra-icon",u),__css:wx({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i},d)},m=null!=a?a:Cx.viewBox;if(n&&"string"!=typeof n)/*#__PURE__*/
|
95
95
|
return F.createElement(_x.svg,wx({as:n},f,p));var v=null!=c?c:Cx.path;/*#__PURE__*/
|
96
96
|
return F.createElement(_x.svg,wx({verticalAlign:"middle",viewBox:m},f,p),v)});function Rx(e){var r=e.viewBox,n=void 0===r?"0 0 24 24":r,a=e.d,o=e.displayName,i=e.defaultProps,s=void 0===i?{}:i,l=F.Children.toArray(e.path),c=/*#__PURE__*/bx(function(e,t){/*#__PURE__*/
|
97
|
-
return F.createElement(Ox,wx({ref:t,viewBox:n},s,e),l.length?l:/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:a}))});return t.__DEV__&&(c.displayName=o),c}t.__DEV__&&(Ox.displayName="Icon"),Rx({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),Rx({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),Rx({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"}),Rx({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),Rx({displayName:"SunIcon",path:/*#__PURE__*/F.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",r:"5"}),/*#__PURE__*/F.createElement("path",{d:"M12 1v2"}),/*#__PURE__*/F.createElement("path",{d:"M12 21v2"}),/*#__PURE__*/F.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/*#__PURE__*/F.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/*#__PURE__*/F.createElement("path",{d:"M1 12h2"}),/*#__PURE__*/F.createElement("path",{d:"M21 12h2"}),/*#__PURE__*/F.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/*#__PURE__*/F.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var Ax=Rx({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});Rx({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})}),Rx({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"}),Rx({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),Rx({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"}),Rx({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});var Ix=Rx({displayName:"ViewIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),Tx=Rx({displayName:"ViewOffIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),/*#__PURE__*/F.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))});Rx({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"}),Rx({displayName:"DeleteIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))}),Rx({displayName:"RepeatIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),/*#__PURE__*/F.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))}),Rx({displayName:"RepeatClockIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),/*#__PURE__*/F.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))}),Rx({displayName:"EditIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),/*#__PURE__*/F.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),Rx({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),Rx({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var Nx=Rx({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Rx({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),Rx({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),Rx({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),Rx({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),Rx({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"}),Rx({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),Rx({displayName:"ExternalLinkIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/*#__PURE__*/F.createElement("path",{d:"M15 3h6v6"}),/*#__PURE__*/F.createElement("path",{d:"M10 14L21 3"}))}),Rx({displayName:"LinkIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),/*#__PURE__*/F.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))}),Rx({displayName:"PlusSquareIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/*#__PURE__*/F.createElement("path",{d:"M12 8v8"}),/*#__PURE__*/F.createElement("path",{d:"M8 12h8"}))}),Rx({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"}),Rx({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"}),Rx({displayName:"TimeIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),/*#__PURE__*/F.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))}),Rx({displayName:"ArrowRightIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),/*#__PURE__*/F.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))}),Rx({displayName:"ArrowLeftIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),/*#__PURE__*/F.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))}),Rx({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"}),Rx({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"}),Rx({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"}),Rx({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"}),Rx({displayName:"EmailIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),/*#__PURE__*/F.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))}),Rx({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"}),Rx({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"}),Rx({displayName:"SpinnerIcon",path:/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement("defs",null,/*#__PURE__*/F.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/*#__PURE__*/F.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/*#__PURE__*/F.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/*#__PURE__*/F.createElement("g",{transform:"translate(2)",fill:"none"},/*#__PURE__*/F.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/*#__PURE__*/F.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/*#__PURE__*/F.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),Rx({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),Rx({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/*#__PURE__*/F.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})}),Rx({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"}),Rx({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),Rx({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"}),Rx({displayName:"InfoOutlineIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/*#__PURE__*/F.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/*#__PURE__*/F.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),Rx({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),Rx({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),Rx({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"}),Rx({displayName:"QuestionOutlineIcon",path:/*#__PURE__*/F.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/F.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/F.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/F.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),Rx({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),Rx({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});var Px=Rx({viewBox:"0 0 14 14",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),Lx=Rx({displayName:"MinusIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});function Dx(){return Dx=Object.assign?Object.assign.bind():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},Dx.apply(this,arguments)}Rx({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});var Mx=fa(function(e,t){/*#__PURE__*/return F.createElement(dm,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/F.createElement(jp,Dx({ref:t,height:"auto"},e)))});function jx(){return jx=Object.assign?Object.assign.bind():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},jx.apply(this,arguments)}Mx.id="InputRightElement",t.__DEV__&&(Mx.displayName="InputRightButton");var Vx=["viewIcon","viewOffIcon","autoComplete"],Bx=fa(function(e,t){var r,n=e.viewIcon,a=e.viewOffIcon,o=e.autoComplete,i=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,Vx),s=F.useState(!1),l=s[0],c=s[1],u=l?"Hide password":"Show password";return r=l?n||/*#__PURE__*/F.createElement(Ix,null):a||/*#__PURE__*/F.createElement(Tx,null),/*#__PURE__*/F.createElement(Jf,null,/*#__PURE__*/F.createElement(Yf,jx({},i,{ref:t,type:l?"text":"password",autoComplete:l?"off":o})),/*#__PURE__*/F.createElement(Mx,{onClick:function(){return c(!l)},"aria-label":u,variant:"ghost"},r))});function Fx(){return Fx=Object.assign?Object.assign.bind():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},Fx.apply(this,arguments)}function zx(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(Bx.displayName="PasswordInput");var Wx=["options","spacing","direction"],Hx=["onBlur","onChange"],Ux=["value","label"],$x=fa(function(e,t){var r=e.options,n=e.spacing,a=e.direction,o=zx(e,Wx),i=o.onBlur,s=o.onChange,l=zx(o,Hx);return F.createElement(gy,Fx({onChange:s},l),/*#__PURE__*/F.createElement(Qm,{spacing:n,direction:a},r.map(function(e,r){var n=e.value,a=e.label,o=zx(e,Ux);return F.createElement(Ey,Fx({key:r,onBlur:i,value:n,ref:t},o),a||n)})))});function qx(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 Yx(){return Yx=Object.assign?Object.assign.bind():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},Yx.apply(this,arguments)}function Gx(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&($x.displayName="RadioInput");var Zx=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],Xx=["value","label"],Kx=fa(function(e,t){var r=ga("Input",e),n=Yx({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:r.field.h||r.field.height},r.field,{h:"auto"});return F.createElement(mg,Yx({as:jp},e,{ref:t,sx:n}))});t.__DEV__&&(Kx.displayName="SelectButton");var Jx=fa(function(e,r){var n=e.name,a=e.options,o=e.children,i=e.onChange,s=e.defaultValue,l=e.value,c=e.placeholder,u=e.isDisabled,d=e.leftIcon,p=e.rightIcon,f=void 0===p?/*#__PURE__*/F.createElement(Nx,null):p,m=e.multiple,v=e.size,h=e.variant,g=e.menuListProps,y=e.renderValue,b=void 0===y?function(e){return null==e?void 0:e.join(", ")}:y,x=oa(Gx(e,Zx)),E=F.useState(l||s),k=E[0],_=E[1],w=tf({name:n}),S={isDisabled:u,leftIcon:d,rightIcon:f,size:v,variant:h},C=F.useCallback(function(e){if(!a)return e;for(var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return qx(e,t);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)?qx(e,t):void 0}}(e))){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.")}(a);!(t=r()).done;){var n=t.value;if(n.label&&n.value===e)return n.label}return e},[a]),O=k?(Array.isArray(k)?k:[k]).map(C):[];return F.createElement(pg,Yx({},x,{closeOnSelect:!m}),/*#__PURE__*/F.createElement(ba.div,{className:t.cx("saas-select")},/*#__PURE__*/F.createElement(Kx,Yx({ref:r},S),b(O)||c),/*#__PURE__*/F.createElement(gg,Yx({maxH:"60vh",overflowY:"auto"},g),/*#__PURE__*/F.createElement(kg,{defaultValue:s||l,onChange:function(e){_(e),null==i||i(e)},type:m?"checkbox":"radio"},a?a.map(function(e,t){var r=e.value,n=e.label,a=Gx(e,Xx);return F.createElement(Eg,Yx({key:t,value:r},a),n||r)}):o)),/*#__PURE__*/F.createElement(ba.input,Yx({},w,{name:n,type:"hidden",value:k,className:"saas-select__input"}))))});t.__DEV__&&(Jx.displayName="Select");var Qx=["options","children"],eE=fa(function(e,t){var r=e.options,n=e.children,a=Gx(e,Qx);return F.createElement(Ry,Yx({ref:t},a),n||(null==r?void 0:r.map(function(e){var t=e.value;/*#__PURE__*/return F.createElement("option",{key:t,value:t},e.label||t)})))});t.__DEV__&&(eE.displayName="NativeSelect");var tE={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},rE=_x("span",{baseStyle:tE});t.__DEV__&&(rE.displayName="VisuallyHidden");var nE=_x("input",{baseStyle:tE});function aE(){return aE=Object.assign?Object.assign.bind():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},aE.apply(this,arguments)}t.__DEV__&&(nE.displayName="VisuallyHiddenInput");var oE=["label","thickness","speed","emptyColor","className"],iE=Yt({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),sE=/*#__PURE__*/bx(function(e,r){var n=kx("Spinner",e),a=dx(e),o=a.label,i=void 0===o?"Loading...":o,s=a.thickness,l=void 0===s?"2px":s,c=a.speed,u=void 0===c?"0.45s":c,d=a.emptyColor,p=void 0===d?"transparent":d,f=a.className,m=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(a,oE),v=t.cx("chakra-spinner",f),h=aE({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:l,borderBottomColor:p,borderLeftColor:p,animation:iE+" "+u+" linear infinite"},n);/*#__PURE__*/
|
98
|
-
return F.createElement(_x.div,
|
99
|
-
return F.createElement(_x.div,
|
100
|
-
return F.createElement(_x.span,
|
101
|
-
return F.createElement(_x.button,
|
102
|
-
return F.createElement(F.Fragment,null,t&&/*#__PURE__*/F.createElement(
|
103
|
-
return F.createElement(xE,cE({padding:"0",borderRadius:a?"full":void 0,ref:t,"aria-label":o},i),l)});function wE(){return wE=Object.assign?Object.assign.bind():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},wE.apply(this,arguments)}t.__DEV__&&(_E.displayName="IconButton");var SE=["label","children"],CE=bx(function(e,t){var r=e.label,n=e.children,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,SE);return F.createElement(xE,wE({ref:t},a),n||r)});function OE(){return OE=Object.assign?Object.assign.bind():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},OE.apply(this,arguments)}function RE(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(CE.displayName="Button");var AE=rr({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"}),IE=AE[0],TE=AE[1];function NE(e){var t=e.step,r=e.onChange,n=F.useState(-1),a=n[0],o=n[1],i=F.useRef([]),s=F.useState(Date.now())[1],l=F.useCallback(function(e){var t=[].concat(i.current);-1===t.indexOf(e)&&t.push(e),i.current=t,s(Date.now())},[i,s]),c=function(e){var t=i.current.indexOf(e);-1!==t&&o(t)};return F.useEffect(function(){"string"==typeof t?c(t):"number"==typeof t?o(t):-1===a&&o(0)},[t]),F.useEffect(function(){null==r||r(a)},[a,r]),{stepsRef:i,activeStep:i.current[a],activeIndex:a,isFirstStep:0===a,isLastStep:a===i.current.length-1,isCompleted:a>=i.current.length,setIndex:o,setStep:c,nextStep:function(){o(a+1)},prevStep:function(){o(a-1)},registerStep:l,unregisterStep:function(e){i.current=i.current.slice(i.current.indexOf(e),1)}}}var PE=["orientation","children"],LE=["children","orientation","step","onChange"],DE=["children","orientation","stepComponent"],ME=["children","isOpen"],jE=["icon","isActive","isCompleted","className"],VE=["name","title","icon","isActive","isCompleted"],BE=["isActive"],FE=rr({name:"StepperStylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<Stepper />" '}),zE=FE[0],WE=FE[1],HE=bx(function(e,t){var r=e.orientation,n=e.children,a=RE(e,PE);return F.createElement(UE,OE({ref:t,orientation:r},a),/*#__PURE__*/F.createElement($E,{orientation:r},n))});t.__DEV__&&(HE.displayName="Stepper");var UE=bx(function(e,r){var n,a=e.children,o=e.orientation,i=void 0===o?"horizontal":o,s=RE(e,LE),l=(void 0===(n=OE({},s,{orientation:i}))&&(n={}),Ex("Stepper",n)),c=dx(s),u=NE(e),d=OE({display:"flex",flexDirection:"column"},l.container);return F.createElement(zE,{value:l},/*#__PURE__*/F.createElement(IE,{value:u},/*#__PURE__*/F.createElement(_x.div,OE({ref:r,__css:d},c,{className:t.cx("saas-stepper",e.className)}),a)))});t.__DEV__&&(UE.displayName="StepperContainer");var $E=function(e){var r,n,a,o=e.children,i=e.orientation,s=void 0===i?"horizontal":i,l=e.stepComponent,c=RE(e,DE),u=WE(),d=TE().activeIndex,p=OE({display:"flex",flexDirection:"row",alignItems:"center"},u.steps),f="vertical"===s,m=l||GE,v=(a=m,F.Children.toArray(o).filter(function(e){return Array.isArray(a)?a.some(function(t){return t===e.type}):e.type===a})),h=v.reduce(function(e,t,r,n){return e.push(/*#__PURE__*/F.createElement(m,OE({key:r},t.props,{icon:t.props.icon||r+1,isActive:d===r,isCompleted:t.props.isCompleted||d>r}))),f&&e.push(/*#__PURE__*/F.createElement(qE,{key:"content-"+r,isOpen:d===r},t.props.children)),r<n.length-1&&e.push(/*#__PURE__*/F.createElement(ZE,{key:"separator-"+r,isActive:r<d})),e},[]),g=function(e,t){return F.Children.toArray(e).find(function(e){return e.type===t})}(o,KE),y=d>=v.length?g:f?null:/*#__PURE__*/F.createElement(qE,null,null==(r=v[d])||null==(n=r.props)?void 0:n.children);return F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(_x.div,OE({__css:p},c,{className:t.cx("saas-stepper__steps",e.className)}),h),y)};t.__DEV__&&($E.displayName="StepperSteps");var qE=function(e){var r=e.children,n=e.isOpen,a=void 0===n||n,o=RE(e,ME),i=WE();return F.createElement(_x.div,OE({__css:i.content},o,{className:t.cx("saas-stepper__content",e.className)}),/*#__PURE__*/F.createElement($d,{in:a},r))};t.__DEV__&&(qE.displayName="StepperContent");var YE=function(e){var r,n=e.icon,a=e.isCompleted,o=e.className,i=RE(e,jE),s=OE({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},WE().icon);return r=a?/*#__PURE__*/F.createElement(Ox,{as:Px}):n,/*#__PURE__*/F.createElement(_x.div,OE({__css:s},i,{className:t.cx("saas-stepper__icon",o)}),r)};t.__DEV__&&(YE.displayName="StepperIcon");var GE=function(e){var r=e.title,n=e.icon,a=e.isActive,o=e.isCompleted,i=RE(e,VE),s=function(e){var t=e.name,r=e.isActive,n=e.isCompleted,a=TE(),o=a.registerStep,i=a.unregisterStep,s=a.activeStep;return F.useEffect(function(){if(t)return o(t),function(){i(t)}},[]),{isActive:t?s===t:r,isCompleted:n}}(e),l=OE({display:"flex",alignItems:"center",flexDirection:"row"},WE().step);return F.createElement(_x.div,OE({},i,{__css:l,"data-active":t.dataAttr(s.isActive),"data-completed":t.dataAttr(s.isCompleted),className:t.cx("saas-stepper__step",e.className)}),/*#__PURE__*/F.createElement(YE,{icon:n,isActive:a,isCompleted:o}),r&&/*#__PURE__*/F.createElement(XE,null,r))};t.__DEV__&&(GE.displayName="StepperStep");var ZE=function(e){var r=e.isActive,n=RE(e,BE),a=OE({flex:1,mx:2},WE().separator);return F.createElement(_x.div,OE({},n,{"data-active":t.dataAttr(r),className:t.cx("saas-stepper__separator",e.className),__css:a}))};t.__DEV__&&(ZE.displayName="StepperSeparator");var XE=function(e){var r=WE();return F.createElement(_x.p,OE({},e,{__css:r.title,className:t.cx("saas-stepper__title",e.className)}))};t.__DEV__&&(XE.displayName="StepperStepTitle");var KE=function(e){var r=WE();return F.createElement(_x.div,OE({__css:r.completed},e,{className:t.cx("saas-stepper__completed",e.className)}))};function JE(){return JE=Object.assign?Object.assign.bind():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},JE.apply(this,arguments)}function QE(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(KE.displayName="StepperCompleted");var ek=["name","label","help","variant","hideLabel","children"],tk=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules","variant"],rk=["name","rules"],nk=["ref"],ak=["name","rules"],ok=["ref"],ik=["type","leftAddon","rightAddon","size"],sk=["type"],lk=["label","type"],ck=["pinLength","pinType","spacing"],uk={},dk=function(e){var t=e.name,n=e.label,a=e.help,o=e.variant,i=e.hideLabel,s=e.children,l=QE(e,ek),c=function(e,t){return r.get(t.errors,e)}(t,r.useFormContext().formState);return F.createElement(Kp,JE({variant:o},l,{isInvalid:!!c}),n&&!i?/*#__PURE__*/F.createElement(uf,{variant:o},n):null,/*#__PURE__*/F.createElement(xm,null,s,!a||null!=c&&c.message?null:/*#__PURE__*/F.createElement(Jp,null,a),(null==c?void 0:c.message)&&/*#__PURE__*/F.createElement(sf,null,null==c?void 0:c.message)))};t.__DEV__&&(dk.displayName="BaseField");var pk=F.forwardRef(function(e,t){var r=e.type;return F.createElement(uk[void 0===r?"text":r]||uk.text,JE({ref:t},e))}),fk=function(e,t,n){var a;a=null!=n&&n.isControlled?function(e){return fa(function(t,n){var a=t.name,o=t.rules,i=QE(t,rk),s=r.useFormContext();return F.createElement(r.Controller,{name:a,control:s.control,rules:o,render:function(t){var r=t.field.ref,a=QE(t.field,nk);return F.createElement(e,JE({},a,i,{ref:vr(n,r)}))}})})}(t):function(e){return fa(function(t,n){var a=t.name,o=t.rules,i=QE(t,ak),s=(0,r.useFormContext().register)(a,o),l=s.ref,c=QE(s,ok);return F.createElement(e,JE({},c,i,{ref:vr(n,l)}))})}(t);var o=function(e,t){var r=t.displayName,n=t.hideLabel,a=t.BaseField,o=fa(function(t,r){var o=t.id,i=t.name,s=t.label,l=t.help,c=t.isDisabled,u=t.isInvalid,d=t.isReadOnly,p=t.isRequired,f=t.rules,m=t.variant,v=QE(t,tk),h=JE({required:p},f);return F.createElement(a,{id:o,name:i,label:s,help:l,hideLabel:n,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:p,variant:m},/*#__PURE__*/F.createElement(e,JE({ref:r,id:o,name:i,label:n?s:void 0,rules:h},v)))});return o.displayName=r,o}(a,{displayName:e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join("")+"Field",hideLabel:null==n?void 0:n.hideLabel,BaseField:(null==n?void 0:n.BaseField)||dk});return uk[e]=o,o};fk("text",fa(function(e,t){var r=e.type,n=void 0===r?"text":r,a=e.leftAddon,o=e.rightAddon,i=e.size,s=QE(e,ik),l=/*#__PURE__*/F.createElement(Yf,JE({type:n,size:i},s,{ref:t}));return a||o?/*#__PURE__*/F.createElement(Jf,{size:i},a,l,o):l})),fk("number",zy,{isControlled:!0}),fk("password",fa(function(e,t){/*#__PURE__*/return F.createElement(Bx,JE({ref:t},e))})),fk("textarea",Vy),fk("switch",fa(function(e,t){var r=QE(e,sk);return F.createElement(Ly,JE({},r,{ref:t}))}),{isControlled:!0}),fk("select",Jx,{isControlled:!0}),fk("checkbox",fa(function(e,t){var r=e.label,n=QE(e,lk);return F.createElement(Bf,JE({ref:t},n),r)}),{hideLabel:!0}),fk("radio",$x,{isControlled:!0}),fk("native-select",eE,{isControlled:!0}),fk("pin",fa(function(e,t){for(var r=e.pinLength,n=void 0===r?4:r,a=e.pinType,o=e.spacing,i=QE(e,ck),s=[],l=0;l<n;l++)s.push(/*#__PURE__*/F.createElement(cy,{key:l,ref:t}));return F.createElement(ev,{spacing:o},/*#__PURE__*/F.createElement(ly,JE({},i,{type:a}),s))}),{isControlled:!0});var mk=["items"],vk=function(e){return e&&Object.entries(e).map(function(e){var t=e[0];return JE({},QE(e[1],mk),{name:t})})},hk=function(e){return{getFields:function(){return vk(e)},getNestedFields:function(r){var n,a=t.get(e,r);return a?"object"===(null==(n=a.items)?void 0:n.type)?vk(a.items.properties):"object"===a.type?vk(a.properties):[a.items]:[]}}},gk=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onSubmit","onError","formRef","children"],yk=fa(function(e,n){var a=e.mode,o=void 0===a?"all":a,i=e.resolver,s=e.reValidateMode,l=e.shouldFocusError,c=e.shouldUnregister,u=e.shouldUseNativeValidation,d=e.criteriaMode,p=e.delayError,f=e.schema,m=e.defaultValues,v=e.onSubmit,h=e.onError,g=e.formRef,y=e.children,b=QE(e,gk),x={mode:o,resolver:i,defaultValues:m,reValidateMode:s,shouldFocusError:l,shouldUnregister:c,shouldUseNativeValidation:u,criteriaMode:d,delayError:p};f&&!i&&(x.resolver=null==yk.getResolver?void 0:yk.getResolver(f));var E=r.useForm(x),k=E.handleSubmit;return F.useImperativeHandle(n,function(){return E},[n,E]),/*#__PURE__*/F.createElement(r.FormProvider,E,/*#__PURE__*/F.createElement(ba.form,JE({ref:g,onSubmit:k(v,h)},b,{className:t.cx("saas-form",e.className)}),y))});yk.getFieldResolver=hk,t.__DEV__&&(yk.displayName="Form");var bk=["children"],xk=function(e){/*#__PURE__*/return F.createElement(ba.div,null,e.children)};t.__DEV__&&(xk.displayName="FormLayoutItem");var Ek=function(e){var r,n,a,o=e.children,i=QE(e,bk),s=JE({},null!=(r=null==(n=na().components)||null==(a=n.FormLayout)?void 0:a.defaultProps)?r:{spacing:4},i);return F.createElement(Gm,JE({},s,{className:t.cx("saas-form__layout",i.className)}),F.Children.map(o,function(e){return F.isValidElement(e)?/*#__PURE__*/F.createElement(xk,null,e):e}))};t.__DEV__&&(Ek.displayName="FormLayout");var kk=function(e,t){return F.Children.map(t,function(t){return F.isValidElement(t)&&t.props.name?F.cloneElement(t,JE({},t.props,{name:e+"."+t.props.name})):t})},_k=rr({name:"ArrayFieldContext"}),wk=_k[0],Sk=_k[1],Ck=rr({name:"ArrayFieldRowContext"}),Ok=Ck[0],Rk=Ck[1],Ak=["children","index"],Ik=["children"],Tk=["children"],Nk=["name","defaultValue","keyName","min","max","children"],Pk=function(e){var t=e.children,r=e.index,n=QE(e,Ak);return F.createElement(Dk,{index:r},/*#__PURE__*/F.createElement(Lk,n,t),/*#__PURE__*/F.createElement(Mk,null))};t.__DEV__&&(Pk.displayName="ArrayFieldRow");var Lk=function(e){var t=e.children,r=QE(e,Ik),n=Rk().name;return F.createElement(Ek,JE({flex:"1",mr:"2"},r),kk(n,t))};t.__DEV__&&(Lk.displayName="ArrayFieldRowFields");var Dk=function(e){var t=e.children,n=function(e){var t=e.index,n=r.useFormContext().clearErrors,a=Sk(),o=a.name,i=a.remove,s=a.fields;return F.useEffect(function(){n(o)},[]),{index:t,isFirst:0===t,isLast:t===s.length-1,name:o+"."+t,remove:F.useCallback(function(){n(o),i(t)},[t])}}({index:e.index});return F.createElement(Ok,{value:n},/*#__PURE__*/F.createElement(_x.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},t))};t.__DEV__&&(Dk.displayName="ArrayFieldRowContainer");var Mk=function(e){/*#__PURE__*/return F.createElement(_E,JE({icon:/*#__PURE__*/F.createElement(Lx,null),"aria-label":"Remove row"},function(){var e=Rk(),t=e.isFirst,r=e.remove,n=Sk(),a=n.min;return{onClick:function(){return r()},isDisabled:t&&!!(a&&n.fields.length<=a)}}(),e))};t.__DEV__&&(Mk.displayName="ArrayFieldRemoveButton");var jk=function(e){/*#__PURE__*/return F.createElement(_E,JE({icon:/*#__PURE__*/F.createElement(Ax,null),"aria-label":"Add row",float:"right"},function(){var e=Sk(),t=e.append,r=e.defaultValue,n=e.max;return{onClick:function(){return t(r,{shouldFocus:!1})},isDisabled:!!(n&&e.fields.length>=n)}}(),e))};t.__DEV__&&(jk.displayName="ArrayFieldAddButton");var Vk=bx(function(e,t){var r=e.children,n=QE(e,Tk);return F.createElement(Fk,JE({ref:t},n),/*#__PURE__*/F.createElement(Bk,null,function(e){/*#__PURE__*/return F.createElement(F.Fragment,null,e.map(function(e,t){/*#__PURE__*/return F.createElement(Pk,{key:e.id,index:t},r)}))}),/*#__PURE__*/F.createElement(jk,null))});t.__DEV__&&(Vk.displayName="ArrayField");var Bk=function(e){return(0,e.children)(Sk().fields)};t.__DEV__&&(Bk.displayName="ArrayFieldRows");var Fk=F.forwardRef(function(e,t){var n=e.name,a=e.defaultValue,o=e.keyName,i=e.min,s=e.max,l=e.children,c=QE(e,Nk),u=function(e){var t=e.name,n=e.defaultValue,a=void 0===n?{}:n,o=e.keyName,i=e.min,s=e.max,l=r.useFormContext();return JE({},r.useFieldArray({control:l.control,name:t,keyName:o}),{name:t,defaultValue:a,min:i,max:s})}({name:n,defaultValue:a,keyName:o,min:i,max:s});return F.useImperativeHandle(t,function(){return u},[t,u]),/*#__PURE__*/F.createElement(wk,{value:u},/*#__PURE__*/F.createElement(dk,JE({name:n},c),l))});t.__DEV__&&(Fk.displayName="ArrayFieldContainer");var zk=["name","label","hideLabel","children","columns","spacing"],Wk=function(e){var t=ha("FormLegend");return F.createElement(uf,JE({as:"legend",sx:t},e))},Hk=function(e){var t=e.name,r=e.label,n=e.hideLabel,a=e.children,o=e.columns,i=e.spacing,s=QE(e,zk);return F.createElement(Kp,JE({name:t,as:"fieldset"},s),/*#__PURE__*/F.createElement(Wk,{display:n?"none":"block"},r),/*#__PURE__*/F.createElement(Ek,{columns:o,gridGap:i},kk(t,a)))};t.__DEV__&&(Hk.displayName="ObjectField");var Uk=["name","type"],$k=["schema","fieldResolver"],qk=["name","type","defaultValue"],Yk=function(e,t){var r;return null==(r=e.getNestedFields(t))?void 0:r.map(function(e,t){var r=e.name,n=e.type,a=QE(e,Uk);return F.createElement(pk,JE({key:r||t,name:r,type:n},a))})},Gk=function(e){var t=e.schema,r=e.fieldResolver,n=QE(e,$k),a=F.useMemo(function(){return r||yk.getFieldResolver(t)},[t,r]);return F.createElement(Ek,n,a.getFields().map(function(e){var t=e.name,r=e.type,n=QE(e,qk);return"array"===r?/*#__PURE__*/F.createElement(Vk,JE({key:t,name:t},n),Yk(a,t)):"object"===r?/*#__PURE__*/F.createElement(Hk,JE({key:t,name:t},n),Yk(a,t)):/*#__PURE__*/F.createElement(pk,JE({key:t,name:t,type:r},n))}))};t.__DEV__&&(Gk.displayName="Fields");var Zk=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],Xk=F.forwardRef(function(e,t){var n=e.children,a=e.disableIfUntouched,o=e.disableIfInvalid,i=e.isDisabled,s=e.isLoading,l=QE(e,Zk),c=r.useFormContext().formState;return F.createElement(CE,JE({},l,{ref:t,variant:"primary",type:"submit",isLoading:c.isSubmitting||s,isDisabled:a&&!c.isDirty||o&&!c.isValid||i}),n)});Xk.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},t.__DEV__&&(Xk.displayName="SubmitButton");var Kk=["schema","submitLabel","fieldResolver","children"],Jk=fa(function(e,t){var r=e.schema,n=e.submitLabel,a=void 0===n?"Submit":n,o=e.fieldResolver,i=e.children,s=QE(e,Kk);return F.createElement(yk,JE({},s,{schema:r,ref:t}),/*#__PURE__*/F.createElement(Ek,null,/*#__PURE__*/F.createElement(Gk,{schema:r,fieldResolver:o}),a&&/*#__PURE__*/F.createElement(Xk,null,a),i))});t.__DEV__&&(Jk.displayName="AutoForm");var Qk=["onChange"],e_=rr({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"})[0],t_=["children"],r_=["getFormProps"];F.forwardRef(function(e,r){var n=e.children,a=QE(e,t_),o=function(e){var t=NE(QE(e,Qk)),r=t.activeStep,n=t.isLastStep,a=t.nextStep,o=F.useState({}),i=o[0],s=o[1],l=F.useCallback(function(o){try{var s=i[r];if(n)return Promise.resolve(null==e.onSubmit?void 0:e.onSubmit(o).then(function(){u(JE({},s,{isCompleted:!0}))}).then(a));var l=function(e,r){try{var n=Promise.resolve(null==s.onSubmit?void 0:s.onSubmit(o,t)).then(function(){a()})}catch(e){return}return n&&n.then?n.then(void 0,function(){}):n}();return Promise.resolve(l&&l.then?l.then(function(){}):void 0)}catch(o){return Promise.reject(o)}},[i,r,n]),c=F.useCallback(function(){var e=i[r];return{onSubmit:l,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[i,l,r]),u=F.useCallback(function(e){s(function(t){var r;return JE({},t,((r={})[e.name]=e,r))})},[i]);return JE({getFormProps:c,updateStep:u,steps:i},t)}(e),i=o.getFormProps,s=QE(o,r_),l=F.useMemo(function(){return s},[s]);return F.createElement(IE,{value:l},/*#__PURE__*/F.createElement(e_,{value:l},/*#__PURE__*/F.createElement(yk,JE({ref:r},a,i()),t.runIfFn(n,o))))});var n_=function(e){return hk(e.properties)};exports.jsonSchemaForm=function(t){return{schema:t,fieldResolver:n_(t),resolver:e.ajvResolver(t)}};
|
97
|
+
return F.createElement(Ox,wx({ref:t,viewBox:n},s,e),l.length?l:/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:a}))});return t.__DEV__&&(c.displayName=o),c}t.__DEV__&&(Ox.displayName="Icon"),Rx({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"}),Rx({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),Rx({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"}),Rx({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),Rx({displayName:"SunIcon",path:/*#__PURE__*/F.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",r:"5"}),/*#__PURE__*/F.createElement("path",{d:"M12 1v2"}),/*#__PURE__*/F.createElement("path",{d:"M12 21v2"}),/*#__PURE__*/F.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),/*#__PURE__*/F.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),/*#__PURE__*/F.createElement("path",{d:"M1 12h2"}),/*#__PURE__*/F.createElement("path",{d:"M21 12h2"}),/*#__PURE__*/F.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),/*#__PURE__*/F.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});var Ax=Rx({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});Rx({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:/*#__PURE__*/F.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})}),Rx({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"}),Rx({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),Rx({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"}),Rx({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});var Ix=Rx({displayName:"ViewIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",r:"2"}))}),Tx=Rx({displayName:"ViewOffIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),/*#__PURE__*/F.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))});Rx({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"}),Rx({displayName:"DeleteIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))}),Rx({displayName:"RepeatIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),/*#__PURE__*/F.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))}),Rx({displayName:"RepeatClockIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),/*#__PURE__*/F.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))}),Rx({displayName:"EditIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),/*#__PURE__*/F.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))}),Rx({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"}),Rx({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});var Nx=Rx({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Rx({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"}),Rx({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),Rx({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"}),Rx({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"}),Rx({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"}),Rx({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"}),Rx({displayName:"ExternalLinkIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),/*#__PURE__*/F.createElement("path",{d:"M15 3h6v6"}),/*#__PURE__*/F.createElement("path",{d:"M10 14L21 3"}))}),Rx({displayName:"LinkIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),/*#__PURE__*/F.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))}),Rx({displayName:"PlusSquareIcon",path:/*#__PURE__*/F.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},/*#__PURE__*/F.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),/*#__PURE__*/F.createElement("path",{d:"M12 8v8"}),/*#__PURE__*/F.createElement("path",{d:"M8 12h8"}))}),Rx({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"}),Rx({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"}),Rx({displayName:"TimeIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),/*#__PURE__*/F.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))}),Rx({displayName:"ArrowRightIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),/*#__PURE__*/F.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))}),Rx({displayName:"ArrowLeftIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),/*#__PURE__*/F.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))}),Rx({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"}),Rx({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"}),Rx({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"}),Rx({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"}),Rx({displayName:"EmailIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),/*#__PURE__*/F.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))}),Rx({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"}),Rx({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"}),Rx({displayName:"SpinnerIcon",path:/*#__PURE__*/F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement("defs",null,/*#__PURE__*/F.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},/*#__PURE__*/F.createElement("stop",{stopColor:"currentColor",offset:"0%"}),/*#__PURE__*/F.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),/*#__PURE__*/F.createElement("g",{transform:"translate(2)",fill:"none"},/*#__PURE__*/F.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),/*#__PURE__*/F.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),/*#__PURE__*/F.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))}),Rx({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),Rx({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:/*#__PURE__*/F.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})}),Rx({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"}),Rx({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),Rx({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"}),Rx({displayName:"InfoOutlineIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},/*#__PURE__*/F.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),/*#__PURE__*/F.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),/*#__PURE__*/F.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))}),Rx({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),Rx({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}),Rx({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"}),Rx({displayName:"QuestionOutlineIcon",path:/*#__PURE__*/F.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},/*#__PURE__*/F.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),/*#__PURE__*/F.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),/*#__PURE__*/F.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))}),Rx({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),Rx({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});var Px=Rx({viewBox:"0 0 14 14",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))}),Lx=Rx({displayName:"MinusIcon",path:/*#__PURE__*/F.createElement("g",{fill:"currentColor"},/*#__PURE__*/F.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});Rx({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});var Dx={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Mx=_x("span",{baseStyle:Dx});t.__DEV__&&(Mx.displayName="VisuallyHidden");var jx=_x("input",{baseStyle:Dx});function Vx(){return Vx=Object.assign?Object.assign.bind():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},Vx.apply(this,arguments)}t.__DEV__&&(jx.displayName="VisuallyHiddenInput");var Bx=["label","thickness","speed","emptyColor","className"],Fx=Yt({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),zx=/*#__PURE__*/bx(function(e,r){var n=kx("Spinner",e),a=dx(e),o=a.label,i=void 0===o?"Loading...":o,s=a.thickness,l=void 0===s?"2px":s,c=a.speed,u=void 0===c?"0.45s":c,d=a.emptyColor,p=void 0===d?"transparent":d,f=a.className,m=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(a,Bx),v=t.cx("chakra-spinner",f),h=Vx({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:l,borderBottomColor:p,borderLeftColor:p,animation:Fx+" "+u+" linear infinite"},n);/*#__PURE__*/
|
98
|
+
return F.createElement(_x.div,Vx({ref:r,__css:h,className:v},m),i&&/*#__PURE__*/F.createElement(Mx,null,i))});function Wx(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}function Hx(){return Hx=Object.assign?Object.assign.bind():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},Hx.apply(this,arguments)}t.__DEV__&&(zx.displayName="Spinner");var Ux=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],$x=rr({strict:!1,name:"ButtonGroupContext"}),qx=$x[0],Yx=$x[1],Gx=/*#__PURE__*/bx(function(e,r){var n=e.size,a=e.colorScheme,o=e.variant,i=e.className,s=e.spacing,l=void 0===s?"0.5rem":s,c=e.isAttached,u=e.isDisabled,d=Wx(e,Ux),p=t.cx("chakra-button__group",i),f=F.useMemo(function(){return{size:n,colorScheme:a,variant:o,isDisabled:u}},[n,a,o,u]),m={display:"inline-flex"};return m=Hx({},m,c?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:l}}),/*#__PURE__*/F.createElement(qx,{value:f},/*#__PURE__*/F.createElement(_x.div,Hx({ref:r,role:"group",__css:m,className:p,"data-attached":c?"":void 0},d)))});t.__DEV__&&(Gx.displayName="ButtonGroup");var Zx=["label","placement","spacing","children","className","__css"],Xx=function(e){var r=e.label,n=e.placement,a=e.spacing,o=void 0===a?"0.5rem":a,i=e.children,s=void 0===i?/*#__PURE__*/F.createElement(zx,{color:"currentColor",width:"1em",height:"1em"}):i,l=e.className,c=e.__css,u=Wx(e,Zx),d=t.cx("chakra-button__spinner",l),p="start"===n?"marginEnd":"marginStart",f=F.useMemo(function(){var e;return Hx(((e={display:"flex",alignItems:"center",position:r?"relative":"absolute"})[p]=r?o:0,e.fontSize="1em",e.lineHeight="normal",e),c)},[c,r,p,o]);/*#__PURE__*/
|
99
|
+
return F.createElement(_x.div,Hx({className:d},u,{__css:f}),s)};t.__DEV__&&(Xx.displayName="ButtonSpinner");var Kx=["children","className"],Jx=function(e){var r=e.children,n=e.className,a=Wx(e,Kx),o=/*#__PURE__*/F.isValidElement(r)?/*#__PURE__*/F.cloneElement(r,{"aria-hidden":!0,focusable:!1}):r,i=t.cx("chakra-button__icon",n);/*#__PURE__*/
|
100
|
+
return F.createElement(_x.span,Hx({display:"inline-flex",alignSelf:"center",flexShrink:0},a,{className:i}),o)};t.__DEV__&&(Jx.displayName="ButtonIcon");var Qx=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],eE=/*#__PURE__*/bx(function(e,r){var n,a,o,i,s=Yx(),l=kx("Button",Hx({},s,e)),c=dx(e),u=c.isDisabled,d=void 0===u?null==s?void 0:s.isDisabled:u,p=c.isLoading,f=c.isActive,m=c.children,v=c.leftIcon,h=c.rightIcon,g=c.loadingText,y=c.iconSpacing,b=void 0===y?"0.5rem":y,x=c.type,E=c.spinner,k=c.spinnerPlacement,_=void 0===k?"start":k,w=c.className,S=c.as,C=Wx(c,Qx),O=F.useMemo(function(){var e,r=t.mergeWith({},null!=(e=null==l?void 0:l._focus)?e:{},{zIndex:1});return Hx({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none"},l,!!s&&{_focus:r})},[l,s]),R=(a=(n=F.useState(!S))[0],o=n[1],i=F.useCallback(function(e){e&&o("BUTTON"===e.tagName)},[]),{ref:i,type:a?"button":void 0}),A=R.type,I={rightIcon:h,leftIcon:v,iconSpacing:b,children:m};/*#__PURE__*/
|
101
|
+
return F.createElement(_x.button,Hx({disabled:d||p,ref:vr(r,R.ref),as:S,type:null!=x?x:A,"data-active":t.dataAttr(f),"data-loading":t.dataAttr(p),__css:O,className:t.cx("chakra-button",w)},C),p&&"start"===_&&/*#__PURE__*/F.createElement(Xx,{className:"chakra-button__spinner--start",label:g,placement:"start",spacing:b},E),p?g||/*#__PURE__*/F.createElement(_x.span,{opacity:0},/*#__PURE__*/F.createElement(tE,I)):/*#__PURE__*/F.createElement(tE,I),p&&"end"===_&&/*#__PURE__*/F.createElement(Xx,{className:"chakra-button__spinner--end",label:g,placement:"end",spacing:b},E))});function tE(e){var t=e.leftIcon,r=e.rightIcon,n=e.children,a=e.iconSpacing;/*#__PURE__*/
|
102
|
+
return F.createElement(F.Fragment,null,t&&/*#__PURE__*/F.createElement(Jx,{marginEnd:a},t),n,r&&/*#__PURE__*/F.createElement(Jx,{marginStart:a},r))}t.__DEV__&&(eE.displayName="Button");var rE=["icon","children","isRound","aria-label"],nE=/*#__PURE__*/bx(function(e,t){var r=e.icon,n=e.children,a=e.isRound,o=e["aria-label"],i=Wx(e,rE),s=r||n,l=/*#__PURE__*/F.isValidElement(s)?/*#__PURE__*/F.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;/*#__PURE__*/
|
103
|
+
return F.createElement(eE,Hx({padding:"0",borderRadius:a?"full":void 0,ref:t,"aria-label":o},i),l)});function aE(){return aE=Object.assign?Object.assign.bind():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},aE.apply(this,arguments)}t.__DEV__&&(nE.displayName="IconButton");var oE=["label","children"],iE=bx(function(e,t){var r=e.label,n=e.children,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,oE);return F.createElement(eE,aE({ref:t},a),n||r)});function sE(){return sE=Object.assign?Object.assign.bind():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},sE.apply(this,arguments)}t.__DEV__&&(iE.displayName="Button");var lE=fa(function(e,t){/*#__PURE__*/return F.createElement(dm,{w:"auto",px:"1",py:"1",alignItems:"stretch"},/*#__PURE__*/F.createElement(iE,sE({ref:t,height:"auto"},e)))});function cE(){return cE=Object.assign?Object.assign.bind():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},cE.apply(this,arguments)}lE.id="InputRightElement",t.__DEV__&&(lE.displayName="InputRightButton");var uE=["viewIcon","viewOffIcon","autoComplete"],dE=fa(function(e,t){var r,n=e.viewIcon,a=e.viewOffIcon,o=e.autoComplete,i=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(e,uE),s=F.useState(!1),l=s[0],c=s[1],u=l?"Hide password":"Show password";return r=l?n||/*#__PURE__*/F.createElement(Ix,null):a||/*#__PURE__*/F.createElement(Tx,null),/*#__PURE__*/F.createElement(Jf,null,/*#__PURE__*/F.createElement(Yf,cE({},i,{ref:t,type:l?"text":"password",autoComplete:l?"off":o})),/*#__PURE__*/F.createElement(lE,{onClick:function(){return c(!l)},"aria-label":u,variant:"ghost"},r))});function pE(){return pE=Object.assign?Object.assign.bind():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},pE.apply(this,arguments)}function fE(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(dE.displayName="PasswordInput");var mE=["options","spacing","direction"],vE=["onBlur","onChange"],hE=["value","label"],gE=fa(function(e,t){var r=e.options,n=e.spacing,a=e.direction,o=fE(e,mE),i=o.onBlur,s=o.onChange,l=fE(o,vE);return F.createElement(gy,pE({onChange:s},l),/*#__PURE__*/F.createElement(Qm,{spacing:n,direction:a},r.map(function(e,r){var n=e.value,a=e.label,o=fE(e,hE);return F.createElement(Ey,pE({key:r,onBlur:i,value:n,ref:t},o),a||n)})))});function yE(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 bE(){return bE=Object.assign?Object.assign.bind():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},bE.apply(this,arguments)}function xE(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(gE.displayName="RadioInput");var EE=["name","options","children","onChange","defaultValue","value","placeholder","isDisabled","leftIcon","rightIcon","multiple","size","variant","menuListProps","renderValue"],kE=["value","label"],_E=fa(function(e,t){var r=ga("Input",e),n=bE({fontWeight:"normal",textAlign:"left",color:"inherit",_active:{bg:"transparent"},minH:r.field.h||r.field.height},r.field,{h:"auto"});return F.createElement(mg,bE({as:jp},e,{ref:t,sx:n}))});t.__DEV__&&(_E.displayName="SelectButton");var wE=fa(function(e,r){var n=e.name,a=e.options,o=e.children,i=e.onChange,s=e.defaultValue,l=e.value,c=e.placeholder,u=e.isDisabled,d=e.leftIcon,p=e.rightIcon,f=void 0===p?/*#__PURE__*/F.createElement(Nx,null):p,m=e.multiple,v=e.size,h=e.variant,g=e.menuListProps,y=e.renderValue,b=void 0===y?function(e){return null==e?void 0:e.join(", ")}:y,x=oa(xE(e,EE)),E=F.useState(l||s),k=E[0],_=E[1],w=tf({name:n}),S={isDisabled:u,leftIcon:d,rightIcon:f,size:v,variant:h},C=F.useCallback(function(e){if(!a)return e;for(var t,r=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return yE(e,t);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)?yE(e,t):void 0}}(e))){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.")}(a);!(t=r()).done;){var n=t.value;if(n.label&&n.value===e)return n.label}return e},[a]),O=k?(Array.isArray(k)?k:[k]).map(C):[];return F.createElement(pg,bE({},x,{closeOnSelect:!m}),/*#__PURE__*/F.createElement(ba.div,{className:t.cx("saas-select")},/*#__PURE__*/F.createElement(_E,bE({ref:r},S),b(O)||c),/*#__PURE__*/F.createElement(gg,bE({maxH:"60vh",overflowY:"auto"},g),/*#__PURE__*/F.createElement(kg,{defaultValue:s||l,onChange:function(e){_(e),null==i||i(e)},type:m?"checkbox":"radio"},a?a.map(function(e,t){var r=e.value,n=e.label,a=xE(e,kE);return F.createElement(Eg,bE({key:t,value:r},a),n||r)}):o)),/*#__PURE__*/F.createElement(ba.input,bE({},w,{name:n,type:"hidden",value:k,className:"saas-select__input"}))))});t.__DEV__&&(wE.displayName="Select");var SE=["options","children"],CE=fa(function(e,t){var r=e.options,n=e.children,a=xE(e,SE);return F.createElement(Ry,bE({ref:t},a),n||(null==r?void 0:r.map(function(e){var t=e.value;/*#__PURE__*/return F.createElement("option",{key:t,value:t},e.label||t)})))});function OE(){return OE=Object.assign?Object.assign.bind():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},OE.apply(this,arguments)}function RE(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(CE.displayName="NativeSelect");var AE=rr({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in `<Stepper />`"}),IE=AE[0],TE=AE[1];function NE(e){var t=e.step,r=e.onChange,n=F.useState(-1),a=n[0],o=n[1],i=F.useRef([]),s=F.useState(Date.now())[1],l=F.useCallback(function(e){var t=[].concat(i.current);-1===t.indexOf(e)&&t.push(e),i.current=t,s(Date.now())},[i,s]),c=function(e){var t=i.current.indexOf(e);-1!==t&&o(t)};return F.useEffect(function(){"string"==typeof t?c(t):"number"==typeof t?o(t):-1===a&&o(0)},[t]),F.useEffect(function(){null==r||r(a)},[a,r]),{stepsRef:i,activeStep:i.current[a],activeIndex:a,isFirstStep:0===a,isLastStep:a===i.current.length-1,isCompleted:a>=i.current.length,setIndex:o,setStep:c,nextStep:function(){o(a+1)},prevStep:function(){o(a-1)},registerStep:l,unregisterStep:function(e){i.current=i.current.slice(i.current.indexOf(e),1)}}}var PE=["orientation","children"],LE=["children","orientation","step","onChange"],DE=["children","orientation","stepComponent"],ME=["children","isOpen"],jE=["icon","isActive","isCompleted","className"],VE=["name","title","icon","isActive","isCompleted"],BE=["isActive"],FE=rr({name:"StepperStylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<Stepper />" '}),zE=FE[0],WE=FE[1],HE=bx(function(e,t){var r=e.orientation,n=e.children,a=RE(e,PE);return F.createElement(UE,OE({ref:t,orientation:r},a),/*#__PURE__*/F.createElement($E,{orientation:r},n))});t.__DEV__&&(HE.displayName="Stepper");var UE=bx(function(e,r){var n,a=e.children,o=e.orientation,i=void 0===o?"horizontal":o,s=RE(e,LE),l=(void 0===(n=OE({},s,{orientation:i}))&&(n={}),Ex("Stepper",n)),c=dx(s),u=NE(e),d=OE({display:"flex",flexDirection:"column"},l.container);return F.createElement(zE,{value:l},/*#__PURE__*/F.createElement(IE,{value:u},/*#__PURE__*/F.createElement(_x.div,OE({ref:r,__css:d},c,{className:t.cx("saas-stepper",e.className)}),a)))});t.__DEV__&&(UE.displayName="StepperContainer");var $E=function(e){var r,n,a,o=e.children,i=e.orientation,s=void 0===i?"horizontal":i,l=e.stepComponent,c=RE(e,DE),u=WE(),d=TE().activeIndex,p=OE({display:"flex",flexDirection:"row",alignItems:"center"},u.steps),f="vertical"===s,m=l||GE,v=(a=m,F.Children.toArray(o).filter(function(e){return Array.isArray(a)?a.some(function(t){return t===e.type}):e.type===a})),h=v.reduce(function(e,t,r,n){return e.push(/*#__PURE__*/F.createElement(m,OE({key:r},t.props,{icon:t.props.icon||r+1,isActive:d===r,isCompleted:t.props.isCompleted||d>r}))),f&&e.push(/*#__PURE__*/F.createElement(qE,{key:"content-"+r,isOpen:d===r},t.props.children)),r<n.length-1&&e.push(/*#__PURE__*/F.createElement(ZE,{key:"separator-"+r,isActive:r<d})),e},[]),g=function(e,t){return F.Children.toArray(e).find(function(e){return e.type===t})}(o,KE),y=d>=v.length?g:f?null:/*#__PURE__*/F.createElement(qE,null,null==(r=v[d])||null==(n=r.props)?void 0:n.children);return F.createElement(F.Fragment,null,/*#__PURE__*/F.createElement(_x.div,OE({__css:p},c,{className:t.cx("saas-stepper__steps",e.className)}),h),y)};t.__DEV__&&($E.displayName="StepperSteps");var qE=function(e){var r=e.children,n=e.isOpen,a=void 0===n||n,o=RE(e,ME),i=WE();return F.createElement(_x.div,OE({__css:i.content},o,{className:t.cx("saas-stepper__content",e.className)}),/*#__PURE__*/F.createElement($d,{in:a},r))};t.__DEV__&&(qE.displayName="StepperContent");var YE=function(e){var r,n=e.icon,a=e.isCompleted,o=e.className,i=RE(e,jE),s=OE({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontSize:"1em"},WE().icon);return r=a?/*#__PURE__*/F.createElement(Ox,{as:Px}):n,/*#__PURE__*/F.createElement(_x.div,OE({__css:s},i,{className:t.cx("saas-stepper__icon",o)}),r)};t.__DEV__&&(YE.displayName="StepperIcon");var GE=function(e){var r=e.title,n=e.icon,a=e.isActive,o=e.isCompleted,i=RE(e,VE),s=function(e){var t=e.name,r=e.isActive,n=e.isCompleted,a=TE(),o=a.registerStep,i=a.unregisterStep,s=a.activeStep;return F.useEffect(function(){if(t)return o(t),function(){i(t)}},[]),{isActive:t?s===t:r,isCompleted:n}}(e),l=OE({display:"flex",alignItems:"center",flexDirection:"row"},WE().step);return F.createElement(_x.div,OE({},i,{__css:l,"data-active":t.dataAttr(s.isActive),"data-completed":t.dataAttr(s.isCompleted),className:t.cx("saas-stepper__step",e.className)}),/*#__PURE__*/F.createElement(YE,{icon:n,isActive:a,isCompleted:o}),r&&/*#__PURE__*/F.createElement(XE,null,r))};t.__DEV__&&(GE.displayName="StepperStep");var ZE=function(e){var r=e.isActive,n=RE(e,BE),a=OE({flex:1,mx:2},WE().separator);return F.createElement(_x.div,OE({},n,{"data-active":t.dataAttr(r),className:t.cx("saas-stepper__separator",e.className),__css:a}))};t.__DEV__&&(ZE.displayName="StepperSeparator");var XE=function(e){var r=WE();return F.createElement(_x.p,OE({},e,{__css:r.title,className:t.cx("saas-stepper__title",e.className)}))};t.__DEV__&&(XE.displayName="StepperStepTitle");var KE=function(e){var r=WE();return F.createElement(_x.div,OE({__css:r.completed},e,{className:t.cx("saas-stepper__completed",e.className)}))};function JE(){return JE=Object.assign?Object.assign.bind():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},JE.apply(this,arguments)}function QE(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}t.__DEV__&&(KE.displayName="StepperCompleted");var ek=["name","label","help","variant","hideLabel","children"],tk=["id","name","label","help","isDisabled","isInvalid","isReadOnly","isRequired","rules","variant"],rk=["name","rules"],nk=["ref"],ak=["name","rules"],ok=["ref"],ik=["type","leftAddon","rightAddon","size"],sk=["type"],lk=["label","type"],ck=["pinLength","pinType","spacing"],uk={},dk=function(e){var t=e.name,n=e.label,a=e.help,o=e.variant,i=e.hideLabel,s=e.children,l=QE(e,ek),c=function(e,t){return r.get(t.errors,e)}(t,r.useFormContext().formState);return F.createElement(Kp,JE({variant:o},l,{isInvalid:!!c}),n&&!i?/*#__PURE__*/F.createElement(uf,{variant:o},n):null,/*#__PURE__*/F.createElement(xm,null,s,!a||null!=c&&c.message?null:/*#__PURE__*/F.createElement(Jp,null,a),(null==c?void 0:c.message)&&/*#__PURE__*/F.createElement(sf,null,null==c?void 0:c.message)))};t.__DEV__&&(dk.displayName="BaseField");var pk=F.forwardRef(function(e,t){var r=e.type;return F.createElement(uk[void 0===r?"text":r]||uk.text,JE({ref:t},e))}),fk=function(e,t,n){var a;a=null!=n&&n.isControlled?function(e){return fa(function(t,n){var a=t.name,o=t.rules,i=QE(t,rk),s=r.useFormContext();return F.createElement(r.Controller,{name:a,control:s.control,rules:o,render:function(t){var r=t.field.ref,a=QE(t.field,nk);return F.createElement(e,JE({},a,i,{ref:vr(n,r)}))}})})}(t):function(e){return fa(function(t,n){var a=t.name,o=t.rules,i=QE(t,ak),s=(0,r.useFormContext().register)(a,o),l=s.ref,c=QE(s,ok);return F.createElement(e,JE({},c,i,{ref:vr(n,l)}))})}(t);var o=function(e,t){var r=t.displayName,n=t.hideLabel,a=t.BaseField,o=fa(function(t,r){var o=t.id,i=t.name,s=t.label,l=t.help,c=t.isDisabled,u=t.isInvalid,d=t.isReadOnly,p=t.isRequired,f=t.rules,m=t.variant,v=QE(t,tk),h=JE({required:p},f);return F.createElement(a,{id:o,name:i,label:s,help:l,hideLabel:n,isDisabled:c,isInvalid:u,isReadOnly:d,isRequired:p,variant:m},/*#__PURE__*/F.createElement(e,JE({ref:r,id:o,name:i,label:n?s:void 0,rules:h},v)))});return o.displayName=r,o}(a,{displayName:e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join("")+"Field",hideLabel:null==n?void 0:n.hideLabel,BaseField:(null==n?void 0:n.BaseField)||dk});return uk[e]=o,o};fk("text",fa(function(e,t){var r=e.type,n=void 0===r?"text":r,a=e.leftAddon,o=e.rightAddon,i=e.size,s=QE(e,ik),l=/*#__PURE__*/F.createElement(Yf,JE({type:n,size:i},s,{ref:t}));return a||o?/*#__PURE__*/F.createElement(Jf,{size:i},a,l,o):l})),fk("number",zy,{isControlled:!0}),fk("password",fa(function(e,t){/*#__PURE__*/return F.createElement(dE,JE({ref:t},e))})),fk("textarea",Vy),fk("switch",fa(function(e,t){var r=QE(e,sk);return F.createElement(Ly,JE({},r,{ref:t}))}),{isControlled:!0}),fk("select",wE,{isControlled:!0}),fk("checkbox",fa(function(e,t){var r=e.label,n=QE(e,lk);return F.createElement(Bf,JE({ref:t},n),r)}),{hideLabel:!0}),fk("radio",gE,{isControlled:!0}),fk("native-select",CE,{isControlled:!0}),fk("pin",fa(function(e,t){for(var r=e.pinLength,n=void 0===r?4:r,a=e.pinType,o=e.spacing,i=QE(e,ck),s=[],l=0;l<n;l++)s.push(/*#__PURE__*/F.createElement(cy,{key:l,ref:t}));return F.createElement(ev,{spacing:o},/*#__PURE__*/F.createElement(ly,JE({},i,{type:a}),s))}),{isControlled:!0});var mk=["items"],vk=function(e){return e&&Object.entries(e).map(function(e){var t=e[0];return JE({},QE(e[1],mk),{name:t})})},hk=function(e){return{getFields:function(){return vk(e)},getNestedFields:function(r){var n,a=t.get(e,r);return a?"object"===(null==(n=a.items)?void 0:n.type)?vk(a.items.properties):"object"===a.type?vk(a.properties):[a.items]:[]}}},gk=["mode","resolver","reValidateMode","shouldFocusError","shouldUnregister","shouldUseNativeValidation","criteriaMode","delayError","schema","defaultValues","onSubmit","onError","formRef","children"],yk=fa(function(e,n){var a=e.mode,o=void 0===a?"all":a,i=e.resolver,s=e.reValidateMode,l=e.shouldFocusError,c=e.shouldUnregister,u=e.shouldUseNativeValidation,d=e.criteriaMode,p=e.delayError,f=e.schema,m=e.defaultValues,v=e.onSubmit,h=e.onError,g=e.formRef,y=e.children,b=QE(e,gk),x={mode:o,resolver:i,defaultValues:m,reValidateMode:s,shouldFocusError:l,shouldUnregister:c,shouldUseNativeValidation:u,criteriaMode:d,delayError:p};f&&!i&&(x.resolver=null==yk.getResolver?void 0:yk.getResolver(f));var E=r.useForm(x),k=E.handleSubmit;return F.useImperativeHandle(n,function(){return E},[n,E]),/*#__PURE__*/F.createElement(r.FormProvider,E,/*#__PURE__*/F.createElement(ba.form,JE({ref:g,onSubmit:k(v,h)},b,{className:t.cx("saas-form",e.className)}),y))});yk.getFieldResolver=hk,t.__DEV__&&(yk.displayName="Form");var bk=["children"],xk=function(e){/*#__PURE__*/return F.createElement(ba.div,null,e.children)};t.__DEV__&&(xk.displayName="FormLayoutItem");var Ek=function(e){var r,n,a,o=e.children,i=QE(e,bk),s=JE({},null!=(r=null==(n=na().components)||null==(a=n.FormLayout)?void 0:a.defaultProps)?r:{spacing:4},i);return F.createElement(Gm,JE({},s,{className:t.cx("saas-form__layout",i.className)}),F.Children.map(o,function(e){return F.isValidElement(e)?/*#__PURE__*/F.createElement(xk,null,e):e}))};t.__DEV__&&(Ek.displayName="FormLayout");var kk=function(e,t){return F.Children.map(t,function(t){return F.isValidElement(t)&&t.props.name?F.cloneElement(t,JE({},t.props,{name:e+"."+t.props.name})):t})},_k=rr({name:"ArrayFieldContext"}),wk=_k[0],Sk=_k[1],Ck=rr({name:"ArrayFieldRowContext"}),Ok=Ck[0],Rk=Ck[1],Ak=["children","index"],Ik=["children"],Tk=["children"],Nk=["name","defaultValue","keyName","min","max","children"],Pk=function(e){var t=e.children,r=e.index,n=QE(e,Ak);return F.createElement(Dk,{index:r},/*#__PURE__*/F.createElement(Lk,n,t),/*#__PURE__*/F.createElement(Mk,null))};t.__DEV__&&(Pk.displayName="ArrayFieldRow");var Lk=function(e){var t=e.children,r=QE(e,Ik),n=Rk().name;return F.createElement(Ek,JE({flex:"1",mr:"2"},r),kk(n,t))};t.__DEV__&&(Lk.displayName="ArrayFieldRowFields");var Dk=function(e){var t=e.children,n=function(e){var t=e.index,n=r.useFormContext().clearErrors,a=Sk(),o=a.name,i=a.remove,s=a.fields;return F.useEffect(function(){n(o)},[]),{index:t,isFirst:0===t,isLast:t===s.length-1,name:o+"."+t,remove:F.useCallback(function(){n(o),i(t)},[t])}}({index:e.index});return F.createElement(Ok,{value:n},/*#__PURE__*/F.createElement(_x.div,{__css:{display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",mb:4}},t))};t.__DEV__&&(Dk.displayName="ArrayFieldRowContainer");var Mk=function(e){/*#__PURE__*/return F.createElement(nE,JE({icon:/*#__PURE__*/F.createElement(Lx,null),"aria-label":"Remove row"},function(){var e=Rk(),t=e.isFirst,r=e.remove,n=Sk(),a=n.min;return{onClick:function(){return r()},isDisabled:t&&!!(a&&n.fields.length<=a)}}(),e))};t.__DEV__&&(Mk.displayName="ArrayFieldRemoveButton");var jk=function(e){/*#__PURE__*/return F.createElement(nE,JE({icon:/*#__PURE__*/F.createElement(Ax,null),"aria-label":"Add row",float:"right"},function(){var e=Sk(),t=e.append,r=e.defaultValue,n=e.max;return{onClick:function(){return t(r,{shouldFocus:!1})},isDisabled:!!(n&&e.fields.length>=n)}}(),e))};t.__DEV__&&(jk.displayName="ArrayFieldAddButton");var Vk=bx(function(e,t){var r=e.children,n=QE(e,Tk);return F.createElement(Fk,JE({ref:t},n),/*#__PURE__*/F.createElement(Bk,null,function(e){/*#__PURE__*/return F.createElement(F.Fragment,null,e.map(function(e,t){/*#__PURE__*/return F.createElement(Pk,{key:e.id,index:t},r)}))}),/*#__PURE__*/F.createElement(jk,null))});t.__DEV__&&(Vk.displayName="ArrayField");var Bk=function(e){return(0,e.children)(Sk().fields)};t.__DEV__&&(Bk.displayName="ArrayFieldRows");var Fk=F.forwardRef(function(e,t){var n=e.name,a=e.defaultValue,o=e.keyName,i=e.min,s=e.max,l=e.children,c=QE(e,Nk),u=function(e){var t=e.name,n=e.defaultValue,a=void 0===n?{}:n,o=e.keyName,i=e.min,s=e.max,l=r.useFormContext();return JE({},r.useFieldArray({control:l.control,name:t,keyName:o}),{name:t,defaultValue:a,min:i,max:s})}({name:n,defaultValue:a,keyName:o,min:i,max:s});return F.useImperativeHandle(t,function(){return u},[t,u]),/*#__PURE__*/F.createElement(wk,{value:u},/*#__PURE__*/F.createElement(dk,JE({name:n},c),l))});t.__DEV__&&(Fk.displayName="ArrayFieldContainer");var zk=["name","label","hideLabel","children","columns","spacing"],Wk=function(e){var t=ha("FormLegend");return F.createElement(uf,JE({as:"legend",sx:t},e))},Hk=function(e){var t=e.name,r=e.label,n=e.hideLabel,a=e.children,o=e.columns,i=e.spacing,s=QE(e,zk);return F.createElement(Kp,JE({name:t,as:"fieldset"},s),/*#__PURE__*/F.createElement(Wk,{display:n?"none":"block"},r),/*#__PURE__*/F.createElement(Ek,{columns:o,gridGap:i},kk(t,a)))};t.__DEV__&&(Hk.displayName="ObjectField");var Uk=["name","type"],$k=["schema","fieldResolver"],qk=["name","type","defaultValue"],Yk=function(e,t){var r;return null==(r=e.getNestedFields(t))?void 0:r.map(function(e,t){var r=e.name,n=e.type,a=QE(e,Uk);return F.createElement(pk,JE({key:r||t,name:r,type:n},a))})},Gk=function(e){var t=e.schema,r=e.fieldResolver,n=QE(e,$k),a=F.useMemo(function(){return r||yk.getFieldResolver(t)},[t,r]);return F.createElement(Ek,n,a.getFields().map(function(e){var t=e.name,r=e.type,n=QE(e,qk);return"array"===r?/*#__PURE__*/F.createElement(Vk,JE({key:t,name:t},n),Yk(a,t)):"object"===r?/*#__PURE__*/F.createElement(Hk,JE({key:t,name:t},n),Yk(a,t)):/*#__PURE__*/F.createElement(pk,JE({key:t,name:t,type:r},n))}))};t.__DEV__&&(Gk.displayName="Fields");var Zk=["children","disableIfUntouched","disableIfInvalid","isDisabled","isLoading"],Xk=F.forwardRef(function(e,t){var n=e.children,a=e.disableIfUntouched,o=e.disableIfInvalid,i=e.isDisabled,s=e.isLoading,l=QE(e,Zk),c=r.useFormContext().formState;return F.createElement(iE,JE({},l,{ref:t,variant:"primary",type:"submit",isLoading:c.isSubmitting||s,isDisabled:a&&!c.isDirty||o&&!c.isValid||i}),n)});Xk.defaultProps={label:"Submit",disableIfUntouched:!1,disableIfInvalid:!1},t.__DEV__&&(Xk.displayName="SubmitButton");var Kk=["schema","submitLabel","fieldResolver","children"],Jk=fa(function(e,t){var r=e.schema,n=e.submitLabel,a=void 0===n?"Submit":n,o=e.fieldResolver,i=e.children,s=QE(e,Kk);return F.createElement(yk,JE({},s,{schema:r,ref:t}),/*#__PURE__*/F.createElement(Ek,null,/*#__PURE__*/F.createElement(Gk,{schema:r,fieldResolver:o}),a&&/*#__PURE__*/F.createElement(Xk,null,a),i))});t.__DEV__&&(Jk.displayName="AutoForm");var Qk=["onChange"],e_=rr({name:"StepFormContext",errorMessage:"useStepFormContext: `context` is undefined. Seems you forgot to wrap step form components in `<StepForm />`"})[0],t_=["children"],r_=["getFormProps"];F.forwardRef(function(e,r){var n=e.children,a=QE(e,t_),o=function(e){var t=NE(QE(e,Qk)),r=t.activeStep,n=t.isLastStep,a=t.nextStep,o=F.useState({}),i=o[0],s=o[1],l=F.useCallback(function(o){try{var s=i[r];if(n)return Promise.resolve(null==e.onSubmit?void 0:e.onSubmit(o).then(function(){u(JE({},s,{isCompleted:!0}))}).then(a));var l=function(e,r){try{var n=Promise.resolve(null==s.onSubmit?void 0:s.onSubmit(o,t)).then(function(){a()})}catch(e){return}return n&&n.then?n.then(void 0,function(){}):n}();return Promise.resolve(l&&l.then?l.then(function(){}):void 0)}catch(o){return Promise.reject(o)}},[i,r,n]),c=F.useCallback(function(){var e=i[r];return{onSubmit:l,schema:null==e?void 0:e.schema,resolver:null==e?void 0:e.resolver}},[i,l,r]),u=F.useCallback(function(e){s(function(t){var r;return JE({},t,((r={})[e.name]=e,r))})},[i]);return JE({getFormProps:c,updateStep:u,steps:i},t)}(e),i=o.getFormProps,s=QE(o,r_),l=F.useMemo(function(){return s},[s]);return F.createElement(IE,{value:l},/*#__PURE__*/F.createElement(e_,{value:l},/*#__PURE__*/F.createElement(yk,JE({ref:r},a,i()),t.runIfFn(n,o))))});var n_=function(e){return hk(e.properties)};exports.jsonSchemaForm=function(t){return{schema:t,fieldResolver:n_(t),resolver:e.ajvResolver(t)}};
|
104
104
|
//# sourceMappingURL=index.js.map
|