datastake-daf 0.6.596 → 0.6.598
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/layouts/index.js +1088 -15
- package/package.json +1 -1
- package/src/@daf/layouts/AuthLayout/AuthLayout.stories.js +505 -0
- package/src/@daf/layouts/AuthLayout/components/Navbar/config.js +43 -0
- package/src/@daf/layouts/AuthLayout/components/Navbar/index.jsx +60 -0
- package/src/@daf/layouts/AuthLayout/components/Navbar/style.js +268 -0
- package/src/@daf/layouts/AuthLayout/components/Select/index.jsx +146 -0
- package/src/@daf/layouts/AuthLayout/components/Select/style.js +122 -0
- package/src/@daf/layouts/AuthLayout/index.jsx +87 -0
- package/src/@daf/layouts/AuthLayout/style.js +401 -0
- package/src/layouts.js +2 -1
package/dist/layouts/index.js
CHANGED
|
@@ -5672,13 +5672,13 @@ var unitlessKeys = {
|
|
|
5672
5672
|
strokeWidth: 1
|
|
5673
5673
|
};
|
|
5674
5674
|
|
|
5675
|
-
var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.12",g="/*!sc*/\n",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var o$1=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o$1," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},o.useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z=function(e){return M(F,e)};function $(e){return x(z(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,W=G?Symbol.for("react.forward_ref"):60112,q={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[W]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:q;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if("string"!=typeof t){if(ne){var o=te(t);o&&o!==ne&&oe(e,o,n);}var r=K(t);Q&&(r=r.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function re(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=!1),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le(e[o],t[o]);else if(ce(t))for(var o in t)e[o]=le(e[o],t[o]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de.apply(void 0,__spreadArray([pe[t]],n,!1)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=1<<30,ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he(16,"".concat(t));return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m),o.setAttribute(y,v);var i=Ce();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,n,o){void 0===e&&(e=C),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=!1,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ve.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this);},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,o,r=void 0===e?C:e,s=r.options,i=void 0===s?C:s,a=r.plugins,c$1=void 0===a?_:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c$1.slice();u.push(function(e){e.type===c&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(o,l));}),i.prefix&&u.push(de$1),u.push(he$1);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=ue$1(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return pe$1(l,be$1(u.concat(we$1(function(e){return p.push(e)})))),p};return p.hash=c$1.length?c$1.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Me=new ke,ze=Fe(),$e=o__default["default"].createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze});$e.Consumer;o__default["default"].createContext(void 0);function Ge(){return o.useContext($e)}var We=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ze);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),qe=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;qe(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||!1===e||""===e},Je=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(He(s),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),!1),["}"],!1)):r.push("".concat(He(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Xe(e,t,n,o){if(Ue(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(re(e)){if(!re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof We||ce(r)||null===r||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Xe(r,t,n,o)}var s;return e instanceof We?n?(e.inject(n,o),[e.getName(o)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Xe(e,t,n,o)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return !1}return !0}var Ke=z(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie(o,this.staticRulesId);else {var r=ae(Xe(this.rules,e,t,n)),s=x(M(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie(o,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Xe(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie(o,d);}}return o},e}(),et=o__default["default"].createContext(void 0);et.Consumer;var rt={},st=new Set;function it(e,r,s){var i=se(e),a=e,c=!L(e),p=r.attrs,d=void 0===p?_:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);rt[n]=(rt[n]||0)+1;var o="".concat(n,"-").concat($(v+n+rt[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=o__default["default"].useContext(et),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&o.useDebugValue(d);var v=I(r,f,c)||C,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid(b)||st.has(b)||!A.has(S)||(st.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),o$1=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&o.useDebugValue(o$1),o$1}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L(S)&&!A.has(S)?"class":"className"]=N,w.ref=s,o.createElement(S,w)}(D,e,r)}O.displayName=y;var D=o__default["default"].forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&oe(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function at(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var ct=function(e){return Object.assign(e,{isCss:!0})};function lt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return ct(Xe(at(_,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Xe(r):ct(Xe(at(r,n)))}function ut(n,o,r){if(void 0===r&&(r=C),!o)throw he(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,lt.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ut(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,o,__assign(__assign({},r),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e);});"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var St="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[St]||(window[St]=0),1===window[St]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[St]+=1);
|
|
5675
|
+
var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.12",g="/*!sc*/\n",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),b={},E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var o$1=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o$1," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},o.useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},z=function(e){return M(F,e)};function $(e){return x(z(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,W=G?Symbol.for("react.forward_ref"):60112,q={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[W]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:q;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if("string"!=typeof t){if(ne){var o=te(t);o&&o!==ne&&oe(e,o,n);}var r=K(t);Q&&(r=r.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function re(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=!1),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le(e[o],t[o]);else if(ce(t))for(var o in t)e[o]=le(e[o],t[o]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de.apply(void 0,__spreadArray([pe[t]],n,!1)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=1<<30,ye=new Map,ve=new Map,ge=1,Se=function(e){if(ye.has(e))return ye.get(e);for(;ve.has(ge);)ge++;var t=ge++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>me))throw he(16,"".concat(t));return ye.set(e,t),ve.set(t,e),t},we=function(e,t){ge=t+1,ye.set(e,t),ve.set(t,e);},be="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),Ee=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ne=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Pe=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(Ee);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(we(u,l),Ne(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},_e=function(e){for(var t=document.querySelectorAll(be),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Pe(e,r),r.parentNode&&r.parentNode.removeChild(r));}};function Ce(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ie=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m),o.setAttribute(y,v);var i=Ce();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ae=function(){function e(e){this.element=Ie(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Oe=function(){function e(e){this.element=Ie(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),De=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Re=S,Te={isServer:!S,useCSSOMInjection:!w},ke=function(){function e(e,n,o){void 0===e&&(e=C),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},Te),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Re&&(Re=!1,_e(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ve.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return Se(e)},e.prototype.rehydrate=function(){!this.server&&S&&_e(this);},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new De(n):t?new Ae(n):new Oe(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Se(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Se(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(Se(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),je=/&/g,xe=/^\s*\/\/.*$/gm;function Ve(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ve(e.children,t)),e})}function Fe(e){var t,n,o,r=void 0===e?C:e,s=r.options,i=void 0===s?C:s,a=r.plugins,c$1=void 0===a?_:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c$1.slice();u.push(function(e){e.type===c&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(je,n).replace(o,l));}),i.prefix&&u.push(de$1),u.push(he$1);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(xe,""),l=ue$1(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Ve(l,i.namespace));var p=[];return pe$1(l,be$1(u.concat(we$1(function(e){return p.push(e)})))),p};return p.hash=c$1.length?c$1.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Me=new ke,ze=Fe(),$e=o__default["default"].createContext({shouldForwardProp:void 0,styleSheet:Me,stylis:ze});$e.Consumer;o__default["default"].createContext(void 0);function Ge(){return o.useContext($e)}var We=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ze);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=ze),this.name+e.hash},e}(),qe=function(e){return e>="A"&&e<="Z"};function He(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;qe(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Ue=function(e){return null==e||!1===e||""===e},Je=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Ue(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(He(s),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Je(i),!1),["}"],!1)):r.push("".concat(He(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Xe(e,t,n,o){if(Ue(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(re(e)){if(!re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof We||ce(r)||null===r||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Xe(r,t,n,o)}var s;return e instanceof We?n?(e.inject(n,o),[e.getName(o)]):[e]:ce(e)?Je(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Xe(e,t,n,o)})):[e.toString()]}function Ze(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return !1}return !0}var Ke=z(v),Qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ze(e),this.componentId=t,this.baseHash=M(Ke,t),this.baseStyle=n,ke.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie(o,this.staticRulesId);else {var r=ae(Xe(this.rules,e,t,n)),s=x(M(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie(o,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Xe(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie(o,d);}}return o},e}(),et=o__default["default"].createContext(void 0);et.Consumer;var rt={},st=new Set;function it(e,r,s){var i=se(e),a=e,c=!L(e),p=r.attrs,d=void 0===p?_:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);rt[n]=(rt[n]||0)+1;var o="".concat(n,"-").concat($(v+n+rt[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Qe(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=o__default["default"].useContext(et),m=Ge(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&o.useDebugValue(d);var v=I(r,f,c)||C,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid(b)||st.has(b)||!A.has(S)||(st.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Ge(),o$1=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&o.useDebugValue(o$1),o$1}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L(S)&&!A.has(S)?"class":"className"]=N,w.ref=s,o.createElement(S,w)}(D,e,r)}O.displayName=y;var D=o__default["default"].forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&oe(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function at(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var ct=function(e){return Object.assign(e,{isCss:!0})};function lt(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return ct(Xe(at(_,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Xe(r):ct(Xe(at(r,n)))}function ut(n,o,r){if(void 0===r&&(r=C),!o)throw he(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,lt.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ut(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ut(n,o,__assign(__assign({},r),e))},s}var pt=function(e){return ut(it,e)},dt=pt;A.forEach(function(e){dt[e]=pt(e);});var ht=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ze(e),ke.registerId(this.componentId+1);}return e.prototype.createStyles=function(e,t,n,o){var r=o(ae(Xe(this.rules,t,n,o)),""),s=this.componentId+e;n.insertRules(s,s,r);},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e);},e.prototype.renderStyles=function(e,t,n,o){e>2&&ke.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o);},e}();function ft(n){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var i=lt.apply(void 0,__spreadArray([n],r,!1)),a="sc-global-".concat($(JSON.stringify(i))),c=new ht(i,a);"production"!==process.env.NODE_ENV&&P(a);var l=function(e){var t=Ge(),n=o__default["default"].useContext(et),r=o__default["default"].useRef(t.styleSheet.allocateGSInstance(a)).current;return "production"!==process.env.NODE_ENV&&o__default["default"].Children.count(e.children)&&console.warn("The global style component ".concat(a," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&i.some(function(e){return "string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.styleSheet.server&&u(r,e,t.styleSheet,n,t.stylis),o__default["default"].useLayoutEffect(function(){if(!t.styleSheet.server)return u(r,e,t.styleSheet,n,t.stylis),function(){return c.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,n,t.stylis]),null};function u(e,n,o,r,s){if(c.isStatic)c.renderStyles(e,b,o,s);else {var i=__assign(__assign({},n),{theme:I(n,r,l.defaultProps)});c.renderStyles(e,i,o,s);}}return o__default["default"].memo(l)}"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var St="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[St]||(window[St]=0),1===window[St]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[St]+=1);
|
|
5676
5676
|
|
|
5677
|
-
const MOBILE_W = 850;
|
|
5678
|
-
const MOBILE_WIDTH = `max-width: ${MOBILE_W}px`;
|
|
5677
|
+
const MOBILE_W$1 = 850;
|
|
5678
|
+
const MOBILE_WIDTH$1 = `max-width: ${MOBILE_W$1}px`;
|
|
5679
5679
|
|
|
5680
5680
|
/* eslint-disable react/prop-types */
|
|
5681
|
-
const Style$
|
|
5681
|
+
const Style$5 = dt.div`
|
|
5682
5682
|
display: flex;
|
|
5683
5683
|
cursor: pointer;
|
|
5684
5684
|
|
|
@@ -5722,7 +5722,7 @@ const Style$3 = dt.div`
|
|
|
5722
5722
|
justify-content: center;
|
|
5723
5723
|
}
|
|
5724
5724
|
|
|
5725
|
-
@media (${MOBILE_WIDTH}) {
|
|
5725
|
+
@media (${MOBILE_WIDTH$1}) {
|
|
5726
5726
|
.desktop {
|
|
5727
5727
|
display: none;
|
|
5728
5728
|
}
|
|
@@ -5741,7 +5741,7 @@ function UserIcon({
|
|
|
5741
5741
|
companyLogo
|
|
5742
5742
|
}) {
|
|
5743
5743
|
if (companyLogo) {
|
|
5744
|
-
return /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
5744
|
+
return /*#__PURE__*/jsxRuntime.jsx(Style$5, {
|
|
5745
5745
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
5746
5746
|
className: "flex",
|
|
5747
5747
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -5759,7 +5759,7 @@ function UserIcon({
|
|
|
5759
5759
|
})
|
|
5760
5760
|
});
|
|
5761
5761
|
}
|
|
5762
|
-
return /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
5762
|
+
return /*#__PURE__*/jsxRuntime.jsx(Style$5, {
|
|
5763
5763
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
5764
5764
|
className: "flex",
|
|
5765
5765
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -5776,7 +5776,7 @@ function UserIcon({
|
|
|
5776
5776
|
});
|
|
5777
5777
|
}
|
|
5778
5778
|
|
|
5779
|
-
const Style$
|
|
5779
|
+
const Style$4 = dt.div`
|
|
5780
5780
|
position: fixed;
|
|
5781
5781
|
background: rgba(0, 0, 0, 0.4);
|
|
5782
5782
|
width: 100dvw;
|
|
@@ -5976,7 +5976,7 @@ function MobileDrawer({
|
|
|
5976
5976
|
}
|
|
5977
5977
|
});
|
|
5978
5978
|
};
|
|
5979
|
-
return /*#__PURE__*/jsxRuntime.jsx(Style$
|
|
5979
|
+
return /*#__PURE__*/jsxRuntime.jsx(Style$4, {
|
|
5980
5980
|
className: formatClassname([!drawerOpened && 'closed', isUserDropdown && 'user-dropdown']),
|
|
5981
5981
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
5982
5982
|
className: "drawer",
|
|
@@ -6056,7 +6056,7 @@ const UserDropdownMenu = ({
|
|
|
6056
6056
|
|
|
6057
6057
|
// Add fallback for windowWidth
|
|
6058
6058
|
const actualWidth = windowWidth || (typeof window !== 'undefined' ? window.innerWidth : 1920);
|
|
6059
|
-
const isMobile = o.useMemo(() => actualWidth <= MOBILE_W, [actualWidth]);
|
|
6059
|
+
const isMobile = o.useMemo(() => actualWidth <= MOBILE_W$1, [actualWidth]);
|
|
6060
6060
|
const canViewUsers = checkPermission({
|
|
6061
6061
|
permission: 'users.canView',
|
|
6062
6062
|
permissions: user?.role?.permissions
|
|
@@ -6531,7 +6531,7 @@ function Notifications({
|
|
|
6531
6531
|
});
|
|
6532
6532
|
}
|
|
6533
6533
|
|
|
6534
|
-
var Style$
|
|
6534
|
+
var Style$3 = dt.div`
|
|
6535
6535
|
&.popup {
|
|
6536
6536
|
h2 {
|
|
6537
6537
|
margin-bottom: 8px;
|
|
@@ -6556,7 +6556,7 @@ var Style$1 = dt.div`
|
|
|
6556
6556
|
}
|
|
6557
6557
|
`;
|
|
6558
6558
|
|
|
6559
|
-
const Style = dt.div`
|
|
6559
|
+
const Style$2 = dt.div`
|
|
6560
6560
|
.ant-btn {
|
|
6561
6561
|
border-radius: 100px 100px 100px 0;
|
|
6562
6562
|
padding: 10px;
|
|
@@ -6566,7 +6566,7 @@ const Style = dt.div`
|
|
|
6566
6566
|
font-weight: 400;
|
|
6567
6567
|
width: 100%;
|
|
6568
6568
|
|
|
6569
|
-
@media (${MOBILE_WIDTH}) {
|
|
6569
|
+
@media (${MOBILE_WIDTH$1}) {
|
|
6570
6570
|
padding: 0.8rem 2.625rem;
|
|
6571
6571
|
}
|
|
6572
6572
|
|
|
@@ -6615,7 +6615,7 @@ const BorderedButton = ({
|
|
|
6615
6615
|
children,
|
|
6616
6616
|
...props
|
|
6617
6617
|
}) => {
|
|
6618
|
-
return /*#__PURE__*/jsxRuntime.jsx(Style, {
|
|
6618
|
+
return /*#__PURE__*/jsxRuntime.jsx(Style$2, {
|
|
6619
6619
|
className: "d-btn-cont",
|
|
6620
6620
|
children: /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
|
|
6621
6621
|
...props,
|
|
@@ -6665,7 +6665,7 @@ function LoginPopup({
|
|
|
6665
6665
|
open: true,
|
|
6666
6666
|
footer: null,
|
|
6667
6667
|
closable: false,
|
|
6668
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(Style$
|
|
6668
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(Style$3, {
|
|
6669
6669
|
className: "popup",
|
|
6670
6670
|
children: [/*#__PURE__*/jsxRuntime.jsx("h2", {
|
|
6671
6671
|
children: t('Log back in')
|
|
@@ -7289,4 +7289,1077 @@ function AppLayout({
|
|
|
7289
7289
|
});
|
|
7290
7290
|
}
|
|
7291
7291
|
|
|
7292
|
+
const MOBILE_W = 850;
|
|
7293
|
+
const TABLET_W = 1280;
|
|
7294
|
+
|
|
7295
|
+
const MOBILE_WIDTH = `max-width: ${MOBILE_W}px`;
|
|
7296
|
+
const TABLET_WIDTH = `max-width: ${TABLET_W}px`;
|
|
7297
|
+
|
|
7298
|
+
// Global styles for portaled elements (dropdowns, modals, etc.)
|
|
7299
|
+
ft`
|
|
7300
|
+
.language-select-popup {
|
|
7301
|
+
.ant-select-dropdown {
|
|
7302
|
+
padding: 4px;
|
|
7303
|
+
background: #ffffff;
|
|
7304
|
+
border-radius: 8px;
|
|
7305
|
+
box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08),
|
|
7306
|
+
0px 4px 6px -2px rgba(16, 24, 40, 0.03);
|
|
7307
|
+
border: none !important;
|
|
7308
|
+
}
|
|
7309
|
+
|
|
7310
|
+
.ant-select-item {
|
|
7311
|
+
border-radius: 6px;
|
|
7312
|
+
padding: 8px 12px;
|
|
7313
|
+
min-height: 40px;
|
|
7314
|
+
transition: all 0.2s ease;
|
|
7315
|
+
|
|
7316
|
+
&:hover {
|
|
7317
|
+
background-color: #265a80;
|
|
7318
|
+
|
|
7319
|
+
.language-option span {
|
|
7320
|
+
color: #ffffff;
|
|
7321
|
+
}
|
|
7322
|
+
}
|
|
7323
|
+
|
|
7324
|
+
&.ant-select-item-option-selected {
|
|
7325
|
+
background-color: #265a80;
|
|
7326
|
+
color: #ffffff;
|
|
7327
|
+
|
|
7328
|
+
.language-option span {
|
|
7329
|
+
color: #ffffff;
|
|
7330
|
+
}
|
|
7331
|
+
}
|
|
7332
|
+
|
|
7333
|
+
.language-option {
|
|
7334
|
+
display: flex;
|
|
7335
|
+
align-items: center;
|
|
7336
|
+
gap: 8px;
|
|
7337
|
+
|
|
7338
|
+
.flag-icon {
|
|
7339
|
+
width: 20px;
|
|
7340
|
+
height: 14px;
|
|
7341
|
+
border-radius: 2px;
|
|
7342
|
+
}
|
|
7343
|
+
|
|
7344
|
+
span {
|
|
7345
|
+
font-size: 14px;
|
|
7346
|
+
font-weight: 500;
|
|
7347
|
+
color: #344054;
|
|
7348
|
+
}
|
|
7349
|
+
}
|
|
7350
|
+
}
|
|
7351
|
+
}
|
|
7352
|
+
`;
|
|
7353
|
+
const style = dt.div`
|
|
7354
|
+
font-family: Outfit;
|
|
7355
|
+
|
|
7356
|
+
.btns {
|
|
7357
|
+
display: flex;
|
|
7358
|
+
gap: 12px;
|
|
7359
|
+
}
|
|
7360
|
+
|
|
7361
|
+
.d-container {
|
|
7362
|
+
width: 80vw;
|
|
7363
|
+
margin-left: auto;
|
|
7364
|
+
margin-right: auto;
|
|
7365
|
+
|
|
7366
|
+
@media (max-width: 1440px) {
|
|
7367
|
+
width: 85vw;
|
|
7368
|
+
}
|
|
7369
|
+
|
|
7370
|
+
@media (${TABLET_WIDTH}) {
|
|
7371
|
+
width: calc(100vw - 4.6rem);
|
|
7372
|
+
}
|
|
7373
|
+
}
|
|
7374
|
+
|
|
7375
|
+
.flex-c {
|
|
7376
|
+
display: flex;
|
|
7377
|
+
flex-direction: column;
|
|
7378
|
+
}
|
|
7379
|
+
|
|
7380
|
+
.jus-c {
|
|
7381
|
+
justify-content: center;
|
|
7382
|
+
}
|
|
7383
|
+
|
|
7384
|
+
.d-navbar {
|
|
7385
|
+
box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
|
|
7386
|
+
position: fixed;
|
|
7387
|
+
top: 0;
|
|
7388
|
+
left: 0;
|
|
7389
|
+
right: 0;
|
|
7390
|
+
background-color: white;
|
|
7391
|
+
z-index: 1000;
|
|
7392
|
+
width: 100%;
|
|
7393
|
+
height: 80px;
|
|
7394
|
+
display: flex;
|
|
7395
|
+
align-items: center;
|
|
7396
|
+
|
|
7397
|
+
@media (${TABLET_WIDTH}) {
|
|
7398
|
+
height: 72px;
|
|
7399
|
+
}
|
|
7400
|
+
|
|
7401
|
+
@media (${MOBILE_WIDTH}) {
|
|
7402
|
+
height: 64px;
|
|
7403
|
+
}
|
|
7404
|
+
|
|
7405
|
+
.main-cont {
|
|
7406
|
+
display: flex;
|
|
7407
|
+
align-items: center;
|
|
7408
|
+
justify-content: space-between;
|
|
7409
|
+
width: 100%;
|
|
7410
|
+
height: 100%;
|
|
7411
|
+
padding: 0 80px;
|
|
7412
|
+
|
|
7413
|
+
@media (max-width: 1200px) {
|
|
7414
|
+
padding: 0 32px;
|
|
7415
|
+
}
|
|
7416
|
+
|
|
7417
|
+
@media (${TABLET_WIDTH}) {
|
|
7418
|
+
padding: 0 24px;
|
|
7419
|
+
}
|
|
7420
|
+
|
|
7421
|
+
@media (${MOBILE_WIDTH}) {
|
|
7422
|
+
padding: 0 16px;
|
|
7423
|
+
}
|
|
7424
|
+
|
|
7425
|
+
.left {
|
|
7426
|
+
display: flex;
|
|
7427
|
+
align-items: center;
|
|
7428
|
+
height: 100%;
|
|
7429
|
+
|
|
7430
|
+
.navbar-logo {
|
|
7431
|
+
cursor: pointer;
|
|
7432
|
+
height: 30px;
|
|
7433
|
+
width: auto;
|
|
7434
|
+
object-fit: contain;
|
|
7435
|
+
|
|
7436
|
+
@media (${MOBILE_WIDTH}) {
|
|
7437
|
+
height: 32px;
|
|
7438
|
+
}
|
|
7439
|
+
}
|
|
7440
|
+
|
|
7441
|
+
img {
|
|
7442
|
+
cursor: pointer;
|
|
7443
|
+
height: 40px;
|
|
7444
|
+
width: auto;
|
|
7445
|
+
object-fit: contain;
|
|
7446
|
+
|
|
7447
|
+
@media (${MOBILE_WIDTH}) {
|
|
7448
|
+
height: 32px;
|
|
7449
|
+
}
|
|
7450
|
+
}
|
|
7451
|
+
}
|
|
7452
|
+
|
|
7453
|
+
.right {
|
|
7454
|
+
display: flex;
|
|
7455
|
+
gap: 1rem;
|
|
7456
|
+
align-items: center;
|
|
7457
|
+
|
|
7458
|
+
.language-select {
|
|
7459
|
+
min-width: 100px;
|
|
7460
|
+
|
|
7461
|
+
.ant-select-selector {
|
|
7462
|
+
padding: 8px 12px !important;
|
|
7463
|
+
height: auto !important;
|
|
7464
|
+
border: none !important;
|
|
7465
|
+
|
|
7466
|
+
.ant-select-selection-item {
|
|
7467
|
+
padding: 0 !important;
|
|
7468
|
+
line-height: none !important;
|
|
7469
|
+
&:hover{
|
|
7470
|
+
background-color: transparent !important;
|
|
7471
|
+
border: none !important;
|
|
7472
|
+
}
|
|
7473
|
+
}
|
|
7474
|
+
}
|
|
7475
|
+
|
|
7476
|
+
.ant-select-arrow {
|
|
7477
|
+
color: #667085;
|
|
7478
|
+
display: flex;
|
|
7479
|
+
align-items: center;
|
|
7480
|
+
height: 80%;
|
|
7481
|
+
}
|
|
7482
|
+
}
|
|
7483
|
+
|
|
7484
|
+
.language-option {
|
|
7485
|
+
display: flex;
|
|
7486
|
+
align-items: center;
|
|
7487
|
+
gap: 8px;
|
|
7488
|
+
|
|
7489
|
+
.flag-icon {
|
|
7490
|
+
width: 20px;
|
|
7491
|
+
height: 15px;
|
|
7492
|
+
object-fit: cover;
|
|
7493
|
+
border-radius: 2px;
|
|
7494
|
+
}
|
|
7495
|
+
|
|
7496
|
+
span {
|
|
7497
|
+
font-size: 14px;
|
|
7498
|
+
font-weight: 500;
|
|
7499
|
+
color: #344054;
|
|
7500
|
+
}
|
|
7501
|
+
}
|
|
7502
|
+
|
|
7503
|
+
.ant-btn {
|
|
7504
|
+
font-size: 14px;
|
|
7505
|
+
padding: 6px 0;
|
|
7506
|
+
text-align: center;
|
|
7507
|
+
width: 70px;
|
|
7508
|
+
|
|
7509
|
+
@media (${MOBILE_WIDTH}) {
|
|
7510
|
+
padding: 3px 0;
|
|
7511
|
+
}
|
|
7512
|
+
}
|
|
7513
|
+
|
|
7514
|
+
@media (max-width: 1070px) {
|
|
7515
|
+
gap: 1rem;
|
|
7516
|
+
}
|
|
7517
|
+
}
|
|
7518
|
+
}
|
|
7519
|
+
}
|
|
7520
|
+
|
|
7521
|
+
&.bordered {
|
|
7522
|
+
.d-navbar {
|
|
7523
|
+
position: relative;
|
|
7524
|
+
box-shadow: unset;
|
|
7525
|
+
border-bottom: 1px solid var(--base-gray-40);
|
|
7526
|
+
}
|
|
7527
|
+
}
|
|
7528
|
+
|
|
7529
|
+
.tazama-extra {
|
|
7530
|
+
&.mobile {
|
|
7531
|
+
display: none;
|
|
7532
|
+
}
|
|
7533
|
+
|
|
7534
|
+
@media (${MOBILE_WIDTH}) {
|
|
7535
|
+
&.mobile {
|
|
7536
|
+
display: flex;
|
|
7537
|
+
}
|
|
7538
|
+
|
|
7539
|
+
&.desktop {
|
|
7540
|
+
display: none;
|
|
7541
|
+
}
|
|
7542
|
+
}
|
|
7543
|
+
|
|
7544
|
+
.nav-extra {
|
|
7545
|
+
position: fixed;
|
|
7546
|
+
top: 0;
|
|
7547
|
+
left: 0;
|
|
7548
|
+
height: 100dvh;
|
|
7549
|
+
width: 100%;
|
|
7550
|
+
background: white;
|
|
7551
|
+
margin-left: -100%;
|
|
7552
|
+
transition: 0.4s margin-left;
|
|
7553
|
+
|
|
7554
|
+
&.toggled {
|
|
7555
|
+
margin-left: 0;
|
|
7556
|
+
}
|
|
7557
|
+
}
|
|
7558
|
+
}
|
|
7559
|
+
`;
|
|
7560
|
+
|
|
7561
|
+
const languages = [{
|
|
7562
|
+
value: 'en',
|
|
7563
|
+
label: '🇬🇧 EN'
|
|
7564
|
+
}, {
|
|
7565
|
+
value: 'fr',
|
|
7566
|
+
label: '🇫🇷 FR'
|
|
7567
|
+
}, {
|
|
7568
|
+
value: 'sp',
|
|
7569
|
+
label: '🇪🇸 ES'
|
|
7570
|
+
}];
|
|
7571
|
+
|
|
7572
|
+
const Style$1 = dt.div`
|
|
7573
|
+
display: flex;
|
|
7574
|
+
flex-direction: column;
|
|
7575
|
+
justify-content: center;
|
|
7576
|
+
position: relative;
|
|
7577
|
+
|
|
7578
|
+
.flex-r {
|
|
7579
|
+
display: flex;
|
|
7580
|
+
}
|
|
7581
|
+
|
|
7582
|
+
.flex-c {
|
|
7583
|
+
display: flex;
|
|
7584
|
+
flex-direction: column;
|
|
7585
|
+
|
|
7586
|
+
img {
|
|
7587
|
+
border-radius: 50%;
|
|
7588
|
+
margin-top: -2px;
|
|
7589
|
+
}
|
|
7590
|
+
}
|
|
7591
|
+
|
|
7592
|
+
.justify-center {
|
|
7593
|
+
justify-content: center;
|
|
7594
|
+
}
|
|
7595
|
+
|
|
7596
|
+
.select-navbar {
|
|
7597
|
+
padding: 0 .75rem;
|
|
7598
|
+
|
|
7599
|
+
div {
|
|
7600
|
+
width: 4.625rem;
|
|
7601
|
+
user-select: none;
|
|
7602
|
+
font-size: .875rem;
|
|
7603
|
+
font-weight: 500;
|
|
7604
|
+
text-align: center;
|
|
7605
|
+
color: #193E61;
|
|
7606
|
+
cursor: pointer;
|
|
7607
|
+
}
|
|
7608
|
+
|
|
7609
|
+
.country-cont {
|
|
7610
|
+
justify-content: center;
|
|
7611
|
+
gap: 0.6rem;
|
|
7612
|
+
|
|
7613
|
+
.flex-c {
|
|
7614
|
+
width: fit-content;
|
|
7615
|
+
}
|
|
7616
|
+
|
|
7617
|
+
img {
|
|
7618
|
+
width: 18px;
|
|
7619
|
+
height: 18px;
|
|
7620
|
+
}
|
|
7621
|
+
|
|
7622
|
+
span {
|
|
7623
|
+
color: $gray-100;
|
|
7624
|
+
font-size: 14px;
|
|
7625
|
+
}
|
|
7626
|
+
}
|
|
7627
|
+
|
|
7628
|
+
&.bordered {
|
|
7629
|
+
.country-cont {
|
|
7630
|
+
img {
|
|
7631
|
+
width: 14px;
|
|
7632
|
+
height: 14px;
|
|
7633
|
+
border-radius: 100%;
|
|
7634
|
+
}
|
|
7635
|
+
}
|
|
7636
|
+
}
|
|
7637
|
+
}
|
|
7638
|
+
|
|
7639
|
+
.select-options {
|
|
7640
|
+
position: absolute;
|
|
7641
|
+
width: 100%;
|
|
7642
|
+
top: 55px;
|
|
7643
|
+
left: 0;
|
|
7644
|
+
background-color: white;
|
|
7645
|
+
border-radius: 8px;
|
|
7646
|
+
box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
|
|
7647
|
+
padding: .75rem 0;
|
|
7648
|
+
z-index: 100;
|
|
7649
|
+
animation: .3s fade forwards;
|
|
7650
|
+
|
|
7651
|
+
&.not-toggled {
|
|
7652
|
+
animation: .3s fadeOut forwards;
|
|
7653
|
+
}
|
|
7654
|
+
|
|
7655
|
+
@media (${TABLET_WIDTH}) {
|
|
7656
|
+
top: 50px;
|
|
7657
|
+
}
|
|
7658
|
+
|
|
7659
|
+
@media (${MOBILE_WIDTH}) {
|
|
7660
|
+
top: 3.5rem;
|
|
7661
|
+
}
|
|
7662
|
+
|
|
7663
|
+
.value {
|
|
7664
|
+
padding: .75rem 0rem;
|
|
7665
|
+
margin: 0 .75rem;
|
|
7666
|
+
text-align: center;
|
|
7667
|
+
font-size: 1rem;
|
|
7668
|
+
font-weight: 500;
|
|
7669
|
+
cursor: pointer;
|
|
7670
|
+
user-select: none;
|
|
7671
|
+
|
|
7672
|
+
&.active-value {
|
|
7673
|
+
background-color: #265A80;
|
|
7674
|
+
color: white;
|
|
7675
|
+
}
|
|
7676
|
+
}
|
|
7677
|
+
}
|
|
7678
|
+
|
|
7679
|
+
@keyframes fade {
|
|
7680
|
+
0% { opacity: 0; }
|
|
7681
|
+
100% { opacity: 1; }
|
|
7682
|
+
}
|
|
7683
|
+
|
|
7684
|
+
@keyframes fadeOut {
|
|
7685
|
+
0% { opacity: 1; }
|
|
7686
|
+
100% { opacity: 0; }
|
|
7687
|
+
}
|
|
7688
|
+
`;
|
|
7689
|
+
|
|
7690
|
+
/* eslint-disable react/prop-types */
|
|
7691
|
+
function useOutsideAlerter({
|
|
7692
|
+
ref,
|
|
7693
|
+
secondRef,
|
|
7694
|
+
onOutside = () => {}
|
|
7695
|
+
}) {
|
|
7696
|
+
o.useEffect(() => {
|
|
7697
|
+
function handleClickOutside(event) {
|
|
7698
|
+
if (ref.current && !ref.current.contains(event.target) && secondRef.current && !secondRef.current.contains(event.target)) {
|
|
7699
|
+
onOutside();
|
|
7700
|
+
}
|
|
7701
|
+
}
|
|
7702
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
7703
|
+
return () => {
|
|
7704
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
7705
|
+
};
|
|
7706
|
+
}, [ref]);
|
|
7707
|
+
}
|
|
7708
|
+
const Options = ({
|
|
7709
|
+
values = [],
|
|
7710
|
+
onChange = () => {},
|
|
7711
|
+
value = '',
|
|
7712
|
+
setToggled = () => {},
|
|
7713
|
+
toggled = false,
|
|
7714
|
+
secondRef = {}
|
|
7715
|
+
}) => {
|
|
7716
|
+
const ref = o.useRef();
|
|
7717
|
+
useOutsideAlerter({
|
|
7718
|
+
ref,
|
|
7719
|
+
secondRef,
|
|
7720
|
+
onOutside: () => setToggled(false)
|
|
7721
|
+
});
|
|
7722
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7723
|
+
className: formatClassname(['select-options', !toggled && 'not-toggled']),
|
|
7724
|
+
ref: ref,
|
|
7725
|
+
children: values.map(val => /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7726
|
+
className: formatClassname(['value', val.value === value && 'active-value']),
|
|
7727
|
+
onClick: () => onChange(val.value),
|
|
7728
|
+
children: val.label
|
|
7729
|
+
}, val.value))
|
|
7730
|
+
});
|
|
7731
|
+
};
|
|
7732
|
+
let timeout = null;
|
|
7733
|
+
const Select = ({
|
|
7734
|
+
bordered,
|
|
7735
|
+
values = [],
|
|
7736
|
+
defaultValue = '',
|
|
7737
|
+
onChange = () => {}
|
|
7738
|
+
}) => {
|
|
7739
|
+
const ref = o.useRef();
|
|
7740
|
+
const [value, setValue] = o.useState(defaultValue);
|
|
7741
|
+
const [toggled, setToggled] = o.useState(false);
|
|
7742
|
+
const [visible, setVisible] = o.useState(false);
|
|
7743
|
+
o.useEffect(() => {
|
|
7744
|
+
setValue(defaultValue);
|
|
7745
|
+
}, [defaultValue]);
|
|
7746
|
+
const valueLabel = o.useMemo(() => {
|
|
7747
|
+
if (value === 'en') {
|
|
7748
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7749
|
+
className: "country-cont flex-r",
|
|
7750
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7751
|
+
className: "flex-c jus-c",
|
|
7752
|
+
children: /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
7753
|
+
src: "/assets/images/countries/gb.png",
|
|
7754
|
+
alt: ""
|
|
7755
|
+
})
|
|
7756
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7757
|
+
className: "flex-c jus-c",
|
|
7758
|
+
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
7759
|
+
children: "EN"
|
|
7760
|
+
})
|
|
7761
|
+
})]
|
|
7762
|
+
});
|
|
7763
|
+
}
|
|
7764
|
+
if (value === 'sp') {
|
|
7765
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7766
|
+
className: "country-cont flex-r",
|
|
7767
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7768
|
+
className: "flex-c jus-c",
|
|
7769
|
+
children: /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
7770
|
+
src: "/assets/images/countries/sp.png",
|
|
7771
|
+
alt: ""
|
|
7772
|
+
})
|
|
7773
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7774
|
+
className: "flex-c jus-c",
|
|
7775
|
+
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
7776
|
+
children: "ES"
|
|
7777
|
+
})
|
|
7778
|
+
})]
|
|
7779
|
+
});
|
|
7780
|
+
}
|
|
7781
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7782
|
+
className: "country-cont flex-r",
|
|
7783
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7784
|
+
className: "flex-c jus-c",
|
|
7785
|
+
children: /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
7786
|
+
src: "/assets/images/countries/fr.png",
|
|
7787
|
+
alt: ""
|
|
7788
|
+
})
|
|
7789
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7790
|
+
className: "flex-c jus-c",
|
|
7791
|
+
children: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
7792
|
+
children: "FR"
|
|
7793
|
+
})
|
|
7794
|
+
})]
|
|
7795
|
+
});
|
|
7796
|
+
}, [values, value]);
|
|
7797
|
+
o.useEffect(() => {
|
|
7798
|
+
if (toggled) {
|
|
7799
|
+
setVisible(true);
|
|
7800
|
+
} else {
|
|
7801
|
+
timeout = setTimeout(() => setVisible(false), 300);
|
|
7802
|
+
}
|
|
7803
|
+
return () => {
|
|
7804
|
+
if (timeout) {
|
|
7805
|
+
clearTimeout(timeout);
|
|
7806
|
+
timeout = null;
|
|
7807
|
+
}
|
|
7808
|
+
};
|
|
7809
|
+
}, [toggled]);
|
|
7810
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Style$1, {
|
|
7811
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7812
|
+
className: formatClassname(['select-navbar', bordered && 'bordered']),
|
|
7813
|
+
onClick: () => setToggled(p => !p),
|
|
7814
|
+
ref: ref,
|
|
7815
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7816
|
+
children: valueLabel
|
|
7817
|
+
})
|
|
7818
|
+
}), visible && /*#__PURE__*/jsxRuntime.jsx(Options, {
|
|
7819
|
+
value: value,
|
|
7820
|
+
secondRef: ref,
|
|
7821
|
+
values: values,
|
|
7822
|
+
toggled: toggled,
|
|
7823
|
+
onChange: val => {
|
|
7824
|
+
setValue(val);
|
|
7825
|
+
setToggled(false);
|
|
7826
|
+
onChange(val);
|
|
7827
|
+
},
|
|
7828
|
+
setToggled: setToggled
|
|
7829
|
+
})]
|
|
7830
|
+
});
|
|
7831
|
+
};
|
|
7832
|
+
|
|
7833
|
+
const AuthNavbar = ({
|
|
7834
|
+
logo,
|
|
7835
|
+
appName = "default",
|
|
7836
|
+
showLanguageSelector = true,
|
|
7837
|
+
updateLanguage,
|
|
7838
|
+
languageConfig = [{
|
|
7839
|
+
value: "en",
|
|
7840
|
+
label: "EN",
|
|
7841
|
+
flagUrl: "/assets/images/countries/gb.png"
|
|
7842
|
+
}, {
|
|
7843
|
+
value: "fr",
|
|
7844
|
+
label: "FR",
|
|
7845
|
+
flagUrl: "/assets/images/countries/fr.png"
|
|
7846
|
+
}, {
|
|
7847
|
+
value: "sp",
|
|
7848
|
+
label: "ES",
|
|
7849
|
+
flagUrl: "/assets/images/countries/sp.png"
|
|
7850
|
+
}],
|
|
7851
|
+
showBack = false,
|
|
7852
|
+
backLabel = "Back",
|
|
7853
|
+
onBack,
|
|
7854
|
+
defaultValue = "en",
|
|
7855
|
+
onClose
|
|
7856
|
+
}) => {
|
|
7857
|
+
return /*#__PURE__*/jsxRuntime.jsx(style, {
|
|
7858
|
+
className: formatClassname([typeof onClose === 'function' && 'bordered']),
|
|
7859
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7860
|
+
className: "d-navbar flex-c jus-c",
|
|
7861
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7862
|
+
className: "main-cont d-container",
|
|
7863
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7864
|
+
className: "left flex-c jus-c",
|
|
7865
|
+
children: /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
7866
|
+
src: logo,
|
|
7867
|
+
alt: appName
|
|
7868
|
+
})
|
|
7869
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7870
|
+
className: "right",
|
|
7871
|
+
children: [typeof onClose === 'function' ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7872
|
+
className: "cursor-pointer",
|
|
7873
|
+
onClick: onClose,
|
|
7874
|
+
children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
|
|
7875
|
+
name: "Close",
|
|
7876
|
+
width: 10,
|
|
7877
|
+
height: 10
|
|
7878
|
+
})
|
|
7879
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
7880
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Select, {
|
|
7881
|
+
values: languages,
|
|
7882
|
+
defaultValue: defaultValue,
|
|
7883
|
+
onChange: val => {
|
|
7884
|
+
updateLanguage(val);
|
|
7885
|
+
}
|
|
7886
|
+
})
|
|
7887
|
+
}), showBack ? /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
|
|
7888
|
+
className: "cursor-pointer",
|
|
7889
|
+
onClick: onBack,
|
|
7890
|
+
children: backLabel
|
|
7891
|
+
}) : null]
|
|
7892
|
+
})]
|
|
7893
|
+
})
|
|
7894
|
+
})
|
|
7895
|
+
});
|
|
7896
|
+
};
|
|
7897
|
+
|
|
7898
|
+
const Style = dt.div`
|
|
7899
|
+
.errors-cont {
|
|
7900
|
+
margin-top: var(--size-lg);
|
|
7901
|
+
|
|
7902
|
+
&.no-pt {
|
|
7903
|
+
margin-top: 0px;
|
|
7904
|
+
}
|
|
7905
|
+
}
|
|
7906
|
+
|
|
7907
|
+
&.popup {
|
|
7908
|
+
h2 {
|
|
7909
|
+
font-size: 36px;
|
|
7910
|
+
line-height: 44px;
|
|
7911
|
+
color: #101828;
|
|
7912
|
+
margin-bottom: 8px;
|
|
7913
|
+
}
|
|
7914
|
+
|
|
7915
|
+
p {
|
|
7916
|
+
color: #667085;
|
|
7917
|
+
font-size: var(--font-size-lg);
|
|
7918
|
+
line-height: var(--size-lg);
|
|
7919
|
+
margin-bottom: 0;
|
|
7920
|
+
}
|
|
7921
|
+
}
|
|
7922
|
+
|
|
7923
|
+
display: flex;
|
|
7924
|
+
flex-direction: column;
|
|
7925
|
+
font-family: Outfit;
|
|
7926
|
+
|
|
7927
|
+
@media(${TABLET_WIDTH}) {
|
|
7928
|
+
max-height: 100dvh;
|
|
7929
|
+
overflow-y: auto;
|
|
7930
|
+
}
|
|
7931
|
+
|
|
7932
|
+
.category-understood {
|
|
7933
|
+
margin-top: -4px;
|
|
7934
|
+
background: #F9FAFB;
|
|
7935
|
+
border-radius: 8px;
|
|
7936
|
+
padding: 12px;
|
|
7937
|
+
|
|
7938
|
+
svg {
|
|
7939
|
+
margin-bottom: 12px;
|
|
7940
|
+
}
|
|
7941
|
+
|
|
7942
|
+
.paragraph {
|
|
7943
|
+
display: flex;
|
|
7944
|
+
gap: 13px;
|
|
7945
|
+
|
|
7946
|
+
svg {
|
|
7947
|
+
color: #F79009;
|
|
7948
|
+
}
|
|
7949
|
+
}
|
|
7950
|
+
|
|
7951
|
+
p {
|
|
7952
|
+
font-size: 14px;
|
|
7953
|
+
line-height: 20px;
|
|
7954
|
+
color: #6C737F;
|
|
7955
|
+
font-weight: 400;
|
|
7956
|
+
margin-bottom: 8px;
|
|
7957
|
+
text-align: left;
|
|
7958
|
+
margin-bottom: 8px;
|
|
7959
|
+
}
|
|
7960
|
+
|
|
7961
|
+
.btn {
|
|
7962
|
+
padding: 0;
|
|
7963
|
+
|
|
7964
|
+
span {
|
|
7965
|
+
color: var(--mmt-primary-70);
|
|
7966
|
+
font-size: 14px;
|
|
7967
|
+
font-weight: 500;
|
|
7968
|
+
margin-left: 30px;
|
|
7969
|
+
cursor: pointer;
|
|
7970
|
+
}
|
|
7971
|
+
}
|
|
7972
|
+
}
|
|
7973
|
+
|
|
7974
|
+
.main-cont {
|
|
7975
|
+
flex: 1;
|
|
7976
|
+
display: flex;
|
|
7977
|
+
flex-direction: row;
|
|
7978
|
+
justify-content: center;
|
|
7979
|
+
|
|
7980
|
+
@media (${TABLET_WIDTH}) {
|
|
7981
|
+
flex-direction: column;
|
|
7982
|
+
justify-content: flex-start;
|
|
7983
|
+
gap: 48px;
|
|
7984
|
+
}
|
|
7985
|
+
|
|
7986
|
+
.dots {
|
|
7987
|
+
display: flex;
|
|
7988
|
+
gap: 8px;
|
|
7989
|
+
margin-top: 32px;
|
|
7990
|
+
|
|
7991
|
+
@media (${TABLET_WIDTH}) {
|
|
7992
|
+
justify-content: center;
|
|
7993
|
+
}
|
|
7994
|
+
|
|
7995
|
+
.dot {
|
|
7996
|
+
width: 12px;
|
|
7997
|
+
height: 12px;
|
|
7998
|
+
background: white;
|
|
7999
|
+
border-radius: 6px;
|
|
8000
|
+
transition: .4s width, .4s background;
|
|
8001
|
+
|
|
8002
|
+
&.active {
|
|
8003
|
+
width: 35px;
|
|
8004
|
+
background: var(--mmt-primary-60);
|
|
8005
|
+
}
|
|
8006
|
+
}
|
|
8007
|
+
}
|
|
8008
|
+
|
|
8009
|
+
.d-cont {
|
|
8010
|
+
flex: 1;
|
|
8011
|
+
display: flex;
|
|
8012
|
+
flex-direction: column;
|
|
8013
|
+
|
|
8014
|
+
a {
|
|
8015
|
+
color: var(--mmt-primary-70);
|
|
8016
|
+
}
|
|
8017
|
+
|
|
8018
|
+
.main {
|
|
8019
|
+
flex: 1;
|
|
8020
|
+
width: 380px;
|
|
8021
|
+
display: flex;
|
|
8022
|
+
flex-direction: column;
|
|
8023
|
+
justify-content: center;
|
|
8024
|
+
margin-right: auto;
|
|
8025
|
+
|
|
8026
|
+
span {
|
|
8027
|
+
font-size: 14px;
|
|
8028
|
+
}
|
|
8029
|
+
|
|
8030
|
+
@media(${TABLET_WIDTH}) {
|
|
8031
|
+
width: 100%;
|
|
8032
|
+
margin-right: unset;
|
|
8033
|
+
padding: 0px 10px;
|
|
8034
|
+
}
|
|
8035
|
+
}
|
|
8036
|
+
|
|
8037
|
+
&.left {
|
|
8038
|
+
animation: .7s slideRight forwards;
|
|
8039
|
+
height: 100dvh;
|
|
8040
|
+
overflow-y: auto;
|
|
8041
|
+
padding: 6rem 0;
|
|
8042
|
+
padding-top: calc(6rem + 80px);
|
|
8043
|
+
|
|
8044
|
+
.left-logo img {
|
|
8045
|
+
height: 46px;
|
|
8046
|
+
margin-bottom: 40px;
|
|
8047
|
+
}
|
|
8048
|
+
|
|
8049
|
+
@media (${TABLET_WIDTH}) {
|
|
8050
|
+
padding-top: calc(72px + 3rem);
|
|
8051
|
+
padding-bottom: 3rem;
|
|
8052
|
+
padding-left: 2.3rem;
|
|
8053
|
+
padding-right: 2.3rem;
|
|
8054
|
+
width: 100%;
|
|
8055
|
+
}
|
|
8056
|
+
|
|
8057
|
+
@media (${MOBILE_WIDTH}) {
|
|
8058
|
+
padding-top: 8.12rem;
|
|
8059
|
+
padding-bottom: 3rem;
|
|
8060
|
+
}
|
|
8061
|
+
|
|
8062
|
+
.left-header {
|
|
8063
|
+
margin-bottom: 32px;
|
|
8064
|
+
|
|
8065
|
+
h2 {
|
|
8066
|
+
font-size: 36px;
|
|
8067
|
+
line-height: 44px;
|
|
8068
|
+
color: #101828;
|
|
8069
|
+
margin-bottom: 8px;
|
|
8070
|
+
}
|
|
8071
|
+
|
|
8072
|
+
p {
|
|
8073
|
+
color: #667085;
|
|
8074
|
+
font-size: var(--font-size-lg);
|
|
8075
|
+
line-height: var(--size-lg);
|
|
8076
|
+
margin-bottom: 0;
|
|
8077
|
+
}
|
|
8078
|
+
|
|
8079
|
+
img {
|
|
8080
|
+
margin-bottom: 32px;
|
|
8081
|
+
width: 136px;
|
|
8082
|
+
}
|
|
8083
|
+
}
|
|
8084
|
+
|
|
8085
|
+
.main {
|
|
8086
|
+
margin-left: auto;
|
|
8087
|
+
margin-right: auto;
|
|
8088
|
+
|
|
8089
|
+
@media(${TABLET_WIDTH}) {
|
|
8090
|
+
width: unset;
|
|
8091
|
+
margin-left: unset;
|
|
8092
|
+
margin-right: unset;
|
|
8093
|
+
padding: 0px;
|
|
8094
|
+
}
|
|
8095
|
+
}
|
|
8096
|
+
|
|
8097
|
+
@media(${TABLET_WIDTH}) {
|
|
8098
|
+
height: unset;
|
|
8099
|
+
overflow-y: hidden;
|
|
8100
|
+
}
|
|
8101
|
+
}
|
|
8102
|
+
|
|
8103
|
+
@media (${TABLET_WIDTH}) {
|
|
8104
|
+
margin-left: auto;
|
|
8105
|
+
margin-right: auto;
|
|
8106
|
+
width: 100%;
|
|
8107
|
+
flex: unset;
|
|
8108
|
+
}
|
|
8109
|
+
|
|
8110
|
+
@media (max-width: 575px) {
|
|
8111
|
+
.ant-form-item {
|
|
8112
|
+
flex-direction: row !important;
|
|
8113
|
+
}
|
|
8114
|
+
}
|
|
8115
|
+
|
|
8116
|
+
@media (max-width: 500px) {
|
|
8117
|
+
width: 100%;
|
|
8118
|
+
}
|
|
8119
|
+
|
|
8120
|
+
&.right {
|
|
8121
|
+
animation: .7s slideLeft forwards;
|
|
8122
|
+
background-size: contain;
|
|
8123
|
+
display: flex;
|
|
8124
|
+
flex-direction: column;
|
|
8125
|
+
justify-content: center;
|
|
8126
|
+
padding-top: 80px;
|
|
8127
|
+
|
|
8128
|
+
@media (${TABLET_WIDTH}) {
|
|
8129
|
+
padding-top: 72px;
|
|
8130
|
+
}
|
|
8131
|
+
|
|
8132
|
+
@media (${MOBILE_WIDTH}) {
|
|
8133
|
+
padding-top: 5.12rem;
|
|
8134
|
+
}
|
|
8135
|
+
|
|
8136
|
+
.right-img {
|
|
8137
|
+
flex: 1;
|
|
8138
|
+
background-position: center right;
|
|
8139
|
+
background-repeat: no-repeat;
|
|
8140
|
+
margin-left: 96px;
|
|
8141
|
+
background-size: contain;
|
|
8142
|
+
max-height: 700px;
|
|
8143
|
+
}
|
|
8144
|
+
|
|
8145
|
+
@media (${TABLET_WIDTH}) {
|
|
8146
|
+
display: none;
|
|
8147
|
+
}
|
|
8148
|
+
}
|
|
8149
|
+
|
|
8150
|
+
&.left {
|
|
8151
|
+
.ant-form-item-required {
|
|
8152
|
+
::before {
|
|
8153
|
+
content: unset;
|
|
8154
|
+
}
|
|
8155
|
+
}
|
|
8156
|
+
|
|
8157
|
+
.ant-input {
|
|
8158
|
+
padding: 10px 12px;
|
|
8159
|
+
font-size: 14px;
|
|
8160
|
+
font-weight: 400;
|
|
8161
|
+
border: 1px solid #E5E7EB;
|
|
8162
|
+
border-radius: 6px;
|
|
8163
|
+
}
|
|
8164
|
+
|
|
8165
|
+
.ant-checkbox-wrapper + .ant-checkbox-wrapper {
|
|
8166
|
+
margin-left: 0px;
|
|
8167
|
+
}
|
|
8168
|
+
|
|
8169
|
+
.ant-checkbox-wrapper {
|
|
8170
|
+
color: #344054;
|
|
8171
|
+
font-size: 14px;
|
|
8172
|
+
font-weight: 400;
|
|
8173
|
+
}
|
|
8174
|
+
|
|
8175
|
+
.ant-select-selector {
|
|
8176
|
+
padding: 4px 12px;
|
|
8177
|
+
border-radius: 6px;
|
|
8178
|
+
height: fit-content;
|
|
8179
|
+
font-size: 14px;
|
|
8180
|
+
border: 1px solid #E5E7EB;
|
|
8181
|
+
font-weight: 400;
|
|
8182
|
+
transition: 0s;
|
|
8183
|
+
|
|
8184
|
+
.ant-select-selection-item {
|
|
8185
|
+
transition: 0s;
|
|
8186
|
+
}
|
|
8187
|
+
|
|
8188
|
+
.ant-select-selection-search {
|
|
8189
|
+
display: flex;
|
|
8190
|
+
flex-direction: column;
|
|
8191
|
+
justify-content: center;
|
|
8192
|
+
}
|
|
8193
|
+
}
|
|
8194
|
+
|
|
8195
|
+
.ant-input-affix-wrapper {
|
|
8196
|
+
padding: 11px 14px;
|
|
8197
|
+
border: 2px solid #F2FAFF;
|
|
8198
|
+
border-radius: 8px;
|
|
8199
|
+
|
|
8200
|
+
.ant-input {
|
|
8201
|
+
padding: 0;
|
|
8202
|
+
border: unset;
|
|
8203
|
+
border-radius: unset;
|
|
8204
|
+
}
|
|
8205
|
+
|
|
8206
|
+
.ant-input-prefix {
|
|
8207
|
+
margin-right: 10px;
|
|
8208
|
+
color: #A4A4A4;
|
|
8209
|
+
}
|
|
8210
|
+
}
|
|
8211
|
+
|
|
8212
|
+
.ant-btn {
|
|
8213
|
+
&.ant-btn-primary {
|
|
8214
|
+
background-color: var(--color-primary) !important;
|
|
8215
|
+
border-color: var(--color-primary) !important;
|
|
8216
|
+
}
|
|
8217
|
+
}
|
|
8218
|
+
|
|
8219
|
+
.buttons {
|
|
8220
|
+
display: flex;
|
|
8221
|
+
flex-direction: column;
|
|
8222
|
+
margin-top: var(--size-lg);
|
|
8223
|
+
gap: 12px;
|
|
8224
|
+
|
|
8225
|
+
.d-btn-cont {
|
|
8226
|
+
flex: 1;
|
|
8227
|
+
}
|
|
8228
|
+
}
|
|
8229
|
+
|
|
8230
|
+
.bottom {
|
|
8231
|
+
margin-top: 10px;
|
|
8232
|
+
display: flex;
|
|
8233
|
+
flex-direction: column;
|
|
8234
|
+
gap: 4px;
|
|
8235
|
+
|
|
8236
|
+
p {
|
|
8237
|
+
color: #667085;
|
|
8238
|
+
font-size: 14px;
|
|
8239
|
+
line-height: 20px;
|
|
8240
|
+
margin-bottom: 0px;
|
|
8241
|
+
}
|
|
8242
|
+
}
|
|
8243
|
+
|
|
8244
|
+
form {
|
|
8245
|
+
display: flex;
|
|
8246
|
+
flex-direction: column;
|
|
8247
|
+
gap: 10px;
|
|
8248
|
+
}
|
|
8249
|
+
|
|
8250
|
+
.ant-row.ant-form-item {
|
|
8251
|
+
margin-bottom: 0px;
|
|
8252
|
+
}
|
|
8253
|
+
|
|
8254
|
+
.ant-form-item-label {
|
|
8255
|
+
label {
|
|
8256
|
+
color: #1F2A37;
|
|
8257
|
+
font-size: 14px;
|
|
8258
|
+
font-weight: 500;
|
|
8259
|
+
line-height: 20px;
|
|
8260
|
+
}
|
|
8261
|
+
}
|
|
8262
|
+
|
|
8263
|
+
}
|
|
8264
|
+
}
|
|
8265
|
+
}
|
|
8266
|
+
|
|
8267
|
+
@keyframes slideLeft {
|
|
8268
|
+
0% {transform: translate(-10%, 0%); opacity: 0;}
|
|
8269
|
+
100% {transform: translate(0%, 0%); opacity: 1;}
|
|
8270
|
+
}
|
|
8271
|
+
|
|
8272
|
+
@keyframes slideRight {
|
|
8273
|
+
0% {transform: translate(10%, 0%); opacity: 0;}
|
|
8274
|
+
100% {transform: translate(0%, 0%); opacity: 1;}
|
|
8275
|
+
}
|
|
8276
|
+
|
|
8277
|
+
&.tif-layout {
|
|
8278
|
+
.app-logo {
|
|
8279
|
+
width: 230px !important;
|
|
8280
|
+
}
|
|
8281
|
+
}
|
|
8282
|
+
|
|
8283
|
+
&.sbg-layout {
|
|
8284
|
+
.right-img {
|
|
8285
|
+
background-position: center !important;
|
|
8286
|
+
background-size: cover !important;
|
|
8287
|
+
background-image: url('/assets/sbg-images/sbg-bg.png') !important;
|
|
8288
|
+
max-height: 100% !important;
|
|
8289
|
+
margin-left: 0 !important;
|
|
8290
|
+
}
|
|
8291
|
+
}
|
|
8292
|
+
`;
|
|
8293
|
+
|
|
8294
|
+
const AuthLayout = ({
|
|
8295
|
+
children,
|
|
8296
|
+
StyleComponent,
|
|
8297
|
+
t = key => key,
|
|
8298
|
+
title = "Welcome Back",
|
|
8299
|
+
subTitle = "Please introduce yourself",
|
|
8300
|
+
logo,
|
|
8301
|
+
appName = "default",
|
|
8302
|
+
containerClassName = "",
|
|
8303
|
+
leftClassName = "",
|
|
8304
|
+
rightClassName = "",
|
|
8305
|
+
rightImgClassName = "",
|
|
8306
|
+
rightImageUrl,
|
|
8307
|
+
additionalContent,
|
|
8308
|
+
showTopHeader = true,
|
|
8309
|
+
showLanguageSelector = true,
|
|
8310
|
+
updateLanguage,
|
|
8311
|
+
showBack = false,
|
|
8312
|
+
onBack,
|
|
8313
|
+
backLabel = "Back",
|
|
8314
|
+
defaultValue = "en"
|
|
8315
|
+
}) => {
|
|
8316
|
+
formatClassname(["auth-layout", appName, containerClassName]);
|
|
8317
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
8318
|
+
children: [showTopHeader && /*#__PURE__*/jsxRuntime.jsx(AuthNavbar, {
|
|
8319
|
+
logo: logo,
|
|
8320
|
+
appName: appName,
|
|
8321
|
+
showLanguageSelector: showLanguageSelector,
|
|
8322
|
+
updateLanguage: updateLanguage,
|
|
8323
|
+
showBack: showBack,
|
|
8324
|
+
onBack: onBack,
|
|
8325
|
+
backLabel: backLabel,
|
|
8326
|
+
defaultValue: defaultValue
|
|
8327
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Style, {
|
|
8328
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
8329
|
+
className: "main-cont",
|
|
8330
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
8331
|
+
className: formatClassname(["d-cont left", leftClassName]),
|
|
8332
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
8333
|
+
className: "main",
|
|
8334
|
+
children: [logo && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
8335
|
+
className: "left-logo",
|
|
8336
|
+
children: /*#__PURE__*/jsxRuntime.jsx("img", {
|
|
8337
|
+
src: logo,
|
|
8338
|
+
alt: `${appName} logo`
|
|
8339
|
+
})
|
|
8340
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
8341
|
+
className: "left-header",
|
|
8342
|
+
children: [title && /*#__PURE__*/jsxRuntime.jsx("h2", {
|
|
8343
|
+
children: t(title)
|
|
8344
|
+
}), subTitle && /*#__PURE__*/jsxRuntime.jsx("p", {
|
|
8345
|
+
children: typeof subTitle === "string" ? t(subTitle) : subTitle
|
|
8346
|
+
})]
|
|
8347
|
+
}), children, additionalContent]
|
|
8348
|
+
})
|
|
8349
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
8350
|
+
className: formatClassname(["d-cont right", rightClassName]),
|
|
8351
|
+
style: rightImageUrl ? {
|
|
8352
|
+
backgroundImage: `url(${rightImageUrl})`,
|
|
8353
|
+
backgroundSize: "cover"
|
|
8354
|
+
} : {},
|
|
8355
|
+
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
8356
|
+
className: formatClassname(["right-img", rightImgClassName])
|
|
8357
|
+
})
|
|
8358
|
+
})]
|
|
8359
|
+
})
|
|
8360
|
+
})]
|
|
8361
|
+
});
|
|
8362
|
+
};
|
|
8363
|
+
|
|
7292
8364
|
exports.AppLayout = AppLayout;
|
|
8365
|
+
exports.AuthLayout = AuthLayout;
|