@canaia/ui-kit 0.0.11-alpha.2 → 0.0.11-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/canaia-ui-kit.es.js
CHANGED
|
@@ -37405,9 +37405,9 @@ const Qj = ({ text: A, onClick: e }) => /* @__PURE__ */ s.jsxs(KA, { flexDirecti
|
|
|
37405
37405
|
children: o == null ? void 0 : o.name
|
|
37406
37406
|
}
|
|
37407
37407
|
)) });
|
|
37408
|
-
}, Cj = ({ elements: A
|
|
37409
|
-
const
|
|
37410
|
-
return /* @__PURE__ */ s.jsx(GA, { maxWidth: "936px", width: "100%", margin: "0 auto", children: A.map((
|
|
37408
|
+
}, Cj = ({ elements: A }) => {
|
|
37409
|
+
const e = A.length;
|
|
37410
|
+
return /* @__PURE__ */ s.jsx(GA, { maxWidth: "936px", width: "100%", margin: "0 auto", children: A.map((t, n) => /* @__PURE__ */ s.jsx(
|
|
37411
37411
|
GI,
|
|
37412
37412
|
{
|
|
37413
37413
|
allowToggle: !0,
|
|
@@ -37421,7 +37421,7 @@ const Qj = ({ text: A, onClick: e }) => /* @__PURE__ */ s.jsxs(KA, { flexDirecti
|
|
|
37421
37421
|
borderBottomWidth: "0 !important"
|
|
37422
37422
|
}
|
|
37423
37423
|
},
|
|
37424
|
-
children: /* @__PURE__ */ s.jsx(YI, { borderTopWidth: "0", children: ({ isExpanded:
|
|
37424
|
+
children: /* @__PURE__ */ s.jsx(YI, { borderTopWidth: "0", children: ({ isExpanded: i }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
37425
37425
|
/* @__PURE__ */ s.jsx(
|
|
37426
37426
|
JI,
|
|
37427
37427
|
{
|
|
@@ -37430,10 +37430,11 @@ const Qj = ({ text: A, onClick: e }) => /* @__PURE__ */ s.jsxs(KA, { flexDirecti
|
|
|
37430
37430
|
border: "none",
|
|
37431
37431
|
pr: "40px",
|
|
37432
37432
|
pl: "20px",
|
|
37433
|
+
py: "10px",
|
|
37433
37434
|
children: /* @__PURE__ */ s.jsxs(
|
|
37434
37435
|
Bc,
|
|
37435
37436
|
{
|
|
37436
|
-
templateColumns: `repeat(${
|
|
37437
|
+
templateColumns: `repeat(${e}, 1fr)`,
|
|
37437
37438
|
gap: 4,
|
|
37438
37439
|
flex: "1",
|
|
37439
37440
|
textAlign: "center",
|
|
@@ -37444,41 +37445,39 @@ const Qj = ({ text: A, onClick: e }) => /* @__PURE__ */ s.jsxs(KA, { flexDirecti
|
|
|
37444
37445
|
as: "span",
|
|
37445
37446
|
alignItems: "center",
|
|
37446
37447
|
children: [
|
|
37447
|
-
/* @__PURE__ */ s.jsx(GA, { marginRight: "12px", children:
|
|
37448
|
+
/* @__PURE__ */ s.jsx(GA, { marginRight: "12px", children: t.icon }),
|
|
37448
37449
|
/* @__PURE__ */ s.jsx(
|
|
37449
37450
|
yA,
|
|
37450
37451
|
{
|
|
37451
37452
|
maxWidth: "max-content",
|
|
37452
|
-
fontFamily: "
|
|
37453
|
-
fontWeight: "900",
|
|
37453
|
+
fontFamily: "LatoBold",
|
|
37454
37454
|
fontSize: "19px",
|
|
37455
|
-
children:
|
|
37455
|
+
children: t.name
|
|
37456
37456
|
}
|
|
37457
37457
|
)
|
|
37458
37458
|
]
|
|
37459
37459
|
}
|
|
37460
|
-
) },
|
|
37460
|
+
) }, n),
|
|
37461
37461
|
/* @__PURE__ */ s.jsx(GA, { children: /* @__PURE__ */ s.jsxs(
|
|
37462
37462
|
KA,
|
|
37463
37463
|
{
|
|
37464
37464
|
as: "span",
|
|
37465
37465
|
alignItems: "center",
|
|
37466
37466
|
children: [
|
|
37467
|
-
/* @__PURE__ */ s.jsx(GA, { marginRight: "4px", children: /* @__PURE__ */ s.jsx(xH, { color:
|
|
37467
|
+
/* @__PURE__ */ s.jsx(GA, { marginRight: "4px", children: /* @__PURE__ */ s.jsx(xH, { color: t.statusCanal ? "#21B06E" : "#C1C1C1" }) }),
|
|
37468
37468
|
/* @__PURE__ */ s.jsx(
|
|
37469
37469
|
yA,
|
|
37470
37470
|
{
|
|
37471
37471
|
maxWidth: "max-content",
|
|
37472
|
-
fontFamily: "
|
|
37473
|
-
fontWeight: "900",
|
|
37472
|
+
fontFamily: "LatoBold",
|
|
37474
37473
|
fontSize: "19px",
|
|
37475
|
-
color:
|
|
37476
|
-
children:
|
|
37474
|
+
color: t.statusCanal ? "#21B06E" : "#C1C1C1",
|
|
37475
|
+
children: t.textStatus
|
|
37477
37476
|
}
|
|
37478
37477
|
)
|
|
37479
37478
|
]
|
|
37480
37479
|
}
|
|
37481
|
-
) },
|
|
37480
|
+
) }, n),
|
|
37482
37481
|
/* @__PURE__ */ s.jsx(GA, { children: /* @__PURE__ */ s.jsxs(
|
|
37483
37482
|
KA,
|
|
37484
37483
|
{
|
|
@@ -37502,19 +37501,19 @@ const Qj = ({ text: A, onClick: e }) => /* @__PURE__ */ s.jsxs(KA, { flexDirecti
|
|
|
37502
37501
|
/* @__PURE__ */ s.jsx(
|
|
37503
37502
|
ZI,
|
|
37504
37503
|
{
|
|
37505
|
-
transform:
|
|
37504
|
+
transform: i ? "rotate(0deg)" : "rotate(-90deg)",
|
|
37506
37505
|
transition: "transform 0.2s"
|
|
37507
37506
|
}
|
|
37508
37507
|
)
|
|
37509
37508
|
]
|
|
37510
37509
|
}
|
|
37511
|
-
) },
|
|
37510
|
+
) }, n)
|
|
37512
37511
|
]
|
|
37513
37512
|
}
|
|
37514
37513
|
)
|
|
37515
37514
|
}
|
|
37516
37515
|
),
|
|
37517
|
-
/* @__PURE__ */ s.jsx(PI, { children:
|
|
37516
|
+
/* @__PURE__ */ s.jsx(PI, { children: t.children })
|
|
37518
37517
|
] }) })
|
|
37519
37518
|
}
|
|
37520
37519
|
)) });
|
|
@@ -495,4 +495,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
495
495
|
fill-opacity: 0.1; /* Se desvanece */
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
`})]}),Qz=({color:A="elevate"})=>{const[e]=ja("colors",[`${A}.500`]);return s.jsx(GA,{position:"fixed",top:0,left:0,w:"100vw",h:"100vh",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.15)",zIndex:1001,children:s.jsx(cz,{color:e||"elevate.500"})})},Uz=({options:A,selectedValue:e,onChange:t})=>s.jsx(Tu,{isAttached:!0,variant:"outline",children:A.map(n=>s.jsxs(ve,{isActive:e===n.value,onClick:()=>t(n.value),bg:e===n.value?"white.100":"black.50",color:e===n.value?"black":"black.400",fontWeight:"400",_hover:{bg:e===n.value?"white.200":"black.100"},_active:{bg:e===n.value?"white.300":"black.200"},borderColor:e===n.value?"black.200":"black.100",children:[n.label," ",n.count!==void 0&&`(${n.count})`]},n.value))});function Cz(A){return ne({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",x2:"12",y1:"8",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",x2:"12.01",y1:"16",y2:"16"},child:[]}]})(A)}function Rz(A){return ne({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]}]})(A)}const uz=({state:A,duration:e="00:00",onClickPlayPause:t,onClickRecord:n,inactive:i=!1,buttonColor:r="primary.500"})=>{const o=iB(),B=()=>{switch(A){case"idle":return Rz;case"recording":return $0;case"playing":return yv;case"paused":case"stopped":default:return kv}},a=[1,4,6,3,5,1,1,4,6,3,5,1,4,6,3,5,1,1,4,6,3,5,4,1],g=i?void 0:et(r,.7)(o),l=()=>{i||(A==="idle"||A==="recording"?n&&n():(A==="playing"||A==="paused")&&t())};return s.jsxs(GA,{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"2px 12px",borderRadius:"25px",bg:i?"gray.300":r,color:i?"gray.600":"white",cursor:i?"not-allowed":"pointer",_hover:{bg:g},width:"100%",onClick:l,children:[s.jsx(Oe,{"aria-label":A==="recording"?"Recording":A==="idle"?"Start recording":A==="playing"?"Pause playback":"Play playback",icon:u.createElement(B()),isRound:!0,isDisabled:i,bg:"transparent",_hover:{bg:"transparent"},color:i?"gray.600":"white",fontSize:"20px"}),s.jsx(GA,{display:"flex",justifyContent:"center",flex:"1",mx:"16px",alignItems:"center",children:A==="idle"?s.jsx(mA,{fontSize:"sm",fontWeight:"bold",color:"white",children:"Record your voice"}):A==="recording"?s.jsx(GA,{display:"flex",gap:"2px",alignItems:"center",children:a.map((E,I)=>s.jsx(GA,{width:"2px",height:`${E*3}px`,bg:"white",borderRadius:"1px",_hover:{bg:"gray.200"}},I))}):s.jsx(GA,{display:"flex",gap:"2px",alignItems:"center",children:a.map((E,I)=>s.jsx(GA,{width:"2px",height:`${E*3}px`,bg:"white",borderRadius:"1px",_hover:{bg:"gray.200"}},I))})}),s.jsx(mA,{fontSize:"sm",fontWeight:"bold",marginLeft:"8px",children:e})]})},Fz=({options:A,selectedValue:e,onChange:t,tabWidth:n="150px",fullWidthTabs:i=!1,...r})=>s.jsx(Y0,{...r,spacing:"0",justify:"center",width:i?"100%":"auto",children:A.map(o=>s.jsx(uI,{flex:i?"1":"none",width:i?"auto":n,children:s.jsxs(ve,{isActive:e===o.value,width:i?"100%":n,minWidth:i?"auto":n,flex:i?"1":"none",onClick:()=>t(o.value),bg:e===o.value?"primary.400":"black.40",color:e===o.value?"white.100":"gray.800",fontWeight:"500",size:"lg",_hover:{bg:e===o.value?"primary.400":"primary.300",color:"white"},_active:{bg:e===o.value?"primary.400":"primary.300"},borderColor:(e===o.value,"black.40"),style:{boxShadow:"0px 4px 6px -1px rgba(0, 0, 0, 0.1)"},children:[o.icon&&s.jsx(GA,{as:"span",display:"flex",alignItems:"center",justifyContent:"center",bg:o.iconBg||"transparent",borderRadius:o.iconBgRadius||"0",p:o.iconPadding||"0",boxSize:o.iconSize||"16px",color:o.iconColor||"gray.800",marginRight:"5px",children:s.jsx(GA,{as:o.icon,boxSize:"100%"})}),o.label]})},o.value))}),Mz=({isChecked:A,onChange:e,size:t="lg",colorScheme:n="success",labelPosition:i="left",isActive:r=!0,checkedLabel:o="",uncheckedLabel:B=""})=>{const[a,g]=u.useState(A),l=E=>{if(!r)return;const I=E.target.checked;g(I),e&&e(I)};return s.jsxs(GA,{display:"flex",alignItems:"center",children:[s.jsx(vr,{htmlFor:"switch",mb:"0",order:i==="right"?1:0,mr:i==="right"?0:2,ml:i==="left"?0:2,children:a?o:B}),s.jsx(x0,{id:"switch",isChecked:a,onChange:l,size:t,colorScheme:n,isDisabled:!r})]})},dz=({availableTags:A,selectedTags:e=[],onTagChange:t,colorScheme:n="primary",colorSchemeNumber:i="400"})=>{const r=B=>{if(!e.includes(B)){const a=[...e,B];t==null||t(a)}},o=B=>{const a=e.filter(g=>g!==B);t==null||t(a)};return s.jsxs(Qt,{align:"start",spacing:4,children:[s.jsx(Dt,{spacing:2,wrap:"wrap",children:e.map(B=>s.jsxs(UI,{size:"lg",bg:`${n}.${i}`,color:"white",borderRadius:"full",children:[s.jsx(H0,{children:B}),s.jsx(J0,{onClick:()=>o(B)})]},B))}),s.jsx(Dt,{spacing:2,wrap:"wrap",children:A.filter(B=>!e.includes(B)).map(B=>s.jsx(UI,{size:"lg",variant:"outline",colorScheme:n,cursor:"pointer",onClick:()=>r(B),children:B},B))})]})},fz=({items:A,selectedOptions:e=[],onCheckBoxChange:t,isFileUpload:n=!1,borderColor:i="gray.600",backgroundColor:r="gray.600",fontFamily:o="Lato",fontSize:B=".875rem",height:a="1rem",width:g="1rem",borderRadius:l="0.125rem",borderWidth:E="2px",directionOptions:I="column",spacingContentOptions:c=".5rem 0",spacingOptions:Q=".5rem .5rem",title:U="Seleccionar proveedor",colorTitle:C="black.100",fontFamilyTitle:R="Lato",fontSizeTitle:M="1rem",alignTitle:F="left",marginTitle:S=".5rem 0",subtitle:f="Selecciona uno o varios de los siguientes proveedores para probar sus capacidades.",colorSubtitle:D="black.100",fontFamilySubtitle:m="Lato",fontSizeSubtitle:y="1rem",alignSubtitle:W="left"})=>{const[p,J]=u.useState(e);u.useEffect(()=>{n&&J(e)},[n,e]);const K=cA=>{const d=A==null?void 0:A.find(v=>v.value===cA);if(d){const v=p.includes(d)?p.filter($=>$.value!==d.value):[...p,d];J(v),t&&t(v)}},b=Q.trim().split(" ");let j="0",q="0",G="0",EA="0";return b.length===4?(j=b[0],q=b[1],G=b[2],EA=b[3]):b.length===3?(j=b[0],q=EA=b[1],G=b[2]):b.length===2?(j=G=b[0],EA=q=b[1]):b.length===1?j=q=G=EA=b[0]:j=q=G=EA="0",s.jsxs(OA,{flexDirection:"column",alignItems:"flex-start",children:[s.jsx(mA,{color:C,fontFamily:R,fontSize:M,textAlign:F,margin:S,children:U}),s.jsx(mA,{color:D,fontFamily:m,fontSize:y,textAlign:W,children:f}),s.jsx(OA,{flexDirection:I,margin:c,children:A==null?void 0:A.map((cA,d)=>s.jsx("div",{children:s.jsx(Nu,{marginTop:j,marginBottom:G,marginLeft:d===0&&I==="row"?"0":EA,marginRight:q,isChecked:p.some(v=>v.value===cA.value),onChange:()=>K(cA.value),value:cA.value,fontFamily:o,fontSize:B,sx:{"& .chakra-checkbox__control":{borderColor:i,borderWidth:E,height:a,width:g,borderRadius:l},'& .chakra-checkbox__control[data-checked=""]':{backgroundColor:r,borderColor:i},'& .chakra-checkbox__control[data-checked=""]:hover':{backgroundColor:r,borderColor:i}},children:s.jsxs(OA,{alignItems:"center",children:[cA.icon&&s.jsxs("span",{style:{marginRight:".5rem"},children:[" ",cA.icon]})," ",cA.name]})})},cA.value))})]})},dc=Fn(N0),wz=({text1:A="",text2:e="",text3:t,colorScheme:n="elevate.500",setOnChange:i,defaultIndex:r=0})=>{const o=B=>{i&&i(B)};return s.jsx(GA,{bg:"gray.100",borderRadius:"md",boxShadow:"md",p:"3px",children:s.jsx(b0,{onChange:o,defaultIndex:r,isFitted:!0,variant:"unstyled",children:s.jsxs(W0,{display:"flex",gap:1,position:"relative",children:[s.jsx(dc,{position:"relative",flex:1,py:2,borderRadius:"md",fontWeight:"medium",color:"gray.500",_selected:{color:"white",bg:n},whileHover:{scale:1.02},transition:{type:"spring",stiffness:300,damping:20},children:A}),s.jsx(dc,{position:"relative",flex:1,py:2,color:"gray.500",borderRadius:"md",fontWeight:"medium",_selected:{color:"white",bg:n},whileHover:{scale:1.02},transition:{type:"spring",stiffness:300,damping:20},children:e}),t&&s.jsx(dc,{position:"relative",flex:1,py:2,color:"gray.500",borderRadius:"md",fontWeight:"medium",_selected:{color:"white",bg:n},whileHover:{scale:1.02},transition:{type:"spring",stiffness:300,damping:20},children:t})]})})})},Dz=({isOpen:A,onClose:e,onConfirm:t,title:n,description:i,cancelText:r="Cancelar",confirmText:o="Salir",product:B="elevate"})=>s.jsxs(zn,{isOpen:A,onClose:e,isCentered:!0,children:[s.jsx(Ln,{}),s.jsxs(jn,{position:"relative",bg:"white",p:"24px",borderRadius:"8px",minW:"450px",children:[s.jsx(Oe,{"aria-label":"Cerrar modal",icon:s.jsx(Lr,{}),size:"sm",variant:"ghost",position:"absolute",top:3,right:3,onClick:e}),s.jsx(Xn,{fontSize:"18px",fontFamily:"Body",children:n}),s.jsx(On,{children:s.jsx(mA,{fontFamily:"Lato",children:i})}),s.jsxs(SB,{display:"flex",justifyContent:"center",mt:"10px",children:[s.jsx(ve,{variant:"outline",color:`${B}.500`,borderColor:`${B}.500`,mr:12,onClick:e,children:r}),s.jsx(ve,{backgroundColor:`${B}.500`,color:"white",_hover:{backgroundColor:`${B}.600`},onClick:t,children:o})]})]})]}),hz=({height:A="40px",width:e="41px"})=>s.jsxs("svg",{width:e,height:A,viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M26.6051 6.28817C23.6505 4.97168 20.3495 4.64554 17.1944 5.35839C14.0393 6.07124 11.1991 7.7849 9.0975 10.2438C6.99589 12.7027 5.74543 15.775 5.5326 19.0026C5.31977 22.2303 6.15598 25.4402 7.91652 28.1538C9.67707 30.8673 12.2676 32.9391 15.3018 34.06C18.336 35.181 21.6512 35.2912 24.7531 34.374C27.855 33.4569 30.5773 31.5616 32.5141 28.9709C34.4508 26.3802 35.4982 23.2328 35.5001 19.9982V18.4658C35.5001 17.5453 36.2463 16.7991 37.1668 16.7991C38.0872 16.7991 38.8334 17.5453 38.8334 18.4658V19.9991C38.8312 23.9526 37.551 27.8003 35.1839 30.9668C32.8167 34.1332 29.4894 36.4496 25.6982 37.5706C21.907 38.6915 17.8551 38.5569 14.1466 37.1868C10.4382 35.8167 7.27195 33.2846 5.12018 29.968C2.9684 26.6515 1.94637 22.7282 2.20649 18.7833C2.46661 14.8384 3.99496 11.0833 6.56359 8.07804C9.13223 5.07275 12.6035 2.97828 16.4598 2.10701C20.316 1.23574 24.3506 1.63436 27.9618 3.24341C28.8025 3.61804 29.1804 4.60334 28.8058 5.44412C28.4312 6.28491 27.4459 6.6628 26.6051 6.28817Z",fill:"#21B06E"}),s.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M38.3445 5.48757C38.9957 6.13811 38.9962 7.19339 38.3457 7.84459L21.679 24.5279C21.3665 24.8407 20.9425 25.0166 20.5003 25.0167C20.0582 25.0168 19.6341 24.8412 19.3214 24.5285L14.3214 19.5285C13.6705 18.8776 13.6705 17.8224 14.3214 17.1715C14.9723 16.5206 16.0276 16.5206 16.6784 17.1715L20.4993 20.9924L35.9875 5.48874C36.638 4.83755 37.6933 4.83702 38.3445 5.48757Z",fill:"#21B06E"})]}),Sz=({height:A="28px",width:e="24px"})=>s.jsxs("svg",{width:e,height:A,viewBox:"0 0 24 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M11.7294 3.91962C12.7138 4.10559 13.6628 3.46112 13.852 2.47679C14.038 1.49246 13.3935 0.543396 12.4092 0.354224C11.4248 0.168259 10.4758 0.812724 10.2866 1.79706C10.1006 2.78139 10.7451 3.73045 11.7294 3.91962Z",fill:"#FF6F9A"}),s.jsx("path",{d:"M13.1276 9.39843C16.9848 9.90502 19.9731 13.2139 19.9731 17.209C19.9731 21.5535 16.4397 25.0868 12.092 25.0868C7.74426 25.0868 4.21093 21.5535 4.21093 17.209C4.21093 13.2556 7.13827 9.97236 10.9409 9.41446V6.80775C6.66374 7.27587 3.15606 10.3315 2.01782 14.3714C2.40899 14.5413 2.75527 14.8652 3.0278 15.3205C3.40935 15.9553 3.62738 16.8018 3.64021 17.7059C3.66265 19.1969 3.14323 20.4409 2.34486 21.0212C3.87106 24.9137 7.6641 27.6775 12.092 27.6775C16.5199 27.6775 20.2392 24.965 21.7942 21.1335C21.4832 20.9475 21.2011 20.6653 20.9734 20.2838C20.5919 19.6489 20.3738 18.8025 20.361 17.8983C20.3482 16.9941 20.5406 16.1316 20.9061 15.4647C21.2267 14.8812 21.6596 14.4868 22.1533 14.3201C20.9862 10.2705 17.4369 7.22136 13.1276 6.79492V9.40164V9.39843Z",fill:"#222222"}),s.jsx("path",{d:"M2.11336 15.6882C2.01717 15.5278 1.91136 15.3932 1.80234 15.2874C1.626 15.1142 1.44003 15.0212 1.27651 15.0277C1.26369 15.0277 1.25407 15.0277 1.24124 15.0277C0.98474 15.0597 0.686555 15.3323 0.458909 15.7523C0.151105 16.3198 -0.00921002 17.0636 0.000408859 17.8556C0.013234 18.6476 0.195993 19.3786 0.516622 19.914C0.769919 20.3309 1.09055 20.5842 1.35346 20.5745C1.56508 20.5649 1.80876 20.3886 2.02358 20.0776C2.36345 19.5934 2.64239 18.7822 2.62636 17.7466C2.61354 16.9546 2.43078 16.2236 2.11015 15.6882H2.11336Z",fill:"#222222"}),s.jsx("path",{d:"M23.4832 15.6881C23.2299 15.2713 22.9093 15.018 22.6464 15.0276C22.6336 15.0276 22.6239 15.0276 22.6111 15.0276C22.5278 15.0372 22.438 15.0757 22.3514 15.1366C22.1686 15.2585 21.9827 15.4733 21.8288 15.7554C21.521 16.3165 21.3607 17.0604 21.3703 17.8524C21.3831 18.6443 21.5659 19.3753 21.8865 19.9108C21.957 20.0294 22.034 20.132 22.1141 20.2218C22.3161 20.4494 22.5342 20.5809 22.7233 20.5713C23.2652 20.5424 24.0219 19.4363 23.9994 17.7433C23.9866 16.9514 23.8039 16.2203 23.4832 15.6849V15.6881Z",fill:"#222222"}),s.jsx("path",{d:"M8.21805 14.4265C7.47098 14.3944 6.86499 15.4749 6.86499 16.8408C6.86499 18.2067 7.47098 19.3417 8.22125 19.3738C8.97152 19.4058 9.57431 18.3253 9.57431 16.9594C9.57431 15.5936 8.96832 14.4585 8.21805 14.4265ZM8.68616 19.0019C8.35912 19.3065 7.88459 19.2135 7.62488 18.7967C7.36517 18.3798 7.41647 17.7931 7.74351 17.4885C8.07056 17.1839 8.54509 17.2769 8.8048 17.6937C9.06451 18.1105 9.01321 18.6973 8.68616 19.0019Z",fill:"#222222"}),s.jsx("path",{d:"M14.9832 14.2624C14.2361 14.2304 13.6301 15.3109 13.6333 16.6768C13.6333 18.0426 14.2425 19.1745 14.9896 19.2065C15.7366 19.2386 16.3426 18.1581 16.3394 16.7922C16.3394 15.4263 15.7302 14.2945 14.9832 14.2624ZM15.4256 18.8987C15.0954 19.1969 14.6209 19.1007 14.3676 18.6775C14.1143 18.2575 14.1752 17.6707 14.5054 17.3725C14.8357 17.0743 15.3102 17.1705 15.5635 17.5938C15.8168 18.017 15.7559 18.6005 15.4256 18.8987Z",fill:"#222222"}),s.jsx("path",{d:"M12.399 9.33728V4.81641H11.6711V9.34369C11.8122 9.33728 11.9533 9.33086 12.0944 9.33086C12.197 9.33086 12.2996 9.33407 12.399 9.33728Z",fill:"#222222"})]}),pz=({isOpen:A,onClose:e,description:t,buttonText:n,product:i="elevate",onConfirm:r,children:o,secondButton:B=!1,optionalFunction:a,optionalButtonText:g})=>s.jsxs(zn,{isOpen:A,onClose:e,isCentered:!0,children:[s.jsx(Ln,{}),s.jsxs(jn,{bg:"white",position:"relative",textAlign:"center",p:6,borderRadius:"8px",width:"auto",children:[s.jsx(Oe,{"aria-label":"Cerrar modal",icon:s.jsx(Lr,{}),size:"sm",variant:"ghost",position:"absolute",top:3,right:3,onClick:e}),s.jsxs(OA,{direction:"column",align:"center",gap:0,children:[s.jsx(hz,{}),s.jsx(Xn,{fontSize:"xl",fontWeight:"bold",color:"success.400",fontFamily:"Body",children:"¡Enhorabuena!"}),s.jsxs(On,{children:[s.jsxs(Dt,{spacing:3,justifyContent:"center",children:[s.jsx(Sz,{}),s.jsx(mA,{children:t})]}),s.jsx(Dt,{spacing:3,justifyContent:"center",children:o})]}),s.jsxs(SB,{children:[B&&s.jsx(ve,{backgroundColor:"#fff",border:"1px solid",borderColor:`${i}.600`,color:`${i}.600`,onClick:a,_hover:{backgroundColor:"#fff"},marginRight:"1.5rem",children:g}),s.jsx(ve,{backgroundColor:`${i}.500`,color:"white",_hover:{backgroundColor:`${i}.600`},onClick:r,children:n})]})]})]})]}),Tz=({isOpen:A,onClose:e,description:t,title:n,buttonText:i,onConfirm:r,children:o})=>s.jsxs(zn,{isOpen:A,onClose:e,isCentered:!0,children:[s.jsx(Ln,{}),s.jsxs(jn,{bg:"white",position:"relative",textAlign:"center",p:4,width:"280px",boxShadow:"0px 2px 4px -1px rgba(0, 0, 0, 0.06), 0px 4px 6px -1px rgba(0, 0, 0, 0.1)",borderRadius:"lg",children:[s.jsx(Oe,{"aria-label":"Cerrar modal",icon:s.jsx(Lr,{}),size:"sm",variant:"ghost",position:"absolute",top:3,right:3,onClick:e}),s.jsxs(OA,{direction:"column",align:"center",gap:0,children:[s.jsx(it,{as:Cz,boxSize:"42px",color:"danger.400"}),s.jsx(Xn,{fontSize:"xl",fontWeight:"bold",color:"danger.400",fontFamily:"Lato-Bold",p:1,children:n}),s.jsxs(On,{p:1,mb:3,children:[s.jsx(Dt,{spacing:3,justifyContent:"center",children:s.jsx(mA,{fontFamily:"Lato-Regular",color:"danger.400",children:t})}),s.jsx(Dt,{spacing:3,justifyContent:"center",children:o})]}),s.jsx(SB,{p:1,children:s.jsx(_s,{as:"button",color:"info.500",fontFamily:"lato-bold",style:{textDecoration:"underline"},_hover:{color:"info.600"},onClick:r,children:i})})]})]})]}),Vz=({message:A,colorTextMessage:e="#333333",isError:t=!1,toastSuccessMsg:n="Text copied",isTyping:i=!1,colorCopyIcon:r="#333333"})=>{const o=t?"red.400":"transparent",B=t?"2px solid":"none",a=VI(),g=async()=>{try{typeof A=="string"&&await navigator.clipboard.writeText(A),a({type:"success",title:n,duration:2e3,position:"bottom-right"})}catch(E){console.error("Error al copiar el mensaje:",E);const I=E instanceof Error?E.message:String(E);a({type:"error",title:I,duration:2e3,position:"bottom-right"})}},l=E=>{if(typeof E=="string"){const I=/([.?!;:])\s*/g;return E.split(I).map((c,Q)=>c.match(I)?s.jsxs("span",{children:[c,s.jsx("br",{})]},Q):c)}return E};return s.jsxs(Qt,{align:"flex-start",spacing:2,w:"100%",py:2,children:[s.jsx(Dt,{spacing:2,w:"100%",children:s.jsx(GA,{bg:"transparent",color:"black",px:5,py:3,w:"100%",border:B,borderColor:o,borderRadius:"50px",children:s.jsx(OA,{justify:"space-between",align:"center",w:"100%",children:s.jsx(mA,{fontSize:"md",whiteSpace:"pre-wrap",wordBreak:"break-word",w:"85%",textAlign:"left",color:e||"#333333",children:i?s.jsxs(mA,{fontStyle:"italic",color:"gray.500",children:[s.jsx("span",{children:"."}),s.jsx("span",{children:"."}),s.jsx("span",{children:"."})]}):l(A)})})})}),s.jsx(Dt,{spacing:2,children:s.jsx(Oe,{"aria-label":"Copy",icon:s.jsx(_0,{size:20,color:r}),variant:"ghost",onClick:g})})]})};function mz(A){return ne({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.354 6.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7 8.793l2.646-2.647a.5.5 0 0 1 .708 0"},child:[]},{tag:"path",attr:{d:"m10.273 2.513-.921-.944.715-.698.622.637.89-.011a2.89 2.89 0 0 1 2.924 2.924l-.01.89.636.622a2.89 2.89 0 0 1 0 4.134l-.637.622.011.89a2.89 2.89 0 0 1-2.924 2.924l-.89-.01-.622.636a2.89 2.89 0 0 1-4.134 0l-.622-.637-.89.011a2.89 2.89 0 0 1-2.924-2.924l.01-.89-.636-.622a2.89 2.89 0 0 1 0-4.134l.637-.622-.011-.89a2.89 2.89 0 0 1 2.924-2.924l.89.01.622-.636a2.89 2.89 0 0 1 4.134 0l-.715.698a1.89 1.89 0 0 0-2.704 0l-.92.944-1.32-.016a1.89 1.89 0 0 0-1.911 1.912l.016 1.318-.944.921a1.89 1.89 0 0 0 0 2.704l.944.92-.016 1.32a1.89 1.89 0 0 0 1.912 1.911l1.318-.016.921.944a1.89 1.89 0 0 0 2.704 0l.92-.944 1.32.016a1.89 1.89 0 0 0 1.911-1.912l-.016-1.318.944-.921a1.89 1.89 0 0 0 0-2.704l-.944-.92.016-1.32a1.89 1.89 0 0 0-1.912-1.911z"},child:[]}]})(A)}const xz=({subtitle:A,title:e,items:t,textButton:n,onClick:i,isOpen:r,icon:o,onClose:B=()=>{},hideCloseButton:a=!1,closeOnEsc:g=!0,closeOnOverlayClick:l=!0,...E})=>s.jsx(Qt,{alignItems:"center",justifyContent:"center",...E,children:s.jsxs(zn,{isOpen:r,onClose:B,isCentered:!0,closeOnEsc:g,closeOnOverlayClick:l,children:[s.jsx(Ln,{backgroundColor:"black.100"}),s.jsx(jn,{backgroundColor:"assist.200",borderRadius:"1rem",boxShadow:"0 0 0 rgba(0, 0, 0, 0.06)",maxWidth:"664px",width:"100%",children:s.jsxs(GA,{maxWidth:"306px",margin:" 66px auto",textAlign:"left",width:"100%",children:[s.jsxs(Xn,{fontFamily:"Sansation-Bold",padding:"12px 0 12px",children:[s.jsx(mA,{fontSize:"20px",children:A}),s.jsx(mA,{fontSize:"28px",children:e})]}),s.jsx(hB,{_hover:{backgroundColor:"white.100"},hidden:a}),s.jsxs(On,{padding:"0",children:[t==null?void 0:t.map(I=>s.jsxs(OA,{alignItems:"center",children:[o||s.jsx(mz,{size:"20",color:"#2f93df"}),s.jsx(mA,{fontFamily:"Lato",color:"black.400",margin:"4px 4px",children:I.name})]})),s.jsxs(ve,{backgroundColor:"assist.500",fontFamily:"sansationBold",fontWeight:"700",color:"white.100",marginTop:"24px",maxWidth:"240px",width:"100%",fontSize:"20px",onClick:i,_hover:{backgroundColor:"assist.500"},children:[s.jsx(mA,{marginRight:"8px",children:n}),s.jsx(Jv,{})]})]})]})})]})});function yz(A){return ne({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 73.4-73.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-128 128z"},child:[]}]})(A)}const kz=({text:A,onClick:e})=>s.jsxs(OA,{flexDirection:"row",onClick:e,color:"info.500",alignItems:"center",fontFamily:"Lato",fontSize:"1rem",maxWidth:"max-content",width:"100%",cursor:"pointer",children:[s.jsx(yz,{}),s.jsx(mA,{marginLeft:".5rem",children:A})]}),bz=({type:A="",text:e=""})=>s.jsx(GA,{className:`banner-container ${A}`,children:s.jsx(GA,{position:"relative",children:s.jsx(mA,{className:"banner-text",position:"absolute",children:e})})}),Nz=({items:A,onClick:e,size:t})=>{const[n,i]=u.useState(null),r=o=>{i(o),e==null||e(o)};return s.jsx(OA,{className:"container-single-choise",children:A==null?void 0:A.map(o=>s.jsx(ve,{size:t,border:"1px solid",borderColor:"assist.700",color:"assist.700",backgroundColor:"assist.200",onClick:()=>r(o.value),className:n===o.value?"active":"",borderRadius:"12px",children:o==null?void 0:o.name}))})},Wz=({elements:A,children:e})=>{const t=A.length;return s.jsx(GA,{maxWidth:"936px",width:"100%",margin:"0 auto",children:A.map((n,i)=>s.jsx(Bs,{allowToggle:!0,mb:"25px",sx:{"& > *":{borderTopWidth:0,borderBottomWidth:0},"& > *:last-of-type":{borderBottomWidth:"0 !important"}},children:s.jsx(ls,{borderTopWidth:"0",children:({isExpanded:r})=>s.jsxs(s.Fragment,{children:[s.jsx(as,{backgroundColor:"#F9F9F9",borderRadius:"8px",border:"none",pr:"40px",pl:"20px",children:s.jsxs(Ls,{templateColumns:`repeat(${t}, 1fr)`,gap:4,flex:"1",textAlign:"center",children:[s.jsx(GA,{children:s.jsxs(OA,{as:"span",alignItems:"center",children:[s.jsx(GA,{marginRight:"12px",children:n.icon}),s.jsx(mA,{maxWidth:"max-content",fontFamily:"Lato",fontWeight:"900",fontSize:"19px",children:n.name})]})},i),s.jsx(GA,{children:s.jsxs(OA,{as:"span",alignItems:"center",children:[s.jsx(GA,{marginRight:"4px",children:s.jsx(pv,{color:n.statusCanal?"#21B06E":"#C1C1C1"})}),s.jsx(mA,{maxWidth:"max-content",fontFamily:"Lato",fontWeight:"900",fontSize:"19px",color:n.statusCanal?"#21B06E":"#C1C1C1",children:n.textStatus})]})},i),s.jsx(GA,{children:s.jsxs(OA,{as:"span",alignItems:"center",justifyContent:"flex-end",children:[s.jsx(mA,{maxWidth:"max-content",fontFamily:"Lato",fontWeight:"400",fontSize:"16px",color:"#007EDF",textDecoration:"underline",textUnderlineOffset:"4px",children:"Configurar"}),s.jsx(gs,{transform:r?"rotate(0deg)":"rotate(-90deg)",transition:"transform 0.2s"})]})},i)]})}),s.jsx(Es,{children:e})]})})}))})},vz=({color:A,icon:e,title:t,status:n,menuOptions:i,textBottomOption:r,currentUrl:o,...B})=>{const a=["hub","play","elevate","assist","talent","ad","collect","localhost"],l=`sidebarOpen_${window.location.hostname.split(".").find(D=>a.includes(D))||"default"}`,[E,I]=u.useState(()=>{const F=localStorage.getItem(l);return F===null?(localStorage.setItem(l,"true"),!0):F==="true"}),c=A||He.primary[400],Q=Pg(He,`${c.split(".")[0]}.300`),U=()=>{I(F=>(localStorage.setItem(l,String(!F)),!F))};let C,R,M="#5aa9e6";switch(n.toLowerCase()){case"progress":C=s.jsx(mf,{size:20,style:{color:M,marginRight:".5rem"}}),R="En progreso";break;case"active":C=s.jsx(xf,{size:20,style:{color:"#21B06e",marginRight:".5rem"}}),R="Disponible",M="#21B06e";break;case"failed":C=s.jsx(tM,{size:20,style:{color:"#ce0015",marginRight:".5rem"}}),R="Error",M="#ce0015";break;case"inactive":C=s.jsx(Tf,{size:20,style:{color:"#666",marginRight:".5rem",transform:"rotate(90deg)"}}),R="Inactivo",M="#666";break}return s.jsxs(GA,{bg:He.white[100],color:He.black[400],borderRight:`1px solid ${He.black[50]}`,minWidth:E?"235px":"72px",transition:"min-width 0.3s ease, background-color 0.3s ease",minHeight:"100vh",boxShadow:"xl",position:"sticky",top:"0",h:"100vh",zIndex:9,paddingLeft:"20px",...B,children:[s.jsxs(Qt,{align:"start",pt:"20px",position:"relative",width:"100%",children:[s.jsx(OA,{width:"100%",display:E?"none":"flex",justifyContent:"center",children:e}),s.jsxs(GA,{width:"100%",display:E?"block":"none",children:[s.jsx(mA,{color:A,fontFamily:"Sansation-Bold",fontSize:"24px",width:"100%",children:t}),s.jsxs(OA,{width:"100%",justifyContent:"center",alignItems:"center",children:[C,s.jsx(mA,{color:M,fontSize:"16px",children:R})]})]}),s.jsx(Oe,{icon:E?s.jsx(P0,{boxSize:"24px"}):s.jsx(z0,{boxSize:"24px"}),onClick:U,position:"absolute",top:"125px",right:"-20px",size:"sm","aria-label":"Toggle Menu",bg:He.white[100],color:He.black[400],boxShadow:"md",zIndex:2,transition:"all 0.3s ease",_hover:{bg:Q}}),i.map((F,S)=>s.jsxs(OA,{flexDirection:"column",width:"100%",children:[F.title&&E&&s.jsx(mA,{ml:2,transition:"font-weight 0.3s ease",fontFamily:"Sansation-Bold",fontWeight:"700",fontSize:"16px",textAlign:"left",color:"black.500",mb:"12px",children:F.title}),F.options&&F.options.length>0&&s.jsx(OA,{width:"100%",flexDirection:"column",children:F.options.map((f,D)=>s.jsx(ve,{justifyContent:E?"flex-start":"center",width:"100%",variant:"ghost",color:He.black[400],px:E?4:0,transition:"all 0.3s ease",iconSpacing:E?2:0,display:"flex",alignItems:"center",margin:"8px 0",_hover:{svg:{color:c},"> p":{fontWeight:"bold"}},_active:{svg:{color:c},"> p":{fontWeight:"bold"}},onClick:()=>alert(`Clicked on ${f.title}`),isActive:o===f.url,children:s.jsxs(OA,{children:[f.icon,E&&s.jsx(mA,{ml:2,transition:"font-weight 0.3s ease",color:"black.500",children:f.title})]})},D))})]},S))]}),r==null?void 0:r.map((F,S)=>s.jsxs(ve,{display:"flex",alignItems:"center",backgroundColor:"white.100",fontFamily:"Sansation-Regular",fontSize:"16px",position:"absolute",bottom:"40px",padding:"0 10px",sx:{_hover:{backgroundColor:"white.100"}},onClick:()=>alert(`Clicked on ${F.title}`),isActive:o===F.url,children:[s.jsx("span",{style:{marginRight:"8px"},children:F.icon}),E&&s.jsx("span",{children:F.title})]},S))]})},Hz=({width:A=24,height:e=24,color:t="#FFAE0C"})=>s.jsxs("svg",{width:A,height:e,viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M5 23.75C5 13.3956 13.3956 5 23.75 5C34.1044 5 42.5 13.3956 42.5 23.75C42.5 34.1044 34.1044 42.5 23.75 42.5C13.3956 42.5 5 34.1044 5 23.75ZM23.75 8C15.0525 8 8 15.0525 8 23.75C8 32.4475 15.0525 39.5 23.75 39.5C32.4475 39.5 39.5 32.4475 39.5 23.75C39.5 15.0525 32.4475 8 23.75 8Z",fill:t}),s.jsx("path",{d:"M19.625 21.125C19.625 20.2966 20.2966 19.625 21.125 19.625H24.125C24.9534 19.625 25.625 20.2966 25.625 21.125V32C25.625 32.8284 24.9534 33.5 24.125 33.5C23.2966 33.5 22.625 32.8284 22.625 32V22.625H21.125C20.2966 22.625 19.625 21.9534 19.625 21.125Z",fill:t}),s.jsx("path",{d:"M18.5 32.375C18.5 31.5466 19.1716 30.875 20 30.875H28.25C29.0784 30.875 29.75 31.5466 29.75 32.375C29.75 33.2034 29.0784 33.875 28.25 33.875H20C19.1716 33.875 18.5 33.2034 18.5 32.375Z",fill:t}),s.jsx("path",{d:"M23.75 12.6875C23.2679 12.6875 22.7966 12.8305 22.3958 13.0983C21.995 13.3661 21.6825 13.7468 21.498 14.1922C21.3136 14.6376 21.2653 15.1277 21.3593 15.6005C21.4534 16.0734 21.6855 16.5077 22.0264 16.8486C22.3673 17.1895 22.8016 17.4216 23.2745 17.5157C23.7473 17.6097 24.2374 17.5614 24.6828 17.377C25.1282 17.1925 25.5089 16.88 25.7767 16.4792C26.0445 16.0784 26.1875 15.6071 26.1875 15.125C26.1875 14.4785 25.9307 13.8585 25.4736 13.4014C25.0165 12.9443 24.3965 12.6875 23.75 12.6875Z",fill:t})]}),Gz=({isOpen:A,onClose:e=()=>{},text:t,textButton:n="Iniciar Sessión",backgroundButton:i="elevate.500",hideCloseButton:r=!0,closeOnEsc:o=!0,closeOnOverlayClick:B=!0,onLoginClick:a})=>s.jsx(Qt,{alignItems:"center",justifyContent:"center",children:s.jsxs(zn,{isOpen:A,onClose:e,isCentered:!0,closeOnEsc:o,closeOnOverlayClick:B,children:[s.jsx(Ln,{opacity:.5,backgroundColor:"black.500"}),s.jsxs(jn,{backgroundColor:"white.100",maxWidth:"447px",width:"100%",color:"black.600",children:[s.jsxs(Xn,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",mt:"4px",children:[s.jsx(GA,{as:"span",textAlign:"center",children:s.jsx(Hz,{width:40,height:40})}),s.jsx(mA,{fontFamily:"Heading",fontSize:"22px",children:"¡Atención!"})]}),s.jsx(hB,{hidden:r}),s.jsx(On,{margin:"0 auto",maxWidth:"320px",width:"100%",padding:"0",mb:"15px",children:s.jsx(mA,{fontFamily:"Lato",fontSize:"16px",children:t})}),s.jsx(ve,{backgroundColor:i,color:"white.100",maxWidth:"max-content",width:"100%",margin:"12px auto 30px",padding:"10px 24px",fontFamily:"Heading",fontSize:"18px",onClick:a,_hover:{backgroundColor:{backgroundButton:i}},children:n})]})]})}),Jz=({width:A=24,height:e=24,color:t="#FFAE0C"})=>s.jsxs("svg",{width:A,height:e,viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M5 23.75C5 13.3956 13.3956 5 23.75 5C34.1044 5 42.5 13.3956 42.5 23.75C42.5 34.1044 34.1044 42.5 23.75 42.5C13.3956 42.5 5 34.1044 5 23.75ZM23.75 8C15.0525 8 8 15.0525 8 23.75C8 32.4475 15.0525 39.5 23.75 39.5C32.4475 39.5 39.5 32.4475 39.5 23.75C39.5 15.0525 32.4475 8 23.75 8Z",fill:t}),s.jsx("path",{d:"M19.625 21.125C19.625 20.2966 20.2966 19.625 21.125 19.625H24.125C24.9534 19.625 25.625 20.2966 25.625 21.125V32C25.625 32.8284 24.9534 33.5 24.125 33.5C23.2966 33.5 22.625 32.8284 22.625 32V22.625H21.125C20.2966 22.625 19.625 21.9534 19.625 21.125Z",fill:t}),s.jsx("path",{d:"M18.5 32.375C18.5 31.5466 19.1716 30.875 20 30.875H28.25C29.0784 30.875 29.75 31.5466 29.75 32.375C29.75 33.2034 29.0784 33.875 28.25 33.875H20C19.1716 33.875 18.5 33.2034 18.5 32.375Z",fill:t}),s.jsx("path",{d:"M23.75 12.6875C23.2679 12.6875 22.7966 12.8305 22.3958 13.0983C21.995 13.3661 21.6825 13.7468 21.498 14.1922C21.3136 14.6376 21.2653 15.1277 21.3593 15.6005C21.4534 16.0734 21.6855 16.5077 22.0264 16.8486C22.3673 17.1895 22.8016 17.4216 23.2745 17.5157C23.7473 17.6097 24.2374 17.5614 24.6828 17.377C25.1282 17.1925 25.5089 16.88 25.7767 16.4792C26.0445 16.0784 26.1875 15.6071 26.1875 15.125C26.1875 14.4785 25.9307 13.8585 25.4736 13.4014C25.0165 12.9443 24.3965 12.6875 23.75 12.6875Z",fill:t})]}),Zz=({isOpen:A,onClose:e=()=>{},text:t,textButton:n,backgroundButton:i="elevate.500",hideCloseButton:r=!0,closeOnEsc:o=!0,closeOnOverlayClick:B=!0,onBackClick:a})=>s.jsx(Qt,{alignItems:"center",justifyContent:"center",children:s.jsxs(zn,{isOpen:A,onClose:e,isCentered:!0,closeOnEsc:o,closeOnOverlayClick:B,children:[s.jsx(Ln,{opacity:.5,backgroundColor:"black.500"}),s.jsxs(jn,{backgroundColor:"white.100",maxWidth:"447px",width:"100%",color:"black.600",children:[s.jsxs(Xn,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",mt:"4px",children:[s.jsx(GA,{as:"span",textAlign:"center",children:s.jsx(Jz,{width:40,height:40})}),s.jsx(mA,{fontFamily:"Sansation-Bold",fontSize:"20px",children:"¡Atención!"})]}),s.jsx(hB,{hidden:r}),s.jsx(On,{margin:"0 auto",maxWidth:"310px",width:"100%",padding:"0",children:s.jsx(mA,{fontFamily:"Lato-Regular",fontSize:"16px",children:t})}),s.jsx(ve,{backgroundColor:i,color:"white.100",maxWidth:"max-content",width:"100%",margin:"12px auto 30px",padding:"10px 24px",fontFamily:"Sansation-Bold",fontSize:"18px",onClick:a,_hover:{backgroundColor:{backgroundButton:i}},children:n})]})]})});yA.AccordionCustom=oz,yA.AudioButtons=uz,yA.BackNavigation=kz,yA.Banner=bz,yA.Button=Gv,yA.CanaiaProvider=Ev,yA.CardCustom=Iz,yA.ChatAssistant=m7,yA.ChatInput=Az,yA.ChatUser=jH,yA.ChatWithoutFeedback=Vz,yA.CustomBox=Ez,yA.CustomCheckBox=fz,yA.CustomProgressBar=lz,yA.DragAndDrop=HH,yA.Header=$7,yA.Input=JH,yA.InputPhone=PH,yA.MenuListCustom=Bz,yA.MetricCustom=sz,yA.ModalConfirmation=nz,yA.ModalCustom=tz,yA.ModalFeedback=Dz,yA.ModalInactivity=Gz,yA.ModalPermission=Zz,yA.ModalPremium=xz,yA.MultiHeaderAccordion=Wz,yA.MultiInput=zH,yA.NegativeModal=Tz,yA.PhotoUpload=Yv,yA.PositiveModal=pz,yA.SegmentedControl=Uz,yA.Select=Uv,yA.SideBar=ez,yA.SideBarCustom=vz,yA.SingleChoice=Nz,yA.Spinner=Qz,yA.StatusCustom=gz,yA.Steps=Pv,yA.SwitchCustom=Mz,yA.Tabs=Fz,yA.TabsOptions=wz,yA.TagSelector=dz,yA.Text=GH,yA.TextareaCustom=az,yA.Toast=DM,yA.useCustomToast=VI,Object.defineProperty(yA,Symbol.toStringTag,{value:"Module"})});
|
|
498
|
+
`})]}),Qz=({color:A="elevate"})=>{const[e]=ja("colors",[`${A}.500`]);return s.jsx(GA,{position:"fixed",top:0,left:0,w:"100vw",h:"100vh",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.15)",zIndex:1001,children:s.jsx(cz,{color:e||"elevate.500"})})},Uz=({options:A,selectedValue:e,onChange:t})=>s.jsx(Tu,{isAttached:!0,variant:"outline",children:A.map(n=>s.jsxs(ve,{isActive:e===n.value,onClick:()=>t(n.value),bg:e===n.value?"white.100":"black.50",color:e===n.value?"black":"black.400",fontWeight:"400",_hover:{bg:e===n.value?"white.200":"black.100"},_active:{bg:e===n.value?"white.300":"black.200"},borderColor:e===n.value?"black.200":"black.100",children:[n.label," ",n.count!==void 0&&`(${n.count})`]},n.value))});function Cz(A){return ne({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",x2:"12",y1:"8",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",x2:"12.01",y1:"16",y2:"16"},child:[]}]})(A)}function Rz(A){return ne({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]}]})(A)}const uz=({state:A,duration:e="00:00",onClickPlayPause:t,onClickRecord:n,inactive:i=!1,buttonColor:r="primary.500"})=>{const o=iB(),B=()=>{switch(A){case"idle":return Rz;case"recording":return $0;case"playing":return yv;case"paused":case"stopped":default:return kv}},a=[1,4,6,3,5,1,1,4,6,3,5,1,4,6,3,5,1,1,4,6,3,5,4,1],g=i?void 0:et(r,.7)(o),l=()=>{i||(A==="idle"||A==="recording"?n&&n():(A==="playing"||A==="paused")&&t())};return s.jsxs(GA,{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"2px 12px",borderRadius:"25px",bg:i?"gray.300":r,color:i?"gray.600":"white",cursor:i?"not-allowed":"pointer",_hover:{bg:g},width:"100%",onClick:l,children:[s.jsx(Oe,{"aria-label":A==="recording"?"Recording":A==="idle"?"Start recording":A==="playing"?"Pause playback":"Play playback",icon:u.createElement(B()),isRound:!0,isDisabled:i,bg:"transparent",_hover:{bg:"transparent"},color:i?"gray.600":"white",fontSize:"20px"}),s.jsx(GA,{display:"flex",justifyContent:"center",flex:"1",mx:"16px",alignItems:"center",children:A==="idle"?s.jsx(mA,{fontSize:"sm",fontWeight:"bold",color:"white",children:"Record your voice"}):A==="recording"?s.jsx(GA,{display:"flex",gap:"2px",alignItems:"center",children:a.map((E,I)=>s.jsx(GA,{width:"2px",height:`${E*3}px`,bg:"white",borderRadius:"1px",_hover:{bg:"gray.200"}},I))}):s.jsx(GA,{display:"flex",gap:"2px",alignItems:"center",children:a.map((E,I)=>s.jsx(GA,{width:"2px",height:`${E*3}px`,bg:"white",borderRadius:"1px",_hover:{bg:"gray.200"}},I))})}),s.jsx(mA,{fontSize:"sm",fontWeight:"bold",marginLeft:"8px",children:e})]})},Fz=({options:A,selectedValue:e,onChange:t,tabWidth:n="150px",fullWidthTabs:i=!1,...r})=>s.jsx(Y0,{...r,spacing:"0",justify:"center",width:i?"100%":"auto",children:A.map(o=>s.jsx(uI,{flex:i?"1":"none",width:i?"auto":n,children:s.jsxs(ve,{isActive:e===o.value,width:i?"100%":n,minWidth:i?"auto":n,flex:i?"1":"none",onClick:()=>t(o.value),bg:e===o.value?"primary.400":"black.40",color:e===o.value?"white.100":"gray.800",fontWeight:"500",size:"lg",_hover:{bg:e===o.value?"primary.400":"primary.300",color:"white"},_active:{bg:e===o.value?"primary.400":"primary.300"},borderColor:(e===o.value,"black.40"),style:{boxShadow:"0px 4px 6px -1px rgba(0, 0, 0, 0.1)"},children:[o.icon&&s.jsx(GA,{as:"span",display:"flex",alignItems:"center",justifyContent:"center",bg:o.iconBg||"transparent",borderRadius:o.iconBgRadius||"0",p:o.iconPadding||"0",boxSize:o.iconSize||"16px",color:o.iconColor||"gray.800",marginRight:"5px",children:s.jsx(GA,{as:o.icon,boxSize:"100%"})}),o.label]})},o.value))}),Mz=({isChecked:A,onChange:e,size:t="lg",colorScheme:n="success",labelPosition:i="left",isActive:r=!0,checkedLabel:o="",uncheckedLabel:B=""})=>{const[a,g]=u.useState(A),l=E=>{if(!r)return;const I=E.target.checked;g(I),e&&e(I)};return s.jsxs(GA,{display:"flex",alignItems:"center",children:[s.jsx(vr,{htmlFor:"switch",mb:"0",order:i==="right"?1:0,mr:i==="right"?0:2,ml:i==="left"?0:2,children:a?o:B}),s.jsx(x0,{id:"switch",isChecked:a,onChange:l,size:t,colorScheme:n,isDisabled:!r})]})},dz=({availableTags:A,selectedTags:e=[],onTagChange:t,colorScheme:n="primary",colorSchemeNumber:i="400"})=>{const r=B=>{if(!e.includes(B)){const a=[...e,B];t==null||t(a)}},o=B=>{const a=e.filter(g=>g!==B);t==null||t(a)};return s.jsxs(Qt,{align:"start",spacing:4,children:[s.jsx(Dt,{spacing:2,wrap:"wrap",children:e.map(B=>s.jsxs(UI,{size:"lg",bg:`${n}.${i}`,color:"white",borderRadius:"full",children:[s.jsx(H0,{children:B}),s.jsx(J0,{onClick:()=>o(B)})]},B))}),s.jsx(Dt,{spacing:2,wrap:"wrap",children:A.filter(B=>!e.includes(B)).map(B=>s.jsx(UI,{size:"lg",variant:"outline",colorScheme:n,cursor:"pointer",onClick:()=>r(B),children:B},B))})]})},fz=({items:A,selectedOptions:e=[],onCheckBoxChange:t,isFileUpload:n=!1,borderColor:i="gray.600",backgroundColor:r="gray.600",fontFamily:o="Lato",fontSize:B=".875rem",height:a="1rem",width:g="1rem",borderRadius:l="0.125rem",borderWidth:E="2px",directionOptions:I="column",spacingContentOptions:c=".5rem 0",spacingOptions:Q=".5rem .5rem",title:U="Seleccionar proveedor",colorTitle:C="black.100",fontFamilyTitle:R="Lato",fontSizeTitle:M="1rem",alignTitle:F="left",marginTitle:S=".5rem 0",subtitle:f="Selecciona uno o varios de los siguientes proveedores para probar sus capacidades.",colorSubtitle:D="black.100",fontFamilySubtitle:m="Lato",fontSizeSubtitle:y="1rem",alignSubtitle:W="left"})=>{const[p,J]=u.useState(e);u.useEffect(()=>{n&&J(e)},[n,e]);const K=cA=>{const d=A==null?void 0:A.find(v=>v.value===cA);if(d){const v=p.includes(d)?p.filter($=>$.value!==d.value):[...p,d];J(v),t&&t(v)}},b=Q.trim().split(" ");let j="0",q="0",G="0",EA="0";return b.length===4?(j=b[0],q=b[1],G=b[2],EA=b[3]):b.length===3?(j=b[0],q=EA=b[1],G=b[2]):b.length===2?(j=G=b[0],EA=q=b[1]):b.length===1?j=q=G=EA=b[0]:j=q=G=EA="0",s.jsxs(OA,{flexDirection:"column",alignItems:"flex-start",children:[s.jsx(mA,{color:C,fontFamily:R,fontSize:M,textAlign:F,margin:S,children:U}),s.jsx(mA,{color:D,fontFamily:m,fontSize:y,textAlign:W,children:f}),s.jsx(OA,{flexDirection:I,margin:c,children:A==null?void 0:A.map((cA,d)=>s.jsx("div",{children:s.jsx(Nu,{marginTop:j,marginBottom:G,marginLeft:d===0&&I==="row"?"0":EA,marginRight:q,isChecked:p.some(v=>v.value===cA.value),onChange:()=>K(cA.value),value:cA.value,fontFamily:o,fontSize:B,sx:{"& .chakra-checkbox__control":{borderColor:i,borderWidth:E,height:a,width:g,borderRadius:l},'& .chakra-checkbox__control[data-checked=""]':{backgroundColor:r,borderColor:i},'& .chakra-checkbox__control[data-checked=""]:hover':{backgroundColor:r,borderColor:i}},children:s.jsxs(OA,{alignItems:"center",children:[cA.icon&&s.jsxs("span",{style:{marginRight:".5rem"},children:[" ",cA.icon]})," ",cA.name]})})},cA.value))})]})},dc=Fn(N0),wz=({text1:A="",text2:e="",text3:t,colorScheme:n="elevate.500",setOnChange:i,defaultIndex:r=0})=>{const o=B=>{i&&i(B)};return s.jsx(GA,{bg:"gray.100",borderRadius:"md",boxShadow:"md",p:"3px",children:s.jsx(b0,{onChange:o,defaultIndex:r,isFitted:!0,variant:"unstyled",children:s.jsxs(W0,{display:"flex",gap:1,position:"relative",children:[s.jsx(dc,{position:"relative",flex:1,py:2,borderRadius:"md",fontWeight:"medium",color:"gray.500",_selected:{color:"white",bg:n},whileHover:{scale:1.02},transition:{type:"spring",stiffness:300,damping:20},children:A}),s.jsx(dc,{position:"relative",flex:1,py:2,color:"gray.500",borderRadius:"md",fontWeight:"medium",_selected:{color:"white",bg:n},whileHover:{scale:1.02},transition:{type:"spring",stiffness:300,damping:20},children:e}),t&&s.jsx(dc,{position:"relative",flex:1,py:2,color:"gray.500",borderRadius:"md",fontWeight:"medium",_selected:{color:"white",bg:n},whileHover:{scale:1.02},transition:{type:"spring",stiffness:300,damping:20},children:t})]})})})},Dz=({isOpen:A,onClose:e,onConfirm:t,title:n,description:i,cancelText:r="Cancelar",confirmText:o="Salir",product:B="elevate"})=>s.jsxs(zn,{isOpen:A,onClose:e,isCentered:!0,children:[s.jsx(Ln,{}),s.jsxs(jn,{position:"relative",bg:"white",p:"24px",borderRadius:"8px",minW:"450px",children:[s.jsx(Oe,{"aria-label":"Cerrar modal",icon:s.jsx(Lr,{}),size:"sm",variant:"ghost",position:"absolute",top:3,right:3,onClick:e}),s.jsx(Xn,{fontSize:"18px",fontFamily:"Body",children:n}),s.jsx(On,{children:s.jsx(mA,{fontFamily:"Lato",children:i})}),s.jsxs(SB,{display:"flex",justifyContent:"center",mt:"10px",children:[s.jsx(ve,{variant:"outline",color:`${B}.500`,borderColor:`${B}.500`,mr:12,onClick:e,children:r}),s.jsx(ve,{backgroundColor:`${B}.500`,color:"white",_hover:{backgroundColor:`${B}.600`},onClick:t,children:o})]})]})]}),hz=({height:A="40px",width:e="41px"})=>s.jsxs("svg",{width:e,height:A,viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M26.6051 6.28817C23.6505 4.97168 20.3495 4.64554 17.1944 5.35839C14.0393 6.07124 11.1991 7.7849 9.0975 10.2438C6.99589 12.7027 5.74543 15.775 5.5326 19.0026C5.31977 22.2303 6.15598 25.4402 7.91652 28.1538C9.67707 30.8673 12.2676 32.9391 15.3018 34.06C18.336 35.181 21.6512 35.2912 24.7531 34.374C27.855 33.4569 30.5773 31.5616 32.5141 28.9709C34.4508 26.3802 35.4982 23.2328 35.5001 19.9982V18.4658C35.5001 17.5453 36.2463 16.7991 37.1668 16.7991C38.0872 16.7991 38.8334 17.5453 38.8334 18.4658V19.9991C38.8312 23.9526 37.551 27.8003 35.1839 30.9668C32.8167 34.1332 29.4894 36.4496 25.6982 37.5706C21.907 38.6915 17.8551 38.5569 14.1466 37.1868C10.4382 35.8167 7.27195 33.2846 5.12018 29.968C2.9684 26.6515 1.94637 22.7282 2.20649 18.7833C2.46661 14.8384 3.99496 11.0833 6.56359 8.07804C9.13223 5.07275 12.6035 2.97828 16.4598 2.10701C20.316 1.23574 24.3506 1.63436 27.9618 3.24341C28.8025 3.61804 29.1804 4.60334 28.8058 5.44412C28.4312 6.28491 27.4459 6.6628 26.6051 6.28817Z",fill:"#21B06E"}),s.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M38.3445 5.48757C38.9957 6.13811 38.9962 7.19339 38.3457 7.84459L21.679 24.5279C21.3665 24.8407 20.9425 25.0166 20.5003 25.0167C20.0582 25.0168 19.6341 24.8412 19.3214 24.5285L14.3214 19.5285C13.6705 18.8776 13.6705 17.8224 14.3214 17.1715C14.9723 16.5206 16.0276 16.5206 16.6784 17.1715L20.4993 20.9924L35.9875 5.48874C36.638 4.83755 37.6933 4.83702 38.3445 5.48757Z",fill:"#21B06E"})]}),Sz=({height:A="28px",width:e="24px"})=>s.jsxs("svg",{width:e,height:A,viewBox:"0 0 24 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M11.7294 3.91962C12.7138 4.10559 13.6628 3.46112 13.852 2.47679C14.038 1.49246 13.3935 0.543396 12.4092 0.354224C11.4248 0.168259 10.4758 0.812724 10.2866 1.79706C10.1006 2.78139 10.7451 3.73045 11.7294 3.91962Z",fill:"#FF6F9A"}),s.jsx("path",{d:"M13.1276 9.39843C16.9848 9.90502 19.9731 13.2139 19.9731 17.209C19.9731 21.5535 16.4397 25.0868 12.092 25.0868C7.74426 25.0868 4.21093 21.5535 4.21093 17.209C4.21093 13.2556 7.13827 9.97236 10.9409 9.41446V6.80775C6.66374 7.27587 3.15606 10.3315 2.01782 14.3714C2.40899 14.5413 2.75527 14.8652 3.0278 15.3205C3.40935 15.9553 3.62738 16.8018 3.64021 17.7059C3.66265 19.1969 3.14323 20.4409 2.34486 21.0212C3.87106 24.9137 7.6641 27.6775 12.092 27.6775C16.5199 27.6775 20.2392 24.965 21.7942 21.1335C21.4832 20.9475 21.2011 20.6653 20.9734 20.2838C20.5919 19.6489 20.3738 18.8025 20.361 17.8983C20.3482 16.9941 20.5406 16.1316 20.9061 15.4647C21.2267 14.8812 21.6596 14.4868 22.1533 14.3201C20.9862 10.2705 17.4369 7.22136 13.1276 6.79492V9.40164V9.39843Z",fill:"#222222"}),s.jsx("path",{d:"M2.11336 15.6882C2.01717 15.5278 1.91136 15.3932 1.80234 15.2874C1.626 15.1142 1.44003 15.0212 1.27651 15.0277C1.26369 15.0277 1.25407 15.0277 1.24124 15.0277C0.98474 15.0597 0.686555 15.3323 0.458909 15.7523C0.151105 16.3198 -0.00921002 17.0636 0.000408859 17.8556C0.013234 18.6476 0.195993 19.3786 0.516622 19.914C0.769919 20.3309 1.09055 20.5842 1.35346 20.5745C1.56508 20.5649 1.80876 20.3886 2.02358 20.0776C2.36345 19.5934 2.64239 18.7822 2.62636 17.7466C2.61354 16.9546 2.43078 16.2236 2.11015 15.6882H2.11336Z",fill:"#222222"}),s.jsx("path",{d:"M23.4832 15.6881C23.2299 15.2713 22.9093 15.018 22.6464 15.0276C22.6336 15.0276 22.6239 15.0276 22.6111 15.0276C22.5278 15.0372 22.438 15.0757 22.3514 15.1366C22.1686 15.2585 21.9827 15.4733 21.8288 15.7554C21.521 16.3165 21.3607 17.0604 21.3703 17.8524C21.3831 18.6443 21.5659 19.3753 21.8865 19.9108C21.957 20.0294 22.034 20.132 22.1141 20.2218C22.3161 20.4494 22.5342 20.5809 22.7233 20.5713C23.2652 20.5424 24.0219 19.4363 23.9994 17.7433C23.9866 16.9514 23.8039 16.2203 23.4832 15.6849V15.6881Z",fill:"#222222"}),s.jsx("path",{d:"M8.21805 14.4265C7.47098 14.3944 6.86499 15.4749 6.86499 16.8408C6.86499 18.2067 7.47098 19.3417 8.22125 19.3738C8.97152 19.4058 9.57431 18.3253 9.57431 16.9594C9.57431 15.5936 8.96832 14.4585 8.21805 14.4265ZM8.68616 19.0019C8.35912 19.3065 7.88459 19.2135 7.62488 18.7967C7.36517 18.3798 7.41647 17.7931 7.74351 17.4885C8.07056 17.1839 8.54509 17.2769 8.8048 17.6937C9.06451 18.1105 9.01321 18.6973 8.68616 19.0019Z",fill:"#222222"}),s.jsx("path",{d:"M14.9832 14.2624C14.2361 14.2304 13.6301 15.3109 13.6333 16.6768C13.6333 18.0426 14.2425 19.1745 14.9896 19.2065C15.7366 19.2386 16.3426 18.1581 16.3394 16.7922C16.3394 15.4263 15.7302 14.2945 14.9832 14.2624ZM15.4256 18.8987C15.0954 19.1969 14.6209 19.1007 14.3676 18.6775C14.1143 18.2575 14.1752 17.6707 14.5054 17.3725C14.8357 17.0743 15.3102 17.1705 15.5635 17.5938C15.8168 18.017 15.7559 18.6005 15.4256 18.8987Z",fill:"#222222"}),s.jsx("path",{d:"M12.399 9.33728V4.81641H11.6711V9.34369C11.8122 9.33728 11.9533 9.33086 12.0944 9.33086C12.197 9.33086 12.2996 9.33407 12.399 9.33728Z",fill:"#222222"})]}),pz=({isOpen:A,onClose:e,description:t,buttonText:n,product:i="elevate",onConfirm:r,children:o,secondButton:B=!1,optionalFunction:a,optionalButtonText:g})=>s.jsxs(zn,{isOpen:A,onClose:e,isCentered:!0,children:[s.jsx(Ln,{}),s.jsxs(jn,{bg:"white",position:"relative",textAlign:"center",p:6,borderRadius:"8px",width:"auto",children:[s.jsx(Oe,{"aria-label":"Cerrar modal",icon:s.jsx(Lr,{}),size:"sm",variant:"ghost",position:"absolute",top:3,right:3,onClick:e}),s.jsxs(OA,{direction:"column",align:"center",gap:0,children:[s.jsx(hz,{}),s.jsx(Xn,{fontSize:"xl",fontWeight:"bold",color:"success.400",fontFamily:"Body",children:"¡Enhorabuena!"}),s.jsxs(On,{children:[s.jsxs(Dt,{spacing:3,justifyContent:"center",children:[s.jsx(Sz,{}),s.jsx(mA,{children:t})]}),s.jsx(Dt,{spacing:3,justifyContent:"center",children:o})]}),s.jsxs(SB,{children:[B&&s.jsx(ve,{backgroundColor:"#fff",border:"1px solid",borderColor:`${i}.600`,color:`${i}.600`,onClick:a,_hover:{backgroundColor:"#fff"},marginRight:"1.5rem",children:g}),s.jsx(ve,{backgroundColor:`${i}.500`,color:"white",_hover:{backgroundColor:`${i}.600`},onClick:r,children:n})]})]})]})]}),Tz=({isOpen:A,onClose:e,description:t,title:n,buttonText:i,onConfirm:r,children:o})=>s.jsxs(zn,{isOpen:A,onClose:e,isCentered:!0,children:[s.jsx(Ln,{}),s.jsxs(jn,{bg:"white",position:"relative",textAlign:"center",p:4,width:"280px",boxShadow:"0px 2px 4px -1px rgba(0, 0, 0, 0.06), 0px 4px 6px -1px rgba(0, 0, 0, 0.1)",borderRadius:"lg",children:[s.jsx(Oe,{"aria-label":"Cerrar modal",icon:s.jsx(Lr,{}),size:"sm",variant:"ghost",position:"absolute",top:3,right:3,onClick:e}),s.jsxs(OA,{direction:"column",align:"center",gap:0,children:[s.jsx(it,{as:Cz,boxSize:"42px",color:"danger.400"}),s.jsx(Xn,{fontSize:"xl",fontWeight:"bold",color:"danger.400",fontFamily:"Lato-Bold",p:1,children:n}),s.jsxs(On,{p:1,mb:3,children:[s.jsx(Dt,{spacing:3,justifyContent:"center",children:s.jsx(mA,{fontFamily:"Lato-Regular",color:"danger.400",children:t})}),s.jsx(Dt,{spacing:3,justifyContent:"center",children:o})]}),s.jsx(SB,{p:1,children:s.jsx(_s,{as:"button",color:"info.500",fontFamily:"lato-bold",style:{textDecoration:"underline"},_hover:{color:"info.600"},onClick:r,children:i})})]})]})]}),Vz=({message:A,colorTextMessage:e="#333333",isError:t=!1,toastSuccessMsg:n="Text copied",isTyping:i=!1,colorCopyIcon:r="#333333"})=>{const o=t?"red.400":"transparent",B=t?"2px solid":"none",a=VI(),g=async()=>{try{typeof A=="string"&&await navigator.clipboard.writeText(A),a({type:"success",title:n,duration:2e3,position:"bottom-right"})}catch(E){console.error("Error al copiar el mensaje:",E);const I=E instanceof Error?E.message:String(E);a({type:"error",title:I,duration:2e3,position:"bottom-right"})}},l=E=>{if(typeof E=="string"){const I=/([.?!;:])\s*/g;return E.split(I).map((c,Q)=>c.match(I)?s.jsxs("span",{children:[c,s.jsx("br",{})]},Q):c)}return E};return s.jsxs(Qt,{align:"flex-start",spacing:2,w:"100%",py:2,children:[s.jsx(Dt,{spacing:2,w:"100%",children:s.jsx(GA,{bg:"transparent",color:"black",px:5,py:3,w:"100%",border:B,borderColor:o,borderRadius:"50px",children:s.jsx(OA,{justify:"space-between",align:"center",w:"100%",children:s.jsx(mA,{fontSize:"md",whiteSpace:"pre-wrap",wordBreak:"break-word",w:"85%",textAlign:"left",color:e||"#333333",children:i?s.jsxs(mA,{fontStyle:"italic",color:"gray.500",children:[s.jsx("span",{children:"."}),s.jsx("span",{children:"."}),s.jsx("span",{children:"."})]}):l(A)})})})}),s.jsx(Dt,{spacing:2,children:s.jsx(Oe,{"aria-label":"Copy",icon:s.jsx(_0,{size:20,color:r}),variant:"ghost",onClick:g})})]})};function mz(A){return ne({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.354 6.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7 8.793l2.646-2.647a.5.5 0 0 1 .708 0"},child:[]},{tag:"path",attr:{d:"m10.273 2.513-.921-.944.715-.698.622.637.89-.011a2.89 2.89 0 0 1 2.924 2.924l-.01.89.636.622a2.89 2.89 0 0 1 0 4.134l-.637.622.011.89a2.89 2.89 0 0 1-2.924 2.924l-.89-.01-.622.636a2.89 2.89 0 0 1-4.134 0l-.622-.637-.89.011a2.89 2.89 0 0 1-2.924-2.924l.01-.89-.636-.622a2.89 2.89 0 0 1 0-4.134l.637-.622-.011-.89a2.89 2.89 0 0 1 2.924-2.924l.89.01.622-.636a2.89 2.89 0 0 1 4.134 0l-.715.698a1.89 1.89 0 0 0-2.704 0l-.92.944-1.32-.016a1.89 1.89 0 0 0-1.911 1.912l.016 1.318-.944.921a1.89 1.89 0 0 0 0 2.704l.944.92-.016 1.32a1.89 1.89 0 0 0 1.912 1.911l1.318-.016.921.944a1.89 1.89 0 0 0 2.704 0l.92-.944 1.32.016a1.89 1.89 0 0 0 1.911-1.912l-.016-1.318.944-.921a1.89 1.89 0 0 0 0-2.704l-.944-.92.016-1.32a1.89 1.89 0 0 0-1.912-1.911z"},child:[]}]})(A)}const xz=({subtitle:A,title:e,items:t,textButton:n,onClick:i,isOpen:r,icon:o,onClose:B=()=>{},hideCloseButton:a=!1,closeOnEsc:g=!0,closeOnOverlayClick:l=!0,...E})=>s.jsx(Qt,{alignItems:"center",justifyContent:"center",...E,children:s.jsxs(zn,{isOpen:r,onClose:B,isCentered:!0,closeOnEsc:g,closeOnOverlayClick:l,children:[s.jsx(Ln,{backgroundColor:"black.100"}),s.jsx(jn,{backgroundColor:"assist.200",borderRadius:"1rem",boxShadow:"0 0 0 rgba(0, 0, 0, 0.06)",maxWidth:"664px",width:"100%",children:s.jsxs(GA,{maxWidth:"306px",margin:" 66px auto",textAlign:"left",width:"100%",children:[s.jsxs(Xn,{fontFamily:"Sansation-Bold",padding:"12px 0 12px",children:[s.jsx(mA,{fontSize:"20px",children:A}),s.jsx(mA,{fontSize:"28px",children:e})]}),s.jsx(hB,{_hover:{backgroundColor:"white.100"},hidden:a}),s.jsxs(On,{padding:"0",children:[t==null?void 0:t.map(I=>s.jsxs(OA,{alignItems:"center",children:[o||s.jsx(mz,{size:"20",color:"#2f93df"}),s.jsx(mA,{fontFamily:"Lato",color:"black.400",margin:"4px 4px",children:I.name})]})),s.jsxs(ve,{backgroundColor:"assist.500",fontFamily:"sansationBold",fontWeight:"700",color:"white.100",marginTop:"24px",maxWidth:"240px",width:"100%",fontSize:"20px",onClick:i,_hover:{backgroundColor:"assist.500"},children:[s.jsx(mA,{marginRight:"8px",children:n}),s.jsx(Jv,{})]})]})]})})]})});function yz(A){return ne({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 73.4-73.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-128 128z"},child:[]}]})(A)}const kz=({text:A,onClick:e})=>s.jsxs(OA,{flexDirection:"row",onClick:e,color:"info.500",alignItems:"center",fontFamily:"Lato",fontSize:"1rem",maxWidth:"max-content",width:"100%",cursor:"pointer",children:[s.jsx(yz,{}),s.jsx(mA,{marginLeft:".5rem",children:A})]}),bz=({type:A="",text:e=""})=>s.jsx(GA,{className:`banner-container ${A}`,children:s.jsx(GA,{position:"relative",children:s.jsx(mA,{className:"banner-text",position:"absolute",children:e})})}),Nz=({items:A,onClick:e,size:t})=>{const[n,i]=u.useState(null),r=o=>{i(o),e==null||e(o)};return s.jsx(OA,{className:"container-single-choise",children:A==null?void 0:A.map(o=>s.jsx(ve,{size:t,border:"1px solid",borderColor:"assist.700",color:"assist.700",backgroundColor:"assist.200",onClick:()=>r(o.value),className:n===o.value?"active":"",borderRadius:"12px",children:o==null?void 0:o.name}))})},Wz=({elements:A})=>{const e=A.length;return s.jsx(GA,{maxWidth:"936px",width:"100%",margin:"0 auto",children:A.map((t,n)=>s.jsx(Bs,{allowToggle:!0,mb:"25px",sx:{"& > *":{borderTopWidth:0,borderBottomWidth:0},"& > *:last-of-type":{borderBottomWidth:"0 !important"}},children:s.jsx(ls,{borderTopWidth:"0",children:({isExpanded:i})=>s.jsxs(s.Fragment,{children:[s.jsx(as,{backgroundColor:"#F9F9F9",borderRadius:"8px",border:"none",pr:"40px",pl:"20px",py:"10px",children:s.jsxs(Ls,{templateColumns:`repeat(${e}, 1fr)`,gap:4,flex:"1",textAlign:"center",children:[s.jsx(GA,{children:s.jsxs(OA,{as:"span",alignItems:"center",children:[s.jsx(GA,{marginRight:"12px",children:t.icon}),s.jsx(mA,{maxWidth:"max-content",fontFamily:"LatoBold",fontSize:"19px",children:t.name})]})},n),s.jsx(GA,{children:s.jsxs(OA,{as:"span",alignItems:"center",children:[s.jsx(GA,{marginRight:"4px",children:s.jsx(pv,{color:t.statusCanal?"#21B06E":"#C1C1C1"})}),s.jsx(mA,{maxWidth:"max-content",fontFamily:"LatoBold",fontSize:"19px",color:t.statusCanal?"#21B06E":"#C1C1C1",children:t.textStatus})]})},n),s.jsx(GA,{children:s.jsxs(OA,{as:"span",alignItems:"center",justifyContent:"flex-end",children:[s.jsx(mA,{maxWidth:"max-content",fontFamily:"Lato",fontWeight:"400",fontSize:"16px",color:"#007EDF",textDecoration:"underline",textUnderlineOffset:"4px",children:"Configurar"}),s.jsx(gs,{transform:i?"rotate(0deg)":"rotate(-90deg)",transition:"transform 0.2s"})]})},n)]})}),s.jsx(Es,{children:t.children})]})})}))})},vz=({color:A,icon:e,title:t,status:n,menuOptions:i,textBottomOption:r,currentUrl:o,...B})=>{const a=["hub","play","elevate","assist","talent","ad","collect","localhost"],l=`sidebarOpen_${window.location.hostname.split(".").find(D=>a.includes(D))||"default"}`,[E,I]=u.useState(()=>{const F=localStorage.getItem(l);return F===null?(localStorage.setItem(l,"true"),!0):F==="true"}),c=A||He.primary[400],Q=Pg(He,`${c.split(".")[0]}.300`),U=()=>{I(F=>(localStorage.setItem(l,String(!F)),!F))};let C,R,M="#5aa9e6";switch(n.toLowerCase()){case"progress":C=s.jsx(mf,{size:20,style:{color:M,marginRight:".5rem"}}),R="En progreso";break;case"active":C=s.jsx(xf,{size:20,style:{color:"#21B06e",marginRight:".5rem"}}),R="Disponible",M="#21B06e";break;case"failed":C=s.jsx(tM,{size:20,style:{color:"#ce0015",marginRight:".5rem"}}),R="Error",M="#ce0015";break;case"inactive":C=s.jsx(Tf,{size:20,style:{color:"#666",marginRight:".5rem",transform:"rotate(90deg)"}}),R="Inactivo",M="#666";break}return s.jsxs(GA,{bg:He.white[100],color:He.black[400],borderRight:`1px solid ${He.black[50]}`,minWidth:E?"235px":"72px",transition:"min-width 0.3s ease, background-color 0.3s ease",minHeight:"100vh",boxShadow:"xl",position:"sticky",top:"0",h:"100vh",zIndex:9,paddingLeft:"20px",...B,children:[s.jsxs(Qt,{align:"start",pt:"20px",position:"relative",width:"100%",children:[s.jsx(OA,{width:"100%",display:E?"none":"flex",justifyContent:"center",children:e}),s.jsxs(GA,{width:"100%",display:E?"block":"none",children:[s.jsx(mA,{color:A,fontFamily:"Sansation-Bold",fontSize:"24px",width:"100%",children:t}),s.jsxs(OA,{width:"100%",justifyContent:"center",alignItems:"center",children:[C,s.jsx(mA,{color:M,fontSize:"16px",children:R})]})]}),s.jsx(Oe,{icon:E?s.jsx(P0,{boxSize:"24px"}):s.jsx(z0,{boxSize:"24px"}),onClick:U,position:"absolute",top:"125px",right:"-20px",size:"sm","aria-label":"Toggle Menu",bg:He.white[100],color:He.black[400],boxShadow:"md",zIndex:2,transition:"all 0.3s ease",_hover:{bg:Q}}),i.map((F,S)=>s.jsxs(OA,{flexDirection:"column",width:"100%",children:[F.title&&E&&s.jsx(mA,{ml:2,transition:"font-weight 0.3s ease",fontFamily:"Sansation-Bold",fontWeight:"700",fontSize:"16px",textAlign:"left",color:"black.500",mb:"12px",children:F.title}),F.options&&F.options.length>0&&s.jsx(OA,{width:"100%",flexDirection:"column",children:F.options.map((f,D)=>s.jsx(ve,{justifyContent:E?"flex-start":"center",width:"100%",variant:"ghost",color:He.black[400],px:E?4:0,transition:"all 0.3s ease",iconSpacing:E?2:0,display:"flex",alignItems:"center",margin:"8px 0",_hover:{svg:{color:c},"> p":{fontWeight:"bold"}},_active:{svg:{color:c},"> p":{fontWeight:"bold"}},onClick:()=>alert(`Clicked on ${f.title}`),isActive:o===f.url,children:s.jsxs(OA,{children:[f.icon,E&&s.jsx(mA,{ml:2,transition:"font-weight 0.3s ease",color:"black.500",children:f.title})]})},D))})]},S))]}),r==null?void 0:r.map((F,S)=>s.jsxs(ve,{display:"flex",alignItems:"center",backgroundColor:"white.100",fontFamily:"Sansation-Regular",fontSize:"16px",position:"absolute",bottom:"40px",padding:"0 10px",sx:{_hover:{backgroundColor:"white.100"}},onClick:()=>alert(`Clicked on ${F.title}`),isActive:o===F.url,children:[s.jsx("span",{style:{marginRight:"8px"},children:F.icon}),E&&s.jsx("span",{children:F.title})]},S))]})},Hz=({width:A=24,height:e=24,color:t="#FFAE0C"})=>s.jsxs("svg",{width:A,height:e,viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M5 23.75C5 13.3956 13.3956 5 23.75 5C34.1044 5 42.5 13.3956 42.5 23.75C42.5 34.1044 34.1044 42.5 23.75 42.5C13.3956 42.5 5 34.1044 5 23.75ZM23.75 8C15.0525 8 8 15.0525 8 23.75C8 32.4475 15.0525 39.5 23.75 39.5C32.4475 39.5 39.5 32.4475 39.5 23.75C39.5 15.0525 32.4475 8 23.75 8Z",fill:t}),s.jsx("path",{d:"M19.625 21.125C19.625 20.2966 20.2966 19.625 21.125 19.625H24.125C24.9534 19.625 25.625 20.2966 25.625 21.125V32C25.625 32.8284 24.9534 33.5 24.125 33.5C23.2966 33.5 22.625 32.8284 22.625 32V22.625H21.125C20.2966 22.625 19.625 21.9534 19.625 21.125Z",fill:t}),s.jsx("path",{d:"M18.5 32.375C18.5 31.5466 19.1716 30.875 20 30.875H28.25C29.0784 30.875 29.75 31.5466 29.75 32.375C29.75 33.2034 29.0784 33.875 28.25 33.875H20C19.1716 33.875 18.5 33.2034 18.5 32.375Z",fill:t}),s.jsx("path",{d:"M23.75 12.6875C23.2679 12.6875 22.7966 12.8305 22.3958 13.0983C21.995 13.3661 21.6825 13.7468 21.498 14.1922C21.3136 14.6376 21.2653 15.1277 21.3593 15.6005C21.4534 16.0734 21.6855 16.5077 22.0264 16.8486C22.3673 17.1895 22.8016 17.4216 23.2745 17.5157C23.7473 17.6097 24.2374 17.5614 24.6828 17.377C25.1282 17.1925 25.5089 16.88 25.7767 16.4792C26.0445 16.0784 26.1875 15.6071 26.1875 15.125C26.1875 14.4785 25.9307 13.8585 25.4736 13.4014C25.0165 12.9443 24.3965 12.6875 23.75 12.6875Z",fill:t})]}),Gz=({isOpen:A,onClose:e=()=>{},text:t,textButton:n="Iniciar Sessión",backgroundButton:i="elevate.500",hideCloseButton:r=!0,closeOnEsc:o=!0,closeOnOverlayClick:B=!0,onLoginClick:a})=>s.jsx(Qt,{alignItems:"center",justifyContent:"center",children:s.jsxs(zn,{isOpen:A,onClose:e,isCentered:!0,closeOnEsc:o,closeOnOverlayClick:B,children:[s.jsx(Ln,{opacity:.5,backgroundColor:"black.500"}),s.jsxs(jn,{backgroundColor:"white.100",maxWidth:"447px",width:"100%",color:"black.600",children:[s.jsxs(Xn,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",mt:"4px",children:[s.jsx(GA,{as:"span",textAlign:"center",children:s.jsx(Hz,{width:40,height:40})}),s.jsx(mA,{fontFamily:"Heading",fontSize:"22px",children:"¡Atención!"})]}),s.jsx(hB,{hidden:r}),s.jsx(On,{margin:"0 auto",maxWidth:"320px",width:"100%",padding:"0",mb:"15px",children:s.jsx(mA,{fontFamily:"Lato",fontSize:"16px",children:t})}),s.jsx(ve,{backgroundColor:i,color:"white.100",maxWidth:"max-content",width:"100%",margin:"12px auto 30px",padding:"10px 24px",fontFamily:"Heading",fontSize:"18px",onClick:a,_hover:{backgroundColor:{backgroundButton:i}},children:n})]})]})}),Jz=({width:A=24,height:e=24,color:t="#FFAE0C"})=>s.jsxs("svg",{width:A,height:e,viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M5 23.75C5 13.3956 13.3956 5 23.75 5C34.1044 5 42.5 13.3956 42.5 23.75C42.5 34.1044 34.1044 42.5 23.75 42.5C13.3956 42.5 5 34.1044 5 23.75ZM23.75 8C15.0525 8 8 15.0525 8 23.75C8 32.4475 15.0525 39.5 23.75 39.5C32.4475 39.5 39.5 32.4475 39.5 23.75C39.5 15.0525 32.4475 8 23.75 8Z",fill:t}),s.jsx("path",{d:"M19.625 21.125C19.625 20.2966 20.2966 19.625 21.125 19.625H24.125C24.9534 19.625 25.625 20.2966 25.625 21.125V32C25.625 32.8284 24.9534 33.5 24.125 33.5C23.2966 33.5 22.625 32.8284 22.625 32V22.625H21.125C20.2966 22.625 19.625 21.9534 19.625 21.125Z",fill:t}),s.jsx("path",{d:"M18.5 32.375C18.5 31.5466 19.1716 30.875 20 30.875H28.25C29.0784 30.875 29.75 31.5466 29.75 32.375C29.75 33.2034 29.0784 33.875 28.25 33.875H20C19.1716 33.875 18.5 33.2034 18.5 32.375Z",fill:t}),s.jsx("path",{d:"M23.75 12.6875C23.2679 12.6875 22.7966 12.8305 22.3958 13.0983C21.995 13.3661 21.6825 13.7468 21.498 14.1922C21.3136 14.6376 21.2653 15.1277 21.3593 15.6005C21.4534 16.0734 21.6855 16.5077 22.0264 16.8486C22.3673 17.1895 22.8016 17.4216 23.2745 17.5157C23.7473 17.6097 24.2374 17.5614 24.6828 17.377C25.1282 17.1925 25.5089 16.88 25.7767 16.4792C26.0445 16.0784 26.1875 15.6071 26.1875 15.125C26.1875 14.4785 25.9307 13.8585 25.4736 13.4014C25.0165 12.9443 24.3965 12.6875 23.75 12.6875Z",fill:t})]}),Zz=({isOpen:A,onClose:e=()=>{},text:t,textButton:n,backgroundButton:i="elevate.500",hideCloseButton:r=!0,closeOnEsc:o=!0,closeOnOverlayClick:B=!0,onBackClick:a})=>s.jsx(Qt,{alignItems:"center",justifyContent:"center",children:s.jsxs(zn,{isOpen:A,onClose:e,isCentered:!0,closeOnEsc:o,closeOnOverlayClick:B,children:[s.jsx(Ln,{opacity:.5,backgroundColor:"black.500"}),s.jsxs(jn,{backgroundColor:"white.100",maxWidth:"447px",width:"100%",color:"black.600",children:[s.jsxs(Xn,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",mt:"4px",children:[s.jsx(GA,{as:"span",textAlign:"center",children:s.jsx(Jz,{width:40,height:40})}),s.jsx(mA,{fontFamily:"Sansation-Bold",fontSize:"20px",children:"¡Atención!"})]}),s.jsx(hB,{hidden:r}),s.jsx(On,{margin:"0 auto",maxWidth:"310px",width:"100%",padding:"0",children:s.jsx(mA,{fontFamily:"Lato-Regular",fontSize:"16px",children:t})}),s.jsx(ve,{backgroundColor:i,color:"white.100",maxWidth:"max-content",width:"100%",margin:"12px auto 30px",padding:"10px 24px",fontFamily:"Sansation-Bold",fontSize:"18px",onClick:a,_hover:{backgroundColor:{backgroundButton:i}},children:n})]})]})});yA.AccordionCustom=oz,yA.AudioButtons=uz,yA.BackNavigation=kz,yA.Banner=bz,yA.Button=Gv,yA.CanaiaProvider=Ev,yA.CardCustom=Iz,yA.ChatAssistant=m7,yA.ChatInput=Az,yA.ChatUser=jH,yA.ChatWithoutFeedback=Vz,yA.CustomBox=Ez,yA.CustomCheckBox=fz,yA.CustomProgressBar=lz,yA.DragAndDrop=HH,yA.Header=$7,yA.Input=JH,yA.InputPhone=PH,yA.MenuListCustom=Bz,yA.MetricCustom=sz,yA.ModalConfirmation=nz,yA.ModalCustom=tz,yA.ModalFeedback=Dz,yA.ModalInactivity=Gz,yA.ModalPermission=Zz,yA.ModalPremium=xz,yA.MultiHeaderAccordion=Wz,yA.MultiInput=zH,yA.NegativeModal=Tz,yA.PhotoUpload=Yv,yA.PositiveModal=pz,yA.SegmentedControl=Uz,yA.Select=Uv,yA.SideBar=ez,yA.SideBarCustom=vz,yA.SingleChoice=Nz,yA.Spinner=Qz,yA.StatusCustom=gz,yA.Steps=Pv,yA.SwitchCustom=Mz,yA.Tabs=Fz,yA.TabsOptions=wz,yA.TagSelector=dz,yA.Text=GH,yA.TextareaCustom=az,yA.Toast=DM,yA.useCustomToast=VI,Object.defineProperty(yA,Symbol.toStringTag,{value:"Module"})});
|