@canaia/ui-kit 0.0.10-alpha.64 → 0.0.10-alpha.65
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
|
@@ -28084,7 +28084,8 @@ const nI = ({
|
|
|
28084
28084
|
onClose: t,
|
|
28085
28085
|
description: n,
|
|
28086
28086
|
buttonText: r,
|
|
28087
|
-
product: o = "elevate"
|
|
28087
|
+
product: o = "elevate",
|
|
28088
|
+
onConfirm: i
|
|
28088
28089
|
}) => /* @__PURE__ */ d.jsxs(Lc, { isOpen: e, onClose: t, isCentered: !0, children: [
|
|
28089
28090
|
/* @__PURE__ */ d.jsx(Hc, {}),
|
|
28090
28091
|
/* @__PURE__ */ d.jsxs(
|
|
@@ -28132,7 +28133,7 @@ const nI = ({
|
|
|
28132
28133
|
backgroundColor: `${o}.500`,
|
|
28133
28134
|
color: "white",
|
|
28134
28135
|
_hover: { backgroundColor: `${o}.600` },
|
|
28135
|
-
onClick:
|
|
28136
|
+
onClick: i,
|
|
28136
28137
|
children: r
|
|
28137
28138
|
}
|
|
28138
28139
|
) })
|
|
@@ -409,4 +409,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
409
409
|
fill-opacity: 0.1; /* Se desvanece */
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
`})]}),TI=({color:e="elevate"})=>{const[t]=Xs("colors",[`${e}.500`]);return d.jsx(qe,{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:d.jsx(jI,{color:t||"elevate.500"})})},PI=({options:e,selectedValue:t,onChange:n})=>d.jsx(ed,{isAttached:!0,variant:"outline",children:e.map(r=>d.jsxs(ln,{isActive:t===r.value,onClick:()=>n(r.value),bg:t===r.value?"white.100":"black.50",color:t===r.value?"black":"black.400",fontWeight:"400",_hover:{bg:t===r.value?"white.200":"black.100"},_active:{bg:t===r.value?"white.300":"black.200"},borderColor:t===r.value?"black.200":"black.100",children:[r.label," ",r.count!==void 0&&`(${r.count})`]},r.value))});function EI(e){return dt({tag:"svg",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:[]}]})(e)}const AI=({state:e,duration:t="00:00",onClickPlayPause:n,onClickRecord:r,inactive:o=!1,buttonColor:i="primary.500"})=>{const a=va(),s=()=>{switch(e){case"idle":return EI;case"recording":return J3;case"playing":return _M;case"paused":case"stopped":default:return jM}},l=[1,4,6,3,5,1,1,4,6,3,5,1,4,6,3,5,1,1,4,6,3,5,4,1],c=o?void 0:Lt(i,.7)(a),u=()=>{o||(e==="idle"||e==="recording"?r&&r():(e==="playing"||e==="paused")&&n())};return d.jsxs(qe,{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"2px 12px",borderRadius:"25px",bg:o?"gray.300":i,color:o?"gray.600":"white",cursor:o?"not-allowed":"pointer",_hover:{bg:c},width:"100%",onClick:u,children:[d.jsx(qt,{"aria-label":e==="recording"?"Recording":e==="idle"?"Start recording":e==="playing"?"Pause playback":"Play playback",icon:g.createElement(s()),isRound:!0,isDisabled:o,bg:"transparent",_hover:{bg:"transparent"},color:o?"gray.600":"white",fontSize:"20px"}),d.jsx(qe,{display:"flex",justifyContent:"center",flex:"1",mx:"16px",alignItems:"center",children:e==="idle"?d.jsx(Le,{fontSize:"sm",fontWeight:"bold",color:"white",children:"Record your voice"}):e==="recording"?d.jsx(qe,{display:"flex",gap:"2px",alignItems:"center",children:l.map((f,p)=>d.jsx(qe,{width:"2px",height:`${f*3}px`,bg:"white",borderRadius:"1px",_hover:{bg:"gray.200"}},p))}):d.jsx(qe,{display:"flex",gap:"2px",alignItems:"center",children:l.map((f,p)=>d.jsx(qe,{width:"2px",height:`${f*3}px`,bg:"white",borderRadius:"1px",_hover:{bg:"gray.200"}},p))})}),d.jsx(Le,{fontSize:"sm",fontWeight:"bold",marginLeft:"8px",children:t})]})},MI=({options:e,selectedValue:t,onChange:n})=>d.jsx(ed,{isAttached:!0,variant:"outline",borderRadius:"md",overflow:"hidden",children:e.map(r=>d.jsxs(ln,{isActive:t===r.value,onClick:()=>n(r.value),bg:t===r.value?"primary.400":"black.40",color:t===r.value?"white.100":"gray.800",fontWeight:"500",_hover:{bg:t===r.value?"primary.400":"primary.300",color:"white"},_active:{bg:t===r.value?"primary.400":"primary.300"},borderColor:(t===r.value,"black.40"),children:[r.icon&&d.jsx(qe,{as:"span",display:"flex",alignItems:"center",justifyContent:"center",bg:r.iconBg||"transparent",borderRadius:r.iconBgRadius||"0",p:r.iconPadding||"0",boxSize:r.iconSize||"16px",color:r.iconColor||"gray.800",marginRight:"5px",children:d.jsx(qe,{as:r.icon,boxSize:"100%"})}),r.label]},r.value))}),OI=({isChecked:e,onChange:t,size:n="lg",colorScheme:r="success",labelPosition:o="left",isActive:i=!0,checkedLabel:a="",uncheckedLabel:s=""})=>{const[l,c]=g.useState(e),u=f=>{if(!i)return;const p=f.target.checked;c(p),t&&t(p)};return d.jsxs(qe,{display:"flex",alignItems:"center",children:[d.jsx(ii,{htmlFor:"switch",mb:"0",order:o==="right"?1:0,mr:o==="right"?0:2,ml:o==="left"?0:2,children:l?a:s}),d.jsx($3,{id:"switch",isChecked:l,onChange:u,size:n,colorScheme:r,isDisabled:!i})]})},II=({availableTags:e,selectedTags:t=[],onTagChange:n,colorScheme:r="primary",colorSchemeNumber:o="400"})=>{const i=s=>{if(!t.includes(s)){const l=[...t,s];n==null||n(l)}},a=s=>{const l=t.filter(c=>c!==s);n==null||n(l)};return d.jsxs(ar,{align:"start",spacing:4,children:[d.jsx(Nr,{spacing:2,wrap:"wrap",children:t.map(s=>d.jsxs(rf,{size:"lg",bg:`${r}.${o}`,color:"white",borderRadius:"full",children:[d.jsx(V3,{children:s}),d.jsx(H3,{onClick:()=>a(s)})]},s))}),d.jsx(Nr,{spacing:2,wrap:"wrap",children:e.filter(s=>!t.includes(s)).map(s=>d.jsx(rf,{size:"lg",variant:"outline",colorScheme:r,cursor:"pointer",onClick:()=>i(s),children:s},s))})]})},DI=({items:e,selectedOptions:t=[],onCheckBoxChange:n,isFileUpload:r=!1,borderColor:o="gray.600",backgroundColor:i="gray.600",fontFamily:a="Lato",fontSize:s=".875rem",height:l="1rem",width:c="1rem",borderRadius:u="0.125rem",borderWidth:f="2px",directionOptions:p="column",spacingContentOptions:h=".5rem 0",spacingOptions:b=".5rem .5rem",title:m="Seleccionar proveedor",colorTitle:v="black.100",fontFamilyTitle:S="Lato",fontSizeTitle:y="1rem",alignTitle:C="left",marginTitle:j=".5rem 0",subtitle:x="Selecciona uno o varios de los siguientes proveedores para probar sus capacidades.",colorSubtitle:E="black.100",fontFamilySubtitle:P="Lato",fontSizeSubtitle:D="1rem",alignSubtitle:R="left"})=>{const[L,Z]=g.useState(t);g.useEffect(()=>{r&&Z(t)},[r,t]);const ce=he=>{const O=e==null?void 0:e.find(F=>F.value===he);if(O){const F=L.includes(O)?L.filter(K=>K.value!==O.value):[...L,O];Z(F),n&&n(F)}},z=b.trim().split(" ");let Y="0",G="0",N="0",ue="0";return z.length===4?(Y=z[0],G=z[1],N=z[2],ue=z[3]):z.length===3?(Y=z[0],G=ue=z[1],N=z[2]):z.length===2?(Y=N=z[0],ue=G=z[1]):z.length===1?Y=G=N=ue=z[0]:Y=G=N=ue="0",d.jsxs(ut,{flexDirection:"column",alignItems:"flex-start",children:[d.jsx(Le,{color:v,fontFamily:S,fontSize:y,textAlign:C,margin:j,children:m}),d.jsx(Le,{color:E,fontFamily:P,fontSize:D,textAlign:R,children:x}),d.jsx(ut,{flexDirection:p,margin:h,children:e==null?void 0:e.map((he,O)=>d.jsx("div",{children:d.jsx(Fh,{marginTop:Y,marginBottom:N,marginLeft:O===0&&p==="row"?"0":ue,marginRight:G,isChecked:L.some(F=>F.value===he.value),onChange:()=>ce(he.value),value:he.value,fontFamily:a,fontSize:s,sx:{"& .chakra-checkbox__control":{borderColor:o,borderWidth:f,height:l,width:c,borderRadius:u},'& .chakra-checkbox__control[data-checked=""]':{backgroundColor:i,borderColor:o},'& .chakra-checkbox__control[data-checked=""]:hover':{backgroundColor:i,borderColor:o}},children:d.jsxs(ut,{alignItems:"center",children:[he.icon&&d.jsxs("span",{style:{marginRight:".5rem"},children:[" ",he.icon]})," ",he.name]})})},he.value))})]})},j4=Qn(B3),$I=({text1:e="",text2:t="",colorScheme:n="elevate.500",setOnChange:r,defaultIndex:o=0})=>{const i=a=>{r&&r(a)};return d.jsx(qe,{bg:"gray.100",borderRadius:"md",boxShadow:"md",p:"3px",children:d.jsx(L3,{onChange:i,defaultIndex:o,isFitted:!0,variant:"unstyled",children:d.jsxs(N3,{display:"flex",gap:1,position:"relative",children:[d.jsx(j4,{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:e}),d.jsx(j4,{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})]})})})},FI=({isOpen:e,onClose:t,onConfirm:n,title:r,description:o,cancelText:i="Cancelar",confirmText:a="Salir",product:s="elevate"})=>d.jsxs(fl,{isOpen:e,onClose:t,isCentered:!0,children:[d.jsx(Cl,{}),d.jsxs(bl,{position:"relative",bg:"white",p:"24px",borderRadius:"8px",minW:"450px",children:[d.jsx(qt,{"aria-label":"Cerrar modal",icon:d.jsx(kl,{}),size:"sm",variant:"ghost",position:"absolute",top:3,right:3,onClick:t}),d.jsx(xl,{fontSize:"18px",fontFamily:"Body",children:r}),d.jsx(yl,{children:d.jsx(Le,{fontFamily:"Lato",children:o})}),d.jsxs(tf,{display:"flex",justifyContent:"center",mt:"10px",children:[d.jsx(ln,{variant:"outline",color:`${s}.500`,borderColor:`${s}.500`,mr:12,onClick:t,children:i}),d.jsx(ln,{backgroundColor:`${s}.500`,color:"white",_hover:{backgroundColor:`${s}.600`},onClick:n,children:a})]})]})]}),zI=({height:e="40px",width:t="41px"})=>d.jsxs("svg",{width:t,height:e,viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.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"}),d.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"})]}),LI=({height:e="28px",width:t="24px"})=>d.jsxs("svg",{width:t,height:e,viewBox:"0 0 24 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"})]}),BI=({isOpen:e,onClose:t,description:n,buttonText:r,product:o="elevate"})=>d.jsxs(fl,{isOpen:e,onClose:t,isCentered:!0,children:[d.jsx(Cl,{}),d.jsxs(bl,{bg:"white",position:"relative",textAlign:"center",p:6,borderRadius:"8px",width:"auto",children:[d.jsx(qt,{"aria-label":"Cerrar modal",icon:d.jsx(kl,{}),size:"sm",variant:"ghost",position:"absolute",top:3,right:3,onClick:t}),d.jsxs(ut,{direction:"column",align:"center",gap:0,children:[d.jsx(zI,{}),d.jsx(xl,{fontSize:"xl",fontWeight:"bold",color:"success.400",fontFamily:"Body",children:"¡Enhorabuena!"}),d.jsx(yl,{children:d.jsxs(Nr,{spacing:3,justifyContent:"center",children:[d.jsx(LI,{}),d.jsx(Le,{children:n})]})}),d.jsx(tf,{children:d.jsx(ln,{backgroundColor:`${o}.500`,color:"white",_hover:{backgroundColor:`${o}.600`},onClick:t,children:r})})]})]})]});Fe.AccordionCustom=gI,Fe.AudioButtons=AI,Fe.Button=OM,Fe.CanaiaProvider=tM,Fe.CardCustom=kI,Fe.ChatAssistant=BO,Fe.ChatInput=uI,Fe.ChatUser=zO,Fe.CustomBox=SI,Fe.CustomCheckBox=DI,Fe.CustomProgressBar=wI,Fe.DragAndDrop=AO,Fe.Header=cI,Fe.Input=OO,Fe.InputPhone=$O,Fe.MenuListCustom=vI,Fe.MetricCustom=_I,Fe.ModalCustom=pI,Fe.ModalFeedback=FI,Fe.MultiInput=FO,Fe.PhotoUpload=DM,Fe.PositiveModal=BI,Fe.SegmentedControl=PI,Fe.Select=lM,Fe.SideBar=fI,Fe.Spinner=TI,Fe.StatusCustom=CI,Fe.Steps=$M,Fe.SwitchCustom=OI,Fe.Tabs=MI,Fe.TabsOptions=$I,Fe.TagSelector=II,Fe.Text=MO,Fe.TextareaCustom=bI,Fe.Toast=S4,Fe.useCustomToast=k4,Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"})});
|
|
412
|
+
`})]}),TI=({color:e="elevate"})=>{const[t]=Xs("colors",[`${e}.500`]);return d.jsx(qe,{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:d.jsx(jI,{color:t||"elevate.500"})})},PI=({options:e,selectedValue:t,onChange:n})=>d.jsx(ed,{isAttached:!0,variant:"outline",children:e.map(r=>d.jsxs(ln,{isActive:t===r.value,onClick:()=>n(r.value),bg:t===r.value?"white.100":"black.50",color:t===r.value?"black":"black.400",fontWeight:"400",_hover:{bg:t===r.value?"white.200":"black.100"},_active:{bg:t===r.value?"white.300":"black.200"},borderColor:t===r.value?"black.200":"black.100",children:[r.label," ",r.count!==void 0&&`(${r.count})`]},r.value))});function EI(e){return dt({tag:"svg",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:[]}]})(e)}const AI=({state:e,duration:t="00:00",onClickPlayPause:n,onClickRecord:r,inactive:o=!1,buttonColor:i="primary.500"})=>{const a=va(),s=()=>{switch(e){case"idle":return EI;case"recording":return J3;case"playing":return _M;case"paused":case"stopped":default:return jM}},l=[1,4,6,3,5,1,1,4,6,3,5,1,4,6,3,5,1,1,4,6,3,5,4,1],c=o?void 0:Lt(i,.7)(a),u=()=>{o||(e==="idle"||e==="recording"?r&&r():(e==="playing"||e==="paused")&&n())};return d.jsxs(qe,{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"2px 12px",borderRadius:"25px",bg:o?"gray.300":i,color:o?"gray.600":"white",cursor:o?"not-allowed":"pointer",_hover:{bg:c},width:"100%",onClick:u,children:[d.jsx(qt,{"aria-label":e==="recording"?"Recording":e==="idle"?"Start recording":e==="playing"?"Pause playback":"Play playback",icon:g.createElement(s()),isRound:!0,isDisabled:o,bg:"transparent",_hover:{bg:"transparent"},color:o?"gray.600":"white",fontSize:"20px"}),d.jsx(qe,{display:"flex",justifyContent:"center",flex:"1",mx:"16px",alignItems:"center",children:e==="idle"?d.jsx(Le,{fontSize:"sm",fontWeight:"bold",color:"white",children:"Record your voice"}):e==="recording"?d.jsx(qe,{display:"flex",gap:"2px",alignItems:"center",children:l.map((f,p)=>d.jsx(qe,{width:"2px",height:`${f*3}px`,bg:"white",borderRadius:"1px",_hover:{bg:"gray.200"}},p))}):d.jsx(qe,{display:"flex",gap:"2px",alignItems:"center",children:l.map((f,p)=>d.jsx(qe,{width:"2px",height:`${f*3}px`,bg:"white",borderRadius:"1px",_hover:{bg:"gray.200"}},p))})}),d.jsx(Le,{fontSize:"sm",fontWeight:"bold",marginLeft:"8px",children:t})]})},MI=({options:e,selectedValue:t,onChange:n})=>d.jsx(ed,{isAttached:!0,variant:"outline",borderRadius:"md",overflow:"hidden",children:e.map(r=>d.jsxs(ln,{isActive:t===r.value,onClick:()=>n(r.value),bg:t===r.value?"primary.400":"black.40",color:t===r.value?"white.100":"gray.800",fontWeight:"500",_hover:{bg:t===r.value?"primary.400":"primary.300",color:"white"},_active:{bg:t===r.value?"primary.400":"primary.300"},borderColor:(t===r.value,"black.40"),children:[r.icon&&d.jsx(qe,{as:"span",display:"flex",alignItems:"center",justifyContent:"center",bg:r.iconBg||"transparent",borderRadius:r.iconBgRadius||"0",p:r.iconPadding||"0",boxSize:r.iconSize||"16px",color:r.iconColor||"gray.800",marginRight:"5px",children:d.jsx(qe,{as:r.icon,boxSize:"100%"})}),r.label]},r.value))}),OI=({isChecked:e,onChange:t,size:n="lg",colorScheme:r="success",labelPosition:o="left",isActive:i=!0,checkedLabel:a="",uncheckedLabel:s=""})=>{const[l,c]=g.useState(e),u=f=>{if(!i)return;const p=f.target.checked;c(p),t&&t(p)};return d.jsxs(qe,{display:"flex",alignItems:"center",children:[d.jsx(ii,{htmlFor:"switch",mb:"0",order:o==="right"?1:0,mr:o==="right"?0:2,ml:o==="left"?0:2,children:l?a:s}),d.jsx($3,{id:"switch",isChecked:l,onChange:u,size:n,colorScheme:r,isDisabled:!i})]})},II=({availableTags:e,selectedTags:t=[],onTagChange:n,colorScheme:r="primary",colorSchemeNumber:o="400"})=>{const i=s=>{if(!t.includes(s)){const l=[...t,s];n==null||n(l)}},a=s=>{const l=t.filter(c=>c!==s);n==null||n(l)};return d.jsxs(ar,{align:"start",spacing:4,children:[d.jsx(Nr,{spacing:2,wrap:"wrap",children:t.map(s=>d.jsxs(rf,{size:"lg",bg:`${r}.${o}`,color:"white",borderRadius:"full",children:[d.jsx(V3,{children:s}),d.jsx(H3,{onClick:()=>a(s)})]},s))}),d.jsx(Nr,{spacing:2,wrap:"wrap",children:e.filter(s=>!t.includes(s)).map(s=>d.jsx(rf,{size:"lg",variant:"outline",colorScheme:r,cursor:"pointer",onClick:()=>i(s),children:s},s))})]})},DI=({items:e,selectedOptions:t=[],onCheckBoxChange:n,isFileUpload:r=!1,borderColor:o="gray.600",backgroundColor:i="gray.600",fontFamily:a="Lato",fontSize:s=".875rem",height:l="1rem",width:c="1rem",borderRadius:u="0.125rem",borderWidth:f="2px",directionOptions:p="column",spacingContentOptions:h=".5rem 0",spacingOptions:b=".5rem .5rem",title:m="Seleccionar proveedor",colorTitle:v="black.100",fontFamilyTitle:S="Lato",fontSizeTitle:y="1rem",alignTitle:C="left",marginTitle:j=".5rem 0",subtitle:x="Selecciona uno o varios de los siguientes proveedores para probar sus capacidades.",colorSubtitle:E="black.100",fontFamilySubtitle:P="Lato",fontSizeSubtitle:D="1rem",alignSubtitle:R="left"})=>{const[L,Z]=g.useState(t);g.useEffect(()=>{r&&Z(t)},[r,t]);const ce=he=>{const O=e==null?void 0:e.find(F=>F.value===he);if(O){const F=L.includes(O)?L.filter(K=>K.value!==O.value):[...L,O];Z(F),n&&n(F)}},z=b.trim().split(" ");let Y="0",G="0",N="0",ue="0";return z.length===4?(Y=z[0],G=z[1],N=z[2],ue=z[3]):z.length===3?(Y=z[0],G=ue=z[1],N=z[2]):z.length===2?(Y=N=z[0],ue=G=z[1]):z.length===1?Y=G=N=ue=z[0]:Y=G=N=ue="0",d.jsxs(ut,{flexDirection:"column",alignItems:"flex-start",children:[d.jsx(Le,{color:v,fontFamily:S,fontSize:y,textAlign:C,margin:j,children:m}),d.jsx(Le,{color:E,fontFamily:P,fontSize:D,textAlign:R,children:x}),d.jsx(ut,{flexDirection:p,margin:h,children:e==null?void 0:e.map((he,O)=>d.jsx("div",{children:d.jsx(Fh,{marginTop:Y,marginBottom:N,marginLeft:O===0&&p==="row"?"0":ue,marginRight:G,isChecked:L.some(F=>F.value===he.value),onChange:()=>ce(he.value),value:he.value,fontFamily:a,fontSize:s,sx:{"& .chakra-checkbox__control":{borderColor:o,borderWidth:f,height:l,width:c,borderRadius:u},'& .chakra-checkbox__control[data-checked=""]':{backgroundColor:i,borderColor:o},'& .chakra-checkbox__control[data-checked=""]:hover':{backgroundColor:i,borderColor:o}},children:d.jsxs(ut,{alignItems:"center",children:[he.icon&&d.jsxs("span",{style:{marginRight:".5rem"},children:[" ",he.icon]})," ",he.name]})})},he.value))})]})},j4=Qn(B3),$I=({text1:e="",text2:t="",colorScheme:n="elevate.500",setOnChange:r,defaultIndex:o=0})=>{const i=a=>{r&&r(a)};return d.jsx(qe,{bg:"gray.100",borderRadius:"md",boxShadow:"md",p:"3px",children:d.jsx(L3,{onChange:i,defaultIndex:o,isFitted:!0,variant:"unstyled",children:d.jsxs(N3,{display:"flex",gap:1,position:"relative",children:[d.jsx(j4,{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:e}),d.jsx(j4,{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})]})})})},FI=({isOpen:e,onClose:t,onConfirm:n,title:r,description:o,cancelText:i="Cancelar",confirmText:a="Salir",product:s="elevate"})=>d.jsxs(fl,{isOpen:e,onClose:t,isCentered:!0,children:[d.jsx(Cl,{}),d.jsxs(bl,{position:"relative",bg:"white",p:"24px",borderRadius:"8px",minW:"450px",children:[d.jsx(qt,{"aria-label":"Cerrar modal",icon:d.jsx(kl,{}),size:"sm",variant:"ghost",position:"absolute",top:3,right:3,onClick:t}),d.jsx(xl,{fontSize:"18px",fontFamily:"Body",children:r}),d.jsx(yl,{children:d.jsx(Le,{fontFamily:"Lato",children:o})}),d.jsxs(tf,{display:"flex",justifyContent:"center",mt:"10px",children:[d.jsx(ln,{variant:"outline",color:`${s}.500`,borderColor:`${s}.500`,mr:12,onClick:t,children:i}),d.jsx(ln,{backgroundColor:`${s}.500`,color:"white",_hover:{backgroundColor:`${s}.600`},onClick:n,children:a})]})]})]}),zI=({height:e="40px",width:t="41px"})=>d.jsxs("svg",{width:t,height:e,viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.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"}),d.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"})]}),LI=({height:e="28px",width:t="24px"})=>d.jsxs("svg",{width:t,height:e,viewBox:"0 0 24 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"})]}),BI=({isOpen:e,onClose:t,description:n,buttonText:r,product:o="elevate",onConfirm:i})=>d.jsxs(fl,{isOpen:e,onClose:t,isCentered:!0,children:[d.jsx(Cl,{}),d.jsxs(bl,{bg:"white",position:"relative",textAlign:"center",p:6,borderRadius:"8px",width:"auto",children:[d.jsx(qt,{"aria-label":"Cerrar modal",icon:d.jsx(kl,{}),size:"sm",variant:"ghost",position:"absolute",top:3,right:3,onClick:t}),d.jsxs(ut,{direction:"column",align:"center",gap:0,children:[d.jsx(zI,{}),d.jsx(xl,{fontSize:"xl",fontWeight:"bold",color:"success.400",fontFamily:"Body",children:"¡Enhorabuena!"}),d.jsx(yl,{children:d.jsxs(Nr,{spacing:3,justifyContent:"center",children:[d.jsx(LI,{}),d.jsx(Le,{children:n})]})}),d.jsx(tf,{children:d.jsx(ln,{backgroundColor:`${o}.500`,color:"white",_hover:{backgroundColor:`${o}.600`},onClick:i,children:r})})]})]})]});Fe.AccordionCustom=gI,Fe.AudioButtons=AI,Fe.Button=OM,Fe.CanaiaProvider=tM,Fe.CardCustom=kI,Fe.ChatAssistant=BO,Fe.ChatInput=uI,Fe.ChatUser=zO,Fe.CustomBox=SI,Fe.CustomCheckBox=DI,Fe.CustomProgressBar=wI,Fe.DragAndDrop=AO,Fe.Header=cI,Fe.Input=OO,Fe.InputPhone=$O,Fe.MenuListCustom=vI,Fe.MetricCustom=_I,Fe.ModalCustom=pI,Fe.ModalFeedback=FI,Fe.MultiInput=FO,Fe.PhotoUpload=DM,Fe.PositiveModal=BI,Fe.SegmentedControl=PI,Fe.Select=lM,Fe.SideBar=fI,Fe.Spinner=TI,Fe.StatusCustom=CI,Fe.Steps=$M,Fe.SwitchCustom=OI,Fe.Tabs=MI,Fe.TabsOptions=$I,Fe.TagSelector=II,Fe.Text=MO,Fe.TextareaCustom=bI,Fe.Toast=S4,Fe.useCustomToast=k4,Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"})});
|