@e-llm-studio/instant-learning 0.0.87 → 0.0.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/cjs/features/DocumentLearning/_components/MinimizedThinkingSteps.js +1 -1
  2. package/dist/cjs/features/DocumentLearning/_components/_svg/ArrowDown.js +1 -1
  3. package/dist/cjs/features/InstantLearning/_components/ChatComponent.js +1 -1
  4. package/dist/cjs/features/InstantLearning/_components/ContextualChatComponent.js +1 -1
  5. package/dist/cjs/features/InstantLearning/_components/LearningDetailsForm.js +1 -1
  6. package/dist/cjs/features/InstantLearning/_components/MinimizedThinkingSteps.js +1 -1
  7. package/dist/cjs/features/InstantLearning/_components/_svg/ArrowDown.js +1 -1
  8. package/dist/cjs/node_modules/@mui/material/Rating/Rating.js +1 -1
  9. package/dist/cjs/node_modules/@mui/material/Slider/useSlider.js +1 -1
  10. package/dist/cjs/node_modules/@mui/material/SpeedDial/SpeedDial.js +1 -1
  11. package/dist/features/DocumentLearning/_components/MinimizedThinkingSteps.js +1 -1
  12. package/dist/features/DocumentLearning/_components/_svg/ArrowDown.js +1 -1
  13. package/dist/features/InstantLearning/_components/ChatComponent.js +1 -1
  14. package/dist/features/InstantLearning/_components/ContextualChatComponent.js +1 -1
  15. package/dist/features/InstantLearning/_components/LearningDetailsForm.js +1 -1
  16. package/dist/features/InstantLearning/_components/MinimizedThinkingSteps.js +1 -1
  17. package/dist/features/InstantLearning/_components/_svg/ArrowDown.js +1 -1
  18. package/dist/node_modules/@mui/material/Rating/Rating.js +1 -1
  19. package/dist/node_modules/@mui/material/Slider/useSlider.js +1 -1
  20. package/dist/node_modules/@mui/material/SpeedDial/SpeedDial.js +1 -1
  21. package/dist/types/src/features/InstantLearning/_components/ChatComponent.d.ts.map +1 -1
  22. package/dist/types/src/features/InstantLearning/_components/ContextualChatComponent.d.ts.map +1 -1
  23. package/dist/types/src/features/InstantLearning/_components/LearningDetailsForm.d.ts.map +1 -1
  24. package/package.json +137 -137
