@daoyi/nmtl-ui 1.1.25 → 1.1.26

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 (85) hide show
  1. package/lib/components/Autocomplete.js +1 -1
  2. package/lib/components/Avatar.js +1 -1
  3. package/lib/components/BackTop.js +1 -1
  4. package/lib/components/Backdrop-0c72d47e.js +1 -0
  5. package/lib/components/Button.js +1 -1
  6. package/lib/components/ButtonBase-54fbcc3c.js +1 -0
  7. package/lib/components/Carousel.js +1 -1
  8. package/lib/components/Checkbox.js +1 -1
  9. package/lib/components/CircularProgress-8332110b.js +1 -0
  10. package/lib/components/Drawer-f0659547.js +1 -0
  11. package/lib/components/Drawer.js +1 -1
  12. package/lib/components/Empty.js +1 -1
  13. package/lib/components/Fade-edb8e7af.js +1 -0
  14. package/lib/components/FormControlLabel-b4f37c46.js +1 -0
  15. package/lib/components/Grow-e28280cd.js +1 -0
  16. package/lib/components/Header.js +1 -1
  17. package/lib/components/IconButton-f380331f.js +1 -0
  18. package/lib/components/Image.js +1 -0
  19. package/lib/components/InputMethod.js +3 -3
  20. package/lib/components/MUITheme.js +1 -1
  21. package/lib/components/Modal-03889d3e.js +1 -0
  22. package/lib/components/Modal.js +1 -1
  23. package/lib/components/Paper-8eaa8df4.js +1 -0
  24. package/lib/components/{Popper-31c1ad7c.js → Popper-c6919a40.js} +2 -2
  25. package/lib/components/Portal-1b30ccbc.js +1 -0
  26. package/lib/components/Radio.js +1 -1
  27. package/lib/components/Select-51559a92.js +1 -0
  28. package/lib/components/Select-5609df88.js +1 -0
  29. package/lib/components/Select.js +1 -1
  30. package/lib/components/Spin.js +1 -1
  31. package/lib/components/Table.js +1 -1
  32. package/lib/components/Tooltip.js +1 -1
  33. package/lib/components/TransitionGroupContext-2cd2fcd6.js +1 -0
  34. package/lib/components/Typography-fe7cdaf3.js +1 -0
  35. package/lib/components/_commonjsHelpers-97e6d7b1.js +1 -0
  36. package/lib/components/_rollupPluginBabelHelpers-4234c275.js +1 -0
  37. package/lib/components/capitalize-017d2500.js +1 -0
  38. package/lib/components/createSvgIcon-3b1a21b0.js +1 -0
  39. package/lib/components/{debounce-a740abfa.js → debounce-7df508de.js} +1 -1
  40. package/lib/components/index-ec2d0bbb.js +7 -0
  41. package/lib/components/isMuiElement-3726d123.js +1 -0
  42. package/lib/components/isObjectLike-ec3f35a3.js +1 -0
  43. package/lib/components/ownerWindow-ba2c31bc.js +1 -0
  44. package/lib/components/utils-7954d1aa.js +1 -0
  45. package/lib/components/withStyles-43125883.js +8 -0
  46. package/lib/index.d.ts +2 -4
  47. package/lib/index.js +2 -4
  48. package/package.json +4 -15
  49. package/lib/components/Backdrop-3c472376.js +0 -1
  50. package/lib/components/Button-6271d361.js +0 -1
  51. package/lib/components/ButtonBase-cfca0fe1.js +0 -1
  52. package/lib/components/CircularProgress-537ad812.js +0 -1
  53. package/lib/components/ContactModal.js +0 -3
  54. package/lib/components/DialogTitle-e0e78621.js +0 -1
  55. package/lib/components/Drawer-da2ddeed.js +0 -1
  56. package/lib/components/Fade-4a3713bb.js +0 -1
  57. package/lib/components/FormControlLabel-6578b588.js +0 -1
  58. package/lib/components/Grow-f6a8f6bf.js +0 -1
  59. package/lib/components/IconButton-19970f38.js +0 -1
  60. package/lib/components/Loading.js +0 -1
  61. package/lib/components/Modal-2e8b3262.js +0 -1
  62. package/lib/components/Paper-f4cc750c.js +0 -1
  63. package/lib/components/Portal-edb523c5.js +0 -1
  64. package/lib/components/RadioGroup-ebfc5e6d.js +0 -1
  65. package/lib/components/Select-3cea2ac2.js +0 -1
  66. package/lib/components/Select-812280cf.js +0 -1
  67. package/lib/components/Slide-ef2f2933.js +0 -1
  68. package/lib/components/SvgIcon-ae419ec7.js +0 -1
  69. package/lib/components/TextField-62bea25d.js +0 -1
  70. package/lib/components/Typography-8814c5aa.js +0 -1
  71. package/lib/components/_rollupPluginBabelHelpers-9a98782c.js +0 -1
  72. package/lib/components/capitalize-e92d0507.js +0 -8
  73. package/lib/components/createSvgIcon-ba256905.js +0 -1
  74. package/lib/components/createSvgIcon-c92a409c.js +0 -1
  75. package/lib/components/debounce-65582d84.js +0 -1
  76. package/lib/components/index-767b2843.js +0 -7
  77. package/lib/components/isMuiElement-64ad493a.js +0 -1
  78. package/lib/components/isObjectLike-4a391d5d.js +0 -1
  79. package/lib/components/muiNotifcationReducer-75669c4f.js +0 -15
  80. package/lib/components/ownerDocument-e276d08d.js +0 -1
  81. package/lib/components/ownerWindow-19cabe15.js +0 -1
  82. package/lib/components/react-router-dom-6469c1df.js +0 -1
  83. package/lib/components/useForkRef-58783e4b.js +0 -1
  84. package/lib/components/utils-256c7d92.js +0 -1
  85. package/lib/utils/notification.js +0 -1
