(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3189],{96172:function(e,t,n){"use strict";n.d(t,{a:function(){return m}});var i=n(87643),a=n(79346),r=n(17374),l=n(6961),o=n(50959),s=n(1985),d=n(6276),u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AuthContextCreateUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"nextUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"giftcardToken"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"referFriendId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"friendInvitationId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"upperFunnelSource"}},type:{kind:"NamedType",name:{kind:"Name",value:"UpperFunnelSourceEnum"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"upperFunnelJobToBeDone"}},type:{kind:"NamedType",name:{kind:"Name",value:"UpperFunnelJobToBeDoneEnum"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"upperFunnelUrlSource"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phoneCode"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"phoneNumber"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"firstName"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"lastName"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"newsLetterCheckbox"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"ObjectField",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}},{kind:"ObjectField",name:{kind:"Name",value:"nextUrl"},value:{kind:"Variable",name:{kind:"Name",value:"nextUrl"}}},{kind:"ObjectField",name:{kind:"Name",value:"giftcardToken"},value:{kind:"Variable",name:{kind:"Name",value:"giftcardToken"}}},{kind:"ObjectField",name:{kind:"Name",value:"referFriendId"},value:{kind:"Variable",name:{kind:"Name",value:"referFriendId"}}},{kind:"ObjectField",name:{kind:"Name",value:"friendInvitationId"},value:{kind:"Variable",name:{kind:"Name",value:"friendInvitationId"}}},{kind:"ObjectField",name:{kind:"Name",value:"upperFunnelSource"},value:{kind:"Variable",name:{kind:"Name",value:"upperFunnelSource"}}},{kind:"ObjectField",name:{kind:"Name",value:"upperFunnelJobToBeDone"},value:{kind:"Variable",name:{kind:"Name",value:"upperFunnelJobToBeDone"}}},{kind:"ObjectField",name:{kind:"Name",value:"upperFunnelUrlSource"},value:{kind:"Variable",name:{kind:"Name",value:"upperFunnelUrlSource"}}},{kind:"ObjectField",name:{kind:"Name",value:"phoneCode"},value:{kind:"Variable",name:{kind:"Name",value:"phoneCode"}}},{kind:"ObjectField",name:{kind:"Name",value:"phoneNumber"},value:{kind:"Variable",name:{kind:"Name",value:"phoneNumber"}}},{kind:"ObjectField",name:{kind:"Name",value:"firstName"},value:{kind:"Variable",name:{kind:"Name",value:"firstName"}}},{kind:"ObjectField",name:{kind:"Name",value:"lastName"},value:{kind:"Variable",name:{kind:"Name",value:"lastName"}}},{kind:"ObjectField",name:{kind:"Name",value:"newsLetterCheckbox"},value:{kind:"Variable",name:{kind:"Name",value:"newsLetterCheckbox"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"originalId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phoneNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phoneCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"messages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"isB2B"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"redirect"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1158,source:{body:"mutation AuthContextCreateUser(\n $email: String!\n $password: String!\n $nextUrl: String!\n $giftcardToken: String\n $referFriendId: ID\n $friendInvitationId: ID\n # JobToBeDone fields\n $upperFunnelSource: UpperFunnelSourceEnum\n $upperFunnelJobToBeDone: UpperFunnelJobToBeDoneEnum\n $upperFunnelUrlSource: String\n $phoneCode: String\n $phoneNumber: String\n $firstName: String\n $lastName: String\n $newsLetterCheckbox: Boolean\n) {\n createUser(\n input: {\n email: $email\n password: $password\n nextUrl: $nextUrl\n giftcardToken: $giftcardToken\n referFriendId: $referFriendId\n friendInvitationId: $friendInvitationId\n upperFunnelSource: $upperFunnelSource\n upperFunnelJobToBeDone: $upperFunnelJobToBeDone\n upperFunnelUrlSource: $upperFunnelUrlSource\n phoneCode: $phoneCode\n phoneNumber: $phoneNumber\n firstName: $firstName\n lastName: $lastName\n newsLetterCheckbox: $newsLetterCheckbox\n }\n ) {\n user {\n originalId\n firstName\n lastName\n phoneNumber\n phoneCode\n }\n messages {\n field\n message\n }\n isB2B\n redirect\n success\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},c={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AuthContextLoginUser"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"username"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"nextUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"giftcardToken"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationSlug"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"crehanaGiftCardToken"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"loginUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"username"},value:{kind:"Variable",name:{kind:"Name",value:"username"}}},{kind:"ObjectField",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}},{kind:"ObjectField",name:{kind:"Name",value:"nextUrl"},value:{kind:"Variable",name:{kind:"Name",value:"nextUrl"}}},{kind:"ObjectField",name:{kind:"Name",value:"giftcardToken"},value:{kind:"Variable",name:{kind:"Name",value:"giftcardToken"}}},{kind:"ObjectField",name:{kind:"Name",value:"organizationSlug"},value:{kind:"Variable",name:{kind:"Name",value:"organizationSlug"}}},{kind:"ObjectField",name:{kind:"Name",value:"crehanaGiftCardToken"},value:{kind:"Variable",name:{kind:"Name",value:"crehanaGiftCardToken"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"originalId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phoneCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phoneNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isPremiumMember"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasOrganization"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"messages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"isB2B"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"redirect"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:664,source:{body:"mutation AuthContextLoginUser(\n $username: String!\n $password: String!\n $nextUrl: String!\n $giftcardToken: String\n $organizationSlug: String\n $crehanaGiftCardToken: String\n) {\n loginUser(\n input: {\n username: $username\n password: $password\n nextUrl: $nextUrl\n giftcardToken: $giftcardToken\n organizationSlug: $organizationSlug\n crehanaGiftCardToken: $crehanaGiftCardToken\n }\n ) {\n user {\n id\n originalId\n firstName\n lastName\n phoneCode\n phoneNumber\n isPremiumMember\n hasOrganization\n }\n messages {\n field\n message\n }\n isB2B\n redirect\n success\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},m=function(){var e,t,n=(0,o.useContext)(s.V),m=(0,d.D)(c,{context:{clientName:"auth"}}),f=(0,l.Z)(m,1)[0],v=(0,d.D)(u,{context:{clientName:"auth"}}),g=(0,l.Z)(v,1)[0],p=(0,o.useCallback)((e=(0,r.Z)((0,a.Z)().mark(function e(t){var n;return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f({variables:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)}),[f]),h=(0,o.useCallback)((t=(0,r.Z)((0,a.Z)().mark(function e(t){var n;return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g({variables:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),[g]);if(void 0===n)throw Error("useAuth must be used within an AuthProvider");return(0,i.Z)((0,i.Z)({},n),{},{login:p,register:h})}},94560:function(e,t,n){"use strict";var i,a=n(11527);t.Z=function(e){var t=e.className,n=e.size,r=void 0===n?32:n;return(0,a.jsx)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:r,height:r,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:i||(i=(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.707 6.293a1 1 0 0 1 0 1.414l-10 10a1 1 0 0 1-1.414 0l-5-5a1 1 0 1 1 1.414-1.414L10 15.586l9.293-9.293a1 1 0 0 1 1.414 0Z",fill:"none",className:"tw-fill-current"}))})}},30165:function(e,t,n){"use strict";var i,a=n(11527);t.Z=function(e){var t=e.className,n=e.size,r=void 0===n?32:n;return(0,a.jsx)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:r,height:r,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:i||(i=(0,a.jsx)("path",{d:"M7.707 6.293a1 1 0 0 0-1.414 1.414L10.586 12l-4.293 4.293a1 1 0 0 0 1.414 1.414L12 13.414l4.293 4.293a1 1 0 0 0 1.414-1.414L13.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414L12 10.586 7.707 6.293Z",fill:"none",className:"tw-fill-current"}))})}},96801:function(e,t,n){"use strict";var i,a,r=n(11527);t.Z=function(e){var t=e.className,n=e.size,l=void 0===n?32:n;return(0,r.jsxs)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:l,height:l,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:[i||(i=(0,r.jsx)("path",{d:"M12 17a1 1 0 0 1-1-1v-4a1 1 0 1 1 2 0v4a1 1 0 0 1-1 1ZM12 9a1 1 0 1 0 0-2h-.01a1 1 0 1 0 0 2H12Z",fill:"none",className:"tw-fill-current"})),a||(a=(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-10 8a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",fill:"none",className:"tw-fill-current"}))]})}},50802:function(e,t,n){"use strict";var i,a=n(11527);t.Z=function(e){var t=e.className,n=e.size,r=void 0===n?32:n;return(0,a.jsx)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:r,height:r,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:i||(i=(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-2 9a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm0 7a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z",fill:"none",className:"tw-fill-current"}))})}},93465:function(e,t,n){"use strict";n.d(t,{$:function(){return y},Z:function(){return I}});var i=n(6961),a=n(50959),r=n(82284),l=n(96547),o=n(33189),s=n(71498),d=n(23442),u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CompassLayoutsGetFeatureFlag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"nameKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationId"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"feature_flag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name_key"},value:{kind:"Variable",name:{kind:"Name",value:"nameKey"}}},{kind:"Argument",name:{kind:"Name",value:"organization_id"},value:{kind:"Variable",name:{kind:"Name",value:"organizationId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name_key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"namespace_key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:209,source:{body:"query CompassLayoutsGetFeatureFlag($nameKey: String!, $organizationId: Int) {\n feature_flag(name_key: $nameKey, organization_id: $organizationId) {\n category\n name_key\n namespace_key\n value\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},c=function(e){var t,n,i=e.nameKey,a=(0,d.P)().me,r=(0,s.a)(u,{fetchPolicy:"no-cache",variables:{nameKey:i,organizationId:null==a?void 0:null===(t=a.organization)||void 0===t?void 0:t.originalId},context:{clientName:"v5"}}),l=r.loading,o=r.error,c=r.data;return{loading:l,error:o,value:!!(null==c?void 0:null===(n=c.feature_flag)||void 0===n?void 0:n.value)}},m=n(20149),f=n(33198),v=n(66287),g="component-language-selector-i18n",p=n(67519),h=(0,p.Z)({},g,{PROFILE_LANGUAGE:"Languages",SPANISH:"Spanish",PORTUGUESE:"Portuguese"}),w={es:(0,p.Z)({},g,{PROFILE_LANGUAGE:"Idiomas",SPANISH:"Espa\xf1ol",PORTUGUESE:"Portugu\xeas"}),pt:(0,p.Z)({},g,{PROFILE_LANGUAGE:"L\xednguas",SPANISH:"Espanhol",PORTUGUESE:"Portugu\xeas"}),en:h},k=["addResourceBundle"],N=function(){var e=(0,v.$)(g),t=e.addResourceBundle,n=(0,f.Z)(e,k);return t(w),n},x=n(11527),b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"es";return"/proxy/api/language/change/?language=".concat(e,"&next=").concat(window.location.pathname)},y=function(){var e=c({nameKey:"USER_SELECT_LANGUAGE"}).value,t=N().t,n=[{value:"es",label:t("SPANISH"),url:b("es")},{value:"pt",label:t("PORTUGUESE"),url:b("pt")},{value:"en",label:"English",url:b("en")}],s=(0,a.useState)(function(){var e=o.ej(l.Ep)[l.Ep];return e?n.find(function(t){return t.value===e.toLowerCase()}):n.find(function(e){return"es"===e.value})}),d=(0,i.Z)(s,2),u=d[0],f=d[1];return e?(0,x.jsxs)("div",{className:"tw-w-full tw-mt-2 tw-pt-2 tw-border-solid tw-border-t tw-border-t-neutral-light-300 dark:tw-border-t-neutral-dark-700",children:[(0,x.jsx)(m.Z,{label:t("PROFILE_LANGUAGE"),className:"tw-px-0.8"}),(0,x.jsx)("ul",{className:"tw-flex tw-flex-col tw-items-start",children:n.map(function(e,t){return(0,x.jsx)(r.Z,{className:"".concat(0!==t?"tw-mt-1.2":""," tw-gap-0.8 tw-px-0.8"),size:"s",onChange:function(){e.value!==u.value&&(f(e),window.location.href=e.url)},checked:u.value===e.value,title:e.label},e.value)})})]}):null},I=y},20149:function(e,t,n){"use strict";var i=n(51626),a=n(11527);t.Z=function(e){var t=e.label,n=e.className,r=void 0===n?"":n;return(0,a.jsx)("p",{className:(0,i.Z)("tw-font-label1 tw-uppercase tw-mb-2 dark:tw-text-neutral-dark-500 tw-text-neutral-light-700",r),children:t})}},37931:function(e,t,n){"use strict";n.d(t,{L:function(){return ep}});var i,a,r,l=n(22405),o=n(54737),s=n(50959),d=n(5341),u=n(87075),c=n(24250),m=n(40507),f=n.n(m);function v(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function g(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function p(e,t){if(e.clientHeightt||r>e&&l=t&&o>=n?r-e-i:l>t&&on?l-t+a:0}n(97679);var w=function(e,t){var n=window,i=t.scrollMode,a=t.block,r=t.inline,l=t.boundary,o=t.skipOverflowHiddenElements,s="function"==typeof l?l:function(e){return e!==l};if(!v(e))throw TypeError("Invalid target");for(var d,u,c=document.scrollingElement||document.documentElement,m=[],f=e;v(f)&&s(f);){if((f=null==(u=(d=f).parentElement)?d.getRootNode().host||null:u)===c){m.push(f);break}null!=f&&f===document.body&&p(f)&&!p(document.documentElement)||null!=f&&p(f,o)&&m.push(f)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,w=n.visualViewport?n.visualViewport.height:innerHeight,k=window.scrollX||pageXOffset,N=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),b=x.height,y=x.width,I=x.top,S=x.right,E=x.bottom,O=x.left,T="start"===a||"nearest"===a?I:"end"===a?E:I+b/2,C="center"===r?O+y/2:"end"===r?S:O,R=[],_=0;_=0&&O>=0&&E<=w&&S<=g&&I>=A&&E<=F&&O>=M&&S<=D)break;var U=getComputedStyle(L),z=parseInt(U.borderLeftWidth,10),V=parseInt(U.borderTopWidth,10),B=parseInt(U.borderRightWidth,10),G=parseInt(U.borderBottomWidth,10),$=0,H=0,K="offsetWidth"in L?L.offsetWidth-L.clientWidth-z-B:0,W="offsetHeight"in L?L.offsetHeight-L.clientHeight-V-G:0,q="offsetWidth"in L?0===L.offsetWidth?0:P/L.offsetWidth:0,Y="offsetHeight"in L?0===L.offsetHeight?0:j/L.offsetHeight:0;if(c===L)$="start"===a?T:"end"===a?T-w:"nearest"===a?h(N,N+w,w,V,G,N+T,N+T+b,b):T-w/2,H="start"===r?C:"center"===r?C-g/2:"end"===r?C-g:h(k,k+g,g,z,B,k+C,k+C+y,y),$=Math.max(0,$+N),H=Math.max(0,H+k);else{$="start"===a?T-A-V:"end"===a?T-F+G+W:"nearest"===a?h(A,F,j,V,G+W,T,T+b,b):T-(A+j/2)+W/2,H="start"===r?C-M-z:"center"===r?C-(M+P/2)+K/2:"end"===r?C-D+B+K:h(M,D,P,z,B+K,C,C+y,y);var J=L.scrollLeft,Q=L.scrollTop;T+=Q-($=Math.max(0,Math.min(Q+$/Y,L.scrollHeight-j/Y+W))),C+=J-(H=Math.max(0,Math.min(J+H/q,L.scrollWidth-P/q+K)))}R.push({el:L,top:$,left:H})}return R},k=n(26984),N=0;function x(){}function b(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function y(e,t){var n;function i(){n&&clearTimeout(n)}function a(){for(var a=arguments.length,r=Array(a),l=0;l1?n-1:0),a=1;a=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function T(e,t,n,i,a){if(void 0===a&&(a=!0),0===n)return -1;var r=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:r+1);var l=t+e;l<0?l=a?r:0:l>r&&(l=a?0:r);var o=C(e,l,n,i,a);return -1===o?t>=n?-1:t:o}function C(e,t,n,i,a){var r=i(t);if(!r||!r.hasAttribute("disabled"))return t;if(e>0){for(var l=t+1;l=0;o--)if(!i(o).hasAttribute("disabled"))return o;return a?e>0?C(1,0,n,i,!1):C(-1,n-1,n,i,!1):-1}function R(e,t,n,i){return void 0===i&&(i=!0),t.some(function(t){return t&&(b(t,e,n)||i&&b(t,n.document.activeElement,n))})}var _=y(function(e){L(e).textContent=""},500);function L(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t)),t}var Z=["isInitialMount","highlightedIndex","items","environment"],j={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""},P=y(function(e,t){var n,i,a;n=e(),a=L(i=t),n&&(a.textContent=n,_(i))},200),A="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s.useLayoutEffect:s.useEffect;function D(e){return/^\S{1}$/.test(e)}function F(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function M(e){var t=(0,s.useRef)(e);return t.current=e,t}var U={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:function(e,t){e&&w(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach(function(e){var t=e.el,n=e.top,i=e.left;t.scrollTop=n,t.scrollLeft=i})},circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function z(e,t,n){void 0===n&&(n=j);var i="default"+F(t);return i in e?e[i]:n[t]}function V(e,t,n){if(void 0===n&&(n=j),t in e)return e[t];var i="initial"+F(t);return i in e?e[i]:z(e,t,n)}function B(e,t,n,i){var a=e.items,r=e.initialHighlightedIndex,l=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return 0===a.length?-1:void 0!==r&&s===r?r:void 0!==l?l:o?0===n?a.indexOf(o):T(n,a.indexOf(o),a.length,i,!1):0===n?-1:n<0?a.length-1:0}function G(e,t,n){var i=n.isInitialMount,a=n.highlightedIndex,r=n.items,l=n.environment,o=(0,u.Z)(n,Z);(0,s.useEffect)(function(){i||P(function(){return e((0,c.Z)({highlightedIndex:a,highlightedItem:r[a],resultCount:r.length},o))},l.document)},t)}function $(e,t,n){var i,a=t.type,r=t.props;switch(a){case n.ItemMouseMove:i={highlightedIndex:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:B(r,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:B(r,e,0)};break;case n.FunctionCloseMenu:i={isOpen:!1};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:z(r,"highlightedIndex"),isOpen:z(r,"isOpen"),selectedItem:z(r,"selectedItem"),inputValue:z(r,"inputValue")};break;default:throw Error("Reducer called without proper action type.")}return(0,c.Z)({},e,i)}function H(e){for(var t=e.keysSoFar,n=e.highlightedIndex,i=e.items,a=e.itemToString,r=e.getItemNodeFromIndex,l=t.toLowerCase(),o=0;o=0&&{selectedItem:a.items[s]});break;case 13:n={highlightedIndex:B(a,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:B(a,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=(0,c.Z)({isOpen:z(a,"isOpen"),highlightedIndex:z(a,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:a.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:C(1,0,a.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:C(-1,a.items.length-1,a.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var d=t.key,u=""+e.inputValue+d,m=H({keysSoFar:u,highlightedIndex:e.highlightedIndex,items:a.items,itemToString:a.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=(0,c.Z)({inputValue:u},m>=0&&{highlightedIndex:m});break;case 0:n={highlightedIndex:T(r?5:1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,a.circularNavigation)};break;case 1:n={highlightedIndex:T(r?-5:-1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,a.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return $(e,t,W)}return(0,c.Z)({},e,n)}var Y=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],J=["onClick","onKeyDown","refKey","ref"],Q=["item","index","onMouseMove","onClick","refKey","ref"];function X(e){void 0===e&&(e={});var t,n,i,a,r,l,o,d,m,f,v,g,p,h,w,k,b,T,C,_,L,Z,j,P,U,z,B,$,H,W,X,ee,et,en,ei,ea,er,el,eo,es,ed,eu,ec,em,ef=(0,c.Z)({},K,e),ev=ef.items,eg=ef.scrollIntoView,ep=ef.environment,eh=ef.initialIsOpen,ew=ef.defaultIsOpen,ek=ef.itemToString,eN=ef.getA11ySelectionMessage,ex=ef.getA11yStatusMessage,eb=(l=q,o=(n=V(t=ef,"selectedItem"),i=V(t,"isOpen"),a=V(t,"highlightedIndex"),r=V(t,"inputValue"),{highlightedIndex:a<0&&n&&i?t.items.indexOf(n):a,isOpen:i,selectedItem:n,inputValue:r}),d=ef,L=(m=l,f=o,v=d,g=(0,s.useRef)(),p=(0,s.useRef)(),h=(0,s.useCallback)(function(e,t){p.current=t;var n=m(e=E(e,t.props),t);return t.props.stateReducer(e,(0,c.Z)({},t,{changes:n}))},[m]),w=(0,s.useReducer)(h,f),k=w[0],b=w[1],T=M(v),C=(0,s.useCallback)(function(e){return b((0,c.Z)({props:T.current},e))},[T]),_=p.current,(0,s.useEffect)(function(){if(_&&g.current&&g.current!==k){var e,t,n,i;e=E(g.current,_.props),t=_.props,n=_.type,i={},Object.keys(e).forEach(function(t){var n,a,r;n=_.props,a=_.type,n[r="on"+F(t)+"Change"]&&void 0!==k[t]&&k[t]!==e[t]&&n[r]((0,c.Z)({type:a},k)),k[t]!==e[t]&&(i[t]=k[t])}),t.onStateChange&&Object.keys(i).length&&t.onStateChange((0,c.Z)({type:n},i))}g.current=k},[k,v,_]),[k,C]),Z=L[0],j=L[1],[E(Z,d),j]),ey=eb[0],eI=eb[1],eS=ey.isOpen,eE=ey.highlightedIndex,eO=ey.selectedItem,eT=ey.inputValue,eC=(0,s.useRef)(null),eR=(0,s.useRef)(null),e_=(0,s.useRef)({}),eL=(0,s.useRef)(!0),eZ=(0,s.useRef)(null),ej=(U=(P=ef).id,z=void 0===U?"downshift-"+String(N++):U,B=P.labelId,$=P.menuId,H=P.getItemId,W=P.toggleButtonId,X=P.inputId,(0,s.useRef)({labelId:B||z+"-label",menuId:$||z+"-menu",getItemId:H||function(e){return z+"-item-"+e},toggleButtonId:W||z+"-toggle-button",inputId:X||z+"-input"}).current),eP=(0,s.useRef)(),eA=(0,s.useRef)(!0),eD=M({state:ey,props:ef}),eF=(0,s.useCallback)(function(e){return e_.current[ej.getItemId(e)]},[ej]);G(ex,[eS,eE,eT,ev],(0,c.Z)({isInitialMount:eA.current,previousResultCount:eP.current,items:ev,environment:ep,itemToString:ek},ey)),G(eN,[eO],(0,c.Z)({isInitialMount:eA.current,previousResultCount:eP.current,items:ev,environment:ep,itemToString:ek},ey));var eM=(et=(ee={menuElement:eR.current,highlightedIndex:eE,isOpen:eS,itemRefs:e_,scrollIntoView:eg,getItemNodeFromIndex:eF}).highlightedIndex,en=ee.isOpen,ei=ee.itemRefs,ea=ee.getItemNodeFromIndex,er=ee.menuElement,el=ee.scrollIntoView,eo=(0,s.useRef)(!0),A(function(){!(et<0)&&en&&Object.keys(ei.current).length&&(!1===eo.current?eo.current=!0:el(ea(et),er))},[et]),eo);(0,s.useEffect)(function(){return eZ.current=y(function(e){e({type:21,inputValue:""})},500),function(){eZ.current.cancel()}},[]),(0,s.useEffect)(function(){eT&&eZ.current(eI)},[eI,eT]),eA.current,(0,s.useEffect)(function(){if(eA.current){(eh||ew||eS)&&eR.current&&eR.current.focus();return}if(eS){eR.current&&eR.current.focus();return}ep.document.activeElement===eR.current&&eC.current&&(eL.current=!1,eC.current.focus())},[eS]),(0,s.useEffect)(function(){eA.current||(eP.current=ev.length)});var eU=(es=eS,ed=[eR,eC],eu=ep,ec=function(){eI({type:8})},em=(0,s.useRef)({isMouseDown:!1,isTouchMove:!1}),(0,s.useEffect)(function(){var e=function(){em.current.isMouseDown=!0},t=function(e){em.current.isMouseDown=!1,es&&!R(e.target,ed.map(function(e){return e.current}),eu)&&ec()},n=function(){em.current.isTouchMove=!1},i=function(){em.current.isTouchMove=!0},a=function(e){!es||em.current.isTouchMove||R(e.target,ed.map(function(e){return e.current}),eu,!1)||ec()};return eu.addEventListener("mousedown",e),eu.addEventListener("mouseup",t),eu.addEventListener("touchstart",n),eu.addEventListener("touchmove",i),eu.addEventListener("touchend",a),function(){eu.removeEventListener("mousedown",e),eu.removeEventListener("mouseup",t),eu.removeEventListener("touchstart",n),eu.removeEventListener("touchmove",i),eu.removeEventListener("touchend",a)}},[es,eu]),em),ez=x;(0,s.useEffect)(function(){eA.current=!1},[]),(0,s.useEffect)(function(){eS||(e_.current={})},[eS]);var eV=(0,s.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),eI({type:13,getItemNodeFromIndex:eF,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),eI({type:14,getItemNodeFromIndex:eF,shiftKey:e.shiftKey})}}},[eI,eF]),eB=(0,s.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),eI({type:0,getItemNodeFromIndex:eF,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),eI({type:1,getItemNodeFromIndex:eF,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),eI({type:3,getItemNodeFromIndex:eF})},End:function(e){e.preventDefault(),eI({type:4,getItemNodeFromIndex:eF})},Escape:function(){eI({type:2})},Enter:function(e){e.preventDefault(),eI({type:5})}," ":function(e){e.preventDefault(),eI({type:6})}}},[eI,eF]),eG=(0,s.useCallback)(function(){eI({type:16})},[eI]),e$=(0,s.useCallback)(function(){eI({type:18})},[eI]),eH=(0,s.useCallback)(function(){eI({type:17})},[eI]),eK=(0,s.useCallback)(function(e){eI({type:19,highlightedIndex:e})},[eI]),eW=(0,s.useCallback)(function(e){eI({type:20,selectedItem:e})},[eI]),eq=(0,s.useCallback)(function(){eI({type:22})},[eI]),eY=(0,s.useCallback)(function(e){eI({type:21,inputValue:e})},[eI]),eJ=(0,s.useCallback)(function(e){return(0,c.Z)({id:ej.labelId,htmlFor:ej.toggleButtonId},e)},[ej]),eQ=(0,s.useCallback)(function(e,t){var n,i=void 0===e?{}:e,a=i.onMouseLeave,r=i.refKey,l=void 0===r?"ref":r,o=i.onKeyDown,s=i.onBlur,d=i.ref,m=(0,u.Z)(i,Y),f=(void 0===t?{}:t).suppressRefError,v=void 0!==f&&f,g=eD.current.state;return ez("getMenuProps",v,l,eR),(0,c.Z)(((n={})[l]=S(d,function(e){eR.current=e}),n.id=ej.menuId,n.role="listbox",n["aria-labelledby"]=ej.labelId,n.tabIndex=-1,n),g.isOpen&&g.highlightedIndex>-1&&{"aria-activedescendant":ej.getItemId(g.highlightedIndex)},{onMouseLeave:I(a,function(){eI({type:9})}),onKeyDown:I(o,function(e){var t=O(e);t&&eB[t]?eB[t](e):D(t)&&eI({type:7,key:t,getItemNodeFromIndex:eF})}),onBlur:I(s,function(){if(!1===eL.current){eL.current=!0;return}eU.current.isMouseDown||eI({type:8})})},m)},[eI,eD,eB,eU,ez,ej,eF]);return{getToggleButtonProps:(0,s.useCallback)(function(e,t){var n,i=void 0===e?{}:e,a=i.onClick,r=i.onKeyDown,l=i.refKey,o=void 0===l?"ref":l,s=i.ref,d=(0,u.Z)(i,J),m=(void 0===t?{}:t).suppressRefError,f=void 0!==m&&m,v=(0,c.Z)(((n={})[o]=S(s,function(e){eC.current=e}),n.id=ej.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=eD.current.state.isOpen,n["aria-labelledby"]=ej.labelId+" "+ej.toggleButtonId,n),d);return d.disabled||(v.onClick=I(a,function(){eI({type:12})}),v.onKeyDown=I(r,function(e){var t=O(e);t&&eV[t]?eV[t](e):D(t)&&eI({type:15,key:t,getItemNodeFromIndex:eF})})),ez("getToggleButtonProps",f,o,eC),v},[eI,eD,eV,ez,ej,eF]),getLabelProps:eJ,getMenuProps:eQ,getItemProps:(0,s.useCallback)(function(e){var t,n,i,a,r=void 0===e?{}:e,l=r.item,o=r.index,s=r.onMouseMove,d=r.onClick,m=r.refKey,f=r.ref,v=(0,u.Z)(r,Q),g=eD.current,p=g.state,h=(t=o,n=l,i=g.props.items,void 0!==t?t:0===i.length?-1:i.indexOf(n));if(h<0)throw Error("Pass either item or item index in getItemProps!");var w=(0,c.Z)(((a={role:"option","aria-selected":""+(h===p.highlightedIndex),id:ej.getItemId(h)})[void 0===m?"ref":m]=S(f,function(e){e&&(e_.current[ej.getItemId(h)]=e)}),a),v);return v.disabled||(w.onMouseMove=I(s,function(){o!==p.highlightedIndex&&(eM.current=!1,eI({type:10,index:o}))}),w.onClick=I(d,function(){eI({type:11,index:o})})),w},[eI,eD,eM,ej]),toggleMenu:eG,openMenu:eH,closeMenu:e$,setHighlightedIndex:eK,selectItem:eW,reset:eq,setInputValue:eY,highlightedIndex:eE,isOpen:eS,selectedItem:eO,inputValue:eT}}X.stateChangeTypes=W;var ee=Object.freeze({__proto__:null,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownEnd:4,InputKeyDownEnter:5,InputChange:6,InputBlur:7,MenuMouseLeave:8,ItemMouseMove:9,ItemClick:10,ToggleButtonClick:11,FunctionToggleMenu:12,FunctionOpenMenu:13,FunctionCloseMenu:14,FunctionSetHighlightedIndex:15,FunctionSelectItem:16,FunctionSetInputValue:17,FunctionReset:18,ControlledPropUpdatedSelectedItem:19});f().array.isRequired,f().func,f().func,f().func,f().bool,f().number,f().number,f().number,f().bool,f().bool,f().bool,f().any,f().any,f().any,f().string,f().string,f().string,f().string,f().string,f().string,f().func,f().string,f().string,f().func,f().func,f().func,f().func,f().func,f().func,f().shape({addEventListener:f().func,removeEventListener:f().func,document:f().shape({getElementById:f().func,activeElement:f().any,body:f().any})}),(0,c.Z)({},U,{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,i=e.previousResultCount;return t?n?n!==i?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""},circularNavigation:!0});var et={activeIndex:-1,selectedItems:[]};f().array,f().array,f().array,f().func,f().func,f().func,f().number,f().number,f().number,f().func,f().func,f().string,f().string,f().shape({addEventListener:f().func,removeEventListener:f().func,document:f().shape({getElementById:f().func,activeElement:f().any,body:f().any})}),U.itemToString,U.stateReducer,U.environment;var en=n(10467),ei=n(1685),ea=n(11527),er=function(e){var t=e.disabled,n=e.tooltip,a=e.label,r=e.sizeType,l=e.className,o="small"===(void 0===r?"large":r);return(0,ea.jsxs)("span",{className:(0,d.Z)("tw-flex tw-items-center",l),children:[(0,ea.jsx)("span",{className:(0,d.Z)("tw-mr-0.8",{"tw-font-subtitle5":o,"tw-font-subtitle4":!o,"dark:tw-text-neutral-dark-600":t,"dark:tw-text-neutral-light-100":!t}),children:a}),n&&(0,ea.jsx)(ei.u,{position:"right",label:n,type:"small",children:i||(i=(0,ea.jsx)("span",{children:(0,ea.jsx)(en.Z,{className:"tw-text-neutral-light-600",size:16})}))})]})},el=n(93708),eo=n(94560),es=function(e){var t=e.children,n=e.highlighted,i=e.selected,r=e.size,l=void 0===r?"l":r,o=e.className,s=e.multilineOption;return(0,ea.jsx)("div",{className:(0,d.Z)("tw-w-full",{"tw-h-5.6":"l"===l&&!s,"tw-h-4.8":"s"===l&&!s},o),children:(0,ea.jsxs)("span",{className:(0,d.Z)("tw-flex tw-justify-between tw-items-center tw-py-1.2 tw-px-1.6 tw-font-body4 tw-cursor-pointer dark:tw-text-neutral-light-100","tw-bg-neutral-light-100 dark:tw-bg-neutral-dark-700","hover:tw-bg-neutral-light-300 dark:hover:tw-bg-neutral-dark-600","hover:tw-text-primary-light-500 dark:hover:tw-text-neutral-light-100",{"tw-bg-neutral-light-300 dark:tw-bg-neutral-dark-600":n||i,"tw-text-primary-light-500 dark:tw-text-neutral-light-100":n||i}),children:[(0,ea.jsx)("span",{children:t}),i&&(a||(a=(0,ea.jsx)("span",{children:(0,ea.jsx)(eo.Z,{size:24,className:"tw-text-success-400"})})))]})})},ed=function(e){var t=e.items,n=e.isOpen,i=e.size,a=e.multilineOption,o=e.disabled,u=e.getLiProps,c=e.getUlProps,m=e.highlightedIndex,f=e.selectedItem,v=e.isLoading,g=c?c({disabled:o}):{};return(0,ea.jsxs)("ul",(0,l.Z)((0,l.Z)({},g),{},{className:(0,d.Z)("tw-w-full tw-mt-0.4 tw-list-none tw-z-1 tw-overflow-y-auto tw-bg-neutral-light-100 dark:tw-bg-neutral-dark-700 tw-shadow-03 tw-rounded-1","tw-overflow-x-hidden",v?"tw-h-24 tw-flex tw-items-center tw-justify-center":n?(null==t?void 0:t.length)>=4?"tw-h-24":"":"tw-hidden",g.className),children:[v?r||(r=(0,ea.jsx)(el.Z,{})):null,n&&!v&&t.map(function(e,t){var n=u?u({item:e,index:t,disabled:o}):{};return(0,s.createElement)("li",(0,l.Z)((0,l.Z)({},n),{},{className:(0,d.Z)("tw-list-none !tw-pr-0",n.className),key:"".concat(e.value).concat(e.label)}),(0,ea.jsx)(es,{highlighted:m===t,selected:e.value===(null==f?void 0:f.value),size:i,multilineOption:a,children:e.labelJsx||e.label}))})]}))},eu=n(68673),ec=["error","text","className"],em=function(e){var t=e.error,n=e.text,i=e.className,a=(0,eu.Z)(e,ec);return(0,ea.jsx)("span",(0,l.Z)((0,l.Z)({className:(0,d.Z)("tw-font-caption",i,{"tw-text-alert-400 dark:tw-text-alert-300":t,"tw-text-neutral-light-700 dark:tw-text-neutral-dark-500":!t})},a),{},{children:n}))},ef=n(62650),ev=(0,s.forwardRef)(function(e,t){var n=e.sizeType,i=e.size,a=e.disabled,r=void 0!==a&&a,o=e.isOpen,s=void 0!==o&&o,u=e.error,c=void 0!==u&&u,m=e.selectedItem,f=e.placeholder,v=e.buttonProps,g=void 0===v?{}:v,p=e.clampSelectedItem,h="s"===i||"small"===n,w="l"===i||"large"===n;return(0,ea.jsxs)("button",(0,l.Z)((0,l.Z)({type:"button"},g),{},{ref:t,className:(0,d.Z)(g.className,"tw-relative tw-pl-1.6 tw-pr-3.2 tw-text-left tw-w-full tw-rounded-[1rem] tw-bg-neutral-light-100 dark:tw-bg-neutral-dark-700 tw-border tw-border-solid dark:tw-text-neutral-light-100 focus:tw-outline-none focus:tw-border-[0.1rem] disabled:tw-bg-neutral-light-400 dark:disabled:tw-bg-neutral-dark-500 disabled:tw-text-neutral-light-500 dark:disabled:tw-text-neutral-dark-600",{"focus:tw-border-primary-light-500 dark:focus:tw-border-primary-dark-300 active:tw-border-primary-light-500 dark:active:tw-border-primary-dark-300 disabled:tw-border-none":!c,"tw-border-alert-400 dark:tw-border-alert-300":c,"tw-border-neutral-light-500 dark:tw-border-neutral-dark-600":!s&&!c,"hover:tw-border-primary-light-300 dark:hover:tw-border-primary-dark-300":!s,"tw-border-primary-light-500 dark:tw-border-primary-dark-300":s&&!c,"tw-h-5.6 tw-py-1.6":w,"tw-h-4 tw-py-0.8":h,"tw-cursor-not-allowed":r}),children:[m?(0,ea.jsx)("p",{className:(0,d.Z)("tw-font-body4 truncate",{"tw-text-neutral-light-700 dark:tw-text-neutral-dark-500":!r,"tw-text-neutral-light-500 dark:tw-text-neutral-dark-600":r,"tw-truncate tw-text-ellipsis":p}),children:m.labelJsx||m.label}):f?(0,ea.jsx)("span",{className:(0,d.Z)({"tw-text-neutral-light-700 dark:tw-text-neutral-dark-500":!r,"tw-text-neutral-light-500 dark:tw-text-neutral-dark-600":r}),children:f}):null,(0,ea.jsx)("span",{className:(0,d.Z)("tw-absolute tw-top-0 tw-bottom-0 tw-right-0 tw-w-3.6"),children:(0,ea.jsx)("span",{className:(0,d.Z)("tw-absolute tw-right-0.8 tw-transition-transform tw-duration-200 tw-ease-linear",{"tw-top-0.8":h,"tw-top-1.6":w}),style:{transform:"rotate3d(1, 0, 0, ".concat(s?"180deg":"0deg",")"),transformOrigin:"center center"},children:(0,ea.jsx)(ef.Z,{className:(0,d.Z)("block",{"tw-text-primary-light-500 dark:tw-text-secondary-dark-500":!r,"tw-text-neutral-light-500 dark:tw-text-neutral-dark-600":r}),size:20})})})]}))});ev.displayName="DropdownButton";var eg=function(e){return(null==e?void 0:e.label)||""},ep=function(e){var t=e.items,n=e.disabled,i=void 0!==n&&n,a=e.label,r=e.full,u=void 0!==r&&r,c=e.sizeType,m=void 0===c?"large":c,f=e.size,v=void 0===f?"l":f,g=e.isOpen,p=e.defaultIsOpen,h=e.helperText,w=e.error,k=void 0!==w&&w,N=e.defaultSelectedItem,x=e.tooltip,b=e.placeholder,y=e.id,I=e.useSelectHookProps,S=e.onSelect,E=e.selectedItem,O=e.clampSelectedItem,T=e.multilineOption,C=e.displayPosition,R=void 0===C?"bottom":C,_=e.className,L=void 0===_?"":_,Z=(0,s.useRef)(null),j=(0,s.useState)(R),P=(0,o.Z)(j,2),A=P[0],D=P[1],F=X((0,l.Z)({items:t,itemToString:eg,id:y?"compass.ui.dropdown-".concat(y):void 0,defaultSelectedItem:N,onSelectedItemChange:function(e){S((0,l.Z)((0,l.Z)({},e),{},{selectedItem:e.selectedItem||null}))},isOpen:g,selectedItem:E},I)),M=F.isOpen,U=F.selectedItem,z=F.highlightedIndex,V=F.getToggleButtonProps,B=F.getLabelProps,G=F.getMenuProps,$=F.getItemProps,H=F.openMenu;return(0,s.useEffect)(function(){p&&H()},[]),(0,s.useEffect)(function(){if("responsive"===R){var e=function(){if(Z.current){var e=Z.current.getBoundingClientRect();window.innerHeight-e.top0&&void 0!==arguments[0]?arguments[0]:20;return"calc(100% + ".concat(e,"px)")},v=function(e){return e.x<0},g=function(e){return e.x+e.width>window.innerWidth},p=function(e){return e.y<0},h=function(e){return e.y+e.height>window.innerHeight},w=function(e){var t=e.container,n=e.content,i=e.position,a=t.getBoundingClientRect().y+t.getBoundingClientRect().height/2,r=t.getBoundingClientRect().x+t.getBoundingClientRect().width/2,l=n.getBoundingClientRect(),o=l.width,s=l.height;return{x:"top"===i||"bottom"===i?r-o/2:"left"===i?t.getBoundingClientRect().x-o-20:t.getBoundingClientRect().x+t.getBoundingClientRect().width+20,y:"left"===i||"right"===i?a-s/2:"top"===i?t.getBoundingClientRect().y-s-20:t.getBoundingClientRect().y+t.getBoundingClientRect().height+20,width:o,height:s}},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,n={newPosition:e},i=f(t);return"bottom"===e?(0,m.Z)((0,m.Z)({},n),{},{top:i}):"top"===e?(0,m.Z)((0,m.Z)({},n),{},{bottom:i}):"left"===e?(0,m.Z)((0,m.Z)({},n),{},{right:i}):"right"===e?(0,m.Z)((0,m.Z)({},n),{},{left:i}):n},N=function e(t){var n=t.content,i=t.container,a=t.position,r=t.offset,l=w({container:i,content:n,position:a});if(("left"===a||"right"===a)&&(g(l)||v(l)))return e({content:n,container:i,position:"top"});var o=k(a,r);return"top"===a||"bottom"===a?(0,m.Z)((0,m.Z)((0,m.Z)({},o),v(l)?{left:"-5px",right:""}:g(l)?{right:"-5px",left:""}:{}),p(l)?{newPosition:"bottom",top:f(r),bottom:""}:h(l)?{newPosition:"top",bottom:f(r),top:""}:{}):(0,m.Z)((0,m.Z)({},o),p(l)?{top:"0px",bottom:""}:h(l)?{bottom:"0px",top:""}:{})},x={delay:200},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x;(0,l.useEffect)(function(){var n,i=function(){var i;clearTimeout(n),n=setTimeout(function(){e()},null!==(i=t.delay)&&void 0!==i?i:x.delay)};return t.runAtStart&&i(),window.addEventListener("scroll",i),window.addEventListener("resize",i),function(){window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}},[e,t.delay,t.runAtStart])},y=function(e){var t=e.containerClassName,n=e.contentClassName,i=e.position,s=void 0===i?"top":i,u=e.children,m=e.message,f=e.offset,v=e.sectionClassName,g=(0,l.useState)(!1),p=(0,r.Z)(g,2),h=p[0],w=p[1],k=(0,l.useState)(!1),x=(0,r.Z)(k,2),y=x[0],I=x[1],S=(0,l.useState)(s),E=(0,r.Z)(S,2),O=E[0],T=E[1],C=(0,l.useRef)(null),R=(0,l.useRef)(null),_=(0,l.useCallback)(function(e){var t=e.newPosition,n=e.top,i=e.bottom,a=e.left,r=e.right,l=C.current;l&&(T(t),l.style.top=null!=n?n:"",l.style.bottom=null!=i?i:"",l.style.left=null!=a?a:"",l.style.right=null!=r?r:"")},[C]);return b((0,l.useCallback)(function(){var e=C.current,t=R.current;e&&t&&_(N({position:s,content:e,container:t,offset:f}))},[C,R,s,f,_]),{runAtStart:!0,message:m}),(0,l.useEffect)(function(){if(y){var e=setTimeout(function(){w(!1),I(!1)},300);return function(){return clearTimeout(e)}}},[y]),(0,d.jsxs)("span",{ref:R,className:(0,o.Z)(t,"tw-relative"),onMouseEnter:function(){w(!0),I(!1)},onMouseLeave:function(){I(!0)},children:[u,(0,d.jsxs)("div",{className:(0,o.Z)("tw-pointer-events-none tw-absolute tw-flex tw-w-full tw-h-full tw-items-center tw-justify-center -tw-top-0.2 tw-left-0 tw-transition-opacity tw-duration-300",n,h&&m?"tw-visible tw-opacity-100":"tw-invisible tw-opacity-0"),children:[(0,d.jsx)(c,{tooltipPosition:O,offset:f}),(0,d.jsxs)("div",{ref:C,className:(0,o.Z)("tw-font-body5 tw-flex tw-absolute tw-bg-neutral-dark-700 tw-text-neutral-light-100 dark:tw-bg-neutral-light-200 dark:tw-text-neutral-light-800 tw-p-0.8 tw-rounded-0.8 tw-z-dialog tw-max-w-lg tw-w-max",v),children:[m,a||(a=(0,d.jsx)("div",{}))]})]})]})}},15780:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});var i=n(50959);n(11527);var a=(0,i.createContext)(void 0),r=function(){var e=(0,i.useContext)(a);if(void 0===e)throw Error("useUITheme must be used within a UITheme provider.");return e}},45316:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var i=n(22405),a=n(68673),r=n(20499),l=n(11527),o=["className"];function s(e){var t=e.className,n=(0,a.Z)(e,o);return(0,l.jsx)("div",(0,i.Z)({className:(0,r.cn)("tw-skeleton tw-relative tw-flex tw-overflow-hidden tw-rounded-1 tw-bg-neutral-light-400 dark:tw-bg-neutral-dark-600",t)},n))}},56377:function(e,t,n){"use strict";var i=n(11527);t.Z=function(e){var t=e.className,n=e.color,a=e.size,r=void 0===a?32:a,l=e.ignoreColor;return(0,i.jsx)("svg",{className:t,width:r,height:r,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:(0,i.jsx)("path",{d:"M7 11a1 1 0 1 1 2.001 0 1 1 0 0 1-2 0Zm5-1a1 1 0 1 0 .001 2 1 1 0 0 0 0-2Zm4 0a1 1 0 1 0 .001 2 1 1 0 0 0 0-2Zm3.899 2.294c-.507 3.254-3.13 5.953-6.38 6.562a8.003 8.003 0 0 1-4.616-.487 3.215 3.215 0 0 0-1.253-.262c-.19 0-.378.018-.563.055l-2.812.562.563-2.817c.118-.585.046-1.21-.207-1.81a8.01 8.01 0 0 1-.487-4.617c.609-3.249 3.307-5.872 6.562-6.379 2.59-.403 5.123.413 6.95 2.241 1.83 1.83 2.647 4.363 2.243 6.952Zm-.827-8.366c-2.285-2.284-5.445-3.303-8.674-2.804-4.077.636-7.457 3.92-8.22 7.987a10.008 10.008 0 0 0 .61 5.765c.098.231.128.446.09.64l-.858 4.287a.997.997 0 0 0 .274.903.996.996 0 0 0 .903.274l4.283-.857a1.15 1.15 0 0 1 .643.088 10.02 10.02 0 0 0 5.765.611c4.068-.763 7.352-4.143 7.988-8.22.502-3.227-.52-6.389-2.804-8.674Z",fill:l?void 0:void 0===n?"#181B32":n})})}},37328:function(e,t,n){"use strict";var i=n(11527);t.Z=function(e){var t=e.className,n=e.color,a=e.size,r=void 0===a?32:a,l=e.ignoreColor;return(0,i.jsx)("svg",{className:t,width:r,height:r,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M16.382 14H8.764L7.127 8h12.255l-3 6Zm4.701-7.052A1.986 1.986 0 0 0 19.382 6h-12.8l-.617-2.263A1 1 0 0 0 5 3H3a1 1 0 1 0 0 2h1.236l2.799 10.263A1 1 0 0 0 8 16h9c.379 0 .725-.214.895-.553l3.276-6.553a1.986 1.986 0 0 0-.088-1.946ZM7.5 18a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm8.5 1.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z",fill:l?void 0:void 0===n?"#181B32":n})})}},16278:function(e,t,n){"use strict";var i=n(22405),a=n(76414),r=n(68673),l=n(50959),o=n(97754),s=n.n(o),d=n(90889),u=n(74625),c=n(33966),m=n(11527),f=["as","href","className","label","size","isWhite","isGray","isDark","white","gray","darkMode","full","leftIcon","rightIcon","children"],v=["htmlProps"],g=["htmlProps"],p=["htmlProps"],h=["htmlProps"];t.Z=(0,l.forwardRef)(function(e,t){var n=e.as,l=e.href,o=e.className,w=void 0===o?"":o,k=e.label,N=e.size,x=void 0===N?"m":N,b=e.isWhite,y=e.isGray,I=e.isDark,S=e.white,E=e.gray,O=e.darkMode,T=e.full,C=e.leftIcon,R=e.rightIcon,_=e.children,L=(0,r.Z)(e,f),Z=I||O?"button-inverse-dark":"button-inverse";(y||E)&&(Z="button-inverse-gray"),(b||S)&&(Z="button-inverse-white");var j=(0,d.Z)(w,s()(null!=C&&C.component||null!=R&&R.component?c.js[x]:c.Gt[x],Z,(0,a.Z)({"w-full":T},I||O?"button-dark border-gray-dark":"button-light border-gray-main",L.disabled))),P=function(){return(0,m.jsx)(u.Z,{label:k,leftIcon:C,rightIcon:R,defaultIconSize:"xs"===x?16:24,children:_})};if("a"===n||l){var A=L.htmlProps,D=(0,r.Z)(L,v);return(0,m.jsx)("a",(0,i.Z)((0,i.Z)((0,i.Z)({ref:t,href:l,className:j},A),D),{},{children:P()}))}if("label"===n){var F=L.htmlProps,M=(0,r.Z)(L,g);return(0,m.jsx)("label",(0,i.Z)((0,i.Z)((0,i.Z)({ref:t,className:j},F),M),{},{children:P()}))}if("span"===n){var U=L.htmlProps,z=(0,r.Z)(L,p);return(0,m.jsx)("span",(0,i.Z)((0,i.Z)((0,i.Z)({ref:t,className:j},U),z),{},{children:P()}))}var V=L.htmlProps,B=(0,r.Z)(L,h);return(0,m.jsx)("button",(0,i.Z)((0,i.Z)((0,i.Z)({ref:t,type:"button",className:j},V),B),{},{children:P()}))})},8222:function(e,t,n){"use strict";var i=n(22405),a=n(54737);t.Z=function(e,t){if(!e)return e;var n=e,r="",l=n.split("?"),o={};return n=(0,a.Z)(l,1)[0],l.length>1&&l[1].split("&").forEach(function(e){var t=e.split("="),n=(0,a.Z)(t,2),i=n[0],r=n[1];i&&r&&(o[i]=r)}),Object.keys(o=(0,i.Z)((0,i.Z)((0,i.Z)({},o),t),{},{fit:(null==t?void 0:t.fit)||o.fit||"crop"})).length>0&&(Object.keys(o).forEach(function(e){r=r.concat("".concat(e,"=").concat(o[e],"&"))}),r=r.slice(0,r.length-1)),r.length>0&&(n="".concat(n,"?").concat(r)),n}},27472:function(e,t,n){"use strict";var i=n(8222).Z;t.Z=i},98002:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return nL}});var i,a,r,l,o,s,d,u,c,m,f,v,g,p,h,w,k,N,x,b,y,I,S,E,O,T,C,R,_,L,Z,j,P,A,D,F,M,U,z,V,B,G,$,H,K,W,q,Y,J,Q,X=n(22405),ee=n(87643),et=n(51626),en=n(11527),ei=function(e){var t=e.className,n=e.size,a=void 0===n?32:n;return(0,en.jsx)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:a,height:a,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:i||(i=(0,en.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.167 6.116a.052.052 0 1 0 0 .104.052.052 0 0 0 0-.104Zm-1.615.052a1.615 1.615 0 1 1 3.23 0 1.615 1.615 0 0 1-3.23 0ZM12 6.116a.052.052 0 1 0 0 .104.052.052 0 0 0 0-.104Zm-1.614.052a1.615 1.615 0 1 1 3.229 0 1.615 1.615 0 0 1-3.23 0Zm7.448-.052a.052.052 0 1 0 0 .104.052.052 0 0 0 0-.104Zm-1.614.052a1.615 1.615 0 1 1 3.229 0 1.615 1.615 0 0 1-3.23 0ZM6.167 11.946a.052.052 0 1 0 0 .104.052.052 0 0 0 0-.104Zm-1.615.052a1.615 1.615 0 1 1 3.23 0 1.615 1.615 0 0 1-3.23 0ZM12 11.946a.052.052 0 1 0 0 .104.052.052 0 0 0 0-.104Zm-1.614.052a1.615 1.615 0 1 1 3.229 0 1.615 1.615 0 0 1-3.23 0Zm7.448-.052a.052.052 0 1 0 0 .104.052.052 0 0 0 0-.104Zm-1.614.052a1.615 1.615 0 1 1 3.23 0 1.615 1.615 0 0 1-3.23 0ZM6.167 17.782a.052.052 0 1 0 0 .104.052.052 0 0 0 0-.104Zm-1.615.052a1.615 1.615 0 1 1 3.23 0 1.615 1.615 0 0 1-3.23 0ZM12 17.782a.052.052 0 1 0 0 .104.052.052 0 0 0 0-.104Zm-1.614.052a1.615 1.615 0 1 1 3.229 0 1.615 1.615 0 0 1-3.23 0Zm7.448-.052a.052.052 0 1 0 0 .104.052.052 0 0 0 0-.104Zm-1.614.052a1.615 1.615 0 1 1 3.229 0 1.615 1.615 0 0 1-3.23 0Z",fill:"none",className:"tw-fill-current"}))})},ea=n(33198),er=n(66287),el=n(67519),eo=function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsx)("svg",{className:void 0===t?"":t,width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:m||(m=(0,en.jsx)("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,en.jsxs)("g",{fill:"#49F2E1",children:[(0,en.jsx)("path",{opacity:".4",d:"M16.698 18.294H7.21c-.93 0-1.675-.744-1.675-1.675V9.178h12.837v7.441c0 .93-.744 1.675-1.674 1.675Z"}),(0,en.jsx)("path",{d:"M3.674 15.968v-7.07c0-.278-.186-.464-.465-.464s-.465.186-.465.465v7.07c0 .278.186.464.465.464.28 0 .465-.186.465-.465Z"}),(0,en.jsx)("path",{d:"M1.349 8.713 11.395 5.55a2.655 2.655 0 0 1 1.21 0L22.65 8.713c.465.186.465.651 0 .837l-10.046 3.163a2.653 2.653 0 0 1-1.21 0L1.35 9.55c-.465-.186-.465-.651 0-.837Z"})]})}))})},es=function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsx)("svg",{className:void 0===t?"":t,width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:f||(f=(0,en.jsx)("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,en.jsxs)("g",{fill:"#4B22F4",children:[(0,en.jsx)("path",{opacity:".4",d:"M16.698 18.294H7.21c-.93 0-1.675-.744-1.675-1.675V9.178h12.837v7.441c0 .93-.744 1.675-1.674 1.675Z"}),(0,en.jsx)("path",{d:"M3.674 15.968v-7.07c0-.278-.186-.464-.465-.464s-.465.186-.465.465v7.07c0 .278.186.464.465.464.28 0 .465-.186.465-.465Z"}),(0,en.jsx)("path",{d:"M1.349 8.713 11.395 5.55a2.655 2.655 0 0 1 1.21 0L22.65 8.713c.465.186.465.651 0 .837l-10.046 3.163a2.653 2.653 0 0 1-1.21 0L1.35 9.55c-.465-.186-.465-.651 0-.837Z"})]})}))})},ed=function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsx)("svg",{className:void 0===t?"":t,width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:v||(v=(0,en.jsx)("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,en.jsx)("path",{d:"M19.25 12.126c0 3.374-2.619 6.127-5.904 6.127V6c3.24.044 5.904 2.752 5.904 6.126ZM10.904 12.127c0 3.374-2.619 6.126-5.904 6.126V6c3.24.045 5.904 2.753 5.904 6.127Z",fill:"#9DA0BB"})}))})},eu=function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsx)("svg",{className:void 0===t?"":t,width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:g||(g=(0,en.jsxs)("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,en.jsx)("rect",{width:"24",height:"24",rx:"6",fill:"#F7F8FA"}),(0,en.jsx)("path",{d:"M19.25 12.126c0 3.374-2.619 6.127-5.904 6.127V6c3.24.044 5.904 2.752 5.904 6.126ZM10.904 12.127c0 3.374-2.619 6.126-5.904 6.126V6c3.24.045 5.904 2.753 5.904 6.127Z",fill:"#70738E"})]}))})},ec="PRODUCT-LEARNING-TRANSLATION-KEY",em=[{code:"RECOGNITION",Icon:function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsxs)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:[N||(N=(0,en.jsx)("path",{fill:"none",className:"tw-fill-current",d:"M17.702 16.5V20.3C17.702 21 17.402 21.7 16.902 22.1C16.402 22.6 15.802 22.9 15.102 22.9C13.702 22.9 12.502 21.7 12.502 20.3V18.7C14.502 18.6 16.302 17.8 17.702 16.5Z"})),x||(x=(0,en.jsx)("path",{fill:"none",className:"tw-fill-current",d:"M11.5018 18.7V20.3C11.5018 21 11.2018 21.7 10.7018 22.1C10.2018 22.6 9.60176 22.9 8.90176 22.9C7.50176 22.9 6.30176 21.7 6.30176 20.3V16.5C7.70176 17.8 9.50176 18.6 11.5018 18.7Z"})),b||(b=(0,en.jsx)("path",{fill:"none",className:"tw-fill-current",opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M18.202 15.9C19.502 14.5 20.302 12.5 20.302 10.4C20.302 5.8 16.602 2 11.902 2C7.20195 2 3.50195 5.8 3.50195 10.4C3.50195 12.5 4.30195 14.5 5.80195 15.9C5.90195 16.1 6.10195 16.3 6.30195 16.5C7.70195 17.7 9.50195 18.6 11.502 18.7H11.702H12.002H12.302H12.502C14.502 18.6 16.302 17.8 17.702 16.5C17.802 16.3 18.002 16.1 18.202 15.9ZM9.20195 14.6008L11.902 13.2008L14.602 14.6008L14.102 11.6008L16.302 9.40078L13.302 9.00078L11.902 6.30078L10.502 9.00078L7.50195 9.40078L9.70195 11.6008L9.20195 14.6008Z"}))]})},title:"PRODUCTS_RECOGNITION_TITLE",description:"PRODUCTS_RECOGNITION_DESCRIPTION",url:"",isTalentLink:!0},{code:"PERFORMANCE",Icon:function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsxs)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:[p||(p=(0,en.jsx)("path",{className:"tw-fill-current",opacity:"0.4",d:"M12.9254 19.2859H20.0129V8.61094C20.0129 6.68594 18.4379 5.02344 16.4254 5.02344C14.5004 5.02344 12.8379 6.59844 12.8379 8.61094V19.2859H12.9254Z",fill:"none"})),h||(h=(0,en.jsx)("path",{className:"tw-fill-current",d:"M16.4287 12C18.3617 12 19.9287 10.433 19.9287 8.5C19.9287 6.567 18.3617 5 16.4287 5C14.4957 5 12.9287 6.567 12.9287 8.5C12.9287 10.433 14.4957 12 16.4287 12Z",fill:"none"})),w||(w=(0,en.jsx)("path",{className:"tw-fill-current",opacity:"0.4",d:"M7.5875 19.2863C9.5125 19.2863 11.175 17.7113 11.175 15.6988V12.1988C11.175 10.2738 9.6 8.61133 7.5875 8.61133C5.6625 8.61133 4 10.1863 4 12.1988V15.7863C4.0875 17.7113 5.6625 19.2863 7.5875 19.2863Z",fill:"none"})),k||(k=(0,en.jsx)("path",{className:"tw-fill-current",d:"M7.58691 19.2871C9.51991 19.2871 11.0869 17.7201 11.0869 15.7871C11.0869 13.8541 9.51991 12.2871 7.58691 12.2871C5.65392 12.2871 4.08691 13.8541 4.08691 15.7871C4.08691 17.7201 5.65392 19.2871 7.58691 19.2871Z",fill:"none"}))]})},title:"PRODUCTS_PERFORMANCE_TITLE",description:"PRODUCTS_PERFORMANCE_DESCRIPTION",url:"",isTalentLink:!0},{code:"CLIMATE_ENGAGEMENT",Icon:function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsxs)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:i,height:i,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[d||(d=(0,en.jsx)("path",{className:"tw-fill-current",d:"M4.38281 6.98438C3.07031 8.29688 3.07031 10.3969 4.38281 11.7094L11.9953 19.3219L16.7203 14.5969L9.10781 6.98438C7.79531 5.67188 5.69531 5.67188 4.38281 6.98438Z",fill:"none",opacity:"0.4"})),u||(u=(0,en.jsx)("path",{className:"tw-fill-current",d:"M17.2459 12.6734C19.0822 12.6734 20.5709 11.1848 20.5709 9.34844C20.5709 7.51209 19.0822 6.02344 17.2459 6.02344C15.4096 6.02344 13.9209 7.51209 13.9209 9.34844C13.9209 11.1848 15.4096 12.6734 17.2459 12.6734Z",fill:"none"})),c||(c=(0,en.jsx)("path",{className:"tw-fill-current",d:"M6.7459 12.6734C8.58225 12.6734 10.0709 11.1848 10.0709 9.34844C10.0709 7.51209 8.58225 6.02344 6.7459 6.02344C4.90955 6.02344 3.4209 7.51209 3.4209 9.34844C3.4209 11.1848 4.90955 12.6734 6.7459 12.6734Z",fill:"none"}))]})},title:"PRODUCTS_ENVIRONMENT_TITLE",description:"PRODUCTS_RENVIRONMENT_DESCRIPTION",url:"",isTalentLink:!0},{code:"E-LEARNING",Icon:function(e){var t=e.className,n=void 0===t?"tw-text-neutral-light-800":t,i=e.size,a=void 0===i?32:i,r=e.rootClassName;return(0,en.jsxs)("span",{className:r,children:[(0,en.jsx)("span",{className:"tw-inline-block dark:tw-hidden",children:(0,en.jsx)(es,{size:a,className:n})}),(0,en.jsx)("span",{className:"tw-hidden dark:tw-inline-block",children:(0,en.jsx)(eo,{size:a,className:n})})]})},title:"PRODUCTS_ELEARNING_TITLE",description:"PRODUCTS_ELEARNING_DESCRIPTION",url:"/org/[slug]/panel/content/courses/",urlLX:"/org/[slug]/learn/"}],ef=[{code:"STADISTICS_ANALYTICS",Icon:function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsxs)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:[I||(I=(0,en.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 13a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6Zm6 0H4v6h4v-6Z",fill:"none",className:"tw-fill-current"})),S||(S=(0,en.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 9a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V9Zm6 0h-4v10h4V9Z",fill:"none",className:"tw-fill-current"})),E||(E=(0,en.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4.5v-2H14V5Zm6 0h-4v14h4V5Z",fill:"none",className:"tw-fill-current"}))]})},title:"PRODUCTS_ANALYTICS_TITLE",description:"PRODUCTS_ANALYTICS_DESCRIPTION",url:"",isTalentLink:!0},{code:"ADMIN-PANEL",Icon:function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsx)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:y||(y=(0,en.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m8.379 3.964 2.328 2.329A1 1 0 0 1 11 7v3a1 1 0 0 1-1 1H7a1 1 0 0 1-.707-.293L3.964 8.38a5 5 0 0 0 7.105 5.219 1 1 0 0 1 1.138.195l6 6a1.121 1.121 0 0 0 1.586-1.586l-6-6a1 1 0 0 1-.195-1.138 5 5 0 0 0-5.22-7.105Zm-2.31-1.366a7 7 0 0 1 9.61 8.667l5.528 5.528a3.121 3.121 0 1 1-4.414 4.414l-5.528-5.528a7 7 0 0 1-8.667-9.61 1 1 0 0 1 1.61-.276L7.413 9H9V7.414L5.793 4.207a1 1 0 0 1 .276-1.61Z",fill:"none",className:"tw-fill-current"}))})},title:"PRODUCTS_MANAGE_TITLE",description:"PRODUCTS_MANAGE_DESCRIPTION",url:"/org/[slug]/panel/talent-suite/usuarios/"}],ev=[{code:"FUTURE-PEOPLE",Icon:function(e){var t=e.className,n=void 0===t?"tw-text-neutral-light-800":t,i=e.size,a=void 0===i?32:i,r=e.rootClassName;return(0,en.jsxs)("span",{className:r,children:[(0,en.jsx)("span",{className:"tw-inline-block dark:tw-hidden",children:(0,en.jsx)(eu,{size:a,className:n})}),(0,en.jsx)("span",{className:"tw-hidden dark:tw-inline-block",children:(0,en.jsx)(ed,{size:a,className:n})})]})},title:"PRODUCTS_TREND_FUTURE_TITLE",description:"PRODUCTS_TREND_FUTURE_DESCRIPTION",url:"https://www.crehana.com/blog/",isExternalLink:!0},{code:"AMAZING-PEOPLE",Icon:function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsxs)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:i,height:i,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 16",fill:"none",children:[a||(a=(0,en.jsx)("path",{className:"tw-fill-current",d:"M20.1332 13.7713C20.7792 13.7713 21.3391 13.2545 21.3391 12.6085V3.39212C21.3391 2.74611 20.8222 2.22931 20.1762 2.22931C19.5302 2.22931 19.0134 2.74611 19.0134 3.39212V12.5654C18.9273 13.2115 19.4872 13.7713 20.1332 13.7713Z",fill:"none"})),r||(r=(0,en.jsx)("path",{className:"tw-fill-current",d:"M11.0848 15.365C11.7308 15.365 12.2906 14.8482 12.2906 14.2022V1.7988C12.2476 1.15279 11.7308 0.635983 11.0848 0.635983C10.4387 0.635983 9.92194 1.15279 9.92194 1.7988V14.1591C9.87887 14.8051 10.3957 15.365 11.0848 15.365Z",fill:"none"})),l||(l=(0,en.jsx)("path",{className:"tw-fill-current",d:"M15.6063 12.3072C16.2523 12.3072 16.8122 11.7904 16.8122 11.1444V4.85658C16.7691 4.21057 16.2523 3.65069 15.6063 3.65069C14.9603 3.65069 14.4435 4.1675 14.4435 4.81351V11.1013C14.4004 11.7904 14.9603 12.3072 15.6063 12.3072Z",fill:"none"})),o||(o=(0,en.jsx)("path",{className:"tw-fill-current",d:"M6.52265 10.8856C7.16866 10.8856 7.72853 10.3688 7.72853 9.72274V6.32043C7.72853 5.67442 7.21172 5.15762 6.56572 5.15762C5.91971 5.15762 5.4029 5.67442 5.4029 6.32043V9.67967C5.35983 10.3257 5.87664 10.8856 6.52265 10.8856Z",fill:"none"})),s||(s=(0,en.jsx)("path",{className:"tw-fill-current",d:"M2.00092 9.5941C2.64693 9.5941 3.2068 9.07729 3.2068 8.43128V7.61301C3.2068 6.967 2.69 6.45019 2.04399 6.45019C1.39798 6.45019 0.881172 6.967 0.881172 7.61301V8.43128C0.838105 9.03423 1.35491 9.5941 2.00092 9.5941Z",fill:"none"}))]})},title:"PRODUCTS_TREND_AMAZING_TITLE",description:"PRODUCTS_TREND_AMAZING_DESCRIPTION",url:"https://open.spotify.com/show/4e4HZuphxpKot9xfaqXt9k?si=e5f3d9f5cde44729",isExternalLink:!0}],eg=(0,el.Z)({},ec,{USER_DASHBOARD_PRODUCTS_LABEL:"Products",PRODUCTS_TITLE:"Crehana Products",PRODUCTS_RECOGNITION_TITLE:"Recognitions",PRODUCTS_RECOGNITION_DESCRIPTION:"Recognize and promote achievements with medals",PRODUCTS_PERFORMANCE_TITLE:"Performance",PRODUCTS_PERFORMANCE_DESCRIPTION:"Goal management and development plan",PRODUCTS_ENVIRONMENT_TITLE:"Environment",PRODUCTS_RENVIRONMENT_DESCRIPTION:"Work climate assessments and surveys",PRODUCTS_ELEARNING_TITLE:"E-learning",PRODUCTS_ELEARNING_DESCRIPTION:"Courses and resources to enhance your skills",PRODUCTS_ANALYTICS_TITLE:"Analytics",PRODUCTS_ANALYTICS_DESCRIPTION:"Monitor your processes and generate reports",PRODUCTS_MANAGE_TITLE:"Manage",PRODUCTS_MANAGE_DESCRIPTION:"Manage users and company settings",PRODUCTS_TREND_FUTURE_TITLE:"Future of People",PRODUCTS_TREND_FUTURE_DESCRIPTION:"Relevant articles for professional development",PRODUCTS_TREND_AMAZING_TITLE:"Amazing People",PRODUCTS_TREND_AMAZING_DESCRIPTION:"Podcast with experts in personal development",PRODUCTS_ORGANIZATION_MANAGEMENT:"Organization Management",PRODUCTS_TRENDS_TITLE:"Trends"}),ep={es:(0,el.Z)({},ec,{USER_DASHBOARD_PRODUCTS_LABEL:"Productos",PRODUCTS_TITLE:"Productos Crehana",PRODUCTS_RECOGNITION_TITLE:"Reconocimientos",PRODUCTS_RECOGNITION_DESCRIPTION:"Reconoce y promueve los logros con medallas",PRODUCTS_PERFORMANCE_TITLE:"Desempe\xf1o",PRODUCTS_PERFORMANCE_DESCRIPTION:"Gesti\xf3n de objetivos y plan de desarrollo",PRODUCTS_ENVIRONMENT_TITLE:"Clima",PRODUCTS_RENVIRONMENT_DESCRIPTION:"Evaluaciones de clima laboral y encuestas",PRODUCTS_ELEARNING_TITLE:"E-learning",PRODUCTS_ELEARNING_DESCRIPTION:"Cursos y recursos para elevar tus habilidades",PRODUCTS_ANALYTICS_TITLE:"An\xe1litica",PRODUCTS_ANALYTICS_DESCRIPTION:"Monitorea tus procesos y genera reportes",PRODUCTS_MANAGE_TITLE:"Administrar",PRODUCTS_MANAGE_DESCRIPTION:"Gestiona usuarios y la configuraci\xf3n de la compa\xf1\xeda",PRODUCTS_TREND_FUTURE_TITLE:"Future of People",PRODUCTS_TREND_FUTURE_DESCRIPTION:"Art\xedculos relevantes para el desarrollo profesional",PRODUCTS_TREND_AMAZING_TITLE:"Amazing People",PRODUCTS_TREND_AMAZING_DESCRIPTION:"Podcast con expertos en desarrollo de personas",PRODUCTS_ORGANIZATION_MANAGEMENT:"Gesti\xf3n de la organizaci\xf3n",PRODUCTS_TRENDS_TITLE:"Tendencias"}),pt:(0,el.Z)({},ec,{USER_DASHBOARD_PRODUCTS_LABEL:"Produtos",PRODUCTS_TITLE:"Produtos Crehana",PRODUCTS_RECOGNITION_TITLE:"Agradecimentos",PRODUCTS_RECOGNITION_DESCRIPTION:"Gerenciar medalhas e recompensas da empresa",PRODUCTS_PERFORMANCE_TITLE:"Desempenho",PRODUCTS_PERFORMANCE_DESCRIPTION:"Plano de desenvolvimento e gest\xe3o de objetivos",PRODUCTS_ENVIRONMENT_TITLE:"Clima",PRODUCTS_RENVIRONMENT_DESCRIPTION:"Medir cultura e satisfa\xe7\xe3o",PRODUCTS_ELEARNING_TITLE:"E-learning",PRODUCTS_ELEARNING_DESCRIPTION:"Cursos, rotas e academias para suas equipes.",PRODUCTS_ANALYTICS_TITLE:"Anal\xedtica",PRODUCTS_ANALYTICS_DESCRIPTION:"Monitore seus processos e gere relat\xf3rios.",PRODUCTS_MANAGE_TITLE:"Gerenciar",PRODUCTS_MANAGE_DESCRIPTION:"Gerenciar usu\xe1rios e configura\xe7\xf5es da empresa",PRODUCTS_TREND_FUTURE_TITLE:"Futuro das Pessoas",PRODUCTS_TREND_FUTURE_DESCRIPTION:"Artigos relevantes para o desenvolvimento profissional",PRODUCTS_TREND_AMAZING_TITLE:"Pessoas incr\xedveis",PRODUCTS_TREND_AMAZING_DESCRIPTION:"Podcast com especialistas em desenvolvimento de pessoas",PRODUCTS_ORGANIZATION_MANAGEMENT:"Gest\xe3o da organiza\xe7\xe3o",PRODUCTS_TRENDS_TITLE:"Tend\xeancias"}),en:eg},eh=["addResourceBundle"],ew=function(){var e=(0,er.$)(ec),t=e.addResourceBundle,n=(0,ea.Z)(e,eh);return t(ep),n},ek=function(e){var t=e.decoratedIcon,n=e.description,i=e.Icon,a=e.isAdminPanel,r=e.isExternalLink,l=e.isSecondaryLink,o=e.onNavigateUrl,s=e.title,d=e.url,u=e.urlLX,c=e.productPlatform,m=ew().t;return(0,en.jsxs)("button",{type:"button",className:"tw-flex tw-items-start tw-gap-1.2 tw-cursor-pointer",onClick:function(){if(o){if("learning"===c){var e=a?d:u||d;r?window.open(d,"_blank"):o(e)}else o(a?d:u||d)}},children:[(0,en.jsx)("div",{className:(0,et.Z)(t&&"tw-bg-neutral-light-200 tw-rounded-0.4 tw-p-0.4","tw-flex tw-items-center tw-justify-center"),children:(0,en.jsx)(i,{size:t?24:32,className:l?"tw-text-neutral-light-700":"tw-text-primary-light-500 dark:tw-text-secondary-dark-300"})}),(0,en.jsxs)("div",{className:"tw-flex tw-flex-col tw-mb-2.4 tw-w-16 tw-items-start title-product [&>span]:hover:tw-text-primary-light-500",children:[(0,en.jsx)("span",{className:"tw-font-link1 tw-text-neutral-dark-800",children:m(s)}),(0,en.jsx)("p",{className:"tw-mt-0.4 tw-font-body5 tw-text-neutral-light-700 tw-text-left tw-font-normal",children:m(n)})]})]})},eN=n(50959),ex=n(71498),eb={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CompassLayoutsGetOrganizationByLearningSlugQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationSlug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"get_organization_by_learning_slug"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organization_slug"},value:{kind:"Variable",name:{kind:"Name",value:"organizationSlug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"original_id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:196,source:{body:"query CompassLayoutsGetOrganizationByLearningSlugQuery(\n $organizationSlug: String!\n) {\n get_organization_by_learning_slug(organization_slug: $organizationSlug) {\n slug\n original_id\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},ey=function(e){var t,n,i=e.organizationSlug,a=(0,ex.a)(eb,{context:{clientName:"v5"},variables:{organizationSlug:i},skip:!i}),r=a.data,l=a.loading,o=a.error;return{centralizedOrgSlug:null!==(t=null==r?void 0:null===(n=r.get_organization_by_learning_slug)||void 0===n?void 0:n.slug)&&void 0!==t?t:"",loading:l,error:!!o}},eI={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetUserTalentModules"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationSlug"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"talent_user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"organization_slug"},value:{kind:"Variable",name:{kind:"Name",value:"organizationSlug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"employee_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modules"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"submodules"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"modules_admin"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"submodules"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:336,source:{body:"query GetUserTalentModules($email: String!, $organizationSlug: String) {\n talent_user(email: $email, organization_slug: $organizationSlug) {\n employee_id\n modules {\n code\n submodules {\n code\n url\n }\n }\n modules_admin {\n code\n submodules {\n code\n url\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},eS=function(e){var t=e.email,n=e.isAdminPanel,i=ey({organizationSlug:e.slug||""}).centralizedOrgSlug,a=(0,ex.a)(eI,{variables:{organizationSlug:i,email:t||""},context:{clientName:"v5"},skip:!i||!t}).data,r=function(e){var t,i,r,l=n?null==a?void 0:null===(t=a.talent_user)||void 0===t?void 0:t.modules_admin:null==a?void 0:null===(i=a.talent_user)||void 0===i?void 0:i.modules,o=null==l?void 0:l.filter(function(t){return(null==t?void 0:t.code)===e}),s=null==o?void 0:o.flatMap(function(e){return null==e?void 0:e.submodules});if(null!=s&&s.length)return null===(r=s.find(function(e){return null==e?void 0:e.url}))||void 0===r?void 0:r.url};return{collaboratorProducts:(0,eN.useMemo)(function(){return em.map(function(e){return e.isTalentLink?(0,ee.Z)((0,ee.Z)({},e),{},{url:r(e.code)||""}):(0,ee.Z)({},e)})},[a,n]),managementProducts:(0,eN.useMemo)(function(){return ef.map(function(e){return e.isTalentLink?(0,ee.Z)((0,ee.Z)({},e),{},{url:r(e.code)||""}):(0,ee.Z)({},e)})},[a,n]),trendProducts:ev}},eE=n(6961),eO=n(84313),eT=function(){var e=(0,eN.useRef)(null),t=(0,eN.useState)(!1),n=(0,eE.Z)(t,2),i=n[0],a=n[1];return(0,eO.Z)(e,function(){return a(!1)}),{productsLearningRef:e,isOpen:i,setIsOpen:a}},eC=function(e){var t=e.userEmail,n=e.organizationSlug,i=e.isAdminPanel,a=e.onNavigateUrl,r=e.hasIntegration,l=e.productPlatform,o=ew().t,s=eS({email:t,isAdminPanel:i||!1,slug:n}),d=s.collaboratorProducts,u=s.managementProducts,c=s.trendProducts,m=function(){return d.map(function(e){return(0,en.jsx)(ek,(0,ee.Z)({isAdminPanel:i,onNavigateUrl:a,productPlatform:l},e),e.title)})},f=function(){return c.map(function(e){return(0,en.jsx)(ek,(0,ee.Z)({decoratedIcon:!0,isAdminPanel:i,onNavigateUrl:a,isSecondaryLink:!0,productPlatform:l},e),e.title)})};return i?(0,en.jsxs)(en.Fragment,{children:[(0,en.jsx)("div",{className:"tw-mx-2.4 tw-mt-2.4 tw-flex tw-flex-wrap",children:m()}),O||(O=(0,en.jsx)("div",{className:"tw-mx-2.4",children:(0,en.jsx)("div",{className:"tw-bg-neutral-light-300 tw-block tw-w-full tw-h-0.1",role:"separator"})})),(0,en.jsxs)("div",{className:"tw-m-2.4 tw-mb-0.8 tw-flex",children:[(0,en.jsxs)("div",{className:"tw-flex tw-flex-col",children:[(0,en.jsx)("p",{className:"tw-font-subtitle5 tw-pb-2.4 tw-text-neutral-light-800",children:o("PRODUCTS_ORGANIZATION_MANAGEMENT")}),u.map(function(e){return(0,en.jsx)(ek,(0,ee.Z)({isAdminPanel:i,onNavigateUrl:a,isSecondaryLink:!0,productPlatform:l},e),e.title)})]}),(0,en.jsxs)("div",{className:"tw-flex tw-flex-col",children:[(0,en.jsx)("p",{className:"tw-font-subtitle5 tw-pb-2.4 tw-text-neutral-light-800",children:o("PRODUCTS_TRENDS_TITLE")}),f()]})]})]}):r?(0,en.jsxs)(en.Fragment,{children:[(0,en.jsx)("div",{className:"tw-mx-2.4 tw-mt-2.4 tw-flex tw-flex-wrap",children:m()}),(0,en.jsx)("div",{className:"tw-m-2.4 tw-mb-0.8 tw-mt-0 tw-flex",children:(0,en.jsx)("div",{className:"tw-flex tw-flex-row-reverse",children:f()})})]}):(0,en.jsx)("div",{className:"tw-m-2.4 tw-mb-0.8 tw-flex",children:(0,en.jsx)("div",{className:"tw-flex tw-flex-row-reverse",children:f()})})},eR=function(e){var t=Object.assign({},(function(e){if(null==e)throw TypeError("Cannot destructure "+e)}(e),e)),n=ew().t,i=eT(),a=i.productsLearningRef,r=i.isOpen,l=i.setIsOpen;return(0,en.jsxs)(en.Fragment,{children:[(0,en.jsx)("div",{className:(0,et.Z)("tw-fixed tw-z-dialog tw-inset-0",r?"tw-visible":"tw-hidden"),style:{top:"62px",background:"rgba(223, 226, 253, 0.50)",backdropFilter:"blur(4px)"},tabIndex:-1}),(0,en.jsxs)("div",{className:(0,et.Z)(r?"tw-text-primary-light-500":"tw-text-neutral-light-800","tw-hidden md:tw-flex tw-items-center tw-font-subtitle5 tw-align-center tw-ml-1.6 tw-relative tw-h-full tw-cursor-pointer"),onClick:function(){return l(!r)},ref:a,children:[n("USER_DASHBOARD_PRODUCTS_LABEL"),T||(T=(0,en.jsx)(ei,{className:"currentColor tw-ml-0.4",size:16})),(0,en.jsxs)("div",{className:(0,et.Z)(r&&"tw-opacity-100 tw-pointer-events-auto","tw-text-left tw-top-full tw-mt-0.8 -tw-right-1 tw-transition-opacity tw-rounded-1 tw-z-dialog tw-opacity-0 tw-absolute tw-pointer-events-none tw-bg-neutral-light-100 tw-shadow-02"),children:[(0,en.jsx)("p",{className:"tw-font-label1 tw-uppercase tw-p-2.4 tw-text-neutral-dark-600",children:n("PRODUCTS_TITLE")}),C||(C=(0,en.jsx)("div",{className:"tw-bg-neutral-light-300 tw-block tw-w-full tw-h-0.1",role:"separator"})),(0,en.jsx)(eC,(0,ee.Z)({},t))]})]})]})},e_=n(47563),eL=n(16278),eZ=n(27850),ej=n(16587),eP=function(){var e,t=(0,ej.Z)().t,n=(0,e_.Z)(),i=n.urls,a=n.themeName,r=n.me,l=n.layoutConfig,o=n.onLogin,s=n.onRegister,d=n.onAuthButtonHover,u=r.isAnonymous&&!l.hideRegisterButton,c=r.isAnonymous&&!l.hideLoginButton,m=(r.isAnonymous||r.isPAYG)&&!l.hideShoppingCart,f=null!==(e=l.phoneInputProps)&&void 0!==e&&e.hide?"xs":"s";if(!u&&!c)return null;var v=d?{onMouseOver:d,onFocus:d}:void 0,g=o?{onClick:o}:{href:i.login},p=s?{onClick:s}:{href:i.register};return(0,en.jsxs)(eN.Fragment,{children:[(0,en.jsx)(eL.Z,(0,X.Z)({className:"px-8 ml-12 sm:hidden",label:t("LOGIN_LABEL_SHORT"),size:f,isWhite:"dark"===a.nav,htmlProps:(0,X.Z)({id:"main_menu_login_btn_mobile"},v)},g)),(0,en.jsxs)("div",{className:(0,et.Z)("hidden sm:flex items-center",m?"ml-12":"ml-20"),children:[c&&(0,en.jsx)(eL.Z,(0,X.Z)({htmlProps:(0,X.Z)({id:"login_mainMenu"},v),label:t("LOGIN_LABEL"),size:f,isWhite:"dark"===a.nav,className:(0,et.Z)({"mr-8 px-16":u})},g)),u&&(0,en.jsx)(eZ.Z,(0,X.Z)({htmlProps:(0,X.Z)({id:"register_mainMenu"},v),label:t("REGISTER_LABEL"),size:f,className:"px-16",isDark:"dark"===a.nav},p))]})]})},eA=n(77592),eD=n(59029),eF=n(93234),eM=n(12331),eU=function(){return(0,en.jsx)(eD.Z,{size:24,color:eF.zl})},ez=eA.ZP.div.withConfig({componentId:"sc-hn0oeh-0"})(["\n width: 1px;\n height: 24px;\n background-color: ",";\n"],eF.zl),eV=function(){var e=(0,ej.Z)().t,t=(0,e_.Z)().handleBlogSearch;return(0,en.jsxs)("div",{className:"flex flex-row items-center",children:[(0,en.jsx)(eM.Z,{customColor:eF.zl,customIcon:eU,htmlProps:{"aria-label":e("SEARCH_LABEL"),id:"blog-search-icon-button"},withoutBorders:!0,onClick:t}),R||(R=(0,en.jsx)(ez,{className:"ml-12 hidden sm:block"}))]})},eB=n(23442),eG=n(15780),e$=function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsx)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:_||(_=(0,en.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.232 14.64a1 1 0 0 0 1.408.128L12 10.302l5.36 4.466a1 1 0 0 0 1.28-1.536l-6-5a1 1 0 0 0-1.28 0l-6 5a1 1 0 0 0-.128 1.408Z",fill:"none",className:"tw-fill-current"}))})},eH=n(27484),eK=function(e){var t=e.toggleOpen,n=e.user,i=e.userRoleLabel,a=e.isOpen,r=n.thumbnailUrl,l=n.fullName,o=(0,eN.useState)(!1),s=(0,eE.Z)(o,2),d=s[0],u=s[1],c=a||d?"dark:tw-text-secondary-light-500 tw-text-primary-light-500":"dark:tw-text-neutral-dark-300 tw-text-neutral-light-800";return(0,en.jsxs)("button",{id:"user-avatar",className:"outline-none tw-flex tw-items-center",onMouseOver:function(){return u(!0)},onMouseLeave:function(){return u(!1)},onClick:t,onFocus:function(){},type:"button",children:[(0,en.jsx)(eH.Z,{className:"tw-h-3.2 tw-w-3.2 tw-rounded-full tw-flex-shrink-0 tw-overflow-hidden",imgClassName:"tw-object-cover tw-object-center",src:r,alt:l}),(0,en.jsxs)("div",{className:"tw-overflow-hidden tw-ml-1.2 tw-mr-1.2 tw-w-max-[18rem]",children:[(0,en.jsx)("p",{className:"tw-text-left tw-font-subtitle5 tw-truncate "+c,children:l}),i&&(0,en.jsx)("p",{className:"tw-text-left tw-font-body5 dark:tw-text-neutral-dark-500 tw-text-neutral-light-700",children:i})]}),(0,en.jsx)("div",{className:(0,et.Z)("tw-transition-transform tw-will-change-transform tw-duration-300",a?"tw-rotate-0":"tw-rotate-180"),children:(0,en.jsx)(e$,{size:20,className:c})})]})},eW=n(68673),eq=n(5341),eY={xs:20,s:32,m:48,l:96,xl:156},eJ={xs:"tw-w-2 tw-h-2",s:"tw-w-3.2 tw-h-3.2",m:"tw-w-4.8 tw-h-4.8",l:"tw-w-9.6 tw-h-9.6",xl:"tw-w-[15.6rem] tw-h-[15.6rem]"},eQ={s:"tw-bottom-[0.1rem] tw-right-[0.1rem] tw-h-0.8 tw-w-0.8 tw-border-[0.1rem]",m:"tw-bottom-[0.2rem] tw-right-[0.2rem] tw-h-1.2 tw-w-1.2 tw-border-[0.2rem]",l:"tw-bottom-0.4 tw-right-0.4 tw-h-2.4 tw-w-2.4 tw-border-0.4",xl:"tw-bottom-0.8 tw-right-0.8 tw-h-3.2 tw-w-3.2 tw-border-0.4"},eX={blue:"/7ff7eefa-d352-4088-bc63-67359a0fa1dd-avatar-default-blue.png",green:"/9c3d0306-3de5-4789-adb9-a6017ab7e94f-avatar-default-green.png",purple:"/ca166738-392d-4b34-8c28-9f7cf9251fc8-avatar-default-purple.png",red:"/92408a47-8b9e-4b2a-96ec-2d85ba0a15f9-avatar-default-red.png",violet:"/f2da02ea-9dc8-4411-aafe-9597e785e91e-avatar-default-violet.png",yellow:"/401c064a-8cd2-49f8-b569-901542b112e7-avatar-default-yellow.png"},e0=n(1685),e1=function(e){var t=e.size,n=e.status,i=e.userName,a=e.className,r=eQ[t],l="".concat((null==i?void 0:i.concat(" "))||"","(").concat("online"===n?"Online":"Offline",")");return(0,en.jsx)(e0.u,{label:l,position:"bottom",type:"small",children:(0,en.jsx)("span",{className:(0,eq.Z)(["tw-absolute","tw-rounded-full","tw-border-neutral-light-100"],a,r)})})},e2=n(8222),e4=function(e){var t=e.src,n=e.size;if(!t)return{};var i=eY[n];return{src:(0,e2.Z)(t,(0,X.Z)({w:i,h:i},{auto:"format",crop:"faces",dpr:2}))}},e5=function(e){var t=e.defaultAvatarColor,n=eY[e.size],i="https://crehana-vercel-images-prd.imgix.net/public"+eX[t];return(0,e2.Z)(i,{w:n,h:n})},e3=["src","alt","observerProps","imgClassName","className","size","isLazy","status","defaultAvatarColor","userName","spanElProps"],e6=function(e){var t=e.src,n=e.alt,i=void 0===n?"avatar":n,a=e.observerProps,r=e.imgClassName,l=e.className,o=e.size,s=void 0===o?"s":o,d=e.isLazy,u=e.status,c=e.defaultAvatarColor,m=void 0===c?"purple":c,f=e.userName,v=e.spanElProps,g=(0,eW.Z)(e,e3),p=(0,eN.useMemo)(function(){return e4({src:t,size:s})},[t,s]).src,h=(0,eN.useMemo)(function(){return e5({defaultAvatarColor:m,size:s})},[m,s]),w=eJ[s],k=(0,eq.Z)(["tw-w-full","tw-h-full","tw-rounded-full","tw-overflow-hidden"],r),N=(0,en.jsx)("span",{className:k,style:{backgroundImage:"url(".concat(h,")"),backgroundSize:"cover",backgroundPosition:"center"}});return(0,en.jsxs)("span",(0,X.Z)((0,X.Z)((0,X.Z)({},g),v),{},{className:(0,eq.Z)("tw-relative tw-inline-flex tw-items-center tw-justify-center tw-flex-shrink-0",l,w),children:[p?void 0===d||d?(0,en.jsx)(eH.Z,{className:k,imgClassName:"tw-object-cover",placeholder:h,src:p,alt:i,observerProps:a}):(0,en.jsx)("img",{className:k,style:{objectFit:"cover"},src:p,alt:i}):N,"xs"!==s&&u&&(0,en.jsx)(e1,{size:s,status:u,userName:f,className:(0,eq.Z)({"tw-bg-success-400":"online"===u,"tw-bg-neutral-light-700":"offline"===u})})]}))},e8={none:"tw-line-clamp-none",1:"tw-line-clamp-1",2:"tw-line-clamp-2",3:"tw-line-clamp-3",4:"tw-line-clamp-4",5:"tw-line-clamp-5",6:"tw-line-clamp-6"},e7=function(e){var t=e.lines,n=e.className,i=e.children;return(0,en.jsx)("p",{className:(0,eq.Z)("tw-block tw-overflow-hidden tw-text-ellipsis tw-whitespace-nowrap tw-m-0",!!t&&e8[t],n),children:i})},e9="profile-ui-translations-key",te=(0,el.Z)({},e9,{PROFILE_ACCOUNT:"Account",PROFILE_COMPANY:"Company",PROFILE_NIGHTSWITCH:"Night Mode",PROFILE_PANEL:"Panel",PROFILE_LOGOUT:"Logout",PROFILE_PROFESSOR:"Professor",PROFILE_MENTOR:"Mentor",PROFILE_ADMIN:"Admin",PROFILE_LEADER:"Leader",PROFILE_MEMBER:"Member",PROFILE_COURSES:"My Courses",PROFILE_PROFILE:"My Profile",PROFILE_MANAGE_ACCOUNT:"Manage Account",PROFILE_HELP_CENTER:"Help Center",PROFILE_CONFIGURATION:"Configuration",PROFILE_MENTORS:"Mentors"}),tt={es:(0,el.Z)({},e9,{PROFILE_ACCOUNT:"Cuenta",PROFILE_NIGHTSWITCH:"Modo Nocturno",PROFILE_COMPANY:"Compa\xf1\xeda",PROFILE_PANEL:"Panel",PROFILE_LOGOUT:"Cerrar sesi\xf3n",PROFILE_PROFESSOR:"Profesor",PROFILE_MENTOR:"Mentor",PROFILE_ADMIN:"Administrador",PROFILE_LEADER:"L\xedder",PROFILE_MEMBER:"Colaborador",PROFILE_COURSES:"Mis cursos",PROFILE_PROFILE:"Mi Perfil",PROFILE_MANAGE_ACCOUNT:"Configurar cuenta",PROFILE_HELP_CENTER:"Centro de ayuda",PROFILE_CONFIGURATION:"Configuraci\xf3n",PROFILE_MENTORS:"Mentores"}),pt:(0,el.Z)({},e9,{PROFILE_ACCOUNT:"Conta",PROFILE_COMPANY:"Compa\xf1\xeda",PROFILE_NIGHTSWITCH:"Modo Noturno",PROFILE_PANEL:"Painel",PROFILE_LOGOUT:"Fechar sess\xe3o",PROFILE_PROFESSOR:"Professor",PROFILE_MENTOR:"Mentor",PROFILE_ADMIN:"Administrador",PROFILE_LEADER:"L\xedder",PROFILE_MEMBER:"Colaborador",PROFILE_COURSES:"Meus cursos",PROFILE_PROFILE:"Meu perfil",PROFILE_MANAGE_ACCOUNT:"Configurar conta",PROFILE_HELP_CENTER:"Centro de ajuda",PROFILE_CONFIGURATION:"Configura\xe7\xe3o",PROFILE_MENTORS:"Mentores"}),en:te},tn=["addResourceBundle"],ti=function(){var e=(0,er.$)(e9),t=e.addResourceBundle,n=(0,ea.Z)(e,tn);return t(tt),n},ta=n(20149),tr=function(e){var t=e.user,n=ti().t,i=t.thumbnailUrl,a=t.fullName,r=t.email,l=t.profileUrl;return(0,en.jsx)(en.Fragment,{children:(0,en.jsxs)("div",{className:"tw-mb-1.6",children:[(0,en.jsx)(ta.Z,{label:n("PROFILE_ACCOUNT")}),(0,en.jsxs)("div",{className:"tw-flex tw-gap-1 tw-justify-center tw-min-w-0",children:[(0,en.jsx)("a",{type:"button",href:l,target:"_blank",rel:"noreferrer",children:(0,en.jsx)(e6,{src:i,alt:a,size:"m"})}),(0,en.jsxs)("div",{className:"tw-flex tw-flex-col tw-items-start tw-justify-start tw-gap-0.4 tw-min-w-0",children:[(0,en.jsx)("a",{type:"button",href:l,target:"_blank",rel:"noreferrer",className:"tw-truncate tw-w-full",children:(0,en.jsx)(e7,{lines:1,className:"tw-text-left tw-font-subtitle5 tw-w-full dark:tw-text-neutral-light-100",children:a})}),(0,en.jsx)(e7,{lines:1,className:"tw-text-left tw-font-body5 tw-text-neutral-light-700 dark:tw-text-neutral-dark-500 tw-w-full",children:r})]})]})]})})},tl=function(e){var t=e.link,n=t.adornment,i=(0,eN.useState)(!1),a=(0,eE.Z)(i,2),r=a[0],l=a[1],o=r?"dark:hover:tw-text-secondary-light-500 hover:tw-text-primary-light-500":"dark:tw-text-neutral-light-100 tw-text-neutral-light-800";return(0,en.jsxs)("a",{href:t.url,className:(0,et.Z)("tw-flex tw-items-center tw-px-0.8 tw-py-0.8 tw-cursor-pointer tw-w-full tw-rounded-0.8",r?"dark:tw-bg-neutral-dark-700 tw-bg-neutral-light-200":"",o),target:t.openInNewTab?"_blank":void 0,rel:"noopener noreferrer",onMouseOver:function(){return l(!0)},onMouseLeave:function(){return l(!1)},onFocus:function(){},children:[(0,en.jsx)("span",{className:"tw-font-link1",children:t.label}),n&&(0,en.jsx)("div",{className:"tw-ml-0.8",children:(0,en.jsx)(n.icon,{size:20,className:"dark:tw-text-neutral-dark-500 tw-text-neutral-light-700"})})]},t.key)},to=function(e){var t=e.links;return 0==t.length?null:(0,en.jsx)("div",{className:"tw-w-full tw-mt-0.8 tw-pt-0.8 tw-border-solid tw-border-t tw-border-t-neutral-light-300 dark:tw-border-t-neutral-dark-700 -tw-mb-1.2",children:t.map(function(e){return(0,en.jsx)(tl,{link:e},e.key)})})},ts=n(37931),td=function(e){var t=e.options,n=e.defaultSelectedItem,i=ti().t,a=(0,eN.useState)(void 0),r=(0,eE.Z)(a,2),l=r[0],o=r[1];return(0,en.jsxs)("div",{className:"tw-w-full tw-mt-2 tw-pt-2 tw-border-solid tw-border-t tw-border-t-neutral-light-300 dark:tw-border-t-neutral-dark-700 tw-px-0.8",children:[(0,en.jsx)(ta.Z,{label:i("PROFILE_COMPANY")}),(0,en.jsx)(ts.L,{id:"company-dropdown",size:"s",items:t,onSelect:function(e){if(null!=e&&e.selectedItem){var t=e.selectedItem;o(t),window.location.href=t.url}},selectedItem:l||n,defaultSelectedItem:n,clampSelectedItem:!0,full:!0,multilineOption:!0})]})},tu=n(82284),tc=n(10422),tm=function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsx)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:L||(L=(0,en.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.707 3.293a1 1 0 0 0-1.414 0l-7.536 7.535a5 5 0 1 0 1.414 1.414L15 9.415l1.293 1.293a1 1 0 0 0 1.414-1.414L16.414 8 18 6.414l1.293 1.293a1 1 0 1 0 1.414-1.414L19.414 5l.293-.293a1 1 0 0 0 0-1.414ZM5 15a3 3 0 1 1 6 0 3 3 0 0 1-6 0Z",fill:"none",className:"tw-fill-current"}))})},tf=n(30165),tv=n(45316),tg=n(62650),tp=n(76414),th=n(54737),tw={open:!1,animated:!0,delay:200},tk=function(e,t){if(!e)return 0;var n=e.includes("px")?+e.split("px")[0]:e.includes("%")?+e.split("%")[0]*t*.01:e;return Number.isNaN(+n)?0:+n},tN=function(e){if(!e||"undefined"==typeof window)return{width:0,height:0};var t=e.getBoundingClientRect(),n=window.getComputedStyle(e),i=n.width,a=n.height;return{width:tk("".concat(i),t.width),height:tk("".concat(a),t.height)}},tx=function(e){var t=(0,eN.useState)({width:0,height:0}),n=(0,th.Z)(t,2),i=n[0],a=n[1],r=function(){var t=tN(e.current);a({width:t.width,height:t.height})};return(0,eN.useEffect)(function(){return r()},[e.current]),[i,r]},tb=function(e){var t=e.open,n=void 0===t?tw.open:t,i=e.delay,a=void 0===i?tw.delay:i,r=e.animated,l=void 0===r?tw.animated:r,o=e.style,s=e.className,d=e["data-testid"],u=e.notAssignHeight,c=e.children,m=(0,eN.useId)(),f=(0,eN.useRef)(null),v=(0,eN.useState)(n?"auto":"0"),g=(0,th.Z)(v,2),p=g[0],h=g[1],w=(0,eN.useState)(n),k=(0,th.Z)(w,2),N=k[0],x=k[1],b=(0,eN.useRef)(null),y=(0,eN.useRef)(),I=(0,eN.useRef)(),S=(0,eN.useRef)(),E=(0,eN.useState)(a),O=(0,th.Z)(E,2),T=O[0],C=O[1],R=tx(b),_=(0,th.Z)(R,2),L=_[0],Z=_[1];(0,eN.useEffect)(function(){u?h("auto"):(h("".concat(L.height,"px")),L.height)}),(0,eN.useEffect)(function(){C(l?a:0)},[l,a]),(0,eN.useEffect)(function(){var e,t;if(n!==N)return n||(Z(),e=requestAnimationFrame(function(){h("".concat(L.height,"px"))})),y.current=window.setTimeout(function(){x(n),clearTimeout(y.current)},30),n?S.current=window.setTimeout(function(){t=requestAnimationFrame(function(){h("auto"),clearTimeout(S.current)})},T):I.current=window.setTimeout(function(){clearTimeout(I.current)},T/2),function(){clearTimeout(y.current),clearTimeout(I.current),clearTimeout(S.current),[e,t].forEach(function(e){return"number"==typeof e&&cancelAnimationFrame(e)})}},[n,l]);var j=(0,eN.useMemo)(function(){return(0,X.Z)((0,X.Z)({},o),{},{height:l?N?p:"0":n?void 0:"0"})},[l,p,n,N,o]);return(0,en.jsx)("div",{ref:f,style:j,"data-testid":d,className:(0,eq.Z)("tw-p-0 tw-m-0 tw-overflow-hidden",(0,tp.Z)((0,tp.Z)((0,tp.Z)({"tw-transition-all":l},"tw-duration-".concat(T),l&&T>0),"tw-opacity-100",N&&l),"tw-opacity-0",!N&&l),s),children:(0,en.jsx)("div",{ref:b,className:"compass-collapse-content-".concat(m),children:c})})},ty="collapse_permissions_role",tI=(0,el.Z)({},ty,{STEP_3_TOOLS_TAG:"{{total}} access",STEP_3_TABLE_COLUMN_1:"Tool",STEP_3_TABLE_COLUMN_2:"Configure and view results",STEP_3_TABLE_COLUMN_3:"View results",STEP_3_TABLE_COLUMN_4:"No access",STEP_3_TABLE_NO_APPLY:"Not applicable (Not an editable tool)"}),tS={es:(0,el.Z)({},ty,{STEP_3_TOOLS_TAG:"{{total}} permisos",STEP_3_TABLE_COLUMN_1:"Herramienta",STEP_3_TABLE_COLUMN_2:"Configurar y ver resultados",STEP_3_TABLE_COLUMN_3:"Ver resultados",STEP_3_TABLE_COLUMN_4:"Sin acceso",STEP_3_TABLE_NO_APPLY:"No aplica (No es una herramienta editable)"}),en:tI,pt:(0,el.Z)({},ty,{STEP_3_TOOLS_TAG:"{{total}} acesso",STEP_3_TABLE_COLUMN_1:"Ferramenta",STEP_3_TABLE_COLUMN_2:"Configurar e visualizar resultados",STEP_3_TABLE_COLUMN_3:"Ver resultados",STEP_3_TABLE_COLUMN_4:"Sem acesso",STEP_3_TABLE_NO_APPLY:"N\xe3o aplic\xe1vel (n\xe3o \xe9 uma ferramenta edit\xe1vel)"})},tE=n(94560),tO=n(96801),tT=n(65811),tC=function(e){var t=e.currentPermission,n=e.moduleKey,i=e.permissionKey,a=t.can_be_edited,r=t.can_be_viewed,l=t.name,o=t.description,s=[{checked:a,id:"".concat(n).concat(i,"-1")},{checked:r,id:"".concat(n).concat(i,"-2")},{checked:!a&&!r,id:"".concat(n).concat(i,"-3")}];return(0,en.jsxs)("div",{className:"tw-grid tw-grid-cols-12 tw-py-2 tw-border-t tw-border-solid tw-border-neutral-light-400 ",children:[(0,en.jsxs)("div",{className:"tw-flex tw-gap-1.2 tw-col-span-3 tw-font-link1 tw-px-2.4",children:[(0,en.jsx)("span",{children:l}),(0,en.jsx)(tT.p,{message:o||"",position:"right",children:Z||(Z=(0,en.jsx)(tO.Z,{className:"tw-flex tw-text-neutral-light-600",size:16}))})]}),s.map(function(e){return(0,en.jsx)("div",{className:"tw-col-span-3 tw-text-center tw-m-auto tw-px-2.4",children:e.checked&&(j||(j=(0,en.jsx)(tE.Z,{className:"tw-text-primary-light-500",size:24})))},e.id)})]})},tR=function(e){var t=e.permissions,n=(0,er.$)(ty).t;return(0,en.jsxs)("div",{className:"tw-flex tw-col-span-full tw-flex-col tw-justify-center tw-border tw-border-solid tw-border-neutral-light-400 tw-bg-neutral-light-100 tw-rounded-1.6",children:[(0,en.jsxs)("div",{className:"tw-grid tw-grid-cols-12 tw-items-center tw-bg-neutral-light-200 tw-rounded-t-1.6 tw-h-4.4",children:[(0,en.jsx)("div",{className:"tw-col-span-3 tw-font-link1 tw-px-2.4",children:n("STEP_3_TABLE_COLUMN_1")}),(0,en.jsx)("div",{className:"tw-col-span-3 tw-text-center tw-font-link1 tw-px-2.4",children:n("STEP_3_TABLE_COLUMN_2")}),(0,en.jsx)("div",{className:"tw-col-span-3 tw-text-center tw-font-link1 tw-px-2.4",children:n("STEP_3_TABLE_COLUMN_3")}),(0,en.jsx)("div",{className:"tw-col-span-3 tw-text-center tw-font-link1 tw-px-2.4",children:n("STEP_3_TABLE_COLUMN_4")})]}),t.map(function(t,n){return(0,en.jsx)(tC,(0,ee.Z)({currentPermission:t,permissionKey:n},e),t.id)})]})},t_=n(50802),tL=n(68537),tZ=function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsxs)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:[P||(P=(0,en.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm-1 3a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z",fill:"none",className:"tw-fill-current"})),A||(A=(0,en.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C7.52 4 3.907 6.647 1.132 11.504a1 1 0 0 0 0 .992C3.907 17.353 7.52 20 12 20s8.093-2.647 10.868-7.504a1 1 0 0 0 0-.992C20.093 6.647 16.48 4 12 4Zm0 14c-3.387 0-6.342-1.87-8.84-6C5.658 7.87 8.613 6 12 6c3.387 0 6.342 1.87 8.84 6-2.498 4.13-5.453 6-8.84 6Z",fill:"none",className:"tw-fill-current"}))]})},tj=function(e){var t=e.type,n=e.icon,i=e.label;if(!i||n){if(i&&n)return n;if("freemium"===t)return tZ;if("temporal-access"===t)return tL.Z}},tP=["className","type","label","icon","spanElProps"],tA=function(e){var t=e.className,n=e.type,i=void 0===n?"freemium":n,a=e.label,r=e.icon,l=e.spanElProps,o=(0,eW.Z)(e,tP),s=tj({type:i,icon:r,label:a});return(0,en.jsxs)("span",(0,X.Z)((0,X.Z)((0,X.Z)({},l),o),{},{className:(0,eq.Z)("tw-inline-flex tw-gap-0.4 tw-items-center","tw-whitespace-nowrap","tw-font-caption tw-lowercase","tw-py-0.4 tw-px-1.2 tw-rounded-[4rem]",null!=t&&t.includes("tw-text-")?"":"tw-text-primary-light-400",null!=t&&t.includes("tw-bg-")?"":"tw-bg-primary-light-100",t),children:[s&&s({className:"tw-h-1.6 tw-w-1.6"}),(0,en.jsx)("span",{className:"first-letter:tw-uppercase",children:a||("temporal-access"===i?"acceso temporal":"acceso gratuito")})]}))},tD=function(e){var t=e.name,n=e.permissions,i=(0,er.$)(ty).t,a=n.filter(function(e){return e.can_be_edited}).length||0,r=n.filter(function(e){return e.can_be_viewed}).length||0;return(0,en.jsxs)("div",{className:"tw-flex tw-items-center tw-flex-grow",children:[(0,en.jsx)("span",{className:"tw-flex-grow tw-font-subtitle5",children:t}),(0,en.jsx)(tA,{label:i("STEP_3_TOOLS_TAG",{interpolation:{total:a+r}}),className:"tw-font-body5 tw-font-normal tw-mr-2"}),D||(D=(0,en.jsx)(t_.Z,{className:"tw-ml-0.8",size:20}))]})},tF=function(e){var t=e.moduleKey,n=e.name,i=e.permissions;(0,(0,er.$)(ty).addResourceBundle)({es:(0,ee.Z)({},tS.es),pt:(0,ee.Z)({},tS.pt)},{injectOnce:!0});var a=(0,eN.useState)(!1),r=(0,eE.Z)(a,2),l=r[0],o=r[1],s=l?tg.Z:e$;return(0,en.jsxs)("div",{className:"tw-pb-1.6",children:[(0,en.jsxs)("div",{className:(0,et.Z)(l?"tw-border-primary-light-500":"tw-border-neutral-light-400","tw-h-6.4 tw-cursor-pointer tw-px-2.4 tw-py-1.2 tw-flex tw-items-center tw-flex-row tw-rounded-1.2 tw-border tw-border-solid"),onClick:function(){return o(!l)},onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&o(!l)},children:[(0,en.jsx)(s,{className:"tw-mr-2.4 tw-text-primary-light-500",size:24}),(0,en.jsx)(tD,{name:n,permissions:i})]}),(0,en.jsx)(tb,{open:l,className:(0,et.Z)(l&&"!tw-h-auto tw-mt-0.8","tw-w-full"),children:(0,en.jsx)(tR,{moduleKey:t,permissions:i})})]})},tM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRoleList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationSlug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"before"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"last"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"get_permission_groups"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organization_slug"},value:{kind:"Variable",name:{kind:"Name",value:"organizationSlug"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"before"},value:{kind:"Variable",name:{kind:"Name",value:"before"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"last"},value:{kind:"Variable",name:{kind:"Name",value:"last"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:346,source:{body:"query GetRoleList(\n $organizationSlug: String!\n $name: String\n $before: String\n $after: String\n $first: Int\n $last: Int\n) {\n get_permission_groups(\n organization_slug: $organizationSlug\n name: $name\n before: $before\n after: $after\n first: $first\n last: $last\n ) {\n edges {\n node {\n id\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},tU=function(e){var t=e.organizationSlug,n=(0,ex.a)(tM,{variables:{organizationSlug:t},fetchPolicy:"no-cache",context:{clientName:"v5"},skip:!t}),i=n.data;return{isLoading:n.loading,roles:(null==i?void 0:i.get_permission_groups.edges.flatMap(function(e){return e.node}))||[]}},tz={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPermissionsDetail"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationSlug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"permissionGroupId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"get_permission_group_detailed"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organization_slug"},value:{kind:"Variable",name:{kind:"Name",value:"organizationSlug"}}},{kind:"Argument",name:{kind:"Name",value:"permission_group_id"},value:{kind:"Variable",name:{kind:"Name",value:"permissionGroupId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"platform_modules"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"permissions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"can_be_edited"},name:{kind:"Name",value:"can_edit"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"can_be_viewed"},name:{kind:"Name",value:"can_view"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:421,source:{body:"query GetPermissionsDetail(\n $organizationSlug: String!\n $permissionGroupId: Int!\n) {\n get_permission_group_detailed(\n organization_slug: $organizationSlug\n permission_group_id: $permissionGroupId\n ) {\n platform_modules {\n description\n id\n name\n permissions {\n can_be_edited: can_edit\n can_be_viewed: can_view\n description\n id\n name\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},tV=function(e){var t,n,i=e.roleId,a=e.organizationSlug,r=(0,ex.a)(tz,{variables:{organizationSlug:a,permissionGroupId:i},fetchPolicy:"no-cache",skip:!i,context:{clientName:"v5"}}),l=r.data,o=r.loading,s=r.refetch;return{isLoading:o,permissionModules:null!==(t=null==l?void 0:null===(n=l.get_permission_group_detailed)||void 0===n?void 0:n.platform_modules)&&void 0!==t?t:[],refetch:s}},tB=function(e){var t,n=e.organizationSlug,i=tU({organizationSlug:n}),a=i.roles,r=i.isLoading,l=tV({roleId:null==a?void 0:null===(t=a[a.length-1])||void 0===t?void 0:t.id,organizationSlug:n}),o=l.isLoading,s=l.permissionModules;return(0,en.jsx)("div",{className:"tw-overflow-auto tw-max-h-[70vh]",children:o||r?Array.from({length:5}).map(function(){return(0,en.jsx)(tv.O,{className:"tw-w-full tw-h-6.4 tw-mb-1.6"},Math.random())}):null==s?void 0:s.map(function(e,t){return(0,en.jsx)(tF,{name:e.name,permissions:e.permissions,moduleKey:t},e.id)})})},tG=function(e){var t=e.close,n=e.isOpen,i=e.organizationSlug,a=(0,eN.useRef)(null);return((0,eO.Z)(a,t),n)?(0,en.jsx)("div",{ref:a,className:"tw-w-full tw-h-screen tw-absolute tw-top-0 tw-flex tw-items-center tw-justify-center",children:(0,en.jsx)("div",{className:(0,et.Z)(n&&"tw-opacity-100 tw-pointer-events-auto","tw-text-left tw-top-full tw-transition-opacity tw-rounded-1 tw-z-dialog tw-opacity-0 tw-pointer-events-none tw-bg-neutral-light-100 tw-shadow-02"),children:(0,en.jsxs)("div",{className:"tw-rounded-[10px] tw-p-2.4 tw-w-[712px] tw-max-w-[90vw]",children:[(0,en.jsxs)("div",{className:"tw-flex tw-justify-between tw-border-b tw-border-solid tw-border-neutral-light-400 tw-pb-2 tw-mb-2.4",children:[F||(F=(0,en.jsx)("p",{className:"tw-font-subtitle4",children:"Permisos"})),(0,en.jsx)("button",{type:"button",onClick:t,children:M||(M=(0,en.jsx)(tf.Z,{className:"tw-text-neutral-light-700",size:24}))})]}),(0,en.jsx)(tB,{organizationSlug:i})]})})}):null},t$=function(e){var t=e.organizationSlug,n=(0,eN.useState)(!1),i=(0,eE.Z)(n,2),a=i[0],r=i[1];return(0,eN.useEffect)(function(){document.body.style.overflow=a?"hidden":"unset"},[a]),(0,en.jsxs)("div",{className:"tw-pt-2",children:[(0,en.jsxs)("button",{type:"button",onClick:function(){return r(!a)},className:(0,et.Z)("tw-w-full tw-group tw-h-3.6 tw-px-1.2 tw-flex tw-items-center tw-justify-center tw-font-link1 tw-gap-0.8 tw-transition-colors","tw-rounded-1 tw-border tw-border-solid tw-border-neutral-light-500 dark:tw-border-neutral-dark-700","tw-bg-neutral-light-100 dark:tw-bg-neutral-dark-700","tw-text-neutral-light-800 dark:tw-text-neutral-light-100","hover:tw-border-primary-light-500 hover:tw-text-primary-light-500 dark:hover:tw-border-secondary-light-500 dark:hover:tw-text-secondary-light-500","active:tw-bg-primary-light-500 active:tw-text-neutral-light-100 dark:active:tw-bg-secondary-light-500 dark:active:tw-text-elevation-dark-02","aria-expanded:tw-bg-primary-light-500 aria-expanded:tw-text-neutral-light-100 dark:aria-expanded:tw-bg-secondary-light-500 dark:aria-expanded:tw-text-elevation-dark-02","disabled:tw-bg-neutral-light-400 disabled:tw-text-neutral-light-600 disabled:tw-border-neutral-light-400 dark:disabled:tw-bg-neutral-dark-500 dark:disabled:tw-text-neutral-dark-600 dark:disabled:tw-border-neutral-dark-500"),children:[U||(U=(0,en.jsx)(tm,{size:16,className:"tw-text-current"})),"Ver permisos"]}),(0,tc.createPortal)((0,en.jsxs)(en.Fragment,{children:[(0,en.jsx)("div",{className:(0,et.Z)("tw-fixed tw-inset-0",a?"tw-visible tw-z-dialog":"tw-hidden"),style:{top:"62px",background:"rgba(223, 226, 253, 0.50)",backdropFilter:"blur(4px)"},tabIndex:-1}),(0,en.jsx)(tG,{isOpen:a,close:function(){return r(!1)},organizationSlug:t})]}),document.body)]})},tH=function(e){var t=e.options,n=e.defaultSelected,i=e.organizationSlug,a=e.userRoleLabel,r=ti().t,l=(0,eN.useState)(n),o=(0,eE.Z)(l,2),s=o[0],d=o[1];return(0,en.jsxs)("div",{className:"tw-w-full tw-mt-2 tw-pt-2 tw-border-solid tw-border-t tw-border-t-neutral-light-300 dark:tw-border-t-neutral-dark-700",children:[(0,en.jsx)(ta.Z,{label:r("PROFILE_PANEL"),className:"tw-px-0.8"}),(0,en.jsx)("ul",{className:"tw-flex tw-flex-col tw-items-start",children:t.map(function(e,t){return(0,en.jsx)(tu.Z,{className:"".concat(0!==t?"tw-mt-1.2":""," tw-gap-0.8 tw-px-0.8"),size:"s",onChange:function(){e.value!==s.value&&(d(e),window.location.href=e.url)},checked:s.value===e.value,title:e.label},e.value)})}),["beta-pruebas","alfa-pruebas"].includes(i)&&"Administrador"===a&&(0,en.jsx)(t$,{organizationSlug:i})]})},tK=n(93465),tW=["checked","id","label","disabled","showLabel","description"],tq=(0,eN.forwardRef)(function(e,t){var n=e.checked,i=e.id,a=e.label,r=e.disabled,l=e.showLabel,o=e.description,s=(0,eW.Z)(e,tW);return(0,en.jsxs)("label",{htmlFor:i,className:"tw-flex tw-items-start tw-cursor-pointer",children:[(0,en.jsx)("div",{children:(0,en.jsxs)("div",{className:"tw-relative",children:[(0,en.jsx)("input",(0,X.Z)({type:"checkbox","aria-label":a,id:i,className:"tw-sr-only",ref:t,checked:n,disabled:r},s)),(0,en.jsx)("div",{className:(0,eq.Z)("tw-block tw-w-4.8 tw-h-2.4 tw-rounded-1.2",{"tw-bg-neutral-light-500":!n||r,"tw-bg-primary-light-400 dark:tw-bg-secondary-light-500":n&&!r})}),(0,en.jsx)("div",{className:(0,eq.Z)("tw-absolute tw-left-[2px] tw-top-[2px] tw-bottom-[2px] tw-bg-neutral-light-100 tw-w-2 tw-h-2 tw-rounded-full tw-transition",{"tw-translate-x-2.4":n})})]})}),l?(0,en.jsxs)("div",{className:"tw-flex tw-flex-col tw-pl-1.6",children:[(0,en.jsx)("span",{className:"tw-font-subtitle5 tw-inline-block tw-pb-0.4 dark:tw-text-neutral-light-100",children:a}),o?(0,en.jsx)("p",{className:"tw-font-body5 tw-w-24 dark:tw-text-neutral-dark-500",children:o}):null]}):null]})}),tY=function(e){var t=e.toggleDarkMode,n=e.isDark,i=ti().t;return(0,en.jsxs)("button",{className:"tw-pt-2 tw-px-0.8 tw-mt-2 tw-w-full tw-flex tw-items-center tw-border-solid tw-border-t tw-border-t-neutral-light-300 dark:tw-border-t-neutral-dark-700",onClick:t,type:"button",children:[(0,en.jsx)("p",{className:"tw-font-label1 tw-text-neutral-light-700 tw-mr-auto tw-uppercase",children:i("PROFILE_NIGHTSWITCH")}),(0,en.jsx)(tq,{id:"night-switch",checked:n,label:i("PROFILE_NIGHTSWITCH"),readOnly:!0})]})},tJ=n(96172),tQ=function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsxs)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:[z||(z=(0,en.jsx)("path",{d:"M5 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-2a1 1 0 1 0-2 0v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v2a1 1 0 1 0 2 0V6a3 3 0 0 0-3-3H5Z",fill:"none",className:"tw-fill-current"})),V||(V=(0,en.jsx)("path",{d:"M18.707 8.293a1 1 0 1 0-1.414 1.414L18.586 11H7a1 1 0 1 0 0 2h11.586l-1.293 1.293a1 1 0 0 0 1.414 1.414l3-3a1 1 0 0 0 0-1.414l-3-3Z",fill:"none",className:"tw-fill-current"}))]})},tX=function(){var e=(0,tJ.a)().logout,t=ti().t,n=(0,eN.useState)(!1),i=(0,eE.Z)(n,2),a=i[0],r=i[1],l=a?"dark:hover:tw-text-secondary-light-500 hover:tw-text-primary-light-500":"dark:tw-text-neutral-dark-500 tw-text-neutral-light-700";return(0,en.jsx)("div",{className:"tw-w-full tw-mt-2 tw-pt-2 tw-border-solid tw-border-t tw-border-t-neutral-light-300 dark:tw-border-t-neutral-dark-700",children:(0,en.jsxs)("button",{type:"button",onClick:e,className:(0,et.Z)("tw-flex tw-items-center tw-py-0.8 tw-px-0.8 tw-rounded-0.8 dark:tw-text-neutral-dark-500 tw-text-neutral-light-700 dark:hover:tw-text-secondary-light-500 hover:tw-text-primary-light-500",a&&"dark:tw-bg-neutral-dark-700 tw-bg-neutral-light-200"),onMouseOver:function(){return r(!0)},onMouseLeave:function(){return r(!1)},onFocus:function(){},children:[(0,en.jsx)(tQ,{size:20,className:l}),(0,en.jsx)("p",{className:"".concat(l," tw-font-subtitle5 tw-ml-0.8"),children:t("PROFILE_LOGOUT")})]})})},t0=function(){var e=(0,eN.useRef)(null),t=(0,eN.useState)(!1),n=(0,eE.Z)(t,2),i=n[0],a=n[1];return(0,eO.Z)(e,function(){return a(!1)}),{containerRef:e,isOpen:i,setIsOpen:a}},t1=function(e){var t=e.className,n=e.size,i=void 0===n?32:n;return(0,en.jsxs)("svg",{className:void 0===t?"tw-text-neutral-light-800":t,width:i,height:i,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",children:[B||(B=(0,en.jsx)("path",{d:"m17.586 5-8.293 8.293a1 1 0 1 0 1.414 1.414L19 6.414V9a1 1 0 1 0 2 0V4.001l-.001-.049A.996.996 0 0 0 20 3h-5a1 1 0 1 0 0 2h2.586Z",fill:"none",className:"tw-fill-current"})),G||(G=(0,en.jsx)("path",{d:"M3.879 6.879A3 3 0 0 1 6 6h5a1 1 0 1 1 0 2H6a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-5a1 1 0 1 1 2 0v5a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V9a3 3 0 0 1 .879-2.121Z",fill:"none",className:"tw-fill-current"}))]})},t2=n(99627),t4={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CompassLayoutsGetFlagOrganization"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"b2bOrganizationCurrent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"originalId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"features"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"originalId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scope"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isActive"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:205,source:{body:"query CompassLayoutsGetFlagOrganization($slug: String) {\n b2bOrganizationCurrent(slug: $slug) {\n originalId\n features {\n originalId\n name\n slug\n scope\n isActive\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},t5=function(e){var t,n,i=e.flag,a=e.organizationSlug,r=(0,ex.a)(t4,{variables:{slug:a},context:{clientName:"v4.b2b"},fetchPolicy:"network-only",skip:!a}),l=r.data,o=r.loading,s=null==l?void 0:null===(t=l.b2bOrganizationCurrent)||void 0===t?void 0:null===(n=t.features)||void 0===n?void 0:n.find(function(e){return(null==e?void 0:e.slug)===i});return{isActive:(null==s?void 0:s.isActive)||!1,isLoading:o}},t3={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MainMenuGetIsLeader"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationSlug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"username"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"organizationUserCurrent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"username"},value:{kind:"Variable",name:{kind:"Name",value:"username"}}},{kind:"Argument",name:{kind:"Name",value:"organizationSlug"},value:{kind:"Variable",name:{kind:"Name",value:"organizationSlug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isLead"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:228,source:{body:"query MainMenuGetIsLeader(\n $organizationSlug: String!\n $userId: ID\n $username: String\n) {\n organizationUserCurrent(\n userId: $userId\n username: $username\n organizationSlug: $organizationSlug\n ) {\n isLead\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},t6=function(e){var t,n,i=e.organizationSlug,a=(0,eB.P)().me,r=(0,ex.a)(t3,{context:{clientName:"v4.b2b"},notifyOnNetworkStatusChange:!0,skip:!(null!=a&&a.originalId)||!(null!=a&&a.username)||!i,variables:{userId:String(null==a?void 0:null===(t=a.organization)||void 0===t?void 0:t.originalId),username:null==a?void 0:a.username,organizationSlug:i}}),l=r.data,o=r.loading;return{isLeader:(null==l?void 0:null===(n=l.organizationUserCurrent)||void 0===n?void 0:n.isLead)||!1,isLoadingLeader:o}},t8=n(67442),t7=function(e){var t,n,i=e.slug,a=e.user,r=e.isLeader,l=e.t,o=e.customCollaboratorUrl,s=[],d={admin:"/org/".concat(i,"/panel/"),mentor:"/mentor/panel/proyectos",professor:"/panel-profesor/",leader:"/org/".concat(i,"/panel/lider/"),collaborator:"/org/".concat(i,"/learn/")};return(null!=a&&a.isB2BAdmin||(null==a?void 0:null===(t=a.organization)||void 0===t?void 0:t.myRole)==="admin"||(null==a?void 0:null===(n=a.organization)||void 0===n?void 0:n.myRole)==="owner-corporation")&&s.push({value:"admin",url:d.admin,label:l("PROFILE_ADMIN")}),null!=a&&a.isMentor&&s.push({value:"mentor",url:d.mentor,label:l("PROFILE_MENTOR")}),null!=a&&a.isTeacher&&s.push({value:"professor",url:d.professor,label:l("PROFILE_PROFESSOR")}),r&&s.push({value:"leader",url:d.leader,label:l("PROFILE_LEADER")}),s.push({value:"collaborator",url:o||d.collaborator,label:l("PROFILE_MEMBER")}),s},t9=function(e){var t=e.userRoles,n=e.currentUrl,i=n.indexOf("/panel/lider")>-1,a=n.indexOf("/mentor/panel")>-1,r=n.indexOf("/panel-profesor")>-1,l=n.indexOf("/learn")>-1||n.indexOf("/home")>-1,o=n.indexOf("/panel")>-1;return a?t.find(function(e){return"mentor"===e.value}):i?t.find(function(e){return"leader"===e.value}):r?t.find(function(e){return"professor"===e.value}):l?t.find(function(e){return"collaborator"===e.value}):o?t.find(function(e){return"admin"===e.value}):t.find(function(e){return"collaborator"===e.value})},ne=function(e){var t=e.organizations,n=e.corporationSlug,i=e.corporationName;return[{name:"".concat(i," (Corp)"),slug:n}].concat((0,t8.Z)(t)).map(function(e){return(0,ee.Z)((0,ee.Z)({},e),{},{isCorp:e.slug===n})}).map(function(e){var t="/org/".concat(e.slug,"/panel/estadisticas/generales/"),n="/org/".concat(e.slug,"/panel/corp/administrar/organizaciones/");return{label:e.name||"",value:e.slug||"",url:e.isCorp?n:t}})},nt=n(39144),nn=n.n(nt),ni={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MainMenuGetChildOrganizations"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"b2bOrganization"},arguments:[{kind:"Argument",name:{kind:"Name",value:"parentSlug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"originalId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"limitPay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expireDate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adminName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adminEmail"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"countryId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCorporation"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:256,source:{body:"query MainMenuGetChildOrganizations($slug: String!) {\n b2bOrganization(parentSlug: $slug) {\n originalId\n slug\n name\n limitPay\n startDate\n expireDate\n country\n slug\n adminName\n adminEmail\n countryId\n isCorporation\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},na=function(e){var t=e.slug,n=e.searchKey,i=e.skip,a=(0,eN.useState)([]),r=(0,eE.Z)(a,2),l=r[0],o=r[1],s=(0,ex.a)(ni,{variables:{slug:t},skip:void 0!==i&&i,context:{clientName:"v4.b2b"}}),d=s.data,u=s.loading,c=s.error,m=s.refetch;return(0,eN.useEffect)(function(){if(null!=d&&d.b2bOrganization){var e,t=(null==d?void 0:null===(e=d.b2bOrganization)||void 0===e?void 0:e.filter(t2.Z))||[];n&&(t=t.filter(function(e){var t;return t=(null==e?void 0:e.name)||"",nn()(t).toLocaleLowerCase().includes(nn()(n).toLocaleLowerCase())})),t.length>0&&o(t)}},[n,null==d?void 0:d.b2bOrganization]),{organizations:l,loading:u,error:c,refetch:m}},nr=function(e){var t=e.corporationName,n=e.corporationSlug,i=e.currentSlug,a=ne({organizations:na({slug:n,searchKey:"",skip:e.skip}).organizations,corporationSlug:n,corporationName:t}),r=a.find(function(e){return e.value===i});return{organizationsList:a,defaultSelectedOrganization:r}},nl=function(e){var t,n,i,a,r,l=e.organizationSlug,o=e.currentUrl,s=e.customCollaboratorUrl,d=(0,eB.P)().me,u=ti().t,c=t6({organizationSlug:l}).isLeader,m=t5({organizationSlug:l,flag:"talent-suite"}),f=nr({corporationName:(null==d?void 0:null===(n=d.organization)||void 0===n?void 0:n.name)||"",corporationSlug:(null==d?void 0:null===(i=d.organization)||void 0===i?void 0:i.slug)||"",currentSlug:l,skip:(null==d?void 0:null===(a=d.organization)||void 0===a?void 0:a.myRole)!=="owner-corporation"}),v=f.organizationsList,g=f.defaultSelectedOrganization,p=!(null!=m&&m.isActive),h=!!((null==d?void 0:null===(r=d.organization)||void 0===r?void 0:r.myRole)==="owner-corporation"&&(null==v?void 0:v.length)>1),w=t7({slug:l,user:d,isLeader:c,t:u,customCollaboratorUrl:s}),k=w.length>0?t9({userRoles:w,currentUrl:void 0===o?"/org/crehana/learn":o}):void 0,N=u((t=null==k?void 0:k.value)?"admin"===t?"PROFILE_ADMIN":"mentor"===t?"PROFILE_MENTOR":"professor"===t?"PROFILE_PROFESSOR":"leader"===t?"PROFILE_LEADER":"PROFILE_MEMBER":"");return{slug:l,userRoleLabel:N,userRoles:w,defaultSelectedRole:k,me:{username:(null==d?void 0:d.username)||"",fullName:(null==d?void 0:d.fullName)||"",email:(null==d?void 0:d.email)||"",profileUrl:(null==d?void 0:d.profileUrl)||"",thumbnailUrl:(null==d?void 0:d.thumbnailUrl)||""},shouldRenderNightSwitch:p,canRenderCompaniesDropdown:h,organizationsList:v,defaultSelectedOrganization:g,links:[{key:"profile",url:null==d?void 0:d.profileUrl,label:u("PROFILE_PROFILE")},{key:"manage-account",url:"/configuracion/",label:u("PROFILE_MANAGE_ACCOUNT")},null!=d&&d.isB2BAdmin?{key:"help-center",url:"https://ayuda.crehana.com/",label:u("PROFILE_HELP_CENTER"),openInNewTab:!0,adornment:{icon:t1}}:null].filter(t2.Z)}},no=function(e){var t=e.user,n=e.userRoleLabel,i=e.userRoles,a=void 0===i?[]:i,r=e.toggleDarkMode,l=e.links,o=e.canRenderCompaniesDropdown,s=e.organizationsList,d=e.defaultSelectedOrganization,u=e.defaultSelectedRole,c=e.isDark,m=e.organizationSlug,f=t0(),v=f.containerRef,g=f.isOpen,p=f.setIsOpen;return(0,en.jsx)(en.Fragment,{children:(0,en.jsx)("div",{className:"tw-hidden md:tw-flex md:tw-items-center tw-ml-1.6",ref:v,children:(0,en.jsxs)("div",{className:"tw-relative tw-cursor-pointer",children:[(0,en.jsx)(eK,{toggleOpen:function(){return p(function(e){return!e})},user:t,isOpen:g,userRoleLabel:n}),(0,en.jsx)("div",{className:(0,et.Z)("tw-absolute -tw-right-1 tw-top-3.2 tw-pt-2 tw-rounded-[5px] tw-transition-opacity",g?"tw-opacity-100 tw-pointer-events-auto":"tw-opacity-0 tw-pointer-events-none"),style:{perspective:"2000px",zIndex:1200},children:(0,en.jsx)("div",{className:(0,et.Z)("tw-rounded-1 elevation",g&&"tw-transform-none"),style:{boxShadow:c?"none":"0px 0px 12px rgba(227, 228, 229, 0.5), 0px 0px 4px rgba(187, 188, 191, 0.16)"},children:(0,en.jsxs)("div",{className:"tw-p-2 tw-w-28 tw-rounded-1 dark:tw-bg-elevation-dark-04 tw-bg-neutral-light-100",children:[(0,en.jsx)(tr,{user:t}),(0,en.jsx)(to,{links:l}),o&&(0,en.jsx)(td,{options:void 0===s?[]:s,defaultSelectedItem:d}),a.length>1&&u&&(0,en.jsx)(tH,{options:a,defaultSelected:u,organizationSlug:m,userRoleLabel:n},u.value),$||($=(0,en.jsx)(tK.Z,{})),r&&(0,en.jsx)(tY,{toggleDarkMode:r,isDark:c}),H||(H=(0,en.jsx)(tX,{}))]})})})]})})})},ns=function(e){var t=e.organizationSlug,n=e.currentUrl,i=(0,eB.P)(),a=i.updateMe,r=i.talentUser.hasTalentProduct,l=(0,eG.D)(),o=l.toggleTheme,s=l.isDark,d=nl({organizationSlug:t,customCollaboratorUrl:r?"/org/".concat(t,"/home/"):"",currentUrl:n}),u=d.userRoleLabel,c=d.userRoles,m=d.canRenderCompaniesDropdown,f=d.defaultSelectedRole,v=d.me,g=d.links,p=d.organizationsList,h=d.defaultSelectedOrganization,w=d.shouldRenderNightSwitch;return(0,en.jsx)(no,{toggleDarkMode:w?function(){o(),a(function(e){var t,n,i;return(0,ee.Z)((0,ee.Z)({},e),{},{me:(0,ee.Z)((0,ee.Z)({},e.me),{},{settings:(0,ee.Z)((0,ee.Z)({},null===(t=e.me)||void 0===t?void 0:t.settings),{},{darkMode:!(null!==(n=e.me)&&void 0!==n&&null!==(i=n.settings)&&void 0!==i&&i.darkMode)})})})})}:void 0,user:v,userRoles:c,defaultSelectedRole:f,userRoleLabel:u,canRenderCompaniesDropdown:m,organizationsList:p,defaultSelectedOrganization:h,links:g,isDark:s,organizationSlug:t})},nd=function(e){var t=e.organizationSlug,n=e.currentUrl;return(0,en.jsx)(ns,{organizationSlug:t,currentUrl:n})},nu=n(93882),nc=(0,eN.lazy)(function(){return Promise.all([n.e(467),n.e(5244)]).then(n.bind(n,75412))}),nm=function(e){return(0,en.jsx)(nu.Z,{children:(0,en.jsx)(eN.Suspense,{fallback:null,children:(0,en.jsx)(nc,(0,X.Z)({},e))})})},nf=n(56377),nv=n(37328),ng=n(99514),np=function(e){var t=e.className,n=e.shouldRenderInboxLink,i=e.shouldRenderShoppingCartLink,a=(0,e_.Z)().urls,r=(0,ej.Z)().t;return n||i?n?(0,en.jsx)(ng.Z,{className:t,"aria-label":r("MESSAGE_LABEL"),Icon:nf.Z,href:a.inbox,label:r("MESSAGE_LABEL")}):(0,en.jsx)(ng.Z,{className:t,"aria-label":r("SHOPPING_CART_LABEL"),Icon:nv.Z,href:a.shoppingCart,label:r("SHOPPING_CART_LABEL")}):null},nh=function(){var e=(0,e_.Z)(),t=e.me,n=e.layoutConfig,i=e.currentBreakpointKey,a=e.playroom,r=t.hasInboxAccess&&!n.hideInboxLink&&!t.isPremium||t.isMentor&&!n.hideInboxLink,l=(t.isAnonymous||t.isPAYG)&&!n.hideShoppingCart,o=t.isMentor&&!n.hideMentorDashboardLink,s=t.isTeacher&&!n.hideTeacherDashboardLink,d=t.isAffiliate&&!n.hideAffiliateDashboardLink,u=o||s||d,c=!n.hideUserDashboardLink&&!(o||s),m=!n.hideNotifications,f=!n.hideSavedCoursesLink&&t.isPremium,v=!n.hideB2BAdminDashboardLink&&!1===n.hideB2BDashboardButtonLink&&t.isB2BAdmin,g=!n.hideBlogSearch,p=!r&&!l,h=!n.hideCrehanaCoinsButton&&!!(null!=a&&a.onGoToAchievementsSection)&&!!(null!=a&&a.currencyName)&&"number"==typeof(null==a?void 0:a.currencyCoins)&&a.currencyCoins>=0&&t.isB2B;if(n.hideEveryRightMenuAction||"xs"===i&&p||"xs"!==i&&p&&!u&&!o&&!s&&!c&&!m)return null;var w={shouldRenderInboxLink:r,shouldRenderShoppingCartLink:l,shouldRenderBlogSearch:g,shouldRenderCrehanaCoinsButton:h};return"xs"===i?(0,en.jsx)(np,(0,X.Z)({className:"sm:hidden ml-8"},w)):(0,en.jsx)(nm,(0,X.Z)((0,X.Z)({className:"hidden sm:flex"},w),{},{shouldRenderMentorDashboardButton:o,shouldRenderTeacherDashboardButton:s,shouldRenderDashboardButton:u,shouldRenderUserDashboardButton:c,shouldRenderNotificationsButton:m,shouldRenderSavedCoursesButton:f,shouldRenderPanelButton:v}))},nw=n(37825),nk=n(97754),nN=n.n(nk),nx=n(27472),nb=n(43401),ny=n(4044),nI=n(78467),nS=(0,eN.lazy)(function(){return n.e(4852).then(n.bind(n,31482))}),nE=function(e){return(0,en.jsx)(eN.Suspense,{fallback:null,children:(0,en.jsx)(nS,(0,X.Z)({},e))})},nO=function(e){var t=e.userMenuAvatarRef,n=e.isOpen,i=e.onDismiss,a=(0,e_.Z)(),r=a.theme,l=a.themeName,o=a.variant;return(0,en.jsx)(nT,{anchorRef:t,isVisible:n,onDismiss:i,dismissOnClickOutside:!0,isDark:"dark"===l.submenu,className:nN()("flex flex-col",r.submenu.backgroundColorClassName,r.submenu.textColorClassName),arrowProps:{visible:!0,triggerPosition:"center",className:r.submenu.popperIndicatorColorClassName,css:"sidebar"===o?"\n /* Temporal hack to place the arrow to the right */\n transform: translateX(calc(328px));\n ":"\n /* Temporal hack to place the arrow to the right on full hd screens */\n @media (max-width: 2052px) {\n transform: translateX(calc(328px));\n }\n "},position:"bottom",$_css:r.submenu.userMenuPopperWidth,$_css2:"sidebar"!==o?"\n /* Temporal hack for full hd screens */\n @media (min-width: 2052px) {\n transform: translateX(calc(-100% + 32px));\n }\n ":"",children:K||(K=(0,en.jsx)(ny.Z,{children:(0,en.jsx)(nE,{isDesktop:!0})}))})},nT=(0,eA.ZP)(nI.Z).withConfig({componentId:"sc-faj618-0"})(["\n width: ","px;\n ","\n "],function(e){return e.$_css},function(e){return e.$_css2}),nC=n(24054),nR=function(e){var t=e.isOpen,n=e.onDismiss,i=(0,ej.Z)().t;return(0,en.jsx)(nC.Z,{title:i("USER_MENU_TITLE"),isOpen:t,onDismiss:n,position:"right",children:W||(W=(0,en.jsx)(nE,{className:"flex-1"}))})},n_=function(){var e=(0,e_.Z)(),t=e.themeName,n=e.loadingMe,i=e.me,a=e.currentBreakpointKey,r=e.layoutConfig,l=e.activeSubMenu,o=e.onToggleSubmenu,s=e.onCloseSubmenu,d=(0,eN.useRef)(null);if(n||i.isAnonymous||r.hideUserMenu)return null;var u="user-menu"===l;return(0,en.jsxs)(eN.Fragment,{children:[(0,en.jsx)("button",{type:"button",onClick:function(){return o("user-menu")},className:"flex items-center justify-center p-8 ml-4 -mr-8 sm:ml-8",ref:d,"data-tour":nb.D$,children:(0,en.jsx)("img",{src:(0,nx.Z)(i.profilePictureUrl||"",{auto:"format",crop:"faces",dpr:2,h:32,w:32,fit:"crop"}),alt:i.username||"profile",className:nN()("rounded-full","dark"===t.submenu?"bg-gray-main-dark-mode":"bg-gray-lighter"),height:32,width:32,decoding:"async"})}),"xs"===a||"sm"===a?(0,en.jsx)(nR,{isOpen:u,onDismiss:s}):(0,en.jsx)(nO,{userMenuAvatarRef:d,isOpen:u,onDismiss:s})]})},nL=function(){var e,t=(0,e_.Z)(),n=t.me,i=t.loadingMe,a=t.rightSectionProps,r=t.layoutConfig,l=t.isAdminPanel,o=t.isProduction,s=t.onNavigateUrl,d=t.hasIntegration,u=t.organizationSlug,c=t.currentUrl,m=!r.hideBlogSearch,f=!!r.newSidebarEnabled,v=!!r.hasProductsSwitch;return i?null:(0,en.jsxs)("div",{className:"flex items-center",children:[m&&(J||(J=(0,en.jsx)(eV,{}))),!f&&(0,en.jsx)(nw.Z,(0,X.Z)({},null==a?void 0:a.searchProps)),Q||(Q=(0,en.jsx)(nh,{})),v&&(0,en.jsx)(eR,{hasIntegration:d,isAdminPanel:l,isProduction:o,onNavigateUrl:s,organizationSlug:null===(e=n.organization)||void 0===e?void 0:e.slug,productPlatform:"learning",userEmail:n.email||""}),n.isAnonymous?q||(q=(0,en.jsx)(eP,{})):f?(0,en.jsx)(nd,{organizationSlug:u||"",currentUrl:c||""}):Y||(Y=(0,en.jsx)(n_,{}))]})}},39144:function(e,t,n){var i,a=1/0,r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,l=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]","g"),o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,s="object"==typeof self&&self&&self.Object===Object&&self,d=o||s||Function("return this")(),u=(i={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==i?void 0:i[e]}),c=Object.prototype.toString,m=d.Symbol,f=m?m.prototype:void 0,v=f?f.toString:void 0;e.exports=function(e){var t;return(e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==c.call(t))return v?v.call(e):"";var t,n=e+"";return"0"==n&&1/e==-a?"-0":n}(t))&&e.replace(r,u).replace(l,"")}},74049:function(e,t,n){"use strict";var i=n(36257);function a(){}function r(){}r.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,r,l){if(l!==i){var o=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:a};return n.PropTypes=n,n}},40507:function(e,t,n){e.exports=n(74049)()},36257:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},17374:function(e,t,n){"use strict";function i(e,t,n,i,a,r,l){try{var o=e[r](l),s=o.value}catch(e){n(e);return}o.done?t(s):Promise.resolve(s).then(i,a)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(a,r){var l=e.apply(t,n);function o(e){i(l,a,r,o,s,"next",e)}function s(e){i(l,a,r,o,s,"throw",e)}o(void 0)})}}n.d(t,{Z:function(){return a}})},33198:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(87075);function a(e,t){if(null==e)return{};var n,a,r=(0,i.Z)(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}},79346:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(10082);function a(){a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},o=l.iterator||"@@iterator",s=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var a,l,o=Object.create((t&&t.prototype instanceof v?t:v).prototype);return r(o,"_invoke",{value:(a=new S(i||[]),l="suspendedStart",function(t,i){if("executing"===l)throw Error("Generator is already running");if("completed"===l){if("throw"===t)throw i;return O()}for(a.method=t,a.arg=i;;){var r=a.delegate;if(r){var o=function e(t,n){var i=t.iterator[n.method];if(void 0===i){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,e(t,n),"throw"===n.method))return f;n.method="throw",n.arg=TypeError("The iterator does not provide a 'throw' method")}return f}var a=m(i,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,f;var r=a.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):r:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,f)}(r,a);if(o){if(o===f)continue;return o}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===l)throw l="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);l="executing";var s=m(e,n,a);if("normal"===s.type){if(l=a.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(l="completed",a.method="throw",a.arg=s.arg)}})}),o}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function v(){}function g(){}function p(){}var h={};u(h,o,function(){return this});var w=Object.getPrototypeOf,k=w&&w(w(E([])));k&&k!==t&&n.call(k,o)&&(h=k);var N=p.prototype=v.prototype=Object.create(h);function x(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function b(e,t){var a;r(this,"_invoke",{value:function(r,l){function o(){return new t(function(a,o){!function a(r,l,o,s){var d=m(e[r],e,l);if("throw"!==d.type){var u=d.arg,c=u.value;return c&&"object"==(0,i.Z)(c)&&n.call(c,"__await")?t.resolve(c.__await).then(function(e){a("next",e,o,s)},function(e){a("throw",e,o,s)}):t.resolve(c).then(function(e){u.value=e,o(u)},function(e){return a("throw",e,o,s)})}s(d.arg)}(r,l,a,o)})}return a=a?a.then(o,o):o()}})}function y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(y,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function t(){for(;++i=0;--a){var r=this.tryEntries[a],l=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var o=n.call(r,"catchLoc"),s=n.call(r,"finallyLoc");if(o&&s){if(this.prev=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;I(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}},10082:function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return i}})}}]);