@@ -1,2 +1,2 @@
1
- import{__assign as e,__rest as r,__spreadArray as t}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as n,jsx as i}from"react/jsx-runtime";import{useState as o,useRef as l,useEffect as d}from"react";import{ReactMarkdown as a}from"../../../node_modules/react-markdown/lib/react-markdown.js";import s from"./_svg/ArrowDown.js";import c from"./_svg/CompleteIconGreen.js";import m from"./_svg/ArrowIconBlue.js";var h=function(){return n("svg",e({version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",width:"20",height:"20"},{children:[n("g",{children:[i("path",{fill:"#CEE8FA",points:"220.201,259.605 220.201,294.802 235.573,294.802 235.573,323.208 276.428,323.208\r\n\t\t276.428,294.802 291.8,294.802 291.8,259.605 \t",d:"M6.451 7.606v1.031h0.45v0.832h1.197v-0.832h0.45v-1.031Z"}),i("path",{fill:"#CEE8FA",cx:"256.006",cy:"457.747",r:"40.059",d:"M8.674 13.411a1.174 1.174 0 0 1 -1.174 1.174 1.174 1.174 0 0 1 -1.174 -1.174 1.174 1.174 0 0 1 2.347 0"}),i("path",{x:"389.578",y:"420.98",fill:"#CEE8FA",width:"87.028",height:"73.549",d:"M11.413 12.333h2.55v2.155H11.413z"}),i("path",{x:"35.397",y:"420.98",fill:"#CEE8FA",width:"87.028",height:"73.549",d:"M1.037 12.333h2.55v2.155H1.037z"})]}),n("g",{children:[i("path",{fill:"#2D527C",d:"M7.916 11.877v-0.759h4.772a0.416 0.416 0 0 0 0 -0.831H7.916v-0.402h0.183a0.415 0.415 0 0 0 0.416 -0.416v-0.417h0.035a0.415 0.415 0 0 0 0.416 -0.416V6.926a0.415 0.415 0 1 0 -0.831 0v0.264h-1.266v-0.264a0.415 0.415 0 0 0 -0.285 -0.395 2.918 2.918 0 0 1 -2.005 -2.776C4.577 2.143 5.888 0.831 7.5 0.831s2.923 1.311 2.923 2.923c0 0.698 -0.25 1.374 -0.704 1.902a0.416 0.416 0 0 0 0.631 0.541 3.755 3.755 0 0 0 0.904 -2.444C11.255 1.684 9.57 0 7.5 0S3.745 1.684 3.745 3.755a3.748 3.748 0 0 0 2.29 3.458v1.424a0.415 0.415 0 0 0 0.416 0.416h0.035v0.417a0.415 0.415 0 0 0 0.416 0.416h0.183v0.402H2.312a0.415 0.415 0 0 0 -0.416 0.416v1.215H1.037a0.415 0.415 0 0 0 -0.416 0.416v2.155a0.415 0.415 0 0 0 0.416 0.416h2.55a0.415 0.415 0 0 0 0.416 -0.416V12.333a0.415 0.415 0 0 0 -0.416 -0.416h-0.859v-0.799h4.357v0.759c-0.675 0.183 -1.174 0.801 -1.174 1.534C5.911 14.287 6.624 15 7.5 15s1.589 -0.713 1.589 -1.589c0 -0.732 -0.498 -1.35 -1.174 -1.534m-1.049 -3.656v-0.2h1.266v0.2h-0.035a0.415 0.415 0 0 0 -0.416 0.416v0.417h-0.366v-0.417a0.415 0.415 0 0 0 -0.416 -0.416zM3.171 14.072H1.453v-1.323H3.171zM7.5 14.169c-0.418 0 -0.758 -0.34 -0.758 -0.758s0.34 -0.758 0.758 -0.758 0.758 0.34 0.758 0.758 -0.34 0.758 -0.758 0.758"}),i("path",{fill:"#2D527C",d:"M13.963 11.918H11.413a0.415 0.415 0 0 0 -0.416 0.416v2.155a0.415 0.415 0 0 0 0.416 0.416h2.55a0.415 0.415 0 0 0 0.416 -0.416V12.333a0.415 0.415 0 0 0 -0.416 -0.416m-0.416 2.155H11.829v-1.323h1.718z"})]})]}))},f=function(f){var p=f.orchestratorAndAgentsMessages,u=f.isStreamEnd,v=f.isCurrentMessage,g=f.name,y=f.ThinkingBulbIconComponent,x=o(!0),w=x[0],b=x[1],C=o(!1),k=C[0],H=C[1],S=o([]),j=S[0],M=S[1],z=o([]),B=z[0],I=z[1],R=l([]);d((function(){v&&(u&&!k?b(!1):u||b(!0))}),[u,k,v]);return n("div",e({style:{border:"1px solid #d1d5db",borderRadius:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif",maxWidth:"32rem"}},{children:[n("div",e({onClick:function(){b(!w),H(!0)},style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.75rem 1rem",backgroundColor:"#f3f4f6",borderRadius:"0.5rem",cursor:"pointer"}},{children:[n("div",e({style:{display:"flex",alignItems:"center",gap:"0.5rem"}},{children:[i(h,{}),i("div",e({style:{fontSize:"0.9rem",fontWeight:600,color:"hcdemo"===g?"#2c83bd":"#385390"}},{children:"Watch Me Learn"}))]})),i("div",e({style:{width:"0.75rem",height:"0.75rem",transform:w?"rotate(180deg)":"rotate(0)",transition:"transform 300ms",display:"flex",alignItems:"center"}},{children:i(s,{})}))]})),i("div",e({style:{overflow:"hidden",transition:"all 0.5s ease-in-out",borderRadius:"0.5rem",maxHeight:w?"500px":"0",opacity:w?1:0}},{children:i("div",e({style:{backgroundColor:"#fff",padding:"0.5rem 0",maxHeight:"400px",overflowY:"scroll"}},{children:p.map((function(o,l){return o.responsedata?i("div",e({style:{display:"flex",flexDirection:"column",gap:"1rem",fontSize:"0.875rem",color:"#374151",padding:"0 1.5rem"}},{children:n("div",e({style:{display:"flex",gap:"0.5rem",cursor:"pointer"}},{children:[n("div",e({style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"0.5rem"}},{children:[o.finalResponseStatus?y:i("div",e({style:{width:"1.25rem",height:"1.25rem"}},{children:i(c,{})})),l!==p.length-1&&i("div",{style:{border:"1px solid #e5e7eb",height:"100%",width:"1px"}})]})),n("div",e({style:{display:"flex",flexDirection:"column",width:"100%",overflowX:"hidden",justifyContent:"space-between",marginBottom:"0.5rem",borderBottom:j.includes(l)||l===p.length-1?"none":"1.5px solid #e5e7eb"}},{children:[n("div",e({onClick:function(e){e.preventDefault(),function(e){M((function(r){return r.includes(e)?r.filter((function(r){return r!==e})):t(t([],r,!0),[e],!1)}))}(l)},style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:500,gap:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.5rem"}},{children:[i("div",e({style:{color:"hcdemo"===g?"#2c83bd":"#385390",fontWeight:600}},{children:o.header_message})),i("div",e({style:{width:"0.75rem",height:"0.75rem",transform:j.includes(l)?"rotate(180deg)":"rotate(0)",transition:"transform 300ms",display:"flex",alignItems:"center"}},{children:i(s,{})}))]})),(j.includes(l)||o.finalResponseStatus)&&n("div",e({style:{display:"flex",flexDirection:"column",gap:"0.25rem"}},{children:[i("div",e({ref:function(e){return R.current[l]=e},style:{borderRadius:"0.375rem",maxHeight:!o.finalResponseStatus||B.includes(l)?"none":"7rem",overflowY:!o.finalResponseStatus||B.includes(l)?"visible":"scroll",backgroundColor:"#f1f5f9",padding:"0.5rem",maxWidth:"100%",overflowX:"auto"}},{children:i(a,e({components:{p:function(t){t.node;var n=r(t,["node"]);return i("p",e({style:{wordBreak:"break-word",fontSize:"0.9rem",lineHeight:"1.5",marginBottom:"1rem"}},{children:n.children}))},code:function(t){t.node;var n=r(t,["node"]);return i("code",e({style:{wordBreak:"break-word",fontSize:"0.9rem",lineHeight:"1.5",fontFamily:"monospace"}},{children:n.children}))}}},{children:o.responsedata}))})),o.finalResponseStatus&&!B.includes(l)&&i("div",e({style:{width:"100%",display:"flex",justifyContent:"center"}},{children:n("div",e({onClick:function(){return function(e){I((function(r){return r.includes(e)?r.filter((function(r){return r!==e})):t(t([],r,!0),[e],!1)}))}(l)},style:{fontWeight:500,fontSize:"0.75rem",padding:"0.25rem 0.75rem",color:"#385390",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.25rem",borderRadius:"0.375rem",marginBottom:"0.25rem"}},{children:["View more",i("div",e({style:{width:"0.75rem",height:"0.75rem",transform:"rotate(90deg)"}},{children:i(m,{})}))]}))}))]}))]}))]}))}),l):null}))}))}))]}))};export{f as default};
1
+ import{__assign as e,__rest as r,__spreadArray as t}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as n,jsx as i}from"react/jsx-runtime";import{useState as o,useRef as l,useEffect as d}from"react";import{ReactMarkdown as a}from"../../../node_modules/react-markdown/lib/react-markdown.js";import s from"./_svg/ArrowDown.js";import c from"./_svg/CompleteIconGreen.js";import m from"./_svg/ArrowIconBlue.js";var h=function(){return n("svg",e({version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",width:"20",height:"20"},{children:[n("g",{children:[i("path",{fill:"#CEE8FA",points:"220.201,259.605 220.201,294.802 235.573,294.802 235.573,323.208 276.428,323.208\n\t\t276.428,294.802 291.8,294.802 291.8,259.605 \t",d:"M6.451 7.606v1.031h0.45v0.832h1.197v-0.832h0.45v-1.031Z"}),i("path",{fill:"#CEE8FA",cx:"256.006",cy:"457.747",r:"40.059",d:"M8.674 13.411a1.174 1.174 0 0 1 -1.174 1.174 1.174 1.174 0 0 1 -1.174 -1.174 1.174 1.174 0 0 1 2.347 0"}),i("path",{x:"389.578",y:"420.98",fill:"#CEE8FA",width:"87.028",height:"73.549",d:"M11.413 12.333h2.55v2.155H11.413z"}),i("path",{x:"35.397",y:"420.98",fill:"#CEE8FA",width:"87.028",height:"73.549",d:"M1.037 12.333h2.55v2.155H1.037z"})]}),n("g",{children:[i("path",{fill:"#2D527C",d:"M7.916 11.877v-0.759h4.772a0.416 0.416 0 0 0 0 -0.831H7.916v-0.402h0.183a0.415 0.415 0 0 0 0.416 -0.416v-0.417h0.035a0.415 0.415 0 0 0 0.416 -0.416V6.926a0.415 0.415 0 1 0 -0.831 0v0.264h-1.266v-0.264a0.415 0.415 0 0 0 -0.285 -0.395 2.918 2.918 0 0 1 -2.005 -2.776C4.577 2.143 5.888 0.831 7.5 0.831s2.923 1.311 2.923 2.923c0 0.698 -0.25 1.374 -0.704 1.902a0.416 0.416 0 0 0 0.631 0.541 3.755 3.755 0 0 0 0.904 -2.444C11.255 1.684 9.57 0 7.5 0S3.745 1.684 3.745 3.755a3.748 3.748 0 0 0 2.29 3.458v1.424a0.415 0.415 0 0 0 0.416 0.416h0.035v0.417a0.415 0.415 0 0 0 0.416 0.416h0.183v0.402H2.312a0.415 0.415 0 0 0 -0.416 0.416v1.215H1.037a0.415 0.415 0 0 0 -0.416 0.416v2.155a0.415 0.415 0 0 0 0.416 0.416h2.55a0.415 0.415 0 0 0 0.416 -0.416V12.333a0.415 0.415 0 0 0 -0.416 -0.416h-0.859v-0.799h4.357v0.759c-0.675 0.183 -1.174 0.801 -1.174 1.534C5.911 14.287 6.624 15 7.5 15s1.589 -0.713 1.589 -1.589c0 -0.732 -0.498 -1.35 -1.174 -1.534m-1.049 -3.656v-0.2h1.266v0.2h-0.035a0.415 0.415 0 0 0 -0.416 0.416v0.417h-0.366v-0.417a0.415 0.415 0 0 0 -0.416 -0.416zM3.171 14.072H1.453v-1.323H3.171zM7.5 14.169c-0.418 0 -0.758 -0.34 -0.758 -0.758s0.34 -0.758 0.758 -0.758 0.758 0.34 0.758 0.758 -0.34 0.758 -0.758 0.758"}),i("path",{fill:"#2D527C",d:"M13.963 11.918H11.413a0.415 0.415 0 0 0 -0.416 0.416v2.155a0.415 0.415 0 0 0 0.416 0.416h2.55a0.415 0.415 0 0 0 0.416 -0.416V12.333a0.415 0.415 0 0 0 -0.416 -0.416m-0.416 2.155H11.829v-1.323h1.718z"})]})]}))},f=function(f){var p=f.orchestratorAndAgentsMessages,u=f.isStreamEnd,v=f.isCurrentMessage,g=f.name,y=f.ThinkingBulbIconComponent,x=o(!0),w=x[0],b=x[1],C=o(!1),k=C[0],H=C[1],S=o([]),j=S[0],M=S[1],z=o([]),B=z[0],I=z[1],R=l([]);d((function(){v&&(u&&!k?b(!1):u||b(!0))}),[u,k,v]);return n("div",e({style:{border:"1px solid #d1d5db",borderRadius:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif",maxWidth:"32rem"}},{children:[n("div",e({onClick:function(){b(!w),H(!0)},style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.75rem 1rem",backgroundColor:"#f3f4f6",borderRadius:"0.5rem",cursor:"pointer"}},{children:[n("div",e({style:{display:"flex",alignItems:"center",gap:"0.5rem"}},{children:[i(h,{}),i("div",e({style:{fontSize:"0.9rem",fontWeight:600,color:"hcdemo"===g?"#2c83bd":"#385390"}},{children:"Watch Me Learn"}))]})),i("div",e({style:{width:"0.75rem",height:"0.75rem",transform:w?"rotate(180deg)":"rotate(0)",transition:"transform 300ms",display:"flex",alignItems:"center"}},{children:i(s,{})}))]})),i("div",e({style:{overflow:"hidden",transition:"all 0.5s ease-in-out",borderRadius:"0.5rem",maxHeight:w?"500px":"0",opacity:w?1:0}},{children:i("div",e({style:{backgroundColor:"#fff",padding:"0.5rem 0",maxHeight:"400px",overflowY:"scroll"}},{children:p.map((function(o,l){return o.responsedata?i("div",e({style:{display:"flex",flexDirection:"column",gap:"1rem",fontSize:"0.875rem",color:"#374151",padding:"0 1.5rem"}},{children:n("div",e({style:{display:"flex",gap:"0.5rem",cursor:"pointer"}},{children:[n("div",e({style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"0.5rem"}},{children:[o.finalResponseStatus?y:i("div",e({style:{width:"1.25rem",height:"1.25rem"}},{children:i(c,{})})),l!==p.length-1&&i("div",{style:{border:"1px solid #e5e7eb",height:"100%",width:"1px"}})]})),n("div",e({style:{display:"flex",flexDirection:"column",width:"100%",overflowX:"hidden",justifyContent:"space-between",marginBottom:"0.5rem",borderBottom:j.includes(l)||l===p.length-1?"none":"1.5px solid #e5e7eb"}},{children:[n("div",e({onClick:function(e){e.preventDefault(),function(e){M((function(r){return r.includes(e)?r.filter((function(r){return r!==e})):t(t([],r,!0),[e],!1)}))}(l)},style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:500,gap:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.5rem"}},{children:[i("div",e({style:{color:"hcdemo"===g?"#2c83bd":"#385390",fontWeight:600}},{children:o.header_message})),i("div",e({style:{width:"0.75rem",height:"0.75rem",transform:j.includes(l)?"rotate(180deg)":"rotate(0)",transition:"transform 300ms",display:"flex",alignItems:"center"}},{children:i(s,{})}))]})),(j.includes(l)||o.finalResponseStatus)&&n("div",e({style:{display:"flex",flexDirection:"column",gap:"0.25rem"}},{children:[i("div",e({ref:function(e){return R.current[l]=e},style:{borderRadius:"0.375rem",maxHeight:!o.finalResponseStatus||B.includes(l)?"none":"7rem",overflowY:!o.finalResponseStatus||B.includes(l)?"visible":"scroll",backgroundColor:"#f1f5f9",padding:"0.5rem",maxWidth:"100%",overflowX:"auto"}},{children:i(a,e({components:{p:function(t){t.node;var n=r(t,["node"]);return i("p",e({style:{wordBreak:"break-word",fontSize:"0.9rem",lineHeight:"1.5",marginBottom:"1rem"}},{children:n.children}))},code:function(t){t.node;var n=r(t,["node"]);return i("code",e({style:{wordBreak:"break-word",fontSize:"0.9rem",lineHeight:"1.5",fontFamily:"monospace"}},{children:n.children}))}}},{children:o.responsedata}))})),o.finalResponseStatus&&!B.includes(l)&&i("div",e({style:{width:"100%",display:"flex",justifyContent:"center"}},{children:n("div",e({onClick:function(){return function(e){I((function(r){return r.includes(e)?r.filter((function(r){return r!==e})):t(t([],r,!0),[e],!1)}))}(l)},style:{fontWeight:500,fontSize:"0.75rem",padding:"0.25rem 0.75rem",color:"#385390",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.25rem",borderRadius:"0.375rem",marginBottom:"0.25rem"}},{children:["View more",i("div",e({style:{width:"0.75rem",height:"0.75rem",transform:"rotate(90deg)"}},{children:i(m,{})}))]}))}))]}))]}))]}))}),l):null}))}))}))]}))};export{f as default};
2
2
  //# sourceMappingURL=MinimizedThinkingSteps.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r}from"../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as e}from"react/jsx-runtime";var t=function(){return e("svg",r({fill:"#000000",height:"100%",width:"100%",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 330 330",xmlSpace:"preserve"},{children:e("path",{id:"XMLID_225_",d:"M325.607,79.393c-5.857-5.857-15.355-5.858-21.213,0.001l-139.39,139.393L25.607,79.393\r\n c-5.857-5.857-15.355-5.858-21.213,0.001c-5.858,5.858-5.858,15.355,0,21.213l150.004,150c2.813,2.813,6.628,4.393,10.606,4.393\r\n s7.794-1.581,10.606-4.394l149.996-150C331.465,94.749,331.465,85.251,325.607,79.393z"})}))};export{t as default};
1
+ import{__assign as e}from"../../../../node_modules/tslib/tslib.es6.mjs.js";import{jsx as r}from"react/jsx-runtime";var t=function(){return r("svg",e({fill:"#000000",height:"100%",width:"100%",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 330 330",xmlSpace:"preserve"},{children:r("path",{id:"XMLID_225_",d:"M325.607,79.393c-5.857-5.857-15.355-5.858-21.213,0.001l-139.39,139.393L25.607,79.393\n c-5.857-5.857-15.355-5.858-21.213,0.001c-5.858,5.858-5.858,15.355,0,21.213l150.004,150c2.813,2.813,6.628,4.393,10.606,4.393\n s7.794-1.581,10.606-4.394l149.996-150C331.465,94.749,331.465,85.251,325.607,79.393z"})}))};export{t as default};
2
2
  //# sourceMappingURL=ArrowDown.js.map
@@ -1,2 +1,2 @@
1
- import e from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import o from"../../../@babel/runtime/helpers/esm/extends.js";import*as n from"react";import i from"../../../../_virtual/index.js";import{clsx as t}from"../node_modules/clsx/dist/clsx.mjs.js";import s from"../../utils/esm/visuallyHidden/visuallyHidden.js";import l from"../../utils/esm/chainPropTypes/chainPropTypes.js";import r from"../../utils/esm/composeClasses/composeClasses.js";import{useRtl as a}from"../../system/esm/RtlProvider/index.js";import"../../utils/esm/elementAcceptingRef/elementAcceptingRef.js";import"../../utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js";import"../../../../_virtual/index3.js";import"../../utils/esm/ponyfillGlobal/ponyfillGlobal.js";import"../../utils/esm/refType/refType.js";import c from"../../utils/esm/capitalize/capitalize.js";import u from"../../utils/esm/useId/useId.js";import m from"../../utils/esm/useControlled/useControlled.js";import p from"../../utils/esm/useForkRef/useForkRef.js";import d from"../../utils/esm/useIsFocusVisible/useIsFocusVisible.js";import"../../utils/esm/integerPropType/integerPropType.js";import"../SvgIcon/SvgIcon.js";import"../SvgIcon/svgIconClasses.js";import{jsxs as v,jsx as f}from"react/jsx-runtime";import y from"../internal/svg-icons/Star.js";import h from"../internal/svg-icons/StarBorder.js";import{useDefaultProps as b}from"../DefaultPropsProvider/DefaultPropsProvider.js";import g from"../styles/styled.js";import R,{getRatingUtilityClass as j}from"./ratingClasses.js";import C from"../styles/slotShouldForwardProp.js";import F from"../../utils/esm/clamp/clamp.js";const S=["value"],x=["className","defaultValue","disabled","emptyIcon","emptyLabelText","getLabelText","highlightSelectedOnly","icon","IconContainerComponent","max","name","onChange","onChangeActive","onMouseLeave","onMouseMove","precision","readOnly","size","value"];function A(e,o){if(null==e)return e;const n=Math.round(e/o)*o;return Number(n.toFixed(function(e){const o=e.toString().split(".")[1];return o?o.length:0}(o)))}const V=g("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${R.visuallyHidden}`]:o.visuallyHidden},o.root,o[`size${c(n.size)}`],n.readOnly&&o.readOnly]}})((({theme:e,ownerState:n})=>o({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${R.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${R.focusVisible} .${R.iconActive}`]:{outline:"1px solid #999"},[`& .${R.visuallyHidden}`]:s},"small"===n.size&&{fontSize:e.typography.pxToRem(18)},"large"===n.size&&{fontSize:e.typography.pxToRem(30)},n.readOnly&&{pointerEvents:"none"}))),T=g("label",{name:"MuiRating",slot:"Label",overridesResolver:({ownerState:e},o)=>[o.label,e.emptyValueFocused&&o.labelEmptyValueActive]})((({ownerState:e})=>o({cursor:"inherit"},e.emptyValueFocused&&{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"}))),O=g("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.icon,n.iconEmpty&&o.iconEmpty,n.iconFilled&&o.iconFilled,n.iconHover&&o.iconHover,n.iconFocus&&o.iconFocus,n.iconActive&&o.iconActive]}})((({theme:e,ownerState:n})=>o({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none"},n.iconActive&&{transform:"scale(1.2)"},n.iconEmpty&&{color:(e.vars||e).palette.action.disabled}))),w=g("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>C(e)&&"iconActive"!==e,overridesResolver:(e,o)=>{const{iconActive:n}=e;return[o.decimal,n&&o.iconActive]}})((({iconActive:e})=>o({position:"relative"},e&&{transform:"scale(1.2)"})));function I(n){const i=e(n,S);return f("span",o({},i))}function E(e){const{classes:i,disabled:s,emptyIcon:l,focus:r,getLabelText:a,highlightSelectedOnly:c,hover:m,icon:p,IconContainerComponent:d,isActive:y,itemValue:h,labelProps:b,name:g,onBlur:R,onChange:j,onClick:C,onFocus:F,readOnly:S,ownerState:x,ratingValue:A,ratingValueRounded:V}=e,w=c?h===A:h<=A,I=h<=m,E=h<=r,M=h===V,H=u(),N=f(O,{as:d,value:h,className:t(i.icon,w?i.iconFilled:i.iconEmpty,I&&i.iconHover,E&&i.iconFocus,y&&i.iconActive),ownerState:o({},x,{iconEmpty:!w,iconFilled:w,iconHover:I,iconFocus:E,iconActive:y}),children:l&&!w?l:p});return S?f("span",o({},b,{children:N})):v(n.Fragment,{children:[v(T,o({ownerState:o({},x,{emptyValueFocused:void 0}),htmlFor:H},b,{children:[N,f("span",{className:i.visuallyHidden,children:a(h)})]})),f("input",{className:i.visuallyHidden,onFocus:F,onBlur:R,onChange:j,onClick:C,disabled:s,value:h,id:H,type:"radio",name:g,checked:M})]})}"production"!==process.env.NODE_ENV&&(I.propTypes={value:i.number.isRequired}),"production"!==process.env.NODE_ENV&&(E.propTypes={classes:i.object.isRequired,disabled:i.bool.isRequired,emptyIcon:i.node,focus:i.number.isRequired,getLabelText:i.func.isRequired,highlightSelectedOnly:i.bool.isRequired,hover:i.number.isRequired,icon:i.node,IconContainerComponent:i.elementType.isRequired,isActive:i.bool.isRequired,itemValue:i.number.isRequired,labelProps:i.object,name:i.string,onBlur:i.func.isRequired,onChange:i.func.isRequired,onClick:i.func.isRequired,onFocus:i.func.isRequired,ownerState:i.object.isRequired,ratingValue:i.number,ratingValueRounded:i.number,readOnly:i.bool.isRequired});const M=f(y,{fontSize:"inherit"}),H=f(h,{fontSize:"inherit"});function N(e){return`${e} Star${1!==e?"s":""}`}const z=n.forwardRef((function(i,s){const l=b({name:"MuiRating",props:i}),{className:y,defaultValue:h=null,disabled:g=!1,emptyIcon:R=H,emptyLabelText:C="Empty",getLabelText:S=N,highlightSelectedOnly:O=!1,icon:z=M,IconContainerComponent:L=I,max:q=5,name:P,onChange:$,onChangeActive:k,onMouseLeave:B,onMouseMove:D,precision:_=1,readOnly:X=!1,size:G="medium",value:W}=l,U=e(l,x),Y=u(P),[J,K]=m({controlled:W,default:h,name:"Rating"}),Q=A(J,_),Z=a(),[{hover:ee,focus:oe},ne]=n.useState({hover:-1,focus:-1});let ie=Q;-1!==ee&&(ie=ee),-1!==oe&&(ie=oe);const{isFocusVisibleRef:te,onBlur:se,onFocus:le,ref:re}=d(),[ae,ce]=n.useState(!1),ue=n.useRef(),me=p(re,ue,s),pe=e=>{let o=""===e.target.value?null:parseFloat(e.target.value);-1!==ee&&(o=ee),K(o),$&&$(e,o)},de=e=>{0===e.clientX&&0===e.clientY||(ne({hover:-1,focus:-1}),K(null),$&&parseFloat(e.target.value)===Q&&$(e,null))},ve=e=>{le(e),!0===te.current&&ce(!0);const o=parseFloat(e.target.value);ne((e=>({hover:e.hover,focus:o})))},fe=e=>{if(-1!==ee)return;se(e),!1===te.current&&ce(!1);ne((e=>({hover:e.hover,focus:-1})))},[ye,he]=n.useState(!1),be=o({},l,{defaultValue:h,disabled:g,emptyIcon:R,emptyLabelText:C,emptyValueFocused:ye,focusVisible:ae,getLabelText:S,icon:z,IconContainerComponent:L,max:q,precision:_,readOnly:X,size:G}),ge=(e=>{const{classes:o,size:n,readOnly:i,disabled:t,emptyValueFocused:s,focusVisible:l}=e,a={root:["root",`size${c(n)}`,t&&"disabled",l&&"focusVisible",i&&"readOnly"],label:["label","pristine"],labelEmptyValue:[s&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return r(a,j,o)})(be);return v(V,o({ref:me,onMouseMove:e=>{D&&D(e);const o=ue.current,{right:n,left:i,width:t}=o.getBoundingClientRect();let s;s=Z?(n-e.clientX)/t:(e.clientX-i)/t;let l=A(q*s+_/2,_);l=F(l,_,q),ne((e=>e.hover===l&&e.focus===l?e:{hover:l,focus:l})),ce(!1),k&&ee!==l&&k(e,l)},onMouseLeave:e=>{B&&B(e);ne({hover:-1,focus:-1}),k&&-1!==ee&&k(e,-1)},className:t(ge.root,y,X&&"MuiRating-readOnly"),ownerState:be,role:X?"img":null,"aria-label":X?S(ie):null},U,{children:[Array.from(new Array(q)).map(((e,n)=>{const i=n+1,s={classes:ge,disabled:g,emptyIcon:R,focus:oe,getLabelText:S,highlightSelectedOnly:O,hover:ee,icon:z,IconContainerComponent:L,name:Y,onBlur:fe,onChange:pe,onClick:de,onFocus:ve,ratingValue:ie,ratingValueRounded:Q,readOnly:X,ownerState:be},l=i===Math.ceil(ie)&&(-1!==ee||-1!==oe);if(_<1){const e=Array.from(new Array(1/_));return f(w,{className:t(ge.decimal,l&&ge.iconActive),ownerState:be,iconActive:l,children:e.map(((n,t)=>{const l=A(i-1+(t+1)*_,_);return f(E,o({},s,{isActive:!1,itemValue:l,labelProps:{style:e.length-1===t?{}:{width:l===ie?(t+1)*_*100+"%":"0%",overflow:"hidden",position:"absolute"}}}),l)}))},i)}return f(E,o({},s,{isActive:l,itemValue:i}),i)})),!X&&!g&&v(T,{className:t(ge.label,ge.labelEmptyValue),ownerState:be,children:[f("input",{className:ge.visuallyHidden,value:"",id:`${Y}-empty`,type:"radio",name:Y,checked:null==Q,onFocus:()=>he(!0),onBlur:()=>he(!1),onChange:pe}),f("span",{className:ge.visuallyHidden,children:C})]})]}))}));"production"!==process.env.NODE_ENV&&(z.propTypes={classes:i.object,className:i.string,defaultValue:i.number,disabled:i.bool,emptyIcon:i.node,emptyLabelText:i.node,getLabelText:i.func,highlightSelectedOnly:i.bool,icon:i.node,IconContainerComponent:i.elementType,max:i.number,name:i.string,onChange:i.func,onChangeActive:i.func,onMouseLeave:i.func,onMouseMove:i.func,precision:l(i.number,(e=>e.precision<.1?new Error(["MUI: The prop `precision` should be above 0.1.","A value below this limit has an imperceptible impact."].join("\n")):null)),readOnly:i.bool,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.number});export{z as default};
1
+ import e from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import o from"../../../@babel/runtime/helpers/esm/extends.js";import*as n from"react";import i from"../../../../_virtual/index.js";import{clsx as t}from"../node_modules/clsx/dist/clsx.mjs.js";import s from"../../utils/esm/clamp/clamp.js";import l from"../../utils/esm/visuallyHidden/visuallyHidden.js";import r from"../../utils/esm/chainPropTypes/chainPropTypes.js";import a from"../../utils/esm/composeClasses/composeClasses.js";import{useRtl as c}from"../../system/esm/RtlProvider/index.js";import"../../utils/esm/elementAcceptingRef/elementAcceptingRef.js";import"../../utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js";import"../../../../_virtual/index3.js";import"../../utils/esm/ponyfillGlobal/ponyfillGlobal.js";import"../../utils/esm/refType/refType.js";import u from"../../utils/esm/capitalize/capitalize.js";import m from"../../utils/esm/useId/useId.js";import p from"../../utils/esm/useControlled/useControlled.js";import d from"../../utils/esm/useForkRef/useForkRef.js";import v from"../../utils/esm/useIsFocusVisible/useIsFocusVisible.js";import"../../utils/esm/integerPropType/integerPropType.js";import"../SvgIcon/SvgIcon.js";import"../SvgIcon/svgIconClasses.js";import{jsxs as f,jsx as y}from"react/jsx-runtime";import h from"../internal/svg-icons/Star.js";import b from"../internal/svg-icons/StarBorder.js";import{useDefaultProps as g}from"../DefaultPropsProvider/DefaultPropsProvider.js";import R from"../styles/styled.js";import j,{getRatingUtilityClass as C}from"./ratingClasses.js";import F from"../styles/slotShouldForwardProp.js";const S=["value"],x=["className","defaultValue","disabled","emptyIcon","emptyLabelText","getLabelText","highlightSelectedOnly","icon","IconContainerComponent","max","name","onChange","onChangeActive","onMouseLeave","onMouseMove","precision","readOnly","size","value"];function A(e,o){if(null==e)return e;const n=Math.round(e/o)*o;return Number(n.toFixed(function(e){const o=e.toString().split(".")[1];return o?o.length:0}(o)))}const V=R("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${j.visuallyHidden}`]:o.visuallyHidden},o.root,o[`size${u(n.size)}`],n.readOnly&&o.readOnly]}})((({theme:e,ownerState:n})=>o({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${j.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${j.focusVisible} .${j.iconActive}`]:{outline:"1px solid #999"},[`& .${j.visuallyHidden}`]:l},"small"===n.size&&{fontSize:e.typography.pxToRem(18)},"large"===n.size&&{fontSize:e.typography.pxToRem(30)},n.readOnly&&{pointerEvents:"none"}))),T=R("label",{name:"MuiRating",slot:"Label",overridesResolver:({ownerState:e},o)=>[o.label,e.emptyValueFocused&&o.labelEmptyValueActive]})((({ownerState:e})=>o({cursor:"inherit"},e.emptyValueFocused&&{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"}))),O=R("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.icon,n.iconEmpty&&o.iconEmpty,n.iconFilled&&o.iconFilled,n.iconHover&&o.iconHover,n.iconFocus&&o.iconFocus,n.iconActive&&o.iconActive]}})((({theme:e,ownerState:n})=>o({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none"},n.iconActive&&{transform:"scale(1.2)"},n.iconEmpty&&{color:(e.vars||e).palette.action.disabled}))),w=R("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>F(e)&&"iconActive"!==e,overridesResolver:(e,o)=>{const{iconActive:n}=e;return[o.decimal,n&&o.iconActive]}})((({iconActive:e})=>o({position:"relative"},e&&{transform:"scale(1.2)"})));function I(n){const i=e(n,S);return y("span",o({},i))}function E(e){const{classes:i,disabled:s,emptyIcon:l,focus:r,getLabelText:a,highlightSelectedOnly:c,hover:u,icon:p,IconContainerComponent:d,isActive:v,itemValue:h,labelProps:b,name:g,onBlur:R,onChange:j,onClick:C,onFocus:F,readOnly:S,ownerState:x,ratingValue:A,ratingValueRounded:V}=e,w=c?h===A:h<=A,I=h<=u,E=h<=r,M=h===V,H=m(),N=y(O,{as:d,value:h,className:t(i.icon,w?i.iconFilled:i.iconEmpty,I&&i.iconHover,E&&i.iconFocus,v&&i.iconActive),ownerState:o({},x,{iconEmpty:!w,iconFilled:w,iconHover:I,iconFocus:E,iconActive:v}),children:l&&!w?l:p});return S?y("span",o({},b,{children:N})):f(n.Fragment,{children:[f(T,o({ownerState:o({},x,{emptyValueFocused:void 0}),htmlFor:H},b,{children:[N,y("span",{className:i.visuallyHidden,children:a(h)})]})),y("input",{className:i.visuallyHidden,onFocus:F,onBlur:R,onChange:j,onClick:C,disabled:s,value:h,id:H,type:"radio",name:g,checked:M})]})}"production"!==process.env.NODE_ENV&&(I.propTypes={value:i.number.isRequired}),"production"!==process.env.NODE_ENV&&(E.propTypes={classes:i.object.isRequired,disabled:i.bool.isRequired,emptyIcon:i.node,focus:i.number.isRequired,getLabelText:i.func.isRequired,highlightSelectedOnly:i.bool.isRequired,hover:i.number.isRequired,icon:i.node,IconContainerComponent:i.elementType.isRequired,isActive:i.bool.isRequired,itemValue:i.number.isRequired,labelProps:i.object,name:i.string,onBlur:i.func.isRequired,onChange:i.func.isRequired,onClick:i.func.isRequired,onFocus:i.func.isRequired,ownerState:i.object.isRequired,ratingValue:i.number,ratingValueRounded:i.number,readOnly:i.bool.isRequired});const M=y(h,{fontSize:"inherit"}),H=y(b,{fontSize:"inherit"});function N(e){return`${e} Star${1!==e?"s":""}`}const z=n.forwardRef((function(i,l){const r=g({name:"MuiRating",props:i}),{className:h,defaultValue:b=null,disabled:R=!1,emptyIcon:j=H,emptyLabelText:F="Empty",getLabelText:S=N,highlightSelectedOnly:O=!1,icon:z=M,IconContainerComponent:L=I,max:q=5,name:P,onChange:$,onChangeActive:k,onMouseLeave:B,onMouseMove:D,precision:_=1,readOnly:X=!1,size:G="medium",value:W}=r,U=e(r,x),Y=m(P),[J,K]=p({controlled:W,default:b,name:"Rating"}),Q=A(J,_),Z=c(),[{hover:ee,focus:oe},ne]=n.useState({hover:-1,focus:-1});let ie=Q;-1!==ee&&(ie=ee),-1!==oe&&(ie=oe);const{isFocusVisibleRef:te,onBlur:se,onFocus:le,ref:re}=v(),[ae,ce]=n.useState(!1),ue=n.useRef(),me=d(re,ue,l),pe=e=>{let o=""===e.target.value?null:parseFloat(e.target.value);-1!==ee&&(o=ee),K(o),$&&$(e,o)},de=e=>{0===e.clientX&&0===e.clientY||(ne({hover:-1,focus:-1}),K(null),$&&parseFloat(e.target.value)===Q&&$(e,null))},ve=e=>{le(e),!0===te.current&&ce(!0);const o=parseFloat(e.target.value);ne((e=>({hover:e.hover,focus:o})))},fe=e=>{if(-1!==ee)return;se(e),!1===te.current&&ce(!1);ne((e=>({hover:e.hover,focus:-1})))},[ye,he]=n.useState(!1),be=o({},r,{defaultValue:b,disabled:R,emptyIcon:j,emptyLabelText:F,emptyValueFocused:ye,focusVisible:ae,getLabelText:S,icon:z,IconContainerComponent:L,max:q,precision:_,readOnly:X,size:G}),ge=(e=>{const{classes:o,size:n,readOnly:i,disabled:t,emptyValueFocused:s,focusVisible:l}=e,r={root:["root",`size${u(n)}`,t&&"disabled",l&&"focusVisible",i&&"readOnly"],label:["label","pristine"],labelEmptyValue:[s&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return a(r,C,o)})(be);return f(V,o({ref:me,onMouseMove:e=>{D&&D(e);const o=ue.current,{right:n,left:i,width:t}=o.getBoundingClientRect();let l;l=Z?(n-e.clientX)/t:(e.clientX-i)/t;let r=A(q*l+_/2,_);r=s(r,_,q),ne((e=>e.hover===r&&e.focus===r?e:{hover:r,focus:r})),ce(!1),k&&ee!==r&&k(e,r)},onMouseLeave:e=>{B&&B(e);ne({hover:-1,focus:-1}),k&&-1!==ee&&k(e,-1)},className:t(ge.root,h,X&&"MuiRating-readOnly"),ownerState:be,role:X?"img":null,"aria-label":X?S(ie):null},U,{children:[Array.from(new Array(q)).map(((e,n)=>{const i=n+1,s={classes:ge,disabled:R,emptyIcon:j,focus:oe,getLabelText:S,highlightSelectedOnly:O,hover:ee,icon:z,IconContainerComponent:L,name:Y,onBlur:fe,onChange:pe,onClick:de,onFocus:ve,ratingValue:ie,ratingValueRounded:Q,readOnly:X,ownerState:be},l=i===Math.ceil(ie)&&(-1!==ee||-1!==oe);if(_<1){const e=Array.from(new Array(1/_));return y(w,{className:t(ge.decimal,l&&ge.iconActive),ownerState:be,iconActive:l,children:e.map(((n,t)=>{const l=A(i-1+(t+1)*_,_);return y(E,o({},s,{isActive:!1,itemValue:l,labelProps:{style:e.length-1===t?{}:{width:l===ie?(t+1)*_*100+"%":"0%",overflow:"hidden",position:"absolute"}}}),l)}))},i)}return y(E,o({},s,{isActive:l,itemValue:i}),i)})),!X&&!R&&f(T,{className:t(ge.label,ge.labelEmptyValue),ownerState:be,children:[y("input",{className:ge.visuallyHidden,value:"",id:`${Y}-empty`,type:"radio",name:Y,checked:null==Q,onFocus:()=>he(!0),onBlur:()=>he(!1),onChange:pe}),y("span",{className:ge.visuallyHidden,children:F})]})]}))}));"production"!==process.env.NODE_ENV&&(z.propTypes={classes:i.object,className:i.string,defaultValue:i.number,disabled:i.bool,emptyIcon:i.node,emptyLabelText:i.node,getLabelText:i.func,highlightSelectedOnly:i.bool,icon:i.node,IconContainerComponent:i.elementType,max:i.number,name:i.string,onChange:i.func,onChangeActive:i.func,onMouseLeave:i.func,onMouseMove:i.func,precision:r(i.number,(e=>e.precision<.1?new Error(["MUI: The prop `precision` should be above 0.1.","A value below this limit has an imperceptible impact."].join("\n")):null)),readOnly:i.bool,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.number});export{z as default};
2
2
  //# sourceMappingURL=Rating.js.map
@@ -1,2 +1,2 @@
1
- import e from"../../../@babel/runtime/helpers/esm/extends.js";import*as t from"react";import"../../utils/esm/elementAcceptingRef/elementAcceptingRef.js";import"../../utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js";import"../../../../_virtual/index3.js";import"../../utils/esm/ponyfillGlobal/ponyfillGlobal.js";import"../../utils/esm/refType/refType.js";import n from"../../utils/esm/ownerDocument/ownerDocument.js";import r from"../../utils/esm/useEnhancedEffect/useEnhancedEffect.js";import o from"../../utils/esm/useControlled/useControlled.js";import s from"../../utils/esm/useEventCallback/useEventCallback.js";import i from"../../utils/esm/useForkRef/useForkRef.js";import u from"../../utils/esm/useIsFocusVisible/useIsFocusVisible.js";import l from"../../utils/esm/visuallyHidden/visuallyHidden.js";import"../../utils/esm/integerPropType/integerPropType.js";import a from"../../utils/esm/extractEventHandlers/extractEventHandlers.js";import c from"../utils/areArraysEqual.js";import f from"../../utils/esm/clamp/clamp.js";function d(e,t){return e-t}function m(e,t){var n;const{index:r}=null!=(n=e.reduce(((e,n,r)=>{const o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null))?n:{};return r}function v(e,t){if(void 0!==t.current&&e.changedTouches){const n=e;for(let e=0;e<n.changedTouches.length;e+=1){const r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function p(e,t,n){return 100*(e-t)/(n-t)}function h(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function g({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(d)}function b({sliderRef:e,activeIndex:t,setActive:r}){var o,s;const i=n(e.current);var u;null!=(o=e.current)&&o.contains(i.activeElement)&&Number(null==i||null==(s=i.activeElement)?void 0:s.getAttribute("data-index"))===t||(null==(u=e.current)||u.querySelector(`[type="range"][data-index="${t}"]`).focus());r&&r(t)}function x(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&c(e,t)}const y={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},E=e=>e;let w;function A(){return void 0===w&&(w="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),w}function R(c){const{"aria-labelledby":w,defaultValue:R,disabled:j=!1,disableSwap:T=!1,isRtl:k=!1,marks:I=!1,max:S=100,min:C=0,name:L,onChange:M,onChangeCommitted:V,orientation:D="horizontal",rootRef:P,scale:F=E,step:O=1,shiftStep:N=10,tabIndex:$,value:H}=c,z=t.useRef(void 0),[B,K]=t.useState(-1),[q,G]=t.useState(-1),[U,X]=t.useState(!1),Y=t.useRef(0),[_,J]=o({controlled:H,default:null!=R?R:C,name:"Slider"}),Q=M&&((e,t,n)=>{const r=e.nativeEvent||e,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:L}}),M(o,t,n)}),W=Array.isArray(_);let Z=W?_.slice().sort(d):[_];Z=Z.map((e=>null==e?C:f(e,C,S)));const ee=!0===I&&null!==O?[...Array(Math.floor((S-C)/O)+1)].map(((e,t)=>({value:C+O*t}))):I||[],te=ee.map((e=>e.value)),{isFocusVisibleRef:ne,onBlur:re,onFocus:oe,ref:se}=u(),[ie,ue]=t.useState(-1),le=t.useRef(null),ae=i(se,le),ce=i(P,ae),fe=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));oe(t),!0===ne.current&&ue(r),G(r),null==e||null==(n=e.onFocus)||n.call(e,t)},de=e=>t=>{var n;re(t),!1===ne.current&&ue(-1),G(-1),null==e||null==(n=e.onBlur)||n.call(e,t)},me=(e,t)=>{const n=Number(e.currentTarget.getAttribute("data-index")),r=Z[n],o=te.indexOf(r);let s=t;if(ee&&null==O){const e=te[te.length-1];s=s>e?e:s<te[0]?te[0]:s<r?te[o-1]:te[o+1]}if(s=f(s,C,S),W){T&&(s=f(s,Z[n-1]||-1/0,Z[n+1]||1/0));const e=s;s=g({values:Z,newValue:s,index:n});let t=n;T||(t=s.indexOf(e)),b({sliderRef:le,activeIndex:t})}J(s),ue(n),Q&&!x(s,_)&&Q(e,s,n),V&&V(e,s)},ve=e=>t=>{var n;if(null!==O){const e=Number(t.currentTarget.getAttribute("data-index")),n=Z[e];let r=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?r=Math.max(n-N,C):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(r=Math.min(n+N,S)),null!==r&&(me(t,r),t.preventDefault())}null==e||null==(n=e.onKeyDown)||n.call(e,t)};r((()=>{var e;j&&le.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[j]),j&&-1!==B&&K(-1),j&&-1!==ie&&ue(-1);const pe=t.useRef(void 0);let he=D;k&&"horizontal"===D&&(he+="-reverse");const ge=({finger:e,move:t=!1})=>{const{current:n}=le,{width:r,height:o,bottom:s,left:i}=n.getBoundingClientRect();let u,l;if(u=0===he.indexOf("vertical")?(s-e.y)/o:(e.x-i)/r,-1!==he.indexOf("-reverse")&&(u=1-u),l=function(e,t,n){return(n-t)*e+t}(u,C,S),O)l=h(l,O,C);else{const e=m(te,l);l=te[e]}l=f(l,C,S);let a=0;if(W){a=t?pe.current:m(Z,l),T&&(l=f(l,Z[a-1]||-1/0,Z[a+1]||1/0));const e=l;l=g({values:Z,newValue:l,index:a}),T&&t||(a=l.indexOf(e),pe.current=a)}return{newValue:l,activeIndex:a}},be=s((e=>{const t=v(e,z);if(!t)return;if(Y.current+=1,"mousemove"===e.type&&0===e.buttons)return void xe(e);const{newValue:n,activeIndex:r}=ge({finger:t,move:!0});b({sliderRef:le,activeIndex:r,setActive:K}),J(n),!U&&Y.current>2&&X(!0),Q&&!x(n,_)&&Q(e,n,r)})),xe=s((e=>{const t=v(e,z);if(X(!1),!t)return;const{newValue:n}=ge({finger:t,move:!0});K(-1),"touchend"===e.type&&G(-1),V&&V(e,n),z.current=void 0,Ee()})),ye=s((e=>{if(j)return;A()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(z.current=t.identifier);const r=v(e,z);if(!1!==r){const{newValue:t,activeIndex:n}=ge({finger:r});b({sliderRef:le,activeIndex:n,setActive:K}),J(t),Q&&!x(t,_)&&Q(e,t,n)}Y.current=0;const o=n(le.current);o.addEventListener("touchmove",be,{passive:!0}),o.addEventListener("touchend",xe,{passive:!0})})),Ee=t.useCallback((()=>{const e=n(le.current);e.removeEventListener("mousemove",be),e.removeEventListener("mouseup",xe),e.removeEventListener("touchmove",be),e.removeEventListener("touchend",xe)}),[xe,be]);t.useEffect((()=>{const{current:e}=le;return e.addEventListener("touchstart",ye,{passive:A()}),()=>{e.removeEventListener("touchstart",ye),Ee()}}),[Ee,ye]),t.useEffect((()=>{j&&Ee()}),[j,Ee]);const we=p(W?Z[0]:C,C,S),Ae=p(Z[Z.length-1],C,S)-we,Re=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),G(-1)};return{active:B,axis:he,axisProps:y,dragging:U,focusedThumbIndex:ie,getHiddenInputProps:(t={})=>{var n;const r=a(t),o={onChange:(s=r||{},e=>{var t;null==(t=s.onChange)||t.call(s,e),me(e,e.target.valueAsNumber)}),onFocus:fe(r||{}),onBlur:de(r||{}),onKeyDown:ve(r||{})};var s;const i=e({},r,o);return e({tabIndex:$,"aria-labelledby":w,"aria-orientation":D,"aria-valuemax":F(S),"aria-valuemin":F(C),name:L,type:"range",min:c.min,max:c.max,step:null===c.step&&c.marks?"any":null!=(n=c.step)?n:void 0,disabled:j},t,i,{style:e({},l,{direction:k?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(t={})=>{const r=a(t),o={onMouseDown:(s=r||{},e=>{var t;if(null==(t=s.onMouseDown)||t.call(s,e),j)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const r=v(e,z);if(!1!==r){const{newValue:t,activeIndex:n}=ge({finger:r});b({sliderRef:le,activeIndex:n,setActive:K}),J(t),Q&&!x(t,_)&&Q(e,t,n)}Y.current=0;const o=n(le.current);o.addEventListener("mousemove",be,{passive:!0}),o.addEventListener("mouseup",xe)})};var s;const i=e({},r,o);return e({},t,{ref:ce},i)},getThumbProps:(t={})=>{const n=a(t),r={onMouseOver:(o=n||{},e=>{var t;null==(t=o.onMouseOver)||t.call(o,e);const n=Number(e.currentTarget.getAttribute("data-index"));G(n)}),onMouseLeave:Re(n||{})};var o;return e({},t,n,r)},marks:ee,open:q,range:W,rootRef:ce,trackLeap:Ae,trackOffset:we,values:Z,getThumbStyle:e=>({pointerEvents:-1!==B&&B!==e?"none":void 0})}}export{E as Identity,R as useSlider,p as valueToPercent};
1
+ import e from"../../../@babel/runtime/helpers/esm/extends.js";import*as t from"react";import"../../utils/esm/elementAcceptingRef/elementAcceptingRef.js";import"../../utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js";import"../../../../_virtual/index3.js";import"../../utils/esm/ponyfillGlobal/ponyfillGlobal.js";import"../../utils/esm/refType/refType.js";import n from"../../utils/esm/ownerDocument/ownerDocument.js";import r from"../../utils/esm/useEnhancedEffect/useEnhancedEffect.js";import o from"../../utils/esm/useControlled/useControlled.js";import s from"../../utils/esm/useEventCallback/useEventCallback.js";import i from"../../utils/esm/useForkRef/useForkRef.js";import u from"../../utils/esm/useIsFocusVisible/useIsFocusVisible.js";import l from"../../utils/esm/visuallyHidden/visuallyHidden.js";import"../../utils/esm/integerPropType/integerPropType.js";import a from"../../utils/esm/clamp/clamp.js";import c from"../../utils/esm/extractEventHandlers/extractEventHandlers.js";import f from"../utils/areArraysEqual.js";function d(e,t){return e-t}function m(e,t){var n;const{index:r}=null!=(n=e.reduce(((e,n,r)=>{const o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null))?n:{};return r}function v(e,t){if(void 0!==t.current&&e.changedTouches){const n=e;for(let e=0;e<n.changedTouches.length;e+=1){const r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function p(e,t,n){return 100*(e-t)/(n-t)}function h(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function g({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(d)}function b({sliderRef:e,activeIndex:t,setActive:r}){var o,s;const i=n(e.current);var u;null!=(o=e.current)&&o.contains(i.activeElement)&&Number(null==i||null==(s=i.activeElement)?void 0:s.getAttribute("data-index"))===t||(null==(u=e.current)||u.querySelector(`[type="range"][data-index="${t}"]`).focus());r&&r(t)}function x(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&f(e,t)}const y={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},E=e=>e;let w;function A(){return void 0===w&&(w="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),w}function R(f){const{"aria-labelledby":w,defaultValue:R,disabled:j=!1,disableSwap:T=!1,isRtl:k=!1,marks:I=!1,max:S=100,min:C=0,name:L,onChange:M,onChangeCommitted:V,orientation:D="horizontal",rootRef:P,scale:F=E,step:O=1,shiftStep:N=10,tabIndex:$,value:H}=f,z=t.useRef(void 0),[B,K]=t.useState(-1),[q,G]=t.useState(-1),[U,X]=t.useState(!1),Y=t.useRef(0),[_,J]=o({controlled:H,default:null!=R?R:C,name:"Slider"}),Q=M&&((e,t,n)=>{const r=e.nativeEvent||e,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:L}}),M(o,t,n)}),W=Array.isArray(_);let Z=W?_.slice().sort(d):[_];Z=Z.map((e=>null==e?C:a(e,C,S)));const ee=!0===I&&null!==O?[...Array(Math.floor((S-C)/O)+1)].map(((e,t)=>({value:C+O*t}))):I||[],te=ee.map((e=>e.value)),{isFocusVisibleRef:ne,onBlur:re,onFocus:oe,ref:se}=u(),[ie,ue]=t.useState(-1),le=t.useRef(null),ae=i(se,le),ce=i(P,ae),fe=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));oe(t),!0===ne.current&&ue(r),G(r),null==e||null==(n=e.onFocus)||n.call(e,t)},de=e=>t=>{var n;re(t),!1===ne.current&&ue(-1),G(-1),null==e||null==(n=e.onBlur)||n.call(e,t)},me=(e,t)=>{const n=Number(e.currentTarget.getAttribute("data-index")),r=Z[n],o=te.indexOf(r);let s=t;if(ee&&null==O){const e=te[te.length-1];s=s>e?e:s<te[0]?te[0]:s<r?te[o-1]:te[o+1]}if(s=a(s,C,S),W){T&&(s=a(s,Z[n-1]||-1/0,Z[n+1]||1/0));const e=s;s=g({values:Z,newValue:s,index:n});let t=n;T||(t=s.indexOf(e)),b({sliderRef:le,activeIndex:t})}J(s),ue(n),Q&&!x(s,_)&&Q(e,s,n),V&&V(e,s)},ve=e=>t=>{var n;if(null!==O){const e=Number(t.currentTarget.getAttribute("data-index")),n=Z[e];let r=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?r=Math.max(n-N,C):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(r=Math.min(n+N,S)),null!==r&&(me(t,r),t.preventDefault())}null==e||null==(n=e.onKeyDown)||n.call(e,t)};r((()=>{var e;j&&le.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[j]),j&&-1!==B&&K(-1),j&&-1!==ie&&ue(-1);const pe=t.useRef(void 0);let he=D;k&&"horizontal"===D&&(he+="-reverse");const ge=({finger:e,move:t=!1})=>{const{current:n}=le,{width:r,height:o,bottom:s,left:i}=n.getBoundingClientRect();let u,l;if(u=0===he.indexOf("vertical")?(s-e.y)/o:(e.x-i)/r,-1!==he.indexOf("-reverse")&&(u=1-u),l=function(e,t,n){return(n-t)*e+t}(u,C,S),O)l=h(l,O,C);else{const e=m(te,l);l=te[e]}l=a(l,C,S);let c=0;if(W){c=t?pe.current:m(Z,l),T&&(l=a(l,Z[c-1]||-1/0,Z[c+1]||1/0));const e=l;l=g({values:Z,newValue:l,index:c}),T&&t||(c=l.indexOf(e),pe.current=c)}return{newValue:l,activeIndex:c}},be=s((e=>{const t=v(e,z);if(!t)return;if(Y.current+=1,"mousemove"===e.type&&0===e.buttons)return void xe(e);const{newValue:n,activeIndex:r}=ge({finger:t,move:!0});b({sliderRef:le,activeIndex:r,setActive:K}),J(n),!U&&Y.current>2&&X(!0),Q&&!x(n,_)&&Q(e,n,r)})),xe=s((e=>{const t=v(e,z);if(X(!1),!t)return;const{newValue:n}=ge({finger:t,move:!0});K(-1),"touchend"===e.type&&G(-1),V&&V(e,n),z.current=void 0,Ee()})),ye=s((e=>{if(j)return;A()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(z.current=t.identifier);const r=v(e,z);if(!1!==r){const{newValue:t,activeIndex:n}=ge({finger:r});b({sliderRef:le,activeIndex:n,setActive:K}),J(t),Q&&!x(t,_)&&Q(e,t,n)}Y.current=0;const o=n(le.current);o.addEventListener("touchmove",be,{passive:!0}),o.addEventListener("touchend",xe,{passive:!0})})),Ee=t.useCallback((()=>{const e=n(le.current);e.removeEventListener("mousemove",be),e.removeEventListener("mouseup",xe),e.removeEventListener("touchmove",be),e.removeEventListener("touchend",xe)}),[xe,be]);t.useEffect((()=>{const{current:e}=le;return e.addEventListener("touchstart",ye,{passive:A()}),()=>{e.removeEventListener("touchstart",ye),Ee()}}),[Ee,ye]),t.useEffect((()=>{j&&Ee()}),[j,Ee]);const we=p(W?Z[0]:C,C,S),Ae=p(Z[Z.length-1],C,S)-we,Re=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),G(-1)};return{active:B,axis:he,axisProps:y,dragging:U,focusedThumbIndex:ie,getHiddenInputProps:(t={})=>{var n;const r=c(t),o={onChange:(s=r||{},e=>{var t;null==(t=s.onChange)||t.call(s,e),me(e,e.target.valueAsNumber)}),onFocus:fe(r||{}),onBlur:de(r||{}),onKeyDown:ve(r||{})};var s;const i=e({},r,o);return e({tabIndex:$,"aria-labelledby":w,"aria-orientation":D,"aria-valuemax":F(S),"aria-valuemin":F(C),name:L,type:"range",min:f.min,max:f.max,step:null===f.step&&f.marks?"any":null!=(n=f.step)?n:void 0,disabled:j},t,i,{style:e({},l,{direction:k?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(t={})=>{const r=c(t),o={onMouseDown:(s=r||{},e=>{var t;if(null==(t=s.onMouseDown)||t.call(s,e),j)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const r=v(e,z);if(!1!==r){const{newValue:t,activeIndex:n}=ge({finger:r});b({sliderRef:le,activeIndex:n,setActive:K}),J(t),Q&&!x(t,_)&&Q(e,t,n)}Y.current=0;const o=n(le.current);o.addEventListener("mousemove",be,{passive:!0}),o.addEventListener("mouseup",xe)})};var s;const i=e({},r,o);return e({},t,{ref:ce},i)},getThumbProps:(t={})=>{const n=c(t),r={onMouseOver:(o=n||{},e=>{var t;null==(t=o.onMouseOver)||t.call(o,e);const n=Number(e.currentTarget.getAttribute("data-index"));G(n)}),onMouseLeave:Re(n||{})};var o;return e({},t,n,r)},marks:ee,open:q,range:W,rootRef:ce,trackLeap:Ae,trackOffset:we,values:Z,getThumbStyle:e=>({pointerEvents:-1!==B&&B!==e?"none":void 0})}}export{E as Identity,R as useSlider,p as valueToPercent};
2
2
  //# sourceMappingURL=useSlider.js.map
@@ -1,2 +1,2 @@
1
- import e from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import o from"../../../@babel/runtime/helpers/esm/extends.js";import*as n from"react";import{r}from"../../../../_virtual/index2.js";import t from"../../../../_virtual/index.js";import{clsx as i}from"../node_modules/clsx/dist/clsx.mjs.js";import s from"../../utils/esm/composeClasses/composeClasses.js";import a from"../../utils/esm/useTimeout/useTimeout.js";import l from"../styles/styled.js";import{useDefaultProps as c}from"../DefaultPropsProvider/DefaultPropsProvider.js";import p from"../styles/useTheme.js";import u from"../Zoom/Zoom.js";import m from"../Fab/Fab.js";import"../Fab/fabClasses.js";import d from"../../utils/esm/capitalize/capitalize.js";import f from"../../utils/esm/isMuiElement/isMuiElement.js";import b from"../../utils/esm/useForkRef/useForkRef.js";import v from"../../utils/esm/useControlled/useControlled.js";import D,{getSpeedDialUtilityClass as g}from"./speedDialClasses.js";import{jsxs as h,jsx as j}from"react/jsx-runtime";import y from"../../utils/esm/clamp/clamp.js";const x=["ref"],w=["ariaLabel","FabProps","children","className","direction","hidden","icon","onBlur","onClose","onFocus","onKeyDown","onMouseEnter","onMouseLeave","onOpen","open","openIcon","TransitionComponent","transitionDuration","TransitionProps"],C=["ref"];function E(e){return"up"===e||"down"===e?"vertical":"right"===e||"left"===e?"horizontal":void 0}const F=l("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[`direction${d(n.direction)}`]]}})((({theme:e,ownerState:n})=>o({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none"},"up"===n.direction&&{flexDirection:"column-reverse",[`& .${D.actions}`]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:48}},"down"===n.direction&&{flexDirection:"column",[`& .${D.actions}`]:{flexDirection:"column",marginTop:-32,paddingTop:48}},"left"===n.direction&&{flexDirection:"row-reverse",[`& .${D.actions}`]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:48}},"right"===n.direction&&{flexDirection:"row",[`& .${D.actions}`]:{flexDirection:"row",marginLeft:-32,paddingLeft:48}}))),P=l(m,{name:"MuiSpeedDial",slot:"Fab",overridesResolver:(e,o)=>o.fab})((()=>({pointerEvents:"auto"}))),T=l("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.actions,!n.open&&o.actionsClosed]}})((({ownerState:e})=>o({display:"flex",pointerEvents:"auto"},!e.open&&{transition:"top 0s linear 0.2s",pointerEvents:"none"}))),S=n.forwardRef((function(t,l){const m=c({props:t,name:"MuiSpeedDial"}),D=p(),S={enter:D.transitions.duration.enteringScreen,exit:D.transitions.duration.leavingScreen},{ariaLabel:M,FabProps:{ref:R}={},children:L,className:N,direction:O="up",hidden:$=!1,icon:k,onBlur:I,onClose:z,onFocus:B,onKeyDown:K,onMouseEnter:_,onMouseLeave:V,onOpen:A,open:Z,TransitionComponent:q=u,transitionDuration:U=S,TransitionProps:W}=m,G=e(m.FabProps,x),H=e(m,w),[J,Q]=v({controlled:Z,default:!1,name:"SpeedDial",state:"open"}),X=o({},m,{open:J,direction:O}),Y=(e=>{const{classes:o,open:n,direction:r}=e,t={root:["root",`direction${d(r)}`],fab:["fab"],actions:["actions",!n&&"actionsClosed"]};return s(t,g,o)})(X),ee=a(),oe=n.useRef(0),ne=n.useRef(),re=n.useRef([]);re.current=[re.current[0]];const te=n.useCallback((e=>{re.current[0]=e}),[]),ie=b(R,te),se=(e,o)=>n=>{re.current[e+1]=n,o&&o(n)};n.useEffect((()=>{J||(oe.current=0,ne.current=void 0)}),[J]);const ae=e=>{"mouseleave"===e.type&&V&&V(e),"blur"===e.type&&I&&I(e),ee.clear(),"blur"===e.type?ee.start(0,(()=>{Q(!1),z&&z(e,"blur")})):(Q(!1),z&&z(e,"mouseLeave"))},le=e=>{"mouseenter"===e.type&&_&&_(e),"focus"===e.type&&B&&B(e),ee.clear(),J||ee.start(0,(()=>{if(Q(!0),A){A(e,{focus:"focus",mouseenter:"mouseEnter"}[e.type])}}))},ce=M.replace(/^[^a-z]+|[^\w:.-]+/gi,""),pe=n.Children.toArray(L).filter((e=>("production"!==process.env.NODE_ENV&&r.isFragment(e)&&console.error(["MUI: The SpeedDial component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),n.isValidElement(e)))),ue=pe.map(((r,t)=>{const i=r.props,{FabProps:{ref:s}={},tooltipPlacement:a}=i,l=e(i.FabProps,C),c=a||("vertical"===E(O)?"left":"top");return n.cloneElement(r,{FabProps:o({},l,{ref:se(t,s)}),delay:30*(J?t:pe.length-t),open:J,tooltipPlacement:c,id:`${ce}-action-${t}`})}));return h(F,o({className:i(Y.root,N),ref:l,role:"presentation",onKeyDown:e=>{K&&K(e);const o=e.key.replace("Arrow","").toLowerCase(),{current:n=o}=ne;if("Escape"===e.key)return Q(!1),re.current[0].focus(),void(z&&z(e,"escapeKeyDown"));if(E(o)===E(n)&&void 0!==E(o)){e.preventDefault();const r=o===n?1:-1,t=y(oe.current+r,0,re.current.length-1);re.current[t].focus(),oe.current=t,ne.current=n}},onBlur:ae,onFocus:le,onMouseEnter:le,onMouseLeave:ae,ownerState:X},H,{children:[j(q,o({in:!$,timeout:U,unmountOnExit:!0},W,{children:j(P,o({color:"primary","aria-label":M,"aria-haspopup":"true","aria-expanded":J,"aria-controls":`${ce}-actions`},G,{onClick:e=>{G.onClick&&G.onClick(e),ee.clear(),J?(Q(!1),z&&z(e,"toggle")):(Q(!0),A&&A(e,"toggle"))},className:i(Y.fab,G.className),ref:ie,ownerState:X,children:n.isValidElement(k)&&f(k,["SpeedDialIcon"])?n.cloneElement(k,{open:J}):k}))})),j(T,{id:`${ce}-actions`,role:"menu","aria-orientation":E(O),className:i(Y.actions,!J&&Y.actionsClosed),ownerState:X,children:ue})]}))}));"production"!==process.env.NODE_ENV&&(S.propTypes={ariaLabel:t.string.isRequired,children:t.node,classes:t.object,className:t.string,direction:t.oneOf(["down","left","right","up"]),FabProps:t.object,hidden:t.bool,icon:t.node,onBlur:t.func,onClose:t.func,onFocus:t.func,onKeyDown:t.func,onMouseEnter:t.func,onMouseLeave:t.func,onOpen:t.func,open:t.bool,openIcon:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),TransitionComponent:t.elementType,transitionDuration:t.oneOfType([t.number,t.shape({appear:t.number,enter:t.number,exit:t.number})]),TransitionProps:t.object});export{S as default};
1
+ import e from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import o from"../../../@babel/runtime/helpers/esm/extends.js";import*as n from"react";import{r}from"../../../../_virtual/index2.js";import t from"../../../../_virtual/index.js";import{clsx as i}from"../node_modules/clsx/dist/clsx.mjs.js";import s from"../../utils/esm/composeClasses/composeClasses.js";import a from"../../utils/esm/useTimeout/useTimeout.js";import l from"../../utils/esm/clamp/clamp.js";import c from"../styles/styled.js";import{useDefaultProps as p}from"../DefaultPropsProvider/DefaultPropsProvider.js";import u from"../styles/useTheme.js";import m from"../Zoom/Zoom.js";import d from"../Fab/Fab.js";import"../Fab/fabClasses.js";import f from"../../utils/esm/capitalize/capitalize.js";import b from"../../utils/esm/isMuiElement/isMuiElement.js";import v from"../../utils/esm/useForkRef/useForkRef.js";import D from"../../utils/esm/useControlled/useControlled.js";import g,{getSpeedDialUtilityClass as h}from"./speedDialClasses.js";import{jsxs as j,jsx as y}from"react/jsx-runtime";const x=["ref"],w=["ariaLabel","FabProps","children","className","direction","hidden","icon","onBlur","onClose","onFocus","onKeyDown","onMouseEnter","onMouseLeave","onOpen","open","openIcon","TransitionComponent","transitionDuration","TransitionProps"],C=["ref"];function E(e){return"up"===e||"down"===e?"vertical":"right"===e||"left"===e?"horizontal":void 0}const F=c("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[`direction${f(n.direction)}`]]}})((({theme:e,ownerState:n})=>o({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none"},"up"===n.direction&&{flexDirection:"column-reverse",[`& .${g.actions}`]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:48}},"down"===n.direction&&{flexDirection:"column",[`& .${g.actions}`]:{flexDirection:"column",marginTop:-32,paddingTop:48}},"left"===n.direction&&{flexDirection:"row-reverse",[`& .${g.actions}`]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:48}},"right"===n.direction&&{flexDirection:"row",[`& .${g.actions}`]:{flexDirection:"row",marginLeft:-32,paddingLeft:48}}))),P=c(d,{name:"MuiSpeedDial",slot:"Fab",overridesResolver:(e,o)=>o.fab})((()=>({pointerEvents:"auto"}))),T=c("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.actions,!n.open&&o.actionsClosed]}})((({ownerState:e})=>o({display:"flex",pointerEvents:"auto"},!e.open&&{transition:"top 0s linear 0.2s",pointerEvents:"none"}))),S=n.forwardRef((function(t,c){const d=p({props:t,name:"MuiSpeedDial"}),g=u(),S={enter:g.transitions.duration.enteringScreen,exit:g.transitions.duration.leavingScreen},{ariaLabel:M,FabProps:{ref:R}={},children:L,className:N,direction:O="up",hidden:$=!1,icon:k,onBlur:I,onClose:z,onFocus:B,onKeyDown:K,onMouseEnter:_,onMouseLeave:V,onOpen:A,open:Z,TransitionComponent:q=m,transitionDuration:U=S,TransitionProps:W}=d,G=e(d.FabProps,x),H=e(d,w),[J,Q]=D({controlled:Z,default:!1,name:"SpeedDial",state:"open"}),X=o({},d,{open:J,direction:O}),Y=(e=>{const{classes:o,open:n,direction:r}=e,t={root:["root",`direction${f(r)}`],fab:["fab"],actions:["actions",!n&&"actionsClosed"]};return s(t,h,o)})(X),ee=a(),oe=n.useRef(0),ne=n.useRef(),re=n.useRef([]);re.current=[re.current[0]];const te=n.useCallback((e=>{re.current[0]=e}),[]),ie=v(R,te),se=(e,o)=>n=>{re.current[e+1]=n,o&&o(n)};n.useEffect((()=>{J||(oe.current=0,ne.current=void 0)}),[J]);const ae=e=>{"mouseleave"===e.type&&V&&V(e),"blur"===e.type&&I&&I(e),ee.clear(),"blur"===e.type?ee.start(0,(()=>{Q(!1),z&&z(e,"blur")})):(Q(!1),z&&z(e,"mouseLeave"))},le=e=>{"mouseenter"===e.type&&_&&_(e),"focus"===e.type&&B&&B(e),ee.clear(),J||ee.start(0,(()=>{if(Q(!0),A){A(e,{focus:"focus",mouseenter:"mouseEnter"}[e.type])}}))},ce=M.replace(/^[^a-z]+|[^\w:.-]+/gi,""),pe=n.Children.toArray(L).filter((e=>("production"!==process.env.NODE_ENV&&r.isFragment(e)&&console.error(["MUI: The SpeedDial component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),n.isValidElement(e)))),ue=pe.map(((r,t)=>{const i=r.props,{FabProps:{ref:s}={},tooltipPlacement:a}=i,l=e(i.FabProps,C),c=a||("vertical"===E(O)?"left":"top");return n.cloneElement(r,{FabProps:o({},l,{ref:se(t,s)}),delay:30*(J?t:pe.length-t),open:J,tooltipPlacement:c,id:`${ce}-action-${t}`})}));return j(F,o({className:i(Y.root,N),ref:c,role:"presentation",onKeyDown:e=>{K&&K(e);const o=e.key.replace("Arrow","").toLowerCase(),{current:n=o}=ne;if("Escape"===e.key)return Q(!1),re.current[0].focus(),void(z&&z(e,"escapeKeyDown"));if(E(o)===E(n)&&void 0!==E(o)){e.preventDefault();const r=o===n?1:-1,t=l(oe.current+r,0,re.current.length-1);re.current[t].focus(),oe.current=t,ne.current=n}},onBlur:ae,onFocus:le,onMouseEnter:le,onMouseLeave:ae,ownerState:X},H,{children:[y(q,o({in:!$,timeout:U,unmountOnExit:!0},W,{children:y(P,o({color:"primary","aria-label":M,"aria-haspopup":"true","aria-expanded":J,"aria-controls":`${ce}-actions`},G,{onClick:e=>{G.onClick&&G.onClick(e),ee.clear(),J?(Q(!1),z&&z(e,"toggle")):(Q(!0),A&&A(e,"toggle"))},className:i(Y.fab,G.className),ref:ie,ownerState:X,children:n.isValidElement(k)&&b(k,["SpeedDialIcon"])?n.cloneElement(k,{open:J}):k}))})),y(T,{id:`${ce}-actions`,role:"menu","aria-orientation":E(O),className:i(Y.actions,!J&&Y.actionsClosed),ownerState:X,children:ue})]}))}));"production"!==process.env.NODE_ENV&&(S.propTypes={ariaLabel:t.string.isRequired,children:t.node,classes:t.object,className:t.string,direction:t.oneOf(["down","left","right","up"]),FabProps:t.object,hidden:t.bool,icon:t.node,onBlur:t.func,onClose:t.func,onFocus:t.func,onKeyDown:t.func,onMouseEnter:t.func,onMouseLeave:t.func,onOpen:t.func,open:t.bool,openIcon:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),TransitionComponent:t.elementType,transitionDuration:t.oneOfType([t.number,t.shape({appear:t.number,enter:t.number,exit:t.number})]),TransitionProps:t.object});export{S as default};
2
2
  //# sourceMappingURL=SpeedDial.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChatComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/InstantLearning/_components/ChatComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAYhF,OAAO,qBAAqB,CAAA;AAK5B,OAAO,EAAkC,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAkCxH,UAAU,kBAAkB;IACxB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,iBAAiB,EAAE,MAAM,CAAA;IACzB,gBAAgB,EAAE,MAAM,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,6BAA6B,EAAE,GAAG,CAAA;IAClC,aAAa,EAAE,GAAG,CAAC;IACnB,gBAAgB,EAAE,GAAG,CAAC;IACtB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IACnE,gBAAgB,EAAE,MAAM,CAAA;IACxB,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IAClE,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAA;IAClC,gBAAgB,EAAE,MAAM,CAAA;IACxB,yBAAyB,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1C,0BAA0B,EAAE,OAAO,CAAA;IACnC,wBAAwB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CA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,CAAC,CAAC;IACjE,qBAAqB,EAAE,MAAM,CAAC;IAC9B,wBAAwB,EAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACzE,4BAA4B,EAAE,CAAC,eAAe,EAAE,iCAAiC,GAAG,IAAI,KAAK,IAAI,CAAC;IAClG,gBAAgB,EAAE,OAAO,CAAC;IAC1B,yBAAyB,EAAE,iCAAiC,GAAI,IAAI,CAAC;CAExE;AAmaD,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkrE/C,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContextualChatComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/InstantLearning/_components/ContextualChatComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAYhF,OAAO,qBAAqB,CAAA;AAI5B,OAAO,EAAkC,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AA8BxH,UAAU,kBAAkB;IACxB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,iBAAiB,EAAE,MAAM,CAAA;IACzB,gBAAgB,EAAE,MAAM,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,6BAA6B,EAAE,GAAG,CAAA;IAClC,aAAa,EAAE,GAAG,CAAC;IACnB,gBAAgB,EAAE,GAAG,CAAC;IACtB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IACnE,gBAAgB,EAAE,MAAM,CAAA;IACxB,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IAClE,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAA;IAClC,gBA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,CAAC,EAAG,GAAG,EAAE,CAAC;IACtB,cAAc,CAAC,EAAG;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAChE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAE/B;AAoaD,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqlF/C,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"ContextualChatComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/InstantLearning/_components/ContextualChatComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAYhF,OAAO,qBAAqB,CAAA;AAG5B,OAAO,EAAkC,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AA8BxH,UAAU,kBAAkB;IACxB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,iBAAiB,EAAE,MAAM,CAAA;IACzB,gBAAgB,EAAE,MAAM,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,6BAA6B,EAAE,GAAG,CAAA;IAClC,aAAa,EAAE,GAAG,CAAC;IACnB,gBAAgB,EAAE,GAAG,CAAC;IACtB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IACnE,gBAAgB,EAAE,MAAM,CAAA;IACxB,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IAClE,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAA;IAClC,gBAAgB,EAAE,MAAM,CAAA;IACxB,yBAAyB,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1C,0BAA0B,EAAE,OAAO,CAAA;IACnC,wBAAwB,EAAE,KAAK,C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AAC;IAChE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAE/B;AA8UD,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAggF/C,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"LearningDetailsForm.d.ts","sourceRoot":"","sources":["../../../../../../src/features/InstantLearning/_components/LearningDetailsForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AA0CjF,OAAO,EAAE,iCAAiC,EAAkC,MAAM,qCAAqC,CAAC;AAexH,UAAU,wBAAwB;IAC9B,gBAAgB,EAAE,MAAM,CAAA;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,CAAC,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC5E,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3D,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC1C,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC,CAAC;IACnF,0BAA0B,EAAE,GAAG,CAAC;IAChC,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACpE,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,m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AAA;IAClE,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACjE,wBAAwB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACvE,yBAAyB,EAAE,iCAAiC,GAAG,IAAI,CAAC;IACpE,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACpE;AAED,UAAU,mBAAmB;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,OAAO,CAAC;IAC1B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IAEnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAkpF3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"LearningDetailsForm.d.ts","sourceRoot":"","sources":["../../../../../../src/features/InstantLearning/_components/LearningDetailsForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AA0CjF,OAAO,EAAE,iCAAiC,EAAkC,MAAM,qCAAqC,CAAC;AAexH,UAAU,wBAAwB;IAC9B,gBAAgB,EAAE,MAAM,CAAA;IACxB,YAAY,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,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,OAAO,CAAC;IAC1B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IAEnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAupF3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,137 +1,137 @@
1
- {
2
- "name": "@e-llm-studio/instant-learning",
3
- "version": "0.0.87",
4
- "author": "Devesh Patel",
5
- "description": "",
6
- "license": "MIT",
7
- "main": "dist/cjs/index.js",
8
- "module": "dist/index.js",
9
- "sideEffects": false,
10
- "types": "dist/index.d.ts",
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://github.com/Techolution/e-llm-studio-lib.git"
17
- },
18
- "keywords": [
19
- "e-llm-studio-lib"
20
- ],
21
- "files": [
22
- "dist"
23
- ],
24
- "scripts": {
25
- "start": "craco start",
26
- "build": "rollup -c",
27
- "tsupBuild": "tsup src/index.ts",
28
- "test": "craco test",
29
- "eject": "craco eject"
30
- },
31
- "eslintConfig": {
32
- "extends": [
33
- "react-app",
34
- "react-app/jest"
35
- ]
36
- },
37
- "browserslist": {
38
- "production": [
39
- ">0.2%",
40
- "not dead",
41
- "not op_mini all"
42
- ],
43
- "development": [
44
- "last 1 chrome version",
45
- "last 1 firefox version",
46
- "last 1 safari version"
47
- ]
48
- },
49
- "tsup": {
50
- "entry": [
51
- "src/index.ts"
52
- ],
53
- "format": [
54
- "esm",
55
- "cjs"
56
- ],
57
- "dts": true,
58
- "minify": true,
59
- "sourcemap": true,
60
- "clean": true
61
- },
62
- "exports": {
63
- ".": {
64
- "import": "./dist/index.js",
65
- "require": "./dist/cjs/index.js",
66
- "types": "./dist/types/index.d.ts"
67
- },
68
- "./InstantLearning": {
69
- "import": "./dist/features/InstantLearning/InstantLearning.js",
70
- "require": "./dist/cjs/features/InstantLearning/InstantLearning.js",
71
- "types": "./dist/types/src/features/InstantLearning/InstantLearning.d.ts"
72
- },
73
- "./WtaWnta": {
74
- "import": "./dist/features/WtaWnta/WtaWnta.js",
75
- "require": "./dist/cjs/features/WtaWnta/WtaWnta.js",
76
- "types": "./dist/types/src/features/WtaWnta/WtaWnta.d.ts"
77
- }
78
- },
79
- "devDependencies": {
80
- "@babel/plugin-transform-runtime": "^7.25.9",
81
- "@babel/preset-react": "7.26.3",
82
- "@babel/preset-typescript": "7.26.0",
83
- "@e-llm-studio/streaming-response": "^1.1.36",
84
- "@emotion/react": "^11.14.0",
85
- "@emotion/styled": "^11.14.1",
86
- "@material-ui/core": "4.12.4",
87
- "@material-ui/icons": "^4.11.3",
88
- "@material-ui/lab": "4.0.0-alpha.58",
89
- "@monaco-editor/react": "^4.7.0",
90
- "@mui/material": "^5.17.1",
91
- "@rollup/plugin-commonjs": "28.0.2",
92
- "@rollup/plugin-json": "6.1.0",
93
- "@rollup/plugin-node-resolve": "13.3.0",
94
- "@rollup/plugin-strip": "3.0.4",
95
- "@rollup/plugin-url": "^8.0.2",
96
- "@svgr/rollup": "8.1.0",
97
- "@types/react": "17.0.83",
98
- "@types/react-dom": "17.0.26",
99
- "@types/react-router-dom": "5.3.3",
100
- "@types/react-syntax-highlighter": "^15.5.13",
101
- "ajv": "8.12.0",
102
- "ajv-keywords": "5.1.0",
103
- "axios": "1.7.9",
104
- "highlight.js": "^11.11.1",
105
- "json5": "^2.2.3",
106
- "lucide-react": "^0.525.0",
107
- "moment": "2.29.4",
108
- "moment-timezone": "0.5.34",
109
- "react-markdown": "^8.0.7",
110
- "react-router-dom": "5.2.0",
111
- "react-scripts": ">=5.0.1",
112
- "react-syntax-highlighter": "^15.6.1",
113
- "rehype-raw": "^7.0.0",
114
- "remark-gfm": "^4.0.1",
115
- "rollup": "2.79.2",
116
- "rollup-plugin-babel": "4.4.0",
117
- "rollup-plugin-peer-deps-external": "2.2.4",
118
- "rollup-plugin-polyfill-node": "0.13.0",
119
- "rollup-plugin-postcss": "4.0.2",
120
- "rollup-plugin-terser": "7.0.2",
121
- "rollup-plugin-typescript2": "0.36.0",
122
- "rollup-plugin-visualizer": "5.12.0",
123
- "ts-loader": "9.5.1",
124
- "typescript": "4.9.5",
125
- "uuid": "^11.1.0"
126
- },
127
- "peerDependencies": {
128
- "react": ">=16.8.0 <19.0.0",
129
- "react-dom": ">=16.8.0 <19.0.0"
130
- },
131
- "dependencies": {
132
- "@craco/craco": "^7.1.0",
133
- "pdf-collaborative-tool": "^0.7.0",
134
- "react-hot-toast": "^2.6.0",
135
- "react-konva": "^17.0.2-6"
136
- }
137
- }
1
+ {
2
+ "name": "@e-llm-studio/instant-learning",
3
+ "version": "0.0.89",
4
+ "author": "Devesh Patel",
5
+ "description": "",
6
+ "license": "MIT",
7
+ "main": "dist/cjs/index.js",
8
+ "module": "dist/index.js",
9
+ "sideEffects": false,
10
+ "types": "dist/index.d.ts",
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/Techolution/e-llm-studio-lib.git"
17
+ },
18
+ "keywords": [
19
+ "e-llm-studio-lib"
20
+ ],
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "scripts": {
25
+ "start": "craco start",
26
+ "build": "rollup -c",
27
+ "tsupBuild": "tsup src/index.ts",
28
+ "test": "craco test",
29
+ "eject": "craco eject"
30
+ },
31
+ "eslintConfig": {
32
+ "extends": [
33
+ "react-app",
34
+ "react-app/jest"
35
+ ]
36
+ },
37
+ "browserslist": {
38
+ "production": [
39
+ ">0.2%",
40
+ "not dead",
41
+ "not op_mini all"
42
+ ],
43
+ "development": [
44
+ "last 1 chrome version",
45
+ "last 1 firefox version",
46
+ "last 1 safari version"
47
+ ]
48
+ },
49
+ "tsup": {
50
+ "entry": [
51
+ "src/index.ts"
52
+ ],
53
+ "format": [
54
+ "esm",
55
+ "cjs"
56
+ ],
57
+ "dts": true,
58
+ "minify": true,
59
+ "sourcemap": true,
60
+ "clean": true
61
+ },
62
+ "exports": {
63
+ ".": {
64
+ "import": "./dist/index.js",
65
+ "require": "./dist/cjs/index.js",
66
+ "types": "./dist/types/index.d.ts"
67
+ },
68
+ "./InstantLearning": {
69
+ "import": "./dist/features/InstantLearning/InstantLearning.js",
70
+ "require": "./dist/cjs/features/InstantLearning/InstantLearning.js",
71
+ "types": "./dist/types/src/features/InstantLearning/InstantLearning.d.ts"
72
+ },
73
+ "./WtaWnta": {
74
+ "import": "./dist/features/WtaWnta/WtaWnta.js",
75
+ "require": "./dist/cjs/features/WtaWnta/WtaWnta.js",
76
+ "types": "./dist/types/src/features/WtaWnta/WtaWnta.d.ts"
77
+ }
78
+ },
79
+ "devDependencies": {
80
+ "@babel/plugin-transform-runtime": "^7.25.9",
81
+ "@babel/preset-react": "7.26.3",
82
+ "@babel/preset-typescript": "7.26.0",
83
+ "@e-llm-studio/streaming-response": "^1.1.36",
84
+ "@emotion/react": "^11.14.0",
85
+ "@emotion/styled": "^11.14.1",
86
+ "@material-ui/core": "4.12.4",
87
+ "@material-ui/icons": "^4.11.3",
88
+ "@material-ui/lab": "4.0.0-alpha.58",
89
+ "@monaco-editor/react": "^4.7.0",
90
+ "@mui/material": "^5.17.1",
91
+ "@rollup/plugin-commonjs": "28.0.2",
92
+ "@rollup/plugin-json": "6.1.0",
93
+ "@rollup/plugin-node-resolve": "13.3.0",
94
+ "@rollup/plugin-strip": "3.0.4",
95
+ "@rollup/plugin-url": "^8.0.2",
96
+ "@svgr/rollup": "8.1.0",
97
+ "@types/react": "17.0.83",
98
+ "@types/react-dom": "17.0.26",
99
+ "@types/react-router-dom": "5.3.3",
100
+ "@types/react-syntax-highlighter": "^15.5.13",
101
+ "ajv": "8.12.0",
102
+ "ajv-keywords": "5.1.0",
103
+ "axios": "1.7.9",
104
+ "highlight.js": "^11.11.1",
105
+ "json5": "^2.2.3",
106
+ "lucide-react": "^0.525.0",
107
+ "moment": "2.29.4",
108
+ "moment-timezone": "0.5.34",
109
+ "react-markdown": "^8.0.7",
110
+ "react-router-dom": "5.2.0",
111
+ "react-scripts": ">=5.0.1",
112
+ "react-syntax-highlighter": "^15.6.1",
113
+ "rehype-raw": "^7.0.0",
114
+ "remark-gfm": "^4.0.1",
115
+ "rollup": "2.79.2",
116
+ "rollup-plugin-babel": "4.4.0",
117
+ "rollup-plugin-peer-deps-external": "2.2.4",
118
+ "rollup-plugin-polyfill-node": "0.13.0",
119
+ "rollup-plugin-postcss": "4.0.2",
120
+ "rollup-plugin-terser": "7.0.2",
121
+ "rollup-plugin-typescript2": "0.36.0",
122
+ "rollup-plugin-visualizer": "5.12.0",
123
+ "ts-loader": "9.5.1",
124
+ "typescript": "4.9.5",
125
+ "uuid": "^11.1.0"
126
+ },
127
+ "peerDependencies": {
128
+ "react": ">=16.8.0 <19.0.0",
129
+ "react-dom": ">=16.8.0 <19.0.0"
130
+ },
131
+ "dependencies": {
132
+ "@craco/craco": "^7.1.0",
133
+ "pdf-collaborative-tool": "^0.7.0",
134
+ "react-hot-toast": "^2.6.0",
135
+ "react-konva": "^17.0.2-6"
136
+ }
137
+ }