@@ -1 +1 @@
1
- import e from"react";import t from"prop-types";import{a}from"./index-767b2843.js";import{s as c}from"./style-inject.es-1f59c1d0.js";c(".antd-empty {\n width: 100%;\n font-size: 1rem;\n line-height: 1.5715;\n text-align: center;\n overflow: hidden;\n height: 100%; }\n .antd-empty .ant-empty-image {\n height: 100px;\n margin-bottom: 8px; }\n .antd-empty .ant-empty-image img {\n height: calc(100% - 22px);\n margin: auto; }\n .antd-empty .antd-empty-description {\n color: rgba(0, 0, 0, 0.85); }\n");var i=function(t){var c=t.className,i=t.description,l=t.emptySrc,n=t.imageStyle;return e.createElement("div",{className:a("antd-empty",c)},e.createElement("div",{className:"ant-empty-image"},e.createElement("img",{src:l||"data:image/svg+xml,%3csvg class='ant-empty-img-default' width='184' height='152' viewBox='0 0 184 152' xmlns='http://www.w3.org/2000/svg'%3e %3cg fill='none' fill-rule='evenodd'%3e %3cg transform='translate(24 31.67)'%3e %3cellipse fill='%23f5f5f5' fill-opacity='0.8' cx='67.797' cy='106.89' rx='67.797' ry='12.668'%3e%3c/ellipse%3e %3cpath fill='%23aeb8c2' d='M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z'%3e%3c/path%3e %3cpath fill='url(%23linearGradient-1)' d='M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z' transform='translate(13.56)'%3e%3c/path%3e %3cpath fill='%23f5f5f7' d='M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z'%3e%3c/path%3e %3cpath fill='%23dce0e6' d='M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z'%3e%3c/path%3e %3c/g%3e %3cpath fill='%23dce0e6' d='M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z'%3e%3c/path%3e %3cg fill='white' transform='translate(149.65 15.383)'%3e %3cellipse cx='20.654' cy='3.167' rx='2.849' ry='2.815'%3e%3c/ellipse%3e %3cpath d='M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z'%3e%3c/path%3e %3c/g%3e %3c/g%3e%3c/svg%3e",alt:i,style:n}),i&&e.createElement("div",{className:"ant-empty-description"},i)))};i.defaultProps={className:void 0,emptySrc:void 0,description:"No Data",imageStyle:{}},i.propTypes={className:t.string,emptySrc:t.node,description:t.string,imageStyle:t.objectOf(t.any)};export{i as default};
1
+ import e from"react";import t from"prop-types";import{c as a}from"./index-ec2d0bbb.js";import{s as c}from"./style-inject.es-1f59c1d0.js";import"./_commonjsHelpers-97e6d7b1.js";c(".antd-empty {\n width: 100%;\n font-size: 1rem;\n line-height: 1.5715;\n text-align: center;\n overflow: hidden;\n height: 100%; }\n .antd-empty .ant-empty-image {\n height: 100px;\n margin-bottom: 8px; }\n .antd-empty .ant-empty-image img {\n height: calc(100% - 22px);\n margin: auto; }\n .antd-empty .antd-empty-description {\n color: rgba(0, 0, 0, 0.85); }\n");var i=function(t){var c=t.className,i=t.description,l=t.emptySrc,n=t.imageStyle;return e.createElement("div",{className:a("antd-empty",c)},e.createElement("div",{className:"ant-empty-image"},e.createElement("img",{src:l||"data:image/svg+xml,%3csvg class='ant-empty-img-default' width='184' height='152' viewBox='0 0 184 152' xmlns='http://www.w3.org/2000/svg'%3e %3cg fill='none' fill-rule='evenodd'%3e %3cg transform='translate(24 31.67)'%3e %3cellipse fill='%23f5f5f5' fill-opacity='0.8' cx='67.797' cy='106.89' rx='67.797' ry='12.668'%3e%3c/ellipse%3e %3cpath fill='%23aeb8c2' d='M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z'%3e%3c/path%3e %3cpath fill='url(%23linearGradient-1)' d='M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z' transform='translate(13.56)'%3e%3c/path%3e %3cpath fill='%23f5f5f7' d='M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z'%3e%3c/path%3e %3cpath fill='%23dce0e6' d='M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z'%3e%3c/path%3e %3c/g%3e %3cpath fill='%23dce0e6' d='M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z'%3e%3c/path%3e %3cg fill='white' transform='translate(149.65 15.383)'%3e %3cellipse cx='20.654' cy='3.167' rx='2.849' ry='2.815'%3e%3c/ellipse%3e %3cpath d='M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z'%3e%3c/path%3e %3c/g%3e %3c/g%3e%3c/svg%3e",alt:i,style:n}),i&&e.createElement("div",{className:"ant-empty-description"},i)))};i.defaultProps={className:void 0,emptySrc:void 0,description:"No Data",imageStyle:{}},i.propTypes={className:t.string,emptySrc:t.node,description:t.string,imageStyle:t.objectOf(t.any)};export{i as default};
@@ -0,0 +1 @@
1
+ import{q as t,b as n,_ as e,k as i}from"./withStyles-43125883.js";import*as o from"react";import"prop-types";import{u as r,T as a,r as s,g as d}from"./utils-7954d1aa.js";import{u as c}from"./TransitionGroupContext-2cd2fcd6.js";var p={entering:{opacity:1},entered:{opacity:1}},l={enter:t.enteringScreen,exit:t.leavingScreen},m=o.forwardRef((function(t,m){var u=t.children,y=t.disableStrictModeCompat,E=void 0!==y&&y,f=t.in,v=t.onEnter,x=t.onEntered,g=t.onEntering,b=t.onExit,T=t.onExited,C=t.onExiting,S=t.style,h=t.TransitionComponent,w=void 0===h?a:h,j=t.timeout,k=void 0===j?l:j,M=n(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),R=r(),_=R.unstable_strictMode&&!E,q=o.useRef(null),F=c(u.ref,m),G=c(_?q:void 0,F),z=function(t){return function(n,e){if(t){var o=_?[q.current,n]:[n,e],r=i(o,2),a=r[0],s=r[1];void 0===s?t(a):t(a,s)}}},A=z(g),B=z((function(t,n){s(t);var e=d({style:S,timeout:k},{mode:"enter"});t.style.webkitTransition=R.transitions.create("opacity",e),t.style.transition=R.transitions.create("opacity",e),v&&v(t,n)})),D=z(x),H=z(C),I=z((function(t){var n=d({style:S,timeout:k},{mode:"exit"});t.style.webkitTransition=R.transitions.create("opacity",n),t.style.transition=R.transitions.create("opacity",n),b&&b(t)})),J=z(T);return o.createElement(w,e({appear:!0,in:f,nodeRef:_?q:void 0,onEnter:B,onEntered:D,onEntering:A,onExit:I,onExited:J,onExiting:H,timeout:k},M),(function(t,n){return o.cloneElement(u,e({style:e({opacity:0,visibility:"exited"!==t||f?void 0:"hidden"},p[t],S,u.props.style),ref:G},n))}))}));export{m as F};
@@ -0,0 +1 @@
1
+ import{w as e,b as a,k as o,_ as n}from"./withStyles-43125883.js";import*as t from"react";import"prop-types";import{c as l,a as r}from"./capitalize-017d2500.js";import{u as i}from"./useControlled-b5d6fb94.js";import{a as c}from"./useFormControl-479b5455.js";import{I as d}from"./IconButton-f380331f.js";import{T as s}from"./Typography-fe7cdaf3.js";var u=t.forwardRef((function(e,r){var s=e.autoFocus,u=e.checked,m=e.checkedIcon,p=e.classes,f=e.className,b=e.defaultChecked,h=e.disabled,v=e.icon,g=e.id,k=e.inputProps,C=e.inputRef,x=e.name,y=e.onBlur,F=e.onChange,B=e.onFocus,I=e.readOnly,P=e.required,R=e.tabIndex,w=e.type,N=e.value,j=a(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),E=i({controlled:u,default:Boolean(b),name:"SwitchBase",state:"checked"}),L=o(E,2),S=L[0],T=L[1],q=c(),D=h;q&&void 0===D&&(D=q.disabled);var O="checkbox"===w||"radio"===w;return t.createElement(d,n({component:"span",className:l(p.root,f,S&&p.checked,D&&p.disabled),disabled:D,tabIndex:null,role:void 0,onFocus:function(e){B&&B(e),q&&q.onFocus&&q.onFocus(e)},onBlur:function(e){y&&y(e),q&&q.onBlur&&q.onBlur(e)},ref:r},j),t.createElement("input",n({autoFocus:s,checked:u,defaultChecked:b,className:p.input,disabled:D,id:O&&g,name:x,onChange:function(e){var a=e.target.checked;T(a),F&&F(e,a)},readOnly:I,ref:C,required:P,tabIndex:R,type:w,value:N},k)),S?m:v)})),m=e({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(u),p=t.forwardRef((function(e,o){e.checked;var i=e.classes,d=e.className,u=e.control,m=e.disabled;e.inputRef;var p=e.label,f=e.labelPlacement,b=void 0===f?"end":f;e.name,e.onChange,e.value;var h=a(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"]),v=c(),g=m;void 0===g&&void 0!==u.props.disabled&&(g=u.props.disabled),void 0===g&&v&&(g=v.disabled);var k={disabled:g};return["checked","name","onChange","value","inputRef"].forEach((function(a){void 0===u.props[a]&&void 0!==e[a]&&(k[a]=e[a])})),t.createElement("label",n({className:l(i.root,d,"end"!==b&&i["labelPlacement".concat(r(b))],g&&i.disabled),ref:o},h),t.cloneElement(u,k),t.createElement(s,{component:"span",className:l(i.label,g&&i.disabled)},p))})),f=e((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(p);export{f as F,m as S};
@@ -0,0 +1 @@
1
+ import{b as t,_ as n,k as e}from"./withStyles-43125883.js";import*as o from"react";import"prop-types";import{u as i,T as r,r as a,g as s}from"./utils-7954d1aa.js";import{u}from"./TransitionGroupContext-2cd2fcd6.js";function d(t){return"scale(".concat(t,", ").concat(Math.pow(t,2),")")}var c={entering:{opacity:1,transform:d(1)},entered:{opacity:1,transform:"none"}},l=o.forwardRef((function(l,f){var m=l.children,p=l.disableStrictModeCompat,y=void 0!==p&&p,E=l.in,v=l.onEnter,g=l.onEntered,x=l.onEntering,h=l.onExit,T=l.onExited,b=l.onExiting,j=l.style,C=l.timeout,R=void 0===C?"auto":C,H=l.TransitionComponent,M=void 0===H?r:H,S=t(l,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),w=o.useRef(),A=o.useRef(),D=i(),G=D.unstable_strictMode&&!y,_=o.useRef(null),k=u(m.ref,f),L=u(G?_:void 0,k),q=function(t){return function(n,o){if(t){var i=G?[_.current,n]:[n,o],r=e(i,2),a=r[0],s=r[1];void 0===s?t(a):t(a,s)}}},z=q(x),B=q((function(t,n){a(t);var e,o=s({style:j,timeout:R},{mode:"enter"}),i=o.duration,r=o.delay;"auto"===R?(e=D.transitions.getAutoHeightDuration(t.clientHeight),A.current=e):e=i,t.style.transition=[D.transitions.create("opacity",{duration:e,delay:r}),D.transitions.create("transform",{duration:.666*e,delay:r})].join(","),v&&v(t,n)})),F=q(g),I=q(b),J=q((function(t){var n,e=s({style:j,timeout:R},{mode:"exit"}),o=e.duration,i=e.delay;"auto"===R?(n=D.transitions.getAutoHeightDuration(t.clientHeight),A.current=n):n=o,t.style.transition=[D.transitions.create("opacity",{duration:n,delay:i}),D.transitions.create("transform",{duration:.666*n,delay:i||.333*n})].join(","),t.style.opacity="0",t.style.transform=d(.75),h&&h(t)})),K=q(T);return o.useEffect((function(){return function(){clearTimeout(w.current)}}),[]),o.createElement(M,n({appear:!0,in:E,nodeRef:G?_:void 0,onEnter:B,onEntered:F,onEntering:z,onExit:J,onExited:K,onExiting:I,addEndListener:function(t,n){var e=G?t:n;"auto"===R&&(w.current=setTimeout(e,A.current||0))},timeout:"auto"===R?null:R},S),(function(t,e){return o.cloneElement(m,n({style:n({opacity:0,transform:d(.75),visibility:"exited"!==t||E?void 0:"hidden"},c[t],j,m.props.style),ref:L},e))}))}));l.muiSupportAuto=!0;var f=l;export{f as G};
@@ -1 +1 @@
1
- import{c as e}from"./_rollupPluginBabelHelpers-9a98782c.js";import*as t from"react";import a,{useState as o,useRef as r,useEffect as n}from"react";import i from"prop-types";import{a as s}from"./index-767b2843.js";import{d as l}from"./debounce-a740abfa.js";import{N as c}from"./react-router-dom-6469c1df.js";import{c as d,D as p}from"./Drawer-da2ddeed.js";import{S as m}from"./Select-812280cf.js";import{s as h}from"./style-inject.es-1f59c1d0.js";import{S as g,F as u}from"./FormControlLabel-6578b588.js";import{w as f,l as b,b as k,c as y,k as j,_ as w}from"./capitalize-e92d0507.js";import{useRouteMatch as v}from"react-router";import"./isObjectLike-4a391d5d.js";import"./Select-3cea2ac2.js";import"./isMuiElement-64ad493a.js";import"./useFormControl-479b5455.js";import"react-is";import"./ownerDocument-e276d08d.js";import"react-dom";import"./useForkRef-58783e4b.js";import"./utils-256c7d92.js";import"./debounce-65582d84.js";import"./ownerWindow-19cabe15.js";import"./createChainedFunction-8d6683d4.js";import"./Modal-2e8b3262.js";import"./useEventCallback-8817ed1c.js";import"./Portal-edb523c5.js";import"./Paper-f4cc750c.js";import"./Grow-f6a8f6bf.js";import"./useControlled-b5d6fb94.js";import"./createSvgIcon-c92a409c.js";import"./SvgIcon-ae419ec7.js";import"./Typography-8814c5aa.js";import"./IconButton-19970f38.js";import"./ButtonBase-cfca0fe1.js";import"./useIsFocusVisible-217260c3.js";import"./Backdrop-3c472376.js";import"./Fade-4a3713bb.js";import"./Slide-ef2f2933.js";import"./Empty.js";import"./CircularProgress-537ad812.js";var _=t.forwardRef((function(e,a){var o=e.classes,r=e.className,n=e.color,i=void 0===n?"secondary":n,s=e.edge,l=void 0!==s&&s,c=e.size,d=void 0===c?"medium":c,p=k(e,["classes","className","color","edge","size"]),m=t.createElement("span",{className:o.thumb});return t.createElement("span",{className:y(o.root,r,{start:o.edgeStart,end:o.edgeEnd}[l],"small"===d&&o["size".concat(j(d))])},t.createElement(g,w({type:"checkbox",icon:m,checkedIcon:m,classes:{root:y(o.switchBase,o["color".concat(j(i))]),input:o.input,checked:o.checked,disabled:o.disabled},ref:a},p)),t.createElement("span",{className:o.track}))})),x=f((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:b(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:b(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(_);h(".header {\n display: flex;\n align-items: center;\n padding: 12px 36px;\n position: fixed;\n top: 0;\n z-index: 10;\n width: 100%;\n transition: top 0.3s ease-in-out; }\n .header__title {\n color: white;\n font-size: 18px;\n font-weight: bold;\n margin-right: 12px; }\n .header__links {\n flex: 1;\n display: flex; }\n .header__links__item {\n color: rgba(0, 0, 0, 0.85);\n text-decoration: none;\n font-weight: bold;\n padding: 8px 14px; }\n .header__links__item--active {\n color: rgba(0, 0, 0, 0.65);\n border-bottom: 2px solid white; }\n .header__links__item:hover {\n color: rgba(0, 0, 0, 0.65); }\n .header--hide {\n top: -100px; }\n\n@media screen and (max-width: 600px) {\n .header__links {\n display: none; } }\n");var C=function(t){var i=t.title,h=t.logo,g=t.locale,f=t.supportLanguages,b=t.pages,k=t.darkMode,y=t.className,j=t.setDarkMode,w=t.onLanguageChange,_=v().url,C=o(!1),$=e(C,2),E=$[0],S=$[1],L=r(l((function(){return S(window.scrollY>100)}),10)).current;return n((function(){return window.addEventListener("scroll",L),function(){window.removeEventListener("scroll",L)}}),[]),a.createElement("div",{className:s("header",{"header--hide":E},y)},h,a.createElement("div",{className:"header__title"},i),a.createElement("div",{className:"header__links"},(Array.isArray(b)?b:[]).filter((function(e){return e.showInHeader})).map((function(e){var t=e.path,o=e.name;return a.createElement(c,{key:t,to:"".concat(_).concat(t),className:"header__links__item",activeClassName:"header__links__item--active"},o)}))),a.createElement(u,{control:a.createElement(x,{checked:k,onChange:function(e){return j(e.target.checked)},color:"secondary"}),label:"Dark"}),a.createElement(m,{defaultValue:d({language:g,supportLanguages:f}),onChange:function(e){return w(e)},options:f}),a.createElement(p,{title:i,logo:h,drawerList:b,supportLanguages:f}))};C.defaultProps={className:void 0,title:void 0,logo:void 0,locale:void 0,supportLanguages:[{value:"en",label:"English"},{value:"zh-tw",label:"繁體中文"},{value:"zh-cn",label:"簡體中文"}],darkMode:!1,setDarkMode:function(){},onLanguageChange:function(){}},C.propTypes={className:i.string,title:i.string,logo:i.node,locale:i.string,supportLanguages:i.arrayOf(i.any),pages:i.arrayOf(i.any).isRequired,darkMode:i.bool,setDarkMode:i.func,onLanguageChange:i.func};export{C as default};
1
+ import{c as e}from"./_rollupPluginBabelHelpers-4234c275.js";import*as t from"react";import a,{useState as r,useRef as n,useEffect as o}from"react";import i from"prop-types";import{c}from"./index-ec2d0bbb.js";import{d as s}from"./debounce-7df508de.js";import{Router as l,__RouterContext as d,matchPath as p,useRouteMatch as m}from"react-router";import{w as h,a as u,b as f,_ as g,d as v,h as b}from"./withStyles-43125883.js";import{c as y,D as k}from"./Drawer-f0659547.js";import{S as w}from"./Select-5609df88.js";import{s as j}from"./style-inject.es-1f59c1d0.js";import{S as x,F as _}from"./FormControlLabel-b4f37c46.js";import{c as C,a as E}from"./capitalize-017d2500.js";import"./_commonjsHelpers-97e6d7b1.js";import"./isObjectLike-ec3f35a3.js";import"react-is";import"./Select-51559a92.js";import"./isMuiElement-3726d123.js";import"./useFormControl-479b5455.js";import"./ownerWindow-ba2c31bc.js";import"react-dom";import"./TransitionGroupContext-2cd2fcd6.js";import"./utils-7954d1aa.js";import"./createChainedFunction-8d6683d4.js";import"./Modal-03889d3e.js";import"./useEventCallback-8817ed1c.js";import"./Portal-1b30ccbc.js";import"./Paper-8eaa8df4.js";import"./Grow-e28280cd.js";import"./useControlled-b5d6fb94.js";import"./createSvgIcon-3b1a21b0.js";import"./Typography-fe7cdaf3.js";import"./IconButton-f380331f.js";import"./ButtonBase-54fbcc3c.js";import"./useIsFocusVisible-217260c3.js";import"./Backdrop-0c72d47e.js";import"./Fade-edb8e7af.js";import"./Empty.js";import"./CircularProgress-8332110b.js";var $=t.forwardRef((function(e,a){var r=e.classes,n=e.className,o=e.color,i=void 0===o?"secondary":o,c=e.edge,s=void 0!==c&&c,l=e.size,d=void 0===l?"medium":l,p=f(e,["classes","className","color","edge","size"]),m=t.createElement("span",{className:r.thumb});return t.createElement("span",{className:C(r.root,n,{start:r.edgeStart,end:r.edgeEnd}[s],"small"===d&&r["size".concat(E(d))])},t.createElement(x,g({type:"checkbox",icon:m,checkedIcon:m,classes:{root:C(r.switchBase,r["color".concat(E(i))]),input:r.input,checked:r.checked,disabled:r.disabled},ref:a},p)),t.createElement("span",{className:r.track}))})),N=h((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:u(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:u(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})($);function R(e){return"/"===e.charAt(0)}function S(e,t){for(var a=t,r=a+1,n=e.length;r<n;a+=1,r+=1)e[a]=e[r];e.pop()}function L(e,t){if(!e)throw new Error("Invariant failed")}function z(e,t,a,r){var n;"string"==typeof e?(n=function(e){var t=e||"/",a="",r="",n=t.indexOf("#");-1!==n&&(r=t.substr(n),t=t.substr(0,n));var o=t.indexOf("?");return-1!==o&&(a=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===a?"":a,hash:"#"===r?"":r}}(e)).state=t:(void 0===(n=g({},e)).pathname&&(n.pathname=""),n.search?"?"!==n.search.charAt(0)&&(n.search="?"+n.search):n.search="",n.hash?"#"!==n.hash.charAt(0)&&(n.hash="#"+n.hash):n.hash="",void 0!==t&&void 0===n.state&&(n.state=t));try{n.pathname=decodeURI(n.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+n.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return a&&(n.key=a),r?n.pathname?"/"!==n.pathname.charAt(0)&&(n.pathname=function(e,t){void 0===t&&(t="");var a,r=e&&e.split("/")||[],n=t&&t.split("/")||[],o=e&&R(e),i=t&&R(t),c=o||i;if(e&&R(e)?n=r:r.length&&(n.pop(),n=n.concat(r)),!n.length)return"/";if(n.length){var s=n[n.length-1];a="."===s||".."===s||""===s}else a=!1;for(var l=0,d=n.length;d>=0;d--){var p=n[d];"."===p?S(n,d):".."===p?(S(n,d),l++):l&&(S(n,d),l--)}if(!c)for(;l--;l)n.unshift("..");!c||""===n[0]||n[0]&&R(n[0])||n.unshift("");var m=n.join("/");return a&&"/"!==m.substr(-1)&&(m+="/"),m}(n.pathname,r.pathname)):n.pathname=r.pathname:n.pathname||(n.pathname="/"),n}"undefined"==typeof window||!window.document||window.document.createElement;a.Component,a.Component;var I=function(e,t){return"function"==typeof e?e(t):e},A=function(e,t){return"string"==typeof e?z(e,null,null,t):e},M=function(e){return e},B=a.forwardRef;void 0===B&&(B=M);var D=B((function(e,t){var r=e.innerRef,n=e.navigate,o=e.onClick,i=b(e,["innerRef","navigate","onClick"]),c=i.target,s=g({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),n())}});return s.ref=M!==B&&t||r,a.createElement("a",s)})),P=B((function(e,t){var r=e.component,n=void 0===r?D:r,o=e.replace,i=e.to,c=e.innerRef,s=b(e,["component","replace","to","innerRef"]);return a.createElement(d.Consumer,null,(function(e){e||L(!1);var r=e.history,l=A(I(i,e.location),e.location),d=l?r.createHref(l):"",p=g({},s,{href:d,navigate:function(){var t=I(i,e.location);(o?r.replace:r.push)(t)}});return M!==B?p.ref=t||c:p.innerRef=c,a.createElement(n,p)}))})),O=function(e){return e},F=a.forwardRef;void 0===F&&(F=O);var H=F((function(e,t){var r=e["aria-current"],n=void 0===r?"page":r,o=e.activeClassName,i=void 0===o?"active":o,c=e.activeStyle,s=e.className,l=e.exact,m=e.isActive,h=e.location,u=e.sensitive,f=e.strict,v=e.style,y=e.to,k=e.innerRef,w=b(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.createElement(d.Consumer,null,(function(e){e||L(!1);var r=h||e.location,o=A(I(y,r),r),d=o.pathname,b=d&&d.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),j=b?p(r.pathname,{path:b,exact:l,sensitive:u,strict:f}):null,x=!!(m?m(j,r):j),_=x?function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((function(e){return e})).join(" ")}(s,i):s,C=x?g({},v,{},c):v,E=g({"aria-current":x&&n||null,className:_,style:C,to:o},w);return O!==F?E.ref=t||k:E.innerRef=k,a.createElement(P,E)}))}));j(".header {\n display: flex;\n align-items: center;\n padding: 12px 36px;\n position: fixed;\n top: 0;\n z-index: 10;\n width: 100%;\n transition: top 0.3s ease-in-out; }\n .header__title {\n color: white;\n font-size: 18px;\n font-weight: bold;\n margin-right: 12px; }\n .header__links {\n flex: 1;\n display: flex; }\n .header__links__item {\n color: rgba(0, 0, 0, 0.85);\n text-decoration: none;\n font-weight: bold;\n padding: 8px 14px; }\n .header__links__item--active {\n color: rgba(0, 0, 0, 0.65);\n border-bottom: 2px solid white; }\n .header__links__item:hover {\n color: rgba(0, 0, 0, 0.65); }\n .header--hide {\n top: -100px; }\n\n@media screen and (max-width: 600px) {\n .header__links {\n display: none; } }\n");var K=function(t){var i=t.title,l=t.logo,d=t.locale,p=t.supportLanguages,h=t.pages,u=t.darkMode,f=t.className,g=t.setDarkMode,v=t.onLanguageChange,b=m().url,j=r(!1),x=e(j,2),C=x[0],E=x[1],$=n(s((function(){return E(window.scrollY>100)}),10)).current;return o((function(){return window.addEventListener("scroll",$),function(){window.removeEventListener("scroll",$)}}),[]),a.createElement("div",{className:c("header",{"header--hide":C},f)},l,a.createElement("div",{className:"header__title"},i),a.createElement("div",{className:"header__links"},(Array.isArray(h)?h:[]).filter((function(e){return e.showInHeader})).map((function(e){var t=e.path,r=e.name;return a.createElement(H,{key:t,to:"".concat(b).concat(t),className:"header__links__item",activeClassName:"header__links__item--active"},r)}))),a.createElement(_,{control:a.createElement(N,{checked:u,onChange:function(e){return g(e.target.checked)},color:"secondary"}),label:"Dark"}),a.createElement(w,{defaultValue:y({language:d,supportLanguages:p}),onChange:function(e){return v(e)},options:p}),a.createElement(k,{title:i,logo:l,drawerList:h,supportLanguages:p}))};K.defaultProps={className:void 0,title:void 0,logo:void 0,locale:void 0,supportLanguages:[{value:"en",label:"English"},{value:"zh-tw",label:"繁體中文"},{value:"zh-cn",label:"簡體中文"}],darkMode:!1,setDarkMode:function(){},onLanguageChange:function(){}},K.propTypes={className:i.string,title:i.string,logo:i.node,locale:i.string,supportLanguages:i.arrayOf(i.any),pages:i.arrayOf(i.any).isRequired,darkMode:i.bool,setDarkMode:i.func,onLanguageChange:i.func};export{K as default};
@@ -0,0 +1 @@
1
+ import{w as e,a,b as o,_ as t}from"./withStyles-43125883.js";import*as r from"react";import"prop-types";import{c as i,a as n}from"./capitalize-017d2500.js";import{B as l}from"./ButtonBase-54fbcc3c.js";var s=r.forwardRef((function(e,a){var s=e.edge,c=void 0!==s&&s,d=e.children,p=e.classes,m=e.className,g=e.color,u=void 0===g?"default":g,b=e.disabled,h=void 0!==b&&b,f=e.disableFocusRipple,v=void 0!==f&&f,y=e.size,R=void 0===y?"medium":y,z=o(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return r.createElement(l,t({className:i(p.root,m,"default"!==u&&p["color".concat(n(u))],h&&p.disabled,"small"===R&&p["size".concat(n(R))],{start:p.edgeStart,end:p.edgeEnd}[c]),centerRipple:!0,focusRipple:!v,disabled:h,ref:a},z),r.createElement("span",{className:p.label},d))})),c=e((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:a(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:a(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:a(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(s);export{c as I};
@@ -0,0 +1 @@
1
+ import{c as M}from"./_rollupPluginBabelHelpers-4234c275.js";import T,{useState as D}from"react";import{c as t}from"./index-ec2d0bbb.js";import w from"prop-types";import{c as A,u as e}from"./_commonjsHelpers-97e6d7b1.js";import{s as O}from"./style-inject.es-1f59c1d0.js";var k=e(A((function(M){M.exports=function(M){var T={};function D(t){if(T[t])return T[t].exports;var w=T[t]={i:t,l:!1,exports:{}};return M[t].call(w.exports,w,w.exports,D),w.l=!0,w.exports}return D.m=M,D.c=T,D.d=function(M,T,t){D.o(M,T)||Object.defineProperty(M,T,{enumerable:!0,get:t})},D.r=function(M){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},D.t=function(M,T){if(1&T&&(M=D(M)),8&T)return M;if(4&T&&"object"==typeof M&&M&&M.__esModule)return M;var t=Object.create(null);if(D.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:M}),2&T&&"string"!=typeof M)for(var w in M)D.d(t,w,function(T){return M[T]}.bind(null,w));return t},D.n=function(M){var T=M&&M.__esModule?function(){return M.default}:function(){return M};return D.d(T,"a",T),T},D.o=function(M,T){return Object.prototype.hasOwnProperty.call(M,T)},D.p="",D(D.s=1)}([function(M,D){M.exports=T},function(M,T,D){D.r(T),D.d(T,"default",(function(){return c}));var t=D(0),w=D.n(t);function A(M){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(M)}function e(M,T){if(!(M instanceof T))throw new TypeError("Cannot call a class as a function")}function O(M,T){return(O=Object.setPrototypeOf||function(M,T){return M.__proto__=T,M})(M,T)}function k(M){var T=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(M){return!1}}();return function(){var D,t=o(M);if(T){var w=o(this).constructor;D=Reflect.construct(t,arguments,w)}else D=t.apply(this,arguments);return i(this,D)}}function i(M,T){return!T||"object"!==A(T)&&"function"!=typeof T?n(M):T}function n(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function o(M){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(M){return M.__proto__||Object.getPrototypeOf(M)})(M)}function I(M,T,D){return T in M?Object.defineProperty(M,T,{value:D,enumerable:!0,configurable:!0,writable:!0}):M[T]=D,M}function a(M){var T=0,D=0;return M.touches&&M.touches.length?(T=M.touches[0].pageX,D=M.touches[0].pageY):(T=M.pageX,D=M.pageY),{x:T,y:D}}function l(M){return M.condition?w.a.createElement(w.a.Fragment,null,M.children):null}var c=function(M){!function(M,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(T&&T.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),T&&O(M,T)}(t,M);var T,D=k(t);function t(){var M,T,A,O,k;e(this,t);for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return I(n(k=D.call.apply(D,[this].concat(o))),"initX",0),I(n(k),"initY",0),I(n(k),"lastX",0),I(n(k),"lastY",0),I(n(k),"_cont",w.a.createRef()),I(n(k),"state",{x:0,y:0,zoom:1,rotate:0,loading:!0,moving:!1,current:null!==(M=null===(T=k.props)||void 0===T?void 0:T.startIndex)&&void 0!==M?M:0,multi:!(null===(A=k.props)||void 0===A||null===(O=A.images)||void 0===O||!O.length)}),I(n(k),"createTransform",(function(M,T,D,t){return"translate3d(".concat(M,"px,").concat(T,"px,0px) scale(").concat(D,") rotate(").concat(t,"deg)")})),I(n(k),"stopSideEffect",(function(M){return M.stopPropagation()})),I(n(k),"getCurrentImage",(function(M,T){var D,t,w,A,e;return M.multi?null!==(t=null!==(w=null===(A=T.images[M.current])||void 0===A?void 0:A.url)&&void 0!==w?w:null===(e=T.images)||void 0===e?void 0:e[M.current])&&void 0!==t?t:"":null!==(D=T.image)&&void 0!==D?D:""})),I(n(k),"getCurrentTitle",(function(M,T){var D,t,w,A;return M.multi?null!==(t=null===(w=T.images)||void 0===w||null===(A=w[M.current])||void 0===A?void 0:A.title)&&void 0!==t?t:"":null!==(D=T.title)&&void 0!==D?D:""})),I(n(k),"resetZoom",(function(){return k.setState({x:0,y:0,zoom:1})})),I(n(k),"shockZoom",(function(M){var T,D,t=k.props,w=t.zoomStep,A=void 0===w?.3:w,e=t.allowZoom,O=void 0===e||e,i=t.doubleClickZoom,n=void 0===i?4:i;if(!O||!n)return!1;if(k.stopSideEffect(M),k.state.zoom>1)return k.resetZoom();var o=(A<1?Math.ceil(n/A):A)*A,I=a(M),l=null===(T=k._cont.current)||void 0===T||null===(D=T.getBoundingClientRect)||void 0===D?void 0:D.call(T),c=l.x+l.width/2,u=l.y+l.height/2,r=-1*(I.x-c)*o,g=-1*(I.y-u)*o;k.setState({x:r,y:g,zoom:o})})),I(n(k),"navigateImage",(function(M,T){k.stopSideEffect(T);var D=0;switch(M){case"next":D=k.state.current+1;break;case"prev":D=k.state.current-1}D>=k.props.images.length?D=0:D<0&&(D=k.props.images.length-1),k.setState({current:D,x:0,y:0,zoom:1,rotate:0,loading:!0})})),I(n(k),"startMove",(function(M){if(k.state.zoom<=1)return!1;k.setState({moving:!0});var T=a(M);k.initX=T.x-k.lastX,k.initY=T.y-k.lastY})),I(n(k),"duringMove",(function(M){if(!k.state.moving)return!1;var T=a(M);k.lastX=T.x-k.initX,k.lastY=T.y-k.initY,k.setState({x:T.x-k.initX,y:T.y-k.initY})})),I(n(k),"endMove",(function(M){return k.setState({moving:!1})})),I(n(k),"applyZoom",(function(M){var T=k.props.zoomStep,D=void 0===T?.3:T;switch(M){case"in":k.setState({zoom:k.state.zoom+D});break;case"out":var t=k.state.zoom-D;if(t<1)break;1===t?k.setState({x:0,y:0,zoom:1}):k.setState({zoom:t});break;case"reset":k.resetZoom()}})),I(n(k),"applyRotate",(function(M){switch(M){case"cw":k.setState({rotate:k.state.rotate+90});break;case"acw":k.setState({rotate:k.state.rotate-90})}})),I(n(k),"reset",(function(M){k.stopSideEffect(M),k.setState({x:0,y:0,zoom:1,rotate:0})})),I(n(k),"exit",(function(M){if("function"==typeof k.props.onClose)return k.props.onClose(M);console.error("No Exit function passed on prop: onClose. Clicking the close button will do nothing")})),I(n(k),"shouldShowReset",(function(){return k.state.x||k.state.y||1!==k.state.zoom||0!==k.state.rotate})),I(n(k),"canvasClick",(function(M){var T=k.props.clickOutsideToExit;if((void 0===T||T)&&k.state.zoom<=1)return k.exit(M)})),I(n(k),"keyboardNavigation",(function(M){var T=k.props,D=T.allowZoom,t=void 0===D||D,w=T.allowReset,A=void 0===w||w,e=k.state,O=e.multi,i=e.x,n=e.y,o=e.zoom;switch(M.key){case"ArrowLeft":O&&1===o?k.navigateImage("prev",M):o>1&&k.setState({x:i-20});break;case"ArrowRight":O&&1===o?k.navigateImage("next",M):o>1&&k.setState({x:i+20});break;case"ArrowUp":o>1&&k.setState({y:n+20});break;case"ArrowDown":o>1&&k.setState({y:n-20});break;case"+":t&&k.applyZoom("in");break;case"-":t&&k.applyZoom("out");break;case"Escape":A&&k.shouldShowReset()?k.reset(M):k.exit(M)}})),k}return(T=[{key:"componentDidMount",value:function(){document.body.classList.add("lb-open-lightbox");var M=this.props.keyboardInteraction;(void 0===M||M)&&document.addEventListener("keyup",this.keyboardNavigation)}},{key:"componentWillUnmount",value:function(){document.body.classList.remove("lb-open-lightbox");var M=this.props.keyboardInteraction;(void 0===M||M)&&document.removeEventListener("keyup",this.keyboardNavigation)}},{key:"render",value:function(){var M=this,T=this.getCurrentImage(this.state,this.props),D=this.getCurrentTitle(this.state,this.props);if(!T)return console.warn("Not showing lightbox because no image(s) was supplied"),null;var t=this.props,A=t.allowZoom,e=void 0===A||A,O=t.allowRotate,k=void 0===O||O,i=t.buttonAlign,n=void 0===i?"flex-end":i,o=t.showTitle,I=void 0===o||o,a=t.allowReset,c=void 0===a||a,u=this.state,r=u.x,g=u.y,j=u.zoom,d=u.rotate,m=u.multi,s=u.loading,y=u.moving,b=c&&this.shouldShowReset();return w.a.createElement("div",{className:"lb-container"},w.a.createElement("div",{className:"lb-header",style:{justifyContent:n}},w.a.createElement(l,{condition:I&&D},w.a.createElement("div",{className:"lb-title",style:{display:"center"===n?"none":"flex",order:"flex-start"===n?"2":"unset"}},w.a.createElement("span",{title:D,style:{textAlign:"flex-start"===n?"right":"left"}},D))),w.a.createElement(l,{condition:"center"===n||b},w.a.createElement("div",{title:"Reset",style:{order:"flex-start"===n?"1":"unset"},className:"lb-button lb-icon-reset lb-hide-mobile reload ".concat(b?"":"lb-disabled"),onClick:this.reset})),w.a.createElement(l,{condition:m},w.a.createElement("div",{title:"Previous",className:"lb-button lb-icon-arrow prev lb-hide-mobile",onClick:function(T){return M.navigateImage("prev",T)}}),w.a.createElement("div",{title:"Next",className:"lb-button lb-icon-arrow next lb-hide-mobile",onClick:function(T){return M.navigateImage("next",T)}})),w.a.createElement(l,{condition:e},w.a.createElement("div",{title:"Zoom In",className:"lb-button lb-icon-zoomin zoomin",onClick:function(){return M.applyZoom("in")}}),w.a.createElement("div",{title:"Zoom Out",className:"lb-button lb-icon-zoomout zoomout ".concat(j<=1?"lb-disabled":""),onClick:function(){return M.applyZoom("out")}})),w.a.createElement(l,{condition:k},w.a.createElement("div",{title:"Rotate left",className:"lb-button lb-icon-rotate rotatel",onClick:function(){return M.applyRotate("acw")}}),w.a.createElement("div",{title:"Rotate right",className:"lb-button lb-icon-rotate rotater",onClick:function(){return M.applyRotate("cw")}})),w.a.createElement("div",{title:"Close",className:"lb-button lb-icon-close close",style:{order:"flex-start"===n?"-1":"unset"},onClick:function(T){return M.exit(T)}})),w.a.createElement("div",{className:"lb-canvas".concat(s?" lb-loading":""),ref:this._cont,onClick:function(T){return M.canvasClick(T)}},w.a.createElement("img",{draggable:"false",style:{transform:this.createTransform(r,g,j,d),cursor:j>1?"grab":"unset",transition:y?"none":"all 0.1s"},onMouseDown:function(T){return M.startMove(T)},onTouchStart:function(T){return M.startMove(T)},onMouseMove:function(T){return M.duringMove(T)},onTouchMove:function(T){return M.duringMove(T)},onMouseUp:function(T){return M.endMove(T)},onMouseLeave:function(T){return M.endMove(T)},onTouchEnd:function(T){return M.endMove(T)},onClick:function(T){return M.stopSideEffect(T)},onDoubleClick:function(T){return M.shockZoom(T)},onLoad:function(T){return M.setState({loading:!1})},className:"lb-img".concat(s?" lb-loading":""),title:D,src:T,alt:D}),w.a.createElement("div",{className:"mobile-controls lb-show-mobile"},m?w.a.createElement("div",{title:"Previous",className:"lb-button lb-icon-arrow prev",onClick:function(T){return M.navigateImage("prev",T)}}):null,b?w.a.createElement("div",{title:"Reset",className:"lb-button lb-icon-reset reload",onClick:this.reset}):null,m?w.a.createElement("div",{title:"Next",className:"lb-button lb-icon-arrow next",onClick:function(T){return M.navigateImage("next",T)}}):null)))}}])&&function(M,T){for(var D=0;D<T.length;D++){var t=T[D];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(M,t.key,t)}}(t.prototype,T),t}(w.a.Component)}])})));O('\n.lb-icon-close{\n background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgaGVpZ2h0PSIxMDAwIiB3aWR0aD0iMTAwMCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgo8bWV0YWRhdGE+SWNvRm9udCBJY29uczwvbWV0YWRhdGE+Cjx0aXRsZT5jbG9zZS1saW5lPC90aXRsZT4KPGdseXBoIGdseXBoLW5hbWU9ImNsb3NlLWxpbmUiIHVuaWNvZGU9IiYjeGVlZTE7IiBob3Jpei1hZHYteD0iMTAwMCIgLz4KPHBhdGggIGZpbGw9IiNmZmZmZmYiIGQ9Ik03NjIuNSAyMDBsMzcuNSAzNy41LTI2Mi41IDI2Mi41IDI2Mi41IDI2Mi41LTM3LjUgMzcuNS0yNjIuNS0yNjIuNS0yNjIuNSAyNjIuNS0zNy41LTM3LjUgMjYyLjUtMjYyLj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OTk3IDMzLjgwMDAwMDAwMDAwMDAxIDI4LjcwMDAwMDAwMDAwMDAwMyAzMy44MDAwMDAwMDAwMDAwMWg0Mi4yYzE4LjkwMDAwMDAwMDAwMDAwNiAwIDM2LjUtMTUuMTAwMDAwMDAwMDAwMDIzIDQxLjUtMzMuMzAwMDAwMDAwMDAwMDEgMzguMjk5OTk5OTk5OTk5OTgtMTM4LjggMTY1LjQtMjQwLjIgMzE1LjktMjQwLjIgMTA2LjYwMDAwMDAwMDAwMDAyIDAgMjAxLjIwMDAwMDAwMDAwMDA1IDUwLjUgMjYxLjIwMDAwMDAwMDAwMDA1IDEyOS4xMDAwMDAwMDAwMDAwMiAxMS41IDE1IDguMzk5OTk5OTk5OTk5OTc3IDM5LTQuODk5OTk5OTk5OTk5OTc3IDUyLjI5OTk5OTk5OTk5OTk1NWwtNjcuODAwMDAwMDAwMDAwMDcgNjcuOTAwMDAwMDAwMDAwMDNjLTEzLjI5OTk5OTk5OTk5OTk1NSAxMy4zOTk5OTk5OTk5OTk5NzctOC44OTk5OTk5OTk5OTk5NzcgMjQuMTk5OTk5OTk5OTk5OTkgMTAgMjQuMTk5OTk5OTk5OTk5OTloMjA1LjEwMDAwMDAwMDAwMDAyYzE4Ljg5OTk5OTk5OTk5OTk3NyAwIDM0LjIwMDAwMDAwMDAwMDA0NS0xNS4zMDAwMDAwMDAwMDAwMTEgMzQuMjAwMDAwMDAwMDAwMDQ1LTM0LjE5OTk5OTk5OTk5OTk5di0yMDUuMTAwMDAwMDAwMDAwMDJjLTAuMTAwMDAwMDAwMDAwMDIyNzQtMTguODk5OTk5OTk5OTk5OTc3LTEwLjg5OTk5OTk5OTk5OTk3Ny0yMy4zOTk5OTk5OTk5OTk5NzctMjQuMzAwMDAwMDAwMDAwMDY4LTEweiIvPgo8L3N2Zz4=");\n}\n.lb-container{\n z-index: 50000;\n position: absolute;\n position: fixed;\n left:0px;\n top:0px;\n width: 100%;\n height: 100%;\n background-color: #000;\n background-color: rgba(0,0,0,0.8);\n display: flex;\n flex-direction: column;\n}\n.lb-container .lb-header{\n height: 50px;\n background: #000;\n background: rgba(0,0,0,0.9);\n box-shadow: 0px 1px 5px 0px #111;\n box-sizing: border-box;\n display: flex;\n align-items: stretch;\n justify-content: flex-end;\n z-index: 10;\n}\n.lb-header .lb-button{\n padding: 10px 25px;\n background-size: 40% auto;\n background-position: center center;\n background-repeat: no-repeat;\n cursor: pointer;\n}\n.lb-header .lb-button:not(:last-child){\n margin-right: 3px;\n}\n.lb-header .lb-button:hover{\n background-color:#777;\n}\n\n.lb-header .lb-button.rotater{\n transform: rotateY(180deg);\n}\n.lb-header .lb-button.next{\n transform: rotateY(180deg);\n}\n.lb-header .lb-title{\n flex: 1;\n align-items: center;\n color: white;\n font-size: 1.1em;\n padding: 0em 0.8em;\n overflow: hidden;\n}\n.lb-header .lb-title span{\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n width: 100%;\n}\n.lb-container .lb-canvas{\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n max-width: 100%;\n max-height: 100%;\n position: relative;\n}\n.lb-canvas .lb-img{\n max-width: 80vw;\n max-height: 80vh;\n min-width: 100px;\n min-height: 100px;\n /* transition: all 0.1s; */\n cursor: grab;\n background-size: 50px;\n transform-origin: center center;\n}\n.lb-canvas .lb-img.lb-loading{\n opacity: 0;\n}\n.lb-canvas.lb-loading{\n background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0ibWFyZ2luOiBhdXRvOyBiYWNrZ3JvdW5kOiBub25lOyBkaXNwbGF5OiBibG9jazsgc2hhcGUtcmVuZGVyaW5nOiBhdXRvOyIgd2lkdGg9IjEwMXB4IiBoZ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JlY3Q+CjwvZz4KPCEtLSBbbGRpb10gZ2VuZXJhdGVkIGJ5IGh0dHBzOi8vbG9hZGluZy5pby8gLS0+PC9zdmc+");\n background-position: center center;\n background-repeat: no-repeat;\n}\n.mobile-controls{\n position: absolute;\n bottom: 25px;\n left: 0px;\n width: 100%;\n height: 45px;\n display: flex;\n justify-content: center;\n}\n.mobile-controls .lb-button{\n width: 50px;\n height: 50px;\n background-color: rgba(0,0,0,0.9);\n background-position: center center;\n background-size: 40%;\n background-repeat: no-repeat;\n margin: 0.2em;\n cursor: pointer;\n}\n.mobile-controls .lb-button:active{\n background-color:#777;\n}\n.mobile-controls .lb-button.next{\n transform: rotateY(180deg);\n}\n.lb-show-mobile{\n display: none; \n}\n.lb-disabled{\n pointer-events: none;\n touch-action: none;\n opacity: 0.4;\n}\n@media (max-width:600px){\n .lb-header .lb-button:hover{\n background-color: inherit;\n }\n .lb-header .lb-button:active{\n background-color: #777;\n }\n .lb-show-mobile{\n display: flex !important;\n }\n .lb-hide-mobile{\n display: none !important;\n }\n .lb-canvas .lb-img{\n max-height: 60vh;\n }\n}');O(".image {\n cursor: pointer; }\n");var i=function(w){var A=w.className,e=w.src,O=w.width,i=D(!1),n=M(i,2),o=n[0],I=n[1];return T.createElement("div",null,T.createElement("img",{src:e,className:t("image",A),style:{width:"".concat(O,"px")},alt:"preview",onClick:function(){return I(!0)}}),o?T.createElement(k,{image:e,showTitle:!1,onClose:function(){return I(!1)}}):null)};i.defaultProps={className:void 0,src:void 0,width:200},i.propTypes={className:w.string,src:w.string,width:w.number};export{i as default};