@fewbox/den-web 0.0.87 → 0.0.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import*as e from"react";import t from"next/image";import n from"next/link";import{jwtDecode as a}from"jwt-decode";import"react-ga4";var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i,c,l,u,s,d,m,f,p=function(){return p=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)};function g(e,t,n){if(n||2===arguments.length)for(var a,r=0,o=t.length;r<o;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError,function(e){e.Font="font",e.Body="body",e.White="white",e.Black="black",e.Light="light",e.Light75="light75",e.Light50="light50",e.Light25="light25",e.Dark="dark",e.Dark75="dark75",e.Dark50="dark50",e.Dark25="dark25",e.Primary="primary",e.Primary75="primary75",e.Primary50="primary50",e.Primary25="primary25",e.Secondary="secondary",e.Secondary75="secondary75",e.Secondary50="secondary50",e.Secondary25="secondary25",e.Tertiary="tertiary",e.Tertiary75="tertiary75",e.Tertiary50="tertiary50",e.Tertiary25="tertiary25",e.Info="info",e.Info75="info75",e.Info50="info50",e.Info25="info25",e.Success="success",e.Success75="success75",e.Success50="success50",e.Success25="success25",e.Warning="warning",e.Warning75="warning75",e.Warning50="warning50",e.Warning25="warning25",e.Error="error",e.Error75="error75",e.Error50="error50",e.Error25="error25",e.Border="border",e.Border75="border75",e.Border50="border50",e.Border25="border25",e.Placeholder="placeholder",e.Placeholder75="placeholder75",e.Placeholder50="placeholder50",e.Placeholder25="placeholder25",e.Transparent="transparent"}(i||(i={})),function(e){e.Thin="font-weight-thin",e.ExtraLight="font-weight-extra-light",e.Light="font-weight-light",e.Regular="font-weight-regular",e.Medium="font-weight-medium",e.SemiBold="font-weight-semi-bold",e.Bold="font-weight-bold",e.ExtraBold="font-weight-extra-bold",e.Black="font-weight-black"}(c||(c={})),function(e){e.Default="font-family"}(l||(l={})),function(e){e.Default="line-height"}(u||(u={})),function(e){e.Default="padding"}(s||(s={})),function(e){e.Default="letter-spacing"}(d||(d={})),function(e){e.Default="border-radius",e.Fixed="border-radius-fixed",e.Max="border-radius-max"}(m||(m={})),function(e){e.Ellipse="v-ellipse-size",e.Rectangle="v-rectangle-size",e.Image="v-image-size",e.Svg="v-svg-size",e.Window="v-window-size"}(f||(f={}));var h,v,y,b,E=function(e){var t;switch(e){case c.Thin:t=100;break;case c.ExtraLight:t=200;break;case c.Light:t=300;break;case c.Regular:t=400;break;case c.Medium:t=500;break;case c.SemiBold:t=600;break;case c.Bold:t=700;break;case c.ExtraBold:t=800;break;case c.Black:t=900;break;default:t=400}return t};!function(e){e.Default="font-size",e.Normal="font-size-normal",e.Small="font-size-small",e.ExtraSmall="font-size-extra-small",e.Large="font-size-large",e.ExtraLarge="font-size-extra-large",e.AutoNormal="auto-font-size-normal",e.AutoSmall="auto-font-size-small",e.AutoExtraSmall="auto-font-size-extra-small",e.AutoLarge="auto-font-size-large",e.AutoExtraLarge="auto-font-size-extra-large"}(h||(h={})),function(e){e.All="all",e.Before="before",e.After="after"}(v||(v={})),function(e){e.All="all",e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.ExceptTop="except-top",e.ExceptRight="except-right",e.ExceptBottom="except-bottom",e.ExceptLeft="except-left",e.RightTop="right-top",e.RightBottom="right-bottom",e.LeftTop="left-top",e.LeftBottom="left-bottom",e.TopBottom="top-bottom",e.LeftRight="left-right"}(y||(y={})),function(e){e.Flex="Flex",e.FlexItem="FlexItem",e.Position="Position",e.PositionArea="PositionArea",e.SBaseline="SBaseline",e.SBottom="SBottom",e.SLeft="SLeft",e.SMiddle="SMiddle",e.SCenter="SCenter",e.SRight="SRight",e.SStretch="SStretch",e.STop="STop",e.X="X",e.XAround="XAround",e.XAutoBoth="XAutoBoth",e.XAutoCenter="XAutoCenter",e.XAutoLeft="XAutoLeft",e.XAutoLefts="XAutoLefts",e.XAutoRight="XAutoRight",e.XAutoRights="XAutoRights",e.XBetween="XBetween",e.XCenter="XCenter",e.XCustom="XCustom",e.XCustomBoth="XCustomBoth",e.XEvenly="XEvenly",e.XLeft="XLeft",e.XRight="XRight",e.XWrap="XWrap",e.XWrapAround="XWrapAround",e.XWrapBetween="XWrapBetween",e.XWrapBottom="XWrapBottom",e.XWrapEvenly="XWrapEvenly",e.XWrapMiddle="XWrapMiddle",e.XWrapTop="XWrapTop",e.Y="Y",e.YAround="YAround",e.YBetween="YBetween",e.YBottom="YBottom",e.YEvenly="YEvenly",e.YMiddle="YMiddle",e.YTop="YTop",e.VEllipse="VEllipse",e.VLine="VLine",e.VRectangle="VRectangle",e.VAvatar="VAvatar",e.VBlock="VBlock",e.VBoundary="VBoundary",e.VButton="VButton",e.VCard="VCard",e.VCardMedia="VCardMedia",e.VCardSocial="VCardSocial",e.VCardWindow="VCardWindow",e.VChromeExtensionValidator="VChromeExtensionValidator",e.VCodePreview="VCodePreview",e.VDesigner="VDesigner",e.VDynamic="VDynamic",e.VBackground="VBackground",e.VForm="VForm",e.VImage="VImage",e.VCheckBox="VCheckBox",e.VColor="VColor",e.VDate="VDate",e.VDatetimeLocal="VDatetimeLocal",e.VEmail="VEmail",e.VFile="VFile",e.VMonth="VMonth",e.VNumber="VNumber",e.VPassword="VPassword",e.VRadio="VRadio",e.VRange="VRange",e.VSearch="VSearch",e.VSubmit="VSubmit",e.VTel="VTel",e.VTextBox="VTextBox",e.VTime="VTime",e.VUrl="VUrl",e.VWeek="VWeek",e.VLabel="VLabel",e.VLink="VLink",e.VPhoto="VPhoto",e.VShadow="VShadow",e.VStack="VStack",e.VSvg="VSvg",e.VText="VText",e.VTooltip="VTooltip"}(b||(b={}));var C,S=function(){function e(e){this.className=e}return e.prototype.getClassName=function(){return"".concat(this.className)},e}(),k=function(e){this.component=e},w=function(e){function t(t,n,a){var r=e.call(this,t)||this;return r.sizeType=n,r.isAuto=a,r}return o(t,e),t.prototype.getClassName=function(){if(this.sizeType){var e=void 0;return e=Object.values(h).includes(this.sizeType)?this.sizeType:"font-size-".concat(this.sizeType),"".concat(this.component.getClassName()," ").concat(this.isAuto?"auto-".concat(e):e)}return this.component.getClassName()},t}(k),_=function(e){function t(t,n){var a=e.call(this,t)||this;return a.weightType=n,a}return o(t,e),t.prototype.getClassName=function(){return this.weightType?"".concat(this.component.getClassName()," ").concat(this.weightType):this.component.getClassName()},t}(k),x=function(e){function t(t,n,a,r,o,i,c,l,u,s,d){var m=e.call(this,t)||this;return m.isDefaultValue=n,m.frontColorType=a,m.backgroundColorType=r,m.borderColorType=o,m.borderDirectionType=i,m.pseudoType=c,m.pseudoFrontColorType=l,m.pseudoBackgroundColorType=u,m.pseudoBorderColorType=s,m.pseudoBorderDirectionType=d,m}return o(t,e),t.prototype.getBorderPrefix=function(e){return e?"-".concat(e):""},t.prototype.getBorderColorClassName=function(e,t,n){var a,r=this.getBorderPrefix(n);switch(t){case y.Bottom:a=" ".concat(e).concat(r,"-border-bottom");break;case y.ExceptBottom:a=" ".concat(e).concat(r,"-border-except-bottom");break;case y.ExceptLeft:a=" ".concat(e).concat(r,"-border-except-left");break;case y.ExceptRight:a=" ".concat(e).concat(r,"-border-except-right");break;case y.ExceptTop:a=" ".concat(e).concat(r,"-border-except-top");break;case y.Left:a=" ".concat(e).concat(r,"-border-left");break;case y.LeftBottom:a=" ".concat(e).concat(r,"-border-left-bottom");break;case y.LeftRight:a=" ".concat(e).concat(r,"-border-left-right");break;case y.LeftTop:a=" ".concat(e).concat(r,"-border-left-top");break;case y.Right:a=" ".concat(e).concat(r,"-border-right");break;case y.RightBottom:a=" ".concat(e).concat(r,"-border-right-bottom");break;case y.RightTop:a=" ".concat(e).concat(r,"-border-right-top");break;case y.Top:a=" ".concat(e).concat(r,"-border-top");break;case y.TopBottom:a=" ".concat(e).concat(r,"-border-bottom");break;default:a=" ".concat(e).concat(r,"-border")}return a},t.prototype.getClassName=function(){var e,t,n=this.backgroundColorType?" ".concat(this.backgroundColorType,"-background"):this.isDefaultValue?" ".concat(i.White,"-background"):"",a=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-before-background"):this.isDefaultValue?" ".concat(i.White,"-before-background"):"",r=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-after-background"):this.isDefaultValue?" ".concat(i.White,"-after-background"):"",o="".concat(a).concat(r),c=this.frontColorType?" ".concat(this.frontColorType,"-front"):this.isDefaultValue?" ".concat(i.Black,"-front"):"",l=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-before-front"):this.isDefaultValue?" ".concat(i.Black,"-before-front"):"",u=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-after-front"):this.isDefaultValue?" ".concat(i.Black,"-after-front"):"",s="".concat(l).concat(u);return e=this.borderColorType?this.borderDirectionType?this.getBorderColorClassName(this.borderColorType,this.borderDirectionType):" ".concat(this.borderColorType).concat(this.getBorderPrefix(this.pseudoType),"-border"):this.isDefaultValue?" ".concat(i.Transparent).concat(this.getBorderPrefix(this.pseudoType),"-border"):"",t=this.pseudoType?this.pseudoBorderColorType?this.pseudoBorderDirectionType?this.getBorderColorClassName(this.pseudoBorderColorType,this.pseudoBorderDirectionType,this.pseudoType):" ".concat(this.pseudoBorderColorType).concat(this.getBorderPrefix(this.pseudoType),"-border"):this.isDefaultValue?" ".concat(i.Transparent).concat(this.getBorderPrefix(this.pseudoType),"-border"):"":"","".concat(this.component.getClassName()).concat(n).concat(o).concat(c).concat(s).concat(e).concat(t)},t}(k),B=function(e,t,n,a,r,o,i,c,l,u,s,d,m,f){return new x(new w(new _(new S(e),r),n,a),t,o,i,c,l,u,s,d,m,f).getClassName()};!function(e){e.Div="div",e.Span="span"}(C||(C={}));var V,T=function(e){return{getClassName:function(t){var n=B(t,e.isDefaultValue,e.size,e.isAutoSize,e.weight,e.frontColor,e.backgroundColor,e.borderColor,e.borderDirection,e.pseudoType,e.pseudoFrontColor,e.pseudoBackgroundColor,e.pseudoBorderColor,e.pseudoBorderDirection);return e.className?"".concat(e.className," ").concat(n):n},getStyle:function(){var t;e.fontFamily&&(t=e.fontFamily);var n={borderRadius:e.borderRadius,borderWidth:e.borderWidth,borderStyle:e.borderStyle,borderColor:e.borderColor,padding:e.padding,margin:e.margin,height:e.height,width:e.width,minHeight:e.minHeight,minWidth:e.minWidth,maxHeight:e.maxHeight,maxWidth:e.maxWidth,opacity:e.opacity,display:e.display,zIndex:e.zIndex,visibility:e.visibility,fontFamily:t,letterSpacing:e.letterSpacing,lineHeight:e.lineHeight,cursor:e.cursor,overflow:e.overflow,overflowX:e.overflowX,overflowY:e.overflowY};return p(p({},e.style),n)},getChildren:function(e){return e.children&&Object.keys(e.children).indexOf("type")>-1&&null==e.children.type.name?e.children.props.children:e.children}}};!function(e){e.ExtraSmall="extra-small",e.Small="small",e.Medium="medium",e.Large="large",e.ExtraLarge="extra-large",e.ExtraExtraLarge="extra-extra-large"}(V||(V={}));var R,D=function(t){var n=T(t);return t.rootCategory==C.Span?e.createElement("span",p({id:t.id,className:"v-root ".concat(n.getClassName(t.vClassName)),style:n.getStyle()},t.customAttibutes,{onClick:t.onClick,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onDrag:t.onDrag,onDrop:t.onDrop,onDragOver:t.onDragOver,onDragEnd:t.onDragEnd,onDragLeave:t.onDragLeave,onDragExit:t.onDragExit}),t.children):e.createElement("div",p({id:t.id,className:"v-root ".concat(n.getClassName(t.vClassName)),style:n.getStyle()},t.customAttibutes,{onClick:t.onClick,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onDrag:t.onDrag,onDrop:t.onDrop,onDragOver:t.onDragOver,onDragEnd:t.onDragEnd,onDragLeave:t.onDragLeave,onDragExit:t.onDragExit}),t.children)};!function(e){e.Fluid="fluid",e.Small="small",e.Medium="medium",e.Large="large",e.ExtraLarge="extra-large",e.ExtraExtraLarge="extra-extra-large"}(R||(R={}));var I,L;!function(e){e.Visiable="visiable",e.Hidden="hidden"}(I||(I={})),function(e){e.Only="only",e.Up="up",e.Down="down"}(L||(L={}));var N;!function(e){e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.LeftTop="left-top",e.RightTop="right-top",e.LeftBottom="left-bottom",e.RightBottom="right-bottom",e.LeftInnerTop="left-inner-top",e.RightInnerTop="right-inner-top",e.LeftInnerBottom="left-inner-bottom",e.RightInnerBottom="right-inner-bottom"}(N||(N={}));var O,F,A=function(t){var n,a=e.useRef(null),r=e.useRef(null),o=e.useRef(null),i=function(){if(r.current&&o.current&&a.current)if(t.category==N.Bottom||t.category==N.Top){var e="-".concat(Math.abs(o.current.offsetWidth-r.current.offsetWidth)/2,"px");r.current.style.marginLeft=e}else if(t.category==N.Left||t.category==N.Right){var n="".concat(Math.abs(o.current.offsetHeight-a.current.offsetHeight)/2,"px");a.current.style.top=n}else if(t.category==N.LeftTop){e="-".concat(r.current.offsetWidth,"px");r.current.style.marginLeft=e}else if(t.category==N.LeftBottom){e="-".concat(r.current.offsetWidth,"px");r.current.style.marginLeft=e}else if(t.category==N.RightTop){e="".concat(o.current.offsetWidth,"px");r.current.style.marginLeft=e}else if(t.category==N.RightBottom){e="".concat(o.current.offsetWidth,"px");r.current.style.marginLeft=e}else if(t.category==N.LeftInnerTop);else if(t.category==N.LeftInnerBottom);else if(t.category==N.RightInnerTop){e="".concat(o.current.offsetWidth-r.current.offsetWidth,"px");r.current.style.marginLeft=e}else if(t.category==N.RightInnerBottom){e="".concat(o.current.offsetWidth-r.current.offsetWidth,"px");r.current.style.marginLeft=e}};if(e.useEffect((function(){r.current&&new ResizeObserver((function(e){i()})).observe(r.current);i()}),[]),t.category)switch(t.category){case N.Bottom:n="dock-overlay-bottom";break;case N.Left:n="dock-overlay-left";break;case N.LeftBottom:n="dock-overlay-leftbottom";break;case N.LeftTop:n="dock-overlay-lefttop";break;case N.Right:n="dock-overlay-right";break;case N.RightBottom:n="dock-overlay-rightbottom";break;case N.RightTop:n="dock-overlay-righttop";break;case N.Top:n="dock-overlay-top";break;case N.LeftInnerBottom:n="dock-overlay-leftinnerbottom";break;case N.LeftInnerTop:n="dock-overlay-leftinnertop";break;case N.RightInnerBottom:n="dock-overlay-rightinnerbottom";break;case N.RightInnerTop:n="dock-overlay-rightinnertop";break;default:n="dock-overlay"}return e.createElement("div",{className:"dock"},e.createElement("div",{id:"dockOverlay",style:{zIndex:t.zIndex},className:n,ref:a},e.createElement("div",{ref:r},t.renderOverlay())),e.createElement("div",{id:"dockContent",className:"dock-content",ref:o,onClick:function(e){t.onClick&&t.onClick(e)}},t.children))};!function(e){e.Edge="edge",e.Window="window",e.Area="area",e.Self="self"}(O||(O={})),function(e){e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.LeftTop="left-top",e.RightTop="right-top",e.LeftBottom="left-bottom",e.RightBottom="right-bottom",e.Center="center"}(F||(F={}));var W,z=function(t){var n;if(t.category&&(n=t.type?"position-".concat(t.category,"-").concat(t.type):"position-".concat(t.category,"-custom")),t.isFullWidth&&(n="".concat(n," position-full-width")),t.type){var a=void 0;return a=p(p({},t.style),{zIndex:t.zIndex}),e.createElement("div",{className:n,style:a},t.children)}a=void 0;return a=t.category!=O.Self?p(p({},t.style),{top:t.top,right:t.right,bottom:t.bottom,left:t.left,zIndex:t.zIndex}):p(p({},t.style),{top:"-".concat(t.top),right:"-".concat(t.right),bottom:"-".concat(t.bottom),left:"-".concat(t.left),zIndex:t.zIndex}),e.createElement("div",{className:n,style:a},t.children)};!function(e){e.Default="default",e.FullSize="full-size"}(W||(W={}));var X,M,U,P,H,j=function(t){return e.createElement(e.Fragment,null,e.Children.map(t.children,(function(n){return function(n){var a={className:"position-area-".concat(t.category?t.category:W.Default," ").concat(n.props.className)};return e.cloneElement(n,a)}(n)})))};!function(e){e.Row="row",e.RowReverse="row-reverse",e.Column="column",e.ColumnReverse="column-reverse"}(X||(X={})),function(e){e.NoWrap="nowrap",e.Wrap="wrap"}(M||(M={})),function(e){e.Start="flex-start",e.Center="center",e.End="flex-end",e.SpaceBetween="space-between",e.SpaceAround="space-around",e.SpaceEvenly="space-evenly"}(U||(U={})),function(e){e.Start="flex-start",e.Center="center",e.End="flex-end",e.Stretch="stretch",e.Baseline="baseline"}(P||(P={})),function(e){e.Start="flex-start",e.Center="center",e.End="flex-end",e.SpaceBetween="space-between",e.SpaceAround="space-around",e.SpaceEvenly="space-evenly"}(H||(H={}));var Y,J=function(t){var n=p(p({},t.style),{gap:t.gap,cursor:t.cursor?t.cursor:t.onClick?"pointer":"inherit"}),a=t.overflow?"flex-".concat(t.overflow):"flex-hidden",r=t.direction?" flex-direction-".concat(t.direction):"",o=t.wrap?" flex-wrap-".concat(t.wrap):"",i=t.justifyContent?" flex-justify-content-".concat(t.justifyContent):"",c=t.alignItems?" flex-align-items-".concat(t.alignItems):"",l=t.alignContent?" flex-align-content-".concat(t.alignContent):"",u="".concat(a).concat(r).concat(o).concat(i).concat(c).concat(l);return t.rootCategory==C.Span?e.createElement("span",{className:t.className?"".concat(t.className," ").concat(u):u,style:n,onClick:t.onClick},t.children):e.createElement("div",{className:t.className?"".concat(t.className," ").concat(u):u,style:n,onClick:t.onClick},t.children)};!function(e){e.Start="start",e.Center="center",e.End="end",e.Stretch="stretch",e.Baseline="baseline"}(Y||(Y={}));var q,G=function(t){return t.children&&Object.keys(t.children).indexOf("type")>-1?e.createElement(e.Fragment,null,e.Children.map(t.children,(function(n){return function(n){var a={};if(t.order&&(a.order=t.order),t.basis&&(a.flexBasis=t.basis),t.grow&&(a.flexGrow=t.grow),t.shrink&&(a.flexShrink=t.shrink),n.props){var r=p(p({},a),n.props?n.props.style:null),o=t.alignSelf?" flex-align-self-".concat(t.alignSelf):"",i=n.props.className?" ".concat(n.props.className):"",c={className:"flex-item".concat(o).concat(i),style:r};return e.cloneElement(n,c)}return console.debug(n),e.createElement(e.Fragment,null,"Please check child.")}(n)}))):e.createElement(e.Fragment,null)};!function(e){e.Top="top",e.Middle="middle",e.Bottom="bottom",e.Stretch="stretch",e.Baseline="baseline"}(q||(q={}));var Z,K=function(t,n,a,r,o){var i=T(t),c=function(t,a,r){return n?n(t,a,r):e.createElement(G,{key:"child".concat(a),alignSelf:r},t)};return e.createElement(J,{rootCategory:t.rootCategory,className:i.getClassName("v-xbase"),style:i.getStyle(),gap:t.gap,overflow:t.overflow,alignItems:function(){var e;if(t.cross)switch(t.cross){case q.Stretch:e=P.Stretch;break;case q.Baseline:e=P.Baseline;break;case q.Bottom:e=P.End;break;case q.Middle:e=P.Center;break;case q.Top:e=P.Start;break;default:e=P.Center}else e=P.Center;return e}(),wrap:a?a():M.NoWrap,justifyContent:r?r():U.Start,alignContent:o?o():H.Start,onClick:t.onClick},e.Children.map(i.getChildren(t),(function(t,n){var a=t;return a?a.type?"STop"===a.props.typeName?c(a.props.children,n,Y.Start):"SMiddle"===a.props.typeName?c(a.props.children,n,Y.Center):"SBottom"===a.props.typeName?c(a.props.children,n,Y.End):"SStretch"===a.props.typeName?c(a.props.children,n,Y.Stretch):"SBaseline"===a.props.typeName?c(a.props.children,n,Y.Baseline):c(a,n):(console.debug(a),e.createElement(e.Fragment,null,"Please check X layout children.")):void 0})))},Q=function(t){return K(t,(function(t,n,a){return e.createElement(G,{grow:1,alignSelf:a},t)}))},$=function(t){var n=T(t);return K(t,(function(a,r,o){return 0!=r&&r!=e.Children.count(n.getChildren(t))-1?e.createElement(G,{grow:1,alignSelf:o},a):e.createElement(G,{grow:0,alignSelf:o},a)}))},ee=function(t){var n=T(t);return K(t,(function(a,r){return r==e.Children.count(n.getChildren(t))-1?e.createElement(G,{grow:1},a):e.createElement(G,{grow:0},a)}))},te=function(e){return K(e,void 0,void 0,(function(){return U.Center}))},ne=function(e){return K(e)};!function(e){e.Left="left",e.Center="center",e.Right="right",e.Baseline="baseline",e.Stretch="stretch"}(Z||(Z={}));var ae,re=function(t,n,a,r,o){var i=T(t),c=function(t,a,r){return n?n(t,a,r):e.createElement(G,{key:"child".concat(a),alignSelf:r},t)};return e.createElement(J,{className:i.getClassName("v-ybase"),style:i.getStyle(),overflow:t.overflow,gap:t.gap,wrap:a?a():M.NoWrap,alignContent:r?r():H.Start,alignItems:function(){var e;if(t.cross)switch(t.cross){case Z.Left:e=P.Start;break;case Z.Center:e=P.Center;break;case Z.Right:e=P.End;break;case Z.Baseline:e=P.Baseline;break;default:e=P.Stretch}else e=P.Stretch;return e}(),direction:X.Column,justifyContent:o?o():U.Start,onClick:t.onClick},e.Children.map(i.getChildren(t),(function(t,n){var a=t;return a?a.type?a&&"SLeft"===a.props.typeName?c(a.props.children,n,Y.Start):a&&"SMiddle"===a.props.typeName||a&&"SCenter"===a.props.typeName?c(a.props.children,n,Y.Center):a&&"SRight"===a.props.typeName?c(a.props.children,n,Y.End):a&&"SStretch"===a.props.typeName?c(a.props.children,n,Y.Stretch):a&&"SBaseline"===a.props.typeName?c(a.props.children,n,Y.Baseline):c(t,n):(console.debug(a),e.createElement(e.Fragment,null,"Please check Y layout children.")):void 0})))},oe=function(t){return re(t,(function(t,n,a){return e.createElement(G,{grow:1,alignSelf:a},t)}))};!function(e){e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.Center="center"}(ae||(ae={}));var ie,ce=function(n){var a=p(p({},n),{alt:"FewBox ".concat(n.alt)});return e.createElement(t,p({},a))},le=function(e){var t={};return e.forEach((function(e,n){var a,r=!1;n.startsWith("#")?(r=!0,a=n.substring(1).split(".")):a=n.split(".");var o=t;a.forEach((function(t,n){if(n==a.length-1)if(t.endsWith("[]")){var i=t.replace("[]","");Object.keys(o).filter((function(e){return e==i})).length>0?o[i]=g(g([],o[i],!0),[r?JSON.parse(e.toString()):e],!1):o[i]=[r?JSON.parse(e.toString()):e]}else o[t]=r?JSON.parse(e.toString()):e;else t in o||(o[t]={}),o=o[t]}))})),t};!function(e){e.Json="json",e.FormData="formdata"}(ie||(ie={}));var ue,se,de;!function(e){e.Div="div",e.Abbr="abbr",e.Span="span",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.I="i",e.B="b",e.U="u",e.Em="em",e.Strong="strong",e.Blockquote="blockquote",e.Cite="cite",e.Code="code",e.Del="del",e.Dfn="dfn",e.Ins="ins",e.Kbd="kbd",e.Mark="mark",e.Pre="pre",e.Q="q",e.S="s",e.Samp="samp",e.Small="small",e.Summary="summary",e.Sup="sup",e.Sub="sub",e.Time="time",e.Var="var",e.Wbr="wbr"}(ue||(ue={})),function(e){e.Default="default",e.Circle="circle"}(se||(se={})),function(e){e[e.Justify=0]="Justify",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Center=3]="Center"}(de||(de={}));var me,fe=function(t){var n,a;switch(t.alignType){case de.Center:a="v-label-center";break;case de.Justify:a="v-label-justify";break;case de.Left:a="v-label";break;case de.Right:a="v-label-right";break;default:a="v-label"}switch(t.type==se.Circle&&(a="".concat(a,"-circle")),t.isTextOverflow&&(a+=" v-label-text-overflow"),t.category){case ue.Div:n=e.createElement("div",null,t.caption);break;case ue.Span:n=e.createElement("span",null,t.caption);break;case ue.H1:n=e.createElement("h1",null,t.caption);break;case ue.H2:n=e.createElement("h2",null,t.caption);break;case ue.H3:n=e.createElement("h3",null,t.caption);break;case ue.H4:n=e.createElement("h4",null,t.caption);break;case ue.H5:n=e.createElement("h5",null,t.caption);break;case ue.H6:n=e.createElement("h6",null,t.caption);break;case ue.I:n=e.createElement("i",null,t.caption);break;case ue.B:n=e.createElement("b",null,t.caption);break;case ue.U:n=e.createElement("u",null,t.caption);break;case ue.Abbr:n=e.createElement("abbr",{title:t.title},t.caption);break;case ue.Em:n=e.createElement("em",null,t.caption);break;case ue.Strong:n=e.createElement("strong",null,t.caption);break;case ue.Blockquote:n=e.createElement("blockquote",{cite:t.cite},t.caption);break;case ue.Cite:n=e.createElement("cite",null,t.caption);break;case ue.Code:n=e.createElement("code",null,t.caption);break;case ue.Del:n=e.createElement("del",null,t.caption);break;case ue.Dfn:n=e.createElement("dfn",null,t.caption);break;case ue.Ins:n=e.createElement("ins",null,t.caption);break;case ue.Kbd:n=e.createElement("kbd",null,t.caption);break;case ue.Mark:n=e.createElement("mark",null,t.caption);break;case ue.Pre:n=e.createElement("pre",null,t.caption);break;case ue.Q:n=e.createElement("q",null,t.caption);break;case ue.S:n=e.createElement("s",null,t.caption);break;case ue.Samp:n=e.createElement("samp",null,t.caption);break;case ue.Small:n=e.createElement("small",null,t.caption);break;case ue.Summary:n=e.createElement("summary",null,t.caption);break;case ue.Sub:n=e.createElement("sub",null,t.caption);break;case ue.Sup:n=e.createElement("sup",null,t.caption);break;case ue.Time:n=e.createElement("time",null,t.caption);break;case ue.Var:n=e.createElement("var",null,t.caption);break;case ue.Wbr:n=e.createElement("wbr",null,t.caption);break;default:n=e.createElement("span",null,t.caption)}return t.type==se.Circle?e.createElement(j,null,e.createElement(D,p({vClassName:a,width:"1.6em",height:"1.6em",borderRadius:"2em"},t),e.createElement(z,{category:O.Area,type:F.Center},n))):e.createElement(D,p({display:null==t.category||t.category==ue.Span?"inline-block":"block",vClassName:a},t),n)},pe=function(t){return e.createElement(D,p({id:t.id,vClassName:"v-boundary"},t),e.createElement("div",{onClick:t.onClick,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave},t.children))},ge=function(t){var n,a=e.useState({value:void 0!==t.value?t.value:""}),r=a[0],o=a[1],c=e.useRef(null),l=e.useRef(null);return e.useEffect((function(){var e;t.ref?null===(e=t.ref.current)||void 0===e||e.focus():t.isFocus&&c.current&&c.current.focus()})),t.overWrite&&(n=t.ref?t.overWrite(t.ref):t.overWrite(c)),e.createElement(D,p({vClassName:"v-validity v-input".concat(t.inheritClassName?" ".concat(t.inheritClassName):"")},t),e.createElement(oe,{display:n?"none":void 0},e.createElement($,{gap:"0.6em"},e.createElement(pe,null,!!t.icon&&t.icon),e.createElement(pe,null,e.createElement("input",p({ref:t.ref?t.ref:c},t.customAttibutes,{className:t.inputClassName,style:p(p({},t.inputStyle),{display:t.isReadonly?"none":"block"}),required:t.isRequired,placeholder:t.placeholder,type:t.type,id:t.id?t.id:t.name,name:t.name,value:t.valueHook?t.valueHook:r.value,min:t.min,max:t.max,step:t.step,disabled:t.disabled,onChange:function(e){var n,a;t.isValueShow&&o({value:t.ref?null===(n=t.ref.current)||void 0===n?void 0:n.value:null===(a=c.current)||void 0===a?void 0:a.value}),t.onChange&&t.onChange(e),t.setStateHook?t.setStateHook(e.target.value):o({value:e.target.value})},onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onClick:t.onClick,onBlur:t.onBlur,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onDrag:t.onDrag})),!!t.isReadonly&&e.createElement("div",{ref:t.readonlyRef?t.readonlyRef:l},t.valueHook?t.valueHook:r.value?r.value.toString():""),!!t.label&&e.createElement("label",{htmlFor:t.id?t.id:t.name},t.label)),e.createElement(pe,null,!!t.extensions&&e.createElement(Q,null,t.extensions.map((function(n,a){return e.createElement("span",{key:"extension".concat(a),className:"extension",onClick:function(){var e=t.ref?t.ref.current:c.current;n.handleOption(e)}},n.option)}))))),!!t.isValueShow&&e.createElement(te,null,e.createElement(fe,{padding:t.valuePadding,isAutoSize:t.isAutoSize,size:t.valueSize?t.valueSize:h.Normal,frontColor:t.valueColor?t.valueColor:i.Black,caption:void 0!==r.value?r.value.toString():t.value?t.value.toString():""}))),!!n&&n)};!function(e){e.Default="default",e.Circle="circle",e.Squared="squared",e.Custom="custom"}(me||(me={}));var he,ve,ye=function(t){var n=T(t);return e.createElement(e.Fragment,null,e.Children.map(t.children,(function(a){return function(a){var r=t.category?t.category:me.Default,o=n.getClassName("v-svg-".concat(r)),i=t.onClick,c=t.onMouseEnter,l=t.onMouseLeave,u={className:o,style:p(p({},n.getStyle()),{cursor:i?"pointer":"inherit"}),onClick:i,onMouseEnter:c,onMouseLeave:l};return e.cloneElement(a,u)}(a)})))};function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},be.apply(null,arguments)}var Ee,Ce=function(t){return e.createElement("svg",be({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},t),he||(he=e.createElement("path",{fill:"currentColor",d:"M198.132 64.763a6 6 0 0 0-6-6H65.753a6 6 0 0 0-6 6v126.473a6 6 0 0 0 6 6h126.399a6 6 0 0 0 6-6.001z"})),ve||(ve=e.createElement("path",{fill:"currentColor",d:"M40.562 228h174.876c3.334 0 6.528-1.324 8.884-3.682a12.57 12.57 0 0 0 3.678-8.886V40.568a12.57 12.57 0 0 0-3.678-8.886A12.55 12.55 0 0 0 215.438 28H40.562a12.56 12.56 0 0 0-8.884 3.682A12.57 12.57 0 0 0 28 40.568v174.864a12.57 12.57 0 0 0 3.678 8.886A12.56 12.56 0 0 0 40.562 228m4.044-169.236v-.002c0-4 1.588-7.835 4.414-10.664a15.07 15.07 0 0 1 10.659-4.416h138.453a15.07 15.07 0 0 1 10.659 4.416 15.1 15.1 0 0 1 4.416 10.664v138.473c0 3.999-1.59 7.835-4.416 10.663a15.07 15.07 0 0 1-10.659 4.417H59.755a15.07 15.07 0 0 1-10.658-4.417 15.08 15.08 0 0 1-4.415-10.663z"})))};function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Se.apply(null,arguments)}var ke,we,_e,xe,Be=function(t){return e.createElement("svg",Se({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},t),Ee||(Ee=e.createElement("path",{fill:"currentColor",d:"M40.562 228h174.876c3.334 0 6.528-1.324 8.884-3.682a12.57 12.57 0 0 0 3.678-8.886V40.568a12.57 12.57 0 0 0-3.678-8.886A12.55 12.55 0 0 0 215.438 28H40.562a12.56 12.56 0 0 0-8.884 3.682A12.57 12.57 0 0 0 28 40.568v174.864a12.57 12.57 0 0 0 3.678 8.886A12.56 12.56 0 0 0 40.562 228m4.044-169.236v-.002c0-4 1.588-7.835 4.414-10.664a15.07 15.07 0 0 1 10.659-4.416h138.453a15.07 15.07 0 0 1 10.659 4.416 15.1 15.1 0 0 1 4.416 10.664v138.473c0 3.999-1.59 7.835-4.416 10.663a15.07 15.07 0 0 1-10.659 4.417H59.755a15.07 15.07 0 0 1-10.658-4.417 15.08 15.08 0 0 1-4.415-10.663z"})))};!function(e){e.Bounce="animate__bounce",e.Flash="animate__flash",e.Pulse="animate__pulse",e.RubberBand="animate__rubberBand",e.ShakeX="animate__shakeX",e.ShakeY="animate__shakeY",e.HeadShake="animate__headShake",e.Swing="animate__swing",e.Tada="animate__tada",e.Wobble="animate__wobble",e.Jello="animate__jello",e.HeartBeat="animate__heartBeat",e.BackInDown="animate__backInDown",e.BackInLeft="animate__backInLeft",e.BackInRight="animate__backInRight",e.BackInUp="animate__backInUp",e.BackOutDown="animate__backOutDown",e.BackOutLeft="animate__backOutLeft",e.BackOutRight="animate__backOutRight",e.BackOutUp="animate__backOutUp",e.BounceIn="animate__bounceIn",e.BounceInDown="animate__bounceInDown",e.BounceInLeft="animate__bounceInLeft",e.BounceInRight="animate__bounceInRight",e.BounceInUp="animate__bounceInUp",e.BounceOut="animate__bounceOut",e.BounceOutDown="animate__bounceOutDown",e.BounceOutLeft="animate__bounceOutLeft",e.BounceOutRight="animate__bounceOutRight",e.BounceOutUp="animate__bounceOutUp",e.FadeIn="animate__fadeIn",e.FadeInDown="animate__fadeInDown",e.FadeInDownBig="animate__fadeInDownBig",e.FadeInLeft="animate__fadeInLeft",e.FadeInLeftBig="animate__fadeInLeftBig",e.FadeInRight="animate__fadeInRight",e.FadeInRightBig="animate__fadeInRightBig",e.FadeInUp="animate__fadeInUp",e.FadeInUpBig="animate__fadeInUpBig",e.FadeInTopLeft="animate__fadeInTopLeft",e.FadeInTopRight="animate__fadeInTopRight",e.FadeInBottomLeft="animate__fadeInBottomLeft",e.FadeInBottomRight="animate__fadeInBottomRight",e.FadeOut="animate__fadeOut",e.FadeOutDown="animate__fadeOutDown",e.FadeOutDownBig="animate__fadeOutDownBig",e.FadeOutLeft="animate__fadeOutLeft",e.FadeOutLeftBig="animate__fadeOutLeftBig",e.FadeOutRight="animate__fadeOutRight",e.FadeOutRightBig="animate__fadeOutRightBig",e.FadeOutUp="animate__fadeOutUp",e.FadeOutUpBig="animate__fadeOutUpBig",e.FadeOutTopLeft="animate__fadeOutTopLeft",e.FadeOutTopRight="animate__fadeOutTopRight",e.FadeOutBottomLeft="animate__fadeOutBottomLeft",e.FadeOutBottomRight="animate__fadeOutBottomRight",e.Flip="animate__flip",e.FlipInX="animate__flipInX",e.FlipInY="animate__flipInY",e.FlipOutX="animate__flipOutX",e.FlipOutY="animate__flipOutY",e.LightSpeedInRight="animate__lightSpeedInRight",e.LightSpeedInLeft="animate__lightSpeedInLeft",e.LightSpeedOutRight="animate__lightSpeedOutRight",e.LightSpeedOutLeft="animate__lightSpeedOutLeft",e.RotateIn="animate__rotateIn",e.RotateInDownLeft="animate__rotateInDownLeft",e.RotateInDownRight="animate__rotateInDownRight",e.RotateInUpLeft="animate__rotateInUpLeft",e.RotateInUpRight="animate__rotateInUpRight",e.RotateOut="animate__rotateOut",e.RotateOutDownLeft="animate__rotateOutDownLeft",e.RotateOutDownRight="animate__rotateOutDownRight",e.RotateOutUpLeft="animate__rotateOutUpLeft",e.RotateOutUpRight="animate__rotateOutUpRight",e.Hinge="animate__hinge",e.JackInTheBox="animate__jackInTheBox",e.RollIn="animate__zoomIn",e.RollOut="animate__zoomIn",e.ZoomIn="animate__zoomIn",e.ZoomInDown="animate__zoomInDown",e.ZoomInLeft="animate__zoomInLeft",e.ZoomInRight="animate__zoomInRight",e.ZoomInUp="animate__zoomInUp",e.ZoomOut="animate__zoomOut",e.ZoomOutDown="animate__zoomOutDown",e.ZoomOutLeft="animate__zoomOutLeft",e.ZoomOutRight="animate__zoomOutRight",e.ZoomOutUp="animate__zoomOutUp",e.SlideInDown="animate__slideInDown",e.SlideInLeft="animate__slideInLeft",e.SlideInRight="animate__slideInRight",e.SlideInUp="animate__slideInUp",e.SlideOutDown="animate__slideOutDown",e.SlideOutLeft="animate__slideOutLeft",e.SlideOutRight="animate__slideOutRight",e.SlideOutUp="animate__slideOutUp"}(ke||(ke={})),function(e){e.Once="animate__repeat-1",e.Twice="animate__repeat-2",e.Thrice="animate__repeat-3",e.Infinite="animate__infinite"}(we||(we={})),function(e){e.Slow="animate__slow",e.Slower="animate__slower",e.Fast="animate__fast",e.Faster="animate__faster"}(_e||(_e={})),function(e){e.Delay1Second="animate__delay-1s",e.Delay2Second="animate__delay-2s",e.Delay3Second="animate__delay-3s",e.Delay4Second="animate__delay-4s",e.Delay5Second="animate__delay-5s"}(xe||(xe={}));var Ve,Te=function(t){var n;return e.createElement("div",{className:(n=[],n.push(t.category),t.repeat&&n.push(t.repeat),t.speed&&n.push(t.speed),t.delay&&n.push(t.delay),"animate__animated ".concat(n.join(" ")))},t.children)},Re=function(t){var n=T(t);return e.createElement(pe,p({className:n.getClassName("v-loading"),style:n.getStyle()},t),e.createElement(Te,{category:t.animationCategory?t.animationCategory:ke.Flip,speed:t.animationSpeed?t.animationSpeed:_e.Slower,repeat:we.Infinite},t.children))};function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},De.apply(null,arguments)}var Ie,Le=function(t){return e.createElement("svg",De({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},t),Ve||(Ve=e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M142.37 28c14.247 0 25.795 11.548 25.795 25.795s-11.548 25.799-25.795 25.799-25.796-11.551-25.796-25.799S128.122 28 142.37 28m65.108 50.223c7.122 7.125 7.122 18.673 0 25.796-7.122 7.125-18.673 7.125-25.795 0-7.126-7.123-7.126-18.67 0-25.796 7.122-7.122 18.673-7.122 25.795 0m13.977 76.209c0 9.032-7.318 16.35-16.35 16.35-9.03 0-16.348-7.318-16.348-16.35 0-9.03 7.318-16.348 16.348-16.348 9.032 0 16.35 7.318 16.35 16.348m-45.928 59.961c-4.277 4.278-11.215 4.278-15.493 0-4.28-4.28-4.28-11.218 0-15.496 4.278-4.28 11.216-4.28 15.493 0 4.281 4.278 4.281 11.216 0 15.496M104.469 228c-5.98 0-10.83-4.847-10.83-10.83s4.85-10.83 10.83-10.83c5.983 0 10.83 4.847 10.83 10.83S110.452 228 104.469 228m-58.417-41.95c-3.426-3.426-3.426-8.982 0-12.411 3.43-3.426 8.985-3.426 12.412 0a8.77 8.77 0 0 1 0 12.411 8.773 8.773 0 0 1-12.412 0M34 116.534a7.733 7.733 0 1 1 15.466-.002 7.733 7.733 0 0 1-15.466.002m41.858-55.412a4.53 4.53 0 0 1 6.398 0 4.52 4.52 0 0 1 0 6.399 4.52 4.52 0 0 1-6.398 0 4.53 4.53 0 0 1 0-6.399",clipRule:"evenodd"})))};!function(e){e.Vertical="Vertical",e.Horizontal="Horizontal"}(Ie||(Ie={}));var Ne,Oe,Fe=function(t){return e.createElement(ge,p({ref:t.ref,display:"none",type:"hidden",id:t.id?t.id:t.name},t))};function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ae.apply(null,arguments)}var We,ze=function(t){return e.createElement("svg",Ae({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},t),Ne||(Ne=e.createElement("path",{fill:"currentColor",d:"M128 188c33.138 0 60-26.862 60-60s-26.862-60-60-60-60 26.862-60 60 26.862 60 60 60"})),Oe||(Oe=e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M228 128c0 55.229-44.771 100-100 100S28 183.229 28 128 72.771 28 128 28s100 44.771 100 100m-20 0c0 44.183-35.817 80-80 80s-80-35.817-80-80 35.817-80 80-80 80 35.817 80 80",clipRule:"evenodd"})))};function Xe(){return Xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Xe.apply(null,arguments)}var Me,Ue,Pe=function(t){return e.createElement("svg",Xe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},t),We||(We=e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M228 128c0 55.229-44.771 100-100 100S28 183.229 28 128 72.771 28 128 28s100 44.771 100 100m-20 0c0 44.183-35.817 80-80 80s-80-35.817-80-80 35.817-80 80-80 80 35.817 80 80",clipRule:"evenodd"})))};function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},He.apply(null,arguments)}var je,Ye=function(t){return e.createElement("svg",He({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},t),Me||(Me=e.createElement("rect",{width:20,height:200,x:50,y:64,fill:"currentColor",rx:10,transform:"rotate(-45 50 64)"})),Ue||(Ue=e.createElement("rect",{width:20,height:200,fill:"currentColor",rx:10,transform:"scale(-1 1)rotate(-45 -25.527 280.136)"})))},Je=function(t){var n;if(t.enableClear){var a={option:e.createElement(ye,{size:h.ExtraSmall,frontColor:i.Placeholder,onClick:function(){}},e.createElement(Ye,null)),handleOption:function(e){e.value=""}};n=t.extensions?g(g([],t.extensions,!0),[a],!1):[a]}else t.extensions&&(n=t.extensions);return e.createElement(ge,p({ref:t.ref,readonlyRef:t.readonlyRef,isFocus:t.isFocus,inheritClassName:"v-textbox",isDefaultValue:!0,type:"text"},t,{extensions:n}))},qe=function(t){var n=T(t);return e.createElement("div",p({id:t.id,className:"v-root ".concat(n.getClassName(t.vClassName)),style:n.getStyle()},t.customAttibutes),t.children)};!function(e){e.NewWindow="_blank",e.Self="_self",e.Parent="_parent",e.Top="_top"}(je||(je={}));var Ge,Ze=function(t){var n=T(t);return e.createElement(D,p({vClassName:n.getClassName("v-hyperlink"),style:n.getStyle()},t),e.createElement("a",{href:t.to,target:t.category},t.children))};!function(e){e.Uninstalled="uninstalled",e.Outdated="outdated",e.Ready="ready"}(Ge||(Ge={}));var Ke,Qe;!function(e){e.P="p",e.Address="address",e.Article="article",e.Aside="aside",e.Details="details",e.Section="section"}(Ke||(Ke={})),function(e){e[e.Justify=0]="Justify",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Center=3]="Center"}(Qe||(Qe={}));var $e;!function(e){e.Default="default",e.Fixed="fixed"}($e||($e={}));var et;!function(e){e.Vertical="vertical",e.Horizontal="horizontal"}(et||(et={}));var tt;!function(e){e.Default="default",e.Fixed="fixed"}(tt||(tt={}));var nt;!function(e){e.Default="default",e.Max="max"}(nt||(nt={}));var at;!function(e){e.Normal="normal",e.Italic="italic"}(at||(at={}));var rt,ot=function(e,t){e.isInitialized||t()};!function(e){e.Beacon="beacon",e.Xhr="xhr",e.Image="image"}(rt||(rt={}));var it,ct=Object.freeze({__proto__:null,get AnimationCategory(){return ke},get AnimationDelay(){return xe},get AnimationRepeat(){return we},get AnimationSpeed(){return _e},get BackgroundPositionType(){return ae},Base:T,get BorderRadiusType(){return m},get BreakpointType(){return V},get ColorType(){return i},get ComponentType(){return b},Debug:function(t){return t.isDebug?e.createElement("div",{className:"debug"},t.children):e.createElement("div",{className:"no-debug"},t.children)},Display:function(t){return t.children?e.createElement(e.Fragment,null,e.Children.map(t.children,(function(n){return function(n){if(n&&n.props){var a=void 0;t.breakpoint?"string"==typeof t.breakpoint?t.type&&t.type!=L.Only?t.type==L.Up?a="".concat(t.breakpoint,"-up-").concat(t.category):t.type==L.Down&&(a="".concat(t.breakpoint,"-down-").concat(t.category)):a="".concat(t.breakpoint,"-").concat(t.category):a=t.breakpoint.map((function(e,n){return"".concat(e,"-").concat(t.category)})).join(" "):a=t.category;var r={className:a};return e.cloneElement(n,r)}return n}(n)}))):e.createElement(e.Fragment,null)},get DisplayCategory(){return I},get DisplayType(){return L},Dock:A,get DockCategory(){return N},get EllipseCategory(){return $e},get ExtensionStatus(){return Ge},FigmaSignin:function(t){return e.createElement("div",{className:"figma-signin",onClick:function(){window.location.href="https://www.figma.com/oauth?client_id=".concat(t.clientId,"&redirect_uri=").concat(t.redirectUrl,"&scope=").concat(t.scope,"&state=").concat("fewbox","&response_type=").concat(t.responseType)}},t.children)},get FileCategory(){return Ie},Flex:J,get FlexAlignContentType(){return H},get FlexAlignItemsType(){return P},get FlexDirectionType(){return X},FlexItem:G,get FlexItemAlignSelfType(){return Y},get FlexJustifyContentType(){return U},get FlexWrapType(){return M},get FontFamilyType(){return l},get FontWeightType(){return c},GA4NextJS:function(t){return e.createElement(fe,{frontColor:i.Error,size:h.Large,caption:"[USE] https://nextjs.org/docs/app/building-your-application/optimizing/third-party-libraries"})},get GAEventTransportType(){return rt},GAPI:function(t){return e.useEffect((function(){if("undefined"==typeof gapi){var e=t.clientId,n=t.enableGoogle,a=t.disableGoogle,r=document.createElement("script");r.src="https://apis.google.com/js/platform.js",r.onload=function(){gapi.load("auth2",(function(){var t={client_id:e,cookie_policy:"none"};gapi.auth2.init(t).then((function(){n()}))}))},r.onerror=function(){a()},document.body.appendChild(r)}})),e.createElement(e.Fragment,null)},get GoogleFontType(){return at},GoogleSignin:function(t){return e.createElement("div",{className:"google-signin",onClick:function(){void 0===window.gapi?t.showStopWorkingMessage():window.gapi.auth2.getAuthInstance().signIn().then((function(e){var n=e.getBasicProfile(),a=e.getAuthResponse().id_token,r={id:n.getId(),name:n.getName(),avatarUrl:n.getImageUrl(),token:a};t.initGoogleAccount(r)})).catch((function(e){t.showErrorMessage(e)}))}},t.children)},get HandleSubmitCategory(){return ie},get HyperlinkCategory(){return je},get LabelAlignType(){return de},get LabelCategory(){return ue},get LabelType(){return se},get LetterSpacingType(){return d},get LineCategory(){return et},get LineHeightType(){return u},get PaddingType(){return s},Position:z,PositionArea:j,get PositionAreaCategory(){return W},get PositionCategory(){return O},get PositionType(){return F},get RootCategory(){return C},SBaseline:function(t){return e.createElement(e.Fragment,null,t.children)},SBottom:function(t){return e.createElement(e.Fragment,null,t.children)},SCenter:function(t){return e.createElement(e.Fragment,null,t.children)},SLeft:function(t){return e.createElement(e.Fragment,null,t.children)},SMiddle:function(t){return e.createElement(e.Fragment,null,t.children)},SRight:function(t){return e.createElement(e.Fragment,null,t.children)},SStretch:function(t){return e.createElement(e.Fragment,null,t.children)},STop:function(t){return e.createElement(e.Fragment,null,t.children)},get ShadowCategory(){return nt},get SizeType(){return h},get SvgCategory(){return me},get TextAlignType(){return Qe},get TextCategory(){return Ke},VActionForm:function(t){return e.createElement("form",{className:"v-action-form",action:t.action,method:t.method,target:t.target},t.children)},VAnimation:Te,VAudio:function(t){var n=T(t);return e.createElement("audio",{className:n.getClassName("v-audio"),style:n.getStyle(),controls:!0},t.sources.map((function(t,n){return e.createElement("source",{key:"source".concat(n),src:t.src,type:t.type})})))},VBackground:function(t){var n;return n=t.imageWidth&&t.imageHeight?{backgroundImage:'url("'.concat(t.image,'")'),backgroundSize:"".concat(t.imageWidth," ").concat(t.imageHeight)}:{backgroundImage:'url("'.concat(t.image,'")')},e.createElement(D,p({vClassName:t.position?"v-background-".concat(t.position):"v-background",style:n},t.customAttibutes),t.children)},VBase64File:function(t){var n=e.useState({base64Image:t.base64Image}),a=n[0],r=n[1];return e.createElement(pe,{className:"v-base64file"},e.createElement(Fe,{name:t.name,value:a.base64Image}),e.createElement(ge,{type:"file",isDefaultValue:!0,onChange:function(e){var t=e.target.files[0],n=new FileReader;n.onloadend=function(){var e;e=n.result&&"string"==typeof n.result?n.result.replace("data:","").replace(/^.+,/,""):"Todo",r({base64Image:e})},n.readAsDataURL(t)},overWrite:function(n){return e.createElement(oe,{gap:"0.2em",onClick:function(){var e;null===(e=n.current)||void 0===e||e.click()}},t.fileIcon,e.createElement(ce,{src:"data:image/png;base64,".concat(a.base64Image),alt:"file"}))}}))},VBoundary:pe,VCheckBox:function(t){var n=e.useState({isChecked:t.isChecked}),a=n[0],r=n[1];return e.createElement(ge,{isAutoSize:t.isAutoSize,customAttibutes:{defaultChecked:!!a.isChecked},inheritClassName:"v-checkbox",type:"checkbox",isDefaultValue:!0,overWrite:function(n){return e.createElement(ne,{gap:"0.2em",onClick:function(){var e,t;null===(e=n.current)||void 0===e||e.click(),(null===(t=n.current)||void 0===t?void 0:t.hasAttribute("checked"))?r({isChecked:!1}):r({isChecked:!0})}},e.createElement(ye,{frontColor:t.frontColor,size:t.size},a.isChecked?e.createElement(Ce,null):e.createElement(Be,null)),e.createElement(fe,{frontColor:t.frontColor,size:t.size,caption:t.label?t.label:""}))}})},VChromeExtensionValidator:function(t){var n,a=e.useState({}),r=a[0],o=a[1];return e.useEffect((function(){var e;r.status||(e=!1,window.addEventListener("extension-meta-".concat(t.extensionId),(function(n){e=!0,n.detail?n.detail.version?t.version?n.detail.version>=t.version?o(p(p({},r),{status:Ge.Ready})):o(p(p({},r),{status:Ge.Outdated})):o(p(p({},r),{status:Ge.Ready})):o(p(p({},r),{status:Ge.Outdated})):o(p(p({},r),{status:Ge.Uninstalled}))})),window.dispatchEvent(new CustomEvent("validate-extension-".concat(t.extensionId),{detail:{id:t.extensionId}})),setTimeout((function(){e||o(p(p({},r),{status:Ge.Uninstalled}))}),t.waitingTime?t.waitingTime:1e3))})),r.status===Ge.Uninstalled?n=t.uninstalledCaption:r.status===Ge.Outdated&&(n=t.outdatedCaption),e.createElement(pe,null,!(r.status===Ge.Ready)&&(t.overWrite&&r.status?t.overWrite(r.status):e.createElement(Ze,{category:je.NewWindow,to:t.downloadUrl?t.downloadUrl:"mailto:support@fewbox.com"},n)))},VColor:function(t){return e.createElement(ge,p({type:"color",isDefaultValue:!0},t))},VDate:function(t){return e.createElement(ge,p({type:"date",isDefaultValue:!0},t))},VDatetimeLocal:function(t){return e.createElement(ge,p({type:"datetime-local",isDefaultValue:!0},t))},VDropdown:function(t){var n,a,r=e.useState({isSelectionShow:!1,selectValue:t.value?t.value:"",selectCaption:t.value?t.items.filter((function(e){return e.value==t.value}))[0].caption:"",items:t.items}),o=r[0],c=r[1],l=e.useRef(null),u=e.useRef(null),s=e.useRef(null);e.useEffect((function(){var e=window.document.getElementById("".concat(t.name,"-dock"));if(e){var n=0;t.icon&&(n+=2),n+=t.extensions?4*(t.extensions.length+1):4,t.isReadonly?e.style.width=s.current?"calc(".concat(s.current.offsetWidth,"px + ").concat(n,"em)"):"12em":e.style.width=u.current?"calc(".concat(u.current.offsetWidth,"px + ").concat(n,"em)"):"12em"}}));return e.createElement(qe,p({vClassName:"v-dropdown"},t),e.createElement(Fe,{id:t.id?t.id:t.name,name:t.name,valueHook:null===(n=o.selectValue)||void 0===n?void 0:n.toString(),ref:l}),e.createElement(A,{zIndex:o.isSelectionShow?2e9:-2e9,category:N.RightInnerBottom,renderOverlay:function(){return e.createElement(pe,{id:"".concat(t.name,"-dock"),visibility:o.isSelectionShow?"visible":"hidden",borderRadius:t.borderRadius},e.createElement(oe,{backgroundColor:i.White,padding:"1em 0",gap:"0.6em",borderRadius:"0.2em",borderColor:t.borderColor,borderWidth:t.borderWidth,borderStyle:"solid"},o.items.map((function(n,a){return t.overWriteDropdownItem?e.createElement(pe,{key:"item".concat(a)},t.overWriteDropdownItem(n)):e.createElement(ne,{gap:"0.2em",padding:"0.2em 1em",key:"item".concat(a),className:"item",onClick:function(){c(p(p({},o),{isSelectionShow:!1,selectIcon:n.icon,selectCaption:n.caption,selectValue:n.value,items:t.items})),t.onChange&&t.onChange(n.value)}},n.icon?e.createElement(ye,{size:h.ExtraSmall},n.icon):e.createElement(e.Fragment,null),e.createElement(fe,{caption:n.caption}))})),!(0!=o.items.length)&&e.createElement(ye,{size:h.ExtraSmall,onClick:function(){}},t.emptyIcon)))}},e.createElement(Je,{padding:t.padding,isReadonly:t.isReadonly,size:t.size,icon:e.createElement(ye,{size:t.size?t.size:h.Normal},o.selectIcon?o.selectIcon:t.icon),valueHook:null===(a=o.selectCaption)||void 0===a?void 0:a.toString(),enableClear:t.enableClear,extensions:[{option:e.createElement(ye,{size:t.size?t.size:h.Small,onClick:function(){}},o.isSelectionShow?t.upIcon:t.downIcon),handleOption:function(e){c(p(p({},o),{isSelectionShow:!o.isSelectionShow}))}}],onClick:function(){c(p(p({},o),{isSelectionShow:!o.isSelectionShow}))},onChange:function(e){var n;n=e.target.value,c(p(p({},o),{isSelectionShow:!0,selectCaption:n,items:t.items.filter((function(e){return e.caption.toLowerCase().indexOf(n.toLowerCase())>-1}))}))},ref:u,readonlyRef:s,borderRadius:t.borderRadius,frontColor:o.selectValue===o.selectCaption?t.frontColor:i.Error})))},VEllipse:function(t){return e.createElement(D,p({vClassName:"v-ellipse-".concat(t.category?t.category:$e.Default)},t),t.children)},VEmail:function(t){return e.createElement(ge,p({inheritClassName:"v-email",isDefaultValue:!0,type:"email"},t))},VFile:function(t){var n=e.useState({fileName:t.emptyMessage,isLoading:!1}),a=n[0],r=n[1],o=function(){r(p(p({},a),{isLoading:!1}))},i=function(e){e.preventDefault(),t.autoUpload&&(e.currentTarget.className="v-file")};return e.createElement(pe,{className:"v-file",onDrop:function(e){if(e.preventDefault(),t.autoUpload){var n=e.dataTransfer.files;1==n.length&&(r(p(p({},a),{fileName:n[0].name,isLoading:!0})),t.autoUpload(n[0],o),e.currentTarget.className="v-file")}},onDragOver:function(e){e.preventDefault(),t.autoUpload&&(e.currentTarget.className="v-file on-drag")},onDragEnd:i,onDragLeave:i,onDragExit:i},e.createElement(ge,p({type:"file",isDefaultValue:!0},t,{onChange:function(e){r(p(p({},a),{fileName:e.target.files[0].name})),t.autoUpload&&(r(p(p({},a),{fileName:e.target.files[0].name,isLoading:!0})),t.autoUpload(e.target.files[0],o))},overWrite:function(n){return t.category&&t.category==Ie.Vertical?e.createElement(oe,{gap:"1em",onClick:function(){var e;null===(e=n.current)||void 0===e||e.click()},cross:Z.Center},t.fileIcon,e.createElement(pe,null,t.caption),e.createElement(fe,{category:ue.Div,alignType:de.Center,caption:a.fileName}),!!a.isLoading&&(t.renderLoading?t.renderLoading():e.createElement(Re,{animationCategory:ke.Flash},e.createElement(te,null,e.createElement(ye,{size:t.loadingSize,frontColor:t.loadingColor},e.createElement(Le,null)))))):e.createElement(oe,{gap:"1em",cross:Z.Center},e.createElement(Q,{gap:"1em",onClick:function(){var e;null===(e=n.current)||void 0===e||e.click()}},t.fileIcon,e.createElement(fe,{caption:a.fileName})),e.createElement(pe,null,t.caption),!!a.isLoading&&(t.renderLoading?t.renderLoading():e.createElement(Re,{animationCategory:ke.Flash},e.createElement(ye,{size:t.loadingSize,frontColor:t.loadingColor},e.createElement(Le,null)))))}})))},VFooter:function(t){var n=T(t);return e.createElement("footer",{className:n.getClassName("v-footer"),style:n.getStyle()},t.children)},VForm:function(t){return e.createElement("form",{className:"v-form",onSubmit:function(e){if(e.preventDefault(),!t.handleValidateError||e.currentTarget.checkValidity()){for(var n=0;n<e.currentTarget.elements.length;n++){(i=(o=e.currentTarget.elements.item(n)).closest(".v-validity"))&&(i.className=i.className.replace(" invalid",""))}var a=new FormData(e.currentTarget);if(t.handleSubmitCategory==ie.FormData)t.handleSubmit(a);else{var r=le(a);t.handleSubmit(r)}}else for(n=0;n<e.currentTarget.elements.length;n++){var o,i;(i=(o=e.currentTarget.elements.item(n)).closest(".v-validity"))&&(o.checkValidity()?i.className=i.className.replace(" invalid",""):-1==i.className.indexOf("invalid")&&(i.className+=" invalid")),t.handleValidateError(o)}}},t.children)},VFrame:function(t){var n;return t.backingBoard&&(n={background:"linear-gradient(".concat(t.backingBoard.degree,", ").concat(t.backingBoard.startColor,", ").concat(t.backingBoard.endColor,")")}),e.createElement(D,{vClassName:"v-frame",borderRadius:t.borderRadius,style:n},e.createElement("div",p({style:{padding:t.padding,backgroundImage:"url(".concat(t.image,")"),backgroundRepeat:"no-repeat",backgroundSize:"cover"}},t.customAttibutes),t.children))},VGoogleFont:function(t){return e.useEffect((function(){var e=document.createElement("link");e.rel="preconnect",e.href="https://fonts.googleapis.com";var n=document.createElement("link");n.rel="preconnect",n.href="https://fonts.gstatic.com",n.crossOrigin="crossorigin",document.head.appendChild(e),document.head.appendChild(n),t.typefaces.forEach((function(e,t){var n,a,r=e.family,o=null===(n=e.fonts)||void 0===n?void 0:n.filter((function(e){return e.type==at.Italic})),i=o&&o.length>0?"ital,wght":"wght",c=document.createElement("link");c.rel="stylesheet";var l=[];e.fonts&&e.fonts.length>1?(null===(a=e.fonts)||void 0===a||a.forEach((function(e,t){"ital,wght"==i?e.type==at.Normal?l.push("0,".concat(E(e.weight))):e.type==at.Italic&&l.push("1,".concat(E(e.weight))):l.push(E(e.weight).toString())})),c.href="https://fonts.googleapis.com/css2?family=".concat(r,":").concat(i,"@").concat(l.join(";"),"&display=swap")):c.href="https://fonts.googleapis.com/css2?family=".concat(r,"&display=swap"),document.head.appendChild(c)}))})),e.createElement(e.Fragment,null)},VGroup:function(t){var n=e.useState({selectedValue:t.selectedValue}),a=n[0],r=n[1];return e.createElement(e.Fragment,null,t.renderGroup(a.selectedValue,(function(e){r(e.currentTarget.value)})))},VHR:function(t){var n=T(t);return e.createElement("hr",{className:n.getClassName("v-hr"),style:n.getStyle()})},VHeader:function(t){var n=T(t);return e.createElement("header",{className:n.getClassName("v-header"),style:n.getStyle()},t.children)},VHidden:Fe,VHyperlink:Ze,VImage:ce,VLabel:fe,VLine:function(t){return e.createElement(D,p({vClassName:"v-line-".concat(t.category)},t))},VLink:function(t){return e.createElement(n,{href:t.to},t.children)},VMain:function(t){var n=T(t);return e.createElement("main",{className:n.getClassName("v-main"),style:n.getStyle()},t.children)},VMask:function(t){return e.createElement(z,{zIndex:t.zIndex?t.zIndex:1e8,category:O.Window,type:F.Center},e.createElement(j,null,e.createElement(pe,{width:"100vw",height:"100vh",backgroundColor:i.Dark75},e.createElement(z,{category:O.Area,type:F.Center},t.children))))},VMonth:function(t){return e.createElement(ge,p({type:"month",isDefaultValue:!0},t))},VNumber:function(t){return e.createElement(ge,p({type:"number",isDefaultValue:!0},t))},VPassword:function(t){return e.createElement(ge,p({inheritClassName:"v-password",isDefaultValue:!0,type:"password"},t))},VRadio:function(t){return e.createElement(ge,p({type:"radio",customAttibutes:{checked:!!t.isChecked},isDefaultValue:!0},t,{overWrite:function(n){return e.createElement(ne,{onClick:function(){var e;console.log(n.current),null===(e=n.current)||void 0===e||e.click()}},e.createElement(ye,{padding:"0.4em",frontColor:t.frontColor,size:t.size},t.isChecked?e.createElement(ze,null):e.createElement(Pe,null)),e.createElement(fe,{frontColor:t.frontColor,size:t.size,caption:t.label?t.label:""}))}}))},VRange:function(t){var n="".concat(t.controlBackgroundColor,"-background ").concat(t.controlBorderColor,"-border");return e.createElement(ge,p({type:"range",isDefaultValue:!0},t,{inputClassName:n}))},VRectangle:function(t){return e.createElement(D,p({vClassName:"v-rectangle-".concat(t.category?t.category:tt.Default)},t))},VSearch:function(t){return e.createElement(ge,p({type:"search",isDefaultValue:!0,inheritClassName:"v-search"},t))},VSection:function(t){var n=T(t);return e.createElement("section",{className:n.getClassName("v-section"),style:n.getStyle()},t.children)},VSelect:function(t){var n=T(t);return e.createElement(pe,p({className:n.getClassName("v-select"),style:n.getStyle()},t),e.createElement("select",{multiple:t.isMultiple,name:t.name,defaultValue:t.value,onChange:t.onChange},t.items.map((function(t,n){return e.createElement("option",{key:"option".concat(n),value:t.value},t.caption)}))))},VShadow:function(t){var n=T(t);return e.createElement(e.Fragment,null,e.Children.map(t.children,(function(a){return function(a){if(a){var r={};t.x&&t.y&&t.blur&&t.spread&&t.color&&(r.boxShadow="".concat(t.x,"px ").concat(t.y,"px ").concat(t.blur,"px ").concat(t.spread,"px ").concat(t.color));var o={className:n.getClassName("v-shadow-".concat(t.category?t.category:nt.Default)),style:p(p({},r),n.getStyle())};return e.cloneElement(a,o)}return e.createElement(e.Fragment,null)}(a)})))},VSubmit:function(t){var n=T(t),a=e.useRef(null);return e.createElement("div",{className:n.getClassName("v-submit"),style:n.getStyle(),onClick:function(){a.current.click()}},e.createElement(te,{cross:q.Middle},!!t.icon&&e.createElement("span",null,t.icon),!!t.caption&&e.createElement("span",null,t.caption)),e.createElement("input",{formNoValidate:t.isFormNoValidate,ref:a,type:"submit",className:n.getClassName("v-submit"),style:n.getStyle()}))},VSubmitWrapper:function(t){var n=T(t),a=e.useRef(null);return e.createElement("div",{className:n.getClassName("v-submit-wrapper"),style:n.getStyle()},t.content,e.createElement("input",{ref:a,type:"submit"}))},VSvg:ye,VTel:function(t){return e.createElement(ge,p({inheritClassName:"v-tel",isDefaultValue:!0,type:"tel"},t))},VText:function(t){var n,a;switch(t.alignType){case Qe.Center:a="v-text-center";break;case Qe.Justify:a="v-text-justify";break;case Qe.Left:a="v-text";break;case Qe.Right:a="v-text-right";break;default:a="v-text"}switch(t.category){case Ke.P:n=e.createElement("p",null,t.content);break;case Ke.Address:n=e.createElement("address",null,t.content);break;case Ke.Article:n=e.createElement("article",null,t.content);break;case Ke.Aside:n=e.createElement("aside",null,t.content);break;case Ke.Details:n=e.createElement("details",null,t.content);break;case Ke.Section:n=e.createElement("section",null,t.content);break;default:n=e.createElement("div",null,t.content)}return e.createElement(D,p({vClassName:a},t),n)},VTextArea:function(t){var n=e.useState({value:t.value}),a=n[0],r=n[1],o=e.useRef(null);return e.createElement(D,p({vClassName:"v-validity v-textarea"},t),e.createElement(ee,{cross:q.Top,gap:"0.6em"},t.icon,e.createElement(pe,null,e.createElement("textarea",{ref:t.ref?t.ref:o,id:t.id?t.id:t.name,name:t.name,value:t.valueHook?t.valueHook:a.value,required:t.isRequired,placeholder:t.placeholder,rows:t.rows,onChange:function(e){t.onChange&&t.onChange(e),t.setStateHook?t.setStateHook(e.target.value):r({value:e.target.value})}}))))},VTextBox:Je,VTime:function(t){return e.createElement(ge,p({type:"time",isDefaultValue:!0},t))},VUrl:function(t){return e.createElement(ge,p({inheritClassName:"v-url",isDefaultValue:!0,type:"url"},t))},VVideo:function(t){var n=T(t);return e.createElement("video",{className:n.getClassName("v-label"),style:n.getStyle(),controls:!0},t.sources.map((function(t,n){return e.createElement("source",{key:"source".concat(n),src:t.src,type:t.type})})))},VWeek:function(t){return e.createElement(ge,p({type:"week",isDefaultValue:!0},t))},VZone:function(t){return e.createElement(D,{vClassName:"v-zone-".concat(t.category)},t.children)},get ViewSizeType(){return f},WeComSignin:function(t){return e.createElement("div",{className:"wecom-signin",onClick:function(){window.location.href="https://open.work.weixin.qq.com/wwopen/sso/qrConnect?appid=".concat(t.appId,"&agentid=").concat(t.agentId,"&redirect_uri=").concat(t.redirectUrl,"&state=").concat("fewbox")}},t.children)},X:Q,XAround:function(e){return K(e,void 0,void 0,(function(){return U.SpaceAround}))},XAutoBoth:function(t){var n=T(t);return K(t,(function(a,r,o){return 0!=r&&r!=e.Children.count(n.getChildren(t))-1?e.createElement(G,{grow:0,alignSelf:o},a):e.createElement(G,{grow:1,alignSelf:o},a)}))},XAutoCenter:$,XAutoLeft:function(t){return K(t,(function(t,n,a){return 0==n?e.createElement(G,{grow:1,alignSelf:a},t):e.createElement(G,{grow:0,alignSelf:a},t)}))},XAutoLefts:function(t){var n=T(t);return K(t,(function(a,r,o){return r==e.Children.count(n.getChildren(t))-1?e.createElement(G,{grow:0,alignSelf:o},a):e.createElement(G,{grow:1,alignSelf:o},a)}))},XAutoRight:ee,XAutoRights:function(t){return K(t,(function(t,n,a){return 0==n?e.createElement(G,{grow:0,alignSelf:a},t):e.createElement(G,{grow:1,alignSelf:a},t)}))},XBetween:function(e){return K(e,void 0,void 0,(function(){return U.SpaceBetween}))},XCenter:te,get XCrossType(){return q},XCustom:function(t){return K(t,(function(n,a){var r=e.createElement(G,null,n);return t.basises&&a<t.basises.length&&(r=e.createElement(G,{basis:t.basises[a]},n)),r}))},XCustomBoth:function(t){var n=T(t);return K(t,(function(a,r){return 0==r||r==e.Children.count(n.getChildren(t))-1?e.createElement(G,{basis:t.basis},a):e.createElement(G,{grow:1},a)}))},XEvenly:function(e){return K(e,void 0,void 0,(function(){return U.SpaceEvenly}))},XLeft:ne,XRight:function(e){return K(e,void 0,void 0,(function(){return U.End}))},XWrapAround:function(e){return K(e,void 0,(function(){return M.Wrap}),void 0,(function(){return H.SpaceAround}))},XWrapBetween:function(e){return K(e,void 0,(function(){return M.Wrap}),void 0,(function(){return H.SpaceBetween}))},XWrapBottom:function(e){return K(e,void 0,(function(){return M.Wrap}),void 0,(function(){return H.End}))},XWrapEvenly:function(e){return K(e,void 0,(function(){return M.Wrap}),void 0,(function(){return H.SpaceEvenly}))},XWrapMiddle:function(e){return K(e,void 0,(function(){return M.Wrap}),void 0,(function(){return H.Center}))},XWrapTop:function(e){return K(e,void 0,(function(){return M.Wrap}),void 0,(function(){return H.Start}))},Y:oe,YAround:function(e){return re(e,void 0,void 0,void 0,(function(){return U.SpaceAround}))},YAutoBoth:function(t){var n=T(t);return re(t,(function(a,r,o){return 0!=r&&r!=e.Children.count(n.getChildren(t))-1?e.createElement(G,{grow:0,alignSelf:o},a):e.createElement(G,{grow:1,alignSelf:o},a)}))},YAutoBottom:function(t){var n=T(t);return re(t,(function(a,r){return r==e.Children.count(n.getChildren(t))-1?e.createElement(G,{grow:1},a):e.createElement(G,{grow:0},a)}))},YAutoBottoms:function(t){return re(t,(function(t,n,a){return 0==n?e.createElement(G,{grow:0,alignSelf:a},t):e.createElement(G,{grow:1,alignSelf:a},t)}))},YAutoCenter:function(t){var n=T(t);return re(t,(function(a,r,o){return 0!=r&&r!=e.Children.count(n.getChildren(t))-1?e.createElement(G,{grow:1,alignSelf:o},a):e.createElement(G,{grow:0,alignSelf:o},a)}))},YAutoTop:function(t){return re(t,(function(t,n,a){return 0==n?e.createElement(G,{grow:1,alignSelf:a},t):e.createElement(G,{grow:0,alignSelf:a},t)}))},YAutoTops:function(t){var n=T(t);return re(t,(function(a,r,o){return r==e.Children.count(n.getChildren(t))-1?e.createElement(G,{grow:0,alignSelf:o},a):e.createElement(G,{grow:1,alignSelf:o},a)}))},YBetween:function(e){return re(e,void 0,void 0,void 0,(function(){return U.SpaceBetween}))},YBottom:function(e){return re(e,void 0,void 0,void 0,(function(){return U.End}))},get YCrossType(){return Z},YCustom:function(t){return re(t,(function(n,a){var r=e.createElement(G,null,n);return t.basises&&a<t.basises.length&&(r=e.createElement(G,{basis:t.basises[a]},n)),r}))},YCustomBoth:function(t){var n=T(t);return re(t,(function(a,r){return 0==r||r==e.Children.count(n.getChildren(t))-1?e.createElement(G,{basis:t.basis},a):e.createElement(G,{grow:1},a)}))},YEvenly:function(e){return re(e,void 0,void 0,void 0,(function(){return U.SpaceEvenly}))},YMiddle:function(e){return re(e,void 0,void 0,void 0,(function(){return U.Center}))},YTop:function(e){return re(e,void 0,void 0,void 0,(function(){return U.Start}))},YWrapAround:function(e){return re(e,void 0,(function(){return M.Wrap}),(function(){return H.SpaceAround}),void 0)},YWrapBetween:function(e){return re(e,void 0,(function(){return M.Wrap}),(function(){return H.SpaceBetween}))},YWrapCenter:function(e){return re(e,void 0,(function(){return M.Wrap}),(function(){return H.Center}))},YWrapEvenly:function(e){return re(e,void 0,(function(){return M.Wrap}),(function(){return H.SpaceEvenly}))},YWrapLeft:function(e){return re(e,void 0,(function(){return M.Wrap}),(function(){return H.Start}))},YWrapRight:function(e){return re(e,void 0,(function(){return M.Wrap}),(function(){return H.End}))},get ZoneCategory(){return R},convertFormDataToJson:le,ga4NextJSEvent:function(e,t,n){e.event(t)},ga4NextJSInit:function(e,t,n,a,r){ot(e,(function(){n?e.initialize(t,{testMode:!0,gaOptions:a,gtagOptions:r}):e.initialize(t,{gaOptions:a,gtagOptions:r})}))},ga4NextJSPageview:function(e,t,n){e.send({hitType:"pageview",page:t})},ga4NextJSScope:ot,ga4NextJSSetFieldsObject:function(e,t,n){e.set(t)},getGeneratedClassName:B,parseJWT:function(e){var t={},n=a(e,{header:!0});return t.role=n["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"],t.mobile=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mobilephone"],t.name=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"],t.email=n["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],t.exp=n.exp,t.iss=n.iss,t.aud=n.aud,t.expire=t.exp?new Date(1e3*t.exp):new Date(-864e13),t.tenant=n["http://schemas.fewbox.com/jwt/identity/claims/tenant"],t.id=n["http://schemas.fewbox.com/jwt/identity/claims/id"],t.api=n["http://schemas.fewbox.com/jwt/identity/claims/api"],t.issuer=n["http://schemas.fewbox.com/jwt/identity/claims/issuer"],t.audience=n["http://schemas.fewbox.com/jwt/identity/claims/audience"],t.avatar=n["http://schemas.fewbox.com/jwt/identity/claims/avatar"],t}});!function(e){e.Components=ct}(it||(it={}));export{it as Den};
1
+ import*as e from"react";import{jwtDecode as t}from"jwt-decode";import"react-ga4";var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}var r,o,i,c,l,u,s,d,m=function(){return m=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},m.apply(this,arguments)};function f(e,t,n){if(n||2===arguments.length)for(var a,r=0,o=t.length;r<o;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError,function(e){e.Font="font",e.Body="body",e.White="white",e.Black="black",e.Light="light",e.Light75="light75",e.Light50="light50",e.Light25="light25",e.Dark="dark",e.Dark75="dark75",e.Dark50="dark50",e.Dark25="dark25",e.Primary="primary",e.Primary75="primary75",e.Primary50="primary50",e.Primary25="primary25",e.Secondary="secondary",e.Secondary75="secondary75",e.Secondary50="secondary50",e.Secondary25="secondary25",e.Tertiary="tertiary",e.Tertiary75="tertiary75",e.Tertiary50="tertiary50",e.Tertiary25="tertiary25",e.Info="info",e.Info75="info75",e.Info50="info50",e.Info25="info25",e.Success="success",e.Success75="success75",e.Success50="success50",e.Success25="success25",e.Warning="warning",e.Warning75="warning75",e.Warning50="warning50",e.Warning25="warning25",e.Error="error",e.Error75="error75",e.Error50="error50",e.Error25="error25",e.Border="border",e.Border75="border75",e.Border50="border50",e.Border25="border25",e.Placeholder="placeholder",e.Placeholder75="placeholder75",e.Placeholder50="placeholder50",e.Placeholder25="placeholder25",e.Transparent="transparent"}(r||(r={})),function(e){e.Thin="font-weight-thin",e.ExtraLight="font-weight-extra-light",e.Light="font-weight-light",e.Regular="font-weight-regular",e.Medium="font-weight-medium",e.SemiBold="font-weight-semi-bold",e.Bold="font-weight-bold",e.ExtraBold="font-weight-extra-bold",e.Black="font-weight-black"}(o||(o={})),function(e){e.Default="font-family"}(i||(i={})),function(e){e.Default="line-height"}(c||(c={})),function(e){e.Default="padding"}(l||(l={})),function(e){e.Default="letter-spacing"}(u||(u={})),function(e){e.Default="border-radius",e.Fixed="border-radius-fixed",e.Max="border-radius-max"}(s||(s={})),function(e){e.Ellipse="v-ellipse-size",e.Rectangle="v-rectangle-size",e.Image="v-image-size",e.Svg="v-svg-size",e.Window="v-window-size"}(d||(d={}));var p,g,h,v,y=function(e){var t;switch(e){case o.Thin:t=100;break;case o.ExtraLight:t=200;break;case o.Light:t=300;break;case o.Regular:t=400;break;case o.Medium:t=500;break;case o.SemiBold:t=600;break;case o.Bold:t=700;break;case o.ExtraBold:t=800;break;case o.Black:t=900;break;default:t=400}return t};!function(e){e.Default="font-size",e.Normal="font-size-normal",e.Small="font-size-small",e.ExtraSmall="font-size-extra-small",e.Large="font-size-large",e.ExtraLarge="font-size-extra-large",e.AutoNormal="auto-font-size-normal",e.AutoSmall="auto-font-size-small",e.AutoExtraSmall="auto-font-size-extra-small",e.AutoLarge="auto-font-size-large",e.AutoExtraLarge="auto-font-size-extra-large"}(p||(p={})),function(e){e.All="all",e.Before="before",e.After="after"}(g||(g={})),function(e){e.All="all",e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.ExceptTop="except-top",e.ExceptRight="except-right",e.ExceptBottom="except-bottom",e.ExceptLeft="except-left",e.RightTop="right-top",e.RightBottom="right-bottom",e.LeftTop="left-top",e.LeftBottom="left-bottom",e.TopBottom="top-bottom",e.LeftRight="left-right"}(h||(h={})),function(e){e.Flex="Flex",e.FlexItem="FlexItem",e.Position="Position",e.PositionArea="PositionArea",e.SBaseline="SBaseline",e.SBottom="SBottom",e.SLeft="SLeft",e.SMiddle="SMiddle",e.SCenter="SCenter",e.SRight="SRight",e.SStretch="SStretch",e.STop="STop",e.X="X",e.XAround="XAround",e.XAutoBoth="XAutoBoth",e.XAutoCenter="XAutoCenter",e.XAutoLeft="XAutoLeft",e.XAutoLefts="XAutoLefts",e.XAutoRight="XAutoRight",e.XAutoRights="XAutoRights",e.XBetween="XBetween",e.XCenter="XCenter",e.XCustom="XCustom",e.XCustomBoth="XCustomBoth",e.XEvenly="XEvenly",e.XLeft="XLeft",e.XRight="XRight",e.XWrap="XWrap",e.XWrapAround="XWrapAround",e.XWrapBetween="XWrapBetween",e.XWrapBottom="XWrapBottom",e.XWrapEvenly="XWrapEvenly",e.XWrapMiddle="XWrapMiddle",e.XWrapTop="XWrapTop",e.Y="Y",e.YAround="YAround",e.YBetween="YBetween",e.YBottom="YBottom",e.YEvenly="YEvenly",e.YMiddle="YMiddle",e.YTop="YTop",e.VEllipse="VEllipse",e.VLine="VLine",e.VRectangle="VRectangle",e.VAvatar="VAvatar",e.VBlock="VBlock",e.VBoundary="VBoundary",e.VButton="VButton",e.VCard="VCard",e.VCardMedia="VCardMedia",e.VCardSocial="VCardSocial",e.VCardWindow="VCardWindow",e.VChromeExtensionValidator="VChromeExtensionValidator",e.VCodePreview="VCodePreview",e.VDesigner="VDesigner",e.VDynamic="VDynamic",e.VBackground="VBackground",e.VForm="VForm",e.VImage="VImage",e.VCheckBox="VCheckBox",e.VColor="VColor",e.VDate="VDate",e.VDatetimeLocal="VDatetimeLocal",e.VEmail="VEmail",e.VFile="VFile",e.VMonth="VMonth",e.VNumber="VNumber",e.VPassword="VPassword",e.VRadio="VRadio",e.VRange="VRange",e.VSearch="VSearch",e.VSubmit="VSubmit",e.VTel="VTel",e.VTextBox="VTextBox",e.VTime="VTime",e.VUrl="VUrl",e.VWeek="VWeek",e.VLabel="VLabel",e.VLink="VLink",e.VPhoto="VPhoto",e.VShadow="VShadow",e.VStack="VStack",e.VSvg="VSvg",e.VText="VText",e.VTooltip="VTooltip"}(v||(v={}));var b,E=function(){function e(e){this.className=e}return e.prototype.getClassName=function(){return"".concat(this.className)},e}(),C=function(e){this.component=e},S=function(e){function t(t,n,a){var r=e.call(this,t)||this;return r.sizeType=n,r.isAuto=a,r}return a(t,e),t.prototype.getClassName=function(){if(this.sizeType){var e=void 0;return e=Object.values(p).includes(this.sizeType)?this.sizeType:"font-size-".concat(this.sizeType),"".concat(this.component.getClassName()," ").concat(this.isAuto?"auto-".concat(e):e)}return this.component.getClassName()},t}(C),k=function(e){function t(t,n){var a=e.call(this,t)||this;return a.weightType=n,a}return a(t,e),t.prototype.getClassName=function(){return this.weightType?"".concat(this.component.getClassName()," ").concat(this.weightType):this.component.getClassName()},t}(C),w=function(e){function t(t,n,a,r,o,i,c,l,u,s,d){var m=e.call(this,t)||this;return m.isDefaultValue=n,m.frontColorType=a,m.backgroundColorType=r,m.borderColorType=o,m.borderDirectionType=i,m.pseudoType=c,m.pseudoFrontColorType=l,m.pseudoBackgroundColorType=u,m.pseudoBorderColorType=s,m.pseudoBorderDirectionType=d,m}return a(t,e),t.prototype.getBorderPrefix=function(e){return e?"-".concat(e):""},t.prototype.getBorderColorClassName=function(e,t,n){var a,r=this.getBorderPrefix(n);switch(t){case h.Bottom:a=" ".concat(e).concat(r,"-border-bottom");break;case h.ExceptBottom:a=" ".concat(e).concat(r,"-border-except-bottom");break;case h.ExceptLeft:a=" ".concat(e).concat(r,"-border-except-left");break;case h.ExceptRight:a=" ".concat(e).concat(r,"-border-except-right");break;case h.ExceptTop:a=" ".concat(e).concat(r,"-border-except-top");break;case h.Left:a=" ".concat(e).concat(r,"-border-left");break;case h.LeftBottom:a=" ".concat(e).concat(r,"-border-left-bottom");break;case h.LeftRight:a=" ".concat(e).concat(r,"-border-left-right");break;case h.LeftTop:a=" ".concat(e).concat(r,"-border-left-top");break;case h.Right:a=" ".concat(e).concat(r,"-border-right");break;case h.RightBottom:a=" ".concat(e).concat(r,"-border-right-bottom");break;case h.RightTop:a=" ".concat(e).concat(r,"-border-right-top");break;case h.Top:a=" ".concat(e).concat(r,"-border-top");break;case h.TopBottom:a=" ".concat(e).concat(r,"-border-bottom");break;default:a=" ".concat(e).concat(r,"-border")}return a},t.prototype.getClassName=function(){var e,t,n=this.backgroundColorType?" ".concat(this.backgroundColorType,"-background"):this.isDefaultValue?" ".concat(r.White,"-background"):"",a=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-before-background"):this.isDefaultValue?" ".concat(r.White,"-before-background"):"",o=this.pseudoBackgroundColorType?" ".concat(this.pseudoBackgroundColorType,"-after-background"):this.isDefaultValue?" ".concat(r.White,"-after-background"):"",i="".concat(a).concat(o),c=this.frontColorType?" ".concat(this.frontColorType,"-front"):this.isDefaultValue?" ".concat(r.Black,"-front"):"",l=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-before-front"):this.isDefaultValue?" ".concat(r.Black,"-before-front"):"",u=this.pseudoFrontColorType?" ".concat(this.pseudoFrontColorType,"-after-front"):this.isDefaultValue?" ".concat(r.Black,"-after-front"):"",s="".concat(l).concat(u);return e=this.borderColorType?this.borderDirectionType?this.getBorderColorClassName(this.borderColorType,this.borderDirectionType):" ".concat(this.borderColorType).concat(this.getBorderPrefix(this.pseudoType),"-border"):this.isDefaultValue?" ".concat(r.Transparent).concat(this.getBorderPrefix(this.pseudoType),"-border"):"",t=this.pseudoType?this.pseudoBorderColorType?this.pseudoBorderDirectionType?this.getBorderColorClassName(this.pseudoBorderColorType,this.pseudoBorderDirectionType,this.pseudoType):" ".concat(this.pseudoBorderColorType).concat(this.getBorderPrefix(this.pseudoType),"-border"):this.isDefaultValue?" ".concat(r.Transparent).concat(this.getBorderPrefix(this.pseudoType),"-border"):"":"","".concat(this.component.getClassName()).concat(n).concat(i).concat(c).concat(s).concat(e).concat(t)},t}(C),_=function(e,t,n,a,r,o,i,c,l,u,s,d,m,f){return new w(new S(new k(new E(e),r),n,a),t,o,i,c,l,u,s,d,m,f).getClassName()};!function(e){e.Div="div",e.Span="span"}(b||(b={}));var x,B=function(e){return{getClassName:function(t){var n=_(t,e.isDefaultValue,e.size,e.isAutoSize,e.weight,e.frontColor,e.backgroundColor,e.borderColor,e.borderDirection,e.pseudoType,e.pseudoFrontColor,e.pseudoBackgroundColor,e.pseudoBorderColor,e.pseudoBorderDirection);return e.className?"".concat(e.className," ").concat(n):n},getStyle:function(){var t;e.fontFamily&&(t=e.fontFamily);var n={borderRadius:e.borderRadius,borderWidth:e.borderWidth,borderStyle:e.borderStyle,borderColor:e.borderColor,padding:e.padding,margin:e.margin,height:e.height,width:e.width,minHeight:e.minHeight,minWidth:e.minWidth,maxHeight:e.maxHeight,maxWidth:e.maxWidth,opacity:e.opacity,display:e.display,zIndex:e.zIndex,visibility:e.visibility,fontFamily:t,letterSpacing:e.letterSpacing,lineHeight:e.lineHeight,cursor:e.cursor,overflow:e.overflow,overflowX:e.overflowX,overflowY:e.overflowY};return m(m({},e.style),n)},getChildren:function(e){return e.children&&Object.keys(e.children).indexOf("type")>-1&&null==e.children.type.name?e.children.props.children:e.children}}};!function(e){e.ExtraSmall="extra-small",e.Small="small",e.Medium="medium",e.Large="large",e.ExtraLarge="extra-large",e.ExtraExtraLarge="extra-extra-large"}(x||(x={}));var V,T=function(t){var n=B(t);return t.rootCategory==b.Span?e.createElement("span",m({id:t.id,className:"v-root ".concat(n.getClassName(t.vClassName)),style:n.getStyle()},t.customAttibutes,{onClick:t.onClick,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onDrag:t.onDrag,onDrop:t.onDrop,onDragOver:t.onDragOver,onDragEnd:t.onDragEnd,onDragLeave:t.onDragLeave,onDragExit:t.onDragExit}),t.children):e.createElement("div",m({id:t.id,className:"v-root ".concat(n.getClassName(t.vClassName)),style:n.getStyle()},t.customAttibutes,{onClick:t.onClick,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onDrag:t.onDrag,onDrop:t.onDrop,onDragOver:t.onDragOver,onDragEnd:t.onDragEnd,onDragLeave:t.onDragLeave,onDragExit:t.onDragExit}),t.children)};!function(e){e.Fluid="fluid",e.Small="small",e.Medium="medium",e.Large="large",e.ExtraLarge="extra-large",e.ExtraExtraLarge="extra-extra-large"}(V||(V={}));var R,D;!function(e){e.Visiable="visiable",e.Hidden="hidden"}(R||(R={})),function(e){e.Only="only",e.Up="up",e.Down="down"}(D||(D={}));var L;!function(e){e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.LeftTop="left-top",e.RightTop="right-top",e.LeftBottom="left-bottom",e.RightBottom="right-bottom",e.LeftInnerTop="left-inner-top",e.RightInnerTop="right-inner-top",e.LeftInnerBottom="left-inner-bottom",e.RightInnerBottom="right-inner-bottom"}(L||(L={}));var N,I,O=function(t){var n,a=e.useRef(null),r=e.useRef(null),o=e.useRef(null),i=function(){if(r.current&&o.current&&a.current)if(t.category==L.Bottom||t.category==L.Top){var e="-".concat(Math.abs(o.current.offsetWidth-r.current.offsetWidth)/2,"px");r.current.style.marginLeft=e}else if(t.category==L.Left||t.category==L.Right){var n="".concat(Math.abs(o.current.offsetHeight-a.current.offsetHeight)/2,"px");a.current.style.top=n}else if(t.category==L.LeftTop){e="-".concat(r.current.offsetWidth,"px");r.current.style.marginLeft=e}else if(t.category==L.LeftBottom){e="-".concat(r.current.offsetWidth,"px");r.current.style.marginLeft=e}else if(t.category==L.RightTop){e="".concat(o.current.offsetWidth,"px");r.current.style.marginLeft=e}else if(t.category==L.RightBottom){e="".concat(o.current.offsetWidth,"px");r.current.style.marginLeft=e}else if(t.category==L.LeftInnerTop);else if(t.category==L.LeftInnerBottom);else if(t.category==L.RightInnerTop){e="".concat(o.current.offsetWidth-r.current.offsetWidth,"px");r.current.style.marginLeft=e}else if(t.category==L.RightInnerBottom){e="".concat(o.current.offsetWidth-r.current.offsetWidth,"px");r.current.style.marginLeft=e}};if(e.useEffect((function(){r.current&&new ResizeObserver((function(e){i()})).observe(r.current);i()}),[]),t.category)switch(t.category){case L.Bottom:n="dock-overlay-bottom";break;case L.Left:n="dock-overlay-left";break;case L.LeftBottom:n="dock-overlay-leftbottom";break;case L.LeftTop:n="dock-overlay-lefttop";break;case L.Right:n="dock-overlay-right";break;case L.RightBottom:n="dock-overlay-rightbottom";break;case L.RightTop:n="dock-overlay-righttop";break;case L.Top:n="dock-overlay-top";break;case L.LeftInnerBottom:n="dock-overlay-leftinnerbottom";break;case L.LeftInnerTop:n="dock-overlay-leftinnertop";break;case L.RightInnerBottom:n="dock-overlay-rightinnerbottom";break;case L.RightInnerTop:n="dock-overlay-rightinnertop";break;default:n="dock-overlay"}return e.createElement("div",{className:"dock"},e.createElement("div",{id:"dockOverlay",style:{zIndex:t.zIndex},className:n,ref:a},e.createElement("div",{ref:r},t.renderOverlay())),e.createElement("div",{id:"dockContent",className:"dock-content",ref:o,onClick:function(e){t.onClick&&t.onClick(e)}},t.children))};!function(e){e.Edge="edge",e.Window="window",e.Area="area",e.Self="self"}(N||(N={})),function(e){e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.LeftTop="left-top",e.RightTop="right-top",e.LeftBottom="left-bottom",e.RightBottom="right-bottom",e.Center="center"}(I||(I={}));var F,A=function(t){var n;if(t.category&&(n=t.type?"position-".concat(t.category,"-").concat(t.type):"position-".concat(t.category,"-custom")),t.isFullWidth&&(n="".concat(n," position-full-width")),t.type){var a=void 0;return a=m(m({},t.style),{zIndex:t.zIndex}),e.createElement("div",{className:n,style:a},t.children)}a=void 0;return a=t.category!=N.Self?m(m({},t.style),{top:t.top,right:t.right,bottom:t.bottom,left:t.left,zIndex:t.zIndex}):m(m({},t.style),{top:"-".concat(t.top),right:"-".concat(t.right),bottom:"-".concat(t.bottom),left:"-".concat(t.left),zIndex:t.zIndex}),e.createElement("div",{className:n,style:a},t.children)};!function(e){e.Default="default",e.FullSize="full-size"}(F||(F={}));var W,z,X,M,P,U=function(t){return e.createElement(e.Fragment,null,e.Children.map(t.children,(function(n){return function(n){var a={className:"position-area-".concat(t.category?t.category:F.Default," ").concat(n.props.className)};return e.cloneElement(n,a)}(n)})))};!function(e){e.Row="row",e.RowReverse="row-reverse",e.Column="column",e.ColumnReverse="column-reverse"}(W||(W={})),function(e){e.NoWrap="nowrap",e.Wrap="wrap"}(z||(z={})),function(e){e.Start="flex-start",e.Center="center",e.End="flex-end",e.SpaceBetween="space-between",e.SpaceAround="space-around",e.SpaceEvenly="space-evenly"}(X||(X={})),function(e){e.Start="flex-start",e.Center="center",e.End="flex-end",e.Stretch="stretch",e.Baseline="baseline"}(M||(M={})),function(e){e.Start="flex-start",e.Center="center",e.End="flex-end",e.SpaceBetween="space-between",e.SpaceAround="space-around",e.SpaceEvenly="space-evenly"}(P||(P={}));var H,Y=function(t){var n=m(m({},t.style),{gap:t.gap,cursor:t.cursor?t.cursor:t.onClick?"pointer":"inherit"}),a=t.overflow?"flex-".concat(t.overflow):"flex-hidden",r=t.direction?" flex-direction-".concat(t.direction):"",o=t.wrap?" flex-wrap-".concat(t.wrap):"",i=t.justifyContent?" flex-justify-content-".concat(t.justifyContent):"",c=t.alignItems?" flex-align-items-".concat(t.alignItems):"",l=t.alignContent?" flex-align-content-".concat(t.alignContent):"",u="".concat(a).concat(r).concat(o).concat(i).concat(c).concat(l);return t.rootCategory==b.Span?e.createElement("span",{className:t.className?"".concat(t.className," ").concat(u):u,style:n,onClick:t.onClick},t.children):e.createElement("div",{className:t.className?"".concat(t.className," ").concat(u):u,style:n,onClick:t.onClick},t.children)};!function(e){e.Start="start",e.Center="center",e.End="end",e.Stretch="stretch",e.Baseline="baseline"}(H||(H={}));var j,J=function(t){return t.children&&Object.keys(t.children).indexOf("type")>-1?e.createElement(e.Fragment,null,e.Children.map(t.children,(function(n){return function(n){var a={};if(t.order&&(a.order=t.order),t.basis&&(a.flexBasis=t.basis),t.grow&&(a.flexGrow=t.grow),t.shrink&&(a.flexShrink=t.shrink),n.props){var r=m(m({},a),n.props?n.props.style:null),o=t.alignSelf?" flex-align-self-".concat(t.alignSelf):"",i=n.props.className?" ".concat(n.props.className):"",c={className:"flex-item".concat(o).concat(i),style:r};return e.cloneElement(n,c)}return console.debug(n),e.createElement(e.Fragment,null,"Please check child.")}(n)}))):e.createElement(e.Fragment,null)};!function(e){e.Top="top",e.Middle="middle",e.Bottom="bottom",e.Stretch="stretch",e.Baseline="baseline"}(j||(j={}));var q,G=function(t,n,a,r,o){var i=B(t),c=function(t,a,r){return n?n(t,a,r):e.createElement(J,{key:"child".concat(a),alignSelf:r},t)};return e.createElement(Y,{rootCategory:t.rootCategory,className:i.getClassName("v-xbase"),style:i.getStyle(),gap:t.gap,overflow:t.overflow,alignItems:function(){var e;if(t.cross)switch(t.cross){case j.Stretch:e=M.Stretch;break;case j.Baseline:e=M.Baseline;break;case j.Bottom:e=M.End;break;case j.Middle:e=M.Center;break;case j.Top:e=M.Start;break;default:e=M.Center}else e=M.Center;return e}(),wrap:a?a():z.NoWrap,justifyContent:r?r():X.Start,alignContent:o?o():P.Start,onClick:t.onClick},e.Children.map(i.getChildren(t),(function(t,n){var a=t;return a?a.type?"STop"===a.props.typeName?c(a.props.children,n,H.Start):"SMiddle"===a.props.typeName?c(a.props.children,n,H.Center):"SBottom"===a.props.typeName?c(a.props.children,n,H.End):"SStretch"===a.props.typeName?c(a.props.children,n,H.Stretch):"SBaseline"===a.props.typeName?c(a.props.children,n,H.Baseline):c(a,n):(console.debug(a),e.createElement(e.Fragment,null,"Please check X layout children.")):void 0})))},Z=function(t){return G(t,(function(t,n,a){return e.createElement(J,{grow:1,alignSelf:a},t)}))},K=function(t){var n=B(t);return G(t,(function(a,r,o){return 0!=r&&r!=e.Children.count(n.getChildren(t))-1?e.createElement(J,{grow:1,alignSelf:o},a):e.createElement(J,{grow:0,alignSelf:o},a)}))},Q=function(t){var n=B(t);return G(t,(function(a,r){return r==e.Children.count(n.getChildren(t))-1?e.createElement(J,{grow:1},a):e.createElement(J,{grow:0},a)}))},$=function(e){return G(e,void 0,void 0,(function(){return X.Center}))},ee=function(e){return G(e)};!function(e){e.Left="left",e.Center="center",e.Right="right",e.Baseline="baseline",e.Stretch="stretch"}(q||(q={}));var te,ne=function(t,n,a,r,o){var i=B(t),c=function(t,a,r){return n?n(t,a,r):e.createElement(J,{key:"child".concat(a),alignSelf:r},t)};return e.createElement(Y,{className:i.getClassName("v-ybase"),style:i.getStyle(),overflow:t.overflow,gap:t.gap,wrap:a?a():z.NoWrap,alignContent:r?r():P.Start,alignItems:function(){var e;if(t.cross)switch(t.cross){case q.Left:e=M.Start;break;case q.Center:e=M.Center;break;case q.Right:e=M.End;break;case q.Baseline:e=M.Baseline;break;default:e=M.Stretch}else e=M.Stretch;return e}(),direction:W.Column,justifyContent:o?o():X.Start,onClick:t.onClick},e.Children.map(i.getChildren(t),(function(t,n){var a=t;return a?a.type?a&&"SLeft"===a.props.typeName?c(a.props.children,n,H.Start):a&&"SMiddle"===a.props.typeName||a&&"SCenter"===a.props.typeName?c(a.props.children,n,H.Center):a&&"SRight"===a.props.typeName?c(a.props.children,n,H.End):a&&"SStretch"===a.props.typeName?c(a.props.children,n,H.Stretch):a&&"SBaseline"===a.props.typeName?c(a.props.children,n,H.Baseline):c(t,n):(console.debug(a),e.createElement(e.Fragment,null,"Please check Y layout children.")):void 0})))},ae=function(t){return ne(t,(function(t,n,a){return e.createElement(J,{grow:1,alignSelf:a},t)}))};!function(e){e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.Center="center"}(te||(te={}));var re,oe=function(e){var t={};return e.forEach((function(e,n){var a,r=!1;n.startsWith("#")?(r=!0,a=n.substring(1).split(".")):a=n.split(".");var o=t;a.forEach((function(t,n){if(n==a.length-1)if(t.endsWith("[]")){var i=t.replace("[]","");Object.keys(o).filter((function(e){return e==i})).length>0?o[i]=f(f([],o[i],!0),[r?JSON.parse(e.toString()):e],!1):o[i]=[r?JSON.parse(e.toString()):e]}else o[t]=r?JSON.parse(e.toString()):e;else t in o||(o[t]={}),o=o[t]}))})),t};!function(e){e.Json="json",e.FormData="formdata"}(re||(re={}));var ie,ce,le;!function(e){e.Div="div",e.Abbr="abbr",e.Span="span",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.I="i",e.B="b",e.U="u",e.Em="em",e.Strong="strong",e.Blockquote="blockquote",e.Cite="cite",e.Code="code",e.Del="del",e.Dfn="dfn",e.Ins="ins",e.Kbd="kbd",e.Mark="mark",e.Pre="pre",e.Q="q",e.S="s",e.Samp="samp",e.Small="small",e.Summary="summary",e.Sup="sup",e.Sub="sub",e.Time="time",e.Var="var",e.Wbr="wbr"}(ie||(ie={})),function(e){e.Default="default",e.Circle="circle"}(ce||(ce={})),function(e){e[e.Justify=0]="Justify",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Center=3]="Center"}(le||(le={}));var ue,se=function(t){var n,a;switch(t.alignType){case le.Center:a="v-label-center";break;case le.Justify:a="v-label-justify";break;case le.Left:a="v-label";break;case le.Right:a="v-label-right";break;default:a="v-label"}switch(t.type==ce.Circle&&(a="".concat(a,"-circle")),t.isTextOverflow&&(a+=" v-label-text-overflow"),t.category){case ie.Div:n=e.createElement("div",null,t.caption);break;case ie.Span:n=e.createElement("span",null,t.caption);break;case ie.H1:n=e.createElement("h1",null,t.caption);break;case ie.H2:n=e.createElement("h2",null,t.caption);break;case ie.H3:n=e.createElement("h3",null,t.caption);break;case ie.H4:n=e.createElement("h4",null,t.caption);break;case ie.H5:n=e.createElement("h5",null,t.caption);break;case ie.H6:n=e.createElement("h6",null,t.caption);break;case ie.I:n=e.createElement("i",null,t.caption);break;case ie.B:n=e.createElement("b",null,t.caption);break;case ie.U:n=e.createElement("u",null,t.caption);break;case ie.Abbr:n=e.createElement("abbr",{title:t.title},t.caption);break;case ie.Em:n=e.createElement("em",null,t.caption);break;case ie.Strong:n=e.createElement("strong",null,t.caption);break;case ie.Blockquote:n=e.createElement("blockquote",{cite:t.cite},t.caption);break;case ie.Cite:n=e.createElement("cite",null,t.caption);break;case ie.Code:n=e.createElement("code",null,t.caption);break;case ie.Del:n=e.createElement("del",null,t.caption);break;case ie.Dfn:n=e.createElement("dfn",null,t.caption);break;case ie.Ins:n=e.createElement("ins",null,t.caption);break;case ie.Kbd:n=e.createElement("kbd",null,t.caption);break;case ie.Mark:n=e.createElement("mark",null,t.caption);break;case ie.Pre:n=e.createElement("pre",null,t.caption);break;case ie.Q:n=e.createElement("q",null,t.caption);break;case ie.S:n=e.createElement("s",null,t.caption);break;case ie.Samp:n=e.createElement("samp",null,t.caption);break;case ie.Small:n=e.createElement("small",null,t.caption);break;case ie.Summary:n=e.createElement("summary",null,t.caption);break;case ie.Sub:n=e.createElement("sub",null,t.caption);break;case ie.Sup:n=e.createElement("sup",null,t.caption);break;case ie.Time:n=e.createElement("time",null,t.caption);break;case ie.Var:n=e.createElement("var",null,t.caption);break;case ie.Wbr:n=e.createElement("wbr",null,t.caption);break;default:n=e.createElement("span",null,t.caption)}return t.type==ce.Circle?e.createElement(U,null,e.createElement(T,m({vClassName:a,width:"1.6em",height:"1.6em",borderRadius:"2em"},t),e.createElement(A,{category:N.Area,type:I.Center},n))):e.createElement(T,m({display:null==t.category||t.category==ie.Span?"inline-block":"block",vClassName:a},t),n)},de=function(t){return e.createElement(T,m({id:t.id,vClassName:"v-boundary"},t),e.createElement("div",{onClick:t.onClick,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave},t.children))},me=function(t){var n,a=e.useState({value:void 0!==t.value?t.value:""}),o=a[0],i=a[1],c=e.useRef(null),l=e.useRef(null);return e.useEffect((function(){var e;t.ref?null===(e=t.ref.current)||void 0===e||e.focus():t.isFocus&&c.current&&c.current.focus()})),t.overWrite&&(n=t.ref?t.overWrite(t.ref):t.overWrite(c)),e.createElement(T,m({vClassName:"v-validity v-input".concat(t.inheritClassName?" ".concat(t.inheritClassName):"")},t),e.createElement(ae,{display:n?"none":void 0},e.createElement(K,{gap:"0.6em"},e.createElement(de,null,!!t.icon&&t.icon),e.createElement(de,null,e.createElement("input",m({ref:t.ref?t.ref:c},t.customAttibutes,{className:t.inputClassName,style:m(m({},t.inputStyle),{display:t.isReadonly?"none":"block"}),required:t.isRequired,placeholder:t.placeholder,type:t.type,id:t.id?t.id:t.name,name:t.name,value:t.valueHook?t.valueHook:o.value,min:t.min,max:t.max,step:t.step,disabled:t.disabled,onChange:function(e){var n,a;t.isValueShow&&i({value:t.ref?null===(n=t.ref.current)||void 0===n?void 0:n.value:null===(a=c.current)||void 0===a?void 0:a.value}),t.onChange&&t.onChange(e),t.setStateHook?t.setStateHook(e.target.value):i({value:e.target.value})},onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onClick:t.onClick,onBlur:t.onBlur,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onDrag:t.onDrag})),!!t.isReadonly&&e.createElement("div",{ref:t.readonlyRef?t.readonlyRef:l},t.valueHook?t.valueHook:o.value?o.value.toString():""),!!t.label&&e.createElement("label",{htmlFor:t.id?t.id:t.name},t.label)),e.createElement(de,null,!!t.extensions&&e.createElement(Z,null,t.extensions.map((function(n,a){return e.createElement("span",{key:"extension".concat(a),className:"extension",onClick:function(){var e=t.ref?t.ref.current:c.current;n.handleOption(e)}},n.option)}))))),!!t.isValueShow&&e.createElement($,null,e.createElement(se,{padding:t.valuePadding,isAutoSize:t.isAutoSize,size:t.valueSize?t.valueSize:p.Normal,frontColor:t.valueColor?t.valueColor:r.Black,caption:void 0!==o.value?o.value.toString():t.value?t.value.toString():""}))),!!n&&n)};!function(e){e.Default="default",e.Circle="circle",e.Squared="squared",e.Custom="custom"}(ue||(ue={}));var fe,pe,ge=function(t){var n=B(t);return e.createElement(e.Fragment,null,e.Children.map(t.children,(function(a){return function(a){var r=t.category?t.category:ue.Default,o=n.getClassName("v-svg-".concat(r)),i=t.onClick,c=t.onMouseEnter,l=t.onMouseLeave,u={className:o,style:m(m({},n.getStyle()),{cursor:i?"pointer":"inherit"}),onClick:i,onMouseEnter:c,onMouseLeave:l};return e.cloneElement(a,u)}(a)})))};function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},he.apply(null,arguments)}var ve,ye=function(t){return e.createElement("svg",he({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},t),fe||(fe=e.createElement("path",{fill:"currentColor",d:"M198.132 64.763a6 6 0 0 0-6-6H65.753a6 6 0 0 0-6 6v126.473a6 6 0 0 0 6 6h126.399a6 6 0 0 0 6-6.001z"})),pe||(pe=e.createElement("path",{fill:"currentColor",d:"M40.562 228h174.876c3.334 0 6.528-1.324 8.884-3.682a12.57 12.57 0 0 0 3.678-8.886V40.568a12.57 12.57 0 0 0-3.678-8.886A12.55 12.55 0 0 0 215.438 28H40.562a12.56 12.56 0 0 0-8.884 3.682A12.57 12.57 0 0 0 28 40.568v174.864a12.57 12.57 0 0 0 3.678 8.886A12.56 12.56 0 0 0 40.562 228m4.044-169.236v-.002c0-4 1.588-7.835 4.414-10.664a15.07 15.07 0 0 1 10.659-4.416h138.453a15.07 15.07 0 0 1 10.659 4.416 15.1 15.1 0 0 1 4.416 10.664v138.473c0 3.999-1.59 7.835-4.416 10.663a15.07 15.07 0 0 1-10.659 4.417H59.755a15.07 15.07 0 0 1-10.658-4.417 15.08 15.08 0 0 1-4.415-10.663z"})))};function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},be.apply(null,arguments)}var Ee,Ce,Se,ke,we=function(t){return e.createElement("svg",be({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},t),ve||(ve=e.createElement("path",{fill:"currentColor",d:"M40.562 228h174.876c3.334 0 6.528-1.324 8.884-3.682a12.57 12.57 0 0 0 3.678-8.886V40.568a12.57 12.57 0 0 0-3.678-8.886A12.55 12.55 0 0 0 215.438 28H40.562a12.56 12.56 0 0 0-8.884 3.682A12.57 12.57 0 0 0 28 40.568v174.864a12.57 12.57 0 0 0 3.678 8.886A12.56 12.56 0 0 0 40.562 228m4.044-169.236v-.002c0-4 1.588-7.835 4.414-10.664a15.07 15.07 0 0 1 10.659-4.416h138.453a15.07 15.07 0 0 1 10.659 4.416 15.1 15.1 0 0 1 4.416 10.664v138.473c0 3.999-1.59 7.835-4.416 10.663a15.07 15.07 0 0 1-10.659 4.417H59.755a15.07 15.07 0 0 1-10.658-4.417 15.08 15.08 0 0 1-4.415-10.663z"})))};!function(e){e.Bounce="animate__bounce",e.Flash="animate__flash",e.Pulse="animate__pulse",e.RubberBand="animate__rubberBand",e.ShakeX="animate__shakeX",e.ShakeY="animate__shakeY",e.HeadShake="animate__headShake",e.Swing="animate__swing",e.Tada="animate__tada",e.Wobble="animate__wobble",e.Jello="animate__jello",e.HeartBeat="animate__heartBeat",e.BackInDown="animate__backInDown",e.BackInLeft="animate__backInLeft",e.BackInRight="animate__backInRight",e.BackInUp="animate__backInUp",e.BackOutDown="animate__backOutDown",e.BackOutLeft="animate__backOutLeft",e.BackOutRight="animate__backOutRight",e.BackOutUp="animate__backOutUp",e.BounceIn="animate__bounceIn",e.BounceInDown="animate__bounceInDown",e.BounceInLeft="animate__bounceInLeft",e.BounceInRight="animate__bounceInRight",e.BounceInUp="animate__bounceInUp",e.BounceOut="animate__bounceOut",e.BounceOutDown="animate__bounceOutDown",e.BounceOutLeft="animate__bounceOutLeft",e.BounceOutRight="animate__bounceOutRight",e.BounceOutUp="animate__bounceOutUp",e.FadeIn="animate__fadeIn",e.FadeInDown="animate__fadeInDown",e.FadeInDownBig="animate__fadeInDownBig",e.FadeInLeft="animate__fadeInLeft",e.FadeInLeftBig="animate__fadeInLeftBig",e.FadeInRight="animate__fadeInRight",e.FadeInRightBig="animate__fadeInRightBig",e.FadeInUp="animate__fadeInUp",e.FadeInUpBig="animate__fadeInUpBig",e.FadeInTopLeft="animate__fadeInTopLeft",e.FadeInTopRight="animate__fadeInTopRight",e.FadeInBottomLeft="animate__fadeInBottomLeft",e.FadeInBottomRight="animate__fadeInBottomRight",e.FadeOut="animate__fadeOut",e.FadeOutDown="animate__fadeOutDown",e.FadeOutDownBig="animate__fadeOutDownBig",e.FadeOutLeft="animate__fadeOutLeft",e.FadeOutLeftBig="animate__fadeOutLeftBig",e.FadeOutRight="animate__fadeOutRight",e.FadeOutRightBig="animate__fadeOutRightBig",e.FadeOutUp="animate__fadeOutUp",e.FadeOutUpBig="animate__fadeOutUpBig",e.FadeOutTopLeft="animate__fadeOutTopLeft",e.FadeOutTopRight="animate__fadeOutTopRight",e.FadeOutBottomLeft="animate__fadeOutBottomLeft",e.FadeOutBottomRight="animate__fadeOutBottomRight",e.Flip="animate__flip",e.FlipInX="animate__flipInX",e.FlipInY="animate__flipInY",e.FlipOutX="animate__flipOutX",e.FlipOutY="animate__flipOutY",e.LightSpeedInRight="animate__lightSpeedInRight",e.LightSpeedInLeft="animate__lightSpeedInLeft",e.LightSpeedOutRight="animate__lightSpeedOutRight",e.LightSpeedOutLeft="animate__lightSpeedOutLeft",e.RotateIn="animate__rotateIn",e.RotateInDownLeft="animate__rotateInDownLeft",e.RotateInDownRight="animate__rotateInDownRight",e.RotateInUpLeft="animate__rotateInUpLeft",e.RotateInUpRight="animate__rotateInUpRight",e.RotateOut="animate__rotateOut",e.RotateOutDownLeft="animate__rotateOutDownLeft",e.RotateOutDownRight="animate__rotateOutDownRight",e.RotateOutUpLeft="animate__rotateOutUpLeft",e.RotateOutUpRight="animate__rotateOutUpRight",e.Hinge="animate__hinge",e.JackInTheBox="animate__jackInTheBox",e.RollIn="animate__zoomIn",e.RollOut="animate__zoomIn",e.ZoomIn="animate__zoomIn",e.ZoomInDown="animate__zoomInDown",e.ZoomInLeft="animate__zoomInLeft",e.ZoomInRight="animate__zoomInRight",e.ZoomInUp="animate__zoomInUp",e.ZoomOut="animate__zoomOut",e.ZoomOutDown="animate__zoomOutDown",e.ZoomOutLeft="animate__zoomOutLeft",e.ZoomOutRight="animate__zoomOutRight",e.ZoomOutUp="animate__zoomOutUp",e.SlideInDown="animate__slideInDown",e.SlideInLeft="animate__slideInLeft",e.SlideInRight="animate__slideInRight",e.SlideInUp="animate__slideInUp",e.SlideOutDown="animate__slideOutDown",e.SlideOutLeft="animate__slideOutLeft",e.SlideOutRight="animate__slideOutRight",e.SlideOutUp="animate__slideOutUp"}(Ee||(Ee={})),function(e){e.Once="animate__repeat-1",e.Twice="animate__repeat-2",e.Thrice="animate__repeat-3",e.Infinite="animate__infinite"}(Ce||(Ce={})),function(e){e.Slow="animate__slow",e.Slower="animate__slower",e.Fast="animate__fast",e.Faster="animate__faster"}(Se||(Se={})),function(e){e.Delay1Second="animate__delay-1s",e.Delay2Second="animate__delay-2s",e.Delay3Second="animate__delay-3s",e.Delay4Second="animate__delay-4s",e.Delay5Second="animate__delay-5s"}(ke||(ke={}));var _e,xe=function(t){var n;return e.createElement("div",{className:(n=[],n.push(t.category),t.repeat&&n.push(t.repeat),t.speed&&n.push(t.speed),t.delay&&n.push(t.delay),"animate__animated ".concat(n.join(" ")))},t.children)},Be=function(t){var n=B(t);return e.createElement(de,m({className:n.getClassName("v-loading"),style:n.getStyle()},t),e.createElement(xe,{category:t.animationCategory?t.animationCategory:Ee.Flip,speed:t.animationSpeed?t.animationSpeed:Se.Slower,repeat:Ce.Infinite},t.children))};function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ve.apply(null,arguments)}var Te,Re=function(t){return e.createElement("svg",Ve({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},t),_e||(_e=e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M142.37 28c14.247 0 25.795 11.548 25.795 25.795s-11.548 25.799-25.795 25.799-25.796-11.551-25.796-25.799S128.122 28 142.37 28m65.108 50.223c7.122 7.125 7.122 18.673 0 25.796-7.122 7.125-18.673 7.125-25.795 0-7.126-7.123-7.126-18.67 0-25.796 7.122-7.122 18.673-7.122 25.795 0m13.977 76.209c0 9.032-7.318 16.35-16.35 16.35-9.03 0-16.348-7.318-16.348-16.35 0-9.03 7.318-16.348 16.348-16.348 9.032 0 16.35 7.318 16.35 16.348m-45.928 59.961c-4.277 4.278-11.215 4.278-15.493 0-4.28-4.28-4.28-11.218 0-15.496 4.278-4.28 11.216-4.28 15.493 0 4.281 4.278 4.281 11.216 0 15.496M104.469 228c-5.98 0-10.83-4.847-10.83-10.83s4.85-10.83 10.83-10.83c5.983 0 10.83 4.847 10.83 10.83S110.452 228 104.469 228m-58.417-41.95c-3.426-3.426-3.426-8.982 0-12.411 3.43-3.426 8.985-3.426 12.412 0a8.77 8.77 0 0 1 0 12.411 8.773 8.773 0 0 1-12.412 0M34 116.534a7.733 7.733 0 1 1 15.466-.002 7.733 7.733 0 0 1-15.466.002m41.858-55.412a4.53 4.53 0 0 1 6.398 0 4.52 4.52 0 0 1 0 6.399 4.52 4.52 0 0 1-6.398 0 4.53 4.53 0 0 1 0-6.399",clipRule:"evenodd"})))};!function(e){e.Vertical="Vertical",e.Horizontal="Horizontal"}(Te||(Te={}));var De,Le;function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ne.apply(null,arguments)}var Ie,Oe=function(t){return e.createElement("svg",Ne({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},t),De||(De=e.createElement("path",{fill:"currentColor",d:"M128 188c33.138 0 60-26.862 60-60s-26.862-60-60-60-60 26.862-60 60 26.862 60 60 60"})),Le||(Le=e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M228 128c0 55.229-44.771 100-100 100S28 183.229 28 128 72.771 28 128 28s100 44.771 100 100m-20 0c0 44.183-35.817 80-80 80s-80-35.817-80-80 35.817-80 80-80 80 35.817 80 80",clipRule:"evenodd"})))};function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Fe.apply(null,arguments)}var Ae,We,ze=function(t){return e.createElement("svg",Fe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},t),Ie||(Ie=e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M228 128c0 55.229-44.771 100-100 100S28 183.229 28 128 72.771 28 128 28s100 44.771 100 100m-20 0c0 44.183-35.817 80-80 80s-80-35.817-80-80 35.817-80 80-80 80 35.817 80 80",clipRule:"evenodd"})))};function Xe(){return Xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Xe.apply(null,arguments)}var Me,Pe=function(t){return e.createElement("svg",Xe({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 256 256"},t),Ae||(Ae=e.createElement("rect",{width:20,height:200,x:50,y:64,fill:"currentColor",rx:10,transform:"rotate(-45 50 64)"})),We||(We=e.createElement("rect",{width:20,height:200,fill:"currentColor",rx:10,transform:"scale(-1 1)rotate(-45 -25.527 280.136)"})))},Ue=function(t){var n;if(t.enableClear){var a={option:e.createElement(ge,{size:p.ExtraSmall,frontColor:r.Placeholder,onClick:function(){}},e.createElement(Pe,null)),handleOption:function(e){e.value=""}};n=t.extensions?f(f([],t.extensions,!0),[a],!1):[a]}else t.extensions&&(n=t.extensions);return e.createElement(me,m({ref:t.ref,readonlyRef:t.readonlyRef,isFocus:t.isFocus,inheritClassName:"v-textbox",isDefaultValue:!0,type:"text"},t,{extensions:n}))},He=function(t){return e.createElement(me,m({ref:t.ref,display:"none",type:"hidden",id:t.id?t.id:t.name},t))},Ye=function(t){var n=B(t);return e.createElement("div",m({id:t.id,className:"v-root ".concat(n.getClassName(t.vClassName)),style:n.getStyle()},t.customAttibutes),t.children)};!function(e){e.NewWindow="_blank",e.Self="_self",e.Parent="_parent",e.Top="_top"}(Me||(Me={}));var je,Je=function(t){var n=B(t);return e.createElement(T,m({vClassName:n.getClassName("v-hyperlink"),style:n.getStyle()},t),e.createElement("a",{href:t.to,target:t.category},t.children))};!function(e){e.Uninstalled="uninstalled",e.Outdated="outdated",e.Ready="ready"}(je||(je={}));var qe,Ge;!function(e){e.P="p",e.Address="address",e.Article="article",e.Aside="aside",e.Details="details",e.Section="section"}(qe||(qe={})),function(e){e[e.Justify=0]="Justify",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Center=3]="Center"}(Ge||(Ge={}));var Ze;!function(e){e.Default="default",e.Fixed="fixed"}(Ze||(Ze={}));var Ke;!function(e){e.Vertical="vertical",e.Horizontal="horizontal"}(Ke||(Ke={}));var Qe;!function(e){e.Default="default",e.Fixed="fixed"}(Qe||(Qe={}));var $e;!function(e){e.Default="default",e.Max="max"}($e||($e={}));var et;!function(e){e.Normal="normal",e.Italic="italic"}(et||(et={}));var tt,nt="fewbox-google-api";!function(e){e.Prompt="prompt",e.Popup="popup",e.Redirect="redirect"}(tt||(tt={}));var at,rt="fewbox-google-auth",ot=function(e,t){e.isInitialized||t()};!function(e){e.Beacon="beacon",e.Xhr="xhr",e.Image="image"}(at||(at={}));var it,ct=Object.freeze({__proto__:null,get AnimationCategory(){return Ee},get AnimationDelay(){return ke},get AnimationRepeat(){return Ce},get AnimationSpeed(){return Se},get BackgroundPositionType(){return te},Base:B,get BorderRadiusType(){return s},get BreakpointType(){return x},get ColorType(){return r},get ComponentType(){return v},Debug:function(t){return t.isDebug?e.createElement("div",{className:"debug"},t.children):e.createElement("div",{className:"no-debug"},t.children)},Display:function(t){return t.children?e.createElement(e.Fragment,null,e.Children.map(t.children,(function(n){return function(n){if(n&&n.props){var a=void 0;t.breakpoint?"string"==typeof t.breakpoint?t.type&&t.type!=D.Only?t.type==D.Up?a="".concat(t.breakpoint,"-up-").concat(t.category):t.type==D.Down&&(a="".concat(t.breakpoint,"-down-").concat(t.category)):a="".concat(t.breakpoint,"-").concat(t.category):a=t.breakpoint.map((function(e,n){return"".concat(e,"-").concat(t.category)})).join(" "):a=t.category;var r={className:a};return e.cloneElement(n,r)}return n}(n)}))):e.createElement(e.Fragment,null)},get DisplayCategory(){return R},get DisplayType(){return D},Dock:O,get DockCategory(){return L},get EllipseCategory(){return Ze},get ExtensionStatus(){return je},FigmaSignin:function(t){return e.createElement("div",{className:"figma-signin",onClick:function(){window.location.href="https://www.figma.com/oauth?client_id=".concat(t.clientId,"&redirect_uri=").concat(t.redirectUrl,"&scope=").concat(t.scope,"&state=").concat("fewbox","&response_type=").concat(t.responseType)}},t.children)},get FileCategory(){return Te},Flex:Y,get FlexAlignContentType(){return P},get FlexAlignItemsType(){return M},get FlexDirectionType(){return W},FlexItem:J,get FlexItemAlignSelfType(){return H},get FlexJustifyContentType(){return X},get FlexWrapType(){return z},get FontFamilyType(){return i},get FontWeightType(){return o},GA4NextJS:function(t){return e.createElement(se,{frontColor:r.Error,size:p.Large,caption:"[USE] https://nextjs.org/docs/app/building-your-application/optimizing/third-party-libraries"})},get GAEventTransportType(){return at},Google:function(t){return e.useEffect((function(){var e=document.createElement("script");e.src="https://accounts.google.com/gsi/client",e.onload=function(){var e=google.accounts.oauth2.initTokenClient({client_id:t.clientId,scope:t.scope,callback:function(e){t.callback(e.access_token)}}),n=document.getElementById(nt);null==n||n.addEventListener("click",(function(){e.requestAccessToken()})),t.enableGoogle()},e.onerror=function(e){console.error(e),t.disableGoogle()},document.body.appendChild(e)}),[]),e.createElement(de,{id:nt},t.children)},get GoogleFontType(){return et},GoogleSignin:function(t){return e.useEffect((function(){var e=document.createElement("script");e.src="https://accounts.google.com/gsi/client",e.onload=function(){if(google.accounts.id.initialize({client_id:t.clientId,ux_mode:t.category!=tt.Prompt?t.category:void 0,use_fedcm_for_prompt:t.category==tt.Prompt,callback:function(e){t.callback(e.credential)},login_uri:t.redirectUrl}),t.category==tt.Prompt)google.accounts.id.prompt((function(e){e.isNotDisplayed()||e.isSkippedMoment()}));else{var e=document.getElementById(rt);e?google.accounts.id.renderButton(e,t.gsiButtonConfiguration?t.gsiButtonConfiguration:{type:"icon",size:"large",theme:"outline",shape:"circle",logo_alignment:"center"}):(console.error("The element google-auth not found!"),t.disableGoogle())}t.enableGoogle()},e.onerror=function(e){console.error(e),t.disableGoogle()},document.body.appendChild(e)}),[]),e.createElement(de,{id:rt})},get GoogleSigninCategory(){return tt},get HandleSubmitCategory(){return re},get HyperlinkCategory(){return Me},get LabelAlignType(){return le},get LabelCategory(){return ie},get LabelType(){return ce},get LetterSpacingType(){return u},get LineCategory(){return Ke},get LineHeightType(){return c},get PaddingType(){return l},Position:A,PositionArea:U,get PositionAreaCategory(){return F},get PositionCategory(){return N},get PositionType(){return I},get RootCategory(){return b},SBaseline:function(t){return e.createElement(e.Fragment,null,t.children)},SBottom:function(t){return e.createElement(e.Fragment,null,t.children)},SCenter:function(t){return e.createElement(e.Fragment,null,t.children)},SLeft:function(t){return e.createElement(e.Fragment,null,t.children)},SMiddle:function(t){return e.createElement(e.Fragment,null,t.children)},SRight:function(t){return e.createElement(e.Fragment,null,t.children)},SStretch:function(t){return e.createElement(e.Fragment,null,t.children)},STop:function(t){return e.createElement(e.Fragment,null,t.children)},get ShadowCategory(){return $e},get SizeType(){return p},get SvgCategory(){return ue},get TextAlignType(){return Ge},get TextCategory(){return qe},VActionForm:function(t){return e.createElement("form",{className:"v-action-form",action:t.action,method:t.method,target:t.target},t.children)},VAnimation:xe,VAudio:function(t){var n=B(t);return e.createElement("audio",{className:n.getClassName("v-audio"),style:n.getStyle(),controls:!0},t.sources.map((function(t,n){return e.createElement("source",{key:"source".concat(n),src:t.src,type:t.type})})))},VBackground:function(t){var n;return n=t.imageWidth&&t.imageHeight?{backgroundImage:'url("'.concat(t.image,'")'),backgroundSize:"".concat(t.imageWidth," ").concat(t.imageHeight)}:{backgroundImage:'url("'.concat(t.image,'")')},e.createElement(T,m({vClassName:t.position?"v-background-".concat(t.position):"v-background",style:n},t.customAttibutes),t.children)},VBoundary:de,VCheckBox:function(t){var n=e.useState({isChecked:t.isChecked}),a=n[0],r=n[1];return e.createElement(me,{isAutoSize:t.isAutoSize,customAttibutes:{defaultChecked:!!a.isChecked},inheritClassName:"v-checkbox",type:"checkbox",isDefaultValue:!0,overWrite:function(n){return e.createElement(ee,{gap:"0.2em",onClick:function(){var e,t;null===(e=n.current)||void 0===e||e.click(),(null===(t=n.current)||void 0===t?void 0:t.hasAttribute("checked"))?r({isChecked:!1}):r({isChecked:!0})}},e.createElement(ge,{frontColor:t.frontColor,size:t.size},a.isChecked?e.createElement(ye,null):e.createElement(we,null)),e.createElement(se,{frontColor:t.frontColor,size:t.size,caption:t.label?t.label:""}))}})},VChromeExtensionValidator:function(t){var n,a=e.useState({}),r=a[0],o=a[1];return e.useEffect((function(){var e;r.status||(e=!1,window.addEventListener("extension-meta-".concat(t.extensionId),(function(n){e=!0,n.detail?n.detail.version?t.version?n.detail.version>=t.version?o(m(m({},r),{status:je.Ready})):o(m(m({},r),{status:je.Outdated})):o(m(m({},r),{status:je.Ready})):o(m(m({},r),{status:je.Outdated})):o(m(m({},r),{status:je.Uninstalled}))})),window.dispatchEvent(new CustomEvent("validate-extension-".concat(t.extensionId),{detail:{id:t.extensionId}})),setTimeout((function(){e||o(m(m({},r),{status:je.Uninstalled}))}),t.waitingTime?t.waitingTime:1e3))})),r.status===je.Uninstalled?n=t.uninstalledCaption:r.status===je.Outdated&&(n=t.outdatedCaption),e.createElement(de,null,!(r.status===je.Ready)&&(t.overWrite&&r.status?t.overWrite(r.status):e.createElement(Je,{category:Me.NewWindow,to:t.downloadUrl?t.downloadUrl:"mailto:support@fewbox.com"},n)))},VColor:function(t){return e.createElement(me,m({type:"color",isDefaultValue:!0},t))},VDate:function(t){return e.createElement(me,m({type:"date",isDefaultValue:!0},t))},VDatetimeLocal:function(t){return e.createElement(me,m({type:"datetime-local",isDefaultValue:!0},t))},VDropdown:function(t){var n,a,o=e.useState({isSelectionShow:!1,selectValue:t.value?t.value:"",selectCaption:t.value?t.items.filter((function(e){return e.value==t.value}))[0].caption:"",items:t.items}),i=o[0],c=o[1],l=e.useRef(null),u=e.useRef(null),s=e.useRef(null);e.useEffect((function(){var e=window.document.getElementById("".concat(t.name,"-dock"));if(e){var n=0;t.icon&&(n+=2),n+=t.extensions?4*(t.extensions.length+1):4,t.isReadonly?e.style.width=s.current?"calc(".concat(s.current.offsetWidth,"px + ").concat(n,"em)"):"12em":e.style.width=u.current?"calc(".concat(u.current.offsetWidth,"px + ").concat(n,"em)"):"12em"}}));return e.createElement(Ye,m({vClassName:"v-dropdown"},t),e.createElement(He,{id:t.id?t.id:t.name,name:t.name,valueHook:null===(n=i.selectValue)||void 0===n?void 0:n.toString(),ref:l}),e.createElement(O,{zIndex:i.isSelectionShow?2e9:-2e9,category:L.RightInnerBottom,renderOverlay:function(){return e.createElement(de,{id:"".concat(t.name,"-dock"),visibility:i.isSelectionShow?"visible":"hidden",borderRadius:t.borderRadius},e.createElement(ae,{backgroundColor:r.White,padding:"1em 0",gap:"0.6em",borderRadius:"0.2em",borderColor:t.borderColor,borderWidth:t.borderWidth,borderStyle:"solid"},i.items.map((function(n,a){return t.overWriteDropdownItem?e.createElement(de,{key:"item".concat(a)},t.overWriteDropdownItem(n)):e.createElement(ee,{gap:"0.2em",padding:"0.2em 1em",key:"item".concat(a),className:"item",onClick:function(){c(m(m({},i),{isSelectionShow:!1,selectIcon:n.icon,selectCaption:n.caption,selectValue:n.value,items:t.items})),t.onChange&&t.onChange(n.value)}},n.icon?e.createElement(ge,{size:p.ExtraSmall},n.icon):e.createElement(e.Fragment,null),e.createElement(se,{caption:n.caption}))})),!(0!=i.items.length)&&e.createElement(ge,{size:p.ExtraSmall,onClick:function(){}},t.emptyIcon)))}},e.createElement(Ue,{padding:t.padding,isReadonly:t.isReadonly,size:t.size,icon:e.createElement(ge,{size:t.size?t.size:p.Normal},i.selectIcon?i.selectIcon:t.icon),valueHook:null===(a=i.selectCaption)||void 0===a?void 0:a.toString(),enableClear:t.enableClear,extensions:[{option:e.createElement(ge,{size:t.size?t.size:p.Small,onClick:function(){}},i.isSelectionShow?t.upIcon:t.downIcon),handleOption:function(e){c(m(m({},i),{isSelectionShow:!i.isSelectionShow}))}}],onClick:function(){c(m(m({},i),{isSelectionShow:!i.isSelectionShow}))},onChange:function(e){var n;n=e.target.value,c(m(m({},i),{isSelectionShow:!0,selectCaption:n,items:t.items.filter((function(e){return e.caption.toLowerCase().indexOf(n.toLowerCase())>-1}))}))},ref:u,readonlyRef:s,borderRadius:t.borderRadius,frontColor:i.selectValue===i.selectCaption?t.frontColor:r.Error})))},VEllipse:function(t){return e.createElement(T,m({vClassName:"v-ellipse-".concat(t.category?t.category:Ze.Default)},t),t.children)},VEmail:function(t){return e.createElement(me,m({inheritClassName:"v-email",isDefaultValue:!0,type:"email"},t))},VFile:function(t){var n=e.useState({fileName:t.emptyMessage,isLoading:!1}),a=n[0],r=n[1],o=function(){r(m(m({},a),{isLoading:!1}))},i=function(e){e.preventDefault(),t.autoUpload&&(e.currentTarget.className="v-file")};return e.createElement(de,{className:"v-file",onDrop:function(e){if(e.preventDefault(),t.autoUpload){var n=e.dataTransfer.files;1==n.length&&(r(m(m({},a),{fileName:n[0].name,isLoading:!0})),t.autoUpload(n[0],o),e.currentTarget.className="v-file")}},onDragOver:function(e){e.preventDefault(),t.autoUpload&&(e.currentTarget.className="v-file on-drag")},onDragEnd:i,onDragLeave:i,onDragExit:i},e.createElement(me,m({type:"file",isDefaultValue:!0},t,{onChange:function(e){r(m(m({},a),{fileName:e.target.files[0].name})),t.autoUpload&&(r(m(m({},a),{fileName:e.target.files[0].name,isLoading:!0})),t.autoUpload(e.target.files[0],o))},overWrite:function(n){return t.category&&t.category==Te.Vertical?e.createElement(ae,{gap:"1em",onClick:function(){var e;null===(e=n.current)||void 0===e||e.click()},cross:q.Center},t.fileIcon,e.createElement(de,null,t.caption),e.createElement(se,{category:ie.Div,alignType:le.Center,caption:a.fileName}),!!a.isLoading&&(t.renderLoading?t.renderLoading():e.createElement(Be,{animationCategory:Ee.Flash},e.createElement($,null,e.createElement(ge,{size:t.loadingSize,frontColor:t.loadingColor},e.createElement(Re,null)))))):e.createElement(ae,{gap:"1em",cross:q.Center},e.createElement(Z,{gap:"1em",onClick:function(){var e;null===(e=n.current)||void 0===e||e.click()}},t.fileIcon,e.createElement(se,{caption:a.fileName})),e.createElement(de,null,t.caption),!!a.isLoading&&(t.renderLoading?t.renderLoading():e.createElement(Be,{animationCategory:Ee.Flash},e.createElement(ge,{size:t.loadingSize,frontColor:t.loadingColor},e.createElement(Re,null)))))}})))},VFooter:function(t){var n=B(t);return e.createElement("footer",{className:n.getClassName("v-footer"),style:n.getStyle()},t.children)},VForm:function(t){return e.createElement("form",{className:"v-form",onSubmit:function(e){if(e.preventDefault(),!t.handleValidateError||e.currentTarget.checkValidity()){for(var n=0;n<e.currentTarget.elements.length;n++){(i=(o=e.currentTarget.elements.item(n)).closest(".v-validity"))&&(i.className=i.className.replace(" invalid",""))}var a=new FormData(e.currentTarget);if(t.handleSubmitCategory==re.FormData)t.handleSubmit(a);else{var r=oe(a);t.handleSubmit(r)}}else for(n=0;n<e.currentTarget.elements.length;n++){var o,i;(i=(o=e.currentTarget.elements.item(n)).closest(".v-validity"))&&(o.checkValidity()?i.className=i.className.replace(" invalid",""):-1==i.className.indexOf("invalid")&&(i.className+=" invalid")),t.handleValidateError(o)}}},t.children)},VFrame:function(t){var n;return t.backingBoard&&(n={background:"linear-gradient(".concat(t.backingBoard.degree,", ").concat(t.backingBoard.startColor,", ").concat(t.backingBoard.endColor,")")}),e.createElement(T,{vClassName:"v-frame",borderRadius:t.borderRadius,style:n},e.createElement("div",m({style:{padding:t.padding,backgroundImage:"url(".concat(t.image,")"),backgroundRepeat:"no-repeat",backgroundSize:"cover"}},t.customAttibutes),t.children))},VGoogleFont:function(t){return e.useEffect((function(){var e=document.createElement("link");e.rel="preconnect",e.href="https://fonts.googleapis.com";var n=document.createElement("link");n.rel="preconnect",n.href="https://fonts.gstatic.com",n.crossOrigin="crossorigin",document.head.appendChild(e),document.head.appendChild(n),t.typefaces.forEach((function(e,t){var n,a,r=e.family,o=null===(n=e.fonts)||void 0===n?void 0:n.filter((function(e){return e.type==et.Italic})),i=o&&o.length>0?"ital,wght":"wght",c=document.createElement("link");c.rel="stylesheet";var l=[];e.fonts&&e.fonts.length>1?(null===(a=e.fonts)||void 0===a||a.forEach((function(e,t){"ital,wght"==i?e.type==et.Normal?l.push("0,".concat(y(e.weight))):e.type==et.Italic&&l.push("1,".concat(y(e.weight))):l.push(y(e.weight).toString())})),c.href="https://fonts.googleapis.com/css2?family=".concat(r,":").concat(i,"@").concat(l.join(";"),"&display=swap")):c.href="https://fonts.googleapis.com/css2?family=".concat(r,"&display=swap"),document.head.appendChild(c)}))})),e.createElement(e.Fragment,null)},VGroup:function(t){var n=e.useState({selectedValue:t.selectedValue}),a=n[0],r=n[1];return e.createElement(e.Fragment,null,t.renderGroup(a.selectedValue,(function(e){r(e.currentTarget.value)})))},VHR:function(t){var n=B(t);return e.createElement("hr",{className:n.getClassName("v-hr"),style:n.getStyle()})},VHeader:function(t){var n=B(t);return e.createElement("header",{className:n.getClassName("v-header"),style:n.getStyle()},t.children)},VHidden:He,VHyperlink:Je,VLabel:se,VLine:function(t){return e.createElement(T,m({vClassName:"v-line-".concat(t.category)},t))},VMain:function(t){var n=B(t);return e.createElement("main",{className:n.getClassName("v-main"),style:n.getStyle()},t.children)},VMask:function(t){return e.createElement(A,{zIndex:t.zIndex?t.zIndex:1e8,category:N.Window,type:I.Center},e.createElement(U,null,e.createElement(de,{width:"100vw",height:"100vh",backgroundColor:r.Dark75},e.createElement(A,{category:N.Area,type:I.Center},t.children))))},VMonth:function(t){return e.createElement(me,m({type:"month",isDefaultValue:!0},t))},VNumber:function(t){return e.createElement(me,m({type:"number",isDefaultValue:!0},t))},VPassword:function(t){return e.createElement(me,m({inheritClassName:"v-password",isDefaultValue:!0,type:"password"},t))},VRadio:function(t){return e.createElement(me,m({type:"radio",customAttibutes:{checked:!!t.isChecked},isDefaultValue:!0},t,{overWrite:function(n){return e.createElement(ee,{onClick:function(){var e;console.log(n.current),null===(e=n.current)||void 0===e||e.click()}},e.createElement(ge,{padding:"0.4em",frontColor:t.frontColor,size:t.size},t.isChecked?e.createElement(Oe,null):e.createElement(ze,null)),e.createElement(se,{frontColor:t.frontColor,size:t.size,caption:t.label?t.label:""}))}}))},VRange:function(t){var n="".concat(t.controlBackgroundColor,"-background ").concat(t.controlBorderColor,"-border");return e.createElement(me,m({type:"range",isDefaultValue:!0},t,{inputClassName:n}))},VRectangle:function(t){return e.createElement(T,m({vClassName:"v-rectangle-".concat(t.category?t.category:Qe.Default)},t))},VSearch:function(t){return e.createElement(me,m({type:"search",isDefaultValue:!0,inheritClassName:"v-search"},t))},VSection:function(t){var n=B(t);return e.createElement("section",{className:n.getClassName("v-section"),style:n.getStyle()},t.children)},VSelect:function(t){var n=B(t);return e.createElement(de,m({className:n.getClassName("v-select"),style:n.getStyle()},t),e.createElement("select",{multiple:t.isMultiple,name:t.name,defaultValue:t.value,onChange:t.onChange},t.items.map((function(t,n){return e.createElement("option",{key:"option".concat(n),value:t.value},t.caption)}))))},VShadow:function(t){var n=B(t);return e.createElement(e.Fragment,null,e.Children.map(t.children,(function(a){return function(a){if(a){var r={};t.x&&t.y&&t.blur&&t.spread&&t.color&&(r.boxShadow="".concat(t.x,"px ").concat(t.y,"px ").concat(t.blur,"px ").concat(t.spread,"px ").concat(t.color));var o={className:n.getClassName("v-shadow-".concat(t.category?t.category:$e.Default)),style:m(m({},r),n.getStyle())};return e.cloneElement(a,o)}return e.createElement(e.Fragment,null)}(a)})))},VSubmit:function(t){var n=B(t),a=e.useRef(null);return e.createElement("div",{className:n.getClassName("v-submit"),style:n.getStyle(),onClick:function(){a.current.click()}},e.createElement($,{cross:j.Middle},!!t.icon&&e.createElement("span",null,t.icon),!!t.caption&&e.createElement("span",null,t.caption)),e.createElement("input",{formNoValidate:t.isFormNoValidate,ref:a,type:"submit",className:n.getClassName("v-submit"),style:n.getStyle()}))},VSubmitWrapper:function(t){var n=B(t),a=e.useRef(null);return e.createElement("div",{className:n.getClassName("v-submit-wrapper"),style:n.getStyle()},t.content,e.createElement("input",{ref:a,type:"submit"}))},VSvg:ge,VTel:function(t){return e.createElement(me,m({inheritClassName:"v-tel",isDefaultValue:!0,type:"tel"},t))},VText:function(t){var n,a;switch(t.alignType){case Ge.Center:a="v-text-center";break;case Ge.Justify:a="v-text-justify";break;case Ge.Left:a="v-text";break;case Ge.Right:a="v-text-right";break;default:a="v-text"}switch(t.category){case qe.P:n=e.createElement("p",null,t.content);break;case qe.Address:n=e.createElement("address",null,t.content);break;case qe.Article:n=e.createElement("article",null,t.content);break;case qe.Aside:n=e.createElement("aside",null,t.content);break;case qe.Details:n=e.createElement("details",null,t.content);break;case qe.Section:n=e.createElement("section",null,t.content);break;default:n=e.createElement("div",null,t.content)}return e.createElement(T,m({vClassName:a},t),n)},VTextArea:function(t){var n=e.useState({value:t.value}),a=n[0],r=n[1],o=e.useRef(null);return e.createElement(T,m({vClassName:"v-validity v-textarea"},t),e.createElement(Q,{cross:j.Top,gap:"0.6em"},t.icon,e.createElement(de,null,e.createElement("textarea",{ref:t.ref?t.ref:o,id:t.id?t.id:t.name,name:t.name,value:t.valueHook?t.valueHook:a.value,required:t.isRequired,placeholder:t.placeholder,rows:t.rows,onChange:function(e){t.onChange&&t.onChange(e),t.setStateHook?t.setStateHook(e.target.value):r({value:e.target.value})}}))))},VTextBox:Ue,VTime:function(t){return e.createElement(me,m({type:"time",isDefaultValue:!0},t))},VUrl:function(t){return e.createElement(me,m({inheritClassName:"v-url",isDefaultValue:!0,type:"url"},t))},VVideo:function(t){var n=B(t);return e.createElement("video",{className:n.getClassName("v-label"),style:n.getStyle(),controls:!0},t.sources.map((function(t,n){return e.createElement("source",{key:"source".concat(n),src:t.src,type:t.type})})))},VWeek:function(t){return e.createElement(me,m({type:"week",isDefaultValue:!0},t))},VZone:function(t){return e.createElement(T,{vClassName:"v-zone-".concat(t.category)},t.children)},get ViewSizeType(){return d},WeComSignin:function(t){return e.createElement("div",{className:"wecom-signin",onClick:function(){window.location.href="https://open.work.weixin.qq.com/wwopen/sso/qrConnect?appid=".concat(t.appId,"&agentid=").concat(t.agentId,"&redirect_uri=").concat(t.redirectUrl,"&state=").concat("fewbox")}},t.children)},X:Z,XAround:function(e){return G(e,void 0,void 0,(function(){return X.SpaceAround}))},XAutoBoth:function(t){var n=B(t);return G(t,(function(a,r,o){return 0!=r&&r!=e.Children.count(n.getChildren(t))-1?e.createElement(J,{grow:0,alignSelf:o},a):e.createElement(J,{grow:1,alignSelf:o},a)}))},XAutoCenter:K,XAutoLeft:function(t){return G(t,(function(t,n,a){return 0==n?e.createElement(J,{grow:1,alignSelf:a},t):e.createElement(J,{grow:0,alignSelf:a},t)}))},XAutoLefts:function(t){var n=B(t);return G(t,(function(a,r,o){return r==e.Children.count(n.getChildren(t))-1?e.createElement(J,{grow:0,alignSelf:o},a):e.createElement(J,{grow:1,alignSelf:o},a)}))},XAutoRight:Q,XAutoRights:function(t){return G(t,(function(t,n,a){return 0==n?e.createElement(J,{grow:0,alignSelf:a},t):e.createElement(J,{grow:1,alignSelf:a},t)}))},XBetween:function(e){return G(e,void 0,void 0,(function(){return X.SpaceBetween}))},XCenter:$,get XCrossType(){return j},XCustom:function(t){return G(t,(function(n,a){var r=e.createElement(J,null,n);return t.basises&&a<t.basises.length&&(r=e.createElement(J,{basis:t.basises[a]},n)),r}))},XCustomBoth:function(t){var n=B(t);return G(t,(function(a,r){return 0==r||r==e.Children.count(n.getChildren(t))-1?e.createElement(J,{basis:t.basis},a):e.createElement(J,{grow:1},a)}))},XEvenly:function(e){return G(e,void 0,void 0,(function(){return X.SpaceEvenly}))},XLeft:ee,XRight:function(e){return G(e,void 0,void 0,(function(){return X.End}))},XWrapAround:function(e){return G(e,void 0,(function(){return z.Wrap}),void 0,(function(){return P.SpaceAround}))},XWrapBetween:function(e){return G(e,void 0,(function(){return z.Wrap}),void 0,(function(){return P.SpaceBetween}))},XWrapBottom:function(e){return G(e,void 0,(function(){return z.Wrap}),void 0,(function(){return P.End}))},XWrapEvenly:function(e){return G(e,void 0,(function(){return z.Wrap}),void 0,(function(){return P.SpaceEvenly}))},XWrapMiddle:function(e){return G(e,void 0,(function(){return z.Wrap}),void 0,(function(){return P.Center}))},XWrapTop:function(e){return G(e,void 0,(function(){return z.Wrap}),void 0,(function(){return P.Start}))},Y:ae,YAround:function(e){return ne(e,void 0,void 0,void 0,(function(){return X.SpaceAround}))},YAutoBoth:function(t){var n=B(t);return ne(t,(function(a,r,o){return 0!=r&&r!=e.Children.count(n.getChildren(t))-1?e.createElement(J,{grow:0,alignSelf:o},a):e.createElement(J,{grow:1,alignSelf:o},a)}))},YAutoBottom:function(t){var n=B(t);return ne(t,(function(a,r){return r==e.Children.count(n.getChildren(t))-1?e.createElement(J,{grow:1},a):e.createElement(J,{grow:0},a)}))},YAutoBottoms:function(t){return ne(t,(function(t,n,a){return 0==n?e.createElement(J,{grow:0,alignSelf:a},t):e.createElement(J,{grow:1,alignSelf:a},t)}))},YAutoCenter:function(t){var n=B(t);return ne(t,(function(a,r,o){return 0!=r&&r!=e.Children.count(n.getChildren(t))-1?e.createElement(J,{grow:1,alignSelf:o},a):e.createElement(J,{grow:0,alignSelf:o},a)}))},YAutoTop:function(t){return ne(t,(function(t,n,a){return 0==n?e.createElement(J,{grow:1,alignSelf:a},t):e.createElement(J,{grow:0,alignSelf:a},t)}))},YAutoTops:function(t){var n=B(t);return ne(t,(function(a,r,o){return r==e.Children.count(n.getChildren(t))-1?e.createElement(J,{grow:0,alignSelf:o},a):e.createElement(J,{grow:1,alignSelf:o},a)}))},YBetween:function(e){return ne(e,void 0,void 0,void 0,(function(){return X.SpaceBetween}))},YBottom:function(e){return ne(e,void 0,void 0,void 0,(function(){return X.End}))},get YCrossType(){return q},YCustom:function(t){return ne(t,(function(n,a){var r=e.createElement(J,null,n);return t.basises&&a<t.basises.length&&(r=e.createElement(J,{basis:t.basises[a]},n)),r}))},YCustomBoth:function(t){var n=B(t);return ne(t,(function(a,r){return 0==r||r==e.Children.count(n.getChildren(t))-1?e.createElement(J,{basis:t.basis},a):e.createElement(J,{grow:1},a)}))},YEvenly:function(e){return ne(e,void 0,void 0,void 0,(function(){return X.SpaceEvenly}))},YMiddle:function(e){return ne(e,void 0,void 0,void 0,(function(){return X.Center}))},YTop:function(e){return ne(e,void 0,void 0,void 0,(function(){return X.Start}))},YWrapAround:function(e){return ne(e,void 0,(function(){return z.Wrap}),(function(){return P.SpaceAround}),void 0)},YWrapBetween:function(e){return ne(e,void 0,(function(){return z.Wrap}),(function(){return P.SpaceBetween}))},YWrapCenter:function(e){return ne(e,void 0,(function(){return z.Wrap}),(function(){return P.Center}))},YWrapEvenly:function(e){return ne(e,void 0,(function(){return z.Wrap}),(function(){return P.SpaceEvenly}))},YWrapLeft:function(e){return ne(e,void 0,(function(){return z.Wrap}),(function(){return P.Start}))},YWrapRight:function(e){return ne(e,void 0,(function(){return z.Wrap}),(function(){return P.End}))},get ZoneCategory(){return V},convertFormDataToJson:oe,ga4NextJSEvent:function(e,t,n){e.event(t)},ga4NextJSInit:function(e,t,n,a,r){ot(e,(function(){n?e.initialize(t,{testMode:!0,gaOptions:a,gtagOptions:r}):e.initialize(t,{gaOptions:a,gtagOptions:r})}))},ga4NextJSPageview:function(e,t,n){e.send({hitType:"pageview",page:t})},ga4NextJSScope:ot,ga4NextJSSetFieldsObject:function(e,t,n){e.set(t)},getGeneratedClassName:_,parseJWT:function(e){var n={},a=t(e,{header:!0});return n.role=a["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"],n.mobile=a["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mobilephone"],n.name=a["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"],n.email=a["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],n.exp=a.exp,n.iss=a.iss,n.aud=a.aud,n.expire=n.exp?new Date(1e3*n.exp):new Date(-864e13),n.tenant=a["http://schemas.fewbox.com/jwt/identity/claims/tenant"],n.id=a["http://schemas.fewbox.com/jwt/identity/claims/id"],n.api=a["http://schemas.fewbox.com/jwt/identity/claims/api"],n.issuer=a["http://schemas.fewbox.com/jwt/identity/claims/issuer"],n.audience=a["http://schemas.fewbox.com/jwt/identity/claims/audience"],n.avatar=a["http://schemas.fewbox.com/jwt/identity/claims/avatar"],n}});!function(e){e.Components=ct}(it||(it={}));export{it as Den};
2
2
  //# sourceMappingURL=index.js.map